samva 0.35.0 → 0.37.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 (70) hide show
  1. package/AGENTS.md +17 -0
  2. package/README.md +1 -0
  3. package/dist/client/sdk.gen.d.ts +102 -82
  4. package/dist/client/sdk.gen.js +322 -244
  5. package/dist/client/types.gen.d.ts +600 -378
  6. package/dist/effect/agents.d.ts +194 -4
  7. package/dist/effect/agents.js +3 -1
  8. package/dist/effect/analytics.d.ts +6 -0
  9. package/dist/effect/api-keys.d.ts +3 -6
  10. package/dist/effect/campaigns.d.ts +216 -216
  11. package/dist/effect/conversations.d.ts +6 -0
  12. package/dist/effect/errors.d.ts +1 -1
  13. package/dist/effect/errors.js +2 -2
  14. package/dist/effect/extension-installations.d.ts +53 -1
  15. package/dist/effect/generated/agents.d.ts +1803 -81
  16. package/dist/effect/generated/agents.js +92 -26
  17. package/dist/effect/generated/analytics.d.ts +19 -1
  18. package/dist/effect/generated/analytics.js +8 -2
  19. package/dist/effect/generated/api-keys.d.ts +4 -29
  20. package/dist/effect/generated/api-keys.js +5 -6
  21. package/dist/effect/generated/campaigns.d.ts +22 -0
  22. package/dist/effect/generated/campaigns.js +3 -1
  23. package/dist/effect/generated/conversations.d.ts +104 -3
  24. package/dist/effect/generated/conversations.js +12 -2
  25. package/dist/effect/generated/extension-installations.d.ts +845 -68
  26. package/dist/effect/generated/extension-installations.js +22 -26
  27. package/dist/effect/generated/index.d.ts +3 -1
  28. package/dist/effect/generated/mailboxes.d.ts +3423 -1446
  29. package/dist/effect/generated/mailboxes.js +226 -220
  30. package/dist/effect/generated/namespaces.d.ts +7 -31
  31. package/dist/effect/generated/namespaces.js +4 -4
  32. package/dist/effect/generated/policies.d.ts +953 -0
  33. package/dist/effect/generated/policies.js +116 -0
  34. package/dist/effect/generated/scheduled-messages.d.ts +45 -4
  35. package/dist/effect/generated/scheduled-messages.js +8 -3
  36. package/dist/effect/generated/shared.d.ts +893 -224
  37. package/dist/effect/generated/shared.js +194 -60
  38. package/dist/effect/generated/templates.d.ts +474 -668
  39. package/dist/effect/generated/templates.js +65 -45
  40. package/dist/effect/generated/webhooks.d.ts +22 -19
  41. package/dist/effect/generated/webhooks.js +10 -1
  42. package/dist/effect/generated/whoami.d.ts +0 -4
  43. package/dist/effect/generated-metadata.d.ts +36 -32
  44. package/dist/effect/generated-metadata.js +127 -105
  45. package/dist/effect/index.d.ts +1 -0
  46. package/dist/effect/index.js +3 -2
  47. package/dist/effect/internal/operation.js +5 -32
  48. package/dist/effect/journeys.d.ts +146 -146
  49. package/dist/effect/mailboxes.d.ts +575 -129
  50. package/dist/effect/mailboxes.js +1 -11
  51. package/dist/effect/policies.d.ts +65 -0
  52. package/dist/effect/policies.js +16 -0
  53. package/dist/effect/scheduled-messages.d.ts +6 -0
  54. package/dist/effect/templates.d.ts +6 -8
  55. package/dist/effect/templates.js +5 -3
  56. package/dist/effect/topics.d.ts +2 -2
  57. package/dist/effect/webhooks.d.ts +7 -4
  58. package/dist/index.js +2 -2
  59. package/dist/mailbox/test.js +11 -4
  60. package/dist/mailbox/types.d.ts +39 -3
  61. package/dist/package.js +1 -1
  62. package/dist/promises/client.d.ts +3 -1
  63. package/dist/promises/client.js +5 -3
  64. package/dist/promises/errors.gen.d.ts +18 -2
  65. package/dist/promises/errors.gen.js +335 -33
  66. package/dist/promises/index.js +2 -2
  67. package/dist/promises/types.gen.d.ts +1 -1
  68. package/dist/service-map.d.ts +30 -28
  69. package/dist/service-map.js +219 -786
  70. package/package.json +6 -2
@@ -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, 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";
2
+ import type { AgentDefinition, AgentId, AgentName, AgentsContinueOnStandardErrors, AgentsContinueOnStandardResponses, AgentsCreateErrors, AgentsCreateResponses, AgentsGetErrors, AgentsGetResponses, AgentsGetVersionErrors, AgentsGetVersionResponses, AgentsListErrors, AgentsListModelsErrors, AgentsListModelsResponses, AgentsListResponses, AgentsListVersionsErrors, AgentsListVersionsResponses, AgentsPublishErrors, AgentsPublishResponses, AgentsRemoveErrors, AgentsRemoveResponses, AgentsReplaceDraftErrors, AgentsReplaceDraftResponses, AgentsRerunTestsErrors, AgentsRerunTestsResponses, AgentsUpdateErrors, AgentsUpdateResponses, AnalyticsExportDataErrors, AnalyticsExportDataResponses, AnalyticsGetChannelStatsErrors, AnalyticsGetChannelStatsResponses, AnalyticsGetDeliveryMetricsErrors, AnalyticsGetDeliveryMetricsResponses, AnalyticsGetHourlyDistributionErrors, AnalyticsGetHourlyDistributionResponses, AnalyticsGetStatsErrors, AnalyticsGetStatsResponses, AnalyticsGetTopContactsErrors, AnalyticsGetTopContactsResponses, ApiKeyAccess, ApiKeyId, ApiKeysCreateErrors, ApiKeysCreateResponses, ApiKeysGetActivityErrors, ApiKeysGetActivityResponses, ApiKeysGetErrors, ApiKeysGetResponses, ApiKeysGetStatsErrors, ApiKeysGetStatsResponses, ApiKeysListErrors, ApiKeysListResponses, ApiKeysRevokeErrors, ApiKeysRevokeResponses, ApiKeysRotateErrors, ApiKeysRotateResponses, ApiKeysUpdateErrors, ApiKeysUpdateResponses, AttachmentId, AttachmentsDownloadUrlErrors, AttachmentsDownloadUrlResponses, AttachmentsGetByIdErrors, AttachmentsGetByIdResponses, AttachmentsListErrors, AttachmentsListResponses, AttachmentsRemoveErrors, AttachmentsRemoveResponses, BlockedEmailId, BrandAssets, BrandFooter, BrandsCreateErrors, BrandsCreateResponses, BrandsGetErrors, BrandsGetResponses, BrandsListErrors, BrandsListResponses, BrandsRemoveErrors, BrandsRemoveResponses, BrandsSetDefaultErrors, BrandsSetDefaultResponses, BrandsUpdateErrors, BrandsUpdateResponses, CampaignAudience, CampaignContentInput, CampaignId, CampaignPolicy, CampaignRunId, CampaignsArchiveErrors, CampaignsArchiveResponses, CampaignsCancelRunErrors, CampaignsCancelRunResponses, CampaignsCreateErrors, CampaignsCreateResponses, CampaignsGetErrors, CampaignsGetResponses, CampaignsGetRunErrors, CampaignsGetRunReportErrors, CampaignsGetRunReportResponses, CampaignsGetRunResponses, CampaignsListErrors, CampaignsListRecipientsErrors, CampaignsListRecipientsResponses, CampaignsListResponses, CampaignsListRunsErrors, CampaignsListRunsResponses, CampaignsPauseRunErrors, CampaignsPauseRunResponses, CampaignsPreviewErrors, CampaignsPreviewResponses, CampaignsResumeRunErrors, CampaignsResumeRunResponses, CampaignsScheduleRunErrors, CampaignsScheduleRunResponses, CampaignsSendTestErrors, CampaignsSendTestResponses, CampaignsUpdateErrors, CampaignsUpdateResponses, ContactEventReference, ContactEventsListEventsErrors, ContactEventsListEventsResponses, ContactGroupId, ContactGroupsAddMembersErrors, ContactGroupsAddMembersResponses, ContactGroupsCreateErrors, ContactGroupsCreateResponses, ContactGroupsEvaluateDynamicErrors, ContactGroupsEvaluateDynamicResponses, ContactGroupsGetByIdErrors, ContactGroupsGetByIdResponses, ContactGroupsGetMembersErrors, ContactGroupsGetMembersResponses, ContactGroupsListErrors, ContactGroupsListResponses, ContactGroupsPreviewErrors, ContactGroupsPreviewResponses, ContactGroupsRemoveErrors, ContactGroupsRemoveMembersErrors, ContactGroupsRemoveMembersResponses, ContactGroupsRemoveResponses, ContactGroupsUpdateErrors, ContactGroupsUpdateResponses, ContactId, ContactIdentityId, ContactIdentityInput, ContactImportJobId, ContactLookup, ContactPreferences, ContactProfileUpdate, ContactProfileWritable, ContactsAddIdentityErrors, ContactsAddIdentityResponses, ContactsAddTagsErrors, ContactsAddTagsResponses, ContactsBulkDeleteErrors, ContactsBulkDeleteResponses, ContactsBulkUpdateStatusErrors, ContactsBulkUpdateStatusResponses, ContactsBulkUpdateTagsErrors, ContactsBulkUpdateTagsResponses, ContactsCreateErrors, ContactsCreateResponses, ContactsExportErrors, ContactsExportResponses, ContactsFindErrors, ContactsFindOrCreateErrors, ContactsFindOrCreateResponses, ContactsFindResponses, ContactsGetActivityTimelineErrors, ContactsGetActivityTimelineResponses, ContactsGetEngagementErrors, ContactsGetEngagementResponses, ContactsGetErrors, ContactsGetGroupMembershipsErrors, ContactsGetGroupMembershipsResponses, ContactsGetImportJobErrors, ContactsGetImportJobResponses, ContactsGetResponses, ContactsListErrors, ContactsListResponses, ContactsPlanImportErrors, ContactsPlanImportResponses, ContactsRemoveErrors, ContactsRemoveIdentityErrors, ContactsRemoveIdentityResponses, ContactsRemoveResponses, ContactsRemoveTagsErrors, ContactsRemoveTagsResponses, ContactsSetConsentErrors, ContactsSetConsentResponses, ContactsStartImportErrors, ContactsStartImportResponses, ContactsUpdateErrors, ContactsUpdateResponses, ConversationContextWritable, ConversationId, ConversationsAddCategoriesErrors, ConversationsAddCategoriesResponses, ConversationsAddChannelsErrors, ConversationsAddChannelsResponses, ConversationsAddContactsErrors, ConversationsAddContactsResponses, ConversationsAddTagsErrors, ConversationsAddTagsResponses, ConversationsCreateErrors, ConversationsCreateResponses, ConversationsGetByIdErrors, ConversationsGetByIdResponses, ConversationsListErrors, ConversationsListMessagesErrors, ConversationsListMessagesResponses, ConversationsListResponses, ConversationsRemoveCategoriesErrors, ConversationsRemoveCategoriesResponses, ConversationsRemoveChannelsErrors, ConversationsRemoveChannelsResponses, ConversationsRemoveContactsErrors, ConversationsRemoveContactsResponses, ConversationsRemoveTagsErrors, ConversationsRemoveTagsResponses, ConversationsUpdateErrors, ConversationsUpdateResponses, CreateEventPayload, CreateMailboxChatDraftPayload, CreateMailboxEmailDraftPayload, CreateMailboxEndpointPayload, CustomFieldDefinitionId, CustomFieldsCreateErrors, CustomFieldsCreateResponses, CustomFieldsListErrors, CustomFieldsListResponses, CustomFieldsRemoveErrors, CustomFieldsRemoveResponses, CustomFieldsUpdateErrors, CustomFieldsUpdateResponses, DispatchSendMessagePayload, EmailAddBlockErrors, EmailAddBlockResponses, EmailAddDomainErrors, EmailAddDomainResponses, EmailAddSenderErrors, EmailAddSenderResponses, EmailAdvanceDomainVerificationErrors, EmailAdvanceDomainVerificationResponses, EmailAttachment, EmailBccRecipients, EmailBuildCustomTrackingDomainConnectApplyUrlErrors, EmailBuildCustomTrackingDomainConnectApplyUrlResponses, EmailBuildDomainConnectApplyUrlErrors, EmailBuildDomainConnectApplyUrlResponses, EmailCancelDomainWarmingBatchErrors, EmailCancelDomainWarmingBatchResponses, EmailCcRecipients, EmailCheckBlockedErrors, EmailCheckBlockedResponses, EmailCheckSenderVerificationErrors, EmailCheckSenderVerificationResponses, EmailCompleteCustomTrackingDomainConnectErrors, EmailCompleteCustomTrackingDomainConnectResponses, EmailCompleteDomainConnectErrors, EmailCompleteDomainConnectResponses, EmailCompleteDomainWarmingErrors, EmailCompleteDomainWarmingResponses, EmailContentWritable, EmailCountSuppressionsErrors, EmailCountSuppressionsResponses, EmailCreateDomainWarmingPlanErrors, EmailCreateDomainWarmingPlanResponses, EmailCreateForwardingRuleErrors, EmailCreateForwardingRuleResponses, EmailDeleteForwardingRuleErrors, EmailDeleteForwardingRuleResponses, EmailDetectRegistrarErrors, EmailDetectRegistrarResponses, EmailDisableCatchAllErrors, EmailDisableCatchAllResponses, EmailDisableCustomTrackingErrors, EmailDisableCustomTrackingResponses, EmailDomainId, EmailDomainWarmingBatchId, EmailEnableCatchAllErrors, EmailEnableCatchAllResponses, EmailEnableCustomTrackingErrors, EmailEnableCustomTrackingResponses, EmailEnableReceivingErrors, EmailEnableReceivingResponses, EmailForwardingRuleId, EmailGetBlockLogsErrors, EmailGetBlockLogsResponses, EmailGetCatchAllConfigErrors, EmailGetCatchAllConfigResponses, EmailGetCatchAllStatsErrors, EmailGetCatchAllStatsResponses, EmailGetCustomTrackingDomainConnectErrors, EmailGetCustomTrackingDomainConnectResponses, EmailGetCustomTrackingErrors, EmailGetCustomTrackingResponses, EmailGetDomainByIdErrors, EmailGetDomainByIdResponses, EmailGetDomainConnectErrors, EmailGetDomainConnectResponses, EmailGetDomainVerificationErrors, EmailGetDomainVerificationResponses, EmailGetDomainWarmingErrors, EmailGetDomainWarmingResponses, EmailGetForwardingLogErrors, EmailGetForwardingLogResponses, EmailGetOnboardingReviewErrors, EmailGetOnboardingReviewResponses, EmailGetReceivingStatusErrors, EmailGetReceivingStatusResponses, EmailGetRecipientTrackingPreferenceErrors, EmailGetRecipientTrackingPreferenceResponses, EmailGetSenderErrors, EmailGetSenderResponses, EmailGetStatsErrors, EmailGetStatsResponses, EmailGetTrackingDefaultsErrors, EmailGetTrackingDefaultsResponses, EmailListBlocksErrors, EmailListBlocksResponses, EmailListDomainsErrors, EmailListDomainsResponses, EmailListForwardingRulesErrors, EmailListForwardingRulesResponses, EmailListSendersErrors, EmailListSendersResponses, EmailListSuppressionsErrors, EmailListSuppressionsResponses, EmailPauseDomainWarmingErrors, EmailPauseDomainWarmingResponses, EmailReapplyOnboardingReviewErrors, EmailReapplyOnboardingReviewResponses, EmailRecheckCustomTrackingErrors, EmailRecheckCustomTrackingResponses, EmailRecipients, EmailRemoveBlockErrors, EmailRemoveBlockResponses, EmailRemoveDomainErrors, EmailRemoveDomainResponses, EmailRemoveSenderErrors, EmailRemoveSenderResponses, EmailRemoveSuppressionErrors, EmailRemoveSuppressionResponses, EmailRespondToOnboardingInformationRequestErrors, EmailRespondToOnboardingInformationRequestResponses, EmailResumeDomainWarmingErrors, EmailResumeDomainWarmingResponses, EmailRotateDomainDkimErrors, EmailRotateDomainDkimResponses, EmailSender, EmailSenderId, EmailSendMessagePayload, EmailSetDefaultDomainErrors, EmailSetDefaultDomainResponses, EmailSetDefaultSenderErrors, EmailSetDefaultSenderResponses, EmailUpdateBlockErrors, EmailUpdateBlockResponses, EmailUpdateCatchAllConfigErrors, EmailUpdateCatchAllConfigResponses, EmailUpdateDomainConfigErrors, EmailUpdateDomainConfigResponses, EmailUpdateDomainWarmingPolicyErrors, EmailUpdateDomainWarmingPolicyResponses, EmailUpdateForwardingRuleErrors, EmailUpdateForwardingRuleResponses, EmailUpdateRecipientTrackingPreferenceErrors, EmailUpdateRecipientTrackingPreferenceResponses, EmailUpdateTrackingDefaultsErrors, EmailUpdateTrackingDefaultsResponses, EventsBatchErrors, EventsBatchResponses, EventsCreateErrors, EventsCreateResponses, ExtensionInstallationId, ExtensionInstallationsDisableErrors, ExtensionInstallationsDisableResponses, ExtensionInstallationsEnableErrors, ExtensionInstallationsEnableResponses, ExtensionInstallationsGetErrors, ExtensionInstallationsGetResponses, ExtensionInstallationsGetRunErrors, ExtensionInstallationsGetRunResponses, ExtensionInstallationsInstallErrors, ExtensionInstallationsInstallResponses, ExtensionInstallationsListErrors, ExtensionInstallationsListResponses, ExtensionInstallationsListRunsErrors, ExtensionInstallationsListRunsResponses, ExtensionInstallationsUninstallErrors, ExtensionInstallationsUninstallResponses, ExtensionInstallationsUpgradeErrors, ExtensionInstallationsUpgradeResponses, ExtensionsGetErrors, ExtensionsGetResponses, ExtensionsGetVersionErrors, ExtensionsGetVersionResponses, ExtensionsListErrors, ExtensionsListResponses, ExtensionsListVersionsErrors, ExtensionsListVersionsResponses, ExtensionsPublishErrors, ExtensionsPublishResponses, ExtensionVersionId, FeedbackContext, FeedbackSendErrors, FeedbackSendResponses, ForwardingConditions, IanaTimezone, JourneyDefinitionWritable, JourneyId, JourneyName, JourneyRunId, JourneyRunStatus, JourneysArchiveErrors, JourneysArchiveResponses, JourneysCreateErrors, JourneysCreateResponses, JourneysGetErrors, JourneysGetResponses, JourneysGetRunErrors, JourneysGetRunResponses, JourneysGetVersionErrors, JourneysGetVersionResponses, JourneysListErrors, JourneysListResponses, JourneysListRunsErrors, JourneysListRunsResponses, JourneysPauseErrors, JourneysPauseResponses, JourneysPublishErrors, JourneysPublishResponses, JourneysRemoveErrors, JourneysRemoveResponses, JourneysReplaceDraftErrors, JourneysReplaceDraftResponses, JourneysResumeErrors, JourneysResumeResponses, JourneysStatsErrors, JourneysStatsResponses, JourneyStatus, JourneysUpdateErrors, JourneysUpdateResponses, JsonObjectWritable, JsonValueWritable, MailboxActionId, MailboxChannel, MailboxDraftId, MailboxEndpointId, MailboxesAddThreadLabelsErrors, MailboxesAddThreadLabelsResponses, MailboxesApproveActionErrors, MailboxesApproveActionResponses, MailboxesCancelActionErrors, MailboxesCancelActionResponses, MailboxesCopyMessageAttachmentErrors, MailboxesCopyMessageAttachmentResponses, MailboxesCreateDraftErrors, MailboxesCreateDraftResponses, MailboxesCreateEndpointErrors, MailboxesCreateEndpointResponses, MailboxesCreateErrors, MailboxesCreateGrantErrors, MailboxesCreateGrantResponses, MailboxesCreateLabelErrors, MailboxesCreateLabelResponses, MailboxesCreateNoteErrors, MailboxesCreateNoteResponses, MailboxesCreateResponses, MailboxesDeleteDraftErrors, MailboxesDeleteDraftResponses, MailboxesDeleteLabelErrors, MailboxesDeleteLabelResponses, MailboxesDeleteNoteErrors, MailboxesDeleteNoteResponses, MailboxesDenyActionErrors, MailboxesDenyActionResponses, MailboxesDiscardMessageErrors, MailboxesDiscardMessageResponses, MailboxesForwardErrors, MailboxesForwardResponses, MailboxesGetActionErrors, MailboxesGetActionResponses, MailboxesGetAgentActivityErrors, MailboxesGetAgentActivityResponses, MailboxesGetDraftErrors, MailboxesGetDraftResponses, MailboxesGetErrors, MailboxesGetMessageAttachmentErrors, MailboxesGetMessageAttachmentResponses, MailboxesGetMessageErrors, MailboxesGetMessageRawErrors, MailboxesGetMessageRawResponses, MailboxesGetMessageResponses, MailboxesGetNeedsYouErrors, MailboxesGetNeedsYouResponses, MailboxesGetResponses, MailboxesGetThreadContentErrors, MailboxesGetThreadContentResponses, MailboxesGetThreadErrors, MailboxesGetThreadResponses, MailboxesListActionsErrors, MailboxesListActionsResponses, MailboxesListDraftsErrors, MailboxesListDraftsResponses, MailboxesListErrors, MailboxesListEventsErrors, MailboxesListEventsResponses, MailboxesListFoldersErrors, MailboxesListFoldersResponses, MailboxesListGrantsErrors, MailboxesListGrantsResponses, MailboxesListLabelsErrors, MailboxesListLabelsResponses, MailboxesListOrganizationDraftsErrors, MailboxesListOrganizationDraftsResponses, MailboxesListOrganizationThreadsErrors, MailboxesListOrganizationThreadsResponses, MailboxesListQuarantineErrors, MailboxesListQuarantineResponses, MailboxesListResponses, MailboxesListThreadMessagesErrors, MailboxesListThreadMessagesResponses, MailboxesListThreadNotesErrors, MailboxesListThreadNotesResponses, MailboxesListThreadsErrors, MailboxesListThreadsResponses, MailboxesPauseErrors, MailboxesPauseResponses, MailboxesReleaseMessageErrors, MailboxesReleaseMessageResponses, MailboxesRemoveEndpointErrors, MailboxesRemoveEndpointResponses, MailboxesRemoveErrors, MailboxesRemoveResponses, MailboxesRemoveThreadLabelsErrors, MailboxesRemoveThreadLabelsResponses, MailboxesReplyAllErrors, MailboxesReplyAllResponses, MailboxesReplyErrors, MailboxesReplyResponses, MailboxesResumeErrors, MailboxesResumeResponses, MailboxesRetryActionErrors, MailboxesRetryActionResponses, MailboxesRevokeGrantErrors, MailboxesRevokeGrantResponses, MailboxesSendDraftErrors, MailboxesSendDraftResponses, MailboxesSendMessageErrors, MailboxesSendMessageResponses, MailboxesUpdateDraftErrors, MailboxesUpdateDraftResponses, MailboxesUpdateEndpointErrors, MailboxesUpdateEndpointResponses, MailboxesUpdateErrors, MailboxesUpdateGrantErrors, MailboxesUpdateGrantResponses, MailboxesUpdateLabelErrors, MailboxesUpdateLabelResponses, MailboxesUpdateNoteErrors, MailboxesUpdateNoteResponses, MailboxesUpdateResponses, MailboxesUpdateThreadErrors, MailboxesUpdateThreadResponses, MailboxGrantId, MailboxGrantRole, MailboxId, MailboxLabelId, MailboxMetadataPatch, MailboxMetadataWritable, MailboxNoteId, MailboxThreadFolder, MailboxThreadId, MailboxThreadPriority, MediaCompleteErrors, MediaCompleteResponses, MediaCreateErrors, MediaCreateResponses, MediaDownloadUrlErrors, MediaDownloadUrlResponses, MediaGetByIdErrors, MediaGetByIdResponses, MediaId, MediaRemoveErrors, MediaRemoveResponses, MessageId, MessageMetadataWritable, MessagesGetContentErrors, MessagesGetContentResponses, MessagesGetEmailErrors, MessagesGetEmailResponses, MessagesGetErrors, MessagesGetEventsErrors, MessagesGetEventsResponses, MessagesGetResponses, MessagesGetStatusErrors, MessagesGetStatusResponses, MessagesListDeliveriesErrors, MessagesListDeliveriesResponses, MessagesListErrors, MessagesListResponses, MessagesRemoveErrors, MessagesRemoveResponses, MessagesSendErrors, MessagesSendResponses, MessagesValidateEmailErrors, MessagesValidateEmailResponses, MonthlySpendCapDollars, NamespaceId, NamespaceMetadataWritable, NamespaceResourceType, NamespacesAssignResourceErrors, NamespacesAssignResourceResponses, NamespacesCreateErrors, NamespacesCreateResponses, NamespacesGetErrors, NamespacesGetResponses, NamespacesGetUsageErrors, NamespacesGetUsageResponses, NamespacesListErrors, NamespacesListResponses, NamespacesRemoveErrors, NamespacesRemoveResourceErrors, NamespacesRemoveResourceResponses, NamespacesRemoveResponses, NamespacesUpdateErrors, NamespacesUpdateResponses, NewsletterDomainsAddErrors, NewsletterDomainsAddResponses, NewsletterDomainsGetErrors, NewsletterDomainsGetResponses, NewsletterDomainsListErrors, NewsletterDomainsListResponses, NewsletterDomainsRemoveErrors, NewsletterDomainsRemoveResponses, NewsletterId, NewsletterIssuesCheckErrors, NewsletterIssuesCheckResponses, NewsletterIssuesCreateErrors, NewsletterIssuesCreateResponses, NewsletterIssuesGetErrors, NewsletterIssuesGetResponses, NewsletterIssuesHeadErrors, NewsletterIssuesHeadResponses, NewsletterIssuesHistoryErrors, NewsletterIssuesHistoryResponses, NewsletterIssuesListErrors, NewsletterIssuesListResponses, NewsletterIssuesOpenErrors, NewsletterIssuesOpenResponses, NewsletterIssuesRemoveErrors, NewsletterIssuesRemoveResponses, NewsletterIssuesRenderErrors, NewsletterIssuesRenderResponses, NewsletterIssuesSaveErrors, NewsletterIssuesSaveResponses, NewsletterIssuesUpdateErrors, NewsletterIssuesUpdateResponses, NewslettersCreateErrors, NewslettersCreateResponses, NewslettersGetErrors, NewslettersGetResponses, NewslettersListErrors, NewslettersListResponses, NewslettersRemoveErrors, NewslettersRemoveResponses, NewslettersUpdateErrors, NewslettersUpdateResponses, OperationId, OperationsGetErrors, OperationsGetResponses, OperationsListErrors, OperationsListResponses, OperationsRetryErrors, OperationsRetryResponses, OrganizationsAssignPersonalMailboxErrors, OrganizationsAssignPersonalMailboxResponses, OrganizationsCreateAvatarUploadErrors, OrganizationsCreateAvatarUploadResponses, OrganizationsCreateErrors, OrganizationsCreateResponses, OrganizationsDeleteErrors, OrganizationsDeleteResponses, OrganizationsGetErrors, OrganizationsGetPersonalMailboxAddressOptionsErrors, OrganizationsGetPersonalMailboxAddressOptionsResponses, OrganizationsGetProfileErrors, OrganizationsGetProfileResponses, OrganizationsGetResponses, OrganizationsGetTrustTierErrors, OrganizationsGetTrustTierResponses, OrganizationsGetUsageErrors, OrganizationsGetUsageResponses, OrganizationsListPersonalMailboxAssignmentsErrors, OrganizationsListPersonalMailboxAssignmentsResponses, OrganizationsUpdateErrors, OrganizationsUpdateResponses, PhoneRegion, PoliciesDeletePolicyErrors, PoliciesDeletePolicyResponses, PoliciesGetPolicyErrors, PoliciesGetPolicyResponses, PoliciesSetPolicyErrors, PoliciesSetPolicyResponses, PolicyConfiguration, PolicyReviewRound, PolicyRule, PolicyVersion, RenderLocale, RenderTimeZone, ReplyMailboxChatPayload, ReplyMailboxEmailPayload, ScheduledMessageId, ScheduledMessagesCancelErrors, ScheduledMessagesCancelResponses, ScheduledMessagesCreateErrors, ScheduledMessagesCreateResponses, ScheduledMessagesGetErrors, ScheduledMessagesGetResponses, ScheduledMessagesListErrors, ScheduledMessagesListResponses, ScheduledMessagesResumeErrors, ScheduledMessagesResumeResponses, SendMailboxChatPayload, SendMailboxEmailPayload, SmsSendMessagePayload, SubscriptionsSubscribeErrors, SubscriptionsSubscribeResponses, SuppressionId, TemplateFamilyId, TemplateFromDefault, TemplateId, TemplateInputContractId, TemplateProjectId, TemplatePublicationId, TemplatesAddEntryErrors, TemplatesAddEntryResponses, TemplatesAttachFamilyMemberErrors, TemplatesAttachFamilyMemberResponses, TemplatesAttachWorkspaceResourceErrors, TemplatesAttachWorkspaceResourceResponses, TemplatesCheckWorkspaceErrors, TemplatesCheckWorkspaceResponses, TemplatesCreateErrors, TemplatesCreateFamilyErrors, TemplatesCreateFamilyFromTemplateErrors, TemplatesCreateFamilyFromTemplateResponses, TemplatesCreateFamilyResponses, TemplatesCreateFromWebsiteErrors, TemplatesCreateFromWebsiteResponses, TemplatesCreateResponses, TemplatesDeleteErrors, TemplatesDeleteFamilyErrors, TemplatesDeleteFamilyResponses, TemplatesDeleteProjectErrors, TemplatesDeleteProjectResponses, TemplatesDeleteResponses, TemplatesDetachFamilyMemberErrors, TemplatesDetachFamilyMemberResponses, TemplatesDiffWorkspaceErrors, TemplatesDiffWorkspaceResponses, TemplatesGetByIdErrors, TemplatesGetByIdResponses, TemplatesGetFamilyErrors, TemplatesGetFamilyResponses, TemplatesGetGitRepositoryErrors, TemplatesGetGitRepositoryResponses, TemplatesGetInputContractErrors, TemplatesGetInputContractResponses, TemplatesGetPublicationErrors, TemplatesGetPublicationResponses, TemplatesIssueGitCredentialErrors, TemplatesIssueGitCredentialResponses, TemplatesListErrors, TemplatesListFamiliesErrors, TemplatesListFamiliesResponses, TemplatesListInputContractsErrors, TemplatesListInputContractsResponses, TemplatesListResponses, TemplatesOpenWorkspaceErrors, TemplatesOpenWorkspaceResponses, TemplatesPatchWorkspaceErrors, TemplatesPatchWorkspaceResponses, TemplatesPublishErrors, TemplatesPublishResponses, TemplatesPutWorkspaceAssetErrors, TemplatesPutWorkspaceAssetResponses, TemplatesRemoveWorkspaceResourceErrors, TemplatesRemoveWorkspaceResourceResponses, TemplatesRenameFamilyErrors, TemplatesRenameFamilyResponses, TemplatesRenderPublicationErrors, TemplatesRenderPublicationResponses, TemplatesRenderWorkspaceFixtureErrors, TemplatesRenderWorkspaceFixtureResponses, TemplatesResolveWorkspaceConflictErrors, TemplatesResolveWorkspaceConflictResponses, TemplatesRestoreWorkspaceErrors, TemplatesRestoreWorkspaceResponses, TemplatesSaveWorkspaceErrors, TemplatesSaveWorkspaceResponses, TemplatesUpdateErrors, TemplatesUpdateResponses, TemplatesWorkspaceHistoryErrors, TemplatesWorkspaceHistoryResponses, TemplateTrackingDefault, TopicContactRef, TopicFormsCreateErrors, TopicFormsCreateResponses, TopicFormsGetErrors, TopicFormsGetResponses, TopicFormsListErrors, TopicFormsListResponses, TopicFormsRemoveErrors, TopicFormsRemoveResponses, TopicFormsUpdateErrors, TopicFormsUpdateResponses, TopicId, TopicsCheckSubscriptionErrors, TopicsCheckSubscriptionResponses, TopicsCreateErrors, TopicsCreateResponses, TopicsGetErrors, TopicsGetResponses, TopicsListErrors, TopicsListResponses, TopicsListSubscriptionsErrors, TopicsListSubscriptionsResponses, TopicsRemoveErrors, TopicsRemoveResponses, TopicsSetDefaultErrors, TopicsSetDefaultResponses, TopicsSetSubscriptionsErrors, TopicsSetSubscriptionsResponses, TopicsUpdateErrors, TopicsUpdateResponses, TrackingRecipientEmail, UserId, WebhookDeliveryId, WebhookEndpointId, WebhooksCreateErrors, WebhooksCreateResponses, WebhooksGetErrors, WebhooksGetLogsErrors, WebhooksGetLogsResponses, WebhooksGetResponses, WebhooksGetSecretErrors, WebhooksGetSecretResponses, WebhooksGetStatsErrors, WebhooksGetStatsResponses, WebhooksListErrors, WebhooksListResponses, WebhooksRegenerateSecretErrors, WebhooksRegenerateSecretResponses, WebhooksRemoveErrors, WebhooksRemoveResponses, WebhooksRetryDeliveryErrors, WebhooksRetryDeliveryResponses, WebhooksTestErrors, WebhooksTestResponses, WebhooksUpdateErrors, WebhooksUpdateResponses, WhatsAppSendMessagePayload, WhoamiGetErrors, WhoamiGetResponses } from "./types.gen";
3
3
  export type Options<TData extends TDataShape = TDataShape, ThrowOnError extends boolean = boolean, TResponse = unknown> = Options2<TData, ThrowOnError, TResponse> & {
4
4
  /**
5
5
  * You can provide a client instance returned by `createClient()` instead of
@@ -160,6 +160,7 @@ export declare class ScheduledMessages {
160
160
  static list<ThrowOnError extends boolean = false>(parameters?: {
161
161
  limit?: number | null | undefined;
162
162
  cursor?: string | undefined;
163
+ namespaceId?: NamespaceId | undefined;
163
164
  status?: "pending" | "dispatching" | "paused" | "dispatched" | "cancelled" | "failed" | undefined;
164
165
  }, options?: Options<never, ThrowOnError>): RequestResult<ScheduledMessagesListResponses, ScheduledMessagesListErrors, ThrowOnError>;
165
166
  /**
@@ -168,6 +169,7 @@ export declare class ScheduledMessages {
168
169
  * Schedules a message for dispatch at the absolute ISO-8601 timestamp supplied in scheduledFor. Requires `messages:create` or the send permission of the channel it sends on, such as `email:send`. Optional timezone is validated IANA display metadata only and never changes the execution instant.
169
170
  */
170
171
  static create<ThrowOnError extends boolean = false>(parameters: {
172
+ namespaceId?: NamespaceId | null | undefined;
171
173
  send: DispatchSendMessagePayload;
172
174
  scheduledFor: string;
173
175
  timezone?: IanaTimezone | null | undefined;
@@ -1060,6 +1062,7 @@ export declare class Conversations {
1060
1062
  static list<ThrowOnError extends boolean = false>(parameters?: {
1061
1063
  limit?: number | null | undefined;
1062
1064
  cursor?: string | undefined;
1065
+ namespaceId?: NamespaceId | undefined;
1063
1066
  status?: "active" | "waiting" | "resolved" | "escalated" | "archived" | undefined;
1064
1067
  channel?: "sms" | "whatsapp" | "email" | undefined;
1065
1068
  contactId?: ContactId | undefined;
@@ -1073,6 +1076,7 @@ export declare class Conversations {
1073
1076
  * Creates a new conversation with its initial contacts and returns it with a 201 status.
1074
1077
  */
1075
1078
  static create<ThrowOnError extends boolean = false>(parameters: {
1079
+ namespaceId?: NamespaceId | null | undefined;
1076
1080
  title?: string | null | undefined;
1077
1081
  description?: string | null | undefined;
1078
1082
  externalId?: string | null | undefined;
@@ -1702,19 +1706,30 @@ export declare class Journeys2 {
1702
1706
  static journeys: typeof Journeys;
1703
1707
  }
1704
1708
  export declare class Agents {
1709
+ /**
1710
+ * Compare saved-test decisions
1711
+ *
1712
+ * Runs saved tests against a supplied draft and the current immutable published definition, returning changed action decisions. No test or agent is modified and nothing is sent. Large comparisons can time out; run saved tests individually or shorten their conversations before retrying.
1713
+ */
1714
+ static rerunTests<ThrowOnError extends boolean = false>(parameters: {
1715
+ id: AgentId;
1716
+ name: AgentName;
1717
+ definition: AgentDefinition;
1718
+ }, options?: Options<never, ThrowOnError>): RequestResult<AgentsRerunTestsResponses, AgentsRerunTestsErrors, ThrowOnError>;
1705
1719
  /**
1706
1720
  * List agents
1707
1721
  *
1708
- * Returns the agents the caller can reach, newest first, without their drafts. Pass nextCursor back as cursor for the next page.
1722
+ * Returns the agents the caller can reach, newest first, without their drafts, optionally filtered by `namespaceId`. Pass nextCursor back as cursor for the next page.
1709
1723
  */
1710
1724
  static list<ThrowOnError extends boolean = false>(parameters?: {
1711
1725
  limit?: number | null | undefined;
1712
1726
  cursor?: string | undefined;
1727
+ namespaceId?: NamespaceId | undefined;
1713
1728
  }, options?: Options<never, ThrowOnError>): RequestResult<AgentsListResponses, AgentsListErrors, ThrowOnError>;
1714
1729
  /**
1715
1730
  * Create an agent
1716
1731
  *
1717
- * Creates an agent with a draft and returns it with status 201. The agent answers nothing until its draft is published. A new agent starts in supervised mode, so each reply waits for a person to approve it. The namespace is set at creation and cannot change.
1732
+ * Creates an agent with a draft and returns it with status 201. The agent answers nothing until its draft is published. The default policy requires a person to approve replies and final actions. The namespace is set at creation and cannot change.
1718
1733
  */
1719
1734
  static create<ThrowOnError extends boolean = false>(parameters: {
1720
1735
  name: AgentName;
@@ -1766,7 +1781,7 @@ export declare class Agents {
1766
1781
  /**
1767
1782
  * Publish an agent
1768
1783
  *
1769
- * Publishes the draft as the next immutable version. Each conversation moves to it from its next agent reply; a reply already running finishes on the version it started on. The request names the revision it read; a stale revision returns 409. Publishing a draft identical to the newest version changes nothing and answers published false. An endpoint answers for one agent at a time: publishing a draft whose endpoint another agent answers on returns 409. In supervised mode each reply waits for a person to approve it.
1784
+ * Publishes the draft as the next immutable version. Each conversation moves to it from its next agent reply; a reply already running finishes on the version it started on. The request names the revision it read; a stale revision returns 409. Publishing a draft identical to the newest version changes nothing and answers published false. An endpoint answers for one agent at a time: publishing a draft whose endpoint another agent answers on returns 409. The published policy governs review of each proposed action.
1770
1785
  */
1771
1786
  static publish<ThrowOnError extends boolean = false>(parameters: {
1772
1787
  id: AgentId;
@@ -2360,6 +2375,7 @@ export declare class Analytics {
2360
2375
  * Returns outbound message counts over the half-open selected instant range, grouped by organization-local calendar day, week, or month. A range with traffic returns every bucket in it, including the ones that saw none; a range with no outbound traffic at all returns no buckets. A range with no `before` runs through the current instant, so its quiet trailing buckets are reported as zero.
2361
2376
  */
2362
2377
  static getStats<ThrowOnError extends boolean = false>(parameters?: {
2378
+ namespaceId?: NamespaceId | undefined;
2363
2379
  after?: string | undefined;
2364
2380
  before?: string | undefined;
2365
2381
  groupBy?: "day" | "week" | "month" | undefined;
@@ -2371,6 +2387,7 @@ export declare class Analytics {
2371
2387
  * Returns aggregate delivery metrics plus unique-message email Open and Click rates over the selected date range. `sent` counts every outbound message accepted in the range; each rate is taken over the messages the channel actually attempted, so one still waiting to be sent neither helps nor hurts it. Each engagement rate uses the corresponding tracking-eligible delivered-message cohort; repeated provider observations do not inflate the numerator.
2372
2388
  */
2373
2389
  static getChannelStats<ThrowOnError extends boolean = false>(parameters?: {
2390
+ namespaceId?: NamespaceId | undefined;
2374
2391
  after?: string | undefined;
2375
2392
  before?: string | undefined;
2376
2393
  }, options?: Options<never, ThrowOnError>): RequestResult<AnalyticsGetChannelStatsResponses, AnalyticsGetChannelStatsErrors, ThrowOnError>;
@@ -2380,6 +2397,7 @@ export declare class Analytics {
2380
2397
  * Returns the contacts your organization exchanged the most messages with over the selected date range. `sortBy` chooses the traffic `messageCount` reports and ranks by: `sent` counts outbound messages addressed to the contact, `received` counts inbound messages the contact sent you, and `total` (the default) counts both. Contacts with no traffic in the range are omitted, and at most 100 are returned.
2381
2398
  */
2382
2399
  static getTopContacts<ThrowOnError extends boolean = false>(parameters?: {
2400
+ namespaceId?: NamespaceId | undefined;
2383
2401
  after?: string | undefined;
2384
2402
  before?: string | undefined;
2385
2403
  limit?: number | null | undefined;
@@ -2391,6 +2409,7 @@ export declare class Analytics {
2391
2409
  * Returns outbound message counts over the half-open selected instant range, bucketed by organization-local hour. Empty ranges return no rows; non-empty ranges include all 24 hours.
2392
2410
  */
2393
2411
  static getHourlyDistribution<ThrowOnError extends boolean = false>(parameters?: {
2412
+ namespaceId?: NamespaceId | undefined;
2394
2413
  after?: string | undefined;
2395
2414
  before?: string | undefined;
2396
2415
  }, options?: Options<never, ThrowOnError>): RequestResult<AnalyticsGetHourlyDistributionResponses, AnalyticsGetHourlyDistributionErrors, ThrowOnError>;
@@ -2400,6 +2419,7 @@ export declare class Analytics {
2400
2419
  * Returns delivered, failed, and pending rates plus average delivery time for the outbound messages accepted in the selected date range, optionally filtered by channel. Every accepted message falls into exactly one of the three, so they always sum to 100%: a complaint counts as delivered because the message arrived, a bounce counts as failed, and anything the provider has not resolved yet counts as pending. Mail your organization received is not rated here.
2401
2420
  */
2402
2421
  static getDeliveryMetrics<ThrowOnError extends boolean = false>(parameters?: {
2422
+ namespaceId?: NamespaceId | undefined;
2403
2423
  after?: string | undefined;
2404
2424
  before?: string | undefined;
2405
2425
  channel?: "sms" | "whatsapp" | "email" | undefined;
@@ -2410,6 +2430,7 @@ export declare class Analytics {
2410
2430
  * Exports one record per outbound message accepted in the given date range as CSV or JSON and returns the file content inline. CSV follows RFC 4180: fields containing a quote, comma, or line break are quoted with embedded quotes doubled, and records are separated by CRLF. At most 10,000 records are returned, newest first.
2411
2431
  */
2412
2432
  static exportData<ThrowOnError extends boolean = false>(parameters: {
2433
+ namespaceId?: NamespaceId | null | undefined;
2413
2434
  after: string;
2414
2435
  before: string;
2415
2436
  format?: "csv" | "json" | null | undefined;
@@ -2449,7 +2470,6 @@ export declare class Templates {
2449
2470
  useBrand?: boolean | null | undefined;
2450
2471
  description?: string | null | undefined;
2451
2472
  category?: "transactional" | "marketing" | "support" | "notification" | "verification" | "reminder" | "alert" | null | undefined;
2452
- isActive?: boolean | null | undefined;
2453
2473
  namespaceId?: NamespaceId | null | undefined;
2454
2474
  shared?: boolean | null | undefined;
2455
2475
  }, options?: Options<never, ThrowOnError>): RequestResult<TemplatesCreateResponses, TemplatesCreateErrors, ThrowOnError>;
@@ -2525,11 +2545,11 @@ export declare class Templates {
2525
2545
  /**
2526
2546
  * Delete a template
2527
2547
  *
2528
- * Deletes a template from the organization and returns a success flag.
2548
+ * Permanently deletes a template and its publications, input contracts, variants and preview rasters, freeing its slug. Refuses with 409 and reference kind/id pairs while in use. Sent-message history keeps its snapshots. The project and its Git files remain. External object cleanup retries durably.
2529
2549
  */
2530
- static remove<ThrowOnError extends boolean = false>(parameters: {
2550
+ static delete<ThrowOnError extends boolean = false>(parameters: {
2531
2551
  id: TemplateId;
2532
- }, options?: Options<never, ThrowOnError>): RequestResult<TemplatesRemoveResponses, TemplatesRemoveErrors, ThrowOnError>;
2552
+ }, options?: Options<never, ThrowOnError>): RequestResult<TemplatesDeleteResponses, TemplatesDeleteErrors, ThrowOnError>;
2533
2553
  /**
2534
2554
  * Get a template
2535
2555
  *
@@ -2557,7 +2577,6 @@ export declare class Templates {
2557
2577
  * Engagement tracking for sends of this template: `opens` and `clicks`, each inherited from the domain and organization defaults when omitted. A send request's own `tracking` still wins. Null clears the template's default.
2558
2578
  */
2559
2579
  trackingDefault?: TemplateTrackingDefault | null | undefined;
2560
- isActive?: boolean | null | undefined;
2561
2580
  /**
2562
2581
  * Share the template's project with every namespace, or stop sharing it. Applies to every entry in the project. Only an organization-level project is shared.
2563
2582
  */
@@ -2587,6 +2606,14 @@ export declare class Templates {
2587
2606
  description?: string | null | undefined;
2588
2607
  category?: "transactional" | "marketing" | "support" | "notification" | "verification" | "reminder" | "alert" | null | undefined;
2589
2608
  }, options?: Options<never, ThrowOnError>): RequestResult<TemplatesAddEntryResponses, TemplatesAddEntryErrors, ThrowOnError>;
2609
+ /**
2610
+ * Permanently delete a template project
2611
+ *
2612
+ * Permanently deletes the project and every template in it. Refuses with 409 and reference kind/id pairs while any entry or the project is in use. Repository, workspace, conversations, draft assets, publications and previews are removed through durable cleanup. Sent-message history keeps its snapshots. Newsletter issue projects can only be removed through their topic.
2613
+ */
2614
+ static deleteProject<ThrowOnError extends boolean = false>(parameters: {
2615
+ id: TemplateProjectId;
2616
+ }, options?: Options<never, ThrowOnError>): RequestResult<TemplatesDeleteProjectResponses, TemplatesDeleteProjectErrors, ThrowOnError>;
2590
2617
  /**
2591
2618
  * Patch template project files
2592
2619
  *
@@ -2860,11 +2887,12 @@ export declare class Webhooks {
2860
2887
  /**
2861
2888
  * List webhooks
2862
2889
  *
2863
- * Returns the organization's webhook endpoints, oldest first, with each endpoint's delivery counts, optionally filtered by a search term matched against name and URL, and by status. Pass `nextCursor` back as `cursor` for the next page; it is null on the last page.
2890
+ * Returns the organization's webhook endpoints, oldest first, with each endpoint's delivery counts, optionally filtered by namespace (`namespaceId`), a search term matched against name and URL, and by status. Pass `nextCursor` back as `cursor` for the next page; it is null on the last page.
2864
2891
  */
2865
2892
  static list<ThrowOnError extends boolean = false>(parameters?: {
2866
2893
  limit?: number | null | undefined;
2867
2894
  cursor?: string | undefined;
2895
+ namespaceId?: NamespaceId | undefined;
2868
2896
  search?: string | undefined;
2869
2897
  status?: "active" | "disabled" | undefined;
2870
2898
  }, options?: Options<never, ThrowOnError>): RequestResult<WebhooksListResponses, WebhooksListErrors, ThrowOnError>;
@@ -2876,7 +2904,7 @@ export declare class Webhooks {
2876
2904
  static create<ThrowOnError extends boolean = false>(parameters: {
2877
2905
  name: string;
2878
2906
  url: string;
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">;
2907
+ eventTypes: Array<"message.sent" | "message.delivered" | "message.read" | "message.failed" | "message.bounced" | "message.complained" | "message.received" | "message.opened" | "message.clicked" | "contact.created" | "contact.updated" | "contact.deleted" | "contact.subscribed" | "contact.unsubscribed" | "contact.resubscribed" | "contact.consent_changed" | "conversation.created" | "conversation.updated" | "conversation.archived" | "webhook.created" | "webhook.updated" | "webhook.deleted" | "webhook.test" | "domain.updated" | "domain.warming.updated" | "email.sending.paused" | "email.sending.resumed" | "template.registration.updated" | "flow.registration.updated" | "whatsapp.number.connected" | "mailbox.message.received" | "mailbox.message.sent" | "mailbox.action.pending_approval" | "mailbox.action.resolved" | "mailbox.message.quarantined" | "mailbox.message.released" | "mailbox.message.discarded" | "mailbox.message.delivered" | "mailbox.message.read" | "mailbox.message.failed" | "journey.webhook">;
2880
2908
  channels?: Array<"sms" | "whatsapp" | "email"> | null | undefined;
2881
2909
  mailboxIds?: [MailboxId, ...Array<MailboxId>] | null | undefined;
2882
2910
  namespaceId?: NamespaceId | null | undefined;
@@ -2910,7 +2938,7 @@ export declare class Webhooks {
2910
2938
  id: WebhookEndpointId;
2911
2939
  name?: string | null | undefined;
2912
2940
  url?: string | null | undefined;
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;
2941
+ eventTypes?: Array<"message.sent" | "message.delivered" | "message.read" | "message.failed" | "message.bounced" | "message.complained" | "message.received" | "message.opened" | "message.clicked" | "contact.created" | "contact.updated" | "contact.deleted" | "contact.subscribed" | "contact.unsubscribed" | "contact.resubscribed" | "contact.consent_changed" | "conversation.created" | "conversation.updated" | "conversation.archived" | "webhook.created" | "webhook.updated" | "webhook.deleted" | "webhook.test" | "domain.updated" | "domain.warming.updated" | "email.sending.paused" | "email.sending.resumed" | "template.registration.updated" | "flow.registration.updated" | "whatsapp.number.connected" | "mailbox.message.received" | "mailbox.message.sent" | "mailbox.action.pending_approval" | "mailbox.action.resolved" | "mailbox.message.quarantined" | "mailbox.message.released" | "mailbox.message.discarded" | "mailbox.message.delivered" | "mailbox.message.read" | "mailbox.message.failed" | "journey.webhook"> | null | undefined;
2914
2942
  channels?: Array<"sms" | "whatsapp" | "email"> | null | undefined;
2915
2943
  mailboxIds?: [MailboxId, ...Array<MailboxId>] | null | undefined;
2916
2944
  namespaceId?: NamespaceId | null | undefined;
@@ -3076,11 +3104,12 @@ export declare class ApiKeys {
3076
3104
  /**
3077
3105
  * List API keys
3078
3106
  *
3079
- * Returns the organization's API keys, newest first, filterable by status and a search term matched against name and description. Pass `nextCursor` back as `cursor` for the next page; it is null on the last page.
3107
+ * Returns the organization's API keys, newest first, filterable by namespace (`namespaceId`), status and a search term matched against name and description. Pass `nextCursor` back as `cursor` for the next page; it is null on the last page.
3080
3108
  */
3081
3109
  static list<ThrowOnError extends boolean = false>(parameters?: {
3082
3110
  limit?: number | null | undefined;
3083
3111
  cursor?: string | undefined;
3112
+ namespaceId?: NamespaceId | undefined;
3084
3113
  status?: "active" | "revoked" | undefined;
3085
3114
  search?: string | undefined;
3086
3115
  }, options?: Options<never, ThrowOnError>): RequestResult<ApiKeysListResponses, ApiKeysListErrors, ThrowOnError>;
@@ -3112,7 +3141,6 @@ export declare class ApiKeys {
3112
3141
  id: ApiKeyId;
3113
3142
  name?: string | null | undefined;
3114
3143
  description?: string | null | undefined;
3115
- mailboxes?: ApiKeyMailboxAccessUpdate | null | undefined;
3116
3144
  }, options?: Options<never, ThrowOnError>): RequestResult<ApiKeysUpdateResponses, ApiKeysUpdateErrors, ThrowOnError>;
3117
3145
  /**
3118
3146
  * Revoke an API key
@@ -3184,18 +3212,19 @@ export declare class Mailboxes {
3184
3212
  /**
3185
3213
  * List mailboxes
3186
3214
  *
3187
- * Returns summaries of the mailboxes the caller can read, newest first, filterable by creation time (`after`, `before`). Pass `nextCursor` back as `cursor` for the next page; it is null on the last page. Read a mailbox's endpoints and metadata with `GET /v1/mailboxes/{id}`.
3215
+ * Returns summaries of the mailboxes the caller can read, newest first, filterable by namespace (`namespaceId`) and creation time (`after`, `before`). Pass `nextCursor` back as `cursor` for the next page; it is null on the last page. Read a mailbox's endpoints and metadata with `GET /v1/mailboxes/{id}`.
3188
3216
  */
3189
3217
  static list<ThrowOnError extends boolean = false>(parameters?: {
3190
3218
  limit?: number | null | undefined;
3191
3219
  cursor?: string | undefined;
3192
3220
  after?: string | undefined;
3193
3221
  before?: string | undefined;
3222
+ namespaceId?: NamespaceId | undefined;
3194
3223
  }, options?: Options<never, ThrowOnError>): RequestResult<MailboxesListResponses, MailboxesListErrors, ThrowOnError>;
3195
3224
  /**
3196
3225
  * Create a mailbox
3197
3226
  *
3198
- * Creates a mailbox with one endpoint and returns it with status 201; the caller gets an admin grant on it. An email endpoint's address must be under the organization's Samva-hosted mail domain or a verified domain with receiving enabled, and the mailbox sends from it. A phone endpoint's address is a number the organization connected on that channel, in E.164 form. The slug defaults to the address's local part, or a phone number's digits. Pass `slug` when that is taken or not a valid slug. The mailbox receives mail from now on; mail that arrived earlier is not added to it. Conflicts if the address or slug is already in use. Returns 402 when the organization is at its plan's mailbox allowance or at its mailbox storage allowance; incoming mail is still received past the storage allowance.
3227
+ * Creates a mailbox with one endpoint and returns it with status 201; the caller gets an admin grant on it. An email endpoint's address must be under the organization's Samva-hosted mail domain or a verified domain with receiving enabled, and the mailbox sends from it once its sendingStatus is ready. Hosted addresses return pending while sending setup completes. A phone endpoint's address is a number the organization connected on that channel, in E.164 form. The slug defaults to the address's local part, or a phone number's digits. Pass `slug` when that is taken or not a valid slug. The mailbox receives mail from now on; mail that arrived earlier is not added to it. Pass Idempotency-Key to retry safely: the same key and body return the original mailbox in its current state; a changed body returns 409. Conflicts if the address or slug is already in use. Returns 402 when the organization is at its plan's mailbox allowance or at its mailbox storage allowance; incoming mail is still received past the storage allowance.
3199
3228
  */
3200
3229
  static create<ThrowOnError extends boolean = false>(parameters: {
3201
3230
  namespaceId?: NamespaceId | null | undefined;
@@ -3280,7 +3309,7 @@ export declare class Mailboxes {
3280
3309
  /**
3281
3310
  * Get mailbox activity
3282
3311
  *
3283
- * Counts the actions proposed and events recorded on a mailbox between `after` and `before` (omit both for all time), and the sends waiting for approval now. List the actions and events themselves with `GET /v1/mailboxes/{id}/actions` and `GET /v1/mailboxes/{id}/events`.
3312
+ * Counts the actions proposed and events recorded on a mailbox between `after` and `before` (omit both for all time), and the actions waiting for approval now. List the actions and events themselves with `GET /v1/mailboxes/{id}/actions` and `GET /v1/mailboxes/{id}/events`.
3284
3313
  */
3285
3314
  static getAgentActivity<ThrowOnError extends boolean = false>(parameters: {
3286
3315
  id: MailboxId;
@@ -3290,7 +3319,7 @@ export declare class Mailboxes {
3290
3319
  /**
3291
3320
  * List mailbox grants
3292
3321
  *
3293
- * Returns who can use the mailbox, what each grant allows, and whether its sends wait for approval, newest first. Pass `nextCursor` back as `cursor` for the next page; it is null on the last page.
3322
+ * Returns who can use the mailbox, what each grant allows, newest first. Pass `nextCursor` back as `cursor` for the next page; it is null on the last page.
3294
3323
  */
3295
3324
  static listGrants<ThrowOnError extends boolean = false>(parameters: {
3296
3325
  id: MailboxId;
@@ -3306,7 +3335,6 @@ export declare class Mailboxes {
3306
3335
  id: MailboxId;
3307
3336
  userId: UserId;
3308
3337
  role: MailboxGrantRole;
3309
- sendMode?: MailboxSendMode | null | undefined;
3310
3338
  }, options?: Options<never, ThrowOnError>): RequestResult<MailboxesCreateGrantResponses, MailboxesCreateGrantErrors, ThrowOnError>;
3311
3339
  /**
3312
3340
  * Revoke a mailbox grant
@@ -3320,65 +3348,13 @@ export declare class Mailboxes {
3320
3348
  /**
3321
3349
  * Update a mailbox grant
3322
3350
  *
3323
- * Changes a member's role, send mode, or both on a mailbox and returns the updated grant. A field left out keeps its value; naming neither is a validation error. Taking admin from the last grant that can configure the mailbox conflicts, as revoking it does. The change applies to the member's next request on every surface.
3351
+ * Changes a member's role on a mailbox and returns the updated grant. A field left out keeps its value; naming neither is a validation error. Taking admin from the last grant that can configure the mailbox conflicts, as revoking it does. The change applies to the member's next request on every surface.
3324
3352
  */
3325
3353
  static updateGrant<ThrowOnError extends boolean = false>(parameters: {
3326
3354
  id: MailboxId;
3327
3355
  grantId: MailboxGrantId;
3328
3356
  role?: MailboxGrantRole | null | undefined;
3329
- sendMode?: MailboxSendMode | null | undefined;
3330
3357
  }, options?: Options<never, ThrowOnError>): RequestResult<MailboxesUpdateGrantResponses, MailboxesUpdateGrantErrors, ThrowOnError>;
3331
- /**
3332
- * List mailbox policies
3333
- *
3334
- * Returns every send policy on a mailbox, oldest first. A mailbox holds at most 20 policies, so the list is never paged. Each enabled policy holds (`requireApproval`) or refuses (`deny`) every send from the mailbox; `deny` wins when both apply.
3335
- */
3336
- static listPolicies<ThrowOnError extends boolean = false>(parameters: {
3337
- id: MailboxId;
3338
- }, options?: Options<never, ThrowOnError>): RequestResult<MailboxesListPoliciesResponses, MailboxesListPoliciesErrors, ThrowOnError>;
3339
- /**
3340
- * Create a mailbox policy
3341
- *
3342
- * Adds a send policy to a mailbox and returns it with status 201. It applies to every send proposed after it is created, whoever proposes it. A mailbox that already holds 20 policies conflicts.
3343
- */
3344
- static createPolicy<ThrowOnError extends boolean = false>(parameters: {
3345
- id: MailboxId;
3346
- name: string;
3347
- outcome: MailboxPolicyOutcomeKind;
3348
- reason?: string | null | undefined;
3349
- enabled?: boolean | null | undefined;
3350
- }, options?: Options<never, ThrowOnError>): RequestResult<MailboxesCreatePolicyResponses, MailboxesCreatePolicyErrors, ThrowOnError>;
3351
- /**
3352
- * Delete a mailbox policy
3353
- *
3354
- * Deletes a send policy. Sends it already holds stay held until a person approves or denies them.
3355
- */
3356
- static deletePolicy<ThrowOnError extends boolean = false>(parameters: {
3357
- id: MailboxId;
3358
- policyId: MailboxPolicyId;
3359
- }, options?: Options<never, ThrowOnError>): RequestResult<MailboxesDeletePolicyResponses, MailboxesDeletePolicyErrors, ThrowOnError>;
3360
- /**
3361
- * Get a mailbox policy
3362
- *
3363
- * Returns one send policy.
3364
- */
3365
- static getPolicy<ThrowOnError extends boolean = false>(parameters: {
3366
- id: MailboxId;
3367
- policyId: MailboxPolicyId;
3368
- }, options?: Options<never, ThrowOnError>): RequestResult<MailboxesGetPolicyResponses, MailboxesGetPolicyErrors, ThrowOnError>;
3369
- /**
3370
- * Update a mailbox policy
3371
- *
3372
- * Updates the fields you name and keeps the rest. Set `enabled` to `false` to stop a policy applying without deleting it.
3373
- */
3374
- static updatePolicy<ThrowOnError extends boolean = false>(parameters: {
3375
- id: MailboxId;
3376
- policyId: MailboxPolicyId;
3377
- name?: string | null | undefined;
3378
- outcome?: MailboxPolicyOutcomeKind | null | undefined;
3379
- reason?: string | null | undefined;
3380
- enabled?: boolean | null | undefined;
3381
- }, options?: Options<never, ThrowOnError>): RequestResult<MailboxesUpdatePolicyResponses, MailboxesUpdatePolicyErrors, ThrowOnError>;
3382
3358
  /**
3383
3359
  * List mailbox folders
3384
3360
  *
@@ -3429,7 +3405,7 @@ export declare class Mailboxes {
3429
3405
  /**
3430
3406
  * List mailbox decisions awaiting you
3431
3407
  *
3432
- * Returns held sends this caller can approve and quarantined messages this caller may release across their visible mailboxes. Counts cover all actionable items, independent of the current cursor page. Metadata only; isolated messages, self approvals, and decisions the credential cannot perform are excluded.
3408
+ * Returns held actions this caller can approve and quarantined messages this caller may release across their visible mailboxes. Counts cover all actionable items, independent of the current cursor page. Metadata only; isolated messages, self approvals, and decisions the credential cannot perform are excluded.
3433
3409
  */
3434
3410
  static getNeedsYou<ThrowOnError extends boolean = false>(parameters?: {
3435
3411
  limit?: number | null | undefined;
@@ -3450,7 +3426,7 @@ export declare class Mailboxes {
3450
3426
  /**
3451
3427
  * List threads across your mailboxes
3452
3428
  *
3453
- * Lists only threads in mailboxes the caller can read, newest activity first. Repeat mailboxId to narrow the scope; kind selects personal or shared mailboxes. conversation selects the threads of one conversation (the conversationId a thread reports), one per readable mailbox it reached. state=active excludes the caller's Done and shared closed threads; state=done selects the caller's Done plus closed shared threads, without duplicates. Other filters and cursor pagination match the per-mailbox list.
3429
+ * Lists only threads in mailboxes the caller can read. With `q`, semantic and keyword search returns the best-matching threads in relevance order, capped across cursor pages. Without `q`, threads use newest activity first. Repeat mailboxId to narrow the scope; kind selects personal or shared mailboxes. conversation selects the threads of one conversation (the conversationId a thread reports), one per readable mailbox it reached. state=active excludes the caller's Done and shared closed threads; state=done selects the caller's Done plus closed shared threads, without duplicates. Other filters and cursor pagination match the per-mailbox list.
3454
3430
  */
3455
3431
  static listOrganizationThreads<ThrowOnError extends boolean = false>(parameters?: {
3456
3432
  limit?: number | null | undefined;
@@ -3471,7 +3447,7 @@ export declare class Mailboxes {
3471
3447
  /**
3472
3448
  * List threads in a mailbox
3473
3449
  *
3474
- * Returns thread summaries, most recent activity first. `after` and `before` filter by last activity, so an agent polling for new mail passes the last time it looked. `q` is a full-text search over subjects, senders, and message text; `folder`, `label`, `unread`, and `starred` narrow the list. Pass `nextCursor` back as `cursor` for the next page; it is null on the last page. A thread that gains activity while you page moves ahead of the cursor, so a walk lists each thread at most once.
3450
+ * Returns thread summaries. With `q`, semantic and keyword search returns up to 100 best-matching threads in relevance order across cursor pages. It searches subjects, participants, message text including quoted history, and attachment filenames, not attachment contents. New mail can take a few seconds to become searchable. Other filters narrow the searchable set. Without `q`, threads use most recent activity first; `after` and `before` filter by last activity for polling. Pass `nextCursor` back as `cursor` for the next page; it is null on the last page. In a list without `q`, a thread that gains activity while you page moves ahead of the cursor, so a walk lists each thread at most once.
3475
3451
  */
3476
3452
  static listThreads<ThrowOnError extends boolean = false>(parameters: {
3477
3453
  id: MailboxId;
@@ -3775,7 +3751,7 @@ export declare class Mailboxes {
3775
3751
  /**
3776
3752
  * List mailbox actions
3777
3753
  *
3778
- * Returns the actions proposed on a mailbox, newest first, filterable by `threadId`, `state` (`approvalRequired` lists the sends waiting for a person), and creation time (`after`, `before`). Filters apply together within the mailbox. Pass `nextCursor` back as `cursor` for the next page; it is null on the last page.
3754
+ * Returns the actions proposed on a mailbox, newest first, filterable by `threadId`, `state` (`approvalRequired` lists the actions waiting for a person), and creation time (`after`, `before`). Filters apply together within the mailbox. Pass `nextCursor` back as `cursor` for the next page; it is null on the last page.
3779
3755
  */
3780
3756
  static listActions<ThrowOnError extends boolean = false>(parameters: {
3781
3757
  id: MailboxId;
@@ -3816,11 +3792,17 @@ export declare class Mailboxes {
3816
3792
  /**
3817
3793
  * Approve a mailbox action
3818
3794
  *
3819
- * Records approval of a send and returns 202 while it is pending. A send is queued for automatic retry within 15 minutes of approval; repeating approval does not extend this deadline. Accepted, completed, and notSent replays return 200. No expiry applies before approval. Only a person signed in or through OAuth may approve, and never the proposer. Non-send approvals execute synchronously and return 200 with their own execution states. The action's `resolution` names the approver; approving a held send publishes one `mailbox.action.resolved` event.
3795
+ * Records approval of a send and returns 202 while it is pending. A send is queued for automatic retry within 15 minutes of approval; repeating approval does not extend this deadline. Accepted, completed, and notSent replays return 200. No expiry applies before approval. Only a person signed in or through OAuth may approve, and never the proposer. Non-send approvals execute synchronously and return 200 with their own execution states. Set `always: true` to add an actor-specific rule allowing matching future actions, subject to policy floors and guards. Remembering an allowance for a hosted agent or API key requires an organization owner or admin. A hand-off cannot be always allowed. The action's `resolution` names the approver; approving a held send publishes one `mailbox.action.resolved` event.
3820
3796
  */
3821
3797
  static approveAction<ThrowOnError extends boolean = false>(parameters: {
3822
3798
  id: MailboxId;
3823
3799
  actionId: MailboxActionId;
3800
+ reviewRound: PolicyReviewRound;
3801
+ always?: boolean | null | undefined;
3802
+ edits?: {
3803
+ text?: string | null | undefined;
3804
+ html?: string | null | undefined;
3805
+ } | null | undefined;
3824
3806
  }, options?: Options<never, ThrowOnError>): RequestResult<MailboxesApproveActionResponses, MailboxesApproveActionErrors, ThrowOnError>;
3825
3807
  /**
3826
3808
  * Deny a mailbox action
@@ -3830,6 +3812,7 @@ export declare class Mailboxes {
3830
3812
  static denyAction<ThrowOnError extends boolean = false>(parameters: {
3831
3813
  id: MailboxId;
3832
3814
  actionId: MailboxActionId;
3815
+ reviewRound: PolicyReviewRound;
3833
3816
  reason: string;
3834
3817
  }, options?: Options<never, ThrowOnError>): RequestResult<MailboxesDenyActionResponses, MailboxesDenyActionErrors, ThrowOnError>;
3835
3818
  /**
@@ -3848,6 +3831,43 @@ export declare class Mailboxes {
3848
3831
  export declare class Mailboxes2 {
3849
3832
  static mailboxes: typeof Mailboxes;
3850
3833
  }
3834
+ export declare class Policies {
3835
+ /**
3836
+ * Clear decision rules
3837
+ *
3838
+ * Clears this scope's rules and instructions only when ifVersion matches, and returns the next version. The stored version is retained. Other scopes and subject defaults continue to apply.
3839
+ */
3840
+ static deletePolicy<ThrowOnError extends boolean = false>(parameters: {
3841
+ kind: "organization" | "mailbox" | "apiKey" | "agent";
3842
+ id: string;
3843
+ ifVersion: number;
3844
+ }, options?: Options<never, ThrowOnError>): RequestResult<PoliciesDeletePolicyResponses, PoliciesDeletePolicyErrors, ThrowOnError>;
3845
+ /**
3846
+ * Get decision rules
3847
+ *
3848
+ * Returns the rules and instructions for an organization, mailbox, API key, or agent in the current organization. An agent scope holds the rules added by approving its actions with `always`; they apply on top of the agent's published rules. An unset policy has version 0 and no rules or presets.
3849
+ */
3850
+ static getPolicy<ThrowOnError extends boolean = false>(parameters: {
3851
+ kind: "organization" | "mailbox" | "apiKey" | "agent";
3852
+ id: string;
3853
+ }, options?: Options<never, ThrowOnError>): RequestResult<PoliciesGetPolicyResponses, PoliciesGetPolicyErrors, ThrowOnError>;
3854
+ /**
3855
+ * Set decision rules
3856
+ *
3857
+ * Replaces this scope's rules and instructions only when ifVersion matches its current version. A stale version returns a conflict. More specific scopes replace defaults; atLeast floors remain binding. Identical rule matches in one scope are rejected.
3858
+ */
3859
+ static setPolicy<ThrowOnError extends boolean = false>(parameters: {
3860
+ kind: "organization" | "mailbox" | "apiKey" | "agent";
3861
+ id: string;
3862
+ presets: Array<string>;
3863
+ rules: Array<PolicyRule>;
3864
+ instructions?: string | null | undefined;
3865
+ ifVersion: PolicyVersion;
3866
+ }, options?: Options<never, ThrowOnError>): RequestResult<PoliciesSetPolicyResponses, PoliciesSetPolicyErrors, ThrowOnError>;
3867
+ }
3868
+ export declare class Policies2 {
3869
+ static policies: typeof Policies;
3870
+ }
3851
3871
  export declare class Namespaces {
3852
3872
  /**
3853
3873
  * List namespaces
@@ -3872,7 +3892,7 @@ export declare class Namespaces {
3872
3892
  /**
3873
3893
  * Delete a namespace
3874
3894
  *
3875
- * Deletes an empty namespace. A namespace that still holds anything conflicts, and the error counts what remains: mailboxes, API keys, webhook endpoints filtered to it, domains, senders, contacts, or template projects. Delete each, or return it to organization level with `DELETE /v1/namespaces/{id}/resources/{type}/{resourceId}`; mailboxes, keys, and webhook endpoints cannot move and are deleted. Messages keep the namespace they ran in.
3895
+ * Deletes an empty namespace. A namespace that still holds anything conflicts, and the error names and counts each resource kind that remains. Delete each, or return it to organization level with `DELETE /v1/namespaces/{id}/resources/{type}/{resourceId}`; mailboxes, keys, and webhook endpoints cannot move and are deleted. Messages keep the namespace they ran in.
3876
3896
  */
3877
3897
  static remove<ThrowOnError extends boolean = false>(parameters: {
3878
3898
  id: NamespaceId;
@@ -4006,7 +4026,7 @@ export declare class ExtensionInstallations {
4006
4026
  /**
4007
4027
  * Install an extension
4008
4028
  *
4009
- * Installs a published version with a scope, permissions, and a send mode, and returns it with status 201. The installation acts on your grants narrowed to these; a webhook installation's API key and webhook secret are returned once. Only a person can install, not an API key.
4029
+ * Installs a published version with a scope, permissions, and an action policy, and returns it with status 201. The installation acts on your grants narrowed to these; a webhook installation's API key and webhook secret are returned once. Only a person can install, not an API key.
4010
4030
  */
4011
4031
  static install<ThrowOnError extends boolean = false>(parameters: {
4012
4032
  extension: string;
@@ -4014,7 +4034,7 @@ export declare class ExtensionInstallations {
4014
4034
  mailboxIds?: Array<MailboxId> | null | undefined;
4015
4035
  namespaceId?: NamespaceId | null | undefined;
4016
4036
  permissions?: Array<"read" | "update" | "send" | "quarantine.read"> | null | undefined;
4017
- sendMode?: "send" | "approval" | null | undefined;
4037
+ policy?: PolicyConfiguration | null | undefined;
4018
4038
  webhookUrl?: string | null | undefined;
4019
4039
  }, options?: Options<never, ThrowOnError>): RequestResult<ExtensionInstallationsInstallResponses, ExtensionInstallationsInstallErrors, ThrowOnError>;
4020
4040
  /**
@@ -4028,7 +4048,7 @@ export declare class ExtensionInstallations {
4028
4048
  /**
4029
4049
  * Get an installation
4030
4050
  *
4031
- * Returns one installation with its permissions, scope, send mode, and webhook endpoint.
4051
+ * Returns one installation with its permissions, scope, action policy, and webhook endpoint.
4032
4052
  */
4033
4053
  static get<ThrowOnError extends boolean = false>(parameters: {
4034
4054
  id: ExtensionInstallationId;
@@ -4036,7 +4056,7 @@ export declare class ExtensionInstallations {
4036
4056
  /**
4037
4057
  * Upgrade or roll back an installation
4038
4058
  *
4039
- * Changes the pinned version in place. Omit version for the latest publication, or name a version string or id, including an older version to roll back. Preview with dryRun; changing requires acceptPermissions to list exactly the added permission: and event: grants. Only a person can upgrade. Credentials, owner, scope, send mode, and status stay attached to the installation.
4059
+ * Changes the pinned version in place. Omit version for the latest publication, or name a version string or id, including an older version to roll back. Preview with dryRun; changing requires acceptPermissions to list exactly the added permission: and event: grants. Only a person can upgrade. Credentials, owner, scope, policy, and status stay attached to the installation.
4040
4060
  */
4041
4061
  static upgrade<ThrowOnError extends boolean = false>(parameters: {
4042
4062
  id: ExtensionInstallationId;