samva 0.42.0 → 0.43.1
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.
- package/README.md +9 -9
- package/dist/client/sdk.gen.d.ts +52 -9
- package/dist/client/sdk.gen.js +160 -8
- package/dist/client/types.gen.d.ts +285 -6
- package/dist/effect/generated/api-keys.js +5 -5
- package/dist/effect/generated/campaigns.js +1 -1
- package/dist/effect/generated/email.d.ts +41 -1
- package/dist/effect/generated/email.js +5 -1
- package/dist/effect/generated/mailboxes.d.ts +194 -148
- package/dist/effect/generated/mailboxes.js +6 -2
- package/dist/effect/generated/messages.js +1 -1
- package/dist/effect/generated/namespaces.d.ts +536 -1
- package/dist/effect/generated/namespaces.js +112 -3
- package/dist/effect/generated/organizations.d.ts +251 -2
- package/dist/effect/generated/organizations.js +58 -3
- package/dist/effect/generated/scheduled-messages.js +1 -1
- package/dist/effect/generated/shared.d.ts +26 -10
- package/dist/effect/generated/shared.js +11 -1
- package/dist/effect/generated-metadata.d.ts +24 -0
- package/dist/effect/generated-metadata.js +4 -0
- package/dist/effect/mailboxes.d.ts +22 -16
- package/dist/effect/namespaces.d.ts +55 -0
- package/dist/effect/namespaces.js +7 -1
- package/dist/effect/organizations.d.ts +9 -1
- package/dist/effect/organizations.js +3 -1
- package/dist/mailbox/types.d.ts +1 -1
- package/dist/package.js +1 -1
- package/dist/promises/errors.gen.js +4 -0
- package/dist/promises/types.gen.d.ts +1 -1
- package/dist/service-map.d.ts +20 -1
- package/dist/service-map.js +8 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# samva
|
|
2
2
|
|
|
3
|
-
Samva is
|
|
3
|
+
Samva is email and WhatsApp for AI agents, and the API developers build on. An agent gets its own address and WhatsApp number, and the same platform covers transactional and campaign sending, inbound replies threaded into conversations, programmable mailboxes, and signed webhooks.
|
|
4
4
|
|
|
5
5
|
TypeScript SDK for Samva's public customer API.
|
|
6
6
|
|
|
@@ -144,7 +144,7 @@ const samva = createClient({
|
|
|
144
144
|
```
|
|
145
145
|
|
|
146
146
|
- `X-API-Key` is configured automatically from `apiKey`.
|
|
147
|
-
- Organization context is derived from the API key
|
|
147
|
+
- Organization context is derived from the API key, so do not send `x-org-slug`.
|
|
148
148
|
|
|
149
149
|
### OAuth bearer (interactive, multi-org)
|
|
150
150
|
|
|
@@ -256,9 +256,9 @@ error with `Effect.catchTag` does not require importing its constructor.
|
|
|
256
256
|
|
|
257
257
|
Both clients retry safe operations by default:
|
|
258
258
|
|
|
259
|
-
- **What retries
|
|
260
|
-
- **When
|
|
261
|
-
- **How
|
|
259
|
+
- **What retries**: reads (`GET`/`HEAD`) and requests covered by `x-idempotent` in the OpenAPI document and its optional `x-idempotent-when` condition. Both clients attach one key per logical call and reuse it across retries. Other mutations never retry.
|
|
260
|
+
- **When**: only for `isRetryable` failures: throttling (`429`), transient server errors (including a transient `BillingProviderError`), and request-transport failures. `ValidationError`, `ConflictError`, `NotFound`, auth, and billing-limit `PaymentRequiredError` failures never retry.
|
|
261
|
+
- **How**: jittered exponential backoff, bounded to four attempts total. A `429` honors the server's `retryAfterSeconds` hint (capped at 60s) in place of the computed delay.
|
|
262
262
|
|
|
263
263
|
`contacts.startImport` retries only `mode: "new"`. Resumes use a generation fence and never retry automatically, even with an explicit key. After an ambiguous resume response, read `contacts.getImportJob` before deciding what to do next.
|
|
264
264
|
|
|
@@ -278,7 +278,7 @@ program.pipe(Effect.provide(Retry.layer({ times: 6, while: isRetryable })));
|
|
|
278
278
|
|
|
279
279
|
### Idempotency keys
|
|
280
280
|
|
|
281
|
-
Each idempotent operation generates an `Idempotency-Key` per logical call
|
|
281
|
+
Each idempotent operation generates an `Idempotency-Key` per logical call, stable across the built-in retries and distinct across calls, so a retried send never delivers twice. Pass an explicit key for cross-process deduplication (safe to replay the same request from a different machine):
|
|
282
282
|
|
|
283
283
|
```typescript
|
|
284
284
|
import { createClient } from "samva";
|
|
@@ -307,8 +307,8 @@ Effect pagination uses Streams:
|
|
|
307
307
|
|
|
308
308
|
Every list answers `{ items, nextCursor }`: pass `nextCursor` back as `cursor` for the next page, and stop when it is null. Every list operation that pages carries two `Stream` companions, so you traverse pages without hand-rolling a cursor loop:
|
|
309
309
|
|
|
310
|
-
- **`list.items(input?)
|
|
311
|
-
- **`list.pages(input?)
|
|
310
|
+
- **`list.items(input?)`**: a `Stream` of individual items across all pages.
|
|
311
|
+
- **`list.pages(input?)`**: a `Stream` of raw page envelopes.
|
|
312
312
|
|
|
313
313
|
```typescript
|
|
314
314
|
import { Effect, Stream } from "effect";
|
|
@@ -334,7 +334,7 @@ Effect client configuration accepts `apiKey: string | Redacted<string>` and unwr
|
|
|
334
334
|
only for authentication. Promise client configuration accepts `apiKey: string` and does not require
|
|
335
335
|
Effect, including in browser bundles.
|
|
336
336
|
|
|
337
|
-
Secret-bearing response fields
|
|
337
|
+
Secret-bearing response fields (the plaintext API key returned by `apiKeys.create` / `apiKeys.rotate`, and the webhook signing secret from `webhooks.regenerateSecret`) decode to `Redacted<string>` on the Effect surface. The secret never leaks through logs, `String(...)`, or `JSON.stringify`; unwrap it explicitly with `Redacted.value` when you need the plaintext:
|
|
338
338
|
|
|
339
339
|
```typescript
|
|
340
340
|
import { Effect, Redacted } from "effect";
|
package/dist/client/sdk.gen.d.ts
CHANGED
|
@@ -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, AgentSetupJob, 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, 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, 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, TemplateFromDefaultInput, 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";
|
|
2
|
+
import type { AgentDefinition, AgentId, AgentName, AgentsContinueOnStandardErrors, AgentsContinueOnStandardResponses, AgentsCreateErrors, AgentsCreateResponses, AgentSetupJob, 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, 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, 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, NamespacePortalLinkId, NamespacePortalLinkMetadataWritable, NamespaceResourceType, NamespacesAssignResourceErrors, NamespacesAssignResourceResponses, NamespacesCreateErrors, NamespacesCreatePortalLinkErrors, NamespacesCreatePortalLinkResponses, NamespacesCreateResponses, NamespacesGetErrors, NamespacesGetResponses, NamespacesGetUsageErrors, NamespacesGetUsageResponses, NamespacesListErrors, NamespacesListPortalLinksErrors, NamespacesListPortalLinksResponses, NamespacesListResponses, NamespacesRemoveErrors, NamespacesRemoveResourceErrors, NamespacesRemoveResourceResponses, NamespacesRemoveResponses, NamespacesRevokePortalLinkErrors, NamespacesRevokePortalLinkResponses, 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, OrganizationsInviteMemberErrors, OrganizationsInviteMemberResponses, 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, TemplateFromDefaultInput, 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, WhatsAppSetupLinkRedirectUrl, 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
|
|
@@ -37,7 +37,7 @@ export declare class Messages {
|
|
|
37
37
|
/**
|
|
38
38
|
* Send a message
|
|
39
39
|
*
|
|
40
|
-
* Sends a message on the requested channel and returns its receipt (id, status, and why it waits when it does) with a 201 Created status. Requires `messages:create` or the send permission of the channel it sends on, such as `email:send`. `channel` selects the payload variant. Email and WhatsApp sends are available. Repeating an identical request with the same optional `Idempotency-Key` header returns the original receipt; reusing the key for different content returns a conflict.
|
|
40
|
+
* An email send whose namespace has no sending setup returns ValidationError: share the sender domain with namespaces, or use a sender owned by that namespace. Sending setup that has stopped after failure returns ValidationError; restart or reconcile the domain's sending setup. Setup still in progress returns ConflictError. Sends a message on the requested channel and returns its receipt (id, status, and why it waits when it does) with a 201 Created status. Requires `messages:create` or the send permission of the channel it sends on, such as `email:send`. `channel` selects the payload variant. Email and WhatsApp sends are available. Repeating an identical request with the same optional `Idempotency-Key` header returns the original receipt; reusing the key for different content returns a conflict.
|
|
41
41
|
*/
|
|
42
42
|
static send<ThrowOnError extends boolean = false>(parameters: EmailSendMessagePayload | SmsSendMessagePayload | WhatsAppSendMessagePayload, options?: Options<never, ThrowOnError>): RequestResult<MessagesSendResponses, MessagesSendErrors, ThrowOnError>;
|
|
43
43
|
/**
|
|
@@ -166,7 +166,7 @@ export declare class ScheduledMessages {
|
|
|
166
166
|
/**
|
|
167
167
|
* Schedule a message
|
|
168
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`. The send payload is the same channel union the immediate send accepts, with each channel's content checked at schedule time so a send that could never render fails now rather than hours later: email and WhatsApp schedules are available. Optional timezone is validated IANA display metadata only and never changes the execution instant.
|
|
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`. The send payload is the same channel union the immediate send accepts, with each channel's content checked at schedule time so a send that could never render fails now rather than hours later: email and WhatsApp schedules are available. Email schedules placed explicitly in a namespace require its sending setup to be ready: ValidationError means share the sender domain with namespaces or use a sender owned by that namespace. Setup that has stopped after failure also returns ValidationError and requires restarting or reconciling the domain's sending setup. ConflictError means setup is still in progress. Optional timezone is validated IANA display metadata only and never changes the execution instant.
|
|
170
170
|
*/
|
|
171
171
|
static create<ThrowOnError extends boolean = false>(parameters: {
|
|
172
172
|
namespaceId?: NamespaceId | null | undefined;
|
|
@@ -294,7 +294,7 @@ export declare class Campaigns {
|
|
|
294
294
|
/**
|
|
295
295
|
* Schedule a campaign run
|
|
296
296
|
*
|
|
297
|
-
* Schedules an email campaign run at the absolute ISO-8601 instant in scheduledFor, or immediately when omitted. The optional Idempotency-Key header is scoped to the organization and replays return the original run. An email campaign must carry the brand footer: it is refused with CampaignFooterRequiredError when its footer is off and its template renders no BrandFooter, and with BrandAddressRequiredError when a brand that signs it off has no postal address.
|
|
297
|
+
* Schedules an email campaign run at the absolute ISO-8601 instant in scheduledFor, or immediately when omitted. The optional Idempotency-Key header is scoped to the organization and replays return the original run. Scheduling refuses with ValidationError when the sending namespace has no sending setup: share the sender domain with namespaces, or use a sender owned by that namespace. Sending setup that has stopped after failure returns ValidationError; restart or reconcile the domain's sending setup. Setup still in progress returns ConflictError; retry after setup finishes. An email campaign must carry the brand footer: it is refused with CampaignFooterRequiredError when its footer is off and its template renders no BrandFooter, and with BrandAddressRequiredError when a brand that signs it off has no postal address.
|
|
298
298
|
*/
|
|
299
299
|
static scheduleRun<ThrowOnError extends boolean = false>(parameters: {
|
|
300
300
|
id: CampaignId;
|
|
@@ -3000,6 +3000,17 @@ export declare class Webhooks2 {
|
|
|
3000
3000
|
static webhooks: typeof Webhooks;
|
|
3001
3001
|
}
|
|
3002
3002
|
export declare class Organizations {
|
|
3003
|
+
/**
|
|
3004
|
+
* Invite an organization member
|
|
3005
|
+
*
|
|
3006
|
+
* Invites a member with a personal mailbox address. A namespace confines the member and their credentials to its resources and requires a verified receiving domain in that namespace.
|
|
3007
|
+
*/
|
|
3008
|
+
static inviteMember<ThrowOnError extends boolean = false>(parameters: {
|
|
3009
|
+
email: string;
|
|
3010
|
+
role: "member" | "admin" | "mail_user";
|
|
3011
|
+
mailboxAddress: string;
|
|
3012
|
+
namespaceId?: NamespaceId | null | undefined;
|
|
3013
|
+
}, options?: Options<never, ThrowOnError>): RequestResult<OrganizationsInviteMemberResponses, OrganizationsInviteMemberErrors, ThrowOnError>;
|
|
3003
3014
|
/**
|
|
3004
3015
|
* Create an organization
|
|
3005
3016
|
*
|
|
@@ -3058,7 +3069,9 @@ export declare class Organizations {
|
|
|
3058
3069
|
*
|
|
3059
3070
|
* Returns this organization's verified active receiving domains and a default domain. When none are available, returns the organization's hosted mail domain. Only organization owners and admins may read these options.
|
|
3060
3071
|
*/
|
|
3061
|
-
static getPersonalMailboxAddressOptions<ThrowOnError extends boolean = false>(
|
|
3072
|
+
static getPersonalMailboxAddressOptions<ThrowOnError extends boolean = false>(parameters?: {
|
|
3073
|
+
namespaceId?: NamespaceId | undefined;
|
|
3074
|
+
}, options?: Options<never, ThrowOnError>): RequestResult<OrganizationsGetPersonalMailboxAddressOptionsResponses, OrganizationsGetPersonalMailboxAddressOptionsErrors, ThrowOnError>;
|
|
3062
3075
|
/**
|
|
3063
3076
|
* Get organization trust tier and sending limits
|
|
3064
3077
|
*
|
|
@@ -3096,7 +3109,7 @@ export declare class ApiKeys {
|
|
|
3096
3109
|
/**
|
|
3097
3110
|
* List API keys
|
|
3098
3111
|
*
|
|
3099
|
-
* 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.
|
|
3112
|
+
* Returns the organization's API keys, newest first, filterable by namespace (`namespaceId`), status and a search term matched against name and description. Restricted members receive only keys stored in their namespace. Pass `nextCursor` back as `cursor` for the next page; it is null on the last page.
|
|
3100
3113
|
*/
|
|
3101
3114
|
static list<ThrowOnError extends boolean = false>(parameters?: {
|
|
3102
3115
|
limit?: number | null | undefined;
|
|
@@ -3108,7 +3121,7 @@ export declare class ApiKeys {
|
|
|
3108
3121
|
/**
|
|
3109
3122
|
* Create an API key
|
|
3110
3123
|
*
|
|
3111
|
-
* Creates a new API key for the organization and returns the created key, including the plaintext secret, with a 201 response.
|
|
3124
|
+
* Creates a new API key for the organization and returns the created key, including the plaintext secret, with a 201 response. A restricted member can issue keys only in their namespace, capped by its available resources.
|
|
3112
3125
|
*/
|
|
3113
3126
|
static create<ThrowOnError extends boolean = false>(parameters: {
|
|
3114
3127
|
name: string;
|
|
@@ -3119,7 +3132,7 @@ export declare class ApiKeys {
|
|
|
3119
3132
|
/**
|
|
3120
3133
|
* Get an API key
|
|
3121
3134
|
*
|
|
3122
|
-
* Returns the API key with the given ID, including its metadata and access.
|
|
3135
|
+
* Returns the API key with the given ID, including its metadata and access. Restricted members can read only keys stored in their namespace.
|
|
3123
3136
|
*/
|
|
3124
3137
|
static get<ThrowOnError extends boolean = false>(parameters: {
|
|
3125
3138
|
id: ApiKeyId;
|
|
@@ -3137,7 +3150,7 @@ export declare class ApiKeys {
|
|
|
3137
3150
|
/**
|
|
3138
3151
|
* Revoke an API key
|
|
3139
3152
|
*
|
|
3140
|
-
* Deactivates an API key so it can no longer authenticate requests. Revocation is final: a revoked key never authenticates again. Its record stays listable, so the messages it sent stay attributed to it.
|
|
3153
|
+
* Deactivates an API key so it can no longer authenticate requests. Restricted members can revoke only keys stored in their namespace. Revocation is final: a revoked key never authenticates again. Its record stays listable, so the messages it sent stay attributed to it.
|
|
3141
3154
|
*/
|
|
3142
3155
|
static revoke<ThrowOnError extends boolean = false>(parameters: {
|
|
3143
3156
|
id: ApiKeyId;
|
|
@@ -3929,6 +3942,36 @@ export declare class Namespaces {
|
|
|
3929
3942
|
type: NamespaceResourceType;
|
|
3930
3943
|
resourceId: string;
|
|
3931
3944
|
}, options?: Options<never, ThrowOnError>): RequestResult<NamespacesRemoveResourceResponses, NamespacesRemoveResourceErrors, ThrowOnError>;
|
|
3945
|
+
/**
|
|
3946
|
+
* List namespace portal links
|
|
3947
|
+
*
|
|
3948
|
+
* Lists links newest first without their tokens. Only organization-wide callers may list links.
|
|
3949
|
+
*/
|
|
3950
|
+
static listPortalLinks<ThrowOnError extends boolean = false>(parameters: {
|
|
3951
|
+
id: NamespaceId;
|
|
3952
|
+
limit?: number | null | undefined;
|
|
3953
|
+
cursor?: string | undefined;
|
|
3954
|
+
}, options?: Options<never, ThrowOnError>): RequestResult<NamespacesListPortalLinksResponses, NamespacesListPortalLinksErrors, ThrowOnError>;
|
|
3955
|
+
/**
|
|
3956
|
+
* Create a namespace portal link
|
|
3957
|
+
*
|
|
3958
|
+
* Creates a reusable hosted portal link without a Samva account. Only organization-wide callers may mint links. The token appears once in the returned URL fragment; Samva stores only its hash. expiresIn is seconds, defaults to 7 days, and cannot exceed 30 days.
|
|
3959
|
+
*/
|
|
3960
|
+
static createPortalLink<ThrowOnError extends boolean = false>(parameters: {
|
|
3961
|
+
id: NamespaceId;
|
|
3962
|
+
redirectUrl?: WhatsAppSetupLinkRedirectUrl | null | undefined;
|
|
3963
|
+
metadata?: NamespacePortalLinkMetadataWritable | null | undefined;
|
|
3964
|
+
expiresIn?: number | null | undefined;
|
|
3965
|
+
}, options?: Options<never, ThrowOnError>): RequestResult<NamespacesCreatePortalLinkResponses, NamespacesCreatePortalLinkErrors, ThrowOnError>;
|
|
3966
|
+
/**
|
|
3967
|
+
* Revoke a namespace portal link
|
|
3968
|
+
*
|
|
3969
|
+
* Revokes the link and ends sessions using it. Only organization-wide callers may revoke links.
|
|
3970
|
+
*/
|
|
3971
|
+
static revokePortalLink<ThrowOnError extends boolean = false>(parameters: {
|
|
3972
|
+
id: NamespaceId;
|
|
3973
|
+
linkId: NamespacePortalLinkId;
|
|
3974
|
+
}, options?: Options<never, ThrowOnError>): RequestResult<NamespacesRevokePortalLinkResponses, NamespacesRevokePortalLinkErrors, ThrowOnError>;
|
|
3932
3975
|
/**
|
|
3933
3976
|
* Get namespace usage
|
|
3934
3977
|
*
|
package/dist/client/sdk.gen.js
CHANGED
|
@@ -69,7 +69,7 @@ var Messages = class {
|
|
|
69
69
|
/**
|
|
70
70
|
* Send a message
|
|
71
71
|
*
|
|
72
|
-
* Sends a message on the requested channel and returns its receipt (id, status, and why it waits when it does) with a 201 Created status. Requires `messages:create` or the send permission of the channel it sends on, such as `email:send`. `channel` selects the payload variant. Email and WhatsApp sends are available. Repeating an identical request with the same optional `Idempotency-Key` header returns the original receipt; reusing the key for different content returns a conflict.
|
|
72
|
+
* An email send whose namespace has no sending setup returns ValidationError: share the sender domain with namespaces, or use a sender owned by that namespace. Sending setup that has stopped after failure returns ValidationError; restart or reconcile the domain's sending setup. Setup still in progress returns ConflictError. Sends a message on the requested channel and returns its receipt (id, status, and why it waits when it does) with a 201 Created status. Requires `messages:create` or the send permission of the channel it sends on, such as `email:send`. `channel` selects the payload variant. Email and WhatsApp sends are available. Repeating an identical request with the same optional `Idempotency-Key` header returns the original receipt; reusing the key for different content returns a conflict.
|
|
73
73
|
*/
|
|
74
74
|
static send(parameters, options) {
|
|
75
75
|
const params = { body: parameters };
|
|
@@ -438,7 +438,7 @@ var ScheduledMessages = class {
|
|
|
438
438
|
/**
|
|
439
439
|
* Schedule a message
|
|
440
440
|
*
|
|
441
|
-
* 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`. The send payload is the same channel union the immediate send accepts, with each channel's content checked at schedule time so a send that could never render fails now rather than hours later: email and WhatsApp schedules are available. Optional timezone is validated IANA display metadata only and never changes the execution instant.
|
|
441
|
+
* 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`. The send payload is the same channel union the immediate send accepts, with each channel's content checked at schedule time so a send that could never render fails now rather than hours later: email and WhatsApp schedules are available. Email schedules placed explicitly in a namespace require its sending setup to be ready: ValidationError means share the sender domain with namespaces or use a sender owned by that namespace. Setup that has stopped after failure also returns ValidationError and requires restarting or reconciling the domain's sending setup. ConflictError means setup is still in progress. Optional timezone is validated IANA display metadata only and never changes the execution instant.
|
|
442
442
|
*/
|
|
443
443
|
static create(parameters, options) {
|
|
444
444
|
const params = buildClientParams([parameters], [{ args: [
|
|
@@ -846,7 +846,7 @@ var Campaigns = class {
|
|
|
846
846
|
/**
|
|
847
847
|
* Schedule a campaign run
|
|
848
848
|
*
|
|
849
|
-
* Schedules an email campaign run at the absolute ISO-8601 instant in scheduledFor, or immediately when omitted. The optional Idempotency-Key header is scoped to the organization and replays return the original run. An email campaign must carry the brand footer: it is refused with CampaignFooterRequiredError when its footer is off and its template renders no BrandFooter, and with BrandAddressRequiredError when a brand that signs it off has no postal address.
|
|
849
|
+
* Schedules an email campaign run at the absolute ISO-8601 instant in scheduledFor, or immediately when omitted. The optional Idempotency-Key header is scoped to the organization and replays return the original run. Scheduling refuses with ValidationError when the sending namespace has no sending setup: share the sender domain with namespaces, or use a sender owned by that namespace. Sending setup that has stopped after failure returns ValidationError; restart or reconcile the domain's sending setup. Setup still in progress returns ConflictError; retry after setup finishes. An email campaign must carry the brand footer: it is refused with CampaignFooterRequiredError when its footer is off and its template renders no BrandFooter, and with BrandAddressRequiredError when a brand that signs it off has no postal address.
|
|
850
850
|
*/
|
|
851
851
|
static scheduleRun(parameters, options) {
|
|
852
852
|
const params = buildClientParams([parameters], [{ args: [{
|
|
@@ -9239,6 +9239,50 @@ var Webhooks = class {
|
|
|
9239
9239
|
}
|
|
9240
9240
|
};
|
|
9241
9241
|
var Organizations = class {
|
|
9242
|
+
/**
|
|
9243
|
+
* Invite an organization member
|
|
9244
|
+
*
|
|
9245
|
+
* Invites a member with a personal mailbox address. A namespace confines the member and their credentials to its resources and requires a verified receiving domain in that namespace.
|
|
9246
|
+
*/
|
|
9247
|
+
static inviteMember(parameters, options) {
|
|
9248
|
+
const params = buildClientParams([parameters], [{ args: [
|
|
9249
|
+
{
|
|
9250
|
+
in: "body",
|
|
9251
|
+
key: "email"
|
|
9252
|
+
},
|
|
9253
|
+
{
|
|
9254
|
+
in: "body",
|
|
9255
|
+
key: "role"
|
|
9256
|
+
},
|
|
9257
|
+
{
|
|
9258
|
+
in: "body",
|
|
9259
|
+
key: "mailboxAddress"
|
|
9260
|
+
},
|
|
9261
|
+
{
|
|
9262
|
+
in: "body",
|
|
9263
|
+
key: "namespaceId"
|
|
9264
|
+
}
|
|
9265
|
+
] }]);
|
|
9266
|
+
return requestWithPolicy(options?.client ?? client, "organizationsInviteMember", options, (headers) => (options?.client ?? client).post({
|
|
9267
|
+
security: [{
|
|
9268
|
+
name: "x-api-key",
|
|
9269
|
+
type: "apiKey"
|
|
9270
|
+
}],
|
|
9271
|
+
url: "/v1/organizations/members/invitations",
|
|
9272
|
+
...options,
|
|
9273
|
+
...params,
|
|
9274
|
+
body: params.body ?? {},
|
|
9275
|
+
headers: {
|
|
9276
|
+
"Content-Type": "application/json",
|
|
9277
|
+
...options?.headers,
|
|
9278
|
+
...params.headers
|
|
9279
|
+
},
|
|
9280
|
+
headers: {
|
|
9281
|
+
"Content-Type": "application/json",
|
|
9282
|
+
...headers
|
|
9283
|
+
}
|
|
9284
|
+
}));
|
|
9285
|
+
}
|
|
9242
9286
|
/**
|
|
9243
9287
|
* Create an organization
|
|
9244
9288
|
*
|
|
@@ -9419,7 +9463,11 @@ var Organizations = class {
|
|
|
9419
9463
|
*
|
|
9420
9464
|
* Returns this organization's verified active receiving domains and a default domain. When none are available, returns the organization's hosted mail domain. Only organization owners and admins may read these options.
|
|
9421
9465
|
*/
|
|
9422
|
-
static getPersonalMailboxAddressOptions(options) {
|
|
9466
|
+
static getPersonalMailboxAddressOptions(parameters, options) {
|
|
9467
|
+
const params = buildClientParams([parameters], [{ args: [{
|
|
9468
|
+
in: "query",
|
|
9469
|
+
key: "namespaceId"
|
|
9470
|
+
}] }]);
|
|
9423
9471
|
return requestWithPolicy(options?.client ?? client, "organizationsGetPersonalMailboxAddressOptions", options, (headers) => (options?.client ?? client).get({
|
|
9424
9472
|
security: [{
|
|
9425
9473
|
name: "x-api-key",
|
|
@@ -9427,6 +9475,7 @@ var Organizations = class {
|
|
|
9427
9475
|
}],
|
|
9428
9476
|
url: "/v1/organizations/personal-mailboxes/address-options",
|
|
9429
9477
|
...options,
|
|
9478
|
+
...params,
|
|
9430
9479
|
headers
|
|
9431
9480
|
}));
|
|
9432
9481
|
}
|
|
@@ -9521,7 +9570,7 @@ var ApiKeys = class {
|
|
|
9521
9570
|
/**
|
|
9522
9571
|
* List API keys
|
|
9523
9572
|
*
|
|
9524
|
-
* 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.
|
|
9573
|
+
* Returns the organization's API keys, newest first, filterable by namespace (`namespaceId`), status and a search term matched against name and description. Restricted members receive only keys stored in their namespace. Pass `nextCursor` back as `cursor` for the next page; it is null on the last page.
|
|
9525
9574
|
*/
|
|
9526
9575
|
static list(parameters, options) {
|
|
9527
9576
|
const params = buildClientParams([parameters], [{ args: [
|
|
@@ -9560,7 +9609,7 @@ var ApiKeys = class {
|
|
|
9560
9609
|
/**
|
|
9561
9610
|
* Create an API key
|
|
9562
9611
|
*
|
|
9563
|
-
* Creates a new API key for the organization and returns the created key, including the plaintext secret, with a 201 response.
|
|
9612
|
+
* Creates a new API key for the organization and returns the created key, including the plaintext secret, with a 201 response. A restricted member can issue keys only in their namespace, capped by its available resources.
|
|
9564
9613
|
*/
|
|
9565
9614
|
static create(parameters, options) {
|
|
9566
9615
|
const params = buildClientParams([parameters], [{ args: [
|
|
@@ -9604,7 +9653,7 @@ var ApiKeys = class {
|
|
|
9604
9653
|
/**
|
|
9605
9654
|
* Get an API key
|
|
9606
9655
|
*
|
|
9607
|
-
* Returns the API key with the given ID, including its metadata and access.
|
|
9656
|
+
* Returns the API key with the given ID, including its metadata and access. Restricted members can read only keys stored in their namespace.
|
|
9608
9657
|
*/
|
|
9609
9658
|
static get(parameters, options) {
|
|
9610
9659
|
const params = buildClientParams([parameters], [{ args: [{
|
|
@@ -9665,7 +9714,7 @@ var ApiKeys = class {
|
|
|
9665
9714
|
/**
|
|
9666
9715
|
* Revoke an API key
|
|
9667
9716
|
*
|
|
9668
|
-
* Deactivates an API key so it can no longer authenticate requests. Revocation is final: a revoked key never authenticates again. Its record stays listable, so the messages it sent stay attributed to it.
|
|
9717
|
+
* Deactivates an API key so it can no longer authenticate requests. Restricted members can revoke only keys stored in their namespace. Revocation is final: a revoked key never authenticates again. Its record stays listable, so the messages it sent stay attributed to it.
|
|
9669
9718
|
*/
|
|
9670
9719
|
static revoke(parameters, options) {
|
|
9671
9720
|
const params = buildClientParams([parameters], [{ args: [{
|
|
@@ -12221,6 +12270,105 @@ var Namespaces = class {
|
|
|
12221
12270
|
}));
|
|
12222
12271
|
}
|
|
12223
12272
|
/**
|
|
12273
|
+
* List namespace portal links
|
|
12274
|
+
*
|
|
12275
|
+
* Lists links newest first without their tokens. Only organization-wide callers may list links.
|
|
12276
|
+
*/
|
|
12277
|
+
static listPortalLinks(parameters, options) {
|
|
12278
|
+
const params = buildClientParams([parameters], [{ args: [
|
|
12279
|
+
{
|
|
12280
|
+
in: "path",
|
|
12281
|
+
key: "id"
|
|
12282
|
+
},
|
|
12283
|
+
{
|
|
12284
|
+
in: "query",
|
|
12285
|
+
key: "limit"
|
|
12286
|
+
},
|
|
12287
|
+
{
|
|
12288
|
+
in: "query",
|
|
12289
|
+
key: "cursor"
|
|
12290
|
+
}
|
|
12291
|
+
] }]);
|
|
12292
|
+
return requestWithPolicy(options?.client ?? client, "namespacesListPortalLinks", options, (headers) => (options?.client ?? client).get({
|
|
12293
|
+
security: [{
|
|
12294
|
+
name: "x-api-key",
|
|
12295
|
+
type: "apiKey"
|
|
12296
|
+
}],
|
|
12297
|
+
url: "/v1/namespaces/{id}/portal-links",
|
|
12298
|
+
...options,
|
|
12299
|
+
...params,
|
|
12300
|
+
headers
|
|
12301
|
+
}));
|
|
12302
|
+
}
|
|
12303
|
+
/**
|
|
12304
|
+
* Create a namespace portal link
|
|
12305
|
+
*
|
|
12306
|
+
* Creates a reusable hosted portal link without a Samva account. Only organization-wide callers may mint links. The token appears once in the returned URL fragment; Samva stores only its hash. expiresIn is seconds, defaults to 7 days, and cannot exceed 30 days.
|
|
12307
|
+
*/
|
|
12308
|
+
static createPortalLink(parameters, options) {
|
|
12309
|
+
const params = buildClientParams([parameters], [{ args: [
|
|
12310
|
+
{
|
|
12311
|
+
in: "path",
|
|
12312
|
+
key: "id"
|
|
12313
|
+
},
|
|
12314
|
+
{
|
|
12315
|
+
in: "body",
|
|
12316
|
+
key: "redirectUrl"
|
|
12317
|
+
},
|
|
12318
|
+
{
|
|
12319
|
+
in: "body",
|
|
12320
|
+
key: "metadata"
|
|
12321
|
+
},
|
|
12322
|
+
{
|
|
12323
|
+
in: "body",
|
|
12324
|
+
key: "expiresIn"
|
|
12325
|
+
}
|
|
12326
|
+
] }]);
|
|
12327
|
+
return requestWithPolicy(options?.client ?? client, "namespacesCreatePortalLink", options, (headers) => (options?.client ?? client).post({
|
|
12328
|
+
security: [{
|
|
12329
|
+
name: "x-api-key",
|
|
12330
|
+
type: "apiKey"
|
|
12331
|
+
}],
|
|
12332
|
+
url: "/v1/namespaces/{id}/portal-links",
|
|
12333
|
+
...options,
|
|
12334
|
+
...params,
|
|
12335
|
+
body: params.body ?? {},
|
|
12336
|
+
headers: {
|
|
12337
|
+
"Content-Type": "application/json",
|
|
12338
|
+
...options?.headers,
|
|
12339
|
+
...params.headers
|
|
12340
|
+
},
|
|
12341
|
+
headers: {
|
|
12342
|
+
"Content-Type": "application/json",
|
|
12343
|
+
...headers
|
|
12344
|
+
}
|
|
12345
|
+
}));
|
|
12346
|
+
}
|
|
12347
|
+
/**
|
|
12348
|
+
* Revoke a namespace portal link
|
|
12349
|
+
*
|
|
12350
|
+
* Revokes the link and ends sessions using it. Only organization-wide callers may revoke links.
|
|
12351
|
+
*/
|
|
12352
|
+
static revokePortalLink(parameters, options) {
|
|
12353
|
+
const params = buildClientParams([parameters], [{ args: [{
|
|
12354
|
+
in: "path",
|
|
12355
|
+
key: "id"
|
|
12356
|
+
}, {
|
|
12357
|
+
in: "path",
|
|
12358
|
+
key: "linkId"
|
|
12359
|
+
}] }]);
|
|
12360
|
+
return requestWithPolicy(options?.client ?? client, "namespacesRevokePortalLink", options, (headers) => (options?.client ?? client).delete({
|
|
12361
|
+
security: [{
|
|
12362
|
+
name: "x-api-key",
|
|
12363
|
+
type: "apiKey"
|
|
12364
|
+
}],
|
|
12365
|
+
url: "/v1/namespaces/{id}/portal-links/{linkId}",
|
|
12366
|
+
...options,
|
|
12367
|
+
...params,
|
|
12368
|
+
headers
|
|
12369
|
+
}));
|
|
12370
|
+
}
|
|
12371
|
+
/**
|
|
12224
12372
|
* Get namespace usage
|
|
12225
12373
|
*
|
|
12226
12374
|
* Counts the messages the namespace sent and received in the window that count toward usage, by channel, with the same statuses as `GET /v1/organizations/usage`. A message counts toward the namespace it was sent or received in: that of the sender, mailbox, or key it used. The organization is billed for every namespace; read this to charge your own customer.
|
|
@@ -12939,6 +13087,7 @@ Object.assign(Webhooks.getStats, { operation: "webhooksGetStats" });
|
|
|
12939
13087
|
Object.assign(Webhooks.retryDelivery, { operation: "webhooksRetryDelivery" });
|
|
12940
13088
|
Object.assign(Webhooks.regenerateSecret, { operation: "webhooksRegenerateSecret" });
|
|
12941
13089
|
Object.assign(Webhooks.getSecret, { operation: "webhooksGetSecret" });
|
|
13090
|
+
Object.assign(Organizations.inviteMember, { operation: "organizationsInviteMember" });
|
|
12942
13091
|
Object.assign(Organizations.create, { operation: "organizationsCreate" });
|
|
12943
13092
|
Object.assign(Organizations.get, { operation: "organizationsGet" });
|
|
12944
13093
|
Object.assign(Organizations.update, { operation: "organizationsUpdate" });
|
|
@@ -13028,6 +13177,9 @@ Object.assign(Namespaces.get, { operation: "namespacesGet" });
|
|
|
13028
13177
|
Object.assign(Namespaces.update, { operation: "namespacesUpdate" });
|
|
13029
13178
|
Object.assign(Namespaces.assignResource, { operation: "namespacesAssignResource" });
|
|
13030
13179
|
Object.assign(Namespaces.removeResource, { operation: "namespacesRemoveResource" });
|
|
13180
|
+
Object.assign(Namespaces.listPortalLinks, { operation: "namespacesListPortalLinks" });
|
|
13181
|
+
Object.assign(Namespaces.createPortalLink, { operation: "namespacesCreatePortalLink" });
|
|
13182
|
+
Object.assign(Namespaces.revokePortalLink, { operation: "namespacesRevokePortalLink" });
|
|
13031
13183
|
Object.assign(Namespaces.getUsage, { operation: "namespacesGetUsage" });
|
|
13032
13184
|
Object.assign(Extensions.list, { operation: "extensionsList" });
|
|
13033
13185
|
Object.assign(Extensions.publish, { operation: "extensionsPublish" });
|