samva 0.45.1 → 0.46.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/AGENTS.md +7 -0
- package/README.md +24 -0
- package/dist/client/sdk.gen.d.ts +438 -5
- package/dist/client/sdk.gen.js +1544 -229
- package/dist/client/types.gen.d.ts +8120 -5616
- package/dist/effect/accounts.d.ts +50 -0
- package/dist/effect/accounts.js +22 -0
- package/dist/effect/agents.d.ts +9 -0
- package/dist/effect/agents.js +1 -1
- package/dist/effect/approval-requests.d.ts +42 -0
- package/dist/effect/approval-requests.js +18 -0
- package/dist/effect/campaigns.d.ts +160 -160
- package/dist/effect/generated/accounts.d.ts +1002 -0
- package/dist/effect/generated/accounts.js +198 -0
- package/dist/effect/generated/agents.d.ts +84 -0
- package/dist/effect/generated/agents.js +1 -0
- package/dist/effect/generated/approval-requests.d.ts +777 -0
- package/dist/effect/generated/approval-requests.js +135 -0
- package/dist/effect/generated/campaigns.d.ts +17 -17
- package/dist/effect/generated/campaigns.js +6 -6
- package/dist/effect/generated/conversations.d.ts +20 -20
- package/dist/effect/generated/conversations.js +10 -10
- package/dist/effect/generated/events.js +1 -1
- package/dist/effect/generated/index.d.ts +11 -1
- package/dist/effect/generated/integrations-catalog.d.ts +671 -0
- package/dist/effect/generated/integrations-catalog.js +217 -0
- package/dist/effect/generated/integrations.d.ts +1401 -0
- package/dist/effect/generated/integrations.js +246 -0
- package/dist/effect/generated/mailboxes.d.ts +8157 -4241
- package/dist/effect/generated/mailboxes.js +677 -52
- package/dist/effect/generated/messages.d.ts +8 -8
- package/dist/effect/generated/messages.js +4 -4
- package/dist/effect/generated/scheduled-messages.d.ts +50 -50
- package/dist/effect/generated/scheduled-messages.js +17 -17
- package/dist/effect/generated/shared.d.ts +661 -511
- package/dist/effect/generated/shared.js +212 -179
- package/dist/effect/generated/template-share-links.d.ts +733 -0
- package/dist/effect/generated/template-share-links.js +165 -0
- package/dist/effect/generated/templates.d.ts +39 -22
- package/dist/effect/generated/templates.js +19 -16
- package/dist/effect/generated-metadata.d.ts +248 -0
- package/dist/effect/generated-metadata.js +705 -555
- package/dist/effect/index.d.ts +5 -0
- package/dist/effect/index.js +6 -1
- package/dist/effect/integrations-catalog.d.ts +38 -0
- package/dist/effect/integrations-catalog.js +16 -0
- package/dist/effect/integrations.d.ts +165 -0
- package/dist/effect/integrations.js +24 -0
- package/dist/effect/mailboxes.d.ts +373 -191
- package/dist/effect/mailboxes.js +31 -1
- package/dist/effect/scheduled-messages.d.ts +350 -350
- package/dist/effect/template-share-links.d.ts +18 -0
- package/dist/effect/template-share-links.js +20 -0
- package/dist/effect/templates.d.ts +4 -3
- package/dist/index.js +2 -2
- package/dist/package.js +1 -1
- package/dist/promises/client.d.ts +11 -1
- package/dist/promises/client.js +13 -3
- package/dist/promises/errors.gen.d.ts +22 -2
- package/dist/promises/errors.gen.js +54 -1
- package/dist/promises/index.js +2 -2
- package/dist/promises/types.gen.d.ts +1 -1
- package/dist/service-map.d.ts +203 -0
- package/dist/service-map.js +103 -0
- package/package.json +22 -2
package/dist/client/sdk.gen.js
CHANGED
|
@@ -2,6 +2,123 @@ import { buildClientParams } from "./core/params.gen.js";
|
|
|
2
2
|
import { requestWithPolicy } from "../promises/request.js";
|
|
3
3
|
import { client } from "./client.gen.js";
|
|
4
4
|
// src/client/sdk.gen.ts
|
|
5
|
+
var ApprovalRequests = class {
|
|
6
|
+
/**
|
|
7
|
+
* Request approval for an OAuth tool intent
|
|
8
|
+
*
|
|
9
|
+
* Creates one immutable batch of up to 20 tool calls for one intent. Only an OAuth access token may create a request. The owner opens approvalUrl and decides in a signed-in owner session. Requests expire after 30 minutes; the original OAuth token must remain valid. Repeating idempotencyKey for the same caller returns the same request; different content conflicts. Credential-bearing arguments are refused.
|
|
10
|
+
*/
|
|
11
|
+
static create(parameters, options) {
|
|
12
|
+
const params = buildClientParams([parameters], [{ args: [
|
|
13
|
+
{
|
|
14
|
+
in: "body",
|
|
15
|
+
key: "intent"
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
in: "body",
|
|
19
|
+
key: "calls"
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
in: "body",
|
|
23
|
+
key: "idempotencyKey"
|
|
24
|
+
}
|
|
25
|
+
] }]);
|
|
26
|
+
return requestWithPolicy(options?.client ?? client, "approvalRequestsCreate", options, (headers) => (options?.client ?? client).post({
|
|
27
|
+
security: [{
|
|
28
|
+
name: "x-api-key",
|
|
29
|
+
type: "apiKey"
|
|
30
|
+
}],
|
|
31
|
+
url: "/v1/approval-requests",
|
|
32
|
+
...options,
|
|
33
|
+
...params,
|
|
34
|
+
body: params.body ?? {},
|
|
35
|
+
headers: {
|
|
36
|
+
"Content-Type": "application/json",
|
|
37
|
+
...options?.headers,
|
|
38
|
+
...params.headers
|
|
39
|
+
},
|
|
40
|
+
headers: {
|
|
41
|
+
"Content-Type": "application/json",
|
|
42
|
+
...headers
|
|
43
|
+
}
|
|
44
|
+
}));
|
|
45
|
+
}
|
|
46
|
+
/**
|
|
47
|
+
* Read an approval request
|
|
48
|
+
*
|
|
49
|
+
* Returns the exact calls, requester, decision and execution receipt. The original OAuth caller may read its own requests; an organization owner may read them from a signed-in session. A pending request past its deadline reads expired.
|
|
50
|
+
*/
|
|
51
|
+
static get(parameters, options) {
|
|
52
|
+
const params = buildClientParams([parameters], [{ args: [{
|
|
53
|
+
in: "path",
|
|
54
|
+
key: "id"
|
|
55
|
+
}] }]);
|
|
56
|
+
return requestWithPolicy(options?.client ?? client, "approvalRequestsGet", options, (headers) => (options?.client ?? client).get({
|
|
57
|
+
security: [{
|
|
58
|
+
name: "x-api-key",
|
|
59
|
+
type: "apiKey"
|
|
60
|
+
}],
|
|
61
|
+
url: "/v1/approval-requests/{id}",
|
|
62
|
+
...options,
|
|
63
|
+
...params,
|
|
64
|
+
headers
|
|
65
|
+
}));
|
|
66
|
+
}
|
|
67
|
+
/**
|
|
68
|
+
* Approve and execute an OAuth tool intent
|
|
69
|
+
*
|
|
70
|
+
* Only an organization owner in a signed-in session may approve. Claims a pending, unexpired request once, then executes its exact calls with the original OAuth authority. Repeating a decision returns the existing receipt. Execution is never retried automatically; a failed receipt can mean some actions completed, and must be reconciled before another request is created.
|
|
71
|
+
*/
|
|
72
|
+
static approve(parameters, options) {
|
|
73
|
+
const params = buildClientParams([parameters], [{ args: [{
|
|
74
|
+
in: "path",
|
|
75
|
+
key: "id"
|
|
76
|
+
}] }]);
|
|
77
|
+
return requestWithPolicy(options?.client ?? client, "approvalRequestsApprove", options, (headers) => (options?.client ?? client).post({
|
|
78
|
+
security: [{
|
|
79
|
+
name: "x-api-key",
|
|
80
|
+
type: "apiKey"
|
|
81
|
+
}],
|
|
82
|
+
url: "/v1/approval-requests/{id}/approve",
|
|
83
|
+
...options,
|
|
84
|
+
...params,
|
|
85
|
+
headers
|
|
86
|
+
}));
|
|
87
|
+
}
|
|
88
|
+
/**
|
|
89
|
+
* Reject an OAuth tool intent
|
|
90
|
+
*
|
|
91
|
+
* Only an organization owner in a signed-in session may reject a pending request. Records the optional reason and destroys the retained execution credential. Repeated decisions return the existing receipt.
|
|
92
|
+
*/
|
|
93
|
+
static reject(parameters, options) {
|
|
94
|
+
const params = buildClientParams([parameters], [{ args: [{
|
|
95
|
+
in: "path",
|
|
96
|
+
key: "id"
|
|
97
|
+
}, {
|
|
98
|
+
in: "body",
|
|
99
|
+
key: "reason"
|
|
100
|
+
}] }]);
|
|
101
|
+
return requestWithPolicy(options?.client ?? client, "approvalRequestsReject", options, (headers) => (options?.client ?? client).post({
|
|
102
|
+
security: [{
|
|
103
|
+
name: "x-api-key",
|
|
104
|
+
type: "apiKey"
|
|
105
|
+
}],
|
|
106
|
+
url: "/v1/approval-requests/{id}/reject",
|
|
107
|
+
...options,
|
|
108
|
+
...params,
|
|
109
|
+
body: params.body ?? {},
|
|
110
|
+
headers: {
|
|
111
|
+
"Content-Type": "application/json",
|
|
112
|
+
...options?.headers,
|
|
113
|
+
...params.headers
|
|
114
|
+
},
|
|
115
|
+
headers: {
|
|
116
|
+
"Content-Type": "application/json",
|
|
117
|
+
...headers
|
|
118
|
+
}
|
|
119
|
+
}));
|
|
120
|
+
}
|
|
121
|
+
};
|
|
5
122
|
var Messages = class {
|
|
6
123
|
/**
|
|
7
124
|
* List messages
|
|
@@ -5534,238 +5651,708 @@ var Agents = class {
|
|
|
5534
5651
|
}));
|
|
5535
5652
|
}
|
|
5536
5653
|
};
|
|
5537
|
-
var
|
|
5654
|
+
var Accounts = class {
|
|
5538
5655
|
/**
|
|
5539
|
-
*
|
|
5656
|
+
* List contact connections
|
|
5540
5657
|
*
|
|
5541
|
-
*
|
|
5658
|
+
* Lists the contact credentials connected for this organization. An administrator can disconnect each account by accountId.
|
|
5542
5659
|
*/
|
|
5543
|
-
static
|
|
5544
|
-
const params = buildClientParams([parameters], [{ args: [
|
|
5545
|
-
|
|
5546
|
-
|
|
5547
|
-
|
|
5548
|
-
|
|
5549
|
-
{
|
|
5550
|
-
in: "body",
|
|
5551
|
-
key: "topicId"
|
|
5552
|
-
},
|
|
5553
|
-
{
|
|
5554
|
-
in: "body",
|
|
5555
|
-
key: "from"
|
|
5556
|
-
},
|
|
5557
|
-
{
|
|
5558
|
-
in: "body",
|
|
5559
|
-
key: "templateSlug"
|
|
5560
|
-
},
|
|
5561
|
-
{
|
|
5562
|
-
in: "body",
|
|
5563
|
-
key: "consentIp"
|
|
5564
|
-
},
|
|
5565
|
-
{
|
|
5566
|
-
in: "body",
|
|
5567
|
-
key: "consentSource"
|
|
5568
|
-
}
|
|
5569
|
-
] }]);
|
|
5570
|
-
return requestWithPolicy(options?.client ?? client, "subscriptionsSubscribe", options, (headers) => (options?.client ?? client).post({
|
|
5660
|
+
static listContactConnections(parameters, options) {
|
|
5661
|
+
const params = buildClientParams([parameters], [{ args: [{
|
|
5662
|
+
in: "query",
|
|
5663
|
+
key: "provider"
|
|
5664
|
+
}] }]);
|
|
5665
|
+
return requestWithPolicy(options?.client ?? client, "accountsListContactConnections", options, (headers) => (options?.client ?? client).get({
|
|
5571
5666
|
security: [{
|
|
5572
5667
|
name: "x-api-key",
|
|
5573
5668
|
type: "apiKey"
|
|
5574
5669
|
}],
|
|
5575
|
-
url: "/v1/
|
|
5670
|
+
url: "/v1/accounts/contact-connections",
|
|
5576
5671
|
...options,
|
|
5577
5672
|
...params,
|
|
5578
|
-
|
|
5579
|
-
headers: {
|
|
5580
|
-
"Content-Type": "application/json",
|
|
5581
|
-
...options?.headers,
|
|
5582
|
-
...params.headers
|
|
5583
|
-
},
|
|
5584
|
-
headers: {
|
|
5585
|
-
"Content-Type": "application/json",
|
|
5586
|
-
...headers
|
|
5587
|
-
}
|
|
5673
|
+
headers
|
|
5588
5674
|
}));
|
|
5589
5675
|
}
|
|
5590
|
-
};
|
|
5591
|
-
var ContactGroups = class {
|
|
5592
5676
|
/**
|
|
5593
|
-
* List
|
|
5677
|
+
* List accounts
|
|
5594
5678
|
*
|
|
5595
|
-
* Returns the organization's
|
|
5679
|
+
* Returns the organization's connected provider accounts, newest first.
|
|
5596
5680
|
*/
|
|
5597
|
-
static list(
|
|
5598
|
-
|
|
5599
|
-
{
|
|
5600
|
-
in: "query",
|
|
5601
|
-
key: "limit"
|
|
5602
|
-
},
|
|
5603
|
-
{
|
|
5604
|
-
in: "query",
|
|
5605
|
-
key: "cursor"
|
|
5606
|
-
},
|
|
5607
|
-
{
|
|
5608
|
-
in: "query",
|
|
5609
|
-
key: "type"
|
|
5610
|
-
},
|
|
5611
|
-
{
|
|
5612
|
-
in: "query",
|
|
5613
|
-
key: "isActive"
|
|
5614
|
-
}
|
|
5615
|
-
] }]);
|
|
5616
|
-
return requestWithPolicy(options?.client ?? client, "contactGroupsList", options, (headers) => (options?.client ?? client).get({
|
|
5681
|
+
static list(options) {
|
|
5682
|
+
return requestWithPolicy(options?.client ?? client, "accountsList", options, (headers) => (options?.client ?? client).get({
|
|
5617
5683
|
security: [{
|
|
5618
5684
|
name: "x-api-key",
|
|
5619
5685
|
type: "apiKey"
|
|
5620
5686
|
}],
|
|
5621
|
-
url: "/v1/
|
|
5687
|
+
url: "/v1/accounts",
|
|
5622
5688
|
...options,
|
|
5623
|
-
...params,
|
|
5624
5689
|
headers
|
|
5625
5690
|
}));
|
|
5626
5691
|
}
|
|
5627
5692
|
/**
|
|
5628
|
-
*
|
|
5693
|
+
* Disconnect an account
|
|
5629
5694
|
*
|
|
5630
|
-
*
|
|
5695
|
+
* Revokes Samva's access at the provider and deletes the account with the integrations that link it, and their grants from every agent's draft. A published agent version that granted them can no longer use them; publish the agent to drop the grants.
|
|
5631
5696
|
*/
|
|
5632
|
-
static
|
|
5633
|
-
const params = buildClientParams([parameters], [{ args: [
|
|
5634
|
-
|
|
5635
|
-
|
|
5636
|
-
|
|
5637
|
-
|
|
5638
|
-
{
|
|
5639
|
-
in: "body",
|
|
5640
|
-
key: "description"
|
|
5641
|
-
},
|
|
5642
|
-
{
|
|
5643
|
-
in: "body",
|
|
5644
|
-
key: "type"
|
|
5645
|
-
},
|
|
5646
|
-
{
|
|
5647
|
-
in: "body",
|
|
5648
|
-
key: "criteria"
|
|
5649
|
-
},
|
|
5650
|
-
{
|
|
5651
|
-
in: "body",
|
|
5652
|
-
key: "color"
|
|
5653
|
-
},
|
|
5654
|
-
{
|
|
5655
|
-
in: "body",
|
|
5656
|
-
key: "icon"
|
|
5657
|
-
},
|
|
5658
|
-
{
|
|
5659
|
-
in: "body",
|
|
5660
|
-
key: "parentGroupId"
|
|
5661
|
-
},
|
|
5662
|
-
{
|
|
5663
|
-
in: "body",
|
|
5664
|
-
key: "isActive"
|
|
5665
|
-
}
|
|
5666
|
-
] }]);
|
|
5667
|
-
return requestWithPolicy(options?.client ?? client, "contactGroupsCreate", options, (headers) => (options?.client ?? client).post({
|
|
5697
|
+
static remove(parameters, options) {
|
|
5698
|
+
const params = buildClientParams([parameters], [{ args: [{
|
|
5699
|
+
in: "path",
|
|
5700
|
+
key: "accountId"
|
|
5701
|
+
}] }]);
|
|
5702
|
+
return requestWithPolicy(options?.client ?? client, "accountsRemove", options, (headers) => (options?.client ?? client).delete({
|
|
5668
5703
|
security: [{
|
|
5669
5704
|
name: "x-api-key",
|
|
5670
5705
|
type: "apiKey"
|
|
5671
5706
|
}],
|
|
5672
|
-
url: "/v1/
|
|
5707
|
+
url: "/v1/accounts/{accountId}",
|
|
5673
5708
|
...options,
|
|
5674
5709
|
...params,
|
|
5675
|
-
|
|
5676
|
-
headers: {
|
|
5677
|
-
"Content-Type": "application/json",
|
|
5678
|
-
...options?.headers,
|
|
5679
|
-
...params.headers
|
|
5680
|
-
},
|
|
5681
|
-
headers: {
|
|
5682
|
-
"Content-Type": "application/json",
|
|
5683
|
-
...headers
|
|
5684
|
-
}
|
|
5710
|
+
headers
|
|
5685
5711
|
}));
|
|
5686
5712
|
}
|
|
5687
5713
|
/**
|
|
5688
|
-
*
|
|
5714
|
+
* Get an account
|
|
5689
5715
|
*
|
|
5690
|
-
*
|
|
5716
|
+
* Returns one account with its status and granted scopes. A Shopify account missing requested scopes, including read_products and read_legal_policies, needs reconnecting.
|
|
5691
5717
|
*/
|
|
5692
|
-
static
|
|
5718
|
+
static get(parameters, options) {
|
|
5693
5719
|
const params = buildClientParams([parameters], [{ args: [{
|
|
5694
5720
|
in: "path",
|
|
5695
|
-
key: "
|
|
5721
|
+
key: "accountId"
|
|
5696
5722
|
}] }]);
|
|
5697
|
-
return requestWithPolicy(options?.client ?? client, "
|
|
5723
|
+
return requestWithPolicy(options?.client ?? client, "accountsGet", options, (headers) => (options?.client ?? client).get({
|
|
5698
5724
|
security: [{
|
|
5699
5725
|
name: "x-api-key",
|
|
5700
5726
|
type: "apiKey"
|
|
5701
5727
|
}],
|
|
5702
|
-
url: "/v1/
|
|
5728
|
+
url: "/v1/accounts/{accountId}",
|
|
5703
5729
|
...options,
|
|
5704
5730
|
...params,
|
|
5705
5731
|
headers
|
|
5706
5732
|
}));
|
|
5707
5733
|
}
|
|
5708
5734
|
/**
|
|
5709
|
-
*
|
|
5735
|
+
* Check an account
|
|
5710
5736
|
*
|
|
5711
|
-
*
|
|
5737
|
+
* Checks the saved credential on demand. A provider outage does not require reconnecting; refused access or missing requested scopes does.
|
|
5712
5738
|
*/
|
|
5713
|
-
static
|
|
5739
|
+
static check(parameters, options) {
|
|
5714
5740
|
const params = buildClientParams([parameters], [{ args: [{
|
|
5715
5741
|
in: "path",
|
|
5716
|
-
key: "
|
|
5742
|
+
key: "accountId"
|
|
5717
5743
|
}] }]);
|
|
5718
|
-
return requestWithPolicy(options?.client ?? client, "
|
|
5744
|
+
return requestWithPolicy(options?.client ?? client, "accountsCheck", options, (headers) => (options?.client ?? client).post({
|
|
5719
5745
|
security: [{
|
|
5720
5746
|
name: "x-api-key",
|
|
5721
5747
|
type: "apiKey"
|
|
5722
5748
|
}],
|
|
5723
|
-
url: "/v1/
|
|
5749
|
+
url: "/v1/accounts/{accountId}/check",
|
|
5724
5750
|
...options,
|
|
5725
5751
|
...params,
|
|
5726
5752
|
headers
|
|
5727
5753
|
}));
|
|
5728
5754
|
}
|
|
5729
5755
|
/**
|
|
5730
|
-
*
|
|
5756
|
+
* Connect an account
|
|
5731
5757
|
*
|
|
5732
|
-
*
|
|
5758
|
+
* Connects a provider account. OAuth returns an authorization URL; credential connections return null after validation. Name an app to ask for its scopes and install it when the connection finishes. Pass accountId to reconnect an account for renewed access or additional scopes. Connecting or reconnecting Shopify with read_products and read_legal_policies creates its Shopify store knowledge source.
|
|
5733
5759
|
*/
|
|
5734
|
-
static
|
|
5760
|
+
static connect(parameters, options) {
|
|
5735
5761
|
const params = buildClientParams([parameters], [{ args: [
|
|
5736
|
-
{
|
|
5737
|
-
in: "path",
|
|
5738
|
-
key: "id"
|
|
5739
|
-
},
|
|
5740
5762
|
{
|
|
5741
5763
|
in: "body",
|
|
5742
|
-
key: "
|
|
5764
|
+
key: "provider"
|
|
5743
5765
|
},
|
|
5744
5766
|
{
|
|
5745
5767
|
in: "body",
|
|
5746
|
-
key: "
|
|
5768
|
+
key: "input"
|
|
5747
5769
|
},
|
|
5748
5770
|
{
|
|
5749
5771
|
in: "body",
|
|
5750
|
-
key: "
|
|
5772
|
+
key: "credentials"
|
|
5751
5773
|
},
|
|
5752
5774
|
{
|
|
5753
5775
|
in: "body",
|
|
5754
|
-
key: "
|
|
5776
|
+
key: "app"
|
|
5755
5777
|
},
|
|
5756
5778
|
{
|
|
5757
5779
|
in: "body",
|
|
5758
|
-
key: "
|
|
5780
|
+
key: "accountId"
|
|
5759
5781
|
},
|
|
5760
5782
|
{
|
|
5761
5783
|
in: "body",
|
|
5762
|
-
key: "
|
|
5784
|
+
key: "expectedHosts"
|
|
5763
5785
|
},
|
|
5764
5786
|
{
|
|
5765
5787
|
in: "body",
|
|
5766
|
-
key: "
|
|
5767
|
-
}
|
|
5768
|
-
|
|
5788
|
+
key: "returnTo"
|
|
5789
|
+
}
|
|
5790
|
+
] }]);
|
|
5791
|
+
return requestWithPolicy(options?.client ?? client, "accountsConnect", options, (headers) => (options?.client ?? client).post({
|
|
5792
|
+
security: [{
|
|
5793
|
+
name: "x-api-key",
|
|
5794
|
+
type: "apiKey"
|
|
5795
|
+
}],
|
|
5796
|
+
url: "/v1/accounts/connect",
|
|
5797
|
+
...options,
|
|
5798
|
+
...params,
|
|
5799
|
+
body: params.body ?? {},
|
|
5800
|
+
headers: {
|
|
5801
|
+
"Content-Type": "application/json",
|
|
5802
|
+
...options?.headers,
|
|
5803
|
+
...params.headers
|
|
5804
|
+
},
|
|
5805
|
+
headers: {
|
|
5806
|
+
"Content-Type": "application/json",
|
|
5807
|
+
...headers
|
|
5808
|
+
}
|
|
5809
|
+
}));
|
|
5810
|
+
}
|
|
5811
|
+
};
|
|
5812
|
+
var IntegrationCatalog = class {
|
|
5813
|
+
/**
|
|
5814
|
+
* Prepare an integration connection
|
|
5815
|
+
*
|
|
5816
|
+
* Resolves what connecting a catalog provider needs: the inputs and credentials it asks for, the hosts its API and OAuth credentials reach, and whether it can connect. Pass input for server inputs such as an API description URL. An unavailable provider carries a reason.
|
|
5817
|
+
*/
|
|
5818
|
+
static prepare(parameters, options) {
|
|
5819
|
+
const params = buildClientParams([parameters], [{ args: [{
|
|
5820
|
+
in: "body",
|
|
5821
|
+
key: "provider"
|
|
5822
|
+
}, {
|
|
5823
|
+
in: "body",
|
|
5824
|
+
key: "input"
|
|
5825
|
+
}] }]);
|
|
5826
|
+
return requestWithPolicy(options?.client ?? client, "integrationCatalogPrepare", options, (headers) => (options?.client ?? client).post({
|
|
5827
|
+
security: [{
|
|
5828
|
+
name: "x-api-key",
|
|
5829
|
+
type: "apiKey"
|
|
5830
|
+
}],
|
|
5831
|
+
url: "/v1/integrations/catalog/prepare",
|
|
5832
|
+
...options,
|
|
5833
|
+
...params,
|
|
5834
|
+
body: params.body ?? {},
|
|
5835
|
+
headers: {
|
|
5836
|
+
"Content-Type": "application/json",
|
|
5837
|
+
...options?.headers,
|
|
5838
|
+
...params.headers
|
|
5839
|
+
},
|
|
5840
|
+
headers: {
|
|
5841
|
+
"Content-Type": "application/json",
|
|
5842
|
+
...headers
|
|
5843
|
+
}
|
|
5844
|
+
}));
|
|
5845
|
+
}
|
|
5846
|
+
/**
|
|
5847
|
+
* Search the integrations catalog
|
|
5848
|
+
*
|
|
5849
|
+
* Searches the providers this organization can connect, by key, text or category. Each entry carries its connection requirements and whether it can connect. Follow nextOffset until it is null.
|
|
5850
|
+
*/
|
|
5851
|
+
static search(parameters, options) {
|
|
5852
|
+
const params = buildClientParams([parameters], [{ args: [
|
|
5853
|
+
{
|
|
5854
|
+
in: "query",
|
|
5855
|
+
key: "key"
|
|
5856
|
+
},
|
|
5857
|
+
{
|
|
5858
|
+
in: "query",
|
|
5859
|
+
key: "query"
|
|
5860
|
+
},
|
|
5861
|
+
{
|
|
5862
|
+
in: "query",
|
|
5863
|
+
key: "category"
|
|
5864
|
+
},
|
|
5865
|
+
{
|
|
5866
|
+
in: "query",
|
|
5867
|
+
key: "offset"
|
|
5868
|
+
},
|
|
5869
|
+
{
|
|
5870
|
+
in: "query",
|
|
5871
|
+
key: "limit"
|
|
5872
|
+
}
|
|
5873
|
+
] }]);
|
|
5874
|
+
return requestWithPolicy(options?.client ?? client, "integrationCatalogSearch", options, (headers) => (options?.client ?? client).get({
|
|
5875
|
+
security: [{
|
|
5876
|
+
name: "x-api-key",
|
|
5877
|
+
type: "apiKey"
|
|
5878
|
+
}],
|
|
5879
|
+
url: "/v1/integrations/catalog/search",
|
|
5880
|
+
...options,
|
|
5881
|
+
...params,
|
|
5882
|
+
headers
|
|
5883
|
+
}));
|
|
5884
|
+
}
|
|
5885
|
+
/**
|
|
5886
|
+
* List the integrations catalog
|
|
5887
|
+
*
|
|
5888
|
+
* Returns the providers this organization can connect, each with its connections and the agents and journeys that use them.
|
|
5889
|
+
*/
|
|
5890
|
+
static list(options) {
|
|
5891
|
+
return requestWithPolicy(options?.client ?? client, "integrationCatalogList", options, (headers) => (options?.client ?? client).get({
|
|
5892
|
+
security: [{
|
|
5893
|
+
name: "x-api-key",
|
|
5894
|
+
type: "apiKey"
|
|
5895
|
+
}],
|
|
5896
|
+
url: "/v1/integrations/catalog",
|
|
5897
|
+
...options,
|
|
5898
|
+
headers
|
|
5899
|
+
}));
|
|
5900
|
+
}
|
|
5901
|
+
};
|
|
5902
|
+
var Integrations = class {
|
|
5903
|
+
/**
|
|
5904
|
+
* List integrations
|
|
5905
|
+
*
|
|
5906
|
+
* Returns a bounded page of installed integrations, newest first, with compact tool summaries. Follow nextCursor and each integration's toolPage.nextOffset for the complete inventory.
|
|
5907
|
+
*/
|
|
5908
|
+
static list(parameters, options) {
|
|
5909
|
+
const params = buildClientParams([parameters], [{ args: [{
|
|
5910
|
+
in: "query",
|
|
5911
|
+
key: "limit"
|
|
5912
|
+
}, {
|
|
5913
|
+
in: "query",
|
|
5914
|
+
key: "cursor"
|
|
5915
|
+
}] }]);
|
|
5916
|
+
return requestWithPolicy(options?.client ?? client, "integrationsList", options, (headers) => (options?.client ?? client).get({
|
|
5917
|
+
security: [{
|
|
5918
|
+
name: "x-api-key",
|
|
5919
|
+
type: "apiKey"
|
|
5920
|
+
}],
|
|
5921
|
+
url: "/v1/integrations",
|
|
5922
|
+
...options,
|
|
5923
|
+
...params,
|
|
5924
|
+
headers
|
|
5925
|
+
}));
|
|
5926
|
+
}
|
|
5927
|
+
/**
|
|
5928
|
+
* Install an integration
|
|
5929
|
+
*
|
|
5930
|
+
* Installs an app on connected accounts, one for each of the app's account slots. Installing the same app on the same accounts again returns the existing integration.
|
|
5931
|
+
*/
|
|
5932
|
+
static install(parameters, options) {
|
|
5933
|
+
const params = buildClientParams([parameters], [{ args: [
|
|
5934
|
+
{
|
|
5935
|
+
in: "body",
|
|
5936
|
+
key: "app"
|
|
5937
|
+
},
|
|
5938
|
+
{
|
|
5939
|
+
in: "body",
|
|
5940
|
+
key: "accounts"
|
|
5941
|
+
},
|
|
5942
|
+
{
|
|
5943
|
+
in: "body",
|
|
5944
|
+
key: "settings"
|
|
5945
|
+
}
|
|
5946
|
+
] }]);
|
|
5947
|
+
return requestWithPolicy(options?.client ?? client, "integrationsInstall", options, (headers) => (options?.client ?? client).post({
|
|
5948
|
+
security: [{
|
|
5949
|
+
name: "x-api-key",
|
|
5950
|
+
type: "apiKey"
|
|
5951
|
+
}],
|
|
5952
|
+
url: "/v1/integrations",
|
|
5953
|
+
...options,
|
|
5954
|
+
...params,
|
|
5955
|
+
body: params.body ?? {},
|
|
5956
|
+
headers: {
|
|
5957
|
+
"Content-Type": "application/json",
|
|
5958
|
+
...options?.headers,
|
|
5959
|
+
...params.headers
|
|
5960
|
+
},
|
|
5961
|
+
headers: {
|
|
5962
|
+
"Content-Type": "application/json",
|
|
5963
|
+
...headers
|
|
5964
|
+
}
|
|
5965
|
+
}));
|
|
5966
|
+
}
|
|
5967
|
+
/**
|
|
5968
|
+
* List integration tools
|
|
5969
|
+
*
|
|
5970
|
+
* Returns a page of the tools an integration gives agents. Send the first page's revision with each later offset; if the integration's tools change during the read, the request returns 409 and the read restarts at offset zero.
|
|
5971
|
+
*/
|
|
5972
|
+
static listTools(parameters, options) {
|
|
5973
|
+
const params = buildClientParams([parameters], [{ args: [
|
|
5974
|
+
{
|
|
5975
|
+
in: "path",
|
|
5976
|
+
key: "integrationId"
|
|
5977
|
+
},
|
|
5978
|
+
{
|
|
5979
|
+
in: "query",
|
|
5980
|
+
key: "offset"
|
|
5981
|
+
},
|
|
5982
|
+
{
|
|
5983
|
+
in: "query",
|
|
5984
|
+
key: "revision"
|
|
5985
|
+
}
|
|
5986
|
+
] }]);
|
|
5987
|
+
return requestWithPolicy(options?.client ?? client, "integrationsListTools", options, (headers) => (options?.client ?? client).get({
|
|
5988
|
+
security: [{
|
|
5989
|
+
name: "x-api-key",
|
|
5990
|
+
type: "apiKey"
|
|
5991
|
+
}],
|
|
5992
|
+
url: "/v1/integrations/{integrationId}/tools",
|
|
5993
|
+
...options,
|
|
5994
|
+
...params,
|
|
5995
|
+
headers
|
|
5996
|
+
}));
|
|
5997
|
+
}
|
|
5998
|
+
/**
|
|
5999
|
+
* Read an integration tool descriptor
|
|
6000
|
+
*
|
|
6001
|
+
* Returns one tool's full descriptor. A revision that no longer matches the integration's tools returns 409.
|
|
6002
|
+
*/
|
|
6003
|
+
static readTool(parameters, options) {
|
|
6004
|
+
const params = buildClientParams([parameters], [{ args: [
|
|
6005
|
+
{
|
|
6006
|
+
in: "path",
|
|
6007
|
+
key: "integrationId"
|
|
6008
|
+
},
|
|
6009
|
+
{
|
|
6010
|
+
in: "path",
|
|
6011
|
+
key: "tool"
|
|
6012
|
+
},
|
|
6013
|
+
{
|
|
6014
|
+
in: "query",
|
|
6015
|
+
key: "offset"
|
|
6016
|
+
},
|
|
6017
|
+
{
|
|
6018
|
+
in: "query",
|
|
6019
|
+
key: "revision"
|
|
6020
|
+
}
|
|
6021
|
+
] }]);
|
|
6022
|
+
return requestWithPolicy(options?.client ?? client, "integrationsReadTool", options, (headers) => (options?.client ?? client).get({
|
|
6023
|
+
security: [{
|
|
6024
|
+
name: "x-api-key",
|
|
6025
|
+
type: "apiKey"
|
|
6026
|
+
}],
|
|
6027
|
+
url: "/v1/integrations/{integrationId}/tools/{tool}",
|
|
6028
|
+
...options,
|
|
6029
|
+
...params,
|
|
6030
|
+
headers
|
|
6031
|
+
}));
|
|
6032
|
+
}
|
|
6033
|
+
/**
|
|
6034
|
+
* Remove an integration
|
|
6035
|
+
*
|
|
6036
|
+
* Removes the integration and its grant from every agent's draft. Contact accounts are disconnected; organization accounts stay connected. A published agent version that granted it can no longer use it; publish the agent to drop the grant.
|
|
6037
|
+
*/
|
|
6038
|
+
static remove(parameters, options) {
|
|
6039
|
+
const params = buildClientParams([parameters], [{ args: [{
|
|
6040
|
+
in: "path",
|
|
6041
|
+
key: "integrationId"
|
|
6042
|
+
}] }]);
|
|
6043
|
+
return requestWithPolicy(options?.client ?? client, "integrationsRemove", options, (headers) => (options?.client ?? client).delete({
|
|
6044
|
+
security: [{
|
|
6045
|
+
name: "x-api-key",
|
|
6046
|
+
type: "apiKey"
|
|
6047
|
+
}],
|
|
6048
|
+
url: "/v1/integrations/{integrationId}",
|
|
6049
|
+
...options,
|
|
6050
|
+
...params,
|
|
6051
|
+
headers
|
|
6052
|
+
}));
|
|
6053
|
+
}
|
|
6054
|
+
/**
|
|
6055
|
+
* Get an integration
|
|
6056
|
+
*
|
|
6057
|
+
* Returns one integration with its linked accounts, settings and tools. A Shopify integration needs reconnecting when its account has not granted the requested scopes, including read_products and read_legal_policies.
|
|
6058
|
+
*/
|
|
6059
|
+
static get(parameters, options) {
|
|
6060
|
+
const params = buildClientParams([parameters], [{ args: [{
|
|
6061
|
+
in: "path",
|
|
6062
|
+
key: "integrationId"
|
|
6063
|
+
}] }]);
|
|
6064
|
+
return requestWithPolicy(options?.client ?? client, "integrationsGet", options, (headers) => (options?.client ?? client).get({
|
|
6065
|
+
security: [{
|
|
6066
|
+
name: "x-api-key",
|
|
6067
|
+
type: "apiKey"
|
|
6068
|
+
}],
|
|
6069
|
+
url: "/v1/integrations/{integrationId}",
|
|
6070
|
+
...options,
|
|
6071
|
+
...params,
|
|
6072
|
+
headers
|
|
6073
|
+
}));
|
|
6074
|
+
}
|
|
6075
|
+
/**
|
|
6076
|
+
* Update an integration
|
|
6077
|
+
*
|
|
6078
|
+
* Changes an integration's settings, enabled tools, which tools run without approval, and whether replies using its data need approval. Only an organization owner may change answerWithoutApproval or a tool's runsWithoutApproval: false makes a read tool ask first, true lets a tool that changes something run, each for the tool's current effect. Fields not named keep their values. What an agent may do with the integration is the agent's grant.
|
|
6079
|
+
*/
|
|
6080
|
+
static update(parameters, options) {
|
|
6081
|
+
const params = buildClientParams([parameters], [{ args: [
|
|
6082
|
+
{
|
|
6083
|
+
in: "path",
|
|
6084
|
+
key: "integrationId"
|
|
6085
|
+
},
|
|
6086
|
+
{
|
|
6087
|
+
in: "body",
|
|
6088
|
+
key: "answerWithoutApproval"
|
|
6089
|
+
},
|
|
6090
|
+
{
|
|
6091
|
+
in: "body",
|
|
6092
|
+
key: "enabledTools"
|
|
6093
|
+
},
|
|
6094
|
+
{
|
|
6095
|
+
in: "body",
|
|
6096
|
+
key: "tool"
|
|
6097
|
+
},
|
|
6098
|
+
{
|
|
6099
|
+
in: "body",
|
|
6100
|
+
key: "settings"
|
|
6101
|
+
}
|
|
6102
|
+
] }]);
|
|
6103
|
+
return requestWithPolicy(options?.client ?? client, "integrationsUpdate", options, (headers) => (options?.client ?? client).patch({
|
|
6104
|
+
security: [{
|
|
6105
|
+
name: "x-api-key",
|
|
6106
|
+
type: "apiKey"
|
|
6107
|
+
}],
|
|
6108
|
+
url: "/v1/integrations/{integrationId}",
|
|
6109
|
+
...options,
|
|
6110
|
+
...params,
|
|
6111
|
+
body: params.body ?? {},
|
|
6112
|
+
headers: {
|
|
6113
|
+
"Content-Type": "application/json",
|
|
6114
|
+
...options?.headers,
|
|
6115
|
+
...params.headers
|
|
6116
|
+
},
|
|
6117
|
+
headers: {
|
|
6118
|
+
"Content-Type": "application/json",
|
|
6119
|
+
...headers
|
|
6120
|
+
}
|
|
6121
|
+
}));
|
|
6122
|
+
}
|
|
6123
|
+
};
|
|
6124
|
+
var Subscriptions = class {
|
|
6125
|
+
/**
|
|
6126
|
+
* Request subscription confirmation
|
|
6127
|
+
*
|
|
6128
|
+
* Sends a confirmation email from your sender. Only the recipient's explicit confirmation creates their contact and subscribes them to the named topic. The link expires after seven days and can be used once. A custom published email template receives confirmUrl. Sending follows ordinary sender, admission, billing, and brand-footer settings. Requires email send authority in addition to the declared contact grants, including the topic subscription change.
|
|
6129
|
+
*/
|
|
6130
|
+
static subscribe(parameters, options) {
|
|
6131
|
+
const params = buildClientParams([parameters], [{ args: [
|
|
6132
|
+
{
|
|
6133
|
+
in: "body",
|
|
6134
|
+
key: "email"
|
|
6135
|
+
},
|
|
6136
|
+
{
|
|
6137
|
+
in: "body",
|
|
6138
|
+
key: "topicId"
|
|
6139
|
+
},
|
|
6140
|
+
{
|
|
6141
|
+
in: "body",
|
|
6142
|
+
key: "from"
|
|
6143
|
+
},
|
|
6144
|
+
{
|
|
6145
|
+
in: "body",
|
|
6146
|
+
key: "templateSlug"
|
|
6147
|
+
},
|
|
6148
|
+
{
|
|
6149
|
+
in: "body",
|
|
6150
|
+
key: "consentIp"
|
|
6151
|
+
},
|
|
6152
|
+
{
|
|
6153
|
+
in: "body",
|
|
6154
|
+
key: "consentSource"
|
|
6155
|
+
}
|
|
6156
|
+
] }]);
|
|
6157
|
+
return requestWithPolicy(options?.client ?? client, "subscriptionsSubscribe", options, (headers) => (options?.client ?? client).post({
|
|
6158
|
+
security: [{
|
|
6159
|
+
name: "x-api-key",
|
|
6160
|
+
type: "apiKey"
|
|
6161
|
+
}],
|
|
6162
|
+
url: "/v1/subscriptions",
|
|
6163
|
+
...options,
|
|
6164
|
+
...params,
|
|
6165
|
+
body: params.body ?? {},
|
|
6166
|
+
headers: {
|
|
6167
|
+
"Content-Type": "application/json",
|
|
6168
|
+
...options?.headers,
|
|
6169
|
+
...params.headers
|
|
6170
|
+
},
|
|
6171
|
+
headers: {
|
|
6172
|
+
"Content-Type": "application/json",
|
|
6173
|
+
...headers
|
|
6174
|
+
}
|
|
6175
|
+
}));
|
|
6176
|
+
}
|
|
6177
|
+
};
|
|
6178
|
+
var ContactGroups = class {
|
|
6179
|
+
/**
|
|
6180
|
+
* List contact groups
|
|
6181
|
+
*
|
|
6182
|
+
* Returns the organization's contact groups, newest first, filterable by type and active state. Pass `nextCursor` back as `cursor` for the next page; it is null on the last page.
|
|
6183
|
+
*/
|
|
6184
|
+
static list(parameters, options) {
|
|
6185
|
+
const params = buildClientParams([parameters], [{ args: [
|
|
6186
|
+
{
|
|
6187
|
+
in: "query",
|
|
6188
|
+
key: "limit"
|
|
6189
|
+
},
|
|
6190
|
+
{
|
|
6191
|
+
in: "query",
|
|
6192
|
+
key: "cursor"
|
|
6193
|
+
},
|
|
6194
|
+
{
|
|
6195
|
+
in: "query",
|
|
6196
|
+
key: "type"
|
|
6197
|
+
},
|
|
6198
|
+
{
|
|
6199
|
+
in: "query",
|
|
6200
|
+
key: "isActive"
|
|
6201
|
+
}
|
|
6202
|
+
] }]);
|
|
6203
|
+
return requestWithPolicy(options?.client ?? client, "contactGroupsList", options, (headers) => (options?.client ?? client).get({
|
|
6204
|
+
security: [{
|
|
6205
|
+
name: "x-api-key",
|
|
6206
|
+
type: "apiKey"
|
|
6207
|
+
}],
|
|
6208
|
+
url: "/v1/contact-groups",
|
|
6209
|
+
...options,
|
|
6210
|
+
...params,
|
|
6211
|
+
headers
|
|
6212
|
+
}));
|
|
6213
|
+
}
|
|
6214
|
+
/**
|
|
6215
|
+
* Create a contact group
|
|
6216
|
+
*
|
|
6217
|
+
* Creates a new contact group and returns it with a 201 status.
|
|
6218
|
+
*/
|
|
6219
|
+
static create(parameters, options) {
|
|
6220
|
+
const params = buildClientParams([parameters], [{ args: [
|
|
6221
|
+
{
|
|
6222
|
+
in: "body",
|
|
6223
|
+
key: "name"
|
|
6224
|
+
},
|
|
6225
|
+
{
|
|
6226
|
+
in: "body",
|
|
6227
|
+
key: "description"
|
|
6228
|
+
},
|
|
6229
|
+
{
|
|
6230
|
+
in: "body",
|
|
6231
|
+
key: "type"
|
|
6232
|
+
},
|
|
6233
|
+
{
|
|
6234
|
+
in: "body",
|
|
6235
|
+
key: "criteria"
|
|
6236
|
+
},
|
|
6237
|
+
{
|
|
6238
|
+
in: "body",
|
|
6239
|
+
key: "color"
|
|
6240
|
+
},
|
|
6241
|
+
{
|
|
6242
|
+
in: "body",
|
|
6243
|
+
key: "icon"
|
|
6244
|
+
},
|
|
6245
|
+
{
|
|
6246
|
+
in: "body",
|
|
6247
|
+
key: "parentGroupId"
|
|
6248
|
+
},
|
|
6249
|
+
{
|
|
6250
|
+
in: "body",
|
|
6251
|
+
key: "isActive"
|
|
6252
|
+
}
|
|
6253
|
+
] }]);
|
|
6254
|
+
return requestWithPolicy(options?.client ?? client, "contactGroupsCreate", options, (headers) => (options?.client ?? client).post({
|
|
6255
|
+
security: [{
|
|
6256
|
+
name: "x-api-key",
|
|
6257
|
+
type: "apiKey"
|
|
6258
|
+
}],
|
|
6259
|
+
url: "/v1/contact-groups",
|
|
6260
|
+
...options,
|
|
6261
|
+
...params,
|
|
6262
|
+
body: params.body ?? {},
|
|
6263
|
+
headers: {
|
|
6264
|
+
"Content-Type": "application/json",
|
|
6265
|
+
...options?.headers,
|
|
6266
|
+
...params.headers
|
|
6267
|
+
},
|
|
6268
|
+
headers: {
|
|
6269
|
+
"Content-Type": "application/json",
|
|
6270
|
+
...headers
|
|
6271
|
+
}
|
|
6272
|
+
}));
|
|
6273
|
+
}
|
|
6274
|
+
/**
|
|
6275
|
+
* Delete a contact group
|
|
6276
|
+
*
|
|
6277
|
+
* Permanently deletes a contact group by its ID.
|
|
6278
|
+
*/
|
|
6279
|
+
static remove(parameters, options) {
|
|
6280
|
+
const params = buildClientParams([parameters], [{ args: [{
|
|
6281
|
+
in: "path",
|
|
6282
|
+
key: "id"
|
|
6283
|
+
}] }]);
|
|
6284
|
+
return requestWithPolicy(options?.client ?? client, "contactGroupsRemove", options, (headers) => (options?.client ?? client).delete({
|
|
6285
|
+
security: [{
|
|
6286
|
+
name: "x-api-key",
|
|
6287
|
+
type: "apiKey"
|
|
6288
|
+
}],
|
|
6289
|
+
url: "/v1/contact-groups/{id}",
|
|
6290
|
+
...options,
|
|
6291
|
+
...params,
|
|
6292
|
+
headers
|
|
6293
|
+
}));
|
|
6294
|
+
}
|
|
6295
|
+
/**
|
|
6296
|
+
* Get a contact group
|
|
6297
|
+
*
|
|
6298
|
+
* Returns a single contact group by its ID.
|
|
6299
|
+
*/
|
|
6300
|
+
static getById(parameters, options) {
|
|
6301
|
+
const params = buildClientParams([parameters], [{ args: [{
|
|
6302
|
+
in: "path",
|
|
6303
|
+
key: "id"
|
|
6304
|
+
}] }]);
|
|
6305
|
+
return requestWithPolicy(options?.client ?? client, "contactGroupsGetById", options, (headers) => (options?.client ?? client).get({
|
|
6306
|
+
security: [{
|
|
6307
|
+
name: "x-api-key",
|
|
6308
|
+
type: "apiKey"
|
|
6309
|
+
}],
|
|
6310
|
+
url: "/v1/contact-groups/{id}",
|
|
6311
|
+
...options,
|
|
6312
|
+
...params,
|
|
6313
|
+
headers
|
|
6314
|
+
}));
|
|
6315
|
+
}
|
|
6316
|
+
/**
|
|
6317
|
+
* Update a contact group
|
|
6318
|
+
*
|
|
6319
|
+
* Updates an existing contact group's fields and returns the updated group.
|
|
6320
|
+
*/
|
|
6321
|
+
static update(parameters, options) {
|
|
6322
|
+
const params = buildClientParams([parameters], [{ args: [
|
|
6323
|
+
{
|
|
6324
|
+
in: "path",
|
|
6325
|
+
key: "id"
|
|
6326
|
+
},
|
|
6327
|
+
{
|
|
6328
|
+
in: "body",
|
|
6329
|
+
key: "name"
|
|
6330
|
+
},
|
|
6331
|
+
{
|
|
6332
|
+
in: "body",
|
|
6333
|
+
key: "description"
|
|
6334
|
+
},
|
|
6335
|
+
{
|
|
6336
|
+
in: "body",
|
|
6337
|
+
key: "type"
|
|
6338
|
+
},
|
|
6339
|
+
{
|
|
6340
|
+
in: "body",
|
|
6341
|
+
key: "criteria"
|
|
6342
|
+
},
|
|
6343
|
+
{
|
|
6344
|
+
in: "body",
|
|
6345
|
+
key: "color"
|
|
6346
|
+
},
|
|
6347
|
+
{
|
|
6348
|
+
in: "body",
|
|
6349
|
+
key: "icon"
|
|
6350
|
+
},
|
|
6351
|
+
{
|
|
6352
|
+
in: "body",
|
|
6353
|
+
key: "parentGroupId"
|
|
6354
|
+
},
|
|
6355
|
+
{
|
|
5769
6356
|
in: "body",
|
|
5770
6357
|
key: "isActive"
|
|
5771
6358
|
}
|
|
@@ -7545,7 +8132,7 @@ var Templates = class {
|
|
|
7545
8132
|
/**
|
|
7546
8133
|
* Create a template
|
|
7547
8134
|
*
|
|
7548
|
-
* Creates
|
|
8135
|
+
* Creates a named or gallery template project. With only shareLinkSlug, copies every exported email into the caller's organization and returns the first template with its projectId. Repeated opens reuse that organization's existing copy; an unavailable share link returns 410.
|
|
7549
8136
|
*/
|
|
7550
8137
|
static create(parameters, options) {
|
|
7551
8138
|
const params = buildClientParams([parameters], [{ args: [
|
|
@@ -7553,6 +8140,10 @@ var Templates = class {
|
|
|
7553
8140
|
in: "body",
|
|
7554
8141
|
key: "name"
|
|
7555
8142
|
},
|
|
8143
|
+
{
|
|
8144
|
+
in: "body",
|
|
8145
|
+
key: "shareLinkSlug"
|
|
8146
|
+
},
|
|
7556
8147
|
{
|
|
7557
8148
|
in: "body",
|
|
7558
8149
|
key: "projectName"
|
|
@@ -8763,6 +9354,137 @@ var Templates = class {
|
|
|
8763
9354
|
}));
|
|
8764
9355
|
}
|
|
8765
9356
|
};
|
|
9357
|
+
var TemplateShareLinks = class {
|
|
9358
|
+
/**
|
|
9359
|
+
* Delete a share link
|
|
9360
|
+
*
|
|
9361
|
+
* Disables the public link. Copies already opened remain with their owners.
|
|
9362
|
+
*/
|
|
9363
|
+
static delete(parameters, options) {
|
|
9364
|
+
const params = buildClientParams([parameters], [{ args: [{
|
|
9365
|
+
in: "path",
|
|
9366
|
+
key: "projectId"
|
|
9367
|
+
}] }]);
|
|
9368
|
+
return requestWithPolicy(options?.client ?? client, "templateShareLinksDelete", options, (headers) => (options?.client ?? client).delete({
|
|
9369
|
+
security: [{
|
|
9370
|
+
name: "x-api-key",
|
|
9371
|
+
type: "apiKey"
|
|
9372
|
+
}],
|
|
9373
|
+
url: "/v1/template-projects/{projectId}/share-link",
|
|
9374
|
+
...options,
|
|
9375
|
+
...params,
|
|
9376
|
+
headers
|
|
9377
|
+
}));
|
|
9378
|
+
}
|
|
9379
|
+
/**
|
|
9380
|
+
* Get a project's share link
|
|
9381
|
+
*
|
|
9382
|
+
* Returns the share link and counts, or null when the project has no share link.
|
|
9383
|
+
*/
|
|
9384
|
+
static get(parameters, options) {
|
|
9385
|
+
const params = buildClientParams([parameters], [{ args: [{
|
|
9386
|
+
in: "path",
|
|
9387
|
+
key: "projectId"
|
|
9388
|
+
}] }]);
|
|
9389
|
+
return requestWithPolicy(options?.client ?? client, "templateShareLinksGet", options, (headers) => (options?.client ?? client).get({
|
|
9390
|
+
security: [{
|
|
9391
|
+
name: "x-api-key",
|
|
9392
|
+
type: "apiKey"
|
|
9393
|
+
}],
|
|
9394
|
+
url: "/v1/template-projects/{projectId}/share-link",
|
|
9395
|
+
...options,
|
|
9396
|
+
...params,
|
|
9397
|
+
headers
|
|
9398
|
+
}));
|
|
9399
|
+
}
|
|
9400
|
+
/**
|
|
9401
|
+
* Rename a share link
|
|
9402
|
+
*
|
|
9403
|
+
* Changes the slug. The old link immediately stops working, with no redirect.
|
|
9404
|
+
*/
|
|
9405
|
+
static rename(parameters, options) {
|
|
9406
|
+
const params = buildClientParams([parameters], [{ args: [{
|
|
9407
|
+
in: "path",
|
|
9408
|
+
key: "projectId"
|
|
9409
|
+
}, {
|
|
9410
|
+
in: "body",
|
|
9411
|
+
key: "slug"
|
|
9412
|
+
}] }]);
|
|
9413
|
+
return requestWithPolicy(options?.client ?? client, "templateShareLinksRename", options, (headers) => (options?.client ?? client).patch({
|
|
9414
|
+
security: [{
|
|
9415
|
+
name: "x-api-key",
|
|
9416
|
+
type: "apiKey"
|
|
9417
|
+
}],
|
|
9418
|
+
url: "/v1/template-projects/{projectId}/share-link",
|
|
9419
|
+
...options,
|
|
9420
|
+
...params,
|
|
9421
|
+
body: params.body ?? {},
|
|
9422
|
+
headers: {
|
|
9423
|
+
"Content-Type": "application/json",
|
|
9424
|
+
...options?.headers,
|
|
9425
|
+
...params.headers
|
|
9426
|
+
},
|
|
9427
|
+
headers: {
|
|
9428
|
+
"Content-Type": "application/json",
|
|
9429
|
+
...headers
|
|
9430
|
+
}
|
|
9431
|
+
}));
|
|
9432
|
+
}
|
|
9433
|
+
/**
|
|
9434
|
+
* Create a share link
|
|
9435
|
+
*
|
|
9436
|
+
* Exports the project's latest Save as a share link. Omit slug to use the slugified project name.
|
|
9437
|
+
*/
|
|
9438
|
+
static create(parameters, options) {
|
|
9439
|
+
const params = buildClientParams([parameters], [{ args: [{
|
|
9440
|
+
in: "path",
|
|
9441
|
+
key: "projectId"
|
|
9442
|
+
}, {
|
|
9443
|
+
in: "body",
|
|
9444
|
+
key: "slug"
|
|
9445
|
+
}] }]);
|
|
9446
|
+
return requestWithPolicy(options?.client ?? client, "templateShareLinksCreate", options, (headers) => (options?.client ?? client).post({
|
|
9447
|
+
security: [{
|
|
9448
|
+
name: "x-api-key",
|
|
9449
|
+
type: "apiKey"
|
|
9450
|
+
}],
|
|
9451
|
+
url: "/v1/template-projects/{projectId}/share-link",
|
|
9452
|
+
...options,
|
|
9453
|
+
...params,
|
|
9454
|
+
body: params.body ?? {},
|
|
9455
|
+
headers: {
|
|
9456
|
+
"Content-Type": "application/json",
|
|
9457
|
+
...options?.headers,
|
|
9458
|
+
...params.headers
|
|
9459
|
+
},
|
|
9460
|
+
headers: {
|
|
9461
|
+
"Content-Type": "application/json",
|
|
9462
|
+
...headers
|
|
9463
|
+
}
|
|
9464
|
+
}));
|
|
9465
|
+
}
|
|
9466
|
+
/**
|
|
9467
|
+
* Update a share link
|
|
9468
|
+
*
|
|
9469
|
+
* Replaces the share link snapshot from the latest Save, keeping its link and counts.
|
|
9470
|
+
*/
|
|
9471
|
+
static update(parameters, options) {
|
|
9472
|
+
const params = buildClientParams([parameters], [{ args: [{
|
|
9473
|
+
in: "path",
|
|
9474
|
+
key: "projectId"
|
|
9475
|
+
}] }]);
|
|
9476
|
+
return requestWithPolicy(options?.client ?? client, "templateShareLinksUpdate", options, (headers) => (options?.client ?? client).post({
|
|
9477
|
+
security: [{
|
|
9478
|
+
name: "x-api-key",
|
|
9479
|
+
type: "apiKey"
|
|
9480
|
+
}],
|
|
9481
|
+
url: "/v1/template-projects/{projectId}/share-link/update",
|
|
9482
|
+
...options,
|
|
9483
|
+
...params,
|
|
9484
|
+
headers
|
|
9485
|
+
}));
|
|
9486
|
+
}
|
|
9487
|
+
};
|
|
8766
9488
|
var Brands = class {
|
|
8767
9489
|
/**
|
|
8768
9490
|
* List brands
|
|
@@ -9920,41 +10642,162 @@ var Feedback = class {
|
|
|
9920
10642
|
name: "x-api-key",
|
|
9921
10643
|
type: "apiKey"
|
|
9922
10644
|
}],
|
|
9923
|
-
url: "/v1/feedback",
|
|
10645
|
+
url: "/v1/feedback",
|
|
10646
|
+
...options,
|
|
10647
|
+
...params,
|
|
10648
|
+
body: params.body ?? {},
|
|
10649
|
+
headers: {
|
|
10650
|
+
"Content-Type": "application/json",
|
|
10651
|
+
...options?.headers,
|
|
10652
|
+
...params.headers
|
|
10653
|
+
},
|
|
10654
|
+
headers: {
|
|
10655
|
+
"Content-Type": "application/json",
|
|
10656
|
+
...headers
|
|
10657
|
+
}
|
|
10658
|
+
}));
|
|
10659
|
+
}
|
|
10660
|
+
};
|
|
10661
|
+
var Whoami = class {
|
|
10662
|
+
/**
|
|
10663
|
+
* Get the calling credential
|
|
10664
|
+
*
|
|
10665
|
+
* Returns the organization the request acts in and the credential it presents: an API key with its name, prefix, and access, or a signed-in user with their role. Any valid credential may call it, whatever its grants.
|
|
10666
|
+
*/
|
|
10667
|
+
static get(options) {
|
|
10668
|
+
return requestWithPolicy(options?.client ?? client, "whoamiGet", options, (headers) => (options?.client ?? client).get({
|
|
10669
|
+
security: [{
|
|
10670
|
+
name: "x-api-key",
|
|
10671
|
+
type: "apiKey"
|
|
10672
|
+
}],
|
|
10673
|
+
url: "/v1/whoami",
|
|
10674
|
+
...options,
|
|
10675
|
+
headers
|
|
10676
|
+
}));
|
|
10677
|
+
}
|
|
10678
|
+
};
|
|
10679
|
+
var Mailboxes = class {
|
|
10680
|
+
/**
|
|
10681
|
+
* Create a mail history upload
|
|
10682
|
+
*
|
|
10683
|
+
* Creates a presigned archive upload for an existing mailbox. Pass importId to append another archive to the same queued job; each upload gets its own URL. Upload each URL with Content-Type application/mbox and Content-Length equal to its accepted sizeBytes. Upload every archive before starting the job. Apple Mail package directories are traversed by the CLI into one import.
|
|
10684
|
+
*/
|
|
10685
|
+
static createImportUpload(parameters, options) {
|
|
10686
|
+
const params = buildClientParams([parameters], [{ args: [
|
|
10687
|
+
{
|
|
10688
|
+
in: "path",
|
|
10689
|
+
key: "id"
|
|
10690
|
+
},
|
|
10691
|
+
{
|
|
10692
|
+
in: "body",
|
|
10693
|
+
key: "importId"
|
|
10694
|
+
},
|
|
10695
|
+
{
|
|
10696
|
+
in: "body",
|
|
10697
|
+
key: "filename"
|
|
10698
|
+
},
|
|
10699
|
+
{
|
|
10700
|
+
in: "body",
|
|
10701
|
+
key: "sizeBytes"
|
|
10702
|
+
},
|
|
10703
|
+
{
|
|
10704
|
+
in: "body",
|
|
10705
|
+
key: "format"
|
|
10706
|
+
},
|
|
10707
|
+
{
|
|
10708
|
+
in: "body",
|
|
10709
|
+
key: "mailboxPath"
|
|
10710
|
+
}
|
|
10711
|
+
] }]);
|
|
10712
|
+
return requestWithPolicy(options?.client ?? client, "mailboxesCreateImportUpload", options, (headers) => (options?.client ?? client).post({
|
|
10713
|
+
security: [{
|
|
10714
|
+
name: "x-api-key",
|
|
10715
|
+
type: "apiKey"
|
|
10716
|
+
}],
|
|
10717
|
+
url: "/v1/mailboxes/{id}/imports/uploads",
|
|
10718
|
+
...options,
|
|
10719
|
+
...params,
|
|
10720
|
+
body: params.body ?? {},
|
|
10721
|
+
headers: {
|
|
10722
|
+
"Content-Type": "application/json",
|
|
10723
|
+
...options?.headers,
|
|
10724
|
+
...params.headers
|
|
10725
|
+
},
|
|
10726
|
+
headers: {
|
|
10727
|
+
"Content-Type": "application/json",
|
|
10728
|
+
...headers
|
|
10729
|
+
}
|
|
10730
|
+
}));
|
|
10731
|
+
}
|
|
10732
|
+
/**
|
|
10733
|
+
* Start or resume a mail history import
|
|
10734
|
+
*
|
|
10735
|
+
* 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.
|
|
10736
|
+
*/
|
|
10737
|
+
static startImport(parameters, options) {
|
|
10738
|
+
const params = buildClientParams([parameters], [{ args: [{
|
|
10739
|
+
in: "path",
|
|
10740
|
+
key: "id"
|
|
10741
|
+
}, {
|
|
10742
|
+
in: "path",
|
|
10743
|
+
key: "importId"
|
|
10744
|
+
}] }]);
|
|
10745
|
+
return requestWithPolicy(options?.client ?? client, "mailboxesStartImport", options, (headers) => (options?.client ?? client).post({
|
|
10746
|
+
security: [{
|
|
10747
|
+
name: "x-api-key",
|
|
10748
|
+
type: "apiKey"
|
|
10749
|
+
}],
|
|
10750
|
+
url: "/v1/mailboxes/{id}/imports/{importId}/start",
|
|
10751
|
+
...options,
|
|
10752
|
+
...params,
|
|
10753
|
+
headers
|
|
10754
|
+
}));
|
|
10755
|
+
}
|
|
10756
|
+
/**
|
|
10757
|
+
* Read mail history import progress
|
|
10758
|
+
*
|
|
10759
|
+
* Returns import status, counts, and bounded failure reasons.
|
|
10760
|
+
*/
|
|
10761
|
+
static getImport(parameters, options) {
|
|
10762
|
+
const params = buildClientParams([parameters], [{ args: [{
|
|
10763
|
+
in: "path",
|
|
10764
|
+
key: "id"
|
|
10765
|
+
}, {
|
|
10766
|
+
in: "path",
|
|
10767
|
+
key: "importId"
|
|
10768
|
+
}] }]);
|
|
10769
|
+
return requestWithPolicy(options?.client ?? client, "mailboxesGetImport", options, (headers) => (options?.client ?? client).get({
|
|
10770
|
+
security: [{
|
|
10771
|
+
name: "x-api-key",
|
|
10772
|
+
type: "apiKey"
|
|
10773
|
+
}],
|
|
10774
|
+
url: "/v1/mailboxes/{id}/imports/{importId}",
|
|
9924
10775
|
...options,
|
|
9925
10776
|
...params,
|
|
9926
|
-
|
|
9927
|
-
headers: {
|
|
9928
|
-
"Content-Type": "application/json",
|
|
9929
|
-
...options?.headers,
|
|
9930
|
-
...params.headers
|
|
9931
|
-
},
|
|
9932
|
-
headers: {
|
|
9933
|
-
"Content-Type": "application/json",
|
|
9934
|
-
...headers
|
|
9935
|
-
}
|
|
10777
|
+
headers
|
|
9936
10778
|
}));
|
|
9937
10779
|
}
|
|
9938
|
-
};
|
|
9939
|
-
var Whoami = class {
|
|
9940
10780
|
/**
|
|
9941
|
-
*
|
|
10781
|
+
* List mail history imports
|
|
9942
10782
|
*
|
|
9943
|
-
*
|
|
10783
|
+
* Lists the most recent history imports for a mailbox.
|
|
9944
10784
|
*/
|
|
9945
|
-
static
|
|
9946
|
-
|
|
10785
|
+
static listImports(parameters, options) {
|
|
10786
|
+
const params = buildClientParams([parameters], [{ args: [{
|
|
10787
|
+
in: "path",
|
|
10788
|
+
key: "id"
|
|
10789
|
+
}] }]);
|
|
10790
|
+
return requestWithPolicy(options?.client ?? client, "mailboxesListImports", options, (headers) => (options?.client ?? client).get({
|
|
9947
10791
|
security: [{
|
|
9948
10792
|
name: "x-api-key",
|
|
9949
10793
|
type: "apiKey"
|
|
9950
10794
|
}],
|
|
9951
|
-
url: "/v1/
|
|
10795
|
+
url: "/v1/mailboxes/{id}/imports",
|
|
9952
10796
|
...options,
|
|
10797
|
+
...params,
|
|
9953
10798
|
headers
|
|
9954
10799
|
}));
|
|
9955
10800
|
}
|
|
9956
|
-
};
|
|
9957
|
-
var Mailboxes = class {
|
|
9958
10801
|
/**
|
|
9959
10802
|
* List mailboxes
|
|
9960
10803
|
*
|
|
@@ -10664,7 +11507,7 @@ var Mailboxes = class {
|
|
|
10664
11507
|
/**
|
|
10665
11508
|
* List threads across your mailboxes
|
|
10666
11509
|
*
|
|
10667
|
-
* Lists only threads in mailboxes the caller can read. With `q`, semantic and keyword search returns the best-matching threads in relevance order, capped across cursor pages. Without `q`, threads use newest activity first. Repeat mailboxId to narrow the scope; kind selects personal or shared mailboxes. conversation selects the threads of one conversation (the conversationId a thread reports), one per readable mailbox it reached. state=active excludes the caller
|
|
11510
|
+
* Lists only threads in mailboxes the caller can read. With `q`, semantic and keyword search returns the best-matching threads in relevance order, capped across cursor pages. Without `q`, threads use newest activity first. Repeat mailboxId to narrow the scope; kind selects personal or shared mailboxes. conversation selects the threads of one conversation (the conversationId a thread reports), one per readable mailbox it reached. state=active excludes what the caller finished; state=done selects the caller's Done, closed shared threads, and personal-mailbox threads in the archived folder, without duplicates. Other filters and cursor pagination match the per-mailbox list.
|
|
10668
11511
|
*/
|
|
10669
11512
|
static listOrganizationThreads(parameters, options) {
|
|
10670
11513
|
const params = buildClientParams([parameters], [{ args: [
|
|
@@ -10684,6 +11527,18 @@ var Mailboxes = class {
|
|
|
10684
11527
|
in: "query",
|
|
10685
11528
|
key: "before"
|
|
10686
11529
|
},
|
|
11530
|
+
{
|
|
11531
|
+
in: "query",
|
|
11532
|
+
key: "recipient"
|
|
11533
|
+
},
|
|
11534
|
+
{
|
|
11535
|
+
in: "query",
|
|
11536
|
+
key: "senders"
|
|
11537
|
+
},
|
|
11538
|
+
{
|
|
11539
|
+
in: "query",
|
|
11540
|
+
key: "excludeTrash"
|
|
11541
|
+
},
|
|
10687
11542
|
{
|
|
10688
11543
|
in: "query",
|
|
10689
11544
|
key: "q"
|
|
@@ -10763,6 +11618,18 @@ var Mailboxes = class {
|
|
|
10763
11618
|
in: "query",
|
|
10764
11619
|
key: "before"
|
|
10765
11620
|
},
|
|
11621
|
+
{
|
|
11622
|
+
in: "query",
|
|
11623
|
+
key: "recipient"
|
|
11624
|
+
},
|
|
11625
|
+
{
|
|
11626
|
+
in: "query",
|
|
11627
|
+
key: "senders"
|
|
11628
|
+
},
|
|
11629
|
+
{
|
|
11630
|
+
in: "query",
|
|
11631
|
+
key: "excludeTrash"
|
|
11632
|
+
},
|
|
10766
11633
|
{
|
|
10767
11634
|
in: "query",
|
|
10768
11635
|
key: "q"
|
|
@@ -10869,6 +11736,14 @@ var Mailboxes = class {
|
|
|
10869
11736
|
{
|
|
10870
11737
|
in: "body",
|
|
10871
11738
|
key: "snoozedUntil"
|
|
11739
|
+
},
|
|
11740
|
+
{
|
|
11741
|
+
in: "body",
|
|
11742
|
+
key: "ifNoReply"
|
|
11743
|
+
},
|
|
11744
|
+
{
|
|
11745
|
+
in: "body",
|
|
11746
|
+
key: "reminderInboxAt"
|
|
10872
11747
|
}
|
|
10873
11748
|
] }]);
|
|
10874
11749
|
return requestWithPolicy(options?.client ?? client, "mailboxesUpdateThread", options, (headers) => (options?.client ?? client).patch({
|
|
@@ -11399,9 +12274,208 @@ var Mailboxes = class {
|
|
|
11399
12274
|
name: "x-api-key",
|
|
11400
12275
|
type: "apiKey"
|
|
11401
12276
|
}],
|
|
11402
|
-
url: "/v1/mailboxes/{id}/messages/{messageId}/reply-all",
|
|
12277
|
+
url: "/v1/mailboxes/{id}/messages/{messageId}/reply-all",
|
|
12278
|
+
...options,
|
|
12279
|
+
...params,
|
|
12280
|
+
headers: {
|
|
12281
|
+
"Content-Type": "application/json",
|
|
12282
|
+
...options?.headers,
|
|
12283
|
+
...params.headers
|
|
12284
|
+
},
|
|
12285
|
+
headers: {
|
|
12286
|
+
"Content-Type": "application/json",
|
|
12287
|
+
...headers
|
|
12288
|
+
}
|
|
12289
|
+
}));
|
|
12290
|
+
}
|
|
12291
|
+
/**
|
|
12292
|
+
* Forward a message
|
|
12293
|
+
*
|
|
12294
|
+
* 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.
|
|
12295
|
+
*/
|
|
12296
|
+
static forward(parameters, options) {
|
|
12297
|
+
const params = buildClientParams([parameters], [{ args: [
|
|
12298
|
+
{
|
|
12299
|
+
in: "path",
|
|
12300
|
+
key: "id"
|
|
12301
|
+
},
|
|
12302
|
+
{
|
|
12303
|
+
in: "path",
|
|
12304
|
+
key: "messageId"
|
|
12305
|
+
},
|
|
12306
|
+
{
|
|
12307
|
+
in: "body",
|
|
12308
|
+
key: "to"
|
|
12309
|
+
},
|
|
12310
|
+
{
|
|
12311
|
+
in: "body",
|
|
12312
|
+
key: "cc"
|
|
12313
|
+
},
|
|
12314
|
+
{
|
|
12315
|
+
in: "body",
|
|
12316
|
+
key: "bcc"
|
|
12317
|
+
},
|
|
12318
|
+
{
|
|
12319
|
+
in: "body",
|
|
12320
|
+
key: "text"
|
|
12321
|
+
},
|
|
12322
|
+
{
|
|
12323
|
+
in: "body",
|
|
12324
|
+
key: "html"
|
|
12325
|
+
},
|
|
12326
|
+
{
|
|
12327
|
+
in: "body",
|
|
12328
|
+
key: "attachments"
|
|
12329
|
+
}
|
|
12330
|
+
] }]);
|
|
12331
|
+
return requestWithPolicy(options?.client ?? client, "mailboxesForward", options, (headers) => (options?.client ?? client).post({
|
|
12332
|
+
security: [{
|
|
12333
|
+
name: "x-api-key",
|
|
12334
|
+
type: "apiKey"
|
|
12335
|
+
}],
|
|
12336
|
+
url: "/v1/mailboxes/{id}/messages/{messageId}/forward",
|
|
12337
|
+
...options,
|
|
12338
|
+
...params,
|
|
12339
|
+
body: params.body ?? {},
|
|
12340
|
+
headers: {
|
|
12341
|
+
"Content-Type": "application/json",
|
|
12342
|
+
...options?.headers,
|
|
12343
|
+
...params.headers
|
|
12344
|
+
},
|
|
12345
|
+
headers: {
|
|
12346
|
+
"Content-Type": "application/json",
|
|
12347
|
+
...headers
|
|
12348
|
+
}
|
|
12349
|
+
}));
|
|
12350
|
+
}
|
|
12351
|
+
/**
|
|
12352
|
+
* List quarantined messages
|
|
12353
|
+
*
|
|
12354
|
+
* Returns the messages this mailbox holds instead of delivering, most recently held first: suspected spam, phishing, fraud, or prompt injection (`quarantined`), and malware (`isolated`). Each is metadata only; a held message appears in no thread, search, or `mailbox.message.received` event until a person releases it. `after` and `before` filter by when the message was held. Needs `quarantine.read`.
|
|
12355
|
+
*/
|
|
12356
|
+
static listQuarantine(parameters, options) {
|
|
12357
|
+
const params = buildClientParams([parameters], [{ args: [
|
|
12358
|
+
{
|
|
12359
|
+
in: "path",
|
|
12360
|
+
key: "id"
|
|
12361
|
+
},
|
|
12362
|
+
{
|
|
12363
|
+
in: "query",
|
|
12364
|
+
key: "limit"
|
|
12365
|
+
},
|
|
12366
|
+
{
|
|
12367
|
+
in: "query",
|
|
12368
|
+
key: "cursor"
|
|
12369
|
+
},
|
|
12370
|
+
{
|
|
12371
|
+
in: "query",
|
|
12372
|
+
key: "after"
|
|
12373
|
+
},
|
|
12374
|
+
{
|
|
12375
|
+
in: "query",
|
|
12376
|
+
key: "before"
|
|
12377
|
+
}
|
|
12378
|
+
] }]);
|
|
12379
|
+
return requestWithPolicy(options?.client ?? client, "mailboxesListQuarantine", options, (headers) => (options?.client ?? client).get({
|
|
12380
|
+
security: [{
|
|
12381
|
+
name: "x-api-key",
|
|
12382
|
+
type: "apiKey"
|
|
12383
|
+
}],
|
|
12384
|
+
url: "/v1/mailboxes/{id}/quarantine",
|
|
12385
|
+
...options,
|
|
12386
|
+
...params,
|
|
12387
|
+
headers
|
|
12388
|
+
}));
|
|
12389
|
+
}
|
|
12390
|
+
/**
|
|
12391
|
+
* Release a quarantined message
|
|
12392
|
+
*
|
|
12393
|
+
* 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.
|
|
12394
|
+
*/
|
|
12395
|
+
static releaseMessage(parameters, options) {
|
|
12396
|
+
const params = buildClientParams([parameters], [{ args: [{
|
|
12397
|
+
in: "path",
|
|
12398
|
+
key: "id"
|
|
12399
|
+
}, {
|
|
12400
|
+
in: "path",
|
|
12401
|
+
key: "messageId"
|
|
12402
|
+
}] }]);
|
|
12403
|
+
return requestWithPolicy(options?.client ?? client, "mailboxesReleaseMessage", options, (headers) => (options?.client ?? client).post({
|
|
12404
|
+
security: [{
|
|
12405
|
+
name: "x-api-key",
|
|
12406
|
+
type: "apiKey"
|
|
12407
|
+
}],
|
|
12408
|
+
url: "/v1/mailboxes/{id}/messages/{messageId}/release",
|
|
12409
|
+
...options,
|
|
12410
|
+
...params,
|
|
12411
|
+
headers
|
|
12412
|
+
}));
|
|
12413
|
+
}
|
|
12414
|
+
/**
|
|
12415
|
+
* Discard a quarantined message
|
|
12416
|
+
*
|
|
12417
|
+
* Removes a held message from the mailbox's quarantine for good: it leaves the quarantine list, never reaches a thread, and can no longer be released. Quarantined and isolated (malware) messages can both be discarded. Publishes one `mailbox.message.discarded` event; discarding it again returns the same result and publishes nothing. A released message is in its thread and cannot be discarded: 409. Only a person can discard; API keys never hold `quarantine.release`.
|
|
12418
|
+
*/
|
|
12419
|
+
static discardMessage(parameters, options) {
|
|
12420
|
+
const params = buildClientParams([parameters], [{ args: [{
|
|
12421
|
+
in: "path",
|
|
12422
|
+
key: "id"
|
|
12423
|
+
}, {
|
|
12424
|
+
in: "path",
|
|
12425
|
+
key: "messageId"
|
|
12426
|
+
}] }]);
|
|
12427
|
+
return requestWithPolicy(options?.client ?? client, "mailboxesDiscardMessage", options, (headers) => (options?.client ?? client).post({
|
|
12428
|
+
security: [{
|
|
12429
|
+
name: "x-api-key",
|
|
12430
|
+
type: "apiKey"
|
|
12431
|
+
}],
|
|
12432
|
+
url: "/v1/mailboxes/{id}/messages/{messageId}/discard",
|
|
12433
|
+
...options,
|
|
12434
|
+
...params,
|
|
12435
|
+
headers
|
|
12436
|
+
}));
|
|
12437
|
+
}
|
|
12438
|
+
/**
|
|
12439
|
+
* Schedule a mailbox draft
|
|
12440
|
+
*
|
|
12441
|
+
* Changes the caller's private scheduled sends. The revision and idempotency key protect retries and concurrent changes. Sending uses the mailbox's current permissions and policies.
|
|
12442
|
+
*/
|
|
12443
|
+
static scheduleDraft(parameters, options) {
|
|
12444
|
+
const params = buildClientParams([parameters], [{ args: [
|
|
12445
|
+
{
|
|
12446
|
+
in: "path",
|
|
12447
|
+
key: "id"
|
|
12448
|
+
},
|
|
12449
|
+
{
|
|
12450
|
+
in: "path",
|
|
12451
|
+
key: "draftId"
|
|
12452
|
+
},
|
|
12453
|
+
{
|
|
12454
|
+
in: "body",
|
|
12455
|
+
key: "idempotencyKey"
|
|
12456
|
+
},
|
|
12457
|
+
{
|
|
12458
|
+
in: "body",
|
|
12459
|
+
key: "base"
|
|
12460
|
+
},
|
|
12461
|
+
{
|
|
12462
|
+
in: "body",
|
|
12463
|
+
key: "draftRevision"
|
|
12464
|
+
},
|
|
12465
|
+
{
|
|
12466
|
+
in: "body",
|
|
12467
|
+
key: "sendAt"
|
|
12468
|
+
}
|
|
12469
|
+
] }]);
|
|
12470
|
+
return requestWithPolicy(options?.client ?? client, "mailboxesScheduleDraft", options, (headers) => (options?.client ?? client).post({
|
|
12471
|
+
security: [{
|
|
12472
|
+
name: "x-api-key",
|
|
12473
|
+
type: "apiKey"
|
|
12474
|
+
}],
|
|
12475
|
+
url: "/v1/mailboxes/{id}/drafts/{draftId}/schedule",
|
|
11403
12476
|
...options,
|
|
11404
12477
|
...params,
|
|
12478
|
+
body: params.body ?? {},
|
|
11405
12479
|
headers: {
|
|
11406
12480
|
"Content-Type": "application/json",
|
|
11407
12481
|
...options?.headers,
|
|
@@ -11414,11 +12488,11 @@ var Mailboxes = class {
|
|
|
11414
12488
|
}));
|
|
11415
12489
|
}
|
|
11416
12490
|
/**
|
|
11417
|
-
*
|
|
12491
|
+
* Return a scheduled send to Drafts
|
|
11418
12492
|
*
|
|
11419
|
-
*
|
|
12493
|
+
* Changes the caller's private scheduled sends. The revision and idempotency key protect retries and concurrent changes. Sending uses the mailbox's current permissions and policies.
|
|
11420
12494
|
*/
|
|
11421
|
-
static
|
|
12495
|
+
static unscheduleSend(parameters, options) {
|
|
11422
12496
|
const params = buildClientParams([parameters], [{ args: [
|
|
11423
12497
|
{
|
|
11424
12498
|
in: "path",
|
|
@@ -11426,39 +12500,27 @@ var Mailboxes = class {
|
|
|
11426
12500
|
},
|
|
11427
12501
|
{
|
|
11428
12502
|
in: "path",
|
|
11429
|
-
key: "
|
|
11430
|
-
},
|
|
11431
|
-
{
|
|
11432
|
-
in: "body",
|
|
11433
|
-
key: "to"
|
|
11434
|
-
},
|
|
11435
|
-
{
|
|
11436
|
-
in: "body",
|
|
11437
|
-
key: "cc"
|
|
11438
|
-
},
|
|
11439
|
-
{
|
|
11440
|
-
in: "body",
|
|
11441
|
-
key: "bcc"
|
|
12503
|
+
key: "outboxId"
|
|
11442
12504
|
},
|
|
11443
12505
|
{
|
|
11444
12506
|
in: "body",
|
|
11445
|
-
key: "
|
|
12507
|
+
key: "idempotencyKey"
|
|
11446
12508
|
},
|
|
11447
12509
|
{
|
|
11448
12510
|
in: "body",
|
|
11449
|
-
key: "
|
|
12511
|
+
key: "base"
|
|
11450
12512
|
},
|
|
11451
12513
|
{
|
|
11452
12514
|
in: "body",
|
|
11453
|
-
key: "
|
|
12515
|
+
key: "expectedRevision"
|
|
11454
12516
|
}
|
|
11455
12517
|
] }]);
|
|
11456
|
-
return requestWithPolicy(options?.client ?? client, "
|
|
12518
|
+
return requestWithPolicy(options?.client ?? client, "mailboxesUnscheduleSend", options, (headers) => (options?.client ?? client).delete({
|
|
11457
12519
|
security: [{
|
|
11458
12520
|
name: "x-api-key",
|
|
11459
12521
|
type: "apiKey"
|
|
11460
12522
|
}],
|
|
11461
|
-
url: "/v1/mailboxes/{id}/
|
|
12523
|
+
url: "/v1/mailboxes/{id}/scheduled/{outboxId}",
|
|
11462
12524
|
...options,
|
|
11463
12525
|
...params,
|
|
11464
12526
|
body: params.body ?? {},
|
|
@@ -11474,87 +12536,131 @@ var Mailboxes = class {
|
|
|
11474
12536
|
}));
|
|
11475
12537
|
}
|
|
11476
12538
|
/**
|
|
11477
|
-
*
|
|
12539
|
+
* Reschedule a mailbox send
|
|
11478
12540
|
*
|
|
11479
|
-
*
|
|
12541
|
+
* Changes the caller's private scheduled sends. The revision and idempotency key protect retries and concurrent changes. Sending uses the mailbox's current permissions and policies.
|
|
11480
12542
|
*/
|
|
11481
|
-
static
|
|
12543
|
+
static rescheduleSend(parameters, options) {
|
|
11482
12544
|
const params = buildClientParams([parameters], [{ args: [
|
|
11483
12545
|
{
|
|
11484
12546
|
in: "path",
|
|
11485
12547
|
key: "id"
|
|
11486
12548
|
},
|
|
11487
12549
|
{
|
|
11488
|
-
in: "
|
|
11489
|
-
key: "
|
|
12550
|
+
in: "path",
|
|
12551
|
+
key: "outboxId"
|
|
11490
12552
|
},
|
|
11491
12553
|
{
|
|
11492
|
-
in: "
|
|
11493
|
-
key: "
|
|
12554
|
+
in: "body",
|
|
12555
|
+
key: "idempotencyKey"
|
|
11494
12556
|
},
|
|
11495
12557
|
{
|
|
11496
|
-
in: "
|
|
11497
|
-
key: "
|
|
12558
|
+
in: "body",
|
|
12559
|
+
key: "base"
|
|
11498
12560
|
},
|
|
11499
12561
|
{
|
|
11500
|
-
in: "
|
|
11501
|
-
key: "
|
|
12562
|
+
in: "body",
|
|
12563
|
+
key: "expectedRevision"
|
|
12564
|
+
},
|
|
12565
|
+
{
|
|
12566
|
+
in: "body",
|
|
12567
|
+
key: "sendAt"
|
|
11502
12568
|
}
|
|
11503
12569
|
] }]);
|
|
11504
|
-
return requestWithPolicy(options?.client ?? client, "
|
|
12570
|
+
return requestWithPolicy(options?.client ?? client, "mailboxesRescheduleSend", options, (headers) => (options?.client ?? client).patch({
|
|
11505
12571
|
security: [{
|
|
11506
12572
|
name: "x-api-key",
|
|
11507
12573
|
type: "apiKey"
|
|
11508
12574
|
}],
|
|
11509
|
-
url: "/v1/mailboxes/{id}/
|
|
12575
|
+
url: "/v1/mailboxes/{id}/scheduled/{outboxId}",
|
|
11510
12576
|
...options,
|
|
11511
12577
|
...params,
|
|
11512
|
-
|
|
12578
|
+
body: params.body ?? {},
|
|
12579
|
+
headers: {
|
|
12580
|
+
"Content-Type": "application/json",
|
|
12581
|
+
...options?.headers,
|
|
12582
|
+
...params.headers
|
|
12583
|
+
},
|
|
12584
|
+
headers: {
|
|
12585
|
+
"Content-Type": "application/json",
|
|
12586
|
+
...headers
|
|
12587
|
+
}
|
|
11513
12588
|
}));
|
|
11514
12589
|
}
|
|
11515
12590
|
/**
|
|
11516
|
-
*
|
|
12591
|
+
* Send a scheduled message now
|
|
11517
12592
|
*
|
|
11518
|
-
*
|
|
12593
|
+
* Changes the caller's private scheduled sends. The revision and idempotency key protect retries and concurrent changes. Sending uses the mailbox's current permissions and policies.
|
|
11519
12594
|
*/
|
|
11520
|
-
static
|
|
11521
|
-
const params = buildClientParams([parameters], [{ args: [
|
|
11522
|
-
|
|
11523
|
-
|
|
11524
|
-
|
|
11525
|
-
|
|
11526
|
-
|
|
11527
|
-
|
|
11528
|
-
|
|
12595
|
+
static sendScheduledNow(parameters, options) {
|
|
12596
|
+
const params = buildClientParams([parameters], [{ args: [
|
|
12597
|
+
{
|
|
12598
|
+
in: "path",
|
|
12599
|
+
key: "id"
|
|
12600
|
+
},
|
|
12601
|
+
{
|
|
12602
|
+
in: "path",
|
|
12603
|
+
key: "outboxId"
|
|
12604
|
+
},
|
|
12605
|
+
{
|
|
12606
|
+
in: "body",
|
|
12607
|
+
key: "idempotencyKey"
|
|
12608
|
+
},
|
|
12609
|
+
{
|
|
12610
|
+
in: "body",
|
|
12611
|
+
key: "base"
|
|
12612
|
+
},
|
|
12613
|
+
{
|
|
12614
|
+
in: "body",
|
|
12615
|
+
key: "expectedRevision"
|
|
12616
|
+
}
|
|
12617
|
+
] }]);
|
|
12618
|
+
return requestWithPolicy(options?.client ?? client, "mailboxesSendScheduledNow", options, (headers) => (options?.client ?? client).post({
|
|
11529
12619
|
security: [{
|
|
11530
12620
|
name: "x-api-key",
|
|
11531
12621
|
type: "apiKey"
|
|
11532
12622
|
}],
|
|
11533
|
-
url: "/v1/mailboxes/{id}/
|
|
12623
|
+
url: "/v1/mailboxes/{id}/scheduled/{outboxId}/send",
|
|
11534
12624
|
...options,
|
|
11535
12625
|
...params,
|
|
11536
|
-
|
|
12626
|
+
body: params.body ?? {},
|
|
12627
|
+
headers: {
|
|
12628
|
+
"Content-Type": "application/json",
|
|
12629
|
+
...options?.headers,
|
|
12630
|
+
...params.headers
|
|
12631
|
+
},
|
|
12632
|
+
headers: {
|
|
12633
|
+
"Content-Type": "application/json",
|
|
12634
|
+
...headers
|
|
12635
|
+
}
|
|
11537
12636
|
}));
|
|
11538
12637
|
}
|
|
11539
12638
|
/**
|
|
11540
|
-
*
|
|
12639
|
+
* List scheduled mailbox sends
|
|
11541
12640
|
*
|
|
11542
|
-
*
|
|
12641
|
+
* Lists the caller's private scheduled sends in this mailbox. Items leave this list when sent, held, failed, or returned to Drafts.
|
|
11543
12642
|
*/
|
|
11544
|
-
static
|
|
11545
|
-
const params = buildClientParams([parameters], [{ args: [
|
|
11546
|
-
|
|
11547
|
-
|
|
11548
|
-
|
|
11549
|
-
|
|
11550
|
-
|
|
11551
|
-
|
|
11552
|
-
|
|
12643
|
+
static listScheduledSends(parameters, options) {
|
|
12644
|
+
const params = buildClientParams([parameters], [{ args: [
|
|
12645
|
+
{
|
|
12646
|
+
in: "path",
|
|
12647
|
+
key: "id"
|
|
12648
|
+
},
|
|
12649
|
+
{
|
|
12650
|
+
in: "query",
|
|
12651
|
+
key: "limit"
|
|
12652
|
+
},
|
|
12653
|
+
{
|
|
12654
|
+
in: "query",
|
|
12655
|
+
key: "cursor"
|
|
12656
|
+
}
|
|
12657
|
+
] }]);
|
|
12658
|
+
return requestWithPolicy(options?.client ?? client, "mailboxesListScheduledSends", options, (headers) => (options?.client ?? client).get({
|
|
11553
12659
|
security: [{
|
|
11554
12660
|
name: "x-api-key",
|
|
11555
12661
|
type: "apiKey"
|
|
11556
12662
|
}],
|
|
11557
|
-
url: "/v1/mailboxes/{id}/
|
|
12663
|
+
url: "/v1/mailboxes/{id}/scheduled",
|
|
11558
12664
|
...options,
|
|
11559
12665
|
...params,
|
|
11560
12666
|
headers
|
|
@@ -12015,6 +13121,175 @@ var Mailboxes = class {
|
|
|
12015
13121
|
headers
|
|
12016
13122
|
}));
|
|
12017
13123
|
}
|
|
13124
|
+
/**
|
|
13125
|
+
* Count unread Mail split threads
|
|
13126
|
+
*
|
|
13127
|
+
* Returns each saved split’s unread actionable Inbox threads: not Done, not snoozed, and not Closed in shared mailboxes. Query splits use bounded search results; capped is true when search reaches its candidate limit, so unread is a lower bound. Requires a person signed in through Mail or the CLI.
|
|
13128
|
+
*/
|
|
13129
|
+
static countSplits(options) {
|
|
13130
|
+
return requestWithPolicy(options?.client ?? client, "mailboxesCountSplits", options, (headers) => (options?.client ?? client).get({
|
|
13131
|
+
security: [{
|
|
13132
|
+
name: "x-api-key",
|
|
13133
|
+
type: "apiKey"
|
|
13134
|
+
}],
|
|
13135
|
+
url: "/v1/mailboxes/splits/counts",
|
|
13136
|
+
...options,
|
|
13137
|
+
headers
|
|
13138
|
+
}));
|
|
13139
|
+
}
|
|
13140
|
+
/**
|
|
13141
|
+
* List Mail splits
|
|
13142
|
+
*
|
|
13143
|
+
* Returns the signed-in reader’s saved filters in sidebar order. Splits are private to this user and organization. Requires a person signed in through Mail or the CLI.
|
|
13144
|
+
*/
|
|
13145
|
+
static listSplits(options) {
|
|
13146
|
+
return requestWithPolicy(options?.client ?? client, "mailboxesListSplits", options, (headers) => (options?.client ?? client).get({
|
|
13147
|
+
security: [{
|
|
13148
|
+
name: "x-api-key",
|
|
13149
|
+
type: "apiKey"
|
|
13150
|
+
}],
|
|
13151
|
+
url: "/v1/mailboxes/splits",
|
|
13152
|
+
...options,
|
|
13153
|
+
headers
|
|
13154
|
+
}));
|
|
13155
|
+
}
|
|
13156
|
+
/**
|
|
13157
|
+
* Create a Mail split
|
|
13158
|
+
*
|
|
13159
|
+
* Saves a named query, recipient address, or VIP sender list for the signed-in reader. Requires a person signed in through Mail or the CLI.
|
|
13160
|
+
*/
|
|
13161
|
+
static createSplit(parameters, options) {
|
|
13162
|
+
const params = buildClientParams([parameters], [{ args: [
|
|
13163
|
+
{
|
|
13164
|
+
in: "body",
|
|
13165
|
+
key: "name"
|
|
13166
|
+
},
|
|
13167
|
+
{
|
|
13168
|
+
in: "body",
|
|
13169
|
+
key: "filter"
|
|
13170
|
+
},
|
|
13171
|
+
{
|
|
13172
|
+
in: "body",
|
|
13173
|
+
key: "mailboxId"
|
|
13174
|
+
},
|
|
13175
|
+
{
|
|
13176
|
+
in: "body",
|
|
13177
|
+
key: "position"
|
|
13178
|
+
}
|
|
13179
|
+
] }]);
|
|
13180
|
+
return requestWithPolicy(options?.client ?? client, "mailboxesCreateSplit", options, (headers) => (options?.client ?? client).post({
|
|
13181
|
+
security: [{
|
|
13182
|
+
name: "x-api-key",
|
|
13183
|
+
type: "apiKey"
|
|
13184
|
+
}],
|
|
13185
|
+
url: "/v1/mailboxes/splits",
|
|
13186
|
+
...options,
|
|
13187
|
+
...params,
|
|
13188
|
+
body: params.body ?? {},
|
|
13189
|
+
headers: {
|
|
13190
|
+
"Content-Type": "application/json",
|
|
13191
|
+
...options?.headers,
|
|
13192
|
+
...params.headers
|
|
13193
|
+
},
|
|
13194
|
+
headers: {
|
|
13195
|
+
"Content-Type": "application/json",
|
|
13196
|
+
...headers
|
|
13197
|
+
}
|
|
13198
|
+
}));
|
|
13199
|
+
}
|
|
13200
|
+
/**
|
|
13201
|
+
* Delete a Mail split
|
|
13202
|
+
*
|
|
13203
|
+
* Deletes the signed-in reader’s saved split and returns it. Requires a person signed in through Mail or the CLI.
|
|
13204
|
+
*/
|
|
13205
|
+
static deleteSplit(parameters, options) {
|
|
13206
|
+
const params = buildClientParams([parameters], [{ args: [{
|
|
13207
|
+
in: "path",
|
|
13208
|
+
key: "splitId"
|
|
13209
|
+
}] }]);
|
|
13210
|
+
return requestWithPolicy(options?.client ?? client, "mailboxesDeleteSplit", options, (headers) => (options?.client ?? client).delete({
|
|
13211
|
+
security: [{
|
|
13212
|
+
name: "x-api-key",
|
|
13213
|
+
type: "apiKey"
|
|
13214
|
+
}],
|
|
13215
|
+
url: "/v1/mailboxes/splits/{splitId}",
|
|
13216
|
+
...options,
|
|
13217
|
+
...params,
|
|
13218
|
+
headers
|
|
13219
|
+
}));
|
|
13220
|
+
}
|
|
13221
|
+
/**
|
|
13222
|
+
* Update a Mail split
|
|
13223
|
+
*
|
|
13224
|
+
* Replaces the name, filter, mailbox scope and sidebar position of a split owned by the signed-in reader. Requires a person signed in through Mail or the CLI.
|
|
13225
|
+
*/
|
|
13226
|
+
static updateSplit(parameters, options) {
|
|
13227
|
+
const params = buildClientParams([parameters], [{ args: [
|
|
13228
|
+
{
|
|
13229
|
+
in: "path",
|
|
13230
|
+
key: "splitId"
|
|
13231
|
+
},
|
|
13232
|
+
{
|
|
13233
|
+
in: "body",
|
|
13234
|
+
key: "name"
|
|
13235
|
+
},
|
|
13236
|
+
{
|
|
13237
|
+
in: "body",
|
|
13238
|
+
key: "filter"
|
|
13239
|
+
},
|
|
13240
|
+
{
|
|
13241
|
+
in: "body",
|
|
13242
|
+
key: "mailboxId"
|
|
13243
|
+
},
|
|
13244
|
+
{
|
|
13245
|
+
in: "body",
|
|
13246
|
+
key: "position"
|
|
13247
|
+
}
|
|
13248
|
+
] }]);
|
|
13249
|
+
return requestWithPolicy(options?.client ?? client, "mailboxesUpdateSplit", options, (headers) => (options?.client ?? client).put({
|
|
13250
|
+
security: [{
|
|
13251
|
+
name: "x-api-key",
|
|
13252
|
+
type: "apiKey"
|
|
13253
|
+
}],
|
|
13254
|
+
url: "/v1/mailboxes/splits/{splitId}",
|
|
13255
|
+
...options,
|
|
13256
|
+
...params,
|
|
13257
|
+
body: params.body ?? {},
|
|
13258
|
+
headers: {
|
|
13259
|
+
"Content-Type": "application/json",
|
|
13260
|
+
...options?.headers,
|
|
13261
|
+
...params.headers
|
|
13262
|
+
},
|
|
13263
|
+
headers: {
|
|
13264
|
+
"Content-Type": "application/json",
|
|
13265
|
+
...headers
|
|
13266
|
+
}
|
|
13267
|
+
}));
|
|
13268
|
+
}
|
|
13269
|
+
/**
|
|
13270
|
+
* List mailbox addresses
|
|
13271
|
+
*
|
|
13272
|
+
* Lists up to 1000 distinct registered and observed email addresses in sorted order, retaining registered endpoints first when the bound applies. With recipient query parameters, resolves only those candidates as this mailbox’s own addresses, including plus fallback but excluding literal tagged endpoints owned by another mailbox. Use this candidate read for reply addressing.
|
|
13273
|
+
*/
|
|
13274
|
+
static listAddresses(parameters, options) {
|
|
13275
|
+
const params = buildClientParams([parameters], [{ args: [{
|
|
13276
|
+
in: "path",
|
|
13277
|
+
key: "id"
|
|
13278
|
+
}, {
|
|
13279
|
+
in: "query",
|
|
13280
|
+
key: "recipient"
|
|
13281
|
+
}] }]);
|
|
13282
|
+
return requestWithPolicy(options?.client ?? client, "mailboxesListAddresses", options, (headers) => (options?.client ?? client).get({
|
|
13283
|
+
security: [{
|
|
13284
|
+
name: "x-api-key",
|
|
13285
|
+
type: "apiKey"
|
|
13286
|
+
}],
|
|
13287
|
+
url: "/v1/mailboxes/{id}/addresses",
|
|
13288
|
+
...options,
|
|
13289
|
+
...params,
|
|
13290
|
+
headers
|
|
13291
|
+
}));
|
|
13292
|
+
}
|
|
12018
13293
|
};
|
|
12019
13294
|
var Policies = class {
|
|
12020
13295
|
/**
|
|
@@ -13716,6 +14991,10 @@ var TemplateRegistrations = class {
|
|
|
13716
14991
|
}));
|
|
13717
14992
|
}
|
|
13718
14993
|
};
|
|
14994
|
+
Object.assign(ApprovalRequests.create, { operation: "approvalRequestsCreate" });
|
|
14995
|
+
Object.assign(ApprovalRequests.get, { operation: "approvalRequestsGet" });
|
|
14996
|
+
Object.assign(ApprovalRequests.approve, { operation: "approvalRequestsApprove" });
|
|
14997
|
+
Object.assign(ApprovalRequests.reject, { operation: "approvalRequestsReject" });
|
|
13719
14998
|
Object.assign(Messages.list, { operation: "messagesList" });
|
|
13720
14999
|
Object.assign(Messages.send, { operation: "messagesSend" });
|
|
13721
15000
|
Object.assign(Messages.remove, { operation: "messagesRemove" });
|
|
@@ -13884,6 +15163,22 @@ Object.assign(Agents.publish, { operation: "agentsPublish" });
|
|
|
13884
15163
|
Object.assign(Agents.continueOnStandard, { operation: "agentsContinueOnStandard" });
|
|
13885
15164
|
Object.assign(Agents.listVersions, { operation: "agentsListVersions" });
|
|
13886
15165
|
Object.assign(Agents.getVersion, { operation: "agentsGetVersion" });
|
|
15166
|
+
Object.assign(Accounts.listContactConnections, { operation: "accountsListContactConnections" });
|
|
15167
|
+
Object.assign(Accounts.list, { operation: "accountsList" });
|
|
15168
|
+
Object.assign(Accounts.remove, { operation: "accountsRemove" });
|
|
15169
|
+
Object.assign(Accounts.get, { operation: "accountsGet" });
|
|
15170
|
+
Object.assign(Accounts.check, { operation: "accountsCheck" });
|
|
15171
|
+
Object.assign(Accounts.connect, { operation: "accountsConnect" });
|
|
15172
|
+
Object.assign(IntegrationCatalog.prepare, { operation: "integrationCatalogPrepare" });
|
|
15173
|
+
Object.assign(IntegrationCatalog.search, { operation: "integrationCatalogSearch" });
|
|
15174
|
+
Object.assign(IntegrationCatalog.list, { operation: "integrationCatalogList" });
|
|
15175
|
+
Object.assign(Integrations.list, { operation: "integrationsList" });
|
|
15176
|
+
Object.assign(Integrations.install, { operation: "integrationsInstall" });
|
|
15177
|
+
Object.assign(Integrations.listTools, { operation: "integrationsListTools" });
|
|
15178
|
+
Object.assign(Integrations.readTool, { operation: "integrationsReadTool" });
|
|
15179
|
+
Object.assign(Integrations.remove, { operation: "integrationsRemove" });
|
|
15180
|
+
Object.assign(Integrations.get, { operation: "integrationsGet" });
|
|
15181
|
+
Object.assign(Integrations.update, { operation: "integrationsUpdate" });
|
|
13887
15182
|
Object.assign(Subscriptions.subscribe, { operation: "subscriptionsSubscribe" });
|
|
13888
15183
|
Object.assign(ContactGroups.list, { operation: "contactGroupsList" });
|
|
13889
15184
|
Object.assign(ContactGroups.create, { operation: "contactGroupsCreate" });
|
|
@@ -13976,6 +15271,11 @@ Object.assign(Templates.getGitRepository, { operation: "templatesGetGitRepositor
|
|
|
13976
15271
|
Object.assign(Templates.issueGitCredential, { operation: "templatesIssueGitCredential" });
|
|
13977
15272
|
Object.assign(Templates.attachWorkspaceResource, { operation: "templatesAttachWorkspaceResource" });
|
|
13978
15273
|
Object.assign(Templates.removeWorkspaceResource, { operation: "templatesRemoveWorkspaceResource" });
|
|
15274
|
+
Object.assign(TemplateShareLinks.delete, { operation: "templateShareLinksDelete" });
|
|
15275
|
+
Object.assign(TemplateShareLinks.get, { operation: "templateShareLinksGet" });
|
|
15276
|
+
Object.assign(TemplateShareLinks.rename, { operation: "templateShareLinksRename" });
|
|
15277
|
+
Object.assign(TemplateShareLinks.create, { operation: "templateShareLinksCreate" });
|
|
15278
|
+
Object.assign(TemplateShareLinks.update, { operation: "templateShareLinksUpdate" });
|
|
13979
15279
|
Object.assign(Brands.list, { operation: "brandsList" });
|
|
13980
15280
|
Object.assign(Brands.create, { operation: "brandsCreate" });
|
|
13981
15281
|
Object.assign(Brands.remove, { operation: "brandsRemove" });
|
|
@@ -14015,6 +15315,10 @@ Object.assign(ApiKeys.getStats, { operation: "apiKeysGetStats" });
|
|
|
14015
15315
|
Object.assign(ApiKeys.getActivity, { operation: "apiKeysGetActivity" });
|
|
14016
15316
|
Object.assign(Feedback.send, { operation: "feedbackSend" });
|
|
14017
15317
|
Object.assign(Whoami.get, { operation: "whoamiGet" });
|
|
15318
|
+
Object.assign(Mailboxes.createImportUpload, { operation: "mailboxesCreateImportUpload" });
|
|
15319
|
+
Object.assign(Mailboxes.startImport, { operation: "mailboxesStartImport" });
|
|
15320
|
+
Object.assign(Mailboxes.getImport, { operation: "mailboxesGetImport" });
|
|
15321
|
+
Object.assign(Mailboxes.listImports, { operation: "mailboxesListImports" });
|
|
14018
15322
|
Object.assign(Mailboxes.list, { operation: "mailboxesList" });
|
|
14019
15323
|
Object.assign(Mailboxes.create, { operation: "mailboxesCreate" });
|
|
14020
15324
|
Object.assign(Mailboxes.remove, { operation: "mailboxesRemove" });
|
|
@@ -14060,6 +15364,11 @@ Object.assign(Mailboxes.forward, { operation: "mailboxesForward" });
|
|
|
14060
15364
|
Object.assign(Mailboxes.listQuarantine, { operation: "mailboxesListQuarantine" });
|
|
14061
15365
|
Object.assign(Mailboxes.releaseMessage, { operation: "mailboxesReleaseMessage" });
|
|
14062
15366
|
Object.assign(Mailboxes.discardMessage, { operation: "mailboxesDiscardMessage" });
|
|
15367
|
+
Object.assign(Mailboxes.scheduleDraft, { operation: "mailboxesScheduleDraft" });
|
|
15368
|
+
Object.assign(Mailboxes.unscheduleSend, { operation: "mailboxesUnscheduleSend" });
|
|
15369
|
+
Object.assign(Mailboxes.rescheduleSend, { operation: "mailboxesRescheduleSend" });
|
|
15370
|
+
Object.assign(Mailboxes.sendScheduledNow, { operation: "mailboxesSendScheduledNow" });
|
|
15371
|
+
Object.assign(Mailboxes.listScheduledSends, { operation: "mailboxesListScheduledSends" });
|
|
14063
15372
|
Object.assign(Mailboxes.listDrafts, { operation: "mailboxesListDrafts" });
|
|
14064
15373
|
Object.assign(Mailboxes.createDraft, { operation: "mailboxesCreateDraft" });
|
|
14065
15374
|
Object.assign(Mailboxes.deleteDraft, { operation: "mailboxesDeleteDraft" });
|
|
@@ -14073,6 +15382,12 @@ Object.assign(Mailboxes.retryAction, { operation: "mailboxesRetryAction" });
|
|
|
14073
15382
|
Object.assign(Mailboxes.approveAction, { operation: "mailboxesApproveAction" });
|
|
14074
15383
|
Object.assign(Mailboxes.denyAction, { operation: "mailboxesDenyAction" });
|
|
14075
15384
|
Object.assign(Mailboxes.listEvents, { operation: "mailboxesListEvents" });
|
|
15385
|
+
Object.assign(Mailboxes.countSplits, { operation: "mailboxesCountSplits" });
|
|
15386
|
+
Object.assign(Mailboxes.listSplits, { operation: "mailboxesListSplits" });
|
|
15387
|
+
Object.assign(Mailboxes.createSplit, { operation: "mailboxesCreateSplit" });
|
|
15388
|
+
Object.assign(Mailboxes.deleteSplit, { operation: "mailboxesDeleteSplit" });
|
|
15389
|
+
Object.assign(Mailboxes.updateSplit, { operation: "mailboxesUpdateSplit" });
|
|
15390
|
+
Object.assign(Mailboxes.listAddresses, { operation: "mailboxesListAddresses" });
|
|
14076
15391
|
Object.assign(Policies.deletePolicy, { operation: "policiesDeletePolicy" });
|
|
14077
15392
|
Object.assign(Policies.getPolicy, { operation: "policiesGetPolicy" });
|
|
14078
15393
|
Object.assign(Policies.setPolicy, { operation: "policiesSetPolicy" });
|
|
@@ -14130,6 +15445,6 @@ Object.assign(WhatsappSetupLinks.revoke, { operation: "whatsappSetupLinksRevoke"
|
|
|
14130
15445
|
Object.assign(TemplateRegistrations.list, { operation: "templateRegistrationsList" });
|
|
14131
15446
|
Object.assign(TemplateRegistrations.submit, { operation: "templateRegistrationsSubmit" });
|
|
14132
15447
|
Object.assign(TemplateRegistrations.get, { operation: "templateRegistrationsGet" });
|
|
14133
|
-
export { Agents, Analytics, ApiKeys, Attachments, Brands, Campaigns, ContactEvents, ContactGroups, Contacts, Conversations, CustomFields, Domains, Email, Events, ExtensionInstallations, Extensions, Feedback, Issues, Journeys, Mailboxes, Media, Messages, Namespaces, Newsletters, Operations, Organizations, Policies, ScheduledMessages, Subscriptions, TemplateRegistrations, Templates, TopicForms, Topics, Webhooks, Whatsapp, WhatsappFlows, WhatsappSetupLinks, Whoami };
|
|
15448
|
+
export { Accounts, Agents, Analytics, ApiKeys, ApprovalRequests, Attachments, Brands, Campaigns, ContactEvents, ContactGroups, Contacts, Conversations, CustomFields, Domains, Email, Events, ExtensionInstallations, Extensions, Feedback, IntegrationCatalog, Integrations, Issues, Journeys, Mailboxes, Media, Messages, Namespaces, Newsletters, Operations, Organizations, Policies, ScheduledMessages, Subscriptions, TemplateRegistrations, TemplateShareLinks, Templates, TopicForms, Topics, Webhooks, Whatsapp, WhatsappFlows, WhatsappSetupLinks, Whoami };
|
|
14134
15449
|
|
|
14135
15450
|
//# sourceMappingURL=sdk.gen.js.map
|