agentmail 0.2.17 → 0.2.18
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 +0 -681
- package/dist/cjs/BaseClient.js +2 -2
- package/dist/cjs/core/fetcher/Fetcher.js +7 -1
- package/dist/cjs/core/schemas/builders/list/list.js +12 -17
- package/dist/cjs/core/schemas/builders/object/object.js +102 -40
- package/dist/cjs/core/schemas/builders/object-like/getObjectLikeUtils.js +10 -3
- package/dist/cjs/core/schemas/builders/record/record.js +26 -25
- package/dist/cjs/core/schemas/builders/union/union.js +9 -12
- package/dist/cjs/core/schemas/utils/isPlainObject.js +4 -6
- package/dist/cjs/version.d.ts +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/esm/BaseClient.mjs +2 -2
- package/dist/esm/core/fetcher/Fetcher.mjs +7 -1
- package/dist/esm/core/schemas/builders/list/list.mjs +12 -17
- package/dist/esm/core/schemas/builders/object/object.mjs +102 -40
- package/dist/esm/core/schemas/builders/object-like/getObjectLikeUtils.mjs +10 -3
- package/dist/esm/core/schemas/builders/record/record.mjs +26 -25
- package/dist/esm/core/schemas/builders/union/union.mjs +9 -12
- package/dist/esm/core/schemas/utils/isPlainObject.mjs +4 -6
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/dist/llms-full.txt +141 -260
- package/dist/llms.txt +1 -0
- package/package.json +2 -2
package/dist/llms-full.txt
CHANGED
|
@@ -8454,6 +8454,56 @@ Organizations evaluating AgentMail can [request SOC 2 documentation](mailto:secu
|
|
|
8454
8454
|
***
|
|
8455
8455
|
|
|
8456
8456
|
|
|
8457
|
+
***
|
|
8458
|
+
|
|
8459
|
+
title: Spam & Virus Detection
|
|
8460
|
+
slug: spam-virus-detection
|
|
8461
|
+
description: How AgentMail automatically scans incoming emails for spam and viruses.
|
|
8462
|
+
------------------------------------------------------------------------------------
|
|
8463
|
+
|
|
8464
|
+
AgentMail automatically scans every inbound message for spam and viruses before it reaches your inbox. This happens transparently — there is nothing you need to configure.
|
|
8465
|
+
|
|
8466
|
+
## Virus Detection
|
|
8467
|
+
|
|
8468
|
+
Emails that contain viruses or malware are **rejected at the gateway** and are never stored. Your inboxes will never contain a message flagged as infected. This protects your agents from processing potentially dangerous content.
|
|
8469
|
+
|
|
8470
|
+
## Spam Detection
|
|
8471
|
+
|
|
8472
|
+
Emails identified as spam are still **stored** in your inbox so you never lose a message that might be a false positive. However, they are **excluded from API results by default** to keep your agent's workflow clean.
|
|
8473
|
+
|
|
8474
|
+
When you call the [List Threads](/api-reference/inboxes/threads/list) or [List Messages](/api-reference/inboxes/messages/list) endpoint, spam messages are filtered out unless you explicitly request them.
|
|
8475
|
+
|
|
8476
|
+
## Accessing Spam Threads
|
|
8477
|
+
|
|
8478
|
+
To include spam in your results, pass the `include_spam` (`includeSpam` in TypeScript) parameter when listing threads.
|
|
8479
|
+
|
|
8480
|
+
<CodeBlocks>
|
|
8481
|
+
```typescript title="TypeScript"
|
|
8482
|
+
const threads = await client.threads.list({
|
|
8483
|
+
includeSpam: true,
|
|
8484
|
+
});
|
|
8485
|
+
```
|
|
8486
|
+
|
|
8487
|
+
```python
|
|
8488
|
+
threads = client.threads.list(
|
|
8489
|
+
include_spam=True,
|
|
8490
|
+
)
|
|
8491
|
+
```
|
|
8492
|
+
</CodeBlocks>
|
|
8493
|
+
|
|
8494
|
+
Each thread object includes a `spam` label indicating whether it was flagged as spam, so you can handle flagged threads differently in your application logic.
|
|
8495
|
+
|
|
8496
|
+
```json title="Example spam thread"
|
|
8497
|
+
{
|
|
8498
|
+
"thread_id": "thread_abc123",
|
|
8499
|
+
"subject": "You have won a prize!",
|
|
8500
|
+
"labels": ["spam"],
|
|
8501
|
+
"from": "suspicious@example.com",
|
|
8502
|
+
"to": ["your-agent@your-domain.com"]
|
|
8503
|
+
}
|
|
8504
|
+
```
|
|
8505
|
+
|
|
8506
|
+
|
|
8457
8507
|
***
|
|
8458
8508
|
|
|
8459
8509
|
title: API Welcome
|
|
@@ -8608,11 +8658,10 @@ components:
|
|
|
8608
8658
|
## SDK Code Examples
|
|
8609
8659
|
|
|
8610
8660
|
```typescript
|
|
8611
|
-
import { AgentMailClient
|
|
8661
|
+
import { AgentMailClient } from "agentmail";
|
|
8612
8662
|
|
|
8613
8663
|
async function main() {
|
|
8614
8664
|
const client = new AgentMailClient({
|
|
8615
|
-
environment: AgentMailEnvironment.Prod,
|
|
8616
8665
|
apiKey: "YOUR_TOKEN_HERE",
|
|
8617
8666
|
});
|
|
8618
8667
|
await client.inboxes.list({});
|
|
@@ -8623,10 +8672,8 @@ main();
|
|
|
8623
8672
|
|
|
8624
8673
|
```python
|
|
8625
8674
|
from agentmail import AgentMail
|
|
8626
|
-
from agentmail.environment import AgentMailEnvironment
|
|
8627
8675
|
|
|
8628
8676
|
client = AgentMail(
|
|
8629
|
-
environment=AgentMailEnvironment.PROD,
|
|
8630
8677
|
api_key="YOUR_TOKEN_HERE"
|
|
8631
8678
|
)
|
|
8632
8679
|
|
|
@@ -8838,11 +8885,10 @@ components:
|
|
|
8838
8885
|
## SDK Code Examples
|
|
8839
8886
|
|
|
8840
8887
|
```typescript
|
|
8841
|
-
import { AgentMailClient
|
|
8888
|
+
import { AgentMailClient } from "agentmail";
|
|
8842
8889
|
|
|
8843
8890
|
async function main() {
|
|
8844
8891
|
const client = new AgentMailClient({
|
|
8845
|
-
environment: AgentMailEnvironment.Prod,
|
|
8846
8892
|
apiKey: "YOUR_TOKEN_HERE",
|
|
8847
8893
|
});
|
|
8848
8894
|
await client.inboxes.get("inbox_id");
|
|
@@ -8853,10 +8899,8 @@ main();
|
|
|
8853
8899
|
|
|
8854
8900
|
```python
|
|
8855
8901
|
from agentmail import AgentMail
|
|
8856
|
-
from agentmail.environment import AgentMailEnvironment
|
|
8857
8902
|
|
|
8858
8903
|
client = AgentMail(
|
|
8859
|
-
environment=AgentMailEnvironment.PROD,
|
|
8860
8904
|
api_key="YOUR_TOKEN_HERE"
|
|
8861
8905
|
)
|
|
8862
8906
|
|
|
@@ -9086,11 +9130,10 @@ components:
|
|
|
9086
9130
|
## SDK Code Examples
|
|
9087
9131
|
|
|
9088
9132
|
```typescript
|
|
9089
|
-
import { AgentMailClient
|
|
9133
|
+
import { AgentMailClient } from "agentmail";
|
|
9090
9134
|
|
|
9091
9135
|
async function main() {
|
|
9092
9136
|
const client = new AgentMailClient({
|
|
9093
|
-
environment: AgentMailEnvironment.Prod,
|
|
9094
9137
|
apiKey: "YOUR_TOKEN_HERE",
|
|
9095
9138
|
});
|
|
9096
9139
|
await client.inboxes.create({
|
|
@@ -9104,10 +9147,8 @@ main();
|
|
|
9104
9147
|
|
|
9105
9148
|
```python
|
|
9106
9149
|
from agentmail import AgentMail
|
|
9107
|
-
from agentmail.environment import AgentMailEnvironment
|
|
9108
9150
|
|
|
9109
9151
|
client = AgentMail(
|
|
9110
|
-
environment=AgentMailEnvironment.PROD,
|
|
9111
9152
|
api_key="YOUR_TOKEN_HERE"
|
|
9112
9153
|
)
|
|
9113
9154
|
|
|
@@ -9345,11 +9386,10 @@ components:
|
|
|
9345
9386
|
## SDK Code Examples
|
|
9346
9387
|
|
|
9347
9388
|
```typescript
|
|
9348
|
-
import { AgentMailClient
|
|
9389
|
+
import { AgentMailClient } from "agentmail";
|
|
9349
9390
|
|
|
9350
9391
|
async function main() {
|
|
9351
9392
|
const client = new AgentMailClient({
|
|
9352
|
-
environment: AgentMailEnvironment.Prod,
|
|
9353
9393
|
apiKey: "YOUR_TOKEN_HERE",
|
|
9354
9394
|
});
|
|
9355
9395
|
await client.inboxes.update("inbox_id", {
|
|
@@ -9362,10 +9402,8 @@ main();
|
|
|
9362
9402
|
|
|
9363
9403
|
```python
|
|
9364
9404
|
from agentmail import AgentMail
|
|
9365
|
-
from agentmail.environment import AgentMailEnvironment
|
|
9366
9405
|
|
|
9367
9406
|
client = AgentMail(
|
|
9368
|
-
environment=AgentMailEnvironment.PROD,
|
|
9369
9407
|
api_key="YOUR_TOKEN_HERE"
|
|
9370
9408
|
)
|
|
9371
9409
|
|
|
@@ -9548,11 +9586,10 @@ components:
|
|
|
9548
9586
|
## SDK Code Examples
|
|
9549
9587
|
|
|
9550
9588
|
```typescript
|
|
9551
|
-
import { AgentMailClient
|
|
9589
|
+
import { AgentMailClient } from "agentmail";
|
|
9552
9590
|
|
|
9553
9591
|
async function main() {
|
|
9554
9592
|
const client = new AgentMailClient({
|
|
9555
|
-
environment: AgentMailEnvironment.Prod,
|
|
9556
9593
|
apiKey: "YOUR_TOKEN_HERE",
|
|
9557
9594
|
});
|
|
9558
9595
|
await client.inboxes.delete("inbox_id");
|
|
@@ -9563,10 +9600,8 @@ main();
|
|
|
9563
9600
|
|
|
9564
9601
|
```python
|
|
9565
9602
|
from agentmail import AgentMail
|
|
9566
|
-
from agentmail.environment import AgentMailEnvironment
|
|
9567
9603
|
|
|
9568
9604
|
client = AgentMail(
|
|
9569
|
-
environment=AgentMailEnvironment.PROD,
|
|
9570
9605
|
api_key="YOUR_TOKEN_HERE"
|
|
9571
9606
|
)
|
|
9572
9607
|
|
|
@@ -9927,11 +9962,10 @@ components:
|
|
|
9927
9962
|
## SDK Code Examples
|
|
9928
9963
|
|
|
9929
9964
|
```typescript
|
|
9930
|
-
import { AgentMailClient
|
|
9965
|
+
import { AgentMailClient } from "agentmail";
|
|
9931
9966
|
|
|
9932
9967
|
async function main() {
|
|
9933
9968
|
const client = new AgentMailClient({
|
|
9934
|
-
environment: AgentMailEnvironment.Prod,
|
|
9935
9969
|
apiKey: "YOUR_TOKEN_HERE",
|
|
9936
9970
|
});
|
|
9937
9971
|
await client.inboxes.threads.list("inbox_id", {});
|
|
@@ -9942,10 +9976,8 @@ main();
|
|
|
9942
9976
|
|
|
9943
9977
|
```python
|
|
9944
9978
|
from agentmail import AgentMail
|
|
9945
|
-
from agentmail.environment import AgentMailEnvironment
|
|
9946
9979
|
|
|
9947
9980
|
client = AgentMail(
|
|
9948
|
-
environment=AgentMailEnvironment.PROD,
|
|
9949
9981
|
api_key="YOUR_TOKEN_HERE"
|
|
9950
9982
|
)
|
|
9951
9983
|
|
|
@@ -10384,11 +10416,10 @@ components:
|
|
|
10384
10416
|
## SDK Code Examples
|
|
10385
10417
|
|
|
10386
10418
|
```typescript
|
|
10387
|
-
import { AgentMailClient
|
|
10419
|
+
import { AgentMailClient } from "agentmail";
|
|
10388
10420
|
|
|
10389
10421
|
async function main() {
|
|
10390
10422
|
const client = new AgentMailClient({
|
|
10391
|
-
environment: AgentMailEnvironment.Prod,
|
|
10392
10423
|
apiKey: "YOUR_TOKEN_HERE",
|
|
10393
10424
|
});
|
|
10394
10425
|
await client.inboxes.threads.get("inbox_id", "thread_id");
|
|
@@ -10399,10 +10430,8 @@ main();
|
|
|
10399
10430
|
|
|
10400
10431
|
```python
|
|
10401
10432
|
from agentmail import AgentMail
|
|
10402
|
-
from agentmail.environment import AgentMailEnvironment
|
|
10403
10433
|
|
|
10404
10434
|
client = AgentMail(
|
|
10405
|
-
environment=AgentMailEnvironment.PROD,
|
|
10406
10435
|
api_key="YOUR_TOKEN_HERE"
|
|
10407
10436
|
)
|
|
10408
10437
|
|
|
@@ -10623,11 +10652,10 @@ components:
|
|
|
10623
10652
|
## SDK Code Examples
|
|
10624
10653
|
|
|
10625
10654
|
```typescript
|
|
10626
|
-
import { AgentMailClient
|
|
10655
|
+
import { AgentMailClient } from "agentmail";
|
|
10627
10656
|
|
|
10628
10657
|
async function main() {
|
|
10629
10658
|
const client = new AgentMailClient({
|
|
10630
|
-
environment: AgentMailEnvironment.Prod,
|
|
10631
10659
|
apiKey: "YOUR_TOKEN_HERE",
|
|
10632
10660
|
});
|
|
10633
10661
|
await client.inboxes.threads.getAttachment("inbox_id", "thread_id", "attachment_id");
|
|
@@ -10638,10 +10666,8 @@ main();
|
|
|
10638
10666
|
|
|
10639
10667
|
```python
|
|
10640
10668
|
from agentmail import AgentMail
|
|
10641
|
-
from agentmail.environment import AgentMailEnvironment
|
|
10642
10669
|
|
|
10643
10670
|
client = AgentMail(
|
|
10644
|
-
environment=AgentMailEnvironment.PROD,
|
|
10645
10671
|
api_key="YOUR_TOKEN_HERE"
|
|
10646
10672
|
)
|
|
10647
10673
|
|
|
@@ -10812,11 +10838,10 @@ components:
|
|
|
10812
10838
|
## SDK Code Examples
|
|
10813
10839
|
|
|
10814
10840
|
```typescript
|
|
10815
|
-
import { AgentMailClient
|
|
10841
|
+
import { AgentMailClient } from "agentmail";
|
|
10816
10842
|
|
|
10817
10843
|
async function main() {
|
|
10818
10844
|
const client = new AgentMailClient({
|
|
10819
|
-
environment: AgentMailEnvironment.Prod,
|
|
10820
10845
|
apiKey: "YOUR_TOKEN_HERE",
|
|
10821
10846
|
});
|
|
10822
10847
|
await client.inboxes.threads.delete("inbox_id", "thread_id");
|
|
@@ -10827,10 +10852,8 @@ main();
|
|
|
10827
10852
|
|
|
10828
10853
|
```python
|
|
10829
10854
|
from agentmail import AgentMail
|
|
10830
|
-
from agentmail.environment import AgentMailEnvironment
|
|
10831
10855
|
|
|
10832
10856
|
client = AgentMail(
|
|
10833
|
-
environment=AgentMailEnvironment.PROD,
|
|
10834
10857
|
api_key="YOUR_TOKEN_HERE"
|
|
10835
10858
|
)
|
|
10836
10859
|
|
|
@@ -11203,11 +11226,10 @@ components:
|
|
|
11203
11226
|
## SDK Code Examples
|
|
11204
11227
|
|
|
11205
11228
|
```typescript
|
|
11206
|
-
import { AgentMailClient
|
|
11229
|
+
import { AgentMailClient } from "agentmail";
|
|
11207
11230
|
|
|
11208
11231
|
async function main() {
|
|
11209
11232
|
const client = new AgentMailClient({
|
|
11210
|
-
environment: AgentMailEnvironment.Prod,
|
|
11211
11233
|
apiKey: "YOUR_TOKEN_HERE",
|
|
11212
11234
|
});
|
|
11213
11235
|
await client.inboxes.messages.list("inbox_id", {});
|
|
@@ -11218,10 +11240,8 @@ main();
|
|
|
11218
11240
|
|
|
11219
11241
|
```python
|
|
11220
11242
|
from agentmail import AgentMail
|
|
11221
|
-
from agentmail.environment import AgentMailEnvironment
|
|
11222
11243
|
|
|
11223
11244
|
client = AgentMail(
|
|
11224
|
-
environment=AgentMailEnvironment.PROD,
|
|
11225
11245
|
api_key="YOUR_TOKEN_HERE"
|
|
11226
11246
|
)
|
|
11227
11247
|
|
|
@@ -11547,11 +11567,10 @@ components:
|
|
|
11547
11567
|
## SDK Code Examples
|
|
11548
11568
|
|
|
11549
11569
|
```typescript
|
|
11550
|
-
import { AgentMailClient
|
|
11570
|
+
import { AgentMailClient } from "agentmail";
|
|
11551
11571
|
|
|
11552
11572
|
async function main() {
|
|
11553
11573
|
const client = new AgentMailClient({
|
|
11554
|
-
environment: AgentMailEnvironment.Prod,
|
|
11555
11574
|
apiKey: "YOUR_TOKEN_HERE",
|
|
11556
11575
|
});
|
|
11557
11576
|
await client.inboxes.messages.get("inbox_id", "message_id");
|
|
@@ -11562,10 +11581,8 @@ main();
|
|
|
11562
11581
|
|
|
11563
11582
|
```python
|
|
11564
11583
|
from agentmail import AgentMail
|
|
11565
|
-
from agentmail.environment import AgentMailEnvironment
|
|
11566
11584
|
|
|
11567
11585
|
client = AgentMail(
|
|
11568
|
-
environment=AgentMailEnvironment.PROD,
|
|
11569
11586
|
api_key="YOUR_TOKEN_HERE"
|
|
11570
11587
|
)
|
|
11571
11588
|
|
|
@@ -11786,11 +11803,10 @@ components:
|
|
|
11786
11803
|
## SDK Code Examples
|
|
11787
11804
|
|
|
11788
11805
|
```typescript
|
|
11789
|
-
import { AgentMailClient
|
|
11806
|
+
import { AgentMailClient } from "agentmail";
|
|
11790
11807
|
|
|
11791
11808
|
async function main() {
|
|
11792
11809
|
const client = new AgentMailClient({
|
|
11793
|
-
environment: AgentMailEnvironment.Prod,
|
|
11794
11810
|
apiKey: "YOUR_TOKEN_HERE",
|
|
11795
11811
|
});
|
|
11796
11812
|
await client.inboxes.messages.getAttachment("inbox_id", "message_id", "attachment_id");
|
|
@@ -11801,10 +11817,8 @@ main();
|
|
|
11801
11817
|
|
|
11802
11818
|
```python
|
|
11803
11819
|
from agentmail import AgentMail
|
|
11804
|
-
from agentmail.environment import AgentMailEnvironment
|
|
11805
11820
|
|
|
11806
11821
|
client = AgentMail(
|
|
11807
|
-
environment=AgentMailEnvironment.PROD,
|
|
11808
11822
|
api_key="YOUR_TOKEN_HERE"
|
|
11809
11823
|
)
|
|
11810
11824
|
|
|
@@ -11980,11 +11994,10 @@ components:
|
|
|
11980
11994
|
## SDK Code Examples
|
|
11981
11995
|
|
|
11982
11996
|
```typescript
|
|
11983
|
-
import { AgentMailClient
|
|
11997
|
+
import { AgentMailClient } from "agentmail";
|
|
11984
11998
|
|
|
11985
11999
|
async function main() {
|
|
11986
12000
|
const client = new AgentMailClient({
|
|
11987
|
-
environment: AgentMailEnvironment.Prod,
|
|
11988
12001
|
apiKey: "YOUR_TOKEN_HERE",
|
|
11989
12002
|
});
|
|
11990
12003
|
await client.inboxes.messages.getRaw(":inbox_id", ":message_id");
|
|
@@ -11995,10 +12008,8 @@ main();
|
|
|
11995
12008
|
|
|
11996
12009
|
```python
|
|
11997
12010
|
from agentmail import AgentMail
|
|
11998
|
-
from agentmail.environment import AgentMailEnvironment
|
|
11999
12011
|
|
|
12000
12012
|
client = AgentMail(
|
|
12001
|
-
environment=AgentMailEnvironment.PROD,
|
|
12002
12013
|
api_key="YOUR_TOKEN_HERE"
|
|
12003
12014
|
)
|
|
12004
12015
|
|
|
@@ -12274,11 +12285,10 @@ components:
|
|
|
12274
12285
|
## SDK Code Examples
|
|
12275
12286
|
|
|
12276
12287
|
```typescript
|
|
12277
|
-
import { AgentMailClient
|
|
12288
|
+
import { AgentMailClient } from "agentmail";
|
|
12278
12289
|
|
|
12279
12290
|
async function main() {
|
|
12280
12291
|
const client = new AgentMailClient({
|
|
12281
|
-
environment: AgentMailEnvironment.Prod,
|
|
12282
12292
|
apiKey: "YOUR_TOKEN_HERE",
|
|
12283
12293
|
});
|
|
12284
12294
|
await client.inboxes.messages.send("inbox_id", {});
|
|
@@ -12289,10 +12299,8 @@ main();
|
|
|
12289
12299
|
|
|
12290
12300
|
```python
|
|
12291
12301
|
from agentmail import AgentMail
|
|
12292
|
-
from agentmail.environment import AgentMailEnvironment
|
|
12293
12302
|
|
|
12294
12303
|
client = AgentMail(
|
|
12295
|
-
environment=AgentMailEnvironment.PROD,
|
|
12296
12304
|
api_key="YOUR_TOKEN_HERE"
|
|
12297
12305
|
)
|
|
12298
12306
|
|
|
@@ -12591,11 +12599,10 @@ components:
|
|
|
12591
12599
|
## SDK Code Examples
|
|
12592
12600
|
|
|
12593
12601
|
```typescript
|
|
12594
|
-
import { AgentMailClient
|
|
12602
|
+
import { AgentMailClient } from "agentmail";
|
|
12595
12603
|
|
|
12596
12604
|
async function main() {
|
|
12597
12605
|
const client = new AgentMailClient({
|
|
12598
|
-
environment: AgentMailEnvironment.Prod,
|
|
12599
12606
|
apiKey: "YOUR_TOKEN_HERE",
|
|
12600
12607
|
});
|
|
12601
12608
|
await client.inboxes.messages.reply("inbox_id", "message_id", {});
|
|
@@ -12606,10 +12613,8 @@ main();
|
|
|
12606
12613
|
|
|
12607
12614
|
```python
|
|
12608
12615
|
from agentmail import AgentMail
|
|
12609
|
-
from agentmail.environment import AgentMailEnvironment
|
|
12610
12616
|
|
|
12611
12617
|
client = AgentMail(
|
|
12612
|
-
environment=AgentMailEnvironment.PROD,
|
|
12613
12618
|
api_key="YOUR_TOKEN_HERE"
|
|
12614
12619
|
)
|
|
12615
12620
|
|
|
@@ -12893,11 +12898,10 @@ components:
|
|
|
12893
12898
|
## SDK Code Examples
|
|
12894
12899
|
|
|
12895
12900
|
```typescript
|
|
12896
|
-
import { AgentMailClient
|
|
12901
|
+
import { AgentMailClient } from "agentmail";
|
|
12897
12902
|
|
|
12898
12903
|
async function main() {
|
|
12899
12904
|
const client = new AgentMailClient({
|
|
12900
|
-
environment: AgentMailEnvironment.Prod,
|
|
12901
12905
|
apiKey: "YOUR_TOKEN_HERE",
|
|
12902
12906
|
});
|
|
12903
12907
|
await client.inboxes.messages.replyAll("inbox_id", "message_id", {});
|
|
@@ -12908,10 +12912,8 @@ main();
|
|
|
12908
12912
|
|
|
12909
12913
|
```python
|
|
12910
12914
|
from agentmail import AgentMail
|
|
12911
|
-
from agentmail.environment import AgentMailEnvironment
|
|
12912
12915
|
|
|
12913
12916
|
client = AgentMail(
|
|
12914
|
-
environment=AgentMailEnvironment.PROD,
|
|
12915
12917
|
api_key="YOUR_TOKEN_HERE"
|
|
12916
12918
|
)
|
|
12917
12919
|
|
|
@@ -13211,11 +13213,10 @@ components:
|
|
|
13211
13213
|
## SDK Code Examples
|
|
13212
13214
|
|
|
13213
13215
|
```typescript
|
|
13214
|
-
import { AgentMailClient
|
|
13216
|
+
import { AgentMailClient } from "agentmail";
|
|
13215
13217
|
|
|
13216
13218
|
async function main() {
|
|
13217
13219
|
const client = new AgentMailClient({
|
|
13218
|
-
environment: AgentMailEnvironment.Prod,
|
|
13219
13220
|
apiKey: "YOUR_TOKEN_HERE",
|
|
13220
13221
|
});
|
|
13221
13222
|
await client.inboxes.messages.forward("inbox_id", "message_id", {});
|
|
@@ -13226,10 +13227,8 @@ main();
|
|
|
13226
13227
|
|
|
13227
13228
|
```python
|
|
13228
13229
|
from agentmail import AgentMail
|
|
13229
|
-
from agentmail.environment import AgentMailEnvironment
|
|
13230
13230
|
|
|
13231
13231
|
client = AgentMail(
|
|
13232
|
-
environment=AgentMailEnvironment.PROD,
|
|
13233
13232
|
api_key="YOUR_TOKEN_HERE"
|
|
13234
13233
|
)
|
|
13235
13234
|
|
|
@@ -13597,11 +13596,10 @@ components:
|
|
|
13597
13596
|
## SDK Code Examples
|
|
13598
13597
|
|
|
13599
13598
|
```typescript
|
|
13600
|
-
import { AgentMailClient
|
|
13599
|
+
import { AgentMailClient } from "agentmail";
|
|
13601
13600
|
|
|
13602
13601
|
async function main() {
|
|
13603
13602
|
const client = new AgentMailClient({
|
|
13604
|
-
environment: AgentMailEnvironment.Prod,
|
|
13605
13603
|
apiKey: "YOUR_TOKEN_HERE",
|
|
13606
13604
|
});
|
|
13607
13605
|
await client.inboxes.messages.update("inbox_id", "message_id", {});
|
|
@@ -13612,10 +13610,8 @@ main();
|
|
|
13612
13610
|
|
|
13613
13611
|
```python
|
|
13614
13612
|
from agentmail import AgentMail
|
|
13615
|
-
from agentmail.environment import AgentMailEnvironment
|
|
13616
13613
|
|
|
13617
13614
|
client = AgentMail(
|
|
13618
|
-
environment=AgentMailEnvironment.PROD,
|
|
13619
13615
|
api_key="YOUR_TOKEN_HERE"
|
|
13620
13616
|
)
|
|
13621
13617
|
|
|
@@ -13974,11 +13970,10 @@ components:
|
|
|
13974
13970
|
## SDK Code Examples
|
|
13975
13971
|
|
|
13976
13972
|
```typescript
|
|
13977
|
-
import { AgentMailClient
|
|
13973
|
+
import { AgentMailClient } from "agentmail";
|
|
13978
13974
|
|
|
13979
13975
|
async function main() {
|
|
13980
13976
|
const client = new AgentMailClient({
|
|
13981
|
-
environment: AgentMailEnvironment.Prod,
|
|
13982
13977
|
apiKey: "YOUR_TOKEN_HERE",
|
|
13983
13978
|
});
|
|
13984
13979
|
await client.inboxes.drafts.list("inbox_id", {});
|
|
@@ -13989,10 +13984,8 @@ main();
|
|
|
13989
13984
|
|
|
13990
13985
|
```python
|
|
13991
13986
|
from agentmail import AgentMail
|
|
13992
|
-
from agentmail.environment import AgentMailEnvironment
|
|
13993
13987
|
|
|
13994
13988
|
client = AgentMail(
|
|
13995
|
-
environment=AgentMailEnvironment.PROD,
|
|
13996
13989
|
api_key="YOUR_TOKEN_HERE"
|
|
13997
13990
|
)
|
|
13998
13991
|
|
|
@@ -14303,11 +14296,10 @@ components:
|
|
|
14303
14296
|
## SDK Code Examples
|
|
14304
14297
|
|
|
14305
14298
|
```typescript
|
|
14306
|
-
import { AgentMailClient
|
|
14299
|
+
import { AgentMailClient } from "agentmail";
|
|
14307
14300
|
|
|
14308
14301
|
async function main() {
|
|
14309
14302
|
const client = new AgentMailClient({
|
|
14310
|
-
environment: AgentMailEnvironment.Prod,
|
|
14311
14303
|
apiKey: "YOUR_TOKEN_HERE",
|
|
14312
14304
|
});
|
|
14313
14305
|
await client.inboxes.drafts.get("inbox_id", "draft_id");
|
|
@@ -14318,10 +14310,8 @@ main();
|
|
|
14318
14310
|
|
|
14319
14311
|
```python
|
|
14320
14312
|
from agentmail import AgentMail
|
|
14321
|
-
from agentmail.environment import AgentMailEnvironment
|
|
14322
14313
|
|
|
14323
14314
|
client = AgentMail(
|
|
14324
|
-
environment=AgentMailEnvironment.PROD,
|
|
14325
14315
|
api_key="YOUR_TOKEN_HERE"
|
|
14326
14316
|
)
|
|
14327
14317
|
|
|
@@ -14542,11 +14532,10 @@ components:
|
|
|
14542
14532
|
## SDK Code Examples
|
|
14543
14533
|
|
|
14544
14534
|
```typescript
|
|
14545
|
-
import { AgentMailClient
|
|
14535
|
+
import { AgentMailClient } from "agentmail";
|
|
14546
14536
|
|
|
14547
14537
|
async function main() {
|
|
14548
14538
|
const client = new AgentMailClient({
|
|
14549
|
-
environment: AgentMailEnvironment.Prod,
|
|
14550
14539
|
apiKey: "YOUR_TOKEN_HERE",
|
|
14551
14540
|
});
|
|
14552
14541
|
await client.inboxes.drafts.getAttachment("inbox_id", "draft_id", "attachment_id");
|
|
@@ -14557,10 +14546,8 @@ main();
|
|
|
14557
14546
|
|
|
14558
14547
|
```python
|
|
14559
14548
|
from agentmail import AgentMail
|
|
14560
|
-
from agentmail.environment import AgentMailEnvironment
|
|
14561
14549
|
|
|
14562
14550
|
client = AgentMail(
|
|
14563
|
-
environment=AgentMailEnvironment.PROD,
|
|
14564
14551
|
api_key="YOUR_TOKEN_HERE"
|
|
14565
14552
|
)
|
|
14566
14553
|
|
|
@@ -14921,11 +14908,10 @@ components:
|
|
|
14921
14908
|
## SDK Code Examples
|
|
14922
14909
|
|
|
14923
14910
|
```typescript
|
|
14924
|
-
import { AgentMailClient
|
|
14911
|
+
import { AgentMailClient } from "agentmail";
|
|
14925
14912
|
|
|
14926
14913
|
async function main() {
|
|
14927
14914
|
const client = new AgentMailClient({
|
|
14928
|
-
environment: AgentMailEnvironment.Prod,
|
|
14929
14915
|
apiKey: "YOUR_TOKEN_HERE",
|
|
14930
14916
|
});
|
|
14931
14917
|
await client.inboxes.drafts.create("inbox_id", {});
|
|
@@ -14936,10 +14922,8 @@ main();
|
|
|
14936
14922
|
|
|
14937
14923
|
```python
|
|
14938
14924
|
from agentmail import AgentMail
|
|
14939
|
-
from agentmail.environment import AgentMailEnvironment
|
|
14940
14925
|
|
|
14941
14926
|
client = AgentMail(
|
|
14942
|
-
environment=AgentMailEnvironment.PROD,
|
|
14943
14927
|
api_key="YOUR_TOKEN_HERE"
|
|
14944
14928
|
)
|
|
14945
14929
|
|
|
@@ -15294,11 +15278,10 @@ components:
|
|
|
15294
15278
|
## SDK Code Examples
|
|
15295
15279
|
|
|
15296
15280
|
```typescript
|
|
15297
|
-
import { AgentMailClient
|
|
15281
|
+
import { AgentMailClient } from "agentmail";
|
|
15298
15282
|
|
|
15299
15283
|
async function main() {
|
|
15300
15284
|
const client = new AgentMailClient({
|
|
15301
|
-
environment: AgentMailEnvironment.Prod,
|
|
15302
15285
|
apiKey: "YOUR_TOKEN_HERE",
|
|
15303
15286
|
});
|
|
15304
15287
|
await client.inboxes.drafts.update("inbox_id", "draft_id", {});
|
|
@@ -15309,10 +15292,8 @@ main();
|
|
|
15309
15292
|
|
|
15310
15293
|
```python
|
|
15311
15294
|
from agentmail import AgentMail
|
|
15312
|
-
from agentmail.environment import AgentMailEnvironment
|
|
15313
15295
|
|
|
15314
15296
|
client = AgentMail(
|
|
15315
|
-
environment=AgentMailEnvironment.PROD,
|
|
15316
15297
|
api_key="YOUR_TOKEN_HERE"
|
|
15317
15298
|
)
|
|
15318
15299
|
|
|
@@ -15544,11 +15525,10 @@ components:
|
|
|
15544
15525
|
## SDK Code Examples
|
|
15545
15526
|
|
|
15546
15527
|
```typescript
|
|
15547
|
-
import { AgentMailClient
|
|
15528
|
+
import { AgentMailClient } from "agentmail";
|
|
15548
15529
|
|
|
15549
15530
|
async function main() {
|
|
15550
15531
|
const client = new AgentMailClient({
|
|
15551
|
-
environment: AgentMailEnvironment.Prod,
|
|
15552
15532
|
apiKey: "YOUR_TOKEN_HERE",
|
|
15553
15533
|
});
|
|
15554
15534
|
await client.inboxes.drafts.send("inbox_id", "draft_id", {});
|
|
@@ -15559,10 +15539,8 @@ main();
|
|
|
15559
15539
|
|
|
15560
15540
|
```python
|
|
15561
15541
|
from agentmail import AgentMail
|
|
15562
|
-
from agentmail.environment import AgentMailEnvironment
|
|
15563
15542
|
|
|
15564
15543
|
client = AgentMail(
|
|
15565
|
-
environment=AgentMailEnvironment.PROD,
|
|
15566
15544
|
api_key="YOUR_TOKEN_HERE"
|
|
15567
15545
|
)
|
|
15568
15546
|
|
|
@@ -15751,11 +15729,10 @@ components:
|
|
|
15751
15729
|
## SDK Code Examples
|
|
15752
15730
|
|
|
15753
15731
|
```typescript
|
|
15754
|
-
import { AgentMailClient
|
|
15732
|
+
import { AgentMailClient } from "agentmail";
|
|
15755
15733
|
|
|
15756
15734
|
async function main() {
|
|
15757
15735
|
const client = new AgentMailClient({
|
|
15758
|
-
environment: AgentMailEnvironment.Prod,
|
|
15759
15736
|
apiKey: "YOUR_TOKEN_HERE",
|
|
15760
15737
|
});
|
|
15761
15738
|
await client.inboxes.drafts.delete("inbox_id", "draft_id");
|
|
@@ -15766,10 +15743,8 @@ main();
|
|
|
15766
15743
|
|
|
15767
15744
|
```python
|
|
15768
15745
|
from agentmail import AgentMail
|
|
15769
|
-
from agentmail.environment import AgentMailEnvironment
|
|
15770
15746
|
|
|
15771
15747
|
client = AgentMail(
|
|
15772
|
-
environment=AgentMailEnvironment.PROD,
|
|
15773
15748
|
api_key="YOUR_TOKEN_HERE"
|
|
15774
15749
|
)
|
|
15775
15750
|
|
|
@@ -16021,11 +15996,10 @@ components:
|
|
|
16021
15996
|
## SDK Code Examples
|
|
16022
15997
|
|
|
16023
15998
|
```typescript
|
|
16024
|
-
import { AgentMailClient
|
|
15999
|
+
import { AgentMailClient } from "agentmail";
|
|
16025
16000
|
|
|
16026
16001
|
async function main() {
|
|
16027
16002
|
const client = new AgentMailClient({
|
|
16028
|
-
environment: AgentMailEnvironment.Prod,
|
|
16029
16003
|
apiKey: "YOUR_TOKEN_HERE",
|
|
16030
16004
|
});
|
|
16031
16005
|
await client.inboxes.metrics.get("inbox_id", {
|
|
@@ -16039,11 +16013,9 @@ main();
|
|
|
16039
16013
|
|
|
16040
16014
|
```python
|
|
16041
16015
|
from agentmail import AgentMail
|
|
16042
|
-
from agentmail.environment import AgentMailEnvironment
|
|
16043
16016
|
from datetime import datetime
|
|
16044
16017
|
|
|
16045
16018
|
client = AgentMail(
|
|
16046
|
-
environment=AgentMailEnvironment.PROD,
|
|
16047
16019
|
api_key="YOUR_TOKEN_HERE"
|
|
16048
16020
|
)
|
|
16049
16021
|
|
|
@@ -16419,11 +16391,10 @@ components:
|
|
|
16419
16391
|
## SDK Code Examples
|
|
16420
16392
|
|
|
16421
16393
|
```typescript
|
|
16422
|
-
import { AgentMailClient
|
|
16394
|
+
import { AgentMailClient } from "agentmail";
|
|
16423
16395
|
|
|
16424
16396
|
async function main() {
|
|
16425
16397
|
const client = new AgentMailClient({
|
|
16426
|
-
environment: AgentMailEnvironment.Prod,
|
|
16427
16398
|
apiKey: "YOUR_TOKEN_HERE",
|
|
16428
16399
|
});
|
|
16429
16400
|
await client.threads.list({});
|
|
@@ -16434,10 +16405,8 @@ main();
|
|
|
16434
16405
|
|
|
16435
16406
|
```python
|
|
16436
16407
|
from agentmail import AgentMail
|
|
16437
|
-
from agentmail.environment import AgentMailEnvironment
|
|
16438
16408
|
|
|
16439
16409
|
client = AgentMail(
|
|
16440
|
-
environment=AgentMailEnvironment.PROD,
|
|
16441
16410
|
api_key="YOUR_TOKEN_HERE"
|
|
16442
16411
|
)
|
|
16443
16412
|
|
|
@@ -16868,11 +16837,10 @@ components:
|
|
|
16868
16837
|
## SDK Code Examples
|
|
16869
16838
|
|
|
16870
16839
|
```typescript
|
|
16871
|
-
import { AgentMailClient
|
|
16840
|
+
import { AgentMailClient } from "agentmail";
|
|
16872
16841
|
|
|
16873
16842
|
async function main() {
|
|
16874
16843
|
const client = new AgentMailClient({
|
|
16875
|
-
environment: AgentMailEnvironment.Prod,
|
|
16876
16844
|
apiKey: "YOUR_TOKEN_HERE",
|
|
16877
16845
|
});
|
|
16878
16846
|
await client.threads.get("thread_id");
|
|
@@ -16883,10 +16851,8 @@ main();
|
|
|
16883
16851
|
|
|
16884
16852
|
```python
|
|
16885
16853
|
from agentmail import AgentMail
|
|
16886
|
-
from agentmail.environment import AgentMailEnvironment
|
|
16887
16854
|
|
|
16888
16855
|
client = AgentMail(
|
|
16889
|
-
environment=AgentMailEnvironment.PROD,
|
|
16890
16856
|
api_key="YOUR_TOKEN_HERE"
|
|
16891
16857
|
)
|
|
16892
16858
|
|
|
@@ -17098,11 +17064,10 @@ components:
|
|
|
17098
17064
|
## SDK Code Examples
|
|
17099
17065
|
|
|
17100
17066
|
```typescript
|
|
17101
|
-
import { AgentMailClient
|
|
17067
|
+
import { AgentMailClient } from "agentmail";
|
|
17102
17068
|
|
|
17103
17069
|
async function main() {
|
|
17104
17070
|
const client = new AgentMailClient({
|
|
17105
|
-
environment: AgentMailEnvironment.Prod,
|
|
17106
17071
|
apiKey: "YOUR_TOKEN_HERE",
|
|
17107
17072
|
});
|
|
17108
17073
|
await client.threads.getAttachment("thread_id", "attachment_id");
|
|
@@ -17113,10 +17078,8 @@ main();
|
|
|
17113
17078
|
|
|
17114
17079
|
```python
|
|
17115
17080
|
from agentmail import AgentMail
|
|
17116
|
-
from agentmail.environment import AgentMailEnvironment
|
|
17117
17081
|
|
|
17118
17082
|
client = AgentMail(
|
|
17119
|
-
environment=AgentMailEnvironment.PROD,
|
|
17120
17083
|
api_key="YOUR_TOKEN_HERE"
|
|
17121
17084
|
)
|
|
17122
17085
|
|
|
@@ -17450,11 +17413,10 @@ components:
|
|
|
17450
17413
|
## SDK Code Examples
|
|
17451
17414
|
|
|
17452
17415
|
```typescript
|
|
17453
|
-
import { AgentMailClient
|
|
17416
|
+
import { AgentMailClient } from "agentmail";
|
|
17454
17417
|
|
|
17455
17418
|
async function main() {
|
|
17456
17419
|
const client = new AgentMailClient({
|
|
17457
|
-
environment: AgentMailEnvironment.Prod,
|
|
17458
17420
|
apiKey: "YOUR_TOKEN_HERE",
|
|
17459
17421
|
});
|
|
17460
17422
|
await client.drafts.list({});
|
|
@@ -17465,10 +17427,8 @@ main();
|
|
|
17465
17427
|
|
|
17466
17428
|
```python
|
|
17467
17429
|
from agentmail import AgentMail
|
|
17468
|
-
from agentmail.environment import AgentMailEnvironment
|
|
17469
17430
|
|
|
17470
17431
|
client = AgentMail(
|
|
17471
|
-
environment=AgentMailEnvironment.PROD,
|
|
17472
17432
|
api_key="YOUR_TOKEN_HERE"
|
|
17473
17433
|
)
|
|
17474
17434
|
|
|
@@ -17771,11 +17731,10 @@ components:
|
|
|
17771
17731
|
## SDK Code Examples
|
|
17772
17732
|
|
|
17773
17733
|
```typescript
|
|
17774
|
-
import { AgentMailClient
|
|
17734
|
+
import { AgentMailClient } from "agentmail";
|
|
17775
17735
|
|
|
17776
17736
|
async function main() {
|
|
17777
17737
|
const client = new AgentMailClient({
|
|
17778
|
-
environment: AgentMailEnvironment.Prod,
|
|
17779
17738
|
apiKey: "YOUR_TOKEN_HERE",
|
|
17780
17739
|
});
|
|
17781
17740
|
await client.drafts.get("draft_id");
|
|
@@ -17786,10 +17745,8 @@ main();
|
|
|
17786
17745
|
|
|
17787
17746
|
```python
|
|
17788
17747
|
from agentmail import AgentMail
|
|
17789
|
-
from agentmail.environment import AgentMailEnvironment
|
|
17790
17748
|
|
|
17791
17749
|
client = AgentMail(
|
|
17792
|
-
environment=AgentMailEnvironment.PROD,
|
|
17793
17750
|
api_key="YOUR_TOKEN_HERE"
|
|
17794
17751
|
)
|
|
17795
17752
|
|
|
@@ -18001,11 +17958,10 @@ components:
|
|
|
18001
17958
|
## SDK Code Examples
|
|
18002
17959
|
|
|
18003
17960
|
```typescript
|
|
18004
|
-
import { AgentMailClient
|
|
17961
|
+
import { AgentMailClient } from "agentmail";
|
|
18005
17962
|
|
|
18006
17963
|
async function main() {
|
|
18007
17964
|
const client = new AgentMailClient({
|
|
18008
|
-
environment: AgentMailEnvironment.Prod,
|
|
18009
17965
|
apiKey: "YOUR_TOKEN_HERE",
|
|
18010
17966
|
});
|
|
18011
17967
|
await client.drafts.getAttachment("draft_id", "attachment_id");
|
|
@@ -18016,10 +17972,8 @@ main();
|
|
|
18016
17972
|
|
|
18017
17973
|
```python
|
|
18018
17974
|
from agentmail import AgentMail
|
|
18019
|
-
from agentmail.environment import AgentMailEnvironment
|
|
18020
17975
|
|
|
18021
17976
|
client = AgentMail(
|
|
18022
|
-
environment=AgentMailEnvironment.PROD,
|
|
18023
17977
|
api_key="YOUR_TOKEN_HERE"
|
|
18024
17978
|
)
|
|
18025
17979
|
|
|
@@ -18240,11 +18194,10 @@ components:
|
|
|
18240
18194
|
## SDK Code Examples
|
|
18241
18195
|
|
|
18242
18196
|
```typescript
|
|
18243
|
-
import { AgentMailClient
|
|
18197
|
+
import { AgentMailClient } from "agentmail";
|
|
18244
18198
|
|
|
18245
18199
|
async function main() {
|
|
18246
18200
|
const client = new AgentMailClient({
|
|
18247
|
-
environment: AgentMailEnvironment.Prod,
|
|
18248
18201
|
apiKey: "YOUR_TOKEN_HERE",
|
|
18249
18202
|
});
|
|
18250
18203
|
await client.domains.list({});
|
|
@@ -18255,10 +18208,8 @@ main();
|
|
|
18255
18208
|
|
|
18256
18209
|
```python
|
|
18257
18210
|
from agentmail import AgentMail
|
|
18258
|
-
from agentmail.environment import AgentMailEnvironment
|
|
18259
18211
|
|
|
18260
18212
|
client = AgentMail(
|
|
18261
|
-
environment=AgentMailEnvironment.PROD,
|
|
18262
18213
|
api_key="YOUR_TOKEN_HERE"
|
|
18263
18214
|
)
|
|
18264
18215
|
|
|
@@ -18524,11 +18475,10 @@ components:
|
|
|
18524
18475
|
## SDK Code Examples
|
|
18525
18476
|
|
|
18526
18477
|
```typescript
|
|
18527
|
-
import { AgentMailClient
|
|
18478
|
+
import { AgentMailClient } from "agentmail";
|
|
18528
18479
|
|
|
18529
18480
|
async function main() {
|
|
18530
18481
|
const client = new AgentMailClient({
|
|
18531
|
-
environment: AgentMailEnvironment.Prod,
|
|
18532
18482
|
apiKey: "YOUR_TOKEN_HERE",
|
|
18533
18483
|
});
|
|
18534
18484
|
await client.domains.get("domain_id");
|
|
@@ -18539,10 +18489,8 @@ main();
|
|
|
18539
18489
|
|
|
18540
18490
|
```python
|
|
18541
18491
|
from agentmail import AgentMail
|
|
18542
|
-
from agentmail.environment import AgentMailEnvironment
|
|
18543
18492
|
|
|
18544
18493
|
client = AgentMail(
|
|
18545
|
-
environment=AgentMailEnvironment.PROD,
|
|
18546
18494
|
api_key="YOUR_TOKEN_HERE"
|
|
18547
18495
|
)
|
|
18548
18496
|
|
|
@@ -18708,11 +18656,10 @@ components:
|
|
|
18708
18656
|
## SDK Code Examples
|
|
18709
18657
|
|
|
18710
18658
|
```typescript
|
|
18711
|
-
import { AgentMailClient
|
|
18659
|
+
import { AgentMailClient } from "agentmail";
|
|
18712
18660
|
|
|
18713
18661
|
async function main() {
|
|
18714
18662
|
const client = new AgentMailClient({
|
|
18715
|
-
environment: AgentMailEnvironment.Prod,
|
|
18716
18663
|
apiKey: "YOUR_TOKEN_HERE",
|
|
18717
18664
|
});
|
|
18718
18665
|
await client.domains.getZoneFile(":domain_id");
|
|
@@ -18723,10 +18670,8 @@ main();
|
|
|
18723
18670
|
|
|
18724
18671
|
```python
|
|
18725
18672
|
from agentmail import AgentMail
|
|
18726
|
-
from agentmail.environment import AgentMailEnvironment
|
|
18727
18673
|
|
|
18728
18674
|
client = AgentMail(
|
|
18729
|
-
environment=AgentMailEnvironment.PROD,
|
|
18730
18675
|
api_key="YOUR_TOKEN_HERE"
|
|
18731
18676
|
)
|
|
18732
18677
|
|
|
@@ -18988,11 +18933,10 @@ components:
|
|
|
18988
18933
|
## SDK Code Examples
|
|
18989
18934
|
|
|
18990
18935
|
```typescript
|
|
18991
|
-
import { AgentMailClient
|
|
18936
|
+
import { AgentMailClient } from "agentmail";
|
|
18992
18937
|
|
|
18993
18938
|
async function main() {
|
|
18994
18939
|
const client = new AgentMailClient({
|
|
18995
|
-
environment: AgentMailEnvironment.Prod,
|
|
18996
18940
|
apiKey: "YOUR_TOKEN_HERE",
|
|
18997
18941
|
});
|
|
18998
18942
|
await client.domains.create({
|
|
@@ -19006,10 +18950,8 @@ main();
|
|
|
19006
18950
|
|
|
19007
18951
|
```python
|
|
19008
18952
|
from agentmail import AgentMail
|
|
19009
|
-
from agentmail.environment import AgentMailEnvironment
|
|
19010
18953
|
|
|
19011
18954
|
client = AgentMail(
|
|
19012
|
-
environment=AgentMailEnvironment.PROD,
|
|
19013
18955
|
api_key="YOUR_TOKEN_HERE"
|
|
19014
18956
|
)
|
|
19015
18957
|
|
|
@@ -19196,11 +19138,10 @@ components:
|
|
|
19196
19138
|
## SDK Code Examples
|
|
19197
19139
|
|
|
19198
19140
|
```typescript
|
|
19199
|
-
import { AgentMailClient
|
|
19141
|
+
import { AgentMailClient } from "agentmail";
|
|
19200
19142
|
|
|
19201
19143
|
async function main() {
|
|
19202
19144
|
const client = new AgentMailClient({
|
|
19203
|
-
environment: AgentMailEnvironment.Prod,
|
|
19204
19145
|
apiKey: "YOUR_TOKEN_HERE",
|
|
19205
19146
|
});
|
|
19206
19147
|
await client.domains.delete("domain_id");
|
|
@@ -19211,10 +19152,8 @@ main();
|
|
|
19211
19152
|
|
|
19212
19153
|
```python
|
|
19213
19154
|
from agentmail import AgentMail
|
|
19214
|
-
from agentmail.environment import AgentMailEnvironment
|
|
19215
19155
|
|
|
19216
19156
|
client = AgentMail(
|
|
19217
|
-
environment=AgentMailEnvironment.PROD,
|
|
19218
19157
|
api_key="YOUR_TOKEN_HERE"
|
|
19219
19158
|
)
|
|
19220
19159
|
|
|
@@ -19375,11 +19314,10 @@ components:
|
|
|
19375
19314
|
## SDK Code Examples
|
|
19376
19315
|
|
|
19377
19316
|
```typescript
|
|
19378
|
-
import { AgentMailClient
|
|
19317
|
+
import { AgentMailClient } from "agentmail";
|
|
19379
19318
|
|
|
19380
19319
|
async function main() {
|
|
19381
19320
|
const client = new AgentMailClient({
|
|
19382
|
-
environment: AgentMailEnvironment.Prod,
|
|
19383
19321
|
apiKey: "YOUR_TOKEN_HERE",
|
|
19384
19322
|
});
|
|
19385
19323
|
await client.domains.verify("domain_id");
|
|
@@ -19390,10 +19328,8 @@ main();
|
|
|
19390
19328
|
|
|
19391
19329
|
```python
|
|
19392
19330
|
from agentmail import AgentMail
|
|
19393
|
-
from agentmail.environment import AgentMailEnvironment
|
|
19394
19331
|
|
|
19395
19332
|
client = AgentMail(
|
|
19396
|
-
environment=AgentMailEnvironment.PROD,
|
|
19397
19333
|
api_key="YOUR_TOKEN_HERE"
|
|
19398
19334
|
)
|
|
19399
19335
|
|
|
@@ -19645,11 +19581,10 @@ components:
|
|
|
19645
19581
|
## SDK Code Examples
|
|
19646
19582
|
|
|
19647
19583
|
```typescript
|
|
19648
|
-
import { AgentMailClient
|
|
19584
|
+
import { AgentMailClient } from "agentmail";
|
|
19649
19585
|
|
|
19650
19586
|
async function main() {
|
|
19651
19587
|
const client = new AgentMailClient({
|
|
19652
|
-
environment: AgentMailEnvironment.Prod,
|
|
19653
19588
|
apiKey: "YOUR_TOKEN_HERE",
|
|
19654
19589
|
});
|
|
19655
19590
|
await client.webhooks.list({});
|
|
@@ -19660,10 +19595,8 @@ main();
|
|
|
19660
19595
|
|
|
19661
19596
|
```python
|
|
19662
19597
|
from agentmail import AgentMail
|
|
19663
|
-
from agentmail.environment import AgentMailEnvironment
|
|
19664
19598
|
|
|
19665
19599
|
client = AgentMail(
|
|
19666
|
-
environment=AgentMailEnvironment.PROD,
|
|
19667
19600
|
api_key="YOUR_TOKEN_HERE"
|
|
19668
19601
|
)
|
|
19669
19602
|
|
|
@@ -19888,11 +19821,10 @@ components:
|
|
|
19888
19821
|
## SDK Code Examples
|
|
19889
19822
|
|
|
19890
19823
|
```typescript
|
|
19891
|
-
import { AgentMailClient
|
|
19824
|
+
import { AgentMailClient } from "agentmail";
|
|
19892
19825
|
|
|
19893
19826
|
async function main() {
|
|
19894
19827
|
const client = new AgentMailClient({
|
|
19895
|
-
environment: AgentMailEnvironment.Prod,
|
|
19896
19828
|
apiKey: "YOUR_TOKEN_HERE",
|
|
19897
19829
|
});
|
|
19898
19830
|
await client.webhooks.get("webhook_id");
|
|
@@ -19903,10 +19835,8 @@ main();
|
|
|
19903
19835
|
|
|
19904
19836
|
```python
|
|
19905
19837
|
from agentmail import AgentMail
|
|
19906
|
-
from agentmail.environment import AgentMailEnvironment
|
|
19907
19838
|
|
|
19908
19839
|
client = AgentMail(
|
|
19909
|
-
environment=AgentMailEnvironment.PROD,
|
|
19910
19840
|
api_key="YOUR_TOKEN_HERE"
|
|
19911
19841
|
)
|
|
19912
19842
|
|
|
@@ -20157,11 +20087,10 @@ components:
|
|
|
20157
20087
|
## SDK Code Examples
|
|
20158
20088
|
|
|
20159
20089
|
```typescript
|
|
20160
|
-
import { AgentMailClient
|
|
20090
|
+
import { AgentMailClient } from "agentmail";
|
|
20161
20091
|
|
|
20162
20092
|
async function main() {
|
|
20163
20093
|
const client = new AgentMailClient({
|
|
20164
|
-
environment: AgentMailEnvironment.Prod,
|
|
20165
20094
|
apiKey: "YOUR_TOKEN_HERE",
|
|
20166
20095
|
});
|
|
20167
20096
|
await client.webhooks.update("webhook_id", {});
|
|
@@ -20172,10 +20101,8 @@ main();
|
|
|
20172
20101
|
|
|
20173
20102
|
```python
|
|
20174
20103
|
from agentmail import AgentMail
|
|
20175
|
-
from agentmail.environment import AgentMailEnvironment
|
|
20176
20104
|
|
|
20177
20105
|
client = AgentMail(
|
|
20178
|
-
environment=AgentMailEnvironment.PROD,
|
|
20179
20106
|
api_key="YOUR_TOKEN_HERE"
|
|
20180
20107
|
)
|
|
20181
20108
|
|
|
@@ -20438,11 +20365,10 @@ components:
|
|
|
20438
20365
|
## SDK Code Examples
|
|
20439
20366
|
|
|
20440
20367
|
```typescript
|
|
20441
|
-
import { AgentMailClient
|
|
20368
|
+
import { AgentMailClient } from "agentmail";
|
|
20442
20369
|
|
|
20443
20370
|
async function main() {
|
|
20444
20371
|
const client = new AgentMailClient({
|
|
20445
|
-
environment: AgentMailEnvironment.Prod,
|
|
20446
20372
|
apiKey: "YOUR_TOKEN_HERE",
|
|
20447
20373
|
});
|
|
20448
20374
|
await client.webhooks.create({
|
|
@@ -20459,10 +20385,8 @@ main();
|
|
|
20459
20385
|
|
|
20460
20386
|
```python
|
|
20461
20387
|
from agentmail import AgentMail
|
|
20462
|
-
from agentmail.environment import AgentMailEnvironment
|
|
20463
20388
|
|
|
20464
20389
|
client = AgentMail(
|
|
20465
|
-
environment=AgentMailEnvironment.PROD,
|
|
20466
20390
|
api_key="YOUR_TOKEN_HERE"
|
|
20467
20391
|
)
|
|
20468
20392
|
|
|
@@ -20655,11 +20579,10 @@ components:
|
|
|
20655
20579
|
## SDK Code Examples
|
|
20656
20580
|
|
|
20657
20581
|
```typescript
|
|
20658
|
-
import { AgentMailClient
|
|
20582
|
+
import { AgentMailClient } from "agentmail";
|
|
20659
20583
|
|
|
20660
20584
|
async function main() {
|
|
20661
20585
|
const client = new AgentMailClient({
|
|
20662
|
-
environment: AgentMailEnvironment.Prod,
|
|
20663
20586
|
apiKey: "YOUR_TOKEN_HERE",
|
|
20664
20587
|
});
|
|
20665
20588
|
await client.webhooks.delete("webhook_id");
|
|
@@ -20670,10 +20593,8 @@ main();
|
|
|
20670
20593
|
|
|
20671
20594
|
```python
|
|
20672
20595
|
from agentmail import AgentMail
|
|
20673
|
-
from agentmail.environment import AgentMailEnvironment
|
|
20674
20596
|
|
|
20675
20597
|
client = AgentMail(
|
|
20676
|
-
environment=AgentMailEnvironment.PROD,
|
|
20677
20598
|
api_key="YOUR_TOKEN_HERE"
|
|
20678
20599
|
)
|
|
20679
20600
|
|
|
@@ -21902,6 +21823,8 @@ channels:
|
|
|
21902
21823
|
#/components/messages/subpackage_websockets.websockets-server-6-message_rejected
|
|
21903
21824
|
- $ref: >-
|
|
21904
21825
|
#/components/messages/subpackage_websockets.websockets-server-7-domain_verified
|
|
21826
|
+
- $ref: >-
|
|
21827
|
+
#/components/messages/subpackage_websockets.websockets-server-8-error
|
|
21905
21828
|
subscribe:
|
|
21906
21829
|
operationId: websockets-subscribe
|
|
21907
21830
|
summary: Client message
|
|
@@ -21954,6 +21877,10 @@ components:
|
|
|
21954
21877
|
name: domain_verified
|
|
21955
21878
|
payload:
|
|
21956
21879
|
$ref: '#/components/schemas/type_events:DomainVerifiedEvent'
|
|
21880
|
+
subpackage_websockets.websockets-server-8-error:
|
|
21881
|
+
name: error
|
|
21882
|
+
payload:
|
|
21883
|
+
$ref: '#/components/schemas/type_websockets:Error'
|
|
21957
21884
|
schemas:
|
|
21958
21885
|
type_events:EventType:
|
|
21959
21886
|
type: string
|
|
@@ -22622,6 +22549,26 @@ components:
|
|
|
22622
22549
|
- event_type
|
|
22623
22550
|
- event_id
|
|
22624
22551
|
- domain
|
|
22552
|
+
type_:ErrorName:
|
|
22553
|
+
type: string
|
|
22554
|
+
type_:ErrorMessage:
|
|
22555
|
+
type: string
|
|
22556
|
+
type_websockets:Error:
|
|
22557
|
+
type: object
|
|
22558
|
+
properties:
|
|
22559
|
+
type:
|
|
22560
|
+
type: string
|
|
22561
|
+
enum:
|
|
22562
|
+
- type: stringLiteral
|
|
22563
|
+
value: error
|
|
22564
|
+
name:
|
|
22565
|
+
$ref: '#/components/schemas/type_:ErrorName'
|
|
22566
|
+
message:
|
|
22567
|
+
$ref: '#/components/schemas/type_:ErrorMessage'
|
|
22568
|
+
required:
|
|
22569
|
+
- type
|
|
22570
|
+
- name
|
|
22571
|
+
- message
|
|
22625
22572
|
type_websockets:Subscribe:
|
|
22626
22573
|
type: object
|
|
22627
22574
|
properties:
|
|
@@ -22770,11 +22717,10 @@ components:
|
|
|
22770
22717
|
## SDK Code Examples
|
|
22771
22718
|
|
|
22772
22719
|
```typescript
|
|
22773
|
-
import { AgentMailClient
|
|
22720
|
+
import { AgentMailClient } from "agentmail";
|
|
22774
22721
|
|
|
22775
22722
|
async function main() {
|
|
22776
22723
|
const client = new AgentMailClient({
|
|
22777
|
-
environment: AgentMailEnvironment.Prod,
|
|
22778
22724
|
apiKey: "YOUR_TOKEN_HERE",
|
|
22779
22725
|
});
|
|
22780
22726
|
await client.metrics.list({
|
|
@@ -22788,11 +22734,9 @@ main();
|
|
|
22788
22734
|
|
|
22789
22735
|
```python
|
|
22790
22736
|
from agentmail import AgentMail
|
|
22791
|
-
from agentmail.environment import AgentMailEnvironment
|
|
22792
22737
|
from datetime import datetime
|
|
22793
22738
|
|
|
22794
22739
|
client = AgentMail(
|
|
22795
|
-
environment=AgentMailEnvironment.PROD,
|
|
22796
22740
|
api_key="YOUR_TOKEN_HERE"
|
|
22797
22741
|
)
|
|
22798
22742
|
|
|
@@ -23027,11 +22971,10 @@ components:
|
|
|
23027
22971
|
## SDK Code Examples
|
|
23028
22972
|
|
|
23029
22973
|
```typescript
|
|
23030
|
-
import { AgentMailClient
|
|
22974
|
+
import { AgentMailClient } from "agentmail";
|
|
23031
22975
|
|
|
23032
22976
|
async function main() {
|
|
23033
22977
|
const client = new AgentMailClient({
|
|
23034
|
-
environment: AgentMailEnvironment.Prod,
|
|
23035
22978
|
apiKey: "YOUR_TOKEN_HERE",
|
|
23036
22979
|
});
|
|
23037
22980
|
await client.apiKeys.list({});
|
|
@@ -23042,10 +22985,8 @@ main();
|
|
|
23042
22985
|
|
|
23043
22986
|
```python
|
|
23044
22987
|
from agentmail import AgentMail
|
|
23045
|
-
from agentmail.environment import AgentMailEnvironment
|
|
23046
22988
|
|
|
23047
22989
|
client = AgentMail(
|
|
23048
|
-
environment=AgentMailEnvironment.PROD,
|
|
23049
22990
|
api_key="YOUR_TOKEN_HERE"
|
|
23050
22991
|
)
|
|
23051
22992
|
|
|
@@ -23262,11 +23203,10 @@ components:
|
|
|
23262
23203
|
## SDK Code Examples
|
|
23263
23204
|
|
|
23264
23205
|
```typescript
|
|
23265
|
-
import { AgentMailClient
|
|
23206
|
+
import { AgentMailClient } from "agentmail";
|
|
23266
23207
|
|
|
23267
23208
|
async function main() {
|
|
23268
23209
|
const client = new AgentMailClient({
|
|
23269
|
-
environment: AgentMailEnvironment.Prod,
|
|
23270
23210
|
apiKey: "YOUR_TOKEN_HERE",
|
|
23271
23211
|
});
|
|
23272
23212
|
await client.apiKeys.create({
|
|
@@ -23279,10 +23219,8 @@ main();
|
|
|
23279
23219
|
|
|
23280
23220
|
```python
|
|
23281
23221
|
from agentmail import AgentMail
|
|
23282
|
-
from agentmail.environment import AgentMailEnvironment
|
|
23283
23222
|
|
|
23284
23223
|
client = AgentMail(
|
|
23285
|
-
environment=AgentMailEnvironment.PROD,
|
|
23286
23224
|
api_key="YOUR_TOKEN_HERE"
|
|
23287
23225
|
)
|
|
23288
23226
|
|
|
@@ -23464,11 +23402,10 @@ components:
|
|
|
23464
23402
|
## SDK Code Examples
|
|
23465
23403
|
|
|
23466
23404
|
```typescript
|
|
23467
|
-
import { AgentMailClient
|
|
23405
|
+
import { AgentMailClient } from "agentmail";
|
|
23468
23406
|
|
|
23469
23407
|
async function main() {
|
|
23470
23408
|
const client = new AgentMailClient({
|
|
23471
|
-
environment: AgentMailEnvironment.Prod,
|
|
23472
23409
|
apiKey: "YOUR_TOKEN_HERE",
|
|
23473
23410
|
});
|
|
23474
23411
|
await client.apiKeys.delete("api_key");
|
|
@@ -23479,10 +23416,8 @@ main();
|
|
|
23479
23416
|
|
|
23480
23417
|
```python
|
|
23481
23418
|
from agentmail import AgentMail
|
|
23482
|
-
from agentmail.environment import AgentMailEnvironment
|
|
23483
23419
|
|
|
23484
23420
|
client = AgentMail(
|
|
23485
|
-
environment=AgentMailEnvironment.PROD,
|
|
23486
23421
|
api_key="YOUR_TOKEN_HERE"
|
|
23487
23422
|
)
|
|
23488
23423
|
|
|
@@ -23698,11 +23633,10 @@ components:
|
|
|
23698
23633
|
## SDK Code Examples
|
|
23699
23634
|
|
|
23700
23635
|
```typescript
|
|
23701
|
-
import { AgentMailClient
|
|
23636
|
+
import { AgentMailClient } from "agentmail";
|
|
23702
23637
|
|
|
23703
23638
|
async function main() {
|
|
23704
23639
|
const client = new AgentMailClient({
|
|
23705
|
-
environment: AgentMailEnvironment.Prod,
|
|
23706
23640
|
apiKey: "YOUR_TOKEN_HERE",
|
|
23707
23641
|
});
|
|
23708
23642
|
await client.pods.list({});
|
|
@@ -23713,10 +23647,8 @@ main();
|
|
|
23713
23647
|
|
|
23714
23648
|
```python
|
|
23715
23649
|
from agentmail import AgentMail
|
|
23716
|
-
from agentmail.environment import AgentMailEnvironment
|
|
23717
23650
|
|
|
23718
23651
|
client = AgentMail(
|
|
23719
|
-
environment=AgentMailEnvironment.PROD,
|
|
23720
23652
|
api_key="YOUR_TOKEN_HERE"
|
|
23721
23653
|
)
|
|
23722
23654
|
|
|
@@ -23924,11 +23856,10 @@ components:
|
|
|
23924
23856
|
## SDK Code Examples
|
|
23925
23857
|
|
|
23926
23858
|
```typescript
|
|
23927
|
-
import { AgentMailClient
|
|
23859
|
+
import { AgentMailClient } from "agentmail";
|
|
23928
23860
|
|
|
23929
23861
|
async function main() {
|
|
23930
23862
|
const client = new AgentMailClient({
|
|
23931
|
-
environment: AgentMailEnvironment.Prod,
|
|
23932
23863
|
apiKey: "YOUR_TOKEN_HERE",
|
|
23933
23864
|
});
|
|
23934
23865
|
await client.pods.get("pod_id");
|
|
@@ -23939,10 +23870,8 @@ main();
|
|
|
23939
23870
|
|
|
23940
23871
|
```python
|
|
23941
23872
|
from agentmail import AgentMail
|
|
23942
|
-
from agentmail.environment import AgentMailEnvironment
|
|
23943
23873
|
|
|
23944
23874
|
client = AgentMail(
|
|
23945
|
-
environment=AgentMailEnvironment.PROD,
|
|
23946
23875
|
api_key="YOUR_TOKEN_HERE"
|
|
23947
23876
|
)
|
|
23948
23877
|
|
|
@@ -24160,11 +24089,10 @@ components:
|
|
|
24160
24089
|
## SDK Code Examples
|
|
24161
24090
|
|
|
24162
24091
|
```typescript
|
|
24163
|
-
import { AgentMailClient
|
|
24092
|
+
import { AgentMailClient } from "agentmail";
|
|
24164
24093
|
|
|
24165
24094
|
async function main() {
|
|
24166
24095
|
const client = new AgentMailClient({
|
|
24167
|
-
environment: AgentMailEnvironment.Prod,
|
|
24168
24096
|
apiKey: "YOUR_TOKEN_HERE",
|
|
24169
24097
|
});
|
|
24170
24098
|
await client.pods.create({});
|
|
@@ -24175,10 +24103,8 @@ main();
|
|
|
24175
24103
|
|
|
24176
24104
|
```python
|
|
24177
24105
|
from agentmail import AgentMail
|
|
24178
|
-
from agentmail.environment import AgentMailEnvironment
|
|
24179
24106
|
|
|
24180
24107
|
client = AgentMail(
|
|
24181
|
-
environment=AgentMailEnvironment.PROD,
|
|
24182
24108
|
api_key="YOUR_TOKEN_HERE"
|
|
24183
24109
|
)
|
|
24184
24110
|
|
|
@@ -24356,11 +24282,10 @@ components:
|
|
|
24356
24282
|
## SDK Code Examples
|
|
24357
24283
|
|
|
24358
24284
|
```typescript
|
|
24359
|
-
import { AgentMailClient
|
|
24285
|
+
import { AgentMailClient } from "agentmail";
|
|
24360
24286
|
|
|
24361
24287
|
async function main() {
|
|
24362
24288
|
const client = new AgentMailClient({
|
|
24363
|
-
environment: AgentMailEnvironment.Prod,
|
|
24364
24289
|
apiKey: "YOUR_TOKEN_HERE",
|
|
24365
24290
|
});
|
|
24366
24291
|
await client.pods.delete("pod_id");
|
|
@@ -24371,10 +24296,8 @@ main();
|
|
|
24371
24296
|
|
|
24372
24297
|
```python
|
|
24373
24298
|
from agentmail import AgentMail
|
|
24374
|
-
from agentmail.environment import AgentMailEnvironment
|
|
24375
24299
|
|
|
24376
24300
|
client = AgentMail(
|
|
24377
|
-
environment=AgentMailEnvironment.PROD,
|
|
24378
24301
|
api_key="YOUR_TOKEN_HERE"
|
|
24379
24302
|
)
|
|
24380
24303
|
|
|
@@ -24603,11 +24526,10 @@ components:
|
|
|
24603
24526
|
## SDK Code Examples
|
|
24604
24527
|
|
|
24605
24528
|
```typescript
|
|
24606
|
-
import { AgentMailClient
|
|
24529
|
+
import { AgentMailClient } from "agentmail";
|
|
24607
24530
|
|
|
24608
24531
|
async function main() {
|
|
24609
24532
|
const client = new AgentMailClient({
|
|
24610
|
-
environment: AgentMailEnvironment.Prod,
|
|
24611
24533
|
apiKey: "YOUR_TOKEN_HERE",
|
|
24612
24534
|
});
|
|
24613
24535
|
await client.pods.inboxes.list("pod_id", {});
|
|
@@ -24618,10 +24540,8 @@ main();
|
|
|
24618
24540
|
|
|
24619
24541
|
```python
|
|
24620
24542
|
from agentmail import AgentMail
|
|
24621
|
-
from agentmail.environment import AgentMailEnvironment
|
|
24622
24543
|
|
|
24623
24544
|
client = AgentMail(
|
|
24624
|
-
environment=AgentMailEnvironment.PROD,
|
|
24625
24545
|
api_key="YOUR_TOKEN_HERE"
|
|
24626
24546
|
)
|
|
24627
24547
|
|
|
@@ -24841,11 +24761,10 @@ components:
|
|
|
24841
24761
|
## SDK Code Examples
|
|
24842
24762
|
|
|
24843
24763
|
```typescript
|
|
24844
|
-
import { AgentMailClient
|
|
24764
|
+
import { AgentMailClient } from "agentmail";
|
|
24845
24765
|
|
|
24846
24766
|
async function main() {
|
|
24847
24767
|
const client = new AgentMailClient({
|
|
24848
|
-
environment: AgentMailEnvironment.Prod,
|
|
24849
24768
|
apiKey: "YOUR_TOKEN_HERE",
|
|
24850
24769
|
});
|
|
24851
24770
|
await client.pods.inboxes.get("pod_id", "inbox_id");
|
|
@@ -24856,10 +24775,8 @@ main();
|
|
|
24856
24775
|
|
|
24857
24776
|
```python
|
|
24858
24777
|
from agentmail import AgentMail
|
|
24859
|
-
from agentmail.environment import AgentMailEnvironment
|
|
24860
24778
|
|
|
24861
24779
|
client = AgentMail(
|
|
24862
|
-
environment=AgentMailEnvironment.PROD,
|
|
24863
24780
|
api_key="YOUR_TOKEN_HERE"
|
|
24864
24781
|
)
|
|
24865
24782
|
|
|
@@ -25096,11 +25013,10 @@ components:
|
|
|
25096
25013
|
## SDK Code Examples
|
|
25097
25014
|
|
|
25098
25015
|
```typescript
|
|
25099
|
-
import { AgentMailClient
|
|
25016
|
+
import { AgentMailClient } from "agentmail";
|
|
25100
25017
|
|
|
25101
25018
|
async function main() {
|
|
25102
25019
|
const client = new AgentMailClient({
|
|
25103
|
-
environment: AgentMailEnvironment.Prod,
|
|
25104
25020
|
apiKey: "YOUR_TOKEN_HERE",
|
|
25105
25021
|
});
|
|
25106
25022
|
await client.pods.inboxes.create("pod_id", {});
|
|
@@ -25111,10 +25027,8 @@ main();
|
|
|
25111
25027
|
|
|
25112
25028
|
```python
|
|
25113
25029
|
from agentmail import AgentMail
|
|
25114
|
-
from agentmail.environment import AgentMailEnvironment
|
|
25115
25030
|
|
|
25116
25031
|
client = AgentMail(
|
|
25117
|
-
environment=AgentMailEnvironment.PROD,
|
|
25118
25032
|
api_key="YOUR_TOKEN_HERE"
|
|
25119
25033
|
)
|
|
25120
25034
|
|
|
@@ -25302,11 +25216,10 @@ components:
|
|
|
25302
25216
|
## SDK Code Examples
|
|
25303
25217
|
|
|
25304
25218
|
```typescript
|
|
25305
|
-
import { AgentMailClient
|
|
25219
|
+
import { AgentMailClient } from "agentmail";
|
|
25306
25220
|
|
|
25307
25221
|
async function main() {
|
|
25308
25222
|
const client = new AgentMailClient({
|
|
25309
|
-
environment: AgentMailEnvironment.Prod,
|
|
25310
25223
|
apiKey: "YOUR_TOKEN_HERE",
|
|
25311
25224
|
});
|
|
25312
25225
|
await client.pods.inboxes.delete("pod_id", "inbox_id");
|
|
@@ -25317,10 +25230,8 @@ main();
|
|
|
25317
25230
|
|
|
25318
25231
|
```python
|
|
25319
25232
|
from agentmail import AgentMail
|
|
25320
|
-
from agentmail.environment import AgentMailEnvironment
|
|
25321
25233
|
|
|
25322
25234
|
client = AgentMail(
|
|
25323
|
-
environment=AgentMailEnvironment.PROD,
|
|
25324
25235
|
api_key="YOUR_TOKEN_HERE"
|
|
25325
25236
|
)
|
|
25326
25237
|
|
|
@@ -25684,11 +25595,10 @@ components:
|
|
|
25684
25595
|
## SDK Code Examples
|
|
25685
25596
|
|
|
25686
25597
|
```typescript
|
|
25687
|
-
import { AgentMailClient
|
|
25598
|
+
import { AgentMailClient } from "agentmail";
|
|
25688
25599
|
|
|
25689
25600
|
async function main() {
|
|
25690
25601
|
const client = new AgentMailClient({
|
|
25691
|
-
environment: AgentMailEnvironment.Prod,
|
|
25692
25602
|
apiKey: "YOUR_TOKEN_HERE",
|
|
25693
25603
|
});
|
|
25694
25604
|
await client.pods.threads.list("pod_id", {});
|
|
@@ -25699,10 +25609,8 @@ main();
|
|
|
25699
25609
|
|
|
25700
25610
|
```python
|
|
25701
25611
|
from agentmail import AgentMail
|
|
25702
|
-
from agentmail.environment import AgentMailEnvironment
|
|
25703
25612
|
|
|
25704
25613
|
client = AgentMail(
|
|
25705
|
-
environment=AgentMailEnvironment.PROD,
|
|
25706
25614
|
api_key="YOUR_TOKEN_HERE"
|
|
25707
25615
|
)
|
|
25708
25616
|
|
|
@@ -26143,11 +26051,10 @@ components:
|
|
|
26143
26051
|
## SDK Code Examples
|
|
26144
26052
|
|
|
26145
26053
|
```typescript
|
|
26146
|
-
import { AgentMailClient
|
|
26054
|
+
import { AgentMailClient } from "agentmail";
|
|
26147
26055
|
|
|
26148
26056
|
async function main() {
|
|
26149
26057
|
const client = new AgentMailClient({
|
|
26150
|
-
environment: AgentMailEnvironment.Prod,
|
|
26151
26058
|
apiKey: "YOUR_TOKEN_HERE",
|
|
26152
26059
|
});
|
|
26153
26060
|
await client.pods.threads.get("pod_id", "thread_id");
|
|
@@ -26158,10 +26065,8 @@ main();
|
|
|
26158
26065
|
|
|
26159
26066
|
```python
|
|
26160
26067
|
from agentmail import AgentMail
|
|
26161
|
-
from agentmail.environment import AgentMailEnvironment
|
|
26162
26068
|
|
|
26163
26069
|
client = AgentMail(
|
|
26164
|
-
environment=AgentMailEnvironment.PROD,
|
|
26165
26070
|
api_key="YOUR_TOKEN_HERE"
|
|
26166
26071
|
)
|
|
26167
26072
|
|
|
@@ -26382,11 +26287,10 @@ components:
|
|
|
26382
26287
|
## SDK Code Examples
|
|
26383
26288
|
|
|
26384
26289
|
```typescript
|
|
26385
|
-
import { AgentMailClient
|
|
26290
|
+
import { AgentMailClient } from "agentmail";
|
|
26386
26291
|
|
|
26387
26292
|
async function main() {
|
|
26388
26293
|
const client = new AgentMailClient({
|
|
26389
|
-
environment: AgentMailEnvironment.Prod,
|
|
26390
26294
|
apiKey: "YOUR_TOKEN_HERE",
|
|
26391
26295
|
});
|
|
26392
26296
|
await client.pods.threads.getAttachment("pod_id", "thread_id", "attachment_id");
|
|
@@ -26397,10 +26301,8 @@ main();
|
|
|
26397
26301
|
|
|
26398
26302
|
```python
|
|
26399
26303
|
from agentmail import AgentMail
|
|
26400
|
-
from agentmail.environment import AgentMailEnvironment
|
|
26401
26304
|
|
|
26402
26305
|
client = AgentMail(
|
|
26403
|
-
environment=AgentMailEnvironment.PROD,
|
|
26404
26306
|
api_key="YOUR_TOKEN_HERE"
|
|
26405
26307
|
)
|
|
26406
26308
|
|
|
@@ -26743,11 +26645,10 @@ components:
|
|
|
26743
26645
|
## SDK Code Examples
|
|
26744
26646
|
|
|
26745
26647
|
```typescript
|
|
26746
|
-
import { AgentMailClient
|
|
26648
|
+
import { AgentMailClient } from "agentmail";
|
|
26747
26649
|
|
|
26748
26650
|
async function main() {
|
|
26749
26651
|
const client = new AgentMailClient({
|
|
26750
|
-
environment: AgentMailEnvironment.Prod,
|
|
26751
26652
|
apiKey: "YOUR_TOKEN_HERE",
|
|
26752
26653
|
});
|
|
26753
26654
|
await client.pods.drafts.list("pod_id", {});
|
|
@@ -26758,10 +26659,8 @@ main();
|
|
|
26758
26659
|
|
|
26759
26660
|
```python
|
|
26760
26661
|
from agentmail import AgentMail
|
|
26761
|
-
from agentmail.environment import AgentMailEnvironment
|
|
26762
26662
|
|
|
26763
26663
|
client = AgentMail(
|
|
26764
|
-
environment=AgentMailEnvironment.PROD,
|
|
26765
26664
|
api_key="YOUR_TOKEN_HERE"
|
|
26766
26665
|
)
|
|
26767
26666
|
|
|
@@ -27074,11 +26973,10 @@ components:
|
|
|
27074
26973
|
## SDK Code Examples
|
|
27075
26974
|
|
|
27076
26975
|
```typescript
|
|
27077
|
-
import { AgentMailClient
|
|
26976
|
+
import { AgentMailClient } from "agentmail";
|
|
27078
26977
|
|
|
27079
26978
|
async function main() {
|
|
27080
26979
|
const client = new AgentMailClient({
|
|
27081
|
-
environment: AgentMailEnvironment.Prod,
|
|
27082
26980
|
apiKey: "YOUR_TOKEN_HERE",
|
|
27083
26981
|
});
|
|
27084
26982
|
await client.pods.drafts.get("pod_id", "draft_id");
|
|
@@ -27089,10 +26987,8 @@ main();
|
|
|
27089
26987
|
|
|
27090
26988
|
```python
|
|
27091
26989
|
from agentmail import AgentMail
|
|
27092
|
-
from agentmail.environment import AgentMailEnvironment
|
|
27093
26990
|
|
|
27094
26991
|
client = AgentMail(
|
|
27095
|
-
environment=AgentMailEnvironment.PROD,
|
|
27096
26992
|
api_key="YOUR_TOKEN_HERE"
|
|
27097
26993
|
)
|
|
27098
26994
|
|
|
@@ -27313,11 +27209,10 @@ components:
|
|
|
27313
27209
|
## SDK Code Examples
|
|
27314
27210
|
|
|
27315
27211
|
```typescript
|
|
27316
|
-
import { AgentMailClient
|
|
27212
|
+
import { AgentMailClient } from "agentmail";
|
|
27317
27213
|
|
|
27318
27214
|
async function main() {
|
|
27319
27215
|
const client = new AgentMailClient({
|
|
27320
|
-
environment: AgentMailEnvironment.Prod,
|
|
27321
27216
|
apiKey: "YOUR_TOKEN_HERE",
|
|
27322
27217
|
});
|
|
27323
27218
|
await client.pods.drafts.getAttachment("pod_id", "draft_id", "attachment_id");
|
|
@@ -27328,10 +27223,8 @@ main();
|
|
|
27328
27223
|
|
|
27329
27224
|
```python
|
|
27330
27225
|
from agentmail import AgentMail
|
|
27331
|
-
from agentmail.environment import AgentMailEnvironment
|
|
27332
27226
|
|
|
27333
27227
|
client = AgentMail(
|
|
27334
|
-
environment=AgentMailEnvironment.PROD,
|
|
27335
27228
|
api_key="YOUR_TOKEN_HERE"
|
|
27336
27229
|
)
|
|
27337
27230
|
|
|
@@ -27562,11 +27455,10 @@ components:
|
|
|
27562
27455
|
## SDK Code Examples
|
|
27563
27456
|
|
|
27564
27457
|
```typescript
|
|
27565
|
-
import { AgentMailClient
|
|
27458
|
+
import { AgentMailClient } from "agentmail";
|
|
27566
27459
|
|
|
27567
27460
|
async function main() {
|
|
27568
27461
|
const client = new AgentMailClient({
|
|
27569
|
-
environment: AgentMailEnvironment.Prod,
|
|
27570
27462
|
apiKey: "YOUR_TOKEN_HERE",
|
|
27571
27463
|
});
|
|
27572
27464
|
await client.pods.domains.list("pod_id", {});
|
|
@@ -27577,10 +27469,8 @@ main();
|
|
|
27577
27469
|
|
|
27578
27470
|
```python
|
|
27579
27471
|
from agentmail import AgentMail
|
|
27580
|
-
from agentmail.environment import AgentMailEnvironment
|
|
27581
27472
|
|
|
27582
27473
|
client = AgentMail(
|
|
27583
|
-
environment=AgentMailEnvironment.PROD,
|
|
27584
27474
|
api_key="YOUR_TOKEN_HERE"
|
|
27585
27475
|
)
|
|
27586
27476
|
|
|
@@ -27867,11 +27757,10 @@ components:
|
|
|
27867
27757
|
## SDK Code Examples
|
|
27868
27758
|
|
|
27869
27759
|
```typescript
|
|
27870
|
-
import { AgentMailClient
|
|
27760
|
+
import { AgentMailClient } from "agentmail";
|
|
27871
27761
|
|
|
27872
27762
|
async function main() {
|
|
27873
27763
|
const client = new AgentMailClient({
|
|
27874
|
-
environment: AgentMailEnvironment.Prod,
|
|
27875
27764
|
apiKey: "YOUR_TOKEN_HERE",
|
|
27876
27765
|
});
|
|
27877
27766
|
await client.pods.domains.create("pod_id", {
|
|
@@ -27885,10 +27774,8 @@ main();
|
|
|
27885
27774
|
|
|
27886
27775
|
```python
|
|
27887
27776
|
from agentmail import AgentMail
|
|
27888
|
-
from agentmail.environment import AgentMailEnvironment
|
|
27889
27777
|
|
|
27890
27778
|
client = AgentMail(
|
|
27891
|
-
environment=AgentMailEnvironment.PROD,
|
|
27892
27779
|
api_key="YOUR_TOKEN_HERE"
|
|
27893
27780
|
)
|
|
27894
27781
|
|
|
@@ -28084,11 +27971,10 @@ components:
|
|
|
28084
27971
|
## SDK Code Examples
|
|
28085
27972
|
|
|
28086
27973
|
```typescript
|
|
28087
|
-
import { AgentMailClient
|
|
27974
|
+
import { AgentMailClient } from "agentmail";
|
|
28088
27975
|
|
|
28089
27976
|
async function main() {
|
|
28090
27977
|
const client = new AgentMailClient({
|
|
28091
|
-
environment: AgentMailEnvironment.Prod,
|
|
28092
27978
|
apiKey: "YOUR_TOKEN_HERE",
|
|
28093
27979
|
});
|
|
28094
27980
|
await client.pods.domains.delete("pod_id", "domain_id");
|
|
@@ -28099,10 +27985,8 @@ main();
|
|
|
28099
27985
|
|
|
28100
27986
|
```python
|
|
28101
27987
|
from agentmail import AgentMail
|
|
28102
|
-
from agentmail.environment import AgentMailEnvironment
|
|
28103
27988
|
|
|
28104
27989
|
client = AgentMail(
|
|
28105
|
-
environment=AgentMailEnvironment.PROD,
|
|
28106
27990
|
api_key="YOUR_TOKEN_HERE"
|
|
28107
27991
|
)
|
|
28108
27992
|
|
|
@@ -28309,11 +28193,10 @@ components:
|
|
|
28309
28193
|
## SDK Code Examples
|
|
28310
28194
|
|
|
28311
28195
|
```typescript
|
|
28312
|
-
import { AgentMailClient
|
|
28196
|
+
import { AgentMailClient } from "agentmail";
|
|
28313
28197
|
|
|
28314
28198
|
async function main() {
|
|
28315
28199
|
const client = new AgentMailClient({
|
|
28316
|
-
environment: AgentMailEnvironment.Prod,
|
|
28317
28200
|
apiKey: "YOUR_TOKEN_HERE",
|
|
28318
28201
|
});
|
|
28319
28202
|
await client.organizations.get();
|
|
@@ -28324,10 +28207,8 @@ main();
|
|
|
28324
28207
|
|
|
28325
28208
|
```python
|
|
28326
28209
|
from agentmail import AgentMail
|
|
28327
|
-
from agentmail.environment import AgentMailEnvironment
|
|
28328
28210
|
|
|
28329
28211
|
client = AgentMail(
|
|
28330
|
-
environment=AgentMailEnvironment.PROD,
|
|
28331
28212
|
api_key="YOUR_TOKEN_HERE"
|
|
28332
28213
|
)
|
|
28333
28214
|
|