@letta-ai/letta-client 0.1.122 → 0.1.124

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 (247) hide show
  1. package/README.md +1 -1
  2. package/api/resources/agents/client/Client.d.ts +18 -0
  3. package/api/resources/agents/client/Client.js +84 -9
  4. package/api/resources/agents/client/requests/SummarizeAgentConversationRequest.d.ts +15 -0
  5. package/api/resources/agents/client/requests/SummarizeAgentConversationRequest.js +5 -0
  6. package/api/resources/agents/client/requests/index.d.ts +1 -0
  7. package/api/resources/agents/resources/blocks/client/Client.js +5 -5
  8. package/api/resources/agents/resources/context/client/Client.js +1 -1
  9. package/api/resources/agents/resources/coreMemory/client/Client.js +1 -1
  10. package/api/resources/agents/resources/groups/client/Client.js +1 -1
  11. package/api/resources/agents/resources/memoryVariables/client/Client.js +1 -1
  12. package/api/resources/agents/resources/messages/client/Client.js +6 -6
  13. package/api/resources/agents/resources/passages/client/Client.js +4 -4
  14. package/api/resources/agents/resources/passages/client/requests/PassageUpdate.d.ts +2 -0
  15. package/api/resources/agents/resources/sources/client/Client.js +3 -3
  16. package/api/resources/agents/resources/templates/client/Client.js +3 -3
  17. package/api/resources/agents/resources/tools/client/Client.js +3 -3
  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 +2 -2
  22. package/api/resources/embeddingModels/client/Client.d.ts +2 -0
  23. package/api/resources/embeddingModels/client/Client.js +3 -1
  24. package/api/resources/groups/client/Client.js +6 -6
  25. package/api/resources/groups/resources/messages/client/Client.js +5 -5
  26. package/api/resources/health/client/Client.js +1 -1
  27. package/api/resources/identities/client/Client.js +7 -7
  28. package/api/resources/identities/resources/properties/client/Client.js +1 -1
  29. package/api/resources/jobs/client/Client.d.ts +2 -1
  30. package/api/resources/jobs/client/Client.js +13 -6
  31. package/api/resources/jobs/client/requests/JobsListActiveRequest.d.ts +13 -0
  32. package/api/resources/jobs/client/requests/JobsListActiveRequest.js +5 -0
  33. package/api/resources/jobs/client/requests/index.d.ts +1 -0
  34. package/api/resources/messages/client/Client.js +1 -1
  35. package/api/resources/models/client/Client.d.ts +2 -0
  36. package/api/resources/models/client/Client.js +3 -1
  37. package/api/resources/projects/client/Client.js +1 -1
  38. package/api/resources/providers/client/Client.js +5 -5
  39. package/api/resources/runs/client/Client.js +4 -4
  40. package/api/resources/runs/resources/messages/client/Client.js +1 -1
  41. package/api/resources/runs/resources/steps/client/Client.js +1 -1
  42. package/api/resources/runs/resources/usage/client/Client.js +1 -1
  43. package/api/resources/sources/client/Client.js +7 -7
  44. package/api/resources/sources/resources/files/client/Client.js +7 -4
  45. package/api/resources/sources/resources/files/client/requests/FilesListRequest.d.ts +4 -0
  46. package/api/resources/sources/resources/index.d.ts +1 -0
  47. package/api/resources/sources/resources/index.js +1 -0
  48. package/api/resources/sources/resources/passages/client/Client.d.ts +2 -1
  49. package/api/resources/sources/resources/passages/client/Client.js +16 -3
  50. package/api/resources/sources/resources/passages/client/index.d.ts +1 -1
  51. package/api/resources/sources/resources/passages/client/index.js +15 -0
  52. package/api/resources/sources/resources/passages/client/requests/PassagesListRequest.d.ts +21 -0
  53. package/api/resources/sources/resources/passages/client/requests/PassagesListRequest.js +5 -0
  54. package/api/resources/sources/resources/passages/client/requests/index.d.ts +1 -0
  55. package/api/resources/sources/resources/passages/client/requests/index.js +2 -0
  56. package/api/resources/steps/client/Client.js +11 -3
  57. package/api/resources/steps/client/requests/StepsListRequest.d.ts +4 -0
  58. package/api/resources/tags/client/Client.js +1 -1
  59. package/api/resources/telemetry/client/Client.js +1 -1
  60. package/api/resources/templates/client/Client.js +1 -1
  61. package/api/resources/templates/resources/agents/client/Client.js +1 -1
  62. package/api/resources/tools/client/Client.js +17 -17
  63. package/api/resources/tools/types/AddMcpServerResponseItem.d.ts +1 -1
  64. package/api/resources/tools/types/DeleteMcpServerResponseItem.d.ts +1 -1
  65. package/api/resources/voice/client/Client.js +1 -1
  66. package/api/types/AgentType.d.ts +2 -1
  67. package/api/types/AgentType.js +1 -0
  68. package/api/types/Block.d.ts +2 -0
  69. package/api/types/BlockUpdate.d.ts +2 -0
  70. package/api/types/CreateBlock.d.ts +2 -0
  71. package/api/types/FileMetadata.d.ts +7 -0
  72. package/api/types/FileProcessingStatus.d.ts +11 -0
  73. package/api/types/FileProcessingStatus.js +13 -0
  74. package/api/types/LettaBatchRequest.d.ts +2 -0
  75. package/api/types/LettaRequest.d.ts +2 -0
  76. package/api/types/LettaStreamingRequest.d.ts +2 -0
  77. package/api/types/Memory.d.ts +2 -0
  78. package/api/types/MessageType.d.ts +13 -0
  79. package/api/types/MessageType.js +15 -0
  80. package/api/types/Passage.d.ts +2 -0
  81. package/api/types/Step.d.ts +2 -0
  82. package/api/types/ToolType.d.ts +2 -1
  83. package/api/types/ToolType.js +1 -0
  84. package/api/types/index.d.ts +2 -0
  85. package/api/types/index.js +2 -0
  86. package/dist/api/resources/agents/client/Client.d.ts +18 -0
  87. package/dist/api/resources/agents/client/Client.js +84 -9
  88. package/dist/api/resources/agents/client/requests/SummarizeAgentConversationRequest.d.ts +15 -0
  89. package/dist/api/resources/agents/client/requests/SummarizeAgentConversationRequest.js +5 -0
  90. package/dist/api/resources/agents/client/requests/index.d.ts +1 -0
  91. package/dist/api/resources/agents/resources/blocks/client/Client.js +5 -5
  92. package/dist/api/resources/agents/resources/context/client/Client.js +1 -1
  93. package/dist/api/resources/agents/resources/coreMemory/client/Client.js +1 -1
  94. package/dist/api/resources/agents/resources/groups/client/Client.js +1 -1
  95. package/dist/api/resources/agents/resources/memoryVariables/client/Client.js +1 -1
  96. package/dist/api/resources/agents/resources/messages/client/Client.js +6 -6
  97. package/dist/api/resources/agents/resources/passages/client/Client.js +4 -4
  98. package/dist/api/resources/agents/resources/passages/client/requests/PassageUpdate.d.ts +2 -0
  99. package/dist/api/resources/agents/resources/sources/client/Client.js +3 -3
  100. package/dist/api/resources/agents/resources/templates/client/Client.js +3 -3
  101. package/dist/api/resources/agents/resources/tools/client/Client.js +3 -3
  102. package/dist/api/resources/batches/client/Client.js +4 -4
  103. package/dist/api/resources/blocks/client/Client.js +6 -6
  104. package/dist/api/resources/blocks/resources/agents/client/Client.js +1 -1
  105. package/dist/api/resources/clientSideAccessTokens/client/Client.js +2 -2
  106. package/dist/api/resources/embeddingModels/client/Client.d.ts +2 -0
  107. package/dist/api/resources/embeddingModels/client/Client.js +3 -1
  108. package/dist/api/resources/groups/client/Client.js +6 -6
  109. package/dist/api/resources/groups/resources/messages/client/Client.js +5 -5
  110. package/dist/api/resources/health/client/Client.js +1 -1
  111. package/dist/api/resources/identities/client/Client.js +7 -7
  112. package/dist/api/resources/identities/resources/properties/client/Client.js +1 -1
  113. package/dist/api/resources/jobs/client/Client.d.ts +2 -1
  114. package/dist/api/resources/jobs/client/Client.js +13 -6
  115. package/dist/api/resources/jobs/client/requests/JobsListActiveRequest.d.ts +13 -0
  116. package/dist/api/resources/jobs/client/requests/JobsListActiveRequest.js +5 -0
  117. package/dist/api/resources/jobs/client/requests/index.d.ts +1 -0
  118. package/dist/api/resources/messages/client/Client.js +1 -1
  119. package/dist/api/resources/models/client/Client.d.ts +2 -0
  120. package/dist/api/resources/models/client/Client.js +3 -1
  121. package/dist/api/resources/projects/client/Client.js +1 -1
  122. package/dist/api/resources/providers/client/Client.js +5 -5
  123. package/dist/api/resources/runs/client/Client.js +4 -4
  124. package/dist/api/resources/runs/resources/messages/client/Client.js +1 -1
  125. package/dist/api/resources/runs/resources/steps/client/Client.js +1 -1
  126. package/dist/api/resources/runs/resources/usage/client/Client.js +1 -1
  127. package/dist/api/resources/sources/client/Client.js +7 -7
  128. package/dist/api/resources/sources/resources/files/client/Client.js +7 -4
  129. package/dist/api/resources/sources/resources/files/client/requests/FilesListRequest.d.ts +4 -0
  130. package/dist/api/resources/sources/resources/index.d.ts +1 -0
  131. package/dist/api/resources/sources/resources/index.js +1 -0
  132. package/dist/api/resources/sources/resources/passages/client/Client.d.ts +2 -1
  133. package/dist/api/resources/sources/resources/passages/client/Client.js +16 -3
  134. package/dist/api/resources/sources/resources/passages/client/index.d.ts +1 -1
  135. package/dist/api/resources/sources/resources/passages/client/index.js +15 -0
  136. package/dist/api/resources/sources/resources/passages/client/requests/PassagesListRequest.d.ts +21 -0
  137. package/dist/api/resources/sources/resources/passages/client/requests/PassagesListRequest.js +5 -0
  138. package/dist/api/resources/sources/resources/passages/client/requests/index.d.ts +1 -0
  139. package/dist/api/resources/sources/resources/passages/client/requests/index.js +2 -0
  140. package/dist/api/resources/steps/client/Client.js +11 -3
  141. package/dist/api/resources/steps/client/requests/StepsListRequest.d.ts +4 -0
  142. package/dist/api/resources/tags/client/Client.js +1 -1
  143. package/dist/api/resources/telemetry/client/Client.js +1 -1
  144. package/dist/api/resources/templates/client/Client.js +1 -1
  145. package/dist/api/resources/templates/resources/agents/client/Client.js +1 -1
  146. package/dist/api/resources/tools/client/Client.js +17 -17
  147. package/dist/api/resources/tools/types/AddMcpServerResponseItem.d.ts +1 -1
  148. package/dist/api/resources/tools/types/DeleteMcpServerResponseItem.d.ts +1 -1
  149. package/dist/api/resources/voice/client/Client.js +1 -1
  150. package/dist/api/types/AgentType.d.ts +2 -1
  151. package/dist/api/types/AgentType.js +1 -0
  152. package/dist/api/types/Block.d.ts +2 -0
  153. package/dist/api/types/BlockUpdate.d.ts +2 -0
  154. package/dist/api/types/CreateBlock.d.ts +2 -0
  155. package/dist/api/types/FileMetadata.d.ts +7 -0
  156. package/dist/api/types/FileProcessingStatus.d.ts +11 -0
  157. package/dist/api/types/FileProcessingStatus.js +13 -0
  158. package/dist/api/types/LettaBatchRequest.d.ts +2 -0
  159. package/dist/api/types/LettaRequest.d.ts +2 -0
  160. package/dist/api/types/LettaStreamingRequest.d.ts +2 -0
  161. package/dist/api/types/Memory.d.ts +2 -0
  162. package/dist/api/types/MessageType.d.ts +13 -0
  163. package/dist/api/types/MessageType.js +15 -0
  164. package/dist/api/types/Passage.d.ts +2 -0
  165. package/dist/api/types/Step.d.ts +2 -0
  166. package/dist/api/types/ToolType.d.ts +2 -1
  167. package/dist/api/types/ToolType.js +1 -0
  168. package/dist/api/types/index.d.ts +2 -0
  169. package/dist/api/types/index.js +2 -0
  170. package/dist/serialization/resources/agents/resources/passages/client/requests/PassageUpdate.d.ts +1 -0
  171. package/dist/serialization/resources/agents/resources/passages/client/requests/PassageUpdate.js +1 -0
  172. package/dist/serialization/resources/tools/types/AddMcpServerResponseItem.d.ts +2 -2
  173. package/dist/serialization/resources/tools/types/AddMcpServerResponseItem.js +2 -2
  174. package/dist/serialization/resources/tools/types/DeleteMcpServerResponseItem.d.ts +2 -2
  175. package/dist/serialization/resources/tools/types/DeleteMcpServerResponseItem.js +2 -2
  176. package/dist/serialization/types/AgentType.d.ts +1 -1
  177. package/dist/serialization/types/AgentType.js +1 -0
  178. package/dist/serialization/types/Block.d.ts +1 -0
  179. package/dist/serialization/types/Block.js +1 -0
  180. package/dist/serialization/types/BlockUpdate.d.ts +1 -0
  181. package/dist/serialization/types/BlockUpdate.js +1 -0
  182. package/dist/serialization/types/CreateBlock.d.ts +1 -0
  183. package/dist/serialization/types/CreateBlock.js +1 -0
  184. package/dist/serialization/types/FileMetadata.d.ts +4 -0
  185. package/dist/serialization/types/FileMetadata.js +4 -0
  186. package/dist/serialization/types/FileProcessingStatus.d.ts +10 -0
  187. package/dist/serialization/types/FileProcessingStatus.js +41 -0
  188. package/dist/serialization/types/LettaBatchRequest.d.ts +2 -0
  189. package/dist/serialization/types/LettaBatchRequest.js +2 -0
  190. package/dist/serialization/types/LettaRequest.d.ts +2 -0
  191. package/dist/serialization/types/LettaRequest.js +2 -0
  192. package/dist/serialization/types/LettaStreamingRequest.d.ts +2 -0
  193. package/dist/serialization/types/LettaStreamingRequest.js +2 -0
  194. package/dist/serialization/types/Memory.d.ts +1 -0
  195. package/dist/serialization/types/Memory.js +1 -0
  196. package/dist/serialization/types/MessageType.d.ts +10 -0
  197. package/dist/serialization/types/MessageType.js +49 -0
  198. package/dist/serialization/types/Passage.d.ts +1 -0
  199. package/dist/serialization/types/Passage.js +1 -0
  200. package/dist/serialization/types/Step.d.ts +1 -0
  201. package/dist/serialization/types/Step.js +1 -0
  202. package/dist/serialization/types/ToolType.d.ts +1 -1
  203. package/dist/serialization/types/ToolType.js +1 -0
  204. package/dist/serialization/types/index.d.ts +2 -0
  205. package/dist/serialization/types/index.js +2 -0
  206. package/dist/version.d.ts +1 -1
  207. package/dist/version.js +1 -1
  208. package/package.json +1 -1
  209. package/reference.md +124 -2
  210. package/serialization/resources/agents/resources/passages/client/requests/PassageUpdate.d.ts +1 -0
  211. package/serialization/resources/agents/resources/passages/client/requests/PassageUpdate.js +1 -0
  212. package/serialization/resources/tools/types/AddMcpServerResponseItem.d.ts +2 -2
  213. package/serialization/resources/tools/types/AddMcpServerResponseItem.js +2 -2
  214. package/serialization/resources/tools/types/DeleteMcpServerResponseItem.d.ts +2 -2
  215. package/serialization/resources/tools/types/DeleteMcpServerResponseItem.js +2 -2
  216. package/serialization/types/AgentType.d.ts +1 -1
  217. package/serialization/types/AgentType.js +1 -0
  218. package/serialization/types/Block.d.ts +1 -0
  219. package/serialization/types/Block.js +1 -0
  220. package/serialization/types/BlockUpdate.d.ts +1 -0
  221. package/serialization/types/BlockUpdate.js +1 -0
  222. package/serialization/types/CreateBlock.d.ts +1 -0
  223. package/serialization/types/CreateBlock.js +1 -0
  224. package/serialization/types/FileMetadata.d.ts +4 -0
  225. package/serialization/types/FileMetadata.js +4 -0
  226. package/serialization/types/FileProcessingStatus.d.ts +10 -0
  227. package/serialization/types/FileProcessingStatus.js +41 -0
  228. package/serialization/types/LettaBatchRequest.d.ts +2 -0
  229. package/serialization/types/LettaBatchRequest.js +2 -0
  230. package/serialization/types/LettaRequest.d.ts +2 -0
  231. package/serialization/types/LettaRequest.js +2 -0
  232. package/serialization/types/LettaStreamingRequest.d.ts +2 -0
  233. package/serialization/types/LettaStreamingRequest.js +2 -0
  234. package/serialization/types/Memory.d.ts +1 -0
  235. package/serialization/types/Memory.js +1 -0
  236. package/serialization/types/MessageType.d.ts +10 -0
  237. package/serialization/types/MessageType.js +49 -0
  238. package/serialization/types/Passage.d.ts +1 -0
  239. package/serialization/types/Passage.js +1 -0
  240. package/serialization/types/Step.d.ts +1 -0
  241. package/serialization/types/Step.js +1 -0
  242. package/serialization/types/ToolType.d.ts +1 -1
  243. package/serialization/types/ToolType.js +1 -0
  244. package/serialization/types/index.d.ts +2 -0
  245. package/serialization/types/index.js +2 -0
  246. package/version.d.ts +1 -1
  247. package/version.js +1 -1
@@ -101,7 +101,7 @@ class Runs {
101
101
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
102
102
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, "v1/runs/"),
103
103
  method: "GET",
104
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.122", "User-Agent": "@letta-ai/letta-client/0.1.122", "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),
104
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.124", "User-Agent": "@letta-ai/letta-client/0.1.124", "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),
105
105
  contentType: "application/json",
106
106
  queryParameters: _queryParams,
107
107
  requestType: "json",
@@ -177,7 +177,7 @@ class Runs {
177
177
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
178
178
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, "v1/runs/active"),
179
179
  method: "GET",
180
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.122", "User-Agent": "@letta-ai/letta-client/0.1.122", "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),
180
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.124", "User-Agent": "@letta-ai/letta-client/0.1.124", "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),
181
181
  contentType: "application/json",
182
182
  queryParameters: _queryParams,
183
183
  requestType: "json",
@@ -243,7 +243,7 @@ class Runs {
243
243
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
244
244
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, `v1/runs/${encodeURIComponent(runId)}`),
245
245
  method: "GET",
246
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.122", "User-Agent": "@letta-ai/letta-client/0.1.122", "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
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.124", "User-Agent": "@letta-ai/letta-client/0.1.124", "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),
247
247
  contentType: "application/json",
248
248
  requestType: "json",
249
249
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -308,7 +308,7 @@ class Runs {
308
308
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
309
309
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, `v1/runs/${encodeURIComponent(runId)}`),
310
310
  method: "DELETE",
311
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.122", "User-Agent": "@letta-ai/letta-client/0.1.122", "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
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.124", "User-Agent": "@letta-ai/letta-client/0.1.124", "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,
@@ -107,7 +107,7 @@ class Messages {
107
107
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
108
108
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, `v1/runs/${encodeURIComponent(runId)}/messages`),
109
109
  method: "GET",
110
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.122", "User-Agent": "@letta-ai/letta-client/0.1.122", "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
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.124", "User-Agent": "@letta-ai/letta-client/0.1.124", "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
111
  contentType: "application/json",
112
112
  queryParameters: _queryParams,
113
113
  requestType: "json",
@@ -101,7 +101,7 @@ class Steps {
101
101
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
102
102
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, `v1/runs/${encodeURIComponent(runId)}/steps`),
103
103
  method: "GET",
104
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.122", "User-Agent": "@letta-ai/letta-client/0.1.122", "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),
104
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.124", "User-Agent": "@letta-ai/letta-client/0.1.124", "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),
105
105
  contentType: "application/json",
106
106
  queryParameters: _queryParams,
107
107
  requestType: "json",
@@ -76,7 +76,7 @@ class Usage {
76
76
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
77
77
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, `v1/runs/${encodeURIComponent(runId)}/usage`),
78
78
  method: "GET",
79
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.122", "User-Agent": "@letta-ai/letta-client/0.1.122", "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),
79
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.124", "User-Agent": "@letta-ai/letta-client/0.1.124", "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),
80
80
  contentType: "application/json",
81
81
  requestType: "json",
82
82
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -85,7 +85,7 @@ class Sources {
85
85
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
86
86
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, "v1/sources/count"),
87
87
  method: "GET",
88
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.122", "User-Agent": "@letta-ai/letta-client/0.1.122", "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
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.124", "User-Agent": "@letta-ai/letta-client/0.1.124", "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),
89
89
  contentType: "application/json",
90
90
  requestType: "json",
91
91
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -150,7 +150,7 @@ class Sources {
150
150
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
151
151
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, `v1/sources/${encodeURIComponent(sourceId)}`),
152
152
  method: "GET",
153
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.122", "User-Agent": "@letta-ai/letta-client/0.1.122", "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),
153
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.124", "User-Agent": "@letta-ai/letta-client/0.1.124", "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),
154
154
  contentType: "application/json",
155
155
  requestType: "json",
156
156
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -215,7 +215,7 @@ class Sources {
215
215
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
216
216
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, `v1/sources/${encodeURIComponent(sourceId)}`),
217
217
  method: "DELETE",
218
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.122", "User-Agent": "@letta-ai/letta-client/0.1.122", "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),
218
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.124", "User-Agent": "@letta-ai/letta-client/0.1.124", "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),
219
219
  contentType: "application/json",
220
220
  requestType: "json",
221
221
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -275,7 +275,7 @@ class Sources {
275
275
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
276
276
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, `v1/sources/${encodeURIComponent(sourceId)}`),
277
277
  method: "PATCH",
278
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.122", "User-Agent": "@letta-ai/letta-client/0.1.122", "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),
278
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.124", "User-Agent": "@letta-ai/letta-client/0.1.124", "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),
279
279
  contentType: "application/json",
280
280
  requestType: "json",
281
281
  body: serializers.SourceUpdate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -341,7 +341,7 @@ class Sources {
341
341
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
342
342
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, `v1/sources/name/${encodeURIComponent(sourceName)}`),
343
343
  method: "GET",
344
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.122", "User-Agent": "@letta-ai/letta-client/0.1.122", "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),
344
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.124", "User-Agent": "@letta-ai/letta-client/0.1.124", "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
345
  contentType: "application/json",
346
346
  requestType: "json",
347
347
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -405,7 +405,7 @@ class Sources {
405
405
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
406
406
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, "v1/sources/"),
407
407
  method: "GET",
408
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.122", "User-Agent": "@letta-ai/letta-client/0.1.122", "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),
408
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.124", "User-Agent": "@letta-ai/letta-client/0.1.124", "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),
409
409
  contentType: "application/json",
410
410
  requestType: "json",
411
411
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -472,7 +472,7 @@ class Sources {
472
472
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
473
473
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, "v1/sources/"),
474
474
  method: "POST",
475
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.122", "User-Agent": "@letta-ai/letta-client/0.1.122", "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),
475
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.124", "User-Agent": "@letta-ai/letta-client/0.1.124", "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),
476
476
  contentType: "application/json",
477
477
  requestType: "json",
478
478
  body: serializers.SourceCreate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -80,7 +80,7 @@ class Files {
80
80
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
81
81
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, `v1/sources/${encodeURIComponent(sourceId)}/upload`),
82
82
  method: "POST",
83
- headers: Object.assign(Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.122", "User-Agent": "@letta-ai/letta-client/0.1.122", "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),
83
+ headers: Object.assign(Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.124", "User-Agent": "@letta-ai/letta-client/0.1.124", "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),
84
84
  requestType: "file",
85
85
  duplex: _maybeEncodedRequest.duplex,
86
86
  body: _maybeEncodedRequest.body,
@@ -144,7 +144,7 @@ class Files {
144
144
  list(sourceId_1) {
145
145
  return __awaiter(this, arguments, void 0, function* (sourceId, request = {}, requestOptions) {
146
146
  var _a, _b, _c;
147
- const { limit, after } = request;
147
+ const { limit, after, includeContent } = request;
148
148
  const _queryParams = {};
149
149
  if (limit != null) {
150
150
  _queryParams["limit"] = limit.toString();
@@ -152,10 +152,13 @@ class Files {
152
152
  if (after != null) {
153
153
  _queryParams["after"] = after;
154
154
  }
155
+ if (includeContent != null) {
156
+ _queryParams["include_content"] = includeContent.toString();
157
+ }
155
158
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
156
159
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, `v1/sources/${encodeURIComponent(sourceId)}/files`),
157
160
  method: "GET",
158
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.122", "User-Agent": "@letta-ai/letta-client/0.1.122", "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
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.124", "User-Agent": "@letta-ai/letta-client/0.1.124", "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),
159
162
  contentType: "application/json",
160
163
  queryParameters: _queryParams,
161
164
  requestType: "json",
@@ -222,7 +225,7 @@ class Files {
222
225
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
223
226
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, `v1/sources/${encodeURIComponent(sourceId)}/${encodeURIComponent(fileId)}`),
224
227
  method: "DELETE",
225
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.122", "User-Agent": "@letta-ai/letta-client/0.1.122", "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
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.124", "User-Agent": "@letta-ai/letta-client/0.1.124", "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),
226
229
  contentType: "application/json",
227
230
  requestType: "json",
228
231
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -14,4 +14,8 @@ export interface FilesListRequest {
14
14
  * Pagination cursor to fetch the next set of results
15
15
  */
16
16
  after?: string;
17
+ /**
18
+ * Whether to include full file content
19
+ */
20
+ includeContent?: boolean;
17
21
  }
@@ -1,3 +1,4 @@
1
1
  export * as files from "./files";
2
2
  export * as passages from "./passages";
3
3
  export * from "./files/client/requests";
4
+ export * from "./passages/client/requests";
@@ -40,3 +40,4 @@ exports.passages = exports.files = void 0;
40
40
  exports.files = __importStar(require("./files"));
41
41
  exports.passages = __importStar(require("./passages"));
42
42
  __exportStar(require("./files/client/requests"), exports);
43
+ __exportStar(require("./passages/client/requests"), exports);
@@ -30,6 +30,7 @@ export declare class Passages {
30
30
  * List all passages associated with a data source.
31
31
  *
32
32
  * @param {string} sourceId
33
+ * @param {Letta.sources.PassagesListRequest} request
33
34
  * @param {Passages.RequestOptions} requestOptions - Request-specific configuration.
34
35
  *
35
36
  * @throws {@link Letta.UnprocessableEntityError}
@@ -37,7 +38,7 @@ export declare class Passages {
37
38
  * @example
38
39
  * await client.sources.passages.list("source_id")
39
40
  */
40
- list(sourceId: string, requestOptions?: Passages.RequestOptions): Promise<Letta.Passage[]>;
41
+ list(sourceId: string, request?: Letta.sources.PassagesListRequest, requestOptions?: Passages.RequestOptions): Promise<Letta.Passage[]>;
41
42
  protected _getCustomAuthorizationHeaders(): Promise<{
42
43
  Authorization: string;
43
44
  }>;
@@ -63,6 +63,7 @@ class Passages {
63
63
  * List all passages associated with a data source.
64
64
  *
65
65
  * @param {string} sourceId
66
+ * @param {Letta.sources.PassagesListRequest} request
66
67
  * @param {Passages.RequestOptions} requestOptions - Request-specific configuration.
67
68
  *
68
69
  * @throws {@link Letta.UnprocessableEntityError}
@@ -70,14 +71,26 @@ class Passages {
70
71
  * @example
71
72
  * await client.sources.passages.list("source_id")
72
73
  */
73
- list(sourceId, requestOptions) {
74
- return __awaiter(this, void 0, void 0, function* () {
74
+ list(sourceId_1) {
75
+ return __awaiter(this, arguments, void 0, function* (sourceId, request = {}, requestOptions) {
75
76
  var _a, _b, _c;
77
+ const { after, before, limit } = request;
78
+ const _queryParams = {};
79
+ if (after != null) {
80
+ _queryParams["after"] = after;
81
+ }
82
+ if (before != null) {
83
+ _queryParams["before"] = before;
84
+ }
85
+ if (limit != null) {
86
+ _queryParams["limit"] = limit.toString();
87
+ }
76
88
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
77
89
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, `v1/sources/${encodeURIComponent(sourceId)}/passages`),
78
90
  method: "GET",
79
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.122", "User-Agent": "@letta-ai/letta-client/0.1.122", "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),
91
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.124", "User-Agent": "@letta-ai/letta-client/0.1.124", "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),
80
92
  contentType: "application/json",
93
+ queryParameters: _queryParams,
81
94
  requestType: "json",
82
95
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
83
96
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
@@ -1 +1 @@
1
- export {};
1
+ export * from "./requests";
@@ -1,2 +1,17 @@
1
1
  "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
2
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./requests"), exports);
@@ -0,0 +1,21 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * @example
6
+ * {}
7
+ */
8
+ export interface PassagesListRequest {
9
+ /**
10
+ * Message after which to retrieve the returned messages.
11
+ */
12
+ after?: string;
13
+ /**
14
+ * Message before which to retrieve the returned messages.
15
+ */
16
+ before?: string;
17
+ /**
18
+ * Maximum number of messages to retrieve.
19
+ */
20
+ limit?: number;
21
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1 @@
1
+ export { type PassagesListRequest } from "./PassagesListRequest";
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -74,7 +74,7 @@ class Steps {
74
74
  list() {
75
75
  return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
76
76
  var _a, _b, _c;
77
- const { before, after, limit, order, startDate, endDate, model, agentId } = request;
77
+ const { before, after, limit, order, startDate, endDate, model, agentId, traceIds } = request;
78
78
  const _queryParams = {};
79
79
  if (before != null) {
80
80
  _queryParams["before"] = before;
@@ -100,10 +100,18 @@ class Steps {
100
100
  if (agentId != null) {
101
101
  _queryParams["agent_id"] = agentId;
102
102
  }
103
+ if (traceIds != null) {
104
+ if (Array.isArray(traceIds)) {
105
+ _queryParams["trace_ids"] = traceIds.map((item) => item);
106
+ }
107
+ else {
108
+ _queryParams["trace_ids"] = traceIds;
109
+ }
110
+ }
103
111
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
104
112
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, "v1/steps/"),
105
113
  method: "GET",
106
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.122", "User-Agent": "@letta-ai/letta-client/0.1.122", "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),
114
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.124", "User-Agent": "@letta-ai/letta-client/0.1.124", "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
115
  contentType: "application/json",
108
116
  queryParameters: _queryParams,
109
117
  requestType: "json",
@@ -169,7 +177,7 @@ class Steps {
169
177
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
170
178
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, `v1/steps/${encodeURIComponent(stepId)}`),
171
179
  method: "GET",
172
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.122", "User-Agent": "@letta-ai/letta-client/0.1.122", "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),
180
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.124", "User-Agent": "@letta-ai/letta-client/0.1.124", "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),
173
181
  contentType: "application/json",
174
182
  requestType: "json",
175
183
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -38,4 +38,8 @@ export interface StepsListRequest {
38
38
  * Filter by the ID of the agent that performed the step
39
39
  */
40
40
  agentId?: string;
41
+ /**
42
+ * Filter by trace ids returned by the server
43
+ */
44
+ traceIds?: string | string[];
41
45
  }
@@ -87,7 +87,7 @@ class Tags {
87
87
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
88
88
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, "v1/tags/"),
89
89
  method: "GET",
90
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.122", "User-Agent": "@letta-ai/letta-client/0.1.122", "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),
90
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.124", "User-Agent": "@letta-ai/letta-client/0.1.124", "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),
91
91
  contentType: "application/json",
92
92
  queryParameters: _queryParams,
93
93
  requestType: "json",
@@ -74,7 +74,7 @@ class Telemetry {
74
74
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
75
75
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, `v1/telemetry/${encodeURIComponent(stepId)}`),
76
76
  method: "GET",
77
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.122", "User-Agent": "@letta-ai/letta-client/0.1.122", "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),
77
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.124", "User-Agent": "@letta-ai/letta-client/0.1.124", "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),
78
78
  contentType: "application/json",
79
79
  requestType: "json",
80
80
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -92,7 +92,7 @@ class Templates {
92
92
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
93
93
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, "v1/templates"),
94
94
  method: "GET",
95
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.122", "User-Agent": "@letta-ai/letta-client/0.1.122", "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),
95
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.124", "User-Agent": "@letta-ai/letta-client/0.1.124", "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
96
  contentType: "application/json",
97
97
  queryParameters: _queryParams,
98
98
  requestType: "json",
@@ -78,7 +78,7 @@ class Agents {
78
78
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
79
79
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, `v1/templates/${encodeURIComponent(project)}/${encodeURIComponent(templateVersion)}/agents`),
80
80
  method: "POST",
81
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.122", "User-Agent": "@letta-ai/letta-client/0.1.122", "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),
81
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.124", "User-Agent": "@letta-ai/letta-client/0.1.124", "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
82
  contentType: "application/json",
83
83
  requestType: "json",
84
84
  body: serializers.templates.AgentsCreateRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),