samva 0.29.1 → 0.31.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.
Files changed (185) hide show
  1. package/AGENTS.md +23 -5
  2. package/README.md +166 -133
  3. package/dist/_virtual/_rolldown/runtime.js +1 -2
  4. package/dist/client/client/client.gen.js +1 -2
  5. package/dist/client/client/utils.gen.js +1 -2
  6. package/dist/client/client.gen.js +1 -2
  7. package/dist/client/core/auth.gen.js +1 -2
  8. package/dist/client/core/bodySerializer.gen.js +1 -2
  9. package/dist/client/core/params.gen.js +1 -2
  10. package/dist/client/core/pathSerializer.gen.js +1 -2
  11. package/dist/client/core/serverSentEvents.gen.js +1 -2
  12. package/dist/client/core/utils.gen.js +1 -2
  13. package/dist/client/sdk.gen.d.ts +218 -192
  14. package/dist/client/sdk.gen.js +2397 -1154
  15. package/dist/client/types.gen.d.ts +767 -376
  16. package/dist/client-attribution.js +1 -2
  17. package/dist/effect/agents.d.ts +33 -11
  18. package/dist/effect/agents.js +1 -2
  19. package/dist/effect/analytics.d.ts +6 -6
  20. package/dist/effect/analytics.js +1 -2
  21. package/dist/effect/api-keys.d.ts +8 -8
  22. package/dist/effect/api-keys.js +1 -2
  23. package/dist/effect/attachments.d.ts +4 -4
  24. package/dist/effect/attachments.js +1 -2
  25. package/dist/effect/brands.d.ts +6 -6
  26. package/dist/effect/brands.js +1 -2
  27. package/dist/effect/campaigns.d.ts +15 -16
  28. package/dist/effect/campaigns.js +1 -2
  29. package/dist/effect/categories.js +1 -2
  30. package/dist/effect/client.js +1 -2
  31. package/dist/effect/contact-groups.d.ts +10 -10
  32. package/dist/effect/contact-groups.js +1 -2
  33. package/dist/effect/contacts.d.ts +23 -24
  34. package/dist/effect/contacts.js +1 -2
  35. package/dist/effect/conversations.d.ts +16 -13
  36. package/dist/effect/conversations.js +1 -2
  37. package/dist/effect/custom-fields.d.ts +4 -4
  38. package/dist/effect/custom-fields.js +1 -2
  39. package/dist/effect/email.d.ts +61 -63
  40. package/dist/effect/email.js +1 -2
  41. package/dist/effect/events.d.ts +2 -4
  42. package/dist/effect/events.js +1 -2
  43. package/dist/effect/extension-installations.d.ts +9 -9
  44. package/dist/effect/extension-installations.js +1 -2
  45. package/dist/effect/extensions.d.ts +5 -5
  46. package/dist/effect/extensions.js +1 -2
  47. package/dist/effect/feedback.d.ts +1 -1
  48. package/dist/effect/feedback.js +1 -2
  49. package/dist/effect/generated/agents.d.ts +264 -22
  50. package/dist/effect/generated/agents.js +2 -3
  51. package/dist/effect/generated/analytics.js +1 -2
  52. package/dist/effect/generated/api-keys.js +1 -2
  53. package/dist/effect/generated/attachments.js +1 -2
  54. package/dist/effect/generated/brands.js +1 -2
  55. package/dist/effect/generated/campaigns.d.ts +160 -155
  56. package/dist/effect/generated/campaigns.js +7 -9
  57. package/dist/effect/generated/contact-events.js +1 -2
  58. package/dist/effect/generated/contact-groups.d.ts +26 -26
  59. package/dist/effect/generated/contact-groups.js +22 -19
  60. package/dist/effect/generated/contacts.d.ts +119 -90
  61. package/dist/effect/generated/contacts.js +32 -32
  62. package/dist/effect/generated/conversations.d.ts +26 -23
  63. package/dist/effect/generated/conversations.js +10 -10
  64. package/dist/effect/generated/custom-fields.d.ts +6 -6
  65. package/dist/effect/generated/custom-fields.js +3 -4
  66. package/dist/effect/generated/email.d.ts +38 -38
  67. package/dist/effect/generated/email.js +13 -14
  68. package/dist/effect/generated/events.d.ts +18 -9
  69. package/dist/effect/generated/events.js +8 -6
  70. package/dist/effect/generated/extension-installations.d.ts +2 -2
  71. package/dist/effect/generated/extension-installations.js +6 -3
  72. package/dist/effect/generated/extensions.js +1 -2
  73. package/dist/effect/generated/feedback.js +1 -2
  74. package/dist/effect/generated/index.d.ts +7 -5
  75. package/dist/effect/generated/journeys.js +1 -2
  76. package/dist/effect/generated/mailboxes.d.ts +44 -44
  77. package/dist/effect/generated/mailboxes.js +17 -18
  78. package/dist/effect/generated/media.js +1 -2
  79. package/dist/effect/generated/messages.d.ts +42 -42
  80. package/dist/effect/generated/messages.js +3 -4
  81. package/dist/effect/generated/namespaces.js +1 -2
  82. package/dist/effect/generated/{publication-domains.d.ts → newsletter-domains.d.ts} +304 -80
  83. package/dist/effect/generated/newsletter-domains.js +218 -0
  84. package/dist/effect/generated/{topic-issues.d.ts → newsletter-issues.d.ts} +330 -288
  85. package/dist/effect/generated/{topic-issues.js → newsletter-issues.js} +255 -246
  86. package/dist/effect/generated/newsletters.d.ts +741 -0
  87. package/dist/effect/generated/newsletters.js +143 -0
  88. package/dist/effect/generated/operations.js +1 -2
  89. package/dist/effect/generated/organizations.d.ts +9 -9
  90. package/dist/effect/generated/organizations.js +4 -5
  91. package/dist/effect/generated/scheduled-messages.d.ts +174 -169
  92. package/dist/effect/generated/scheduled-messages.js +7 -7
  93. package/dist/effect/generated/shared.d.ts +276 -208
  94. package/dist/effect/generated/shared.js +50 -36
  95. package/dist/effect/generated/subscriptions.js +1 -2
  96. package/dist/effect/generated/templates.d.ts +118 -67
  97. package/dist/effect/generated/templates.js +43 -35
  98. package/dist/effect/generated/topic-forms.d.ts +79 -19
  99. package/dist/effect/generated/topic-forms.js +13 -14
  100. package/dist/effect/generated/topics.d.ts +27 -65
  101. package/dist/effect/generated/topics.js +13 -20
  102. package/dist/effect/generated/webhooks.d.ts +9 -9
  103. package/dist/effect/generated/webhooks.js +4 -5
  104. package/dist/effect/generated/whoami.js +1 -2
  105. package/dist/effect/generated-metadata.d.ts +475 -70
  106. package/dist/effect/generated-metadata.js +642 -432
  107. package/dist/effect/index.d.ts +3 -2
  108. package/dist/effect/index.js +4 -3
  109. package/dist/effect/internal/client.d.ts +5 -0
  110. package/dist/effect/internal/client.js +9 -5
  111. package/dist/effect/internal/email-sender.d.ts +1 -1
  112. package/dist/effect/internal/email-sender.js +4 -3
  113. package/dist/effect/internal/mailbox-events.js +1 -2
  114. package/dist/effect/internal/operation.d.ts +4 -15
  115. package/dist/effect/internal/operation.js +21 -33
  116. package/dist/effect/internal/send.js +2 -3
  117. package/dist/effect/journeys.d.ts +14 -14
  118. package/dist/effect/journeys.js +1 -2
  119. package/dist/effect/mailboxes.d.ts +60 -70
  120. package/dist/effect/mailboxes.js +1 -2
  121. package/dist/effect/media.d.ts +5 -5
  122. package/dist/effect/media.js +1 -2
  123. package/dist/effect/messages.d.ts +9 -9
  124. package/dist/effect/messages.js +1 -2
  125. package/dist/effect/namespaces.d.ts +8 -8
  126. package/dist/effect/namespaces.js +1 -2
  127. package/dist/effect/newsletter-domains.d.ts +71 -0
  128. package/dist/effect/newsletter-domains.js +18 -0
  129. package/dist/effect/{topic-issues.d.ts → newsletter-issues.d.ts} +11 -15
  130. package/dist/effect/newsletter-issues.js +32 -0
  131. package/dist/effect/newsletters.d.ts +22 -0
  132. package/dist/effect/newsletters.js +20 -0
  133. package/dist/effect/operations.d.ts +3 -3
  134. package/dist/effect/operations.js +1 -2
  135. package/dist/effect/organizations.d.ts +8 -10
  136. package/dist/effect/organizations.js +1 -2
  137. package/dist/effect/pagination.js +1 -2
  138. package/dist/effect/retry.d.ts +4 -4
  139. package/dist/effect/retry.js +5 -6
  140. package/dist/effect/runtime.js +1 -2
  141. package/dist/effect/scheduled-messages.d.ts +5 -6
  142. package/dist/effect/scheduled-messages.js +1 -2
  143. package/dist/effect/subscriptions.d.ts +1 -1
  144. package/dist/effect/subscriptions.js +1 -2
  145. package/dist/effect/templates.d.ts +34 -43
  146. package/dist/effect/templates.js +1 -2
  147. package/dist/effect/topic-forms.d.ts +5 -5
  148. package/dist/effect/topic-forms.js +1 -2
  149. package/dist/effect/topics.d.ts +9 -13
  150. package/dist/effect/topics.js +1 -2
  151. package/dist/effect/webhooks.d.ts +11 -11
  152. package/dist/effect/webhooks.js +1 -2
  153. package/dist/effect/whoami.d.ts +1 -1
  154. package/dist/effect/whoami.js +1 -2
  155. package/dist/index.js +2 -2
  156. package/dist/inline-attachments.js +1 -2
  157. package/dist/mailbox/dispatch.d.ts +10 -0
  158. package/dist/mailbox/dispatch.js +66 -0
  159. package/dist/mailbox/index.d.ts +17 -0
  160. package/dist/mailbox/index.js +30 -0
  161. package/dist/mailbox/test.d.ts +25 -0
  162. package/dist/mailbox/test.js +174 -0
  163. package/dist/mailbox/types.d.ts +184 -0
  164. package/dist/mailbox/webhook.d.ts +10 -0
  165. package/dist/mailbox/webhook.js +41 -0
  166. package/dist/mailbox-events.js +1 -2
  167. package/dist/normalize.js +1 -2
  168. package/dist/package.js +2 -3
  169. package/dist/promises/client.d.ts +215 -0
  170. package/dist/promises/client.js +324 -0
  171. package/dist/promises/errors.gen.js +1 -2
  172. package/dist/promises/index.d.ts +2 -196
  173. package/dist/promises/index.js +3 -295
  174. package/dist/promises/request.d.ts +15 -0
  175. package/dist/promises/request.js +75 -0
  176. package/dist/promises/types.gen.d.ts +1 -1
  177. package/dist/request-policy.d.ts +3 -0
  178. package/dist/request-policy.js +16 -0
  179. package/dist/service-map.d.ts +78 -47
  180. package/dist/service-map.js +52 -32
  181. package/package.json +34 -18
  182. package/dist/effect/generated/publication-domains.js +0 -163
  183. package/dist/effect/publication-domains.d.ts +0 -14
  184. package/dist/effect/publication-domains.js +0 -17
  185. package/dist/effect/topic-issues.js +0 -33
@@ -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
- "idempotency-key"?: string | null | undefined;
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 | null | undefined;
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 idempotencyKey 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.
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 | null | undefined;
568
- clickTracking?: boolean | null | null | undefined;
569
- replyTo?: Array<string> | null | null | undefined;
570
- topicId?: TopicId | null | null | undefined;
571
- footerEnabled?: boolean | null | null | undefined;
572
- brandSlug?: string | null | null | undefined;
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 | null | undefined;
658
- replyToEmails?: Array<string> | null | null | undefined;
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 | null | undefined;
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 | null | undefined;
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 | null | undefined;
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 | null | undefined;
889
+ } | null | undefined;
893
890
  }, options?: Options<never, ThrowOnError>): RequestResult<EmailUpdateForwardingRuleResponses, EmailUpdateForwardingRuleErrors, ThrowOnError>;
894
891
  /**
895
892
  * List email forwarding logs
@@ -1066,7 +1063,7 @@ export declare class Conversations {
1066
1063
  /**
1067
1064
  * List conversations
1068
1065
  *
1069
- * Returns conversation summaries, most recently active first, filterable by status, channel, contact, and creation time (`after`, `before`). Pass `nextCursor` back as `cursor` for the next page; it is null on the last page. A conversation that gains activity while you page moves ahead of the cursor, so a walk lists each conversation at most once. Read a conversation's contacts, metadata, and resolution with `GET /v1/conversations/{id}`.
1066
+ * Returns conversation summaries, most recently active first, filterable by status, channel, contact, mailbox, and creation time (`after`, `before`). Pass `nextCursor` back as `cursor` for the next page; it is null on the last page. A conversation that gains activity while you page moves ahead of the cursor, so a walk lists each conversation at most once. Read a conversation's contacts, metadata, and resolution with `GET /v1/conversations/{id}`.
1070
1067
  */
1071
1068
  static list<ThrowOnError extends boolean = false>(parameters?: {
1072
1069
  limit?: number | null | undefined;
@@ -1074,6 +1071,7 @@ export declare class Conversations {
1074
1071
  status?: "active" | "waiting" | "resolved" | "escalated" | "archived" | null | undefined;
1075
1072
  channel?: "email" | null | undefined;
1076
1073
  contactId?: ContactId | null | undefined;
1074
+ mailboxId?: MailboxId | null | undefined;
1077
1075
  after?: string | null | undefined;
1078
1076
  before?: string | null | undefined;
1079
1077
  }, options?: Options<never, ThrowOnError>): RequestResult<ConversationsListResponses, ConversationsListErrors, ThrowOnError>;
@@ -1095,7 +1093,7 @@ export declare class Conversations {
1095
1093
  urgency?: "low" | "medium" | "high" | "critical" | null | undefined;
1096
1094
  complexity?: "simple" | "moderate" | "complex" | null | undefined;
1097
1095
  metadata?: JsonObjectWritable | null | undefined;
1098
- context?: ConversationContextWritable | null | null | undefined;
1096
+ context?: ConversationContextWritable | null | undefined;
1099
1097
  tags?: Array<string> | null | undefined;
1100
1098
  categories?: Array<string> | null | undefined;
1101
1099
  isTest?: boolean | null | undefined;
@@ -1118,16 +1116,16 @@ export declare class Conversations {
1118
1116
  static update<ThrowOnError extends boolean = false>(parameters: {
1119
1117
  id: ConversationId;
1120
1118
  title?: string | null | undefined;
1121
- description?: string | null | null | undefined;
1122
- externalId?: string | null | null | undefined;
1123
- parentConversationId?: ConversationId | null | null | undefined;
1119
+ description?: string | null | undefined;
1120
+ externalId?: string | null | undefined;
1121
+ parentConversationId?: ConversationId | null | undefined;
1124
1122
  primaryChannel?: "email" | null | undefined;
1125
1123
  status?: "active" | "waiting" | "resolved" | "escalated" | "archived" | null | undefined;
1126
- statusReason?: string | null | null | undefined;
1124
+ statusReason?: string | null | undefined;
1127
1125
  priority?: number | null | undefined;
1128
1126
  urgency?: "low" | "medium" | "high" | "critical" | null | undefined;
1129
1127
  complexity?: "simple" | "moderate" | "complex" | null | undefined;
1130
- context?: ConversationContextWritable | null | null | undefined;
1128
+ context?: ConversationContextWritable | null | undefined;
1131
1129
  metadata?: JsonObjectWritable | null | undefined;
1132
1130
  isTest?: boolean | null | undefined;
1133
1131
  isInternal?: boolean | null | undefined;
@@ -1247,16 +1245,16 @@ export declare class Contacts {
1247
1245
  static create<ThrowOnError extends boolean = false>(parameters: {
1248
1246
  namespaceId?: NamespaceId | null | undefined;
1249
1247
  name: string;
1250
- displayName?: string | null | null | undefined;
1251
- avatar?: string | null | null | undefined;
1248
+ displayName?: string | null | undefined;
1249
+ avatar?: string | null | undefined;
1252
1250
  identities?: Array<ContactIdentityInput> | null | undefined;
1253
- profile?: ContactProfileWritable | null | null | undefined;
1254
- preferences?: ContactPreferences | null | null | undefined;
1251
+ profile?: ContactProfileWritable | null | undefined;
1252
+ preferences?: ContactPreferences | null | undefined;
1255
1253
  tags?: Array<string> | null | undefined;
1256
1254
  status?: "active" | "paused" | "blocked" | "archived" | null | undefined;
1257
- statusReason?: string | null | null | undefined;
1258
- externalId?: string | null | null | undefined;
1259
- metadata?: JsonObjectWritable | null | null | undefined;
1255
+ statusReason?: string | null | undefined;
1256
+ externalId?: string | null | undefined;
1257
+ metadata?: JsonObjectWritable | null | undefined;
1260
1258
  }, options?: Options<never, ThrowOnError>): RequestResult<ContactsCreateResponses, ContactsCreateErrors, ThrowOnError>;
1261
1259
  /**
1262
1260
  * Find a contact
@@ -1279,11 +1277,11 @@ export declare class Contacts {
1279
1277
  lookup: ContactLookup;
1280
1278
  create?: {
1281
1279
  name?: string | null | undefined;
1282
- displayName?: string | null | null | undefined;
1283
- avatar?: string | null | null | undefined;
1280
+ displayName?: string | null | undefined;
1281
+ avatar?: string | null | undefined;
1284
1282
  identities?: Array<ContactIdentityInput> | null | undefined;
1285
- profile?: ContactProfileWritable | null | null | undefined;
1286
- externalId?: string | null | null | undefined;
1283
+ profile?: ContactProfileWritable | null | undefined;
1284
+ externalId?: string | null | undefined;
1287
1285
  } | null | undefined;
1288
1286
  }, options?: Options<never, ThrowOnError>): RequestResult<ContactsFindOrCreateResponses, ContactsFindOrCreateErrors, ThrowOnError>;
1289
1287
  /**
@@ -1310,13 +1308,13 @@ export declare class Contacts {
1310
1308
  static update<ThrowOnError extends boolean = false>(parameters: {
1311
1309
  id: ContactId;
1312
1310
  name?: string | null | undefined;
1313
- displayName?: string | null | null | undefined;
1314
- avatar?: string | null | null | undefined;
1311
+ displayName?: string | null | undefined;
1312
+ avatar?: string | null | undefined;
1315
1313
  profile?: ContactProfileUpdate | null | undefined;
1316
- preferences?: ContactPreferences | null | null | undefined;
1314
+ preferences?: ContactPreferences | null | undefined;
1317
1315
  status?: "active" | "paused" | "blocked" | "archived" | null | undefined;
1318
- statusReason?: string | null | null | undefined;
1319
- externalId?: string | null | null | undefined;
1316
+ statusReason?: string | null | undefined;
1317
+ externalId?: string | null | undefined;
1320
1318
  metadata?: JsonObjectWritable | null | undefined;
1321
1319
  }, options?: Options<never, ThrowOnError>): RequestResult<ContactsUpdateResponses, ContactsUpdateErrors, ThrowOnError>;
1322
1320
  /**
@@ -1382,7 +1380,7 @@ export declare class Contacts {
1382
1380
  /**
1383
1381
  * Preview a list migration
1384
1382
  *
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. Requires listMigration. Missing required columns refuse the file; unknown status values are conflicts and never subscribe a reader.
1383
+ * 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
1384
  */
1387
1385
  static planImport<ThrowOnError extends boolean = false>(parameters: {
1388
1386
  preset: "beehiiv" | "substack" | "kit" | "mailchimp";
@@ -1422,7 +1420,7 @@ export declare class Contacts {
1422
1420
  /**
1423
1421
  * Start or resume a list migration
1424
1422
  *
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 idempotency key, or resumes the same persisted input at its committed cursor. 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. Requires listMigration for new admissions.
1423
+ * 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
1424
  */
1427
1425
  static startImport<ThrowOnError extends boolean = false>(parameters: {
1428
1426
  mode: "new";
@@ -1462,7 +1460,6 @@ export declare class Contacts {
1462
1460
  ];
1463
1461
  };
1464
1462
  planHash: string;
1465
- idempotencyKey: string;
1466
1463
  } | {
1467
1464
  mode: "resume";
1468
1465
  jobId: ContactImportJobId;
@@ -1471,7 +1468,7 @@ export declare class Contacts {
1471
1468
  /**
1472
1469
  * Get list migration progress
1473
1470
  *
1474
- * Returns the visible import job's committed counts, generation, terminal failure and resumability. The job persists across worker restarts and page reloads. Admitted jobs remain readable when listMigration is disabled.
1471
+ * Returns the visible import job's committed counts, generation, terminal failure and resumability. The job persists across worker restarts and page reloads.
1475
1472
  */
1476
1473
  static getImportJob<ThrowOnError extends boolean = false>(parameters: {
1477
1474
  id: ContactImportJobId;
@@ -1553,12 +1550,11 @@ export declare class Events {
1553
1550
  name: string;
1554
1551
  properties?: JsonObjectWritable | null | undefined;
1555
1552
  occurredAt?: string | null | undefined;
1556
- idempotencyKey?: string | null | undefined;
1557
1553
  }, options?: Options<never, ThrowOnError>): RequestResult<EventsCreateResponses, EventsCreateErrors, ThrowOnError>;
1558
1554
  /**
1559
1555
  * Record contact events in a batch
1560
1556
  *
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 idempotency.
1557
+ * 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
1558
  */
1563
1559
  static batch<ThrowOnError extends boolean = false>(parameters: {
1564
1560
  events: [CreateEventPayload, ...Array<CreateEventPayload>];
@@ -1840,14 +1836,14 @@ export declare class ContactGroups {
1840
1836
  */
1841
1837
  static create<ThrowOnError extends boolean = false>(parameters: {
1842
1838
  name: string;
1843
- description?: string | null | null | undefined;
1839
+ description?: string | null | undefined;
1844
1840
  type?: "static" | "dynamic" | "smart" | null | undefined;
1845
1841
  criteria?: {
1846
1842
  [key: string]: JsonValueWritable | undefined;
1847
- } | null | null | undefined;
1843
+ } | null | undefined;
1848
1844
  color?: "clay" | "sand" | "moss" | "sky" | "plum" | "rose" | null | null | undefined;
1849
- icon?: string | null | null | undefined;
1850
- parentGroupId?: ContactGroupId | null | null | undefined;
1845
+ icon?: string | null | undefined;
1846
+ parentGroupId?: ContactGroupId | null | undefined;
1851
1847
  isActive?: boolean | null | undefined;
1852
1848
  }, options?: Options<never, ThrowOnError>): RequestResult<ContactGroupsCreateResponses, ContactGroupsCreateErrors, ThrowOnError>;
1853
1849
  /**
@@ -1874,14 +1870,14 @@ export declare class ContactGroups {
1874
1870
  static update<ThrowOnError extends boolean = false>(parameters: {
1875
1871
  id: ContactGroupId;
1876
1872
  name?: string | null | undefined;
1877
- description?: string | null | null | undefined;
1873
+ description?: string | null | undefined;
1878
1874
  type?: "static" | "dynamic" | "smart" | null | undefined;
1879
1875
  criteria?: {
1880
1876
  [key: string]: JsonValueWritable | undefined;
1881
- } | null | null | undefined;
1877
+ } | null | undefined;
1882
1878
  color?: "clay" | "sand" | "moss" | "sky" | "plum" | "rose" | null | null | undefined;
1883
- icon?: string | null | null | undefined;
1884
- parentGroupId?: ContactGroupId | null | null | undefined;
1879
+ icon?: string | null | undefined;
1880
+ parentGroupId?: ContactGroupId | null | undefined;
1885
1881
  isActive?: boolean | null | undefined;
1886
1882
  }, options?: Options<never, ThrowOnError>): RequestResult<ContactGroupsUpdateResponses, ContactGroupsUpdateErrors, ThrowOnError>;
1887
1883
  /**
@@ -1959,7 +1955,7 @@ export declare class CustomFields {
1959
1955
  label: string;
1960
1956
  type: "text" | "number" | "boolean" | "date" | "select";
1961
1957
  options?: Array<string> | null | undefined;
1962
- defaultValue?: string | null | null | undefined;
1958
+ defaultValue?: string | null | undefined;
1963
1959
  isRequired?: boolean | null | undefined;
1964
1960
  sortOrder?: number | null | undefined;
1965
1961
  }, options?: Options<never, ThrowOnError>): RequestResult<CustomFieldsCreateResponses, CustomFieldsCreateErrors, ThrowOnError>;
@@ -1980,7 +1976,7 @@ export declare class CustomFields {
1980
1976
  id: CustomFieldDefinitionId;
1981
1977
  label?: string | null | undefined;
1982
1978
  options?: Array<string> | null | undefined;
1983
- defaultValue?: string | null | null | undefined;
1979
+ defaultValue?: string | null | undefined;
1984
1980
  isRequired?: boolean | null | undefined;
1985
1981
  sortOrder?: number | null | undefined;
1986
1982
  }, options?: Options<never, ThrowOnError>): RequestResult<CustomFieldsUpdateResponses, CustomFieldsUpdateErrors, ThrowOnError>;
@@ -2000,18 +1996,16 @@ export declare class Topics {
2000
1996
  /**
2001
1997
  * Create a topic
2002
1998
  *
2003
- * Creates a topic in the caller's or requested namespace. The subscription default is opt_out when omitted. Publishing defaults must be compatible with that namespace. An organization holds at most 200 topics.
1999
+ * 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
2000
  */
2005
2001
  static create<ThrowOnError extends boolean = false>(parameters: {
2006
2002
  name: string;
2007
- description?: string | null | null | undefined;
2008
- namespaceId?: NamespaceId | null | null | undefined;
2003
+ description?: string | null | undefined;
2004
+ namespaceId?: NamespaceId | null | undefined;
2009
2005
  default?: "opt_out" | "opt_in" | null | undefined;
2010
- archiveEnabled?: boolean | null | undefined;
2011
- publicationSlug?: string | null | null | undefined;
2012
- defaultSenderId?: EmailSenderId | null | null | undefined;
2013
- replyMailboxId?: MailboxId | null | null | undefined;
2014
- templateId?: TemplateId | null | null | undefined;
2006
+ defaultSenderId?: EmailSenderId | null | undefined;
2007
+ replyMailboxId?: MailboxId | null | undefined;
2008
+ templateId?: TemplateId | null | undefined;
2015
2009
  }, options?: Options<never, ThrowOnError>): RequestResult<TopicsCreateResponses, TopicsCreateErrors, ThrowOnError>;
2016
2010
  /**
2017
2011
  * Check topic subscriptions
@@ -2037,7 +2031,7 @@ export declare class Topics {
2037
2031
  /**
2038
2032
  * Get a topic
2039
2033
  *
2040
- * Returns a visible topic, its publishing defaults, and explicit subscription counts by channel and status. Individual subscriptions are read through listSubscriptions.
2034
+ * Returns a visible topic, its sending defaults, and explicit subscription counts by channel and status. Individual subscriptions are read through listSubscriptions.
2041
2035
  */
2042
2036
  static get<ThrowOnError extends boolean = false>(parameters: {
2043
2037
  id: TopicId;
@@ -2045,18 +2039,16 @@ export declare class Topics {
2045
2039
  /**
2046
2040
  * Update a topic
2047
2041
  *
2048
- * Updates named fields. Changing the default does not change any explicit subscription status. Null clears a publishing default.
2042
+ * Updates named fields. Changing the default does not change any explicit subscription status. Null clears a sending default.
2049
2043
  */
2050
2044
  static update<ThrowOnError extends boolean = false>(parameters: {
2051
2045
  id: TopicId;
2052
2046
  name?: string | null | undefined;
2053
- description?: string | null | null | undefined;
2047
+ description?: string | null | undefined;
2054
2048
  default?: "opt_out" | "opt_in" | null | undefined;
2055
- archiveEnabled?: boolean | null | undefined;
2056
- publicationSlug?: string | null | null | undefined;
2057
- defaultSenderId?: EmailSenderId | null | null | undefined;
2058
- replyMailboxId?: MailboxId | null | null | undefined;
2059
- templateId?: TemplateId | null | null | undefined;
2049
+ defaultSenderId?: EmailSenderId | null | undefined;
2050
+ replyMailboxId?: MailboxId | null | undefined;
2051
+ templateId?: TemplateId | null | undefined;
2060
2052
  }, options?: Options<never, ThrowOnError>): RequestResult<TopicsUpdateResponses, TopicsUpdateErrors, ThrowOnError>;
2061
2053
  /**
2062
2054
  * Make a topic the default
@@ -2098,7 +2090,7 @@ export declare class TopicForms {
2098
2090
  /**
2099
2091
  * List topic forms
2100
2092
  *
2101
- * Lists the signup forms belonging to the visible topic. Requires topicSignup. Forms contain exact HTTPS allowed origins, bounded confirmation and success copy, an optional HTTPS redirect, and a public key for hosted or embedded signup.
2093
+ * 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
2094
  */
2103
2095
  static list<ThrowOnError extends boolean = false>(parameters: {
2104
2096
  id: TopicId;
@@ -2106,7 +2098,7 @@ export declare class TopicForms {
2106
2098
  /**
2107
2099
  * Create a topic form
2108
2100
  *
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. Requires topicSignup.
2101
+ * 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
2102
  */
2111
2103
  static create<ThrowOnError extends boolean = false>(parameters: {
2112
2104
  id: TopicId;
@@ -2120,7 +2112,7 @@ export declare class TopicForms {
2120
2112
  /**
2121
2113
  * Delete a topic form
2122
2114
  *
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. Requires topicSignup.
2115
+ * 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
2116
  */
2125
2117
  static remove<ThrowOnError extends boolean = false>(parameters: {
2126
2118
  id: TopicId;
@@ -2129,7 +2121,7 @@ export declare class TopicForms {
2129
2121
  /**
2130
2122
  * Get a topic form
2131
2123
  *
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. Requires topicSignup.
2124
+ * 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
2125
  */
2134
2126
  static get<ThrowOnError extends boolean = false>(parameters: {
2135
2127
  id: TopicId;
@@ -2138,7 +2130,7 @@ export declare class TopicForms {
2138
2130
  /**
2139
2131
  * Update a topic form
2140
2132
  *
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. Requires topicSignup.
2133
+ * 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
2134
  */
2143
2135
  static update<ThrowOnError extends boolean = false>(parameters: {
2144
2136
  id: TopicId;
@@ -2148,162 +2140,211 @@ export declare class TopicForms {
2148
2140
  confirmationMessage?: string | null | undefined;
2149
2141
  successTitle?: string | null | undefined;
2150
2142
  successMessage?: string | null | undefined;
2151
- redirectUrl?: string | null | null | undefined;
2143
+ redirectUrl?: string | null | undefined;
2152
2144
  }, options?: Options<never, ThrowOnError>): RequestResult<TopicFormsUpdateResponses, TopicFormsUpdateErrors, ThrowOnError>;
2153
2145
  }
2154
2146
  export declare class TopicForms2 {
2155
2147
  static topicForms: typeof TopicForms;
2156
2148
  }
2157
- export declare class TopicIssues {
2149
+ export declare class Issues {
2158
2150
  /**
2159
- * List topic issues
2151
+ * List newsletter issues
2160
2152
  *
2161
- * Lists the Markdown issues in the topic's shared Git workspace with each draft's title and its latest campaign send. An uninitialized topic returns null projectId and revision. Requires issueContent and email.
2153
+ * 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
2154
  */
2163
2155
  static list<ThrowOnError extends boolean = false>(parameters: {
2164
- id: TopicId;
2165
- }, options?: Options<never, ThrowOnError>): RequestResult<TopicIssuesListResponses, TopicIssuesListErrors, ThrowOnError>;
2156
+ id: NewsletterId;
2157
+ }, options?: Options<never, ThrowOnError>): RequestResult<NewsletterIssuesListResponses, NewsletterIssuesListErrors, ThrowOnError>;
2166
2158
  /**
2167
- * Update a topic issue
2159
+ * Update a newsletter issue
2168
2160
  *
2169
- * Replaces the complete Markdown file under a revision fence. Save separately to create a Git commit. Requires issueContent and email.
2161
+ * Replaces the complete Markdown file under a revision fence. Save separately to create a Git commit. Requires newsletters and email.
2170
2162
  */
2171
2163
  static update<ThrowOnError extends boolean = false>(parameters: {
2172
- id: TopicId;
2164
+ id: NewsletterId;
2173
2165
  path: string;
2174
2166
  content: string;
2175
- idempotencyKey: string;
2176
2167
  expectedRevision: string;
2177
- }, options?: Options<never, ThrowOnError>): RequestResult<TopicIssuesUpdateResponses, TopicIssuesUpdateErrors, ThrowOnError>;
2168
+ }, options?: Options<never, ThrowOnError>): RequestResult<NewsletterIssuesUpdateResponses, NewsletterIssuesUpdateErrors, ThrowOnError>;
2178
2169
  /**
2179
- * Create a topic issue
2170
+ * Create a newsletter issue
2180
2171
  *
2181
- * Creates an unsaved Markdown file. The first request provisions the topic'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 issueContent and email.
2172
+ * 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
2173
  */
2183
2174
  static create<ThrowOnError extends boolean = false>(parameters: {
2184
- id: TopicId;
2175
+ id: NewsletterId;
2185
2176
  path: string;
2186
2177
  content: string;
2187
- idempotencyKey: string;
2188
2178
  expectedRevision?: string | null | undefined;
2189
- }, options?: Options<never, ThrowOnError>): RequestResult<TopicIssuesCreateResponses, TopicIssuesCreateErrors, ThrowOnError>;
2179
+ }, options?: Options<never, ThrowOnError>): RequestResult<NewsletterIssuesCreateResponses, NewsletterIssuesCreateErrors, ThrowOnError>;
2190
2180
  /**
2191
- * Open the topic issue workspace
2181
+ * Open the newsletter issue workspace
2192
2182
  *
2193
- * Returns the existing project workspace and pulls saved Git changes. Does not create a repository. Requires issueContent and email.
2183
+ * Returns the existing project workspace and pulls saved Git changes. Does not create a repository. Requires newsletters and email.
2194
2184
  */
2195
2185
  static open<ThrowOnError extends boolean = false>(parameters: {
2196
- id: TopicId;
2197
- }, options?: Options<never, ThrowOnError>): RequestResult<TopicIssuesOpenResponses, TopicIssuesOpenErrors, ThrowOnError>;
2186
+ id: NewsletterId;
2187
+ }, options?: Options<never, ThrowOnError>): RequestResult<NewsletterIssuesOpenResponses, NewsletterIssuesOpenErrors, ThrowOnError>;
2198
2188
  /**
2199
- * Read a topic issue
2189
+ * Read a newsletter issue
2200
2190
  *
2201
- * Reads one issues*.md file at the requested workspace revision. Requires issueContent and email.
2191
+ * Reads one issues*.md file at the requested workspace revision. Requires newsletters and email.
2202
2192
  */
2203
2193
  static get<ThrowOnError extends boolean = false>(parameters: {
2204
- id: TopicId;
2194
+ id: NewsletterId;
2205
2195
  path: string;
2206
2196
  expectedRevision: string;
2207
- }, options?: Options<never, ThrowOnError>): RequestResult<TopicIssuesGetResponses, TopicIssuesGetErrors, ThrowOnError>;
2197
+ }, options?: Options<never, ThrowOnError>): RequestResult<NewsletterIssuesGetResponses, NewsletterIssuesGetErrors, ThrowOnError>;
2208
2198
  /**
2209
- * Remove a topic issue
2199
+ * Remove a newsletter issue
2210
2200
  *
2211
- * Removes one Markdown file from the draft under a revision fence. The project default issue must remain. Saved commits remain readable. Requires issueContent and email.
2201
+ * 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
2202
  */
2213
2203
  static remove<ThrowOnError extends boolean = false>(parameters: {
2214
- id: TopicId;
2204
+ id: NewsletterId;
2215
2205
  path: string;
2216
- idempotencyKey: string;
2217
2206
  expectedRevision: string;
2218
- }, options?: Options<never, ThrowOnError>): RequestResult<TopicIssuesRemoveResponses, TopicIssuesRemoveErrors, ThrowOnError>;
2207
+ }, options?: Options<never, ThrowOnError>): RequestResult<NewsletterIssuesRemoveResponses, NewsletterIssuesRemoveErrors, ThrowOnError>;
2219
2208
  /**
2220
- * Save topic issues
2209
+ * Save newsletter issues
2221
2210
  *
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 issueContent and email.
2211
+ * 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
2212
  */
2224
2213
  static save<ThrowOnError extends boolean = false>(parameters: {
2225
- id: TopicId;
2214
+ id: NewsletterId;
2226
2215
  expectedRevision: string;
2227
2216
  expectedHead: string;
2228
2217
  message: string;
2229
- idempotencyKey: string;
2230
- }, options?: Options<never, ThrowOnError>): RequestResult<TopicIssuesSaveResponses, TopicIssuesSaveErrors, ThrowOnError>;
2218
+ }, options?: Options<never, ThrowOnError>): RequestResult<NewsletterIssuesSaveResponses, NewsletterIssuesSaveErrors, ThrowOnError>;
2231
2219
  /**
2232
- * Check a topic issue
2220
+ * Check a newsletter issue
2233
2221
  *
2234
- * Compiles the issue in its layout at the requested revision and returns diagnostics and declared fixtures. Requires issueContent and email.
2222
+ * Compiles the issue in its layout at the requested revision and returns diagnostics and declared fixtures. Requires newsletters and email.
2235
2223
  */
2236
2224
  static check<ThrowOnError extends boolean = false>(parameters: {
2237
- id: TopicId;
2225
+ id: NewsletterId;
2238
2226
  path: string;
2239
2227
  expectedRevision: string;
2240
- }, options?: Options<never, ThrowOnError>): RequestResult<TopicIssuesCheckResponses, TopicIssuesCheckErrors, ThrowOnError>;
2228
+ }, options?: Options<never, ThrowOnError>): RequestResult<NewsletterIssuesCheckResponses, NewsletterIssuesCheckErrors, ThrowOnError>;
2241
2229
  /**
2242
- * Render a topic issue fixture
2230
+ * Render a newsletter issue fixture
2243
2231
  *
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 issueContent and email.
2232
+ * 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
2233
  */
2246
2234
  static render<ThrowOnError extends boolean = false>(parameters: {
2247
- id: TopicId;
2235
+ id: NewsletterId;
2248
2236
  path: string;
2249
2237
  expectedRevision: string;
2250
2238
  fixture: string;
2251
2239
  target: "email" | "web";
2252
- }, options?: Options<never, ThrowOnError>): RequestResult<TopicIssuesRenderResponses, TopicIssuesRenderErrors, ThrowOnError>;
2240
+ }, options?: Options<never, ThrowOnError>): RequestResult<NewsletterIssuesRenderResponses, NewsletterIssuesRenderErrors, ThrowOnError>;
2253
2241
  /**
2254
- * Read the topic issue head
2242
+ * Read the newsletter issue head
2255
2243
  *
2256
- * Reads the current workspace revision and repository branch head. Requires issueContent and email.
2244
+ * Reads the current workspace revision and repository branch head. Requires newsletters and email.
2257
2245
  */
2258
2246
  static head<ThrowOnError extends boolean = false>(parameters: {
2259
- id: TopicId;
2260
- }, options?: Options<never, ThrowOnError>): RequestResult<TopicIssuesHeadResponses, TopicIssuesHeadErrors, ThrowOnError>;
2247
+ id: NewsletterId;
2248
+ }, options?: Options<never, ThrowOnError>): RequestResult<NewsletterIssuesHeadResponses, NewsletterIssuesHeadErrors, ThrowOnError>;
2261
2249
  /**
2262
- * Read topic issue history
2250
+ * Read newsletter issue history
2263
2251
  *
2264
- * Lists saved commits in the topic repository, newest first. Requires issueContent and email.
2252
+ * Lists saved commits in the topic repository, newest first. Requires newsletters and email.
2265
2253
  */
2266
2254
  static history<ThrowOnError extends boolean = false>(parameters: {
2267
- id: TopicId;
2255
+ id: NewsletterId;
2268
2256
  limit?: number | null | undefined;
2269
- }, options?: Options<never, ThrowOnError>): RequestResult<TopicIssuesHistoryResponses, TopicIssuesHistoryErrors, ThrowOnError>;
2270
- }
2271
- export declare class TopicIssues2 {
2272
- static topicIssues: typeof TopicIssues;
2257
+ }, options?: Options<never, ThrowOnError>): RequestResult<NewsletterIssuesHistoryResponses, NewsletterIssuesHistoryErrors, ThrowOnError>;
2273
2258
  }
2274
- export declare class TopicPublicationDomains {
2259
+ export declare class Domains {
2260
+ /**
2261
+ * List publication domains
2262
+ *
2263
+ * 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.
2264
+ */
2265
+ static list<ThrowOnError extends boolean = false>(parameters: {
2266
+ id: NewsletterId;
2267
+ limit?: number | null | undefined;
2268
+ cursor?: PublicationDomainCursor | null | undefined;
2269
+ }, options?: Options<never, ThrowOnError>): RequestResult<NewsletterDomainsListResponses, NewsletterDomainsListErrors, ThrowOnError>;
2275
2270
  /**
2276
2271
  * Add a publication domain
2277
2272
  *
2278
- * Claims a hostname for an opt-in topic with its public archive enabled and published. Requires issueWeb. Reuse the UUID idempotencyKey when retrying. The hostname serves no publication until Cloudflare confirms both ownership and SSL are active.
2273
+ * 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
2274
  */
2280
2275
  static add<ThrowOnError extends boolean = false>(parameters: {
2281
- id: TopicId;
2276
+ id: NewsletterId;
2282
2277
  hostname: string;
2283
- idempotencyKey: string;
2284
- }, options?: Options<never, ThrowOnError>): RequestResult<TopicPublicationDomainsAddResponses, TopicPublicationDomainsAddErrors, ThrowOnError>;
2278
+ }, options?: Options<never, ThrowOnError>): RequestResult<NewsletterDomainsAddResponses, NewsletterDomainsAddErrors, ThrowOnError>;
2285
2279
  /**
2286
2280
  * Remove a publication domain
2287
2281
  *
2288
- * Revokes publication lookup before removing the Cloudflare hostname. Reuse the UUID idempotencyKey query value on retries. Pending provider teardown is reported as removing. Removal remains available after the topic archive is disabled.
2282
+ * 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
2283
  */
2290
2284
  static remove<ThrowOnError extends boolean = false>(parameters: {
2291
- id: TopicId;
2285
+ id: NewsletterId;
2292
2286
  hostname: string;
2293
- idempotencyKey: string;
2294
- }, options?: Options<never, ThrowOnError>): RequestResult<TopicPublicationDomainsRemoveResponses, TopicPublicationDomainsRemoveErrors, ThrowOnError>;
2287
+ }, options?: Options<never, ThrowOnError>): RequestResult<NewsletterDomainsRemoveResponses, NewsletterDomainsRemoveErrors, ThrowOnError>;
2295
2288
  /**
2296
2289
  * Get a publication domain
2297
2290
  *
2298
- * Rechecks ownership and certificate status, returning DNS verification records. Domains outside this topic's organization or namespace return 404.
2291
+ * Rechecks ownership and certificate status, returning DNS verification records. Domains outside this newsletter's organization or namespace return 404.
2299
2292
  */
2300
2293
  static get<ThrowOnError extends boolean = false>(parameters: {
2301
- id: TopicId;
2294
+ id: NewsletterId;
2302
2295
  hostname: string;
2303
- }, options?: Options<never, ThrowOnError>): RequestResult<TopicPublicationDomainsGetResponses, TopicPublicationDomainsGetErrors, ThrowOnError>;
2296
+ }, options?: Options<never, ThrowOnError>): RequestResult<NewsletterDomainsGetResponses, NewsletterDomainsGetErrors, ThrowOnError>;
2304
2297
  }
2305
- export declare class PublicationDomains {
2306
- static topicPublicationDomains: typeof TopicPublicationDomains;
2298
+ export declare class Newsletters {
2299
+ /**
2300
+ * List newsletters
2301
+ *
2302
+ * List visible newsletters and their consent topics and publishing settings. The topic namespace bounds access.
2303
+ */
2304
+ static list<ThrowOnError extends boolean = false>(parameters?: {
2305
+ namespaceId?: NamespaceId | null | undefined;
2306
+ }, options?: Options<never, ThrowOnError>): RequestResult<NewslettersListResponses, NewslettersListErrors, ThrowOnError>;
2307
+ /**
2308
+ * Create a newsletter
2309
+ *
2310
+ * 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.
2311
+ */
2312
+ static create<ThrowOnError extends boolean = false>(parameters?: {
2313
+ topicId?: TopicId | null | undefined;
2314
+ name?: string | null | undefined;
2315
+ description?: string | null | undefined;
2316
+ namespaceId?: NamespaceId | null | undefined;
2317
+ archiveEnabled?: boolean | null | undefined;
2318
+ publicationSlug?: string | null | undefined;
2319
+ }, options?: Options<never, ThrowOnError>): RequestResult<NewslettersCreateResponses, NewslettersCreateErrors, ThrowOnError>;
2320
+ /**
2321
+ * Delete a newsletter
2322
+ *
2323
+ * Withdraws the public archive and removes the issue repository. The consent topic and its subscriptions remain.
2324
+ */
2325
+ static remove<ThrowOnError extends boolean = false>(parameters: {
2326
+ id: NewsletterId;
2327
+ }, options?: Options<never, ThrowOnError>): RequestResult<NewslettersRemoveResponses, NewslettersRemoveErrors, ThrowOnError>;
2328
+ /**
2329
+ * Get a newsletter
2330
+ *
2331
+ * Read one newsletter, including its consent topic ID, issue project, archive status, and hosted slug.
2332
+ */
2333
+ static get<ThrowOnError extends boolean = false>(parameters: {
2334
+ id: NewsletterId;
2335
+ }, options?: Options<never, ThrowOnError>): RequestResult<NewslettersGetResponses, NewslettersGetErrors, ThrowOnError>;
2336
+ /**
2337
+ * Update a newsletter
2338
+ *
2339
+ * 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.
2340
+ */
2341
+ static update<ThrowOnError extends boolean = false>(parameters: {
2342
+ id: NewsletterId;
2343
+ archiveEnabled?: boolean | null | undefined;
2344
+ publicationSlug?: string | null | undefined;
2345
+ }, options?: Options<never, ThrowOnError>): RequestResult<NewslettersUpdateResponses, NewslettersUpdateErrors, ThrowOnError>;
2346
+ static issues: typeof Issues;
2347
+ static domains: typeof Domains;
2307
2348
  }
2308
2349
  export declare class Analytics {
2309
2350
  /**
@@ -2399,12 +2440,11 @@ export declare class Templates {
2399
2440
  slug?: string | null | undefined;
2400
2441
  galleryTemplateId?: string | null | undefined;
2401
2442
  useBrand?: boolean | null | undefined;
2402
- description?: string | null | null | undefined;
2403
- category?: "transactional" | "marketing" | "support" | "notification" | "verification" | "reminder" | "alert" | null | null | undefined;
2443
+ description?: string | null | undefined;
2444
+ category?: "transactional" | "marketing" | "support" | "notification" | "verification" | "reminder" | "alert" | null | undefined;
2404
2445
  isActive?: boolean | null | undefined;
2405
2446
  namespaceId?: NamespaceId | null | undefined;
2406
2447
  shared?: boolean | null | undefined;
2407
- idempotencyKey: string;
2408
2448
  }, options?: Options<never, ThrowOnError>): RequestResult<TemplatesCreateResponses, TemplatesCreateErrors, ThrowOnError>;
2409
2449
  /**
2410
2450
  * List template families
@@ -2502,14 +2542,14 @@ export declare class Templates {
2502
2542
  name?: string | null | undefined;
2503
2543
  slug?: string | null | undefined;
2504
2544
  entryPath?: string | null | undefined;
2505
- description?: string | null | null | undefined;
2506
- category?: "transactional" | "marketing" | "support" | "notification" | "verification" | "reminder" | "alert" | null | null | undefined;
2507
- fromDefault?: TemplateFromDefault | null | null | undefined;
2508
- replyToDefault?: Array<string> | null | null | undefined;
2545
+ description?: string | null | undefined;
2546
+ category?: "transactional" | "marketing" | "support" | "notification" | "verification" | "reminder" | "alert" | null | undefined;
2547
+ fromDefault?: TemplateFromDefault | null | undefined;
2548
+ replyToDefault?: Array<string> | null | undefined;
2509
2549
  /**
2510
2550
  * 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
2551
  */
2512
- trackingDefault?: TemplateTrackingDefault | null | null | undefined;
2552
+ trackingDefault?: TemplateTrackingDefault | null | undefined;
2513
2553
  isActive?: boolean | null | undefined;
2514
2554
  /**
2515
2555
  * 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 +2566,6 @@ export declare class Templates {
2526
2566
  url: string;
2527
2567
  name?: string | null | undefined;
2528
2568
  namespaceId?: NamespaceId | null | undefined;
2529
- idempotencyKey: string;
2530
2569
  }, options?: Options<never, ThrowOnError>): RequestResult<TemplatesCreateFromWebsiteResponses, TemplatesCreateFromWebsiteErrors, ThrowOnError>;
2531
2570
  /**
2532
2571
  * Add a template entry
@@ -2538,8 +2577,8 @@ export declare class Templates {
2538
2577
  entryPath: string;
2539
2578
  name: string;
2540
2579
  slug: string;
2541
- description?: string | null | null | undefined;
2542
- category?: "transactional" | "marketing" | "support" | "notification" | "verification" | "reminder" | "alert" | null | null | undefined;
2580
+ description?: string | null | undefined;
2581
+ category?: "transactional" | "marketing" | "support" | "notification" | "verification" | "reminder" | "alert" | null | undefined;
2543
2582
  }, options?: Options<never, ThrowOnError>): RequestResult<TemplatesAddEntryResponses, TemplatesAddEntryErrors, ThrowOnError>;
2544
2583
  /**
2545
2584
  * Patch template project files
@@ -2553,7 +2592,6 @@ export declare class Templates {
2553
2592
  path: string;
2554
2593
  content: string | null;
2555
2594
  }>;
2556
- idempotencyKey: string;
2557
2595
  }, options?: Options<never, ThrowOnError>): RequestResult<TemplatesPatchWorkspaceResponses, TemplatesPatchWorkspaceErrors, ThrowOnError>;
2558
2596
  /**
2559
2597
  * Open a template project workspace
@@ -2583,7 +2621,6 @@ export declare class Templates {
2583
2621
  path: string;
2584
2622
  contentBase64: string;
2585
2623
  replace: boolean;
2586
- idempotencyKey: string;
2587
2624
  }, options?: Options<never, ThrowOnError>): RequestResult<TemplatesPutWorkspaceAssetResponses, TemplatesPutWorkspaceAssetErrors, ThrowOnError>;
2588
2625
  /**
2589
2626
  * Resolve a template workspace conflict
@@ -2597,7 +2634,6 @@ export declare class Templates {
2597
2634
  resolution: "draft" | "main" | {
2598
2635
  content: string | null;
2599
2636
  };
2600
- idempotencyKey: string;
2601
2637
  }, options?: Options<never, ThrowOnError>): RequestResult<TemplatesResolveWorkspaceConflictResponses, TemplatesResolveWorkspaceConflictErrors, ThrowOnError>;
2602
2638
  /**
2603
2639
  * Save a template project workspace
@@ -2609,7 +2645,6 @@ export declare class Templates {
2609
2645
  expectedRevision: string;
2610
2646
  expectedHead: string;
2611
2647
  message: string;
2612
- idempotencyKey: string;
2613
2648
  }, options?: Options<never, ThrowOnError>): RequestResult<TemplatesSaveWorkspaceResponses, TemplatesSaveWorkspaceErrors, ThrowOnError>;
2614
2649
  /**
2615
2650
  * Stage a historical template project tree
@@ -2620,7 +2655,6 @@ export declare class Templates {
2620
2655
  id: TemplateId;
2621
2656
  expectedRevision: string;
2622
2657
  commit: string;
2623
- idempotencyKey: string;
2624
2658
  }, options?: Options<never, ThrowOnError>): RequestResult<TemplatesRestoreWorkspaceResponses, TemplatesRestoreWorkspaceErrors, ThrowOnError>;
2625
2659
  /**
2626
2660
  * List template project commit history
@@ -2739,7 +2773,6 @@ export declare class Templates {
2739
2773
  contentBase64: string;
2740
2774
  }>;
2741
2775
  };
2742
- idempotencyKey: string;
2743
2776
  }, options?: Options<never, ThrowOnError>): RequestResult<TemplatesAttachWorkspaceResourceResponses, TemplatesAttachWorkspaceResourceErrors, ThrowOnError>;
2744
2777
  /**
2745
2778
  * Remove a template workspace resource
@@ -2750,7 +2783,6 @@ export declare class Templates {
2750
2783
  id: TemplateId;
2751
2784
  resourceId: string;
2752
2785
  expectedRevision: string;
2753
- idempotencyKey: string;
2754
2786
  }, options?: Options<never, ThrowOnError>): RequestResult<TemplatesRemoveWorkspaceResourceResponses, TemplatesRemoveWorkspaceResourceErrors, ThrowOnError>;
2755
2787
  }
2756
2788
  export declare class Templates2 {
@@ -2872,9 +2904,9 @@ export declare class Webhooks {
2872
2904
  name?: string | null | undefined;
2873
2905
  url?: string | null | undefined;
2874
2906
  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 | null | undefined;
2876
- mailboxIds?: [MailboxId, ...Array<MailboxId>] | null | null | undefined;
2877
- namespaceId?: NamespaceId | null | null | undefined;
2907
+ channels?: Array<"email"> | null | undefined;
2908
+ mailboxIds?: [MailboxId, ...Array<MailboxId>] | null | undefined;
2909
+ namespaceId?: NamespaceId | null | undefined;
2878
2910
  headers?: {
2879
2911
  [key: string]: string | undefined;
2880
2912
  } | null | undefined;
@@ -2964,14 +2996,14 @@ export declare class Organizations {
2964
2996
  name?: string | null | undefined;
2965
2997
  slug?: string | null | undefined;
2966
2998
  avatarUrl?: string | null | null | undefined;
2967
- defaultRegion?: PhoneRegion | null | null | undefined;
2999
+ defaultRegion?: PhoneRegion | null | undefined;
2968
3000
  timezone?: IanaTimezone | null | undefined;
2969
3001
  isActive?: boolean | null | undefined;
2970
3002
  metadata?: {
2971
3003
  [key: string]: JsonValueWritable | undefined;
2972
3004
  } | null | undefined;
2973
- replyToDefault?: Array<string> | null | null | undefined;
2974
- emailFooterEnabledDefault?: boolean | null | null | undefined;
3005
+ replyToDefault?: Array<string> | null | undefined;
3006
+ emailFooterEnabledDefault?: boolean | null | undefined;
2975
3007
  }, options?: Options<never, ThrowOnError>): RequestResult<OrganizationsUpdateResponses, OrganizationsUpdateErrors, ThrowOnError>;
2976
3008
  /**
2977
3009
  * Get the current account profile
@@ -3006,7 +3038,6 @@ export declare class Organizations {
3006
3038
  * 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
3039
  */
3008
3040
  static delete<ThrowOnError extends boolean = false>(parameters: {
3009
- "idempotency-key": string;
3010
3041
  confirmationName: string;
3011
3042
  }, options?: Options<never, ThrowOnError>): RequestResult<OrganizationsDeleteResponses, OrganizationsDeleteErrors, ThrowOnError>;
3012
3043
  }
@@ -3199,7 +3230,7 @@ export declare class Mailboxes {
3199
3230
  static updateEndpoint<ThrowOnError extends boolean = false>(parameters: {
3200
3231
  id: MailboxId;
3201
3232
  endpointId: MailboxEndpointId;
3202
- displayName?: string | null | null | undefined;
3233
+ displayName?: string | null | undefined;
3203
3234
  default?: true | null | undefined;
3204
3235
  }, options?: Options<never, ThrowOnError>): RequestResult<MailboxesUpdateEndpointResponses, MailboxesUpdateEndpointErrors, ThrowOnError>;
3205
3236
  /**
@@ -3317,7 +3348,7 @@ export declare class Mailboxes {
3317
3348
  policyId: MailboxPolicyId;
3318
3349
  name?: string | null | undefined;
3319
3350
  outcome?: MailboxPolicyOutcomeKind | null | undefined;
3320
- reason?: string | null | null | undefined;
3351
+ reason?: string | null | undefined;
3321
3352
  enabled?: boolean | null | undefined;
3322
3353
  }, options?: Options<never, ThrowOnError>): RequestResult<MailboxesUpdatePolicyResponses, MailboxesUpdatePolicyErrors, ThrowOnError>;
3323
3354
  /**
@@ -3345,7 +3376,7 @@ export declare class Mailboxes {
3345
3376
  id: MailboxId;
3346
3377
  slug: string;
3347
3378
  displayName: string;
3348
- color?: "billing" | "domain" | "agent" | "routing" | "important" | "neutral" | null | null | undefined;
3379
+ color?: "billing" | "domain" | "agent" | "routing" | "important" | "neutral" | null | undefined;
3349
3380
  }, options?: Options<never, ThrowOnError>): RequestResult<MailboxesCreateLabelResponses, MailboxesCreateLabelErrors, ThrowOnError>;
3350
3381
  /**
3351
3382
  * Delete a mailbox label
@@ -3365,7 +3396,7 @@ export declare class Mailboxes {
3365
3396
  id: MailboxId;
3366
3397
  labelId: MailboxLabelId;
3367
3398
  displayName?: string | null | undefined;
3368
- color?: "billing" | "domain" | "agent" | "routing" | "important" | "neutral" | null | null | undefined;
3399
+ color?: "billing" | "domain" | "agent" | "routing" | "important" | "neutral" | null | undefined;
3369
3400
  }, options?: Options<never, ThrowOnError>): RequestResult<MailboxesUpdateLabelResponses, MailboxesUpdateLabelErrors, ThrowOnError>;
3370
3401
  /**
3371
3402
  * List threads in a mailbox
@@ -3406,7 +3437,7 @@ export declare class Mailboxes {
3406
3437
  priority?: MailboxThreadPriority | null | undefined;
3407
3438
  read?: boolean | null | undefined;
3408
3439
  starred?: boolean | null | undefined;
3409
- snoozedUntil?: string | null | null | undefined;
3440
+ snoozedUntil?: string | null | undefined;
3410
3441
  }, options?: Options<never, ThrowOnError>): RequestResult<MailboxesUpdateThreadResponses, MailboxesUpdateThreadErrors, ThrowOnError>;
3411
3442
  /**
3412
3443
  * Remove thread labels
@@ -3470,7 +3501,7 @@ export declare class Mailboxes {
3470
3501
  id: MailboxId;
3471
3502
  threadId: MailboxThreadId;
3472
3503
  body: string;
3473
- color?: string | null | null | undefined;
3504
+ color?: string | null | undefined;
3474
3505
  pinned?: boolean | null | undefined;
3475
3506
  }, options?: Options<never, ThrowOnError>): RequestResult<MailboxesCreateNoteResponses, MailboxesCreateNoteErrors, ThrowOnError>;
3476
3507
  /**
@@ -3493,7 +3524,7 @@ export declare class Mailboxes {
3493
3524
  threadId: MailboxThreadId;
3494
3525
  noteId: MailboxNoteId;
3495
3526
  body?: string | null | undefined;
3496
- color?: string | null | null | undefined;
3527
+ color?: string | null | undefined;
3497
3528
  pinned?: boolean | null | undefined;
3498
3529
  }, options?: Options<never, ThrowOnError>): RequestResult<MailboxesUpdateNoteResponses, MailboxesUpdateNoteErrors, ThrowOnError>;
3499
3530
  /**
@@ -3502,7 +3533,6 @@ export declare class Mailboxes {
3502
3533
  * 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
3534
  */
3504
3535
  static sendMessage<ThrowOnError extends boolean = false>(parameters: {
3505
- "idempotency-key"?: string | null | undefined;
3506
3536
  id: MailboxId;
3507
3537
  channel?: "email" | null | undefined;
3508
3538
  to: [string, ...Array<string>];
@@ -3558,7 +3588,6 @@ export declare class Mailboxes {
3558
3588
  * 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
3589
  */
3560
3590
  static reply<ThrowOnError extends boolean = false>(parameters: {
3561
- "idempotency-key"?: string | null | undefined;
3562
3591
  id: MailboxId;
3563
3592
  messageId: MessageId;
3564
3593
  channel?: "email" | null | undefined;
@@ -3574,7 +3603,6 @@ export declare class Mailboxes {
3574
3603
  * 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
3604
  */
3576
3605
  static replyAll<ThrowOnError extends boolean = false>(parameters: {
3577
- "idempotency-key"?: string | null | undefined;
3578
3606
  id: MailboxId;
3579
3607
  messageId: MessageId;
3580
3608
  channel?: "email" | null | undefined;
@@ -3590,7 +3618,6 @@ export declare class Mailboxes {
3590
3618
  * 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
3619
  */
3592
3620
  static forward<ThrowOnError extends boolean = false>(parameters: {
3593
- "idempotency-key"?: string | null | undefined;
3594
3621
  id: MailboxId;
3595
3622
  messageId: MessageId;
3596
3623
  to: [string, ...Array<string>];
@@ -3687,13 +3714,13 @@ export declare class Mailboxes {
3687
3714
  id: MailboxId;
3688
3715
  draftId: MailboxDraftId;
3689
3716
  to?: Array<string> | null | undefined;
3690
- cc?: Array<string> | null | null | undefined;
3691
- bcc?: Array<string> | null | null | undefined;
3692
- replyTo?: Array<string> | null | null | undefined;
3693
- subject?: string | null | null | undefined;
3694
- text?: string | null | null | undefined;
3695
- html?: string | null | null | undefined;
3696
- attachments?: Array<EmailAttachment> | null | null | undefined;
3717
+ cc?: Array<string> | null | undefined;
3718
+ bcc?: Array<string> | null | undefined;
3719
+ replyTo?: Array<string> | null | undefined;
3720
+ subject?: string | null | undefined;
3721
+ text?: string | null | undefined;
3722
+ html?: string | null | undefined;
3723
+ attachments?: Array<EmailAttachment> | null | undefined;
3697
3724
  }, options?: Options<never, ThrowOnError>): RequestResult<MailboxesUpdateDraftResponses, MailboxesUpdateDraftErrors, ThrowOnError>;
3698
3725
  /**
3699
3726
  * Send a draft
@@ -3701,7 +3728,6 @@ export declare class Mailboxes {
3701
3728
  * 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
3729
  */
3703
3730
  static sendDraft<ThrowOnError extends boolean = false>(parameters: {
3704
- "idempotency-key"?: string | null | undefined;
3705
3731
  id: MailboxId;
3706
3732
  draftId: MailboxDraftId;
3707
3733
  }, options?: Options<never, ThrowOnError>): RequestResult<MailboxesSendDraftResponses, MailboxesSendDraftErrors, ThrowOnError>;