@letta-ai/letta-client 0.0.68654 → 0.0.68656

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 (426) hide show
  1. package/api/resources/agents/client/Client.d.ts +4 -7
  2. package/api/resources/agents/client/Client.js +13 -16
  3. package/api/resources/agents/client/requests/CreateAgentRequest.d.ts +3 -1
  4. package/api/resources/agents/client/requests/UpdateAgent.d.ts +3 -1
  5. package/api/resources/agents/resources/blocks/client/Client.js +5 -5
  6. package/api/resources/agents/resources/context/client/Client.js +1 -1
  7. package/api/resources/agents/resources/coreMemory/client/Client.js +1 -1
  8. package/api/resources/agents/resources/files/client/Client.js +4 -4
  9. package/api/resources/agents/resources/folders/client/Client.js +3 -3
  10. package/api/resources/agents/resources/groups/client/Client.js +1 -1
  11. package/api/resources/agents/resources/memoryVariables/client/Client.js +1 -1
  12. package/api/resources/agents/resources/messages/client/Client.js +10 -10
  13. package/api/resources/agents/resources/passages/client/Client.js +5 -5
  14. package/api/resources/agents/resources/sources/client/Client.js +3 -3
  15. package/api/resources/agents/resources/templates/client/Client.js +3 -3
  16. package/api/resources/agents/resources/tools/client/Client.js +4 -4
  17. package/api/resources/batches/client/Client.js +4 -4
  18. package/api/resources/batches/resources/messages/client/Client.js +1 -1
  19. package/api/resources/blocks/client/Client.js +6 -6
  20. package/api/resources/blocks/index.d.ts +1 -1
  21. package/api/resources/blocks/index.js +1 -1
  22. package/api/resources/blocks/resources/agents/client/Client.js +20 -3
  23. package/api/resources/blocks/resources/agents/client/requests/AgentsListRequest.d.ts +21 -0
  24. package/api/resources/blocks/resources/agents/index.d.ts +1 -0
  25. package/api/resources/blocks/resources/agents/index.js +1 -0
  26. package/api/resources/blocks/resources/agents/types/AgentsListRequestOrder.d.ts +11 -0
  27. package/api/resources/blocks/resources/agents/types/AgentsListRequestOrder.js +10 -0
  28. package/api/resources/blocks/resources/agents/types/index.d.ts +1 -0
  29. package/api/resources/blocks/resources/agents/types/index.js +17 -0
  30. package/api/resources/blocks/resources/index.d.ts +1 -0
  31. package/api/resources/blocks/resources/index.js +1 -0
  32. package/api/resources/clientSideAccessTokens/client/Client.js +3 -3
  33. package/api/resources/folders/client/Client.d.ts +8 -5
  34. package/api/resources/folders/client/Client.js +21 -15
  35. package/api/resources/folders/client/requests/FoldersListRequest.d.ts +4 -0
  36. package/api/resources/folders/client/requests/{GetFoldersMetadataRequest.d.ts → RetrieveMetadataRequest.d.ts} +1 -1
  37. package/api/resources/folders/client/requests/index.d.ts +1 -1
  38. package/api/resources/folders/index.d.ts +1 -1
  39. package/api/resources/folders/index.js +1 -1
  40. package/api/resources/folders/resources/agents/client/Client.d.ts +3 -1
  41. package/api/resources/folders/resources/agents/client/Client.js +27 -6
  42. package/api/resources/folders/resources/agents/client/index.d.ts +1 -1
  43. package/api/resources/folders/resources/agents/client/index.js +15 -0
  44. package/api/resources/folders/resources/agents/client/requests/AgentsListRequest.d.ts +30 -0
  45. package/api/resources/folders/resources/agents/client/requests/index.d.ts +1 -0
  46. package/api/resources/folders/resources/agents/client/requests/index.js +2 -0
  47. package/api/resources/folders/resources/agents/index.d.ts +1 -0
  48. package/api/resources/folders/resources/agents/index.js +1 -0
  49. package/api/resources/folders/resources/agents/types/AgentsListRequestOrder.d.ts +11 -0
  50. package/api/resources/folders/resources/agents/types/AgentsListRequestOrder.js +10 -0
  51. package/api/resources/folders/resources/agents/types/index.d.ts +1 -0
  52. package/api/resources/folders/resources/agents/types/index.js +17 -0
  53. package/api/resources/folders/resources/files/client/Client.js +17 -6
  54. package/api/resources/folders/resources/files/client/requests/FilesListRequest.d.ts +16 -3
  55. package/api/resources/folders/resources/files/index.d.ts +1 -0
  56. package/api/resources/folders/resources/files/index.js +1 -0
  57. package/api/resources/folders/resources/files/types/FilesListRequestOrder.d.ts +11 -0
  58. package/api/resources/folders/resources/files/types/FilesListRequestOrder.js +10 -0
  59. package/api/resources/folders/resources/files/types/index.d.ts +1 -0
  60. package/api/resources/folders/resources/files/types/index.js +17 -0
  61. package/api/resources/folders/resources/index.d.ts +4 -0
  62. package/api/resources/folders/resources/index.js +4 -0
  63. package/api/resources/folders/resources/passages/client/Client.js +14 -6
  64. package/api/resources/folders/resources/passages/client/requests/PassagesListRequest.d.ts +14 -5
  65. package/api/resources/folders/resources/passages/index.d.ts +1 -0
  66. package/api/resources/folders/resources/passages/index.js +1 -0
  67. package/api/resources/folders/resources/passages/types/PassagesListRequestOrder.d.ts +11 -0
  68. package/api/resources/folders/resources/passages/types/PassagesListRequestOrder.js +10 -0
  69. package/api/resources/folders/resources/passages/types/index.d.ts +1 -0
  70. package/api/resources/folders/resources/passages/types/index.js +17 -0
  71. package/api/resources/groups/client/Client.js +6 -6
  72. package/api/resources/groups/resources/messages/client/Client.js +18 -10
  73. package/api/resources/groups/resources/messages/client/requests/MessagesListRequest.d.ts +14 -5
  74. package/api/resources/groups/resources/messages/types/MessagesListRequestOrder.d.ts +11 -0
  75. package/api/resources/groups/resources/messages/types/MessagesListRequestOrder.js +10 -0
  76. package/api/resources/groups/resources/messages/types/index.d.ts +1 -0
  77. package/api/resources/groups/resources/messages/types/index.js +1 -0
  78. package/api/resources/health/client/Client.js +1 -1
  79. package/api/resources/identities/client/Client.js +7 -7
  80. package/api/resources/identities/index.d.ts +1 -1
  81. package/api/resources/identities/index.js +1 -1
  82. package/api/resources/identities/resources/agents/client/Client.d.ts +7 -1
  83. package/api/resources/identities/resources/agents/client/Client.js +58 -11
  84. package/api/resources/identities/resources/agents/client/index.d.ts +1 -1
  85. package/api/resources/identities/resources/agents/client/index.js +15 -0
  86. package/api/resources/identities/resources/agents/client/requests/AgentsListRequest.d.ts +30 -0
  87. package/api/resources/identities/resources/agents/client/requests/AgentsListRequest.js +5 -0
  88. package/api/resources/identities/resources/agents/client/requests/index.d.ts +1 -0
  89. package/api/resources/identities/resources/agents/client/requests/index.js +2 -0
  90. package/api/resources/identities/resources/agents/index.d.ts +1 -0
  91. package/api/resources/identities/resources/agents/index.js +1 -0
  92. package/api/resources/identities/resources/agents/types/AgentsListRequestOrder.d.ts +11 -0
  93. package/api/resources/identities/resources/agents/types/AgentsListRequestOrder.js +10 -0
  94. package/api/resources/identities/resources/agents/types/index.d.ts +1 -0
  95. package/api/resources/identities/resources/agents/types/index.js +17 -0
  96. package/api/resources/identities/resources/blocks/client/Client.d.ts +7 -1
  97. package/api/resources/identities/resources/blocks/client/Client.js +58 -11
  98. package/api/resources/identities/resources/blocks/client/index.d.ts +1 -1
  99. package/api/resources/identities/resources/blocks/client/index.js +15 -0
  100. package/api/resources/identities/resources/blocks/client/requests/BlocksListRequest.d.ts +30 -0
  101. package/api/resources/identities/resources/blocks/client/requests/BlocksListRequest.js +5 -0
  102. package/api/resources/identities/resources/blocks/client/requests/index.d.ts +1 -0
  103. package/api/resources/identities/resources/blocks/client/requests/index.js +2 -0
  104. package/api/resources/identities/resources/blocks/index.d.ts +1 -0
  105. package/api/resources/identities/resources/blocks/index.js +1 -0
  106. package/api/resources/identities/resources/blocks/types/BlocksListRequestOrder.d.ts +11 -0
  107. package/api/resources/identities/resources/blocks/types/BlocksListRequestOrder.js +10 -0
  108. package/api/resources/identities/resources/blocks/types/index.d.ts +1 -0
  109. package/api/resources/identities/resources/blocks/types/index.js +17 -0
  110. package/api/resources/identities/resources/index.d.ts +5 -1
  111. package/api/resources/identities/resources/index.js +9 -2
  112. package/api/resources/identities/resources/properties/client/Client.js +1 -1
  113. package/api/resources/jobs/client/Client.js +5 -5
  114. package/api/resources/models/client/Client.js +2 -2
  115. package/api/resources/models/resources/embeddings/client/Client.js +1 -1
  116. package/api/resources/projects/client/Client.js +1 -1
  117. package/api/resources/providers/client/Client.js +6 -6
  118. package/api/resources/runs/client/Client.js +5 -5
  119. package/api/resources/runs/resources/messages/client/Client.js +1 -1
  120. package/api/resources/runs/resources/steps/client/Client.js +1 -1
  121. package/api/resources/runs/resources/usage/client/Client.js +1 -1
  122. package/api/resources/sources/client/Client.js +10 -10
  123. package/api/resources/sources/resources/files/client/Client.js +3 -3
  124. package/api/resources/sources/resources/passages/client/Client.js +1 -1
  125. package/api/resources/steps/client/Client.js +2 -2
  126. package/api/resources/steps/resources/feedback/client/Client.js +1 -1
  127. package/api/resources/steps/resources/metrics/client/Client.js +1 -1
  128. package/api/resources/steps/resources/trace/client/Client.js +1 -1
  129. package/api/resources/tags/client/Client.js +5 -2
  130. package/api/resources/tags/client/requests/TagsListRequest.d.ts +5 -1
  131. package/api/resources/telemetry/client/Client.js +1 -1
  132. package/api/resources/templates/client/Client.js +9 -9
  133. package/api/resources/templates/resources/agents/client/Client.js +1 -1
  134. package/api/resources/tools/client/Client.js +20 -20
  135. package/api/resources/voice/client/Client.js +1 -1
  136. package/api/types/AgentState.d.ts +3 -1
  137. package/api/types/InternalTemplateAgentCreate.d.ts +3 -1
  138. package/api/types/LettaSchemasAgentFileAgentSchema.d.ts +3 -1
  139. package/dist/api/resources/agents/client/Client.d.ts +4 -7
  140. package/dist/api/resources/agents/client/Client.js +13 -16
  141. package/dist/api/resources/agents/client/requests/CreateAgentRequest.d.ts +3 -1
  142. package/dist/api/resources/agents/client/requests/UpdateAgent.d.ts +3 -1
  143. package/dist/api/resources/agents/resources/blocks/client/Client.js +5 -5
  144. package/dist/api/resources/agents/resources/context/client/Client.js +1 -1
  145. package/dist/api/resources/agents/resources/coreMemory/client/Client.js +1 -1
  146. package/dist/api/resources/agents/resources/files/client/Client.js +4 -4
  147. package/dist/api/resources/agents/resources/folders/client/Client.js +3 -3
  148. package/dist/api/resources/agents/resources/groups/client/Client.js +1 -1
  149. package/dist/api/resources/agents/resources/memoryVariables/client/Client.js +1 -1
  150. package/dist/api/resources/agents/resources/messages/client/Client.js +10 -10
  151. package/dist/api/resources/agents/resources/passages/client/Client.js +5 -5
  152. package/dist/api/resources/agents/resources/sources/client/Client.js +3 -3
  153. package/dist/api/resources/agents/resources/templates/client/Client.js +3 -3
  154. package/dist/api/resources/agents/resources/tools/client/Client.js +4 -4
  155. package/dist/api/resources/batches/client/Client.js +4 -4
  156. package/dist/api/resources/batches/resources/messages/client/Client.js +1 -1
  157. package/dist/api/resources/blocks/client/Client.js +6 -6
  158. package/dist/api/resources/blocks/index.d.ts +1 -1
  159. package/dist/api/resources/blocks/index.js +1 -1
  160. package/dist/api/resources/blocks/resources/agents/client/Client.js +20 -3
  161. package/dist/api/resources/blocks/resources/agents/client/requests/AgentsListRequest.d.ts +21 -0
  162. package/dist/api/resources/blocks/resources/agents/index.d.ts +1 -0
  163. package/dist/api/resources/blocks/resources/agents/index.js +1 -0
  164. package/dist/api/resources/blocks/resources/agents/types/AgentsListRequestOrder.d.ts +11 -0
  165. package/dist/api/resources/blocks/resources/agents/types/AgentsListRequestOrder.js +10 -0
  166. package/dist/api/resources/blocks/resources/agents/types/index.d.ts +1 -0
  167. package/dist/api/resources/blocks/resources/agents/types/index.js +17 -0
  168. package/dist/api/resources/blocks/resources/index.d.ts +1 -0
  169. package/dist/api/resources/blocks/resources/index.js +1 -0
  170. package/dist/api/resources/clientSideAccessTokens/client/Client.js +3 -3
  171. package/dist/api/resources/folders/client/Client.d.ts +8 -5
  172. package/dist/api/resources/folders/client/Client.js +21 -15
  173. package/dist/api/resources/folders/client/requests/FoldersListRequest.d.ts +4 -0
  174. package/dist/api/resources/folders/client/requests/{GetFoldersMetadataRequest.d.ts → RetrieveMetadataRequest.d.ts} +1 -1
  175. package/dist/api/resources/folders/client/requests/RetrieveMetadataRequest.js +5 -0
  176. package/dist/api/resources/folders/client/requests/index.d.ts +1 -1
  177. package/dist/api/resources/folders/index.d.ts +1 -1
  178. package/dist/api/resources/folders/index.js +1 -1
  179. package/dist/api/resources/folders/resources/agents/client/Client.d.ts +3 -1
  180. package/dist/api/resources/folders/resources/agents/client/Client.js +27 -6
  181. package/dist/api/resources/folders/resources/agents/client/index.d.ts +1 -1
  182. package/dist/api/resources/folders/resources/agents/client/index.js +15 -0
  183. package/dist/api/resources/folders/resources/agents/client/requests/AgentsListRequest.d.ts +30 -0
  184. package/dist/api/resources/folders/resources/agents/client/requests/AgentsListRequest.js +5 -0
  185. package/dist/api/resources/folders/resources/agents/client/requests/index.d.ts +1 -0
  186. package/dist/api/resources/folders/resources/agents/client/requests/index.js +2 -0
  187. package/dist/api/resources/folders/resources/agents/index.d.ts +1 -0
  188. package/dist/api/resources/folders/resources/agents/index.js +1 -0
  189. package/dist/api/resources/folders/resources/agents/types/AgentsListRequestOrder.d.ts +11 -0
  190. package/dist/api/resources/folders/resources/agents/types/AgentsListRequestOrder.js +10 -0
  191. package/dist/api/resources/folders/resources/agents/types/index.d.ts +1 -0
  192. package/dist/api/resources/folders/resources/agents/types/index.js +17 -0
  193. package/dist/api/resources/folders/resources/files/client/Client.js +17 -6
  194. package/dist/api/resources/folders/resources/files/client/requests/FilesListRequest.d.ts +16 -3
  195. package/dist/api/resources/folders/resources/files/index.d.ts +1 -0
  196. package/dist/api/resources/folders/resources/files/index.js +1 -0
  197. package/dist/api/resources/folders/resources/files/types/FilesListRequestOrder.d.ts +11 -0
  198. package/dist/api/resources/folders/resources/files/types/FilesListRequestOrder.js +10 -0
  199. package/dist/api/resources/folders/resources/files/types/index.d.ts +1 -0
  200. package/dist/api/resources/folders/resources/files/types/index.js +17 -0
  201. package/dist/api/resources/folders/resources/index.d.ts +4 -0
  202. package/dist/api/resources/folders/resources/index.js +4 -0
  203. package/dist/api/resources/folders/resources/passages/client/Client.js +14 -6
  204. package/dist/api/resources/folders/resources/passages/client/requests/PassagesListRequest.d.ts +14 -5
  205. package/dist/api/resources/folders/resources/passages/index.d.ts +1 -0
  206. package/dist/api/resources/folders/resources/passages/index.js +1 -0
  207. package/dist/api/resources/folders/resources/passages/types/PassagesListRequestOrder.d.ts +11 -0
  208. package/dist/api/resources/folders/resources/passages/types/PassagesListRequestOrder.js +10 -0
  209. package/dist/api/resources/folders/resources/passages/types/index.d.ts +1 -0
  210. package/dist/api/resources/folders/resources/passages/types/index.js +17 -0
  211. package/dist/api/resources/groups/client/Client.js +6 -6
  212. package/dist/api/resources/groups/resources/messages/client/Client.js +18 -10
  213. package/dist/api/resources/groups/resources/messages/client/requests/MessagesListRequest.d.ts +14 -5
  214. package/dist/api/resources/groups/resources/messages/types/MessagesListRequestOrder.d.ts +11 -0
  215. package/dist/api/resources/groups/resources/messages/types/MessagesListRequestOrder.js +10 -0
  216. package/dist/api/resources/groups/resources/messages/types/index.d.ts +1 -0
  217. package/dist/api/resources/groups/resources/messages/types/index.js +1 -0
  218. package/dist/api/resources/health/client/Client.js +1 -1
  219. package/dist/api/resources/identities/client/Client.js +7 -7
  220. package/dist/api/resources/identities/index.d.ts +1 -1
  221. package/dist/api/resources/identities/index.js +1 -1
  222. package/dist/api/resources/identities/resources/agents/client/Client.d.ts +7 -1
  223. package/dist/api/resources/identities/resources/agents/client/Client.js +58 -11
  224. package/dist/api/resources/identities/resources/agents/client/index.d.ts +1 -1
  225. package/dist/api/resources/identities/resources/agents/client/index.js +15 -0
  226. package/dist/api/resources/identities/resources/agents/client/requests/AgentsListRequest.d.ts +30 -0
  227. package/dist/api/resources/identities/resources/agents/client/requests/AgentsListRequest.js +5 -0
  228. package/dist/api/resources/identities/resources/agents/client/requests/index.d.ts +1 -0
  229. package/dist/api/resources/identities/resources/agents/client/requests/index.js +2 -0
  230. package/dist/api/resources/identities/resources/agents/index.d.ts +1 -0
  231. package/dist/api/resources/identities/resources/agents/index.js +1 -0
  232. package/dist/api/resources/identities/resources/agents/types/AgentsListRequestOrder.d.ts +11 -0
  233. package/dist/api/resources/identities/resources/agents/types/AgentsListRequestOrder.js +10 -0
  234. package/dist/api/resources/identities/resources/agents/types/index.d.ts +1 -0
  235. package/dist/api/resources/identities/resources/agents/types/index.js +17 -0
  236. package/dist/api/resources/identities/resources/blocks/client/Client.d.ts +7 -1
  237. package/dist/api/resources/identities/resources/blocks/client/Client.js +58 -11
  238. package/dist/api/resources/identities/resources/blocks/client/index.d.ts +1 -1
  239. package/dist/api/resources/identities/resources/blocks/client/index.js +15 -0
  240. package/dist/api/resources/identities/resources/blocks/client/requests/BlocksListRequest.d.ts +30 -0
  241. package/dist/api/resources/identities/resources/blocks/client/requests/BlocksListRequest.js +5 -0
  242. package/dist/api/resources/identities/resources/blocks/client/requests/index.d.ts +1 -0
  243. package/dist/api/resources/identities/resources/blocks/client/requests/index.js +2 -0
  244. package/dist/api/resources/identities/resources/blocks/index.d.ts +1 -0
  245. package/dist/api/resources/identities/resources/blocks/index.js +1 -0
  246. package/dist/api/resources/identities/resources/blocks/types/BlocksListRequestOrder.d.ts +11 -0
  247. package/dist/api/resources/identities/resources/blocks/types/BlocksListRequestOrder.js +10 -0
  248. package/dist/api/resources/identities/resources/blocks/types/index.d.ts +1 -0
  249. package/dist/api/resources/identities/resources/blocks/types/index.js +17 -0
  250. package/dist/api/resources/identities/resources/index.d.ts +5 -1
  251. package/dist/api/resources/identities/resources/index.js +9 -2
  252. package/dist/api/resources/identities/resources/properties/client/Client.js +1 -1
  253. package/dist/api/resources/jobs/client/Client.js +5 -5
  254. package/dist/api/resources/models/client/Client.js +2 -2
  255. package/dist/api/resources/models/resources/embeddings/client/Client.js +1 -1
  256. package/dist/api/resources/projects/client/Client.js +1 -1
  257. package/dist/api/resources/providers/client/Client.js +6 -6
  258. package/dist/api/resources/runs/client/Client.js +5 -5
  259. package/dist/api/resources/runs/resources/messages/client/Client.js +1 -1
  260. package/dist/api/resources/runs/resources/steps/client/Client.js +1 -1
  261. package/dist/api/resources/runs/resources/usage/client/Client.js +1 -1
  262. package/dist/api/resources/sources/client/Client.js +10 -10
  263. package/dist/api/resources/sources/resources/files/client/Client.js +3 -3
  264. package/dist/api/resources/sources/resources/passages/client/Client.js +1 -1
  265. package/dist/api/resources/steps/client/Client.js +2 -2
  266. package/dist/api/resources/steps/resources/feedback/client/Client.js +1 -1
  267. package/dist/api/resources/steps/resources/metrics/client/Client.js +1 -1
  268. package/dist/api/resources/steps/resources/trace/client/Client.js +1 -1
  269. package/dist/api/resources/tags/client/Client.js +5 -2
  270. package/dist/api/resources/tags/client/requests/TagsListRequest.d.ts +5 -1
  271. package/dist/api/resources/telemetry/client/Client.js +1 -1
  272. package/dist/api/resources/templates/client/Client.js +9 -9
  273. package/dist/api/resources/templates/resources/agents/client/Client.js +1 -1
  274. package/dist/api/resources/tools/client/Client.js +20 -20
  275. package/dist/api/resources/voice/client/Client.js +1 -1
  276. package/dist/api/types/AgentState.d.ts +3 -1
  277. package/dist/api/types/InternalTemplateAgentCreate.d.ts +3 -1
  278. package/dist/api/types/LettaSchemasAgentFileAgentSchema.d.ts +3 -1
  279. package/dist/serialization/resources/agents/client/requests/CreateAgentRequest.d.ts +1 -0
  280. package/dist/serialization/resources/agents/client/requests/CreateAgentRequest.js +1 -0
  281. package/dist/serialization/resources/agents/client/requests/UpdateAgent.d.ts +1 -0
  282. package/dist/serialization/resources/agents/client/requests/UpdateAgent.js +3 -0
  283. package/dist/serialization/resources/blocks/index.d.ts +1 -1
  284. package/dist/serialization/resources/blocks/index.js +1 -1
  285. package/dist/serialization/resources/blocks/resources/agents/index.d.ts +1 -0
  286. package/dist/serialization/resources/blocks/resources/agents/index.js +1 -0
  287. package/dist/serialization/resources/blocks/resources/agents/types/AgentsListRequestOrder.d.ts +10 -0
  288. package/dist/serialization/resources/blocks/resources/agents/types/AgentsListRequestOrder.js +41 -0
  289. package/dist/serialization/resources/blocks/resources/agents/types/index.d.ts +1 -0
  290. package/dist/serialization/resources/blocks/resources/agents/types/index.js +17 -0
  291. package/dist/serialization/resources/blocks/resources/index.d.ts +1 -0
  292. package/dist/serialization/resources/blocks/resources/index.js +4 -0
  293. package/dist/serialization/resources/folders/index.d.ts +1 -1
  294. package/dist/serialization/resources/folders/index.js +1 -1
  295. package/dist/serialization/resources/folders/resources/agents/index.d.ts +1 -0
  296. package/dist/serialization/resources/folders/resources/agents/index.js +1 -0
  297. package/dist/serialization/resources/folders/resources/agents/types/AgentsListRequestOrder.d.ts +10 -0
  298. package/dist/serialization/resources/folders/resources/agents/types/AgentsListRequestOrder.js +41 -0
  299. package/dist/serialization/resources/folders/resources/agents/types/index.d.ts +1 -0
  300. package/dist/serialization/resources/folders/resources/agents/types/index.js +17 -0
  301. package/dist/serialization/resources/folders/resources/files/index.d.ts +1 -0
  302. package/dist/serialization/resources/folders/resources/files/index.js +1 -0
  303. package/dist/serialization/resources/folders/resources/files/types/FilesListRequestOrder.d.ts +10 -0
  304. package/dist/serialization/resources/folders/resources/files/types/FilesListRequestOrder.js +41 -0
  305. package/dist/serialization/resources/folders/resources/files/types/index.d.ts +1 -0
  306. package/dist/serialization/resources/folders/resources/files/types/index.js +17 -0
  307. package/dist/serialization/resources/folders/resources/index.d.ts +3 -0
  308. package/dist/serialization/resources/folders/resources/index.js +6 -0
  309. package/dist/serialization/resources/folders/resources/passages/index.d.ts +1 -0
  310. package/dist/serialization/resources/folders/resources/passages/index.js +1 -0
  311. package/dist/serialization/resources/folders/resources/passages/types/PassagesListRequestOrder.d.ts +10 -0
  312. package/dist/serialization/resources/folders/resources/passages/types/PassagesListRequestOrder.js +41 -0
  313. package/dist/serialization/resources/folders/resources/passages/types/index.d.ts +1 -0
  314. package/dist/serialization/resources/folders/resources/passages/types/index.js +17 -0
  315. package/dist/serialization/resources/groups/resources/messages/types/MessagesListRequestOrder.d.ts +10 -0
  316. package/dist/serialization/resources/groups/resources/messages/types/MessagesListRequestOrder.js +41 -0
  317. package/dist/serialization/resources/groups/resources/messages/types/index.d.ts +1 -0
  318. package/dist/serialization/resources/groups/resources/messages/types/index.js +1 -0
  319. package/dist/serialization/resources/identities/index.d.ts +1 -1
  320. package/dist/serialization/resources/identities/index.js +1 -1
  321. package/dist/serialization/resources/identities/resources/agents/client/index.d.ts +1 -0
  322. package/dist/serialization/resources/identities/resources/agents/client/index.js +37 -0
  323. package/dist/serialization/resources/identities/resources/agents/client/list.d.ts +11 -0
  324. package/dist/serialization/resources/identities/resources/agents/client/list.js +42 -0
  325. package/dist/serialization/resources/identities/resources/agents/index.d.ts +2 -0
  326. package/dist/serialization/resources/identities/resources/agents/index.js +18 -0
  327. package/dist/serialization/resources/identities/resources/agents/types/AgentsListRequestOrder.d.ts +10 -0
  328. package/dist/serialization/resources/identities/resources/agents/types/AgentsListRequestOrder.js +41 -0
  329. package/dist/serialization/resources/identities/resources/agents/types/index.d.ts +1 -0
  330. package/dist/serialization/resources/identities/resources/agents/types/index.js +17 -0
  331. package/dist/serialization/resources/identities/resources/blocks/client/index.d.ts +1 -0
  332. package/dist/serialization/resources/identities/resources/blocks/client/index.js +37 -0
  333. package/dist/serialization/resources/identities/resources/blocks/client/list.d.ts +11 -0
  334. package/dist/serialization/resources/identities/resources/blocks/client/list.js +42 -0
  335. package/dist/serialization/resources/identities/resources/blocks/index.d.ts +2 -0
  336. package/dist/serialization/resources/identities/resources/blocks/index.js +18 -0
  337. package/dist/serialization/resources/identities/resources/blocks/types/BlocksListRequestOrder.d.ts +10 -0
  338. package/dist/serialization/resources/identities/resources/blocks/types/BlocksListRequestOrder.js +41 -0
  339. package/dist/serialization/resources/identities/resources/blocks/types/index.d.ts +1 -0
  340. package/dist/serialization/resources/identities/resources/blocks/types/index.js +17 -0
  341. package/dist/serialization/resources/identities/resources/index.d.ts +4 -0
  342. package/dist/serialization/resources/identities/resources/index.js +8 -1
  343. package/dist/serialization/types/AgentState.d.ts +1 -0
  344. package/dist/serialization/types/AgentState.js +1 -0
  345. package/dist/serialization/types/InternalTemplateAgentCreate.d.ts +1 -0
  346. package/dist/serialization/types/InternalTemplateAgentCreate.js +1 -0
  347. package/dist/serialization/types/LettaSchemasAgentFileAgentSchema.d.ts +1 -0
  348. package/dist/serialization/types/LettaSchemasAgentFileAgentSchema.js +1 -0
  349. package/dist/version.d.ts +1 -1
  350. package/dist/version.js +1 -1
  351. package/package.json +1 -1
  352. package/reference.md +67 -14
  353. package/serialization/resources/agents/client/requests/CreateAgentRequest.d.ts +1 -0
  354. package/serialization/resources/agents/client/requests/CreateAgentRequest.js +1 -0
  355. package/serialization/resources/agents/client/requests/UpdateAgent.d.ts +1 -0
  356. package/serialization/resources/agents/client/requests/UpdateAgent.js +3 -0
  357. package/serialization/resources/blocks/index.d.ts +1 -1
  358. package/serialization/resources/blocks/index.js +1 -1
  359. package/serialization/resources/blocks/resources/agents/index.d.ts +1 -0
  360. package/serialization/resources/blocks/resources/agents/index.js +1 -0
  361. package/serialization/resources/blocks/resources/agents/types/AgentsListRequestOrder.d.ts +10 -0
  362. package/serialization/resources/blocks/resources/agents/types/AgentsListRequestOrder.js +41 -0
  363. package/serialization/resources/blocks/resources/agents/types/index.d.ts +1 -0
  364. package/serialization/resources/blocks/resources/agents/types/index.js +17 -0
  365. package/serialization/resources/blocks/resources/index.d.ts +1 -0
  366. package/serialization/resources/blocks/resources/index.js +4 -0
  367. package/serialization/resources/folders/index.d.ts +1 -1
  368. package/serialization/resources/folders/index.js +1 -1
  369. package/serialization/resources/folders/resources/agents/index.d.ts +1 -0
  370. package/serialization/resources/folders/resources/agents/index.js +1 -0
  371. package/serialization/resources/folders/resources/agents/types/AgentsListRequestOrder.d.ts +10 -0
  372. package/serialization/resources/folders/resources/agents/types/AgentsListRequestOrder.js +41 -0
  373. package/serialization/resources/folders/resources/agents/types/index.d.ts +1 -0
  374. package/serialization/resources/folders/resources/agents/types/index.js +17 -0
  375. package/serialization/resources/folders/resources/files/index.d.ts +1 -0
  376. package/serialization/resources/folders/resources/files/index.js +1 -0
  377. package/serialization/resources/folders/resources/files/types/FilesListRequestOrder.d.ts +10 -0
  378. package/serialization/resources/folders/resources/files/types/FilesListRequestOrder.js +41 -0
  379. package/serialization/resources/folders/resources/files/types/index.d.ts +1 -0
  380. package/serialization/resources/folders/resources/files/types/index.js +17 -0
  381. package/serialization/resources/folders/resources/index.d.ts +3 -0
  382. package/serialization/resources/folders/resources/index.js +6 -0
  383. package/serialization/resources/folders/resources/passages/index.d.ts +1 -0
  384. package/serialization/resources/folders/resources/passages/index.js +1 -0
  385. package/serialization/resources/folders/resources/passages/types/PassagesListRequestOrder.d.ts +10 -0
  386. package/serialization/resources/folders/resources/passages/types/PassagesListRequestOrder.js +41 -0
  387. package/serialization/resources/folders/resources/passages/types/index.d.ts +1 -0
  388. package/serialization/resources/folders/resources/passages/types/index.js +17 -0
  389. package/serialization/resources/groups/resources/messages/types/MessagesListRequestOrder.d.ts +10 -0
  390. package/serialization/resources/groups/resources/messages/types/MessagesListRequestOrder.js +41 -0
  391. package/serialization/resources/groups/resources/messages/types/index.d.ts +1 -0
  392. package/serialization/resources/groups/resources/messages/types/index.js +1 -0
  393. package/serialization/resources/identities/index.d.ts +1 -1
  394. package/serialization/resources/identities/index.js +1 -1
  395. package/serialization/resources/identities/resources/agents/client/index.d.ts +1 -0
  396. package/serialization/resources/identities/resources/agents/client/index.js +37 -0
  397. package/serialization/resources/identities/resources/agents/client/list.d.ts +11 -0
  398. package/serialization/resources/identities/resources/agents/client/list.js +42 -0
  399. package/serialization/resources/identities/resources/agents/index.d.ts +2 -0
  400. package/serialization/resources/identities/resources/agents/index.js +18 -0
  401. package/serialization/resources/identities/resources/agents/types/AgentsListRequestOrder.d.ts +10 -0
  402. package/serialization/resources/identities/resources/agents/types/AgentsListRequestOrder.js +41 -0
  403. package/serialization/resources/identities/resources/agents/types/index.d.ts +1 -0
  404. package/serialization/resources/identities/resources/agents/types/index.js +17 -0
  405. package/serialization/resources/identities/resources/blocks/client/index.d.ts +1 -0
  406. package/serialization/resources/identities/resources/blocks/client/index.js +37 -0
  407. package/serialization/resources/identities/resources/blocks/client/list.d.ts +11 -0
  408. package/serialization/resources/identities/resources/blocks/client/list.js +42 -0
  409. package/serialization/resources/identities/resources/blocks/index.d.ts +2 -0
  410. package/serialization/resources/identities/resources/blocks/index.js +18 -0
  411. package/serialization/resources/identities/resources/blocks/types/BlocksListRequestOrder.d.ts +10 -0
  412. package/serialization/resources/identities/resources/blocks/types/BlocksListRequestOrder.js +41 -0
  413. package/serialization/resources/identities/resources/blocks/types/index.d.ts +1 -0
  414. package/serialization/resources/identities/resources/blocks/types/index.js +17 -0
  415. package/serialization/resources/identities/resources/index.d.ts +4 -0
  416. package/serialization/resources/identities/resources/index.js +8 -1
  417. package/serialization/types/AgentState.d.ts +1 -0
  418. package/serialization/types/AgentState.js +1 -0
  419. package/serialization/types/InternalTemplateAgentCreate.d.ts +1 -0
  420. package/serialization/types/InternalTemplateAgentCreate.js +1 -0
  421. package/serialization/types/LettaSchemasAgentFileAgentSchema.d.ts +1 -0
  422. package/serialization/types/LettaSchemasAgentFileAgentSchema.js +1 -0
  423. package/version.d.ts +1 -1
  424. package/version.js +1 -1
  425. /package/api/resources/folders/client/requests/{GetFoldersMetadataRequest.js → RetrieveMetadataRequest.js} +0 -0
  426. /package/{dist/api/resources/folders/client/requests/GetFoldersMetadataRequest.js → api/resources/folders/resources/agents/client/requests/AgentsListRequest.js} +0 -0
@@ -55,8 +55,10 @@ export interface AgentState {
55
55
  sources: Letta.Source[];
56
56
  /** The tags associated with the agent. */
57
57
  tags: string[];
58
- /** The environment variables for tool execution specific to this agent. */
58
+ /** Deprecated: use `secrets` field instead. */
59
59
  toolExecEnvironmentVariables?: Letta.AgentEnvironmentVariable[];
60
+ /** The environment variables for tool execution specific to this agent. */
61
+ secrets?: Letta.AgentEnvironmentVariable[];
60
62
  /** The id of the project the agent belongs to. */
61
63
  projectId?: string;
62
64
  /** The id of the template the agent belongs to. */
@@ -66,8 +66,10 @@ export interface InternalTemplateAgentCreate {
66
66
  template?: boolean;
67
67
  /** Deprecated: Project should now be passed via the X-Project header instead of in the request body. If using the sdk, this can be done via the new x_project field below. */
68
68
  project?: string;
69
- /** The environment variables for tool execution specific to this agent. */
69
+ /** Deprecated: use `secrets` field instead. */
70
70
  toolExecEnvironmentVariables?: Record<string, string | undefined>;
71
+ /** The environment variables for tool execution specific to this agent. */
72
+ secrets?: Record<string, string | undefined>;
71
73
  /** The variables that should be set for the agent. */
72
74
  memoryVariables?: Record<string, string | undefined>;
73
75
  /** The id of the project the agent belongs to. */
@@ -66,8 +66,10 @@ export interface LettaSchemasAgentFileAgentSchema {
66
66
  template?: boolean;
67
67
  /** Deprecated: Project should now be passed via the X-Project header instead of in the request body. If using the sdk, this can be done via the new x_project field below. */
68
68
  project?: string;
69
- /** The environment variables for tool execution specific to this agent. */
69
+ /** Deprecated: use `secrets` field instead. */
70
70
  toolExecEnvironmentVariables?: Record<string, string | undefined>;
71
+ /** The environment variables for tool execution specific to this agent. */
72
+ secrets?: Record<string, string | undefined>;
71
73
  /** The variables that should be set for the agent. */
72
74
  memoryVariables?: Record<string, string | undefined>;
73
75
  /** The id of the project the agent belongs to. */
@@ -69,10 +69,7 @@ export declare class Agents {
69
69
  get templates(): Templates;
70
70
  get memoryVariables(): MemoryVariables;
71
71
  /**
72
- * List all agents associated with a given user.
73
- *
74
- * This endpoint retrieves a list of all agents and their configurations
75
- * associated with the specified user ID.
72
+ * Get a list of all agents.
76
73
  *
77
74
  * @param {Letta.AgentsListRequest} request
78
75
  * @param {Agents.RequestOptions} requestOptions - Request-specific configuration.
@@ -85,7 +82,7 @@ export declare class Agents {
85
82
  list(request?: Letta.AgentsListRequest, requestOptions?: Agents.RequestOptions): core.HttpResponsePromise<Letta.AgentState[]>;
86
83
  private __list;
87
84
  /**
88
- * Create a new agent with the specified configuration.
85
+ * Create an agent.
89
86
  *
90
87
  * @param {Letta.CreateAgentRequest} request
91
88
  * @param {Agents.RequestOptions} requestOptions - Request-specific configuration.
@@ -98,7 +95,7 @@ export declare class Agents {
98
95
  create(request?: Letta.CreateAgentRequest, requestOptions?: Agents.RequestOptions): core.HttpResponsePromise<Letta.AgentState>;
99
96
  private __create;
100
97
  /**
101
- * Get the count of all agents associated with a given user.
98
+ * Get the total number of agents.
102
99
  *
103
100
  * @param {Agents.RequestOptions} requestOptions - Request-specific configuration.
104
101
  *
@@ -170,7 +167,7 @@ export declare class Agents {
170
167
  delete(agentId: string, requestOptions?: Agents.RequestOptions): core.HttpResponsePromise<unknown>;
171
168
  private __delete;
172
169
  /**
173
- * Update an existing agent
170
+ * Update an existing agent.
174
171
  *
175
172
  * @param {string} agentId
176
173
  * @param {Letta.UpdateAgent} request
@@ -120,10 +120,7 @@ class Agents {
120
120
  return ((_a = this._memoryVariables) !== null && _a !== void 0 ? _a : (this._memoryVariables = new Client_12.MemoryVariables(this._options)));
121
121
  }
122
122
  /**
123
- * List all agents associated with a given user.
124
- *
125
- * This endpoint retrieves a list of all agents and their configurations
126
- * associated with the specified user ID.
123
+ * Get a list of all agents.
127
124
  *
128
125
  * @param {Letta.AgentsListRequest} request
129
126
  * @param {Agents.RequestOptions} requestOptions - Request-specific configuration.
@@ -216,7 +213,7 @@ class Agents {
216
213
  method: "GET",
217
214
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
218
215
  ? yield core.Supplier.get(this._options.project)
219
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68654", "User-Agent": "@letta-ai/letta-client/0.0.68654", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
216
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68656", "User-Agent": "@letta-ai/letta-client/0.0.68656", "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),
220
217
  contentType: "application/json",
221
218
  queryParameters: _queryParams,
222
219
  requestType: "json",
@@ -272,7 +269,7 @@ class Agents {
272
269
  });
273
270
  }
274
271
  /**
275
- * Create a new agent with the specified configuration.
272
+ * Create an agent.
276
273
  *
277
274
  * @param {Letta.CreateAgentRequest} request
278
275
  * @param {Agents.RequestOptions} requestOptions - Request-specific configuration.
@@ -293,7 +290,7 @@ class Agents {
293
290
  method: "POST",
294
291
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
295
292
  ? yield core.Supplier.get(this._options.project)
296
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68654", "User-Agent": "@letta-ai/letta-client/0.0.68654", "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),
293
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68656", "User-Agent": "@letta-ai/letta-client/0.0.68656", "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),
297
294
  contentType: "application/json",
298
295
  requestType: "json",
299
296
  body: serializers.CreateAgentRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -349,7 +346,7 @@ class Agents {
349
346
  });
350
347
  }
351
348
  /**
352
- * Get the count of all agents associated with a given user.
349
+ * Get the total number of agents.
353
350
  *
354
351
  * @param {Agents.RequestOptions} requestOptions - Request-specific configuration.
355
352
  *
@@ -369,7 +366,7 @@ class Agents {
369
366
  method: "GET",
370
367
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
371
368
  ? yield core.Supplier.get(this._options.project)
372
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68654", "User-Agent": "@letta-ai/letta-client/0.0.68654", "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
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68656", "User-Agent": "@letta-ai/letta-client/0.0.68656", "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),
373
370
  contentType: "application/json",
374
371
  requestType: "json",
375
372
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -458,7 +455,7 @@ class Agents {
458
455
  method: "GET",
459
456
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
460
457
  ? yield core.Supplier.get(this._options.project)
461
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68654", "User-Agent": "@letta-ai/letta-client/0.0.68654", "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),
458
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68656", "User-Agent": "@letta-ai/letta-client/0.0.68656", "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),
462
459
  contentType: "application/json",
463
460
  queryParameters: _queryParams,
464
461
  requestType: "json",
@@ -558,7 +555,7 @@ class Agents {
558
555
  method: "POST",
559
556
  headers: Object.assign(Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
560
557
  ? yield core.Supplier.get(this._options.project)
561
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68654", "User-Agent": "@letta-ai/letta-client/0.0.68654", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, "x-override-embedding-model": request.overrideEmbeddingModel != null ? request.overrideEmbeddingModel : undefined }, (yield this._getCustomAuthorizationHeaders())), _maybeEncodedRequest.headers), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
558
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68656", "User-Agent": "@letta-ai/letta-client/0.0.68656", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, "x-override-embedding-model": request.overrideEmbeddingModel != null ? request.overrideEmbeddingModel : undefined }, (yield this._getCustomAuthorizationHeaders())), _maybeEncodedRequest.headers), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
562
559
  requestType: "file",
563
560
  duplex: _maybeEncodedRequest.duplex,
564
561
  body: _maybeEncodedRequest.body,
@@ -646,7 +643,7 @@ class Agents {
646
643
  method: "GET",
647
644
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
648
645
  ? yield core.Supplier.get(this._options.project)
649
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68654", "User-Agent": "@letta-ai/letta-client/0.0.68654", "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),
646
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68656", "User-Agent": "@letta-ai/letta-client/0.0.68656", "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),
650
647
  contentType: "application/json",
651
648
  queryParameters: _queryParams,
652
649
  requestType: "json",
@@ -723,7 +720,7 @@ class Agents {
723
720
  method: "DELETE",
724
721
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
725
722
  ? yield core.Supplier.get(this._options.project)
726
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68654", "User-Agent": "@letta-ai/letta-client/0.0.68654", "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),
723
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68656", "User-Agent": "@letta-ai/letta-client/0.0.68656", "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),
727
724
  contentType: "application/json",
728
725
  requestType: "json",
729
726
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -769,7 +766,7 @@ class Agents {
769
766
  });
770
767
  }
771
768
  /**
772
- * Update an existing agent
769
+ * Update an existing agent.
773
770
  *
774
771
  * @param {string} agentId
775
772
  * @param {Letta.UpdateAgent} request
@@ -791,7 +788,7 @@ class Agents {
791
788
  method: "PATCH",
792
789
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
793
790
  ? yield core.Supplier.get(this._options.project)
794
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68654", "User-Agent": "@letta-ai/letta-client/0.0.68654", "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),
791
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68656", "User-Agent": "@letta-ai/letta-client/0.0.68656", "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),
795
792
  contentType: "application/json",
796
793
  requestType: "json",
797
794
  body: serializers.UpdateAgent.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -868,7 +865,7 @@ class Agents {
868
865
  method: "POST",
869
866
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
870
867
  ? yield core.Supplier.get(this._options.project)
871
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68654", "User-Agent": "@letta-ai/letta-client/0.0.68654", "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),
868
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68656", "User-Agent": "@letta-ai/letta-client/0.0.68656", "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),
872
869
  contentType: "application/json",
873
870
  requestType: "json",
874
871
  body: serializers.AgentsSearchRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -67,8 +67,10 @@ export interface CreateAgentRequest {
67
67
  template?: boolean;
68
68
  /** Deprecated: Project should now be passed via the X-Project header instead of in the request body. If using the sdk, this can be done via the new x_project field below. */
69
69
  project?: string;
70
- /** The environment variables for tool execution specific to this agent. */
70
+ /** Deprecated: use `secrets` field instead. */
71
71
  toolExecEnvironmentVariables?: Record<string, string | undefined>;
72
+ /** The environment variables for tool execution specific to this agent. */
73
+ secrets?: Record<string, string | undefined>;
72
74
  /** The variables that should be set for the agent. */
73
75
  memoryVariables?: Record<string, string | undefined>;
74
76
  /** The id of the project the agent belongs to. */
@@ -31,8 +31,10 @@ export interface UpdateAgent {
31
31
  description?: string;
32
32
  /** The metadata of the agent. */
33
33
  metadata?: Record<string, unknown>;
34
- /** The environment variables for tool execution specific to this agent. */
34
+ /** Deprecated: use `secrets` field instead */
35
35
  toolExecEnvironmentVariables?: Record<string, string | undefined>;
36
+ /** The environment variables for tool execution specific to this agent. */
37
+ secrets?: Record<string, string | undefined>;
36
38
  /** The id of the project the agent belongs to. */
37
39
  projectId?: string;
38
40
  /** The id of the template the agent belongs to. */
@@ -82,7 +82,7 @@ class Blocks {
82
82
  method: "GET",
83
83
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
84
84
  ? yield core.Supplier.get(this._options.project)
85
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68654", "User-Agent": "@letta-ai/letta-client/0.0.68654", "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
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68656", "User-Agent": "@letta-ai/letta-client/0.0.68656", "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),
86
86
  contentType: "application/json",
87
87
  requestType: "json",
88
88
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -160,7 +160,7 @@ class Blocks {
160
160
  method: "PATCH",
161
161
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
162
162
  ? yield core.Supplier.get(this._options.project)
163
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68654", "User-Agent": "@letta-ai/letta-client/0.0.68654", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
163
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68656", "User-Agent": "@letta-ai/letta-client/0.0.68656", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
164
164
  contentType: "application/json",
165
165
  requestType: "json",
166
166
  body: serializers.BlockUpdate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -237,7 +237,7 @@ class Blocks {
237
237
  method: "GET",
238
238
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
239
239
  ? yield core.Supplier.get(this._options.project)
240
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68654", "User-Agent": "@letta-ai/letta-client/0.0.68654", "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),
240
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68656", "User-Agent": "@letta-ai/letta-client/0.0.68656", "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),
241
241
  contentType: "application/json",
242
242
  requestType: "json",
243
243
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -314,7 +314,7 @@ class Blocks {
314
314
  method: "PATCH",
315
315
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
316
316
  ? yield core.Supplier.get(this._options.project)
317
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68654", "User-Agent": "@letta-ai/letta-client/0.0.68654", "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),
317
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68656", "User-Agent": "@letta-ai/letta-client/0.0.68656", "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),
318
318
  contentType: "application/json",
319
319
  requestType: "json",
320
320
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -391,7 +391,7 @@ class Blocks {
391
391
  method: "PATCH",
392
392
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
393
393
  ? yield core.Supplier.get(this._options.project)
394
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68654", "User-Agent": "@letta-ai/letta-client/0.0.68654", "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),
394
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68656", "User-Agent": "@letta-ai/letta-client/0.0.68656", "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),
395
395
  contentType: "application/json",
396
396
  requestType: "json",
397
397
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -81,7 +81,7 @@ class Context {
81
81
  method: "GET",
82
82
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
83
83
  ? yield core.Supplier.get(this._options.project)
84
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68654", "User-Agent": "@letta-ai/letta-client/0.0.68654", "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
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68656", "User-Agent": "@letta-ai/letta-client/0.0.68656", "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
  requestType: "json",
87
87
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -82,7 +82,7 @@ class CoreMemory {
82
82
  method: "GET",
83
83
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
84
84
  ? yield core.Supplier.get(this._options.project)
85
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68654", "User-Agent": "@letta-ai/letta-client/0.0.68654", "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
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68656", "User-Agent": "@letta-ai/letta-client/0.0.68656", "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),
86
86
  contentType: "application/json",
87
87
  requestType: "json",
88
88
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -84,7 +84,7 @@ class Files {
84
84
  method: "PATCH",
85
85
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
86
86
  ? yield core.Supplier.get(this._options.project)
87
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68654", "User-Agent": "@letta-ai/letta-client/0.0.68654", "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
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68656", "User-Agent": "@letta-ai/letta-client/0.0.68656", "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
  requestType: "json",
90
90
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -165,7 +165,7 @@ class Files {
165
165
  method: "PATCH",
166
166
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
167
167
  ? yield core.Supplier.get(this._options.project)
168
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68654", "User-Agent": "@letta-ai/letta-client/0.0.68654", "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),
168
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68656", "User-Agent": "@letta-ai/letta-client/0.0.68656", "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),
169
169
  contentType: "application/json",
170
170
  requestType: "json",
171
171
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -245,7 +245,7 @@ class Files {
245
245
  method: "PATCH",
246
246
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
247
247
  ? yield core.Supplier.get(this._options.project)
248
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68654", "User-Agent": "@letta-ai/letta-client/0.0.68654", "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),
248
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68656", "User-Agent": "@letta-ai/letta-client/0.0.68656", "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),
249
249
  contentType: "application/json",
250
250
  requestType: "json",
251
251
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -324,7 +324,7 @@ class Files {
324
324
  method: "GET",
325
325
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
326
326
  ? yield core.Supplier.get(this._options.project)
327
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68654", "User-Agent": "@letta-ai/letta-client/0.0.68654", "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),
327
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68656", "User-Agent": "@letta-ai/letta-client/0.0.68656", "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),
328
328
  contentType: "application/json",
329
329
  queryParameters: _queryParams,
330
330
  requestType: "json",
@@ -82,7 +82,7 @@ class Folders {
82
82
  method: "PATCH",
83
83
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
84
84
  ? yield core.Supplier.get(this._options.project)
85
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68654", "User-Agent": "@letta-ai/letta-client/0.0.68654", "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
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68656", "User-Agent": "@letta-ai/letta-client/0.0.68656", "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),
86
86
  contentType: "application/json",
87
87
  requestType: "json",
88
88
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -159,7 +159,7 @@ class Folders {
159
159
  method: "PATCH",
160
160
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
161
161
  ? yield core.Supplier.get(this._options.project)
162
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68654", "User-Agent": "@letta-ai/letta-client/0.0.68654", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
162
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68656", "User-Agent": "@letta-ai/letta-client/0.0.68656", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
163
163
  contentType: "application/json",
164
164
  requestType: "json",
165
165
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -235,7 +235,7 @@ class Folders {
235
235
  method: "GET",
236
236
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
237
237
  ? yield core.Supplier.get(this._options.project)
238
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68654", "User-Agent": "@letta-ai/letta-client/0.0.68654", "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),
238
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68656", "User-Agent": "@letta-ai/letta-client/0.0.68656", "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),
239
239
  contentType: "application/json",
240
240
  requestType: "json",
241
241
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -87,7 +87,7 @@ class Groups {
87
87
  method: "GET",
88
88
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
89
89
  ? yield core.Supplier.get(this._options.project)
90
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68654", "User-Agent": "@letta-ai/letta-client/0.0.68654", "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
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68656", "User-Agent": "@letta-ai/letta-client/0.0.68656", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
91
91
  contentType: "application/json",
92
92
  queryParameters: _queryParams,
93
93
  requestType: "json",
@@ -83,7 +83,7 @@ class MemoryVariables {
83
83
  method: "GET",
84
84
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
85
85
  ? yield core.Supplier.get(this._options.project)
86
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68654", "User-Agent": "@letta-ai/letta-client/0.0.68654", "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),
86
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68656", "User-Agent": "@letta-ai/letta-client/0.0.68656", "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
87
  contentType: "application/json",
88
88
  requestType: "json",
89
89
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -108,7 +108,7 @@ class Messages {
108
108
  method: "GET",
109
109
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
110
110
  ? yield core.Supplier.get(this._options.project)
111
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68654", "User-Agent": "@letta-ai/letta-client/0.0.68654", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
111
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68656", "User-Agent": "@letta-ai/letta-client/0.0.68656", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
112
112
  contentType: "application/json",
113
113
  queryParameters: _queryParams,
114
114
  requestType: "json",
@@ -195,7 +195,7 @@ class Messages {
195
195
  method: "POST",
196
196
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
197
197
  ? yield core.Supplier.get(this._options.project)
198
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68654", "User-Agent": "@letta-ai/letta-client/0.0.68654", "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),
198
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68656", "User-Agent": "@letta-ai/letta-client/0.0.68656", "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),
199
199
  contentType: "application/json",
200
200
  requestType: "json",
201
201
  body: serializers.LettaRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -276,7 +276,7 @@ class Messages {
276
276
  method: "PATCH",
277
277
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
278
278
  ? yield core.Supplier.get(this._options.project)
279
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68654", "User-Agent": "@letta-ai/letta-client/0.0.68654", "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
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68656", "User-Agent": "@letta-ai/letta-client/0.0.68656", "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
  body: serializers.agents.MessagesModifyRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -347,7 +347,7 @@ class Messages {
347
347
  method: "POST",
348
348
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
349
349
  ? yield core.Supplier.get(this._options.project)
350
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68654", "User-Agent": "@letta-ai/letta-client/0.0.68654", "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),
350
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68656", "User-Agent": "@letta-ai/letta-client/0.0.68656", "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),
351
351
  contentType: "application/json",
352
352
  requestType: "json",
353
353
  body: serializers.LettaStreamingRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -438,7 +438,7 @@ class Messages {
438
438
  method: "POST",
439
439
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
440
440
  ? yield core.Supplier.get(this._options.project)
441
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68654", "User-Agent": "@letta-ai/letta-client/0.0.68654", "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),
441
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68656", "User-Agent": "@letta-ai/letta-client/0.0.68656", "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),
442
442
  contentType: "application/json",
443
443
  requestType: "json",
444
444
  body: serializers.agents.CancelAgentRunRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -517,7 +517,7 @@ class Messages {
517
517
  method: "POST",
518
518
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
519
519
  ? yield core.Supplier.get(this._options.project)
520
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68654", "User-Agent": "@letta-ai/letta-client/0.0.68654", "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),
520
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68656", "User-Agent": "@letta-ai/letta-client/0.0.68656", "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),
521
521
  contentType: "application/json",
522
522
  requestType: "json",
523
523
  body: serializers.agents.MessageSearchRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -607,7 +607,7 @@ class Messages {
607
607
  method: "POST",
608
608
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
609
609
  ? yield core.Supplier.get(this._options.project)
610
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68654", "User-Agent": "@letta-ai/letta-client/0.0.68654", "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),
610
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68656", "User-Agent": "@letta-ai/letta-client/0.0.68656", "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),
611
611
  contentType: "application/json",
612
612
  requestType: "json",
613
613
  body: serializers.agents.LettaAsyncRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -690,7 +690,7 @@ class Messages {
690
690
  method: "PATCH",
691
691
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
692
692
  ? yield core.Supplier.get(this._options.project)
693
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68654", "User-Agent": "@letta-ai/letta-client/0.0.68654", "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),
693
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68656", "User-Agent": "@letta-ai/letta-client/0.0.68656", "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),
694
694
  contentType: "application/json",
695
695
  queryParameters: _queryParams,
696
696
  requestType: "json",
@@ -780,7 +780,7 @@ class Messages {
780
780
  method: "POST",
781
781
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
782
782
  ? yield core.Supplier.get(this._options.project)
783
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68654", "User-Agent": "@letta-ai/letta-client/0.0.68654", "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),
783
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68656", "User-Agent": "@letta-ai/letta-client/0.0.68656", "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),
784
784
  contentType: "application/json",
785
785
  requestType: "json",
786
786
  body: serializers.agents.MessagesPreviewRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -866,7 +866,7 @@ class Messages {
866
866
  method: "POST",
867
867
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
868
868
  ? yield core.Supplier.get(this._options.project)
869
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68654", "User-Agent": "@letta-ai/letta-client/0.0.68654", "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),
869
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68656", "User-Agent": "@letta-ai/letta-client/0.0.68656", "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),
870
870
  contentType: "application/json",
871
871
  queryParameters: _queryParams,
872
872
  requestType: "json",
@@ -99,7 +99,7 @@ class Passages {
99
99
  method: "GET",
100
100
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
101
101
  ? yield core.Supplier.get(this._options.project)
102
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68654", "User-Agent": "@letta-ai/letta-client/0.0.68654", "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),
102
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68656", "User-Agent": "@letta-ai/letta-client/0.0.68656", "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),
103
103
  contentType: "application/json",
104
104
  queryParameters: _queryParams,
105
105
  requestType: "json",
@@ -179,7 +179,7 @@ class Passages {
179
179
  method: "POST",
180
180
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
181
181
  ? yield core.Supplier.get(this._options.project)
182
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68654", "User-Agent": "@letta-ai/letta-client/0.0.68654", "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),
182
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68656", "User-Agent": "@letta-ai/letta-client/0.0.68656", "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),
183
183
  contentType: "application/json",
184
184
  requestType: "json",
185
185
  body: serializers.agents.CreateArchivalMemory.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -286,7 +286,7 @@ class Passages {
286
286
  method: "GET",
287
287
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
288
288
  ? yield core.Supplier.get(this._options.project)
289
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68654", "User-Agent": "@letta-ai/letta-client/0.0.68654", "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),
289
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68656", "User-Agent": "@letta-ai/letta-client/0.0.68656", "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
290
  contentType: "application/json",
291
291
  queryParameters: _queryParams,
292
292
  requestType: "json",
@@ -364,7 +364,7 @@ class Passages {
364
364
  method: "DELETE",
365
365
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
366
366
  ? yield core.Supplier.get(this._options.project)
367
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68654", "User-Agent": "@letta-ai/letta-client/0.0.68654", "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),
367
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68656", "User-Agent": "@letta-ai/letta-client/0.0.68656", "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
368
  contentType: "application/json",
369
369
  requestType: "json",
370
370
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -428,7 +428,7 @@ class Passages {
428
428
  method: "PATCH",
429
429
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
430
430
  ? yield core.Supplier.get(this._options.project)
431
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68654", "User-Agent": "@letta-ai/letta-client/0.0.68654", "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),
431
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68656", "User-Agent": "@letta-ai/letta-client/0.0.68656", "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),
432
432
  contentType: "application/json",
433
433
  requestType: "json",
434
434
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,