agentmail 0.0.78 → 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/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/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/index.d.ts +2 -0
- package/dist/cjs/core/index.js +2 -0
- package/dist/cjs/core/pagination/Page.d.ts +32 -0
- package/dist/cjs/core/pagination/Page.js +100 -0
- package/dist/cjs/core/pagination/Pageable.d.ts +14 -0
- package/dist/cjs/core/pagination/Pageable.js +10 -0
- package/dist/cjs/core/pagination/index.d.ts +2 -0
- package/dist/cjs/core/pagination/index.js +7 -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/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/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/index.d.mts +2 -0
- package/dist/esm/core/index.mjs +2 -0
- package/dist/esm/core/pagination/Page.d.mts +32 -0
- package/dist/esm/core/pagination/Page.mjs +96 -0
- package/dist/esm/core/pagination/Pageable.d.mts +14 -0
- package/dist/esm/core/pagination/Pageable.mjs +6 -0
- package/dist/esm/core/pagination/index.d.mts +2 -0
- package/dist/esm/core/pagination/index.mjs +2 -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/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +1 -1
- package/reference.md +154 -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.
|
|
3
|
+
<details><summary><code>client.inboxes.<a href="/src/api/resources/inboxes/client/Client.ts">list</a>({ ...params }) -> core.Page<AgentMail.Inbox></code></summary>
|
|
4
4
|
<dl>
|
|
5
5
|
<dd>
|
|
6
6
|
|
|
@@ -13,7 +13,16 @@
|
|
|
13
13
|
<dd>
|
|
14
14
|
|
|
15
15
|
```typescript
|
|
16
|
-
await client.inboxes.list();
|
|
16
|
+
const response = await client.inboxes.list();
|
|
17
|
+
for await (const item of response) {
|
|
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
|
+
}
|
|
17
26
|
|
|
18
27
|
```
|
|
19
28
|
</dd>
|
|
@@ -197,7 +206,7 @@ await client.inboxes.delete("inbox_id");
|
|
|
197
206
|
</details>
|
|
198
207
|
|
|
199
208
|
## Pods
|
|
200
|
-
<details><summary><code>client.pods.<a href="/src/api/resources/pods/client/Client.ts">list</a>({ ...params }) -> AgentMail.
|
|
209
|
+
<details><summary><code>client.pods.<a href="/src/api/resources/pods/client/Client.ts">list</a>({ ...params }) -> core.Page<AgentMail.Pod></code></summary>
|
|
201
210
|
<dl>
|
|
202
211
|
<dd>
|
|
203
212
|
|
|
@@ -210,7 +219,16 @@ await client.inboxes.delete("inbox_id");
|
|
|
210
219
|
<dd>
|
|
211
220
|
|
|
212
221
|
```typescript
|
|
213
|
-
await client.pods.list();
|
|
222
|
+
const response = await client.pods.list();
|
|
223
|
+
for await (const item of response) {
|
|
224
|
+
console.log(item);
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
// Or you can manually iterate page-by-page
|
|
228
|
+
let page = await client.pods.list();
|
|
229
|
+
while (page.hasNextPage()) {
|
|
230
|
+
page = page.getNextPage();
|
|
231
|
+
}
|
|
214
232
|
|
|
215
233
|
```
|
|
216
234
|
</dd>
|
|
@@ -394,7 +412,7 @@ await client.pods.delete("pod_id");
|
|
|
394
412
|
</details>
|
|
395
413
|
|
|
396
414
|
## Webhooks
|
|
397
|
-
<details><summary><code>client.webhooks.<a href="/src/api/resources/webhooks/client/Client.ts">list</a>({ ...params }) -> AgentMail.
|
|
415
|
+
<details><summary><code>client.webhooks.<a href="/src/api/resources/webhooks/client/Client.ts">list</a>({ ...params }) -> core.Page<AgentMail.Webhook></code></summary>
|
|
398
416
|
<dl>
|
|
399
417
|
<dd>
|
|
400
418
|
|
|
@@ -407,7 +425,16 @@ await client.pods.delete("pod_id");
|
|
|
407
425
|
<dd>
|
|
408
426
|
|
|
409
427
|
```typescript
|
|
410
|
-
await client.webhooks.list();
|
|
428
|
+
const response = await client.webhooks.list();
|
|
429
|
+
for await (const item of response) {
|
|
430
|
+
console.log(item);
|
|
431
|
+
}
|
|
432
|
+
|
|
433
|
+
// Or you can manually iterate page-by-page
|
|
434
|
+
let page = await client.webhooks.list();
|
|
435
|
+
while (page.hasNextPage()) {
|
|
436
|
+
page = page.getNextPage();
|
|
437
|
+
}
|
|
411
438
|
|
|
412
439
|
```
|
|
413
440
|
</dd>
|
|
@@ -594,7 +621,7 @@ await client.webhooks.delete("webhook_id");
|
|
|
594
621
|
</details>
|
|
595
622
|
|
|
596
623
|
## ApiKeys
|
|
597
|
-
<details><summary><code>client.apiKeys.<a href="/src/api/resources/apiKeys/client/Client.ts">list</a>({ ...params }) -> AgentMail.
|
|
624
|
+
<details><summary><code>client.apiKeys.<a href="/src/api/resources/apiKeys/client/Client.ts">list</a>({ ...params }) -> core.Page<AgentMail.ApiKey></code></summary>
|
|
598
625
|
<dl>
|
|
599
626
|
<dd>
|
|
600
627
|
|
|
@@ -607,7 +634,16 @@ await client.webhooks.delete("webhook_id");
|
|
|
607
634
|
<dd>
|
|
608
635
|
|
|
609
636
|
```typescript
|
|
610
|
-
await client.apiKeys.list();
|
|
637
|
+
const response = await client.apiKeys.list();
|
|
638
|
+
for await (const item of response) {
|
|
639
|
+
console.log(item);
|
|
640
|
+
}
|
|
641
|
+
|
|
642
|
+
// Or you can manually iterate page-by-page
|
|
643
|
+
let page = await client.apiKeys.list();
|
|
644
|
+
while (page.hasNextPage()) {
|
|
645
|
+
page = page.getNextPage();
|
|
646
|
+
}
|
|
611
647
|
|
|
612
648
|
```
|
|
613
649
|
</dd>
|
|
@@ -744,7 +780,7 @@ await client.apiKeys.delete("api_key");
|
|
|
744
780
|
</details>
|
|
745
781
|
|
|
746
782
|
## Domains
|
|
747
|
-
<details><summary><code>client.domains.<a href="/src/api/resources/domains/client/Client.ts">list</a>({ ...params }) -> AgentMail.
|
|
783
|
+
<details><summary><code>client.domains.<a href="/src/api/resources/domains/client/Client.ts">list</a>({ ...params }) -> core.Page<AgentMail.DomainSummary></code></summary>
|
|
748
784
|
<dl>
|
|
749
785
|
<dd>
|
|
750
786
|
|
|
@@ -757,7 +793,16 @@ await client.apiKeys.delete("api_key");
|
|
|
757
793
|
<dd>
|
|
758
794
|
|
|
759
795
|
```typescript
|
|
760
|
-
await client.domains.list();
|
|
796
|
+
const response = await client.domains.list();
|
|
797
|
+
for await (const item of response) {
|
|
798
|
+
console.log(item);
|
|
799
|
+
}
|
|
800
|
+
|
|
801
|
+
// Or you can manually iterate page-by-page
|
|
802
|
+
let page = await client.domains.list();
|
|
803
|
+
while (page.hasNextPage()) {
|
|
804
|
+
page = page.getNextPage();
|
|
805
|
+
}
|
|
761
806
|
|
|
762
807
|
```
|
|
763
808
|
</dd>
|
|
@@ -1042,7 +1087,7 @@ await client.domains.verify("domain_id");
|
|
|
1042
1087
|
</details>
|
|
1043
1088
|
|
|
1044
1089
|
## Drafts
|
|
1045
|
-
<details><summary><code>client.drafts.<a href="/src/api/resources/drafts/client/Client.ts">list</a>({ ...params }) -> AgentMail.
|
|
1090
|
+
<details><summary><code>client.drafts.<a href="/src/api/resources/drafts/client/Client.ts">list</a>({ ...params }) -> core.Page<AgentMail.DraftItem></code></summary>
|
|
1046
1091
|
<dl>
|
|
1047
1092
|
<dd>
|
|
1048
1093
|
|
|
@@ -1055,7 +1100,16 @@ await client.domains.verify("domain_id");
|
|
|
1055
1100
|
<dd>
|
|
1056
1101
|
|
|
1057
1102
|
```typescript
|
|
1058
|
-
await client.drafts.list();
|
|
1103
|
+
const response = await client.drafts.list();
|
|
1104
|
+
for await (const item of response) {
|
|
1105
|
+
console.log(item);
|
|
1106
|
+
}
|
|
1107
|
+
|
|
1108
|
+
// Or you can manually iterate page-by-page
|
|
1109
|
+
let page = await client.drafts.list();
|
|
1110
|
+
while (page.hasNextPage()) {
|
|
1111
|
+
page = page.getNextPage();
|
|
1112
|
+
}
|
|
1059
1113
|
|
|
1060
1114
|
```
|
|
1061
1115
|
</dd>
|
|
@@ -1141,7 +1195,7 @@ await client.drafts.get("draft_id");
|
|
|
1141
1195
|
</details>
|
|
1142
1196
|
|
|
1143
1197
|
## 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.
|
|
1198
|
+
<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></code></summary>
|
|
1145
1199
|
<dl>
|
|
1146
1200
|
<dd>
|
|
1147
1201
|
|
|
@@ -1154,7 +1208,16 @@ await client.drafts.get("draft_id");
|
|
|
1154
1208
|
<dd>
|
|
1155
1209
|
|
|
1156
1210
|
```typescript
|
|
1157
|
-
await client.inboxes.drafts.list("inbox_id");
|
|
1211
|
+
const response = await client.inboxes.drafts.list("inbox_id");
|
|
1212
|
+
for await (const item of response) {
|
|
1213
|
+
console.log(item);
|
|
1214
|
+
}
|
|
1215
|
+
|
|
1216
|
+
// Or you can manually iterate page-by-page
|
|
1217
|
+
let page = await client.inboxes.drafts.list("inbox_id");
|
|
1218
|
+
while (page.hasNextPage()) {
|
|
1219
|
+
page = page.getNextPage();
|
|
1220
|
+
}
|
|
1158
1221
|
|
|
1159
1222
|
```
|
|
1160
1223
|
</dd>
|
|
@@ -1500,7 +1563,7 @@ await client.inboxes.drafts.delete("inbox_id", "draft_id");
|
|
|
1500
1563
|
</details>
|
|
1501
1564
|
|
|
1502
1565
|
## 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.
|
|
1566
|
+
<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></code></summary>
|
|
1504
1567
|
<dl>
|
|
1505
1568
|
<dd>
|
|
1506
1569
|
|
|
@@ -1513,7 +1576,16 @@ await client.inboxes.drafts.delete("inbox_id", "draft_id");
|
|
|
1513
1576
|
<dd>
|
|
1514
1577
|
|
|
1515
1578
|
```typescript
|
|
1516
|
-
await client.inboxes.messages.list("inbox_id");
|
|
1579
|
+
const response = await client.inboxes.messages.list("inbox_id");
|
|
1580
|
+
for await (const item of response) {
|
|
1581
|
+
console.log(item);
|
|
1582
|
+
}
|
|
1583
|
+
|
|
1584
|
+
// Or you can manually iterate page-by-page
|
|
1585
|
+
let page = await client.inboxes.messages.list("inbox_id");
|
|
1586
|
+
while (page.hasNextPage()) {
|
|
1587
|
+
page = page.getNextPage();
|
|
1588
|
+
}
|
|
1517
1589
|
|
|
1518
1590
|
```
|
|
1519
1591
|
</dd>
|
|
@@ -1985,7 +2057,7 @@ await client.inboxes.metrics.get("inbox_id", {
|
|
|
1985
2057
|
</details>
|
|
1986
2058
|
|
|
1987
2059
|
## 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.
|
|
2060
|
+
<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></code></summary>
|
|
1989
2061
|
<dl>
|
|
1990
2062
|
<dd>
|
|
1991
2063
|
|
|
@@ -1998,7 +2070,16 @@ await client.inboxes.metrics.get("inbox_id", {
|
|
|
1998
2070
|
<dd>
|
|
1999
2071
|
|
|
2000
2072
|
```typescript
|
|
2001
|
-
await client.inboxes.threads.list("inbox_id");
|
|
2073
|
+
const response = await client.inboxes.threads.list("inbox_id");
|
|
2074
|
+
for await (const item of response) {
|
|
2075
|
+
console.log(item);
|
|
2076
|
+
}
|
|
2077
|
+
|
|
2078
|
+
// Or you can manually iterate page-by-page
|
|
2079
|
+
let page = await client.inboxes.threads.list("inbox_id");
|
|
2080
|
+
while (page.hasNextPage()) {
|
|
2081
|
+
page = page.getNextPage();
|
|
2082
|
+
}
|
|
2002
2083
|
|
|
2003
2084
|
```
|
|
2004
2085
|
</dd>
|
|
@@ -2275,7 +2356,7 @@ await client.metrics.list({
|
|
|
2275
2356
|
</details>
|
|
2276
2357
|
|
|
2277
2358
|
## 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.
|
|
2359
|
+
<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></code></summary>
|
|
2279
2360
|
<dl>
|
|
2280
2361
|
<dd>
|
|
2281
2362
|
|
|
@@ -2288,7 +2369,16 @@ await client.metrics.list({
|
|
|
2288
2369
|
<dd>
|
|
2289
2370
|
|
|
2290
2371
|
```typescript
|
|
2291
|
-
await client.pods.domains.list("pod_id");
|
|
2372
|
+
const response = await client.pods.domains.list("pod_id");
|
|
2373
|
+
for await (const item of response) {
|
|
2374
|
+
console.log(item);
|
|
2375
|
+
}
|
|
2376
|
+
|
|
2377
|
+
// Or you can manually iterate page-by-page
|
|
2378
|
+
let page = await client.pods.domains.list("pod_id");
|
|
2379
|
+
while (page.hasNextPage()) {
|
|
2380
|
+
page = page.getNextPage();
|
|
2381
|
+
}
|
|
2292
2382
|
|
|
2293
2383
|
```
|
|
2294
2384
|
</dd>
|
|
@@ -2450,7 +2540,7 @@ await client.pods.domains.delete("pod_id", "domain_id");
|
|
|
2450
2540
|
</details>
|
|
2451
2541
|
|
|
2452
2542
|
## 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.
|
|
2543
|
+
<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></code></summary>
|
|
2454
2544
|
<dl>
|
|
2455
2545
|
<dd>
|
|
2456
2546
|
|
|
@@ -2463,7 +2553,16 @@ await client.pods.domains.delete("pod_id", "domain_id");
|
|
|
2463
2553
|
<dd>
|
|
2464
2554
|
|
|
2465
2555
|
```typescript
|
|
2466
|
-
await client.pods.drafts.list("pod_id");
|
|
2556
|
+
const response = await client.pods.drafts.list("pod_id");
|
|
2557
|
+
for await (const item of response) {
|
|
2558
|
+
console.log(item);
|
|
2559
|
+
}
|
|
2560
|
+
|
|
2561
|
+
// Or you can manually iterate page-by-page
|
|
2562
|
+
let page = await client.pods.drafts.list("pod_id");
|
|
2563
|
+
while (page.hasNextPage()) {
|
|
2564
|
+
page = page.getNextPage();
|
|
2565
|
+
}
|
|
2467
2566
|
|
|
2468
2567
|
```
|
|
2469
2568
|
</dd>
|
|
@@ -2565,7 +2664,7 @@ await client.pods.drafts.get("pod_id", "draft_id");
|
|
|
2565
2664
|
</details>
|
|
2566
2665
|
|
|
2567
2666
|
## 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.
|
|
2667
|
+
<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></code></summary>
|
|
2569
2668
|
<dl>
|
|
2570
2669
|
<dd>
|
|
2571
2670
|
|
|
@@ -2578,7 +2677,16 @@ await client.pods.drafts.get("pod_id", "draft_id");
|
|
|
2578
2677
|
<dd>
|
|
2579
2678
|
|
|
2580
2679
|
```typescript
|
|
2581
|
-
await client.pods.inboxes.list("pod_id");
|
|
2680
|
+
const response = await client.pods.inboxes.list("pod_id");
|
|
2681
|
+
for await (const item of response) {
|
|
2682
|
+
console.log(item);
|
|
2683
|
+
}
|
|
2684
|
+
|
|
2685
|
+
// Or you can manually iterate page-by-page
|
|
2686
|
+
let page = await client.pods.inboxes.list("pod_id");
|
|
2687
|
+
while (page.hasNextPage()) {
|
|
2688
|
+
page = page.getNextPage();
|
|
2689
|
+
}
|
|
2582
2690
|
|
|
2583
2691
|
```
|
|
2584
2692
|
</dd>
|
|
@@ -2794,7 +2902,7 @@ await client.pods.inboxes.delete("pod_id", "inbox_id");
|
|
|
2794
2902
|
</details>
|
|
2795
2903
|
|
|
2796
2904
|
## 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.
|
|
2905
|
+
<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></code></summary>
|
|
2798
2906
|
<dl>
|
|
2799
2907
|
<dd>
|
|
2800
2908
|
|
|
@@ -2807,7 +2915,16 @@ await client.pods.inboxes.delete("pod_id", "inbox_id");
|
|
|
2807
2915
|
<dd>
|
|
2808
2916
|
|
|
2809
2917
|
```typescript
|
|
2810
|
-
await client.pods.threads.list("pod_id");
|
|
2918
|
+
const response = await client.pods.threads.list("pod_id");
|
|
2919
|
+
for await (const item of response) {
|
|
2920
|
+
console.log(item);
|
|
2921
|
+
}
|
|
2922
|
+
|
|
2923
|
+
// Or you can manually iterate page-by-page
|
|
2924
|
+
let page = await client.pods.threads.list("pod_id");
|
|
2925
|
+
while (page.hasNextPage()) {
|
|
2926
|
+
page = page.getNextPage();
|
|
2927
|
+
}
|
|
2811
2928
|
|
|
2812
2929
|
```
|
|
2813
2930
|
</dd>
|
|
@@ -2974,7 +3091,7 @@ await client.pods.threads.getAttachment("pod_id", "thread_id", "attachment_id");
|
|
|
2974
3091
|
</details>
|
|
2975
3092
|
|
|
2976
3093
|
## Threads
|
|
2977
|
-
<details><summary><code>client.threads.<a href="/src/api/resources/threads/client/Client.ts">list</a>({ ...params }) -> AgentMail.
|
|
3094
|
+
<details><summary><code>client.threads.<a href="/src/api/resources/threads/client/Client.ts">list</a>({ ...params }) -> core.Page<AgentMail.ThreadItem></code></summary>
|
|
2978
3095
|
<dl>
|
|
2979
3096
|
<dd>
|
|
2980
3097
|
|
|
@@ -2987,7 +3104,16 @@ await client.pods.threads.getAttachment("pod_id", "thread_id", "attachment_id");
|
|
|
2987
3104
|
<dd>
|
|
2988
3105
|
|
|
2989
3106
|
```typescript
|
|
2990
|
-
await client.threads.list();
|
|
3107
|
+
const response = await client.threads.list();
|
|
3108
|
+
for await (const item of response) {
|
|
3109
|
+
console.log(item);
|
|
3110
|
+
}
|
|
3111
|
+
|
|
3112
|
+
// Or you can manually iterate page-by-page
|
|
3113
|
+
let page = await client.threads.list();
|
|
3114
|
+
while (page.hasNextPage()) {
|
|
3115
|
+
page = page.getNextPage();
|
|
3116
|
+
}
|
|
2991
3117
|
|
|
2992
3118
|
```
|
|
2993
3119
|
</dd>
|