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

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 (1408) hide show
  1. package/Client.d.ts +3 -0
  2. package/Client.js +37 -32
  3. package/README.md +320 -88
  4. package/api/errors/GoneError.d.ts +8 -0
  5. package/api/errors/GoneError.js +52 -0
  6. package/api/errors/index.d.ts +1 -0
  7. package/api/errors/index.js +1 -0
  8. package/api/resources/agents/client/Client.d.ts +23 -6
  9. package/api/resources/agents/client/Client.js +34 -19
  10. package/api/resources/agents/client/requests/AgentsExportFileRequest.d.ts +4 -1
  11. package/api/resources/agents/client/requests/AgentsListRequest.d.ts +16 -1
  12. package/api/resources/agents/client/requests/BodyImportAgent.d.ts +3 -1
  13. package/api/resources/agents/client/requests/CreateAgentRequest.d.ts +2 -2
  14. package/api/resources/agents/resources/blocks/client/Client.d.ts +9 -2
  15. package/api/resources/agents/resources/blocks/client/Client.js +37 -10
  16. package/api/resources/agents/resources/blocks/client/index.d.ts +1 -1
  17. package/api/resources/agents/resources/blocks/client/index.js +15 -0
  18. package/api/resources/agents/resources/blocks/client/requests/BlocksListRequest.d.ts +36 -0
  19. package/api/resources/agents/resources/blocks/client/requests/index.d.ts +1 -0
  20. package/api/resources/agents/resources/blocks/index.d.ts +1 -0
  21. package/api/resources/agents/resources/blocks/index.js +1 -0
  22. package/api/resources/agents/resources/blocks/types/BlocksListRequestOrder.d.ts +11 -0
  23. package/api/resources/agents/resources/blocks/types/BlocksListRequestOrder.js +10 -0
  24. package/api/resources/agents/resources/blocks/types/index.d.ts +1 -0
  25. package/api/resources/agents/resources/blocks/types/index.js +17 -0
  26. package/api/resources/agents/resources/context/client/Client.js +1 -1
  27. package/api/resources/agents/resources/coreMemory/client/Client.js +1 -1
  28. package/api/resources/agents/resources/files/client/Client.d.ts +9 -1
  29. package/api/resources/agents/resources/files/client/Client.js +30 -8
  30. package/api/resources/agents/resources/files/client/requests/FilesListRequest.d.ts +29 -4
  31. package/api/resources/agents/resources/files/index.d.ts +1 -0
  32. package/api/resources/agents/resources/files/index.js +1 -0
  33. package/api/resources/agents/resources/files/types/FilesListRequestOrder.d.ts +11 -0
  34. package/api/resources/agents/resources/files/types/FilesListRequestOrder.js +10 -0
  35. package/api/resources/agents/resources/files/types/index.d.ts +1 -0
  36. package/api/resources/agents/resources/files/types/index.js +17 -0
  37. package/api/resources/agents/resources/folders/client/Client.d.ts +9 -2
  38. package/api/resources/agents/resources/folders/client/Client.js +35 -8
  39. package/api/resources/agents/resources/folders/client/index.d.ts +1 -1
  40. package/api/resources/agents/resources/folders/client/index.js +15 -0
  41. package/api/resources/agents/resources/folders/client/requests/FoldersListRequest.d.ts +36 -0
  42. package/api/resources/agents/resources/folders/client/requests/index.d.ts +1 -0
  43. package/api/resources/agents/resources/folders/index.d.ts +1 -0
  44. package/api/resources/agents/resources/folders/index.js +1 -0
  45. package/api/resources/agents/resources/folders/types/FoldersListRequestOrder.d.ts +11 -0
  46. package/api/resources/agents/resources/folders/types/FoldersListRequestOrder.js +10 -0
  47. package/api/resources/agents/resources/folders/types/index.d.ts +1 -0
  48. package/api/resources/agents/resources/folders/types/index.js +17 -0
  49. package/api/resources/agents/resources/groups/client/Client.d.ts +8 -1
  50. package/api/resources/agents/resources/groups/client/Client.js +28 -4
  51. package/api/resources/agents/resources/groups/client/requests/GroupsListRequest.d.ts +29 -1
  52. package/api/resources/agents/resources/groups/index.d.ts +1 -0
  53. package/api/resources/agents/resources/groups/index.js +1 -0
  54. package/api/resources/agents/resources/groups/types/GroupsListRequestOrder.d.ts +11 -0
  55. package/api/resources/agents/resources/groups/types/GroupsListRequestOrder.js +10 -0
  56. package/api/resources/agents/resources/groups/types/index.d.ts +1 -0
  57. package/api/resources/agents/resources/groups/types/index.js +17 -0
  58. package/api/resources/agents/resources/index.d.ts +15 -9
  59. package/api/resources/agents/resources/index.js +16 -10
  60. package/api/resources/agents/resources/memoryVariables/client/Client.js +1 -1
  61. package/api/resources/agents/resources/messages/client/Client.d.ts +15 -2
  62. package/api/resources/agents/resources/messages/client/Client.js +38 -17
  63. package/api/resources/agents/resources/messages/client/requests/MessagesListRequest.d.ts +26 -6
  64. package/api/resources/agents/resources/messages/client/requests/MessagesResetRequest.d.ts +3 -1
  65. package/api/resources/agents/resources/messages/types/MessagesListRequestOrder.d.ts +11 -0
  66. package/api/resources/agents/resources/messages/types/MessagesListRequestOrder.js +10 -0
  67. package/api/resources/agents/resources/messages/types/index.d.ts +1 -0
  68. package/api/resources/agents/resources/messages/types/index.js +1 -0
  69. package/api/resources/agents/resources/passages/client/Client.d.ts +12 -2
  70. package/api/resources/agents/resources/passages/client/Client.js +17 -7
  71. package/api/resources/agents/resources/passages/client/requests/PassagesListRequest.d.ts +7 -1
  72. package/api/resources/agents/resources/passages/client/requests/PassagesSearchRequest.d.ts +5 -1
  73. package/api/resources/agents/resources/sources/client/Client.d.ts +9 -2
  74. package/api/resources/agents/resources/sources/client/Client.js +35 -8
  75. package/api/resources/agents/resources/sources/client/index.d.ts +1 -1
  76. package/api/resources/agents/resources/sources/client/index.js +15 -0
  77. package/api/resources/agents/resources/sources/client/requests/SourcesListRequest.d.ts +36 -0
  78. package/api/resources/agents/resources/sources/client/requests/index.d.ts +1 -0
  79. package/api/resources/agents/resources/sources/client/requests/index.js +2 -0
  80. package/api/resources/agents/resources/sources/index.d.ts +1 -0
  81. package/api/resources/agents/resources/sources/index.js +1 -0
  82. package/api/resources/agents/resources/sources/types/SourcesListRequestOrder.d.ts +11 -0
  83. package/api/resources/agents/resources/sources/types/SourcesListRequestOrder.js +10 -0
  84. package/api/resources/agents/resources/sources/types/index.d.ts +1 -0
  85. package/api/resources/agents/resources/sources/types/index.js +17 -0
  86. package/api/resources/agents/resources/tools/client/Client.d.ts +9 -2
  87. package/api/resources/agents/resources/tools/client/Client.js +37 -10
  88. package/api/resources/agents/resources/tools/client/requests/ToolsListRequest.d.ts +36 -0
  89. package/api/resources/agents/resources/tools/client/requests/index.d.ts +1 -0
  90. package/api/resources/agents/resources/tools/index.d.ts +1 -0
  91. package/api/resources/agents/resources/tools/index.js +1 -0
  92. package/api/resources/agents/resources/tools/types/ToolsListRequestOrder.d.ts +11 -0
  93. package/api/resources/agents/resources/tools/types/ToolsListRequestOrder.js +10 -0
  94. package/api/resources/agents/resources/tools/types/index.d.ts +1 -0
  95. package/api/resources/agents/resources/tools/types/index.js +17 -0
  96. package/api/resources/archives/client/Client.d.ts +8 -1
  97. package/api/resources/archives/client/Client.js +11 -4
  98. package/api/resources/archives/client/requests/ListArchivesRequest.d.ts +8 -1
  99. package/api/resources/batches/client/Client.d.ts +7 -1
  100. package/api/resources/batches/client/Client.js +11 -5
  101. package/api/resources/batches/client/requests/BatchesListRequest.d.ts +7 -1
  102. package/api/resources/batches/resources/messages/client/Client.d.ts +8 -1
  103. package/api/resources/batches/resources/messages/client/Client.js +9 -2
  104. package/api/resources/batches/resources/messages/client/requests/MessagesListRequest.d.ts +8 -1
  105. package/api/resources/blocks/client/Client.d.ts +17 -1
  106. package/api/resources/blocks/client/Client.js +23 -7
  107. package/api/resources/blocks/client/requests/BlocksListRequest.d.ts +17 -1
  108. package/api/resources/blocks/resources/agents/client/Client.d.ts +7 -1
  109. package/api/resources/blocks/resources/agents/client/Client.js +8 -2
  110. package/api/resources/blocks/resources/agents/client/requests/AgentsListRequest.d.ts +7 -1
  111. package/api/resources/chat/client/Client.d.ts +61 -0
  112. package/api/resources/chat/client/Client.js +158 -0
  113. package/api/resources/chat/client/requests/ChatCompletionRequest.d.ts +38 -0
  114. package/api/resources/chat/client/requests/index.d.ts +1 -0
  115. package/api/resources/chat/client/requests/index.js +2 -0
  116. package/api/resources/chat/types/ChatCompletionRequestMessagesItem.d.ts +5 -0
  117. package/api/resources/chat/types/ChatCompletionRequestStop.d.ts +7 -0
  118. package/api/resources/chat/types/index.d.ts +2 -0
  119. package/api/resources/{agents/resources/templates → chat}/types/index.js +2 -1
  120. package/api/resources/clientSideAccessTokens/client/Client.d.ts +5 -1
  121. package/api/resources/clientSideAccessTokens/client/Client.js +8 -4
  122. package/api/resources/clientSideAccessTokens/client/requests/ClientSideAccessTokensListClientSideAccessTokensRequest.d.ts +5 -1
  123. package/api/resources/folders/client/Client.d.ts +11 -2
  124. package/api/resources/folders/client/Client.js +19 -10
  125. package/api/resources/folders/client/requests/FoldersListRequest.d.ts +8 -1
  126. package/api/resources/folders/client/requests/RetrieveMetadataRequest.d.ts +3 -1
  127. package/api/resources/folders/resources/agents/client/Client.d.ts +7 -1
  128. package/api/resources/folders/resources/agents/client/Client.js +8 -2
  129. package/api/resources/folders/resources/agents/client/requests/AgentsListRequest.d.ts +7 -1
  130. package/api/resources/folders/resources/files/client/Client.d.ts +12 -2
  131. package/api/resources/folders/resources/files/client/Client.js +15 -5
  132. package/api/resources/folders/resources/files/client/requests/BodyUploadFileToFolder.d.ts +4 -1
  133. package/api/resources/folders/resources/files/client/requests/FilesListRequest.d.ts +8 -1
  134. package/api/resources/folders/resources/passages/client/Client.d.ts +7 -1
  135. package/api/resources/folders/resources/passages/client/Client.js +8 -2
  136. package/api/resources/folders/resources/passages/client/requests/PassagesListRequest.d.ts +7 -1
  137. package/api/resources/groups/client/Client.d.ts +9 -1
  138. package/api/resources/groups/client/Client.js +15 -7
  139. package/api/resources/groups/client/requests/GroupsListRequest.d.ts +9 -1
  140. package/api/resources/groups/resources/messages/client/Client.d.ts +10 -1
  141. package/api/resources/groups/resources/messages/client/Client.js +15 -6
  142. package/api/resources/groups/resources/messages/client/requests/MessagesListRequest.d.ts +10 -1
  143. package/api/resources/health/client/Client.js +1 -1
  144. package/api/resources/identities/client/Client.d.ts +11 -1
  145. package/api/resources/identities/client/Client.js +18 -8
  146. package/api/resources/identities/client/requests/IdentitiesListRequest.d.ts +11 -1
  147. package/api/resources/identities/resources/agents/client/Client.d.ts +7 -1
  148. package/api/resources/identities/resources/agents/client/Client.js +8 -2
  149. package/api/resources/identities/resources/agents/client/requests/AgentsListRequest.d.ts +7 -1
  150. package/api/resources/identities/resources/blocks/client/Client.d.ts +7 -1
  151. package/api/resources/identities/resources/blocks/client/Client.js +8 -2
  152. package/api/resources/identities/resources/blocks/client/requests/BlocksListRequest.d.ts +7 -1
  153. package/api/resources/identities/resources/properties/client/Client.js +1 -1
  154. package/api/resources/index.d.ts +5 -1
  155. package/api/resources/index.js +6 -2
  156. package/api/resources/jobs/client/Client.d.ts +17 -2
  157. package/api/resources/jobs/client/Client.js +32 -9
  158. package/api/resources/jobs/client/requests/JobsListActiveRequest.d.ts +7 -1
  159. package/api/resources/jobs/client/requests/JobsListRequest.d.ts +23 -5
  160. package/api/resources/jobs/index.d.ts +1 -0
  161. package/api/resources/jobs/index.js +1 -0
  162. package/api/resources/jobs/types/JobsListRequestOrder.d.ts +11 -0
  163. package/api/resources/jobs/types/JobsListRequestOrder.js +10 -0
  164. package/api/resources/jobs/types/index.d.ts +1 -0
  165. package/api/resources/jobs/types/index.js +17 -0
  166. package/api/resources/models/client/Client.d.ts +4 -1
  167. package/api/resources/models/client/Client.js +6 -3
  168. package/api/resources/models/client/requests/ModelsListRequest.d.ts +4 -1
  169. package/api/resources/models/resources/embeddings/client/Client.js +1 -1
  170. package/api/resources/projects/client/Client.d.ts +5 -1
  171. package/api/resources/projects/client/Client.js +6 -2
  172. package/api/resources/projects/client/requests/ProjectsListRequest.d.ts +5 -1
  173. package/api/resources/providers/client/Client.d.ts +22 -1
  174. package/api/resources/providers/client/Client.js +82 -7
  175. package/api/resources/providers/client/requests/ProvidersListRequest.d.ts +9 -1
  176. package/api/resources/runs/client/Client.d.ts +29 -2
  177. package/api/resources/runs/client/Client.js +117 -11
  178. package/api/resources/runs/client/requests/RunsListActiveRequest.d.ts +4 -1
  179. package/api/resources/runs/client/requests/RunsListRequest.d.ts +29 -6
  180. package/api/resources/runs/resources/index.d.ts +2 -1
  181. package/api/resources/runs/resources/index.js +3 -2
  182. package/api/resources/runs/resources/messages/client/Client.d.ts +7 -1
  183. package/api/resources/runs/resources/messages/client/Client.js +12 -3
  184. package/api/resources/runs/resources/messages/client/requests/MessagesListRequest.d.ts +11 -1
  185. package/api/resources/runs/resources/steps/client/Client.d.ts +8 -12
  186. package/api/resources/runs/resources/steps/client/Client.js +17 -16
  187. package/api/resources/runs/resources/steps/client/requests/StepsListRequest.d.ts +14 -3
  188. package/api/resources/runs/resources/steps/index.d.ts +1 -0
  189. package/api/resources/runs/resources/steps/index.js +1 -0
  190. package/api/resources/runs/resources/steps/types/StepsListRequestOrder.d.ts +11 -0
  191. package/api/resources/runs/resources/steps/types/StepsListRequestOrder.js +10 -0
  192. package/api/resources/runs/resources/steps/types/index.d.ts +1 -0
  193. package/api/resources/runs/resources/steps/types/index.js +17 -0
  194. package/api/resources/runs/resources/usage/client/Client.js +1 -1
  195. package/api/resources/runs/types/RunsListRequestOrder.d.ts +11 -0
  196. package/api/resources/runs/types/RunsListRequestOrder.js +10 -0
  197. package/api/resources/runs/types/index.d.ts +1 -0
  198. package/api/resources/runs/types/index.js +1 -0
  199. package/api/resources/sources/client/Client.d.ts +6 -2
  200. package/api/resources/sources/client/Client.js +16 -12
  201. package/api/resources/sources/client/requests/GetFileMetadataRequest.d.ts +3 -1
  202. package/api/resources/sources/client/requests/GetSourcesMetadataRequest.d.ts +3 -1
  203. package/api/resources/sources/resources/files/client/Client.d.ts +10 -2
  204. package/api/resources/sources/resources/files/client/Client.js +13 -5
  205. package/api/resources/sources/resources/files/client/requests/BodyUploadFileToSource.d.ts +4 -1
  206. package/api/resources/sources/resources/files/client/requests/FilesListRequest.d.ts +6 -1
  207. package/api/resources/sources/resources/passages/client/Client.d.ts +5 -1
  208. package/api/resources/sources/resources/passages/client/Client.js +6 -2
  209. package/api/resources/sources/resources/passages/client/requests/PassagesListRequest.d.ts +5 -1
  210. package/api/resources/steps/client/Client.d.ts +14 -1
  211. package/api/resources/steps/client/Client.js +16 -3
  212. package/api/resources/steps/client/requests/StepsListRequest.d.ts +14 -1
  213. package/api/resources/steps/resources/feedback/client/Client.js +1 -1
  214. package/api/resources/steps/resources/messages/client/Client.d.ts +7 -1
  215. package/api/resources/steps/resources/messages/client/Client.js +8 -2
  216. package/api/resources/steps/resources/messages/client/requests/MessagesListRequest.d.ts +7 -1
  217. package/api/resources/steps/resources/metrics/client/Client.js +1 -1
  218. package/api/resources/steps/resources/trace/client/Client.js +1 -1
  219. package/api/resources/tags/client/Client.d.ts +9 -1
  220. package/api/resources/tags/client/Client.js +10 -2
  221. package/api/resources/tags/client/requests/TagsListRequest.d.ts +9 -1
  222. package/api/resources/telemetry/client/Client.js +1 -1
  223. package/api/resources/templates/client/Client.d.ts +17 -3
  224. package/api/resources/templates/client/Client.js +30 -16
  225. package/api/resources/templates/client/requests/TemplatesListRequest.d.ts +12 -1
  226. package/api/resources/templates/client/requests/TemplatesListTemplateVersionsRequest.d.ts +4 -1
  227. package/api/resources/templates/resources/agents/client/Client.js +1 -1
  228. package/api/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemLlmConfig.d.ts +1 -0
  229. package/api/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemLlmConfigDisplayName.d.ts +5 -0
  230. package/api/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemLlmConfigDisplayNameItem.d.ts +4 -0
  231. package/api/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemSecretsItem.d.ts +1 -0
  232. package/api/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemSecretsItemValueEnc.d.ts +5 -0
  233. package/api/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemSecretsItemValueEncItem.d.ts +4 -0
  234. package/api/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolExecEnvironmentVariablesItem.d.ts +1 -0
  235. package/api/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolExecEnvironmentVariablesItemValueEnc.d.ts +5 -0
  236. package/api/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolExecEnvironmentVariablesItemValueEncItem.d.ts +4 -0
  237. package/api/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolsItemToolType.d.ts +2 -2
  238. package/api/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolsItemToolType.js +1 -1
  239. package/api/resources/templates/types/index.d.ts +6 -0
  240. package/api/resources/templates/types/index.js +6 -0
  241. package/api/resources/tools/client/Client.d.ts +16 -40
  242. package/api/resources/tools/client/Client.js +33 -246
  243. package/api/resources/tools/client/requests/ToolsCountRequest.d.ts +6 -1
  244. package/api/resources/tools/client/requests/ToolsListRequest.d.ts +10 -1
  245. package/api/resources/voice/client/Client.d.ts +8 -0
  246. package/api/resources/voice/client/Client.js +11 -1
  247. package/api/types/AgentEnvironmentVariable.d.ts +2 -0
  248. package/api/types/Annotation.d.ts +10 -0
  249. package/api/types/AnnotationUrlCitation.d.ts +11 -0
  250. package/api/types/ApprovalCreate.d.ts +5 -2
  251. package/api/types/ApprovalCreateApprovalsItem.d.ts +5 -0
  252. package/api/types/ApprovalResponseMessage.d.ts +5 -2
  253. package/api/types/ApprovalResponseMessageApprovalsItem.d.ts +5 -0
  254. package/api/types/ApprovalReturn.d.ts +12 -0
  255. package/{dist/api/resources/agents/resources/templates/types/TemplatesMigrateResponse.d.ts → api/types/Audio.d.ts} +2 -2
  256. package/api/types/ChatCompletion.d.ts +16 -0
  257. package/api/types/ChatCompletionAssistantMessageParam.d.ts +13 -0
  258. package/api/types/ChatCompletionAssistantMessageParamContent.d.ts +5 -0
  259. package/api/types/ChatCompletionAssistantMessageParamContentItem.d.ts +5 -0
  260. package/api/types/ChatCompletionAssistantMessageParamContentItem.js +5 -0
  261. package/api/types/ChatCompletionAssistantMessageParamToolCallsItem.d.ts +5 -0
  262. package/api/types/ChatCompletionAssistantMessageParamToolCallsItem.js +5 -0
  263. package/api/types/ChatCompletionAudio.d.ts +11 -0
  264. package/api/types/ChatCompletionAudio.js +5 -0
  265. package/api/types/ChatCompletionContentPartImageParam.d.ts +8 -0
  266. package/api/types/ChatCompletionContentPartImageParam.js +5 -0
  267. package/api/types/ChatCompletionContentPartInputAudioParam.d.ts +8 -0
  268. package/api/types/ChatCompletionContentPartInputAudioParam.js +5 -0
  269. package/api/types/ChatCompletionContentPartRefusalParam.d.ts +7 -0
  270. package/api/types/ChatCompletionContentPartRefusalParam.js +5 -0
  271. package/api/types/ChatCompletionContentPartTextParam.d.ts +7 -0
  272. package/api/types/ChatCompletionContentPartTextParam.js +5 -0
  273. package/api/types/ChatCompletionDeveloperMessageParam.d.ts +9 -0
  274. package/api/types/ChatCompletionDeveloperMessageParam.js +5 -0
  275. package/api/types/ChatCompletionDeveloperMessageParamContent.d.ts +5 -0
  276. package/api/types/ChatCompletionDeveloperMessageParamContent.js +5 -0
  277. package/api/types/ChatCompletionFunctionMessageParam.d.ts +8 -0
  278. package/api/types/ChatCompletionFunctionMessageParam.js +5 -0
  279. package/api/types/ChatCompletionMessage.d.ts +15 -0
  280. package/api/types/ChatCompletionMessage.js +5 -0
  281. package/api/types/ChatCompletionMessageCustomToolCall.d.ts +11 -0
  282. package/api/types/ChatCompletionMessageCustomToolCall.js +5 -0
  283. package/api/types/ChatCompletionMessageCustomToolCallParam.d.ts +9 -0
  284. package/api/types/ChatCompletionMessageCustomToolCallParam.js +5 -0
  285. package/api/types/ChatCompletionMessageFunctionToolCallInput.d.ts +11 -0
  286. package/api/types/ChatCompletionMessageFunctionToolCallInput.js +5 -0
  287. package/api/types/{ChatCompletionMessageFunctionToolCall.d.ts → ChatCompletionMessageFunctionToolCallOutput.d.ts} +2 -2
  288. package/api/types/ChatCompletionMessageFunctionToolCallOutput.js +5 -0
  289. package/api/types/ChatCompletionMessageFunctionToolCallParam.d.ts +9 -0
  290. package/api/types/ChatCompletionMessageFunctionToolCallParam.js +5 -0
  291. package/api/types/ChatCompletionMessageToolCallsItem.d.ts +5 -0
  292. package/api/types/ChatCompletionMessageToolCallsItem.js +5 -0
  293. package/api/types/ChatCompletionServiceTier.d.ts +11 -0
  294. package/api/types/ChatCompletionServiceTier.js +13 -0
  295. package/api/types/ChatCompletionSystemMessageParam.d.ts +9 -0
  296. package/api/types/ChatCompletionSystemMessageParam.js +5 -0
  297. package/api/types/ChatCompletionSystemMessageParamContent.d.ts +5 -0
  298. package/api/types/ChatCompletionSystemMessageParamContent.js +5 -0
  299. package/api/types/ChatCompletionTokenLogprob.d.ts +12 -0
  300. package/api/types/ChatCompletionTokenLogprob.js +5 -0
  301. package/api/types/ChatCompletionToolMessageParam.d.ts +9 -0
  302. package/api/types/ChatCompletionToolMessageParam.js +5 -0
  303. package/api/types/ChatCompletionToolMessageParamContent.d.ts +5 -0
  304. package/api/types/ChatCompletionToolMessageParamContent.js +5 -0
  305. package/api/types/ChatCompletionUserMessageParam.d.ts +9 -0
  306. package/api/types/ChatCompletionUserMessageParam.js +5 -0
  307. package/api/types/ChatCompletionUserMessageParamContent.d.ts +5 -0
  308. package/api/types/ChatCompletionUserMessageParamContent.js +5 -0
  309. package/api/types/ChatCompletionUserMessageParamContentItem.d.ts +5 -0
  310. package/api/types/ChatCompletionUserMessageParamContentItem.js +5 -0
  311. package/api/types/Choice.d.ts +12 -0
  312. package/api/types/Choice.js +5 -0
  313. package/api/types/ChoiceFinishReason.d.ts +11 -0
  314. package/api/types/ChoiceFinishReason.js +13 -0
  315. package/api/types/ChoiceLogprobs.d.ts +10 -0
  316. package/api/types/ChoiceLogprobs.js +5 -0
  317. package/api/types/CompletionTokensDetails.d.ts +11 -0
  318. package/api/types/CompletionTokensDetails.js +5 -0
  319. package/api/types/CompletionUsage.d.ts +13 -0
  320. package/api/types/CompletionUsage.js +5 -0
  321. package/api/types/CustomInput.d.ts +7 -0
  322. package/api/types/CustomInput.js +5 -0
  323. package/api/types/CustomOutput.d.ts +9 -0
  324. package/api/types/CustomOutput.js +5 -0
  325. package/api/types/FileFile.d.ts +8 -0
  326. package/api/types/FileFile.js +5 -0
  327. package/api/types/File_.d.ts +8 -0
  328. package/api/types/File_.js +5 -0
  329. package/api/types/FunctionCallInput.d.ts +7 -0
  330. package/api/types/FunctionCallInput.js +5 -0
  331. package/api/types/FunctionCallOutput.d.ts +9 -0
  332. package/api/types/FunctionCallOutput.js +5 -0
  333. package/api/types/{Function.d.ts → FunctionOutput.d.ts} +1 -1
  334. package/api/types/FunctionOutput.js +5 -0
  335. package/api/types/ImageUrl.d.ts +8 -0
  336. package/api/types/ImageUrl.js +5 -0
  337. package/api/types/ImageUrlDetail.d.ts +9 -0
  338. package/api/types/ImageUrlDetail.js +11 -0
  339. package/api/types/InputAudio.d.ts +8 -0
  340. package/api/types/InputAudio.js +5 -0
  341. package/api/types/InputAudioFormat.d.ts +8 -0
  342. package/api/types/InputAudioFormat.js +10 -0
  343. package/api/types/InternalTemplateAgentCreate.d.ts +2 -2
  344. package/api/types/LettaSchemasAgentFileAgentSchema.d.ts +2 -2
  345. package/api/types/LettaSchemasAgentFileMessageSchema.d.ts +10 -2
  346. package/api/types/LettaSchemasAgentFileMessageSchemaApprovalsItem.d.ts +5 -0
  347. package/api/types/LettaSchemasAgentFileMessageSchemaApprovalsItem.js +5 -0
  348. package/api/types/LettaSchemasLettaMessageToolReturn.d.ts +12 -0
  349. package/api/types/LettaSchemasLettaMessageToolReturn.js +5 -0
  350. package/api/types/LettaSchemasLettaMessageToolReturnStatus.d.ts +8 -0
  351. package/api/types/LettaSchemasLettaMessageToolReturnStatus.js +10 -0
  352. package/{dist/api/types/ToolReturn.d.ts → api/types/LettaSchemasMessageToolReturn.d.ts} +5 -2
  353. package/api/types/LettaSchemasMessageToolReturn.js +5 -0
  354. package/api/types/{ToolReturnStatus.d.ts → LettaSchemasMessageToolReturnStatus.d.ts} +2 -2
  355. package/api/types/{ToolReturnStatus.js → LettaSchemasMessageToolReturnStatus.js} +2 -2
  356. package/api/types/LlmConfig.d.ts +2 -0
  357. package/api/types/Message.d.ts +4 -2
  358. package/api/types/MessageApprovalsItem.d.ts +5 -0
  359. package/api/types/MessageApprovalsItem.js +5 -0
  360. package/api/types/OmittedReasoningContent.d.ts +2 -0
  361. package/api/types/OpenaiTypesChatChatCompletionMessageFunctionToolCallFunction.d.ts +9 -0
  362. package/api/types/OpenaiTypesChatChatCompletionMessageFunctionToolCallFunction.js +5 -0
  363. package/api/types/OpenaiTypesChatChatCompletionMessageFunctionToolCallParamFunction.d.ts +7 -0
  364. package/api/types/OpenaiTypesChatChatCompletionMessageFunctionToolCallParamFunction.js +5 -0
  365. package/api/types/PromptTokensDetails.d.ts +9 -0
  366. package/api/types/PromptTokensDetails.js +5 -0
  367. package/api/types/Provider.d.ts +4 -0
  368. package/api/types/RunMetrics.d.ts +21 -0
  369. package/api/types/RunMetrics.js +5 -0
  370. package/api/types/SandboxEnvironmentVariable.d.ts +2 -0
  371. package/api/types/TextContent.d.ts +2 -0
  372. package/api/types/ToolCallContent.d.ts +2 -0
  373. package/api/types/ToolCallMessage.d.ts +1 -0
  374. package/api/types/ToolCallMessageToolCalls.d.ts +5 -0
  375. package/api/types/ToolCallMessageToolCalls.js +5 -0
  376. package/api/types/ToolReturnMessage.d.ts +7 -5
  377. package/api/types/ToolType.d.ts +2 -2
  378. package/api/types/ToolType.js +1 -1
  379. package/api/types/TopLogprob.d.ts +10 -0
  380. package/api/types/TopLogprob.js +5 -0
  381. package/api/types/index.d.ts +63 -11
  382. package/api/types/index.js +63 -11
  383. package/dist/Client.d.ts +3 -0
  384. package/dist/Client.js +37 -32
  385. package/dist/api/errors/GoneError.d.ts +8 -0
  386. package/dist/api/errors/GoneError.js +52 -0
  387. package/dist/api/errors/index.d.ts +1 -0
  388. package/dist/api/errors/index.js +1 -0
  389. package/dist/api/resources/agents/client/Client.d.ts +23 -6
  390. package/dist/api/resources/agents/client/Client.js +34 -19
  391. package/dist/api/resources/agents/client/requests/AgentsExportFileRequest.d.ts +4 -1
  392. package/dist/api/resources/agents/client/requests/AgentsListRequest.d.ts +16 -1
  393. package/dist/api/resources/agents/client/requests/BodyImportAgent.d.ts +3 -1
  394. package/dist/api/resources/agents/client/requests/CreateAgentRequest.d.ts +2 -2
  395. package/dist/api/resources/agents/resources/blocks/client/Client.d.ts +9 -2
  396. package/dist/api/resources/agents/resources/blocks/client/Client.js +37 -10
  397. package/dist/api/resources/agents/resources/blocks/client/index.d.ts +1 -1
  398. package/dist/api/resources/agents/resources/blocks/client/index.js +15 -0
  399. package/dist/api/resources/agents/resources/blocks/client/requests/BlocksListRequest.d.ts +36 -0
  400. package/dist/api/resources/agents/resources/blocks/client/requests/BlocksListRequest.js +5 -0
  401. package/dist/api/resources/agents/resources/blocks/client/requests/index.d.ts +1 -0
  402. package/dist/api/resources/agents/resources/blocks/client/requests/index.js +2 -0
  403. package/dist/api/resources/agents/resources/blocks/index.d.ts +1 -0
  404. package/dist/api/resources/agents/resources/blocks/index.js +1 -0
  405. package/dist/api/resources/agents/resources/blocks/types/BlocksListRequestOrder.d.ts +11 -0
  406. package/dist/api/resources/agents/resources/blocks/types/BlocksListRequestOrder.js +10 -0
  407. package/dist/api/resources/agents/resources/blocks/types/index.d.ts +1 -0
  408. package/dist/api/resources/agents/resources/blocks/types/index.js +17 -0
  409. package/dist/api/resources/agents/resources/context/client/Client.js +1 -1
  410. package/dist/api/resources/agents/resources/coreMemory/client/Client.js +1 -1
  411. package/dist/api/resources/agents/resources/files/client/Client.d.ts +9 -1
  412. package/dist/api/resources/agents/resources/files/client/Client.js +30 -8
  413. package/dist/api/resources/agents/resources/files/client/requests/FilesListRequest.d.ts +29 -4
  414. package/dist/api/resources/agents/resources/files/index.d.ts +1 -0
  415. package/dist/api/resources/agents/resources/files/index.js +1 -0
  416. package/dist/api/resources/agents/resources/files/types/FilesListRequestOrder.d.ts +11 -0
  417. package/dist/api/resources/agents/resources/files/types/FilesListRequestOrder.js +10 -0
  418. package/dist/api/resources/agents/resources/files/types/index.d.ts +1 -0
  419. package/dist/api/resources/agents/resources/files/types/index.js +17 -0
  420. package/dist/api/resources/agents/resources/folders/client/Client.d.ts +9 -2
  421. package/dist/api/resources/agents/resources/folders/client/Client.js +35 -8
  422. package/dist/api/resources/agents/resources/folders/client/index.d.ts +1 -1
  423. package/dist/api/resources/agents/resources/folders/client/index.js +15 -0
  424. package/dist/api/resources/agents/resources/folders/client/requests/FoldersListRequest.d.ts +36 -0
  425. package/dist/api/resources/agents/resources/folders/client/requests/FoldersListRequest.js +5 -0
  426. package/dist/api/resources/agents/resources/folders/client/requests/index.d.ts +1 -0
  427. package/dist/api/resources/agents/resources/folders/client/requests/index.js +2 -0
  428. package/dist/api/resources/agents/resources/folders/index.d.ts +1 -0
  429. package/dist/api/resources/agents/resources/folders/index.js +1 -0
  430. package/dist/api/resources/agents/resources/folders/types/FoldersListRequestOrder.d.ts +11 -0
  431. package/dist/api/resources/agents/resources/folders/types/FoldersListRequestOrder.js +10 -0
  432. package/dist/api/resources/agents/resources/folders/types/index.d.ts +1 -0
  433. package/dist/api/resources/agents/resources/folders/types/index.js +17 -0
  434. package/dist/api/resources/agents/resources/groups/client/Client.d.ts +8 -1
  435. package/dist/api/resources/agents/resources/groups/client/Client.js +28 -4
  436. package/dist/api/resources/agents/resources/groups/client/requests/GroupsListRequest.d.ts +29 -1
  437. package/dist/api/resources/agents/resources/groups/index.d.ts +1 -0
  438. package/dist/api/resources/agents/resources/groups/index.js +1 -0
  439. package/dist/api/resources/agents/resources/groups/types/GroupsListRequestOrder.d.ts +11 -0
  440. package/dist/api/resources/agents/resources/groups/types/GroupsListRequestOrder.js +10 -0
  441. package/dist/api/resources/agents/resources/groups/types/index.d.ts +1 -0
  442. package/dist/api/resources/agents/resources/groups/types/index.js +17 -0
  443. package/dist/api/resources/agents/resources/index.d.ts +15 -9
  444. package/dist/api/resources/agents/resources/index.js +16 -10
  445. package/dist/api/resources/agents/resources/memoryVariables/client/Client.js +1 -1
  446. package/dist/api/resources/agents/resources/messages/client/Client.d.ts +15 -2
  447. package/dist/api/resources/agents/resources/messages/client/Client.js +38 -17
  448. package/dist/api/resources/agents/resources/messages/client/requests/MessagesListRequest.d.ts +26 -6
  449. package/dist/api/resources/agents/resources/messages/client/requests/MessagesResetRequest.d.ts +3 -1
  450. package/dist/api/resources/agents/resources/messages/types/MessagesListRequestOrder.d.ts +11 -0
  451. package/dist/api/resources/agents/resources/messages/types/MessagesListRequestOrder.js +10 -0
  452. package/dist/api/resources/agents/resources/messages/types/index.d.ts +1 -0
  453. package/dist/api/resources/agents/resources/messages/types/index.js +1 -0
  454. package/dist/api/resources/agents/resources/passages/client/Client.d.ts +12 -2
  455. package/dist/api/resources/agents/resources/passages/client/Client.js +17 -7
  456. package/dist/api/resources/agents/resources/passages/client/requests/PassagesListRequest.d.ts +7 -1
  457. package/dist/api/resources/agents/resources/passages/client/requests/PassagesSearchRequest.d.ts +5 -1
  458. package/dist/api/resources/agents/resources/sources/client/Client.d.ts +9 -2
  459. package/dist/api/resources/agents/resources/sources/client/Client.js +35 -8
  460. package/dist/api/resources/agents/resources/sources/client/index.d.ts +1 -1
  461. package/dist/api/resources/agents/resources/sources/client/index.js +15 -0
  462. package/dist/api/resources/agents/resources/sources/client/requests/SourcesListRequest.d.ts +36 -0
  463. package/dist/api/resources/agents/resources/sources/client/requests/SourcesListRequest.js +5 -0
  464. package/dist/api/resources/agents/resources/sources/client/requests/index.d.ts +1 -0
  465. package/dist/api/resources/agents/resources/sources/client/requests/index.js +2 -0
  466. package/dist/api/resources/agents/resources/sources/index.d.ts +1 -0
  467. package/dist/api/resources/agents/resources/sources/index.js +1 -0
  468. package/dist/api/resources/agents/resources/sources/types/SourcesListRequestOrder.d.ts +11 -0
  469. package/dist/api/resources/agents/resources/sources/types/SourcesListRequestOrder.js +10 -0
  470. package/dist/api/resources/agents/resources/sources/types/index.d.ts +1 -0
  471. package/dist/api/resources/agents/resources/sources/types/index.js +17 -0
  472. package/dist/api/resources/agents/resources/tools/client/Client.d.ts +9 -2
  473. package/dist/api/resources/agents/resources/tools/client/Client.js +37 -10
  474. package/dist/api/resources/agents/resources/tools/client/requests/ToolsListRequest.d.ts +36 -0
  475. package/dist/api/resources/agents/resources/tools/client/requests/ToolsListRequest.js +5 -0
  476. package/dist/api/resources/agents/resources/tools/client/requests/index.d.ts +1 -0
  477. package/dist/api/resources/agents/resources/tools/index.d.ts +1 -0
  478. package/dist/api/resources/agents/resources/tools/index.js +1 -0
  479. package/dist/api/resources/agents/resources/tools/types/ToolsListRequestOrder.d.ts +11 -0
  480. package/dist/api/resources/agents/resources/tools/types/ToolsListRequestOrder.js +10 -0
  481. package/dist/api/resources/agents/resources/tools/types/index.d.ts +1 -0
  482. package/dist/api/resources/agents/resources/tools/types/index.js +17 -0
  483. package/dist/api/resources/archives/client/Client.d.ts +8 -1
  484. package/dist/api/resources/archives/client/Client.js +11 -4
  485. package/dist/api/resources/archives/client/requests/ListArchivesRequest.d.ts +8 -1
  486. package/dist/api/resources/batches/client/Client.d.ts +7 -1
  487. package/dist/api/resources/batches/client/Client.js +11 -5
  488. package/dist/api/resources/batches/client/requests/BatchesListRequest.d.ts +7 -1
  489. package/dist/api/resources/batches/resources/messages/client/Client.d.ts +8 -1
  490. package/dist/api/resources/batches/resources/messages/client/Client.js +9 -2
  491. package/dist/api/resources/batches/resources/messages/client/requests/MessagesListRequest.d.ts +8 -1
  492. package/dist/api/resources/blocks/client/Client.d.ts +17 -1
  493. package/dist/api/resources/blocks/client/Client.js +23 -7
  494. package/dist/api/resources/blocks/client/requests/BlocksListRequest.d.ts +17 -1
  495. package/dist/api/resources/blocks/resources/agents/client/Client.d.ts +7 -1
  496. package/dist/api/resources/blocks/resources/agents/client/Client.js +8 -2
  497. package/dist/api/resources/blocks/resources/agents/client/requests/AgentsListRequest.d.ts +7 -1
  498. package/dist/api/resources/chat/client/Client.d.ts +61 -0
  499. package/dist/api/resources/chat/client/Client.js +158 -0
  500. package/dist/api/resources/chat/client/requests/ChatCompletionRequest.d.ts +38 -0
  501. package/dist/api/resources/chat/client/requests/ChatCompletionRequest.js +5 -0
  502. package/dist/api/resources/chat/client/requests/index.d.ts +1 -0
  503. package/dist/api/resources/chat/client/requests/index.js +2 -0
  504. package/dist/api/resources/chat/types/ChatCompletionRequestMessagesItem.d.ts +5 -0
  505. package/dist/api/resources/chat/types/ChatCompletionRequestMessagesItem.js +5 -0
  506. package/dist/api/resources/chat/types/ChatCompletionRequestStop.d.ts +7 -0
  507. package/dist/api/resources/chat/types/ChatCompletionRequestStop.js +5 -0
  508. package/dist/api/resources/chat/types/index.d.ts +2 -0
  509. package/dist/api/resources/chat/types/index.js +18 -0
  510. package/dist/api/resources/clientSideAccessTokens/client/Client.d.ts +5 -1
  511. package/dist/api/resources/clientSideAccessTokens/client/Client.js +8 -4
  512. package/dist/api/resources/clientSideAccessTokens/client/requests/ClientSideAccessTokensListClientSideAccessTokensRequest.d.ts +5 -1
  513. package/dist/api/resources/folders/client/Client.d.ts +11 -2
  514. package/dist/api/resources/folders/client/Client.js +19 -10
  515. package/dist/api/resources/folders/client/requests/FoldersListRequest.d.ts +8 -1
  516. package/dist/api/resources/folders/client/requests/RetrieveMetadataRequest.d.ts +3 -1
  517. package/dist/api/resources/folders/resources/agents/client/Client.d.ts +7 -1
  518. package/dist/api/resources/folders/resources/agents/client/Client.js +8 -2
  519. package/dist/api/resources/folders/resources/agents/client/requests/AgentsListRequest.d.ts +7 -1
  520. package/dist/api/resources/folders/resources/files/client/Client.d.ts +12 -2
  521. package/dist/api/resources/folders/resources/files/client/Client.js +15 -5
  522. package/dist/api/resources/folders/resources/files/client/requests/BodyUploadFileToFolder.d.ts +4 -1
  523. package/dist/api/resources/folders/resources/files/client/requests/FilesListRequest.d.ts +8 -1
  524. package/dist/api/resources/folders/resources/passages/client/Client.d.ts +7 -1
  525. package/dist/api/resources/folders/resources/passages/client/Client.js +8 -2
  526. package/dist/api/resources/folders/resources/passages/client/requests/PassagesListRequest.d.ts +7 -1
  527. package/dist/api/resources/groups/client/Client.d.ts +9 -1
  528. package/dist/api/resources/groups/client/Client.js +15 -7
  529. package/dist/api/resources/groups/client/requests/GroupsListRequest.d.ts +9 -1
  530. package/dist/api/resources/groups/resources/messages/client/Client.d.ts +10 -1
  531. package/dist/api/resources/groups/resources/messages/client/Client.js +15 -6
  532. package/dist/api/resources/groups/resources/messages/client/requests/MessagesListRequest.d.ts +10 -1
  533. package/dist/api/resources/health/client/Client.js +1 -1
  534. package/dist/api/resources/identities/client/Client.d.ts +11 -1
  535. package/dist/api/resources/identities/client/Client.js +18 -8
  536. package/dist/api/resources/identities/client/requests/IdentitiesListRequest.d.ts +11 -1
  537. package/dist/api/resources/identities/resources/agents/client/Client.d.ts +7 -1
  538. package/dist/api/resources/identities/resources/agents/client/Client.js +8 -2
  539. package/dist/api/resources/identities/resources/agents/client/requests/AgentsListRequest.d.ts +7 -1
  540. package/dist/api/resources/identities/resources/blocks/client/Client.d.ts +7 -1
  541. package/dist/api/resources/identities/resources/blocks/client/Client.js +8 -2
  542. package/dist/api/resources/identities/resources/blocks/client/requests/BlocksListRequest.d.ts +7 -1
  543. package/dist/api/resources/identities/resources/properties/client/Client.js +1 -1
  544. package/dist/api/resources/index.d.ts +5 -1
  545. package/dist/api/resources/index.js +6 -2
  546. package/dist/api/resources/jobs/client/Client.d.ts +17 -2
  547. package/dist/api/resources/jobs/client/Client.js +32 -9
  548. package/dist/api/resources/jobs/client/requests/JobsListActiveRequest.d.ts +7 -1
  549. package/dist/api/resources/jobs/client/requests/JobsListRequest.d.ts +23 -5
  550. package/dist/api/resources/jobs/index.d.ts +1 -0
  551. package/dist/api/resources/jobs/index.js +1 -0
  552. package/dist/api/resources/jobs/types/JobsListRequestOrder.d.ts +11 -0
  553. package/dist/api/resources/jobs/types/JobsListRequestOrder.js +10 -0
  554. package/dist/api/resources/jobs/types/index.d.ts +1 -0
  555. package/dist/api/resources/jobs/types/index.js +17 -0
  556. package/dist/api/resources/models/client/Client.d.ts +4 -1
  557. package/dist/api/resources/models/client/Client.js +6 -3
  558. package/dist/api/resources/models/client/requests/ModelsListRequest.d.ts +4 -1
  559. package/dist/api/resources/models/resources/embeddings/client/Client.js +1 -1
  560. package/dist/api/resources/projects/client/Client.d.ts +5 -1
  561. package/dist/api/resources/projects/client/Client.js +6 -2
  562. package/dist/api/resources/projects/client/requests/ProjectsListRequest.d.ts +5 -1
  563. package/dist/api/resources/providers/client/Client.d.ts +22 -1
  564. package/dist/api/resources/providers/client/Client.js +82 -7
  565. package/dist/api/resources/providers/client/requests/ProvidersListRequest.d.ts +9 -1
  566. package/dist/api/resources/runs/client/Client.d.ts +29 -2
  567. package/dist/api/resources/runs/client/Client.js +117 -11
  568. package/dist/api/resources/runs/client/requests/RunsListActiveRequest.d.ts +4 -1
  569. package/dist/api/resources/runs/client/requests/RunsListRequest.d.ts +29 -6
  570. package/dist/api/resources/runs/resources/index.d.ts +2 -1
  571. package/dist/api/resources/runs/resources/index.js +3 -2
  572. package/dist/api/resources/runs/resources/messages/client/Client.d.ts +7 -1
  573. package/dist/api/resources/runs/resources/messages/client/Client.js +12 -3
  574. package/dist/api/resources/runs/resources/messages/client/requests/MessagesListRequest.d.ts +11 -1
  575. package/dist/api/resources/runs/resources/steps/client/Client.d.ts +8 -12
  576. package/dist/api/resources/runs/resources/steps/client/Client.js +17 -16
  577. package/dist/api/resources/runs/resources/steps/client/requests/StepsListRequest.d.ts +14 -3
  578. package/dist/api/resources/runs/resources/steps/index.d.ts +1 -0
  579. package/dist/api/resources/runs/resources/steps/index.js +1 -0
  580. package/dist/api/resources/runs/resources/steps/types/StepsListRequestOrder.d.ts +11 -0
  581. package/dist/api/resources/runs/resources/steps/types/StepsListRequestOrder.js +10 -0
  582. package/dist/api/resources/runs/resources/steps/types/index.d.ts +1 -0
  583. package/dist/api/resources/runs/resources/steps/types/index.js +17 -0
  584. package/dist/api/resources/runs/resources/usage/client/Client.js +1 -1
  585. package/dist/api/resources/runs/types/RunsListRequestOrder.d.ts +11 -0
  586. package/dist/api/resources/runs/types/RunsListRequestOrder.js +10 -0
  587. package/dist/api/resources/runs/types/index.d.ts +1 -0
  588. package/dist/api/resources/runs/types/index.js +1 -0
  589. package/dist/api/resources/sources/client/Client.d.ts +6 -2
  590. package/dist/api/resources/sources/client/Client.js +16 -12
  591. package/dist/api/resources/sources/client/requests/GetFileMetadataRequest.d.ts +3 -1
  592. package/dist/api/resources/sources/client/requests/GetSourcesMetadataRequest.d.ts +3 -1
  593. package/dist/api/resources/sources/resources/files/client/Client.d.ts +10 -2
  594. package/dist/api/resources/sources/resources/files/client/Client.js +13 -5
  595. package/dist/api/resources/sources/resources/files/client/requests/BodyUploadFileToSource.d.ts +4 -1
  596. package/dist/api/resources/sources/resources/files/client/requests/FilesListRequest.d.ts +6 -1
  597. package/dist/api/resources/sources/resources/passages/client/Client.d.ts +5 -1
  598. package/dist/api/resources/sources/resources/passages/client/Client.js +6 -2
  599. package/dist/api/resources/sources/resources/passages/client/requests/PassagesListRequest.d.ts +5 -1
  600. package/dist/api/resources/steps/client/Client.d.ts +14 -1
  601. package/dist/api/resources/steps/client/Client.js +16 -3
  602. package/dist/api/resources/steps/client/requests/StepsListRequest.d.ts +14 -1
  603. package/dist/api/resources/steps/resources/feedback/client/Client.js +1 -1
  604. package/dist/api/resources/steps/resources/messages/client/Client.d.ts +7 -1
  605. package/dist/api/resources/steps/resources/messages/client/Client.js +8 -2
  606. package/dist/api/resources/steps/resources/messages/client/requests/MessagesListRequest.d.ts +7 -1
  607. package/dist/api/resources/steps/resources/metrics/client/Client.js +1 -1
  608. package/dist/api/resources/steps/resources/trace/client/Client.js +1 -1
  609. package/dist/api/resources/tags/client/Client.d.ts +9 -1
  610. package/dist/api/resources/tags/client/Client.js +10 -2
  611. package/dist/api/resources/tags/client/requests/TagsListRequest.d.ts +9 -1
  612. package/dist/api/resources/telemetry/client/Client.js +1 -1
  613. package/dist/api/resources/templates/client/Client.d.ts +17 -3
  614. package/dist/api/resources/templates/client/Client.js +30 -16
  615. package/dist/api/resources/templates/client/requests/TemplatesListRequest.d.ts +12 -1
  616. package/dist/api/resources/templates/client/requests/TemplatesListTemplateVersionsRequest.d.ts +4 -1
  617. package/dist/api/resources/templates/resources/agents/client/Client.js +1 -1
  618. package/dist/api/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemLlmConfig.d.ts +1 -0
  619. package/dist/api/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemLlmConfigDisplayName.d.ts +5 -0
  620. package/dist/api/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemLlmConfigDisplayName.js +5 -0
  621. package/dist/api/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemLlmConfigDisplayNameItem.d.ts +4 -0
  622. package/dist/api/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemLlmConfigDisplayNameItem.js +5 -0
  623. package/dist/api/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemSecretsItem.d.ts +1 -0
  624. package/dist/api/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemSecretsItemValueEnc.d.ts +5 -0
  625. package/dist/api/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemSecretsItemValueEnc.js +5 -0
  626. package/dist/api/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemSecretsItemValueEncItem.d.ts +4 -0
  627. package/dist/api/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemSecretsItemValueEncItem.js +5 -0
  628. package/dist/api/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolExecEnvironmentVariablesItem.d.ts +1 -0
  629. package/dist/api/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolExecEnvironmentVariablesItemValueEnc.d.ts +5 -0
  630. package/dist/api/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolExecEnvironmentVariablesItemValueEnc.js +5 -0
  631. package/dist/api/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolExecEnvironmentVariablesItemValueEncItem.d.ts +4 -0
  632. package/dist/api/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolExecEnvironmentVariablesItemValueEncItem.js +5 -0
  633. package/dist/api/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolsItemToolType.d.ts +2 -2
  634. package/dist/api/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolsItemToolType.js +1 -1
  635. package/dist/api/resources/templates/types/index.d.ts +6 -0
  636. package/dist/api/resources/templates/types/index.js +6 -0
  637. package/dist/api/resources/tools/client/Client.d.ts +16 -40
  638. package/dist/api/resources/tools/client/Client.js +33 -246
  639. package/dist/api/resources/tools/client/requests/ToolsCountRequest.d.ts +6 -1
  640. package/dist/api/resources/tools/client/requests/ToolsListRequest.d.ts +10 -1
  641. package/dist/api/resources/voice/client/Client.d.ts +8 -0
  642. package/dist/api/resources/voice/client/Client.js +11 -1
  643. package/dist/api/types/AgentEnvironmentVariable.d.ts +2 -0
  644. package/dist/api/types/Annotation.d.ts +10 -0
  645. package/dist/api/types/Annotation.js +5 -0
  646. package/dist/api/types/AnnotationUrlCitation.d.ts +11 -0
  647. package/dist/api/types/AnnotationUrlCitation.js +5 -0
  648. package/dist/api/types/ApprovalCreate.d.ts +5 -2
  649. package/dist/api/types/ApprovalCreateApprovalsItem.d.ts +5 -0
  650. package/dist/api/types/ApprovalCreateApprovalsItem.js +5 -0
  651. package/dist/api/types/ApprovalResponseMessage.d.ts +5 -2
  652. package/dist/api/types/ApprovalResponseMessageApprovalsItem.d.ts +5 -0
  653. package/dist/api/types/ApprovalResponseMessageApprovalsItem.js +5 -0
  654. package/dist/api/types/ApprovalReturn.d.ts +12 -0
  655. package/dist/api/types/ApprovalReturn.js +5 -0
  656. package/{api/resources/agents/resources/templates/types/TemplatesMigrateResponse.d.ts → dist/api/types/Audio.d.ts} +2 -2
  657. package/dist/api/types/Audio.js +5 -0
  658. package/dist/api/types/ChatCompletion.d.ts +16 -0
  659. package/dist/api/types/ChatCompletion.js +5 -0
  660. package/dist/api/types/ChatCompletionAssistantMessageParam.d.ts +13 -0
  661. package/dist/api/types/ChatCompletionAssistantMessageParam.js +5 -0
  662. package/dist/api/types/ChatCompletionAssistantMessageParamContent.d.ts +5 -0
  663. package/dist/api/types/ChatCompletionAssistantMessageParamContent.js +5 -0
  664. package/dist/api/types/ChatCompletionAssistantMessageParamContentItem.d.ts +5 -0
  665. package/dist/api/types/ChatCompletionAssistantMessageParamContentItem.js +5 -0
  666. package/dist/api/types/ChatCompletionAssistantMessageParamToolCallsItem.d.ts +5 -0
  667. package/dist/api/types/ChatCompletionAssistantMessageParamToolCallsItem.js +5 -0
  668. package/dist/api/types/ChatCompletionAudio.d.ts +11 -0
  669. package/dist/api/types/ChatCompletionAudio.js +5 -0
  670. package/dist/api/types/ChatCompletionContentPartImageParam.d.ts +8 -0
  671. package/dist/api/types/ChatCompletionContentPartImageParam.js +5 -0
  672. package/dist/api/types/ChatCompletionContentPartInputAudioParam.d.ts +8 -0
  673. package/dist/api/types/ChatCompletionContentPartInputAudioParam.js +5 -0
  674. package/dist/api/types/ChatCompletionContentPartRefusalParam.d.ts +7 -0
  675. package/dist/api/types/ChatCompletionContentPartRefusalParam.js +5 -0
  676. package/dist/api/types/ChatCompletionContentPartTextParam.d.ts +7 -0
  677. package/dist/api/types/ChatCompletionContentPartTextParam.js +5 -0
  678. package/dist/api/types/ChatCompletionDeveloperMessageParam.d.ts +9 -0
  679. package/dist/api/types/ChatCompletionDeveloperMessageParam.js +5 -0
  680. package/dist/api/types/ChatCompletionDeveloperMessageParamContent.d.ts +5 -0
  681. package/dist/api/types/ChatCompletionDeveloperMessageParamContent.js +5 -0
  682. package/dist/api/types/ChatCompletionFunctionMessageParam.d.ts +8 -0
  683. package/dist/api/types/ChatCompletionFunctionMessageParam.js +5 -0
  684. package/dist/api/types/ChatCompletionMessage.d.ts +15 -0
  685. package/dist/api/types/ChatCompletionMessage.js +5 -0
  686. package/dist/api/types/ChatCompletionMessageCustomToolCall.d.ts +11 -0
  687. package/dist/api/types/ChatCompletionMessageCustomToolCall.js +5 -0
  688. package/dist/api/types/ChatCompletionMessageCustomToolCallParam.d.ts +9 -0
  689. package/dist/api/types/ChatCompletionMessageCustomToolCallParam.js +5 -0
  690. package/dist/api/types/ChatCompletionMessageFunctionToolCallInput.d.ts +11 -0
  691. package/dist/api/types/ChatCompletionMessageFunctionToolCallInput.js +5 -0
  692. package/dist/api/types/{ChatCompletionMessageFunctionToolCall.d.ts → ChatCompletionMessageFunctionToolCallOutput.d.ts} +2 -2
  693. package/dist/api/types/ChatCompletionMessageFunctionToolCallOutput.js +5 -0
  694. package/dist/api/types/ChatCompletionMessageFunctionToolCallParam.d.ts +9 -0
  695. package/dist/api/types/ChatCompletionMessageFunctionToolCallParam.js +5 -0
  696. package/dist/api/types/ChatCompletionMessageToolCallsItem.d.ts +5 -0
  697. package/dist/api/types/ChatCompletionMessageToolCallsItem.js +5 -0
  698. package/dist/api/types/ChatCompletionServiceTier.d.ts +11 -0
  699. package/dist/api/types/ChatCompletionServiceTier.js +13 -0
  700. package/dist/api/types/ChatCompletionSystemMessageParam.d.ts +9 -0
  701. package/dist/api/types/ChatCompletionSystemMessageParam.js +5 -0
  702. package/dist/api/types/ChatCompletionSystemMessageParamContent.d.ts +5 -0
  703. package/dist/api/types/ChatCompletionSystemMessageParamContent.js +5 -0
  704. package/dist/api/types/ChatCompletionTokenLogprob.d.ts +12 -0
  705. package/dist/api/types/ChatCompletionTokenLogprob.js +5 -0
  706. package/dist/api/types/ChatCompletionToolMessageParam.d.ts +9 -0
  707. package/dist/api/types/ChatCompletionToolMessageParam.js +5 -0
  708. package/dist/api/types/ChatCompletionToolMessageParamContent.d.ts +5 -0
  709. package/dist/api/types/ChatCompletionToolMessageParamContent.js +5 -0
  710. package/dist/api/types/ChatCompletionUserMessageParam.d.ts +9 -0
  711. package/dist/api/types/ChatCompletionUserMessageParam.js +5 -0
  712. package/dist/api/types/ChatCompletionUserMessageParamContent.d.ts +5 -0
  713. package/dist/api/types/ChatCompletionUserMessageParamContent.js +5 -0
  714. package/dist/api/types/ChatCompletionUserMessageParamContentItem.d.ts +5 -0
  715. package/dist/api/types/ChatCompletionUserMessageParamContentItem.js +5 -0
  716. package/dist/api/types/Choice.d.ts +12 -0
  717. package/dist/api/types/Choice.js +5 -0
  718. package/dist/api/types/ChoiceFinishReason.d.ts +11 -0
  719. package/dist/api/types/ChoiceFinishReason.js +13 -0
  720. package/dist/api/types/ChoiceLogprobs.d.ts +10 -0
  721. package/dist/api/types/ChoiceLogprobs.js +5 -0
  722. package/dist/api/types/CompletionTokensDetails.d.ts +11 -0
  723. package/dist/api/types/CompletionTokensDetails.js +5 -0
  724. package/dist/api/types/CompletionUsage.d.ts +13 -0
  725. package/dist/api/types/CompletionUsage.js +5 -0
  726. package/dist/api/types/CustomInput.d.ts +7 -0
  727. package/dist/api/types/CustomInput.js +5 -0
  728. package/dist/api/types/CustomOutput.d.ts +9 -0
  729. package/dist/api/types/CustomOutput.js +5 -0
  730. package/dist/api/types/FileFile.d.ts +8 -0
  731. package/dist/api/types/FileFile.js +5 -0
  732. package/dist/api/types/File_.d.ts +8 -0
  733. package/dist/api/types/File_.js +5 -0
  734. package/dist/api/types/FunctionCallInput.d.ts +7 -0
  735. package/dist/api/types/FunctionCallInput.js +5 -0
  736. package/dist/api/types/FunctionCallOutput.d.ts +9 -0
  737. package/dist/api/types/FunctionCallOutput.js +5 -0
  738. package/dist/api/types/{Function.d.ts → FunctionOutput.d.ts} +1 -1
  739. package/dist/api/types/FunctionOutput.js +5 -0
  740. package/dist/api/types/ImageUrl.d.ts +8 -0
  741. package/dist/api/types/ImageUrl.js +5 -0
  742. package/dist/api/types/ImageUrlDetail.d.ts +9 -0
  743. package/dist/api/types/ImageUrlDetail.js +11 -0
  744. package/dist/api/types/InputAudio.d.ts +8 -0
  745. package/dist/api/types/InputAudio.js +5 -0
  746. package/dist/api/types/InputAudioFormat.d.ts +8 -0
  747. package/dist/api/types/InputAudioFormat.js +10 -0
  748. package/dist/api/types/InternalTemplateAgentCreate.d.ts +2 -2
  749. package/dist/api/types/LettaSchemasAgentFileAgentSchema.d.ts +2 -2
  750. package/dist/api/types/LettaSchemasAgentFileMessageSchema.d.ts +10 -2
  751. package/dist/api/types/LettaSchemasAgentFileMessageSchemaApprovalsItem.d.ts +5 -0
  752. package/dist/api/types/LettaSchemasAgentFileMessageSchemaApprovalsItem.js +5 -0
  753. package/dist/api/types/LettaSchemasLettaMessageToolReturn.d.ts +12 -0
  754. package/dist/api/types/LettaSchemasLettaMessageToolReturn.js +5 -0
  755. package/dist/api/types/LettaSchemasLettaMessageToolReturnStatus.d.ts +8 -0
  756. package/dist/api/types/LettaSchemasLettaMessageToolReturnStatus.js +10 -0
  757. package/{api/types/ToolReturn.d.ts → dist/api/types/LettaSchemasMessageToolReturn.d.ts} +5 -2
  758. package/dist/api/types/LettaSchemasMessageToolReturn.js +5 -0
  759. package/dist/api/types/{ToolReturnStatus.d.ts → LettaSchemasMessageToolReturnStatus.d.ts} +2 -2
  760. package/dist/api/types/{ToolReturnStatus.js → LettaSchemasMessageToolReturnStatus.js} +2 -2
  761. package/dist/api/types/LlmConfig.d.ts +2 -0
  762. package/dist/api/types/Message.d.ts +4 -2
  763. package/dist/api/types/MessageApprovalsItem.d.ts +5 -0
  764. package/dist/api/types/MessageApprovalsItem.js +5 -0
  765. package/dist/api/types/OmittedReasoningContent.d.ts +2 -0
  766. package/dist/api/types/OpenaiTypesChatChatCompletionMessageFunctionToolCallFunction.d.ts +9 -0
  767. package/dist/api/types/OpenaiTypesChatChatCompletionMessageFunctionToolCallFunction.js +5 -0
  768. package/dist/api/types/OpenaiTypesChatChatCompletionMessageFunctionToolCallParamFunction.d.ts +7 -0
  769. package/dist/api/types/OpenaiTypesChatChatCompletionMessageFunctionToolCallParamFunction.js +5 -0
  770. package/dist/api/types/PromptTokensDetails.d.ts +9 -0
  771. package/dist/api/types/PromptTokensDetails.js +5 -0
  772. package/dist/api/types/Provider.d.ts +4 -0
  773. package/dist/api/types/RunMetrics.d.ts +21 -0
  774. package/dist/api/types/RunMetrics.js +5 -0
  775. package/dist/api/types/SandboxEnvironmentVariable.d.ts +2 -0
  776. package/dist/api/types/TextContent.d.ts +2 -0
  777. package/dist/api/types/ToolCallContent.d.ts +2 -0
  778. package/dist/api/types/ToolCallMessage.d.ts +1 -0
  779. package/dist/api/types/ToolCallMessageToolCalls.d.ts +5 -0
  780. package/dist/api/types/ToolCallMessageToolCalls.js +5 -0
  781. package/dist/api/types/ToolReturnMessage.d.ts +7 -5
  782. package/dist/api/types/ToolType.d.ts +2 -2
  783. package/dist/api/types/ToolType.js +1 -1
  784. package/dist/api/types/TopLogprob.d.ts +10 -0
  785. package/dist/api/types/TopLogprob.js +5 -0
  786. package/dist/api/types/index.d.ts +63 -11
  787. package/dist/api/types/index.js +63 -11
  788. package/dist/serialization/resources/agents/resources/blocks/index.d.ts +1 -0
  789. package/dist/serialization/resources/agents/resources/blocks/index.js +1 -0
  790. package/dist/serialization/resources/agents/resources/blocks/types/BlocksListRequestOrder.d.ts +10 -0
  791. package/dist/serialization/resources/agents/resources/{templates/types/TemplatesMigrateResponse.js → blocks/types/BlocksListRequestOrder.js} +2 -4
  792. package/dist/serialization/resources/agents/resources/blocks/types/index.d.ts +1 -0
  793. package/dist/serialization/resources/agents/resources/blocks/types/index.js +17 -0
  794. package/dist/serialization/resources/agents/resources/files/index.d.ts +1 -0
  795. package/dist/serialization/resources/agents/resources/files/index.js +1 -0
  796. package/dist/serialization/resources/agents/resources/files/types/FilesListRequestOrder.d.ts +10 -0
  797. package/{serialization/resources/agents/resources/templates/types/TemplatesMigrateResponse.js → dist/serialization/resources/agents/resources/files/types/FilesListRequestOrder.js} +2 -4
  798. package/dist/serialization/resources/agents/resources/files/types/index.d.ts +1 -0
  799. package/dist/serialization/resources/agents/resources/files/types/index.js +17 -0
  800. package/dist/serialization/resources/agents/resources/folders/index.d.ts +1 -0
  801. package/dist/serialization/resources/agents/resources/folders/index.js +1 -0
  802. package/dist/serialization/resources/agents/resources/folders/types/FoldersListRequestOrder.d.ts +10 -0
  803. package/dist/serialization/resources/agents/resources/folders/types/FoldersListRequestOrder.js +41 -0
  804. package/dist/serialization/resources/agents/resources/folders/types/index.d.ts +1 -0
  805. package/dist/serialization/resources/agents/resources/folders/types/index.js +17 -0
  806. package/dist/serialization/resources/agents/resources/groups/index.d.ts +1 -0
  807. package/dist/serialization/resources/agents/resources/groups/index.js +1 -0
  808. package/dist/serialization/resources/agents/resources/groups/types/GroupsListRequestOrder.d.ts +10 -0
  809. package/dist/serialization/resources/agents/resources/groups/types/GroupsListRequestOrder.js +41 -0
  810. package/dist/serialization/resources/agents/resources/groups/types/index.d.ts +1 -0
  811. package/dist/serialization/resources/agents/resources/groups/types/index.js +17 -0
  812. package/dist/serialization/resources/agents/resources/index.d.ts +12 -9
  813. package/dist/serialization/resources/agents/resources/index.js +13 -10
  814. package/dist/serialization/resources/agents/resources/messages/types/MessagesListRequestOrder.d.ts +10 -0
  815. package/dist/serialization/resources/agents/resources/messages/types/MessagesListRequestOrder.js +41 -0
  816. package/dist/serialization/resources/agents/resources/messages/types/index.d.ts +1 -0
  817. package/dist/serialization/resources/agents/resources/messages/types/index.js +1 -0
  818. package/dist/serialization/resources/agents/resources/sources/index.d.ts +1 -0
  819. package/dist/serialization/resources/agents/resources/sources/index.js +1 -0
  820. package/dist/serialization/resources/agents/resources/sources/types/SourcesListRequestOrder.d.ts +10 -0
  821. package/dist/serialization/resources/agents/resources/sources/types/SourcesListRequestOrder.js +41 -0
  822. package/dist/serialization/resources/agents/resources/sources/types/index.d.ts +1 -0
  823. package/dist/serialization/resources/agents/resources/sources/types/index.js +17 -0
  824. package/dist/serialization/resources/agents/resources/tools/index.d.ts +1 -0
  825. package/dist/serialization/resources/agents/resources/tools/index.js +1 -0
  826. package/dist/serialization/resources/agents/resources/tools/types/ToolsListRequestOrder.d.ts +10 -0
  827. package/dist/serialization/resources/agents/resources/tools/types/ToolsListRequestOrder.js +41 -0
  828. package/dist/serialization/resources/agents/resources/tools/types/index.d.ts +1 -0
  829. package/dist/serialization/resources/agents/resources/tools/types/index.js +17 -0
  830. package/dist/serialization/resources/chat/client/requests/ChatCompletionRequest.d.ts +24 -0
  831. package/dist/serialization/resources/{agents/resources/templates/client/requests/TemplatesMigrateRequest.js → chat/client/requests/ChatCompletionRequest.js} +16 -6
  832. package/dist/serialization/resources/chat/client/requests/index.d.ts +1 -0
  833. package/dist/serialization/resources/chat/client/requests/index.js +5 -0
  834. package/dist/serialization/resources/chat/types/ChatCompletionRequestMessagesItem.d.ts +16 -0
  835. package/dist/serialization/resources/chat/types/ChatCompletionRequestMessagesItem.js +54 -0
  836. package/dist/serialization/resources/chat/types/ChatCompletionRequestStop.d.ts +10 -0
  837. package/dist/serialization/resources/chat/types/ChatCompletionRequestStop.js +44 -0
  838. package/dist/serialization/resources/chat/types/index.d.ts +2 -0
  839. package/dist/serialization/resources/chat/types/index.js +18 -0
  840. package/dist/serialization/resources/index.d.ts +5 -1
  841. package/dist/serialization/resources/index.js +6 -2
  842. package/dist/serialization/resources/jobs/index.d.ts +1 -0
  843. package/dist/serialization/resources/jobs/index.js +1 -0
  844. package/dist/serialization/resources/jobs/types/JobsListRequestOrder.d.ts +10 -0
  845. package/{serialization/resources/tools/client/listComposioApps.js → dist/serialization/resources/jobs/types/JobsListRequestOrder.js} +2 -3
  846. package/dist/serialization/resources/jobs/types/index.d.ts +1 -0
  847. package/dist/serialization/resources/jobs/types/index.js +17 -0
  848. package/dist/serialization/resources/runs/resources/index.d.ts +1 -0
  849. package/dist/serialization/resources/runs/resources/index.js +1 -0
  850. package/dist/serialization/resources/runs/resources/steps/index.d.ts +1 -0
  851. package/dist/serialization/resources/runs/resources/steps/index.js +1 -0
  852. package/dist/serialization/resources/runs/resources/steps/types/StepsListRequestOrder.d.ts +10 -0
  853. package/dist/serialization/resources/runs/resources/steps/types/StepsListRequestOrder.js +41 -0
  854. package/dist/serialization/resources/runs/resources/steps/types/index.d.ts +1 -0
  855. package/dist/serialization/resources/runs/resources/steps/types/index.js +17 -0
  856. package/dist/serialization/resources/runs/types/RunsListRequestOrder.d.ts +10 -0
  857. package/dist/serialization/resources/{tools/client/listComposioApps.js → runs/types/RunsListRequestOrder.js} +2 -3
  858. package/dist/serialization/resources/runs/types/index.d.ts +1 -0
  859. package/dist/serialization/resources/runs/types/index.js +1 -0
  860. package/dist/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemLlmConfig.d.ts +2 -0
  861. package/dist/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemLlmConfig.js +2 -0
  862. package/dist/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemLlmConfigDisplayName.d.ts +11 -0
  863. package/dist/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemLlmConfigDisplayName.js +47 -0
  864. package/dist/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemLlmConfigDisplayNameItem.d.ts +10 -0
  865. package/dist/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemLlmConfigDisplayNameItem.js +41 -0
  866. package/dist/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemSecretsItem.d.ts +2 -0
  867. package/dist/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemSecretsItem.js +2 -0
  868. package/dist/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemSecretsItemValueEnc.d.ts +11 -0
  869. package/dist/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemSecretsItemValueEnc.js +47 -0
  870. package/dist/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemSecretsItemValueEncItem.d.ts +10 -0
  871. package/dist/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemSecretsItemValueEncItem.js +41 -0
  872. package/dist/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolExecEnvironmentVariablesItem.d.ts +2 -0
  873. package/dist/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolExecEnvironmentVariablesItem.js +2 -0
  874. package/dist/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolExecEnvironmentVariablesItemValueEnc.d.ts +11 -0
  875. package/dist/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolExecEnvironmentVariablesItemValueEnc.js +47 -0
  876. package/dist/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolExecEnvironmentVariablesItemValueEncItem.d.ts +10 -0
  877. package/dist/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolExecEnvironmentVariablesItemValueEncItem.js +41 -0
  878. package/dist/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolsItemToolType.d.ts +1 -1
  879. package/dist/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolsItemToolType.js +1 -1
  880. package/dist/serialization/resources/templates/types/index.d.ts +6 -0
  881. package/dist/serialization/resources/templates/types/index.js +6 -0
  882. package/dist/serialization/resources/tools/client/index.d.ts +0 -2
  883. package/dist/serialization/resources/tools/client/index.js +1 -3
  884. package/dist/serialization/types/AgentEnvironmentVariable.d.ts +1 -0
  885. package/dist/serialization/types/AgentEnvironmentVariable.js +1 -0
  886. package/dist/serialization/types/Annotation.d.ts +15 -0
  887. package/dist/serialization/types/Annotation.js +47 -0
  888. package/dist/serialization/types/AnnotationUrlCitation.d.ts +16 -0
  889. package/dist/serialization/types/AnnotationUrlCitation.js +48 -0
  890. package/dist/serialization/types/ApprovalCreate.d.ts +4 -2
  891. package/dist/serialization/types/ApprovalCreate.js +4 -2
  892. package/dist/serialization/types/ApprovalCreateApprovalsItem.d.ts +12 -0
  893. package/dist/serialization/types/ApprovalCreateApprovalsItem.js +43 -0
  894. package/dist/serialization/types/ApprovalResponseMessage.d.ts +4 -2
  895. package/dist/serialization/types/ApprovalResponseMessage.js +4 -2
  896. package/dist/serialization/types/ApprovalResponseMessageApprovalsItem.d.ts +12 -0
  897. package/dist/serialization/types/ApprovalResponseMessageApprovalsItem.js +43 -0
  898. package/dist/serialization/types/ApprovalReturn.d.ts +15 -0
  899. package/dist/serialization/types/ApprovalReturn.js +46 -0
  900. package/dist/serialization/types/Audio.d.ts +12 -0
  901. package/dist/serialization/types/{ToolReturnStatus.js → Audio.js} +4 -2
  902. package/dist/serialization/types/ChatCompletion.d.ts +23 -0
  903. package/dist/serialization/types/ChatCompletion.js +55 -0
  904. package/dist/serialization/types/ChatCompletionAssistantMessageParam.d.ts +22 -0
  905. package/dist/serialization/types/{ActionModel.js → ChatCompletionAssistantMessageParam.js} +13 -16
  906. package/dist/serialization/types/ChatCompletionAssistantMessageParamContent.d.ts +11 -0
  907. package/dist/serialization/types/ChatCompletionAssistantMessageParamContent.js +45 -0
  908. package/dist/serialization/types/ChatCompletionAssistantMessageParamContentItem.d.ts +12 -0
  909. package/dist/serialization/types/ChatCompletionAssistantMessageParamContentItem.js +46 -0
  910. package/dist/serialization/types/ChatCompletionAssistantMessageParamToolCallsItem.d.ts +12 -0
  911. package/dist/serialization/types/ChatCompletionAssistantMessageParamToolCallsItem.js +46 -0
  912. package/dist/serialization/types/ChatCompletionAudio.d.ts +16 -0
  913. package/dist/serialization/types/ChatCompletionAudio.js +48 -0
  914. package/dist/serialization/types/ChatCompletionContentPartImageParam.d.ts +14 -0
  915. package/dist/serialization/types/ChatCompletionContentPartImageParam.js +45 -0
  916. package/dist/serialization/types/ChatCompletionContentPartInputAudioParam.d.ts +14 -0
  917. package/dist/serialization/types/ChatCompletionContentPartInputAudioParam.js +45 -0
  918. package/dist/serialization/types/ChatCompletionContentPartRefusalParam.d.ts +13 -0
  919. package/dist/serialization/types/ChatCompletionContentPartRefusalParam.js +44 -0
  920. package/dist/serialization/types/ChatCompletionContentPartTextParam.d.ts +13 -0
  921. package/dist/serialization/types/ChatCompletionContentPartTextParam.js +44 -0
  922. package/dist/serialization/types/ChatCompletionDeveloperMessageParam.d.ts +15 -0
  923. package/dist/serialization/types/{ActionParametersModel.js → ChatCompletionDeveloperMessageParam.js} +6 -7
  924. package/dist/serialization/types/ChatCompletionDeveloperMessageParamContent.d.ts +11 -0
  925. package/dist/serialization/types/ChatCompletionDeveloperMessageParamContent.js +45 -0
  926. package/dist/serialization/types/ChatCompletionFunctionMessageParam.d.ts +14 -0
  927. package/dist/serialization/types/ChatCompletionFunctionMessageParam.js +45 -0
  928. package/dist/serialization/types/ChatCompletionMessage.d.ts +23 -0
  929. package/dist/serialization/types/ChatCompletionMessage.js +55 -0
  930. package/dist/serialization/types/ChatCompletionMessageCustomToolCall.d.ts +16 -0
  931. package/dist/serialization/types/ChatCompletionMessageCustomToolCall.js +48 -0
  932. package/dist/serialization/types/ChatCompletionMessageCustomToolCallParam.d.ts +15 -0
  933. package/dist/serialization/types/ChatCompletionMessageCustomToolCallParam.js +46 -0
  934. package/dist/serialization/types/ChatCompletionMessageFunctionToolCallInput.d.ts +16 -0
  935. package/dist/serialization/types/ChatCompletionMessageFunctionToolCallInput.js +48 -0
  936. package/dist/serialization/types/ChatCompletionMessageFunctionToolCallOutput.d.ts +16 -0
  937. package/dist/serialization/types/{ChatCompletionMessageFunctionToolCall.js → ChatCompletionMessageFunctionToolCallOutput.js} +4 -4
  938. package/dist/serialization/types/ChatCompletionMessageFunctionToolCallParam.d.ts +15 -0
  939. package/dist/serialization/types/ChatCompletionMessageFunctionToolCallParam.js +46 -0
  940. package/dist/serialization/types/ChatCompletionMessageToolCallsItem.d.ts +12 -0
  941. package/dist/serialization/types/ChatCompletionMessageToolCallsItem.js +46 -0
  942. package/dist/serialization/types/ChatCompletionServiceTier.d.ts +10 -0
  943. package/dist/serialization/types/ChatCompletionServiceTier.js +41 -0
  944. package/dist/serialization/types/ChatCompletionSystemMessageParam.d.ts +15 -0
  945. package/dist/serialization/types/ChatCompletionSystemMessageParam.js +46 -0
  946. package/dist/serialization/types/ChatCompletionSystemMessageParamContent.d.ts +11 -0
  947. package/dist/serialization/types/ChatCompletionSystemMessageParamContent.js +45 -0
  948. package/dist/serialization/types/ChatCompletionTokenLogprob.d.ts +17 -0
  949. package/dist/serialization/types/ChatCompletionTokenLogprob.js +49 -0
  950. package/dist/serialization/types/ChatCompletionToolMessageParam.d.ts +15 -0
  951. package/{serialization/types/ActionParametersModel.js → dist/serialization/types/ChatCompletionToolMessageParam.js} +6 -7
  952. package/dist/serialization/types/ChatCompletionToolMessageParamContent.d.ts +11 -0
  953. package/dist/serialization/types/ChatCompletionToolMessageParamContent.js +45 -0
  954. package/dist/serialization/types/ChatCompletionUserMessageParam.d.ts +15 -0
  955. package/{serialization/types/ToolReturn.js → dist/serialization/types/ChatCompletionUserMessageParam.js} +6 -6
  956. package/dist/serialization/types/ChatCompletionUserMessageParamContent.d.ts +11 -0
  957. package/dist/serialization/types/ChatCompletionUserMessageParamContent.js +45 -0
  958. package/dist/serialization/types/ChatCompletionUserMessageParamContentItem.d.ts +14 -0
  959. package/dist/serialization/types/ChatCompletionUserMessageParamContentItem.js +50 -0
  960. package/dist/serialization/types/Choice.d.ts +19 -0
  961. package/dist/serialization/types/Choice.js +51 -0
  962. package/dist/serialization/types/ChoiceFinishReason.d.ts +10 -0
  963. package/dist/serialization/types/ChoiceFinishReason.js +41 -0
  964. package/dist/serialization/types/ChoiceLogprobs.d.ts +15 -0
  965. package/dist/serialization/types/ChoiceLogprobs.js +47 -0
  966. package/dist/serialization/types/CompletionTokensDetails.d.ts +16 -0
  967. package/dist/serialization/types/CompletionTokensDetails.js +48 -0
  968. package/dist/serialization/types/CompletionUsage.d.ts +19 -0
  969. package/dist/serialization/types/CompletionUsage.js +51 -0
  970. package/dist/serialization/types/CustomInput.d.ts +13 -0
  971. package/dist/serialization/types/CustomInput.js +44 -0
  972. package/dist/serialization/types/CustomOutput.d.ts +14 -0
  973. package/dist/serialization/types/CustomOutput.js +46 -0
  974. package/dist/serialization/types/FileFile.d.ts +14 -0
  975. package/dist/serialization/types/FileFile.js +45 -0
  976. package/dist/serialization/types/File_.d.ts +14 -0
  977. package/dist/serialization/types/File_.js +45 -0
  978. package/dist/serialization/types/FunctionCallInput.d.ts +13 -0
  979. package/dist/serialization/types/FunctionCallInput.js +44 -0
  980. package/dist/serialization/types/FunctionCallOutput.d.ts +14 -0
  981. package/dist/serialization/types/FunctionCallOutput.js +46 -0
  982. package/{serialization/types/Function.d.ts → dist/serialization/types/FunctionOutput.d.ts} +2 -2
  983. package/{serialization/types/Function.js → dist/serialization/types/FunctionOutput.js} +2 -2
  984. package/dist/serialization/types/ImageUrl.d.ts +14 -0
  985. package/dist/serialization/types/ImageUrl.js +45 -0
  986. package/dist/serialization/types/ImageUrlDetail.d.ts +10 -0
  987. package/{serialization/types/ToolReturnStatus.js → dist/serialization/types/ImageUrlDetail.js} +2 -2
  988. package/dist/serialization/types/InputAudio.d.ts +14 -0
  989. package/dist/serialization/types/InputAudio.js +45 -0
  990. package/dist/serialization/types/InputAudioFormat.d.ts +10 -0
  991. package/dist/serialization/types/InputAudioFormat.js +41 -0
  992. package/dist/serialization/types/LettaSchemasAgentFileMessageSchema.d.ts +9 -4
  993. package/dist/serialization/types/LettaSchemasAgentFileMessageSchema.js +9 -4
  994. package/dist/serialization/types/LettaSchemasAgentFileMessageSchemaApprovalsItem.d.ts +12 -0
  995. package/dist/serialization/types/LettaSchemasAgentFileMessageSchemaApprovalsItem.js +43 -0
  996. package/dist/serialization/types/LettaSchemasLettaMessageToolReturn.d.ts +18 -0
  997. package/dist/serialization/types/{AuthSchemeField.js → LettaSchemasLettaMessageToolReturn.js} +9 -10
  998. package/dist/serialization/types/LettaSchemasLettaMessageToolReturnStatus.d.ts +10 -0
  999. package/dist/serialization/types/LettaSchemasLettaMessageToolReturnStatus.js +41 -0
  1000. package/dist/serialization/types/LettaSchemasMessageToolReturn.d.ts +17 -0
  1001. package/dist/serialization/types/LettaSchemasMessageToolReturn.js +48 -0
  1002. package/dist/serialization/types/LettaSchemasMessageToolReturnStatus.d.ts +10 -0
  1003. package/dist/serialization/types/LettaSchemasMessageToolReturnStatus.js +41 -0
  1004. package/dist/serialization/types/LlmConfig.d.ts +1 -0
  1005. package/dist/serialization/types/LlmConfig.js +1 -0
  1006. package/dist/serialization/types/Message.d.ts +6 -4
  1007. package/dist/serialization/types/Message.js +6 -4
  1008. package/dist/serialization/types/MessageApprovalsItem.d.ts +12 -0
  1009. package/dist/serialization/types/{ToolReturn.js → MessageApprovalsItem.js} +4 -7
  1010. package/dist/serialization/types/OmittedReasoningContent.d.ts +1 -0
  1011. package/dist/serialization/types/OmittedReasoningContent.js +1 -0
  1012. package/dist/serialization/types/OpenaiTypesChatChatCompletionMessageFunctionToolCallFunction.d.ts +14 -0
  1013. package/dist/serialization/types/OpenaiTypesChatChatCompletionMessageFunctionToolCallFunction.js +46 -0
  1014. package/dist/serialization/types/OpenaiTypesChatChatCompletionMessageFunctionToolCallParamFunction.d.ts +13 -0
  1015. package/dist/serialization/types/OpenaiTypesChatChatCompletionMessageFunctionToolCallParamFunction.js +44 -0
  1016. package/dist/serialization/types/PromptTokensDetails.d.ts +14 -0
  1017. package/dist/serialization/types/PromptTokensDetails.js +46 -0
  1018. package/dist/serialization/types/Provider.d.ts +2 -0
  1019. package/dist/serialization/types/Provider.js +2 -0
  1020. package/dist/serialization/types/RunMetrics.d.ts +19 -0
  1021. package/dist/serialization/types/RunMetrics.js +50 -0
  1022. package/dist/serialization/types/SandboxEnvironmentVariable.d.ts +1 -0
  1023. package/dist/serialization/types/SandboxEnvironmentVariable.js +1 -0
  1024. package/dist/serialization/types/TextContent.d.ts +1 -0
  1025. package/dist/serialization/types/TextContent.js +1 -0
  1026. package/dist/serialization/types/ToolCallContent.d.ts +1 -0
  1027. package/dist/serialization/types/ToolCallContent.js +1 -0
  1028. package/dist/serialization/types/ToolCallMessage.d.ts +2 -0
  1029. package/dist/serialization/types/ToolCallMessage.js +2 -0
  1030. package/dist/serialization/types/ToolCallMessageToolCalls.d.ts +12 -0
  1031. package/{serialization/types/AppAuthSchemeAuthMode.js → dist/serialization/types/ToolCallMessageToolCalls.js} +4 -13
  1032. package/dist/serialization/types/ToolReturnMessage.d.ts +2 -0
  1033. package/dist/serialization/types/ToolReturnMessage.js +2 -0
  1034. package/dist/serialization/types/ToolType.d.ts +1 -1
  1035. package/dist/serialization/types/ToolType.js +1 -1
  1036. package/dist/serialization/types/TopLogprob.d.ts +15 -0
  1037. package/dist/serialization/types/TopLogprob.js +47 -0
  1038. package/dist/serialization/types/index.d.ts +63 -11
  1039. package/dist/serialization/types/index.js +63 -11
  1040. package/dist/version.d.ts +1 -1
  1041. package/dist/version.js +1 -1
  1042. package/package.json +1 -1
  1043. package/reference.md +639 -455
  1044. package/serialization/resources/agents/resources/blocks/index.d.ts +1 -0
  1045. package/serialization/resources/agents/resources/blocks/index.js +1 -0
  1046. package/serialization/resources/agents/resources/blocks/types/BlocksListRequestOrder.d.ts +10 -0
  1047. package/serialization/resources/agents/resources/blocks/types/BlocksListRequestOrder.js +41 -0
  1048. package/serialization/resources/agents/resources/blocks/types/index.d.ts +1 -0
  1049. package/serialization/resources/agents/resources/blocks/types/index.js +17 -0
  1050. package/serialization/resources/agents/resources/files/index.d.ts +1 -0
  1051. package/serialization/resources/agents/resources/files/index.js +1 -0
  1052. package/serialization/resources/agents/resources/files/types/FilesListRequestOrder.d.ts +10 -0
  1053. package/serialization/resources/agents/resources/files/types/FilesListRequestOrder.js +41 -0
  1054. package/serialization/resources/agents/resources/files/types/index.d.ts +1 -0
  1055. package/serialization/resources/agents/resources/files/types/index.js +17 -0
  1056. package/serialization/resources/agents/resources/folders/index.d.ts +1 -0
  1057. package/serialization/resources/agents/resources/folders/index.js +1 -0
  1058. package/serialization/resources/agents/resources/folders/types/FoldersListRequestOrder.d.ts +10 -0
  1059. package/serialization/resources/agents/resources/folders/types/FoldersListRequestOrder.js +41 -0
  1060. package/serialization/resources/agents/resources/folders/types/index.d.ts +1 -0
  1061. package/serialization/resources/agents/resources/folders/types/index.js +17 -0
  1062. package/serialization/resources/agents/resources/groups/index.d.ts +1 -0
  1063. package/serialization/resources/agents/resources/groups/index.js +1 -0
  1064. package/serialization/resources/agents/resources/groups/types/GroupsListRequestOrder.d.ts +10 -0
  1065. package/serialization/resources/agents/resources/groups/types/GroupsListRequestOrder.js +41 -0
  1066. package/serialization/resources/agents/resources/groups/types/index.d.ts +1 -0
  1067. package/serialization/resources/agents/resources/groups/types/index.js +17 -0
  1068. package/serialization/resources/agents/resources/index.d.ts +12 -9
  1069. package/serialization/resources/agents/resources/index.js +13 -10
  1070. package/serialization/resources/agents/resources/messages/types/MessagesListRequestOrder.d.ts +10 -0
  1071. package/serialization/resources/agents/resources/messages/types/MessagesListRequestOrder.js +41 -0
  1072. package/serialization/resources/agents/resources/messages/types/index.d.ts +1 -0
  1073. package/serialization/resources/agents/resources/messages/types/index.js +1 -0
  1074. package/serialization/resources/agents/resources/sources/index.d.ts +1 -0
  1075. package/serialization/resources/agents/resources/sources/index.js +1 -0
  1076. package/serialization/resources/agents/resources/sources/types/SourcesListRequestOrder.d.ts +10 -0
  1077. package/serialization/resources/agents/resources/sources/types/SourcesListRequestOrder.js +41 -0
  1078. package/serialization/resources/agents/resources/sources/types/index.d.ts +1 -0
  1079. package/serialization/resources/agents/resources/sources/types/index.js +17 -0
  1080. package/serialization/resources/agents/resources/tools/index.d.ts +1 -0
  1081. package/serialization/resources/agents/resources/tools/index.js +1 -0
  1082. package/serialization/resources/agents/resources/tools/types/ToolsListRequestOrder.d.ts +10 -0
  1083. package/serialization/resources/agents/resources/tools/types/ToolsListRequestOrder.js +41 -0
  1084. package/serialization/resources/agents/resources/tools/types/index.d.ts +1 -0
  1085. package/serialization/resources/agents/resources/tools/types/index.js +17 -0
  1086. package/serialization/resources/chat/client/requests/ChatCompletionRequest.d.ts +24 -0
  1087. package/serialization/resources/chat/client/requests/ChatCompletionRequest.js +55 -0
  1088. package/serialization/resources/chat/client/requests/index.d.ts +1 -0
  1089. package/serialization/resources/chat/client/requests/index.js +5 -0
  1090. package/serialization/resources/chat/types/ChatCompletionRequestMessagesItem.d.ts +16 -0
  1091. package/serialization/resources/chat/types/ChatCompletionRequestMessagesItem.js +54 -0
  1092. package/serialization/resources/chat/types/ChatCompletionRequestStop.d.ts +10 -0
  1093. package/serialization/resources/chat/types/ChatCompletionRequestStop.js +44 -0
  1094. package/serialization/resources/chat/types/index.d.ts +2 -0
  1095. package/serialization/resources/chat/types/index.js +18 -0
  1096. package/serialization/resources/index.d.ts +5 -1
  1097. package/serialization/resources/index.js +6 -2
  1098. package/serialization/resources/jobs/index.d.ts +1 -0
  1099. package/serialization/resources/jobs/index.js +1 -0
  1100. package/serialization/resources/jobs/types/JobsListRequestOrder.d.ts +10 -0
  1101. package/serialization/resources/{tools/client/listComposioActionsByApp.js → jobs/types/JobsListRequestOrder.js} +2 -3
  1102. package/serialization/resources/jobs/types/index.d.ts +1 -0
  1103. package/serialization/resources/jobs/types/index.js +17 -0
  1104. package/serialization/resources/runs/resources/index.d.ts +1 -0
  1105. package/serialization/resources/runs/resources/index.js +1 -0
  1106. package/serialization/resources/runs/resources/steps/index.d.ts +1 -0
  1107. package/serialization/resources/runs/resources/steps/index.js +1 -0
  1108. package/serialization/resources/runs/resources/steps/types/StepsListRequestOrder.d.ts +10 -0
  1109. package/serialization/resources/runs/resources/steps/types/StepsListRequestOrder.js +41 -0
  1110. package/serialization/resources/runs/resources/steps/types/index.d.ts +1 -0
  1111. package/serialization/resources/runs/resources/steps/types/index.js +17 -0
  1112. package/serialization/resources/runs/types/RunsListRequestOrder.d.ts +10 -0
  1113. package/{dist/serialization/resources/tools/client/listComposioActionsByApp.js → serialization/resources/runs/types/RunsListRequestOrder.js} +2 -3
  1114. package/serialization/resources/runs/types/index.d.ts +1 -0
  1115. package/serialization/resources/runs/types/index.js +1 -0
  1116. package/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemLlmConfig.d.ts +2 -0
  1117. package/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemLlmConfig.js +2 -0
  1118. package/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemLlmConfigDisplayName.d.ts +11 -0
  1119. package/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemLlmConfigDisplayName.js +47 -0
  1120. package/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemLlmConfigDisplayNameItem.d.ts +10 -0
  1121. package/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemLlmConfigDisplayNameItem.js +41 -0
  1122. package/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemSecretsItem.d.ts +2 -0
  1123. package/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemSecretsItem.js +2 -0
  1124. package/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemSecretsItemValueEnc.d.ts +11 -0
  1125. package/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemSecretsItemValueEnc.js +47 -0
  1126. package/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemSecretsItemValueEncItem.d.ts +10 -0
  1127. package/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemSecretsItemValueEncItem.js +41 -0
  1128. package/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolExecEnvironmentVariablesItem.d.ts +2 -0
  1129. package/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolExecEnvironmentVariablesItem.js +2 -0
  1130. package/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolExecEnvironmentVariablesItemValueEnc.d.ts +11 -0
  1131. package/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolExecEnvironmentVariablesItemValueEnc.js +47 -0
  1132. package/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolExecEnvironmentVariablesItemValueEncItem.d.ts +10 -0
  1133. package/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolExecEnvironmentVariablesItemValueEncItem.js +41 -0
  1134. package/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolsItemToolType.d.ts +1 -1
  1135. package/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolsItemToolType.js +1 -1
  1136. package/serialization/resources/templates/types/index.d.ts +6 -0
  1137. package/serialization/resources/templates/types/index.js +6 -0
  1138. package/serialization/resources/tools/client/index.d.ts +0 -2
  1139. package/serialization/resources/tools/client/index.js +1 -3
  1140. package/serialization/types/AgentEnvironmentVariable.d.ts +1 -0
  1141. package/serialization/types/AgentEnvironmentVariable.js +1 -0
  1142. package/serialization/types/Annotation.d.ts +15 -0
  1143. package/serialization/types/Annotation.js +47 -0
  1144. package/serialization/types/AnnotationUrlCitation.d.ts +16 -0
  1145. package/serialization/types/AnnotationUrlCitation.js +48 -0
  1146. package/serialization/types/ApprovalCreate.d.ts +4 -2
  1147. package/serialization/types/ApprovalCreate.js +4 -2
  1148. package/serialization/types/ApprovalCreateApprovalsItem.d.ts +12 -0
  1149. package/serialization/types/ApprovalCreateApprovalsItem.js +43 -0
  1150. package/serialization/types/ApprovalResponseMessage.d.ts +4 -2
  1151. package/serialization/types/ApprovalResponseMessage.js +4 -2
  1152. package/serialization/types/ApprovalResponseMessageApprovalsItem.d.ts +12 -0
  1153. package/serialization/types/ApprovalResponseMessageApprovalsItem.js +43 -0
  1154. package/serialization/types/ApprovalReturn.d.ts +15 -0
  1155. package/serialization/types/ApprovalReturn.js +46 -0
  1156. package/serialization/types/Audio.d.ts +12 -0
  1157. package/serialization/types/Audio.js +43 -0
  1158. package/serialization/types/ChatCompletion.d.ts +23 -0
  1159. package/serialization/types/ChatCompletion.js +55 -0
  1160. package/serialization/types/ChatCompletionAssistantMessageParam.d.ts +22 -0
  1161. package/serialization/types/ChatCompletionAssistantMessageParam.js +53 -0
  1162. package/serialization/types/ChatCompletionAssistantMessageParamContent.d.ts +11 -0
  1163. package/serialization/types/ChatCompletionAssistantMessageParamContent.js +45 -0
  1164. package/serialization/types/ChatCompletionAssistantMessageParamContentItem.d.ts +12 -0
  1165. package/serialization/types/ChatCompletionAssistantMessageParamContentItem.js +46 -0
  1166. package/serialization/types/ChatCompletionAssistantMessageParamToolCallsItem.d.ts +12 -0
  1167. package/serialization/types/ChatCompletionAssistantMessageParamToolCallsItem.js +46 -0
  1168. package/serialization/types/ChatCompletionAudio.d.ts +16 -0
  1169. package/serialization/types/ChatCompletionAudio.js +48 -0
  1170. package/serialization/types/ChatCompletionContentPartImageParam.d.ts +14 -0
  1171. package/serialization/types/ChatCompletionContentPartImageParam.js +45 -0
  1172. package/serialization/types/ChatCompletionContentPartInputAudioParam.d.ts +14 -0
  1173. package/serialization/types/ChatCompletionContentPartInputAudioParam.js +45 -0
  1174. package/serialization/types/ChatCompletionContentPartRefusalParam.d.ts +13 -0
  1175. package/serialization/types/ChatCompletionContentPartRefusalParam.js +44 -0
  1176. package/serialization/types/ChatCompletionContentPartTextParam.d.ts +13 -0
  1177. package/serialization/types/ChatCompletionContentPartTextParam.js +44 -0
  1178. package/serialization/types/ChatCompletionDeveloperMessageParam.d.ts +15 -0
  1179. package/{dist/serialization/types/ActionResponseModel.js → serialization/types/ChatCompletionDeveloperMessageParam.js} +6 -7
  1180. package/serialization/types/ChatCompletionDeveloperMessageParamContent.d.ts +11 -0
  1181. package/serialization/types/ChatCompletionDeveloperMessageParamContent.js +45 -0
  1182. package/serialization/types/ChatCompletionFunctionMessageParam.d.ts +14 -0
  1183. package/serialization/types/ChatCompletionFunctionMessageParam.js +45 -0
  1184. package/serialization/types/ChatCompletionMessage.d.ts +23 -0
  1185. package/serialization/types/ChatCompletionMessage.js +55 -0
  1186. package/serialization/types/ChatCompletionMessageCustomToolCall.d.ts +16 -0
  1187. package/serialization/types/ChatCompletionMessageCustomToolCall.js +48 -0
  1188. package/serialization/types/ChatCompletionMessageCustomToolCallParam.d.ts +15 -0
  1189. package/serialization/types/ChatCompletionMessageCustomToolCallParam.js +46 -0
  1190. package/serialization/types/ChatCompletionMessageFunctionToolCallInput.d.ts +16 -0
  1191. package/serialization/types/ChatCompletionMessageFunctionToolCallInput.js +48 -0
  1192. package/serialization/types/ChatCompletionMessageFunctionToolCallOutput.d.ts +16 -0
  1193. package/serialization/types/{ChatCompletionMessageFunctionToolCall.js → ChatCompletionMessageFunctionToolCallOutput.js} +4 -4
  1194. package/serialization/types/ChatCompletionMessageFunctionToolCallParam.d.ts +15 -0
  1195. package/serialization/types/ChatCompletionMessageFunctionToolCallParam.js +46 -0
  1196. package/serialization/types/ChatCompletionMessageToolCallsItem.d.ts +12 -0
  1197. package/serialization/types/ChatCompletionMessageToolCallsItem.js +46 -0
  1198. package/serialization/types/ChatCompletionServiceTier.d.ts +10 -0
  1199. package/serialization/types/ChatCompletionServiceTier.js +41 -0
  1200. package/serialization/types/ChatCompletionSystemMessageParam.d.ts +15 -0
  1201. package/serialization/types/ChatCompletionSystemMessageParam.js +46 -0
  1202. package/serialization/types/ChatCompletionSystemMessageParamContent.d.ts +11 -0
  1203. package/serialization/types/ChatCompletionSystemMessageParamContent.js +45 -0
  1204. package/serialization/types/ChatCompletionTokenLogprob.d.ts +17 -0
  1205. package/serialization/types/ChatCompletionTokenLogprob.js +49 -0
  1206. package/serialization/types/ChatCompletionToolMessageParam.d.ts +15 -0
  1207. package/serialization/types/ChatCompletionToolMessageParam.js +46 -0
  1208. package/serialization/types/ChatCompletionToolMessageParamContent.d.ts +11 -0
  1209. package/serialization/types/ChatCompletionToolMessageParamContent.js +45 -0
  1210. package/serialization/types/ChatCompletionUserMessageParam.d.ts +15 -0
  1211. package/serialization/types/ChatCompletionUserMessageParam.js +46 -0
  1212. package/serialization/types/ChatCompletionUserMessageParamContent.d.ts +11 -0
  1213. package/serialization/types/ChatCompletionUserMessageParamContent.js +45 -0
  1214. package/serialization/types/ChatCompletionUserMessageParamContentItem.d.ts +14 -0
  1215. package/serialization/types/ChatCompletionUserMessageParamContentItem.js +50 -0
  1216. package/serialization/types/Choice.d.ts +19 -0
  1217. package/serialization/types/Choice.js +51 -0
  1218. package/serialization/types/ChoiceFinishReason.d.ts +10 -0
  1219. package/serialization/types/ChoiceFinishReason.js +41 -0
  1220. package/serialization/types/ChoiceLogprobs.d.ts +15 -0
  1221. package/serialization/types/ChoiceLogprobs.js +47 -0
  1222. package/serialization/types/CompletionTokensDetails.d.ts +16 -0
  1223. package/serialization/types/CompletionTokensDetails.js +48 -0
  1224. package/serialization/types/CompletionUsage.d.ts +19 -0
  1225. package/serialization/types/CompletionUsage.js +51 -0
  1226. package/serialization/types/CustomInput.d.ts +13 -0
  1227. package/serialization/types/CustomInput.js +44 -0
  1228. package/serialization/types/CustomOutput.d.ts +14 -0
  1229. package/serialization/types/CustomOutput.js +46 -0
  1230. package/serialization/types/FileFile.d.ts +14 -0
  1231. package/serialization/types/FileFile.js +45 -0
  1232. package/serialization/types/File_.d.ts +14 -0
  1233. package/serialization/types/File_.js +45 -0
  1234. package/serialization/types/FunctionCallInput.d.ts +13 -0
  1235. package/serialization/types/FunctionCallInput.js +44 -0
  1236. package/serialization/types/FunctionCallOutput.d.ts +14 -0
  1237. package/serialization/types/FunctionCallOutput.js +46 -0
  1238. package/{dist/serialization/types/Function.d.ts → serialization/types/FunctionOutput.d.ts} +2 -2
  1239. package/{dist/serialization/types/Function.js → serialization/types/FunctionOutput.js} +2 -2
  1240. package/serialization/types/ImageUrl.d.ts +14 -0
  1241. package/serialization/types/ImageUrl.js +45 -0
  1242. package/serialization/types/ImageUrlDetail.d.ts +10 -0
  1243. package/serialization/types/ImageUrlDetail.js +41 -0
  1244. package/serialization/types/InputAudio.d.ts +14 -0
  1245. package/serialization/types/InputAudio.js +45 -0
  1246. package/serialization/types/InputAudioFormat.d.ts +10 -0
  1247. package/serialization/types/InputAudioFormat.js +41 -0
  1248. package/serialization/types/LettaSchemasAgentFileMessageSchema.d.ts +9 -4
  1249. package/serialization/types/LettaSchemasAgentFileMessageSchema.js +9 -4
  1250. package/serialization/types/LettaSchemasAgentFileMessageSchemaApprovalsItem.d.ts +12 -0
  1251. package/serialization/types/LettaSchemasAgentFileMessageSchemaApprovalsItem.js +43 -0
  1252. package/serialization/types/LettaSchemasLettaMessageToolReturn.d.ts +18 -0
  1253. package/serialization/types/LettaSchemasLettaMessageToolReturn.js +49 -0
  1254. package/serialization/types/LettaSchemasLettaMessageToolReturnStatus.d.ts +10 -0
  1255. package/serialization/types/LettaSchemasLettaMessageToolReturnStatus.js +41 -0
  1256. package/serialization/types/LettaSchemasMessageToolReturn.d.ts +17 -0
  1257. package/serialization/types/LettaSchemasMessageToolReturn.js +48 -0
  1258. package/serialization/types/LettaSchemasMessageToolReturnStatus.d.ts +10 -0
  1259. package/serialization/types/LettaSchemasMessageToolReturnStatus.js +41 -0
  1260. package/serialization/types/LlmConfig.d.ts +1 -0
  1261. package/serialization/types/LlmConfig.js +1 -0
  1262. package/serialization/types/Message.d.ts +6 -4
  1263. package/serialization/types/Message.js +6 -4
  1264. package/serialization/types/MessageApprovalsItem.d.ts +12 -0
  1265. package/serialization/types/MessageApprovalsItem.js +43 -0
  1266. package/serialization/types/OmittedReasoningContent.d.ts +1 -0
  1267. package/serialization/types/OmittedReasoningContent.js +1 -0
  1268. package/serialization/types/OpenaiTypesChatChatCompletionMessageFunctionToolCallFunction.d.ts +14 -0
  1269. package/serialization/types/OpenaiTypesChatChatCompletionMessageFunctionToolCallFunction.js +46 -0
  1270. package/serialization/types/OpenaiTypesChatChatCompletionMessageFunctionToolCallParamFunction.d.ts +13 -0
  1271. package/serialization/types/OpenaiTypesChatChatCompletionMessageFunctionToolCallParamFunction.js +44 -0
  1272. package/serialization/types/PromptTokensDetails.d.ts +14 -0
  1273. package/serialization/types/PromptTokensDetails.js +46 -0
  1274. package/serialization/types/Provider.d.ts +2 -0
  1275. package/serialization/types/Provider.js +2 -0
  1276. package/serialization/types/RunMetrics.d.ts +19 -0
  1277. package/serialization/types/RunMetrics.js +50 -0
  1278. package/serialization/types/SandboxEnvironmentVariable.d.ts +1 -0
  1279. package/serialization/types/SandboxEnvironmentVariable.js +1 -0
  1280. package/serialization/types/TextContent.d.ts +1 -0
  1281. package/serialization/types/TextContent.js +1 -0
  1282. package/serialization/types/ToolCallContent.d.ts +1 -0
  1283. package/serialization/types/ToolCallContent.js +1 -0
  1284. package/serialization/types/ToolCallMessage.d.ts +2 -0
  1285. package/serialization/types/ToolCallMessage.js +2 -0
  1286. package/serialization/types/ToolCallMessageToolCalls.d.ts +12 -0
  1287. package/{dist/serialization/types/AppAuthSchemeAuthMode.js → serialization/types/ToolCallMessageToolCalls.js} +4 -13
  1288. package/serialization/types/ToolReturnMessage.d.ts +2 -0
  1289. package/serialization/types/ToolReturnMessage.js +2 -0
  1290. package/serialization/types/ToolType.d.ts +1 -1
  1291. package/serialization/types/ToolType.js +1 -1
  1292. package/serialization/types/TopLogprob.d.ts +15 -0
  1293. package/serialization/types/TopLogprob.js +47 -0
  1294. package/serialization/types/index.d.ts +63 -11
  1295. package/serialization/types/index.js +63 -11
  1296. package/version.d.ts +1 -1
  1297. package/version.js +1 -1
  1298. package/api/resources/agents/resources/templates/client/Client.d.ts +0 -79
  1299. package/api/resources/agents/resources/templates/client/Client.js +0 -250
  1300. package/api/resources/agents/resources/templates/client/requests/TemplatesMigrateRequest.d.ts +0 -16
  1301. package/api/resources/agents/resources/templates/client/requests/index.d.ts +0 -1
  1302. package/api/resources/agents/resources/templates/types/index.d.ts +0 -1
  1303. package/api/types/ActionModel.d.ts +0 -21
  1304. package/api/types/ActionParametersModel.d.ts +0 -13
  1305. package/api/types/ActionResponseModel.d.ts +0 -13
  1306. package/api/types/AppAuthScheme.d.ts +0 -19
  1307. package/api/types/AppAuthSchemeAuthMode.d.ts +0 -16
  1308. package/api/types/AppAuthSchemeAuthMode.js +0 -18
  1309. package/api/types/AppModel.d.ts +0 -25
  1310. package/api/types/AuthSchemeField.d.ts +0 -16
  1311. package/dist/api/resources/agents/resources/templates/client/Client.d.ts +0 -79
  1312. package/dist/api/resources/agents/resources/templates/client/Client.js +0 -250
  1313. package/dist/api/resources/agents/resources/templates/client/requests/TemplatesMigrateRequest.d.ts +0 -16
  1314. package/dist/api/resources/agents/resources/templates/client/requests/index.d.ts +0 -1
  1315. package/dist/api/resources/agents/resources/templates/types/index.d.ts +0 -1
  1316. package/dist/api/resources/agents/resources/templates/types/index.js +0 -17
  1317. package/dist/api/types/ActionModel.d.ts +0 -21
  1318. package/dist/api/types/ActionParametersModel.d.ts +0 -13
  1319. package/dist/api/types/ActionResponseModel.d.ts +0 -13
  1320. package/dist/api/types/AppAuthScheme.d.ts +0 -19
  1321. package/dist/api/types/AppAuthSchemeAuthMode.d.ts +0 -16
  1322. package/dist/api/types/AppAuthSchemeAuthMode.js +0 -18
  1323. package/dist/api/types/AppModel.d.ts +0 -25
  1324. package/dist/api/types/AuthSchemeField.d.ts +0 -16
  1325. package/dist/serialization/resources/agents/resources/templates/client/requests/TemplatesMigrateRequest.d.ts +0 -14
  1326. package/dist/serialization/resources/agents/resources/templates/client/requests/index.d.ts +0 -1
  1327. package/dist/serialization/resources/agents/resources/templates/client/requests/index.js +0 -5
  1328. package/dist/serialization/resources/agents/resources/templates/types/TemplatesMigrateResponse.d.ts +0 -12
  1329. package/dist/serialization/resources/agents/resources/templates/types/index.d.ts +0 -1
  1330. package/dist/serialization/resources/agents/resources/templates/types/index.js +0 -17
  1331. package/dist/serialization/resources/tools/client/listComposioActionsByApp.d.ts +0 -11
  1332. package/dist/serialization/resources/tools/client/listComposioApps.d.ts +0 -11
  1333. package/dist/serialization/types/ActionModel.d.ts +0 -25
  1334. package/dist/serialization/types/ActionParametersModel.d.ts +0 -16
  1335. package/dist/serialization/types/ActionResponseModel.d.ts +0 -16
  1336. package/dist/serialization/types/AppAuthScheme.d.ts +0 -23
  1337. package/dist/serialization/types/AppAuthScheme.js +0 -54
  1338. package/dist/serialization/types/AppAuthSchemeAuthMode.d.ts +0 -10
  1339. package/dist/serialization/types/AppModel.d.ts +0 -28
  1340. package/dist/serialization/types/AppModel.js +0 -61
  1341. package/dist/serialization/types/AuthSchemeField.d.ts +0 -19
  1342. package/dist/serialization/types/ChatCompletionMessageFunctionToolCall.d.ts +0 -16
  1343. package/dist/serialization/types/ToolReturn.d.ts +0 -15
  1344. package/dist/serialization/types/ToolReturnStatus.d.ts +0 -10
  1345. package/serialization/resources/agents/resources/templates/client/requests/TemplatesMigrateRequest.d.ts +0 -14
  1346. package/serialization/resources/agents/resources/templates/client/requests/TemplatesMigrateRequest.js +0 -45
  1347. package/serialization/resources/agents/resources/templates/client/requests/index.d.ts +0 -1
  1348. package/serialization/resources/agents/resources/templates/client/requests/index.js +0 -5
  1349. package/serialization/resources/agents/resources/templates/types/TemplatesMigrateResponse.d.ts +0 -12
  1350. package/serialization/resources/agents/resources/templates/types/index.d.ts +0 -1
  1351. package/serialization/resources/agents/resources/templates/types/index.js +0 -17
  1352. package/serialization/resources/tools/client/listComposioActionsByApp.d.ts +0 -11
  1353. package/serialization/resources/tools/client/listComposioApps.d.ts +0 -11
  1354. package/serialization/types/ActionModel.d.ts +0 -25
  1355. package/serialization/types/ActionModel.js +0 -56
  1356. package/serialization/types/ActionParametersModel.d.ts +0 -16
  1357. package/serialization/types/ActionResponseModel.d.ts +0 -16
  1358. package/serialization/types/ActionResponseModel.js +0 -47
  1359. package/serialization/types/AppAuthScheme.d.ts +0 -23
  1360. package/serialization/types/AppAuthScheme.js +0 -54
  1361. package/serialization/types/AppAuthSchemeAuthMode.d.ts +0 -10
  1362. package/serialization/types/AppModel.d.ts +0 -28
  1363. package/serialization/types/AppModel.js +0 -61
  1364. package/serialization/types/AuthSchemeField.d.ts +0 -19
  1365. package/serialization/types/AuthSchemeField.js +0 -50
  1366. package/serialization/types/ChatCompletionMessageFunctionToolCall.d.ts +0 -16
  1367. package/serialization/types/ToolReturn.d.ts +0 -15
  1368. package/serialization/types/ToolReturnStatus.d.ts +0 -10
  1369. /package/api/resources/agents/resources/{templates/client/requests/TemplatesMigrateRequest.js → blocks/client/requests/BlocksListRequest.js} +0 -0
  1370. /package/api/resources/agents/resources/{templates → blocks}/client/requests/index.js +0 -0
  1371. /package/api/resources/agents/resources/{templates/types/TemplatesMigrateResponse.js → folders/client/requests/FoldersListRequest.js} +0 -0
  1372. /package/{dist/api/resources/agents/resources/templates → api/resources/agents/resources/folders}/client/requests/index.js +0 -0
  1373. /package/api/{types/ActionModel.js → resources/agents/resources/sources/client/requests/SourcesListRequest.js} +0 -0
  1374. /package/api/{types/ActionParametersModel.js → resources/agents/resources/tools/client/requests/ToolsListRequest.js} +0 -0
  1375. /package/api/resources/{agents/resources/templates → chat}/client/index.d.ts +0 -0
  1376. /package/api/resources/{agents/resources/templates → chat}/client/index.js +0 -0
  1377. /package/api/{types/ActionResponseModel.js → resources/chat/client/requests/ChatCompletionRequest.js} +0 -0
  1378. /package/api/resources/{agents/resources/templates → chat}/index.d.ts +0 -0
  1379. /package/api/resources/{agents/resources/templates → chat}/index.js +0 -0
  1380. /package/api/{types/AppAuthScheme.js → resources/chat/types/ChatCompletionRequestMessagesItem.js} +0 -0
  1381. /package/api/{types/AppModel.js → resources/chat/types/ChatCompletionRequestStop.js} +0 -0
  1382. /package/api/{types/AuthSchemeField.js → resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemLlmConfigDisplayName.js} +0 -0
  1383. /package/api/{types/ChatCompletionMessageFunctionToolCall.js → resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemLlmConfigDisplayNameItem.js} +0 -0
  1384. /package/api/{types/Function.js → resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemSecretsItemValueEnc.js} +0 -0
  1385. /package/api/{types/ToolReturn.js → resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemSecretsItemValueEncItem.js} +0 -0
  1386. /package/{dist/api/resources/agents/resources/templates/client/requests/TemplatesMigrateRequest.js → api/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolExecEnvironmentVariablesItemValueEnc.js} +0 -0
  1387. /package/{dist/api/resources/agents/resources/templates/types/TemplatesMigrateResponse.js → api/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolExecEnvironmentVariablesItemValueEncItem.js} +0 -0
  1388. /package/{dist/api/types/ActionModel.js → api/types/Annotation.js} +0 -0
  1389. /package/{dist/api/types/ActionParametersModel.js → api/types/AnnotationUrlCitation.js} +0 -0
  1390. /package/{dist/api/types/ActionResponseModel.js → api/types/ApprovalCreateApprovalsItem.js} +0 -0
  1391. /package/{dist/api/types/AppAuthScheme.js → api/types/ApprovalResponseMessageApprovalsItem.js} +0 -0
  1392. /package/{dist/api/types/AppModel.js → api/types/ApprovalReturn.js} +0 -0
  1393. /package/{dist/api/types/AuthSchemeField.js → api/types/Audio.js} +0 -0
  1394. /package/{dist/api/types/ChatCompletionMessageFunctionToolCall.js → api/types/ChatCompletion.js} +0 -0
  1395. /package/{dist/api/types/Function.js → api/types/ChatCompletionAssistantMessageParam.js} +0 -0
  1396. /package/{dist/api/types/ToolReturn.js → api/types/ChatCompletionAssistantMessageParamContent.js} +0 -0
  1397. /package/dist/api/resources/{agents/resources/templates → chat}/client/index.d.ts +0 -0
  1398. /package/dist/api/resources/{agents/resources/templates → chat}/client/index.js +0 -0
  1399. /package/dist/api/resources/{agents/resources/templates → chat}/index.d.ts +0 -0
  1400. /package/dist/api/resources/{agents/resources/templates → chat}/index.js +0 -0
  1401. /package/dist/serialization/resources/{agents/resources/templates → chat}/client/index.d.ts +0 -0
  1402. /package/dist/serialization/resources/{agents/resources/templates → chat}/client/index.js +0 -0
  1403. /package/dist/serialization/resources/{agents/resources/templates → chat}/index.d.ts +0 -0
  1404. /package/dist/serialization/resources/{agents/resources/templates → chat}/index.js +0 -0
  1405. /package/serialization/resources/{agents/resources/templates → chat}/client/index.d.ts +0 -0
  1406. /package/serialization/resources/{agents/resources/templates → chat}/client/index.js +0 -0
  1407. /package/serialization/resources/{agents/resources/templates → chat}/index.d.ts +0 -0
  1408. /package/serialization/resources/{agents/resources/templates → chat}/index.js +0 -0
@@ -81,7 +81,7 @@ class Tools {
81
81
  method: "GET",
82
82
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
83
83
  ? yield core.Supplier.get(this._options.project)
84
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "1.0.0-alpha.1", "User-Agent": "@letta-ai/letta-client/1.0.0-alpha.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
84
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "1.0.0-alpha.3", "User-Agent": "@letta-ai/letta-client/1.0.0-alpha.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
85
85
  contentType: "application/json",
86
86
  requestType: "json",
87
87
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -157,7 +157,7 @@ class Tools {
157
157
  method: "DELETE",
158
158
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
159
159
  ? yield core.Supplier.get(this._options.project)
160
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "1.0.0-alpha.1", "User-Agent": "@letta-ai/letta-client/1.0.0-alpha.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
160
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "1.0.0-alpha.3", "User-Agent": "@letta-ai/letta-client/1.0.0-alpha.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
161
161
  contentType: "application/json",
162
162
  requestType: "json",
163
163
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -225,7 +225,7 @@ class Tools {
225
225
  method: "PATCH",
226
226
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
227
227
  ? yield core.Supplier.get(this._options.project)
228
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "1.0.0-alpha.1", "User-Agent": "@letta-ai/letta-client/1.0.0-alpha.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
228
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "1.0.0-alpha.3", "User-Agent": "@letta-ai/letta-client/1.0.0-alpha.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
229
229
  contentType: "application/json",
230
230
  requestType: "json",
231
231
  body: serializers.ToolUpdate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -289,7 +289,12 @@ class Tools {
289
289
  * @throws {@link Letta.UnprocessableEntityError}
290
290
  *
291
291
  * @example
292
- * await client.tools.count()
292
+ * await client.tools.count({
293
+ * name: "name",
294
+ * search: "search",
295
+ * returnOnlyLettaTools: true,
296
+ * excludeLettaTools: true
297
+ * })
293
298
  */
294
299
  count(request = {}, requestOptions) {
295
300
  return core.HttpResponsePromise.fromPromise(this.__count(request, requestOptions));
@@ -348,7 +353,7 @@ class Tools {
348
353
  method: "GET",
349
354
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
350
355
  ? yield core.Supplier.get(this._options.project)
351
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "1.0.0-alpha.1", "User-Agent": "@letta-ai/letta-client/1.0.0-alpha.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
356
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "1.0.0-alpha.3", "User-Agent": "@letta-ai/letta-client/1.0.0-alpha.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
352
357
  contentType: "application/json",
353
358
  queryParameters: _queryParams,
354
359
  requestType: "json",
@@ -412,7 +417,16 @@ class Tools {
412
417
  * @throws {@link Letta.UnprocessableEntityError}
413
418
  *
414
419
  * @example
415
- * await client.tools.list()
420
+ * await client.tools.list({
421
+ * before: "before",
422
+ * after: "after",
423
+ * limit: 1,
424
+ * order: "asc",
425
+ * orderBy: "created_at",
426
+ * name: "name",
427
+ * search: "search",
428
+ * returnOnlyLettaTools: true
429
+ * })
416
430
  */
417
431
  list(request = {}, requestOptions) {
418
432
  return core.HttpResponsePromise.fromPromise(this.__list(request, requestOptions));
@@ -485,7 +499,7 @@ class Tools {
485
499
  method: "GET",
486
500
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
487
501
  ? yield core.Supplier.get(this._options.project)
488
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "1.0.0-alpha.1", "User-Agent": "@letta-ai/letta-client/1.0.0-alpha.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
502
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "1.0.0-alpha.3", "User-Agent": "@letta-ai/letta-client/1.0.0-alpha.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
489
503
  contentType: "application/json",
490
504
  queryParameters: _queryParams,
491
505
  requestType: "json",
@@ -564,7 +578,7 @@ class Tools {
564
578
  method: "POST",
565
579
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
566
580
  ? yield core.Supplier.get(this._options.project)
567
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "1.0.0-alpha.1", "User-Agent": "@letta-ai/letta-client/1.0.0-alpha.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
581
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "1.0.0-alpha.3", "User-Agent": "@letta-ai/letta-client/1.0.0-alpha.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
568
582
  contentType: "application/json",
569
583
  requestType: "json",
570
584
  body: serializers.ToolCreate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -643,7 +657,7 @@ class Tools {
643
657
  method: "PUT",
644
658
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
645
659
  ? yield core.Supplier.get(this._options.project)
646
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "1.0.0-alpha.1", "User-Agent": "@letta-ai/letta-client/1.0.0-alpha.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
660
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "1.0.0-alpha.3", "User-Agent": "@letta-ai/letta-client/1.0.0-alpha.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
647
661
  contentType: "application/json",
648
662
  requestType: "json",
649
663
  body: serializers.ToolCreate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -719,7 +733,7 @@ class Tools {
719
733
  method: "POST",
720
734
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
721
735
  ? yield core.Supplier.get(this._options.project)
722
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "1.0.0-alpha.1", "User-Agent": "@letta-ai/letta-client/1.0.0-alpha.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
736
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "1.0.0-alpha.3", "User-Agent": "@letta-ai/letta-client/1.0.0-alpha.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
723
737
  contentType: "application/json",
724
738
  requestType: "json",
725
739
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -800,7 +814,7 @@ class Tools {
800
814
  method: "POST",
801
815
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
802
816
  ? yield core.Supplier.get(this._options.project)
803
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "1.0.0-alpha.1", "User-Agent": "@letta-ai/letta-client/1.0.0-alpha.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
817
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "1.0.0-alpha.3", "User-Agent": "@letta-ai/letta-client/1.0.0-alpha.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
804
818
  contentType: "application/json",
805
819
  requestType: "json",
806
820
  body: serializers.ToolRunFromSource.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -855,233 +869,6 @@ class Tools {
855
869
  }
856
870
  });
857
871
  }
858
- /**
859
- * Get a list of all Composio apps
860
- *
861
- * @param {Tools.RequestOptions} requestOptions - Request-specific configuration.
862
- *
863
- * @throws {@link Letta.UnprocessableEntityError}
864
- *
865
- * @example
866
- * await client.tools.listComposioApps()
867
- */
868
- listComposioApps(requestOptions) {
869
- return core.HttpResponsePromise.fromPromise(this.__listComposioApps(requestOptions));
870
- }
871
- __listComposioApps(requestOptions) {
872
- return __awaiter(this, void 0, void 0, function* () {
873
- var _a, _b, _c;
874
- const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
875
- url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, "v1/tools/composio/apps"),
876
- method: "GET",
877
- headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
878
- ? yield core.Supplier.get(this._options.project)
879
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "1.0.0-alpha.1", "User-Agent": "@letta-ai/letta-client/1.0.0-alpha.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
880
- contentType: "application/json",
881
- requestType: "json",
882
- timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
883
- maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
884
- abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
885
- });
886
- if (_response.ok) {
887
- return {
888
- data: serializers.tools.listComposioApps.Response.parseOrThrow(_response.body, {
889
- unrecognizedObjectKeys: "passthrough",
890
- allowUnrecognizedUnionMembers: true,
891
- allowUnrecognizedEnumValues: true,
892
- skipValidation: true,
893
- breadcrumbsPrefix: ["response"],
894
- }),
895
- rawResponse: _response.rawResponse,
896
- };
897
- }
898
- if (_response.error.reason === "status-code") {
899
- switch (_response.error.statusCode) {
900
- case 422:
901
- throw new Letta.UnprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
902
- unrecognizedObjectKeys: "passthrough",
903
- allowUnrecognizedUnionMembers: true,
904
- allowUnrecognizedEnumValues: true,
905
- skipValidation: true,
906
- breadcrumbsPrefix: ["response"],
907
- }), _response.rawResponse);
908
- default:
909
- throw new errors.LettaError({
910
- statusCode: _response.error.statusCode,
911
- body: _response.error.body,
912
- rawResponse: _response.rawResponse,
913
- });
914
- }
915
- }
916
- switch (_response.error.reason) {
917
- case "non-json":
918
- throw new errors.LettaError({
919
- statusCode: _response.error.statusCode,
920
- body: _response.error.rawBody,
921
- rawResponse: _response.rawResponse,
922
- });
923
- case "timeout":
924
- throw new errors.LettaTimeoutError("Timeout exceeded when calling GET /v1/tools/composio/apps.");
925
- case "unknown":
926
- throw new errors.LettaError({
927
- message: _response.error.errorMessage,
928
- rawResponse: _response.rawResponse,
929
- });
930
- }
931
- });
932
- }
933
- /**
934
- * Get a list of all Composio actions for a specific app
935
- *
936
- * @param {string} composioAppName
937
- * @param {Tools.RequestOptions} requestOptions - Request-specific configuration.
938
- *
939
- * @throws {@link Letta.UnprocessableEntityError}
940
- *
941
- * @example
942
- * await client.tools.listComposioActionsByApp("composio_app_name")
943
- */
944
- listComposioActionsByApp(composioAppName, requestOptions) {
945
- return core.HttpResponsePromise.fromPromise(this.__listComposioActionsByApp(composioAppName, requestOptions));
946
- }
947
- __listComposioActionsByApp(composioAppName, requestOptions) {
948
- return __awaiter(this, void 0, void 0, function* () {
949
- var _a, _b, _c;
950
- const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
951
- url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, `v1/tools/composio/apps/${encodeURIComponent(composioAppName)}/actions`),
952
- method: "GET",
953
- headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
954
- ? yield core.Supplier.get(this._options.project)
955
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "1.0.0-alpha.1", "User-Agent": "@letta-ai/letta-client/1.0.0-alpha.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
956
- contentType: "application/json",
957
- requestType: "json",
958
- timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
959
- maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
960
- abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
961
- });
962
- if (_response.ok) {
963
- return {
964
- data: serializers.tools.listComposioActionsByApp.Response.parseOrThrow(_response.body, {
965
- unrecognizedObjectKeys: "passthrough",
966
- allowUnrecognizedUnionMembers: true,
967
- allowUnrecognizedEnumValues: true,
968
- skipValidation: true,
969
- breadcrumbsPrefix: ["response"],
970
- }),
971
- rawResponse: _response.rawResponse,
972
- };
973
- }
974
- if (_response.error.reason === "status-code") {
975
- switch (_response.error.statusCode) {
976
- case 422:
977
- throw new Letta.UnprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
978
- unrecognizedObjectKeys: "passthrough",
979
- allowUnrecognizedUnionMembers: true,
980
- allowUnrecognizedEnumValues: true,
981
- skipValidation: true,
982
- breadcrumbsPrefix: ["response"],
983
- }), _response.rawResponse);
984
- default:
985
- throw new errors.LettaError({
986
- statusCode: _response.error.statusCode,
987
- body: _response.error.body,
988
- rawResponse: _response.rawResponse,
989
- });
990
- }
991
- }
992
- switch (_response.error.reason) {
993
- case "non-json":
994
- throw new errors.LettaError({
995
- statusCode: _response.error.statusCode,
996
- body: _response.error.rawBody,
997
- rawResponse: _response.rawResponse,
998
- });
999
- case "timeout":
1000
- throw new errors.LettaTimeoutError("Timeout exceeded when calling GET /v1/tools/composio/apps/{composio_app_name}/actions.");
1001
- case "unknown":
1002
- throw new errors.LettaError({
1003
- message: _response.error.errorMessage,
1004
- rawResponse: _response.rawResponse,
1005
- });
1006
- }
1007
- });
1008
- }
1009
- /**
1010
- * Add a new Composio tool by action name (Composio refers to each tool as an `Action`)
1011
- *
1012
- * @param {string} composioActionName
1013
- * @param {Tools.RequestOptions} requestOptions - Request-specific configuration.
1014
- *
1015
- * @throws {@link Letta.UnprocessableEntityError}
1016
- *
1017
- * @example
1018
- * await client.tools.addComposioTool("composio_action_name")
1019
- */
1020
- addComposioTool(composioActionName, requestOptions) {
1021
- return core.HttpResponsePromise.fromPromise(this.__addComposioTool(composioActionName, requestOptions));
1022
- }
1023
- __addComposioTool(composioActionName, requestOptions) {
1024
- return __awaiter(this, void 0, void 0, function* () {
1025
- var _a, _b, _c;
1026
- const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
1027
- url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, `v1/tools/composio/${encodeURIComponent(composioActionName)}`),
1028
- method: "POST",
1029
- headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
1030
- ? yield core.Supplier.get(this._options.project)
1031
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "1.0.0-alpha.1", "User-Agent": "@letta-ai/letta-client/1.0.0-alpha.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
1032
- contentType: "application/json",
1033
- requestType: "json",
1034
- timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
1035
- maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
1036
- abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
1037
- });
1038
- if (_response.ok) {
1039
- return {
1040
- data: serializers.Tool.parseOrThrow(_response.body, {
1041
- unrecognizedObjectKeys: "passthrough",
1042
- allowUnrecognizedUnionMembers: true,
1043
- allowUnrecognizedEnumValues: true,
1044
- skipValidation: true,
1045
- breadcrumbsPrefix: ["response"],
1046
- }),
1047
- rawResponse: _response.rawResponse,
1048
- };
1049
- }
1050
- if (_response.error.reason === "status-code") {
1051
- switch (_response.error.statusCode) {
1052
- case 422:
1053
- throw new Letta.UnprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
1054
- unrecognizedObjectKeys: "passthrough",
1055
- allowUnrecognizedUnionMembers: true,
1056
- allowUnrecognizedEnumValues: true,
1057
- skipValidation: true,
1058
- breadcrumbsPrefix: ["response"],
1059
- }), _response.rawResponse);
1060
- default:
1061
- throw new errors.LettaError({
1062
- statusCode: _response.error.statusCode,
1063
- body: _response.error.body,
1064
- rawResponse: _response.rawResponse,
1065
- });
1066
- }
1067
- }
1068
- switch (_response.error.reason) {
1069
- case "non-json":
1070
- throw new errors.LettaError({
1071
- statusCode: _response.error.statusCode,
1072
- body: _response.error.rawBody,
1073
- rawResponse: _response.rawResponse,
1074
- });
1075
- case "timeout":
1076
- throw new errors.LettaTimeoutError("Timeout exceeded when calling POST /v1/tools/composio/{composio_action_name}.");
1077
- case "unknown":
1078
- throw new errors.LettaError({
1079
- message: _response.error.errorMessage,
1080
- rawResponse: _response.rawResponse,
1081
- });
1082
- }
1083
- });
1084
- }
1085
872
  /**
1086
873
  * Get a list of all configured MCP servers
1087
874
  *
@@ -1103,7 +890,7 @@ class Tools {
1103
890
  method: "GET",
1104
891
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
1105
892
  ? yield core.Supplier.get(this._options.project)
1106
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "1.0.0-alpha.1", "User-Agent": "@letta-ai/letta-client/1.0.0-alpha.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
893
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "1.0.0-alpha.3", "User-Agent": "@letta-ai/letta-client/1.0.0-alpha.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
1107
894
  contentType: "application/json",
1108
895
  requestType: "json",
1109
896
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -1183,7 +970,7 @@ class Tools {
1183
970
  method: "PUT",
1184
971
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
1185
972
  ? yield core.Supplier.get(this._options.project)
1186
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "1.0.0-alpha.1", "User-Agent": "@letta-ai/letta-client/1.0.0-alpha.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
973
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "1.0.0-alpha.3", "User-Agent": "@letta-ai/letta-client/1.0.0-alpha.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
1187
974
  contentType: "application/json",
1188
975
  requestType: "json",
1189
976
  body: serializers.AddMcpServerRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -1260,7 +1047,7 @@ class Tools {
1260
1047
  method: "GET",
1261
1048
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
1262
1049
  ? yield core.Supplier.get(this._options.project)
1263
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "1.0.0-alpha.1", "User-Agent": "@letta-ai/letta-client/1.0.0-alpha.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
1050
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "1.0.0-alpha.3", "User-Agent": "@letta-ai/letta-client/1.0.0-alpha.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
1264
1051
  contentType: "application/json",
1265
1052
  requestType: "json",
1266
1053
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -1337,7 +1124,7 @@ class Tools {
1337
1124
  method: "POST",
1338
1125
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
1339
1126
  ? yield core.Supplier.get(this._options.project)
1340
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "1.0.0-alpha.1", "User-Agent": "@letta-ai/letta-client/1.0.0-alpha.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
1127
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "1.0.0-alpha.3", "User-Agent": "@letta-ai/letta-client/1.0.0-alpha.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
1341
1128
  contentType: "application/json",
1342
1129
  requestType: "json",
1343
1130
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -1413,7 +1200,7 @@ class Tools {
1413
1200
  method: "DELETE",
1414
1201
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
1415
1202
  ? yield core.Supplier.get(this._options.project)
1416
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "1.0.0-alpha.1", "User-Agent": "@letta-ai/letta-client/1.0.0-alpha.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
1203
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "1.0.0-alpha.3", "User-Agent": "@letta-ai/letta-client/1.0.0-alpha.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
1417
1204
  contentType: "application/json",
1418
1205
  requestType: "json",
1419
1206
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -1490,7 +1277,7 @@ class Tools {
1490
1277
  method: "PATCH",
1491
1278
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
1492
1279
  ? yield core.Supplier.get(this._options.project)
1493
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "1.0.0-alpha.1", "User-Agent": "@letta-ai/letta-client/1.0.0-alpha.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
1280
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "1.0.0-alpha.3", "User-Agent": "@letta-ai/letta-client/1.0.0-alpha.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
1494
1281
  contentType: "application/json",
1495
1282
  requestType: "json",
1496
1283
  body: serializers.UpdateMcpServerRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -1572,7 +1359,7 @@ class Tools {
1572
1359
  method: "POST",
1573
1360
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
1574
1361
  ? yield core.Supplier.get(this._options.project)
1575
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "1.0.0-alpha.1", "User-Agent": "@letta-ai/letta-client/1.0.0-alpha.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
1362
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "1.0.0-alpha.3", "User-Agent": "@letta-ai/letta-client/1.0.0-alpha.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
1576
1363
  contentType: "application/json",
1577
1364
  requestType: "json",
1578
1365
  body: serializers.TestMcpServerRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -1633,7 +1420,7 @@ class Tools {
1633
1420
  method: "POST",
1634
1421
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
1635
1422
  ? yield core.Supplier.get(this._options.project)
1636
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "1.0.0-alpha.1", "User-Agent": "@letta-ai/letta-client/1.0.0-alpha.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
1423
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "1.0.0-alpha.3", "User-Agent": "@letta-ai/letta-client/1.0.0-alpha.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
1637
1424
  contentType: "application/json",
1638
1425
  requestType: "json",
1639
1426
  body: serializers.ConnectMcpServerRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -3,7 +3,12 @@
3
3
  */
4
4
  /**
5
5
  * @example
6
- * {}
6
+ * {
7
+ * name: "name",
8
+ * search: "search",
9
+ * returnOnlyLettaTools: true,
10
+ * excludeLettaTools: true
11
+ * }
7
12
  */
8
13
  export interface ToolsCountRequest {
9
14
  name?: string;
@@ -4,7 +4,16 @@
4
4
  import * as Letta from "../../../../index";
5
5
  /**
6
6
  * @example
7
- * {}
7
+ * {
8
+ * before: "before",
9
+ * after: "after",
10
+ * limit: 1,
11
+ * order: "asc",
12
+ * orderBy: "created_at",
13
+ * name: "name",
14
+ * search: "search",
15
+ * returnOnlyLettaTools: true
16
+ * }
8
17
  */
9
18
  export interface ToolsListRequest {
10
19
  /**
@@ -30,10 +30,18 @@ export declare class Voice {
30
30
  protected readonly _options: Voice.Options;
31
31
  constructor(_options?: Voice.Options);
32
32
  /**
33
+ * DEPRECATED: This voice-beta endpoint has been deprecated.
34
+ *
35
+ * The voice functionality has been integrated into the main chat completions endpoint.
36
+ * Please use the standard /v1/agents/{agent_id}/messages endpoint instead.
37
+ *
38
+ * This endpoint will be removed in a future version.
39
+ *
33
40
  * @param {string} agentId
34
41
  * @param {Record<string, unknown>} request
35
42
  * @param {Voice.RequestOptions} requestOptions - Request-specific configuration.
36
43
  *
44
+ * @throws {@link Letta.GoneError}
37
45
  * @throws {@link Letta.UnprocessableEntityError}
38
46
  *
39
47
  * @example
@@ -60,10 +60,18 @@ class Voice {
60
60
  this._options = _options;
61
61
  }
62
62
  /**
63
+ * DEPRECATED: This voice-beta endpoint has been deprecated.
64
+ *
65
+ * The voice functionality has been integrated into the main chat completions endpoint.
66
+ * Please use the standard /v1/agents/{agent_id}/messages endpoint instead.
67
+ *
68
+ * This endpoint will be removed in a future version.
69
+ *
63
70
  * @param {string} agentId
64
71
  * @param {Record<string, unknown>} request
65
72
  * @param {Voice.RequestOptions} requestOptions - Request-specific configuration.
66
73
  *
74
+ * @throws {@link Letta.GoneError}
67
75
  * @throws {@link Letta.UnprocessableEntityError}
68
76
  *
69
77
  * @example
@@ -82,7 +90,7 @@ class Voice {
82
90
  method: "POST",
83
91
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
84
92
  ? yield core.Supplier.get(this._options.project)
85
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "1.0.0-alpha.1", "User-Agent": "@letta-ai/letta-client/1.0.0-alpha.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
93
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "1.0.0-alpha.3", "User-Agent": "@letta-ai/letta-client/1.0.0-alpha.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
86
94
  contentType: "application/json",
87
95
  requestType: "json",
88
96
  body: serializers.voice.createVoiceChatCompletions.Request.jsonOrThrow(request, {
@@ -97,6 +105,8 @@ class Voice {
97
105
  }
98
106
  if (_response.error.reason === "status-code") {
99
107
  switch (_response.error.statusCode) {
108
+ case 410:
109
+ throw new Letta.GoneError(_response.error.body, _response.rawResponse);
100
110
  case 422:
101
111
  throw new Letta.UnprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
102
112
  unrecognizedObjectKeys: "passthrough",
@@ -18,6 +18,8 @@ export interface AgentEnvironmentVariable {
18
18
  value: string;
19
19
  /** An optional description of the environment variable. */
20
20
  description?: string;
21
+ /** Encrypted value as Secret object */
22
+ valueEnc?: string;
21
23
  /** The ID of the agent this environment variable belongs to. */
22
24
  agentId: string;
23
25
  }
@@ -0,0 +1,10 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Letta from "../index";
5
+ export interface Annotation {
6
+ type: "url_citation";
7
+ urlCitation: Letta.AnnotationUrlCitation;
8
+ /** Accepts any additional properties */
9
+ [key: string]: any;
10
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,11 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export interface AnnotationUrlCitation {
5
+ endIndex: number;
6
+ startIndex: number;
7
+ title: string;
8
+ url: string;
9
+ /** Accepts any additional properties */
10
+ [key: string]: any;
11
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,16 +1,19 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
+ import * as Letta from "../index";
4
5
  /**
5
6
  * Input to approve or deny a tool call request
6
7
  */
7
8
  export interface ApprovalCreate {
8
9
  /** The message type to be created. */
9
10
  type?: "approval";
11
+ /** The list of approval responses */
12
+ approvals?: Letta.ApprovalCreateApprovalsItem[];
10
13
  /** Whether the tool has been approved */
11
- approve: boolean;
14
+ approve?: boolean;
12
15
  /** The message ID of the approval request */
13
- approvalRequestId: string;
16
+ approvalRequestId?: string;
14
17
  /** An optional explanation for the provided approval status */
15
18
  reason?: string;
16
19
  }
@@ -0,0 +1,5 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Letta from "../index";
5
+ export type ApprovalCreateApprovalsItem = Letta.ApprovalReturn | Letta.LettaSchemasLettaMessageToolReturn;
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,6 +1,7 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
+ import * as Letta from "../index";
4
5
  /**
5
6
  * A message representing a response form the user indicating whether a tool has been approved to run.
6
7
  *
@@ -23,10 +24,12 @@ export interface ApprovalResponseMessage {
23
24
  isErr?: boolean;
24
25
  seqId?: number;
25
26
  runId?: string;
27
+ /** The list of approval responses */
28
+ approvals?: Letta.ApprovalResponseMessageApprovalsItem[];
26
29
  /** Whether the tool has been approved */
27
- approve: boolean;
30
+ approve?: boolean;
28
31
  /** The message ID of the approval request */
29
- approvalRequestId: string;
32
+ approvalRequestId?: string;
30
33
  /** An optional explanation for the provided approval status */
31
34
  reason?: string;
32
35
  }