samva 0.14.0 → 0.15.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 (41) hide show
  1. package/README.md +4 -0
  2. package/dist/client/sdk.gen.d.ts +26 -11
  3. package/dist/client/types.gen.d.ts +111 -25
  4. package/dist/{client-CZjhOKPM.js → client-CDg7zJs0.js} +70 -29
  5. package/dist/effect/analytics.js +1 -1
  6. package/dist/effect/api-keys.js +1 -1
  7. package/dist/effect/attachments.js +1 -1
  8. package/dist/effect/brands.js +2 -2
  9. package/dist/effect/campaigns.js +1 -1
  10. package/dist/effect/client.js +1 -1
  11. package/dist/effect/contact-groups.js +1 -1
  12. package/dist/effect/contacts.js +1 -1
  13. package/dist/effect/conversations.js +1 -1
  14. package/dist/effect/custom-fields.js +1 -1
  15. package/dist/effect/email.js +2 -2
  16. package/dist/effect/extension-installations.js +1 -1
  17. package/dist/effect/extensions.js +1 -1
  18. package/dist/effect/feedback.js +2 -2
  19. package/dist/effect/generated.d.ts +382 -100
  20. package/dist/effect/index.js +3 -3
  21. package/dist/effect/mailboxes.d.ts +73 -24
  22. package/dist/effect/mailboxes.js +2 -2
  23. package/dist/effect/media.js +1 -1
  24. package/dist/effect/messages.js +1 -1
  25. package/dist/effect/namespaces.js +1 -1
  26. package/dist/effect/operations.js +1 -1
  27. package/dist/effect/organizations.js +1 -1
  28. package/dist/effect/scheduled-messages.js +1 -1
  29. package/dist/effect/subscriptions.js +1 -1
  30. package/dist/effect/templates.js +2 -2
  31. package/dist/effect/unsubscribe-groups.js +1 -1
  32. package/dist/effect/webhooks.js +2 -2
  33. package/dist/index.js +2 -2
  34. package/dist/{inline-attachments-BrNnSMF2.js → inline-attachments-UxLeyytJ.js} +2 -2
  35. package/dist/{mailboxes-DT02zP7q.js → mailboxes-BH_JPmOE.js} +8 -4
  36. package/dist/{operation-g8nAzmIM.js → operation-BZ5Xov-x.js} +11 -3
  37. package/dist/promises/index.js +2 -2
  38. package/dist/promises/types.gen.d.ts +1 -1
  39. package/dist/{promises-BFRKhpSS.js → promises-Cd6Jamqk.js} +66 -12
  40. package/dist/service-map.d.ts +10 -0
  41. package/package.json +2 -2
package/README.md CHANGED
@@ -200,6 +200,10 @@ returned instruction, call `media.complete`, and pass the ready `mediaId` to `em
200
200
  `messages.send`. A message accepts at most 10 attachments totaling 25 MiB of raw bytes; the same
201
201
  budget covers inline base64 content and owned media references. Remote URL attachments are not.
202
202
 
203
+ Inline base64 `content` is capped at 4 MiB of raw bytes per request. When a send carries more,
204
+ `email.send` and `messages.send` upload the largest attachments through `media` first and send them
205
+ by `mediaId`; a failed upload throws `MediaUploadError` before the send request.
206
+
203
207
  Effect failures carry Samva's real tagged errors (`RateLimitedError`, `ValidationError`, `PaymentRequiredError`, …) directly in the error channel, so `Effect.catchTag("RateLimitedError", …)` works against any operation without enumerating status codes, and each error exposes its own fields (no wrapper `cause`). The SDK also exports category helpers such as `isRetryable`, `isTransient`, `catchAuthError`, and `catchTransient`. Success values decode to domain types: annotated absolute instants become `Date`, sensitive fields become `Redacted`, and unannotated wire timestamps remain strings.
204
208
 
205
209
  ### Default-on retry
@@ -1,5 +1,5 @@
1
1
  import { type Client, type ClientMeta, type Options as Options2, type RequestResult, type TDataShape } from "./client";
2
- import type { 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, CampaignsGetRunResponses, CampaignsListErrors, CampaignsListRecipientsErrors, CampaignsListRecipientsResponses, CampaignsListResponses, CampaignsListRunsErrors, CampaignsListRunsResponses, CampaignsPauseRunErrors, CampaignsPauseRunResponses, CampaignsResumeRunErrors, CampaignsResumeRunResponses, CampaignsScheduleRunErrors, CampaignsScheduleRunResponses, CampaignsUpdateErrors, CampaignsUpdateResponses, ContactGroupId, ContactGroupsAddMembersErrors, ContactGroupsAddMembersResponses, ContactGroupsCreateErrors, ContactGroupsCreateResponses, ContactGroupsEvaluateDynamicErrors, ContactGroupsEvaluateDynamicResponses, ContactGroupsGetByIdErrors, ContactGroupsGetByIdResponses, ContactGroupsGetMembersErrors, ContactGroupsGetMembersResponses, ContactGroupsListErrors, ContactGroupsListResponses, ContactGroupsPreviewErrors, ContactGroupsPreviewResponses, ContactGroupsRemoveErrors, ContactGroupsRemoveMembersErrors, ContactGroupsRemoveMembersResponses, ContactGroupsRemoveResponses, ContactGroupsUpdateErrors, ContactGroupsUpdateResponses, ContactId, ContactIdentityId, ContactIdentityInput, ContactLookup, ContactPreferences, ContactProfile, ContactProfileUpdate, ContactsAddIdentityErrors, ContactsAddIdentityResponses, ContactsAddTagsErrors, ContactsAddTagsResponses, ContactsBulkDeleteErrors, ContactsBulkDeleteResponses, ContactsBulkImportErrors, ContactsBulkImportResponses, ContactsBulkUpdateStatusErrors, ContactsBulkUpdateStatusResponses, ContactsBulkUpdateTagsErrors, ContactsBulkUpdateTagsResponses, ContactsCreateErrors, ContactsCreateResponses, ContactsExportErrors, ContactsExportResponses, ContactsFindErrors, ContactsFindOrCreateErrors, ContactsFindOrCreateResponses, ContactsFindResponses, ContactsGetActivityTimelineErrors, ContactsGetActivityTimelineResponses, ContactsGetEngagementErrors, ContactsGetEngagementResponses, ContactsGetErrors, ContactsGetGroupMembershipsErrors, ContactsGetGroupMembershipsResponses, ContactsGetResponses, ContactsListErrors, ContactsListResponses, ContactsRemoveErrors, ContactsRemoveIdentityErrors, ContactsRemoveIdentityResponses, ContactsRemoveResponses, ContactsRemoveTagsErrors, ContactsRemoveTagsResponses, ContactsUpdateErrors, ContactsUpdateResponses, ConversationContext, 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, CreateMailboxAddressPayload, Cursor, CustomFieldDefinitionId, CustomFieldsCreateErrors, CustomFieldsCreateResponses, CustomFieldsListErrors, CustomFieldsListResponses, CustomFieldsRemoveErrors, CustomFieldsRemoveResponses, CustomFieldsUpdateErrors, CustomFieldsUpdateResponses, DispatchSendMessagePayload, EmailAddBlockErrors, EmailAddBlockResponses, EmailAddDomainErrors, EmailAddDomainResponses, EmailAddSenderErrors, EmailAddSenderResponses, EmailAdvanceDomainVerificationErrors, EmailAdvanceDomainVerificationResponses, EmailAttachment, EmailBccRecipients, EmailBuildCustomTrackingDomainConnectApplyUrlErrors, EmailBuildCustomTrackingDomainConnectApplyUrlResponses, EmailBuildDomainConnectApplyUrlErrors, EmailBuildDomainConnectApplyUrlResponses, EmailCancelDomainWarmingBatchErrors, EmailCancelDomainWarmingBatchResponses, EmailCcRecipients, EmailCheckBlockedErrors, EmailCheckBlockedResponses, EmailCheckSenderVerificationErrors, EmailCheckSenderVerificationResponses, EmailClearDomainDefaultSenderErrors, EmailClearDomainDefaultSenderResponses, EmailCompleteCustomTrackingDomainConnectErrors, EmailCompleteCustomTrackingDomainConnectResponses, EmailCompleteDomainConnectErrors, EmailCompleteDomainConnectResponses, EmailCompleteDomainWarmingErrors, EmailCompleteDomainWarmingResponses, EmailContent, 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, EmailSetDomainDefaultSenderErrors, EmailSetDomainDefaultSenderResponses, EmailUpdateBlockErrors, EmailUpdateBlockResponses, EmailUpdateCatchAllConfigErrors, EmailUpdateCatchAllConfigResponses, EmailUpdateDomainConfigErrors, EmailUpdateDomainConfigResponses, EmailUpdateDomainWarmingPolicyErrors, EmailUpdateDomainWarmingPolicyResponses, EmailUpdateForwardingRuleErrors, EmailUpdateForwardingRuleResponses, EmailUpdateRecipientTrackingPreferenceErrors, EmailUpdateRecipientTrackingPreferenceResponses, EmailUpdateTrackingDefaultsErrors, EmailUpdateTrackingDefaultsResponses, 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, JsonObject, JsonValue, MailboxActionId, MailboxDraftId, MailboxesAddThreadLabelsErrors, MailboxesAddThreadLabelsResponses, MailboxesApproveActionErrors, MailboxesApproveActionResponses, MailboxesCancelActionErrors, MailboxesCancelActionResponses, MailboxesCopyMessageAttachmentErrors, MailboxesCopyMessageAttachmentResponses, MailboxesCreateDraftErrors, MailboxesCreateDraftResponses, MailboxesCreateErrors, MailboxesCreateGrantErrors, MailboxesCreateGrantResponses, MailboxesCreateLabelErrors, MailboxesCreateLabelResponses, MailboxesCreateNoteErrors, MailboxesCreateNoteResponses, MailboxesCreatePolicyErrors, MailboxesCreatePolicyResponses, MailboxesCreateResponses, MailboxesDeleteDraftErrors, MailboxesDeleteDraftResponses, MailboxesDeleteLabelErrors, MailboxesDeleteLabelResponses, MailboxesDeleteNoteErrors, MailboxesDeleteNoteResponses, MailboxesDeletePolicyErrors, MailboxesDeletePolicyResponses, MailboxesDenyActionErrors, MailboxesDenyActionResponses, MailboxesDiscardMessageErrors, MailboxesDiscardMessageResponses, MailboxesForwardErrors, MailboxesForwardResponses, MailboxesGetActionErrors, MailboxesGetActionResponses, MailboxesGetAgentActivityErrors, MailboxesGetAgentActivityResponses, MailboxesGetDraftErrors, MailboxesGetDraftResponses, MailboxesGetErrors, MailboxesGetMessageAttachmentErrors, MailboxesGetMessageAttachmentResponses, MailboxesGetMessageErrors, MailboxesGetMessageRawErrors, MailboxesGetMessageRawResponses, MailboxesGetMessageResponses, MailboxesGetPolicyErrors, MailboxesGetPolicyResponses, MailboxesGetResponses, MailboxesGetThreadContentErrors, MailboxesGetThreadContentResponses, MailboxesGetThreadErrors, MailboxesGetThreadResponses, MailboxesListActionsErrors, MailboxesListActionsResponses, MailboxesListDraftsErrors, MailboxesListDraftsResponses, MailboxesListErrors, MailboxesListEventsErrors, MailboxesListEventsResponses, MailboxesListFoldersErrors, MailboxesListFoldersResponses, MailboxesListGrantsErrors, MailboxesListGrantsResponses, MailboxesListLabelsErrors, MailboxesListLabelsResponses, MailboxesListPoliciesErrors, MailboxesListPoliciesResponses, MailboxesListQuarantineErrors, MailboxesListQuarantineResponses, MailboxesListResponses, MailboxesListThreadMessagesErrors, MailboxesListThreadMessagesResponses, MailboxesListThreadNotesErrors, MailboxesListThreadNotesResponses, MailboxesListThreadsErrors, MailboxesListThreadsResponses, MailboxesPauseErrors, MailboxesPauseResponses, MailboxesReleaseMessageErrors, MailboxesReleaseMessageResponses, MailboxesRemoveErrors, MailboxesRemoveResponses, MailboxesRemoveThreadLabelsErrors, MailboxesRemoveThreadLabelsResponses, MailboxesReplyAllErrors, MailboxesReplyAllResponses, MailboxesReplyErrors, MailboxesReplyResponses, MailboxesResumeErrors, MailboxesResumeResponses, MailboxesRetryActionErrors, MailboxesRetryActionResponses, MailboxesRevokeGrantErrors, MailboxesRevokeGrantResponses, MailboxesSendDraftErrors, MailboxesSendDraftResponses, MailboxesSendMessageErrors, MailboxesSendMessageResponses, MailboxesUpdateDraftErrors, MailboxesUpdateDraftResponses, MailboxesUpdateErrors, MailboxesUpdateGrantErrors, MailboxesUpdateGrantResponses, MailboxesUpdateLabelErrors, MailboxesUpdateLabelResponses, MailboxesUpdateNoteErrors, MailboxesUpdateNoteResponses, MailboxesUpdatePolicyErrors, MailboxesUpdatePolicyResponses, MailboxesUpdateResponses, MailboxesUpdateThreadErrors, MailboxesUpdateThreadResponses, MailboxGrantId, MailboxGrantRole, MailboxId, MailboxLabelId, MailboxMetadata, MailboxMetadataPatch, MailboxNoteId, MailboxPolicyId, MailboxPolicyOutcomeKind, MailboxSendMode, MailboxThreadFolder, MailboxThreadId, MailboxThreadPriority, MediaCompleteErrors, MediaCompleteResponses, MediaCreateErrors, MediaCreateResponses, MediaDownloadUrlErrors, MediaDownloadUrlResponses, MediaGetByIdErrors, MediaGetByIdResponses, MediaId, MediaRemoveErrors, MediaRemoveResponses, MessageId, MessageMetadata, MessagesGetContentErrors, MessagesGetContentResponses, MessagesGetEmailErrors, MessagesGetEmailResponses, MessagesGetErrors, MessagesGetEventsErrors, MessagesGetEventsResponses, MessagesGetResponses, MessagesGetStatusErrors, MessagesGetStatusResponses, MessagesListDeliveriesErrors, MessagesListDeliveriesResponses, MessagesListErrors, MessagesListResponses, MessagesRemoveErrors, MessagesRemoveResponses, MessagesSendErrors, MessagesSendResponses, MessagesValidateEmailErrors, MessagesValidateEmailResponses, NamespaceId, NamespaceMetadata, NamespacesCreateErrors, NamespacesCreateResponses, NamespacesGetErrors, NamespacesGetResponses, NamespacesListErrors, NamespacesListResponses, NamespacesRemoveErrors, NamespacesRemoveResponses, NamespacesUpdateErrors, NamespacesUpdateResponses, OperationId, OperationsGetErrors, OperationsGetResponses, OperationsListErrors, OperationsListResponses, OperationsRetryErrors, OperationsRetryResponses, OrganizationsCreateErrors, OrganizationsCreateResponses, OrganizationsDeleteErrors, OrganizationsDeleteResponses, OrganizationsGetErrors, OrganizationsGetProfileErrors, OrganizationsGetProfileResponses, OrganizationsGetResponses, OrganizationsGetTrustTierErrors, OrganizationsGetTrustTierResponses, OrganizationsGetUsageErrors, OrganizationsGetUsageResponses, OrganizationsUpdateErrors, OrganizationsUpdateResponses, RenderLocale, RenderTimeZone, ScheduledMessageId, ScheduledMessagesCancelErrors, ScheduledMessagesCancelResponses, ScheduledMessagesCreateErrors, ScheduledMessagesCreateResponses, ScheduledMessagesGetErrors, ScheduledMessagesGetResponses, ScheduledMessagesListErrors, ScheduledMessagesListResponses, ScheduledMessagesResumeErrors, ScheduledMessagesResumeResponses, SubscriptionsSubscribeErrors, SubscriptionsSubscribeResponses, SuppressionId, TemplateFamilyId, TemplateFromDefault, TemplateId, TemplateInputContractId, TemplateProjectId, TemplatePublicationId, TemplatesAddEntryErrors, TemplatesAddEntryResponses, TemplatesAttachFamilyMemberErrors, TemplatesAttachFamilyMemberResponses, TemplatesAttachWorkspaceResourceErrors, TemplatesAttachWorkspaceResourceResponses, TemplatesCheckWorkspaceErrors, TemplatesCheckWorkspaceResponses, TemplatesCreateErrors, TemplatesCreateFamilyErrors, TemplatesCreateFamilyFromTemplateErrors, TemplatesCreateFamilyFromTemplateResponses, TemplatesCreateFamilyResponses, 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, TrackingRecipientEmail, UnsubscribeAddEmailsErrors, UnsubscribeAddEmailsResponses, UnsubscribeCheckSubscriptionErrors, UnsubscribeCheckSubscriptionResponses, UnsubscribeCreateErrors, UnsubscribeCreateResponses, UnsubscribeId, UnsubscribeListErrors, UnsubscribeListMembersErrors, UnsubscribeListMembersResponses, UnsubscribeListResponses, UnsubscribeRemoveEmailsErrors, UnsubscribeRemoveEmailsResponses, UnsubscribeRemoveErrors, UnsubscribeRemoveResponses, UnsubscribeSetDefaultErrors, UnsubscribeSetDefaultResponses, UnsubscribeUpdateErrors, UnsubscribeUpdateResponses, UserId, VersionCursor, WebhookDeliveryId, WebhookEndpointId, WebhooksCreateErrors, WebhooksCreateResponses, WebhooksGetErrors, WebhooksGetLogsErrors, WebhooksGetLogsResponses, WebhooksGetResponses, WebhooksGetStatsErrors, WebhooksGetStatsResponses, WebhooksListErrors, WebhooksListResponses, WebhooksRegenerateSecretErrors, WebhooksRegenerateSecretResponses, WebhooksRemoveErrors, WebhooksRemoveResponses, WebhooksRetryDeliveryErrors, WebhooksRetryDeliveryResponses, WebhooksTestErrors, WebhooksTestResponses, WebhooksUpdateErrors, WebhooksUpdateResponses } from "./types.gen";
2
+ import type { 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, CampaignsGetRunResponses, CampaignsListErrors, CampaignsListRecipientsErrors, CampaignsListRecipientsResponses, CampaignsListResponses, CampaignsListRunsErrors, CampaignsListRunsResponses, CampaignsPauseRunErrors, CampaignsPauseRunResponses, CampaignsResumeRunErrors, CampaignsResumeRunResponses, CampaignsScheduleRunErrors, CampaignsScheduleRunResponses, CampaignsUpdateErrors, CampaignsUpdateResponses, ContactGroupId, ContactGroupsAddMembersErrors, ContactGroupsAddMembersResponses, ContactGroupsCreateErrors, ContactGroupsCreateResponses, ContactGroupsEvaluateDynamicErrors, ContactGroupsEvaluateDynamicResponses, ContactGroupsGetByIdErrors, ContactGroupsGetByIdResponses, ContactGroupsGetMembersErrors, ContactGroupsGetMembersResponses, ContactGroupsListErrors, ContactGroupsListResponses, ContactGroupsPreviewErrors, ContactGroupsPreviewResponses, ContactGroupsRemoveErrors, ContactGroupsRemoveMembersErrors, ContactGroupsRemoveMembersResponses, ContactGroupsRemoveResponses, ContactGroupsUpdateErrors, ContactGroupsUpdateResponses, ContactId, ContactIdentityId, ContactIdentityInput, ContactLookup, ContactPreferences, ContactProfile, ContactProfileUpdate, ContactsAddIdentityErrors, ContactsAddIdentityResponses, ContactsAddTagsErrors, ContactsAddTagsResponses, ContactsBulkDeleteErrors, ContactsBulkDeleteResponses, ContactsBulkImportErrors, ContactsBulkImportResponses, ContactsBulkUpdateStatusErrors, ContactsBulkUpdateStatusResponses, ContactsBulkUpdateTagsErrors, ContactsBulkUpdateTagsResponses, ContactsCreateErrors, ContactsCreateResponses, ContactsExportErrors, ContactsExportResponses, ContactsFindErrors, ContactsFindOrCreateErrors, ContactsFindOrCreateResponses, ContactsFindResponses, ContactsGetActivityTimelineErrors, ContactsGetActivityTimelineResponses, ContactsGetEngagementErrors, ContactsGetEngagementResponses, ContactsGetErrors, ContactsGetGroupMembershipsErrors, ContactsGetGroupMembershipsResponses, ContactsGetResponses, ContactsListErrors, ContactsListResponses, ContactsRemoveErrors, ContactsRemoveIdentityErrors, ContactsRemoveIdentityResponses, ContactsRemoveResponses, ContactsRemoveTagsErrors, ContactsRemoveTagsResponses, ContactsUpdateErrors, ContactsUpdateResponses, ConversationContext, 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, Cursor, CustomFieldDefinitionId, CustomFieldsCreateErrors, CustomFieldsCreateResponses, CustomFieldsListErrors, CustomFieldsListResponses, CustomFieldsRemoveErrors, CustomFieldsRemoveResponses, CustomFieldsUpdateErrors, CustomFieldsUpdateResponses, DispatchSendMessagePayload, EmailAddBlockErrors, EmailAddBlockResponses, EmailAddDomainErrors, EmailAddDomainResponses, EmailAddSenderErrors, EmailAddSenderResponses, EmailAdvanceDomainVerificationErrors, EmailAdvanceDomainVerificationResponses, EmailAttachment, EmailBccRecipients, EmailBuildCustomTrackingDomainConnectApplyUrlErrors, EmailBuildCustomTrackingDomainConnectApplyUrlResponses, EmailBuildDomainConnectApplyUrlErrors, EmailBuildDomainConnectApplyUrlResponses, EmailCancelDomainWarmingBatchErrors, EmailCancelDomainWarmingBatchResponses, EmailCcRecipients, EmailCheckBlockedErrors, EmailCheckBlockedResponses, EmailCheckSenderVerificationErrors, EmailCheckSenderVerificationResponses, EmailClearDomainDefaultSenderErrors, EmailClearDomainDefaultSenderResponses, EmailCompleteCustomTrackingDomainConnectErrors, EmailCompleteCustomTrackingDomainConnectResponses, EmailCompleteDomainConnectErrors, EmailCompleteDomainConnectResponses, EmailCompleteDomainWarmingErrors, EmailCompleteDomainWarmingResponses, EmailContent, 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, EmailSetDomainDefaultSenderErrors, EmailSetDomainDefaultSenderResponses, EmailUpdateBlockErrors, EmailUpdateBlockResponses, EmailUpdateCatchAllConfigErrors, EmailUpdateCatchAllConfigResponses, EmailUpdateDomainConfigErrors, EmailUpdateDomainConfigResponses, EmailUpdateDomainWarmingPolicyErrors, EmailUpdateDomainWarmingPolicyResponses, EmailUpdateForwardingRuleErrors, EmailUpdateForwardingRuleResponses, EmailUpdateRecipientTrackingPreferenceErrors, EmailUpdateRecipientTrackingPreferenceResponses, EmailUpdateTrackingDefaultsErrors, EmailUpdateTrackingDefaultsResponses, 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, JsonObject, JsonValue, MailboxActionId, MailboxAddressId, MailboxDraftId, MailboxesAddThreadLabelsErrors, MailboxesAddThreadLabelsResponses, MailboxesApproveActionErrors, MailboxesApproveActionResponses, MailboxesCancelActionErrors, MailboxesCancelActionResponses, MailboxesCopyMessageAttachmentErrors, MailboxesCopyMessageAttachmentResponses, MailboxesCreateAddressErrors, MailboxesCreateAddressResponses, MailboxesCreateDraftErrors, MailboxesCreateDraftResponses, MailboxesCreateErrors, MailboxesCreateGrantErrors, MailboxesCreateGrantResponses, MailboxesCreateLabelErrors, MailboxesCreateLabelResponses, MailboxesCreateNoteErrors, MailboxesCreateNoteResponses, MailboxesCreatePolicyErrors, MailboxesCreatePolicyResponses, MailboxesCreateResponses, MailboxesDeleteDraftErrors, MailboxesDeleteDraftResponses, MailboxesDeleteLabelErrors, MailboxesDeleteLabelResponses, MailboxesDeleteNoteErrors, MailboxesDeleteNoteResponses, MailboxesDeletePolicyErrors, MailboxesDeletePolicyResponses, MailboxesDenyActionErrors, MailboxesDenyActionResponses, MailboxesDiscardMessageErrors, MailboxesDiscardMessageResponses, MailboxesForwardErrors, MailboxesForwardResponses, MailboxesGetActionErrors, MailboxesGetActionResponses, MailboxesGetAgentActivityErrors, MailboxesGetAgentActivityResponses, MailboxesGetDraftErrors, MailboxesGetDraftResponses, MailboxesGetErrors, MailboxesGetMessageAttachmentErrors, MailboxesGetMessageAttachmentResponses, MailboxesGetMessageErrors, MailboxesGetMessageRawErrors, MailboxesGetMessageRawResponses, MailboxesGetMessageResponses, MailboxesGetPolicyErrors, MailboxesGetPolicyResponses, MailboxesGetResponses, MailboxesGetThreadContentErrors, MailboxesGetThreadContentResponses, MailboxesGetThreadErrors, MailboxesGetThreadResponses, MailboxesListActionsErrors, MailboxesListActionsResponses, MailboxesListDraftsErrors, MailboxesListDraftsResponses, MailboxesListErrors, MailboxesListEventsErrors, MailboxesListEventsResponses, MailboxesListFoldersErrors, MailboxesListFoldersResponses, MailboxesListGrantsErrors, MailboxesListGrantsResponses, MailboxesListLabelsErrors, MailboxesListLabelsResponses, MailboxesListPoliciesErrors, MailboxesListPoliciesResponses, MailboxesListQuarantineErrors, MailboxesListQuarantineResponses, MailboxesListResponses, MailboxesListThreadMessagesErrors, MailboxesListThreadMessagesResponses, MailboxesListThreadNotesErrors, MailboxesListThreadNotesResponses, MailboxesListThreadsErrors, MailboxesListThreadsResponses, MailboxesPauseErrors, MailboxesPauseResponses, MailboxesReleaseMessageErrors, MailboxesReleaseMessageResponses, MailboxesRemoveAddressErrors, MailboxesRemoveAddressResponses, MailboxesRemoveErrors, MailboxesRemoveResponses, MailboxesRemoveThreadLabelsErrors, MailboxesRemoveThreadLabelsResponses, MailboxesReplyAllErrors, MailboxesReplyAllResponses, MailboxesReplyErrors, MailboxesReplyResponses, MailboxesResumeErrors, MailboxesResumeResponses, MailboxesRetryActionErrors, MailboxesRetryActionResponses, MailboxesRevokeGrantErrors, MailboxesRevokeGrantResponses, MailboxesSendDraftErrors, MailboxesSendDraftResponses, MailboxesSendMessageErrors, MailboxesSendMessageResponses, MailboxesUpdateDraftErrors, MailboxesUpdateDraftResponses, MailboxesUpdateErrors, MailboxesUpdateGrantErrors, MailboxesUpdateGrantResponses, MailboxesUpdateLabelErrors, MailboxesUpdateLabelResponses, MailboxesUpdateNoteErrors, MailboxesUpdateNoteResponses, MailboxesUpdatePolicyErrors, MailboxesUpdatePolicyResponses, MailboxesUpdateResponses, MailboxesUpdateThreadErrors, MailboxesUpdateThreadResponses, MailboxGrantId, MailboxGrantRole, MailboxId, MailboxLabelId, MailboxMetadata, MailboxMetadataPatch, MailboxNoteId, MailboxPolicyId, MailboxPolicyOutcomeKind, MailboxSendMode, MailboxThreadFolder, MailboxThreadId, MailboxThreadPriority, MediaCompleteErrors, MediaCompleteResponses, MediaCreateErrors, MediaCreateResponses, MediaDownloadUrlErrors, MediaDownloadUrlResponses, MediaGetByIdErrors, MediaGetByIdResponses, MediaId, MediaRemoveErrors, MediaRemoveResponses, MessageId, MessageMetadata, MessagesGetContentErrors, MessagesGetContentResponses, MessagesGetEmailErrors, MessagesGetEmailResponses, MessagesGetErrors, MessagesGetEventsErrors, MessagesGetEventsResponses, MessagesGetResponses, MessagesGetStatusErrors, MessagesGetStatusResponses, MessagesListDeliveriesErrors, MessagesListDeliveriesResponses, MessagesListErrors, MessagesListResponses, MessagesRemoveErrors, MessagesRemoveResponses, MessagesSendErrors, MessagesSendResponses, MessagesValidateEmailErrors, MessagesValidateEmailResponses, NamespaceId, NamespaceMetadata, NamespacesCreateErrors, NamespacesCreateResponses, NamespacesGetErrors, NamespacesGetResponses, NamespacesListErrors, NamespacesListResponses, NamespacesRemoveErrors, NamespacesRemoveResponses, NamespacesUpdateErrors, NamespacesUpdateResponses, OperationId, OperationsGetErrors, OperationsGetResponses, OperationsListErrors, OperationsListResponses, OperationsRetryErrors, OperationsRetryResponses, OrganizationsCreateErrors, OrganizationsCreateResponses, OrganizationsDeleteErrors, OrganizationsDeleteResponses, OrganizationsGetErrors, OrganizationsGetProfileErrors, OrganizationsGetProfileResponses, OrganizationsGetResponses, OrganizationsGetTrustTierErrors, OrganizationsGetTrustTierResponses, OrganizationsGetUsageErrors, OrganizationsGetUsageResponses, OrganizationsUpdateErrors, OrganizationsUpdateResponses, RenderLocale, RenderTimeZone, ScheduledMessageId, ScheduledMessagesCancelErrors, ScheduledMessagesCancelResponses, ScheduledMessagesCreateErrors, ScheduledMessagesCreateResponses, ScheduledMessagesGetErrors, ScheduledMessagesGetResponses, ScheduledMessagesListErrors, ScheduledMessagesListResponses, ScheduledMessagesResumeErrors, ScheduledMessagesResumeResponses, SubscriptionsSubscribeErrors, SubscriptionsSubscribeResponses, SuppressionId, TemplateFamilyId, TemplateFromDefault, TemplateId, TemplateInputContractId, TemplateProjectId, TemplatePublicationId, TemplatesAddEntryErrors, TemplatesAddEntryResponses, TemplatesAttachFamilyMemberErrors, TemplatesAttachFamilyMemberResponses, TemplatesAttachWorkspaceResourceErrors, TemplatesAttachWorkspaceResourceResponses, TemplatesCheckWorkspaceErrors, TemplatesCheckWorkspaceResponses, TemplatesCreateErrors, TemplatesCreateFamilyErrors, TemplatesCreateFamilyFromTemplateErrors, TemplatesCreateFamilyFromTemplateResponses, TemplatesCreateFamilyResponses, 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, TrackingRecipientEmail, UnsubscribeAddEmailsErrors, UnsubscribeAddEmailsResponses, UnsubscribeCheckSubscriptionErrors, UnsubscribeCheckSubscriptionResponses, UnsubscribeCreateErrors, UnsubscribeCreateResponses, UnsubscribeId, UnsubscribeListErrors, UnsubscribeListMembersErrors, UnsubscribeListMembersResponses, UnsubscribeListResponses, UnsubscribeRemoveEmailsErrors, UnsubscribeRemoveEmailsResponses, UnsubscribeRemoveErrors, UnsubscribeRemoveResponses, UnsubscribeSetDefaultErrors, UnsubscribeSetDefaultResponses, UnsubscribeUpdateErrors, UnsubscribeUpdateResponses, UserId, VersionCursor, WebhookDeliveryId, WebhookEndpointId, WebhooksCreateErrors, WebhooksCreateResponses, WebhooksGetErrors, WebhooksGetLogsErrors, WebhooksGetLogsResponses, WebhooksGetResponses, WebhooksGetStatsErrors, WebhooksGetStatsResponses, WebhooksListErrors, WebhooksListResponses, WebhooksRegenerateSecretErrors, WebhooksRegenerateSecretResponses, WebhooksRemoveErrors, WebhooksRemoveResponses, WebhooksRetryDeliveryErrors, WebhooksRetryDeliveryResponses, WebhooksTestErrors, WebhooksTestResponses, WebhooksUpdateErrors, WebhooksUpdateResponses } 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
@@ -2478,17 +2478,13 @@ export declare class Mailboxes {
2478
2478
  /**
2479
2479
  * Create a mailbox
2480
2480
  *
2481
- * Creates a mailbox with its addresses and returns it with status 201; the caller gets an admin grant on it. Each address must be under the organization's Samva-hosted mail domain or a verified domain with receiving enabled. The mailbox receives mail from now on; mail that arrived earlier is not added to it. Conflicts if an 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.
2481
+ * Creates a mailbox with one address and returns it with status 201; the caller gets an admin grant on it. The address must be under the organization's Samva-hosted mail domain or a verified domain with receiving enabled, and the mailbox sends from it. The slug defaults to the address's local part. 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.
2482
2482
  */
2483
2483
  static create<ThrowOnError extends boolean = false>(parameters: {
2484
2484
  namespaceId?: NamespaceId | null | undefined;
2485
- displayName: string;
2486
- slug: string;
2487
- addresses: [CreateMailboxAddressPayload];
2488
- defaultFrom?: {
2489
- address: string;
2490
- displayName?: string | null | undefined;
2491
- } | null | undefined;
2485
+ address: string;
2486
+ name: string;
2487
+ slug?: string | null | undefined;
2492
2488
  metadata?: MailboxMetadata | null | undefined;
2493
2489
  }, options?: Options<never, ThrowOnError>): RequestResult<MailboxesCreateResponses, MailboxesCreateErrors, ThrowOnError>;
2494
2490
  /**
@@ -2514,13 +2510,32 @@ export declare class Mailboxes {
2514
2510
  */
2515
2511
  static update<ThrowOnError extends boolean = false>(parameters: {
2516
2512
  id: MailboxId;
2517
- displayName?: string | null | undefined;
2513
+ name?: string | null | undefined;
2518
2514
  metadata?: MailboxMetadataPatch | null | undefined;
2519
2515
  defaultFrom?: {
2520
2516
  address: string;
2521
2517
  displayName?: string | null | null | undefined;
2522
2518
  } | null | undefined;
2523
2519
  }, options?: Options<never, ThrowOnError>): RequestResult<MailboxesUpdateResponses, MailboxesUpdateErrors, ThrowOnError>;
2520
+ /**
2521
+ * Add an address to a mailbox
2522
+ *
2523
+ * Adds an address to a mailbox and returns the mailbox with status 201. The address follows the same rules as the address of a new mailbox: it must be under the organization's Samva-hosted mail domain or a verified domain with receiving enabled, and no mailbox may already hold it (409). Mail sent to it reaches the mailbox from now on; the mailbox keeps sending from its current default address until you change `defaultFrom`.
2524
+ */
2525
+ static createAddress<ThrowOnError extends boolean = false>(parameters: {
2526
+ id: MailboxId;
2527
+ address: string;
2528
+ displayName?: string | null | undefined;
2529
+ }, options?: Options<never, ThrowOnError>): RequestResult<MailboxesCreateAddressResponses, MailboxesCreateAddressErrors, ThrowOnError>;
2530
+ /**
2531
+ * Remove an address from a mailbox
2532
+ *
2533
+ * Removes an address from a mailbox and returns the mailbox. Mail sent to the address stops reaching the mailbox; its existing threads and messages stay. A mailbox keeps at least one address, so removing the last one is refused (422). When the removed address was the default `From`, the mailbox sends from its oldest remaining address, without a sender name of its own.
2534
+ */
2535
+ static removeAddress<ThrowOnError extends boolean = false>(parameters: {
2536
+ id: MailboxId;
2537
+ addressId: MailboxAddressId;
2538
+ }, options?: Options<never, ThrowOnError>): RequestResult<MailboxesRemoveAddressResponses, MailboxesRemoveAddressErrors, ThrowOnError>;
2524
2539
  /**
2525
2540
  * Pause a mailbox
2526
2541
  *
@@ -3082,7 +3097,7 @@ export declare class Mailboxes {
3082
3097
  /**
3083
3098
  * List mailbox events
3084
3099
  *
3085
- * Returns mailbox audit records, newest first, filterable by when they happened (`after`, `before`). Audit event types: `mailbox.created`, `address.attached`, `email.received`, `email.released`, `email.sent`, `thread.created`, `action.proposed`, `action.policy_decided`, `action.approval_requested`, `action.approval_resolved`, `action.accepted`, `action.executed`, `action.failed`. Thread and draft changes have no dedicated audit event types. Pass `nextCursor` back as `cursor` for the next page; it is null on the last page.
3100
+ * Returns mailbox audit records, newest first, filterable by when they happened (`after`, `before`). Audit event types: `mailbox.created`, `address.attached`, `address.detached`, `email.received`, `email.released`, `email.sent`, `thread.created`, `action.proposed`, `action.policy_decided`, `action.approval_requested`, `action.approval_resolved`, `action.accepted`, `action.executed`, `action.failed`. Thread and draft changes have no dedicated audit event types. Pass `nextCursor` back as `cursor` for the next page; it is null on the last page.
3086
3101
  */
3087
3102
  static listEvents<ThrowOnError extends boolean = false>(parameters: {
3088
3103
  id: MailboxId;
@@ -257,7 +257,7 @@ export type MailboxEventPage = {
257
257
  };
258
258
  export type MailboxEvent = {
259
259
  id: MailboxEventId;
260
- type: "mailbox.created" | "address.attached" | "email.received" | "email.released" | "email.sent" | "thread.created" | "action.proposed" | "action.policy_decided" | "action.approval_requested" | "action.approval_resolved" | "action.accepted" | "action.executed" | "action.failed";
260
+ type: "mailbox.created" | "address.attached" | "address.detached" | "email.received" | "email.released" | "email.sent" | "thread.created" | "action.proposed" | "action.policy_decided" | "action.approval_requested" | "action.approval_resolved" | "action.accepted" | "action.executed" | "action.failed";
261
261
  threadId: MailboxThreadId | null;
262
262
  actionId: MailboxActionId | null;
263
263
  actor: {
@@ -862,7 +862,7 @@ export type MailboxAgentActivity = {
862
862
  };
863
863
  events: {
864
864
  byType: Array<{
865
- type: "mailbox.created" | "address.attached" | "email.received" | "email.released" | "email.sent" | "thread.created" | "action.proposed" | "action.policy_decided" | "action.approval_requested" | "action.approval_resolved" | "action.accepted" | "action.executed" | "action.failed";
865
+ type: "mailbox.created" | "address.attached" | "address.detached" | "email.received" | "email.released" | "email.sent" | "thread.created" | "action.proposed" | "action.policy_decided" | "action.approval_requested" | "action.approval_resolved" | "action.accepted" | "action.executed" | "action.failed";
866
866
  count: number;
867
867
  }>;
868
868
  };
@@ -872,7 +872,7 @@ export type Mailbox = {
872
872
  id: MailboxId;
873
873
  namespaceId: NamespaceId | null;
874
874
  slug: string;
875
- displayName: string;
875
+ name: string;
876
876
  status: MailboxStatus;
877
877
  primaryAddress: string | null;
878
878
  createdAt: string;
@@ -898,8 +898,12 @@ export type MailboxMetadata = {
898
898
  [key: string]: string;
899
899
  };
900
900
  export type MailboxStatus = "active" | "paused";
901
- export type UpdateMailboxPayload = {
901
+ export type CreateMailboxAddressPayload = {
902
+ address: string;
902
903
  displayName?: string | null | undefined;
904
+ };
905
+ export type UpdateMailboxPayload = {
906
+ name?: string | null | undefined;
903
907
  metadata?: MailboxMetadataPatch | null | undefined;
904
908
  defaultFrom?: {
905
909
  address: string;
@@ -911,19 +915,10 @@ export type MailboxMetadataPatch = {
911
915
  };
912
916
  export type CreateMailboxPayload = {
913
917
  namespaceId?: NamespaceId | null | undefined;
914
- displayName: string;
915
- slug: string;
916
- addresses: [CreateMailboxAddressPayload, ...Array<CreateMailboxAddressPayload>];
917
- defaultFrom?: {
918
- address: string;
919
- displayName?: string | null | undefined;
920
- } | null | undefined;
921
- metadata?: MailboxMetadata | null | undefined;
922
- };
923
- export type CreateMailboxAddressPayload = {
924
918
  address: string;
925
- displayName?: string | null | undefined;
926
- domainId?: string | null | undefined;
919
+ name: string;
920
+ slug?: string | null | undefined;
921
+ metadata?: MailboxMetadata | null | undefined;
927
922
  };
928
923
  export type MailboxPage = {
929
924
  items: Array<MailboxSummary>;
@@ -933,7 +928,7 @@ export type MailboxSummary = {
933
928
  id: MailboxId;
934
929
  namespaceId: NamespaceId | null;
935
930
  slug: string;
936
- displayName: string;
931
+ name: string;
937
932
  status: MailboxStatus;
938
933
  primaryAddress: string | null;
939
934
  createdAt: string;
@@ -3242,6 +3237,9 @@ export type MessagesGetEmailResponses = {
3242
3237
  expiresAt: string;
3243
3238
  } | null;
3244
3239
  createdAt: string;
3240
+ /**
3241
+ * When Samva's receiving server accepted the email; null for outbound email. The sender's `Date` header plays no part and stays in the raw MIME.
3242
+ */
3245
3243
  receivedAt: string | null;
3246
3244
  processedAt: string | null;
3247
3245
  };
@@ -14960,13 +14958,9 @@ export type MailboxesListResponse = MailboxesListResponses[keyof MailboxesListRe
14960
14958
  export type MailboxesCreateData = {
14961
14959
  body: {
14962
14960
  namespaceId?: NamespaceId | null | undefined;
14963
- displayName: string;
14964
- slug: string;
14965
- addresses: [CreateMailboxAddressPayload, ...Array<CreateMailboxAddressPayload>];
14966
- defaultFrom?: {
14967
- address: string;
14968
- displayName?: string | null | undefined;
14969
- } | null | undefined;
14961
+ address: string;
14962
+ name: string;
14963
+ slug?: string | null | undefined;
14970
14964
  metadata?: MailboxMetadata | null | undefined;
14971
14965
  };
14972
14966
  path?: never;
@@ -15109,7 +15103,7 @@ export type MailboxesGetResponses = {
15109
15103
  export type MailboxesGetResponse = MailboxesGetResponses[keyof MailboxesGetResponses];
15110
15104
  export type MailboxesUpdateData = {
15111
15105
  body: {
15112
- displayName?: string | null | undefined;
15106
+ name?: string | null | undefined;
15113
15107
  metadata?: MailboxMetadataPatch | null | undefined;
15114
15108
  defaultFrom?: {
15115
15109
  address: string;
@@ -15156,6 +15150,98 @@ export type MailboxesUpdateResponses = {
15156
15150
  200: Mailbox;
15157
15151
  };
15158
15152
  export type MailboxesUpdateResponse = MailboxesUpdateResponses[keyof MailboxesUpdateResponses];
15153
+ export type MailboxesCreateAddressData = {
15154
+ body: {
15155
+ address: string;
15156
+ displayName?: string | null | undefined;
15157
+ };
15158
+ path: {
15159
+ id: MailboxId;
15160
+ };
15161
+ query?: never;
15162
+ url: "/v1/mailboxes/{id}/addresses";
15163
+ };
15164
+ export type MailboxesCreateAddressErrors = {
15165
+ /**
15166
+ * UnauthorizedError
15167
+ */
15168
+ 401: UnauthorizedError;
15169
+ /**
15170
+ * ForbiddenError
15171
+ */
15172
+ 403: ForbiddenError;
15173
+ /**
15174
+ * ResourceNotFoundError
15175
+ */
15176
+ 404: ResourceNotFoundError;
15177
+ /**
15178
+ * ConflictError
15179
+ */
15180
+ 409: ConflictError;
15181
+ /**
15182
+ * ValidationError
15183
+ */
15184
+ 422: ValidationError;
15185
+ /**
15186
+ * InternalError
15187
+ */
15188
+ 500: InternalError;
15189
+ /**
15190
+ * GatewayTimeoutError
15191
+ */
15192
+ 504: GatewayTimeoutError;
15193
+ };
15194
+ export type MailboxesCreateAddressError = MailboxesCreateAddressErrors[keyof MailboxesCreateAddressErrors];
15195
+ export type MailboxesCreateAddressResponses = {
15196
+ /**
15197
+ * Success
15198
+ */
15199
+ 201: Mailbox;
15200
+ };
15201
+ export type MailboxesCreateAddressResponse = MailboxesCreateAddressResponses[keyof MailboxesCreateAddressResponses];
15202
+ export type MailboxesRemoveAddressData = {
15203
+ body?: never;
15204
+ path: {
15205
+ id: MailboxId;
15206
+ addressId: MailboxAddressId;
15207
+ };
15208
+ query?: never;
15209
+ url: "/v1/mailboxes/{id}/addresses/{addressId}";
15210
+ };
15211
+ export type MailboxesRemoveAddressErrors = {
15212
+ /**
15213
+ * UnauthorizedError
15214
+ */
15215
+ 401: UnauthorizedError;
15216
+ /**
15217
+ * ForbiddenError
15218
+ */
15219
+ 403: ForbiddenError;
15220
+ /**
15221
+ * ResourceNotFoundError
15222
+ */
15223
+ 404: ResourceNotFoundError;
15224
+ /**
15225
+ * ValidationError
15226
+ */
15227
+ 422: ValidationError;
15228
+ /**
15229
+ * InternalError
15230
+ */
15231
+ 500: InternalError;
15232
+ /**
15233
+ * GatewayTimeoutError
15234
+ */
15235
+ 504: GatewayTimeoutError;
15236
+ };
15237
+ export type MailboxesRemoveAddressError = MailboxesRemoveAddressErrors[keyof MailboxesRemoveAddressErrors];
15238
+ export type MailboxesRemoveAddressResponses = {
15239
+ /**
15240
+ * Mailbox
15241
+ */
15242
+ 200: Mailbox;
15243
+ };
15244
+ export type MailboxesRemoveAddressResponse = MailboxesRemoveAddressResponses[keyof MailboxesRemoveAddressResponses];
15159
15245
  export type MailboxesPauseData = {
15160
15246
  body?: never;
15161
15247
  path: {
@@ -1,4 +1,4 @@
1
- import { i as uploadContentType, o as CLIENT_ATTRIBUTION_HEADER, s as clientAttribution, t as MediaUploadError } from "./inline-attachments-BrNnSMF2.js";
1
+ import { i as uploadContentType, o as CLIENT_ATTRIBUTION_HEADER, s as clientAttribution, t as MediaUploadError } from "./inline-attachments-UxLeyytJ.js";
2
2
  import { Context, Effect, Layer, Redacted, Schema, SchemaTransformation } from "effect";
3
3
  import { HttpApi, HttpApiClient, HttpApiEndpoint, HttpApiGroup, HttpApiMiddleware, HttpApiSchema, HttpApiSecurity, OpenApi } from "effect/http-api";
4
4
  import * as Schema$1 from "effect/Schema";
@@ -584,11 +584,6 @@ const FeedbackId = Schema$1.String.check(Schema$1.isPattern(/* @__PURE__ */ new
584
584
  identifier: "FeedbackId"
585
585
  })).pipe(Schema$1.brand("FeedbackId"));
586
586
  const MailboxStatus = Schema$1.Union([Schema$1.Literal("active"), Schema$1.Literal("paused")]).annotate({ identifier: "MailboxStatus" });
587
- const CreateMailboxAddressPayload = Schema$1.Struct({
588
- address: Schema$1.String,
589
- displayName: Schema$1.optionalKey(Schema$1.Union([Schema$1.String, Schema$1.Null])),
590
- domainId: Schema$1.optionalKey(Schema$1.Union([Schema$1.String, Schema$1.Null]))
591
- }).annotate({ identifier: "CreateMailboxAddressPayload" });
592
587
  const MailboxMetadata = Schema$1.Record(Schema$1.String, Schema$1.String.check(Schema$1.isMaxCodePoints(512).annotate({ expected: "a string with at most 512 code points" })).check(Schema$1.isMaxLength(512).annotate({ expected: "a value with a length of at most 512" }))).check(Schema$1.isPropertyNames(Schema$1.String.check(Schema$1.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema$1.isMaxCodePoints(64).annotate({ expected: "a string with at most 64 code points" }))).annotate({
593
588
  expected: "an object with property names matching the schema",
594
589
  identifier: "MailboxMetadata"
@@ -760,6 +755,7 @@ const MailboxAgentActivity = Schema$1.Struct({
760
755
  type: Schema$1.Union([
761
756
  Schema$1.Literal("mailbox.created"),
762
757
  Schema$1.Literal("address.attached"),
758
+ Schema$1.Literal("address.detached"),
763
759
  Schema$1.Literal("email.received"),
764
760
  Schema$1.Literal("email.released"),
765
761
  Schema$1.Literal("email.sent"),
@@ -1101,6 +1097,10 @@ Schema$1.Struct({
1101
1097
  dailyGrowthPercent: Schema$1.Finite.check(Schema$1.isInt().annotate({ expected: "an integer" })).check(Schema$1.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })).check(Schema$1.isLessThanOrEqualTo(1e4).annotate({ expected: "a value less than or equal to 10000" })),
1102
1098
  targetDailyRecipients: Schema$1.Finite.check(Schema$1.isInt().annotate({ expected: "an integer" })).check(Schema$1.isLessThanOrEqualTo(1e6).annotate({ expected: "a value less than or equal to 1000000" })).check(Schema$1.isGreaterThan(0).annotate({ expected: "a value greater than 0" }))
1103
1099
  }).annotate({ identifier: "CreateDomainWarmingPlanPayload" });
1100
+ Schema$1.Struct({
1101
+ address: Schema$1.String,
1102
+ displayName: Schema$1.optionalKey(Schema$1.Union([Schema$1.String, Schema$1.Null]))
1103
+ }).annotate({ identifier: "CreateMailboxAddressPayload" });
1104
1104
  Schema$1.Struct({
1105
1105
  slug: Schema$1.String,
1106
1106
  displayName: Schema$1.String,
@@ -2295,20 +2295,16 @@ const MailboxSummary = Schema$1.Struct({
2295
2295
  id: MailboxId,
2296
2296
  namespaceId: Schema$1.Union([NamespaceId, Schema$1.Null]),
2297
2297
  slug: Schema$1.String,
2298
- displayName: Schema$1.String,
2298
+ name: Schema$1.String,
2299
2299
  status: MailboxStatus,
2300
2300
  primaryAddress: Schema$1.Union([Schema$1.String, Schema$1.Null]),
2301
2301
  createdAt: Schema$1.String
2302
2302
  }).annotate({ identifier: "MailboxSummary" });
2303
2303
  Schema$1.Struct({
2304
2304
  namespaceId: Schema$1.optionalKey(Schema$1.Union([NamespaceId, Schema$1.Null])),
2305
- displayName: Schema$1.String,
2306
- slug: Schema$1.String,
2307
- addresses: Schema$1.TupleWithRest(Schema$1.Tuple([CreateMailboxAddressPayload]), [CreateMailboxAddressPayload]),
2308
- defaultFrom: Schema$1.optionalKey(Schema$1.Union([Schema$1.Struct({
2309
- address: Schema$1.String,
2310
- displayName: Schema$1.optionalKey(Schema$1.Union([Schema$1.String, Schema$1.Null]))
2311
- }), Schema$1.Null])),
2305
+ address: Schema$1.String,
2306
+ name: Schema$1.String,
2307
+ slug: Schema$1.optionalKey(Schema$1.Union([Schema$1.String, Schema$1.Null])),
2312
2308
  metadata: Schema$1.optionalKey(Schema$1.Union([MailboxMetadata, Schema$1.Null]))
2313
2309
  }).annotate({ identifier: "CreateMailboxPayload" });
2314
2310
  const MailboxAddress = Schema$1.Struct({
@@ -2319,7 +2315,7 @@ const MailboxAddress = Schema$1.Struct({
2319
2315
  displayName: Schema$1.Union([Schema$1.String, Schema$1.Null])
2320
2316
  }).annotate({ identifier: "MailboxAddress" });
2321
2317
  Schema$1.Struct({
2322
- displayName: Schema$1.optionalKey(Schema$1.Union([Schema$1.String.check(Schema$1.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })), Schema$1.Null])),
2318
+ name: Schema$1.optionalKey(Schema$1.Union([Schema$1.String.check(Schema$1.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })), Schema$1.Null])),
2323
2319
  metadata: Schema$1.optionalKey(Schema$1.Union([MailboxMetadataPatch, Schema$1.Null])),
2324
2320
  defaultFrom: Schema$1.optionalKey(Schema$1.Union([Schema$1.Struct({
2325
2321
  address: Schema$1.String,
@@ -2386,6 +2382,7 @@ const MailboxEvent = Schema$1.Struct({
2386
2382
  type: Schema$1.Union([
2387
2383
  Schema$1.Literal("mailbox.created"),
2388
2384
  Schema$1.Literal("address.attached"),
2385
+ Schema$1.Literal("address.detached"),
2389
2386
  Schema$1.Literal("email.received"),
2390
2387
  Schema$1.Literal("email.released"),
2391
2388
  Schema$1.Literal("email.sent"),
@@ -3546,7 +3543,7 @@ const Mailbox = Schema$1.Struct({
3546
3543
  id: MailboxId,
3547
3544
  namespaceId: Schema$1.Union([NamespaceId, Schema$1.Null]),
3548
3545
  slug: Schema$1.String,
3549
- displayName: Schema$1.String,
3546
+ name: Schema$1.String,
3550
3547
  status: MailboxStatus,
3551
3548
  primaryAddress: Schema$1.Union([Schema$1.String, Schema$1.Null]),
3552
3549
  createdAt: Schema$1.String,
@@ -6488,13 +6485,9 @@ const MailboxesList500 = InternalError;
6488
6485
  const MailboxesList504 = GatewayTimeoutError;
6489
6486
  const MailboxesCreateRequestJson = Schema$1.Struct({
6490
6487
  namespaceId: Schema$1.optionalKey(Schema$1.Union([NamespaceId, Schema$1.Null])),
6491
- displayName: Schema$1.String,
6492
- slug: Schema$1.String,
6493
- addresses: Schema$1.TupleWithRest(Schema$1.Tuple([CreateMailboxAddressPayload]), [CreateMailboxAddressPayload]),
6494
- defaultFrom: Schema$1.optionalKey(Schema$1.Union([Schema$1.Struct({
6495
- address: Schema$1.String,
6496
- displayName: Schema$1.optionalKey(Schema$1.Union([Schema$1.String, Schema$1.Null]))
6497
- }), Schema$1.Null])),
6488
+ address: Schema$1.String,
6489
+ name: Schema$1.String,
6490
+ slug: Schema$1.optionalKey(Schema$1.Union([Schema$1.String, Schema$1.Null])),
6498
6491
  metadata: Schema$1.optionalKey(Schema$1.Union([MailboxMetadata, Schema$1.Null]))
6499
6492
  });
6500
6493
  const MailboxesCreate201 = Mailbox;
@@ -6526,7 +6519,7 @@ const MailboxesRemove502 = BillingProviderError;
6526
6519
  const MailboxesRemove504 = GatewayTimeoutError;
6527
6520
  const MailboxesUpdatePathParams = Schema$1.Struct({ id: MailboxId });
6528
6521
  const MailboxesUpdateRequestJson = Schema$1.Struct({
6529
- displayName: Schema$1.optionalKey(Schema$1.Union([Schema$1.String.check(Schema$1.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })), Schema$1.Null])),
6522
+ name: Schema$1.optionalKey(Schema$1.Union([Schema$1.String.check(Schema$1.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })), Schema$1.Null])),
6530
6523
  metadata: Schema$1.optionalKey(Schema$1.Union([MailboxMetadataPatch, Schema$1.Null])),
6531
6524
  defaultFrom: Schema$1.optionalKey(Schema$1.Union([Schema$1.Struct({
6532
6525
  address: Schema$1.String,
@@ -6658,6 +6651,30 @@ const MailboxesRetryAction500 = InternalError;
6658
6651
  const MailboxesRetryAction502 = BillingProviderError;
6659
6652
  const MailboxesRetryAction503 = SenderNotReadyError;
6660
6653
  const MailboxesRetryAction504 = GatewayTimeoutError;
6654
+ const MailboxesCreateAddressPathParams = Schema$1.Struct({ id: MailboxId });
6655
+ const MailboxesCreateAddressRequestJson = Schema$1.Struct({
6656
+ address: Schema$1.String,
6657
+ displayName: Schema$1.optionalKey(Schema$1.Union([Schema$1.String, Schema$1.Null]))
6658
+ });
6659
+ const MailboxesCreateAddress201 = Mailbox;
6660
+ const MailboxesCreateAddress401 = UnauthorizedError;
6661
+ const MailboxesCreateAddress403 = ForbiddenError;
6662
+ const MailboxesCreateAddress404 = ResourceNotFoundError;
6663
+ const MailboxesCreateAddress409 = ConflictError;
6664
+ const MailboxesCreateAddress422 = ValidationError;
6665
+ const MailboxesCreateAddress500 = InternalError;
6666
+ const MailboxesCreateAddress504 = GatewayTimeoutError;
6667
+ const MailboxesRemoveAddressPathParams = Schema$1.Struct({
6668
+ id: MailboxId,
6669
+ addressId: MailboxAddressId
6670
+ });
6671
+ const MailboxesRemoveAddress200 = Mailbox;
6672
+ const MailboxesRemoveAddress401 = UnauthorizedError;
6673
+ const MailboxesRemoveAddress403 = ForbiddenError;
6674
+ const MailboxesRemoveAddress404 = ResourceNotFoundError;
6675
+ const MailboxesRemoveAddress422 = ValidationError;
6676
+ const MailboxesRemoveAddress500 = InternalError;
6677
+ const MailboxesRemoveAddress504 = GatewayTimeoutError;
6661
6678
  const MailboxesGetAgentActivityPathParams = Schema$1.Struct({ id: MailboxId });
6662
6679
  const MailboxesGetAgentActivityQuery = Schema$1.Struct({
6663
6680
  after: Schema$1.optionalKey(Schema$1.Union([Schema$1.String, Schema$1.Null])),
@@ -7637,7 +7654,7 @@ const MessagesGetEmail200 = Schema$1.Struct({
7637
7654
  expiresAt: Schema$1.String
7638
7655
  }), Schema$1.Null]),
7639
7656
  createdAt: Schema$1.String,
7640
- receivedAt: Schema$1.Union([Schema$1.String, Schema$1.Null]),
7657
+ receivedAt: Schema$1.Union([Schema$1.String, Schema$1.Null]).annotate({ description: "When Samva's receiving server accepted the email; null for outbound email. The sender's `Date` header plays no part and stays in the raw MIME." }),
7641
7658
  processedAt: Schema$1.Union([Schema$1.String, Schema$1.Null])
7642
7659
  });
7643
7660
  const MessagesGetEmail401 = UnauthorizedError;
@@ -11890,7 +11907,7 @@ var MailboxesGroup = class extends HttpApiGroup.make("Mailboxes").add(HttpApiEnd
11890
11907
  MailboxesCreate502.pipe(HttpApiSchema.status(502)),
11891
11908
  MailboxesCreate504.pipe(HttpApiSchema.status(504))
11892
11909
  ]
11893
- }).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "mailboxes.create").annotate(OpenApi.Summary, "Create a mailbox").annotate(OpenApi.Description, "Creates a mailbox with its addresses and returns it with status 201; the caller gets an admin grant on it. Each address must be under the organization's Samva-hosted mail domain or a verified domain with receiving enabled. The mailbox receives mail from now on; mail that arrived earlier is not added to it. Conflicts if an 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."), HttpApiEndpoint.get("mailboxesGet", "/v1/mailboxes/:id", {
11910
+ }).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "mailboxes.create").annotate(OpenApi.Summary, "Create a mailbox").annotate(OpenApi.Description, "Creates a mailbox with one address and returns it with status 201; the caller gets an admin grant on it. The address must be under the organization's Samva-hosted mail domain or a verified domain with receiving enabled, and the mailbox sends from it. The slug defaults to the address's local part. 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."), HttpApiEndpoint.get("mailboxesGet", "/v1/mailboxes/:id", {
11894
11911
  params: MailboxesGetPathParams,
11895
11912
  success: MailboxesGet200,
11896
11913
  error: [
@@ -12009,7 +12026,31 @@ var MailboxesGroup = class extends HttpApiGroup.make("Mailboxes").add(HttpApiEnd
12009
12026
  MailboxesRetryAction503.pipe(HttpApiSchema.status(503)),
12010
12027
  MailboxesRetryAction504.pipe(HttpApiSchema.status(504))
12011
12028
  ]
12012
- }).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "mailboxes.retryAction").annotate(OpenApi.Summary, "Resume a mailbox send").annotate(OpenApi.Description, "Resumes the same action only after its previous execution is confirmed ended and safe continuation is possible. Only an authorized person who proposed the send or can approve actions may retry. Automatic waits need no manual Retry. This does not grant new approval, reset the original deadline, replace the message identity, or resubmit an accepted or uncertain send."), HttpApiEndpoint.get("mailboxesGetAgentActivity", "/v1/mailboxes/:id/agent-activity", {
12029
+ }).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "mailboxes.retryAction").annotate(OpenApi.Summary, "Resume a mailbox send").annotate(OpenApi.Description, "Resumes the same action only after its previous execution is confirmed ended and safe continuation is possible. Only an authorized person who proposed the send or can approve actions may retry. Automatic waits need no manual Retry. This does not grant new approval, reset the original deadline, replace the message identity, or resubmit an accepted or uncertain send."), HttpApiEndpoint.post("mailboxesCreateAddress", "/v1/mailboxes/:id/addresses", {
12030
+ params: MailboxesCreateAddressPathParams,
12031
+ payload: MailboxesCreateAddressRequestJson,
12032
+ success: MailboxesCreateAddress201.pipe(HttpApiSchema.status(201)),
12033
+ error: [
12034
+ MailboxesCreateAddress401.pipe(HttpApiSchema.status(401)),
12035
+ MailboxesCreateAddress403.pipe(HttpApiSchema.status(403)),
12036
+ MailboxesCreateAddress404.pipe(HttpApiSchema.status(404)),
12037
+ MailboxesCreateAddress409.pipe(HttpApiSchema.status(409)),
12038
+ MailboxesCreateAddress422.pipe(HttpApiSchema.status(422)),
12039
+ MailboxesCreateAddress500,
12040
+ MailboxesCreateAddress504.pipe(HttpApiSchema.status(504))
12041
+ ]
12042
+ }).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "mailboxes.createAddress").annotate(OpenApi.Summary, "Add an address to a mailbox").annotate(OpenApi.Description, "Adds an address to a mailbox and returns the mailbox with status 201. The address follows the same rules as the address of a new mailbox: it must be under the organization's Samva-hosted mail domain or a verified domain with receiving enabled, and no mailbox may already hold it (409). Mail sent to it reaches the mailbox from now on; the mailbox keeps sending from its current default address until you change `defaultFrom`."), HttpApiEndpoint.delete("mailboxesRemoveAddress", "/v1/mailboxes/:id/addresses/:addressId", {
12043
+ params: MailboxesRemoveAddressPathParams,
12044
+ success: MailboxesRemoveAddress200,
12045
+ error: [
12046
+ MailboxesRemoveAddress401.pipe(HttpApiSchema.status(401)),
12047
+ MailboxesRemoveAddress403.pipe(HttpApiSchema.status(403)),
12048
+ MailboxesRemoveAddress404.pipe(HttpApiSchema.status(404)),
12049
+ MailboxesRemoveAddress422.pipe(HttpApiSchema.status(422)),
12050
+ MailboxesRemoveAddress500,
12051
+ MailboxesRemoveAddress504.pipe(HttpApiSchema.status(504))
12052
+ ]
12053
+ }).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "mailboxes.removeAddress").annotate(OpenApi.Summary, "Remove an address from a mailbox").annotate(OpenApi.Description, "Removes an address from a mailbox and returns the mailbox. Mail sent to the address stops reaching the mailbox; its existing threads and messages stay. A mailbox keeps at least one address, so removing the last one is refused (422). When the removed address was the default `From`, the mailbox sends from its oldest remaining address, without a sender name of its own."), HttpApiEndpoint.get("mailboxesGetAgentActivity", "/v1/mailboxes/:id/agent-activity", {
12013
12054
  params: MailboxesGetAgentActivityPathParams,
12014
12055
  query: MailboxesGetAgentActivityQuery,
12015
12056
  success: MailboxesGetAgentActivity200,
@@ -12109,7 +12150,7 @@ var MailboxesGroup = class extends HttpApiGroup.make("Mailboxes").add(HttpApiEnd
12109
12150
  MailboxesListEvents500,
12110
12151
  MailboxesListEvents504.pipe(HttpApiSchema.status(504))
12111
12152
  ]
12112
- }).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "mailboxes.listEvents").annotate(OpenApi.Summary, "List mailbox events").annotate(OpenApi.Description, "Returns mailbox audit records, newest first, filterable by when they happened (`after`, `before`). Audit event types: `mailbox.created`, `address.attached`, `email.received`, `email.released`, `email.sent`, `thread.created`, `action.proposed`, `action.policy_decided`, `action.approval_requested`, `action.approval_resolved`, `action.accepted`, `action.executed`, `action.failed`. Thread and draft changes have no dedicated audit event types. Pass `nextCursor` back as `cursor` for the next page; it is null on the last page."), HttpApiEndpoint.get("mailboxesListFolders", "/v1/mailboxes/:id/folders", {
12153
+ }).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "mailboxes.listEvents").annotate(OpenApi.Summary, "List mailbox events").annotate(OpenApi.Description, "Returns mailbox audit records, newest first, filterable by when they happened (`after`, `before`). Audit event types: `mailbox.created`, `address.attached`, `address.detached`, `email.received`, `email.released`, `email.sent`, `thread.created`, `action.proposed`, `action.policy_decided`, `action.approval_requested`, `action.approval_resolved`, `action.accepted`, `action.executed`, `action.failed`. Thread and draft changes have no dedicated audit event types. Pass `nextCursor` back as `cursor` for the next page; it is null on the last page."), HttpApiEndpoint.get("mailboxesListFolders", "/v1/mailboxes/:id/folders", {
12113
12154
  params: MailboxesListFoldersPathParams,
12114
12155
  success: MailboxesListFolders200,
12115
12156
  error: [
@@ -13682,4 +13723,4 @@ const raw = Effect.map(Service, (client) => client.raw);
13682
13723
  //#endregion
13683
13724
  export { TrackingRecipientEmail as A, PaymentRequiredError as C, SendFeedback as D, SamvaApi as E, ValidationError as F, UpdateBrand as M, UpdateTemplatePayload as N, SenderNotReadyError as O, UpdateWebhookPayload as P, OnboardingReviewRequiredError as S, ResourceNotFoundError as T, ForbiddenError as _, AnalyticsQueryError as a, MailboxSendConflictError as b, CampaignFooterRequiredError as c, CreateTemplatePayload as d, CreateWebhookPayload as f, FlagDisabledError as g, ExternalServiceError as h, raw as i, UnauthorizedError as j, TestWebhookPayload as k, ConflictError as l, EmailChannelError as m, layer as n, BillingProviderError as o, DeliveryUnavailableError as p, layerFetch as r, BrandAddressRequiredError as s, Service as t, CreateBrand as u, GatewayTimeoutError as v, RateLimitedError as w, MailboxSendRefusedError as x, InternalError as y };
13684
13725
 
13685
- //# sourceMappingURL=client-CZjhOKPM.js.map
13726
+ //# sourceMappingURL=client-CDg7zJs0.js.map
@@ -1,5 +1,5 @@
1
1
  import { t as __exportAll } from "../rolldown-runtime-D7D4PA-g.js";
2
- import { n as make } from "../operation-g8nAzmIM.js";
2
+ import { n as make } from "../operation-BZ5Xov-x.js";
3
3
  //#region src/effect/analytics.ts
4
4
  var analytics_exports = /* @__PURE__ */ __exportAll({
5
5
  exportData: () => exportData,
@@ -1,5 +1,5 @@
1
1
  import { t as __exportAll } from "../rolldown-runtime-D7D4PA-g.js";
2
- import { n as make } from "../operation-g8nAzmIM.js";
2
+ import { n as make } from "../operation-BZ5Xov-x.js";
3
3
  //#region src/effect/api-keys.ts
4
4
  var api_keys_exports = /* @__PURE__ */ __exportAll({
5
5
  create: () => create,
@@ -1,5 +1,5 @@
1
1
  import { t as __exportAll } from "../rolldown-runtime-D7D4PA-g.js";
2
- import { n as make } from "../operation-g8nAzmIM.js";
2
+ import { n as make } from "../operation-BZ5Xov-x.js";
3
3
  //#region src/effect/attachments.ts
4
4
  var attachments_exports = /* @__PURE__ */ __exportAll({
5
5
  downloadUrl: () => downloadUrl,
@@ -1,6 +1,6 @@
1
1
  import { t as __exportAll } from "../rolldown-runtime-D7D4PA-g.js";
2
- import { n as make } from "../operation-g8nAzmIM.js";
3
- import { M as UpdateBrand, u as CreateBrand } from "../client-CZjhOKPM.js";
2
+ import { n as make } from "../operation-BZ5Xov-x.js";
3
+ import { M as UpdateBrand, u as CreateBrand } from "../client-CDg7zJs0.js";
4
4
  //#region src/effect/brands.ts
5
5
  var brands_exports = /* @__PURE__ */ __exportAll({
6
6
  CreatePayload: () => CreateBrand,
@@ -1,5 +1,5 @@
1
1
  import { t as __exportAll } from "../rolldown-runtime-D7D4PA-g.js";
2
- import { n as make } from "../operation-g8nAzmIM.js";
2
+ import { n as make } from "../operation-BZ5Xov-x.js";
3
3
  //#region src/effect/campaigns.ts
4
4
  var campaigns_exports = /* @__PURE__ */ __exportAll({
5
5
  archive: () => archive,