agentmail 0.1.17 → 0.1.19

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 (49) hide show
  1. package/dist/cjs/BaseClient.js +2 -2
  2. package/dist/cjs/api/resources/attachments/types/Attachment.d.ts +3 -2
  3. package/dist/cjs/api/resources/attachments/types/AttachmentContentDisposition.d.ts +6 -0
  4. package/dist/cjs/api/resources/attachments/types/AttachmentContentDisposition.js +9 -0
  5. package/dist/cjs/api/resources/attachments/types/AttachmentContentId.d.ts +4 -0
  6. package/dist/cjs/api/resources/attachments/types/SendAttachment.d.ts +2 -0
  7. package/dist/cjs/api/resources/attachments/types/index.d.ts +2 -1
  8. package/dist/cjs/api/resources/attachments/types/index.js +2 -1
  9. package/dist/cjs/serialization/resources/attachments/types/Attachment.d.ts +5 -3
  10. package/dist/cjs/serialization/resources/attachments/types/Attachment.js +5 -3
  11. package/dist/cjs/serialization/resources/attachments/types/AttachmentContentDisposition.d.ts +7 -0
  12. package/dist/cjs/serialization/resources/attachments/types/AttachmentContentDisposition.js +39 -0
  13. package/dist/cjs/serialization/resources/attachments/types/AttachmentContentId.d.ts +7 -0
  14. package/dist/cjs/serialization/resources/attachments/types/{AttachmentInline.js → AttachmentContentId.js} +2 -2
  15. package/dist/cjs/serialization/resources/attachments/types/SendAttachment.d.ts +4 -0
  16. package/dist/cjs/serialization/resources/attachments/types/SendAttachment.js +4 -0
  17. package/dist/cjs/serialization/resources/attachments/types/index.d.ts +2 -1
  18. package/dist/cjs/serialization/resources/attachments/types/index.js +2 -1
  19. package/dist/cjs/version.d.ts +1 -1
  20. package/dist/cjs/version.js +1 -1
  21. package/dist/esm/BaseClient.mjs +2 -2
  22. package/dist/esm/api/resources/attachments/types/Attachment.d.mts +3 -2
  23. package/dist/esm/api/resources/attachments/types/AttachmentContentDisposition.d.mts +6 -0
  24. package/dist/esm/api/resources/attachments/types/AttachmentContentDisposition.mjs +6 -0
  25. package/dist/esm/api/resources/attachments/types/AttachmentContentId.d.mts +4 -0
  26. package/dist/esm/api/resources/attachments/types/SendAttachment.d.mts +2 -0
  27. package/dist/esm/api/resources/attachments/types/index.d.mts +2 -1
  28. package/dist/esm/api/resources/attachments/types/index.mjs +2 -1
  29. package/dist/esm/serialization/resources/attachments/types/Attachment.d.mts +5 -3
  30. package/dist/esm/serialization/resources/attachments/types/Attachment.mjs +5 -3
  31. package/dist/esm/serialization/resources/attachments/types/AttachmentContentDisposition.d.mts +7 -0
  32. package/dist/esm/serialization/resources/attachments/types/AttachmentContentDisposition.mjs +3 -0
  33. package/dist/esm/serialization/resources/attachments/types/AttachmentContentId.d.mts +7 -0
  34. package/dist/esm/serialization/resources/attachments/types/{AttachmentInline.mjs → AttachmentContentId.mjs} +1 -1
  35. package/dist/esm/serialization/resources/attachments/types/SendAttachment.d.mts +4 -0
  36. package/dist/esm/serialization/resources/attachments/types/SendAttachment.mjs +4 -0
  37. package/dist/esm/serialization/resources/attachments/types/index.d.mts +2 -1
  38. package/dist/esm/serialization/resources/attachments/types/index.mjs +2 -1
  39. package/dist/esm/version.d.mts +1 -1
  40. package/dist/esm/version.mjs +1 -1
  41. package/dist/llms-full.txt +554 -188
  42. package/dist/llms.txt +2 -1
  43. package/package.json +1 -1
  44. package/dist/cjs/api/resources/attachments/types/AttachmentInline.d.ts +0 -4
  45. package/dist/cjs/serialization/resources/attachments/types/AttachmentInline.d.ts +0 -7
  46. package/dist/esm/api/resources/attachments/types/AttachmentInline.d.mts +0 -4
  47. package/dist/esm/serialization/resources/attachments/types/AttachmentInline.d.mts +0 -7
  48. /package/dist/cjs/api/resources/attachments/types/{AttachmentInline.js → AttachmentContentId.js} +0 -0
  49. /package/dist/esm/api/resources/attachments/types/{AttachmentInline.mjs → AttachmentContentId.mjs} +0 -0
@@ -5,7 +5,7 @@
5
5
  <Tip title="Welcome to AgentMail!" icon="fa-solid fa-star" />
6
6
 
7
7
  <Frame caption="We're excited to have you onboard!">
8
- <img src="file:2bbde1f0-3ffb-42e2-983f-dbde7883b260" alt="We're excited to have you onboard!" />
8
+ <img src="https://files.buildwithfern.com/https://agentmail-production.docs.buildwithfern.com/9594f1f7c411d8f6e6a3d1e6de0661b1c8b82a57d29de765f0f90dc9da66149b/assets/doc-intro.png" alt="We're excited to have you onboard!" />
9
9
  </Frame>
10
10
 
11
11
  AgentMail is an API platform for giving AI agents their own inboxes to send, receive, and act upon emails. This allows agents to assume their own identity and communicate via the universal protocol of email with services, people, and other agents.
@@ -171,7 +171,7 @@ This guide will walk you through installing the AgentMail SDK, authenticating wi
171
171
  <Step title="Create an API Key">
172
172
  Now that you're in the console, you'll need to create an API key to
173
173
  authenticate your requests. Navigate to the API Keys section in your console
174
- dashboard. ![API Key Creation Screenshot](file:533b527b-b89e-4535-bc11-b04eda210805) Click
174
+ dashboard. ![API Key Creation Screenshot](https://files.buildwithfern.com/https://agentmail-production.docs.buildwithfern.com/4e665f546efdf08d30178fcfbd996298ed7b3d1d44709fc742ed5315fed9532e/assets/api-key-creation.png) Click
175
175
  "Create New API Key" and give it a descriptive name. Once created, copy the
176
176
  API key and store it securely. Create a `.env` file in your project's root
177
177
  directory and add your key to it. We recommend using environment variables to
@@ -322,7 +322,7 @@ Unlike traditional email providers that are designed for human scale, AgentMail
322
322
 
323
323
  As the diagram below illustrates, your `organization` is the top-level container that holds all your resources. You can provision many `Inboxes` within your `organization`, each with its own `Threads`, `Messages`, and `Attachments`, allowing you to manage a large fleet of agents seamlessly.
324
324
 
325
- <img src="file:2f70a86c-fb83-4804-90dd-4f3b666cccf5" alt="AgentMail Organizational Hierarchy" />
325
+ <img src="https://files.buildwithfern.com/https://agentmail-production.docs.buildwithfern.com/800085ec8545f404e194c8c6e463be1677715204ac5705be777fa95ace0e6d26/assets/hierarchy-diagram.png" alt="AgentMail Organizational Hierarchy" />
326
326
 
327
327
  <Steps>
328
328
  <Step title="Organization">
@@ -742,7 +742,7 @@ Here is an example of a well-structured and styled HTML header:
742
742
  </CodeBlocks>
743
743
 
744
744
  <Frame caption="Look how pretty this message looks!">
745
- <img src="file:d664e355-f144-4b64-85d2-0e39cbba8ac7" alt="rendered css" />
745
+ <img src="https://files.buildwithfern.com/https://agentmail-production.docs.buildwithfern.com/a598fc722b5882421ffb977dc567bd75b4f4541b1e4ff7ab18657c7435b300dc/assets/css-rendered.png" alt="rendered css" />
746
746
  </Frame>
747
747
 
748
748
  ## Receiving `Messages`
@@ -1981,7 +1981,7 @@ Configuring your domain is a three-step process: add the domain via API, copy th
1981
1981
  After creating your domain in the AgentMail Console, click the "Download BIND Zone File" button to get the complete zone file.
1982
1982
 
1983
1983
  <Frame caption="Downloading BIND zone file from AgentMail Console">
1984
- <img src="file:b15a4c8d-594a-4014-a5fe-03b02c2921d4" alt="Download BIND Zone File from Console" />
1984
+ <img src="https://files.buildwithfern.com/https://agentmail-production.docs.buildwithfern.com/faac7775a4d3462c040390f8427b67a3d0ab59a811489e773739e6c973418123/assets/download-zone-file.png" alt="Download BIND Zone File from Console" />
1985
1985
  </Frame>
1986
1986
 
1987
1987
  <Tabs>
@@ -1992,13 +1992,13 @@ Configuring your domain is a three-step process: add the domain via API, copy th
1992
1992
  2. Navigate to **DNS > Records**
1993
1993
 
1994
1994
  <Frame caption="This is what the page looks like">
1995
- <img src="file:b833b8bb-2437-44a2-85d8-e269f59dd24b" alt="Cloudflare BIND Import" />
1995
+ <img src="https://files.buildwithfern.com/https://agentmail-production.docs.buildwithfern.com/96c7605681eb665155d04a7df0a8cd58830fe147270cabdec3b05797cb993899/assets/cloudflare-dns.png" alt="Cloudflare BIND Import" />
1996
1996
  </Frame>
1997
1997
 
1998
1998
  3. Click **"Import and Export"**
1999
1999
 
2000
2000
  <Frame caption="You should be able to just drop the file in">
2001
- <img src="file:8d2d26bc-c4f3-48c1-aabc-16cf3ee90047" alt="Cloudflare BIND Import" />
2001
+ <img src="https://files.buildwithfern.com/https://agentmail-production.docs.buildwithfern.com/05cc3ce3579576efb2e81419b9a3f66d79c1cd5b0ec684d070b55762ffade22a/assets/cloudflare-import-export.png" alt="Cloudflare BIND Import" />
2002
2002
  </Frame>
2003
2003
 
2004
2004
  4. Upload the downloaded BIND zone file as is
@@ -2011,13 +2011,13 @@ Configuring your domain is a three-step process: add the domain via API, copy th
2011
2011
  2. Click **"Import zone file"** in the top right corner
2012
2012
 
2013
2013
  <Frame caption="Importing BIND zone file in AWS Route 53">
2014
- <img src="file:d7b1afc1-0bad-4d53-a011-5c4091a4380f" alt="AWS Route 53 BIND Import" />
2014
+ <img src="https://files.buildwithfern.com/https://agentmail-production.docs.buildwithfern.com/036c4079abf5da1f8f4bb3aaa5b444b59f0be8077b4f2c3e718746aff5c06751/assets/aws-bind-import.png" alt="AWS Route 53 BIND Import" />
2015
2015
  </Frame>
2016
2016
 
2017
2017
  3. Paste the CONTENTS of downloaded BIND zone file
2018
2018
 
2019
2019
  <Frame caption="Open the file with text editor and paste the contents. It should look similar to what we have in this image.">
2020
- <img src="file:bbc90a2f-9733-4e39-890d-8068bc184c73" alt="AWS Route 53 BIND Import" />
2020
+ <img src="https://files.buildwithfern.com/https://agentmail-production.docs.buildwithfern.com/0ddc3eaa3744f03f776a832f09d236312b33a0c8f40d1804a84e70c75a3b5896/assets/aws-paste.png" alt="AWS Route 53 BIND Import" />
2021
2021
  </Frame>
2022
2022
 
2023
2023
  4. Review the records and click **"Import"**
@@ -2046,13 +2046,13 @@ Configuring your domain is a three-step process: add the domain via API, copy th
2046
2046
  2. Navigate to the **DNS** subtab of the domain you want to send from
2047
2047
 
2048
2048
  <Frame caption="Click on this button!">
2049
- <img src="file:4785688a-45d5-4f45-bd33-b92d0ef11fab" alt="Porkbun DNS Management" />
2049
+ <img src="https://files.buildwithfern.com/https://agentmail-production.docs.buildwithfern.com/e4ed50d2d850209bc7eaba74f70e49de1e236816cf9a8b0ee1a244c76dee2714/assets/porkbun-dns.png" alt="Porkbun DNS Management" />
2050
2050
  </Frame>
2051
2051
 
2052
2052
  3. Scroll down to the quick upload section
2053
2053
 
2054
2054
  <Frame caption="Upload your BIND zone file here">
2055
- <img src="file:b8882eda-ea51-462c-a0fc-da905d4821d7" alt="Porkbun Zone File Import" />
2055
+ <img src="https://files.buildwithfern.com/https://agentmail-production.docs.buildwithfern.com/139296cc33927d5d3c4e6e493ed61545914dec905b620a0d6a5408f3010f8e95/assets/porkbun-import.png" alt="Porkbun Zone File Import" />
2056
2056
  </Frame>
2057
2057
 
2058
2058
  4. Upload the downloaded BIND zone file as is
@@ -2870,13 +2870,13 @@ Ngrok creates a secure tunnel from a public URL to your local development server
2870
2870
 
2871
2871
  Visit [ngrok.com](https://ngrok.com/) and click "Sign up" to create a free account.
2872
2872
 
2873
- <img src="file:257e9c77-745e-4f57-898d-6ad64c30184f" alt="Ngrok homepage" />
2873
+ <img src="https://files.buildwithfern.com/https://agentmail-production.docs.buildwithfern.com/2d257d7065229b8ebd74abd4f96802eb8eb4f5b04041bbf28a5015a9d171a4ab/assets/webhook-ngrok.png" alt="Ngrok homepage" />
2874
2874
 
2875
2875
  ### 1.2 Choose your platform and install
2876
2876
 
2877
2877
  After logging in, ngrok will guide you through the setup process. Select your operating system and follow the installation instructions.
2878
2878
 
2879
- <img src="file:62640b7b-609b-4c81-b4c5-93673f5a0a1b" alt="Ngrok setup instructions" />
2879
+ <img src="https://files.buildwithfern.com/https://agentmail-production.docs.buildwithfern.com/f1ecdd69a4ef981c9e2f04c4118cad618f81b7dde98cb6de3c6f4f9a69311c79/assets/webhook-system.png" alt="Ngrok setup instructions" />
2880
2880
 
2881
2881
  For macOS, you can install ngrok via Homebrew:
2882
2882
 
@@ -2922,7 +2922,7 @@ ngrok http 3000
2922
2922
 
2923
2923
  You should see output similar to this:
2924
2924
 
2925
- <img src="file:0fe5c03c-37be-413a-8ae6-ffb22f356221" alt="Ngrok terminal output" />
2925
+ <img src="https://files.buildwithfern.com/https://agentmail-production.docs.buildwithfern.com/c0d9867ce68c17edeea7a4e7bc2204c38c2cb9a3a819fe68199c542d28293dd1/assets/webhook-console.png" alt="Ngrok terminal output" />
2926
2926
 
2927
2927
  Copy the **Forwarding URL** (e.g., `https://your-subdomain.ngrok-free.app`). This is the public URL that AgentMail will use to send webhooks.
2928
2928
 
@@ -3019,7 +3019,7 @@ python webhook_receiver.py
3019
3019
 
3020
3020
  Open your browser and visit `http://127.0.0.1:3000` to see the status page confirming your webhook receiver is running:
3021
3021
 
3022
- <img src="file:445e6cfc-8d24-4d5b-9ade-cbf9e21c5f4e" alt="Webhook receiver status page" />
3022
+ <img src="https://files.buildwithfern.com/https://agentmail-production.docs.buildwithfern.com/d7c7b41d1738e174e482ce9531f4a706e0d4da350a9ec7545215789633fb09ae/assets/webhook-result.png" alt="Webhook receiver status page" />
3023
3023
 
3024
3024
  ## Testing Your Setup
3025
3025
 
@@ -3516,7 +3516,7 @@ How you send your emails is just as important as what you send. If you're sendin
3516
3516
  more natural to email providers. AgentMail's ability to create inboxes at
3517
3517
  scale makes this strategy easy to implement.
3518
3518
 
3519
- <img src="file:98c9cc4a-14cd-4306-b9af-5add27313bfe" alt="Diagram comparing one inbox sending 1000 emails vs. five inboxes sending 200 each." />
3519
+ <img src="https://files.buildwithfern.com/https://agentmail-production.docs.buildwithfern.com/718d953f857886e2d6c6e554184b6800f3c62fcbd340c506764c5d0669151940/assets/inbox-diversification.png" alt="Diagram comparing one inbox sending 1000 emails vs. five inboxes sending 200 each." />
3520
3520
  </Step>
3521
3521
 
3522
3522
  <Step title="Protect Your Reputation with Multiple Domains">
@@ -5535,7 +5535,7 @@ Done
5535
5535
 
5536
5536
  Go to your AgentMail inbox and filter by labels to organize your emails:
5537
5537
 
5538
- <img src="file:aabdc3e3-f51c-4b2d-93e9-0aeaff841bf8" alt="Test image" />
5538
+ <img src="https://files.buildwithfern.com/https://agentmail-production.docs.buildwithfern.com/58630b8f4fda508ac0e6baf8df2c5a3abb992f27f0c0ab1f0642bb8d76f355a7/assets/label-example.png" alt="Test image" />
5539
5539
 
5540
5540
  **Filter by sentiment:**
5541
5541
 
@@ -7736,12 +7736,17 @@ components:
7736
7736
  type: string
7737
7737
  type_attachments:AttachmentFilename:
7738
7738
  type: string
7739
- type_attachments:AttachmentContentType:
7740
- type: string
7741
7739
  type_attachments:AttachmentSize:
7742
7740
  type: integer
7743
- type_attachments:AttachmentInline:
7744
- type: boolean
7741
+ type_attachments:AttachmentContentType:
7742
+ type: string
7743
+ type_attachments:AttachmentContentDisposition:
7744
+ type: string
7745
+ enum:
7746
+ - value: inline
7747
+ - value: attachment
7748
+ type_attachments:AttachmentContentId:
7749
+ type: string
7745
7750
  type_attachments:Attachment:
7746
7751
  type: object
7747
7752
  properties:
@@ -7749,16 +7754,18 @@ components:
7749
7754
  $ref: '#/components/schemas/type_attachments:AttachmentId'
7750
7755
  filename:
7751
7756
  $ref: '#/components/schemas/type_attachments:AttachmentFilename'
7752
- content_type:
7753
- $ref: '#/components/schemas/type_attachments:AttachmentContentType'
7754
7757
  size:
7755
7758
  $ref: '#/components/schemas/type_attachments:AttachmentSize'
7756
- inline:
7757
- $ref: '#/components/schemas/type_attachments:AttachmentInline'
7759
+ content_type:
7760
+ $ref: '#/components/schemas/type_attachments:AttachmentContentType'
7761
+ content_disposition:
7762
+ $ref: '#/components/schemas/type_attachments:AttachmentContentDisposition'
7763
+ content_id:
7764
+ $ref: '#/components/schemas/type_attachments:AttachmentContentId'
7758
7765
  required:
7759
7766
  - attachment_id
7760
7767
  - size
7761
- - inline
7768
+ - content_disposition
7762
7769
  type_threads:ThreadAttachments:
7763
7770
  type: array
7764
7771
  items:
@@ -8054,12 +8061,17 @@ components:
8054
8061
  type: string
8055
8062
  type_attachments:AttachmentFilename:
8056
8063
  type: string
8057
- type_attachments:AttachmentContentType:
8058
- type: string
8059
8064
  type_attachments:AttachmentSize:
8060
8065
  type: integer
8061
- type_attachments:AttachmentInline:
8062
- type: boolean
8066
+ type_attachments:AttachmentContentType:
8067
+ type: string
8068
+ type_attachments:AttachmentContentDisposition:
8069
+ type: string
8070
+ enum:
8071
+ - value: inline
8072
+ - value: attachment
8073
+ type_attachments:AttachmentContentId:
8074
+ type: string
8063
8075
  type_attachments:Attachment:
8064
8076
  type: object
8065
8077
  properties:
@@ -8067,16 +8079,18 @@ components:
8067
8079
  $ref: '#/components/schemas/type_attachments:AttachmentId'
8068
8080
  filename:
8069
8081
  $ref: '#/components/schemas/type_attachments:AttachmentFilename'
8070
- content_type:
8071
- $ref: '#/components/schemas/type_attachments:AttachmentContentType'
8072
8082
  size:
8073
8083
  $ref: '#/components/schemas/type_attachments:AttachmentSize'
8074
- inline:
8075
- $ref: '#/components/schemas/type_attachments:AttachmentInline'
8084
+ content_type:
8085
+ $ref: '#/components/schemas/type_attachments:AttachmentContentType'
8086
+ content_disposition:
8087
+ $ref: '#/components/schemas/type_attachments:AttachmentContentDisposition'
8088
+ content_id:
8089
+ $ref: '#/components/schemas/type_attachments:AttachmentContentId'
8076
8090
  required:
8077
8091
  - attachment_id
8078
8092
  - size
8079
- - inline
8093
+ - content_disposition
8080
8094
  type_threads:ThreadAttachments:
8081
8095
  type: array
8082
8096
  items:
@@ -8909,12 +8923,17 @@ components:
8909
8923
  type: string
8910
8924
  type_attachments:AttachmentFilename:
8911
8925
  type: string
8912
- type_attachments:AttachmentContentType:
8913
- type: string
8914
8926
  type_attachments:AttachmentSize:
8915
8927
  type: integer
8916
- type_attachments:AttachmentInline:
8917
- type: boolean
8928
+ type_attachments:AttachmentContentType:
8929
+ type: string
8930
+ type_attachments:AttachmentContentDisposition:
8931
+ type: string
8932
+ enum:
8933
+ - value: inline
8934
+ - value: attachment
8935
+ type_attachments:AttachmentContentId:
8936
+ type: string
8918
8937
  type_attachments:Attachment:
8919
8938
  type: object
8920
8939
  properties:
@@ -8922,16 +8941,18 @@ components:
8922
8941
  $ref: '#/components/schemas/type_attachments:AttachmentId'
8923
8942
  filename:
8924
8943
  $ref: '#/components/schemas/type_attachments:AttachmentFilename'
8925
- content_type:
8926
- $ref: '#/components/schemas/type_attachments:AttachmentContentType'
8927
8944
  size:
8928
8945
  $ref: '#/components/schemas/type_attachments:AttachmentSize'
8929
- inline:
8930
- $ref: '#/components/schemas/type_attachments:AttachmentInline'
8946
+ content_type:
8947
+ $ref: '#/components/schemas/type_attachments:AttachmentContentType'
8948
+ content_disposition:
8949
+ $ref: '#/components/schemas/type_attachments:AttachmentContentDisposition'
8950
+ content_id:
8951
+ $ref: '#/components/schemas/type_attachments:AttachmentContentId'
8931
8952
  required:
8932
8953
  - attachment_id
8933
8954
  - size
8934
- - inline
8955
+ - content_disposition
8935
8956
  type_messages:MessageAttachments:
8936
8957
  type: array
8937
8958
  items:
@@ -9240,12 +9261,17 @@ components:
9240
9261
  type: string
9241
9262
  type_attachments:AttachmentFilename:
9242
9263
  type: string
9243
- type_attachments:AttachmentContentType:
9244
- type: string
9245
9264
  type_attachments:AttachmentSize:
9246
9265
  type: integer
9247
- type_attachments:AttachmentInline:
9248
- type: boolean
9266
+ type_attachments:AttachmentContentType:
9267
+ type: string
9268
+ type_attachments:AttachmentContentDisposition:
9269
+ type: string
9270
+ enum:
9271
+ - value: inline
9272
+ - value: attachment
9273
+ type_attachments:AttachmentContentId:
9274
+ type: string
9249
9275
  type_attachments:Attachment:
9250
9276
  type: object
9251
9277
  properties:
@@ -9253,16 +9279,18 @@ components:
9253
9279
  $ref: '#/components/schemas/type_attachments:AttachmentId'
9254
9280
  filename:
9255
9281
  $ref: '#/components/schemas/type_attachments:AttachmentFilename'
9256
- content_type:
9257
- $ref: '#/components/schemas/type_attachments:AttachmentContentType'
9258
9282
  size:
9259
9283
  $ref: '#/components/schemas/type_attachments:AttachmentSize'
9260
- inline:
9261
- $ref: '#/components/schemas/type_attachments:AttachmentInline'
9284
+ content_type:
9285
+ $ref: '#/components/schemas/type_attachments:AttachmentContentType'
9286
+ content_disposition:
9287
+ $ref: '#/components/schemas/type_attachments:AttachmentContentDisposition'
9288
+ content_id:
9289
+ $ref: '#/components/schemas/type_attachments:AttachmentContentId'
9262
9290
  required:
9263
9291
  - attachment_id
9264
9292
  - size
9265
- - inline
9293
+ - content_disposition
9266
9294
  type_messages:MessageAttachments:
9267
9295
  type: array
9268
9296
  items:
@@ -9950,6 +9978,13 @@ components:
9950
9978
  type: string
9951
9979
  type_attachments:AttachmentContentType:
9952
9980
  type: string
9981
+ type_attachments:AttachmentContentDisposition:
9982
+ type: string
9983
+ enum:
9984
+ - value: inline
9985
+ - value: attachment
9986
+ type_attachments:AttachmentContentId:
9987
+ type: string
9953
9988
  type_attachments:AttachmentContent:
9954
9989
  type: string
9955
9990
  type_attachments:SendAttachment:
@@ -9959,6 +9994,10 @@ components:
9959
9994
  $ref: '#/components/schemas/type_attachments:AttachmentFilename'
9960
9995
  content_type:
9961
9996
  $ref: '#/components/schemas/type_attachments:AttachmentContentType'
9997
+ content_disposition:
9998
+ $ref: '#/components/schemas/type_attachments:AttachmentContentDisposition'
9999
+ content_id:
10000
+ $ref: '#/components/schemas/type_attachments:AttachmentContentId'
9962
10001
  content:
9963
10002
  $ref: '#/components/schemas/type_attachments:AttachmentContent'
9964
10003
  required:
@@ -10251,6 +10290,13 @@ components:
10251
10290
  type: string
10252
10291
  type_attachments:AttachmentContentType:
10253
10292
  type: string
10293
+ type_attachments:AttachmentContentDisposition:
10294
+ type: string
10295
+ enum:
10296
+ - value: inline
10297
+ - value: attachment
10298
+ type_attachments:AttachmentContentId:
10299
+ type: string
10254
10300
  type_attachments:AttachmentContent:
10255
10301
  type: string
10256
10302
  type_attachments:SendAttachment:
@@ -10260,6 +10306,10 @@ components:
10260
10306
  $ref: '#/components/schemas/type_attachments:AttachmentFilename'
10261
10307
  content_type:
10262
10308
  $ref: '#/components/schemas/type_attachments:AttachmentContentType'
10309
+ content_disposition:
10310
+ $ref: '#/components/schemas/type_attachments:AttachmentContentDisposition'
10311
+ content_id:
10312
+ $ref: '#/components/schemas/type_attachments:AttachmentContentId'
10263
10313
  content:
10264
10314
  $ref: '#/components/schemas/type_attachments:AttachmentContent'
10265
10315
  required:
@@ -10543,6 +10593,13 @@ components:
10543
10593
  type: string
10544
10594
  type_attachments:AttachmentContentType:
10545
10595
  type: string
10596
+ type_attachments:AttachmentContentDisposition:
10597
+ type: string
10598
+ enum:
10599
+ - value: inline
10600
+ - value: attachment
10601
+ type_attachments:AttachmentContentId:
10602
+ type: string
10546
10603
  type_attachments:AttachmentContent:
10547
10604
  type: string
10548
10605
  type_attachments:SendAttachment:
@@ -10552,6 +10609,10 @@ components:
10552
10609
  $ref: '#/components/schemas/type_attachments:AttachmentFilename'
10553
10610
  content_type:
10554
10611
  $ref: '#/components/schemas/type_attachments:AttachmentContentType'
10612
+ content_disposition:
10613
+ $ref: '#/components/schemas/type_attachments:AttachmentContentDisposition'
10614
+ content_id:
10615
+ $ref: '#/components/schemas/type_attachments:AttachmentContentId'
10555
10616
  content:
10556
10617
  $ref: '#/components/schemas/type_attachments:AttachmentContent'
10557
10618
  required:
@@ -10852,12 +10913,17 @@ components:
10852
10913
  type: string
10853
10914
  type_attachments:AttachmentFilename:
10854
10915
  type: string
10855
- type_attachments:AttachmentContentType:
10856
- type: string
10857
10916
  type_attachments:AttachmentSize:
10858
10917
  type: integer
10859
- type_attachments:AttachmentInline:
10860
- type: boolean
10918
+ type_attachments:AttachmentContentType:
10919
+ type: string
10920
+ type_attachments:AttachmentContentDisposition:
10921
+ type: string
10922
+ enum:
10923
+ - value: inline
10924
+ - value: attachment
10925
+ type_attachments:AttachmentContentId:
10926
+ type: string
10861
10927
  type_attachments:Attachment:
10862
10928
  type: object
10863
10929
  properties:
@@ -10865,16 +10931,18 @@ components:
10865
10931
  $ref: '#/components/schemas/type_attachments:AttachmentId'
10866
10932
  filename:
10867
10933
  $ref: '#/components/schemas/type_attachments:AttachmentFilename'
10868
- content_type:
10869
- $ref: '#/components/schemas/type_attachments:AttachmentContentType'
10870
10934
  size:
10871
10935
  $ref: '#/components/schemas/type_attachments:AttachmentSize'
10872
- inline:
10873
- $ref: '#/components/schemas/type_attachments:AttachmentInline'
10936
+ content_type:
10937
+ $ref: '#/components/schemas/type_attachments:AttachmentContentType'
10938
+ content_disposition:
10939
+ $ref: '#/components/schemas/type_attachments:AttachmentContentDisposition'
10940
+ content_id:
10941
+ $ref: '#/components/schemas/type_attachments:AttachmentContentId'
10874
10942
  required:
10875
10943
  - attachment_id
10876
10944
  - size
10877
- - inline
10945
+ - content_disposition
10878
10946
  type_messages:MessageAttachments:
10879
10947
  type: array
10880
10948
  items:
@@ -11237,12 +11305,17 @@ components:
11237
11305
  type: string
11238
11306
  type_attachments:AttachmentFilename:
11239
11307
  type: string
11240
- type_attachments:AttachmentContentType:
11241
- type: string
11242
11308
  type_attachments:AttachmentSize:
11243
11309
  type: integer
11244
- type_attachments:AttachmentInline:
11245
- type: boolean
11310
+ type_attachments:AttachmentContentType:
11311
+ type: string
11312
+ type_attachments:AttachmentContentDisposition:
11313
+ type: string
11314
+ enum:
11315
+ - value: inline
11316
+ - value: attachment
11317
+ type_attachments:AttachmentContentId:
11318
+ type: string
11246
11319
  type_attachments:Attachment:
11247
11320
  type: object
11248
11321
  properties:
@@ -11250,16 +11323,18 @@ components:
11250
11323
  $ref: '#/components/schemas/type_attachments:AttachmentId'
11251
11324
  filename:
11252
11325
  $ref: '#/components/schemas/type_attachments:AttachmentFilename'
11253
- content_type:
11254
- $ref: '#/components/schemas/type_attachments:AttachmentContentType'
11255
11326
  size:
11256
11327
  $ref: '#/components/schemas/type_attachments:AttachmentSize'
11257
- inline:
11258
- $ref: '#/components/schemas/type_attachments:AttachmentInline'
11328
+ content_type:
11329
+ $ref: '#/components/schemas/type_attachments:AttachmentContentType'
11330
+ content_disposition:
11331
+ $ref: '#/components/schemas/type_attachments:AttachmentContentDisposition'
11332
+ content_id:
11333
+ $ref: '#/components/schemas/type_attachments:AttachmentContentId'
11259
11334
  required:
11260
11335
  - attachment_id
11261
11336
  - size
11262
- - inline
11337
+ - content_disposition
11263
11338
  type_drafts:DraftAttachments:
11264
11339
  type: array
11265
11340
  items:
@@ -11548,12 +11623,17 @@ components:
11548
11623
  type: string
11549
11624
  type_attachments:AttachmentFilename:
11550
11625
  type: string
11551
- type_attachments:AttachmentContentType:
11552
- type: string
11553
11626
  type_attachments:AttachmentSize:
11554
11627
  type: integer
11555
- type_attachments:AttachmentInline:
11556
- type: boolean
11628
+ type_attachments:AttachmentContentType:
11629
+ type: string
11630
+ type_attachments:AttachmentContentDisposition:
11631
+ type: string
11632
+ enum:
11633
+ - value: inline
11634
+ - value: attachment
11635
+ type_attachments:AttachmentContentId:
11636
+ type: string
11557
11637
  type_attachments:Attachment:
11558
11638
  type: object
11559
11639
  properties:
@@ -11561,16 +11641,18 @@ components:
11561
11641
  $ref: '#/components/schemas/type_attachments:AttachmentId'
11562
11642
  filename:
11563
11643
  $ref: '#/components/schemas/type_attachments:AttachmentFilename'
11564
- content_type:
11565
- $ref: '#/components/schemas/type_attachments:AttachmentContentType'
11566
11644
  size:
11567
11645
  $ref: '#/components/schemas/type_attachments:AttachmentSize'
11568
- inline:
11569
- $ref: '#/components/schemas/type_attachments:AttachmentInline'
11646
+ content_type:
11647
+ $ref: '#/components/schemas/type_attachments:AttachmentContentType'
11648
+ content_disposition:
11649
+ $ref: '#/components/schemas/type_attachments:AttachmentContentDisposition'
11650
+ content_id:
11651
+ $ref: '#/components/schemas/type_attachments:AttachmentContentId'
11570
11652
  required:
11571
11653
  - attachment_id
11572
11654
  - size
11573
- - inline
11655
+ - content_disposition
11574
11656
  type_drafts:DraftAttachments:
11575
11657
  type: array
11576
11658
  items:
@@ -11896,12 +11978,17 @@ components:
11896
11978
  type: string
11897
11979
  type_attachments:AttachmentFilename:
11898
11980
  type: string
11899
- type_attachments:AttachmentContentType:
11900
- type: string
11901
11981
  type_attachments:AttachmentSize:
11902
11982
  type: integer
11903
- type_attachments:AttachmentInline:
11904
- type: boolean
11983
+ type_attachments:AttachmentContentType:
11984
+ type: string
11985
+ type_attachments:AttachmentContentDisposition:
11986
+ type: string
11987
+ enum:
11988
+ - value: inline
11989
+ - value: attachment
11990
+ type_attachments:AttachmentContentId:
11991
+ type: string
11905
11992
  type_attachments:Attachment:
11906
11993
  type: object
11907
11994
  properties:
@@ -11909,16 +11996,18 @@ components:
11909
11996
  $ref: '#/components/schemas/type_attachments:AttachmentId'
11910
11997
  filename:
11911
11998
  $ref: '#/components/schemas/type_attachments:AttachmentFilename'
11912
- content_type:
11913
- $ref: '#/components/schemas/type_attachments:AttachmentContentType'
11914
11999
  size:
11915
12000
  $ref: '#/components/schemas/type_attachments:AttachmentSize'
11916
- inline:
11917
- $ref: '#/components/schemas/type_attachments:AttachmentInline'
12001
+ content_type:
12002
+ $ref: '#/components/schemas/type_attachments:AttachmentContentType'
12003
+ content_disposition:
12004
+ $ref: '#/components/schemas/type_attachments:AttachmentContentDisposition'
12005
+ content_id:
12006
+ $ref: '#/components/schemas/type_attachments:AttachmentContentId'
11918
12007
  required:
11919
12008
  - attachment_id
11920
12009
  - size
11921
- - inline
12010
+ - content_disposition
11922
12011
  type_drafts:DraftAttachments:
11923
12012
  type: array
11924
12013
  items:
@@ -12254,12 +12343,17 @@ components:
12254
12343
  type: string
12255
12344
  type_attachments:AttachmentFilename:
12256
12345
  type: string
12257
- type_attachments:AttachmentContentType:
12258
- type: string
12259
12346
  type_attachments:AttachmentSize:
12260
12347
  type: integer
12261
- type_attachments:AttachmentInline:
12262
- type: boolean
12348
+ type_attachments:AttachmentContentType:
12349
+ type: string
12350
+ type_attachments:AttachmentContentDisposition:
12351
+ type: string
12352
+ enum:
12353
+ - value: inline
12354
+ - value: attachment
12355
+ type_attachments:AttachmentContentId:
12356
+ type: string
12263
12357
  type_attachments:Attachment:
12264
12358
  type: object
12265
12359
  properties:
@@ -12267,16 +12361,18 @@ components:
12267
12361
  $ref: '#/components/schemas/type_attachments:AttachmentId'
12268
12362
  filename:
12269
12363
  $ref: '#/components/schemas/type_attachments:AttachmentFilename'
12270
- content_type:
12271
- $ref: '#/components/schemas/type_attachments:AttachmentContentType'
12272
12364
  size:
12273
12365
  $ref: '#/components/schemas/type_attachments:AttachmentSize'
12274
- inline:
12275
- $ref: '#/components/schemas/type_attachments:AttachmentInline'
12366
+ content_type:
12367
+ $ref: '#/components/schemas/type_attachments:AttachmentContentType'
12368
+ content_disposition:
12369
+ $ref: '#/components/schemas/type_attachments:AttachmentContentDisposition'
12370
+ content_id:
12371
+ $ref: '#/components/schemas/type_attachments:AttachmentContentId'
12276
12372
  required:
12277
12373
  - attachment_id
12278
12374
  - size
12279
- - inline
12375
+ - content_disposition
12280
12376
  type_drafts:DraftAttachments:
12281
12377
  type: array
12282
12378
  items:
@@ -13316,12 +13412,17 @@ components:
13316
13412
  type: string
13317
13413
  type_attachments:AttachmentFilename:
13318
13414
  type: string
13319
- type_attachments:AttachmentContentType:
13320
- type: string
13321
13415
  type_attachments:AttachmentSize:
13322
13416
  type: integer
13323
- type_attachments:AttachmentInline:
13324
- type: boolean
13417
+ type_attachments:AttachmentContentType:
13418
+ type: string
13419
+ type_attachments:AttachmentContentDisposition:
13420
+ type: string
13421
+ enum:
13422
+ - value: inline
13423
+ - value: attachment
13424
+ type_attachments:AttachmentContentId:
13425
+ type: string
13325
13426
  type_attachments:Attachment:
13326
13427
  type: object
13327
13428
  properties:
@@ -13329,16 +13430,18 @@ components:
13329
13430
  $ref: '#/components/schemas/type_attachments:AttachmentId'
13330
13431
  filename:
13331
13432
  $ref: '#/components/schemas/type_attachments:AttachmentFilename'
13332
- content_type:
13333
- $ref: '#/components/schemas/type_attachments:AttachmentContentType'
13334
13433
  size:
13335
13434
  $ref: '#/components/schemas/type_attachments:AttachmentSize'
13336
- inline:
13337
- $ref: '#/components/schemas/type_attachments:AttachmentInline'
13435
+ content_type:
13436
+ $ref: '#/components/schemas/type_attachments:AttachmentContentType'
13437
+ content_disposition:
13438
+ $ref: '#/components/schemas/type_attachments:AttachmentContentDisposition'
13439
+ content_id:
13440
+ $ref: '#/components/schemas/type_attachments:AttachmentContentId'
13338
13441
  required:
13339
13442
  - attachment_id
13340
13443
  - size
13341
- - inline
13444
+ - content_disposition
13342
13445
  type_threads:ThreadAttachments:
13343
13446
  type: array
13344
13447
  items:
@@ -13626,12 +13729,17 @@ components:
13626
13729
  type: string
13627
13730
  type_attachments:AttachmentFilename:
13628
13731
  type: string
13629
- type_attachments:AttachmentContentType:
13630
- type: string
13631
13732
  type_attachments:AttachmentSize:
13632
13733
  type: integer
13633
- type_attachments:AttachmentInline:
13634
- type: boolean
13734
+ type_attachments:AttachmentContentType:
13735
+ type: string
13736
+ type_attachments:AttachmentContentDisposition:
13737
+ type: string
13738
+ enum:
13739
+ - value: inline
13740
+ - value: attachment
13741
+ type_attachments:AttachmentContentId:
13742
+ type: string
13635
13743
  type_attachments:Attachment:
13636
13744
  type: object
13637
13745
  properties:
@@ -13639,16 +13747,18 @@ components:
13639
13747
  $ref: '#/components/schemas/type_attachments:AttachmentId'
13640
13748
  filename:
13641
13749
  $ref: '#/components/schemas/type_attachments:AttachmentFilename'
13642
- content_type:
13643
- $ref: '#/components/schemas/type_attachments:AttachmentContentType'
13644
13750
  size:
13645
13751
  $ref: '#/components/schemas/type_attachments:AttachmentSize'
13646
- inline:
13647
- $ref: '#/components/schemas/type_attachments:AttachmentInline'
13752
+ content_type:
13753
+ $ref: '#/components/schemas/type_attachments:AttachmentContentType'
13754
+ content_disposition:
13755
+ $ref: '#/components/schemas/type_attachments:AttachmentContentDisposition'
13756
+ content_id:
13757
+ $ref: '#/components/schemas/type_attachments:AttachmentContentId'
13648
13758
  required:
13649
13759
  - attachment_id
13650
13760
  - size
13651
- - inline
13761
+ - content_disposition
13652
13762
  type_threads:ThreadAttachments:
13653
13763
  type: array
13654
13764
  items:
@@ -14272,12 +14382,17 @@ components:
14272
14382
  type: string
14273
14383
  type_attachments:AttachmentFilename:
14274
14384
  type: string
14275
- type_attachments:AttachmentContentType:
14276
- type: string
14277
14385
  type_attachments:AttachmentSize:
14278
14386
  type: integer
14279
- type_attachments:AttachmentInline:
14280
- type: boolean
14387
+ type_attachments:AttachmentContentType:
14388
+ type: string
14389
+ type_attachments:AttachmentContentDisposition:
14390
+ type: string
14391
+ enum:
14392
+ - value: inline
14393
+ - value: attachment
14394
+ type_attachments:AttachmentContentId:
14395
+ type: string
14281
14396
  type_attachments:Attachment:
14282
14397
  type: object
14283
14398
  properties:
@@ -14285,16 +14400,18 @@ components:
14285
14400
  $ref: '#/components/schemas/type_attachments:AttachmentId'
14286
14401
  filename:
14287
14402
  $ref: '#/components/schemas/type_attachments:AttachmentFilename'
14288
- content_type:
14289
- $ref: '#/components/schemas/type_attachments:AttachmentContentType'
14290
14403
  size:
14291
14404
  $ref: '#/components/schemas/type_attachments:AttachmentSize'
14292
- inline:
14293
- $ref: '#/components/schemas/type_attachments:AttachmentInline'
14405
+ content_type:
14406
+ $ref: '#/components/schemas/type_attachments:AttachmentContentType'
14407
+ content_disposition:
14408
+ $ref: '#/components/schemas/type_attachments:AttachmentContentDisposition'
14409
+ content_id:
14410
+ $ref: '#/components/schemas/type_attachments:AttachmentContentId'
14294
14411
  required:
14295
14412
  - attachment_id
14296
14413
  - size
14297
- - inline
14414
+ - content_disposition
14298
14415
  type_drafts:DraftAttachments:
14299
14416
  type: array
14300
14417
  items:
@@ -14575,12 +14692,17 @@ components:
14575
14692
  type: string
14576
14693
  type_attachments:AttachmentFilename:
14577
14694
  type: string
14578
- type_attachments:AttachmentContentType:
14579
- type: string
14580
14695
  type_attachments:AttachmentSize:
14581
14696
  type: integer
14582
- type_attachments:AttachmentInline:
14583
- type: boolean
14697
+ type_attachments:AttachmentContentType:
14698
+ type: string
14699
+ type_attachments:AttachmentContentDisposition:
14700
+ type: string
14701
+ enum:
14702
+ - value: inline
14703
+ - value: attachment
14704
+ type_attachments:AttachmentContentId:
14705
+ type: string
14584
14706
  type_attachments:Attachment:
14585
14707
  type: object
14586
14708
  properties:
@@ -14588,16 +14710,18 @@ components:
14588
14710
  $ref: '#/components/schemas/type_attachments:AttachmentId'
14589
14711
  filename:
14590
14712
  $ref: '#/components/schemas/type_attachments:AttachmentFilename'
14591
- content_type:
14592
- $ref: '#/components/schemas/type_attachments:AttachmentContentType'
14593
14713
  size:
14594
14714
  $ref: '#/components/schemas/type_attachments:AttachmentSize'
14595
- inline:
14596
- $ref: '#/components/schemas/type_attachments:AttachmentInline'
14715
+ content_type:
14716
+ $ref: '#/components/schemas/type_attachments:AttachmentContentType'
14717
+ content_disposition:
14718
+ $ref: '#/components/schemas/type_attachments:AttachmentContentDisposition'
14719
+ content_id:
14720
+ $ref: '#/components/schemas/type_attachments:AttachmentContentId'
14597
14721
  required:
14598
14722
  - attachment_id
14599
14723
  - size
14600
- - inline
14724
+ - content_disposition
14601
14725
  type_drafts:DraftAttachments:
14602
14726
  type: array
14603
14727
  items:
@@ -17169,12 +17293,17 @@ components:
17169
17293
  type: string
17170
17294
  type_attachments:AttachmentFilename:
17171
17295
  type: string
17172
- type_attachments:AttachmentContentType:
17173
- type: string
17174
17296
  type_attachments:AttachmentSize:
17175
17297
  type: integer
17176
- type_attachments:AttachmentInline:
17177
- type: boolean
17298
+ type_attachments:AttachmentContentType:
17299
+ type: string
17300
+ type_attachments:AttachmentContentDisposition:
17301
+ type: string
17302
+ enum:
17303
+ - value: inline
17304
+ - value: attachment
17305
+ type_attachments:AttachmentContentId:
17306
+ type: string
17178
17307
  type_attachments:Attachment:
17179
17308
  type: object
17180
17309
  properties:
@@ -17182,16 +17311,18 @@ components:
17182
17311
  $ref: '#/components/schemas/type_attachments:AttachmentId'
17183
17312
  filename:
17184
17313
  $ref: '#/components/schemas/type_attachments:AttachmentFilename'
17185
- content_type:
17186
- $ref: '#/components/schemas/type_attachments:AttachmentContentType'
17187
17314
  size:
17188
17315
  $ref: '#/components/schemas/type_attachments:AttachmentSize'
17189
- inline:
17190
- $ref: '#/components/schemas/type_attachments:AttachmentInline'
17316
+ content_type:
17317
+ $ref: '#/components/schemas/type_attachments:AttachmentContentType'
17318
+ content_disposition:
17319
+ $ref: '#/components/schemas/type_attachments:AttachmentContentDisposition'
17320
+ content_id:
17321
+ $ref: '#/components/schemas/type_attachments:AttachmentContentId'
17191
17322
  required:
17192
17323
  - attachment_id
17193
17324
  - size
17194
- - inline
17325
+ - content_disposition
17195
17326
  type_messages:MessageAttachments:
17196
17327
  type: array
17197
17328
  items:
@@ -18318,12 +18449,17 @@ components:
18318
18449
  type: string
18319
18450
  type_attachments:AttachmentFilename:
18320
18451
  type: string
18321
- type_attachments:AttachmentContentType:
18322
- type: string
18323
18452
  type_attachments:AttachmentSize:
18324
18453
  type: integer
18325
- type_attachments:AttachmentInline:
18326
- type: boolean
18454
+ type_attachments:AttachmentContentType:
18455
+ type: string
18456
+ type_attachments:AttachmentContentDisposition:
18457
+ type: string
18458
+ enum:
18459
+ - value: inline
18460
+ - value: attachment
18461
+ type_attachments:AttachmentContentId:
18462
+ type: string
18327
18463
  type_attachments:Attachment:
18328
18464
  type: object
18329
18465
  properties:
@@ -18331,16 +18467,18 @@ components:
18331
18467
  $ref: '#/components/schemas/type_attachments:AttachmentId'
18332
18468
  filename:
18333
18469
  $ref: '#/components/schemas/type_attachments:AttachmentFilename'
18334
- content_type:
18335
- $ref: '#/components/schemas/type_attachments:AttachmentContentType'
18336
18470
  size:
18337
18471
  $ref: '#/components/schemas/type_attachments:AttachmentSize'
18338
- inline:
18339
- $ref: '#/components/schemas/type_attachments:AttachmentInline'
18472
+ content_type:
18473
+ $ref: '#/components/schemas/type_attachments:AttachmentContentType'
18474
+ content_disposition:
18475
+ $ref: '#/components/schemas/type_attachments:AttachmentContentDisposition'
18476
+ content_id:
18477
+ $ref: '#/components/schemas/type_attachments:AttachmentContentId'
18340
18478
  required:
18341
18479
  - attachment_id
18342
18480
  - size
18343
- - inline
18481
+ - content_disposition
18344
18482
  type_messages:MessageAttachments:
18345
18483
  type: array
18346
18484
  items:
@@ -21651,12 +21789,17 @@ components:
21651
21789
  type: string
21652
21790
  type_attachments:AttachmentFilename:
21653
21791
  type: string
21654
- type_attachments:AttachmentContentType:
21655
- type: string
21656
21792
  type_attachments:AttachmentSize:
21657
21793
  type: integer
21658
- type_attachments:AttachmentInline:
21659
- type: boolean
21794
+ type_attachments:AttachmentContentType:
21795
+ type: string
21796
+ type_attachments:AttachmentContentDisposition:
21797
+ type: string
21798
+ enum:
21799
+ - value: inline
21800
+ - value: attachment
21801
+ type_attachments:AttachmentContentId:
21802
+ type: string
21660
21803
  type_attachments:Attachment:
21661
21804
  type: object
21662
21805
  properties:
@@ -21664,16 +21807,18 @@ components:
21664
21807
  $ref: '#/components/schemas/type_attachments:AttachmentId'
21665
21808
  filename:
21666
21809
  $ref: '#/components/schemas/type_attachments:AttachmentFilename'
21667
- content_type:
21668
- $ref: '#/components/schemas/type_attachments:AttachmentContentType'
21669
21810
  size:
21670
21811
  $ref: '#/components/schemas/type_attachments:AttachmentSize'
21671
- inline:
21672
- $ref: '#/components/schemas/type_attachments:AttachmentInline'
21812
+ content_type:
21813
+ $ref: '#/components/schemas/type_attachments:AttachmentContentType'
21814
+ content_disposition:
21815
+ $ref: '#/components/schemas/type_attachments:AttachmentContentDisposition'
21816
+ content_id:
21817
+ $ref: '#/components/schemas/type_attachments:AttachmentContentId'
21673
21818
  required:
21674
21819
  - attachment_id
21675
21820
  - size
21676
- - inline
21821
+ - content_disposition
21677
21822
  type_threads:ThreadAttachments:
21678
21823
  type: array
21679
21824
  items:
@@ -21971,12 +22116,17 @@ components:
21971
22116
  type: string
21972
22117
  type_attachments:AttachmentFilename:
21973
22118
  type: string
21974
- type_attachments:AttachmentContentType:
21975
- type: string
21976
22119
  type_attachments:AttachmentSize:
21977
22120
  type: integer
21978
- type_attachments:AttachmentInline:
21979
- type: boolean
22121
+ type_attachments:AttachmentContentType:
22122
+ type: string
22123
+ type_attachments:AttachmentContentDisposition:
22124
+ type: string
22125
+ enum:
22126
+ - value: inline
22127
+ - value: attachment
22128
+ type_attachments:AttachmentContentId:
22129
+ type: string
21980
22130
  type_attachments:Attachment:
21981
22131
  type: object
21982
22132
  properties:
@@ -21984,16 +22134,18 @@ components:
21984
22134
  $ref: '#/components/schemas/type_attachments:AttachmentId'
21985
22135
  filename:
21986
22136
  $ref: '#/components/schemas/type_attachments:AttachmentFilename'
21987
- content_type:
21988
- $ref: '#/components/schemas/type_attachments:AttachmentContentType'
21989
22137
  size:
21990
22138
  $ref: '#/components/schemas/type_attachments:AttachmentSize'
21991
- inline:
21992
- $ref: '#/components/schemas/type_attachments:AttachmentInline'
22139
+ content_type:
22140
+ $ref: '#/components/schemas/type_attachments:AttachmentContentType'
22141
+ content_disposition:
22142
+ $ref: '#/components/schemas/type_attachments:AttachmentContentDisposition'
22143
+ content_id:
22144
+ $ref: '#/components/schemas/type_attachments:AttachmentContentId'
21993
22145
  required:
21994
22146
  - attachment_id
21995
22147
  - size
21996
- - inline
22148
+ - content_disposition
21997
22149
  type_threads:ThreadAttachments:
21998
22150
  type: array
21999
22151
  items:
@@ -22635,12 +22787,17 @@ components:
22635
22787
  type: string
22636
22788
  type_attachments:AttachmentFilename:
22637
22789
  type: string
22638
- type_attachments:AttachmentContentType:
22639
- type: string
22640
22790
  type_attachments:AttachmentSize:
22641
22791
  type: integer
22642
- type_attachments:AttachmentInline:
22643
- type: boolean
22792
+ type_attachments:AttachmentContentType:
22793
+ type: string
22794
+ type_attachments:AttachmentContentDisposition:
22795
+ type: string
22796
+ enum:
22797
+ - value: inline
22798
+ - value: attachment
22799
+ type_attachments:AttachmentContentId:
22800
+ type: string
22644
22801
  type_attachments:Attachment:
22645
22802
  type: object
22646
22803
  properties:
@@ -22648,16 +22805,18 @@ components:
22648
22805
  $ref: '#/components/schemas/type_attachments:AttachmentId'
22649
22806
  filename:
22650
22807
  $ref: '#/components/schemas/type_attachments:AttachmentFilename'
22651
- content_type:
22652
- $ref: '#/components/schemas/type_attachments:AttachmentContentType'
22653
22808
  size:
22654
22809
  $ref: '#/components/schemas/type_attachments:AttachmentSize'
22655
- inline:
22656
- $ref: '#/components/schemas/type_attachments:AttachmentInline'
22810
+ content_type:
22811
+ $ref: '#/components/schemas/type_attachments:AttachmentContentType'
22812
+ content_disposition:
22813
+ $ref: '#/components/schemas/type_attachments:AttachmentContentDisposition'
22814
+ content_id:
22815
+ $ref: '#/components/schemas/type_attachments:AttachmentContentId'
22657
22816
  required:
22658
22817
  - attachment_id
22659
22818
  - size
22660
- - inline
22819
+ - content_disposition
22661
22820
  type_drafts:DraftAttachments:
22662
22821
  type: array
22663
22822
  items:
@@ -22948,12 +23107,17 @@ components:
22948
23107
  type: string
22949
23108
  type_attachments:AttachmentFilename:
22950
23109
  type: string
22951
- type_attachments:AttachmentContentType:
22952
- type: string
22953
23110
  type_attachments:AttachmentSize:
22954
23111
  type: integer
22955
- type_attachments:AttachmentInline:
22956
- type: boolean
23112
+ type_attachments:AttachmentContentType:
23113
+ type: string
23114
+ type_attachments:AttachmentContentDisposition:
23115
+ type: string
23116
+ enum:
23117
+ - value: inline
23118
+ - value: attachment
23119
+ type_attachments:AttachmentContentId:
23120
+ type: string
22957
23121
  type_attachments:Attachment:
22958
23122
  type: object
22959
23123
  properties:
@@ -22961,16 +23125,18 @@ components:
22961
23125
  $ref: '#/components/schemas/type_attachments:AttachmentId'
22962
23126
  filename:
22963
23127
  $ref: '#/components/schemas/type_attachments:AttachmentFilename'
22964
- content_type:
22965
- $ref: '#/components/schemas/type_attachments:AttachmentContentType'
22966
23128
  size:
22967
23129
  $ref: '#/components/schemas/type_attachments:AttachmentSize'
22968
- inline:
22969
- $ref: '#/components/schemas/type_attachments:AttachmentInline'
23130
+ content_type:
23131
+ $ref: '#/components/schemas/type_attachments:AttachmentContentType'
23132
+ content_disposition:
23133
+ $ref: '#/components/schemas/type_attachments:AttachmentContentDisposition'
23134
+ content_id:
23135
+ $ref: '#/components/schemas/type_attachments:AttachmentContentId'
22970
23136
  required:
22971
23137
  - attachment_id
22972
23138
  - size
22973
- - inline
23139
+ - content_disposition
22974
23140
  type_drafts:DraftAttachments:
22975
23141
  type: array
22976
23142
  items:
@@ -23903,3 +24069,203 @@ let dataTask = session.dataTask(with: request as URLRequest, completionHandler:
23903
24069
  dataTask.resume()
23904
24070
  ```
23905
24071
 
24072
+ # Get Organization
24073
+
24074
+ GET https://api.agentmail.to/v0/organizations
24075
+
24076
+ Get the current organization.
24077
+
24078
+ Reference: https://docs.agentmail.to/api-reference/organizations/get
24079
+
24080
+ ## OpenAPI Specification
24081
+
24082
+ ```yaml
24083
+ openapi: 3.1.1
24084
+ info:
24085
+ title: Get Organization
24086
+ version: endpoint_organizations.get
24087
+ paths:
24088
+ /v0/organizations:
24089
+ get:
24090
+ operationId: get
24091
+ summary: Get Organization
24092
+ description: Get the current organization.
24093
+ tags:
24094
+ - - subpackage_organizations
24095
+ parameters:
24096
+ - name: Authorization
24097
+ in: header
24098
+ description: >-
24099
+ Bearer authentication of the form `Bearer <token>`, where token is
24100
+ your auth token.
24101
+ required: true
24102
+ schema:
24103
+ type: string
24104
+ responses:
24105
+ '200':
24106
+ description: Response with status 200
24107
+ content:
24108
+ application/json:
24109
+ schema:
24110
+ $ref: '#/components/schemas/type_organizations:Organization'
24111
+ components:
24112
+ schemas:
24113
+ type_:OrganizationId:
24114
+ type: string
24115
+ type_organizations:Organization:
24116
+ type: object
24117
+ properties:
24118
+ organization_id:
24119
+ $ref: '#/components/schemas/type_:OrganizationId'
24120
+ inbox_count:
24121
+ type: integer
24122
+ description: Current number of inboxes.
24123
+ domain_count:
24124
+ type: integer
24125
+ description: Current number of domains.
24126
+ inbox_limit:
24127
+ type: integer
24128
+ description: Maximum number of inboxes allowed.
24129
+ domain_limit:
24130
+ type: integer
24131
+ description: Maximum number of domains allowed.
24132
+ updated_at:
24133
+ type: string
24134
+ format: date-time
24135
+ description: Time at which organization was last updated.
24136
+ created_at:
24137
+ type: string
24138
+ format: date-time
24139
+ description: Time at which organization was created.
24140
+ required:
24141
+ - organization_id
24142
+ - inbox_count
24143
+ - domain_count
24144
+ - updated_at
24145
+ - created_at
24146
+
24147
+ ```
24148
+
24149
+ ## SDK Code Examples
24150
+
24151
+ ```typescript
24152
+ import { AgentMailClient } from "agentmail";
24153
+
24154
+ async function main() {
24155
+ const client = new AgentMailClient({
24156
+ environment: "https://api.agentmail.to",
24157
+ apiKey: "YOUR_TOKEN_HERE",
24158
+ });
24159
+ await client.organizations.get();
24160
+ }
24161
+ main();
24162
+
24163
+ ```
24164
+
24165
+ ```python
24166
+ from agentmail import AgentMail
24167
+
24168
+ client = AgentMail(
24169
+ base_url="https://api.agentmail.to",
24170
+ api_key="YOUR_TOKEN_HERE"
24171
+ )
24172
+
24173
+ client.organizations.get()
24174
+
24175
+ ```
24176
+
24177
+ ```go
24178
+ package main
24179
+
24180
+ import (
24181
+ "fmt"
24182
+ "net/http"
24183
+ "io"
24184
+ )
24185
+
24186
+ func main() {
24187
+
24188
+ url := "https://api.agentmail.to/v0/organizations"
24189
+
24190
+ req, _ := http.NewRequest("GET", url, nil)
24191
+
24192
+ req.Header.Add("Authorization", "Bearer <api_key>")
24193
+
24194
+ res, _ := http.DefaultClient.Do(req)
24195
+
24196
+ defer res.Body.Close()
24197
+ body, _ := io.ReadAll(res.Body)
24198
+
24199
+ fmt.Println(res)
24200
+ fmt.Println(string(body))
24201
+
24202
+ }
24203
+ ```
24204
+
24205
+ ```ruby
24206
+ require 'uri'
24207
+ require 'net/http'
24208
+
24209
+ url = URI("https://api.agentmail.to/v0/organizations")
24210
+
24211
+ http = Net::HTTP.new(url.host, url.port)
24212
+ http.use_ssl = true
24213
+
24214
+ request = Net::HTTP::Get.new(url)
24215
+ request["Authorization"] = 'Bearer <api_key>'
24216
+
24217
+ response = http.request(request)
24218
+ puts response.read_body
24219
+ ```
24220
+
24221
+ ```java
24222
+ HttpResponse<String> response = Unirest.get("https://api.agentmail.to/v0/organizations")
24223
+ .header("Authorization", "Bearer <api_key>")
24224
+ .asString();
24225
+ ```
24226
+
24227
+ ```php
24228
+ <?php
24229
+
24230
+ $client = new \GuzzleHttp\Client();
24231
+
24232
+ $response = $client->request('GET', 'https://api.agentmail.to/v0/organizations', [
24233
+ 'headers' => [
24234
+ 'Authorization' => 'Bearer <api_key>',
24235
+ ],
24236
+ ]);
24237
+
24238
+ echo $response->getBody();
24239
+ ```
24240
+
24241
+ ```csharp
24242
+ var client = new RestClient("https://api.agentmail.to/v0/organizations");
24243
+ var request = new RestRequest(Method.GET);
24244
+ request.AddHeader("Authorization", "Bearer <api_key>");
24245
+ IRestResponse response = client.Execute(request);
24246
+ ```
24247
+
24248
+ ```swift
24249
+ import Foundation
24250
+
24251
+ let headers = ["Authorization": "Bearer <api_key>"]
24252
+
24253
+ let request = NSMutableURLRequest(url: NSURL(string: "https://api.agentmail.to/v0/organizations")! as URL,
24254
+ cachePolicy: .useProtocolCachePolicy,
24255
+ timeoutInterval: 10.0)
24256
+ request.httpMethod = "GET"
24257
+ request.allHTTPHeaderFields = headers
24258
+
24259
+ let session = URLSession.shared
24260
+ let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
24261
+ if (error != nil) {
24262
+ print(error as Any)
24263
+ } else {
24264
+ let httpResponse = response as? HTTPURLResponse
24265
+ print(httpResponse)
24266
+ }
24267
+ })
24268
+
24269
+ dataTask.resume()
24270
+ ```
24271
+