@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
@@ -81,7 +81,7 @@ class Jobs {
81
81
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
82
82
  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/jobs/"),
83
83
  method: "GET",
84
- 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),
84
+ 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),
85
85
  contentType: "application/json",
86
86
  queryParameters: _queryParams,
87
87
  requestType: "json",
@@ -146,7 +146,7 @@ class Jobs {
146
146
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
147
147
  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/jobs/active"),
148
148
  method: "GET",
149
- 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),
149
+ 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),
150
150
  contentType: "application/json",
151
151
  requestType: "json",
152
152
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -211,7 +211,7 @@ class Jobs {
211
211
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
212
212
  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/jobs/${encodeURIComponent(jobId)}`),
213
213
  method: "GET",
214
- 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),
214
+ 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),
215
215
  contentType: "application/json",
216
216
  requestType: "json",
217
217
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -276,7 +276,7 @@ class Jobs {
276
276
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
277
277
  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/jobs/${encodeURIComponent(jobId)}`),
278
278
  method: "DELETE",
279
- 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),
279
+ 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),
280
280
  contentType: "application/json",
281
281
  requestType: "json",
282
282
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -3,7 +3,6 @@
3
3
  */
4
4
  import * as environments from "../../../../environments";
5
5
  import * as core from "../../../../core";
6
- import { Batches } from "../resources/batches/client/Client";
7
6
  export declare namespace Messages {
8
7
  interface Options {
9
8
  environment?: core.Supplier<environments.LettaEnvironment | string>;
@@ -25,9 +24,7 @@ export declare namespace Messages {
25
24
  }
26
25
  export declare class Messages {
27
26
  protected readonly _options: Messages.Options;
28
- protected _batches: Batches | undefined;
29
27
  constructor(_options?: Messages.Options);
30
- get batches(): Batches;
31
28
  /**
32
29
  * Cancel a batch run.
33
30
  *
@@ -55,15 +55,10 @@ const Letta = __importStar(require("../../../index"));
55
55
  const url_join_1 = __importDefault(require("url-join"));
56
56
  const errors = __importStar(require("../../../../errors/index"));
57
57
  const serializers = __importStar(require("../../../../serialization/index"));
58
- const Client_1 = require("../resources/batches/client/Client");
59
58
  class Messages {
60
59
  constructor(_options = {}) {
61
60
  this._options = _options;
62
61
  }
63
- get batches() {
64
- var _a;
65
- return ((_a = this._batches) !== null && _a !== void 0 ? _a : (this._batches = new Client_1.Batches(this._options)));
66
- }
67
62
  /**
68
63
  * Cancel a batch run.
69
64
  *
@@ -81,7 +76,7 @@ class Messages {
81
76
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
82
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/messages/batches/${encodeURIComponent(batchId)}/cancel`),
83
78
  method: "PATCH",
84
- 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),
85
80
  contentType: "application/json",
86
81
  requestType: "json",
87
82
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -1,2 +1 @@
1
1
  export * from "./client";
2
- export * from "./resources";
@@ -15,4 +15,3 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./client"), exports);
18
- __exportStar(require("./resources"), exports);
@@ -30,16 +30,9 @@ export declare class Models {
30
30
  * @param {Models.RequestOptions} requestOptions - Request-specific configuration.
31
31
  *
32
32
  * @example
33
- * await client.models.listLlms()
33
+ * await client.models.list()
34
34
  */
35
- listLlms(requestOptions?: Models.RequestOptions): Promise<Letta.LlmConfig[]>;
36
- /**
37
- * @param {Models.RequestOptions} requestOptions - Request-specific configuration.
38
- *
39
- * @example
40
- * await client.models.listEmbeddingModels()
41
- */
42
- listEmbeddingModels(requestOptions?: Models.RequestOptions): Promise<Letta.EmbeddingConfig[]>;
35
+ list(requestOptions?: Models.RequestOptions): Promise<Letta.LlmConfig[]>;
43
36
  protected _getCustomAuthorizationHeaders(): Promise<{
44
37
  Authorization: string;
45
38
  }>;
@@ -62,15 +62,15 @@ class Models {
62
62
  * @param {Models.RequestOptions} requestOptions - Request-specific configuration.
63
63
  *
64
64
  * @example
65
- * await client.models.listLlms()
65
+ * await client.models.list()
66
66
  */
67
- listLlms(requestOptions) {
67
+ list(requestOptions) {
68
68
  return __awaiter(this, void 0, void 0, function* () {
69
69
  var _a, _b, _c;
70
70
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
71
71
  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/models/"),
72
72
  method: "GET",
73
- 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),
73
+ 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),
74
74
  contentType: "application/json",
75
75
  requestType: "json",
76
76
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -78,7 +78,7 @@ class Models {
78
78
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
79
79
  });
80
80
  if (_response.ok) {
81
- return serializers.models.listLlms.Response.parseOrThrow(_response.body, {
81
+ return serializers.models.list.Response.parseOrThrow(_response.body, {
82
82
  unrecognizedObjectKeys: "passthrough",
83
83
  allowUnrecognizedUnionMembers: true,
84
84
  allowUnrecognizedEnumValues: true,
@@ -107,55 +107,6 @@ class Models {
107
107
  }
108
108
  });
109
109
  }
110
- /**
111
- * @param {Models.RequestOptions} requestOptions - Request-specific configuration.
112
- *
113
- * @example
114
- * await client.models.listEmbeddingModels()
115
- */
116
- listEmbeddingModels(requestOptions) {
117
- return __awaiter(this, void 0, void 0, function* () {
118
- var _a, _b, _c;
119
- const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
120
- 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/models/embedding"),
121
- method: "GET",
122
- 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),
123
- contentType: "application/json",
124
- requestType: "json",
125
- timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
126
- maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
127
- abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
128
- });
129
- if (_response.ok) {
130
- return serializers.models.listEmbeddingModels.Response.parseOrThrow(_response.body, {
131
- unrecognizedObjectKeys: "passthrough",
132
- allowUnrecognizedUnionMembers: true,
133
- allowUnrecognizedEnumValues: true,
134
- skipValidation: true,
135
- breadcrumbsPrefix: ["response"],
136
- });
137
- }
138
- if (_response.error.reason === "status-code") {
139
- throw new errors.LettaError({
140
- statusCode: _response.error.statusCode,
141
- body: _response.error.body,
142
- });
143
- }
144
- switch (_response.error.reason) {
145
- case "non-json":
146
- throw new errors.LettaError({
147
- statusCode: _response.error.statusCode,
148
- body: _response.error.rawBody,
149
- });
150
- case "timeout":
151
- throw new errors.LettaTimeoutError("Timeout exceeded when calling GET /v1/models/embedding.");
152
- case "unknown":
153
- throw new errors.LettaError({
154
- message: _response.error.errorMessage,
155
- });
156
- }
157
- });
158
- }
159
110
  _getCustomAuthorizationHeaders() {
160
111
  return __awaiter(this, void 0, void 0, function* () {
161
112
  const tokenValue = yield core.Supplier.get(this._options.token);
@@ -29,13 +29,13 @@ export declare class Projects {
29
29
  /**
30
30
  * List all projects
31
31
  *
32
- * @param {Letta.ProjectsListProjectsRequest} request
32
+ * @param {Letta.ProjectsListRequest} request
33
33
  * @param {Projects.RequestOptions} requestOptions - Request-specific configuration.
34
34
  *
35
35
  * @example
36
- * await client.projects.listprojects()
36
+ * await client.projects.list()
37
37
  */
38
- listprojects(request?: Letta.ProjectsListProjectsRequest, requestOptions?: Projects.RequestOptions): Promise<Letta.ProjectsListProjectsResponse>;
38
+ list(request?: Letta.ProjectsListRequest, requestOptions?: Projects.RequestOptions): Promise<Letta.ProjectsListResponse>;
39
39
  protected _getCustomAuthorizationHeaders(): Promise<{
40
40
  Authorization: string;
41
41
  }>;
@@ -61,13 +61,13 @@ class Projects {
61
61
  /**
62
62
  * List all projects
63
63
  *
64
- * @param {Letta.ProjectsListProjectsRequest} request
64
+ * @param {Letta.ProjectsListRequest} request
65
65
  * @param {Projects.RequestOptions} requestOptions - Request-specific configuration.
66
66
  *
67
67
  * @example
68
- * await client.projects.listprojects()
68
+ * await client.projects.list()
69
69
  */
70
- listprojects() {
70
+ list() {
71
71
  return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
72
72
  var _a, _b, _c;
73
73
  const { name, offset, limit } = request;
@@ -84,7 +84,7 @@ class Projects {
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/projects"),
86
86
  method: "GET",
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 }, (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 }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
88
88
  contentType: "application/json",
89
89
  queryParameters: _queryParams,
90
90
  requestType: "json",
@@ -93,7 +93,7 @@ class Projects {
93
93
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
94
94
  });
95
95
  if (_response.ok) {
96
- return serializers.ProjectsListProjectsResponse.parseOrThrow(_response.body, {
96
+ return serializers.ProjectsListResponse.parseOrThrow(_response.body, {
97
97
  unrecognizedObjectKeys: "passthrough",
98
98
  allowUnrecognizedUnionMembers: true,
99
99
  allowUnrecognizedEnumValues: true,
@@ -5,7 +5,7 @@
5
5
  * @example
6
6
  * {}
7
7
  */
8
- export interface ProjectsListProjectsRequest {
8
+ export interface ProjectsListRequest {
9
9
  name?: string;
10
10
  offset?: string;
11
11
  limit?: string;
@@ -1 +1 @@
1
- export { type ProjectsListProjectsRequest } from "./ProjectsListProjectsRequest";
1
+ export { type ProjectsListRequest } from "./ProjectsListRequest";
@@ -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 ProjectsListResponse {
6
+ projects: Letta.ProjectsListResponseProjectsItem[];
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 ProjectsListProjectsResponseProjectsItem {
4
+ export interface ProjectsListResponseProjectsItem {
5
5
  name: string;
6
6
  slug: string;
7
7
  id: string;
@@ -1,2 +1,2 @@
1
- export * from "./ProjectsListProjectsResponseProjectsItem";
2
- export * from "./ProjectsListProjectsResponse";
1
+ export * from "./ProjectsListResponseProjectsItem";
2
+ export * from "./ProjectsListResponse";
@@ -14,5 +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("./ProjectsListProjectsResponseProjectsItem"), exports);
18
- __exportStar(require("./ProjectsListProjectsResponse"), exports);
17
+ __exportStar(require("./ProjectsListResponseProjectsItem"), exports);
18
+ __exportStar(require("./ProjectsListResponse"), exports);
@@ -29,15 +29,15 @@ export declare class Providers {
29
29
  /**
30
30
  * Get a list of all custom providers in the database
31
31
  *
32
- * @param {Letta.ListProvidersRequest} request
32
+ * @param {Letta.ProvidersListRequest} request
33
33
  * @param {Providers.RequestOptions} requestOptions - Request-specific configuration.
34
34
  *
35
35
  * @throws {@link Letta.UnprocessableEntityError}
36
36
  *
37
37
  * @example
38
- * await client.providers.listProviders()
38
+ * await client.providers.list()
39
39
  */
40
- listProviders(request?: Letta.ListProvidersRequest, requestOptions?: Providers.RequestOptions): Promise<Letta.Provider[]>;
40
+ list(request?: Letta.ProvidersListRequest, requestOptions?: Providers.RequestOptions): Promise<Letta.Provider[]>;
41
41
  /**
42
42
  * Create a new custom provider
43
43
  *
@@ -47,12 +47,12 @@ export declare class Providers {
47
47
  * @throws {@link Letta.UnprocessableEntityError}
48
48
  *
49
49
  * @example
50
- * await client.providers.createProvider({
50
+ * await client.providers.create({
51
51
  * name: "name",
52
52
  * apiKey: "api_key"
53
53
  * })
54
54
  */
55
- createProvider(request: Letta.ProviderCreate, requestOptions?: Providers.RequestOptions): Promise<Letta.Provider>;
55
+ create(request: Letta.ProviderCreate, requestOptions?: Providers.RequestOptions): Promise<Letta.Provider>;
56
56
  /**
57
57
  * Delete an existing custom provider
58
58
  *
@@ -82,6 +82,22 @@ export declare class Providers {
82
82
  * })
83
83
  */
84
84
  modifyProvider(request: Letta.ProviderUpdate, requestOptions?: Providers.RequestOptions): Promise<Letta.Provider>;
85
+ /**
86
+ * @param {string} providerId
87
+ * @param {Providers.RequestOptions} requestOptions - Request-specific configuration.
88
+ *
89
+ * @example
90
+ * await client.providers.delete("provider_id")
91
+ */
92
+ delete(providerId: string, requestOptions?: Providers.RequestOptions): Promise<void>;
93
+ /**
94
+ * @param {string} providerId
95
+ * @param {Providers.RequestOptions} requestOptions - Request-specific configuration.
96
+ *
97
+ * @example
98
+ * await client.providers.modify("provider_id")
99
+ */
100
+ modify(providerId: string, requestOptions?: Providers.RequestOptions): Promise<void>;
85
101
  protected _getCustomAuthorizationHeaders(): Promise<{
86
102
  Authorization: string;
87
103
  }>;
@@ -62,15 +62,15 @@ class Providers {
62
62
  /**
63
63
  * Get a list of all custom providers in the database
64
64
  *
65
- * @param {Letta.ListProvidersRequest} request
65
+ * @param {Letta.ProvidersListRequest} request
66
66
  * @param {Providers.RequestOptions} requestOptions - Request-specific configuration.
67
67
  *
68
68
  * @throws {@link Letta.UnprocessableEntityError}
69
69
  *
70
70
  * @example
71
- * await client.providers.listProviders()
71
+ * await client.providers.list()
72
72
  */
73
- listProviders() {
73
+ list() {
74
74
  return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
75
75
  var _a, _b, _c;
76
76
  const { after, limit } = request;
@@ -84,7 +84,7 @@ class Providers {
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/providers/"),
86
86
  method: "GET",
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 }, (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 }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
88
88
  contentType: "application/json",
89
89
  queryParameters: _queryParams,
90
90
  requestType: "json",
@@ -93,7 +93,7 @@ class Providers {
93
93
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
94
94
  });
95
95
  if (_response.ok) {
96
- return serializers.providers.listProviders.Response.parseOrThrow(_response.body, {
96
+ return serializers.providers.list.Response.parseOrThrow(_response.body, {
97
97
  unrecognizedObjectKeys: "passthrough",
98
98
  allowUnrecognizedUnionMembers: true,
99
99
  allowUnrecognizedEnumValues: true,
@@ -142,18 +142,18 @@ class Providers {
142
142
  * @throws {@link Letta.UnprocessableEntityError}
143
143
  *
144
144
  * @example
145
- * await client.providers.createProvider({
145
+ * await client.providers.create({
146
146
  * name: "name",
147
147
  * apiKey: "api_key"
148
148
  * })
149
149
  */
150
- createProvider(request, requestOptions) {
150
+ create(request, requestOptions) {
151
151
  return __awaiter(this, void 0, void 0, function* () {
152
152
  var _a, _b, _c;
153
153
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
154
154
  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/providers/"),
155
155
  method: "POST",
156
- 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),
156
+ 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),
157
157
  contentType: "application/json",
158
158
  requestType: "json",
159
159
  body: serializers.ProviderCreate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -224,7 +224,7 @@ class Providers {
224
224
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
225
225
  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/providers/"),
226
226
  method: "DELETE",
227
- 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),
227
+ 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),
228
228
  contentType: "application/json",
229
229
  queryParameters: _queryParams,
230
230
  requestType: "json",
@@ -287,7 +287,7 @@ class Providers {
287
287
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
288
288
  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/providers/"),
289
289
  method: "PATCH",
290
- 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),
290
+ 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),
291
291
  contentType: "application/json",
292
292
  requestType: "json",
293
293
  body: serializers.ProviderUpdate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -336,6 +336,94 @@ class Providers {
336
336
  }
337
337
  });
338
338
  }
339
+ /**
340
+ * @param {string} providerId
341
+ * @param {Providers.RequestOptions} requestOptions - Request-specific configuration.
342
+ *
343
+ * @example
344
+ * await client.providers.delete("provider_id")
345
+ */
346
+ delete(providerId, requestOptions) {
347
+ return __awaiter(this, void 0, void 0, function* () {
348
+ var _a, _b, _c;
349
+ const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
350
+ 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/providers/${encodeURIComponent(providerId)}`),
351
+ method: "DELETE",
352
+ 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),
353
+ contentType: "application/json",
354
+ requestType: "json",
355
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
356
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
357
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
358
+ });
359
+ if (_response.ok) {
360
+ return;
361
+ }
362
+ if (_response.error.reason === "status-code") {
363
+ throw new errors.LettaError({
364
+ statusCode: _response.error.statusCode,
365
+ body: _response.error.body,
366
+ });
367
+ }
368
+ switch (_response.error.reason) {
369
+ case "non-json":
370
+ throw new errors.LettaError({
371
+ statusCode: _response.error.statusCode,
372
+ body: _response.error.rawBody,
373
+ });
374
+ case "timeout":
375
+ throw new errors.LettaTimeoutError("Timeout exceeded when calling DELETE /v1/providers/{provider_id}.");
376
+ case "unknown":
377
+ throw new errors.LettaError({
378
+ message: _response.error.errorMessage,
379
+ });
380
+ }
381
+ });
382
+ }
383
+ /**
384
+ * @param {string} providerId
385
+ * @param {Providers.RequestOptions} requestOptions - Request-specific configuration.
386
+ *
387
+ * @example
388
+ * await client.providers.modify("provider_id")
389
+ */
390
+ modify(providerId, requestOptions) {
391
+ return __awaiter(this, void 0, void 0, function* () {
392
+ var _a, _b, _c;
393
+ const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
394
+ 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/providers/${encodeURIComponent(providerId)}`),
395
+ method: "PATCH",
396
+ 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),
397
+ contentType: "application/json",
398
+ requestType: "json",
399
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
400
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
401
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
402
+ });
403
+ if (_response.ok) {
404
+ return;
405
+ }
406
+ if (_response.error.reason === "status-code") {
407
+ throw new errors.LettaError({
408
+ statusCode: _response.error.statusCode,
409
+ body: _response.error.body,
410
+ });
411
+ }
412
+ switch (_response.error.reason) {
413
+ case "non-json":
414
+ throw new errors.LettaError({
415
+ statusCode: _response.error.statusCode,
416
+ body: _response.error.rawBody,
417
+ });
418
+ case "timeout":
419
+ throw new errors.LettaTimeoutError("Timeout exceeded when calling PATCH /v1/providers/{provider_id}.");
420
+ case "unknown":
421
+ throw new errors.LettaError({
422
+ message: _response.error.errorMessage,
423
+ });
424
+ }
425
+ });
426
+ }
339
427
  _getCustomAuthorizationHeaders() {
340
428
  return __awaiter(this, void 0, void 0, function* () {
341
429
  const tokenValue = yield core.Supplier.get(this._options.token);
@@ -5,7 +5,7 @@
5
5
  * @example
6
6
  * {}
7
7
  */
8
- export interface ListProvidersRequest {
8
+ export interface ProvidersListRequest {
9
9
  after?: string;
10
10
  limit?: number;
11
11
  }
@@ -1,4 +1,4 @@
1
- export { type ListProvidersRequest } from "./ListProvidersRequest";
1
+ export { type ProvidersListRequest } from "./ProvidersListRequest";
2
2
  export { type ProviderCreate } from "./ProviderCreate";
3
3
  export { type DeleteProviderRequest } from "./DeleteProviderRequest";
4
4
  export { type ProviderUpdate } from "./ProviderUpdate";