@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
@@ -76,7 +76,7 @@ class Tools {
76
76
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
77
77
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, `v1/tools/${encodeURIComponent(toolId)}`),
78
78
  method: "GET",
79
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.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,
@@ -141,7 +141,7 @@ class Tools {
141
141
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
142
142
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, `v1/tools/${encodeURIComponent(toolId)}`),
143
143
  method: "DELETE",
144
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.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),
144
+ 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),
145
145
  contentType: "application/json",
146
146
  requestType: "json",
147
147
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -201,7 +201,7 @@ class Tools {
201
201
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
202
202
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, `v1/tools/${encodeURIComponent(toolId)}`),
203
203
  method: "PATCH",
204
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.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),
204
+ 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),
205
205
  contentType: "application/json",
206
206
  requestType: "json",
207
207
  body: serializers.ToolUpdate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -272,7 +272,7 @@ class Tools {
272
272
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
273
273
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, "v1/tools/count"),
274
274
  method: "GET",
275
- 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),
275
+ 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),
276
276
  contentType: "application/json",
277
277
  queryParameters: _queryParams,
278
278
  requestType: "json",
@@ -349,7 +349,7 @@ class Tools {
349
349
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
350
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/tools/"),
351
351
  method: "GET",
352
- 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),
352
+ 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),
353
353
  contentType: "application/json",
354
354
  queryParameters: _queryParams,
355
355
  requestType: "json",
@@ -417,7 +417,7 @@ class Tools {
417
417
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
418
418
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, "v1/tools/"),
419
419
  method: "POST",
420
- 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),
420
+ 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),
421
421
  contentType: "application/json",
422
422
  requestType: "json",
423
423
  body: serializers.ToolCreate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -485,7 +485,7 @@ class Tools {
485
485
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
486
486
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, "v1/tools/"),
487
487
  method: "PUT",
488
- 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),
488
+ 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),
489
489
  contentType: "application/json",
490
490
  requestType: "json",
491
491
  body: serializers.ToolCreate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -550,7 +550,7 @@ class Tools {
550
550
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
551
551
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, "v1/tools/add-base-tools"),
552
552
  method: "POST",
553
- 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),
553
+ 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),
554
554
  contentType: "application/json",
555
555
  requestType: "json",
556
556
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -620,7 +620,7 @@ class Tools {
620
620
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
621
621
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, "v1/tools/run"),
622
622
  method: "POST",
623
- 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),
623
+ 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),
624
624
  contentType: "application/json",
625
625
  requestType: "json",
626
626
  body: serializers.ToolRunFromSource.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -687,7 +687,7 @@ class Tools {
687
687
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
688
688
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, "v1/tools/composio/apps"),
689
689
  method: "GET",
690
- 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, "user-id": userId != null ? userId : undefined }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
690
+ 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, "user-id": userId != null ? userId : undefined }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
691
691
  contentType: "application/json",
692
692
  requestType: "json",
693
693
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -752,7 +752,7 @@ class Tools {
752
752
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
753
753
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, `v1/tools/composio/apps/${encodeURIComponent(composioAppName)}/actions`),
754
754
  method: "GET",
755
- 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),
755
+ 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),
756
756
  contentType: "application/json",
757
757
  requestType: "json",
758
758
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -817,7 +817,7 @@ class Tools {
817
817
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
818
818
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, `v1/tools/composio/${encodeURIComponent(composioActionName)}`),
819
819
  method: "POST",
820
- 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),
820
+ 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),
821
821
  contentType: "application/json",
822
822
  requestType: "json",
823
823
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -883,7 +883,7 @@ class Tools {
883
883
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
884
884
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, "v1/tools/mcp/servers"),
885
885
  method: "GET",
886
- 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, "user-id": userId != null ? userId : undefined }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
886
+ 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, "user-id": userId != null ? userId : undefined }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
887
887
  contentType: "application/json",
888
888
  requestType: "json",
889
889
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -952,7 +952,7 @@ class Tools {
952
952
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
953
953
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, "v1/tools/mcp/servers"),
954
954
  method: "PUT",
955
- 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),
955
+ 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),
956
956
  contentType: "application/json",
957
957
  requestType: "json",
958
958
  body: serializers.AddMcpServerRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -1018,7 +1018,7 @@ class Tools {
1018
1018
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
1019
1019
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, `v1/tools/mcp/servers/${encodeURIComponent(mcpServerName)}/tools`),
1020
1020
  method: "GET",
1021
- 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),
1021
+ 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),
1022
1022
  contentType: "application/json",
1023
1023
  requestType: "json",
1024
1024
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -1084,7 +1084,7 @@ class Tools {
1084
1084
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
1085
1085
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, `v1/tools/mcp/servers/${encodeURIComponent(mcpServerName)}/${encodeURIComponent(mcpToolName)}`),
1086
1086
  method: "POST",
1087
- 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),
1087
+ 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),
1088
1088
  contentType: "application/json",
1089
1089
  requestType: "json",
1090
1090
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -1149,7 +1149,7 @@ class Tools {
1149
1149
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
1150
1150
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, `v1/tools/mcp/servers/${encodeURIComponent(mcpServerName)}`),
1151
1151
  method: "DELETE",
1152
- 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),
1152
+ 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),
1153
1153
  contentType: "application/json",
1154
1154
  requestType: "json",
1155
1155
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -1197,6 +1197,73 @@ class Tools {
1197
1197
  }
1198
1198
  });
1199
1199
  }
1200
+ /**
1201
+ * Update an existing MCP server configuration
1202
+ *
1203
+ * @param {string} mcpServerName
1204
+ * @param {Letta.UpdateMcpServerRequest} request
1205
+ * @param {Tools.RequestOptions} requestOptions - Request-specific configuration.
1206
+ *
1207
+ * @throws {@link Letta.UnprocessableEntityError}
1208
+ *
1209
+ * @example
1210
+ * await client.tools.updateMcpServer("mcp_server_name", {})
1211
+ */
1212
+ updateMcpServer(mcpServerName, request, requestOptions) {
1213
+ return __awaiter(this, void 0, void 0, function* () {
1214
+ var _a, _b, _c;
1215
+ const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
1216
+ url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, `v1/tools/mcp/servers/${encodeURIComponent(mcpServerName)}`),
1217
+ method: "PATCH",
1218
+ 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),
1219
+ contentType: "application/json",
1220
+ requestType: "json",
1221
+ body: serializers.UpdateMcpServerRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
1222
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
1223
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
1224
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
1225
+ });
1226
+ if (_response.ok) {
1227
+ return serializers.UpdateMcpServerResponse.parseOrThrow(_response.body, {
1228
+ unrecognizedObjectKeys: "passthrough",
1229
+ allowUnrecognizedUnionMembers: true,
1230
+ allowUnrecognizedEnumValues: true,
1231
+ skipValidation: true,
1232
+ breadcrumbsPrefix: ["response"],
1233
+ });
1234
+ }
1235
+ if (_response.error.reason === "status-code") {
1236
+ switch (_response.error.statusCode) {
1237
+ case 422:
1238
+ throw new Letta.UnprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
1239
+ unrecognizedObjectKeys: "passthrough",
1240
+ allowUnrecognizedUnionMembers: true,
1241
+ allowUnrecognizedEnumValues: true,
1242
+ skipValidation: true,
1243
+ breadcrumbsPrefix: ["response"],
1244
+ }));
1245
+ default:
1246
+ throw new errors.LettaError({
1247
+ statusCode: _response.error.statusCode,
1248
+ body: _response.error.body,
1249
+ });
1250
+ }
1251
+ }
1252
+ switch (_response.error.reason) {
1253
+ case "non-json":
1254
+ throw new errors.LettaError({
1255
+ statusCode: _response.error.statusCode,
1256
+ body: _response.error.rawBody,
1257
+ });
1258
+ case "timeout":
1259
+ throw new errors.LettaTimeoutError("Timeout exceeded when calling PATCH /v1/tools/mcp/servers/{mcp_server_name}.");
1260
+ case "unknown":
1261
+ throw new errors.LettaError({
1262
+ message: _response.error.errorMessage,
1263
+ });
1264
+ }
1265
+ });
1266
+ }
1200
1267
  _getCustomAuthorizationHeaders() {
1201
1268
  return __awaiter(this, void 0, void 0, function* () {
1202
1269
  const tokenValue = yield core.Supplier.get(this._options.token);
@@ -2,4 +2,4 @@
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
4
  import * as Letta from "../../../index";
5
- export type AddMcpServerRequest = Letta.StdioServerConfig | Letta.SseServerConfig;
5
+ export type AddMcpServerRequest = Letta.StdioServerConfig | Letta.SseServerConfig | Letta.StreamableHttpServerConfig;
@@ -2,4 +2,4 @@
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
4
  import * as Letta from "../../../index";
5
- export type AddMcpServerResponseItem = Letta.StdioServerConfig | Letta.SseServerConfig;
5
+ export type AddMcpServerResponseItem = Letta.StdioServerConfig | Letta.SseServerConfig | Letta.StreamableHttpServerConfig;
@@ -2,4 +2,4 @@
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
4
  import * as Letta from "../../../index";
5
- export type DeleteMcpServerResponseItem = Letta.StdioServerConfig | Letta.SseServerConfig;
5
+ export type DeleteMcpServerResponseItem = Letta.StdioServerConfig | Letta.SseServerConfig | Letta.StreamableHttpServerConfig;
@@ -2,4 +2,4 @@
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
4
  import * as Letta from "../../../index";
5
- export type ListMcpServersResponseValue = Letta.SseServerConfig | Letta.StdioServerConfig;
5
+ export type ListMcpServersResponseValue = Letta.SseServerConfig | Letta.StdioServerConfig | Letta.StreamableHttpServerConfig;
@@ -0,0 +1,5 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Letta from "../../../index";
5
+ export type UpdateMcpServerRequest = Letta.UpdateSsemcpServer | Letta.UpdateStreamableHttpmcpServer;
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,5 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Letta from "../../../index";
5
+ export type UpdateMcpServerResponse = Letta.StdioServerConfig | Letta.SseServerConfig | Letta.StreamableHttpServerConfig;
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -2,3 +2,5 @@ export * from "./ListMcpServersResponseValue";
2
2
  export * from "./AddMcpServerRequest";
3
3
  export * from "./AddMcpServerResponseItem";
4
4
  export * from "./DeleteMcpServerResponseItem";
5
+ export * from "./UpdateMcpServerRequest";
6
+ export * from "./UpdateMcpServerResponse";
@@ -18,3 +18,5 @@ __exportStar(require("./ListMcpServersResponseValue"), exports);
18
18
  __exportStar(require("./AddMcpServerRequest"), exports);
19
19
  __exportStar(require("./AddMcpServerResponseItem"), exports);
20
20
  __exportStar(require("./DeleteMcpServerResponseItem"), exports);
21
+ __exportStar(require("./UpdateMcpServerRequest"), exports);
22
+ __exportStar(require("./UpdateMcpServerResponse"), exports);
@@ -80,7 +80,7 @@ class Voice {
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/voice-beta/${encodeURIComponent(agentId)}/chat/completions`),
82
82
  method: "POST",
83
- 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, "user-id": userId != null ? userId : undefined }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
83
+ 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, "user-id": userId != null ? userId : undefined }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
84
84
  contentType: "application/json",
85
85
  requestType: "json",
86
86
  body: serializers.voice.createVoiceChatCompletions.Request.jsonOrThrow(_body, {
@@ -71,4 +71,8 @@ export interface AgentState {
71
71
  enableSleeptime?: boolean;
72
72
  /** The multi-agent group that this agent manages */
73
73
  multiAgentGroup?: Letta.Group;
74
+ /** The timestamp when the agent last completed a run. */
75
+ lastRunCompletion?: Date;
76
+ /** The duration in milliseconds of the agent's last run. */
77
+ lastRunDurationMs?: number;
74
78
  }
@@ -2,4 +2,4 @@
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
4
  import * as Letta from "../index";
5
- export type AgentStateToolRulesItem = Letta.ConditionalToolRule | Letta.ChildToolRule | Letta.ContinueToolRule | Letta.TerminalToolRule | Letta.MaxCountPerStepToolRule | Letta.ParentToolRule | Letta.InitToolRule;
5
+ export type AgentStateToolRulesItem = Letta.ConditionalToolRule | Letta.ChildToolRule | Letta.ContinueToolRule | Letta.TerminalToolRule | Letta.MaxCountPerStepToolRule | Letta.ParentToolRule | Letta.RequiredBeforeExitToolRule | Letta.InitToolRule;
@@ -4,9 +4,8 @@
4
4
  /**
5
5
  * Status of the job.
6
6
  */
7
- export type JobStatus = "not_started" | "created" | "running" | "completed" | "failed" | "pending" | "cancelled" | "expired";
7
+ export type JobStatus = "created" | "running" | "completed" | "failed" | "pending" | "cancelled" | "expired";
8
8
  export declare const JobStatus: {
9
- readonly NotStarted: "not_started";
10
9
  readonly Created: "created";
11
10
  readonly Running: "running";
12
11
  readonly Completed: "completed";
@@ -5,7 +5,6 @@
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.JobStatus = void 0;
7
7
  exports.JobStatus = {
8
- NotStarted: "not_started",
9
8
  Created: "created",
10
9
  Running: "running",
11
10
  Completed: "completed",
@@ -1,6 +1,7 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
+ import * as Letta from "../index";
4
5
  export interface LettaRequestConfig {
5
6
  /** Whether the server should parse specific tool call arguments (default `send_message`) as `AssistantMessage` objects. */
6
7
  useAssistantMessage?: boolean;
@@ -8,4 +9,6 @@ export interface LettaRequestConfig {
8
9
  assistantMessageToolName?: string;
9
10
  /** The name of the message argument in the designated message tool. */
10
11
  assistantMessageToolKwarg?: string;
12
+ /** Only return specified message types in the response. If `None` (default) returns all messages. */
13
+ includeReturnMessageTypes?: Letta.MessageType[];
11
14
  }
@@ -11,10 +11,14 @@ export interface Provider {
11
11
  providerType: Letta.ProviderType;
12
12
  /** The category of the provider (base or byok) */
13
13
  providerCategory: Letta.ProviderCategory;
14
- /** API key used for requests to the provider. */
14
+ /** API key or secret key used for requests to the provider. */
15
15
  apiKey?: string;
16
16
  /** Base URL for the provider. */
17
17
  baseUrl?: string;
18
+ /** Access key used for requests to the provider. */
19
+ accessKey?: string;
20
+ /** Region used for requests to the provider. */
21
+ region?: string;
18
22
  /** The last update timestamp of the provider. */
19
23
  updatedAt?: Date;
20
24
  }
@@ -0,0 +1,14 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Letta from "../index";
5
+ export interface ProviderCheck {
6
+ /** The type of the provider. */
7
+ providerType: Letta.ProviderType;
8
+ /** API key or secret key used for requests to the provider. */
9
+ apiKey: string;
10
+ /** Access key used for requests to the provider. */
11
+ accessKey?: string;
12
+ /** Region used for requests to the provider. */
13
+ region?: string;
14
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,10 +1,9 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- export type ProviderType = "anthropic" | "bedrock" | "google_ai" | "google_vertex" | "openai" | "letta" | "deepseek" | "lmstudio_openai" | "xai" | "mistral" | "ollama" | "groq" | "together" | "azure" | "vllm";
4
+ export type ProviderType = "anthropic" | "google_ai" | "google_vertex" | "openai" | "letta" | "deepseek" | "lmstudio_openai" | "xai" | "mistral" | "ollama" | "groq" | "together" | "azure" | "vllm" | "bedrock";
5
5
  export declare const ProviderType: {
6
6
  readonly Anthropic: "anthropic";
7
- readonly Bedrock: "bedrock";
8
7
  readonly GoogleAi: "google_ai";
9
8
  readonly GoogleVertex: "google_vertex";
10
9
  readonly Openai: "openai";
@@ -18,4 +17,5 @@ export declare const ProviderType: {
18
17
  readonly Together: "together";
19
18
  readonly Azure: "azure";
20
19
  readonly Vllm: "vllm";
20
+ readonly Bedrock: "bedrock";
21
21
  };
@@ -6,7 +6,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.ProviderType = void 0;
7
7
  exports.ProviderType = {
8
8
  Anthropic: "anthropic",
9
- Bedrock: "bedrock",
10
9
  GoogleAi: "google_ai",
11
10
  GoogleVertex: "google_vertex",
12
11
  Openai: "openai",
@@ -20,4 +19,5 @@ exports.ProviderType = {
20
19
  Together: "together",
21
20
  Azure: "azure",
22
21
  Vllm: "vllm",
22
+ Bedrock: "bedrock",
23
23
  };
@@ -0,0 +1,13 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * Represents a tool rule configuration where this tool must be called before the agent loop can exit.
6
+ */
7
+ export interface RequiredBeforeExitToolRule {
8
+ /** The name of the tool. Must exist in the database for the user's organization. */
9
+ toolName: string;
10
+ type: "required_before_exit";
11
+ /** Optional Jinja2 template for generating agent prompt about this tool rule. */
12
+ promptTemplate?: string;
13
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,27 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Letta from "../index";
5
+ /**
6
+ * Configuration for an MCP server using Streamable HTTP
7
+ *
8
+ * Authentication can be provided in multiple ways:
9
+ * 1. Using auth_header + auth_token: Will add a specific header with the token
10
+ * Example: auth_header="Authorization", auth_token="Bearer abc123"
11
+ *
12
+ * 2. Using the custom_headers dict: For more complex authentication scenarios
13
+ * Example: custom_headers={"X-API-Key": "abc123", "X-Custom-Header": "value"}
14
+ */
15
+ export interface StreamableHttpServerConfig {
16
+ /** The name of the server */
17
+ serverName: string;
18
+ type?: Letta.McpServerType;
19
+ /** The URL path for the streamable HTTP server (e.g., 'example/mcp') */
20
+ serverUrl: string;
21
+ /** The name of the authentication header (e.g., 'Authorization') */
22
+ authHeader?: string;
23
+ /** The authentication token or API key value */
24
+ authToken?: string;
25
+ /** Custom HTTP headers to include with streamable HTTP requests */
26
+ customHeaders?: Record<string, string | undefined>;
27
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,14 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * Update an SSE MCP server
6
+ */
7
+ export interface UpdateSsemcpServer {
8
+ /** The name of the server */
9
+ serverName?: string;
10
+ /** The URL of the server (MCP SSE client will connect to this URL) */
11
+ serverUrl?: string;
12
+ /** The access token or API key for the MCP server (used for SSE authentication) */
13
+ token?: string;
14
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,16 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * Update a Streamable HTTP MCP server
6
+ */
7
+ export interface UpdateStreamableHttpmcpServer {
8
+ /** The name of the server */
9
+ serverName?: string;
10
+ /** The URL path for the streamable HTTP server (e.g., 'example/mcp') */
11
+ serverUrl?: string;
12
+ /** The name of the authentication header (e.g., 'Authorization') */
13
+ authHeader?: string;
14
+ /** The authentication token or API key value */
15
+ authToken?: string;
16
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -159,12 +159,14 @@ export * from "./Passage";
159
159
  export * from "./PipRequirement";
160
160
  export * from "./Provider";
161
161
  export * from "./ProviderCategory";
162
+ export * from "./ProviderCheck";
162
163
  export * from "./ProviderTrace";
163
164
  export * from "./ProviderType";
164
165
  export * from "./ReasoningContent";
165
166
  export * from "./ReasoningMessageSource";
166
167
  export * from "./ReasoningMessage";
167
168
  export * from "./RedactedReasoningContent";
169
+ export * from "./RequiredBeforeExitToolRule";
168
170
  export * from "./ResponseFormatJsonObject";
169
171
  export * from "./ResponseFormatJsonSchema";
170
172
  export * from "./ResponseFormatText";
@@ -187,6 +189,7 @@ export * from "./Source";
187
189
  export * from "./StdioServerConfig";
188
190
  export * from "./Step";
189
191
  export * from "./StopReasonType";
192
+ export * from "./StreamableHttpServerConfig";
190
193
  export * from "./SupervisorManager";
191
194
  export * from "./SupervisorManagerUpdate";
192
195
  export * from "./SystemMessage";
@@ -214,6 +217,8 @@ export * from "./ToolType";
214
217
  export * from "./UpdateAssistantMessageContent";
215
218
  export * from "./UpdateAssistantMessage";
216
219
  export * from "./UpdateReasoningMessage";
220
+ export * from "./UpdateSsemcpServer";
221
+ export * from "./UpdateStreamableHttpmcpServer";
217
222
  export * from "./UpdateSystemMessage";
218
223
  export * from "./UpdateUserMessageContent";
219
224
  export * from "./UpdateUserMessage";