@letta-ai/letta-client 0.0.68649 → 0.0.68651

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 (164) hide show
  1. package/api/resources/agents/client/Client.d.ts +0 -19
  2. package/api/resources/agents/client/Client.js +9 -86
  3. package/api/resources/agents/client/requests/index.d.ts +0 -1
  4. package/api/resources/agents/resources/blocks/client/Client.js +5 -5
  5. package/api/resources/agents/resources/context/client/Client.js +1 -1
  6. package/api/resources/agents/resources/coreMemory/client/Client.js +1 -1
  7. package/api/resources/agents/resources/files/client/Client.js +4 -4
  8. package/api/resources/agents/resources/folders/client/Client.js +3 -3
  9. package/api/resources/agents/resources/groups/client/Client.js +1 -1
  10. package/api/resources/agents/resources/memoryVariables/client/Client.js +1 -1
  11. package/api/resources/agents/resources/messages/client/Client.d.ts +19 -0
  12. package/api/resources/agents/resources/messages/client/Client.js +86 -9
  13. package/api/resources/agents/{client/requests/SummarizeAgentConversationRequest.d.ts → resources/messages/client/requests/MessagesSummarizeRequest.d.ts} +1 -1
  14. package/api/resources/agents/resources/messages/client/requests/index.d.ts +1 -0
  15. package/api/resources/agents/resources/passages/client/Client.js +5 -5
  16. package/api/resources/agents/resources/sources/client/Client.js +3 -3
  17. package/api/resources/agents/resources/templates/client/Client.js +3 -3
  18. package/api/resources/agents/resources/tools/client/Client.js +4 -4
  19. package/api/resources/batches/client/Client.js +4 -4
  20. package/api/resources/batches/resources/messages/client/Client.js +1 -1
  21. package/api/resources/blocks/client/Client.js +6 -6
  22. package/api/resources/blocks/resources/agents/client/Client.js +1 -1
  23. package/api/resources/clientSideAccessTokens/client/Client.js +3 -3
  24. package/api/resources/folders/client/Client.js +9 -9
  25. package/api/resources/folders/resources/files/client/Client.js +3 -3
  26. package/api/resources/folders/resources/passages/client/Client.js +1 -1
  27. package/api/resources/groups/client/Client.js +6 -6
  28. package/api/resources/groups/resources/messages/client/Client.js +5 -5
  29. package/api/resources/health/client/Client.js +1 -1
  30. package/api/resources/identities/client/Client.js +7 -7
  31. package/api/resources/identities/resources/properties/client/Client.js +1 -1
  32. package/api/resources/index.d.ts +0 -1
  33. package/api/resources/index.js +0 -1
  34. package/api/resources/jobs/client/Client.js +5 -5
  35. package/api/resources/models/client/Client.js +2 -2
  36. package/api/resources/models/resources/embeddings/client/Client.js +1 -1
  37. package/api/resources/projects/client/Client.js +1 -1
  38. package/api/resources/providers/client/Client.d.ts +7 -3
  39. package/api/resources/providers/client/Client.js +40 -16
  40. package/api/resources/runs/client/Client.js +5 -5
  41. package/api/resources/runs/resources/messages/client/Client.js +1 -1
  42. package/api/resources/runs/resources/steps/client/Client.js +1 -1
  43. package/api/resources/runs/resources/usage/client/Client.js +1 -1
  44. package/api/resources/sources/client/Client.js +10 -10
  45. package/api/resources/sources/resources/files/client/Client.js +3 -3
  46. package/api/resources/sources/resources/passages/client/Client.js +1 -1
  47. package/api/resources/steps/client/Client.js +2 -2
  48. package/api/resources/steps/resources/feedback/client/Client.d.ts +3 -3
  49. package/api/resources/steps/resources/feedback/client/Client.js +4 -4
  50. package/{dist/api/resources/steps/resources/feedback/client/requests/AddFeedbackRequest.d.ts → api/resources/steps/resources/feedback/client/requests/ModifyFeedbackRequest.d.ts} +1 -1
  51. package/api/resources/steps/resources/feedback/client/requests/index.d.ts +1 -1
  52. package/api/resources/steps/resources/metrics/client/Client.js +1 -1
  53. package/api/resources/steps/resources/trace/client/Client.js +1 -1
  54. package/api/resources/tags/client/Client.js +1 -1
  55. package/api/resources/telemetry/client/Client.d.ts +4 -0
  56. package/api/resources/telemetry/client/Client.js +5 -1
  57. package/api/resources/templates/client/Client.js +9 -9
  58. package/api/resources/templates/resources/agents/client/Client.js +1 -1
  59. package/api/resources/tools/client/Client.d.ts +2 -4
  60. package/api/resources/tools/client/Client.js +28 -32
  61. package/api/resources/tools/client/requests/index.d.ts +0 -2
  62. package/api/resources/voice/client/Client.d.ts +3 -6
  63. package/api/resources/voice/client/Client.js +4 -7
  64. package/api/resources/voice/client/index.d.ts +1 -1
  65. package/api/resources/voice/client/index.js +0 -15
  66. package/dist/api/resources/agents/client/Client.d.ts +0 -19
  67. package/dist/api/resources/agents/client/Client.js +9 -86
  68. package/dist/api/resources/agents/client/requests/index.d.ts +0 -1
  69. package/dist/api/resources/agents/resources/blocks/client/Client.js +5 -5
  70. package/dist/api/resources/agents/resources/context/client/Client.js +1 -1
  71. package/dist/api/resources/agents/resources/coreMemory/client/Client.js +1 -1
  72. package/dist/api/resources/agents/resources/files/client/Client.js +4 -4
  73. package/dist/api/resources/agents/resources/folders/client/Client.js +3 -3
  74. package/dist/api/resources/agents/resources/groups/client/Client.js +1 -1
  75. package/dist/api/resources/agents/resources/memoryVariables/client/Client.js +1 -1
  76. package/dist/api/resources/agents/resources/messages/client/Client.d.ts +19 -0
  77. package/dist/api/resources/agents/resources/messages/client/Client.js +86 -9
  78. package/dist/api/resources/agents/{client/requests/SummarizeAgentConversationRequest.d.ts → resources/messages/client/requests/MessagesSummarizeRequest.d.ts} +1 -1
  79. package/dist/api/resources/agents/resources/messages/client/requests/index.d.ts +1 -0
  80. package/dist/api/resources/agents/resources/passages/client/Client.js +5 -5
  81. package/dist/api/resources/agents/resources/sources/client/Client.js +3 -3
  82. package/dist/api/resources/agents/resources/templates/client/Client.js +3 -3
  83. package/dist/api/resources/agents/resources/tools/client/Client.js +4 -4
  84. package/dist/api/resources/batches/client/Client.js +4 -4
  85. package/dist/api/resources/batches/resources/messages/client/Client.js +1 -1
  86. package/dist/api/resources/blocks/client/Client.js +6 -6
  87. package/dist/api/resources/blocks/resources/agents/client/Client.js +1 -1
  88. package/dist/api/resources/clientSideAccessTokens/client/Client.js +3 -3
  89. package/dist/api/resources/folders/client/Client.js +9 -9
  90. package/dist/api/resources/folders/resources/files/client/Client.js +3 -3
  91. package/dist/api/resources/folders/resources/passages/client/Client.js +1 -1
  92. package/dist/api/resources/groups/client/Client.js +6 -6
  93. package/dist/api/resources/groups/resources/messages/client/Client.js +5 -5
  94. package/dist/api/resources/health/client/Client.js +1 -1
  95. package/dist/api/resources/identities/client/Client.js +7 -7
  96. package/dist/api/resources/identities/resources/properties/client/Client.js +1 -1
  97. package/dist/api/resources/index.d.ts +0 -1
  98. package/dist/api/resources/index.js +0 -1
  99. package/dist/api/resources/jobs/client/Client.js +5 -5
  100. package/dist/api/resources/models/client/Client.js +2 -2
  101. package/dist/api/resources/models/resources/embeddings/client/Client.js +1 -1
  102. package/dist/api/resources/projects/client/Client.js +1 -1
  103. package/dist/api/resources/providers/client/Client.d.ts +7 -3
  104. package/dist/api/resources/providers/client/Client.js +40 -16
  105. package/dist/api/resources/runs/client/Client.js +5 -5
  106. package/dist/api/resources/runs/resources/messages/client/Client.js +1 -1
  107. package/dist/api/resources/runs/resources/steps/client/Client.js +1 -1
  108. package/dist/api/resources/runs/resources/usage/client/Client.js +1 -1
  109. package/dist/api/resources/sources/client/Client.js +10 -10
  110. package/dist/api/resources/sources/resources/files/client/Client.js +3 -3
  111. package/dist/api/resources/sources/resources/passages/client/Client.js +1 -1
  112. package/dist/api/resources/steps/client/Client.js +2 -2
  113. package/dist/api/resources/steps/resources/feedback/client/Client.d.ts +3 -3
  114. package/dist/api/resources/steps/resources/feedback/client/Client.js +4 -4
  115. package/{api/resources/steps/resources/feedback/client/requests/AddFeedbackRequest.d.ts → dist/api/resources/steps/resources/feedback/client/requests/ModifyFeedbackRequest.d.ts} +1 -1
  116. package/dist/api/resources/steps/resources/feedback/client/requests/index.d.ts +1 -1
  117. package/dist/api/resources/steps/resources/metrics/client/Client.js +1 -1
  118. package/dist/api/resources/steps/resources/trace/client/Client.js +1 -1
  119. package/dist/api/resources/tags/client/Client.js +1 -1
  120. package/dist/api/resources/telemetry/client/Client.d.ts +4 -0
  121. package/dist/api/resources/telemetry/client/Client.js +5 -1
  122. package/dist/api/resources/templates/client/Client.js +9 -9
  123. package/dist/api/resources/templates/resources/agents/client/Client.js +1 -1
  124. package/dist/api/resources/tools/client/Client.d.ts +2 -4
  125. package/dist/api/resources/tools/client/Client.js +28 -32
  126. package/dist/api/resources/tools/client/requests/index.d.ts +0 -2
  127. package/dist/api/resources/voice/client/Client.d.ts +3 -6
  128. package/dist/api/resources/voice/client/Client.js +4 -7
  129. package/dist/api/resources/voice/client/index.d.ts +1 -1
  130. package/dist/api/resources/voice/client/index.js +0 -15
  131. package/dist/serialization/resources/steps/resources/feedback/client/requests/{AddFeedbackRequest.d.ts → ModifyFeedbackRequest.d.ts} +2 -2
  132. package/dist/serialization/resources/steps/resources/feedback/client/requests/{AddFeedbackRequest.js → ModifyFeedbackRequest.js} +2 -2
  133. package/dist/serialization/resources/steps/resources/feedback/client/requests/index.d.ts +1 -1
  134. package/dist/serialization/resources/steps/resources/feedback/client/requests/index.js +3 -3
  135. package/dist/version.d.ts +1 -1
  136. package/dist/version.js +1 -1
  137. package/package.json +1 -1
  138. package/reference.md +116 -102
  139. package/serialization/resources/steps/resources/feedback/client/requests/{AddFeedbackRequest.d.ts → ModifyFeedbackRequest.d.ts} +2 -2
  140. package/serialization/resources/steps/resources/feedback/client/requests/{AddFeedbackRequest.js → ModifyFeedbackRequest.js} +2 -2
  141. package/serialization/resources/steps/resources/feedback/client/requests/index.d.ts +1 -1
  142. package/serialization/resources/steps/resources/feedback/client/requests/index.js +3 -3
  143. package/version.d.ts +1 -1
  144. package/version.js +1 -1
  145. package/api/resources/tools/client/requests/ListComposioAppsRequest.d.ts +0 -10
  146. package/api/resources/tools/client/requests/ListMcpServersRequest.d.ts +0 -10
  147. package/api/resources/voice/client/requests/CreateVoiceChatCompletionsRequest.d.ts +0 -15
  148. package/api/resources/voice/client/requests/CreateVoiceChatCompletionsRequest.js +0 -5
  149. package/api/resources/voice/client/requests/index.d.ts +0 -1
  150. package/api/resources/voice/client/requests/index.js +0 -2
  151. package/dist/api/resources/agents/client/requests/SummarizeAgentConversationRequest.js +0 -5
  152. package/dist/api/resources/steps/resources/feedback/client/requests/AddFeedbackRequest.js +0 -5
  153. package/dist/api/resources/tools/client/requests/ListComposioAppsRequest.d.ts +0 -10
  154. package/dist/api/resources/tools/client/requests/ListComposioAppsRequest.js +0 -5
  155. package/dist/api/resources/tools/client/requests/ListMcpServersRequest.d.ts +0 -10
  156. package/dist/api/resources/tools/client/requests/ListMcpServersRequest.js +0 -5
  157. package/dist/api/resources/voice/client/requests/CreateVoiceChatCompletionsRequest.d.ts +0 -15
  158. package/dist/api/resources/voice/client/requests/CreateVoiceChatCompletionsRequest.js +0 -5
  159. package/dist/api/resources/voice/client/requests/index.d.ts +0 -1
  160. package/dist/api/resources/voice/client/requests/index.js +0 -2
  161. /package/api/resources/agents/{client/requests/SummarizeAgentConversationRequest.js → resources/messages/client/requests/MessagesSummarizeRequest.js} +0 -0
  162. /package/api/resources/steps/resources/feedback/client/requests/{AddFeedbackRequest.js → ModifyFeedbackRequest.js} +0 -0
  163. /package/{api/resources/tools/client/requests/ListComposioAppsRequest.js → dist/api/resources/agents/resources/messages/client/requests/MessagesSummarizeRequest.js} +0 -0
  164. /package/{api/resources/tools/client/requests/ListMcpServersRequest.js → dist/api/resources/steps/resources/feedback/client/requests/ModifyFeedbackRequest.js} +0 -0
@@ -108,7 +108,7 @@ class Providers {
108
108
  method: "GET",
109
109
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
110
110
  ? yield core.Supplier.get(this._options.project)
111
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68649", "User-Agent": "@letta-ai/letta-client/0.0.68649", "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),
111
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68651", "User-Agent": "@letta-ai/letta-client/0.0.68651", "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),
112
112
  contentType: "application/json",
113
113
  queryParameters: _queryParams,
114
114
  requestType: "json",
@@ -189,7 +189,7 @@ class Providers {
189
189
  method: "POST",
190
190
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
191
191
  ? yield core.Supplier.get(this._options.project)
192
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68649", "User-Agent": "@letta-ai/letta-client/0.0.68649", "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),
192
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68651", "User-Agent": "@letta-ai/letta-client/0.0.68651", "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),
193
193
  contentType: "application/json",
194
194
  requestType: "json",
195
195
  body: serializers.ProviderCreate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -245,16 +245,20 @@ class Providers {
245
245
  });
246
246
  }
247
247
  /**
248
+ * Get a provider by ID.
249
+ *
248
250
  * @param {string} providerId
249
251
  * @param {Providers.RequestOptions} requestOptions - Request-specific configuration.
250
252
  *
253
+ * @throws {@link Letta.UnprocessableEntityError}
254
+ *
251
255
  * @example
252
- * await client.providers.retrieve("provider_id")
256
+ * await client.providers.retrieveProvider("provider_id")
253
257
  */
254
- retrieve(providerId, requestOptions) {
255
- return core.HttpResponsePromise.fromPromise(this.__retrieve(providerId, requestOptions));
258
+ retrieveProvider(providerId, requestOptions) {
259
+ return core.HttpResponsePromise.fromPromise(this.__retrieveProvider(providerId, requestOptions));
256
260
  }
257
- __retrieve(providerId, requestOptions) {
261
+ __retrieveProvider(providerId, requestOptions) {
258
262
  return __awaiter(this, void 0, void 0, function* () {
259
263
  var _a, _b, _c;
260
264
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
@@ -262,7 +266,7 @@ class Providers {
262
266
  method: "GET",
263
267
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
264
268
  ? yield core.Supplier.get(this._options.project)
265
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68649", "User-Agent": "@letta-ai/letta-client/0.0.68649", "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),
269
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68651", "User-Agent": "@letta-ai/letta-client/0.0.68651", "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),
266
270
  contentType: "application/json",
267
271
  requestType: "json",
268
272
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -270,14 +274,34 @@ class Providers {
270
274
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
271
275
  });
272
276
  if (_response.ok) {
273
- return { data: undefined, rawResponse: _response.rawResponse };
277
+ return {
278
+ data: serializers.Provider.parseOrThrow(_response.body, {
279
+ unrecognizedObjectKeys: "passthrough",
280
+ allowUnrecognizedUnionMembers: true,
281
+ allowUnrecognizedEnumValues: true,
282
+ skipValidation: true,
283
+ breadcrumbsPrefix: ["response"],
284
+ }),
285
+ rawResponse: _response.rawResponse,
286
+ };
274
287
  }
275
288
  if (_response.error.reason === "status-code") {
276
- throw new errors.LettaError({
277
- statusCode: _response.error.statusCode,
278
- body: _response.error.body,
279
- rawResponse: _response.rawResponse,
280
- });
289
+ switch (_response.error.statusCode) {
290
+ case 422:
291
+ throw new Letta.UnprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
292
+ unrecognizedObjectKeys: "passthrough",
293
+ allowUnrecognizedUnionMembers: true,
294
+ allowUnrecognizedEnumValues: true,
295
+ skipValidation: true,
296
+ breadcrumbsPrefix: ["response"],
297
+ }), _response.rawResponse);
298
+ default:
299
+ throw new errors.LettaError({
300
+ statusCode: _response.error.statusCode,
301
+ body: _response.error.body,
302
+ rawResponse: _response.rawResponse,
303
+ });
304
+ }
281
305
  }
282
306
  switch (_response.error.reason) {
283
307
  case "non-json":
@@ -318,7 +342,7 @@ class Providers {
318
342
  method: "DELETE",
319
343
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
320
344
  ? yield core.Supplier.get(this._options.project)
321
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68649", "User-Agent": "@letta-ai/letta-client/0.0.68649", "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),
345
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68651", "User-Agent": "@letta-ai/letta-client/0.0.68651", "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),
322
346
  contentType: "application/json",
323
347
  requestType: "json",
324
348
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -388,7 +412,7 @@ class Providers {
388
412
  method: "PATCH",
389
413
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
390
414
  ? yield core.Supplier.get(this._options.project)
391
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68649", "User-Agent": "@letta-ai/letta-client/0.0.68649", "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),
415
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68651", "User-Agent": "@letta-ai/letta-client/0.0.68651", "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),
392
416
  contentType: "application/json",
393
417
  requestType: "json",
394
418
  body: serializers.ProviderUpdate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -468,7 +492,7 @@ class Providers {
468
492
  method: "POST",
469
493
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
470
494
  ? yield core.Supplier.get(this._options.project)
471
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68649", "User-Agent": "@letta-ai/letta-client/0.0.68649", "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),
495
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68651", "User-Agent": "@letta-ai/letta-client/0.0.68651", "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),
472
496
  contentType: "application/json",
473
497
  requestType: "json",
474
498
  body: serializers.ProviderCheck.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -121,7 +121,7 @@ class Runs {
121
121
  method: "GET",
122
122
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
123
123
  ? yield core.Supplier.get(this._options.project)
124
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68649", "User-Agent": "@letta-ai/letta-client/0.0.68649", "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),
124
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68651", "User-Agent": "@letta-ai/letta-client/0.0.68651", "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),
125
125
  contentType: "application/json",
126
126
  queryParameters: _queryParams,
127
127
  requestType: "json",
@@ -211,7 +211,7 @@ class Runs {
211
211
  method: "GET",
212
212
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
213
213
  ? yield core.Supplier.get(this._options.project)
214
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68649", "User-Agent": "@letta-ai/letta-client/0.0.68649", "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),
214
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68651", "User-Agent": "@letta-ai/letta-client/0.0.68651", "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),
215
215
  contentType: "application/json",
216
216
  queryParameters: _queryParams,
217
217
  requestType: "json",
@@ -288,7 +288,7 @@ class Runs {
288
288
  method: "GET",
289
289
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
290
290
  ? yield core.Supplier.get(this._options.project)
291
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68649", "User-Agent": "@letta-ai/letta-client/0.0.68649", "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),
291
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68651", "User-Agent": "@letta-ai/letta-client/0.0.68651", "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),
292
292
  contentType: "application/json",
293
293
  requestType: "json",
294
294
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -364,7 +364,7 @@ class Runs {
364
364
  method: "DELETE",
365
365
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
366
366
  ? yield core.Supplier.get(this._options.project)
367
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68649", "User-Agent": "@letta-ai/letta-client/0.0.68649", "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),
367
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68651", "User-Agent": "@letta-ai/letta-client/0.0.68651", "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),
368
368
  contentType: "application/json",
369
369
  requestType: "json",
370
370
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -429,7 +429,7 @@ class Runs {
429
429
  method: "POST",
430
430
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
431
431
  ? yield core.Supplier.get(this._options.project)
432
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68649", "User-Agent": "@letta-ai/letta-client/0.0.68649", "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),
432
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68651", "User-Agent": "@letta-ai/letta-client/0.0.68651", "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),
433
433
  contentType: "application/json",
434
434
  requestType: "json",
435
435
  body: serializers.RetrieveStreamRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -98,7 +98,7 @@ class Messages {
98
98
  method: "GET",
99
99
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
100
100
  ? yield core.Supplier.get(this._options.project)
101
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68649", "User-Agent": "@letta-ai/letta-client/0.0.68649", "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),
101
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68651", "User-Agent": "@letta-ai/letta-client/0.0.68651", "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),
102
102
  contentType: "application/json",
103
103
  queryParameters: _queryParams,
104
104
  requestType: "json",
@@ -106,7 +106,7 @@ class Steps {
106
106
  method: "GET",
107
107
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
108
108
  ? yield core.Supplier.get(this._options.project)
109
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68649", "User-Agent": "@letta-ai/letta-client/0.0.68649", "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),
109
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68651", "User-Agent": "@letta-ai/letta-client/0.0.68651", "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),
110
110
  contentType: "application/json",
111
111
  queryParameters: _queryParams,
112
112
  requestType: "json",
@@ -81,7 +81,7 @@ class Usage {
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.0.68649", "User-Agent": "@letta-ai/letta-client/0.0.68649", "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.0.68651", "User-Agent": "@letta-ai/letta-client/0.0.68651", "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,
@@ -90,7 +90,7 @@ class Sources {
90
90
  method: "GET",
91
91
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
92
92
  ? yield core.Supplier.get(this._options.project)
93
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68649", "User-Agent": "@letta-ai/letta-client/0.0.68649", "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),
93
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68651", "User-Agent": "@letta-ai/letta-client/0.0.68651", "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),
94
94
  contentType: "application/json",
95
95
  requestType: "json",
96
96
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -166,7 +166,7 @@ class Sources {
166
166
  method: "GET",
167
167
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
168
168
  ? yield core.Supplier.get(this._options.project)
169
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68649", "User-Agent": "@letta-ai/letta-client/0.0.68649", "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
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68651", "User-Agent": "@letta-ai/letta-client/0.0.68651", "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),
170
170
  contentType: "application/json",
171
171
  requestType: "json",
172
172
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -242,7 +242,7 @@ class Sources {
242
242
  method: "DELETE",
243
243
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
244
244
  ? yield core.Supplier.get(this._options.project)
245
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68649", "User-Agent": "@letta-ai/letta-client/0.0.68649", "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),
245
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68651", "User-Agent": "@letta-ai/letta-client/0.0.68651", "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),
246
246
  contentType: "application/json",
247
247
  requestType: "json",
248
248
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -310,7 +310,7 @@ class Sources {
310
310
  method: "PATCH",
311
311
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
312
312
  ? yield core.Supplier.get(this._options.project)
313
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68649", "User-Agent": "@letta-ai/letta-client/0.0.68649", "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),
313
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68651", "User-Agent": "@letta-ai/letta-client/0.0.68651", "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),
314
314
  contentType: "application/json",
315
315
  requestType: "json",
316
316
  body: serializers.SourceUpdate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -387,7 +387,7 @@ class Sources {
387
387
  method: "GET",
388
388
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
389
389
  ? yield core.Supplier.get(this._options.project)
390
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68649", "User-Agent": "@letta-ai/letta-client/0.0.68649", "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),
390
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68651", "User-Agent": "@letta-ai/letta-client/0.0.68651", "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),
391
391
  contentType: "application/json",
392
392
  requestType: "json",
393
393
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -474,7 +474,7 @@ class Sources {
474
474
  method: "GET",
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.0.68649", "User-Agent": "@letta-ai/letta-client/0.0.68649", "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.0.68651", "User-Agent": "@letta-ai/letta-client/0.0.68651", "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
  queryParameters: _queryParams,
480
480
  requestType: "json",
@@ -550,7 +550,7 @@ class Sources {
550
550
  method: "GET",
551
551
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
552
552
  ? yield core.Supplier.get(this._options.project)
553
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68649", "User-Agent": "@letta-ai/letta-client/0.0.68649", "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),
553
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68651", "User-Agent": "@letta-ai/letta-client/0.0.68651", "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),
554
554
  contentType: "application/json",
555
555
  requestType: "json",
556
556
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -628,7 +628,7 @@ class Sources {
628
628
  method: "POST",
629
629
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
630
630
  ? yield core.Supplier.get(this._options.project)
631
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68649", "User-Agent": "@letta-ai/letta-client/0.0.68649", "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),
631
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68651", "User-Agent": "@letta-ai/letta-client/0.0.68651", "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
632
  contentType: "application/json",
633
633
  requestType: "json",
634
634
  body: serializers.SourceCreate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -705,7 +705,7 @@ class Sources {
705
705
  method: "GET",
706
706
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
707
707
  ? yield core.Supplier.get(this._options.project)
708
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68649", "User-Agent": "@letta-ai/letta-client/0.0.68649", "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),
708
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68651", "User-Agent": "@letta-ai/letta-client/0.0.68651", "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),
709
709
  contentType: "application/json",
710
710
  requestType: "json",
711
711
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -788,7 +788,7 @@ class Sources {
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.0.68649", "User-Agent": "@letta-ai/letta-client/0.0.68649", "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),
791
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68651", "User-Agent": "@letta-ai/letta-client/0.0.68651", "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),
792
792
  contentType: "application/json",
793
793
  queryParameters: _queryParams,
794
794
  requestType: "json",
@@ -93,7 +93,7 @@ class Files {
93
93
  method: "POST",
94
94
  headers: Object.assign(Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
95
95
  ? yield core.Supplier.get(this._options.project)
96
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68649", "User-Agent": "@letta-ai/letta-client/0.0.68649", "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),
96
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68651", "User-Agent": "@letta-ai/letta-client/0.0.68651", "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),
97
97
  queryParameters: _queryParams,
98
98
  requestType: "file",
99
99
  duplex: _maybeEncodedRequest.duplex,
@@ -186,7 +186,7 @@ class Files {
186
186
  method: "GET",
187
187
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
188
188
  ? yield core.Supplier.get(this._options.project)
189
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68649", "User-Agent": "@letta-ai/letta-client/0.0.68649", "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),
189
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68651", "User-Agent": "@letta-ai/letta-client/0.0.68651", "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),
190
190
  contentType: "application/json",
191
191
  queryParameters: _queryParams,
192
192
  requestType: "json",
@@ -264,7 +264,7 @@ class Files {
264
264
  method: "DELETE",
265
265
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
266
266
  ? yield core.Supplier.get(this._options.project)
267
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68649", "User-Agent": "@letta-ai/letta-client/0.0.68649", "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),
267
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68651", "User-Agent": "@letta-ai/letta-client/0.0.68651", "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),
268
268
  contentType: "application/json",
269
269
  requestType: "json",
270
270
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -93,7 +93,7 @@ class Passages {
93
93
  method: "GET",
94
94
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
95
95
  ? yield core.Supplier.get(this._options.project)
96
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68649", "User-Agent": "@letta-ai/letta-client/0.0.68649", "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),
96
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68651", "User-Agent": "@letta-ai/letta-client/0.0.68651", "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),
97
97
  contentType: "application/json",
98
98
  queryParameters: _queryParams,
99
99
  requestType: "json",
@@ -154,7 +154,7 @@ class Steps {
154
154
  method: "GET",
155
155
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
156
156
  ? yield core.Supplier.get(this._options.project)
157
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68649", "User-Agent": "@letta-ai/letta-client/0.0.68649", "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),
157
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68651", "User-Agent": "@letta-ai/letta-client/0.0.68651", "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),
158
158
  contentType: "application/json",
159
159
  queryParameters: _queryParams,
160
160
  requestType: "json",
@@ -231,7 +231,7 @@ class Steps {
231
231
  method: "GET",
232
232
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
233
233
  ? yield core.Supplier.get(this._options.project)
234
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68649", "User-Agent": "@letta-ai/letta-client/0.0.68649", "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),
234
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68651", "User-Agent": "@letta-ai/letta-client/0.0.68651", "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),
235
235
  contentType: "application/json",
236
236
  requestType: "json",
237
237
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -31,10 +31,10 @@ export declare class Feedback {
31
31
  protected readonly _options: Feedback.Options;
32
32
  constructor(_options?: Feedback.Options);
33
33
  /**
34
- * Add feedback to a step.
34
+ * Modify feedback for a given step.
35
35
  *
36
36
  * @param {string} stepId
37
- * @param {Letta.steps.AddFeedbackRequest} request
37
+ * @param {Letta.steps.ModifyFeedbackRequest} request
38
38
  * @param {Feedback.RequestOptions} requestOptions - Request-specific configuration.
39
39
  *
40
40
  * @throws {@link Letta.UnprocessableEntityError}
@@ -42,7 +42,7 @@ export declare class Feedback {
42
42
  * @example
43
43
  * await client.steps.feedback.create("step_id")
44
44
  */
45
- create(stepId: string, request?: Letta.steps.AddFeedbackRequest, requestOptions?: Feedback.RequestOptions): core.HttpResponsePromise<Letta.Step>;
45
+ create(stepId: string, request?: Letta.steps.ModifyFeedbackRequest, requestOptions?: Feedback.RequestOptions): core.HttpResponsePromise<Letta.Step>;
46
46
  private __create;
47
47
  protected _getCustomAuthorizationHeaders(): Promise<{
48
48
  Authorization: string;
@@ -60,10 +60,10 @@ class Feedback {
60
60
  this._options = _options;
61
61
  }
62
62
  /**
63
- * Add feedback to a step.
63
+ * Modify feedback for a given step.
64
64
  *
65
65
  * @param {string} stepId
66
- * @param {Letta.steps.AddFeedbackRequest} request
66
+ * @param {Letta.steps.ModifyFeedbackRequest} request
67
67
  * @param {Feedback.RequestOptions} requestOptions - Request-specific configuration.
68
68
  *
69
69
  * @throws {@link Letta.UnprocessableEntityError}
@@ -82,10 +82,10 @@ class Feedback {
82
82
  method: "PATCH",
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.0.68649", "User-Agent": "@letta-ai/letta-client/0.0.68649", "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.0.68651", "User-Agent": "@letta-ai/letta-client/0.0.68651", "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
- body: serializers.steps.AddFeedbackRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
88
+ body: serializers.steps.ModifyFeedbackRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
89
89
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
90
90
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
91
91
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
@@ -6,7 +6,7 @@ import * as Letta from "../../../../../../index";
6
6
  * @example
7
7
  * {}
8
8
  */
9
- export interface AddFeedbackRequest {
9
+ export interface ModifyFeedbackRequest {
10
10
  /** Whether this feedback is positive or negative */
11
11
  feedback?: Letta.FeedbackType;
12
12
  /** Feedback tags to add to the step */
@@ -1 +1 @@
1
- export { type AddFeedbackRequest } from "./AddFeedbackRequest";
1
+ export { type ModifyFeedbackRequest } from "./ModifyFeedbackRequest";
@@ -81,7 +81,7 @@ class Metrics {
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.0.68649", "User-Agent": "@letta-ai/letta-client/0.0.68649", "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.0.68651", "User-Agent": "@letta-ai/letta-client/0.0.68651", "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,
@@ -79,7 +79,7 @@ class Trace {
79
79
  method: "GET",
80
80
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
81
81
  ? yield core.Supplier.get(this._options.project)
82
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68649", "User-Agent": "@letta-ai/letta-client/0.0.68649", "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),
82
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68651", "User-Agent": "@letta-ai/letta-client/0.0.68651", "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),
83
83
  contentType: "application/json",
84
84
  requestType: "json",
85
85
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -103,7 +103,7 @@ class Tags {
103
103
  method: "GET",
104
104
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
105
105
  ? yield core.Supplier.get(this._options.project)
106
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68649", "User-Agent": "@letta-ai/letta-client/0.0.68649", "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),
106
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68651", "User-Agent": "@letta-ai/letta-client/0.0.68651", "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),
107
107
  contentType: "application/json",
108
108
  queryParameters: _queryParams,
109
109
  requestType: "json",
@@ -31,6 +31,10 @@ export declare class Telemetry {
31
31
  protected readonly _options: Telemetry.Options;
32
32
  constructor(_options?: Telemetry.Options);
33
33
  /**
34
+ * **DEPRECATED**: Use `GET /steps/{step_id}/trace` instead.
35
+ *
36
+ * Retrieve provider trace by step ID.
37
+ *
34
38
  * @param {string} stepId
35
39
  * @param {Telemetry.RequestOptions} requestOptions - Request-specific configuration.
36
40
  *
@@ -60,6 +60,10 @@ class Telemetry {
60
60
  this._options = _options;
61
61
  }
62
62
  /**
63
+ * **DEPRECATED**: Use `GET /steps/{step_id}/trace` instead.
64
+ *
65
+ * Retrieve provider trace by step ID.
66
+ *
63
67
  * @param {string} stepId
64
68
  * @param {Telemetry.RequestOptions} requestOptions - Request-specific configuration.
65
69
  *
@@ -79,7 +83,7 @@ class Telemetry {
79
83
  method: "GET",
80
84
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
81
85
  ? yield core.Supplier.get(this._options.project)
82
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68649", "User-Agent": "@letta-ai/letta-client/0.0.68649", "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
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68651", "User-Agent": "@letta-ai/letta-client/0.0.68651", "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),
83
87
  contentType: "application/json",
84
88
  requestType: "json",
85
89
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,