agentmail 0.0.24 → 0.0.25

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/api/resources/inboxes/client/Client.js +8 -3
  2. package/api/resources/inboxes/types/Inbox.d.ts +0 -4
  3. package/api/resources/inboxes/types/ListInboxesResponse.d.ts +0 -1
  4. package/api/resources/messages/client/Client.js +18 -5
  5. package/api/resources/messages/types/ListMessagesResponse.d.ts +4 -2
  6. package/api/resources/messages/types/Message.d.ts +2 -4
  7. package/api/resources/messages/types/MessageItem.d.ts +1 -0
  8. package/api/resources/messages/types/SendAttachment.d.ts +1 -1
  9. package/api/resources/threads/client/Client.js +6 -2
  10. package/api/resources/threads/types/ListThreadsResponse.d.ts +2 -0
  11. package/api/resources/threads/types/Thread.d.ts +2 -5
  12. package/api/resources/threads/types/ThreadItem.d.ts +1 -0
  13. package/api/resources/threads/types/index.d.ts +1 -1
  14. package/api/resources/threads/types/index.js +1 -1
  15. package/api/resources/webhooks/client/Client.js +10 -4
  16. package/dist/api/resources/inboxes/client/Client.js +8 -3
  17. package/dist/api/resources/inboxes/types/Inbox.d.ts +0 -4
  18. package/dist/api/resources/inboxes/types/ListInboxesResponse.d.ts +0 -1
  19. package/dist/api/resources/messages/client/Client.js +18 -5
  20. package/dist/api/resources/messages/types/ListMessagesResponse.d.ts +4 -2
  21. package/dist/api/resources/messages/types/Message.d.ts +2 -4
  22. package/dist/api/resources/messages/types/MessageItem.d.ts +1 -0
  23. package/dist/api/resources/messages/types/SendAttachment.d.ts +1 -1
  24. package/dist/api/resources/threads/client/Client.js +6 -2
  25. package/dist/api/resources/threads/types/ListThreadsResponse.d.ts +2 -0
  26. package/dist/api/resources/threads/types/Thread.d.ts +2 -5
  27. package/dist/api/resources/threads/types/ThreadItem.d.ts +1 -0
  28. package/dist/api/resources/threads/types/index.d.ts +1 -1
  29. package/dist/api/resources/threads/types/index.js +1 -1
  30. package/dist/api/resources/webhooks/client/Client.js +10 -4
  31. package/dist/serialization/resources/inboxes/types/Inbox.d.ts +0 -1
  32. package/dist/serialization/resources/inboxes/types/Inbox.js +0 -1
  33. package/dist/serialization/resources/messages/types/Message.d.ts +2 -4
  34. package/dist/serialization/resources/messages/types/Message.js +2 -4
  35. package/dist/serialization/resources/messages/types/MessageItem.d.ts +2 -0
  36. package/dist/serialization/resources/messages/types/MessageItem.js +2 -0
  37. package/dist/serialization/resources/messages/types/SendAttachment.d.ts +1 -1
  38. package/dist/serialization/resources/messages/types/SendAttachment.js +1 -1
  39. package/dist/serialization/resources/threads/types/Thread.d.ts +2 -4
  40. package/dist/serialization/resources/threads/types/Thread.js +2 -4
  41. package/dist/serialization/resources/threads/types/ThreadItem.d.ts +2 -0
  42. package/dist/serialization/resources/threads/types/ThreadItem.js +2 -0
  43. package/dist/serialization/resources/threads/types/index.d.ts +1 -1
  44. package/dist/serialization/resources/threads/types/index.js +1 -1
  45. package/dist/version.d.ts +1 -1
  46. package/dist/version.js +1 -1
  47. package/package.json +1 -1
  48. package/serialization/resources/inboxes/types/Inbox.d.ts +0 -1
  49. package/serialization/resources/inboxes/types/Inbox.js +0 -1
  50. package/serialization/resources/messages/types/Message.d.ts +2 -4
  51. package/serialization/resources/messages/types/Message.js +2 -4
  52. package/serialization/resources/messages/types/MessageItem.d.ts +2 -0
  53. package/serialization/resources/messages/types/MessageItem.js +2 -0
  54. package/serialization/resources/messages/types/SendAttachment.d.ts +1 -1
  55. package/serialization/resources/messages/types/SendAttachment.js +1 -1
  56. package/serialization/resources/threads/types/Thread.d.ts +2 -4
  57. package/serialization/resources/threads/types/Thread.js +2 -4
  58. package/serialization/resources/threads/types/ThreadItem.d.ts +2 -0
  59. package/serialization/resources/threads/types/ThreadItem.js +2 -0
  60. package/serialization/resources/threads/types/index.d.ts +1 -1
  61. package/serialization/resources/threads/types/index.js +1 -1
  62. package/version.d.ts +1 -1
  63. package/version.js +1 -1
@@ -83,7 +83,7 @@ class Inboxes {
83
83
  const _response = yield core.fetcher({
84
84
  url: (0, url_join_1.default)((_b = (_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.AgentMailEnvironment.Production, "/v0/inboxes"),
85
85
  method: "GET",
86
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "agentmail", "X-Fern-SDK-Version": "0.0.24", "User-Agent": "agentmail/0.0.24", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
86
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "agentmail", "X-Fern-SDK-Version": "0.0.25", "User-Agent": "agentmail/0.0.25", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
87
87
  contentType: "application/json",
88
88
  queryParameters: _queryParams,
89
89
  requestType: "json",
@@ -96,6 +96,7 @@ class Inboxes {
96
96
  unrecognizedObjectKeys: "passthrough",
97
97
  allowUnrecognizedUnionMembers: true,
98
98
  allowUnrecognizedEnumValues: true,
99
+ skipValidation: true,
99
100
  breadcrumbsPrefix: ["response"],
100
101
  });
101
102
  }
@@ -135,7 +136,7 @@ class Inboxes {
135
136
  const _response = yield core.fetcher({
136
137
  url: (0, url_join_1.default)((_b = (_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.AgentMailEnvironment.Production, `/v0/inboxes/${encodeURIComponent(serializers.InboxId.jsonOrThrow(inboxId))}`),
137
138
  method: "GET",
138
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "agentmail", "X-Fern-SDK-Version": "0.0.24", "User-Agent": "agentmail/0.0.24", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
139
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "agentmail", "X-Fern-SDK-Version": "0.0.25", "User-Agent": "agentmail/0.0.25", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
139
140
  contentType: "application/json",
140
141
  requestType: "json",
141
142
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -147,6 +148,7 @@ class Inboxes {
147
148
  unrecognizedObjectKeys: "passthrough",
148
149
  allowUnrecognizedUnionMembers: true,
149
150
  allowUnrecognizedEnumValues: true,
151
+ skipValidation: true,
150
152
  breadcrumbsPrefix: ["response"],
151
153
  });
152
154
  }
@@ -157,6 +159,7 @@ class Inboxes {
157
159
  unrecognizedObjectKeys: "passthrough",
158
160
  allowUnrecognizedUnionMembers: true,
159
161
  allowUnrecognizedEnumValues: true,
162
+ skipValidation: true,
160
163
  breadcrumbsPrefix: ["response"],
161
164
  }));
162
165
  default:
@@ -204,7 +207,7 @@ class Inboxes {
204
207
  const _response = yield core.fetcher({
205
208
  url: (0, url_join_1.default)((_b = (_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.AgentMailEnvironment.Production, "/v0/inboxes"),
206
209
  method: "POST",
207
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "agentmail", "X-Fern-SDK-Version": "0.0.24", "User-Agent": "agentmail/0.0.24", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
210
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "agentmail", "X-Fern-SDK-Version": "0.0.25", "User-Agent": "agentmail/0.0.25", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
208
211
  contentType: "application/json",
209
212
  requestType: "json",
210
213
  body: serializers.CreateInboxRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -217,6 +220,7 @@ class Inboxes {
217
220
  unrecognizedObjectKeys: "passthrough",
218
221
  allowUnrecognizedUnionMembers: true,
219
222
  allowUnrecognizedEnumValues: true,
223
+ skipValidation: true,
220
224
  breadcrumbsPrefix: ["response"],
221
225
  });
222
226
  }
@@ -227,6 +231,7 @@ class Inboxes {
227
231
  unrecognizedObjectKeys: "passthrough",
228
232
  allowUnrecognizedUnionMembers: true,
229
233
  allowUnrecognizedEnumValues: true,
234
+ skipValidation: true,
230
235
  breadcrumbsPrefix: ["response"],
231
236
  }));
232
237
  default:
@@ -6,7 +6,6 @@ import * as AgentMail from "../../../index";
6
6
  * @example
7
7
  * {
8
8
  * inboxId: "yourinbox@agentmail.to",
9
- * organizationId: "123e4567-e89b-12d3-a456-426614174000",
10
9
  * displayName: "Your Inbox",
11
10
  * createdAt: "2024-01-15T09:30:00Z"
12
11
  * }
@@ -14,15 +13,12 @@ import * as AgentMail from "../../../index";
14
13
  * @example
15
14
  * {
16
15
  * inboxId: "helpfulagent123@yourdomain.com",
17
- * organizationId: "123e4567-e89b-12d3-a456-426614174000",
18
16
  * displayName: "Helpful Agent",
19
17
  * createdAt: "2024-01-15T09:30:00Z"
20
18
  * }
21
19
  */
22
20
  export interface Inbox {
23
21
  inboxId: AgentMail.InboxId;
24
- /** ID of organization that owns inbox. */
25
- organizationId: string;
26
22
  displayName?: AgentMail.DisplayName;
27
23
  /** Time at which inbox was created. */
28
24
  createdAt: Date;
@@ -7,7 +7,6 @@ import * as AgentMail from "../../../index";
7
7
  * {
8
8
  * inboxes: [{
9
9
  * inboxId: "yourinbox@agentmail.to",
10
- * organizationId: "123e4567-e89b-12d3-a456-426614174000",
11
10
  * displayName: "Your Inbox",
12
11
  * createdAt: "2024-01-15T09:30:00Z"
13
12
  * }],
@@ -89,7 +89,7 @@ class Messages {
89
89
  const _response = yield core.fetcher({
90
90
  url: (0, url_join_1.default)((_b = (_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.AgentMailEnvironment.Production, `/v0/inboxes/${encodeURIComponent(serializers.InboxId.jsonOrThrow(inboxId))}/messages`),
91
91
  method: "GET",
92
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "agentmail", "X-Fern-SDK-Version": "0.0.24", "User-Agent": "agentmail/0.0.24", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
92
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "agentmail", "X-Fern-SDK-Version": "0.0.25", "User-Agent": "agentmail/0.0.25", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
93
93
  contentType: "application/json",
94
94
  queryParameters: _queryParams,
95
95
  requestType: "json",
@@ -102,6 +102,7 @@ class Messages {
102
102
  unrecognizedObjectKeys: "passthrough",
103
103
  allowUnrecognizedUnionMembers: true,
104
104
  allowUnrecognizedEnumValues: true,
105
+ skipValidation: true,
105
106
  breadcrumbsPrefix: ["response"],
106
107
  });
107
108
  }
@@ -112,6 +113,7 @@ class Messages {
112
113
  unrecognizedObjectKeys: "passthrough",
113
114
  allowUnrecognizedUnionMembers: true,
114
115
  allowUnrecognizedEnumValues: true,
116
+ skipValidation: true,
115
117
  breadcrumbsPrefix: ["response"],
116
118
  }));
117
119
  default:
@@ -152,7 +154,7 @@ class Messages {
152
154
  const _response = yield core.fetcher({
153
155
  url: (0, url_join_1.default)((_b = (_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.AgentMailEnvironment.Production, `/v0/inboxes/${encodeURIComponent(serializers.InboxId.jsonOrThrow(inboxId))}/messages/${encodeURIComponent(serializers.MessageId.jsonOrThrow(messageId))}`),
154
156
  method: "GET",
155
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "agentmail", "X-Fern-SDK-Version": "0.0.24", "User-Agent": "agentmail/0.0.24", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
157
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "agentmail", "X-Fern-SDK-Version": "0.0.25", "User-Agent": "agentmail/0.0.25", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
156
158
  contentType: "application/json",
157
159
  requestType: "json",
158
160
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -164,6 +166,7 @@ class Messages {
164
166
  unrecognizedObjectKeys: "passthrough",
165
167
  allowUnrecognizedUnionMembers: true,
166
168
  allowUnrecognizedEnumValues: true,
169
+ skipValidation: true,
167
170
  breadcrumbsPrefix: ["response"],
168
171
  });
169
172
  }
@@ -174,6 +177,7 @@ class Messages {
174
177
  unrecognizedObjectKeys: "passthrough",
175
178
  allowUnrecognizedUnionMembers: true,
176
179
  allowUnrecognizedEnumValues: true,
180
+ skipValidation: true,
177
181
  breadcrumbsPrefix: ["response"],
178
182
  }));
179
183
  default:
@@ -207,7 +211,7 @@ class Messages {
207
211
  const _response = yield core.fetcher({
208
212
  url: (0, url_join_1.default)((_b = (_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.AgentMailEnvironment.Production, `/v0/inboxes/${encodeURIComponent(serializers.InboxId.jsonOrThrow(inboxId))}/messages/${encodeURIComponent(serializers.MessageId.jsonOrThrow(messageId))}/attachments/${encodeURIComponent(serializers.AttachmentId.jsonOrThrow(attachmentId))}`),
209
213
  method: "GET",
210
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "agentmail", "X-Fern-SDK-Version": "0.0.24", "User-Agent": "agentmail/0.0.24", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
214
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "agentmail", "X-Fern-SDK-Version": "0.0.25", "User-Agent": "agentmail/0.0.25", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
211
215
  contentType: "application/json",
212
216
  requestType: "json",
213
217
  responseType: "streaming",
@@ -225,6 +229,7 @@ class Messages {
225
229
  unrecognizedObjectKeys: "passthrough",
226
230
  allowUnrecognizedUnionMembers: true,
227
231
  allowUnrecognizedEnumValues: true,
232
+ skipValidation: true,
228
233
  breadcrumbsPrefix: ["response"],
229
234
  }));
230
235
  default:
@@ -274,7 +279,7 @@ class Messages {
274
279
  const _response = yield core.fetcher({
275
280
  url: (0, url_join_1.default)((_b = (_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.AgentMailEnvironment.Production, `/v0/inboxes/${encodeURIComponent(serializers.InboxId.jsonOrThrow(inboxId))}/messages/send`),
276
281
  method: "POST",
277
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "agentmail", "X-Fern-SDK-Version": "0.0.24", "User-Agent": "agentmail/0.0.24", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
282
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "agentmail", "X-Fern-SDK-Version": "0.0.25", "User-Agent": "agentmail/0.0.25", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
278
283
  contentType: "application/json",
279
284
  requestType: "json",
280
285
  body: serializers.SendMessageRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -287,6 +292,7 @@ class Messages {
287
292
  unrecognizedObjectKeys: "passthrough",
288
293
  allowUnrecognizedUnionMembers: true,
289
294
  allowUnrecognizedEnumValues: true,
295
+ skipValidation: true,
290
296
  breadcrumbsPrefix: ["response"],
291
297
  });
292
298
  }
@@ -297,6 +303,7 @@ class Messages {
297
303
  unrecognizedObjectKeys: "passthrough",
298
304
  allowUnrecognizedUnionMembers: true,
299
305
  allowUnrecognizedEnumValues: true,
306
+ skipValidation: true,
300
307
  breadcrumbsPrefix: ["response"],
301
308
  }));
302
309
  case 400:
@@ -304,6 +311,7 @@ class Messages {
304
311
  unrecognizedObjectKeys: "passthrough",
305
312
  allowUnrecognizedUnionMembers: true,
306
313
  allowUnrecognizedEnumValues: true,
314
+ skipValidation: true,
307
315
  breadcrumbsPrefix: ["response"],
308
316
  }));
309
317
  case 403:
@@ -311,6 +319,7 @@ class Messages {
311
319
  unrecognizedObjectKeys: "passthrough",
312
320
  allowUnrecognizedUnionMembers: true,
313
321
  allowUnrecognizedEnumValues: true,
322
+ skipValidation: true,
314
323
  breadcrumbsPrefix: ["response"],
315
324
  }));
316
325
  default:
@@ -359,7 +368,7 @@ class Messages {
359
368
  const _response = yield core.fetcher({
360
369
  url: (0, url_join_1.default)((_b = (_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.AgentMailEnvironment.Production, `/v0/inboxes/${encodeURIComponent(serializers.InboxId.jsonOrThrow(inboxId))}/messages/${encodeURIComponent(serializers.MessageId.jsonOrThrow(messageId))}/reply`),
361
370
  method: "POST",
362
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "agentmail", "X-Fern-SDK-Version": "0.0.24", "User-Agent": "agentmail/0.0.24", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
371
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "agentmail", "X-Fern-SDK-Version": "0.0.25", "User-Agent": "agentmail/0.0.25", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
363
372
  contentType: "application/json",
364
373
  requestType: "json",
365
374
  body: serializers.ReplyToMessageRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -372,6 +381,7 @@ class Messages {
372
381
  unrecognizedObjectKeys: "passthrough",
373
382
  allowUnrecognizedUnionMembers: true,
374
383
  allowUnrecognizedEnumValues: true,
384
+ skipValidation: true,
375
385
  breadcrumbsPrefix: ["response"],
376
386
  });
377
387
  }
@@ -382,6 +392,7 @@ class Messages {
382
392
  unrecognizedObjectKeys: "passthrough",
383
393
  allowUnrecognizedUnionMembers: true,
384
394
  allowUnrecognizedEnumValues: true,
395
+ skipValidation: true,
385
396
  breadcrumbsPrefix: ["response"],
386
397
  }));
387
398
  case 400:
@@ -389,6 +400,7 @@ class Messages {
389
400
  unrecognizedObjectKeys: "passthrough",
390
401
  allowUnrecognizedUnionMembers: true,
391
402
  allowUnrecognizedEnumValues: true,
403
+ skipValidation: true,
392
404
  breadcrumbsPrefix: ["response"],
393
405
  }));
394
406
  case 403:
@@ -396,6 +408,7 @@ class Messages {
396
408
  unrecognizedObjectKeys: "passthrough",
397
409
  allowUnrecognizedUnionMembers: true,
398
410
  allowUnrecognizedEnumValues: true,
411
+ skipValidation: true,
399
412
  breadcrumbsPrefix: ["response"],
400
413
  }));
401
414
  default:
@@ -6,8 +6,9 @@ import * as AgentMail from "../../../index";
6
6
  * @example
7
7
  * {
8
8
  * messages: [{
9
- * messageId: "msg_123",
9
+ * inboxId: "yourinbox@agentmail.to",
10
10
  * threadId: "thread_123",
11
+ * messageId: "msg_123",
11
12
  * eventId: "event_123",
12
13
  * labels: ["RECEIVED", "UNREAD"],
13
14
  * timestamp: "2024-01-15T09:30:00Z",
@@ -25,8 +26,9 @@ import * as AgentMail from "../../../index";
25
26
  * inline: false
26
27
  * }]
27
28
  * }, {
28
- * messageId: "msg_456",
29
+ * inboxId: "yourinbox@agentmail.to",
29
30
  * threadId: "thread_123",
31
+ * messageId: "msg_456",
30
32
  * eventId: "event_456",
31
33
  * labels: ["SENT"],
32
34
  * timestamp: "2024-01-15T10:15:00Z",
@@ -28,11 +28,11 @@ import * as AgentMail from "../../../index";
28
28
  * }],
29
29
  * inReplyTo: "msg_122",
30
30
  * references: ["msg_121", "msg_122"],
31
- * inboxId: "yourinbox@agentmail.to",
32
- * organizationId: "org_123"
31
+ * inboxId: "yourinbox@agentmail.to"
33
32
  * }
34
33
  */
35
34
  export interface Message {
35
+ inboxId: AgentMail.InboxId;
36
36
  threadId: AgentMail.ThreadId;
37
37
  messageId: AgentMail.MessageId;
38
38
  eventId: AgentMail.MessageEventId;
@@ -50,6 +50,4 @@ export interface Message {
50
50
  attachments?: AgentMail.MessageAttachments;
51
51
  inReplyTo?: AgentMail.MessageInReplyTo;
52
52
  references?: AgentMail.MessageReferences;
53
- inboxId: AgentMail.InboxId;
54
- organizationId: AgentMail.OrganizationId;
55
53
  }
@@ -3,6 +3,7 @@
3
3
  */
4
4
  import * as AgentMail from "../../../index";
5
5
  export interface MessageItem {
6
+ inboxId: AgentMail.InboxId;
6
7
  threadId: AgentMail.ThreadId;
7
8
  messageId: AgentMail.MessageId;
8
9
  eventId: AgentMail.MessageEventId;
@@ -4,6 +4,6 @@
4
4
  import * as AgentMail from "../../../index";
5
5
  export interface SendAttachment {
6
6
  filename: AgentMail.AttachmentFilename;
7
- contentType: AgentMail.AttachmentContentType;
7
+ contentType?: AgentMail.AttachmentContentType;
8
8
  content: AgentMail.AttachmentContent;
9
9
  }
@@ -89,7 +89,7 @@ class Threads {
89
89
  const _response = yield core.fetcher({
90
90
  url: (0, url_join_1.default)((_b = (_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.AgentMailEnvironment.Production, `/v0/inboxes/${encodeURIComponent(serializers.InboxId.jsonOrThrow(inboxId))}/threads`),
91
91
  method: "GET",
92
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "agentmail", "X-Fern-SDK-Version": "0.0.24", "User-Agent": "agentmail/0.0.24", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
92
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "agentmail", "X-Fern-SDK-Version": "0.0.25", "User-Agent": "agentmail/0.0.25", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
93
93
  contentType: "application/json",
94
94
  queryParameters: _queryParams,
95
95
  requestType: "json",
@@ -102,6 +102,7 @@ class Threads {
102
102
  unrecognizedObjectKeys: "passthrough",
103
103
  allowUnrecognizedUnionMembers: true,
104
104
  allowUnrecognizedEnumValues: true,
105
+ skipValidation: true,
105
106
  breadcrumbsPrefix: ["response"],
106
107
  });
107
108
  }
@@ -112,6 +113,7 @@ class Threads {
112
113
  unrecognizedObjectKeys: "passthrough",
113
114
  allowUnrecognizedUnionMembers: true,
114
115
  allowUnrecognizedEnumValues: true,
116
+ skipValidation: true,
115
117
  breadcrumbsPrefix: ["response"],
116
118
  }));
117
119
  default:
@@ -152,7 +154,7 @@ class Threads {
152
154
  const _response = yield core.fetcher({
153
155
  url: (0, url_join_1.default)((_b = (_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.AgentMailEnvironment.Production, `/v0/inboxes/${encodeURIComponent(serializers.InboxId.jsonOrThrow(inboxId))}/threads/${encodeURIComponent(serializers.ThreadId.jsonOrThrow(threadId))}`),
154
156
  method: "GET",
155
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "agentmail", "X-Fern-SDK-Version": "0.0.24", "User-Agent": "agentmail/0.0.24", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
157
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "agentmail", "X-Fern-SDK-Version": "0.0.25", "User-Agent": "agentmail/0.0.25", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
156
158
  contentType: "application/json",
157
159
  requestType: "json",
158
160
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -164,6 +166,7 @@ class Threads {
164
166
  unrecognizedObjectKeys: "passthrough",
165
167
  allowUnrecognizedUnionMembers: true,
166
168
  allowUnrecognizedEnumValues: true,
169
+ skipValidation: true,
167
170
  breadcrumbsPrefix: ["response"],
168
171
  });
169
172
  }
@@ -174,6 +177,7 @@ class Threads {
174
177
  unrecognizedObjectKeys: "passthrough",
175
178
  allowUnrecognizedUnionMembers: true,
176
179
  allowUnrecognizedEnumValues: true,
180
+ skipValidation: true,
177
181
  breadcrumbsPrefix: ["response"],
178
182
  }));
179
183
  default:
@@ -6,6 +6,7 @@ import * as AgentMail from "../../../index";
6
6
  * @example
7
7
  * {
8
8
  * threads: [{
9
+ * inboxId: "yourinbox@agentmail.to",
9
10
  * threadId: "thread_123",
10
11
  * eventId: "event_123",
11
12
  * labels: ["RECEIVED", "UNREAD"],
@@ -16,6 +17,7 @@ import * as AgentMail from "../../../index";
16
17
  * subject: "Project Discussion",
17
18
  * preview: "Let's review the timeline for..."
18
19
  * }, {
20
+ * inboxId: "yourinbox@agentmail.to",
19
21
  * threadId: "thread_456",
20
22
  * eventId: "event_456",
21
23
  * labels: ["SENT"],
@@ -5,7 +5,6 @@ import * as AgentMail from "../../../index";
5
5
  /**
6
6
  * @example
7
7
  * {
8
- * organizationId: "org_123",
9
8
  * inboxId: "yourinbox@agentmail.to",
10
9
  * threadId: "thread_123",
11
10
  * eventId: "event_123",
@@ -25,12 +24,12 @@ import * as AgentMail from "../../../index";
25
24
  * from: "alice@example.com",
26
25
  * to: ["bob@example.com"],
27
26
  * text: "Let's review the timeline for the project.",
28
- * inboxId: "yourinbox@agentmail.to",
29
- * organizationId: "org_123"
27
+ * inboxId: "yourinbox@agentmail.to"
30
28
  * }]
31
29
  * }
32
30
  */
33
31
  export interface Thread {
32
+ inboxId: AgentMail.InboxId;
34
33
  threadId: AgentMail.ThreadId;
35
34
  eventId: AgentMail.ThreadEventId;
36
35
  labels: AgentMail.ThreadLabels;
@@ -43,6 +42,4 @@ export interface Thread {
43
42
  attachments?: AgentMail.ThreadAttachments;
44
43
  /** Messages in thread. Ordered by `sent_at` ascending. */
45
44
  messages: AgentMail.Message[];
46
- inboxId: AgentMail.InboxId;
47
- organizationId: AgentMail.OrganizationId;
48
45
  }
@@ -3,6 +3,7 @@
3
3
  */
4
4
  import * as AgentMail from "../../../index";
5
5
  export interface ThreadItem {
6
+ inboxId: AgentMail.InboxId;
6
7
  threadId: AgentMail.ThreadId;
7
8
  eventId: AgentMail.ThreadEventId;
8
9
  labels: AgentMail.ThreadLabels;
@@ -1,4 +1,3 @@
1
- export * from "./ThreadAttachment";
2
1
  export * from "./ThreadId";
3
2
  export * from "./ThreadEventId";
4
3
  export * from "./ThreadLabels";
@@ -8,6 +7,7 @@ export * from "./ThreadRecipients";
8
7
  export * from "./ThreadMessageCount";
9
8
  export * from "./ThreadSubject";
10
9
  export * from "./ThreadPreview";
10
+ export * from "./ThreadAttachment";
11
11
  export * from "./ThreadAttachments";
12
12
  export * from "./ThreadItem";
13
13
  export * from "./Thread";
@@ -14,7 +14,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./ThreadAttachment"), exports);
18
17
  __exportStar(require("./ThreadId"), exports);
19
18
  __exportStar(require("./ThreadEventId"), exports);
20
19
  __exportStar(require("./ThreadLabels"), exports);
@@ -24,6 +23,7 @@ __exportStar(require("./ThreadRecipients"), exports);
24
23
  __exportStar(require("./ThreadMessageCount"), exports);
25
24
  __exportStar(require("./ThreadSubject"), exports);
26
25
  __exportStar(require("./ThreadPreview"), exports);
26
+ __exportStar(require("./ThreadAttachment"), exports);
27
27
  __exportStar(require("./ThreadAttachments"), exports);
28
28
  __exportStar(require("./ThreadItem"), exports);
29
29
  __exportStar(require("./Thread"), exports);
@@ -80,7 +80,7 @@ class Webhooks {
80
80
  const _response = yield core.fetcher({
81
81
  url: (0, url_join_1.default)((_b = (_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.AgentMailEnvironment.Production, "/v0/webhooks"),
82
82
  method: "GET",
83
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "agentmail", "X-Fern-SDK-Version": "0.0.24", "User-Agent": "agentmail/0.0.24", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
83
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "agentmail", "X-Fern-SDK-Version": "0.0.25", "User-Agent": "agentmail/0.0.25", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
84
84
  contentType: "application/json",
85
85
  queryParameters: _queryParams,
86
86
  requestType: "json",
@@ -93,6 +93,7 @@ class Webhooks {
93
93
  unrecognizedObjectKeys: "passthrough",
94
94
  allowUnrecognizedUnionMembers: true,
95
95
  allowUnrecognizedEnumValues: true,
96
+ skipValidation: true,
96
97
  breadcrumbsPrefix: ["response"],
97
98
  });
98
99
  }
@@ -132,7 +133,7 @@ class Webhooks {
132
133
  const _response = yield core.fetcher({
133
134
  url: (0, url_join_1.default)((_b = (_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.AgentMailEnvironment.Production, `/v0/webhooks/${encodeURIComponent(serializers.WebhookId.jsonOrThrow(webhookId))}`),
134
135
  method: "GET",
135
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "agentmail", "X-Fern-SDK-Version": "0.0.24", "User-Agent": "agentmail/0.0.24", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
136
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "agentmail", "X-Fern-SDK-Version": "0.0.25", "User-Agent": "agentmail/0.0.25", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
136
137
  contentType: "application/json",
137
138
  requestType: "json",
138
139
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -144,6 +145,7 @@ class Webhooks {
144
145
  unrecognizedObjectKeys: "passthrough",
145
146
  allowUnrecognizedUnionMembers: true,
146
147
  allowUnrecognizedEnumValues: true,
148
+ skipValidation: true,
147
149
  breadcrumbsPrefix: ["response"],
148
150
  });
149
151
  }
@@ -154,6 +156,7 @@ class Webhooks {
154
156
  unrecognizedObjectKeys: "passthrough",
155
157
  allowUnrecognizedUnionMembers: true,
156
158
  allowUnrecognizedEnumValues: true,
159
+ skipValidation: true,
157
160
  breadcrumbsPrefix: ["response"],
158
161
  }));
159
162
  default:
@@ -197,7 +200,7 @@ class Webhooks {
197
200
  const _response = yield core.fetcher({
198
201
  url: (0, url_join_1.default)((_b = (_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.AgentMailEnvironment.Production, "/v0/webhooks"),
199
202
  method: "POST",
200
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "agentmail", "X-Fern-SDK-Version": "0.0.24", "User-Agent": "agentmail/0.0.24", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
203
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "agentmail", "X-Fern-SDK-Version": "0.0.25", "User-Agent": "agentmail/0.0.25", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
201
204
  contentType: "application/json",
202
205
  requestType: "json",
203
206
  body: serializers.CreateWebhookRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -210,6 +213,7 @@ class Webhooks {
210
213
  unrecognizedObjectKeys: "passthrough",
211
214
  allowUnrecognizedUnionMembers: true,
212
215
  allowUnrecognizedEnumValues: true,
216
+ skipValidation: true,
213
217
  breadcrumbsPrefix: ["response"],
214
218
  });
215
219
  }
@@ -220,6 +224,7 @@ class Webhooks {
220
224
  unrecognizedObjectKeys: "passthrough",
221
225
  allowUnrecognizedUnionMembers: true,
222
226
  allowUnrecognizedEnumValues: true,
227
+ skipValidation: true,
223
228
  breadcrumbsPrefix: ["response"],
224
229
  }));
225
230
  default:
@@ -259,7 +264,7 @@ class Webhooks {
259
264
  const _response = yield core.fetcher({
260
265
  url: (0, url_join_1.default)((_b = (_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.AgentMailEnvironment.Production, `/v0/webhooks/${encodeURIComponent(serializers.WebhookId.jsonOrThrow(webhookId))}`),
261
266
  method: "DELETE",
262
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "agentmail", "X-Fern-SDK-Version": "0.0.24", "User-Agent": "agentmail/0.0.24", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
267
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "agentmail", "X-Fern-SDK-Version": "0.0.25", "User-Agent": "agentmail/0.0.25", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
263
268
  contentType: "application/json",
264
269
  requestType: "json",
265
270
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -276,6 +281,7 @@ class Webhooks {
276
281
  unrecognizedObjectKeys: "passthrough",
277
282
  allowUnrecognizedUnionMembers: true,
278
283
  allowUnrecognizedEnumValues: true,
284
+ skipValidation: true,
279
285
  breadcrumbsPrefix: ["response"],
280
286
  }));
281
287
  default:
@@ -83,7 +83,7 @@ class Inboxes {
83
83
  const _response = yield core.fetcher({
84
84
  url: (0, url_join_1.default)((_b = (_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.AgentMailEnvironment.Production, "/v0/inboxes"),
85
85
  method: "GET",
86
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "agentmail", "X-Fern-SDK-Version": "0.0.24", "User-Agent": "agentmail/0.0.24", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
86
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "agentmail", "X-Fern-SDK-Version": "0.0.25", "User-Agent": "agentmail/0.0.25", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
87
87
  contentType: "application/json",
88
88
  queryParameters: _queryParams,
89
89
  requestType: "json",
@@ -96,6 +96,7 @@ class Inboxes {
96
96
  unrecognizedObjectKeys: "passthrough",
97
97
  allowUnrecognizedUnionMembers: true,
98
98
  allowUnrecognizedEnumValues: true,
99
+ skipValidation: true,
99
100
  breadcrumbsPrefix: ["response"],
100
101
  });
101
102
  }
@@ -135,7 +136,7 @@ class Inboxes {
135
136
  const _response = yield core.fetcher({
136
137
  url: (0, url_join_1.default)((_b = (_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.AgentMailEnvironment.Production, `/v0/inboxes/${encodeURIComponent(serializers.InboxId.jsonOrThrow(inboxId))}`),
137
138
  method: "GET",
138
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "agentmail", "X-Fern-SDK-Version": "0.0.24", "User-Agent": "agentmail/0.0.24", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
139
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "agentmail", "X-Fern-SDK-Version": "0.0.25", "User-Agent": "agentmail/0.0.25", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
139
140
  contentType: "application/json",
140
141
  requestType: "json",
141
142
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -147,6 +148,7 @@ class Inboxes {
147
148
  unrecognizedObjectKeys: "passthrough",
148
149
  allowUnrecognizedUnionMembers: true,
149
150
  allowUnrecognizedEnumValues: true,
151
+ skipValidation: true,
150
152
  breadcrumbsPrefix: ["response"],
151
153
  });
152
154
  }
@@ -157,6 +159,7 @@ class Inboxes {
157
159
  unrecognizedObjectKeys: "passthrough",
158
160
  allowUnrecognizedUnionMembers: true,
159
161
  allowUnrecognizedEnumValues: true,
162
+ skipValidation: true,
160
163
  breadcrumbsPrefix: ["response"],
161
164
  }));
162
165
  default:
@@ -204,7 +207,7 @@ class Inboxes {
204
207
  const _response = yield core.fetcher({
205
208
  url: (0, url_join_1.default)((_b = (_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.AgentMailEnvironment.Production, "/v0/inboxes"),
206
209
  method: "POST",
207
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "agentmail", "X-Fern-SDK-Version": "0.0.24", "User-Agent": "agentmail/0.0.24", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
210
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "agentmail", "X-Fern-SDK-Version": "0.0.25", "User-Agent": "agentmail/0.0.25", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
208
211
  contentType: "application/json",
209
212
  requestType: "json",
210
213
  body: serializers.CreateInboxRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -217,6 +220,7 @@ class Inboxes {
217
220
  unrecognizedObjectKeys: "passthrough",
218
221
  allowUnrecognizedUnionMembers: true,
219
222
  allowUnrecognizedEnumValues: true,
223
+ skipValidation: true,
220
224
  breadcrumbsPrefix: ["response"],
221
225
  });
222
226
  }
@@ -227,6 +231,7 @@ class Inboxes {
227
231
  unrecognizedObjectKeys: "passthrough",
228
232
  allowUnrecognizedUnionMembers: true,
229
233
  allowUnrecognizedEnumValues: true,
234
+ skipValidation: true,
230
235
  breadcrumbsPrefix: ["response"],
231
236
  }));
232
237
  default: