samva 0.47.0 → 0.49.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/agent/index.d.ts +1 -0
- package/dist/agent/index.js +2 -1
- package/dist/agent/runtime.js +26 -5
- package/dist/agent/types.d.ts +27 -0
- package/dist/client/sdk.gen.d.ts +234 -34
- package/dist/client/sdk.gen.js +574 -60
- package/dist/client/types.gen.d.ts +1363 -164
- 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 +13 -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 +32 -12
- package/dist/effect/descriptors/mailboxes.js +32 -12
- 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 +30 -15
- package/dist/effect/generated/api-keys.js +2 -0
- 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 +105 -107
- package/dist/effect/generated/journeys.js +6 -12
- package/dist/effect/generated/mailboxes.d.ts +752 -463
- package/dist/effect/generated/mailboxes.js +163 -98
- package/dist/effect/generated/messages.d.ts +109 -4
- package/dist/effect/generated/messages.js +41 -8
- package/dist/effect/generated/shared.d.ts +255 -59
- package/dist/effect/generated/shared.js +64 -18
- package/dist/effect/generated/template-registrations.d.ts +53 -4
- package/dist/effect/generated/template-registrations.js +13 -5
- package/dist/effect/generated/templates.d.ts +77 -15
- package/dist/effect/generated/templates.js +26 -17
- 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 +114 -18
- package/dist/effect/generated-metadata.js +362 -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 +117 -91
- package/dist/effect/mailboxes.js +11 -7
- 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 +46 -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 +83 -9
- package/package.json +2 -2
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
|
*
|
|
@@ -8321,13 +8746,20 @@ var Templates = class {
|
|
|
8321
8746
|
* Returns the organization's template families with their members, newest first. Pass `nextCursor` back as `cursor` for the next page; it is null on the last page.
|
|
8322
8747
|
*/
|
|
8323
8748
|
static listFamilies(parameters, options) {
|
|
8324
|
-
const params = buildClientParams([parameters], [{ args: [
|
|
8325
|
-
|
|
8326
|
-
|
|
8327
|
-
|
|
8328
|
-
|
|
8329
|
-
|
|
8330
|
-
|
|
8749
|
+
const params = buildClientParams([parameters], [{ args: [
|
|
8750
|
+
{
|
|
8751
|
+
in: "query",
|
|
8752
|
+
key: "limit"
|
|
8753
|
+
},
|
|
8754
|
+
{
|
|
8755
|
+
in: "query",
|
|
8756
|
+
key: "cursor"
|
|
8757
|
+
},
|
|
8758
|
+
{
|
|
8759
|
+
in: "query",
|
|
8760
|
+
key: "namespaceId"
|
|
8761
|
+
}
|
|
8762
|
+
] }]);
|
|
8331
8763
|
return requestWithPolicy(options?.client ?? client, "templatesListFamilies", options, (headers) => (options?.client ?? client).get({
|
|
8332
8764
|
security: [{
|
|
8333
8765
|
name: "x-api-key",
|
|
@@ -8345,12 +8777,15 @@ var Templates = class {
|
|
|
8345
8777
|
/**
|
|
8346
8778
|
* Create a template family
|
|
8347
8779
|
*
|
|
8348
|
-
* Creates an empty template family with the supplied name and returns it with status 201.
|
|
8780
|
+
* Creates an empty template family with the supplied name, in `namespaceId` or at organization level, and returns it with status 201.
|
|
8349
8781
|
*/
|
|
8350
8782
|
static createFamily(parameters, options) {
|
|
8351
8783
|
const params = buildClientParams([parameters], [{ args: [{
|
|
8352
8784
|
in: "body",
|
|
8353
8785
|
key: "name"
|
|
8786
|
+
}, {
|
|
8787
|
+
in: "body",
|
|
8788
|
+
key: "namespaceId"
|
|
8354
8789
|
}] }]);
|
|
8355
8790
|
return requestWithPolicy(options?.client ?? client, "templatesCreateFamily", options, (headers) => (options?.client ?? client).post({
|
|
8356
8791
|
security: [{
|
|
@@ -8448,7 +8883,7 @@ var Templates = class {
|
|
|
8448
8883
|
/**
|
|
8449
8884
|
* Create a family from a template
|
|
8450
8885
|
*
|
|
8451
|
-
* Creates a template family containing the specified template and returns the new family with status 201.
|
|
8886
|
+
* Creates a template family containing the specified template, in that template's namespace, and returns the new family with status 201.
|
|
8452
8887
|
*/
|
|
8453
8888
|
static createFamilyFromTemplate(parameters, options) {
|
|
8454
8889
|
const params = buildClientParams([parameters], [{ args: [{
|
|
@@ -8504,7 +8939,7 @@ var Templates = class {
|
|
|
8504
8939
|
/**
|
|
8505
8940
|
* Attach a template to a family
|
|
8506
8941
|
*
|
|
8507
|
-
* Adds an existing template as a channel member of the family and returns the updated family.
|
|
8942
|
+
* Adds an existing template as a channel member of the family and returns the updated family. The template must be in the family's namespace; another namespace's template answers 409.
|
|
8508
8943
|
*/
|
|
8509
8944
|
static attachFamilyMember(parameters, options) {
|
|
8510
8945
|
const params = buildClientParams([parameters], [{ args: [{
|
|
@@ -8608,12 +9043,15 @@ var Templates = class {
|
|
|
8608
9043
|
/**
|
|
8609
9044
|
* Suggest designs for a brief
|
|
8610
9045
|
*
|
|
8611
|
-
* Ranks Samva's gallery designs for a brief and returns the three to start a new email from, best first, each with the `galleryTemplateId` that creates a template from it. When the brief names a company's email, `recreation` says whether the gallery recreates that kind of email from it, recreates another kind (start from it for the look), or has none. The ranking is deterministic: the same brief returns the same designs.
|
|
9046
|
+
* Ranks Samva's gallery designs for a brief and returns the three to start a new email from (or, with `channel: "whatsapp"`, Samva's WhatsApp starters), best first, each with the `galleryTemplateId` that creates a template from it. When the brief names a company's email, `recreation` says whether the gallery recreates that kind of email from it, recreates another kind (start from it for the look), or has none. The ranking is deterministic: the same brief returns the same designs.
|
|
8612
9047
|
*/
|
|
8613
9048
|
static suggestStarters(parameters, options) {
|
|
8614
9049
|
const params = buildClientParams([parameters], [{ args: [{
|
|
8615
9050
|
in: "body",
|
|
8616
9051
|
key: "brief"
|
|
9052
|
+
}, {
|
|
9053
|
+
in: "body",
|
|
9054
|
+
key: "channel"
|
|
8617
9055
|
}] }]);
|
|
8618
9056
|
return requestWithPolicy(options?.client ?? client, "templatesSuggestStarters", options, (headers) => (options?.client ?? client).post({
|
|
8619
9057
|
security: [{
|
|
@@ -8634,7 +9072,7 @@ var Templates = class {
|
|
|
8634
9072
|
/**
|
|
8635
9073
|
* Create a template from a brief
|
|
8636
9074
|
*
|
|
8637
|
-
* Creates an email template project from the gallery design that best fits a brief (the first of `POST /v1/templates/suggestions`, or the `galleryTemplateId` you name) and returns it with status 201, the design it started from, the other suggestions, any company email the brief named, and the request that makes the template assistant adapt the design. The assistant runs when that request is sent in the editor; an agent of your own adapts the design through the workspace endpoints instead.
|
|
9075
|
+
* Creates an email template project (or a WhatsApp one, with `channel: "whatsapp"`) from the gallery design that best fits a brief (the first of `POST /v1/templates/suggestions`, or the `galleryTemplateId` you name) and returns it with status 201, the design it started from, the other suggestions, any company email the brief named, and the request that makes the template assistant adapt the design. The assistant runs when that request is sent in the editor; an agent of your own adapts the design through the workspace endpoints instead.
|
|
8638
9076
|
*/
|
|
8639
9077
|
static createFromBrief(parameters, options) {
|
|
8640
9078
|
const params = buildClientParams([parameters], [{ args: [
|
|
@@ -8642,6 +9080,10 @@ var Templates = class {
|
|
|
8642
9080
|
in: "body",
|
|
8643
9081
|
key: "brief"
|
|
8644
9082
|
},
|
|
9083
|
+
{
|
|
9084
|
+
in: "body",
|
|
9085
|
+
key: "channel"
|
|
9086
|
+
},
|
|
8645
9087
|
{
|
|
8646
9088
|
in: "body",
|
|
8647
9089
|
key: "name"
|
|
@@ -8657,6 +9099,10 @@ var Templates = class {
|
|
|
8657
9099
|
{
|
|
8658
9100
|
in: "body",
|
|
8659
9101
|
key: "namespaceId"
|
|
9102
|
+
},
|
|
9103
|
+
{
|
|
9104
|
+
in: "body",
|
|
9105
|
+
key: "variantOf"
|
|
8660
9106
|
}
|
|
8661
9107
|
] }]);
|
|
8662
9108
|
return requestWithPolicy(options?.client ?? client, "templatesCreateFromBrief", options, (headers) => (options?.client ?? client).post({
|
|
@@ -11774,6 +12220,33 @@ var Mailboxes = class {
|
|
|
11774
12220
|
}));
|
|
11775
12221
|
}
|
|
11776
12222
|
/**
|
|
12223
|
+
* Permanently delete a mailbox thread
|
|
12224
|
+
*
|
|
12225
|
+
* 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.
|
|
12226
|
+
*/
|
|
12227
|
+
static deleteThread(parameters, options) {
|
|
12228
|
+
const params = buildClientParams([parameters], [{ args: [{
|
|
12229
|
+
in: "path",
|
|
12230
|
+
key: "id"
|
|
12231
|
+
}, {
|
|
12232
|
+
in: "path",
|
|
12233
|
+
key: "threadId"
|
|
12234
|
+
}] }]);
|
|
12235
|
+
return requestWithPolicy(options?.client ?? client, "mailboxesDeleteThread", options, (headers) => (options?.client ?? client).delete({
|
|
12236
|
+
security: [{
|
|
12237
|
+
name: "x-api-key",
|
|
12238
|
+
type: "apiKey"
|
|
12239
|
+
}],
|
|
12240
|
+
url: "/v1/mailboxes/{id}/threads/{threadId}",
|
|
12241
|
+
...options,
|
|
12242
|
+
...params,
|
|
12243
|
+
headers: {
|
|
12244
|
+
...headers,
|
|
12245
|
+
...params.headers
|
|
12246
|
+
}
|
|
12247
|
+
}));
|
|
12248
|
+
}
|
|
12249
|
+
/**
|
|
11777
12250
|
* Get a mailbox thread
|
|
11778
12251
|
*
|
|
11779
12252
|
* 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`.
|
|
@@ -11869,6 +12342,54 @@ var Mailboxes = class {
|
|
|
11869
12342
|
}));
|
|
11870
12343
|
}
|
|
11871
12344
|
/**
|
|
12345
|
+
* Empty a mailbox's Trash
|
|
12346
|
+
*
|
|
12347
|
+
* Queues permanent deletion of the threads currently in Trash and returns their count. Requires thread:write. A thread restored before processing is skipped.
|
|
12348
|
+
*/
|
|
12349
|
+
static emptyTrash(parameters, options) {
|
|
12350
|
+
const params = buildClientParams([parameters], [{ args: [{
|
|
12351
|
+
in: "path",
|
|
12352
|
+
key: "id"
|
|
12353
|
+
}] }]);
|
|
12354
|
+
return requestWithPolicy(options?.client ?? client, "mailboxesEmptyTrash", options, (headers) => (options?.client ?? client).post({
|
|
12355
|
+
security: [{
|
|
12356
|
+
name: "x-api-key",
|
|
12357
|
+
type: "apiKey"
|
|
12358
|
+
}],
|
|
12359
|
+
url: "/v1/mailboxes/{id}/trash/empty",
|
|
12360
|
+
...options,
|
|
12361
|
+
...params,
|
|
12362
|
+
headers: {
|
|
12363
|
+
...headers,
|
|
12364
|
+
...params.headers
|
|
12365
|
+
}
|
|
12366
|
+
}));
|
|
12367
|
+
}
|
|
12368
|
+
/**
|
|
12369
|
+
* Empty a mailbox's Spam
|
|
12370
|
+
*
|
|
12371
|
+
* Queues permanent deletion of the threads currently in Spam and returns their count. Requires thread:write. A thread restored before processing is skipped.
|
|
12372
|
+
*/
|
|
12373
|
+
static emptySpam(parameters, options) {
|
|
12374
|
+
const params = buildClientParams([parameters], [{ args: [{
|
|
12375
|
+
in: "path",
|
|
12376
|
+
key: "id"
|
|
12377
|
+
}] }]);
|
|
12378
|
+
return requestWithPolicy(options?.client ?? client, "mailboxesEmptySpam", options, (headers) => (options?.client ?? client).post({
|
|
12379
|
+
security: [{
|
|
12380
|
+
name: "x-api-key",
|
|
12381
|
+
type: "apiKey"
|
|
12382
|
+
}],
|
|
12383
|
+
url: "/v1/mailboxes/{id}/spam/empty",
|
|
12384
|
+
...options,
|
|
12385
|
+
...params,
|
|
12386
|
+
headers: {
|
|
12387
|
+
...headers,
|
|
12388
|
+
...params.headers
|
|
12389
|
+
}
|
|
12390
|
+
}));
|
|
12391
|
+
}
|
|
12392
|
+
/**
|
|
11872
12393
|
* Remove thread labels
|
|
11873
12394
|
*
|
|
11874
12395
|
* Removes the given labels from the thread and returns where the thread stands. A label the thread does not carry is ignored.
|
|
@@ -12236,7 +12757,7 @@ var Mailboxes = class {
|
|
|
12236
12757
|
/**
|
|
12237
12758
|
* Get a message's raw MIME
|
|
12238
12759
|
*
|
|
12239
|
-
* Returns a short-lived URL for the message exactly as it was received (`message/rfc822`). Sent messages have no stored MIME.
|
|
12760
|
+
* 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`).
|
|
12240
12761
|
*/
|
|
12241
12762
|
static getMessageRaw(parameters, options) {
|
|
12242
12763
|
const params = buildClientParams([parameters], [{ args: [{
|
|
@@ -12263,7 +12784,7 @@ var Mailboxes = class {
|
|
|
12263
12784
|
/**
|
|
12264
12785
|
* Get a message attachment
|
|
12265
12786
|
*
|
|
12266
|
-
* Returns a short-lived download URL for one of the message's attachments.
|
|
12787
|
+
* Returns a short-lived download URL for one of the message's attachments. Inbound email without a passing malware scan returns 404 (`ResourceNotFoundError`).
|
|
12267
12788
|
*/
|
|
12268
12789
|
static getMessageAttachment(parameters, options) {
|
|
12269
12790
|
const params = buildClientParams([parameters], [{ args: [
|
|
@@ -12297,7 +12818,7 @@ var Mailboxes = class {
|
|
|
12297
12818
|
/**
|
|
12298
12819
|
* Copy a message attachment
|
|
12299
12820
|
*
|
|
12300
|
-
* 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.
|
|
12821
|
+
* 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`).
|
|
12301
12822
|
*/
|
|
12302
12823
|
static copyMessageAttachment(parameters, options) {
|
|
12303
12824
|
const params = buildClientParams([parameters], [{ args: [
|
|
@@ -12389,7 +12910,7 @@ var Mailboxes = class {
|
|
|
12389
12910
|
/**
|
|
12390
12911
|
* Forward a message
|
|
12391
12912
|
*
|
|
12392
|
-
* 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.
|
|
12913
|
+
* 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`).
|
|
12393
12914
|
*/
|
|
12394
12915
|
static forward(parameters, options) {
|
|
12395
12916
|
const params = buildClientParams([parameters], [{ args: [
|
|
@@ -12443,11 +12964,11 @@ var Mailboxes = class {
|
|
|
12443
12964
|
}));
|
|
12444
12965
|
}
|
|
12445
12966
|
/**
|
|
12446
|
-
* List
|
|
12967
|
+
* List malware held outside Spam threads
|
|
12447
12968
|
*
|
|
12448
|
-
*
|
|
12969
|
+
* 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.
|
|
12449
12970
|
*/
|
|
12450
|
-
static
|
|
12971
|
+
static listSpamHeld(parameters, options) {
|
|
12451
12972
|
const params = buildClientParams([parameters], [{ args: [
|
|
12452
12973
|
{
|
|
12453
12974
|
in: "path",
|
|
@@ -12470,39 +12991,12 @@ var Mailboxes = class {
|
|
|
12470
12991
|
key: "before"
|
|
12471
12992
|
}
|
|
12472
12993
|
] }]);
|
|
12473
|
-
return requestWithPolicy(options?.client ?? client, "
|
|
12474
|
-
security: [{
|
|
12475
|
-
name: "x-api-key",
|
|
12476
|
-
type: "apiKey"
|
|
12477
|
-
}],
|
|
12478
|
-
url: "/v1/mailboxes/{id}/quarantine",
|
|
12479
|
-
...options,
|
|
12480
|
-
...params,
|
|
12481
|
-
headers: {
|
|
12482
|
-
...headers,
|
|
12483
|
-
...params.headers
|
|
12484
|
-
}
|
|
12485
|
-
}));
|
|
12486
|
-
}
|
|
12487
|
-
/**
|
|
12488
|
-
* Release a quarantined message
|
|
12489
|
-
*
|
|
12490
|
-
* 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.
|
|
12491
|
-
*/
|
|
12492
|
-
static releaseMessage(parameters, options) {
|
|
12493
|
-
const params = buildClientParams([parameters], [{ args: [{
|
|
12494
|
-
in: "path",
|
|
12495
|
-
key: "id"
|
|
12496
|
-
}, {
|
|
12497
|
-
in: "path",
|
|
12498
|
-
key: "messageId"
|
|
12499
|
-
}] }]);
|
|
12500
|
-
return requestWithPolicy(options?.client ?? client, "mailboxesReleaseMessage", options, (headers) => (options?.client ?? client).post({
|
|
12994
|
+
return requestWithPolicy(options?.client ?? client, "mailboxesListSpamHeld", options, (headers) => (options?.client ?? client).get({
|
|
12501
12995
|
security: [{
|
|
12502
12996
|
name: "x-api-key",
|
|
12503
12997
|
type: "apiKey"
|
|
12504
12998
|
}],
|
|
12505
|
-
url: "/v1/mailboxes/{id}/
|
|
12999
|
+
url: "/v1/mailboxes/{id}/spam/held",
|
|
12506
13000
|
...options,
|
|
12507
13001
|
...params,
|
|
12508
13002
|
headers: {
|
|
@@ -12512,11 +13006,11 @@ var Mailboxes = class {
|
|
|
12512
13006
|
}));
|
|
12513
13007
|
}
|
|
12514
13008
|
/**
|
|
12515
|
-
* Discard
|
|
13009
|
+
* Discard held malware
|
|
12516
13010
|
*
|
|
12517
|
-
*
|
|
13011
|
+
* 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.
|
|
12518
13012
|
*/
|
|
12519
|
-
static
|
|
13013
|
+
static discardSpamHeld(parameters, options) {
|
|
12520
13014
|
const params = buildClientParams([parameters], [{ args: [{
|
|
12521
13015
|
in: "path",
|
|
12522
13016
|
key: "id"
|
|
@@ -12524,12 +13018,12 @@ var Mailboxes = class {
|
|
|
12524
13018
|
in: "path",
|
|
12525
13019
|
key: "messageId"
|
|
12526
13020
|
}] }]);
|
|
12527
|
-
return requestWithPolicy(options?.client ?? client, "
|
|
13021
|
+
return requestWithPolicy(options?.client ?? client, "mailboxesDiscardSpamHeld", options, (headers) => (options?.client ?? client).post({
|
|
12528
13022
|
security: [{
|
|
12529
13023
|
name: "x-api-key",
|
|
12530
13024
|
type: "apiKey"
|
|
12531
13025
|
}],
|
|
12532
|
-
url: "/v1/mailboxes/{id}/
|
|
13026
|
+
url: "/v1/mailboxes/{id}/spam/held/{messageId}/discard",
|
|
12533
13027
|
...options,
|
|
12534
13028
|
...params,
|
|
12535
13029
|
headers: {
|
|
@@ -14645,7 +15139,7 @@ var TemplateRegistrations = class {
|
|
|
14645
15139
|
/**
|
|
14646
15140
|
* Submit a template registration
|
|
14647
15141
|
*
|
|
14648
|
-
* Submits the template's current publication for
|
|
15142
|
+
* 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.
|
|
14649
15143
|
*/
|
|
14650
15144
|
static submit(parameters, options) {
|
|
14651
15145
|
const params = buildClientParams([parameters], [{ args: [
|
|
@@ -14660,6 +15154,10 @@ var TemplateRegistrations = class {
|
|
|
14660
15154
|
{
|
|
14661
15155
|
in: "body",
|
|
14662
15156
|
key: "businessAccountId"
|
|
15157
|
+
},
|
|
15158
|
+
{
|
|
15159
|
+
in: "body",
|
|
15160
|
+
key: "approval"
|
|
14663
15161
|
}
|
|
14664
15162
|
] }]);
|
|
14665
15163
|
return requestWithPolicy(options?.client ?? client, "templateRegistrationsSubmit", options, (headers) => (options?.client ?? client).post({
|
|
@@ -14887,6 +15385,20 @@ Object.assign(Accounts.remove, { operation: "accountsRemove" });
|
|
|
14887
15385
|
Object.assign(Accounts.get, { operation: "accountsGet" });
|
|
14888
15386
|
Object.assign(Accounts.check, { operation: "accountsCheck" });
|
|
14889
15387
|
Object.assign(Accounts.connect, { operation: "accountsConnect" });
|
|
15388
|
+
Object.assign(IntegrationCatalog.recipeConnectionHandoff, { operation: "integrationCatalogRecipeConnectionHandoff" });
|
|
15389
|
+
Object.assign(IntegrationCatalog.recipeTestHandoff, { operation: "integrationCatalogRecipeTestHandoff" });
|
|
15390
|
+
Object.assign(IntegrationCatalog.recipeSetupsList, { operation: "integrationCatalogRecipeSetupsList" });
|
|
15391
|
+
Object.assign(IntegrationCatalog.recipeSetupGet, { operation: "integrationCatalogRecipeSetupGet" });
|
|
15392
|
+
Object.assign(IntegrationCatalog.recipeSetupReplace, { operation: "integrationCatalogRecipeSetupReplace" });
|
|
15393
|
+
Object.assign(IntegrationCatalog.recipeSetupActivate, { operation: "integrationCatalogRecipeSetupActivate" });
|
|
15394
|
+
Object.assign(IntegrationCatalog.recipePreview, { operation: "integrationCatalogRecipePreview" });
|
|
15395
|
+
Object.assign(IntegrationCatalog.recipeWhatsAppChallengeBegin, { operation: "integrationCatalogRecipeWhatsAppChallengeBegin" });
|
|
15396
|
+
Object.assign(IntegrationCatalog.recipeWhatsAppChallengeGet, { operation: "integrationCatalogRecipeWhatsAppChallengeGet" });
|
|
15397
|
+
Object.assign(IntegrationCatalog.recipeWhatsAppChallengeConfirm, { operation: "integrationCatalogRecipeWhatsAppChallengeConfirm" });
|
|
15398
|
+
Object.assign(IntegrationCatalog.recipeTest, { operation: "integrationCatalogRecipeTest" });
|
|
15399
|
+
Object.assign(IntegrationCatalog.recipeTestReceipt, { operation: "integrationCatalogRecipeTestReceipt" });
|
|
15400
|
+
Object.assign(IntegrationCatalog.recipeCatalog, { operation: "integrationCatalogRecipeCatalog" });
|
|
15401
|
+
Object.assign(IntegrationCatalog.recipeReadiness, { operation: "integrationCatalogRecipeReadiness" });
|
|
14890
15402
|
Object.assign(IntegrationCatalog.prepare, { operation: "integrationCatalogPrepare" });
|
|
14891
15403
|
Object.assign(IntegrationCatalog.search, { operation: "integrationCatalogSearch" });
|
|
14892
15404
|
Object.assign(IntegrationCatalog.list, { operation: "integrationCatalogList" });
|
|
@@ -15061,8 +15573,11 @@ Object.assign(Mailboxes.getNeedsYou, { operation: "mailboxesGetNeedsYou" });
|
|
|
15061
15573
|
Object.assign(Mailboxes.listOrganizationDrafts, { operation: "mailboxesListOrganizationDrafts" });
|
|
15062
15574
|
Object.assign(Mailboxes.listOrganizationThreads, { operation: "mailboxesListOrganizationThreads" });
|
|
15063
15575
|
Object.assign(Mailboxes.listThreads, { operation: "mailboxesListThreads" });
|
|
15576
|
+
Object.assign(Mailboxes.deleteThread, { operation: "mailboxesDeleteThread" });
|
|
15064
15577
|
Object.assign(Mailboxes.getThread, { operation: "mailboxesGetThread" });
|
|
15065
15578
|
Object.assign(Mailboxes.updateThread, { operation: "mailboxesUpdateThread" });
|
|
15579
|
+
Object.assign(Mailboxes.emptyTrash, { operation: "mailboxesEmptyTrash" });
|
|
15580
|
+
Object.assign(Mailboxes.emptySpam, { operation: "mailboxesEmptySpam" });
|
|
15066
15581
|
Object.assign(Mailboxes.removeThreadLabels, { operation: "mailboxesRemoveThreadLabels" });
|
|
15067
15582
|
Object.assign(Mailboxes.addThreadLabels, { operation: "mailboxesAddThreadLabels" });
|
|
15068
15583
|
Object.assign(Mailboxes.listThreadMessages, { operation: "mailboxesListThreadMessages" });
|
|
@@ -15079,9 +15594,8 @@ Object.assign(Mailboxes.copyMessageAttachment, { operation: "mailboxesCopyMessag
|
|
|
15079
15594
|
Object.assign(Mailboxes.reply, { operation: "mailboxesReply" });
|
|
15080
15595
|
Object.assign(Mailboxes.replyAll, { operation: "mailboxesReplyAll" });
|
|
15081
15596
|
Object.assign(Mailboxes.forward, { operation: "mailboxesForward" });
|
|
15082
|
-
Object.assign(Mailboxes.
|
|
15083
|
-
Object.assign(Mailboxes.
|
|
15084
|
-
Object.assign(Mailboxes.discardMessage, { operation: "mailboxesDiscardMessage" });
|
|
15597
|
+
Object.assign(Mailboxes.listSpamHeld, { operation: "mailboxesListSpamHeld" });
|
|
15598
|
+
Object.assign(Mailboxes.discardSpamHeld, { operation: "mailboxesDiscardSpamHeld" });
|
|
15085
15599
|
Object.assign(Mailboxes.scheduleDraft, { operation: "mailboxesScheduleDraft" });
|
|
15086
15600
|
Object.assign(Mailboxes.unscheduleSend, { operation: "mailboxesUnscheduleSend" });
|
|
15087
15601
|
Object.assign(Mailboxes.rescheduleSend, { operation: "mailboxesRescheduleSend" });
|