agentmail 0.1.16 → 0.1.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 (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 +217 -17
  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
@@ -43,8 +43,8 @@ function normalizeClientOptions(options) {
43
43
  const headers = (0, headers_js_1.mergeHeaders)({
44
44
  "X-Fern-Language": "JavaScript",
45
45
  "X-Fern-SDK-Name": "agentmail",
46
- "X-Fern-SDK-Version": "0.1.16",
47
- "User-Agent": "agentmail/0.1.16",
46
+ "X-Fern-SDK-Version": "0.1.18",
47
+ "User-Agent": "agentmail/0.1.18",
48
48
  "X-Fern-Runtime": core.RUNTIME.type,
49
49
  "X-Fern-Runtime-Version": core.RUNTIME.version,
50
50
  }, options === null || options === void 0 ? void 0 : options.headers);
@@ -2,7 +2,8 @@ import type * as AgentMail from "../../../index.js";
2
2
  export interface Attachment {
3
3
  attachmentId: AgentMail.AttachmentId;
4
4
  filename?: AgentMail.AttachmentFilename;
5
- contentType?: AgentMail.AttachmentContentType;
6
5
  size: AgentMail.AttachmentSize;
7
- inline: AgentMail.AttachmentInline;
6
+ contentType?: AgentMail.AttachmentContentType;
7
+ contentDisposition: AgentMail.AttachmentContentDisposition;
8
+ contentId?: AgentMail.AttachmentContentId;
8
9
  }
@@ -0,0 +1,6 @@
1
+ /** Content disposition of attachment. */
2
+ export declare const AttachmentContentDisposition: {
3
+ readonly Inline: "inline";
4
+ readonly Attachment: "attachment";
5
+ };
6
+ export type AttachmentContentDisposition = (typeof AttachmentContentDisposition)[keyof typeof AttachmentContentDisposition];
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.AttachmentContentDisposition = void 0;
5
+ /** Content disposition of attachment. */
6
+ exports.AttachmentContentDisposition = {
7
+ Inline: "inline",
8
+ Attachment: "attachment",
9
+ };
@@ -0,0 +1,4 @@
1
+ /**
2
+ * Content ID of attachment.
3
+ */
4
+ export type AttachmentContentId = string;
@@ -2,5 +2,7 @@ import type * as AgentMail from "../../../index.js";
2
2
  export interface SendAttachment {
3
3
  filename?: AgentMail.AttachmentFilename;
4
4
  contentType?: AgentMail.AttachmentContentType;
5
+ contentDisposition?: AgentMail.AttachmentContentDisposition;
6
+ contentId?: AgentMail.AttachmentContentId;
5
7
  content: AgentMail.AttachmentContent;
6
8
  }
@@ -1,8 +1,9 @@
1
1
  export * from "./Attachment.js";
2
2
  export * from "./AttachmentContent.js";
3
+ export * from "./AttachmentContentDisposition.js";
4
+ export * from "./AttachmentContentId.js";
3
5
  export * from "./AttachmentContentType.js";
4
6
  export * from "./AttachmentFilename.js";
5
7
  export * from "./AttachmentId.js";
6
- export * from "./AttachmentInline.js";
7
8
  export * from "./AttachmentSize.js";
8
9
  export * from "./SendAttachment.js";
@@ -16,9 +16,10 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./Attachment.js"), exports);
18
18
  __exportStar(require("./AttachmentContent.js"), exports);
19
+ __exportStar(require("./AttachmentContentDisposition.js"), exports);
20
+ __exportStar(require("./AttachmentContentId.js"), exports);
19
21
  __exportStar(require("./AttachmentContentType.js"), exports);
20
22
  __exportStar(require("./AttachmentFilename.js"), exports);
21
23
  __exportStar(require("./AttachmentId.js"), exports);
22
- __exportStar(require("./AttachmentInline.js"), exports);
23
24
  __exportStar(require("./AttachmentSize.js"), exports);
24
25
  __exportStar(require("./SendAttachment.js"), exports);
@@ -1,18 +1,20 @@
1
1
  import type * as AgentMail from "../../../../api/index.js";
2
2
  import * as core from "../../../../core/index.js";
3
3
  import type * as serializers from "../../../index.js";
4
+ import { AttachmentContentDisposition } from "./AttachmentContentDisposition.js";
5
+ import { AttachmentContentId } from "./AttachmentContentId.js";
4
6
  import { AttachmentContentType } from "./AttachmentContentType.js";
5
7
  import { AttachmentFilename } from "./AttachmentFilename.js";
6
8
  import { AttachmentId } from "./AttachmentId.js";
7
- import { AttachmentInline } from "./AttachmentInline.js";
8
9
  import { AttachmentSize } from "./AttachmentSize.js";
9
10
  export declare const Attachment: core.serialization.ObjectSchema<serializers.Attachment.Raw, AgentMail.Attachment>;
10
11
  export declare namespace Attachment {
11
12
  interface Raw {
12
13
  attachment_id: AttachmentId.Raw;
13
14
  filename?: AttachmentFilename.Raw | null;
14
- content_type?: AttachmentContentType.Raw | null;
15
15
  size: AttachmentSize.Raw;
16
- inline: AttachmentInline.Raw;
16
+ content_type?: AttachmentContentType.Raw | null;
17
+ content_disposition: AttachmentContentDisposition.Raw;
18
+ content_id?: AttachmentContentId.Raw | null;
17
19
  }
18
20
  }
@@ -36,15 +36,17 @@ var __importStar = (this && this.__importStar) || (function () {
36
36
  Object.defineProperty(exports, "__esModule", { value: true });
37
37
  exports.Attachment = void 0;
38
38
  const core = __importStar(require("../../../../core/index.js"));
39
+ const AttachmentContentDisposition_js_1 = require("./AttachmentContentDisposition.js");
40
+ const AttachmentContentId_js_1 = require("./AttachmentContentId.js");
39
41
  const AttachmentContentType_js_1 = require("./AttachmentContentType.js");
40
42
  const AttachmentFilename_js_1 = require("./AttachmentFilename.js");
41
43
  const AttachmentId_js_1 = require("./AttachmentId.js");
42
- const AttachmentInline_js_1 = require("./AttachmentInline.js");
43
44
  const AttachmentSize_js_1 = require("./AttachmentSize.js");
44
45
  exports.Attachment = core.serialization.object({
45
46
  attachmentId: core.serialization.property("attachment_id", AttachmentId_js_1.AttachmentId),
46
47
  filename: AttachmentFilename_js_1.AttachmentFilename.optional(),
47
- contentType: core.serialization.property("content_type", AttachmentContentType_js_1.AttachmentContentType.optional()),
48
48
  size: AttachmentSize_js_1.AttachmentSize,
49
- inline: AttachmentInline_js_1.AttachmentInline,
49
+ contentType: core.serialization.property("content_type", AttachmentContentType_js_1.AttachmentContentType.optional()),
50
+ contentDisposition: core.serialization.property("content_disposition", AttachmentContentDisposition_js_1.AttachmentContentDisposition),
51
+ contentId: core.serialization.property("content_id", AttachmentContentId_js_1.AttachmentContentId.optional()),
50
52
  });
@@ -0,0 +1,7 @@
1
+ import type * as AgentMail from "../../../../api/index.js";
2
+ import * as core from "../../../../core/index.js";
3
+ import type * as serializers from "../../../index.js";
4
+ export declare const AttachmentContentDisposition: core.serialization.Schema<serializers.AttachmentContentDisposition.Raw, AgentMail.AttachmentContentDisposition>;
5
+ export declare namespace AttachmentContentDisposition {
6
+ type Raw = "inline" | "attachment";
7
+ }
@@ -0,0 +1,39 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
4
+ if (k2 === undefined) k2 = k;
5
+ var desc = Object.getOwnPropertyDescriptor(m, k);
6
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
7
+ desc = { enumerable: true, get: function() { return m[k]; } };
8
+ }
9
+ Object.defineProperty(o, k2, desc);
10
+ }) : (function(o, m, k, k2) {
11
+ if (k2 === undefined) k2 = k;
12
+ o[k2] = m[k];
13
+ }));
14
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
15
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
16
+ }) : function(o, v) {
17
+ o["default"] = v;
18
+ });
19
+ var __importStar = (this && this.__importStar) || (function () {
20
+ var ownKeys = function(o) {
21
+ ownKeys = Object.getOwnPropertyNames || function (o) {
22
+ var ar = [];
23
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
24
+ return ar;
25
+ };
26
+ return ownKeys(o);
27
+ };
28
+ return function (mod) {
29
+ if (mod && mod.__esModule) return mod;
30
+ var result = {};
31
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
32
+ __setModuleDefault(result, mod);
33
+ return result;
34
+ };
35
+ })();
36
+ Object.defineProperty(exports, "__esModule", { value: true });
37
+ exports.AttachmentContentDisposition = void 0;
38
+ const core = __importStar(require("../../../../core/index.js"));
39
+ exports.AttachmentContentDisposition = core.serialization.enum_(["inline", "attachment"]);
@@ -0,0 +1,7 @@
1
+ import type * as AgentMail from "../../../../api/index.js";
2
+ import * as core from "../../../../core/index.js";
3
+ import type * as serializers from "../../../index.js";
4
+ export declare const AttachmentContentId: core.serialization.Schema<serializers.AttachmentContentId.Raw, AgentMail.AttachmentContentId>;
5
+ export declare namespace AttachmentContentId {
6
+ type Raw = string;
7
+ }
@@ -34,6 +34,6 @@ var __importStar = (this && this.__importStar) || (function () {
34
34
  };
35
35
  })();
36
36
  Object.defineProperty(exports, "__esModule", { value: true });
37
- exports.AttachmentInline = void 0;
37
+ exports.AttachmentContentId = void 0;
38
38
  const core = __importStar(require("../../../../core/index.js"));
39
- exports.AttachmentInline = core.serialization.boolean();
39
+ exports.AttachmentContentId = core.serialization.string();
@@ -2,6 +2,8 @@ import type * as AgentMail from "../../../../api/index.js";
2
2
  import * as core from "../../../../core/index.js";
3
3
  import type * as serializers from "../../../index.js";
4
4
  import { AttachmentContent } from "./AttachmentContent.js";
5
+ import { AttachmentContentDisposition } from "./AttachmentContentDisposition.js";
6
+ import { AttachmentContentId } from "./AttachmentContentId.js";
5
7
  import { AttachmentContentType } from "./AttachmentContentType.js";
6
8
  import { AttachmentFilename } from "./AttachmentFilename.js";
7
9
  export declare const SendAttachment: core.serialization.ObjectSchema<serializers.SendAttachment.Raw, AgentMail.SendAttachment>;
@@ -9,6 +11,8 @@ export declare namespace SendAttachment {
9
11
  interface Raw {
10
12
  filename?: AttachmentFilename.Raw | null;
11
13
  content_type?: AttachmentContentType.Raw | null;
14
+ content_disposition?: AttachmentContentDisposition.Raw | null;
15
+ content_id?: AttachmentContentId.Raw | null;
12
16
  content: AttachmentContent.Raw;
13
17
  }
14
18
  }
@@ -37,10 +37,14 @@ Object.defineProperty(exports, "__esModule", { value: true });
37
37
  exports.SendAttachment = void 0;
38
38
  const core = __importStar(require("../../../../core/index.js"));
39
39
  const AttachmentContent_js_1 = require("./AttachmentContent.js");
40
+ const AttachmentContentDisposition_js_1 = require("./AttachmentContentDisposition.js");
41
+ const AttachmentContentId_js_1 = require("./AttachmentContentId.js");
40
42
  const AttachmentContentType_js_1 = require("./AttachmentContentType.js");
41
43
  const AttachmentFilename_js_1 = require("./AttachmentFilename.js");
42
44
  exports.SendAttachment = core.serialization.object({
43
45
  filename: AttachmentFilename_js_1.AttachmentFilename.optional(),
44
46
  contentType: core.serialization.property("content_type", AttachmentContentType_js_1.AttachmentContentType.optional()),
47
+ contentDisposition: core.serialization.property("content_disposition", AttachmentContentDisposition_js_1.AttachmentContentDisposition.optional()),
48
+ contentId: core.serialization.property("content_id", AttachmentContentId_js_1.AttachmentContentId.optional()),
45
49
  content: AttachmentContent_js_1.AttachmentContent,
46
50
  });
@@ -1,8 +1,9 @@
1
1
  export * from "./Attachment.js";
2
2
  export * from "./AttachmentContent.js";
3
+ export * from "./AttachmentContentDisposition.js";
4
+ export * from "./AttachmentContentId.js";
3
5
  export * from "./AttachmentContentType.js";
4
6
  export * from "./AttachmentFilename.js";
5
7
  export * from "./AttachmentId.js";
6
- export * from "./AttachmentInline.js";
7
8
  export * from "./AttachmentSize.js";
8
9
  export * from "./SendAttachment.js";
@@ -16,9 +16,10 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./Attachment.js"), exports);
18
18
  __exportStar(require("./AttachmentContent.js"), exports);
19
+ __exportStar(require("./AttachmentContentDisposition.js"), exports);
20
+ __exportStar(require("./AttachmentContentId.js"), exports);
19
21
  __exportStar(require("./AttachmentContentType.js"), exports);
20
22
  __exportStar(require("./AttachmentFilename.js"), exports);
21
23
  __exportStar(require("./AttachmentId.js"), exports);
22
- __exportStar(require("./AttachmentInline.js"), exports);
23
24
  __exportStar(require("./AttachmentSize.js"), exports);
24
25
  __exportStar(require("./SendAttachment.js"), exports);
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "0.1.16";
1
+ export declare const SDK_VERSION = "0.1.18";
@@ -1,4 +1,4 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.SDK_VERSION = void 0;
4
- exports.SDK_VERSION = "0.1.16";
4
+ exports.SDK_VERSION = "0.1.18";
@@ -6,8 +6,8 @@ export function normalizeClientOptions(options) {
6
6
  const headers = mergeHeaders({
7
7
  "X-Fern-Language": "JavaScript",
8
8
  "X-Fern-SDK-Name": "agentmail",
9
- "X-Fern-SDK-Version": "0.1.16",
10
- "User-Agent": "agentmail/0.1.16",
9
+ "X-Fern-SDK-Version": "0.1.18",
10
+ "User-Agent": "agentmail/0.1.18",
11
11
  "X-Fern-Runtime": core.RUNTIME.type,
12
12
  "X-Fern-Runtime-Version": core.RUNTIME.version,
13
13
  }, options === null || options === void 0 ? void 0 : options.headers);
@@ -2,7 +2,8 @@ import type * as AgentMail from "../../../index.mjs";
2
2
  export interface Attachment {
3
3
  attachmentId: AgentMail.AttachmentId;
4
4
  filename?: AgentMail.AttachmentFilename;
5
- contentType?: AgentMail.AttachmentContentType;
6
5
  size: AgentMail.AttachmentSize;
7
- inline: AgentMail.AttachmentInline;
6
+ contentType?: AgentMail.AttachmentContentType;
7
+ contentDisposition: AgentMail.AttachmentContentDisposition;
8
+ contentId?: AgentMail.AttachmentContentId;
8
9
  }
@@ -0,0 +1,6 @@
1
+ /** Content disposition of attachment. */
2
+ export declare const AttachmentContentDisposition: {
3
+ readonly Inline: "inline";
4
+ readonly Attachment: "attachment";
5
+ };
6
+ export type AttachmentContentDisposition = (typeof AttachmentContentDisposition)[keyof typeof AttachmentContentDisposition];
@@ -0,0 +1,6 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ /** Content disposition of attachment. */
3
+ export const AttachmentContentDisposition = {
4
+ Inline: "inline",
5
+ Attachment: "attachment",
6
+ };
@@ -0,0 +1,4 @@
1
+ /**
2
+ * Content ID of attachment.
3
+ */
4
+ export type AttachmentContentId = string;
@@ -2,5 +2,7 @@ import type * as AgentMail from "../../../index.mjs";
2
2
  export interface SendAttachment {
3
3
  filename?: AgentMail.AttachmentFilename;
4
4
  contentType?: AgentMail.AttachmentContentType;
5
+ contentDisposition?: AgentMail.AttachmentContentDisposition;
6
+ contentId?: AgentMail.AttachmentContentId;
5
7
  content: AgentMail.AttachmentContent;
6
8
  }
@@ -1,8 +1,9 @@
1
1
  export * from "./Attachment.mjs";
2
2
  export * from "./AttachmentContent.mjs";
3
+ export * from "./AttachmentContentDisposition.mjs";
4
+ export * from "./AttachmentContentId.mjs";
3
5
  export * from "./AttachmentContentType.mjs";
4
6
  export * from "./AttachmentFilename.mjs";
5
7
  export * from "./AttachmentId.mjs";
6
- export * from "./AttachmentInline.mjs";
7
8
  export * from "./AttachmentSize.mjs";
8
9
  export * from "./SendAttachment.mjs";
@@ -1,8 +1,9 @@
1
1
  export * from "./Attachment.mjs";
2
2
  export * from "./AttachmentContent.mjs";
3
+ export * from "./AttachmentContentDisposition.mjs";
4
+ export * from "./AttachmentContentId.mjs";
3
5
  export * from "./AttachmentContentType.mjs";
4
6
  export * from "./AttachmentFilename.mjs";
5
7
  export * from "./AttachmentId.mjs";
6
- export * from "./AttachmentInline.mjs";
7
8
  export * from "./AttachmentSize.mjs";
8
9
  export * from "./SendAttachment.mjs";
@@ -1,18 +1,20 @@
1
1
  import type * as AgentMail from "../../../../api/index.mjs";
2
2
  import * as core from "../../../../core/index.mjs";
3
3
  import type * as serializers from "../../../index.mjs";
4
+ import { AttachmentContentDisposition } from "./AttachmentContentDisposition.mjs";
5
+ import { AttachmentContentId } from "./AttachmentContentId.mjs";
4
6
  import { AttachmentContentType } from "./AttachmentContentType.mjs";
5
7
  import { AttachmentFilename } from "./AttachmentFilename.mjs";
6
8
  import { AttachmentId } from "./AttachmentId.mjs";
7
- import { AttachmentInline } from "./AttachmentInline.mjs";
8
9
  import { AttachmentSize } from "./AttachmentSize.mjs";
9
10
  export declare const Attachment: core.serialization.ObjectSchema<serializers.Attachment.Raw, AgentMail.Attachment>;
10
11
  export declare namespace Attachment {
11
12
  interface Raw {
12
13
  attachment_id: AttachmentId.Raw;
13
14
  filename?: AttachmentFilename.Raw | null;
14
- content_type?: AttachmentContentType.Raw | null;
15
15
  size: AttachmentSize.Raw;
16
- inline: AttachmentInline.Raw;
16
+ content_type?: AttachmentContentType.Raw | null;
17
+ content_disposition: AttachmentContentDisposition.Raw;
18
+ content_id?: AttachmentContentId.Raw | null;
17
19
  }
18
20
  }
@@ -1,14 +1,16 @@
1
1
  // This file was auto-generated by Fern from our API Definition.
2
2
  import * as core from "../../../../core/index.mjs";
3
+ import { AttachmentContentDisposition } from "./AttachmentContentDisposition.mjs";
4
+ import { AttachmentContentId } from "./AttachmentContentId.mjs";
3
5
  import { AttachmentContentType } from "./AttachmentContentType.mjs";
4
6
  import { AttachmentFilename } from "./AttachmentFilename.mjs";
5
7
  import { AttachmentId } from "./AttachmentId.mjs";
6
- import { AttachmentInline } from "./AttachmentInline.mjs";
7
8
  import { AttachmentSize } from "./AttachmentSize.mjs";
8
9
  export const Attachment = core.serialization.object({
9
10
  attachmentId: core.serialization.property("attachment_id", AttachmentId),
10
11
  filename: AttachmentFilename.optional(),
11
- contentType: core.serialization.property("content_type", AttachmentContentType.optional()),
12
12
  size: AttachmentSize,
13
- inline: AttachmentInline,
13
+ contentType: core.serialization.property("content_type", AttachmentContentType.optional()),
14
+ contentDisposition: core.serialization.property("content_disposition", AttachmentContentDisposition),
15
+ contentId: core.serialization.property("content_id", AttachmentContentId.optional()),
14
16
  });
@@ -0,0 +1,7 @@
1
+ import type * as AgentMail from "../../../../api/index.mjs";
2
+ import * as core from "../../../../core/index.mjs";
3
+ import type * as serializers from "../../../index.mjs";
4
+ export declare const AttachmentContentDisposition: core.serialization.Schema<serializers.AttachmentContentDisposition.Raw, AgentMail.AttachmentContentDisposition>;
5
+ export declare namespace AttachmentContentDisposition {
6
+ type Raw = "inline" | "attachment";
7
+ }
@@ -0,0 +1,3 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ import * as core from "../../../../core/index.mjs";
3
+ export const AttachmentContentDisposition = core.serialization.enum_(["inline", "attachment"]);
@@ -0,0 +1,7 @@
1
+ import type * as AgentMail from "../../../../api/index.mjs";
2
+ import * as core from "../../../../core/index.mjs";
3
+ import type * as serializers from "../../../index.mjs";
4
+ export declare const AttachmentContentId: core.serialization.Schema<serializers.AttachmentContentId.Raw, AgentMail.AttachmentContentId>;
5
+ export declare namespace AttachmentContentId {
6
+ type Raw = string;
7
+ }
@@ -1,3 +1,3 @@
1
1
  // This file was auto-generated by Fern from our API Definition.
2
2
  import * as core from "../../../../core/index.mjs";
3
- export const AttachmentInline = core.serialization.boolean();
3
+ export const AttachmentContentId = core.serialization.string();
@@ -2,6 +2,8 @@ import type * as AgentMail from "../../../../api/index.mjs";
2
2
  import * as core from "../../../../core/index.mjs";
3
3
  import type * as serializers from "../../../index.mjs";
4
4
  import { AttachmentContent } from "./AttachmentContent.mjs";
5
+ import { AttachmentContentDisposition } from "./AttachmentContentDisposition.mjs";
6
+ import { AttachmentContentId } from "./AttachmentContentId.mjs";
5
7
  import { AttachmentContentType } from "./AttachmentContentType.mjs";
6
8
  import { AttachmentFilename } from "./AttachmentFilename.mjs";
7
9
  export declare const SendAttachment: core.serialization.ObjectSchema<serializers.SendAttachment.Raw, AgentMail.SendAttachment>;
@@ -9,6 +11,8 @@ export declare namespace SendAttachment {
9
11
  interface Raw {
10
12
  filename?: AttachmentFilename.Raw | null;
11
13
  content_type?: AttachmentContentType.Raw | null;
14
+ content_disposition?: AttachmentContentDisposition.Raw | null;
15
+ content_id?: AttachmentContentId.Raw | null;
12
16
  content: AttachmentContent.Raw;
13
17
  }
14
18
  }
@@ -1,10 +1,14 @@
1
1
  // This file was auto-generated by Fern from our API Definition.
2
2
  import * as core from "../../../../core/index.mjs";
3
3
  import { AttachmentContent } from "./AttachmentContent.mjs";
4
+ import { AttachmentContentDisposition } from "./AttachmentContentDisposition.mjs";
5
+ import { AttachmentContentId } from "./AttachmentContentId.mjs";
4
6
  import { AttachmentContentType } from "./AttachmentContentType.mjs";
5
7
  import { AttachmentFilename } from "./AttachmentFilename.mjs";
6
8
  export const SendAttachment = core.serialization.object({
7
9
  filename: AttachmentFilename.optional(),
8
10
  contentType: core.serialization.property("content_type", AttachmentContentType.optional()),
11
+ contentDisposition: core.serialization.property("content_disposition", AttachmentContentDisposition.optional()),
12
+ contentId: core.serialization.property("content_id", AttachmentContentId.optional()),
9
13
  content: AttachmentContent,
10
14
  });
@@ -1,8 +1,9 @@
1
1
  export * from "./Attachment.mjs";
2
2
  export * from "./AttachmentContent.mjs";
3
+ export * from "./AttachmentContentDisposition.mjs";
4
+ export * from "./AttachmentContentId.mjs";
3
5
  export * from "./AttachmentContentType.mjs";
4
6
  export * from "./AttachmentFilename.mjs";
5
7
  export * from "./AttachmentId.mjs";
6
- export * from "./AttachmentInline.mjs";
7
8
  export * from "./AttachmentSize.mjs";
8
9
  export * from "./SendAttachment.mjs";
@@ -1,8 +1,9 @@
1
1
  export * from "./Attachment.mjs";
2
2
  export * from "./AttachmentContent.mjs";
3
+ export * from "./AttachmentContentDisposition.mjs";
4
+ export * from "./AttachmentContentId.mjs";
3
5
  export * from "./AttachmentContentType.mjs";
4
6
  export * from "./AttachmentFilename.mjs";
5
7
  export * from "./AttachmentId.mjs";
6
- export * from "./AttachmentInline.mjs";
7
8
  export * from "./AttachmentSize.mjs";
8
9
  export * from "./SendAttachment.mjs";
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "0.1.16";
1
+ export declare const SDK_VERSION = "0.1.18";
@@ -1 +1 @@
1
- export const SDK_VERSION = "0.1.16";
1
+ export const SDK_VERSION = "0.1.18";
@@ -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
 
@@ -23903,3 +23903,203 @@ let dataTask = session.dataTask(with: request as URLRequest, completionHandler:
23903
23903
  dataTask.resume()
23904
23904
  ```
23905
23905
 
23906
+ # Get Organization
23907
+
23908
+ GET https://api.agentmail.to/v0/organizations
23909
+
23910
+ Get the current organization.
23911
+
23912
+ Reference: https://docs.agentmail.to/api-reference/organizations/get
23913
+
23914
+ ## OpenAPI Specification
23915
+
23916
+ ```yaml
23917
+ openapi: 3.1.1
23918
+ info:
23919
+ title: Get Organization
23920
+ version: endpoint_organizations.get
23921
+ paths:
23922
+ /v0/organizations:
23923
+ get:
23924
+ operationId: get
23925
+ summary: Get Organization
23926
+ description: Get the current organization.
23927
+ tags:
23928
+ - - subpackage_organizations
23929
+ parameters:
23930
+ - name: Authorization
23931
+ in: header
23932
+ description: >-
23933
+ Bearer authentication of the form `Bearer <token>`, where token is
23934
+ your auth token.
23935
+ required: true
23936
+ schema:
23937
+ type: string
23938
+ responses:
23939
+ '200':
23940
+ description: Response with status 200
23941
+ content:
23942
+ application/json:
23943
+ schema:
23944
+ $ref: '#/components/schemas/type_organizations:Organization'
23945
+ components:
23946
+ schemas:
23947
+ type_:OrganizationId:
23948
+ type: string
23949
+ type_organizations:Organization:
23950
+ type: object
23951
+ properties:
23952
+ organization_id:
23953
+ $ref: '#/components/schemas/type_:OrganizationId'
23954
+ inbox_count:
23955
+ type: integer
23956
+ description: Current number of inboxes.
23957
+ domain_count:
23958
+ type: integer
23959
+ description: Current number of domains.
23960
+ inbox_limit:
23961
+ type: integer
23962
+ description: Maximum number of inboxes allowed.
23963
+ domain_limit:
23964
+ type: integer
23965
+ description: Maximum number of domains allowed.
23966
+ updated_at:
23967
+ type: string
23968
+ format: date-time
23969
+ description: Time at which organization was last updated.
23970
+ created_at:
23971
+ type: string
23972
+ format: date-time
23973
+ description: Time at which organization was created.
23974
+ required:
23975
+ - organization_id
23976
+ - inbox_count
23977
+ - domain_count
23978
+ - updated_at
23979
+ - created_at
23980
+
23981
+ ```
23982
+
23983
+ ## SDK Code Examples
23984
+
23985
+ ```typescript
23986
+ import { AgentMailClient } from "agentmail";
23987
+
23988
+ async function main() {
23989
+ const client = new AgentMailClient({
23990
+ environment: "https://api.agentmail.to",
23991
+ apiKey: "YOUR_TOKEN_HERE",
23992
+ });
23993
+ await client.organizations.get();
23994
+ }
23995
+ main();
23996
+
23997
+ ```
23998
+
23999
+ ```python
24000
+ from agentmail import AgentMail
24001
+
24002
+ client = AgentMail(
24003
+ base_url="https://api.agentmail.to",
24004
+ api_key="YOUR_TOKEN_HERE"
24005
+ )
24006
+
24007
+ client.organizations.get()
24008
+
24009
+ ```
24010
+
24011
+ ```go
24012
+ package main
24013
+
24014
+ import (
24015
+ "fmt"
24016
+ "net/http"
24017
+ "io"
24018
+ )
24019
+
24020
+ func main() {
24021
+
24022
+ url := "https://api.agentmail.to/v0/organizations"
24023
+
24024
+ req, _ := http.NewRequest("GET", url, nil)
24025
+
24026
+ req.Header.Add("Authorization", "Bearer <api_key>")
24027
+
24028
+ res, _ := http.DefaultClient.Do(req)
24029
+
24030
+ defer res.Body.Close()
24031
+ body, _ := io.ReadAll(res.Body)
24032
+
24033
+ fmt.Println(res)
24034
+ fmt.Println(string(body))
24035
+
24036
+ }
24037
+ ```
24038
+
24039
+ ```ruby
24040
+ require 'uri'
24041
+ require 'net/http'
24042
+
24043
+ url = URI("https://api.agentmail.to/v0/organizations")
24044
+
24045
+ http = Net::HTTP.new(url.host, url.port)
24046
+ http.use_ssl = true
24047
+
24048
+ request = Net::HTTP::Get.new(url)
24049
+ request["Authorization"] = 'Bearer <api_key>'
24050
+
24051
+ response = http.request(request)
24052
+ puts response.read_body
24053
+ ```
24054
+
24055
+ ```java
24056
+ HttpResponse<String> response = Unirest.get("https://api.agentmail.to/v0/organizations")
24057
+ .header("Authorization", "Bearer <api_key>")
24058
+ .asString();
24059
+ ```
24060
+
24061
+ ```php
24062
+ <?php
24063
+
24064
+ $client = new \GuzzleHttp\Client();
24065
+
24066
+ $response = $client->request('GET', 'https://api.agentmail.to/v0/organizations', [
24067
+ 'headers' => [
24068
+ 'Authorization' => 'Bearer <api_key>',
24069
+ ],
24070
+ ]);
24071
+
24072
+ echo $response->getBody();
24073
+ ```
24074
+
24075
+ ```csharp
24076
+ var client = new RestClient("https://api.agentmail.to/v0/organizations");
24077
+ var request = new RestRequest(Method.GET);
24078
+ request.AddHeader("Authorization", "Bearer <api_key>");
24079
+ IRestResponse response = client.Execute(request);
24080
+ ```
24081
+
24082
+ ```swift
24083
+ import Foundation
24084
+
24085
+ let headers = ["Authorization": "Bearer <api_key>"]
24086
+
24087
+ let request = NSMutableURLRequest(url: NSURL(string: "https://api.agentmail.to/v0/organizations")! as URL,
24088
+ cachePolicy: .useProtocolCachePolicy,
24089
+ timeoutInterval: 10.0)
24090
+ request.httpMethod = "GET"
24091
+ request.allHTTPHeaderFields = headers
24092
+
24093
+ let session = URLSession.shared
24094
+ let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
24095
+ if (error != nil) {
24096
+ print(error as Any)
24097
+ } else {
24098
+ let httpResponse = response as? HTTPURLResponse
24099
+ print(httpResponse)
24100
+ }
24101
+ })
24102
+
24103
+ dataTask.resume()
24104
+ ```
24105
+
package/dist/llms.txt CHANGED
@@ -103,4 +103,5 @@
103
103
  - API Reference > Pods > Drafts [Get Draft](https://docs.agentmail.to/api-reference/pods/drafts/get.mdx)
104
104
  - API Reference > Pods > Domains [List Domains](https://docs.agentmail.to/api-reference/pods/domains/list.mdx)
105
105
  - API Reference > Pods > Domains [Create Domain](https://docs.agentmail.to/api-reference/pods/domains/create.mdx)
106
- - API Reference > Pods > Domains [Delete Domain](https://docs.agentmail.to/api-reference/pods/domains/delete.mdx)
106
+ - API Reference > Pods > Domains [Delete Domain](https://docs.agentmail.to/api-reference/pods/domains/delete.mdx)
107
+ - API Reference > Organizations [Get Organization](https://docs.agentmail.to/api-reference/organizations/get.mdx)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agentmail",
3
- "version": "0.1.16",
3
+ "version": "0.1.18",
4
4
  "private": false,
5
5
  "repository": "github:agentmail-to/agentmail-node",
6
6
  "type": "commonjs",
@@ -1,4 +0,0 @@
1
- /**
2
- * Attachment is part of message body.
3
- */
4
- export type AttachmentInline = boolean;
@@ -1,7 +0,0 @@
1
- import type * as AgentMail from "../../../../api/index.js";
2
- import * as core from "../../../../core/index.js";
3
- import type * as serializers from "../../../index.js";
4
- export declare const AttachmentInline: core.serialization.Schema<serializers.AttachmentInline.Raw, AgentMail.AttachmentInline>;
5
- export declare namespace AttachmentInline {
6
- type Raw = boolean;
7
- }
@@ -1,4 +0,0 @@
1
- /**
2
- * Attachment is part of message body.
3
- */
4
- export type AttachmentInline = boolean;
@@ -1,7 +0,0 @@
1
- import type * as AgentMail from "../../../../api/index.mjs";
2
- import * as core from "../../../../core/index.mjs";
3
- import type * as serializers from "../../../index.mjs";
4
- export declare const AttachmentInline: core.serialization.Schema<serializers.AttachmentInline.Raw, AgentMail.AttachmentInline>;
5
- export declare namespace AttachmentInline {
6
- type Raw = boolean;
7
- }