samva 0.29.1 → 0.30.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/AGENTS.md +23 -5
- package/README.md +166 -133
- package/dist/_virtual/_rolldown/runtime.js +1 -2
- package/dist/client/client/client.gen.js +1 -2
- package/dist/client/client/utils.gen.js +1 -2
- package/dist/client/client.gen.js +1 -2
- package/dist/client/core/auth.gen.js +1 -2
- package/dist/client/core/bodySerializer.gen.js +1 -2
- package/dist/client/core/params.gen.js +1 -2
- package/dist/client/core/pathSerializer.gen.js +1 -2
- package/dist/client/core/serverSentEvents.gen.js +1 -2
- package/dist/client/core/utils.gen.js +1 -2
- package/dist/client/sdk.gen.d.ts +216 -191
- package/dist/client/sdk.gen.js +2392 -1153
- package/dist/client/types.gen.d.ts +766 -376
- package/dist/client-attribution.js +1 -2
- package/dist/effect/agents.d.ts +33 -11
- package/dist/effect/agents.js +1 -2
- package/dist/effect/analytics.d.ts +6 -6
- package/dist/effect/analytics.js +1 -2
- package/dist/effect/api-keys.d.ts +8 -8
- package/dist/effect/api-keys.js +1 -2
- package/dist/effect/attachments.d.ts +4 -4
- package/dist/effect/attachments.js +1 -2
- package/dist/effect/brands.d.ts +6 -6
- package/dist/effect/brands.js +1 -2
- package/dist/effect/campaigns.d.ts +15 -16
- package/dist/effect/campaigns.js +1 -2
- package/dist/effect/categories.js +1 -2
- package/dist/effect/client.js +1 -2
- package/dist/effect/contact-groups.d.ts +10 -10
- package/dist/effect/contact-groups.js +1 -2
- package/dist/effect/contacts.d.ts +23 -24
- package/dist/effect/contacts.js +1 -2
- package/dist/effect/conversations.d.ts +13 -13
- package/dist/effect/conversations.js +1 -2
- package/dist/effect/custom-fields.d.ts +4 -4
- package/dist/effect/custom-fields.js +1 -2
- package/dist/effect/email.d.ts +61 -63
- package/dist/effect/email.js +1 -2
- package/dist/effect/events.d.ts +2 -4
- package/dist/effect/events.js +1 -2
- package/dist/effect/extension-installations.d.ts +9 -9
- package/dist/effect/extension-installations.js +1 -2
- package/dist/effect/extensions.d.ts +5 -5
- package/dist/effect/extensions.js +1 -2
- package/dist/effect/feedback.d.ts +1 -1
- package/dist/effect/feedback.js +1 -2
- package/dist/effect/generated/agents.d.ts +264 -22
- package/dist/effect/generated/agents.js +2 -3
- package/dist/effect/generated/analytics.js +1 -2
- package/dist/effect/generated/api-keys.js +1 -2
- package/dist/effect/generated/attachments.js +1 -2
- package/dist/effect/generated/brands.js +1 -2
- package/dist/effect/generated/campaigns.d.ts +160 -155
- package/dist/effect/generated/campaigns.js +7 -9
- package/dist/effect/generated/contact-events.js +1 -2
- package/dist/effect/generated/contact-groups.d.ts +26 -26
- package/dist/effect/generated/contact-groups.js +22 -19
- package/dist/effect/generated/contacts.d.ts +119 -90
- package/dist/effect/generated/contacts.js +32 -32
- package/dist/effect/generated/conversations.d.ts +22 -22
- package/dist/effect/generated/conversations.js +7 -8
- package/dist/effect/generated/custom-fields.d.ts +6 -6
- package/dist/effect/generated/custom-fields.js +3 -4
- package/dist/effect/generated/email.d.ts +38 -38
- package/dist/effect/generated/email.js +13 -14
- package/dist/effect/generated/events.d.ts +18 -9
- package/dist/effect/generated/events.js +8 -6
- package/dist/effect/generated/extension-installations.d.ts +2 -2
- package/dist/effect/generated/extension-installations.js +6 -3
- package/dist/effect/generated/extensions.js +1 -2
- package/dist/effect/generated/feedback.js +1 -2
- package/dist/effect/generated/index.d.ts +7 -5
- package/dist/effect/generated/journeys.js +1 -2
- package/dist/effect/generated/mailboxes.d.ts +44 -44
- package/dist/effect/generated/mailboxes.js +17 -18
- package/dist/effect/generated/media.js +1 -2
- package/dist/effect/generated/messages.d.ts +42 -42
- package/dist/effect/generated/messages.js +3 -4
- package/dist/effect/generated/namespaces.js +1 -2
- package/dist/effect/generated/{publication-domains.d.ts → newsletter-domains.d.ts} +304 -80
- package/dist/effect/generated/newsletter-domains.js +218 -0
- package/dist/effect/generated/{topic-issues.d.ts → newsletter-issues.d.ts} +330 -288
- package/dist/effect/generated/{topic-issues.js → newsletter-issues.js} +255 -246
- package/dist/effect/generated/newsletters.d.ts +741 -0
- package/dist/effect/generated/newsletters.js +143 -0
- package/dist/effect/generated/operations.js +1 -2
- package/dist/effect/generated/organizations.d.ts +9 -9
- package/dist/effect/generated/organizations.js +4 -5
- package/dist/effect/generated/scheduled-messages.d.ts +174 -169
- package/dist/effect/generated/scheduled-messages.js +7 -7
- package/dist/effect/generated/shared.d.ts +276 -208
- package/dist/effect/generated/shared.js +50 -36
- package/dist/effect/generated/subscriptions.js +1 -2
- package/dist/effect/generated/templates.d.ts +118 -67
- package/dist/effect/generated/templates.js +43 -35
- package/dist/effect/generated/topic-forms.d.ts +79 -19
- package/dist/effect/generated/topic-forms.js +13 -14
- package/dist/effect/generated/topics.d.ts +27 -65
- package/dist/effect/generated/topics.js +13 -20
- package/dist/effect/generated/webhooks.d.ts +9 -9
- package/dist/effect/generated/webhooks.js +4 -5
- package/dist/effect/generated/whoami.js +1 -2
- package/dist/effect/generated-metadata.d.ts +475 -70
- package/dist/effect/generated-metadata.js +642 -432
- package/dist/effect/index.d.ts +3 -2
- package/dist/effect/index.js +4 -3
- package/dist/effect/internal/client.d.ts +5 -0
- package/dist/effect/internal/client.js +9 -5
- package/dist/effect/internal/email-sender.d.ts +1 -1
- package/dist/effect/internal/email-sender.js +4 -3
- package/dist/effect/internal/mailbox-events.js +1 -2
- package/dist/effect/internal/operation.d.ts +4 -15
- package/dist/effect/internal/operation.js +21 -33
- package/dist/effect/internal/send.js +2 -3
- package/dist/effect/journeys.d.ts +14 -14
- package/dist/effect/journeys.js +1 -2
- package/dist/effect/mailboxes.d.ts +60 -70
- package/dist/effect/mailboxes.js +1 -2
- package/dist/effect/media.d.ts +5 -5
- package/dist/effect/media.js +1 -2
- package/dist/effect/messages.d.ts +9 -9
- package/dist/effect/messages.js +1 -2
- package/dist/effect/namespaces.d.ts +8 -8
- package/dist/effect/namespaces.js +1 -2
- package/dist/effect/newsletter-domains.d.ts +71 -0
- package/dist/effect/newsletter-domains.js +18 -0
- package/dist/effect/{topic-issues.d.ts → newsletter-issues.d.ts} +11 -15
- package/dist/effect/newsletter-issues.js +32 -0
- package/dist/effect/newsletters.d.ts +22 -0
- package/dist/effect/newsletters.js +20 -0
- package/dist/effect/operations.d.ts +3 -3
- package/dist/effect/operations.js +1 -2
- package/dist/effect/organizations.d.ts +8 -10
- package/dist/effect/organizations.js +1 -2
- package/dist/effect/pagination.js +1 -2
- package/dist/effect/retry.d.ts +4 -4
- package/dist/effect/retry.js +5 -6
- package/dist/effect/runtime.js +1 -2
- package/dist/effect/scheduled-messages.d.ts +5 -6
- package/dist/effect/scheduled-messages.js +1 -2
- package/dist/effect/subscriptions.d.ts +1 -1
- package/dist/effect/subscriptions.js +1 -2
- package/dist/effect/templates.d.ts +34 -43
- package/dist/effect/templates.js +1 -2
- package/dist/effect/topic-forms.d.ts +5 -5
- package/dist/effect/topic-forms.js +1 -2
- package/dist/effect/topics.d.ts +9 -13
- package/dist/effect/topics.js +1 -2
- package/dist/effect/webhooks.d.ts +11 -11
- package/dist/effect/webhooks.js +1 -2
- package/dist/effect/whoami.d.ts +1 -1
- package/dist/effect/whoami.js +1 -2
- package/dist/index.js +2 -2
- package/dist/inline-attachments.js +1 -2
- package/dist/mailbox/dispatch.d.ts +10 -0
- package/dist/mailbox/dispatch.js +66 -0
- package/dist/mailbox/index.d.ts +17 -0
- package/dist/mailbox/index.js +30 -0
- package/dist/mailbox/test.d.ts +25 -0
- package/dist/mailbox/test.js +174 -0
- package/dist/mailbox/types.d.ts +184 -0
- package/dist/mailbox/webhook.d.ts +10 -0
- package/dist/mailbox/webhook.js +41 -0
- package/dist/mailbox-events.js +1 -2
- package/dist/normalize.js +1 -2
- package/dist/package.js +2 -3
- package/dist/promises/client.d.ts +215 -0
- package/dist/promises/client.js +324 -0
- package/dist/promises/errors.gen.js +1 -2
- package/dist/promises/index.d.ts +2 -196
- package/dist/promises/index.js +3 -295
- package/dist/promises/request.d.ts +15 -0
- package/dist/promises/request.js +75 -0
- package/dist/promises/types.gen.d.ts +1 -1
- package/dist/request-policy.d.ts +3 -0
- package/dist/request-policy.js +16 -0
- package/dist/service-map.d.ts +78 -47
- package/dist/service-map.js +52 -32
- package/package.json +34 -18
- package/dist/effect/generated/publication-domains.js +0 -163
- package/dist/effect/publication-domains.d.ts +0 -14
- package/dist/effect/publication-domains.js +0 -17
- package/dist/effect/topic-issues.js +0 -33
package/dist/client/sdk.gen.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type Client, type ClientMeta, type Options as Options2, type RequestResult, type TDataShape } from "./client";
|
|
2
|
-
import type { AgentDefinition, AgentId, AgentName, AgentsCreateErrors, AgentsCreateResponses, AgentsGetErrors, AgentsGetResponses, AgentsGetVersionErrors, AgentsGetVersionResponses, AgentsListErrors, AgentsListResponses, AgentsListVersionsErrors, AgentsListVersionsResponses, AgentsPublishErrors, AgentsPublishResponses, AgentsRemoveErrors, AgentsRemoveResponses, AgentsReplaceDraftErrors, AgentsReplaceDraftResponses, AgentsUpdateErrors, AgentsUpdateResponses, AnalyticsExportDataErrors, AnalyticsExportDataResponses, AnalyticsGetChannelStatsErrors, AnalyticsGetChannelStatsResponses, AnalyticsGetDeliveryMetricsErrors, AnalyticsGetDeliveryMetricsResponses, AnalyticsGetHourlyDistributionErrors, AnalyticsGetHourlyDistributionResponses, AnalyticsGetStatsErrors, AnalyticsGetStatsResponses, AnalyticsGetTopContactsErrors, AnalyticsGetTopContactsResponses, ApiKeyAccess, ApiKeyId, ApiKeyMailboxAccessUpdate, ApiKeysCreateErrors, ApiKeysCreateResponses, ApiKeysGetActivityErrors, ApiKeysGetActivityResponses, ApiKeysGetErrors, ApiKeysGetResponses, ApiKeysGetStatsErrors, ApiKeysGetStatsResponses, ApiKeysListErrors, ApiKeysListResponses, ApiKeysRevokeErrors, ApiKeysRevokeResponses, ApiKeysRotateErrors, ApiKeysRotateResponses, ApiKeysUpdateErrors, ApiKeysUpdateResponses, AttachmentId, AttachmentsDownloadUrlErrors, AttachmentsDownloadUrlResponses, AttachmentsGetByIdErrors, AttachmentsGetByIdResponses, AttachmentsListErrors, AttachmentsListResponses, AttachmentsRemoveErrors, AttachmentsRemoveResponses, BlockedEmailId, BrandAssets, BrandFooter, BrandsCreateErrors, BrandsCreateResponses, BrandsGetErrors, BrandsGetResponses, BrandsListErrors, BrandsListResponses, BrandsRemoveErrors, BrandsRemoveResponses, BrandsSetDefaultErrors, BrandsSetDefaultResponses, BrandsUpdateErrors, BrandsUpdateResponses, CampaignAudience, CampaignContentInput, CampaignId, CampaignPolicy, CampaignRunId, CampaignsArchiveErrors, CampaignsArchiveResponses, CampaignsCancelRunErrors, CampaignsCancelRunResponses, CampaignsCreateErrors, CampaignsCreateResponses, CampaignsGetErrors, CampaignsGetResponses, CampaignsGetRunErrors, CampaignsGetRunReportErrors, CampaignsGetRunReportResponses, CampaignsGetRunResponses, CampaignsListErrors, CampaignsListRecipientsErrors, CampaignsListRecipientsResponses, CampaignsListResponses, CampaignsListRunsErrors, CampaignsListRunsResponses, CampaignsPauseRunErrors, CampaignsPauseRunResponses, CampaignsPreviewErrors, CampaignsPreviewResponses, CampaignsResumeRunErrors, CampaignsResumeRunResponses, CampaignsScheduleRunErrors, CampaignsScheduleRunResponses, CampaignsSendTestErrors, CampaignsSendTestResponses, CampaignsUpdateErrors, CampaignsUpdateResponses, ContactEventReference, ContactEventsListEventsErrors, ContactEventsListEventsResponses, ContactGroupId, ContactGroupsAddMembersErrors, ContactGroupsAddMembersResponses, ContactGroupsCreateErrors, ContactGroupsCreateResponses, ContactGroupsEvaluateDynamicErrors, ContactGroupsEvaluateDynamicResponses, ContactGroupsGetByIdErrors, ContactGroupsGetByIdResponses, ContactGroupsGetMembersErrors, ContactGroupsGetMembersResponses, ContactGroupsListErrors, ContactGroupsListResponses, ContactGroupsPreviewErrors, ContactGroupsPreviewResponses, ContactGroupsRemoveErrors, ContactGroupsRemoveMembersErrors, ContactGroupsRemoveMembersResponses, ContactGroupsRemoveResponses, ContactGroupsUpdateErrors, ContactGroupsUpdateResponses, ContactId, ContactIdentityId, ContactIdentityInput, ContactImportJobId, ContactLookup, ContactPreferences, ContactProfileUpdate, ContactProfileWritable, ContactsAddIdentityErrors, ContactsAddIdentityResponses, ContactsAddTagsErrors, ContactsAddTagsResponses, ContactsBulkDeleteErrors, ContactsBulkDeleteResponses, ContactsBulkUpdateStatusErrors, ContactsBulkUpdateStatusResponses, ContactsBulkUpdateTagsErrors, ContactsBulkUpdateTagsResponses, ContactsCreateErrors, ContactsCreateResponses, ContactsExportErrors, ContactsExportResponses, ContactsFindErrors, ContactsFindOrCreateErrors, ContactsFindOrCreateResponses, ContactsFindResponses, ContactsGetActivityTimelineErrors, ContactsGetActivityTimelineResponses, ContactsGetEngagementErrors, ContactsGetEngagementResponses, ContactsGetErrors, ContactsGetGroupMembershipsErrors, ContactsGetGroupMembershipsResponses, ContactsGetImportJobErrors, ContactsGetImportJobResponses, ContactsGetResponses, ContactsListErrors, ContactsListResponses, ContactsPlanImportErrors, ContactsPlanImportResponses, ContactsRemoveErrors, ContactsRemoveIdentityErrors, ContactsRemoveIdentityResponses, ContactsRemoveResponses, ContactsRemoveTagsErrors, ContactsRemoveTagsResponses, ContactsSetConsentErrors, ContactsSetConsentResponses, ContactsStartImportErrors, ContactsStartImportResponses, ContactsUpdateErrors, ContactsUpdateResponses, ConversationContextWritable, ConversationId, ConversationsAddCategoriesErrors, ConversationsAddCategoriesResponses, ConversationsAddChannelsErrors, ConversationsAddChannelsResponses, ConversationsAddContactsErrors, ConversationsAddContactsResponses, ConversationsAddTagsErrors, ConversationsAddTagsResponses, ConversationsCreateErrors, ConversationsCreateResponses, ConversationsGetByIdErrors, ConversationsGetByIdResponses, ConversationsListErrors, ConversationsListMessagesErrors, ConversationsListMessagesResponses, ConversationsListResponses, ConversationsRemoveCategoriesErrors, ConversationsRemoveCategoriesResponses, ConversationsRemoveChannelsErrors, ConversationsRemoveChannelsResponses, ConversationsRemoveContactsErrors, ConversationsRemoveContactsResponses, ConversationsRemoveTagsErrors, ConversationsRemoveTagsResponses, ConversationsUpdateErrors, ConversationsUpdateResponses, CreateEventPayload, CreateMailboxEndpointPayload, Cursor, CustomFieldDefinitionId, CustomFieldsCreateErrors, CustomFieldsCreateResponses, CustomFieldsListErrors, CustomFieldsListResponses, CustomFieldsRemoveErrors, CustomFieldsRemoveResponses, CustomFieldsUpdateErrors, CustomFieldsUpdateResponses, DispatchSendMessagePayload, EmailAddBlockErrors, EmailAddBlockResponses, EmailAddDomainErrors, EmailAddDomainResponses, EmailAddSenderErrors, EmailAddSenderResponses, EmailAdvanceDomainVerificationErrors, EmailAdvanceDomainVerificationResponses, EmailAttachment, EmailBccRecipients, EmailBuildCustomTrackingDomainConnectApplyUrlErrors, EmailBuildCustomTrackingDomainConnectApplyUrlResponses, EmailBuildDomainConnectApplyUrlErrors, EmailBuildDomainConnectApplyUrlResponses, EmailCancelDomainWarmingBatchErrors, EmailCancelDomainWarmingBatchResponses, EmailCcRecipients, EmailCheckBlockedErrors, EmailCheckBlockedResponses, EmailCheckSenderVerificationErrors, EmailCheckSenderVerificationResponses, EmailCompleteCustomTrackingDomainConnectErrors, EmailCompleteCustomTrackingDomainConnectResponses, EmailCompleteDomainConnectErrors, EmailCompleteDomainConnectResponses, EmailCompleteDomainWarmingErrors, EmailCompleteDomainWarmingResponses, EmailContentWritable, EmailCountSuppressionsErrors, EmailCountSuppressionsResponses, EmailCreateDomainWarmingPlanErrors, EmailCreateDomainWarmingPlanResponses, EmailCreateForwardingRuleErrors, EmailCreateForwardingRuleResponses, EmailDeleteForwardingRuleErrors, EmailDeleteForwardingRuleResponses, EmailDetectRegistrarErrors, EmailDetectRegistrarResponses, EmailDisableCatchAllErrors, EmailDisableCatchAllResponses, EmailDisableCustomTrackingErrors, EmailDisableCustomTrackingResponses, EmailDomainId, EmailDomainWarmingBatchId, EmailEnableCatchAllErrors, EmailEnableCatchAllResponses, EmailEnableCustomTrackingErrors, EmailEnableCustomTrackingResponses, EmailEnableReceivingErrors, EmailEnableReceivingResponses, EmailForwardingRuleId, EmailGetBlockLogsErrors, EmailGetBlockLogsResponses, EmailGetCatchAllConfigErrors, EmailGetCatchAllConfigResponses, EmailGetCatchAllStatsErrors, EmailGetCatchAllStatsResponses, EmailGetCustomTrackingDomainConnectErrors, EmailGetCustomTrackingDomainConnectResponses, EmailGetCustomTrackingErrors, EmailGetCustomTrackingResponses, EmailGetDomainByIdErrors, EmailGetDomainByIdResponses, EmailGetDomainConnectErrors, EmailGetDomainConnectResponses, EmailGetDomainVerificationErrors, EmailGetDomainVerificationResponses, EmailGetDomainWarmingErrors, EmailGetDomainWarmingResponses, EmailGetForwardingLogErrors, EmailGetForwardingLogResponses, EmailGetOnboardingReviewErrors, EmailGetOnboardingReviewResponses, EmailGetReceivingStatusErrors, EmailGetReceivingStatusResponses, EmailGetRecipientTrackingPreferenceErrors, EmailGetRecipientTrackingPreferenceResponses, EmailGetSenderErrors, EmailGetSenderResponses, EmailGetStatsErrors, EmailGetStatsResponses, EmailGetTrackingDefaultsErrors, EmailGetTrackingDefaultsResponses, EmailListBlocksErrors, EmailListBlocksResponses, EmailListDomainsErrors, EmailListDomainsResponses, EmailListForwardingRulesErrors, EmailListForwardingRulesResponses, EmailListSendersErrors, EmailListSendersResponses, EmailListSuppressionsErrors, EmailListSuppressionsResponses, EmailPauseDomainWarmingErrors, EmailPauseDomainWarmingResponses, EmailReapplyOnboardingReviewErrors, EmailReapplyOnboardingReviewResponses, EmailRecheckCustomTrackingErrors, EmailRecheckCustomTrackingResponses, EmailRecipients, EmailRemoveBlockErrors, EmailRemoveBlockResponses, EmailRemoveDomainErrors, EmailRemoveDomainResponses, EmailRemoveSenderErrors, EmailRemoveSenderResponses, EmailRemoveSuppressionErrors, EmailRemoveSuppressionResponses, EmailRespondToOnboardingInformationRequestErrors, EmailRespondToOnboardingInformationRequestResponses, EmailResumeDomainWarmingErrors, EmailResumeDomainWarmingResponses, EmailRotateDomainDkimErrors, EmailRotateDomainDkimResponses, EmailSender, EmailSenderId, EmailSetDefaultDomainErrors, EmailSetDefaultDomainResponses, EmailSetDefaultSenderErrors, EmailSetDefaultSenderResponses, EmailUpdateBlockErrors, EmailUpdateBlockResponses, EmailUpdateCatchAllConfigErrors, EmailUpdateCatchAllConfigResponses, EmailUpdateDomainConfigErrors, EmailUpdateDomainConfigResponses, EmailUpdateDomainWarmingPolicyErrors, EmailUpdateDomainWarmingPolicyResponses, EmailUpdateForwardingRuleErrors, EmailUpdateForwardingRuleResponses, EmailUpdateRecipientTrackingPreferenceErrors, EmailUpdateRecipientTrackingPreferenceResponses, EmailUpdateTrackingDefaultsErrors, EmailUpdateTrackingDefaultsResponses, EventsBatchErrors, EventsBatchResponses, EventsCreateErrors, EventsCreateResponses, ExtensionInstallationId, ExtensionInstallationsDisableErrors, ExtensionInstallationsDisableResponses, ExtensionInstallationsEnableErrors, ExtensionInstallationsEnableResponses, ExtensionInstallationsGetErrors, ExtensionInstallationsGetResponses, ExtensionInstallationsGetRunErrors, ExtensionInstallationsGetRunResponses, ExtensionInstallationsInstallErrors, ExtensionInstallationsInstallResponses, ExtensionInstallationsListErrors, ExtensionInstallationsListResponses, ExtensionInstallationsListRunsErrors, ExtensionInstallationsListRunsResponses, ExtensionInstallationsUninstallErrors, ExtensionInstallationsUninstallResponses, ExtensionInstallationsUpgradeErrors, ExtensionInstallationsUpgradeResponses, ExtensionsGetErrors, ExtensionsGetResponses, ExtensionsGetVersionErrors, ExtensionsGetVersionResponses, ExtensionsListErrors, ExtensionsListResponses, ExtensionsListVersionsErrors, ExtensionsListVersionsResponses, ExtensionsPublishErrors, ExtensionsPublishResponses, ExtensionVersionId, FeedbackContext, FeedbackSendErrors, FeedbackSendResponses, ForwardingConditions, IanaTimezone, JourneyDefinitionWritable, JourneyId, JourneyName, JourneyRunId, JourneyRunStatus, JourneysArchiveErrors, JourneysArchiveResponses, JourneysCreateErrors, JourneysCreateResponses, JourneysGetErrors, JourneysGetResponses, JourneysGetRunErrors, JourneysGetRunResponses, JourneysGetVersionErrors, JourneysGetVersionResponses, JourneysListErrors, JourneysListResponses, JourneysListRunsErrors, JourneysListRunsResponses, JourneysPauseErrors, JourneysPauseResponses, JourneysPublishErrors, JourneysPublishResponses, JourneysRemoveErrors, JourneysRemoveResponses, JourneysReplaceDraftErrors, JourneysReplaceDraftResponses, JourneysResumeErrors, JourneysResumeResponses, JourneysStatsErrors, JourneysStatsResponses, JourneyStatus, JourneysUpdateErrors, JourneysUpdateResponses, JsonObjectWritable, JsonValueWritable, MailboxActionId, MailboxChannel, MailboxDraftId, MailboxEndpointId, MailboxesAddThreadLabelsErrors, MailboxesAddThreadLabelsResponses, MailboxesApproveActionErrors, MailboxesApproveActionResponses, MailboxesCancelActionErrors, MailboxesCancelActionResponses, MailboxesCopyMessageAttachmentErrors, MailboxesCopyMessageAttachmentResponses, MailboxesCreateDraftErrors, MailboxesCreateDraftResponses, MailboxesCreateEndpointErrors, MailboxesCreateEndpointResponses, MailboxesCreateErrors, MailboxesCreateGrantErrors, MailboxesCreateGrantResponses, MailboxesCreateLabelErrors, MailboxesCreateLabelResponses, MailboxesCreateNoteErrors, MailboxesCreateNoteResponses, MailboxesCreatePolicyErrors, MailboxesCreatePolicyResponses, MailboxesCreateResponses, MailboxesDeleteDraftErrors, MailboxesDeleteDraftResponses, MailboxesDeleteLabelErrors, MailboxesDeleteLabelResponses, MailboxesDeleteNoteErrors, MailboxesDeleteNoteResponses, MailboxesDeletePolicyErrors, MailboxesDeletePolicyResponses, MailboxesDenyActionErrors, MailboxesDenyActionResponses, MailboxesDiscardMessageErrors, MailboxesDiscardMessageResponses, MailboxesForwardErrors, MailboxesForwardResponses, MailboxesGetActionErrors, MailboxesGetActionResponses, MailboxesGetAgentActivityErrors, MailboxesGetAgentActivityResponses, MailboxesGetDraftErrors, MailboxesGetDraftResponses, MailboxesGetErrors, MailboxesGetMessageAttachmentErrors, MailboxesGetMessageAttachmentResponses, MailboxesGetMessageErrors, MailboxesGetMessageRawErrors, MailboxesGetMessageRawResponses, MailboxesGetMessageResponses, MailboxesGetPolicyErrors, MailboxesGetPolicyResponses, MailboxesGetResponses, MailboxesGetThreadContentErrors, MailboxesGetThreadContentResponses, MailboxesGetThreadErrors, MailboxesGetThreadResponses, MailboxesListActionsErrors, MailboxesListActionsResponses, MailboxesListDraftsErrors, MailboxesListDraftsResponses, MailboxesListErrors, MailboxesListEventsErrors, MailboxesListEventsResponses, MailboxesListFoldersErrors, MailboxesListFoldersResponses, MailboxesListGrantsErrors, MailboxesListGrantsResponses, MailboxesListLabelsErrors, MailboxesListLabelsResponses, MailboxesListPoliciesErrors, MailboxesListPoliciesResponses, MailboxesListQuarantineErrors, MailboxesListQuarantineResponses, MailboxesListResponses, MailboxesListThreadMessagesErrors, MailboxesListThreadMessagesResponses, MailboxesListThreadNotesErrors, MailboxesListThreadNotesResponses, MailboxesListThreadsErrors, MailboxesListThreadsResponses, MailboxesPauseErrors, MailboxesPauseResponses, MailboxesReleaseMessageErrors, MailboxesReleaseMessageResponses, MailboxesRemoveEndpointErrors, MailboxesRemoveEndpointResponses, MailboxesRemoveErrors, MailboxesRemoveResponses, MailboxesRemoveThreadLabelsErrors, MailboxesRemoveThreadLabelsResponses, MailboxesReplyAllErrors, MailboxesReplyAllResponses, MailboxesReplyErrors, MailboxesReplyResponses, MailboxesResumeErrors, MailboxesResumeResponses, MailboxesRetryActionErrors, MailboxesRetryActionResponses, MailboxesRevokeGrantErrors, MailboxesRevokeGrantResponses, MailboxesSendDraftErrors, MailboxesSendDraftResponses, MailboxesSendMessageErrors, MailboxesSendMessageResponses, MailboxesUpdateDraftErrors, MailboxesUpdateDraftResponses, MailboxesUpdateEndpointErrors, MailboxesUpdateEndpointResponses, MailboxesUpdateErrors, MailboxesUpdateGrantErrors, MailboxesUpdateGrantResponses, MailboxesUpdateLabelErrors, MailboxesUpdateLabelResponses, MailboxesUpdateNoteErrors, MailboxesUpdateNoteResponses, MailboxesUpdatePolicyErrors, MailboxesUpdatePolicyResponses, MailboxesUpdateResponses, MailboxesUpdateThreadErrors, MailboxesUpdateThreadResponses, MailboxGrantId, MailboxGrantRole, MailboxId, MailboxLabelId, MailboxMetadataPatch, MailboxMetadataWritable, MailboxNoteId, MailboxPolicyId, MailboxPolicyOutcomeKind, MailboxSendMode, MailboxThreadFolder, MailboxThreadId, MailboxThreadPriority, MediaCompleteErrors, MediaCompleteResponses, MediaCreateErrors, MediaCreateResponses, MediaDownloadUrlErrors, MediaDownloadUrlResponses, MediaGetByIdErrors, MediaGetByIdResponses, MediaId, MediaRemoveErrors, MediaRemoveResponses, MessageId, MessageMetadataWritable, MessagesGetContentErrors, MessagesGetContentResponses, MessagesGetEmailErrors, MessagesGetEmailResponses, MessagesGetErrors, MessagesGetEventsErrors, MessagesGetEventsResponses, MessagesGetResponses, MessagesGetStatusErrors, MessagesGetStatusResponses, MessagesListDeliveriesErrors, MessagesListDeliveriesResponses, MessagesListErrors, MessagesListResponses, MessagesRemoveErrors, MessagesRemoveResponses, MessagesSendErrors, MessagesSendResponses, MessagesValidateEmailErrors, MessagesValidateEmailResponses, NamespaceId, NamespaceMetadataWritable, NamespaceResourceType, NamespacesAssignResourceErrors, NamespacesAssignResourceResponses, NamespacesCreateErrors, NamespacesCreateResponses, NamespacesGetErrors, NamespacesGetResponses, NamespacesGetUsageErrors, NamespacesGetUsageResponses, NamespacesListErrors, NamespacesListResponses, NamespacesRemoveErrors, NamespacesRemoveResourceErrors, NamespacesRemoveResourceResponses, NamespacesRemoveResponses, NamespacesUpdateErrors, NamespacesUpdateResponses, OperationId, OperationsGetErrors, OperationsGetResponses, OperationsListErrors, OperationsListResponses, OperationsRetryErrors, OperationsRetryResponses, OrganizationsCreateAvatarUploadErrors, OrganizationsCreateAvatarUploadResponses, OrganizationsCreateErrors, OrganizationsCreateResponses, OrganizationsDeleteErrors, OrganizationsDeleteResponses, OrganizationsGetErrors, OrganizationsGetProfileErrors, OrganizationsGetProfileResponses, OrganizationsGetResponses, OrganizationsGetTrustTierErrors, OrganizationsGetTrustTierResponses, OrganizationsGetUsageErrors, OrganizationsGetUsageResponses, OrganizationsUpdateErrors, OrganizationsUpdateResponses, PhoneRegion, RenderLocale, RenderTimeZone, ScheduledMessageId, ScheduledMessagesCancelErrors, ScheduledMessagesCancelResponses, ScheduledMessagesCreateErrors, ScheduledMessagesCreateResponses, ScheduledMessagesGetErrors, ScheduledMessagesGetResponses, ScheduledMessagesListErrors, ScheduledMessagesListResponses, ScheduledMessagesResumeErrors, ScheduledMessagesResumeResponses, SubscriptionsSubscribeErrors, SubscriptionsSubscribeResponses, SuppressionId, TemplateFamilyId, TemplateFromDefault, TemplateId, TemplateInputContractId, TemplateProjectId, TemplatePublicationId, TemplatesAddEntryErrors, TemplatesAddEntryResponses, TemplatesAttachFamilyMemberErrors, TemplatesAttachFamilyMemberResponses, TemplatesAttachWorkspaceResourceErrors, TemplatesAttachWorkspaceResourceResponses, TemplatesCheckWorkspaceErrors, TemplatesCheckWorkspaceResponses, TemplatesCreateErrors, TemplatesCreateFamilyErrors, TemplatesCreateFamilyFromTemplateErrors, TemplatesCreateFamilyFromTemplateResponses, TemplatesCreateFamilyResponses, TemplatesCreateFromWebsiteErrors, TemplatesCreateFromWebsiteResponses, TemplatesCreateResponses, TemplatesDeleteFamilyErrors, TemplatesDeleteFamilyResponses, TemplatesDetachFamilyMemberErrors, TemplatesDetachFamilyMemberResponses, TemplatesDiffWorkspaceErrors, TemplatesDiffWorkspaceResponses, TemplatesGetByIdErrors, TemplatesGetByIdResponses, TemplatesGetFamilyErrors, TemplatesGetFamilyResponses, TemplatesGetGitRepositoryErrors, TemplatesGetGitRepositoryResponses, TemplatesGetInputContractErrors, TemplatesGetInputContractResponses, TemplatesGetPublicationErrors, TemplatesGetPublicationResponses, TemplatesIssueGitCredentialErrors, TemplatesIssueGitCredentialResponses, TemplatesListErrors, TemplatesListFamiliesErrors, TemplatesListFamiliesResponses, TemplatesListInputContractsErrors, TemplatesListInputContractsResponses, TemplatesListResponses, TemplatesOpenWorkspaceErrors, TemplatesOpenWorkspaceResponses, TemplatesPatchWorkspaceErrors, TemplatesPatchWorkspaceResponses, TemplatesPublishErrors, TemplatesPublishResponses, TemplatesPutWorkspaceAssetErrors, TemplatesPutWorkspaceAssetResponses, TemplatesRemoveErrors, TemplatesRemoveResponses, TemplatesRemoveWorkspaceResourceErrors, TemplatesRemoveWorkspaceResourceResponses, TemplatesRenameFamilyErrors, TemplatesRenameFamilyResponses, TemplatesRenderPublicationErrors, TemplatesRenderPublicationResponses, TemplatesRenderWorkspaceFixtureErrors, TemplatesRenderWorkspaceFixtureResponses, TemplatesResolveWorkspaceConflictErrors, TemplatesResolveWorkspaceConflictResponses, TemplatesRestoreWorkspaceErrors, TemplatesRestoreWorkspaceResponses, TemplatesSaveWorkspaceErrors, TemplatesSaveWorkspaceResponses, TemplatesUpdateErrors, TemplatesUpdateResponses, TemplatesWorkspaceHistoryErrors, TemplatesWorkspaceHistoryResponses, TemplateTrackingDefault, TopicContactRef, TopicFormsCreateErrors, TopicFormsCreateResponses, TopicFormsGetErrors, TopicFormsGetResponses, TopicFormsListErrors, TopicFormsListResponses, TopicFormsRemoveErrors, TopicFormsRemoveResponses, TopicFormsUpdateErrors, TopicFormsUpdateResponses, TopicId, TopicIssuesCheckErrors, TopicIssuesCheckResponses, TopicIssuesCreateErrors, TopicIssuesCreateResponses, TopicIssuesGetErrors, TopicIssuesGetResponses, TopicIssuesHeadErrors, TopicIssuesHeadResponses, TopicIssuesHistoryErrors, TopicIssuesHistoryResponses, TopicIssuesListErrors, TopicIssuesListResponses, TopicIssuesOpenErrors, TopicIssuesOpenResponses, TopicIssuesRemoveErrors, TopicIssuesRemoveResponses, TopicIssuesRenderErrors, TopicIssuesRenderResponses, TopicIssuesSaveErrors, TopicIssuesSaveResponses, TopicIssuesUpdateErrors, TopicIssuesUpdateResponses, TopicPublicationDomainsAddErrors, TopicPublicationDomainsAddResponses, TopicPublicationDomainsGetErrors, TopicPublicationDomainsGetResponses, TopicPublicationDomainsRemoveErrors, TopicPublicationDomainsRemoveResponses, TopicsCheckSubscriptionErrors, TopicsCheckSubscriptionResponses, TopicsCreateErrors, TopicsCreateResponses, TopicsGetErrors, TopicsGetResponses, TopicsListErrors, TopicsListResponses, TopicsListSubscriptionsErrors, TopicsListSubscriptionsResponses, TopicsRemoveErrors, TopicsRemoveResponses, TopicsSetDefaultErrors, TopicsSetDefaultResponses, TopicsSetSubscriptionsErrors, TopicsSetSubscriptionsResponses, TopicsUpdateErrors, TopicsUpdateResponses, TrackingRecipientEmail, UserId, VersionCursor, WebhookDeliveryId, WebhookEndpointId, WebhooksCreateErrors, WebhooksCreateResponses, WebhooksGetErrors, WebhooksGetLogsErrors, WebhooksGetLogsResponses, WebhooksGetResponses, WebhooksGetSecretErrors, WebhooksGetSecretResponses, WebhooksGetStatsErrors, WebhooksGetStatsResponses, WebhooksListErrors, WebhooksListResponses, WebhooksRegenerateSecretErrors, WebhooksRegenerateSecretResponses, WebhooksRemoveErrors, WebhooksRemoveResponses, WebhooksRetryDeliveryErrors, WebhooksRetryDeliveryResponses, WebhooksTestErrors, WebhooksTestResponses, WebhooksUpdateErrors, WebhooksUpdateResponses, WhoamiGetErrors, WhoamiGetResponses } from "./types.gen";
|
|
2
|
+
import type { AgentDefinition, AgentId, AgentName, AgentsCreateErrors, AgentsCreateResponses, AgentsGetErrors, AgentsGetResponses, AgentsGetVersionErrors, AgentsGetVersionResponses, AgentsListErrors, AgentsListResponses, AgentsListVersionsErrors, AgentsListVersionsResponses, AgentsPublishErrors, AgentsPublishResponses, AgentsRemoveErrors, AgentsRemoveResponses, AgentsReplaceDraftErrors, AgentsReplaceDraftResponses, AgentsUpdateErrors, AgentsUpdateResponses, AnalyticsExportDataErrors, AnalyticsExportDataResponses, AnalyticsGetChannelStatsErrors, AnalyticsGetChannelStatsResponses, AnalyticsGetDeliveryMetricsErrors, AnalyticsGetDeliveryMetricsResponses, AnalyticsGetHourlyDistributionErrors, AnalyticsGetHourlyDistributionResponses, AnalyticsGetStatsErrors, AnalyticsGetStatsResponses, AnalyticsGetTopContactsErrors, AnalyticsGetTopContactsResponses, ApiKeyAccess, ApiKeyId, ApiKeyMailboxAccessUpdate, ApiKeysCreateErrors, ApiKeysCreateResponses, ApiKeysGetActivityErrors, ApiKeysGetActivityResponses, ApiKeysGetErrors, ApiKeysGetResponses, ApiKeysGetStatsErrors, ApiKeysGetStatsResponses, ApiKeysListErrors, ApiKeysListResponses, ApiKeysRevokeErrors, ApiKeysRevokeResponses, ApiKeysRotateErrors, ApiKeysRotateResponses, ApiKeysUpdateErrors, ApiKeysUpdateResponses, AttachmentId, AttachmentsDownloadUrlErrors, AttachmentsDownloadUrlResponses, AttachmentsGetByIdErrors, AttachmentsGetByIdResponses, AttachmentsListErrors, AttachmentsListResponses, AttachmentsRemoveErrors, AttachmentsRemoveResponses, BlockedEmailId, BrandAssets, BrandFooter, BrandsCreateErrors, BrandsCreateResponses, BrandsGetErrors, BrandsGetResponses, BrandsListErrors, BrandsListResponses, BrandsRemoveErrors, BrandsRemoveResponses, BrandsSetDefaultErrors, BrandsSetDefaultResponses, BrandsUpdateErrors, BrandsUpdateResponses, CampaignAudience, CampaignContentInput, CampaignId, CampaignPolicy, CampaignRunId, CampaignsArchiveErrors, CampaignsArchiveResponses, CampaignsCancelRunErrors, CampaignsCancelRunResponses, CampaignsCreateErrors, CampaignsCreateResponses, CampaignsGetErrors, CampaignsGetResponses, CampaignsGetRunErrors, CampaignsGetRunReportErrors, CampaignsGetRunReportResponses, CampaignsGetRunResponses, CampaignsListErrors, CampaignsListRecipientsErrors, CampaignsListRecipientsResponses, CampaignsListResponses, CampaignsListRunsErrors, CampaignsListRunsResponses, CampaignsPauseRunErrors, CampaignsPauseRunResponses, CampaignsPreviewErrors, CampaignsPreviewResponses, CampaignsResumeRunErrors, CampaignsResumeRunResponses, CampaignsScheduleRunErrors, CampaignsScheduleRunResponses, CampaignsSendTestErrors, CampaignsSendTestResponses, CampaignsUpdateErrors, CampaignsUpdateResponses, ContactEventReference, ContactEventsListEventsErrors, ContactEventsListEventsResponses, ContactGroupId, ContactGroupsAddMembersErrors, ContactGroupsAddMembersResponses, ContactGroupsCreateErrors, ContactGroupsCreateResponses, ContactGroupsEvaluateDynamicErrors, ContactGroupsEvaluateDynamicResponses, ContactGroupsGetByIdErrors, ContactGroupsGetByIdResponses, ContactGroupsGetMembersErrors, ContactGroupsGetMembersResponses, ContactGroupsListErrors, ContactGroupsListResponses, ContactGroupsPreviewErrors, ContactGroupsPreviewResponses, ContactGroupsRemoveErrors, ContactGroupsRemoveMembersErrors, ContactGroupsRemoveMembersResponses, ContactGroupsRemoveResponses, ContactGroupsUpdateErrors, ContactGroupsUpdateResponses, ContactId, ContactIdentityId, ContactIdentityInput, ContactImportJobId, ContactLookup, ContactPreferences, ContactProfileUpdate, ContactProfileWritable, ContactsAddIdentityErrors, ContactsAddIdentityResponses, ContactsAddTagsErrors, ContactsAddTagsResponses, ContactsBulkDeleteErrors, ContactsBulkDeleteResponses, ContactsBulkUpdateStatusErrors, ContactsBulkUpdateStatusResponses, ContactsBulkUpdateTagsErrors, ContactsBulkUpdateTagsResponses, ContactsCreateErrors, ContactsCreateResponses, ContactsExportErrors, ContactsExportResponses, ContactsFindErrors, ContactsFindOrCreateErrors, ContactsFindOrCreateResponses, ContactsFindResponses, ContactsGetActivityTimelineErrors, ContactsGetActivityTimelineResponses, ContactsGetEngagementErrors, ContactsGetEngagementResponses, ContactsGetErrors, ContactsGetGroupMembershipsErrors, ContactsGetGroupMembershipsResponses, ContactsGetImportJobErrors, ContactsGetImportJobResponses, ContactsGetResponses, ContactsListErrors, ContactsListResponses, ContactsPlanImportErrors, ContactsPlanImportResponses, ContactsRemoveErrors, ContactsRemoveIdentityErrors, ContactsRemoveIdentityResponses, ContactsRemoveResponses, ContactsRemoveTagsErrors, ContactsRemoveTagsResponses, ContactsSetConsentErrors, ContactsSetConsentResponses, ContactsStartImportErrors, ContactsStartImportResponses, ContactsUpdateErrors, ContactsUpdateResponses, ConversationContextWritable, ConversationId, ConversationsAddCategoriesErrors, ConversationsAddCategoriesResponses, ConversationsAddChannelsErrors, ConversationsAddChannelsResponses, ConversationsAddContactsErrors, ConversationsAddContactsResponses, ConversationsAddTagsErrors, ConversationsAddTagsResponses, ConversationsCreateErrors, ConversationsCreateResponses, ConversationsGetByIdErrors, ConversationsGetByIdResponses, ConversationsListErrors, ConversationsListMessagesErrors, ConversationsListMessagesResponses, ConversationsListResponses, ConversationsRemoveCategoriesErrors, ConversationsRemoveCategoriesResponses, ConversationsRemoveChannelsErrors, ConversationsRemoveChannelsResponses, ConversationsRemoveContactsErrors, ConversationsRemoveContactsResponses, ConversationsRemoveTagsErrors, ConversationsRemoveTagsResponses, ConversationsUpdateErrors, ConversationsUpdateResponses, CreateEventPayload, CreateMailboxEndpointPayload, Cursor, CustomFieldDefinitionId, CustomFieldsCreateErrors, CustomFieldsCreateResponses, CustomFieldsListErrors, CustomFieldsListResponses, CustomFieldsRemoveErrors, CustomFieldsRemoveResponses, CustomFieldsUpdateErrors, CustomFieldsUpdateResponses, DispatchSendMessagePayload, EmailAddBlockErrors, EmailAddBlockResponses, EmailAddDomainErrors, EmailAddDomainResponses, EmailAddSenderErrors, EmailAddSenderResponses, EmailAdvanceDomainVerificationErrors, EmailAdvanceDomainVerificationResponses, EmailAttachment, EmailBccRecipients, EmailBuildCustomTrackingDomainConnectApplyUrlErrors, EmailBuildCustomTrackingDomainConnectApplyUrlResponses, EmailBuildDomainConnectApplyUrlErrors, EmailBuildDomainConnectApplyUrlResponses, EmailCancelDomainWarmingBatchErrors, EmailCancelDomainWarmingBatchResponses, EmailCcRecipients, EmailCheckBlockedErrors, EmailCheckBlockedResponses, EmailCheckSenderVerificationErrors, EmailCheckSenderVerificationResponses, EmailCompleteCustomTrackingDomainConnectErrors, EmailCompleteCustomTrackingDomainConnectResponses, EmailCompleteDomainConnectErrors, EmailCompleteDomainConnectResponses, EmailCompleteDomainWarmingErrors, EmailCompleteDomainWarmingResponses, EmailContentWritable, EmailCountSuppressionsErrors, EmailCountSuppressionsResponses, EmailCreateDomainWarmingPlanErrors, EmailCreateDomainWarmingPlanResponses, EmailCreateForwardingRuleErrors, EmailCreateForwardingRuleResponses, EmailDeleteForwardingRuleErrors, EmailDeleteForwardingRuleResponses, EmailDetectRegistrarErrors, EmailDetectRegistrarResponses, EmailDisableCatchAllErrors, EmailDisableCatchAllResponses, EmailDisableCustomTrackingErrors, EmailDisableCustomTrackingResponses, EmailDomainId, EmailDomainWarmingBatchId, EmailEnableCatchAllErrors, EmailEnableCatchAllResponses, EmailEnableCustomTrackingErrors, EmailEnableCustomTrackingResponses, EmailEnableReceivingErrors, EmailEnableReceivingResponses, EmailForwardingRuleId, EmailGetBlockLogsErrors, EmailGetBlockLogsResponses, EmailGetCatchAllConfigErrors, EmailGetCatchAllConfigResponses, EmailGetCatchAllStatsErrors, EmailGetCatchAllStatsResponses, EmailGetCustomTrackingDomainConnectErrors, EmailGetCustomTrackingDomainConnectResponses, EmailGetCustomTrackingErrors, EmailGetCustomTrackingResponses, EmailGetDomainByIdErrors, EmailGetDomainByIdResponses, EmailGetDomainConnectErrors, EmailGetDomainConnectResponses, EmailGetDomainVerificationErrors, EmailGetDomainVerificationResponses, EmailGetDomainWarmingErrors, EmailGetDomainWarmingResponses, EmailGetForwardingLogErrors, EmailGetForwardingLogResponses, EmailGetOnboardingReviewErrors, EmailGetOnboardingReviewResponses, EmailGetReceivingStatusErrors, EmailGetReceivingStatusResponses, EmailGetRecipientTrackingPreferenceErrors, EmailGetRecipientTrackingPreferenceResponses, EmailGetSenderErrors, EmailGetSenderResponses, EmailGetStatsErrors, EmailGetStatsResponses, EmailGetTrackingDefaultsErrors, EmailGetTrackingDefaultsResponses, EmailListBlocksErrors, EmailListBlocksResponses, EmailListDomainsErrors, EmailListDomainsResponses, EmailListForwardingRulesErrors, EmailListForwardingRulesResponses, EmailListSendersErrors, EmailListSendersResponses, EmailListSuppressionsErrors, EmailListSuppressionsResponses, EmailPauseDomainWarmingErrors, EmailPauseDomainWarmingResponses, EmailReapplyOnboardingReviewErrors, EmailReapplyOnboardingReviewResponses, EmailRecheckCustomTrackingErrors, EmailRecheckCustomTrackingResponses, EmailRecipients, EmailRemoveBlockErrors, EmailRemoveBlockResponses, EmailRemoveDomainErrors, EmailRemoveDomainResponses, EmailRemoveSenderErrors, EmailRemoveSenderResponses, EmailRemoveSuppressionErrors, EmailRemoveSuppressionResponses, EmailRespondToOnboardingInformationRequestErrors, EmailRespondToOnboardingInformationRequestResponses, EmailResumeDomainWarmingErrors, EmailResumeDomainWarmingResponses, EmailRotateDomainDkimErrors, EmailRotateDomainDkimResponses, EmailSender, EmailSenderId, EmailSetDefaultDomainErrors, EmailSetDefaultDomainResponses, EmailSetDefaultSenderErrors, EmailSetDefaultSenderResponses, EmailUpdateBlockErrors, EmailUpdateBlockResponses, EmailUpdateCatchAllConfigErrors, EmailUpdateCatchAllConfigResponses, EmailUpdateDomainConfigErrors, EmailUpdateDomainConfigResponses, EmailUpdateDomainWarmingPolicyErrors, EmailUpdateDomainWarmingPolicyResponses, EmailUpdateForwardingRuleErrors, EmailUpdateForwardingRuleResponses, EmailUpdateRecipientTrackingPreferenceErrors, EmailUpdateRecipientTrackingPreferenceResponses, EmailUpdateTrackingDefaultsErrors, EmailUpdateTrackingDefaultsResponses, EventsBatchErrors, EventsBatchResponses, EventsCreateErrors, EventsCreateResponses, ExtensionInstallationId, ExtensionInstallationsDisableErrors, ExtensionInstallationsDisableResponses, ExtensionInstallationsEnableErrors, ExtensionInstallationsEnableResponses, ExtensionInstallationsGetErrors, ExtensionInstallationsGetResponses, ExtensionInstallationsGetRunErrors, ExtensionInstallationsGetRunResponses, ExtensionInstallationsInstallErrors, ExtensionInstallationsInstallResponses, ExtensionInstallationsListErrors, ExtensionInstallationsListResponses, ExtensionInstallationsListRunsErrors, ExtensionInstallationsListRunsResponses, ExtensionInstallationsUninstallErrors, ExtensionInstallationsUninstallResponses, ExtensionInstallationsUpgradeErrors, ExtensionInstallationsUpgradeResponses, ExtensionsGetErrors, ExtensionsGetResponses, ExtensionsGetVersionErrors, ExtensionsGetVersionResponses, ExtensionsListErrors, ExtensionsListResponses, ExtensionsListVersionsErrors, ExtensionsListVersionsResponses, ExtensionsPublishErrors, ExtensionsPublishResponses, ExtensionVersionId, FeedbackContext, FeedbackSendErrors, FeedbackSendResponses, ForwardingConditions, IanaTimezone, JourneyDefinitionWritable, JourneyId, JourneyName, JourneyRunId, JourneyRunStatus, JourneysArchiveErrors, JourneysArchiveResponses, JourneysCreateErrors, JourneysCreateResponses, JourneysGetErrors, JourneysGetResponses, JourneysGetRunErrors, JourneysGetRunResponses, JourneysGetVersionErrors, JourneysGetVersionResponses, JourneysListErrors, JourneysListResponses, JourneysListRunsErrors, JourneysListRunsResponses, JourneysPauseErrors, JourneysPauseResponses, JourneysPublishErrors, JourneysPublishResponses, JourneysRemoveErrors, JourneysRemoveResponses, JourneysReplaceDraftErrors, JourneysReplaceDraftResponses, JourneysResumeErrors, JourneysResumeResponses, JourneysStatsErrors, JourneysStatsResponses, JourneyStatus, JourneysUpdateErrors, JourneysUpdateResponses, JsonObjectWritable, JsonValueWritable, MailboxActionId, MailboxChannel, MailboxDraftId, MailboxEndpointId, MailboxesAddThreadLabelsErrors, MailboxesAddThreadLabelsResponses, MailboxesApproveActionErrors, MailboxesApproveActionResponses, MailboxesCancelActionErrors, MailboxesCancelActionResponses, MailboxesCopyMessageAttachmentErrors, MailboxesCopyMessageAttachmentResponses, MailboxesCreateDraftErrors, MailboxesCreateDraftResponses, MailboxesCreateEndpointErrors, MailboxesCreateEndpointResponses, MailboxesCreateErrors, MailboxesCreateGrantErrors, MailboxesCreateGrantResponses, MailboxesCreateLabelErrors, MailboxesCreateLabelResponses, MailboxesCreateNoteErrors, MailboxesCreateNoteResponses, MailboxesCreatePolicyErrors, MailboxesCreatePolicyResponses, MailboxesCreateResponses, MailboxesDeleteDraftErrors, MailboxesDeleteDraftResponses, MailboxesDeleteLabelErrors, MailboxesDeleteLabelResponses, MailboxesDeleteNoteErrors, MailboxesDeleteNoteResponses, MailboxesDeletePolicyErrors, MailboxesDeletePolicyResponses, MailboxesDenyActionErrors, MailboxesDenyActionResponses, MailboxesDiscardMessageErrors, MailboxesDiscardMessageResponses, MailboxesForwardErrors, MailboxesForwardResponses, MailboxesGetActionErrors, MailboxesGetActionResponses, MailboxesGetAgentActivityErrors, MailboxesGetAgentActivityResponses, MailboxesGetDraftErrors, MailboxesGetDraftResponses, MailboxesGetErrors, MailboxesGetMessageAttachmentErrors, MailboxesGetMessageAttachmentResponses, MailboxesGetMessageErrors, MailboxesGetMessageRawErrors, MailboxesGetMessageRawResponses, MailboxesGetMessageResponses, MailboxesGetPolicyErrors, MailboxesGetPolicyResponses, MailboxesGetResponses, MailboxesGetThreadContentErrors, MailboxesGetThreadContentResponses, MailboxesGetThreadErrors, MailboxesGetThreadResponses, MailboxesListActionsErrors, MailboxesListActionsResponses, MailboxesListDraftsErrors, MailboxesListDraftsResponses, MailboxesListErrors, MailboxesListEventsErrors, MailboxesListEventsResponses, MailboxesListFoldersErrors, MailboxesListFoldersResponses, MailboxesListGrantsErrors, MailboxesListGrantsResponses, MailboxesListLabelsErrors, MailboxesListLabelsResponses, MailboxesListPoliciesErrors, MailboxesListPoliciesResponses, MailboxesListQuarantineErrors, MailboxesListQuarantineResponses, MailboxesListResponses, MailboxesListThreadMessagesErrors, MailboxesListThreadMessagesResponses, MailboxesListThreadNotesErrors, MailboxesListThreadNotesResponses, MailboxesListThreadsErrors, MailboxesListThreadsResponses, MailboxesPauseErrors, MailboxesPauseResponses, MailboxesReleaseMessageErrors, MailboxesReleaseMessageResponses, MailboxesRemoveEndpointErrors, MailboxesRemoveEndpointResponses, MailboxesRemoveErrors, MailboxesRemoveResponses, MailboxesRemoveThreadLabelsErrors, MailboxesRemoveThreadLabelsResponses, MailboxesReplyAllErrors, MailboxesReplyAllResponses, MailboxesReplyErrors, MailboxesReplyResponses, MailboxesResumeErrors, MailboxesResumeResponses, MailboxesRetryActionErrors, MailboxesRetryActionResponses, MailboxesRevokeGrantErrors, MailboxesRevokeGrantResponses, MailboxesSendDraftErrors, MailboxesSendDraftResponses, MailboxesSendMessageErrors, MailboxesSendMessageResponses, MailboxesUpdateDraftErrors, MailboxesUpdateDraftResponses, MailboxesUpdateEndpointErrors, MailboxesUpdateEndpointResponses, MailboxesUpdateErrors, MailboxesUpdateGrantErrors, MailboxesUpdateGrantResponses, MailboxesUpdateLabelErrors, MailboxesUpdateLabelResponses, MailboxesUpdateNoteErrors, MailboxesUpdateNoteResponses, MailboxesUpdatePolicyErrors, MailboxesUpdatePolicyResponses, MailboxesUpdateResponses, MailboxesUpdateThreadErrors, MailboxesUpdateThreadResponses, MailboxGrantId, MailboxGrantRole, MailboxId, MailboxLabelId, MailboxMetadataPatch, MailboxMetadataWritable, MailboxNoteId, MailboxPolicyId, MailboxPolicyOutcomeKind, MailboxSendMode, MailboxThreadFolder, MailboxThreadId, MailboxThreadPriority, MediaCompleteErrors, MediaCompleteResponses, MediaCreateErrors, MediaCreateResponses, MediaDownloadUrlErrors, MediaDownloadUrlResponses, MediaGetByIdErrors, MediaGetByIdResponses, MediaId, MediaRemoveErrors, MediaRemoveResponses, MessageId, MessageMetadataWritable, MessagesGetContentErrors, MessagesGetContentResponses, MessagesGetEmailErrors, MessagesGetEmailResponses, MessagesGetErrors, MessagesGetEventsErrors, MessagesGetEventsResponses, MessagesGetResponses, MessagesGetStatusErrors, MessagesGetStatusResponses, MessagesListDeliveriesErrors, MessagesListDeliveriesResponses, MessagesListErrors, MessagesListResponses, MessagesRemoveErrors, MessagesRemoveResponses, MessagesSendErrors, MessagesSendResponses, MessagesValidateEmailErrors, MessagesValidateEmailResponses, NamespaceId, NamespaceMetadataWritable, NamespaceResourceType, NamespacesAssignResourceErrors, NamespacesAssignResourceResponses, NamespacesCreateErrors, NamespacesCreateResponses, NamespacesGetErrors, NamespacesGetResponses, NamespacesGetUsageErrors, NamespacesGetUsageResponses, NamespacesListErrors, NamespacesListResponses, NamespacesRemoveErrors, NamespacesRemoveResourceErrors, NamespacesRemoveResourceResponses, NamespacesRemoveResponses, NamespacesUpdateErrors, NamespacesUpdateResponses, NewsletterDomainsAddErrors, NewsletterDomainsAddResponses, NewsletterDomainsGetErrors, NewsletterDomainsGetResponses, NewsletterDomainsListErrors, NewsletterDomainsListResponses, NewsletterDomainsRemoveErrors, NewsletterDomainsRemoveResponses, NewsletterId, NewsletterIssuesCheckErrors, NewsletterIssuesCheckResponses, NewsletterIssuesCreateErrors, NewsletterIssuesCreateResponses, NewsletterIssuesGetErrors, NewsletterIssuesGetResponses, NewsletterIssuesHeadErrors, NewsletterIssuesHeadResponses, NewsletterIssuesHistoryErrors, NewsletterIssuesHistoryResponses, NewsletterIssuesListErrors, NewsletterIssuesListResponses, NewsletterIssuesOpenErrors, NewsletterIssuesOpenResponses, NewsletterIssuesRemoveErrors, NewsletterIssuesRemoveResponses, NewsletterIssuesRenderErrors, NewsletterIssuesRenderResponses, NewsletterIssuesSaveErrors, NewsletterIssuesSaveResponses, NewsletterIssuesUpdateErrors, NewsletterIssuesUpdateResponses, NewslettersCreateErrors, NewslettersCreateResponses, NewslettersGetErrors, NewslettersGetResponses, NewslettersListErrors, NewslettersListResponses, NewslettersRemoveErrors, NewslettersRemoveResponses, NewslettersUpdateErrors, NewslettersUpdateResponses, OperationId, OperationsGetErrors, OperationsGetResponses, OperationsListErrors, OperationsListResponses, OperationsRetryErrors, OperationsRetryResponses, OrganizationsCreateAvatarUploadErrors, OrganizationsCreateAvatarUploadResponses, OrganizationsCreateErrors, OrganizationsCreateResponses, OrganizationsDeleteErrors, OrganizationsDeleteResponses, OrganizationsGetErrors, OrganizationsGetProfileErrors, OrganizationsGetProfileResponses, OrganizationsGetResponses, OrganizationsGetTrustTierErrors, OrganizationsGetTrustTierResponses, OrganizationsGetUsageErrors, OrganizationsGetUsageResponses, OrganizationsUpdateErrors, OrganizationsUpdateResponses, PhoneRegion, PublicationDomainCursor, RenderLocale, RenderTimeZone, ScheduledMessageId, ScheduledMessagesCancelErrors, ScheduledMessagesCancelResponses, ScheduledMessagesCreateErrors, ScheduledMessagesCreateResponses, ScheduledMessagesGetErrors, ScheduledMessagesGetResponses, ScheduledMessagesListErrors, ScheduledMessagesListResponses, ScheduledMessagesResumeErrors, ScheduledMessagesResumeResponses, SubscriptionsSubscribeErrors, SubscriptionsSubscribeResponses, SuppressionId, TemplateFamilyId, TemplateFromDefault, TemplateId, TemplateInputContractId, TemplateProjectId, TemplatePublicationId, TemplatesAddEntryErrors, TemplatesAddEntryResponses, TemplatesAttachFamilyMemberErrors, TemplatesAttachFamilyMemberResponses, TemplatesAttachWorkspaceResourceErrors, TemplatesAttachWorkspaceResourceResponses, TemplatesCheckWorkspaceErrors, TemplatesCheckWorkspaceResponses, TemplatesCreateErrors, TemplatesCreateFamilyErrors, TemplatesCreateFamilyFromTemplateErrors, TemplatesCreateFamilyFromTemplateResponses, TemplatesCreateFamilyResponses, TemplatesCreateFromWebsiteErrors, TemplatesCreateFromWebsiteResponses, TemplatesCreateResponses, TemplatesDeleteFamilyErrors, TemplatesDeleteFamilyResponses, TemplatesDetachFamilyMemberErrors, TemplatesDetachFamilyMemberResponses, TemplatesDiffWorkspaceErrors, TemplatesDiffWorkspaceResponses, TemplatesGetByIdErrors, TemplatesGetByIdResponses, TemplatesGetFamilyErrors, TemplatesGetFamilyResponses, TemplatesGetGitRepositoryErrors, TemplatesGetGitRepositoryResponses, TemplatesGetInputContractErrors, TemplatesGetInputContractResponses, TemplatesGetPublicationErrors, TemplatesGetPublicationResponses, TemplatesIssueGitCredentialErrors, TemplatesIssueGitCredentialResponses, TemplatesListErrors, TemplatesListFamiliesErrors, TemplatesListFamiliesResponses, TemplatesListInputContractsErrors, TemplatesListInputContractsResponses, TemplatesListResponses, TemplatesOpenWorkspaceErrors, TemplatesOpenWorkspaceResponses, TemplatesPatchWorkspaceErrors, TemplatesPatchWorkspaceResponses, TemplatesPublishErrors, TemplatesPublishResponses, TemplatesPutWorkspaceAssetErrors, TemplatesPutWorkspaceAssetResponses, TemplatesRemoveErrors, TemplatesRemoveResponses, TemplatesRemoveWorkspaceResourceErrors, TemplatesRemoveWorkspaceResourceResponses, TemplatesRenameFamilyErrors, TemplatesRenameFamilyResponses, TemplatesRenderPublicationErrors, TemplatesRenderPublicationResponses, TemplatesRenderWorkspaceFixtureErrors, TemplatesRenderWorkspaceFixtureResponses, TemplatesResolveWorkspaceConflictErrors, TemplatesResolveWorkspaceConflictResponses, TemplatesRestoreWorkspaceErrors, TemplatesRestoreWorkspaceResponses, TemplatesSaveWorkspaceErrors, TemplatesSaveWorkspaceResponses, TemplatesUpdateErrors, TemplatesUpdateResponses, TemplatesWorkspaceHistoryErrors, TemplatesWorkspaceHistoryResponses, TemplateTrackingDefault, TopicContactRef, TopicFormsCreateErrors, TopicFormsCreateResponses, TopicFormsGetErrors, TopicFormsGetResponses, TopicFormsListErrors, TopicFormsListResponses, TopicFormsRemoveErrors, TopicFormsRemoveResponses, TopicFormsUpdateErrors, TopicFormsUpdateResponses, TopicId, TopicsCheckSubscriptionErrors, TopicsCheckSubscriptionResponses, TopicsCreateErrors, TopicsCreateResponses, TopicsGetErrors, TopicsGetResponses, TopicsListErrors, TopicsListResponses, TopicsListSubscriptionsErrors, TopicsListSubscriptionsResponses, TopicsRemoveErrors, TopicsRemoveResponses, TopicsSetDefaultErrors, TopicsSetDefaultResponses, TopicsSetSubscriptionsErrors, TopicsSetSubscriptionsResponses, TopicsUpdateErrors, TopicsUpdateResponses, TrackingRecipientEmail, UserId, VersionCursor, WebhookDeliveryId, WebhookEndpointId, WebhooksCreateErrors, WebhooksCreateResponses, WebhooksGetErrors, WebhooksGetLogsErrors, WebhooksGetLogsResponses, WebhooksGetResponses, WebhooksGetSecretErrors, WebhooksGetSecretResponses, WebhooksGetStatsErrors, WebhooksGetStatsResponses, WebhooksListErrors, WebhooksListResponses, WebhooksRegenerateSecretErrors, WebhooksRegenerateSecretResponses, WebhooksRemoveErrors, WebhooksRemoveResponses, WebhooksRetryDeliveryErrors, WebhooksRetryDeliveryResponses, WebhooksTestErrors, WebhooksTestResponses, WebhooksUpdateErrors, WebhooksUpdateResponses, WhoamiGetErrors, WhoamiGetResponses } from "./types.gen";
|
|
3
3
|
export type Options<TData extends TDataShape = TDataShape, ThrowOnError extends boolean = boolean, TResponse = unknown> = Options2<TData, ThrowOnError, TResponse> & {
|
|
4
4
|
/**
|
|
5
5
|
* You can provide a client instance returned by `createClient()` instead of
|
|
@@ -7,6 +7,8 @@ export type Options<TData extends TDataShape = TDataShape, ThrowOnError extends
|
|
|
7
7
|
* custom client.
|
|
8
8
|
*/
|
|
9
9
|
client?: Client | undefined;
|
|
10
|
+
idempotencyKey?: string | undefined;
|
|
11
|
+
maxRetries?: number | undefined;
|
|
10
12
|
/**
|
|
11
13
|
* You can pass arbitrary values through the `meta` object. This can be
|
|
12
14
|
* used to access values that aren't defined as part of the SDK function.
|
|
@@ -38,8 +40,7 @@ export declare class Messages {
|
|
|
38
40
|
* Sends a message on the requested channel and returns its receipt (id, status, and why it waits when it does) with a 201 Created status. Requires `messages:create` or the send permission of the channel it sends on, such as `email:send`. `channel` selects the payload variant. Repeating an identical request with the same optional `Idempotency-Key` header returns the original receipt; reusing the key for different content returns a conflict.
|
|
39
41
|
*/
|
|
40
42
|
static send<ThrowOnError extends boolean = false>(parameters: {
|
|
41
|
-
|
|
42
|
-
conversationId?: ConversationId | null | null | undefined;
|
|
43
|
+
conversationId?: ConversationId | null | undefined;
|
|
43
44
|
metadata?: MessageMetadataWritable | undefined;
|
|
44
45
|
channel: "email";
|
|
45
46
|
to: EmailRecipients;
|
|
@@ -96,7 +97,7 @@ export declare class Messages {
|
|
|
96
97
|
* Resolves recipients, sender, and inline or published-template content without sending anything, creating contacts or messages, or counting toward your quota.
|
|
97
98
|
*/
|
|
98
99
|
static validateEmail<ThrowOnError extends boolean = false>(parameters: {
|
|
99
|
-
conversationId?: ConversationId | null |
|
|
100
|
+
conversationId?: ConversationId | null | undefined;
|
|
100
101
|
metadata?: MessageMetadataWritable | undefined;
|
|
101
102
|
channel: "email";
|
|
102
103
|
to: EmailRecipients;
|
|
@@ -179,7 +180,6 @@ export declare class ScheduledMessages {
|
|
|
179
180
|
send: DispatchSendMessagePayload;
|
|
180
181
|
scheduledFor: string;
|
|
181
182
|
timezone?: IanaTimezone | null | undefined;
|
|
182
|
-
idempotencyKey?: string | null | undefined;
|
|
183
183
|
referenceId?: string | null | undefined;
|
|
184
184
|
}, options?: Options<never, ThrowOnError>): RequestResult<ScheduledMessagesCreateResponses, ScheduledMessagesCreateErrors, ThrowOnError>;
|
|
185
185
|
/**
|
|
@@ -301,12 +301,11 @@ export declare class Campaigns {
|
|
|
301
301
|
/**
|
|
302
302
|
* Schedule a campaign run
|
|
303
303
|
*
|
|
304
|
-
* Schedules an email campaign run at the absolute ISO-8601 instant in scheduledFor, or immediately when omitted. The optional
|
|
304
|
+
* Schedules an email campaign run at the absolute ISO-8601 instant in scheduledFor, or immediately when omitted. The optional Idempotency-Key header is scoped to the organization and replays return the original run. An email campaign must carry the brand footer: it is refused with CampaignFooterRequiredError when its footer is off and its template renders no BrandFooter, and with BrandAddressRequiredError when a brand that signs it off has no postal address.
|
|
305
305
|
*/
|
|
306
306
|
static scheduleRun<ThrowOnError extends boolean = false>(parameters: {
|
|
307
307
|
id: CampaignId;
|
|
308
308
|
scheduledFor?: string | null | undefined;
|
|
309
|
-
idempotencyKey?: string | null | undefined;
|
|
310
309
|
}, options?: Options<never, ThrowOnError>): RequestResult<CampaignsScheduleRunResponses, CampaignsScheduleRunErrors, ThrowOnError>;
|
|
311
310
|
/**
|
|
312
311
|
* Get a campaign run
|
|
@@ -464,7 +463,6 @@ export declare class Email {
|
|
|
464
463
|
* Creates a new DKIM signing key and returns its public DKIM record. Publish it, then advance domain verification to switch signing to the new key. Keep the former record published at least until `minimumRetainUntil`.
|
|
465
464
|
*/
|
|
466
465
|
static rotateDomainDkim<ThrowOnError extends boolean = false>(parameters: {
|
|
467
|
-
"idempotency-key": string;
|
|
468
466
|
id: EmailDomainId;
|
|
469
467
|
}, options?: Options<never, ThrowOnError>): RequestResult<EmailRotateDomainDkimResponses, EmailRotateDomainDkimErrors, ThrowOnError>;
|
|
470
468
|
/**
|
|
@@ -564,12 +562,12 @@ export declare class Email {
|
|
|
564
562
|
*/
|
|
565
563
|
static updateDomainConfig<ThrowOnError extends boolean = false>(parameters: {
|
|
566
564
|
id: EmailDomainId;
|
|
567
|
-
openTracking?: boolean | null |
|
|
568
|
-
clickTracking?: boolean | null |
|
|
569
|
-
replyTo?: Array<string> | null |
|
|
570
|
-
topicId?: TopicId | null |
|
|
571
|
-
footerEnabled?: boolean | null |
|
|
572
|
-
brandSlug?: string | null |
|
|
565
|
+
openTracking?: boolean | null | undefined;
|
|
566
|
+
clickTracking?: boolean | null | undefined;
|
|
567
|
+
replyTo?: Array<string> | null | undefined;
|
|
568
|
+
topicId?: TopicId | null | undefined;
|
|
569
|
+
footerEnabled?: boolean | null | undefined;
|
|
570
|
+
brandSlug?: string | null | undefined;
|
|
573
571
|
}, options?: Options<never, ThrowOnError>): RequestResult<EmailUpdateDomainConfigResponses, EmailUpdateDomainConfigErrors, ThrowOnError>;
|
|
574
572
|
/**
|
|
575
573
|
* Disable a custom tracking domain
|
|
@@ -651,11 +649,10 @@ export declare class Email {
|
|
|
651
649
|
* Creates a sender. A sender on a domain takes the domain's namespace, and a `namespaceId` that names another namespace is refused; a sender with no domain joins `namespaceId`, or its key's namespace. A namespace-scoped key cannot add a sender on a domain outside its namespace. The required Idempotency-Key replays the original sender for an identical request and conflicts when reused with different input.
|
|
652
650
|
*/
|
|
653
651
|
static addSender<ThrowOnError extends boolean = false>(parameters: {
|
|
654
|
-
"idempotency-key": string;
|
|
655
652
|
email: string;
|
|
656
653
|
domainId?: EmailDomainId | null | undefined;
|
|
657
|
-
name?: string | null |
|
|
658
|
-
replyToEmails?: Array<string> | null |
|
|
654
|
+
name?: string | null | undefined;
|
|
655
|
+
replyToEmails?: Array<string> | null | undefined;
|
|
659
656
|
namespaceId?: NamespaceId | null | undefined;
|
|
660
657
|
}, options?: Options<never, ThrowOnError>): RequestResult<EmailAddSenderResponses, EmailAddSenderErrors, ThrowOnError>;
|
|
661
658
|
/**
|
|
@@ -810,7 +807,7 @@ export declare class Email {
|
|
|
810
807
|
reason?: string | null | undefined;
|
|
811
808
|
notes?: string | null | undefined;
|
|
812
809
|
isActive?: boolean | null | undefined;
|
|
813
|
-
expiresAt?: string | null |
|
|
810
|
+
expiresAt?: string | null | undefined;
|
|
814
811
|
}, options?: Options<never, ThrowOnError>): RequestResult<EmailUpdateBlockResponses, EmailUpdateBlockErrors, ThrowOnError>;
|
|
815
812
|
/**
|
|
816
813
|
* List blocked email logs
|
|
@@ -860,7 +857,7 @@ export declare class Email {
|
|
|
860
857
|
isActive?: boolean | null | undefined;
|
|
861
858
|
metadata?: {
|
|
862
859
|
[key: string]: JsonValueWritable | undefined;
|
|
863
|
-
} | null |
|
|
860
|
+
} | null | undefined;
|
|
864
861
|
}, options?: Options<never, ThrowOnError>): RequestResult<EmailCreateForwardingRuleResponses, EmailCreateForwardingRuleErrors, ThrowOnError>;
|
|
865
862
|
/**
|
|
866
863
|
* Delete a forwarding rule
|
|
@@ -884,12 +881,12 @@ export declare class Email {
|
|
|
884
881
|
forwardTo?: Array<string> | null | undefined;
|
|
885
882
|
preserveHeaders?: boolean | null | undefined;
|
|
886
883
|
appendNote?: string | null | undefined;
|
|
887
|
-
conditions?: ForwardingConditions | null |
|
|
884
|
+
conditions?: ForwardingConditions | null | undefined;
|
|
888
885
|
priority?: number | null | undefined;
|
|
889
886
|
isActive?: boolean | null | undefined;
|
|
890
887
|
metadata?: {
|
|
891
888
|
[key: string]: JsonValueWritable | undefined;
|
|
892
|
-
} | null |
|
|
889
|
+
} | null | undefined;
|
|
893
890
|
}, options?: Options<never, ThrowOnError>): RequestResult<EmailUpdateForwardingRuleResponses, EmailUpdateForwardingRuleErrors, ThrowOnError>;
|
|
894
891
|
/**
|
|
895
892
|
* List email forwarding logs
|
|
@@ -1095,7 +1092,7 @@ export declare class Conversations {
|
|
|
1095
1092
|
urgency?: "low" | "medium" | "high" | "critical" | null | undefined;
|
|
1096
1093
|
complexity?: "simple" | "moderate" | "complex" | null | undefined;
|
|
1097
1094
|
metadata?: JsonObjectWritable | null | undefined;
|
|
1098
|
-
context?: ConversationContextWritable | null |
|
|
1095
|
+
context?: ConversationContextWritable | null | undefined;
|
|
1099
1096
|
tags?: Array<string> | null | undefined;
|
|
1100
1097
|
categories?: Array<string> | null | undefined;
|
|
1101
1098
|
isTest?: boolean | null | undefined;
|
|
@@ -1118,16 +1115,16 @@ export declare class Conversations {
|
|
|
1118
1115
|
static update<ThrowOnError extends boolean = false>(parameters: {
|
|
1119
1116
|
id: ConversationId;
|
|
1120
1117
|
title?: string | null | undefined;
|
|
1121
|
-
description?: string | null |
|
|
1122
|
-
externalId?: string | null |
|
|
1123
|
-
parentConversationId?: ConversationId | null |
|
|
1118
|
+
description?: string | null | undefined;
|
|
1119
|
+
externalId?: string | null | undefined;
|
|
1120
|
+
parentConversationId?: ConversationId | null | undefined;
|
|
1124
1121
|
primaryChannel?: "email" | null | undefined;
|
|
1125
1122
|
status?: "active" | "waiting" | "resolved" | "escalated" | "archived" | null | undefined;
|
|
1126
|
-
statusReason?: string | null |
|
|
1123
|
+
statusReason?: string | null | undefined;
|
|
1127
1124
|
priority?: number | null | undefined;
|
|
1128
1125
|
urgency?: "low" | "medium" | "high" | "critical" | null | undefined;
|
|
1129
1126
|
complexity?: "simple" | "moderate" | "complex" | null | undefined;
|
|
1130
|
-
context?: ConversationContextWritable | null |
|
|
1127
|
+
context?: ConversationContextWritable | null | undefined;
|
|
1131
1128
|
metadata?: JsonObjectWritable | null | undefined;
|
|
1132
1129
|
isTest?: boolean | null | undefined;
|
|
1133
1130
|
isInternal?: boolean | null | undefined;
|
|
@@ -1247,16 +1244,16 @@ export declare class Contacts {
|
|
|
1247
1244
|
static create<ThrowOnError extends boolean = false>(parameters: {
|
|
1248
1245
|
namespaceId?: NamespaceId | null | undefined;
|
|
1249
1246
|
name: string;
|
|
1250
|
-
displayName?: string | null |
|
|
1251
|
-
avatar?: string | null |
|
|
1247
|
+
displayName?: string | null | undefined;
|
|
1248
|
+
avatar?: string | null | undefined;
|
|
1252
1249
|
identities?: Array<ContactIdentityInput> | null | undefined;
|
|
1253
|
-
profile?: ContactProfileWritable | null |
|
|
1254
|
-
preferences?: ContactPreferences | null |
|
|
1250
|
+
profile?: ContactProfileWritable | null | undefined;
|
|
1251
|
+
preferences?: ContactPreferences | null | undefined;
|
|
1255
1252
|
tags?: Array<string> | null | undefined;
|
|
1256
1253
|
status?: "active" | "paused" | "blocked" | "archived" | null | undefined;
|
|
1257
|
-
statusReason?: string | null |
|
|
1258
|
-
externalId?: string | null |
|
|
1259
|
-
metadata?: JsonObjectWritable | null |
|
|
1254
|
+
statusReason?: string | null | undefined;
|
|
1255
|
+
externalId?: string | null | undefined;
|
|
1256
|
+
metadata?: JsonObjectWritable | null | undefined;
|
|
1260
1257
|
}, options?: Options<never, ThrowOnError>): RequestResult<ContactsCreateResponses, ContactsCreateErrors, ThrowOnError>;
|
|
1261
1258
|
/**
|
|
1262
1259
|
* Find a contact
|
|
@@ -1279,11 +1276,11 @@ export declare class Contacts {
|
|
|
1279
1276
|
lookup: ContactLookup;
|
|
1280
1277
|
create?: {
|
|
1281
1278
|
name?: string | null | undefined;
|
|
1282
|
-
displayName?: string | null |
|
|
1283
|
-
avatar?: string | null |
|
|
1279
|
+
displayName?: string | null | undefined;
|
|
1280
|
+
avatar?: string | null | undefined;
|
|
1284
1281
|
identities?: Array<ContactIdentityInput> | null | undefined;
|
|
1285
|
-
profile?: ContactProfileWritable | null |
|
|
1286
|
-
externalId?: string | null |
|
|
1282
|
+
profile?: ContactProfileWritable | null | undefined;
|
|
1283
|
+
externalId?: string | null | undefined;
|
|
1287
1284
|
} | null | undefined;
|
|
1288
1285
|
}, options?: Options<never, ThrowOnError>): RequestResult<ContactsFindOrCreateResponses, ContactsFindOrCreateErrors, ThrowOnError>;
|
|
1289
1286
|
/**
|
|
@@ -1310,13 +1307,13 @@ export declare class Contacts {
|
|
|
1310
1307
|
static update<ThrowOnError extends boolean = false>(parameters: {
|
|
1311
1308
|
id: ContactId;
|
|
1312
1309
|
name?: string | null | undefined;
|
|
1313
|
-
displayName?: string | null |
|
|
1314
|
-
avatar?: string | null |
|
|
1310
|
+
displayName?: string | null | undefined;
|
|
1311
|
+
avatar?: string | null | undefined;
|
|
1315
1312
|
profile?: ContactProfileUpdate | null | undefined;
|
|
1316
|
-
preferences?: ContactPreferences | null |
|
|
1313
|
+
preferences?: ContactPreferences | null | undefined;
|
|
1317
1314
|
status?: "active" | "paused" | "blocked" | "archived" | null | undefined;
|
|
1318
|
-
statusReason?: string | null |
|
|
1319
|
-
externalId?: string | null |
|
|
1315
|
+
statusReason?: string | null | undefined;
|
|
1316
|
+
externalId?: string | null | undefined;
|
|
1320
1317
|
metadata?: JsonObjectWritable | null | undefined;
|
|
1321
1318
|
}, options?: Options<never, ThrowOnError>): RequestResult<ContactsUpdateResponses, ContactsUpdateErrors, ThrowOnError>;
|
|
1322
1319
|
/**
|
|
@@ -1382,7 +1379,7 @@ export declare class Contacts {
|
|
|
1382
1379
|
/**
|
|
1383
1380
|
* Preview a list migration
|
|
1384
1381
|
*
|
|
1385
|
-
* The complete encoded JSON request must not exceed 3000000 bytes. Reads multiple declared export files without changing contacts. Restrictive evidence wins per address. Returns estimated counts and at most 100 diagnostics; processing rechecks current restrictions. Filenames never establish permission.
|
|
1382
|
+
* The complete encoded JSON request must not exceed 3000000 bytes. Reads multiple declared export files without changing contacts. Restrictive evidence wins per address. Returns estimated counts and at most 100 diagnostics; processing rechecks current restrictions. Filenames never establish permission. Missing required columns refuse the file; unknown status values are conflicts and never subscribe a reader.
|
|
1386
1383
|
*/
|
|
1387
1384
|
static planImport<ThrowOnError extends boolean = false>(parameters: {
|
|
1388
1385
|
preset: "beehiiv" | "substack" | "kit" | "mailchimp";
|
|
@@ -1422,7 +1419,7 @@ export declare class Contacts {
|
|
|
1422
1419
|
/**
|
|
1423
1420
|
* Start or resume a list migration
|
|
1424
1421
|
*
|
|
1425
|
-
* The complete encoded JSON request, including new-start metadata, must not exceed 3000000 bytes. Admits a durable import using the preview hash and an
|
|
1422
|
+
* The complete encoded JSON request, including new-start metadata, must not exceed 3000000 bytes. Admits a durable import using the preview hash and an Idempotency-Key header, or resumes the same persisted input at its committed cursor. The header is required for mode:new and optional for mode:resume. Only mode:new supports idempotent replay. Resume uses expectedGeneration and must not be automatically retried; read getImportJob after an ambiguous response. Imports never restore an existing unsubscribe, suppression or bounce. Namespace-scoped credentials cannot create organization-wide suppressions; those rows are conflicts and create no contact. New active contacts are billable and normal contact events apply.
|
|
1426
1423
|
*/
|
|
1427
1424
|
static startImport<ThrowOnError extends boolean = false>(parameters: {
|
|
1428
1425
|
mode: "new";
|
|
@@ -1462,7 +1459,6 @@ export declare class Contacts {
|
|
|
1462
1459
|
];
|
|
1463
1460
|
};
|
|
1464
1461
|
planHash: string;
|
|
1465
|
-
idempotencyKey: string;
|
|
1466
1462
|
} | {
|
|
1467
1463
|
mode: "resume";
|
|
1468
1464
|
jobId: ContactImportJobId;
|
|
@@ -1471,7 +1467,7 @@ export declare class Contacts {
|
|
|
1471
1467
|
/**
|
|
1472
1468
|
* Get list migration progress
|
|
1473
1469
|
*
|
|
1474
|
-
* Returns the visible import job's committed counts, generation, terminal failure and resumability. The job persists across worker restarts and page reloads.
|
|
1470
|
+
* Returns the visible import job's committed counts, generation, terminal failure and resumability. The job persists across worker restarts and page reloads.
|
|
1475
1471
|
*/
|
|
1476
1472
|
static getImportJob<ThrowOnError extends boolean = false>(parameters: {
|
|
1477
1473
|
id: ContactImportJobId;
|
|
@@ -1553,12 +1549,11 @@ export declare class Events {
|
|
|
1553
1549
|
name: string;
|
|
1554
1550
|
properties?: JsonObjectWritable | null | undefined;
|
|
1555
1551
|
occurredAt?: string | null | undefined;
|
|
1556
|
-
idempotencyKey?: string | null | undefined;
|
|
1557
1552
|
}, options?: Options<never, ThrowOnError>): RequestResult<EventsCreateResponses, EventsCreateErrors, ThrowOnError>;
|
|
1558
1553
|
/**
|
|
1559
1554
|
* Record contact events in a batch
|
|
1560
1555
|
*
|
|
1561
|
-
* Validates the full request shape, contact references, and event names before processing. A schema failure rejects the entire batch without writes. Between 1 and 100 valid entries are then processed in input order, with independent indexed results for properties limits, contact resolution, and
|
|
1556
|
+
* Validates the full request shape, contact references, and event names before processing. A schema failure rejects the entire batch without writes. Between 1 and 100 valid entries are then processed in input order, with independent indexed results for properties limits, contact resolution, and domain validation. An optional Idempotency-Key header scopes the batch; retries reuse each entry's original receipt by its position in the batch.
|
|
1562
1557
|
*/
|
|
1563
1558
|
static batch<ThrowOnError extends boolean = false>(parameters: {
|
|
1564
1559
|
events: [CreateEventPayload, ...Array<CreateEventPayload>];
|
|
@@ -1840,14 +1835,14 @@ export declare class ContactGroups {
|
|
|
1840
1835
|
*/
|
|
1841
1836
|
static create<ThrowOnError extends boolean = false>(parameters: {
|
|
1842
1837
|
name: string;
|
|
1843
|
-
description?: string | null |
|
|
1838
|
+
description?: string | null | undefined;
|
|
1844
1839
|
type?: "static" | "dynamic" | "smart" | null | undefined;
|
|
1845
1840
|
criteria?: {
|
|
1846
1841
|
[key: string]: JsonValueWritable | undefined;
|
|
1847
|
-
} | null |
|
|
1842
|
+
} | null | undefined;
|
|
1848
1843
|
color?: "clay" | "sand" | "moss" | "sky" | "plum" | "rose" | null | null | undefined;
|
|
1849
|
-
icon?: string | null |
|
|
1850
|
-
parentGroupId?: ContactGroupId | null |
|
|
1844
|
+
icon?: string | null | undefined;
|
|
1845
|
+
parentGroupId?: ContactGroupId | null | undefined;
|
|
1851
1846
|
isActive?: boolean | null | undefined;
|
|
1852
1847
|
}, options?: Options<never, ThrowOnError>): RequestResult<ContactGroupsCreateResponses, ContactGroupsCreateErrors, ThrowOnError>;
|
|
1853
1848
|
/**
|
|
@@ -1874,14 +1869,14 @@ export declare class ContactGroups {
|
|
|
1874
1869
|
static update<ThrowOnError extends boolean = false>(parameters: {
|
|
1875
1870
|
id: ContactGroupId;
|
|
1876
1871
|
name?: string | null | undefined;
|
|
1877
|
-
description?: string | null |
|
|
1872
|
+
description?: string | null | undefined;
|
|
1878
1873
|
type?: "static" | "dynamic" | "smart" | null | undefined;
|
|
1879
1874
|
criteria?: {
|
|
1880
1875
|
[key: string]: JsonValueWritable | undefined;
|
|
1881
|
-
} | null |
|
|
1876
|
+
} | null | undefined;
|
|
1882
1877
|
color?: "clay" | "sand" | "moss" | "sky" | "plum" | "rose" | null | null | undefined;
|
|
1883
|
-
icon?: string | null |
|
|
1884
|
-
parentGroupId?: ContactGroupId | null |
|
|
1878
|
+
icon?: string | null | undefined;
|
|
1879
|
+
parentGroupId?: ContactGroupId | null | undefined;
|
|
1885
1880
|
isActive?: boolean | null | undefined;
|
|
1886
1881
|
}, options?: Options<never, ThrowOnError>): RequestResult<ContactGroupsUpdateResponses, ContactGroupsUpdateErrors, ThrowOnError>;
|
|
1887
1882
|
/**
|
|
@@ -1959,7 +1954,7 @@ export declare class CustomFields {
|
|
|
1959
1954
|
label: string;
|
|
1960
1955
|
type: "text" | "number" | "boolean" | "date" | "select";
|
|
1961
1956
|
options?: Array<string> | null | undefined;
|
|
1962
|
-
defaultValue?: string | null |
|
|
1957
|
+
defaultValue?: string | null | undefined;
|
|
1963
1958
|
isRequired?: boolean | null | undefined;
|
|
1964
1959
|
sortOrder?: number | null | undefined;
|
|
1965
1960
|
}, options?: Options<never, ThrowOnError>): RequestResult<CustomFieldsCreateResponses, CustomFieldsCreateErrors, ThrowOnError>;
|
|
@@ -1980,7 +1975,7 @@ export declare class CustomFields {
|
|
|
1980
1975
|
id: CustomFieldDefinitionId;
|
|
1981
1976
|
label?: string | null | undefined;
|
|
1982
1977
|
options?: Array<string> | null | undefined;
|
|
1983
|
-
defaultValue?: string | null |
|
|
1978
|
+
defaultValue?: string | null | undefined;
|
|
1984
1979
|
isRequired?: boolean | null | undefined;
|
|
1985
1980
|
sortOrder?: number | null | undefined;
|
|
1986
1981
|
}, options?: Options<never, ThrowOnError>): RequestResult<CustomFieldsUpdateResponses, CustomFieldsUpdateErrors, ThrowOnError>;
|
|
@@ -2000,18 +1995,16 @@ export declare class Topics {
|
|
|
2000
1995
|
/**
|
|
2001
1996
|
* Create a topic
|
|
2002
1997
|
*
|
|
2003
|
-
* Creates a topic in the caller's or requested namespace. The subscription default is opt_out when omitted.
|
|
1998
|
+
* Creates a topic in the caller's or requested namespace. The subscription default is opt_out when omitted. Sending defaults must be compatible with that namespace. An organization holds at most 200 topics.
|
|
2004
1999
|
*/
|
|
2005
2000
|
static create<ThrowOnError extends boolean = false>(parameters: {
|
|
2006
2001
|
name: string;
|
|
2007
|
-
description?: string | null |
|
|
2008
|
-
namespaceId?: NamespaceId | null |
|
|
2002
|
+
description?: string | null | undefined;
|
|
2003
|
+
namespaceId?: NamespaceId | null | undefined;
|
|
2009
2004
|
default?: "opt_out" | "opt_in" | null | undefined;
|
|
2010
|
-
|
|
2011
|
-
|
|
2012
|
-
|
|
2013
|
-
replyMailboxId?: MailboxId | null | null | undefined;
|
|
2014
|
-
templateId?: TemplateId | null | null | undefined;
|
|
2005
|
+
defaultSenderId?: EmailSenderId | null | undefined;
|
|
2006
|
+
replyMailboxId?: MailboxId | null | undefined;
|
|
2007
|
+
templateId?: TemplateId | null | undefined;
|
|
2015
2008
|
}, options?: Options<never, ThrowOnError>): RequestResult<TopicsCreateResponses, TopicsCreateErrors, ThrowOnError>;
|
|
2016
2009
|
/**
|
|
2017
2010
|
* Check topic subscriptions
|
|
@@ -2037,7 +2030,7 @@ export declare class Topics {
|
|
|
2037
2030
|
/**
|
|
2038
2031
|
* Get a topic
|
|
2039
2032
|
*
|
|
2040
|
-
* Returns a visible topic, its
|
|
2033
|
+
* Returns a visible topic, its sending defaults, and explicit subscription counts by channel and status. Individual subscriptions are read through listSubscriptions.
|
|
2041
2034
|
*/
|
|
2042
2035
|
static get<ThrowOnError extends boolean = false>(parameters: {
|
|
2043
2036
|
id: TopicId;
|
|
@@ -2045,18 +2038,16 @@ export declare class Topics {
|
|
|
2045
2038
|
/**
|
|
2046
2039
|
* Update a topic
|
|
2047
2040
|
*
|
|
2048
|
-
* Updates named fields. Changing the default does not change any explicit subscription status. Null clears a
|
|
2041
|
+
* Updates named fields. Changing the default does not change any explicit subscription status. Null clears a sending default.
|
|
2049
2042
|
*/
|
|
2050
2043
|
static update<ThrowOnError extends boolean = false>(parameters: {
|
|
2051
2044
|
id: TopicId;
|
|
2052
2045
|
name?: string | null | undefined;
|
|
2053
|
-
description?: string | null |
|
|
2046
|
+
description?: string | null | undefined;
|
|
2054
2047
|
default?: "opt_out" | "opt_in" | null | undefined;
|
|
2055
|
-
|
|
2056
|
-
|
|
2057
|
-
|
|
2058
|
-
replyMailboxId?: MailboxId | null | null | undefined;
|
|
2059
|
-
templateId?: TemplateId | null | null | undefined;
|
|
2048
|
+
defaultSenderId?: EmailSenderId | null | undefined;
|
|
2049
|
+
replyMailboxId?: MailboxId | null | undefined;
|
|
2050
|
+
templateId?: TemplateId | null | undefined;
|
|
2060
2051
|
}, options?: Options<never, ThrowOnError>): RequestResult<TopicsUpdateResponses, TopicsUpdateErrors, ThrowOnError>;
|
|
2061
2052
|
/**
|
|
2062
2053
|
* Make a topic the default
|
|
@@ -2098,7 +2089,7 @@ export declare class TopicForms {
|
|
|
2098
2089
|
/**
|
|
2099
2090
|
* List topic forms
|
|
2100
2091
|
*
|
|
2101
|
-
* Lists the signup forms belonging to the visible topic.
|
|
2092
|
+
* Lists the signup forms belonging to the visible topic. Forms contain exact HTTPS allowed origins, bounded confirmation and success copy, an optional HTTPS redirect, and a public key for hosted or embedded signup.
|
|
2102
2093
|
*/
|
|
2103
2094
|
static list<ThrowOnError extends boolean = false>(parameters: {
|
|
2104
2095
|
id: TopicId;
|
|
@@ -2106,7 +2097,7 @@ export declare class TopicForms {
|
|
|
2106
2097
|
/**
|
|
2107
2098
|
* Create a topic form
|
|
2108
2099
|
*
|
|
2109
|
-
* Creates a signup form for the visible topic and returns 201. The server generates its opaque public key. allowedOrigins contains exact HTTPS origins; the canonical web origin and current topic link origin are also accepted. Copy is plain text and redirectUrl is HTTPS or null.
|
|
2100
|
+
* Creates a signup form for the visible topic and returns 201. The server generates its opaque public key. allowedOrigins contains exact HTTPS origins; the canonical web origin and current topic link origin are also accepted. Copy is plain text and redirectUrl is HTTPS or null.
|
|
2110
2101
|
*/
|
|
2111
2102
|
static create<ThrowOnError extends boolean = false>(parameters: {
|
|
2112
2103
|
id: TopicId;
|
|
@@ -2120,7 +2111,7 @@ export declare class TopicForms {
|
|
|
2120
2111
|
/**
|
|
2121
2112
|
* Delete a topic form
|
|
2122
2113
|
*
|
|
2123
|
-
* Deletes a form belonging to the visible topic. Its public key immediately stops accepting signups. Existing email confirmation links keep their snapshotted copy and remain valid until expiry.
|
|
2114
|
+
* Deletes a form belonging to the visible topic. Its public key immediately stops accepting signups. Existing email confirmation links keep their snapshotted copy and remain valid until expiry.
|
|
2124
2115
|
*/
|
|
2125
2116
|
static remove<ThrowOnError extends boolean = false>(parameters: {
|
|
2126
2117
|
id: TopicId;
|
|
@@ -2129,7 +2120,7 @@ export declare class TopicForms {
|
|
|
2129
2120
|
/**
|
|
2130
2121
|
* Get a topic form
|
|
2131
2122
|
*
|
|
2132
|
-
* Returns a signup form belonging to the visible topic, including its public key and current link origin. Forms outside the caller namespace or organization return 404.
|
|
2123
|
+
* Returns a signup form belonging to the visible topic, including its public key and current link origin. Forms outside the caller namespace or organization return 404.
|
|
2133
2124
|
*/
|
|
2134
2125
|
static get<ThrowOnError extends boolean = false>(parameters: {
|
|
2135
2126
|
id: TopicId;
|
|
@@ -2138,7 +2129,7 @@ export declare class TopicForms {
|
|
|
2138
2129
|
/**
|
|
2139
2130
|
* Update a topic form
|
|
2140
2131
|
*
|
|
2141
|
-
* Updates only the supplied form fields. allowedOrigins replaces the complete exact-origin allowlist; redirectUrl null clears the success redirect. The public key remains stable.
|
|
2132
|
+
* Updates only the supplied form fields. allowedOrigins replaces the complete exact-origin allowlist; redirectUrl null clears the success redirect. The public key remains stable.
|
|
2142
2133
|
*/
|
|
2143
2134
|
static update<ThrowOnError extends boolean = false>(parameters: {
|
|
2144
2135
|
id: TopicId;
|
|
@@ -2148,162 +2139,211 @@ export declare class TopicForms {
|
|
|
2148
2139
|
confirmationMessage?: string | null | undefined;
|
|
2149
2140
|
successTitle?: string | null | undefined;
|
|
2150
2141
|
successMessage?: string | null | undefined;
|
|
2151
|
-
redirectUrl?: string | null |
|
|
2142
|
+
redirectUrl?: string | null | undefined;
|
|
2152
2143
|
}, options?: Options<never, ThrowOnError>): RequestResult<TopicFormsUpdateResponses, TopicFormsUpdateErrors, ThrowOnError>;
|
|
2153
2144
|
}
|
|
2154
2145
|
export declare class TopicForms2 {
|
|
2155
2146
|
static topicForms: typeof TopicForms;
|
|
2156
2147
|
}
|
|
2157
|
-
export declare class
|
|
2148
|
+
export declare class Issues {
|
|
2158
2149
|
/**
|
|
2159
|
-
* List
|
|
2150
|
+
* List newsletter issues
|
|
2160
2151
|
*
|
|
2161
|
-
* Lists the Markdown issues in the
|
|
2152
|
+
* Lists the Markdown issues in the newsletter's shared Git workspace with each draft's title and its latest campaign send. An uninitialized topic returns null projectId and revision. Requires newsletters and email.
|
|
2162
2153
|
*/
|
|
2163
2154
|
static list<ThrowOnError extends boolean = false>(parameters: {
|
|
2164
|
-
id:
|
|
2165
|
-
}, options?: Options<never, ThrowOnError>): RequestResult<
|
|
2155
|
+
id: NewsletterId;
|
|
2156
|
+
}, options?: Options<never, ThrowOnError>): RequestResult<NewsletterIssuesListResponses, NewsletterIssuesListErrors, ThrowOnError>;
|
|
2166
2157
|
/**
|
|
2167
|
-
* Update a
|
|
2158
|
+
* Update a newsletter issue
|
|
2168
2159
|
*
|
|
2169
|
-
* Replaces the complete Markdown file under a revision fence. Save separately to create a Git commit. Requires
|
|
2160
|
+
* Replaces the complete Markdown file under a revision fence. Save separately to create a Git commit. Requires newsletters and email.
|
|
2170
2161
|
*/
|
|
2171
2162
|
static update<ThrowOnError extends boolean = false>(parameters: {
|
|
2172
|
-
id:
|
|
2163
|
+
id: NewsletterId;
|
|
2173
2164
|
path: string;
|
|
2174
2165
|
content: string;
|
|
2175
|
-
idempotencyKey: string;
|
|
2176
2166
|
expectedRevision: string;
|
|
2177
|
-
}, options?: Options<never, ThrowOnError>): RequestResult<
|
|
2167
|
+
}, options?: Options<never, ThrowOnError>): RequestResult<NewsletterIssuesUpdateResponses, NewsletterIssuesUpdateErrors, ThrowOnError>;
|
|
2178
2168
|
/**
|
|
2179
|
-
* Create a
|
|
2169
|
+
* Create a newsletter issue
|
|
2180
2170
|
*
|
|
2181
|
-
* Creates an unsaved Markdown file. The first request provisions the
|
|
2171
|
+
* Creates an unsaved Markdown file. The first request provisions the newsletter's project and layout; omit expectedRevision only for that first request or its retry. Further creates require the current revision. No template entry is registered. Requires newsletters and email.
|
|
2182
2172
|
*/
|
|
2183
2173
|
static create<ThrowOnError extends boolean = false>(parameters: {
|
|
2184
|
-
id:
|
|
2174
|
+
id: NewsletterId;
|
|
2185
2175
|
path: string;
|
|
2186
2176
|
content: string;
|
|
2187
|
-
idempotencyKey: string;
|
|
2188
2177
|
expectedRevision?: string | null | undefined;
|
|
2189
|
-
}, options?: Options<never, ThrowOnError>): RequestResult<
|
|
2178
|
+
}, options?: Options<never, ThrowOnError>): RequestResult<NewsletterIssuesCreateResponses, NewsletterIssuesCreateErrors, ThrowOnError>;
|
|
2190
2179
|
/**
|
|
2191
|
-
* Open the
|
|
2180
|
+
* Open the newsletter issue workspace
|
|
2192
2181
|
*
|
|
2193
|
-
* Returns the existing project workspace and pulls saved Git changes. Does not create a repository. Requires
|
|
2182
|
+
* Returns the existing project workspace and pulls saved Git changes. Does not create a repository. Requires newsletters and email.
|
|
2194
2183
|
*/
|
|
2195
2184
|
static open<ThrowOnError extends boolean = false>(parameters: {
|
|
2196
|
-
id:
|
|
2197
|
-
}, options?: Options<never, ThrowOnError>): RequestResult<
|
|
2185
|
+
id: NewsletterId;
|
|
2186
|
+
}, options?: Options<never, ThrowOnError>): RequestResult<NewsletterIssuesOpenResponses, NewsletterIssuesOpenErrors, ThrowOnError>;
|
|
2198
2187
|
/**
|
|
2199
|
-
* Read a
|
|
2188
|
+
* Read a newsletter issue
|
|
2200
2189
|
*
|
|
2201
|
-
* Reads one issues*.md file at the requested workspace revision. Requires
|
|
2190
|
+
* Reads one issues*.md file at the requested workspace revision. Requires newsletters and email.
|
|
2202
2191
|
*/
|
|
2203
2192
|
static get<ThrowOnError extends boolean = false>(parameters: {
|
|
2204
|
-
id:
|
|
2193
|
+
id: NewsletterId;
|
|
2205
2194
|
path: string;
|
|
2206
2195
|
expectedRevision: string;
|
|
2207
|
-
}, options?: Options<never, ThrowOnError>): RequestResult<
|
|
2196
|
+
}, options?: Options<never, ThrowOnError>): RequestResult<NewsletterIssuesGetResponses, NewsletterIssuesGetErrors, ThrowOnError>;
|
|
2208
2197
|
/**
|
|
2209
|
-
* Remove a
|
|
2198
|
+
* Remove a newsletter issue
|
|
2210
2199
|
*
|
|
2211
|
-
* Removes one Markdown file from the draft under a revision fence. The project default issue must remain. Saved commits remain readable. Requires
|
|
2200
|
+
* Removes one Markdown file from the draft under a revision fence. The project default issue must remain. Saved commits remain readable. Requires newsletters and email.
|
|
2212
2201
|
*/
|
|
2213
2202
|
static remove<ThrowOnError extends boolean = false>(parameters: {
|
|
2214
|
-
id:
|
|
2203
|
+
id: NewsletterId;
|
|
2215
2204
|
path: string;
|
|
2216
|
-
idempotencyKey: string;
|
|
2217
2205
|
expectedRevision: string;
|
|
2218
|
-
}, options?: Options<never, ThrowOnError>): RequestResult<
|
|
2206
|
+
}, options?: Options<never, ThrowOnError>): RequestResult<NewsletterIssuesRemoveResponses, NewsletterIssuesRemoveErrors, ThrowOnError>;
|
|
2219
2207
|
/**
|
|
2220
|
-
* Save
|
|
2208
|
+
* Save newsletter issues
|
|
2221
2209
|
*
|
|
2222
|
-
* Validates the project and saves its draft as a Git commit with revision and branch-head fences. Issue sends pin the resulting commit and issue path. Requires
|
|
2210
|
+
* Validates the project and saves its draft as a Git commit with revision and branch-head fences. Issue sends pin the resulting commit and issue path. Requires newsletters and email.
|
|
2223
2211
|
*/
|
|
2224
2212
|
static save<ThrowOnError extends boolean = false>(parameters: {
|
|
2225
|
-
id:
|
|
2213
|
+
id: NewsletterId;
|
|
2226
2214
|
expectedRevision: string;
|
|
2227
2215
|
expectedHead: string;
|
|
2228
2216
|
message: string;
|
|
2229
|
-
|
|
2230
|
-
}, options?: Options<never, ThrowOnError>): RequestResult<TopicIssuesSaveResponses, TopicIssuesSaveErrors, ThrowOnError>;
|
|
2217
|
+
}, options?: Options<never, ThrowOnError>): RequestResult<NewsletterIssuesSaveResponses, NewsletterIssuesSaveErrors, ThrowOnError>;
|
|
2231
2218
|
/**
|
|
2232
|
-
* Check a
|
|
2219
|
+
* Check a newsletter issue
|
|
2233
2220
|
*
|
|
2234
|
-
* Compiles the issue in its layout at the requested revision and returns diagnostics and declared fixtures. Requires
|
|
2221
|
+
* Compiles the issue in its layout at the requested revision and returns diagnostics and declared fixtures. Requires newsletters and email.
|
|
2235
2222
|
*/
|
|
2236
2223
|
static check<ThrowOnError extends boolean = false>(parameters: {
|
|
2237
|
-
id:
|
|
2224
|
+
id: NewsletterId;
|
|
2238
2225
|
path: string;
|
|
2239
2226
|
expectedRevision: string;
|
|
2240
|
-
}, options?: Options<never, ThrowOnError>): RequestResult<
|
|
2227
|
+
}, options?: Options<never, ThrowOnError>): RequestResult<NewsletterIssuesCheckResponses, NewsletterIssuesCheckErrors, ThrowOnError>;
|
|
2241
2228
|
/**
|
|
2242
|
-
* Render a
|
|
2229
|
+
* Render a newsletter issue fixture
|
|
2243
2230
|
*
|
|
2244
|
-
* Renders a fixture declared by the layout to email or web at the requested revision. The web render is the publication page readers get, with the subscribe wall position marked. Requires
|
|
2231
|
+
* Renders a fixture declared by the layout to email or web at the requested revision. The web render is the publication page readers get, with the subscribe wall position marked. Requires newsletters and email.
|
|
2245
2232
|
*/
|
|
2246
2233
|
static render<ThrowOnError extends boolean = false>(parameters: {
|
|
2247
|
-
id:
|
|
2234
|
+
id: NewsletterId;
|
|
2248
2235
|
path: string;
|
|
2249
2236
|
expectedRevision: string;
|
|
2250
2237
|
fixture: string;
|
|
2251
2238
|
target: "email" | "web";
|
|
2252
|
-
}, options?: Options<never, ThrowOnError>): RequestResult<
|
|
2239
|
+
}, options?: Options<never, ThrowOnError>): RequestResult<NewsletterIssuesRenderResponses, NewsletterIssuesRenderErrors, ThrowOnError>;
|
|
2253
2240
|
/**
|
|
2254
|
-
* Read the
|
|
2241
|
+
* Read the newsletter issue head
|
|
2255
2242
|
*
|
|
2256
|
-
* Reads the current workspace revision and repository branch head. Requires
|
|
2243
|
+
* Reads the current workspace revision and repository branch head. Requires newsletters and email.
|
|
2257
2244
|
*/
|
|
2258
2245
|
static head<ThrowOnError extends boolean = false>(parameters: {
|
|
2259
|
-
id:
|
|
2260
|
-
}, options?: Options<never, ThrowOnError>): RequestResult<
|
|
2246
|
+
id: NewsletterId;
|
|
2247
|
+
}, options?: Options<never, ThrowOnError>): RequestResult<NewsletterIssuesHeadResponses, NewsletterIssuesHeadErrors, ThrowOnError>;
|
|
2261
2248
|
/**
|
|
2262
|
-
* Read
|
|
2249
|
+
* Read newsletter issue history
|
|
2263
2250
|
*
|
|
2264
|
-
* Lists saved commits in the topic repository, newest first. Requires
|
|
2251
|
+
* Lists saved commits in the topic repository, newest first. Requires newsletters and email.
|
|
2265
2252
|
*/
|
|
2266
2253
|
static history<ThrowOnError extends boolean = false>(parameters: {
|
|
2267
|
-
id:
|
|
2254
|
+
id: NewsletterId;
|
|
2268
2255
|
limit?: number | null | undefined;
|
|
2269
|
-
}, options?: Options<never, ThrowOnError>): RequestResult<
|
|
2270
|
-
}
|
|
2271
|
-
export declare class TopicIssues2 {
|
|
2272
|
-
static topicIssues: typeof TopicIssues;
|
|
2256
|
+
}, options?: Options<never, ThrowOnError>): RequestResult<NewsletterIssuesHistoryResponses, NewsletterIssuesHistoryErrors, ThrowOnError>;
|
|
2273
2257
|
}
|
|
2274
|
-
export declare class
|
|
2258
|
+
export declare class Domains {
|
|
2259
|
+
/**
|
|
2260
|
+
* List publication domains
|
|
2261
|
+
*
|
|
2262
|
+
* Returns this newsletter's domains in hostname order with their latest recorded verification status. Removed domains are omitted. Pass nextCursor as cursor for the next page; it is null on the last page. Get a domain to recheck its current DNS and certificate status. Requires newsletters.
|
|
2263
|
+
*/
|
|
2264
|
+
static list<ThrowOnError extends boolean = false>(parameters: {
|
|
2265
|
+
id: NewsletterId;
|
|
2266
|
+
limit?: number | null | undefined;
|
|
2267
|
+
cursor?: PublicationDomainCursor | null | undefined;
|
|
2268
|
+
}, options?: Options<never, ThrowOnError>): RequestResult<NewsletterDomainsListResponses, NewsletterDomainsListErrors, ThrowOnError>;
|
|
2275
2269
|
/**
|
|
2276
2270
|
* Add a publication domain
|
|
2277
2271
|
*
|
|
2278
|
-
* Claims a hostname for an opt-in topic with its public archive enabled and published. Requires
|
|
2272
|
+
* Claims a hostname for an opt-in topic with its public archive enabled and published. Requires newsletters. Pass the same Idempotency-Key header when retrying. The hostname serves no publication until Cloudflare confirms both ownership and SSL are active.
|
|
2279
2273
|
*/
|
|
2280
2274
|
static add<ThrowOnError extends boolean = false>(parameters: {
|
|
2281
|
-
id:
|
|
2275
|
+
id: NewsletterId;
|
|
2282
2276
|
hostname: string;
|
|
2283
|
-
|
|
2284
|
-
}, options?: Options<never, ThrowOnError>): RequestResult<TopicPublicationDomainsAddResponses, TopicPublicationDomainsAddErrors, ThrowOnError>;
|
|
2277
|
+
}, options?: Options<never, ThrowOnError>): RequestResult<NewsletterDomainsAddResponses, NewsletterDomainsAddErrors, ThrowOnError>;
|
|
2285
2278
|
/**
|
|
2286
2279
|
* Remove a publication domain
|
|
2287
2280
|
*
|
|
2288
|
-
* Revokes publication lookup before removing the Cloudflare hostname.
|
|
2281
|
+
* Revokes publication lookup before removing the Cloudflare hostname. Pass the same Idempotency-Key header on retries. Pending provider teardown is reported as removing. Removal remains available after the topic archive is disabled.
|
|
2289
2282
|
*/
|
|
2290
2283
|
static remove<ThrowOnError extends boolean = false>(parameters: {
|
|
2291
|
-
id:
|
|
2284
|
+
id: NewsletterId;
|
|
2292
2285
|
hostname: string;
|
|
2293
|
-
|
|
2294
|
-
}, options?: Options<never, ThrowOnError>): RequestResult<TopicPublicationDomainsRemoveResponses, TopicPublicationDomainsRemoveErrors, ThrowOnError>;
|
|
2286
|
+
}, options?: Options<never, ThrowOnError>): RequestResult<NewsletterDomainsRemoveResponses, NewsletterDomainsRemoveErrors, ThrowOnError>;
|
|
2295
2287
|
/**
|
|
2296
2288
|
* Get a publication domain
|
|
2297
2289
|
*
|
|
2298
|
-
* Rechecks ownership and certificate status, returning DNS verification records. Domains outside this
|
|
2290
|
+
* Rechecks ownership and certificate status, returning DNS verification records. Domains outside this newsletter's organization or namespace return 404.
|
|
2299
2291
|
*/
|
|
2300
2292
|
static get<ThrowOnError extends boolean = false>(parameters: {
|
|
2301
|
-
id:
|
|
2293
|
+
id: NewsletterId;
|
|
2302
2294
|
hostname: string;
|
|
2303
|
-
}, options?: Options<never, ThrowOnError>): RequestResult<
|
|
2295
|
+
}, options?: Options<never, ThrowOnError>): RequestResult<NewsletterDomainsGetResponses, NewsletterDomainsGetErrors, ThrowOnError>;
|
|
2304
2296
|
}
|
|
2305
|
-
export declare class
|
|
2306
|
-
|
|
2297
|
+
export declare class Newsletters {
|
|
2298
|
+
/**
|
|
2299
|
+
* List newsletters
|
|
2300
|
+
*
|
|
2301
|
+
* List visible newsletters and their consent topics and publishing settings. The topic namespace bounds access.
|
|
2302
|
+
*/
|
|
2303
|
+
static list<ThrowOnError extends boolean = false>(parameters?: {
|
|
2304
|
+
namespaceId?: NamespaceId | null | undefined;
|
|
2305
|
+
}, options?: Options<never, ThrowOnError>): RequestResult<NewslettersListResponses, NewslettersListErrors, ThrowOnError>;
|
|
2306
|
+
/**
|
|
2307
|
+
* Create a newsletter
|
|
2308
|
+
*
|
|
2309
|
+
* Creates an opt-in topic, or adopts topicId. Name is required when creating a topic. A topic belongs to at most one newsletter. Sending defaults and subscriptions belong to the topic.
|
|
2310
|
+
*/
|
|
2311
|
+
static create<ThrowOnError extends boolean = false>(parameters?: {
|
|
2312
|
+
topicId?: TopicId | null | undefined;
|
|
2313
|
+
name?: string | null | undefined;
|
|
2314
|
+
description?: string | null | undefined;
|
|
2315
|
+
namespaceId?: NamespaceId | null | undefined;
|
|
2316
|
+
archiveEnabled?: boolean | null | undefined;
|
|
2317
|
+
publicationSlug?: string | null | undefined;
|
|
2318
|
+
}, options?: Options<never, ThrowOnError>): RequestResult<NewslettersCreateResponses, NewslettersCreateErrors, ThrowOnError>;
|
|
2319
|
+
/**
|
|
2320
|
+
* Delete a newsletter
|
|
2321
|
+
*
|
|
2322
|
+
* Withdraws the public archive and removes the issue repository. The consent topic and its subscriptions remain.
|
|
2323
|
+
*/
|
|
2324
|
+
static remove<ThrowOnError extends boolean = false>(parameters: {
|
|
2325
|
+
id: NewsletterId;
|
|
2326
|
+
}, options?: Options<never, ThrowOnError>): RequestResult<NewslettersRemoveResponses, NewslettersRemoveErrors, ThrowOnError>;
|
|
2327
|
+
/**
|
|
2328
|
+
* Get a newsletter
|
|
2329
|
+
*
|
|
2330
|
+
* Read one newsletter, including its consent topic ID, issue project, archive status, and hosted slug.
|
|
2331
|
+
*/
|
|
2332
|
+
static get<ThrowOnError extends boolean = false>(parameters: {
|
|
2333
|
+
id: NewsletterId;
|
|
2334
|
+
}, options?: Options<never, ThrowOnError>): RequestResult<NewslettersGetResponses, NewslettersGetErrors, ThrowOnError>;
|
|
2335
|
+
/**
|
|
2336
|
+
* Update a newsletter
|
|
2337
|
+
*
|
|
2338
|
+
* Update named publishing settings. An enabled archive requires an opt-in topic and a hosted slug. Null clears the slug when the archive is disabled.
|
|
2339
|
+
*/
|
|
2340
|
+
static update<ThrowOnError extends boolean = false>(parameters: {
|
|
2341
|
+
id: NewsletterId;
|
|
2342
|
+
archiveEnabled?: boolean | null | undefined;
|
|
2343
|
+
publicationSlug?: string | null | undefined;
|
|
2344
|
+
}, options?: Options<never, ThrowOnError>): RequestResult<NewslettersUpdateResponses, NewslettersUpdateErrors, ThrowOnError>;
|
|
2345
|
+
static issues: typeof Issues;
|
|
2346
|
+
static domains: typeof Domains;
|
|
2307
2347
|
}
|
|
2308
2348
|
export declare class Analytics {
|
|
2309
2349
|
/**
|
|
@@ -2399,12 +2439,11 @@ export declare class Templates {
|
|
|
2399
2439
|
slug?: string | null | undefined;
|
|
2400
2440
|
galleryTemplateId?: string | null | undefined;
|
|
2401
2441
|
useBrand?: boolean | null | undefined;
|
|
2402
|
-
description?: string | null |
|
|
2403
|
-
category?: "transactional" | "marketing" | "support" | "notification" | "verification" | "reminder" | "alert" | null |
|
|
2442
|
+
description?: string | null | undefined;
|
|
2443
|
+
category?: "transactional" | "marketing" | "support" | "notification" | "verification" | "reminder" | "alert" | null | undefined;
|
|
2404
2444
|
isActive?: boolean | null | undefined;
|
|
2405
2445
|
namespaceId?: NamespaceId | null | undefined;
|
|
2406
2446
|
shared?: boolean | null | undefined;
|
|
2407
|
-
idempotencyKey: string;
|
|
2408
2447
|
}, options?: Options<never, ThrowOnError>): RequestResult<TemplatesCreateResponses, TemplatesCreateErrors, ThrowOnError>;
|
|
2409
2448
|
/**
|
|
2410
2449
|
* List template families
|
|
@@ -2502,14 +2541,14 @@ export declare class Templates {
|
|
|
2502
2541
|
name?: string | null | undefined;
|
|
2503
2542
|
slug?: string | null | undefined;
|
|
2504
2543
|
entryPath?: string | null | undefined;
|
|
2505
|
-
description?: string | null |
|
|
2506
|
-
category?: "transactional" | "marketing" | "support" | "notification" | "verification" | "reminder" | "alert" | null |
|
|
2507
|
-
fromDefault?: TemplateFromDefault | null |
|
|
2508
|
-
replyToDefault?: Array<string> | null |
|
|
2544
|
+
description?: string | null | undefined;
|
|
2545
|
+
category?: "transactional" | "marketing" | "support" | "notification" | "verification" | "reminder" | "alert" | null | undefined;
|
|
2546
|
+
fromDefault?: TemplateFromDefault | null | undefined;
|
|
2547
|
+
replyToDefault?: Array<string> | null | undefined;
|
|
2509
2548
|
/**
|
|
2510
2549
|
* Engagement tracking for sends of this template: `opens` and `clicks`, each inherited from the domain and organization defaults when omitted. A send request's own `tracking` still wins. Null clears the template's default.
|
|
2511
2550
|
*/
|
|
2512
|
-
trackingDefault?: TemplateTrackingDefault | null |
|
|
2551
|
+
trackingDefault?: TemplateTrackingDefault | null | undefined;
|
|
2513
2552
|
isActive?: boolean | null | undefined;
|
|
2514
2553
|
/**
|
|
2515
2554
|
* Share the template's project with every namespace, or stop sharing it. Applies to every entry in the project. Only an organization-level project is shared.
|
|
@@ -2526,7 +2565,6 @@ export declare class Templates {
|
|
|
2526
2565
|
url: string;
|
|
2527
2566
|
name?: string | null | undefined;
|
|
2528
2567
|
namespaceId?: NamespaceId | null | undefined;
|
|
2529
|
-
idempotencyKey: string;
|
|
2530
2568
|
}, options?: Options<never, ThrowOnError>): RequestResult<TemplatesCreateFromWebsiteResponses, TemplatesCreateFromWebsiteErrors, ThrowOnError>;
|
|
2531
2569
|
/**
|
|
2532
2570
|
* Add a template entry
|
|
@@ -2538,8 +2576,8 @@ export declare class Templates {
|
|
|
2538
2576
|
entryPath: string;
|
|
2539
2577
|
name: string;
|
|
2540
2578
|
slug: string;
|
|
2541
|
-
description?: string | null |
|
|
2542
|
-
category?: "transactional" | "marketing" | "support" | "notification" | "verification" | "reminder" | "alert" | null |
|
|
2579
|
+
description?: string | null | undefined;
|
|
2580
|
+
category?: "transactional" | "marketing" | "support" | "notification" | "verification" | "reminder" | "alert" | null | undefined;
|
|
2543
2581
|
}, options?: Options<never, ThrowOnError>): RequestResult<TemplatesAddEntryResponses, TemplatesAddEntryErrors, ThrowOnError>;
|
|
2544
2582
|
/**
|
|
2545
2583
|
* Patch template project files
|
|
@@ -2553,7 +2591,6 @@ export declare class Templates {
|
|
|
2553
2591
|
path: string;
|
|
2554
2592
|
content: string | null;
|
|
2555
2593
|
}>;
|
|
2556
|
-
idempotencyKey: string;
|
|
2557
2594
|
}, options?: Options<never, ThrowOnError>): RequestResult<TemplatesPatchWorkspaceResponses, TemplatesPatchWorkspaceErrors, ThrowOnError>;
|
|
2558
2595
|
/**
|
|
2559
2596
|
* Open a template project workspace
|
|
@@ -2583,7 +2620,6 @@ export declare class Templates {
|
|
|
2583
2620
|
path: string;
|
|
2584
2621
|
contentBase64: string;
|
|
2585
2622
|
replace: boolean;
|
|
2586
|
-
idempotencyKey: string;
|
|
2587
2623
|
}, options?: Options<never, ThrowOnError>): RequestResult<TemplatesPutWorkspaceAssetResponses, TemplatesPutWorkspaceAssetErrors, ThrowOnError>;
|
|
2588
2624
|
/**
|
|
2589
2625
|
* Resolve a template workspace conflict
|
|
@@ -2597,7 +2633,6 @@ export declare class Templates {
|
|
|
2597
2633
|
resolution: "draft" | "main" | {
|
|
2598
2634
|
content: string | null;
|
|
2599
2635
|
};
|
|
2600
|
-
idempotencyKey: string;
|
|
2601
2636
|
}, options?: Options<never, ThrowOnError>): RequestResult<TemplatesResolveWorkspaceConflictResponses, TemplatesResolveWorkspaceConflictErrors, ThrowOnError>;
|
|
2602
2637
|
/**
|
|
2603
2638
|
* Save a template project workspace
|
|
@@ -2609,7 +2644,6 @@ export declare class Templates {
|
|
|
2609
2644
|
expectedRevision: string;
|
|
2610
2645
|
expectedHead: string;
|
|
2611
2646
|
message: string;
|
|
2612
|
-
idempotencyKey: string;
|
|
2613
2647
|
}, options?: Options<never, ThrowOnError>): RequestResult<TemplatesSaveWorkspaceResponses, TemplatesSaveWorkspaceErrors, ThrowOnError>;
|
|
2614
2648
|
/**
|
|
2615
2649
|
* Stage a historical template project tree
|
|
@@ -2620,7 +2654,6 @@ export declare class Templates {
|
|
|
2620
2654
|
id: TemplateId;
|
|
2621
2655
|
expectedRevision: string;
|
|
2622
2656
|
commit: string;
|
|
2623
|
-
idempotencyKey: string;
|
|
2624
2657
|
}, options?: Options<never, ThrowOnError>): RequestResult<TemplatesRestoreWorkspaceResponses, TemplatesRestoreWorkspaceErrors, ThrowOnError>;
|
|
2625
2658
|
/**
|
|
2626
2659
|
* List template project commit history
|
|
@@ -2739,7 +2772,6 @@ export declare class Templates {
|
|
|
2739
2772
|
contentBase64: string;
|
|
2740
2773
|
}>;
|
|
2741
2774
|
};
|
|
2742
|
-
idempotencyKey: string;
|
|
2743
2775
|
}, options?: Options<never, ThrowOnError>): RequestResult<TemplatesAttachWorkspaceResourceResponses, TemplatesAttachWorkspaceResourceErrors, ThrowOnError>;
|
|
2744
2776
|
/**
|
|
2745
2777
|
* Remove a template workspace resource
|
|
@@ -2750,7 +2782,6 @@ export declare class Templates {
|
|
|
2750
2782
|
id: TemplateId;
|
|
2751
2783
|
resourceId: string;
|
|
2752
2784
|
expectedRevision: string;
|
|
2753
|
-
idempotencyKey: string;
|
|
2754
2785
|
}, options?: Options<never, ThrowOnError>): RequestResult<TemplatesRemoveWorkspaceResourceResponses, TemplatesRemoveWorkspaceResourceErrors, ThrowOnError>;
|
|
2755
2786
|
}
|
|
2756
2787
|
export declare class Templates2 {
|
|
@@ -2872,9 +2903,9 @@ export declare class Webhooks {
|
|
|
2872
2903
|
name?: string | null | undefined;
|
|
2873
2904
|
url?: string | null | undefined;
|
|
2874
2905
|
eventTypes?: Array<"message.sent" | "message.delivered" | "message.read" | "message.failed" | "message.bounced" | "message.complained" | "message.received" | "message.opened" | "message.clicked" | "contact.created" | "contact.updated" | "contact.deleted" | "contact.subscribed" | "contact.unsubscribed" | "contact.resubscribed" | "contact.consent_changed" | "conversation.created" | "conversation.updated" | "conversation.archived" | "webhook.created" | "webhook.updated" | "webhook.deleted" | "webhook.test" | "domain.updated" | "domain.warming.updated" | "template.registration.updated" | "flow.registration.updated" | "whatsapp.number.connected" | "mailbox.message.received" | "mailbox.message.sent" | "mailbox.action.pending_approval" | "mailbox.action.resolved" | "mailbox.message.quarantined" | "mailbox.message.released" | "mailbox.message.discarded" | "mailbox.message.delivered" | "mailbox.message.read" | "mailbox.message.failed" | "journey.webhook"> | null | undefined;
|
|
2875
|
-
channels?: Array<"email"> | null |
|
|
2876
|
-
mailboxIds?: [MailboxId, ...Array<MailboxId>] | null |
|
|
2877
|
-
namespaceId?: NamespaceId | null |
|
|
2906
|
+
channels?: Array<"email"> | null | undefined;
|
|
2907
|
+
mailboxIds?: [MailboxId, ...Array<MailboxId>] | null | undefined;
|
|
2908
|
+
namespaceId?: NamespaceId | null | undefined;
|
|
2878
2909
|
headers?: {
|
|
2879
2910
|
[key: string]: string | undefined;
|
|
2880
2911
|
} | null | undefined;
|
|
@@ -2964,14 +2995,14 @@ export declare class Organizations {
|
|
|
2964
2995
|
name?: string | null | undefined;
|
|
2965
2996
|
slug?: string | null | undefined;
|
|
2966
2997
|
avatarUrl?: string | null | null | undefined;
|
|
2967
|
-
defaultRegion?: PhoneRegion | null |
|
|
2998
|
+
defaultRegion?: PhoneRegion | null | undefined;
|
|
2968
2999
|
timezone?: IanaTimezone | null | undefined;
|
|
2969
3000
|
isActive?: boolean | null | undefined;
|
|
2970
3001
|
metadata?: {
|
|
2971
3002
|
[key: string]: JsonValueWritable | undefined;
|
|
2972
3003
|
} | null | undefined;
|
|
2973
|
-
replyToDefault?: Array<string> | null |
|
|
2974
|
-
emailFooterEnabledDefault?: boolean | null |
|
|
3004
|
+
replyToDefault?: Array<string> | null | undefined;
|
|
3005
|
+
emailFooterEnabledDefault?: boolean | null | undefined;
|
|
2975
3006
|
}, options?: Options<never, ThrowOnError>): RequestResult<OrganizationsUpdateResponses, OrganizationsUpdateErrors, ThrowOnError>;
|
|
2976
3007
|
/**
|
|
2977
3008
|
* Get the current account profile
|
|
@@ -3006,7 +3037,6 @@ export declare class Organizations {
|
|
|
3006
3037
|
* Starts an owner-authorized organization deletion operation, confirming the organization name in the request. Repeating the same request with the same Idempotency-Key returns the existing organization-scoped operation.
|
|
3007
3038
|
*/
|
|
3008
3039
|
static delete<ThrowOnError extends boolean = false>(parameters: {
|
|
3009
|
-
"idempotency-key": string;
|
|
3010
3040
|
confirmationName: string;
|
|
3011
3041
|
}, options?: Options<never, ThrowOnError>): RequestResult<OrganizationsDeleteResponses, OrganizationsDeleteErrors, ThrowOnError>;
|
|
3012
3042
|
}
|
|
@@ -3199,7 +3229,7 @@ export declare class Mailboxes {
|
|
|
3199
3229
|
static updateEndpoint<ThrowOnError extends boolean = false>(parameters: {
|
|
3200
3230
|
id: MailboxId;
|
|
3201
3231
|
endpointId: MailboxEndpointId;
|
|
3202
|
-
displayName?: string | null |
|
|
3232
|
+
displayName?: string | null | undefined;
|
|
3203
3233
|
default?: true | null | undefined;
|
|
3204
3234
|
}, options?: Options<never, ThrowOnError>): RequestResult<MailboxesUpdateEndpointResponses, MailboxesUpdateEndpointErrors, ThrowOnError>;
|
|
3205
3235
|
/**
|
|
@@ -3317,7 +3347,7 @@ export declare class Mailboxes {
|
|
|
3317
3347
|
policyId: MailboxPolicyId;
|
|
3318
3348
|
name?: string | null | undefined;
|
|
3319
3349
|
outcome?: MailboxPolicyOutcomeKind | null | undefined;
|
|
3320
|
-
reason?: string | null |
|
|
3350
|
+
reason?: string | null | undefined;
|
|
3321
3351
|
enabled?: boolean | null | undefined;
|
|
3322
3352
|
}, options?: Options<never, ThrowOnError>): RequestResult<MailboxesUpdatePolicyResponses, MailboxesUpdatePolicyErrors, ThrowOnError>;
|
|
3323
3353
|
/**
|
|
@@ -3345,7 +3375,7 @@ export declare class Mailboxes {
|
|
|
3345
3375
|
id: MailboxId;
|
|
3346
3376
|
slug: string;
|
|
3347
3377
|
displayName: string;
|
|
3348
|
-
color?: "billing" | "domain" | "agent" | "routing" | "important" | "neutral" | null |
|
|
3378
|
+
color?: "billing" | "domain" | "agent" | "routing" | "important" | "neutral" | null | undefined;
|
|
3349
3379
|
}, options?: Options<never, ThrowOnError>): RequestResult<MailboxesCreateLabelResponses, MailboxesCreateLabelErrors, ThrowOnError>;
|
|
3350
3380
|
/**
|
|
3351
3381
|
* Delete a mailbox label
|
|
@@ -3365,7 +3395,7 @@ export declare class Mailboxes {
|
|
|
3365
3395
|
id: MailboxId;
|
|
3366
3396
|
labelId: MailboxLabelId;
|
|
3367
3397
|
displayName?: string | null | undefined;
|
|
3368
|
-
color?: "billing" | "domain" | "agent" | "routing" | "important" | "neutral" | null |
|
|
3398
|
+
color?: "billing" | "domain" | "agent" | "routing" | "important" | "neutral" | null | undefined;
|
|
3369
3399
|
}, options?: Options<never, ThrowOnError>): RequestResult<MailboxesUpdateLabelResponses, MailboxesUpdateLabelErrors, ThrowOnError>;
|
|
3370
3400
|
/**
|
|
3371
3401
|
* List threads in a mailbox
|
|
@@ -3406,7 +3436,7 @@ export declare class Mailboxes {
|
|
|
3406
3436
|
priority?: MailboxThreadPriority | null | undefined;
|
|
3407
3437
|
read?: boolean | null | undefined;
|
|
3408
3438
|
starred?: boolean | null | undefined;
|
|
3409
|
-
snoozedUntil?: string | null |
|
|
3439
|
+
snoozedUntil?: string | null | undefined;
|
|
3410
3440
|
}, options?: Options<never, ThrowOnError>): RequestResult<MailboxesUpdateThreadResponses, MailboxesUpdateThreadErrors, ThrowOnError>;
|
|
3411
3441
|
/**
|
|
3412
3442
|
* Remove thread labels
|
|
@@ -3470,7 +3500,7 @@ export declare class Mailboxes {
|
|
|
3470
3500
|
id: MailboxId;
|
|
3471
3501
|
threadId: MailboxThreadId;
|
|
3472
3502
|
body: string;
|
|
3473
|
-
color?: string | null |
|
|
3503
|
+
color?: string | null | undefined;
|
|
3474
3504
|
pinned?: boolean | null | undefined;
|
|
3475
3505
|
}, options?: Options<never, ThrowOnError>): RequestResult<MailboxesCreateNoteResponses, MailboxesCreateNoteErrors, ThrowOnError>;
|
|
3476
3506
|
/**
|
|
@@ -3493,7 +3523,7 @@ export declare class Mailboxes {
|
|
|
3493
3523
|
threadId: MailboxThreadId;
|
|
3494
3524
|
noteId: MailboxNoteId;
|
|
3495
3525
|
body?: string | null | undefined;
|
|
3496
|
-
color?: string | null |
|
|
3526
|
+
color?: string | null | undefined;
|
|
3497
3527
|
pinned?: boolean | null | undefined;
|
|
3498
3528
|
}, options?: Options<never, ThrowOnError>): RequestResult<MailboxesUpdateNoteResponses, MailboxesUpdateNoteErrors, ThrowOnError>;
|
|
3499
3529
|
/**
|
|
@@ -3502,7 +3532,6 @@ export declare class Mailboxes {
|
|
|
3502
3532
|
* Starts a new conversation from the mailbox's default endpoint on the channel the body names (email when omitted); a mailbox with no endpoint on that channel is refused (422). A message to a number joins the mailbox's thread with that number when it has one. Records a send action and returns 202 with its current receipt and a Location for action status. An installation, grant, or policy may require approval; otherwise the send is queued. Observe the same action through acceptance and mailbox completion. A policy refusal returns 403 with the recorded receipt.
|
|
3503
3533
|
*/
|
|
3504
3534
|
static sendMessage<ThrowOnError extends boolean = false>(parameters: {
|
|
3505
|
-
"idempotency-key"?: string | null | undefined;
|
|
3506
3535
|
id: MailboxId;
|
|
3507
3536
|
channel?: "email" | null | undefined;
|
|
3508
3537
|
to: [string, ...Array<string>];
|
|
@@ -3558,7 +3587,6 @@ export declare class Mailboxes {
|
|
|
3558
3587
|
* Replies to the message's Reply-To address, or its sender, in the same thread and from the thread's endpoint. The server sets the recipients, subject, and threading headers. The body's `channel` must match the thread's. On a phone channel the reply goes to the number on the other side of the thread.
|
|
3559
3588
|
*/
|
|
3560
3589
|
static reply<ThrowOnError extends boolean = false>(parameters: {
|
|
3561
|
-
"idempotency-key"?: string | null | undefined;
|
|
3562
3590
|
id: MailboxId;
|
|
3563
3591
|
messageId: MessageId;
|
|
3564
3592
|
channel?: "email" | null | undefined;
|
|
@@ -3574,7 +3602,6 @@ export declare class Mailboxes {
|
|
|
3574
3602
|
* Replies to the sender and every other recipient of the message except the mailbox itself, in the same thread and from the thread's endpoint. A phone thread has one other side, so it answers like a reply.
|
|
3575
3603
|
*/
|
|
3576
3604
|
static replyAll<ThrowOnError extends boolean = false>(parameters: {
|
|
3577
|
-
"idempotency-key"?: string | null | undefined;
|
|
3578
3605
|
id: MailboxId;
|
|
3579
3606
|
messageId: MessageId;
|
|
3580
3607
|
channel?: "email" | null | undefined;
|
|
@@ -3590,7 +3617,6 @@ export declare class Mailboxes {
|
|
|
3590
3617
|
* Forwards an email to new recipients as a new conversation from the thread's endpoint, with the original quoted below the caller's text and its attachments attached ahead of any the caller adds. The combined attachments must fit the email attachment limits.
|
|
3591
3618
|
*/
|
|
3592
3619
|
static forward<ThrowOnError extends boolean = false>(parameters: {
|
|
3593
|
-
"idempotency-key"?: string | null | undefined;
|
|
3594
3620
|
id: MailboxId;
|
|
3595
3621
|
messageId: MessageId;
|
|
3596
3622
|
to: [string, ...Array<string>];
|
|
@@ -3687,13 +3713,13 @@ export declare class Mailboxes {
|
|
|
3687
3713
|
id: MailboxId;
|
|
3688
3714
|
draftId: MailboxDraftId;
|
|
3689
3715
|
to?: Array<string> | null | undefined;
|
|
3690
|
-
cc?: Array<string> | null |
|
|
3691
|
-
bcc?: Array<string> | null |
|
|
3692
|
-
replyTo?: Array<string> | null |
|
|
3693
|
-
subject?: string | null |
|
|
3694
|
-
text?: string | null |
|
|
3695
|
-
html?: string | null |
|
|
3696
|
-
attachments?: Array<EmailAttachment> | null |
|
|
3716
|
+
cc?: Array<string> | null | undefined;
|
|
3717
|
+
bcc?: Array<string> | null | undefined;
|
|
3718
|
+
replyTo?: Array<string> | null | undefined;
|
|
3719
|
+
subject?: string | null | undefined;
|
|
3720
|
+
text?: string | null | undefined;
|
|
3721
|
+
html?: string | null | undefined;
|
|
3722
|
+
attachments?: Array<EmailAttachment> | null | undefined;
|
|
3697
3723
|
}, options?: Options<never, ThrowOnError>): RequestResult<MailboxesUpdateDraftResponses, MailboxesUpdateDraftErrors, ThrowOnError>;
|
|
3698
3724
|
/**
|
|
3699
3725
|
* Send a draft
|
|
@@ -3701,7 +3727,6 @@ export declare class Mailboxes {
|
|
|
3701
3727
|
* Sends one of the caller's drafts: a reply draft in its thread, any other draft as a new conversation. A draft needs recipients, a subject, and a body.
|
|
3702
3728
|
*/
|
|
3703
3729
|
static sendDraft<ThrowOnError extends boolean = false>(parameters: {
|
|
3704
|
-
"idempotency-key"?: string | null | undefined;
|
|
3705
3730
|
id: MailboxId;
|
|
3706
3731
|
draftId: MailboxDraftId;
|
|
3707
3732
|
}, options?: Options<never, ThrowOnError>): RequestResult<MailboxesSendDraftResponses, MailboxesSendDraftErrors, ThrowOnError>;
|