@letta-ai/letta-client 0.0.68653 → 0.0.68655

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 (408) 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/resources/blocks/client/Client.js +5 -5
  4. package/api/resources/agents/resources/context/client/Client.js +1 -1
  5. package/api/resources/agents/resources/coreMemory/client/Client.js +1 -1
  6. package/api/resources/agents/resources/files/client/Client.js +4 -4
  7. package/api/resources/agents/resources/folders/client/Client.js +3 -3
  8. package/api/resources/agents/resources/groups/client/Client.js +1 -1
  9. package/api/resources/agents/resources/memoryVariables/client/Client.js +1 -1
  10. package/api/resources/agents/resources/messages/client/Client.js +10 -10
  11. package/api/resources/agents/resources/passages/client/Client.js +5 -5
  12. package/api/resources/agents/resources/sources/client/Client.js +3 -3
  13. package/api/resources/agents/resources/templates/client/Client.js +3 -3
  14. package/api/resources/agents/resources/tools/client/Client.js +4 -4
  15. package/api/resources/batches/client/Client.js +4 -4
  16. package/api/resources/batches/resources/messages/client/Client.js +1 -1
  17. package/api/resources/blocks/client/Client.js +6 -6
  18. package/api/resources/blocks/index.d.ts +1 -1
  19. package/api/resources/blocks/index.js +1 -1
  20. package/api/resources/blocks/resources/agents/client/Client.js +20 -3
  21. package/api/resources/blocks/resources/agents/client/requests/AgentsListRequest.d.ts +21 -0
  22. package/api/resources/blocks/resources/agents/index.d.ts +1 -0
  23. package/api/resources/blocks/resources/agents/index.js +1 -0
  24. package/api/resources/blocks/resources/agents/types/AgentsListRequestOrder.d.ts +11 -0
  25. package/api/resources/blocks/resources/agents/types/AgentsListRequestOrder.js +10 -0
  26. package/api/resources/blocks/resources/agents/types/index.d.ts +1 -0
  27. package/api/resources/blocks/resources/agents/types/index.js +17 -0
  28. package/api/resources/blocks/resources/index.d.ts +1 -0
  29. package/api/resources/blocks/resources/index.js +1 -0
  30. package/api/resources/clientSideAccessTokens/client/Client.js +3 -3
  31. package/api/resources/folders/client/Client.d.ts +11 -18
  32. package/api/resources/folders/client/Client.js +28 -93
  33. package/api/resources/folders/client/requests/FoldersListRequest.d.ts +4 -0
  34. package/api/resources/folders/client/requests/{GetFoldersMetadataRequest.d.ts → RetrieveMetadataRequest.d.ts} +1 -1
  35. package/api/resources/folders/client/requests/index.d.ts +1 -1
  36. package/api/resources/folders/index.d.ts +1 -1
  37. package/api/resources/folders/index.js +1 -1
  38. package/api/resources/folders/resources/agents/client/Client.d.ts +50 -0
  39. package/api/resources/folders/resources/agents/client/Client.js +166 -0
  40. package/api/resources/folders/resources/agents/client/index.d.ts +1 -0
  41. package/api/resources/folders/resources/agents/client/index.js +17 -0
  42. package/api/resources/folders/resources/agents/client/requests/AgentsListRequest.d.ts +30 -0
  43. package/api/resources/folders/resources/agents/client/requests/index.d.ts +1 -0
  44. package/api/resources/folders/resources/agents/client/requests/index.js +2 -0
  45. package/api/resources/folders/resources/agents/index.d.ts +2 -0
  46. package/api/resources/folders/resources/agents/index.js +18 -0
  47. package/api/resources/folders/resources/agents/types/AgentsListRequestOrder.d.ts +11 -0
  48. package/api/resources/folders/resources/agents/types/AgentsListRequestOrder.js +10 -0
  49. package/api/resources/folders/resources/agents/types/index.d.ts +1 -0
  50. package/api/resources/folders/resources/agents/types/index.js +17 -0
  51. package/api/resources/folders/resources/files/client/Client.js +17 -6
  52. package/api/resources/folders/resources/files/client/requests/FilesListRequest.d.ts +16 -3
  53. package/api/resources/folders/resources/files/index.d.ts +1 -0
  54. package/api/resources/folders/resources/files/index.js +1 -0
  55. package/api/resources/folders/resources/files/types/FilesListRequestOrder.d.ts +11 -0
  56. package/api/resources/folders/resources/files/types/FilesListRequestOrder.js +10 -0
  57. package/api/resources/folders/resources/files/types/index.d.ts +1 -0
  58. package/api/resources/folders/resources/files/types/index.js +17 -0
  59. package/api/resources/folders/resources/index.d.ts +5 -0
  60. package/api/resources/folders/resources/index.js +6 -1
  61. package/api/resources/folders/resources/passages/client/Client.js +14 -6
  62. package/api/resources/folders/resources/passages/client/requests/PassagesListRequest.d.ts +14 -5
  63. package/api/resources/folders/resources/passages/index.d.ts +1 -0
  64. package/api/resources/folders/resources/passages/index.js +1 -0
  65. package/api/resources/folders/resources/passages/types/PassagesListRequestOrder.d.ts +11 -0
  66. package/api/resources/folders/resources/passages/types/PassagesListRequestOrder.js +10 -0
  67. package/api/resources/folders/resources/passages/types/index.d.ts +1 -0
  68. package/api/resources/folders/resources/passages/types/index.js +17 -0
  69. package/api/resources/groups/client/Client.js +6 -6
  70. package/api/resources/groups/resources/messages/client/Client.js +18 -10
  71. package/api/resources/groups/resources/messages/client/requests/MessagesListRequest.d.ts +14 -5
  72. package/api/resources/groups/resources/messages/types/MessagesListRequestOrder.d.ts +11 -0
  73. package/api/resources/groups/resources/messages/types/MessagesListRequestOrder.js +10 -0
  74. package/api/resources/groups/resources/messages/types/index.d.ts +1 -0
  75. package/api/resources/groups/resources/messages/types/index.js +1 -0
  76. package/api/resources/health/client/Client.js +1 -1
  77. package/api/resources/identities/client/Client.js +7 -7
  78. package/api/resources/identities/index.d.ts +1 -1
  79. package/api/resources/identities/index.js +1 -1
  80. package/api/resources/identities/resources/agents/client/Client.d.ts +7 -1
  81. package/api/resources/identities/resources/agents/client/Client.js +58 -11
  82. package/api/resources/identities/resources/agents/client/index.d.ts +1 -1
  83. package/api/resources/identities/resources/agents/client/index.js +15 -0
  84. package/api/resources/identities/resources/agents/client/requests/AgentsListRequest.d.ts +30 -0
  85. package/api/resources/identities/resources/agents/client/requests/AgentsListRequest.js +5 -0
  86. package/api/resources/identities/resources/agents/client/requests/index.d.ts +1 -0
  87. package/api/resources/identities/resources/agents/client/requests/index.js +2 -0
  88. package/api/resources/identities/resources/agents/index.d.ts +1 -0
  89. package/api/resources/identities/resources/agents/index.js +1 -0
  90. package/api/resources/identities/resources/agents/types/AgentsListRequestOrder.d.ts +11 -0
  91. package/api/resources/identities/resources/agents/types/AgentsListRequestOrder.js +10 -0
  92. package/api/resources/identities/resources/agents/types/index.d.ts +1 -0
  93. package/api/resources/identities/resources/agents/types/index.js +17 -0
  94. package/api/resources/identities/resources/blocks/client/Client.d.ts +7 -1
  95. package/api/resources/identities/resources/blocks/client/Client.js +58 -11
  96. package/api/resources/identities/resources/blocks/client/index.d.ts +1 -1
  97. package/api/resources/identities/resources/blocks/client/index.js +15 -0
  98. package/api/resources/identities/resources/blocks/client/requests/BlocksListRequest.d.ts +30 -0
  99. package/api/resources/identities/resources/blocks/client/requests/BlocksListRequest.js +5 -0
  100. package/api/resources/identities/resources/blocks/client/requests/index.d.ts +1 -0
  101. package/api/resources/identities/resources/blocks/client/requests/index.js +2 -0
  102. package/api/resources/identities/resources/blocks/index.d.ts +1 -0
  103. package/api/resources/identities/resources/blocks/index.js +1 -0
  104. package/api/resources/identities/resources/blocks/types/BlocksListRequestOrder.d.ts +11 -0
  105. package/api/resources/identities/resources/blocks/types/BlocksListRequestOrder.js +10 -0
  106. package/api/resources/identities/resources/blocks/types/index.d.ts +1 -0
  107. package/api/resources/identities/resources/blocks/types/index.js +17 -0
  108. package/api/resources/identities/resources/index.d.ts +5 -1
  109. package/api/resources/identities/resources/index.js +9 -2
  110. package/api/resources/identities/resources/properties/client/Client.js +1 -1
  111. package/api/resources/jobs/client/Client.js +5 -5
  112. package/api/resources/models/client/Client.js +2 -2
  113. package/api/resources/models/resources/embeddings/client/Client.js +1 -1
  114. package/api/resources/projects/client/Client.js +1 -1
  115. package/api/resources/providers/client/Client.js +6 -6
  116. package/api/resources/runs/client/Client.js +5 -5
  117. package/api/resources/runs/resources/messages/client/Client.js +1 -1
  118. package/api/resources/runs/resources/steps/client/Client.js +1 -1
  119. package/api/resources/runs/resources/usage/client/Client.js +1 -1
  120. package/api/resources/sources/client/Client.js +10 -10
  121. package/api/resources/sources/resources/files/client/Client.js +3 -3
  122. package/api/resources/sources/resources/passages/client/Client.js +1 -1
  123. package/api/resources/steps/client/Client.js +2 -2
  124. package/api/resources/steps/resources/feedback/client/Client.js +1 -1
  125. package/api/resources/steps/resources/metrics/client/Client.js +1 -1
  126. package/api/resources/steps/resources/trace/client/Client.js +1 -1
  127. package/api/resources/tags/client/Client.js +5 -2
  128. package/api/resources/tags/client/requests/TagsListRequest.d.ts +5 -1
  129. package/api/resources/telemetry/client/Client.js +1 -1
  130. package/api/resources/templates/client/Client.js +9 -9
  131. package/api/resources/templates/resources/agents/client/Client.js +1 -1
  132. package/api/resources/tools/client/Client.js +20 -20
  133. package/api/resources/voice/client/Client.js +1 -1
  134. package/dist/api/resources/agents/client/Client.d.ts +4 -7
  135. package/dist/api/resources/agents/client/Client.js +13 -16
  136. package/dist/api/resources/agents/resources/blocks/client/Client.js +5 -5
  137. package/dist/api/resources/agents/resources/context/client/Client.js +1 -1
  138. package/dist/api/resources/agents/resources/coreMemory/client/Client.js +1 -1
  139. package/dist/api/resources/agents/resources/files/client/Client.js +4 -4
  140. package/dist/api/resources/agents/resources/folders/client/Client.js +3 -3
  141. package/dist/api/resources/agents/resources/groups/client/Client.js +1 -1
  142. package/dist/api/resources/agents/resources/memoryVariables/client/Client.js +1 -1
  143. package/dist/api/resources/agents/resources/messages/client/Client.js +10 -10
  144. package/dist/api/resources/agents/resources/passages/client/Client.js +5 -5
  145. package/dist/api/resources/agents/resources/sources/client/Client.js +3 -3
  146. package/dist/api/resources/agents/resources/templates/client/Client.js +3 -3
  147. package/dist/api/resources/agents/resources/tools/client/Client.js +4 -4
  148. package/dist/api/resources/batches/client/Client.js +4 -4
  149. package/dist/api/resources/batches/resources/messages/client/Client.js +1 -1
  150. package/dist/api/resources/blocks/client/Client.js +6 -6
  151. package/dist/api/resources/blocks/index.d.ts +1 -1
  152. package/dist/api/resources/blocks/index.js +1 -1
  153. package/dist/api/resources/blocks/resources/agents/client/Client.js +20 -3
  154. package/dist/api/resources/blocks/resources/agents/client/requests/AgentsListRequest.d.ts +21 -0
  155. package/dist/api/resources/blocks/resources/agents/index.d.ts +1 -0
  156. package/dist/api/resources/blocks/resources/agents/index.js +1 -0
  157. package/dist/api/resources/blocks/resources/agents/types/AgentsListRequestOrder.d.ts +11 -0
  158. package/dist/api/resources/blocks/resources/agents/types/AgentsListRequestOrder.js +10 -0
  159. package/dist/api/resources/blocks/resources/agents/types/index.d.ts +1 -0
  160. package/dist/api/resources/blocks/resources/agents/types/index.js +17 -0
  161. package/dist/api/resources/blocks/resources/index.d.ts +1 -0
  162. package/dist/api/resources/blocks/resources/index.js +1 -0
  163. package/dist/api/resources/clientSideAccessTokens/client/Client.js +3 -3
  164. package/dist/api/resources/folders/client/Client.d.ts +11 -18
  165. package/dist/api/resources/folders/client/Client.js +28 -93
  166. package/dist/api/resources/folders/client/requests/FoldersListRequest.d.ts +4 -0
  167. package/dist/api/resources/folders/client/requests/{GetFoldersMetadataRequest.d.ts → RetrieveMetadataRequest.d.ts} +1 -1
  168. package/dist/api/resources/folders/client/requests/RetrieveMetadataRequest.js +5 -0
  169. package/dist/api/resources/folders/client/requests/index.d.ts +1 -1
  170. package/dist/api/resources/folders/index.d.ts +1 -1
  171. package/dist/api/resources/folders/index.js +1 -1
  172. package/dist/api/resources/folders/resources/agents/client/Client.d.ts +50 -0
  173. package/dist/api/resources/folders/resources/agents/client/Client.js +166 -0
  174. package/dist/api/resources/folders/resources/agents/client/index.d.ts +1 -0
  175. package/dist/api/resources/folders/resources/agents/client/index.js +17 -0
  176. package/dist/api/resources/folders/resources/agents/client/requests/AgentsListRequest.d.ts +30 -0
  177. package/dist/api/resources/folders/resources/agents/client/requests/AgentsListRequest.js +5 -0
  178. package/dist/api/resources/folders/resources/agents/client/requests/index.d.ts +1 -0
  179. package/dist/api/resources/folders/resources/agents/client/requests/index.js +2 -0
  180. package/dist/api/resources/folders/resources/agents/index.d.ts +2 -0
  181. package/dist/api/resources/folders/resources/agents/index.js +18 -0
  182. package/dist/api/resources/folders/resources/agents/types/AgentsListRequestOrder.d.ts +11 -0
  183. package/dist/api/resources/folders/resources/agents/types/AgentsListRequestOrder.js +10 -0
  184. package/dist/api/resources/folders/resources/agents/types/index.d.ts +1 -0
  185. package/dist/api/resources/folders/resources/agents/types/index.js +17 -0
  186. package/dist/api/resources/folders/resources/files/client/Client.js +17 -6
  187. package/dist/api/resources/folders/resources/files/client/requests/FilesListRequest.d.ts +16 -3
  188. package/dist/api/resources/folders/resources/files/index.d.ts +1 -0
  189. package/dist/api/resources/folders/resources/files/index.js +1 -0
  190. package/dist/api/resources/folders/resources/files/types/FilesListRequestOrder.d.ts +11 -0
  191. package/dist/api/resources/folders/resources/files/types/FilesListRequestOrder.js +10 -0
  192. package/dist/api/resources/folders/resources/files/types/index.d.ts +1 -0
  193. package/dist/api/resources/folders/resources/files/types/index.js +17 -0
  194. package/dist/api/resources/folders/resources/index.d.ts +5 -0
  195. package/dist/api/resources/folders/resources/index.js +6 -1
  196. package/dist/api/resources/folders/resources/passages/client/Client.js +14 -6
  197. package/dist/api/resources/folders/resources/passages/client/requests/PassagesListRequest.d.ts +14 -5
  198. package/dist/api/resources/folders/resources/passages/index.d.ts +1 -0
  199. package/dist/api/resources/folders/resources/passages/index.js +1 -0
  200. package/dist/api/resources/folders/resources/passages/types/PassagesListRequestOrder.d.ts +11 -0
  201. package/dist/api/resources/folders/resources/passages/types/PassagesListRequestOrder.js +10 -0
  202. package/dist/api/resources/folders/resources/passages/types/index.d.ts +1 -0
  203. package/dist/api/resources/folders/resources/passages/types/index.js +17 -0
  204. package/dist/api/resources/groups/client/Client.js +6 -6
  205. package/dist/api/resources/groups/resources/messages/client/Client.js +18 -10
  206. package/dist/api/resources/groups/resources/messages/client/requests/MessagesListRequest.d.ts +14 -5
  207. package/dist/api/resources/groups/resources/messages/types/MessagesListRequestOrder.d.ts +11 -0
  208. package/dist/api/resources/groups/resources/messages/types/MessagesListRequestOrder.js +10 -0
  209. package/dist/api/resources/groups/resources/messages/types/index.d.ts +1 -0
  210. package/dist/api/resources/groups/resources/messages/types/index.js +1 -0
  211. package/dist/api/resources/health/client/Client.js +1 -1
  212. package/dist/api/resources/identities/client/Client.js +7 -7
  213. package/dist/api/resources/identities/index.d.ts +1 -1
  214. package/dist/api/resources/identities/index.js +1 -1
  215. package/dist/api/resources/identities/resources/agents/client/Client.d.ts +7 -1
  216. package/dist/api/resources/identities/resources/agents/client/Client.js +58 -11
  217. package/dist/api/resources/identities/resources/agents/client/index.d.ts +1 -1
  218. package/dist/api/resources/identities/resources/agents/client/index.js +15 -0
  219. package/dist/api/resources/identities/resources/agents/client/requests/AgentsListRequest.d.ts +30 -0
  220. package/dist/api/resources/identities/resources/agents/client/requests/AgentsListRequest.js +5 -0
  221. package/dist/api/resources/identities/resources/agents/client/requests/index.d.ts +1 -0
  222. package/dist/api/resources/identities/resources/agents/client/requests/index.js +2 -0
  223. package/dist/api/resources/identities/resources/agents/index.d.ts +1 -0
  224. package/dist/api/resources/identities/resources/agents/index.js +1 -0
  225. package/dist/api/resources/identities/resources/agents/types/AgentsListRequestOrder.d.ts +11 -0
  226. package/dist/api/resources/identities/resources/agents/types/AgentsListRequestOrder.js +10 -0
  227. package/dist/api/resources/identities/resources/agents/types/index.d.ts +1 -0
  228. package/dist/api/resources/identities/resources/agents/types/index.js +17 -0
  229. package/dist/api/resources/identities/resources/blocks/client/Client.d.ts +7 -1
  230. package/dist/api/resources/identities/resources/blocks/client/Client.js +58 -11
  231. package/dist/api/resources/identities/resources/blocks/client/index.d.ts +1 -1
  232. package/dist/api/resources/identities/resources/blocks/client/index.js +15 -0
  233. package/dist/api/resources/identities/resources/blocks/client/requests/BlocksListRequest.d.ts +30 -0
  234. package/dist/api/resources/identities/resources/blocks/client/requests/BlocksListRequest.js +5 -0
  235. package/dist/api/resources/identities/resources/blocks/client/requests/index.d.ts +1 -0
  236. package/dist/api/resources/identities/resources/blocks/client/requests/index.js +2 -0
  237. package/dist/api/resources/identities/resources/blocks/index.d.ts +1 -0
  238. package/dist/api/resources/identities/resources/blocks/index.js +1 -0
  239. package/dist/api/resources/identities/resources/blocks/types/BlocksListRequestOrder.d.ts +11 -0
  240. package/dist/api/resources/identities/resources/blocks/types/BlocksListRequestOrder.js +10 -0
  241. package/dist/api/resources/identities/resources/blocks/types/index.d.ts +1 -0
  242. package/dist/api/resources/identities/resources/blocks/types/index.js +17 -0
  243. package/dist/api/resources/identities/resources/index.d.ts +5 -1
  244. package/dist/api/resources/identities/resources/index.js +9 -2
  245. package/dist/api/resources/identities/resources/properties/client/Client.js +1 -1
  246. package/dist/api/resources/jobs/client/Client.js +5 -5
  247. package/dist/api/resources/models/client/Client.js +2 -2
  248. package/dist/api/resources/models/resources/embeddings/client/Client.js +1 -1
  249. package/dist/api/resources/projects/client/Client.js +1 -1
  250. package/dist/api/resources/providers/client/Client.js +6 -6
  251. package/dist/api/resources/runs/client/Client.js +5 -5
  252. package/dist/api/resources/runs/resources/messages/client/Client.js +1 -1
  253. package/dist/api/resources/runs/resources/steps/client/Client.js +1 -1
  254. package/dist/api/resources/runs/resources/usage/client/Client.js +1 -1
  255. package/dist/api/resources/sources/client/Client.js +10 -10
  256. package/dist/api/resources/sources/resources/files/client/Client.js +3 -3
  257. package/dist/api/resources/sources/resources/passages/client/Client.js +1 -1
  258. package/dist/api/resources/steps/client/Client.js +2 -2
  259. package/dist/api/resources/steps/resources/feedback/client/Client.js +1 -1
  260. package/dist/api/resources/steps/resources/metrics/client/Client.js +1 -1
  261. package/dist/api/resources/steps/resources/trace/client/Client.js +1 -1
  262. package/dist/api/resources/tags/client/Client.js +5 -2
  263. package/dist/api/resources/tags/client/requests/TagsListRequest.d.ts +5 -1
  264. package/dist/api/resources/telemetry/client/Client.js +1 -1
  265. package/dist/api/resources/templates/client/Client.js +9 -9
  266. package/dist/api/resources/templates/resources/agents/client/Client.js +1 -1
  267. package/dist/api/resources/tools/client/Client.js +20 -20
  268. package/dist/api/resources/voice/client/Client.js +1 -1
  269. package/dist/serialization/resources/blocks/index.d.ts +1 -1
  270. package/dist/serialization/resources/blocks/index.js +1 -1
  271. package/dist/serialization/resources/blocks/resources/agents/index.d.ts +1 -0
  272. package/dist/serialization/resources/blocks/resources/agents/index.js +1 -0
  273. package/dist/serialization/resources/blocks/resources/agents/types/AgentsListRequestOrder.d.ts +10 -0
  274. package/dist/serialization/resources/blocks/resources/agents/types/AgentsListRequestOrder.js +41 -0
  275. package/dist/serialization/resources/blocks/resources/agents/types/index.d.ts +1 -0
  276. package/dist/serialization/resources/blocks/resources/agents/types/index.js +17 -0
  277. package/dist/serialization/resources/blocks/resources/index.d.ts +1 -0
  278. package/dist/serialization/resources/blocks/resources/index.js +4 -0
  279. package/dist/serialization/resources/folders/client/index.d.ts +0 -1
  280. package/dist/serialization/resources/folders/client/index.js +1 -2
  281. package/dist/serialization/resources/folders/index.d.ts +1 -1
  282. package/dist/serialization/resources/folders/index.js +1 -1
  283. package/dist/serialization/resources/folders/resources/agents/client/index.d.ts +1 -0
  284. package/dist/serialization/resources/folders/resources/agents/client/index.js +37 -0
  285. package/dist/serialization/resources/folders/{client/getAgentsForFolder.d.ts → resources/agents/client/list.d.ts} +3 -3
  286. package/dist/serialization/resources/folders/{client/getAgentsForFolder.js → resources/agents/client/list.js} +1 -1
  287. package/dist/serialization/resources/folders/resources/agents/index.d.ts +2 -0
  288. package/dist/serialization/resources/folders/resources/agents/index.js +18 -0
  289. package/dist/serialization/resources/folders/resources/agents/types/AgentsListRequestOrder.d.ts +10 -0
  290. package/dist/serialization/resources/folders/resources/agents/types/AgentsListRequestOrder.js +41 -0
  291. package/dist/serialization/resources/folders/resources/agents/types/index.d.ts +1 -0
  292. package/dist/serialization/resources/folders/resources/agents/types/index.js +17 -0
  293. package/dist/serialization/resources/folders/resources/files/index.d.ts +1 -0
  294. package/dist/serialization/resources/folders/resources/files/index.js +1 -0
  295. package/dist/serialization/resources/folders/resources/files/types/FilesListRequestOrder.d.ts +10 -0
  296. package/dist/serialization/resources/folders/resources/files/types/FilesListRequestOrder.js +41 -0
  297. package/dist/serialization/resources/folders/resources/files/types/index.d.ts +1 -0
  298. package/dist/serialization/resources/folders/resources/files/types/index.js +17 -0
  299. package/dist/serialization/resources/folders/resources/index.d.ts +4 -0
  300. package/dist/serialization/resources/folders/resources/index.js +8 -1
  301. package/dist/serialization/resources/folders/resources/passages/index.d.ts +1 -0
  302. package/dist/serialization/resources/folders/resources/passages/index.js +1 -0
  303. package/dist/serialization/resources/folders/resources/passages/types/PassagesListRequestOrder.d.ts +10 -0
  304. package/dist/serialization/resources/folders/resources/passages/types/PassagesListRequestOrder.js +41 -0
  305. package/dist/serialization/resources/folders/resources/passages/types/index.d.ts +1 -0
  306. package/dist/serialization/resources/folders/resources/passages/types/index.js +17 -0
  307. package/dist/serialization/resources/groups/resources/messages/types/MessagesListRequestOrder.d.ts +10 -0
  308. package/dist/serialization/resources/groups/resources/messages/types/MessagesListRequestOrder.js +41 -0
  309. package/dist/serialization/resources/groups/resources/messages/types/index.d.ts +1 -0
  310. package/dist/serialization/resources/groups/resources/messages/types/index.js +1 -0
  311. package/dist/serialization/resources/identities/index.d.ts +1 -1
  312. package/dist/serialization/resources/identities/index.js +1 -1
  313. package/dist/serialization/resources/identities/resources/agents/client/index.d.ts +1 -0
  314. package/dist/serialization/resources/identities/resources/agents/client/index.js +37 -0
  315. package/dist/serialization/resources/identities/resources/agents/client/list.d.ts +11 -0
  316. package/dist/serialization/resources/identities/resources/agents/client/list.js +42 -0
  317. package/dist/serialization/resources/identities/resources/agents/index.d.ts +2 -0
  318. package/dist/serialization/resources/identities/resources/agents/index.js +18 -0
  319. package/dist/serialization/resources/identities/resources/agents/types/AgentsListRequestOrder.d.ts +10 -0
  320. package/dist/serialization/resources/identities/resources/agents/types/AgentsListRequestOrder.js +41 -0
  321. package/dist/serialization/resources/identities/resources/agents/types/index.d.ts +1 -0
  322. package/dist/serialization/resources/identities/resources/agents/types/index.js +17 -0
  323. package/dist/serialization/resources/identities/resources/blocks/client/index.d.ts +1 -0
  324. package/dist/serialization/resources/identities/resources/blocks/client/index.js +37 -0
  325. package/dist/serialization/resources/identities/resources/blocks/client/list.d.ts +11 -0
  326. package/dist/serialization/resources/identities/resources/blocks/client/list.js +42 -0
  327. package/dist/serialization/resources/identities/resources/blocks/index.d.ts +2 -0
  328. package/dist/serialization/resources/identities/resources/blocks/index.js +18 -0
  329. package/dist/serialization/resources/identities/resources/blocks/types/BlocksListRequestOrder.d.ts +10 -0
  330. package/dist/serialization/resources/identities/resources/blocks/types/BlocksListRequestOrder.js +41 -0
  331. package/dist/serialization/resources/identities/resources/blocks/types/index.d.ts +1 -0
  332. package/dist/serialization/resources/identities/resources/blocks/types/index.js +17 -0
  333. package/dist/serialization/resources/identities/resources/index.d.ts +4 -0
  334. package/dist/serialization/resources/identities/resources/index.js +8 -1
  335. package/dist/version.d.ts +1 -1
  336. package/dist/version.js +1 -1
  337. package/package.json +1 -1
  338. package/reference.md +131 -76
  339. package/serialization/resources/blocks/index.d.ts +1 -1
  340. package/serialization/resources/blocks/index.js +1 -1
  341. package/serialization/resources/blocks/resources/agents/index.d.ts +1 -0
  342. package/serialization/resources/blocks/resources/agents/index.js +1 -0
  343. package/serialization/resources/blocks/resources/agents/types/AgentsListRequestOrder.d.ts +10 -0
  344. package/serialization/resources/blocks/resources/agents/types/AgentsListRequestOrder.js +41 -0
  345. package/serialization/resources/blocks/resources/agents/types/index.d.ts +1 -0
  346. package/serialization/resources/blocks/resources/agents/types/index.js +17 -0
  347. package/serialization/resources/blocks/resources/index.d.ts +1 -0
  348. package/serialization/resources/blocks/resources/index.js +4 -0
  349. package/serialization/resources/folders/client/index.d.ts +0 -1
  350. package/serialization/resources/folders/client/index.js +1 -2
  351. package/serialization/resources/folders/index.d.ts +1 -1
  352. package/serialization/resources/folders/index.js +1 -1
  353. package/serialization/resources/folders/resources/agents/client/index.d.ts +1 -0
  354. package/serialization/resources/folders/resources/agents/client/index.js +37 -0
  355. package/serialization/resources/folders/{client/getAgentsForFolder.d.ts → resources/agents/client/list.d.ts} +3 -3
  356. package/serialization/resources/folders/{client/getAgentsForFolder.js → resources/agents/client/list.js} +1 -1
  357. package/serialization/resources/folders/resources/agents/index.d.ts +2 -0
  358. package/serialization/resources/folders/resources/agents/index.js +18 -0
  359. package/serialization/resources/folders/resources/agents/types/AgentsListRequestOrder.d.ts +10 -0
  360. package/serialization/resources/folders/resources/agents/types/AgentsListRequestOrder.js +41 -0
  361. package/serialization/resources/folders/resources/agents/types/index.d.ts +1 -0
  362. package/serialization/resources/folders/resources/agents/types/index.js +17 -0
  363. package/serialization/resources/folders/resources/files/index.d.ts +1 -0
  364. package/serialization/resources/folders/resources/files/index.js +1 -0
  365. package/serialization/resources/folders/resources/files/types/FilesListRequestOrder.d.ts +10 -0
  366. package/serialization/resources/folders/resources/files/types/FilesListRequestOrder.js +41 -0
  367. package/serialization/resources/folders/resources/files/types/index.d.ts +1 -0
  368. package/serialization/resources/folders/resources/files/types/index.js +17 -0
  369. package/serialization/resources/folders/resources/index.d.ts +4 -0
  370. package/serialization/resources/folders/resources/index.js +8 -1
  371. package/serialization/resources/folders/resources/passages/index.d.ts +1 -0
  372. package/serialization/resources/folders/resources/passages/index.js +1 -0
  373. package/serialization/resources/folders/resources/passages/types/PassagesListRequestOrder.d.ts +10 -0
  374. package/serialization/resources/folders/resources/passages/types/PassagesListRequestOrder.js +41 -0
  375. package/serialization/resources/folders/resources/passages/types/index.d.ts +1 -0
  376. package/serialization/resources/folders/resources/passages/types/index.js +17 -0
  377. package/serialization/resources/groups/resources/messages/types/MessagesListRequestOrder.d.ts +10 -0
  378. package/serialization/resources/groups/resources/messages/types/MessagesListRequestOrder.js +41 -0
  379. package/serialization/resources/groups/resources/messages/types/index.d.ts +1 -0
  380. package/serialization/resources/groups/resources/messages/types/index.js +1 -0
  381. package/serialization/resources/identities/index.d.ts +1 -1
  382. package/serialization/resources/identities/index.js +1 -1
  383. package/serialization/resources/identities/resources/agents/client/index.d.ts +1 -0
  384. package/serialization/resources/identities/resources/agents/client/index.js +37 -0
  385. package/serialization/resources/identities/resources/agents/client/list.d.ts +11 -0
  386. package/serialization/resources/identities/resources/agents/client/list.js +42 -0
  387. package/serialization/resources/identities/resources/agents/index.d.ts +2 -0
  388. package/serialization/resources/identities/resources/agents/index.js +18 -0
  389. package/serialization/resources/identities/resources/agents/types/AgentsListRequestOrder.d.ts +10 -0
  390. package/serialization/resources/identities/resources/agents/types/AgentsListRequestOrder.js +41 -0
  391. package/serialization/resources/identities/resources/agents/types/index.d.ts +1 -0
  392. package/serialization/resources/identities/resources/agents/types/index.js +17 -0
  393. package/serialization/resources/identities/resources/blocks/client/index.d.ts +1 -0
  394. package/serialization/resources/identities/resources/blocks/client/index.js +37 -0
  395. package/serialization/resources/identities/resources/blocks/client/list.d.ts +11 -0
  396. package/serialization/resources/identities/resources/blocks/client/list.js +42 -0
  397. package/serialization/resources/identities/resources/blocks/index.d.ts +2 -0
  398. package/serialization/resources/identities/resources/blocks/index.js +18 -0
  399. package/serialization/resources/identities/resources/blocks/types/BlocksListRequestOrder.d.ts +10 -0
  400. package/serialization/resources/identities/resources/blocks/types/BlocksListRequestOrder.js +41 -0
  401. package/serialization/resources/identities/resources/blocks/types/index.d.ts +1 -0
  402. package/serialization/resources/identities/resources/blocks/types/index.js +17 -0
  403. package/serialization/resources/identities/resources/index.d.ts +4 -0
  404. package/serialization/resources/identities/resources/index.js +8 -1
  405. package/version.d.ts +1 -1
  406. package/version.js +1 -1
  407. /package/api/resources/folders/client/requests/{GetFoldersMetadataRequest.js → RetrieveMetadataRequest.js} +0 -0
  408. /package/{dist/api/resources/folders/client/requests/GetFoldersMetadataRequest.js → api/resources/folders/resources/agents/client/requests/AgentsListRequest.js} +0 -0
@@ -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.68653", "User-Agent": "@letta-ai/letta-client/0.0.68653", "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.68655", "User-Agent": "@letta-ai/letta-client/0.0.68655", "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.68653", "User-Agent": "@letta-ai/letta-client/0.0.68653", "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.68655", "User-Agent": "@letta-ai/letta-client/0.0.68655", "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.68653", "User-Agent": "@letta-ai/letta-client/0.0.68653", "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.68655", "User-Agent": "@letta-ai/letta-client/0.0.68655", "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.68653", "User-Agent": "@letta-ai/letta-client/0.0.68653", "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.68655", "User-Agent": "@letta-ai/letta-client/0.0.68655", "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.68653", "User-Agent": "@letta-ai/letta-client/0.0.68653", "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.68655", "User-Agent": "@letta-ai/letta-client/0.0.68655", "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.68653", "User-Agent": "@letta-ai/letta-client/0.0.68653", "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.68655", "User-Agent": "@letta-ai/letta-client/0.0.68655", "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.68653", "User-Agent": "@letta-ai/letta-client/0.0.68653", "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.68655", "User-Agent": "@letta-ai/letta-client/0.0.68655", "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.68653", "User-Agent": "@letta-ai/letta-client/0.0.68653", "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.68655", "User-Agent": "@letta-ai/letta-client/0.0.68655", "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.68653", "User-Agent": "@letta-ai/letta-client/0.0.68653", "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.68655", "User-Agent": "@letta-ai/letta-client/0.0.68655", "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.68653", "User-Agent": "@letta-ai/letta-client/0.0.68653", "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.68655", "User-Agent": "@letta-ai/letta-client/0.0.68655", "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.68653", "User-Agent": "@letta-ai/letta-client/0.0.68653", "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.68655", "User-Agent": "@letta-ai/letta-client/0.0.68655", "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.68653", "User-Agent": "@letta-ai/letta-client/0.0.68653", "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.68655", "User-Agent": "@letta-ai/letta-client/0.0.68655", "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.68653", "User-Agent": "@letta-ai/letta-client/0.0.68653", "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.68655", "User-Agent": "@letta-ai/letta-client/0.0.68655", "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.68653", "User-Agent": "@letta-ai/letta-client/0.0.68653", "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.68655", "User-Agent": "@letta-ai/letta-client/0.0.68655", "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.68653", "User-Agent": "@letta-ai/letta-client/0.0.68653", "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.68655", "User-Agent": "@letta-ai/letta-client/0.0.68655", "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.68653", "User-Agent": "@letta-ai/letta-client/0.0.68653", "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.68655", "User-Agent": "@letta-ai/letta-client/0.0.68655", "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.68653", "User-Agent": "@letta-ai/letta-client/0.0.68653", "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.68655", "User-Agent": "@letta-ai/letta-client/0.0.68655", "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.68653", "User-Agent": "@letta-ai/letta-client/0.0.68653", "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.68655", "User-Agent": "@letta-ai/letta-client/0.0.68655", "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.68653", "User-Agent": "@letta-ai/letta-client/0.0.68653", "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.68655", "User-Agent": "@letta-ai/letta-client/0.0.68655", "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.68653", "User-Agent": "@letta-ai/letta-client/0.0.68653", "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.68655", "User-Agent": "@letta-ai/letta-client/0.0.68655", "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.68653", "User-Agent": "@letta-ai/letta-client/0.0.68653", "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.68655", "User-Agent": "@letta-ai/letta-client/0.0.68655", "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.68653", "User-Agent": "@letta-ai/letta-client/0.0.68653", "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.68655", "User-Agent": "@letta-ai/letta-client/0.0.68655", "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.68653", "User-Agent": "@letta-ai/letta-client/0.0.68653", "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.68655", "User-Agent": "@letta-ai/letta-client/0.0.68655", "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.68653", "User-Agent": "@letta-ai/letta-client/0.0.68653", "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.68655", "User-Agent": "@letta-ai/letta-client/0.0.68655", "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,
@@ -82,7 +82,7 @@ class Sources {
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.68653", "User-Agent": "@letta-ai/letta-client/0.0.68653", "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.68655", "User-Agent": "@letta-ai/letta-client/0.0.68655", "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 Sources {
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.68653", "User-Agent": "@letta-ai/letta-client/0.0.68653", "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.68655", "User-Agent": "@letta-ai/letta-client/0.0.68655", "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 Sources {
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.68653", "User-Agent": "@letta-ai/letta-client/0.0.68653", "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.68655", "User-Agent": "@letta-ai/letta-client/0.0.68655", "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,
@@ -84,7 +84,7 @@ class Templates {
84
84
  method: "POST",
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.68653", "User-Agent": "@letta-ai/letta-client/0.0.68653", "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.68655", "User-Agent": "@letta-ai/letta-client/0.0.68655", "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
  body: serializers.agents.TemplatesMigrateRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -150,7 +150,7 @@ class Templates {
150
150
  method: "POST",
151
151
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
152
152
  ? yield core.Supplier.get(this._options.project)
153
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68653", "User-Agent": "@letta-ai/letta-client/0.0.68653", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
153
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68655", "User-Agent": "@letta-ai/letta-client/0.0.68655", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
154
154
  contentType: "application/json",
155
155
  requestType: "json",
156
156
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -206,7 +206,7 @@ class Templates {
206
206
  method: "POST",
207
207
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
208
208
  ? yield core.Supplier.get(this._options.project)
209
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68653", "User-Agent": "@letta-ai/letta-client/0.0.68653", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
209
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68655", "User-Agent": "@letta-ai/letta-client/0.0.68655", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
210
210
  contentType: "application/json",
211
211
  requestType: "json",
212
212
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -81,7 +81,7 @@ class Tools {
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.68653", "User-Agent": "@letta-ai/letta-client/0.0.68653", "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.68655", "User-Agent": "@letta-ai/letta-client/0.0.68655", "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,
@@ -158,7 +158,7 @@ class Tools {
158
158
  method: "PATCH",
159
159
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
160
160
  ? yield core.Supplier.get(this._options.project)
161
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68653", "User-Agent": "@letta-ai/letta-client/0.0.68653", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
161
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68655", "User-Agent": "@letta-ai/letta-client/0.0.68655", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
162
162
  contentType: "application/json",
163
163
  requestType: "json",
164
164
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -235,7 +235,7 @@ class Tools {
235
235
  method: "PATCH",
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.68653", "User-Agent": "@letta-ai/letta-client/0.0.68653", "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.68655", "User-Agent": "@letta-ai/letta-client/0.0.68655", "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,
@@ -318,7 +318,7 @@ class Tools {
318
318
  method: "PATCH",
319
319
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
320
320
  ? yield core.Supplier.get(this._options.project)
321
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68653", "User-Agent": "@letta-ai/letta-client/0.0.68653", "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),
321
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68655", "User-Agent": "@letta-ai/letta-client/0.0.68655", "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),
322
322
  contentType: "application/json",
323
323
  queryParameters: _queryParams,
324
324
  requestType: "json",
@@ -105,7 +105,7 @@ class Batches {
105
105
  method: "GET",
106
106
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
107
107
  ? yield core.Supplier.get(this._options.project)
108
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68653", "User-Agent": "@letta-ai/letta-client/0.0.68653", "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),
108
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68655", "User-Agent": "@letta-ai/letta-client/0.0.68655", "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),
109
109
  contentType: "application/json",
110
110
  queryParameters: _queryParams,
111
111
  requestType: "json",
@@ -196,7 +196,7 @@ class Batches {
196
196
  method: "POST",
197
197
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
198
198
  ? yield core.Supplier.get(this._options.project)
199
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68653", "User-Agent": "@letta-ai/letta-client/0.0.68653", "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
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68655", "User-Agent": "@letta-ai/letta-client/0.0.68655", "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),
200
200
  contentType: "application/json",
201
201
  requestType: "json",
202
202
  body: serializers.CreateBatch.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -273,7 +273,7 @@ class Batches {
273
273
  method: "GET",
274
274
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
275
275
  ? yield core.Supplier.get(this._options.project)
276
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68653", "User-Agent": "@letta-ai/letta-client/0.0.68653", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
276
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68655", "User-Agent": "@letta-ai/letta-client/0.0.68655", "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),
277
277
  contentType: "application/json",
278
278
  requestType: "json",
279
279
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -349,7 +349,7 @@ class Batches {
349
349
  method: "PATCH",
350
350
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
351
351
  ? yield core.Supplier.get(this._options.project)
352
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68653", "User-Agent": "@letta-ai/letta-client/0.0.68653", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
352
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68655", "User-Agent": "@letta-ai/letta-client/0.0.68655", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
353
353
  contentType: "application/json",
354
354
  requestType: "json",
355
355
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -104,7 +104,7 @@ class Messages {
104
104
  method: "GET",
105
105
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
106
106
  ? yield core.Supplier.get(this._options.project)
107
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68653", "User-Agent": "@letta-ai/letta-client/0.0.68653", "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),
107
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68655", "User-Agent": "@letta-ai/letta-client/0.0.68655", "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),
108
108
  contentType: "application/json",
109
109
  queryParameters: _queryParams,
110
110
  requestType: "json",
@@ -149,7 +149,7 @@ class Blocks {
149
149
  method: "GET",
150
150
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
151
151
  ? yield core.Supplier.get(this._options.project)
152
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68653", "User-Agent": "@letta-ai/letta-client/0.0.68653", "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),
152
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68655", "User-Agent": "@letta-ai/letta-client/0.0.68655", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
153
153
  contentType: "application/json",
154
154
  queryParameters: _queryParams,
155
155
  requestType: "json",
@@ -227,7 +227,7 @@ class Blocks {
227
227
  method: "POST",
228
228
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
229
229
  ? yield core.Supplier.get(this._options.project)
230
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68653", "User-Agent": "@letta-ai/letta-client/0.0.68653", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
230
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68655", "User-Agent": "@letta-ai/letta-client/0.0.68655", "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),
231
231
  contentType: "application/json",
232
232
  requestType: "json",
233
233
  body: serializers.CreateBlock.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -303,7 +303,7 @@ class Blocks {
303
303
  method: "GET",
304
304
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
305
305
  ? yield core.Supplier.get(this._options.project)
306
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68653", "User-Agent": "@letta-ai/letta-client/0.0.68653", "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),
306
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68655", "User-Agent": "@letta-ai/letta-client/0.0.68655", "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),
307
307
  contentType: "application/json",
308
308
  requestType: "json",
309
309
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -377,7 +377,7 @@ class Blocks {
377
377
  method: "GET",
378
378
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
379
379
  ? yield core.Supplier.get(this._options.project)
380
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68653", "User-Agent": "@letta-ai/letta-client/0.0.68653", "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),
380
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68655", "User-Agent": "@letta-ai/letta-client/0.0.68655", "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),
381
381
  contentType: "application/json",
382
382
  requestType: "json",
383
383
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -451,7 +451,7 @@ class Blocks {
451
451
  method: "DELETE",
452
452
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
453
453
  ? yield core.Supplier.get(this._options.project)
454
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68653", "User-Agent": "@letta-ai/letta-client/0.0.68653", "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),
454
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68655", "User-Agent": "@letta-ai/letta-client/0.0.68655", "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),
455
455
  contentType: "application/json",
456
456
  requestType: "json",
457
457
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -517,7 +517,7 @@ class Blocks {
517
517
  method: "PATCH",
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.68653", "User-Agent": "@letta-ai/letta-client/0.0.68653", "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.68655", "User-Agent": "@letta-ai/letta-client/0.0.68655", "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.BlockUpdate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -1,3 +1,3 @@
1
1
  export * from "./types";
2
- export * from "./client";
3
2
  export * from "./resources";
3
+ export * from "./client";
@@ -15,5 +15,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./types"), exports);
18
- __exportStar(require("./client"), exports);
19
18
  __exportStar(require("./resources"), exports);
19
+ __exportStar(require("./client"), exports);
@@ -52,8 +52,8 @@ exports.Agents = void 0;
52
52
  const environments = __importStar(require("../../../../../../environments"));
53
53
  const core = __importStar(require("../../../../../../core"));
54
54
  const Letta = __importStar(require("../../../../../index"));
55
- const url_join_1 = __importDefault(require("url-join"));
56
55
  const serializers = __importStar(require("../../../../../../serialization/index"));
56
+ const url_join_1 = __importDefault(require("url-join"));
57
57
  const errors = __importStar(require("../../../../../../errors/index"));
58
58
  class Agents {
59
59
  constructor(_options = {}) {
@@ -78,8 +78,25 @@ class Agents {
78
78
  __list(blockId_1) {
79
79
  return __awaiter(this, arguments, void 0, function* (blockId, request = {}, requestOptions) {
80
80
  var _a, _b, _c;
81
- const { includeRelationships } = request;
81
+ const { before, after, limit, order, orderBy, includeRelationships } = request;
82
82
  const _queryParams = {};
83
+ if (before != null) {
84
+ _queryParams["before"] = before;
85
+ }
86
+ if (after != null) {
87
+ _queryParams["after"] = after;
88
+ }
89
+ if (limit != null) {
90
+ _queryParams["limit"] = limit.toString();
91
+ }
92
+ if (order != null) {
93
+ _queryParams["order"] = serializers.blocks.AgentsListRequestOrder.jsonOrThrow(order, {
94
+ unrecognizedObjectKeys: "strip",
95
+ });
96
+ }
97
+ if (orderBy != null) {
98
+ _queryParams["order_by"] = orderBy;
99
+ }
83
100
  if (includeRelationships != null) {
84
101
  if (Array.isArray(includeRelationships)) {
85
102
  _queryParams["include_relationships"] = includeRelationships.map((item) => item);
@@ -93,7 +110,7 @@ class Agents {
93
110
  method: "GET",
94
111
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
95
112
  ? yield core.Supplier.get(this._options.project)
96
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68653", "User-Agent": "@letta-ai/letta-client/0.0.68653", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
113
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68655", "User-Agent": "@letta-ai/letta-client/0.0.68655", "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),
97
114
  contentType: "application/json",
98
115
  queryParameters: _queryParams,
99
116
  requestType: "json",
@@ -1,11 +1,32 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
+ import * as Letta from "../../../../../../index";
4
5
  /**
5
6
  * @example
6
7
  * {}
7
8
  */
8
9
  export interface AgentsListRequest {
10
+ /**
11
+ * Agent ID cursor for pagination. Returns agents that come before this agent ID in the specified sort order
12
+ */
13
+ before?: string;
14
+ /**
15
+ * Agent ID cursor for pagination. Returns agents that come after this agent ID in the specified sort order
16
+ */
17
+ after?: string;
18
+ /**
19
+ * Maximum number of agents to return
20
+ */
21
+ limit?: number;
22
+ /**
23
+ * Sort order for agents by creation time. 'asc' for oldest first, 'desc' for newest first
24
+ */
25
+ order?: Letta.blocks.AgentsListRequestOrder;
26
+ /**
27
+ * Field to sort by
28
+ */
29
+ orderBy?: "created_at";
9
30
  /**
10
31
  * Specify which relational fields (e.g., 'tools', 'sources', 'memory') to include in the response. If not provided, all relationships are loaded by default. Using this can optimize performance by reducing unnecessary joins.
11
32
  */
@@ -1 +1,2 @@
1
+ export * from "./types";
1
2
  export * from "./client";
@@ -14,4 +14,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./types"), exports);
17
18
  __exportStar(require("./client"), exports);