agentmail 0.4.4 → 0.4.6

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 (27) hide show
  1. package/dist/cjs/BaseClient.js +2 -2
  2. package/dist/cjs/api/resources/drafts/types/Draft.d.ts +0 -1
  3. package/dist/cjs/api/resources/drafts/types/DraftItem.d.ts +1 -1
  4. package/dist/cjs/api/resources/messages/types/RawMessageResponse.d.ts +2 -2
  5. package/dist/cjs/api/resources/pods/client/Client.d.ts +4 -4
  6. package/dist/cjs/api/resources/pods/client/Client.js +8 -8
  7. package/dist/cjs/serialization/resources/drafts/types/Draft.d.ts +0 -2
  8. package/dist/cjs/serialization/resources/drafts/types/Draft.js +0 -2
  9. package/dist/cjs/serialization/resources/drafts/types/DraftItem.d.ts +2 -2
  10. package/dist/cjs/serialization/resources/drafts/types/DraftItem.js +2 -2
  11. package/dist/cjs/version.d.ts +1 -1
  12. package/dist/cjs/version.js +1 -1
  13. package/dist/esm/BaseClient.mjs +2 -2
  14. package/dist/esm/api/resources/drafts/types/Draft.d.mts +0 -1
  15. package/dist/esm/api/resources/drafts/types/DraftItem.d.mts +1 -1
  16. package/dist/esm/api/resources/messages/types/RawMessageResponse.d.mts +2 -2
  17. package/dist/esm/api/resources/pods/client/Client.d.mts +4 -4
  18. package/dist/esm/api/resources/pods/client/Client.mjs +8 -8
  19. package/dist/esm/serialization/resources/drafts/types/Draft.d.mts +0 -2
  20. package/dist/esm/serialization/resources/drafts/types/Draft.mjs +0 -2
  21. package/dist/esm/serialization/resources/drafts/types/DraftItem.d.mts +2 -2
  22. package/dist/esm/serialization/resources/drafts/types/DraftItem.mjs +2 -2
  23. package/dist/esm/version.d.mts +1 -1
  24. package/dist/esm/version.mjs +1 -1
  25. package/dist/llms-full.txt +13653 -13610
  26. package/dist/llms.txt +18 -52
  27. package/package.json +1 -1
@@ -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.4.4",
47
- "User-Agent": "agentmail/0.4.4",
46
+ "X-Fern-SDK-Version": "0.4.6",
47
+ "User-Agent": "agentmail/0.4.6",
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);
@@ -1,7 +1,6 @@
1
1
  import type * as AgentMail from "../../../index.js";
2
2
  export interface Draft {
3
3
  inboxId: AgentMail.inboxes.InboxId;
4
- threadId: AgentMail.ThreadId;
5
4
  draftId: AgentMail.DraftId;
6
5
  clientId?: AgentMail.DraftClientId;
7
6
  labels: AgentMail.DraftLabels;
@@ -1,7 +1,6 @@
1
1
  import type * as AgentMail from "../../../index.js";
2
2
  export interface DraftItem {
3
3
  inboxId: AgentMail.inboxes.InboxId;
4
- threadId: AgentMail.ThreadId;
5
4
  draftId: AgentMail.DraftId;
6
5
  labels: AgentMail.DraftLabels;
7
6
  to?: AgentMail.DraftTo;
@@ -10,6 +9,7 @@ export interface DraftItem {
10
9
  subject?: AgentMail.DraftSubject;
11
10
  preview?: AgentMail.DraftPreview;
12
11
  attachments?: AgentMail.DraftAttachments;
12
+ inReplyTo?: AgentMail.DraftInReplyTo;
13
13
  sendStatus?: AgentMail.DraftSendStatus;
14
14
  sendAt?: AgentMail.DraftSendAt;
15
15
  updatedAt: AgentMail.DraftUpdatedAt;
@@ -1,13 +1,13 @@
1
1
  import type * as AgentMail from "../../../index.js";
2
2
  /**
3
- * Signed URL to download the raw .eml file. Uses CloudFront signing, same as attachments.
3
+ * S3 presigned URL to download the raw .eml file.
4
4
  */
5
5
  export interface RawMessageResponse {
6
6
  /** ID of the message. */
7
7
  messageId: AgentMail.MessageId;
8
8
  /** Size of the raw message in bytes. */
9
9
  size: AgentMail.MessageSize;
10
- /** Pre-signed CloudFront URL to download the raw message. Expires at expires_at. */
10
+ /** S3 presigned URL to download the raw message. Expires at expires_at. */
11
11
  downloadUrl: string;
12
12
  /** Time at which the download URL expires. */
13
13
  expiresAt: Date;
@@ -16,21 +16,21 @@ export declare namespace PodsClient {
16
16
  }
17
17
  export declare class PodsClient {
18
18
  protected readonly _options: NormalizedClientOptionsWithAuth<PodsClient.Options>;
19
- protected _apiKeys: ApiKeysClient | undefined;
20
- protected _domains: DomainsClient | undefined;
21
19
  protected _inboxes: InboxesClient | undefined;
22
20
  protected _threads: ThreadsClient | undefined;
23
21
  protected _drafts: DraftsClient | undefined;
22
+ protected _domains: DomainsClient | undefined;
24
23
  protected _lists: ListsClient | undefined;
25
24
  protected _metrics: MetricsClient | undefined;
25
+ protected _apiKeys: ApiKeysClient | undefined;
26
26
  constructor(options?: PodsClient.Options);
27
- get apiKeys(): ApiKeysClient;
28
- get domains(): DomainsClient;
29
27
  get inboxes(): InboxesClient;
30
28
  get threads(): ThreadsClient;
31
29
  get drafts(): DraftsClient;
30
+ get domains(): DomainsClient;
32
31
  get lists(): ListsClient;
33
32
  get metrics(): MetricsClient;
33
+ get apiKeys(): ApiKeysClient;
34
34
  /**
35
35
  * @param {AgentMail.pods.ListPodsRequest} request
36
36
  * @param {PodsClient.RequestOptions} requestOptions - Request-specific configuration.
@@ -63,14 +63,6 @@ class PodsClient {
63
63
  constructor(options = {}) {
64
64
  this._options = (0, BaseClient_js_1.normalizeClientOptionsWithAuth)(options);
65
65
  }
66
- get apiKeys() {
67
- var _a;
68
- return ((_a = this._apiKeys) !== null && _a !== void 0 ? _a : (this._apiKeys = new Client_js_1.ApiKeysClient(this._options)));
69
- }
70
- get domains() {
71
- var _a;
72
- return ((_a = this._domains) !== null && _a !== void 0 ? _a : (this._domains = new Client_js_2.DomainsClient(this._options)));
73
- }
74
66
  get inboxes() {
75
67
  var _a;
76
68
  return ((_a = this._inboxes) !== null && _a !== void 0 ? _a : (this._inboxes = new Client_js_4.InboxesClient(this._options)));
@@ -83,6 +75,10 @@ class PodsClient {
83
75
  var _a;
84
76
  return ((_a = this._drafts) !== null && _a !== void 0 ? _a : (this._drafts = new Client_js_3.DraftsClient(this._options)));
85
77
  }
78
+ get domains() {
79
+ var _a;
80
+ return ((_a = this._domains) !== null && _a !== void 0 ? _a : (this._domains = new Client_js_2.DomainsClient(this._options)));
81
+ }
86
82
  get lists() {
87
83
  var _a;
88
84
  return ((_a = this._lists) !== null && _a !== void 0 ? _a : (this._lists = new Client_js_5.ListsClient(this._options)));
@@ -91,6 +87,10 @@ class PodsClient {
91
87
  var _a;
92
88
  return ((_a = this._metrics) !== null && _a !== void 0 ? _a : (this._metrics = new Client_js_6.MetricsClient(this._options)));
93
89
  }
90
+ get apiKeys() {
91
+ var _a;
92
+ return ((_a = this._apiKeys) !== null && _a !== void 0 ? _a : (this._apiKeys = new Client_js_1.ApiKeysClient(this._options)));
93
+ }
94
94
  /**
95
95
  * @param {AgentMail.pods.ListPodsRequest} request
96
96
  * @param {PodsClient.RequestOptions} requestOptions - Request-specific configuration.
@@ -2,7 +2,6 @@ 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 { InboxId } from "../../inboxes/types/InboxId.js";
5
- import { ThreadId } from "../../threads/types/ThreadId.js";
6
5
  import { DraftAttachments } from "./DraftAttachments.js";
7
6
  import { DraftBcc } from "./DraftBcc.js";
8
7
  import { DraftCc } from "./DraftCc.js";
@@ -23,7 +22,6 @@ export declare const Draft: core.serialization.ObjectSchema<serializers.Draft.Ra
23
22
  export declare namespace Draft {
24
23
  interface Raw {
25
24
  inbox_id: InboxId.Raw;
26
- thread_id: ThreadId.Raw;
27
25
  draft_id: DraftId.Raw;
28
26
  client_id?: DraftClientId.Raw | null;
29
27
  labels: DraftLabels.Raw;
@@ -37,7 +37,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
37
37
  exports.Draft = void 0;
38
38
  const core = __importStar(require("../../../../core/index.js"));
39
39
  const InboxId_js_1 = require("../../inboxes/types/InboxId.js");
40
- const ThreadId_js_1 = require("../../threads/types/ThreadId.js");
41
40
  const DraftAttachments_js_1 = require("./DraftAttachments.js");
42
41
  const DraftBcc_js_1 = require("./DraftBcc.js");
43
42
  const DraftCc_js_1 = require("./DraftCc.js");
@@ -56,7 +55,6 @@ const DraftTo_js_1 = require("./DraftTo.js");
56
55
  const DraftUpdatedAt_js_1 = require("./DraftUpdatedAt.js");
57
56
  exports.Draft = core.serialization.object({
58
57
  inboxId: core.serialization.property("inbox_id", InboxId_js_1.InboxId),
59
- threadId: core.serialization.property("thread_id", ThreadId_js_1.ThreadId),
60
58
  draftId: core.serialization.property("draft_id", DraftId_js_1.DraftId),
61
59
  clientId: core.serialization.property("client_id", DraftClientId_js_1.DraftClientId.optional()),
62
60
  labels: DraftLabels_js_1.DraftLabels,
@@ -2,11 +2,11 @@ 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 { InboxId } from "../../inboxes/types/InboxId.js";
5
- import { ThreadId } from "../../threads/types/ThreadId.js";
6
5
  import { DraftAttachments } from "./DraftAttachments.js";
7
6
  import { DraftBcc } from "./DraftBcc.js";
8
7
  import { DraftCc } from "./DraftCc.js";
9
8
  import { DraftId } from "./DraftId.js";
9
+ import { DraftInReplyTo } from "./DraftInReplyTo.js";
10
10
  import { DraftLabels } from "./DraftLabels.js";
11
11
  import { DraftPreview } from "./DraftPreview.js";
12
12
  import { DraftSendAt } from "./DraftSendAt.js";
@@ -18,7 +18,6 @@ export declare const DraftItem: core.serialization.ObjectSchema<serializers.Draf
18
18
  export declare namespace DraftItem {
19
19
  interface Raw {
20
20
  inbox_id: InboxId.Raw;
21
- thread_id: ThreadId.Raw;
22
21
  draft_id: DraftId.Raw;
23
22
  labels: DraftLabels.Raw;
24
23
  to?: DraftTo.Raw | null;
@@ -27,6 +26,7 @@ export declare namespace DraftItem {
27
26
  subject?: DraftSubject.Raw | null;
28
27
  preview?: DraftPreview.Raw | null;
29
28
  attachments?: DraftAttachments.Raw | null;
29
+ in_reply_to?: DraftInReplyTo.Raw | null;
30
30
  send_status?: DraftSendStatus.Raw | null;
31
31
  send_at?: DraftSendAt.Raw | null;
32
32
  updated_at: DraftUpdatedAt.Raw;
@@ -37,11 +37,11 @@ Object.defineProperty(exports, "__esModule", { value: true });
37
37
  exports.DraftItem = void 0;
38
38
  const core = __importStar(require("../../../../core/index.js"));
39
39
  const InboxId_js_1 = require("../../inboxes/types/InboxId.js");
40
- const ThreadId_js_1 = require("../../threads/types/ThreadId.js");
41
40
  const DraftAttachments_js_1 = require("./DraftAttachments.js");
42
41
  const DraftBcc_js_1 = require("./DraftBcc.js");
43
42
  const DraftCc_js_1 = require("./DraftCc.js");
44
43
  const DraftId_js_1 = require("./DraftId.js");
44
+ const DraftInReplyTo_js_1 = require("./DraftInReplyTo.js");
45
45
  const DraftLabels_js_1 = require("./DraftLabels.js");
46
46
  const DraftPreview_js_1 = require("./DraftPreview.js");
47
47
  const DraftSendAt_js_1 = require("./DraftSendAt.js");
@@ -51,7 +51,6 @@ const DraftTo_js_1 = require("./DraftTo.js");
51
51
  const DraftUpdatedAt_js_1 = require("./DraftUpdatedAt.js");
52
52
  exports.DraftItem = core.serialization.object({
53
53
  inboxId: core.serialization.property("inbox_id", InboxId_js_1.InboxId),
54
- threadId: core.serialization.property("thread_id", ThreadId_js_1.ThreadId),
55
54
  draftId: core.serialization.property("draft_id", DraftId_js_1.DraftId),
56
55
  labels: DraftLabels_js_1.DraftLabels,
57
56
  to: DraftTo_js_1.DraftTo.optional(),
@@ -60,6 +59,7 @@ exports.DraftItem = core.serialization.object({
60
59
  subject: DraftSubject_js_1.DraftSubject.optional(),
61
60
  preview: DraftPreview_js_1.DraftPreview.optional(),
62
61
  attachments: DraftAttachments_js_1.DraftAttachments.optional(),
62
+ inReplyTo: core.serialization.property("in_reply_to", DraftInReplyTo_js_1.DraftInReplyTo.optional()),
63
63
  sendStatus: core.serialization.property("send_status", DraftSendStatus_js_1.DraftSendStatus.optional()),
64
64
  sendAt: core.serialization.property("send_at", DraftSendAt_js_1.DraftSendAt.optional()),
65
65
  updatedAt: core.serialization.property("updated_at", DraftUpdatedAt_js_1.DraftUpdatedAt),
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "0.4.4";
1
+ export declare const SDK_VERSION = "0.4.6";
@@ -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.4.4";
4
+ exports.SDK_VERSION = "0.4.6";
@@ -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.4.4",
10
- "User-Agent": "agentmail/0.4.4",
9
+ "X-Fern-SDK-Version": "0.4.6",
10
+ "User-Agent": "agentmail/0.4.6",
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);
@@ -1,7 +1,6 @@
1
1
  import type * as AgentMail from "../../../index.mjs";
2
2
  export interface Draft {
3
3
  inboxId: AgentMail.inboxes.InboxId;
4
- threadId: AgentMail.ThreadId;
5
4
  draftId: AgentMail.DraftId;
6
5
  clientId?: AgentMail.DraftClientId;
7
6
  labels: AgentMail.DraftLabels;
@@ -1,7 +1,6 @@
1
1
  import type * as AgentMail from "../../../index.mjs";
2
2
  export interface DraftItem {
3
3
  inboxId: AgentMail.inboxes.InboxId;
4
- threadId: AgentMail.ThreadId;
5
4
  draftId: AgentMail.DraftId;
6
5
  labels: AgentMail.DraftLabels;
7
6
  to?: AgentMail.DraftTo;
@@ -10,6 +9,7 @@ export interface DraftItem {
10
9
  subject?: AgentMail.DraftSubject;
11
10
  preview?: AgentMail.DraftPreview;
12
11
  attachments?: AgentMail.DraftAttachments;
12
+ inReplyTo?: AgentMail.DraftInReplyTo;
13
13
  sendStatus?: AgentMail.DraftSendStatus;
14
14
  sendAt?: AgentMail.DraftSendAt;
15
15
  updatedAt: AgentMail.DraftUpdatedAt;
@@ -1,13 +1,13 @@
1
1
  import type * as AgentMail from "../../../index.mjs";
2
2
  /**
3
- * Signed URL to download the raw .eml file. Uses CloudFront signing, same as attachments.
3
+ * S3 presigned URL to download the raw .eml file.
4
4
  */
5
5
  export interface RawMessageResponse {
6
6
  /** ID of the message. */
7
7
  messageId: AgentMail.MessageId;
8
8
  /** Size of the raw message in bytes. */
9
9
  size: AgentMail.MessageSize;
10
- /** Pre-signed CloudFront URL to download the raw message. Expires at expires_at. */
10
+ /** S3 presigned URL to download the raw message. Expires at expires_at. */
11
11
  downloadUrl: string;
12
12
  /** Time at which the download URL expires. */
13
13
  expiresAt: Date;
@@ -16,21 +16,21 @@ export declare namespace PodsClient {
16
16
  }
17
17
  export declare class PodsClient {
18
18
  protected readonly _options: NormalizedClientOptionsWithAuth<PodsClient.Options>;
19
- protected _apiKeys: ApiKeysClient | undefined;
20
- protected _domains: DomainsClient | undefined;
21
19
  protected _inboxes: InboxesClient | undefined;
22
20
  protected _threads: ThreadsClient | undefined;
23
21
  protected _drafts: DraftsClient | undefined;
22
+ protected _domains: DomainsClient | undefined;
24
23
  protected _lists: ListsClient | undefined;
25
24
  protected _metrics: MetricsClient | undefined;
25
+ protected _apiKeys: ApiKeysClient | undefined;
26
26
  constructor(options?: PodsClient.Options);
27
- get apiKeys(): ApiKeysClient;
28
- get domains(): DomainsClient;
29
27
  get inboxes(): InboxesClient;
30
28
  get threads(): ThreadsClient;
31
29
  get drafts(): DraftsClient;
30
+ get domains(): DomainsClient;
32
31
  get lists(): ListsClient;
33
32
  get metrics(): MetricsClient;
33
+ get apiKeys(): ApiKeysClient;
34
34
  /**
35
35
  * @param {AgentMail.pods.ListPodsRequest} request
36
36
  * @param {PodsClient.RequestOptions} requestOptions - Request-specific configuration.
@@ -27,14 +27,6 @@ export class PodsClient {
27
27
  constructor(options = {}) {
28
28
  this._options = normalizeClientOptionsWithAuth(options);
29
29
  }
30
- get apiKeys() {
31
- var _a;
32
- return ((_a = this._apiKeys) !== null && _a !== void 0 ? _a : (this._apiKeys = new ApiKeysClient(this._options)));
33
- }
34
- get domains() {
35
- var _a;
36
- return ((_a = this._domains) !== null && _a !== void 0 ? _a : (this._domains = new DomainsClient(this._options)));
37
- }
38
30
  get inboxes() {
39
31
  var _a;
40
32
  return ((_a = this._inboxes) !== null && _a !== void 0 ? _a : (this._inboxes = new InboxesClient(this._options)));
@@ -47,6 +39,10 @@ export class PodsClient {
47
39
  var _a;
48
40
  return ((_a = this._drafts) !== null && _a !== void 0 ? _a : (this._drafts = new DraftsClient(this._options)));
49
41
  }
42
+ get domains() {
43
+ var _a;
44
+ return ((_a = this._domains) !== null && _a !== void 0 ? _a : (this._domains = new DomainsClient(this._options)));
45
+ }
50
46
  get lists() {
51
47
  var _a;
52
48
  return ((_a = this._lists) !== null && _a !== void 0 ? _a : (this._lists = new ListsClient(this._options)));
@@ -55,6 +51,10 @@ export class PodsClient {
55
51
  var _a;
56
52
  return ((_a = this._metrics) !== null && _a !== void 0 ? _a : (this._metrics = new MetricsClient(this._options)));
57
53
  }
54
+ get apiKeys() {
55
+ var _a;
56
+ return ((_a = this._apiKeys) !== null && _a !== void 0 ? _a : (this._apiKeys = new ApiKeysClient(this._options)));
57
+ }
58
58
  /**
59
59
  * @param {AgentMail.pods.ListPodsRequest} request
60
60
  * @param {PodsClient.RequestOptions} requestOptions - Request-specific configuration.
@@ -2,7 +2,6 @@ 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 { InboxId } from "../../inboxes/types/InboxId.mjs";
5
- import { ThreadId } from "../../threads/types/ThreadId.mjs";
6
5
  import { DraftAttachments } from "./DraftAttachments.mjs";
7
6
  import { DraftBcc } from "./DraftBcc.mjs";
8
7
  import { DraftCc } from "./DraftCc.mjs";
@@ -23,7 +22,6 @@ export declare const Draft: core.serialization.ObjectSchema<serializers.Draft.Ra
23
22
  export declare namespace Draft {
24
23
  interface Raw {
25
24
  inbox_id: InboxId.Raw;
26
- thread_id: ThreadId.Raw;
27
25
  draft_id: DraftId.Raw;
28
26
  client_id?: DraftClientId.Raw | null;
29
27
  labels: DraftLabels.Raw;
@@ -1,7 +1,6 @@
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 { InboxId } from "../../inboxes/types/InboxId.mjs";
4
- import { ThreadId } from "../../threads/types/ThreadId.mjs";
5
4
  import { DraftAttachments } from "./DraftAttachments.mjs";
6
5
  import { DraftBcc } from "./DraftBcc.mjs";
7
6
  import { DraftCc } from "./DraftCc.mjs";
@@ -20,7 +19,6 @@ import { DraftTo } from "./DraftTo.mjs";
20
19
  import { DraftUpdatedAt } from "./DraftUpdatedAt.mjs";
21
20
  export const Draft = core.serialization.object({
22
21
  inboxId: core.serialization.property("inbox_id", InboxId),
23
- threadId: core.serialization.property("thread_id", ThreadId),
24
22
  draftId: core.serialization.property("draft_id", DraftId),
25
23
  clientId: core.serialization.property("client_id", DraftClientId.optional()),
26
24
  labels: DraftLabels,
@@ -2,11 +2,11 @@ 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 { InboxId } from "../../inboxes/types/InboxId.mjs";
5
- import { ThreadId } from "../../threads/types/ThreadId.mjs";
6
5
  import { DraftAttachments } from "./DraftAttachments.mjs";
7
6
  import { DraftBcc } from "./DraftBcc.mjs";
8
7
  import { DraftCc } from "./DraftCc.mjs";
9
8
  import { DraftId } from "./DraftId.mjs";
9
+ import { DraftInReplyTo } from "./DraftInReplyTo.mjs";
10
10
  import { DraftLabels } from "./DraftLabels.mjs";
11
11
  import { DraftPreview } from "./DraftPreview.mjs";
12
12
  import { DraftSendAt } from "./DraftSendAt.mjs";
@@ -18,7 +18,6 @@ export declare const DraftItem: core.serialization.ObjectSchema<serializers.Draf
18
18
  export declare namespace DraftItem {
19
19
  interface Raw {
20
20
  inbox_id: InboxId.Raw;
21
- thread_id: ThreadId.Raw;
22
21
  draft_id: DraftId.Raw;
23
22
  labels: DraftLabels.Raw;
24
23
  to?: DraftTo.Raw | null;
@@ -27,6 +26,7 @@ export declare namespace DraftItem {
27
26
  subject?: DraftSubject.Raw | null;
28
27
  preview?: DraftPreview.Raw | null;
29
28
  attachments?: DraftAttachments.Raw | null;
29
+ in_reply_to?: DraftInReplyTo.Raw | null;
30
30
  send_status?: DraftSendStatus.Raw | null;
31
31
  send_at?: DraftSendAt.Raw | null;
32
32
  updated_at: DraftUpdatedAt.Raw;
@@ -1,11 +1,11 @@
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 { InboxId } from "../../inboxes/types/InboxId.mjs";
4
- import { ThreadId } from "../../threads/types/ThreadId.mjs";
5
4
  import { DraftAttachments } from "./DraftAttachments.mjs";
6
5
  import { DraftBcc } from "./DraftBcc.mjs";
7
6
  import { DraftCc } from "./DraftCc.mjs";
8
7
  import { DraftId } from "./DraftId.mjs";
8
+ import { DraftInReplyTo } from "./DraftInReplyTo.mjs";
9
9
  import { DraftLabels } from "./DraftLabels.mjs";
10
10
  import { DraftPreview } from "./DraftPreview.mjs";
11
11
  import { DraftSendAt } from "./DraftSendAt.mjs";
@@ -15,7 +15,6 @@ import { DraftTo } from "./DraftTo.mjs";
15
15
  import { DraftUpdatedAt } from "./DraftUpdatedAt.mjs";
16
16
  export const DraftItem = core.serialization.object({
17
17
  inboxId: core.serialization.property("inbox_id", InboxId),
18
- threadId: core.serialization.property("thread_id", ThreadId),
19
18
  draftId: core.serialization.property("draft_id", DraftId),
20
19
  labels: DraftLabels,
21
20
  to: DraftTo.optional(),
@@ -24,6 +23,7 @@ export const DraftItem = core.serialization.object({
24
23
  subject: DraftSubject.optional(),
25
24
  preview: DraftPreview.optional(),
26
25
  attachments: DraftAttachments.optional(),
26
+ inReplyTo: core.serialization.property("in_reply_to", DraftInReplyTo.optional()),
27
27
  sendStatus: core.serialization.property("send_status", DraftSendStatus.optional()),
28
28
  sendAt: core.serialization.property("send_at", DraftSendAt.optional()),
29
29
  updatedAt: core.serialization.property("updated_at", DraftUpdatedAt),
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "0.4.4";
1
+ export declare const SDK_VERSION = "0.4.6";
@@ -1 +1 @@
1
- export const SDK_VERSION = "0.4.4";
1
+ export const SDK_VERSION = "0.4.6";