@letta-ai/letta-client 1.0.0-alpha.1 → 1.0.0-alpha.2

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 (859) hide show
  1. package/api/resources/agents/client/Client.d.ts +23 -3
  2. package/api/resources/agents/client/Client.js +32 -12
  3. package/api/resources/agents/client/requests/AgentsExportFileRequest.d.ts +4 -1
  4. package/api/resources/agents/client/requests/AgentsListRequest.d.ts +16 -1
  5. package/api/resources/agents/client/requests/BodyImportAgent.d.ts +3 -1
  6. package/api/resources/agents/client/requests/CreateAgentRequest.d.ts +2 -2
  7. package/api/resources/agents/resources/blocks/client/Client.d.ts +9 -2
  8. package/api/resources/agents/resources/blocks/client/Client.js +37 -10
  9. package/api/resources/agents/resources/blocks/client/index.d.ts +1 -1
  10. package/api/resources/agents/resources/blocks/client/index.js +15 -0
  11. package/api/resources/agents/resources/blocks/client/requests/BlocksListRequest.d.ts +36 -0
  12. package/api/resources/agents/resources/blocks/client/requests/index.d.ts +1 -0
  13. package/api/resources/agents/resources/blocks/client/requests/index.js +2 -0
  14. package/api/resources/agents/resources/blocks/index.d.ts +1 -0
  15. package/api/resources/agents/resources/blocks/index.js +1 -0
  16. package/api/resources/agents/resources/blocks/types/BlocksListRequestOrder.d.ts +11 -0
  17. package/api/resources/agents/resources/blocks/types/BlocksListRequestOrder.js +10 -0
  18. package/api/resources/agents/resources/blocks/types/index.d.ts +1 -0
  19. package/api/resources/agents/resources/blocks/types/index.js +17 -0
  20. package/api/resources/agents/resources/context/client/Client.js +1 -1
  21. package/api/resources/agents/resources/coreMemory/client/Client.js +1 -1
  22. package/api/resources/agents/resources/files/client/Client.d.ts +9 -1
  23. package/api/resources/agents/resources/files/client/Client.js +30 -8
  24. package/api/resources/agents/resources/files/client/requests/FilesListRequest.d.ts +29 -4
  25. package/api/resources/agents/resources/files/index.d.ts +1 -0
  26. package/api/resources/agents/resources/files/index.js +1 -0
  27. package/api/resources/agents/resources/files/types/FilesListRequestOrder.d.ts +11 -0
  28. package/api/resources/agents/resources/files/types/FilesListRequestOrder.js +10 -0
  29. package/api/resources/agents/resources/files/types/index.d.ts +1 -0
  30. package/api/resources/agents/resources/files/types/index.js +17 -0
  31. package/api/resources/agents/resources/folders/client/Client.d.ts +9 -2
  32. package/api/resources/agents/resources/folders/client/Client.js +35 -8
  33. package/api/resources/agents/resources/folders/client/index.d.ts +1 -1
  34. package/api/resources/agents/resources/folders/client/index.js +15 -0
  35. package/api/resources/agents/resources/folders/client/requests/FoldersListRequest.d.ts +36 -0
  36. package/api/resources/agents/resources/folders/client/requests/index.d.ts +1 -0
  37. package/api/resources/agents/resources/folders/client/requests/index.js +2 -0
  38. package/api/resources/agents/resources/folders/index.d.ts +1 -0
  39. package/api/resources/agents/resources/folders/index.js +1 -0
  40. package/api/resources/agents/resources/folders/types/FoldersListRequestOrder.d.ts +11 -0
  41. package/api/resources/agents/resources/folders/types/FoldersListRequestOrder.js +10 -0
  42. package/api/resources/agents/resources/folders/types/index.d.ts +1 -0
  43. package/api/resources/agents/resources/folders/types/index.js +17 -0
  44. package/api/resources/agents/resources/groups/client/Client.d.ts +8 -1
  45. package/api/resources/agents/resources/groups/client/Client.js +28 -4
  46. package/api/resources/agents/resources/groups/client/requests/GroupsListRequest.d.ts +29 -1
  47. package/api/resources/agents/resources/groups/index.d.ts +1 -0
  48. package/api/resources/agents/resources/groups/index.js +1 -0
  49. package/api/resources/agents/resources/groups/types/GroupsListRequestOrder.d.ts +11 -0
  50. package/api/resources/agents/resources/groups/types/GroupsListRequestOrder.js +10 -0
  51. package/api/resources/agents/resources/groups/types/index.d.ts +1 -0
  52. package/api/resources/agents/resources/groups/types/index.js +17 -0
  53. package/api/resources/agents/resources/index.d.ts +15 -6
  54. package/api/resources/agents/resources/index.js +16 -7
  55. package/api/resources/agents/resources/memoryVariables/client/Client.js +1 -1
  56. package/api/resources/agents/resources/messages/client/Client.d.ts +15 -2
  57. package/api/resources/agents/resources/messages/client/Client.js +38 -17
  58. package/api/resources/agents/resources/messages/client/requests/MessagesListRequest.d.ts +26 -6
  59. package/api/resources/agents/resources/messages/client/requests/MessagesResetRequest.d.ts +3 -1
  60. package/api/resources/agents/resources/messages/types/MessagesListRequestOrder.d.ts +11 -0
  61. package/api/resources/agents/resources/messages/types/MessagesListRequestOrder.js +10 -0
  62. package/api/resources/agents/resources/messages/types/index.d.ts +1 -0
  63. package/api/resources/agents/resources/messages/types/index.js +1 -0
  64. package/api/resources/agents/resources/passages/client/Client.d.ts +12 -2
  65. package/api/resources/agents/resources/passages/client/Client.js +17 -7
  66. package/api/resources/agents/resources/passages/client/requests/PassagesListRequest.d.ts +7 -1
  67. package/api/resources/agents/resources/passages/client/requests/PassagesSearchRequest.d.ts +5 -1
  68. package/api/resources/agents/resources/sources/client/Client.d.ts +9 -2
  69. package/api/resources/agents/resources/sources/client/Client.js +35 -8
  70. package/api/resources/agents/resources/sources/client/index.d.ts +1 -1
  71. package/api/resources/agents/resources/sources/client/index.js +15 -0
  72. package/api/resources/agents/resources/sources/client/requests/SourcesListRequest.d.ts +36 -0
  73. package/api/resources/agents/resources/sources/client/requests/index.d.ts +1 -0
  74. package/api/resources/agents/resources/sources/client/requests/index.js +2 -0
  75. package/api/resources/agents/resources/sources/index.d.ts +1 -0
  76. package/api/resources/agents/resources/sources/index.js +1 -0
  77. package/api/resources/agents/resources/sources/types/SourcesListRequestOrder.d.ts +11 -0
  78. package/api/resources/agents/resources/sources/types/SourcesListRequestOrder.js +10 -0
  79. package/api/resources/agents/resources/sources/types/index.d.ts +1 -0
  80. package/api/resources/agents/resources/sources/types/index.js +17 -0
  81. package/api/resources/agents/resources/templates/client/Client.js +3 -3
  82. package/api/resources/agents/resources/tools/client/Client.d.ts +9 -2
  83. package/api/resources/agents/resources/tools/client/Client.js +37 -10
  84. package/api/resources/agents/resources/tools/client/requests/ToolsListRequest.d.ts +36 -0
  85. package/api/resources/agents/resources/tools/client/requests/index.d.ts +1 -0
  86. package/api/resources/agents/resources/tools/index.d.ts +1 -0
  87. package/api/resources/agents/resources/tools/index.js +1 -0
  88. package/api/resources/agents/resources/tools/types/ToolsListRequestOrder.d.ts +11 -0
  89. package/api/resources/agents/resources/tools/types/ToolsListRequestOrder.js +10 -0
  90. package/api/resources/agents/resources/tools/types/index.d.ts +1 -0
  91. package/api/resources/agents/resources/tools/types/index.js +17 -0
  92. package/api/resources/archives/client/Client.d.ts +8 -1
  93. package/api/resources/archives/client/Client.js +11 -4
  94. package/api/resources/archives/client/requests/ListArchivesRequest.d.ts +8 -1
  95. package/api/resources/batches/client/Client.d.ts +7 -1
  96. package/api/resources/batches/client/Client.js +11 -5
  97. package/api/resources/batches/client/requests/BatchesListRequest.d.ts +7 -1
  98. package/api/resources/batches/resources/messages/client/Client.d.ts +8 -1
  99. package/api/resources/batches/resources/messages/client/Client.js +9 -2
  100. package/api/resources/batches/resources/messages/client/requests/MessagesListRequest.d.ts +8 -1
  101. package/api/resources/blocks/client/Client.d.ts +17 -1
  102. package/api/resources/blocks/client/Client.js +23 -7
  103. package/api/resources/blocks/client/requests/BlocksListRequest.d.ts +17 -1
  104. package/api/resources/blocks/resources/agents/client/Client.d.ts +7 -1
  105. package/api/resources/blocks/resources/agents/client/Client.js +8 -2
  106. package/api/resources/blocks/resources/agents/client/requests/AgentsListRequest.d.ts +7 -1
  107. package/api/resources/clientSideAccessTokens/client/Client.d.ts +5 -1
  108. package/api/resources/clientSideAccessTokens/client/Client.js +8 -4
  109. package/api/resources/clientSideAccessTokens/client/requests/ClientSideAccessTokensListClientSideAccessTokensRequest.d.ts +5 -1
  110. package/api/resources/folders/client/Client.d.ts +11 -2
  111. package/api/resources/folders/client/Client.js +19 -10
  112. package/api/resources/folders/client/requests/FoldersListRequest.d.ts +8 -1
  113. package/api/resources/folders/client/requests/RetrieveMetadataRequest.d.ts +3 -1
  114. package/api/resources/folders/resources/agents/client/Client.d.ts +7 -1
  115. package/api/resources/folders/resources/agents/client/Client.js +8 -2
  116. package/api/resources/folders/resources/agents/client/requests/AgentsListRequest.d.ts +7 -1
  117. package/api/resources/folders/resources/files/client/Client.d.ts +12 -2
  118. package/api/resources/folders/resources/files/client/Client.js +15 -5
  119. package/api/resources/folders/resources/files/client/requests/BodyUploadFileToFolder.d.ts +4 -1
  120. package/api/resources/folders/resources/files/client/requests/FilesListRequest.d.ts +8 -1
  121. package/api/resources/folders/resources/passages/client/Client.d.ts +7 -1
  122. package/api/resources/folders/resources/passages/client/Client.js +8 -2
  123. package/api/resources/folders/resources/passages/client/requests/PassagesListRequest.d.ts +7 -1
  124. package/api/resources/groups/client/Client.d.ts +9 -1
  125. package/api/resources/groups/client/Client.js +15 -7
  126. package/api/resources/groups/client/requests/GroupsListRequest.d.ts +9 -1
  127. package/api/resources/groups/resources/messages/client/Client.d.ts +10 -1
  128. package/api/resources/groups/resources/messages/client/Client.js +15 -6
  129. package/api/resources/groups/resources/messages/client/requests/MessagesListRequest.d.ts +10 -1
  130. package/api/resources/health/client/Client.js +1 -1
  131. package/api/resources/identities/client/Client.d.ts +11 -1
  132. package/api/resources/identities/client/Client.js +18 -8
  133. package/api/resources/identities/client/requests/IdentitiesListRequest.d.ts +11 -1
  134. package/api/resources/identities/resources/agents/client/Client.d.ts +7 -1
  135. package/api/resources/identities/resources/agents/client/Client.js +8 -2
  136. package/api/resources/identities/resources/agents/client/requests/AgentsListRequest.d.ts +7 -1
  137. package/api/resources/identities/resources/blocks/client/Client.d.ts +7 -1
  138. package/api/resources/identities/resources/blocks/client/Client.js +8 -2
  139. package/api/resources/identities/resources/blocks/client/requests/BlocksListRequest.d.ts +7 -1
  140. package/api/resources/identities/resources/properties/client/Client.js +1 -1
  141. package/api/resources/index.d.ts +2 -1
  142. package/api/resources/index.js +3 -2
  143. package/api/resources/jobs/client/Client.d.ts +17 -2
  144. package/api/resources/jobs/client/Client.js +32 -9
  145. package/api/resources/jobs/client/requests/JobsListActiveRequest.d.ts +7 -1
  146. package/api/resources/jobs/client/requests/JobsListRequest.d.ts +23 -5
  147. package/api/resources/jobs/index.d.ts +1 -0
  148. package/api/resources/jobs/index.js +1 -0
  149. package/api/resources/jobs/types/JobsListRequestOrder.d.ts +11 -0
  150. package/api/resources/jobs/types/JobsListRequestOrder.js +10 -0
  151. package/api/resources/jobs/types/index.d.ts +1 -0
  152. package/api/resources/jobs/types/index.js +17 -0
  153. package/api/resources/models/client/Client.d.ts +4 -1
  154. package/api/resources/models/client/Client.js +6 -3
  155. package/api/resources/models/client/requests/ModelsListRequest.d.ts +4 -1
  156. package/api/resources/models/resources/embeddings/client/Client.js +1 -1
  157. package/api/resources/projects/client/Client.d.ts +5 -1
  158. package/api/resources/projects/client/Client.js +6 -2
  159. package/api/resources/projects/client/requests/ProjectsListRequest.d.ts +5 -1
  160. package/api/resources/providers/client/Client.d.ts +22 -1
  161. package/api/resources/providers/client/Client.js +82 -7
  162. package/api/resources/providers/client/requests/ProvidersListRequest.d.ts +9 -1
  163. package/api/resources/runs/client/Client.d.ts +29 -2
  164. package/api/resources/runs/client/Client.js +117 -11
  165. package/api/resources/runs/client/requests/RunsListActiveRequest.d.ts +4 -1
  166. package/api/resources/runs/client/requests/RunsListRequest.d.ts +29 -6
  167. package/api/resources/runs/resources/index.d.ts +2 -1
  168. package/api/resources/runs/resources/index.js +3 -2
  169. package/api/resources/runs/resources/messages/client/Client.d.ts +7 -1
  170. package/api/resources/runs/resources/messages/client/Client.js +12 -3
  171. package/api/resources/runs/resources/messages/client/requests/MessagesListRequest.d.ts +11 -1
  172. package/api/resources/runs/resources/steps/client/Client.d.ts +8 -12
  173. package/api/resources/runs/resources/steps/client/Client.js +17 -16
  174. package/api/resources/runs/resources/steps/client/requests/StepsListRequest.d.ts +14 -3
  175. package/api/resources/runs/resources/steps/index.d.ts +1 -0
  176. package/api/resources/runs/resources/steps/index.js +1 -0
  177. package/api/resources/runs/resources/steps/types/StepsListRequestOrder.d.ts +11 -0
  178. package/api/resources/runs/resources/steps/types/StepsListRequestOrder.js +10 -0
  179. package/api/resources/runs/resources/steps/types/index.d.ts +1 -0
  180. package/api/resources/runs/resources/steps/types/index.js +17 -0
  181. package/api/resources/runs/resources/usage/client/Client.js +1 -1
  182. package/api/resources/runs/types/RunsListRequestOrder.d.ts +11 -0
  183. package/api/resources/runs/types/RunsListRequestOrder.js +10 -0
  184. package/api/resources/runs/types/index.d.ts +1 -0
  185. package/api/resources/runs/types/index.js +1 -0
  186. package/api/resources/sources/client/Client.d.ts +6 -2
  187. package/api/resources/sources/client/Client.js +16 -12
  188. package/api/resources/sources/client/requests/GetFileMetadataRequest.d.ts +3 -1
  189. package/api/resources/sources/client/requests/GetSourcesMetadataRequest.d.ts +3 -1
  190. package/api/resources/sources/resources/files/client/Client.d.ts +10 -2
  191. package/api/resources/sources/resources/files/client/Client.js +13 -5
  192. package/api/resources/sources/resources/files/client/requests/BodyUploadFileToSource.d.ts +4 -1
  193. package/api/resources/sources/resources/files/client/requests/FilesListRequest.d.ts +6 -1
  194. package/api/resources/sources/resources/passages/client/Client.d.ts +5 -1
  195. package/api/resources/sources/resources/passages/client/Client.js +6 -2
  196. package/api/resources/sources/resources/passages/client/requests/PassagesListRequest.d.ts +5 -1
  197. package/api/resources/steps/client/Client.d.ts +14 -1
  198. package/api/resources/steps/client/Client.js +16 -3
  199. package/api/resources/steps/client/requests/StepsListRequest.d.ts +14 -1
  200. package/api/resources/steps/resources/feedback/client/Client.js +1 -1
  201. package/api/resources/steps/resources/messages/client/Client.d.ts +7 -1
  202. package/api/resources/steps/resources/messages/client/Client.js +8 -2
  203. package/api/resources/steps/resources/messages/client/requests/MessagesListRequest.d.ts +7 -1
  204. package/api/resources/steps/resources/metrics/client/Client.js +1 -1
  205. package/api/resources/steps/resources/trace/client/Client.js +1 -1
  206. package/api/resources/tags/client/Client.d.ts +9 -1
  207. package/api/resources/tags/client/Client.js +10 -2
  208. package/api/resources/tags/client/requests/TagsListRequest.d.ts +9 -1
  209. package/api/resources/telemetry/client/Client.js +1 -1
  210. package/api/resources/templates/client/Client.d.ts +16 -2
  211. package/api/resources/templates/client/Client.js +29 -15
  212. package/api/resources/templates/client/requests/TemplatesListRequest.d.ts +12 -1
  213. package/api/resources/templates/client/requests/TemplatesListTemplateVersionsRequest.d.ts +4 -1
  214. package/api/resources/templates/resources/agents/client/Client.js +1 -1
  215. package/api/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemSecretsItem.d.ts +1 -0
  216. package/api/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemSecretsItemValueEnc.d.ts +5 -0
  217. package/api/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemSecretsItemValueEncItem.d.ts +4 -0
  218. package/api/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolExecEnvironmentVariablesItem.d.ts +1 -0
  219. package/api/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolExecEnvironmentVariablesItemValueEnc.d.ts +5 -0
  220. package/api/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolExecEnvironmentVariablesItemValueEncItem.d.ts +4 -0
  221. package/api/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolsItemToolType.d.ts +2 -2
  222. package/api/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolsItemToolType.js +1 -1
  223. package/api/resources/templates/types/index.d.ts +4 -0
  224. package/api/resources/templates/types/index.js +4 -0
  225. package/api/resources/tools/client/Client.d.ts +16 -40
  226. package/api/resources/tools/client/Client.js +33 -246
  227. package/api/resources/tools/client/requests/ToolsCountRequest.d.ts +6 -1
  228. package/api/resources/tools/client/requests/ToolsListRequest.d.ts +10 -1
  229. package/api/resources/voice/client/Client.js +1 -1
  230. package/api/types/AgentEnvironmentVariable.d.ts +2 -0
  231. package/api/types/ApprovalCreate.d.ts +5 -2
  232. package/api/types/ApprovalCreateApprovalsItem.d.ts +5 -0
  233. package/api/types/ApprovalResponseMessage.d.ts +5 -2
  234. package/api/types/ApprovalResponseMessageApprovalsItem.d.ts +5 -0
  235. package/api/types/ApprovalReturn.d.ts +12 -0
  236. package/api/types/InternalTemplateAgentCreate.d.ts +2 -2
  237. package/api/types/LettaSchemasAgentFileAgentSchema.d.ts +2 -2
  238. package/api/types/LettaSchemasAgentFileMessageSchema.d.ts +7 -1
  239. package/api/types/LettaSchemasLettaMessageToolReturn.d.ts +12 -0
  240. package/api/types/LettaSchemasLettaMessageToolReturnStatus.d.ts +8 -0
  241. package/api/types/LettaSchemasLettaMessageToolReturnStatus.js +10 -0
  242. package/{dist/api/types/ToolReturn.d.ts → api/types/LettaSchemasMessageToolReturn.d.ts} +5 -2
  243. package/api/types/{ToolReturnStatus.d.ts → LettaSchemasMessageToolReturnStatus.d.ts} +2 -2
  244. package/api/types/{ToolReturnStatus.js → LettaSchemasMessageToolReturnStatus.js} +2 -2
  245. package/api/types/Message.d.ts +3 -1
  246. package/api/types/MessageApprovalsItem.d.ts +5 -0
  247. package/api/types/OmittedReasoningContent.d.ts +2 -0
  248. package/api/types/Provider.d.ts +4 -0
  249. package/api/types/RunMetrics.d.ts +21 -0
  250. package/api/types/RunMetrics.js +5 -0
  251. package/api/types/SandboxEnvironmentVariable.d.ts +2 -0
  252. package/api/types/TextContent.d.ts +2 -0
  253. package/api/types/ToolCallContent.d.ts +2 -0
  254. package/api/types/ToolCallMessage.d.ts +1 -0
  255. package/api/types/ToolCallMessageToolCalls.d.ts +5 -0
  256. package/api/types/ToolCallMessageToolCalls.js +5 -0
  257. package/api/types/ToolReturnMessage.d.ts +7 -5
  258. package/api/types/ToolType.d.ts +2 -2
  259. package/api/types/ToolType.js +1 -1
  260. package/api/types/index.d.ts +10 -9
  261. package/api/types/index.js +10 -9
  262. package/dist/api/resources/agents/client/Client.d.ts +23 -3
  263. package/dist/api/resources/agents/client/Client.js +32 -12
  264. package/dist/api/resources/agents/client/requests/AgentsExportFileRequest.d.ts +4 -1
  265. package/dist/api/resources/agents/client/requests/AgentsListRequest.d.ts +16 -1
  266. package/dist/api/resources/agents/client/requests/BodyImportAgent.d.ts +3 -1
  267. package/dist/api/resources/agents/client/requests/CreateAgentRequest.d.ts +2 -2
  268. package/dist/api/resources/agents/resources/blocks/client/Client.d.ts +9 -2
  269. package/dist/api/resources/agents/resources/blocks/client/Client.js +37 -10
  270. package/dist/api/resources/agents/resources/blocks/client/index.d.ts +1 -1
  271. package/dist/api/resources/agents/resources/blocks/client/index.js +15 -0
  272. package/dist/api/resources/agents/resources/blocks/client/requests/BlocksListRequest.d.ts +36 -0
  273. package/dist/api/resources/agents/resources/blocks/client/requests/BlocksListRequest.js +5 -0
  274. package/dist/api/resources/agents/resources/blocks/client/requests/index.d.ts +1 -0
  275. package/dist/api/resources/agents/resources/blocks/client/requests/index.js +2 -0
  276. package/dist/api/resources/agents/resources/blocks/index.d.ts +1 -0
  277. package/dist/api/resources/agents/resources/blocks/index.js +1 -0
  278. package/dist/api/resources/agents/resources/blocks/types/BlocksListRequestOrder.d.ts +11 -0
  279. package/dist/api/resources/agents/resources/blocks/types/BlocksListRequestOrder.js +10 -0
  280. package/dist/api/resources/agents/resources/blocks/types/index.d.ts +1 -0
  281. package/dist/api/resources/agents/resources/blocks/types/index.js +17 -0
  282. package/dist/api/resources/agents/resources/context/client/Client.js +1 -1
  283. package/dist/api/resources/agents/resources/coreMemory/client/Client.js +1 -1
  284. package/dist/api/resources/agents/resources/files/client/Client.d.ts +9 -1
  285. package/dist/api/resources/agents/resources/files/client/Client.js +30 -8
  286. package/dist/api/resources/agents/resources/files/client/requests/FilesListRequest.d.ts +29 -4
  287. package/dist/api/resources/agents/resources/files/index.d.ts +1 -0
  288. package/dist/api/resources/agents/resources/files/index.js +1 -0
  289. package/dist/api/resources/agents/resources/files/types/FilesListRequestOrder.d.ts +11 -0
  290. package/dist/api/resources/agents/resources/files/types/FilesListRequestOrder.js +10 -0
  291. package/dist/api/resources/agents/resources/files/types/index.d.ts +1 -0
  292. package/dist/api/resources/agents/resources/files/types/index.js +17 -0
  293. package/dist/api/resources/agents/resources/folders/client/Client.d.ts +9 -2
  294. package/dist/api/resources/agents/resources/folders/client/Client.js +35 -8
  295. package/dist/api/resources/agents/resources/folders/client/index.d.ts +1 -1
  296. package/dist/api/resources/agents/resources/folders/client/index.js +15 -0
  297. package/dist/api/resources/agents/resources/folders/client/requests/FoldersListRequest.d.ts +36 -0
  298. package/dist/api/resources/agents/resources/folders/client/requests/FoldersListRequest.js +5 -0
  299. package/dist/api/resources/agents/resources/folders/client/requests/index.d.ts +1 -0
  300. package/dist/api/resources/agents/resources/folders/client/requests/index.js +2 -0
  301. package/dist/api/resources/agents/resources/folders/index.d.ts +1 -0
  302. package/dist/api/resources/agents/resources/folders/index.js +1 -0
  303. package/dist/api/resources/agents/resources/folders/types/FoldersListRequestOrder.d.ts +11 -0
  304. package/dist/api/resources/agents/resources/folders/types/FoldersListRequestOrder.js +10 -0
  305. package/dist/api/resources/agents/resources/folders/types/index.d.ts +1 -0
  306. package/dist/api/resources/agents/resources/folders/types/index.js +17 -0
  307. package/dist/api/resources/agents/resources/groups/client/Client.d.ts +8 -1
  308. package/dist/api/resources/agents/resources/groups/client/Client.js +28 -4
  309. package/dist/api/resources/agents/resources/groups/client/requests/GroupsListRequest.d.ts +29 -1
  310. package/dist/api/resources/agents/resources/groups/index.d.ts +1 -0
  311. package/dist/api/resources/agents/resources/groups/index.js +1 -0
  312. package/dist/api/resources/agents/resources/groups/types/GroupsListRequestOrder.d.ts +11 -0
  313. package/dist/api/resources/agents/resources/groups/types/GroupsListRequestOrder.js +10 -0
  314. package/dist/api/resources/agents/resources/groups/types/index.d.ts +1 -0
  315. package/dist/api/resources/agents/resources/groups/types/index.js +17 -0
  316. package/dist/api/resources/agents/resources/index.d.ts +15 -6
  317. package/dist/api/resources/agents/resources/index.js +16 -7
  318. package/dist/api/resources/agents/resources/memoryVariables/client/Client.js +1 -1
  319. package/dist/api/resources/agents/resources/messages/client/Client.d.ts +15 -2
  320. package/dist/api/resources/agents/resources/messages/client/Client.js +38 -17
  321. package/dist/api/resources/agents/resources/messages/client/requests/MessagesListRequest.d.ts +26 -6
  322. package/dist/api/resources/agents/resources/messages/client/requests/MessagesResetRequest.d.ts +3 -1
  323. package/dist/api/resources/agents/resources/messages/types/MessagesListRequestOrder.d.ts +11 -0
  324. package/dist/api/resources/agents/resources/messages/types/MessagesListRequestOrder.js +10 -0
  325. package/dist/api/resources/agents/resources/messages/types/index.d.ts +1 -0
  326. package/dist/api/resources/agents/resources/messages/types/index.js +1 -0
  327. package/dist/api/resources/agents/resources/passages/client/Client.d.ts +12 -2
  328. package/dist/api/resources/agents/resources/passages/client/Client.js +17 -7
  329. package/dist/api/resources/agents/resources/passages/client/requests/PassagesListRequest.d.ts +7 -1
  330. package/dist/api/resources/agents/resources/passages/client/requests/PassagesSearchRequest.d.ts +5 -1
  331. package/dist/api/resources/agents/resources/sources/client/Client.d.ts +9 -2
  332. package/dist/api/resources/agents/resources/sources/client/Client.js +35 -8
  333. package/dist/api/resources/agents/resources/sources/client/index.d.ts +1 -1
  334. package/dist/api/resources/agents/resources/sources/client/index.js +15 -0
  335. package/dist/api/resources/agents/resources/sources/client/requests/SourcesListRequest.d.ts +36 -0
  336. package/dist/api/resources/agents/resources/sources/client/requests/SourcesListRequest.js +5 -0
  337. package/dist/api/resources/agents/resources/sources/client/requests/index.d.ts +1 -0
  338. package/dist/api/resources/agents/resources/sources/client/requests/index.js +2 -0
  339. package/dist/api/resources/agents/resources/sources/index.d.ts +1 -0
  340. package/dist/api/resources/agents/resources/sources/index.js +1 -0
  341. package/dist/api/resources/agents/resources/sources/types/SourcesListRequestOrder.d.ts +11 -0
  342. package/dist/api/resources/agents/resources/sources/types/SourcesListRequestOrder.js +10 -0
  343. package/dist/api/resources/agents/resources/sources/types/index.d.ts +1 -0
  344. package/dist/api/resources/agents/resources/sources/types/index.js +17 -0
  345. package/dist/api/resources/agents/resources/templates/client/Client.js +3 -3
  346. package/dist/api/resources/agents/resources/tools/client/Client.d.ts +9 -2
  347. package/dist/api/resources/agents/resources/tools/client/Client.js +37 -10
  348. package/dist/api/resources/agents/resources/tools/client/requests/ToolsListRequest.d.ts +36 -0
  349. package/dist/api/resources/agents/resources/tools/client/requests/ToolsListRequest.js +5 -0
  350. package/dist/api/resources/agents/resources/tools/client/requests/index.d.ts +1 -0
  351. package/dist/api/resources/agents/resources/tools/index.d.ts +1 -0
  352. package/dist/api/resources/agents/resources/tools/index.js +1 -0
  353. package/dist/api/resources/agents/resources/tools/types/ToolsListRequestOrder.d.ts +11 -0
  354. package/dist/api/resources/agents/resources/tools/types/ToolsListRequestOrder.js +10 -0
  355. package/dist/api/resources/agents/resources/tools/types/index.d.ts +1 -0
  356. package/dist/api/resources/agents/resources/tools/types/index.js +17 -0
  357. package/dist/api/resources/archives/client/Client.d.ts +8 -1
  358. package/dist/api/resources/archives/client/Client.js +11 -4
  359. package/dist/api/resources/archives/client/requests/ListArchivesRequest.d.ts +8 -1
  360. package/dist/api/resources/batches/client/Client.d.ts +7 -1
  361. package/dist/api/resources/batches/client/Client.js +11 -5
  362. package/dist/api/resources/batches/client/requests/BatchesListRequest.d.ts +7 -1
  363. package/dist/api/resources/batches/resources/messages/client/Client.d.ts +8 -1
  364. package/dist/api/resources/batches/resources/messages/client/Client.js +9 -2
  365. package/dist/api/resources/batches/resources/messages/client/requests/MessagesListRequest.d.ts +8 -1
  366. package/dist/api/resources/blocks/client/Client.d.ts +17 -1
  367. package/dist/api/resources/blocks/client/Client.js +23 -7
  368. package/dist/api/resources/blocks/client/requests/BlocksListRequest.d.ts +17 -1
  369. package/dist/api/resources/blocks/resources/agents/client/Client.d.ts +7 -1
  370. package/dist/api/resources/blocks/resources/agents/client/Client.js +8 -2
  371. package/dist/api/resources/blocks/resources/agents/client/requests/AgentsListRequest.d.ts +7 -1
  372. package/dist/api/resources/clientSideAccessTokens/client/Client.d.ts +5 -1
  373. package/dist/api/resources/clientSideAccessTokens/client/Client.js +8 -4
  374. package/dist/api/resources/clientSideAccessTokens/client/requests/ClientSideAccessTokensListClientSideAccessTokensRequest.d.ts +5 -1
  375. package/dist/api/resources/folders/client/Client.d.ts +11 -2
  376. package/dist/api/resources/folders/client/Client.js +19 -10
  377. package/dist/api/resources/folders/client/requests/FoldersListRequest.d.ts +8 -1
  378. package/dist/api/resources/folders/client/requests/RetrieveMetadataRequest.d.ts +3 -1
  379. package/dist/api/resources/folders/resources/agents/client/Client.d.ts +7 -1
  380. package/dist/api/resources/folders/resources/agents/client/Client.js +8 -2
  381. package/dist/api/resources/folders/resources/agents/client/requests/AgentsListRequest.d.ts +7 -1
  382. package/dist/api/resources/folders/resources/files/client/Client.d.ts +12 -2
  383. package/dist/api/resources/folders/resources/files/client/Client.js +15 -5
  384. package/dist/api/resources/folders/resources/files/client/requests/BodyUploadFileToFolder.d.ts +4 -1
  385. package/dist/api/resources/folders/resources/files/client/requests/FilesListRequest.d.ts +8 -1
  386. package/dist/api/resources/folders/resources/passages/client/Client.d.ts +7 -1
  387. package/dist/api/resources/folders/resources/passages/client/Client.js +8 -2
  388. package/dist/api/resources/folders/resources/passages/client/requests/PassagesListRequest.d.ts +7 -1
  389. package/dist/api/resources/groups/client/Client.d.ts +9 -1
  390. package/dist/api/resources/groups/client/Client.js +15 -7
  391. package/dist/api/resources/groups/client/requests/GroupsListRequest.d.ts +9 -1
  392. package/dist/api/resources/groups/resources/messages/client/Client.d.ts +10 -1
  393. package/dist/api/resources/groups/resources/messages/client/Client.js +15 -6
  394. package/dist/api/resources/groups/resources/messages/client/requests/MessagesListRequest.d.ts +10 -1
  395. package/dist/api/resources/health/client/Client.js +1 -1
  396. package/dist/api/resources/identities/client/Client.d.ts +11 -1
  397. package/dist/api/resources/identities/client/Client.js +18 -8
  398. package/dist/api/resources/identities/client/requests/IdentitiesListRequest.d.ts +11 -1
  399. package/dist/api/resources/identities/resources/agents/client/Client.d.ts +7 -1
  400. package/dist/api/resources/identities/resources/agents/client/Client.js +8 -2
  401. package/dist/api/resources/identities/resources/agents/client/requests/AgentsListRequest.d.ts +7 -1
  402. package/dist/api/resources/identities/resources/blocks/client/Client.d.ts +7 -1
  403. package/dist/api/resources/identities/resources/blocks/client/Client.js +8 -2
  404. package/dist/api/resources/identities/resources/blocks/client/requests/BlocksListRequest.d.ts +7 -1
  405. package/dist/api/resources/identities/resources/properties/client/Client.js +1 -1
  406. package/dist/api/resources/index.d.ts +2 -1
  407. package/dist/api/resources/index.js +3 -2
  408. package/dist/api/resources/jobs/client/Client.d.ts +17 -2
  409. package/dist/api/resources/jobs/client/Client.js +32 -9
  410. package/dist/api/resources/jobs/client/requests/JobsListActiveRequest.d.ts +7 -1
  411. package/dist/api/resources/jobs/client/requests/JobsListRequest.d.ts +23 -5
  412. package/dist/api/resources/jobs/index.d.ts +1 -0
  413. package/dist/api/resources/jobs/index.js +1 -0
  414. package/dist/api/resources/jobs/types/JobsListRequestOrder.d.ts +11 -0
  415. package/dist/api/resources/jobs/types/JobsListRequestOrder.js +10 -0
  416. package/dist/api/resources/jobs/types/index.d.ts +1 -0
  417. package/dist/api/resources/jobs/types/index.js +17 -0
  418. package/dist/api/resources/models/client/Client.d.ts +4 -1
  419. package/dist/api/resources/models/client/Client.js +6 -3
  420. package/dist/api/resources/models/client/requests/ModelsListRequest.d.ts +4 -1
  421. package/dist/api/resources/models/resources/embeddings/client/Client.js +1 -1
  422. package/dist/api/resources/projects/client/Client.d.ts +5 -1
  423. package/dist/api/resources/projects/client/Client.js +6 -2
  424. package/dist/api/resources/projects/client/requests/ProjectsListRequest.d.ts +5 -1
  425. package/dist/api/resources/providers/client/Client.d.ts +22 -1
  426. package/dist/api/resources/providers/client/Client.js +82 -7
  427. package/dist/api/resources/providers/client/requests/ProvidersListRequest.d.ts +9 -1
  428. package/dist/api/resources/runs/client/Client.d.ts +29 -2
  429. package/dist/api/resources/runs/client/Client.js +117 -11
  430. package/dist/api/resources/runs/client/requests/RunsListActiveRequest.d.ts +4 -1
  431. package/dist/api/resources/runs/client/requests/RunsListRequest.d.ts +29 -6
  432. package/dist/api/resources/runs/resources/index.d.ts +2 -1
  433. package/dist/api/resources/runs/resources/index.js +3 -2
  434. package/dist/api/resources/runs/resources/messages/client/Client.d.ts +7 -1
  435. package/dist/api/resources/runs/resources/messages/client/Client.js +12 -3
  436. package/dist/api/resources/runs/resources/messages/client/requests/MessagesListRequest.d.ts +11 -1
  437. package/dist/api/resources/runs/resources/steps/client/Client.d.ts +8 -12
  438. package/dist/api/resources/runs/resources/steps/client/Client.js +17 -16
  439. package/dist/api/resources/runs/resources/steps/client/requests/StepsListRequest.d.ts +14 -3
  440. package/dist/api/resources/runs/resources/steps/index.d.ts +1 -0
  441. package/dist/api/resources/runs/resources/steps/index.js +1 -0
  442. package/dist/api/resources/runs/resources/steps/types/StepsListRequestOrder.d.ts +11 -0
  443. package/dist/api/resources/runs/resources/steps/types/StepsListRequestOrder.js +10 -0
  444. package/dist/api/resources/runs/resources/steps/types/index.d.ts +1 -0
  445. package/dist/api/resources/runs/resources/steps/types/index.js +17 -0
  446. package/dist/api/resources/runs/resources/usage/client/Client.js +1 -1
  447. package/dist/api/resources/runs/types/RunsListRequestOrder.d.ts +11 -0
  448. package/dist/api/resources/runs/types/RunsListRequestOrder.js +10 -0
  449. package/dist/api/resources/runs/types/index.d.ts +1 -0
  450. package/dist/api/resources/runs/types/index.js +1 -0
  451. package/dist/api/resources/sources/client/Client.d.ts +6 -2
  452. package/dist/api/resources/sources/client/Client.js +16 -12
  453. package/dist/api/resources/sources/client/requests/GetFileMetadataRequest.d.ts +3 -1
  454. package/dist/api/resources/sources/client/requests/GetSourcesMetadataRequest.d.ts +3 -1
  455. package/dist/api/resources/sources/resources/files/client/Client.d.ts +10 -2
  456. package/dist/api/resources/sources/resources/files/client/Client.js +13 -5
  457. package/dist/api/resources/sources/resources/files/client/requests/BodyUploadFileToSource.d.ts +4 -1
  458. package/dist/api/resources/sources/resources/files/client/requests/FilesListRequest.d.ts +6 -1
  459. package/dist/api/resources/sources/resources/passages/client/Client.d.ts +5 -1
  460. package/dist/api/resources/sources/resources/passages/client/Client.js +6 -2
  461. package/dist/api/resources/sources/resources/passages/client/requests/PassagesListRequest.d.ts +5 -1
  462. package/dist/api/resources/steps/client/Client.d.ts +14 -1
  463. package/dist/api/resources/steps/client/Client.js +16 -3
  464. package/dist/api/resources/steps/client/requests/StepsListRequest.d.ts +14 -1
  465. package/dist/api/resources/steps/resources/feedback/client/Client.js +1 -1
  466. package/dist/api/resources/steps/resources/messages/client/Client.d.ts +7 -1
  467. package/dist/api/resources/steps/resources/messages/client/Client.js +8 -2
  468. package/dist/api/resources/steps/resources/messages/client/requests/MessagesListRequest.d.ts +7 -1
  469. package/dist/api/resources/steps/resources/metrics/client/Client.js +1 -1
  470. package/dist/api/resources/steps/resources/trace/client/Client.js +1 -1
  471. package/dist/api/resources/tags/client/Client.d.ts +9 -1
  472. package/dist/api/resources/tags/client/Client.js +10 -2
  473. package/dist/api/resources/tags/client/requests/TagsListRequest.d.ts +9 -1
  474. package/dist/api/resources/telemetry/client/Client.js +1 -1
  475. package/dist/api/resources/templates/client/Client.d.ts +16 -2
  476. package/dist/api/resources/templates/client/Client.js +29 -15
  477. package/dist/api/resources/templates/client/requests/TemplatesListRequest.d.ts +12 -1
  478. package/dist/api/resources/templates/client/requests/TemplatesListTemplateVersionsRequest.d.ts +4 -1
  479. package/dist/api/resources/templates/resources/agents/client/Client.js +1 -1
  480. package/dist/api/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemSecretsItem.d.ts +1 -0
  481. package/dist/api/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemSecretsItemValueEnc.d.ts +5 -0
  482. package/dist/api/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemSecretsItemValueEnc.js +5 -0
  483. package/dist/api/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemSecretsItemValueEncItem.d.ts +4 -0
  484. package/dist/api/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemSecretsItemValueEncItem.js +5 -0
  485. package/dist/api/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolExecEnvironmentVariablesItem.d.ts +1 -0
  486. package/dist/api/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolExecEnvironmentVariablesItemValueEnc.d.ts +5 -0
  487. package/dist/api/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolExecEnvironmentVariablesItemValueEnc.js +5 -0
  488. package/dist/api/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolExecEnvironmentVariablesItemValueEncItem.d.ts +4 -0
  489. package/dist/api/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolExecEnvironmentVariablesItemValueEncItem.js +5 -0
  490. package/dist/api/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolsItemToolType.d.ts +2 -2
  491. package/dist/api/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolsItemToolType.js +1 -1
  492. package/dist/api/resources/templates/types/index.d.ts +4 -0
  493. package/dist/api/resources/templates/types/index.js +4 -0
  494. package/dist/api/resources/tools/client/Client.d.ts +16 -40
  495. package/dist/api/resources/tools/client/Client.js +33 -246
  496. package/dist/api/resources/tools/client/requests/ToolsCountRequest.d.ts +6 -1
  497. package/dist/api/resources/tools/client/requests/ToolsListRequest.d.ts +10 -1
  498. package/dist/api/resources/voice/client/Client.js +1 -1
  499. package/dist/api/types/AgentEnvironmentVariable.d.ts +2 -0
  500. package/dist/api/types/ApprovalCreate.d.ts +5 -2
  501. package/dist/api/types/ApprovalCreateApprovalsItem.d.ts +5 -0
  502. package/dist/api/types/ApprovalCreateApprovalsItem.js +5 -0
  503. package/dist/api/types/ApprovalResponseMessage.d.ts +5 -2
  504. package/dist/api/types/ApprovalResponseMessageApprovalsItem.d.ts +5 -0
  505. package/dist/api/types/ApprovalResponseMessageApprovalsItem.js +5 -0
  506. package/dist/api/types/ApprovalReturn.d.ts +12 -0
  507. package/dist/api/types/ApprovalReturn.js +5 -0
  508. package/dist/api/types/InternalTemplateAgentCreate.d.ts +2 -2
  509. package/dist/api/types/LettaSchemasAgentFileAgentSchema.d.ts +2 -2
  510. package/dist/api/types/LettaSchemasAgentFileMessageSchema.d.ts +7 -1
  511. package/dist/api/types/LettaSchemasLettaMessageToolReturn.d.ts +12 -0
  512. package/dist/api/types/LettaSchemasLettaMessageToolReturn.js +5 -0
  513. package/dist/api/types/LettaSchemasLettaMessageToolReturnStatus.d.ts +8 -0
  514. package/dist/api/types/LettaSchemasLettaMessageToolReturnStatus.js +10 -0
  515. package/{api/types/ToolReturn.d.ts → dist/api/types/LettaSchemasMessageToolReturn.d.ts} +5 -2
  516. package/dist/api/types/LettaSchemasMessageToolReturn.js +5 -0
  517. package/dist/api/types/{ToolReturnStatus.d.ts → LettaSchemasMessageToolReturnStatus.d.ts} +2 -2
  518. package/dist/api/types/{ToolReturnStatus.js → LettaSchemasMessageToolReturnStatus.js} +2 -2
  519. package/dist/api/types/Message.d.ts +3 -1
  520. package/dist/api/types/MessageApprovalsItem.d.ts +5 -0
  521. package/dist/api/types/MessageApprovalsItem.js +5 -0
  522. package/dist/api/types/OmittedReasoningContent.d.ts +2 -0
  523. package/dist/api/types/Provider.d.ts +4 -0
  524. package/dist/api/types/RunMetrics.d.ts +21 -0
  525. package/dist/api/types/RunMetrics.js +5 -0
  526. package/dist/api/types/SandboxEnvironmentVariable.d.ts +2 -0
  527. package/dist/api/types/TextContent.d.ts +2 -0
  528. package/dist/api/types/ToolCallContent.d.ts +2 -0
  529. package/dist/api/types/ToolCallMessage.d.ts +1 -0
  530. package/dist/api/types/ToolCallMessageToolCalls.d.ts +5 -0
  531. package/dist/api/types/ToolCallMessageToolCalls.js +5 -0
  532. package/dist/api/types/ToolReturnMessage.d.ts +7 -5
  533. package/dist/api/types/ToolType.d.ts +2 -2
  534. package/dist/api/types/ToolType.js +1 -1
  535. package/dist/api/types/index.d.ts +10 -9
  536. package/dist/api/types/index.js +10 -9
  537. package/dist/serialization/resources/agents/resources/blocks/index.d.ts +1 -0
  538. package/dist/serialization/resources/agents/resources/blocks/index.js +1 -0
  539. package/dist/serialization/resources/agents/resources/blocks/types/BlocksListRequestOrder.d.ts +10 -0
  540. package/dist/serialization/resources/agents/resources/blocks/types/BlocksListRequestOrder.js +41 -0
  541. package/dist/serialization/resources/agents/resources/blocks/types/index.d.ts +1 -0
  542. package/dist/serialization/resources/agents/resources/blocks/types/index.js +17 -0
  543. package/dist/serialization/resources/agents/resources/files/index.d.ts +1 -0
  544. package/dist/serialization/resources/agents/resources/files/index.js +1 -0
  545. package/dist/serialization/resources/agents/resources/files/types/FilesListRequestOrder.d.ts +10 -0
  546. package/dist/serialization/resources/agents/resources/files/types/FilesListRequestOrder.js +41 -0
  547. package/dist/serialization/resources/agents/resources/files/types/index.d.ts +1 -0
  548. package/dist/serialization/resources/agents/resources/files/types/index.js +17 -0
  549. package/dist/serialization/resources/agents/resources/folders/index.d.ts +1 -0
  550. package/dist/serialization/resources/agents/resources/folders/index.js +1 -0
  551. package/dist/serialization/resources/agents/resources/folders/types/FoldersListRequestOrder.d.ts +10 -0
  552. package/dist/serialization/resources/agents/resources/folders/types/FoldersListRequestOrder.js +41 -0
  553. package/dist/serialization/resources/agents/resources/folders/types/index.d.ts +1 -0
  554. package/dist/serialization/resources/agents/resources/folders/types/index.js +17 -0
  555. package/dist/serialization/resources/agents/resources/groups/index.d.ts +1 -0
  556. package/dist/serialization/resources/agents/resources/groups/index.js +1 -0
  557. package/dist/serialization/resources/agents/resources/groups/types/GroupsListRequestOrder.d.ts +10 -0
  558. package/dist/serialization/resources/agents/resources/groups/types/GroupsListRequestOrder.js +41 -0
  559. package/dist/serialization/resources/agents/resources/groups/types/index.d.ts +1 -0
  560. package/dist/serialization/resources/agents/resources/groups/types/index.js +17 -0
  561. package/dist/serialization/resources/agents/resources/index.d.ts +12 -6
  562. package/dist/serialization/resources/agents/resources/index.js +13 -7
  563. package/dist/serialization/resources/agents/resources/messages/types/MessagesListRequestOrder.d.ts +10 -0
  564. package/dist/serialization/resources/agents/resources/messages/types/MessagesListRequestOrder.js +41 -0
  565. package/dist/serialization/resources/agents/resources/messages/types/index.d.ts +1 -0
  566. package/dist/serialization/resources/agents/resources/messages/types/index.js +1 -0
  567. package/dist/serialization/resources/agents/resources/sources/index.d.ts +1 -0
  568. package/dist/serialization/resources/agents/resources/sources/index.js +1 -0
  569. package/dist/serialization/resources/agents/resources/sources/types/SourcesListRequestOrder.d.ts +10 -0
  570. package/dist/serialization/resources/agents/resources/sources/types/SourcesListRequestOrder.js +41 -0
  571. package/dist/serialization/resources/agents/resources/sources/types/index.d.ts +1 -0
  572. package/dist/serialization/resources/agents/resources/sources/types/index.js +17 -0
  573. package/dist/serialization/resources/agents/resources/tools/index.d.ts +1 -0
  574. package/dist/serialization/resources/agents/resources/tools/index.js +1 -0
  575. package/dist/serialization/resources/agents/resources/tools/types/ToolsListRequestOrder.d.ts +10 -0
  576. package/dist/serialization/resources/agents/resources/tools/types/ToolsListRequestOrder.js +41 -0
  577. package/dist/serialization/resources/agents/resources/tools/types/index.d.ts +1 -0
  578. package/dist/serialization/resources/agents/resources/tools/types/index.js +17 -0
  579. package/dist/serialization/resources/index.d.ts +2 -1
  580. package/dist/serialization/resources/index.js +3 -2
  581. package/dist/serialization/resources/jobs/index.d.ts +1 -0
  582. package/dist/serialization/resources/jobs/index.js +1 -0
  583. package/dist/serialization/resources/jobs/types/JobsListRequestOrder.d.ts +10 -0
  584. package/dist/serialization/resources/{tools/client/listComposioApps.js → jobs/types/JobsListRequestOrder.js} +2 -3
  585. package/dist/serialization/resources/jobs/types/index.d.ts +1 -0
  586. package/dist/serialization/resources/jobs/types/index.js +17 -0
  587. package/dist/serialization/resources/runs/resources/index.d.ts +1 -0
  588. package/dist/serialization/resources/runs/resources/index.js +1 -0
  589. package/dist/serialization/resources/runs/resources/steps/index.d.ts +1 -0
  590. package/dist/serialization/resources/runs/resources/steps/index.js +1 -0
  591. package/dist/serialization/resources/runs/resources/steps/types/StepsListRequestOrder.d.ts +10 -0
  592. package/dist/serialization/resources/runs/resources/steps/types/StepsListRequestOrder.js +41 -0
  593. package/dist/serialization/resources/runs/resources/steps/types/index.d.ts +1 -0
  594. package/dist/serialization/resources/runs/resources/steps/types/index.js +17 -0
  595. package/dist/serialization/resources/runs/types/RunsListRequestOrder.d.ts +10 -0
  596. package/{serialization/resources/tools/client/listComposioApps.js → dist/serialization/resources/runs/types/RunsListRequestOrder.js} +2 -3
  597. package/dist/serialization/resources/runs/types/index.d.ts +1 -0
  598. package/dist/serialization/resources/runs/types/index.js +1 -0
  599. package/dist/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemSecretsItem.d.ts +2 -0
  600. package/dist/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemSecretsItem.js +2 -0
  601. package/dist/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemSecretsItemValueEnc.d.ts +11 -0
  602. package/dist/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemSecretsItemValueEnc.js +47 -0
  603. package/dist/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemSecretsItemValueEncItem.d.ts +10 -0
  604. package/dist/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemSecretsItemValueEncItem.js +41 -0
  605. package/dist/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolExecEnvironmentVariablesItem.d.ts +2 -0
  606. package/dist/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolExecEnvironmentVariablesItem.js +2 -0
  607. package/dist/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolExecEnvironmentVariablesItemValueEnc.d.ts +11 -0
  608. package/dist/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolExecEnvironmentVariablesItemValueEnc.js +47 -0
  609. package/dist/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolExecEnvironmentVariablesItemValueEncItem.d.ts +10 -0
  610. package/dist/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolExecEnvironmentVariablesItemValueEncItem.js +41 -0
  611. package/dist/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolsItemToolType.d.ts +1 -1
  612. package/dist/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolsItemToolType.js +1 -1
  613. package/dist/serialization/resources/templates/types/index.d.ts +4 -0
  614. package/dist/serialization/resources/templates/types/index.js +4 -0
  615. package/dist/serialization/resources/tools/client/index.d.ts +0 -2
  616. package/dist/serialization/resources/tools/client/index.js +1 -3
  617. package/dist/serialization/types/AgentEnvironmentVariable.d.ts +1 -0
  618. package/dist/serialization/types/AgentEnvironmentVariable.js +1 -0
  619. package/dist/serialization/types/ApprovalCreate.d.ts +4 -2
  620. package/dist/serialization/types/ApprovalCreate.js +4 -2
  621. package/dist/serialization/types/ApprovalCreateApprovalsItem.d.ts +12 -0
  622. package/dist/serialization/types/ApprovalCreateApprovalsItem.js +43 -0
  623. package/dist/serialization/types/ApprovalResponseMessage.d.ts +4 -2
  624. package/dist/serialization/types/ApprovalResponseMessage.js +4 -2
  625. package/dist/serialization/types/ApprovalResponseMessageApprovalsItem.d.ts +12 -0
  626. package/dist/serialization/types/ApprovalResponseMessageApprovalsItem.js +43 -0
  627. package/dist/serialization/types/ApprovalReturn.d.ts +15 -0
  628. package/dist/serialization/types/ApprovalReturn.js +46 -0
  629. package/dist/serialization/types/LettaSchemasAgentFileMessageSchema.d.ts +5 -2
  630. package/dist/serialization/types/LettaSchemasAgentFileMessageSchema.js +5 -2
  631. package/dist/serialization/types/LettaSchemasLettaMessageToolReturn.d.ts +18 -0
  632. package/dist/serialization/types/{ActionParametersModel.js → LettaSchemasLettaMessageToolReturn.js} +9 -7
  633. package/dist/serialization/types/LettaSchemasLettaMessageToolReturnStatus.d.ts +10 -0
  634. package/dist/serialization/types/LettaSchemasLettaMessageToolReturnStatus.js +41 -0
  635. package/dist/serialization/types/LettaSchemasMessageToolReturn.d.ts +17 -0
  636. package/{serialization/types/ToolReturn.js → dist/serialization/types/LettaSchemasMessageToolReturn.js} +6 -4
  637. package/dist/serialization/types/LettaSchemasMessageToolReturnStatus.d.ts +10 -0
  638. package/{serialization/types/ToolReturnStatus.js → dist/serialization/types/LettaSchemasMessageToolReturnStatus.js} +2 -2
  639. package/dist/serialization/types/Message.d.ts +4 -2
  640. package/dist/serialization/types/Message.js +4 -2
  641. package/dist/serialization/types/MessageApprovalsItem.d.ts +12 -0
  642. package/dist/serialization/types/{ToolReturn.js → MessageApprovalsItem.js} +4 -7
  643. package/dist/serialization/types/OmittedReasoningContent.d.ts +1 -0
  644. package/dist/serialization/types/OmittedReasoningContent.js +1 -0
  645. package/dist/serialization/types/Provider.d.ts +2 -0
  646. package/dist/serialization/types/Provider.js +2 -0
  647. package/dist/serialization/types/RunMetrics.d.ts +19 -0
  648. package/dist/serialization/types/{AuthSchemeField.js → RunMetrics.js} +10 -10
  649. package/dist/serialization/types/SandboxEnvironmentVariable.d.ts +1 -0
  650. package/dist/serialization/types/SandboxEnvironmentVariable.js +1 -0
  651. package/dist/serialization/types/TextContent.d.ts +1 -0
  652. package/dist/serialization/types/TextContent.js +1 -0
  653. package/dist/serialization/types/ToolCallContent.d.ts +1 -0
  654. package/dist/serialization/types/ToolCallContent.js +1 -0
  655. package/dist/serialization/types/ToolCallMessage.d.ts +2 -0
  656. package/dist/serialization/types/ToolCallMessage.js +2 -0
  657. package/dist/serialization/types/ToolCallMessageToolCalls.d.ts +12 -0
  658. package/{serialization/types/AppAuthSchemeAuthMode.js → dist/serialization/types/ToolCallMessageToolCalls.js} +4 -13
  659. package/dist/serialization/types/ToolReturnMessage.d.ts +2 -0
  660. package/dist/serialization/types/ToolReturnMessage.js +2 -0
  661. package/dist/serialization/types/ToolType.d.ts +1 -1
  662. package/dist/serialization/types/ToolType.js +1 -1
  663. package/dist/serialization/types/index.d.ts +10 -9
  664. package/dist/serialization/types/index.js +10 -9
  665. package/dist/version.d.ts +1 -1
  666. package/dist/version.js +1 -1
  667. package/package.json +1 -1
  668. package/reference.md +538 -246
  669. package/serialization/resources/agents/resources/blocks/index.d.ts +1 -0
  670. package/serialization/resources/agents/resources/blocks/index.js +1 -0
  671. package/serialization/resources/agents/resources/blocks/types/BlocksListRequestOrder.d.ts +10 -0
  672. package/serialization/resources/agents/resources/blocks/types/BlocksListRequestOrder.js +41 -0
  673. package/serialization/resources/agents/resources/blocks/types/index.d.ts +1 -0
  674. package/serialization/resources/agents/resources/blocks/types/index.js +17 -0
  675. package/serialization/resources/agents/resources/files/index.d.ts +1 -0
  676. package/serialization/resources/agents/resources/files/index.js +1 -0
  677. package/serialization/resources/agents/resources/files/types/FilesListRequestOrder.d.ts +10 -0
  678. package/serialization/resources/agents/resources/files/types/FilesListRequestOrder.js +41 -0
  679. package/serialization/resources/agents/resources/files/types/index.d.ts +1 -0
  680. package/serialization/resources/agents/resources/files/types/index.js +17 -0
  681. package/serialization/resources/agents/resources/folders/index.d.ts +1 -0
  682. package/serialization/resources/agents/resources/folders/index.js +1 -0
  683. package/serialization/resources/agents/resources/folders/types/FoldersListRequestOrder.d.ts +10 -0
  684. package/serialization/resources/agents/resources/folders/types/FoldersListRequestOrder.js +41 -0
  685. package/serialization/resources/agents/resources/folders/types/index.d.ts +1 -0
  686. package/serialization/resources/agents/resources/folders/types/index.js +17 -0
  687. package/serialization/resources/agents/resources/groups/index.d.ts +1 -0
  688. package/serialization/resources/agents/resources/groups/index.js +1 -0
  689. package/serialization/resources/agents/resources/groups/types/GroupsListRequestOrder.d.ts +10 -0
  690. package/serialization/resources/agents/resources/groups/types/GroupsListRequestOrder.js +41 -0
  691. package/serialization/resources/agents/resources/groups/types/index.d.ts +1 -0
  692. package/serialization/resources/agents/resources/groups/types/index.js +17 -0
  693. package/serialization/resources/agents/resources/index.d.ts +12 -6
  694. package/serialization/resources/agents/resources/index.js +13 -7
  695. package/serialization/resources/agents/resources/messages/types/MessagesListRequestOrder.d.ts +10 -0
  696. package/serialization/resources/agents/resources/messages/types/MessagesListRequestOrder.js +41 -0
  697. package/serialization/resources/agents/resources/messages/types/index.d.ts +1 -0
  698. package/serialization/resources/agents/resources/messages/types/index.js +1 -0
  699. package/serialization/resources/agents/resources/sources/index.d.ts +1 -0
  700. package/serialization/resources/agents/resources/sources/index.js +1 -0
  701. package/serialization/resources/agents/resources/sources/types/SourcesListRequestOrder.d.ts +10 -0
  702. package/serialization/resources/agents/resources/sources/types/SourcesListRequestOrder.js +41 -0
  703. package/serialization/resources/agents/resources/sources/types/index.d.ts +1 -0
  704. package/serialization/resources/agents/resources/sources/types/index.js +17 -0
  705. package/serialization/resources/agents/resources/tools/index.d.ts +1 -0
  706. package/serialization/resources/agents/resources/tools/index.js +1 -0
  707. package/serialization/resources/agents/resources/tools/types/ToolsListRequestOrder.d.ts +10 -0
  708. package/serialization/resources/agents/resources/tools/types/ToolsListRequestOrder.js +41 -0
  709. package/serialization/resources/agents/resources/tools/types/index.d.ts +1 -0
  710. package/serialization/resources/agents/resources/tools/types/index.js +17 -0
  711. package/serialization/resources/index.d.ts +2 -1
  712. package/serialization/resources/index.js +3 -2
  713. package/serialization/resources/jobs/index.d.ts +1 -0
  714. package/serialization/resources/jobs/index.js +1 -0
  715. package/serialization/resources/jobs/types/JobsListRequestOrder.d.ts +10 -0
  716. package/{dist/serialization/resources/tools/client/listComposioActionsByApp.js → serialization/resources/jobs/types/JobsListRequestOrder.js} +2 -3
  717. package/serialization/resources/jobs/types/index.d.ts +1 -0
  718. package/serialization/resources/jobs/types/index.js +17 -0
  719. package/serialization/resources/runs/resources/index.d.ts +1 -0
  720. package/serialization/resources/runs/resources/index.js +1 -0
  721. package/serialization/resources/runs/resources/steps/index.d.ts +1 -0
  722. package/serialization/resources/runs/resources/steps/index.js +1 -0
  723. package/serialization/resources/runs/resources/steps/types/StepsListRequestOrder.d.ts +10 -0
  724. package/serialization/resources/runs/resources/steps/types/StepsListRequestOrder.js +41 -0
  725. package/serialization/resources/runs/resources/steps/types/index.d.ts +1 -0
  726. package/serialization/resources/runs/resources/steps/types/index.js +17 -0
  727. package/serialization/resources/runs/types/RunsListRequestOrder.d.ts +10 -0
  728. package/serialization/resources/{tools/client/listComposioActionsByApp.js → runs/types/RunsListRequestOrder.js} +2 -3
  729. package/serialization/resources/runs/types/index.d.ts +1 -0
  730. package/serialization/resources/runs/types/index.js +1 -0
  731. package/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemSecretsItem.d.ts +2 -0
  732. package/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemSecretsItem.js +2 -0
  733. package/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemSecretsItemValueEnc.d.ts +11 -0
  734. package/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemSecretsItemValueEnc.js +47 -0
  735. package/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemSecretsItemValueEncItem.d.ts +10 -0
  736. package/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemSecretsItemValueEncItem.js +41 -0
  737. package/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolExecEnvironmentVariablesItem.d.ts +2 -0
  738. package/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolExecEnvironmentVariablesItem.js +2 -0
  739. package/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolExecEnvironmentVariablesItemValueEnc.d.ts +11 -0
  740. package/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolExecEnvironmentVariablesItemValueEnc.js +47 -0
  741. package/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolExecEnvironmentVariablesItemValueEncItem.d.ts +10 -0
  742. package/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolExecEnvironmentVariablesItemValueEncItem.js +41 -0
  743. package/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolsItemToolType.d.ts +1 -1
  744. package/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolsItemToolType.js +1 -1
  745. package/serialization/resources/templates/types/index.d.ts +4 -0
  746. package/serialization/resources/templates/types/index.js +4 -0
  747. package/serialization/resources/tools/client/index.d.ts +0 -2
  748. package/serialization/resources/tools/client/index.js +1 -3
  749. package/serialization/types/AgentEnvironmentVariable.d.ts +1 -0
  750. package/serialization/types/AgentEnvironmentVariable.js +1 -0
  751. package/serialization/types/ApprovalCreate.d.ts +4 -2
  752. package/serialization/types/ApprovalCreate.js +4 -2
  753. package/serialization/types/ApprovalCreateApprovalsItem.d.ts +12 -0
  754. package/serialization/types/ApprovalCreateApprovalsItem.js +43 -0
  755. package/serialization/types/ApprovalResponseMessage.d.ts +4 -2
  756. package/serialization/types/ApprovalResponseMessage.js +4 -2
  757. package/serialization/types/ApprovalResponseMessageApprovalsItem.d.ts +12 -0
  758. package/serialization/types/ApprovalResponseMessageApprovalsItem.js +43 -0
  759. package/serialization/types/ApprovalReturn.d.ts +15 -0
  760. package/serialization/types/ApprovalReturn.js +46 -0
  761. package/serialization/types/LettaSchemasAgentFileMessageSchema.d.ts +5 -2
  762. package/serialization/types/LettaSchemasAgentFileMessageSchema.js +5 -2
  763. package/serialization/types/LettaSchemasLettaMessageToolReturn.d.ts +18 -0
  764. package/serialization/types/LettaSchemasLettaMessageToolReturn.js +49 -0
  765. package/serialization/types/LettaSchemasLettaMessageToolReturnStatus.d.ts +10 -0
  766. package/serialization/types/LettaSchemasLettaMessageToolReturnStatus.js +41 -0
  767. package/serialization/types/LettaSchemasMessageToolReturn.d.ts +17 -0
  768. package/{dist/serialization/types/ActionResponseModel.js → serialization/types/LettaSchemasMessageToolReturn.js} +8 -7
  769. package/serialization/types/LettaSchemasMessageToolReturnStatus.d.ts +10 -0
  770. package/{dist/serialization/types/ToolReturnStatus.js → serialization/types/LettaSchemasMessageToolReturnStatus.js} +2 -2
  771. package/serialization/types/Message.d.ts +4 -2
  772. package/serialization/types/Message.js +4 -2
  773. package/serialization/types/MessageApprovalsItem.d.ts +12 -0
  774. package/serialization/types/MessageApprovalsItem.js +43 -0
  775. package/serialization/types/OmittedReasoningContent.d.ts +1 -0
  776. package/serialization/types/OmittedReasoningContent.js +1 -0
  777. package/serialization/types/Provider.d.ts +2 -0
  778. package/serialization/types/Provider.js +2 -0
  779. package/serialization/types/RunMetrics.d.ts +19 -0
  780. package/serialization/types/RunMetrics.js +50 -0
  781. package/serialization/types/SandboxEnvironmentVariable.d.ts +1 -0
  782. package/serialization/types/SandboxEnvironmentVariable.js +1 -0
  783. package/serialization/types/TextContent.d.ts +1 -0
  784. package/serialization/types/TextContent.js +1 -0
  785. package/serialization/types/ToolCallContent.d.ts +1 -0
  786. package/serialization/types/ToolCallContent.js +1 -0
  787. package/serialization/types/ToolCallMessage.d.ts +2 -0
  788. package/serialization/types/ToolCallMessage.js +2 -0
  789. package/serialization/types/ToolCallMessageToolCalls.d.ts +12 -0
  790. package/{dist/serialization/types/AppAuthSchemeAuthMode.js → serialization/types/ToolCallMessageToolCalls.js} +4 -13
  791. package/serialization/types/ToolReturnMessage.d.ts +2 -0
  792. package/serialization/types/ToolReturnMessage.js +2 -0
  793. package/serialization/types/ToolType.d.ts +1 -1
  794. package/serialization/types/ToolType.js +1 -1
  795. package/serialization/types/index.d.ts +10 -9
  796. package/serialization/types/index.js +10 -9
  797. package/version.d.ts +1 -1
  798. package/version.js +1 -1
  799. package/api/types/ActionModel.d.ts +0 -21
  800. package/api/types/ActionParametersModel.d.ts +0 -13
  801. package/api/types/ActionResponseModel.d.ts +0 -13
  802. package/api/types/AppAuthScheme.d.ts +0 -19
  803. package/api/types/AppAuthSchemeAuthMode.d.ts +0 -16
  804. package/api/types/AppAuthSchemeAuthMode.js +0 -18
  805. package/api/types/AppModel.d.ts +0 -25
  806. package/api/types/AuthSchemeField.d.ts +0 -16
  807. package/dist/api/types/ActionModel.d.ts +0 -21
  808. package/dist/api/types/ActionParametersModel.d.ts +0 -13
  809. package/dist/api/types/ActionResponseModel.d.ts +0 -13
  810. package/dist/api/types/AppAuthScheme.d.ts +0 -19
  811. package/dist/api/types/AppAuthSchemeAuthMode.d.ts +0 -16
  812. package/dist/api/types/AppAuthSchemeAuthMode.js +0 -18
  813. package/dist/api/types/AppModel.d.ts +0 -25
  814. package/dist/api/types/AuthSchemeField.d.ts +0 -16
  815. package/dist/serialization/resources/tools/client/listComposioActionsByApp.d.ts +0 -11
  816. package/dist/serialization/resources/tools/client/listComposioApps.d.ts +0 -11
  817. package/dist/serialization/types/ActionModel.d.ts +0 -25
  818. package/dist/serialization/types/ActionModel.js +0 -56
  819. package/dist/serialization/types/ActionParametersModel.d.ts +0 -16
  820. package/dist/serialization/types/ActionResponseModel.d.ts +0 -16
  821. package/dist/serialization/types/AppAuthScheme.d.ts +0 -23
  822. package/dist/serialization/types/AppAuthScheme.js +0 -54
  823. package/dist/serialization/types/AppAuthSchemeAuthMode.d.ts +0 -10
  824. package/dist/serialization/types/AppModel.d.ts +0 -28
  825. package/dist/serialization/types/AppModel.js +0 -61
  826. package/dist/serialization/types/AuthSchemeField.d.ts +0 -19
  827. package/dist/serialization/types/ToolReturn.d.ts +0 -15
  828. package/dist/serialization/types/ToolReturnStatus.d.ts +0 -10
  829. package/serialization/resources/tools/client/listComposioActionsByApp.d.ts +0 -11
  830. package/serialization/resources/tools/client/listComposioApps.d.ts +0 -11
  831. package/serialization/types/ActionModel.d.ts +0 -25
  832. package/serialization/types/ActionModel.js +0 -56
  833. package/serialization/types/ActionParametersModel.d.ts +0 -16
  834. package/serialization/types/ActionParametersModel.js +0 -47
  835. package/serialization/types/ActionResponseModel.d.ts +0 -16
  836. package/serialization/types/ActionResponseModel.js +0 -47
  837. package/serialization/types/AppAuthScheme.d.ts +0 -23
  838. package/serialization/types/AppAuthScheme.js +0 -54
  839. package/serialization/types/AppAuthSchemeAuthMode.d.ts +0 -10
  840. package/serialization/types/AppModel.d.ts +0 -28
  841. package/serialization/types/AppModel.js +0 -61
  842. package/serialization/types/AuthSchemeField.d.ts +0 -19
  843. package/serialization/types/AuthSchemeField.js +0 -50
  844. package/serialization/types/ToolReturn.d.ts +0 -15
  845. package/serialization/types/ToolReturnStatus.d.ts +0 -10
  846. /package/api/{types/ActionModel.js → resources/agents/resources/blocks/client/requests/BlocksListRequest.js} +0 -0
  847. /package/api/{types/ActionParametersModel.js → resources/agents/resources/folders/client/requests/FoldersListRequest.js} +0 -0
  848. /package/api/{types/ActionResponseModel.js → resources/agents/resources/sources/client/requests/SourcesListRequest.js} +0 -0
  849. /package/api/{types/AppAuthScheme.js → resources/agents/resources/tools/client/requests/ToolsListRequest.js} +0 -0
  850. /package/api/{types/AppModel.js → resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemSecretsItemValueEnc.js} +0 -0
  851. /package/api/{types/AuthSchemeField.js → resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemSecretsItemValueEncItem.js} +0 -0
  852. /package/api/{types/ToolReturn.js → resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolExecEnvironmentVariablesItemValueEnc.js} +0 -0
  853. /package/{dist/api/types/ActionModel.js → api/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolExecEnvironmentVariablesItemValueEncItem.js} +0 -0
  854. /package/{dist/api/types/ActionParametersModel.js → api/types/ApprovalCreateApprovalsItem.js} +0 -0
  855. /package/{dist/api/types/ActionResponseModel.js → api/types/ApprovalResponseMessageApprovalsItem.js} +0 -0
  856. /package/{dist/api/types/AppAuthScheme.js → api/types/ApprovalReturn.js} +0 -0
  857. /package/{dist/api/types/AppModel.js → api/types/LettaSchemasLettaMessageToolReturn.js} +0 -0
  858. /package/{dist/api/types/AuthSchemeField.js → api/types/LettaSchemasMessageToolReturn.js} +0 -0
  859. /package/{dist/api/types/ToolReturn.js → api/types/MessageApprovalsItem.js} +0 -0
package/reference.md CHANGED
@@ -30,7 +30,14 @@ Get a list of all archives for the current organization with optional filters an
30
30
  <dd>
31
31
 
32
32
  ```typescript
33
- await client.archives.listArchives();
33
+ await client.archives.listArchives({
34
+ before: "before",
35
+ after: "after",
36
+ limit: 1,
37
+ order: "asc",
38
+ name: "name",
39
+ agentId: "agent_id",
40
+ });
34
41
  ```
35
42
 
36
43
  </dd>
@@ -428,7 +435,12 @@ Get a count of all tools available to agents belonging to the org of the user.
428
435
  <dd>
429
436
 
430
437
  ```typescript
431
- await client.tools.count();
438
+ await client.tools.count({
439
+ name: "name",
440
+ search: "search",
441
+ returnOnlyLettaTools: true,
442
+ excludeLettaTools: true,
443
+ });
432
444
  ```
433
445
 
434
446
  </dd>
@@ -491,7 +503,16 @@ Get a list of all tools available to agents.
491
503
  <dd>
492
504
 
493
505
  ```typescript
494
- await client.tools.list();
506
+ await client.tools.list({
507
+ before: "before",
508
+ after: "after",
509
+ limit: 1,
510
+ order: "asc",
511
+ orderBy: "created_at",
512
+ name: "name",
513
+ search: "search",
514
+ returnOnlyLettaTools: true,
515
+ });
495
516
  ```
496
517
 
497
518
  </dd>
@@ -779,187 +800,6 @@ await client.tools.runToolFromSource({
779
800
  </dl>
780
801
  </details>
781
802
 
782
- <details><summary><code>client.tools.<a href="/src/api/resources/tools/client/Client.ts">listComposioApps</a>() -> Letta.AppModel[]</code></summary>
783
- <dl>
784
- <dd>
785
-
786
- #### 📝 Description
787
-
788
- <dl>
789
- <dd>
790
-
791
- <dl>
792
- <dd>
793
-
794
- Get a list of all Composio apps
795
-
796
- </dd>
797
- </dl>
798
- </dd>
799
- </dl>
800
-
801
- #### 🔌 Usage
802
-
803
- <dl>
804
- <dd>
805
-
806
- <dl>
807
- <dd>
808
-
809
- ```typescript
810
- await client.tools.listComposioApps();
811
- ```
812
-
813
- </dd>
814
- </dl>
815
- </dd>
816
- </dl>
817
-
818
- #### ⚙️ Parameters
819
-
820
- <dl>
821
- <dd>
822
-
823
- <dl>
824
- <dd>
825
-
826
- **requestOptions:** `Tools.RequestOptions`
827
-
828
- </dd>
829
- </dl>
830
- </dd>
831
- </dl>
832
-
833
- </dd>
834
- </dl>
835
- </details>
836
-
837
- <details><summary><code>client.tools.<a href="/src/api/resources/tools/client/Client.ts">listComposioActionsByApp</a>(composioAppName) -> Letta.ActionModel[]</code></summary>
838
- <dl>
839
- <dd>
840
-
841
- #### 📝 Description
842
-
843
- <dl>
844
- <dd>
845
-
846
- <dl>
847
- <dd>
848
-
849
- Get a list of all Composio actions for a specific app
850
-
851
- </dd>
852
- </dl>
853
- </dd>
854
- </dl>
855
-
856
- #### 🔌 Usage
857
-
858
- <dl>
859
- <dd>
860
-
861
- <dl>
862
- <dd>
863
-
864
- ```typescript
865
- await client.tools.listComposioActionsByApp("composio_app_name");
866
- ```
867
-
868
- </dd>
869
- </dl>
870
- </dd>
871
- </dl>
872
-
873
- #### ⚙️ Parameters
874
-
875
- <dl>
876
- <dd>
877
-
878
- <dl>
879
- <dd>
880
-
881
- **composioAppName:** `string`
882
-
883
- </dd>
884
- </dl>
885
-
886
- <dl>
887
- <dd>
888
-
889
- **requestOptions:** `Tools.RequestOptions`
890
-
891
- </dd>
892
- </dl>
893
- </dd>
894
- </dl>
895
-
896
- </dd>
897
- </dl>
898
- </details>
899
-
900
- <details><summary><code>client.tools.<a href="/src/api/resources/tools/client/Client.ts">addComposioTool</a>(composioActionName) -> Letta.Tool</code></summary>
901
- <dl>
902
- <dd>
903
-
904
- #### 📝 Description
905
-
906
- <dl>
907
- <dd>
908
-
909
- <dl>
910
- <dd>
911
-
912
- Add a new Composio tool by action name (Composio refers to each tool as an `Action`)
913
-
914
- </dd>
915
- </dl>
916
- </dd>
917
- </dl>
918
-
919
- #### 🔌 Usage
920
-
921
- <dl>
922
- <dd>
923
-
924
- <dl>
925
- <dd>
926
-
927
- ```typescript
928
- await client.tools.addComposioTool("composio_action_name");
929
- ```
930
-
931
- </dd>
932
- </dl>
933
- </dd>
934
- </dl>
935
-
936
- #### ⚙️ Parameters
937
-
938
- <dl>
939
- <dd>
940
-
941
- <dl>
942
- <dd>
943
-
944
- **composioActionName:** `string`
945
-
946
- </dd>
947
- </dl>
948
-
949
- <dl>
950
- <dd>
951
-
952
- **requestOptions:** `Tools.RequestOptions`
953
-
954
- </dd>
955
- </dl>
956
- </dd>
957
- </dl>
958
-
959
- </dd>
960
- </dl>
961
- </details>
962
-
963
803
  <details><summary><code>client.tools.<a href="/src/api/resources/tools/client/Client.ts">listMcpServers</a>() -> Record<string, Letta.ListMcpServersResponseValue></code></summary>
964
804
  <dl>
965
805
  <dd>
@@ -1840,7 +1680,9 @@ Returns structured metadata including:
1840
1680
  <dd>
1841
1681
 
1842
1682
  ```typescript
1843
- await client.sources.getSourcesMetadata();
1683
+ await client.sources.getSourcesMetadata({
1684
+ includeDetailedPerSourceMetadata: true,
1685
+ });
1844
1686
  ```
1845
1687
 
1846
1688
  </dd>
@@ -2086,7 +1928,9 @@ Retrieve metadata for a specific file by its ID.
2086
1928
  <dd>
2087
1929
 
2088
1930
  ```typescript
2089
- await client.sources.getFileMetadata("source_id", "file_id");
1931
+ await client.sources.getFileMetadata("source_id", "file_id", {
1932
+ includeContent: true,
1933
+ });
2090
1934
  ```
2091
1935
 
2092
1936
  </dd>
@@ -2490,7 +2334,9 @@ Returns structured metadata including:
2490
2334
  <dd>
2491
2335
 
2492
2336
  ```typescript
2493
- await client.folders.retrieveMetadata();
2337
+ await client.folders.retrieveMetadata({
2338
+ includeDetailedPerSourceMetadata: true,
2339
+ });
2494
2340
  ```
2495
2341
 
2496
2342
  </dd>
@@ -2553,7 +2399,14 @@ List all data folders created by a user.
2553
2399
  <dd>
2554
2400
 
2555
2401
  ```typescript
2556
- await client.folders.list();
2402
+ await client.folders.list({
2403
+ before: "before",
2404
+ after: "after",
2405
+ limit: 1,
2406
+ order: "asc",
2407
+ orderBy: "created_at",
2408
+ name: "name",
2409
+ });
2557
2410
  ```
2558
2411
 
2559
2412
  </dd>
@@ -2683,7 +2536,22 @@ Get a list of all agents.
2683
2536
  <dd>
2684
2537
 
2685
2538
  ```typescript
2686
- await client.agents.list();
2539
+ await client.agents.list({
2540
+ name: "name",
2541
+ matchAllTags: true,
2542
+ before: "before",
2543
+ after: "after",
2544
+ limit: 1,
2545
+ queryText: "query_text",
2546
+ projectId: "project_id",
2547
+ templateId: "template_id",
2548
+ baseTemplateId: "base_template_id",
2549
+ identityId: "identity_id",
2550
+ order: "asc",
2551
+ orderBy: "created_at",
2552
+ ascending: true,
2553
+ sortBy: "sort_by",
2554
+ });
2687
2555
  ```
2688
2556
 
2689
2557
  </dd>
@@ -2868,7 +2736,10 @@ Supports two export formats:
2868
2736
  <dd>
2869
2737
 
2870
2738
  ```typescript
2871
- await client.agents.exportFile("agent_id");
2739
+ await client.agents.exportFile("agent_id", {
2740
+ maxSteps: 1,
2741
+ useLegacyFormat: true,
2742
+ });
2872
2743
  ```
2873
2744
 
2874
2745
  </dd>
@@ -2940,7 +2811,9 @@ Returns the IDs of all imported agents.
2940
2811
  <dd>
2941
2812
 
2942
2813
  ```typescript
2943
- await client.agents.importFile(fs.createReadStream("/path/to/your/file"), {});
2814
+ await client.agents.importFile(fs.createReadStream("/path/to/your/file"), {
2815
+ overrideEmbeddingModel: "x-override-embedding-model",
2816
+ });
2944
2817
  ```
2945
2818
 
2946
2819
  </dd>
@@ -3283,7 +3156,15 @@ Fetch all multi-agent groups matching query.
3283
3156
  <dd>
3284
3157
 
3285
3158
  ```typescript
3286
- await client.groups.list();
3159
+ await client.groups.list({
3160
+ managerType: "round_robin",
3161
+ before: "before",
3162
+ after: "after",
3163
+ limit: 1,
3164
+ order: "asc",
3165
+ orderBy: "created_at",
3166
+ projectId: "project_id",
3167
+ });
3287
3168
  ```
3288
3169
 
3289
3170
  </dd>
@@ -3666,7 +3547,17 @@ Get a list of all identities in the database
3666
3547
  <dd>
3667
3548
 
3668
3549
  ```typescript
3669
- await client.identities.list();
3550
+ await client.identities.list({
3551
+ name: "name",
3552
+ projectId: "project_id",
3553
+ identifierKey: "identifier_key",
3554
+ identityType: "org",
3555
+ before: "before",
3556
+ after: "after",
3557
+ limit: 1,
3558
+ order: "asc",
3559
+ orderBy: "created_at",
3560
+ });
3670
3561
  ```
3671
3562
 
3672
3563
  </dd>
@@ -4057,7 +3948,10 @@ List available LLM models using the asynchronous implementation for improved per
4057
3948
  <dd>
4058
3949
 
4059
3950
  ```typescript
4060
- await client.models.list();
3951
+ await client.models.list({
3952
+ providerName: "provider_name",
3953
+ providerType: "anthropic",
3954
+ });
4061
3955
  ```
4062
3956
 
4063
3957
  </dd>
@@ -4147,7 +4041,23 @@ await client.models.listembeddingmodels();
4147
4041
  <dd>
4148
4042
 
4149
4043
  ```typescript
4150
- await client.blocks.list();
4044
+ await client.blocks.list({
4045
+ label: "label",
4046
+ templatesOnly: true,
4047
+ name: "name",
4048
+ identityId: "identity_id",
4049
+ projectId: "project_id",
4050
+ limit: 1,
4051
+ before: "before",
4052
+ after: "after",
4053
+ order: "asc",
4054
+ orderBy: "created_at",
4055
+ labelSearch: "label_search",
4056
+ descriptionSearch: "description_search",
4057
+ valueSearch: "value_search",
4058
+ connectedToAgentsCountGt: 1,
4059
+ connectedToAgentsCountLt: 1,
4060
+ });
4151
4061
  ```
4152
4062
 
4153
4063
  </dd>
@@ -4470,7 +4380,16 @@ List all jobs.
4470
4380
  <dd>
4471
4381
 
4472
4382
  ```typescript
4473
- await client.jobs.list();
4383
+ await client.jobs.list({
4384
+ sourceId: "source_id",
4385
+ before: "before",
4386
+ after: "after",
4387
+ limit: 1,
4388
+ order: "asc",
4389
+ orderBy: "created_at",
4390
+ active: true,
4391
+ ascending: true,
4392
+ });
4474
4393
  ```
4475
4394
 
4476
4395
  </dd>
@@ -4533,7 +4452,13 @@ List all active jobs.
4533
4452
  <dd>
4534
4453
 
4535
4454
  ```typescript
4536
- await client.jobs.listActive();
4455
+ await client.jobs.listActive({
4456
+ sourceId: "source_id",
4457
+ before: "before",
4458
+ after: "after",
4459
+ limit: 1,
4460
+ ascending: true,
4461
+ });
4537
4462
  ```
4538
4463
 
4539
4464
  </dd>
@@ -4832,7 +4757,15 @@ Get a list of all custom providers.
4832
4757
  <dd>
4833
4758
 
4834
4759
  ```typescript
4835
- await client.providers.list();
4760
+ await client.providers.list({
4761
+ before: "before",
4762
+ after: "after",
4763
+ limit: 1,
4764
+ order: "asc",
4765
+ orderBy: "created_at",
4766
+ name: "name",
4767
+ providerType: "anthropic",
4768
+ });
4836
4769
  ```
4837
4770
 
4838
4771
  </dd>
@@ -5199,6 +5132,69 @@ await client.providers.check({
5199
5132
  </dl>
5200
5133
  </details>
5201
5134
 
5135
+ <details><summary><code>client.providers.<a href="/src/api/resources/providers/client/Client.ts">checkExistingProvider</a>(providerId) -> unknown</code></summary>
5136
+ <dl>
5137
+ <dd>
5138
+
5139
+ #### 📝 Description
5140
+
5141
+ <dl>
5142
+ <dd>
5143
+
5144
+ <dl>
5145
+ <dd>
5146
+
5147
+ Verify the API key and additional parameters for an existing provider.
5148
+
5149
+ </dd>
5150
+ </dl>
5151
+ </dd>
5152
+ </dl>
5153
+
5154
+ #### 🔌 Usage
5155
+
5156
+ <dl>
5157
+ <dd>
5158
+
5159
+ <dl>
5160
+ <dd>
5161
+
5162
+ ```typescript
5163
+ await client.providers.checkExistingProvider("provider_id");
5164
+ ```
5165
+
5166
+ </dd>
5167
+ </dl>
5168
+ </dd>
5169
+ </dl>
5170
+
5171
+ #### ⚙️ Parameters
5172
+
5173
+ <dl>
5174
+ <dd>
5175
+
5176
+ <dl>
5177
+ <dd>
5178
+
5179
+ **providerId:** `string`
5180
+
5181
+ </dd>
5182
+ </dl>
5183
+
5184
+ <dl>
5185
+ <dd>
5186
+
5187
+ **requestOptions:** `Providers.RequestOptions`
5188
+
5189
+ </dd>
5190
+ </dl>
5191
+ </dd>
5192
+ </dl>
5193
+
5194
+ </dd>
5195
+ </dl>
5196
+ </details>
5197
+
5202
5198
  ## Runs
5203
5199
 
5204
5200
  <details><summary><code>client.runs.<a href="/src/api/resources/runs/client/Client.ts">list</a>({ ...params }) -> Letta.Run[]</code></summary>
@@ -5229,7 +5225,18 @@ List all runs.
5229
5225
  <dd>
5230
5226
 
5231
5227
  ```typescript
5232
- await client.runs.list();
5228
+ await client.runs.list({
5229
+ agentId: "agent_id",
5230
+ background: true,
5231
+ stopReason: "end_turn",
5232
+ before: "before",
5233
+ after: "after",
5234
+ limit: 1,
5235
+ order: "asc",
5236
+ orderBy: "created_at",
5237
+ active: true,
5238
+ ascending: true,
5239
+ });
5233
5240
  ```
5234
5241
 
5235
5242
  </dd>
@@ -5292,7 +5299,10 @@ List all active runs.
5292
5299
  <dd>
5293
5300
 
5294
5301
  ```typescript
5295
- await client.runs.listActive();
5302
+ await client.runs.listActive({
5303
+ agentId: "agent_id",
5304
+ background: true,
5305
+ });
5296
5306
  ```
5297
5307
 
5298
5308
  </dd>
@@ -5453,6 +5463,69 @@ await client.runs.delete("run_id");
5453
5463
  </dl>
5454
5464
  </details>
5455
5465
 
5466
+ <details><summary><code>client.runs.<a href="/src/api/resources/runs/client/Client.ts">retrieveMetricsForRun</a>(runId) -> Letta.RunMetrics</code></summary>
5467
+ <dl>
5468
+ <dd>
5469
+
5470
+ #### 📝 Description
5471
+
5472
+ <dl>
5473
+ <dd>
5474
+
5475
+ <dl>
5476
+ <dd>
5477
+
5478
+ Get run metrics by run ID.
5479
+
5480
+ </dd>
5481
+ </dl>
5482
+ </dd>
5483
+ </dl>
5484
+
5485
+ #### 🔌 Usage
5486
+
5487
+ <dl>
5488
+ <dd>
5489
+
5490
+ <dl>
5491
+ <dd>
5492
+
5493
+ ```typescript
5494
+ await client.runs.retrieveMetricsForRun("run_id");
5495
+ ```
5496
+
5497
+ </dd>
5498
+ </dl>
5499
+ </dd>
5500
+ </dl>
5501
+
5502
+ #### ⚙️ Parameters
5503
+
5504
+ <dl>
5505
+ <dd>
5506
+
5507
+ <dl>
5508
+ <dd>
5509
+
5510
+ **runId:** `string`
5511
+
5512
+ </dd>
5513
+ </dl>
5514
+
5515
+ <dl>
5516
+ <dd>
5517
+
5518
+ **requestOptions:** `Runs.RequestOptions`
5519
+
5520
+ </dd>
5521
+ </dl>
5522
+ </dd>
5523
+ </dl>
5524
+
5525
+ </dd>
5526
+ </dl>
5527
+ </details>
5528
+
5456
5529
  <details><summary><code>client.runs.<a href="/src/api/resources/runs/client/Client.ts">stream</a>(runId, { ...params }) -> core.Stream<Letta.LettaStreamingResponse></code></summary>
5457
5530
  <dl>
5458
5531
  <dd>
@@ -5542,7 +5615,20 @@ List steps with optional pagination and date filters.
5542
5615
  <dd>
5543
5616
 
5544
5617
  ```typescript
5545
- await client.steps.list();
5618
+ await client.steps.list({
5619
+ before: "before",
5620
+ after: "after",
5621
+ limit: 1,
5622
+ order: "asc",
5623
+ orderBy: "created_at",
5624
+ startDate: "start_date",
5625
+ endDate: "end_date",
5626
+ model: "model",
5627
+ agentId: "agent_id",
5628
+ feedback: "positive",
5629
+ hasFeedback: true,
5630
+ projectId: "project_id",
5631
+ });
5546
5632
  ```
5547
5633
 
5548
5634
  </dd>
@@ -5670,7 +5756,15 @@ Get the list of all agent tags that have been created.
5670
5756
  <dd>
5671
5757
 
5672
5758
  ```typescript
5673
- await client.tags.list();
5759
+ await client.tags.list({
5760
+ before: "before",
5761
+ after: "after",
5762
+ limit: 1,
5763
+ order: "asc",
5764
+ orderBy: "name",
5765
+ queryText: "query_text",
5766
+ name: "name",
5767
+ });
5674
5768
  ```
5675
5769
 
5676
5770
  </dd>
@@ -5802,7 +5896,13 @@ List all batch runs.
5802
5896
  <dd>
5803
5897
 
5804
5898
  ```typescript
5805
- await client.batches.list();
5899
+ await client.batches.list({
5900
+ before: "before",
5901
+ after: "after",
5902
+ limit: 1,
5903
+ order: "asc",
5904
+ orderBy: "created_at",
5905
+ });
5806
5906
  ```
5807
5907
 
5808
5908
  </dd>
@@ -6215,7 +6315,18 @@ List all templates
6215
6315
  <dd>
6216
6316
 
6217
6317
  ```typescript
6218
- await client.templates.list();
6318
+ await client.templates.list({
6319
+ offset: "offset",
6320
+ exact: "exact",
6321
+ limit: "limit",
6322
+ version: "version",
6323
+ templateId: "template_id",
6324
+ name: "name",
6325
+ search: "search",
6326
+ projectSlug: "project_slug",
6327
+ projectId: "project_id",
6328
+ sortBy: "updated_at",
6329
+ });
6219
6330
  ```
6220
6331
 
6221
6332
  </dd>
@@ -6901,7 +7012,10 @@ List all versions of a specific template
6901
7012
  <dd>
6902
7013
 
6903
7014
  ```typescript
6904
- await client.templates.listtemplateversions("project_id", "name");
7015
+ await client.templates.listtemplateversions("project_id", "name", {
7016
+ offset: "offset",
7017
+ limit: "limit",
7018
+ });
6905
7019
  ```
6906
7020
 
6907
7021
  </dd>
@@ -7154,7 +7268,11 @@ List all client side access tokens for the current account. This is only availab
7154
7268
  <dd>
7155
7269
 
7156
7270
  ```typescript
7157
- await client.clientSideAccessTokens.clientSideAccessTokensListClientSideAccessTokens();
7271
+ await client.clientSideAccessTokens.clientSideAccessTokensListClientSideAccessTokens({
7272
+ agentId: "agentId",
7273
+ offset: 1.1,
7274
+ limit: 1.1,
7275
+ });
7158
7276
  ```
7159
7277
 
7160
7278
  </dd>
@@ -7364,7 +7482,11 @@ List all projects
7364
7482
  <dd>
7365
7483
 
7366
7484
  ```typescript
7367
- await client.projects.list();
7485
+ await client.projects.list({
7486
+ name: "name",
7487
+ offset: "offset",
7488
+ limit: "limit",
7489
+ });
7368
7490
  ```
7369
7491
 
7370
7492
  </dd>
@@ -7466,7 +7588,7 @@ await client.agents.context.retrieve("agent_id");
7466
7588
 
7467
7589
  ## Agents Tools
7468
7590
 
7469
- <details><summary><code>client.agents.tools.<a href="/src/api/resources/agents/resources/tools/client/Client.ts">list</a>(agentId) -> Letta.Tool[]</code></summary>
7591
+ <details><summary><code>client.agents.tools.<a href="/src/api/resources/agents/resources/tools/client/Client.ts">list</a>(agentId, { ...params }) -> Letta.Tool[]</code></summary>
7470
7592
  <dl>
7471
7593
  <dd>
7472
7594
 
@@ -7494,7 +7616,13 @@ Get tools from an existing agent
7494
7616
  <dd>
7495
7617
 
7496
7618
  ```typescript
7497
- await client.agents.tools.list("agent_id");
7619
+ await client.agents.tools.list("agent_id", {
7620
+ before: "before",
7621
+ after: "after",
7622
+ limit: 1,
7623
+ order: "asc",
7624
+ orderBy: "created_at",
7625
+ });
7498
7626
  ```
7499
7627
 
7500
7628
  </dd>
@@ -7518,6 +7646,14 @@ await client.agents.tools.list("agent_id");
7518
7646
  <dl>
7519
7647
  <dd>
7520
7648
 
7649
+ **request:** `Letta.agents.ToolsListRequest`
7650
+
7651
+ </dd>
7652
+ </dl>
7653
+
7654
+ <dl>
7655
+ <dd>
7656
+
7521
7657
  **requestOptions:** `Tools.RequestOptions`
7522
7658
 
7523
7659
  </dd>
@@ -7896,7 +8032,7 @@ await client.agents.sources.detach("agent_id", "source_id");
7896
8032
  </dl>
7897
8033
  </details>
7898
8034
 
7899
- <details><summary><code>client.agents.sources.<a href="/src/api/resources/agents/resources/sources/client/Client.ts">list</a>(agentId) -> Letta.Source[]</code></summary>
8035
+ <details><summary><code>client.agents.sources.<a href="/src/api/resources/agents/resources/sources/client/Client.ts">list</a>(agentId, { ...params }) -> Letta.Source[]</code></summary>
7900
8036
  <dl>
7901
8037
  <dd>
7902
8038
 
@@ -7924,7 +8060,13 @@ Get the sources associated with an agent.
7924
8060
  <dd>
7925
8061
 
7926
8062
  ```typescript
7927
- await client.agents.sources.list("agent_id");
8063
+ await client.agents.sources.list("agent_id", {
8064
+ before: "before",
8065
+ after: "after",
8066
+ limit: 1,
8067
+ order: "asc",
8068
+ orderBy: "created_at",
8069
+ });
7928
8070
  ```
7929
8071
 
7930
8072
  </dd>
@@ -7948,6 +8090,14 @@ await client.agents.sources.list("agent_id");
7948
8090
  <dl>
7949
8091
  <dd>
7950
8092
 
8093
+ **request:** `Letta.agents.SourcesListRequest`
8094
+
8095
+ </dd>
8096
+ </dl>
8097
+
8098
+ <dl>
8099
+ <dd>
8100
+
7951
8101
  **requestOptions:** `Sources.RequestOptions`
7952
8102
 
7953
8103
  </dd>
@@ -8103,7 +8253,7 @@ await client.agents.folders.detach("agent_id", "folder_id");
8103
8253
  </dl>
8104
8254
  </details>
8105
8255
 
8106
- <details><summary><code>client.agents.folders.<a href="/src/api/resources/agents/resources/folders/client/Client.ts">list</a>(agentId) -> Letta.Source[]</code></summary>
8256
+ <details><summary><code>client.agents.folders.<a href="/src/api/resources/agents/resources/folders/client/Client.ts">list</a>(agentId, { ...params }) -> Letta.Source[]</code></summary>
8107
8257
  <dl>
8108
8258
  <dd>
8109
8259
 
@@ -8131,7 +8281,13 @@ Get the folders associated with an agent.
8131
8281
  <dd>
8132
8282
 
8133
8283
  ```typescript
8134
- await client.agents.folders.list("agent_id");
8284
+ await client.agents.folders.list("agent_id", {
8285
+ before: "before",
8286
+ after: "after",
8287
+ limit: 1,
8288
+ order: "asc",
8289
+ orderBy: "created_at",
8290
+ });
8135
8291
  ```
8136
8292
 
8137
8293
  </dd>
@@ -8155,6 +8311,14 @@ await client.agents.folders.list("agent_id");
8155
8311
  <dl>
8156
8312
  <dd>
8157
8313
 
8314
+ **request:** `Letta.agents.FoldersListRequest`
8315
+
8316
+ </dd>
8317
+ </dl>
8318
+
8319
+ <dl>
8320
+ <dd>
8321
+
8158
8322
  **requestOptions:** `Folders.RequestOptions`
8159
8323
 
8160
8324
  </dd>
@@ -8411,7 +8575,15 @@ Get the files attached to an agent with their open/closed status (paginated).
8411
8575
  <dd>
8412
8576
 
8413
8577
  ```typescript
8414
- await client.agents.files.list("agent_id");
8578
+ await client.agents.files.list("agent_id", {
8579
+ before: "before",
8580
+ after: "after",
8581
+ limit: 1,
8582
+ order: "asc",
8583
+ orderBy: "created_at",
8584
+ cursor: "cursor",
8585
+ isOpen: true,
8586
+ });
8415
8587
  ```
8416
8588
 
8417
8589
  </dd>
@@ -8672,7 +8844,7 @@ await client.agents.blocks.modify("agent_id", "block_label", {});
8672
8844
  </dl>
8673
8845
  </details>
8674
8846
 
8675
- <details><summary><code>client.agents.blocks.<a href="/src/api/resources/agents/resources/blocks/client/Client.ts">list</a>(agentId) -> Letta.Block[]</code></summary>
8847
+ <details><summary><code>client.agents.blocks.<a href="/src/api/resources/agents/resources/blocks/client/Client.ts">list</a>(agentId, { ...params }) -> Letta.Block[]</code></summary>
8676
8848
  <dl>
8677
8849
  <dd>
8678
8850
 
@@ -8700,7 +8872,13 @@ Retrieve the core memory blocks of a specific agent.
8700
8872
  <dd>
8701
8873
 
8702
8874
  ```typescript
8703
- await client.agents.blocks.list("agent_id");
8875
+ await client.agents.blocks.list("agent_id", {
8876
+ before: "before",
8877
+ after: "after",
8878
+ limit: 1,
8879
+ order: "asc",
8880
+ orderBy: "created_at",
8881
+ });
8704
8882
  ```
8705
8883
 
8706
8884
  </dd>
@@ -8724,6 +8902,14 @@ await client.agents.blocks.list("agent_id");
8724
8902
  <dl>
8725
8903
  <dd>
8726
8904
 
8905
+ **request:** `Letta.agents.BlocksListRequest`
8906
+
8907
+ </dd>
8908
+ </dl>
8909
+
8910
+ <dl>
8911
+ <dd>
8912
+
8727
8913
  **requestOptions:** `Blocks.RequestOptions`
8728
8914
 
8729
8915
  </dd>
@@ -8907,7 +9093,13 @@ Retrieve the memories in an agent's archival memory store (paginated query).
8907
9093
  <dd>
8908
9094
 
8909
9095
  ```typescript
8910
- await client.agents.passages.list("agent_id");
9096
+ await client.agents.passages.list("agent_id", {
9097
+ after: "after",
9098
+ before: "before",
9099
+ limit: 1,
9100
+ search: "search",
9101
+ ascending: true,
9102
+ });
8911
9103
  ```
8912
9104
 
8913
9105
  </dd>
@@ -9057,6 +9249,10 @@ as the agent's archival_memory_search tool but is accessible for external API us
9057
9249
  ```typescript
9058
9250
  await client.agents.passages.search("agent_id", {
9059
9251
  query: "query",
9252
+ tagMatchMode: "any",
9253
+ topK: 1,
9254
+ startDatetime: "2024-01-15T09:30:00Z",
9255
+ endDatetime: "2024-01-15T09:30:00Z",
9060
9256
  });
9061
9257
  ```
9062
9258
 
@@ -9257,7 +9453,18 @@ Retrieve message history for an agent.
9257
9453
  <dd>
9258
9454
 
9259
9455
  ```typescript
9260
- await client.agents.messages.list("agent_id");
9456
+ await client.agents.messages.list("agent_id", {
9457
+ before: "before",
9458
+ after: "after",
9459
+ limit: 1,
9460
+ order: "asc",
9461
+ orderBy: "created_at",
9462
+ groupId: "group_id",
9463
+ useAssistantMessage: true,
9464
+ assistantMessageToolName: "assistant_message_tool_name",
9465
+ assistantMessageToolKwarg: "assistant_message_tool_kwarg",
9466
+ includeErr: true,
9467
+ });
9261
9468
  ```
9262
9469
 
9263
9470
  </dd>
@@ -9805,7 +10012,9 @@ Resets the messages for an agent
9805
10012
  <dd>
9806
10013
 
9807
10014
  ```typescript
9808
- await client.agents.messages.reset("agent_id");
10015
+ await client.agents.messages.reset("agent_id", {
10016
+ addDefaultInitialMessages: true,
10017
+ });
9809
10018
  ```
9810
10019
 
9811
10020
  </dd>
@@ -10041,7 +10250,14 @@ Lists the groups for an agent
10041
10250
  <dd>
10042
10251
 
10043
10252
  ```typescript
10044
- await client.agents.groups.list("agent_id");
10253
+ await client.agents.groups.list("agent_id", {
10254
+ managerType: "manager_type",
10255
+ before: "before",
10256
+ after: "after",
10257
+ limit: 1,
10258
+ order: "asc",
10259
+ orderBy: "created_at",
10260
+ });
10045
10261
  ```
10046
10262
 
10047
10263
  </dd>
@@ -10389,7 +10605,14 @@ Get response messages for a specific batch job.
10389
10605
  <dd>
10390
10606
 
10391
10607
  ```typescript
10392
- await client.batches.messages.list("batch_id");
10608
+ await client.batches.messages.list("batch_id", {
10609
+ before: "before",
10610
+ after: "after",
10611
+ limit: 1,
10612
+ order: "asc",
10613
+ orderBy: "created_at",
10614
+ agentId: "agent_id",
10615
+ });
10393
10616
  ```
10394
10617
 
10395
10618
  </dd>
@@ -10463,7 +10686,13 @@ Raises a 404 if the block does not exist.
10463
10686
  <dd>
10464
10687
 
10465
10688
  ```typescript
10466
- await client.blocks.agents.list("block_id");
10689
+ await client.blocks.agents.list("block_id", {
10690
+ before: "before",
10691
+ after: "after",
10692
+ limit: 1,
10693
+ order: "asc",
10694
+ orderBy: "created_at",
10695
+ });
10467
10696
  ```
10468
10697
 
10469
10698
  </dd>
@@ -10536,7 +10765,10 @@ Upload a file to a data folder.
10536
10765
  <dd>
10537
10766
 
10538
10767
  ```typescript
10539
- await client.folders.files.upload(fs.createReadStream("/path/to/your/file"), "folder_id", {});
10768
+ await client.folders.files.upload(fs.createReadStream("/path/to/your/file"), "folder_id", {
10769
+ duplicateHandling: "skip",
10770
+ name: "name",
10771
+ });
10540
10772
  ```
10541
10773
 
10542
10774
  </dd>
@@ -10615,7 +10847,14 @@ List paginated files associated with a data folder.
10615
10847
  <dd>
10616
10848
 
10617
10849
  ```typescript
10618
- await client.folders.files.list("folder_id");
10850
+ await client.folders.files.list("folder_id", {
10851
+ before: "before",
10852
+ after: "after",
10853
+ limit: 1,
10854
+ order: "asc",
10855
+ orderBy: "created_at",
10856
+ includeContent: true,
10857
+ });
10619
10858
  ```
10620
10859
 
10621
10860
  </dd>
@@ -10759,7 +10998,13 @@ Get all agent IDs that have the specified folder attached.
10759
10998
  <dd>
10760
10999
 
10761
11000
  ```typescript
10762
- await client.folders.agents.list("folder_id");
11001
+ await client.folders.agents.list("folder_id", {
11002
+ before: "before",
11003
+ after: "after",
11004
+ limit: 1,
11005
+ order: "asc",
11006
+ orderBy: "created_at",
11007
+ });
10763
11008
  ```
10764
11009
 
10765
11010
  </dd>
@@ -10832,7 +11077,13 @@ List all passages associated with a data folder.
10832
11077
  <dd>
10833
11078
 
10834
11079
  ```typescript
10835
- await client.folders.passages.list("folder_id");
11080
+ await client.folders.passages.list("folder_id", {
11081
+ before: "before",
11082
+ after: "after",
11083
+ limit: 1,
11084
+ order: "asc",
11085
+ orderBy: "created_at",
11086
+ });
10836
11087
  ```
10837
11088
 
10838
11089
  </dd>
@@ -10905,7 +11156,16 @@ Retrieve message history for an agent.
10905
11156
  <dd>
10906
11157
 
10907
11158
  ```typescript
10908
- await client.groups.messages.list("group_id");
11159
+ await client.groups.messages.list("group_id", {
11160
+ before: "before",
11161
+ after: "after",
11162
+ limit: 1,
11163
+ order: "asc",
11164
+ orderBy: "created_at",
11165
+ useAssistantMessage: true,
11166
+ assistantMessageToolName: "assistant_message_tool_name",
11167
+ assistantMessageToolKwarg: "assistant_message_tool_kwarg",
11168
+ });
10909
11169
  ```
10910
11170
 
10911
11171
  </dd>
@@ -11358,7 +11618,13 @@ Get all agents associated with the specified identity.
11358
11618
  <dd>
11359
11619
 
11360
11620
  ```typescript
11361
- await client.identities.agents.list("identity_id");
11621
+ await client.identities.agents.list("identity_id", {
11622
+ before: "before",
11623
+ after: "after",
11624
+ limit: 1,
11625
+ order: "asc",
11626
+ orderBy: "created_at",
11627
+ });
11362
11628
  ```
11363
11629
 
11364
11630
  </dd>
@@ -11431,7 +11697,13 @@ Get all blocks associated with the specified identity.
11431
11697
  <dd>
11432
11698
 
11433
11699
  ```typescript
11434
- await client.identities.blocks.list("identity_id");
11700
+ await client.identities.blocks.list("identity_id", {
11701
+ before: "before",
11702
+ after: "after",
11703
+ limit: 1,
11704
+ order: "asc",
11705
+ orderBy: "created_at",
11706
+ });
11435
11707
  ```
11436
11708
 
11437
11709
  </dd>
@@ -11561,7 +11833,13 @@ Get response messages associated with a run.
11561
11833
  <dd>
11562
11834
 
11563
11835
  ```typescript
11564
- await client.runs.messages.list("run_id");
11836
+ await client.runs.messages.list("run_id", {
11837
+ before: "before",
11838
+ after: "after",
11839
+ limit: 1,
11840
+ order: "asc",
11841
+ orderBy: "created_at",
11842
+ });
11565
11843
  ```
11566
11844
 
11567
11845
  </dd>
@@ -11683,17 +11961,7 @@ await client.runs.usage.retrieve("run_id");
11683
11961
  <dl>
11684
11962
  <dd>
11685
11963
 
11686
- Get messages associated with a run with filtering options.
11687
-
11688
- Args:
11689
- run_id: ID of the run
11690
- before: A cursor for use in pagination. `before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with obj_foo, your subsequent call can include before=obj_foo in order to fetch the previous page of the list.
11691
- after: A cursor for use in pagination. `after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with obj_foo, your subsequent call can include after=obj_foo in order to fetch the next page of the list.
11692
- limit: Maximum number of steps to return
11693
- order: Sort order by the created_at timestamp of the objects. asc for ascending order and desc for descending order.
11694
-
11695
- Returns:
11696
- A list of steps associated with the run.
11964
+ Get steps associated with a run with filtering options.
11697
11965
 
11698
11966
  </dd>
11699
11967
  </dl>
@@ -11709,7 +11977,13 @@ A list of steps associated with the run.
11709
11977
  <dd>
11710
11978
 
11711
11979
  ```typescript
11712
- await client.runs.steps.list("run_id");
11980
+ await client.runs.steps.list("run_id", {
11981
+ before: "before",
11982
+ after: "after",
11983
+ limit: 1,
11984
+ order: "asc",
11985
+ orderBy: "created_at",
11986
+ });
11713
11987
  ```
11714
11988
 
11715
11989
  </dd>
@@ -11782,7 +12056,10 @@ Upload a file to a data source.
11782
12056
  <dd>
11783
12057
 
11784
12058
  ```typescript
11785
- await client.sources.files.upload(fs.createReadStream("/path/to/your/file"), "source_id", {});
12059
+ await client.sources.files.upload(fs.createReadStream("/path/to/your/file"), "source_id", {
12060
+ duplicateHandling: "skip",
12061
+ name: "name",
12062
+ });
11786
12063
  ```
11787
12064
 
11788
12065
  </dd>
@@ -11861,7 +12138,12 @@ List paginated files associated with a data source.
11861
12138
  <dd>
11862
12139
 
11863
12140
  ```typescript
11864
- await client.sources.files.list("source_id");
12141
+ await client.sources.files.list("source_id", {
12142
+ limit: 1,
12143
+ after: "after",
12144
+ includeContent: true,
12145
+ checkStatusUpdates: true,
12146
+ });
11865
12147
  ```
11866
12148
 
11867
12149
  </dd>
@@ -12005,7 +12287,11 @@ List all passages associated with a data source.
12005
12287
  <dd>
12006
12288
 
12007
12289
  ```typescript
12008
- await client.sources.passages.list("source_id");
12290
+ await client.sources.passages.list("source_id", {
12291
+ after: "after",
12292
+ before: "before",
12293
+ limit: 1,
12294
+ });
12009
12295
  ```
12010
12296
 
12011
12297
  </dd>
@@ -12266,7 +12552,13 @@ List messages for a given step.
12266
12552
  <dd>
12267
12553
 
12268
12554
  ```typescript
12269
- await client.steps.messages.list("step_id");
12555
+ await client.steps.messages.list("step_id", {
12556
+ before: "before",
12557
+ after: "after",
12558
+ limit: 1,
12559
+ order: "asc",
12560
+ orderBy: "created_at",
12561
+ });
12270
12562
  ```
12271
12563
 
12272
12564
  </dd>