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
@@ -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.17",
47
- "User-Agent": "agentmail/0.1.17",
46
+ "X-Fern-SDK-Version": "0.1.19",
47
+ "User-Agent": "agentmail/0.1.19",
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 | null;
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.optional()),
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.17";
1
+ export declare const SDK_VERSION = "0.1.19";
@@ -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.17";
4
+ exports.SDK_VERSION = "0.1.19";
@@ -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.17",
10
- "User-Agent": "agentmail/0.1.17",
9
+ "X-Fern-SDK-Version": "0.1.19",
10
+ "User-Agent": "agentmail/0.1.19",
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 | null;
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.optional()),
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.17";
1
+ export declare const SDK_VERSION = "0.1.19";
@@ -1 +1 @@
1
- export const SDK_VERSION = "0.1.17";
1
+ export const SDK_VERSION = "0.1.19";