emailr 0.1.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 +93 -37
- 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 +3 -3
- package/dist/commonjs/lib/config.js +3 -3
- package/dist/commonjs/lib/config.js.map +1 -1
- 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 +3 -3
- package/dist/esm/lib/config.js +3 -3
- package/dist/esm/lib/config.js.map +1 -1
- 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 +5 -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 +3 -3
- 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,98 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v4-mini";
|
|
6
|
+
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
8
|
+
import * as openEnums from "../../types/enums.js";
|
|
9
|
+
import { OpenEnum } from "../../types/enums.js";
|
|
10
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
11
|
+
import * as types from "../../types/primitives.js";
|
|
12
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
13
|
+
|
|
14
|
+
export const GetV1ContactSyncSourceType = {
|
|
15
|
+
Supabase: "supabase",
|
|
16
|
+
Vercel: "vercel",
|
|
17
|
+
Webhook: "webhook",
|
|
18
|
+
} as const;
|
|
19
|
+
export type GetV1ContactSyncSourceType = OpenEnum<
|
|
20
|
+
typeof GetV1ContactSyncSourceType
|
|
21
|
+
>;
|
|
22
|
+
|
|
23
|
+
export type Sync = {
|
|
24
|
+
id: string;
|
|
25
|
+
organizationId: string;
|
|
26
|
+
sourceType: GetV1ContactSyncSourceType;
|
|
27
|
+
sourceProjectId: string;
|
|
28
|
+
sourceTable: string;
|
|
29
|
+
fieldMappings?: any | null | undefined;
|
|
30
|
+
syncEnabled: boolean;
|
|
31
|
+
createdAt: string;
|
|
32
|
+
};
|
|
33
|
+
|
|
34
|
+
/**
|
|
35
|
+
* List of contact syncs
|
|
36
|
+
*/
|
|
37
|
+
export type GetV1ContactSyncResponse = {
|
|
38
|
+
syncs: Array<Sync>;
|
|
39
|
+
};
|
|
40
|
+
|
|
41
|
+
/** @internal */
|
|
42
|
+
export const GetV1ContactSyncSourceType$inboundSchema: z.ZodMiniType<
|
|
43
|
+
GetV1ContactSyncSourceType,
|
|
44
|
+
unknown
|
|
45
|
+
> = openEnums.inboundSchema(GetV1ContactSyncSourceType);
|
|
46
|
+
|
|
47
|
+
/** @internal */
|
|
48
|
+
export const Sync$inboundSchema: z.ZodMiniType<Sync, unknown> = z.pipe(
|
|
49
|
+
z.object({
|
|
50
|
+
id: types.string(),
|
|
51
|
+
organization_id: types.string(),
|
|
52
|
+
source_type: GetV1ContactSyncSourceType$inboundSchema,
|
|
53
|
+
source_project_id: types.string(),
|
|
54
|
+
source_table: types.string(),
|
|
55
|
+
field_mappings: z.optional(z.nullable(z.any())),
|
|
56
|
+
sync_enabled: types.boolean(),
|
|
57
|
+
created_at: types.string(),
|
|
58
|
+
}),
|
|
59
|
+
z.transform((v) => {
|
|
60
|
+
return remap$(v, {
|
|
61
|
+
"organization_id": "organizationId",
|
|
62
|
+
"source_type": "sourceType",
|
|
63
|
+
"source_project_id": "sourceProjectId",
|
|
64
|
+
"source_table": "sourceTable",
|
|
65
|
+
"field_mappings": "fieldMappings",
|
|
66
|
+
"sync_enabled": "syncEnabled",
|
|
67
|
+
"created_at": "createdAt",
|
|
68
|
+
});
|
|
69
|
+
}),
|
|
70
|
+
);
|
|
71
|
+
|
|
72
|
+
export function syncFromJSON(
|
|
73
|
+
jsonString: string,
|
|
74
|
+
): SafeParseResult<Sync, SDKValidationError> {
|
|
75
|
+
return safeParse(
|
|
76
|
+
jsonString,
|
|
77
|
+
(x) => Sync$inboundSchema.parse(JSON.parse(x)),
|
|
78
|
+
`Failed to parse 'Sync' from JSON`,
|
|
79
|
+
);
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
/** @internal */
|
|
83
|
+
export const GetV1ContactSyncResponse$inboundSchema: z.ZodMiniType<
|
|
84
|
+
GetV1ContactSyncResponse,
|
|
85
|
+
unknown
|
|
86
|
+
> = z.object({
|
|
87
|
+
syncs: z.array(z.lazy(() => Sync$inboundSchema)),
|
|
88
|
+
});
|
|
89
|
+
|
|
90
|
+
export function getV1ContactSyncResponseFromJSON(
|
|
91
|
+
jsonString: string,
|
|
92
|
+
): SafeParseResult<GetV1ContactSyncResponse, SDKValidationError> {
|
|
93
|
+
return safeParse(
|
|
94
|
+
jsonString,
|
|
95
|
+
(x) => GetV1ContactSyncResponse$inboundSchema.parse(JSON.parse(x)),
|
|
96
|
+
`Failed to parse 'GetV1ContactSyncResponse' from JSON`,
|
|
97
|
+
);
|
|
98
|
+
}
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v4-mini";
|
|
6
|
+
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
8
|
+
import * as openEnums from "../../types/enums.js";
|
|
9
|
+
import { OpenEnum } from "../../types/enums.js";
|
|
10
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
11
|
+
import * as types from "../../types/primitives.js";
|
|
12
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
13
|
+
|
|
14
|
+
export const Provider = {
|
|
15
|
+
Supabase: "supabase",
|
|
16
|
+
Vercel: "vercel",
|
|
17
|
+
} as const;
|
|
18
|
+
export type Provider = OpenEnum<typeof Provider>;
|
|
19
|
+
|
|
20
|
+
export type Connection = {
|
|
21
|
+
id: string;
|
|
22
|
+
provider: Provider;
|
|
23
|
+
providerUserId: string;
|
|
24
|
+
providerMetadata?: any | null | undefined;
|
|
25
|
+
createdAt: string;
|
|
26
|
+
};
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* List of OAuth connections
|
|
30
|
+
*/
|
|
31
|
+
export type GetV1IntegrationsConnectionsResponse = {
|
|
32
|
+
connections: Array<Connection>;
|
|
33
|
+
};
|
|
34
|
+
|
|
35
|
+
/** @internal */
|
|
36
|
+
export const Provider$inboundSchema: z.ZodMiniType<Provider, unknown> =
|
|
37
|
+
openEnums.inboundSchema(Provider);
|
|
38
|
+
|
|
39
|
+
/** @internal */
|
|
40
|
+
export const Connection$inboundSchema: z.ZodMiniType<Connection, unknown> = z
|
|
41
|
+
.pipe(
|
|
42
|
+
z.object({
|
|
43
|
+
id: types.string(),
|
|
44
|
+
provider: Provider$inboundSchema,
|
|
45
|
+
provider_user_id: types.string(),
|
|
46
|
+
provider_metadata: z.optional(z.nullable(z.any())),
|
|
47
|
+
created_at: types.string(),
|
|
48
|
+
}),
|
|
49
|
+
z.transform((v) => {
|
|
50
|
+
return remap$(v, {
|
|
51
|
+
"provider_user_id": "providerUserId",
|
|
52
|
+
"provider_metadata": "providerMetadata",
|
|
53
|
+
"created_at": "createdAt",
|
|
54
|
+
});
|
|
55
|
+
}),
|
|
56
|
+
);
|
|
57
|
+
|
|
58
|
+
export function connectionFromJSON(
|
|
59
|
+
jsonString: string,
|
|
60
|
+
): SafeParseResult<Connection, SDKValidationError> {
|
|
61
|
+
return safeParse(
|
|
62
|
+
jsonString,
|
|
63
|
+
(x) => Connection$inboundSchema.parse(JSON.parse(x)),
|
|
64
|
+
`Failed to parse 'Connection' from JSON`,
|
|
65
|
+
);
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
/** @internal */
|
|
69
|
+
export const GetV1IntegrationsConnectionsResponse$inboundSchema: z.ZodMiniType<
|
|
70
|
+
GetV1IntegrationsConnectionsResponse,
|
|
71
|
+
unknown
|
|
72
|
+
> = z.object({
|
|
73
|
+
connections: z.array(z.lazy(() => Connection$inboundSchema)),
|
|
74
|
+
});
|
|
75
|
+
|
|
76
|
+
export function getV1IntegrationsConnectionsResponseFromJSON(
|
|
77
|
+
jsonString: string,
|
|
78
|
+
): SafeParseResult<GetV1IntegrationsConnectionsResponse, SDKValidationError> {
|
|
79
|
+
return safeParse(
|
|
80
|
+
jsonString,
|
|
81
|
+
(x) =>
|
|
82
|
+
GetV1IntegrationsConnectionsResponse$inboundSchema.parse(JSON.parse(x)),
|
|
83
|
+
`Failed to parse 'GetV1IntegrationsConnectionsResponse' from JSON`,
|
|
84
|
+
);
|
|
85
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v4-mini";
|
|
6
|
+
|
|
7
|
+
export type GetV1IntegrationsSupabaseCallbackRequest = {
|
|
8
|
+
code: string;
|
|
9
|
+
state: string;
|
|
10
|
+
};
|
|
11
|
+
|
|
12
|
+
/** @internal */
|
|
13
|
+
export type GetV1IntegrationsSupabaseCallbackRequest$Outbound = {
|
|
14
|
+
code: string;
|
|
15
|
+
state: string;
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
/** @internal */
|
|
19
|
+
export const GetV1IntegrationsSupabaseCallbackRequest$outboundSchema:
|
|
20
|
+
z.ZodMiniType<
|
|
21
|
+
GetV1IntegrationsSupabaseCallbackRequest$Outbound,
|
|
22
|
+
GetV1IntegrationsSupabaseCallbackRequest
|
|
23
|
+
> = z.object({
|
|
24
|
+
code: z.string(),
|
|
25
|
+
state: z.string(),
|
|
26
|
+
});
|
|
27
|
+
|
|
28
|
+
export function getV1IntegrationsSupabaseCallbackRequestToJSON(
|
|
29
|
+
getV1IntegrationsSupabaseCallbackRequest:
|
|
30
|
+
GetV1IntegrationsSupabaseCallbackRequest,
|
|
31
|
+
): string {
|
|
32
|
+
return JSON.stringify(
|
|
33
|
+
GetV1IntegrationsSupabaseCallbackRequest$outboundSchema.parse(
|
|
34
|
+
getV1IntegrationsSupabaseCallbackRequest,
|
|
35
|
+
),
|
|
36
|
+
);
|
|
37
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v4-mini";
|
|
6
|
+
|
|
7
|
+
export type GetV1IntegrationsVercelCallbackRequest = {
|
|
8
|
+
code: string;
|
|
9
|
+
state: string;
|
|
10
|
+
};
|
|
11
|
+
|
|
12
|
+
/** @internal */
|
|
13
|
+
export type GetV1IntegrationsVercelCallbackRequest$Outbound = {
|
|
14
|
+
code: string;
|
|
15
|
+
state: string;
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
/** @internal */
|
|
19
|
+
export const GetV1IntegrationsVercelCallbackRequest$outboundSchema:
|
|
20
|
+
z.ZodMiniType<
|
|
21
|
+
GetV1IntegrationsVercelCallbackRequest$Outbound,
|
|
22
|
+
GetV1IntegrationsVercelCallbackRequest
|
|
23
|
+
> = z.object({
|
|
24
|
+
code: z.string(),
|
|
25
|
+
state: z.string(),
|
|
26
|
+
});
|
|
27
|
+
|
|
28
|
+
export function getV1IntegrationsVercelCallbackRequestToJSON(
|
|
29
|
+
getV1IntegrationsVercelCallbackRequest:
|
|
30
|
+
GetV1IntegrationsVercelCallbackRequest,
|
|
31
|
+
): string {
|
|
32
|
+
return JSON.stringify(
|
|
33
|
+
GetV1IntegrationsVercelCallbackRequest$outboundSchema.parse(
|
|
34
|
+
getV1IntegrationsVercelCallbackRequest,
|
|
35
|
+
),
|
|
36
|
+
);
|
|
37
|
+
}
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v4-mini";
|
|
6
|
+
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
8
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
|
+
import * as types from "../../types/primitives.js";
|
|
10
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
11
|
+
|
|
12
|
+
export type GetV1TopicsTopic = {
|
|
13
|
+
id: string;
|
|
14
|
+
organizationId: string;
|
|
15
|
+
name: string;
|
|
16
|
+
description: string | null;
|
|
17
|
+
createdAt: string;
|
|
18
|
+
updatedAt: string;
|
|
19
|
+
};
|
|
20
|
+
|
|
21
|
+
/**
|
|
22
|
+
* List of topics
|
|
23
|
+
*/
|
|
24
|
+
export type GetV1TopicsResponse = {
|
|
25
|
+
topics: Array<GetV1TopicsTopic>;
|
|
26
|
+
};
|
|
27
|
+
|
|
28
|
+
/** @internal */
|
|
29
|
+
export const GetV1TopicsTopic$inboundSchema: z.ZodMiniType<
|
|
30
|
+
GetV1TopicsTopic,
|
|
31
|
+
unknown
|
|
32
|
+
> = z.pipe(
|
|
33
|
+
z.object({
|
|
34
|
+
id: types.string(),
|
|
35
|
+
organization_id: types.string(),
|
|
36
|
+
name: types.string(),
|
|
37
|
+
description: types.nullable(types.string()),
|
|
38
|
+
created_at: types.string(),
|
|
39
|
+
updated_at: types.string(),
|
|
40
|
+
}),
|
|
41
|
+
z.transform((v) => {
|
|
42
|
+
return remap$(v, {
|
|
43
|
+
"organization_id": "organizationId",
|
|
44
|
+
"created_at": "createdAt",
|
|
45
|
+
"updated_at": "updatedAt",
|
|
46
|
+
});
|
|
47
|
+
}),
|
|
48
|
+
);
|
|
49
|
+
|
|
50
|
+
export function getV1TopicsTopicFromJSON(
|
|
51
|
+
jsonString: string,
|
|
52
|
+
): SafeParseResult<GetV1TopicsTopic, SDKValidationError> {
|
|
53
|
+
return safeParse(
|
|
54
|
+
jsonString,
|
|
55
|
+
(x) => GetV1TopicsTopic$inboundSchema.parse(JSON.parse(x)),
|
|
56
|
+
`Failed to parse 'GetV1TopicsTopic' from JSON`,
|
|
57
|
+
);
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
/** @internal */
|
|
61
|
+
export const GetV1TopicsResponse$inboundSchema: z.ZodMiniType<
|
|
62
|
+
GetV1TopicsResponse,
|
|
63
|
+
unknown
|
|
64
|
+
> = z.object({
|
|
65
|
+
topics: z.array(z.lazy(() => GetV1TopicsTopic$inboundSchema)),
|
|
66
|
+
});
|
|
67
|
+
|
|
68
|
+
export function getV1TopicsResponseFromJSON(
|
|
69
|
+
jsonString: string,
|
|
70
|
+
): SafeParseResult<GetV1TopicsResponse, SDKValidationError> {
|
|
71
|
+
return safeParse(
|
|
72
|
+
jsonString,
|
|
73
|
+
(x) => GetV1TopicsResponse$inboundSchema.parse(JSON.parse(x)),
|
|
74
|
+
`Failed to parse 'GetV1TopicsResponse' from JSON`,
|
|
75
|
+
);
|
|
76
|
+
}
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v4-mini";
|
|
6
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
7
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
8
|
+
import * as types from "../../types/primitives.js";
|
|
9
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
|
+
|
|
11
|
+
export type GetV1UnsubscribeOrganizationIdRequest = {
|
|
12
|
+
organizationId: string;
|
|
13
|
+
email: string;
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
export type GetV1UnsubscribeOrganizationIdTopic = {
|
|
17
|
+
id: string;
|
|
18
|
+
name: string;
|
|
19
|
+
description: string | null;
|
|
20
|
+
};
|
|
21
|
+
|
|
22
|
+
/**
|
|
23
|
+
* Unsubscribe page data
|
|
24
|
+
*/
|
|
25
|
+
export type GetV1UnsubscribeOrganizationIdResponse = {
|
|
26
|
+
organizationName: string;
|
|
27
|
+
companyName: string | null;
|
|
28
|
+
logoUrl: string | null;
|
|
29
|
+
primaryColor: string | null;
|
|
30
|
+
topics: Array<GetV1UnsubscribeOrganizationIdTopic>;
|
|
31
|
+
contactEmail: string;
|
|
32
|
+
currentUnsubscribes: Array<string>;
|
|
33
|
+
};
|
|
34
|
+
|
|
35
|
+
/** @internal */
|
|
36
|
+
export type GetV1UnsubscribeOrganizationIdRequest$Outbound = {
|
|
37
|
+
organizationId: string;
|
|
38
|
+
email: string;
|
|
39
|
+
};
|
|
40
|
+
|
|
41
|
+
/** @internal */
|
|
42
|
+
export const GetV1UnsubscribeOrganizationIdRequest$outboundSchema:
|
|
43
|
+
z.ZodMiniType<
|
|
44
|
+
GetV1UnsubscribeOrganizationIdRequest$Outbound,
|
|
45
|
+
GetV1UnsubscribeOrganizationIdRequest
|
|
46
|
+
> = z.object({
|
|
47
|
+
organizationId: z.string(),
|
|
48
|
+
email: z.string(),
|
|
49
|
+
});
|
|
50
|
+
|
|
51
|
+
export function getV1UnsubscribeOrganizationIdRequestToJSON(
|
|
52
|
+
getV1UnsubscribeOrganizationIdRequest: GetV1UnsubscribeOrganizationIdRequest,
|
|
53
|
+
): string {
|
|
54
|
+
return JSON.stringify(
|
|
55
|
+
GetV1UnsubscribeOrganizationIdRequest$outboundSchema.parse(
|
|
56
|
+
getV1UnsubscribeOrganizationIdRequest,
|
|
57
|
+
),
|
|
58
|
+
);
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
/** @internal */
|
|
62
|
+
export const GetV1UnsubscribeOrganizationIdTopic$inboundSchema: z.ZodMiniType<
|
|
63
|
+
GetV1UnsubscribeOrganizationIdTopic,
|
|
64
|
+
unknown
|
|
65
|
+
> = z.object({
|
|
66
|
+
id: types.string(),
|
|
67
|
+
name: types.string(),
|
|
68
|
+
description: types.nullable(types.string()),
|
|
69
|
+
});
|
|
70
|
+
|
|
71
|
+
export function getV1UnsubscribeOrganizationIdTopicFromJSON(
|
|
72
|
+
jsonString: string,
|
|
73
|
+
): SafeParseResult<GetV1UnsubscribeOrganizationIdTopic, SDKValidationError> {
|
|
74
|
+
return safeParse(
|
|
75
|
+
jsonString,
|
|
76
|
+
(x) =>
|
|
77
|
+
GetV1UnsubscribeOrganizationIdTopic$inboundSchema.parse(JSON.parse(x)),
|
|
78
|
+
`Failed to parse 'GetV1UnsubscribeOrganizationIdTopic' from JSON`,
|
|
79
|
+
);
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
/** @internal */
|
|
83
|
+
export const GetV1UnsubscribeOrganizationIdResponse$inboundSchema:
|
|
84
|
+
z.ZodMiniType<GetV1UnsubscribeOrganizationIdResponse, unknown> = z.object({
|
|
85
|
+
organizationName: types.string(),
|
|
86
|
+
companyName: types.nullable(types.string()),
|
|
87
|
+
logoUrl: types.nullable(types.string()),
|
|
88
|
+
primaryColor: types.nullable(types.string()),
|
|
89
|
+
topics: z.array(
|
|
90
|
+
z.lazy(() => GetV1UnsubscribeOrganizationIdTopic$inboundSchema),
|
|
91
|
+
),
|
|
92
|
+
contactEmail: types.string(),
|
|
93
|
+
currentUnsubscribes: z.array(types.string()),
|
|
94
|
+
});
|
|
95
|
+
|
|
96
|
+
export function getV1UnsubscribeOrganizationIdResponseFromJSON(
|
|
97
|
+
jsonString: string,
|
|
98
|
+
): SafeParseResult<GetV1UnsubscribeOrganizationIdResponse, SDKValidationError> {
|
|
99
|
+
return safeParse(
|
|
100
|
+
jsonString,
|
|
101
|
+
(x) =>
|
|
102
|
+
GetV1UnsubscribeOrganizationIdResponse$inboundSchema.parse(JSON.parse(x)),
|
|
103
|
+
`Failed to parse 'GetV1UnsubscribeOrganizationIdResponse' from JSON`,
|
|
104
|
+
);
|
|
105
|
+
}
|
|
@@ -6,6 +6,9 @@ export * from "./addcontacttosegment.js";
|
|
|
6
6
|
export * from "./deletecontact.js";
|
|
7
7
|
export * from "./deletedomain.js";
|
|
8
8
|
export * from "./deletetemplate.js";
|
|
9
|
+
export * from "./deletev1contactsyncid.js";
|
|
10
|
+
export * from "./deletev1integrationsid.js";
|
|
11
|
+
export * from "./deletev1topicsid.js";
|
|
9
12
|
export * from "./deletewebhook.js";
|
|
10
13
|
export * from "./getbroadcast.js";
|
|
11
14
|
export * from "./getcontact.js";
|
|
@@ -13,10 +16,25 @@ export * from "./getdomaindnsstatus.js";
|
|
|
13
16
|
export * from "./getemail.js";
|
|
14
17
|
export * from "./gettemplate.js";
|
|
15
18
|
export * from "./getusage.js";
|
|
19
|
+
export * from "./getv1billingusage.js";
|
|
20
|
+
export * from "./getv1contactsync.js";
|
|
21
|
+
export * from "./getv1integrationsconnections.js";
|
|
22
|
+
export * from "./getv1integrationssupabasecallback.js";
|
|
23
|
+
export * from "./getv1integrationsvercelcallback.js";
|
|
24
|
+
export * from "./getv1topics.js";
|
|
25
|
+
export * from "./getv1unsubscribeorganizationid.js";
|
|
16
26
|
export * from "./getwebhookdeliveries.js";
|
|
17
27
|
export * from "./listcontacts.js";
|
|
18
28
|
export * from "./listemails.js";
|
|
19
29
|
export * from "./listlogs.js";
|
|
30
|
+
export * from "./postv1billingcheckout.js";
|
|
31
|
+
export * from "./postv1billingportal.js";
|
|
32
|
+
export * from "./postv1billingwebhooks.js";
|
|
33
|
+
export * from "./postv1contactsyncsupabase.js";
|
|
34
|
+
export * from "./postv1contactsyncwebhooksyncid.js";
|
|
35
|
+
export * from "./postv1topics.js";
|
|
36
|
+
export * from "./postv1unsubscribe.js";
|
|
37
|
+
export * from "./putv1topicsid.js";
|
|
20
38
|
export * from "./revokeapikey.js";
|
|
21
39
|
export * from "./sendbroadcast.js";
|
|
22
40
|
export * from "./togglewebhook.js";
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v4-mini";
|
|
6
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
7
|
+
import { ClosedEnum } from "../../types/enums.js";
|
|
8
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
|
+
import * as types from "../../types/primitives.js";
|
|
10
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
11
|
+
|
|
12
|
+
export const PlanType = {
|
|
13
|
+
Transactional: "transactional",
|
|
14
|
+
Marketing: "marketing",
|
|
15
|
+
} as const;
|
|
16
|
+
export type PlanType = ClosedEnum<typeof PlanType>;
|
|
17
|
+
|
|
18
|
+
export type PostV1BillingCheckoutRequest = {
|
|
19
|
+
/**
|
|
20
|
+
* Stripe Price ID
|
|
21
|
+
*/
|
|
22
|
+
priceId: string;
|
|
23
|
+
planType: PlanType;
|
|
24
|
+
};
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
* Checkout session created
|
|
28
|
+
*/
|
|
29
|
+
export type PostV1BillingCheckoutResponse = {
|
|
30
|
+
sessionId: string;
|
|
31
|
+
url: string;
|
|
32
|
+
};
|
|
33
|
+
|
|
34
|
+
/** @internal */
|
|
35
|
+
export const PlanType$outboundSchema: z.ZodMiniEnum<typeof PlanType> = z.enum(
|
|
36
|
+
PlanType,
|
|
37
|
+
);
|
|
38
|
+
|
|
39
|
+
/** @internal */
|
|
40
|
+
export type PostV1BillingCheckoutRequest$Outbound = {
|
|
41
|
+
priceId: string;
|
|
42
|
+
planType: string;
|
|
43
|
+
};
|
|
44
|
+
|
|
45
|
+
/** @internal */
|
|
46
|
+
export const PostV1BillingCheckoutRequest$outboundSchema: z.ZodMiniType<
|
|
47
|
+
PostV1BillingCheckoutRequest$Outbound,
|
|
48
|
+
PostV1BillingCheckoutRequest
|
|
49
|
+
> = z.object({
|
|
50
|
+
priceId: z.string(),
|
|
51
|
+
planType: PlanType$outboundSchema,
|
|
52
|
+
});
|
|
53
|
+
|
|
54
|
+
export function postV1BillingCheckoutRequestToJSON(
|
|
55
|
+
postV1BillingCheckoutRequest: PostV1BillingCheckoutRequest,
|
|
56
|
+
): string {
|
|
57
|
+
return JSON.stringify(
|
|
58
|
+
PostV1BillingCheckoutRequest$outboundSchema.parse(
|
|
59
|
+
postV1BillingCheckoutRequest,
|
|
60
|
+
),
|
|
61
|
+
);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
/** @internal */
|
|
65
|
+
export const PostV1BillingCheckoutResponse$inboundSchema: z.ZodMiniType<
|
|
66
|
+
PostV1BillingCheckoutResponse,
|
|
67
|
+
unknown
|
|
68
|
+
> = z.object({
|
|
69
|
+
sessionId: types.string(),
|
|
70
|
+
url: types.string(),
|
|
71
|
+
});
|
|
72
|
+
|
|
73
|
+
export function postV1BillingCheckoutResponseFromJSON(
|
|
74
|
+
jsonString: string,
|
|
75
|
+
): SafeParseResult<PostV1BillingCheckoutResponse, SDKValidationError> {
|
|
76
|
+
return safeParse(
|
|
77
|
+
jsonString,
|
|
78
|
+
(x) => PostV1BillingCheckoutResponse$inboundSchema.parse(JSON.parse(x)),
|
|
79
|
+
`Failed to parse 'PostV1BillingCheckoutResponse' from JSON`,
|
|
80
|
+
);
|
|
81
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v4-mini";
|
|
6
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
7
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
8
|
+
import * as types from "../../types/primitives.js";
|
|
9
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* Portal session created
|
|
13
|
+
*/
|
|
14
|
+
export type PostV1BillingPortalResponse = {
|
|
15
|
+
url: string;
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
/** @internal */
|
|
19
|
+
export const PostV1BillingPortalResponse$inboundSchema: z.ZodMiniType<
|
|
20
|
+
PostV1BillingPortalResponse,
|
|
21
|
+
unknown
|
|
22
|
+
> = z.object({
|
|
23
|
+
url: types.string(),
|
|
24
|
+
});
|
|
25
|
+
|
|
26
|
+
export function postV1BillingPortalResponseFromJSON(
|
|
27
|
+
jsonString: string,
|
|
28
|
+
): SafeParseResult<PostV1BillingPortalResponse, SDKValidationError> {
|
|
29
|
+
return safeParse(
|
|
30
|
+
jsonString,
|
|
31
|
+
(x) => PostV1BillingPortalResponse$inboundSchema.parse(JSON.parse(x)),
|
|
32
|
+
`Failed to parse 'PostV1BillingPortalResponse' from JSON`,
|
|
33
|
+
);
|
|
34
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v4-mini";
|
|
6
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
7
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
8
|
+
import * as types from "../../types/primitives.js";
|
|
9
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* Webhook processed
|
|
13
|
+
*/
|
|
14
|
+
export type PostV1BillingWebhooksResponse = {
|
|
15
|
+
received: boolean;
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
/** @internal */
|
|
19
|
+
export const PostV1BillingWebhooksResponse$inboundSchema: z.ZodMiniType<
|
|
20
|
+
PostV1BillingWebhooksResponse,
|
|
21
|
+
unknown
|
|
22
|
+
> = z.object({
|
|
23
|
+
received: types.boolean(),
|
|
24
|
+
});
|
|
25
|
+
|
|
26
|
+
export function postV1BillingWebhooksResponseFromJSON(
|
|
27
|
+
jsonString: string,
|
|
28
|
+
): SafeParseResult<PostV1BillingWebhooksResponse, SDKValidationError> {
|
|
29
|
+
return safeParse(
|
|
30
|
+
jsonString,
|
|
31
|
+
(x) => PostV1BillingWebhooksResponse$inboundSchema.parse(JSON.parse(x)),
|
|
32
|
+
`Failed to parse 'PostV1BillingWebhooksResponse' from JSON`,
|
|
33
|
+
);
|
|
34
|
+
}
|