@letta-ai/letta-client 0.1.188 → 0.1.190

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 (167) hide show
  1. package/api/resources/agents/client/Client.js +13 -14
  2. package/api/resources/agents/client/requests/BodyImportAgentSerialized.d.ts +2 -2
  3. package/api/resources/agents/resources/blocks/client/Client.js +5 -5
  4. package/api/resources/agents/resources/context/client/Client.js +1 -1
  5. package/api/resources/agents/resources/coreMemory/client/Client.js +1 -1
  6. package/api/resources/agents/resources/files/client/Client.js +4 -4
  7. package/api/resources/agents/resources/folders/client/Client.js +3 -3
  8. package/api/resources/agents/resources/groups/client/Client.js +1 -1
  9. package/api/resources/agents/resources/memoryVariables/client/Client.js +1 -1
  10. package/api/resources/agents/resources/messages/client/Client.js +8 -8
  11. package/api/resources/agents/resources/passages/client/Client.js +4 -4
  12. package/api/resources/agents/resources/sources/client/Client.js +3 -3
  13. package/api/resources/agents/resources/templates/client/Client.js +3 -3
  14. package/api/resources/agents/resources/tools/client/Client.js +3 -3
  15. package/api/resources/agents/types/AgentsSearchRequestSearchItemField.d.ts +1 -2
  16. package/api/resources/agents/types/index.d.ts +0 -1
  17. package/api/resources/agents/types/index.js +0 -1
  18. package/api/resources/batches/client/Client.js +4 -4
  19. package/api/resources/blocks/client/Client.js +6 -6
  20. package/api/resources/blocks/resources/agents/client/Client.js +1 -1
  21. package/api/resources/clientSideAccessTokens/client/Client.js +3 -3
  22. package/api/resources/embeddingModels/client/Client.js +1 -1
  23. package/api/resources/folders/client/Client.js +9 -9
  24. package/api/resources/folders/resources/files/client/Client.js +3 -3
  25. package/api/resources/folders/resources/passages/client/Client.js +1 -1
  26. package/api/resources/groups/client/Client.js +6 -6
  27. package/api/resources/groups/resources/messages/client/Client.js +5 -5
  28. package/api/resources/health/client/Client.js +1 -1
  29. package/api/resources/identities/client/Client.js +7 -7
  30. package/api/resources/identities/resources/properties/client/Client.js +1 -1
  31. package/api/resources/jobs/client/Client.js +5 -5
  32. package/api/resources/messages/client/Client.js +1 -1
  33. package/api/resources/models/client/Client.js +1 -1
  34. package/api/resources/projects/client/Client.js +1 -1
  35. package/api/resources/providers/client/Client.js +6 -6
  36. package/api/resources/runs/client/Client.js +18 -6
  37. package/api/resources/runs/client/requests/RunsListRequest.d.ts +16 -0
  38. package/api/resources/runs/resources/messages/client/Client.js +1 -1
  39. package/api/resources/runs/resources/steps/client/Client.js +1 -1
  40. package/api/resources/runs/resources/usage/client/Client.js +1 -1
  41. package/api/resources/sources/client/Client.js +10 -10
  42. package/api/resources/sources/resources/files/client/Client.js +3 -3
  43. package/api/resources/sources/resources/passages/client/Client.js +1 -1
  44. package/api/resources/steps/client/Client.js +3 -3
  45. package/api/resources/steps/resources/feedback/client/Client.js +1 -1
  46. package/api/resources/tags/client/Client.js +1 -1
  47. package/api/resources/telemetry/client/Client.js +1 -1
  48. package/api/resources/templates/client/Client.js +15 -10
  49. package/api/resources/templates/client/requests/TemplatesListRequest.d.ts +2 -0
  50. package/api/resources/templates/resources/agents/client/Client.js +1 -1
  51. package/api/resources/templates/types/TemplatesCreateTemplateResponse.d.ts +2 -0
  52. package/api/resources/templates/types/TemplatesForkTemplateResponse.d.ts +2 -0
  53. package/api/resources/templates/types/TemplatesListRequestSortBy.d.ts +8 -0
  54. package/api/resources/{agents/types/AgentsSearchRequestSearchItemFieldOperator.js → templates/types/TemplatesListRequestSortBy.js} +4 -4
  55. package/api/resources/templates/types/TemplatesListResponseTemplatesItem.d.ts +2 -0
  56. package/api/resources/templates/types/TemplatesSaveTemplateVersionResponse.d.ts +2 -0
  57. package/api/resources/templates/types/index.d.ts +1 -0
  58. package/api/resources/templates/types/index.js +1 -0
  59. package/api/resources/tools/client/Client.js +20 -20
  60. package/api/resources/voice/client/Client.js +1 -1
  61. package/api/types/BatchJob.d.ts +1 -1
  62. package/api/types/Job.d.ts +1 -1
  63. package/api/types/Run.d.ts +1 -1
  64. package/dist/api/resources/agents/client/Client.js +13 -14
  65. package/dist/api/resources/agents/client/requests/BodyImportAgentSerialized.d.ts +2 -2
  66. package/dist/api/resources/agents/resources/blocks/client/Client.js +5 -5
  67. package/dist/api/resources/agents/resources/context/client/Client.js +1 -1
  68. package/dist/api/resources/agents/resources/coreMemory/client/Client.js +1 -1
  69. package/dist/api/resources/agents/resources/files/client/Client.js +4 -4
  70. package/dist/api/resources/agents/resources/folders/client/Client.js +3 -3
  71. package/dist/api/resources/agents/resources/groups/client/Client.js +1 -1
  72. package/dist/api/resources/agents/resources/memoryVariables/client/Client.js +1 -1
  73. package/dist/api/resources/agents/resources/messages/client/Client.js +8 -8
  74. package/dist/api/resources/agents/resources/passages/client/Client.js +4 -4
  75. package/dist/api/resources/agents/resources/sources/client/Client.js +3 -3
  76. package/dist/api/resources/agents/resources/templates/client/Client.js +3 -3
  77. package/dist/api/resources/agents/resources/tools/client/Client.js +3 -3
  78. package/dist/api/resources/agents/types/AgentsSearchRequestSearchItemField.d.ts +1 -2
  79. package/dist/api/resources/agents/types/index.d.ts +0 -1
  80. package/dist/api/resources/agents/types/index.js +0 -1
  81. package/dist/api/resources/batches/client/Client.js +4 -4
  82. package/dist/api/resources/blocks/client/Client.js +6 -6
  83. package/dist/api/resources/blocks/resources/agents/client/Client.js +1 -1
  84. package/dist/api/resources/clientSideAccessTokens/client/Client.js +3 -3
  85. package/dist/api/resources/embeddingModels/client/Client.js +1 -1
  86. package/dist/api/resources/folders/client/Client.js +9 -9
  87. package/dist/api/resources/folders/resources/files/client/Client.js +3 -3
  88. package/dist/api/resources/folders/resources/passages/client/Client.js +1 -1
  89. package/dist/api/resources/groups/client/Client.js +6 -6
  90. package/dist/api/resources/groups/resources/messages/client/Client.js +5 -5
  91. package/dist/api/resources/health/client/Client.js +1 -1
  92. package/dist/api/resources/identities/client/Client.js +7 -7
  93. package/dist/api/resources/identities/resources/properties/client/Client.js +1 -1
  94. package/dist/api/resources/jobs/client/Client.js +5 -5
  95. package/dist/api/resources/messages/client/Client.js +1 -1
  96. package/dist/api/resources/models/client/Client.js +1 -1
  97. package/dist/api/resources/projects/client/Client.js +1 -1
  98. package/dist/api/resources/providers/client/Client.js +6 -6
  99. package/dist/api/resources/runs/client/Client.js +18 -6
  100. package/dist/api/resources/runs/client/requests/RunsListRequest.d.ts +16 -0
  101. package/dist/api/resources/runs/resources/messages/client/Client.js +1 -1
  102. package/dist/api/resources/runs/resources/steps/client/Client.js +1 -1
  103. package/dist/api/resources/runs/resources/usage/client/Client.js +1 -1
  104. package/dist/api/resources/sources/client/Client.js +10 -10
  105. package/dist/api/resources/sources/resources/files/client/Client.js +3 -3
  106. package/dist/api/resources/sources/resources/passages/client/Client.js +1 -1
  107. package/dist/api/resources/steps/client/Client.js +3 -3
  108. package/dist/api/resources/steps/resources/feedback/client/Client.js +1 -1
  109. package/dist/api/resources/tags/client/Client.js +1 -1
  110. package/dist/api/resources/telemetry/client/Client.js +1 -1
  111. package/dist/api/resources/templates/client/Client.js +15 -10
  112. package/dist/api/resources/templates/client/requests/TemplatesListRequest.d.ts +2 -0
  113. package/dist/api/resources/templates/resources/agents/client/Client.js +1 -1
  114. package/dist/api/resources/templates/types/TemplatesCreateTemplateResponse.d.ts +2 -0
  115. package/dist/api/resources/templates/types/TemplatesForkTemplateResponse.d.ts +2 -0
  116. package/dist/api/resources/templates/types/TemplatesListRequestSortBy.d.ts +8 -0
  117. package/dist/api/resources/{agents/types/AgentsSearchRequestSearchItemFieldOperator.js → templates/types/TemplatesListRequestSortBy.js} +4 -4
  118. package/dist/api/resources/templates/types/TemplatesListResponseTemplatesItem.d.ts +2 -0
  119. package/dist/api/resources/templates/types/TemplatesSaveTemplateVersionResponse.d.ts +2 -0
  120. package/dist/api/resources/templates/types/index.d.ts +1 -0
  121. package/dist/api/resources/templates/types/index.js +1 -0
  122. package/dist/api/resources/tools/client/Client.js +20 -20
  123. package/dist/api/resources/voice/client/Client.js +1 -1
  124. package/dist/api/types/BatchJob.d.ts +1 -1
  125. package/dist/api/types/Job.d.ts +1 -1
  126. package/dist/api/types/Run.d.ts +1 -1
  127. package/dist/serialization/resources/agents/types/AgentsSearchRequestSearchItemField.d.ts +1 -2
  128. package/dist/serialization/resources/agents/types/AgentsSearchRequestSearchItemField.js +1 -2
  129. package/dist/serialization/resources/agents/types/index.d.ts +0 -1
  130. package/dist/serialization/resources/agents/types/index.js +0 -1
  131. package/dist/serialization/resources/templates/types/TemplatesCreateTemplateResponse.d.ts +1 -0
  132. package/dist/serialization/resources/templates/types/TemplatesCreateTemplateResponse.js +1 -0
  133. package/dist/serialization/resources/templates/types/TemplatesForkTemplateResponse.d.ts +1 -0
  134. package/dist/serialization/resources/templates/types/TemplatesForkTemplateResponse.js +1 -0
  135. package/dist/serialization/resources/templates/types/TemplatesListRequestSortBy.d.ts +10 -0
  136. package/dist/serialization/resources/{agents/types/AgentsSearchRequestSearchItemFieldOperator.js → templates/types/TemplatesListRequestSortBy.js} +2 -2
  137. package/dist/serialization/resources/templates/types/TemplatesListResponseTemplatesItem.d.ts +1 -0
  138. package/dist/serialization/resources/templates/types/TemplatesListResponseTemplatesItem.js +1 -0
  139. package/dist/serialization/resources/templates/types/TemplatesSaveTemplateVersionResponse.d.ts +1 -0
  140. package/dist/serialization/resources/templates/types/TemplatesSaveTemplateVersionResponse.js +1 -0
  141. package/dist/serialization/resources/templates/types/index.d.ts +1 -0
  142. package/dist/serialization/resources/templates/types/index.js +1 -0
  143. package/dist/version.d.ts +1 -1
  144. package/dist/version.js +1 -1
  145. package/package.json +1 -1
  146. package/serialization/resources/agents/types/AgentsSearchRequestSearchItemField.d.ts +1 -2
  147. package/serialization/resources/agents/types/AgentsSearchRequestSearchItemField.js +1 -2
  148. package/serialization/resources/agents/types/index.d.ts +0 -1
  149. package/serialization/resources/agents/types/index.js +0 -1
  150. package/serialization/resources/templates/types/TemplatesCreateTemplateResponse.d.ts +1 -0
  151. package/serialization/resources/templates/types/TemplatesCreateTemplateResponse.js +1 -0
  152. package/serialization/resources/templates/types/TemplatesForkTemplateResponse.d.ts +1 -0
  153. package/serialization/resources/templates/types/TemplatesForkTemplateResponse.js +1 -0
  154. package/serialization/resources/templates/types/TemplatesListRequestSortBy.d.ts +10 -0
  155. package/serialization/resources/{agents/types/AgentsSearchRequestSearchItemFieldOperator.js → templates/types/TemplatesListRequestSortBy.js} +2 -2
  156. package/serialization/resources/templates/types/TemplatesListResponseTemplatesItem.d.ts +1 -0
  157. package/serialization/resources/templates/types/TemplatesListResponseTemplatesItem.js +1 -0
  158. package/serialization/resources/templates/types/TemplatesSaveTemplateVersionResponse.d.ts +1 -0
  159. package/serialization/resources/templates/types/TemplatesSaveTemplateVersionResponse.js +1 -0
  160. package/serialization/resources/templates/types/index.d.ts +1 -0
  161. package/serialization/resources/templates/types/index.js +1 -0
  162. package/version.d.ts +1 -1
  163. package/version.js +1 -1
  164. package/api/resources/agents/types/AgentsSearchRequestSearchItemFieldOperator.d.ts +0 -8
  165. package/dist/api/resources/agents/types/AgentsSearchRequestSearchItemFieldOperator.d.ts +0 -8
  166. package/dist/serialization/resources/agents/types/AgentsSearchRequestSearchItemFieldOperator.d.ts +0 -10
  167. package/serialization/resources/agents/types/AgentsSearchRequestSearchItemFieldOperator.d.ts +0 -10
@@ -0,0 +1,8 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export type TemplatesListRequestSortBy = "updated_at" | "created_at";
5
+ export declare const TemplatesListRequestSortBy: {
6
+ readonly UpdatedAt: "updated_at";
7
+ readonly CreatedAt: "created_at";
8
+ };
@@ -3,8 +3,8 @@
3
3
  * This file was auto-generated by Fern from our API Definition.
4
4
  */
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.AgentsSearchRequestSearchItemFieldOperator = void 0;
7
- exports.AgentsSearchRequestSearchItemFieldOperator = {
8
- Eq: "eq",
9
- Neq: "neq",
6
+ exports.TemplatesListRequestSortBy = void 0;
7
+ exports.TemplatesListRequestSortBy = {
8
+ UpdatedAt: "updated_at",
9
+ CreatedAt: "created_at",
10
10
  };
@@ -12,4 +12,6 @@ export interface TemplatesListResponseTemplatesItem {
12
12
  description?: string;
13
13
  /** The full name of the template, including version and project slug */
14
14
  templateDeploymentSlug: string;
15
+ /** When the template was last updated */
16
+ updatedAt: string;
15
17
  }
@@ -12,4 +12,6 @@ export interface TemplatesSaveTemplateVersionResponse {
12
12
  description?: string;
13
13
  /** The full name of the template, including version and project slug */
14
14
  templateDeploymentSlug: string;
15
+ /** When the template was last updated */
16
+ updatedAt: string;
15
17
  }
@@ -1,3 +1,4 @@
1
+ export * from "./TemplatesListRequestSortBy";
1
2
  export * from "./TemplatesListResponseTemplatesItem";
2
3
  export * from "./TemplatesListResponse";
3
4
  export * from "./TemplatesSaveTemplateVersionResponse";
@@ -14,6 +14,7 @@ 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("./TemplatesListRequestSortBy"), exports);
17
18
  __exportStar(require("./TemplatesListResponseTemplatesItem"), exports);
18
19
  __exportStar(require("./TemplatesListResponse"), exports);
19
20
  __exportStar(require("./TemplatesSaveTemplateVersionResponse"), exports);
@@ -81,7 +81,7 @@ class Tools {
81
81
  method: "GET",
82
82
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
83
83
  ? yield core.Supplier.get(this._options.project)
84
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.188", "User-Agent": "@letta-ai/letta-client/0.1.188", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
84
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.190", "User-Agent": "@letta-ai/letta-client/0.1.190", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
85
85
  contentType: "application/json",
86
86
  requestType: "json",
87
87
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -157,7 +157,7 @@ class Tools {
157
157
  method: "DELETE",
158
158
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
159
159
  ? yield core.Supplier.get(this._options.project)
160
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.188", "User-Agent": "@letta-ai/letta-client/0.1.188", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
160
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.190", "User-Agent": "@letta-ai/letta-client/0.1.190", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
161
161
  contentType: "application/json",
162
162
  requestType: "json",
163
163
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -225,7 +225,7 @@ class Tools {
225
225
  method: "PATCH",
226
226
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
227
227
  ? yield core.Supplier.get(this._options.project)
228
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.188", "User-Agent": "@letta-ai/letta-client/0.1.188", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
228
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.190", "User-Agent": "@letta-ai/letta-client/0.1.190", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
229
229
  contentType: "application/json",
230
230
  requestType: "json",
231
231
  body: serializers.ToolUpdate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -307,7 +307,7 @@ class Tools {
307
307
  method: "GET",
308
308
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
309
309
  ? yield core.Supplier.get(this._options.project)
310
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.188", "User-Agent": "@letta-ai/letta-client/0.1.188", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
310
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.190", "User-Agent": "@letta-ai/letta-client/0.1.190", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
311
311
  contentType: "application/json",
312
312
  queryParameters: _queryParams,
313
313
  requestType: "json",
@@ -395,7 +395,7 @@ class Tools {
395
395
  method: "GET",
396
396
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
397
397
  ? yield core.Supplier.get(this._options.project)
398
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.188", "User-Agent": "@letta-ai/letta-client/0.1.188", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
398
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.190", "User-Agent": "@letta-ai/letta-client/0.1.190", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
399
399
  contentType: "application/json",
400
400
  queryParameters: _queryParams,
401
401
  requestType: "json",
@@ -474,7 +474,7 @@ class Tools {
474
474
  method: "POST",
475
475
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
476
476
  ? yield core.Supplier.get(this._options.project)
477
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.188", "User-Agent": "@letta-ai/letta-client/0.1.188", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
477
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.190", "User-Agent": "@letta-ai/letta-client/0.1.190", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
478
478
  contentType: "application/json",
479
479
  requestType: "json",
480
480
  body: serializers.ToolCreate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -553,7 +553,7 @@ class Tools {
553
553
  method: "PUT",
554
554
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
555
555
  ? yield core.Supplier.get(this._options.project)
556
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.188", "User-Agent": "@letta-ai/letta-client/0.1.188", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
556
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.190", "User-Agent": "@letta-ai/letta-client/0.1.190", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
557
557
  contentType: "application/json",
558
558
  requestType: "json",
559
559
  body: serializers.ToolCreate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -629,7 +629,7 @@ class Tools {
629
629
  method: "POST",
630
630
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
631
631
  ? yield core.Supplier.get(this._options.project)
632
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.188", "User-Agent": "@letta-ai/letta-client/0.1.188", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
632
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.190", "User-Agent": "@letta-ai/letta-client/0.1.190", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
633
633
  contentType: "application/json",
634
634
  requestType: "json",
635
635
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -710,7 +710,7 @@ class Tools {
710
710
  method: "POST",
711
711
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
712
712
  ? yield core.Supplier.get(this._options.project)
713
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.188", "User-Agent": "@letta-ai/letta-client/0.1.188", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
713
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.190", "User-Agent": "@letta-ai/letta-client/0.1.190", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
714
714
  contentType: "application/json",
715
715
  requestType: "json",
716
716
  body: serializers.ToolRunFromSource.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -788,7 +788,7 @@ class Tools {
788
788
  method: "GET",
789
789
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
790
790
  ? yield core.Supplier.get(this._options.project)
791
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.188", "User-Agent": "@letta-ai/letta-client/0.1.188", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, "user-id": userId != null ? userId : undefined }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
791
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.190", "User-Agent": "@letta-ai/letta-client/0.1.190", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, "user-id": userId != null ? userId : undefined }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
792
792
  contentType: "application/json",
793
793
  requestType: "json",
794
794
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -864,7 +864,7 @@ class Tools {
864
864
  method: "GET",
865
865
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
866
866
  ? yield core.Supplier.get(this._options.project)
867
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.188", "User-Agent": "@letta-ai/letta-client/0.1.188", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
867
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.190", "User-Agent": "@letta-ai/letta-client/0.1.190", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
868
868
  contentType: "application/json",
869
869
  requestType: "json",
870
870
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -940,7 +940,7 @@ class Tools {
940
940
  method: "POST",
941
941
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
942
942
  ? yield core.Supplier.get(this._options.project)
943
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.188", "User-Agent": "@letta-ai/letta-client/0.1.188", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
943
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.190", "User-Agent": "@letta-ai/letta-client/0.1.190", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
944
944
  contentType: "application/json",
945
945
  requestType: "json",
946
946
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -1017,7 +1017,7 @@ class Tools {
1017
1017
  method: "GET",
1018
1018
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
1019
1019
  ? yield core.Supplier.get(this._options.project)
1020
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.188", "User-Agent": "@letta-ai/letta-client/0.1.188", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, "user-id": userId != null ? userId : undefined }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
1020
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.190", "User-Agent": "@letta-ai/letta-client/0.1.190", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, "user-id": userId != null ? userId : undefined }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
1021
1021
  contentType: "application/json",
1022
1022
  requestType: "json",
1023
1023
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -1097,7 +1097,7 @@ class Tools {
1097
1097
  method: "PUT",
1098
1098
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
1099
1099
  ? yield core.Supplier.get(this._options.project)
1100
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.188", "User-Agent": "@letta-ai/letta-client/0.1.188", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
1100
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.190", "User-Agent": "@letta-ai/letta-client/0.1.190", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
1101
1101
  contentType: "application/json",
1102
1102
  requestType: "json",
1103
1103
  body: serializers.AddMcpServerRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -1174,7 +1174,7 @@ class Tools {
1174
1174
  method: "GET",
1175
1175
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
1176
1176
  ? yield core.Supplier.get(this._options.project)
1177
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.188", "User-Agent": "@letta-ai/letta-client/0.1.188", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
1177
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.190", "User-Agent": "@letta-ai/letta-client/0.1.190", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
1178
1178
  contentType: "application/json",
1179
1179
  requestType: "json",
1180
1180
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -1251,7 +1251,7 @@ class Tools {
1251
1251
  method: "POST",
1252
1252
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
1253
1253
  ? yield core.Supplier.get(this._options.project)
1254
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.188", "User-Agent": "@letta-ai/letta-client/0.1.188", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
1254
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.190", "User-Agent": "@letta-ai/letta-client/0.1.190", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
1255
1255
  contentType: "application/json",
1256
1256
  requestType: "json",
1257
1257
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -1327,7 +1327,7 @@ class Tools {
1327
1327
  method: "DELETE",
1328
1328
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
1329
1329
  ? yield core.Supplier.get(this._options.project)
1330
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.188", "User-Agent": "@letta-ai/letta-client/0.1.188", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
1330
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.190", "User-Agent": "@letta-ai/letta-client/0.1.190", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
1331
1331
  contentType: "application/json",
1332
1332
  requestType: "json",
1333
1333
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -1404,7 +1404,7 @@ class Tools {
1404
1404
  method: "PATCH",
1405
1405
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
1406
1406
  ? yield core.Supplier.get(this._options.project)
1407
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.188", "User-Agent": "@letta-ai/letta-client/0.1.188", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
1407
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.190", "User-Agent": "@letta-ai/letta-client/0.1.190", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
1408
1408
  contentType: "application/json",
1409
1409
  requestType: "json",
1410
1410
  body: serializers.UpdateMcpServerRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -1486,7 +1486,7 @@ class Tools {
1486
1486
  method: "POST",
1487
1487
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
1488
1488
  ? yield core.Supplier.get(this._options.project)
1489
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.188", "User-Agent": "@letta-ai/letta-client/0.1.188", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
1489
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.190", "User-Agent": "@letta-ai/letta-client/0.1.190", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
1490
1490
  contentType: "application/json",
1491
1491
  requestType: "json",
1492
1492
  body: serializers.TestMcpServerRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -1547,7 +1547,7 @@ class Tools {
1547
1547
  method: "POST",
1548
1548
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
1549
1549
  ? yield core.Supplier.get(this._options.project)
1550
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.188", "User-Agent": "@letta-ai/letta-client/0.1.188", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
1550
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.190", "User-Agent": "@letta-ai/letta-client/0.1.190", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
1551
1551
  contentType: "application/json",
1552
1552
  requestType: "json",
1553
1553
  body: serializers.ConnectMcpServerRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -85,7 +85,7 @@ class Voice {
85
85
  method: "POST",
86
86
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
87
87
  ? yield core.Supplier.get(this._options.project)
88
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.188", "User-Agent": "@letta-ai/letta-client/0.1.188", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, "user-id": userId != null ? userId : undefined }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
88
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.190", "User-Agent": "@letta-ai/letta-client/0.1.190", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, "user-id": userId != null ? userId : undefined }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
89
89
  contentType: "application/json",
90
90
  requestType: "json",
91
91
  body: serializers.voice.createVoiceChatCompletions.Request.jsonOrThrow(_body, {
@@ -7,7 +7,7 @@ export interface BatchJob {
7
7
  createdById?: string;
8
8
  /** The id of the user that made this object. */
9
9
  lastUpdatedById?: string;
10
- /** The timestamp when the object was created. */
10
+ /** The unix timestamp of when the job was created. */
11
11
  createdAt?: Date;
12
12
  /** The timestamp when the object was last updated. */
13
13
  updatedAt?: Date;
@@ -17,7 +17,7 @@ export interface Job {
17
17
  createdById?: string;
18
18
  /** The id of the user that made this object. */
19
19
  lastUpdatedById?: string;
20
- /** The timestamp when the object was created. */
20
+ /** The unix timestamp of when the job was created. */
21
21
  createdAt?: Date;
22
22
  /** The timestamp when the object was last updated. */
23
23
  updatedAt?: Date;
@@ -18,7 +18,7 @@ export interface Run {
18
18
  createdById?: string;
19
19
  /** The id of the user that made this object. */
20
20
  lastUpdatedById?: string;
21
- /** The timestamp when the object was created. */
21
+ /** The unix timestamp of when the job was created. */
22
22
  createdAt?: Date;
23
23
  /** The timestamp when the object was last updated. */
24
24
  updatedAt?: Date;
@@ -55,7 +55,6 @@ const Letta = __importStar(require("../../../index"));
55
55
  const url_join_1 = __importDefault(require("url-join"));
56
56
  const serializers = __importStar(require("../../../../serialization/index"));
57
57
  const errors = __importStar(require("../../../../errors/index"));
58
- const json_1 = require("../../../../core/json");
59
58
  const Client_1 = require("../resources/context/client/Client");
60
59
  const Client_2 = require("../resources/tools/client/Client");
61
60
  const Client_3 = require("../resources/sources/client/Client");
@@ -207,7 +206,7 @@ class Agents {
207
206
  method: "GET",
208
207
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
209
208
  ? yield core.Supplier.get(this._options.project)
210
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.188", "User-Agent": "@letta-ai/letta-client/0.1.188", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
209
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.190", "User-Agent": "@letta-ai/letta-client/0.1.190", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
211
210
  contentType: "application/json",
212
211
  queryParameters: _queryParams,
213
212
  requestType: "json",
@@ -284,7 +283,7 @@ class Agents {
284
283
  method: "POST",
285
284
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
286
285
  ? yield core.Supplier.get(this._options.project)
287
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.188", "User-Agent": "@letta-ai/letta-client/0.1.188", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
286
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.190", "User-Agent": "@letta-ai/letta-client/0.1.190", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
288
287
  contentType: "application/json",
289
288
  requestType: "json",
290
289
  body: serializers.CreateAgentRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -360,7 +359,7 @@ class Agents {
360
359
  method: "GET",
361
360
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
362
361
  ? yield core.Supplier.get(this._options.project)
363
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.188", "User-Agent": "@letta-ai/letta-client/0.1.188", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
362
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.190", "User-Agent": "@letta-ai/letta-client/0.1.190", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
364
363
  contentType: "application/json",
365
364
  requestType: "json",
366
365
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -449,7 +448,7 @@ class Agents {
449
448
  method: "GET",
450
449
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
451
450
  ? yield core.Supplier.get(this._options.project)
452
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.188", "User-Agent": "@letta-ai/letta-client/0.1.188", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
451
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.190", "User-Agent": "@letta-ai/letta-client/0.1.190", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
453
452
  contentType: "application/json",
454
453
  queryParameters: _queryParams,
455
454
  requestType: "json",
@@ -537,8 +536,8 @@ class Agents {
537
536
  if (request.stripMessages != null) {
538
537
  _request.append("strip_messages", request.stripMessages.toString());
539
538
  }
540
- if (request.envVars != null) {
541
- _request.append("env_vars", (0, json_1.toJson)(request.envVars));
539
+ if (request.envVarsJson != null) {
540
+ _request.append("env_vars_json", request.envVarsJson);
542
541
  }
543
542
  const _maybeEncodedRequest = yield _request.getRequest();
544
543
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
@@ -546,7 +545,7 @@ class Agents {
546
545
  method: "POST",
547
546
  headers: Object.assign(Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
548
547
  ? yield core.Supplier.get(this._options.project)
549
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.188", "User-Agent": "@letta-ai/letta-client/0.1.188", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), _maybeEncodedRequest.headers), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
548
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.190", "User-Agent": "@letta-ai/letta-client/0.1.190", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), _maybeEncodedRequest.headers), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
550
549
  requestType: "file",
551
550
  duplex: _maybeEncodedRequest.duplex,
552
551
  body: _maybeEncodedRequest.body,
@@ -634,7 +633,7 @@ class Agents {
634
633
  method: "GET",
635
634
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
636
635
  ? yield core.Supplier.get(this._options.project)
637
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.188", "User-Agent": "@letta-ai/letta-client/0.1.188", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
636
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.190", "User-Agent": "@letta-ai/letta-client/0.1.190", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
638
637
  contentType: "application/json",
639
638
  queryParameters: _queryParams,
640
639
  requestType: "json",
@@ -711,7 +710,7 @@ class Agents {
711
710
  method: "DELETE",
712
711
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
713
712
  ? yield core.Supplier.get(this._options.project)
714
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.188", "User-Agent": "@letta-ai/letta-client/0.1.188", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
713
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.190", "User-Agent": "@letta-ai/letta-client/0.1.190", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
715
714
  contentType: "application/json",
716
715
  requestType: "json",
717
716
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -779,7 +778,7 @@ class Agents {
779
778
  method: "PATCH",
780
779
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
781
780
  ? yield core.Supplier.get(this._options.project)
782
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.188", "User-Agent": "@letta-ai/letta-client/0.1.188", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
781
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.190", "User-Agent": "@letta-ai/letta-client/0.1.190", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
783
782
  contentType: "application/json",
784
783
  requestType: "json",
785
784
  body: serializers.UpdateAgent.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -868,7 +867,7 @@ class Agents {
868
867
  method: "GET",
869
868
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
870
869
  ? yield core.Supplier.get(this._options.project)
871
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.188", "User-Agent": "@letta-ai/letta-client/0.1.188", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
870
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.190", "User-Agent": "@letta-ai/letta-client/0.1.190", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
872
871
  contentType: "application/json",
873
872
  queryParameters: _queryParams,
874
873
  requestType: "json",
@@ -954,7 +953,7 @@ class Agents {
954
953
  method: "POST",
955
954
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
956
955
  ? yield core.Supplier.get(this._options.project)
957
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.188", "User-Agent": "@letta-ai/letta-client/0.1.188", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
956
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.190", "User-Agent": "@letta-ai/letta-client/0.1.190", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
958
957
  contentType: "application/json",
959
958
  queryParameters: _queryParams,
960
959
  requestType: "json",
@@ -1022,7 +1021,7 @@ class Agents {
1022
1021
  method: "POST",
1023
1022
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
1024
1023
  ? yield core.Supplier.get(this._options.project)
1025
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.188", "User-Agent": "@letta-ai/letta-client/0.1.188", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
1024
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.190", "User-Agent": "@letta-ai/letta-client/0.1.190", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
1026
1025
  contentType: "application/json",
1027
1026
  requestType: "json",
1028
1027
  body: serializers.AgentsSearchRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -14,6 +14,6 @@ export interface BodyImportAgentSerialized {
14
14
  projectId?: string;
15
15
  /** If set to True, strips all messages from the agent before importing. */
16
16
  stripMessages?: boolean;
17
- /** Environment variables to pass to the agent for tool execution. */
18
- envVars?: Record<string, unknown>;
17
+ /** Environment variables as a JSON string to pass to the agent for tool execution. */
18
+ envVarsJson?: string;
19
19
  }
@@ -82,7 +82,7 @@ class Blocks {
82
82
  method: "GET",
83
83
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
84
84
  ? yield core.Supplier.get(this._options.project)
85
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.188", "User-Agent": "@letta-ai/letta-client/0.1.188", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
85
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.190", "User-Agent": "@letta-ai/letta-client/0.1.190", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
86
86
  contentType: "application/json",
87
87
  requestType: "json",
88
88
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -160,7 +160,7 @@ class Blocks {
160
160
  method: "PATCH",
161
161
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
162
162
  ? yield core.Supplier.get(this._options.project)
163
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.188", "User-Agent": "@letta-ai/letta-client/0.1.188", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
163
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.190", "User-Agent": "@letta-ai/letta-client/0.1.190", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
164
164
  contentType: "application/json",
165
165
  requestType: "json",
166
166
  body: serializers.BlockUpdate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -237,7 +237,7 @@ class Blocks {
237
237
  method: "GET",
238
238
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
239
239
  ? yield core.Supplier.get(this._options.project)
240
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.188", "User-Agent": "@letta-ai/letta-client/0.1.188", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
240
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.190", "User-Agent": "@letta-ai/letta-client/0.1.190", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
241
241
  contentType: "application/json",
242
242
  requestType: "json",
243
243
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -314,7 +314,7 @@ class Blocks {
314
314
  method: "PATCH",
315
315
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
316
316
  ? yield core.Supplier.get(this._options.project)
317
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.188", "User-Agent": "@letta-ai/letta-client/0.1.188", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
317
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.190", "User-Agent": "@letta-ai/letta-client/0.1.190", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
318
318
  contentType: "application/json",
319
319
  requestType: "json",
320
320
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -391,7 +391,7 @@ class Blocks {
391
391
  method: "PATCH",
392
392
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
393
393
  ? yield core.Supplier.get(this._options.project)
394
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.188", "User-Agent": "@letta-ai/letta-client/0.1.188", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
394
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.190", "User-Agent": "@letta-ai/letta-client/0.1.190", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
395
395
  contentType: "application/json",
396
396
  requestType: "json",
397
397
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -81,7 +81,7 @@ class Context {
81
81
  method: "GET",
82
82
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
83
83
  ? yield core.Supplier.get(this._options.project)
84
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.188", "User-Agent": "@letta-ai/letta-client/0.1.188", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
84
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.190", "User-Agent": "@letta-ai/letta-client/0.1.190", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
85
85
  contentType: "application/json",
86
86
  requestType: "json",
87
87
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -82,7 +82,7 @@ class CoreMemory {
82
82
  method: "GET",
83
83
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
84
84
  ? yield core.Supplier.get(this._options.project)
85
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.188", "User-Agent": "@letta-ai/letta-client/0.1.188", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
85
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.190", "User-Agent": "@letta-ai/letta-client/0.1.190", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
86
86
  contentType: "application/json",
87
87
  requestType: "json",
88
88
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -84,7 +84,7 @@ class Files {
84
84
  method: "PATCH",
85
85
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
86
86
  ? yield core.Supplier.get(this._options.project)
87
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.188", "User-Agent": "@letta-ai/letta-client/0.1.188", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
87
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.190", "User-Agent": "@letta-ai/letta-client/0.1.190", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
88
88
  contentType: "application/json",
89
89
  requestType: "json",
90
90
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -165,7 +165,7 @@ class Files {
165
165
  method: "PATCH",
166
166
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
167
167
  ? yield core.Supplier.get(this._options.project)
168
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.188", "User-Agent": "@letta-ai/letta-client/0.1.188", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
168
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.190", "User-Agent": "@letta-ai/letta-client/0.1.190", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
169
169
  contentType: "application/json",
170
170
  requestType: "json",
171
171
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -245,7 +245,7 @@ class Files {
245
245
  method: "PATCH",
246
246
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
247
247
  ? yield core.Supplier.get(this._options.project)
248
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.188", "User-Agent": "@letta-ai/letta-client/0.1.188", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
248
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.190", "User-Agent": "@letta-ai/letta-client/0.1.190", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
249
249
  contentType: "application/json",
250
250
  requestType: "json",
251
251
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -308,7 +308,7 @@ class Files {
308
308
  method: "PATCH",
309
309
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
310
310
  ? yield core.Supplier.get(this._options.project)
311
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.188", "User-Agent": "@letta-ai/letta-client/0.1.188", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
311
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.190", "User-Agent": "@letta-ai/letta-client/0.1.190", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
312
312
  contentType: "application/json",
313
313
  requestType: "json",
314
314
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,