agentmail 0.1.0 → 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 -1
- package/dist/cjs/api/resources/apiKeys/client/Client.js +1 -1
- package/dist/cjs/api/resources/domains/client/Client.d.ts +1 -1
- package/dist/cjs/api/resources/domains/client/Client.js +1 -1
- package/dist/cjs/api/resources/drafts/client/Client.d.ts +1 -1
- package/dist/cjs/api/resources/drafts/client/Client.js +1 -1
- 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 -1
- package/dist/cjs/api/resources/inboxes/client/Client.js +1 -1
- package/dist/cjs/api/resources/inboxes/resources/drafts/client/Client.d.ts +1 -1
- package/dist/cjs/api/resources/inboxes/resources/drafts/client/Client.js +1 -1
- package/dist/cjs/api/resources/inboxes/resources/messages/client/Client.d.ts +1 -1
- package/dist/cjs/api/resources/inboxes/resources/messages/client/Client.js +1 -1
- package/dist/cjs/api/resources/inboxes/resources/threads/client/Client.d.ts +1 -1
- package/dist/cjs/api/resources/inboxes/resources/threads/client/Client.js +1 -1
- package/dist/cjs/api/resources/pods/client/Client.d.ts +1 -1
- package/dist/cjs/api/resources/pods/client/Client.js +1 -1
- package/dist/cjs/api/resources/pods/resources/domains/client/Client.d.ts +1 -1
- package/dist/cjs/api/resources/pods/resources/domains/client/Client.js +1 -1
- package/dist/cjs/api/resources/pods/resources/drafts/client/Client.d.ts +1 -1
- package/dist/cjs/api/resources/pods/resources/drafts/client/Client.js +1 -1
- package/dist/cjs/api/resources/pods/resources/inboxes/client/Client.d.ts +1 -1
- package/dist/cjs/api/resources/pods/resources/inboxes/client/Client.js +1 -1
- package/dist/cjs/api/resources/pods/resources/threads/client/Client.d.ts +1 -1
- package/dist/cjs/api/resources/pods/resources/threads/client/Client.js +1 -1
- package/dist/cjs/api/resources/threads/client/Client.d.ts +1 -1
- package/dist/cjs/api/resources/threads/client/Client.js +1 -1
- package/dist/cjs/api/resources/webhooks/client/Client.d.ts +1 -1
- package/dist/cjs/api/resources/webhooks/client/Client.js +1 -1
- package/dist/cjs/core/exports.d.ts +2 -0
- package/dist/cjs/core/exports.js +18 -0
- package/dist/cjs/core/pagination/Page.d.ts +7 -6
- package/dist/cjs/core/pagination/Page.js +1 -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 +0 -1
- package/dist/cjs/core/pagination/index.js +1 -3
- 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 -1
- package/dist/esm/api/resources/apiKeys/client/Client.mjs +1 -1
- package/dist/esm/api/resources/domains/client/Client.d.mts +1 -1
- package/dist/esm/api/resources/domains/client/Client.mjs +1 -1
- package/dist/esm/api/resources/drafts/client/Client.d.mts +1 -1
- package/dist/esm/api/resources/drafts/client/Client.mjs +1 -1
- 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 -1
- package/dist/esm/api/resources/inboxes/client/Client.mjs +1 -1
- package/dist/esm/api/resources/inboxes/resources/drafts/client/Client.d.mts +1 -1
- package/dist/esm/api/resources/inboxes/resources/drafts/client/Client.mjs +1 -1
- package/dist/esm/api/resources/inboxes/resources/messages/client/Client.d.mts +1 -1
- package/dist/esm/api/resources/inboxes/resources/messages/client/Client.mjs +1 -1
- package/dist/esm/api/resources/inboxes/resources/threads/client/Client.d.mts +1 -1
- package/dist/esm/api/resources/inboxes/resources/threads/client/Client.mjs +1 -1
- package/dist/esm/api/resources/pods/client/Client.d.mts +1 -1
- package/dist/esm/api/resources/pods/client/Client.mjs +1 -1
- package/dist/esm/api/resources/pods/resources/domains/client/Client.d.mts +1 -1
- package/dist/esm/api/resources/pods/resources/domains/client/Client.mjs +1 -1
- package/dist/esm/api/resources/pods/resources/drafts/client/Client.d.mts +1 -1
- package/dist/esm/api/resources/pods/resources/drafts/client/Client.mjs +1 -1
- package/dist/esm/api/resources/pods/resources/inboxes/client/Client.d.mts +1 -1
- package/dist/esm/api/resources/pods/resources/inboxes/client/Client.mjs +1 -1
- package/dist/esm/api/resources/pods/resources/threads/client/Client.d.mts +1 -1
- package/dist/esm/api/resources/pods/resources/threads/client/Client.mjs +1 -1
- package/dist/esm/api/resources/threads/client/Client.d.mts +1 -1
- package/dist/esm/api/resources/threads/client/Client.mjs +1 -1
- package/dist/esm/api/resources/webhooks/client/Client.d.mts +1 -1
- package/dist/esm/api/resources/webhooks/client/Client.mjs +1 -1
- package/dist/esm/core/exports.d.mts +2 -0
- package/dist/esm/core/exports.mjs +2 -0
- package/dist/esm/core/pagination/Page.d.mts +7 -6
- package/dist/esm/core/pagination/Page.mjs +1 -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 +0 -1
- package/dist/esm/core/pagination/index.mjs +0 -1
- 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 +84 -42
- package/dist/cjs/core/pagination/Pageable.d.ts +0 -14
- package/dist/cjs/core/pagination/Pageable.js +0 -10
- package/dist/esm/core/pagination/Pageable.d.mts +0 -14
- package/dist/esm/core/pagination/Pageable.mjs +0 -6
|
@@ -3,11 +3,13 @@ import * as core from "../../../../core/index.mjs";
|
|
|
3
3
|
import type * as serializers from "../../../index.mjs";
|
|
4
4
|
import { InboxId } from "../../inboxes/types/InboxId.mjs";
|
|
5
5
|
import { MessageId } from "../../messages/types/MessageId.mjs";
|
|
6
|
+
import { ThreadId } from "../../threads/types/ThreadId.mjs";
|
|
6
7
|
import { Timestamp } from "./Timestamp.mjs";
|
|
7
8
|
export declare const Send: core.serialization.ObjectSchema<serializers.Send.Raw, AgentMail.Send>;
|
|
8
9
|
export declare namespace Send {
|
|
9
10
|
interface Raw {
|
|
10
11
|
inbox_id: InboxId.Raw;
|
|
12
|
+
thread_id: ThreadId.Raw;
|
|
11
13
|
message_id: MessageId.Raw;
|
|
12
14
|
timestamp: Timestamp.Raw;
|
|
13
15
|
recipients: string[];
|
|
@@ -2,9 +2,11 @@
|
|
|
2
2
|
import * as core from "../../../../core/index.mjs";
|
|
3
3
|
import { InboxId } from "../../inboxes/types/InboxId.mjs";
|
|
4
4
|
import { MessageId } from "../../messages/types/MessageId.mjs";
|
|
5
|
+
import { ThreadId } from "../../threads/types/ThreadId.mjs";
|
|
5
6
|
import { Timestamp } from "./Timestamp.mjs";
|
|
6
7
|
export const Send = core.serialization.object({
|
|
7
8
|
inboxId: core.serialization.property("inbox_id", InboxId),
|
|
9
|
+
threadId: core.serialization.property("thread_id", ThreadId),
|
|
8
10
|
messageId: core.serialization.property("message_id", MessageId),
|
|
9
11
|
timestamp: Timestamp,
|
|
10
12
|
recipients: core.serialization.list(core.serialization.string()),
|
package/dist/esm/version.d.mts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "0.1.
|
|
1
|
+
export declare const SDK_VERSION = "0.1.1";
|
package/dist/esm/version.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const SDK_VERSION = "0.1.
|
|
1
|
+
export const SDK_VERSION = "0.1.1";
|
package/package.json
CHANGED
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 }) -> core.Page<AgentMail.Inbox></code></summary>
|
|
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,8 +13,8 @@
|
|
|
13
13
|
<dd>
|
|
14
14
|
|
|
15
15
|
```typescript
|
|
16
|
-
const
|
|
17
|
-
for await (const item of
|
|
16
|
+
const pageableResponse = await client.inboxes.list();
|
|
17
|
+
for await (const item of pageableResponse) {
|
|
18
18
|
console.log(item);
|
|
19
19
|
}
|
|
20
20
|
|
|
@@ -24,6 +24,9 @@ while (page.hasNextPage()) {
|
|
|
24
24
|
page = page.getNextPage();
|
|
25
25
|
}
|
|
26
26
|
|
|
27
|
+
// You can also access the underlying response
|
|
28
|
+
const response = page.response;
|
|
29
|
+
|
|
27
30
|
```
|
|
28
31
|
</dd>
|
|
29
32
|
</dl>
|
|
@@ -206,7 +209,7 @@ await client.inboxes.delete("inbox_id");
|
|
|
206
209
|
</details>
|
|
207
210
|
|
|
208
211
|
## Pods
|
|
209
|
-
<details><summary><code>client.pods.<a href="/src/api/resources/pods/client/Client.ts">list</a>({ ...params }) -> core.Page<AgentMail.Pod></code></summary>
|
|
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>
|
|
210
213
|
<dl>
|
|
211
214
|
<dd>
|
|
212
215
|
|
|
@@ -219,8 +222,8 @@ await client.inboxes.delete("inbox_id");
|
|
|
219
222
|
<dd>
|
|
220
223
|
|
|
221
224
|
```typescript
|
|
222
|
-
const
|
|
223
|
-
for await (const item of
|
|
225
|
+
const pageableResponse = await client.pods.list();
|
|
226
|
+
for await (const item of pageableResponse) {
|
|
224
227
|
console.log(item);
|
|
225
228
|
}
|
|
226
229
|
|
|
@@ -230,6 +233,9 @@ while (page.hasNextPage()) {
|
|
|
230
233
|
page = page.getNextPage();
|
|
231
234
|
}
|
|
232
235
|
|
|
236
|
+
// You can also access the underlying response
|
|
237
|
+
const response = page.response;
|
|
238
|
+
|
|
233
239
|
```
|
|
234
240
|
</dd>
|
|
235
241
|
</dl>
|
|
@@ -412,7 +418,7 @@ await client.pods.delete("pod_id");
|
|
|
412
418
|
</details>
|
|
413
419
|
|
|
414
420
|
## Webhooks
|
|
415
|
-
<details><summary><code>client.webhooks.<a href="/src/api/resources/webhooks/client/Client.ts">list</a>({ ...params }) -> core.Page<AgentMail.Webhook></code></summary>
|
|
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>
|
|
416
422
|
<dl>
|
|
417
423
|
<dd>
|
|
418
424
|
|
|
@@ -425,8 +431,8 @@ await client.pods.delete("pod_id");
|
|
|
425
431
|
<dd>
|
|
426
432
|
|
|
427
433
|
```typescript
|
|
428
|
-
const
|
|
429
|
-
for await (const item of
|
|
434
|
+
const pageableResponse = await client.webhooks.list();
|
|
435
|
+
for await (const item of pageableResponse) {
|
|
430
436
|
console.log(item);
|
|
431
437
|
}
|
|
432
438
|
|
|
@@ -436,6 +442,9 @@ while (page.hasNextPage()) {
|
|
|
436
442
|
page = page.getNextPage();
|
|
437
443
|
}
|
|
438
444
|
|
|
445
|
+
// You can also access the underlying response
|
|
446
|
+
const response = page.response;
|
|
447
|
+
|
|
439
448
|
```
|
|
440
449
|
</dd>
|
|
441
450
|
</dl>
|
|
@@ -621,7 +630,7 @@ await client.webhooks.delete("webhook_id");
|
|
|
621
630
|
</details>
|
|
622
631
|
|
|
623
632
|
## ApiKeys
|
|
624
|
-
<details><summary><code>client.apiKeys.<a href="/src/api/resources/apiKeys/client/Client.ts">list</a>({ ...params }) -> core.Page<AgentMail.ApiKey></code></summary>
|
|
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>
|
|
625
634
|
<dl>
|
|
626
635
|
<dd>
|
|
627
636
|
|
|
@@ -634,8 +643,8 @@ await client.webhooks.delete("webhook_id");
|
|
|
634
643
|
<dd>
|
|
635
644
|
|
|
636
645
|
```typescript
|
|
637
|
-
const
|
|
638
|
-
for await (const item of
|
|
646
|
+
const pageableResponse = await client.apiKeys.list();
|
|
647
|
+
for await (const item of pageableResponse) {
|
|
639
648
|
console.log(item);
|
|
640
649
|
}
|
|
641
650
|
|
|
@@ -645,6 +654,9 @@ while (page.hasNextPage()) {
|
|
|
645
654
|
page = page.getNextPage();
|
|
646
655
|
}
|
|
647
656
|
|
|
657
|
+
// You can also access the underlying response
|
|
658
|
+
const response = page.response;
|
|
659
|
+
|
|
648
660
|
```
|
|
649
661
|
</dd>
|
|
650
662
|
</dl>
|
|
@@ -780,7 +792,7 @@ await client.apiKeys.delete("api_key");
|
|
|
780
792
|
</details>
|
|
781
793
|
|
|
782
794
|
## Domains
|
|
783
|
-
<details><summary><code>client.domains.<a href="/src/api/resources/domains/client/Client.ts">list</a>({ ...params }) -> core.Page<AgentMail.DomainSummary></code></summary>
|
|
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>
|
|
784
796
|
<dl>
|
|
785
797
|
<dd>
|
|
786
798
|
|
|
@@ -793,8 +805,8 @@ await client.apiKeys.delete("api_key");
|
|
|
793
805
|
<dd>
|
|
794
806
|
|
|
795
807
|
```typescript
|
|
796
|
-
const
|
|
797
|
-
for await (const item of
|
|
808
|
+
const pageableResponse = await client.domains.list();
|
|
809
|
+
for await (const item of pageableResponse) {
|
|
798
810
|
console.log(item);
|
|
799
811
|
}
|
|
800
812
|
|
|
@@ -804,6 +816,9 @@ while (page.hasNextPage()) {
|
|
|
804
816
|
page = page.getNextPage();
|
|
805
817
|
}
|
|
806
818
|
|
|
819
|
+
// You can also access the underlying response
|
|
820
|
+
const response = page.response;
|
|
821
|
+
|
|
807
822
|
```
|
|
808
823
|
</dd>
|
|
809
824
|
</dl>
|
|
@@ -1087,7 +1102,7 @@ await client.domains.verify("domain_id");
|
|
|
1087
1102
|
</details>
|
|
1088
1103
|
|
|
1089
1104
|
## Drafts
|
|
1090
|
-
<details><summary><code>client.drafts.<a href="/src/api/resources/drafts/client/Client.ts">list</a>({ ...params }) -> core.Page<AgentMail.DraftItem></code></summary>
|
|
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>
|
|
1091
1106
|
<dl>
|
|
1092
1107
|
<dd>
|
|
1093
1108
|
|
|
@@ -1100,8 +1115,8 @@ await client.domains.verify("domain_id");
|
|
|
1100
1115
|
<dd>
|
|
1101
1116
|
|
|
1102
1117
|
```typescript
|
|
1103
|
-
const
|
|
1104
|
-
for await (const item of
|
|
1118
|
+
const pageableResponse = await client.drafts.list();
|
|
1119
|
+
for await (const item of pageableResponse) {
|
|
1105
1120
|
console.log(item);
|
|
1106
1121
|
}
|
|
1107
1122
|
|
|
@@ -1111,6 +1126,9 @@ while (page.hasNextPage()) {
|
|
|
1111
1126
|
page = page.getNextPage();
|
|
1112
1127
|
}
|
|
1113
1128
|
|
|
1129
|
+
// You can also access the underlying response
|
|
1130
|
+
const response = page.response;
|
|
1131
|
+
|
|
1114
1132
|
```
|
|
1115
1133
|
</dd>
|
|
1116
1134
|
</dl>
|
|
@@ -1195,7 +1213,7 @@ await client.drafts.get("draft_id");
|
|
|
1195
1213
|
</details>
|
|
1196
1214
|
|
|
1197
1215
|
## Inboxes Drafts
|
|
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>
|
|
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>
|
|
1199
1217
|
<dl>
|
|
1200
1218
|
<dd>
|
|
1201
1219
|
|
|
@@ -1208,8 +1226,8 @@ await client.drafts.get("draft_id");
|
|
|
1208
1226
|
<dd>
|
|
1209
1227
|
|
|
1210
1228
|
```typescript
|
|
1211
|
-
const
|
|
1212
|
-
for await (const item of
|
|
1229
|
+
const pageableResponse = await client.inboxes.drafts.list("inbox_id");
|
|
1230
|
+
for await (const item of pageableResponse) {
|
|
1213
1231
|
console.log(item);
|
|
1214
1232
|
}
|
|
1215
1233
|
|
|
@@ -1219,6 +1237,9 @@ while (page.hasNextPage()) {
|
|
|
1219
1237
|
page = page.getNextPage();
|
|
1220
1238
|
}
|
|
1221
1239
|
|
|
1240
|
+
// You can also access the underlying response
|
|
1241
|
+
const response = page.response;
|
|
1242
|
+
|
|
1222
1243
|
```
|
|
1223
1244
|
</dd>
|
|
1224
1245
|
</dl>
|
|
@@ -1563,7 +1584,7 @@ await client.inboxes.drafts.delete("inbox_id", "draft_id");
|
|
|
1563
1584
|
</details>
|
|
1564
1585
|
|
|
1565
1586
|
## Inboxes Messages
|
|
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>
|
|
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>
|
|
1567
1588
|
<dl>
|
|
1568
1589
|
<dd>
|
|
1569
1590
|
|
|
@@ -1576,8 +1597,8 @@ await client.inboxes.drafts.delete("inbox_id", "draft_id");
|
|
|
1576
1597
|
<dd>
|
|
1577
1598
|
|
|
1578
1599
|
```typescript
|
|
1579
|
-
const
|
|
1580
|
-
for await (const item of
|
|
1600
|
+
const pageableResponse = await client.inboxes.messages.list("inbox_id");
|
|
1601
|
+
for await (const item of pageableResponse) {
|
|
1581
1602
|
console.log(item);
|
|
1582
1603
|
}
|
|
1583
1604
|
|
|
@@ -1587,6 +1608,9 @@ while (page.hasNextPage()) {
|
|
|
1587
1608
|
page = page.getNextPage();
|
|
1588
1609
|
}
|
|
1589
1610
|
|
|
1611
|
+
// You can also access the underlying response
|
|
1612
|
+
const response = page.response;
|
|
1613
|
+
|
|
1590
1614
|
```
|
|
1591
1615
|
</dd>
|
|
1592
1616
|
</dl>
|
|
@@ -2057,7 +2081,7 @@ await client.inboxes.metrics.get("inbox_id", {
|
|
|
2057
2081
|
</details>
|
|
2058
2082
|
|
|
2059
2083
|
## Inboxes Threads
|
|
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>
|
|
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>
|
|
2061
2085
|
<dl>
|
|
2062
2086
|
<dd>
|
|
2063
2087
|
|
|
@@ -2070,8 +2094,8 @@ await client.inboxes.metrics.get("inbox_id", {
|
|
|
2070
2094
|
<dd>
|
|
2071
2095
|
|
|
2072
2096
|
```typescript
|
|
2073
|
-
const
|
|
2074
|
-
for await (const item of
|
|
2097
|
+
const pageableResponse = await client.inboxes.threads.list("inbox_id");
|
|
2098
|
+
for await (const item of pageableResponse) {
|
|
2075
2099
|
console.log(item);
|
|
2076
2100
|
}
|
|
2077
2101
|
|
|
@@ -2081,6 +2105,9 @@ while (page.hasNextPage()) {
|
|
|
2081
2105
|
page = page.getNextPage();
|
|
2082
2106
|
}
|
|
2083
2107
|
|
|
2108
|
+
// You can also access the underlying response
|
|
2109
|
+
const response = page.response;
|
|
2110
|
+
|
|
2084
2111
|
```
|
|
2085
2112
|
</dd>
|
|
2086
2113
|
</dl>
|
|
@@ -2356,7 +2383,7 @@ await client.metrics.list({
|
|
|
2356
2383
|
</details>
|
|
2357
2384
|
|
|
2358
2385
|
## Pods Domains
|
|
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>
|
|
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>
|
|
2360
2387
|
<dl>
|
|
2361
2388
|
<dd>
|
|
2362
2389
|
|
|
@@ -2369,8 +2396,8 @@ await client.metrics.list({
|
|
|
2369
2396
|
<dd>
|
|
2370
2397
|
|
|
2371
2398
|
```typescript
|
|
2372
|
-
const
|
|
2373
|
-
for await (const item of
|
|
2399
|
+
const pageableResponse = await client.pods.domains.list("pod_id");
|
|
2400
|
+
for await (const item of pageableResponse) {
|
|
2374
2401
|
console.log(item);
|
|
2375
2402
|
}
|
|
2376
2403
|
|
|
@@ -2380,6 +2407,9 @@ while (page.hasNextPage()) {
|
|
|
2380
2407
|
page = page.getNextPage();
|
|
2381
2408
|
}
|
|
2382
2409
|
|
|
2410
|
+
// You can also access the underlying response
|
|
2411
|
+
const response = page.response;
|
|
2412
|
+
|
|
2383
2413
|
```
|
|
2384
2414
|
</dd>
|
|
2385
2415
|
</dl>
|
|
@@ -2540,7 +2570,7 @@ await client.pods.domains.delete("pod_id", "domain_id");
|
|
|
2540
2570
|
</details>
|
|
2541
2571
|
|
|
2542
2572
|
## Pods Drafts
|
|
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>
|
|
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>
|
|
2544
2574
|
<dl>
|
|
2545
2575
|
<dd>
|
|
2546
2576
|
|
|
@@ -2553,8 +2583,8 @@ await client.pods.domains.delete("pod_id", "domain_id");
|
|
|
2553
2583
|
<dd>
|
|
2554
2584
|
|
|
2555
2585
|
```typescript
|
|
2556
|
-
const
|
|
2557
|
-
for await (const item of
|
|
2586
|
+
const pageableResponse = await client.pods.drafts.list("pod_id");
|
|
2587
|
+
for await (const item of pageableResponse) {
|
|
2558
2588
|
console.log(item);
|
|
2559
2589
|
}
|
|
2560
2590
|
|
|
@@ -2564,6 +2594,9 @@ while (page.hasNextPage()) {
|
|
|
2564
2594
|
page = page.getNextPage();
|
|
2565
2595
|
}
|
|
2566
2596
|
|
|
2597
|
+
// You can also access the underlying response
|
|
2598
|
+
const response = page.response;
|
|
2599
|
+
|
|
2567
2600
|
```
|
|
2568
2601
|
</dd>
|
|
2569
2602
|
</dl>
|
|
@@ -2664,7 +2697,7 @@ await client.pods.drafts.get("pod_id", "draft_id");
|
|
|
2664
2697
|
</details>
|
|
2665
2698
|
|
|
2666
2699
|
## Pods Inboxes
|
|
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>
|
|
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>
|
|
2668
2701
|
<dl>
|
|
2669
2702
|
<dd>
|
|
2670
2703
|
|
|
@@ -2677,8 +2710,8 @@ await client.pods.drafts.get("pod_id", "draft_id");
|
|
|
2677
2710
|
<dd>
|
|
2678
2711
|
|
|
2679
2712
|
```typescript
|
|
2680
|
-
const
|
|
2681
|
-
for await (const item of
|
|
2713
|
+
const pageableResponse = await client.pods.inboxes.list("pod_id");
|
|
2714
|
+
for await (const item of pageableResponse) {
|
|
2682
2715
|
console.log(item);
|
|
2683
2716
|
}
|
|
2684
2717
|
|
|
@@ -2688,6 +2721,9 @@ while (page.hasNextPage()) {
|
|
|
2688
2721
|
page = page.getNextPage();
|
|
2689
2722
|
}
|
|
2690
2723
|
|
|
2724
|
+
// You can also access the underlying response
|
|
2725
|
+
const response = page.response;
|
|
2726
|
+
|
|
2691
2727
|
```
|
|
2692
2728
|
</dd>
|
|
2693
2729
|
</dl>
|
|
@@ -2902,7 +2938,7 @@ await client.pods.inboxes.delete("pod_id", "inbox_id");
|
|
|
2902
2938
|
</details>
|
|
2903
2939
|
|
|
2904
2940
|
## Pods Threads
|
|
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>
|
|
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>
|
|
2906
2942
|
<dl>
|
|
2907
2943
|
<dd>
|
|
2908
2944
|
|
|
@@ -2915,8 +2951,8 @@ await client.pods.inboxes.delete("pod_id", "inbox_id");
|
|
|
2915
2951
|
<dd>
|
|
2916
2952
|
|
|
2917
2953
|
```typescript
|
|
2918
|
-
const
|
|
2919
|
-
for await (const item of
|
|
2954
|
+
const pageableResponse = await client.pods.threads.list("pod_id");
|
|
2955
|
+
for await (const item of pageableResponse) {
|
|
2920
2956
|
console.log(item);
|
|
2921
2957
|
}
|
|
2922
2958
|
|
|
@@ -2926,6 +2962,9 @@ while (page.hasNextPage()) {
|
|
|
2926
2962
|
page = page.getNextPage();
|
|
2927
2963
|
}
|
|
2928
2964
|
|
|
2965
|
+
// You can also access the underlying response
|
|
2966
|
+
const response = page.response;
|
|
2967
|
+
|
|
2929
2968
|
```
|
|
2930
2969
|
</dd>
|
|
2931
2970
|
</dl>
|
|
@@ -3091,7 +3130,7 @@ await client.pods.threads.getAttachment("pod_id", "thread_id", "attachment_id");
|
|
|
3091
3130
|
</details>
|
|
3092
3131
|
|
|
3093
3132
|
## Threads
|
|
3094
|
-
<details><summary><code>client.threads.<a href="/src/api/resources/threads/client/Client.ts">list</a>({ ...params }) -> core.Page<AgentMail.ThreadItem></code></summary>
|
|
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>
|
|
3095
3134
|
<dl>
|
|
3096
3135
|
<dd>
|
|
3097
3136
|
|
|
@@ -3104,8 +3143,8 @@ await client.pods.threads.getAttachment("pod_id", "thread_id", "attachment_id");
|
|
|
3104
3143
|
<dd>
|
|
3105
3144
|
|
|
3106
3145
|
```typescript
|
|
3107
|
-
const
|
|
3108
|
-
for await (const item of
|
|
3146
|
+
const pageableResponse = await client.threads.list();
|
|
3147
|
+
for await (const item of pageableResponse) {
|
|
3109
3148
|
console.log(item);
|
|
3110
3149
|
}
|
|
3111
3150
|
|
|
@@ -3115,6 +3154,9 @@ while (page.hasNextPage()) {
|
|
|
3115
3154
|
page = page.getNextPage();
|
|
3116
3155
|
}
|
|
3117
3156
|
|
|
3157
|
+
// You can also access the underlying response
|
|
3158
|
+
const response = page.response;
|
|
3159
|
+
|
|
3118
3160
|
```
|
|
3119
3161
|
</dd>
|
|
3120
3162
|
</dl>
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import type { RawResponse } from "../fetcher/index.js";
|
|
2
|
-
import { Page } from "./Page.js";
|
|
3
|
-
export declare namespace Pageable {
|
|
4
|
-
interface Args<Response, Item> {
|
|
5
|
-
response: Response;
|
|
6
|
-
rawResponse: RawResponse;
|
|
7
|
-
hasNextPage: (response: Response) => boolean;
|
|
8
|
-
getItems: (response: Response) => Item[];
|
|
9
|
-
loadPage: (response: Response) => Promise<Response>;
|
|
10
|
-
}
|
|
11
|
-
}
|
|
12
|
-
export declare class Pageable<R, T> extends Page<T> {
|
|
13
|
-
constructor(args: Pageable.Args<R, T>);
|
|
14
|
-
}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.Pageable = void 0;
|
|
4
|
-
const Page_js_1 = require("./Page.js");
|
|
5
|
-
class Pageable extends Page_js_1.Page {
|
|
6
|
-
constructor(args) {
|
|
7
|
-
super(args);
|
|
8
|
-
}
|
|
9
|
-
}
|
|
10
|
-
exports.Pageable = Pageable;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import type { RawResponse } from "../fetcher/index.mjs";
|
|
2
|
-
import { Page } from "./Page.mjs";
|
|
3
|
-
export declare namespace Pageable {
|
|
4
|
-
interface Args<Response, Item> {
|
|
5
|
-
response: Response;
|
|
6
|
-
rawResponse: RawResponse;
|
|
7
|
-
hasNextPage: (response: Response) => boolean;
|
|
8
|
-
getItems: (response: Response) => Item[];
|
|
9
|
-
loadPage: (response: Response) => Promise<Response>;
|
|
10
|
-
}
|
|
11
|
-
}
|
|
12
|
-
export declare class Pageable<R, T> extends Page<T> {
|
|
13
|
-
constructor(args: Pageable.Args<R, T>);
|
|
14
|
-
}
|