@letta-ai/letta-client 0.1.98 → 0.1.100

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 (767) hide show
  1. package/Client.d.ts +9 -0
  2. package/Client.js +39 -24
  3. package/api/resources/agents/client/Client.d.ts +13 -44
  4. package/api/resources/agents/client/Client.js +63 -228
  5. package/api/resources/agents/client/requests/index.d.ts +0 -3
  6. package/api/resources/agents/resources/blocks/client/Client.js +5 -5
  7. package/api/resources/agents/resources/context/client/Client.js +1 -1
  8. package/api/resources/agents/resources/coreMemory/client/Client.js +1 -1
  9. package/api/resources/agents/resources/groups/client/Client.d.ts +45 -0
  10. package/api/resources/agents/resources/groups/client/Client.js +141 -0
  11. package/api/resources/agents/{client/requests/ListAgentGroupsRequest.d.ts → resources/groups/client/requests/GroupsListRequest.d.ts} +1 -1
  12. package/api/resources/agents/resources/groups/client/requests/index.d.ts +1 -0
  13. package/api/resources/agents/resources/index.d.ts +2 -0
  14. package/api/resources/agents/resources/index.js +3 -1
  15. package/api/resources/agents/resources/memoryVariables/client/Client.js +1 -1
  16. package/api/resources/agents/resources/messages/client/Client.d.ts +13 -0
  17. package/api/resources/agents/resources/messages/client/Client.js +77 -5
  18. package/{dist/api/resources/agents/client/requests/ResetMessagesRequest.d.ts → api/resources/agents/resources/messages/client/requests/MessagesResetRequest.d.ts} +1 -1
  19. package/api/resources/agents/resources/messages/client/requests/index.d.ts +1 -0
  20. package/api/resources/agents/resources/passages/client/Client.d.ts +16 -0
  21. package/api/resources/agents/resources/passages/client/Client.js +73 -3
  22. package/api/resources/agents/{client → resources/passages/client}/requests/PassageUpdate.d.ts +1 -1
  23. package/api/resources/agents/resources/passages/client/requests/index.d.ts +1 -0
  24. package/api/resources/agents/resources/sources/client/Client.js +3 -3
  25. package/api/resources/agents/resources/templates/client/Client.js +3 -3
  26. package/api/resources/agents/resources/tools/client/Client.js +3 -3
  27. package/api/resources/{messages/resources/batches → batches}/client/Client.d.ts +9 -9
  28. package/api/resources/{messages/resources/batches → batches}/client/Client.js +16 -16
  29. package/api/resources/{messages/resources/batches → batches}/client/requests/CreateBatch.d.ts +1 -1
  30. package/api/resources/blocks/client/Client.d.ts +3 -13
  31. package/api/resources/blocks/client/Client.js +10 -71
  32. package/api/resources/blocks/index.d.ts +1 -0
  33. package/api/resources/blocks/index.js +1 -0
  34. package/api/resources/blocks/resources/agents/client/Client.d.ts +45 -0
  35. package/api/resources/blocks/resources/agents/client/Client.js +135 -0
  36. package/api/resources/blocks/resources/agents/client/index.d.ts +1 -0
  37. package/api/resources/blocks/resources/agents/client/index.js +2 -0
  38. package/api/resources/blocks/resources/index.d.ts +1 -0
  39. package/api/resources/blocks/resources/index.js +37 -0
  40. package/api/resources/clientSideAccessTokens/client/Client.d.ts +5 -5
  41. package/api/resources/clientSideAccessTokens/client/Client.js +9 -9
  42. package/api/resources/clientSideAccessTokens/client/requests/{ClientSideAccessTokensCreateClientSideAccessTokenRequest.d.ts → ClientSideAccessTokensCreateRequest.d.ts} +2 -2
  43. package/api/resources/clientSideAccessTokens/client/requests/index.d.ts +1 -1
  44. package/api/resources/clientSideAccessTokens/types/ClientSideAccessTokensCreateRequestPolicyItem.d.ts +9 -0
  45. package/api/resources/clientSideAccessTokens/types/ClientSideAccessTokensCreateRequestPolicyItemAccessItem.d.ts +10 -0
  46. package/{dist/api/resources/clientSideAccessTokens/types/ClientSideAccessTokensCreateClientSideAccessTokenRequestPolicyItemAccessItem.js → api/resources/clientSideAccessTokens/types/ClientSideAccessTokensCreateRequestPolicyItemAccessItem.js} +2 -2
  47. package/{dist/api/resources/clientSideAccessTokens/types/ClientSideAccessTokensCreateClientSideAccessTokenResponse.d.ts → api/resources/clientSideAccessTokens/types/ClientSideAccessTokensCreateResponse.d.ts} +2 -2
  48. package/api/resources/clientSideAccessTokens/types/ClientSideAccessTokensCreateResponsePolicy.d.ts +8 -0
  49. package/api/resources/clientSideAccessTokens/types/ClientSideAccessTokensCreateResponsePolicyDataItem.d.ts +9 -0
  50. package/api/resources/clientSideAccessTokens/types/ClientSideAccessTokensCreateResponsePolicyDataItemAccessItem.d.ts +10 -0
  51. package/api/resources/clientSideAccessTokens/types/{ClientSideAccessTokensCreateClientSideAccessTokenRequestPolicyItemAccessItem.js → ClientSideAccessTokensCreateResponsePolicyDataItemAccessItem.js} +2 -2
  52. package/api/resources/clientSideAccessTokens/types/index.d.ts +6 -6
  53. package/api/resources/clientSideAccessTokens/types/index.js +6 -6
  54. package/api/resources/embeddings/client/Client.d.ts +39 -0
  55. package/api/resources/embeddings/client/Client.js +117 -0
  56. package/api/resources/embeddings/client/index.d.ts +1 -0
  57. package/api/resources/embeddings/client/index.js +2 -0
  58. package/api/resources/groups/client/Client.d.ts +0 -12
  59. package/api/resources/groups/client/Client.js +5 -64
  60. package/api/resources/groups/resources/messages/client/Client.d.ts +12 -0
  61. package/api/resources/groups/resources/messages/client/Client.js +63 -4
  62. package/api/resources/health/client/Client.js +1 -1
  63. package/api/resources/identities/client/Client.d.ts +3 -15
  64. package/api/resources/identities/client/Client.js +11 -71
  65. package/api/resources/identities/index.d.ts +1 -0
  66. package/api/resources/identities/index.js +1 -0
  67. package/api/resources/identities/resources/index.d.ts +1 -0
  68. package/api/resources/identities/resources/index.js +37 -0
  69. package/api/resources/identities/resources/properties/client/Client.d.ts +47 -0
  70. package/api/resources/identities/resources/properties/client/Client.js +134 -0
  71. package/api/resources/identities/resources/properties/client/index.d.ts +1 -0
  72. package/api/resources/identities/resources/properties/client/index.js +2 -0
  73. package/api/resources/identities/resources/properties/index.d.ts +1 -0
  74. package/api/resources/identities/resources/properties/index.js +17 -0
  75. package/api/resources/index.d.ts +4 -0
  76. package/api/resources/index.js +5 -1
  77. package/api/resources/jobs/client/Client.js +4 -4
  78. package/api/resources/messages/client/Client.d.ts +0 -3
  79. package/api/resources/messages/client/Client.js +1 -6
  80. package/api/resources/messages/index.d.ts +0 -1
  81. package/api/resources/messages/index.js +0 -1
  82. package/api/resources/models/client/Client.d.ts +2 -9
  83. package/api/resources/models/client/Client.js +4 -53
  84. package/api/resources/projects/client/Client.d.ts +3 -3
  85. package/api/resources/projects/client/Client.js +5 -5
  86. package/{dist/api/resources/projects/client/requests/ProjectsListProjectsRequest.d.ts → api/resources/projects/client/requests/ProjectsListRequest.d.ts} +1 -1
  87. package/api/resources/projects/client/requests/index.d.ts +1 -1
  88. package/api/resources/projects/types/{ProjectsListProjectsResponse.d.ts → ProjectsListResponse.d.ts} +2 -2
  89. package/api/resources/projects/types/{ProjectsListProjectsResponseProjectsItem.d.ts → ProjectsListResponseProjectsItem.d.ts} +1 -1
  90. package/api/resources/projects/types/index.d.ts +2 -2
  91. package/api/resources/projects/types/index.js +2 -2
  92. package/api/resources/providers/client/Client.d.ts +21 -5
  93. package/api/resources/providers/client/Client.js +98 -10
  94. package/{dist/api/resources/providers/client/requests/ListProvidersRequest.d.ts → api/resources/providers/client/requests/ProvidersListRequest.d.ts} +1 -1
  95. package/api/resources/providers/client/requests/index.d.ts +1 -1
  96. package/api/resources/runs/client/Client.d.ts +18 -63
  97. package/api/resources/runs/client/Client.js +36 -231
  98. package/api/resources/runs/client/requests/{ListActiveRunsRequest.d.ts → RunsListActiveRequest.d.ts} +1 -1
  99. package/api/resources/runs/client/requests/index.d.ts +1 -3
  100. package/api/resources/runs/index.d.ts +1 -0
  101. package/api/resources/runs/index.js +1 -0
  102. package/api/resources/runs/resources/index.d.ts +5 -0
  103. package/api/resources/runs/resources/index.js +44 -0
  104. package/api/resources/runs/resources/messages/client/Client.d.ts +58 -0
  105. package/api/resources/runs/resources/messages/client/Client.js +166 -0
  106. package/{dist/api/resources/runs/client/requests/ListRunMessagesRequest.d.ts → api/resources/runs/resources/messages/client/requests/MessagesListRequest.d.ts} +2 -2
  107. package/api/resources/runs/resources/messages/client/requests/index.d.ts +1 -0
  108. package/api/resources/runs/resources/messages/client/requests/index.js +2 -0
  109. package/api/resources/runs/resources/messages/index.d.ts +1 -0
  110. package/api/resources/runs/resources/messages/index.js +17 -0
  111. package/api/resources/runs/resources/steps/client/Client.d.ts +55 -0
  112. package/api/resources/runs/resources/steps/client/Client.js +160 -0
  113. package/{dist/api/resources/runs/client/requests/ListRunStepsRequest.d.ts → api/resources/runs/resources/steps/client/requests/StepsListRequest.d.ts} +1 -1
  114. package/api/resources/runs/resources/steps/client/requests/index.d.ts +1 -0
  115. package/api/resources/runs/resources/steps/client/requests/index.js +2 -0
  116. package/api/resources/runs/resources/steps/index.d.ts +1 -0
  117. package/api/resources/runs/resources/steps/index.js +17 -0
  118. package/api/resources/runs/resources/usage/client/Client.d.ts +44 -0
  119. package/api/resources/runs/resources/usage/client/Client.js +134 -0
  120. package/api/resources/runs/resources/usage/client/index.d.ts +1 -0
  121. package/api/resources/runs/resources/usage/client/index.js +2 -0
  122. package/api/resources/runs/resources/usage/index.d.ts +1 -0
  123. package/api/resources/runs/resources/usage/index.js +17 -0
  124. package/api/resources/sources/client/Client.d.ts +2 -2
  125. package/api/resources/sources/client/Client.js +9 -9
  126. package/api/resources/sources/resources/files/client/Client.js +3 -3
  127. package/api/resources/sources/resources/passages/client/Client.js +1 -1
  128. package/api/resources/steps/client/Client.d.ts +9 -2
  129. package/api/resources/steps/client/Client.js +47 -4
  130. package/api/resources/tag/client/Client.js +1 -1
  131. package/api/resources/tags/client/Client.d.ts +38 -0
  132. package/api/resources/tags/client/Client.js +110 -0
  133. package/api/resources/tags/client/index.d.ts +1 -0
  134. package/api/resources/tags/client/index.js +2 -0
  135. package/api/resources/tags/index.d.ts +1 -0
  136. package/api/resources/tags/index.js +17 -0
  137. package/api/resources/templates/client/Client.d.ts +6 -15
  138. package/api/resources/templates/client/Client.js +10 -60
  139. package/api/resources/templates/client/requests/{TemplatesListTemplatesRequest.d.ts → TemplatesListRequest.d.ts} +1 -1
  140. package/api/resources/templates/client/requests/index.d.ts +1 -2
  141. package/api/resources/templates/index.d.ts +1 -0
  142. package/api/resources/templates/index.js +1 -0
  143. package/api/resources/templates/resources/agents/client/Client.d.ts +44 -0
  144. package/api/resources/templates/resources/agents/client/Client.js +123 -0
  145. package/api/resources/templates/resources/agents/client/index.d.ts +1 -0
  146. package/api/resources/templates/resources/agents/client/index.js +17 -0
  147. package/{dist/api/resources/templates/client/requests/TemplatesCreateAgentsRequest.d.ts → api/resources/templates/resources/agents/client/requests/AgentsCreateRequest.d.ts} +1 -1
  148. package/api/resources/templates/resources/agents/client/requests/index.d.ts +1 -0
  149. package/api/resources/templates/resources/agents/client/requests/index.js +2 -0
  150. package/api/resources/templates/resources/agents/index.d.ts +2 -0
  151. package/api/resources/templates/resources/agents/index.js +18 -0
  152. package/{dist/api/resources/templates/types/TemplatesCreateAgentsResponse.d.ts → api/resources/templates/resources/agents/types/AgentsCreateResponse.d.ts} +2 -2
  153. package/api/resources/templates/resources/agents/types/index.d.ts +1 -0
  154. package/api/resources/templates/resources/agents/types/index.js +17 -0
  155. package/api/resources/templates/resources/index.d.ts +3 -0
  156. package/api/resources/{messages → templates}/resources/index.js +4 -3
  157. package/{dist/api/resources/projects/types/ProjectsListProjectsResponse.d.ts → api/resources/templates/types/TemplatesListResponse.d.ts} +2 -2
  158. package/api/resources/templates/types/{TemplatesListTemplatesResponseTemplatesItem.d.ts → TemplatesListResponseTemplatesItem.d.ts} +1 -1
  159. package/api/resources/templates/types/index.d.ts +2 -3
  160. package/api/resources/templates/types/index.js +2 -3
  161. package/api/resources/tools/client/Client.d.ts +2 -2
  162. package/api/resources/tools/client/Client.js +19 -19
  163. package/api/resources/voice/client/Client.js +1 -1
  164. package/dist/Client.d.ts +9 -0
  165. package/dist/Client.js +39 -24
  166. package/dist/api/resources/agents/client/Client.d.ts +13 -44
  167. package/dist/api/resources/agents/client/Client.js +63 -228
  168. package/dist/api/resources/agents/client/requests/index.d.ts +0 -3
  169. package/dist/api/resources/agents/resources/blocks/client/Client.js +5 -5
  170. package/dist/api/resources/agents/resources/context/client/Client.js +1 -1
  171. package/dist/api/resources/agents/resources/coreMemory/client/Client.js +1 -1
  172. package/dist/api/resources/agents/resources/groups/client/Client.d.ts +45 -0
  173. package/dist/api/resources/agents/resources/groups/client/Client.js +141 -0
  174. package/dist/api/resources/agents/resources/groups/client/index.d.ts +1 -0
  175. package/dist/api/resources/agents/resources/groups/client/index.js +17 -0
  176. package/dist/api/resources/agents/{client/requests/ListAgentGroupsRequest.d.ts → resources/groups/client/requests/GroupsListRequest.d.ts} +1 -1
  177. package/dist/api/resources/agents/resources/groups/client/requests/index.d.ts +1 -0
  178. package/dist/api/resources/agents/resources/groups/client/requests/index.js +2 -0
  179. package/dist/api/resources/agents/resources/groups/index.d.ts +1 -0
  180. package/dist/api/resources/agents/resources/groups/index.js +17 -0
  181. package/dist/api/resources/agents/resources/index.d.ts +2 -0
  182. package/dist/api/resources/agents/resources/index.js +3 -1
  183. package/dist/api/resources/agents/resources/memoryVariables/client/Client.js +1 -1
  184. package/dist/api/resources/agents/resources/messages/client/Client.d.ts +13 -0
  185. package/dist/api/resources/agents/resources/messages/client/Client.js +77 -5
  186. package/{api/resources/agents/client/requests/ResetMessagesRequest.d.ts → dist/api/resources/agents/resources/messages/client/requests/MessagesResetRequest.d.ts} +1 -1
  187. package/dist/api/resources/agents/resources/messages/client/requests/index.d.ts +1 -0
  188. package/dist/api/resources/agents/resources/passages/client/Client.d.ts +16 -0
  189. package/dist/api/resources/agents/resources/passages/client/Client.js +73 -3
  190. package/dist/api/resources/agents/{client → resources/passages/client}/requests/PassageUpdate.d.ts +1 -1
  191. package/dist/api/resources/agents/resources/passages/client/requests/index.d.ts +1 -0
  192. package/dist/api/resources/agents/resources/sources/client/Client.js +3 -3
  193. package/dist/api/resources/agents/resources/templates/client/Client.js +3 -3
  194. package/dist/api/resources/agents/resources/tools/client/Client.js +3 -3
  195. package/dist/api/resources/{messages/resources/batches → batches}/client/Client.d.ts +9 -9
  196. package/dist/api/resources/{messages/resources/batches → batches}/client/Client.js +16 -16
  197. package/dist/api/resources/batches/client/index.d.ts +1 -0
  198. package/dist/api/resources/batches/client/index.js +17 -0
  199. package/dist/api/resources/{messages/resources/batches → batches}/client/requests/CreateBatch.d.ts +1 -1
  200. package/dist/api/resources/batches/client/requests/index.js +2 -0
  201. package/dist/api/resources/batches/index.d.ts +1 -0
  202. package/dist/api/resources/batches/index.js +17 -0
  203. package/dist/api/resources/blocks/client/Client.d.ts +3 -13
  204. package/dist/api/resources/blocks/client/Client.js +10 -71
  205. package/dist/api/resources/blocks/index.d.ts +1 -0
  206. package/dist/api/resources/blocks/index.js +1 -0
  207. package/dist/api/resources/blocks/resources/agents/client/Client.d.ts +45 -0
  208. package/dist/api/resources/blocks/resources/agents/client/Client.js +135 -0
  209. package/dist/api/resources/blocks/resources/agents/client/index.d.ts +1 -0
  210. package/dist/api/resources/blocks/resources/agents/client/index.js +2 -0
  211. package/dist/api/resources/blocks/resources/agents/index.d.ts +1 -0
  212. package/dist/api/resources/blocks/resources/agents/index.js +17 -0
  213. package/dist/api/resources/blocks/resources/index.d.ts +1 -0
  214. package/dist/api/resources/blocks/resources/index.js +37 -0
  215. package/dist/api/resources/clientSideAccessTokens/client/Client.d.ts +5 -5
  216. package/dist/api/resources/clientSideAccessTokens/client/Client.js +9 -9
  217. package/dist/api/resources/clientSideAccessTokens/client/requests/{ClientSideAccessTokensCreateClientSideAccessTokenRequest.d.ts → ClientSideAccessTokensCreateRequest.d.ts} +2 -2
  218. package/dist/api/resources/clientSideAccessTokens/client/requests/index.d.ts +1 -1
  219. package/dist/api/resources/clientSideAccessTokens/types/ClientSideAccessTokensCreateRequestPolicyItem.d.ts +9 -0
  220. package/dist/api/resources/clientSideAccessTokens/types/ClientSideAccessTokensCreateRequestPolicyItemAccessItem.d.ts +10 -0
  221. package/{api/resources/clientSideAccessTokens/types/ClientSideAccessTokensCreateClientSideAccessTokenResponsePolicyDataItemAccessItem.js → dist/api/resources/clientSideAccessTokens/types/ClientSideAccessTokensCreateRequestPolicyItemAccessItem.js} +2 -2
  222. package/{api/resources/clientSideAccessTokens/types/ClientSideAccessTokensCreateClientSideAccessTokenResponse.d.ts → dist/api/resources/clientSideAccessTokens/types/ClientSideAccessTokensCreateResponse.d.ts} +2 -2
  223. package/dist/api/resources/clientSideAccessTokens/types/ClientSideAccessTokensCreateResponsePolicy.d.ts +8 -0
  224. package/dist/api/resources/clientSideAccessTokens/types/ClientSideAccessTokensCreateResponsePolicyDataItem.d.ts +9 -0
  225. package/dist/api/resources/clientSideAccessTokens/types/ClientSideAccessTokensCreateResponsePolicyDataItemAccessItem.d.ts +10 -0
  226. package/dist/api/resources/clientSideAccessTokens/types/{ClientSideAccessTokensCreateClientSideAccessTokenResponsePolicyDataItemAccessItem.js → ClientSideAccessTokensCreateResponsePolicyDataItemAccessItem.js} +2 -2
  227. package/dist/api/resources/clientSideAccessTokens/types/index.d.ts +6 -6
  228. package/dist/api/resources/clientSideAccessTokens/types/index.js +6 -6
  229. package/dist/api/resources/embeddings/client/Client.d.ts +39 -0
  230. package/dist/api/resources/embeddings/client/Client.js +117 -0
  231. package/dist/api/resources/embeddings/client/index.d.ts +1 -0
  232. package/dist/api/resources/embeddings/client/index.js +2 -0
  233. package/dist/api/resources/embeddings/index.d.ts +1 -0
  234. package/dist/api/resources/embeddings/index.js +17 -0
  235. package/dist/api/resources/groups/client/Client.d.ts +0 -12
  236. package/dist/api/resources/groups/client/Client.js +5 -64
  237. package/dist/api/resources/groups/resources/messages/client/Client.d.ts +12 -0
  238. package/dist/api/resources/groups/resources/messages/client/Client.js +63 -4
  239. package/dist/api/resources/health/client/Client.js +1 -1
  240. package/dist/api/resources/identities/client/Client.d.ts +3 -15
  241. package/dist/api/resources/identities/client/Client.js +11 -71
  242. package/dist/api/resources/identities/index.d.ts +1 -0
  243. package/dist/api/resources/identities/index.js +1 -0
  244. package/dist/api/resources/identities/resources/index.d.ts +1 -0
  245. package/dist/api/resources/identities/resources/index.js +37 -0
  246. package/dist/api/resources/identities/resources/properties/client/Client.d.ts +47 -0
  247. package/dist/api/resources/identities/resources/properties/client/Client.js +134 -0
  248. package/dist/api/resources/identities/resources/properties/client/index.d.ts +1 -0
  249. package/dist/api/resources/identities/resources/properties/client/index.js +2 -0
  250. package/dist/api/resources/identities/resources/properties/index.d.ts +1 -0
  251. package/dist/api/resources/identities/resources/properties/index.js +17 -0
  252. package/dist/api/resources/index.d.ts +4 -0
  253. package/dist/api/resources/index.js +5 -1
  254. package/dist/api/resources/jobs/client/Client.js +4 -4
  255. package/dist/api/resources/messages/client/Client.d.ts +0 -3
  256. package/dist/api/resources/messages/client/Client.js +1 -6
  257. package/dist/api/resources/messages/index.d.ts +0 -1
  258. package/dist/api/resources/messages/index.js +0 -1
  259. package/dist/api/resources/models/client/Client.d.ts +2 -9
  260. package/dist/api/resources/models/client/Client.js +4 -53
  261. package/dist/api/resources/projects/client/Client.d.ts +3 -3
  262. package/dist/api/resources/projects/client/Client.js +5 -5
  263. package/{api/resources/projects/client/requests/ProjectsListProjectsRequest.d.ts → dist/api/resources/projects/client/requests/ProjectsListRequest.d.ts} +1 -1
  264. package/dist/api/resources/projects/client/requests/index.d.ts +1 -1
  265. package/{api/resources/templates/types/TemplatesListTemplatesResponse.d.ts → dist/api/resources/projects/types/ProjectsListResponse.d.ts} +2 -2
  266. package/dist/api/resources/projects/types/{ProjectsListProjectsResponseProjectsItem.d.ts → ProjectsListResponseProjectsItem.d.ts} +1 -1
  267. package/dist/api/resources/projects/types/index.d.ts +2 -2
  268. package/dist/api/resources/projects/types/index.js +2 -2
  269. package/dist/api/resources/providers/client/Client.d.ts +21 -5
  270. package/dist/api/resources/providers/client/Client.js +98 -10
  271. package/{api/resources/providers/client/requests/ListProvidersRequest.d.ts → dist/api/resources/providers/client/requests/ProvidersListRequest.d.ts} +1 -1
  272. package/dist/api/resources/providers/client/requests/index.d.ts +1 -1
  273. package/dist/api/resources/runs/client/Client.d.ts +18 -63
  274. package/dist/api/resources/runs/client/Client.js +36 -231
  275. package/dist/api/resources/runs/client/requests/{ListActiveRunsRequest.d.ts → RunsListActiveRequest.d.ts} +1 -1
  276. package/dist/api/resources/runs/client/requests/index.d.ts +1 -3
  277. package/dist/api/resources/runs/index.d.ts +1 -0
  278. package/dist/api/resources/runs/index.js +1 -0
  279. package/dist/api/resources/runs/resources/index.d.ts +5 -0
  280. package/dist/api/resources/runs/resources/index.js +44 -0
  281. package/dist/api/resources/runs/resources/messages/client/Client.d.ts +58 -0
  282. package/dist/api/resources/runs/resources/messages/client/Client.js +166 -0
  283. package/dist/api/resources/runs/resources/messages/client/index.d.ts +1 -0
  284. package/dist/api/resources/runs/resources/messages/client/index.js +17 -0
  285. package/{api/resources/runs/client/requests/ListRunMessagesRequest.d.ts → dist/api/resources/runs/resources/messages/client/requests/MessagesListRequest.d.ts} +2 -2
  286. package/dist/api/resources/runs/resources/messages/client/requests/index.d.ts +1 -0
  287. package/dist/api/resources/runs/resources/messages/client/requests/index.js +2 -0
  288. package/dist/api/resources/runs/resources/messages/index.d.ts +1 -0
  289. package/dist/api/resources/runs/resources/messages/index.js +17 -0
  290. package/dist/api/resources/runs/resources/steps/client/Client.d.ts +55 -0
  291. package/dist/api/resources/runs/resources/steps/client/Client.js +160 -0
  292. package/dist/api/resources/runs/resources/steps/client/index.d.ts +1 -0
  293. package/dist/api/resources/runs/resources/steps/client/index.js +17 -0
  294. package/{api/resources/runs/client/requests/ListRunStepsRequest.d.ts → dist/api/resources/runs/resources/steps/client/requests/StepsListRequest.d.ts} +1 -1
  295. package/dist/api/resources/runs/resources/steps/client/requests/index.d.ts +1 -0
  296. package/dist/api/resources/runs/resources/steps/client/requests/index.js +2 -0
  297. package/dist/api/resources/runs/resources/steps/index.d.ts +1 -0
  298. package/dist/api/resources/runs/resources/steps/index.js +17 -0
  299. package/dist/api/resources/runs/resources/usage/client/Client.d.ts +44 -0
  300. package/dist/api/resources/runs/resources/usage/client/Client.js +134 -0
  301. package/dist/api/resources/runs/resources/usage/client/index.d.ts +1 -0
  302. package/dist/api/resources/runs/resources/usage/client/index.js +2 -0
  303. package/dist/api/resources/runs/resources/usage/index.d.ts +1 -0
  304. package/dist/api/resources/runs/resources/usage/index.js +17 -0
  305. package/dist/api/resources/sources/client/Client.d.ts +2 -2
  306. package/dist/api/resources/sources/client/Client.js +9 -9
  307. package/dist/api/resources/sources/resources/files/client/Client.js +3 -3
  308. package/dist/api/resources/sources/resources/passages/client/Client.js +1 -1
  309. package/dist/api/resources/steps/client/Client.d.ts +9 -2
  310. package/dist/api/resources/steps/client/Client.js +47 -4
  311. package/dist/api/resources/tag/client/Client.js +1 -1
  312. package/dist/api/resources/tags/client/Client.d.ts +38 -0
  313. package/dist/api/resources/tags/client/Client.js +110 -0
  314. package/dist/api/resources/tags/client/index.d.ts +1 -0
  315. package/dist/api/resources/tags/client/index.js +2 -0
  316. package/dist/api/resources/tags/index.d.ts +1 -0
  317. package/dist/api/resources/tags/index.js +17 -0
  318. package/dist/api/resources/templates/client/Client.d.ts +6 -15
  319. package/dist/api/resources/templates/client/Client.js +10 -60
  320. package/dist/api/resources/templates/client/requests/{TemplatesListTemplatesRequest.d.ts → TemplatesListRequest.d.ts} +1 -1
  321. package/dist/api/resources/templates/client/requests/index.d.ts +1 -2
  322. package/dist/api/resources/templates/index.d.ts +1 -0
  323. package/dist/api/resources/templates/index.js +1 -0
  324. package/dist/api/resources/templates/resources/agents/client/Client.d.ts +44 -0
  325. package/dist/api/resources/templates/resources/agents/client/Client.js +123 -0
  326. package/dist/api/resources/templates/resources/agents/client/index.d.ts +1 -0
  327. package/dist/api/resources/templates/resources/agents/client/index.js +17 -0
  328. package/{api/resources/templates/client/requests/TemplatesCreateAgentsRequest.d.ts → dist/api/resources/templates/resources/agents/client/requests/AgentsCreateRequest.d.ts} +1 -1
  329. package/dist/api/resources/templates/resources/agents/client/requests/index.d.ts +1 -0
  330. package/dist/api/resources/templates/resources/agents/client/requests/index.js +2 -0
  331. package/dist/api/resources/templates/resources/agents/index.d.ts +2 -0
  332. package/dist/api/resources/templates/resources/agents/index.js +18 -0
  333. package/{api/resources/templates/types/TemplatesCreateAgentsResponse.d.ts → dist/api/resources/templates/resources/agents/types/AgentsCreateResponse.d.ts} +2 -2
  334. package/dist/api/resources/templates/resources/agents/types/index.d.ts +1 -0
  335. package/dist/api/resources/templates/resources/agents/types/index.js +17 -0
  336. package/dist/api/resources/templates/resources/index.d.ts +3 -0
  337. package/dist/{serialization/resources/messages → api/resources/templates}/resources/index.js +4 -3
  338. package/dist/api/resources/templates/types/{TemplatesListTemplatesResponse.d.ts → TemplatesListResponse.d.ts} +2 -2
  339. package/dist/api/resources/templates/types/{TemplatesListTemplatesResponseTemplatesItem.d.ts → TemplatesListResponseTemplatesItem.d.ts} +1 -1
  340. package/dist/api/resources/templates/types/index.d.ts +2 -3
  341. package/dist/api/resources/templates/types/index.js +2 -3
  342. package/dist/api/resources/tools/client/Client.d.ts +2 -2
  343. package/dist/api/resources/tools/client/Client.js +19 -19
  344. package/dist/api/resources/voice/client/Client.js +1 -1
  345. package/dist/serialization/resources/agents/client/index.d.ts +0 -2
  346. package/dist/serialization/resources/agents/client/index.js +1 -3
  347. package/dist/serialization/resources/agents/client/requests/index.d.ts +0 -1
  348. package/dist/serialization/resources/agents/client/requests/index.js +1 -3
  349. package/dist/serialization/resources/agents/resources/groups/client/index.d.ts +1 -0
  350. package/dist/serialization/resources/agents/resources/groups/client/index.js +37 -0
  351. package/{serialization/resources/messages/resources/batches → dist/serialization/resources/agents/resources/groups}/client/list.d.ts +3 -3
  352. package/{serialization/resources/agents/client/listAgentGroups.js → dist/serialization/resources/agents/resources/groups/client/list.js} +2 -2
  353. package/dist/serialization/resources/agents/resources/groups/index.d.ts +1 -0
  354. package/dist/serialization/resources/agents/resources/groups/index.js +17 -0
  355. package/dist/serialization/resources/agents/resources/index.d.ts +1 -0
  356. package/dist/serialization/resources/agents/resources/index.js +2 -1
  357. package/dist/serialization/resources/agents/resources/passages/client/index.d.ts +1 -0
  358. package/dist/serialization/resources/agents/resources/passages/client/index.js +2 -1
  359. package/dist/serialization/resources/agents/resources/passages/client/modify.d.ts +11 -0
  360. package/{serialization/resources/agents/client/modifyPassage.js → dist/serialization/resources/agents/resources/passages/client/modify.js} +2 -2
  361. package/dist/serialization/resources/agents/{client → resources/passages/client}/requests/PassageUpdate.d.ts +5 -5
  362. package/{serialization/resources/agents → dist/serialization/resources/agents/resources/passages}/client/requests/PassageUpdate.js +2 -2
  363. package/dist/serialization/resources/agents/resources/passages/client/requests/index.d.ts +1 -0
  364. package/dist/serialization/resources/agents/resources/passages/client/requests/index.js +3 -1
  365. package/dist/serialization/resources/{agents/client/listAgentGroups.d.ts → batches/client/list.d.ts} +3 -3
  366. package/dist/serialization/resources/{agents/client/modifyPassage.js → batches/client/list.js} +2 -2
  367. package/dist/serialization/resources/batches/client/requests/CreateBatch.d.ts +14 -0
  368. package/dist/serialization/resources/{messages/resources/batches → batches}/client/requests/CreateBatch.js +2 -2
  369. package/dist/serialization/resources/batches/index.d.ts +1 -0
  370. package/dist/serialization/resources/batches/index.js +17 -0
  371. package/dist/serialization/resources/blocks/client/index.d.ts +0 -1
  372. package/dist/serialization/resources/blocks/client/index.js +1 -2
  373. package/dist/serialization/resources/blocks/index.d.ts +1 -0
  374. package/dist/serialization/resources/blocks/index.js +1 -0
  375. package/dist/serialization/resources/blocks/resources/agents/client/index.d.ts +1 -0
  376. package/dist/serialization/resources/blocks/resources/agents/client/index.js +37 -0
  377. package/dist/serialization/resources/blocks/resources/agents/client/list.d.ts +11 -0
  378. package/dist/serialization/resources/blocks/{client/listAgentsForBlock.js → resources/agents/client/list.js} +2 -2
  379. package/dist/serialization/resources/blocks/resources/agents/index.d.ts +1 -0
  380. package/dist/serialization/resources/blocks/resources/agents/index.js +17 -0
  381. package/dist/serialization/resources/blocks/resources/index.d.ts +1 -0
  382. package/dist/serialization/resources/blocks/resources/index.js +37 -0
  383. package/dist/serialization/resources/clientSideAccessTokens/client/requests/ClientSideAccessTokensCreateRequest.d.ts +15 -0
  384. package/{serialization/resources/clientSideAccessTokens/client/requests/ClientSideAccessTokensCreateClientSideAccessTokenRequest.js → dist/serialization/resources/clientSideAccessTokens/client/requests/ClientSideAccessTokensCreateRequest.js} +4 -4
  385. package/dist/serialization/resources/clientSideAccessTokens/client/requests/index.d.ts +1 -1
  386. package/dist/serialization/resources/clientSideAccessTokens/client/requests/index.js +3 -3
  387. package/dist/serialization/resources/clientSideAccessTokens/types/ClientSideAccessTokensCreateRequestPolicyItem.d.ts +15 -0
  388. package/{serialization/resources/clientSideAccessTokens/types/ClientSideAccessTokensCreateClientSideAccessTokenRequestPolicyItem.js → dist/serialization/resources/clientSideAccessTokens/types/ClientSideAccessTokensCreateRequestPolicyItem.js} +4 -4
  389. package/dist/serialization/resources/clientSideAccessTokens/types/ClientSideAccessTokensCreateRequestPolicyItemAccessItem.d.ts +10 -0
  390. package/dist/serialization/resources/clientSideAccessTokens/types/ClientSideAccessTokensCreateRequestPolicyItemAccessItem.js +41 -0
  391. package/dist/serialization/resources/clientSideAccessTokens/types/ClientSideAccessTokensCreateResponse.d.ts +16 -0
  392. package/dist/serialization/resources/clientSideAccessTokens/types/{ClientSideAccessTokensCreateClientSideAccessTokenResponse.js → ClientSideAccessTokensCreateResponse.js} +4 -4
  393. package/dist/serialization/resources/clientSideAccessTokens/types/ClientSideAccessTokensCreateResponsePolicy.d.ts +14 -0
  394. package/dist/serialization/resources/{templates/types/TemplatesListTemplatesResponse.js → clientSideAccessTokens/types/ClientSideAccessTokensCreateResponsePolicy.js} +5 -5
  395. package/dist/serialization/resources/clientSideAccessTokens/types/ClientSideAccessTokensCreateResponsePolicyDataItem.d.ts +15 -0
  396. package/dist/serialization/resources/clientSideAccessTokens/types/{ClientSideAccessTokensCreateClientSideAccessTokenRequestPolicyItem.js → ClientSideAccessTokensCreateResponsePolicyDataItem.js} +4 -4
  397. package/dist/serialization/resources/clientSideAccessTokens/types/ClientSideAccessTokensCreateResponsePolicyDataItemAccessItem.d.ts +10 -0
  398. package/dist/serialization/resources/clientSideAccessTokens/types/ClientSideAccessTokensCreateResponsePolicyDataItemAccessItem.js +41 -0
  399. package/dist/serialization/resources/clientSideAccessTokens/types/index.d.ts +6 -6
  400. package/dist/serialization/resources/clientSideAccessTokens/types/index.js +6 -6
  401. package/dist/serialization/resources/embeddings/client/index.d.ts +1 -0
  402. package/dist/serialization/resources/embeddings/client/index.js +37 -0
  403. package/{serialization/resources/models/client/listEmbeddingModels.d.ts → dist/serialization/resources/embeddings/client/list.d.ts} +1 -1
  404. package/dist/serialization/resources/embeddings/index.d.ts +1 -0
  405. package/dist/serialization/resources/embeddings/index.js +17 -0
  406. package/dist/serialization/resources/identities/client/index.d.ts +0 -1
  407. package/dist/serialization/resources/identities/client/index.js +1 -2
  408. package/dist/serialization/resources/identities/index.d.ts +1 -0
  409. package/dist/serialization/resources/identities/index.js +1 -0
  410. package/dist/serialization/resources/identities/resources/index.d.ts +1 -0
  411. package/dist/serialization/resources/identities/resources/index.js +37 -0
  412. package/dist/serialization/resources/identities/resources/properties/client/index.d.ts +1 -0
  413. package/dist/serialization/resources/identities/resources/properties/client/index.js +37 -0
  414. package/dist/serialization/resources/identities/resources/properties/client/upsert.d.ts +11 -0
  415. package/dist/serialization/resources/identities/{client/upsertIdentityProperties.js → resources/properties/client/upsert.js} +2 -2
  416. package/dist/serialization/resources/identities/resources/properties/index.d.ts +1 -0
  417. package/dist/serialization/resources/identities/resources/properties/index.js +17 -0
  418. package/dist/serialization/resources/index.d.ts +3 -2
  419. package/dist/serialization/resources/index.js +4 -3
  420. package/dist/serialization/resources/models/client/index.d.ts +1 -2
  421. package/dist/serialization/resources/models/client/index.js +2 -3
  422. package/{serialization/resources/models/client/listLlms.d.ts → dist/serialization/resources/models/client/list.d.ts} +1 -1
  423. package/dist/serialization/resources/projects/types/ProjectsListResponse.d.ts +14 -0
  424. package/dist/serialization/resources/projects/types/{ProjectsListProjectsResponse.js → ProjectsListResponse.js} +4 -4
  425. package/dist/serialization/resources/projects/types/{ProjectsListProjectsResponseProjectsItem.d.ts → ProjectsListResponseProjectsItem.d.ts} +2 -2
  426. package/dist/serialization/resources/projects/types/{ProjectsListProjectsResponseProjectsItem.js → ProjectsListResponseProjectsItem.js} +2 -2
  427. package/dist/serialization/resources/projects/types/index.d.ts +2 -2
  428. package/dist/serialization/resources/projects/types/index.js +2 -2
  429. package/dist/serialization/resources/providers/client/index.d.ts +1 -1
  430. package/dist/serialization/resources/providers/client/index.js +2 -2
  431. package/{serialization/resources/providers/client/listProviders.d.ts → dist/serialization/resources/providers/client/list.d.ts} +1 -1
  432. package/dist/serialization/resources/runs/client/index.d.ts +1 -3
  433. package/dist/serialization/resources/runs/client/index.js +2 -4
  434. package/{serialization/resources/runs/client/listActiveRuns.d.ts → dist/serialization/resources/runs/client/listActive.d.ts} +1 -1
  435. package/dist/serialization/resources/runs/index.d.ts +1 -0
  436. package/dist/serialization/resources/runs/index.js +1 -0
  437. package/dist/serialization/resources/runs/resources/index.d.ts +2 -0
  438. package/dist/serialization/resources/runs/resources/index.js +38 -0
  439. package/dist/serialization/resources/runs/resources/messages/client/index.d.ts +1 -0
  440. package/dist/serialization/resources/runs/resources/messages/client/index.js +37 -0
  441. package/dist/serialization/resources/runs/resources/messages/client/list.d.ts +11 -0
  442. package/dist/serialization/resources/runs/{client/listRunMessages.js → resources/messages/client/list.js} +2 -2
  443. package/dist/serialization/resources/runs/resources/messages/index.d.ts +1 -0
  444. package/dist/serialization/resources/runs/resources/messages/index.js +17 -0
  445. package/dist/serialization/resources/runs/resources/steps/client/index.d.ts +1 -0
  446. package/dist/serialization/resources/runs/resources/steps/client/index.js +37 -0
  447. package/dist/serialization/resources/{messages/resources/batches → runs/resources/steps}/client/list.d.ts +3 -3
  448. package/dist/serialization/resources/runs/{client/listRunSteps.js → resources/steps/client/list.js} +2 -2
  449. package/dist/serialization/resources/runs/resources/steps/index.d.ts +1 -0
  450. package/dist/serialization/resources/runs/resources/steps/index.js +17 -0
  451. package/dist/serialization/resources/sources/client/index.d.ts +1 -1
  452. package/dist/serialization/resources/sources/client/index.js +2 -2
  453. package/dist/serialization/resources/sources/client/{getByName.d.ts → retrieveByName.d.ts} +1 -1
  454. package/dist/serialization/resources/templates/index.d.ts +1 -1
  455. package/dist/serialization/resources/templates/index.js +1 -1
  456. package/dist/serialization/resources/templates/resources/agents/client/index.d.ts +1 -0
  457. package/dist/serialization/resources/templates/resources/agents/client/index.js +17 -0
  458. package/dist/serialization/resources/templates/resources/agents/client/requests/AgentsCreateRequest.d.ts +16 -0
  459. package/dist/serialization/resources/templates/{client/requests/TemplatesCreateAgentsRequest.js → resources/agents/client/requests/AgentsCreateRequest.js} +3 -3
  460. package/dist/serialization/resources/templates/resources/agents/client/requests/index.d.ts +1 -0
  461. package/dist/serialization/resources/templates/resources/agents/client/requests/index.js +5 -0
  462. package/dist/serialization/resources/templates/resources/agents/index.d.ts +2 -0
  463. package/dist/serialization/resources/templates/resources/agents/index.js +18 -0
  464. package/dist/serialization/resources/templates/resources/agents/types/AgentsCreateResponse.d.ts +13 -0
  465. package/{serialization/resources/messages/resources/batches/client/list.js → dist/serialization/resources/templates/resources/agents/types/AgentsCreateResponse.js} +5 -3
  466. package/dist/serialization/resources/templates/resources/agents/types/index.d.ts +1 -0
  467. package/dist/serialization/resources/templates/resources/agents/types/index.js +17 -0
  468. package/dist/serialization/resources/templates/resources/index.d.ts +3 -0
  469. package/dist/{api/resources/messages → serialization/resources/templates}/resources/index.js +4 -3
  470. package/dist/serialization/resources/templates/types/TemplatesListResponse.d.ts +14 -0
  471. package/{serialization/resources/projects/types/ProjectsListProjectsResponse.js → dist/serialization/resources/templates/types/TemplatesListResponse.js} +4 -4
  472. package/dist/serialization/resources/templates/types/TemplatesListResponseTemplatesItem.d.ts +13 -0
  473. package/dist/serialization/resources/templates/types/{TemplatesListTemplatesResponseTemplatesItem.js → TemplatesListResponseTemplatesItem.js} +2 -2
  474. package/dist/serialization/resources/templates/types/index.d.ts +2 -3
  475. package/dist/serialization/resources/templates/types/index.js +2 -3
  476. package/dist/serialization/resources/tools/client/index.d.ts +1 -1
  477. package/dist/serialization/resources/tools/client/index.js +2 -2
  478. package/{serialization/resources/tools/client/addBaseTool.d.ts → dist/serialization/resources/tools/client/upsertBaseTools.d.ts} +1 -1
  479. package/dist/version.d.ts +1 -1
  480. package/dist/version.js +1 -1
  481. package/package.json +1 -1
  482. package/reference.md +921 -639
  483. package/serialization/resources/agents/client/index.d.ts +0 -2
  484. package/serialization/resources/agents/client/index.js +1 -3
  485. package/serialization/resources/agents/client/requests/index.d.ts +0 -1
  486. package/serialization/resources/agents/client/requests/index.js +1 -3
  487. package/serialization/resources/agents/resources/groups/client/index.d.ts +1 -0
  488. package/serialization/resources/agents/resources/groups/client/index.js +37 -0
  489. package/serialization/resources/agents/resources/groups/client/list.d.ts +11 -0
  490. package/{dist/serialization/resources/agents/client/listAgentGroups.js → serialization/resources/agents/resources/groups/client/list.js} +2 -2
  491. package/serialization/resources/agents/resources/groups/index.d.ts +1 -0
  492. package/serialization/resources/agents/resources/groups/index.js +17 -0
  493. package/serialization/resources/agents/resources/index.d.ts +1 -0
  494. package/serialization/resources/agents/resources/index.js +2 -1
  495. package/serialization/resources/agents/resources/passages/client/index.d.ts +1 -0
  496. package/serialization/resources/agents/resources/passages/client/index.js +2 -1
  497. package/serialization/resources/agents/resources/passages/client/modify.d.ts +11 -0
  498. package/{dist/serialization/resources/messages/resources/batches/client/list.js → serialization/resources/agents/resources/passages/client/modify.js} +2 -2
  499. package/serialization/resources/agents/{client → resources/passages/client}/requests/PassageUpdate.d.ts +5 -5
  500. package/{dist/serialization/resources/agents → serialization/resources/agents/resources/passages}/client/requests/PassageUpdate.js +2 -2
  501. package/serialization/resources/agents/resources/passages/client/requests/index.d.ts +1 -0
  502. package/serialization/resources/agents/resources/passages/client/requests/index.js +3 -1
  503. package/{dist/serialization/resources/runs/client/listRunSteps.d.ts → serialization/resources/batches/client/list.d.ts} +3 -3
  504. package/serialization/resources/batches/client/list.js +42 -0
  505. package/serialization/resources/batches/client/requests/CreateBatch.d.ts +14 -0
  506. package/serialization/resources/{messages/resources/batches → batches}/client/requests/CreateBatch.js +2 -2
  507. package/serialization/resources/batches/index.d.ts +1 -0
  508. package/serialization/resources/batches/index.js +17 -0
  509. package/serialization/resources/blocks/client/index.d.ts +0 -1
  510. package/serialization/resources/blocks/client/index.js +1 -2
  511. package/serialization/resources/blocks/index.d.ts +1 -0
  512. package/serialization/resources/blocks/index.js +1 -0
  513. package/serialization/resources/blocks/resources/agents/client/index.d.ts +1 -0
  514. package/serialization/resources/blocks/resources/agents/client/index.js +37 -0
  515. package/serialization/resources/blocks/resources/agents/client/list.d.ts +11 -0
  516. package/serialization/resources/blocks/{client/listAgentsForBlock.js → resources/agents/client/list.js} +2 -2
  517. package/serialization/resources/blocks/resources/agents/index.d.ts +1 -0
  518. package/serialization/resources/blocks/resources/agents/index.js +17 -0
  519. package/serialization/resources/blocks/resources/index.d.ts +1 -0
  520. package/serialization/resources/blocks/resources/index.js +37 -0
  521. package/serialization/resources/clientSideAccessTokens/client/requests/ClientSideAccessTokensCreateRequest.d.ts +15 -0
  522. package/{dist/serialization/resources/clientSideAccessTokens/client/requests/ClientSideAccessTokensCreateClientSideAccessTokenRequest.js → serialization/resources/clientSideAccessTokens/client/requests/ClientSideAccessTokensCreateRequest.js} +4 -4
  523. package/serialization/resources/clientSideAccessTokens/client/requests/index.d.ts +1 -1
  524. package/serialization/resources/clientSideAccessTokens/client/requests/index.js +3 -3
  525. package/serialization/resources/clientSideAccessTokens/types/ClientSideAccessTokensCreateRequestPolicyItem.d.ts +15 -0
  526. package/serialization/resources/clientSideAccessTokens/types/ClientSideAccessTokensCreateRequestPolicyItem.js +46 -0
  527. package/serialization/resources/clientSideAccessTokens/types/ClientSideAccessTokensCreateRequestPolicyItemAccessItem.d.ts +10 -0
  528. package/serialization/resources/clientSideAccessTokens/types/ClientSideAccessTokensCreateRequestPolicyItemAccessItem.js +41 -0
  529. package/serialization/resources/clientSideAccessTokens/types/ClientSideAccessTokensCreateResponse.d.ts +16 -0
  530. package/serialization/resources/clientSideAccessTokens/types/{ClientSideAccessTokensCreateClientSideAccessTokenResponse.js → ClientSideAccessTokensCreateResponse.js} +4 -4
  531. package/serialization/resources/clientSideAccessTokens/types/ClientSideAccessTokensCreateResponsePolicy.d.ts +14 -0
  532. package/serialization/resources/clientSideAccessTokens/types/ClientSideAccessTokensCreateResponsePolicy.js +45 -0
  533. package/serialization/resources/clientSideAccessTokens/types/ClientSideAccessTokensCreateResponsePolicyDataItem.d.ts +15 -0
  534. package/{dist/serialization/resources/clientSideAccessTokens/types/ClientSideAccessTokensCreateClientSideAccessTokenResponsePolicyDataItem.js → serialization/resources/clientSideAccessTokens/types/ClientSideAccessTokensCreateResponsePolicyDataItem.js} +4 -4
  535. package/serialization/resources/clientSideAccessTokens/types/ClientSideAccessTokensCreateResponsePolicyDataItemAccessItem.d.ts +10 -0
  536. package/serialization/resources/clientSideAccessTokens/types/ClientSideAccessTokensCreateResponsePolicyDataItemAccessItem.js +41 -0
  537. package/serialization/resources/clientSideAccessTokens/types/index.d.ts +6 -6
  538. package/serialization/resources/clientSideAccessTokens/types/index.js +6 -6
  539. package/serialization/resources/embeddings/client/index.d.ts +1 -0
  540. package/serialization/resources/embeddings/client/index.js +37 -0
  541. package/{dist/serialization/resources/models/client/listEmbeddingModels.d.ts → serialization/resources/embeddings/client/list.d.ts} +1 -1
  542. package/serialization/resources/embeddings/index.d.ts +1 -0
  543. package/serialization/resources/embeddings/index.js +17 -0
  544. package/serialization/resources/identities/client/index.d.ts +0 -1
  545. package/serialization/resources/identities/client/index.js +1 -2
  546. package/serialization/resources/identities/index.d.ts +1 -0
  547. package/serialization/resources/identities/index.js +1 -0
  548. package/serialization/resources/identities/resources/index.d.ts +1 -0
  549. package/serialization/resources/identities/resources/index.js +37 -0
  550. package/serialization/resources/identities/resources/properties/client/index.d.ts +1 -0
  551. package/serialization/resources/identities/resources/properties/client/index.js +37 -0
  552. package/serialization/resources/identities/resources/properties/client/upsert.d.ts +11 -0
  553. package/serialization/resources/identities/{client/upsertIdentityProperties.js → resources/properties/client/upsert.js} +2 -2
  554. package/serialization/resources/identities/resources/properties/index.d.ts +1 -0
  555. package/serialization/resources/identities/resources/properties/index.js +17 -0
  556. package/serialization/resources/index.d.ts +3 -2
  557. package/serialization/resources/index.js +4 -3
  558. package/serialization/resources/models/client/index.d.ts +1 -2
  559. package/serialization/resources/models/client/index.js +2 -3
  560. package/{dist/serialization/resources/models/client/listLlms.d.ts → serialization/resources/models/client/list.d.ts} +1 -1
  561. package/serialization/resources/projects/types/ProjectsListResponse.d.ts +14 -0
  562. package/serialization/resources/projects/types/ProjectsListResponse.js +45 -0
  563. package/serialization/resources/projects/types/{ProjectsListProjectsResponseProjectsItem.d.ts → ProjectsListResponseProjectsItem.d.ts} +2 -2
  564. package/serialization/resources/projects/types/{ProjectsListProjectsResponseProjectsItem.js → ProjectsListResponseProjectsItem.js} +2 -2
  565. package/serialization/resources/projects/types/index.d.ts +2 -2
  566. package/serialization/resources/projects/types/index.js +2 -2
  567. package/serialization/resources/providers/client/index.d.ts +1 -1
  568. package/serialization/resources/providers/client/index.js +2 -2
  569. package/{dist/serialization/resources/providers/client/listProviders.d.ts → serialization/resources/providers/client/list.d.ts} +1 -1
  570. package/serialization/resources/runs/client/index.d.ts +1 -3
  571. package/serialization/resources/runs/client/index.js +2 -4
  572. package/{dist/serialization/resources/runs/client/listActiveRuns.d.ts → serialization/resources/runs/client/listActive.d.ts} +1 -1
  573. package/serialization/resources/runs/index.d.ts +1 -0
  574. package/serialization/resources/runs/index.js +1 -0
  575. package/serialization/resources/runs/resources/index.d.ts +2 -0
  576. package/serialization/resources/runs/resources/index.js +38 -0
  577. package/serialization/resources/runs/resources/messages/client/index.d.ts +1 -0
  578. package/serialization/resources/runs/resources/messages/client/index.js +37 -0
  579. package/serialization/resources/runs/resources/messages/client/list.d.ts +11 -0
  580. package/serialization/resources/runs/{client/listRunMessages.js → resources/messages/client/list.js} +2 -2
  581. package/serialization/resources/runs/resources/messages/index.d.ts +1 -0
  582. package/serialization/resources/runs/resources/messages/index.js +17 -0
  583. package/serialization/resources/runs/resources/steps/client/index.d.ts +1 -0
  584. package/serialization/resources/runs/resources/steps/client/index.js +37 -0
  585. package/serialization/resources/runs/resources/steps/client/list.d.ts +11 -0
  586. package/serialization/resources/runs/{client/listRunSteps.js → resources/steps/client/list.js} +2 -2
  587. package/serialization/resources/runs/resources/steps/index.d.ts +1 -0
  588. package/serialization/resources/runs/resources/steps/index.js +17 -0
  589. package/serialization/resources/sources/client/index.d.ts +1 -1
  590. package/serialization/resources/sources/client/index.js +2 -2
  591. package/serialization/resources/sources/client/{getByName.d.ts → retrieveByName.d.ts} +1 -1
  592. package/serialization/resources/templates/index.d.ts +1 -1
  593. package/serialization/resources/templates/index.js +1 -1
  594. package/serialization/resources/templates/resources/agents/client/index.d.ts +1 -0
  595. package/serialization/resources/templates/resources/agents/client/index.js +17 -0
  596. package/serialization/resources/templates/resources/agents/client/requests/AgentsCreateRequest.d.ts +16 -0
  597. package/serialization/resources/templates/{client/requests/TemplatesCreateAgentsRequest.js → resources/agents/client/requests/AgentsCreateRequest.js} +3 -3
  598. package/serialization/resources/templates/resources/agents/client/requests/index.d.ts +1 -0
  599. package/serialization/resources/templates/resources/agents/client/requests/index.js +5 -0
  600. package/serialization/resources/templates/resources/agents/index.d.ts +2 -0
  601. package/serialization/resources/templates/resources/agents/index.js +18 -0
  602. package/serialization/resources/templates/resources/agents/types/AgentsCreateResponse.d.ts +13 -0
  603. package/{dist/serialization/resources/templates/types/TemplatesCreateAgentsResponse.js → serialization/resources/templates/resources/agents/types/AgentsCreateResponse.js} +4 -4
  604. package/serialization/resources/templates/resources/agents/types/index.d.ts +1 -0
  605. package/serialization/resources/templates/resources/agents/types/index.js +17 -0
  606. package/serialization/resources/templates/resources/index.d.ts +3 -0
  607. package/serialization/resources/templates/resources/index.js +42 -0
  608. package/serialization/resources/templates/types/TemplatesListResponse.d.ts +14 -0
  609. package/serialization/resources/templates/types/{TemplatesListTemplatesResponse.js → TemplatesListResponse.js} +4 -4
  610. package/serialization/resources/templates/types/TemplatesListResponseTemplatesItem.d.ts +13 -0
  611. package/serialization/resources/templates/types/{TemplatesListTemplatesResponseTemplatesItem.js → TemplatesListResponseTemplatesItem.js} +2 -2
  612. package/serialization/resources/templates/types/index.d.ts +2 -3
  613. package/serialization/resources/templates/types/index.js +2 -3
  614. package/serialization/resources/tools/client/index.d.ts +1 -1
  615. package/serialization/resources/tools/client/index.js +2 -2
  616. package/{dist/serialization/resources/tools/client/addBaseTool.d.ts → serialization/resources/tools/client/upsertBaseTools.d.ts} +1 -1
  617. package/version.d.ts +1 -1
  618. package/version.js +1 -1
  619. package/api/resources/clientSideAccessTokens/types/ClientSideAccessTokensCreateClientSideAccessTokenRequestPolicyItem.d.ts +0 -9
  620. package/api/resources/clientSideAccessTokens/types/ClientSideAccessTokensCreateClientSideAccessTokenRequestPolicyItemAccessItem.d.ts +0 -10
  621. package/api/resources/clientSideAccessTokens/types/ClientSideAccessTokensCreateClientSideAccessTokenResponsePolicy.d.ts +0 -8
  622. package/api/resources/clientSideAccessTokens/types/ClientSideAccessTokensCreateClientSideAccessTokenResponsePolicyDataItem.d.ts +0 -9
  623. package/api/resources/clientSideAccessTokens/types/ClientSideAccessTokensCreateClientSideAccessTokenResponsePolicyDataItemAccessItem.d.ts +0 -10
  624. package/api/resources/messages/resources/index.d.ts +0 -2
  625. package/dist/api/resources/clientSideAccessTokens/types/ClientSideAccessTokensCreateClientSideAccessTokenRequestPolicyItem.d.ts +0 -9
  626. package/dist/api/resources/clientSideAccessTokens/types/ClientSideAccessTokensCreateClientSideAccessTokenRequestPolicyItemAccessItem.d.ts +0 -10
  627. package/dist/api/resources/clientSideAccessTokens/types/ClientSideAccessTokensCreateClientSideAccessTokenResponsePolicy.d.ts +0 -8
  628. package/dist/api/resources/clientSideAccessTokens/types/ClientSideAccessTokensCreateClientSideAccessTokenResponsePolicyDataItem.d.ts +0 -9
  629. package/dist/api/resources/clientSideAccessTokens/types/ClientSideAccessTokensCreateClientSideAccessTokenResponsePolicyDataItemAccessItem.d.ts +0 -10
  630. package/dist/api/resources/messages/resources/index.d.ts +0 -2
  631. package/dist/serialization/resources/agents/client/modifyPassage.d.ts +0 -11
  632. package/dist/serialization/resources/blocks/client/listAgentsForBlock.d.ts +0 -11
  633. package/dist/serialization/resources/clientSideAccessTokens/client/requests/ClientSideAccessTokensCreateClientSideAccessTokenRequest.d.ts +0 -15
  634. package/dist/serialization/resources/clientSideAccessTokens/types/ClientSideAccessTokensCreateClientSideAccessTokenRequestPolicyItem.d.ts +0 -15
  635. package/dist/serialization/resources/clientSideAccessTokens/types/ClientSideAccessTokensCreateClientSideAccessTokenRequestPolicyItemAccessItem.d.ts +0 -10
  636. package/dist/serialization/resources/clientSideAccessTokens/types/ClientSideAccessTokensCreateClientSideAccessTokenRequestPolicyItemAccessItem.js +0 -41
  637. package/dist/serialization/resources/clientSideAccessTokens/types/ClientSideAccessTokensCreateClientSideAccessTokenResponse.d.ts +0 -16
  638. package/dist/serialization/resources/clientSideAccessTokens/types/ClientSideAccessTokensCreateClientSideAccessTokenResponsePolicy.d.ts +0 -14
  639. package/dist/serialization/resources/clientSideAccessTokens/types/ClientSideAccessTokensCreateClientSideAccessTokenResponsePolicy.js +0 -45
  640. package/dist/serialization/resources/clientSideAccessTokens/types/ClientSideAccessTokensCreateClientSideAccessTokenResponsePolicyDataItem.d.ts +0 -15
  641. package/dist/serialization/resources/clientSideAccessTokens/types/ClientSideAccessTokensCreateClientSideAccessTokenResponsePolicyDataItemAccessItem.d.ts +0 -10
  642. package/dist/serialization/resources/clientSideAccessTokens/types/ClientSideAccessTokensCreateClientSideAccessTokenResponsePolicyDataItemAccessItem.js +0 -41
  643. package/dist/serialization/resources/identities/client/upsertIdentityProperties.d.ts +0 -11
  644. package/dist/serialization/resources/messages/index.d.ts +0 -1
  645. package/dist/serialization/resources/messages/index.js +0 -17
  646. package/dist/serialization/resources/messages/resources/batches/client/requests/CreateBatch.d.ts +0 -14
  647. package/dist/serialization/resources/messages/resources/index.d.ts +0 -2
  648. package/dist/serialization/resources/projects/types/ProjectsListProjectsResponse.d.ts +0 -14
  649. package/dist/serialization/resources/runs/client/listRunMessages.d.ts +0 -11
  650. package/dist/serialization/resources/templates/client/requests/TemplatesCreateAgentsRequest.d.ts +0 -16
  651. package/dist/serialization/resources/templates/client/requests/index.d.ts +0 -1
  652. package/dist/serialization/resources/templates/client/requests/index.js +0 -5
  653. package/dist/serialization/resources/templates/types/TemplatesCreateAgentsResponse.d.ts +0 -13
  654. package/dist/serialization/resources/templates/types/TemplatesListTemplatesResponse.d.ts +0 -14
  655. package/dist/serialization/resources/templates/types/TemplatesListTemplatesResponseTemplatesItem.d.ts +0 -13
  656. package/serialization/resources/agents/client/listAgentGroups.d.ts +0 -11
  657. package/serialization/resources/agents/client/modifyPassage.d.ts +0 -11
  658. package/serialization/resources/blocks/client/listAgentsForBlock.d.ts +0 -11
  659. package/serialization/resources/clientSideAccessTokens/client/requests/ClientSideAccessTokensCreateClientSideAccessTokenRequest.d.ts +0 -15
  660. package/serialization/resources/clientSideAccessTokens/types/ClientSideAccessTokensCreateClientSideAccessTokenRequestPolicyItem.d.ts +0 -15
  661. package/serialization/resources/clientSideAccessTokens/types/ClientSideAccessTokensCreateClientSideAccessTokenRequestPolicyItemAccessItem.d.ts +0 -10
  662. package/serialization/resources/clientSideAccessTokens/types/ClientSideAccessTokensCreateClientSideAccessTokenRequestPolicyItemAccessItem.js +0 -41
  663. package/serialization/resources/clientSideAccessTokens/types/ClientSideAccessTokensCreateClientSideAccessTokenResponse.d.ts +0 -16
  664. package/serialization/resources/clientSideAccessTokens/types/ClientSideAccessTokensCreateClientSideAccessTokenResponsePolicy.d.ts +0 -14
  665. package/serialization/resources/clientSideAccessTokens/types/ClientSideAccessTokensCreateClientSideAccessTokenResponsePolicy.js +0 -45
  666. package/serialization/resources/clientSideAccessTokens/types/ClientSideAccessTokensCreateClientSideAccessTokenResponsePolicyDataItem.d.ts +0 -15
  667. package/serialization/resources/clientSideAccessTokens/types/ClientSideAccessTokensCreateClientSideAccessTokenResponsePolicyDataItem.js +0 -46
  668. package/serialization/resources/clientSideAccessTokens/types/ClientSideAccessTokensCreateClientSideAccessTokenResponsePolicyDataItemAccessItem.d.ts +0 -10
  669. package/serialization/resources/clientSideAccessTokens/types/ClientSideAccessTokensCreateClientSideAccessTokenResponsePolicyDataItemAccessItem.js +0 -41
  670. package/serialization/resources/identities/client/upsertIdentityProperties.d.ts +0 -11
  671. package/serialization/resources/messages/index.d.ts +0 -1
  672. package/serialization/resources/messages/index.js +0 -17
  673. package/serialization/resources/messages/resources/batches/client/requests/CreateBatch.d.ts +0 -14
  674. package/serialization/resources/messages/resources/index.d.ts +0 -2
  675. package/serialization/resources/messages/resources/index.js +0 -41
  676. package/serialization/resources/projects/types/ProjectsListProjectsResponse.d.ts +0 -14
  677. package/serialization/resources/runs/client/listRunMessages.d.ts +0 -11
  678. package/serialization/resources/runs/client/listRunSteps.d.ts +0 -11
  679. package/serialization/resources/templates/client/requests/TemplatesCreateAgentsRequest.d.ts +0 -16
  680. package/serialization/resources/templates/client/requests/index.d.ts +0 -1
  681. package/serialization/resources/templates/client/requests/index.js +0 -5
  682. package/serialization/resources/templates/types/TemplatesCreateAgentsResponse.d.ts +0 -13
  683. package/serialization/resources/templates/types/TemplatesCreateAgentsResponse.js +0 -44
  684. package/serialization/resources/templates/types/TemplatesListTemplatesResponse.d.ts +0 -14
  685. package/serialization/resources/templates/types/TemplatesListTemplatesResponseTemplatesItem.d.ts +0 -13
  686. /package/api/resources/{messages/resources/batches → agents/resources/groups}/client/index.d.ts +0 -0
  687. /package/api/resources/{messages/resources/batches → agents/resources/groups}/client/index.js +0 -0
  688. /package/api/resources/agents/{client/requests/ListAgentGroupsRequest.js → resources/groups/client/requests/GroupsListRequest.js} +0 -0
  689. /package/api/resources/{messages/resources/batches → agents/resources/groups}/client/requests/index.js +0 -0
  690. /package/api/resources/{messages/resources/batches → agents/resources/groups}/index.d.ts +0 -0
  691. /package/api/resources/{messages/resources/batches → agents/resources/groups}/index.js +0 -0
  692. /package/api/resources/agents/{client/requests/PassageUpdate.js → resources/messages/client/requests/MessagesResetRequest.js} +0 -0
  693. /package/{dist/api/resources/agents → api/resources/agents/resources/passages}/client/requests/PassageUpdate.js +0 -0
  694. /package/{dist/api/resources/messages → api}/resources/batches/client/index.d.ts +0 -0
  695. /package/{dist/api/resources/messages → api}/resources/batches/client/index.js +0 -0
  696. /package/api/resources/{messages/resources/batches → batches}/client/requests/CreateBatch.js +0 -0
  697. /package/api/resources/{messages/resources/batches → batches}/client/requests/index.d.ts +0 -0
  698. /package/{dist/api/resources/messages → api}/resources/batches/client/requests/index.js +0 -0
  699. /package/{dist/api/resources/messages → api}/resources/batches/index.d.ts +0 -0
  700. /package/{dist/api/resources/messages → api}/resources/batches/index.js +0 -0
  701. /package/{dist/serialization/resources/messages/resources/batches → api/resources/blocks/resources/agents}/index.d.ts +0 -0
  702. /package/{dist/serialization/resources/messages/resources/batches → api/resources/blocks/resources/agents}/index.js +0 -0
  703. /package/api/resources/{agents/client/requests/ResetMessagesRequest.js → clientSideAccessTokens/client/requests/ClientSideAccessTokensCreateRequest.js} +0 -0
  704. /package/api/resources/clientSideAccessTokens/{client/requests/ClientSideAccessTokensCreateClientSideAccessTokenRequest.js → types/ClientSideAccessTokensCreateRequestPolicyItem.js} +0 -0
  705. /package/api/resources/clientSideAccessTokens/types/{ClientSideAccessTokensCreateClientSideAccessTokenRequestPolicyItem.js → ClientSideAccessTokensCreateResponse.js} +0 -0
  706. /package/api/resources/clientSideAccessTokens/types/{ClientSideAccessTokensCreateClientSideAccessTokenResponse.js → ClientSideAccessTokensCreateResponsePolicy.js} +0 -0
  707. /package/api/resources/clientSideAccessTokens/types/{ClientSideAccessTokensCreateClientSideAccessTokenResponsePolicy.js → ClientSideAccessTokensCreateResponsePolicyDataItem.js} +0 -0
  708. /package/{serialization/resources/messages/resources/batches → api/resources/embeddings}/index.d.ts +0 -0
  709. /package/{serialization/resources/messages/resources/batches → api/resources/embeddings}/index.js +0 -0
  710. /package/api/resources/{clientSideAccessTokens/types/ClientSideAccessTokensCreateClientSideAccessTokenResponsePolicyDataItem.js → projects/client/requests/ProjectsListRequest.js} +0 -0
  711. /package/api/resources/projects/{client/requests/ProjectsListProjectsRequest.js → types/ProjectsListResponse.js} +0 -0
  712. /package/api/resources/projects/types/{ProjectsListProjectsResponse.js → ProjectsListResponseProjectsItem.js} +0 -0
  713. /package/api/resources/{projects/types/ProjectsListProjectsResponseProjectsItem.js → providers/client/requests/ProvidersListRequest.js} +0 -0
  714. /package/api/resources/{providers/client/requests/ListProvidersRequest.js → runs/client/requests/RunsListActiveRequest.js} +0 -0
  715. /package/{dist/serialization/resources/templates → api/resources/runs/resources/messages}/client/index.d.ts +0 -0
  716. /package/{dist/serialization/resources/templates → api/resources/runs/resources/messages}/client/index.js +0 -0
  717. /package/api/resources/runs/{client/requests/ListActiveRunsRequest.js → resources/messages/client/requests/MessagesListRequest.js} +0 -0
  718. /package/{serialization/resources/templates → api/resources/runs/resources/steps}/client/index.d.ts +0 -0
  719. /package/{serialization/resources/templates → api/resources/runs/resources/steps}/client/index.js +0 -0
  720. /package/api/resources/runs/{client/requests/ListRunMessagesRequest.js → resources/steps/client/requests/StepsListRequest.js} +0 -0
  721. /package/api/resources/{runs/client/requests/ListRunStepsRequest.js → templates/client/requests/TemplatesListRequest.js} +0 -0
  722. /package/api/resources/templates/{client/requests/TemplatesCreateAgentsRequest.js → resources/agents/client/requests/AgentsCreateRequest.js} +0 -0
  723. /package/api/resources/templates/{client/requests/TemplatesListTemplatesRequest.js → resources/agents/types/AgentsCreateResponse.js} +0 -0
  724. /package/api/resources/templates/types/{TemplatesCreateAgentsResponse.js → TemplatesListResponse.js} +0 -0
  725. /package/api/resources/templates/types/{TemplatesListTemplatesResponse.js → TemplatesListResponseTemplatesItem.js} +0 -0
  726. /package/{api/resources/templates/types/TemplatesListTemplatesResponseTemplatesItem.js → dist/api/resources/agents/resources/groups/client/requests/GroupsListRequest.js} +0 -0
  727. /package/dist/api/resources/agents/{client/requests/ListAgentGroupsRequest.js → resources/messages/client/requests/MessagesResetRequest.js} +0 -0
  728. /package/dist/api/resources/agents/{client/requests/ResetMessagesRequest.js → resources/passages/client/requests/PassageUpdate.js} +0 -0
  729. /package/dist/api/resources/{messages/resources/batches → batches}/client/requests/CreateBatch.js +0 -0
  730. /package/dist/api/resources/{messages/resources/batches → batches}/client/requests/index.d.ts +0 -0
  731. /package/dist/api/resources/clientSideAccessTokens/client/requests/{ClientSideAccessTokensCreateClientSideAccessTokenRequest.js → ClientSideAccessTokensCreateRequest.js} +0 -0
  732. /package/dist/api/resources/clientSideAccessTokens/types/{ClientSideAccessTokensCreateClientSideAccessTokenRequestPolicyItem.js → ClientSideAccessTokensCreateRequestPolicyItem.js} +0 -0
  733. /package/dist/api/resources/clientSideAccessTokens/types/{ClientSideAccessTokensCreateClientSideAccessTokenResponse.js → ClientSideAccessTokensCreateResponse.js} +0 -0
  734. /package/dist/api/resources/clientSideAccessTokens/types/{ClientSideAccessTokensCreateClientSideAccessTokenResponsePolicy.js → ClientSideAccessTokensCreateResponsePolicy.js} +0 -0
  735. /package/dist/api/resources/clientSideAccessTokens/types/{ClientSideAccessTokensCreateClientSideAccessTokenResponsePolicyDataItem.js → ClientSideAccessTokensCreateResponsePolicyDataItem.js} +0 -0
  736. /package/dist/api/resources/projects/client/requests/{ProjectsListProjectsRequest.js → ProjectsListRequest.js} +0 -0
  737. /package/dist/api/resources/projects/types/{ProjectsListProjectsResponse.js → ProjectsListResponse.js} +0 -0
  738. /package/dist/api/resources/projects/types/{ProjectsListProjectsResponseProjectsItem.js → ProjectsListResponseProjectsItem.js} +0 -0
  739. /package/dist/api/resources/providers/client/requests/{ListProvidersRequest.js → ProvidersListRequest.js} +0 -0
  740. /package/dist/api/resources/runs/client/requests/{ListActiveRunsRequest.js → RunsListActiveRequest.js} +0 -0
  741. /package/dist/api/resources/runs/{client/requests/ListRunMessagesRequest.js → resources/messages/client/requests/MessagesListRequest.js} +0 -0
  742. /package/dist/api/resources/runs/{client/requests/ListRunStepsRequest.js → resources/steps/client/requests/StepsListRequest.js} +0 -0
  743. /package/dist/api/resources/templates/client/requests/{TemplatesCreateAgentsRequest.js → TemplatesListRequest.js} +0 -0
  744. /package/dist/api/resources/templates/{client/requests/TemplatesListTemplatesRequest.js → resources/agents/client/requests/AgentsCreateRequest.js} +0 -0
  745. /package/dist/api/resources/templates/{types/TemplatesCreateAgentsResponse.js → resources/agents/types/AgentsCreateResponse.js} +0 -0
  746. /package/dist/api/resources/templates/types/{TemplatesListTemplatesResponse.js → TemplatesListResponse.js} +0 -0
  747. /package/dist/api/resources/templates/types/{TemplatesListTemplatesResponseTemplatesItem.js → TemplatesListResponseTemplatesItem.js} +0 -0
  748. /package/dist/serialization/resources/{messages/resources/batches → batches}/client/index.d.ts +0 -0
  749. /package/dist/serialization/resources/{messages/resources/batches → batches}/client/index.js +0 -0
  750. /package/dist/serialization/resources/{messages/resources/batches → batches}/client/requests/index.d.ts +0 -0
  751. /package/dist/serialization/resources/{messages/resources/batches → batches}/client/requests/index.js +0 -0
  752. /package/dist/serialization/resources/{models/client/listEmbeddingModels.js → embeddings/client/list.js} +0 -0
  753. /package/dist/serialization/resources/models/client/{listLlms.js → list.js} +0 -0
  754. /package/dist/serialization/resources/providers/client/{listProviders.js → list.js} +0 -0
  755. /package/dist/serialization/resources/runs/client/{listActiveRuns.js → listActive.js} +0 -0
  756. /package/dist/serialization/resources/sources/client/{getByName.js → retrieveByName.js} +0 -0
  757. /package/dist/serialization/resources/tools/client/{addBaseTool.js → upsertBaseTools.js} +0 -0
  758. /package/serialization/resources/{messages/resources/batches → batches}/client/index.d.ts +0 -0
  759. /package/serialization/resources/{messages/resources/batches → batches}/client/index.js +0 -0
  760. /package/serialization/resources/{messages/resources/batches → batches}/client/requests/index.d.ts +0 -0
  761. /package/serialization/resources/{messages/resources/batches → batches}/client/requests/index.js +0 -0
  762. /package/serialization/resources/{models/client/listEmbeddingModels.js → embeddings/client/list.js} +0 -0
  763. /package/serialization/resources/models/client/{listLlms.js → list.js} +0 -0
  764. /package/serialization/resources/providers/client/{listProviders.js → list.js} +0 -0
  765. /package/serialization/resources/runs/client/{listActiveRuns.js → listActive.js} +0 -0
  766. /package/serialization/resources/sources/client/{getByName.js → retrieveByName.js} +0 -0
  767. /package/serialization/resources/tools/client/{addBaseTool.js → upsertBaseTools.js} +0 -0
@@ -15,4 +15,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./types"), exports);
18
+ __exportStar(require("./resources"), exports);
18
19
  __exportStar(require("./client"), exports);
@@ -0,0 +1,44 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as environments from "../../../../../../environments";
5
+ import * as core from "../../../../../../core";
6
+ import * as Letta from "../../../../../index";
7
+ export declare namespace Agents {
8
+ interface Options {
9
+ environment?: core.Supplier<environments.LettaEnvironment | string>;
10
+ /** Specify a custom URL to connect the client to. */
11
+ baseUrl?: core.Supplier<string>;
12
+ token?: core.Supplier<string | undefined>;
13
+ fetcher?: core.FetchFunction;
14
+ }
15
+ interface RequestOptions {
16
+ /** The maximum time to wait for a response in seconds. */
17
+ timeoutInSeconds?: number;
18
+ /** The number of times to retry the request. Defaults to 2. */
19
+ maxRetries?: number;
20
+ /** A hook to abort the request. */
21
+ abortSignal?: AbortSignal;
22
+ /** Additional headers to include in the request. */
23
+ headers?: Record<string, string>;
24
+ }
25
+ }
26
+ export declare class Agents {
27
+ protected readonly _options: Agents.Options;
28
+ constructor(_options?: Agents.Options);
29
+ /**
30
+ * Creates an Agent or multiple Agents from a template
31
+ *
32
+ * @param {string} project - The project slug
33
+ * @param {string} templateVersion - The template version, formatted as {template-name}:{version-number} or {template-name}:latest
34
+ * @param {Letta.templates.AgentsCreateRequest} request
35
+ * @param {Agents.RequestOptions} requestOptions - Request-specific configuration.
36
+ *
37
+ * @example
38
+ * await client.templates.agents.create("project", "template_version")
39
+ */
40
+ create(project: string, templateVersion: string, request?: Letta.templates.AgentsCreateRequest, requestOptions?: Agents.RequestOptions): Promise<Letta.templates.AgentsCreateResponse>;
41
+ protected _getCustomAuthorizationHeaders(): Promise<{
42
+ Authorization: string;
43
+ }>;
44
+ }
@@ -0,0 +1,123 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || (function () {
22
+ var ownKeys = function(o) {
23
+ ownKeys = Object.getOwnPropertyNames || function (o) {
24
+ var ar = [];
25
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
26
+ return ar;
27
+ };
28
+ return ownKeys(o);
29
+ };
30
+ return function (mod) {
31
+ if (mod && mod.__esModule) return mod;
32
+ var result = {};
33
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
34
+ __setModuleDefault(result, mod);
35
+ return result;
36
+ };
37
+ })();
38
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
39
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
40
+ return new (P || (P = Promise))(function (resolve, reject) {
41
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
42
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
43
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
44
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
45
+ });
46
+ };
47
+ var __importDefault = (this && this.__importDefault) || function (mod) {
48
+ return (mod && mod.__esModule) ? mod : { "default": mod };
49
+ };
50
+ Object.defineProperty(exports, "__esModule", { value: true });
51
+ exports.Agents = void 0;
52
+ const environments = __importStar(require("../../../../../../environments"));
53
+ const core = __importStar(require("../../../../../../core"));
54
+ const serializers = __importStar(require("../../../../../../serialization/index"));
55
+ const url_join_1 = __importDefault(require("url-join"));
56
+ const errors = __importStar(require("../../../../../../errors/index"));
57
+ class Agents {
58
+ constructor(_options = {}) {
59
+ this._options = _options;
60
+ }
61
+ /**
62
+ * Creates an Agent or multiple Agents from a template
63
+ *
64
+ * @param {string} project - The project slug
65
+ * @param {string} templateVersion - The template version, formatted as {template-name}:{version-number} or {template-name}:latest
66
+ * @param {Letta.templates.AgentsCreateRequest} request
67
+ * @param {Agents.RequestOptions} requestOptions - Request-specific configuration.
68
+ *
69
+ * @example
70
+ * await client.templates.agents.create("project", "template_version")
71
+ */
72
+ create(project_1, templateVersion_1) {
73
+ return __awaiter(this, arguments, void 0, function* (project, templateVersion, request = {}, requestOptions) {
74
+ var _a, _b, _c;
75
+ const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
76
+ 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/templates/${encodeURIComponent(project)}/${encodeURIComponent(templateVersion)}/agents`),
77
+ method: "POST",
78
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.100", "User-Agent": "@letta-ai/letta-client/0.1.100", "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),
79
+ contentType: "application/json",
80
+ requestType: "json",
81
+ body: serializers.templates.AgentsCreateRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
82
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
83
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
84
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
85
+ });
86
+ if (_response.ok) {
87
+ return serializers.templates.AgentsCreateResponse.parseOrThrow(_response.body, {
88
+ unrecognizedObjectKeys: "passthrough",
89
+ allowUnrecognizedUnionMembers: true,
90
+ allowUnrecognizedEnumValues: true,
91
+ skipValidation: true,
92
+ breadcrumbsPrefix: ["response"],
93
+ });
94
+ }
95
+ if (_response.error.reason === "status-code") {
96
+ throw new errors.LettaError({
97
+ statusCode: _response.error.statusCode,
98
+ body: _response.error.body,
99
+ });
100
+ }
101
+ switch (_response.error.reason) {
102
+ case "non-json":
103
+ throw new errors.LettaError({
104
+ statusCode: _response.error.statusCode,
105
+ body: _response.error.rawBody,
106
+ });
107
+ case "timeout":
108
+ throw new errors.LettaTimeoutError("Timeout exceeded when calling POST /v1/templates/{project}/{template_version}/agents.");
109
+ case "unknown":
110
+ throw new errors.LettaError({
111
+ message: _response.error.errorMessage,
112
+ });
113
+ }
114
+ });
115
+ }
116
+ _getCustomAuthorizationHeaders() {
117
+ return __awaiter(this, void 0, void 0, function* () {
118
+ const tokenValue = yield core.Supplier.get(this._options.token);
119
+ return { Authorization: `Bearer ${tokenValue}` };
120
+ });
121
+ }
122
+ }
123
+ exports.Agents = Agents;
@@ -0,0 +1 @@
1
+ export * from "./requests";
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./requests"), exports);
@@ -5,7 +5,7 @@
5
5
  * @example
6
6
  * {}
7
7
  */
8
- export interface TemplatesCreateAgentsRequest {
8
+ export interface AgentsCreateRequest {
9
9
  /** The tags to assign to the agent */
10
10
  tags?: string[];
11
11
  /** The name of the agent, optional otherwise a random one will be assigned */
@@ -0,0 +1 @@
1
+ export { type AgentsCreateRequest } from "./AgentsCreateRequest";
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,2 @@
1
+ export * from "./types";
2
+ export * from "./client";
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./types"), exports);
18
+ __exportStar(require("./client"), exports);
@@ -1,7 +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";
5
- export interface TemplatesCreateAgentsResponse {
4
+ import * as Letta from "../../../../../index";
5
+ export interface AgentsCreateResponse {
6
6
  agents: Letta.AgentState[];
7
7
  }
@@ -0,0 +1 @@
1
+ export * from "./AgentsCreateResponse";
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./AgentsCreateResponse"), exports);
@@ -0,0 +1,3 @@
1
+ export * as agents from "./agents";
2
+ export * from "./agents/types";
3
+ export * from "./agents/client/requests";
@@ -36,6 +36,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
36
36
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
37
37
  };
38
38
  Object.defineProperty(exports, "__esModule", { value: true });
39
- exports.batches = void 0;
40
- exports.batches = __importStar(require("./batches"));
41
- __exportStar(require("./batches/client/requests"), exports);
39
+ exports.agents = void 0;
40
+ exports.agents = __importStar(require("./agents"));
41
+ __exportStar(require("./agents/types"), exports);
42
+ __exportStar(require("./agents/client/requests"), exports);
@@ -2,7 +2,7 @@
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
4
  import * as Letta from "../../../index";
5
- export interface ProjectsListProjectsResponse {
6
- projects: Letta.ProjectsListProjectsResponseProjectsItem[];
5
+ export interface TemplatesListResponse {
6
+ templates: Letta.TemplatesListResponseTemplatesItem[];
7
7
  hasNextPage: boolean;
8
8
  }
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- export interface TemplatesListTemplatesResponseTemplatesItem {
4
+ export interface TemplatesListResponseTemplatesItem {
5
5
  name: string;
6
6
  id: string;
7
7
  }
@@ -1,3 +1,2 @@
1
- export * from "./TemplatesCreateAgentsResponse";
2
- export * from "./TemplatesListTemplatesResponseTemplatesItem";
3
- export * from "./TemplatesListTemplatesResponse";
1
+ export * from "./TemplatesListResponseTemplatesItem";
2
+ export * from "./TemplatesListResponse";
@@ -14,6 +14,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./TemplatesCreateAgentsResponse"), exports);
18
- __exportStar(require("./TemplatesListTemplatesResponseTemplatesItem"), exports);
19
- __exportStar(require("./TemplatesListTemplatesResponse"), exports);
17
+ __exportStar(require("./TemplatesListResponseTemplatesItem"), exports);
18
+ __exportStar(require("./TemplatesListResponse"), exports);
@@ -111,9 +111,9 @@ export declare class Tools {
111
111
  * @throws {@link Letta.UnprocessableEntityError}
112
112
  *
113
113
  * @example
114
- * await client.tools.addBaseTool()
114
+ * await client.tools.upsertBaseTools()
115
115
  */
116
- addBaseTool(requestOptions?: Tools.RequestOptions): Promise<Letta.Tool[]>;
116
+ upsertBaseTools(requestOptions?: Tools.RequestOptions): Promise<Letta.Tool[]>;
117
117
  /**
118
118
  * Attempt to build a tool from source, then run it on the provided arguments
119
119
  *
@@ -76,7 +76,7 @@ class Tools {
76
76
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
77
77
  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/${encodeURIComponent(toolId)}`),
78
78
  method: "GET",
79
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.98", "User-Agent": "@letta-ai/letta-client/0.1.98", "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),
79
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.100", "User-Agent": "@letta-ai/letta-client/0.1.100", "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),
80
80
  contentType: "application/json",
81
81
  requestType: "json",
82
82
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -141,7 +141,7 @@ class Tools {
141
141
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
142
142
  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/${encodeURIComponent(toolId)}`),
143
143
  method: "DELETE",
144
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.98", "User-Agent": "@letta-ai/letta-client/0.1.98", "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),
144
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.100", "User-Agent": "@letta-ai/letta-client/0.1.100", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
145
145
  contentType: "application/json",
146
146
  requestType: "json",
147
147
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -201,7 +201,7 @@ class Tools {
201
201
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
202
202
  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/${encodeURIComponent(toolId)}`),
203
203
  method: "PATCH",
204
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.98", "User-Agent": "@letta-ai/letta-client/0.1.98", "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),
204
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.100", "User-Agent": "@letta-ai/letta-client/0.1.100", "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),
205
205
  contentType: "application/json",
206
206
  requestType: "json",
207
207
  body: serializers.ToolUpdate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -278,7 +278,7 @@ class Tools {
278
278
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
279
279
  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/"),
280
280
  method: "GET",
281
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.98", "User-Agent": "@letta-ai/letta-client/0.1.98", "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),
281
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.100", "User-Agent": "@letta-ai/letta-client/0.1.100", "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),
282
282
  contentType: "application/json",
283
283
  queryParameters: _queryParams,
284
284
  requestType: "json",
@@ -346,7 +346,7 @@ class Tools {
346
346
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
347
347
  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/"),
348
348
  method: "POST",
349
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.98", "User-Agent": "@letta-ai/letta-client/0.1.98", "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),
349
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.100", "User-Agent": "@letta-ai/letta-client/0.1.100", "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),
350
350
  contentType: "application/json",
351
351
  requestType: "json",
352
352
  body: serializers.ToolCreate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -414,7 +414,7 @@ class Tools {
414
414
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
415
415
  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/"),
416
416
  method: "PUT",
417
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.98", "User-Agent": "@letta-ai/letta-client/0.1.98", "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),
417
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.100", "User-Agent": "@letta-ai/letta-client/0.1.100", "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),
418
418
  contentType: "application/json",
419
419
  requestType: "json",
420
420
  body: serializers.ToolCreate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -471,15 +471,15 @@ class Tools {
471
471
  * @throws {@link Letta.UnprocessableEntityError}
472
472
  *
473
473
  * @example
474
- * await client.tools.addBaseTool()
474
+ * await client.tools.upsertBaseTools()
475
475
  */
476
- addBaseTool(requestOptions) {
476
+ upsertBaseTools(requestOptions) {
477
477
  return __awaiter(this, void 0, void 0, function* () {
478
478
  var _a, _b, _c;
479
479
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
480
480
  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/add-base-tools"),
481
481
  method: "POST",
482
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.98", "User-Agent": "@letta-ai/letta-client/0.1.98", "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),
482
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.100", "User-Agent": "@letta-ai/letta-client/0.1.100", "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),
483
483
  contentType: "application/json",
484
484
  requestType: "json",
485
485
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -487,7 +487,7 @@ class Tools {
487
487
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
488
488
  });
489
489
  if (_response.ok) {
490
- return serializers.tools.addBaseTool.Response.parseOrThrow(_response.body, {
490
+ return serializers.tools.upsertBaseTools.Response.parseOrThrow(_response.body, {
491
491
  unrecognizedObjectKeys: "passthrough",
492
492
  allowUnrecognizedUnionMembers: true,
493
493
  allowUnrecognizedEnumValues: true,
@@ -549,7 +549,7 @@ class Tools {
549
549
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
550
550
  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/run"),
551
551
  method: "POST",
552
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.98", "User-Agent": "@letta-ai/letta-client/0.1.98", "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),
552
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.100", "User-Agent": "@letta-ai/letta-client/0.1.100", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
553
553
  contentType: "application/json",
554
554
  requestType: "json",
555
555
  body: serializers.ToolRunFromSource.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -616,7 +616,7 @@ class Tools {
616
616
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
617
617
  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"),
618
618
  method: "GET",
619
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.98", "User-Agent": "@letta-ai/letta-client/0.1.98", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, "user-id": userId != null ? userId : undefined }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
619
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.100", "User-Agent": "@letta-ai/letta-client/0.1.100", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, "user-id": userId != null ? userId : undefined }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
620
620
  contentType: "application/json",
621
621
  requestType: "json",
622
622
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -681,7 +681,7 @@ class Tools {
681
681
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
682
682
  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`),
683
683
  method: "GET",
684
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.98", "User-Agent": "@letta-ai/letta-client/0.1.98", "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),
684
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.100", "User-Agent": "@letta-ai/letta-client/0.1.100", "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),
685
685
  contentType: "application/json",
686
686
  requestType: "json",
687
687
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -746,7 +746,7 @@ class Tools {
746
746
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
747
747
  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)}`),
748
748
  method: "POST",
749
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.98", "User-Agent": "@letta-ai/letta-client/0.1.98", "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),
749
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.100", "User-Agent": "@letta-ai/letta-client/0.1.100", "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),
750
750
  contentType: "application/json",
751
751
  requestType: "json",
752
752
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -812,7 +812,7 @@ class Tools {
812
812
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
813
813
  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/mcp/servers"),
814
814
  method: "GET",
815
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.98", "User-Agent": "@letta-ai/letta-client/0.1.98", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, "user-id": userId != null ? userId : undefined }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
815
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.100", "User-Agent": "@letta-ai/letta-client/0.1.100", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, "user-id": userId != null ? userId : undefined }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
816
816
  contentType: "application/json",
817
817
  requestType: "json",
818
818
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -881,7 +881,7 @@ class Tools {
881
881
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
882
882
  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/mcp/servers"),
883
883
  method: "PUT",
884
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.98", "User-Agent": "@letta-ai/letta-client/0.1.98", "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),
884
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.100", "User-Agent": "@letta-ai/letta-client/0.1.100", "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),
885
885
  contentType: "application/json",
886
886
  requestType: "json",
887
887
  body: serializers.AddMcpServerRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -947,7 +947,7 @@ class Tools {
947
947
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
948
948
  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/mcp/servers/${encodeURIComponent(mcpServerName)}/tools`),
949
949
  method: "GET",
950
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.98", "User-Agent": "@letta-ai/letta-client/0.1.98", "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),
950
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.100", "User-Agent": "@letta-ai/letta-client/0.1.100", "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),
951
951
  contentType: "application/json",
952
952
  requestType: "json",
953
953
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -1013,7 +1013,7 @@ class Tools {
1013
1013
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
1014
1014
  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/mcp/servers/${encodeURIComponent(mcpServerName)}/${encodeURIComponent(mcpToolName)}`),
1015
1015
  method: "POST",
1016
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.98", "User-Agent": "@letta-ai/letta-client/0.1.98", "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),
1016
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.100", "User-Agent": "@letta-ai/letta-client/0.1.100", "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),
1017
1017
  contentType: "application/json",
1018
1018
  requestType: "json",
1019
1019
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -1078,7 +1078,7 @@ class Tools {
1078
1078
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
1079
1079
  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/mcp/servers/${encodeURIComponent(mcpServerName)}`),
1080
1080
  method: "DELETE",
1081
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.98", "User-Agent": "@letta-ai/letta-client/0.1.98", "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),
1081
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.100", "User-Agent": "@letta-ai/letta-client/0.1.100", "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),
1082
1082
  contentType: "application/json",
1083
1083
  requestType: "json",
1084
1084
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -84,7 +84,7 @@ class Voice {
84
84
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
85
85
  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/voice-beta/${encodeURIComponent(agentId)}/chat/completions`),
86
86
  method: "POST",
87
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.98", "User-Agent": "@letta-ai/letta-client/0.1.98", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, "user-id": userId != null ? userId : undefined }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
87
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.100", "User-Agent": "@letta-ai/letta-client/0.1.100", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, "user-id": userId != null ? userId : undefined }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
88
88
  contentType: "application/json",
89
89
  requestType: "json",
90
90
  body: serializers.CreateVoiceChatCompletionsRequestBody.jsonOrThrow(_body, {
package/dist/Client.d.ts CHANGED
@@ -9,6 +9,7 @@ import { Agents } from "./api/resources/agents/client/Client";
9
9
  import { Groups } from "./api/resources/groups/client/Client";
10
10
  import { Identities } from "./api/resources/identities/client/Client";
11
11
  import { Models } from "./api/resources/models/client/Client";
12
+ import { Embeddings } from "./api/resources/embeddings/client/Client";
12
13
  import { Blocks } from "./api/resources/blocks/client/Client";
13
14
  import { Jobs } from "./api/resources/jobs/client/Client";
14
15
  import { Health } from "./api/resources/health/client/Client";
@@ -16,11 +17,13 @@ import { Providers } from "./api/resources/providers/client/Client";
16
17
  import { Runs } from "./api/resources/runs/client/Client";
17
18
  import { Steps } from "./api/resources/steps/client/Client";
18
19
  import { Tag } from "./api/resources/tag/client/Client";
20
+ import { Batches } from "./api/resources/batches/client/Client";
19
21
  import { Messages } from "./api/resources/messages/client/Client";
20
22
  import { Voice } from "./api/resources/voice/client/Client";
21
23
  import { Templates } from "./api/resources/templates/client/Client";
22
24
  import { ClientSideAccessTokens } from "./api/resources/clientSideAccessTokens/client/Client";
23
25
  import { Projects } from "./api/resources/projects/client/Client";
26
+ import { Tags } from "./api/resources/tags/client/Client";
24
27
  export declare namespace LettaClient {
25
28
  interface Options {
26
29
  environment?: core.Supplier<environments.LettaEnvironment | string>;
@@ -48,6 +51,7 @@ export declare class LettaClient {
48
51
  protected _groups: Groups | undefined;
49
52
  protected _identities: Identities | undefined;
50
53
  protected _models: Models | undefined;
54
+ protected _embeddings: Embeddings | undefined;
51
55
  protected _blocks: Blocks | undefined;
52
56
  protected _jobs: Jobs | undefined;
53
57
  protected _health: Health | undefined;
@@ -55,11 +59,13 @@ export declare class LettaClient {
55
59
  protected _runs: Runs | undefined;
56
60
  protected _steps: Steps | undefined;
57
61
  protected _tag: Tag | undefined;
62
+ protected _batches: Batches | undefined;
58
63
  protected _messages: Messages | undefined;
59
64
  protected _voice: Voice | undefined;
60
65
  protected _templates: Templates | undefined;
61
66
  protected _clientSideAccessTokens: ClientSideAccessTokens | undefined;
62
67
  protected _projects: Projects | undefined;
68
+ protected _tags: Tags | undefined;
63
69
  constructor(_options?: LettaClient.Options);
64
70
  get tools(): Tools;
65
71
  get sources(): Sources;
@@ -67,6 +73,7 @@ export declare class LettaClient {
67
73
  get groups(): Groups;
68
74
  get identities(): Identities;
69
75
  get models(): Models;
76
+ get embeddings(): Embeddings;
70
77
  get blocks(): Blocks;
71
78
  get jobs(): Jobs;
72
79
  get health(): Health;
@@ -74,9 +81,11 @@ export declare class LettaClient {
74
81
  get runs(): Runs;
75
82
  get steps(): Steps;
76
83
  get tag(): Tag;
84
+ get batches(): Batches;
77
85
  get messages(): Messages;
78
86
  get voice(): Voice;
79
87
  get templates(): Templates;
80
88
  get clientSideAccessTokens(): ClientSideAccessTokens;
81
89
  get projects(): Projects;
90
+ get tags(): Tags;
82
91
  }