@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
@@ -76,7 +76,7 @@ class Tools {
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/tools/${encodeURIComponent(toolId)}`),
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,
@@ -141,7 +141,7 @@ class Tools {
141
141
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
142
142
  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/tools/${encodeURIComponent(toolId)}`),
143
143
  method: "DELETE",
144
- 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),
144
+ 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),
145
145
  contentType: "application/json",
146
146
  requestType: "json",
147
147
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -201,7 +201,7 @@ class Tools {
201
201
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
202
202
  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/tools/${encodeURIComponent(toolId)}`),
203
203
  method: "PATCH",
204
- 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),
204
+ 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),
205
205
  contentType: "application/json",
206
206
  requestType: "json",
207
207
  body: serializers.ToolUpdate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -272,7 +272,7 @@ class Tools {
272
272
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
273
273
  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/tools/count"),
274
274
  method: "GET",
275
- 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),
275
+ 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),
276
276
  contentType: "application/json",
277
277
  queryParameters: _queryParams,
278
278
  requestType: "json",
@@ -349,7 +349,7 @@ class Tools {
349
349
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
350
350
  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/tools/"),
351
351
  method: "GET",
352
- 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),
352
+ 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),
353
353
  contentType: "application/json",
354
354
  queryParameters: _queryParams,
355
355
  requestType: "json",
@@ -417,7 +417,7 @@ class Tools {
417
417
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
418
418
  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/tools/"),
419
419
  method: "POST",
420
- 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),
420
+ 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),
421
421
  contentType: "application/json",
422
422
  requestType: "json",
423
423
  body: serializers.ToolCreate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -485,7 +485,7 @@ class Tools {
485
485
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
486
486
  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/tools/"),
487
487
  method: "PUT",
488
- 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),
488
+ 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),
489
489
  contentType: "application/json",
490
490
  requestType: "json",
491
491
  body: serializers.ToolCreate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -550,7 +550,7 @@ class Tools {
550
550
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
551
551
  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/tools/add-base-tools"),
552
552
  method: "POST",
553
- 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),
553
+ 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),
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,
@@ -620,7 +620,7 @@ class Tools {
620
620
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
621
621
  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/tools/run"),
622
622
  method: "POST",
623
- 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),
623
+ 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),
624
624
  contentType: "application/json",
625
625
  requestType: "json",
626
626
  body: serializers.ToolRunFromSource.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -687,7 +687,7 @@ class Tools {
687
687
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
688
688
  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/tools/composio/apps"),
689
689
  method: "GET",
690
- 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, "user-id": userId != null ? userId : undefined }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
690
+ 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, "user-id": userId != null ? userId : undefined }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
691
691
  contentType: "application/json",
692
692
  requestType: "json",
693
693
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -752,7 +752,7 @@ class Tools {
752
752
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
753
753
  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/tools/composio/apps/${encodeURIComponent(composioAppName)}/actions`),
754
754
  method: "GET",
755
- 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),
755
+ 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),
756
756
  contentType: "application/json",
757
757
  requestType: "json",
758
758
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -817,7 +817,7 @@ class Tools {
817
817
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
818
818
  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/tools/composio/${encodeURIComponent(composioActionName)}`),
819
819
  method: "POST",
820
- 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),
820
+ 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),
821
821
  contentType: "application/json",
822
822
  requestType: "json",
823
823
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -883,7 +883,7 @@ class Tools {
883
883
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
884
884
  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/tools/mcp/servers"),
885
885
  method: "GET",
886
- 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, "user-id": userId != null ? userId : undefined }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
886
+ 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, "user-id": userId != null ? userId : undefined }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
887
887
  contentType: "application/json",
888
888
  requestType: "json",
889
889
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -952,7 +952,7 @@ class Tools {
952
952
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
953
953
  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/tools/mcp/servers"),
954
954
  method: "PUT",
955
- 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),
955
+ 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),
956
956
  contentType: "application/json",
957
957
  requestType: "json",
958
958
  body: serializers.AddMcpServerRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -1018,7 +1018,7 @@ class Tools {
1018
1018
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
1019
1019
  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/tools/mcp/servers/${encodeURIComponent(mcpServerName)}/tools`),
1020
1020
  method: "GET",
1021
- 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),
1021
+ 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),
1022
1022
  contentType: "application/json",
1023
1023
  requestType: "json",
1024
1024
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -1084,7 +1084,7 @@ class Tools {
1084
1084
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
1085
1085
  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/tools/mcp/servers/${encodeURIComponent(mcpServerName)}/${encodeURIComponent(mcpToolName)}`),
1086
1086
  method: "POST",
1087
- 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),
1087
+ 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),
1088
1088
  contentType: "application/json",
1089
1089
  requestType: "json",
1090
1090
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -1149,7 +1149,7 @@ class Tools {
1149
1149
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
1150
1150
  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/tools/mcp/servers/${encodeURIComponent(mcpServerName)}`),
1151
1151
  method: "DELETE",
1152
- 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),
1152
+ 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),
1153
1153
  contentType: "application/json",
1154
1154
  requestType: "json",
1155
1155
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -2,4 +2,4 @@
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
4
  import * as Letta from "../../../index";
5
- export type AddMcpServerResponseItem = Letta.SseServerConfig | Letta.StdioServerConfig;
5
+ export type AddMcpServerResponseItem = Letta.StdioServerConfig | Letta.SseServerConfig;
@@ -2,4 +2,4 @@
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
4
  import * as Letta from "../../../index";
5
- export type DeleteMcpServerResponseItem = Letta.SseServerConfig | Letta.StdioServerConfig;
5
+ export type DeleteMcpServerResponseItem = Letta.StdioServerConfig | Letta.SseServerConfig;
@@ -84,7 +84,7 @@ class Voice {
84
84
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
85
85
  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/voice-beta/${encodeURIComponent(agentId)}/chat/completions`),
86
86
  method: "POST",
87
- 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, "user-id": userId != null ? userId : undefined }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
87
+ 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, "user-id": userId != null ? userId : undefined }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
88
88
  contentType: "application/json",
89
89
  requestType: "json",
90
90
  body: serializers.CreateVoiceChatCompletionsRequestBody.jsonOrThrow(_body, {
@@ -4,9 +4,10 @@
4
4
  /**
5
5
  * Enum to represent the type of agent.
6
6
  */
7
- export type AgentType = "memgpt_agent" | "split_thread_agent" | "sleeptime_agent" | "voice_convo_agent" | "voice_sleeptime_agent";
7
+ export type AgentType = "memgpt_agent" | "memgpt_v2_agent" | "split_thread_agent" | "sleeptime_agent" | "voice_convo_agent" | "voice_sleeptime_agent";
8
8
  export declare const AgentType: {
9
9
  readonly MemgptAgent: "memgpt_agent";
10
+ readonly MemgptV2Agent: "memgpt_v2_agent";
10
11
  readonly SplitThreadAgent: "split_thread_agent";
11
12
  readonly SleeptimeAgent: "sleeptime_agent";
12
13
  readonly VoiceConvoAgent: "voice_convo_agent";
@@ -6,6 +6,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.AgentType = void 0;
7
7
  exports.AgentType = {
8
8
  MemgptAgent: "memgpt_agent",
9
+ MemgptV2Agent: "memgpt_v2_agent",
9
10
  SplitThreadAgent: "split_thread_agent",
10
11
  SleeptimeAgent: "sleeptime_agent",
11
12
  VoiceConvoAgent: "voice_convo_agent",
@@ -24,6 +24,8 @@ export interface Block {
24
24
  name?: string;
25
25
  /** Whether the block is a template (e.g. saved human/persona options). */
26
26
  isTemplate?: boolean;
27
+ /** Preserve the block on template migration. */
28
+ preserveOnMigration?: boolean;
27
29
  /** Label of the block (e.g. 'human', 'persona') in the context window. */
28
30
  label?: string;
29
31
  /** Whether the agent has read-only access to the block. */
@@ -13,6 +13,8 @@ export interface BlockUpdate {
13
13
  name?: string;
14
14
  /** Whether the block is a template (e.g. saved human/persona options). */
15
15
  isTemplate?: boolean;
16
+ /** Preserve the block on template migration. */
17
+ preserveOnMigration?: boolean;
16
18
  /** Label of the block (e.g. 'human', 'persona') in the context window. */
17
19
  label?: string;
18
20
  /** Whether the agent has read-only access to the block. */
@@ -12,6 +12,8 @@ export interface CreateBlock {
12
12
  /** Name of the block if it is a template. */
13
13
  name?: string;
14
14
  isTemplate?: boolean;
15
+ /** Preserve the block on template migration. */
16
+ preserveOnMigration?: boolean;
15
17
  /** Label of the block. */
16
18
  label: string;
17
19
  /** Whether the agent has read-only access to the block. */
@@ -1,6 +1,7 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
+ import * as Letta from "../index";
4
5
  /**
5
6
  * Representation of a single FileMetadata
6
7
  */
@@ -21,10 +22,16 @@ export interface FileMetadata {
21
22
  fileCreationDate?: string;
22
23
  /** The last modified date of the file. */
23
24
  fileLastModifiedDate?: string;
25
+ /** The current processing status of the file (e.g. pending, parsing, embedding, completed, error). */
26
+ processingStatus?: Letta.FileProcessingStatus;
27
+ /** Optional error message if the file failed processing. */
28
+ errorMessage?: string;
24
29
  /** The creation date of the file. */
25
30
  createdAt?: Date;
26
31
  /** The update date of the file. */
27
32
  updatedAt?: Date;
28
33
  /** Whether this file is deleted or not. */
29
34
  isDeleted?: boolean;
35
+ /** Optional full-text content of the file; only populated on demand due to its size. */
36
+ content?: string;
30
37
  }
@@ -0,0 +1,11 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export type FileProcessingStatus = "pending" | "parsing" | "embedding" | "completed" | "error";
5
+ export declare const FileProcessingStatus: {
6
+ readonly Pending: "pending";
7
+ readonly Parsing: "parsing";
8
+ readonly Embedding: "embedding";
9
+ readonly Completed: "completed";
10
+ readonly Error: "error";
11
+ };
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.FileProcessingStatus = void 0;
7
+ exports.FileProcessingStatus = {
8
+ Pending: "pending",
9
+ Parsing: "parsing",
10
+ Embedding: "embedding",
11
+ Completed: "completed",
12
+ Error: "error",
13
+ };
@@ -11,6 +11,8 @@ export interface LettaBatchRequest {
11
11
  assistantMessageToolName?: string;
12
12
  /** The name of the message argument in the designated message tool. */
13
13
  assistantMessageToolKwarg?: string;
14
+ /** Only return specified message types in the response. If `None` (default) returns all messages. */
15
+ includeReturnMessageTypes?: Letta.MessageType[];
14
16
  /** The ID of the agent to send this batch request for */
15
17
  agentId: string;
16
18
  }
@@ -11,4 +11,6 @@ export interface LettaRequest {
11
11
  assistantMessageToolName?: string;
12
12
  /** The name of the message argument in the designated message tool. */
13
13
  assistantMessageToolKwarg?: string;
14
+ /** Only return specified message types in the response. If `None` (default) returns all messages. */
15
+ includeReturnMessageTypes?: Letta.MessageType[];
14
16
  }
@@ -11,6 +11,8 @@ export interface LettaStreamingRequest {
11
11
  assistantMessageToolName?: string;
12
12
  /** The name of the message argument in the designated message tool. */
13
13
  assistantMessageToolKwarg?: string;
14
+ /** Only return specified message types in the response. If `None` (default) returns all messages. */
15
+ includeReturnMessageTypes?: Letta.MessageType[];
14
16
  /** Flag to determine if individual tokens should be streamed. Set to True for token streaming (requires stream_steps = True). */
15
17
  streamTokens?: boolean;
16
18
  }
@@ -8,6 +8,8 @@ import * as Letta from "../index";
8
8
  export interface Memory {
9
9
  /** Memory blocks contained in the agent's in-context memory */
10
10
  blocks: Letta.Block[];
11
+ /** Blocks representing the agent's in-context memory of an attached file */
12
+ fileBlocks?: Letta.Block[];
11
13
  /** Jinja2 template for compiling memory blocks into a prompt string */
12
14
  promptTemplate?: string;
13
15
  }
@@ -0,0 +1,13 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export type MessageType = "system_message" | "user_message" | "assistant_message" | "reasoning_message" | "hidden_reasoning_message" | "tool_call_message" | "tool_return_message";
5
+ export declare const MessageType: {
6
+ readonly SystemMessage: "system_message";
7
+ readonly UserMessage: "user_message";
8
+ readonly AssistantMessage: "assistant_message";
9
+ readonly ReasoningMessage: "reasoning_message";
10
+ readonly HiddenReasoningMessage: "hidden_reasoning_message";
11
+ readonly ToolCallMessage: "tool_call_message";
12
+ readonly ToolReturnMessage: "tool_return_message";
13
+ };
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.MessageType = void 0;
7
+ exports.MessageType = {
8
+ SystemMessage: "system_message",
9
+ UserMessage: "user_message",
10
+ AssistantMessage: "assistant_message",
11
+ ReasoningMessage: "reasoning_message",
12
+ HiddenReasoningMessage: "hidden_reasoning_message",
13
+ ToolCallMessage: "tool_call_message",
14
+ ToolReturnMessage: "tool_return_message",
15
+ };
@@ -32,6 +32,8 @@ export interface Passage {
32
32
  sourceId?: string;
33
33
  /** The unique identifier of the file associated with the passage. */
34
34
  fileId?: string;
35
+ /** The name of the file (only for source passages). */
36
+ fileName?: string;
35
37
  /** The metadata of the passage. */
36
38
  metadata?: Record<string, unknown>;
37
39
  /** The human-friendly ID of the Passage */
@@ -15,6 +15,8 @@ export interface Step {
15
15
  agentId?: string;
16
16
  /** The name of the provider used for this step. */
17
17
  providerName?: string;
18
+ /** The category of the provider used for this step. */
19
+ providerCategory?: string;
18
20
  /** The name of the model used for this step. */
19
21
  model?: string;
20
22
  /** The model endpoint url used for this step. */
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- export type ToolType = "custom" | "letta_core" | "letta_memory_core" | "letta_multi_agent_core" | "letta_sleeptime_core" | "letta_voice_sleeptime_core" | "letta_builtin" | "external_composio" | "external_langchain" | "external_mcp";
4
+ export type ToolType = "custom" | "letta_core" | "letta_memory_core" | "letta_multi_agent_core" | "letta_sleeptime_core" | "letta_voice_sleeptime_core" | "letta_builtin" | "letta_files_core" | "external_composio" | "external_langchain" | "external_mcp";
5
5
  export declare const ToolType: {
6
6
  readonly Custom: "custom";
7
7
  readonly LettaCore: "letta_core";
@@ -10,6 +10,7 @@ export declare const ToolType: {
10
10
  readonly LettaSleeptimeCore: "letta_sleeptime_core";
11
11
  readonly LettaVoiceSleeptimeCore: "letta_voice_sleeptime_core";
12
12
  readonly LettaBuiltin: "letta_builtin";
13
+ readonly LettaFilesCore: "letta_files_core";
13
14
  readonly ExternalComposio: "external_composio";
14
15
  readonly ExternalLangchain: "external_langchain";
15
16
  readonly ExternalMcp: "external_mcp";
@@ -12,6 +12,7 @@ exports.ToolType = {
12
12
  LettaSleeptimeCore: "letta_sleeptime_core",
13
13
  LettaVoiceSleeptimeCore: "letta_voice_sleeptime_core",
14
14
  LettaBuiltin: "letta_builtin",
15
+ LettaFilesCore: "letta_files_core",
15
16
  ExternalComposio: "external_composio",
16
17
  ExternalLangchain: "external_langchain",
17
18
  ExternalMcp: "external_mcp",
@@ -91,6 +91,7 @@ export * from "./EmbeddingConfig";
91
91
  export * from "./File_";
92
92
  export * from "./FileFile";
93
93
  export * from "./FileMetadata";
94
+ export * from "./FileProcessingStatus";
94
95
  export * from "./FunctionOutput";
95
96
  export * from "./FunctionCall";
96
97
  export * from "./FunctionDefinitionInput";
@@ -141,6 +142,7 @@ export * from "./MessageCreateContent";
141
142
  export * from "./MessageCreate";
142
143
  export * from "./MessageRole";
143
144
  export * from "./MessageSchema";
145
+ export * from "./MessageType";
144
146
  export * from "./OmittedReasoningContent";
145
147
  export * from "./Organization";
146
148
  export * from "./OrganizationCreate";
@@ -107,6 +107,7 @@ __exportStar(require("./EmbeddingConfig"), exports);
107
107
  __exportStar(require("./File_"), exports);
108
108
  __exportStar(require("./FileFile"), exports);
109
109
  __exportStar(require("./FileMetadata"), exports);
110
+ __exportStar(require("./FileProcessingStatus"), exports);
110
111
  __exportStar(require("./FunctionOutput"), exports);
111
112
  __exportStar(require("./FunctionCall"), exports);
112
113
  __exportStar(require("./FunctionDefinitionInput"), exports);
@@ -157,6 +158,7 @@ __exportStar(require("./MessageCreateContent"), exports);
157
158
  __exportStar(require("./MessageCreate"), exports);
158
159
  __exportStar(require("./MessageRole"), exports);
159
160
  __exportStar(require("./MessageSchema"), exports);
161
+ __exportStar(require("./MessageType"), exports);
160
162
  __exportStar(require("./OmittedReasoningContent"), exports);
161
163
  __exportStar(require("./Organization"), exports);
162
164
  __exportStar(require("./OrganizationCreate"), exports);
@@ -158,6 +158,24 @@ export declare class Agents {
158
158
  * await client.agents.modify("agent_id")
159
159
  */
160
160
  modify(agentId: string, request?: Letta.UpdateAgent, requestOptions?: Agents.RequestOptions): Promise<Letta.AgentState>;
161
+ /**
162
+ * Summarize an agent's conversation history to a target message length.
163
+ *
164
+ * This endpoint summarizes the current message history for a given agent,
165
+ * truncating and compressing it down to the specified `max_message_length`.
166
+ *
167
+ * @param {string} agentId
168
+ * @param {Letta.SummarizeAgentConversationRequest} request
169
+ * @param {Agents.RequestOptions} requestOptions - Request-specific configuration.
170
+ *
171
+ * @throws {@link Letta.UnprocessableEntityError}
172
+ *
173
+ * @example
174
+ * await client.agents.summarizeAgentConversation("agent_id", {
175
+ * maxMessageLength: 1
176
+ * })
177
+ */
178
+ summarizeAgentConversation(agentId: string, request: Letta.SummarizeAgentConversationRequest, requestOptions?: Agents.RequestOptions): Promise<Letta.AgentState>;
161
179
  /**
162
180
  * <Note>This endpoint is only available on Letta Cloud.</Note>
163
181
  *