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,148 @@
|
|
|
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 type FieldMappings = {
|
|
15
|
+
email: string;
|
|
16
|
+
customId?: string | undefined;
|
|
17
|
+
firstName?: string | undefined;
|
|
18
|
+
lastName?: string | undefined;
|
|
19
|
+
properties?: { [k: string]: string } | undefined;
|
|
20
|
+
};
|
|
21
|
+
|
|
22
|
+
export type PostV1ContactSyncSupabaseRequest = {
|
|
23
|
+
oauthConnectionId: string;
|
|
24
|
+
projectId: string;
|
|
25
|
+
tableName: string;
|
|
26
|
+
fieldMappings: FieldMappings;
|
|
27
|
+
};
|
|
28
|
+
|
|
29
|
+
export const PostV1ContactSyncSupabaseSourceType = {
|
|
30
|
+
Supabase: "supabase",
|
|
31
|
+
Vercel: "vercel",
|
|
32
|
+
Webhook: "webhook",
|
|
33
|
+
} as const;
|
|
34
|
+
export type PostV1ContactSyncSupabaseSourceType = OpenEnum<
|
|
35
|
+
typeof PostV1ContactSyncSupabaseSourceType
|
|
36
|
+
>;
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* Sync created
|
|
40
|
+
*/
|
|
41
|
+
export type PostV1ContactSyncSupabaseResponse = {
|
|
42
|
+
id: string;
|
|
43
|
+
organizationId: string;
|
|
44
|
+
sourceType: PostV1ContactSyncSupabaseSourceType;
|
|
45
|
+
sourceProjectId: string;
|
|
46
|
+
sourceTable: string;
|
|
47
|
+
fieldMappings?: any | null | undefined;
|
|
48
|
+
syncEnabled: boolean;
|
|
49
|
+
createdAt: string;
|
|
50
|
+
};
|
|
51
|
+
|
|
52
|
+
/** @internal */
|
|
53
|
+
export type FieldMappings$Outbound = {
|
|
54
|
+
email: string;
|
|
55
|
+
customId?: string | undefined;
|
|
56
|
+
firstName?: string | undefined;
|
|
57
|
+
lastName?: string | undefined;
|
|
58
|
+
properties?: { [k: string]: string } | undefined;
|
|
59
|
+
};
|
|
60
|
+
|
|
61
|
+
/** @internal */
|
|
62
|
+
export const FieldMappings$outboundSchema: z.ZodMiniType<
|
|
63
|
+
FieldMappings$Outbound,
|
|
64
|
+
FieldMappings
|
|
65
|
+
> = z.object({
|
|
66
|
+
email: z.string(),
|
|
67
|
+
customId: z.optional(z.string()),
|
|
68
|
+
firstName: z.optional(z.string()),
|
|
69
|
+
lastName: z.optional(z.string()),
|
|
70
|
+
properties: z.optional(z.record(z.string(), z.string())),
|
|
71
|
+
});
|
|
72
|
+
|
|
73
|
+
export function fieldMappingsToJSON(fieldMappings: FieldMappings): string {
|
|
74
|
+
return JSON.stringify(FieldMappings$outboundSchema.parse(fieldMappings));
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
/** @internal */
|
|
78
|
+
export type PostV1ContactSyncSupabaseRequest$Outbound = {
|
|
79
|
+
oauthConnectionId: string;
|
|
80
|
+
projectId: string;
|
|
81
|
+
tableName: string;
|
|
82
|
+
fieldMappings: FieldMappings$Outbound;
|
|
83
|
+
};
|
|
84
|
+
|
|
85
|
+
/** @internal */
|
|
86
|
+
export const PostV1ContactSyncSupabaseRequest$outboundSchema: z.ZodMiniType<
|
|
87
|
+
PostV1ContactSyncSupabaseRequest$Outbound,
|
|
88
|
+
PostV1ContactSyncSupabaseRequest
|
|
89
|
+
> = z.object({
|
|
90
|
+
oauthConnectionId: z.string(),
|
|
91
|
+
projectId: z.string(),
|
|
92
|
+
tableName: z.string(),
|
|
93
|
+
fieldMappings: z.lazy(() => FieldMappings$outboundSchema),
|
|
94
|
+
});
|
|
95
|
+
|
|
96
|
+
export function postV1ContactSyncSupabaseRequestToJSON(
|
|
97
|
+
postV1ContactSyncSupabaseRequest: PostV1ContactSyncSupabaseRequest,
|
|
98
|
+
): string {
|
|
99
|
+
return JSON.stringify(
|
|
100
|
+
PostV1ContactSyncSupabaseRequest$outboundSchema.parse(
|
|
101
|
+
postV1ContactSyncSupabaseRequest,
|
|
102
|
+
),
|
|
103
|
+
);
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
/** @internal */
|
|
107
|
+
export const PostV1ContactSyncSupabaseSourceType$inboundSchema: z.ZodMiniType<
|
|
108
|
+
PostV1ContactSyncSupabaseSourceType,
|
|
109
|
+
unknown
|
|
110
|
+
> = openEnums.inboundSchema(PostV1ContactSyncSupabaseSourceType);
|
|
111
|
+
|
|
112
|
+
/** @internal */
|
|
113
|
+
export const PostV1ContactSyncSupabaseResponse$inboundSchema: z.ZodMiniType<
|
|
114
|
+
PostV1ContactSyncSupabaseResponse,
|
|
115
|
+
unknown
|
|
116
|
+
> = z.pipe(
|
|
117
|
+
z.object({
|
|
118
|
+
id: types.string(),
|
|
119
|
+
organization_id: types.string(),
|
|
120
|
+
source_type: PostV1ContactSyncSupabaseSourceType$inboundSchema,
|
|
121
|
+
source_project_id: types.string(),
|
|
122
|
+
source_table: types.string(),
|
|
123
|
+
field_mappings: z.optional(z.nullable(z.any())),
|
|
124
|
+
sync_enabled: types.boolean(),
|
|
125
|
+
created_at: types.string(),
|
|
126
|
+
}),
|
|
127
|
+
z.transform((v) => {
|
|
128
|
+
return remap$(v, {
|
|
129
|
+
"organization_id": "organizationId",
|
|
130
|
+
"source_type": "sourceType",
|
|
131
|
+
"source_project_id": "sourceProjectId",
|
|
132
|
+
"source_table": "sourceTable",
|
|
133
|
+
"field_mappings": "fieldMappings",
|
|
134
|
+
"sync_enabled": "syncEnabled",
|
|
135
|
+
"created_at": "createdAt",
|
|
136
|
+
});
|
|
137
|
+
}),
|
|
138
|
+
);
|
|
139
|
+
|
|
140
|
+
export function postV1ContactSyncSupabaseResponseFromJSON(
|
|
141
|
+
jsonString: string,
|
|
142
|
+
): SafeParseResult<PostV1ContactSyncSupabaseResponse, SDKValidationError> {
|
|
143
|
+
return safeParse(
|
|
144
|
+
jsonString,
|
|
145
|
+
(x) => PostV1ContactSyncSupabaseResponse$inboundSchema.parse(JSON.parse(x)),
|
|
146
|
+
`Failed to parse 'PostV1ContactSyncSupabaseResponse' from JSON`,
|
|
147
|
+
);
|
|
148
|
+
}
|
|
@@ -0,0 +1,64 @@
|
|
|
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 PostV1ContactSyncWebhookSyncIdRequest = {
|
|
12
|
+
syncId: string;
|
|
13
|
+
body?: any | null | undefined;
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* Webhook processed
|
|
18
|
+
*/
|
|
19
|
+
export type PostV1ContactSyncWebhookSyncIdResponse = {
|
|
20
|
+
success: boolean;
|
|
21
|
+
};
|
|
22
|
+
|
|
23
|
+
/** @internal */
|
|
24
|
+
export type PostV1ContactSyncWebhookSyncIdRequest$Outbound = {
|
|
25
|
+
syncId: string;
|
|
26
|
+
body?: any | null | undefined;
|
|
27
|
+
};
|
|
28
|
+
|
|
29
|
+
/** @internal */
|
|
30
|
+
export const PostV1ContactSyncWebhookSyncIdRequest$outboundSchema:
|
|
31
|
+
z.ZodMiniType<
|
|
32
|
+
PostV1ContactSyncWebhookSyncIdRequest$Outbound,
|
|
33
|
+
PostV1ContactSyncWebhookSyncIdRequest
|
|
34
|
+
> = z.object({
|
|
35
|
+
syncId: z.string(),
|
|
36
|
+
body: z.optional(z.nullable(z.any())),
|
|
37
|
+
});
|
|
38
|
+
|
|
39
|
+
export function postV1ContactSyncWebhookSyncIdRequestToJSON(
|
|
40
|
+
postV1ContactSyncWebhookSyncIdRequest: PostV1ContactSyncWebhookSyncIdRequest,
|
|
41
|
+
): string {
|
|
42
|
+
return JSON.stringify(
|
|
43
|
+
PostV1ContactSyncWebhookSyncIdRequest$outboundSchema.parse(
|
|
44
|
+
postV1ContactSyncWebhookSyncIdRequest,
|
|
45
|
+
),
|
|
46
|
+
);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
/** @internal */
|
|
50
|
+
export const PostV1ContactSyncWebhookSyncIdResponse$inboundSchema:
|
|
51
|
+
z.ZodMiniType<PostV1ContactSyncWebhookSyncIdResponse, unknown> = z.object({
|
|
52
|
+
success: types.boolean(),
|
|
53
|
+
});
|
|
54
|
+
|
|
55
|
+
export function postV1ContactSyncWebhookSyncIdResponseFromJSON(
|
|
56
|
+
jsonString: string,
|
|
57
|
+
): SafeParseResult<PostV1ContactSyncWebhookSyncIdResponse, SDKValidationError> {
|
|
58
|
+
return safeParse(
|
|
59
|
+
jsonString,
|
|
60
|
+
(x) =>
|
|
61
|
+
PostV1ContactSyncWebhookSyncIdResponse$inboundSchema.parse(JSON.parse(x)),
|
|
62
|
+
`Failed to parse 'PostV1ContactSyncWebhookSyncIdResponse' from JSON`,
|
|
63
|
+
);
|
|
64
|
+
}
|
|
@@ -0,0 +1,82 @@
|
|
|
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 PostV1TopicsRequest = {
|
|
13
|
+
name: string;
|
|
14
|
+
description?: string | undefined;
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* Topic created
|
|
19
|
+
*/
|
|
20
|
+
export type PostV1TopicsResponse = {
|
|
21
|
+
id: string;
|
|
22
|
+
organizationId: string;
|
|
23
|
+
name: string;
|
|
24
|
+
description: string | null;
|
|
25
|
+
createdAt: string;
|
|
26
|
+
updatedAt: string;
|
|
27
|
+
};
|
|
28
|
+
|
|
29
|
+
/** @internal */
|
|
30
|
+
export type PostV1TopicsRequest$Outbound = {
|
|
31
|
+
name: string;
|
|
32
|
+
description?: string | undefined;
|
|
33
|
+
};
|
|
34
|
+
|
|
35
|
+
/** @internal */
|
|
36
|
+
export const PostV1TopicsRequest$outboundSchema: z.ZodMiniType<
|
|
37
|
+
PostV1TopicsRequest$Outbound,
|
|
38
|
+
PostV1TopicsRequest
|
|
39
|
+
> = z.object({
|
|
40
|
+
name: z.string(),
|
|
41
|
+
description: z.optional(z.string()),
|
|
42
|
+
});
|
|
43
|
+
|
|
44
|
+
export function postV1TopicsRequestToJSON(
|
|
45
|
+
postV1TopicsRequest: PostV1TopicsRequest,
|
|
46
|
+
): string {
|
|
47
|
+
return JSON.stringify(
|
|
48
|
+
PostV1TopicsRequest$outboundSchema.parse(postV1TopicsRequest),
|
|
49
|
+
);
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
/** @internal */
|
|
53
|
+
export const PostV1TopicsResponse$inboundSchema: z.ZodMiniType<
|
|
54
|
+
PostV1TopicsResponse,
|
|
55
|
+
unknown
|
|
56
|
+
> = z.pipe(
|
|
57
|
+
z.object({
|
|
58
|
+
id: types.string(),
|
|
59
|
+
organization_id: types.string(),
|
|
60
|
+
name: types.string(),
|
|
61
|
+
description: types.nullable(types.string()),
|
|
62
|
+
created_at: types.string(),
|
|
63
|
+
updated_at: types.string(),
|
|
64
|
+
}),
|
|
65
|
+
z.transform((v) => {
|
|
66
|
+
return remap$(v, {
|
|
67
|
+
"organization_id": "organizationId",
|
|
68
|
+
"created_at": "createdAt",
|
|
69
|
+
"updated_at": "updatedAt",
|
|
70
|
+
});
|
|
71
|
+
}),
|
|
72
|
+
);
|
|
73
|
+
|
|
74
|
+
export function postV1TopicsResponseFromJSON(
|
|
75
|
+
jsonString: string,
|
|
76
|
+
): SafeParseResult<PostV1TopicsResponse, SDKValidationError> {
|
|
77
|
+
return safeParse(
|
|
78
|
+
jsonString,
|
|
79
|
+
(x) => PostV1TopicsResponse$inboundSchema.parse(JSON.parse(x)),
|
|
80
|
+
`Failed to parse 'PostV1TopicsResponse' from JSON`,
|
|
81
|
+
);
|
|
82
|
+
}
|
|
@@ -0,0 +1,73 @@
|
|
|
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 PostV1UnsubscribeRequest = {
|
|
12
|
+
email: string;
|
|
13
|
+
organizationId: string;
|
|
14
|
+
topicIds?: Array<string> | undefined;
|
|
15
|
+
unsubscribeAll?: boolean | undefined;
|
|
16
|
+
reason?: string | undefined;
|
|
17
|
+
};
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* Unsubscribe processed
|
|
21
|
+
*/
|
|
22
|
+
export type PostV1UnsubscribeResponse = {
|
|
23
|
+
success: boolean;
|
|
24
|
+
message: string;
|
|
25
|
+
};
|
|
26
|
+
|
|
27
|
+
/** @internal */
|
|
28
|
+
export type PostV1UnsubscribeRequest$Outbound = {
|
|
29
|
+
email: string;
|
|
30
|
+
organizationId: string;
|
|
31
|
+
topicIds?: Array<string> | undefined;
|
|
32
|
+
unsubscribeAll?: boolean | undefined;
|
|
33
|
+
reason?: string | undefined;
|
|
34
|
+
};
|
|
35
|
+
|
|
36
|
+
/** @internal */
|
|
37
|
+
export const PostV1UnsubscribeRequest$outboundSchema: z.ZodMiniType<
|
|
38
|
+
PostV1UnsubscribeRequest$Outbound,
|
|
39
|
+
PostV1UnsubscribeRequest
|
|
40
|
+
> = z.object({
|
|
41
|
+
email: z.string(),
|
|
42
|
+
organizationId: z.string(),
|
|
43
|
+
topicIds: z.optional(z.array(z.string())),
|
|
44
|
+
unsubscribeAll: z.optional(z.boolean()),
|
|
45
|
+
reason: z.optional(z.string()),
|
|
46
|
+
});
|
|
47
|
+
|
|
48
|
+
export function postV1UnsubscribeRequestToJSON(
|
|
49
|
+
postV1UnsubscribeRequest: PostV1UnsubscribeRequest,
|
|
50
|
+
): string {
|
|
51
|
+
return JSON.stringify(
|
|
52
|
+
PostV1UnsubscribeRequest$outboundSchema.parse(postV1UnsubscribeRequest),
|
|
53
|
+
);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
/** @internal */
|
|
57
|
+
export const PostV1UnsubscribeResponse$inboundSchema: z.ZodMiniType<
|
|
58
|
+
PostV1UnsubscribeResponse,
|
|
59
|
+
unknown
|
|
60
|
+
> = z.object({
|
|
61
|
+
success: types.boolean(),
|
|
62
|
+
message: types.string(),
|
|
63
|
+
});
|
|
64
|
+
|
|
65
|
+
export function postV1UnsubscribeResponseFromJSON(
|
|
66
|
+
jsonString: string,
|
|
67
|
+
): SafeParseResult<PostV1UnsubscribeResponse, SDKValidationError> {
|
|
68
|
+
return safeParse(
|
|
69
|
+
jsonString,
|
|
70
|
+
(x) => PostV1UnsubscribeResponse$inboundSchema.parse(JSON.parse(x)),
|
|
71
|
+
`Failed to parse 'PostV1UnsubscribeResponse' from JSON`,
|
|
72
|
+
);
|
|
73
|
+
}
|
|
@@ -0,0 +1,110 @@
|
|
|
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 PutV1TopicsIdRequestBody = {
|
|
13
|
+
name?: string | undefined;
|
|
14
|
+
description?: string | undefined;
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
export type PutV1TopicsIdRequest = {
|
|
18
|
+
id: string;
|
|
19
|
+
body?: PutV1TopicsIdRequestBody | undefined;
|
|
20
|
+
};
|
|
21
|
+
|
|
22
|
+
/**
|
|
23
|
+
* Topic updated
|
|
24
|
+
*/
|
|
25
|
+
export type PutV1TopicsIdResponse = {
|
|
26
|
+
id: string;
|
|
27
|
+
organizationId: string;
|
|
28
|
+
name: string;
|
|
29
|
+
description: string | null;
|
|
30
|
+
createdAt: string;
|
|
31
|
+
updatedAt: string;
|
|
32
|
+
};
|
|
33
|
+
|
|
34
|
+
/** @internal */
|
|
35
|
+
export type PutV1TopicsIdRequestBody$Outbound = {
|
|
36
|
+
name?: string | undefined;
|
|
37
|
+
description?: string | undefined;
|
|
38
|
+
};
|
|
39
|
+
|
|
40
|
+
/** @internal */
|
|
41
|
+
export const PutV1TopicsIdRequestBody$outboundSchema: z.ZodMiniType<
|
|
42
|
+
PutV1TopicsIdRequestBody$Outbound,
|
|
43
|
+
PutV1TopicsIdRequestBody
|
|
44
|
+
> = z.object({
|
|
45
|
+
name: z.optional(z.string()),
|
|
46
|
+
description: z.optional(z.string()),
|
|
47
|
+
});
|
|
48
|
+
|
|
49
|
+
export function putV1TopicsIdRequestBodyToJSON(
|
|
50
|
+
putV1TopicsIdRequestBody: PutV1TopicsIdRequestBody,
|
|
51
|
+
): string {
|
|
52
|
+
return JSON.stringify(
|
|
53
|
+
PutV1TopicsIdRequestBody$outboundSchema.parse(putV1TopicsIdRequestBody),
|
|
54
|
+
);
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
/** @internal */
|
|
58
|
+
export type PutV1TopicsIdRequest$Outbound = {
|
|
59
|
+
id: string;
|
|
60
|
+
body?: PutV1TopicsIdRequestBody$Outbound | undefined;
|
|
61
|
+
};
|
|
62
|
+
|
|
63
|
+
/** @internal */
|
|
64
|
+
export const PutV1TopicsIdRequest$outboundSchema: z.ZodMiniType<
|
|
65
|
+
PutV1TopicsIdRequest$Outbound,
|
|
66
|
+
PutV1TopicsIdRequest
|
|
67
|
+
> = z.object({
|
|
68
|
+
id: z.string(),
|
|
69
|
+
body: z.optional(z.lazy(() => PutV1TopicsIdRequestBody$outboundSchema)),
|
|
70
|
+
});
|
|
71
|
+
|
|
72
|
+
export function putV1TopicsIdRequestToJSON(
|
|
73
|
+
putV1TopicsIdRequest: PutV1TopicsIdRequest,
|
|
74
|
+
): string {
|
|
75
|
+
return JSON.stringify(
|
|
76
|
+
PutV1TopicsIdRequest$outboundSchema.parse(putV1TopicsIdRequest),
|
|
77
|
+
);
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
/** @internal */
|
|
81
|
+
export const PutV1TopicsIdResponse$inboundSchema: z.ZodMiniType<
|
|
82
|
+
PutV1TopicsIdResponse,
|
|
83
|
+
unknown
|
|
84
|
+
> = z.pipe(
|
|
85
|
+
z.object({
|
|
86
|
+
id: types.string(),
|
|
87
|
+
organization_id: types.string(),
|
|
88
|
+
name: types.string(),
|
|
89
|
+
description: types.nullable(types.string()),
|
|
90
|
+
created_at: types.string(),
|
|
91
|
+
updated_at: types.string(),
|
|
92
|
+
}),
|
|
93
|
+
z.transform((v) => {
|
|
94
|
+
return remap$(v, {
|
|
95
|
+
"organization_id": "organizationId",
|
|
96
|
+
"created_at": "createdAt",
|
|
97
|
+
"updated_at": "updatedAt",
|
|
98
|
+
});
|
|
99
|
+
}),
|
|
100
|
+
);
|
|
101
|
+
|
|
102
|
+
export function putV1TopicsIdResponseFromJSON(
|
|
103
|
+
jsonString: string,
|
|
104
|
+
): SafeParseResult<PutV1TopicsIdResponse, SDKValidationError> {
|
|
105
|
+
return safeParse(
|
|
106
|
+
jsonString,
|
|
107
|
+
(x) => PutV1TopicsIdResponse$inboundSchema.parse(JSON.parse(x)),
|
|
108
|
+
`Failed to parse 'PutV1TopicsIdResponse' from JSON`,
|
|
109
|
+
);
|
|
110
|
+
}
|
|
@@ -19,16 +19,36 @@ import {
|
|
|
19
19
|
export type To = string | Array<string>;
|
|
20
20
|
|
|
21
21
|
export type SendEmailRequest = {
|
|
22
|
-
|
|
22
|
+
/**
|
|
23
|
+
* Sender email. Required if not using a template with from_email set.
|
|
24
|
+
*/
|
|
25
|
+
from?: string | undefined;
|
|
23
26
|
to: string | Array<string>;
|
|
24
|
-
|
|
27
|
+
/**
|
|
28
|
+
* Email subject. Required if not using a template.
|
|
29
|
+
*/
|
|
30
|
+
subject?: string | undefined;
|
|
25
31
|
html?: string | undefined;
|
|
26
32
|
text?: string | undefined;
|
|
33
|
+
/**
|
|
34
|
+
* Template ID. When provided, template values are used for subject, html, text, from, reply_to, and preview_text.
|
|
35
|
+
*/
|
|
27
36
|
templateId?: string | undefined;
|
|
37
|
+
/**
|
|
38
|
+
* Variables to render in the template. Must include all variables defined in the template.
|
|
39
|
+
*/
|
|
28
40
|
templateData?: { [k: string]: any | null } | undefined;
|
|
29
41
|
tags?: { [k: string]: string } | undefined;
|
|
30
42
|
attachments?: Array<Attachment> | undefined;
|
|
31
43
|
replyTo?: ReplyTo | undefined;
|
|
44
|
+
/**
|
|
45
|
+
* Reply-To email address. Overrides template reply_to if provided.
|
|
46
|
+
*/
|
|
47
|
+
replyToEmail?: string | undefined;
|
|
48
|
+
/**
|
|
49
|
+
* Preview text (preheader). Overrides template preview_text if provided.
|
|
50
|
+
*/
|
|
51
|
+
previewText?: string | undefined;
|
|
32
52
|
};
|
|
33
53
|
|
|
34
54
|
/** @internal */
|
|
@@ -46,9 +66,9 @@ export function toToJSON(to: To): string {
|
|
|
46
66
|
|
|
47
67
|
/** @internal */
|
|
48
68
|
export type SendEmailRequest$Outbound = {
|
|
49
|
-
from
|
|
69
|
+
from?: string | undefined;
|
|
50
70
|
to: string | Array<string>;
|
|
51
|
-
subject
|
|
71
|
+
subject?: string | undefined;
|
|
52
72
|
html?: string | undefined;
|
|
53
73
|
text?: string | undefined;
|
|
54
74
|
template_id?: string | undefined;
|
|
@@ -56,6 +76,8 @@ export type SendEmailRequest$Outbound = {
|
|
|
56
76
|
tags?: { [k: string]: string } | undefined;
|
|
57
77
|
attachments?: Array<Attachment$Outbound> | undefined;
|
|
58
78
|
replyTo?: ReplyTo$Outbound | undefined;
|
|
79
|
+
reply_to_email?: string | undefined;
|
|
80
|
+
preview_text?: string | undefined;
|
|
59
81
|
};
|
|
60
82
|
|
|
61
83
|
/** @internal */
|
|
@@ -64,9 +86,9 @@ export const SendEmailRequest$outboundSchema: z.ZodMiniType<
|
|
|
64
86
|
SendEmailRequest
|
|
65
87
|
> = z.pipe(
|
|
66
88
|
z.object({
|
|
67
|
-
from: z.string(),
|
|
89
|
+
from: z.optional(z.string()),
|
|
68
90
|
to: smartUnion([z.string(), z.array(z.string())]),
|
|
69
|
-
subject: z.string(),
|
|
91
|
+
subject: z.optional(z.string()),
|
|
70
92
|
html: z.optional(z.string()),
|
|
71
93
|
text: z.optional(z.string()),
|
|
72
94
|
templateId: z.optional(z.string()),
|
|
@@ -74,11 +96,15 @@ export const SendEmailRequest$outboundSchema: z.ZodMiniType<
|
|
|
74
96
|
tags: z.optional(z.record(z.string(), z.string())),
|
|
75
97
|
attachments: z.optional(z.array(Attachment$outboundSchema)),
|
|
76
98
|
replyTo: z.optional(ReplyTo$outboundSchema),
|
|
99
|
+
replyToEmail: z.optional(z.string()),
|
|
100
|
+
previewText: z.optional(z.string()),
|
|
77
101
|
}),
|
|
78
102
|
z.transform((v) => {
|
|
79
103
|
return remap$(v, {
|
|
80
104
|
templateId: "template_id",
|
|
81
105
|
templateData: "template_data",
|
|
106
|
+
replyToEmail: "reply_to_email",
|
|
107
|
+
previewText: "preview_text",
|
|
82
108
|
});
|
|
83
109
|
}),
|
|
84
110
|
);
|
|
@@ -0,0 +1,72 @@
|
|
|
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 Ports = {
|
|
13
|
+
tls: number;
|
|
14
|
+
ssl: number;
|
|
15
|
+
tlsAlternative: number;
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
export type SmtpCredentials = {
|
|
19
|
+
server: string;
|
|
20
|
+
ports: Ports;
|
|
21
|
+
username: string;
|
|
22
|
+
password: string;
|
|
23
|
+
encryption: string;
|
|
24
|
+
note: string;
|
|
25
|
+
};
|
|
26
|
+
|
|
27
|
+
/** @internal */
|
|
28
|
+
export const Ports$inboundSchema: z.ZodMiniType<Ports, unknown> = z.pipe(
|
|
29
|
+
z.object({
|
|
30
|
+
tls: types.number(),
|
|
31
|
+
ssl: types.number(),
|
|
32
|
+
tls_alternative: types.number(),
|
|
33
|
+
}),
|
|
34
|
+
z.transform((v) => {
|
|
35
|
+
return remap$(v, {
|
|
36
|
+
"tls_alternative": "tlsAlternative",
|
|
37
|
+
});
|
|
38
|
+
}),
|
|
39
|
+
);
|
|
40
|
+
|
|
41
|
+
export function portsFromJSON(
|
|
42
|
+
jsonString: string,
|
|
43
|
+
): SafeParseResult<Ports, SDKValidationError> {
|
|
44
|
+
return safeParse(
|
|
45
|
+
jsonString,
|
|
46
|
+
(x) => Ports$inboundSchema.parse(JSON.parse(x)),
|
|
47
|
+
`Failed to parse 'Ports' from JSON`,
|
|
48
|
+
);
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
/** @internal */
|
|
52
|
+
export const SmtpCredentials$inboundSchema: z.ZodMiniType<
|
|
53
|
+
SmtpCredentials,
|
|
54
|
+
unknown
|
|
55
|
+
> = z.object({
|
|
56
|
+
server: types.string(),
|
|
57
|
+
ports: z.lazy(() => Ports$inboundSchema),
|
|
58
|
+
username: types.string(),
|
|
59
|
+
password: types.string(),
|
|
60
|
+
encryption: types.string(),
|
|
61
|
+
note: types.string(),
|
|
62
|
+
});
|
|
63
|
+
|
|
64
|
+
export function smtpCredentialsFromJSON(
|
|
65
|
+
jsonString: string,
|
|
66
|
+
): SafeParseResult<SmtpCredentials, SDKValidationError> {
|
|
67
|
+
return safeParse(
|
|
68
|
+
jsonString,
|
|
69
|
+
(x) => SmtpCredentials$inboundSchema.parse(JSON.parse(x)),
|
|
70
|
+
`Failed to parse 'SmtpCredentials' from JSON`,
|
|
71
|
+
);
|
|
72
|
+
}
|
package/src/models/template.ts
CHANGED
|
@@ -17,6 +17,9 @@ export type Template = {
|
|
|
17
17
|
htmlContent: string | null;
|
|
18
18
|
textContent: string | null;
|
|
19
19
|
variables: Array<string> | null;
|
|
20
|
+
fromEmail: string | null;
|
|
21
|
+
replyTo: string | null;
|
|
22
|
+
previewText: string | null;
|
|
20
23
|
createdBy: string | null;
|
|
21
24
|
createdAt: Date;
|
|
22
25
|
updatedAt: Date;
|
|
@@ -32,6 +35,9 @@ export const Template$inboundSchema: z.ZodMiniType<Template, unknown> = z.pipe(
|
|
|
32
35
|
html_content: types.nullable(types.string()),
|
|
33
36
|
text_content: types.nullable(types.string()),
|
|
34
37
|
variables: types.nullable(z.array(types.string())),
|
|
38
|
+
from_email: types.nullable(types.string()),
|
|
39
|
+
reply_to: types.nullable(types.string()),
|
|
40
|
+
preview_text: types.nullable(types.string()),
|
|
35
41
|
created_by: types.nullable(types.string()),
|
|
36
42
|
created_at: types.date(),
|
|
37
43
|
updated_at: types.date(),
|
|
@@ -41,6 +47,9 @@ export const Template$inboundSchema: z.ZodMiniType<Template, unknown> = z.pipe(
|
|
|
41
47
|
"organization_id": "organizationId",
|
|
42
48
|
"html_content": "htmlContent",
|
|
43
49
|
"text_content": "textContent",
|
|
50
|
+
"from_email": "fromEmail",
|
|
51
|
+
"reply_to": "replyTo",
|
|
52
|
+
"preview_text": "previewText",
|
|
44
53
|
"created_by": "createdBy",
|
|
45
54
|
"created_at": "createdAt",
|
|
46
55
|
"updated_at": "updatedAt",
|