agentmail 0.2.16 → 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.
Files changed (68) hide show
  1. package/README.md +0 -681
  2. package/dist/cjs/BaseClient.js +2 -2
  3. package/dist/cjs/api/resources/websockets/client/Socket.d.ts +1 -1
  4. package/dist/cjs/api/resources/websockets/types/Error_.d.ts +6 -0
  5. package/dist/cjs/api/resources/websockets/types/Error_.js +3 -0
  6. package/dist/cjs/api/resources/websockets/types/index.d.ts +1 -0
  7. package/dist/cjs/api/resources/websockets/types/index.js +1 -0
  8. package/dist/cjs/api/types/ErrorMessage.d.ts +4 -0
  9. package/dist/cjs/api/types/ErrorMessage.js +3 -0
  10. package/dist/cjs/api/types/ErrorResponse.d.ts +1 -2
  11. package/dist/cjs/api/types/index.d.ts +1 -0
  12. package/dist/cjs/api/types/index.js +1 -0
  13. package/dist/cjs/core/fetcher/Fetcher.js +7 -1
  14. package/dist/cjs/core/schemas/builders/list/list.js +12 -17
  15. package/dist/cjs/core/schemas/builders/object/object.js +102 -40
  16. package/dist/cjs/core/schemas/builders/object-like/getObjectLikeUtils.js +10 -3
  17. package/dist/cjs/core/schemas/builders/record/record.js +26 -25
  18. package/dist/cjs/core/schemas/builders/union/union.js +9 -12
  19. package/dist/cjs/core/schemas/utils/isPlainObject.js +4 -6
  20. package/dist/cjs/serialization/resources/websockets/client/socket/WebsocketsSocketResponse.d.ts +3 -2
  21. package/dist/cjs/serialization/resources/websockets/client/socket/WebsocketsSocketResponse.js +2 -0
  22. package/dist/cjs/serialization/resources/websockets/types/Error_.d.ts +13 -0
  23. package/dist/cjs/serialization/resources/websockets/types/Error_.js +45 -0
  24. package/dist/cjs/serialization/resources/websockets/types/index.d.ts +1 -0
  25. package/dist/cjs/serialization/resources/websockets/types/index.js +1 -0
  26. package/dist/cjs/serialization/types/ErrorMessage.d.ts +7 -0
  27. package/dist/cjs/serialization/types/ErrorMessage.js +39 -0
  28. package/dist/cjs/serialization/types/ErrorResponse.d.ts +2 -1
  29. package/dist/cjs/serialization/types/ErrorResponse.js +2 -1
  30. package/dist/cjs/serialization/types/index.d.ts +1 -0
  31. package/dist/cjs/serialization/types/index.js +1 -0
  32. package/dist/cjs/version.d.ts +1 -1
  33. package/dist/cjs/version.js +1 -1
  34. package/dist/esm/BaseClient.mjs +2 -2
  35. package/dist/esm/api/resources/websockets/client/Socket.d.mts +1 -1
  36. package/dist/esm/api/resources/websockets/types/Error_.d.mts +6 -0
  37. package/dist/esm/api/resources/websockets/types/Error_.mjs +2 -0
  38. package/dist/esm/api/resources/websockets/types/index.d.mts +1 -0
  39. package/dist/esm/api/resources/websockets/types/index.mjs +1 -0
  40. package/dist/esm/api/types/ErrorMessage.d.mts +4 -0
  41. package/dist/esm/api/types/ErrorMessage.mjs +2 -0
  42. package/dist/esm/api/types/ErrorResponse.d.mts +1 -2
  43. package/dist/esm/api/types/index.d.mts +1 -0
  44. package/dist/esm/api/types/index.mjs +1 -0
  45. package/dist/esm/core/fetcher/Fetcher.mjs +7 -1
  46. package/dist/esm/core/schemas/builders/list/list.mjs +12 -17
  47. package/dist/esm/core/schemas/builders/object/object.mjs +102 -40
  48. package/dist/esm/core/schemas/builders/object-like/getObjectLikeUtils.mjs +10 -3
  49. package/dist/esm/core/schemas/builders/record/record.mjs +26 -25
  50. package/dist/esm/core/schemas/builders/union/union.mjs +9 -12
  51. package/dist/esm/core/schemas/utils/isPlainObject.mjs +4 -6
  52. package/dist/esm/serialization/resources/websockets/client/socket/WebsocketsSocketResponse.d.mts +3 -2
  53. package/dist/esm/serialization/resources/websockets/client/socket/WebsocketsSocketResponse.mjs +2 -0
  54. package/dist/esm/serialization/resources/websockets/types/Error_.d.mts +13 -0
  55. package/dist/esm/serialization/resources/websockets/types/Error_.mjs +9 -0
  56. package/dist/esm/serialization/resources/websockets/types/index.d.mts +1 -0
  57. package/dist/esm/serialization/resources/websockets/types/index.mjs +1 -0
  58. package/dist/esm/serialization/types/ErrorMessage.d.mts +7 -0
  59. package/dist/esm/serialization/types/ErrorMessage.mjs +3 -0
  60. package/dist/esm/serialization/types/ErrorResponse.d.mts +2 -1
  61. package/dist/esm/serialization/types/ErrorResponse.mjs +2 -1
  62. package/dist/esm/serialization/types/index.d.mts +1 -0
  63. package/dist/esm/serialization/types/index.mjs +1 -0
  64. package/dist/esm/version.d.mts +1 -1
  65. package/dist/esm/version.mjs +1 -1
  66. package/dist/llms-full.txt +144 -260
  67. package/dist/llms.txt +1 -0
  68. package/package.json +2 -2
@@ -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, AgentMailEnvironment } from "agentmail";
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, AgentMailEnvironment } from "agentmail";
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, AgentMailEnvironment } from "agentmail";
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, AgentMailEnvironment } from "agentmail";
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, AgentMailEnvironment } from "agentmail";
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, AgentMailEnvironment } from "agentmail";
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, AgentMailEnvironment } from "agentmail";
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, AgentMailEnvironment } from "agentmail";
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, AgentMailEnvironment } from "agentmail";
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, AgentMailEnvironment } from "agentmail";
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, AgentMailEnvironment } from "agentmail";
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, AgentMailEnvironment } from "agentmail";
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, AgentMailEnvironment } from "agentmail";
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, AgentMailEnvironment } from "agentmail";
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, AgentMailEnvironment } from "agentmail";
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, AgentMailEnvironment } from "agentmail";
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, AgentMailEnvironment } from "agentmail";
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, AgentMailEnvironment } from "agentmail";
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, AgentMailEnvironment } from "agentmail";
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, AgentMailEnvironment } from "agentmail";
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, AgentMailEnvironment } from "agentmail";
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, AgentMailEnvironment } from "agentmail";
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, AgentMailEnvironment } from "agentmail";
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, AgentMailEnvironment } from "agentmail";
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, AgentMailEnvironment } from "agentmail";
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, AgentMailEnvironment } from "agentmail";
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, AgentMailEnvironment } from "agentmail";
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, AgentMailEnvironment } from "agentmail";
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, AgentMailEnvironment } from "agentmail";
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, AgentMailEnvironment } from "agentmail";
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, AgentMailEnvironment } from "agentmail";
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, AgentMailEnvironment } from "agentmail";
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, AgentMailEnvironment } from "agentmail";
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, AgentMailEnvironment } from "agentmail";
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, AgentMailEnvironment } from "agentmail";
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, AgentMailEnvironment } from "agentmail";
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, AgentMailEnvironment } from "agentmail";
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, AgentMailEnvironment } from "agentmail";
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, AgentMailEnvironment } from "agentmail";
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, AgentMailEnvironment } from "agentmail";
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, AgentMailEnvironment } from "agentmail";
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, AgentMailEnvironment } from "agentmail";
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, AgentMailEnvironment } from "agentmail";
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
@@ -21917,6 +21840,9 @@ servers:
21917
21840
  prod-x402:
21918
21841
  url: wss://x402.ws.agentmail.to/
21919
21842
  protocol: wss
21843
+ eu-prod:
21844
+ url: wss://ws.agentmail.eu/
21845
+ protocol: wss
21920
21846
  components:
21921
21847
  messages:
21922
21848
  subpackage_websockets.websockets-server-0-subscribed:
@@ -21951,6 +21877,10 @@ components:
21951
21877
  name: domain_verified
21952
21878
  payload:
21953
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'
21954
21884
  schemas:
21955
21885
  type_events:EventType:
21956
21886
  type: string
@@ -22619,6 +22549,26 @@ components:
22619
22549
  - event_type
22620
22550
  - event_id
22621
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
22622
22572
  type_websockets:Subscribe:
22623
22573
  type: object
22624
22574
  properties:
@@ -22767,11 +22717,10 @@ components:
22767
22717
  ## SDK Code Examples
22768
22718
 
22769
22719
  ```typescript
22770
- import { AgentMailClient, AgentMailEnvironment } from "agentmail";
22720
+ import { AgentMailClient } from "agentmail";
22771
22721
 
22772
22722
  async function main() {
22773
22723
  const client = new AgentMailClient({
22774
- environment: AgentMailEnvironment.Prod,
22775
22724
  apiKey: "YOUR_TOKEN_HERE",
22776
22725
  });
22777
22726
  await client.metrics.list({
@@ -22785,11 +22734,9 @@ main();
22785
22734
 
22786
22735
  ```python
22787
22736
  from agentmail import AgentMail
22788
- from agentmail.environment import AgentMailEnvironment
22789
22737
  from datetime import datetime
22790
22738
 
22791
22739
  client = AgentMail(
22792
- environment=AgentMailEnvironment.PROD,
22793
22740
  api_key="YOUR_TOKEN_HERE"
22794
22741
  )
22795
22742
 
@@ -23024,11 +22971,10 @@ components:
23024
22971
  ## SDK Code Examples
23025
22972
 
23026
22973
  ```typescript
23027
- import { AgentMailClient, AgentMailEnvironment } from "agentmail";
22974
+ import { AgentMailClient } from "agentmail";
23028
22975
 
23029
22976
  async function main() {
23030
22977
  const client = new AgentMailClient({
23031
- environment: AgentMailEnvironment.Prod,
23032
22978
  apiKey: "YOUR_TOKEN_HERE",
23033
22979
  });
23034
22980
  await client.apiKeys.list({});
@@ -23039,10 +22985,8 @@ main();
23039
22985
 
23040
22986
  ```python
23041
22987
  from agentmail import AgentMail
23042
- from agentmail.environment import AgentMailEnvironment
23043
22988
 
23044
22989
  client = AgentMail(
23045
- environment=AgentMailEnvironment.PROD,
23046
22990
  api_key="YOUR_TOKEN_HERE"
23047
22991
  )
23048
22992
 
@@ -23259,11 +23203,10 @@ components:
23259
23203
  ## SDK Code Examples
23260
23204
 
23261
23205
  ```typescript
23262
- import { AgentMailClient, AgentMailEnvironment } from "agentmail";
23206
+ import { AgentMailClient } from "agentmail";
23263
23207
 
23264
23208
  async function main() {
23265
23209
  const client = new AgentMailClient({
23266
- environment: AgentMailEnvironment.Prod,
23267
23210
  apiKey: "YOUR_TOKEN_HERE",
23268
23211
  });
23269
23212
  await client.apiKeys.create({
@@ -23276,10 +23219,8 @@ main();
23276
23219
 
23277
23220
  ```python
23278
23221
  from agentmail import AgentMail
23279
- from agentmail.environment import AgentMailEnvironment
23280
23222
 
23281
23223
  client = AgentMail(
23282
- environment=AgentMailEnvironment.PROD,
23283
23224
  api_key="YOUR_TOKEN_HERE"
23284
23225
  )
23285
23226
 
@@ -23461,11 +23402,10 @@ components:
23461
23402
  ## SDK Code Examples
23462
23403
 
23463
23404
  ```typescript
23464
- import { AgentMailClient, AgentMailEnvironment } from "agentmail";
23405
+ import { AgentMailClient } from "agentmail";
23465
23406
 
23466
23407
  async function main() {
23467
23408
  const client = new AgentMailClient({
23468
- environment: AgentMailEnvironment.Prod,
23469
23409
  apiKey: "YOUR_TOKEN_HERE",
23470
23410
  });
23471
23411
  await client.apiKeys.delete("api_key");
@@ -23476,10 +23416,8 @@ main();
23476
23416
 
23477
23417
  ```python
23478
23418
  from agentmail import AgentMail
23479
- from agentmail.environment import AgentMailEnvironment
23480
23419
 
23481
23420
  client = AgentMail(
23482
- environment=AgentMailEnvironment.PROD,
23483
23421
  api_key="YOUR_TOKEN_HERE"
23484
23422
  )
23485
23423
 
@@ -23695,11 +23633,10 @@ components:
23695
23633
  ## SDK Code Examples
23696
23634
 
23697
23635
  ```typescript
23698
- import { AgentMailClient, AgentMailEnvironment } from "agentmail";
23636
+ import { AgentMailClient } from "agentmail";
23699
23637
 
23700
23638
  async function main() {
23701
23639
  const client = new AgentMailClient({
23702
- environment: AgentMailEnvironment.Prod,
23703
23640
  apiKey: "YOUR_TOKEN_HERE",
23704
23641
  });
23705
23642
  await client.pods.list({});
@@ -23710,10 +23647,8 @@ main();
23710
23647
 
23711
23648
  ```python
23712
23649
  from agentmail import AgentMail
23713
- from agentmail.environment import AgentMailEnvironment
23714
23650
 
23715
23651
  client = AgentMail(
23716
- environment=AgentMailEnvironment.PROD,
23717
23652
  api_key="YOUR_TOKEN_HERE"
23718
23653
  )
23719
23654
 
@@ -23921,11 +23856,10 @@ components:
23921
23856
  ## SDK Code Examples
23922
23857
 
23923
23858
  ```typescript
23924
- import { AgentMailClient, AgentMailEnvironment } from "agentmail";
23859
+ import { AgentMailClient } from "agentmail";
23925
23860
 
23926
23861
  async function main() {
23927
23862
  const client = new AgentMailClient({
23928
- environment: AgentMailEnvironment.Prod,
23929
23863
  apiKey: "YOUR_TOKEN_HERE",
23930
23864
  });
23931
23865
  await client.pods.get("pod_id");
@@ -23936,10 +23870,8 @@ main();
23936
23870
 
23937
23871
  ```python
23938
23872
  from agentmail import AgentMail
23939
- from agentmail.environment import AgentMailEnvironment
23940
23873
 
23941
23874
  client = AgentMail(
23942
- environment=AgentMailEnvironment.PROD,
23943
23875
  api_key="YOUR_TOKEN_HERE"
23944
23876
  )
23945
23877
 
@@ -24157,11 +24089,10 @@ components:
24157
24089
  ## SDK Code Examples
24158
24090
 
24159
24091
  ```typescript
24160
- import { AgentMailClient, AgentMailEnvironment } from "agentmail";
24092
+ import { AgentMailClient } from "agentmail";
24161
24093
 
24162
24094
  async function main() {
24163
24095
  const client = new AgentMailClient({
24164
- environment: AgentMailEnvironment.Prod,
24165
24096
  apiKey: "YOUR_TOKEN_HERE",
24166
24097
  });
24167
24098
  await client.pods.create({});
@@ -24172,10 +24103,8 @@ main();
24172
24103
 
24173
24104
  ```python
24174
24105
  from agentmail import AgentMail
24175
- from agentmail.environment import AgentMailEnvironment
24176
24106
 
24177
24107
  client = AgentMail(
24178
- environment=AgentMailEnvironment.PROD,
24179
24108
  api_key="YOUR_TOKEN_HERE"
24180
24109
  )
24181
24110
 
@@ -24353,11 +24282,10 @@ components:
24353
24282
  ## SDK Code Examples
24354
24283
 
24355
24284
  ```typescript
24356
- import { AgentMailClient, AgentMailEnvironment } from "agentmail";
24285
+ import { AgentMailClient } from "agentmail";
24357
24286
 
24358
24287
  async function main() {
24359
24288
  const client = new AgentMailClient({
24360
- environment: AgentMailEnvironment.Prod,
24361
24289
  apiKey: "YOUR_TOKEN_HERE",
24362
24290
  });
24363
24291
  await client.pods.delete("pod_id");
@@ -24368,10 +24296,8 @@ main();
24368
24296
 
24369
24297
  ```python
24370
24298
  from agentmail import AgentMail
24371
- from agentmail.environment import AgentMailEnvironment
24372
24299
 
24373
24300
  client = AgentMail(
24374
- environment=AgentMailEnvironment.PROD,
24375
24301
  api_key="YOUR_TOKEN_HERE"
24376
24302
  )
24377
24303
 
@@ -24600,11 +24526,10 @@ components:
24600
24526
  ## SDK Code Examples
24601
24527
 
24602
24528
  ```typescript
24603
- import { AgentMailClient, AgentMailEnvironment } from "agentmail";
24529
+ import { AgentMailClient } from "agentmail";
24604
24530
 
24605
24531
  async function main() {
24606
24532
  const client = new AgentMailClient({
24607
- environment: AgentMailEnvironment.Prod,
24608
24533
  apiKey: "YOUR_TOKEN_HERE",
24609
24534
  });
24610
24535
  await client.pods.inboxes.list("pod_id", {});
@@ -24615,10 +24540,8 @@ main();
24615
24540
 
24616
24541
  ```python
24617
24542
  from agentmail import AgentMail
24618
- from agentmail.environment import AgentMailEnvironment
24619
24543
 
24620
24544
  client = AgentMail(
24621
- environment=AgentMailEnvironment.PROD,
24622
24545
  api_key="YOUR_TOKEN_HERE"
24623
24546
  )
24624
24547
 
@@ -24838,11 +24761,10 @@ components:
24838
24761
  ## SDK Code Examples
24839
24762
 
24840
24763
  ```typescript
24841
- import { AgentMailClient, AgentMailEnvironment } from "agentmail";
24764
+ import { AgentMailClient } from "agentmail";
24842
24765
 
24843
24766
  async function main() {
24844
24767
  const client = new AgentMailClient({
24845
- environment: AgentMailEnvironment.Prod,
24846
24768
  apiKey: "YOUR_TOKEN_HERE",
24847
24769
  });
24848
24770
  await client.pods.inboxes.get("pod_id", "inbox_id");
@@ -24853,10 +24775,8 @@ main();
24853
24775
 
24854
24776
  ```python
24855
24777
  from agentmail import AgentMail
24856
- from agentmail.environment import AgentMailEnvironment
24857
24778
 
24858
24779
  client = AgentMail(
24859
- environment=AgentMailEnvironment.PROD,
24860
24780
  api_key="YOUR_TOKEN_HERE"
24861
24781
  )
24862
24782
 
@@ -25093,11 +25013,10 @@ components:
25093
25013
  ## SDK Code Examples
25094
25014
 
25095
25015
  ```typescript
25096
- import { AgentMailClient, AgentMailEnvironment } from "agentmail";
25016
+ import { AgentMailClient } from "agentmail";
25097
25017
 
25098
25018
  async function main() {
25099
25019
  const client = new AgentMailClient({
25100
- environment: AgentMailEnvironment.Prod,
25101
25020
  apiKey: "YOUR_TOKEN_HERE",
25102
25021
  });
25103
25022
  await client.pods.inboxes.create("pod_id", {});
@@ -25108,10 +25027,8 @@ main();
25108
25027
 
25109
25028
  ```python
25110
25029
  from agentmail import AgentMail
25111
- from agentmail.environment import AgentMailEnvironment
25112
25030
 
25113
25031
  client = AgentMail(
25114
- environment=AgentMailEnvironment.PROD,
25115
25032
  api_key="YOUR_TOKEN_HERE"
25116
25033
  )
25117
25034
 
@@ -25299,11 +25216,10 @@ components:
25299
25216
  ## SDK Code Examples
25300
25217
 
25301
25218
  ```typescript
25302
- import { AgentMailClient, AgentMailEnvironment } from "agentmail";
25219
+ import { AgentMailClient } from "agentmail";
25303
25220
 
25304
25221
  async function main() {
25305
25222
  const client = new AgentMailClient({
25306
- environment: AgentMailEnvironment.Prod,
25307
25223
  apiKey: "YOUR_TOKEN_HERE",
25308
25224
  });
25309
25225
  await client.pods.inboxes.delete("pod_id", "inbox_id");
@@ -25314,10 +25230,8 @@ main();
25314
25230
 
25315
25231
  ```python
25316
25232
  from agentmail import AgentMail
25317
- from agentmail.environment import AgentMailEnvironment
25318
25233
 
25319
25234
  client = AgentMail(
25320
- environment=AgentMailEnvironment.PROD,
25321
25235
  api_key="YOUR_TOKEN_HERE"
25322
25236
  )
25323
25237
 
@@ -25681,11 +25595,10 @@ components:
25681
25595
  ## SDK Code Examples
25682
25596
 
25683
25597
  ```typescript
25684
- import { AgentMailClient, AgentMailEnvironment } from "agentmail";
25598
+ import { AgentMailClient } from "agentmail";
25685
25599
 
25686
25600
  async function main() {
25687
25601
  const client = new AgentMailClient({
25688
- environment: AgentMailEnvironment.Prod,
25689
25602
  apiKey: "YOUR_TOKEN_HERE",
25690
25603
  });
25691
25604
  await client.pods.threads.list("pod_id", {});
@@ -25696,10 +25609,8 @@ main();
25696
25609
 
25697
25610
  ```python
25698
25611
  from agentmail import AgentMail
25699
- from agentmail.environment import AgentMailEnvironment
25700
25612
 
25701
25613
  client = AgentMail(
25702
- environment=AgentMailEnvironment.PROD,
25703
25614
  api_key="YOUR_TOKEN_HERE"
25704
25615
  )
25705
25616
 
@@ -26140,11 +26051,10 @@ components:
26140
26051
  ## SDK Code Examples
26141
26052
 
26142
26053
  ```typescript
26143
- import { AgentMailClient, AgentMailEnvironment } from "agentmail";
26054
+ import { AgentMailClient } from "agentmail";
26144
26055
 
26145
26056
  async function main() {
26146
26057
  const client = new AgentMailClient({
26147
- environment: AgentMailEnvironment.Prod,
26148
26058
  apiKey: "YOUR_TOKEN_HERE",
26149
26059
  });
26150
26060
  await client.pods.threads.get("pod_id", "thread_id");
@@ -26155,10 +26065,8 @@ main();
26155
26065
 
26156
26066
  ```python
26157
26067
  from agentmail import AgentMail
26158
- from agentmail.environment import AgentMailEnvironment
26159
26068
 
26160
26069
  client = AgentMail(
26161
- environment=AgentMailEnvironment.PROD,
26162
26070
  api_key="YOUR_TOKEN_HERE"
26163
26071
  )
26164
26072
 
@@ -26379,11 +26287,10 @@ components:
26379
26287
  ## SDK Code Examples
26380
26288
 
26381
26289
  ```typescript
26382
- import { AgentMailClient, AgentMailEnvironment } from "agentmail";
26290
+ import { AgentMailClient } from "agentmail";
26383
26291
 
26384
26292
  async function main() {
26385
26293
  const client = new AgentMailClient({
26386
- environment: AgentMailEnvironment.Prod,
26387
26294
  apiKey: "YOUR_TOKEN_HERE",
26388
26295
  });
26389
26296
  await client.pods.threads.getAttachment("pod_id", "thread_id", "attachment_id");
@@ -26394,10 +26301,8 @@ main();
26394
26301
 
26395
26302
  ```python
26396
26303
  from agentmail import AgentMail
26397
- from agentmail.environment import AgentMailEnvironment
26398
26304
 
26399
26305
  client = AgentMail(
26400
- environment=AgentMailEnvironment.PROD,
26401
26306
  api_key="YOUR_TOKEN_HERE"
26402
26307
  )
26403
26308
 
@@ -26740,11 +26645,10 @@ components:
26740
26645
  ## SDK Code Examples
26741
26646
 
26742
26647
  ```typescript
26743
- import { AgentMailClient, AgentMailEnvironment } from "agentmail";
26648
+ import { AgentMailClient } from "agentmail";
26744
26649
 
26745
26650
  async function main() {
26746
26651
  const client = new AgentMailClient({
26747
- environment: AgentMailEnvironment.Prod,
26748
26652
  apiKey: "YOUR_TOKEN_HERE",
26749
26653
  });
26750
26654
  await client.pods.drafts.list("pod_id", {});
@@ -26755,10 +26659,8 @@ main();
26755
26659
 
26756
26660
  ```python
26757
26661
  from agentmail import AgentMail
26758
- from agentmail.environment import AgentMailEnvironment
26759
26662
 
26760
26663
  client = AgentMail(
26761
- environment=AgentMailEnvironment.PROD,
26762
26664
  api_key="YOUR_TOKEN_HERE"
26763
26665
  )
26764
26666
 
@@ -27071,11 +26973,10 @@ components:
27071
26973
  ## SDK Code Examples
27072
26974
 
27073
26975
  ```typescript
27074
- import { AgentMailClient, AgentMailEnvironment } from "agentmail";
26976
+ import { AgentMailClient } from "agentmail";
27075
26977
 
27076
26978
  async function main() {
27077
26979
  const client = new AgentMailClient({
27078
- environment: AgentMailEnvironment.Prod,
27079
26980
  apiKey: "YOUR_TOKEN_HERE",
27080
26981
  });
27081
26982
  await client.pods.drafts.get("pod_id", "draft_id");
@@ -27086,10 +26987,8 @@ main();
27086
26987
 
27087
26988
  ```python
27088
26989
  from agentmail import AgentMail
27089
- from agentmail.environment import AgentMailEnvironment
27090
26990
 
27091
26991
  client = AgentMail(
27092
- environment=AgentMailEnvironment.PROD,
27093
26992
  api_key="YOUR_TOKEN_HERE"
27094
26993
  )
27095
26994
 
@@ -27310,11 +27209,10 @@ components:
27310
27209
  ## SDK Code Examples
27311
27210
 
27312
27211
  ```typescript
27313
- import { AgentMailClient, AgentMailEnvironment } from "agentmail";
27212
+ import { AgentMailClient } from "agentmail";
27314
27213
 
27315
27214
  async function main() {
27316
27215
  const client = new AgentMailClient({
27317
- environment: AgentMailEnvironment.Prod,
27318
27216
  apiKey: "YOUR_TOKEN_HERE",
27319
27217
  });
27320
27218
  await client.pods.drafts.getAttachment("pod_id", "draft_id", "attachment_id");
@@ -27325,10 +27223,8 @@ main();
27325
27223
 
27326
27224
  ```python
27327
27225
  from agentmail import AgentMail
27328
- from agentmail.environment import AgentMailEnvironment
27329
27226
 
27330
27227
  client = AgentMail(
27331
- environment=AgentMailEnvironment.PROD,
27332
27228
  api_key="YOUR_TOKEN_HERE"
27333
27229
  )
27334
27230
 
@@ -27559,11 +27455,10 @@ components:
27559
27455
  ## SDK Code Examples
27560
27456
 
27561
27457
  ```typescript
27562
- import { AgentMailClient, AgentMailEnvironment } from "agentmail";
27458
+ import { AgentMailClient } from "agentmail";
27563
27459
 
27564
27460
  async function main() {
27565
27461
  const client = new AgentMailClient({
27566
- environment: AgentMailEnvironment.Prod,
27567
27462
  apiKey: "YOUR_TOKEN_HERE",
27568
27463
  });
27569
27464
  await client.pods.domains.list("pod_id", {});
@@ -27574,10 +27469,8 @@ main();
27574
27469
 
27575
27470
  ```python
27576
27471
  from agentmail import AgentMail
27577
- from agentmail.environment import AgentMailEnvironment
27578
27472
 
27579
27473
  client = AgentMail(
27580
- environment=AgentMailEnvironment.PROD,
27581
27474
  api_key="YOUR_TOKEN_HERE"
27582
27475
  )
27583
27476
 
@@ -27864,11 +27757,10 @@ components:
27864
27757
  ## SDK Code Examples
27865
27758
 
27866
27759
  ```typescript
27867
- import { AgentMailClient, AgentMailEnvironment } from "agentmail";
27760
+ import { AgentMailClient } from "agentmail";
27868
27761
 
27869
27762
  async function main() {
27870
27763
  const client = new AgentMailClient({
27871
- environment: AgentMailEnvironment.Prod,
27872
27764
  apiKey: "YOUR_TOKEN_HERE",
27873
27765
  });
27874
27766
  await client.pods.domains.create("pod_id", {
@@ -27882,10 +27774,8 @@ main();
27882
27774
 
27883
27775
  ```python
27884
27776
  from agentmail import AgentMail
27885
- from agentmail.environment import AgentMailEnvironment
27886
27777
 
27887
27778
  client = AgentMail(
27888
- environment=AgentMailEnvironment.PROD,
27889
27779
  api_key="YOUR_TOKEN_HERE"
27890
27780
  )
27891
27781
 
@@ -28081,11 +27971,10 @@ components:
28081
27971
  ## SDK Code Examples
28082
27972
 
28083
27973
  ```typescript
28084
- import { AgentMailClient, AgentMailEnvironment } from "agentmail";
27974
+ import { AgentMailClient } from "agentmail";
28085
27975
 
28086
27976
  async function main() {
28087
27977
  const client = new AgentMailClient({
28088
- environment: AgentMailEnvironment.Prod,
28089
27978
  apiKey: "YOUR_TOKEN_HERE",
28090
27979
  });
28091
27980
  await client.pods.domains.delete("pod_id", "domain_id");
@@ -28096,10 +27985,8 @@ main();
28096
27985
 
28097
27986
  ```python
28098
27987
  from agentmail import AgentMail
28099
- from agentmail.environment import AgentMailEnvironment
28100
27988
 
28101
27989
  client = AgentMail(
28102
- environment=AgentMailEnvironment.PROD,
28103
27990
  api_key="YOUR_TOKEN_HERE"
28104
27991
  )
28105
27992
 
@@ -28306,11 +28193,10 @@ components:
28306
28193
  ## SDK Code Examples
28307
28194
 
28308
28195
  ```typescript
28309
- import { AgentMailClient, AgentMailEnvironment } from "agentmail";
28196
+ import { AgentMailClient } from "agentmail";
28310
28197
 
28311
28198
  async function main() {
28312
28199
  const client = new AgentMailClient({
28313
- environment: AgentMailEnvironment.Prod,
28314
28200
  apiKey: "YOUR_TOKEN_HERE",
28315
28201
  });
28316
28202
  await client.organizations.get();
@@ -28321,10 +28207,8 @@ main();
28321
28207
 
28322
28208
  ```python
28323
28209
  from agentmail import AgentMail
28324
- from agentmail.environment import AgentMailEnvironment
28325
28210
 
28326
28211
  client = AgentMail(
28327
- environment=AgentMailEnvironment.PROD,
28328
28212
  api_key="YOUR_TOKEN_HERE"
28329
28213
  )
28330
28214