@medalsocial/sdk 1.2.0 → 1.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +131 -1
- package/dist/openapi/medal-social.openapi.json +1257 -86
- package/dist/src/index.d.mts +437 -4
- package/dist/src/index.d.ts +437 -4
- package/dist/src/index.js +224 -8
- package/dist/src/index.js.map +1 -1
- package/dist/src/index.mjs +218 -7
- package/dist/src/index.mjs.map +1 -1
- package/dist/src/openapi.generated.d.mts +674 -0
- package/dist/src/openapi.generated.d.ts +674 -0
- package/dist/src/openapi.generated.js.map +1 -1
- package/openapi/medal-social.openapi.yaml +710 -0
- package/package.json +21 -15
- package/skills/client/SKILL.md +105 -0
- package/skills/resources/SKILL.md +241 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/openapi.generated.ts"],"sourcesContent":["/**\n * This file was auto-generated by openapi-typescript.\n * Do not make direct changes to the file.\n */\n\nexport interface paths {\n \"/api/v1/posts\": {\n parameters: {\n query?: never;\n header?: never;\n path?: never;\n cookie?: never;\n };\n /** List posts */\n get: operations[\"listPosts\"];\n put?: never;\n /** Create a post */\n post: operations[\"createPost\"];\n delete?: never;\n options?: never;\n head?: never;\n patch?: never;\n trace?: never;\n };\n \"/api/v1/posts/channels\": {\n parameters: {\n query?: never;\n header?: never;\n path?: never;\n cookie?: never;\n };\n /** List connected post channels */\n get: operations[\"listPostChannels\"];\n put?: never;\n post?: never;\n delete?: never;\n options?: never;\n head?: never;\n patch?: never;\n trace?: never;\n };\n \"/api/v1/posts/{id}\": {\n parameters: {\n query?: never;\n header?: never;\n path: {\n id: components[\"parameters\"][\"Id\"];\n };\n cookie?: never;\n };\n /** Get post detail */\n get: operations[\"getPost\"];\n put?: never;\n post?: never;\n /** Delete a post */\n delete: operations[\"deletePost\"];\n options?: never;\n head?: never;\n /** Update a draft post */\n patch: operations[\"updatePost\"];\n trace?: never;\n };\n \"/api/v1/posts/{id}/schedule\": {\n parameters: {\n query?: never;\n header?: never;\n path: {\n id: components[\"parameters\"][\"Id\"];\n };\n cookie?: never;\n };\n get?: never;\n put?: never;\n /** Schedule a post */\n post: operations[\"schedulePost\"];\n delete?: never;\n options?: never;\n head?: never;\n patch?: never;\n trace?: never;\n };\n \"/api/v1/posts/{id}/publish\": {\n parameters: {\n query?: never;\n header?: never;\n path: {\n id: components[\"parameters\"][\"Id\"];\n };\n cookie?: never;\n };\n get?: never;\n put?: never;\n /** Publish a post */\n post: operations[\"publishPost\"];\n delete?: never;\n options?: never;\n head?: never;\n patch?: never;\n trace?: never;\n };\n \"/api/v1/emails\": {\n parameters: {\n query?: never;\n header?: never;\n path?: never;\n cookie?: never;\n };\n get?: never;\n put?: never;\n /** Send a transactional email */\n post: operations[\"sendEmail\"];\n delete?: never;\n options?: never;\n head?: never;\n patch?: never;\n trace?: never;\n };\n \"/api/v1/emails/batch\": {\n parameters: {\n query?: never;\n header?: never;\n path?: never;\n cookie?: never;\n };\n get?: never;\n put?: never;\n /** Send a batch of transactional emails */\n post: operations[\"batchSendEmails\"];\n delete?: never;\n options?: never;\n head?: never;\n patch?: never;\n trace?: never;\n };\n \"/api/v1/emails/templates\": {\n parameters: {\n query?: never;\n header?: never;\n path?: never;\n cookie?: never;\n };\n /** List active email templates */\n get: operations[\"listEmailTemplates\"];\n put?: never;\n post?: never;\n delete?: never;\n options?: never;\n head?: never;\n patch?: never;\n trace?: never;\n };\n \"/api/v1/emails/templates/{slug}\": {\n parameters: {\n query?: never;\n header?: never;\n path: {\n slug: components[\"parameters\"][\"Slug\"];\n };\n cookie?: never;\n };\n /** Get an email template */\n get: operations[\"getEmailTemplate\"];\n put?: never;\n post?: never;\n delete?: never;\n options?: never;\n head?: never;\n patch?: never;\n trace?: never;\n };\n \"/api/v1/emails/{id}\": {\n parameters: {\n query?: never;\n header?: never;\n path: {\n id: components[\"parameters\"][\"Id\"];\n };\n cookie?: never;\n };\n /** Get sent email status */\n get: operations[\"getEmailSend\"];\n put?: never;\n post?: never;\n delete?: never;\n options?: never;\n head?: never;\n patch?: never;\n trace?: never;\n };\n \"/api/v1/contacts\": {\n parameters: {\n query?: never;\n header?: never;\n path?: never;\n cookie?: never;\n };\n /** List contacts */\n get: operations[\"listContacts\"];\n put?: never;\n /** Create a contact */\n post: operations[\"createContact\"];\n delete?: never;\n options?: never;\n head?: never;\n patch?: never;\n trace?: never;\n };\n \"/api/v1/contacts/import\": {\n parameters: {\n query?: never;\n header?: never;\n path?: never;\n cookie?: never;\n };\n get?: never;\n put?: never;\n /** Import contacts */\n post: operations[\"importContacts\"];\n delete?: never;\n options?: never;\n head?: never;\n patch?: never;\n trace?: never;\n };\n \"/api/v1/contacts/{id}\": {\n parameters: {\n query?: never;\n header?: never;\n path: {\n id: components[\"parameters\"][\"Id\"];\n };\n cookie?: never;\n };\n /** Get a contact */\n get: operations[\"getContact\"];\n put?: never;\n post?: never;\n /** Delete a contact */\n delete: operations[\"deleteContact\"];\n options?: never;\n head?: never;\n /** Update a contact */\n patch: operations[\"updateContact\"];\n trace?: never;\n };\n \"/api/v1/contacts/{id}/activities\": {\n parameters: {\n query?: never;\n header?: never;\n path: {\n id: components[\"parameters\"][\"Id\"];\n };\n cookie?: never;\n };\n /** List contact activities */\n get: operations[\"listContactActivities\"];\n put?: never;\n post?: never;\n delete?: never;\n options?: never;\n head?: never;\n patch?: never;\n trace?: never;\n };\n \"/api/v1/contacts/{id}/notes\": {\n parameters: {\n query?: never;\n header?: never;\n path: {\n id: components[\"parameters\"][\"Id\"];\n };\n cookie?: never;\n };\n get?: never;\n put?: never;\n /** Add a contact note */\n post: operations[\"addContactNote\"];\n delete?: never;\n options?: never;\n head?: never;\n patch?: never;\n trace?: never;\n };\n \"/api/v1/deals\": {\n parameters: {\n query?: never;\n header?: never;\n path?: never;\n cookie?: never;\n };\n /** List deals */\n get: operations[\"listDeals\"];\n put?: never;\n /** Create a deal */\n post: operations[\"createDeal\"];\n delete?: never;\n options?: never;\n head?: never;\n patch?: never;\n trace?: never;\n };\n \"/api/v1/deals/{id}\": {\n parameters: {\n query?: never;\n header?: never;\n path: {\n id: components[\"parameters\"][\"Id\"];\n };\n cookie?: never;\n };\n /** Get a deal */\n get: operations[\"getDeal\"];\n put?: never;\n post?: never;\n /** Delete a deal */\n delete: operations[\"deleteDeal\"];\n options?: never;\n head?: never;\n /** Update a deal */\n patch: operations[\"updateDeal\"];\n trace?: never;\n };\n \"/api/v1/gdpr/export\": {\n parameters: {\n query?: never;\n header?: never;\n path?: never;\n cookie?: never;\n };\n get?: never;\n put?: never;\n /** Request a GDPR export */\n post: operations[\"requestGdprExport\"];\n delete?: never;\n options?: never;\n head?: never;\n patch?: never;\n trace?: never;\n };\n \"/api/v1/gdpr/exports\": {\n parameters: {\n query?: never;\n header?: never;\n path?: never;\n cookie?: never;\n };\n /** List GDPR exports */\n get: operations[\"listGdprExports\"];\n put?: never;\n post?: never;\n delete?: never;\n options?: never;\n head?: never;\n patch?: never;\n trace?: never;\n };\n \"/api/v1/gdpr/exports/{id}\": {\n parameters: {\n query?: never;\n header?: never;\n path: {\n id: components[\"parameters\"][\"Id\"];\n };\n cookie?: never;\n };\n /** Get a GDPR export */\n get: operations[\"getGdprExport\"];\n put?: never;\n post?: never;\n delete?: never;\n options?: never;\n head?: never;\n patch?: never;\n trace?: never;\n };\n \"/api/v1/gdpr/consent\": {\n parameters: {\n query?: never;\n header?: never;\n path?: never;\n cookie?: never;\n };\n get?: never;\n put?: never;\n /** Record GDPR consent */\n post: operations[\"recordGdprConsent\"];\n delete?: never;\n options?: never;\n head?: never;\n patch?: never;\n trace?: never;\n };\n \"/api/v1/gdpr/consent/{email}\": {\n parameters: {\n query?: never;\n header?: never;\n path: {\n email: string;\n };\n cookie?: never;\n };\n /** Get GDPR consent records */\n get: operations[\"getGdprConsent\"];\n put?: never;\n post?: never;\n delete?: never;\n options?: never;\n head?: never;\n patch?: never;\n trace?: never;\n };\n \"/api/cookie-consent\": {\n parameters: {\n query?: never;\n header?: never;\n path?: never;\n cookie?: never;\n };\n get?: never;\n put?: never;\n /** Record cookie consent */\n post: operations[\"recordCookieConsent\"];\n delete?: never;\n options?: never;\n head?: never;\n patch?: never;\n trace?: never;\n };\n \"/api/v1/me/workspaces\": {\n parameters: {\n query?: never;\n header?: never;\n path?: never;\n cookie?: never;\n };\n /** List accessible workspaces */\n get: operations[\"listWorkspaces\"];\n put?: never;\n post?: never;\n delete?: never;\n options?: never;\n head?: never;\n patch?: never;\n trace?: never;\n };\n}\nexport type webhooks = Record<string, never>;\nexport interface components {\n schemas: {\n ApiError: {\n error: {\n code: string;\n message: string;\n details?: unknown;\n };\n };\n Pagination: {\n has_more: boolean;\n next_cursor: string | null;\n };\n Success: {\n success: boolean;\n };\n PostCreateResult: {\n id: string;\n };\n Post: {\n id: string;\n type: components[\"schemas\"][\"PostType\"];\n title: string | null;\n content: string;\n status: string;\n channel_ids: string[];\n variant_count: number;\n published_count: number;\n failed_count: number;\n /** Format: date-time */\n scheduled_at: string | null;\n /** Format: date-time */\n published_at: string | null;\n /** Format: date-time */\n created_at: string | null;\n /** Format: date-time */\n updated_at: string | null;\n };\n /** @enum {string} */\n PostType: \"social\" | \"newsletter\" | \"blog\";\n PostVariant: {\n id: string;\n channel_id: string;\n content: string;\n status: string;\n platform: string | null;\n channel_display_name: string | null;\n /** Format: date-time */\n scheduled_at: string | null;\n /** Format: date-time */\n published_at: string | null;\n platform_post_id: string | null;\n /** Format: uri */\n permalink: string | null;\n error: string | null;\n };\n PostDetail: components[\"schemas\"][\"Post\"] & {\n variants: components[\"schemas\"][\"PostVariant\"][];\n };\n Channel: {\n id: string;\n platform: string | null;\n display_name: string | null;\n platform_username: string | null;\n state: string;\n /** Format: date-time */\n connected_at: string | null;\n };\n CreatePostInput: {\n type?: components[\"schemas\"][\"PostType\"];\n title?: string;\n content: string;\n channel_ids: string[];\n };\n UpdatePostInput: {\n title?: string;\n content?: string;\n };\n SchedulePostInput: {\n scheduled_at: number | string;\n };\n ScheduleResult: {\n success: boolean;\n workflow_id: string;\n };\n PublishResult: {\n success: boolean;\n workflow_id: string;\n };\n SendEmailInput: {\n template_slug: string;\n /** Format: email */\n to: string;\n name?: string;\n locale?: string;\n fallback_locale?: string;\n variables?: {\n [key: string]: string;\n };\n contact_id?: string;\n };\n EmailSendResult: {\n id: string;\n status: string;\n };\n EmailSend: {\n id: string;\n status: string;\n /** Format: email */\n recipient_email: string;\n recipient_name: string | null;\n subject: string | null;\n template_id: string | null;\n contact_id: string | null;\n /** Format: date-time */\n queued_at: string | null;\n /** Format: date-time */\n sent_at: string | null;\n /** Format: date-time */\n delivered_at: string | null;\n /** Format: date-time */\n opened_at: string | null;\n /** Format: date-time */\n clicked_at: string | null;\n error_message: string | null;\n };\n BatchSendInput: {\n template_slug: string;\n default_locale?: string;\n recipients: {\n /** Format: email */\n email: string;\n name?: string;\n locale?: string;\n variables?: {\n [key: string]: string;\n };\n }[];\n };\n BatchSendSummary: {\n batch_id: string;\n total: number;\n queued: number;\n failed: number;\n };\n EmailTemplate: {\n id: string;\n name: string;\n slug: string;\n type: string | null;\n subject: string | null;\n default_locale: string;\n available_locales: string[];\n description: string | null;\n category: string | null;\n label_ids: string[];\n is_active: boolean;\n is_archived: boolean;\n version: number;\n /** Format: date-time */\n created_at: string | null;\n /** Format: date-time */\n updated_at: string | null;\n };\n EmailTemplateDetail: components[\"schemas\"][\"EmailTemplate\"] & {\n html_content: string | null;\n text_content: string | null;\n preview_text: string | null;\n from_name: string | null;\n /** Format: email */\n from_email: string | null;\n /** Format: email */\n reply_to: string | null;\n requested_locale: string | null;\n resolved_locale: string;\n content_source: string;\n localizations: {\n locale: string | null;\n subject: string | null;\n html_content: string | null;\n text_content: string | null;\n preview_text: string | null;\n }[];\n };\n Contact: {\n id: string;\n /** Format: email */\n email: string;\n first_name: string | null;\n last_name: string | null;\n phone: string | null;\n company: string | null;\n job_title: string | null;\n address: {\n [key: string]: string;\n } | null;\n status: components[\"schemas\"][\"ContactStatus\"];\n email_status: components[\"schemas\"][\"EmailStatus\"];\n label_ids: string[];\n source: string | null;\n custom_fields: {\n [key: string]: unknown;\n } | null;\n /** Format: date-time */\n created_at: string | null;\n /** Format: date-time */\n updated_at: string | null;\n };\n ContactCreateResult: {\n id: string;\n };\n ContactUpdateResult: {\n /** @constant */\n success: true;\n };\n ContactRemoveResult: {\n /** @constant */\n success: true;\n };\n ContactNoteResult: {\n id: string;\n };\n /** @enum {string} */\n ContactStatus: \"lead\" | \"prospect\" | \"customer\" | \"churned\" | \"archived\";\n /** @enum {string} */\n EmailStatus: \"subscribed\" | \"unsubscribed\" | \"bounced\" | \"complained\";\n CreateContactInput: {\n /** Format: email */\n email: string;\n first_name?: string;\n last_name?: string;\n phone?: string;\n company?: string;\n job_title?: string;\n address?: {\n [key: string]: string;\n };\n status?: components[\"schemas\"][\"ContactStatus\"];\n email_status?: components[\"schemas\"][\"EmailStatus\"];\n label_ids?: string[];\n labels?: string[];\n custom_fields?: {\n [key: string]: unknown;\n };\n notes?: string | components[\"schemas\"][\"ContactNoteInput\"];\n };\n UpdateContactInput: {\n /** Format: email */\n email?: string;\n first_name?: string;\n last_name?: string;\n phone?: string;\n company?: string;\n job_title?: string;\n status?: components[\"schemas\"][\"ContactStatus\"];\n email_status?: components[\"schemas\"][\"EmailStatus\"];\n label_ids?: string[];\n labels?: string[];\n custom_fields?: {\n [key: string]: unknown;\n };\n };\n ContactNoteInput: {\n content: string;\n attachments?: {\n /** Format: uri */\n url: string;\n name: string;\n type?: string;\n size?: number;\n }[];\n };\n ImportContactInput: {\n /** Format: email */\n email: string;\n first_name?: string;\n last_name?: string;\n phone?: string;\n company?: string;\n job_title?: string;\n label_ids?: string[];\n status?: string;\n };\n ImportContactsResult: {\n added: number;\n skipped: number;\n total: number;\n };\n Activity: {\n id: string;\n type: string;\n title: string | null;\n content: string | null;\n actor_name: string | null;\n actor_type: string | null;\n metadata: unknown;\n /** Format: date-time */\n created_at: string | null;\n };\n AddNoteInput: {\n content: string;\n };\n Deal: {\n id: string;\n title: string;\n description: string | null;\n value: number | null;\n currency: string | null;\n status: components[\"schemas\"][\"DealStatus\"];\n brand_name: string | null;\n /** Format: uri */\n brand_website: string | null;\n contact_id: string | null;\n contact_name: string | null;\n /** Format: email */\n contact_email: string | null;\n /** Format: date */\n start_date: string | null;\n /** Format: date */\n end_date: string | null;\n notes: string | null;\n /** Format: date-time */\n created_at: string | null;\n /** Format: date-time */\n updated_at: string | null;\n };\n DealCreateResult: {\n id: string;\n };\n DealUpdateResult: {\n /** @constant */\n success: true;\n };\n DealRemoveResult: {\n /** @constant */\n success: true;\n };\n /** @enum {string} */\n DealStatus:\n | \"draft\"\n | \"open\"\n | \"won\"\n | \"lost\"\n | \"negotiating\"\n | \"proposal_sent\"\n | \"on_hold\"\n | \"churned\";\n CreateDealInput: {\n title: string;\n description?: string;\n value?: number;\n currency?: string;\n brand_name?: string;\n /** Format: uri */\n brand_website?: string;\n contact_id?: string;\n contact_name?: string;\n /** Format: email */\n contact_email?: string;\n /** Format: date */\n start_date?: string;\n /** Format: date */\n end_date?: string;\n notes?: string;\n };\n UpdateDealInput: {\n title?: string;\n description?: string;\n value?: number;\n currency?: string;\n status?: components[\"schemas\"][\"DealStatus\"];\n brand_name?: string;\n /** Format: uri */\n brand_website?: string;\n contact_id?: string | null;\n contact_name?: string;\n /** Format: email */\n contact_email?: string;\n /** Format: date */\n start_date?: string;\n /** Format: date */\n end_date?: string;\n notes?: string;\n };\n GdprExport: {\n id: string;\n request_type: string;\n status: string;\n /** Format: date-time */\n submitted_at: string | null;\n /** Format: date-time */\n completed_at: string | null;\n /** Format: date-time */\n due_date?: string | null;\n /** Format: uri */\n download_url?: string | null;\n /** Format: date-time */\n expires_at?: string | null;\n };\n GdprExportRequest: {\n request_id: string;\n status: string;\n };\n /** @enum {string} */\n ConsentType: \"marketing_email\" | \"analytics_tracking\" | \"third_party_sharing\";\n RecordConsentInput: {\n /** Format: email */\n email: string;\n consent_type: components[\"schemas\"][\"ConsentType\"];\n granted: boolean;\n source?: string;\n ip_address?: string;\n consent_text?: string;\n version?: string;\n };\n ConsentRecord: {\n id: string;\n /** Format: email */\n email: string;\n consent_type: components[\"schemas\"][\"ConsentType\"];\n granted: boolean;\n /** Format: date-time */\n granted_at: string | null;\n /** Format: date-time */\n revoked_at: string | null;\n source?: string;\n version?: string;\n };\n ConsentResult: {\n id: string;\n };\n CookieConsentInput: {\n domain: string;\n consentStatus: string;\n /** Format: date-time */\n consentTimestamp: string;\n ipAddress?: string;\n userAgent?: string;\n cookiePreferences: {\n [key: string]: components[\"schemas\"][\"CookieCategoryConsent\"];\n };\n };\n CookieCategoryConsent: {\n allowed: boolean;\n cookieRecords?: {\n cookie: string;\n duration: string;\n description: string;\n }[];\n };\n CookieConsentResult: {\n success: boolean;\n logId?: string;\n };\n Workspace: {\n id: string;\n name: string;\n slug: string;\n } & {\n [key: string]: unknown;\n };\n ApiResponse_PostCreateResult: components[\"schemas\"][\"Envelope_PostCreateResult\"];\n ApiResponse_PostDetail: components[\"schemas\"][\"Envelope_PostDetail\"];\n ApiResponse_Success: components[\"schemas\"][\"Envelope_Success\"];\n ApiResponse_ScheduleResult: components[\"schemas\"][\"Envelope_ScheduleResult\"];\n ApiResponse_PublishResult: components[\"schemas\"][\"Envelope_PublishResult\"];\n ApiResponse_ChannelArray: components[\"schemas\"][\"Envelope_ChannelArray\"];\n ApiResponse_EmailSendResult: components[\"schemas\"][\"Envelope_EmailSendResult\"];\n ApiResponse_EmailSend: components[\"schemas\"][\"Envelope_EmailSend\"];\n ApiResponse_BatchSendSummary: components[\"schemas\"][\"Envelope_BatchSendSummary\"];\n ApiResponse_EmailTemplateArray: components[\"schemas\"][\"Envelope_EmailTemplateArray\"];\n ApiResponse_EmailTemplateDetail: components[\"schemas\"][\"Envelope_EmailTemplateDetail\"];\n ApiResponse_Contact: components[\"schemas\"][\"Envelope_Contact\"];\n ApiResponse_ContactCreateResult: components[\"schemas\"][\"Envelope_ContactCreateResult\"];\n ApiResponse_ContactUpdateResult: components[\"schemas\"][\"Envelope_ContactUpdateResult\"];\n ApiResponse_ContactRemoveResult: components[\"schemas\"][\"Envelope_ContactRemoveResult\"];\n ApiResponse_ContactNoteResult: components[\"schemas\"][\"Envelope_ContactNoteResult\"];\n ApiResponse_ImportContactsResult: components[\"schemas\"][\"Envelope_ImportContactsResult\"];\n ApiResponse_Deal: components[\"schemas\"][\"Envelope_Deal\"];\n ApiResponse_DealCreateResult: components[\"schemas\"][\"Envelope_DealCreateResult\"];\n ApiResponse_DealUpdateResult: components[\"schemas\"][\"Envelope_DealUpdateResult\"];\n ApiResponse_DealRemoveResult: components[\"schemas\"][\"Envelope_DealRemoveResult\"];\n ApiResponse_GdprExportRequest: components[\"schemas\"][\"Envelope_GdprExportRequest\"];\n ApiResponse_GdprExportArray: components[\"schemas\"][\"Envelope_GdprExportArray\"];\n ApiResponse_GdprExport: components[\"schemas\"][\"Envelope_GdprExport\"];\n ApiResponse_ConsentResult: components[\"schemas\"][\"Envelope_ConsentResult\"];\n ApiResponse_ConsentRecordArray: components[\"schemas\"][\"Envelope_ConsentRecordArray\"];\n ApiResponse_WorkspaceArray: components[\"schemas\"][\"Envelope_WorkspaceArray\"];\n PaginatedResponse_Post: {\n data: components[\"schemas\"][\"Post\"][];\n pagination: components[\"schemas\"][\"Pagination\"];\n };\n PaginatedResponse_Contact: {\n data: components[\"schemas\"][\"Contact\"][];\n pagination: components[\"schemas\"][\"Pagination\"];\n };\n PaginatedResponse_Activity: {\n data: components[\"schemas\"][\"Activity\"][];\n pagination: components[\"schemas\"][\"Pagination\"];\n };\n PaginatedResponse_Deal: {\n data: components[\"schemas\"][\"Deal\"][];\n pagination: components[\"schemas\"][\"Pagination\"];\n };\n Envelope_PostCreateResult: {\n data: components[\"schemas\"][\"PostCreateResult\"];\n };\n Envelope_PostDetail: {\n data: components[\"schemas\"][\"PostDetail\"];\n };\n Envelope_Success: {\n data: components[\"schemas\"][\"Success\"];\n };\n Envelope_ScheduleResult: {\n data: components[\"schemas\"][\"ScheduleResult\"];\n };\n Envelope_PublishResult: {\n data: components[\"schemas\"][\"PublishResult\"];\n };\n Envelope_ChannelArray: {\n data: components[\"schemas\"][\"Channel\"][];\n };\n Envelope_EmailSendResult: {\n data: components[\"schemas\"][\"EmailSendResult\"];\n };\n Envelope_EmailSend: {\n data: components[\"schemas\"][\"EmailSend\"];\n };\n Envelope_BatchSendSummary: {\n data: components[\"schemas\"][\"BatchSendSummary\"];\n };\n Envelope_EmailTemplateArray: {\n data: components[\"schemas\"][\"EmailTemplate\"][];\n };\n Envelope_EmailTemplateDetail: {\n data: components[\"schemas\"][\"EmailTemplateDetail\"];\n };\n Envelope_Contact: {\n data: components[\"schemas\"][\"Contact\"];\n };\n Envelope_ContactCreateResult: {\n data: components[\"schemas\"][\"ContactCreateResult\"];\n };\n Envelope_ContactUpdateResult: {\n data: components[\"schemas\"][\"ContactUpdateResult\"];\n };\n Envelope_ContactRemoveResult: {\n data: components[\"schemas\"][\"ContactRemoveResult\"];\n };\n Envelope_ContactNoteResult: {\n data: components[\"schemas\"][\"ContactNoteResult\"];\n };\n Envelope_ImportContactsResult: {\n data: components[\"schemas\"][\"ImportContactsResult\"];\n };\n Envelope_Deal: {\n data: components[\"schemas\"][\"Deal\"];\n };\n Envelope_DealCreateResult: {\n data: components[\"schemas\"][\"DealCreateResult\"];\n };\n Envelope_DealUpdateResult: {\n data: components[\"schemas\"][\"DealUpdateResult\"];\n };\n Envelope_DealRemoveResult: {\n data: components[\"schemas\"][\"DealRemoveResult\"];\n };\n Envelope_GdprExportRequest: {\n data: components[\"schemas\"][\"GdprExportRequest\"];\n };\n Envelope_GdprExportArray: {\n data: components[\"schemas\"][\"GdprExport\"][];\n };\n Envelope_GdprExport: {\n data: components[\"schemas\"][\"GdprExport\"];\n };\n Envelope_ConsentResult: {\n data: components[\"schemas\"][\"ConsentResult\"];\n };\n Envelope_ConsentRecordArray: {\n data: components[\"schemas\"][\"ConsentRecord\"][];\n };\n Envelope_WorkspaceArray: {\n data: components[\"schemas\"][\"Workspace\"][];\n };\n };\n responses: {\n /** @description API error. */\n ApiError: {\n headers: {\n [name: string]: unknown;\n };\n content: {\n \"application/json\": components[\"schemas\"][\"ApiError\"];\n };\n };\n };\n parameters: {\n Id: string;\n Slug: string;\n Cursor: string;\n Limit: number;\n };\n requestBodies: never;\n headers: never;\n pathItems: never;\n}\nexport type $defs = Record<string, never>;\nexport interface operations {\n listPosts: {\n parameters: {\n query?: {\n limit?: components[\"parameters\"][\"Limit\"];\n cursor?: components[\"parameters\"][\"Cursor\"];\n status?: string;\n type?: components[\"schemas\"][\"PostType\"];\n };\n header?: never;\n path?: never;\n cookie?: never;\n };\n requestBody?: never;\n responses: {\n /** @description Posts page. */\n 200: {\n headers: {\n [name: string]: unknown;\n };\n content: {\n \"application/json\": components[\"schemas\"][\"PaginatedResponse_Post\"];\n };\n };\n default: components[\"responses\"][\"ApiError\"];\n };\n };\n createPost: {\n parameters: {\n query?: never;\n header?: never;\n path?: never;\n cookie?: never;\n };\n requestBody: {\n content: {\n \"application/json\": components[\"schemas\"][\"CreatePostInput\"];\n };\n };\n responses: {\n /** @description Created post reference. */\n 200: {\n headers: {\n [name: string]: unknown;\n };\n content: {\n \"application/json\": components[\"schemas\"][\"ApiResponse_PostCreateResult\"];\n };\n };\n default: components[\"responses\"][\"ApiError\"];\n };\n };\n listPostChannels: {\n parameters: {\n query?: never;\n header?: never;\n path?: never;\n cookie?: never;\n };\n requestBody?: never;\n responses: {\n /** @description Connected channels. */\n 200: {\n headers: {\n [name: string]: unknown;\n };\n content: {\n \"application/json\": components[\"schemas\"][\"ApiResponse_ChannelArray\"];\n };\n };\n default: components[\"responses\"][\"ApiError\"];\n };\n };\n getPost: {\n parameters: {\n query?: never;\n header?: never;\n path: {\n id: components[\"parameters\"][\"Id\"];\n };\n cookie?: never;\n };\n requestBody?: never;\n responses: {\n /** @description Post detail. */\n 200: {\n headers: {\n [name: string]: unknown;\n };\n content: {\n \"application/json\": components[\"schemas\"][\"ApiResponse_PostDetail\"];\n };\n };\n default: components[\"responses\"][\"ApiError\"];\n };\n };\n deletePost: {\n parameters: {\n query?: never;\n header?: never;\n path: {\n id: components[\"parameters\"][\"Id\"];\n };\n cookie?: never;\n };\n requestBody?: never;\n responses: {\n /** @description Delete result. */\n 200: {\n headers: {\n [name: string]: unknown;\n };\n content: {\n \"application/json\": components[\"schemas\"][\"ApiResponse_Success\"];\n };\n };\n default: components[\"responses\"][\"ApiError\"];\n };\n };\n updatePost: {\n parameters: {\n query?: never;\n header?: never;\n path: {\n id: components[\"parameters\"][\"Id\"];\n };\n cookie?: never;\n };\n requestBody: {\n content: {\n \"application/json\": components[\"schemas\"][\"UpdatePostInput\"];\n };\n };\n responses: {\n /** @description Update result. */\n 200: {\n headers: {\n [name: string]: unknown;\n };\n content: {\n \"application/json\": components[\"schemas\"][\"ApiResponse_Success\"];\n };\n };\n default: components[\"responses\"][\"ApiError\"];\n };\n };\n schedulePost: {\n parameters: {\n query?: never;\n header?: never;\n path: {\n id: components[\"parameters\"][\"Id\"];\n };\n cookie?: never;\n };\n requestBody: {\n content: {\n \"application/json\": components[\"schemas\"][\"SchedulePostInput\"];\n };\n };\n responses: {\n /** @description Schedule result. */\n 200: {\n headers: {\n [name: string]: unknown;\n };\n content: {\n \"application/json\": components[\"schemas\"][\"ApiResponse_ScheduleResult\"];\n };\n };\n default: components[\"responses\"][\"ApiError\"];\n };\n };\n publishPost: {\n parameters: {\n query?: never;\n header?: never;\n path: {\n id: components[\"parameters\"][\"Id\"];\n };\n cookie?: never;\n };\n requestBody?: never;\n responses: {\n /** @description Publish result. */\n 200: {\n headers: {\n [name: string]: unknown;\n };\n content: {\n \"application/json\": components[\"schemas\"][\"ApiResponse_PublishResult\"];\n };\n };\n default: components[\"responses\"][\"ApiError\"];\n };\n };\n sendEmail: {\n parameters: {\n query?: never;\n header?: never;\n path?: never;\n cookie?: never;\n };\n requestBody: {\n content: {\n \"application/json\": components[\"schemas\"][\"SendEmailInput\"];\n };\n };\n responses: {\n /** @description Email queued. */\n 202: {\n headers: {\n [name: string]: unknown;\n };\n content: {\n \"application/json\": components[\"schemas\"][\"ApiResponse_EmailSendResult\"];\n };\n };\n default: components[\"responses\"][\"ApiError\"];\n };\n };\n batchSendEmails: {\n parameters: {\n query?: never;\n header?: never;\n path?: never;\n cookie?: never;\n };\n requestBody: {\n content: {\n \"application/json\": components[\"schemas\"][\"BatchSendInput\"];\n };\n };\n responses: {\n /** @description Batch queued. */\n 202: {\n headers: {\n [name: string]: unknown;\n };\n content: {\n \"application/json\": components[\"schemas\"][\"ApiResponse_BatchSendSummary\"];\n };\n };\n default: components[\"responses\"][\"ApiError\"];\n };\n };\n listEmailTemplates: {\n parameters: {\n query?: never;\n header?: never;\n path?: never;\n cookie?: never;\n };\n requestBody?: never;\n responses: {\n /** @description Active templates. */\n 200: {\n headers: {\n [name: string]: unknown;\n };\n content: {\n \"application/json\": components[\"schemas\"][\"ApiResponse_EmailTemplateArray\"];\n };\n };\n default: components[\"responses\"][\"ApiError\"];\n };\n };\n getEmailTemplate: {\n parameters: {\n query?: {\n locale?: string;\n fallback_locale?: string;\n };\n header?: never;\n path: {\n slug: components[\"parameters\"][\"Slug\"];\n };\n cookie?: never;\n };\n requestBody?: never;\n responses: {\n /** @description Email template detail. */\n 200: {\n headers: {\n [name: string]: unknown;\n };\n content: {\n \"application/json\": components[\"schemas\"][\"ApiResponse_EmailTemplateDetail\"];\n };\n };\n default: components[\"responses\"][\"ApiError\"];\n };\n };\n getEmailSend: {\n parameters: {\n query?: never;\n header?: never;\n path: {\n id: components[\"parameters\"][\"Id\"];\n };\n cookie?: never;\n };\n requestBody?: never;\n responses: {\n /** @description Sent email status. */\n 200: {\n headers: {\n [name: string]: unknown;\n };\n content: {\n \"application/json\": components[\"schemas\"][\"ApiResponse_EmailSend\"];\n };\n };\n default: components[\"responses\"][\"ApiError\"];\n };\n };\n listContacts: {\n parameters: {\n query?: {\n limit?: components[\"parameters\"][\"Limit\"];\n cursor?: components[\"parameters\"][\"Cursor\"];\n status?: components[\"schemas\"][\"ContactStatus\"];\n email_status?: components[\"schemas\"][\"EmailStatus\"];\n /** @description Comma-separated label IDs. */\n label_ids?: string;\n search?: string;\n };\n header?: never;\n path?: never;\n cookie?: never;\n };\n requestBody?: never;\n responses: {\n /** @description Contacts page. */\n 200: {\n headers: {\n [name: string]: unknown;\n };\n content: {\n \"application/json\": components[\"schemas\"][\"PaginatedResponse_Contact\"];\n };\n };\n default: components[\"responses\"][\"ApiError\"];\n };\n };\n createContact: {\n parameters: {\n query?: never;\n header?: never;\n path?: never;\n cookie?: never;\n };\n requestBody: {\n content: {\n \"application/json\": components[\"schemas\"][\"CreateContactInput\"];\n };\n };\n responses: {\n /** @description Created contact reference. */\n 200: {\n headers: {\n [name: string]: unknown;\n };\n content: {\n \"application/json\": components[\"schemas\"][\"ApiResponse_ContactCreateResult\"];\n };\n };\n default: components[\"responses\"][\"ApiError\"];\n };\n };\n importContacts: {\n parameters: {\n query?: never;\n header?: never;\n path?: never;\n cookie?: never;\n };\n requestBody: {\n content: {\n \"application/json\": {\n contacts: components[\"schemas\"][\"ImportContactInput\"][];\n };\n };\n };\n responses: {\n /** @description Import summary. */\n 200: {\n headers: {\n [name: string]: unknown;\n };\n content: {\n \"application/json\": components[\"schemas\"][\"ApiResponse_ImportContactsResult\"];\n };\n };\n default: components[\"responses\"][\"ApiError\"];\n };\n };\n getContact: {\n parameters: {\n query?: never;\n header?: never;\n path: {\n id: components[\"parameters\"][\"Id\"];\n };\n cookie?: never;\n };\n requestBody?: never;\n responses: {\n /** @description Contact. */\n 200: {\n headers: {\n [name: string]: unknown;\n };\n content: {\n \"application/json\": components[\"schemas\"][\"ApiResponse_Contact\"];\n };\n };\n default: components[\"responses\"][\"ApiError\"];\n };\n };\n deleteContact: {\n parameters: {\n query?: never;\n header?: never;\n path: {\n id: components[\"parameters\"][\"Id\"];\n };\n cookie?: never;\n };\n requestBody?: never;\n responses: {\n /** @description Delete result. */\n 200: {\n headers: {\n [name: string]: unknown;\n };\n content: {\n \"application/json\": components[\"schemas\"][\"ApiResponse_ContactRemoveResult\"];\n };\n };\n default: components[\"responses\"][\"ApiError\"];\n };\n };\n updateContact: {\n parameters: {\n query?: never;\n header?: never;\n path: {\n id: components[\"parameters\"][\"Id\"];\n };\n cookie?: never;\n };\n requestBody: {\n content: {\n \"application/json\": components[\"schemas\"][\"UpdateContactInput\"];\n };\n };\n responses: {\n /** @description Update result. */\n 200: {\n headers: {\n [name: string]: unknown;\n };\n content: {\n \"application/json\": components[\"schemas\"][\"ApiResponse_ContactUpdateResult\"];\n };\n };\n default: components[\"responses\"][\"ApiError\"];\n };\n };\n listContactActivities: {\n parameters: {\n query?: {\n limit?: components[\"parameters\"][\"Limit\"];\n cursor?: components[\"parameters\"][\"Cursor\"];\n };\n header?: never;\n path: {\n id: components[\"parameters\"][\"Id\"];\n };\n cookie?: never;\n };\n requestBody?: never;\n responses: {\n /** @description Contact activities page. */\n 200: {\n headers: {\n [name: string]: unknown;\n };\n content: {\n \"application/json\": components[\"schemas\"][\"PaginatedResponse_Activity\"];\n };\n };\n default: components[\"responses\"][\"ApiError\"];\n };\n };\n addContactNote: {\n parameters: {\n query?: never;\n header?: never;\n path: {\n id: components[\"parameters\"][\"Id\"];\n };\n cookie?: never;\n };\n requestBody: {\n content: {\n \"application/json\": components[\"schemas\"][\"AddNoteInput\"];\n };\n };\n responses: {\n /** @description Created note reference. */\n 200: {\n headers: {\n [name: string]: unknown;\n };\n content: {\n \"application/json\": components[\"schemas\"][\"ApiResponse_ContactNoteResult\"];\n };\n };\n default: components[\"responses\"][\"ApiError\"];\n };\n };\n listDeals: {\n parameters: {\n query?: {\n limit?: components[\"parameters\"][\"Limit\"];\n cursor?: components[\"parameters\"][\"Cursor\"];\n status?: components[\"schemas\"][\"DealStatus\"];\n search?: string;\n };\n header?: never;\n path?: never;\n cookie?: never;\n };\n requestBody?: never;\n responses: {\n /** @description Deals page. */\n 200: {\n headers: {\n [name: string]: unknown;\n };\n content: {\n \"application/json\": components[\"schemas\"][\"PaginatedResponse_Deal\"];\n };\n };\n default: components[\"responses\"][\"ApiError\"];\n };\n };\n createDeal: {\n parameters: {\n query?: never;\n header?: never;\n path?: never;\n cookie?: never;\n };\n requestBody: {\n content: {\n \"application/json\": components[\"schemas\"][\"CreateDealInput\"];\n };\n };\n responses: {\n /** @description Created deal reference. */\n 200: {\n headers: {\n [name: string]: unknown;\n };\n content: {\n \"application/json\": components[\"schemas\"][\"ApiResponse_DealCreateResult\"];\n };\n };\n default: components[\"responses\"][\"ApiError\"];\n };\n };\n getDeal: {\n parameters: {\n query?: never;\n header?: never;\n path: {\n id: components[\"parameters\"][\"Id\"];\n };\n cookie?: never;\n };\n requestBody?: never;\n responses: {\n /** @description Deal. */\n 200: {\n headers: {\n [name: string]: unknown;\n };\n content: {\n \"application/json\": components[\"schemas\"][\"ApiResponse_Deal\"];\n };\n };\n default: components[\"responses\"][\"ApiError\"];\n };\n };\n deleteDeal: {\n parameters: {\n query?: never;\n header?: never;\n path: {\n id: components[\"parameters\"][\"Id\"];\n };\n cookie?: never;\n };\n requestBody?: never;\n responses: {\n /** @description Delete result. */\n 200: {\n headers: {\n [name: string]: unknown;\n };\n content: {\n \"application/json\": components[\"schemas\"][\"ApiResponse_DealRemoveResult\"];\n };\n };\n default: components[\"responses\"][\"ApiError\"];\n };\n };\n updateDeal: {\n parameters: {\n query?: never;\n header?: never;\n path: {\n id: components[\"parameters\"][\"Id\"];\n };\n cookie?: never;\n };\n requestBody: {\n content: {\n \"application/json\": components[\"schemas\"][\"UpdateDealInput\"];\n };\n };\n responses: {\n /** @description Update result. */\n 200: {\n headers: {\n [name: string]: unknown;\n };\n content: {\n \"application/json\": components[\"schemas\"][\"ApiResponse_DealUpdateResult\"];\n };\n };\n default: components[\"responses\"][\"ApiError\"];\n };\n };\n requestGdprExport: {\n parameters: {\n query?: never;\n header?: never;\n path?: never;\n cookie?: never;\n };\n requestBody?: never;\n responses: {\n /** @description Export request reference. */\n 200: {\n headers: {\n [name: string]: unknown;\n };\n content: {\n \"application/json\": components[\"schemas\"][\"ApiResponse_GdprExportRequest\"];\n };\n };\n default: components[\"responses\"][\"ApiError\"];\n };\n };\n listGdprExports: {\n parameters: {\n query?: never;\n header?: never;\n path?: never;\n cookie?: never;\n };\n requestBody?: never;\n responses: {\n /** @description Export requests. */\n 200: {\n headers: {\n [name: string]: unknown;\n };\n content: {\n \"application/json\": components[\"schemas\"][\"ApiResponse_GdprExportArray\"];\n };\n };\n default: components[\"responses\"][\"ApiError\"];\n };\n };\n getGdprExport: {\n parameters: {\n query?: never;\n header?: never;\n path: {\n id: components[\"parameters\"][\"Id\"];\n };\n cookie?: never;\n };\n requestBody?: never;\n responses: {\n /** @description Export request. */\n 200: {\n headers: {\n [name: string]: unknown;\n };\n content: {\n \"application/json\": components[\"schemas\"][\"ApiResponse_GdprExport\"];\n };\n };\n default: components[\"responses\"][\"ApiError\"];\n };\n };\n recordGdprConsent: {\n parameters: {\n query?: never;\n header?: never;\n path?: never;\n cookie?: never;\n };\n requestBody: {\n content: {\n \"application/json\": components[\"schemas\"][\"RecordConsentInput\"];\n };\n };\n responses: {\n /** @description Consent reference. */\n 200: {\n headers: {\n [name: string]: unknown;\n };\n content: {\n \"application/json\": components[\"schemas\"][\"ApiResponse_ConsentResult\"];\n };\n };\n default: components[\"responses\"][\"ApiError\"];\n };\n };\n getGdprConsent: {\n parameters: {\n query?: never;\n header?: never;\n path: {\n email: string;\n };\n cookie?: never;\n };\n requestBody?: never;\n responses: {\n /** @description Consent records. */\n 200: {\n headers: {\n [name: string]: unknown;\n };\n content: {\n \"application/json\": components[\"schemas\"][\"ApiResponse_ConsentRecordArray\"];\n };\n };\n default: components[\"responses\"][\"ApiError\"];\n };\n };\n recordCookieConsent: {\n parameters: {\n query?: never;\n header?: never;\n path?: never;\n cookie?: never;\n };\n requestBody: {\n content: {\n \"application/json\": components[\"schemas\"][\"CookieConsentInput\"];\n };\n };\n responses: {\n /** @description Cookie consent result. */\n 200: {\n headers: {\n [name: string]: unknown;\n };\n content: {\n \"application/json\": components[\"schemas\"][\"CookieConsentResult\"];\n };\n };\n default: components[\"responses\"][\"ApiError\"];\n };\n };\n listWorkspaces: {\n parameters: {\n query?: never;\n header?: never;\n path?: never;\n cookie?: never;\n };\n requestBody?: never;\n responses: {\n /** @description Workspaces. */\n 200: {\n headers: {\n [name: string]: unknown;\n };\n content: {\n \"application/json\": components[\"schemas\"][\"ApiResponse_WorkspaceArray\"];\n };\n };\n default: components[\"responses\"][\"ApiError\"];\n };\n };\n}\n"],"mappings":";;;;;;;;;;;;;;;;AAAA;AAAA;","names":[]}
|
|
1
|
+
{"version":3,"sources":["../../src/openapi.generated.ts"],"sourcesContent":["/**\n * This file was auto-generated by openapi-typescript.\n * Do not make direct changes to the file.\n */\n\nexport interface paths {\n \"/api/v1/posts\": {\n parameters: {\n query?: never;\n header?: never;\n path?: never;\n cookie?: never;\n };\n /** List posts */\n get: operations[\"listPosts\"];\n put?: never;\n /** Create a post */\n post: operations[\"createPost\"];\n delete?: never;\n options?: never;\n head?: never;\n patch?: never;\n trace?: never;\n };\n \"/api/v1/posts/channels\": {\n parameters: {\n query?: never;\n header?: never;\n path?: never;\n cookie?: never;\n };\n /** List connected post channels */\n get: operations[\"listPostChannels\"];\n put?: never;\n post?: never;\n delete?: never;\n options?: never;\n head?: never;\n patch?: never;\n trace?: never;\n };\n \"/api/v1/posts/{id}\": {\n parameters: {\n query?: never;\n header?: never;\n path: {\n id: components[\"parameters\"][\"Id\"];\n };\n cookie?: never;\n };\n /** Get post detail */\n get: operations[\"getPost\"];\n put?: never;\n post?: never;\n /** Delete a post */\n delete: operations[\"deletePost\"];\n options?: never;\n head?: never;\n /** Update a draft post */\n patch: operations[\"updatePost\"];\n trace?: never;\n };\n \"/api/v1/posts/{id}/schedule\": {\n parameters: {\n query?: never;\n header?: never;\n path: {\n id: components[\"parameters\"][\"Id\"];\n };\n cookie?: never;\n };\n get?: never;\n put?: never;\n /** Schedule a post */\n post: operations[\"schedulePost\"];\n delete?: never;\n options?: never;\n head?: never;\n patch?: never;\n trace?: never;\n };\n \"/api/v1/posts/{id}/publish\": {\n parameters: {\n query?: never;\n header?: never;\n path: {\n id: components[\"parameters\"][\"Id\"];\n };\n cookie?: never;\n };\n get?: never;\n put?: never;\n /** Publish a post */\n post: operations[\"publishPost\"];\n delete?: never;\n options?: never;\n head?: never;\n patch?: never;\n trace?: never;\n };\n \"/api/v1/emails\": {\n parameters: {\n query?: never;\n header?: never;\n path?: never;\n cookie?: never;\n };\n get?: never;\n put?: never;\n /** Send a transactional email */\n post: operations[\"sendEmail\"];\n delete?: never;\n options?: never;\n head?: never;\n patch?: never;\n trace?: never;\n };\n \"/api/v1/emails/batch\": {\n parameters: {\n query?: never;\n header?: never;\n path?: never;\n cookie?: never;\n };\n get?: never;\n put?: never;\n /** Send a batch of transactional emails */\n post: operations[\"batchSendEmails\"];\n delete?: never;\n options?: never;\n head?: never;\n patch?: never;\n trace?: never;\n };\n \"/api/v1/emails/templates\": {\n parameters: {\n query?: never;\n header?: never;\n path?: never;\n cookie?: never;\n };\n /** List active email templates */\n get: operations[\"listEmailTemplates\"];\n put?: never;\n post?: never;\n delete?: never;\n options?: never;\n head?: never;\n patch?: never;\n trace?: never;\n };\n \"/api/v1/emails/templates/{slug}\": {\n parameters: {\n query?: never;\n header?: never;\n path: {\n slug: components[\"parameters\"][\"Slug\"];\n };\n cookie?: never;\n };\n /** Get an email template */\n get: operations[\"getEmailTemplate\"];\n put?: never;\n post?: never;\n delete?: never;\n options?: never;\n head?: never;\n patch?: never;\n trace?: never;\n };\n \"/api/v1/emails/{id}\": {\n parameters: {\n query?: never;\n header?: never;\n path: {\n id: components[\"parameters\"][\"Id\"];\n };\n cookie?: never;\n };\n /** Get sent email status */\n get: operations[\"getEmailSend\"];\n put?: never;\n post?: never;\n delete?: never;\n options?: never;\n head?: never;\n patch?: never;\n trace?: never;\n };\n \"/api/v1/contacts\": {\n parameters: {\n query?: never;\n header?: never;\n path?: never;\n cookie?: never;\n };\n /** List contacts */\n get: operations[\"listContacts\"];\n put?: never;\n /** Create a contact */\n post: operations[\"createContact\"];\n delete?: never;\n options?: never;\n head?: never;\n patch?: never;\n trace?: never;\n };\n \"/api/v1/contacts/import\": {\n parameters: {\n query?: never;\n header?: never;\n path?: never;\n cookie?: never;\n };\n get?: never;\n put?: never;\n /** Import contacts */\n post: operations[\"importContacts\"];\n delete?: never;\n options?: never;\n head?: never;\n patch?: never;\n trace?: never;\n };\n \"/api/v1/contacts/{id}\": {\n parameters: {\n query?: never;\n header?: never;\n path: {\n id: components[\"parameters\"][\"Id\"];\n };\n cookie?: never;\n };\n /** Get a contact */\n get: operations[\"getContact\"];\n put?: never;\n post?: never;\n /** Delete a contact */\n delete: operations[\"deleteContact\"];\n options?: never;\n head?: never;\n /** Update a contact */\n patch: operations[\"updateContact\"];\n trace?: never;\n };\n \"/api/v1/contacts/{id}/activities\": {\n parameters: {\n query?: never;\n header?: never;\n path: {\n id: components[\"parameters\"][\"Id\"];\n };\n cookie?: never;\n };\n /** List contact activities */\n get: operations[\"listContactActivities\"];\n put?: never;\n post?: never;\n delete?: never;\n options?: never;\n head?: never;\n patch?: never;\n trace?: never;\n };\n \"/api/v1/contacts/{id}/notes\": {\n parameters: {\n query?: never;\n header?: never;\n path: {\n id: components[\"parameters\"][\"Id\"];\n };\n cookie?: never;\n };\n get?: never;\n put?: never;\n /** Add a contact note */\n post: operations[\"addContactNote\"];\n delete?: never;\n options?: never;\n head?: never;\n patch?: never;\n trace?: never;\n };\n \"/api/v1/deals\": {\n parameters: {\n query?: never;\n header?: never;\n path?: never;\n cookie?: never;\n };\n /** List deals */\n get: operations[\"listDeals\"];\n put?: never;\n /** Create a deal */\n post: operations[\"createDeal\"];\n delete?: never;\n options?: never;\n head?: never;\n patch?: never;\n trace?: never;\n };\n \"/api/v1/deals/{id}\": {\n parameters: {\n query?: never;\n header?: never;\n path: {\n id: components[\"parameters\"][\"Id\"];\n };\n cookie?: never;\n };\n /** Get a deal */\n get: operations[\"getDeal\"];\n put?: never;\n post?: never;\n /** Delete a deal */\n delete: operations[\"deleteDeal\"];\n options?: never;\n head?: never;\n /** Update a deal */\n patch: operations[\"updateDeal\"];\n trace?: never;\n };\n \"/api/v1/gdpr/export\": {\n parameters: {\n query?: never;\n header?: never;\n path?: never;\n cookie?: never;\n };\n get?: never;\n put?: never;\n /** Request a GDPR export */\n post: operations[\"requestGdprExport\"];\n delete?: never;\n options?: never;\n head?: never;\n patch?: never;\n trace?: never;\n };\n \"/api/v1/gdpr/exports\": {\n parameters: {\n query?: never;\n header?: never;\n path?: never;\n cookie?: never;\n };\n /** List GDPR exports */\n get: operations[\"listGdprExports\"];\n put?: never;\n post?: never;\n delete?: never;\n options?: never;\n head?: never;\n patch?: never;\n trace?: never;\n };\n \"/api/v1/gdpr/exports/{id}\": {\n parameters: {\n query?: never;\n header?: never;\n path: {\n id: components[\"parameters\"][\"Id\"];\n };\n cookie?: never;\n };\n /** Get a GDPR export */\n get: operations[\"getGdprExport\"];\n put?: never;\n post?: never;\n delete?: never;\n options?: never;\n head?: never;\n patch?: never;\n trace?: never;\n };\n \"/api/v1/gdpr/consent\": {\n parameters: {\n query?: never;\n header?: never;\n path?: never;\n cookie?: never;\n };\n get?: never;\n put?: never;\n /** Record GDPR consent */\n post: operations[\"recordGdprConsent\"];\n delete?: never;\n options?: never;\n head?: never;\n patch?: never;\n trace?: never;\n };\n \"/api/v1/gdpr/consent/{email}\": {\n parameters: {\n query?: never;\n header?: never;\n path: {\n email: string;\n };\n cookie?: never;\n };\n /** Get GDPR consent records */\n get: operations[\"getGdprConsent\"];\n put?: never;\n post?: never;\n delete?: never;\n options?: never;\n head?: never;\n patch?: never;\n trace?: never;\n };\n \"/api/cookie-consent\": {\n parameters: {\n query?: never;\n header?: never;\n path?: never;\n cookie?: never;\n };\n get?: never;\n put?: never;\n /** Record cookie consent */\n post: operations[\"recordCookieConsent\"];\n delete?: never;\n options?: never;\n head?: never;\n patch?: never;\n trace?: never;\n };\n \"/api/v1/me/workspaces\": {\n parameters: {\n query?: never;\n header?: never;\n path?: never;\n cookie?: never;\n };\n /** List accessible workspaces */\n get: operations[\"listWorkspaces\"];\n put?: never;\n post?: never;\n delete?: never;\n options?: never;\n head?: never;\n patch?: never;\n trace?: never;\n };\n \"/api/v1/helpdesk/conversations\": {\n parameters: {\n query?: never;\n header?: never;\n path?: never;\n cookie?: never;\n };\n /** List helpdesk conversations */\n get: operations[\"listHelpdeskConversations\"];\n put?: never;\n post?: never;\n delete?: never;\n options?: never;\n head?: never;\n patch?: never;\n trace?: never;\n };\n \"/api/v1/helpdesk/conversations/{id}\": {\n parameters: {\n query?: never;\n header?: never;\n path: {\n id: components[\"parameters\"][\"Id\"];\n };\n cookie?: never;\n };\n /** Get a helpdesk conversation */\n get: operations[\"getHelpdeskConversation\"];\n put?: never;\n post?: never;\n delete?: never;\n options?: never;\n head?: never;\n /**\n * Update a conversation's status or assignee\n * @description Set `status` and/or `assignee_user_id` (`null` unassigns). At least one field is required. Capability-scoped tokens must send `Idempotency-Key` and `X-Capability-Confirmation` headers on this route; API keys with legacy scopes may omit them.\n */\n patch: operations[\"updateHelpdeskConversation\"];\n trace?: never;\n };\n \"/api/v1/helpdesk/conversations/{id}/messages\": {\n parameters: {\n query?: never;\n header?: never;\n path: {\n id: components[\"parameters\"][\"Id\"];\n };\n cookie?: never;\n };\n /** List conversation messages */\n get: operations[\"listHelpdeskConversationMessages\"];\n put?: never;\n post?: never;\n delete?: never;\n options?: never;\n head?: never;\n patch?: never;\n trace?: never;\n };\n \"/api/v1/helpdesk/replies\": {\n parameters: {\n query?: never;\n header?: never;\n path?: never;\n cookie?: never;\n };\n get?: never;\n put?: never;\n /**\n * Send an operator reply or internal note\n * @description Send an `Idempotency-Key` header so retried requests do not create duplicate messages — it is required for capability-scoped tokens (together with `X-Capability-Confirmation`).\n */\n post: operations[\"createHelpdeskReply\"];\n delete?: never;\n options?: never;\n head?: never;\n patch?: never;\n trace?: never;\n };\n \"/api/v1/webhooks\": {\n parameters: {\n query?: never;\n header?: never;\n path?: never;\n cookie?: never;\n };\n /** List webhook endpoints */\n get: operations[\"listWebhooks\"];\n put?: never;\n /**\n * Create a webhook endpoint\n * @description The response's `data.secret` contains the signing secret EXACTLY ONCE — it can never be retrieved again, so store it securely immediately. An idempotent replay (same `Idempotency-Key`) returns the existing endpoint WITHOUT `secret`. Deliveries are HTTP POSTs signed with `X-Medal-Signature: sha256=<base64(HMAC-SHA256(\"{timestamp}.{rawBody}\", secret))>` plus `X-Medal-Timestamp`, `X-Medal-Event`, and `X-Medal-Delivery-Id` / `Idempotency-Key` headers.\n */\n post: operations[\"createWebhook\"];\n delete?: never;\n options?: never;\n head?: never;\n patch?: never;\n trace?: never;\n };\n \"/api/v1/webhooks/{id}\": {\n parameters: {\n query?: never;\n header?: never;\n path: {\n id: components[\"parameters\"][\"Id\"];\n };\n cookie?: never;\n };\n /** Get a webhook endpoint */\n get: operations[\"getWebhook\"];\n put?: never;\n post?: never;\n /**\n * Delete a webhook endpoint\n * @description Permanently deletes the endpoint and stops all outbound deliveries. Capability-scoped tokens must send `Idempotency-Key` and `X-Capability-Confirmation` headers on this route; API keys with legacy scopes may omit them.\n */\n delete: operations[\"deleteWebhook\"];\n options?: never;\n head?: never;\n /**\n * Update a webhook endpoint\n * @description Only provided fields change. Pass `null` for `channels` or `channel_connection_ids` to clear that filter.\n */\n patch: operations[\"updateWebhook\"];\n trace?: never;\n };\n \"/api/v1/webhooks/{id}/deliveries\": {\n parameters: {\n query?: never;\n header?: never;\n path: {\n id: components[\"parameters\"][\"Id\"];\n };\n cookie?: never;\n };\n /** List recent deliveries */\n get: operations[\"listWebhookDeliveries\"];\n put?: never;\n post?: never;\n delete?: never;\n options?: never;\n head?: never;\n patch?: never;\n trace?: never;\n };\n \"/api/v1/webhooks/{id}/test\": {\n parameters: {\n query?: never;\n header?: never;\n path: {\n id: components[\"parameters\"][\"Id\"];\n };\n cookie?: never;\n };\n get?: never;\n put?: never;\n /**\n * Queue a test delivery\n * @description Queues a signed `test.ping` delivery to the endpoint.\n */\n post: operations[\"testWebhook\"];\n delete?: never;\n options?: never;\n head?: never;\n patch?: never;\n trace?: never;\n };\n}\nexport type webhooks = Record<string, never>;\nexport interface components {\n schemas: {\n ApiError: {\n error: {\n code: string;\n message: string;\n details?: unknown;\n };\n };\n Pagination: {\n has_more: boolean;\n next_cursor: string | null;\n };\n Success: {\n success: boolean;\n };\n PostCreateResult: {\n id: string;\n };\n Post: {\n id: string;\n type: components[\"schemas\"][\"PostType\"];\n title: string | null;\n content: string;\n status: string;\n channel_ids: string[];\n variant_count: number;\n published_count: number;\n failed_count: number;\n /** Format: date-time */\n scheduled_at: string | null;\n /** Format: date-time */\n published_at: string | null;\n /** Format: date-time */\n created_at: string | null;\n /** Format: date-time */\n updated_at: string | null;\n };\n /** @enum {string} */\n PostType: \"social\" | \"newsletter\" | \"blog\";\n PostVariant: {\n id: string;\n channel_id: string;\n content: string;\n status: string;\n platform: string | null;\n channel_display_name: string | null;\n /** Format: date-time */\n scheduled_at: string | null;\n /** Format: date-time */\n published_at: string | null;\n platform_post_id: string | null;\n /** Format: uri */\n permalink: string | null;\n error: string | null;\n };\n PostDetail: components[\"schemas\"][\"Post\"] & {\n variants: components[\"schemas\"][\"PostVariant\"][];\n };\n Channel: {\n id: string;\n platform: string | null;\n display_name: string | null;\n platform_username: string | null;\n state: string;\n /** Format: date-time */\n connected_at: string | null;\n };\n CreatePostInput: {\n type?: components[\"schemas\"][\"PostType\"];\n title?: string;\n content: string;\n channel_ids: string[];\n };\n UpdatePostInput: {\n title?: string;\n content?: string;\n };\n SchedulePostInput: {\n scheduled_at: number | string;\n };\n ScheduleResult: {\n success: boolean;\n workflow_id: string;\n };\n PublishResult: {\n success: boolean;\n workflow_id: string;\n };\n SendEmailInput: {\n template_slug: string;\n /** Format: email */\n to: string;\n name?: string;\n locale?: string;\n fallback_locale?: string;\n variables?: {\n [key: string]: string;\n };\n contact_id?: string;\n };\n EmailSendResult: {\n id: string;\n status: string;\n };\n EmailSend: {\n id: string;\n status: string;\n /** Format: email */\n recipient_email: string;\n recipient_name: string | null;\n subject: string | null;\n template_id: string | null;\n contact_id: string | null;\n /** Format: date-time */\n queued_at: string | null;\n /** Format: date-time */\n sent_at: string | null;\n /** Format: date-time */\n delivered_at: string | null;\n /** Format: date-time */\n opened_at: string | null;\n /** Format: date-time */\n clicked_at: string | null;\n error_message: string | null;\n };\n BatchSendInput: {\n template_slug: string;\n default_locale?: string;\n recipients: {\n /** Format: email */\n email: string;\n name?: string;\n locale?: string;\n variables?: {\n [key: string]: string;\n };\n }[];\n };\n BatchSendSummary: {\n batch_id: string;\n total: number;\n queued: number;\n failed: number;\n };\n EmailTemplate: {\n id: string;\n name: string;\n slug: string;\n type: string | null;\n subject: string | null;\n default_locale: string;\n available_locales: string[];\n description: string | null;\n category: string | null;\n label_ids: string[];\n is_active: boolean;\n is_archived: boolean;\n version: number;\n /** Format: date-time */\n created_at: string | null;\n /** Format: date-time */\n updated_at: string | null;\n };\n EmailTemplateDetail: components[\"schemas\"][\"EmailTemplate\"] & {\n html_content: string | null;\n text_content: string | null;\n preview_text: string | null;\n from_name: string | null;\n /** Format: email */\n from_email: string | null;\n /** Format: email */\n reply_to: string | null;\n requested_locale: string | null;\n resolved_locale: string;\n content_source: string;\n localizations: {\n locale: string | null;\n subject: string | null;\n html_content: string | null;\n text_content: string | null;\n preview_text: string | null;\n }[];\n };\n Contact: {\n id: string;\n /** Format: email */\n email: string;\n first_name: string | null;\n last_name: string | null;\n phone: string | null;\n company: string | null;\n job_title: string | null;\n address: {\n [key: string]: string;\n } | null;\n status: components[\"schemas\"][\"ContactStatus\"];\n email_status: components[\"schemas\"][\"EmailStatus\"];\n label_ids: string[];\n source: string | null;\n custom_fields: {\n [key: string]: unknown;\n } | null;\n /** Format: date-time */\n created_at: string | null;\n /** Format: date-time */\n updated_at: string | null;\n };\n ContactCreateResult: {\n id: string;\n };\n ContactUpdateResult: {\n /** @constant */\n success: true;\n };\n ContactRemoveResult: {\n /** @constant */\n success: true;\n };\n ContactNoteResult: {\n id: string;\n };\n /** @enum {string} */\n ContactStatus: \"lead\" | \"prospect\" | \"customer\" | \"churned\" | \"archived\";\n /** @enum {string} */\n EmailStatus: \"subscribed\" | \"unsubscribed\" | \"bounced\" | \"complained\";\n CreateContactInput: {\n /** Format: email */\n email: string;\n first_name?: string;\n last_name?: string;\n phone?: string;\n company?: string;\n job_title?: string;\n address?: {\n [key: string]: string;\n };\n status?: components[\"schemas\"][\"ContactStatus\"];\n email_status?: components[\"schemas\"][\"EmailStatus\"];\n label_ids?: string[];\n labels?: string[];\n custom_fields?: {\n [key: string]: unknown;\n };\n notes?: string | components[\"schemas\"][\"ContactNoteInput\"];\n };\n UpdateContactInput: {\n /** Format: email */\n email?: string;\n first_name?: string;\n last_name?: string;\n phone?: string;\n company?: string;\n job_title?: string;\n status?: components[\"schemas\"][\"ContactStatus\"];\n email_status?: components[\"schemas\"][\"EmailStatus\"];\n label_ids?: string[];\n labels?: string[];\n custom_fields?: {\n [key: string]: unknown;\n };\n };\n ContactNoteInput: {\n content: string;\n attachments?: {\n /** Format: uri */\n url: string;\n name: string;\n type?: string;\n size?: number;\n }[];\n };\n ImportContactInput: {\n /** Format: email */\n email: string;\n first_name?: string;\n last_name?: string;\n phone?: string;\n company?: string;\n job_title?: string;\n label_ids?: string[];\n status?: string;\n };\n ImportContactsResult: {\n added: number;\n skipped: number;\n total: number;\n };\n Activity: {\n id: string;\n type: string;\n title: string | null;\n content: string | null;\n actor_name: string | null;\n actor_type: string | null;\n metadata: unknown;\n /** Format: date-time */\n created_at: string | null;\n };\n AddNoteInput: {\n content: string;\n };\n Deal: {\n id: string;\n title: string;\n description: string | null;\n value: number | null;\n currency: string | null;\n status: components[\"schemas\"][\"DealStatus\"];\n brand_name: string | null;\n /** Format: uri */\n brand_website: string | null;\n contact_id: string | null;\n contact_name: string | null;\n /** Format: email */\n contact_email: string | null;\n /** Format: date */\n start_date: string | null;\n /** Format: date */\n end_date: string | null;\n notes: string | null;\n /** Format: date-time */\n created_at: string | null;\n /** Format: date-time */\n updated_at: string | null;\n };\n DealCreateResult: {\n id: string;\n };\n DealUpdateResult: {\n /** @constant */\n success: true;\n };\n DealRemoveResult: {\n /** @constant */\n success: true;\n };\n /** @enum {string} */\n DealStatus:\n | \"draft\"\n | \"open\"\n | \"won\"\n | \"lost\"\n | \"negotiating\"\n | \"proposal_sent\"\n | \"on_hold\"\n | \"churned\";\n CreateDealInput: {\n title: string;\n description?: string;\n value?: number;\n currency?: string;\n brand_name?: string;\n /** Format: uri */\n brand_website?: string;\n contact_id?: string;\n contact_name?: string;\n /** Format: email */\n contact_email?: string;\n /** Format: date */\n start_date?: string;\n /** Format: date */\n end_date?: string;\n notes?: string;\n };\n UpdateDealInput: {\n title?: string;\n description?: string;\n value?: number;\n currency?: string;\n status?: components[\"schemas\"][\"DealStatus\"];\n brand_name?: string;\n /** Format: uri */\n brand_website?: string;\n contact_id?: string | null;\n contact_name?: string;\n /** Format: email */\n contact_email?: string;\n /** Format: date */\n start_date?: string;\n /** Format: date */\n end_date?: string;\n notes?: string;\n };\n GdprExport: {\n id: string;\n request_type: string;\n status: string;\n /** Format: date-time */\n submitted_at: string | null;\n /** Format: date-time */\n completed_at: string | null;\n /** Format: date-time */\n due_date?: string | null;\n /** Format: uri */\n download_url?: string | null;\n /** Format: date-time */\n expires_at?: string | null;\n };\n GdprExportRequest: {\n request_id: string;\n status: string;\n };\n /** @enum {string} */\n ConsentType: \"marketing_email\" | \"analytics_tracking\" | \"third_party_sharing\";\n RecordConsentInput: {\n /** Format: email */\n email: string;\n consent_type: components[\"schemas\"][\"ConsentType\"];\n granted: boolean;\n source?: string;\n ip_address?: string;\n consent_text?: string;\n version?: string;\n };\n ConsentRecord: {\n id: string;\n /** Format: email */\n email: string;\n consent_type: components[\"schemas\"][\"ConsentType\"];\n granted: boolean;\n /** Format: date-time */\n granted_at: string | null;\n /** Format: date-time */\n revoked_at: string | null;\n source?: string;\n version?: string;\n };\n ConsentResult: {\n id: string;\n };\n CookieConsentInput: {\n domain: string;\n consentStatus: string;\n /** Format: date-time */\n consentTimestamp: string;\n ipAddress?: string;\n userAgent?: string;\n cookiePreferences: {\n [key: string]: components[\"schemas\"][\"CookieCategoryConsent\"];\n };\n };\n CookieCategoryConsent: {\n allowed: boolean;\n cookieRecords?: {\n cookie: string;\n duration: string;\n description: string;\n }[];\n };\n CookieConsentResult: {\n success: boolean;\n logId?: string;\n };\n Workspace: {\n id: string;\n name: string;\n slug: string;\n } & {\n [key: string]: unknown;\n };\n /** @enum {string} */\n HelpdeskConversationStatus: \"open\" | \"snoozed\" | \"closed\";\n /** @enum {string} */\n HelpdeskMessageAuthorType: \"visitor\" | \"operator\" | \"ai\" | \"system\";\n /**\n * @description `note` is operator-internal and never delivered to the customer.\n * @enum {string}\n */\n HelpdeskMessageType: \"chat\" | \"email\" | \"note\";\n HelpdeskConversation: {\n id: string;\n /** @description Channel type, e.g. `widget`, `instagram`, `messenger`, `whatsapp`, `email`. */\n channel: string;\n channel_connection_id: string | null;\n status: components[\"schemas\"][\"HelpdeskConversationStatus\"];\n subject: string | null;\n assignee_user_id: string | null;\n contact_id: string | null;\n visitor_name: string | null;\n visitor_email: string | null;\n external_conversation_id: string | null;\n channel_account_id: string | null;\n message_count: number;\n unread_for_operator: number;\n /** @description Unix timestamp in milliseconds. */\n last_message_at: number;\n last_message_preview: string | null;\n last_message_author_type: components[\"schemas\"][\"HelpdeskMessageAuthorType\"] | null;\n /** @description Unix timestamp in milliseconds. */\n created_at: number;\n /** @description Unix timestamp in milliseconds. */\n updated_at: number;\n };\n HelpdeskMessage: {\n id: string;\n conversation_id: string;\n author_type: components[\"schemas\"][\"HelpdeskMessageAuthorType\"];\n message_type: components[\"schemas\"][\"HelpdeskMessageType\"];\n author_user_id: string | null;\n author_name: string | null;\n body: string;\n /** @description Unix timestamp in milliseconds. */\n created_at: number;\n };\n /** @description At least one field is required. */\n UpdateHelpdeskConversationInput: {\n status?: components[\"schemas\"][\"HelpdeskConversationStatus\"];\n /** @description User ID to assign, or `null` to unassign. */\n assignee_user_id?: string | null;\n };\n HelpdeskConversationUpdateResult: {\n id: string;\n status: components[\"schemas\"][\"HelpdeskConversationStatus\"];\n assignee_user_id: string | null;\n };\n CreateHelpdeskReplyInput: {\n conversation_id: string;\n body: string;\n /**\n * @description `note` = operator-internal note (not delivered to the customer). Default `chat`.\n * @enum {string}\n */\n message_type?: \"chat\" | \"note\";\n /** @description Agent display name for bridged replies (shown in widget + inbox). */\n author_name?: string;\n };\n HelpdeskReplyCreateResult: {\n id: string;\n conversation_id: string;\n /** @constant */\n status: \"created\";\n };\n WebhookEndpoint: {\n id: string;\n name: string;\n /**\n * Format: uri\n * @description Destination URL (must be https).\n */\n url: string;\n enabled: boolean;\n /** @description Subscribed event types. Empty array = all events. */\n event_types: string[];\n /** @description Channel-type filter (e.g. `['widget', 'whatsapp']`), or `null` for all channels. */\n channels: string[] | null;\n /** @description Channel-connection filter, or `null` for all connections. */\n channel_connection_ids: string[] | null;\n /** @description Last 4 characters of the signing secret, for identification. */\n secret_last4: string;\n consecutive_failures: number;\n /** @description Unix timestamp in milliseconds, or `null` if never. */\n last_delivery_at: number | null;\n /** @description Unix timestamp in milliseconds, or `null` if never. */\n last_success_at: number | null;\n /** @description Unix timestamp in milliseconds, or `null` if never. */\n last_error_at: number | null;\n last_error: string | null;\n /** @description Unix timestamp in milliseconds. */\n created_at: number;\n /** @description Unix timestamp in milliseconds. */\n updated_at: number;\n /** @description Full signing secret (`whsec_…`) — present ONLY in the create response, exactly once. It can never be retrieved again; store it securely immediately. An idempotent replay of the create request omits it. */\n secret?: string;\n };\n CreateWebhookInput: {\n name: string;\n /**\n * Format: uri\n * @description Destination URL — must be https.\n */\n url: string;\n /** @description Event types to subscribe to (e.g. `helpdesk.message_received`). Empty = all. */\n event_types: string[];\n /** @description Restrict to these channel types (e.g. `['widget', 'whatsapp']`). */\n channels?: string[];\n /** @description Restrict to these channel connection IDs. */\n channel_connection_ids?: string[];\n };\n /** @description Only provided fields change. */\n UpdateWebhookInput: {\n name?: string;\n /** Format: uri */\n url?: string;\n event_types?: string[];\n /** @description New channel-type filter, or `null` to clear the filter. */\n channels?: string[] | null;\n /** @description New channel-connection filter, or `null` to clear the filter. */\n channel_connection_ids?: string[] | null;\n enabled?: boolean;\n };\n WebhookDeleteResult: {\n id: string;\n /** @constant */\n status: \"deleted\";\n };\n WebhookDelivery: {\n id: string;\n event_type: string;\n /** @enum {string} */\n status: \"pending\" | \"delivered\" | \"dead_letter\";\n attempt_count: number;\n /** @description Unix timestamp in milliseconds of the next retry, or `null`. */\n next_attempt_at: number | null;\n response_status: number | null;\n duration_ms: number | null;\n last_error: string | null;\n /** @description Unix timestamp in milliseconds, or `null` if not delivered. */\n delivered_at: number | null;\n /** @description Unix timestamp in milliseconds. */\n created_at: number;\n };\n WebhookTestResult: {\n delivery_id: string;\n /** @constant */\n status: \"queued\";\n };\n ApiResponse_PostCreateResult: components[\"schemas\"][\"Envelope_PostCreateResult\"];\n ApiResponse_PostDetail: components[\"schemas\"][\"Envelope_PostDetail\"];\n ApiResponse_Success: components[\"schemas\"][\"Envelope_Success\"];\n ApiResponse_ScheduleResult: components[\"schemas\"][\"Envelope_ScheduleResult\"];\n ApiResponse_PublishResult: components[\"schemas\"][\"Envelope_PublishResult\"];\n ApiResponse_ChannelArray: components[\"schemas\"][\"Envelope_ChannelArray\"];\n ApiResponse_EmailSendResult: components[\"schemas\"][\"Envelope_EmailSendResult\"];\n ApiResponse_EmailSend: components[\"schemas\"][\"Envelope_EmailSend\"];\n ApiResponse_BatchSendSummary: components[\"schemas\"][\"Envelope_BatchSendSummary\"];\n ApiResponse_EmailTemplateArray: components[\"schemas\"][\"Envelope_EmailTemplateArray\"];\n ApiResponse_EmailTemplateDetail: components[\"schemas\"][\"Envelope_EmailTemplateDetail\"];\n ApiResponse_Contact: components[\"schemas\"][\"Envelope_Contact\"];\n ApiResponse_ContactCreateResult: components[\"schemas\"][\"Envelope_ContactCreateResult\"];\n ApiResponse_ContactUpdateResult: components[\"schemas\"][\"Envelope_ContactUpdateResult\"];\n ApiResponse_ContactRemoveResult: components[\"schemas\"][\"Envelope_ContactRemoveResult\"];\n ApiResponse_ContactNoteResult: components[\"schemas\"][\"Envelope_ContactNoteResult\"];\n ApiResponse_ImportContactsResult: components[\"schemas\"][\"Envelope_ImportContactsResult\"];\n ApiResponse_Deal: components[\"schemas\"][\"Envelope_Deal\"];\n ApiResponse_DealCreateResult: components[\"schemas\"][\"Envelope_DealCreateResult\"];\n ApiResponse_DealUpdateResult: components[\"schemas\"][\"Envelope_DealUpdateResult\"];\n ApiResponse_DealRemoveResult: components[\"schemas\"][\"Envelope_DealRemoveResult\"];\n ApiResponse_GdprExportRequest: components[\"schemas\"][\"Envelope_GdprExportRequest\"];\n ApiResponse_GdprExportArray: components[\"schemas\"][\"Envelope_GdprExportArray\"];\n ApiResponse_GdprExport: components[\"schemas\"][\"Envelope_GdprExport\"];\n ApiResponse_ConsentResult: components[\"schemas\"][\"Envelope_ConsentResult\"];\n ApiResponse_ConsentRecordArray: components[\"schemas\"][\"Envelope_ConsentRecordArray\"];\n ApiResponse_WorkspaceArray: components[\"schemas\"][\"Envelope_WorkspaceArray\"];\n ApiResponse_HelpdeskConversation: components[\"schemas\"][\"Envelope_HelpdeskConversation\"];\n ApiResponse_HelpdeskConversationUpdateResult: components[\"schemas\"][\"Envelope_HelpdeskConversationUpdateResult\"];\n ApiResponse_HelpdeskReplyCreateResult: components[\"schemas\"][\"Envelope_HelpdeskReplyCreateResult\"];\n ApiResponse_WebhookEndpoint: components[\"schemas\"][\"Envelope_WebhookEndpoint\"];\n ApiResponse_WebhookEndpointArray: components[\"schemas\"][\"Envelope_WebhookEndpointArray\"];\n ApiResponse_WebhookDeleteResult: components[\"schemas\"][\"Envelope_WebhookDeleteResult\"];\n ApiResponse_WebhookDeliveryArray: components[\"schemas\"][\"Envelope_WebhookDeliveryArray\"];\n ApiResponse_WebhookTestResult: components[\"schemas\"][\"Envelope_WebhookTestResult\"];\n PaginatedResponse_Post: {\n data: components[\"schemas\"][\"Post\"][];\n pagination: components[\"schemas\"][\"Pagination\"];\n };\n PaginatedResponse_Contact: {\n data: components[\"schemas\"][\"Contact\"][];\n pagination: components[\"schemas\"][\"Pagination\"];\n };\n PaginatedResponse_Activity: {\n data: components[\"schemas\"][\"Activity\"][];\n pagination: components[\"schemas\"][\"Pagination\"];\n };\n PaginatedResponse_Deal: {\n data: components[\"schemas\"][\"Deal\"][];\n pagination: components[\"schemas\"][\"Pagination\"];\n };\n PaginatedResponse_HelpdeskConversation: {\n data: components[\"schemas\"][\"HelpdeskConversation\"][];\n pagination: components[\"schemas\"][\"Pagination\"];\n };\n PaginatedResponse_HelpdeskMessage: {\n data: components[\"schemas\"][\"HelpdeskMessage\"][];\n pagination: components[\"schemas\"][\"Pagination\"];\n };\n Envelope_PostCreateResult: {\n data: components[\"schemas\"][\"PostCreateResult\"];\n };\n Envelope_PostDetail: {\n data: components[\"schemas\"][\"PostDetail\"];\n };\n Envelope_Success: {\n data: components[\"schemas\"][\"Success\"];\n };\n Envelope_ScheduleResult: {\n data: components[\"schemas\"][\"ScheduleResult\"];\n };\n Envelope_PublishResult: {\n data: components[\"schemas\"][\"PublishResult\"];\n };\n Envelope_ChannelArray: {\n data: components[\"schemas\"][\"Channel\"][];\n };\n Envelope_EmailSendResult: {\n data: components[\"schemas\"][\"EmailSendResult\"];\n };\n Envelope_EmailSend: {\n data: components[\"schemas\"][\"EmailSend\"];\n };\n Envelope_BatchSendSummary: {\n data: components[\"schemas\"][\"BatchSendSummary\"];\n };\n Envelope_EmailTemplateArray: {\n data: components[\"schemas\"][\"EmailTemplate\"][];\n };\n Envelope_EmailTemplateDetail: {\n data: components[\"schemas\"][\"EmailTemplateDetail\"];\n };\n Envelope_Contact: {\n data: components[\"schemas\"][\"Contact\"];\n };\n Envelope_ContactCreateResult: {\n data: components[\"schemas\"][\"ContactCreateResult\"];\n };\n Envelope_ContactUpdateResult: {\n data: components[\"schemas\"][\"ContactUpdateResult\"];\n };\n Envelope_ContactRemoveResult: {\n data: components[\"schemas\"][\"ContactRemoveResult\"];\n };\n Envelope_ContactNoteResult: {\n data: components[\"schemas\"][\"ContactNoteResult\"];\n };\n Envelope_ImportContactsResult: {\n data: components[\"schemas\"][\"ImportContactsResult\"];\n };\n Envelope_Deal: {\n data: components[\"schemas\"][\"Deal\"];\n };\n Envelope_DealCreateResult: {\n data: components[\"schemas\"][\"DealCreateResult\"];\n };\n Envelope_DealUpdateResult: {\n data: components[\"schemas\"][\"DealUpdateResult\"];\n };\n Envelope_DealRemoveResult: {\n data: components[\"schemas\"][\"DealRemoveResult\"];\n };\n Envelope_GdprExportRequest: {\n data: components[\"schemas\"][\"GdprExportRequest\"];\n };\n Envelope_GdprExportArray: {\n data: components[\"schemas\"][\"GdprExport\"][];\n };\n Envelope_GdprExport: {\n data: components[\"schemas\"][\"GdprExport\"];\n };\n Envelope_ConsentResult: {\n data: components[\"schemas\"][\"ConsentResult\"];\n };\n Envelope_ConsentRecordArray: {\n data: components[\"schemas\"][\"ConsentRecord\"][];\n };\n Envelope_WorkspaceArray: {\n data: components[\"schemas\"][\"Workspace\"][];\n };\n Envelope_HelpdeskConversation: {\n data: components[\"schemas\"][\"HelpdeskConversation\"];\n };\n Envelope_HelpdeskConversationUpdateResult: {\n data: components[\"schemas\"][\"HelpdeskConversationUpdateResult\"];\n };\n Envelope_HelpdeskReplyCreateResult: {\n data: components[\"schemas\"][\"HelpdeskReplyCreateResult\"];\n };\n Envelope_WebhookEndpoint: {\n data: components[\"schemas\"][\"WebhookEndpoint\"];\n };\n Envelope_WebhookEndpointArray: {\n data: components[\"schemas\"][\"WebhookEndpoint\"][];\n };\n Envelope_WebhookDeleteResult: {\n data: components[\"schemas\"][\"WebhookDeleteResult\"];\n };\n Envelope_WebhookDeliveryArray: {\n data: components[\"schemas\"][\"WebhookDelivery\"][];\n };\n Envelope_WebhookTestResult: {\n data: components[\"schemas\"][\"WebhookTestResult\"];\n };\n };\n responses: {\n /** @description API error. */\n ApiError: {\n headers: {\n [name: string]: unknown;\n };\n content: {\n \"application/json\": components[\"schemas\"][\"ApiError\"];\n };\n };\n };\n parameters: {\n Id: string;\n Slug: string;\n Cursor: string;\n Limit: number;\n };\n requestBodies: never;\n headers: never;\n pathItems: never;\n}\nexport type $defs = Record<string, never>;\nexport interface operations {\n listPosts: {\n parameters: {\n query?: {\n limit?: components[\"parameters\"][\"Limit\"];\n cursor?: components[\"parameters\"][\"Cursor\"];\n status?: string;\n type?: components[\"schemas\"][\"PostType\"];\n };\n header?: never;\n path?: never;\n cookie?: never;\n };\n requestBody?: never;\n responses: {\n /** @description Posts page. */\n 200: {\n headers: {\n [name: string]: unknown;\n };\n content: {\n \"application/json\": components[\"schemas\"][\"PaginatedResponse_Post\"];\n };\n };\n default: components[\"responses\"][\"ApiError\"];\n };\n };\n createPost: {\n parameters: {\n query?: never;\n header?: never;\n path?: never;\n cookie?: never;\n };\n requestBody: {\n content: {\n \"application/json\": components[\"schemas\"][\"CreatePostInput\"];\n };\n };\n responses: {\n /** @description Created post reference. */\n 200: {\n headers: {\n [name: string]: unknown;\n };\n content: {\n \"application/json\": components[\"schemas\"][\"ApiResponse_PostCreateResult\"];\n };\n };\n default: components[\"responses\"][\"ApiError\"];\n };\n };\n listPostChannels: {\n parameters: {\n query?: never;\n header?: never;\n path?: never;\n cookie?: never;\n };\n requestBody?: never;\n responses: {\n /** @description Connected channels. */\n 200: {\n headers: {\n [name: string]: unknown;\n };\n content: {\n \"application/json\": components[\"schemas\"][\"ApiResponse_ChannelArray\"];\n };\n };\n default: components[\"responses\"][\"ApiError\"];\n };\n };\n getPost: {\n parameters: {\n query?: never;\n header?: never;\n path: {\n id: components[\"parameters\"][\"Id\"];\n };\n cookie?: never;\n };\n requestBody?: never;\n responses: {\n /** @description Post detail. */\n 200: {\n headers: {\n [name: string]: unknown;\n };\n content: {\n \"application/json\": components[\"schemas\"][\"ApiResponse_PostDetail\"];\n };\n };\n default: components[\"responses\"][\"ApiError\"];\n };\n };\n deletePost: {\n parameters: {\n query?: never;\n header?: never;\n path: {\n id: components[\"parameters\"][\"Id\"];\n };\n cookie?: never;\n };\n requestBody?: never;\n responses: {\n /** @description Delete result. */\n 200: {\n headers: {\n [name: string]: unknown;\n };\n content: {\n \"application/json\": components[\"schemas\"][\"ApiResponse_Success\"];\n };\n };\n default: components[\"responses\"][\"ApiError\"];\n };\n };\n updatePost: {\n parameters: {\n query?: never;\n header?: never;\n path: {\n id: components[\"parameters\"][\"Id\"];\n };\n cookie?: never;\n };\n requestBody: {\n content: {\n \"application/json\": components[\"schemas\"][\"UpdatePostInput\"];\n };\n };\n responses: {\n /** @description Update result. */\n 200: {\n headers: {\n [name: string]: unknown;\n };\n content: {\n \"application/json\": components[\"schemas\"][\"ApiResponse_Success\"];\n };\n };\n default: components[\"responses\"][\"ApiError\"];\n };\n };\n schedulePost: {\n parameters: {\n query?: never;\n header?: never;\n path: {\n id: components[\"parameters\"][\"Id\"];\n };\n cookie?: never;\n };\n requestBody: {\n content: {\n \"application/json\": components[\"schemas\"][\"SchedulePostInput\"];\n };\n };\n responses: {\n /** @description Schedule result. */\n 200: {\n headers: {\n [name: string]: unknown;\n };\n content: {\n \"application/json\": components[\"schemas\"][\"ApiResponse_ScheduleResult\"];\n };\n };\n default: components[\"responses\"][\"ApiError\"];\n };\n };\n publishPost: {\n parameters: {\n query?: never;\n header?: never;\n path: {\n id: components[\"parameters\"][\"Id\"];\n };\n cookie?: never;\n };\n requestBody?: never;\n responses: {\n /** @description Publish result. */\n 200: {\n headers: {\n [name: string]: unknown;\n };\n content: {\n \"application/json\": components[\"schemas\"][\"ApiResponse_PublishResult\"];\n };\n };\n default: components[\"responses\"][\"ApiError\"];\n };\n };\n sendEmail: {\n parameters: {\n query?: never;\n header?: never;\n path?: never;\n cookie?: never;\n };\n requestBody: {\n content: {\n \"application/json\": components[\"schemas\"][\"SendEmailInput\"];\n };\n };\n responses: {\n /** @description Email queued. */\n 202: {\n headers: {\n [name: string]: unknown;\n };\n content: {\n \"application/json\": components[\"schemas\"][\"ApiResponse_EmailSendResult\"];\n };\n };\n default: components[\"responses\"][\"ApiError\"];\n };\n };\n batchSendEmails: {\n parameters: {\n query?: never;\n header?: never;\n path?: never;\n cookie?: never;\n };\n requestBody: {\n content: {\n \"application/json\": components[\"schemas\"][\"BatchSendInput\"];\n };\n };\n responses: {\n /** @description Batch queued. */\n 202: {\n headers: {\n [name: string]: unknown;\n };\n content: {\n \"application/json\": components[\"schemas\"][\"ApiResponse_BatchSendSummary\"];\n };\n };\n default: components[\"responses\"][\"ApiError\"];\n };\n };\n listEmailTemplates: {\n parameters: {\n query?: never;\n header?: never;\n path?: never;\n cookie?: never;\n };\n requestBody?: never;\n responses: {\n /** @description Active templates. */\n 200: {\n headers: {\n [name: string]: unknown;\n };\n content: {\n \"application/json\": components[\"schemas\"][\"ApiResponse_EmailTemplateArray\"];\n };\n };\n default: components[\"responses\"][\"ApiError\"];\n };\n };\n getEmailTemplate: {\n parameters: {\n query?: {\n locale?: string;\n fallback_locale?: string;\n };\n header?: never;\n path: {\n slug: components[\"parameters\"][\"Slug\"];\n };\n cookie?: never;\n };\n requestBody?: never;\n responses: {\n /** @description Email template detail. */\n 200: {\n headers: {\n [name: string]: unknown;\n };\n content: {\n \"application/json\": components[\"schemas\"][\"ApiResponse_EmailTemplateDetail\"];\n };\n };\n default: components[\"responses\"][\"ApiError\"];\n };\n };\n getEmailSend: {\n parameters: {\n query?: never;\n header?: never;\n path: {\n id: components[\"parameters\"][\"Id\"];\n };\n cookie?: never;\n };\n requestBody?: never;\n responses: {\n /** @description Sent email status. */\n 200: {\n headers: {\n [name: string]: unknown;\n };\n content: {\n \"application/json\": components[\"schemas\"][\"ApiResponse_EmailSend\"];\n };\n };\n default: components[\"responses\"][\"ApiError\"];\n };\n };\n listContacts: {\n parameters: {\n query?: {\n limit?: components[\"parameters\"][\"Limit\"];\n cursor?: components[\"parameters\"][\"Cursor\"];\n status?: components[\"schemas\"][\"ContactStatus\"];\n email_status?: components[\"schemas\"][\"EmailStatus\"];\n /** @description Comma-separated label IDs. */\n label_ids?: string;\n search?: string;\n };\n header?: never;\n path?: never;\n cookie?: never;\n };\n requestBody?: never;\n responses: {\n /** @description Contacts page. */\n 200: {\n headers: {\n [name: string]: unknown;\n };\n content: {\n \"application/json\": components[\"schemas\"][\"PaginatedResponse_Contact\"];\n };\n };\n default: components[\"responses\"][\"ApiError\"];\n };\n };\n createContact: {\n parameters: {\n query?: never;\n header?: never;\n path?: never;\n cookie?: never;\n };\n requestBody: {\n content: {\n \"application/json\": components[\"schemas\"][\"CreateContactInput\"];\n };\n };\n responses: {\n /** @description Created contact reference. */\n 200: {\n headers: {\n [name: string]: unknown;\n };\n content: {\n \"application/json\": components[\"schemas\"][\"ApiResponse_ContactCreateResult\"];\n };\n };\n default: components[\"responses\"][\"ApiError\"];\n };\n };\n importContacts: {\n parameters: {\n query?: never;\n header?: never;\n path?: never;\n cookie?: never;\n };\n requestBody: {\n content: {\n \"application/json\": {\n contacts: components[\"schemas\"][\"ImportContactInput\"][];\n };\n };\n };\n responses: {\n /** @description Import summary. */\n 200: {\n headers: {\n [name: string]: unknown;\n };\n content: {\n \"application/json\": components[\"schemas\"][\"ApiResponse_ImportContactsResult\"];\n };\n };\n default: components[\"responses\"][\"ApiError\"];\n };\n };\n getContact: {\n parameters: {\n query?: never;\n header?: never;\n path: {\n id: components[\"parameters\"][\"Id\"];\n };\n cookie?: never;\n };\n requestBody?: never;\n responses: {\n /** @description Contact. */\n 200: {\n headers: {\n [name: string]: unknown;\n };\n content: {\n \"application/json\": components[\"schemas\"][\"ApiResponse_Contact\"];\n };\n };\n default: components[\"responses\"][\"ApiError\"];\n };\n };\n deleteContact: {\n parameters: {\n query?: never;\n header?: never;\n path: {\n id: components[\"parameters\"][\"Id\"];\n };\n cookie?: never;\n };\n requestBody?: never;\n responses: {\n /** @description Delete result. */\n 200: {\n headers: {\n [name: string]: unknown;\n };\n content: {\n \"application/json\": components[\"schemas\"][\"ApiResponse_ContactRemoveResult\"];\n };\n };\n default: components[\"responses\"][\"ApiError\"];\n };\n };\n updateContact: {\n parameters: {\n query?: never;\n header?: never;\n path: {\n id: components[\"parameters\"][\"Id\"];\n };\n cookie?: never;\n };\n requestBody: {\n content: {\n \"application/json\": components[\"schemas\"][\"UpdateContactInput\"];\n };\n };\n responses: {\n /** @description Update result. */\n 200: {\n headers: {\n [name: string]: unknown;\n };\n content: {\n \"application/json\": components[\"schemas\"][\"ApiResponse_ContactUpdateResult\"];\n };\n };\n default: components[\"responses\"][\"ApiError\"];\n };\n };\n listContactActivities: {\n parameters: {\n query?: {\n limit?: components[\"parameters\"][\"Limit\"];\n cursor?: components[\"parameters\"][\"Cursor\"];\n };\n header?: never;\n path: {\n id: components[\"parameters\"][\"Id\"];\n };\n cookie?: never;\n };\n requestBody?: never;\n responses: {\n /** @description Contact activities page. */\n 200: {\n headers: {\n [name: string]: unknown;\n };\n content: {\n \"application/json\": components[\"schemas\"][\"PaginatedResponse_Activity\"];\n };\n };\n default: components[\"responses\"][\"ApiError\"];\n };\n };\n addContactNote: {\n parameters: {\n query?: never;\n header?: never;\n path: {\n id: components[\"parameters\"][\"Id\"];\n };\n cookie?: never;\n };\n requestBody: {\n content: {\n \"application/json\": components[\"schemas\"][\"AddNoteInput\"];\n };\n };\n responses: {\n /** @description Created note reference. */\n 200: {\n headers: {\n [name: string]: unknown;\n };\n content: {\n \"application/json\": components[\"schemas\"][\"ApiResponse_ContactNoteResult\"];\n };\n };\n default: components[\"responses\"][\"ApiError\"];\n };\n };\n listDeals: {\n parameters: {\n query?: {\n limit?: components[\"parameters\"][\"Limit\"];\n cursor?: components[\"parameters\"][\"Cursor\"];\n status?: components[\"schemas\"][\"DealStatus\"];\n search?: string;\n };\n header?: never;\n path?: never;\n cookie?: never;\n };\n requestBody?: never;\n responses: {\n /** @description Deals page. */\n 200: {\n headers: {\n [name: string]: unknown;\n };\n content: {\n \"application/json\": components[\"schemas\"][\"PaginatedResponse_Deal\"];\n };\n };\n default: components[\"responses\"][\"ApiError\"];\n };\n };\n createDeal: {\n parameters: {\n query?: never;\n header?: never;\n path?: never;\n cookie?: never;\n };\n requestBody: {\n content: {\n \"application/json\": components[\"schemas\"][\"CreateDealInput\"];\n };\n };\n responses: {\n /** @description Created deal reference. */\n 200: {\n headers: {\n [name: string]: unknown;\n };\n content: {\n \"application/json\": components[\"schemas\"][\"ApiResponse_DealCreateResult\"];\n };\n };\n default: components[\"responses\"][\"ApiError\"];\n };\n };\n getDeal: {\n parameters: {\n query?: never;\n header?: never;\n path: {\n id: components[\"parameters\"][\"Id\"];\n };\n cookie?: never;\n };\n requestBody?: never;\n responses: {\n /** @description Deal. */\n 200: {\n headers: {\n [name: string]: unknown;\n };\n content: {\n \"application/json\": components[\"schemas\"][\"ApiResponse_Deal\"];\n };\n };\n default: components[\"responses\"][\"ApiError\"];\n };\n };\n deleteDeal: {\n parameters: {\n query?: never;\n header?: never;\n path: {\n id: components[\"parameters\"][\"Id\"];\n };\n cookie?: never;\n };\n requestBody?: never;\n responses: {\n /** @description Delete result. */\n 200: {\n headers: {\n [name: string]: unknown;\n };\n content: {\n \"application/json\": components[\"schemas\"][\"ApiResponse_DealRemoveResult\"];\n };\n };\n default: components[\"responses\"][\"ApiError\"];\n };\n };\n updateDeal: {\n parameters: {\n query?: never;\n header?: never;\n path: {\n id: components[\"parameters\"][\"Id\"];\n };\n cookie?: never;\n };\n requestBody: {\n content: {\n \"application/json\": components[\"schemas\"][\"UpdateDealInput\"];\n };\n };\n responses: {\n /** @description Update result. */\n 200: {\n headers: {\n [name: string]: unknown;\n };\n content: {\n \"application/json\": components[\"schemas\"][\"ApiResponse_DealUpdateResult\"];\n };\n };\n default: components[\"responses\"][\"ApiError\"];\n };\n };\n requestGdprExport: {\n parameters: {\n query?: never;\n header?: never;\n path?: never;\n cookie?: never;\n };\n requestBody?: never;\n responses: {\n /** @description Export request reference. */\n 200: {\n headers: {\n [name: string]: unknown;\n };\n content: {\n \"application/json\": components[\"schemas\"][\"ApiResponse_GdprExportRequest\"];\n };\n };\n default: components[\"responses\"][\"ApiError\"];\n };\n };\n listGdprExports: {\n parameters: {\n query?: never;\n header?: never;\n path?: never;\n cookie?: never;\n };\n requestBody?: never;\n responses: {\n /** @description Export requests. */\n 200: {\n headers: {\n [name: string]: unknown;\n };\n content: {\n \"application/json\": components[\"schemas\"][\"ApiResponse_GdprExportArray\"];\n };\n };\n default: components[\"responses\"][\"ApiError\"];\n };\n };\n getGdprExport: {\n parameters: {\n query?: never;\n header?: never;\n path: {\n id: components[\"parameters\"][\"Id\"];\n };\n cookie?: never;\n };\n requestBody?: never;\n responses: {\n /** @description Export request. */\n 200: {\n headers: {\n [name: string]: unknown;\n };\n content: {\n \"application/json\": components[\"schemas\"][\"ApiResponse_GdprExport\"];\n };\n };\n default: components[\"responses\"][\"ApiError\"];\n };\n };\n recordGdprConsent: {\n parameters: {\n query?: never;\n header?: never;\n path?: never;\n cookie?: never;\n };\n requestBody: {\n content: {\n \"application/json\": components[\"schemas\"][\"RecordConsentInput\"];\n };\n };\n responses: {\n /** @description Consent reference. */\n 200: {\n headers: {\n [name: string]: unknown;\n };\n content: {\n \"application/json\": components[\"schemas\"][\"ApiResponse_ConsentResult\"];\n };\n };\n default: components[\"responses\"][\"ApiError\"];\n };\n };\n getGdprConsent: {\n parameters: {\n query?: never;\n header?: never;\n path: {\n email: string;\n };\n cookie?: never;\n };\n requestBody?: never;\n responses: {\n /** @description Consent records. */\n 200: {\n headers: {\n [name: string]: unknown;\n };\n content: {\n \"application/json\": components[\"schemas\"][\"ApiResponse_ConsentRecordArray\"];\n };\n };\n default: components[\"responses\"][\"ApiError\"];\n };\n };\n recordCookieConsent: {\n parameters: {\n query?: never;\n header?: never;\n path?: never;\n cookie?: never;\n };\n requestBody: {\n content: {\n \"application/json\": components[\"schemas\"][\"CookieConsentInput\"];\n };\n };\n responses: {\n /** @description Cookie consent result. */\n 200: {\n headers: {\n [name: string]: unknown;\n };\n content: {\n \"application/json\": components[\"schemas\"][\"CookieConsentResult\"];\n };\n };\n default: components[\"responses\"][\"ApiError\"];\n };\n };\n listWorkspaces: {\n parameters: {\n query?: never;\n header?: never;\n path?: never;\n cookie?: never;\n };\n requestBody?: never;\n responses: {\n /** @description Workspaces. */\n 200: {\n headers: {\n [name: string]: unknown;\n };\n content: {\n \"application/json\": components[\"schemas\"][\"ApiResponse_WorkspaceArray\"];\n };\n };\n default: components[\"responses\"][\"ApiError\"];\n };\n };\n listHelpdeskConversations: {\n parameters: {\n query?: {\n limit?: number;\n cursor?: components[\"parameters\"][\"Cursor\"];\n status?: components[\"schemas\"][\"HelpdeskConversationStatus\"];\n /** @description Only conversations assigned to this user. */\n assignee_user_id?: string;\n /** @description Match against visitor name/email. */\n requester?: string;\n /** @description Free-text search query. */\n query?: string;\n /** @description Comma-separated channel types (e.g. `widget,whatsapp`). */\n channels?: string;\n };\n header?: never;\n path?: never;\n cookie?: never;\n };\n requestBody?: never;\n responses: {\n /** @description Conversations page. */\n 200: {\n headers: {\n [name: string]: unknown;\n };\n content: {\n \"application/json\": components[\"schemas\"][\"PaginatedResponse_HelpdeskConversation\"];\n };\n };\n default: components[\"responses\"][\"ApiError\"];\n };\n };\n getHelpdeskConversation: {\n parameters: {\n query?: never;\n header?: never;\n path: {\n id: components[\"parameters\"][\"Id\"];\n };\n cookie?: never;\n };\n requestBody?: never;\n responses: {\n /** @description Conversation. */\n 200: {\n headers: {\n [name: string]: unknown;\n };\n content: {\n \"application/json\": components[\"schemas\"][\"ApiResponse_HelpdeskConversation\"];\n };\n };\n default: components[\"responses\"][\"ApiError\"];\n };\n };\n updateHelpdeskConversation: {\n parameters: {\n query?: never;\n header?: never;\n path: {\n id: components[\"parameters\"][\"Id\"];\n };\n cookie?: never;\n };\n requestBody: {\n content: {\n \"application/json\": components[\"schemas\"][\"UpdateHelpdeskConversationInput\"];\n };\n };\n responses: {\n /** @description Update result. */\n 200: {\n headers: {\n [name: string]: unknown;\n };\n content: {\n \"application/json\": components[\"schemas\"][\"ApiResponse_HelpdeskConversationUpdateResult\"];\n };\n };\n default: components[\"responses\"][\"ApiError\"];\n };\n };\n listHelpdeskConversationMessages: {\n parameters: {\n query?: {\n limit?: number;\n cursor?: components[\"parameters\"][\"Cursor\"];\n };\n header?: never;\n path: {\n id: components[\"parameters\"][\"Id\"];\n };\n cookie?: never;\n };\n requestBody?: never;\n responses: {\n /** @description Messages page. */\n 200: {\n headers: {\n [name: string]: unknown;\n };\n content: {\n \"application/json\": components[\"schemas\"][\"PaginatedResponse_HelpdeskMessage\"];\n };\n };\n /** @description Conversation not found. */\n 404: {\n headers: {\n [name: string]: unknown;\n };\n content: {\n \"application/json\": components[\"schemas\"][\"ApiError\"];\n };\n };\n default: components[\"responses\"][\"ApiError\"];\n };\n };\n createHelpdeskReply: {\n parameters: {\n query?: never;\n header?: never;\n path?: never;\n cookie?: never;\n };\n requestBody: {\n content: {\n \"application/json\": components[\"schemas\"][\"CreateHelpdeskReplyInput\"];\n };\n };\n responses: {\n /** @description Created reply reference. */\n 201: {\n headers: {\n [name: string]: unknown;\n };\n content: {\n \"application/json\": components[\"schemas\"][\"ApiResponse_HelpdeskReplyCreateResult\"];\n };\n };\n default: components[\"responses\"][\"ApiError\"];\n };\n };\n listWebhooks: {\n parameters: {\n query?: never;\n header?: never;\n path?: never;\n cookie?: never;\n };\n requestBody?: never;\n responses: {\n /** @description Webhook endpoints. */\n 200: {\n headers: {\n [name: string]: unknown;\n };\n content: {\n \"application/json\": components[\"schemas\"][\"ApiResponse_WebhookEndpointArray\"];\n };\n };\n default: components[\"responses\"][\"ApiError\"];\n };\n };\n createWebhook: {\n parameters: {\n query?: never;\n header?: never;\n path?: never;\n cookie?: never;\n };\n requestBody: {\n content: {\n \"application/json\": components[\"schemas\"][\"CreateWebhookInput\"];\n };\n };\n responses: {\n /** @description Created endpoint, including the one-time `secret`. */\n 201: {\n headers: {\n [name: string]: unknown;\n };\n content: {\n \"application/json\": components[\"schemas\"][\"ApiResponse_WebhookEndpoint\"];\n };\n };\n default: components[\"responses\"][\"ApiError\"];\n };\n };\n getWebhook: {\n parameters: {\n query?: never;\n header?: never;\n path: {\n id: components[\"parameters\"][\"Id\"];\n };\n cookie?: never;\n };\n requestBody?: never;\n responses: {\n /** @description Webhook endpoint. */\n 200: {\n headers: {\n [name: string]: unknown;\n };\n content: {\n \"application/json\": components[\"schemas\"][\"ApiResponse_WebhookEndpoint\"];\n };\n };\n default: components[\"responses\"][\"ApiError\"];\n };\n };\n deleteWebhook: {\n parameters: {\n query?: never;\n header?: never;\n path: {\n id: components[\"parameters\"][\"Id\"];\n };\n cookie?: never;\n };\n requestBody?: never;\n responses: {\n /** @description Delete result. */\n 200: {\n headers: {\n [name: string]: unknown;\n };\n content: {\n \"application/json\": components[\"schemas\"][\"ApiResponse_WebhookDeleteResult\"];\n };\n };\n default: components[\"responses\"][\"ApiError\"];\n };\n };\n updateWebhook: {\n parameters: {\n query?: never;\n header?: never;\n path: {\n id: components[\"parameters\"][\"Id\"];\n };\n cookie?: never;\n };\n requestBody: {\n content: {\n \"application/json\": components[\"schemas\"][\"UpdateWebhookInput\"];\n };\n };\n responses: {\n /** @description Updated endpoint. */\n 200: {\n headers: {\n [name: string]: unknown;\n };\n content: {\n \"application/json\": components[\"schemas\"][\"ApiResponse_WebhookEndpoint\"];\n };\n };\n default: components[\"responses\"][\"ApiError\"];\n };\n };\n listWebhookDeliveries: {\n parameters: {\n query?: {\n limit?: number;\n };\n header?: never;\n path: {\n id: components[\"parameters\"][\"Id\"];\n };\n cookie?: never;\n };\n requestBody?: never;\n responses: {\n /** @description Recent deliveries, most recent first. */\n 200: {\n headers: {\n [name: string]: unknown;\n };\n content: {\n \"application/json\": components[\"schemas\"][\"ApiResponse_WebhookDeliveryArray\"];\n };\n };\n default: components[\"responses\"][\"ApiError\"];\n };\n };\n testWebhook: {\n parameters: {\n query?: never;\n header?: never;\n path: {\n id: components[\"parameters\"][\"Id\"];\n };\n cookie?: never;\n };\n requestBody?: never;\n responses: {\n /** @description Test delivery queued. */\n 202: {\n headers: {\n [name: string]: unknown;\n };\n content: {\n \"application/json\": components[\"schemas\"][\"ApiResponse_WebhookTestResult\"];\n };\n };\n default: components[\"responses\"][\"ApiError\"];\n };\n };\n}\n"],"mappings":";;;;;;;;;;;;;;;;AAAA;AAAA;","names":[]}
|