samva 0.48.0 → 0.50.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/dist/client/sdk.gen.d.ts +272 -33
- package/dist/client/sdk.gen.js +693 -55
- package/dist/client/types.gen.d.ts +1571 -206
- package/dist/effect/accounts.d.ts +6 -6
- package/dist/effect/agents.d.ts +13 -13
- package/dist/effect/analytics.d.ts +6 -6
- package/dist/effect/api-keys.d.ts +11 -11
- package/dist/effect/approval-requests.d.ts +4 -4
- package/dist/effect/attachments.d.ts +4 -4
- package/dist/effect/brands.d.ts +6 -6
- package/dist/effect/campaigns.d.ts +15 -15
- package/dist/effect/contact-groups.d.ts +10 -10
- package/dist/effect/contacts.d.ts +25 -25
- package/dist/effect/conversations.d.ts +13 -13
- package/dist/effect/custom-fields.d.ts +4 -4
- package/dist/effect/descriptors/integrations-catalog.d.ts +134 -0
- package/dist/effect/descriptors/integrations-catalog.js +122 -0
- package/dist/effect/descriptors/mailboxes.d.ts +73 -13
- package/dist/effect/descriptors/mailboxes.js +85 -13
- package/dist/effect/email.d.ts +61 -61
- package/dist/effect/events.d.ts +2 -2
- package/dist/effect/feedback.d.ts +1 -1
- package/dist/effect/generated/accounts.d.ts +1 -3
- package/dist/effect/generated/accounts.js +2 -7
- package/dist/effect/generated/api-keys.d.ts +15 -15
- package/dist/effect/generated/attachments.js +1 -1
- package/dist/effect/generated/integrations-catalog.d.ts +2702 -1
- package/dist/effect/generated/integrations-catalog.js +578 -3
- package/dist/effect/generated/journeys.d.ts +9 -11
- package/dist/effect/generated/journeys.js +6 -12
- package/dist/effect/generated/mailboxes.d.ts +1661 -669
- package/dist/effect/generated/mailboxes.js +291 -103
- package/dist/effect/generated/messages.d.ts +109 -4
- package/dist/effect/generated/messages.js +41 -8
- package/dist/effect/generated/shared.d.ts +199 -21
- package/dist/effect/generated/shared.js +50 -13
- package/dist/effect/generated/template-registrations.d.ts +32 -1
- package/dist/effect/generated/template-registrations.js +8 -5
- package/dist/effect/generated/templates.d.ts +1 -4
- package/dist/effect/generated/templates.js +2 -6
- package/dist/effect/generated/webhooks.d.ts +19 -19
- package/dist/effect/generated/webhooks.js +8 -8
- package/dist/effect/generated/whoami.d.ts +4 -4
- package/dist/effect/generated-metadata.d.ts +138 -18
- package/dist/effect/generated-metadata.js +366 -340
- package/dist/effect/integrations-catalog.d.ts +228 -3
- package/dist/effect/integrations-catalog.js +29 -1
- package/dist/effect/integrations.d.ts +7 -7
- package/dist/effect/internal/client.d.ts +7 -3
- package/dist/effect/internal/operation.d.ts +10 -6
- package/dist/effect/internal/operation.js +3 -3
- package/dist/effect/journeys.d.ts +14 -14
- package/dist/effect/mailboxes.d.ts +142 -92
- package/dist/effect/mailboxes.js +20 -8
- package/dist/effect/media.d.ts +5 -5
- package/dist/effect/messages.d.ts +9 -9
- package/dist/effect/namespaces.d.ts +11 -11
- package/dist/effect/newsletter-domains.d.ts +4 -4
- package/dist/effect/newsletter-issues.d.ts +11 -11
- package/dist/effect/newsletters.d.ts +5 -5
- package/dist/effect/operations.d.ts +3 -3
- package/dist/effect/organizations.d.ts +12 -12
- package/dist/effect/policies.d.ts +3 -3
- package/dist/effect/retry.js +1 -1
- package/dist/effect/scheduled-messages.d.ts +5 -5
- package/dist/effect/subscriptions.d.ts +1 -1
- package/dist/effect/template-registrations.d.ts +9 -3
- package/dist/effect/template-share-links.d.ts +5 -5
- package/dist/effect/templates.d.ts +37 -37
- package/dist/effect/topic-forms.d.ts +5 -5
- package/dist/effect/topics.d.ts +9 -9
- package/dist/effect/webhooks.d.ts +15 -15
- package/dist/effect/whatsapp-flows.d.ts +10 -10
- package/dist/effect/whatsapp-setup-links.d.ts +4 -4
- package/dist/effect/whatsapp.d.ts +12 -12
- package/dist/effect/whoami.d.ts +1 -1
- package/dist/inline-attachments.d.ts +0 -5
- package/dist/mailbox-events.d.ts +1 -5
- package/dist/mailbox-events.js +2 -2
- package/dist/package.js +1 -1
- package/dist/promises/client.d.ts +4 -4
- package/dist/promises/client.js +8 -4
- package/dist/promises/types.gen.d.ts +1 -1
- package/dist/service-map.d.ts +105 -11
- package/package.json +3 -3
package/dist/client/sdk.gen.js
CHANGED
|
@@ -257,7 +257,7 @@ var Messages = class {
|
|
|
257
257
|
/**
|
|
258
258
|
* List message deliveries
|
|
259
259
|
*
|
|
260
|
-
* Returns
|
|
260
|
+
* Returns per-recipient queueing, provider acceptance (sentAt), delivery and read times, failures and waits. Includes recipients skipped at admission and the first reply linked by a message reference. Mailbox endpoints and threads require mailbox read access.
|
|
261
261
|
*/
|
|
262
262
|
static listDeliveries(parameters, options) {
|
|
263
263
|
const params = buildClientParams([parameters], [{ args: [{
|
|
@@ -305,7 +305,7 @@ var Messages = class {
|
|
|
305
305
|
/**
|
|
306
306
|
* Get email message details
|
|
307
307
|
*
|
|
308
|
-
* Returns email delivery details for a message, optionally including signed URLs for its raw MIME, HTML, and text content.
|
|
308
|
+
* Returns email delivery details for a message, optionally including signed URLs for its raw MIME, HTML, and text content. Requesting download URLs for inbound email without a passing malware scan returns 404 (`ResourceNotFoundError`). Omit `includeDownloadUrls` to read the details.
|
|
309
309
|
*/
|
|
310
310
|
static getEmail(parameters, options) {
|
|
311
311
|
const params = buildClientParams([parameters], [{ args: [
|
|
@@ -3394,7 +3394,7 @@ var Attachments = class {
|
|
|
3394
3394
|
/**
|
|
3395
3395
|
* Get an attachment download URL
|
|
3396
3396
|
*
|
|
3397
|
-
* Generates a presigned, time-limited download URL for the attachment
|
|
3397
|
+
* Generates a presigned, time-limited download URL for the attachment. Set `expiresIn` to configure expiry. Returns 404 (`ResourceNotFoundError`) for an inbound email attachment without a passing malware scan.
|
|
3398
3398
|
*/
|
|
3399
3399
|
static downloadUrl(parameters, options) {
|
|
3400
3400
|
const params = buildClientParams([parameters], [{ args: [{
|
|
@@ -5922,6 +5922,431 @@ var Accounts = class {
|
|
|
5922
5922
|
}
|
|
5923
5923
|
};
|
|
5924
5924
|
var IntegrationCatalog = class {
|
|
5925
|
+
/**
|
|
5926
|
+
* Get a Shopify or WhatsApp browser connection handoff
|
|
5927
|
+
*
|
|
5928
|
+
* Returns a browser link for an organization administrator. Shopify opens the saved check-in when setupId is supplied and the Shopify integration page otherwise. WhatsApp opens its settings page with the specified account, if any, even when setupId is supplied. Provider authorization takes place in the browser.
|
|
5929
|
+
*/
|
|
5930
|
+
static recipeConnectionHandoff(parameters, options) {
|
|
5931
|
+
const params = buildClientParams([parameters], [{ args: [
|
|
5932
|
+
{
|
|
5933
|
+
in: "path",
|
|
5934
|
+
key: "provider"
|
|
5935
|
+
},
|
|
5936
|
+
{
|
|
5937
|
+
in: "query",
|
|
5938
|
+
key: "integrationAccountId"
|
|
5939
|
+
},
|
|
5940
|
+
{
|
|
5941
|
+
in: "query",
|
|
5942
|
+
key: "whatsappAccountId"
|
|
5943
|
+
},
|
|
5944
|
+
{
|
|
5945
|
+
in: "query",
|
|
5946
|
+
key: "setupId"
|
|
5947
|
+
}
|
|
5948
|
+
] }]);
|
|
5949
|
+
return requestWithPolicy(options?.client ?? client, "integrationCatalogRecipeConnectionHandoff", options, (headers) => (options?.client ?? client).get({
|
|
5950
|
+
security: [{
|
|
5951
|
+
name: "x-api-key",
|
|
5952
|
+
type: "apiKey"
|
|
5953
|
+
}],
|
|
5954
|
+
url: "/v1/integrations/catalog/recipes/post-delivery-check-in/connections/{provider}",
|
|
5955
|
+
...options,
|
|
5956
|
+
...params,
|
|
5957
|
+
headers: {
|
|
5958
|
+
...headers,
|
|
5959
|
+
...params.headers
|
|
5960
|
+
}
|
|
5961
|
+
}));
|
|
5962
|
+
}
|
|
5963
|
+
/**
|
|
5964
|
+
* Get a browser handoff for a verified owner test
|
|
5965
|
+
*
|
|
5966
|
+
* Opens the owner review screen for the specified publication and reply mailbox endpoint. Creating this link submits no message or provider request.
|
|
5967
|
+
*/
|
|
5968
|
+
static recipeTestHandoff(parameters, options) {
|
|
5969
|
+
const params = buildClientParams([parameters], [{ args: [
|
|
5970
|
+
{
|
|
5971
|
+
in: "query",
|
|
5972
|
+
key: "channel"
|
|
5973
|
+
},
|
|
5974
|
+
{
|
|
5975
|
+
in: "query",
|
|
5976
|
+
key: "templateId"
|
|
5977
|
+
},
|
|
5978
|
+
{
|
|
5979
|
+
in: "query",
|
|
5980
|
+
key: "publicationId"
|
|
5981
|
+
},
|
|
5982
|
+
{
|
|
5983
|
+
in: "query",
|
|
5984
|
+
key: "mailboxEndpointId"
|
|
5985
|
+
},
|
|
5986
|
+
{
|
|
5987
|
+
in: "query",
|
|
5988
|
+
key: "fixture"
|
|
5989
|
+
},
|
|
5990
|
+
{
|
|
5991
|
+
in: "query",
|
|
5992
|
+
key: "senderId"
|
|
5993
|
+
},
|
|
5994
|
+
{
|
|
5995
|
+
in: "query",
|
|
5996
|
+
key: "businessAccountId"
|
|
5997
|
+
},
|
|
5998
|
+
{
|
|
5999
|
+
in: "query",
|
|
6000
|
+
key: "registrationId"
|
|
6001
|
+
}
|
|
6002
|
+
] }]);
|
|
6003
|
+
return requestWithPolicy(options?.client ?? client, "integrationCatalogRecipeTestHandoff", options, (headers) => (options?.client ?? client).get({
|
|
6004
|
+
security: [{
|
|
6005
|
+
name: "x-api-key",
|
|
6006
|
+
type: "apiKey"
|
|
6007
|
+
}],
|
|
6008
|
+
url: "/v1/integrations/catalog/recipes/post-delivery-check-in/owner-test/handoff",
|
|
6009
|
+
...options,
|
|
6010
|
+
...params,
|
|
6011
|
+
headers: {
|
|
6012
|
+
...headers,
|
|
6013
|
+
...params.headers
|
|
6014
|
+
}
|
|
6015
|
+
}));
|
|
6016
|
+
}
|
|
6017
|
+
/**
|
|
6018
|
+
* List saved post-delivery check-in setups
|
|
6019
|
+
*
|
|
6020
|
+
* Requires organization-wide access. Lists the 100 most recently updated selections the caller can read. Read live readiness separately.
|
|
6021
|
+
*/
|
|
6022
|
+
static recipeSetupsList(options) {
|
|
6023
|
+
return requestWithPolicy(options?.client ?? client, "integrationCatalogRecipeSetupsList", options, (headers) => (options?.client ?? client).get({
|
|
6024
|
+
security: [{
|
|
6025
|
+
name: "x-api-key",
|
|
6026
|
+
type: "apiKey"
|
|
6027
|
+
}],
|
|
6028
|
+
url: "/v1/integrations/catalog/recipes/post-delivery-check-in/setups",
|
|
6029
|
+
...options,
|
|
6030
|
+
headers: { ...headers }
|
|
6031
|
+
}));
|
|
6032
|
+
}
|
|
6033
|
+
/**
|
|
6034
|
+
* Read post-delivery check-in setup references
|
|
6035
|
+
*
|
|
6036
|
+
* Requires organization-wide access. Returns the saved resource IDs and revision for a setup the caller can read.
|
|
6037
|
+
*/
|
|
6038
|
+
static recipeSetupGet(parameters, options) {
|
|
6039
|
+
const params = buildClientParams([parameters], [{ args: [{
|
|
6040
|
+
in: "path",
|
|
6041
|
+
key: "id"
|
|
6042
|
+
}] }]);
|
|
6043
|
+
return requestWithPolicy(options?.client ?? client, "integrationCatalogRecipeSetupGet", options, (headers) => (options?.client ?? client).get({
|
|
6044
|
+
security: [{
|
|
6045
|
+
name: "x-api-key",
|
|
6046
|
+
type: "apiKey"
|
|
6047
|
+
}],
|
|
6048
|
+
url: "/v1/integrations/catalog/recipes/post-delivery-check-in/setups/{id}",
|
|
6049
|
+
...options,
|
|
6050
|
+
...params,
|
|
6051
|
+
headers: {
|
|
6052
|
+
...headers,
|
|
6053
|
+
...params.headers
|
|
6054
|
+
}
|
|
6055
|
+
}));
|
|
6056
|
+
}
|
|
6057
|
+
/**
|
|
6058
|
+
* Save post-delivery check-in setup references
|
|
6059
|
+
*
|
|
6060
|
+
* Requires organization-wide access. Creates a setup under a new UUID with a null revision or replaces it with its current revision. Validates references without submitting provider requests.
|
|
6061
|
+
*/
|
|
6062
|
+
static recipeSetupReplace(parameters, options) {
|
|
6063
|
+
const params = buildClientParams([parameters], [{ args: [
|
|
6064
|
+
{
|
|
6065
|
+
in: "path",
|
|
6066
|
+
key: "id"
|
|
6067
|
+
},
|
|
6068
|
+
{
|
|
6069
|
+
in: "body",
|
|
6070
|
+
key: "references"
|
|
6071
|
+
},
|
|
6072
|
+
{
|
|
6073
|
+
in: "body",
|
|
6074
|
+
key: "revision"
|
|
6075
|
+
}
|
|
6076
|
+
] }]);
|
|
6077
|
+
return requestWithPolicy(options?.client ?? client, "integrationCatalogRecipeSetupReplace", options, (headers) => (options?.client ?? client).put({
|
|
6078
|
+
security: [{
|
|
6079
|
+
name: "x-api-key",
|
|
6080
|
+
type: "apiKey"
|
|
6081
|
+
}],
|
|
6082
|
+
url: "/v1/integrations/catalog/recipes/post-delivery-check-in/setups/{id}",
|
|
6083
|
+
...options,
|
|
6084
|
+
...params,
|
|
6085
|
+
body: params.body ?? {},
|
|
6086
|
+
headers: {
|
|
6087
|
+
"Content-Type": "application/json",
|
|
6088
|
+
...headers,
|
|
6089
|
+
...params.headers
|
|
6090
|
+
}
|
|
6091
|
+
}));
|
|
6092
|
+
}
|
|
6093
|
+
/**
|
|
6094
|
+
* Activate the reviewed Shopify post-delivery check-in
|
|
6095
|
+
*
|
|
6096
|
+
* Publishes the saved setup's reviewed send selection on its own journey. Reuse the same revision and selection after an interrupted response. A changed setup returns 409. Existing runs keep their published version.
|
|
6097
|
+
*/
|
|
6098
|
+
static recipeSetupActivate(parameters, options) {
|
|
6099
|
+
const params = buildClientParams([parameters], [{ args: [
|
|
6100
|
+
{
|
|
6101
|
+
in: "path",
|
|
6102
|
+
key: "id"
|
|
6103
|
+
},
|
|
6104
|
+
{
|
|
6105
|
+
in: "body",
|
|
6106
|
+
key: "revision"
|
|
6107
|
+
},
|
|
6108
|
+
{
|
|
6109
|
+
in: "body",
|
|
6110
|
+
key: "selection"
|
|
6111
|
+
}
|
|
6112
|
+
] }]);
|
|
6113
|
+
return requestWithPolicy(options?.client ?? client, "integrationCatalogRecipeSetupActivate", options, (headers) => (options?.client ?? client).post({
|
|
6114
|
+
security: [{
|
|
6115
|
+
name: "x-api-key",
|
|
6116
|
+
type: "apiKey"
|
|
6117
|
+
}],
|
|
6118
|
+
url: "/v1/integrations/catalog/recipes/post-delivery-check-in/setups/{id}/activate",
|
|
6119
|
+
...options,
|
|
6120
|
+
...params,
|
|
6121
|
+
body: params.body ?? {},
|
|
6122
|
+
headers: {
|
|
6123
|
+
"Content-Type": "application/json",
|
|
6124
|
+
...headers,
|
|
6125
|
+
...params.headers
|
|
6126
|
+
}
|
|
6127
|
+
}));
|
|
6128
|
+
}
|
|
6129
|
+
/**
|
|
6130
|
+
* Render a check-in preview with a labelled sample order
|
|
6131
|
+
*
|
|
6132
|
+
* Renders the exact publication without sending, enrolling a recipient, or requiring a verified test destination.
|
|
6133
|
+
*/
|
|
6134
|
+
static recipePreview(parameters, options) {
|
|
6135
|
+
const params = { body: parameters };
|
|
6136
|
+
return requestWithPolicy(options?.client ?? client, "integrationCatalogRecipePreview", options, (headers) => (options?.client ?? client).post({
|
|
6137
|
+
security: [{
|
|
6138
|
+
name: "x-api-key",
|
|
6139
|
+
type: "apiKey"
|
|
6140
|
+
}],
|
|
6141
|
+
url: "/v1/integrations/catalog/recipes/post-delivery-check-in/preview",
|
|
6142
|
+
...options,
|
|
6143
|
+
...params,
|
|
6144
|
+
headers: {
|
|
6145
|
+
"Content-Type": "application/json",
|
|
6146
|
+
...headers,
|
|
6147
|
+
...params.headers
|
|
6148
|
+
}
|
|
6149
|
+
}));
|
|
6150
|
+
}
|
|
6151
|
+
/**
|
|
6152
|
+
* Open a WhatsApp owner verification challenge
|
|
6153
|
+
*
|
|
6154
|
+
* Requires a signed-in owner. The owner sends the returned code directly from their personal WhatsApp to the listed business number before the code expires.
|
|
6155
|
+
*/
|
|
6156
|
+
static recipeWhatsAppChallengeBegin(parameters, options) {
|
|
6157
|
+
const params = buildClientParams([parameters], [{ args: [{
|
|
6158
|
+
in: "path",
|
|
6159
|
+
key: "accountId"
|
|
6160
|
+
}] }]);
|
|
6161
|
+
return requestWithPolicy(options?.client ?? client, "integrationCatalogRecipeWhatsAppChallengeBegin", options, (headers) => (options?.client ?? client).post({
|
|
6162
|
+
security: [{
|
|
6163
|
+
name: "x-api-key",
|
|
6164
|
+
type: "apiKey"
|
|
6165
|
+
}],
|
|
6166
|
+
url: "/v1/integrations/catalog/recipes/post-delivery-check-in/owner-test/whatsapp/{accountId}/challenges",
|
|
6167
|
+
...options,
|
|
6168
|
+
...params,
|
|
6169
|
+
headers: {
|
|
6170
|
+
...headers,
|
|
6171
|
+
...params.headers
|
|
6172
|
+
}
|
|
6173
|
+
}));
|
|
6174
|
+
}
|
|
6175
|
+
/**
|
|
6176
|
+
* Read the observed sender for a WhatsApp owner challenge
|
|
6177
|
+
*
|
|
6178
|
+
* Requires the same signed-in owner. The observed phone is available only after authenticated inbound delivery on the selected business number.
|
|
6179
|
+
*/
|
|
6180
|
+
static recipeWhatsAppChallengeGet(parameters, options) {
|
|
6181
|
+
const params = buildClientParams([parameters], [{ args: [{
|
|
6182
|
+
in: "path",
|
|
6183
|
+
key: "accountId"
|
|
6184
|
+
}, {
|
|
6185
|
+
in: "path",
|
|
6186
|
+
key: "id"
|
|
6187
|
+
}] }]);
|
|
6188
|
+
return requestWithPolicy(options?.client ?? client, "integrationCatalogRecipeWhatsAppChallengeGet", options, (headers) => (options?.client ?? client).get({
|
|
6189
|
+
security: [{
|
|
6190
|
+
name: "x-api-key",
|
|
6191
|
+
type: "apiKey"
|
|
6192
|
+
}],
|
|
6193
|
+
url: "/v1/integrations/catalog/recipes/post-delivery-check-in/owner-test/whatsapp/{accountId}/challenges/{id}",
|
|
6194
|
+
...options,
|
|
6195
|
+
...params,
|
|
6196
|
+
headers: {
|
|
6197
|
+
...headers,
|
|
6198
|
+
...params.headers
|
|
6199
|
+
}
|
|
6200
|
+
}));
|
|
6201
|
+
}
|
|
6202
|
+
/**
|
|
6203
|
+
* Confirm the phone observed on a WhatsApp test challenge
|
|
6204
|
+
*
|
|
6205
|
+
* Requires the same signed-in owner and an exact match with the number reported by WhatsApp. Confirmation does not record consent.
|
|
6206
|
+
*/
|
|
6207
|
+
static recipeWhatsAppChallengeConfirm(parameters, options) {
|
|
6208
|
+
const params = buildClientParams([parameters], [{ args: [
|
|
6209
|
+
{
|
|
6210
|
+
in: "path",
|
|
6211
|
+
key: "accountId"
|
|
6212
|
+
},
|
|
6213
|
+
{
|
|
6214
|
+
in: "path",
|
|
6215
|
+
key: "id"
|
|
6216
|
+
},
|
|
6217
|
+
{
|
|
6218
|
+
in: "body",
|
|
6219
|
+
key: "observedPhone"
|
|
6220
|
+
}
|
|
6221
|
+
] }]);
|
|
6222
|
+
return requestWithPolicy(options?.client ?? client, "integrationCatalogRecipeWhatsAppChallengeConfirm", options, (headers) => (options?.client ?? client).post({
|
|
6223
|
+
security: [{
|
|
6224
|
+
name: "x-api-key",
|
|
6225
|
+
type: "apiKey"
|
|
6226
|
+
}],
|
|
6227
|
+
url: "/v1/integrations/catalog/recipes/post-delivery-check-in/owner-test/whatsapp/{accountId}/challenges/{id}/confirm",
|
|
6228
|
+
...options,
|
|
6229
|
+
...params,
|
|
6230
|
+
body: params.body ?? {},
|
|
6231
|
+
headers: {
|
|
6232
|
+
"Content-Type": "application/json",
|
|
6233
|
+
...headers,
|
|
6234
|
+
...params.headers
|
|
6235
|
+
}
|
|
6236
|
+
}));
|
|
6237
|
+
}
|
|
6238
|
+
/**
|
|
6239
|
+
* Run an owner-only test of a Shopify check-in
|
|
6240
|
+
*
|
|
6241
|
+
* Takes no recipient. Samva resolves the acting owner's signed-in verified email or confirmed WhatsApp challenge. Normal send admission, billing, suppression and consent apply. Reuse the same request ID to reconcile an uncertain response.
|
|
6242
|
+
*/
|
|
6243
|
+
static recipeTest(parameters, options) {
|
|
6244
|
+
const params = { body: parameters };
|
|
6245
|
+
return requestWithPolicy(options?.client ?? client, "integrationCatalogRecipeTest", options, (headers) => (options?.client ?? client).post({
|
|
6246
|
+
security: [{
|
|
6247
|
+
name: "x-api-key",
|
|
6248
|
+
type: "apiKey"
|
|
6249
|
+
}],
|
|
6250
|
+
url: "/v1/integrations/catalog/recipes/post-delivery-check-in/owner-test",
|
|
6251
|
+
...options,
|
|
6252
|
+
...params,
|
|
6253
|
+
headers: {
|
|
6254
|
+
"Content-Type": "application/json",
|
|
6255
|
+
...headers,
|
|
6256
|
+
...params.headers
|
|
6257
|
+
}
|
|
6258
|
+
}));
|
|
6259
|
+
}
|
|
6260
|
+
/**
|
|
6261
|
+
* Reconcile an owner test after an uncertain response
|
|
6262
|
+
*
|
|
6263
|
+
* Requires messages:read and the signed-in owner in the dashboard or Samva CLI. Returns that owner's test receipt by request ID. Read message deliveries for provider and reply state.
|
|
6264
|
+
*/
|
|
6265
|
+
static recipeTestReceipt(parameters, options) {
|
|
6266
|
+
const params = buildClientParams([parameters], [{ args: [{
|
|
6267
|
+
in: "path",
|
|
6268
|
+
key: "requestId"
|
|
6269
|
+
}] }]);
|
|
6270
|
+
return requestWithPolicy(options?.client ?? client, "integrationCatalogRecipeTestReceipt", options, (headers) => (options?.client ?? client).get({
|
|
6271
|
+
security: [{
|
|
6272
|
+
name: "x-api-key",
|
|
6273
|
+
type: "apiKey"
|
|
6274
|
+
}],
|
|
6275
|
+
url: "/v1/integrations/catalog/recipes/post-delivery-check-in/owner-test/{requestId}",
|
|
6276
|
+
...options,
|
|
6277
|
+
...params,
|
|
6278
|
+
headers: {
|
|
6279
|
+
...headers,
|
|
6280
|
+
...params.headers
|
|
6281
|
+
}
|
|
6282
|
+
}));
|
|
6283
|
+
}
|
|
6284
|
+
/**
|
|
6285
|
+
* List Shopify journey recipes and event inputs
|
|
6286
|
+
*
|
|
6287
|
+
* Returns recipe defaults, event property schemas and labelled sample payloads.
|
|
6288
|
+
*/
|
|
6289
|
+
static recipeCatalog(options) {
|
|
6290
|
+
return requestWithPolicy(options?.client ?? client, "integrationCatalogRecipeCatalog", options, (headers) => (options?.client ?? client).get({
|
|
6291
|
+
security: [{
|
|
6292
|
+
name: "x-api-key",
|
|
6293
|
+
type: "apiKey"
|
|
6294
|
+
}],
|
|
6295
|
+
url: "/v1/integrations/catalog/recipes",
|
|
6296
|
+
...options,
|
|
6297
|
+
headers: { ...headers }
|
|
6298
|
+
}));
|
|
6299
|
+
}
|
|
6300
|
+
/**
|
|
6301
|
+
* Read Shopify post-delivery check-in readiness
|
|
6302
|
+
*
|
|
6303
|
+
* Checks selected resources and current feature availability. A namespace caller sees its reachable resources. Shopify account and plan fields are null, and full recipe readiness requires organization-wide access. Omit the email sender or WhatsApp account to see the sender or number selected for the publication and caller scope. Requires email:read and domains:read for email, or whatsappAccounts:read for WhatsApp.
|
|
6304
|
+
*/
|
|
6305
|
+
static recipeReadiness(parameters, options) {
|
|
6306
|
+
const params = buildClientParams([parameters], [{ args: [
|
|
6307
|
+
{
|
|
6308
|
+
in: "query",
|
|
6309
|
+
key: "channel"
|
|
6310
|
+
},
|
|
6311
|
+
{
|
|
6312
|
+
in: "query",
|
|
6313
|
+
key: "integrationAccountId"
|
|
6314
|
+
},
|
|
6315
|
+
{
|
|
6316
|
+
in: "query",
|
|
6317
|
+
key: "publicationId"
|
|
6318
|
+
},
|
|
6319
|
+
{
|
|
6320
|
+
in: "query",
|
|
6321
|
+
key: "senderId"
|
|
6322
|
+
},
|
|
6323
|
+
{
|
|
6324
|
+
in: "query",
|
|
6325
|
+
key: "whatsappAccountId"
|
|
6326
|
+
},
|
|
6327
|
+
{
|
|
6328
|
+
in: "query",
|
|
6329
|
+
key: "registrationId"
|
|
6330
|
+
},
|
|
6331
|
+
{
|
|
6332
|
+
in: "query",
|
|
6333
|
+
key: "mailboxEndpointId"
|
|
6334
|
+
}
|
|
6335
|
+
] }]);
|
|
6336
|
+
return requestWithPolicy(options?.client ?? client, "integrationCatalogRecipeReadiness", options, (headers) => (options?.client ?? client).get({
|
|
6337
|
+
security: [{
|
|
6338
|
+
name: "x-api-key",
|
|
6339
|
+
type: "apiKey"
|
|
6340
|
+
}],
|
|
6341
|
+
url: "/v1/integrations/catalog/recipes/post-delivery-check-in/readiness",
|
|
6342
|
+
...options,
|
|
6343
|
+
...params,
|
|
6344
|
+
headers: {
|
|
6345
|
+
...headers,
|
|
6346
|
+
...params.headers
|
|
6347
|
+
}
|
|
6348
|
+
}));
|
|
6349
|
+
}
|
|
5925
6350
|
/**
|
|
5926
6351
|
* Prepare an integration connection
|
|
5927
6352
|
*
|
|
@@ -10783,7 +11208,7 @@ var Mailboxes = class {
|
|
|
10783
11208
|
/**
|
|
10784
11209
|
* Create a mail history upload
|
|
10785
11210
|
*
|
|
10786
|
-
*
|
|
11211
|
+
* Registers an mbox archive and returns the import ID, archive ID, and part size. Pass importId to append to a queued import. Request presigned URLs for the parts, upload them, then complete every archive before starting the import. Returns 402 when the import's archives total more than twice the organization's remaining mailbox storage.
|
|
10787
11212
|
*/
|
|
10788
11213
|
static createImportUpload(parameters, options) {
|
|
10789
11214
|
const params = buildClientParams([parameters], [{ args: [
|
|
@@ -10829,11 +11254,125 @@ var Mailboxes = class {
|
|
|
10829
11254
|
}));
|
|
10830
11255
|
}
|
|
10831
11256
|
/**
|
|
10832
|
-
*
|
|
11257
|
+
* Sign mail history upload parts
|
|
10833
11258
|
*
|
|
10834
|
-
*
|
|
11259
|
+
* Returns ten-minute presigned PUT URLs for up to 16 distinct, one-based part numbers. Send each contiguous part with the returned sizeBytes as Content-Length and keep its ETag response header. Request fresh URLs as needed.
|
|
10835
11260
|
*/
|
|
10836
|
-
static
|
|
11261
|
+
static signImportUploadParts(parameters, options) {
|
|
11262
|
+
const params = buildClientParams([parameters], [{ args: [
|
|
11263
|
+
{
|
|
11264
|
+
in: "path",
|
|
11265
|
+
key: "id"
|
|
11266
|
+
},
|
|
11267
|
+
{
|
|
11268
|
+
in: "path",
|
|
11269
|
+
key: "importId"
|
|
11270
|
+
},
|
|
11271
|
+
{
|
|
11272
|
+
in: "path",
|
|
11273
|
+
key: "archiveId"
|
|
11274
|
+
},
|
|
11275
|
+
{
|
|
11276
|
+
in: "body",
|
|
11277
|
+
key: "partNumbers"
|
|
11278
|
+
}
|
|
11279
|
+
] }]);
|
|
11280
|
+
return requestWithPolicy(options?.client ?? client, "mailboxesSignImportUploadParts", options, (headers) => (options?.client ?? client).post({
|
|
11281
|
+
security: [{
|
|
11282
|
+
name: "x-api-key",
|
|
11283
|
+
type: "apiKey"
|
|
11284
|
+
}],
|
|
11285
|
+
url: "/v1/mailboxes/{id}/imports/{importId}/uploads/{archiveId}/parts",
|
|
11286
|
+
...options,
|
|
11287
|
+
...params,
|
|
11288
|
+
body: params.body ?? {},
|
|
11289
|
+
headers: {
|
|
11290
|
+
"Content-Type": "application/json",
|
|
11291
|
+
...headers,
|
|
11292
|
+
...params.headers
|
|
11293
|
+
}
|
|
11294
|
+
}));
|
|
11295
|
+
}
|
|
11296
|
+
/**
|
|
11297
|
+
* Complete a mail history upload
|
|
11298
|
+
*
|
|
11299
|
+
* Assembles the archive using every part number and its ETag as returned by storage. A successful completion can be retried. Complete every archive before starting the import.
|
|
11300
|
+
*/
|
|
11301
|
+
static completeImportUpload(parameters, options) {
|
|
11302
|
+
const params = buildClientParams([parameters], [{ args: [
|
|
11303
|
+
{
|
|
11304
|
+
in: "path",
|
|
11305
|
+
key: "id"
|
|
11306
|
+
},
|
|
11307
|
+
{
|
|
11308
|
+
in: "path",
|
|
11309
|
+
key: "importId"
|
|
11310
|
+
},
|
|
11311
|
+
{
|
|
11312
|
+
in: "path",
|
|
11313
|
+
key: "archiveId"
|
|
11314
|
+
},
|
|
11315
|
+
{
|
|
11316
|
+
in: "body",
|
|
11317
|
+
key: "parts"
|
|
11318
|
+
}
|
|
11319
|
+
] }]);
|
|
11320
|
+
return requestWithPolicy(options?.client ?? client, "mailboxesCompleteImportUpload", options, (headers) => (options?.client ?? client).post({
|
|
11321
|
+
security: [{
|
|
11322
|
+
name: "x-api-key",
|
|
11323
|
+
type: "apiKey"
|
|
11324
|
+
}],
|
|
11325
|
+
url: "/v1/mailboxes/{id}/imports/{importId}/uploads/{archiveId}/complete",
|
|
11326
|
+
...options,
|
|
11327
|
+
...params,
|
|
11328
|
+
body: params.body ?? {},
|
|
11329
|
+
headers: {
|
|
11330
|
+
"Content-Type": "application/json",
|
|
11331
|
+
...headers,
|
|
11332
|
+
...params.headers
|
|
11333
|
+
}
|
|
11334
|
+
}));
|
|
11335
|
+
}
|
|
11336
|
+
/**
|
|
11337
|
+
* Discard a mail history upload
|
|
11338
|
+
*
|
|
11339
|
+
* Removes an archive from a queued import and releases its upload.
|
|
11340
|
+
*/
|
|
11341
|
+
static discardImportUpload(parameters, options) {
|
|
11342
|
+
const params = buildClientParams([parameters], [{ args: [
|
|
11343
|
+
{
|
|
11344
|
+
in: "path",
|
|
11345
|
+
key: "id"
|
|
11346
|
+
},
|
|
11347
|
+
{
|
|
11348
|
+
in: "path",
|
|
11349
|
+
key: "importId"
|
|
11350
|
+
},
|
|
11351
|
+
{
|
|
11352
|
+
in: "path",
|
|
11353
|
+
key: "archiveId"
|
|
11354
|
+
}
|
|
11355
|
+
] }]);
|
|
11356
|
+
return requestWithPolicy(options?.client ?? client, "mailboxesDiscardImportUpload", options, (headers) => (options?.client ?? client).delete({
|
|
11357
|
+
security: [{
|
|
11358
|
+
name: "x-api-key",
|
|
11359
|
+
type: "apiKey"
|
|
11360
|
+
}],
|
|
11361
|
+
url: "/v1/mailboxes/{id}/imports/{importId}/uploads/{archiveId}",
|
|
11362
|
+
...options,
|
|
11363
|
+
...params,
|
|
11364
|
+
headers: {
|
|
11365
|
+
...headers,
|
|
11366
|
+
...params.headers
|
|
11367
|
+
}
|
|
11368
|
+
}));
|
|
11369
|
+
}
|
|
11370
|
+
/**
|
|
11371
|
+
* Discard a queued mail history import
|
|
11372
|
+
*
|
|
11373
|
+
* Discards a queued import and releases all its archive uploads.
|
|
11374
|
+
*/
|
|
11375
|
+
static discardImport(parameters, options) {
|
|
10837
11376
|
const params = buildClientParams([parameters], [{ args: [{
|
|
10838
11377
|
in: "path",
|
|
10839
11378
|
key: "id"
|
|
@@ -10841,12 +11380,12 @@ var Mailboxes = class {
|
|
|
10841
11380
|
in: "path",
|
|
10842
11381
|
key: "importId"
|
|
10843
11382
|
}] }]);
|
|
10844
|
-
return requestWithPolicy(options?.client ?? client, "
|
|
11383
|
+
return requestWithPolicy(options?.client ?? client, "mailboxesDiscardImport", options, (headers) => (options?.client ?? client).delete({
|
|
10845
11384
|
security: [{
|
|
10846
11385
|
name: "x-api-key",
|
|
10847
11386
|
type: "apiKey"
|
|
10848
11387
|
}],
|
|
10849
|
-
url: "/v1/mailboxes/{id}/imports/{importId}
|
|
11388
|
+
url: "/v1/mailboxes/{id}/imports/{importId}",
|
|
10850
11389
|
...options,
|
|
10851
11390
|
...params,
|
|
10852
11391
|
headers: {
|
|
@@ -10883,6 +11422,33 @@ var Mailboxes = class {
|
|
|
10883
11422
|
}));
|
|
10884
11423
|
}
|
|
10885
11424
|
/**
|
|
11425
|
+
* Start or resume a mail history import
|
|
11426
|
+
*
|
|
11427
|
+
* Starts all archives uploaded to the job, or resumes a failed job at its committed byte cursor across those archives. History emits no inbound events or agent triggers.
|
|
11428
|
+
*/
|
|
11429
|
+
static startImport(parameters, options) {
|
|
11430
|
+
const params = buildClientParams([parameters], [{ args: [{
|
|
11431
|
+
in: "path",
|
|
11432
|
+
key: "id"
|
|
11433
|
+
}, {
|
|
11434
|
+
in: "path",
|
|
11435
|
+
key: "importId"
|
|
11436
|
+
}] }]);
|
|
11437
|
+
return requestWithPolicy(options?.client ?? client, "mailboxesStartImport", options, (headers) => (options?.client ?? client).post({
|
|
11438
|
+
security: [{
|
|
11439
|
+
name: "x-api-key",
|
|
11440
|
+
type: "apiKey"
|
|
11441
|
+
}],
|
|
11442
|
+
url: "/v1/mailboxes/{id}/imports/{importId}/start",
|
|
11443
|
+
...options,
|
|
11444
|
+
...params,
|
|
11445
|
+
headers: {
|
|
11446
|
+
...headers,
|
|
11447
|
+
...params.headers
|
|
11448
|
+
}
|
|
11449
|
+
}));
|
|
11450
|
+
}
|
|
11451
|
+
/**
|
|
10886
11452
|
* List mail history imports
|
|
10887
11453
|
*
|
|
10888
11454
|
* Lists the most recent history imports for a mailbox.
|
|
@@ -11795,6 +12361,33 @@ var Mailboxes = class {
|
|
|
11795
12361
|
}));
|
|
11796
12362
|
}
|
|
11797
12363
|
/**
|
|
12364
|
+
* Permanently delete a mailbox thread
|
|
12365
|
+
*
|
|
12366
|
+
* Deletes a thread from Trash or Spam. Requires thread:write. Returns 409 if the thread is outside those folders. Publishes mailbox.thread.deleted. Cleanup of stored files runs after the deletion commits.
|
|
12367
|
+
*/
|
|
12368
|
+
static deleteThread(parameters, options) {
|
|
12369
|
+
const params = buildClientParams([parameters], [{ args: [{
|
|
12370
|
+
in: "path",
|
|
12371
|
+
key: "id"
|
|
12372
|
+
}, {
|
|
12373
|
+
in: "path",
|
|
12374
|
+
key: "threadId"
|
|
12375
|
+
}] }]);
|
|
12376
|
+
return requestWithPolicy(options?.client ?? client, "mailboxesDeleteThread", options, (headers) => (options?.client ?? client).delete({
|
|
12377
|
+
security: [{
|
|
12378
|
+
name: "x-api-key",
|
|
12379
|
+
type: "apiKey"
|
|
12380
|
+
}],
|
|
12381
|
+
url: "/v1/mailboxes/{id}/threads/{threadId}",
|
|
12382
|
+
...options,
|
|
12383
|
+
...params,
|
|
12384
|
+
headers: {
|
|
12385
|
+
...headers,
|
|
12386
|
+
...params.headers
|
|
12387
|
+
}
|
|
12388
|
+
}));
|
|
12389
|
+
}
|
|
12390
|
+
/**
|
|
11798
12391
|
* Get a mailbox thread
|
|
11799
12392
|
*
|
|
11800
12393
|
* Returns a thread with its participants and where it stands. Read its messages with `GET .../threads/{threadId}/messages` and their bodies with `GET .../threads/{threadId}/content`.
|
|
@@ -11890,6 +12483,54 @@ var Mailboxes = class {
|
|
|
11890
12483
|
}));
|
|
11891
12484
|
}
|
|
11892
12485
|
/**
|
|
12486
|
+
* Empty a mailbox's Trash
|
|
12487
|
+
*
|
|
12488
|
+
* Queues permanent deletion of the threads currently in Trash and returns their count. Requires thread:write. A thread restored before processing is skipped.
|
|
12489
|
+
*/
|
|
12490
|
+
static emptyTrash(parameters, options) {
|
|
12491
|
+
const params = buildClientParams([parameters], [{ args: [{
|
|
12492
|
+
in: "path",
|
|
12493
|
+
key: "id"
|
|
12494
|
+
}] }]);
|
|
12495
|
+
return requestWithPolicy(options?.client ?? client, "mailboxesEmptyTrash", options, (headers) => (options?.client ?? client).post({
|
|
12496
|
+
security: [{
|
|
12497
|
+
name: "x-api-key",
|
|
12498
|
+
type: "apiKey"
|
|
12499
|
+
}],
|
|
12500
|
+
url: "/v1/mailboxes/{id}/trash/empty",
|
|
12501
|
+
...options,
|
|
12502
|
+
...params,
|
|
12503
|
+
headers: {
|
|
12504
|
+
...headers,
|
|
12505
|
+
...params.headers
|
|
12506
|
+
}
|
|
12507
|
+
}));
|
|
12508
|
+
}
|
|
12509
|
+
/**
|
|
12510
|
+
* Empty a mailbox's Spam
|
|
12511
|
+
*
|
|
12512
|
+
* Queues permanent deletion of the threads currently in Spam and returns their count. Requires thread:write. A thread restored before processing is skipped.
|
|
12513
|
+
*/
|
|
12514
|
+
static emptySpam(parameters, options) {
|
|
12515
|
+
const params = buildClientParams([parameters], [{ args: [{
|
|
12516
|
+
in: "path",
|
|
12517
|
+
key: "id"
|
|
12518
|
+
}] }]);
|
|
12519
|
+
return requestWithPolicy(options?.client ?? client, "mailboxesEmptySpam", options, (headers) => (options?.client ?? client).post({
|
|
12520
|
+
security: [{
|
|
12521
|
+
name: "x-api-key",
|
|
12522
|
+
type: "apiKey"
|
|
12523
|
+
}],
|
|
12524
|
+
url: "/v1/mailboxes/{id}/spam/empty",
|
|
12525
|
+
...options,
|
|
12526
|
+
...params,
|
|
12527
|
+
headers: {
|
|
12528
|
+
...headers,
|
|
12529
|
+
...params.headers
|
|
12530
|
+
}
|
|
12531
|
+
}));
|
|
12532
|
+
}
|
|
12533
|
+
/**
|
|
11893
12534
|
* Remove thread labels
|
|
11894
12535
|
*
|
|
11895
12536
|
* Removes the given labels from the thread and returns where the thread stands. A label the thread does not carry is ignored.
|
|
@@ -12257,7 +12898,7 @@ var Mailboxes = class {
|
|
|
12257
12898
|
/**
|
|
12258
12899
|
* Get a message's raw MIME
|
|
12259
12900
|
*
|
|
12260
|
-
* Returns a short-lived URL for the message exactly as it was received (`message/rfc822`). Sent messages have no stored MIME.
|
|
12901
|
+
* Returns a short-lived URL for the message exactly as it was received (`message/rfc822`). Sent messages have no stored MIME. Inbound email without a passing malware scan returns 404 (`ResourceNotFoundError`).
|
|
12261
12902
|
*/
|
|
12262
12903
|
static getMessageRaw(parameters, options) {
|
|
12263
12904
|
const params = buildClientParams([parameters], [{ args: [{
|
|
@@ -12284,7 +12925,7 @@ var Mailboxes = class {
|
|
|
12284
12925
|
/**
|
|
12285
12926
|
* Get a message attachment
|
|
12286
12927
|
*
|
|
12287
|
-
* Returns a short-lived download URL for one of the message's attachments.
|
|
12928
|
+
* Returns a short-lived download URL for one of the message's attachments. Inbound email without a passing malware scan returns 404 (`ResourceNotFoundError`).
|
|
12288
12929
|
*/
|
|
12289
12930
|
static getMessageAttachment(parameters, options) {
|
|
12290
12931
|
const params = buildClientParams([parameters], [{ args: [
|
|
@@ -12318,7 +12959,7 @@ var Mailboxes = class {
|
|
|
12318
12959
|
/**
|
|
12319
12960
|
* Copy a message attachment
|
|
12320
12961
|
*
|
|
12321
|
-
* Copies one of a received message's attachments into the organization's media and returns it as a draft attachment (`mediaId`), so a draft can carry it. A draft that forwards a message saves each original attachment this way.
|
|
12962
|
+
* Copies one of a received message's attachments into the organization's media and returns it as a draft attachment (`mediaId`), so a draft can carry it. A draft that forwards a message saves each original attachment this way. Inbound email without a passing malware scan returns 404 (`ResourceNotFoundError`).
|
|
12322
12963
|
*/
|
|
12323
12964
|
static copyMessageAttachment(parameters, options) {
|
|
12324
12965
|
const params = buildClientParams([parameters], [{ args: [
|
|
@@ -12410,7 +13051,7 @@ var Mailboxes = class {
|
|
|
12410
13051
|
/**
|
|
12411
13052
|
* Forward a message
|
|
12412
13053
|
*
|
|
12413
|
-
* Forwards an email to new recipients as a new conversation from the thread's endpoint, with the original quoted below the caller's text and its attachments attached ahead of any the caller adds. The combined attachments must fit the email attachment limits.
|
|
13054
|
+
* Forwards an email to new recipients as a new conversation from the thread's endpoint, with the original quoted below the caller's text and its attachments attached ahead of any the caller adds. The combined attachments must fit the email attachment limits. Forwarding an inbound email with attachments and without a passing malware scan returns 404 (`ResourceNotFoundError`).
|
|
12414
13055
|
*/
|
|
12415
13056
|
static forward(parameters, options) {
|
|
12416
13057
|
const params = buildClientParams([parameters], [{ args: [
|
|
@@ -12464,11 +13105,11 @@ var Mailboxes = class {
|
|
|
12464
13105
|
}));
|
|
12465
13106
|
}
|
|
12466
13107
|
/**
|
|
12467
|
-
* List
|
|
13108
|
+
* List malware held outside Spam threads
|
|
12468
13109
|
*
|
|
12469
|
-
*
|
|
13110
|
+
* Lists isolated messages, newest first. Only metadata is stored. Use the thread list with folder=spam to read Spam. The after and before filters apply to when the message was held.
|
|
12470
13111
|
*/
|
|
12471
|
-
static
|
|
13112
|
+
static listSpamHeld(parameters, options) {
|
|
12472
13113
|
const params = buildClientParams([parameters], [{ args: [
|
|
12473
13114
|
{
|
|
12474
13115
|
in: "path",
|
|
@@ -12491,39 +13132,12 @@ var Mailboxes = class {
|
|
|
12491
13132
|
key: "before"
|
|
12492
13133
|
}
|
|
12493
13134
|
] }]);
|
|
12494
|
-
return requestWithPolicy(options?.client ?? client, "
|
|
12495
|
-
security: [{
|
|
12496
|
-
name: "x-api-key",
|
|
12497
|
-
type: "apiKey"
|
|
12498
|
-
}],
|
|
12499
|
-
url: "/v1/mailboxes/{id}/quarantine",
|
|
12500
|
-
...options,
|
|
12501
|
-
...params,
|
|
12502
|
-
headers: {
|
|
12503
|
-
...headers,
|
|
12504
|
-
...params.headers
|
|
12505
|
-
}
|
|
12506
|
-
}));
|
|
12507
|
-
}
|
|
12508
|
-
/**
|
|
12509
|
-
* Release a quarantined message
|
|
12510
|
-
*
|
|
12511
|
-
* Delivers a quarantined message into the thread it would have joined and publishes one `mailbox.message.released` event. Releasing it again returns the same result and publishes nothing. Only a person can release; API keys never hold `quarantine.release`. Isolated (malware) messages and discarded messages cannot be released: 409.
|
|
12512
|
-
*/
|
|
12513
|
-
static releaseMessage(parameters, options) {
|
|
12514
|
-
const params = buildClientParams([parameters], [{ args: [{
|
|
12515
|
-
in: "path",
|
|
12516
|
-
key: "id"
|
|
12517
|
-
}, {
|
|
12518
|
-
in: "path",
|
|
12519
|
-
key: "messageId"
|
|
12520
|
-
}] }]);
|
|
12521
|
-
return requestWithPolicy(options?.client ?? client, "mailboxesReleaseMessage", options, (headers) => (options?.client ?? client).post({
|
|
13135
|
+
return requestWithPolicy(options?.client ?? client, "mailboxesListSpamHeld", options, (headers) => (options?.client ?? client).get({
|
|
12522
13136
|
security: [{
|
|
12523
13137
|
name: "x-api-key",
|
|
12524
13138
|
type: "apiKey"
|
|
12525
13139
|
}],
|
|
12526
|
-
url: "/v1/mailboxes/{id}/
|
|
13140
|
+
url: "/v1/mailboxes/{id}/spam/held",
|
|
12527
13141
|
...options,
|
|
12528
13142
|
...params,
|
|
12529
13143
|
headers: {
|
|
@@ -12533,11 +13147,11 @@ var Mailboxes = class {
|
|
|
12533
13147
|
}));
|
|
12534
13148
|
}
|
|
12535
13149
|
/**
|
|
12536
|
-
* Discard
|
|
13150
|
+
* Discard held malware
|
|
12537
13151
|
*
|
|
12538
|
-
*
|
|
13152
|
+
* Permanently removes isolated malware from the mailbox's held list. Publishes one `mailbox.message.discarded` event. Retrying returns the same result and publishes nothing. Delete readable Spam through the thread delete endpoint. Only a person with `spam.discard` can discard held mail.
|
|
12539
13153
|
*/
|
|
12540
|
-
static
|
|
13154
|
+
static discardSpamHeld(parameters, options) {
|
|
12541
13155
|
const params = buildClientParams([parameters], [{ args: [{
|
|
12542
13156
|
in: "path",
|
|
12543
13157
|
key: "id"
|
|
@@ -12545,12 +13159,12 @@ var Mailboxes = class {
|
|
|
12545
13159
|
in: "path",
|
|
12546
13160
|
key: "messageId"
|
|
12547
13161
|
}] }]);
|
|
12548
|
-
return requestWithPolicy(options?.client ?? client, "
|
|
13162
|
+
return requestWithPolicy(options?.client ?? client, "mailboxesDiscardSpamHeld", options, (headers) => (options?.client ?? client).post({
|
|
12549
13163
|
security: [{
|
|
12550
13164
|
name: "x-api-key",
|
|
12551
13165
|
type: "apiKey"
|
|
12552
13166
|
}],
|
|
12553
|
-
url: "/v1/mailboxes/{id}/
|
|
13167
|
+
url: "/v1/mailboxes/{id}/spam/held/{messageId}/discard",
|
|
12554
13168
|
...options,
|
|
12555
13169
|
...params,
|
|
12556
13170
|
headers: {
|
|
@@ -14666,7 +15280,7 @@ var TemplateRegistrations = class {
|
|
|
14666
15280
|
/**
|
|
14667
15281
|
* Submit a template registration
|
|
14668
15282
|
*
|
|
14669
|
-
* Submits the template's current publication for
|
|
15283
|
+
* Submits the template's current publication for review on a WhatsApp business account. Pass approval to bind a reviewed submission to the exact publication, workspace revision, connected number and Meta business account. A changed selection returns a conflict. An immediate submission uses the named or default number. A first submission creates the provider template. A later one resubmits through the same registration.
|
|
14670
15284
|
*/
|
|
14671
15285
|
static submit(parameters, options) {
|
|
14672
15286
|
const params = buildClientParams([parameters], [{ args: [
|
|
@@ -14681,6 +15295,10 @@ var TemplateRegistrations = class {
|
|
|
14681
15295
|
{
|
|
14682
15296
|
in: "body",
|
|
14683
15297
|
key: "businessAccountId"
|
|
15298
|
+
},
|
|
15299
|
+
{
|
|
15300
|
+
in: "body",
|
|
15301
|
+
key: "approval"
|
|
14684
15302
|
}
|
|
14685
15303
|
] }]);
|
|
14686
15304
|
return requestWithPolicy(options?.client ?? client, "templateRegistrationsSubmit", options, (headers) => (options?.client ?? client).post({
|
|
@@ -14908,6 +15526,20 @@ Object.assign(Accounts.remove, { operation: "accountsRemove" });
|
|
|
14908
15526
|
Object.assign(Accounts.get, { operation: "accountsGet" });
|
|
14909
15527
|
Object.assign(Accounts.check, { operation: "accountsCheck" });
|
|
14910
15528
|
Object.assign(Accounts.connect, { operation: "accountsConnect" });
|
|
15529
|
+
Object.assign(IntegrationCatalog.recipeConnectionHandoff, { operation: "integrationCatalogRecipeConnectionHandoff" });
|
|
15530
|
+
Object.assign(IntegrationCatalog.recipeTestHandoff, { operation: "integrationCatalogRecipeTestHandoff" });
|
|
15531
|
+
Object.assign(IntegrationCatalog.recipeSetupsList, { operation: "integrationCatalogRecipeSetupsList" });
|
|
15532
|
+
Object.assign(IntegrationCatalog.recipeSetupGet, { operation: "integrationCatalogRecipeSetupGet" });
|
|
15533
|
+
Object.assign(IntegrationCatalog.recipeSetupReplace, { operation: "integrationCatalogRecipeSetupReplace" });
|
|
15534
|
+
Object.assign(IntegrationCatalog.recipeSetupActivate, { operation: "integrationCatalogRecipeSetupActivate" });
|
|
15535
|
+
Object.assign(IntegrationCatalog.recipePreview, { operation: "integrationCatalogRecipePreview" });
|
|
15536
|
+
Object.assign(IntegrationCatalog.recipeWhatsAppChallengeBegin, { operation: "integrationCatalogRecipeWhatsAppChallengeBegin" });
|
|
15537
|
+
Object.assign(IntegrationCatalog.recipeWhatsAppChallengeGet, { operation: "integrationCatalogRecipeWhatsAppChallengeGet" });
|
|
15538
|
+
Object.assign(IntegrationCatalog.recipeWhatsAppChallengeConfirm, { operation: "integrationCatalogRecipeWhatsAppChallengeConfirm" });
|
|
15539
|
+
Object.assign(IntegrationCatalog.recipeTest, { operation: "integrationCatalogRecipeTest" });
|
|
15540
|
+
Object.assign(IntegrationCatalog.recipeTestReceipt, { operation: "integrationCatalogRecipeTestReceipt" });
|
|
15541
|
+
Object.assign(IntegrationCatalog.recipeCatalog, { operation: "integrationCatalogRecipeCatalog" });
|
|
15542
|
+
Object.assign(IntegrationCatalog.recipeReadiness, { operation: "integrationCatalogRecipeReadiness" });
|
|
14911
15543
|
Object.assign(IntegrationCatalog.prepare, { operation: "integrationCatalogPrepare" });
|
|
14912
15544
|
Object.assign(IntegrationCatalog.search, { operation: "integrationCatalogSearch" });
|
|
14913
15545
|
Object.assign(IntegrationCatalog.list, { operation: "integrationCatalogList" });
|
|
@@ -15055,8 +15687,12 @@ Object.assign(ApiKeys.getActivity, { operation: "apiKeysGetActivity" });
|
|
|
15055
15687
|
Object.assign(Feedback.send, { operation: "feedbackSend" });
|
|
15056
15688
|
Object.assign(Whoami.get, { operation: "whoamiGet" });
|
|
15057
15689
|
Object.assign(Mailboxes.createImportUpload, { operation: "mailboxesCreateImportUpload" });
|
|
15058
|
-
Object.assign(Mailboxes.
|
|
15690
|
+
Object.assign(Mailboxes.signImportUploadParts, { operation: "mailboxesSignImportUploadParts" });
|
|
15691
|
+
Object.assign(Mailboxes.completeImportUpload, { operation: "mailboxesCompleteImportUpload" });
|
|
15692
|
+
Object.assign(Mailboxes.discardImportUpload, { operation: "mailboxesDiscardImportUpload" });
|
|
15693
|
+
Object.assign(Mailboxes.discardImport, { operation: "mailboxesDiscardImport" });
|
|
15059
15694
|
Object.assign(Mailboxes.getImport, { operation: "mailboxesGetImport" });
|
|
15695
|
+
Object.assign(Mailboxes.startImport, { operation: "mailboxesStartImport" });
|
|
15060
15696
|
Object.assign(Mailboxes.listImports, { operation: "mailboxesListImports" });
|
|
15061
15697
|
Object.assign(Mailboxes.list, { operation: "mailboxesList" });
|
|
15062
15698
|
Object.assign(Mailboxes.create, { operation: "mailboxesCreate" });
|
|
@@ -15082,8 +15718,11 @@ Object.assign(Mailboxes.getNeedsYou, { operation: "mailboxesGetNeedsYou" });
|
|
|
15082
15718
|
Object.assign(Mailboxes.listOrganizationDrafts, { operation: "mailboxesListOrganizationDrafts" });
|
|
15083
15719
|
Object.assign(Mailboxes.listOrganizationThreads, { operation: "mailboxesListOrganizationThreads" });
|
|
15084
15720
|
Object.assign(Mailboxes.listThreads, { operation: "mailboxesListThreads" });
|
|
15721
|
+
Object.assign(Mailboxes.deleteThread, { operation: "mailboxesDeleteThread" });
|
|
15085
15722
|
Object.assign(Mailboxes.getThread, { operation: "mailboxesGetThread" });
|
|
15086
15723
|
Object.assign(Mailboxes.updateThread, { operation: "mailboxesUpdateThread" });
|
|
15724
|
+
Object.assign(Mailboxes.emptyTrash, { operation: "mailboxesEmptyTrash" });
|
|
15725
|
+
Object.assign(Mailboxes.emptySpam, { operation: "mailboxesEmptySpam" });
|
|
15087
15726
|
Object.assign(Mailboxes.removeThreadLabels, { operation: "mailboxesRemoveThreadLabels" });
|
|
15088
15727
|
Object.assign(Mailboxes.addThreadLabels, { operation: "mailboxesAddThreadLabels" });
|
|
15089
15728
|
Object.assign(Mailboxes.listThreadMessages, { operation: "mailboxesListThreadMessages" });
|
|
@@ -15100,9 +15739,8 @@ Object.assign(Mailboxes.copyMessageAttachment, { operation: "mailboxesCopyMessag
|
|
|
15100
15739
|
Object.assign(Mailboxes.reply, { operation: "mailboxesReply" });
|
|
15101
15740
|
Object.assign(Mailboxes.replyAll, { operation: "mailboxesReplyAll" });
|
|
15102
15741
|
Object.assign(Mailboxes.forward, { operation: "mailboxesForward" });
|
|
15103
|
-
Object.assign(Mailboxes.
|
|
15104
|
-
Object.assign(Mailboxes.
|
|
15105
|
-
Object.assign(Mailboxes.discardMessage, { operation: "mailboxesDiscardMessage" });
|
|
15742
|
+
Object.assign(Mailboxes.listSpamHeld, { operation: "mailboxesListSpamHeld" });
|
|
15743
|
+
Object.assign(Mailboxes.discardSpamHeld, { operation: "mailboxesDiscardSpamHeld" });
|
|
15106
15744
|
Object.assign(Mailboxes.scheduleDraft, { operation: "mailboxesScheduleDraft" });
|
|
15107
15745
|
Object.assign(Mailboxes.unscheduleSend, { operation: "mailboxesUnscheduleSend" });
|
|
15108
15746
|
Object.assign(Mailboxes.rescheduleSend, { operation: "mailboxesRescheduleSend" });
|