samva 0.34.0 → 0.36.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 (129) hide show
  1. package/AGENTS.md +17 -0
  2. package/README.md +2 -1
  3. package/dist/client/sdk.gen.d.ts +325 -331
  4. package/dist/client/sdk.gen.js +406 -454
  5. package/dist/client/types.gen.d.ts +3465 -750
  6. package/dist/effect/agents.d.ts +222 -17
  7. package/dist/effect/agents.js +7 -1
  8. package/dist/effect/analytics.d.ts +21 -15
  9. package/dist/effect/api-keys.d.ts +30 -24
  10. package/dist/effect/campaigns.d.ts +695 -39
  11. package/dist/effect/categories.d.ts +3 -3
  12. package/dist/effect/contact-groups.d.ts +15 -15
  13. package/dist/effect/contacts.d.ts +56 -52
  14. package/dist/effect/conversations.d.ts +51 -45
  15. package/dist/effect/email.d.ts +82 -82
  16. package/dist/effect/errors.d.ts +1 -1
  17. package/dist/effect/errors.js +2 -2
  18. package/dist/effect/extension-installations.d.ts +64 -12
  19. package/dist/effect/extensions.d.ts +16 -16
  20. package/dist/effect/generated/agents.d.ts +2902 -150
  21. package/dist/effect/generated/agents.js +219 -31
  22. package/dist/effect/generated/analytics.d.ts +127 -136
  23. package/dist/effect/generated/analytics.js +72 -37
  24. package/dist/effect/generated/api-keys.d.ts +243 -47
  25. package/dist/effect/generated/api-keys.js +27 -12
  26. package/dist/effect/generated/attachments.d.ts +89 -1
  27. package/dist/effect/generated/attachments.js +10 -2
  28. package/dist/effect/generated/brands.d.ts +133 -1
  29. package/dist/effect/generated/brands.js +22 -10
  30. package/dist/effect/generated/campaigns.d.ts +1467 -143
  31. package/dist/effect/generated/campaigns.js +84 -20
  32. package/dist/effect/generated/contact-events.d.ts +26 -4
  33. package/dist/effect/generated/contact-events.js +5 -3
  34. package/dist/effect/generated/contact-groups.d.ts +233 -13
  35. package/dist/effect/generated/contact-groups.js +33 -17
  36. package/dist/effect/generated/contacts.d.ts +634 -96
  37. package/dist/effect/generated/contacts.js +82 -20
  38. package/dist/effect/generated/conversations.d.ts +501 -108
  39. package/dist/effect/generated/conversations.js +106 -22
  40. package/dist/effect/generated/custom-fields.d.ts +89 -1
  41. package/dist/effect/generated/custom-fields.js +11 -3
  42. package/dist/effect/generated/email.d.ts +1447 -83
  43. package/dist/effect/generated/email.js +167 -43
  44. package/dist/effect/generated/events.d.ts +51 -7
  45. package/dist/effect/generated/events.js +9 -5
  46. package/dist/effect/generated/extension-installations.d.ts +1052 -77
  47. package/dist/effect/generated/extension-installations.js +45 -31
  48. package/dist/effect/generated/extensions.d.ts +123 -13
  49. package/dist/effect/generated/extensions.js +20 -10
  50. package/dist/effect/generated/feedback.d.ts +23 -1
  51. package/dist/effect/generated/feedback.js +6 -4
  52. package/dist/effect/generated/index.d.ts +3 -1
  53. package/dist/effect/generated/journeys.d.ts +684 -16
  54. package/dist/effect/generated/journeys.js +37 -9
  55. package/dist/effect/generated/mailboxes.d.ts +6169 -1734
  56. package/dist/effect/generated/mailboxes.js +549 -344
  57. package/dist/effect/generated/media.d.ts +125 -15
  58. package/dist/effect/generated/media.js +15 -2
  59. package/dist/effect/generated/messages.d.ts +2036 -117
  60. package/dist/effect/generated/messages.js +286 -54
  61. package/dist/effect/generated/namespaces.d.ts +215 -55
  62. package/dist/effect/generated/namespaces.js +30 -12
  63. package/dist/effect/generated/newsletter-domains.d.ts +98 -12
  64. package/dist/effect/generated/newsletter-domains.js +20 -13
  65. package/dist/effect/generated/newsletter-issues.d.ts +354 -19
  66. package/dist/effect/generated/newsletter-issues.js +162 -98
  67. package/dist/effect/generated/newsletters.d.ts +123 -13
  68. package/dist/effect/generated/newsletters.js +19 -9
  69. package/dist/effect/generated/operations.d.ts +76 -10
  70. package/dist/effect/generated/operations.js +12 -6
  71. package/dist/effect/generated/organizations.d.ts +287 -7
  72. package/dist/effect/generated/organizations.js +33 -5
  73. package/dist/effect/generated/policies.d.ts +953 -0
  74. package/dist/effect/generated/policies.js +116 -0
  75. package/dist/effect/generated/scheduled-messages.d.ts +4418 -49
  76. package/dist/effect/generated/scheduled-messages.js +77 -13
  77. package/dist/effect/generated/shared.d.ts +3213 -521
  78. package/dist/effect/generated/shared.js +713 -128
  79. package/dist/effect/generated/subscriptions.d.ts +23 -1
  80. package/dist/effect/generated/subscriptions.js +6 -4
  81. package/dist/effect/generated/templates.d.ts +2081 -693
  82. package/dist/effect/generated/templates.js +482 -267
  83. package/dist/effect/generated/topic-forms.d.ts +111 -1
  84. package/dist/effect/generated/topic-forms.js +23 -13
  85. package/dist/effect/generated/topics.d.ts +353 -43
  86. package/dist/effect/generated/topics.js +67 -19
  87. package/dist/effect/generated/webhooks.d.ts +318 -57
  88. package/dist/effect/generated/webhooks.js +68 -17
  89. package/dist/effect/generated/whoami.d.ts +35 -5
  90. package/dist/effect/generated/whoami.js +4 -2
  91. package/dist/effect/generated-metadata.d.ts +56 -32
  92. package/dist/effect/generated-metadata.js +137 -105
  93. package/dist/effect/index.d.ts +1 -0
  94. package/dist/effect/index.js +3 -2
  95. package/dist/effect/internal/client.js +1 -1
  96. package/dist/effect/internal/email-sender.d.ts +1 -1
  97. package/dist/effect/internal/operation.js +5 -32
  98. package/dist/effect/internal/send.d.ts +1 -1
  99. package/dist/effect/journeys.d.ts +169 -83
  100. package/dist/effect/mailboxes.d.ts +978 -301
  101. package/dist/effect/mailboxes.js +1 -11
  102. package/dist/effect/media.d.ts +1 -1
  103. package/dist/effect/messages.d.ts +40 -40
  104. package/dist/effect/namespaces.d.ts +15 -15
  105. package/dist/effect/newsletter-domains.d.ts +5 -5
  106. package/dist/effect/newsletters.d.ts +1 -1
  107. package/dist/effect/operations.d.ts +11 -11
  108. package/dist/effect/organizations.d.ts +2 -2
  109. package/dist/effect/policies.d.ts +65 -0
  110. package/dist/effect/policies.js +16 -0
  111. package/dist/effect/scheduled-messages.d.ts +869 -8
  112. package/dist/effect/templates.d.ts +43 -45
  113. package/dist/effect/templates.js +5 -3
  114. package/dist/effect/topics.d.ts +23 -23
  115. package/dist/effect/webhooks.d.ts +29 -26
  116. package/dist/index.js +2 -2
  117. package/dist/mailbox/test.js +11 -4
  118. package/dist/mailbox/types.d.ts +39 -3
  119. package/dist/normalize.js +13 -1
  120. package/dist/package.js +1 -1
  121. package/dist/promises/client.d.ts +4 -2
  122. package/dist/promises/client.js +5 -3
  123. package/dist/promises/errors.gen.d.ts +38 -2
  124. package/dist/promises/errors.gen.js +394 -34
  125. package/dist/promises/index.js +2 -2
  126. package/dist/promises/types.gen.d.ts +1 -1
  127. package/dist/service-map.d.ts +39 -28
  128. package/dist/service-map.js +220 -782
  129. package/package.json +13 -8
@@ -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, MailboxesGetNeedsYouErrors, MailboxesGetNeedsYouResponses, MailboxesGetPolicyErrors, MailboxesGetPolicyResponses, MailboxesGetResponses, MailboxesGetThreadContentErrors, MailboxesGetThreadContentResponses, MailboxesGetThreadErrors, MailboxesGetThreadResponses, MailboxesListActionsErrors, MailboxesListActionsResponses, MailboxesListDraftsErrors, MailboxesListDraftsResponses, MailboxesListErrors, MailboxesListEventsErrors, MailboxesListEventsResponses, MailboxesListFoldersErrors, MailboxesListFoldersResponses, MailboxesListGrantsErrors, MailboxesListGrantsResponses, MailboxesListLabelsErrors, MailboxesListLabelsResponses, MailboxesListOrganizationDraftsErrors, MailboxesListOrganizationDraftsResponses, MailboxesListOrganizationThreadsErrors, MailboxesListOrganizationThreadsResponses, 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, OrganizationsAssignPersonalMailboxErrors, OrganizationsAssignPersonalMailboxResponses, OrganizationsCreateAvatarUploadErrors, OrganizationsCreateAvatarUploadResponses, OrganizationsCreateErrors, OrganizationsCreateResponses, OrganizationsDeleteErrors, OrganizationsDeleteResponses, OrganizationsGetErrors, OrganizationsGetPersonalMailboxAddressOptionsErrors, OrganizationsGetPersonalMailboxAddressOptionsResponses, OrganizationsGetProfileErrors, OrganizationsGetProfileResponses, OrganizationsGetResponses, OrganizationsGetTrustTierErrors, OrganizationsGetTrustTierResponses, OrganizationsGetUsageErrors, OrganizationsGetUsageResponses, OrganizationsListPersonalMailboxAssignmentsErrors, OrganizationsListPersonalMailboxAssignmentsResponses, 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";
2
+ import type { AgentDefinition, AgentId, AgentName, AgentsContinueOnStandardErrors, AgentsContinueOnStandardResponses, AgentsCreateErrors, AgentsCreateResponses, AgentsGetErrors, AgentsGetResponses, AgentsGetVersionErrors, AgentsGetVersionResponses, AgentsListErrors, AgentsListModelsErrors, AgentsListModelsResponses, AgentsListResponses, AgentsListVersionsErrors, AgentsListVersionsResponses, AgentsPublishErrors, AgentsPublishResponses, AgentsRemoveErrors, AgentsRemoveResponses, AgentsReplaceDraftErrors, AgentsReplaceDraftResponses, AgentsRerunTestsErrors, AgentsRerunTestsResponses, AgentsUpdateErrors, AgentsUpdateResponses, AnalyticsExportDataErrors, AnalyticsExportDataResponses, AnalyticsGetChannelStatsErrors, AnalyticsGetChannelStatsResponses, AnalyticsGetDeliveryMetricsErrors, AnalyticsGetDeliveryMetricsResponses, AnalyticsGetHourlyDistributionErrors, AnalyticsGetHourlyDistributionResponses, AnalyticsGetStatsErrors, AnalyticsGetStatsResponses, AnalyticsGetTopContactsErrors, AnalyticsGetTopContactsResponses, ApiKeyAccess, ApiKeyId, 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, CreateMailboxChatDraftPayload, CreateMailboxEmailDraftPayload, CreateMailboxEndpointPayload, 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, EmailSendMessagePayload, 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, MailboxesCreateResponses, MailboxesDeleteDraftErrors, MailboxesDeleteDraftResponses, MailboxesDeleteLabelErrors, MailboxesDeleteLabelResponses, MailboxesDeleteNoteErrors, MailboxesDeleteNoteResponses, MailboxesDenyActionErrors, MailboxesDenyActionResponses, MailboxesDiscardMessageErrors, MailboxesDiscardMessageResponses, MailboxesForwardErrors, MailboxesForwardResponses, MailboxesGetActionErrors, MailboxesGetActionResponses, MailboxesGetAgentActivityErrors, MailboxesGetAgentActivityResponses, MailboxesGetDraftErrors, MailboxesGetDraftResponses, MailboxesGetErrors, MailboxesGetMessageAttachmentErrors, MailboxesGetMessageAttachmentResponses, MailboxesGetMessageErrors, MailboxesGetMessageRawErrors, MailboxesGetMessageRawResponses, MailboxesGetMessageResponses, MailboxesGetNeedsYouErrors, MailboxesGetNeedsYouResponses, MailboxesGetResponses, MailboxesGetThreadContentErrors, MailboxesGetThreadContentResponses, MailboxesGetThreadErrors, MailboxesGetThreadResponses, MailboxesListActionsErrors, MailboxesListActionsResponses, MailboxesListDraftsErrors, MailboxesListDraftsResponses, MailboxesListErrors, MailboxesListEventsErrors, MailboxesListEventsResponses, MailboxesListFoldersErrors, MailboxesListFoldersResponses, MailboxesListGrantsErrors, MailboxesListGrantsResponses, MailboxesListLabelsErrors, MailboxesListLabelsResponses, MailboxesListOrganizationDraftsErrors, MailboxesListOrganizationDraftsResponses, MailboxesListOrganizationThreadsErrors, MailboxesListOrganizationThreadsResponses, 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, MailboxesUpdateResponses, MailboxesUpdateThreadErrors, MailboxesUpdateThreadResponses, MailboxGrantId, MailboxGrantRole, MailboxId, MailboxLabelId, MailboxMetadataPatch, MailboxMetadataWritable, MailboxNoteId, 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, MonthlySpendCapDollars, 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, OrganizationsAssignPersonalMailboxErrors, OrganizationsAssignPersonalMailboxResponses, OrganizationsCreateAvatarUploadErrors, OrganizationsCreateAvatarUploadResponses, OrganizationsCreateErrors, OrganizationsCreateResponses, OrganizationsDeleteErrors, OrganizationsDeleteResponses, OrganizationsGetErrors, OrganizationsGetPersonalMailboxAddressOptionsErrors, OrganizationsGetPersonalMailboxAddressOptionsResponses, OrganizationsGetProfileErrors, OrganizationsGetProfileResponses, OrganizationsGetResponses, OrganizationsGetTrustTierErrors, OrganizationsGetTrustTierResponses, OrganizationsGetUsageErrors, OrganizationsGetUsageResponses, OrganizationsListPersonalMailboxAssignmentsErrors, OrganizationsListPersonalMailboxAssignmentsResponses, OrganizationsUpdateErrors, OrganizationsUpdateResponses, PhoneRegion, PoliciesDeletePolicyErrors, PoliciesDeletePolicyResponses, PoliciesGetPolicyErrors, PoliciesGetPolicyResponses, PoliciesSetPolicyErrors, PoliciesSetPolicyResponses, PolicyConfiguration, PolicyReviewRound, PolicyRule, PolicyVersion, RenderLocale, RenderTimeZone, ReplyMailboxChatPayload, ReplyMailboxEmailPayload, ScheduledMessageId, ScheduledMessagesCancelErrors, ScheduledMessagesCancelResponses, ScheduledMessagesCreateErrors, ScheduledMessagesCreateResponses, ScheduledMessagesGetErrors, ScheduledMessagesGetResponses, ScheduledMessagesListErrors, ScheduledMessagesListResponses, ScheduledMessagesResumeErrors, ScheduledMessagesResumeResponses, SendMailboxChatPayload, SendMailboxEmailPayload, SmsSendMessagePayload, 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, TemplatesDeleteErrors, TemplatesDeleteFamilyErrors, TemplatesDeleteFamilyResponses, TemplatesDeleteProjectErrors, TemplatesDeleteProjectResponses, TemplatesDeleteResponses, 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, 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, WebhookDeliveryId, WebhookEndpointId, WebhooksCreateErrors, WebhooksCreateResponses, WebhooksGetErrors, WebhooksGetLogsErrors, WebhooksGetLogsResponses, WebhooksGetResponses, WebhooksGetSecretErrors, WebhooksGetSecretResponses, WebhooksGetStatsErrors, WebhooksGetStatsResponses, WebhooksListErrors, WebhooksListResponses, WebhooksRegenerateSecretErrors, WebhooksRegenerateSecretResponses, WebhooksRemoveErrors, WebhooksRemoveResponses, WebhooksRetryDeliveryErrors, WebhooksRetryDeliveryResponses, WebhooksTestErrors, WebhooksTestResponses, WebhooksUpdateErrors, WebhooksUpdateResponses, WhatsAppSendMessagePayload, 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
@@ -23,32 +23,23 @@ export declare class Messages {
23
23
  */
24
24
  static list<ThrowOnError extends boolean = false>(parameters?: {
25
25
  limit?: number | null | undefined;
26
- cursor?: Cursor | null | undefined;
27
- channel?: "email" | null | undefined;
28
- direction?: "outbound" | "inbound" | null | undefined;
29
- status?: "pending" | "scheduled" | "queued" | "processing" | "sent" | "delivered" | "read" | "failed" | "bounced" | "complained" | null | undefined;
30
- conversationId?: ConversationId | null | undefined;
31
- contactId?: ContactId | null | undefined;
32
- from?: string | null | undefined;
33
- namespaceId?: NamespaceId | null | undefined;
34
- after?: string | null | undefined;
35
- before?: string | null | undefined;
26
+ cursor?: string | undefined;
27
+ channel?: "sms" | "whatsapp" | "email" | undefined;
28
+ direction?: "outbound" | "inbound" | undefined;
29
+ status?: "pending" | "scheduled" | "queued" | "processing" | "sent" | "delivered" | "read" | "failed" | "bounced" | "complained" | undefined;
30
+ conversationId?: ConversationId | undefined;
31
+ contactId?: ContactId | undefined;
32
+ from?: string | undefined;
33
+ namespaceId?: NamespaceId | undefined;
34
+ after?: string | undefined;
35
+ before?: string | undefined;
36
36
  }, options?: Options<never, ThrowOnError>): RequestResult<MessagesListResponses, MessagesListErrors, ThrowOnError>;
37
37
  /**
38
38
  * Send a message
39
39
  *
40
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.
41
41
  */
42
- static send<ThrowOnError extends boolean = false>(parameters: {
43
- conversationId?: ConversationId | null | undefined;
44
- metadata?: MessageMetadataWritable | undefined;
45
- channel: "email";
46
- to: EmailRecipients;
47
- cc?: EmailCcRecipients | undefined;
48
- bcc?: EmailBccRecipients | undefined;
49
- from?: EmailSender | undefined;
50
- email: EmailContentWritable;
51
- }, options?: Options<never, ThrowOnError>): RequestResult<MessagesSendResponses, MessagesSendErrors, ThrowOnError>;
42
+ static send<ThrowOnError extends boolean = false>(parameters: EmailSendMessagePayload | SmsSendMessagePayload | WhatsAppSendMessagePayload, options?: Options<never, ThrowOnError>): RequestResult<MessagesSendResponses, MessagesSendErrors, ThrowOnError>;
52
43
  /**
53
44
  * Delete a message
54
45
  *
@@ -122,7 +113,7 @@ export declare class Messages {
122
113
  static getEvents<ThrowOnError extends boolean = false>(parameters: {
123
114
  id: MessageId;
124
115
  limit?: number | null | undefined;
125
- cursor?: Cursor | null | undefined;
116
+ cursor?: string | undefined;
126
117
  }, options?: Options<never, ThrowOnError>): RequestResult<MessagesGetEventsResponses, MessagesGetEventsErrors, ThrowOnError>;
127
118
  }
128
119
  export declare class Messages2 {
@@ -136,9 +127,9 @@ export declare class Operations {
136
127
  */
137
128
  static list<ThrowOnError extends boolean = false>(parameters?: {
138
129
  limit?: number | null | undefined;
139
- cursor?: Cursor | null | undefined;
140
- kind?: "email-domain-provisioning" | "organization-deletion" | null | undefined;
141
- status?: "pending" | "running" | "succeeded" | "failed" | null | undefined;
130
+ cursor?: string | undefined;
131
+ kind?: "email-domain-provisioning" | "organization-deletion" | undefined;
132
+ status?: "pending" | "running" | "succeeded" | "failed" | undefined;
142
133
  }, options?: Options<never, ThrowOnError>): RequestResult<OperationsListResponses, OperationsListErrors, ThrowOnError>;
143
134
  /**
144
135
  * Get an asynchronous operation
@@ -168,8 +159,9 @@ export declare class ScheduledMessages {
168
159
  */
169
160
  static list<ThrowOnError extends boolean = false>(parameters?: {
170
161
  limit?: number | null | undefined;
171
- cursor?: Cursor | null | undefined;
172
- status?: "pending" | "dispatching" | "paused" | "dispatched" | "cancelled" | "failed" | null | undefined;
162
+ cursor?: string | undefined;
163
+ namespaceId?: NamespaceId | undefined;
164
+ status?: "pending" | "dispatching" | "paused" | "dispatched" | "cancelled" | "failed" | undefined;
173
165
  }, options?: Options<never, ThrowOnError>): RequestResult<ScheduledMessagesListResponses, ScheduledMessagesListErrors, ThrowOnError>;
174
166
  /**
175
167
  * Schedule a message
@@ -177,6 +169,7 @@ export declare class ScheduledMessages {
177
169
  * Schedules a message for dispatch at the absolute ISO-8601 timestamp supplied in scheduledFor. Requires `messages:create` or the send permission of the channel it sends on, such as `email:send`. Optional timezone is validated IANA display metadata only and never changes the execution instant.
178
170
  */
179
171
  static create<ThrowOnError extends boolean = false>(parameters: {
172
+ namespaceId?: NamespaceId | null | undefined;
180
173
  send: DispatchSendMessagePayload;
181
174
  scheduledFor: string;
182
175
  timezone?: IanaTimezone | null | undefined;
@@ -243,9 +236,9 @@ export declare class Campaigns {
243
236
  * Returns the organization's campaigns, newest first, optionally filtered by status. Each row carries `series`, the last 14 days of daily email sends the campaign produced, oldest first. Pass `nextCursor` back as `cursor` for the next page; it is null on the last page.
244
237
  */
245
238
  static list<ThrowOnError extends boolean = false>(parameters?: {
246
- status?: "draft" | "archived" | null | undefined;
239
+ status?: "draft" | "archived" | undefined;
247
240
  limit?: number | null | undefined;
248
- cursor?: Cursor | null | undefined;
241
+ cursor?: string | undefined;
249
242
  }, options?: Options<never, ThrowOnError>): RequestResult<CampaignsListResponses, CampaignsListErrors, ThrowOnError>;
250
243
  /**
251
244
  * Create a campaign
@@ -254,7 +247,7 @@ export declare class Campaigns {
254
247
  */
255
248
  static create<ThrowOnError extends boolean = false>(parameters: {
256
249
  name: string;
257
- channel: "email";
250
+ channel: "sms" | "whatsapp" | "email";
258
251
  content: CampaignContentInput;
259
252
  audience: CampaignAudience;
260
253
  policy?: CampaignPolicy | null | undefined;
@@ -294,9 +287,9 @@ export declare class Campaigns {
294
287
  */
295
288
  static listRuns<ThrowOnError extends boolean = false>(parameters: {
296
289
  id: CampaignId;
297
- status?: "scheduled" | "resolving" | "dispatching" | "paused" | "completed" | "cancelled" | "failed" | null | undefined;
290
+ status?: "scheduled" | "resolving" | "dispatching" | "paused" | "completed" | "cancelled" | "failed" | undefined;
298
291
  limit?: number | null | undefined;
299
- cursor?: Cursor | null | undefined;
292
+ cursor?: string | undefined;
300
293
  }, options?: Options<never, ThrowOnError>): RequestResult<CampaignsListRunsResponses, CampaignsListRunsErrors, ThrowOnError>;
301
294
  /**
302
295
  * Schedule a campaign run
@@ -360,9 +353,9 @@ export declare class Campaigns {
360
353
  static listRecipients<ThrowOnError extends boolean = false>(parameters: {
361
354
  id: CampaignId;
362
355
  runId: CampaignRunId;
363
- status?: "pending" | "dispatching" | "dispatched" | "failed" | "skipped" | null | undefined;
356
+ status?: "pending" | "dispatching" | "dispatched" | "failed" | "skipped" | undefined;
364
357
  limit?: number | null | undefined;
365
- cursor?: Cursor | null | undefined;
358
+ cursor?: string | undefined;
366
359
  }, options?: Options<never, ThrowOnError>): RequestResult<CampaignsListRecipientsResponses, CampaignsListRecipientsErrors, ThrowOnError>;
367
360
  }
368
361
  export declare class Campaigns2 {
@@ -432,9 +425,9 @@ export declare class Email {
432
425
  */
433
426
  static listDomains<ThrowOnError extends boolean = false>(parameters?: {
434
427
  limit?: number | null | undefined;
435
- cursor?: Cursor | null | undefined;
428
+ cursor?: string | undefined;
436
429
  sendable?: true | null | undefined;
437
- namespaceId?: NamespaceId | null | undefined;
430
+ namespaceId?: NamespaceId | undefined;
438
431
  }, options?: Options<never, ThrowOnError>): RequestResult<EmailListDomainsResponses, EmailListDomainsErrors, ThrowOnError>;
439
432
  /**
440
433
  * Add a sending domain
@@ -637,11 +630,11 @@ export declare class Email {
637
630
  */
638
631
  static listSenders<ThrowOnError extends boolean = false>(parameters?: {
639
632
  limit?: number | null | undefined;
640
- cursor?: Cursor | null | undefined;
641
- verificationStatus?: "pending" | "verified" | "failed" | null | undefined;
633
+ cursor?: string | undefined;
634
+ verificationStatus?: "pending" | "verified" | "failed" | undefined;
642
635
  isActive?: boolean | null | undefined;
643
636
  isDefault?: boolean | null | undefined;
644
- namespaceId?: NamespaceId | null | undefined;
637
+ namespaceId?: NamespaceId | undefined;
645
638
  }, options?: Options<never, ThrowOnError>): RequestResult<EmailListSendersResponses, EmailListSendersErrors, ThrowOnError>;
646
639
  /**
647
640
  * Add a sender
@@ -693,8 +686,8 @@ export declare class Email {
693
686
  * Returns aggregate email statistics — sent, delivered, bounced, and complained counts with their rates — optionally scoped to messages created from `after` (inclusive) to `before` (exclusive).
694
687
  */
695
688
  static getStats<ThrowOnError extends boolean = false>(parameters?: {
696
- after?: string | null | undefined;
697
- before?: string | null | undefined;
689
+ after?: string | undefined;
690
+ before?: string | undefined;
698
691
  }, options?: Options<never, ThrowOnError>): RequestResult<EmailGetStatsResponses, EmailGetStatsErrors, ThrowOnError>;
699
692
  /**
700
693
  * Enable catch-all receiving
@@ -724,7 +717,7 @@ export declare class Email {
724
717
  /**
725
718
  * Update catch-all configuration
726
719
  *
727
- * Updates a domain's catch-all webhook endpoint or unknown-address mailbox. The mailbox must be active, in the same organization, and have an email address on the domain. Omitted fields stay unchanged; `unknownRecipientMailboxId: null` drops unknown addresses without a bounce. A webhook endpoint takes precedence over the unknown-address setting.
720
+ * Updates a domain's catch-all webhook endpoint or unknown-address mailbox without disabling catch-all. The mailbox must be active, in the same organization, and have an email address on the domain. Omitted fields stay unchanged. `endpointId: null` removes the webhook endpoint, so unknown addresses reach the configured unknown-address mailbox or are dropped without a bounce when none is set. A webhook endpoint takes precedence over the unknown-address setting.
728
721
  */
729
722
  static updateCatchAllConfig<ThrowOnError extends boolean = false>(parameters: {
730
723
  domainId: EmailDomainId;
@@ -738,8 +731,8 @@ export declare class Email {
738
731
  */
739
732
  static getCatchAllStats<ThrowOnError extends boolean = false>(parameters: {
740
733
  domainId: EmailDomainId;
741
- after?: string | null | undefined;
742
- before?: string | null | undefined;
734
+ after?: string | undefined;
735
+ before?: string | undefined;
743
736
  }, options?: Options<never, ThrowOnError>): RequestResult<EmailGetCatchAllStatsResponses, EmailGetCatchAllStatsErrors, ThrowOnError>;
744
737
  /**
745
738
  * List suppressed addresses
@@ -747,11 +740,11 @@ export declare class Email {
747
740
  * Returns the addresses this organization will not send to, newest first, optionally filtered by suppression type, active or expired state, and an address substring. Pass `nextCursor` back as `cursor` for the next page; it is null on the last page.
748
741
  */
749
742
  static listSuppressions<ThrowOnError extends boolean = false>(parameters?: {
750
- type?: "bounce" | "complaint" | "unsubscribe" | "manual" | null | undefined;
751
- status?: "active" | "expired" | null | undefined;
752
- search?: string | null | undefined;
743
+ type?: "bounce" | "complaint" | "unsubscribe" | "manual" | undefined;
744
+ status?: "active" | "expired" | undefined;
745
+ search?: string | undefined;
753
746
  limit?: number | null | undefined;
754
- cursor?: Cursor | null | undefined;
747
+ cursor?: string | undefined;
755
748
  }, options?: Options<never, ThrowOnError>): RequestResult<EmailListSuppressionsResponses, EmailListSuppressionsErrors, ThrowOnError>;
756
749
  /**
757
750
  * Count suppressed addresses
@@ -773,10 +766,10 @@ export declare class Email {
773
766
  * Returns block entries, newest first, optionally filtered by block type and active state. Pass `nextCursor` back as `cursor` for the next page; it is null on the last page.
774
767
  */
775
768
  static listBlocks<ThrowOnError extends boolean = false>(parameters?: {
776
- blockType?: "email" | "domain" | null | undefined;
769
+ blockType?: "email" | "domain" | undefined;
777
770
  isActive?: boolean | null | undefined;
778
771
  limit?: number | null | undefined;
779
- cursor?: Cursor | null | undefined;
772
+ cursor?: string | undefined;
780
773
  }, options?: Options<never, ThrowOnError>): RequestResult<EmailListBlocksResponses, EmailListBlocksErrors, ThrowOnError>;
781
774
  /**
782
775
  * Add a block entry
@@ -816,12 +809,12 @@ export declare class Email {
816
809
  * Returns inbound emails that were blocked, most recently blocked first, optionally filtered by block entry, sender, or block time (`after`, `before`). Pass `nextCursor` back as `cursor` for the next page; it is null on the last page.
817
810
  */
818
811
  static getBlockLogs<ThrowOnError extends boolean = false>(parameters?: {
819
- blockedEmailId?: BlockedEmailId | null | undefined;
820
- fromAddress?: string | null | undefined;
821
- after?: string | null | undefined;
822
- before?: string | null | undefined;
812
+ blockedEmailId?: BlockedEmailId | undefined;
813
+ fromAddress?: string | undefined;
814
+ after?: string | undefined;
815
+ before?: string | undefined;
823
816
  limit?: number | null | undefined;
824
- cursor?: Cursor | null | undefined;
817
+ cursor?: string | undefined;
825
818
  }, options?: Options<never, ThrowOnError>): RequestResult<EmailGetBlockLogsResponses, EmailGetBlockLogsErrors, ThrowOnError>;
826
819
  /**
827
820
  * Check whether an address is blocked
@@ -837,7 +830,7 @@ export declare class Email {
837
830
  * Returns every inbound email forwarding rule in the order inbound mail is matched against them: highest priority first, then an exact address before a wildcard pattern at equal priority, then oldest first. The first rule that matches is the one that forwards. Filtering by domain returns that domain's rules and the rules that apply to every domain (domainId null). An organization holds at most 100, so the list is never paged.
838
831
  */
839
832
  static listForwardingRules<ThrowOnError extends boolean = false>(parameters?: {
840
- domainId?: EmailDomainId | null | undefined;
833
+ domainId?: EmailDomainId | undefined;
841
834
  isActive?: boolean | null | undefined;
842
835
  }, options?: Options<never, ThrowOnError>): RequestResult<EmailListForwardingRulesResponses, EmailListForwardingRulesErrors, ThrowOnError>;
843
836
  /**
@@ -895,12 +888,12 @@ export declare class Email {
895
888
  * Returns forwarded inbound emails with their delivery outcomes, newest first, optionally filtered by rule, status, or creation time (`after`, `before`). Pass `nextCursor` back as `cursor` for the next page; it is null on the last page.
896
889
  */
897
890
  static getForwardingLog<ThrowOnError extends boolean = false>(parameters?: {
898
- forwardingRuleId?: EmailForwardingRuleId | null | undefined;
899
- status?: "pending" | "forwarded" | "failed" | null | undefined;
900
- after?: string | null | undefined;
901
- before?: string | null | undefined;
891
+ forwardingRuleId?: EmailForwardingRuleId | undefined;
892
+ status?: "pending" | "forwarded" | "failed" | undefined;
893
+ after?: string | undefined;
894
+ before?: string | undefined;
902
895
  limit?: number | null | undefined;
903
- cursor?: Cursor | null | undefined;
896
+ cursor?: string | undefined;
904
897
  }, options?: Options<never, ThrowOnError>): RequestResult<EmailGetForwardingLogResponses, EmailGetForwardingLogErrors, ThrowOnError>;
905
898
  /**
906
899
  * Get domain warming
@@ -983,7 +976,7 @@ export declare class Media {
983
976
  filename: string;
984
977
  contentType: string;
985
978
  sizeBytes: number;
986
- purpose: "attachment" | "avatar" | "review_evidence";
979
+ purpose: "attachment" | "avatar" | "whatsapp_media" | "review_evidence";
987
980
  checksumSha256?: string | null | undefined;
988
981
  }, options?: Options<never, ThrowOnError>): RequestResult<MediaCreateResponses, MediaCreateErrors, ThrowOnError>;
989
982
  /**
@@ -1068,13 +1061,14 @@ export declare class Conversations {
1068
1061
  */
1069
1062
  static list<ThrowOnError extends boolean = false>(parameters?: {
1070
1063
  limit?: number | null | undefined;
1071
- cursor?: Cursor | null | undefined;
1072
- status?: "active" | "waiting" | "resolved" | "escalated" | "archived" | null | undefined;
1073
- channel?: "email" | null | undefined;
1074
- contactId?: ContactId | null | undefined;
1075
- mailboxId?: MailboxId | null | undefined;
1076
- after?: string | null | undefined;
1077
- before?: string | null | undefined;
1064
+ cursor?: string | undefined;
1065
+ namespaceId?: NamespaceId | undefined;
1066
+ status?: "active" | "waiting" | "resolved" | "escalated" | "archived" | undefined;
1067
+ channel?: "sms" | "whatsapp" | "email" | undefined;
1068
+ contactId?: ContactId | undefined;
1069
+ mailboxId?: MailboxId | undefined;
1070
+ after?: string | undefined;
1071
+ before?: string | undefined;
1078
1072
  }, options?: Options<never, ThrowOnError>): RequestResult<ConversationsListResponses, ConversationsListErrors, ThrowOnError>;
1079
1073
  /**
1080
1074
  * Create a conversation
@@ -1082,12 +1076,13 @@ export declare class Conversations {
1082
1076
  * Creates a new conversation with its initial contacts and returns it with a 201 status.
1083
1077
  */
1084
1078
  static create<ThrowOnError extends boolean = false>(parameters: {
1079
+ namespaceId?: NamespaceId | null | undefined;
1085
1080
  title?: string | null | undefined;
1086
1081
  description?: string | null | undefined;
1087
1082
  externalId?: string | null | undefined;
1088
1083
  parentConversationId?: ConversationId | null | undefined;
1089
- channels: Array<"email">;
1090
- primaryChannel: "email";
1084
+ channels: Array<"sms" | "whatsapp" | "email">;
1085
+ primaryChannel: "sms" | "whatsapp" | "email";
1091
1086
  status?: "active" | "waiting" | "resolved" | "escalated" | "archived" | null | undefined;
1092
1087
  statusReason?: string | null | undefined;
1093
1088
  priority?: number | null | undefined;
@@ -1120,7 +1115,7 @@ export declare class Conversations {
1120
1115
  description?: string | null | undefined;
1121
1116
  externalId?: string | null | undefined;
1122
1117
  parentConversationId?: ConversationId | null | undefined;
1123
- primaryChannel?: "email" | null | undefined;
1118
+ primaryChannel?: "sms" | "whatsapp" | "email" | null | undefined;
1124
1119
  status?: "active" | "waiting" | "resolved" | "escalated" | "archived" | null | undefined;
1125
1120
  statusReason?: string | null | undefined;
1126
1121
  priority?: number | null | undefined;
@@ -1140,9 +1135,9 @@ export declare class Conversations {
1140
1135
  static listMessages<ThrowOnError extends boolean = false>(parameters: {
1141
1136
  id: ConversationId;
1142
1137
  limit?: number | null | undefined;
1143
- cursor?: Cursor | null | undefined;
1144
- after?: string | null | undefined;
1145
- before?: string | null | undefined;
1138
+ cursor?: string | undefined;
1139
+ after?: string | undefined;
1140
+ before?: string | undefined;
1146
1141
  }, options?: Options<never, ThrowOnError>): RequestResult<ConversationsListMessagesResponses, ConversationsListMessagesErrors, ThrowOnError>;
1147
1142
  /**
1148
1143
  * Remove conversation tags
@@ -1187,7 +1182,7 @@ export declare class Conversations {
1187
1182
  */
1188
1183
  static removeChannels<ThrowOnError extends boolean = false>(parameters: {
1189
1184
  id: ConversationId;
1190
- channels: ["email", ...Array<"email">];
1185
+ channels: ["sms" | "whatsapp" | "email", ...Array<"sms" | "whatsapp" | "email">];
1191
1186
  }, options?: Options<never, ThrowOnError>): RequestResult<ConversationsRemoveChannelsResponses, ConversationsRemoveChannelsErrors, ThrowOnError>;
1192
1187
  /**
1193
1188
  * Add conversation channels
@@ -1196,7 +1191,7 @@ export declare class Conversations {
1196
1191
  */
1197
1192
  static addChannels<ThrowOnError extends boolean = false>(parameters: {
1198
1193
  id: ConversationId;
1199
- channels: ["email", ...Array<"email">];
1194
+ channels: ["sms" | "whatsapp" | "email", ...Array<"sms" | "whatsapp" | "email">];
1200
1195
  }, options?: Options<never, ThrowOnError>): RequestResult<ConversationsAddChannelsResponses, ConversationsAddChannelsErrors, ThrowOnError>;
1201
1196
  /**
1202
1197
  * Remove contacts from a conversation
@@ -1228,15 +1223,15 @@ export declare class Contacts {
1228
1223
  */
1229
1224
  static list<ThrowOnError extends boolean = false>(parameters?: {
1230
1225
  limit?: number | null | undefined;
1231
- cursor?: Cursor | null | undefined;
1232
- namespaceId?: NamespaceId | null | undefined;
1233
- search?: string | null | undefined;
1234
- status?: "active" | "paused" | "blocked" | "archived" | null | undefined;
1235
- fields?: string | null | undefined;
1236
- customField?: string | null | undefined;
1237
- customFieldValue?: string | null | undefined;
1238
- after?: string | null | undefined;
1239
- before?: string | null | undefined;
1226
+ cursor?: string | undefined;
1227
+ namespaceId?: NamespaceId | undefined;
1228
+ search?: string | undefined;
1229
+ status?: "active" | "paused" | "blocked" | "archived" | undefined;
1230
+ fields?: string | undefined;
1231
+ customField?: string | undefined;
1232
+ customFieldValue?: string | undefined;
1233
+ after?: string | undefined;
1234
+ before?: string | undefined;
1240
1235
  }, options?: Options<never, ThrowOnError>): RequestResult<ContactsListResponses, ContactsListErrors, ThrowOnError>;
1241
1236
  /**
1242
1237
  * Create a contact
@@ -1346,7 +1341,7 @@ export declare class Contacts {
1346
1341
  static setConsent<ThrowOnError extends boolean = false>(parameters: {
1347
1342
  id: ContactId;
1348
1343
  identityId: ContactIdentityId;
1349
- channel: "email";
1344
+ channel: "sms" | "whatsapp" | "email";
1350
1345
  status: "opted_in" | "opted_out";
1351
1346
  source: string;
1352
1347
  capturedAt: string;
@@ -1523,8 +1518,8 @@ export declare class Contacts {
1523
1518
  static getActivityTimeline<ThrowOnError extends boolean = false>(parameters: {
1524
1519
  id: ContactId;
1525
1520
  limit?: number | null | undefined;
1526
- cursor?: Cursor | null | undefined;
1527
- channel?: "email" | null | undefined;
1521
+ cursor?: string | undefined;
1522
+ channel?: "sms" | "whatsapp" | "email" | undefined;
1528
1523
  }, options?: Options<never, ThrowOnError>): RequestResult<ContactsGetActivityTimelineResponses, ContactsGetActivityTimelineErrors, ThrowOnError>;
1529
1524
  /**
1530
1525
  * List a contact's group memberships
@@ -1534,7 +1529,7 @@ export declare class Contacts {
1534
1529
  static getGroupMemberships<ThrowOnError extends boolean = false>(parameters: {
1535
1530
  id: ContactId;
1536
1531
  limit?: number | null | undefined;
1537
- cursor?: Cursor | null | undefined;
1532
+ cursor?: string | undefined;
1538
1533
  }, options?: Options<never, ThrowOnError>): RequestResult<ContactsGetGroupMembershipsResponses, ContactsGetGroupMembershipsErrors, ThrowOnError>;
1539
1534
  }
1540
1535
  export declare class Contacts2 {
@@ -1573,7 +1568,7 @@ export declare class ContactEvents {
1573
1568
  static listEvents<ThrowOnError extends boolean = false>(parameters: {
1574
1569
  id: ContactId;
1575
1570
  limit?: number | null | undefined;
1576
- cursor?: Cursor | null | undefined;
1571
+ cursor?: string | undefined;
1577
1572
  }, options?: Options<never, ThrowOnError>): RequestResult<ContactEventsListEventsResponses, ContactEventsListEventsErrors, ThrowOnError>;
1578
1573
  }
1579
1574
  export declare class ContactEvents2 {
@@ -1586,9 +1581,9 @@ export declare class Journeys {
1586
1581
  * Returns the organization's journeys, newest first, optionally filtered by status. Pass nextCursor back as cursor for the next page.
1587
1582
  */
1588
1583
  static list<ThrowOnError extends boolean = false>(parameters?: {
1589
- status?: JourneyStatus | null | undefined;
1584
+ status?: JourneyStatus | undefined;
1590
1585
  limit?: number | null | undefined;
1591
- cursor?: Cursor | null | undefined;
1586
+ cursor?: string | undefined;
1592
1587
  }, options?: Options<never, ThrowOnError>): RequestResult<JourneysListResponses, JourneysListErrors, ThrowOnError>;
1593
1588
  /**
1594
1589
  * Create a journey
@@ -1692,10 +1687,10 @@ export declare class Journeys {
1692
1687
  */
1693
1688
  static listRuns<ThrowOnError extends boolean = false>(parameters: {
1694
1689
  id: JourneyId;
1695
- status?: JourneyRunStatus | null | undefined;
1696
- contactId?: ContactId | null | undefined;
1690
+ status?: JourneyRunStatus | undefined;
1691
+ contactId?: ContactId | undefined;
1697
1692
  limit?: number | null | undefined;
1698
- cursor?: Cursor | null | undefined;
1693
+ cursor?: string | undefined;
1699
1694
  }, options?: Options<never, ThrowOnError>): RequestResult<JourneysListRunsResponses, JourneysListRunsErrors, ThrowOnError>;
1700
1695
  /**
1701
1696
  * Get a journey run
@@ -1711,25 +1706,42 @@ export declare class Journeys2 {
1711
1706
  static journeys: typeof Journeys;
1712
1707
  }
1713
1708
  export declare class Agents {
1709
+ /**
1710
+ * Compare saved-test decisions
1711
+ *
1712
+ * Runs saved tests against a supplied draft and the current immutable published definition, returning changed action decisions. No test or agent is modified and nothing is sent. Large comparisons can time out; run saved tests individually or shorten their conversations before retrying.
1713
+ */
1714
+ static rerunTests<ThrowOnError extends boolean = false>(parameters: {
1715
+ id: AgentId;
1716
+ name: AgentName;
1717
+ definition: AgentDefinition;
1718
+ }, options?: Options<never, ThrowOnError>): RequestResult<AgentsRerunTestsResponses, AgentsRerunTestsErrors, ThrowOnError>;
1714
1719
  /**
1715
1720
  * List agents
1716
1721
  *
1717
- * Returns the agents the caller can reach, newest first, without their drafts. Pass nextCursor back as cursor for the next page.
1722
+ * Returns the agents the caller can reach, newest first, without their drafts, optionally filtered by `namespaceId`. Pass nextCursor back as cursor for the next page.
1718
1723
  */
1719
1724
  static list<ThrowOnError extends boolean = false>(parameters?: {
1720
1725
  limit?: number | null | undefined;
1721
- cursor?: Cursor | null | undefined;
1726
+ cursor?: string | undefined;
1727
+ namespaceId?: NamespaceId | undefined;
1722
1728
  }, options?: Options<never, ThrowOnError>): RequestResult<AgentsListResponses, AgentsListErrors, ThrowOnError>;
1723
1729
  /**
1724
1730
  * Create an agent
1725
1731
  *
1726
- * Creates an agent with a draft and returns it with status 201. The agent answers nothing until its draft is published. A new agent starts in supervised mode, so each reply waits for a person to approve it. The namespace is set at creation and cannot change.
1732
+ * Creates an agent with a draft and returns it with status 201. The agent answers nothing until its draft is published. The default policy requires a person to approve replies and final actions. The namespace is set at creation and cannot change.
1727
1733
  */
1728
1734
  static create<ThrowOnError extends boolean = false>(parameters: {
1729
1735
  name: AgentName;
1730
1736
  namespaceId?: NamespaceId | null | undefined;
1731
1737
  definition?: AgentDefinition | null | undefined;
1732
1738
  }, options?: Options<never, ThrowOnError>): RequestResult<AgentsCreateResponses, AgentsCreateErrors, ThrowOnError>;
1739
+ /**
1740
+ * List agent models
1741
+ *
1742
+ * Returns the models an agent can run on: the standard and max aliases, each with the model it points at today, then every catalog model an agent can pin. Each entry has its price per million tokens, the reasoning levels it accepts with an estimate of a typical reply at each, and whether your plan includes it. Pinning a catalog model needs the Growth or Scale plan.
1743
+ */
1744
+ static listModels<ThrowOnError extends boolean = false>(options?: Options<never, ThrowOnError>): RequestResult<AgentsListModelsResponses, AgentsListModelsErrors, ThrowOnError>;
1733
1745
  /**
1734
1746
  * Delete an agent
1735
1747
  *
@@ -1747,18 +1759,19 @@ export declare class Agents {
1747
1759
  id: AgentId;
1748
1760
  }, options?: Options<never, ThrowOnError>): RequestResult<AgentsGetResponses, AgentsGetErrors, ThrowOnError>;
1749
1761
  /**
1750
- * Rename an agent
1762
+ * Update an agent
1751
1763
  *
1752
- * Renames an agent.
1764
+ * Renames an agent or sets its monthly spend cap. Both take effect at once, without publishing. At the cap the agent pauses and its conversations wait for your team until the month turns (UTC) or the cap is raised or removed.
1753
1765
  */
1754
1766
  static update<ThrowOnError extends boolean = false>(parameters: {
1755
1767
  id: AgentId;
1756
- name: AgentName;
1768
+ name?: AgentName | null | undefined;
1769
+ monthlySpendCapDollars?: MonthlySpendCapDollars | null | undefined;
1757
1770
  }, options?: Options<never, ThrowOnError>): RequestResult<AgentsUpdateResponses, AgentsUpdateErrors, ThrowOnError>;
1758
1771
  /**
1759
1772
  * Replace an agent draft
1760
1773
  *
1761
- * Replaces the whole draft and returns the agent with a new revision. The request names the revision it read; a stale revision returns 409. Published versions, and the conversations answered on them, do not change. An endpoint answers for one agent at a time: a draft that names an endpoint another agent answers on returns 409.
1774
+ * Replaces the whole draft and returns the agent with a new revision. The request names the revision it read; a stale revision returns 409. Published versions, and the conversations answered on them, do not change. An endpoint answers for one agent at a time: a draft that names an endpoint another agent answers on returns 409. A draft that pins a catalog model returns 402 unless your plan is Growth or Scale, and 422 when the model is not available or does not support the reasoning level.
1762
1775
  */
1763
1776
  static replaceDraft<ThrowOnError extends boolean = false>(parameters: {
1764
1777
  id: AgentId;
@@ -1768,12 +1781,20 @@ export declare class Agents {
1768
1781
  /**
1769
1782
  * Publish an agent
1770
1783
  *
1771
- * Publishes the draft as the next immutable version. Each conversation moves to it from its next agent reply; a reply already running finishes on the version it started on. The request names the revision it read; a stale revision returns 409. Publishing a draft identical to the newest version changes nothing and answers published false. An endpoint answers for one agent at a time: publishing a draft whose endpoint another agent answers on returns 409. In supervised mode each reply waits for a person to approve it.
1784
+ * Publishes the draft as the next immutable version. Each conversation moves to it from its next agent reply; a reply already running finishes on the version it started on. The request names the revision it read; a stale revision returns 409. Publishing a draft identical to the newest version changes nothing and answers published false. An endpoint answers for one agent at a time: publishing a draft whose endpoint another agent answers on returns 409. The published policy governs review of each proposed action.
1772
1785
  */
1773
1786
  static publish<ThrowOnError extends boolean = false>(parameters: {
1774
1787
  id: AgentId;
1775
1788
  revision: string;
1776
1789
  }, options?: Options<never, ThrowOnError>): RequestResult<AgentsPublishResponses, AgentsPublishErrors, ThrowOnError>;
1790
+ /**
1791
+ * Continue an agent on Standard
1792
+ *
1793
+ * Publishes the live version again with its model set to standard, as the next immutable version, then removes the monthly spend cap. Use it when the agent pauses at its cap on a pinned model and should keep answering on Standard. The draft is left as it is, so its unpublished changes stay unpublished. The live version's reasoning level is kept when Standard supports it, and is auto otherwise. A live version already on standard publishes nothing and answers published false; the cap is still removed. An agent with no published version returns 422; a version published while the request runs returns 409.
1794
+ */
1795
+ static continueOnStandard<ThrowOnError extends boolean = false>(parameters: {
1796
+ id: AgentId;
1797
+ }, options?: Options<never, ThrowOnError>): RequestResult<AgentsContinueOnStandardResponses, AgentsContinueOnStandardErrors, ThrowOnError>;
1777
1798
  /**
1778
1799
  * List published agent versions
1779
1800
  *
@@ -1782,7 +1803,7 @@ export declare class Agents {
1782
1803
  static listVersions<ThrowOnError extends boolean = false>(parameters: {
1783
1804
  id: AgentId;
1784
1805
  limit?: number | null | undefined;
1785
- cursor?: VersionCursor | null | undefined;
1806
+ cursor?: string | undefined;
1786
1807
  }, options?: Options<never, ThrowOnError>): RequestResult<AgentsListVersionsResponses, AgentsListVersionsErrors, ThrowOnError>;
1787
1808
  /**
1788
1809
  * Get a published agent version
@@ -1826,8 +1847,8 @@ export declare class ContactGroups {
1826
1847
  */
1827
1848
  static list<ThrowOnError extends boolean = false>(parameters?: {
1828
1849
  limit?: number | null | undefined;
1829
- cursor?: Cursor | null | undefined;
1830
- type?: "static" | "dynamic" | "smart" | Array<"static" | "dynamic" | "smart"> | null | undefined;
1850
+ cursor?: string | undefined;
1851
+ type?: "static" | "dynamic" | "smart" | Array<"static" | "dynamic" | "smart"> | undefined;
1831
1852
  isActive?: boolean | null | undefined;
1832
1853
  }, options?: Options<never, ThrowOnError>): RequestResult<ContactGroupsListResponses, ContactGroupsListErrors, ThrowOnError>;
1833
1854
  /**
@@ -1898,7 +1919,7 @@ export declare class ContactGroups {
1898
1919
  static getMembers<ThrowOnError extends boolean = false>(parameters: {
1899
1920
  id: ContactGroupId;
1900
1921
  limit?: number | null | undefined;
1901
- cursor?: Cursor | null | undefined;
1922
+ cursor?: string | undefined;
1902
1923
  }, options?: Options<never, ThrowOnError>): RequestResult<ContactGroupsGetMembersResponses, ContactGroupsGetMembersErrors, ThrowOnError>;
1903
1924
  /**
1904
1925
  * Add members to a contact group
@@ -1992,7 +2013,7 @@ export declare class Topics {
1992
2013
  * Lists visible topics, default first then by name. The organization holds at most 200 topics, so the list is bounded and unpaged.
1993
2014
  */
1994
2015
  static list<ThrowOnError extends boolean = false>(parameters?: {
1995
- namespaceId?: NamespaceId | null | undefined;
2016
+ namespaceId?: NamespaceId | undefined;
1996
2017
  }, options?: Options<never, ThrowOnError>): RequestResult<TopicsListResponses, TopicsListErrors, ThrowOnError>;
1997
2018
  /**
1998
2019
  * Create a topic
@@ -2014,12 +2035,12 @@ export declare class Topics {
2014
2035
  * Name exactly one contactId, email, or phone and a channel. Returns effective status, using the topic default when no explicit subscription exists. topicIds is an optional comma-separated list. Addresses resolve within the requested namespace; an unknown address returns contactId null and the effective defaults.
2015
2036
  */
2016
2037
  static checkSubscription<ThrowOnError extends boolean = false>(parameters: {
2017
- contactId?: ContactId | null | undefined;
2018
- email?: string | null | undefined;
2019
- phone?: string | null | undefined;
2020
- namespaceId?: NamespaceId | null | undefined;
2021
- channel: "email";
2022
- topicIds?: string | null | undefined;
2038
+ contactId?: ContactId | undefined;
2039
+ email?: string | undefined;
2040
+ phone?: string | undefined;
2041
+ namespaceId?: NamespaceId | undefined;
2042
+ channel: "sms" | "whatsapp" | "email";
2043
+ topicIds?: string | undefined;
2023
2044
  }, options?: Options<never, ThrowOnError>): RequestResult<TopicsCheckSubscriptionResponses, TopicsCheckSubscriptionErrors, ThrowOnError>;
2024
2045
  /**
2025
2046
  * Delete a topic
@@ -2067,9 +2088,9 @@ export declare class Topics {
2067
2088
  static listSubscriptions<ThrowOnError extends boolean = false>(parameters: {
2068
2089
  id: TopicId;
2069
2090
  limit?: number | null | undefined;
2070
- cursor?: Cursor | null | undefined;
2071
- channel?: "email" | null | undefined;
2072
- status?: "subscribed" | "unsubscribed" | null | undefined;
2091
+ cursor?: string | undefined;
2092
+ channel?: "sms" | "whatsapp" | "email" | undefined;
2093
+ status?: "subscribed" | "unsubscribed" | undefined;
2073
2094
  }, options?: Options<never, ThrowOnError>): RequestResult<TopicsListSubscriptionsResponses, TopicsListSubscriptionsErrors, ThrowOnError>;
2074
2095
  /**
2075
2096
  * Set topic subscriptions
@@ -2079,7 +2100,7 @@ export declare class Topics {
2079
2100
  static setSubscriptions<ThrowOnError extends boolean = false>(parameters: {
2080
2101
  id: TopicId;
2081
2102
  contacts: Array<TopicContactRef>;
2082
- channel: "email";
2103
+ channel: "sms" | "whatsapp" | "email";
2083
2104
  status: "subscribed" | "unsubscribed";
2084
2105
  source?: string | null | undefined;
2085
2106
  }, options?: Options<never, ThrowOnError>): RequestResult<TopicsSetSubscriptionsResponses, TopicsSetSubscriptionsErrors, ThrowOnError>;
@@ -2266,7 +2287,7 @@ export declare class Domains {
2266
2287
  static list<ThrowOnError extends boolean = false>(parameters: {
2267
2288
  id: NewsletterId;
2268
2289
  limit?: number | null | undefined;
2269
- cursor?: PublicationDomainCursor | null | undefined;
2290
+ cursor?: string | undefined;
2270
2291
  }, options?: Options<never, ThrowOnError>): RequestResult<NewsletterDomainsListResponses, NewsletterDomainsListErrors, ThrowOnError>;
2271
2292
  /**
2272
2293
  * Add a publication domain
@@ -2303,7 +2324,7 @@ export declare class Newsletters {
2303
2324
  * List visible newsletters and their consent topics and publishing settings. The topic namespace bounds access.
2304
2325
  */
2305
2326
  static list<ThrowOnError extends boolean = false>(parameters?: {
2306
- namespaceId?: NamespaceId | null | undefined;
2327
+ namespaceId?: NamespaceId | undefined;
2307
2328
  }, options?: Options<never, ThrowOnError>): RequestResult<NewslettersListResponses, NewslettersListErrors, ThrowOnError>;
2308
2329
  /**
2309
2330
  * Create a newsletter
@@ -2354,10 +2375,11 @@ export declare class Analytics {
2354
2375
  * Returns outbound message counts over the half-open selected instant range, grouped by organization-local calendar day, week, or month. A range with traffic returns every bucket in it, including the ones that saw none; a range with no outbound traffic at all returns no buckets. A range with no `before` runs through the current instant, so its quiet trailing buckets are reported as zero.
2355
2376
  */
2356
2377
  static getStats<ThrowOnError extends boolean = false>(parameters?: {
2357
- after?: string | null | undefined;
2358
- before?: string | null | undefined;
2359
- groupBy?: "day" | "week" | "month" | null | undefined;
2360
- channel?: "email" | null | undefined;
2378
+ namespaceId?: NamespaceId | undefined;
2379
+ after?: string | undefined;
2380
+ before?: string | undefined;
2381
+ groupBy?: "day" | "week" | "month" | undefined;
2382
+ channel?: "sms" | "whatsapp" | "email" | undefined;
2361
2383
  }, options?: Options<never, ThrowOnError>): RequestResult<AnalyticsGetStatsResponses, AnalyticsGetStatsErrors, ThrowOnError>;
2362
2384
  /**
2363
2385
  * Get channel performance analytics
@@ -2365,8 +2387,9 @@ export declare class Analytics {
2365
2387
  * Returns aggregate delivery metrics plus unique-message email Open and Click rates over the selected date range. `sent` counts every outbound message accepted in the range; each rate is taken over the messages the channel actually attempted, so one still waiting to be sent neither helps nor hurts it. Each engagement rate uses the corresponding tracking-eligible delivered-message cohort; repeated provider observations do not inflate the numerator.
2366
2388
  */
2367
2389
  static getChannelStats<ThrowOnError extends boolean = false>(parameters?: {
2368
- after?: string | null | undefined;
2369
- before?: string | null | undefined;
2390
+ namespaceId?: NamespaceId | undefined;
2391
+ after?: string | undefined;
2392
+ before?: string | undefined;
2370
2393
  }, options?: Options<never, ThrowOnError>): RequestResult<AnalyticsGetChannelStatsResponses, AnalyticsGetChannelStatsErrors, ThrowOnError>;
2371
2394
  /**
2372
2395
  * List top contacts by message volume
@@ -2374,10 +2397,11 @@ export declare class Analytics {
2374
2397
  * Returns the contacts your organization exchanged the most messages with over the selected date range. `sortBy` chooses the traffic `messageCount` reports and ranks by: `sent` counts outbound messages addressed to the contact, `received` counts inbound messages the contact sent you, and `total` (the default) counts both. Contacts with no traffic in the range are omitted, and at most 100 are returned.
2375
2398
  */
2376
2399
  static getTopContacts<ThrowOnError extends boolean = false>(parameters?: {
2377
- after?: string | null | undefined;
2378
- before?: string | null | undefined;
2400
+ namespaceId?: NamespaceId | undefined;
2401
+ after?: string | undefined;
2402
+ before?: string | undefined;
2379
2403
  limit?: number | null | undefined;
2380
- sortBy?: "sent" | "received" | "total" | null | undefined;
2404
+ sortBy?: "sent" | "received" | "total" | undefined;
2381
2405
  }, options?: Options<never, ThrowOnError>): RequestResult<AnalyticsGetTopContactsResponses, AnalyticsGetTopContactsErrors, ThrowOnError>;
2382
2406
  /**
2383
2407
  * Get hourly message distribution
@@ -2385,8 +2409,9 @@ export declare class Analytics {
2385
2409
  * Returns outbound message counts over the half-open selected instant range, bucketed by organization-local hour. Empty ranges return no rows; non-empty ranges include all 24 hours.
2386
2410
  */
2387
2411
  static getHourlyDistribution<ThrowOnError extends boolean = false>(parameters?: {
2388
- after?: string | null | undefined;
2389
- before?: string | null | undefined;
2412
+ namespaceId?: NamespaceId | undefined;
2413
+ after?: string | undefined;
2414
+ before?: string | undefined;
2390
2415
  }, options?: Options<never, ThrowOnError>): RequestResult<AnalyticsGetHourlyDistributionResponses, AnalyticsGetHourlyDistributionErrors, ThrowOnError>;
2391
2416
  /**
2392
2417
  * Get message delivery metrics
@@ -2394,9 +2419,10 @@ export declare class Analytics {
2394
2419
  * Returns delivered, failed, and pending rates plus average delivery time for the outbound messages accepted in the selected date range, optionally filtered by channel. Every accepted message falls into exactly one of the three, so they always sum to 100%: a complaint counts as delivered because the message arrived, a bounce counts as failed, and anything the provider has not resolved yet counts as pending. Mail your organization received is not rated here.
2395
2420
  */
2396
2421
  static getDeliveryMetrics<ThrowOnError extends boolean = false>(parameters?: {
2397
- after?: string | null | undefined;
2398
- before?: string | null | undefined;
2399
- channel?: "email" | null | undefined;
2422
+ namespaceId?: NamespaceId | undefined;
2423
+ after?: string | undefined;
2424
+ before?: string | undefined;
2425
+ channel?: "sms" | "whatsapp" | "email" | undefined;
2400
2426
  }, options?: Options<never, ThrowOnError>): RequestResult<AnalyticsGetDeliveryMetricsResponses, AnalyticsGetDeliveryMetricsErrors, ThrowOnError>;
2401
2427
  /**
2402
2428
  * Export messaging analytics data
@@ -2404,10 +2430,11 @@ export declare class Analytics {
2404
2430
  * Exports one record per outbound message accepted in the given date range as CSV or JSON and returns the file content inline. CSV follows RFC 4180: fields containing a quote, comma, or line break are quoted with embedded quotes doubled, and records are separated by CRLF. At most 10,000 records are returned, newest first.
2405
2431
  */
2406
2432
  static exportData<ThrowOnError extends boolean = false>(parameters: {
2433
+ namespaceId?: NamespaceId | null | undefined;
2407
2434
  after: string;
2408
2435
  before: string;
2409
2436
  format?: "csv" | "json" | null | undefined;
2410
- includeChannels?: Array<"email"> | null | undefined;
2437
+ includeChannels?: Array<"sms" | "whatsapp" | "email"> | null | undefined;
2411
2438
  }, options?: Options<never, ThrowOnError>): RequestResult<AnalyticsExportDataResponses, AnalyticsExportDataErrors, ThrowOnError>;
2412
2439
  }
2413
2440
  export declare class Analytics2 {
@@ -2421,13 +2448,13 @@ export declare class Templates {
2421
2448
  */
2422
2449
  static list<ThrowOnError extends boolean = false>(parameters?: {
2423
2450
  limit?: number | null | undefined;
2424
- cursor?: Cursor | null | undefined;
2425
- category?: "transactional" | "marketing" | "support" | "notification" | "verification" | "reminder" | "alert" | null | undefined;
2426
- channel?: "email" | null | undefined;
2427
- status?: "draft" | "pending" | "approved" | "published" | "rejected" | "archived" | null | undefined;
2428
- search?: string | null | undefined;
2429
- projectId?: TemplateProjectId | null | undefined;
2430
- namespaceId?: NamespaceId | null | undefined;
2451
+ cursor?: string | undefined;
2452
+ category?: "transactional" | "marketing" | "support" | "notification" | "verification" | "reminder" | "alert" | undefined;
2453
+ channel?: "sms" | "whatsapp" | "email" | undefined;
2454
+ status?: "draft" | "pending" | "approved" | "published" | "rejected" | "archived" | undefined;
2455
+ search?: string | undefined;
2456
+ projectId?: TemplateProjectId | undefined;
2457
+ namespaceId?: NamespaceId | undefined;
2431
2458
  shared?: boolean | null | undefined;
2432
2459
  }, options?: Options<never, ThrowOnError>): RequestResult<TemplatesListResponses, TemplatesListErrors, ThrowOnError>;
2433
2460
  /**
@@ -2443,7 +2470,6 @@ export declare class Templates {
2443
2470
  useBrand?: boolean | null | undefined;
2444
2471
  description?: string | null | undefined;
2445
2472
  category?: "transactional" | "marketing" | "support" | "notification" | "verification" | "reminder" | "alert" | null | undefined;
2446
- isActive?: boolean | null | undefined;
2447
2473
  namespaceId?: NamespaceId | null | undefined;
2448
2474
  shared?: boolean | null | undefined;
2449
2475
  }, options?: Options<never, ThrowOnError>): RequestResult<TemplatesCreateResponses, TemplatesCreateErrors, ThrowOnError>;
@@ -2454,7 +2480,7 @@ export declare class Templates {
2454
2480
  */
2455
2481
  static listFamilies<ThrowOnError extends boolean = false>(parameters?: {
2456
2482
  limit?: number | null | undefined;
2457
- cursor?: Cursor | null | undefined;
2483
+ cursor?: string | undefined;
2458
2484
  }, options?: Options<never, ThrowOnError>): RequestResult<TemplatesListFamiliesResponses, TemplatesListFamiliesErrors, ThrowOnError>;
2459
2485
  /**
2460
2486
  * Create a template family
@@ -2519,11 +2545,11 @@ export declare class Templates {
2519
2545
  /**
2520
2546
  * Delete a template
2521
2547
  *
2522
- * Deletes a template from the organization and returns a success flag.
2548
+ * Permanently deletes a template and its publications, input contracts, variants and preview rasters, freeing its slug. Refuses with 409 and reference kind/id pairs while in use. Sent-message history keeps its snapshots. The project and its Git files remain. External object cleanup retries durably.
2523
2549
  */
2524
- static remove<ThrowOnError extends boolean = false>(parameters: {
2550
+ static delete<ThrowOnError extends boolean = false>(parameters: {
2525
2551
  id: TemplateId;
2526
- }, options?: Options<never, ThrowOnError>): RequestResult<TemplatesRemoveResponses, TemplatesRemoveErrors, ThrowOnError>;
2552
+ }, options?: Options<never, ThrowOnError>): RequestResult<TemplatesDeleteResponses, TemplatesDeleteErrors, ThrowOnError>;
2527
2553
  /**
2528
2554
  * Get a template
2529
2555
  *
@@ -2551,7 +2577,6 @@ export declare class Templates {
2551
2577
  * 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.
2552
2578
  */
2553
2579
  trackingDefault?: TemplateTrackingDefault | null | undefined;
2554
- isActive?: boolean | null | undefined;
2555
2580
  /**
2556
2581
  * 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.
2557
2582
  */
@@ -2581,6 +2606,14 @@ export declare class Templates {
2581
2606
  description?: string | null | undefined;
2582
2607
  category?: "transactional" | "marketing" | "support" | "notification" | "verification" | "reminder" | "alert" | null | undefined;
2583
2608
  }, options?: Options<never, ThrowOnError>): RequestResult<TemplatesAddEntryResponses, TemplatesAddEntryErrors, ThrowOnError>;
2609
+ /**
2610
+ * Permanently delete a template project
2611
+ *
2612
+ * Permanently deletes the project and every template in it. Refuses with 409 and reference kind/id pairs while any entry or the project is in use. Repository, workspace, conversations, draft assets, publications and previews are removed through durable cleanup. Sent-message history keeps its snapshots. Newsletter issue projects can only be removed through their topic.
2613
+ */
2614
+ static deleteProject<ThrowOnError extends boolean = false>(parameters: {
2615
+ id: TemplateProjectId;
2616
+ }, options?: Options<never, ThrowOnError>): RequestResult<TemplatesDeleteProjectResponses, TemplatesDeleteProjectErrors, ThrowOnError>;
2584
2617
  /**
2585
2618
  * Patch template project files
2586
2619
  *
@@ -2729,7 +2762,7 @@ export declare class Templates {
2729
2762
  static listInputContracts<ThrowOnError extends boolean = false>(parameters: {
2730
2763
  id: TemplateId;
2731
2764
  limit?: number | null | undefined;
2732
- cursor?: VersionCursor | null | undefined;
2765
+ cursor?: string | undefined;
2733
2766
  }, options?: Options<never, ThrowOnError>): RequestResult<TemplatesListInputContractsResponses, TemplatesListInputContractsErrors, ThrowOnError>;
2734
2767
  /**
2735
2768
  * Get a template input contract
@@ -2854,13 +2887,14 @@ export declare class Webhooks {
2854
2887
  /**
2855
2888
  * List webhooks
2856
2889
  *
2857
- * Returns the organization's webhook endpoints, oldest first, with each endpoint's delivery counts, optionally filtered by a search term matched against name and URL, and by status. Pass `nextCursor` back as `cursor` for the next page; it is null on the last page.
2890
+ * Returns the organization's webhook endpoints, oldest first, with each endpoint's delivery counts, optionally filtered by namespace (`namespaceId`), a search term matched against name and URL, and by status. Pass `nextCursor` back as `cursor` for the next page; it is null on the last page.
2858
2891
  */
2859
2892
  static list<ThrowOnError extends boolean = false>(parameters?: {
2860
2893
  limit?: number | null | undefined;
2861
- cursor?: Cursor | null | undefined;
2862
- search?: string | null | undefined;
2863
- status?: "active" | "disabled" | null | undefined;
2894
+ cursor?: string | undefined;
2895
+ namespaceId?: NamespaceId | undefined;
2896
+ search?: string | undefined;
2897
+ status?: "active" | "disabled" | undefined;
2864
2898
  }, options?: Options<never, ThrowOnError>): RequestResult<WebhooksListResponses, WebhooksListErrors, ThrowOnError>;
2865
2899
  /**
2866
2900
  * Create a webhook
@@ -2870,8 +2904,8 @@ export declare class Webhooks {
2870
2904
  static create<ThrowOnError extends boolean = false>(parameters: {
2871
2905
  name: string;
2872
2906
  url: string;
2873
- 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">;
2874
- channels?: Array<"email"> | null | undefined;
2907
+ 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" | "email.sending.paused" | "email.sending.resumed" | "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">;
2908
+ channels?: Array<"sms" | "whatsapp" | "email"> | null | undefined;
2875
2909
  mailboxIds?: [MailboxId, ...Array<MailboxId>] | null | undefined;
2876
2910
  namespaceId?: NamespaceId | null | undefined;
2877
2911
  headers?: {
@@ -2904,8 +2938,8 @@ export declare class Webhooks {
2904
2938
  id: WebhookEndpointId;
2905
2939
  name?: string | null | undefined;
2906
2940
  url?: string | null | undefined;
2907
- 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;
2908
- channels?: Array<"email"> | null | undefined;
2941
+ 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" | "email.sending.paused" | "email.sending.resumed" | "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;
2942
+ channels?: Array<"sms" | "whatsapp" | "email"> | null | undefined;
2909
2943
  mailboxIds?: [MailboxId, ...Array<MailboxId>] | null | undefined;
2910
2944
  namespaceId?: NamespaceId | null | undefined;
2911
2945
  headers?: {
@@ -2932,7 +2966,7 @@ export declare class Webhooks {
2932
2966
  static getLogs<ThrowOnError extends boolean = false>(parameters: {
2933
2967
  id: WebhookEndpointId;
2934
2968
  limit?: number | null | undefined;
2935
- cursor?: Cursor | null | undefined;
2969
+ cursor?: string | undefined;
2936
2970
  }, options?: Options<never, ThrowOnError>): RequestResult<WebhooksGetLogsResponses, WebhooksGetLogsErrors, ThrowOnError>;
2937
2971
  /**
2938
2972
  * Get webhook delivery statistics
@@ -2941,8 +2975,8 @@ export declare class Webhooks {
2941
2975
  */
2942
2976
  static getStats<ThrowOnError extends boolean = false>(parameters: {
2943
2977
  id: WebhookEndpointId;
2944
- after?: string | null | undefined;
2945
- before?: string | null | undefined;
2978
+ after?: string | undefined;
2979
+ before?: string | undefined;
2946
2980
  }, options?: Options<never, ThrowOnError>): RequestResult<WebhooksGetStatsResponses, WebhooksGetStatsErrors, ThrowOnError>;
2947
2981
  /**
2948
2982
  * Retry a webhook delivery
@@ -3051,8 +3085,8 @@ export declare class Organizations {
3051
3085
  * Returns usage statistics for the current organization between `after` and `before`, which default to the current calendar month so far. `usage.periodStart` and `usage.periodEnd` echo the window counted.
3052
3086
  */
3053
3087
  static getUsage<ThrowOnError extends boolean = false>(parameters?: {
3054
- after?: string | null | undefined;
3055
- before?: string | null | undefined;
3088
+ after?: string | undefined;
3089
+ before?: string | undefined;
3056
3090
  }, options?: Options<never, ThrowOnError>): RequestResult<OrganizationsGetUsageResponses, OrganizationsGetUsageErrors, ThrowOnError>;
3057
3091
  /**
3058
3092
  * Delete the current organization
@@ -3070,13 +3104,14 @@ export declare class ApiKeys {
3070
3104
  /**
3071
3105
  * List API keys
3072
3106
  *
3073
- * Returns the organization's API keys, newest first, filterable by status and a search term matched against name and description. Pass `nextCursor` back as `cursor` for the next page; it is null on the last page.
3107
+ * Returns the organization's API keys, newest first, filterable by namespace (`namespaceId`), status and a search term matched against name and description. Pass `nextCursor` back as `cursor` for the next page; it is null on the last page.
3074
3108
  */
3075
3109
  static list<ThrowOnError extends boolean = false>(parameters?: {
3076
3110
  limit?: number | null | undefined;
3077
- cursor?: Cursor | null | undefined;
3078
- status?: "active" | "revoked" | null | undefined;
3079
- search?: string | null | undefined;
3111
+ cursor?: string | undefined;
3112
+ namespaceId?: NamespaceId | undefined;
3113
+ status?: "active" | "revoked" | undefined;
3114
+ search?: string | undefined;
3080
3115
  }, options?: Options<never, ThrowOnError>): RequestResult<ApiKeysListResponses, ApiKeysListErrors, ThrowOnError>;
3081
3116
  /**
3082
3117
  * Create an API key
@@ -3106,7 +3141,6 @@ export declare class ApiKeys {
3106
3141
  id: ApiKeyId;
3107
3142
  name?: string | null | undefined;
3108
3143
  description?: string | null | undefined;
3109
- mailboxes?: ApiKeyMailboxAccessUpdate | null | undefined;
3110
3144
  }, options?: Options<never, ThrowOnError>): RequestResult<ApiKeysUpdateResponses, ApiKeysUpdateErrors, ThrowOnError>;
3111
3145
  /**
3112
3146
  * Revoke an API key
@@ -3131,8 +3165,8 @@ export declare class ApiKeys {
3131
3165
  */
3132
3166
  static getStats<ThrowOnError extends boolean = false>(parameters: {
3133
3167
  id: ApiKeyId;
3134
- after?: string | null | undefined;
3135
- before?: string | null | undefined;
3168
+ after?: string | undefined;
3169
+ before?: string | undefined;
3136
3170
  }, options?: Options<never, ThrowOnError>): RequestResult<ApiKeysGetStatsResponses, ApiKeysGetStatsErrors, ThrowOnError>;
3137
3171
  /**
3138
3172
  * List API key activity
@@ -3142,7 +3176,7 @@ export declare class ApiKeys {
3142
3176
  static getActivity<ThrowOnError extends boolean = false>(parameters: {
3143
3177
  id: ApiKeyId;
3144
3178
  limit?: number | null | undefined;
3145
- cursor?: Cursor | null | undefined;
3179
+ cursor?: string | undefined;
3146
3180
  }, options?: Options<never, ThrowOnError>): RequestResult<ApiKeysGetActivityResponses, ApiKeysGetActivityErrors, ThrowOnError>;
3147
3181
  }
3148
3182
  export declare class ApiKeys2 {
@@ -3178,18 +3212,19 @@ export declare class Mailboxes {
3178
3212
  /**
3179
3213
  * List mailboxes
3180
3214
  *
3181
- * Returns summaries of the mailboxes the caller can read, newest first, filterable by creation time (`after`, `before`). Pass `nextCursor` back as `cursor` for the next page; it is null on the last page. Read a mailbox's endpoints and metadata with `GET /v1/mailboxes/{id}`.
3215
+ * Returns summaries of the mailboxes the caller can read, newest first, filterable by namespace (`namespaceId`) and creation time (`after`, `before`). Pass `nextCursor` back as `cursor` for the next page; it is null on the last page. Read a mailbox's endpoints and metadata with `GET /v1/mailboxes/{id}`.
3182
3216
  */
3183
3217
  static list<ThrowOnError extends boolean = false>(parameters?: {
3184
3218
  limit?: number | null | undefined;
3185
- cursor?: Cursor | null | undefined;
3186
- after?: string | null | undefined;
3187
- before?: string | null | undefined;
3219
+ cursor?: string | undefined;
3220
+ after?: string | undefined;
3221
+ before?: string | undefined;
3222
+ namespaceId?: NamespaceId | undefined;
3188
3223
  }, options?: Options<never, ThrowOnError>): RequestResult<MailboxesListResponses, MailboxesListErrors, ThrowOnError>;
3189
3224
  /**
3190
3225
  * Create a mailbox
3191
3226
  *
3192
- * Creates a mailbox with one endpoint and returns it with status 201; the caller gets an admin grant on it. An email endpoint's address must be under the organization's Samva-hosted mail domain or a verified domain with receiving enabled, and the mailbox sends from it. A phone endpoint's address is a number the organization connected on that channel, in E.164 form. The slug defaults to the address's local part, or a phone number's digits. Pass `slug` when that is taken or not a valid slug. The mailbox receives mail from now on; mail that arrived earlier is not added to it. Conflicts if the address or slug is already in use. Returns 402 when the organization is at its plan's mailbox allowance or at its mailbox storage allowance; incoming mail is still received past the storage allowance.
3227
+ * Creates a mailbox with one endpoint and returns it with status 201; the caller gets an admin grant on it. An email endpoint's address must be under the organization's Samva-hosted mail domain or a verified domain with receiving enabled, and the mailbox sends from it once its sendingStatus is ready. Hosted addresses return pending while sending setup completes. A phone endpoint's address is a number the organization connected on that channel, in E.164 form. The slug defaults to the address's local part, or a phone number's digits. Pass `slug` when that is taken or not a valid slug. The mailbox receives mail from now on; mail that arrived earlier is not added to it. Pass Idempotency-Key to retry safely: the same key and body return the original mailbox in its current state; a changed body returns 409. Conflicts if the address or slug is already in use. Returns 402 when the organization is at its plan's mailbox allowance or at its mailbox storage allowance; incoming mail is still received past the storage allowance.
3193
3228
  */
3194
3229
  static create<ThrowOnError extends boolean = false>(parameters: {
3195
3230
  namespaceId?: NamespaceId | null | undefined;
@@ -3274,22 +3309,22 @@ export declare class Mailboxes {
3274
3309
  /**
3275
3310
  * Get mailbox activity
3276
3311
  *
3277
- * Counts the actions proposed and events recorded on a mailbox between `after` and `before` (omit both for all time), and the sends waiting for approval now. List the actions and events themselves with `GET /v1/mailboxes/{id}/actions` and `GET /v1/mailboxes/{id}/events`.
3312
+ * Counts the actions proposed and events recorded on a mailbox between `after` and `before` (omit both for all time), and the actions waiting for approval now. List the actions and events themselves with `GET /v1/mailboxes/{id}/actions` and `GET /v1/mailboxes/{id}/events`.
3278
3313
  */
3279
3314
  static getAgentActivity<ThrowOnError extends boolean = false>(parameters: {
3280
3315
  id: MailboxId;
3281
- after?: string | null | undefined;
3282
- before?: string | null | undefined;
3316
+ after?: string | undefined;
3317
+ before?: string | undefined;
3283
3318
  }, options?: Options<never, ThrowOnError>): RequestResult<MailboxesGetAgentActivityResponses, MailboxesGetAgentActivityErrors, ThrowOnError>;
3284
3319
  /**
3285
3320
  * List mailbox grants
3286
3321
  *
3287
- * Returns who can use the mailbox, what each grant allows, and whether its sends wait for approval, newest first. Pass `nextCursor` back as `cursor` for the next page; it is null on the last page.
3322
+ * Returns who can use the mailbox, what each grant allows, newest first. Pass `nextCursor` back as `cursor` for the next page; it is null on the last page.
3288
3323
  */
3289
3324
  static listGrants<ThrowOnError extends boolean = false>(parameters: {
3290
3325
  id: MailboxId;
3291
3326
  limit?: number | null | undefined;
3292
- cursor?: Cursor | null | undefined;
3327
+ cursor?: string | undefined;
3293
3328
  }, options?: Options<never, ThrowOnError>): RequestResult<MailboxesListGrantsResponses, MailboxesListGrantsErrors, ThrowOnError>;
3294
3329
  /**
3295
3330
  * Grant a member access to a mailbox
@@ -3300,7 +3335,6 @@ export declare class Mailboxes {
3300
3335
  id: MailboxId;
3301
3336
  userId: UserId;
3302
3337
  role: MailboxGrantRole;
3303
- sendMode?: MailboxSendMode | null | undefined;
3304
3338
  }, options?: Options<never, ThrowOnError>): RequestResult<MailboxesCreateGrantResponses, MailboxesCreateGrantErrors, ThrowOnError>;
3305
3339
  /**
3306
3340
  * Revoke a mailbox grant
@@ -3314,65 +3348,13 @@ export declare class Mailboxes {
3314
3348
  /**
3315
3349
  * Update a mailbox grant
3316
3350
  *
3317
- * Changes a member's role, send mode, or both on a mailbox and returns the updated grant. A field left out keeps its value; naming neither is a validation error. Taking admin from the last grant that can configure the mailbox conflicts, as revoking it does. The change applies to the member's next request on every surface.
3351
+ * Changes a member's role on a mailbox and returns the updated grant. A field left out keeps its value; naming neither is a validation error. Taking admin from the last grant that can configure the mailbox conflicts, as revoking it does. The change applies to the member's next request on every surface.
3318
3352
  */
3319
3353
  static updateGrant<ThrowOnError extends boolean = false>(parameters: {
3320
3354
  id: MailboxId;
3321
3355
  grantId: MailboxGrantId;
3322
3356
  role?: MailboxGrantRole | null | undefined;
3323
- sendMode?: MailboxSendMode | null | undefined;
3324
3357
  }, options?: Options<never, ThrowOnError>): RequestResult<MailboxesUpdateGrantResponses, MailboxesUpdateGrantErrors, ThrowOnError>;
3325
- /**
3326
- * List mailbox policies
3327
- *
3328
- * Returns every send policy on a mailbox, oldest first. A mailbox holds at most 20 policies, so the list is never paged. Each enabled policy holds (`requireApproval`) or refuses (`deny`) every send from the mailbox; `deny` wins when both apply.
3329
- */
3330
- static listPolicies<ThrowOnError extends boolean = false>(parameters: {
3331
- id: MailboxId;
3332
- }, options?: Options<never, ThrowOnError>): RequestResult<MailboxesListPoliciesResponses, MailboxesListPoliciesErrors, ThrowOnError>;
3333
- /**
3334
- * Create a mailbox policy
3335
- *
3336
- * Adds a send policy to a mailbox and returns it with status 201. It applies to every send proposed after it is created, whoever proposes it. A mailbox that already holds 20 policies conflicts.
3337
- */
3338
- static createPolicy<ThrowOnError extends boolean = false>(parameters: {
3339
- id: MailboxId;
3340
- name: string;
3341
- outcome: MailboxPolicyOutcomeKind;
3342
- reason?: string | null | undefined;
3343
- enabled?: boolean | null | undefined;
3344
- }, options?: Options<never, ThrowOnError>): RequestResult<MailboxesCreatePolicyResponses, MailboxesCreatePolicyErrors, ThrowOnError>;
3345
- /**
3346
- * Delete a mailbox policy
3347
- *
3348
- * Deletes a send policy. Sends it already holds stay held until a person approves or denies them.
3349
- */
3350
- static deletePolicy<ThrowOnError extends boolean = false>(parameters: {
3351
- id: MailboxId;
3352
- policyId: MailboxPolicyId;
3353
- }, options?: Options<never, ThrowOnError>): RequestResult<MailboxesDeletePolicyResponses, MailboxesDeletePolicyErrors, ThrowOnError>;
3354
- /**
3355
- * Get a mailbox policy
3356
- *
3357
- * Returns one send policy.
3358
- */
3359
- static getPolicy<ThrowOnError extends boolean = false>(parameters: {
3360
- id: MailboxId;
3361
- policyId: MailboxPolicyId;
3362
- }, options?: Options<never, ThrowOnError>): RequestResult<MailboxesGetPolicyResponses, MailboxesGetPolicyErrors, ThrowOnError>;
3363
- /**
3364
- * Update a mailbox policy
3365
- *
3366
- * Updates the fields you name and keeps the rest. Set `enabled` to `false` to stop a policy applying without deleting it.
3367
- */
3368
- static updatePolicy<ThrowOnError extends boolean = false>(parameters: {
3369
- id: MailboxId;
3370
- policyId: MailboxPolicyId;
3371
- name?: string | null | undefined;
3372
- outcome?: MailboxPolicyOutcomeKind | null | undefined;
3373
- reason?: string | null | undefined;
3374
- enabled?: boolean | null | undefined;
3375
- }, options?: Options<never, ThrowOnError>): RequestResult<MailboxesUpdatePolicyResponses, MailboxesUpdatePolicyErrors, ThrowOnError>;
3376
3358
  /**
3377
3359
  * List mailbox folders
3378
3360
  *
@@ -3423,11 +3405,11 @@ export declare class Mailboxes {
3423
3405
  /**
3424
3406
  * List mailbox decisions awaiting you
3425
3407
  *
3426
- * Returns held sends this caller can approve and quarantined messages this caller may release across their visible mailboxes. Counts cover all actionable items, independent of the current cursor page. Metadata only; isolated messages, self approvals, and decisions the credential cannot perform are excluded.
3408
+ * Returns held actions this caller can approve and quarantined messages this caller may release across their visible mailboxes. Counts cover all actionable items, independent of the current cursor page. Metadata only; isolated messages, self approvals, and decisions the credential cannot perform are excluded.
3427
3409
  */
3428
3410
  static getNeedsYou<ThrowOnError extends boolean = false>(parameters?: {
3429
3411
  limit?: number | null | undefined;
3430
- cursor?: Cursor | null | undefined;
3412
+ cursor?: string | undefined;
3431
3413
  }, options?: Options<never, ThrowOnError>): RequestResult<MailboxesGetNeedsYouResponses, MailboxesGetNeedsYouErrors, ThrowOnError>;
3432
3414
  /**
3433
3415
  * List your drafts across mailboxes
@@ -3436,47 +3418,47 @@ export declare class Mailboxes {
3436
3418
  */
3437
3419
  static listOrganizationDrafts<ThrowOnError extends boolean = false>(parameters?: {
3438
3420
  limit?: number | null | undefined;
3439
- cursor?: Cursor | null | undefined;
3440
- mailboxId?: MailboxId | Array<MailboxId> | null | undefined;
3441
- kind?: "personal" | "shared" | null | undefined;
3442
- threadId?: MailboxThreadId | null | undefined;
3421
+ cursor?: string | undefined;
3422
+ mailboxId?: MailboxId | Array<MailboxId> | undefined;
3423
+ kind?: "personal" | "shared" | undefined;
3424
+ threadId?: MailboxThreadId | undefined;
3443
3425
  }, options?: Options<never, ThrowOnError>): RequestResult<MailboxesListOrganizationDraftsResponses, MailboxesListOrganizationDraftsErrors, ThrowOnError>;
3444
3426
  /**
3445
3427
  * List threads across your mailboxes
3446
3428
  *
3447
- * Lists only threads in mailboxes the caller can read, newest activity first. Repeat mailboxId to narrow the scope; kind selects personal or shared mailboxes. conversation selects the threads of one conversation (the conversationId a thread reports), one per readable mailbox it reached. state=active excludes the caller's Done and shared closed threads; state=done selects the caller's Done plus closed shared threads, without duplicates. Other filters and cursor pagination match the per-mailbox list.
3429
+ * Lists only threads in mailboxes the caller can read. With `q`, semantic and keyword search returns the best-matching threads in relevance order, capped across cursor pages. Without `q`, threads use newest activity first. Repeat mailboxId to narrow the scope; kind selects personal or shared mailboxes. conversation selects the threads of one conversation (the conversationId a thread reports), one per readable mailbox it reached. state=active excludes the caller's Done and shared closed threads; state=done selects the caller's Done plus closed shared threads, without duplicates. Other filters and cursor pagination match the per-mailbox list.
3448
3430
  */
3449
3431
  static listOrganizationThreads<ThrowOnError extends boolean = false>(parameters?: {
3450
3432
  limit?: number | null | undefined;
3451
- cursor?: Cursor | null | undefined;
3452
- after?: string | null | undefined;
3453
- before?: string | null | undefined;
3454
- q?: string | null | undefined;
3455
- state?: "active" | "done" | null | undefined;
3456
- folder?: MailboxThreadFolder | null | undefined;
3457
- label?: MailboxLabelId | null | undefined;
3433
+ cursor?: string | undefined;
3434
+ after?: string | undefined;
3435
+ before?: string | undefined;
3436
+ q?: string | undefined;
3437
+ state?: "active" | "done" | undefined;
3438
+ folder?: MailboxThreadFolder | undefined;
3439
+ label?: MailboxLabelId | undefined;
3458
3440
  unread?: boolean | null | undefined;
3459
3441
  starred?: boolean | null | undefined;
3460
3442
  snoozed?: boolean | null | undefined;
3461
- mailboxId?: MailboxId | Array<MailboxId> | null | undefined;
3462
- kind?: "personal" | "shared" | null | undefined;
3463
- conversation?: ConversationId | null | undefined;
3443
+ mailboxId?: MailboxId | Array<MailboxId> | undefined;
3444
+ kind?: "personal" | "shared" | undefined;
3445
+ conversation?: ConversationId | undefined;
3464
3446
  }, options?: Options<never, ThrowOnError>): RequestResult<MailboxesListOrganizationThreadsResponses, MailboxesListOrganizationThreadsErrors, ThrowOnError>;
3465
3447
  /**
3466
3448
  * List threads in a mailbox
3467
3449
  *
3468
- * Returns thread summaries, most recent activity first. `after` and `before` filter by last activity, so an agent polling for new mail passes the last time it looked. `q` is a full-text search over subjects, senders, and message text; `folder`, `label`, `unread`, and `starred` narrow the list. Pass `nextCursor` back as `cursor` for the next page; it is null on the last page. A thread that gains activity while you page moves ahead of the cursor, so a walk lists each thread at most once.
3450
+ * Returns thread summaries. With `q`, semantic and keyword search returns up to 100 best-matching threads in relevance order across cursor pages. It searches subjects, participants, message text including quoted history, and attachment filenames, not attachment contents. New mail can take a few seconds to become searchable. Other filters narrow the searchable set. Without `q`, threads use most recent activity first; `after` and `before` filter by last activity for polling. Pass `nextCursor` back as `cursor` for the next page; it is null on the last page. In a list without `q`, a thread that gains activity while you page moves ahead of the cursor, so a walk lists each thread at most once.
3469
3451
  */
3470
3452
  static listThreads<ThrowOnError extends boolean = false>(parameters: {
3471
3453
  id: MailboxId;
3472
3454
  limit?: number | null | undefined;
3473
- cursor?: Cursor | null | undefined;
3474
- after?: string | null | undefined;
3475
- before?: string | null | undefined;
3476
- q?: string | null | undefined;
3477
- state?: "active" | "done" | null | undefined;
3478
- folder?: MailboxThreadFolder | null | undefined;
3479
- label?: MailboxLabelId | null | undefined;
3455
+ cursor?: string | undefined;
3456
+ after?: string | undefined;
3457
+ before?: string | undefined;
3458
+ q?: string | undefined;
3459
+ state?: "active" | "done" | undefined;
3460
+ folder?: MailboxThreadFolder | undefined;
3461
+ label?: MailboxLabelId | undefined;
3480
3462
  unread?: boolean | null | undefined;
3481
3463
  starred?: boolean | null | undefined;
3482
3464
  snoozed?: boolean | null | undefined;
@@ -3535,7 +3517,7 @@ export declare class Mailboxes {
3535
3517
  id: MailboxId;
3536
3518
  threadId: MailboxThreadId;
3537
3519
  limit?: number | null | undefined;
3538
- cursor?: Cursor | null | undefined;
3520
+ cursor?: string | undefined;
3539
3521
  }, options?: Options<never, ThrowOnError>): RequestResult<MailboxesListThreadMessagesResponses, MailboxesListThreadMessagesErrors, ThrowOnError>;
3540
3522
  /**
3541
3523
  * Read a mailbox thread
@@ -3546,7 +3528,7 @@ export declare class Mailboxes {
3546
3528
  id: MailboxId;
3547
3529
  threadId: MailboxThreadId;
3548
3530
  limit?: number | null | undefined;
3549
- cursor?: Cursor | null | undefined;
3531
+ cursor?: string | undefined;
3550
3532
  }, options?: Options<never, ThrowOnError>): RequestResult<MailboxesGetThreadContentResponses, MailboxesGetThreadContentErrors, ThrowOnError>;
3551
3533
  /**
3552
3534
  * List notes in a mailbox thread
@@ -3557,7 +3539,7 @@ export declare class Mailboxes {
3557
3539
  id: MailboxId;
3558
3540
  threadId: MailboxThreadId;
3559
3541
  limit?: number | null | undefined;
3560
- cursor?: Cursor | null | undefined;
3542
+ cursor?: string | undefined;
3561
3543
  }, options?: Options<never, ThrowOnError>): RequestResult<MailboxesListThreadNotesResponses, MailboxesListThreadNotesErrors, ThrowOnError>;
3562
3544
  /**
3563
3545
  * Create a mailbox note
@@ -3601,16 +3583,7 @@ export declare class Mailboxes {
3601
3583
  */
3602
3584
  static sendMessage<ThrowOnError extends boolean = false>(parameters: {
3603
3585
  id: MailboxId;
3604
- channel?: "email" | null | undefined;
3605
- to: [string, ...Array<string>];
3606
- cc?: Array<string> | null | undefined;
3607
- bcc?: Array<string> | null | undefined;
3608
- replyTo?: Array<string> | null | undefined;
3609
- subject: string;
3610
- text?: string | null | undefined;
3611
- html?: string | null | undefined;
3612
- attachments?: Array<EmailAttachment> | null | undefined;
3613
- }, options?: Options<never, ThrowOnError>): RequestResult<MailboxesSendMessageResponses, MailboxesSendMessageErrors, ThrowOnError>;
3586
+ } & (SendMailboxEmailPayload | SendMailboxChatPayload), options?: Options<never, ThrowOnError>): RequestResult<MailboxesSendMessageResponses, MailboxesSendMessageErrors, ThrowOnError>;
3614
3587
  /**
3615
3588
  * Get a mailbox message
3616
3589
  *
@@ -3657,13 +3630,7 @@ export declare class Mailboxes {
3657
3630
  static reply<ThrowOnError extends boolean = false>(parameters: {
3658
3631
  id: MailboxId;
3659
3632
  messageId: MessageId;
3660
- channel?: "email" | null | undefined;
3661
- cc?: Array<string> | null | undefined;
3662
- bcc?: Array<string> | null | undefined;
3663
- text?: string | null | undefined;
3664
- html?: string | null | undefined;
3665
- attachments?: Array<EmailAttachment> | null | undefined;
3666
- }, options?: Options<never, ThrowOnError>): RequestResult<MailboxesReplyResponses, MailboxesReplyErrors, ThrowOnError>;
3633
+ } & (ReplyMailboxEmailPayload | ReplyMailboxChatPayload), options?: Options<never, ThrowOnError>): RequestResult<MailboxesReplyResponses, MailboxesReplyErrors, ThrowOnError>;
3667
3634
  /**
3668
3635
  * Reply to all recipients of a message
3669
3636
  *
@@ -3672,13 +3639,7 @@ export declare class Mailboxes {
3672
3639
  static replyAll<ThrowOnError extends boolean = false>(parameters: {
3673
3640
  id: MailboxId;
3674
3641
  messageId: MessageId;
3675
- channel?: "email" | null | undefined;
3676
- cc?: Array<string> | null | undefined;
3677
- bcc?: Array<string> | null | undefined;
3678
- text?: string | null | undefined;
3679
- html?: string | null | undefined;
3680
- attachments?: Array<EmailAttachment> | null | undefined;
3681
- }, options?: Options<never, ThrowOnError>): RequestResult<MailboxesReplyAllResponses, MailboxesReplyAllErrors, ThrowOnError>;
3642
+ } & (ReplyMailboxEmailPayload | ReplyMailboxChatPayload), options?: Options<never, ThrowOnError>): RequestResult<MailboxesReplyAllResponses, MailboxesReplyAllErrors, ThrowOnError>;
3682
3643
  /**
3683
3644
  * Forward a message
3684
3645
  *
@@ -3702,9 +3663,9 @@ export declare class Mailboxes {
3702
3663
  static listQuarantine<ThrowOnError extends boolean = false>(parameters: {
3703
3664
  id: MailboxId;
3704
3665
  limit?: number | null | undefined;
3705
- cursor?: Cursor | null | undefined;
3706
- after?: string | null | undefined;
3707
- before?: string | null | undefined;
3666
+ cursor?: string | undefined;
3667
+ after?: string | undefined;
3668
+ before?: string | undefined;
3708
3669
  }, options?: Options<never, ThrowOnError>): RequestResult<MailboxesListQuarantineResponses, MailboxesListQuarantineErrors, ThrowOnError>;
3709
3670
  /**
3710
3671
  * Release a quarantined message
@@ -3732,8 +3693,8 @@ export declare class Mailboxes {
3732
3693
  static listDrafts<ThrowOnError extends boolean = false>(parameters: {
3733
3694
  id: MailboxId;
3734
3695
  limit?: number | null | undefined;
3735
- cursor?: Cursor | null | undefined;
3736
- threadId?: MailboxThreadId | null | undefined;
3696
+ cursor?: string | undefined;
3697
+ threadId?: MailboxThreadId | undefined;
3737
3698
  }, options?: Options<never, ThrowOnError>): RequestResult<MailboxesListDraftsResponses, MailboxesListDraftsErrors, ThrowOnError>;
3738
3699
  /**
3739
3700
  * Create a draft
@@ -3742,18 +3703,7 @@ export declare class Mailboxes {
3742
3703
  */
3743
3704
  static createDraft<ThrowOnError extends boolean = false>(parameters: {
3744
3705
  id: MailboxId;
3745
- channel?: "email" | null | undefined;
3746
- endpointId?: MailboxEndpointId | null | undefined;
3747
- to?: Array<string> | null | undefined;
3748
- cc?: Array<string> | null | undefined;
3749
- bcc?: Array<string> | null | undefined;
3750
- replyTo?: Array<string> | null | undefined;
3751
- subject?: string | null | undefined;
3752
- text?: string | null | undefined;
3753
- html?: string | null | undefined;
3754
- attachments?: Array<EmailAttachment> | null | undefined;
3755
- inReplyToMessageId?: MessageId | null | undefined;
3756
- }, options?: Options<never, ThrowOnError>): RequestResult<MailboxesCreateDraftResponses, MailboxesCreateDraftErrors, ThrowOnError>;
3706
+ } & (CreateMailboxEmailDraftPayload | CreateMailboxChatDraftPayload), options?: Options<never, ThrowOnError>): RequestResult<MailboxesCreateDraftResponses, MailboxesCreateDraftErrors, ThrowOnError>;
3757
3707
  /**
3758
3708
  * Delete a draft
3759
3709
  *
@@ -3801,16 +3751,16 @@ export declare class Mailboxes {
3801
3751
  /**
3802
3752
  * List mailbox actions
3803
3753
  *
3804
- * Returns the actions proposed on a mailbox, newest first, filterable by `threadId`, `state` (`approvalRequired` lists the sends waiting for a person), and creation time (`after`, `before`). Filters apply together within the mailbox. Pass `nextCursor` back as `cursor` for the next page; it is null on the last page.
3754
+ * Returns the actions proposed on a mailbox, newest first, filterable by `threadId`, `state` (`approvalRequired` lists the actions waiting for a person), and creation time (`after`, `before`). Filters apply together within the mailbox. Pass `nextCursor` back as `cursor` for the next page; it is null on the last page.
3805
3755
  */
3806
3756
  static listActions<ThrowOnError extends boolean = false>(parameters: {
3807
3757
  id: MailboxId;
3808
3758
  limit?: number | null | undefined;
3809
- cursor?: Cursor | null | undefined;
3810
- threadId?: MailboxThreadId | null | undefined;
3811
- state?: "proposed" | "allowed" | "approvalRequired" | "policyDenied" | "approved" | "approvalDenied" | "executing" | "executed" | "failed" | "queued" | "accepted" | "completed" | "notSent" | "uncertain" | null | undefined;
3812
- after?: string | null | undefined;
3813
- before?: string | null | undefined;
3759
+ cursor?: string | undefined;
3760
+ threadId?: MailboxThreadId | undefined;
3761
+ state?: "proposed" | "allowed" | "approvalRequired" | "policyDenied" | "approved" | "approvalDenied" | "executing" | "executed" | "failed" | "queued" | "accepted" | "completed" | "notSent" | "uncertain" | undefined;
3762
+ after?: string | undefined;
3763
+ before?: string | undefined;
3814
3764
  }, options?: Options<never, ThrowOnError>): RequestResult<MailboxesListActionsResponses, MailboxesListActionsErrors, ThrowOnError>;
3815
3765
  /**
3816
3766
  * Get a mailbox action
@@ -3842,11 +3792,17 @@ export declare class Mailboxes {
3842
3792
  /**
3843
3793
  * Approve a mailbox action
3844
3794
  *
3845
- * Records approval of a send and returns 202 while it is pending. A send is queued for automatic retry within 15 minutes of approval; repeating approval does not extend this deadline. Accepted, completed, and notSent replays return 200. No expiry applies before approval. Only a person signed in or through OAuth may approve, and never the proposer. Non-send approvals execute synchronously and return 200 with their own execution states. The action's `resolution` names the approver; approving a held send publishes one `mailbox.action.resolved` event.
3795
+ * Records approval of a send and returns 202 while it is pending. A send is queued for automatic retry within 15 minutes of approval; repeating approval does not extend this deadline. Accepted, completed, and notSent replays return 200. No expiry applies before approval. Only a person signed in or through OAuth may approve, and never the proposer. Non-send approvals execute synchronously and return 200 with their own execution states. Set `always: true` to add an actor-specific rule allowing matching future actions, subject to policy floors and guards. Remembering an allowance for a hosted agent or API key requires an organization owner or admin. A hand-off cannot be always allowed. The action's `resolution` names the approver; approving a held send publishes one `mailbox.action.resolved` event.
3846
3796
  */
3847
3797
  static approveAction<ThrowOnError extends boolean = false>(parameters: {
3848
3798
  id: MailboxId;
3849
3799
  actionId: MailboxActionId;
3800
+ reviewRound: PolicyReviewRound;
3801
+ always?: boolean | null | undefined;
3802
+ edits?: {
3803
+ text?: string | null | undefined;
3804
+ html?: string | null | undefined;
3805
+ } | null | undefined;
3850
3806
  }, options?: Options<never, ThrowOnError>): RequestResult<MailboxesApproveActionResponses, MailboxesApproveActionErrors, ThrowOnError>;
3851
3807
  /**
3852
3808
  * Deny a mailbox action
@@ -3856,6 +3812,7 @@ export declare class Mailboxes {
3856
3812
  static denyAction<ThrowOnError extends boolean = false>(parameters: {
3857
3813
  id: MailboxId;
3858
3814
  actionId: MailboxActionId;
3815
+ reviewRound: PolicyReviewRound;
3859
3816
  reason: string;
3860
3817
  }, options?: Options<never, ThrowOnError>): RequestResult<MailboxesDenyActionResponses, MailboxesDenyActionErrors, ThrowOnError>;
3861
3818
  /**
@@ -3866,14 +3823,51 @@ export declare class Mailboxes {
3866
3823
  static listEvents<ThrowOnError extends boolean = false>(parameters: {
3867
3824
  id: MailboxId;
3868
3825
  limit?: number | null | undefined;
3869
- cursor?: Cursor | null | undefined;
3870
- after?: string | null | undefined;
3871
- before?: string | null | undefined;
3826
+ cursor?: string | undefined;
3827
+ after?: string | undefined;
3828
+ before?: string | undefined;
3872
3829
  }, options?: Options<never, ThrowOnError>): RequestResult<MailboxesListEventsResponses, MailboxesListEventsErrors, ThrowOnError>;
3873
3830
  }
3874
3831
  export declare class Mailboxes2 {
3875
3832
  static mailboxes: typeof Mailboxes;
3876
3833
  }
3834
+ export declare class Policies {
3835
+ /**
3836
+ * Clear decision rules
3837
+ *
3838
+ * Clears this scope's rules and instructions only when ifVersion matches, and returns the next version. The stored version is retained. Other scopes and subject defaults continue to apply.
3839
+ */
3840
+ static deletePolicy<ThrowOnError extends boolean = false>(parameters: {
3841
+ kind: "organization" | "mailbox" | "apiKey" | "agent";
3842
+ id: string;
3843
+ ifVersion: number;
3844
+ }, options?: Options<never, ThrowOnError>): RequestResult<PoliciesDeletePolicyResponses, PoliciesDeletePolicyErrors, ThrowOnError>;
3845
+ /**
3846
+ * Get decision rules
3847
+ *
3848
+ * Returns the rules and instructions for an organization, mailbox, API key, or agent in the current organization. An agent scope holds the rules added by approving its actions with `always`; they apply on top of the agent's published rules. An unset policy has version 0 and no rules or presets.
3849
+ */
3850
+ static getPolicy<ThrowOnError extends boolean = false>(parameters: {
3851
+ kind: "organization" | "mailbox" | "apiKey" | "agent";
3852
+ id: string;
3853
+ }, options?: Options<never, ThrowOnError>): RequestResult<PoliciesGetPolicyResponses, PoliciesGetPolicyErrors, ThrowOnError>;
3854
+ /**
3855
+ * Set decision rules
3856
+ *
3857
+ * Replaces this scope's rules and instructions only when ifVersion matches its current version. A stale version returns a conflict. More specific scopes replace defaults; atLeast floors remain binding. Identical rule matches in one scope are rejected.
3858
+ */
3859
+ static setPolicy<ThrowOnError extends boolean = false>(parameters: {
3860
+ kind: "organization" | "mailbox" | "apiKey" | "agent";
3861
+ id: string;
3862
+ presets: Array<string>;
3863
+ rules: Array<PolicyRule>;
3864
+ instructions?: string | null | undefined;
3865
+ ifVersion: PolicyVersion;
3866
+ }, options?: Options<never, ThrowOnError>): RequestResult<PoliciesSetPolicyResponses, PoliciesSetPolicyErrors, ThrowOnError>;
3867
+ }
3868
+ export declare class Policies2 {
3869
+ static policies: typeof Policies;
3870
+ }
3877
3871
  export declare class Namespaces {
3878
3872
  /**
3879
3873
  * List namespaces
@@ -3882,9 +3876,9 @@ export declare class Namespaces {
3882
3876
  */
3883
3877
  static list<ThrowOnError extends boolean = false>(parameters?: {
3884
3878
  limit?: number | null | undefined;
3885
- cursor?: Cursor | null | undefined;
3886
- after?: string | null | undefined;
3887
- before?: string | null | undefined;
3879
+ cursor?: string | undefined;
3880
+ after?: string | undefined;
3881
+ before?: string | undefined;
3888
3882
  }, options?: Options<never, ThrowOnError>): RequestResult<NamespacesListResponses, NamespacesListErrors, ThrowOnError>;
3889
3883
  /**
3890
3884
  * Create a namespace
@@ -3898,7 +3892,7 @@ export declare class Namespaces {
3898
3892
  /**
3899
3893
  * Delete a namespace
3900
3894
  *
3901
- * Deletes an empty namespace. A namespace that still holds anything conflicts, and the error counts what remains: mailboxes, API keys, webhook endpoints filtered to it, domains, senders, contacts, or template projects. Delete each, or return it to organization level with `DELETE /v1/namespaces/{id}/resources/{type}/{resourceId}`; mailboxes, keys, and webhook endpoints cannot move and are deleted. Messages keep the namespace they ran in.
3895
+ * Deletes an empty namespace. A namespace that still holds anything conflicts, and the error names and counts each resource kind that remains. Delete each, or return it to organization level with `DELETE /v1/namespaces/{id}/resources/{type}/{resourceId}`; mailboxes, keys, and webhook endpoints cannot move and are deleted. Messages keep the namespace they ran in.
3902
3896
  */
3903
3897
  static remove<ThrowOnError extends boolean = false>(parameters: {
3904
3898
  id: NamespaceId;
@@ -3950,8 +3944,8 @@ export declare class Namespaces {
3950
3944
  */
3951
3945
  static getUsage<ThrowOnError extends boolean = false>(parameters: {
3952
3946
  id: NamespaceId;
3953
- after?: string | null | undefined;
3954
- before?: string | null | undefined;
3947
+ after?: string | undefined;
3948
+ before?: string | undefined;
3955
3949
  }, options?: Options<never, ThrowOnError>): RequestResult<NamespacesGetUsageResponses, NamespacesGetUsageErrors, ThrowOnError>;
3956
3950
  }
3957
3951
  export declare class Namespaces2 {
@@ -3965,9 +3959,9 @@ export declare class Extensions {
3965
3959
  */
3966
3960
  static list<ThrowOnError extends boolean = false>(parameters?: {
3967
3961
  limit?: number | null | undefined;
3968
- cursor?: Cursor | null | undefined;
3969
- after?: string | null | undefined;
3970
- before?: string | null | undefined;
3962
+ cursor?: string | undefined;
3963
+ after?: string | undefined;
3964
+ before?: string | undefined;
3971
3965
  }, options?: Options<never, ThrowOnError>): RequestResult<ExtensionsListResponses, ExtensionsListErrors, ThrowOnError>;
3972
3966
  /**
3973
3967
  * Publish an extension version
@@ -4002,7 +3996,7 @@ export declare class Extensions {
4002
3996
  static listVersions<ThrowOnError extends boolean = false>(parameters: {
4003
3997
  id: string;
4004
3998
  limit?: number | null | undefined;
4005
- cursor?: Cursor | null | undefined;
3999
+ cursor?: string | undefined;
4006
4000
  }, options?: Options<never, ThrowOnError>): RequestResult<ExtensionsListVersionsResponses, ExtensionsListVersionsErrors, ThrowOnError>;
4007
4001
  /**
4008
4002
  * Get an extension version
@@ -4025,14 +4019,14 @@ export declare class ExtensionInstallations {
4025
4019
  */
4026
4020
  static list<ThrowOnError extends boolean = false>(parameters?: {
4027
4021
  limit?: number | null | undefined;
4028
- cursor?: Cursor | null | undefined;
4029
- after?: string | null | undefined;
4030
- before?: string | null | undefined;
4022
+ cursor?: string | undefined;
4023
+ after?: string | undefined;
4024
+ before?: string | undefined;
4031
4025
  }, options?: Options<never, ThrowOnError>): RequestResult<ExtensionInstallationsListResponses, ExtensionInstallationsListErrors, ThrowOnError>;
4032
4026
  /**
4033
4027
  * Install an extension
4034
4028
  *
4035
- * Installs a published version with a scope, permissions, and a send mode, and returns it with status 201. The installation acts on your grants narrowed to these; a webhook installation's API key and webhook secret are returned once. Only a person can install, not an API key.
4029
+ * Installs a published version with a scope, permissions, and an action policy, and returns it with status 201. The installation acts on your grants narrowed to these; a webhook installation's API key and webhook secret are returned once. Only a person can install, not an API key.
4036
4030
  */
4037
4031
  static install<ThrowOnError extends boolean = false>(parameters: {
4038
4032
  extension: string;
@@ -4040,7 +4034,7 @@ export declare class ExtensionInstallations {
4040
4034
  mailboxIds?: Array<MailboxId> | null | undefined;
4041
4035
  namespaceId?: NamespaceId | null | undefined;
4042
4036
  permissions?: Array<"read" | "update" | "send" | "quarantine.read"> | null | undefined;
4043
- sendMode?: "send" | "approval" | null | undefined;
4037
+ policy?: PolicyConfiguration | null | undefined;
4044
4038
  webhookUrl?: string | null | undefined;
4045
4039
  }, options?: Options<never, ThrowOnError>): RequestResult<ExtensionInstallationsInstallResponses, ExtensionInstallationsInstallErrors, ThrowOnError>;
4046
4040
  /**
@@ -4054,7 +4048,7 @@ export declare class ExtensionInstallations {
4054
4048
  /**
4055
4049
  * Get an installation
4056
4050
  *
4057
- * Returns one installation with its permissions, scope, send mode, and webhook endpoint.
4051
+ * Returns one installation with its permissions, scope, action policy, and webhook endpoint.
4058
4052
  */
4059
4053
  static get<ThrowOnError extends boolean = false>(parameters: {
4060
4054
  id: ExtensionInstallationId;
@@ -4062,7 +4056,7 @@ export declare class ExtensionInstallations {
4062
4056
  /**
4063
4057
  * Upgrade or roll back an installation
4064
4058
  *
4065
- * Changes the pinned version in place. Omit version for the latest publication, or name a version string or id, including an older version to roll back. Preview with dryRun; changing requires acceptPermissions to list exactly the added permission: and event: grants. Only a person can upgrade. Credentials, owner, scope, send mode, and status stay attached to the installation.
4059
+ * Changes the pinned version in place. Omit version for the latest publication, or name a version string or id, including an older version to roll back. Preview with dryRun; changing requires acceptPermissions to list exactly the added permission: and event: grants. Only a person can upgrade. Credentials, owner, scope, policy, and status stay attached to the installation.
4066
4060
  */
4067
4061
  static upgrade<ThrowOnError extends boolean = false>(parameters: {
4068
4062
  id: ExtensionInstallationId;