@letta-ai/letta-client 0.0.68646 → 0.0.68647

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 (342) hide show
  1. package/api/resources/agents/client/Client.d.ts +2 -2
  2. package/api/resources/agents/client/Client.js +23 -13
  3. package/api/resources/agents/client/requests/AgentsListRequest.d.ts +9 -0
  4. package/api/resources/agents/client/requests/{BodyImportAgentSerialized.d.ts → BodyImportAgent.d.ts} +1 -1
  5. package/api/resources/agents/client/requests/index.d.ts +1 -1
  6. package/api/resources/agents/resources/blocks/client/Client.js +5 -5
  7. package/api/resources/agents/resources/context/client/Client.js +1 -1
  8. package/api/resources/agents/resources/coreMemory/client/Client.js +1 -1
  9. package/api/resources/agents/resources/files/client/Client.js +4 -4
  10. package/api/resources/agents/resources/folders/client/Client.js +3 -3
  11. package/api/resources/agents/resources/groups/client/Client.js +1 -1
  12. package/api/resources/agents/resources/memoryVariables/client/Client.js +1 -1
  13. package/api/resources/agents/resources/messages/client/Client.js +9 -9
  14. package/api/resources/agents/resources/passages/client/Client.js +5 -5
  15. package/api/resources/agents/resources/sources/client/Client.js +3 -3
  16. package/api/resources/agents/resources/templates/client/Client.js +3 -3
  17. package/api/resources/agents/resources/tools/client/Client.js +4 -4
  18. package/api/resources/agents/types/AgentsListRequestOrder.d.ts +11 -0
  19. package/api/resources/agents/types/AgentsListRequestOrder.js +10 -0
  20. package/api/resources/agents/types/AgentsListRequestOrderBy.d.ts +11 -0
  21. package/api/resources/agents/types/AgentsListRequestOrderBy.js +10 -0
  22. package/api/resources/agents/types/index.d.ts +2 -0
  23. package/api/resources/agents/types/index.js +2 -0
  24. package/api/resources/batches/client/Client.js +4 -4
  25. package/api/resources/batches/resources/messages/client/Client.js +1 -1
  26. package/api/resources/blocks/client/Client.js +16 -8
  27. package/api/resources/blocks/client/requests/BlocksListRequest.d.ts +11 -2
  28. package/api/resources/blocks/index.d.ts +1 -0
  29. package/api/resources/blocks/index.js +1 -0
  30. package/api/resources/blocks/resources/agents/client/Client.js +1 -1
  31. package/api/resources/blocks/types/BlocksListRequestOrder.d.ts +11 -0
  32. package/api/resources/blocks/types/BlocksListRequestOrder.js +10 -0
  33. package/api/resources/blocks/types/index.d.ts +1 -0
  34. package/api/resources/blocks/types/index.js +17 -0
  35. package/api/resources/clientSideAccessTokens/client/Client.js +3 -3
  36. package/api/resources/folders/client/Client.d.ts +2 -1
  37. package/api/resources/folders/client/Client.js +34 -13
  38. package/api/resources/folders/client/requests/FoldersListRequest.d.ts +30 -0
  39. package/api/resources/folders/client/requests/index.d.ts +1 -0
  40. package/api/resources/folders/index.d.ts +1 -0
  41. package/api/resources/folders/index.js +1 -0
  42. package/api/resources/folders/resources/files/client/Client.js +3 -3
  43. package/api/resources/folders/resources/passages/client/Client.js +1 -1
  44. package/api/resources/folders/types/FoldersListRequestOrder.d.ts +11 -0
  45. package/api/resources/folders/types/FoldersListRequestOrder.js +10 -0
  46. package/api/resources/folders/types/index.d.ts +1 -0
  47. package/api/resources/folders/types/index.js +17 -0
  48. package/api/resources/groups/client/Client.js +15 -7
  49. package/api/resources/groups/client/requests/GroupsListRequest.d.ts +11 -3
  50. package/api/resources/groups/resources/messages/client/Client.js +5 -5
  51. package/api/resources/groups/types/GroupsListRequestOrder.d.ts +11 -0
  52. package/api/resources/groups/types/GroupsListRequestOrder.js +10 -0
  53. package/api/resources/groups/types/index.d.ts +1 -0
  54. package/api/resources/groups/types/index.js +1 -0
  55. package/api/resources/health/client/Client.js +1 -1
  56. package/api/resources/identities/client/Client.js +16 -8
  57. package/api/resources/identities/client/requests/IdentitiesListRequest.d.ts +17 -0
  58. package/api/resources/identities/index.d.ts +1 -0
  59. package/api/resources/identities/index.js +1 -0
  60. package/api/resources/identities/resources/properties/client/Client.js +1 -1
  61. package/api/resources/identities/types/IdentitiesListRequestOrder.d.ts +11 -0
  62. package/api/resources/identities/types/IdentitiesListRequestOrder.js +10 -0
  63. package/api/resources/identities/types/index.d.ts +1 -0
  64. package/api/resources/identities/types/index.js +17 -0
  65. package/api/resources/index.d.ts +8 -4
  66. package/api/resources/index.js +9 -5
  67. package/api/resources/jobs/client/Client.js +5 -5
  68. package/api/resources/models/client/Client.js +2 -2
  69. package/api/resources/models/resources/embeddings/client/Client.js +1 -1
  70. package/api/resources/projects/client/Client.js +1 -1
  71. package/api/resources/providers/client/Client.js +23 -12
  72. package/api/resources/providers/client/requests/ProvidersListRequest.d.ts +26 -2
  73. package/api/resources/providers/index.d.ts +1 -0
  74. package/api/resources/providers/index.js +1 -0
  75. package/api/resources/providers/types/ProvidersListRequestOrder.d.ts +11 -0
  76. package/api/resources/providers/types/ProvidersListRequestOrder.js +10 -0
  77. package/api/resources/providers/types/index.d.ts +1 -0
  78. package/api/resources/providers/types/index.js +17 -0
  79. package/api/resources/runs/client/Client.js +5 -5
  80. package/api/resources/runs/resources/messages/client/Client.js +1 -1
  81. package/api/resources/runs/resources/steps/client/Client.js +1 -1
  82. package/api/resources/runs/resources/usage/client/Client.js +1 -1
  83. package/api/resources/sources/client/Client.js +10 -10
  84. package/api/resources/sources/resources/files/client/Client.js +3 -3
  85. package/api/resources/sources/resources/passages/client/Client.js +1 -1
  86. package/api/resources/steps/client/Client.d.ts +0 -1
  87. package/api/resources/steps/client/Client.js +9 -5
  88. package/api/resources/steps/client/requests/StepsListRequest.d.ts +6 -2
  89. package/api/resources/steps/resources/feedback/client/Client.js +1 -1
  90. package/api/resources/steps/resources/feedback/client/requests/AddFeedbackRequest.d.ts +2 -0
  91. package/api/resources/steps/resources/metrics/client/Client.js +1 -1
  92. package/api/resources/steps/resources/trace/client/Client.js +1 -1
  93. package/api/resources/steps/types/StepsListRequestOrder.d.ts +11 -0
  94. package/api/resources/steps/types/StepsListRequestOrder.js +10 -0
  95. package/api/resources/steps/types/index.d.ts +1 -0
  96. package/api/resources/steps/types/index.js +1 -0
  97. package/api/resources/tags/client/Client.d.ts +1 -1
  98. package/api/resources/tags/client/Client.js +2 -2
  99. package/api/resources/telemetry/client/Client.js +1 -1
  100. package/api/resources/templates/client/Client.js +9 -9
  101. package/api/resources/templates/resources/agents/client/Client.js +1 -1
  102. package/api/resources/tools/client/Client.d.ts +1 -1
  103. package/api/resources/tools/client/Client.js +33 -22
  104. package/api/resources/tools/client/requests/ToolsListRequest.d.ts +22 -0
  105. package/api/resources/tools/types/ToolsListRequestOrder.d.ts +11 -0
  106. package/api/resources/tools/types/ToolsListRequestOrder.js +10 -0
  107. package/api/resources/tools/types/index.d.ts +1 -0
  108. package/api/resources/tools/types/index.js +1 -0
  109. package/api/resources/voice/client/Client.js +1 -1
  110. package/{dist/api/types/BodyExportAgentSerialized.d.ts → api/types/BodyExportAgent.d.ts} +1 -1
  111. package/api/types/DeploymentEntity.d.ts +2 -0
  112. package/api/types/index.d.ts +1 -1
  113. package/api/types/index.js +1 -1
  114. package/dist/api/resources/agents/client/Client.d.ts +2 -2
  115. package/dist/api/resources/agents/client/Client.js +23 -13
  116. package/dist/api/resources/agents/client/requests/AgentsListRequest.d.ts +9 -0
  117. package/dist/api/resources/agents/client/requests/{BodyImportAgentSerialized.d.ts → BodyImportAgent.d.ts} +1 -1
  118. package/dist/api/resources/agents/client/requests/index.d.ts +1 -1
  119. package/dist/api/resources/agents/resources/blocks/client/Client.js +5 -5
  120. package/dist/api/resources/agents/resources/context/client/Client.js +1 -1
  121. package/dist/api/resources/agents/resources/coreMemory/client/Client.js +1 -1
  122. package/dist/api/resources/agents/resources/files/client/Client.js +4 -4
  123. package/dist/api/resources/agents/resources/folders/client/Client.js +3 -3
  124. package/dist/api/resources/agents/resources/groups/client/Client.js +1 -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 +9 -9
  127. package/dist/api/resources/agents/resources/passages/client/Client.js +5 -5
  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 +4 -4
  131. package/dist/api/resources/agents/types/AgentsListRequestOrder.d.ts +11 -0
  132. package/dist/api/resources/agents/types/AgentsListRequestOrder.js +10 -0
  133. package/dist/api/resources/agents/types/AgentsListRequestOrderBy.d.ts +11 -0
  134. package/dist/api/resources/agents/types/AgentsListRequestOrderBy.js +10 -0
  135. package/dist/api/resources/agents/types/index.d.ts +2 -0
  136. package/dist/api/resources/agents/types/index.js +2 -0
  137. package/dist/api/resources/batches/client/Client.js +4 -4
  138. package/dist/api/resources/batches/resources/messages/client/Client.js +1 -1
  139. package/dist/api/resources/blocks/client/Client.js +16 -8
  140. package/dist/api/resources/blocks/client/requests/BlocksListRequest.d.ts +11 -2
  141. package/dist/api/resources/blocks/index.d.ts +1 -0
  142. package/dist/api/resources/blocks/index.js +1 -0
  143. package/dist/api/resources/blocks/resources/agents/client/Client.js +1 -1
  144. package/dist/api/resources/blocks/types/BlocksListRequestOrder.d.ts +11 -0
  145. package/dist/api/resources/blocks/types/BlocksListRequestOrder.js +10 -0
  146. package/dist/api/resources/blocks/types/index.d.ts +1 -0
  147. package/dist/api/resources/blocks/types/index.js +17 -0
  148. package/dist/api/resources/clientSideAccessTokens/client/Client.js +3 -3
  149. package/dist/api/resources/folders/client/Client.d.ts +2 -1
  150. package/dist/api/resources/folders/client/Client.js +34 -13
  151. package/dist/api/resources/folders/client/requests/FoldersListRequest.d.ts +30 -0
  152. package/dist/api/resources/folders/client/requests/FoldersListRequest.js +5 -0
  153. package/dist/api/resources/folders/client/requests/index.d.ts +1 -0
  154. package/dist/api/resources/folders/index.d.ts +1 -0
  155. package/dist/api/resources/folders/index.js +1 -0
  156. package/dist/api/resources/folders/resources/files/client/Client.js +3 -3
  157. package/dist/api/resources/folders/resources/passages/client/Client.js +1 -1
  158. package/dist/api/resources/folders/types/FoldersListRequestOrder.d.ts +11 -0
  159. package/dist/api/resources/folders/types/FoldersListRequestOrder.js +10 -0
  160. package/dist/api/resources/folders/types/index.d.ts +1 -0
  161. package/dist/api/resources/folders/types/index.js +17 -0
  162. package/dist/api/resources/groups/client/Client.js +15 -7
  163. package/dist/api/resources/groups/client/requests/GroupsListRequest.d.ts +11 -3
  164. package/dist/api/resources/groups/resources/messages/client/Client.js +5 -5
  165. package/dist/api/resources/groups/types/GroupsListRequestOrder.d.ts +11 -0
  166. package/dist/api/resources/groups/types/GroupsListRequestOrder.js +10 -0
  167. package/dist/api/resources/groups/types/index.d.ts +1 -0
  168. package/dist/api/resources/groups/types/index.js +1 -0
  169. package/dist/api/resources/health/client/Client.js +1 -1
  170. package/dist/api/resources/identities/client/Client.js +16 -8
  171. package/dist/api/resources/identities/client/requests/IdentitiesListRequest.d.ts +17 -0
  172. package/dist/api/resources/identities/index.d.ts +1 -0
  173. package/dist/api/resources/identities/index.js +1 -0
  174. package/dist/api/resources/identities/resources/properties/client/Client.js +1 -1
  175. package/dist/api/resources/identities/types/IdentitiesListRequestOrder.d.ts +11 -0
  176. package/dist/api/resources/identities/types/IdentitiesListRequestOrder.js +10 -0
  177. package/dist/api/resources/identities/types/index.d.ts +1 -0
  178. package/dist/api/resources/identities/types/index.js +17 -0
  179. package/dist/api/resources/index.d.ts +8 -4
  180. package/dist/api/resources/index.js +9 -5
  181. package/dist/api/resources/jobs/client/Client.js +5 -5
  182. package/dist/api/resources/models/client/Client.js +2 -2
  183. package/dist/api/resources/models/resources/embeddings/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 +23 -12
  186. package/dist/api/resources/providers/client/requests/ProvidersListRequest.d.ts +26 -2
  187. package/dist/api/resources/providers/index.d.ts +1 -0
  188. package/dist/api/resources/providers/index.js +1 -0
  189. package/dist/api/resources/providers/types/ProvidersListRequestOrder.d.ts +11 -0
  190. package/dist/api/resources/providers/types/ProvidersListRequestOrder.js +10 -0
  191. package/dist/api/resources/providers/types/index.d.ts +1 -0
  192. package/dist/api/resources/providers/types/index.js +17 -0
  193. package/dist/api/resources/runs/client/Client.js +5 -5
  194. package/dist/api/resources/runs/resources/messages/client/Client.js +1 -1
  195. package/dist/api/resources/runs/resources/steps/client/Client.js +1 -1
  196. package/dist/api/resources/runs/resources/usage/client/Client.js +1 -1
  197. package/dist/api/resources/sources/client/Client.js +10 -10
  198. package/dist/api/resources/sources/resources/files/client/Client.js +3 -3
  199. package/dist/api/resources/sources/resources/passages/client/Client.js +1 -1
  200. package/dist/api/resources/steps/client/Client.d.ts +0 -1
  201. package/dist/api/resources/steps/client/Client.js +9 -5
  202. package/dist/api/resources/steps/client/requests/StepsListRequest.d.ts +6 -2
  203. package/dist/api/resources/steps/resources/feedback/client/Client.js +1 -1
  204. package/dist/api/resources/steps/resources/feedback/client/requests/AddFeedbackRequest.d.ts +2 -0
  205. package/dist/api/resources/steps/resources/metrics/client/Client.js +1 -1
  206. package/dist/api/resources/steps/resources/trace/client/Client.js +1 -1
  207. package/dist/api/resources/steps/types/StepsListRequestOrder.d.ts +11 -0
  208. package/dist/api/resources/steps/types/StepsListRequestOrder.js +10 -0
  209. package/dist/api/resources/steps/types/index.d.ts +1 -0
  210. package/dist/api/resources/steps/types/index.js +1 -0
  211. package/dist/api/resources/tags/client/Client.d.ts +1 -1
  212. package/dist/api/resources/tags/client/Client.js +2 -2
  213. package/dist/api/resources/telemetry/client/Client.js +1 -1
  214. package/dist/api/resources/templates/client/Client.js +9 -9
  215. package/dist/api/resources/templates/resources/agents/client/Client.js +1 -1
  216. package/dist/api/resources/tools/client/Client.d.ts +1 -1
  217. package/dist/api/resources/tools/client/Client.js +33 -22
  218. package/dist/api/resources/tools/client/requests/ToolsListRequest.d.ts +22 -0
  219. package/dist/api/resources/tools/types/ToolsListRequestOrder.d.ts +11 -0
  220. package/dist/api/resources/tools/types/ToolsListRequestOrder.js +10 -0
  221. package/dist/api/resources/tools/types/index.d.ts +1 -0
  222. package/dist/api/resources/tools/types/index.js +1 -0
  223. package/dist/api/resources/voice/client/Client.js +1 -1
  224. package/{api/types/BodyExportAgentSerialized.d.ts → dist/api/types/BodyExportAgent.d.ts} +1 -1
  225. package/dist/api/types/BodyExportAgent.js +5 -0
  226. package/dist/api/types/DeploymentEntity.d.ts +2 -0
  227. package/dist/api/types/index.d.ts +1 -1
  228. package/dist/api/types/index.js +1 -1
  229. package/dist/serialization/resources/agents/types/AgentsListRequestOrder.d.ts +10 -0
  230. package/dist/serialization/resources/agents/types/AgentsListRequestOrder.js +41 -0
  231. package/dist/serialization/resources/agents/types/AgentsListRequestOrderBy.d.ts +10 -0
  232. package/dist/serialization/resources/agents/types/AgentsListRequestOrderBy.js +41 -0
  233. package/dist/serialization/resources/agents/types/index.d.ts +2 -0
  234. package/dist/serialization/resources/agents/types/index.js +2 -0
  235. package/dist/serialization/resources/blocks/index.d.ts +1 -0
  236. package/dist/serialization/resources/blocks/index.js +1 -0
  237. package/dist/serialization/resources/blocks/types/BlocksListRequestOrder.d.ts +10 -0
  238. package/dist/serialization/resources/blocks/types/BlocksListRequestOrder.js +41 -0
  239. package/dist/serialization/resources/blocks/types/index.d.ts +1 -0
  240. package/dist/serialization/resources/blocks/types/index.js +17 -0
  241. package/dist/serialization/resources/folders/index.d.ts +1 -0
  242. package/dist/serialization/resources/folders/index.js +1 -0
  243. package/dist/serialization/resources/folders/types/FoldersListRequestOrder.d.ts +10 -0
  244. package/dist/serialization/resources/folders/types/FoldersListRequestOrder.js +41 -0
  245. package/dist/serialization/resources/folders/types/index.d.ts +1 -0
  246. package/dist/serialization/resources/folders/types/index.js +17 -0
  247. package/dist/serialization/resources/groups/types/GroupsListRequestOrder.d.ts +10 -0
  248. package/dist/serialization/resources/groups/types/GroupsListRequestOrder.js +41 -0
  249. package/dist/serialization/resources/groups/types/index.d.ts +1 -0
  250. package/dist/serialization/resources/groups/types/index.js +1 -0
  251. package/dist/serialization/resources/identities/index.d.ts +1 -0
  252. package/dist/serialization/resources/identities/index.js +1 -0
  253. package/dist/serialization/resources/identities/types/IdentitiesListRequestOrder.d.ts +10 -0
  254. package/dist/serialization/resources/identities/types/IdentitiesListRequestOrder.js +41 -0
  255. package/dist/serialization/resources/identities/types/index.d.ts +1 -0
  256. package/dist/serialization/resources/identities/types/index.js +17 -0
  257. package/dist/serialization/resources/index.d.ts +8 -4
  258. package/dist/serialization/resources/index.js +9 -5
  259. package/dist/serialization/resources/providers/index.d.ts +1 -0
  260. package/dist/serialization/resources/providers/index.js +1 -0
  261. package/dist/serialization/resources/providers/types/ProvidersListRequestOrder.d.ts +10 -0
  262. package/dist/serialization/resources/providers/types/ProvidersListRequestOrder.js +41 -0
  263. package/dist/serialization/resources/providers/types/index.d.ts +1 -0
  264. package/dist/serialization/resources/providers/types/index.js +17 -0
  265. package/dist/serialization/resources/steps/resources/feedback/client/requests/AddFeedbackRequest.d.ts +1 -0
  266. package/dist/serialization/resources/steps/resources/feedback/client/requests/AddFeedbackRequest.js +1 -0
  267. package/dist/serialization/resources/steps/types/StepsListRequestOrder.d.ts +10 -0
  268. package/dist/serialization/resources/steps/types/StepsListRequestOrder.js +41 -0
  269. package/dist/serialization/resources/steps/types/index.d.ts +1 -0
  270. package/dist/serialization/resources/steps/types/index.js +1 -0
  271. package/dist/serialization/resources/tools/types/ToolsListRequestOrder.d.ts +10 -0
  272. package/dist/serialization/resources/tools/types/ToolsListRequestOrder.js +41 -0
  273. package/dist/serialization/resources/tools/types/index.d.ts +1 -0
  274. package/dist/serialization/resources/tools/types/index.js +1 -0
  275. package/dist/serialization/types/{BodyExportAgentSerialized.d.ts → BodyExportAgent.d.ts} +2 -2
  276. package/dist/serialization/types/{BodyExportAgentSerialized.js → BodyExportAgent.js} +2 -2
  277. package/dist/serialization/types/DeploymentEntity.d.ts +2 -0
  278. package/dist/serialization/types/DeploymentEntity.js +2 -0
  279. package/dist/serialization/types/index.d.ts +1 -1
  280. package/dist/serialization/types/index.js +1 -1
  281. package/dist/version.d.ts +1 -1
  282. package/dist/version.js +1 -1
  283. package/package.json +1 -1
  284. package/reference.md +12 -5
  285. package/serialization/resources/agents/types/AgentsListRequestOrder.d.ts +10 -0
  286. package/serialization/resources/agents/types/AgentsListRequestOrder.js +41 -0
  287. package/serialization/resources/agents/types/AgentsListRequestOrderBy.d.ts +10 -0
  288. package/serialization/resources/agents/types/AgentsListRequestOrderBy.js +41 -0
  289. package/serialization/resources/agents/types/index.d.ts +2 -0
  290. package/serialization/resources/agents/types/index.js +2 -0
  291. package/serialization/resources/blocks/index.d.ts +1 -0
  292. package/serialization/resources/blocks/index.js +1 -0
  293. package/serialization/resources/blocks/types/BlocksListRequestOrder.d.ts +10 -0
  294. package/serialization/resources/blocks/types/BlocksListRequestOrder.js +41 -0
  295. package/serialization/resources/blocks/types/index.d.ts +1 -0
  296. package/serialization/resources/blocks/types/index.js +17 -0
  297. package/serialization/resources/folders/index.d.ts +1 -0
  298. package/serialization/resources/folders/index.js +1 -0
  299. package/serialization/resources/folders/types/FoldersListRequestOrder.d.ts +10 -0
  300. package/serialization/resources/folders/types/FoldersListRequestOrder.js +41 -0
  301. package/serialization/resources/folders/types/index.d.ts +1 -0
  302. package/serialization/resources/folders/types/index.js +17 -0
  303. package/serialization/resources/groups/types/GroupsListRequestOrder.d.ts +10 -0
  304. package/serialization/resources/groups/types/GroupsListRequestOrder.js +41 -0
  305. package/serialization/resources/groups/types/index.d.ts +1 -0
  306. package/serialization/resources/groups/types/index.js +1 -0
  307. package/serialization/resources/identities/index.d.ts +1 -0
  308. package/serialization/resources/identities/index.js +1 -0
  309. package/serialization/resources/identities/types/IdentitiesListRequestOrder.d.ts +10 -0
  310. package/serialization/resources/identities/types/IdentitiesListRequestOrder.js +41 -0
  311. package/serialization/resources/identities/types/index.d.ts +1 -0
  312. package/serialization/resources/identities/types/index.js +17 -0
  313. package/serialization/resources/index.d.ts +8 -4
  314. package/serialization/resources/index.js +9 -5
  315. package/serialization/resources/providers/index.d.ts +1 -0
  316. package/serialization/resources/providers/index.js +1 -0
  317. package/serialization/resources/providers/types/ProvidersListRequestOrder.d.ts +10 -0
  318. package/serialization/resources/providers/types/ProvidersListRequestOrder.js +41 -0
  319. package/serialization/resources/providers/types/index.d.ts +1 -0
  320. package/serialization/resources/providers/types/index.js +17 -0
  321. package/serialization/resources/steps/resources/feedback/client/requests/AddFeedbackRequest.d.ts +1 -0
  322. package/serialization/resources/steps/resources/feedback/client/requests/AddFeedbackRequest.js +1 -0
  323. package/serialization/resources/steps/types/StepsListRequestOrder.d.ts +10 -0
  324. package/serialization/resources/steps/types/StepsListRequestOrder.js +41 -0
  325. package/serialization/resources/steps/types/index.d.ts +1 -0
  326. package/serialization/resources/steps/types/index.js +1 -0
  327. package/serialization/resources/tools/types/ToolsListRequestOrder.d.ts +10 -0
  328. package/serialization/resources/tools/types/ToolsListRequestOrder.js +41 -0
  329. package/serialization/resources/tools/types/index.d.ts +1 -0
  330. package/serialization/resources/tools/types/index.js +1 -0
  331. package/serialization/types/{BodyExportAgentSerialized.d.ts → BodyExportAgent.d.ts} +2 -2
  332. package/serialization/types/{BodyExportAgentSerialized.js → BodyExportAgent.js} +2 -2
  333. package/serialization/types/DeploymentEntity.d.ts +2 -0
  334. package/serialization/types/DeploymentEntity.js +2 -0
  335. package/serialization/types/index.d.ts +1 -1
  336. package/serialization/types/index.js +1 -1
  337. package/version.d.ts +1 -1
  338. package/version.js +1 -1
  339. /package/api/resources/agents/client/requests/{BodyImportAgentSerialized.js → BodyImportAgent.js} +0 -0
  340. /package/api/{types/BodyExportAgentSerialized.js → resources/folders/client/requests/FoldersListRequest.js} +0 -0
  341. /package/{dist/api/resources/agents/client/requests/BodyImportAgentSerialized.js → api/types/BodyExportAgent.js} +0 -0
  342. /package/dist/api/{types/BodyExportAgentSerialized.js → resources/agents/client/requests/BodyImportAgent.js} +0 -0
@@ -84,7 +84,7 @@ class Templates {
84
84
  method: "POST",
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.0.68646", "User-Agent": "@letta-ai/letta-client/0.0.68646", "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.0.68647", "User-Agent": "@letta-ai/letta-client/0.0.68647", "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
  requestType: "json",
90
90
  body: serializers.agents.TemplatesMigrateRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -150,7 +150,7 @@ class Templates {
150
150
  method: "POST",
151
151
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
152
152
  ? yield core.Supplier.get(this._options.project)
153
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68646", "User-Agent": "@letta-ai/letta-client/0.0.68646", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
153
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68647", "User-Agent": "@letta-ai/letta-client/0.0.68647", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
154
154
  contentType: "application/json",
155
155
  requestType: "json",
156
156
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -206,7 +206,7 @@ class Templates {
206
206
  method: "POST",
207
207
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
208
208
  ? yield core.Supplier.get(this._options.project)
209
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68646", "User-Agent": "@letta-ai/letta-client/0.0.68646", "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),
209
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68647", "User-Agent": "@letta-ai/letta-client/0.0.68647", "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),
210
210
  contentType: "application/json",
211
211
  requestType: "json",
212
212
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -81,7 +81,7 @@ class Tools {
81
81
  method: "GET",
82
82
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
83
83
  ? yield core.Supplier.get(this._options.project)
84
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68646", "User-Agent": "@letta-ai/letta-client/0.0.68646", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
84
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68647", "User-Agent": "@letta-ai/letta-client/0.0.68647", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
85
85
  contentType: "application/json",
86
86
  requestType: "json",
87
87
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -158,7 +158,7 @@ class Tools {
158
158
  method: "PATCH",
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.0.68646", "User-Agent": "@letta-ai/letta-client/0.0.68646", "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.0.68647", "User-Agent": "@letta-ai/letta-client/0.0.68647", "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
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -235,7 +235,7 @@ class Tools {
235
235
  method: "PATCH",
236
236
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
237
237
  ? yield core.Supplier.get(this._options.project)
238
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68646", "User-Agent": "@letta-ai/letta-client/0.0.68646", "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),
238
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68647", "User-Agent": "@letta-ai/letta-client/0.0.68647", "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
239
  contentType: "application/json",
240
240
  requestType: "json",
241
241
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -318,7 +318,7 @@ class Tools {
318
318
  method: "PATCH",
319
319
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
320
320
  ? yield core.Supplier.get(this._options.project)
321
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68646", "User-Agent": "@letta-ai/letta-client/0.0.68646", "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
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68647", "User-Agent": "@letta-ai/letta-client/0.0.68647", "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),
322
322
  contentType: "application/json",
323
323
  queryParameters: _queryParams,
324
324
  requestType: "json",
@@ -0,0 +1,11 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * Sort order for agents by creation time. 'asc' for oldest first, 'desc' for newest first
6
+ */
7
+ export type AgentsListRequestOrder = "asc" | "desc";
8
+ export declare const AgentsListRequestOrder: {
9
+ readonly Asc: "asc";
10
+ readonly Desc: "desc";
11
+ };
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.AgentsListRequestOrder = void 0;
7
+ exports.AgentsListRequestOrder = {
8
+ Asc: "asc",
9
+ Desc: "desc",
10
+ };
@@ -0,0 +1,11 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * Field to sort by
6
+ */
7
+ export type AgentsListRequestOrderBy = "created_at" | "last_run_completion";
8
+ export declare const AgentsListRequestOrderBy: {
9
+ readonly CreatedAt: "created_at";
10
+ readonly LastRunCompletion: "last_run_completion";
11
+ };
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.AgentsListRequestOrderBy = void 0;
7
+ exports.AgentsListRequestOrderBy = {
8
+ CreatedAt: "created_at",
9
+ LastRunCompletion: "last_run_completion",
10
+ };
@@ -1,3 +1,5 @@
1
+ export * from "./AgentsListRequestOrder";
2
+ export * from "./AgentsListRequestOrderBy";
1
3
  export * from "./CreateAgentRequestToolRulesItem";
2
4
  export * from "./CreateAgentRequestResponseFormat";
3
5
  export * from "./UpdateAgentToolRulesItem";
@@ -14,6 +14,8 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./AgentsListRequestOrder"), exports);
18
+ __exportStar(require("./AgentsListRequestOrderBy"), exports);
17
19
  __exportStar(require("./CreateAgentRequestToolRulesItem"), exports);
18
20
  __exportStar(require("./CreateAgentRequestResponseFormat"), exports);
19
21
  __exportStar(require("./UpdateAgentToolRulesItem"), exports);
@@ -105,7 +105,7 @@ class Batches {
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.0.68646", "User-Agent": "@letta-ai/letta-client/0.0.68646", "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.0.68647", "User-Agent": "@letta-ai/letta-client/0.0.68647", "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",
@@ -196,7 +196,7 @@ class Batches {
196
196
  method: "POST",
197
197
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
198
198
  ? yield core.Supplier.get(this._options.project)
199
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68646", "User-Agent": "@letta-ai/letta-client/0.0.68646", "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),
199
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68647", "User-Agent": "@letta-ai/letta-client/0.0.68647", "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),
200
200
  contentType: "application/json",
201
201
  requestType: "json",
202
202
  body: serializers.CreateBatch.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -273,7 +273,7 @@ class Batches {
273
273
  method: "GET",
274
274
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
275
275
  ? yield core.Supplier.get(this._options.project)
276
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68646", "User-Agent": "@letta-ai/letta-client/0.0.68646", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
276
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68647", "User-Agent": "@letta-ai/letta-client/0.0.68647", "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),
277
277
  contentType: "application/json",
278
278
  requestType: "json",
279
279
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -349,7 +349,7 @@ class Batches {
349
349
  method: "PATCH",
350
350
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
351
351
  ? yield core.Supplier.get(this._options.project)
352
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68646", "User-Agent": "@letta-ai/letta-client/0.0.68646", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
352
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68647", "User-Agent": "@letta-ai/letta-client/0.0.68647", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
353
353
  contentType: "application/json",
354
354
  requestType: "json",
355
355
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -104,7 +104,7 @@ class Messages {
104
104
  method: "GET",
105
105
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
106
106
  ? yield core.Supplier.get(this._options.project)
107
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68646", "User-Agent": "@letta-ai/letta-client/0.0.68646", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
107
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68647", "User-Agent": "@letta-ai/letta-client/0.0.68647", "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
108
  contentType: "application/json",
109
109
  queryParameters: _queryParams,
110
110
  requestType: "json",
@@ -52,8 +52,8 @@ exports.Blocks = void 0;
52
52
  const environments = __importStar(require("../../../../environments"));
53
53
  const core = __importStar(require("../../../../core"));
54
54
  const Letta = __importStar(require("../../../index"));
55
- const url_join_1 = __importDefault(require("url-join"));
56
55
  const serializers = __importStar(require("../../../../serialization/index"));
56
+ const url_join_1 = __importDefault(require("url-join"));
57
57
  const errors = __importStar(require("../../../../errors/index"));
58
58
  const Client_1 = require("../resources/agents/client/Client");
59
59
  class Blocks {
@@ -79,7 +79,7 @@ class Blocks {
79
79
  __list() {
80
80
  return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
81
81
  var _a, _b, _c;
82
- const { label, templatesOnly, name, identityId, identifierKeys, projectId, limit, before, after, labelSearch, descriptionSearch, valueSearch, connectedToAgentsCountGt, connectedToAgentsCountLt, connectedToAgentsCountEq, } = request;
82
+ const { label, templatesOnly, name, identityId, identifierKeys, projectId, limit, before, after, order, orderBy, labelSearch, descriptionSearch, valueSearch, connectedToAgentsCountGt, connectedToAgentsCountLt, connectedToAgentsCountEq, } = request;
83
83
  const _queryParams = {};
84
84
  if (label != null) {
85
85
  _queryParams["label"] = label;
@@ -113,6 +113,14 @@ class Blocks {
113
113
  if (after != null) {
114
114
  _queryParams["after"] = after;
115
115
  }
116
+ if (order != null) {
117
+ _queryParams["order"] = serializers.BlocksListRequestOrder.jsonOrThrow(order, {
118
+ unrecognizedObjectKeys: "strip",
119
+ });
120
+ }
121
+ if (orderBy != null) {
122
+ _queryParams["order_by"] = orderBy;
123
+ }
116
124
  if (labelSearch != null) {
117
125
  _queryParams["label_search"] = labelSearch;
118
126
  }
@@ -141,7 +149,7 @@ class Blocks {
141
149
  method: "GET",
142
150
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
143
151
  ? yield core.Supplier.get(this._options.project)
144
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68646", "User-Agent": "@letta-ai/letta-client/0.0.68646", "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),
152
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68647", "User-Agent": "@letta-ai/letta-client/0.0.68647", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
145
153
  contentType: "application/json",
146
154
  queryParameters: _queryParams,
147
155
  requestType: "json",
@@ -219,7 +227,7 @@ class Blocks {
219
227
  method: "POST",
220
228
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
221
229
  ? yield core.Supplier.get(this._options.project)
222
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68646", "User-Agent": "@letta-ai/letta-client/0.0.68646", "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),
230
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68647", "User-Agent": "@letta-ai/letta-client/0.0.68647", "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),
223
231
  contentType: "application/json",
224
232
  requestType: "json",
225
233
  body: serializers.CreateBlock.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -295,7 +303,7 @@ class Blocks {
295
303
  method: "GET",
296
304
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
297
305
  ? yield core.Supplier.get(this._options.project)
298
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68646", "User-Agent": "@letta-ai/letta-client/0.0.68646", "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),
306
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68647", "User-Agent": "@letta-ai/letta-client/0.0.68647", "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),
299
307
  contentType: "application/json",
300
308
  requestType: "json",
301
309
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -369,7 +377,7 @@ class Blocks {
369
377
  method: "GET",
370
378
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
371
379
  ? yield core.Supplier.get(this._options.project)
372
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68646", "User-Agent": "@letta-ai/letta-client/0.0.68646", "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),
380
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68647", "User-Agent": "@letta-ai/letta-client/0.0.68647", "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),
373
381
  contentType: "application/json",
374
382
  requestType: "json",
375
383
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -443,7 +451,7 @@ class Blocks {
443
451
  method: "DELETE",
444
452
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
445
453
  ? yield core.Supplier.get(this._options.project)
446
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68646", "User-Agent": "@letta-ai/letta-client/0.0.68646", "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),
454
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68647", "User-Agent": "@letta-ai/letta-client/0.0.68647", "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),
447
455
  contentType: "application/json",
448
456
  requestType: "json",
449
457
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -509,7 +517,7 @@ class Blocks {
509
517
  method: "PATCH",
510
518
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
511
519
  ? yield core.Supplier.get(this._options.project)
512
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68646", "User-Agent": "@letta-ai/letta-client/0.0.68646", "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),
520
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68647", "User-Agent": "@letta-ai/letta-client/0.0.68647", "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),
513
521
  contentType: "application/json",
514
522
  requestType: "json",
515
523
  body: serializers.BlockUpdate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -1,6 +1,7 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
+ import * as Letta from "../../../../index";
4
5
  /**
5
6
  * @example
6
7
  * {}
@@ -35,13 +36,21 @@ export interface BlocksListRequest {
35
36
  */
36
37
  limit?: number;
37
38
  /**
38
- * Cursor for pagination. If provided, returns blocks before this cursor.
39
+ * Block ID cursor for pagination. Returns blocks that come before this block ID in the specified sort order
39
40
  */
40
41
  before?: string;
41
42
  /**
42
- * Cursor for pagination. If provided, returns blocks after this cursor.
43
+ * Block ID cursor for pagination. Returns blocks that come after this block ID in the specified sort order
43
44
  */
44
45
  after?: string;
46
+ /**
47
+ * Sort order for blocks by creation time. 'asc' for oldest first, 'desc' for newest first
48
+ */
49
+ order?: Letta.BlocksListRequestOrder;
50
+ /**
51
+ * Field to sort by
52
+ */
53
+ orderBy?: "created_at";
45
54
  /**
46
55
  * Search blocks by label. If provided, returns blocks that match this label. This is a full-text search on labels.
47
56
  */
@@ -1,2 +1,3 @@
1
+ export * from "./types";
1
2
  export * from "./client";
2
3
  export * from "./resources";
@@ -14,5 +14,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./types"), exports);
17
18
  __exportStar(require("./client"), exports);
18
19
  __exportStar(require("./resources"), exports);
@@ -93,7 +93,7 @@ class Agents {
93
93
  method: "GET",
94
94
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
95
95
  ? yield core.Supplier.get(this._options.project)
96
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68646", "User-Agent": "@letta-ai/letta-client/0.0.68646", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
96
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68647", "User-Agent": "@letta-ai/letta-client/0.0.68647", "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),
97
97
  contentType: "application/json",
98
98
  queryParameters: _queryParams,
99
99
  requestType: "json",
@@ -0,0 +1,11 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * Sort order for blocks by creation time. 'asc' for oldest first, 'desc' for newest first
6
+ */
7
+ export type BlocksListRequestOrder = "asc" | "desc";
8
+ export declare const BlocksListRequestOrder: {
9
+ readonly Asc: "asc";
10
+ readonly Desc: "desc";
11
+ };
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.BlocksListRequestOrder = void 0;
7
+ exports.BlocksListRequestOrder = {
8
+ Asc: "asc",
9
+ Desc: "desc",
10
+ };
@@ -0,0 +1 @@
1
+ export * from "./BlocksListRequestOrder";
@@ -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("./BlocksListRequestOrder"), exports);
@@ -92,7 +92,7 @@ class ClientSideAccessTokens {
92
92
  method: "GET",
93
93
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
94
94
  ? yield core.Supplier.get(this._options.project)
95
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68646", "User-Agent": "@letta-ai/letta-client/0.0.68646", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
95
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68647", "User-Agent": "@letta-ai/letta-client/0.0.68647", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
96
96
  contentType: "application/json",
97
97
  queryParameters: _queryParams,
98
98
  requestType: "json",
@@ -170,7 +170,7 @@ class ClientSideAccessTokens {
170
170
  method: "POST",
171
171
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
172
172
  ? yield core.Supplier.get(this._options.project)
173
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68646", "User-Agent": "@letta-ai/letta-client/0.0.68646", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
173
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68647", "User-Agent": "@letta-ai/letta-client/0.0.68647", "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),
174
174
  contentType: "application/json",
175
175
  requestType: "json",
176
176
  body: serializers.ClientSideAccessTokensCreateRequest.jsonOrThrow(request, {
@@ -246,7 +246,7 @@ class ClientSideAccessTokens {
246
246
  method: "DELETE",
247
247
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
248
248
  ? yield core.Supplier.get(this._options.project)
249
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68646", "User-Agent": "@letta-ai/letta-client/0.0.68646", "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),
249
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68647", "User-Agent": "@letta-ai/letta-client/0.0.68647", "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),
250
250
  contentType: "application/json",
251
251
  requestType: "json",
252
252
  body: request,
@@ -123,6 +123,7 @@ export declare class Folders {
123
123
  /**
124
124
  * List all data folders created by a user.
125
125
  *
126
+ * @param {Letta.FoldersListRequest} request
126
127
  * @param {Folders.RequestOptions} requestOptions - Request-specific configuration.
127
128
  *
128
129
  * @throws {@link Letta.UnprocessableEntityError}
@@ -130,7 +131,7 @@ export declare class Folders {
130
131
  * @example
131
132
  * await client.folders.list()
132
133
  */
133
- list(requestOptions?: Folders.RequestOptions): core.HttpResponsePromise<Letta.Folder[]>;
134
+ list(request?: Letta.FoldersListRequest, requestOptions?: Folders.RequestOptions): core.HttpResponsePromise<Letta.Folder[]>;
134
135
  private __list;
135
136
  /**
136
137
  * Create a new data folder.
@@ -90,7 +90,7 @@ class Folders {
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.0.68646", "User-Agent": "@letta-ai/letta-client/0.0.68646", "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.0.68647", "User-Agent": "@letta-ai/letta-client/0.0.68647", "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
  requestType: "json",
96
96
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -166,7 +166,7 @@ class Folders {
166
166
  method: "GET",
167
167
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
168
168
  ? yield core.Supplier.get(this._options.project)
169
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68646", "User-Agent": "@letta-ai/letta-client/0.0.68646", "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),
169
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68647", "User-Agent": "@letta-ai/letta-client/0.0.68647", "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
170
  contentType: "application/json",
171
171
  requestType: "json",
172
172
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -242,7 +242,7 @@ class Folders {
242
242
  method: "DELETE",
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.0.68646", "User-Agent": "@letta-ai/letta-client/0.0.68646", "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.0.68647", "User-Agent": "@letta-ai/letta-client/0.0.68647", "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,
@@ -310,7 +310,7 @@ class Folders {
310
310
  method: "PATCH",
311
311
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
312
312
  ? yield core.Supplier.get(this._options.project)
313
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68646", "User-Agent": "@letta-ai/letta-client/0.0.68646", "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),
313
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68647", "User-Agent": "@letta-ai/letta-client/0.0.68647", "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),
314
314
  contentType: "application/json",
315
315
  requestType: "json",
316
316
  body: serializers.SourceUpdate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -387,7 +387,7 @@ class Folders {
387
387
  method: "GET",
388
388
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
389
389
  ? yield core.Supplier.get(this._options.project)
390
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68646", "User-Agent": "@letta-ai/letta-client/0.0.68646", "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),
390
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68647", "User-Agent": "@letta-ai/letta-client/0.0.68647", "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),
391
391
  contentType: "application/json",
392
392
  requestType: "json",
393
393
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -474,7 +474,7 @@ class Folders {
474
474
  method: "GET",
475
475
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
476
476
  ? yield core.Supplier.get(this._options.project)
477
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68646", "User-Agent": "@letta-ai/letta-client/0.0.68646", "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),
477
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68647", "User-Agent": "@letta-ai/letta-client/0.0.68647", "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),
478
478
  contentType: "application/json",
479
479
  queryParameters: _queryParams,
480
480
  requestType: "json",
@@ -532,6 +532,7 @@ class Folders {
532
532
  /**
533
533
  * List all data folders created by a user.
534
534
  *
535
+ * @param {Letta.FoldersListRequest} request
535
536
  * @param {Folders.RequestOptions} requestOptions - Request-specific configuration.
536
537
  *
537
538
  * @throws {@link Letta.UnprocessableEntityError}
@@ -539,19 +540,39 @@ class Folders {
539
540
  * @example
540
541
  * await client.folders.list()
541
542
  */
542
- list(requestOptions) {
543
- return core.HttpResponsePromise.fromPromise(this.__list(requestOptions));
543
+ list(request = {}, requestOptions) {
544
+ return core.HttpResponsePromise.fromPromise(this.__list(request, requestOptions));
544
545
  }
545
- __list(requestOptions) {
546
- return __awaiter(this, void 0, void 0, function* () {
546
+ __list() {
547
+ return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
547
548
  var _a, _b, _c;
549
+ const { before, after, limit, order, orderBy } = request;
550
+ const _queryParams = {};
551
+ if (before != null) {
552
+ _queryParams["before"] = before;
553
+ }
554
+ if (after != null) {
555
+ _queryParams["after"] = after;
556
+ }
557
+ if (limit != null) {
558
+ _queryParams["limit"] = limit.toString();
559
+ }
560
+ if (order != null) {
561
+ _queryParams["order"] = serializers.FoldersListRequestOrder.jsonOrThrow(order, {
562
+ unrecognizedObjectKeys: "strip",
563
+ });
564
+ }
565
+ if (orderBy != null) {
566
+ _queryParams["order_by"] = orderBy;
567
+ }
548
568
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
549
569
  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/"),
550
570
  method: "GET",
551
571
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
552
572
  ? yield core.Supplier.get(this._options.project)
553
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68646", "User-Agent": "@letta-ai/letta-client/0.0.68646", "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),
573
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68647", "User-Agent": "@letta-ai/letta-client/0.0.68647", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
554
574
  contentType: "application/json",
575
+ queryParameters: _queryParams,
555
576
  requestType: "json",
556
577
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
557
578
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
@@ -628,7 +649,7 @@ class Folders {
628
649
  method: "POST",
629
650
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
630
651
  ? yield core.Supplier.get(this._options.project)
631
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68646", "User-Agent": "@letta-ai/letta-client/0.0.68646", "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),
652
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68647", "User-Agent": "@letta-ai/letta-client/0.0.68647", "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),
632
653
  contentType: "application/json",
633
654
  requestType: "json",
634
655
  body: serializers.SourceCreate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -705,7 +726,7 @@ class Folders {
705
726
  method: "GET",
706
727
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
707
728
  ? yield core.Supplier.get(this._options.project)
708
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68646", "User-Agent": "@letta-ai/letta-client/0.0.68646", "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),
729
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68647", "User-Agent": "@letta-ai/letta-client/0.0.68647", "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),
709
730
  contentType: "application/json",
710
731
  requestType: "json",
711
732
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -0,0 +1,30 @@
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 FoldersListRequest {
10
+ /**
11
+ * Folder ID cursor for pagination. Returns folders that come before this folder ID in the specified sort order
12
+ */
13
+ before?: string;
14
+ /**
15
+ * Folder ID cursor for pagination. Returns folders that come after this folder ID in the specified sort order
16
+ */
17
+ after?: string;
18
+ /**
19
+ * Maximum number of folders to return
20
+ */
21
+ limit?: number;
22
+ /**
23
+ * Sort order for folders by creation time. 'asc' for oldest first, 'desc' for newest first
24
+ */
25
+ order?: Letta.FoldersListRequestOrder;
26
+ /**
27
+ * Field to sort by
28
+ */
29
+ orderBy?: "created_at";
30
+ }