agentmail 0.1.4 → 0.1.5

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 (63) 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/{DomainSummary.d.ts → DomainItem.d.ts} +1 -1
  5. package/dist/cjs/api/resources/domains/types/ListDomainsResponse.d.ts +2 -1
  6. package/dist/cjs/api/resources/domains/types/index.d.ts +1 -1
  7. package/dist/cjs/api/resources/domains/types/index.js +1 -1
  8. package/dist/cjs/api/resources/drafts/client/Client.js +6 -1
  9. package/dist/cjs/api/resources/inboxes/client/Client.js +6 -2
  10. package/dist/cjs/api/resources/inboxes/resources/drafts/client/Client.js +15 -4
  11. package/dist/cjs/api/resources/inboxes/resources/messages/client/Client.js +15 -4
  12. package/dist/cjs/api/resources/inboxes/resources/metrics/client/Client.js +3 -1
  13. package/dist/cjs/api/resources/inboxes/resources/threads/client/Client.js +6 -1
  14. package/dist/cjs/api/resources/metrics/client/Client.js +3 -1
  15. package/dist/cjs/api/resources/pods/client/Client.js +3 -1
  16. package/dist/cjs/api/resources/pods/resources/domains/client/Client.js +9 -2
  17. package/dist/cjs/api/resources/pods/resources/drafts/client/Client.js +6 -1
  18. package/dist/cjs/api/resources/pods/resources/inboxes/client/Client.js +9 -2
  19. package/dist/cjs/api/resources/pods/resources/threads/client/Client.js +6 -1
  20. package/dist/cjs/api/resources/threads/client/Client.js +6 -1
  21. package/dist/cjs/api/resources/webhooks/client/Client.js +3 -1
  22. package/dist/cjs/serialization/resources/domains/types/{DomainSummary.d.ts → DomainItem.d.ts} +2 -2
  23. package/dist/cjs/serialization/resources/domains/types/{DomainSummary.js → DomainItem.js} +2 -2
  24. package/dist/cjs/serialization/resources/domains/types/ListDomainsResponse.d.ts +4 -2
  25. package/dist/cjs/serialization/resources/domains/types/ListDomainsResponse.js +4 -2
  26. package/dist/cjs/serialization/resources/domains/types/index.d.ts +1 -1
  27. package/dist/cjs/serialization/resources/domains/types/index.js +1 -1
  28. package/dist/cjs/version.d.ts +1 -1
  29. package/dist/cjs/version.js +1 -1
  30. package/dist/esm/Client.mjs +2 -2
  31. package/dist/esm/api/resources/apiKeys/client/Client.mjs +3 -1
  32. package/dist/esm/api/resources/domains/client/Client.mjs +3 -1
  33. package/dist/esm/api/resources/domains/types/{DomainSummary.d.mts → DomainItem.d.mts} +1 -1
  34. package/dist/esm/api/resources/domains/types/ListDomainsResponse.d.mts +2 -1
  35. package/dist/esm/api/resources/domains/types/index.d.mts +1 -1
  36. package/dist/esm/api/resources/domains/types/index.mjs +1 -1
  37. package/dist/esm/api/resources/drafts/client/Client.mjs +6 -1
  38. package/dist/esm/api/resources/inboxes/client/Client.mjs +6 -2
  39. package/dist/esm/api/resources/inboxes/resources/drafts/client/Client.mjs +15 -4
  40. package/dist/esm/api/resources/inboxes/resources/messages/client/Client.mjs +15 -4
  41. package/dist/esm/api/resources/inboxes/resources/metrics/client/Client.mjs +3 -1
  42. package/dist/esm/api/resources/inboxes/resources/threads/client/Client.mjs +6 -1
  43. package/dist/esm/api/resources/metrics/client/Client.mjs +3 -1
  44. package/dist/esm/api/resources/pods/client/Client.mjs +3 -1
  45. package/dist/esm/api/resources/pods/resources/domains/client/Client.mjs +9 -2
  46. package/dist/esm/api/resources/pods/resources/drafts/client/Client.mjs +6 -1
  47. package/dist/esm/api/resources/pods/resources/inboxes/client/Client.mjs +9 -2
  48. package/dist/esm/api/resources/pods/resources/threads/client/Client.mjs +6 -1
  49. package/dist/esm/api/resources/threads/client/Client.mjs +6 -1
  50. package/dist/esm/api/resources/webhooks/client/Client.mjs +3 -1
  51. package/dist/esm/serialization/resources/domains/types/{DomainSummary.d.mts → DomainItem.d.mts} +2 -2
  52. package/dist/esm/serialization/resources/domains/types/{DomainSummary.mjs → DomainItem.mjs} +1 -1
  53. package/dist/esm/serialization/resources/domains/types/ListDomainsResponse.d.mts +4 -2
  54. package/dist/esm/serialization/resources/domains/types/ListDomainsResponse.mjs +4 -2
  55. package/dist/esm/serialization/resources/domains/types/index.d.mts +1 -1
  56. package/dist/esm/serialization/resources/domains/types/index.mjs +1 -1
  57. package/dist/esm/version.d.mts +1 -1
  58. package/dist/esm/version.mjs +1 -1
  59. package/dist/llms-full.txt +297 -57
  60. package/dist/llms.txt +1 -0
  61. package/package.json +1 -1
  62. /package/dist/cjs/api/resources/domains/types/{DomainSummary.js → DomainItem.js} +0 -0
  63. /package/dist/esm/api/resources/domains/types/{DomainSummary.mjs → DomainItem.mjs} +0 -0
@@ -51,8 +51,8 @@ class AgentMailClient {
51
51
  this._options = Object.assign(Object.assign({}, _options), { headers: (0, headers_js_1.mergeHeaders)({
52
52
  "X-Fern-Language": "JavaScript",
53
53
  "X-Fern-SDK-Name": "agentmail",
54
- "X-Fern-SDK-Version": "0.1.4",
55
- "User-Agent": "agentmail/0.1.4",
54
+ "X-Fern-SDK-Version": "0.1.5",
55
+ "User-Agent": "agentmail/0.1.5",
56
56
  "X-Fern-Runtime": core.RUNTIME.type,
57
57
  "X-Fern-Runtime-Version": core.RUNTIME.version,
58
58
  }, _options === null || _options === void 0 ? void 0 : _options.headers) });
@@ -147,7 +147,9 @@ class ApiKeys {
147
147
  queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
148
148
  requestType: "json",
149
149
  body: serializers.CreateApiKeyRequest.jsonOrThrow(request, {
150
- unrecognizedObjectKeys: "strip",
150
+ unrecognizedObjectKeys: "passthrough",
151
+ allowUnrecognizedUnionMembers: true,
152
+ allowUnrecognizedEnumValues: true,
151
153
  omitUndefined: true,
152
154
  }),
153
155
  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,
@@ -278,7 +278,9 @@ class Domains {
278
278
  queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
279
279
  requestType: "json",
280
280
  body: serializers.CreateDomainRequest.jsonOrThrow(request, {
281
- unrecognizedObjectKeys: "strip",
281
+ unrecognizedObjectKeys: "passthrough",
282
+ allowUnrecognizedUnionMembers: true,
283
+ allowUnrecognizedEnumValues: true,
282
284
  omitUndefined: true,
283
285
  }),
284
286
  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,5 @@
1
1
  import type * as AgentMail from "../../../index.js";
2
- export interface DomainSummary {
2
+ export interface DomainItem {
3
3
  domainId: AgentMail.DomainId;
4
4
  feedbackEnabled: AgentMail.FeedbackEnabled;
5
5
  clientId?: AgentMail.ClientId;
@@ -1,7 +1,8 @@
1
1
  import type * as AgentMail from "../../../index.js";
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.js";
2
2
  export * from "./CreateDomainRequest.js";
3
3
  export * from "./Domain.js";
4
4
  export * from "./DomainId.js";
5
+ export * from "./DomainItem.js";
5
6
  export * from "./DomainName.js";
6
- export * from "./DomainSummary.js";
7
7
  export * from "./FeedbackEnabled.js";
8
8
  export * from "./ListDomainsResponse.js";
9
9
  export * from "./RecordStatus.js";
@@ -18,8 +18,8 @@ __exportStar(require("./ClientId.js"), exports);
18
18
  __exportStar(require("./CreateDomainRequest.js"), exports);
19
19
  __exportStar(require("./Domain.js"), exports);
20
20
  __exportStar(require("./DomainId.js"), exports);
21
+ __exportStar(require("./DomainItem.js"), exports);
21
22
  __exportStar(require("./DomainName.js"), exports);
22
- __exportStar(require("./DomainSummary.js"), exports);
23
23
  __exportStar(require("./FeedbackEnabled.js"), exports);
24
24
  __exportStar(require("./ListDomainsResponse.js"), exports);
25
25
  __exportStar(require("./RecordStatus.js"), exports);
@@ -79,7 +79,12 @@ class Drafts {
79
79
  _queryParams.page_token = pageToken;
80
80
  }
81
81
  if (labels != null) {
82
- _queryParams.labels = (0, json_js_1.toJson)(serializers.Labels.jsonOrThrow(labels, { unrecognizedObjectKeys: "strip", omitUndefined: true }));
82
+ _queryParams.labels = (0, json_js_1.toJson)(serializers.Labels.jsonOrThrow(labels, {
83
+ unrecognizedObjectKeys: "passthrough",
84
+ allowUnrecognizedUnionMembers: true,
85
+ allowUnrecognizedEnumValues: true,
86
+ omitUndefined: true,
87
+ }));
83
88
  }
84
89
  if (before != null) {
85
90
  _queryParams.before = before.toISOString();
@@ -237,7 +237,9 @@ class Inboxes {
237
237
  queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
238
238
  requestType: "json",
239
239
  body: serializers.inboxes.CreateInboxRequest.jsonOrThrow(request, {
240
- unrecognizedObjectKeys: "strip",
240
+ unrecognizedObjectKeys: "passthrough",
241
+ allowUnrecognizedUnionMembers: true,
242
+ allowUnrecognizedEnumValues: true,
241
243
  omitUndefined: true,
242
244
  }),
243
245
  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,
@@ -318,7 +320,9 @@ class Inboxes {
318
320
  queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
319
321
  requestType: "json",
320
322
  body: serializers.inboxes.UpdateInboxRequest.jsonOrThrow(request, {
321
- unrecognizedObjectKeys: "strip",
323
+ unrecognizedObjectKeys: "passthrough",
324
+ allowUnrecognizedUnionMembers: true,
325
+ allowUnrecognizedEnumValues: true,
322
326
  omitUndefined: true,
323
327
  }),
324
328
  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,
@@ -80,7 +80,12 @@ class Drafts {
80
80
  _queryParams.page_token = pageToken;
81
81
  }
82
82
  if (labels != null) {
83
- _queryParams.labels = (0, json_js_1.toJson)(serializers.Labels.jsonOrThrow(labels, { unrecognizedObjectKeys: "strip", omitUndefined: true }));
83
+ _queryParams.labels = (0, json_js_1.toJson)(serializers.Labels.jsonOrThrow(labels, {
84
+ unrecognizedObjectKeys: "passthrough",
85
+ allowUnrecognizedUnionMembers: true,
86
+ allowUnrecognizedEnumValues: true,
87
+ omitUndefined: true,
88
+ }));
84
89
  }
85
90
  if (before != null) {
86
91
  _queryParams.before = before.toISOString();
@@ -246,7 +251,9 @@ class Drafts {
246
251
  queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
247
252
  requestType: "json",
248
253
  body: serializers.CreateDraftRequest.jsonOrThrow(request, {
249
- unrecognizedObjectKeys: "strip",
254
+ unrecognizedObjectKeys: "passthrough",
255
+ allowUnrecognizedUnionMembers: true,
256
+ allowUnrecognizedEnumValues: true,
250
257
  omitUndefined: true,
251
258
  }),
252
259
  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,
@@ -326,7 +333,9 @@ class Drafts {
326
333
  queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
327
334
  requestType: "json",
328
335
  body: serializers.UpdateDraftRequest.jsonOrThrow(request, {
329
- unrecognizedObjectKeys: "strip",
336
+ unrecognizedObjectKeys: "passthrough",
337
+ allowUnrecognizedUnionMembers: true,
338
+ allowUnrecognizedEnumValues: true,
330
339
  omitUndefined: true,
331
340
  }),
332
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,
@@ -408,7 +417,9 @@ class Drafts {
408
417
  queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
409
418
  requestType: "json",
410
419
  body: serializers.UpdateMessageRequest.jsonOrThrow(request, {
411
- unrecognizedObjectKeys: "strip",
420
+ unrecognizedObjectKeys: "passthrough",
421
+ allowUnrecognizedUnionMembers: true,
422
+ allowUnrecognizedEnumValues: true,
412
423
  omitUndefined: true,
413
424
  }),
414
425
  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,
@@ -80,7 +80,12 @@ class Messages {
80
80
  _queryParams.page_token = pageToken;
81
81
  }
82
82
  if (labels != null) {
83
- _queryParams.labels = (0, json_js_1.toJson)(serializers.Labels.jsonOrThrow(labels, { unrecognizedObjectKeys: "strip", omitUndefined: true }));
83
+ _queryParams.labels = (0, json_js_1.toJson)(serializers.Labels.jsonOrThrow(labels, {
84
+ unrecognizedObjectKeys: "passthrough",
85
+ allowUnrecognizedUnionMembers: true,
86
+ allowUnrecognizedEnumValues: true,
87
+ omitUndefined: true,
88
+ }));
84
89
  }
85
90
  if (before != null) {
86
91
  _queryParams.before = before.toISOString();
@@ -364,7 +369,9 @@ class Messages {
364
369
  queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
365
370
  requestType: "json",
366
371
  body: serializers.SendMessageRequest.jsonOrThrow(request, {
367
- unrecognizedObjectKeys: "strip",
372
+ unrecognizedObjectKeys: "passthrough",
373
+ allowUnrecognizedUnionMembers: true,
374
+ allowUnrecognizedEnumValues: true,
368
375
  omitUndefined: true,
369
376
  }),
370
377
  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,
@@ -462,7 +469,9 @@ class Messages {
462
469
  queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
463
470
  requestType: "json",
464
471
  body: serializers.ReplyToMessageRequest.jsonOrThrow(request, {
465
- unrecognizedObjectKeys: "strip",
472
+ unrecognizedObjectKeys: "passthrough",
473
+ allowUnrecognizedUnionMembers: true,
474
+ allowUnrecognizedEnumValues: true,
466
475
  omitUndefined: true,
467
476
  }),
468
477
  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,
@@ -559,7 +568,9 @@ class Messages {
559
568
  queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
560
569
  requestType: "json",
561
570
  body: serializers.UpdateMessageRequest.jsonOrThrow(request, {
562
- unrecognizedObjectKeys: "strip",
571
+ unrecognizedObjectKeys: "passthrough",
572
+ allowUnrecognizedUnionMembers: true,
573
+ allowUnrecognizedEnumValues: true,
563
574
  omitUndefined: true,
564
575
  }),
565
576
  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,
@@ -79,7 +79,9 @@ class Metrics {
79
79
  const _queryParams = {};
80
80
  if (eventTypes != null) {
81
81
  _queryParams.event_types = (0, json_js_1.toJson)(serializers.MetricEventTypes.jsonOrThrow(eventTypes, {
82
- unrecognizedObjectKeys: "strip",
82
+ unrecognizedObjectKeys: "passthrough",
83
+ allowUnrecognizedUnionMembers: true,
84
+ allowUnrecognizedEnumValues: true,
83
85
  omitUndefined: true,
84
86
  }));
85
87
  }
@@ -80,7 +80,12 @@ class Threads {
80
80
  _queryParams.page_token = pageToken;
81
81
  }
82
82
  if (labels != null) {
83
- _queryParams.labels = (0, json_js_1.toJson)(serializers.Labels.jsonOrThrow(labels, { unrecognizedObjectKeys: "strip", omitUndefined: true }));
83
+ _queryParams.labels = (0, json_js_1.toJson)(serializers.Labels.jsonOrThrow(labels, {
84
+ unrecognizedObjectKeys: "passthrough",
85
+ allowUnrecognizedUnionMembers: true,
86
+ allowUnrecognizedEnumValues: true,
87
+ omitUndefined: true,
88
+ }));
84
89
  }
85
90
  if (before != null) {
86
91
  _queryParams.before = before.toISOString();
@@ -77,7 +77,9 @@ class Metrics {
77
77
  const _queryParams = {};
78
78
  if (eventTypes != null) {
79
79
  _queryParams.event_types = (0, json_js_1.toJson)(serializers.MetricEventTypes.jsonOrThrow(eventTypes, {
80
- unrecognizedObjectKeys: "strip",
80
+ unrecognizedObjectKeys: "passthrough",
81
+ allowUnrecognizedUnionMembers: true,
82
+ allowUnrecognizedEnumValues: true,
81
83
  omitUndefined: true,
82
84
  }));
83
85
  }
@@ -237,7 +237,9 @@ class Pods {
237
237
  queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
238
238
  requestType: "json",
239
239
  body: serializers.pods.CreatePodRequest.jsonOrThrow(request, {
240
- unrecognizedObjectKeys: "strip",
240
+ unrecognizedObjectKeys: "passthrough",
241
+ allowUnrecognizedUnionMembers: true,
242
+ allowUnrecognizedEnumValues: true,
241
243
  omitUndefined: true,
242
244
  }),
243
245
  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,
@@ -80,7 +80,12 @@ class Domains {
80
80
  _queryParams.page_token = pageToken;
81
81
  }
82
82
  if (labels != null) {
83
- _queryParams.labels = (0, json_js_1.toJson)(serializers.Labels.jsonOrThrow(labels, { unrecognizedObjectKeys: "strip", omitUndefined: true }));
83
+ _queryParams.labels = (0, json_js_1.toJson)(serializers.Labels.jsonOrThrow(labels, {
84
+ unrecognizedObjectKeys: "passthrough",
85
+ allowUnrecognizedUnionMembers: true,
86
+ allowUnrecognizedEnumValues: true,
87
+ omitUndefined: true,
88
+ }));
84
89
  }
85
90
  if (before != null) {
86
91
  _queryParams.before = before.toISOString();
@@ -176,7 +181,9 @@ class Domains {
176
181
  queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
177
182
  requestType: "json",
178
183
  body: serializers.CreateDomainRequest.jsonOrThrow(request, {
179
- unrecognizedObjectKeys: "strip",
184
+ unrecognizedObjectKeys: "passthrough",
185
+ allowUnrecognizedUnionMembers: true,
186
+ allowUnrecognizedEnumValues: true,
180
187
  omitUndefined: true,
181
188
  }),
182
189
  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,
@@ -80,7 +80,12 @@ class Drafts {
80
80
  _queryParams.page_token = pageToken;
81
81
  }
82
82
  if (labels != null) {
83
- _queryParams.labels = (0, json_js_1.toJson)(serializers.Labels.jsonOrThrow(labels, { unrecognizedObjectKeys: "strip", omitUndefined: true }));
83
+ _queryParams.labels = (0, json_js_1.toJson)(serializers.Labels.jsonOrThrow(labels, {
84
+ unrecognizedObjectKeys: "passthrough",
85
+ allowUnrecognizedUnionMembers: true,
86
+ allowUnrecognizedEnumValues: true,
87
+ omitUndefined: true,
88
+ }));
84
89
  }
85
90
  if (before != null) {
86
91
  _queryParams.before = before.toISOString();
@@ -80,7 +80,12 @@ class Inboxes {
80
80
  _queryParams.page_token = pageToken;
81
81
  }
82
82
  if (labels != null) {
83
- _queryParams.labels = (0, json_js_1.toJson)(serializers.Labels.jsonOrThrow(labels, { unrecognizedObjectKeys: "strip", omitUndefined: true }));
83
+ _queryParams.labels = (0, json_js_1.toJson)(serializers.Labels.jsonOrThrow(labels, {
84
+ unrecognizedObjectKeys: "passthrough",
85
+ allowUnrecognizedUnionMembers: true,
86
+ allowUnrecognizedEnumValues: true,
87
+ omitUndefined: true,
88
+ }));
84
89
  }
85
90
  if (before != null) {
86
91
  _queryParams.before = before.toISOString();
@@ -246,7 +251,9 @@ class Inboxes {
246
251
  queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
247
252
  requestType: "json",
248
253
  body: serializers.inboxes.CreateInboxRequest.jsonOrThrow(request, {
249
- unrecognizedObjectKeys: "strip",
254
+ unrecognizedObjectKeys: "passthrough",
255
+ allowUnrecognizedUnionMembers: true,
256
+ allowUnrecognizedEnumValues: true,
250
257
  omitUndefined: true,
251
258
  }),
252
259
  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,
@@ -80,7 +80,12 @@ class Threads {
80
80
  _queryParams.page_token = pageToken;
81
81
  }
82
82
  if (labels != null) {
83
- _queryParams.labels = (0, json_js_1.toJson)(serializers.Labels.jsonOrThrow(labels, { unrecognizedObjectKeys: "strip", omitUndefined: true }));
83
+ _queryParams.labels = (0, json_js_1.toJson)(serializers.Labels.jsonOrThrow(labels, {
84
+ unrecognizedObjectKeys: "passthrough",
85
+ allowUnrecognizedUnionMembers: true,
86
+ allowUnrecognizedEnumValues: true,
87
+ omitUndefined: true,
88
+ }));
84
89
  }
85
90
  if (before != null) {
86
91
  _queryParams.before = before.toISOString();
@@ -79,7 +79,12 @@ class Threads {
79
79
  _queryParams.page_token = pageToken;
80
80
  }
81
81
  if (labels != null) {
82
- _queryParams.labels = (0, json_js_1.toJson)(serializers.Labels.jsonOrThrow(labels, { unrecognizedObjectKeys: "strip", omitUndefined: true }));
82
+ _queryParams.labels = (0, json_js_1.toJson)(serializers.Labels.jsonOrThrow(labels, {
83
+ unrecognizedObjectKeys: "passthrough",
84
+ allowUnrecognizedUnionMembers: true,
85
+ allowUnrecognizedEnumValues: true,
86
+ omitUndefined: true,
87
+ }));
83
88
  }
84
89
  if (before != null) {
85
90
  _queryParams.before = before.toISOString();
@@ -220,7 +220,9 @@ class Webhooks {
220
220
  queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
221
221
  requestType: "json",
222
222
  body: serializers.webhooks.CreateWebhookRequest.jsonOrThrow(request, {
223
- unrecognizedObjectKeys: "strip",
223
+ unrecognizedObjectKeys: "passthrough",
224
+ allowUnrecognizedUnionMembers: true,
225
+ allowUnrecognizedEnumValues: true,
224
226
  omitUndefined: true,
225
227
  }),
226
228
  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,
@@ -4,8 +4,8 @@ import type * as serializers from "../../../index.js";
4
4
  import { ClientId } from "./ClientId.js";
5
5
  import { DomainId } from "./DomainId.js";
6
6
  import { FeedbackEnabled } from "./FeedbackEnabled.js";
7
- export declare const DomainSummary: core.serialization.ObjectSchema<serializers.DomainSummary.Raw, AgentMail.DomainSummary>;
8
- export declare namespace DomainSummary {
7
+ export declare const DomainItem: core.serialization.ObjectSchema<serializers.DomainItem.Raw, AgentMail.DomainItem>;
8
+ export declare namespace DomainItem {
9
9
  interface Raw {
10
10
  domain_id: DomainId.Raw;
11
11
  feedback_enabled: FeedbackEnabled.Raw;
@@ -34,12 +34,12 @@ var __importStar = (this && this.__importStar) || (function () {
34
34
  };
35
35
  })();
36
36
  Object.defineProperty(exports, "__esModule", { value: true });
37
- exports.DomainSummary = void 0;
37
+ exports.DomainItem = void 0;
38
38
  const core = __importStar(require("../../../../core/index.js"));
39
39
  const ClientId_js_1 = require("./ClientId.js");
40
40
  const DomainId_js_1 = require("./DomainId.js");
41
41
  const FeedbackEnabled_js_1 = require("./FeedbackEnabled.js");
42
- exports.DomainSummary = core.serialization.object({
42
+ exports.DomainItem = core.serialization.object({
43
43
  domainId: core.serialization.property("domain_id", DomainId_js_1.DomainId),
44
44
  feedbackEnabled: core.serialization.property("feedback_enabled", FeedbackEnabled_js_1.FeedbackEnabled),
45
45
  clientId: core.serialization.property("client_id", ClientId_js_1.ClientId.optional()),
@@ -2,13 +2,15 @@ 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 { Count } from "../../../types/Count.js";
5
+ import { Limit } from "../../../types/Limit.js";
5
6
  import { PageToken } from "../../../types/PageToken.js";
6
- import { DomainSummary } from "./DomainSummary.js";
7
+ import { DomainItem } from "./DomainItem.js";
7
8
  export declare const ListDomainsResponse: core.serialization.ObjectSchema<serializers.ListDomainsResponse.Raw, AgentMail.ListDomainsResponse>;
8
9
  export declare namespace ListDomainsResponse {
9
10
  interface Raw {
10
11
  count: Count.Raw;
12
+ limit?: Limit.Raw | null;
11
13
  next_page_token?: PageToken.Raw | null;
12
- domains: DomainSummary.Raw[];
14
+ domains: DomainItem.Raw[];
13
15
  }
14
16
  }
@@ -37,10 +37,12 @@ Object.defineProperty(exports, "__esModule", { value: true });
37
37
  exports.ListDomainsResponse = void 0;
38
38
  const core = __importStar(require("../../../../core/index.js"));
39
39
  const Count_js_1 = require("../../../types/Count.js");
40
+ const Limit_js_1 = require("../../../types/Limit.js");
40
41
  const PageToken_js_1 = require("../../../types/PageToken.js");
41
- const DomainSummary_js_1 = require("./DomainSummary.js");
42
+ const DomainItem_js_1 = require("./DomainItem.js");
42
43
  exports.ListDomainsResponse = core.serialization.object({
43
44
  count: Count_js_1.Count,
45
+ limit: Limit_js_1.Limit.optional(),
44
46
  nextPageToken: core.serialization.property("next_page_token", PageToken_js_1.PageToken.optional()),
45
- domains: core.serialization.list(DomainSummary_js_1.DomainSummary),
47
+ domains: core.serialization.list(DomainItem_js_1.DomainItem),
46
48
  });
@@ -2,8 +2,8 @@ export * from "./ClientId.js";
2
2
  export * from "./CreateDomainRequest.js";
3
3
  export * from "./Domain.js";
4
4
  export * from "./DomainId.js";
5
+ export * from "./DomainItem.js";
5
6
  export * from "./DomainName.js";
6
- export * from "./DomainSummary.js";
7
7
  export * from "./FeedbackEnabled.js";
8
8
  export * from "./ListDomainsResponse.js";
9
9
  export * from "./RecordStatus.js";
@@ -18,8 +18,8 @@ __exportStar(require("./ClientId.js"), exports);
18
18
  __exportStar(require("./CreateDomainRequest.js"), exports);
19
19
  __exportStar(require("./Domain.js"), exports);
20
20
  __exportStar(require("./DomainId.js"), exports);
21
+ __exportStar(require("./DomainItem.js"), exports);
21
22
  __exportStar(require("./DomainName.js"), exports);
22
- __exportStar(require("./DomainSummary.js"), exports);
23
23
  __exportStar(require("./FeedbackEnabled.js"), exports);
24
24
  __exportStar(require("./ListDomainsResponse.js"), exports);
25
25
  __exportStar(require("./RecordStatus.js"), exports);
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "0.1.4";
1
+ export declare const SDK_VERSION = "0.1.5";
@@ -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.5";
@@ -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.5",
19
+ "User-Agent": "agentmail/0.1.5",
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,5 @@
1
1
  import type * as AgentMail from "../../../index.mjs";
2
- export interface DomainSummary {
2
+ export interface DomainItem {
3
3
  domainId: AgentMail.DomainId;
4
4
  feedbackEnabled: AgentMail.FeedbackEnabled;
5
5
  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,