agentmail 0.1.4 → 0.1.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 (103) hide show
  1. package/dist/cjs/Client.js +2 -2
  2. package/dist/cjs/api/resources/apiKeys/client/Client.js +3 -1
  3. package/dist/cjs/api/resources/domains/client/Client.js +3 -1
  4. package/dist/cjs/api/resources/domains/types/Domain.d.ts +1 -0
  5. package/dist/cjs/api/resources/domains/types/{DomainSummary.d.ts → DomainItem.d.ts} +2 -1
  6. package/dist/cjs/api/resources/domains/types/ListDomainsResponse.d.ts +2 -1
  7. package/dist/cjs/api/resources/domains/types/index.d.ts +1 -1
  8. package/dist/cjs/api/resources/domains/types/index.js +1 -1
  9. package/dist/cjs/api/resources/drafts/client/Client.js +6 -1
  10. package/dist/cjs/api/resources/inboxes/client/Client.js +6 -2
  11. package/dist/cjs/api/resources/inboxes/resources/drafts/client/Client.js +15 -4
  12. package/dist/cjs/api/resources/inboxes/resources/messages/client/Client.js +15 -4
  13. package/dist/cjs/api/resources/inboxes/resources/metrics/client/Client.js +3 -1
  14. package/dist/cjs/api/resources/inboxes/resources/threads/client/Client.js +6 -1
  15. package/dist/cjs/api/resources/inboxes/types/Inbox.d.ts +1 -0
  16. package/dist/cjs/api/resources/messages/types/ReplyToMessageRequest.d.ts +1 -0
  17. package/dist/cjs/api/resources/messages/types/SendMessageHeaders.d.ts +4 -0
  18. package/dist/cjs/api/resources/messages/types/SendMessageHeaders.js +3 -0
  19. package/dist/cjs/api/resources/messages/types/SendMessageRequest.d.ts +1 -0
  20. package/dist/cjs/api/resources/messages/types/index.d.ts +1 -0
  21. package/dist/cjs/api/resources/messages/types/index.js +1 -0
  22. package/dist/cjs/api/resources/metrics/client/Client.js +3 -1
  23. package/dist/cjs/api/resources/pods/client/Client.js +3 -1
  24. package/dist/cjs/api/resources/pods/resources/domains/client/Client.js +9 -2
  25. package/dist/cjs/api/resources/pods/resources/drafts/client/Client.js +6 -1
  26. package/dist/cjs/api/resources/pods/resources/inboxes/client/Client.js +9 -2
  27. package/dist/cjs/api/resources/pods/resources/threads/client/Client.js +6 -1
  28. package/dist/cjs/api/resources/threads/client/Client.js +6 -1
  29. package/dist/cjs/api/resources/webhooks/client/Client.js +3 -1
  30. package/dist/cjs/serialization/resources/domains/types/Domain.d.ts +2 -0
  31. package/dist/cjs/serialization/resources/domains/types/Domain.js +2 -0
  32. package/dist/cjs/serialization/resources/domains/types/{DomainSummary.d.ts → DomainItem.d.ts} +4 -2
  33. package/dist/cjs/serialization/resources/domains/types/{DomainSummary.js → DomainItem.js} +4 -2
  34. package/dist/cjs/serialization/resources/domains/types/ListDomainsResponse.d.ts +4 -2
  35. package/dist/cjs/serialization/resources/domains/types/ListDomainsResponse.js +4 -2
  36. package/dist/cjs/serialization/resources/domains/types/index.d.ts +1 -1
  37. package/dist/cjs/serialization/resources/domains/types/index.js +1 -1
  38. package/dist/cjs/serialization/resources/inboxes/types/Inbox.d.ts +2 -0
  39. package/dist/cjs/serialization/resources/inboxes/types/Inbox.js +2 -0
  40. package/dist/cjs/serialization/resources/messages/types/ReplyToMessageRequest.d.ts +2 -0
  41. package/dist/cjs/serialization/resources/messages/types/ReplyToMessageRequest.js +2 -0
  42. package/dist/cjs/serialization/resources/messages/types/SendMessageHeaders.d.ts +7 -0
  43. package/dist/cjs/serialization/resources/messages/types/SendMessageHeaders.js +39 -0
  44. package/dist/cjs/serialization/resources/messages/types/SendMessageRequest.d.ts +2 -0
  45. package/dist/cjs/serialization/resources/messages/types/SendMessageRequest.js +2 -0
  46. package/dist/cjs/serialization/resources/messages/types/index.d.ts +1 -0
  47. package/dist/cjs/serialization/resources/messages/types/index.js +1 -0
  48. package/dist/cjs/version.d.ts +1 -1
  49. package/dist/cjs/version.js +1 -1
  50. package/dist/esm/Client.mjs +2 -2
  51. package/dist/esm/api/resources/apiKeys/client/Client.mjs +3 -1
  52. package/dist/esm/api/resources/domains/client/Client.mjs +3 -1
  53. package/dist/esm/api/resources/domains/types/Domain.d.mts +1 -0
  54. package/dist/esm/api/resources/domains/types/{DomainSummary.d.mts → DomainItem.d.mts} +2 -1
  55. package/dist/esm/api/resources/domains/types/ListDomainsResponse.d.mts +2 -1
  56. package/dist/esm/api/resources/domains/types/index.d.mts +1 -1
  57. package/dist/esm/api/resources/domains/types/index.mjs +1 -1
  58. package/dist/esm/api/resources/drafts/client/Client.mjs +6 -1
  59. package/dist/esm/api/resources/inboxes/client/Client.mjs +6 -2
  60. package/dist/esm/api/resources/inboxes/resources/drafts/client/Client.mjs +15 -4
  61. package/dist/esm/api/resources/inboxes/resources/messages/client/Client.mjs +15 -4
  62. package/dist/esm/api/resources/inboxes/resources/metrics/client/Client.mjs +3 -1
  63. package/dist/esm/api/resources/inboxes/resources/threads/client/Client.mjs +6 -1
  64. package/dist/esm/api/resources/inboxes/types/Inbox.d.mts +1 -0
  65. package/dist/esm/api/resources/messages/types/ReplyToMessageRequest.d.mts +1 -0
  66. package/dist/esm/api/resources/messages/types/SendMessageHeaders.d.mts +4 -0
  67. package/dist/esm/api/resources/messages/types/SendMessageHeaders.mjs +2 -0
  68. package/dist/esm/api/resources/messages/types/SendMessageRequest.d.mts +1 -0
  69. package/dist/esm/api/resources/messages/types/index.d.mts +1 -0
  70. package/dist/esm/api/resources/messages/types/index.mjs +1 -0
  71. package/dist/esm/api/resources/metrics/client/Client.mjs +3 -1
  72. package/dist/esm/api/resources/pods/client/Client.mjs +3 -1
  73. package/dist/esm/api/resources/pods/resources/domains/client/Client.mjs +9 -2
  74. package/dist/esm/api/resources/pods/resources/drafts/client/Client.mjs +6 -1
  75. package/dist/esm/api/resources/pods/resources/inboxes/client/Client.mjs +9 -2
  76. package/dist/esm/api/resources/pods/resources/threads/client/Client.mjs +6 -1
  77. package/dist/esm/api/resources/threads/client/Client.mjs +6 -1
  78. package/dist/esm/api/resources/webhooks/client/Client.mjs +3 -1
  79. package/dist/esm/serialization/resources/domains/types/Domain.d.mts +2 -0
  80. package/dist/esm/serialization/resources/domains/types/Domain.mjs +2 -0
  81. package/dist/esm/serialization/resources/domains/types/{DomainSummary.d.mts → DomainItem.d.mts} +4 -2
  82. package/dist/esm/serialization/resources/domains/types/{DomainSummary.mjs → DomainItem.mjs} +3 -1
  83. package/dist/esm/serialization/resources/domains/types/ListDomainsResponse.d.mts +4 -2
  84. package/dist/esm/serialization/resources/domains/types/ListDomainsResponse.mjs +4 -2
  85. package/dist/esm/serialization/resources/domains/types/index.d.mts +1 -1
  86. package/dist/esm/serialization/resources/domains/types/index.mjs +1 -1
  87. package/dist/esm/serialization/resources/inboxes/types/Inbox.d.mts +2 -0
  88. package/dist/esm/serialization/resources/inboxes/types/Inbox.mjs +2 -0
  89. package/dist/esm/serialization/resources/messages/types/ReplyToMessageRequest.d.mts +2 -0
  90. package/dist/esm/serialization/resources/messages/types/ReplyToMessageRequest.mjs +2 -0
  91. package/dist/esm/serialization/resources/messages/types/SendMessageHeaders.d.mts +7 -0
  92. package/dist/esm/serialization/resources/messages/types/SendMessageHeaders.mjs +3 -0
  93. package/dist/esm/serialization/resources/messages/types/SendMessageRequest.d.mts +2 -0
  94. package/dist/esm/serialization/resources/messages/types/SendMessageRequest.mjs +2 -0
  95. package/dist/esm/serialization/resources/messages/types/index.d.mts +1 -0
  96. package/dist/esm/serialization/resources/messages/types/index.mjs +1 -0
  97. package/dist/esm/version.d.mts +1 -1
  98. package/dist/esm/version.mjs +1 -1
  99. package/dist/llms-full.txt +873 -81
  100. package/dist/llms.txt +2 -0
  101. package/package.json +1 -1
  102. /package/dist/cjs/api/resources/domains/types/{DomainSummary.js → DomainItem.js} +0 -0
  103. /package/dist/esm/api/resources/domains/types/{DomainSummary.mjs → DomainItem.mjs} +0 -0
@@ -42,6 +42,7 @@ const MessageText_js_1 = require("./MessageText.js");
42
42
  const SendMessageAttachments_js_1 = require("./SendMessageAttachments.js");
43
43
  const SendMessageBcc_js_1 = require("./SendMessageBcc.js");
44
44
  const SendMessageCc_js_1 = require("./SendMessageCc.js");
45
+ const SendMessageHeaders_js_1 = require("./SendMessageHeaders.js");
45
46
  const SendMessageReplyTo_js_1 = require("./SendMessageReplyTo.js");
46
47
  const SendMessageTo_js_1 = require("./SendMessageTo.js");
47
48
  exports.ReplyToMessageRequest = core.serialization.object({
@@ -53,4 +54,5 @@ exports.ReplyToMessageRequest = core.serialization.object({
53
54
  text: MessageText_js_1.MessageText.optional(),
54
55
  html: MessageHtml_js_1.MessageHtml.optional(),
55
56
  attachments: SendMessageAttachments_js_1.SendMessageAttachments.optional(),
57
+ headers: SendMessageHeaders_js_1.SendMessageHeaders.optional(),
56
58
  });
@@ -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 SendMessageHeaders: core.serialization.Schema<serializers.SendMessageHeaders.Raw, AgentMail.SendMessageHeaders>;
5
+ export declare namespace SendMessageHeaders {
6
+ type Raw = Record<string, string>;
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.SendMessageHeaders = void 0;
38
+ const core = __importStar(require("../../../../core/index.js"));
39
+ exports.SendMessageHeaders = core.serialization.record(core.serialization.string(), core.serialization.string());
@@ -8,6 +8,7 @@ import { MessageText } from "./MessageText.js";
8
8
  import { SendMessageAttachments } from "./SendMessageAttachments.js";
9
9
  import { SendMessageBcc } from "./SendMessageBcc.js";
10
10
  import { SendMessageCc } from "./SendMessageCc.js";
11
+ import { SendMessageHeaders } from "./SendMessageHeaders.js";
11
12
  import { SendMessageReplyTo } from "./SendMessageReplyTo.js";
12
13
  import { SendMessageTo } from "./SendMessageTo.js";
13
14
  export declare const SendMessageRequest: core.serialization.ObjectSchema<serializers.SendMessageRequest.Raw, AgentMail.SendMessageRequest>;
@@ -22,5 +23,6 @@ export declare namespace SendMessageRequest {
22
23
  text?: MessageText.Raw | null;
23
24
  html?: MessageHtml.Raw | null;
24
25
  attachments?: SendMessageAttachments.Raw | null;
26
+ headers?: SendMessageHeaders.Raw | null;
25
27
  }
26
28
  }
@@ -43,6 +43,7 @@ const MessageText_js_1 = require("./MessageText.js");
43
43
  const SendMessageAttachments_js_1 = require("./SendMessageAttachments.js");
44
44
  const SendMessageBcc_js_1 = require("./SendMessageBcc.js");
45
45
  const SendMessageCc_js_1 = require("./SendMessageCc.js");
46
+ const SendMessageHeaders_js_1 = require("./SendMessageHeaders.js");
46
47
  const SendMessageReplyTo_js_1 = require("./SendMessageReplyTo.js");
47
48
  const SendMessageTo_js_1 = require("./SendMessageTo.js");
48
49
  exports.SendMessageRequest = core.serialization.object({
@@ -55,4 +56,5 @@ exports.SendMessageRequest = core.serialization.object({
55
56
  text: MessageText_js_1.MessageText.optional(),
56
57
  html: MessageHtml_js_1.MessageHtml.optional(),
57
58
  attachments: SendMessageAttachments_js_1.SendMessageAttachments.optional(),
59
+ headers: SendMessageHeaders_js_1.SendMessageHeaders.optional(),
58
60
  });
@@ -24,6 +24,7 @@ export * from "./ReplyToMessageRequest.js";
24
24
  export * from "./SendMessageAttachments.js";
25
25
  export * from "./SendMessageBcc.js";
26
26
  export * from "./SendMessageCc.js";
27
+ export * from "./SendMessageHeaders.js";
27
28
  export * from "./SendMessageReplyTo.js";
28
29
  export * from "./SendMessageRequest.js";
29
30
  export * from "./SendMessageResponse.js";
@@ -40,6 +40,7 @@ __exportStar(require("./ReplyToMessageRequest.js"), exports);
40
40
  __exportStar(require("./SendMessageAttachments.js"), exports);
41
41
  __exportStar(require("./SendMessageBcc.js"), exports);
42
42
  __exportStar(require("./SendMessageCc.js"), exports);
43
+ __exportStar(require("./SendMessageHeaders.js"), exports);
43
44
  __exportStar(require("./SendMessageReplyTo.js"), exports);
44
45
  __exportStar(require("./SendMessageRequest.js"), exports);
45
46
  __exportStar(require("./SendMessageResponse.js"), exports);
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "0.1.4";
1
+ export declare const SDK_VERSION = "0.1.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.1.4";
4
+ exports.SDK_VERSION = "0.1.6";
@@ -15,8 +15,8 @@ export class AgentMailClient {
15
15
  this._options = Object.assign(Object.assign({}, _options), { headers: mergeHeaders({
16
16
  "X-Fern-Language": "JavaScript",
17
17
  "X-Fern-SDK-Name": "agentmail",
18
- "X-Fern-SDK-Version": "0.1.4",
19
- "User-Agent": "agentmail/0.1.4",
18
+ "X-Fern-SDK-Version": "0.1.6",
19
+ "User-Agent": "agentmail/0.1.6",
20
20
  "X-Fern-Runtime": core.RUNTIME.type,
21
21
  "X-Fern-Runtime-Version": core.RUNTIME.version,
22
22
  }, _options === null || _options === void 0 ? void 0 : _options.headers) });
@@ -111,7 +111,9 @@ export class ApiKeys {
111
111
  queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
112
112
  requestType: "json",
113
113
  body: serializers.CreateApiKeyRequest.jsonOrThrow(request, {
114
- unrecognizedObjectKeys: "strip",
114
+ unrecognizedObjectKeys: "passthrough",
115
+ allowUnrecognizedUnionMembers: true,
116
+ allowUnrecognizedEnumValues: true,
115
117
  omitUndefined: true,
116
118
  }),
117
119
  timeoutMs: ((_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.timeoutInSeconds) !== null && _f !== void 0 ? _f : 60) * 1000,
@@ -242,7 +242,9 @@ export class Domains {
242
242
  queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
243
243
  requestType: "json",
244
244
  body: serializers.CreateDomainRequest.jsonOrThrow(request, {
245
- unrecognizedObjectKeys: "strip",
245
+ unrecognizedObjectKeys: "passthrough",
246
+ allowUnrecognizedUnionMembers: true,
247
+ allowUnrecognizedEnumValues: true,
246
248
  omitUndefined: true,
247
249
  }),
248
250
  timeoutMs: ((_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.timeoutInSeconds) !== null && _f !== void 0 ? _f : 60) * 1000,
@@ -1,5 +1,6 @@
1
1
  import type * as AgentMail from "../../../index.mjs";
2
2
  export interface Domain {
3
+ podId?: AgentMail.pods.PodId;
3
4
  domainId: AgentMail.DomainId;
4
5
  /** The verification status of the domain. */
5
6
  status: AgentMail.VerificationStatus;
@@ -1,5 +1,6 @@
1
1
  import type * as AgentMail from "../../../index.mjs";
2
- export interface DomainSummary {
2
+ export interface DomainItem {
3
+ podId?: AgentMail.pods.PodId;
3
4
  domainId: AgentMail.DomainId;
4
5
  feedbackEnabled: AgentMail.FeedbackEnabled;
5
6
  clientId?: AgentMail.ClientId;
@@ -1,7 +1,8 @@
1
1
  import type * as AgentMail from "../../../index.mjs";
2
2
  export interface ListDomainsResponse {
3
3
  count: AgentMail.Count;
4
+ limit?: AgentMail.Limit;
4
5
  nextPageToken?: AgentMail.PageToken;
5
6
  /** Ordered by `created_at` descending. */
6
- domains: AgentMail.DomainSummary[];
7
+ domains: AgentMail.DomainItem[];
7
8
  }
@@ -2,8 +2,8 @@ export * from "./ClientId.mjs";
2
2
  export * from "./CreateDomainRequest.mjs";
3
3
  export * from "./Domain.mjs";
4
4
  export * from "./DomainId.mjs";
5
+ export * from "./DomainItem.mjs";
5
6
  export * from "./DomainName.mjs";
6
- export * from "./DomainSummary.mjs";
7
7
  export * from "./FeedbackEnabled.mjs";
8
8
  export * from "./ListDomainsResponse.mjs";
9
9
  export * from "./RecordStatus.mjs";
@@ -2,8 +2,8 @@ export * from "./ClientId.mjs";
2
2
  export * from "./CreateDomainRequest.mjs";
3
3
  export * from "./Domain.mjs";
4
4
  export * from "./DomainId.mjs";
5
+ export * from "./DomainItem.mjs";
5
6
  export * from "./DomainName.mjs";
6
- export * from "./DomainSummary.mjs";
7
7
  export * from "./FeedbackEnabled.mjs";
8
8
  export * from "./ListDomainsResponse.mjs";
9
9
  export * from "./RecordStatus.mjs";
@@ -43,7 +43,12 @@ export class Drafts {
43
43
  _queryParams.page_token = pageToken;
44
44
  }
45
45
  if (labels != null) {
46
- _queryParams.labels = toJson(serializers.Labels.jsonOrThrow(labels, { unrecognizedObjectKeys: "strip", omitUndefined: true }));
46
+ _queryParams.labels = toJson(serializers.Labels.jsonOrThrow(labels, {
47
+ unrecognizedObjectKeys: "passthrough",
48
+ allowUnrecognizedUnionMembers: true,
49
+ allowUnrecognizedEnumValues: true,
50
+ omitUndefined: true,
51
+ }));
47
52
  }
48
53
  if (before != null) {
49
54
  _queryParams.before = before.toISOString();
@@ -201,7 +201,9 @@ export class Inboxes {
201
201
  queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
202
202
  requestType: "json",
203
203
  body: serializers.inboxes.CreateInboxRequest.jsonOrThrow(request, {
204
- unrecognizedObjectKeys: "strip",
204
+ unrecognizedObjectKeys: "passthrough",
205
+ allowUnrecognizedUnionMembers: true,
206
+ allowUnrecognizedEnumValues: true,
205
207
  omitUndefined: true,
206
208
  }),
207
209
  timeoutMs: ((_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.timeoutInSeconds) !== null && _f !== void 0 ? _f : 60) * 1000,
@@ -282,7 +284,9 @@ export class Inboxes {
282
284
  queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
283
285
  requestType: "json",
284
286
  body: serializers.inboxes.UpdateInboxRequest.jsonOrThrow(request, {
285
- unrecognizedObjectKeys: "strip",
287
+ unrecognizedObjectKeys: "passthrough",
288
+ allowUnrecognizedUnionMembers: true,
289
+ allowUnrecognizedEnumValues: true,
286
290
  omitUndefined: true,
287
291
  }),
288
292
  timeoutMs: ((_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.timeoutInSeconds) !== null && _f !== void 0 ? _f : 60) * 1000,
@@ -44,7 +44,12 @@ export class Drafts {
44
44
  _queryParams.page_token = pageToken;
45
45
  }
46
46
  if (labels != null) {
47
- _queryParams.labels = toJson(serializers.Labels.jsonOrThrow(labels, { unrecognizedObjectKeys: "strip", omitUndefined: true }));
47
+ _queryParams.labels = toJson(serializers.Labels.jsonOrThrow(labels, {
48
+ unrecognizedObjectKeys: "passthrough",
49
+ allowUnrecognizedUnionMembers: true,
50
+ allowUnrecognizedEnumValues: true,
51
+ omitUndefined: true,
52
+ }));
48
53
  }
49
54
  if (before != null) {
50
55
  _queryParams.before = before.toISOString();
@@ -210,7 +215,9 @@ export class Drafts {
210
215
  queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
211
216
  requestType: "json",
212
217
  body: serializers.CreateDraftRequest.jsonOrThrow(request, {
213
- unrecognizedObjectKeys: "strip",
218
+ unrecognizedObjectKeys: "passthrough",
219
+ allowUnrecognizedUnionMembers: true,
220
+ allowUnrecognizedEnumValues: true,
214
221
  omitUndefined: true,
215
222
  }),
216
223
  timeoutMs: ((_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.timeoutInSeconds) !== null && _f !== void 0 ? _f : 60) * 1000,
@@ -290,7 +297,9 @@ export class Drafts {
290
297
  queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
291
298
  requestType: "json",
292
299
  body: serializers.UpdateDraftRequest.jsonOrThrow(request, {
293
- unrecognizedObjectKeys: "strip",
300
+ unrecognizedObjectKeys: "passthrough",
301
+ allowUnrecognizedUnionMembers: true,
302
+ allowUnrecognizedEnumValues: true,
294
303
  omitUndefined: true,
295
304
  }),
296
305
  timeoutMs: ((_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.timeoutInSeconds) !== null && _f !== void 0 ? _f : 60) * 1000,
@@ -372,7 +381,9 @@ export class Drafts {
372
381
  queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
373
382
  requestType: "json",
374
383
  body: serializers.UpdateMessageRequest.jsonOrThrow(request, {
375
- unrecognizedObjectKeys: "strip",
384
+ unrecognizedObjectKeys: "passthrough",
385
+ allowUnrecognizedUnionMembers: true,
386
+ allowUnrecognizedEnumValues: true,
376
387
  omitUndefined: true,
377
388
  }),
378
389
  timeoutMs: ((_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.timeoutInSeconds) !== null && _f !== void 0 ? _f : 60) * 1000,
@@ -44,7 +44,12 @@ export class Messages {
44
44
  _queryParams.page_token = pageToken;
45
45
  }
46
46
  if (labels != null) {
47
- _queryParams.labels = toJson(serializers.Labels.jsonOrThrow(labels, { unrecognizedObjectKeys: "strip", omitUndefined: true }));
47
+ _queryParams.labels = toJson(serializers.Labels.jsonOrThrow(labels, {
48
+ unrecognizedObjectKeys: "passthrough",
49
+ allowUnrecognizedUnionMembers: true,
50
+ allowUnrecognizedEnumValues: true,
51
+ omitUndefined: true,
52
+ }));
48
53
  }
49
54
  if (before != null) {
50
55
  _queryParams.before = before.toISOString();
@@ -328,7 +333,9 @@ export class Messages {
328
333
  queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
329
334
  requestType: "json",
330
335
  body: serializers.SendMessageRequest.jsonOrThrow(request, {
331
- unrecognizedObjectKeys: "strip",
336
+ unrecognizedObjectKeys: "passthrough",
337
+ allowUnrecognizedUnionMembers: true,
338
+ allowUnrecognizedEnumValues: true,
332
339
  omitUndefined: true,
333
340
  }),
334
341
  timeoutMs: ((_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.timeoutInSeconds) !== null && _f !== void 0 ? _f : 60) * 1000,
@@ -426,7 +433,9 @@ export class Messages {
426
433
  queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
427
434
  requestType: "json",
428
435
  body: serializers.ReplyToMessageRequest.jsonOrThrow(request, {
429
- unrecognizedObjectKeys: "strip",
436
+ unrecognizedObjectKeys: "passthrough",
437
+ allowUnrecognizedUnionMembers: true,
438
+ allowUnrecognizedEnumValues: true,
430
439
  omitUndefined: true,
431
440
  }),
432
441
  timeoutMs: ((_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.timeoutInSeconds) !== null && _f !== void 0 ? _f : 60) * 1000,
@@ -523,7 +532,9 @@ export class Messages {
523
532
  queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
524
533
  requestType: "json",
525
534
  body: serializers.UpdateMessageRequest.jsonOrThrow(request, {
526
- unrecognizedObjectKeys: "strip",
535
+ unrecognizedObjectKeys: "passthrough",
536
+ allowUnrecognizedUnionMembers: true,
537
+ allowUnrecognizedEnumValues: true,
527
538
  omitUndefined: true,
528
539
  }),
529
540
  timeoutMs: ((_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.timeoutInSeconds) !== null && _f !== void 0 ? _f : 60) * 1000,
@@ -43,7 +43,9 @@ export class Metrics {
43
43
  const _queryParams = {};
44
44
  if (eventTypes != null) {
45
45
  _queryParams.event_types = toJson(serializers.MetricEventTypes.jsonOrThrow(eventTypes, {
46
- unrecognizedObjectKeys: "strip",
46
+ unrecognizedObjectKeys: "passthrough",
47
+ allowUnrecognizedUnionMembers: true,
48
+ allowUnrecognizedEnumValues: true,
47
49
  omitUndefined: true,
48
50
  }));
49
51
  }
@@ -44,7 +44,12 @@ export class Threads {
44
44
  _queryParams.page_token = pageToken;
45
45
  }
46
46
  if (labels != null) {
47
- _queryParams.labels = toJson(serializers.Labels.jsonOrThrow(labels, { unrecognizedObjectKeys: "strip", omitUndefined: true }));
47
+ _queryParams.labels = toJson(serializers.Labels.jsonOrThrow(labels, {
48
+ unrecognizedObjectKeys: "passthrough",
49
+ allowUnrecognizedUnionMembers: true,
50
+ allowUnrecognizedEnumValues: true,
51
+ omitUndefined: true,
52
+ }));
48
53
  }
49
54
  if (before != null) {
50
55
  _queryParams.before = before.toISOString();
@@ -1,5 +1,6 @@
1
1
  import type * as AgentMail from "../../../index.mjs";
2
2
  export interface Inbox {
3
+ podId: AgentMail.pods.PodId;
3
4
  inboxId: AgentMail.inboxes.InboxId;
4
5
  displayName?: AgentMail.inboxes.DisplayName;
5
6
  clientId?: AgentMail.inboxes.ClientId;
@@ -8,4 +8,5 @@ export interface ReplyToMessageRequest {
8
8
  text?: AgentMail.MessageText;
9
9
  html?: AgentMail.MessageHtml;
10
10
  attachments?: AgentMail.SendMessageAttachments;
11
+ headers?: AgentMail.SendMessageHeaders;
11
12
  }
@@ -0,0 +1,4 @@
1
+ /**
2
+ * Headers to include in message.
3
+ */
4
+ export type SendMessageHeaders = Record<string, string>;
@@ -0,0 +1,2 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export {};
@@ -9,4 +9,5 @@ export interface SendMessageRequest {
9
9
  text?: AgentMail.MessageText;
10
10
  html?: AgentMail.MessageHtml;
11
11
  attachments?: AgentMail.SendMessageAttachments;
12
+ headers?: AgentMail.SendMessageHeaders;
12
13
  }
@@ -24,6 +24,7 @@ export * from "./ReplyToMessageRequest.mjs";
24
24
  export * from "./SendMessageAttachments.mjs";
25
25
  export * from "./SendMessageBcc.mjs";
26
26
  export * from "./SendMessageCc.mjs";
27
+ export * from "./SendMessageHeaders.mjs";
27
28
  export * from "./SendMessageReplyTo.mjs";
28
29
  export * from "./SendMessageRequest.mjs";
29
30
  export * from "./SendMessageResponse.mjs";
@@ -24,6 +24,7 @@ export * from "./ReplyToMessageRequest.mjs";
24
24
  export * from "./SendMessageAttachments.mjs";
25
25
  export * from "./SendMessageBcc.mjs";
26
26
  export * from "./SendMessageCc.mjs";
27
+ export * from "./SendMessageHeaders.mjs";
27
28
  export * from "./SendMessageReplyTo.mjs";
28
29
  export * from "./SendMessageRequest.mjs";
29
30
  export * from "./SendMessageResponse.mjs";
@@ -41,7 +41,9 @@ export class Metrics {
41
41
  const _queryParams = {};
42
42
  if (eventTypes != null) {
43
43
  _queryParams.event_types = toJson(serializers.MetricEventTypes.jsonOrThrow(eventTypes, {
44
- unrecognizedObjectKeys: "strip",
44
+ unrecognizedObjectKeys: "passthrough",
45
+ allowUnrecognizedUnionMembers: true,
46
+ allowUnrecognizedEnumValues: true,
45
47
  omitUndefined: true,
46
48
  }));
47
49
  }
@@ -201,7 +201,9 @@ export class Pods {
201
201
  queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
202
202
  requestType: "json",
203
203
  body: serializers.pods.CreatePodRequest.jsonOrThrow(request, {
204
- unrecognizedObjectKeys: "strip",
204
+ unrecognizedObjectKeys: "passthrough",
205
+ allowUnrecognizedUnionMembers: true,
206
+ allowUnrecognizedEnumValues: true,
205
207
  omitUndefined: true,
206
208
  }),
207
209
  timeoutMs: ((_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.timeoutInSeconds) !== null && _f !== void 0 ? _f : 60) * 1000,
@@ -44,7 +44,12 @@ export class Domains {
44
44
  _queryParams.page_token = pageToken;
45
45
  }
46
46
  if (labels != null) {
47
- _queryParams.labels = toJson(serializers.Labels.jsonOrThrow(labels, { unrecognizedObjectKeys: "strip", omitUndefined: true }));
47
+ _queryParams.labels = toJson(serializers.Labels.jsonOrThrow(labels, {
48
+ unrecognizedObjectKeys: "passthrough",
49
+ allowUnrecognizedUnionMembers: true,
50
+ allowUnrecognizedEnumValues: true,
51
+ omitUndefined: true,
52
+ }));
48
53
  }
49
54
  if (before != null) {
50
55
  _queryParams.before = before.toISOString();
@@ -140,7 +145,9 @@ export class Domains {
140
145
  queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
141
146
  requestType: "json",
142
147
  body: serializers.CreateDomainRequest.jsonOrThrow(request, {
143
- unrecognizedObjectKeys: "strip",
148
+ unrecognizedObjectKeys: "passthrough",
149
+ allowUnrecognizedUnionMembers: true,
150
+ allowUnrecognizedEnumValues: true,
144
151
  omitUndefined: true,
145
152
  }),
146
153
  timeoutMs: ((_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.timeoutInSeconds) !== null && _f !== void 0 ? _f : 60) * 1000,
@@ -44,7 +44,12 @@ export class Drafts {
44
44
  _queryParams.page_token = pageToken;
45
45
  }
46
46
  if (labels != null) {
47
- _queryParams.labels = toJson(serializers.Labels.jsonOrThrow(labels, { unrecognizedObjectKeys: "strip", omitUndefined: true }));
47
+ _queryParams.labels = toJson(serializers.Labels.jsonOrThrow(labels, {
48
+ unrecognizedObjectKeys: "passthrough",
49
+ allowUnrecognizedUnionMembers: true,
50
+ allowUnrecognizedEnumValues: true,
51
+ omitUndefined: true,
52
+ }));
48
53
  }
49
54
  if (before != null) {
50
55
  _queryParams.before = before.toISOString();
@@ -44,7 +44,12 @@ export class Inboxes {
44
44
  _queryParams.page_token = pageToken;
45
45
  }
46
46
  if (labels != null) {
47
- _queryParams.labels = toJson(serializers.Labels.jsonOrThrow(labels, { unrecognizedObjectKeys: "strip", omitUndefined: true }));
47
+ _queryParams.labels = toJson(serializers.Labels.jsonOrThrow(labels, {
48
+ unrecognizedObjectKeys: "passthrough",
49
+ allowUnrecognizedUnionMembers: true,
50
+ allowUnrecognizedEnumValues: true,
51
+ omitUndefined: true,
52
+ }));
48
53
  }
49
54
  if (before != null) {
50
55
  _queryParams.before = before.toISOString();
@@ -210,7 +215,9 @@ export class Inboxes {
210
215
  queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
211
216
  requestType: "json",
212
217
  body: serializers.inboxes.CreateInboxRequest.jsonOrThrow(request, {
213
- unrecognizedObjectKeys: "strip",
218
+ unrecognizedObjectKeys: "passthrough",
219
+ allowUnrecognizedUnionMembers: true,
220
+ allowUnrecognizedEnumValues: true,
214
221
  omitUndefined: true,
215
222
  }),
216
223
  timeoutMs: ((_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.timeoutInSeconds) !== null && _f !== void 0 ? _f : 60) * 1000,
@@ -44,7 +44,12 @@ export class Threads {
44
44
  _queryParams.page_token = pageToken;
45
45
  }
46
46
  if (labels != null) {
47
- _queryParams.labels = toJson(serializers.Labels.jsonOrThrow(labels, { unrecognizedObjectKeys: "strip", omitUndefined: true }));
47
+ _queryParams.labels = toJson(serializers.Labels.jsonOrThrow(labels, {
48
+ unrecognizedObjectKeys: "passthrough",
49
+ allowUnrecognizedUnionMembers: true,
50
+ allowUnrecognizedEnumValues: true,
51
+ omitUndefined: true,
52
+ }));
48
53
  }
49
54
  if (before != null) {
50
55
  _queryParams.before = before.toISOString();
@@ -43,7 +43,12 @@ export class Threads {
43
43
  _queryParams.page_token = pageToken;
44
44
  }
45
45
  if (labels != null) {
46
- _queryParams.labels = toJson(serializers.Labels.jsonOrThrow(labels, { unrecognizedObjectKeys: "strip", omitUndefined: true }));
46
+ _queryParams.labels = toJson(serializers.Labels.jsonOrThrow(labels, {
47
+ unrecognizedObjectKeys: "passthrough",
48
+ allowUnrecognizedUnionMembers: true,
49
+ allowUnrecognizedEnumValues: true,
50
+ omitUndefined: true,
51
+ }));
47
52
  }
48
53
  if (before != null) {
49
54
  _queryParams.before = before.toISOString();
@@ -184,7 +184,9 @@ export class Webhooks {
184
184
  queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
185
185
  requestType: "json",
186
186
  body: serializers.webhooks.CreateWebhookRequest.jsonOrThrow(request, {
187
- unrecognizedObjectKeys: "strip",
187
+ unrecognizedObjectKeys: "passthrough",
188
+ allowUnrecognizedUnionMembers: true,
189
+ allowUnrecognizedEnumValues: true,
188
190
  omitUndefined: true,
189
191
  }),
190
192
  timeoutMs: ((_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.timeoutInSeconds) !== null && _f !== void 0 ? _f : 60) * 1000,
@@ -1,6 +1,7 @@
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 { PodId } from "../../pods/types/PodId.mjs";
4
5
  import { ClientId } from "./ClientId.mjs";
5
6
  import { DomainId } from "./DomainId.mjs";
6
7
  import { FeedbackEnabled } from "./FeedbackEnabled.mjs";
@@ -9,6 +10,7 @@ import { VerificationStatus } from "./VerificationStatus.mjs";
9
10
  export declare const Domain: core.serialization.ObjectSchema<serializers.Domain.Raw, AgentMail.Domain>;
10
11
  export declare namespace Domain {
11
12
  interface Raw {
13
+ pod_id?: PodId.Raw | null;
12
14
  domain_id: DomainId.Raw;
13
15
  status: VerificationStatus.Raw;
14
16
  feedback_enabled: FeedbackEnabled.Raw;
@@ -1,11 +1,13 @@
1
1
  // This file was auto-generated by Fern from our API Definition.
2
2
  import * as core from "../../../../core/index.mjs";
3
+ import { PodId } from "../../pods/types/PodId.mjs";
3
4
  import { ClientId } from "./ClientId.mjs";
4
5
  import { DomainId } from "./DomainId.mjs";
5
6
  import { FeedbackEnabled } from "./FeedbackEnabled.mjs";
6
7
  import { VerificationRecord } from "./VerificationRecord.mjs";
7
8
  import { VerificationStatus } from "./VerificationStatus.mjs";
8
9
  export const Domain = core.serialization.object({
10
+ podId: core.serialization.property("pod_id", PodId.optional()),
9
11
  domainId: core.serialization.property("domain_id", DomainId),
10
12
  status: VerificationStatus,
11
13
  feedbackEnabled: core.serialization.property("feedback_enabled", FeedbackEnabled),
@@ -1,12 +1,14 @@
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 { PodId } from "../../pods/types/PodId.mjs";
4
5
  import { ClientId } from "./ClientId.mjs";
5
6
  import { DomainId } from "./DomainId.mjs";
6
7
  import { FeedbackEnabled } from "./FeedbackEnabled.mjs";
7
- export declare const DomainSummary: core.serialization.ObjectSchema<serializers.DomainSummary.Raw, AgentMail.DomainSummary>;
8
- export declare namespace DomainSummary {
8
+ export declare const DomainItem: core.serialization.ObjectSchema<serializers.DomainItem.Raw, AgentMail.DomainItem>;
9
+ export declare namespace DomainItem {
9
10
  interface Raw {
11
+ pod_id?: PodId.Raw | null;
10
12
  domain_id: DomainId.Raw;
11
13
  feedback_enabled: FeedbackEnabled.Raw;
12
14
  client_id?: ClientId.Raw | null;
@@ -1,9 +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
+ import { PodId } from "../../pods/types/PodId.mjs";
3
4
  import { ClientId } from "./ClientId.mjs";
4
5
  import { DomainId } from "./DomainId.mjs";
5
6
  import { FeedbackEnabled } from "./FeedbackEnabled.mjs";
6
- export const DomainSummary = core.serialization.object({
7
+ export const DomainItem = core.serialization.object({
8
+ podId: core.serialization.property("pod_id", PodId.optional()),
7
9
  domainId: core.serialization.property("domain_id", DomainId),
8
10
  feedbackEnabled: core.serialization.property("feedback_enabled", FeedbackEnabled),
9
11
  clientId: core.serialization.property("client_id", ClientId.optional()),