@letta-ai/letta-client 0.1.4 → 0.1.7

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 (559) hide show
  1. package/Client.d.ts +3 -0
  2. package/Client.js +5 -0
  3. package/api/resources/agents/client/Client.d.ts +14 -125
  4. package/api/resources/agents/client/Client.js +31 -568
  5. package/{dist/api/resources/agents/client/requests/AgentsSearchDeployedAgentsRequest.d.ts → api/resources/agents/client/requests/AgentsSearchRequest.d.ts} +3 -3
  6. package/api/resources/agents/client/requests/CreateAgentRequest.d.ts +2 -1
  7. package/api/resources/agents/client/requests/index.d.ts +1 -4
  8. package/api/resources/agents/resources/archivalMemory/client/Client.js +4 -4
  9. package/api/resources/agents/resources/context/client/Client.js +1 -1
  10. package/api/resources/agents/resources/coreMemory/client/Client.d.ts +123 -0
  11. package/api/resources/agents/resources/coreMemory/client/Client.js +525 -0
  12. package/api/resources/agents/resources/index.d.ts +6 -2
  13. package/api/resources/agents/resources/index.js +7 -3
  14. package/api/resources/agents/resources/{memory → memoryVariables}/client/Client.d.ts +11 -13
  15. package/api/resources/agents/resources/{memory → memoryVariables}/client/Client.js +15 -25
  16. package/api/resources/agents/resources/memoryVariables/index.d.ts +2 -0
  17. package/api/resources/agents/resources/memoryVariables/index.js +18 -0
  18. package/api/resources/agents/{types/AgentsGetAgentVariablesResponse.d.ts → resources/memoryVariables/types/MemoryVariablesGetResponse.d.ts} +1 -1
  19. package/api/resources/agents/resources/memoryVariables/types/index.d.ts +1 -0
  20. package/api/resources/agents/resources/memoryVariables/types/index.js +17 -0
  21. package/api/resources/agents/resources/messages/client/Client.d.ts +19 -0
  22. package/api/resources/agents/resources/messages/client/Client.js +77 -4
  23. package/api/resources/agents/resources/messages/client/requests/LettaStreamingRequest.d.ts +2 -0
  24. package/api/resources/agents/resources/recallMemory/client/Client.js +1 -1
  25. package/api/resources/agents/resources/sources/client/Client.js +1 -1
  26. package/api/resources/agents/resources/templates/client/Client.d.ts +82 -0
  27. package/{dist/api/resources/agents/resources/memoryBlocks → api/resources/agents/resources/templates}/client/Client.js +126 -45
  28. package/api/resources/agents/resources/templates/client/index.d.ts +1 -0
  29. package/api/resources/agents/resources/templates/client/index.js +17 -0
  30. package/api/resources/agents/{client/requests/AgentsCreateTemplateFromAgentRequest.d.ts → resources/templates/client/requests/TemplatesCreateRequest.d.ts} +1 -1
  31. package/api/resources/agents/{client/requests/AgentsCreateVersionRequest.d.ts → resources/templates/client/requests/TemplatesCreateVersionRequest.d.ts} +1 -1
  32. package/api/resources/agents/{client/requests/AgentsMigrateRequest.d.ts → resources/templates/client/requests/TemplatesMigrateRequest.d.ts} +1 -1
  33. package/api/resources/agents/resources/templates/client/requests/index.d.ts +3 -0
  34. package/api/resources/agents/resources/templates/index.d.ts +2 -0
  35. package/api/resources/agents/resources/templates/index.js +18 -0
  36. package/api/resources/agents/{types/AgentsMigrateResponse.d.ts → resources/templates/types/TemplatesMigrateResponse.d.ts} +1 -1
  37. package/api/resources/agents/resources/templates/types/index.d.ts +1 -0
  38. package/api/resources/agents/resources/templates/types/index.js +17 -0
  39. package/api/resources/agents/resources/tools/client/Client.js +3 -3
  40. package/api/resources/agents/types/AgentsSearchRequestCombinator.d.ts +8 -0
  41. package/api/resources/agents/types/{AgentsSearchDeployedAgentsRequestCombinator.js → AgentsSearchRequestCombinator.js} +2 -2
  42. package/api/resources/agents/types/AgentsSearchRequestSearchItem.d.ts +16 -0
  43. package/api/resources/agents/types/AgentsSearchRequestSearchItemName.d.ts +8 -0
  44. package/api/resources/agents/types/AgentsSearchRequestSearchItemNameOperator.d.ts +9 -0
  45. package/api/resources/agents/types/{AgentsSearchDeployedAgentsRequestSearchItemNameOperator.js → AgentsSearchRequestSearchItemNameOperator.js} +2 -2
  46. package/api/resources/agents/types/AgentsSearchRequestSearchItemOrderBy.d.ts +8 -0
  47. package/api/resources/agents/types/AgentsSearchRequestSearchItemOrderByDirection.d.ts +8 -0
  48. package/{dist/api/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItemOrderByDirection.js → api/resources/agents/types/AgentsSearchRequestSearchItemOrderByDirection.js} +2 -2
  49. package/api/resources/agents/types/AgentsSearchRequestSearchItemOrderByValue.d.ts +8 -0
  50. package/{dist/api/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItemOrderByValue.js → api/resources/agents/types/AgentsSearchRequestSearchItemOrderByValue.js} +2 -2
  51. package/api/resources/agents/types/{AgentsSearchDeployedAgentsRequestSearchItemVersion.d.ts → AgentsSearchRequestSearchItemVersion.d.ts} +1 -1
  52. package/api/resources/agents/types/index.d.ts +8 -10
  53. package/api/resources/agents/types/index.js +8 -10
  54. package/api/resources/blocks/client/Client.js +7 -7
  55. package/api/resources/health/client/Client.js +1 -1
  56. package/api/resources/index.d.ts +2 -0
  57. package/api/resources/index.js +3 -1
  58. package/api/resources/jobs/client/Client.js +4 -4
  59. package/api/resources/models/client/Client.js +2 -2
  60. package/api/resources/providers/client/Client.d.ts +86 -0
  61. package/api/resources/providers/client/Client.js +336 -0
  62. package/api/resources/providers/client/index.d.ts +1 -0
  63. package/api/resources/providers/client/index.js +17 -0
  64. package/api/resources/providers/client/requests/DeleteProviderRequest.d.ts +15 -0
  65. package/api/resources/providers/client/requests/ListProvidersRequest.d.ts +11 -0
  66. package/api/resources/providers/client/requests/ProviderCreate.d.ts +16 -0
  67. package/api/resources/providers/client/requests/ProviderUpdate.d.ts +16 -0
  68. package/api/resources/providers/client/requests/index.d.ts +4 -0
  69. package/api/resources/sources/client/Client.js +8 -8
  70. package/api/resources/sources/resources/files/client/Client.js +3 -3
  71. package/api/resources/sources/resources/passages/client/Client.js +1 -1
  72. package/api/resources/tools/client/Client.d.ts +3 -1
  73. package/api/resources/tools/client/Client.js +15 -13
  74. package/api/resources/tools/client/requests/ToolRunFromSource.d.ts +7 -3
  75. package/api/resources/tools/client/requests/ToolUpdate.d.ts +2 -0
  76. package/api/types/AgentEnvironmentVariable.d.ts +0 -2
  77. package/api/types/AgentState.d.ts +1 -3
  78. package/api/types/AgentType.d.ts +1 -2
  79. package/api/types/AgentType.js +0 -1
  80. package/api/types/Block.d.ts +0 -2
  81. package/api/types/FileMetadata.d.ts +0 -2
  82. package/api/types/Job.d.ts +0 -2
  83. package/api/types/LettaRequest.d.ts +2 -0
  84. package/api/types/LettaSchemasMessageMessage.d.ts +0 -2
  85. package/api/types/LettaSchemasToolTool.d.ts +4 -3
  86. package/api/types/Passage.d.ts +0 -2
  87. package/api/types/Provider.d.ts +13 -0
  88. package/api/types/SandboxConfig.d.ts +0 -2
  89. package/api/types/SandboxEnvironmentVariable.d.ts +0 -2
  90. package/api/types/Source.d.ts +0 -2
  91. package/api/types/ToolType.d.ts +9 -0
  92. package/api/types/ToolType.js +11 -0
  93. package/api/types/User.d.ts +0 -2
  94. package/api/types/UserCreate.d.ts +0 -2
  95. package/api/types/UserUpdate.d.ts +0 -2
  96. package/api/types/index.d.ts +2 -0
  97. package/api/types/index.js +2 -0
  98. package/dist/Client.d.ts +3 -0
  99. package/dist/Client.js +5 -0
  100. package/dist/api/resources/agents/client/Client.d.ts +14 -125
  101. package/dist/api/resources/agents/client/Client.js +31 -568
  102. package/{api/resources/agents/client/requests/AgentsSearchDeployedAgentsRequest.d.ts → dist/api/resources/agents/client/requests/AgentsSearchRequest.d.ts} +3 -3
  103. package/dist/api/resources/agents/client/requests/CreateAgentRequest.d.ts +2 -1
  104. package/dist/api/resources/agents/client/requests/index.d.ts +1 -4
  105. package/dist/api/resources/agents/resources/archivalMemory/client/Client.js +4 -4
  106. package/dist/api/resources/agents/resources/context/client/Client.js +1 -1
  107. package/dist/api/resources/agents/resources/coreMemory/client/Client.d.ts +123 -0
  108. package/dist/api/resources/agents/resources/coreMemory/client/Client.js +525 -0
  109. package/dist/api/resources/agents/resources/index.d.ts +6 -2
  110. package/dist/api/resources/agents/resources/index.js +7 -3
  111. package/dist/api/resources/agents/resources/{memory → memoryVariables}/client/Client.d.ts +11 -13
  112. package/dist/api/resources/agents/resources/{memory → memoryVariables}/client/Client.js +15 -25
  113. package/dist/api/resources/agents/resources/memoryVariables/index.d.ts +2 -0
  114. package/dist/api/resources/agents/resources/memoryVariables/index.js +18 -0
  115. package/dist/api/resources/agents/{types/AgentsGetAgentVariablesResponse.d.ts → resources/memoryVariables/types/MemoryVariablesGetResponse.d.ts} +1 -1
  116. package/dist/api/resources/agents/resources/memoryVariables/types/index.d.ts +1 -0
  117. package/dist/api/resources/agents/resources/memoryVariables/types/index.js +17 -0
  118. package/dist/api/resources/agents/resources/messages/client/Client.d.ts +19 -0
  119. package/dist/api/resources/agents/resources/messages/client/Client.js +77 -4
  120. package/dist/api/resources/agents/resources/messages/client/requests/LettaStreamingRequest.d.ts +2 -0
  121. package/dist/api/resources/agents/resources/recallMemory/client/Client.js +1 -1
  122. package/dist/api/resources/agents/resources/sources/client/Client.js +1 -1
  123. package/dist/api/resources/agents/resources/templates/client/Client.d.ts +82 -0
  124. package/{api/resources/agents/resources/memoryBlocks → dist/api/resources/agents/resources/templates}/client/Client.js +126 -45
  125. package/dist/api/resources/agents/resources/templates/client/index.d.ts +1 -0
  126. package/dist/api/resources/agents/resources/templates/client/index.js +17 -0
  127. package/dist/api/resources/agents/{client/requests/AgentsCreateTemplateFromAgentRequest.d.ts → resources/templates/client/requests/TemplatesCreateRequest.d.ts} +1 -1
  128. package/dist/api/resources/agents/{client/requests/AgentsCreateVersionRequest.d.ts → resources/templates/client/requests/TemplatesCreateVersionRequest.d.ts} +1 -1
  129. package/dist/api/resources/agents/{client/requests/AgentsMigrateRequest.d.ts → resources/templates/client/requests/TemplatesMigrateRequest.d.ts} +1 -1
  130. package/dist/api/resources/agents/resources/templates/client/requests/index.d.ts +3 -0
  131. package/dist/api/resources/agents/resources/templates/client/requests/index.js +2 -0
  132. package/dist/api/resources/agents/resources/templates/index.d.ts +2 -0
  133. package/dist/api/resources/agents/resources/templates/index.js +18 -0
  134. package/dist/api/resources/agents/{types/AgentsMigrateResponse.d.ts → resources/templates/types/TemplatesMigrateResponse.d.ts} +1 -1
  135. package/dist/api/resources/agents/resources/templates/types/TemplatesMigrateResponse.js +5 -0
  136. package/dist/api/resources/agents/resources/templates/types/index.d.ts +1 -0
  137. package/dist/api/resources/agents/resources/templates/types/index.js +17 -0
  138. package/dist/api/resources/agents/resources/tools/client/Client.js +3 -3
  139. package/dist/api/resources/agents/types/AgentsSearchRequestCombinator.d.ts +8 -0
  140. package/dist/api/resources/agents/types/{AgentsSearchDeployedAgentsRequestCombinator.js → AgentsSearchRequestCombinator.js} +2 -2
  141. package/dist/api/resources/agents/types/AgentsSearchRequestSearchItem.d.ts +16 -0
  142. package/dist/api/resources/agents/types/AgentsSearchRequestSearchItem.js +5 -0
  143. package/dist/api/resources/agents/types/AgentsSearchRequestSearchItemName.d.ts +8 -0
  144. package/dist/api/resources/agents/types/AgentsSearchRequestSearchItemName.js +5 -0
  145. package/dist/api/resources/agents/types/AgentsSearchRequestSearchItemNameOperator.d.ts +9 -0
  146. package/dist/api/resources/agents/types/{AgentsSearchDeployedAgentsRequestSearchItemNameOperator.js → AgentsSearchRequestSearchItemNameOperator.js} +2 -2
  147. package/dist/api/resources/agents/types/AgentsSearchRequestSearchItemOrderBy.d.ts +8 -0
  148. package/dist/api/resources/agents/types/AgentsSearchRequestSearchItemOrderBy.js +5 -0
  149. package/dist/api/resources/agents/types/AgentsSearchRequestSearchItemOrderByDirection.d.ts +8 -0
  150. package/{api/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItemOrderByDirection.js → dist/api/resources/agents/types/AgentsSearchRequestSearchItemOrderByDirection.js} +2 -2
  151. package/dist/api/resources/agents/types/AgentsSearchRequestSearchItemOrderByValue.d.ts +8 -0
  152. package/{api/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItemOrderByValue.js → dist/api/resources/agents/types/AgentsSearchRequestSearchItemOrderByValue.js} +2 -2
  153. package/dist/api/resources/agents/types/{AgentsSearchDeployedAgentsRequestSearchItemVersion.d.ts → AgentsSearchRequestSearchItemVersion.d.ts} +1 -1
  154. package/dist/api/resources/agents/types/AgentsSearchRequestSearchItemVersion.js +5 -0
  155. package/dist/api/resources/agents/types/index.d.ts +8 -10
  156. package/dist/api/resources/agents/types/index.js +8 -10
  157. package/dist/api/resources/blocks/client/Client.js +7 -7
  158. package/dist/api/resources/health/client/Client.js +1 -1
  159. package/dist/api/resources/index.d.ts +2 -0
  160. package/dist/api/resources/index.js +3 -1
  161. package/dist/api/resources/jobs/client/Client.js +4 -4
  162. package/dist/api/resources/models/client/Client.js +2 -2
  163. package/dist/api/resources/providers/client/Client.d.ts +86 -0
  164. package/dist/api/resources/providers/client/Client.js +336 -0
  165. package/dist/api/resources/providers/client/index.d.ts +1 -0
  166. package/dist/api/resources/providers/client/index.js +17 -0
  167. package/dist/api/resources/providers/client/requests/DeleteProviderRequest.d.ts +15 -0
  168. package/dist/api/resources/providers/client/requests/DeleteProviderRequest.js +5 -0
  169. package/dist/api/resources/providers/client/requests/ListProvidersRequest.d.ts +11 -0
  170. package/dist/api/resources/providers/client/requests/ListProvidersRequest.js +5 -0
  171. package/dist/api/resources/providers/client/requests/ProviderCreate.d.ts +16 -0
  172. package/dist/api/resources/providers/client/requests/ProviderCreate.js +5 -0
  173. package/dist/api/resources/providers/client/requests/ProviderUpdate.d.ts +16 -0
  174. package/dist/api/resources/providers/client/requests/ProviderUpdate.js +5 -0
  175. package/dist/api/resources/providers/client/requests/index.d.ts +4 -0
  176. package/dist/api/resources/providers/client/requests/index.js +2 -0
  177. package/dist/api/resources/sources/client/Client.js +8 -8
  178. package/dist/api/resources/sources/resources/files/client/Client.js +3 -3
  179. package/dist/api/resources/sources/resources/passages/client/Client.js +1 -1
  180. package/dist/api/resources/tools/client/Client.d.ts +3 -1
  181. package/dist/api/resources/tools/client/Client.js +15 -13
  182. package/dist/api/resources/tools/client/requests/ToolRunFromSource.d.ts +7 -3
  183. package/dist/api/resources/tools/client/requests/ToolUpdate.d.ts +2 -0
  184. package/dist/api/types/AgentEnvironmentVariable.d.ts +0 -2
  185. package/dist/api/types/AgentState.d.ts +1 -3
  186. package/dist/api/types/AgentType.d.ts +1 -2
  187. package/dist/api/types/AgentType.js +0 -1
  188. package/dist/api/types/Block.d.ts +0 -2
  189. package/dist/api/types/FileMetadata.d.ts +0 -2
  190. package/dist/api/types/Job.d.ts +0 -2
  191. package/dist/api/types/LettaRequest.d.ts +2 -0
  192. package/dist/api/types/LettaSchemasMessageMessage.d.ts +0 -2
  193. package/dist/api/types/LettaSchemasToolTool.d.ts +4 -3
  194. package/dist/api/types/Passage.d.ts +0 -2
  195. package/dist/api/types/Provider.d.ts +13 -0
  196. package/dist/api/types/Provider.js +5 -0
  197. package/dist/api/types/SandboxConfig.d.ts +0 -2
  198. package/dist/api/types/SandboxEnvironmentVariable.d.ts +0 -2
  199. package/dist/api/types/Source.d.ts +0 -2
  200. package/dist/api/types/ToolType.d.ts +9 -0
  201. package/dist/api/types/ToolType.js +11 -0
  202. package/dist/api/types/User.d.ts +0 -2
  203. package/dist/api/types/UserCreate.d.ts +0 -2
  204. package/dist/api/types/UserUpdate.d.ts +0 -2
  205. package/dist/api/types/index.d.ts +2 -0
  206. package/dist/api/types/index.js +2 -0
  207. package/dist/serialization/resources/agents/client/index.d.ts +0 -1
  208. package/dist/serialization/resources/agents/client/index.js +1 -2
  209. package/dist/serialization/resources/agents/client/requests/AgentsSearchRequest.d.ts +18 -0
  210. package/{serialization/resources/agents/client/requests/AgentsSearchDeployedAgentsRequest.js → dist/serialization/resources/agents/client/requests/AgentsSearchRequest.js} +6 -6
  211. package/dist/serialization/resources/agents/client/requests/CreateAgentRequest.d.ts +1 -1
  212. package/dist/serialization/resources/agents/client/requests/CreateAgentRequest.js +3 -1
  213. package/dist/serialization/resources/agents/client/requests/index.d.ts +1 -4
  214. package/dist/serialization/resources/agents/client/requests/index.js +3 -9
  215. package/dist/serialization/resources/agents/resources/coreMemory/client/getBlocks.d.ts +11 -0
  216. package/{serialization/resources/agents/client/getAgentMemoryBlocks.js → dist/serialization/resources/agents/resources/coreMemory/client/getBlocks.js} +2 -2
  217. package/dist/serialization/resources/agents/resources/{memory/resources/messages → coreMemory}/client/index.d.ts +1 -0
  218. package/{serialization/resources/agents/resources/memory/resources/messages → dist/serialization/resources/agents/resources/coreMemory}/client/index.js +2 -1
  219. package/dist/serialization/resources/agents/resources/coreMemory/client/listInContext.d.ts +11 -0
  220. package/dist/serialization/resources/agents/resources/{memory/resources/messages → coreMemory}/client/listInContext.js +2 -2
  221. package/dist/serialization/resources/agents/resources/index.d.ts +6 -1
  222. package/dist/serialization/resources/agents/resources/index.js +7 -2
  223. package/dist/serialization/resources/agents/resources/memoryVariables/index.d.ts +1 -0
  224. package/dist/serialization/resources/agents/resources/memoryVariables/index.js +17 -0
  225. package/dist/serialization/resources/agents/resources/memoryVariables/types/MemoryVariablesGetResponse.d.ts +12 -0
  226. package/dist/serialization/resources/agents/{types/AgentsGetAgentVariablesResponse.js → resources/memoryVariables/types/MemoryVariablesGetResponse.js} +3 -3
  227. package/dist/serialization/resources/agents/resources/memoryVariables/types/index.d.ts +1 -0
  228. package/dist/serialization/resources/agents/resources/memoryVariables/types/index.js +17 -0
  229. package/dist/serialization/resources/agents/resources/messages/client/requests/LettaStreamingRequest.d.ts +1 -0
  230. package/dist/serialization/resources/agents/resources/messages/client/requests/LettaStreamingRequest.js +1 -0
  231. package/dist/serialization/resources/agents/resources/templates/client/index.d.ts +1 -0
  232. package/dist/serialization/resources/agents/resources/templates/client/index.js +17 -0
  233. package/dist/serialization/resources/agents/resources/templates/client/requests/TemplatesCreateRequest.d.ts +12 -0
  234. package/{serialization/resources/agents/client/requests/AgentsCreateTemplateFromAgentRequest.js → dist/serialization/resources/agents/resources/templates/client/requests/TemplatesCreateRequest.js} +3 -3
  235. package/dist/serialization/resources/agents/resources/templates/client/requests/TemplatesCreateVersionRequest.d.ts +12 -0
  236. package/dist/serialization/resources/agents/{client/requests/AgentsCreateVersionRequest.js → resources/templates/client/requests/TemplatesCreateVersionRequest.js} +3 -3
  237. package/dist/serialization/resources/agents/resources/templates/client/requests/TemplatesMigrateRequest.d.ts +14 -0
  238. package/{serialization/resources/agents/client/requests/AgentsMigrateRequest.js → dist/serialization/resources/agents/resources/templates/client/requests/TemplatesMigrateRequest.js} +3 -3
  239. package/dist/serialization/resources/agents/resources/templates/client/requests/index.d.ts +3 -0
  240. package/dist/serialization/resources/agents/resources/templates/client/requests/index.js +9 -0
  241. package/dist/serialization/resources/agents/resources/templates/index.d.ts +2 -0
  242. package/dist/serialization/resources/agents/resources/templates/index.js +18 -0
  243. package/dist/serialization/resources/agents/resources/templates/types/TemplatesMigrateResponse.d.ts +12 -0
  244. package/dist/serialization/resources/agents/resources/templates/types/TemplatesMigrateResponse.js +33 -0
  245. package/dist/serialization/resources/agents/resources/templates/types/index.d.ts +1 -0
  246. package/dist/serialization/resources/agents/resources/templates/types/index.js +17 -0
  247. package/dist/serialization/resources/agents/types/AgentsSearchRequestCombinator.d.ts +10 -0
  248. package/dist/serialization/resources/agents/types/{AgentsMigrateResponse.js → AgentsSearchRequestCombinator.js} +2 -4
  249. package/dist/serialization/resources/agents/types/AgentsSearchRequestSearchItem.d.ts +22 -0
  250. package/dist/serialization/resources/agents/types/{AgentsSearchDeployedAgentsRequestSearchItemOrderBy.js → AgentsSearchRequestSearchItem.js} +13 -6
  251. package/dist/serialization/resources/agents/types/AgentsSearchRequestSearchItemName.d.ts +14 -0
  252. package/dist/serialization/resources/agents/types/AgentsSearchRequestSearchItemName.js +35 -0
  253. package/dist/serialization/resources/agents/types/AgentsSearchRequestSearchItemNameOperator.d.ts +10 -0
  254. package/dist/serialization/resources/agents/types/AgentsSearchRequestSearchItemNameOperator.js +31 -0
  255. package/dist/serialization/resources/agents/types/AgentsSearchRequestSearchItemOrderBy.d.ts +15 -0
  256. package/dist/serialization/resources/agents/types/{AgentsSearchDeployedAgentsRequestSearchItemName.js → AgentsSearchRequestSearchItemOrderBy.js} +6 -5
  257. package/dist/serialization/resources/agents/types/AgentsSearchRequestSearchItemOrderByDirection.d.ts +10 -0
  258. package/dist/serialization/resources/agents/types/{AgentsSearchDeployedAgentsRequestCombinator.js → AgentsSearchRequestSearchItemOrderByDirection.js} +2 -2
  259. package/dist/serialization/resources/agents/types/AgentsSearchRequestSearchItemOrderByValue.d.ts +10 -0
  260. package/dist/serialization/resources/agents/types/AgentsSearchRequestSearchItemOrderByValue.js +31 -0
  261. package/dist/serialization/resources/agents/types/AgentsSearchRequestSearchItemVersion.d.ts +12 -0
  262. package/dist/serialization/resources/agents/types/{AgentsSearchDeployedAgentsRequestSearchItemVersion.js → AgentsSearchRequestSearchItemVersion.js} +2 -2
  263. package/dist/serialization/resources/agents/types/index.d.ts +8 -10
  264. package/dist/serialization/resources/agents/types/index.js +8 -10
  265. package/dist/serialization/resources/index.d.ts +2 -0
  266. package/dist/serialization/resources/index.js +3 -1
  267. package/dist/serialization/resources/providers/client/index.d.ts +2 -0
  268. package/dist/serialization/resources/{agents/resources/memory/resources → providers/client}/index.js +6 -2
  269. package/dist/serialization/resources/{agents/client/getAgentMemoryBlocks.d.ts → providers/client/listProviders.d.ts} +3 -3
  270. package/{serialization/resources/agents/types/AgentsMigrateResponse.js → dist/serialization/resources/providers/client/listProviders.js} +3 -4
  271. package/dist/serialization/resources/providers/client/requests/ProviderCreate.d.ts +13 -0
  272. package/dist/serialization/resources/providers/client/requests/ProviderCreate.js +34 -0
  273. package/dist/serialization/resources/providers/client/requests/ProviderUpdate.d.ts +13 -0
  274. package/dist/serialization/resources/providers/client/requests/ProviderUpdate.js +34 -0
  275. package/dist/serialization/resources/providers/client/requests/index.d.ts +2 -0
  276. package/dist/serialization/resources/providers/client/requests/index.js +7 -0
  277. package/dist/serialization/resources/tools/client/requests/ToolRunFromSource.d.ts +2 -1
  278. package/dist/serialization/resources/tools/client/requests/ToolRunFromSource.js +2 -1
  279. package/dist/serialization/resources/tools/client/requests/ToolUpdate.d.ts +1 -0
  280. package/dist/serialization/resources/tools/client/requests/ToolUpdate.js +1 -0
  281. package/dist/serialization/types/AgentEnvironmentVariable.d.ts +0 -1
  282. package/dist/serialization/types/AgentEnvironmentVariable.js +0 -1
  283. package/dist/serialization/types/AgentState.d.ts +1 -2
  284. package/dist/serialization/types/AgentState.js +1 -2
  285. package/dist/serialization/types/AgentType.d.ts +1 -1
  286. package/dist/serialization/types/AgentType.js +1 -7
  287. package/dist/serialization/types/Block.d.ts +0 -1
  288. package/dist/serialization/types/Block.js +0 -1
  289. package/dist/serialization/types/FileMetadata.d.ts +0 -1
  290. package/dist/serialization/types/FileMetadata.js +0 -1
  291. package/dist/serialization/types/Job.d.ts +0 -1
  292. package/dist/serialization/types/Job.js +0 -1
  293. package/dist/serialization/types/LettaRequest.d.ts +1 -0
  294. package/dist/serialization/types/LettaRequest.js +1 -0
  295. package/dist/serialization/types/LettaSchemasMessageMessage.d.ts +0 -1
  296. package/dist/serialization/types/LettaSchemasMessageMessage.js +0 -1
  297. package/dist/serialization/types/LettaSchemasToolTool.d.ts +3 -2
  298. package/dist/serialization/types/LettaSchemasToolTool.js +3 -2
  299. package/dist/serialization/types/Passage.d.ts +0 -1
  300. package/dist/serialization/types/Passage.js +0 -1
  301. package/dist/serialization/types/Provider.d.ts +15 -0
  302. package/dist/serialization/types/Provider.js +36 -0
  303. package/dist/serialization/types/SandboxConfig.d.ts +0 -1
  304. package/dist/serialization/types/SandboxConfig.js +0 -1
  305. package/dist/serialization/types/SandboxEnvironmentVariable.d.ts +0 -1
  306. package/dist/serialization/types/SandboxEnvironmentVariable.js +0 -1
  307. package/dist/serialization/types/Source.d.ts +0 -1
  308. package/dist/serialization/types/Source.js +0 -1
  309. package/dist/serialization/types/ToolType.d.ts +10 -0
  310. package/dist/serialization/types/ToolType.js +35 -0
  311. package/dist/serialization/types/User.d.ts +0 -1
  312. package/dist/serialization/types/User.js +0 -1
  313. package/dist/serialization/types/UserCreate.d.ts +0 -1
  314. package/dist/serialization/types/UserCreate.js +0 -1
  315. package/dist/serialization/types/UserUpdate.d.ts +0 -1
  316. package/dist/serialization/types/UserUpdate.js +0 -1
  317. package/dist/serialization/types/index.d.ts +2 -0
  318. package/dist/serialization/types/index.js +2 -0
  319. package/dist/version.d.ts +1 -1
  320. package/dist/version.js +1 -1
  321. package/package.json +1 -1
  322. package/reference.md +589 -315
  323. package/serialization/resources/agents/client/index.d.ts +0 -1
  324. package/serialization/resources/agents/client/index.js +1 -2
  325. package/serialization/resources/agents/client/requests/AgentsSearchRequest.d.ts +18 -0
  326. package/{dist/serialization/resources/agents/client/requests/AgentsSearchDeployedAgentsRequest.js → serialization/resources/agents/client/requests/AgentsSearchRequest.js} +6 -6
  327. package/serialization/resources/agents/client/requests/CreateAgentRequest.d.ts +1 -1
  328. package/serialization/resources/agents/client/requests/CreateAgentRequest.js +3 -1
  329. package/serialization/resources/agents/client/requests/index.d.ts +1 -4
  330. package/serialization/resources/agents/client/requests/index.js +3 -9
  331. package/serialization/resources/agents/resources/coreMemory/client/getBlocks.d.ts +11 -0
  332. package/{dist/serialization/resources/agents/client/getAgentMemoryBlocks.js → serialization/resources/agents/resources/coreMemory/client/getBlocks.js} +2 -2
  333. package/serialization/resources/agents/resources/{memory/resources/messages → coreMemory}/client/index.d.ts +1 -0
  334. package/{dist/serialization/resources/agents/resources/memory/resources/messages → serialization/resources/agents/resources/coreMemory}/client/index.js +2 -1
  335. package/serialization/resources/agents/resources/coreMemory/client/listInContext.d.ts +11 -0
  336. package/serialization/resources/agents/resources/{memory/resources/messages → coreMemory}/client/listInContext.js +2 -2
  337. package/serialization/resources/agents/resources/coreMemory/index.d.ts +1 -0
  338. package/serialization/resources/agents/resources/coreMemory/index.js +17 -0
  339. package/serialization/resources/agents/resources/index.d.ts +6 -1
  340. package/serialization/resources/agents/resources/index.js +7 -2
  341. package/serialization/resources/agents/resources/memoryVariables/index.d.ts +1 -0
  342. package/serialization/resources/agents/resources/memoryVariables/index.js +17 -0
  343. package/serialization/resources/agents/resources/memoryVariables/types/MemoryVariablesGetResponse.d.ts +12 -0
  344. package/serialization/resources/agents/{types/AgentsGetAgentVariablesResponse.js → resources/memoryVariables/types/MemoryVariablesGetResponse.js} +3 -3
  345. package/serialization/resources/agents/resources/memoryVariables/types/index.d.ts +1 -0
  346. package/serialization/resources/agents/resources/memoryVariables/types/index.js +17 -0
  347. package/serialization/resources/agents/resources/messages/client/requests/LettaStreamingRequest.d.ts +1 -0
  348. package/serialization/resources/agents/resources/messages/client/requests/LettaStreamingRequest.js +1 -0
  349. package/serialization/resources/agents/resources/templates/client/index.d.ts +1 -0
  350. package/serialization/resources/agents/resources/templates/client/index.js +17 -0
  351. package/serialization/resources/agents/resources/templates/client/requests/TemplatesCreateRequest.d.ts +12 -0
  352. package/{dist/serialization/resources/agents/client/requests/AgentsCreateTemplateFromAgentRequest.js → serialization/resources/agents/resources/templates/client/requests/TemplatesCreateRequest.js} +3 -3
  353. package/serialization/resources/agents/resources/templates/client/requests/TemplatesCreateVersionRequest.d.ts +12 -0
  354. package/serialization/resources/agents/{client/requests/AgentsCreateVersionRequest.js → resources/templates/client/requests/TemplatesCreateVersionRequest.js} +3 -3
  355. package/serialization/resources/agents/resources/templates/client/requests/TemplatesMigrateRequest.d.ts +14 -0
  356. package/{dist/serialization/resources/agents/client/requests/AgentsMigrateRequest.js → serialization/resources/agents/resources/templates/client/requests/TemplatesMigrateRequest.js} +3 -3
  357. package/serialization/resources/agents/resources/templates/client/requests/index.d.ts +3 -0
  358. package/serialization/resources/agents/resources/templates/client/requests/index.js +9 -0
  359. package/serialization/resources/agents/resources/templates/index.d.ts +2 -0
  360. package/serialization/resources/agents/resources/templates/index.js +18 -0
  361. package/serialization/resources/agents/resources/templates/types/TemplatesMigrateResponse.d.ts +12 -0
  362. package/serialization/resources/agents/resources/templates/types/TemplatesMigrateResponse.js +33 -0
  363. package/serialization/resources/agents/resources/templates/types/index.d.ts +1 -0
  364. package/serialization/resources/agents/resources/templates/types/index.js +17 -0
  365. package/serialization/resources/agents/types/AgentsSearchRequestCombinator.d.ts +10 -0
  366. package/serialization/resources/agents/types/AgentsSearchRequestCombinator.js +31 -0
  367. package/serialization/resources/agents/types/AgentsSearchRequestSearchItem.d.ts +22 -0
  368. package/serialization/resources/agents/types/AgentsSearchRequestSearchItem.js +43 -0
  369. package/serialization/resources/agents/types/AgentsSearchRequestSearchItemName.d.ts +14 -0
  370. package/serialization/resources/agents/types/AgentsSearchRequestSearchItemName.js +35 -0
  371. package/serialization/resources/agents/types/AgentsSearchRequestSearchItemNameOperator.d.ts +10 -0
  372. package/serialization/resources/agents/types/AgentsSearchRequestSearchItemNameOperator.js +31 -0
  373. package/serialization/resources/agents/types/AgentsSearchRequestSearchItemOrderBy.d.ts +15 -0
  374. package/serialization/resources/agents/types/AgentsSearchRequestSearchItemOrderBy.js +36 -0
  375. package/serialization/resources/agents/types/AgentsSearchRequestSearchItemOrderByDirection.d.ts +10 -0
  376. package/serialization/resources/agents/types/AgentsSearchRequestSearchItemOrderByDirection.js +31 -0
  377. package/serialization/resources/agents/types/AgentsSearchRequestSearchItemOrderByValue.d.ts +10 -0
  378. package/serialization/resources/agents/types/AgentsSearchRequestSearchItemOrderByValue.js +31 -0
  379. package/serialization/resources/agents/types/AgentsSearchRequestSearchItemVersion.d.ts +12 -0
  380. package/serialization/resources/agents/types/{AgentsSearchDeployedAgentsRequestSearchItemVersion.js → AgentsSearchRequestSearchItemVersion.js} +2 -2
  381. package/serialization/resources/agents/types/index.d.ts +8 -10
  382. package/serialization/resources/agents/types/index.js +8 -10
  383. package/serialization/resources/index.d.ts +2 -0
  384. package/serialization/resources/index.js +3 -1
  385. package/serialization/resources/providers/client/index.d.ts +2 -0
  386. package/{api/resources/agents/resources/memory/resources → serialization/resources/providers/client}/index.js +6 -2
  387. package/serialization/resources/{agents/client/getAgentMemoryBlocks.d.ts → providers/client/listProviders.d.ts} +3 -3
  388. package/serialization/resources/providers/client/listProviders.js +32 -0
  389. package/serialization/resources/providers/client/requests/ProviderCreate.d.ts +13 -0
  390. package/serialization/resources/providers/client/requests/ProviderCreate.js +34 -0
  391. package/serialization/resources/providers/client/requests/ProviderUpdate.d.ts +13 -0
  392. package/serialization/resources/providers/client/requests/ProviderUpdate.js +34 -0
  393. package/serialization/resources/providers/client/requests/index.d.ts +2 -0
  394. package/serialization/resources/providers/client/requests/index.js +7 -0
  395. package/serialization/resources/providers/index.d.ts +1 -0
  396. package/serialization/resources/providers/index.js +17 -0
  397. package/serialization/resources/tools/client/requests/ToolRunFromSource.d.ts +2 -1
  398. package/serialization/resources/tools/client/requests/ToolRunFromSource.js +2 -1
  399. package/serialization/resources/tools/client/requests/ToolUpdate.d.ts +1 -0
  400. package/serialization/resources/tools/client/requests/ToolUpdate.js +1 -0
  401. package/serialization/types/AgentEnvironmentVariable.d.ts +0 -1
  402. package/serialization/types/AgentEnvironmentVariable.js +0 -1
  403. package/serialization/types/AgentState.d.ts +1 -2
  404. package/serialization/types/AgentState.js +1 -2
  405. package/serialization/types/AgentType.d.ts +1 -1
  406. package/serialization/types/AgentType.js +1 -7
  407. package/serialization/types/Block.d.ts +0 -1
  408. package/serialization/types/Block.js +0 -1
  409. package/serialization/types/FileMetadata.d.ts +0 -1
  410. package/serialization/types/FileMetadata.js +0 -1
  411. package/serialization/types/Job.d.ts +0 -1
  412. package/serialization/types/Job.js +0 -1
  413. package/serialization/types/LettaRequest.d.ts +1 -0
  414. package/serialization/types/LettaRequest.js +1 -0
  415. package/serialization/types/LettaSchemasMessageMessage.d.ts +0 -1
  416. package/serialization/types/LettaSchemasMessageMessage.js +0 -1
  417. package/serialization/types/LettaSchemasToolTool.d.ts +3 -2
  418. package/serialization/types/LettaSchemasToolTool.js +3 -2
  419. package/serialization/types/Passage.d.ts +0 -1
  420. package/serialization/types/Passage.js +0 -1
  421. package/serialization/types/Provider.d.ts +15 -0
  422. package/serialization/types/Provider.js +36 -0
  423. package/serialization/types/SandboxConfig.d.ts +0 -1
  424. package/serialization/types/SandboxConfig.js +0 -1
  425. package/serialization/types/SandboxEnvironmentVariable.d.ts +0 -1
  426. package/serialization/types/SandboxEnvironmentVariable.js +0 -1
  427. package/serialization/types/Source.d.ts +0 -1
  428. package/serialization/types/Source.js +0 -1
  429. package/serialization/types/ToolType.d.ts +10 -0
  430. package/serialization/types/ToolType.js +35 -0
  431. package/serialization/types/User.d.ts +0 -1
  432. package/serialization/types/User.js +0 -1
  433. package/serialization/types/UserCreate.d.ts +0 -1
  434. package/serialization/types/UserCreate.js +0 -1
  435. package/serialization/types/UserUpdate.d.ts +0 -1
  436. package/serialization/types/UserUpdate.js +0 -1
  437. package/serialization/types/index.d.ts +2 -0
  438. package/serialization/types/index.js +2 -0
  439. package/version.d.ts +1 -1
  440. package/version.js +1 -1
  441. package/api/resources/agents/resources/memory/index.d.ts +0 -2
  442. package/api/resources/agents/resources/memory/index.js +0 -18
  443. package/api/resources/agents/resources/memory/resources/index.d.ts +0 -1
  444. package/api/resources/agents/resources/memory/resources/messages/client/Client.d.ts +0 -42
  445. package/api/resources/agents/resources/memory/resources/messages/client/Client.js +0 -124
  446. package/api/resources/agents/resources/memoryBlocks/client/Client.d.ts +0 -59
  447. package/api/resources/agents/types/AgentsSearchDeployedAgentsRequestCombinator.d.ts +0 -8
  448. package/api/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItem.d.ts +0 -16
  449. package/api/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItemName.d.ts +0 -8
  450. package/api/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItemNameOperator.d.ts +0 -9
  451. package/api/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItemOrderBy.d.ts +0 -8
  452. package/api/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItemOrderByDirection.d.ts +0 -8
  453. package/api/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItemOrderByValue.d.ts +0 -8
  454. package/dist/api/resources/agents/resources/memory/index.d.ts +0 -2
  455. package/dist/api/resources/agents/resources/memory/index.js +0 -18
  456. package/dist/api/resources/agents/resources/memory/resources/index.d.ts +0 -1
  457. package/dist/api/resources/agents/resources/memory/resources/index.js +0 -27
  458. package/dist/api/resources/agents/resources/memory/resources/messages/client/Client.d.ts +0 -42
  459. package/dist/api/resources/agents/resources/memory/resources/messages/client/Client.js +0 -124
  460. package/dist/api/resources/agents/resources/memory/resources/messages/client/index.d.ts +0 -1
  461. package/dist/api/resources/agents/resources/memoryBlocks/client/Client.d.ts +0 -59
  462. package/dist/api/resources/agents/resources/memoryBlocks/client/index.d.ts +0 -1
  463. package/dist/api/resources/agents/types/AgentsSearchDeployedAgentsRequestCombinator.d.ts +0 -8
  464. package/dist/api/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItem.d.ts +0 -16
  465. package/dist/api/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItemName.d.ts +0 -8
  466. package/dist/api/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItemNameOperator.d.ts +0 -9
  467. package/dist/api/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItemOrderBy.d.ts +0 -8
  468. package/dist/api/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItemOrderByDirection.d.ts +0 -8
  469. package/dist/api/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItemOrderByValue.d.ts +0 -8
  470. package/dist/serialization/resources/agents/client/requests/AgentsCreateTemplateFromAgentRequest.d.ts +0 -12
  471. package/dist/serialization/resources/agents/client/requests/AgentsCreateVersionRequest.d.ts +0 -12
  472. package/dist/serialization/resources/agents/client/requests/AgentsMigrateRequest.d.ts +0 -14
  473. package/dist/serialization/resources/agents/client/requests/AgentsSearchDeployedAgentsRequest.d.ts +0 -18
  474. package/dist/serialization/resources/agents/resources/memory/index.d.ts +0 -1
  475. package/dist/serialization/resources/agents/resources/memory/index.js +0 -17
  476. package/dist/serialization/resources/agents/resources/memory/resources/index.d.ts +0 -1
  477. package/dist/serialization/resources/agents/resources/memory/resources/messages/client/listInContext.d.ts +0 -11
  478. package/dist/serialization/resources/agents/types/AgentsGetAgentVariablesResponse.d.ts +0 -12
  479. package/dist/serialization/resources/agents/types/AgentsMigrateResponse.d.ts +0 -12
  480. package/dist/serialization/resources/agents/types/AgentsSearchDeployedAgentsRequestCombinator.d.ts +0 -10
  481. package/dist/serialization/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItem.d.ts +0 -22
  482. package/dist/serialization/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItem.js +0 -43
  483. package/dist/serialization/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItemName.d.ts +0 -14
  484. package/dist/serialization/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItemNameOperator.d.ts +0 -10
  485. package/dist/serialization/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItemNameOperator.js +0 -31
  486. package/dist/serialization/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItemOrderBy.d.ts +0 -15
  487. package/dist/serialization/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItemOrderByDirection.d.ts +0 -10
  488. package/dist/serialization/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItemOrderByDirection.js +0 -31
  489. package/dist/serialization/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItemOrderByValue.d.ts +0 -10
  490. package/dist/serialization/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItemOrderByValue.js +0 -31
  491. package/dist/serialization/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItemVersion.d.ts +0 -12
  492. package/serialization/resources/agents/client/requests/AgentsCreateTemplateFromAgentRequest.d.ts +0 -12
  493. package/serialization/resources/agents/client/requests/AgentsCreateVersionRequest.d.ts +0 -12
  494. package/serialization/resources/agents/client/requests/AgentsMigrateRequest.d.ts +0 -14
  495. package/serialization/resources/agents/client/requests/AgentsSearchDeployedAgentsRequest.d.ts +0 -18
  496. package/serialization/resources/agents/resources/memory/index.d.ts +0 -1
  497. package/serialization/resources/agents/resources/memory/index.js +0 -17
  498. package/serialization/resources/agents/resources/memory/resources/index.d.ts +0 -1
  499. package/serialization/resources/agents/resources/memory/resources/index.js +0 -27
  500. package/serialization/resources/agents/resources/memory/resources/messages/client/listInContext.d.ts +0 -11
  501. package/serialization/resources/agents/types/AgentsGetAgentVariablesResponse.d.ts +0 -12
  502. package/serialization/resources/agents/types/AgentsMigrateResponse.d.ts +0 -12
  503. package/serialization/resources/agents/types/AgentsSearchDeployedAgentsRequestCombinator.d.ts +0 -10
  504. package/serialization/resources/agents/types/AgentsSearchDeployedAgentsRequestCombinator.js +0 -31
  505. package/serialization/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItem.d.ts +0 -22
  506. package/serialization/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItem.js +0 -43
  507. package/serialization/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItemName.d.ts +0 -14
  508. package/serialization/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItemName.js +0 -35
  509. package/serialization/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItemNameOperator.d.ts +0 -10
  510. package/serialization/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItemNameOperator.js +0 -31
  511. package/serialization/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItemOrderBy.d.ts +0 -15
  512. package/serialization/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItemOrderBy.js +0 -36
  513. package/serialization/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItemOrderByDirection.d.ts +0 -10
  514. package/serialization/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItemOrderByDirection.js +0 -31
  515. package/serialization/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItemOrderByValue.d.ts +0 -10
  516. package/serialization/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItemOrderByValue.js +0 -31
  517. package/serialization/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItemVersion.d.ts +0 -12
  518. /package/api/resources/agents/client/requests/{AgentsCreateTemplateFromAgentRequest.js → AgentsSearchRequest.js} +0 -0
  519. /package/api/resources/agents/resources/{memory → coreMemory}/client/index.d.ts +0 -0
  520. /package/api/resources/agents/resources/{memory → coreMemory}/client/index.js +0 -0
  521. /package/api/resources/agents/resources/{memory/resources/messages → coreMemory}/index.d.ts +0 -0
  522. /package/api/resources/agents/resources/{memory/resources/messages → coreMemory}/index.js +0 -0
  523. /package/api/resources/agents/resources/{memory/resources/messages → memoryVariables}/client/index.d.ts +0 -0
  524. /package/api/resources/agents/resources/{memory/resources/messages → memoryVariables}/client/index.js +0 -0
  525. /package/api/resources/agents/{client/requests/AgentsCreateVersionRequest.js → resources/memoryVariables/types/MemoryVariablesGetResponse.js} +0 -0
  526. /package/api/resources/agents/{client/requests/AgentsMigrateRequest.js → resources/templates/client/requests/TemplatesCreateRequest.js} +0 -0
  527. /package/api/resources/agents/{client/requests/AgentsSearchDeployedAgentsRequest.js → resources/templates/client/requests/TemplatesCreateVersionRequest.js} +0 -0
  528. /package/api/resources/agents/{types/AgentsGetAgentVariablesResponse.js → resources/templates/client/requests/TemplatesMigrateRequest.js} +0 -0
  529. /package/api/resources/agents/resources/{memoryBlocks/client → templates/client/requests}/index.js +0 -0
  530. /package/api/resources/agents/{types/AgentsMigrateResponse.js → resources/templates/types/TemplatesMigrateResponse.js} +0 -0
  531. /package/api/resources/agents/types/{AgentsSearchDeployedAgentsRequestSearchItem.js → AgentsSearchRequestSearchItem.js} +0 -0
  532. /package/api/resources/agents/types/{AgentsSearchDeployedAgentsRequestSearchItemName.js → AgentsSearchRequestSearchItemName.js} +0 -0
  533. /package/api/resources/agents/types/{AgentsSearchDeployedAgentsRequestSearchItemOrderBy.js → AgentsSearchRequestSearchItemOrderBy.js} +0 -0
  534. /package/api/resources/agents/types/{AgentsSearchDeployedAgentsRequestSearchItemVersion.js → AgentsSearchRequestSearchItemVersion.js} +0 -0
  535. /package/{dist/api/resources/agents/client/requests/AgentsCreateTemplateFromAgentRequest.js → api/resources/providers/client/requests/DeleteProviderRequest.js} +0 -0
  536. /package/{dist/api/resources/agents/client/requests/AgentsCreateVersionRequest.js → api/resources/providers/client/requests/ListProvidersRequest.js} +0 -0
  537. /package/{dist/api/resources/agents/client/requests/AgentsMigrateRequest.js → api/resources/providers/client/requests/ProviderCreate.js} +0 -0
  538. /package/{dist/api/resources/agents/client/requests/AgentsSearchDeployedAgentsRequest.js → api/resources/providers/client/requests/ProviderUpdate.js} +0 -0
  539. /package/{dist/api/resources/agents/resources/memory/client → api/resources/providers/client/requests}/index.js +0 -0
  540. /package/api/resources/{agents/resources/memoryBlocks → providers}/index.d.ts +0 -0
  541. /package/api/resources/{agents/resources/memoryBlocks → providers}/index.js +0 -0
  542. /package/{dist/api/resources/agents/types/AgentsGetAgentVariablesResponse.js → api/types/Provider.js} +0 -0
  543. /package/dist/api/resources/agents/{types/AgentsMigrateResponse.js → client/requests/AgentsSearchRequest.js} +0 -0
  544. /package/{api/resources/agents/resources/memoryBlocks → dist/api/resources/agents/resources/coreMemory}/client/index.d.ts +0 -0
  545. /package/dist/api/resources/agents/resources/{memory/resources/messages → coreMemory}/client/index.js +0 -0
  546. /package/dist/api/resources/agents/resources/{memory/resources/messages → coreMemory}/index.d.ts +0 -0
  547. /package/dist/api/resources/agents/resources/{memory/resources/messages → coreMemory}/index.js +0 -0
  548. /package/dist/api/resources/agents/resources/{memory → memoryVariables}/client/index.d.ts +0 -0
  549. /package/dist/api/resources/agents/resources/{memoryBlocks → memoryVariables}/client/index.js +0 -0
  550. /package/dist/api/resources/agents/{types/AgentsSearchDeployedAgentsRequestSearchItem.js → resources/memoryVariables/types/MemoryVariablesGetResponse.js} +0 -0
  551. /package/dist/api/resources/agents/{types/AgentsSearchDeployedAgentsRequestSearchItemName.js → resources/templates/client/requests/TemplatesCreateRequest.js} +0 -0
  552. /package/dist/api/resources/agents/{types/AgentsSearchDeployedAgentsRequestSearchItemOrderBy.js → resources/templates/client/requests/TemplatesCreateVersionRequest.js} +0 -0
  553. /package/dist/api/resources/agents/{types/AgentsSearchDeployedAgentsRequestSearchItemVersion.js → resources/templates/client/requests/TemplatesMigrateRequest.js} +0 -0
  554. /package/dist/api/resources/{agents/resources/memoryBlocks → providers}/index.d.ts +0 -0
  555. /package/dist/api/resources/{agents/resources/memoryBlocks → providers}/index.js +0 -0
  556. /package/dist/serialization/resources/agents/resources/{memory/resources/messages → coreMemory}/index.d.ts +0 -0
  557. /package/dist/serialization/resources/agents/resources/{memory/resources/messages → coreMemory}/index.js +0 -0
  558. /package/{serialization/resources/agents/resources/memory/resources/messages → dist/serialization/resources/providers}/index.d.ts +0 -0
  559. /package/{serialization/resources/agents/resources/memory/resources/messages → dist/serialization/resources/providers}/index.js +0 -0
@@ -16,13 +16,11 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./CreateAgentRequestToolRulesItem"), exports);
18
18
  __exportStar(require("./UpdateAgentToolRulesItem"), exports);
19
- __exportStar(require("./AgentsSearchDeployedAgentsRequestSearchItemVersion"), exports);
20
- __exportStar(require("./AgentsSearchDeployedAgentsRequestSearchItemNameOperator"), exports);
21
- __exportStar(require("./AgentsSearchDeployedAgentsRequestSearchItemName"), exports);
22
- __exportStar(require("./AgentsSearchDeployedAgentsRequestSearchItemOrderByValue"), exports);
23
- __exportStar(require("./AgentsSearchDeployedAgentsRequestSearchItemOrderByDirection"), exports);
24
- __exportStar(require("./AgentsSearchDeployedAgentsRequestSearchItemOrderBy"), exports);
25
- __exportStar(require("./AgentsSearchDeployedAgentsRequestSearchItem"), exports);
26
- __exportStar(require("./AgentsSearchDeployedAgentsRequestCombinator"), exports);
27
- __exportStar(require("./AgentsMigrateResponse"), exports);
28
- __exportStar(require("./AgentsGetAgentVariablesResponse"), exports);
19
+ __exportStar(require("./AgentsSearchRequestSearchItemVersion"), exports);
20
+ __exportStar(require("./AgentsSearchRequestSearchItemNameOperator"), exports);
21
+ __exportStar(require("./AgentsSearchRequestSearchItemName"), exports);
22
+ __exportStar(require("./AgentsSearchRequestSearchItemOrderByValue"), exports);
23
+ __exportStar(require("./AgentsSearchRequestSearchItemOrderByDirection"), exports);
24
+ __exportStar(require("./AgentsSearchRequestSearchItemOrderBy"), exports);
25
+ __exportStar(require("./AgentsSearchRequestSearchItem"), exports);
26
+ __exportStar(require("./AgentsSearchRequestCombinator"), exports);
@@ -75,7 +75,7 @@ class Blocks {
75
75
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
76
76
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.LettaEnvironment.LettaCloud, "v1/blocks/"),
77
77
  method: "GET",
78
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.4", "User-Agent": "@letta-ai/letta-client/0.1.4", "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
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.7", "User-Agent": "@letta-ai/letta-client/0.1.7", "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
79
  contentType: "application/json",
80
80
  queryParameters: _queryParams,
81
81
  requestType: "json",
@@ -142,7 +142,7 @@ class Blocks {
142
142
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
143
143
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.LettaEnvironment.LettaCloud, "v1/blocks/"),
144
144
  method: "POST",
145
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.4", "User-Agent": "@letta-ai/letta-client/0.1.4", "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
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.7", "User-Agent": "@letta-ai/letta-client/0.1.7", "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),
146
146
  contentType: "application/json",
147
147
  requestType: "json",
148
148
  body: serializers.CreateBlock.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -206,7 +206,7 @@ class Blocks {
206
206
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
207
207
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.LettaEnvironment.LettaCloud, `v1/blocks/${encodeURIComponent(blockId)}`),
208
208
  method: "GET",
209
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.4", "User-Agent": "@letta-ai/letta-client/0.1.4", "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),
209
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.7", "User-Agent": "@letta-ai/letta-client/0.1.7", "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),
210
210
  contentType: "application/json",
211
211
  requestType: "json",
212
212
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -269,7 +269,7 @@ class Blocks {
269
269
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
270
270
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.LettaEnvironment.LettaCloud, `v1/blocks/${encodeURIComponent(blockId)}`),
271
271
  method: "DELETE",
272
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.4", "User-Agent": "@letta-ai/letta-client/0.1.4", "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),
272
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.7", "User-Agent": "@letta-ai/letta-client/0.1.7", "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),
273
273
  contentType: "application/json",
274
274
  requestType: "json",
275
275
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -333,7 +333,7 @@ class Blocks {
333
333
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
334
334
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.LettaEnvironment.LettaCloud, `v1/blocks/${encodeURIComponent(blockId)}`),
335
335
  method: "PATCH",
336
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.4", "User-Agent": "@letta-ai/letta-client/0.1.4", "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),
336
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.7", "User-Agent": "@letta-ai/letta-client/0.1.7", "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),
337
337
  contentType: "application/json",
338
338
  requestType: "json",
339
339
  body: serializers.BlockUpdate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -405,7 +405,7 @@ class Blocks {
405
405
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
406
406
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.LettaEnvironment.LettaCloud, `v1/blocks/${encodeURIComponent(blockId)}/attach`),
407
407
  method: "PATCH",
408
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.4", "User-Agent": "@letta-ai/letta-client/0.1.4", "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.7", "User-Agent": "@letta-ai/letta-client/0.1.7", "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
  queryParameters: _queryParams,
411
411
  requestType: "json",
@@ -471,7 +471,7 @@ class Blocks {
471
471
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
472
472
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.LettaEnvironment.LettaCloud, `v1/blocks/${encodeURIComponent(blockId)}/detach`),
473
473
  method: "PATCH",
474
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.4", "User-Agent": "@letta-ai/letta-client/0.1.4", "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),
474
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.7", "User-Agent": "@letta-ai/letta-client/0.1.7", "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
475
  contentType: "application/json",
476
476
  queryParameters: _queryParams,
477
477
  requestType: "json",
@@ -60,7 +60,7 @@ class Health {
60
60
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
61
61
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.LettaEnvironment.LettaCloud, "v1/health/"),
62
62
  method: "GET",
63
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.4", "User-Agent": "@letta-ai/letta-client/0.1.4", "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),
63
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.7", "User-Agent": "@letta-ai/letta-client/0.1.7", "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),
64
64
  contentType: "application/json",
65
65
  requestType: "json",
66
66
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -6,8 +6,10 @@ export * as models from "./models";
6
6
  export * as blocks from "./blocks";
7
7
  export * as jobs from "./jobs";
8
8
  export * as health from "./health";
9
+ export * as providers from "./providers";
9
10
  export * from "./tools/client/requests";
10
11
  export * from "./sources/client/requests";
11
12
  export * from "./agents/client/requests";
12
13
  export * from "./blocks/client/requests";
13
14
  export * from "./jobs/client/requests";
15
+ export * from "./providers/client/requests";
@@ -26,7 +26,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
26
26
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
27
27
  };
28
28
  Object.defineProperty(exports, "__esModule", { value: true });
29
- exports.health = exports.jobs = exports.blocks = exports.models = exports.sources = exports.tools = exports.agents = void 0;
29
+ exports.providers = exports.health = exports.jobs = exports.blocks = exports.models = exports.sources = exports.tools = exports.agents = void 0;
30
30
  exports.agents = __importStar(require("./agents"));
31
31
  __exportStar(require("./agents/types"), exports);
32
32
  exports.tools = __importStar(require("./tools"));
@@ -35,8 +35,10 @@ exports.models = __importStar(require("./models"));
35
35
  exports.blocks = __importStar(require("./blocks"));
36
36
  exports.jobs = __importStar(require("./jobs"));
37
37
  exports.health = __importStar(require("./health"));
38
+ exports.providers = __importStar(require("./providers"));
38
39
  __exportStar(require("./tools/client/requests"), exports);
39
40
  __exportStar(require("./sources/client/requests"), exports);
40
41
  __exportStar(require("./agents/client/requests"), exports);
41
42
  __exportStar(require("./blocks/client/requests"), exports);
42
43
  __exportStar(require("./jobs/client/requests"), exports);
44
+ __exportStar(require("./providers/client/requests"), exports);
@@ -71,7 +71,7 @@ class Jobs {
71
71
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
72
72
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.LettaEnvironment.LettaCloud, "v1/jobs/"),
73
73
  method: "GET",
74
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.4", "User-Agent": "@letta-ai/letta-client/0.1.4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
74
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.7", "User-Agent": "@letta-ai/letta-client/0.1.7", "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),
75
75
  contentType: "application/json",
76
76
  queryParameters: _queryParams,
77
77
  requestType: "json",
@@ -136,7 +136,7 @@ class Jobs {
136
136
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
137
137
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.LettaEnvironment.LettaCloud, "v1/jobs/active"),
138
138
  method: "GET",
139
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.4", "User-Agent": "@letta-ai/letta-client/0.1.4", "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),
139
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.7", "User-Agent": "@letta-ai/letta-client/0.1.7", "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),
140
140
  contentType: "application/json",
141
141
  requestType: "json",
142
142
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -201,7 +201,7 @@ class Jobs {
201
201
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
202
202
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.LettaEnvironment.LettaCloud, `v1/jobs/${encodeURIComponent(jobId)}`),
203
203
  method: "GET",
204
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.4", "User-Agent": "@letta-ai/letta-client/0.1.4", "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.7", "User-Agent": "@letta-ai/letta-client/0.1.7", "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
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -266,7 +266,7 @@ class Jobs {
266
266
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
267
267
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.LettaEnvironment.LettaCloud, `v1/jobs/${encodeURIComponent(jobId)}`),
268
268
  method: "DELETE",
269
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.4", "User-Agent": "@letta-ai/letta-client/0.1.4", "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),
269
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.7", "User-Agent": "@letta-ai/letta-client/0.1.7", "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),
270
270
  contentType: "application/json",
271
271
  requestType: "json",
272
272
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -60,7 +60,7 @@ class Models {
60
60
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
61
61
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.LettaEnvironment.LettaCloud, "v1/models/"),
62
62
  method: "GET",
63
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.4", "User-Agent": "@letta-ai/letta-client/0.1.4", "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),
63
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.7", "User-Agent": "@letta-ai/letta-client/0.1.7", "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),
64
64
  contentType: "application/json",
65
65
  requestType: "json",
66
66
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -109,7 +109,7 @@ class Models {
109
109
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
110
110
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.LettaEnvironment.LettaCloud, "v1/models/embedding"),
111
111
  method: "GET",
112
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.4", "User-Agent": "@letta-ai/letta-client/0.1.4", "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),
112
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.7", "User-Agent": "@letta-ai/letta-client/0.1.7", "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),
113
113
  contentType: "application/json",
114
114
  requestType: "json",
115
115
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -0,0 +1,86 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as environments from "../../../../environments";
5
+ import * as core from "../../../../core";
6
+ import * as Letta from "../../../index";
7
+ export declare namespace Providers {
8
+ interface Options {
9
+ environment?: core.Supplier<environments.LettaEnvironment | string>;
10
+ token?: core.Supplier<string | undefined>;
11
+ fetcher?: core.FetchFunction;
12
+ }
13
+ interface RequestOptions {
14
+ /** The maximum time to wait for a response in seconds. */
15
+ timeoutInSeconds?: number;
16
+ /** The number of times to retry the request. Defaults to 2. */
17
+ maxRetries?: number;
18
+ /** A hook to abort the request. */
19
+ abortSignal?: AbortSignal;
20
+ /** Additional headers to include in the request. */
21
+ headers?: Record<string, string>;
22
+ }
23
+ }
24
+ export declare class Providers {
25
+ protected readonly _options: Providers.Options;
26
+ constructor(_options?: Providers.Options);
27
+ /**
28
+ * Get a list of all custom providers in the database
29
+ *
30
+ * @param {Letta.ListProvidersRequest} request
31
+ * @param {Providers.RequestOptions} requestOptions - Request-specific configuration.
32
+ *
33
+ * @throws {@link Letta.UnprocessableEntityError}
34
+ *
35
+ * @example
36
+ * await client.providers.listProviders()
37
+ */
38
+ listProviders(request?: Letta.ListProvidersRequest, requestOptions?: Providers.RequestOptions): Promise<Letta.Provider[]>;
39
+ /**
40
+ * Create a new custom provider
41
+ *
42
+ * @param {Letta.ProviderCreate} request
43
+ * @param {Providers.RequestOptions} requestOptions - Request-specific configuration.
44
+ *
45
+ * @throws {@link Letta.UnprocessableEntityError}
46
+ *
47
+ * @example
48
+ * await client.providers.createProvider({
49
+ * name: "name",
50
+ * apiKey: "api_key"
51
+ * })
52
+ */
53
+ createProvider(request: Letta.ProviderCreate, requestOptions?: Providers.RequestOptions): Promise<Letta.Provider>;
54
+ /**
55
+ * Update an existing custom provider
56
+ *
57
+ * @param {Letta.ProviderUpdate} request
58
+ * @param {Providers.RequestOptions} requestOptions - Request-specific configuration.
59
+ *
60
+ * @throws {@link Letta.UnprocessableEntityError}
61
+ *
62
+ * @example
63
+ * await client.providers.updateProvider({
64
+ * id: "id",
65
+ * apiKey: "api_key"
66
+ * })
67
+ */
68
+ updateProvider(request: Letta.ProviderUpdate, requestOptions?: Providers.RequestOptions): Promise<Letta.Provider>;
69
+ /**
70
+ * Delete an existing custom provider
71
+ *
72
+ * @param {Letta.DeleteProviderRequest} request
73
+ * @param {Providers.RequestOptions} requestOptions - Request-specific configuration.
74
+ *
75
+ * @throws {@link Letta.UnprocessableEntityError}
76
+ *
77
+ * @example
78
+ * await client.providers.deleteProvider({
79
+ * providerId: "provider_id"
80
+ * })
81
+ */
82
+ deleteProvider(request: Letta.DeleteProviderRequest, requestOptions?: Providers.RequestOptions): Promise<unknown>;
83
+ protected _getCustomAuthorizationHeaders(): Promise<{
84
+ Authorization: string;
85
+ }>;
86
+ }
@@ -0,0 +1,336 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || function (mod) {
22
+ if (mod && mod.__esModule) return mod;
23
+ var result = {};
24
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
25
+ __setModuleDefault(result, mod);
26
+ return result;
27
+ };
28
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
29
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
30
+ return new (P || (P = Promise))(function (resolve, reject) {
31
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
32
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
33
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
34
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
35
+ });
36
+ };
37
+ var __importDefault = (this && this.__importDefault) || function (mod) {
38
+ return (mod && mod.__esModule) ? mod : { "default": mod };
39
+ };
40
+ Object.defineProperty(exports, "__esModule", { value: true });
41
+ exports.Providers = void 0;
42
+ const environments = __importStar(require("../../../../environments"));
43
+ const core = __importStar(require("../../../../core"));
44
+ const Letta = __importStar(require("../../../index"));
45
+ const url_join_1 = __importDefault(require("url-join"));
46
+ const serializers = __importStar(require("../../../../serialization/index"));
47
+ const errors = __importStar(require("../../../../errors/index"));
48
+ class Providers {
49
+ constructor(_options = {}) {
50
+ this._options = _options;
51
+ }
52
+ /**
53
+ * Get a list of all custom providers in the database
54
+ *
55
+ * @param {Letta.ListProvidersRequest} request
56
+ * @param {Providers.RequestOptions} requestOptions - Request-specific configuration.
57
+ *
58
+ * @throws {@link Letta.UnprocessableEntityError}
59
+ *
60
+ * @example
61
+ * await client.providers.listProviders()
62
+ */
63
+ listProviders(request = {}, requestOptions) {
64
+ var _a, _b;
65
+ return __awaiter(this, void 0, void 0, function* () {
66
+ const { cursor, limit } = request;
67
+ const _queryParams = {};
68
+ if (cursor != null) {
69
+ _queryParams["cursor"] = cursor;
70
+ }
71
+ if (limit != null) {
72
+ _queryParams["limit"] = limit.toString();
73
+ }
74
+ const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
75
+ url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.LettaEnvironment.LettaCloud, "v1/providers/"),
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.7", "User-Agent": "@letta-ai/letta-client/0.1.7", "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
+ contentType: "application/json",
79
+ queryParameters: _queryParams,
80
+ requestType: "json",
81
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
82
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
83
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
84
+ });
85
+ if (_response.ok) {
86
+ return serializers.providers.listProviders.Response.parseOrThrow(_response.body, {
87
+ unrecognizedObjectKeys: "passthrough",
88
+ allowUnrecognizedUnionMembers: true,
89
+ allowUnrecognizedEnumValues: true,
90
+ skipValidation: true,
91
+ breadcrumbsPrefix: ["response"],
92
+ });
93
+ }
94
+ if (_response.error.reason === "status-code") {
95
+ switch (_response.error.statusCode) {
96
+ case 422:
97
+ throw new Letta.UnprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
98
+ unrecognizedObjectKeys: "passthrough",
99
+ allowUnrecognizedUnionMembers: true,
100
+ allowUnrecognizedEnumValues: true,
101
+ skipValidation: true,
102
+ breadcrumbsPrefix: ["response"],
103
+ }));
104
+ default:
105
+ throw new errors.LettaError({
106
+ statusCode: _response.error.statusCode,
107
+ body: _response.error.body,
108
+ });
109
+ }
110
+ }
111
+ switch (_response.error.reason) {
112
+ case "non-json":
113
+ throw new errors.LettaError({
114
+ statusCode: _response.error.statusCode,
115
+ body: _response.error.rawBody,
116
+ });
117
+ case "timeout":
118
+ throw new errors.LettaTimeoutError("Timeout exceeded when calling GET /v1/providers/.");
119
+ case "unknown":
120
+ throw new errors.LettaError({
121
+ message: _response.error.errorMessage,
122
+ });
123
+ }
124
+ });
125
+ }
126
+ /**
127
+ * Create a new custom provider
128
+ *
129
+ * @param {Letta.ProviderCreate} request
130
+ * @param {Providers.RequestOptions} requestOptions - Request-specific configuration.
131
+ *
132
+ * @throws {@link Letta.UnprocessableEntityError}
133
+ *
134
+ * @example
135
+ * await client.providers.createProvider({
136
+ * name: "name",
137
+ * apiKey: "api_key"
138
+ * })
139
+ */
140
+ createProvider(request, requestOptions) {
141
+ var _a, _b;
142
+ return __awaiter(this, void 0, void 0, function* () {
143
+ const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
144
+ url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.LettaEnvironment.LettaCloud, "v1/providers/"),
145
+ method: "POST",
146
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.7", "User-Agent": "@letta-ai/letta-client/0.1.7", "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),
147
+ contentType: "application/json",
148
+ requestType: "json",
149
+ body: serializers.ProviderCreate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
150
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
151
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
152
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
153
+ });
154
+ if (_response.ok) {
155
+ return serializers.Provider.parseOrThrow(_response.body, {
156
+ unrecognizedObjectKeys: "passthrough",
157
+ allowUnrecognizedUnionMembers: true,
158
+ allowUnrecognizedEnumValues: true,
159
+ skipValidation: true,
160
+ breadcrumbsPrefix: ["response"],
161
+ });
162
+ }
163
+ if (_response.error.reason === "status-code") {
164
+ switch (_response.error.statusCode) {
165
+ case 422:
166
+ throw new Letta.UnprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
167
+ unrecognizedObjectKeys: "passthrough",
168
+ allowUnrecognizedUnionMembers: true,
169
+ allowUnrecognizedEnumValues: true,
170
+ skipValidation: true,
171
+ breadcrumbsPrefix: ["response"],
172
+ }));
173
+ default:
174
+ throw new errors.LettaError({
175
+ statusCode: _response.error.statusCode,
176
+ body: _response.error.body,
177
+ });
178
+ }
179
+ }
180
+ switch (_response.error.reason) {
181
+ case "non-json":
182
+ throw new errors.LettaError({
183
+ statusCode: _response.error.statusCode,
184
+ body: _response.error.rawBody,
185
+ });
186
+ case "timeout":
187
+ throw new errors.LettaTimeoutError("Timeout exceeded when calling POST /v1/providers/.");
188
+ case "unknown":
189
+ throw new errors.LettaError({
190
+ message: _response.error.errorMessage,
191
+ });
192
+ }
193
+ });
194
+ }
195
+ /**
196
+ * Update an existing custom provider
197
+ *
198
+ * @param {Letta.ProviderUpdate} request
199
+ * @param {Providers.RequestOptions} requestOptions - Request-specific configuration.
200
+ *
201
+ * @throws {@link Letta.UnprocessableEntityError}
202
+ *
203
+ * @example
204
+ * await client.providers.updateProvider({
205
+ * id: "id",
206
+ * apiKey: "api_key"
207
+ * })
208
+ */
209
+ updateProvider(request, requestOptions) {
210
+ var _a, _b;
211
+ return __awaiter(this, void 0, void 0, function* () {
212
+ const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
213
+ url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.LettaEnvironment.LettaCloud, "v1/providers/"),
214
+ method: "PUT",
215
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.7", "User-Agent": "@letta-ai/letta-client/0.1.7", "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),
216
+ contentType: "application/json",
217
+ requestType: "json",
218
+ body: serializers.ProviderUpdate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
219
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
220
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
221
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
222
+ });
223
+ if (_response.ok) {
224
+ return serializers.Provider.parseOrThrow(_response.body, {
225
+ unrecognizedObjectKeys: "passthrough",
226
+ allowUnrecognizedUnionMembers: true,
227
+ allowUnrecognizedEnumValues: true,
228
+ skipValidation: true,
229
+ breadcrumbsPrefix: ["response"],
230
+ });
231
+ }
232
+ if (_response.error.reason === "status-code") {
233
+ switch (_response.error.statusCode) {
234
+ case 422:
235
+ throw new Letta.UnprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
236
+ unrecognizedObjectKeys: "passthrough",
237
+ allowUnrecognizedUnionMembers: true,
238
+ allowUnrecognizedEnumValues: true,
239
+ skipValidation: true,
240
+ breadcrumbsPrefix: ["response"],
241
+ }));
242
+ default:
243
+ throw new errors.LettaError({
244
+ statusCode: _response.error.statusCode,
245
+ body: _response.error.body,
246
+ });
247
+ }
248
+ }
249
+ switch (_response.error.reason) {
250
+ case "non-json":
251
+ throw new errors.LettaError({
252
+ statusCode: _response.error.statusCode,
253
+ body: _response.error.rawBody,
254
+ });
255
+ case "timeout":
256
+ throw new errors.LettaTimeoutError("Timeout exceeded when calling PUT /v1/providers/.");
257
+ case "unknown":
258
+ throw new errors.LettaError({
259
+ message: _response.error.errorMessage,
260
+ });
261
+ }
262
+ });
263
+ }
264
+ /**
265
+ * Delete an existing custom provider
266
+ *
267
+ * @param {Letta.DeleteProviderRequest} request
268
+ * @param {Providers.RequestOptions} requestOptions - Request-specific configuration.
269
+ *
270
+ * @throws {@link Letta.UnprocessableEntityError}
271
+ *
272
+ * @example
273
+ * await client.providers.deleteProvider({
274
+ * providerId: "provider_id"
275
+ * })
276
+ */
277
+ deleteProvider(request, requestOptions) {
278
+ var _a, _b;
279
+ return __awaiter(this, void 0, void 0, function* () {
280
+ const { providerId } = request;
281
+ const _queryParams = {};
282
+ _queryParams["provider_id"] = providerId;
283
+ const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
284
+ url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.LettaEnvironment.LettaCloud, "v1/providers/"),
285
+ method: "DELETE",
286
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.7", "User-Agent": "@letta-ai/letta-client/0.1.7", "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),
287
+ contentType: "application/json",
288
+ queryParameters: _queryParams,
289
+ requestType: "json",
290
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
291
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
292
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
293
+ });
294
+ if (_response.ok) {
295
+ return _response.body;
296
+ }
297
+ if (_response.error.reason === "status-code") {
298
+ switch (_response.error.statusCode) {
299
+ case 422:
300
+ throw new Letta.UnprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
301
+ unrecognizedObjectKeys: "passthrough",
302
+ allowUnrecognizedUnionMembers: true,
303
+ allowUnrecognizedEnumValues: true,
304
+ skipValidation: true,
305
+ breadcrumbsPrefix: ["response"],
306
+ }));
307
+ default:
308
+ throw new errors.LettaError({
309
+ statusCode: _response.error.statusCode,
310
+ body: _response.error.body,
311
+ });
312
+ }
313
+ }
314
+ switch (_response.error.reason) {
315
+ case "non-json":
316
+ throw new errors.LettaError({
317
+ statusCode: _response.error.statusCode,
318
+ body: _response.error.rawBody,
319
+ });
320
+ case "timeout":
321
+ throw new errors.LettaTimeoutError("Timeout exceeded when calling DELETE /v1/providers/.");
322
+ case "unknown":
323
+ throw new errors.LettaError({
324
+ message: _response.error.errorMessage,
325
+ });
326
+ }
327
+ });
328
+ }
329
+ _getCustomAuthorizationHeaders() {
330
+ return __awaiter(this, void 0, void 0, function* () {
331
+ const tokenValue = yield core.Supplier.get(this._options.token);
332
+ return { Authorization: `Bearer ${tokenValue}` };
333
+ });
334
+ }
335
+ }
336
+ exports.Providers = Providers;
@@ -0,0 +1 @@
1
+ export * from "./requests";