@letta-ai/letta-client 0.1.131 → 0.1.133

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 (310) hide show
  1. package/api/resources/agents/client/Client.js +14 -11
  2. package/api/resources/agents/client/requests/AgentsListRequest.d.ts +4 -0
  3. package/api/resources/agents/client/requests/AgentsSearchRequest.d.ts +2 -0
  4. package/api/resources/agents/client/requests/UpdateAgent.d.ts +4 -0
  5. package/api/resources/agents/resources/blocks/client/Client.js +5 -5
  6. package/api/resources/agents/resources/context/client/Client.js +1 -1
  7. package/api/resources/agents/resources/coreMemory/client/Client.js +1 -1
  8. package/api/resources/agents/resources/groups/client/Client.js +1 -1
  9. package/api/resources/agents/resources/memoryVariables/client/Client.js +1 -1
  10. package/api/resources/agents/resources/messages/client/Client.d.ts +9 -11
  11. package/api/resources/agents/resources/messages/client/Client.js +15 -23
  12. package/api/resources/agents/resources/messages/client/requests/LettaAsyncRequest.d.ts +32 -0
  13. package/api/resources/agents/resources/messages/client/requests/index.d.ts +1 -1
  14. package/api/resources/agents/resources/passages/client/Client.js +4 -4
  15. package/api/resources/agents/resources/sources/client/Client.js +3 -3
  16. package/api/resources/agents/resources/templates/client/Client.js +3 -3
  17. package/api/resources/agents/resources/tools/client/Client.js +3 -3
  18. package/api/resources/agents/types/AgentsSearchRequestSortBy.d.ts +8 -0
  19. package/api/resources/agents/types/AgentsSearchRequestSortBy.js +10 -0
  20. package/api/resources/agents/types/CreateAgentRequestToolRulesItem.d.ts +1 -1
  21. package/api/resources/agents/types/UpdateAgentToolRulesItem.d.ts +1 -1
  22. package/api/resources/agents/types/index.d.ts +1 -0
  23. package/api/resources/agents/types/index.js +1 -0
  24. package/api/resources/batches/client/Client.js +4 -4
  25. package/api/resources/blocks/client/Client.js +6 -6
  26. package/api/resources/blocks/resources/agents/client/Client.js +1 -1
  27. package/api/resources/clientSideAccessTokens/client/Client.js +2 -2
  28. package/api/resources/embeddingModels/client/Client.js +1 -1
  29. package/api/resources/groups/client/Client.js +6 -6
  30. package/api/resources/groups/resources/messages/client/Client.js +5 -5
  31. package/api/resources/health/client/Client.js +1 -1
  32. package/api/resources/identities/client/Client.js +7 -7
  33. package/api/resources/identities/resources/properties/client/Client.js +1 -1
  34. package/api/resources/jobs/client/Client.js +4 -4
  35. package/api/resources/messages/client/Client.js +1 -1
  36. package/api/resources/models/client/Client.js +1 -1
  37. package/api/resources/projects/client/Client.js +1 -1
  38. package/api/resources/providers/client/Client.d.ts +2 -6
  39. package/api/resources/providers/client/Client.js +7 -15
  40. package/api/resources/providers/client/requests/ProviderCreate.d.ts +5 -1
  41. package/api/resources/providers/client/requests/ProviderUpdate.d.ts +5 -1
  42. package/api/resources/providers/client/requests/index.d.ts +0 -1
  43. package/api/resources/runs/client/Client.js +4 -4
  44. package/api/resources/runs/resources/messages/client/Client.js +1 -1
  45. package/api/resources/runs/resources/steps/client/Client.js +1 -1
  46. package/api/resources/runs/resources/usage/client/Client.js +1 -1
  47. package/api/resources/sources/client/Client.js +7 -7
  48. package/api/resources/sources/resources/files/client/Client.js +3 -3
  49. package/api/resources/sources/resources/passages/client/Client.js +1 -1
  50. package/api/resources/steps/client/Client.js +2 -2
  51. package/api/resources/tags/client/Client.js +1 -1
  52. package/api/resources/telemetry/client/Client.js +1 -1
  53. package/api/resources/templates/client/Client.js +1 -1
  54. package/api/resources/templates/resources/agents/client/Client.js +1 -1
  55. package/api/resources/tools/client/Client.d.ts +13 -0
  56. package/api/resources/tools/client/Client.js +84 -17
  57. package/api/resources/tools/types/AddMcpServerRequest.d.ts +1 -1
  58. package/api/resources/tools/types/AddMcpServerResponseItem.d.ts +1 -1
  59. package/api/resources/tools/types/DeleteMcpServerResponseItem.d.ts +1 -1
  60. package/api/resources/tools/types/ListMcpServersResponseValue.d.ts +1 -1
  61. package/api/resources/tools/types/UpdateMcpServerRequest.d.ts +5 -0
  62. package/api/resources/tools/types/UpdateMcpServerResponse.d.ts +5 -0
  63. package/api/resources/tools/types/index.d.ts +2 -0
  64. package/api/resources/tools/types/index.js +2 -0
  65. package/api/resources/voice/client/Client.js +1 -1
  66. package/api/types/AgentState.d.ts +4 -0
  67. package/api/types/AgentStateToolRulesItem.d.ts +1 -1
  68. package/api/types/JobStatus.d.ts +1 -2
  69. package/api/types/JobStatus.js +0 -1
  70. package/api/types/LettaRequestConfig.d.ts +3 -0
  71. package/api/types/Provider.d.ts +5 -1
  72. package/api/types/ProviderCheck.d.ts +14 -0
  73. package/api/types/ProviderType.d.ts +2 -2
  74. package/api/types/ProviderType.js +1 -1
  75. package/api/types/RequiredBeforeExitToolRule.d.ts +13 -0
  76. package/api/types/RequiredBeforeExitToolRule.js +5 -0
  77. package/api/types/StreamableHttpServerConfig.d.ts +27 -0
  78. package/api/types/StreamableHttpServerConfig.js +5 -0
  79. package/api/types/UpdateSsemcpServer.d.ts +14 -0
  80. package/api/types/UpdateSsemcpServer.js +5 -0
  81. package/api/types/UpdateStreamableHttpmcpServer.d.ts +16 -0
  82. package/api/types/UpdateStreamableHttpmcpServer.js +5 -0
  83. package/api/types/index.d.ts +5 -0
  84. package/api/types/index.js +5 -0
  85. package/dist/api/resources/agents/client/Client.js +14 -11
  86. package/dist/api/resources/agents/client/requests/AgentsListRequest.d.ts +4 -0
  87. package/dist/api/resources/agents/client/requests/AgentsSearchRequest.d.ts +2 -0
  88. package/dist/api/resources/agents/client/requests/UpdateAgent.d.ts +4 -0
  89. package/dist/api/resources/agents/resources/blocks/client/Client.js +5 -5
  90. package/dist/api/resources/agents/resources/context/client/Client.js +1 -1
  91. package/dist/api/resources/agents/resources/coreMemory/client/Client.js +1 -1
  92. package/dist/api/resources/agents/resources/groups/client/Client.js +1 -1
  93. package/dist/api/resources/agents/resources/memoryVariables/client/Client.js +1 -1
  94. package/dist/api/resources/agents/resources/messages/client/Client.d.ts +9 -11
  95. package/dist/api/resources/agents/resources/messages/client/Client.js +15 -23
  96. package/dist/api/resources/agents/resources/messages/client/requests/LettaAsyncRequest.d.ts +32 -0
  97. package/dist/api/resources/agents/resources/messages/client/requests/LettaAsyncRequest.js +5 -0
  98. package/dist/api/resources/agents/resources/messages/client/requests/index.d.ts +1 -1
  99. package/dist/api/resources/agents/resources/passages/client/Client.js +4 -4
  100. package/dist/api/resources/agents/resources/sources/client/Client.js +3 -3
  101. package/dist/api/resources/agents/resources/templates/client/Client.js +3 -3
  102. package/dist/api/resources/agents/resources/tools/client/Client.js +3 -3
  103. package/dist/api/resources/agents/types/AgentsSearchRequestSortBy.d.ts +8 -0
  104. package/dist/api/resources/agents/types/AgentsSearchRequestSortBy.js +10 -0
  105. package/dist/api/resources/agents/types/CreateAgentRequestToolRulesItem.d.ts +1 -1
  106. package/dist/api/resources/agents/types/UpdateAgentToolRulesItem.d.ts +1 -1
  107. package/dist/api/resources/agents/types/index.d.ts +1 -0
  108. package/dist/api/resources/agents/types/index.js +1 -0
  109. package/dist/api/resources/batches/client/Client.js +4 -4
  110. package/dist/api/resources/blocks/client/Client.js +6 -6
  111. package/dist/api/resources/blocks/resources/agents/client/Client.js +1 -1
  112. package/dist/api/resources/clientSideAccessTokens/client/Client.js +2 -2
  113. package/dist/api/resources/embeddingModels/client/Client.js +1 -1
  114. package/dist/api/resources/groups/client/Client.js +6 -6
  115. package/dist/api/resources/groups/resources/messages/client/Client.js +5 -5
  116. package/dist/api/resources/health/client/Client.js +1 -1
  117. package/dist/api/resources/identities/client/Client.js +7 -7
  118. package/dist/api/resources/identities/resources/properties/client/Client.js +1 -1
  119. package/dist/api/resources/jobs/client/Client.js +4 -4
  120. package/dist/api/resources/messages/client/Client.js +1 -1
  121. package/dist/api/resources/models/client/Client.js +1 -1
  122. package/dist/api/resources/projects/client/Client.js +1 -1
  123. package/dist/api/resources/providers/client/Client.d.ts +2 -6
  124. package/dist/api/resources/providers/client/Client.js +7 -15
  125. package/dist/api/resources/providers/client/requests/ProviderCreate.d.ts +5 -1
  126. package/dist/api/resources/providers/client/requests/ProviderUpdate.d.ts +5 -1
  127. package/dist/api/resources/providers/client/requests/index.d.ts +0 -1
  128. package/dist/api/resources/runs/client/Client.js +4 -4
  129. package/dist/api/resources/runs/resources/messages/client/Client.js +1 -1
  130. package/dist/api/resources/runs/resources/steps/client/Client.js +1 -1
  131. package/dist/api/resources/runs/resources/usage/client/Client.js +1 -1
  132. package/dist/api/resources/sources/client/Client.js +7 -7
  133. package/dist/api/resources/sources/resources/files/client/Client.js +3 -3
  134. package/dist/api/resources/sources/resources/passages/client/Client.js +1 -1
  135. package/dist/api/resources/steps/client/Client.js +2 -2
  136. package/dist/api/resources/tags/client/Client.js +1 -1
  137. package/dist/api/resources/telemetry/client/Client.js +1 -1
  138. package/dist/api/resources/templates/client/Client.js +1 -1
  139. package/dist/api/resources/templates/resources/agents/client/Client.js +1 -1
  140. package/dist/api/resources/tools/client/Client.d.ts +13 -0
  141. package/dist/api/resources/tools/client/Client.js +84 -17
  142. package/dist/api/resources/tools/types/AddMcpServerRequest.d.ts +1 -1
  143. package/dist/api/resources/tools/types/AddMcpServerResponseItem.d.ts +1 -1
  144. package/dist/api/resources/tools/types/DeleteMcpServerResponseItem.d.ts +1 -1
  145. package/dist/api/resources/tools/types/ListMcpServersResponseValue.d.ts +1 -1
  146. package/dist/api/resources/tools/types/UpdateMcpServerRequest.d.ts +5 -0
  147. package/dist/api/resources/tools/types/UpdateMcpServerRequest.js +5 -0
  148. package/dist/api/resources/tools/types/UpdateMcpServerResponse.d.ts +5 -0
  149. package/dist/api/resources/tools/types/UpdateMcpServerResponse.js +5 -0
  150. package/dist/api/resources/tools/types/index.d.ts +2 -0
  151. package/dist/api/resources/tools/types/index.js +2 -0
  152. package/dist/api/resources/voice/client/Client.js +1 -1
  153. package/dist/api/types/AgentState.d.ts +4 -0
  154. package/dist/api/types/AgentStateToolRulesItem.d.ts +1 -1
  155. package/dist/api/types/JobStatus.d.ts +1 -2
  156. package/dist/api/types/JobStatus.js +0 -1
  157. package/dist/api/types/LettaRequestConfig.d.ts +3 -0
  158. package/dist/api/types/Provider.d.ts +5 -1
  159. package/dist/api/types/ProviderCheck.d.ts +14 -0
  160. package/dist/api/types/ProviderCheck.js +5 -0
  161. package/dist/api/types/ProviderType.d.ts +2 -2
  162. package/dist/api/types/ProviderType.js +1 -1
  163. package/dist/api/types/RequiredBeforeExitToolRule.d.ts +13 -0
  164. package/dist/api/types/RequiredBeforeExitToolRule.js +5 -0
  165. package/dist/api/types/StreamableHttpServerConfig.d.ts +27 -0
  166. package/dist/api/types/StreamableHttpServerConfig.js +5 -0
  167. package/dist/api/types/UpdateSsemcpServer.d.ts +14 -0
  168. package/dist/api/types/UpdateSsemcpServer.js +5 -0
  169. package/dist/api/types/UpdateStreamableHttpmcpServer.d.ts +16 -0
  170. package/dist/api/types/UpdateStreamableHttpmcpServer.js +5 -0
  171. package/dist/api/types/index.d.ts +5 -0
  172. package/dist/api/types/index.js +5 -0
  173. package/dist/serialization/resources/agents/client/requests/AgentsSearchRequest.d.ts +3 -0
  174. package/dist/serialization/resources/agents/client/requests/AgentsSearchRequest.js +3 -0
  175. package/dist/serialization/resources/agents/client/requests/UpdateAgent.d.ts +2 -0
  176. package/dist/serialization/resources/agents/client/requests/UpdateAgent.js +2 -0
  177. package/dist/serialization/resources/agents/resources/index.d.ts +1 -0
  178. package/dist/serialization/resources/agents/resources/index.js +1 -0
  179. package/dist/serialization/resources/agents/resources/messages/client/index.d.ts +1 -0
  180. package/dist/serialization/resources/agents/resources/messages/client/index.js +4 -0
  181. package/dist/serialization/resources/agents/resources/messages/client/requests/LettaAsyncRequest.d.ts +20 -0
  182. package/dist/serialization/resources/agents/resources/messages/client/requests/LettaAsyncRequest.js +51 -0
  183. package/dist/serialization/resources/agents/resources/messages/client/requests/index.d.ts +1 -0
  184. package/dist/serialization/resources/agents/resources/messages/client/requests/index.js +5 -0
  185. package/dist/serialization/resources/agents/types/AgentsSearchRequestSortBy.d.ts +10 -0
  186. package/dist/serialization/resources/agents/types/AgentsSearchRequestSortBy.js +41 -0
  187. package/dist/serialization/resources/agents/types/CreateAgentRequestToolRulesItem.d.ts +2 -1
  188. package/dist/serialization/resources/agents/types/CreateAgentRequestToolRulesItem.js +2 -0
  189. package/dist/serialization/resources/agents/types/UpdateAgentToolRulesItem.d.ts +2 -1
  190. package/dist/serialization/resources/agents/types/UpdateAgentToolRulesItem.js +2 -0
  191. package/dist/serialization/resources/agents/types/index.d.ts +1 -0
  192. package/dist/serialization/resources/agents/types/index.js +1 -0
  193. package/dist/serialization/resources/providers/client/requests/ProviderCreate.d.ts +2 -0
  194. package/dist/serialization/resources/providers/client/requests/ProviderCreate.js +2 -0
  195. package/dist/serialization/resources/providers/client/requests/ProviderUpdate.d.ts +2 -0
  196. package/dist/serialization/resources/providers/client/requests/ProviderUpdate.js +2 -0
  197. package/dist/serialization/resources/tools/types/AddMcpServerRequest.d.ts +2 -1
  198. package/dist/serialization/resources/tools/types/AddMcpServerRequest.js +2 -1
  199. package/dist/serialization/resources/tools/types/AddMcpServerResponseItem.d.ts +2 -1
  200. package/dist/serialization/resources/tools/types/AddMcpServerResponseItem.js +2 -1
  201. package/dist/serialization/resources/tools/types/DeleteMcpServerResponseItem.d.ts +2 -1
  202. package/dist/serialization/resources/tools/types/DeleteMcpServerResponseItem.js +2 -1
  203. package/dist/serialization/resources/tools/types/ListMcpServersResponseValue.d.ts +2 -1
  204. package/dist/serialization/resources/tools/types/ListMcpServersResponseValue.js +2 -1
  205. package/dist/serialization/resources/tools/types/UpdateMcpServerRequest.d.ts +12 -0
  206. package/dist/serialization/resources/tools/types/UpdateMcpServerRequest.js +43 -0
  207. package/dist/serialization/resources/tools/types/UpdateMcpServerResponse.d.ts +13 -0
  208. package/dist/serialization/resources/tools/types/UpdateMcpServerResponse.js +44 -0
  209. package/dist/serialization/resources/tools/types/index.d.ts +2 -0
  210. package/dist/serialization/resources/tools/types/index.js +2 -0
  211. package/dist/serialization/types/AgentState.d.ts +2 -0
  212. package/dist/serialization/types/AgentState.js +2 -0
  213. package/dist/serialization/types/AgentStateToolRulesItem.d.ts +2 -1
  214. package/dist/serialization/types/AgentStateToolRulesItem.js +2 -0
  215. package/dist/serialization/types/JobStatus.d.ts +1 -1
  216. package/dist/serialization/types/JobStatus.js +1 -10
  217. package/dist/serialization/types/LettaRequestConfig.d.ts +2 -0
  218. package/dist/serialization/types/LettaRequestConfig.js +2 -0
  219. package/dist/serialization/types/Provider.d.ts +2 -0
  220. package/dist/serialization/types/Provider.js +2 -0
  221. package/dist/serialization/types/ProviderCheck.d.ts +16 -0
  222. package/dist/serialization/types/ProviderCheck.js +47 -0
  223. package/dist/serialization/types/ProviderType.d.ts +1 -1
  224. package/dist/serialization/types/ProviderType.js +1 -1
  225. package/dist/serialization/types/RequiredBeforeExitToolRule.d.ts +14 -0
  226. package/dist/serialization/types/RequiredBeforeExitToolRule.js +45 -0
  227. package/dist/serialization/types/StreamableHttpServerConfig.d.ts +18 -0
  228. package/dist/serialization/types/StreamableHttpServerConfig.js +49 -0
  229. package/dist/serialization/types/UpdateSsemcpServer.d.ts +14 -0
  230. package/dist/serialization/types/UpdateSsemcpServer.js +45 -0
  231. package/dist/serialization/types/UpdateStreamableHttpmcpServer.d.ts +15 -0
  232. package/dist/serialization/types/UpdateStreamableHttpmcpServer.js +46 -0
  233. package/dist/serialization/types/index.d.ts +5 -0
  234. package/dist/serialization/types/index.js +5 -0
  235. package/dist/version.d.ts +1 -1
  236. package/dist/version.js +1 -1
  237. package/package.json +1 -1
  238. package/reference.md +85 -27
  239. package/serialization/resources/agents/client/requests/AgentsSearchRequest.d.ts +3 -0
  240. package/serialization/resources/agents/client/requests/AgentsSearchRequest.js +3 -0
  241. package/serialization/resources/agents/client/requests/UpdateAgent.d.ts +2 -0
  242. package/serialization/resources/agents/client/requests/UpdateAgent.js +2 -0
  243. package/serialization/resources/agents/resources/index.d.ts +1 -0
  244. package/serialization/resources/agents/resources/index.js +1 -0
  245. package/serialization/resources/agents/resources/messages/client/index.d.ts +1 -0
  246. package/serialization/resources/agents/resources/messages/client/index.js +4 -0
  247. package/serialization/resources/agents/resources/messages/client/requests/LettaAsyncRequest.d.ts +20 -0
  248. package/serialization/resources/agents/resources/messages/client/requests/LettaAsyncRequest.js +51 -0
  249. package/serialization/resources/agents/resources/messages/client/requests/index.d.ts +1 -0
  250. package/serialization/resources/agents/resources/messages/client/requests/index.js +5 -0
  251. package/serialization/resources/agents/types/AgentsSearchRequestSortBy.d.ts +10 -0
  252. package/serialization/resources/agents/types/AgentsSearchRequestSortBy.js +41 -0
  253. package/serialization/resources/agents/types/CreateAgentRequestToolRulesItem.d.ts +2 -1
  254. package/serialization/resources/agents/types/CreateAgentRequestToolRulesItem.js +2 -0
  255. package/serialization/resources/agents/types/UpdateAgentToolRulesItem.d.ts +2 -1
  256. package/serialization/resources/agents/types/UpdateAgentToolRulesItem.js +2 -0
  257. package/serialization/resources/agents/types/index.d.ts +1 -0
  258. package/serialization/resources/agents/types/index.js +1 -0
  259. package/serialization/resources/providers/client/requests/ProviderCreate.d.ts +2 -0
  260. package/serialization/resources/providers/client/requests/ProviderCreate.js +2 -0
  261. package/serialization/resources/providers/client/requests/ProviderUpdate.d.ts +2 -0
  262. package/serialization/resources/providers/client/requests/ProviderUpdate.js +2 -0
  263. package/serialization/resources/tools/types/AddMcpServerRequest.d.ts +2 -1
  264. package/serialization/resources/tools/types/AddMcpServerRequest.js +2 -1
  265. package/serialization/resources/tools/types/AddMcpServerResponseItem.d.ts +2 -1
  266. package/serialization/resources/tools/types/AddMcpServerResponseItem.js +2 -1
  267. package/serialization/resources/tools/types/DeleteMcpServerResponseItem.d.ts +2 -1
  268. package/serialization/resources/tools/types/DeleteMcpServerResponseItem.js +2 -1
  269. package/serialization/resources/tools/types/ListMcpServersResponseValue.d.ts +2 -1
  270. package/serialization/resources/tools/types/ListMcpServersResponseValue.js +2 -1
  271. package/serialization/resources/tools/types/UpdateMcpServerRequest.d.ts +12 -0
  272. package/serialization/resources/tools/types/UpdateMcpServerRequest.js +43 -0
  273. package/serialization/resources/tools/types/UpdateMcpServerResponse.d.ts +13 -0
  274. package/serialization/resources/tools/types/UpdateMcpServerResponse.js +44 -0
  275. package/serialization/resources/tools/types/index.d.ts +2 -0
  276. package/serialization/resources/tools/types/index.js +2 -0
  277. package/serialization/types/AgentState.d.ts +2 -0
  278. package/serialization/types/AgentState.js +2 -0
  279. package/serialization/types/AgentStateToolRulesItem.d.ts +2 -1
  280. package/serialization/types/AgentStateToolRulesItem.js +2 -0
  281. package/serialization/types/JobStatus.d.ts +1 -1
  282. package/serialization/types/JobStatus.js +1 -10
  283. package/serialization/types/LettaRequestConfig.d.ts +2 -0
  284. package/serialization/types/LettaRequestConfig.js +2 -0
  285. package/serialization/types/Provider.d.ts +2 -0
  286. package/serialization/types/Provider.js +2 -0
  287. package/serialization/types/ProviderCheck.d.ts +16 -0
  288. package/serialization/types/ProviderCheck.js +47 -0
  289. package/serialization/types/ProviderType.d.ts +1 -1
  290. package/serialization/types/ProviderType.js +1 -1
  291. package/serialization/types/RequiredBeforeExitToolRule.d.ts +14 -0
  292. package/serialization/types/RequiredBeforeExitToolRule.js +45 -0
  293. package/serialization/types/StreamableHttpServerConfig.d.ts +18 -0
  294. package/serialization/types/StreamableHttpServerConfig.js +49 -0
  295. package/serialization/types/UpdateSsemcpServer.d.ts +14 -0
  296. package/serialization/types/UpdateSsemcpServer.js +45 -0
  297. package/serialization/types/UpdateStreamableHttpmcpServer.d.ts +15 -0
  298. package/serialization/types/UpdateStreamableHttpmcpServer.js +46 -0
  299. package/serialization/types/index.d.ts +5 -0
  300. package/serialization/types/index.js +5 -0
  301. package/version.d.ts +1 -1
  302. package/version.js +1 -1
  303. package/api/resources/agents/resources/messages/client/requests/MessagesCreateAsyncRequest.d.ts +0 -25
  304. package/api/resources/providers/client/requests/ProvidersCheckRequest.d.ts +0 -15
  305. package/dist/api/resources/agents/resources/messages/client/requests/MessagesCreateAsyncRequest.d.ts +0 -25
  306. package/dist/api/resources/providers/client/requests/ProvidersCheckRequest.d.ts +0 -15
  307. /package/api/resources/agents/resources/messages/client/requests/{MessagesCreateAsyncRequest.js → LettaAsyncRequest.js} +0 -0
  308. /package/api/resources/{providers/client/requests/ProvidersCheckRequest.js → tools/types/UpdateMcpServerRequest.js} +0 -0
  309. /package/{dist/api/resources/agents/resources/messages/client/requests/MessagesCreateAsyncRequest.js → api/resources/tools/types/UpdateMcpServerResponse.js} +0 -0
  310. /package/{dist/api/resources/providers/client/requests/ProvidersCheckRequest.js → api/types/ProviderCheck.js} +0 -0
@@ -90,7 +90,7 @@ class Providers {
90
90
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
91
91
  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/"),
92
92
  method: "GET",
93
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.131", "User-Agent": "@letta-ai/letta-client/0.1.131", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
93
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.133", "User-Agent": "@letta-ai/letta-client/0.1.133", "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),
94
94
  contentType: "application/json",
95
95
  queryParameters: _queryParams,
96
96
  requestType: "json",
@@ -160,7 +160,7 @@ class Providers {
160
160
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
161
161
  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/"),
162
162
  method: "POST",
163
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.131", "User-Agent": "@letta-ai/letta-client/0.1.131", "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),
163
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.133", "User-Agent": "@letta-ai/letta-client/0.1.133", "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),
164
164
  contentType: "application/json",
165
165
  requestType: "json",
166
166
  body: serializers.ProviderCreate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -226,7 +226,7 @@ class Providers {
226
226
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
227
227
  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)}`),
228
228
  method: "DELETE",
229
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.131", "User-Agent": "@letta-ai/letta-client/0.1.131", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
229
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.133", "User-Agent": "@letta-ai/letta-client/0.1.133", "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),
230
230
  contentType: "application/json",
231
231
  requestType: "json",
232
232
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -288,7 +288,7 @@ class Providers {
288
288
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
289
289
  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)}`),
290
290
  method: "PATCH",
291
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.131", "User-Agent": "@letta-ai/letta-client/0.1.131", "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
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.133", "User-Agent": "@letta-ai/letta-client/0.1.133", "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),
292
292
  contentType: "application/json",
293
293
  requestType: "json",
294
294
  body: serializers.ProviderUpdate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -338,29 +338,21 @@ class Providers {
338
338
  });
339
339
  }
340
340
  /**
341
- * @param {Letta.ProvidersCheckRequest} request
342
341
  * @param {Providers.RequestOptions} requestOptions - Request-specific configuration.
343
342
  *
344
343
  * @throws {@link Letta.UnprocessableEntityError}
345
344
  *
346
345
  * @example
347
- * await client.providers.check({
348
- * apiKey: "x-api-key",
349
- * providerType: "anthropic"
350
- * })
346
+ * await client.providers.check()
351
347
  */
352
- check(request, requestOptions) {
348
+ check(requestOptions) {
353
349
  return __awaiter(this, void 0, void 0, function* () {
354
350
  var _a, _b, _c;
355
- const { providerType, apiKey } = request;
356
- const _queryParams = {};
357
- _queryParams["provider_type"] = providerType;
358
351
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
359
352
  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/check"),
360
353
  method: "GET",
361
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.131", "User-Agent": "@letta-ai/letta-client/0.1.131", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, "x-api-key": apiKey }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
354
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.133", "User-Agent": "@letta-ai/letta-client/0.1.133", "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),
362
355
  contentType: "application/json",
363
- queryParameters: _queryParams,
364
356
  requestType: "json",
365
357
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
366
358
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
@@ -15,6 +15,10 @@ export interface ProviderCreate {
15
15
  name: string;
16
16
  /** The type of the provider. */
17
17
  providerType: Letta.ProviderType;
18
- /** API key used for requests to the provider. */
18
+ /** API key or secret key used for requests to the provider. */
19
19
  apiKey: string;
20
+ /** Access key used for requests to the provider. */
21
+ accessKey?: string;
22
+ /** Region used for requests to the provider. */
23
+ region?: string;
20
24
  }
@@ -8,6 +8,10 @@
8
8
  * }
9
9
  */
10
10
  export interface ProviderUpdate {
11
- /** API key used for requests to the provider. */
11
+ /** API key or secret key used for requests to the provider. */
12
12
  apiKey: string;
13
+ /** Access key used for requests to the provider. */
14
+ accessKey?: string;
15
+ /** Region used for requests to the provider. */
16
+ region?: string;
13
17
  }
@@ -1,4 +1,3 @@
1
1
  export { type ProvidersListRequest } from "./ProvidersListRequest";
2
2
  export { type ProviderCreate } from "./ProviderCreate";
3
3
  export { type ProviderUpdate } from "./ProviderUpdate";
4
- export { type ProvidersCheckRequest } from "./ProvidersCheckRequest";
@@ -101,7 +101,7 @@ class Runs {
101
101
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
102
102
  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/runs/"),
103
103
  method: "GET",
104
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.131", "User-Agent": "@letta-ai/letta-client/0.1.131", "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),
104
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.133", "User-Agent": "@letta-ai/letta-client/0.1.133", "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),
105
105
  contentType: "application/json",
106
106
  queryParameters: _queryParams,
107
107
  requestType: "json",
@@ -177,7 +177,7 @@ class Runs {
177
177
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
178
178
  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/runs/active"),
179
179
  method: "GET",
180
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.131", "User-Agent": "@letta-ai/letta-client/0.1.131", "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),
180
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.133", "User-Agent": "@letta-ai/letta-client/0.1.133", "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),
181
181
  contentType: "application/json",
182
182
  queryParameters: _queryParams,
183
183
  requestType: "json",
@@ -243,7 +243,7 @@ class Runs {
243
243
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
244
244
  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/runs/${encodeURIComponent(runId)}`),
245
245
  method: "GET",
246
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.131", "User-Agent": "@letta-ai/letta-client/0.1.131", "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),
246
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.133", "User-Agent": "@letta-ai/letta-client/0.1.133", "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),
247
247
  contentType: "application/json",
248
248
  requestType: "json",
249
249
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -308,7 +308,7 @@ class Runs {
308
308
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
309
309
  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/runs/${encodeURIComponent(runId)}`),
310
310
  method: "DELETE",
311
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.131", "User-Agent": "@letta-ai/letta-client/0.1.131", "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),
311
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.133", "User-Agent": "@letta-ai/letta-client/0.1.133", "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),
312
312
  contentType: "application/json",
313
313
  requestType: "json",
314
314
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -107,7 +107,7 @@ class Messages {
107
107
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
108
108
  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/runs/${encodeURIComponent(runId)}/messages`),
109
109
  method: "GET",
110
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.131", "User-Agent": "@letta-ai/letta-client/0.1.131", "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),
110
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.133", "User-Agent": "@letta-ai/letta-client/0.1.133", "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),
111
111
  contentType: "application/json",
112
112
  queryParameters: _queryParams,
113
113
  requestType: "json",
@@ -101,7 +101,7 @@ class Steps {
101
101
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
102
102
  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/runs/${encodeURIComponent(runId)}/steps`),
103
103
  method: "GET",
104
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.131", "User-Agent": "@letta-ai/letta-client/0.1.131", "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),
104
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.133", "User-Agent": "@letta-ai/letta-client/0.1.133", "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),
105
105
  contentType: "application/json",
106
106
  queryParameters: _queryParams,
107
107
  requestType: "json",
@@ -76,7 +76,7 @@ class Usage {
76
76
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
77
77
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, `v1/runs/${encodeURIComponent(runId)}/usage`),
78
78
  method: "GET",
79
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.131", "User-Agent": "@letta-ai/letta-client/0.1.131", "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.133", "User-Agent": "@letta-ai/letta-client/0.1.133", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
80
80
  contentType: "application/json",
81
81
  requestType: "json",
82
82
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -85,7 +85,7 @@ class Sources {
85
85
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
86
86
  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/sources/count"),
87
87
  method: "GET",
88
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.131", "User-Agent": "@letta-ai/letta-client/0.1.131", "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
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.133", "User-Agent": "@letta-ai/letta-client/0.1.133", "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),
89
89
  contentType: "application/json",
90
90
  requestType: "json",
91
91
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -150,7 +150,7 @@ class Sources {
150
150
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
151
151
  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/sources/${encodeURIComponent(sourceId)}`),
152
152
  method: "GET",
153
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.131", "User-Agent": "@letta-ai/letta-client/0.1.131", "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),
153
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.133", "User-Agent": "@letta-ai/letta-client/0.1.133", "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),
154
154
  contentType: "application/json",
155
155
  requestType: "json",
156
156
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -215,7 +215,7 @@ class Sources {
215
215
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
216
216
  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/sources/${encodeURIComponent(sourceId)}`),
217
217
  method: "DELETE",
218
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.131", "User-Agent": "@letta-ai/letta-client/0.1.131", "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),
218
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.133", "User-Agent": "@letta-ai/letta-client/0.1.133", "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),
219
219
  contentType: "application/json",
220
220
  requestType: "json",
221
221
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -275,7 +275,7 @@ class Sources {
275
275
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
276
276
  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/sources/${encodeURIComponent(sourceId)}`),
277
277
  method: "PATCH",
278
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.131", "User-Agent": "@letta-ai/letta-client/0.1.131", "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),
278
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.133", "User-Agent": "@letta-ai/letta-client/0.1.133", "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
279
  contentType: "application/json",
280
280
  requestType: "json",
281
281
  body: serializers.SourceUpdate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -341,7 +341,7 @@ class Sources {
341
341
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
342
342
  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/sources/name/${encodeURIComponent(sourceName)}`),
343
343
  method: "GET",
344
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.131", "User-Agent": "@letta-ai/letta-client/0.1.131", "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),
344
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.133", "User-Agent": "@letta-ai/letta-client/0.1.133", "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),
345
345
  contentType: "application/json",
346
346
  requestType: "json",
347
347
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -405,7 +405,7 @@ class Sources {
405
405
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
406
406
  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/sources/"),
407
407
  method: "GET",
408
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.131", "User-Agent": "@letta-ai/letta-client/0.1.131", "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),
408
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.133", "User-Agent": "@letta-ai/letta-client/0.1.133", "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),
409
409
  contentType: "application/json",
410
410
  requestType: "json",
411
411
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -472,7 +472,7 @@ class Sources {
472
472
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
473
473
  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/sources/"),
474
474
  method: "POST",
475
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.131", "User-Agent": "@letta-ai/letta-client/0.1.131", "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),
475
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.133", "User-Agent": "@letta-ai/letta-client/0.1.133", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
476
476
  contentType: "application/json",
477
477
  requestType: "json",
478
478
  body: serializers.SourceCreate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -80,7 +80,7 @@ class Files {
80
80
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
81
81
  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/sources/${encodeURIComponent(sourceId)}/upload`),
82
82
  method: "POST",
83
- headers: Object.assign(Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.131", "User-Agent": "@letta-ai/letta-client/0.1.131", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), _maybeEncodedRequest.headers), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
83
+ headers: Object.assign(Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.133", "User-Agent": "@letta-ai/letta-client/0.1.133", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), _maybeEncodedRequest.headers), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
84
84
  requestType: "file",
85
85
  duplex: _maybeEncodedRequest.duplex,
86
86
  body: _maybeEncodedRequest.body,
@@ -158,7 +158,7 @@ class Files {
158
158
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
159
159
  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/sources/${encodeURIComponent(sourceId)}/files`),
160
160
  method: "GET",
161
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.131", "User-Agent": "@letta-ai/letta-client/0.1.131", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
161
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.133", "User-Agent": "@letta-ai/letta-client/0.1.133", "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),
162
162
  contentType: "application/json",
163
163
  queryParameters: _queryParams,
164
164
  requestType: "json",
@@ -225,7 +225,7 @@ class Files {
225
225
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
226
226
  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/sources/${encodeURIComponent(sourceId)}/${encodeURIComponent(fileId)}`),
227
227
  method: "DELETE",
228
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.131", "User-Agent": "@letta-ai/letta-client/0.1.131", "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
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.133", "User-Agent": "@letta-ai/letta-client/0.1.133", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
229
229
  contentType: "application/json",
230
230
  requestType: "json",
231
231
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -88,7 +88,7 @@ class Passages {
88
88
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
89
89
  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/sources/${encodeURIComponent(sourceId)}/passages`),
90
90
  method: "GET",
91
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.131", "User-Agent": "@letta-ai/letta-client/0.1.131", "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),
91
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.133", "User-Agent": "@letta-ai/letta-client/0.1.133", "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),
92
92
  contentType: "application/json",
93
93
  queryParameters: _queryParams,
94
94
  requestType: "json",
@@ -111,7 +111,7 @@ class Steps {
111
111
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
112
112
  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/steps/"),
113
113
  method: "GET",
114
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.131", "User-Agent": "@letta-ai/letta-client/0.1.131", "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),
114
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.133", "User-Agent": "@letta-ai/letta-client/0.1.133", "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),
115
115
  contentType: "application/json",
116
116
  queryParameters: _queryParams,
117
117
  requestType: "json",
@@ -177,7 +177,7 @@ class Steps {
177
177
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
178
178
  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/steps/${encodeURIComponent(stepId)}`),
179
179
  method: "GET",
180
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.131", "User-Agent": "@letta-ai/letta-client/0.1.131", "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),
180
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.133", "User-Agent": "@letta-ai/letta-client/0.1.133", "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),
181
181
  contentType: "application/json",
182
182
  requestType: "json",
183
183
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -87,7 +87,7 @@ class Tags {
87
87
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
88
88
  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/tags/"),
89
89
  method: "GET",
90
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.131", "User-Agent": "@letta-ai/letta-client/0.1.131", "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),
90
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.133", "User-Agent": "@letta-ai/letta-client/0.1.133", "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),
91
91
  contentType: "application/json",
92
92
  queryParameters: _queryParams,
93
93
  requestType: "json",
@@ -74,7 +74,7 @@ class Telemetry {
74
74
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
75
75
  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/telemetry/${encodeURIComponent(stepId)}`),
76
76
  method: "GET",
77
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.131", "User-Agent": "@letta-ai/letta-client/0.1.131", "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),
77
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.133", "User-Agent": "@letta-ai/letta-client/0.1.133", "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),
78
78
  contentType: "application/json",
79
79
  requestType: "json",
80
80
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -92,7 +92,7 @@ class Templates {
92
92
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
93
93
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, "v1/templates"),
94
94
  method: "GET",
95
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.131", "User-Agent": "@letta-ai/letta-client/0.1.131", "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),
95
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.133", "User-Agent": "@letta-ai/letta-client/0.1.133", "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),
96
96
  contentType: "application/json",
97
97
  queryParameters: _queryParams,
98
98
  requestType: "json",
@@ -78,7 +78,7 @@ class Agents {
78
78
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
79
79
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, `v1/templates/${encodeURIComponent(project)}/${encodeURIComponent(templateVersion)}/agents`),
80
80
  method: "POST",
81
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.131", "User-Agent": "@letta-ai/letta-client/0.1.131", "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),
81
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.133", "User-Agent": "@letta-ai/letta-client/0.1.133", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
82
82
  contentType: "application/json",
83
83
  requestType: "json",
84
84
  body: serializers.templates.AgentsCreateRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -244,6 +244,19 @@ export declare class Tools {
244
244
  * await client.tools.deleteMcpServer("mcp_server_name")
245
245
  */
246
246
  deleteMcpServer(mcpServerName: string, requestOptions?: Tools.RequestOptions): Promise<Letta.DeleteMcpServerResponseItem[]>;
247
+ /**
248
+ * Update an existing MCP server configuration
249
+ *
250
+ * @param {string} mcpServerName
251
+ * @param {Letta.UpdateMcpServerRequest} request
252
+ * @param {Tools.RequestOptions} requestOptions - Request-specific configuration.
253
+ *
254
+ * @throws {@link Letta.UnprocessableEntityError}
255
+ *
256
+ * @example
257
+ * await client.tools.updateMcpServer("mcp_server_name", {})
258
+ */
259
+ updateMcpServer(mcpServerName: string, request: Letta.UpdateMcpServerRequest, requestOptions?: Tools.RequestOptions): Promise<Letta.UpdateMcpServerResponse>;
247
260
  protected _getCustomAuthorizationHeaders(): Promise<{
248
261
  Authorization: string;
249
262
  }>;