emailr 0.2.0 → 0.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/.claude/settings.local.json +7 -0
- package/FUNCTIONS.md +2 -0
- package/README.md +89 -29
- package/dist/commonjs/funcs/billingGetV1BillingUsage.d.ts +12 -0
- package/dist/commonjs/funcs/billingGetV1BillingUsage.d.ts.map +1 -0
- package/dist/commonjs/funcs/billingGetV1BillingUsage.js +102 -0
- package/dist/commonjs/funcs/billingGetV1BillingUsage.js.map +1 -0
- package/dist/commonjs/funcs/billingPostV1BillingCheckout.d.ts +12 -0
- package/dist/commonjs/funcs/billingPostV1BillingCheckout.d.ts.map +1 -0
- package/dist/commonjs/funcs/billingPostV1BillingCheckout.js +115 -0
- package/dist/commonjs/funcs/billingPostV1BillingCheckout.js.map +1 -0
- package/dist/commonjs/funcs/billingPostV1BillingPortal.d.ts +12 -0
- package/dist/commonjs/funcs/billingPostV1BillingPortal.d.ts.map +1 -0
- package/dist/commonjs/funcs/billingPostV1BillingPortal.js +102 -0
- package/dist/commonjs/funcs/billingPostV1BillingPortal.js.map +1 -0
- package/dist/commonjs/funcs/billingPostV1BillingWebhooks.d.ts +12 -0
- package/dist/commonjs/funcs/billingPostV1BillingWebhooks.d.ts.map +1 -0
- package/dist/commonjs/funcs/billingPostV1BillingWebhooks.js +115 -0
- package/dist/commonjs/funcs/billingPostV1BillingWebhooks.js.map +1 -0
- package/dist/commonjs/funcs/contactSyncDeleteV1ContactSyncId.d.ts +11 -0
- package/dist/commonjs/funcs/contactSyncDeleteV1ContactSyncId.d.ts.map +1 -0
- package/dist/commonjs/funcs/contactSyncDeleteV1ContactSyncId.js +114 -0
- package/dist/commonjs/funcs/contactSyncDeleteV1ContactSyncId.js.map +1 -0
- package/dist/commonjs/funcs/contactSyncGetV1ContactSync.d.ts +11 -0
- package/dist/commonjs/funcs/contactSyncGetV1ContactSync.d.ts.map +1 -0
- package/dist/commonjs/funcs/contactSyncGetV1ContactSync.js +98 -0
- package/dist/commonjs/funcs/contactSyncGetV1ContactSync.js.map +1 -0
- package/dist/commonjs/funcs/contactSyncPostV1ContactSyncSupabase.d.ts +11 -0
- package/dist/commonjs/funcs/contactSyncPostV1ContactSyncSupabase.d.ts.map +1 -0
- package/dist/commonjs/funcs/contactSyncPostV1ContactSyncSupabase.js +111 -0
- package/dist/commonjs/funcs/contactSyncPostV1ContactSyncSupabase.js.map +1 -0
- package/dist/commonjs/funcs/contactSyncPostV1ContactSyncWebhookSyncId.d.ts +11 -0
- package/dist/commonjs/funcs/contactSyncPostV1ContactSyncWebhookSyncId.d.ts.map +1 -0
- package/dist/commonjs/funcs/contactSyncPostV1ContactSyncWebhookSyncId.js +115 -0
- package/dist/commonjs/funcs/contactSyncPostV1ContactSyncWebhookSyncId.js.map +1 -0
- package/dist/commonjs/funcs/integrationsDeleteV1IntegrationsId.d.ts +11 -0
- package/dist/commonjs/funcs/integrationsDeleteV1IntegrationsId.d.ts.map +1 -0
- package/dist/commonjs/funcs/integrationsDeleteV1IntegrationsId.js +114 -0
- package/dist/commonjs/funcs/integrationsDeleteV1IntegrationsId.js.map +1 -0
- package/dist/commonjs/funcs/integrationsGetV1IntegrationsConnections.d.ts +11 -0
- package/dist/commonjs/funcs/integrationsGetV1IntegrationsConnections.d.ts.map +1 -0
- package/dist/commonjs/funcs/integrationsGetV1IntegrationsConnections.js +98 -0
- package/dist/commonjs/funcs/integrationsGetV1IntegrationsConnections.js.map +1 -0
- package/dist/commonjs/funcs/integrationsGetV1IntegrationsSupabaseAuthorize.d.ts +10 -0
- package/dist/commonjs/funcs/integrationsGetV1IntegrationsSupabaseAuthorize.d.ts.map +1 -0
- package/dist/commonjs/funcs/integrationsGetV1IntegrationsSupabaseAuthorize.js +98 -0
- package/dist/commonjs/funcs/integrationsGetV1IntegrationsSupabaseAuthorize.js.map +1 -0
- package/dist/commonjs/funcs/integrationsGetV1IntegrationsSupabaseCallback.d.ts +11 -0
- package/dist/commonjs/funcs/integrationsGetV1IntegrationsSupabaseCallback.d.ts.map +1 -0
- package/dist/commonjs/funcs/integrationsGetV1IntegrationsSupabaseCallback.js +113 -0
- package/dist/commonjs/funcs/integrationsGetV1IntegrationsSupabaseCallback.js.map +1 -0
- package/dist/commonjs/funcs/integrationsGetV1IntegrationsVercelAuthorize.d.ts +10 -0
- package/dist/commonjs/funcs/integrationsGetV1IntegrationsVercelAuthorize.d.ts.map +1 -0
- package/dist/commonjs/funcs/integrationsGetV1IntegrationsVercelAuthorize.js +98 -0
- package/dist/commonjs/funcs/integrationsGetV1IntegrationsVercelAuthorize.js.map +1 -0
- package/dist/commonjs/funcs/integrationsGetV1IntegrationsVercelCallback.d.ts +11 -0
- package/dist/commonjs/funcs/integrationsGetV1IntegrationsVercelCallback.d.ts.map +1 -0
- package/dist/commonjs/funcs/integrationsGetV1IntegrationsVercelCallback.js +113 -0
- package/dist/commonjs/funcs/integrationsGetV1IntegrationsVercelCallback.js.map +1 -0
- package/dist/commonjs/funcs/smtpGetSmtpCredentials.d.ts +18 -0
- package/dist/commonjs/funcs/smtpGetSmtpCredentials.d.ts.map +1 -0
- package/dist/commonjs/funcs/smtpGetSmtpCredentials.js +108 -0
- package/dist/commonjs/funcs/smtpGetSmtpCredentials.js.map +1 -0
- package/dist/commonjs/funcs/topicsDeleteV1TopicsId.d.ts +12 -0
- package/dist/commonjs/funcs/topicsDeleteV1TopicsId.d.ts.map +1 -0
- package/dist/commonjs/funcs/topicsDeleteV1TopicsId.js +118 -0
- package/dist/commonjs/funcs/topicsDeleteV1TopicsId.js.map +1 -0
- package/dist/commonjs/funcs/topicsGetV1Topics.d.ts +12 -0
- package/dist/commonjs/funcs/topicsGetV1Topics.d.ts.map +1 -0
- package/dist/commonjs/funcs/topicsGetV1Topics.js +102 -0
- package/dist/commonjs/funcs/topicsGetV1Topics.js.map +1 -0
- package/dist/commonjs/funcs/topicsPostV1Topics.d.ts +12 -0
- package/dist/commonjs/funcs/topicsPostV1Topics.d.ts.map +1 -0
- package/dist/commonjs/funcs/topicsPostV1Topics.js +115 -0
- package/dist/commonjs/funcs/topicsPostV1Topics.js.map +1 -0
- package/dist/commonjs/funcs/topicsPutV1TopicsId.d.ts +12 -0
- package/dist/commonjs/funcs/topicsPutV1TopicsId.d.ts.map +1 -0
- package/dist/commonjs/funcs/topicsPutV1TopicsId.js +119 -0
- package/dist/commonjs/funcs/topicsPutV1TopicsId.js.map +1 -0
- package/dist/commonjs/funcs/unsubscribeGetV1UnsubscribeOrganizationId.d.ts +12 -0
- package/dist/commonjs/funcs/unsubscribeGetV1UnsubscribeOrganizationId.d.ts.map +1 -0
- package/dist/commonjs/funcs/unsubscribeGetV1UnsubscribeOrganizationId.js +122 -0
- package/dist/commonjs/funcs/unsubscribeGetV1UnsubscribeOrganizationId.js.map +1 -0
- package/dist/commonjs/funcs/unsubscribePostV1Unsubscribe.d.ts +12 -0
- package/dist/commonjs/funcs/unsubscribePostV1Unsubscribe.d.ts.map +1 -0
- package/dist/commonjs/funcs/unsubscribePostV1Unsubscribe.js +115 -0
- package/dist/commonjs/funcs/unsubscribePostV1Unsubscribe.js.map +1 -0
- package/dist/commonjs/lib/config.d.ts +2 -2
- package/dist/commonjs/lib/config.js +2 -2
- package/dist/commonjs/models/createtemplaterequest.d.ts +15 -0
- package/dist/commonjs/models/createtemplaterequest.d.ts.map +1 -1
- package/dist/commonjs/models/createtemplaterequest.js +6 -0
- package/dist/commonjs/models/createtemplaterequest.js.map +1 -1
- package/dist/commonjs/models/errors/deletev1topicsid.d.ts +45 -0
- package/dist/commonjs/models/errors/deletev1topicsid.d.ts.map +1 -0
- package/dist/commonjs/models/errors/deletev1topicsid.js +99 -0
- package/dist/commonjs/models/errors/deletev1topicsid.js.map +1 -0
- package/dist/commonjs/models/errors/getv1billingusage.d.ts +24 -0
- package/dist/commonjs/models/errors/getv1billingusage.d.ts.map +1 -0
- package/dist/commonjs/models/errors/getv1billingusage.js +71 -0
- package/dist/commonjs/models/errors/getv1billingusage.js.map +1 -0
- package/dist/commonjs/models/errors/getv1topics.d.ts +24 -0
- package/dist/commonjs/models/errors/getv1topics.d.ts.map +1 -0
- package/dist/commonjs/models/errors/getv1topics.js +71 -0
- package/dist/commonjs/models/errors/getv1topics.js.map +1 -0
- package/dist/commonjs/models/errors/getv1unsubscribeorganizationid.d.ts +24 -0
- package/dist/commonjs/models/errors/getv1unsubscribeorganizationid.d.ts.map +1 -0
- package/dist/commonjs/models/errors/getv1unsubscribeorganizationid.js +71 -0
- package/dist/commonjs/models/errors/getv1unsubscribeorganizationid.js.map +1 -0
- package/dist/commonjs/models/errors/index.d.ts +10 -0
- package/dist/commonjs/models/errors/index.d.ts.map +1 -1
- package/dist/commonjs/models/errors/index.js +10 -0
- package/dist/commonjs/models/errors/index.js.map +1 -1
- package/dist/commonjs/models/errors/postv1billingcheckout.d.ts +24 -0
- package/dist/commonjs/models/errors/postv1billingcheckout.d.ts.map +1 -0
- package/dist/commonjs/models/errors/postv1billingcheckout.js +71 -0
- package/dist/commonjs/models/errors/postv1billingcheckout.js.map +1 -0
- package/dist/commonjs/models/errors/postv1billingportal.d.ts +24 -0
- package/dist/commonjs/models/errors/postv1billingportal.d.ts.map +1 -0
- package/dist/commonjs/models/errors/postv1billingportal.js +71 -0
- package/dist/commonjs/models/errors/postv1billingportal.js.map +1 -0
- package/dist/commonjs/models/errors/postv1billingwebhooks.d.ts +24 -0
- package/dist/commonjs/models/errors/postv1billingwebhooks.d.ts.map +1 -0
- package/dist/commonjs/models/errors/postv1billingwebhooks.js +71 -0
- package/dist/commonjs/models/errors/postv1billingwebhooks.js.map +1 -0
- package/dist/commonjs/models/errors/postv1topics.d.ts +24 -0
- package/dist/commonjs/models/errors/postv1topics.d.ts.map +1 -0
- package/dist/commonjs/models/errors/postv1topics.js +71 -0
- package/dist/commonjs/models/errors/postv1topics.js.map +1 -0
- package/dist/commonjs/models/errors/postv1unsubscribe.d.ts +24 -0
- package/dist/commonjs/models/errors/postv1unsubscribe.d.ts.map +1 -0
- package/dist/commonjs/models/errors/postv1unsubscribe.js +71 -0
- package/dist/commonjs/models/errors/postv1unsubscribe.js.map +1 -0
- package/dist/commonjs/models/errors/putv1topicsid.d.ts +45 -0
- package/dist/commonjs/models/errors/putv1topicsid.d.ts.map +1 -0
- package/dist/commonjs/models/errors/putv1topicsid.js +99 -0
- package/dist/commonjs/models/errors/putv1topicsid.js.map +1 -0
- package/dist/commonjs/models/index.d.ts +1 -0
- package/dist/commonjs/models/index.d.ts.map +1 -1
- package/dist/commonjs/models/index.js +1 -0
- package/dist/commonjs/models/index.js.map +1 -1
- package/dist/commonjs/models/operations/deletev1contactsyncid.d.ts +23 -0
- package/dist/commonjs/models/operations/deletev1contactsyncid.d.ts.map +1 -0
- package/dist/commonjs/models/operations/deletev1contactsyncid.js +59 -0
- package/dist/commonjs/models/operations/deletev1contactsyncid.js.map +1 -0
- package/dist/commonjs/models/operations/deletev1integrationsid.d.ts +23 -0
- package/dist/commonjs/models/operations/deletev1integrationsid.d.ts.map +1 -0
- package/dist/commonjs/models/operations/deletev1integrationsid.js +59 -0
- package/dist/commonjs/models/operations/deletev1integrationsid.js.map +1 -0
- package/dist/commonjs/models/operations/deletev1topicsid.d.ts +23 -0
- package/dist/commonjs/models/operations/deletev1topicsid.d.ts.map +1 -0
- package/dist/commonjs/models/operations/deletev1topicsid.js +59 -0
- package/dist/commonjs/models/operations/deletev1topicsid.js.map +1 -0
- package/dist/commonjs/models/operations/getv1billingusage.d.ts +20 -0
- package/dist/commonjs/models/operations/getv1billingusage.d.ts.map +1 -0
- package/dist/commonjs/models/operations/getv1billingusage.js +58 -0
- package/dist/commonjs/models/operations/getv1billingusage.js.map +1 -0
- package/dist/commonjs/models/operations/getv1contactsync.d.ts +35 -0
- package/dist/commonjs/models/operations/getv1contactsync.d.ts.map +1 -0
- package/dist/commonjs/models/operations/getv1contactsync.js +85 -0
- package/dist/commonjs/models/operations/getv1contactsync.js.map +1 -0
- package/dist/commonjs/models/operations/getv1integrationsconnections.d.ts +31 -0
- package/dist/commonjs/models/operations/getv1integrationsconnections.d.ts.map +1 -0
- package/dist/commonjs/models/operations/getv1integrationsconnections.js +78 -0
- package/dist/commonjs/models/operations/getv1integrationsconnections.js.map +1 -0
- package/dist/commonjs/models/operations/getv1integrationssupabasecallback.d.ts +14 -0
- package/dist/commonjs/models/operations/getv1integrationssupabasecallback.d.ts.map +1 -0
- package/dist/commonjs/models/operations/getv1integrationssupabasecallback.js +50 -0
- package/dist/commonjs/models/operations/getv1integrationssupabasecallback.js.map +1 -0
- package/dist/commonjs/models/operations/getv1integrationsvercelcallback.d.ts +14 -0
- package/dist/commonjs/models/operations/getv1integrationsvercelcallback.d.ts.map +1 -0
- package/dist/commonjs/models/operations/getv1integrationsvercelcallback.js +50 -0
- package/dist/commonjs/models/operations/getv1integrationsvercelcallback.js.map +1 -0
- package/dist/commonjs/models/operations/getv1topics.d.ts +24 -0
- package/dist/commonjs/models/operations/getv1topics.d.ts.map +1 -0
- package/dist/commonjs/models/operations/getv1topics.js +71 -0
- package/dist/commonjs/models/operations/getv1topics.js.map +1 -0
- package/dist/commonjs/models/operations/getv1unsubscribeorganizationid.d.ts +39 -0
- package/dist/commonjs/models/operations/getv1unsubscribeorganizationid.d.ts.map +1 -0
- package/dist/commonjs/models/operations/getv1unsubscribeorganizationid.js +76 -0
- package/dist/commonjs/models/operations/getv1unsubscribeorganizationid.js.map +1 -0
- package/dist/commonjs/models/operations/index.d.ts +18 -0
- package/dist/commonjs/models/operations/index.d.ts.map +1 -1
- package/dist/commonjs/models/operations/index.js +18 -0
- package/dist/commonjs/models/operations/index.js.map +1 -1
- package/dist/commonjs/models/operations/postv1billingcheckout.d.ts +37 -0
- package/dist/commonjs/models/operations/postv1billingcheckout.d.ts.map +1 -0
- package/dist/commonjs/models/operations/postv1billingcheckout.js +67 -0
- package/dist/commonjs/models/operations/postv1billingcheckout.js.map +1 -0
- package/dist/commonjs/models/operations/postv1billingportal.d.ts +13 -0
- package/dist/commonjs/models/operations/postv1billingportal.d.ts.map +1 -0
- package/dist/commonjs/models/operations/postv1billingportal.js +51 -0
- package/dist/commonjs/models/operations/postv1billingportal.js.map +1 -0
- package/dist/commonjs/models/operations/postv1billingwebhooks.d.ts +13 -0
- package/dist/commonjs/models/operations/postv1billingwebhooks.d.ts.map +1 -0
- package/dist/commonjs/models/operations/postv1billingwebhooks.js +51 -0
- package/dist/commonjs/models/operations/postv1billingwebhooks.js.map +1 -0
- package/dist/commonjs/models/operations/postv1contactsyncsupabase.d.ts +67 -0
- package/dist/commonjs/models/operations/postv1contactsyncsupabase.d.ts.map +1 -0
- package/dist/commonjs/models/operations/postv1contactsyncsupabase.js +100 -0
- package/dist/commonjs/models/operations/postv1contactsyncsupabase.js.map +1 -0
- package/dist/commonjs/models/operations/postv1contactsyncwebhooksyncid.d.ts +25 -0
- package/dist/commonjs/models/operations/postv1contactsyncwebhooksyncid.d.ts.map +1 -0
- package/dist/commonjs/models/operations/postv1contactsyncwebhooksyncid.js +60 -0
- package/dist/commonjs/models/operations/postv1contactsyncwebhooksyncid.js.map +1 -0
- package/dist/commonjs/models/operations/postv1topics.d.ts +30 -0
- package/dist/commonjs/models/operations/postv1topics.d.ts.map +1 -0
- package/dist/commonjs/models/operations/postv1topics.js +72 -0
- package/dist/commonjs/models/operations/postv1topics.js.map +1 -0
- package/dist/commonjs/models/operations/postv1unsubscribe.d.ts +32 -0
- package/dist/commonjs/models/operations/postv1unsubscribe.d.ts.map +1 -0
- package/dist/commonjs/models/operations/postv1unsubscribe.js +64 -0
- package/dist/commonjs/models/operations/postv1unsubscribe.js.map +1 -0
- package/dist/commonjs/models/operations/putv1topicsid.d.ts +42 -0
- package/dist/commonjs/models/operations/putv1topicsid.d.ts.map +1 -0
- package/dist/commonjs/models/operations/putv1topicsid.js +81 -0
- package/dist/commonjs/models/operations/putv1topicsid.js.map +1 -0
- package/dist/commonjs/models/sendemailrequest.d.ts +26 -4
- package/dist/commonjs/models/sendemailrequest.d.ts.map +1 -1
- package/dist/commonjs/models/sendemailrequest.js +6 -2
- package/dist/commonjs/models/sendemailrequest.js.map +1 -1
- package/dist/commonjs/models/smtpcredentials.d.ts +23 -0
- package/dist/commonjs/models/smtpcredentials.d.ts.map +1 -0
- package/dist/commonjs/models/smtpcredentials.js +71 -0
- package/dist/commonjs/models/smtpcredentials.js.map +1 -0
- package/dist/commonjs/models/template.d.ts +3 -0
- package/dist/commonjs/models/template.d.ts.map +1 -1
- package/dist/commonjs/models/template.js +6 -0
- package/dist/commonjs/models/template.js.map +1 -1
- package/dist/commonjs/sdk/billing.d.ts +9 -0
- package/dist/commonjs/sdk/billing.d.ts.map +1 -0
- package/dist/commonjs/sdk/billing.js +28 -0
- package/dist/commonjs/sdk/billing.js.map +1 -0
- package/dist/commonjs/sdk/contactsync.d.ts +9 -0
- package/dist/commonjs/sdk/contactsync.d.ts.map +1 -0
- package/dist/commonjs/sdk/contactsync.js +28 -0
- package/dist/commonjs/sdk/contactsync.js.map +1 -0
- package/dist/commonjs/sdk/integrations.d.ts +11 -0
- package/dist/commonjs/sdk/integrations.d.ts.map +1 -0
- package/dist/commonjs/sdk/integrations.js +36 -0
- package/dist/commonjs/sdk/integrations.js.map +1 -0
- package/dist/commonjs/sdk/sdk.d.ts +18 -0
- package/dist/commonjs/sdk/sdk.d.ts.map +1 -1
- package/dist/commonjs/sdk/sdk.js +24 -0
- package/dist/commonjs/sdk/sdk.js.map +1 -1
- package/dist/commonjs/sdk/smtp.d.ts +12 -0
- package/dist/commonjs/sdk/smtp.d.ts.map +1 -0
- package/dist/commonjs/sdk/smtp.js +22 -0
- package/dist/commonjs/sdk/smtp.js.map +1 -0
- package/dist/commonjs/sdk/topics.d.ts +9 -0
- package/dist/commonjs/sdk/topics.d.ts.map +1 -0
- package/dist/commonjs/sdk/topics.js +28 -0
- package/dist/commonjs/sdk/topics.js.map +1 -0
- package/dist/commonjs/sdk/unsubscribe.d.ts +7 -0
- package/dist/commonjs/sdk/unsubscribe.d.ts.map +1 -0
- package/dist/commonjs/sdk/unsubscribe.js +20 -0
- package/dist/commonjs/sdk/unsubscribe.js.map +1 -0
- package/dist/esm/funcs/billingGetV1BillingUsage.d.ts +12 -0
- package/dist/esm/funcs/billingGetV1BillingUsage.d.ts.map +1 -0
- package/dist/esm/funcs/billingGetV1BillingUsage.js +66 -0
- package/dist/esm/funcs/billingGetV1BillingUsage.js.map +1 -0
- package/dist/esm/funcs/billingPostV1BillingCheckout.d.ts +12 -0
- package/dist/esm/funcs/billingPostV1BillingCheckout.d.ts.map +1 -0
- package/dist/esm/funcs/billingPostV1BillingCheckout.js +79 -0
- package/dist/esm/funcs/billingPostV1BillingCheckout.js.map +1 -0
- package/dist/esm/funcs/billingPostV1BillingPortal.d.ts +12 -0
- package/dist/esm/funcs/billingPostV1BillingPortal.d.ts.map +1 -0
- package/dist/esm/funcs/billingPostV1BillingPortal.js +66 -0
- package/dist/esm/funcs/billingPostV1BillingPortal.js.map +1 -0
- package/dist/esm/funcs/billingPostV1BillingWebhooks.d.ts +12 -0
- package/dist/esm/funcs/billingPostV1BillingWebhooks.d.ts.map +1 -0
- package/dist/esm/funcs/billingPostV1BillingWebhooks.js +79 -0
- package/dist/esm/funcs/billingPostV1BillingWebhooks.js.map +1 -0
- package/dist/esm/funcs/contactSyncDeleteV1ContactSyncId.d.ts +11 -0
- package/dist/esm/funcs/contactSyncDeleteV1ContactSyncId.d.ts.map +1 -0
- package/dist/esm/funcs/contactSyncDeleteV1ContactSyncId.js +78 -0
- package/dist/esm/funcs/contactSyncDeleteV1ContactSyncId.js.map +1 -0
- package/dist/esm/funcs/contactSyncGetV1ContactSync.d.ts +11 -0
- package/dist/esm/funcs/contactSyncGetV1ContactSync.d.ts.map +1 -0
- package/dist/esm/funcs/contactSyncGetV1ContactSync.js +62 -0
- package/dist/esm/funcs/contactSyncGetV1ContactSync.js.map +1 -0
- package/dist/esm/funcs/contactSyncPostV1ContactSyncSupabase.d.ts +11 -0
- package/dist/esm/funcs/contactSyncPostV1ContactSyncSupabase.d.ts.map +1 -0
- package/dist/esm/funcs/contactSyncPostV1ContactSyncSupabase.js +75 -0
- package/dist/esm/funcs/contactSyncPostV1ContactSyncSupabase.js.map +1 -0
- package/dist/esm/funcs/contactSyncPostV1ContactSyncWebhookSyncId.d.ts +11 -0
- package/dist/esm/funcs/contactSyncPostV1ContactSyncWebhookSyncId.d.ts.map +1 -0
- package/dist/esm/funcs/contactSyncPostV1ContactSyncWebhookSyncId.js +79 -0
- package/dist/esm/funcs/contactSyncPostV1ContactSyncWebhookSyncId.js.map +1 -0
- package/dist/esm/funcs/integrationsDeleteV1IntegrationsId.d.ts +11 -0
- package/dist/esm/funcs/integrationsDeleteV1IntegrationsId.d.ts.map +1 -0
- package/dist/esm/funcs/integrationsDeleteV1IntegrationsId.js +78 -0
- package/dist/esm/funcs/integrationsDeleteV1IntegrationsId.js.map +1 -0
- package/dist/esm/funcs/integrationsGetV1IntegrationsConnections.d.ts +11 -0
- package/dist/esm/funcs/integrationsGetV1IntegrationsConnections.d.ts.map +1 -0
- package/dist/esm/funcs/integrationsGetV1IntegrationsConnections.js +62 -0
- package/dist/esm/funcs/integrationsGetV1IntegrationsConnections.js.map +1 -0
- package/dist/esm/funcs/integrationsGetV1IntegrationsSupabaseAuthorize.d.ts +10 -0
- package/dist/esm/funcs/integrationsGetV1IntegrationsSupabaseAuthorize.d.ts.map +1 -0
- package/dist/esm/funcs/integrationsGetV1IntegrationsSupabaseAuthorize.js +62 -0
- package/dist/esm/funcs/integrationsGetV1IntegrationsSupabaseAuthorize.js.map +1 -0
- package/dist/esm/funcs/integrationsGetV1IntegrationsSupabaseCallback.d.ts +11 -0
- package/dist/esm/funcs/integrationsGetV1IntegrationsSupabaseCallback.d.ts.map +1 -0
- package/dist/esm/funcs/integrationsGetV1IntegrationsSupabaseCallback.js +77 -0
- package/dist/esm/funcs/integrationsGetV1IntegrationsSupabaseCallback.js.map +1 -0
- package/dist/esm/funcs/integrationsGetV1IntegrationsVercelAuthorize.d.ts +10 -0
- package/dist/esm/funcs/integrationsGetV1IntegrationsVercelAuthorize.d.ts.map +1 -0
- package/dist/esm/funcs/integrationsGetV1IntegrationsVercelAuthorize.js +62 -0
- package/dist/esm/funcs/integrationsGetV1IntegrationsVercelAuthorize.js.map +1 -0
- package/dist/esm/funcs/integrationsGetV1IntegrationsVercelCallback.d.ts +11 -0
- package/dist/esm/funcs/integrationsGetV1IntegrationsVercelCallback.d.ts.map +1 -0
- package/dist/esm/funcs/integrationsGetV1IntegrationsVercelCallback.js +77 -0
- package/dist/esm/funcs/integrationsGetV1IntegrationsVercelCallback.js.map +1 -0
- package/dist/esm/funcs/smtpGetSmtpCredentials.d.ts +18 -0
- package/dist/esm/funcs/smtpGetSmtpCredentials.d.ts.map +1 -0
- package/dist/esm/funcs/smtpGetSmtpCredentials.js +72 -0
- package/dist/esm/funcs/smtpGetSmtpCredentials.js.map +1 -0
- package/dist/esm/funcs/topicsDeleteV1TopicsId.d.ts +12 -0
- package/dist/esm/funcs/topicsDeleteV1TopicsId.d.ts.map +1 -0
- package/dist/esm/funcs/topicsDeleteV1TopicsId.js +82 -0
- package/dist/esm/funcs/topicsDeleteV1TopicsId.js.map +1 -0
- package/dist/esm/funcs/topicsGetV1Topics.d.ts +12 -0
- package/dist/esm/funcs/topicsGetV1Topics.d.ts.map +1 -0
- package/dist/esm/funcs/topicsGetV1Topics.js +66 -0
- package/dist/esm/funcs/topicsGetV1Topics.js.map +1 -0
- package/dist/esm/funcs/topicsPostV1Topics.d.ts +12 -0
- package/dist/esm/funcs/topicsPostV1Topics.d.ts.map +1 -0
- package/dist/esm/funcs/topicsPostV1Topics.js +79 -0
- package/dist/esm/funcs/topicsPostV1Topics.js.map +1 -0
- package/dist/esm/funcs/topicsPutV1TopicsId.d.ts +12 -0
- package/dist/esm/funcs/topicsPutV1TopicsId.d.ts.map +1 -0
- package/dist/esm/funcs/topicsPutV1TopicsId.js +83 -0
- package/dist/esm/funcs/topicsPutV1TopicsId.js.map +1 -0
- package/dist/esm/funcs/unsubscribeGetV1UnsubscribeOrganizationId.d.ts +12 -0
- package/dist/esm/funcs/unsubscribeGetV1UnsubscribeOrganizationId.d.ts.map +1 -0
- package/dist/esm/funcs/unsubscribeGetV1UnsubscribeOrganizationId.js +86 -0
- package/dist/esm/funcs/unsubscribeGetV1UnsubscribeOrganizationId.js.map +1 -0
- package/dist/esm/funcs/unsubscribePostV1Unsubscribe.d.ts +12 -0
- package/dist/esm/funcs/unsubscribePostV1Unsubscribe.d.ts.map +1 -0
- package/dist/esm/funcs/unsubscribePostV1Unsubscribe.js +79 -0
- package/dist/esm/funcs/unsubscribePostV1Unsubscribe.js.map +1 -0
- package/dist/esm/lib/config.d.ts +2 -2
- package/dist/esm/lib/config.js +2 -2
- package/dist/esm/models/createtemplaterequest.d.ts +15 -0
- package/dist/esm/models/createtemplaterequest.d.ts.map +1 -1
- package/dist/esm/models/createtemplaterequest.js +6 -0
- package/dist/esm/models/createtemplaterequest.js.map +1 -1
- package/dist/esm/models/errors/deletev1topicsid.d.ts +45 -0
- package/dist/esm/models/errors/deletev1topicsid.d.ts.map +1 -0
- package/dist/esm/models/errors/deletev1topicsid.js +61 -0
- package/dist/esm/models/errors/deletev1topicsid.js.map +1 -0
- package/dist/esm/models/errors/getv1billingusage.d.ts +24 -0
- package/dist/esm/models/errors/getv1billingusage.d.ts.map +1 -0
- package/dist/esm/models/errors/getv1billingusage.js +34 -0
- package/dist/esm/models/errors/getv1billingusage.js.map +1 -0
- package/dist/esm/models/errors/getv1topics.d.ts +24 -0
- package/dist/esm/models/errors/getv1topics.d.ts.map +1 -0
- package/dist/esm/models/errors/getv1topics.js +34 -0
- package/dist/esm/models/errors/getv1topics.js.map +1 -0
- package/dist/esm/models/errors/getv1unsubscribeorganizationid.d.ts +24 -0
- package/dist/esm/models/errors/getv1unsubscribeorganizationid.d.ts.map +1 -0
- package/dist/esm/models/errors/getv1unsubscribeorganizationid.js +34 -0
- package/dist/esm/models/errors/getv1unsubscribeorganizationid.js.map +1 -0
- package/dist/esm/models/errors/index.d.ts +10 -0
- package/dist/esm/models/errors/index.d.ts.map +1 -1
- package/dist/esm/models/errors/index.js +10 -0
- package/dist/esm/models/errors/index.js.map +1 -1
- package/dist/esm/models/errors/postv1billingcheckout.d.ts +24 -0
- package/dist/esm/models/errors/postv1billingcheckout.d.ts.map +1 -0
- package/dist/esm/models/errors/postv1billingcheckout.js +34 -0
- package/dist/esm/models/errors/postv1billingcheckout.js.map +1 -0
- package/dist/esm/models/errors/postv1billingportal.d.ts +24 -0
- package/dist/esm/models/errors/postv1billingportal.d.ts.map +1 -0
- package/dist/esm/models/errors/postv1billingportal.js +34 -0
- package/dist/esm/models/errors/postv1billingportal.js.map +1 -0
- package/dist/esm/models/errors/postv1billingwebhooks.d.ts +24 -0
- package/dist/esm/models/errors/postv1billingwebhooks.d.ts.map +1 -0
- package/dist/esm/models/errors/postv1billingwebhooks.js +34 -0
- package/dist/esm/models/errors/postv1billingwebhooks.js.map +1 -0
- package/dist/esm/models/errors/postv1topics.d.ts +24 -0
- package/dist/esm/models/errors/postv1topics.d.ts.map +1 -0
- package/dist/esm/models/errors/postv1topics.js +34 -0
- package/dist/esm/models/errors/postv1topics.js.map +1 -0
- package/dist/esm/models/errors/postv1unsubscribe.d.ts +24 -0
- package/dist/esm/models/errors/postv1unsubscribe.d.ts.map +1 -0
- package/dist/esm/models/errors/postv1unsubscribe.js +34 -0
- package/dist/esm/models/errors/postv1unsubscribe.js.map +1 -0
- package/dist/esm/models/errors/putv1topicsid.d.ts +45 -0
- package/dist/esm/models/errors/putv1topicsid.d.ts.map +1 -0
- package/dist/esm/models/errors/putv1topicsid.js +61 -0
- package/dist/esm/models/errors/putv1topicsid.js.map +1 -0
- package/dist/esm/models/index.d.ts +1 -0
- package/dist/esm/models/index.d.ts.map +1 -1
- package/dist/esm/models/index.js +1 -0
- package/dist/esm/models/index.js.map +1 -1
- package/dist/esm/models/operations/deletev1contactsyncid.d.ts +23 -0
- package/dist/esm/models/operations/deletev1contactsyncid.d.ts.map +1 -0
- package/dist/esm/models/operations/deletev1contactsyncid.js +21 -0
- package/dist/esm/models/operations/deletev1contactsyncid.js.map +1 -0
- package/dist/esm/models/operations/deletev1integrationsid.d.ts +23 -0
- package/dist/esm/models/operations/deletev1integrationsid.d.ts.map +1 -0
- package/dist/esm/models/operations/deletev1integrationsid.js +21 -0
- package/dist/esm/models/operations/deletev1integrationsid.js.map +1 -0
- package/dist/esm/models/operations/deletev1topicsid.d.ts +23 -0
- package/dist/esm/models/operations/deletev1topicsid.d.ts.map +1 -0
- package/dist/esm/models/operations/deletev1topicsid.js +21 -0
- package/dist/esm/models/operations/deletev1topicsid.js.map +1 -0
- package/dist/esm/models/operations/getv1billingusage.d.ts +20 -0
- package/dist/esm/models/operations/getv1billingusage.d.ts.map +1 -0
- package/dist/esm/models/operations/getv1billingusage.js +21 -0
- package/dist/esm/models/operations/getv1billingusage.js.map +1 -0
- package/dist/esm/models/operations/getv1contactsync.d.ts +35 -0
- package/dist/esm/models/operations/getv1contactsync.d.ts.map +1 -0
- package/dist/esm/models/operations/getv1contactsync.js +47 -0
- package/dist/esm/models/operations/getv1contactsync.js.map +1 -0
- package/dist/esm/models/operations/getv1integrationsconnections.d.ts +31 -0
- package/dist/esm/models/operations/getv1integrationsconnections.d.ts.map +1 -0
- package/dist/esm/models/operations/getv1integrationsconnections.js +40 -0
- package/dist/esm/models/operations/getv1integrationsconnections.js.map +1 -0
- package/dist/esm/models/operations/getv1integrationssupabasecallback.d.ts +14 -0
- package/dist/esm/models/operations/getv1integrationssupabasecallback.d.ts.map +1 -0
- package/dist/esm/models/operations/getv1integrationssupabasecallback.js +13 -0
- package/dist/esm/models/operations/getv1integrationssupabasecallback.js.map +1 -0
- package/dist/esm/models/operations/getv1integrationsvercelcallback.d.ts +14 -0
- package/dist/esm/models/operations/getv1integrationsvercelcallback.d.ts.map +1 -0
- package/dist/esm/models/operations/getv1integrationsvercelcallback.js +13 -0
- package/dist/esm/models/operations/getv1integrationsvercelcallback.js.map +1 -0
- package/dist/esm/models/operations/getv1topics.d.ts +24 -0
- package/dist/esm/models/operations/getv1topics.d.ts.map +1 -0
- package/dist/esm/models/operations/getv1topics.js +33 -0
- package/dist/esm/models/operations/getv1topics.js.map +1 -0
- package/dist/esm/models/operations/getv1unsubscribeorganizationid.d.ts +39 -0
- package/dist/esm/models/operations/getv1unsubscribeorganizationid.d.ts.map +1 -0
- package/dist/esm/models/operations/getv1unsubscribeorganizationid.js +37 -0
- package/dist/esm/models/operations/getv1unsubscribeorganizationid.js.map +1 -0
- package/dist/esm/models/operations/index.d.ts +18 -0
- package/dist/esm/models/operations/index.d.ts.map +1 -1
- package/dist/esm/models/operations/index.js +18 -0
- package/dist/esm/models/operations/index.js.map +1 -1
- package/dist/esm/models/operations/postv1billingcheckout.d.ts +37 -0
- package/dist/esm/models/operations/postv1billingcheckout.d.ts.map +1 -0
- package/dist/esm/models/operations/postv1billingcheckout.js +29 -0
- package/dist/esm/models/operations/postv1billingcheckout.js.map +1 -0
- package/dist/esm/models/operations/postv1billingportal.d.ts +13 -0
- package/dist/esm/models/operations/postv1billingportal.d.ts.map +1 -0
- package/dist/esm/models/operations/postv1billingportal.js +14 -0
- package/dist/esm/models/operations/postv1billingportal.js.map +1 -0
- package/dist/esm/models/operations/postv1billingwebhooks.d.ts +13 -0
- package/dist/esm/models/operations/postv1billingwebhooks.d.ts.map +1 -0
- package/dist/esm/models/operations/postv1billingwebhooks.js +14 -0
- package/dist/esm/models/operations/postv1billingwebhooks.js.map +1 -0
- package/dist/esm/models/operations/postv1contactsyncsupabase.d.ts +67 -0
- package/dist/esm/models/operations/postv1contactsyncsupabase.d.ts.map +1 -0
- package/dist/esm/models/operations/postv1contactsyncsupabase.js +61 -0
- package/dist/esm/models/operations/postv1contactsyncsupabase.js.map +1 -0
- package/dist/esm/models/operations/postv1contactsyncwebhooksyncid.d.ts +25 -0
- package/dist/esm/models/operations/postv1contactsyncwebhooksyncid.d.ts.map +1 -0
- package/dist/esm/models/operations/postv1contactsyncwebhooksyncid.js +22 -0
- package/dist/esm/models/operations/postv1contactsyncwebhooksyncid.js.map +1 -0
- package/dist/esm/models/operations/postv1topics.d.ts +30 -0
- package/dist/esm/models/operations/postv1topics.d.ts.map +1 -0
- package/dist/esm/models/operations/postv1topics.js +34 -0
- package/dist/esm/models/operations/postv1topics.js.map +1 -0
- package/dist/esm/models/operations/postv1unsubscribe.d.ts +32 -0
- package/dist/esm/models/operations/postv1unsubscribe.d.ts.map +1 -0
- package/dist/esm/models/operations/postv1unsubscribe.js +26 -0
- package/dist/esm/models/operations/postv1unsubscribe.js.map +1 -0
- package/dist/esm/models/operations/putv1topicsid.d.ts +42 -0
- package/dist/esm/models/operations/putv1topicsid.d.ts.map +1 -0
- package/dist/esm/models/operations/putv1topicsid.js +42 -0
- package/dist/esm/models/operations/putv1topicsid.js.map +1 -0
- package/dist/esm/models/sendemailrequest.d.ts +26 -4
- package/dist/esm/models/sendemailrequest.d.ts.map +1 -1
- package/dist/esm/models/sendemailrequest.js +6 -2
- package/dist/esm/models/sendemailrequest.js.map +1 -1
- package/dist/esm/models/smtpcredentials.d.ts +23 -0
- package/dist/esm/models/smtpcredentials.d.ts.map +1 -0
- package/dist/esm/models/smtpcredentials.js +33 -0
- package/dist/esm/models/smtpcredentials.js.map +1 -0
- package/dist/esm/models/template.d.ts +3 -0
- package/dist/esm/models/template.d.ts.map +1 -1
- package/dist/esm/models/template.js +6 -0
- package/dist/esm/models/template.js.map +1 -1
- package/dist/esm/sdk/billing.d.ts +9 -0
- package/dist/esm/sdk/billing.d.ts.map +1 -0
- package/dist/esm/sdk/billing.js +24 -0
- package/dist/esm/sdk/billing.js.map +1 -0
- package/dist/esm/sdk/contactsync.d.ts +9 -0
- package/dist/esm/sdk/contactsync.d.ts.map +1 -0
- package/dist/esm/sdk/contactsync.js +24 -0
- package/dist/esm/sdk/contactsync.js.map +1 -0
- package/dist/esm/sdk/integrations.d.ts +11 -0
- package/dist/esm/sdk/integrations.d.ts.map +1 -0
- package/dist/esm/sdk/integrations.js +32 -0
- package/dist/esm/sdk/integrations.js.map +1 -0
- package/dist/esm/sdk/sdk.d.ts +18 -0
- package/dist/esm/sdk/sdk.d.ts.map +1 -1
- package/dist/esm/sdk/sdk.js +24 -0
- package/dist/esm/sdk/sdk.js.map +1 -1
- package/dist/esm/sdk/smtp.d.ts +12 -0
- package/dist/esm/sdk/smtp.d.ts.map +1 -0
- package/dist/esm/sdk/smtp.js +18 -0
- package/dist/esm/sdk/smtp.js.map +1 -0
- package/dist/esm/sdk/topics.d.ts +9 -0
- package/dist/esm/sdk/topics.d.ts.map +1 -0
- package/dist/esm/sdk/topics.js +24 -0
- package/dist/esm/sdk/topics.js.map +1 -0
- package/dist/esm/sdk/unsubscribe.d.ts +7 -0
- package/dist/esm/sdk/unsubscribe.d.ts.map +1 -0
- package/dist/esm/sdk/unsubscribe.js +16 -0
- package/dist/esm/sdk/unsubscribe.js.map +1 -0
- package/examples/emailsSend.example.ts +2 -0
- package/examples/package-lock.json +1 -1
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/funcs/billingGetV1BillingUsage.ts +145 -0
- package/src/funcs/billingPostV1BillingCheckout.ts +170 -0
- package/src/funcs/billingPostV1BillingPortal.ts +145 -0
- package/src/funcs/billingPostV1BillingWebhooks.ts +166 -0
- package/src/funcs/contactSyncDeleteV1ContactSyncId.ts +162 -0
- package/src/funcs/contactSyncGetV1ContactSync.ts +136 -0
- package/src/funcs/contactSyncPostV1ContactSyncSupabase.ts +161 -0
- package/src/funcs/contactSyncPostV1ContactSyncWebhookSyncId.ts +169 -0
- package/src/funcs/integrationsDeleteV1IntegrationsId.ts +162 -0
- package/src/funcs/integrationsGetV1IntegrationsConnections.ts +136 -0
- package/src/funcs/integrationsGetV1IntegrationsSupabaseAuthorize.ts +136 -0
- package/src/funcs/integrationsGetV1IntegrationsSupabaseCallback.ts +164 -0
- package/src/funcs/integrationsGetV1IntegrationsVercelAuthorize.ts +136 -0
- package/src/funcs/integrationsGetV1IntegrationsVercelCallback.ts +164 -0
- package/src/funcs/smtpGetSmtpCredentials.ts +151 -0
- package/src/funcs/topicsDeleteV1TopicsId.ts +175 -0
- package/src/funcs/topicsGetV1Topics.ts +145 -0
- package/src/funcs/topicsPostV1Topics.ts +167 -0
- package/src/funcs/topicsPutV1TopicsId.ts +175 -0
- package/src/funcs/unsubscribeGetV1UnsubscribeOrganizationId.ts +185 -0
- package/src/funcs/unsubscribePostV1Unsubscribe.ts +170 -0
- package/src/lib/config.ts +2 -2
- package/src/models/createtemplaterequest.ts +21 -0
- package/src/models/errors/deletev1topicsid.ts +109 -0
- package/src/models/errors/getv1billingusage.ts +58 -0
- package/src/models/errors/getv1topics.ts +58 -0
- package/src/models/errors/getv1unsubscribeorganizationid.ts +56 -0
- package/src/models/errors/index.ts +10 -0
- package/src/models/errors/postv1billingcheckout.ts +56 -0
- package/src/models/errors/postv1billingportal.ts +58 -0
- package/src/models/errors/postv1billingwebhooks.ts +58 -0
- package/src/models/errors/postv1topics.ts +58 -0
- package/src/models/errors/postv1unsubscribe.ts +58 -0
- package/src/models/errors/putv1topicsid.ts +109 -0
- package/src/models/index.ts +1 -0
- package/src/models/operations/deletev1contactsyncid.ts +61 -0
- package/src/models/operations/deletev1integrationsid.ts +61 -0
- package/src/models/operations/deletev1topicsid.ts +59 -0
- package/src/models/operations/getv1billingusage.ts +48 -0
- package/src/models/operations/getv1contactsync.ts +98 -0
- package/src/models/operations/getv1integrationsconnections.ts +85 -0
- package/src/models/operations/getv1integrationssupabasecallback.ts +37 -0
- package/src/models/operations/getv1integrationsvercelcallback.ts +37 -0
- package/src/models/operations/getv1topics.ts +76 -0
- package/src/models/operations/getv1unsubscribeorganizationid.ts +105 -0
- package/src/models/operations/index.ts +18 -0
- package/src/models/operations/postv1billingcheckout.ts +81 -0
- package/src/models/operations/postv1billingportal.ts +34 -0
- package/src/models/operations/postv1billingwebhooks.ts +34 -0
- package/src/models/operations/postv1contactsyncsupabase.ts +148 -0
- package/src/models/operations/postv1contactsyncwebhooksyncid.ts +64 -0
- package/src/models/operations/postv1topics.ts +82 -0
- package/src/models/operations/postv1unsubscribe.ts +73 -0
- package/src/models/operations/putv1topicsid.ts +110 -0
- package/src/models/sendemailrequest.ts +32 -6
- package/src/models/smtpcredentials.ts +72 -0
- package/src/models/template.ts +9 -0
- package/src/sdk/billing.ts +53 -0
- package/src/sdk/contactsync.ts +55 -0
- package/src/sdk/integrations.ts +75 -0
- package/src/sdk/sdk.ts +36 -0
- package/src/sdk/smtp.ts +25 -0
- package/src/sdk/topics.ts +55 -0
- package/src/sdk/unsubscribe.ts +33 -0
- package/temp/example.ts +3 -0
|
@@ -0,0 +1,185 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v4-mini";
|
|
6
|
+
import { EmailrCore } from "../core.js";
|
|
7
|
+
import { encodeFormQuery, encodeSimple } from "../lib/encodings.js";
|
|
8
|
+
import * as M from "../lib/matchers.js";
|
|
9
|
+
import { compactMap } from "../lib/primitives.js";
|
|
10
|
+
import { safeParse } from "../lib/schemas.js";
|
|
11
|
+
import { RequestOptions } from "../lib/sdks.js";
|
|
12
|
+
import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
|
|
13
|
+
import { pathToFunc } from "../lib/url.js";
|
|
14
|
+
import { EmailrError } from "../models/errors/emailrerror.js";
|
|
15
|
+
import {
|
|
16
|
+
ConnectionError,
|
|
17
|
+
InvalidRequestError,
|
|
18
|
+
RequestAbortedError,
|
|
19
|
+
RequestTimeoutError,
|
|
20
|
+
UnexpectedClientError,
|
|
21
|
+
} from "../models/errors/httpclienterrors.js";
|
|
22
|
+
import * as errors from "../models/errors/index.js";
|
|
23
|
+
import { ResponseValidationError } from "../models/errors/responsevalidationerror.js";
|
|
24
|
+
import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
|
|
25
|
+
import * as operations from "../models/operations/index.js";
|
|
26
|
+
import { APICall, APIPromise } from "../types/async.js";
|
|
27
|
+
import { Result } from "../types/fp.js";
|
|
28
|
+
|
|
29
|
+
export function unsubscribeGetV1UnsubscribeOrganizationId(
|
|
30
|
+
client: EmailrCore,
|
|
31
|
+
request: operations.GetV1UnsubscribeOrganizationIdRequest,
|
|
32
|
+
options?: RequestOptions,
|
|
33
|
+
): APIPromise<
|
|
34
|
+
Result<
|
|
35
|
+
operations.GetV1UnsubscribeOrganizationIdResponse,
|
|
36
|
+
| errors.GetV1UnsubscribeOrganizationIdNotFoundError
|
|
37
|
+
| EmailrError
|
|
38
|
+
| ResponseValidationError
|
|
39
|
+
| ConnectionError
|
|
40
|
+
| RequestAbortedError
|
|
41
|
+
| RequestTimeoutError
|
|
42
|
+
| InvalidRequestError
|
|
43
|
+
| UnexpectedClientError
|
|
44
|
+
| SDKValidationError
|
|
45
|
+
>
|
|
46
|
+
> {
|
|
47
|
+
return new APIPromise($do(
|
|
48
|
+
client,
|
|
49
|
+
request,
|
|
50
|
+
options,
|
|
51
|
+
));
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
async function $do(
|
|
55
|
+
client: EmailrCore,
|
|
56
|
+
request: operations.GetV1UnsubscribeOrganizationIdRequest,
|
|
57
|
+
options?: RequestOptions,
|
|
58
|
+
): Promise<
|
|
59
|
+
[
|
|
60
|
+
Result<
|
|
61
|
+
operations.GetV1UnsubscribeOrganizationIdResponse,
|
|
62
|
+
| errors.GetV1UnsubscribeOrganizationIdNotFoundError
|
|
63
|
+
| EmailrError
|
|
64
|
+
| ResponseValidationError
|
|
65
|
+
| ConnectionError
|
|
66
|
+
| RequestAbortedError
|
|
67
|
+
| RequestTimeoutError
|
|
68
|
+
| InvalidRequestError
|
|
69
|
+
| UnexpectedClientError
|
|
70
|
+
| SDKValidationError
|
|
71
|
+
>,
|
|
72
|
+
APICall,
|
|
73
|
+
]
|
|
74
|
+
> {
|
|
75
|
+
const parsed = safeParse(
|
|
76
|
+
request,
|
|
77
|
+
(value) =>
|
|
78
|
+
z.parse(
|
|
79
|
+
operations.GetV1UnsubscribeOrganizationIdRequest$outboundSchema,
|
|
80
|
+
value,
|
|
81
|
+
),
|
|
82
|
+
"Input validation failed",
|
|
83
|
+
);
|
|
84
|
+
if (!parsed.ok) {
|
|
85
|
+
return [parsed, { status: "invalid" }];
|
|
86
|
+
}
|
|
87
|
+
const payload = parsed.value;
|
|
88
|
+
const body = null;
|
|
89
|
+
|
|
90
|
+
const pathParams = {
|
|
91
|
+
organizationId: encodeSimple("organizationId", payload.organizationId, {
|
|
92
|
+
explode: false,
|
|
93
|
+
charEncoding: "percent",
|
|
94
|
+
}),
|
|
95
|
+
};
|
|
96
|
+
|
|
97
|
+
const path = pathToFunc("/v1/unsubscribe/{organizationId}")(pathParams);
|
|
98
|
+
|
|
99
|
+
const query = encodeFormQuery({
|
|
100
|
+
"email": payload.email,
|
|
101
|
+
});
|
|
102
|
+
|
|
103
|
+
const headers = new Headers(compactMap({
|
|
104
|
+
Accept: "application/json",
|
|
105
|
+
}));
|
|
106
|
+
|
|
107
|
+
const secConfig = await extractSecurity(client._options.bearerAuth);
|
|
108
|
+
const securityInput = secConfig == null ? {} : { bearerAuth: secConfig };
|
|
109
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
110
|
+
|
|
111
|
+
const context = {
|
|
112
|
+
options: client._options,
|
|
113
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
114
|
+
operationID: "get_/v1/unsubscribe/{organizationId}",
|
|
115
|
+
oAuth2Scopes: null,
|
|
116
|
+
|
|
117
|
+
resolvedSecurity: requestSecurity,
|
|
118
|
+
|
|
119
|
+
securitySource: client._options.bearerAuth,
|
|
120
|
+
retryConfig: options?.retries
|
|
121
|
+
|| client._options.retryConfig
|
|
122
|
+
|| { strategy: "none" },
|
|
123
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
|
|
124
|
+
};
|
|
125
|
+
|
|
126
|
+
const requestRes = client._createRequest(context, {
|
|
127
|
+
security: requestSecurity,
|
|
128
|
+
method: "GET",
|
|
129
|
+
baseURL: options?.serverURL,
|
|
130
|
+
path: path,
|
|
131
|
+
headers: headers,
|
|
132
|
+
query: query,
|
|
133
|
+
body: body,
|
|
134
|
+
userAgent: client._options.userAgent,
|
|
135
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
|
|
136
|
+
}, options);
|
|
137
|
+
if (!requestRes.ok) {
|
|
138
|
+
return [requestRes, { status: "invalid" }];
|
|
139
|
+
}
|
|
140
|
+
const req = requestRes.value;
|
|
141
|
+
|
|
142
|
+
const doResult = await client._do(req, {
|
|
143
|
+
context,
|
|
144
|
+
errorCodes: ["404", "4XX", "5XX"],
|
|
145
|
+
retryConfig: context.retryConfig,
|
|
146
|
+
retryCodes: context.retryCodes,
|
|
147
|
+
});
|
|
148
|
+
if (!doResult.ok) {
|
|
149
|
+
return [doResult, { status: "request-error", request: req }];
|
|
150
|
+
}
|
|
151
|
+
const response = doResult.value;
|
|
152
|
+
|
|
153
|
+
const responseFields = {
|
|
154
|
+
HttpMeta: { Response: response, Request: req },
|
|
155
|
+
};
|
|
156
|
+
|
|
157
|
+
const [result] = await M.match<
|
|
158
|
+
operations.GetV1UnsubscribeOrganizationIdResponse,
|
|
159
|
+
| errors.GetV1UnsubscribeOrganizationIdNotFoundError
|
|
160
|
+
| EmailrError
|
|
161
|
+
| ResponseValidationError
|
|
162
|
+
| ConnectionError
|
|
163
|
+
| RequestAbortedError
|
|
164
|
+
| RequestTimeoutError
|
|
165
|
+
| InvalidRequestError
|
|
166
|
+
| UnexpectedClientError
|
|
167
|
+
| SDKValidationError
|
|
168
|
+
>(
|
|
169
|
+
M.json(
|
|
170
|
+
200,
|
|
171
|
+
operations.GetV1UnsubscribeOrganizationIdResponse$inboundSchema,
|
|
172
|
+
),
|
|
173
|
+
M.jsonErr(
|
|
174
|
+
404,
|
|
175
|
+
errors.GetV1UnsubscribeOrganizationIdNotFoundError$inboundSchema,
|
|
176
|
+
),
|
|
177
|
+
M.fail("4XX"),
|
|
178
|
+
M.fail("5XX"),
|
|
179
|
+
)(response, req, { extraFields: responseFields });
|
|
180
|
+
if (!result.ok) {
|
|
181
|
+
return [result, { status: "complete", request: req, response }];
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
return [result, { status: "complete", request: req, response }];
|
|
185
|
+
}
|
|
@@ -0,0 +1,170 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v4-mini";
|
|
6
|
+
import { EmailrCore } from "../core.js";
|
|
7
|
+
import { encodeJSON } from "../lib/encodings.js";
|
|
8
|
+
import * as M from "../lib/matchers.js";
|
|
9
|
+
import { compactMap } from "../lib/primitives.js";
|
|
10
|
+
import { safeParse } from "../lib/schemas.js";
|
|
11
|
+
import { RequestOptions } from "../lib/sdks.js";
|
|
12
|
+
import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
|
|
13
|
+
import { pathToFunc } from "../lib/url.js";
|
|
14
|
+
import { EmailrError } from "../models/errors/emailrerror.js";
|
|
15
|
+
import {
|
|
16
|
+
ConnectionError,
|
|
17
|
+
InvalidRequestError,
|
|
18
|
+
RequestAbortedError,
|
|
19
|
+
RequestTimeoutError,
|
|
20
|
+
UnexpectedClientError,
|
|
21
|
+
} from "../models/errors/httpclienterrors.js";
|
|
22
|
+
import * as errors from "../models/errors/index.js";
|
|
23
|
+
import { ResponseValidationError } from "../models/errors/responsevalidationerror.js";
|
|
24
|
+
import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
|
|
25
|
+
import * as operations from "../models/operations/index.js";
|
|
26
|
+
import { APICall, APIPromise } from "../types/async.js";
|
|
27
|
+
import { Result } from "../types/fp.js";
|
|
28
|
+
|
|
29
|
+
export function unsubscribePostV1Unsubscribe(
|
|
30
|
+
client: EmailrCore,
|
|
31
|
+
request?: operations.PostV1UnsubscribeRequest | undefined,
|
|
32
|
+
options?: RequestOptions,
|
|
33
|
+
): APIPromise<
|
|
34
|
+
Result<
|
|
35
|
+
operations.PostV1UnsubscribeResponse,
|
|
36
|
+
| errors.PostV1UnsubscribeNotFoundError
|
|
37
|
+
| EmailrError
|
|
38
|
+
| ResponseValidationError
|
|
39
|
+
| ConnectionError
|
|
40
|
+
| RequestAbortedError
|
|
41
|
+
| RequestTimeoutError
|
|
42
|
+
| InvalidRequestError
|
|
43
|
+
| UnexpectedClientError
|
|
44
|
+
| SDKValidationError
|
|
45
|
+
>
|
|
46
|
+
> {
|
|
47
|
+
return new APIPromise($do(
|
|
48
|
+
client,
|
|
49
|
+
request,
|
|
50
|
+
options,
|
|
51
|
+
));
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
async function $do(
|
|
55
|
+
client: EmailrCore,
|
|
56
|
+
request?: operations.PostV1UnsubscribeRequest | undefined,
|
|
57
|
+
options?: RequestOptions,
|
|
58
|
+
): Promise<
|
|
59
|
+
[
|
|
60
|
+
Result<
|
|
61
|
+
operations.PostV1UnsubscribeResponse,
|
|
62
|
+
| errors.PostV1UnsubscribeNotFoundError
|
|
63
|
+
| EmailrError
|
|
64
|
+
| ResponseValidationError
|
|
65
|
+
| ConnectionError
|
|
66
|
+
| RequestAbortedError
|
|
67
|
+
| RequestTimeoutError
|
|
68
|
+
| InvalidRequestError
|
|
69
|
+
| UnexpectedClientError
|
|
70
|
+
| SDKValidationError
|
|
71
|
+
>,
|
|
72
|
+
APICall,
|
|
73
|
+
]
|
|
74
|
+
> {
|
|
75
|
+
const parsed = safeParse(
|
|
76
|
+
request,
|
|
77
|
+
(value) =>
|
|
78
|
+
z.parse(
|
|
79
|
+
z.optional(operations.PostV1UnsubscribeRequest$outboundSchema),
|
|
80
|
+
value,
|
|
81
|
+
),
|
|
82
|
+
"Input validation failed",
|
|
83
|
+
);
|
|
84
|
+
if (!parsed.ok) {
|
|
85
|
+
return [parsed, { status: "invalid" }];
|
|
86
|
+
}
|
|
87
|
+
const payload = parsed.value;
|
|
88
|
+
const body = payload === undefined
|
|
89
|
+
? null
|
|
90
|
+
: encodeJSON("body", payload, { explode: true });
|
|
91
|
+
|
|
92
|
+
const path = pathToFunc("/v1/unsubscribe")();
|
|
93
|
+
|
|
94
|
+
const headers = new Headers(compactMap({
|
|
95
|
+
"Content-Type": "application/json",
|
|
96
|
+
Accept: "application/json",
|
|
97
|
+
}));
|
|
98
|
+
|
|
99
|
+
const secConfig = await extractSecurity(client._options.bearerAuth);
|
|
100
|
+
const securityInput = secConfig == null ? {} : { bearerAuth: secConfig };
|
|
101
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
102
|
+
|
|
103
|
+
const context = {
|
|
104
|
+
options: client._options,
|
|
105
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
106
|
+
operationID: "post_/v1/unsubscribe",
|
|
107
|
+
oAuth2Scopes: null,
|
|
108
|
+
|
|
109
|
+
resolvedSecurity: requestSecurity,
|
|
110
|
+
|
|
111
|
+
securitySource: client._options.bearerAuth,
|
|
112
|
+
retryConfig: options?.retries
|
|
113
|
+
|| client._options.retryConfig
|
|
114
|
+
|| { strategy: "none" },
|
|
115
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
|
|
116
|
+
};
|
|
117
|
+
|
|
118
|
+
const requestRes = client._createRequest(context, {
|
|
119
|
+
security: requestSecurity,
|
|
120
|
+
method: "POST",
|
|
121
|
+
baseURL: options?.serverURL,
|
|
122
|
+
path: path,
|
|
123
|
+
headers: headers,
|
|
124
|
+
body: body,
|
|
125
|
+
userAgent: client._options.userAgent,
|
|
126
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
|
|
127
|
+
}, options);
|
|
128
|
+
if (!requestRes.ok) {
|
|
129
|
+
return [requestRes, { status: "invalid" }];
|
|
130
|
+
}
|
|
131
|
+
const req = requestRes.value;
|
|
132
|
+
|
|
133
|
+
const doResult = await client._do(req, {
|
|
134
|
+
context,
|
|
135
|
+
errorCodes: ["404", "4XX", "5XX"],
|
|
136
|
+
retryConfig: context.retryConfig,
|
|
137
|
+
retryCodes: context.retryCodes,
|
|
138
|
+
});
|
|
139
|
+
if (!doResult.ok) {
|
|
140
|
+
return [doResult, { status: "request-error", request: req }];
|
|
141
|
+
}
|
|
142
|
+
const response = doResult.value;
|
|
143
|
+
|
|
144
|
+
const responseFields = {
|
|
145
|
+
HttpMeta: { Response: response, Request: req },
|
|
146
|
+
};
|
|
147
|
+
|
|
148
|
+
const [result] = await M.match<
|
|
149
|
+
operations.PostV1UnsubscribeResponse,
|
|
150
|
+
| errors.PostV1UnsubscribeNotFoundError
|
|
151
|
+
| EmailrError
|
|
152
|
+
| ResponseValidationError
|
|
153
|
+
| ConnectionError
|
|
154
|
+
| RequestAbortedError
|
|
155
|
+
| RequestTimeoutError
|
|
156
|
+
| InvalidRequestError
|
|
157
|
+
| UnexpectedClientError
|
|
158
|
+
| SDKValidationError
|
|
159
|
+
>(
|
|
160
|
+
M.json(200, operations.PostV1UnsubscribeResponse$inboundSchema),
|
|
161
|
+
M.jsonErr(404, errors.PostV1UnsubscribeNotFoundError$inboundSchema),
|
|
162
|
+
M.fail("4XX"),
|
|
163
|
+
M.fail("5XX"),
|
|
164
|
+
)(response, req, { extraFields: responseFields });
|
|
165
|
+
if (!result.ok) {
|
|
166
|
+
return [result, { status: "complete", request: req, response }];
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
return [result, { status: "complete", request: req, response }];
|
|
170
|
+
}
|
package/src/lib/config.ts
CHANGED
|
@@ -61,7 +61,7 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
|
|
|
61
61
|
export const SDK_METADATA = {
|
|
62
62
|
language: "typescript",
|
|
63
63
|
openapiDocVersion: "1.0.0",
|
|
64
|
-
sdkVersion: "0.
|
|
64
|
+
sdkVersion: "0.3.0",
|
|
65
65
|
genVersion: "2.791.1",
|
|
66
|
-
userAgent: "speakeasy-sdk/typescript 0.
|
|
66
|
+
userAgent: "speakeasy-sdk/typescript 0.3.0 2.791.1 1.0.0 emailr",
|
|
67
67
|
} as const;
|
|
@@ -11,6 +11,18 @@ export type CreateTemplateRequest = {
|
|
|
11
11
|
htmlContent?: string | undefined;
|
|
12
12
|
textContent?: string | undefined;
|
|
13
13
|
variables?: Array<string> | undefined;
|
|
14
|
+
/**
|
|
15
|
+
* Default from email address. Must match a verified domain.
|
|
16
|
+
*/
|
|
17
|
+
fromEmail?: string | undefined;
|
|
18
|
+
/**
|
|
19
|
+
* Reply-To email address for template-based emails.
|
|
20
|
+
*/
|
|
21
|
+
replyTo?: string | undefined;
|
|
22
|
+
/**
|
|
23
|
+
* Preview text (preheader) shown in email clients.
|
|
24
|
+
*/
|
|
25
|
+
previewText?: string | undefined;
|
|
14
26
|
};
|
|
15
27
|
|
|
16
28
|
/** @internal */
|
|
@@ -20,6 +32,9 @@ export type CreateTemplateRequest$Outbound = {
|
|
|
20
32
|
html_content?: string | undefined;
|
|
21
33
|
text_content?: string | undefined;
|
|
22
34
|
variables?: Array<string> | undefined;
|
|
35
|
+
from_email?: string | undefined;
|
|
36
|
+
reply_to?: string | undefined;
|
|
37
|
+
preview_text?: string | undefined;
|
|
23
38
|
};
|
|
24
39
|
|
|
25
40
|
/** @internal */
|
|
@@ -33,11 +48,17 @@ export const CreateTemplateRequest$outboundSchema: z.ZodMiniType<
|
|
|
33
48
|
htmlContent: z.optional(z.string()),
|
|
34
49
|
textContent: z.optional(z.string()),
|
|
35
50
|
variables: z.optional(z.array(z.string())),
|
|
51
|
+
fromEmail: z.optional(z.string()),
|
|
52
|
+
replyTo: z.optional(z.string()),
|
|
53
|
+
previewText: z.optional(z.string()),
|
|
36
54
|
}),
|
|
37
55
|
z.transform((v) => {
|
|
38
56
|
return remap$(v, {
|
|
39
57
|
htmlContent: "html_content",
|
|
40
58
|
textContent: "text_content",
|
|
59
|
+
fromEmail: "from_email",
|
|
60
|
+
replyTo: "reply_to",
|
|
61
|
+
previewText: "preview_text",
|
|
41
62
|
});
|
|
42
63
|
}),
|
|
43
64
|
);
|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v4-mini";
|
|
6
|
+
import * as types from "../../types/primitives.js";
|
|
7
|
+
import { EmailrError } from "./emailrerror.js";
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* Topic not found
|
|
11
|
+
*/
|
|
12
|
+
export type DeleteV1TopicsIdNotFoundErrorData = {
|
|
13
|
+
error: string;
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* Topic not found
|
|
18
|
+
*/
|
|
19
|
+
export class DeleteV1TopicsIdNotFoundError extends EmailrError {
|
|
20
|
+
error: string;
|
|
21
|
+
|
|
22
|
+
/** The original data that was passed to this error instance. */
|
|
23
|
+
data$: DeleteV1TopicsIdNotFoundErrorData;
|
|
24
|
+
|
|
25
|
+
constructor(
|
|
26
|
+
err: DeleteV1TopicsIdNotFoundErrorData,
|
|
27
|
+
httpMeta: { response: Response; request: Request; body: string },
|
|
28
|
+
) {
|
|
29
|
+
const message = "message" in err && typeof err.message === "string"
|
|
30
|
+
? err.message
|
|
31
|
+
: `API error occurred: ${JSON.stringify(err)}`;
|
|
32
|
+
super(message, httpMeta);
|
|
33
|
+
this.data$ = err;
|
|
34
|
+
this.error = err.error;
|
|
35
|
+
|
|
36
|
+
this.name = "DeleteV1TopicsIdNotFoundError";
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
/**
|
|
41
|
+
* Unauthorized
|
|
42
|
+
*/
|
|
43
|
+
export type DeleteV1TopicsIdUnauthorizedErrorData = {
|
|
44
|
+
error: string;
|
|
45
|
+
};
|
|
46
|
+
|
|
47
|
+
/**
|
|
48
|
+
* Unauthorized
|
|
49
|
+
*/
|
|
50
|
+
export class DeleteV1TopicsIdUnauthorizedError extends EmailrError {
|
|
51
|
+
error: string;
|
|
52
|
+
|
|
53
|
+
/** The original data that was passed to this error instance. */
|
|
54
|
+
data$: DeleteV1TopicsIdUnauthorizedErrorData;
|
|
55
|
+
|
|
56
|
+
constructor(
|
|
57
|
+
err: DeleteV1TopicsIdUnauthorizedErrorData,
|
|
58
|
+
httpMeta: { response: Response; request: Request; body: string },
|
|
59
|
+
) {
|
|
60
|
+
const message = "message" in err && typeof err.message === "string"
|
|
61
|
+
? err.message
|
|
62
|
+
: `API error occurred: ${JSON.stringify(err)}`;
|
|
63
|
+
super(message, httpMeta);
|
|
64
|
+
this.data$ = err;
|
|
65
|
+
this.error = err.error;
|
|
66
|
+
|
|
67
|
+
this.name = "DeleteV1TopicsIdUnauthorizedError";
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
/** @internal */
|
|
72
|
+
export const DeleteV1TopicsIdNotFoundError$inboundSchema: z.ZodMiniType<
|
|
73
|
+
DeleteV1TopicsIdNotFoundError,
|
|
74
|
+
unknown
|
|
75
|
+
> = z.pipe(
|
|
76
|
+
z.object({
|
|
77
|
+
error: types.string(),
|
|
78
|
+
request$: z.custom<Request>(x => x instanceof Request),
|
|
79
|
+
response$: z.custom<Response>(x => x instanceof Response),
|
|
80
|
+
body$: z.string(),
|
|
81
|
+
}),
|
|
82
|
+
z.transform((v) => {
|
|
83
|
+
return new DeleteV1TopicsIdNotFoundError(v, {
|
|
84
|
+
request: v.request$,
|
|
85
|
+
response: v.response$,
|
|
86
|
+
body: v.body$,
|
|
87
|
+
});
|
|
88
|
+
}),
|
|
89
|
+
);
|
|
90
|
+
|
|
91
|
+
/** @internal */
|
|
92
|
+
export const DeleteV1TopicsIdUnauthorizedError$inboundSchema: z.ZodMiniType<
|
|
93
|
+
DeleteV1TopicsIdUnauthorizedError,
|
|
94
|
+
unknown
|
|
95
|
+
> = z.pipe(
|
|
96
|
+
z.object({
|
|
97
|
+
error: types.string(),
|
|
98
|
+
request$: z.custom<Request>(x => x instanceof Request),
|
|
99
|
+
response$: z.custom<Response>(x => x instanceof Response),
|
|
100
|
+
body$: z.string(),
|
|
101
|
+
}),
|
|
102
|
+
z.transform((v) => {
|
|
103
|
+
return new DeleteV1TopicsIdUnauthorizedError(v, {
|
|
104
|
+
request: v.request$,
|
|
105
|
+
response: v.response$,
|
|
106
|
+
body: v.body$,
|
|
107
|
+
});
|
|
108
|
+
}),
|
|
109
|
+
);
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v4-mini";
|
|
6
|
+
import * as types from "../../types/primitives.js";
|
|
7
|
+
import { EmailrError } from "./emailrerror.js";
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* Unauthorized
|
|
11
|
+
*/
|
|
12
|
+
export type GetV1BillingUsageUnauthorizedErrorData = {
|
|
13
|
+
error: string;
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* Unauthorized
|
|
18
|
+
*/
|
|
19
|
+
export class GetV1BillingUsageUnauthorizedError extends EmailrError {
|
|
20
|
+
error: string;
|
|
21
|
+
|
|
22
|
+
/** The original data that was passed to this error instance. */
|
|
23
|
+
data$: GetV1BillingUsageUnauthorizedErrorData;
|
|
24
|
+
|
|
25
|
+
constructor(
|
|
26
|
+
err: GetV1BillingUsageUnauthorizedErrorData,
|
|
27
|
+
httpMeta: { response: Response; request: Request; body: string },
|
|
28
|
+
) {
|
|
29
|
+
const message = "message" in err && typeof err.message === "string"
|
|
30
|
+
? err.message
|
|
31
|
+
: `API error occurred: ${JSON.stringify(err)}`;
|
|
32
|
+
super(message, httpMeta);
|
|
33
|
+
this.data$ = err;
|
|
34
|
+
this.error = err.error;
|
|
35
|
+
|
|
36
|
+
this.name = "GetV1BillingUsageUnauthorizedError";
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
/** @internal */
|
|
41
|
+
export const GetV1BillingUsageUnauthorizedError$inboundSchema: z.ZodMiniType<
|
|
42
|
+
GetV1BillingUsageUnauthorizedError,
|
|
43
|
+
unknown
|
|
44
|
+
> = z.pipe(
|
|
45
|
+
z.object({
|
|
46
|
+
error: types.string(),
|
|
47
|
+
request$: z.custom<Request>(x => x instanceof Request),
|
|
48
|
+
response$: z.custom<Response>(x => x instanceof Response),
|
|
49
|
+
body$: z.string(),
|
|
50
|
+
}),
|
|
51
|
+
z.transform((v) => {
|
|
52
|
+
return new GetV1BillingUsageUnauthorizedError(v, {
|
|
53
|
+
request: v.request$,
|
|
54
|
+
response: v.response$,
|
|
55
|
+
body: v.body$,
|
|
56
|
+
});
|
|
57
|
+
}),
|
|
58
|
+
);
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v4-mini";
|
|
6
|
+
import * as types from "../../types/primitives.js";
|
|
7
|
+
import { EmailrError } from "./emailrerror.js";
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* Unauthorized
|
|
11
|
+
*/
|
|
12
|
+
export type GetV1TopicsUnauthorizedErrorData = {
|
|
13
|
+
error: string;
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* Unauthorized
|
|
18
|
+
*/
|
|
19
|
+
export class GetV1TopicsUnauthorizedError extends EmailrError {
|
|
20
|
+
error: string;
|
|
21
|
+
|
|
22
|
+
/** The original data that was passed to this error instance. */
|
|
23
|
+
data$: GetV1TopicsUnauthorizedErrorData;
|
|
24
|
+
|
|
25
|
+
constructor(
|
|
26
|
+
err: GetV1TopicsUnauthorizedErrorData,
|
|
27
|
+
httpMeta: { response: Response; request: Request; body: string },
|
|
28
|
+
) {
|
|
29
|
+
const message = "message" in err && typeof err.message === "string"
|
|
30
|
+
? err.message
|
|
31
|
+
: `API error occurred: ${JSON.stringify(err)}`;
|
|
32
|
+
super(message, httpMeta);
|
|
33
|
+
this.data$ = err;
|
|
34
|
+
this.error = err.error;
|
|
35
|
+
|
|
36
|
+
this.name = "GetV1TopicsUnauthorizedError";
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
/** @internal */
|
|
41
|
+
export const GetV1TopicsUnauthorizedError$inboundSchema: z.ZodMiniType<
|
|
42
|
+
GetV1TopicsUnauthorizedError,
|
|
43
|
+
unknown
|
|
44
|
+
> = z.pipe(
|
|
45
|
+
z.object({
|
|
46
|
+
error: types.string(),
|
|
47
|
+
request$: z.custom<Request>(x => x instanceof Request),
|
|
48
|
+
response$: z.custom<Response>(x => x instanceof Response),
|
|
49
|
+
body$: z.string(),
|
|
50
|
+
}),
|
|
51
|
+
z.transform((v) => {
|
|
52
|
+
return new GetV1TopicsUnauthorizedError(v, {
|
|
53
|
+
request: v.request$,
|
|
54
|
+
response: v.response$,
|
|
55
|
+
body: v.body$,
|
|
56
|
+
});
|
|
57
|
+
}),
|
|
58
|
+
);
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v4-mini";
|
|
6
|
+
import * as types from "../../types/primitives.js";
|
|
7
|
+
import { EmailrError } from "./emailrerror.js";
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* Organization or contact not found
|
|
11
|
+
*/
|
|
12
|
+
export type GetV1UnsubscribeOrganizationIdNotFoundErrorData = {
|
|
13
|
+
error: string;
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* Organization or contact not found
|
|
18
|
+
*/
|
|
19
|
+
export class GetV1UnsubscribeOrganizationIdNotFoundError extends EmailrError {
|
|
20
|
+
error: string;
|
|
21
|
+
|
|
22
|
+
/** The original data that was passed to this error instance. */
|
|
23
|
+
data$: GetV1UnsubscribeOrganizationIdNotFoundErrorData;
|
|
24
|
+
|
|
25
|
+
constructor(
|
|
26
|
+
err: GetV1UnsubscribeOrganizationIdNotFoundErrorData,
|
|
27
|
+
httpMeta: { response: Response; request: Request; body: string },
|
|
28
|
+
) {
|
|
29
|
+
const message = "message" in err && typeof err.message === "string"
|
|
30
|
+
? err.message
|
|
31
|
+
: `API error occurred: ${JSON.stringify(err)}`;
|
|
32
|
+
super(message, httpMeta);
|
|
33
|
+
this.data$ = err;
|
|
34
|
+
this.error = err.error;
|
|
35
|
+
|
|
36
|
+
this.name = "GetV1UnsubscribeOrganizationIdNotFoundError";
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
/** @internal */
|
|
41
|
+
export const GetV1UnsubscribeOrganizationIdNotFoundError$inboundSchema:
|
|
42
|
+
z.ZodMiniType<GetV1UnsubscribeOrganizationIdNotFoundError, unknown> = z.pipe(
|
|
43
|
+
z.object({
|
|
44
|
+
error: types.string(),
|
|
45
|
+
request$: z.custom<Request>(x => x instanceof Request),
|
|
46
|
+
response$: z.custom<Response>(x => x instanceof Response),
|
|
47
|
+
body$: z.string(),
|
|
48
|
+
}),
|
|
49
|
+
z.transform((v) => {
|
|
50
|
+
return new GetV1UnsubscribeOrganizationIdNotFoundError(v, {
|
|
51
|
+
request: v.request$,
|
|
52
|
+
response: v.response$,
|
|
53
|
+
body: v.body$,
|
|
54
|
+
});
|
|
55
|
+
}),
|
|
56
|
+
);
|