samva 0.33.0 → 0.35.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 (117) hide show
  1. package/README.md +1 -1
  2. package/dist/client/sdk.gen.d.ts +225 -251
  3. package/dist/client/sdk.gen.js +85 -211
  4. package/dist/client/types.gen.d.ts +2897 -403
  5. package/dist/effect/agents.d.ts +28 -13
  6. package/dist/effect/agents.js +5 -1
  7. package/dist/effect/analytics.d.ts +15 -15
  8. package/dist/effect/api-keys.d.ts +27 -18
  9. package/dist/effect/campaigns.d.ts +721 -65
  10. package/dist/effect/categories.d.ts +3 -3
  11. package/dist/effect/contact-groups.d.ts +15 -15
  12. package/dist/effect/contacts.d.ts +56 -52
  13. package/dist/effect/conversations.d.ts +45 -45
  14. package/dist/effect/email.d.ts +82 -82
  15. package/dist/effect/errors.d.ts +1 -1
  16. package/dist/effect/errors.js +2 -2
  17. package/dist/effect/extension-installations.d.ts +11 -11
  18. package/dist/effect/extensions.d.ts +16 -16
  19. package/dist/effect/generated/agents.d.ts +1063 -33
  20. package/dist/effect/generated/agents.js +133 -11
  21. package/dist/effect/generated/analytics.d.ts +109 -136
  22. package/dist/effect/generated/analytics.js +65 -36
  23. package/dist/effect/generated/api-keys.d.ts +240 -19
  24. package/dist/effect/generated/api-keys.js +24 -8
  25. package/dist/effect/generated/attachments.d.ts +89 -1
  26. package/dist/effect/generated/attachments.js +10 -2
  27. package/dist/effect/generated/brands.d.ts +133 -1
  28. package/dist/effect/generated/brands.js +22 -10
  29. package/dist/effect/generated/campaigns.d.ts +1442 -140
  30. package/dist/effect/generated/campaigns.js +82 -20
  31. package/dist/effect/generated/contact-events.d.ts +26 -4
  32. package/dist/effect/generated/contact-events.js +5 -3
  33. package/dist/effect/generated/contact-groups.d.ts +233 -13
  34. package/dist/effect/generated/contact-groups.js +33 -17
  35. package/dist/effect/generated/contacts.d.ts +634 -96
  36. package/dist/effect/generated/contacts.js +82 -20
  37. package/dist/effect/generated/conversations.d.ts +398 -106
  38. package/dist/effect/generated/conversations.js +96 -22
  39. package/dist/effect/generated/custom-fields.d.ts +89 -1
  40. package/dist/effect/generated/custom-fields.js +11 -3
  41. package/dist/effect/generated/email.d.ts +1447 -83
  42. package/dist/effect/generated/email.js +167 -43
  43. package/dist/effect/generated/events.d.ts +51 -7
  44. package/dist/effect/generated/events.js +9 -5
  45. package/dist/effect/generated/extension-installations.d.ts +208 -10
  46. package/dist/effect/generated/extension-installations.js +26 -8
  47. package/dist/effect/generated/extensions.d.ts +123 -13
  48. package/dist/effect/generated/extensions.js +20 -10
  49. package/dist/effect/generated/feedback.d.ts +23 -1
  50. package/dist/effect/generated/feedback.js +6 -4
  51. package/dist/effect/generated/journeys.d.ts +684 -16
  52. package/dist/effect/generated/journeys.js +37 -9
  53. package/dist/effect/generated/mailboxes.d.ts +3085 -627
  54. package/dist/effect/generated/mailboxes.js +340 -141
  55. package/dist/effect/generated/media.d.ts +125 -15
  56. package/dist/effect/generated/media.js +15 -2
  57. package/dist/effect/generated/messages.d.ts +2036 -117
  58. package/dist/effect/generated/messages.js +286 -54
  59. package/dist/effect/generated/namespaces.d.ts +209 -25
  60. package/dist/effect/generated/namespaces.js +27 -9
  61. package/dist/effect/generated/newsletter-domains.d.ts +98 -12
  62. package/dist/effect/generated/newsletter-domains.js +20 -13
  63. package/dist/effect/generated/newsletter-issues.d.ts +354 -19
  64. package/dist/effect/generated/newsletter-issues.js +162 -98
  65. package/dist/effect/generated/newsletters.d.ts +123 -13
  66. package/dist/effect/generated/newsletters.js +19 -9
  67. package/dist/effect/generated/operations.d.ts +76 -10
  68. package/dist/effect/generated/operations.js +12 -6
  69. package/dist/effect/generated/organizations.d.ts +287 -7
  70. package/dist/effect/generated/organizations.js +33 -5
  71. package/dist/effect/generated/scheduled-messages.d.ts +4427 -99
  72. package/dist/effect/generated/scheduled-messages.js +71 -12
  73. package/dist/effect/generated/shared.d.ts +2213 -190
  74. package/dist/effect/generated/shared.js +527 -76
  75. package/dist/effect/generated/subscriptions.d.ts +23 -1
  76. package/dist/effect/generated/subscriptions.js +6 -4
  77. package/dist/effect/generated/templates.d.ts +1718 -136
  78. package/dist/effect/generated/templates.js +421 -226
  79. package/dist/effect/generated/topic-forms.d.ts +111 -1
  80. package/dist/effect/generated/topic-forms.js +23 -13
  81. package/dist/effect/generated/topics.d.ts +353 -43
  82. package/dist/effect/generated/topics.js +67 -19
  83. package/dist/effect/generated/webhooks.d.ts +308 -46
  84. package/dist/effect/generated/webhooks.js +67 -19
  85. package/dist/effect/generated/whoami.d.ts +35 -1
  86. package/dist/effect/generated/whoami.js +4 -2
  87. package/dist/effect/generated-metadata.d.ts +20 -0
  88. package/dist/effect/generated-metadata.js +10 -0
  89. package/dist/effect/index.js +2 -2
  90. package/dist/effect/internal/client.js +1 -1
  91. package/dist/effect/internal/email-sender.d.ts +1 -1
  92. package/dist/effect/internal/send.d.ts +1 -1
  93. package/dist/effect/journeys.d.ts +105 -19
  94. package/dist/effect/mailboxes.d.ts +405 -174
  95. package/dist/effect/media.d.ts +1 -1
  96. package/dist/effect/messages.d.ts +40 -40
  97. package/dist/effect/namespaces.d.ts +15 -15
  98. package/dist/effect/newsletter-domains.d.ts +5 -5
  99. package/dist/effect/newsletters.d.ts +1 -1
  100. package/dist/effect/operations.d.ts +11 -11
  101. package/dist/effect/organizations.d.ts +2 -2
  102. package/dist/effect/scheduled-messages.d.ts +863 -8
  103. package/dist/effect/templates.d.ts +37 -37
  104. package/dist/effect/topics.d.ts +21 -21
  105. package/dist/effect/webhooks.d.ts +28 -26
  106. package/dist/index.js +2 -2
  107. package/dist/normalize.js +13 -1
  108. package/dist/package.js +1 -1
  109. package/dist/promises/client.d.ts +1 -1
  110. package/dist/promises/client.js +2 -2
  111. package/dist/promises/errors.gen.d.ts +22 -2
  112. package/dist/promises/errors.gen.js +60 -2
  113. package/dist/promises/index.js +2 -2
  114. package/dist/promises/types.gen.d.ts +1 -1
  115. package/dist/service-map.d.ts +9 -0
  116. package/dist/service-map.js +5 -0
  117. package/package.json +9 -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, 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, 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, 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, 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, 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, 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, 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,8 @@ 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
+ status?: "pending" | "dispatching" | "paused" | "dispatched" | "cancelled" | "failed" | undefined;
173
164
  }, options?: Options<never, ThrowOnError>): RequestResult<ScheduledMessagesListResponses, ScheduledMessagesListErrors, ThrowOnError>;
174
165
  /**
175
166
  * Schedule a message
@@ -243,9 +234,9 @@ export declare class Campaigns {
243
234
  * 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
235
  */
245
236
  static list<ThrowOnError extends boolean = false>(parameters?: {
246
- status?: "draft" | "archived" | null | undefined;
237
+ status?: "draft" | "archived" | undefined;
247
238
  limit?: number | null | undefined;
248
- cursor?: Cursor | null | undefined;
239
+ cursor?: string | undefined;
249
240
  }, options?: Options<never, ThrowOnError>): RequestResult<CampaignsListResponses, CampaignsListErrors, ThrowOnError>;
250
241
  /**
251
242
  * Create a campaign
@@ -254,7 +245,7 @@ export declare class Campaigns {
254
245
  */
255
246
  static create<ThrowOnError extends boolean = false>(parameters: {
256
247
  name: string;
257
- channel: "email";
248
+ channel: "sms" | "whatsapp" | "email";
258
249
  content: CampaignContentInput;
259
250
  audience: CampaignAudience;
260
251
  policy?: CampaignPolicy | null | undefined;
@@ -294,9 +285,9 @@ export declare class Campaigns {
294
285
  */
295
286
  static listRuns<ThrowOnError extends boolean = false>(parameters: {
296
287
  id: CampaignId;
297
- status?: "scheduled" | "resolving" | "dispatching" | "paused" | "completed" | "cancelled" | "failed" | null | undefined;
288
+ status?: "scheduled" | "resolving" | "dispatching" | "paused" | "completed" | "cancelled" | "failed" | undefined;
298
289
  limit?: number | null | undefined;
299
- cursor?: Cursor | null | undefined;
290
+ cursor?: string | undefined;
300
291
  }, options?: Options<never, ThrowOnError>): RequestResult<CampaignsListRunsResponses, CampaignsListRunsErrors, ThrowOnError>;
301
292
  /**
302
293
  * Schedule a campaign run
@@ -360,9 +351,9 @@ export declare class Campaigns {
360
351
  static listRecipients<ThrowOnError extends boolean = false>(parameters: {
361
352
  id: CampaignId;
362
353
  runId: CampaignRunId;
363
- status?: "pending" | "dispatching" | "dispatched" | "failed" | "skipped" | null | undefined;
354
+ status?: "pending" | "dispatching" | "dispatched" | "failed" | "skipped" | undefined;
364
355
  limit?: number | null | undefined;
365
- cursor?: Cursor | null | undefined;
356
+ cursor?: string | undefined;
366
357
  }, options?: Options<never, ThrowOnError>): RequestResult<CampaignsListRecipientsResponses, CampaignsListRecipientsErrors, ThrowOnError>;
367
358
  }
368
359
  export declare class Campaigns2 {
@@ -432,9 +423,9 @@ export declare class Email {
432
423
  */
433
424
  static listDomains<ThrowOnError extends boolean = false>(parameters?: {
434
425
  limit?: number | null | undefined;
435
- cursor?: Cursor | null | undefined;
426
+ cursor?: string | undefined;
436
427
  sendable?: true | null | undefined;
437
- namespaceId?: NamespaceId | null | undefined;
428
+ namespaceId?: NamespaceId | undefined;
438
429
  }, options?: Options<never, ThrowOnError>): RequestResult<EmailListDomainsResponses, EmailListDomainsErrors, ThrowOnError>;
439
430
  /**
440
431
  * Add a sending domain
@@ -637,11 +628,11 @@ export declare class Email {
637
628
  */
638
629
  static listSenders<ThrowOnError extends boolean = false>(parameters?: {
639
630
  limit?: number | null | undefined;
640
- cursor?: Cursor | null | undefined;
641
- verificationStatus?: "pending" | "verified" | "failed" | null | undefined;
631
+ cursor?: string | undefined;
632
+ verificationStatus?: "pending" | "verified" | "failed" | undefined;
642
633
  isActive?: boolean | null | undefined;
643
634
  isDefault?: boolean | null | undefined;
644
- namespaceId?: NamespaceId | null | undefined;
635
+ namespaceId?: NamespaceId | undefined;
645
636
  }, options?: Options<never, ThrowOnError>): RequestResult<EmailListSendersResponses, EmailListSendersErrors, ThrowOnError>;
646
637
  /**
647
638
  * Add a sender
@@ -693,8 +684,8 @@ export declare class Email {
693
684
  * 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
685
  */
695
686
  static getStats<ThrowOnError extends boolean = false>(parameters?: {
696
- after?: string | null | undefined;
697
- before?: string | null | undefined;
687
+ after?: string | undefined;
688
+ before?: string | undefined;
698
689
  }, options?: Options<never, ThrowOnError>): RequestResult<EmailGetStatsResponses, EmailGetStatsErrors, ThrowOnError>;
699
690
  /**
700
691
  * Enable catch-all receiving
@@ -724,7 +715,7 @@ export declare class Email {
724
715
  /**
725
716
  * Update catch-all configuration
726
717
  *
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.
718
+ * 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
719
  */
729
720
  static updateCatchAllConfig<ThrowOnError extends boolean = false>(parameters: {
730
721
  domainId: EmailDomainId;
@@ -738,8 +729,8 @@ export declare class Email {
738
729
  */
739
730
  static getCatchAllStats<ThrowOnError extends boolean = false>(parameters: {
740
731
  domainId: EmailDomainId;
741
- after?: string | null | undefined;
742
- before?: string | null | undefined;
732
+ after?: string | undefined;
733
+ before?: string | undefined;
743
734
  }, options?: Options<never, ThrowOnError>): RequestResult<EmailGetCatchAllStatsResponses, EmailGetCatchAllStatsErrors, ThrowOnError>;
744
735
  /**
745
736
  * List suppressed addresses
@@ -747,11 +738,11 @@ export declare class Email {
747
738
  * 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
739
  */
749
740
  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;
741
+ type?: "bounce" | "complaint" | "unsubscribe" | "manual" | undefined;
742
+ status?: "active" | "expired" | undefined;
743
+ search?: string | undefined;
753
744
  limit?: number | null | undefined;
754
- cursor?: Cursor | null | undefined;
745
+ cursor?: string | undefined;
755
746
  }, options?: Options<never, ThrowOnError>): RequestResult<EmailListSuppressionsResponses, EmailListSuppressionsErrors, ThrowOnError>;
756
747
  /**
757
748
  * Count suppressed addresses
@@ -773,10 +764,10 @@ export declare class Email {
773
764
  * 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
765
  */
775
766
  static listBlocks<ThrowOnError extends boolean = false>(parameters?: {
776
- blockType?: "email" | "domain" | null | undefined;
767
+ blockType?: "email" | "domain" | undefined;
777
768
  isActive?: boolean | null | undefined;
778
769
  limit?: number | null | undefined;
779
- cursor?: Cursor | null | undefined;
770
+ cursor?: string | undefined;
780
771
  }, options?: Options<never, ThrowOnError>): RequestResult<EmailListBlocksResponses, EmailListBlocksErrors, ThrowOnError>;
781
772
  /**
782
773
  * Add a block entry
@@ -816,12 +807,12 @@ export declare class Email {
816
807
  * 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
808
  */
818
809
  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;
810
+ blockedEmailId?: BlockedEmailId | undefined;
811
+ fromAddress?: string | undefined;
812
+ after?: string | undefined;
813
+ before?: string | undefined;
823
814
  limit?: number | null | undefined;
824
- cursor?: Cursor | null | undefined;
815
+ cursor?: string | undefined;
825
816
  }, options?: Options<never, ThrowOnError>): RequestResult<EmailGetBlockLogsResponses, EmailGetBlockLogsErrors, ThrowOnError>;
826
817
  /**
827
818
  * Check whether an address is blocked
@@ -837,7 +828,7 @@ export declare class Email {
837
828
  * 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
829
  */
839
830
  static listForwardingRules<ThrowOnError extends boolean = false>(parameters?: {
840
- domainId?: EmailDomainId | null | undefined;
831
+ domainId?: EmailDomainId | undefined;
841
832
  isActive?: boolean | null | undefined;
842
833
  }, options?: Options<never, ThrowOnError>): RequestResult<EmailListForwardingRulesResponses, EmailListForwardingRulesErrors, ThrowOnError>;
843
834
  /**
@@ -895,12 +886,12 @@ export declare class Email {
895
886
  * 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
887
  */
897
888
  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;
889
+ forwardingRuleId?: EmailForwardingRuleId | undefined;
890
+ status?: "pending" | "forwarded" | "failed" | undefined;
891
+ after?: string | undefined;
892
+ before?: string | undefined;
902
893
  limit?: number | null | undefined;
903
- cursor?: Cursor | null | undefined;
894
+ cursor?: string | undefined;
904
895
  }, options?: Options<never, ThrowOnError>): RequestResult<EmailGetForwardingLogResponses, EmailGetForwardingLogErrors, ThrowOnError>;
905
896
  /**
906
897
  * Get domain warming
@@ -983,7 +974,7 @@ export declare class Media {
983
974
  filename: string;
984
975
  contentType: string;
985
976
  sizeBytes: number;
986
- purpose: "attachment" | "avatar" | "review_evidence";
977
+ purpose: "attachment" | "avatar" | "whatsapp_media" | "review_evidence";
987
978
  checksumSha256?: string | null | undefined;
988
979
  }, options?: Options<never, ThrowOnError>): RequestResult<MediaCreateResponses, MediaCreateErrors, ThrowOnError>;
989
980
  /**
@@ -1068,13 +1059,13 @@ export declare class Conversations {
1068
1059
  */
1069
1060
  static list<ThrowOnError extends boolean = false>(parameters?: {
1070
1061
  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;
1062
+ cursor?: string | undefined;
1063
+ status?: "active" | "waiting" | "resolved" | "escalated" | "archived" | undefined;
1064
+ channel?: "sms" | "whatsapp" | "email" | undefined;
1065
+ contactId?: ContactId | undefined;
1066
+ mailboxId?: MailboxId | undefined;
1067
+ after?: string | undefined;
1068
+ before?: string | undefined;
1078
1069
  }, options?: Options<never, ThrowOnError>): RequestResult<ConversationsListResponses, ConversationsListErrors, ThrowOnError>;
1079
1070
  /**
1080
1071
  * Create a conversation
@@ -1086,8 +1077,8 @@ export declare class Conversations {
1086
1077
  description?: string | null | undefined;
1087
1078
  externalId?: string | null | undefined;
1088
1079
  parentConversationId?: ConversationId | null | undefined;
1089
- channels: Array<"email">;
1090
- primaryChannel: "email";
1080
+ channels: Array<"sms" | "whatsapp" | "email">;
1081
+ primaryChannel: "sms" | "whatsapp" | "email";
1091
1082
  status?: "active" | "waiting" | "resolved" | "escalated" | "archived" | null | undefined;
1092
1083
  statusReason?: string | null | undefined;
1093
1084
  priority?: number | null | undefined;
@@ -1120,7 +1111,7 @@ export declare class Conversations {
1120
1111
  description?: string | null | undefined;
1121
1112
  externalId?: string | null | undefined;
1122
1113
  parentConversationId?: ConversationId | null | undefined;
1123
- primaryChannel?: "email" | null | undefined;
1114
+ primaryChannel?: "sms" | "whatsapp" | "email" | null | undefined;
1124
1115
  status?: "active" | "waiting" | "resolved" | "escalated" | "archived" | null | undefined;
1125
1116
  statusReason?: string | null | undefined;
1126
1117
  priority?: number | null | undefined;
@@ -1140,9 +1131,9 @@ export declare class Conversations {
1140
1131
  static listMessages<ThrowOnError extends boolean = false>(parameters: {
1141
1132
  id: ConversationId;
1142
1133
  limit?: number | null | undefined;
1143
- cursor?: Cursor | null | undefined;
1144
- after?: string | null | undefined;
1145
- before?: string | null | undefined;
1134
+ cursor?: string | undefined;
1135
+ after?: string | undefined;
1136
+ before?: string | undefined;
1146
1137
  }, options?: Options<never, ThrowOnError>): RequestResult<ConversationsListMessagesResponses, ConversationsListMessagesErrors, ThrowOnError>;
1147
1138
  /**
1148
1139
  * Remove conversation tags
@@ -1187,7 +1178,7 @@ export declare class Conversations {
1187
1178
  */
1188
1179
  static removeChannels<ThrowOnError extends boolean = false>(parameters: {
1189
1180
  id: ConversationId;
1190
- channels: ["email", ...Array<"email">];
1181
+ channels: ["sms" | "whatsapp" | "email", ...Array<"sms" | "whatsapp" | "email">];
1191
1182
  }, options?: Options<never, ThrowOnError>): RequestResult<ConversationsRemoveChannelsResponses, ConversationsRemoveChannelsErrors, ThrowOnError>;
1192
1183
  /**
1193
1184
  * Add conversation channels
@@ -1196,7 +1187,7 @@ export declare class Conversations {
1196
1187
  */
1197
1188
  static addChannels<ThrowOnError extends boolean = false>(parameters: {
1198
1189
  id: ConversationId;
1199
- channels: ["email", ...Array<"email">];
1190
+ channels: ["sms" | "whatsapp" | "email", ...Array<"sms" | "whatsapp" | "email">];
1200
1191
  }, options?: Options<never, ThrowOnError>): RequestResult<ConversationsAddChannelsResponses, ConversationsAddChannelsErrors, ThrowOnError>;
1201
1192
  /**
1202
1193
  * Remove contacts from a conversation
@@ -1228,15 +1219,15 @@ export declare class Contacts {
1228
1219
  */
1229
1220
  static list<ThrowOnError extends boolean = false>(parameters?: {
1230
1221
  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;
1222
+ cursor?: string | undefined;
1223
+ namespaceId?: NamespaceId | undefined;
1224
+ search?: string | undefined;
1225
+ status?: "active" | "paused" | "blocked" | "archived" | undefined;
1226
+ fields?: string | undefined;
1227
+ customField?: string | undefined;
1228
+ customFieldValue?: string | undefined;
1229
+ after?: string | undefined;
1230
+ before?: string | undefined;
1240
1231
  }, options?: Options<never, ThrowOnError>): RequestResult<ContactsListResponses, ContactsListErrors, ThrowOnError>;
1241
1232
  /**
1242
1233
  * Create a contact
@@ -1346,7 +1337,7 @@ export declare class Contacts {
1346
1337
  static setConsent<ThrowOnError extends boolean = false>(parameters: {
1347
1338
  id: ContactId;
1348
1339
  identityId: ContactIdentityId;
1349
- channel: "email";
1340
+ channel: "sms" | "whatsapp" | "email";
1350
1341
  status: "opted_in" | "opted_out";
1351
1342
  source: string;
1352
1343
  capturedAt: string;
@@ -1523,8 +1514,8 @@ export declare class Contacts {
1523
1514
  static getActivityTimeline<ThrowOnError extends boolean = false>(parameters: {
1524
1515
  id: ContactId;
1525
1516
  limit?: number | null | undefined;
1526
- cursor?: Cursor | null | undefined;
1527
- channel?: "email" | null | undefined;
1517
+ cursor?: string | undefined;
1518
+ channel?: "sms" | "whatsapp" | "email" | undefined;
1528
1519
  }, options?: Options<never, ThrowOnError>): RequestResult<ContactsGetActivityTimelineResponses, ContactsGetActivityTimelineErrors, ThrowOnError>;
1529
1520
  /**
1530
1521
  * List a contact's group memberships
@@ -1534,7 +1525,7 @@ export declare class Contacts {
1534
1525
  static getGroupMemberships<ThrowOnError extends boolean = false>(parameters: {
1535
1526
  id: ContactId;
1536
1527
  limit?: number | null | undefined;
1537
- cursor?: Cursor | null | undefined;
1528
+ cursor?: string | undefined;
1538
1529
  }, options?: Options<never, ThrowOnError>): RequestResult<ContactsGetGroupMembershipsResponses, ContactsGetGroupMembershipsErrors, ThrowOnError>;
1539
1530
  }
1540
1531
  export declare class Contacts2 {
@@ -1573,7 +1564,7 @@ export declare class ContactEvents {
1573
1564
  static listEvents<ThrowOnError extends boolean = false>(parameters: {
1574
1565
  id: ContactId;
1575
1566
  limit?: number | null | undefined;
1576
- cursor?: Cursor | null | undefined;
1567
+ cursor?: string | undefined;
1577
1568
  }, options?: Options<never, ThrowOnError>): RequestResult<ContactEventsListEventsResponses, ContactEventsListEventsErrors, ThrowOnError>;
1578
1569
  }
1579
1570
  export declare class ContactEvents2 {
@@ -1586,9 +1577,9 @@ export declare class Journeys {
1586
1577
  * Returns the organization's journeys, newest first, optionally filtered by status. Pass nextCursor back as cursor for the next page.
1587
1578
  */
1588
1579
  static list<ThrowOnError extends boolean = false>(parameters?: {
1589
- status?: JourneyStatus | null | undefined;
1580
+ status?: JourneyStatus | undefined;
1590
1581
  limit?: number | null | undefined;
1591
- cursor?: Cursor | null | undefined;
1582
+ cursor?: string | undefined;
1592
1583
  }, options?: Options<never, ThrowOnError>): RequestResult<JourneysListResponses, JourneysListErrors, ThrowOnError>;
1593
1584
  /**
1594
1585
  * Create a journey
@@ -1692,10 +1683,10 @@ export declare class Journeys {
1692
1683
  */
1693
1684
  static listRuns<ThrowOnError extends boolean = false>(parameters: {
1694
1685
  id: JourneyId;
1695
- status?: JourneyRunStatus | null | undefined;
1696
- contactId?: ContactId | null | undefined;
1686
+ status?: JourneyRunStatus | undefined;
1687
+ contactId?: ContactId | undefined;
1697
1688
  limit?: number | null | undefined;
1698
- cursor?: Cursor | null | undefined;
1689
+ cursor?: string | undefined;
1699
1690
  }, options?: Options<never, ThrowOnError>): RequestResult<JourneysListRunsResponses, JourneysListRunsErrors, ThrowOnError>;
1700
1691
  /**
1701
1692
  * Get a journey run
@@ -1718,7 +1709,7 @@ export declare class Agents {
1718
1709
  */
1719
1710
  static list<ThrowOnError extends boolean = false>(parameters?: {
1720
1711
  limit?: number | null | undefined;
1721
- cursor?: Cursor | null | undefined;
1712
+ cursor?: string | undefined;
1722
1713
  }, options?: Options<never, ThrowOnError>): RequestResult<AgentsListResponses, AgentsListErrors, ThrowOnError>;
1723
1714
  /**
1724
1715
  * Create an agent
@@ -1730,6 +1721,12 @@ export declare class Agents {
1730
1721
  namespaceId?: NamespaceId | null | undefined;
1731
1722
  definition?: AgentDefinition | null | undefined;
1732
1723
  }, options?: Options<never, ThrowOnError>): RequestResult<AgentsCreateResponses, AgentsCreateErrors, ThrowOnError>;
1724
+ /**
1725
+ * List agent models
1726
+ *
1727
+ * 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.
1728
+ */
1729
+ static listModels<ThrowOnError extends boolean = false>(options?: Options<never, ThrowOnError>): RequestResult<AgentsListModelsResponses, AgentsListModelsErrors, ThrowOnError>;
1733
1730
  /**
1734
1731
  * Delete an agent
1735
1732
  *
@@ -1747,18 +1744,19 @@ export declare class Agents {
1747
1744
  id: AgentId;
1748
1745
  }, options?: Options<never, ThrowOnError>): RequestResult<AgentsGetResponses, AgentsGetErrors, ThrowOnError>;
1749
1746
  /**
1750
- * Rename an agent
1747
+ * Update an agent
1751
1748
  *
1752
- * Renames an agent.
1749
+ * 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
1750
  */
1754
1751
  static update<ThrowOnError extends boolean = false>(parameters: {
1755
1752
  id: AgentId;
1756
- name: AgentName;
1753
+ name?: AgentName | null | undefined;
1754
+ monthlySpendCapDollars?: MonthlySpendCapDollars | null | undefined;
1757
1755
  }, options?: Options<never, ThrowOnError>): RequestResult<AgentsUpdateResponses, AgentsUpdateErrors, ThrowOnError>;
1758
1756
  /**
1759
1757
  * Replace an agent draft
1760
1758
  *
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.
1759
+ * 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
1760
  */
1763
1761
  static replaceDraft<ThrowOnError extends boolean = false>(parameters: {
1764
1762
  id: AgentId;
@@ -1774,6 +1772,14 @@ export declare class Agents {
1774
1772
  id: AgentId;
1775
1773
  revision: string;
1776
1774
  }, options?: Options<never, ThrowOnError>): RequestResult<AgentsPublishResponses, AgentsPublishErrors, ThrowOnError>;
1775
+ /**
1776
+ * Continue an agent on Standard
1777
+ *
1778
+ * 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.
1779
+ */
1780
+ static continueOnStandard<ThrowOnError extends boolean = false>(parameters: {
1781
+ id: AgentId;
1782
+ }, options?: Options<never, ThrowOnError>): RequestResult<AgentsContinueOnStandardResponses, AgentsContinueOnStandardErrors, ThrowOnError>;
1777
1783
  /**
1778
1784
  * List published agent versions
1779
1785
  *
@@ -1782,7 +1788,7 @@ export declare class Agents {
1782
1788
  static listVersions<ThrowOnError extends boolean = false>(parameters: {
1783
1789
  id: AgentId;
1784
1790
  limit?: number | null | undefined;
1785
- cursor?: VersionCursor | null | undefined;
1791
+ cursor?: string | undefined;
1786
1792
  }, options?: Options<never, ThrowOnError>): RequestResult<AgentsListVersionsResponses, AgentsListVersionsErrors, ThrowOnError>;
1787
1793
  /**
1788
1794
  * Get a published agent version
@@ -1826,8 +1832,8 @@ export declare class ContactGroups {
1826
1832
  */
1827
1833
  static list<ThrowOnError extends boolean = false>(parameters?: {
1828
1834
  limit?: number | null | undefined;
1829
- cursor?: Cursor | null | undefined;
1830
- type?: "static" | "dynamic" | "smart" | Array<"static" | "dynamic" | "smart"> | null | undefined;
1835
+ cursor?: string | undefined;
1836
+ type?: "static" | "dynamic" | "smart" | Array<"static" | "dynamic" | "smart"> | undefined;
1831
1837
  isActive?: boolean | null | undefined;
1832
1838
  }, options?: Options<never, ThrowOnError>): RequestResult<ContactGroupsListResponses, ContactGroupsListErrors, ThrowOnError>;
1833
1839
  /**
@@ -1898,7 +1904,7 @@ export declare class ContactGroups {
1898
1904
  static getMembers<ThrowOnError extends boolean = false>(parameters: {
1899
1905
  id: ContactGroupId;
1900
1906
  limit?: number | null | undefined;
1901
- cursor?: Cursor | null | undefined;
1907
+ cursor?: string | undefined;
1902
1908
  }, options?: Options<never, ThrowOnError>): RequestResult<ContactGroupsGetMembersResponses, ContactGroupsGetMembersErrors, ThrowOnError>;
1903
1909
  /**
1904
1910
  * Add members to a contact group
@@ -1992,7 +1998,7 @@ export declare class Topics {
1992
1998
  * Lists visible topics, default first then by name. The organization holds at most 200 topics, so the list is bounded and unpaged.
1993
1999
  */
1994
2000
  static list<ThrowOnError extends boolean = false>(parameters?: {
1995
- namespaceId?: NamespaceId | null | undefined;
2001
+ namespaceId?: NamespaceId | undefined;
1996
2002
  }, options?: Options<never, ThrowOnError>): RequestResult<TopicsListResponses, TopicsListErrors, ThrowOnError>;
1997
2003
  /**
1998
2004
  * Create a topic
@@ -2014,12 +2020,12 @@ export declare class Topics {
2014
2020
  * 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
2021
  */
2016
2022
  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;
2023
+ contactId?: ContactId | undefined;
2024
+ email?: string | undefined;
2025
+ phone?: string | undefined;
2026
+ namespaceId?: NamespaceId | undefined;
2027
+ channel: "sms" | "whatsapp" | "email";
2028
+ topicIds?: string | undefined;
2023
2029
  }, options?: Options<never, ThrowOnError>): RequestResult<TopicsCheckSubscriptionResponses, TopicsCheckSubscriptionErrors, ThrowOnError>;
2024
2030
  /**
2025
2031
  * Delete a topic
@@ -2067,9 +2073,9 @@ export declare class Topics {
2067
2073
  static listSubscriptions<ThrowOnError extends boolean = false>(parameters: {
2068
2074
  id: TopicId;
2069
2075
  limit?: number | null | undefined;
2070
- cursor?: Cursor | null | undefined;
2071
- channel?: "email" | null | undefined;
2072
- status?: "subscribed" | "unsubscribed" | null | undefined;
2076
+ cursor?: string | undefined;
2077
+ channel?: "sms" | "whatsapp" | "email" | undefined;
2078
+ status?: "subscribed" | "unsubscribed" | undefined;
2073
2079
  }, options?: Options<never, ThrowOnError>): RequestResult<TopicsListSubscriptionsResponses, TopicsListSubscriptionsErrors, ThrowOnError>;
2074
2080
  /**
2075
2081
  * Set topic subscriptions
@@ -2079,7 +2085,7 @@ export declare class Topics {
2079
2085
  static setSubscriptions<ThrowOnError extends boolean = false>(parameters: {
2080
2086
  id: TopicId;
2081
2087
  contacts: Array<TopicContactRef>;
2082
- channel: "email";
2088
+ channel: "sms" | "whatsapp" | "email";
2083
2089
  status: "subscribed" | "unsubscribed";
2084
2090
  source?: string | null | undefined;
2085
2091
  }, options?: Options<never, ThrowOnError>): RequestResult<TopicsSetSubscriptionsResponses, TopicsSetSubscriptionsErrors, ThrowOnError>;
@@ -2266,7 +2272,7 @@ export declare class Domains {
2266
2272
  static list<ThrowOnError extends boolean = false>(parameters: {
2267
2273
  id: NewsletterId;
2268
2274
  limit?: number | null | undefined;
2269
- cursor?: PublicationDomainCursor | null | undefined;
2275
+ cursor?: string | undefined;
2270
2276
  }, options?: Options<never, ThrowOnError>): RequestResult<NewsletterDomainsListResponses, NewsletterDomainsListErrors, ThrowOnError>;
2271
2277
  /**
2272
2278
  * Add a publication domain
@@ -2303,7 +2309,7 @@ export declare class Newsletters {
2303
2309
  * List visible newsletters and their consent topics and publishing settings. The topic namespace bounds access.
2304
2310
  */
2305
2311
  static list<ThrowOnError extends boolean = false>(parameters?: {
2306
- namespaceId?: NamespaceId | null | undefined;
2312
+ namespaceId?: NamespaceId | undefined;
2307
2313
  }, options?: Options<never, ThrowOnError>): RequestResult<NewslettersListResponses, NewslettersListErrors, ThrowOnError>;
2308
2314
  /**
2309
2315
  * Create a newsletter
@@ -2354,10 +2360,10 @@ export declare class Analytics {
2354
2360
  * 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
2361
  */
2356
2362
  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;
2363
+ after?: string | undefined;
2364
+ before?: string | undefined;
2365
+ groupBy?: "day" | "week" | "month" | undefined;
2366
+ channel?: "sms" | "whatsapp" | "email" | undefined;
2361
2367
  }, options?: Options<never, ThrowOnError>): RequestResult<AnalyticsGetStatsResponses, AnalyticsGetStatsErrors, ThrowOnError>;
2362
2368
  /**
2363
2369
  * Get channel performance analytics
@@ -2365,8 +2371,8 @@ export declare class Analytics {
2365
2371
  * 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
2372
  */
2367
2373
  static getChannelStats<ThrowOnError extends boolean = false>(parameters?: {
2368
- after?: string | null | undefined;
2369
- before?: string | null | undefined;
2374
+ after?: string | undefined;
2375
+ before?: string | undefined;
2370
2376
  }, options?: Options<never, ThrowOnError>): RequestResult<AnalyticsGetChannelStatsResponses, AnalyticsGetChannelStatsErrors, ThrowOnError>;
2371
2377
  /**
2372
2378
  * List top contacts by message volume
@@ -2374,10 +2380,10 @@ export declare class Analytics {
2374
2380
  * 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
2381
  */
2376
2382
  static getTopContacts<ThrowOnError extends boolean = false>(parameters?: {
2377
- after?: string | null | undefined;
2378
- before?: string | null | undefined;
2383
+ after?: string | undefined;
2384
+ before?: string | undefined;
2379
2385
  limit?: number | null | undefined;
2380
- sortBy?: "sent" | "received" | "total" | null | undefined;
2386
+ sortBy?: "sent" | "received" | "total" | undefined;
2381
2387
  }, options?: Options<never, ThrowOnError>): RequestResult<AnalyticsGetTopContactsResponses, AnalyticsGetTopContactsErrors, ThrowOnError>;
2382
2388
  /**
2383
2389
  * Get hourly message distribution
@@ -2385,8 +2391,8 @@ export declare class Analytics {
2385
2391
  * 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
2392
  */
2387
2393
  static getHourlyDistribution<ThrowOnError extends boolean = false>(parameters?: {
2388
- after?: string | null | undefined;
2389
- before?: string | null | undefined;
2394
+ after?: string | undefined;
2395
+ before?: string | undefined;
2390
2396
  }, options?: Options<never, ThrowOnError>): RequestResult<AnalyticsGetHourlyDistributionResponses, AnalyticsGetHourlyDistributionErrors, ThrowOnError>;
2391
2397
  /**
2392
2398
  * Get message delivery metrics
@@ -2394,9 +2400,9 @@ export declare class Analytics {
2394
2400
  * 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
2401
  */
2396
2402
  static getDeliveryMetrics<ThrowOnError extends boolean = false>(parameters?: {
2397
- after?: string | null | undefined;
2398
- before?: string | null | undefined;
2399
- channel?: "email" | null | undefined;
2403
+ after?: string | undefined;
2404
+ before?: string | undefined;
2405
+ channel?: "sms" | "whatsapp" | "email" | undefined;
2400
2406
  }, options?: Options<never, ThrowOnError>): RequestResult<AnalyticsGetDeliveryMetricsResponses, AnalyticsGetDeliveryMetricsErrors, ThrowOnError>;
2401
2407
  /**
2402
2408
  * Export messaging analytics data
@@ -2407,7 +2413,7 @@ export declare class Analytics {
2407
2413
  after: string;
2408
2414
  before: string;
2409
2415
  format?: "csv" | "json" | null | undefined;
2410
- includeChannels?: Array<"email"> | null | undefined;
2416
+ includeChannels?: Array<"sms" | "whatsapp" | "email"> | null | undefined;
2411
2417
  }, options?: Options<never, ThrowOnError>): RequestResult<AnalyticsExportDataResponses, AnalyticsExportDataErrors, ThrowOnError>;
2412
2418
  }
2413
2419
  export declare class Analytics2 {
@@ -2421,13 +2427,13 @@ export declare class Templates {
2421
2427
  */
2422
2428
  static list<ThrowOnError extends boolean = false>(parameters?: {
2423
2429
  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;
2430
+ cursor?: string | undefined;
2431
+ category?: "transactional" | "marketing" | "support" | "notification" | "verification" | "reminder" | "alert" | undefined;
2432
+ channel?: "sms" | "whatsapp" | "email" | undefined;
2433
+ status?: "draft" | "pending" | "approved" | "published" | "rejected" | "archived" | undefined;
2434
+ search?: string | undefined;
2435
+ projectId?: TemplateProjectId | undefined;
2436
+ namespaceId?: NamespaceId | undefined;
2431
2437
  shared?: boolean | null | undefined;
2432
2438
  }, options?: Options<never, ThrowOnError>): RequestResult<TemplatesListResponses, TemplatesListErrors, ThrowOnError>;
2433
2439
  /**
@@ -2454,7 +2460,7 @@ export declare class Templates {
2454
2460
  */
2455
2461
  static listFamilies<ThrowOnError extends boolean = false>(parameters?: {
2456
2462
  limit?: number | null | undefined;
2457
- cursor?: Cursor | null | undefined;
2463
+ cursor?: string | undefined;
2458
2464
  }, options?: Options<never, ThrowOnError>): RequestResult<TemplatesListFamiliesResponses, TemplatesListFamiliesErrors, ThrowOnError>;
2459
2465
  /**
2460
2466
  * Create a template family
@@ -2729,7 +2735,7 @@ export declare class Templates {
2729
2735
  static listInputContracts<ThrowOnError extends boolean = false>(parameters: {
2730
2736
  id: TemplateId;
2731
2737
  limit?: number | null | undefined;
2732
- cursor?: VersionCursor | null | undefined;
2738
+ cursor?: string | undefined;
2733
2739
  }, options?: Options<never, ThrowOnError>): RequestResult<TemplatesListInputContractsResponses, TemplatesListInputContractsErrors, ThrowOnError>;
2734
2740
  /**
2735
2741
  * Get a template input contract
@@ -2858,9 +2864,9 @@ export declare class Webhooks {
2858
2864
  */
2859
2865
  static list<ThrowOnError extends boolean = false>(parameters?: {
2860
2866
  limit?: number | null | undefined;
2861
- cursor?: Cursor | null | undefined;
2862
- search?: string | null | undefined;
2863
- status?: "active" | "disabled" | null | undefined;
2867
+ cursor?: string | undefined;
2868
+ search?: string | undefined;
2869
+ status?: "active" | "disabled" | undefined;
2864
2870
  }, options?: Options<never, ThrowOnError>): RequestResult<WebhooksListResponses, WebhooksListErrors, ThrowOnError>;
2865
2871
  /**
2866
2872
  * Create a webhook
@@ -2871,7 +2877,7 @@ export declare class Webhooks {
2871
2877
  name: string;
2872
2878
  url: string;
2873
2879
  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;
2880
+ channels?: Array<"sms" | "whatsapp" | "email"> | null | undefined;
2875
2881
  mailboxIds?: [MailboxId, ...Array<MailboxId>] | null | undefined;
2876
2882
  namespaceId?: NamespaceId | null | undefined;
2877
2883
  headers?: {
@@ -2905,7 +2911,7 @@ export declare class Webhooks {
2905
2911
  name?: string | null | undefined;
2906
2912
  url?: string | null | undefined;
2907
2913
  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;
2914
+ channels?: Array<"sms" | "whatsapp" | "email"> | null | undefined;
2909
2915
  mailboxIds?: [MailboxId, ...Array<MailboxId>] | null | undefined;
2910
2916
  namespaceId?: NamespaceId | null | undefined;
2911
2917
  headers?: {
@@ -2927,12 +2933,12 @@ export declare class Webhooks {
2927
2933
  /**
2928
2934
  * List webhook delivery logs
2929
2935
  *
2930
- * Returns a webhook endpoint's deliveries, newest first, each naming the event type and time it was made for, with its nested attempt diagnostics. Pass `nextCursor` back as `cursor` for the next page; it is null on the last page.
2936
+ * Returns a webhook endpoint's deliveries, newest first, each naming the event type and time it was made for, with its nested attempt diagnostics. A replay of a terminal delivery records a skipped replay receipt without another HTTP request or a change to its automatic retry lifecycle. Pass `nextCursor` back as `cursor` for the next page; it is null on the last page.
2931
2937
  */
2932
2938
  static getLogs<ThrowOnError extends boolean = false>(parameters: {
2933
2939
  id: WebhookEndpointId;
2934
2940
  limit?: number | null | undefined;
2935
- cursor?: Cursor | null | undefined;
2941
+ cursor?: string | undefined;
2936
2942
  }, options?: Options<never, ThrowOnError>): RequestResult<WebhooksGetLogsResponses, WebhooksGetLogsErrors, ThrowOnError>;
2937
2943
  /**
2938
2944
  * Get webhook delivery statistics
@@ -2941,8 +2947,8 @@ export declare class Webhooks {
2941
2947
  */
2942
2948
  static getStats<ThrowOnError extends boolean = false>(parameters: {
2943
2949
  id: WebhookEndpointId;
2944
- after?: string | null | undefined;
2945
- before?: string | null | undefined;
2950
+ after?: string | undefined;
2951
+ before?: string | undefined;
2946
2952
  }, options?: Options<never, ThrowOnError>): RequestResult<WebhooksGetStatsResponses, WebhooksGetStatsErrors, ThrowOnError>;
2947
2953
  /**
2948
2954
  * Retry a webhook delivery
@@ -3051,8 +3057,8 @@ export declare class Organizations {
3051
3057
  * 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
3058
  */
3053
3059
  static getUsage<ThrowOnError extends boolean = false>(parameters?: {
3054
- after?: string | null | undefined;
3055
- before?: string | null | undefined;
3060
+ after?: string | undefined;
3061
+ before?: string | undefined;
3056
3062
  }, options?: Options<never, ThrowOnError>): RequestResult<OrganizationsGetUsageResponses, OrganizationsGetUsageErrors, ThrowOnError>;
3057
3063
  /**
3058
3064
  * Delete the current organization
@@ -3074,9 +3080,9 @@ export declare class ApiKeys {
3074
3080
  */
3075
3081
  static list<ThrowOnError extends boolean = false>(parameters?: {
3076
3082
  limit?: number | null | undefined;
3077
- cursor?: Cursor | null | undefined;
3078
- status?: "active" | "revoked" | null | undefined;
3079
- search?: string | null | undefined;
3083
+ cursor?: string | undefined;
3084
+ status?: "active" | "revoked" | undefined;
3085
+ search?: string | undefined;
3080
3086
  }, options?: Options<never, ThrowOnError>): RequestResult<ApiKeysListResponses, ApiKeysListErrors, ThrowOnError>;
3081
3087
  /**
3082
3088
  * Create an API key
@@ -3131,8 +3137,8 @@ export declare class ApiKeys {
3131
3137
  */
3132
3138
  static getStats<ThrowOnError extends boolean = false>(parameters: {
3133
3139
  id: ApiKeyId;
3134
- after?: string | null | undefined;
3135
- before?: string | null | undefined;
3140
+ after?: string | undefined;
3141
+ before?: string | undefined;
3136
3142
  }, options?: Options<never, ThrowOnError>): RequestResult<ApiKeysGetStatsResponses, ApiKeysGetStatsErrors, ThrowOnError>;
3137
3143
  /**
3138
3144
  * List API key activity
@@ -3142,7 +3148,7 @@ export declare class ApiKeys {
3142
3148
  static getActivity<ThrowOnError extends boolean = false>(parameters: {
3143
3149
  id: ApiKeyId;
3144
3150
  limit?: number | null | undefined;
3145
- cursor?: Cursor | null | undefined;
3151
+ cursor?: string | undefined;
3146
3152
  }, options?: Options<never, ThrowOnError>): RequestResult<ApiKeysGetActivityResponses, ApiKeysGetActivityErrors, ThrowOnError>;
3147
3153
  }
3148
3154
  export declare class ApiKeys2 {
@@ -3182,9 +3188,9 @@ export declare class Mailboxes {
3182
3188
  */
3183
3189
  static list<ThrowOnError extends boolean = false>(parameters?: {
3184
3190
  limit?: number | null | undefined;
3185
- cursor?: Cursor | null | undefined;
3186
- after?: string | null | undefined;
3187
- before?: string | null | undefined;
3191
+ cursor?: string | undefined;
3192
+ after?: string | undefined;
3193
+ before?: string | undefined;
3188
3194
  }, options?: Options<never, ThrowOnError>): RequestResult<MailboxesListResponses, MailboxesListErrors, ThrowOnError>;
3189
3195
  /**
3190
3196
  * Create a mailbox
@@ -3278,8 +3284,8 @@ export declare class Mailboxes {
3278
3284
  */
3279
3285
  static getAgentActivity<ThrowOnError extends boolean = false>(parameters: {
3280
3286
  id: MailboxId;
3281
- after?: string | null | undefined;
3282
- before?: string | null | undefined;
3287
+ after?: string | undefined;
3288
+ before?: string | undefined;
3283
3289
  }, options?: Options<never, ThrowOnError>): RequestResult<MailboxesGetAgentActivityResponses, MailboxesGetAgentActivityErrors, ThrowOnError>;
3284
3290
  /**
3285
3291
  * List mailbox grants
@@ -3289,7 +3295,7 @@ export declare class Mailboxes {
3289
3295
  static listGrants<ThrowOnError extends boolean = false>(parameters: {
3290
3296
  id: MailboxId;
3291
3297
  limit?: number | null | undefined;
3292
- cursor?: Cursor | null | undefined;
3298
+ cursor?: string | undefined;
3293
3299
  }, options?: Options<never, ThrowOnError>): RequestResult<MailboxesListGrantsResponses, MailboxesListGrantsErrors, ThrowOnError>;
3294
3300
  /**
3295
3301
  * Grant a member access to a mailbox
@@ -3427,7 +3433,7 @@ export declare class Mailboxes {
3427
3433
  */
3428
3434
  static getNeedsYou<ThrowOnError extends boolean = false>(parameters?: {
3429
3435
  limit?: number | null | undefined;
3430
- cursor?: Cursor | null | undefined;
3436
+ cursor?: string | undefined;
3431
3437
  }, options?: Options<never, ThrowOnError>): RequestResult<MailboxesGetNeedsYouResponses, MailboxesGetNeedsYouErrors, ThrowOnError>;
3432
3438
  /**
3433
3439
  * List your drafts across mailboxes
@@ -3436,10 +3442,10 @@ export declare class Mailboxes {
3436
3442
  */
3437
3443
  static listOrganizationDrafts<ThrowOnError extends boolean = false>(parameters?: {
3438
3444
  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;
3445
+ cursor?: string | undefined;
3446
+ mailboxId?: MailboxId | Array<MailboxId> | undefined;
3447
+ kind?: "personal" | "shared" | undefined;
3448
+ threadId?: MailboxThreadId | undefined;
3443
3449
  }, options?: Options<never, ThrowOnError>): RequestResult<MailboxesListOrganizationDraftsResponses, MailboxesListOrganizationDraftsErrors, ThrowOnError>;
3444
3450
  /**
3445
3451
  * List threads across your mailboxes
@@ -3448,19 +3454,19 @@ export declare class Mailboxes {
3448
3454
  */
3449
3455
  static listOrganizationThreads<ThrowOnError extends boolean = false>(parameters?: {
3450
3456
  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;
3457
+ cursor?: string | undefined;
3458
+ after?: string | undefined;
3459
+ before?: string | undefined;
3460
+ q?: string | undefined;
3461
+ state?: "active" | "done" | undefined;
3462
+ folder?: MailboxThreadFolder | undefined;
3463
+ label?: MailboxLabelId | undefined;
3458
3464
  unread?: boolean | null | undefined;
3459
3465
  starred?: boolean | null | undefined;
3460
3466
  snoozed?: boolean | null | undefined;
3461
- mailboxId?: MailboxId | Array<MailboxId> | null | undefined;
3462
- kind?: "personal" | "shared" | null | undefined;
3463
- conversation?: ConversationId | null | undefined;
3467
+ mailboxId?: MailboxId | Array<MailboxId> | undefined;
3468
+ kind?: "personal" | "shared" | undefined;
3469
+ conversation?: ConversationId | undefined;
3464
3470
  }, options?: Options<never, ThrowOnError>): RequestResult<MailboxesListOrganizationThreadsResponses, MailboxesListOrganizationThreadsErrors, ThrowOnError>;
3465
3471
  /**
3466
3472
  * List threads in a mailbox
@@ -3470,13 +3476,13 @@ export declare class Mailboxes {
3470
3476
  static listThreads<ThrowOnError extends boolean = false>(parameters: {
3471
3477
  id: MailboxId;
3472
3478
  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;
3479
+ cursor?: string | undefined;
3480
+ after?: string | undefined;
3481
+ before?: string | undefined;
3482
+ q?: string | undefined;
3483
+ state?: "active" | "done" | undefined;
3484
+ folder?: MailboxThreadFolder | undefined;
3485
+ label?: MailboxLabelId | undefined;
3480
3486
  unread?: boolean | null | undefined;
3481
3487
  starred?: boolean | null | undefined;
3482
3488
  snoozed?: boolean | null | undefined;
@@ -3535,7 +3541,7 @@ export declare class Mailboxes {
3535
3541
  id: MailboxId;
3536
3542
  threadId: MailboxThreadId;
3537
3543
  limit?: number | null | undefined;
3538
- cursor?: Cursor | null | undefined;
3544
+ cursor?: string | undefined;
3539
3545
  }, options?: Options<never, ThrowOnError>): RequestResult<MailboxesListThreadMessagesResponses, MailboxesListThreadMessagesErrors, ThrowOnError>;
3540
3546
  /**
3541
3547
  * Read a mailbox thread
@@ -3546,7 +3552,7 @@ export declare class Mailboxes {
3546
3552
  id: MailboxId;
3547
3553
  threadId: MailboxThreadId;
3548
3554
  limit?: number | null | undefined;
3549
- cursor?: Cursor | null | undefined;
3555
+ cursor?: string | undefined;
3550
3556
  }, options?: Options<never, ThrowOnError>): RequestResult<MailboxesGetThreadContentResponses, MailboxesGetThreadContentErrors, ThrowOnError>;
3551
3557
  /**
3552
3558
  * List notes in a mailbox thread
@@ -3557,7 +3563,7 @@ export declare class Mailboxes {
3557
3563
  id: MailboxId;
3558
3564
  threadId: MailboxThreadId;
3559
3565
  limit?: number | null | undefined;
3560
- cursor?: Cursor | null | undefined;
3566
+ cursor?: string | undefined;
3561
3567
  }, options?: Options<never, ThrowOnError>): RequestResult<MailboxesListThreadNotesResponses, MailboxesListThreadNotesErrors, ThrowOnError>;
3562
3568
  /**
3563
3569
  * Create a mailbox note
@@ -3601,16 +3607,7 @@ export declare class Mailboxes {
3601
3607
  */
3602
3608
  static sendMessage<ThrowOnError extends boolean = false>(parameters: {
3603
3609
  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>;
3610
+ } & (SendMailboxEmailPayload | SendMailboxChatPayload), options?: Options<never, ThrowOnError>): RequestResult<MailboxesSendMessageResponses, MailboxesSendMessageErrors, ThrowOnError>;
3614
3611
  /**
3615
3612
  * Get a mailbox message
3616
3613
  *
@@ -3657,13 +3654,7 @@ export declare class Mailboxes {
3657
3654
  static reply<ThrowOnError extends boolean = false>(parameters: {
3658
3655
  id: MailboxId;
3659
3656
  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>;
3657
+ } & (ReplyMailboxEmailPayload | ReplyMailboxChatPayload), options?: Options<never, ThrowOnError>): RequestResult<MailboxesReplyResponses, MailboxesReplyErrors, ThrowOnError>;
3667
3658
  /**
3668
3659
  * Reply to all recipients of a message
3669
3660
  *
@@ -3672,13 +3663,7 @@ export declare class Mailboxes {
3672
3663
  static replyAll<ThrowOnError extends boolean = false>(parameters: {
3673
3664
  id: MailboxId;
3674
3665
  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>;
3666
+ } & (ReplyMailboxEmailPayload | ReplyMailboxChatPayload), options?: Options<never, ThrowOnError>): RequestResult<MailboxesReplyAllResponses, MailboxesReplyAllErrors, ThrowOnError>;
3682
3667
  /**
3683
3668
  * Forward a message
3684
3669
  *
@@ -3702,9 +3687,9 @@ export declare class Mailboxes {
3702
3687
  static listQuarantine<ThrowOnError extends boolean = false>(parameters: {
3703
3688
  id: MailboxId;
3704
3689
  limit?: number | null | undefined;
3705
- cursor?: Cursor | null | undefined;
3706
- after?: string | null | undefined;
3707
- before?: string | null | undefined;
3690
+ cursor?: string | undefined;
3691
+ after?: string | undefined;
3692
+ before?: string | undefined;
3708
3693
  }, options?: Options<never, ThrowOnError>): RequestResult<MailboxesListQuarantineResponses, MailboxesListQuarantineErrors, ThrowOnError>;
3709
3694
  /**
3710
3695
  * Release a quarantined message
@@ -3732,8 +3717,8 @@ export declare class Mailboxes {
3732
3717
  static listDrafts<ThrowOnError extends boolean = false>(parameters: {
3733
3718
  id: MailboxId;
3734
3719
  limit?: number | null | undefined;
3735
- cursor?: Cursor | null | undefined;
3736
- threadId?: MailboxThreadId | null | undefined;
3720
+ cursor?: string | undefined;
3721
+ threadId?: MailboxThreadId | undefined;
3737
3722
  }, options?: Options<never, ThrowOnError>): RequestResult<MailboxesListDraftsResponses, MailboxesListDraftsErrors, ThrowOnError>;
3738
3723
  /**
3739
3724
  * Create a draft
@@ -3742,18 +3727,7 @@ export declare class Mailboxes {
3742
3727
  */
3743
3728
  static createDraft<ThrowOnError extends boolean = false>(parameters: {
3744
3729
  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>;
3730
+ } & (CreateMailboxEmailDraftPayload | CreateMailboxChatDraftPayload), options?: Options<never, ThrowOnError>): RequestResult<MailboxesCreateDraftResponses, MailboxesCreateDraftErrors, ThrowOnError>;
3757
3731
  /**
3758
3732
  * Delete a draft
3759
3733
  *
@@ -3806,11 +3780,11 @@ export declare class Mailboxes {
3806
3780
  static listActions<ThrowOnError extends boolean = false>(parameters: {
3807
3781
  id: MailboxId;
3808
3782
  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;
3783
+ cursor?: string | undefined;
3784
+ threadId?: MailboxThreadId | undefined;
3785
+ state?: "proposed" | "allowed" | "approvalRequired" | "policyDenied" | "approved" | "approvalDenied" | "executing" | "executed" | "failed" | "queued" | "accepted" | "completed" | "notSent" | "uncertain" | undefined;
3786
+ after?: string | undefined;
3787
+ before?: string | undefined;
3814
3788
  }, options?: Options<never, ThrowOnError>): RequestResult<MailboxesListActionsResponses, MailboxesListActionsErrors, ThrowOnError>;
3815
3789
  /**
3816
3790
  * Get a mailbox action
@@ -3866,9 +3840,9 @@ export declare class Mailboxes {
3866
3840
  static listEvents<ThrowOnError extends boolean = false>(parameters: {
3867
3841
  id: MailboxId;
3868
3842
  limit?: number | null | undefined;
3869
- cursor?: Cursor | null | undefined;
3870
- after?: string | null | undefined;
3871
- before?: string | null | undefined;
3843
+ cursor?: string | undefined;
3844
+ after?: string | undefined;
3845
+ before?: string | undefined;
3872
3846
  }, options?: Options<never, ThrowOnError>): RequestResult<MailboxesListEventsResponses, MailboxesListEventsErrors, ThrowOnError>;
3873
3847
  }
3874
3848
  export declare class Mailboxes2 {
@@ -3882,9 +3856,9 @@ export declare class Namespaces {
3882
3856
  */
3883
3857
  static list<ThrowOnError extends boolean = false>(parameters?: {
3884
3858
  limit?: number | null | undefined;
3885
- cursor?: Cursor | null | undefined;
3886
- after?: string | null | undefined;
3887
- before?: string | null | undefined;
3859
+ cursor?: string | undefined;
3860
+ after?: string | undefined;
3861
+ before?: string | undefined;
3888
3862
  }, options?: Options<never, ThrowOnError>): RequestResult<NamespacesListResponses, NamespacesListErrors, ThrowOnError>;
3889
3863
  /**
3890
3864
  * Create a namespace
@@ -3950,8 +3924,8 @@ export declare class Namespaces {
3950
3924
  */
3951
3925
  static getUsage<ThrowOnError extends boolean = false>(parameters: {
3952
3926
  id: NamespaceId;
3953
- after?: string | null | undefined;
3954
- before?: string | null | undefined;
3927
+ after?: string | undefined;
3928
+ before?: string | undefined;
3955
3929
  }, options?: Options<never, ThrowOnError>): RequestResult<NamespacesGetUsageResponses, NamespacesGetUsageErrors, ThrowOnError>;
3956
3930
  }
3957
3931
  export declare class Namespaces2 {
@@ -3965,9 +3939,9 @@ export declare class Extensions {
3965
3939
  */
3966
3940
  static list<ThrowOnError extends boolean = false>(parameters?: {
3967
3941
  limit?: number | null | undefined;
3968
- cursor?: Cursor | null | undefined;
3969
- after?: string | null | undefined;
3970
- before?: string | null | undefined;
3942
+ cursor?: string | undefined;
3943
+ after?: string | undefined;
3944
+ before?: string | undefined;
3971
3945
  }, options?: Options<never, ThrowOnError>): RequestResult<ExtensionsListResponses, ExtensionsListErrors, ThrowOnError>;
3972
3946
  /**
3973
3947
  * Publish an extension version
@@ -4002,7 +3976,7 @@ export declare class Extensions {
4002
3976
  static listVersions<ThrowOnError extends boolean = false>(parameters: {
4003
3977
  id: string;
4004
3978
  limit?: number | null | undefined;
4005
- cursor?: Cursor | null | undefined;
3979
+ cursor?: string | undefined;
4006
3980
  }, options?: Options<never, ThrowOnError>): RequestResult<ExtensionsListVersionsResponses, ExtensionsListVersionsErrors, ThrowOnError>;
4007
3981
  /**
4008
3982
  * Get an extension version
@@ -4025,9 +3999,9 @@ export declare class ExtensionInstallations {
4025
3999
  */
4026
4000
  static list<ThrowOnError extends boolean = false>(parameters?: {
4027
4001
  limit?: number | null | undefined;
4028
- cursor?: Cursor | null | undefined;
4029
- after?: string | null | undefined;
4030
- before?: string | null | undefined;
4002
+ cursor?: string | undefined;
4003
+ after?: string | undefined;
4004
+ before?: string | undefined;
4031
4005
  }, options?: Options<never, ThrowOnError>): RequestResult<ExtensionInstallationsListResponses, ExtensionInstallationsListErrors, ThrowOnError>;
4032
4006
  /**
4033
4007
  * Install an extension