@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 @@
1
+ export * from "./requests";
@@ -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("./requests"), exports);
@@ -0,0 +1,26 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Letta from "../../../../index";
5
+ /**
6
+ * @example
7
+ * {
8
+ * name: "name"
9
+ * }
10
+ */
11
+ export interface FolderCreate {
12
+ /** The name of the folder. */
13
+ name: string;
14
+ /** The description of the folder. */
15
+ description?: string;
16
+ /** Instructions for how to use the folder. */
17
+ instructions?: string;
18
+ /** Metadata associated with the folder. */
19
+ metadata?: Record<string, unknown>;
20
+ /** The handle for the embedding config used by the folder. */
21
+ embedding?: string;
22
+ /** The chunk size of the embedding. */
23
+ embeddingChunkSize?: number;
24
+ /** (Legacy) The embedding configuration used by the folder. */
25
+ embeddingConfig?: Letta.EmbeddingConfig;
26
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,20 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Letta from "../../../../index";
5
+ /**
6
+ * @example
7
+ * {}
8
+ */
9
+ export interface FolderUpdate {
10
+ /** The name of the folder. */
11
+ name?: string;
12
+ /** The description of the folder. */
13
+ description?: string;
14
+ /** Instructions for how to use the folder. */
15
+ instructions?: string;
16
+ /** Metadata associated with the folder. */
17
+ metadata?: Record<string, unknown>;
18
+ /** The embedding configuration used by the folder. */
19
+ embeddingConfig?: Letta.EmbeddingConfig;
20
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,10 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * @example
6
+ * {}
7
+ */
8
+ export interface GetFoldersMetadataRequest {
9
+ includeDetailedPerSourceMetadata?: boolean;
10
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,3 @@
1
+ export { type FolderUpdate } from "./FolderUpdate";
2
+ export { type GetFoldersMetadataRequest } from "./GetFoldersMetadataRequest";
3
+ export { type FolderCreate } from "./FolderCreate";
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,2 @@
1
+ export * from "./client";
2
+ export * from "./resources";
@@ -0,0 +1,18 @@
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);
18
+ __exportStar(require("./resources"), exports);
@@ -0,0 +1,78 @@
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 * as fs from "fs";
8
+ import { Blob } from "buffer";
9
+ export declare namespace Files {
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 Files {
33
+ protected readonly _options: Files.Options;
34
+ constructor(_options?: Files.Options);
35
+ /**
36
+ * Upload a file to a data folder.
37
+ *
38
+ * @param {File | fs.ReadStream | Blob} file
39
+ * @param {string} folderId
40
+ * @param {Letta.folders.BodyUploadFileToFolder} request
41
+ * @param {Files.RequestOptions} requestOptions - Request-specific configuration.
42
+ *
43
+ * @throws {@link Letta.UnprocessableEntityError}
44
+ *
45
+ * @example
46
+ * await client.folders.files.upload(fs.createReadStream("/path/to/your/file"), "folder_id", {})
47
+ */
48
+ upload(file: File | fs.ReadStream | Blob, folderId: string, request: Letta.folders.BodyUploadFileToFolder, requestOptions?: Files.RequestOptions): Promise<Letta.FileMetadata>;
49
+ /**
50
+ * List paginated files associated with a data folder.
51
+ *
52
+ * @param {string} folderId
53
+ * @param {Letta.folders.FilesListRequest} request
54
+ * @param {Files.RequestOptions} requestOptions - Request-specific configuration.
55
+ *
56
+ * @throws {@link Letta.UnprocessableEntityError}
57
+ *
58
+ * @example
59
+ * await client.folders.files.list("folder_id")
60
+ */
61
+ list(folderId: string, request?: Letta.folders.FilesListRequest, requestOptions?: Files.RequestOptions): Promise<Letta.FileMetadata[]>;
62
+ /**
63
+ * Delete a file from a folder.
64
+ *
65
+ * @param {string} folderId
66
+ * @param {string} fileId
67
+ * @param {Files.RequestOptions} requestOptions - Request-specific configuration.
68
+ *
69
+ * @throws {@link Letta.UnprocessableEntityError}
70
+ *
71
+ * @example
72
+ * await client.folders.files.delete("folder_id", "file_id")
73
+ */
74
+ delete(folderId: string, fileId: string, requestOptions?: Files.RequestOptions): Promise<void>;
75
+ protected _getCustomAuthorizationHeaders(): Promise<{
76
+ Authorization: string;
77
+ }>;
78
+ }
@@ -0,0 +1,289 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || (function () {
22
+ var ownKeys = function(o) {
23
+ ownKeys = Object.getOwnPropertyNames || function (o) {
24
+ var ar = [];
25
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
26
+ return ar;
27
+ };
28
+ return ownKeys(o);
29
+ };
30
+ return function (mod) {
31
+ if (mod && mod.__esModule) return mod;
32
+ var result = {};
33
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
34
+ __setModuleDefault(result, mod);
35
+ return result;
36
+ };
37
+ })();
38
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
39
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
40
+ return new (P || (P = Promise))(function (resolve, reject) {
41
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
42
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
43
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
44
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
45
+ });
46
+ };
47
+ var __importDefault = (this && this.__importDefault) || function (mod) {
48
+ return (mod && mod.__esModule) ? mod : { "default": mod };
49
+ };
50
+ Object.defineProperty(exports, "__esModule", { value: true });
51
+ exports.Files = void 0;
52
+ const environments = __importStar(require("../../../../../../environments"));
53
+ const core = __importStar(require("../../../../../../core"));
54
+ const Letta = __importStar(require("../../../../../index"));
55
+ const url_join_1 = __importDefault(require("url-join"));
56
+ const serializers = __importStar(require("../../../../../../serialization/index"));
57
+ const errors = __importStar(require("../../../../../../errors/index"));
58
+ class Files {
59
+ constructor(_options = {}) {
60
+ this._options = _options;
61
+ }
62
+ /**
63
+ * Upload a file to a data folder.
64
+ *
65
+ * @param {File | fs.ReadStream | Blob} file
66
+ * @param {string} folderId
67
+ * @param {Letta.folders.BodyUploadFileToFolder} request
68
+ * @param {Files.RequestOptions} requestOptions - Request-specific configuration.
69
+ *
70
+ * @throws {@link Letta.UnprocessableEntityError}
71
+ *
72
+ * @example
73
+ * await client.folders.files.upload(fs.createReadStream("/path/to/your/file"), "folder_id", {})
74
+ */
75
+ upload(file, folderId, request, requestOptions) {
76
+ return __awaiter(this, void 0, void 0, function* () {
77
+ var _a, _b, _c;
78
+ const _queryParams = {};
79
+ if (request.duplicateHandling != null) {
80
+ _queryParams["duplicate_handling"] = request.duplicateHandling;
81
+ }
82
+ const _request = yield core.newFormData();
83
+ yield _request.appendFile("file", file);
84
+ const _maybeEncodedRequest = yield _request.getRequest();
85
+ const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
86
+ url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, `v1/folders/${encodeURIComponent(folderId)}/upload`),
87
+ method: "POST",
88
+ headers: Object.assign(Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
89
+ ? yield core.Supplier.get(this._options.project)
90
+ : 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())), _maybeEncodedRequest.headers), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
91
+ queryParameters: _queryParams,
92
+ requestType: "file",
93
+ duplex: _maybeEncodedRequest.duplex,
94
+ body: _maybeEncodedRequest.body,
95
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
96
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
97
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
98
+ });
99
+ if (_response.ok) {
100
+ return serializers.FileMetadata.parseOrThrow(_response.body, {
101
+ unrecognizedObjectKeys: "passthrough",
102
+ allowUnrecognizedUnionMembers: true,
103
+ allowUnrecognizedEnumValues: true,
104
+ skipValidation: true,
105
+ breadcrumbsPrefix: ["response"],
106
+ });
107
+ }
108
+ if (_response.error.reason === "status-code") {
109
+ switch (_response.error.statusCode) {
110
+ case 422:
111
+ throw new Letta.UnprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
112
+ unrecognizedObjectKeys: "passthrough",
113
+ allowUnrecognizedUnionMembers: true,
114
+ allowUnrecognizedEnumValues: true,
115
+ skipValidation: true,
116
+ breadcrumbsPrefix: ["response"],
117
+ }));
118
+ default:
119
+ throw new errors.LettaError({
120
+ statusCode: _response.error.statusCode,
121
+ body: _response.error.body,
122
+ });
123
+ }
124
+ }
125
+ switch (_response.error.reason) {
126
+ case "non-json":
127
+ throw new errors.LettaError({
128
+ statusCode: _response.error.statusCode,
129
+ body: _response.error.rawBody,
130
+ });
131
+ case "timeout":
132
+ throw new errors.LettaTimeoutError("Timeout exceeded when calling POST /v1/folders/{folder_id}/upload.");
133
+ case "unknown":
134
+ throw new errors.LettaError({
135
+ message: _response.error.errorMessage,
136
+ });
137
+ }
138
+ });
139
+ }
140
+ /**
141
+ * List paginated files associated with a data folder.
142
+ *
143
+ * @param {string} folderId
144
+ * @param {Letta.folders.FilesListRequest} request
145
+ * @param {Files.RequestOptions} requestOptions - Request-specific configuration.
146
+ *
147
+ * @throws {@link Letta.UnprocessableEntityError}
148
+ *
149
+ * @example
150
+ * await client.folders.files.list("folder_id")
151
+ */
152
+ list(folderId_1) {
153
+ return __awaiter(this, arguments, void 0, function* (folderId, request = {}, requestOptions) {
154
+ var _a, _b, _c;
155
+ const { limit, after, includeContent } = request;
156
+ const _queryParams = {};
157
+ if (limit != null) {
158
+ _queryParams["limit"] = limit.toString();
159
+ }
160
+ if (after != null) {
161
+ _queryParams["after"] = after;
162
+ }
163
+ if (includeContent != null) {
164
+ _queryParams["include_content"] = includeContent.toString();
165
+ }
166
+ const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
167
+ url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, `v1/folders/${encodeURIComponent(folderId)}/files`),
168
+ method: "GET",
169
+ headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
170
+ ? yield core.Supplier.get(this._options.project)
171
+ : 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),
172
+ contentType: "application/json",
173
+ queryParameters: _queryParams,
174
+ requestType: "json",
175
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
176
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
177
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
178
+ });
179
+ if (_response.ok) {
180
+ return serializers.folders.files.list.Response.parseOrThrow(_response.body, {
181
+ unrecognizedObjectKeys: "passthrough",
182
+ allowUnrecognizedUnionMembers: true,
183
+ allowUnrecognizedEnumValues: true,
184
+ skipValidation: true,
185
+ breadcrumbsPrefix: ["response"],
186
+ });
187
+ }
188
+ if (_response.error.reason === "status-code") {
189
+ switch (_response.error.statusCode) {
190
+ case 422:
191
+ throw new Letta.UnprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
192
+ unrecognizedObjectKeys: "passthrough",
193
+ allowUnrecognizedUnionMembers: true,
194
+ allowUnrecognizedEnumValues: true,
195
+ skipValidation: true,
196
+ breadcrumbsPrefix: ["response"],
197
+ }));
198
+ default:
199
+ throw new errors.LettaError({
200
+ statusCode: _response.error.statusCode,
201
+ body: _response.error.body,
202
+ });
203
+ }
204
+ }
205
+ switch (_response.error.reason) {
206
+ case "non-json":
207
+ throw new errors.LettaError({
208
+ statusCode: _response.error.statusCode,
209
+ body: _response.error.rawBody,
210
+ });
211
+ case "timeout":
212
+ throw new errors.LettaTimeoutError("Timeout exceeded when calling GET /v1/folders/{folder_id}/files.");
213
+ case "unknown":
214
+ throw new errors.LettaError({
215
+ message: _response.error.errorMessage,
216
+ });
217
+ }
218
+ });
219
+ }
220
+ /**
221
+ * Delete a file from a folder.
222
+ *
223
+ * @param {string} folderId
224
+ * @param {string} fileId
225
+ * @param {Files.RequestOptions} requestOptions - Request-specific configuration.
226
+ *
227
+ * @throws {@link Letta.UnprocessableEntityError}
228
+ *
229
+ * @example
230
+ * await client.folders.files.delete("folder_id", "file_id")
231
+ */
232
+ delete(folderId, fileId, requestOptions) {
233
+ return __awaiter(this, void 0, void 0, function* () {
234
+ var _a, _b, _c;
235
+ const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
236
+ url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, `v1/folders/${encodeURIComponent(folderId)}/${encodeURIComponent(fileId)}`),
237
+ method: "DELETE",
238
+ headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
239
+ ? yield core.Supplier.get(this._options.project)
240
+ : 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),
241
+ contentType: "application/json",
242
+ requestType: "json",
243
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
244
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
245
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
246
+ });
247
+ if (_response.ok) {
248
+ return;
249
+ }
250
+ if (_response.error.reason === "status-code") {
251
+ switch (_response.error.statusCode) {
252
+ case 422:
253
+ throw new Letta.UnprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
254
+ unrecognizedObjectKeys: "passthrough",
255
+ allowUnrecognizedUnionMembers: true,
256
+ allowUnrecognizedEnumValues: true,
257
+ skipValidation: true,
258
+ breadcrumbsPrefix: ["response"],
259
+ }));
260
+ default:
261
+ throw new errors.LettaError({
262
+ statusCode: _response.error.statusCode,
263
+ body: _response.error.body,
264
+ });
265
+ }
266
+ }
267
+ switch (_response.error.reason) {
268
+ case "non-json":
269
+ throw new errors.LettaError({
270
+ statusCode: _response.error.statusCode,
271
+ body: _response.error.rawBody,
272
+ });
273
+ case "timeout":
274
+ throw new errors.LettaTimeoutError("Timeout exceeded when calling DELETE /v1/folders/{folder_id}/{file_id}.");
275
+ case "unknown":
276
+ throw new errors.LettaError({
277
+ message: _response.error.errorMessage,
278
+ });
279
+ }
280
+ });
281
+ }
282
+ _getCustomAuthorizationHeaders() {
283
+ return __awaiter(this, void 0, void 0, function* () {
284
+ const tokenValue = yield core.Supplier.get(this._options.token);
285
+ return { Authorization: `Bearer ${tokenValue}` };
286
+ });
287
+ }
288
+ }
289
+ exports.Files = Files;
@@ -0,0 +1 @@
1
+ export * from "./requests";
@@ -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("./requests"), exports);
@@ -0,0 +1,14 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Letta from "../../../../../../index";
5
+ /**
6
+ * @example
7
+ * {}
8
+ */
9
+ export interface BodyUploadFileToFolder {
10
+ /**
11
+ * How to handle duplicate filenames
12
+ */
13
+ duplicateHandling?: Letta.DuplicateFileHandling;
14
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,21 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * @example
6
+ * {}
7
+ */
8
+ export interface FilesListRequest {
9
+ /**
10
+ * Number of files to return
11
+ */
12
+ limit?: number;
13
+ /**
14
+ * Pagination cursor to fetch the next set of results
15
+ */
16
+ after?: string;
17
+ /**
18
+ * Whether to include full file content
19
+ */
20
+ includeContent?: boolean;
21
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,2 @@
1
+ export { type BodyUploadFileToFolder } from "./BodyUploadFileToFolder";
2
+ export { type FilesListRequest } from "./FilesListRequest";
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1 @@
1
+ export * from "./client";
@@ -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);
@@ -0,0 +1,4 @@
1
+ export * as files from "./files";
2
+ export * as passages from "./passages";
3
+ export * from "./files/client/requests";
4
+ export * from "./passages/client/requests";
@@ -0,0 +1,43 @@
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 __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || (function () {
19
+ var ownKeys = function(o) {
20
+ ownKeys = Object.getOwnPropertyNames || function (o) {
21
+ var ar = [];
22
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
23
+ return ar;
24
+ };
25
+ return ownKeys(o);
26
+ };
27
+ return function (mod) {
28
+ if (mod && mod.__esModule) return mod;
29
+ var result = {};
30
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
31
+ __setModuleDefault(result, mod);
32
+ return result;
33
+ };
34
+ })();
35
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
36
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
37
+ };
38
+ Object.defineProperty(exports, "__esModule", { value: true });
39
+ exports.passages = exports.files = void 0;
40
+ exports.files = __importStar(require("./files"));
41
+ exports.passages = __importStar(require("./passages"));
42
+ __exportStar(require("./files/client/requests"), exports);
43
+ __exportStar(require("./passages/client/requests"), exports);