samva 0.49.0 → 0.51.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.
- package/AGENTS.md +44 -3
- package/README.md +136 -7
- package/dist/client/sdk.gen.d.ts +63 -18
- package/dist/client/sdk.gen.js +1549 -945
- package/dist/client/types.gen.d.ts +269 -31
- package/dist/effect/agents.d.ts +4 -4
- package/dist/effect/api-keys.d.ts +4 -6
- package/dist/effect/campaigns.d.ts +166 -174
- package/dist/effect/categories.d.ts +2 -2
- package/dist/effect/categories.js +6 -4
- package/dist/effect/contact-groups.d.ts +4 -4
- package/dist/effect/contacts.d.ts +8 -8
- package/dist/effect/conversations.d.ts +4 -4
- package/dist/effect/descriptors/mailboxes.d.ts +41 -1
- package/dist/effect/descriptors/mailboxes.js +53 -1
- package/dist/effect/email.d.ts +17 -16
- package/dist/effect/errors.d.ts +1 -0
- package/dist/effect/errors.js +2 -1
- package/dist/effect/generated/api-keys.d.ts +0 -15
- package/dist/effect/generated/api-keys.js +1 -2
- package/dist/effect/generated/campaigns.d.ts +0 -62
- package/dist/effect/generated/campaigns.js +3 -9
- package/dist/effect/generated/email.d.ts +10 -3
- package/dist/effect/generated/email.js +3 -2
- package/dist/effect/generated/mailboxes.d.ts +780 -77
- package/dist/effect/generated/mailboxes.js +135 -12
- package/dist/effect/generated/namespaces.js +1 -1
- package/dist/effect/generated/policies.js +2 -2
- package/dist/effect/generated/scheduled-messages.d.ts +0 -26
- package/dist/effect/generated/scheduled-messages.js +1 -3
- package/dist/effect/generated/shared.d.ts +28 -31
- package/dist/effect/generated/shared.js +12 -19
- package/dist/effect/generated/template-registrations.d.ts +6 -6
- package/dist/effect/generated/template-registrations.js +3 -3
- package/dist/effect/generated-metadata.d.ts +24 -0
- package/dist/effect/generated-metadata.js +4 -0
- package/dist/effect/index.js +2 -1
- package/dist/effect/integrations.d.ts +2 -2
- package/dist/effect/internal/client.d.ts +19 -2
- package/dist/effect/internal/client.js +10 -2
- package/dist/effect/internal/email-sender.d.ts +4 -4
- package/dist/effect/internal/email-sender.js +5 -3
- package/dist/effect/internal/operation.d.ts +11 -0
- package/dist/effect/internal/operation.js +10 -6
- package/dist/effect/internal/send.d.ts +4 -0
- package/dist/effect/internal/send.js +11 -8
- package/dist/effect/internal/timeout.d.ts +16 -0
- package/dist/effect/internal/timeout.js +20 -0
- package/dist/effect/journeys.d.ts +152 -152
- package/dist/effect/mailboxes.d.ts +54 -30
- package/dist/effect/mailboxes.js +10 -2
- package/dist/effect/messages.d.ts +5 -5
- package/dist/effect/namespaces.d.ts +4 -4
- package/dist/effect/newsletter-domains.d.ts +2 -2
- package/dist/effect/operations.d.ts +2 -2
- package/dist/effect/scheduled-messages.d.ts +2 -6
- package/dist/effect/templates.d.ts +6 -6
- package/dist/effect/topics.d.ts +4 -4
- package/dist/effect/webhooks.d.ts +4 -4
- package/dist/effect/whatsapp-setup-links.d.ts +2 -2
- package/dist/index.js +2 -2
- package/dist/package.js +1 -1
- package/dist/promises/client.d.ts +5 -0
- package/dist/promises/client.js +12 -8
- package/dist/promises/errors.gen.d.ts +12 -1
- package/dist/promises/errors.gen.js +21 -2
- package/dist/promises/index.js +2 -2
- package/dist/promises/request.d.ts +31 -2
- package/dist/promises/request.js +42 -7
- package/dist/promises/types.gen.d.ts +1 -1
- package/dist/request-policy.d.ts +9 -0
- package/dist/request-policy.js +16 -1
- package/dist/service-map.d.ts +22 -2
- package/package.json +3 -3
|
@@ -109,9 +109,12 @@ export type ConflictError = {
|
|
|
109
109
|
resource: string;
|
|
110
110
|
id?: string | null | undefined;
|
|
111
111
|
};
|
|
112
|
+
/**
|
|
113
|
+
* For an immediate submission, `businessAccountId` is the connected number to register on and defaults to the number for the template's scope.
|
|
114
|
+
*/
|
|
112
115
|
export type SubmitTemplateRegistrationPayload = {
|
|
113
116
|
provider: "whatsapp";
|
|
114
|
-
businessAccountId?:
|
|
117
|
+
businessAccountId?: WhatsAppBusinessAccountId | undefined;
|
|
115
118
|
approval?: TemplateRegistrationApproval | undefined;
|
|
116
119
|
};
|
|
117
120
|
/**
|
|
@@ -119,7 +122,7 @@ export type SubmitTemplateRegistrationPayload = {
|
|
|
119
122
|
*/
|
|
120
123
|
export type TemplateRegistrationApproval = {
|
|
121
124
|
publicationId: TemplatePublicationId;
|
|
122
|
-
businessAccountId:
|
|
125
|
+
businessAccountId: WhatsAppBusinessAccountId;
|
|
123
126
|
/**
|
|
124
127
|
* The Meta business account ID shown for the selected number before approval.
|
|
125
128
|
*/
|
|
@@ -129,14 +132,7 @@ export type TemplateRegistrationApproval = {
|
|
|
129
132
|
*/
|
|
130
133
|
expectedWorkspaceRevision: string;
|
|
131
134
|
};
|
|
132
|
-
|
|
133
|
-
* The connected WhatsApp number selected for this submission.
|
|
134
|
-
*/
|
|
135
|
-
export type WhatsAppBusinessAccountId2 = string;
|
|
136
|
-
/**
|
|
137
|
-
* For an immediate submission, the connected number to register on. Defaults to the number for the template's scope.
|
|
138
|
-
*/
|
|
139
|
-
export type WhatsAppBusinessAccountId1 = string;
|
|
135
|
+
export type WhatsAppBusinessAccountId = string;
|
|
140
136
|
export type WhatsAppSetupLinkUnavailableError = {
|
|
141
137
|
_tag: "WhatsAppSetupLinkUnavailableError";
|
|
142
138
|
reason: "completed" | "revoked" | "expired";
|
|
@@ -156,7 +152,6 @@ export type WhatsAppSetupLink = {
|
|
|
156
152
|
createdAt: string;
|
|
157
153
|
updatedAt: string;
|
|
158
154
|
};
|
|
159
|
-
export type WhatsAppBusinessAccountId = string;
|
|
160
155
|
export type WhatsAppSetupLinkMetadata = {
|
|
161
156
|
[key: string]: string;
|
|
162
157
|
};
|
|
@@ -1847,7 +1842,6 @@ export type ApiKeyWithSecret = {
|
|
|
1847
1842
|
export type ApiKeyOwner = {
|
|
1848
1843
|
id: string;
|
|
1849
1844
|
name: string;
|
|
1850
|
-
email: string;
|
|
1851
1845
|
};
|
|
1852
1846
|
export type ApiKey = {
|
|
1853
1847
|
id: string;
|
|
@@ -2959,6 +2953,7 @@ export type FromAddressRequiredError = {
|
|
|
2959
2953
|
_tag: "FromAddressRequiredError";
|
|
2960
2954
|
message: string;
|
|
2961
2955
|
verifiedDomains: Array<string>;
|
|
2956
|
+
addresses: Array<string>;
|
|
2962
2957
|
};
|
|
2963
2958
|
export type ExternalServiceError = {
|
|
2964
2959
|
_tag: "ExternalServiceError";
|
|
@@ -4806,6 +4801,10 @@ export type EmailDomainDetailed = {
|
|
|
4806
4801
|
namespaceId: NamespaceId | null;
|
|
4807
4802
|
shared: boolean;
|
|
4808
4803
|
isDefault: boolean;
|
|
4804
|
+
/**
|
|
4805
|
+
* True once a removal was accepted. Removal runs in the background: the domain stays listed and sends nothing while its provider teardown finishes, then it reads as not found.
|
|
4806
|
+
*/
|
|
4807
|
+
deleting: boolean;
|
|
4809
4808
|
deliverability: DeliverabilityFacts;
|
|
4810
4809
|
createdAt: string;
|
|
4811
4810
|
updatedAt: string;
|
|
@@ -4948,6 +4947,10 @@ export type EmailDomainPage = {
|
|
|
4948
4947
|
namespaceId: NamespaceId | null;
|
|
4949
4948
|
shared: boolean;
|
|
4950
4949
|
isDefault: boolean;
|
|
4950
|
+
/**
|
|
4951
|
+
* True once a removal was accepted. Removal runs in the background: the domain stays listed and sends nothing while its provider teardown finishes, then it reads as not found.
|
|
4952
|
+
*/
|
|
4953
|
+
deleting: boolean;
|
|
4951
4954
|
deliverability: DeliverabilityFacts;
|
|
4952
4955
|
series: SendsSeries;
|
|
4953
4956
|
createdAt: string;
|
|
@@ -5045,9 +5048,10 @@ export type CampaignRun = {
|
|
|
5045
5048
|
holdUntil: string | null;
|
|
5046
5049
|
capacityWarning: string | null;
|
|
5047
5050
|
lastContactId: string | null;
|
|
5051
|
+
/**
|
|
5052
|
+
* The user id of the member who created it; for an API key, the key owner's user id. Never an email address.
|
|
5053
|
+
*/
|
|
5048
5054
|
createdBy: string | null;
|
|
5049
|
-
actorEmail: string;
|
|
5050
|
-
memberRole: string;
|
|
5051
5055
|
createdAt: string;
|
|
5052
5056
|
updatedAt: string;
|
|
5053
5057
|
};
|
|
@@ -5259,9 +5263,10 @@ export type Campaign = {
|
|
|
5259
5263
|
policy: CampaignPolicy;
|
|
5260
5264
|
definition: CampaignDefinitionSummary;
|
|
5261
5265
|
latestRun: CampaignLatestRun | null;
|
|
5266
|
+
/**
|
|
5267
|
+
* The user id of the member who created it; for an API key, the key owner's user id. Never an email address.
|
|
5268
|
+
*/
|
|
5262
5269
|
createdBy: string | null;
|
|
5263
|
-
actorEmail: string;
|
|
5264
|
-
memberRole: string;
|
|
5265
5270
|
createdAt: string;
|
|
5266
5271
|
updatedAt: string;
|
|
5267
5272
|
};
|
|
@@ -5348,9 +5353,10 @@ export type CampaignListItem = {
|
|
|
5348
5353
|
policy: CampaignPolicy;
|
|
5349
5354
|
definition: CampaignDefinitionSummary;
|
|
5350
5355
|
latestRun: CampaignLatestRun | null;
|
|
5356
|
+
/**
|
|
5357
|
+
* The user id of the member who created it; for an API key, the key owner's user id. Never an email address.
|
|
5358
|
+
*/
|
|
5351
5359
|
createdBy: string | null;
|
|
5352
|
-
actorEmail: string;
|
|
5353
|
-
memberRole: string;
|
|
5354
5360
|
createdAt: string;
|
|
5355
5361
|
updatedAt: string;
|
|
5356
5362
|
series: SendsSeries;
|
|
@@ -5381,9 +5387,10 @@ export type ScheduledMessage = {
|
|
|
5381
5387
|
referenceId: string | null;
|
|
5382
5388
|
failureReason: string | null;
|
|
5383
5389
|
attempts: number;
|
|
5390
|
+
/**
|
|
5391
|
+
* The user id of the member who created it; for an API key, the key owner's user id. Never an email address.
|
|
5392
|
+
*/
|
|
5384
5393
|
createdBy: string | null;
|
|
5385
|
-
actorEmail: string;
|
|
5386
|
-
memberRole: string;
|
|
5387
5394
|
createdAt: string;
|
|
5388
5395
|
updatedAt: string;
|
|
5389
5396
|
};
|
|
@@ -9156,7 +9163,6 @@ export type EmailCompleteDomainConnectResponses = {
|
|
|
9156
9163
|
export type EmailCompleteDomainConnectResponse = EmailCompleteDomainConnectResponses[keyof EmailCompleteDomainConnectResponses];
|
|
9157
9164
|
export type EmailEnableReceivingData = {
|
|
9158
9165
|
body: {
|
|
9159
|
-
domain: string;
|
|
9160
9166
|
catchAll?: boolean | null | undefined;
|
|
9161
9167
|
endpointId?: WebhookEndpointId | null | undefined;
|
|
9162
9168
|
addresses?: Array<string> | null | undefined;
|
|
@@ -26560,6 +26566,10 @@ export type MailboxesCreateImportUploadErrors = {
|
|
|
26560
26566
|
* UnauthorizedError
|
|
26561
26567
|
*/
|
|
26562
26568
|
401: UnauthorizedError;
|
|
26569
|
+
/**
|
|
26570
|
+
* PaymentRequiredError
|
|
26571
|
+
*/
|
|
26572
|
+
402: PaymentRequiredError;
|
|
26563
26573
|
/**
|
|
26564
26574
|
* ForbiddenError
|
|
26565
26575
|
*/
|
|
@@ -26580,6 +26590,10 @@ export type MailboxesCreateImportUploadErrors = {
|
|
|
26580
26590
|
* InternalError
|
|
26581
26591
|
*/
|
|
26582
26592
|
500: InternalError;
|
|
26593
|
+
/**
|
|
26594
|
+
* BillingProviderError
|
|
26595
|
+
*/
|
|
26596
|
+
502: BillingProviderError;
|
|
26583
26597
|
/**
|
|
26584
26598
|
* GatewayTimeoutError
|
|
26585
26599
|
*/
|
|
@@ -26592,20 +26606,139 @@ export type MailboxesCreateImportUploadResponses = {
|
|
|
26592
26606
|
*/
|
|
26593
26607
|
200: {
|
|
26594
26608
|
id: string;
|
|
26595
|
-
|
|
26609
|
+
archiveId: string;
|
|
26610
|
+
partSizeBytes: number;
|
|
26596
26611
|
};
|
|
26597
26612
|
};
|
|
26598
26613
|
export type MailboxesCreateImportUploadResponse = MailboxesCreateImportUploadResponses[keyof MailboxesCreateImportUploadResponses];
|
|
26599
|
-
export type
|
|
26614
|
+
export type MailboxesSignImportUploadPartsData = {
|
|
26615
|
+
body: {
|
|
26616
|
+
partNumbers: Array<number>;
|
|
26617
|
+
};
|
|
26618
|
+
path: {
|
|
26619
|
+
id: MailboxId;
|
|
26620
|
+
importId: string;
|
|
26621
|
+
archiveId: string;
|
|
26622
|
+
};
|
|
26623
|
+
query?: never;
|
|
26624
|
+
url: "/v1/mailboxes/{id}/imports/{importId}/uploads/{archiveId}/parts";
|
|
26625
|
+
};
|
|
26626
|
+
export type MailboxesSignImportUploadPartsErrors = {
|
|
26627
|
+
/**
|
|
26628
|
+
* MalformedRequestError
|
|
26629
|
+
*/
|
|
26630
|
+
400: MalformedRequestError;
|
|
26631
|
+
/**
|
|
26632
|
+
* UnauthorizedError
|
|
26633
|
+
*/
|
|
26634
|
+
401: UnauthorizedError;
|
|
26635
|
+
/**
|
|
26636
|
+
* ForbiddenError
|
|
26637
|
+
*/
|
|
26638
|
+
403: ForbiddenError;
|
|
26639
|
+
/**
|
|
26640
|
+
* ResourceNotFoundError
|
|
26641
|
+
*/
|
|
26642
|
+
404: ResourceNotFoundError;
|
|
26643
|
+
/**
|
|
26644
|
+
* ConflictError
|
|
26645
|
+
*/
|
|
26646
|
+
409: ConflictError;
|
|
26647
|
+
/**
|
|
26648
|
+
* ValidationError
|
|
26649
|
+
*/
|
|
26650
|
+
422: ValidationError;
|
|
26651
|
+
/**
|
|
26652
|
+
* InternalError
|
|
26653
|
+
*/
|
|
26654
|
+
500: InternalError;
|
|
26655
|
+
/**
|
|
26656
|
+
* GatewayTimeoutError
|
|
26657
|
+
*/
|
|
26658
|
+
504: GatewayTimeoutError;
|
|
26659
|
+
};
|
|
26660
|
+
export type MailboxesSignImportUploadPartsError = MailboxesSignImportUploadPartsErrors[keyof MailboxesSignImportUploadPartsErrors];
|
|
26661
|
+
export type MailboxesSignImportUploadPartsResponses = {
|
|
26662
|
+
/**
|
|
26663
|
+
* Success
|
|
26664
|
+
*/
|
|
26665
|
+
200: {
|
|
26666
|
+
parts: Array<{
|
|
26667
|
+
partNumber: number;
|
|
26668
|
+
sizeBytes: number;
|
|
26669
|
+
uploadUrl: string;
|
|
26670
|
+
}>;
|
|
26671
|
+
};
|
|
26672
|
+
};
|
|
26673
|
+
export type MailboxesSignImportUploadPartsResponse = MailboxesSignImportUploadPartsResponses[keyof MailboxesSignImportUploadPartsResponses];
|
|
26674
|
+
export type MailboxesCompleteImportUploadData = {
|
|
26675
|
+
body: {
|
|
26676
|
+
parts: Array<{
|
|
26677
|
+
partNumber: number;
|
|
26678
|
+
etag: string;
|
|
26679
|
+
}>;
|
|
26680
|
+
};
|
|
26681
|
+
path: {
|
|
26682
|
+
id: MailboxId;
|
|
26683
|
+
importId: string;
|
|
26684
|
+
archiveId: string;
|
|
26685
|
+
};
|
|
26686
|
+
query?: never;
|
|
26687
|
+
url: "/v1/mailboxes/{id}/imports/{importId}/uploads/{archiveId}/complete";
|
|
26688
|
+
};
|
|
26689
|
+
export type MailboxesCompleteImportUploadErrors = {
|
|
26690
|
+
/**
|
|
26691
|
+
* MalformedRequestError
|
|
26692
|
+
*/
|
|
26693
|
+
400: MalformedRequestError;
|
|
26694
|
+
/**
|
|
26695
|
+
* UnauthorizedError
|
|
26696
|
+
*/
|
|
26697
|
+
401: UnauthorizedError;
|
|
26698
|
+
/**
|
|
26699
|
+
* ForbiddenError
|
|
26700
|
+
*/
|
|
26701
|
+
403: ForbiddenError;
|
|
26702
|
+
/**
|
|
26703
|
+
* ResourceNotFoundError
|
|
26704
|
+
*/
|
|
26705
|
+
404: ResourceNotFoundError;
|
|
26706
|
+
/**
|
|
26707
|
+
* ConflictError
|
|
26708
|
+
*/
|
|
26709
|
+
409: ConflictError;
|
|
26710
|
+
/**
|
|
26711
|
+
* ValidationError
|
|
26712
|
+
*/
|
|
26713
|
+
422: ValidationError;
|
|
26714
|
+
/**
|
|
26715
|
+
* InternalError
|
|
26716
|
+
*/
|
|
26717
|
+
500: InternalError;
|
|
26718
|
+
/**
|
|
26719
|
+
* GatewayTimeoutError
|
|
26720
|
+
*/
|
|
26721
|
+
504: GatewayTimeoutError;
|
|
26722
|
+
};
|
|
26723
|
+
export type MailboxesCompleteImportUploadError = MailboxesCompleteImportUploadErrors[keyof MailboxesCompleteImportUploadErrors];
|
|
26724
|
+
export type MailboxesCompleteImportUploadResponses = {
|
|
26725
|
+
/**
|
|
26726
|
+
* SuccessResponse
|
|
26727
|
+
*/
|
|
26728
|
+
200: SuccessResponse;
|
|
26729
|
+
};
|
|
26730
|
+
export type MailboxesCompleteImportUploadResponse = MailboxesCompleteImportUploadResponses[keyof MailboxesCompleteImportUploadResponses];
|
|
26731
|
+
export type MailboxesDiscardImportUploadData = {
|
|
26600
26732
|
body?: never;
|
|
26601
26733
|
path: {
|
|
26602
26734
|
id: MailboxId;
|
|
26603
26735
|
importId: string;
|
|
26736
|
+
archiveId: string;
|
|
26604
26737
|
};
|
|
26605
26738
|
query?: never;
|
|
26606
|
-
url: "/v1/mailboxes/{id}/imports/{importId}/
|
|
26739
|
+
url: "/v1/mailboxes/{id}/imports/{importId}/uploads/{archiveId}";
|
|
26607
26740
|
};
|
|
26608
|
-
export type
|
|
26741
|
+
export type MailboxesDiscardImportUploadErrors = {
|
|
26609
26742
|
/**
|
|
26610
26743
|
* MalformedRequestError
|
|
26611
26744
|
*/
|
|
@@ -26639,14 +26772,65 @@ export type MailboxesStartImportErrors = {
|
|
|
26639
26772
|
*/
|
|
26640
26773
|
504: GatewayTimeoutError;
|
|
26641
26774
|
};
|
|
26642
|
-
export type
|
|
26643
|
-
export type
|
|
26775
|
+
export type MailboxesDiscardImportUploadError = MailboxesDiscardImportUploadErrors[keyof MailboxesDiscardImportUploadErrors];
|
|
26776
|
+
export type MailboxesDiscardImportUploadResponses = {
|
|
26644
26777
|
/**
|
|
26645
|
-
*
|
|
26778
|
+
* SuccessResponse
|
|
26646
26779
|
*/
|
|
26647
|
-
200:
|
|
26780
|
+
200: SuccessResponse;
|
|
26648
26781
|
};
|
|
26649
|
-
export type
|
|
26782
|
+
export type MailboxesDiscardImportUploadResponse = MailboxesDiscardImportUploadResponses[keyof MailboxesDiscardImportUploadResponses];
|
|
26783
|
+
export type MailboxesDiscardImportData = {
|
|
26784
|
+
body?: never;
|
|
26785
|
+
path: {
|
|
26786
|
+
id: MailboxId;
|
|
26787
|
+
importId: string;
|
|
26788
|
+
};
|
|
26789
|
+
query?: never;
|
|
26790
|
+
url: "/v1/mailboxes/{id}/imports/{importId}";
|
|
26791
|
+
};
|
|
26792
|
+
export type MailboxesDiscardImportErrors = {
|
|
26793
|
+
/**
|
|
26794
|
+
* MalformedRequestError
|
|
26795
|
+
*/
|
|
26796
|
+
400: MalformedRequestError;
|
|
26797
|
+
/**
|
|
26798
|
+
* UnauthorizedError
|
|
26799
|
+
*/
|
|
26800
|
+
401: UnauthorizedError;
|
|
26801
|
+
/**
|
|
26802
|
+
* ForbiddenError
|
|
26803
|
+
*/
|
|
26804
|
+
403: ForbiddenError;
|
|
26805
|
+
/**
|
|
26806
|
+
* ResourceNotFoundError
|
|
26807
|
+
*/
|
|
26808
|
+
404: ResourceNotFoundError;
|
|
26809
|
+
/**
|
|
26810
|
+
* ConflictError
|
|
26811
|
+
*/
|
|
26812
|
+
409: ConflictError;
|
|
26813
|
+
/**
|
|
26814
|
+
* ValidationError
|
|
26815
|
+
*/
|
|
26816
|
+
422: ValidationError;
|
|
26817
|
+
/**
|
|
26818
|
+
* InternalError
|
|
26819
|
+
*/
|
|
26820
|
+
500: InternalError;
|
|
26821
|
+
/**
|
|
26822
|
+
* GatewayTimeoutError
|
|
26823
|
+
*/
|
|
26824
|
+
504: GatewayTimeoutError;
|
|
26825
|
+
};
|
|
26826
|
+
export type MailboxesDiscardImportError = MailboxesDiscardImportErrors[keyof MailboxesDiscardImportErrors];
|
|
26827
|
+
export type MailboxesDiscardImportResponses = {
|
|
26828
|
+
/**
|
|
26829
|
+
* SuccessResponse
|
|
26830
|
+
*/
|
|
26831
|
+
200: SuccessResponse;
|
|
26832
|
+
};
|
|
26833
|
+
export type MailboxesDiscardImportResponse = MailboxesDiscardImportResponses[keyof MailboxesDiscardImportResponses];
|
|
26650
26834
|
export type MailboxesGetImportData = {
|
|
26651
26835
|
body?: never;
|
|
26652
26836
|
path: {
|
|
@@ -26694,6 +26878,57 @@ export type MailboxesGetImportResponses = {
|
|
|
26694
26878
|
200: MailHistoryImportJob;
|
|
26695
26879
|
};
|
|
26696
26880
|
export type MailboxesGetImportResponse = MailboxesGetImportResponses[keyof MailboxesGetImportResponses];
|
|
26881
|
+
export type MailboxesStartImportData = {
|
|
26882
|
+
body?: never;
|
|
26883
|
+
path: {
|
|
26884
|
+
id: MailboxId;
|
|
26885
|
+
importId: string;
|
|
26886
|
+
};
|
|
26887
|
+
query?: never;
|
|
26888
|
+
url: "/v1/mailboxes/{id}/imports/{importId}/start";
|
|
26889
|
+
};
|
|
26890
|
+
export type MailboxesStartImportErrors = {
|
|
26891
|
+
/**
|
|
26892
|
+
* MalformedRequestError
|
|
26893
|
+
*/
|
|
26894
|
+
400: MalformedRequestError;
|
|
26895
|
+
/**
|
|
26896
|
+
* UnauthorizedError
|
|
26897
|
+
*/
|
|
26898
|
+
401: UnauthorizedError;
|
|
26899
|
+
/**
|
|
26900
|
+
* ForbiddenError
|
|
26901
|
+
*/
|
|
26902
|
+
403: ForbiddenError;
|
|
26903
|
+
/**
|
|
26904
|
+
* ResourceNotFoundError
|
|
26905
|
+
*/
|
|
26906
|
+
404: ResourceNotFoundError;
|
|
26907
|
+
/**
|
|
26908
|
+
* ConflictError
|
|
26909
|
+
*/
|
|
26910
|
+
409: ConflictError;
|
|
26911
|
+
/**
|
|
26912
|
+
* ValidationError
|
|
26913
|
+
*/
|
|
26914
|
+
422: ValidationError;
|
|
26915
|
+
/**
|
|
26916
|
+
* InternalError
|
|
26917
|
+
*/
|
|
26918
|
+
500: InternalError;
|
|
26919
|
+
/**
|
|
26920
|
+
* GatewayTimeoutError
|
|
26921
|
+
*/
|
|
26922
|
+
504: GatewayTimeoutError;
|
|
26923
|
+
};
|
|
26924
|
+
export type MailboxesStartImportError = MailboxesStartImportErrors[keyof MailboxesStartImportErrors];
|
|
26925
|
+
export type MailboxesStartImportResponses = {
|
|
26926
|
+
/**
|
|
26927
|
+
* MailHistoryImportJob
|
|
26928
|
+
*/
|
|
26929
|
+
200: MailHistoryImportJob;
|
|
26930
|
+
};
|
|
26931
|
+
export type MailboxesStartImportResponse = MailboxesStartImportResponses[keyof MailboxesStartImportResponses];
|
|
26697
26932
|
export type MailboxesListImportsData = {
|
|
26698
26933
|
body?: never;
|
|
26699
26934
|
path: {
|
|
@@ -32790,9 +33025,12 @@ export type TemplateRegistrationsListResponses = {
|
|
|
32790
33025
|
};
|
|
32791
33026
|
export type TemplateRegistrationsListResponse = TemplateRegistrationsListResponses[keyof TemplateRegistrationsListResponses];
|
|
32792
33027
|
export type TemplateRegistrationsSubmitData = {
|
|
33028
|
+
/**
|
|
33029
|
+
* For an immediate submission, `businessAccountId` is the connected number to register on and defaults to the number for the template's scope.
|
|
33030
|
+
*/
|
|
32793
33031
|
body: {
|
|
32794
33032
|
provider: "whatsapp";
|
|
32795
|
-
businessAccountId?:
|
|
33033
|
+
businessAccountId?: WhatsAppBusinessAccountId | undefined;
|
|
32796
33034
|
approval?: TemplateRegistrationApproval | undefined;
|
|
32797
33035
|
};
|
|
32798
33036
|
path: {
|
package/dist/effect/agents.d.ts
CHANGED
|
@@ -110,7 +110,7 @@ export declare const list: ((input?: {
|
|
|
110
110
|
readonly updatedAt: string;
|
|
111
111
|
}[];
|
|
112
112
|
readonly nextCursor: string | null;
|
|
113
|
-
}, import("./errors.js").ForbiddenError | import("./errors.js").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors.js").InternalError | import("./errors.js").MalformedRequestError | import("effect/Schema").SchemaError | import("./errors.js").UnauthorizedError | import("./errors.js").ValidationError, import("./client.js").Service>;
|
|
113
|
+
}, import("./errors.js").ForbiddenError | import("./errors.js").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors.js").InternalError | import("./errors.js").MalformedRequestError | import("./errors.js").SamvaTimeoutError | import("effect/Schema").SchemaError | import("./errors.js").UnauthorizedError | import("./errors.js").ValidationError, import("./client.js").Service>;
|
|
114
114
|
readonly items: (input?: {
|
|
115
115
|
readonly limit?: number | null | undefined;
|
|
116
116
|
readonly cursor?: string | undefined;
|
|
@@ -127,7 +127,7 @@ export declare const list: ((input?: {
|
|
|
127
127
|
readonly monthlySpendCapDollars: number | null;
|
|
128
128
|
readonly createdAt: string;
|
|
129
129
|
readonly updatedAt: string;
|
|
130
|
-
}, import("./errors.js").ForbiddenError | import("./errors.js").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors.js").InternalError | import("./errors.js").MalformedRequestError | import("effect/Schema").SchemaError | import("./errors.js").UnauthorizedError | import("./errors.js").ValidationError, import("./client.js").Service>;
|
|
130
|
+
}, import("./errors.js").ForbiddenError | import("./errors.js").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors.js").InternalError | import("./errors.js").MalformedRequestError | import("./errors.js").SamvaTimeoutError | import("effect/Schema").SchemaError | import("./errors.js").UnauthorizedError | import("./errors.js").ValidationError, import("./client.js").Service>;
|
|
131
131
|
};
|
|
132
132
|
export declare const create: (input: {
|
|
133
133
|
readonly name: string;
|
|
@@ -568,7 +568,7 @@ export declare const listVersions: ((input: {
|
|
|
568
568
|
readonly publishedAt: string;
|
|
569
569
|
}[];
|
|
570
570
|
readonly nextCursor: string | null;
|
|
571
|
-
}, import("./errors.js").ForbiddenError | import("./errors.js").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors.js").InternalError | import("./errors.js").MalformedRequestError | import("./errors.js").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors.js").UnauthorizedError | import("./errors.js").ValidationError, import("./client.js").Service>;
|
|
571
|
+
}, import("./errors.js").ForbiddenError | import("./errors.js").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors.js").InternalError | import("./errors.js").MalformedRequestError | import("./errors.js").ResourceNotFoundError | import("./errors.js").SamvaTimeoutError | import("effect/Schema").SchemaError | import("./errors.js").UnauthorizedError | import("./errors.js").ValidationError, import("./client.js").Service>;
|
|
572
572
|
readonly items: (input: {
|
|
573
573
|
readonly id: string;
|
|
574
574
|
readonly limit?: number | null | undefined;
|
|
@@ -679,7 +679,7 @@ export declare const listVersions: ((input: {
|
|
|
679
679
|
};
|
|
680
680
|
readonly authoring: "builder" | "code";
|
|
681
681
|
readonly publishedAt: string;
|
|
682
|
-
}, import("./errors.js").ForbiddenError | import("./errors.js").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors.js").InternalError | import("./errors.js").MalformedRequestError | import("./errors.js").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors.js").UnauthorizedError | import("./errors.js").ValidationError, import("./client.js").Service>;
|
|
682
|
+
}, import("./errors.js").ForbiddenError | import("./errors.js").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors.js").InternalError | import("./errors.js").MalformedRequestError | import("./errors.js").ResourceNotFoundError | import("./errors.js").SamvaTimeoutError | import("effect/Schema").SchemaError | import("./errors.js").UnauthorizedError | import("./errors.js").ValidationError, import("./client.js").Service>;
|
|
683
683
|
};
|
|
684
684
|
export declare const continueOnStandard: (input: {
|
|
685
685
|
readonly id: string;
|
|
@@ -89,11 +89,10 @@ export declare const list: ((input?: {
|
|
|
89
89
|
readonly owner: {
|
|
90
90
|
readonly id: string;
|
|
91
91
|
readonly name: string;
|
|
92
|
-
readonly email: string;
|
|
93
92
|
} | null;
|
|
94
93
|
}[];
|
|
95
94
|
readonly nextCursor: string | null;
|
|
96
|
-
}, import("./errors.js").ForbiddenError | import("./errors.js").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors.js").InternalError | import("./errors.js").MalformedRequestError | import("effect/Schema").SchemaError | import("./errors.js").UnauthorizedError | import("./errors.js").ValidationError, import("./client.js").Service>;
|
|
95
|
+
}, import("./errors.js").ForbiddenError | import("./errors.js").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors.js").InternalError | import("./errors.js").MalformedRequestError | import("./errors.js").SamvaTimeoutError | import("effect/Schema").SchemaError | import("./errors.js").UnauthorizedError | import("./errors.js").ValidationError, import("./client.js").Service>;
|
|
97
96
|
readonly items: (input?: {
|
|
98
97
|
readonly limit?: number | null | undefined;
|
|
99
98
|
readonly cursor?: string | undefined;
|
|
@@ -143,9 +142,8 @@ export declare const list: ((input?: {
|
|
|
143
142
|
readonly owner: {
|
|
144
143
|
readonly id: string;
|
|
145
144
|
readonly name: string;
|
|
146
|
-
readonly email: string;
|
|
147
145
|
} | null;
|
|
148
|
-
}, import("./errors.js").ForbiddenError | import("./errors.js").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors.js").InternalError | import("./errors.js").MalformedRequestError | import("effect/Schema").SchemaError | import("./errors.js").UnauthorizedError | import("./errors.js").ValidationError, import("./client.js").Service>;
|
|
146
|
+
}, import("./errors.js").ForbiddenError | import("./errors.js").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors.js").InternalError | import("./errors.js").MalformedRequestError | import("./errors.js").SamvaTimeoutError | import("effect/Schema").SchemaError | import("./errors.js").UnauthorizedError | import("./errors.js").ValidationError, import("./client.js").Service>;
|
|
149
147
|
};
|
|
150
148
|
export declare const get: (input: {
|
|
151
149
|
readonly id: string;
|
|
@@ -185,7 +183,7 @@ export declare const getActivity: ((input: {
|
|
|
185
183
|
readonly latency: number;
|
|
186
184
|
}[];
|
|
187
185
|
readonly nextCursor: string | null;
|
|
188
|
-
}, import("./errors.js").ForbiddenError | import("./errors.js").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors.js").InternalError | import("./errors.js").MalformedRequestError | import("./errors.js").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors.js").UnauthorizedError | import("./errors.js").ValidationError, import("./client.js").Service>;
|
|
186
|
+
}, import("./errors.js").ForbiddenError | import("./errors.js").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors.js").InternalError | import("./errors.js").MalformedRequestError | import("./errors.js").ResourceNotFoundError | import("./errors.js").SamvaTimeoutError | import("effect/Schema").SchemaError | import("./errors.js").UnauthorizedError | import("./errors.js").ValidationError, import("./client.js").Service>;
|
|
189
187
|
readonly items: (input: {
|
|
190
188
|
readonly id: string;
|
|
191
189
|
readonly limit?: number | null | undefined;
|
|
@@ -197,5 +195,5 @@ export declare const getActivity: ((input: {
|
|
|
197
195
|
readonly endpoint: string;
|
|
198
196
|
readonly statusCode: number;
|
|
199
197
|
readonly latency: number;
|
|
200
|
-
}, import("./errors.js").ForbiddenError | import("./errors.js").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors.js").InternalError | import("./errors.js").MalformedRequestError | import("./errors.js").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors.js").UnauthorizedError | import("./errors.js").ValidationError, import("./client.js").Service>;
|
|
198
|
+
}, import("./errors.js").ForbiddenError | import("./errors.js").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors.js").InternalError | import("./errors.js").MalformedRequestError | import("./errors.js").ResourceNotFoundError | import("./errors.js").SamvaTimeoutError | import("effect/Schema").SchemaError | import("./errors.js").UnauthorizedError | import("./errors.js").ValidationError, import("./client.js").Service>;
|
|
201
199
|
};
|