@letta-ai/letta-client 0.0.68655 → 0.0.68657

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 (261) hide show
  1. package/Client.d.ts +3 -0
  2. package/Client.js +45 -40
  3. package/README.md +9 -9
  4. package/api/resources/agents/client/Client.js +9 -9
  5. package/api/resources/agents/client/requests/CreateAgentRequest.d.ts +3 -1
  6. package/api/resources/agents/client/requests/UpdateAgent.d.ts +3 -1
  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/files/client/Client.js +4 -4
  11. package/api/resources/agents/resources/folders/client/Client.js +3 -3
  12. package/api/resources/agents/resources/groups/client/Client.js +1 -1
  13. package/api/resources/agents/resources/memoryVariables/client/Client.js +1 -1
  14. package/api/resources/agents/resources/messages/client/Client.js +10 -10
  15. package/api/resources/agents/resources/passages/client/Client.js +5 -5
  16. package/api/resources/agents/resources/sources/client/Client.js +3 -3
  17. package/api/resources/agents/resources/templates/client/Client.js +3 -3
  18. package/api/resources/agents/resources/tools/client/Client.js +4 -4
  19. package/api/resources/archives/client/Client.d.ts +78 -0
  20. package/api/resources/archives/client/Client.js +325 -0
  21. package/api/resources/archives/client/index.d.ts +1 -0
  22. package/api/resources/archives/client/index.js +17 -0
  23. package/api/resources/archives/client/requests/ArchiveCreateRequest.d.ts +13 -0
  24. package/api/resources/archives/client/requests/ArchiveCreateRequest.js +5 -0
  25. package/api/resources/archives/client/requests/ArchiveUpdateRequest.d.ts +11 -0
  26. package/api/resources/archives/client/requests/ArchiveUpdateRequest.js +5 -0
  27. package/api/resources/archives/client/requests/ListArchivesRequest.d.ts +34 -0
  28. package/api/resources/archives/client/requests/ListArchivesRequest.js +5 -0
  29. package/api/resources/archives/client/requests/index.d.ts +3 -0
  30. package/api/resources/archives/client/requests/index.js +2 -0
  31. package/api/resources/archives/index.d.ts +2 -0
  32. package/api/resources/archives/index.js +18 -0
  33. package/api/resources/archives/types/ListArchivesRequestOrder.d.ts +11 -0
  34. package/api/resources/archives/types/ListArchivesRequestOrder.js +10 -0
  35. package/api/resources/archives/types/index.d.ts +1 -0
  36. package/api/resources/archives/types/index.js +17 -0
  37. package/api/resources/batches/client/Client.js +4 -4
  38. package/api/resources/batches/resources/messages/client/Client.js +1 -1
  39. package/api/resources/blocks/client/Client.js +6 -6
  40. package/api/resources/blocks/resources/agents/client/Client.js +1 -1
  41. package/api/resources/clientSideAccessTokens/client/Client.js +3 -3
  42. package/api/resources/folders/client/Client.d.ts +1 -1
  43. package/api/resources/folders/client/Client.js +9 -9
  44. package/api/resources/folders/resources/agents/client/Client.js +1 -1
  45. package/api/resources/folders/resources/files/client/Client.js +3 -3
  46. package/api/resources/folders/resources/passages/client/Client.js +1 -1
  47. package/api/resources/groups/client/Client.js +6 -6
  48. package/api/resources/groups/resources/messages/client/Client.js +5 -5
  49. package/api/resources/health/client/Client.js +1 -1
  50. package/api/resources/identities/client/Client.js +7 -7
  51. package/api/resources/identities/resources/agents/client/Client.js +1 -1
  52. package/api/resources/identities/resources/blocks/client/Client.js +1 -1
  53. package/api/resources/identities/resources/properties/client/Client.js +1 -1
  54. package/api/resources/index.d.ts +3 -0
  55. package/api/resources/index.js +4 -1
  56. package/api/resources/jobs/client/Client.d.ts +0 -1
  57. package/api/resources/jobs/client/Client.js +9 -7
  58. package/api/resources/jobs/client/requests/JobsListRequest.d.ts +4 -0
  59. package/api/resources/models/client/Client.js +2 -2
  60. package/api/resources/models/resources/embeddings/client/Client.js +1 -1
  61. package/api/resources/projects/client/Client.js +1 -1
  62. package/api/resources/providers/client/Client.js +6 -6
  63. package/api/resources/runs/client/Client.js +15 -7
  64. package/api/resources/runs/client/requests/RunsListRequest.d.ts +9 -0
  65. package/api/resources/runs/resources/messages/client/Client.js +1 -1
  66. package/api/resources/runs/resources/steps/client/Client.js +1 -1
  67. package/api/resources/runs/resources/usage/client/Client.js +1 -1
  68. package/api/resources/sources/client/Client.js +10 -10
  69. package/api/resources/sources/resources/files/client/Client.js +3 -3
  70. package/api/resources/sources/resources/passages/client/Client.js +1 -1
  71. package/api/resources/steps/client/Client.js +2 -2
  72. package/api/resources/steps/resources/feedback/client/Client.js +1 -1
  73. package/api/resources/steps/resources/metrics/client/Client.js +1 -1
  74. package/api/resources/steps/resources/trace/client/Client.js +1 -1
  75. package/api/resources/tags/client/Client.js +1 -1
  76. package/api/resources/telemetry/client/Client.js +1 -1
  77. package/api/resources/templates/client/Client.js +9 -9
  78. package/api/resources/templates/resources/agents/client/Client.js +1 -1
  79. package/api/resources/tools/client/Client.js +20 -20
  80. package/api/resources/voice/client/Client.js +1 -1
  81. package/api/types/AgentState.d.ts +3 -1
  82. package/api/types/Archive.d.ts +35 -0
  83. package/api/types/Archive.js +5 -0
  84. package/api/types/BatchJob.d.ts +2 -0
  85. package/api/types/InternalTemplateAgentCreate.d.ts +3 -1
  86. package/api/types/Job.d.ts +2 -0
  87. package/api/types/LettaSchemasAgentFileAgentSchema.d.ts +3 -1
  88. package/api/types/Run.d.ts +2 -0
  89. package/api/types/index.d.ts +1 -0
  90. package/api/types/index.js +1 -0
  91. package/dist/Client.d.ts +3 -0
  92. package/dist/Client.js +45 -40
  93. package/dist/api/resources/agents/client/Client.js +9 -9
  94. package/dist/api/resources/agents/client/requests/CreateAgentRequest.d.ts +3 -1
  95. package/dist/api/resources/agents/client/requests/UpdateAgent.d.ts +3 -1
  96. package/dist/api/resources/agents/resources/blocks/client/Client.js +5 -5
  97. package/dist/api/resources/agents/resources/context/client/Client.js +1 -1
  98. package/dist/api/resources/agents/resources/coreMemory/client/Client.js +1 -1
  99. package/dist/api/resources/agents/resources/files/client/Client.js +4 -4
  100. package/dist/api/resources/agents/resources/folders/client/Client.js +3 -3
  101. package/dist/api/resources/agents/resources/groups/client/Client.js +1 -1
  102. package/dist/api/resources/agents/resources/memoryVariables/client/Client.js +1 -1
  103. package/dist/api/resources/agents/resources/messages/client/Client.js +10 -10
  104. package/dist/api/resources/agents/resources/passages/client/Client.js +5 -5
  105. package/dist/api/resources/agents/resources/sources/client/Client.js +3 -3
  106. package/dist/api/resources/agents/resources/templates/client/Client.js +3 -3
  107. package/dist/api/resources/agents/resources/tools/client/Client.js +4 -4
  108. package/dist/api/resources/archives/client/Client.d.ts +78 -0
  109. package/dist/api/resources/archives/client/Client.js +325 -0
  110. package/dist/api/resources/archives/client/index.d.ts +1 -0
  111. package/dist/api/resources/archives/client/index.js +17 -0
  112. package/dist/api/resources/archives/client/requests/ArchiveCreateRequest.d.ts +13 -0
  113. package/dist/api/resources/archives/client/requests/ArchiveCreateRequest.js +5 -0
  114. package/dist/api/resources/archives/client/requests/ArchiveUpdateRequest.d.ts +11 -0
  115. package/dist/api/resources/archives/client/requests/ArchiveUpdateRequest.js +5 -0
  116. package/dist/api/resources/archives/client/requests/ListArchivesRequest.d.ts +34 -0
  117. package/dist/api/resources/archives/client/requests/ListArchivesRequest.js +5 -0
  118. package/dist/api/resources/archives/client/requests/index.d.ts +3 -0
  119. package/dist/api/resources/archives/client/requests/index.js +2 -0
  120. package/dist/api/resources/archives/index.d.ts +2 -0
  121. package/dist/api/resources/archives/index.js +18 -0
  122. package/dist/api/resources/archives/types/ListArchivesRequestOrder.d.ts +11 -0
  123. package/dist/api/resources/archives/types/ListArchivesRequestOrder.js +10 -0
  124. package/dist/api/resources/archives/types/index.d.ts +1 -0
  125. package/dist/api/resources/archives/types/index.js +17 -0
  126. package/dist/api/resources/batches/client/Client.js +4 -4
  127. package/dist/api/resources/batches/resources/messages/client/Client.js +1 -1
  128. package/dist/api/resources/blocks/client/Client.js +6 -6
  129. package/dist/api/resources/blocks/resources/agents/client/Client.js +1 -1
  130. package/dist/api/resources/clientSideAccessTokens/client/Client.js +3 -3
  131. package/dist/api/resources/folders/client/Client.d.ts +1 -1
  132. package/dist/api/resources/folders/client/Client.js +9 -9
  133. package/dist/api/resources/folders/resources/agents/client/Client.js +1 -1
  134. package/dist/api/resources/folders/resources/files/client/Client.js +3 -3
  135. package/dist/api/resources/folders/resources/passages/client/Client.js +1 -1
  136. package/dist/api/resources/groups/client/Client.js +6 -6
  137. package/dist/api/resources/groups/resources/messages/client/Client.js +5 -5
  138. package/dist/api/resources/health/client/Client.js +1 -1
  139. package/dist/api/resources/identities/client/Client.js +7 -7
  140. package/dist/api/resources/identities/resources/agents/client/Client.js +1 -1
  141. package/dist/api/resources/identities/resources/blocks/client/Client.js +1 -1
  142. package/dist/api/resources/identities/resources/properties/client/Client.js +1 -1
  143. package/dist/api/resources/index.d.ts +3 -0
  144. package/dist/api/resources/index.js +4 -1
  145. package/dist/api/resources/jobs/client/Client.d.ts +0 -1
  146. package/dist/api/resources/jobs/client/Client.js +9 -7
  147. package/dist/api/resources/jobs/client/requests/JobsListRequest.d.ts +4 -0
  148. package/dist/api/resources/models/client/Client.js +2 -2
  149. package/dist/api/resources/models/resources/embeddings/client/Client.js +1 -1
  150. package/dist/api/resources/projects/client/Client.js +1 -1
  151. package/dist/api/resources/providers/client/Client.js +6 -6
  152. package/dist/api/resources/runs/client/Client.js +15 -7
  153. package/dist/api/resources/runs/client/requests/RunsListRequest.d.ts +9 -0
  154. package/dist/api/resources/runs/resources/messages/client/Client.js +1 -1
  155. package/dist/api/resources/runs/resources/steps/client/Client.js +1 -1
  156. package/dist/api/resources/runs/resources/usage/client/Client.js +1 -1
  157. package/dist/api/resources/sources/client/Client.js +10 -10
  158. package/dist/api/resources/sources/resources/files/client/Client.js +3 -3
  159. package/dist/api/resources/sources/resources/passages/client/Client.js +1 -1
  160. package/dist/api/resources/steps/client/Client.js +2 -2
  161. package/dist/api/resources/steps/resources/feedback/client/Client.js +1 -1
  162. package/dist/api/resources/steps/resources/metrics/client/Client.js +1 -1
  163. package/dist/api/resources/steps/resources/trace/client/Client.js +1 -1
  164. package/dist/api/resources/tags/client/Client.js +1 -1
  165. package/dist/api/resources/telemetry/client/Client.js +1 -1
  166. package/dist/api/resources/templates/client/Client.js +9 -9
  167. package/dist/api/resources/templates/resources/agents/client/Client.js +1 -1
  168. package/dist/api/resources/tools/client/Client.js +20 -20
  169. package/dist/api/resources/voice/client/Client.js +1 -1
  170. package/dist/api/types/AgentState.d.ts +3 -1
  171. package/dist/api/types/Archive.d.ts +35 -0
  172. package/dist/api/types/Archive.js +5 -0
  173. package/dist/api/types/BatchJob.d.ts +2 -0
  174. package/dist/api/types/InternalTemplateAgentCreate.d.ts +3 -1
  175. package/dist/api/types/Job.d.ts +2 -0
  176. package/dist/api/types/LettaSchemasAgentFileAgentSchema.d.ts +3 -1
  177. package/dist/api/types/Run.d.ts +2 -0
  178. package/dist/api/types/index.d.ts +1 -0
  179. package/dist/api/types/index.js +1 -0
  180. package/dist/serialization/resources/agents/client/requests/CreateAgentRequest.d.ts +1 -0
  181. package/dist/serialization/resources/agents/client/requests/CreateAgentRequest.js +1 -0
  182. package/dist/serialization/resources/agents/client/requests/UpdateAgent.d.ts +1 -0
  183. package/dist/serialization/resources/agents/client/requests/UpdateAgent.js +3 -0
  184. package/dist/serialization/resources/archives/client/index.d.ts +2 -0
  185. package/dist/serialization/resources/archives/client/index.js +41 -0
  186. package/dist/serialization/resources/archives/client/listArchives.d.ts +11 -0
  187. package/dist/serialization/resources/archives/client/listArchives.js +42 -0
  188. package/dist/serialization/resources/archives/client/requests/ArchiveCreateRequest.d.ts +13 -0
  189. package/dist/serialization/resources/archives/client/requests/ArchiveCreateRequest.js +44 -0
  190. package/dist/serialization/resources/archives/client/requests/ArchiveUpdateRequest.d.ts +13 -0
  191. package/dist/serialization/resources/archives/client/requests/ArchiveUpdateRequest.js +44 -0
  192. package/dist/serialization/resources/archives/client/requests/index.d.ts +2 -0
  193. package/dist/serialization/resources/archives/client/requests/index.js +7 -0
  194. package/dist/serialization/resources/archives/index.d.ts +2 -0
  195. package/dist/serialization/resources/archives/index.js +18 -0
  196. package/dist/serialization/resources/archives/types/ListArchivesRequestOrder.d.ts +10 -0
  197. package/dist/serialization/resources/archives/types/ListArchivesRequestOrder.js +41 -0
  198. package/dist/serialization/resources/archives/types/index.d.ts +1 -0
  199. package/dist/serialization/resources/archives/types/index.js +17 -0
  200. package/dist/serialization/resources/index.d.ts +3 -0
  201. package/dist/serialization/resources/index.js +4 -1
  202. package/dist/serialization/types/AgentState.d.ts +1 -0
  203. package/dist/serialization/types/AgentState.js +1 -0
  204. package/dist/serialization/types/Archive.d.ts +21 -0
  205. package/dist/serialization/types/Archive.js +52 -0
  206. package/dist/serialization/types/BatchJob.d.ts +2 -0
  207. package/dist/serialization/types/BatchJob.js +2 -0
  208. package/dist/serialization/types/InternalTemplateAgentCreate.d.ts +1 -0
  209. package/dist/serialization/types/InternalTemplateAgentCreate.js +1 -0
  210. package/dist/serialization/types/Job.d.ts +2 -0
  211. package/dist/serialization/types/Job.js +2 -0
  212. package/dist/serialization/types/LettaSchemasAgentFileAgentSchema.d.ts +1 -0
  213. package/dist/serialization/types/LettaSchemasAgentFileAgentSchema.js +1 -0
  214. package/dist/serialization/types/Run.d.ts +2 -0
  215. package/dist/serialization/types/Run.js +2 -0
  216. package/dist/serialization/types/index.d.ts +1 -0
  217. package/dist/serialization/types/index.js +1 -0
  218. package/dist/version.d.ts +1 -1
  219. package/dist/version.js +1 -1
  220. package/package.json +1 -1
  221. package/reference.md +202 -2
  222. package/serialization/resources/agents/client/requests/CreateAgentRequest.d.ts +1 -0
  223. package/serialization/resources/agents/client/requests/CreateAgentRequest.js +1 -0
  224. package/serialization/resources/agents/client/requests/UpdateAgent.d.ts +1 -0
  225. package/serialization/resources/agents/client/requests/UpdateAgent.js +3 -0
  226. package/serialization/resources/archives/client/index.d.ts +2 -0
  227. package/serialization/resources/archives/client/index.js +41 -0
  228. package/serialization/resources/archives/client/listArchives.d.ts +11 -0
  229. package/serialization/resources/archives/client/listArchives.js +42 -0
  230. package/serialization/resources/archives/client/requests/ArchiveCreateRequest.d.ts +13 -0
  231. package/serialization/resources/archives/client/requests/ArchiveCreateRequest.js +44 -0
  232. package/serialization/resources/archives/client/requests/ArchiveUpdateRequest.d.ts +13 -0
  233. package/serialization/resources/archives/client/requests/ArchiveUpdateRequest.js +44 -0
  234. package/serialization/resources/archives/client/requests/index.d.ts +2 -0
  235. package/serialization/resources/archives/client/requests/index.js +7 -0
  236. package/serialization/resources/archives/index.d.ts +2 -0
  237. package/serialization/resources/archives/index.js +18 -0
  238. package/serialization/resources/archives/types/ListArchivesRequestOrder.d.ts +10 -0
  239. package/serialization/resources/archives/types/ListArchivesRequestOrder.js +41 -0
  240. package/serialization/resources/archives/types/index.d.ts +1 -0
  241. package/serialization/resources/archives/types/index.js +17 -0
  242. package/serialization/resources/index.d.ts +3 -0
  243. package/serialization/resources/index.js +4 -1
  244. package/serialization/types/AgentState.d.ts +1 -0
  245. package/serialization/types/AgentState.js +1 -0
  246. package/serialization/types/Archive.d.ts +21 -0
  247. package/serialization/types/Archive.js +52 -0
  248. package/serialization/types/BatchJob.d.ts +2 -0
  249. package/serialization/types/BatchJob.js +2 -0
  250. package/serialization/types/InternalTemplateAgentCreate.d.ts +1 -0
  251. package/serialization/types/InternalTemplateAgentCreate.js +1 -0
  252. package/serialization/types/Job.d.ts +2 -0
  253. package/serialization/types/Job.js +2 -0
  254. package/serialization/types/LettaSchemasAgentFileAgentSchema.d.ts +1 -0
  255. package/serialization/types/LettaSchemasAgentFileAgentSchema.js +1 -0
  256. package/serialization/types/Run.d.ts +2 -0
  257. package/serialization/types/Run.js +2 -0
  258. package/serialization/types/index.d.ts +1 -0
  259. package/serialization/types/index.js +1 -0
  260. package/version.d.ts +1 -1
  261. package/version.js +1 -1
@@ -81,7 +81,7 @@ class Tools {
81
81
  method: "GET",
82
82
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
83
83
  ? yield core.Supplier.get(this._options.project)
84
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68655", "User-Agent": "@letta-ai/letta-client/0.0.68655", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
84
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68657", "User-Agent": "@letta-ai/letta-client/0.0.68657", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
85
85
  contentType: "application/json",
86
86
  requestType: "json",
87
87
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -157,7 +157,7 @@ class Tools {
157
157
  method: "DELETE",
158
158
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
159
159
  ? yield core.Supplier.get(this._options.project)
160
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68655", "User-Agent": "@letta-ai/letta-client/0.0.68655", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
160
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68657", "User-Agent": "@letta-ai/letta-client/0.0.68657", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
161
161
  contentType: "application/json",
162
162
  requestType: "json",
163
163
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -225,7 +225,7 @@ class Tools {
225
225
  method: "PATCH",
226
226
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
227
227
  ? yield core.Supplier.get(this._options.project)
228
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68655", "User-Agent": "@letta-ai/letta-client/0.0.68655", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
228
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68657", "User-Agent": "@letta-ai/letta-client/0.0.68657", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
229
229
  contentType: "application/json",
230
230
  requestType: "json",
231
231
  body: serializers.ToolUpdate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -348,7 +348,7 @@ class Tools {
348
348
  method: "GET",
349
349
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
350
350
  ? yield core.Supplier.get(this._options.project)
351
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68655", "User-Agent": "@letta-ai/letta-client/0.0.68655", "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),
351
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68657", "User-Agent": "@letta-ai/letta-client/0.0.68657", "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
352
  contentType: "application/json",
353
353
  queryParameters: _queryParams,
354
354
  requestType: "json",
@@ -485,7 +485,7 @@ class Tools {
485
485
  method: "GET",
486
486
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
487
487
  ? yield core.Supplier.get(this._options.project)
488
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68655", "User-Agent": "@letta-ai/letta-client/0.0.68655", "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
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68657", "User-Agent": "@letta-ai/letta-client/0.0.68657", "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
  queryParameters: _queryParams,
491
491
  requestType: "json",
@@ -564,7 +564,7 @@ class Tools {
564
564
  method: "POST",
565
565
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
566
566
  ? yield core.Supplier.get(this._options.project)
567
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68655", "User-Agent": "@letta-ai/letta-client/0.0.68655", "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),
567
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68657", "User-Agent": "@letta-ai/letta-client/0.0.68657", "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),
568
568
  contentType: "application/json",
569
569
  requestType: "json",
570
570
  body: serializers.ToolCreate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -643,7 +643,7 @@ class Tools {
643
643
  method: "PUT",
644
644
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
645
645
  ? yield core.Supplier.get(this._options.project)
646
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68655", "User-Agent": "@letta-ai/letta-client/0.0.68655", "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),
646
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68657", "User-Agent": "@letta-ai/letta-client/0.0.68657", "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),
647
647
  contentType: "application/json",
648
648
  requestType: "json",
649
649
  body: serializers.ToolCreate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -719,7 +719,7 @@ class Tools {
719
719
  method: "POST",
720
720
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
721
721
  ? yield core.Supplier.get(this._options.project)
722
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68655", "User-Agent": "@letta-ai/letta-client/0.0.68655", "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),
722
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68657", "User-Agent": "@letta-ai/letta-client/0.0.68657", "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),
723
723
  contentType: "application/json",
724
724
  requestType: "json",
725
725
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -800,7 +800,7 @@ class Tools {
800
800
  method: "POST",
801
801
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
802
802
  ? yield core.Supplier.get(this._options.project)
803
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68655", "User-Agent": "@letta-ai/letta-client/0.0.68655", "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),
803
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68657", "User-Agent": "@letta-ai/letta-client/0.0.68657", "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),
804
804
  contentType: "application/json",
805
805
  requestType: "json",
806
806
  body: serializers.ToolRunFromSource.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -876,7 +876,7 @@ class Tools {
876
876
  method: "GET",
877
877
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
878
878
  ? yield core.Supplier.get(this._options.project)
879
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68655", "User-Agent": "@letta-ai/letta-client/0.0.68655", "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),
879
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68657", "User-Agent": "@letta-ai/letta-client/0.0.68657", "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),
880
880
  contentType: "application/json",
881
881
  requestType: "json",
882
882
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -952,7 +952,7 @@ class Tools {
952
952
  method: "GET",
953
953
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
954
954
  ? yield core.Supplier.get(this._options.project)
955
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68655", "User-Agent": "@letta-ai/letta-client/0.0.68655", "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
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68657", "User-Agent": "@letta-ai/letta-client/0.0.68657", "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
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -1028,7 +1028,7 @@ class Tools {
1028
1028
  method: "POST",
1029
1029
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
1030
1030
  ? yield core.Supplier.get(this._options.project)
1031
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68655", "User-Agent": "@letta-ai/letta-client/0.0.68655", "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),
1031
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68657", "User-Agent": "@letta-ai/letta-client/0.0.68657", "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),
1032
1032
  contentType: "application/json",
1033
1033
  requestType: "json",
1034
1034
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -1103,7 +1103,7 @@ class Tools {
1103
1103
  method: "GET",
1104
1104
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
1105
1105
  ? yield core.Supplier.get(this._options.project)
1106
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68655", "User-Agent": "@letta-ai/letta-client/0.0.68655", "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),
1106
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68657", "User-Agent": "@letta-ai/letta-client/0.0.68657", "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),
1107
1107
  contentType: "application/json",
1108
1108
  requestType: "json",
1109
1109
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -1183,7 +1183,7 @@ class Tools {
1183
1183
  method: "PUT",
1184
1184
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
1185
1185
  ? yield core.Supplier.get(this._options.project)
1186
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68655", "User-Agent": "@letta-ai/letta-client/0.0.68655", "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),
1186
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68657", "User-Agent": "@letta-ai/letta-client/0.0.68657", "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),
1187
1187
  contentType: "application/json",
1188
1188
  requestType: "json",
1189
1189
  body: serializers.AddMcpServerRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -1260,7 +1260,7 @@ class Tools {
1260
1260
  method: "GET",
1261
1261
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
1262
1262
  ? yield core.Supplier.get(this._options.project)
1263
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68655", "User-Agent": "@letta-ai/letta-client/0.0.68655", "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),
1263
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68657", "User-Agent": "@letta-ai/letta-client/0.0.68657", "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),
1264
1264
  contentType: "application/json",
1265
1265
  requestType: "json",
1266
1266
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -1337,7 +1337,7 @@ class Tools {
1337
1337
  method: "POST",
1338
1338
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
1339
1339
  ? yield core.Supplier.get(this._options.project)
1340
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68655", "User-Agent": "@letta-ai/letta-client/0.0.68655", "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),
1340
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68657", "User-Agent": "@letta-ai/letta-client/0.0.68657", "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),
1341
1341
  contentType: "application/json",
1342
1342
  requestType: "json",
1343
1343
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -1413,7 +1413,7 @@ class Tools {
1413
1413
  method: "DELETE",
1414
1414
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
1415
1415
  ? yield core.Supplier.get(this._options.project)
1416
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68655", "User-Agent": "@letta-ai/letta-client/0.0.68655", "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),
1416
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68657", "User-Agent": "@letta-ai/letta-client/0.0.68657", "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),
1417
1417
  contentType: "application/json",
1418
1418
  requestType: "json",
1419
1419
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -1490,7 +1490,7 @@ class Tools {
1490
1490
  method: "PATCH",
1491
1491
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
1492
1492
  ? yield core.Supplier.get(this._options.project)
1493
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68655", "User-Agent": "@letta-ai/letta-client/0.0.68655", "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),
1493
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68657", "User-Agent": "@letta-ai/letta-client/0.0.68657", "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),
1494
1494
  contentType: "application/json",
1495
1495
  requestType: "json",
1496
1496
  body: serializers.UpdateMcpServerRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -1572,7 +1572,7 @@ class Tools {
1572
1572
  method: "POST",
1573
1573
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
1574
1574
  ? yield core.Supplier.get(this._options.project)
1575
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68655", "User-Agent": "@letta-ai/letta-client/0.0.68655", "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),
1575
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68657", "User-Agent": "@letta-ai/letta-client/0.0.68657", "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),
1576
1576
  contentType: "application/json",
1577
1577
  requestType: "json",
1578
1578
  body: serializers.TestMcpServerRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -1633,7 +1633,7 @@ class Tools {
1633
1633
  method: "POST",
1634
1634
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
1635
1635
  ? yield core.Supplier.get(this._options.project)
1636
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68655", "User-Agent": "@letta-ai/letta-client/0.0.68655", "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),
1636
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68657", "User-Agent": "@letta-ai/letta-client/0.0.68657", "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),
1637
1637
  contentType: "application/json",
1638
1638
  requestType: "json",
1639
1639
  body: serializers.ConnectMcpServerRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -82,7 +82,7 @@ class Voice {
82
82
  method: "POST",
83
83
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
84
84
  ? yield core.Supplier.get(this._options.project)
85
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68655", "User-Agent": "@letta-ai/letta-client/0.0.68655", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
85
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68657", "User-Agent": "@letta-ai/letta-client/0.0.68657", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
86
86
  contentType: "application/json",
87
87
  requestType: "json",
88
88
  body: serializers.voice.createVoiceChatCompletions.Request.jsonOrThrow(request, {
@@ -55,8 +55,10 @@ export interface AgentState {
55
55
  sources: Letta.Source[];
56
56
  /** The tags associated with the agent. */
57
57
  tags: string[];
58
- /** The environment variables for tool execution specific to this agent. */
58
+ /** Deprecated: use `secrets` field instead. */
59
59
  toolExecEnvironmentVariables?: Letta.AgentEnvironmentVariable[];
60
+ /** The environment variables for tool execution specific to this agent. */
61
+ secrets?: Letta.AgentEnvironmentVariable[];
60
62
  /** The id of the project the agent belongs to. */
61
63
  projectId?: string;
62
64
  /** The id of the template the agent belongs to. */
@@ -0,0 +1,35 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Letta from "../index";
5
+ /**
6
+ * Representation of an archive - a collection of archival passages that can be shared between agents.
7
+ *
8
+ * Parameters:
9
+ * id (str): The unique identifier of the archive.
10
+ * name (str): The name of the archive.
11
+ * description (str): A description of the archive.
12
+ * organization_id (str): The organization this archive belongs to.
13
+ * created_at (datetime): The creation date of the archive.
14
+ * metadata (dict): Additional metadata for the archive.
15
+ */
16
+ export interface Archive {
17
+ /** The id of the user that made this object. */
18
+ createdById?: string;
19
+ /** The id of the user that made this object. */
20
+ lastUpdatedById?: string;
21
+ /** The creation date of the archive */
22
+ createdAt: Date;
23
+ /** The timestamp when the object was last updated. */
24
+ updatedAt?: Date;
25
+ /** The name of the archive */
26
+ name: string;
27
+ /** A description of the archive */
28
+ description?: string;
29
+ /** The vector database provider used for this archive's passages */
30
+ vectorDbProvider?: Letta.VectorDbProvider;
31
+ /** Additional metadata */
32
+ metadata?: Record<string, unknown>;
33
+ /** The human-friendly ID of the Archive */
34
+ id?: string;
35
+ }
@@ -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 });
@@ -15,6 +15,8 @@ export interface BatchJob {
15
15
  status?: Letta.JobStatus;
16
16
  /** The unix timestamp of when the job was completed. */
17
17
  completedAt?: Date;
18
+ /** The reason why the job was stopped. */
19
+ stopReason?: Letta.StopReasonType;
18
20
  /** The metadata of the job. */
19
21
  metadata?: Record<string, unknown>;
20
22
  jobType?: Letta.JobType;
@@ -66,8 +66,10 @@ export interface InternalTemplateAgentCreate {
66
66
  template?: boolean;
67
67
  /** Deprecated: Project should now be passed via the X-Project header instead of in the request body. If using the sdk, this can be done via the new x_project field below. */
68
68
  project?: string;
69
- /** The environment variables for tool execution specific to this agent. */
69
+ /** Deprecated: use `secrets` field instead. */
70
70
  toolExecEnvironmentVariables?: Record<string, string | undefined>;
71
+ /** The environment variables for tool execution specific to this agent. */
72
+ secrets?: Record<string, string | undefined>;
71
73
  /** The variables that should be set for the agent. */
72
74
  memoryVariables?: Record<string, string | undefined>;
73
75
  /** The id of the project the agent belongs to. */
@@ -25,6 +25,8 @@ export interface Job {
25
25
  status?: Letta.JobStatus;
26
26
  /** The unix timestamp of when the job was completed. */
27
27
  completedAt?: Date;
28
+ /** The reason why the job was stopped. */
29
+ stopReason?: Letta.StopReasonType;
28
30
  /** The metadata of the job. */
29
31
  metadata?: Record<string, unknown>;
30
32
  /** The type of the job. */
@@ -66,8 +66,10 @@ export interface LettaSchemasAgentFileAgentSchema {
66
66
  template?: boolean;
67
67
  /** Deprecated: Project should now be passed via the X-Project header instead of in the request body. If using the sdk, this can be done via the new x_project field below. */
68
68
  project?: string;
69
- /** The environment variables for tool execution specific to this agent. */
69
+ /** Deprecated: use `secrets` field instead. */
70
70
  toolExecEnvironmentVariables?: Record<string, string | undefined>;
71
+ /** The environment variables for tool execution specific to this agent. */
72
+ secrets?: Record<string, string | undefined>;
71
73
  /** The variables that should be set for the agent. */
72
74
  memoryVariables?: Record<string, string | undefined>;
73
75
  /** The id of the project the agent belongs to. */
@@ -26,6 +26,8 @@ export interface Run {
26
26
  status?: Letta.JobStatus;
27
27
  /** The unix timestamp of when the job was completed. */
28
28
  completedAt?: Date;
29
+ /** The reason why the run was stopped. */
30
+ stopReason?: Letta.StopReasonType;
29
31
  /** The metadata of the job. */
30
32
  metadata?: Record<string, unknown>;
31
33
  jobType?: Letta.JobType;
@@ -21,6 +21,7 @@ export * from "./ApprovalRequestMessage";
21
21
  export * from "./ApprovalResponseMessage";
22
22
  export * from "./ArchivalMemorySearchResponse";
23
23
  export * from "./ArchivalMemorySearchResult";
24
+ export * from "./Archive";
24
25
  export * from "./AssistantMessageContent";
25
26
  export * from "./AssistantMessage";
26
27
  export * from "./Audio";
@@ -37,6 +37,7 @@ __exportStar(require("./ApprovalRequestMessage"), exports);
37
37
  __exportStar(require("./ApprovalResponseMessage"), exports);
38
38
  __exportStar(require("./ArchivalMemorySearchResponse"), exports);
39
39
  __exportStar(require("./ArchivalMemorySearchResult"), exports);
40
+ __exportStar(require("./Archive"), exports);
40
41
  __exportStar(require("./AssistantMessageContent"), exports);
41
42
  __exportStar(require("./AssistantMessage"), exports);
42
43
  __exportStar(require("./Audio"), exports);
package/dist/Client.d.ts CHANGED
@@ -3,6 +3,7 @@
3
3
  */
4
4
  import * as environments from "./environments";
5
5
  import * as core from "./core";
6
+ import { Archives } from "./api/resources/archives/client/Client";
6
7
  import { Tools } from "./api/resources/tools/client/Client";
7
8
  import { Sources } from "./api/resources/sources/client/Client";
8
9
  import { Folders } from "./api/resources/folders/client/Client";
@@ -48,6 +49,7 @@ export declare namespace LettaClient {
48
49
  }
49
50
  export declare class LettaClient {
50
51
  protected readonly _options: LettaClient.Options;
52
+ protected _archives: Archives | undefined;
51
53
  protected _tools: Tools | undefined;
52
54
  protected _sources: Sources | undefined;
53
55
  protected _folders: Folders | undefined;
@@ -69,6 +71,7 @@ export declare class LettaClient {
69
71
  protected _clientSideAccessTokens: ClientSideAccessTokens | undefined;
70
72
  protected _projects: Projects | undefined;
71
73
  constructor(_options?: LettaClient.Options);
74
+ get archives(): Archives;
72
75
  get tools(): Tools;
73
76
  get sources(): Sources;
74
77
  get folders(): Folders;
package/dist/Client.js CHANGED
@@ -4,109 +4,114 @@
4
4
  */
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.LettaClient = void 0;
7
- const Client_1 = require("./api/resources/tools/client/Client");
8
- const Client_2 = require("./api/resources/sources/client/Client");
9
- const Client_3 = require("./api/resources/folders/client/Client");
10
- const Client_4 = require("./api/resources/agents/client/Client");
11
- const Client_5 = require("./api/resources/groups/client/Client");
12
- const Client_6 = require("./api/resources/identities/client/Client");
13
- const Client_7 = require("./api/resources/models/client/Client");
14
- const Client_8 = require("./api/resources/blocks/client/Client");
15
- const Client_9 = require("./api/resources/jobs/client/Client");
16
- const Client_10 = require("./api/resources/health/client/Client");
17
- const Client_11 = require("./api/resources/providers/client/Client");
18
- const Client_12 = require("./api/resources/runs/client/Client");
19
- const Client_13 = require("./api/resources/steps/client/Client");
20
- const Client_14 = require("./api/resources/tags/client/Client");
21
- const Client_15 = require("./api/resources/telemetry/client/Client");
22
- const Client_16 = require("./api/resources/batches/client/Client");
23
- const Client_17 = require("./api/resources/voice/client/Client");
24
- const Client_18 = require("./api/resources/templates/client/Client");
25
- const Client_19 = require("./api/resources/clientSideAccessTokens/client/Client");
26
- const Client_20 = require("./api/resources/projects/client/Client");
7
+ const Client_1 = require("./api/resources/archives/client/Client");
8
+ const Client_2 = require("./api/resources/tools/client/Client");
9
+ const Client_3 = require("./api/resources/sources/client/Client");
10
+ const Client_4 = require("./api/resources/folders/client/Client");
11
+ const Client_5 = require("./api/resources/agents/client/Client");
12
+ const Client_6 = require("./api/resources/groups/client/Client");
13
+ const Client_7 = require("./api/resources/identities/client/Client");
14
+ const Client_8 = require("./api/resources/models/client/Client");
15
+ const Client_9 = require("./api/resources/blocks/client/Client");
16
+ const Client_10 = require("./api/resources/jobs/client/Client");
17
+ const Client_11 = require("./api/resources/health/client/Client");
18
+ const Client_12 = require("./api/resources/providers/client/Client");
19
+ const Client_13 = require("./api/resources/runs/client/Client");
20
+ const Client_14 = require("./api/resources/steps/client/Client");
21
+ const Client_15 = require("./api/resources/tags/client/Client");
22
+ const Client_16 = require("./api/resources/telemetry/client/Client");
23
+ const Client_17 = require("./api/resources/batches/client/Client");
24
+ const Client_18 = require("./api/resources/voice/client/Client");
25
+ const Client_19 = require("./api/resources/templates/client/Client");
26
+ const Client_20 = require("./api/resources/clientSideAccessTokens/client/Client");
27
+ const Client_21 = require("./api/resources/projects/client/Client");
27
28
  class LettaClient {
28
29
  constructor(_options = {}) {
29
30
  this._options = _options;
30
31
  }
32
+ get archives() {
33
+ var _a;
34
+ return ((_a = this._archives) !== null && _a !== void 0 ? _a : (this._archives = new Client_1.Archives(this._options)));
35
+ }
31
36
  get tools() {
32
37
  var _a;
33
- return ((_a = this._tools) !== null && _a !== void 0 ? _a : (this._tools = new Client_1.Tools(this._options)));
38
+ return ((_a = this._tools) !== null && _a !== void 0 ? _a : (this._tools = new Client_2.Tools(this._options)));
34
39
  }
35
40
  get sources() {
36
41
  var _a;
37
- return ((_a = this._sources) !== null && _a !== void 0 ? _a : (this._sources = new Client_2.Sources(this._options)));
42
+ return ((_a = this._sources) !== null && _a !== void 0 ? _a : (this._sources = new Client_3.Sources(this._options)));
38
43
  }
39
44
  get folders() {
40
45
  var _a;
41
- return ((_a = this._folders) !== null && _a !== void 0 ? _a : (this._folders = new Client_3.Folders(this._options)));
46
+ return ((_a = this._folders) !== null && _a !== void 0 ? _a : (this._folders = new Client_4.Folders(this._options)));
42
47
  }
43
48
  get agents() {
44
49
  var _a;
45
- return ((_a = this._agents) !== null && _a !== void 0 ? _a : (this._agents = new Client_4.Agents(this._options)));
50
+ return ((_a = this._agents) !== null && _a !== void 0 ? _a : (this._agents = new Client_5.Agents(this._options)));
46
51
  }
47
52
  get groups() {
48
53
  var _a;
49
- return ((_a = this._groups) !== null && _a !== void 0 ? _a : (this._groups = new Client_5.Groups(this._options)));
54
+ return ((_a = this._groups) !== null && _a !== void 0 ? _a : (this._groups = new Client_6.Groups(this._options)));
50
55
  }
51
56
  get identities() {
52
57
  var _a;
53
- return ((_a = this._identities) !== null && _a !== void 0 ? _a : (this._identities = new Client_6.Identities(this._options)));
58
+ return ((_a = this._identities) !== null && _a !== void 0 ? _a : (this._identities = new Client_7.Identities(this._options)));
54
59
  }
55
60
  get models() {
56
61
  var _a;
57
- return ((_a = this._models) !== null && _a !== void 0 ? _a : (this._models = new Client_7.Models(this._options)));
62
+ return ((_a = this._models) !== null && _a !== void 0 ? _a : (this._models = new Client_8.Models(this._options)));
58
63
  }
59
64
  get blocks() {
60
65
  var _a;
61
- return ((_a = this._blocks) !== null && _a !== void 0 ? _a : (this._blocks = new Client_8.Blocks(this._options)));
66
+ return ((_a = this._blocks) !== null && _a !== void 0 ? _a : (this._blocks = new Client_9.Blocks(this._options)));
62
67
  }
63
68
  get jobs() {
64
69
  var _a;
65
- return ((_a = this._jobs) !== null && _a !== void 0 ? _a : (this._jobs = new Client_9.Jobs(this._options)));
70
+ return ((_a = this._jobs) !== null && _a !== void 0 ? _a : (this._jobs = new Client_10.Jobs(this._options)));
66
71
  }
67
72
  get health() {
68
73
  var _a;
69
- return ((_a = this._health) !== null && _a !== void 0 ? _a : (this._health = new Client_10.Health(this._options)));
74
+ return ((_a = this._health) !== null && _a !== void 0 ? _a : (this._health = new Client_11.Health(this._options)));
70
75
  }
71
76
  get providers() {
72
77
  var _a;
73
- return ((_a = this._providers) !== null && _a !== void 0 ? _a : (this._providers = new Client_11.Providers(this._options)));
78
+ return ((_a = this._providers) !== null && _a !== void 0 ? _a : (this._providers = new Client_12.Providers(this._options)));
74
79
  }
75
80
  get runs() {
76
81
  var _a;
77
- return ((_a = this._runs) !== null && _a !== void 0 ? _a : (this._runs = new Client_12.Runs(this._options)));
82
+ return ((_a = this._runs) !== null && _a !== void 0 ? _a : (this._runs = new Client_13.Runs(this._options)));
78
83
  }
79
84
  get steps() {
80
85
  var _a;
81
- return ((_a = this._steps) !== null && _a !== void 0 ? _a : (this._steps = new Client_13.Steps(this._options)));
86
+ return ((_a = this._steps) !== null && _a !== void 0 ? _a : (this._steps = new Client_14.Steps(this._options)));
82
87
  }
83
88
  get tags() {
84
89
  var _a;
85
- return ((_a = this._tags) !== null && _a !== void 0 ? _a : (this._tags = new Client_14.Tags(this._options)));
90
+ return ((_a = this._tags) !== null && _a !== void 0 ? _a : (this._tags = new Client_15.Tags(this._options)));
86
91
  }
87
92
  get telemetry() {
88
93
  var _a;
89
- return ((_a = this._telemetry) !== null && _a !== void 0 ? _a : (this._telemetry = new Client_15.Telemetry(this._options)));
94
+ return ((_a = this._telemetry) !== null && _a !== void 0 ? _a : (this._telemetry = new Client_16.Telemetry(this._options)));
90
95
  }
91
96
  get batches() {
92
97
  var _a;
93
- return ((_a = this._batches) !== null && _a !== void 0 ? _a : (this._batches = new Client_16.Batches(this._options)));
98
+ return ((_a = this._batches) !== null && _a !== void 0 ? _a : (this._batches = new Client_17.Batches(this._options)));
94
99
  }
95
100
  get voice() {
96
101
  var _a;
97
- return ((_a = this._voice) !== null && _a !== void 0 ? _a : (this._voice = new Client_17.Voice(this._options)));
102
+ return ((_a = this._voice) !== null && _a !== void 0 ? _a : (this._voice = new Client_18.Voice(this._options)));
98
103
  }
99
104
  get templates() {
100
105
  var _a;
101
- return ((_a = this._templates) !== null && _a !== void 0 ? _a : (this._templates = new Client_18.Templates(this._options)));
106
+ return ((_a = this._templates) !== null && _a !== void 0 ? _a : (this._templates = new Client_19.Templates(this._options)));
102
107
  }
103
108
  get clientSideAccessTokens() {
104
109
  var _a;
105
- return ((_a = this._clientSideAccessTokens) !== null && _a !== void 0 ? _a : (this._clientSideAccessTokens = new Client_19.ClientSideAccessTokens(this._options)));
110
+ return ((_a = this._clientSideAccessTokens) !== null && _a !== void 0 ? _a : (this._clientSideAccessTokens = new Client_20.ClientSideAccessTokens(this._options)));
106
111
  }
107
112
  get projects() {
108
113
  var _a;
109
- return ((_a = this._projects) !== null && _a !== void 0 ? _a : (this._projects = new Client_20.Projects(this._options)));
114
+ return ((_a = this._projects) !== null && _a !== void 0 ? _a : (this._projects = new Client_21.Projects(this._options)));
110
115
  }
111
116
  }
112
117
  exports.LettaClient = LettaClient;