@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
@@ -82,7 +82,7 @@ class Feedback {
82
82
  method: "PATCH",
83
83
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
84
84
  ? yield core.Supplier.get(this._options.project)
85
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.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),
85
+ : 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),
86
86
  contentType: "application/json",
87
87
  requestType: "json",
88
88
  body: serializers.steps.AddFeedbackRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -9,4 +9,6 @@ import * as Letta from "../../../../../../index";
9
9
  export interface AddFeedbackRequest {
10
10
  /** Whether this feedback is positive or negative */
11
11
  feedback?: Letta.FeedbackType;
12
+ /** Feedback tags to add to the step */
13
+ tags?: string[];
12
14
  }
@@ -81,7 +81,7 @@ class Metrics {
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,
@@ -79,7 +79,7 @@ class Trace {
79
79
  method: "GET",
80
80
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
81
81
  ? yield core.Supplier.get(this._options.project)
82
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.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),
82
+ : 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),
83
83
  contentType: "application/json",
84
84
  requestType: "json",
85
85
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -0,0 +1,11 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * Sort order for steps by creation time. 'asc' for oldest first, 'desc' for newest first
6
+ */
7
+ export type StepsListRequestOrder = "asc" | "desc";
8
+ export declare const StepsListRequestOrder: {
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.StepsListRequestOrder = void 0;
7
+ exports.StepsListRequestOrder = {
8
+ Asc: "asc",
9
+ Desc: "desc",
10
+ };
@@ -1 +1,2 @@
1
+ export * from "./StepsListRequestOrder";
1
2
  export * from "./StepsListRequestFeedback";
@@ -14,4 +14,5 @@ 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("./StepsListRequestOrder"), exports);
17
18
  __exportStar(require("./StepsListRequestFeedback"), exports);
@@ -31,7 +31,7 @@ export declare class Tags {
31
31
  protected readonly _options: Tags.Options;
32
32
  constructor(_options?: Tags.Options);
33
33
  /**
34
- * Get a list of all agent tags in the database.
34
+ * Get the list of all agent tags that have been created.
35
35
  *
36
36
  * @param {Letta.TagsListRequest} request
37
37
  * @param {Tags.RequestOptions} requestOptions - Request-specific configuration.
@@ -60,7 +60,7 @@ class Tags {
60
60
  this._options = _options;
61
61
  }
62
62
  /**
63
- * Get a list of all agent tags in the database.
63
+ * Get the list of all agent tags that have been created.
64
64
  *
65
65
  * @param {Letta.TagsListRequest} request
66
66
  * @param {Tags.RequestOptions} requestOptions - Request-specific configuration.
@@ -103,7 +103,7 @@ class Tags {
103
103
  method: "GET",
104
104
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
105
105
  ? yield core.Supplier.get(this._options.project)
106
- : 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),
106
+ : 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),
107
107
  contentType: "application/json",
108
108
  queryParameters: _queryParams,
109
109
  requestType: "json",
@@ -79,7 +79,7 @@ class Telemetry {
79
79
  method: "GET",
80
80
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
81
81
  ? yield core.Supplier.get(this._options.project)
82
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.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),
82
+ : 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),
83
83
  contentType: "application/json",
84
84
  requestType: "json",
85
85
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -118,7 +118,7 @@ class Templates {
118
118
  method: "GET",
119
119
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
120
120
  ? yield core.Supplier.get(this._options.project)
121
- : 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),
121
+ : 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),
122
122
  contentType: "application/json",
123
123
  queryParameters: _queryParams,
124
124
  requestType: "json",
@@ -186,7 +186,7 @@ class Templates {
186
186
  method: "POST",
187
187
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
188
188
  ? yield core.Supplier.get(this._options.project)
189
- : 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),
189
+ : 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),
190
190
  contentType: "application/json",
191
191
  requestType: "json",
192
192
  body: serializers.TemplatesSaveTemplateVersionRequest.jsonOrThrow(request, {
@@ -261,7 +261,7 @@ class Templates {
261
261
  method: "DELETE",
262
262
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
263
263
  ? yield core.Supplier.get(this._options.project)
264
- : 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),
264
+ : 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),
265
265
  contentType: "application/json",
266
266
  requestType: "json",
267
267
  body: serializers.TemplatesDeleteTemplateRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -331,7 +331,7 @@ class Templates {
331
331
  method: "GET",
332
332
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
333
333
  ? yield core.Supplier.get(this._options.project)
334
- : 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),
334
+ : 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),
335
335
  contentType: "application/json",
336
336
  requestType: "json",
337
337
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -398,7 +398,7 @@ class Templates {
398
398
  method: "POST",
399
399
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
400
400
  ? yield core.Supplier.get(this._options.project)
401
- : 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),
401
+ : 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),
402
402
  contentType: "application/json",
403
403
  requestType: "json",
404
404
  body: serializers.TemplatesForkTemplateRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -473,7 +473,7 @@ class Templates {
473
473
  method: "POST",
474
474
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
475
475
  ? yield core.Supplier.get(this._options.project)
476
- : 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),
476
+ : 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),
477
477
  contentType: "application/json",
478
478
  requestType: "json",
479
479
  body: serializers.TemplatesCreateTemplateRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -550,7 +550,7 @@ class Templates {
550
550
  method: "PATCH",
551
551
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
552
552
  ? 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),
553
+ : 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
554
  contentType: "application/json",
555
555
  requestType: "json",
556
556
  body: serializers.TemplatesRenameTemplateRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -634,7 +634,7 @@ class Templates {
634
634
  method: "PATCH",
635
635
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
636
636
  ? yield core.Supplier.get(this._options.project)
637
- : 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),
637
+ : 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),
638
638
  contentType: "application/json",
639
639
  requestType: "json",
640
640
  body: serializers.TemplatesUpdateTemplateDescriptionRequest.jsonOrThrow(request, {
@@ -719,7 +719,7 @@ class Templates {
719
719
  method: "GET",
720
720
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
721
721
  ? yield core.Supplier.get(this._options.project)
722
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.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),
722
+ : 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),
723
723
  contentType: "application/json",
724
724
  queryParameters: _queryParams,
725
725
  requestType: "json",
@@ -83,7 +83,7 @@ class Agents {
83
83
  method: "POST",
84
84
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
85
85
  ? yield core.Supplier.get(this._options.project)
86
- : 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),
86
+ : 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),
87
87
  contentType: "application/json",
88
88
  requestType: "json",
89
89
  body: serializers.templates.AgentsCreateRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -84,7 +84,7 @@ export declare class Tools {
84
84
  count(request?: Letta.ToolsCountRequest, requestOptions?: Tools.RequestOptions): core.HttpResponsePromise<number>;
85
85
  private __count;
86
86
  /**
87
- * Get a list of all tools available to agents belonging to the org of the user
87
+ * Get a list of all tools available to agents.
88
88
  *
89
89
  * @param {Letta.ToolsListRequest} request
90
90
  * @param {Tools.RequestOptions} requestOptions - Request-specific configuration.
@@ -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,
@@ -157,7 +157,7 @@ class Tools {
157
157
  method: "DELETE",
158
158
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
159
159
  ? yield core.Supplier.get(this._options.project)
160
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.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),
160
+ : 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),
161
161
  contentType: "application/json",
162
162
  requestType: "json",
163
163
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -225,7 +225,7 @@ class Tools {
225
225
  method: "PATCH",
226
226
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
227
227
  ? yield core.Supplier.get(this._options.project)
228
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.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),
228
+ : 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),
229
229
  contentType: "application/json",
230
230
  requestType: "json",
231
231
  body: serializers.ToolUpdate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -348,7 +348,7 @@ class Tools {
348
348
  method: "GET",
349
349
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
350
350
  ? yield core.Supplier.get(this._options.project)
351
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.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),
351
+ : 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),
352
352
  contentType: "application/json",
353
353
  queryParameters: _queryParams,
354
354
  requestType: "json",
@@ -404,7 +404,7 @@ class Tools {
404
404
  });
405
405
  }
406
406
  /**
407
- * Get a list of all tools available to agents belonging to the org of the user
407
+ * Get a list of all tools available to agents.
408
408
  *
409
409
  * @param {Letta.ToolsListRequest} request
410
410
  * @param {Tools.RequestOptions} requestOptions - Request-specific configuration.
@@ -420,14 +420,25 @@ class Tools {
420
420
  __list() {
421
421
  return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
422
422
  var _a, _b, _c;
423
- const { after, limit, name, names, toolIds, search, toolTypes, excludeToolTypes, returnOnlyLettaTools } = request;
423
+ const { before, after, limit, order, orderBy, name, names, toolIds, search, toolTypes, excludeToolTypes, returnOnlyLettaTools, } = request;
424
424
  const _queryParams = {};
425
+ if (before != null) {
426
+ _queryParams["before"] = before;
427
+ }
425
428
  if (after != null) {
426
429
  _queryParams["after"] = after;
427
430
  }
428
431
  if (limit != null) {
429
432
  _queryParams["limit"] = limit.toString();
430
433
  }
434
+ if (order != null) {
435
+ _queryParams["order"] = serializers.ToolsListRequestOrder.jsonOrThrow(order, {
436
+ unrecognizedObjectKeys: "strip",
437
+ });
438
+ }
439
+ if (orderBy != null) {
440
+ _queryParams["order_by"] = orderBy;
441
+ }
431
442
  if (name != null) {
432
443
  _queryParams["name"] = name;
433
444
  }
@@ -474,7 +485,7 @@ class Tools {
474
485
  method: "GET",
475
486
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
476
487
  ? 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),
488
+ : 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
489
  contentType: "application/json",
479
490
  queryParameters: _queryParams,
480
491
  requestType: "json",
@@ -553,7 +564,7 @@ class Tools {
553
564
  method: "POST",
554
565
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
555
566
  ? yield core.Supplier.get(this._options.project)
556
- : 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),
567
+ : 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),
557
568
  contentType: "application/json",
558
569
  requestType: "json",
559
570
  body: serializers.ToolCreate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -632,7 +643,7 @@ class Tools {
632
643
  method: "PUT",
633
644
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
634
645
  ? yield core.Supplier.get(this._options.project)
635
- : 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),
646
+ : 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),
636
647
  contentType: "application/json",
637
648
  requestType: "json",
638
649
  body: serializers.ToolCreate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -708,7 +719,7 @@ class Tools {
708
719
  method: "POST",
709
720
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
710
721
  ? yield core.Supplier.get(this._options.project)
711
- : 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),
722
+ : 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),
712
723
  contentType: "application/json",
713
724
  requestType: "json",
714
725
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -789,7 +800,7 @@ class Tools {
789
800
  method: "POST",
790
801
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
791
802
  ? yield core.Supplier.get(this._options.project)
792
- : 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),
803
+ : 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),
793
804
  contentType: "application/json",
794
805
  requestType: "json",
795
806
  body: serializers.ToolRunFromSource.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -867,7 +878,7 @@ class Tools {
867
878
  method: "GET",
868
879
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
869
880
  ? yield core.Supplier.get(this._options.project)
870
- : 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, "user-id": userId != null ? userId : undefined }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
881
+ : 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, "user-id": userId != null ? userId : undefined }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
871
882
  contentType: "application/json",
872
883
  requestType: "json",
873
884
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -943,7 +954,7 @@ class Tools {
943
954
  method: "GET",
944
955
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
945
956
  ? yield core.Supplier.get(this._options.project)
946
- : 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),
957
+ : 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),
947
958
  contentType: "application/json",
948
959
  requestType: "json",
949
960
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -1019,7 +1030,7 @@ class Tools {
1019
1030
  method: "POST",
1020
1031
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
1021
1032
  ? yield core.Supplier.get(this._options.project)
1022
- : 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),
1033
+ : 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),
1023
1034
  contentType: "application/json",
1024
1035
  requestType: "json",
1025
1036
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -1096,7 +1107,7 @@ class Tools {
1096
1107
  method: "GET",
1097
1108
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
1098
1109
  ? yield core.Supplier.get(this._options.project)
1099
- : 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, "user-id": userId != null ? userId : undefined }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
1110
+ : 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, "user-id": userId != null ? userId : undefined }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
1100
1111
  contentType: "application/json",
1101
1112
  requestType: "json",
1102
1113
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -1176,7 +1187,7 @@ class Tools {
1176
1187
  method: "PUT",
1177
1188
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
1178
1189
  ? yield core.Supplier.get(this._options.project)
1179
- : 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),
1190
+ : 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),
1180
1191
  contentType: "application/json",
1181
1192
  requestType: "json",
1182
1193
  body: serializers.AddMcpServerRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -1253,7 +1264,7 @@ class Tools {
1253
1264
  method: "GET",
1254
1265
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
1255
1266
  ? yield core.Supplier.get(this._options.project)
1256
- : 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),
1267
+ : 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),
1257
1268
  contentType: "application/json",
1258
1269
  requestType: "json",
1259
1270
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -1330,7 +1341,7 @@ class Tools {
1330
1341
  method: "POST",
1331
1342
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
1332
1343
  ? yield core.Supplier.get(this._options.project)
1333
- : 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),
1344
+ : 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),
1334
1345
  contentType: "application/json",
1335
1346
  requestType: "json",
1336
1347
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -1406,7 +1417,7 @@ class Tools {
1406
1417
  method: "DELETE",
1407
1418
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
1408
1419
  ? yield core.Supplier.get(this._options.project)
1409
- : 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),
1420
+ : 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),
1410
1421
  contentType: "application/json",
1411
1422
  requestType: "json",
1412
1423
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -1483,7 +1494,7 @@ class Tools {
1483
1494
  method: "PATCH",
1484
1495
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
1485
1496
  ? yield core.Supplier.get(this._options.project)
1486
- : 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),
1497
+ : 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),
1487
1498
  contentType: "application/json",
1488
1499
  requestType: "json",
1489
1500
  body: serializers.UpdateMcpServerRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -1565,7 +1576,7 @@ class Tools {
1565
1576
  method: "POST",
1566
1577
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
1567
1578
  ? yield core.Supplier.get(this._options.project)
1568
- : 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),
1579
+ : 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),
1569
1580
  contentType: "application/json",
1570
1581
  requestType: "json",
1571
1582
  body: serializers.TestMcpServerRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -1626,7 +1637,7 @@ class Tools {
1626
1637
  method: "POST",
1627
1638
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
1628
1639
  ? yield core.Supplier.get(this._options.project)
1629
- : 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),
1640
+ : 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),
1630
1641
  contentType: "application/json",
1631
1642
  requestType: "json",
1632
1643
  body: serializers.ConnectMcpServerRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -1,13 +1,35 @@
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
  * {}
7
8
  */
8
9
  export interface ToolsListRequest {
10
+ /**
11
+ * Tool ID cursor for pagination. Returns tools that come before this tool ID in the specified sort order
12
+ */
13
+ before?: string;
14
+ /**
15
+ * Tool ID cursor for pagination. Returns tools that come after this tool ID in the specified sort order
16
+ */
9
17
  after?: string;
18
+ /**
19
+ * Maximum number of tools to return
20
+ */
10
21
  limit?: number;
22
+ /**
23
+ * Sort order for tools by creation time. 'asc' for oldest first, 'desc' for newest first
24
+ */
25
+ order?: Letta.ToolsListRequestOrder;
26
+ /**
27
+ * Field to sort by
28
+ */
29
+ orderBy?: "created_at";
30
+ /**
31
+ * Filter by single tool name
32
+ */
11
33
  name?: string;
12
34
  /**
13
35
  * Filter by specific tool names
@@ -0,0 +1,11 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * Sort order for tools by creation time. 'asc' for oldest first, 'desc' for newest first
6
+ */
7
+ export type ToolsListRequestOrder = "asc" | "desc";
8
+ export declare const ToolsListRequestOrder: {
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.ToolsListRequestOrder = void 0;
7
+ exports.ToolsListRequestOrder = {
8
+ Asc: "asc",
9
+ Desc: "desc",
10
+ };
@@ -1,3 +1,4 @@
1
+ export * from "./ToolsListRequestOrder";
1
2
  export * from "./ListMcpServersResponseValue";
2
3
  export * from "./AddMcpServerRequest";
3
4
  export * from "./AddMcpServerResponseItem";
@@ -14,6 +14,7 @@ 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("./ToolsListRequestOrder"), exports);
17
18
  __exportStar(require("./ListMcpServersResponseValue"), exports);
18
19
  __exportStar(require("./AddMcpServerRequest"), exports);
19
20
  __exportStar(require("./AddMcpServerResponseItem"), exports);
@@ -85,7 +85,7 @@ class Voice {
85
85
  method: "POST",
86
86
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
87
87
  ? yield core.Supplier.get(this._options.project)
88
- : 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, "user-id": userId != null ? userId : undefined }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
88
+ : 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, "user-id": userId != null ? userId : undefined }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
89
89
  contentType: "application/json",
90
90
  requestType: "json",
91
91
  body: serializers.voice.createVoiceChatCompletions.Request.jsonOrThrow(_body, {
@@ -2,7 +2,7 @@
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
4
  import * as Letta from "../index";
5
- export interface BodyExportAgentSerialized {
5
+ export interface BodyExportAgent {
6
6
  spec?: Letta.AgentFileSchema;
7
7
  legacySpec?: Letta.LettaSerializeSchemasPydanticAgentSchemaAgentSchema;
8
8
  }
@@ -9,4 +9,6 @@ export interface DeploymentEntity {
9
9
  type: string;
10
10
  name?: string;
11
11
  description?: string;
12
+ entityId?: string;
13
+ projectId?: string;
12
14
  }
@@ -33,7 +33,7 @@ export * from "./BatchJob";
33
33
  export * from "./Block";
34
34
  export * from "./BlockSchema";
35
35
  export * from "./BlockUpdate";
36
- export * from "./BodyExportAgentSerialized";
36
+ export * from "./BodyExportAgent";
37
37
  export * from "./ChatCompletionAllowedToolChoiceParam";
38
38
  export * from "./ChatCompletionAllowedToolsParamMode";
39
39
  export * from "./ChatCompletionAllowedToolsParam";