export type PublicGdprDeleteInput = {idProperty?: string | undefined, objectId: string}; export type CreateApiCrmObjects202609MeetingsGdprDeleteArgs = {body: PublicGdprDeleteInput}; export type CreateApiCrmObjects202609MeetingsGdprDeleteOptions = {baseUrl?: string | undefined, oauth2?: string | undefined, fetch?: typeof fetch | undefined}; /** * GDPR Delete * * POST /crm/objects/2026-09/meetings/gdpr-delete * * Also accepts auth: oauth2, oauth2, oauth2, oauth2, oauth2, oauth2, oauth2, oauth2, oauth2, oauth2, oauth2, oauth2, oauth2, oauth2, oauth2, oauth2, oauth2, oauth2, oauth2, oauth2, oauth2, oauth2, oauth2, oauth2, oauth2, oauth2, oauth2, oauth2, oauth2, oauth2, oauth2, oauth2, oauth2, oauth2, oauth2, oauth2, oauth2, oauth2, oauth2, oauth2, oauth2, oauth2, oauth2, oauth2, oauth2, oauth2, oauth2, oauth2, oauth2, oauth2, oauth2, oauth2, oauth2, oauth2, oauth2, oauth2, oauth2, oauth2, oauth2, oauth2, oauth2, oauth2, oauth2, oauth2, oauth2, oauth2, oauth2, oauth2, oauth2, oauth2, oauth2, oauth2, oauth2, oauth2, oauth2, oauth2, oauth2, oauth2, oauth2, oauth2, oauth2, oauth2, oauth2, oauth2, oauth2, oauth2, oauth2, oauth2, oauth2, oauth2, oauth2 */ export const createApiCrmObjects202609MeetingsGdprDelete = async (args: CreateApiCrmObjects202609MeetingsGdprDeleteArgs, options?: CreateApiCrmObjects202609MeetingsGdprDeleteOptions) => { const {baseUrl = "https://api.hubapi.com", fetch: fetchFn = fetch, oauth2} = options ?? {} const query = new URLSearchParams() const headers = new Headers() headers.set('content-type', "application/json") if (oauth2 !== undefined) headers.set('authorization', `Bearer ${oauth2}`) const url = `${baseUrl.replace(/\/+$/, '')}/crm/objects/2026-09/meetings/gdpr-delete${query.size > 0 ? `?${query}` : ''}` const res = await fetchFn(url, {method: "POST", headers, body: JSON.stringify(args.body)}) if (!res.ok) throw new Error(`Request failed with status ${res.status}`, {cause: {status: res.status, body: await res.text()}}) return undefined };