agentmail 0.0.78 → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +5 -2
- package/dist/cjs/Client.js +2 -2
- package/dist/cjs/api/resources/apiKeys/client/Client.d.ts +1 -2
- package/dist/cjs/api/resources/apiKeys/client/Client.js +62 -52
- package/dist/cjs/api/resources/domains/client/Client.d.ts +1 -2
- package/dist/cjs/api/resources/domains/client/Client.js +62 -52
- package/dist/cjs/api/resources/drafts/client/Client.d.ts +1 -2
- package/dist/cjs/api/resources/drafts/client/Client.js +83 -70
- package/dist/cjs/api/resources/events/types/Bounce.d.ts +1 -0
- package/dist/cjs/api/resources/events/types/Complaint.d.ts +1 -0
- package/dist/cjs/api/resources/events/types/Delivery.d.ts +1 -0
- package/dist/cjs/api/resources/events/types/Reject.d.ts +1 -0
- package/dist/cjs/api/resources/events/types/Send.d.ts +1 -0
- package/dist/cjs/api/resources/inboxes/client/Client.d.ts +1 -2
- package/dist/cjs/api/resources/inboxes/client/Client.js +62 -52
- package/dist/cjs/api/resources/inboxes/resources/drafts/client/Client.d.ts +1 -2
- package/dist/cjs/api/resources/inboxes/resources/drafts/client/Client.js +83 -70
- package/dist/cjs/api/resources/inboxes/resources/messages/client/Client.d.ts +1 -2
- package/dist/cjs/api/resources/inboxes/resources/messages/client/Client.js +83 -70
- package/dist/cjs/api/resources/inboxes/resources/threads/client/Client.d.ts +1 -2
- package/dist/cjs/api/resources/inboxes/resources/threads/client/Client.js +83 -70
- package/dist/cjs/api/resources/pods/client/Client.d.ts +1 -2
- package/dist/cjs/api/resources/pods/client/Client.js +62 -52
- package/dist/cjs/api/resources/pods/resources/domains/client/Client.d.ts +1 -2
- package/dist/cjs/api/resources/pods/resources/domains/client/Client.js +83 -70
- package/dist/cjs/api/resources/pods/resources/drafts/client/Client.d.ts +1 -2
- package/dist/cjs/api/resources/pods/resources/drafts/client/Client.js +83 -70
- package/dist/cjs/api/resources/pods/resources/inboxes/client/Client.d.ts +1 -2
- package/dist/cjs/api/resources/pods/resources/inboxes/client/Client.js +83 -70
- package/dist/cjs/api/resources/pods/resources/threads/client/Client.d.ts +1 -2
- package/dist/cjs/api/resources/pods/resources/threads/client/Client.js +83 -70
- package/dist/cjs/api/resources/threads/client/Client.d.ts +1 -2
- package/dist/cjs/api/resources/threads/client/Client.js +83 -70
- package/dist/cjs/api/resources/webhooks/client/Client.d.ts +1 -2
- package/dist/cjs/api/resources/webhooks/client/Client.js +62 -52
- package/dist/cjs/core/exports.d.ts +2 -0
- package/dist/cjs/core/exports.js +18 -0
- package/dist/cjs/core/index.d.ts +2 -0
- package/dist/cjs/core/index.js +2 -0
- package/dist/cjs/core/pagination/Page.d.ts +33 -0
- package/dist/cjs/core/pagination/Page.js +101 -0
- package/dist/cjs/core/pagination/exports.d.ts +1 -0
- package/dist/cjs/core/pagination/exports.js +2 -0
- package/dist/cjs/core/pagination/index.d.ts +1 -0
- package/dist/cjs/core/pagination/index.js +5 -0
- package/dist/cjs/core/utils/index.d.ts +1 -0
- package/dist/cjs/core/utils/index.js +5 -0
- package/dist/cjs/core/utils/setObjectProperty.d.ts +11 -0
- package/dist/cjs/core/utils/setObjectProperty.js +42 -0
- package/dist/cjs/core/websocket/exports.d.ts +8 -0
- package/dist/cjs/core/websocket/exports.js +2 -0
- package/dist/cjs/exports.d.ts +1 -0
- package/dist/cjs/exports.js +17 -0
- package/dist/cjs/index.d.ts +1 -0
- package/dist/cjs/index.js +4 -0
- package/dist/cjs/serialization/resources/events/types/Bounce.d.ts +2 -0
- package/dist/cjs/serialization/resources/events/types/Bounce.js +2 -0
- package/dist/cjs/serialization/resources/events/types/Complaint.d.ts +2 -0
- package/dist/cjs/serialization/resources/events/types/Complaint.js +2 -0
- package/dist/cjs/serialization/resources/events/types/Delivery.d.ts +2 -0
- package/dist/cjs/serialization/resources/events/types/Delivery.js +2 -0
- package/dist/cjs/serialization/resources/events/types/Reject.d.ts +2 -0
- package/dist/cjs/serialization/resources/events/types/Reject.js +2 -0
- package/dist/cjs/serialization/resources/events/types/Send.d.ts +2 -0
- package/dist/cjs/serialization/resources/events/types/Send.js +2 -0
- package/dist/cjs/version.d.ts +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/esm/Client.mjs +2 -2
- package/dist/esm/api/resources/apiKeys/client/Client.d.mts +1 -2
- package/dist/esm/api/resources/apiKeys/client/Client.mjs +62 -52
- package/dist/esm/api/resources/domains/client/Client.d.mts +1 -2
- package/dist/esm/api/resources/domains/client/Client.mjs +62 -52
- package/dist/esm/api/resources/drafts/client/Client.d.mts +1 -2
- package/dist/esm/api/resources/drafts/client/Client.mjs +83 -70
- package/dist/esm/api/resources/events/types/Bounce.d.mts +1 -0
- package/dist/esm/api/resources/events/types/Complaint.d.mts +1 -0
- package/dist/esm/api/resources/events/types/Delivery.d.mts +1 -0
- package/dist/esm/api/resources/events/types/Reject.d.mts +1 -0
- package/dist/esm/api/resources/events/types/Send.d.mts +1 -0
- package/dist/esm/api/resources/inboxes/client/Client.d.mts +1 -2
- package/dist/esm/api/resources/inboxes/client/Client.mjs +62 -52
- package/dist/esm/api/resources/inboxes/resources/drafts/client/Client.d.mts +1 -2
- package/dist/esm/api/resources/inboxes/resources/drafts/client/Client.mjs +83 -70
- package/dist/esm/api/resources/inboxes/resources/messages/client/Client.d.mts +1 -2
- package/dist/esm/api/resources/inboxes/resources/messages/client/Client.mjs +83 -70
- package/dist/esm/api/resources/inboxes/resources/threads/client/Client.d.mts +1 -2
- package/dist/esm/api/resources/inboxes/resources/threads/client/Client.mjs +83 -70
- package/dist/esm/api/resources/pods/client/Client.d.mts +1 -2
- package/dist/esm/api/resources/pods/client/Client.mjs +62 -52
- package/dist/esm/api/resources/pods/resources/domains/client/Client.d.mts +1 -2
- package/dist/esm/api/resources/pods/resources/domains/client/Client.mjs +83 -70
- package/dist/esm/api/resources/pods/resources/drafts/client/Client.d.mts +1 -2
- package/dist/esm/api/resources/pods/resources/drafts/client/Client.mjs +83 -70
- package/dist/esm/api/resources/pods/resources/inboxes/client/Client.d.mts +1 -2
- package/dist/esm/api/resources/pods/resources/inboxes/client/Client.mjs +83 -70
- package/dist/esm/api/resources/pods/resources/threads/client/Client.d.mts +1 -2
- package/dist/esm/api/resources/pods/resources/threads/client/Client.mjs +83 -70
- package/dist/esm/api/resources/threads/client/Client.d.mts +1 -2
- package/dist/esm/api/resources/threads/client/Client.mjs +83 -70
- package/dist/esm/api/resources/webhooks/client/Client.d.mts +1 -2
- package/dist/esm/api/resources/webhooks/client/Client.mjs +62 -52
- package/dist/esm/core/exports.d.mts +2 -0
- package/dist/esm/core/exports.mjs +2 -0
- package/dist/esm/core/index.d.mts +2 -0
- package/dist/esm/core/index.mjs +2 -0
- package/dist/esm/core/pagination/Page.d.mts +33 -0
- package/dist/esm/core/pagination/Page.mjs +97 -0
- package/dist/esm/core/pagination/exports.d.mts +1 -0
- package/dist/esm/core/pagination/exports.mjs +1 -0
- package/dist/esm/core/pagination/index.d.mts +1 -0
- package/dist/esm/core/pagination/index.mjs +1 -0
- package/dist/esm/core/utils/index.d.mts +1 -0
- package/dist/esm/core/utils/index.mjs +1 -0
- package/dist/esm/core/utils/setObjectProperty.d.mts +11 -0
- package/dist/esm/core/utils/setObjectProperty.mjs +39 -0
- package/dist/esm/core/websocket/exports.d.mts +8 -0
- package/dist/esm/core/websocket/exports.mjs +1 -0
- package/dist/esm/exports.d.mts +1 -0
- package/dist/esm/exports.mjs +1 -0
- package/dist/esm/index.d.mts +1 -0
- package/dist/esm/index.mjs +1 -0
- package/dist/esm/serialization/resources/events/types/Bounce.d.mts +2 -0
- package/dist/esm/serialization/resources/events/types/Bounce.mjs +2 -0
- package/dist/esm/serialization/resources/events/types/Complaint.d.mts +2 -0
- package/dist/esm/serialization/resources/events/types/Complaint.mjs +2 -0
- package/dist/esm/serialization/resources/events/types/Delivery.d.mts +2 -0
- package/dist/esm/serialization/resources/events/types/Delivery.mjs +2 -0
- package/dist/esm/serialization/resources/events/types/Reject.d.mts +2 -0
- package/dist/esm/serialization/resources/events/types/Reject.mjs +2 -0
- package/dist/esm/serialization/resources/events/types/Send.d.mts +2 -0
- package/dist/esm/serialization/resources/events/types/Send.mjs +2 -0
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +1 -1
- package/reference.md +196 -28
package/reference.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Reference
|
|
2
2
|
## Inboxes
|
|
3
|
-
<details><summary><code>client.inboxes.<a href="/src/api/resources/inboxes/client/Client.ts">list</a>({ ...params }) -> AgentMail.ListInboxesResponse
|
|
3
|
+
<details><summary><code>client.inboxes.<a href="/src/api/resources/inboxes/client/Client.ts">list</a>({ ...params }) -> core.Page<AgentMail.Inbox, AgentMail.ListInboxesResponse></code></summary>
|
|
4
4
|
<dl>
|
|
5
5
|
<dd>
|
|
6
6
|
|
|
@@ -13,7 +13,19 @@
|
|
|
13
13
|
<dd>
|
|
14
14
|
|
|
15
15
|
```typescript
|
|
16
|
-
await client.inboxes.list();
|
|
16
|
+
const pageableResponse = await client.inboxes.list();
|
|
17
|
+
for await (const item of pageableResponse) {
|
|
18
|
+
console.log(item);
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
// Or you can manually iterate page-by-page
|
|
22
|
+
let page = await client.inboxes.list();
|
|
23
|
+
while (page.hasNextPage()) {
|
|
24
|
+
page = page.getNextPage();
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
// You can also access the underlying response
|
|
28
|
+
const response = page.response;
|
|
17
29
|
|
|
18
30
|
```
|
|
19
31
|
</dd>
|
|
@@ -197,7 +209,7 @@ await client.inboxes.delete("inbox_id");
|
|
|
197
209
|
</details>
|
|
198
210
|
|
|
199
211
|
## Pods
|
|
200
|
-
<details><summary><code>client.pods.<a href="/src/api/resources/pods/client/Client.ts">list</a>({ ...params }) -> AgentMail.ListPodsResponse
|
|
212
|
+
<details><summary><code>client.pods.<a href="/src/api/resources/pods/client/Client.ts">list</a>({ ...params }) -> core.Page<AgentMail.Pod, AgentMail.ListPodsResponse></code></summary>
|
|
201
213
|
<dl>
|
|
202
214
|
<dd>
|
|
203
215
|
|
|
@@ -210,7 +222,19 @@ await client.inboxes.delete("inbox_id");
|
|
|
210
222
|
<dd>
|
|
211
223
|
|
|
212
224
|
```typescript
|
|
213
|
-
await client.pods.list();
|
|
225
|
+
const pageableResponse = await client.pods.list();
|
|
226
|
+
for await (const item of pageableResponse) {
|
|
227
|
+
console.log(item);
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
// Or you can manually iterate page-by-page
|
|
231
|
+
let page = await client.pods.list();
|
|
232
|
+
while (page.hasNextPage()) {
|
|
233
|
+
page = page.getNextPage();
|
|
234
|
+
}
|
|
235
|
+
|
|
236
|
+
// You can also access the underlying response
|
|
237
|
+
const response = page.response;
|
|
214
238
|
|
|
215
239
|
```
|
|
216
240
|
</dd>
|
|
@@ -394,7 +418,7 @@ await client.pods.delete("pod_id");
|
|
|
394
418
|
</details>
|
|
395
419
|
|
|
396
420
|
## Webhooks
|
|
397
|
-
<details><summary><code>client.webhooks.<a href="/src/api/resources/webhooks/client/Client.ts">list</a>({ ...params }) -> AgentMail.ListWebhooksResponse
|
|
421
|
+
<details><summary><code>client.webhooks.<a href="/src/api/resources/webhooks/client/Client.ts">list</a>({ ...params }) -> core.Page<AgentMail.Webhook, AgentMail.ListWebhooksResponse></code></summary>
|
|
398
422
|
<dl>
|
|
399
423
|
<dd>
|
|
400
424
|
|
|
@@ -407,7 +431,19 @@ await client.pods.delete("pod_id");
|
|
|
407
431
|
<dd>
|
|
408
432
|
|
|
409
433
|
```typescript
|
|
410
|
-
await client.webhooks.list();
|
|
434
|
+
const pageableResponse = await client.webhooks.list();
|
|
435
|
+
for await (const item of pageableResponse) {
|
|
436
|
+
console.log(item);
|
|
437
|
+
}
|
|
438
|
+
|
|
439
|
+
// Or you can manually iterate page-by-page
|
|
440
|
+
let page = await client.webhooks.list();
|
|
441
|
+
while (page.hasNextPage()) {
|
|
442
|
+
page = page.getNextPage();
|
|
443
|
+
}
|
|
444
|
+
|
|
445
|
+
// You can also access the underlying response
|
|
446
|
+
const response = page.response;
|
|
411
447
|
|
|
412
448
|
```
|
|
413
449
|
</dd>
|
|
@@ -594,7 +630,7 @@ await client.webhooks.delete("webhook_id");
|
|
|
594
630
|
</details>
|
|
595
631
|
|
|
596
632
|
## ApiKeys
|
|
597
|
-
<details><summary><code>client.apiKeys.<a href="/src/api/resources/apiKeys/client/Client.ts">list</a>({ ...params }) -> AgentMail.ListApiKeysResponse
|
|
633
|
+
<details><summary><code>client.apiKeys.<a href="/src/api/resources/apiKeys/client/Client.ts">list</a>({ ...params }) -> core.Page<AgentMail.ApiKey, AgentMail.ListApiKeysResponse></code></summary>
|
|
598
634
|
<dl>
|
|
599
635
|
<dd>
|
|
600
636
|
|
|
@@ -607,7 +643,19 @@ await client.webhooks.delete("webhook_id");
|
|
|
607
643
|
<dd>
|
|
608
644
|
|
|
609
645
|
```typescript
|
|
610
|
-
await client.apiKeys.list();
|
|
646
|
+
const pageableResponse = await client.apiKeys.list();
|
|
647
|
+
for await (const item of pageableResponse) {
|
|
648
|
+
console.log(item);
|
|
649
|
+
}
|
|
650
|
+
|
|
651
|
+
// Or you can manually iterate page-by-page
|
|
652
|
+
let page = await client.apiKeys.list();
|
|
653
|
+
while (page.hasNextPage()) {
|
|
654
|
+
page = page.getNextPage();
|
|
655
|
+
}
|
|
656
|
+
|
|
657
|
+
// You can also access the underlying response
|
|
658
|
+
const response = page.response;
|
|
611
659
|
|
|
612
660
|
```
|
|
613
661
|
</dd>
|
|
@@ -744,7 +792,7 @@ await client.apiKeys.delete("api_key");
|
|
|
744
792
|
</details>
|
|
745
793
|
|
|
746
794
|
## Domains
|
|
747
|
-
<details><summary><code>client.domains.<a href="/src/api/resources/domains/client/Client.ts">list</a>({ ...params }) -> AgentMail.ListDomainsResponse
|
|
795
|
+
<details><summary><code>client.domains.<a href="/src/api/resources/domains/client/Client.ts">list</a>({ ...params }) -> core.Page<AgentMail.DomainSummary, AgentMail.ListDomainsResponse></code></summary>
|
|
748
796
|
<dl>
|
|
749
797
|
<dd>
|
|
750
798
|
|
|
@@ -757,7 +805,19 @@ await client.apiKeys.delete("api_key");
|
|
|
757
805
|
<dd>
|
|
758
806
|
|
|
759
807
|
```typescript
|
|
760
|
-
await client.domains.list();
|
|
808
|
+
const pageableResponse = await client.domains.list();
|
|
809
|
+
for await (const item of pageableResponse) {
|
|
810
|
+
console.log(item);
|
|
811
|
+
}
|
|
812
|
+
|
|
813
|
+
// Or you can manually iterate page-by-page
|
|
814
|
+
let page = await client.domains.list();
|
|
815
|
+
while (page.hasNextPage()) {
|
|
816
|
+
page = page.getNextPage();
|
|
817
|
+
}
|
|
818
|
+
|
|
819
|
+
// You can also access the underlying response
|
|
820
|
+
const response = page.response;
|
|
761
821
|
|
|
762
822
|
```
|
|
763
823
|
</dd>
|
|
@@ -1042,7 +1102,7 @@ await client.domains.verify("domain_id");
|
|
|
1042
1102
|
</details>
|
|
1043
1103
|
|
|
1044
1104
|
## Drafts
|
|
1045
|
-
<details><summary><code>client.drafts.<a href="/src/api/resources/drafts/client/Client.ts">list</a>({ ...params }) -> AgentMail.ListDraftsResponse
|
|
1105
|
+
<details><summary><code>client.drafts.<a href="/src/api/resources/drafts/client/Client.ts">list</a>({ ...params }) -> core.Page<AgentMail.DraftItem, AgentMail.ListDraftsResponse></code></summary>
|
|
1046
1106
|
<dl>
|
|
1047
1107
|
<dd>
|
|
1048
1108
|
|
|
@@ -1055,7 +1115,19 @@ await client.domains.verify("domain_id");
|
|
|
1055
1115
|
<dd>
|
|
1056
1116
|
|
|
1057
1117
|
```typescript
|
|
1058
|
-
await client.drafts.list();
|
|
1118
|
+
const pageableResponse = await client.drafts.list();
|
|
1119
|
+
for await (const item of pageableResponse) {
|
|
1120
|
+
console.log(item);
|
|
1121
|
+
}
|
|
1122
|
+
|
|
1123
|
+
// Or you can manually iterate page-by-page
|
|
1124
|
+
let page = await client.drafts.list();
|
|
1125
|
+
while (page.hasNextPage()) {
|
|
1126
|
+
page = page.getNextPage();
|
|
1127
|
+
}
|
|
1128
|
+
|
|
1129
|
+
// You can also access the underlying response
|
|
1130
|
+
const response = page.response;
|
|
1059
1131
|
|
|
1060
1132
|
```
|
|
1061
1133
|
</dd>
|
|
@@ -1141,7 +1213,7 @@ await client.drafts.get("draft_id");
|
|
|
1141
1213
|
</details>
|
|
1142
1214
|
|
|
1143
1215
|
## Inboxes Drafts
|
|
1144
|
-
<details><summary><code>client.inboxes.drafts.<a href="/src/api/resources/inboxes/resources/drafts/client/Client.ts">list</a>(inboxId, { ...params }) -> AgentMail.ListDraftsResponse
|
|
1216
|
+
<details><summary><code>client.inboxes.drafts.<a href="/src/api/resources/inboxes/resources/drafts/client/Client.ts">list</a>(inboxId, { ...params }) -> core.Page<AgentMail.DraftItem, AgentMail.ListDraftsResponse></code></summary>
|
|
1145
1217
|
<dl>
|
|
1146
1218
|
<dd>
|
|
1147
1219
|
|
|
@@ -1154,7 +1226,19 @@ await client.drafts.get("draft_id");
|
|
|
1154
1226
|
<dd>
|
|
1155
1227
|
|
|
1156
1228
|
```typescript
|
|
1157
|
-
await client.inboxes.drafts.list("inbox_id");
|
|
1229
|
+
const pageableResponse = await client.inboxes.drafts.list("inbox_id");
|
|
1230
|
+
for await (const item of pageableResponse) {
|
|
1231
|
+
console.log(item);
|
|
1232
|
+
}
|
|
1233
|
+
|
|
1234
|
+
// Or you can manually iterate page-by-page
|
|
1235
|
+
let page = await client.inboxes.drafts.list("inbox_id");
|
|
1236
|
+
while (page.hasNextPage()) {
|
|
1237
|
+
page = page.getNextPage();
|
|
1238
|
+
}
|
|
1239
|
+
|
|
1240
|
+
// You can also access the underlying response
|
|
1241
|
+
const response = page.response;
|
|
1158
1242
|
|
|
1159
1243
|
```
|
|
1160
1244
|
</dd>
|
|
@@ -1500,7 +1584,7 @@ await client.inboxes.drafts.delete("inbox_id", "draft_id");
|
|
|
1500
1584
|
</details>
|
|
1501
1585
|
|
|
1502
1586
|
## Inboxes Messages
|
|
1503
|
-
<details><summary><code>client.inboxes.messages.<a href="/src/api/resources/inboxes/resources/messages/client/Client.ts">list</a>(inboxId, { ...params }) -> AgentMail.ListMessagesResponse
|
|
1587
|
+
<details><summary><code>client.inboxes.messages.<a href="/src/api/resources/inboxes/resources/messages/client/Client.ts">list</a>(inboxId, { ...params }) -> core.Page<AgentMail.MessageItem, AgentMail.ListMessagesResponse></code></summary>
|
|
1504
1588
|
<dl>
|
|
1505
1589
|
<dd>
|
|
1506
1590
|
|
|
@@ -1513,7 +1597,19 @@ await client.inboxes.drafts.delete("inbox_id", "draft_id");
|
|
|
1513
1597
|
<dd>
|
|
1514
1598
|
|
|
1515
1599
|
```typescript
|
|
1516
|
-
await client.inboxes.messages.list("inbox_id");
|
|
1600
|
+
const pageableResponse = await client.inboxes.messages.list("inbox_id");
|
|
1601
|
+
for await (const item of pageableResponse) {
|
|
1602
|
+
console.log(item);
|
|
1603
|
+
}
|
|
1604
|
+
|
|
1605
|
+
// Or you can manually iterate page-by-page
|
|
1606
|
+
let page = await client.inboxes.messages.list("inbox_id");
|
|
1607
|
+
while (page.hasNextPage()) {
|
|
1608
|
+
page = page.getNextPage();
|
|
1609
|
+
}
|
|
1610
|
+
|
|
1611
|
+
// You can also access the underlying response
|
|
1612
|
+
const response = page.response;
|
|
1517
1613
|
|
|
1518
1614
|
```
|
|
1519
1615
|
</dd>
|
|
@@ -1985,7 +2081,7 @@ await client.inboxes.metrics.get("inbox_id", {
|
|
|
1985
2081
|
</details>
|
|
1986
2082
|
|
|
1987
2083
|
## Inboxes Threads
|
|
1988
|
-
<details><summary><code>client.inboxes.threads.<a href="/src/api/resources/inboxes/resources/threads/client/Client.ts">list</a>(inboxId, { ...params }) -> AgentMail.ListThreadsResponse
|
|
2084
|
+
<details><summary><code>client.inboxes.threads.<a href="/src/api/resources/inboxes/resources/threads/client/Client.ts">list</a>(inboxId, { ...params }) -> core.Page<AgentMail.ThreadItem, AgentMail.ListThreadsResponse></code></summary>
|
|
1989
2085
|
<dl>
|
|
1990
2086
|
<dd>
|
|
1991
2087
|
|
|
@@ -1998,7 +2094,19 @@ await client.inboxes.metrics.get("inbox_id", {
|
|
|
1998
2094
|
<dd>
|
|
1999
2095
|
|
|
2000
2096
|
```typescript
|
|
2001
|
-
await client.inboxes.threads.list("inbox_id");
|
|
2097
|
+
const pageableResponse = await client.inboxes.threads.list("inbox_id");
|
|
2098
|
+
for await (const item of pageableResponse) {
|
|
2099
|
+
console.log(item);
|
|
2100
|
+
}
|
|
2101
|
+
|
|
2102
|
+
// Or you can manually iterate page-by-page
|
|
2103
|
+
let page = await client.inboxes.threads.list("inbox_id");
|
|
2104
|
+
while (page.hasNextPage()) {
|
|
2105
|
+
page = page.getNextPage();
|
|
2106
|
+
}
|
|
2107
|
+
|
|
2108
|
+
// You can also access the underlying response
|
|
2109
|
+
const response = page.response;
|
|
2002
2110
|
|
|
2003
2111
|
```
|
|
2004
2112
|
</dd>
|
|
@@ -2275,7 +2383,7 @@ await client.metrics.list({
|
|
|
2275
2383
|
</details>
|
|
2276
2384
|
|
|
2277
2385
|
## Pods Domains
|
|
2278
|
-
<details><summary><code>client.pods.domains.<a href="/src/api/resources/pods/resources/domains/client/Client.ts">list</a>(podId, { ...params }) -> AgentMail.ListDomainsResponse
|
|
2386
|
+
<details><summary><code>client.pods.domains.<a href="/src/api/resources/pods/resources/domains/client/Client.ts">list</a>(podId, { ...params }) -> core.Page<AgentMail.DomainSummary, AgentMail.ListDomainsResponse></code></summary>
|
|
2279
2387
|
<dl>
|
|
2280
2388
|
<dd>
|
|
2281
2389
|
|
|
@@ -2288,7 +2396,19 @@ await client.metrics.list({
|
|
|
2288
2396
|
<dd>
|
|
2289
2397
|
|
|
2290
2398
|
```typescript
|
|
2291
|
-
await client.pods.domains.list("pod_id");
|
|
2399
|
+
const pageableResponse = await client.pods.domains.list("pod_id");
|
|
2400
|
+
for await (const item of pageableResponse) {
|
|
2401
|
+
console.log(item);
|
|
2402
|
+
}
|
|
2403
|
+
|
|
2404
|
+
// Or you can manually iterate page-by-page
|
|
2405
|
+
let page = await client.pods.domains.list("pod_id");
|
|
2406
|
+
while (page.hasNextPage()) {
|
|
2407
|
+
page = page.getNextPage();
|
|
2408
|
+
}
|
|
2409
|
+
|
|
2410
|
+
// You can also access the underlying response
|
|
2411
|
+
const response = page.response;
|
|
2292
2412
|
|
|
2293
2413
|
```
|
|
2294
2414
|
</dd>
|
|
@@ -2450,7 +2570,7 @@ await client.pods.domains.delete("pod_id", "domain_id");
|
|
|
2450
2570
|
</details>
|
|
2451
2571
|
|
|
2452
2572
|
## Pods Drafts
|
|
2453
|
-
<details><summary><code>client.pods.drafts.<a href="/src/api/resources/pods/resources/drafts/client/Client.ts">list</a>(podId, { ...params }) -> AgentMail.ListDraftsResponse
|
|
2573
|
+
<details><summary><code>client.pods.drafts.<a href="/src/api/resources/pods/resources/drafts/client/Client.ts">list</a>(podId, { ...params }) -> core.Page<AgentMail.DraftItem, AgentMail.ListDraftsResponse></code></summary>
|
|
2454
2574
|
<dl>
|
|
2455
2575
|
<dd>
|
|
2456
2576
|
|
|
@@ -2463,7 +2583,19 @@ await client.pods.domains.delete("pod_id", "domain_id");
|
|
|
2463
2583
|
<dd>
|
|
2464
2584
|
|
|
2465
2585
|
```typescript
|
|
2466
|
-
await client.pods.drafts.list("pod_id");
|
|
2586
|
+
const pageableResponse = await client.pods.drafts.list("pod_id");
|
|
2587
|
+
for await (const item of pageableResponse) {
|
|
2588
|
+
console.log(item);
|
|
2589
|
+
}
|
|
2590
|
+
|
|
2591
|
+
// Or you can manually iterate page-by-page
|
|
2592
|
+
let page = await client.pods.drafts.list("pod_id");
|
|
2593
|
+
while (page.hasNextPage()) {
|
|
2594
|
+
page = page.getNextPage();
|
|
2595
|
+
}
|
|
2596
|
+
|
|
2597
|
+
// You can also access the underlying response
|
|
2598
|
+
const response = page.response;
|
|
2467
2599
|
|
|
2468
2600
|
```
|
|
2469
2601
|
</dd>
|
|
@@ -2565,7 +2697,7 @@ await client.pods.drafts.get("pod_id", "draft_id");
|
|
|
2565
2697
|
</details>
|
|
2566
2698
|
|
|
2567
2699
|
## Pods Inboxes
|
|
2568
|
-
<details><summary><code>client.pods.inboxes.<a href="/src/api/resources/pods/resources/inboxes/client/Client.ts">list</a>(podId, { ...params }) -> AgentMail.ListInboxesResponse
|
|
2700
|
+
<details><summary><code>client.pods.inboxes.<a href="/src/api/resources/pods/resources/inboxes/client/Client.ts">list</a>(podId, { ...params }) -> core.Page<AgentMail.Inbox, AgentMail.ListInboxesResponse></code></summary>
|
|
2569
2701
|
<dl>
|
|
2570
2702
|
<dd>
|
|
2571
2703
|
|
|
@@ -2578,7 +2710,19 @@ await client.pods.drafts.get("pod_id", "draft_id");
|
|
|
2578
2710
|
<dd>
|
|
2579
2711
|
|
|
2580
2712
|
```typescript
|
|
2581
|
-
await client.pods.inboxes.list("pod_id");
|
|
2713
|
+
const pageableResponse = await client.pods.inboxes.list("pod_id");
|
|
2714
|
+
for await (const item of pageableResponse) {
|
|
2715
|
+
console.log(item);
|
|
2716
|
+
}
|
|
2717
|
+
|
|
2718
|
+
// Or you can manually iterate page-by-page
|
|
2719
|
+
let page = await client.pods.inboxes.list("pod_id");
|
|
2720
|
+
while (page.hasNextPage()) {
|
|
2721
|
+
page = page.getNextPage();
|
|
2722
|
+
}
|
|
2723
|
+
|
|
2724
|
+
// You can also access the underlying response
|
|
2725
|
+
const response = page.response;
|
|
2582
2726
|
|
|
2583
2727
|
```
|
|
2584
2728
|
</dd>
|
|
@@ -2794,7 +2938,7 @@ await client.pods.inboxes.delete("pod_id", "inbox_id");
|
|
|
2794
2938
|
</details>
|
|
2795
2939
|
|
|
2796
2940
|
## Pods Threads
|
|
2797
|
-
<details><summary><code>client.pods.threads.<a href="/src/api/resources/pods/resources/threads/client/Client.ts">list</a>(podId, { ...params }) -> AgentMail.ListThreadsResponse
|
|
2941
|
+
<details><summary><code>client.pods.threads.<a href="/src/api/resources/pods/resources/threads/client/Client.ts">list</a>(podId, { ...params }) -> core.Page<AgentMail.ThreadItem, AgentMail.ListThreadsResponse></code></summary>
|
|
2798
2942
|
<dl>
|
|
2799
2943
|
<dd>
|
|
2800
2944
|
|
|
@@ -2807,7 +2951,19 @@ await client.pods.inboxes.delete("pod_id", "inbox_id");
|
|
|
2807
2951
|
<dd>
|
|
2808
2952
|
|
|
2809
2953
|
```typescript
|
|
2810
|
-
await client.pods.threads.list("pod_id");
|
|
2954
|
+
const pageableResponse = await client.pods.threads.list("pod_id");
|
|
2955
|
+
for await (const item of pageableResponse) {
|
|
2956
|
+
console.log(item);
|
|
2957
|
+
}
|
|
2958
|
+
|
|
2959
|
+
// Or you can manually iterate page-by-page
|
|
2960
|
+
let page = await client.pods.threads.list("pod_id");
|
|
2961
|
+
while (page.hasNextPage()) {
|
|
2962
|
+
page = page.getNextPage();
|
|
2963
|
+
}
|
|
2964
|
+
|
|
2965
|
+
// You can also access the underlying response
|
|
2966
|
+
const response = page.response;
|
|
2811
2967
|
|
|
2812
2968
|
```
|
|
2813
2969
|
</dd>
|
|
@@ -2974,7 +3130,7 @@ await client.pods.threads.getAttachment("pod_id", "thread_id", "attachment_id");
|
|
|
2974
3130
|
</details>
|
|
2975
3131
|
|
|
2976
3132
|
## Threads
|
|
2977
|
-
<details><summary><code>client.threads.<a href="/src/api/resources/threads/client/Client.ts">list</a>({ ...params }) -> AgentMail.ListThreadsResponse
|
|
3133
|
+
<details><summary><code>client.threads.<a href="/src/api/resources/threads/client/Client.ts">list</a>({ ...params }) -> core.Page<AgentMail.ThreadItem, AgentMail.ListThreadsResponse></code></summary>
|
|
2978
3134
|
<dl>
|
|
2979
3135
|
<dd>
|
|
2980
3136
|
|
|
@@ -2987,7 +3143,19 @@ await client.pods.threads.getAttachment("pod_id", "thread_id", "attachment_id");
|
|
|
2987
3143
|
<dd>
|
|
2988
3144
|
|
|
2989
3145
|
```typescript
|
|
2990
|
-
await client.threads.list();
|
|
3146
|
+
const pageableResponse = await client.threads.list();
|
|
3147
|
+
for await (const item of pageableResponse) {
|
|
3148
|
+
console.log(item);
|
|
3149
|
+
}
|
|
3150
|
+
|
|
3151
|
+
// Or you can manually iterate page-by-page
|
|
3152
|
+
let page = await client.threads.list();
|
|
3153
|
+
while (page.hasNextPage()) {
|
|
3154
|
+
page = page.getNextPage();
|
|
3155
|
+
}
|
|
3156
|
+
|
|
3157
|
+
// You can also access the underlying response
|
|
3158
|
+
const response = page.response;
|
|
2991
3159
|
|
|
2992
3160
|
```
|
|
2993
3161
|
</dd>
|