@letta-ai/letta-client 0.1.160 → 0.1.162

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 (322) hide show
  1. package/Client.d.ts +3 -0
  2. package/Client.js +43 -38
  3. package/api/resources/agents/client/Client.d.ts +6 -48
  4. package/api/resources/agents/client/Client.js +34 -231
  5. package/api/resources/agents/resources/blocks/client/Client.js +5 -5
  6. package/api/resources/agents/resources/context/client/Client.js +1 -1
  7. package/api/resources/agents/resources/coreMemory/client/Client.js +1 -1
  8. package/api/resources/agents/resources/files/client/Client.d.ts +83 -0
  9. package/api/resources/agents/resources/files/client/Client.js +276 -0
  10. package/api/resources/agents/resources/files/client/index.d.ts +1 -0
  11. package/api/resources/agents/resources/files/client/index.js +2 -0
  12. package/api/resources/agents/resources/files/index.d.ts +1 -0
  13. package/api/resources/agents/resources/files/index.js +17 -0
  14. package/api/resources/agents/resources/folders/client/Client.d.ts +74 -0
  15. package/api/resources/agents/resources/folders/client/Client.js +272 -0
  16. package/api/resources/agents/resources/folders/client/index.d.ts +1 -0
  17. package/api/resources/agents/resources/folders/client/index.js +2 -0
  18. package/api/resources/agents/resources/folders/index.d.ts +1 -0
  19. package/api/resources/agents/resources/folders/index.js +17 -0
  20. package/api/resources/agents/resources/groups/client/Client.js +1 -1
  21. package/api/resources/agents/resources/index.d.ts +2 -0
  22. package/api/resources/agents/resources/index.js +3 -1
  23. package/api/resources/agents/resources/memoryVariables/client/Client.js +1 -1
  24. package/api/resources/agents/resources/messages/client/Client.js +8 -8
  25. package/api/resources/agents/resources/passages/client/Client.js +4 -4
  26. package/api/resources/agents/resources/sources/client/Client.js +3 -3
  27. package/api/resources/agents/resources/templates/client/Client.js +3 -3
  28. package/api/resources/agents/resources/tools/client/Client.js +3 -3
  29. package/api/resources/batches/client/Client.js +4 -4
  30. package/api/resources/blocks/client/Client.js +6 -6
  31. package/api/resources/blocks/resources/agents/client/Client.js +1 -1
  32. package/api/resources/clientSideAccessTokens/client/Client.js +3 -3
  33. package/api/resources/embeddingModels/client/Client.js +1 -1
  34. package/api/resources/folders/client/Client.d.ts +157 -0
  35. package/api/resources/folders/client/Client.js +691 -0
  36. package/api/resources/folders/client/index.d.ts +1 -0
  37. package/api/resources/folders/client/index.js +17 -0
  38. package/api/resources/folders/client/requests/FolderCreate.d.ts +26 -0
  39. package/api/resources/folders/client/requests/FolderCreate.js +5 -0
  40. package/api/resources/folders/client/requests/FolderUpdate.d.ts +20 -0
  41. package/api/resources/folders/client/requests/FolderUpdate.js +5 -0
  42. package/api/resources/folders/client/requests/GetFoldersMetadataRequest.d.ts +10 -0
  43. package/api/resources/folders/client/requests/GetFoldersMetadataRequest.js +5 -0
  44. package/api/resources/folders/client/requests/index.d.ts +3 -0
  45. package/api/resources/folders/client/requests/index.js +2 -0
  46. package/api/resources/folders/index.d.ts +2 -0
  47. package/api/resources/folders/index.js +18 -0
  48. package/api/resources/folders/resources/files/client/Client.d.ts +78 -0
  49. package/api/resources/folders/resources/files/client/Client.js +289 -0
  50. package/api/resources/folders/resources/files/client/index.d.ts +1 -0
  51. package/api/resources/folders/resources/files/client/index.js +17 -0
  52. package/api/resources/folders/resources/files/client/requests/BodyUploadFileToFolder.d.ts +14 -0
  53. package/api/resources/folders/resources/files/client/requests/BodyUploadFileToFolder.js +5 -0
  54. package/api/resources/folders/resources/files/client/requests/FilesListRequest.d.ts +21 -0
  55. package/api/resources/folders/resources/files/client/requests/FilesListRequest.js +5 -0
  56. package/api/resources/folders/resources/files/client/requests/index.d.ts +2 -0
  57. package/api/resources/folders/resources/files/client/requests/index.js +2 -0
  58. package/api/resources/folders/resources/files/index.d.ts +1 -0
  59. package/api/resources/folders/resources/files/index.js +17 -0
  60. package/api/resources/folders/resources/index.d.ts +4 -0
  61. package/api/resources/folders/resources/index.js +43 -0
  62. package/api/resources/folders/resources/passages/client/Client.d.ts +49 -0
  63. package/api/resources/folders/resources/passages/client/Client.js +149 -0
  64. package/api/resources/folders/resources/passages/client/index.d.ts +1 -0
  65. package/api/resources/folders/resources/passages/client/index.js +17 -0
  66. package/api/resources/folders/resources/passages/client/requests/PassagesListRequest.d.ts +21 -0
  67. package/api/resources/folders/resources/passages/client/requests/PassagesListRequest.js +5 -0
  68. package/api/resources/folders/resources/passages/client/requests/index.d.ts +1 -0
  69. package/api/resources/folders/resources/passages/client/requests/index.js +2 -0
  70. package/api/resources/folders/resources/passages/index.d.ts +1 -0
  71. package/api/resources/folders/resources/passages/index.js +17 -0
  72. package/api/resources/groups/client/Client.js +6 -6
  73. package/api/resources/groups/resources/messages/client/Client.js +5 -5
  74. package/api/resources/health/client/Client.js +1 -1
  75. package/api/resources/identities/client/Client.js +7 -7
  76. package/api/resources/identities/resources/properties/client/Client.js +1 -1
  77. package/api/resources/index.d.ts +2 -0
  78. package/api/resources/index.js +3 -1
  79. package/api/resources/jobs/client/Client.js +5 -5
  80. package/api/resources/messages/client/Client.js +1 -1
  81. package/api/resources/models/client/Client.js +1 -1
  82. package/api/resources/projects/client/Client.js +1 -1
  83. package/api/resources/providers/client/Client.js +5 -5
  84. package/api/resources/runs/client/Client.js +4 -4
  85. package/api/resources/runs/resources/messages/client/Client.js +1 -1
  86. package/api/resources/runs/resources/steps/client/Client.js +1 -1
  87. package/api/resources/runs/resources/usage/client/Client.js +1 -1
  88. package/api/resources/sources/client/Client.js +10 -10
  89. package/api/resources/sources/resources/files/client/Client.js +3 -3
  90. package/api/resources/sources/resources/passages/client/Client.js +1 -1
  91. package/api/resources/steps/client/Client.js +2 -2
  92. package/api/resources/steps/resources/feedback/client/Client.js +1 -1
  93. package/api/resources/tags/client/Client.js +1 -1
  94. package/api/resources/telemetry/client/Client.js +1 -1
  95. package/api/resources/templates/client/Client.js +1 -1
  96. package/api/resources/templates/resources/agents/client/Client.js +1 -1
  97. package/api/resources/tools/client/Client.js +19 -19
  98. package/api/resources/voice/client/Client.js +1 -1
  99. package/api/types/Folder.d.ts +37 -0
  100. package/api/types/Folder.js +5 -0
  101. package/api/types/index.d.ts +1 -0
  102. package/api/types/index.js +1 -0
  103. package/dist/Client.d.ts +3 -0
  104. package/dist/Client.js +43 -38
  105. package/dist/api/resources/agents/client/Client.d.ts +6 -48
  106. package/dist/api/resources/agents/client/Client.js +34 -231
  107. package/dist/api/resources/agents/resources/blocks/client/Client.js +5 -5
  108. package/dist/api/resources/agents/resources/context/client/Client.js +1 -1
  109. package/dist/api/resources/agents/resources/coreMemory/client/Client.js +1 -1
  110. package/dist/api/resources/agents/resources/files/client/Client.d.ts +83 -0
  111. package/dist/api/resources/agents/resources/files/client/Client.js +276 -0
  112. package/dist/api/resources/agents/resources/files/client/index.d.ts +1 -0
  113. package/dist/api/resources/agents/resources/files/client/index.js +2 -0
  114. package/dist/api/resources/agents/resources/files/index.d.ts +1 -0
  115. package/dist/api/resources/agents/resources/files/index.js +17 -0
  116. package/dist/api/resources/agents/resources/folders/client/Client.d.ts +74 -0
  117. package/dist/api/resources/agents/resources/folders/client/Client.js +272 -0
  118. package/dist/api/resources/agents/resources/folders/client/index.d.ts +1 -0
  119. package/dist/api/resources/agents/resources/folders/client/index.js +2 -0
  120. package/dist/api/resources/agents/resources/folders/index.d.ts +1 -0
  121. package/dist/api/resources/agents/resources/folders/index.js +17 -0
  122. package/dist/api/resources/agents/resources/groups/client/Client.js +1 -1
  123. package/dist/api/resources/agents/resources/index.d.ts +2 -0
  124. package/dist/api/resources/agents/resources/index.js +3 -1
  125. package/dist/api/resources/agents/resources/memoryVariables/client/Client.js +1 -1
  126. package/dist/api/resources/agents/resources/messages/client/Client.js +8 -8
  127. package/dist/api/resources/agents/resources/passages/client/Client.js +4 -4
  128. package/dist/api/resources/agents/resources/sources/client/Client.js +3 -3
  129. package/dist/api/resources/agents/resources/templates/client/Client.js +3 -3
  130. package/dist/api/resources/agents/resources/tools/client/Client.js +3 -3
  131. package/dist/api/resources/batches/client/Client.js +4 -4
  132. package/dist/api/resources/blocks/client/Client.js +6 -6
  133. package/dist/api/resources/blocks/resources/agents/client/Client.js +1 -1
  134. package/dist/api/resources/clientSideAccessTokens/client/Client.js +3 -3
  135. package/dist/api/resources/embeddingModels/client/Client.js +1 -1
  136. package/dist/api/resources/folders/client/Client.d.ts +157 -0
  137. package/dist/api/resources/folders/client/Client.js +691 -0
  138. package/dist/api/resources/folders/client/index.d.ts +1 -0
  139. package/dist/api/resources/folders/client/index.js +17 -0
  140. package/dist/api/resources/folders/client/requests/FolderCreate.d.ts +26 -0
  141. package/dist/api/resources/folders/client/requests/FolderCreate.js +5 -0
  142. package/dist/api/resources/folders/client/requests/FolderUpdate.d.ts +20 -0
  143. package/dist/api/resources/folders/client/requests/FolderUpdate.js +5 -0
  144. package/dist/api/resources/folders/client/requests/GetFoldersMetadataRequest.d.ts +10 -0
  145. package/dist/api/resources/folders/client/requests/GetFoldersMetadataRequest.js +5 -0
  146. package/dist/api/resources/folders/client/requests/index.d.ts +3 -0
  147. package/dist/api/resources/folders/client/requests/index.js +2 -0
  148. package/dist/api/resources/folders/index.d.ts +2 -0
  149. package/dist/api/resources/folders/index.js +18 -0
  150. package/dist/api/resources/folders/resources/files/client/Client.d.ts +78 -0
  151. package/dist/api/resources/folders/resources/files/client/Client.js +289 -0
  152. package/dist/api/resources/folders/resources/files/client/index.d.ts +1 -0
  153. package/dist/api/resources/folders/resources/files/client/index.js +17 -0
  154. package/dist/api/resources/folders/resources/files/client/requests/BodyUploadFileToFolder.d.ts +14 -0
  155. package/dist/api/resources/folders/resources/files/client/requests/BodyUploadFileToFolder.js +5 -0
  156. package/dist/api/resources/folders/resources/files/client/requests/FilesListRequest.d.ts +21 -0
  157. package/dist/api/resources/folders/resources/files/client/requests/FilesListRequest.js +5 -0
  158. package/dist/api/resources/folders/resources/files/client/requests/index.d.ts +2 -0
  159. package/dist/api/resources/folders/resources/files/client/requests/index.js +2 -0
  160. package/dist/api/resources/folders/resources/files/index.d.ts +1 -0
  161. package/dist/api/resources/folders/resources/files/index.js +17 -0
  162. package/dist/api/resources/folders/resources/index.d.ts +4 -0
  163. package/dist/api/resources/folders/resources/index.js +43 -0
  164. package/dist/api/resources/folders/resources/passages/client/Client.d.ts +49 -0
  165. package/dist/api/resources/folders/resources/passages/client/Client.js +149 -0
  166. package/dist/api/resources/folders/resources/passages/client/index.d.ts +1 -0
  167. package/dist/api/resources/folders/resources/passages/client/index.js +17 -0
  168. package/dist/api/resources/folders/resources/passages/client/requests/PassagesListRequest.d.ts +21 -0
  169. package/dist/api/resources/folders/resources/passages/client/requests/PassagesListRequest.js +5 -0
  170. package/dist/api/resources/folders/resources/passages/client/requests/index.d.ts +1 -0
  171. package/dist/api/resources/folders/resources/passages/client/requests/index.js +2 -0
  172. package/dist/api/resources/folders/resources/passages/index.d.ts +1 -0
  173. package/dist/api/resources/folders/resources/passages/index.js +17 -0
  174. package/dist/api/resources/groups/client/Client.js +6 -6
  175. package/dist/api/resources/groups/resources/messages/client/Client.js +5 -5
  176. package/dist/api/resources/health/client/Client.js +1 -1
  177. package/dist/api/resources/identities/client/Client.js +7 -7
  178. package/dist/api/resources/identities/resources/properties/client/Client.js +1 -1
  179. package/dist/api/resources/index.d.ts +2 -0
  180. package/dist/api/resources/index.js +3 -1
  181. package/dist/api/resources/jobs/client/Client.js +5 -5
  182. package/dist/api/resources/messages/client/Client.js +1 -1
  183. package/dist/api/resources/models/client/Client.js +1 -1
  184. package/dist/api/resources/projects/client/Client.js +1 -1
  185. package/dist/api/resources/providers/client/Client.js +5 -5
  186. package/dist/api/resources/runs/client/Client.js +4 -4
  187. package/dist/api/resources/runs/resources/messages/client/Client.js +1 -1
  188. package/dist/api/resources/runs/resources/steps/client/Client.js +1 -1
  189. package/dist/api/resources/runs/resources/usage/client/Client.js +1 -1
  190. package/dist/api/resources/sources/client/Client.js +10 -10
  191. package/dist/api/resources/sources/resources/files/client/Client.js +3 -3
  192. package/dist/api/resources/sources/resources/passages/client/Client.js +1 -1
  193. package/dist/api/resources/steps/client/Client.js +2 -2
  194. package/dist/api/resources/steps/resources/feedback/client/Client.js +1 -1
  195. package/dist/api/resources/tags/client/Client.js +1 -1
  196. package/dist/api/resources/telemetry/client/Client.js +1 -1
  197. package/dist/api/resources/templates/client/Client.js +1 -1
  198. package/dist/api/resources/templates/resources/agents/client/Client.js +1 -1
  199. package/dist/api/resources/tools/client/Client.js +19 -19
  200. package/dist/api/resources/voice/client/Client.js +1 -1
  201. package/dist/api/types/Folder.d.ts +37 -0
  202. package/dist/api/types/Folder.js +5 -0
  203. package/dist/api/types/index.d.ts +1 -0
  204. package/dist/api/types/index.js +1 -0
  205. package/dist/serialization/resources/agents/client/index.d.ts +0 -2
  206. package/dist/serialization/resources/agents/client/index.js +1 -3
  207. package/dist/serialization/resources/agents/resources/files/client/closeAll.d.ts +9 -0
  208. package/{serialization/resources/agents/client/closeAllOpenFiles.js → dist/serialization/resources/agents/resources/files/client/closeAll.js} +1 -1
  209. package/dist/serialization/resources/agents/resources/files/client/index.d.ts +2 -0
  210. package/dist/serialization/resources/agents/resources/files/client/index.js +38 -0
  211. package/dist/serialization/resources/agents/resources/files/client/open.d.ts +9 -0
  212. package/{serialization/resources/agents/client/openFile.js → dist/serialization/resources/agents/resources/files/client/open.js} +1 -1
  213. package/dist/serialization/resources/agents/resources/files/index.d.ts +1 -0
  214. package/dist/serialization/resources/agents/resources/files/index.js +17 -0
  215. package/dist/serialization/resources/agents/resources/folders/client/index.d.ts +1 -0
  216. package/dist/serialization/resources/agents/resources/folders/client/index.js +37 -0
  217. package/dist/serialization/resources/agents/resources/folders/client/list.d.ts +11 -0
  218. package/dist/serialization/resources/agents/resources/folders/client/list.js +42 -0
  219. package/dist/serialization/resources/agents/resources/folders/index.d.ts +1 -0
  220. package/dist/serialization/resources/agents/resources/folders/index.js +17 -0
  221. package/dist/serialization/resources/agents/resources/index.d.ts +2 -0
  222. package/dist/serialization/resources/agents/resources/index.js +3 -1
  223. package/dist/serialization/resources/{agents/client/openFile.d.ts → folders/client/count.d.ts} +2 -2
  224. package/dist/serialization/resources/folders/client/count.js +41 -0
  225. package/dist/serialization/resources/{agents/client/closeAllOpenFiles.d.ts → folders/client/getAgentsForFolder.d.ts} +1 -1
  226. package/dist/serialization/resources/folders/client/index.d.ts +5 -0
  227. package/dist/serialization/resources/folders/client/index.js +44 -0
  228. package/dist/serialization/resources/folders/client/list.d.ts +11 -0
  229. package/dist/serialization/resources/folders/client/list.js +42 -0
  230. package/dist/serialization/resources/folders/client/requests/FolderCreate.d.ts +19 -0
  231. package/dist/serialization/resources/folders/client/requests/FolderCreate.js +50 -0
  232. package/dist/serialization/resources/folders/client/requests/FolderUpdate.d.ts +17 -0
  233. package/dist/serialization/resources/folders/client/requests/FolderUpdate.js +48 -0
  234. package/dist/serialization/resources/folders/client/requests/index.d.ts +2 -0
  235. package/dist/serialization/resources/folders/client/requests/index.js +7 -0
  236. package/dist/serialization/resources/folders/client/retrieveByName.d.ts +9 -0
  237. package/dist/serialization/resources/folders/client/retrieveByName.js +41 -0
  238. package/dist/serialization/resources/folders/index.d.ts +2 -0
  239. package/dist/serialization/resources/folders/index.js +18 -0
  240. package/dist/serialization/resources/folders/resources/files/client/index.d.ts +1 -0
  241. package/dist/serialization/resources/folders/resources/files/client/index.js +37 -0
  242. package/dist/serialization/resources/folders/resources/files/client/list.d.ts +11 -0
  243. package/dist/serialization/resources/folders/resources/files/client/list.js +42 -0
  244. package/dist/serialization/resources/folders/resources/files/index.d.ts +1 -0
  245. package/dist/serialization/resources/folders/resources/files/index.js +17 -0
  246. package/dist/serialization/resources/folders/resources/index.d.ts +2 -0
  247. package/dist/serialization/resources/folders/resources/index.js +38 -0
  248. package/dist/serialization/resources/folders/resources/passages/client/index.d.ts +1 -0
  249. package/dist/serialization/resources/folders/resources/passages/client/index.js +37 -0
  250. package/dist/serialization/resources/folders/resources/passages/client/list.d.ts +11 -0
  251. package/dist/serialization/resources/folders/resources/passages/client/list.js +42 -0
  252. package/dist/serialization/resources/folders/resources/passages/index.d.ts +1 -0
  253. package/dist/serialization/resources/folders/resources/passages/index.js +17 -0
  254. package/dist/serialization/resources/index.d.ts +2 -0
  255. package/dist/serialization/resources/index.js +3 -1
  256. package/dist/serialization/types/Folder.d.ts +22 -0
  257. package/dist/serialization/types/Folder.js +53 -0
  258. package/dist/serialization/types/index.d.ts +1 -0
  259. package/dist/serialization/types/index.js +1 -0
  260. package/dist/version.d.ts +1 -1
  261. package/dist/version.js +1 -1
  262. package/package.json +1 -1
  263. package/reference.md +1931 -857
  264. package/serialization/resources/agents/client/index.d.ts +0 -2
  265. package/serialization/resources/agents/client/index.js +1 -3
  266. package/serialization/resources/agents/resources/files/client/closeAll.d.ts +9 -0
  267. package/serialization/resources/agents/resources/files/client/closeAll.js +41 -0
  268. package/serialization/resources/agents/resources/files/client/index.d.ts +2 -0
  269. package/serialization/resources/agents/resources/files/client/index.js +38 -0
  270. package/serialization/resources/agents/resources/files/client/open.d.ts +9 -0
  271. package/serialization/resources/agents/resources/files/client/open.js +41 -0
  272. package/serialization/resources/agents/resources/files/index.d.ts +1 -0
  273. package/serialization/resources/agents/resources/files/index.js +17 -0
  274. package/serialization/resources/agents/resources/folders/client/index.d.ts +1 -0
  275. package/serialization/resources/agents/resources/folders/client/index.js +37 -0
  276. package/serialization/resources/agents/resources/folders/client/list.d.ts +11 -0
  277. package/serialization/resources/agents/resources/folders/client/list.js +42 -0
  278. package/serialization/resources/agents/resources/folders/index.d.ts +1 -0
  279. package/serialization/resources/agents/resources/folders/index.js +17 -0
  280. package/serialization/resources/agents/resources/index.d.ts +2 -0
  281. package/serialization/resources/agents/resources/index.js +3 -1
  282. package/serialization/resources/{agents/client/openFile.d.ts → folders/client/count.d.ts} +2 -2
  283. package/serialization/resources/folders/client/count.js +41 -0
  284. package/serialization/resources/{agents/client/closeAllOpenFiles.d.ts → folders/client/getAgentsForFolder.d.ts} +1 -1
  285. package/serialization/resources/folders/client/index.d.ts +5 -0
  286. package/serialization/resources/folders/client/index.js +44 -0
  287. package/serialization/resources/folders/client/list.d.ts +11 -0
  288. package/serialization/resources/folders/client/list.js +42 -0
  289. package/serialization/resources/folders/client/requests/FolderCreate.d.ts +19 -0
  290. package/serialization/resources/folders/client/requests/FolderCreate.js +50 -0
  291. package/serialization/resources/folders/client/requests/FolderUpdate.d.ts +17 -0
  292. package/serialization/resources/folders/client/requests/FolderUpdate.js +48 -0
  293. package/serialization/resources/folders/client/requests/index.d.ts +2 -0
  294. package/serialization/resources/folders/client/requests/index.js +7 -0
  295. package/serialization/resources/folders/client/retrieveByName.d.ts +9 -0
  296. package/serialization/resources/folders/client/retrieveByName.js +41 -0
  297. package/serialization/resources/folders/index.d.ts +2 -0
  298. package/serialization/resources/folders/index.js +18 -0
  299. package/serialization/resources/folders/resources/files/client/index.d.ts +1 -0
  300. package/serialization/resources/folders/resources/files/client/index.js +37 -0
  301. package/serialization/resources/folders/resources/files/client/list.d.ts +11 -0
  302. package/serialization/resources/folders/resources/files/client/list.js +42 -0
  303. package/serialization/resources/folders/resources/files/index.d.ts +1 -0
  304. package/serialization/resources/folders/resources/files/index.js +17 -0
  305. package/serialization/resources/folders/resources/index.d.ts +2 -0
  306. package/serialization/resources/folders/resources/index.js +38 -0
  307. package/serialization/resources/folders/resources/passages/client/index.d.ts +1 -0
  308. package/serialization/resources/folders/resources/passages/client/index.js +37 -0
  309. package/serialization/resources/folders/resources/passages/client/list.d.ts +11 -0
  310. package/serialization/resources/folders/resources/passages/client/list.js +42 -0
  311. package/serialization/resources/folders/resources/passages/index.d.ts +1 -0
  312. package/serialization/resources/folders/resources/passages/index.js +17 -0
  313. package/serialization/resources/index.d.ts +2 -0
  314. package/serialization/resources/index.js +3 -1
  315. package/serialization/types/Folder.d.ts +22 -0
  316. package/serialization/types/Folder.js +53 -0
  317. package/serialization/types/index.d.ts +1 -0
  318. package/serialization/types/index.js +1 -0
  319. package/version.d.ts +1 -1
  320. package/version.js +1 -1
  321. /package/dist/serialization/resources/{agents/client/closeAllOpenFiles.js → folders/client/getAgentsForFolder.js} +0 -0
  322. /package/{dist/serialization/resources/agents/client/openFile.js → serialization/resources/folders/client/getAgentsForFolder.js} +0 -0
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./client"), exports);
@@ -84,7 +84,7 @@ class Groups {
84
84
  method: "GET",
85
85
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
86
86
  ? yield core.Supplier.get(this._options.project)
87
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.160", "User-Agent": "@letta-ai/letta-client/0.1.160", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
87
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.162", "User-Agent": "@letta-ai/letta-client/0.1.162", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
88
88
  contentType: "application/json",
89
89
  queryParameters: _queryParams,
90
90
  requestType: "json",
@@ -7,6 +7,8 @@ export * from "./memoryVariables/types";
7
7
  export * as context from "./context";
8
8
  export * as tools from "./tools";
9
9
  export * as sources from "./sources";
10
+ export * as folders from "./folders";
11
+ export * as files from "./files";
10
12
  export * as coreMemory from "./coreMemory";
11
13
  export * as blocks from "./blocks";
12
14
  export * as passages from "./passages";
@@ -36,7 +36,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
36
36
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
37
37
  };
38
38
  Object.defineProperty(exports, "__esModule", { value: true });
39
- exports.groups = exports.passages = exports.blocks = exports.coreMemory = exports.sources = exports.tools = exports.context = exports.memoryVariables = exports.templates = exports.messages = void 0;
39
+ exports.groups = exports.passages = exports.blocks = exports.coreMemory = exports.files = exports.folders = exports.sources = exports.tools = exports.context = exports.memoryVariables = exports.templates = exports.messages = void 0;
40
40
  exports.messages = __importStar(require("./messages"));
41
41
  __exportStar(require("./messages/types"), exports);
42
42
  exports.templates = __importStar(require("./templates"));
@@ -46,6 +46,8 @@ __exportStar(require("./memoryVariables/types"), exports);
46
46
  exports.context = __importStar(require("./context"));
47
47
  exports.tools = __importStar(require("./tools"));
48
48
  exports.sources = __importStar(require("./sources"));
49
+ exports.folders = __importStar(require("./folders"));
50
+ exports.files = __importStar(require("./files"));
49
51
  exports.coreMemory = __importStar(require("./coreMemory"));
50
52
  exports.blocks = __importStar(require("./blocks"));
51
53
  exports.passages = __importStar(require("./passages"));
@@ -80,7 +80,7 @@ class MemoryVariables {
80
80
  method: "GET",
81
81
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
82
82
  ? yield core.Supplier.get(this._options.project)
83
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.160", "User-Agent": "@letta-ai/letta-client/0.1.160", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
83
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.162", "User-Agent": "@letta-ai/letta-client/0.1.162", "X-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
84
  contentType: "application/json",
85
85
  requestType: "json",
86
86
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -105,7 +105,7 @@ class Messages {
105
105
  method: "GET",
106
106
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
107
107
  ? yield core.Supplier.get(this._options.project)
108
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.160", "User-Agent": "@letta-ai/letta-client/0.1.160", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
108
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.162", "User-Agent": "@letta-ai/letta-client/0.1.162", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
109
109
  contentType: "application/json",
110
110
  queryParameters: _queryParams,
111
111
  requestType: "json",
@@ -183,7 +183,7 @@ class Messages {
183
183
  method: "POST",
184
184
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
185
185
  ? yield core.Supplier.get(this._options.project)
186
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.160", "User-Agent": "@letta-ai/letta-client/0.1.160", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
186
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.162", "User-Agent": "@letta-ai/letta-client/0.1.162", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
187
187
  contentType: "application/json",
188
188
  requestType: "json",
189
189
  body: serializers.LettaRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -255,7 +255,7 @@ class Messages {
255
255
  method: "PATCH",
256
256
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
257
257
  ? yield core.Supplier.get(this._options.project)
258
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.160", "User-Agent": "@letta-ai/letta-client/0.1.160", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
258
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.162", "User-Agent": "@letta-ai/letta-client/0.1.162", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
259
259
  contentType: "application/json",
260
260
  requestType: "json",
261
261
  body: serializers.agents.MessagesModifyRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -317,7 +317,7 @@ class Messages {
317
317
  method: "POST",
318
318
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
319
319
  ? yield core.Supplier.get(this._options.project)
320
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.160", "User-Agent": "@letta-ai/letta-client/0.1.160", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
320
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.162", "User-Agent": "@letta-ai/letta-client/0.1.162", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
321
321
  contentType: "application/json",
322
322
  requestType: "json",
323
323
  body: serializers.LettaStreamingRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -399,7 +399,7 @@ class Messages {
399
399
  method: "POST",
400
400
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
401
401
  ? yield core.Supplier.get(this._options.project)
402
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.160", "User-Agent": "@letta-ai/letta-client/0.1.160", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
402
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.162", "User-Agent": "@letta-ai/letta-client/0.1.162", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
403
403
  contentType: "application/json",
404
404
  requestType: "json",
405
405
  body: request != null
@@ -484,7 +484,7 @@ class Messages {
484
484
  method: "POST",
485
485
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
486
486
  ? yield core.Supplier.get(this._options.project)
487
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.160", "User-Agent": "@letta-ai/letta-client/0.1.160", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
487
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.162", "User-Agent": "@letta-ai/letta-client/0.1.162", "X-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
488
  contentType: "application/json",
489
489
  requestType: "json",
490
490
  body: serializers.agents.LettaAsyncRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -558,7 +558,7 @@ class Messages {
558
558
  method: "PATCH",
559
559
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
560
560
  ? yield core.Supplier.get(this._options.project)
561
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.160", "User-Agent": "@letta-ai/letta-client/0.1.160", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
561
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.162", "User-Agent": "@letta-ai/letta-client/0.1.162", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
562
562
  contentType: "application/json",
563
563
  queryParameters: _queryParams,
564
564
  requestType: "json",
@@ -639,7 +639,7 @@ class Messages {
639
639
  method: "POST",
640
640
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
641
641
  ? yield core.Supplier.get(this._options.project)
642
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.160", "User-Agent": "@letta-ai/letta-client/0.1.160", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
642
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.162", "User-Agent": "@letta-ai/letta-client/0.1.162", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
643
643
  contentType: "application/json",
644
644
  requestType: "json",
645
645
  body: serializers.agents.MessagesPreviewRawPayloadRequest.jsonOrThrow(request, {
@@ -96,7 +96,7 @@ class Passages {
96
96
  method: "GET",
97
97
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
98
98
  ? yield core.Supplier.get(this._options.project)
99
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.160", "User-Agent": "@letta-ai/letta-client/0.1.160", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
99
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.162", "User-Agent": "@letta-ai/letta-client/0.1.162", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
100
100
  contentType: "application/json",
101
101
  queryParameters: _queryParams,
102
102
  requestType: "json",
@@ -167,7 +167,7 @@ class Passages {
167
167
  method: "POST",
168
168
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
169
169
  ? yield core.Supplier.get(this._options.project)
170
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.160", "User-Agent": "@letta-ai/letta-client/0.1.160", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
170
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.162", "User-Agent": "@letta-ai/letta-client/0.1.162", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
171
171
  contentType: "application/json",
172
172
  requestType: "json",
173
173
  body: serializers.agents.CreateArchivalMemory.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -236,7 +236,7 @@ class Passages {
236
236
  method: "DELETE",
237
237
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
238
238
  ? yield core.Supplier.get(this._options.project)
239
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.160", "User-Agent": "@letta-ai/letta-client/0.1.160", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
239
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.162", "User-Agent": "@letta-ai/letta-client/0.1.162", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
240
240
  contentType: "application/json",
241
241
  requestType: "json",
242
242
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -301,7 +301,7 @@ class Passages {
301
301
  method: "PATCH",
302
302
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
303
303
  ? yield core.Supplier.get(this._options.project)
304
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.160", "User-Agent": "@letta-ai/letta-client/0.1.160", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
304
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.162", "User-Agent": "@letta-ai/letta-client/0.1.162", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
305
305
  contentType: "application/json",
306
306
  requestType: "json",
307
307
  body: serializers.agents.PassageUpdate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -79,7 +79,7 @@ class Sources {
79
79
  method: "PATCH",
80
80
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
81
81
  ? yield core.Supplier.get(this._options.project)
82
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.160", "User-Agent": "@letta-ai/letta-client/0.1.160", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
82
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.162", "User-Agent": "@letta-ai/letta-client/0.1.162", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
83
83
  contentType: "application/json",
84
84
  requestType: "json",
85
85
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -147,7 +147,7 @@ class Sources {
147
147
  method: "PATCH",
148
148
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
149
149
  ? yield core.Supplier.get(this._options.project)
150
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.160", "User-Agent": "@letta-ai/letta-client/0.1.160", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
150
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.162", "User-Agent": "@letta-ai/letta-client/0.1.162", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
151
151
  contentType: "application/json",
152
152
  requestType: "json",
153
153
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -214,7 +214,7 @@ class Sources {
214
214
  method: "GET",
215
215
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
216
216
  ? yield core.Supplier.get(this._options.project)
217
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.160", "User-Agent": "@letta-ai/letta-client/0.1.160", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
217
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.162", "User-Agent": "@letta-ai/letta-client/0.1.162", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
218
218
  contentType: "application/json",
219
219
  requestType: "json",
220
220
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -98,7 +98,7 @@ class Templates {
98
98
  method: "POST",
99
99
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
100
100
  ? yield core.Supplier.get(this._options.project)
101
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.160", "User-Agent": "@letta-ai/letta-client/0.1.160", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
101
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.162", "User-Agent": "@letta-ai/letta-client/0.1.162", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
102
102
  contentType: "application/json",
103
103
  queryParameters: _queryParams,
104
104
  requestType: "json",
@@ -167,7 +167,7 @@ class Templates {
167
167
  method: "POST",
168
168
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
169
169
  ? yield core.Supplier.get(this._options.project)
170
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.160", "User-Agent": "@letta-ai/letta-client/0.1.160", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
170
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.162", "User-Agent": "@letta-ai/letta-client/0.1.162", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
171
171
  contentType: "application/json",
172
172
  requestType: "json",
173
173
  body: serializers.agents.TemplatesMigrateRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -242,7 +242,7 @@ class Templates {
242
242
  method: "POST",
243
243
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
244
244
  ? yield core.Supplier.get(this._options.project)
245
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.160", "User-Agent": "@letta-ai/letta-client/0.1.160", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
245
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.162", "User-Agent": "@letta-ai/letta-client/0.1.162", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
246
246
  contentType: "application/json",
247
247
  requestType: "json",
248
248
  body: serializers.agents.TemplatesCreateRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -78,7 +78,7 @@ class Tools {
78
78
  method: "GET",
79
79
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
80
80
  ? yield core.Supplier.get(this._options.project)
81
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.160", "User-Agent": "@letta-ai/letta-client/0.1.160", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
81
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.162", "User-Agent": "@letta-ai/letta-client/0.1.162", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
82
82
  contentType: "application/json",
83
83
  requestType: "json",
84
84
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -146,7 +146,7 @@ class Tools {
146
146
  method: "PATCH",
147
147
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
148
148
  ? yield core.Supplier.get(this._options.project)
149
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.160", "User-Agent": "@letta-ai/letta-client/0.1.160", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
149
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.162", "User-Agent": "@letta-ai/letta-client/0.1.162", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
150
150
  contentType: "application/json",
151
151
  requestType: "json",
152
152
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -214,7 +214,7 @@ class Tools {
214
214
  method: "PATCH",
215
215
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
216
216
  ? yield core.Supplier.get(this._options.project)
217
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.160", "User-Agent": "@letta-ai/letta-client/0.1.160", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
217
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.162", "User-Agent": "@letta-ai/letta-client/0.1.162", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
218
218
  contentType: "application/json",
219
219
  requestType: "json",
220
220
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -77,7 +77,7 @@ class Batches {
77
77
  method: "GET",
78
78
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
79
79
  ? yield core.Supplier.get(this._options.project)
80
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.160", "User-Agent": "@letta-ai/letta-client/0.1.160", "X-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
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.162", "User-Agent": "@letta-ai/letta-client/0.1.162", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
81
81
  contentType: "application/json",
82
82
  requestType: "json",
83
83
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -156,7 +156,7 @@ class Batches {
156
156
  method: "POST",
157
157
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
158
158
  ? yield core.Supplier.get(this._options.project)
159
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.160", "User-Agent": "@letta-ai/letta-client/0.1.160", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
159
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.162", "User-Agent": "@letta-ai/letta-client/0.1.162", "X-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
160
  contentType: "application/json",
161
161
  requestType: "json",
162
162
  body: serializers.CreateBatch.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -224,7 +224,7 @@ class Batches {
224
224
  method: "GET",
225
225
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
226
226
  ? yield core.Supplier.get(this._options.project)
227
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.160", "User-Agent": "@letta-ai/letta-client/0.1.160", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
227
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.162", "User-Agent": "@letta-ai/letta-client/0.1.162", "X-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
228
  contentType: "application/json",
229
229
  requestType: "json",
230
230
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -291,7 +291,7 @@ class Batches {
291
291
  method: "PATCH",
292
292
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
293
293
  ? yield core.Supplier.get(this._options.project)
294
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.160", "User-Agent": "@letta-ai/letta-client/0.1.160", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
294
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.162", "User-Agent": "@letta-ai/letta-client/0.1.162", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
295
295
  contentType: "application/json",
296
296
  requestType: "json",
297
297
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -106,7 +106,7 @@ class Blocks {
106
106
  method: "GET",
107
107
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
108
108
  ? yield core.Supplier.get(this._options.project)
109
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.160", "User-Agent": "@letta-ai/letta-client/0.1.160", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
109
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.162", "User-Agent": "@letta-ai/letta-client/0.1.162", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
110
110
  contentType: "application/json",
111
111
  queryParameters: _queryParams,
112
112
  requestType: "json",
@@ -175,7 +175,7 @@ class Blocks {
175
175
  method: "POST",
176
176
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
177
177
  ? yield core.Supplier.get(this._options.project)
178
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.160", "User-Agent": "@letta-ai/letta-client/0.1.160", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
178
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.162", "User-Agent": "@letta-ai/letta-client/0.1.162", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
179
179
  contentType: "application/json",
180
180
  requestType: "json",
181
181
  body: serializers.CreateBlock.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -242,7 +242,7 @@ class Blocks {
242
242
  method: "GET",
243
243
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
244
244
  ? yield core.Supplier.get(this._options.project)
245
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.160", "User-Agent": "@letta-ai/letta-client/0.1.160", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
245
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.162", "User-Agent": "@letta-ai/letta-client/0.1.162", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
246
246
  contentType: "application/json",
247
247
  requestType: "json",
248
248
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -307,7 +307,7 @@ class Blocks {
307
307
  method: "GET",
308
308
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
309
309
  ? yield core.Supplier.get(this._options.project)
310
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.160", "User-Agent": "@letta-ai/letta-client/0.1.160", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
310
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.162", "User-Agent": "@letta-ai/letta-client/0.1.162", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
311
311
  contentType: "application/json",
312
312
  requestType: "json",
313
313
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -372,7 +372,7 @@ class Blocks {
372
372
  method: "DELETE",
373
373
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
374
374
  ? yield core.Supplier.get(this._options.project)
375
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.160", "User-Agent": "@letta-ai/letta-client/0.1.160", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
375
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.162", "User-Agent": "@letta-ai/letta-client/0.1.162", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
376
376
  contentType: "application/json",
377
377
  requestType: "json",
378
378
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -432,7 +432,7 @@ class Blocks {
432
432
  method: "PATCH",
433
433
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
434
434
  ? yield core.Supplier.get(this._options.project)
435
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.160", "User-Agent": "@letta-ai/letta-client/0.1.160", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
435
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.162", "User-Agent": "@letta-ai/letta-client/0.1.162", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
436
436
  contentType: "application/json",
437
437
  requestType: "json",
438
438
  body: serializers.BlockUpdate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -90,7 +90,7 @@ class Agents {
90
90
  method: "GET",
91
91
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
92
92
  ? yield core.Supplier.get(this._options.project)
93
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.160", "User-Agent": "@letta-ai/letta-client/0.1.160", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
93
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.162", "User-Agent": "@letta-ai/letta-client/0.1.162", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
94
94
  contentType: "application/json",
95
95
  queryParameters: _queryParams,
96
96
  requestType: "json",
@@ -89,7 +89,7 @@ class ClientSideAccessTokens {
89
89
  method: "GET",
90
90
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
91
91
  ? yield core.Supplier.get(this._options.project)
92
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.160", "User-Agent": "@letta-ai/letta-client/0.1.160", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
92
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.162", "User-Agent": "@letta-ai/letta-client/0.1.162", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
93
93
  contentType: "application/json",
94
94
  queryParameters: _queryParams,
95
95
  requestType: "json",
@@ -158,7 +158,7 @@ class ClientSideAccessTokens {
158
158
  method: "POST",
159
159
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
160
160
  ? yield core.Supplier.get(this._options.project)
161
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.160", "User-Agent": "@letta-ai/letta-client/0.1.160", "X-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
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.162", "User-Agent": "@letta-ai/letta-client/0.1.162", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
162
162
  contentType: "application/json",
163
163
  requestType: "json",
164
164
  body: serializers.ClientSideAccessTokensCreateRequest.jsonOrThrow(request, {
@@ -225,7 +225,7 @@ class ClientSideAccessTokens {
225
225
  method: "DELETE",
226
226
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
227
227
  ? yield core.Supplier.get(this._options.project)
228
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.160", "User-Agent": "@letta-ai/letta-client/0.1.160", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
228
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.162", "User-Agent": "@letta-ai/letta-client/0.1.162", "X-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: request,
@@ -77,7 +77,7 @@ class EmbeddingModels {
77
77
  method: "GET",
78
78
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
79
79
  ? yield core.Supplier.get(this._options.project)
80
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.160", "User-Agent": "@letta-ai/letta-client/0.1.160", "X-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
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.162", "User-Agent": "@letta-ai/letta-client/0.1.162", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
81
81
  contentType: "application/json",
82
82
  requestType: "json",
83
83
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -0,0 +1,157 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as environments from "../../../../environments";
5
+ import * as core from "../../../../core";
6
+ import * as Letta from "../../../index";
7
+ import { Files } from "../resources/files/client/Client";
8
+ import { Passages } from "../resources/passages/client/Client";
9
+ export declare namespace Folders {
10
+ interface Options {
11
+ environment?: core.Supplier<environments.LettaEnvironment | string>;
12
+ /** Specify a custom URL to connect the client to. */
13
+ baseUrl?: core.Supplier<string>;
14
+ token?: core.Supplier<string | undefined>;
15
+ /** Override the X-Project header */
16
+ project?: core.Supplier<string | undefined>;
17
+ fetcher?: core.FetchFunction;
18
+ }
19
+ interface RequestOptions {
20
+ /** The maximum time to wait for a response in seconds. */
21
+ timeoutInSeconds?: number;
22
+ /** The number of times to retry the request. Defaults to 2. */
23
+ maxRetries?: number;
24
+ /** A hook to abort the request. */
25
+ abortSignal?: AbortSignal;
26
+ /** Override the X-Project header */
27
+ project?: string | undefined;
28
+ /** Additional headers to include in the request. */
29
+ headers?: Record<string, string>;
30
+ }
31
+ }
32
+ export declare class Folders {
33
+ protected readonly _options: Folders.Options;
34
+ protected _files: Files | undefined;
35
+ protected _passages: Passages | undefined;
36
+ constructor(_options?: Folders.Options);
37
+ get files(): Files;
38
+ get passages(): Passages;
39
+ /**
40
+ * Count all data folders created by a user.
41
+ *
42
+ * @param {Folders.RequestOptions} requestOptions - Request-specific configuration.
43
+ *
44
+ * @throws {@link Letta.UnprocessableEntityError}
45
+ *
46
+ * @example
47
+ * await client.folders.count()
48
+ */
49
+ count(requestOptions?: Folders.RequestOptions): Promise<number>;
50
+ /**
51
+ * Get a folder by ID
52
+ *
53
+ * @param {string} folderId
54
+ * @param {Folders.RequestOptions} requestOptions - Request-specific configuration.
55
+ *
56
+ * @throws {@link Letta.UnprocessableEntityError}
57
+ *
58
+ * @example
59
+ * await client.folders.retrieve("folder_id")
60
+ */
61
+ retrieve(folderId: string, requestOptions?: Folders.RequestOptions): Promise<Letta.Folder>;
62
+ /**
63
+ * Delete a data folder.
64
+ *
65
+ * @param {string} folderId
66
+ * @param {Folders.RequestOptions} requestOptions - Request-specific configuration.
67
+ *
68
+ * @throws {@link Letta.UnprocessableEntityError}
69
+ *
70
+ * @example
71
+ * await client.folders.delete("folder_id")
72
+ */
73
+ delete(folderId: string, requestOptions?: Folders.RequestOptions): Promise<unknown>;
74
+ /**
75
+ * Update the name or documentation of an existing data folder.
76
+ *
77
+ * @param {string} folderId
78
+ * @param {Letta.FolderUpdate} request
79
+ * @param {Folders.RequestOptions} requestOptions - Request-specific configuration.
80
+ *
81
+ * @throws {@link Letta.UnprocessableEntityError}
82
+ *
83
+ * @example
84
+ * await client.folders.modify("folder_id")
85
+ */
86
+ modify(folderId: string, request?: Letta.FolderUpdate, requestOptions?: Folders.RequestOptions): Promise<Letta.Folder>;
87
+ /**
88
+ * Get a folder by name
89
+ *
90
+ * @param {string} folderName
91
+ * @param {Folders.RequestOptions} requestOptions - Request-specific configuration.
92
+ *
93
+ * @throws {@link Letta.UnprocessableEntityError}
94
+ *
95
+ * @example
96
+ * await client.folders.retrieveByName("folder_name")
97
+ */
98
+ retrieveByName(folderName: string, requestOptions?: Folders.RequestOptions): Promise<string>;
99
+ /**
100
+ * Get aggregated metadata for all folders in an organization.
101
+ *
102
+ * Returns structured metadata including:
103
+ * - Total number of folders
104
+ * - Total number of files across all folders
105
+ * - Total size of all files
106
+ * - Per-source breakdown with file details (file_name, file_size per file) if include_detailed_per_source_metadata is True
107
+ *
108
+ * @param {Letta.GetFoldersMetadataRequest} request
109
+ * @param {Folders.RequestOptions} requestOptions - Request-specific configuration.
110
+ *
111
+ * @throws {@link Letta.UnprocessableEntityError}
112
+ *
113
+ * @example
114
+ * await client.folders.getFoldersMetadata()
115
+ */
116
+ getFoldersMetadata(request?: Letta.GetFoldersMetadataRequest, requestOptions?: Folders.RequestOptions): Promise<Letta.OrganizationSourcesStats>;
117
+ /**
118
+ * List all data folders created by a user.
119
+ *
120
+ * @param {Folders.RequestOptions} requestOptions - Request-specific configuration.
121
+ *
122
+ * @throws {@link Letta.UnprocessableEntityError}
123
+ *
124
+ * @example
125
+ * await client.folders.list()
126
+ */
127
+ list(requestOptions?: Folders.RequestOptions): Promise<Letta.Folder[]>;
128
+ /**
129
+ * Create a new data folder.
130
+ *
131
+ * @param {Letta.FolderCreate} request
132
+ * @param {Folders.RequestOptions} requestOptions - Request-specific configuration.
133
+ *
134
+ * @throws {@link Letta.UnprocessableEntityError}
135
+ *
136
+ * @example
137
+ * await client.folders.create({
138
+ * name: "name"
139
+ * })
140
+ */
141
+ create(request: Letta.FolderCreate, requestOptions?: Folders.RequestOptions): Promise<Letta.Folder>;
142
+ /**
143
+ * Get all agent IDs that have the specified folder attached.
144
+ *
145
+ * @param {string} folderId
146
+ * @param {Folders.RequestOptions} requestOptions - Request-specific configuration.
147
+ *
148
+ * @throws {@link Letta.UnprocessableEntityError}
149
+ *
150
+ * @example
151
+ * await client.folders.getAgentsForFolder("folder_id")
152
+ */
153
+ getAgentsForFolder(folderId: string, requestOptions?: Folders.RequestOptions): Promise<string[]>;
154
+ protected _getCustomAuthorizationHeaders(): Promise<{
155
+ Authorization: string;
156
+ }>;
157
+ }