agentmail 0.0.42 → 0.0.43

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 (130) hide show
  1. package/Client.d.ts +0 -3
  2. package/Client.js +8 -13
  3. package/api/resources/domains/client/Client.js +4 -4
  4. package/api/resources/drafts/client/Client.js +2 -2
  5. package/api/resources/inboxes/client/Client.js +3 -3
  6. package/api/resources/inboxes/resources/drafts/client/Client.js +4 -4
  7. package/api/resources/inboxes/resources/messages/client/Client.js +6 -6
  8. package/api/resources/inboxes/resources/threads/client/Client.js +3 -3
  9. package/api/resources/index.d.ts +0 -3
  10. package/api/resources/index.js +1 -4
  11. package/api/resources/threads/client/Client.js +3 -3
  12. package/api/resources/webhooks/client/Client.js +4 -4
  13. package/dist/Client.d.ts +0 -3
  14. package/dist/Client.js +8 -13
  15. package/dist/api/resources/domains/client/Client.js +4 -4
  16. package/dist/api/resources/drafts/client/Client.js +2 -2
  17. package/dist/api/resources/inboxes/client/Client.js +3 -3
  18. package/dist/api/resources/inboxes/resources/drafts/client/Client.js +4 -4
  19. package/dist/api/resources/inboxes/resources/messages/client/Client.js +6 -6
  20. package/dist/api/resources/inboxes/resources/threads/client/Client.js +3 -3
  21. package/dist/api/resources/index.d.ts +0 -3
  22. package/dist/api/resources/index.js +1 -4
  23. package/dist/api/resources/threads/client/Client.js +3 -3
  24. package/dist/api/resources/webhooks/client/Client.js +4 -4
  25. package/dist/serialization/resources/index.d.ts +0 -2
  26. package/dist/serialization/resources/index.js +1 -3
  27. package/dist/version.d.ts +1 -1
  28. package/dist/version.js +1 -1
  29. package/package.json +1 -1
  30. package/reference.md +0 -203
  31. package/serialization/resources/index.d.ts +0 -2
  32. package/serialization/resources/index.js +1 -3
  33. package/version.d.ts +1 -1
  34. package/version.js +1 -1
  35. package/api/resources/contexts/client/Client.d.ts +0 -76
  36. package/api/resources/contexts/client/Client.js +0 -327
  37. package/api/resources/contexts/client/index.d.ts +0 -1
  38. package/api/resources/contexts/client/index.js +0 -17
  39. package/api/resources/contexts/client/requests/ListContextsRequest.d.ts +0 -12
  40. package/api/resources/contexts/client/requests/ListContextsRequest.js +0 -5
  41. package/api/resources/contexts/client/requests/index.d.ts +0 -1
  42. package/api/resources/contexts/client/requests/index.js +0 -2
  43. package/api/resources/contexts/index.d.ts +0 -2
  44. package/api/resources/contexts/index.js +0 -18
  45. package/api/resources/contexts/types/Context.d.ts +0 -15
  46. package/api/resources/contexts/types/Context.js +0 -5
  47. package/api/resources/contexts/types/ContextData.d.ts +0 -7
  48. package/api/resources/contexts/types/ContextData.js +0 -5
  49. package/api/resources/contexts/types/ContextId.d.ts +0 -7
  50. package/api/resources/contexts/types/ContextId.js +0 -5
  51. package/api/resources/contexts/types/ContextIsEvent.d.ts +0 -7
  52. package/api/resources/contexts/types/ContextIsEvent.js +0 -5
  53. package/api/resources/contexts/types/ContextMetadata.d.ts +0 -7
  54. package/api/resources/contexts/types/ContextMetadata.js +0 -5
  55. package/api/resources/contexts/types/ContextType.d.ts +0 -7
  56. package/api/resources/contexts/types/ContextType.js +0 -5
  57. package/api/resources/contexts/types/CreateContextRequest.d.ts +0 -10
  58. package/api/resources/contexts/types/CreateContextRequest.js +0 -5
  59. package/api/resources/contexts/types/ListContextsResponse.d.ts +0 -11
  60. package/api/resources/contexts/types/ListContextsResponse.js +0 -5
  61. package/api/resources/contexts/types/index.d.ts +0 -8
  62. package/api/resources/contexts/types/index.js +0 -24
  63. package/dist/api/resources/contexts/client/Client.d.ts +0 -76
  64. package/dist/api/resources/contexts/client/Client.js +0 -327
  65. package/dist/api/resources/contexts/client/index.d.ts +0 -1
  66. package/dist/api/resources/contexts/client/index.js +0 -17
  67. package/dist/api/resources/contexts/client/requests/ListContextsRequest.d.ts +0 -12
  68. package/dist/api/resources/contexts/client/requests/ListContextsRequest.js +0 -5
  69. package/dist/api/resources/contexts/client/requests/index.d.ts +0 -1
  70. package/dist/api/resources/contexts/client/requests/index.js +0 -2
  71. package/dist/api/resources/contexts/index.d.ts +0 -2
  72. package/dist/api/resources/contexts/index.js +0 -18
  73. package/dist/api/resources/contexts/types/Context.d.ts +0 -15
  74. package/dist/api/resources/contexts/types/Context.js +0 -5
  75. package/dist/api/resources/contexts/types/ContextData.d.ts +0 -7
  76. package/dist/api/resources/contexts/types/ContextData.js +0 -5
  77. package/dist/api/resources/contexts/types/ContextId.d.ts +0 -7
  78. package/dist/api/resources/contexts/types/ContextId.js +0 -5
  79. package/dist/api/resources/contexts/types/ContextIsEvent.d.ts +0 -7
  80. package/dist/api/resources/contexts/types/ContextIsEvent.js +0 -5
  81. package/dist/api/resources/contexts/types/ContextMetadata.d.ts +0 -7
  82. package/dist/api/resources/contexts/types/ContextMetadata.js +0 -5
  83. package/dist/api/resources/contexts/types/ContextType.d.ts +0 -7
  84. package/dist/api/resources/contexts/types/ContextType.js +0 -5
  85. package/dist/api/resources/contexts/types/CreateContextRequest.d.ts +0 -10
  86. package/dist/api/resources/contexts/types/CreateContextRequest.js +0 -5
  87. package/dist/api/resources/contexts/types/ListContextsResponse.d.ts +0 -11
  88. package/dist/api/resources/contexts/types/ListContextsResponse.js +0 -5
  89. package/dist/api/resources/contexts/types/index.d.ts +0 -8
  90. package/dist/api/resources/contexts/types/index.js +0 -24
  91. package/dist/serialization/resources/contexts/index.d.ts +0 -1
  92. package/dist/serialization/resources/contexts/index.js +0 -17
  93. package/dist/serialization/resources/contexts/types/Context.d.ts +0 -23
  94. package/dist/serialization/resources/contexts/types/Context.js +0 -54
  95. package/dist/serialization/resources/contexts/types/ContextData.d.ts +0 -10
  96. package/dist/serialization/resources/contexts/types/ContextData.js +0 -41
  97. package/dist/serialization/resources/contexts/types/ContextId.d.ts +0 -10
  98. package/dist/serialization/resources/contexts/types/ContextId.js +0 -41
  99. package/dist/serialization/resources/contexts/types/ContextIsEvent.d.ts +0 -10
  100. package/dist/serialization/resources/contexts/types/ContextIsEvent.js +0 -41
  101. package/dist/serialization/resources/contexts/types/ContextMetadata.d.ts +0 -10
  102. package/dist/serialization/resources/contexts/types/ContextMetadata.js +0 -41
  103. package/dist/serialization/resources/contexts/types/ContextType.d.ts +0 -10
  104. package/dist/serialization/resources/contexts/types/ContextType.js +0 -41
  105. package/dist/serialization/resources/contexts/types/CreateContextRequest.d.ts +0 -19
  106. package/dist/serialization/resources/contexts/types/CreateContextRequest.js +0 -50
  107. package/dist/serialization/resources/contexts/types/ListContextsResponse.d.ts +0 -19
  108. package/dist/serialization/resources/contexts/types/ListContextsResponse.js +0 -50
  109. package/dist/serialization/resources/contexts/types/index.d.ts +0 -8
  110. package/dist/serialization/resources/contexts/types/index.js +0 -24
  111. package/serialization/resources/contexts/index.d.ts +0 -1
  112. package/serialization/resources/contexts/index.js +0 -17
  113. package/serialization/resources/contexts/types/Context.d.ts +0 -23
  114. package/serialization/resources/contexts/types/Context.js +0 -54
  115. package/serialization/resources/contexts/types/ContextData.d.ts +0 -10
  116. package/serialization/resources/contexts/types/ContextData.js +0 -41
  117. package/serialization/resources/contexts/types/ContextId.d.ts +0 -10
  118. package/serialization/resources/contexts/types/ContextId.js +0 -41
  119. package/serialization/resources/contexts/types/ContextIsEvent.d.ts +0 -10
  120. package/serialization/resources/contexts/types/ContextIsEvent.js +0 -41
  121. package/serialization/resources/contexts/types/ContextMetadata.d.ts +0 -10
  122. package/serialization/resources/contexts/types/ContextMetadata.js +0 -41
  123. package/serialization/resources/contexts/types/ContextType.d.ts +0 -10
  124. package/serialization/resources/contexts/types/ContextType.js +0 -41
  125. package/serialization/resources/contexts/types/CreateContextRequest.d.ts +0 -19
  126. package/serialization/resources/contexts/types/CreateContextRequest.js +0 -50
  127. package/serialization/resources/contexts/types/ListContextsResponse.d.ts +0 -19
  128. package/serialization/resources/contexts/types/ListContextsResponse.js +0 -50
  129. package/serialization/resources/contexts/types/index.d.ts +0 -8
  130. package/serialization/resources/contexts/types/index.js +0 -24
package/Client.d.ts CHANGED
@@ -4,7 +4,6 @@
4
4
  import * as environments from "./environments";
5
5
  import * as core from "./core";
6
6
  import { Inboxes } from "./api/resources/inboxes/client/Client";
7
- import { Contexts } from "./api/resources/contexts/client/Client";
8
7
  import { Domains } from "./api/resources/domains/client/Client";
9
8
  import { Drafts } from "./api/resources/drafts/client/Client";
10
9
  import { Threads } from "./api/resources/threads/client/Client";
@@ -30,14 +29,12 @@ export declare namespace AgentMailClient {
30
29
  export declare class AgentMailClient {
31
30
  protected readonly _options: AgentMailClient.Options;
32
31
  protected _inboxes: Inboxes | undefined;
33
- protected _contexts: Contexts | undefined;
34
32
  protected _domains: Domains | undefined;
35
33
  protected _drafts: Drafts | undefined;
36
34
  protected _threads: Threads | undefined;
37
35
  protected _webhooks: Webhooks | undefined;
38
36
  constructor(_options?: AgentMailClient.Options);
39
37
  get inboxes(): Inboxes;
40
- get contexts(): Contexts;
41
38
  get domains(): Domains;
42
39
  get drafts(): Drafts;
43
40
  get threads(): Threads;
package/Client.js CHANGED
@@ -5,11 +5,10 @@
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.AgentMailClient = void 0;
7
7
  const Client_1 = require("./api/resources/inboxes/client/Client");
8
- const Client_2 = require("./api/resources/contexts/client/Client");
9
- const Client_3 = require("./api/resources/domains/client/Client");
10
- const Client_4 = require("./api/resources/drafts/client/Client");
11
- const Client_5 = require("./api/resources/threads/client/Client");
12
- const Client_6 = require("./api/resources/webhooks/client/Client");
8
+ const Client_2 = require("./api/resources/domains/client/Client");
9
+ const Client_3 = require("./api/resources/drafts/client/Client");
10
+ const Client_4 = require("./api/resources/threads/client/Client");
11
+ const Client_5 = require("./api/resources/webhooks/client/Client");
13
12
  class AgentMailClient {
14
13
  constructor(_options = {}) {
15
14
  this._options = _options;
@@ -18,25 +17,21 @@ class AgentMailClient {
18
17
  var _a;
19
18
  return ((_a = this._inboxes) !== null && _a !== void 0 ? _a : (this._inboxes = new Client_1.Inboxes(this._options)));
20
19
  }
21
- get contexts() {
22
- var _a;
23
- return ((_a = this._contexts) !== null && _a !== void 0 ? _a : (this._contexts = new Client_2.Contexts(this._options)));
24
- }
25
20
  get domains() {
26
21
  var _a;
27
- return ((_a = this._domains) !== null && _a !== void 0 ? _a : (this._domains = new Client_3.Domains(this._options)));
22
+ return ((_a = this._domains) !== null && _a !== void 0 ? _a : (this._domains = new Client_2.Domains(this._options)));
28
23
  }
29
24
  get drafts() {
30
25
  var _a;
31
- return ((_a = this._drafts) !== null && _a !== void 0 ? _a : (this._drafts = new Client_4.Drafts(this._options)));
26
+ return ((_a = this._drafts) !== null && _a !== void 0 ? _a : (this._drafts = new Client_3.Drafts(this._options)));
32
27
  }
33
28
  get threads() {
34
29
  var _a;
35
- return ((_a = this._threads) !== null && _a !== void 0 ? _a : (this._threads = new Client_5.Threads(this._options)));
30
+ return ((_a = this._threads) !== null && _a !== void 0 ? _a : (this._threads = new Client_4.Threads(this._options)));
36
31
  }
37
32
  get webhooks() {
38
33
  var _a;
39
- return ((_a = this._webhooks) !== null && _a !== void 0 ? _a : (this._webhooks = new Client_6.Webhooks(this._options)));
34
+ return ((_a = this._webhooks) !== null && _a !== void 0 ? _a : (this._webhooks = new Client_5.Webhooks(this._options)));
40
35
  }
41
36
  }
42
37
  exports.AgentMailClient = AgentMailClient;
@@ -80,7 +80,7 @@ class Domains {
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/domains"),
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.42", "User-Agent": "agentmail/0.0.42", "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.43", "User-Agent": "agentmail/0.0.43", "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",
@@ -133,7 +133,7 @@ class Domains {
133
133
  const _response = yield core.fetcher({
134
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/domains/${encodeURIComponent(serializers.DomainId.jsonOrThrow(domain))}`),
135
135
  method: "GET",
136
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "agentmail", "X-Fern-SDK-Version": "0.0.42", "User-Agent": "agentmail/0.0.42", "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.43", "User-Agent": "agentmail/0.0.43", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
137
137
  contentType: "application/json",
138
138
  requestType: "json",
139
139
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -198,7 +198,7 @@ class Domains {
198
198
  const _response = yield core.fetcher({
199
199
  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/domains"),
200
200
  method: "POST",
201
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "agentmail", "X-Fern-SDK-Version": "0.0.42", "User-Agent": "agentmail/0.0.42", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
201
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "agentmail", "X-Fern-SDK-Version": "0.0.43", "User-Agent": "agentmail/0.0.43", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
202
202
  contentType: "application/json",
203
203
  requestType: "json",
204
204
  body: serializers.CreateDomainRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -262,7 +262,7 @@ class Domains {
262
262
  const _response = yield core.fetcher({
263
263
  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/domains/${encodeURIComponent(serializers.DomainId.jsonOrThrow(domain))}`),
264
264
  method: "DELETE",
265
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "agentmail", "X-Fern-SDK-Version": "0.0.42", "User-Agent": "agentmail/0.0.42", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
265
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "agentmail", "X-Fern-SDK-Version": "0.0.43", "User-Agent": "agentmail/0.0.43", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
266
266
  contentType: "application/json",
267
267
  requestType: "json",
268
268
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -89,7 +89,7 @@ class Drafts {
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/drafts"),
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.42", "User-Agent": "agentmail/0.0.42", "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.43", "User-Agent": "agentmail/0.0.43", "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",
@@ -153,7 +153,7 @@ class Drafts {
153
153
  const _response = yield core.fetcher({
154
154
  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/drafts/${encodeURIComponent(serializers.DraftId.jsonOrThrow(draftId))}`),
155
155
  method: "GET",
156
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "agentmail", "X-Fern-SDK-Version": "0.0.42", "User-Agent": "agentmail/0.0.42", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
156
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "agentmail", "X-Fern-SDK-Version": "0.0.43", "User-Agent": "agentmail/0.0.43", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
157
157
  contentType: "application/json",
158
158
  requestType: "json",
159
159
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -95,7 +95,7 @@ class Inboxes {
95
95
  const _response = yield core.fetcher({
96
96
  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"),
97
97
  method: "GET",
98
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "agentmail", "X-Fern-SDK-Version": "0.0.42", "User-Agent": "agentmail/0.0.42", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
98
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "agentmail", "X-Fern-SDK-Version": "0.0.43", "User-Agent": "agentmail/0.0.43", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
99
99
  contentType: "application/json",
100
100
  queryParameters: _queryParams,
101
101
  requestType: "json",
@@ -148,7 +148,7 @@ class Inboxes {
148
148
  const _response = yield core.fetcher({
149
149
  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.inboxes.InboxId.jsonOrThrow(inboxId))}`),
150
150
  method: "GET",
151
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "agentmail", "X-Fern-SDK-Version": "0.0.42", "User-Agent": "agentmail/0.0.42", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
151
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "agentmail", "X-Fern-SDK-Version": "0.0.43", "User-Agent": "agentmail/0.0.43", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
152
152
  contentType: "application/json",
153
153
  requestType: "json",
154
154
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -216,7 +216,7 @@ class Inboxes {
216
216
  const _response = yield core.fetcher({
217
217
  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"),
218
218
  method: "POST",
219
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "agentmail", "X-Fern-SDK-Version": "0.0.42", "User-Agent": "agentmail/0.0.42", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
219
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "agentmail", "X-Fern-SDK-Version": "0.0.43", "User-Agent": "agentmail/0.0.43", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
220
220
  contentType: "application/json",
221
221
  requestType: "json",
222
222
  body: serializers.inboxes.CreateInboxRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -90,7 +90,7 @@ class Drafts {
90
90
  const _response = yield core.fetcher({
91
91
  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.inboxes.InboxId.jsonOrThrow(inboxId))}/drafts`),
92
92
  method: "GET",
93
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "agentmail", "X-Fern-SDK-Version": "0.0.42", "User-Agent": "agentmail/0.0.42", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
93
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "agentmail", "X-Fern-SDK-Version": "0.0.43", "User-Agent": "agentmail/0.0.43", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
94
94
  contentType: "application/json",
95
95
  queryParameters: _queryParams,
96
96
  requestType: "json",
@@ -155,7 +155,7 @@ class Drafts {
155
155
  const _response = yield core.fetcher({
156
156
  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.inboxes.InboxId.jsonOrThrow(inboxId))}/drafts/${encodeURIComponent(serializers.DraftId.jsonOrThrow(draftId))}`),
157
157
  method: "GET",
158
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "agentmail", "X-Fern-SDK-Version": "0.0.42", "User-Agent": "agentmail/0.0.42", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
158
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "agentmail", "X-Fern-SDK-Version": "0.0.43", "User-Agent": "agentmail/0.0.43", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
159
159
  contentType: "application/json",
160
160
  requestType: "json",
161
161
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -228,7 +228,7 @@ class Drafts {
228
228
  const _response = yield core.fetcher({
229
229
  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.inboxes.InboxId.jsonOrThrow(inboxId))}/drafts`),
230
230
  method: "POST",
231
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "agentmail", "X-Fern-SDK-Version": "0.0.42", "User-Agent": "agentmail/0.0.42", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
231
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "agentmail", "X-Fern-SDK-Version": "0.0.43", "User-Agent": "agentmail/0.0.43", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
232
232
  contentType: "application/json",
233
233
  requestType: "json",
234
234
  body: serializers.CreateDraftRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -299,7 +299,7 @@ class Drafts {
299
299
  const _response = yield core.fetcher({
300
300
  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.inboxes.InboxId.jsonOrThrow(inboxId))}/drafts/${encodeURIComponent(serializers.DraftId.jsonOrThrow(draftId))}/send`),
301
301
  method: "POST",
302
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "agentmail", "X-Fern-SDK-Version": "0.0.42", "User-Agent": "agentmail/0.0.42", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
302
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "agentmail", "X-Fern-SDK-Version": "0.0.43", "User-Agent": "agentmail/0.0.43", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
303
303
  contentType: "application/json",
304
304
  requestType: "json",
305
305
  body: serializers.UpdateMessageRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -90,7 +90,7 @@ class Messages {
90
90
  const _response = yield core.fetcher({
91
91
  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.inboxes.InboxId.jsonOrThrow(inboxId))}/messages`),
92
92
  method: "GET",
93
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "agentmail", "X-Fern-SDK-Version": "0.0.42", "User-Agent": "agentmail/0.0.42", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
93
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "agentmail", "X-Fern-SDK-Version": "0.0.43", "User-Agent": "agentmail/0.0.43", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
94
94
  contentType: "application/json",
95
95
  queryParameters: _queryParams,
96
96
  requestType: "json",
@@ -155,7 +155,7 @@ class Messages {
155
155
  const _response = yield core.fetcher({
156
156
  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.inboxes.InboxId.jsonOrThrow(inboxId))}/messages/${encodeURIComponent(serializers.MessageId.jsonOrThrow(messageId))}`),
157
157
  method: "GET",
158
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "agentmail", "X-Fern-SDK-Version": "0.0.42", "User-Agent": "agentmail/0.0.42", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
158
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "agentmail", "X-Fern-SDK-Version": "0.0.43", "User-Agent": "agentmail/0.0.43", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
159
159
  contentType: "application/json",
160
160
  requestType: "json",
161
161
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -212,7 +212,7 @@ class Messages {
212
212
  const _response = yield core.fetcher({
213
213
  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.inboxes.InboxId.jsonOrThrow(inboxId))}/messages/${encodeURIComponent(serializers.MessageId.jsonOrThrow(messageId))}/attachments/${encodeURIComponent(serializers.AttachmentId.jsonOrThrow(attachmentId))}`),
214
214
  method: "GET",
215
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "agentmail", "X-Fern-SDK-Version": "0.0.42", "User-Agent": "agentmail/0.0.42", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
215
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "agentmail", "X-Fern-SDK-Version": "0.0.43", "User-Agent": "agentmail/0.0.43", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
216
216
  contentType: "application/json",
217
217
  requestType: "json",
218
218
  responseType: "streaming",
@@ -283,7 +283,7 @@ class Messages {
283
283
  const _response = yield core.fetcher({
284
284
  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.inboxes.InboxId.jsonOrThrow(inboxId))}/messages/send`),
285
285
  method: "POST",
286
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "agentmail", "X-Fern-SDK-Version": "0.0.42", "User-Agent": "agentmail/0.0.42", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
286
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "agentmail", "X-Fern-SDK-Version": "0.0.43", "User-Agent": "agentmail/0.0.43", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
287
287
  contentType: "application/json",
288
288
  requestType: "json",
289
289
  body: serializers.SendMessageRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -376,7 +376,7 @@ class Messages {
376
376
  const _response = yield core.fetcher({
377
377
  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.inboxes.InboxId.jsonOrThrow(inboxId))}/messages/${encodeURIComponent(serializers.MessageId.jsonOrThrow(messageId))}/reply`),
378
378
  method: "POST",
379
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "agentmail", "X-Fern-SDK-Version": "0.0.42", "User-Agent": "agentmail/0.0.42", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
379
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "agentmail", "X-Fern-SDK-Version": "0.0.43", "User-Agent": "agentmail/0.0.43", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
380
380
  contentType: "application/json",
381
381
  requestType: "json",
382
382
  body: serializers.ReplyToMessageRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -462,7 +462,7 @@ class Messages {
462
462
  const _response = yield core.fetcher({
463
463
  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.inboxes.InboxId.jsonOrThrow(inboxId))}/messages/${encodeURIComponent(serializers.MessageId.jsonOrThrow(messageId))}`),
464
464
  method: "PATCH",
465
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "agentmail", "X-Fern-SDK-Version": "0.0.42", "User-Agent": "agentmail/0.0.42", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
465
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "agentmail", "X-Fern-SDK-Version": "0.0.43", "User-Agent": "agentmail/0.0.43", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
466
466
  contentType: "application/json",
467
467
  requestType: "json",
468
468
  body: serializers.UpdateMessageRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -90,7 +90,7 @@ class Threads {
90
90
  const _response = yield core.fetcher({
91
91
  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.inboxes.InboxId.jsonOrThrow(inboxId))}/threads`),
92
92
  method: "GET",
93
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "agentmail", "X-Fern-SDK-Version": "0.0.42", "User-Agent": "agentmail/0.0.42", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
93
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "agentmail", "X-Fern-SDK-Version": "0.0.43", "User-Agent": "agentmail/0.0.43", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
94
94
  contentType: "application/json",
95
95
  queryParameters: _queryParams,
96
96
  requestType: "json",
@@ -155,7 +155,7 @@ class Threads {
155
155
  const _response = yield core.fetcher({
156
156
  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.inboxes.InboxId.jsonOrThrow(inboxId))}/threads/${encodeURIComponent(serializers.ThreadId.jsonOrThrow(threadId))}`),
157
157
  method: "GET",
158
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "agentmail", "X-Fern-SDK-Version": "0.0.42", "User-Agent": "agentmail/0.0.42", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
158
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "agentmail", "X-Fern-SDK-Version": "0.0.43", "User-Agent": "agentmail/0.0.43", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
159
159
  contentType: "application/json",
160
160
  requestType: "json",
161
161
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -212,7 +212,7 @@ class Threads {
212
212
  const _response = yield core.fetcher({
213
213
  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.inboxes.InboxId.jsonOrThrow(inboxId))}/threads/${encodeURIComponent(serializers.ThreadId.jsonOrThrow(threadId))}/attachments/${encodeURIComponent(serializers.AttachmentId.jsonOrThrow(attachmentId))}`),
214
214
  method: "GET",
215
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "agentmail", "X-Fern-SDK-Version": "0.0.42", "User-Agent": "agentmail/0.0.42", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
215
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "agentmail", "X-Fern-SDK-Version": "0.0.43", "User-Agent": "agentmail/0.0.43", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
216
216
  contentType: "application/json",
217
217
  requestType: "json",
218
218
  responseType: "streaming",
@@ -1,8 +1,6 @@
1
1
  export * as inboxes from "./inboxes";
2
2
  export * as attachments from "./attachments";
3
3
  export * from "./attachments/types";
4
- export * as contexts from "./contexts";
5
- export * from "./contexts/types";
6
4
  export * as domains from "./domains";
7
5
  export * from "./domains/types";
8
6
  export * as drafts from "./drafts";
@@ -14,7 +12,6 @@ export * from "./threads/types";
14
12
  export * as webhooks from "./webhooks";
15
13
  export * from "./webhooks/types";
16
14
  export * from "./messages/errors";
17
- export * from "./contexts/client/requests";
18
15
  export * from "./domains/client/requests";
19
16
  export * from "./drafts/client/requests";
20
17
  export * from "./threads/client/requests";
@@ -36,12 +36,10 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
36
36
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
37
37
  };
38
38
  Object.defineProperty(exports, "__esModule", { value: true });
39
- exports.webhooks = exports.threads = exports.messages = exports.drafts = exports.domains = exports.contexts = exports.attachments = exports.inboxes = void 0;
39
+ exports.webhooks = exports.threads = exports.messages = exports.drafts = exports.domains = exports.attachments = exports.inboxes = void 0;
40
40
  exports.inboxes = __importStar(require("./inboxes"));
41
41
  exports.attachments = __importStar(require("./attachments"));
42
42
  __exportStar(require("./attachments/types"), exports);
43
- exports.contexts = __importStar(require("./contexts"));
44
- __exportStar(require("./contexts/types"), exports);
45
43
  exports.domains = __importStar(require("./domains"));
46
44
  __exportStar(require("./domains/types"), exports);
47
45
  exports.drafts = __importStar(require("./drafts"));
@@ -53,7 +51,6 @@ __exportStar(require("./threads/types"), exports);
53
51
  exports.webhooks = __importStar(require("./webhooks"));
54
52
  __exportStar(require("./webhooks/types"), exports);
55
53
  __exportStar(require("./messages/errors"), exports);
56
- __exportStar(require("./contexts/client/requests"), exports);
57
54
  __exportStar(require("./domains/client/requests"), exports);
58
55
  __exportStar(require("./drafts/client/requests"), exports);
59
56
  __exportStar(require("./threads/client/requests"), exports);
@@ -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/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.42", "User-Agent": "agentmail/0.0.42", "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.43", "User-Agent": "agentmail/0.0.43", "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",
@@ -153,7 +153,7 @@ class Threads {
153
153
  const _response = yield core.fetcher({
154
154
  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/threads/${encodeURIComponent(serializers.ThreadId.jsonOrThrow(threadId))}`),
155
155
  method: "GET",
156
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "agentmail", "X-Fern-SDK-Version": "0.0.42", "User-Agent": "agentmail/0.0.42", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
156
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "agentmail", "X-Fern-SDK-Version": "0.0.43", "User-Agent": "agentmail/0.0.43", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
157
157
  contentType: "application/json",
158
158
  requestType: "json",
159
159
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -210,7 +210,7 @@ class Threads {
210
210
  const _response = yield core.fetcher({
211
211
  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/threads/${encodeURIComponent(serializers.ThreadId.jsonOrThrow(threadId))}/attachments/${encodeURIComponent(serializers.AttachmentId.jsonOrThrow(attachmentId))}`),
212
212
  method: "GET",
213
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "agentmail", "X-Fern-SDK-Version": "0.0.42", "User-Agent": "agentmail/0.0.42", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
213
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "agentmail", "X-Fern-SDK-Version": "0.0.43", "User-Agent": "agentmail/0.0.43", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
214
214
  contentType: "application/json",
215
215
  requestType: "json",
216
216
  responseType: "streaming",
@@ -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.42", "User-Agent": "agentmail/0.0.42", "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.43", "User-Agent": "agentmail/0.0.43", "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",
@@ -133,7 +133,7 @@ class Webhooks {
133
133
  const _response = yield core.fetcher({
134
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))}`),
135
135
  method: "GET",
136
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "agentmail", "X-Fern-SDK-Version": "0.0.42", "User-Agent": "agentmail/0.0.42", "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.43", "User-Agent": "agentmail/0.0.43", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
137
137
  contentType: "application/json",
138
138
  requestType: "json",
139
139
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -201,7 +201,7 @@ class Webhooks {
201
201
  const _response = yield core.fetcher({
202
202
  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"),
203
203
  method: "POST",
204
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "agentmail", "X-Fern-SDK-Version": "0.0.42", "User-Agent": "agentmail/0.0.42", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
204
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "agentmail", "X-Fern-SDK-Version": "0.0.43", "User-Agent": "agentmail/0.0.43", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
205
205
  contentType: "application/json",
206
206
  requestType: "json",
207
207
  body: serializers.CreateWebhookRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -265,7 +265,7 @@ class Webhooks {
265
265
  const _response = yield core.fetcher({
266
266
  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))}`),
267
267
  method: "DELETE",
268
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "agentmail", "X-Fern-SDK-Version": "0.0.42", "User-Agent": "agentmail/0.0.42", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
268
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "agentmail", "X-Fern-SDK-Version": "0.0.43", "User-Agent": "agentmail/0.0.43", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
269
269
  contentType: "application/json",
270
270
  requestType: "json",
271
271
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
package/dist/Client.d.ts CHANGED
@@ -4,7 +4,6 @@
4
4
  import * as environments from "./environments";
5
5
  import * as core from "./core";
6
6
  import { Inboxes } from "./api/resources/inboxes/client/Client";
7
- import { Contexts } from "./api/resources/contexts/client/Client";
8
7
  import { Domains } from "./api/resources/domains/client/Client";
9
8
  import { Drafts } from "./api/resources/drafts/client/Client";
10
9
  import { Threads } from "./api/resources/threads/client/Client";
@@ -30,14 +29,12 @@ export declare namespace AgentMailClient {
30
29
  export declare class AgentMailClient {
31
30
  protected readonly _options: AgentMailClient.Options;
32
31
  protected _inboxes: Inboxes | undefined;
33
- protected _contexts: Contexts | undefined;
34
32
  protected _domains: Domains | undefined;
35
33
  protected _drafts: Drafts | undefined;
36
34
  protected _threads: Threads | undefined;
37
35
  protected _webhooks: Webhooks | undefined;
38
36
  constructor(_options?: AgentMailClient.Options);
39
37
  get inboxes(): Inboxes;
40
- get contexts(): Contexts;
41
38
  get domains(): Domains;
42
39
  get drafts(): Drafts;
43
40
  get threads(): Threads;
package/dist/Client.js CHANGED
@@ -5,11 +5,10 @@
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.AgentMailClient = void 0;
7
7
  const Client_1 = require("./api/resources/inboxes/client/Client");
8
- const Client_2 = require("./api/resources/contexts/client/Client");
9
- const Client_3 = require("./api/resources/domains/client/Client");
10
- const Client_4 = require("./api/resources/drafts/client/Client");
11
- const Client_5 = require("./api/resources/threads/client/Client");
12
- const Client_6 = require("./api/resources/webhooks/client/Client");
8
+ const Client_2 = require("./api/resources/domains/client/Client");
9
+ const Client_3 = require("./api/resources/drafts/client/Client");
10
+ const Client_4 = require("./api/resources/threads/client/Client");
11
+ const Client_5 = require("./api/resources/webhooks/client/Client");
13
12
  class AgentMailClient {
14
13
  constructor(_options = {}) {
15
14
  this._options = _options;
@@ -18,25 +17,21 @@ class AgentMailClient {
18
17
  var _a;
19
18
  return ((_a = this._inboxes) !== null && _a !== void 0 ? _a : (this._inboxes = new Client_1.Inboxes(this._options)));
20
19
  }
21
- get contexts() {
22
- var _a;
23
- return ((_a = this._contexts) !== null && _a !== void 0 ? _a : (this._contexts = new Client_2.Contexts(this._options)));
24
- }
25
20
  get domains() {
26
21
  var _a;
27
- return ((_a = this._domains) !== null && _a !== void 0 ? _a : (this._domains = new Client_3.Domains(this._options)));
22
+ return ((_a = this._domains) !== null && _a !== void 0 ? _a : (this._domains = new Client_2.Domains(this._options)));
28
23
  }
29
24
  get drafts() {
30
25
  var _a;
31
- return ((_a = this._drafts) !== null && _a !== void 0 ? _a : (this._drafts = new Client_4.Drafts(this._options)));
26
+ return ((_a = this._drafts) !== null && _a !== void 0 ? _a : (this._drafts = new Client_3.Drafts(this._options)));
32
27
  }
33
28
  get threads() {
34
29
  var _a;
35
- return ((_a = this._threads) !== null && _a !== void 0 ? _a : (this._threads = new Client_5.Threads(this._options)));
30
+ return ((_a = this._threads) !== null && _a !== void 0 ? _a : (this._threads = new Client_4.Threads(this._options)));
36
31
  }
37
32
  get webhooks() {
38
33
  var _a;
39
- return ((_a = this._webhooks) !== null && _a !== void 0 ? _a : (this._webhooks = new Client_6.Webhooks(this._options)));
34
+ return ((_a = this._webhooks) !== null && _a !== void 0 ? _a : (this._webhooks = new Client_5.Webhooks(this._options)));
40
35
  }
41
36
  }
42
37
  exports.AgentMailClient = AgentMailClient;
@@ -80,7 +80,7 @@ class Domains {
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/domains"),
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.42", "User-Agent": "agentmail/0.0.42", "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.43", "User-Agent": "agentmail/0.0.43", "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",
@@ -133,7 +133,7 @@ class Domains {
133
133
  const _response = yield core.fetcher({
134
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/domains/${encodeURIComponent(serializers.DomainId.jsonOrThrow(domain))}`),
135
135
  method: "GET",
136
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "agentmail", "X-Fern-SDK-Version": "0.0.42", "User-Agent": "agentmail/0.0.42", "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.43", "User-Agent": "agentmail/0.0.43", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
137
137
  contentType: "application/json",
138
138
  requestType: "json",
139
139
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -198,7 +198,7 @@ class Domains {
198
198
  const _response = yield core.fetcher({
199
199
  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/domains"),
200
200
  method: "POST",
201
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "agentmail", "X-Fern-SDK-Version": "0.0.42", "User-Agent": "agentmail/0.0.42", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
201
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "agentmail", "X-Fern-SDK-Version": "0.0.43", "User-Agent": "agentmail/0.0.43", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
202
202
  contentType: "application/json",
203
203
  requestType: "json",
204
204
  body: serializers.CreateDomainRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -262,7 +262,7 @@ class Domains {
262
262
  const _response = yield core.fetcher({
263
263
  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/domains/${encodeURIComponent(serializers.DomainId.jsonOrThrow(domain))}`),
264
264
  method: "DELETE",
265
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "agentmail", "X-Fern-SDK-Version": "0.0.42", "User-Agent": "agentmail/0.0.42", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
265
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "agentmail", "X-Fern-SDK-Version": "0.0.43", "User-Agent": "agentmail/0.0.43", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
266
266
  contentType: "application/json",
267
267
  requestType: "json",
268
268
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -89,7 +89,7 @@ class Drafts {
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/drafts"),
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.42", "User-Agent": "agentmail/0.0.42", "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.43", "User-Agent": "agentmail/0.0.43", "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",
@@ -153,7 +153,7 @@ class Drafts {
153
153
  const _response = yield core.fetcher({
154
154
  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/drafts/${encodeURIComponent(serializers.DraftId.jsonOrThrow(draftId))}`),
155
155
  method: "GET",
156
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "agentmail", "X-Fern-SDK-Version": "0.0.42", "User-Agent": "agentmail/0.0.42", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
156
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "agentmail", "X-Fern-SDK-Version": "0.0.43", "User-Agent": "agentmail/0.0.43", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
157
157
  contentType: "application/json",
158
158
  requestType: "json",
159
159
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,