@letta-ai/letta-client 0.1.17 → 0.1.19

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 (384) hide show
  1. package/Client.d.ts +3 -0
  2. package/Client.js +9 -4
  3. package/api/resources/agents/client/Client.js +7 -7
  4. package/api/resources/agents/client/requests/CreateAgentRequest.d.ts +6 -0
  5. package/api/resources/agents/resources/archivalMemory/client/Client.js +3 -3
  6. package/api/resources/agents/resources/context/client/Client.js +1 -1
  7. package/api/resources/agents/resources/coreMemory/client/Client.js +6 -6
  8. package/api/resources/agents/resources/memoryVariables/client/Client.js +1 -1
  9. package/api/resources/agents/resources/messages/client/Client.js +5 -5
  10. package/api/resources/agents/resources/sources/client/Client.js +3 -3
  11. package/api/resources/agents/resources/templates/client/Client.js +3 -3
  12. package/api/resources/agents/resources/tools/client/Client.js +3 -3
  13. package/api/resources/agents/types/CreateAgentRequestToolRulesItem.d.ts +1 -1
  14. package/api/resources/agents/types/UpdateAgentToolRulesItem.d.ts +1 -1
  15. package/api/resources/blocks/client/Client.js +6 -6
  16. package/api/resources/health/client/Client.js +1 -1
  17. package/api/resources/index.d.ts +2 -0
  18. package/api/resources/index.js +3 -1
  19. package/api/resources/jobs/client/Client.js +4 -4
  20. package/api/resources/models/client/Client.js +2 -2
  21. package/api/resources/providers/client/Client.js +4 -4
  22. package/api/resources/runs/client/Client.js +6 -6
  23. package/api/resources/sources/client/Client.js +6 -6
  24. package/api/resources/sources/resources/files/client/Client.js +3 -3
  25. package/api/resources/sources/resources/passages/client/Client.js +1 -1
  26. package/api/resources/steps/client/Client.d.ts +57 -0
  27. package/api/resources/steps/client/Client.js +224 -0
  28. package/api/resources/steps/client/index.d.ts +1 -0
  29. package/api/resources/steps/client/index.js +17 -0
  30. package/api/resources/steps/client/requests/ListStepsRequest.d.ts +37 -0
  31. package/api/resources/steps/client/requests/index.d.ts +1 -0
  32. package/api/resources/steps/client/requests/index.js +2 -0
  33. package/api/resources/steps/index.d.ts +1 -0
  34. package/api/resources/steps/index.js +17 -0
  35. package/api/resources/tag/client/Client.js +1 -1
  36. package/api/resources/templates/client/Client.js +1 -1
  37. package/api/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItem.d.ts +3 -0
  38. package/api/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemBaseTemplateId.d.ts +5 -0
  39. package/api/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemBaseTemplateIdItem.d.ts +4 -0
  40. package/api/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemProjectId.d.ts +5 -0
  41. package/api/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemProjectIdItem.d.ts +4 -0
  42. package/api/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemTemplateId.d.ts +5 -0
  43. package/api/resources/templates/types/{TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemItemItemChildOutputMappingRequireOutputMapping.d.ts → TemplatesCreateAgentsFromTemplateResponseAgentsItemTemplateIdItem.d.ts} +1 -1
  44. package/api/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemChildOutputMappingType.d.ts +1 -1
  45. package/api/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemChildrenType.d.ts +1 -1
  46. package/api/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemItem.d.ts +1 -1
  47. package/api/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemItemChildOutputMappingType.d.ts +1 -1
  48. package/api/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemItemChildrenType.d.ts +1 -1
  49. package/api/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemItemOneType.d.ts +1 -1
  50. package/api/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemItemTwoType.d.ts +1 -1
  51. package/api/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemOneType.d.ts +1 -1
  52. package/api/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemTwoType.d.ts +1 -1
  53. package/api/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolsItemToolType.d.ts +2 -1
  54. package/api/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolsItemToolType.js +1 -0
  55. package/api/resources/templates/types/index.d.ts +7 -13
  56. package/api/resources/templates/types/index.js +7 -13
  57. package/api/resources/tools/client/Client.js +15 -12
  58. package/api/resources/tools/client/requests/ToolsListRequest.d.ts +1 -0
  59. package/api/types/AgentState.d.ts +6 -0
  60. package/api/types/AgentStateToolRulesItem.d.ts +1 -1
  61. package/api/types/ChildToolRule.d.ts +1 -2
  62. package/api/types/ConditionalToolRule.d.ts +1 -2
  63. package/api/types/InitToolRule.d.ts +1 -2
  64. package/api/types/LocalSandboxConfig.d.ts +4 -1
  65. package/api/types/PipRequirement.d.ts +9 -0
  66. package/api/types/Step.d.ts +34 -0
  67. package/api/types/TerminalToolRule.d.ts +1 -2
  68. package/api/types/ToolType.d.ts +2 -1
  69. package/api/types/ToolType.js +1 -0
  70. package/api/types/index.d.ts +2 -1
  71. package/api/types/index.js +2 -1
  72. package/dist/Client.d.ts +3 -0
  73. package/dist/Client.js +9 -4
  74. package/dist/api/resources/agents/client/Client.js +7 -7
  75. package/dist/api/resources/agents/client/requests/CreateAgentRequest.d.ts +6 -0
  76. package/dist/api/resources/agents/resources/archivalMemory/client/Client.js +3 -3
  77. package/dist/api/resources/agents/resources/context/client/Client.js +1 -1
  78. package/dist/api/resources/agents/resources/coreMemory/client/Client.js +6 -6
  79. package/dist/api/resources/agents/resources/memoryVariables/client/Client.js +1 -1
  80. package/dist/api/resources/agents/resources/messages/client/Client.js +5 -5
  81. package/dist/api/resources/agents/resources/sources/client/Client.js +3 -3
  82. package/dist/api/resources/agents/resources/templates/client/Client.js +3 -3
  83. package/dist/api/resources/agents/resources/tools/client/Client.js +3 -3
  84. package/dist/api/resources/agents/types/CreateAgentRequestToolRulesItem.d.ts +1 -1
  85. package/dist/api/resources/agents/types/UpdateAgentToolRulesItem.d.ts +1 -1
  86. package/dist/api/resources/blocks/client/Client.js +6 -6
  87. package/dist/api/resources/health/client/Client.js +1 -1
  88. package/dist/api/resources/index.d.ts +2 -0
  89. package/dist/api/resources/index.js +3 -1
  90. package/dist/api/resources/jobs/client/Client.js +4 -4
  91. package/dist/api/resources/models/client/Client.js +2 -2
  92. package/dist/api/resources/providers/client/Client.js +4 -4
  93. package/dist/api/resources/runs/client/Client.js +6 -6
  94. package/dist/api/resources/sources/client/Client.js +6 -6
  95. package/dist/api/resources/sources/resources/files/client/Client.js +3 -3
  96. package/dist/api/resources/sources/resources/passages/client/Client.js +1 -1
  97. package/dist/api/resources/steps/client/Client.d.ts +57 -0
  98. package/dist/api/resources/steps/client/Client.js +224 -0
  99. package/dist/api/resources/steps/client/index.d.ts +1 -0
  100. package/dist/api/resources/steps/client/index.js +17 -0
  101. package/dist/api/resources/steps/client/requests/ListStepsRequest.d.ts +37 -0
  102. package/dist/api/resources/steps/client/requests/index.d.ts +1 -0
  103. package/dist/api/resources/steps/client/requests/index.js +2 -0
  104. package/dist/api/resources/steps/index.d.ts +1 -0
  105. package/dist/api/resources/steps/index.js +17 -0
  106. package/dist/api/resources/tag/client/Client.js +1 -1
  107. package/dist/api/resources/templates/client/Client.js +1 -1
  108. package/dist/api/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItem.d.ts +3 -0
  109. package/dist/api/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemBaseTemplateId.d.ts +5 -0
  110. package/dist/api/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemBaseTemplateIdItem.d.ts +4 -0
  111. package/dist/api/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemProjectId.d.ts +5 -0
  112. package/dist/api/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemProjectIdItem.d.ts +4 -0
  113. package/dist/api/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemTemplateId.d.ts +5 -0
  114. package/dist/api/resources/templates/types/{TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemItemItemChildOutputMappingRequireOutputMapping.d.ts → TemplatesCreateAgentsFromTemplateResponseAgentsItemTemplateIdItem.d.ts} +1 -1
  115. package/dist/api/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemChildOutputMappingType.d.ts +1 -1
  116. package/dist/api/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemChildrenType.d.ts +1 -1
  117. package/dist/api/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemItem.d.ts +1 -1
  118. package/dist/api/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemItemChildOutputMappingType.d.ts +1 -1
  119. package/dist/api/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemItemChildrenType.d.ts +1 -1
  120. package/dist/api/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemItemOneType.d.ts +1 -1
  121. package/dist/api/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemItemTwoType.d.ts +1 -1
  122. package/dist/api/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemOneType.d.ts +1 -1
  123. package/dist/api/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemTwoType.d.ts +1 -1
  124. package/dist/api/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolsItemToolType.d.ts +2 -1
  125. package/dist/api/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolsItemToolType.js +1 -0
  126. package/dist/api/resources/templates/types/index.d.ts +7 -13
  127. package/dist/api/resources/templates/types/index.js +7 -13
  128. package/dist/api/resources/tools/client/Client.js +15 -12
  129. package/dist/api/resources/tools/client/requests/ToolsListRequest.d.ts +1 -0
  130. package/dist/api/types/AgentState.d.ts +6 -0
  131. package/dist/api/types/AgentStateToolRulesItem.d.ts +1 -1
  132. package/dist/api/types/ChildToolRule.d.ts +1 -2
  133. package/dist/api/types/ConditionalToolRule.d.ts +1 -2
  134. package/dist/api/types/InitToolRule.d.ts +1 -2
  135. package/dist/api/types/LocalSandboxConfig.d.ts +4 -1
  136. package/dist/api/types/PipRequirement.d.ts +9 -0
  137. package/dist/api/types/Step.d.ts +34 -0
  138. package/dist/api/types/TerminalToolRule.d.ts +1 -2
  139. package/dist/api/types/ToolType.d.ts +2 -1
  140. package/dist/api/types/ToolType.js +1 -0
  141. package/dist/api/types/index.d.ts +2 -1
  142. package/dist/api/types/index.js +2 -1
  143. package/dist/serialization/resources/agents/client/requests/CreateAgentRequest.d.ts +3 -0
  144. package/dist/serialization/resources/agents/client/requests/CreateAgentRequest.js +3 -0
  145. package/dist/serialization/resources/agents/types/CreateAgentRequestToolRulesItem.d.ts +3 -3
  146. package/dist/serialization/resources/agents/types/CreateAgentRequestToolRulesItem.js +3 -3
  147. package/dist/serialization/resources/agents/types/UpdateAgentToolRulesItem.d.ts +3 -3
  148. package/dist/serialization/resources/agents/types/UpdateAgentToolRulesItem.js +3 -3
  149. package/dist/serialization/resources/index.d.ts +1 -0
  150. package/dist/serialization/resources/index.js +2 -1
  151. package/dist/serialization/resources/steps/client/index.d.ts +1 -0
  152. package/dist/serialization/resources/steps/client/index.js +37 -0
  153. package/dist/serialization/resources/steps/client/listSteps.d.ts +11 -0
  154. package/{serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemItemItemChildOutputMappingRequireOutputMapping.js → dist/serialization/resources/steps/client/listSteps.js} +3 -2
  155. package/dist/serialization/resources/steps/index.d.ts +1 -0
  156. package/dist/serialization/resources/steps/index.js +17 -0
  157. package/dist/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItem.d.ts +6 -0
  158. package/dist/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItem.js +6 -0
  159. package/dist/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemBaseTemplateId.d.ts +11 -0
  160. package/dist/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemBaseTemplateId.js +47 -0
  161. package/dist/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemBaseTemplateIdItem.d.ts +10 -0
  162. package/dist/serialization/resources/templates/types/{TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemItemItemChildOutputMappingRequireOutputMapping.js → TemplatesCreateAgentsFromTemplateResponseAgentsItemBaseTemplateIdItem.js} +2 -2
  163. package/dist/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemProjectId.d.ts +11 -0
  164. package/dist/serialization/resources/templates/types/{TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemItemItemChildrenType.js → TemplatesCreateAgentsFromTemplateResponseAgentsItemProjectId.js} +6 -8
  165. package/dist/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemProjectIdItem.d.ts +10 -0
  166. package/dist/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemProjectIdItem.js +41 -0
  167. package/dist/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemTemplateId.d.ts +11 -0
  168. package/dist/serialization/resources/templates/types/{TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemItemItemTwoType.js → TemplatesCreateAgentsFromTemplateResponseAgentsItemTemplateId.js} +6 -8
  169. package/dist/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemTemplateIdItem.d.ts +10 -0
  170. package/dist/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemTemplateIdItem.js +41 -0
  171. package/dist/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemChildOutputMappingType.d.ts +1 -1
  172. package/dist/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemChildOutputMappingType.js +0 -5
  173. package/dist/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemChildrenType.d.ts +1 -1
  174. package/dist/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemChildrenType.js +1 -6
  175. package/dist/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemItem.d.ts +1 -2
  176. package/dist/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemItem.js +0 -2
  177. package/dist/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemItemChildOutputMappingType.d.ts +1 -1
  178. package/dist/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemItemChildOutputMappingType.js +0 -5
  179. package/dist/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemItemChildrenType.d.ts +1 -1
  180. package/dist/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemItemChildrenType.js +1 -6
  181. package/dist/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemItemOneType.d.ts +1 -1
  182. package/dist/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemItemOneType.js +1 -6
  183. package/dist/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemItemTwoType.d.ts +1 -1
  184. package/dist/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemItemTwoType.js +1 -6
  185. package/dist/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemOneType.d.ts +1 -1
  186. package/dist/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemOneType.js +1 -6
  187. package/dist/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemTwoType.d.ts +1 -1
  188. package/dist/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemTwoType.js +1 -6
  189. package/dist/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolsItemToolType.d.ts +1 -1
  190. package/dist/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolsItemToolType.js +1 -0
  191. package/dist/serialization/resources/templates/types/index.d.ts +7 -13
  192. package/dist/serialization/resources/templates/types/index.js +7 -13
  193. package/dist/serialization/types/AgentState.d.ts +3 -0
  194. package/dist/serialization/types/AgentState.js +3 -0
  195. package/dist/serialization/types/AgentStateToolRulesItem.d.ts +3 -3
  196. package/dist/serialization/types/AgentStateToolRulesItem.js +3 -3
  197. package/dist/serialization/types/ChildToolRule.d.ts +1 -2
  198. package/dist/serialization/types/ChildToolRule.js +1 -2
  199. package/dist/serialization/types/ConditionalToolRule.d.ts +1 -2
  200. package/dist/serialization/types/ConditionalToolRule.js +1 -2
  201. package/dist/serialization/types/InitToolRule.d.ts +1 -2
  202. package/dist/serialization/types/InitToolRule.js +1 -2
  203. package/dist/serialization/types/LocalSandboxConfig.d.ts +3 -1
  204. package/dist/serialization/types/LocalSandboxConfig.js +3 -1
  205. package/dist/serialization/types/PipRequirement.d.ts +13 -0
  206. package/dist/serialization/types/{ToolRuleType.js → PipRequirement.js} +5 -9
  207. package/dist/serialization/types/Step.d.ts +26 -0
  208. package/dist/serialization/{resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemItemItemOne.js → types/Step.js} +18 -6
  209. package/dist/serialization/types/TerminalToolRule.d.ts +1 -2
  210. package/dist/serialization/types/TerminalToolRule.js +1 -2
  211. package/dist/serialization/types/ToolType.d.ts +1 -1
  212. package/dist/serialization/types/ToolType.js +1 -0
  213. package/dist/serialization/types/index.d.ts +2 -1
  214. package/dist/serialization/types/index.js +2 -1
  215. package/dist/version.d.ts +1 -1
  216. package/dist/version.js +1 -1
  217. package/package.json +1 -1
  218. package/reference.md +129 -0
  219. package/serialization/resources/agents/client/requests/CreateAgentRequest.d.ts +3 -0
  220. package/serialization/resources/agents/client/requests/CreateAgentRequest.js +3 -0
  221. package/serialization/resources/agents/types/CreateAgentRequestToolRulesItem.d.ts +3 -3
  222. package/serialization/resources/agents/types/CreateAgentRequestToolRulesItem.js +3 -3
  223. package/serialization/resources/agents/types/UpdateAgentToolRulesItem.d.ts +3 -3
  224. package/serialization/resources/agents/types/UpdateAgentToolRulesItem.js +3 -3
  225. package/serialization/resources/index.d.ts +1 -0
  226. package/serialization/resources/index.js +2 -1
  227. package/serialization/resources/steps/client/index.d.ts +1 -0
  228. package/serialization/resources/steps/client/index.js +37 -0
  229. package/serialization/resources/steps/client/listSteps.d.ts +11 -0
  230. package/serialization/resources/steps/client/listSteps.js +42 -0
  231. package/serialization/resources/steps/index.d.ts +1 -0
  232. package/serialization/resources/steps/index.js +17 -0
  233. package/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItem.d.ts +6 -0
  234. package/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItem.js +6 -0
  235. package/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemBaseTemplateId.d.ts +11 -0
  236. package/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemBaseTemplateId.js +47 -0
  237. package/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemBaseTemplateIdItem.d.ts +10 -0
  238. package/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemBaseTemplateIdItem.js +41 -0
  239. package/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemProjectId.d.ts +11 -0
  240. package/{dist/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemItemItemChildOutputMappingType.js → serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemProjectId.js} +6 -8
  241. package/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemProjectIdItem.d.ts +10 -0
  242. package/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemProjectIdItem.js +41 -0
  243. package/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemTemplateId.d.ts +11 -0
  244. package/{dist/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemItemItemOneType.js → serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemTemplateId.js} +6 -8
  245. package/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemTemplateIdItem.d.ts +10 -0
  246. package/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemTemplateIdItem.js +41 -0
  247. package/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemChildOutputMappingType.d.ts +1 -1
  248. package/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemChildOutputMappingType.js +0 -5
  249. package/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemChildrenType.d.ts +1 -1
  250. package/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemChildrenType.js +1 -6
  251. package/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemItem.d.ts +1 -2
  252. package/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemItem.js +0 -2
  253. package/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemItemChildOutputMappingType.d.ts +1 -1
  254. package/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemItemChildOutputMappingType.js +0 -5
  255. package/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemItemChildrenType.d.ts +1 -1
  256. package/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemItemChildrenType.js +1 -6
  257. package/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemItemOneType.d.ts +1 -1
  258. package/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemItemOneType.js +1 -6
  259. package/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemItemTwoType.d.ts +1 -1
  260. package/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemItemTwoType.js +1 -6
  261. package/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemOneType.d.ts +1 -1
  262. package/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemOneType.js +1 -6
  263. package/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemTwoType.d.ts +1 -1
  264. package/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemTwoType.js +1 -6
  265. package/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolsItemToolType.d.ts +1 -1
  266. package/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolsItemToolType.js +1 -0
  267. package/serialization/resources/templates/types/index.d.ts +7 -13
  268. package/serialization/resources/templates/types/index.js +7 -13
  269. package/serialization/types/AgentState.d.ts +3 -0
  270. package/serialization/types/AgentState.js +3 -0
  271. package/serialization/types/AgentStateToolRulesItem.d.ts +3 -3
  272. package/serialization/types/AgentStateToolRulesItem.js +3 -3
  273. package/serialization/types/ChildToolRule.d.ts +1 -2
  274. package/serialization/types/ChildToolRule.js +1 -2
  275. package/serialization/types/ConditionalToolRule.d.ts +1 -2
  276. package/serialization/types/ConditionalToolRule.js +1 -2
  277. package/serialization/types/InitToolRule.d.ts +1 -2
  278. package/serialization/types/InitToolRule.js +1 -2
  279. package/serialization/types/LocalSandboxConfig.d.ts +3 -1
  280. package/serialization/types/LocalSandboxConfig.js +3 -1
  281. package/serialization/types/PipRequirement.d.ts +13 -0
  282. package/serialization/types/{ToolRuleType.js → PipRequirement.js} +5 -9
  283. package/serialization/types/Step.d.ts +26 -0
  284. package/{dist/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemItemItemTwo.js → serialization/types/Step.js} +18 -6
  285. package/serialization/types/TerminalToolRule.d.ts +1 -2
  286. package/serialization/types/TerminalToolRule.js +1 -2
  287. package/serialization/types/ToolType.d.ts +1 -1
  288. package/serialization/types/ToolType.js +1 -0
  289. package/serialization/types/index.d.ts +2 -1
  290. package/serialization/types/index.js +2 -1
  291. package/version.d.ts +1 -1
  292. package/version.js +1 -1
  293. package/api/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemItemItem.d.ts +0 -5
  294. package/api/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemItemItemChildOutputMapping.d.ts +0 -11
  295. package/api/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemItemItemChildOutputMappingDefaultChild.d.ts +0 -5
  296. package/api/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemItemItemChildOutputMappingDefaultChildItem.d.ts +0 -4
  297. package/api/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemItemItemChildOutputMappingType.d.ts +0 -4
  298. package/api/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemItemItemChildren.d.ts +0 -9
  299. package/api/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemItemItemChildrenType.d.ts +0 -4
  300. package/api/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemItemItemOne.d.ts +0 -8
  301. package/api/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemItemItemOneType.d.ts +0 -4
  302. package/api/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemItemItemTwo.d.ts +0 -8
  303. package/api/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemItemItemTwoType.d.ts +0 -4
  304. package/api/types/ToolRuleType.d.ts +0 -15
  305. package/api/types/ToolRuleType.js +0 -14
  306. package/dist/api/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemItemItem.d.ts +0 -5
  307. package/dist/api/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemItemItemChildOutputMapping.d.ts +0 -11
  308. package/dist/api/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemItemItemChildOutputMappingDefaultChild.d.ts +0 -5
  309. package/dist/api/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemItemItemChildOutputMappingDefaultChildItem.d.ts +0 -4
  310. package/dist/api/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemItemItemChildOutputMappingType.d.ts +0 -4
  311. package/dist/api/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemItemItemChildren.d.ts +0 -9
  312. package/dist/api/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemItemItemChildren.js +0 -5
  313. package/dist/api/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemItemItemChildrenType.d.ts +0 -4
  314. package/dist/api/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemItemItemChildrenType.js +0 -5
  315. package/dist/api/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemItemItemOne.d.ts +0 -8
  316. package/dist/api/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemItemItemOne.js +0 -5
  317. package/dist/api/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemItemItemOneType.d.ts +0 -4
  318. package/dist/api/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemItemItemOneType.js +0 -5
  319. package/dist/api/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemItemItemTwo.d.ts +0 -8
  320. package/dist/api/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemItemItemTwo.js +0 -5
  321. package/dist/api/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemItemItemTwoType.d.ts +0 -4
  322. package/dist/api/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemItemItemTwoType.js +0 -5
  323. package/dist/api/types/ToolRuleType.d.ts +0 -15
  324. package/dist/api/types/ToolRuleType.js +0 -14
  325. package/dist/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemItemItem.d.ts +0 -14
  326. package/dist/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemItemItem.js +0 -50
  327. package/dist/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemItemItemChildOutputMapping.d.ts +0 -19
  328. package/dist/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemItemItemChildOutputMapping.js +0 -50
  329. package/dist/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemItemItemChildOutputMappingDefaultChild.d.ts +0 -11
  330. package/dist/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemItemItemChildOutputMappingDefaultChild.js +0 -47
  331. package/dist/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemItemItemChildOutputMappingDefaultChildItem.d.ts +0 -10
  332. package/dist/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemItemItemChildOutputMappingDefaultChildItem.js +0 -41
  333. package/dist/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemItemItemChildOutputMappingRequireOutputMapping.d.ts +0 -10
  334. package/dist/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemItemItemChildOutputMappingType.d.ts +0 -10
  335. package/dist/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemItemItemChildren.d.ts +0 -15
  336. package/dist/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemItemItemChildren.js +0 -46
  337. package/dist/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemItemItemChildrenType.d.ts +0 -10
  338. package/dist/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemItemItemOne.d.ts +0 -14
  339. package/dist/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemItemItemOneType.d.ts +0 -10
  340. package/dist/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemItemItemTwo.d.ts +0 -14
  341. package/dist/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemItemItemTwoType.d.ts +0 -10
  342. package/dist/serialization/types/ToolRuleType.d.ts +0 -10
  343. package/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemItemItem.d.ts +0 -14
  344. package/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemItemItem.js +0 -50
  345. package/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemItemItemChildOutputMapping.d.ts +0 -19
  346. package/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemItemItemChildOutputMapping.js +0 -50
  347. package/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemItemItemChildOutputMappingDefaultChild.d.ts +0 -11
  348. package/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemItemItemChildOutputMappingDefaultChild.js +0 -47
  349. package/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemItemItemChildOutputMappingDefaultChildItem.d.ts +0 -10
  350. package/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemItemItemChildOutputMappingDefaultChildItem.js +0 -41
  351. package/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemItemItemChildOutputMappingRequireOutputMapping.d.ts +0 -10
  352. package/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemItemItemChildOutputMappingType.d.ts +0 -10
  353. package/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemItemItemChildOutputMappingType.js +0 -49
  354. package/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemItemItemChildren.d.ts +0 -15
  355. package/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemItemItemChildren.js +0 -46
  356. package/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemItemItemChildrenType.d.ts +0 -10
  357. package/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemItemItemChildrenType.js +0 -49
  358. package/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemItemItemOne.d.ts +0 -14
  359. package/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemItemItemOne.js +0 -45
  360. package/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemItemItemOneType.d.ts +0 -10
  361. package/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemItemItemOneType.js +0 -49
  362. package/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemItemItemTwo.d.ts +0 -14
  363. package/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemItemItemTwo.js +0 -45
  364. package/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemItemItemTwoType.d.ts +0 -10
  365. package/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemItemItemTwoType.js +0 -49
  366. package/serialization/types/ToolRuleType.d.ts +0 -10
  367. /package/api/resources/{templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemItemItem.js → steps/client/requests/ListStepsRequest.js} +0 -0
  368. /package/api/resources/templates/types/{TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemItemItemChildOutputMapping.js → TemplatesCreateAgentsFromTemplateResponseAgentsItemBaseTemplateId.js} +0 -0
  369. /package/api/resources/templates/types/{TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemItemItemChildOutputMappingDefaultChild.js → TemplatesCreateAgentsFromTemplateResponseAgentsItemBaseTemplateIdItem.js} +0 -0
  370. /package/api/resources/templates/types/{TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemItemItemChildOutputMappingDefaultChildItem.js → TemplatesCreateAgentsFromTemplateResponseAgentsItemProjectId.js} +0 -0
  371. /package/api/resources/templates/types/{TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemItemItemChildOutputMappingRequireOutputMapping.js → TemplatesCreateAgentsFromTemplateResponseAgentsItemProjectIdItem.js} +0 -0
  372. /package/api/resources/templates/types/{TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemItemItemChildOutputMappingType.js → TemplatesCreateAgentsFromTemplateResponseAgentsItemTemplateId.js} +0 -0
  373. /package/api/resources/templates/types/{TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemItemItemChildren.js → TemplatesCreateAgentsFromTemplateResponseAgentsItemTemplateIdItem.js} +0 -0
  374. /package/api/{resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemItemItemChildrenType.js → types/PipRequirement.js} +0 -0
  375. /package/api/{resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemItemItemOne.js → types/Step.js} +0 -0
  376. /package/{api/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemItemItemOneType.js → dist/api/resources/steps/client/requests/ListStepsRequest.js} +0 -0
  377. /package/{api/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemItemItemTwo.js → dist/api/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemBaseTemplateId.js} +0 -0
  378. /package/{api/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemItemItemTwoType.js → dist/api/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemBaseTemplateIdItem.js} +0 -0
  379. /package/dist/api/resources/templates/types/{TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemItemItem.js → TemplatesCreateAgentsFromTemplateResponseAgentsItemProjectId.js} +0 -0
  380. /package/dist/api/resources/templates/types/{TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemItemItemChildOutputMapping.js → TemplatesCreateAgentsFromTemplateResponseAgentsItemProjectIdItem.js} +0 -0
  381. /package/dist/api/resources/templates/types/{TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemItemItemChildOutputMappingDefaultChild.js → TemplatesCreateAgentsFromTemplateResponseAgentsItemTemplateId.js} +0 -0
  382. /package/dist/api/resources/templates/types/{TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemItemItemChildOutputMappingDefaultChildItem.js → TemplatesCreateAgentsFromTemplateResponseAgentsItemTemplateIdItem.js} +0 -0
  383. /package/dist/api/{resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemItemItemChildOutputMappingRequireOutputMapping.js → types/PipRequirement.js} +0 -0
  384. /package/dist/api/{resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemItemItemChildOutputMappingType.js → types/Step.js} +0 -0
@@ -81,7 +81,7 @@ class Jobs {
81
81
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
82
82
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, "v1/jobs/"),
83
83
  method: "GET",
84
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.17", "User-Agent": "@letta-ai/letta-client/0.1.17", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
84
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.19", "User-Agent": "@letta-ai/letta-client/0.1.19", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
85
85
  contentType: "application/json",
86
86
  queryParameters: _queryParams,
87
87
  requestType: "json",
@@ -146,7 +146,7 @@ class Jobs {
146
146
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
147
147
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, "v1/jobs/active"),
148
148
  method: "GET",
149
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.17", "User-Agent": "@letta-ai/letta-client/0.1.17", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
149
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.19", "User-Agent": "@letta-ai/letta-client/0.1.19", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
150
150
  contentType: "application/json",
151
151
  requestType: "json",
152
152
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -211,7 +211,7 @@ class Jobs {
211
211
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
212
212
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, `v1/jobs/${encodeURIComponent(jobId)}`),
213
213
  method: "GET",
214
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.17", "User-Agent": "@letta-ai/letta-client/0.1.17", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
214
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.19", "User-Agent": "@letta-ai/letta-client/0.1.19", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
215
215
  contentType: "application/json",
216
216
  requestType: "json",
217
217
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -276,7 +276,7 @@ class Jobs {
276
276
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
277
277
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, `v1/jobs/${encodeURIComponent(jobId)}`),
278
278
  method: "DELETE",
279
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.17", "User-Agent": "@letta-ai/letta-client/0.1.17", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
279
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.19", "User-Agent": "@letta-ai/letta-client/0.1.19", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
280
280
  contentType: "application/json",
281
281
  requestType: "json",
282
282
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -70,7 +70,7 @@ class Models {
70
70
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
71
71
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, "v1/models/"),
72
72
  method: "GET",
73
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.17", "User-Agent": "@letta-ai/letta-client/0.1.17", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
73
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.19", "User-Agent": "@letta-ai/letta-client/0.1.19", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
74
74
  contentType: "application/json",
75
75
  requestType: "json",
76
76
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -119,7 +119,7 @@ class Models {
119
119
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
120
120
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, "v1/models/embedding"),
121
121
  method: "GET",
122
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.17", "User-Agent": "@letta-ai/letta-client/0.1.17", "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),
122
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.19", "User-Agent": "@letta-ai/letta-client/0.1.19", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
123
123
  contentType: "application/json",
124
124
  requestType: "json",
125
125
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -84,7 +84,7 @@ class Providers {
84
84
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
85
85
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, "v1/providers/"),
86
86
  method: "GET",
87
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.17", "User-Agent": "@letta-ai/letta-client/0.1.17", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
87
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.19", "User-Agent": "@letta-ai/letta-client/0.1.19", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
88
88
  contentType: "application/json",
89
89
  queryParameters: _queryParams,
90
90
  requestType: "json",
@@ -153,7 +153,7 @@ class Providers {
153
153
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
154
154
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, "v1/providers/"),
155
155
  method: "POST",
156
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.17", "User-Agent": "@letta-ai/letta-client/0.1.17", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
156
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.19", "User-Agent": "@letta-ai/letta-client/0.1.19", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
157
157
  contentType: "application/json",
158
158
  requestType: "json",
159
159
  body: serializers.ProviderCreate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -224,7 +224,7 @@ class Providers {
224
224
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
225
225
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, "v1/providers/"),
226
226
  method: "DELETE",
227
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.17", "User-Agent": "@letta-ai/letta-client/0.1.17", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
227
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.19", "User-Agent": "@letta-ai/letta-client/0.1.19", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
228
228
  contentType: "application/json",
229
229
  queryParameters: _queryParams,
230
230
  requestType: "json",
@@ -287,7 +287,7 @@ class Providers {
287
287
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
288
288
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, "v1/providers/"),
289
289
  method: "PATCH",
290
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.17", "User-Agent": "@letta-ai/letta-client/0.1.17", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
290
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.19", "User-Agent": "@letta-ai/letta-client/0.1.19", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
291
291
  contentType: "application/json",
292
292
  requestType: "json",
293
293
  body: serializers.ProviderUpdate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -75,7 +75,7 @@ class Runs {
75
75
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
76
76
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, "v1/runs/"),
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.17", "User-Agent": "@letta-ai/letta-client/0.1.17", "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.19", "User-Agent": "@letta-ai/letta-client/0.1.19", "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
  requestType: "json",
81
81
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -139,7 +139,7 @@ class Runs {
139
139
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
140
140
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, "v1/runs/active"),
141
141
  method: "GET",
142
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.17", "User-Agent": "@letta-ai/letta-client/0.1.17", "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),
142
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.19", "User-Agent": "@letta-ai/letta-client/0.1.19", "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),
143
143
  contentType: "application/json",
144
144
  requestType: "json",
145
145
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -204,7 +204,7 @@ class Runs {
204
204
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
205
205
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, `v1/runs/${encodeURIComponent(runId)}`),
206
206
  method: "GET",
207
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.17", "User-Agent": "@letta-ai/letta-client/0.1.17", "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),
207
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.19", "User-Agent": "@letta-ai/letta-client/0.1.19", "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),
208
208
  contentType: "application/json",
209
209
  requestType: "json",
210
210
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -269,7 +269,7 @@ class Runs {
269
269
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
270
270
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, `v1/runs/${encodeURIComponent(runId)}`),
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.17", "User-Agent": "@letta-ai/letta-client/0.1.17", "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.19", "User-Agent": "@letta-ai/letta-client/0.1.19", "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,
@@ -365,7 +365,7 @@ class Runs {
365
365
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
366
366
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, `v1/runs/${encodeURIComponent(runId)}/messages`),
367
367
  method: "GET",
368
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.17", "User-Agent": "@letta-ai/letta-client/0.1.17", "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),
368
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.19", "User-Agent": "@letta-ai/letta-client/0.1.19", "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),
369
369
  contentType: "application/json",
370
370
  queryParameters: _queryParams,
371
371
  requestType: "json",
@@ -431,7 +431,7 @@ class Runs {
431
431
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
432
432
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, `v1/runs/${encodeURIComponent(runId)}/usage`),
433
433
  method: "GET",
434
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.17", "User-Agent": "@letta-ai/letta-client/0.1.17", "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),
434
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.19", "User-Agent": "@letta-ai/letta-client/0.1.19", "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),
435
435
  contentType: "application/json",
436
436
  requestType: "json",
437
437
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -86,7 +86,7 @@ class Sources {
86
86
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
87
87
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, `v1/sources/${encodeURIComponent(sourceId)}`),
88
88
  method: "GET",
89
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.17", "User-Agent": "@letta-ai/letta-client/0.1.17", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
89
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.19", "User-Agent": "@letta-ai/letta-client/0.1.19", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
90
90
  contentType: "application/json",
91
91
  requestType: "json",
92
92
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -151,7 +151,7 @@ class Sources {
151
151
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
152
152
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, `v1/sources/${encodeURIComponent(sourceId)}`),
153
153
  method: "DELETE",
154
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.17", "User-Agent": "@letta-ai/letta-client/0.1.17", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
154
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.19", "User-Agent": "@letta-ai/letta-client/0.1.19", "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),
155
155
  contentType: "application/json",
156
156
  requestType: "json",
157
157
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -211,7 +211,7 @@ class Sources {
211
211
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
212
212
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, `v1/sources/${encodeURIComponent(sourceId)}`),
213
213
  method: "PATCH",
214
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.17", "User-Agent": "@letta-ai/letta-client/0.1.17", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
214
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.19", "User-Agent": "@letta-ai/letta-client/0.1.19", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
215
215
  contentType: "application/json",
216
216
  requestType: "json",
217
217
  body: serializers.SourceUpdate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -277,7 +277,7 @@ class Sources {
277
277
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
278
278
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, `v1/sources/name/${encodeURIComponent(sourceName)}`),
279
279
  method: "GET",
280
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.17", "User-Agent": "@letta-ai/letta-client/0.1.17", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
280
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.19", "User-Agent": "@letta-ai/letta-client/0.1.19", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
281
281
  contentType: "application/json",
282
282
  requestType: "json",
283
283
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -341,7 +341,7 @@ class Sources {
341
341
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
342
342
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, "v1/sources/"),
343
343
  method: "GET",
344
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.17", "User-Agent": "@letta-ai/letta-client/0.1.17", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
344
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.19", "User-Agent": "@letta-ai/letta-client/0.1.19", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
345
345
  contentType: "application/json",
346
346
  requestType: "json",
347
347
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -408,7 +408,7 @@ class Sources {
408
408
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
409
409
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, "v1/sources/"),
410
410
  method: "POST",
411
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.17", "User-Agent": "@letta-ai/letta-client/0.1.17", "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),
411
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.19", "User-Agent": "@letta-ai/letta-client/0.1.19", "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),
412
412
  contentType: "application/json",
413
413
  requestType: "json",
414
414
  body: serializers.SourceCreate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -80,7 +80,7 @@ class Files {
80
80
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
81
81
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, `v1/sources/${encodeURIComponent(sourceId)}/upload`),
82
82
  method: "POST",
83
- headers: Object.assign(Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.17", "User-Agent": "@letta-ai/letta-client/0.1.17", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), _maybeEncodedRequest.headers), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
83
+ headers: Object.assign(Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.19", "User-Agent": "@letta-ai/letta-client/0.1.19", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), _maybeEncodedRequest.headers), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
84
84
  requestType: "file",
85
85
  duplex: _maybeEncodedRequest.duplex,
86
86
  body: _maybeEncodedRequest.body,
@@ -155,7 +155,7 @@ class Files {
155
155
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
156
156
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, `v1/sources/${encodeURIComponent(sourceId)}/files`),
157
157
  method: "GET",
158
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.17", "User-Agent": "@letta-ai/letta-client/0.1.17", "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),
158
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.19", "User-Agent": "@letta-ai/letta-client/0.1.19", "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),
159
159
  contentType: "application/json",
160
160
  queryParameters: _queryParams,
161
161
  requestType: "json",
@@ -222,7 +222,7 @@ class Files {
222
222
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
223
223
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, `v1/sources/${encodeURIComponent(sourceId)}/${encodeURIComponent(fileId)}`),
224
224
  method: "DELETE",
225
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.17", "User-Agent": "@letta-ai/letta-client/0.1.17", "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),
225
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.19", "User-Agent": "@letta-ai/letta-client/0.1.19", "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),
226
226
  contentType: "application/json",
227
227
  requestType: "json",
228
228
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -76,7 +76,7 @@ class Passages {
76
76
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
77
77
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, `v1/sources/${encodeURIComponent(sourceId)}/passages`),
78
78
  method: "GET",
79
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.17", "User-Agent": "@letta-ai/letta-client/0.1.17", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
79
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.19", "User-Agent": "@letta-ai/letta-client/0.1.19", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
80
80
  contentType: "application/json",
81
81
  requestType: "json",
82
82
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -0,0 +1,57 @@
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 Steps {
8
+ interface Options {
9
+ environment?: core.Supplier<environments.LettaEnvironment | string>;
10
+ /** Specify a custom URL to connect the client to. */
11
+ baseUrl?: core.Supplier<string>;
12
+ token?: core.Supplier<string | undefined>;
13
+ fetcher?: core.FetchFunction;
14
+ }
15
+ interface RequestOptions {
16
+ /** The maximum time to wait for a response in seconds. */
17
+ timeoutInSeconds?: number;
18
+ /** The number of times to retry the request. Defaults to 2. */
19
+ maxRetries?: number;
20
+ /** A hook to abort the request. */
21
+ abortSignal?: AbortSignal;
22
+ /** Additional headers to include in the request. */
23
+ headers?: Record<string, string>;
24
+ }
25
+ }
26
+ export declare class Steps {
27
+ protected readonly _options: Steps.Options;
28
+ constructor(_options?: Steps.Options);
29
+ /**
30
+ * List steps with optional pagination and date filters.
31
+ * Dates should be provided in ISO 8601 format (e.g. 2025-01-29T15:01:19-08:00)
32
+ *
33
+ * @param {Letta.ListStepsRequest} request
34
+ * @param {Steps.RequestOptions} requestOptions - Request-specific configuration.
35
+ *
36
+ * @throws {@link Letta.UnprocessableEntityError}
37
+ *
38
+ * @example
39
+ * await client.steps.listSteps()
40
+ */
41
+ listSteps(request?: Letta.ListStepsRequest, requestOptions?: Steps.RequestOptions): Promise<Letta.Step[]>;
42
+ /**
43
+ * Get a step by ID.
44
+ *
45
+ * @param {string} stepId
46
+ * @param {Steps.RequestOptions} requestOptions - Request-specific configuration.
47
+ *
48
+ * @throws {@link Letta.UnprocessableEntityError}
49
+ *
50
+ * @example
51
+ * await client.steps.retrieveStep("step_id")
52
+ */
53
+ retrieveStep(stepId: string, requestOptions?: Steps.RequestOptions): Promise<Letta.Step>;
54
+ protected _getCustomAuthorizationHeaders(): Promise<{
55
+ Authorization: string;
56
+ }>;
57
+ }
@@ -0,0 +1,224 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || (function () {
22
+ var ownKeys = function(o) {
23
+ ownKeys = Object.getOwnPropertyNames || function (o) {
24
+ var ar = [];
25
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
26
+ return ar;
27
+ };
28
+ return ownKeys(o);
29
+ };
30
+ return function (mod) {
31
+ if (mod && mod.__esModule) return mod;
32
+ var result = {};
33
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
34
+ __setModuleDefault(result, mod);
35
+ return result;
36
+ };
37
+ })();
38
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
39
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
40
+ return new (P || (P = Promise))(function (resolve, reject) {
41
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
42
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
43
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
44
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
45
+ });
46
+ };
47
+ var __importDefault = (this && this.__importDefault) || function (mod) {
48
+ return (mod && mod.__esModule) ? mod : { "default": mod };
49
+ };
50
+ Object.defineProperty(exports, "__esModule", { value: true });
51
+ exports.Steps = void 0;
52
+ const environments = __importStar(require("../../../../environments"));
53
+ const core = __importStar(require("../../../../core"));
54
+ const Letta = __importStar(require("../../../index"));
55
+ const url_join_1 = __importDefault(require("url-join"));
56
+ const serializers = __importStar(require("../../../../serialization/index"));
57
+ const errors = __importStar(require("../../../../errors/index"));
58
+ class Steps {
59
+ constructor(_options = {}) {
60
+ this._options = _options;
61
+ }
62
+ /**
63
+ * List steps with optional pagination and date filters.
64
+ * Dates should be provided in ISO 8601 format (e.g. 2025-01-29T15:01:19-08:00)
65
+ *
66
+ * @param {Letta.ListStepsRequest} request
67
+ * @param {Steps.RequestOptions} requestOptions - Request-specific configuration.
68
+ *
69
+ * @throws {@link Letta.UnprocessableEntityError}
70
+ *
71
+ * @example
72
+ * await client.steps.listSteps()
73
+ */
74
+ listSteps() {
75
+ return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
76
+ var _a, _b, _c;
77
+ const { before, after, limit, order, startDate, endDate, model } = request;
78
+ const _queryParams = {};
79
+ if (before != null) {
80
+ _queryParams["before"] = before;
81
+ }
82
+ if (after != null) {
83
+ _queryParams["after"] = after;
84
+ }
85
+ if (limit != null) {
86
+ _queryParams["limit"] = limit.toString();
87
+ }
88
+ if (order != null) {
89
+ _queryParams["order"] = order;
90
+ }
91
+ if (startDate != null) {
92
+ _queryParams["start_date"] = startDate;
93
+ }
94
+ if (endDate != null) {
95
+ _queryParams["end_date"] = endDate;
96
+ }
97
+ if (model != null) {
98
+ _queryParams["model"] = model;
99
+ }
100
+ const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
101
+ url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, "v1/steps"),
102
+ method: "GET",
103
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.19", "User-Agent": "@letta-ai/letta-client/0.1.19", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
104
+ contentType: "application/json",
105
+ queryParameters: _queryParams,
106
+ requestType: "json",
107
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
108
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
109
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
110
+ });
111
+ if (_response.ok) {
112
+ return serializers.steps.listSteps.Response.parseOrThrow(_response.body, {
113
+ unrecognizedObjectKeys: "passthrough",
114
+ allowUnrecognizedUnionMembers: true,
115
+ allowUnrecognizedEnumValues: true,
116
+ skipValidation: true,
117
+ breadcrumbsPrefix: ["response"],
118
+ });
119
+ }
120
+ if (_response.error.reason === "status-code") {
121
+ switch (_response.error.statusCode) {
122
+ case 422:
123
+ throw new Letta.UnprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
124
+ unrecognizedObjectKeys: "passthrough",
125
+ allowUnrecognizedUnionMembers: true,
126
+ allowUnrecognizedEnumValues: true,
127
+ skipValidation: true,
128
+ breadcrumbsPrefix: ["response"],
129
+ }));
130
+ default:
131
+ throw new errors.LettaError({
132
+ statusCode: _response.error.statusCode,
133
+ body: _response.error.body,
134
+ });
135
+ }
136
+ }
137
+ switch (_response.error.reason) {
138
+ case "non-json":
139
+ throw new errors.LettaError({
140
+ statusCode: _response.error.statusCode,
141
+ body: _response.error.rawBody,
142
+ });
143
+ case "timeout":
144
+ throw new errors.LettaTimeoutError("Timeout exceeded when calling GET /v1/steps.");
145
+ case "unknown":
146
+ throw new errors.LettaError({
147
+ message: _response.error.errorMessage,
148
+ });
149
+ }
150
+ });
151
+ }
152
+ /**
153
+ * Get a step by ID.
154
+ *
155
+ * @param {string} stepId
156
+ * @param {Steps.RequestOptions} requestOptions - Request-specific configuration.
157
+ *
158
+ * @throws {@link Letta.UnprocessableEntityError}
159
+ *
160
+ * @example
161
+ * await client.steps.retrieveStep("step_id")
162
+ */
163
+ retrieveStep(stepId, requestOptions) {
164
+ return __awaiter(this, void 0, void 0, function* () {
165
+ var _a, _b, _c;
166
+ const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
167
+ url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, `v1/steps/${encodeURIComponent(stepId)}`),
168
+ method: "GET",
169
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.19", "User-Agent": "@letta-ai/letta-client/0.1.19", "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),
170
+ contentType: "application/json",
171
+ requestType: "json",
172
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
173
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
174
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
175
+ });
176
+ if (_response.ok) {
177
+ return serializers.Step.parseOrThrow(_response.body, {
178
+ unrecognizedObjectKeys: "passthrough",
179
+ allowUnrecognizedUnionMembers: true,
180
+ allowUnrecognizedEnumValues: true,
181
+ skipValidation: true,
182
+ breadcrumbsPrefix: ["response"],
183
+ });
184
+ }
185
+ if (_response.error.reason === "status-code") {
186
+ switch (_response.error.statusCode) {
187
+ case 422:
188
+ throw new Letta.UnprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
189
+ unrecognizedObjectKeys: "passthrough",
190
+ allowUnrecognizedUnionMembers: true,
191
+ allowUnrecognizedEnumValues: true,
192
+ skipValidation: true,
193
+ breadcrumbsPrefix: ["response"],
194
+ }));
195
+ default:
196
+ throw new errors.LettaError({
197
+ statusCode: _response.error.statusCode,
198
+ body: _response.error.body,
199
+ });
200
+ }
201
+ }
202
+ switch (_response.error.reason) {
203
+ case "non-json":
204
+ throw new errors.LettaError({
205
+ statusCode: _response.error.statusCode,
206
+ body: _response.error.rawBody,
207
+ });
208
+ case "timeout":
209
+ throw new errors.LettaTimeoutError("Timeout exceeded when calling GET /v1/steps/{step_id}.");
210
+ case "unknown":
211
+ throw new errors.LettaError({
212
+ message: _response.error.errorMessage,
213
+ });
214
+ }
215
+ });
216
+ }
217
+ _getCustomAuthorizationHeaders() {
218
+ return __awaiter(this, void 0, void 0, function* () {
219
+ const tokenValue = yield core.Supplier.get(this._options.token);
220
+ return { Authorization: `Bearer ${tokenValue}` };
221
+ });
222
+ }
223
+ }
224
+ exports.Steps = Steps;
@@ -0,0 +1 @@
1
+ export * from "./requests";
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./requests"), exports);