@letta-ai/letta-client 0.0.68654 → 0.0.68656

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (426) hide show
  1. package/api/resources/agents/client/Client.d.ts +4 -7
  2. package/api/resources/agents/client/Client.js +13 -16
  3. package/api/resources/agents/client/requests/CreateAgentRequest.d.ts +3 -1
  4. package/api/resources/agents/client/requests/UpdateAgent.d.ts +3 -1
  5. package/api/resources/agents/resources/blocks/client/Client.js +5 -5
  6. package/api/resources/agents/resources/context/client/Client.js +1 -1
  7. package/api/resources/agents/resources/coreMemory/client/Client.js +1 -1
  8. package/api/resources/agents/resources/files/client/Client.js +4 -4
  9. package/api/resources/agents/resources/folders/client/Client.js +3 -3
  10. package/api/resources/agents/resources/groups/client/Client.js +1 -1
  11. package/api/resources/agents/resources/memoryVariables/client/Client.js +1 -1
  12. package/api/resources/agents/resources/messages/client/Client.js +10 -10
  13. package/api/resources/agents/resources/passages/client/Client.js +5 -5
  14. package/api/resources/agents/resources/sources/client/Client.js +3 -3
  15. package/api/resources/agents/resources/templates/client/Client.js +3 -3
  16. package/api/resources/agents/resources/tools/client/Client.js +4 -4
  17. package/api/resources/batches/client/Client.js +4 -4
  18. package/api/resources/batches/resources/messages/client/Client.js +1 -1
  19. package/api/resources/blocks/client/Client.js +6 -6
  20. package/api/resources/blocks/index.d.ts +1 -1
  21. package/api/resources/blocks/index.js +1 -1
  22. package/api/resources/blocks/resources/agents/client/Client.js +20 -3
  23. package/api/resources/blocks/resources/agents/client/requests/AgentsListRequest.d.ts +21 -0
  24. package/api/resources/blocks/resources/agents/index.d.ts +1 -0
  25. package/api/resources/blocks/resources/agents/index.js +1 -0
  26. package/api/resources/blocks/resources/agents/types/AgentsListRequestOrder.d.ts +11 -0
  27. package/api/resources/blocks/resources/agents/types/AgentsListRequestOrder.js +10 -0
  28. package/api/resources/blocks/resources/agents/types/index.d.ts +1 -0
  29. package/api/resources/blocks/resources/agents/types/index.js +17 -0
  30. package/api/resources/blocks/resources/index.d.ts +1 -0
  31. package/api/resources/blocks/resources/index.js +1 -0
  32. package/api/resources/clientSideAccessTokens/client/Client.js +3 -3
  33. package/api/resources/folders/client/Client.d.ts +8 -5
  34. package/api/resources/folders/client/Client.js +21 -15
  35. package/api/resources/folders/client/requests/FoldersListRequest.d.ts +4 -0
  36. package/api/resources/folders/client/requests/{GetFoldersMetadataRequest.d.ts → RetrieveMetadataRequest.d.ts} +1 -1
  37. package/api/resources/folders/client/requests/index.d.ts +1 -1
  38. package/api/resources/folders/index.d.ts +1 -1
  39. package/api/resources/folders/index.js +1 -1
  40. package/api/resources/folders/resources/agents/client/Client.d.ts +3 -1
  41. package/api/resources/folders/resources/agents/client/Client.js +27 -6
  42. package/api/resources/folders/resources/agents/client/index.d.ts +1 -1
  43. package/api/resources/folders/resources/agents/client/index.js +15 -0
  44. package/api/resources/folders/resources/agents/client/requests/AgentsListRequest.d.ts +30 -0
  45. package/api/resources/folders/resources/agents/client/requests/index.d.ts +1 -0
  46. package/api/resources/folders/resources/agents/client/requests/index.js +2 -0
  47. package/api/resources/folders/resources/agents/index.d.ts +1 -0
  48. package/api/resources/folders/resources/agents/index.js +1 -0
  49. package/api/resources/folders/resources/agents/types/AgentsListRequestOrder.d.ts +11 -0
  50. package/api/resources/folders/resources/agents/types/AgentsListRequestOrder.js +10 -0
  51. package/api/resources/folders/resources/agents/types/index.d.ts +1 -0
  52. package/api/resources/folders/resources/agents/types/index.js +17 -0
  53. package/api/resources/folders/resources/files/client/Client.js +17 -6
  54. package/api/resources/folders/resources/files/client/requests/FilesListRequest.d.ts +16 -3
  55. package/api/resources/folders/resources/files/index.d.ts +1 -0
  56. package/api/resources/folders/resources/files/index.js +1 -0
  57. package/api/resources/folders/resources/files/types/FilesListRequestOrder.d.ts +11 -0
  58. package/api/resources/folders/resources/files/types/FilesListRequestOrder.js +10 -0
  59. package/api/resources/folders/resources/files/types/index.d.ts +1 -0
  60. package/api/resources/folders/resources/files/types/index.js +17 -0
  61. package/api/resources/folders/resources/index.d.ts +4 -0
  62. package/api/resources/folders/resources/index.js +4 -0
  63. package/api/resources/folders/resources/passages/client/Client.js +14 -6
  64. package/api/resources/folders/resources/passages/client/requests/PassagesListRequest.d.ts +14 -5
  65. package/api/resources/folders/resources/passages/index.d.ts +1 -0
  66. package/api/resources/folders/resources/passages/index.js +1 -0
  67. package/api/resources/folders/resources/passages/types/PassagesListRequestOrder.d.ts +11 -0
  68. package/api/resources/folders/resources/passages/types/PassagesListRequestOrder.js +10 -0
  69. package/api/resources/folders/resources/passages/types/index.d.ts +1 -0
  70. package/api/resources/folders/resources/passages/types/index.js +17 -0
  71. package/api/resources/groups/client/Client.js +6 -6
  72. package/api/resources/groups/resources/messages/client/Client.js +18 -10
  73. package/api/resources/groups/resources/messages/client/requests/MessagesListRequest.d.ts +14 -5
  74. package/api/resources/groups/resources/messages/types/MessagesListRequestOrder.d.ts +11 -0
  75. package/api/resources/groups/resources/messages/types/MessagesListRequestOrder.js +10 -0
  76. package/api/resources/groups/resources/messages/types/index.d.ts +1 -0
  77. package/api/resources/groups/resources/messages/types/index.js +1 -0
  78. package/api/resources/health/client/Client.js +1 -1
  79. package/api/resources/identities/client/Client.js +7 -7
  80. package/api/resources/identities/index.d.ts +1 -1
  81. package/api/resources/identities/index.js +1 -1
  82. package/api/resources/identities/resources/agents/client/Client.d.ts +7 -1
  83. package/api/resources/identities/resources/agents/client/Client.js +58 -11
  84. package/api/resources/identities/resources/agents/client/index.d.ts +1 -1
  85. package/api/resources/identities/resources/agents/client/index.js +15 -0
  86. package/api/resources/identities/resources/agents/client/requests/AgentsListRequest.d.ts +30 -0
  87. package/api/resources/identities/resources/agents/client/requests/AgentsListRequest.js +5 -0
  88. package/api/resources/identities/resources/agents/client/requests/index.d.ts +1 -0
  89. package/api/resources/identities/resources/agents/client/requests/index.js +2 -0
  90. package/api/resources/identities/resources/agents/index.d.ts +1 -0
  91. package/api/resources/identities/resources/agents/index.js +1 -0
  92. package/api/resources/identities/resources/agents/types/AgentsListRequestOrder.d.ts +11 -0
  93. package/api/resources/identities/resources/agents/types/AgentsListRequestOrder.js +10 -0
  94. package/api/resources/identities/resources/agents/types/index.d.ts +1 -0
  95. package/api/resources/identities/resources/agents/types/index.js +17 -0
  96. package/api/resources/identities/resources/blocks/client/Client.d.ts +7 -1
  97. package/api/resources/identities/resources/blocks/client/Client.js +58 -11
  98. package/api/resources/identities/resources/blocks/client/index.d.ts +1 -1
  99. package/api/resources/identities/resources/blocks/client/index.js +15 -0
  100. package/api/resources/identities/resources/blocks/client/requests/BlocksListRequest.d.ts +30 -0
  101. package/api/resources/identities/resources/blocks/client/requests/BlocksListRequest.js +5 -0
  102. package/api/resources/identities/resources/blocks/client/requests/index.d.ts +1 -0
  103. package/api/resources/identities/resources/blocks/client/requests/index.js +2 -0
  104. package/api/resources/identities/resources/blocks/index.d.ts +1 -0
  105. package/api/resources/identities/resources/blocks/index.js +1 -0
  106. package/api/resources/identities/resources/blocks/types/BlocksListRequestOrder.d.ts +11 -0
  107. package/api/resources/identities/resources/blocks/types/BlocksListRequestOrder.js +10 -0
  108. package/api/resources/identities/resources/blocks/types/index.d.ts +1 -0
  109. package/api/resources/identities/resources/blocks/types/index.js +17 -0
  110. package/api/resources/identities/resources/index.d.ts +5 -1
  111. package/api/resources/identities/resources/index.js +9 -2
  112. package/api/resources/identities/resources/properties/client/Client.js +1 -1
  113. package/api/resources/jobs/client/Client.js +5 -5
  114. package/api/resources/models/client/Client.js +2 -2
  115. package/api/resources/models/resources/embeddings/client/Client.js +1 -1
  116. package/api/resources/projects/client/Client.js +1 -1
  117. package/api/resources/providers/client/Client.js +6 -6
  118. package/api/resources/runs/client/Client.js +5 -5
  119. package/api/resources/runs/resources/messages/client/Client.js +1 -1
  120. package/api/resources/runs/resources/steps/client/Client.js +1 -1
  121. package/api/resources/runs/resources/usage/client/Client.js +1 -1
  122. package/api/resources/sources/client/Client.js +10 -10
  123. package/api/resources/sources/resources/files/client/Client.js +3 -3
  124. package/api/resources/sources/resources/passages/client/Client.js +1 -1
  125. package/api/resources/steps/client/Client.js +2 -2
  126. package/api/resources/steps/resources/feedback/client/Client.js +1 -1
  127. package/api/resources/steps/resources/metrics/client/Client.js +1 -1
  128. package/api/resources/steps/resources/trace/client/Client.js +1 -1
  129. package/api/resources/tags/client/Client.js +5 -2
  130. package/api/resources/tags/client/requests/TagsListRequest.d.ts +5 -1
  131. package/api/resources/telemetry/client/Client.js +1 -1
  132. package/api/resources/templates/client/Client.js +9 -9
  133. package/api/resources/templates/resources/agents/client/Client.js +1 -1
  134. package/api/resources/tools/client/Client.js +20 -20
  135. package/api/resources/voice/client/Client.js +1 -1
  136. package/api/types/AgentState.d.ts +3 -1
  137. package/api/types/InternalTemplateAgentCreate.d.ts +3 -1
  138. package/api/types/LettaSchemasAgentFileAgentSchema.d.ts +3 -1
  139. package/dist/api/resources/agents/client/Client.d.ts +4 -7
  140. package/dist/api/resources/agents/client/Client.js +13 -16
  141. package/dist/api/resources/agents/client/requests/CreateAgentRequest.d.ts +3 -1
  142. package/dist/api/resources/agents/client/requests/UpdateAgent.d.ts +3 -1
  143. package/dist/api/resources/agents/resources/blocks/client/Client.js +5 -5
  144. package/dist/api/resources/agents/resources/context/client/Client.js +1 -1
  145. package/dist/api/resources/agents/resources/coreMemory/client/Client.js +1 -1
  146. package/dist/api/resources/agents/resources/files/client/Client.js +4 -4
  147. package/dist/api/resources/agents/resources/folders/client/Client.js +3 -3
  148. package/dist/api/resources/agents/resources/groups/client/Client.js +1 -1
  149. package/dist/api/resources/agents/resources/memoryVariables/client/Client.js +1 -1
  150. package/dist/api/resources/agents/resources/messages/client/Client.js +10 -10
  151. package/dist/api/resources/agents/resources/passages/client/Client.js +5 -5
  152. package/dist/api/resources/agents/resources/sources/client/Client.js +3 -3
  153. package/dist/api/resources/agents/resources/templates/client/Client.js +3 -3
  154. package/dist/api/resources/agents/resources/tools/client/Client.js +4 -4
  155. package/dist/api/resources/batches/client/Client.js +4 -4
  156. package/dist/api/resources/batches/resources/messages/client/Client.js +1 -1
  157. package/dist/api/resources/blocks/client/Client.js +6 -6
  158. package/dist/api/resources/blocks/index.d.ts +1 -1
  159. package/dist/api/resources/blocks/index.js +1 -1
  160. package/dist/api/resources/blocks/resources/agents/client/Client.js +20 -3
  161. package/dist/api/resources/blocks/resources/agents/client/requests/AgentsListRequest.d.ts +21 -0
  162. package/dist/api/resources/blocks/resources/agents/index.d.ts +1 -0
  163. package/dist/api/resources/blocks/resources/agents/index.js +1 -0
  164. package/dist/api/resources/blocks/resources/agents/types/AgentsListRequestOrder.d.ts +11 -0
  165. package/dist/api/resources/blocks/resources/agents/types/AgentsListRequestOrder.js +10 -0
  166. package/dist/api/resources/blocks/resources/agents/types/index.d.ts +1 -0
  167. package/dist/api/resources/blocks/resources/agents/types/index.js +17 -0
  168. package/dist/api/resources/blocks/resources/index.d.ts +1 -0
  169. package/dist/api/resources/blocks/resources/index.js +1 -0
  170. package/dist/api/resources/clientSideAccessTokens/client/Client.js +3 -3
  171. package/dist/api/resources/folders/client/Client.d.ts +8 -5
  172. package/dist/api/resources/folders/client/Client.js +21 -15
  173. package/dist/api/resources/folders/client/requests/FoldersListRequest.d.ts +4 -0
  174. package/dist/api/resources/folders/client/requests/{GetFoldersMetadataRequest.d.ts → RetrieveMetadataRequest.d.ts} +1 -1
  175. package/dist/api/resources/folders/client/requests/RetrieveMetadataRequest.js +5 -0
  176. package/dist/api/resources/folders/client/requests/index.d.ts +1 -1
  177. package/dist/api/resources/folders/index.d.ts +1 -1
  178. package/dist/api/resources/folders/index.js +1 -1
  179. package/dist/api/resources/folders/resources/agents/client/Client.d.ts +3 -1
  180. package/dist/api/resources/folders/resources/agents/client/Client.js +27 -6
  181. package/dist/api/resources/folders/resources/agents/client/index.d.ts +1 -1
  182. package/dist/api/resources/folders/resources/agents/client/index.js +15 -0
  183. package/dist/api/resources/folders/resources/agents/client/requests/AgentsListRequest.d.ts +30 -0
  184. package/dist/api/resources/folders/resources/agents/client/requests/AgentsListRequest.js +5 -0
  185. package/dist/api/resources/folders/resources/agents/client/requests/index.d.ts +1 -0
  186. package/dist/api/resources/folders/resources/agents/client/requests/index.js +2 -0
  187. package/dist/api/resources/folders/resources/agents/index.d.ts +1 -0
  188. package/dist/api/resources/folders/resources/agents/index.js +1 -0
  189. package/dist/api/resources/folders/resources/agents/types/AgentsListRequestOrder.d.ts +11 -0
  190. package/dist/api/resources/folders/resources/agents/types/AgentsListRequestOrder.js +10 -0
  191. package/dist/api/resources/folders/resources/agents/types/index.d.ts +1 -0
  192. package/dist/api/resources/folders/resources/agents/types/index.js +17 -0
  193. package/dist/api/resources/folders/resources/files/client/Client.js +17 -6
  194. package/dist/api/resources/folders/resources/files/client/requests/FilesListRequest.d.ts +16 -3
  195. package/dist/api/resources/folders/resources/files/index.d.ts +1 -0
  196. package/dist/api/resources/folders/resources/files/index.js +1 -0
  197. package/dist/api/resources/folders/resources/files/types/FilesListRequestOrder.d.ts +11 -0
  198. package/dist/api/resources/folders/resources/files/types/FilesListRequestOrder.js +10 -0
  199. package/dist/api/resources/folders/resources/files/types/index.d.ts +1 -0
  200. package/dist/api/resources/folders/resources/files/types/index.js +17 -0
  201. package/dist/api/resources/folders/resources/index.d.ts +4 -0
  202. package/dist/api/resources/folders/resources/index.js +4 -0
  203. package/dist/api/resources/folders/resources/passages/client/Client.js +14 -6
  204. package/dist/api/resources/folders/resources/passages/client/requests/PassagesListRequest.d.ts +14 -5
  205. package/dist/api/resources/folders/resources/passages/index.d.ts +1 -0
  206. package/dist/api/resources/folders/resources/passages/index.js +1 -0
  207. package/dist/api/resources/folders/resources/passages/types/PassagesListRequestOrder.d.ts +11 -0
  208. package/dist/api/resources/folders/resources/passages/types/PassagesListRequestOrder.js +10 -0
  209. package/dist/api/resources/folders/resources/passages/types/index.d.ts +1 -0
  210. package/dist/api/resources/folders/resources/passages/types/index.js +17 -0
  211. package/dist/api/resources/groups/client/Client.js +6 -6
  212. package/dist/api/resources/groups/resources/messages/client/Client.js +18 -10
  213. package/dist/api/resources/groups/resources/messages/client/requests/MessagesListRequest.d.ts +14 -5
  214. package/dist/api/resources/groups/resources/messages/types/MessagesListRequestOrder.d.ts +11 -0
  215. package/dist/api/resources/groups/resources/messages/types/MessagesListRequestOrder.js +10 -0
  216. package/dist/api/resources/groups/resources/messages/types/index.d.ts +1 -0
  217. package/dist/api/resources/groups/resources/messages/types/index.js +1 -0
  218. package/dist/api/resources/health/client/Client.js +1 -1
  219. package/dist/api/resources/identities/client/Client.js +7 -7
  220. package/dist/api/resources/identities/index.d.ts +1 -1
  221. package/dist/api/resources/identities/index.js +1 -1
  222. package/dist/api/resources/identities/resources/agents/client/Client.d.ts +7 -1
  223. package/dist/api/resources/identities/resources/agents/client/Client.js +58 -11
  224. package/dist/api/resources/identities/resources/agents/client/index.d.ts +1 -1
  225. package/dist/api/resources/identities/resources/agents/client/index.js +15 -0
  226. package/dist/api/resources/identities/resources/agents/client/requests/AgentsListRequest.d.ts +30 -0
  227. package/dist/api/resources/identities/resources/agents/client/requests/AgentsListRequest.js +5 -0
  228. package/dist/api/resources/identities/resources/agents/client/requests/index.d.ts +1 -0
  229. package/dist/api/resources/identities/resources/agents/client/requests/index.js +2 -0
  230. package/dist/api/resources/identities/resources/agents/index.d.ts +1 -0
  231. package/dist/api/resources/identities/resources/agents/index.js +1 -0
  232. package/dist/api/resources/identities/resources/agents/types/AgentsListRequestOrder.d.ts +11 -0
  233. package/dist/api/resources/identities/resources/agents/types/AgentsListRequestOrder.js +10 -0
  234. package/dist/api/resources/identities/resources/agents/types/index.d.ts +1 -0
  235. package/dist/api/resources/identities/resources/agents/types/index.js +17 -0
  236. package/dist/api/resources/identities/resources/blocks/client/Client.d.ts +7 -1
  237. package/dist/api/resources/identities/resources/blocks/client/Client.js +58 -11
  238. package/dist/api/resources/identities/resources/blocks/client/index.d.ts +1 -1
  239. package/dist/api/resources/identities/resources/blocks/client/index.js +15 -0
  240. package/dist/api/resources/identities/resources/blocks/client/requests/BlocksListRequest.d.ts +30 -0
  241. package/dist/api/resources/identities/resources/blocks/client/requests/BlocksListRequest.js +5 -0
  242. package/dist/api/resources/identities/resources/blocks/client/requests/index.d.ts +1 -0
  243. package/dist/api/resources/identities/resources/blocks/client/requests/index.js +2 -0
  244. package/dist/api/resources/identities/resources/blocks/index.d.ts +1 -0
  245. package/dist/api/resources/identities/resources/blocks/index.js +1 -0
  246. package/dist/api/resources/identities/resources/blocks/types/BlocksListRequestOrder.d.ts +11 -0
  247. package/dist/api/resources/identities/resources/blocks/types/BlocksListRequestOrder.js +10 -0
  248. package/dist/api/resources/identities/resources/blocks/types/index.d.ts +1 -0
  249. package/dist/api/resources/identities/resources/blocks/types/index.js +17 -0
  250. package/dist/api/resources/identities/resources/index.d.ts +5 -1
  251. package/dist/api/resources/identities/resources/index.js +9 -2
  252. package/dist/api/resources/identities/resources/properties/client/Client.js +1 -1
  253. package/dist/api/resources/jobs/client/Client.js +5 -5
  254. package/dist/api/resources/models/client/Client.js +2 -2
  255. package/dist/api/resources/models/resources/embeddings/client/Client.js +1 -1
  256. package/dist/api/resources/projects/client/Client.js +1 -1
  257. package/dist/api/resources/providers/client/Client.js +6 -6
  258. package/dist/api/resources/runs/client/Client.js +5 -5
  259. package/dist/api/resources/runs/resources/messages/client/Client.js +1 -1
  260. package/dist/api/resources/runs/resources/steps/client/Client.js +1 -1
  261. package/dist/api/resources/runs/resources/usage/client/Client.js +1 -1
  262. package/dist/api/resources/sources/client/Client.js +10 -10
  263. package/dist/api/resources/sources/resources/files/client/Client.js +3 -3
  264. package/dist/api/resources/sources/resources/passages/client/Client.js +1 -1
  265. package/dist/api/resources/steps/client/Client.js +2 -2
  266. package/dist/api/resources/steps/resources/feedback/client/Client.js +1 -1
  267. package/dist/api/resources/steps/resources/metrics/client/Client.js +1 -1
  268. package/dist/api/resources/steps/resources/trace/client/Client.js +1 -1
  269. package/dist/api/resources/tags/client/Client.js +5 -2
  270. package/dist/api/resources/tags/client/requests/TagsListRequest.d.ts +5 -1
  271. package/dist/api/resources/telemetry/client/Client.js +1 -1
  272. package/dist/api/resources/templates/client/Client.js +9 -9
  273. package/dist/api/resources/templates/resources/agents/client/Client.js +1 -1
  274. package/dist/api/resources/tools/client/Client.js +20 -20
  275. package/dist/api/resources/voice/client/Client.js +1 -1
  276. package/dist/api/types/AgentState.d.ts +3 -1
  277. package/dist/api/types/InternalTemplateAgentCreate.d.ts +3 -1
  278. package/dist/api/types/LettaSchemasAgentFileAgentSchema.d.ts +3 -1
  279. package/dist/serialization/resources/agents/client/requests/CreateAgentRequest.d.ts +1 -0
  280. package/dist/serialization/resources/agents/client/requests/CreateAgentRequest.js +1 -0
  281. package/dist/serialization/resources/agents/client/requests/UpdateAgent.d.ts +1 -0
  282. package/dist/serialization/resources/agents/client/requests/UpdateAgent.js +3 -0
  283. package/dist/serialization/resources/blocks/index.d.ts +1 -1
  284. package/dist/serialization/resources/blocks/index.js +1 -1
  285. package/dist/serialization/resources/blocks/resources/agents/index.d.ts +1 -0
  286. package/dist/serialization/resources/blocks/resources/agents/index.js +1 -0
  287. package/dist/serialization/resources/blocks/resources/agents/types/AgentsListRequestOrder.d.ts +10 -0
  288. package/dist/serialization/resources/blocks/resources/agents/types/AgentsListRequestOrder.js +41 -0
  289. package/dist/serialization/resources/blocks/resources/agents/types/index.d.ts +1 -0
  290. package/dist/serialization/resources/blocks/resources/agents/types/index.js +17 -0
  291. package/dist/serialization/resources/blocks/resources/index.d.ts +1 -0
  292. package/dist/serialization/resources/blocks/resources/index.js +4 -0
  293. package/dist/serialization/resources/folders/index.d.ts +1 -1
  294. package/dist/serialization/resources/folders/index.js +1 -1
  295. package/dist/serialization/resources/folders/resources/agents/index.d.ts +1 -0
  296. package/dist/serialization/resources/folders/resources/agents/index.js +1 -0
  297. package/dist/serialization/resources/folders/resources/agents/types/AgentsListRequestOrder.d.ts +10 -0
  298. package/dist/serialization/resources/folders/resources/agents/types/AgentsListRequestOrder.js +41 -0
  299. package/dist/serialization/resources/folders/resources/agents/types/index.d.ts +1 -0
  300. package/dist/serialization/resources/folders/resources/agents/types/index.js +17 -0
  301. package/dist/serialization/resources/folders/resources/files/index.d.ts +1 -0
  302. package/dist/serialization/resources/folders/resources/files/index.js +1 -0
  303. package/dist/serialization/resources/folders/resources/files/types/FilesListRequestOrder.d.ts +10 -0
  304. package/dist/serialization/resources/folders/resources/files/types/FilesListRequestOrder.js +41 -0
  305. package/dist/serialization/resources/folders/resources/files/types/index.d.ts +1 -0
  306. package/dist/serialization/resources/folders/resources/files/types/index.js +17 -0
  307. package/dist/serialization/resources/folders/resources/index.d.ts +3 -0
  308. package/dist/serialization/resources/folders/resources/index.js +6 -0
  309. package/dist/serialization/resources/folders/resources/passages/index.d.ts +1 -0
  310. package/dist/serialization/resources/folders/resources/passages/index.js +1 -0
  311. package/dist/serialization/resources/folders/resources/passages/types/PassagesListRequestOrder.d.ts +10 -0
  312. package/dist/serialization/resources/folders/resources/passages/types/PassagesListRequestOrder.js +41 -0
  313. package/dist/serialization/resources/folders/resources/passages/types/index.d.ts +1 -0
  314. package/dist/serialization/resources/folders/resources/passages/types/index.js +17 -0
  315. package/dist/serialization/resources/groups/resources/messages/types/MessagesListRequestOrder.d.ts +10 -0
  316. package/dist/serialization/resources/groups/resources/messages/types/MessagesListRequestOrder.js +41 -0
  317. package/dist/serialization/resources/groups/resources/messages/types/index.d.ts +1 -0
  318. package/dist/serialization/resources/groups/resources/messages/types/index.js +1 -0
  319. package/dist/serialization/resources/identities/index.d.ts +1 -1
  320. package/dist/serialization/resources/identities/index.js +1 -1
  321. package/dist/serialization/resources/identities/resources/agents/client/index.d.ts +1 -0
  322. package/dist/serialization/resources/identities/resources/agents/client/index.js +37 -0
  323. package/dist/serialization/resources/identities/resources/agents/client/list.d.ts +11 -0
  324. package/dist/serialization/resources/identities/resources/agents/client/list.js +42 -0
  325. package/dist/serialization/resources/identities/resources/agents/index.d.ts +2 -0
  326. package/dist/serialization/resources/identities/resources/agents/index.js +18 -0
  327. package/dist/serialization/resources/identities/resources/agents/types/AgentsListRequestOrder.d.ts +10 -0
  328. package/dist/serialization/resources/identities/resources/agents/types/AgentsListRequestOrder.js +41 -0
  329. package/dist/serialization/resources/identities/resources/agents/types/index.d.ts +1 -0
  330. package/dist/serialization/resources/identities/resources/agents/types/index.js +17 -0
  331. package/dist/serialization/resources/identities/resources/blocks/client/index.d.ts +1 -0
  332. package/dist/serialization/resources/identities/resources/blocks/client/index.js +37 -0
  333. package/dist/serialization/resources/identities/resources/blocks/client/list.d.ts +11 -0
  334. package/dist/serialization/resources/identities/resources/blocks/client/list.js +42 -0
  335. package/dist/serialization/resources/identities/resources/blocks/index.d.ts +2 -0
  336. package/dist/serialization/resources/identities/resources/blocks/index.js +18 -0
  337. package/dist/serialization/resources/identities/resources/blocks/types/BlocksListRequestOrder.d.ts +10 -0
  338. package/dist/serialization/resources/identities/resources/blocks/types/BlocksListRequestOrder.js +41 -0
  339. package/dist/serialization/resources/identities/resources/blocks/types/index.d.ts +1 -0
  340. package/dist/serialization/resources/identities/resources/blocks/types/index.js +17 -0
  341. package/dist/serialization/resources/identities/resources/index.d.ts +4 -0
  342. package/dist/serialization/resources/identities/resources/index.js +8 -1
  343. package/dist/serialization/types/AgentState.d.ts +1 -0
  344. package/dist/serialization/types/AgentState.js +1 -0
  345. package/dist/serialization/types/InternalTemplateAgentCreate.d.ts +1 -0
  346. package/dist/serialization/types/InternalTemplateAgentCreate.js +1 -0
  347. package/dist/serialization/types/LettaSchemasAgentFileAgentSchema.d.ts +1 -0
  348. package/dist/serialization/types/LettaSchemasAgentFileAgentSchema.js +1 -0
  349. package/dist/version.d.ts +1 -1
  350. package/dist/version.js +1 -1
  351. package/package.json +1 -1
  352. package/reference.md +67 -14
  353. package/serialization/resources/agents/client/requests/CreateAgentRequest.d.ts +1 -0
  354. package/serialization/resources/agents/client/requests/CreateAgentRequest.js +1 -0
  355. package/serialization/resources/agents/client/requests/UpdateAgent.d.ts +1 -0
  356. package/serialization/resources/agents/client/requests/UpdateAgent.js +3 -0
  357. package/serialization/resources/blocks/index.d.ts +1 -1
  358. package/serialization/resources/blocks/index.js +1 -1
  359. package/serialization/resources/blocks/resources/agents/index.d.ts +1 -0
  360. package/serialization/resources/blocks/resources/agents/index.js +1 -0
  361. package/serialization/resources/blocks/resources/agents/types/AgentsListRequestOrder.d.ts +10 -0
  362. package/serialization/resources/blocks/resources/agents/types/AgentsListRequestOrder.js +41 -0
  363. package/serialization/resources/blocks/resources/agents/types/index.d.ts +1 -0
  364. package/serialization/resources/blocks/resources/agents/types/index.js +17 -0
  365. package/serialization/resources/blocks/resources/index.d.ts +1 -0
  366. package/serialization/resources/blocks/resources/index.js +4 -0
  367. package/serialization/resources/folders/index.d.ts +1 -1
  368. package/serialization/resources/folders/index.js +1 -1
  369. package/serialization/resources/folders/resources/agents/index.d.ts +1 -0
  370. package/serialization/resources/folders/resources/agents/index.js +1 -0
  371. package/serialization/resources/folders/resources/agents/types/AgentsListRequestOrder.d.ts +10 -0
  372. package/serialization/resources/folders/resources/agents/types/AgentsListRequestOrder.js +41 -0
  373. package/serialization/resources/folders/resources/agents/types/index.d.ts +1 -0
  374. package/serialization/resources/folders/resources/agents/types/index.js +17 -0
  375. package/serialization/resources/folders/resources/files/index.d.ts +1 -0
  376. package/serialization/resources/folders/resources/files/index.js +1 -0
  377. package/serialization/resources/folders/resources/files/types/FilesListRequestOrder.d.ts +10 -0
  378. package/serialization/resources/folders/resources/files/types/FilesListRequestOrder.js +41 -0
  379. package/serialization/resources/folders/resources/files/types/index.d.ts +1 -0
  380. package/serialization/resources/folders/resources/files/types/index.js +17 -0
  381. package/serialization/resources/folders/resources/index.d.ts +3 -0
  382. package/serialization/resources/folders/resources/index.js +6 -0
  383. package/serialization/resources/folders/resources/passages/index.d.ts +1 -0
  384. package/serialization/resources/folders/resources/passages/index.js +1 -0
  385. package/serialization/resources/folders/resources/passages/types/PassagesListRequestOrder.d.ts +10 -0
  386. package/serialization/resources/folders/resources/passages/types/PassagesListRequestOrder.js +41 -0
  387. package/serialization/resources/folders/resources/passages/types/index.d.ts +1 -0
  388. package/serialization/resources/folders/resources/passages/types/index.js +17 -0
  389. package/serialization/resources/groups/resources/messages/types/MessagesListRequestOrder.d.ts +10 -0
  390. package/serialization/resources/groups/resources/messages/types/MessagesListRequestOrder.js +41 -0
  391. package/serialization/resources/groups/resources/messages/types/index.d.ts +1 -0
  392. package/serialization/resources/groups/resources/messages/types/index.js +1 -0
  393. package/serialization/resources/identities/index.d.ts +1 -1
  394. package/serialization/resources/identities/index.js +1 -1
  395. package/serialization/resources/identities/resources/agents/client/index.d.ts +1 -0
  396. package/serialization/resources/identities/resources/agents/client/index.js +37 -0
  397. package/serialization/resources/identities/resources/agents/client/list.d.ts +11 -0
  398. package/serialization/resources/identities/resources/agents/client/list.js +42 -0
  399. package/serialization/resources/identities/resources/agents/index.d.ts +2 -0
  400. package/serialization/resources/identities/resources/agents/index.js +18 -0
  401. package/serialization/resources/identities/resources/agents/types/AgentsListRequestOrder.d.ts +10 -0
  402. package/serialization/resources/identities/resources/agents/types/AgentsListRequestOrder.js +41 -0
  403. package/serialization/resources/identities/resources/agents/types/index.d.ts +1 -0
  404. package/serialization/resources/identities/resources/agents/types/index.js +17 -0
  405. package/serialization/resources/identities/resources/blocks/client/index.d.ts +1 -0
  406. package/serialization/resources/identities/resources/blocks/client/index.js +37 -0
  407. package/serialization/resources/identities/resources/blocks/client/list.d.ts +11 -0
  408. package/serialization/resources/identities/resources/blocks/client/list.js +42 -0
  409. package/serialization/resources/identities/resources/blocks/index.d.ts +2 -0
  410. package/serialization/resources/identities/resources/blocks/index.js +18 -0
  411. package/serialization/resources/identities/resources/blocks/types/BlocksListRequestOrder.d.ts +10 -0
  412. package/serialization/resources/identities/resources/blocks/types/BlocksListRequestOrder.js +41 -0
  413. package/serialization/resources/identities/resources/blocks/types/index.d.ts +1 -0
  414. package/serialization/resources/identities/resources/blocks/types/index.js +17 -0
  415. package/serialization/resources/identities/resources/index.d.ts +4 -0
  416. package/serialization/resources/identities/resources/index.js +8 -1
  417. package/serialization/types/AgentState.d.ts +1 -0
  418. package/serialization/types/AgentState.js +1 -0
  419. package/serialization/types/InternalTemplateAgentCreate.d.ts +1 -0
  420. package/serialization/types/InternalTemplateAgentCreate.js +1 -0
  421. package/serialization/types/LettaSchemasAgentFileAgentSchema.d.ts +1 -0
  422. package/serialization/types/LettaSchemasAgentFileAgentSchema.js +1 -0
  423. package/version.d.ts +1 -1
  424. package/version.js +1 -1
  425. /package/api/resources/folders/client/requests/{GetFoldersMetadataRequest.js → RetrieveMetadataRequest.js} +0 -0
  426. /package/{dist/api/resources/folders/client/requests/GetFoldersMetadataRequest.js → api/resources/folders/resources/agents/client/requests/AgentsListRequest.js} +0 -0
@@ -52,8 +52,8 @@ exports.Messages = 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 Messages {
59
59
  constructor(_options = {}) {
@@ -77,17 +77,25 @@ class Messages {
77
77
  __list(groupId_1) {
78
78
  return __awaiter(this, arguments, void 0, function* (groupId, request = {}, requestOptions) {
79
79
  var _a, _b, _c;
80
- const { after, before, limit, useAssistantMessage, assistantMessageToolName, assistantMessageToolKwarg } = request;
80
+ const { before, after, limit, order, orderBy, useAssistantMessage, assistantMessageToolName, assistantMessageToolKwarg, } = request;
81
81
  const _queryParams = {};
82
- if (after != null) {
83
- _queryParams["after"] = after;
84
- }
85
82
  if (before != null) {
86
83
  _queryParams["before"] = before;
87
84
  }
85
+ if (after != null) {
86
+ _queryParams["after"] = after;
87
+ }
88
88
  if (limit != null) {
89
89
  _queryParams["limit"] = limit.toString();
90
90
  }
91
+ if (order != null) {
92
+ _queryParams["order"] = serializers.groups.MessagesListRequestOrder.jsonOrThrow(order, {
93
+ unrecognizedObjectKeys: "strip",
94
+ });
95
+ }
96
+ if (orderBy != null) {
97
+ _queryParams["order_by"] = orderBy;
98
+ }
91
99
  if (useAssistantMessage != null) {
92
100
  _queryParams["use_assistant_message"] = useAssistantMessage.toString();
93
101
  }
@@ -102,7 +110,7 @@ class Messages {
102
110
  method: "GET",
103
111
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
104
112
  ? yield core.Supplier.get(this._options.project)
105
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68654", "User-Agent": "@letta-ai/letta-client/0.0.68654", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
113
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68656", "User-Agent": "@letta-ai/letta-client/0.0.68656", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
106
114
  contentType: "application/json",
107
115
  queryParameters: _queryParams,
108
116
  requestType: "json",
@@ -189,7 +197,7 @@ class Messages {
189
197
  method: "POST",
190
198
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
191
199
  ? yield core.Supplier.get(this._options.project)
192
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68654", "User-Agent": "@letta-ai/letta-client/0.0.68654", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
200
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68656", "User-Agent": "@letta-ai/letta-client/0.0.68656", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
193
201
  contentType: "application/json",
194
202
  requestType: "json",
195
203
  body: serializers.LettaRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -260,7 +268,7 @@ class Messages {
260
268
  method: "POST",
261
269
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
262
270
  ? yield core.Supplier.get(this._options.project)
263
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68654", "User-Agent": "@letta-ai/letta-client/0.0.68654", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
271
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68656", "User-Agent": "@letta-ai/letta-client/0.0.68656", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
264
272
  contentType: "application/json",
265
273
  requestType: "json",
266
274
  body: serializers.LettaStreamingRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -352,7 +360,7 @@ class Messages {
352
360
  method: "PATCH",
353
361
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
354
362
  ? yield core.Supplier.get(this._options.project)
355
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68654", "User-Agent": "@letta-ai/letta-client/0.0.68654", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
363
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68656", "User-Agent": "@letta-ai/letta-client/0.0.68656", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
356
364
  contentType: "application/json",
357
365
  requestType: "json",
358
366
  body: serializers.groups.MessagesModifyRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -429,7 +437,7 @@ class Messages {
429
437
  method: "PATCH",
430
438
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
431
439
  ? yield core.Supplier.get(this._options.project)
432
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68654", "User-Agent": "@letta-ai/letta-client/0.0.68654", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
440
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68656", "User-Agent": "@letta-ai/letta-client/0.0.68656", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
433
441
  contentType: "application/json",
434
442
  requestType: "json",
435
443
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -1,23 +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 MessagesListRequest {
9
10
  /**
10
- * Message after which to retrieve the returned messages.
11
+ * Message ID cursor for pagination. Returns messages that come before this message ID in the specified sort order
11
12
  */
12
- after?: string;
13
+ before?: string;
13
14
  /**
14
- * Message before which to retrieve the returned messages.
15
+ * Message ID cursor for pagination. Returns messages that come after this message ID in the specified sort order
15
16
  */
16
- before?: string;
17
+ after?: string;
17
18
  /**
18
- * Maximum number of messages to retrieve.
19
+ * Maximum number of messages to retrieve
19
20
  */
20
21
  limit?: number;
22
+ /**
23
+ * Sort order for messages by creation time. 'asc' for oldest first, 'desc' for newest first
24
+ */
25
+ order?: Letta.groups.MessagesListRequestOrder;
26
+ /**
27
+ * Field to sort by
28
+ */
29
+ orderBy?: "created_at";
21
30
  /**
22
31
  * Whether to use assistant messages
23
32
  */
@@ -0,0 +1,11 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * Sort order for messages by creation time. 'asc' for oldest first, 'desc' for newest first
6
+ */
7
+ export type MessagesListRequestOrder = "asc" | "desc";
8
+ export declare const MessagesListRequestOrder: {
9
+ readonly Asc: "asc";
10
+ readonly Desc: "desc";
11
+ };
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.MessagesListRequestOrder = void 0;
7
+ exports.MessagesListRequestOrder = {
8
+ Asc: "asc",
9
+ Desc: "desc",
10
+ };
@@ -1,3 +1,4 @@
1
+ export * from "./MessagesListRequestOrder";
1
2
  export * from "./LettaStreamingResponse";
2
3
  export * from "./MessagesModifyRequest";
3
4
  export * from "./MessagesModifyResponse";
@@ -14,6 +14,7 @@ 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("./MessagesListRequestOrder"), exports);
17
18
  __exportStar(require("./LettaStreamingResponse"), exports);
18
19
  __exportStar(require("./MessagesModifyRequest"), exports);
19
20
  __exportStar(require("./MessagesModifyResponse"), exports);
@@ -75,7 +75,7 @@ class Health {
75
75
  method: "GET",
76
76
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
77
77
  ? yield core.Supplier.get(this._options.project)
78
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68654", "User-Agent": "@letta-ai/letta-client/0.0.68654", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
78
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68656", "User-Agent": "@letta-ai/letta-client/0.0.68656", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
79
79
  contentType: "application/json",
80
80
  requestType: "json",
81
81
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -129,7 +129,7 @@ class Identities {
129
129
  method: "GET",
130
130
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
131
131
  ? yield core.Supplier.get(this._options.project)
132
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68654", "User-Agent": "@letta-ai/letta-client/0.0.68654", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
132
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68656", "User-Agent": "@letta-ai/letta-client/0.0.68656", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
133
133
  contentType: "application/json",
134
134
  queryParameters: _queryParams,
135
135
  requestType: "json",
@@ -208,7 +208,7 @@ class Identities {
208
208
  method: "POST",
209
209
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
210
210
  ? yield core.Supplier.get(this._options.project)
211
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68654", "User-Agent": "@letta-ai/letta-client/0.0.68654", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
211
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68656", "User-Agent": "@letta-ai/letta-client/0.0.68656", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
212
212
  contentType: "application/json",
213
213
  requestType: "json",
214
214
  body: serializers.IdentityCreate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -287,7 +287,7 @@ class Identities {
287
287
  method: "PUT",
288
288
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
289
289
  ? yield core.Supplier.get(this._options.project)
290
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68654", "User-Agent": "@letta-ai/letta-client/0.0.68654", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
290
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68656", "User-Agent": "@letta-ai/letta-client/0.0.68656", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
291
291
  contentType: "application/json",
292
292
  requestType: "json",
293
293
  body: serializers.IdentityUpsert.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -363,7 +363,7 @@ class Identities {
363
363
  method: "GET",
364
364
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
365
365
  ? yield core.Supplier.get(this._options.project)
366
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68654", "User-Agent": "@letta-ai/letta-client/0.0.68654", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
366
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68656", "User-Agent": "@letta-ai/letta-client/0.0.68656", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
367
367
  contentType: "application/json",
368
368
  requestType: "json",
369
369
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -437,7 +437,7 @@ class Identities {
437
437
  method: "GET",
438
438
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
439
439
  ? yield core.Supplier.get(this._options.project)
440
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68654", "User-Agent": "@letta-ai/letta-client/0.0.68654", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
440
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68656", "User-Agent": "@letta-ai/letta-client/0.0.68656", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
441
441
  contentType: "application/json",
442
442
  requestType: "json",
443
443
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -513,7 +513,7 @@ class Identities {
513
513
  method: "DELETE",
514
514
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
515
515
  ? yield core.Supplier.get(this._options.project)
516
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68654", "User-Agent": "@letta-ai/letta-client/0.0.68654", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
516
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68656", "User-Agent": "@letta-ai/letta-client/0.0.68656", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
517
517
  contentType: "application/json",
518
518
  requestType: "json",
519
519
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -579,7 +579,7 @@ class Identities {
579
579
  method: "PATCH",
580
580
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
581
581
  ? yield core.Supplier.get(this._options.project)
582
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68654", "User-Agent": "@letta-ai/letta-client/0.0.68654", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
582
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68656", "User-Agent": "@letta-ai/letta-client/0.0.68656", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
583
583
  contentType: "application/json",
584
584
  requestType: "json",
585
585
  body: serializers.IdentityUpdate.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);
@@ -3,6 +3,7 @@
3
3
  */
4
4
  import * as environments from "../../../../../../environments";
5
5
  import * as core from "../../../../../../core";
6
+ import * as Letta from "../../../../../index";
6
7
  export declare namespace Agents {
7
8
  interface Options {
8
9
  environment?: core.Supplier<environments.LettaEnvironment | string>;
@@ -30,13 +31,18 @@ export declare class Agents {
30
31
  protected readonly _options: Agents.Options;
31
32
  constructor(_options?: Agents.Options);
32
33
  /**
34
+ * Get all agents associated with the specified identity.
35
+ *
33
36
  * @param {string} identityId
37
+ * @param {Letta.identities.AgentsListRequest} request
34
38
  * @param {Agents.RequestOptions} requestOptions - Request-specific configuration.
35
39
  *
40
+ * @throws {@link Letta.UnprocessableEntityError}
41
+ *
36
42
  * @example
37
43
  * await client.identities.agents.list("identity_id")
38
44
  */
39
- list(identityId: string, requestOptions?: Agents.RequestOptions): core.HttpResponsePromise<void>;
45
+ list(identityId: string, request?: Letta.identities.AgentsListRequest, requestOptions?: Agents.RequestOptions): core.HttpResponsePromise<Letta.AgentState[]>;
40
46
  private __list;
41
47
  protected _getCustomAuthorizationHeaders(): Promise<{
42
48
  Authorization: string;
@@ -51,6 +51,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
51
51
  exports.Agents = void 0;
52
52
  const environments = __importStar(require("../../../../../../environments"));
53
53
  const core = __importStar(require("../../../../../../core"));
54
+ const Letta = __importStar(require("../../../../../index"));
55
+ const serializers = __importStar(require("../../../../../../serialization/index"));
54
56
  const url_join_1 = __importDefault(require("url-join"));
55
57
  const errors = __importStar(require("../../../../../../errors/index"));
56
58
  class Agents {
@@ -58,39 +60,84 @@ class Agents {
58
60
  this._options = _options;
59
61
  }
60
62
  /**
63
+ * Get all agents associated with the specified identity.
64
+ *
61
65
  * @param {string} identityId
66
+ * @param {Letta.identities.AgentsListRequest} request
62
67
  * @param {Agents.RequestOptions} requestOptions - Request-specific configuration.
63
68
  *
69
+ * @throws {@link Letta.UnprocessableEntityError}
70
+ *
64
71
  * @example
65
72
  * await client.identities.agents.list("identity_id")
66
73
  */
67
- list(identityId, requestOptions) {
68
- return core.HttpResponsePromise.fromPromise(this.__list(identityId, requestOptions));
74
+ list(identityId, request = {}, requestOptions) {
75
+ return core.HttpResponsePromise.fromPromise(this.__list(identityId, request, requestOptions));
69
76
  }
70
- __list(identityId, requestOptions) {
71
- return __awaiter(this, void 0, void 0, function* () {
77
+ __list(identityId_1) {
78
+ return __awaiter(this, arguments, void 0, function* (identityId, request = {}, requestOptions) {
72
79
  var _a, _b, _c;
80
+ const { before, after, limit, order, orderBy } = request;
81
+ const _queryParams = {};
82
+ if (before != null) {
83
+ _queryParams["before"] = before;
84
+ }
85
+ if (after != null) {
86
+ _queryParams["after"] = after;
87
+ }
88
+ if (limit != null) {
89
+ _queryParams["limit"] = limit.toString();
90
+ }
91
+ if (order != null) {
92
+ _queryParams["order"] = serializers.identities.AgentsListRequestOrder.jsonOrThrow(order, {
93
+ unrecognizedObjectKeys: "strip",
94
+ });
95
+ }
96
+ if (orderBy != null) {
97
+ _queryParams["order_by"] = orderBy;
98
+ }
73
99
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
74
100
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, `v1/identities/${encodeURIComponent(identityId)}/agents`),
75
101
  method: "GET",
76
102
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
77
103
  ? yield core.Supplier.get(this._options.project)
78
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68654", "User-Agent": "@letta-ai/letta-client/0.0.68654", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
104
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68656", "User-Agent": "@letta-ai/letta-client/0.0.68656", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
79
105
  contentType: "application/json",
106
+ queryParameters: _queryParams,
80
107
  requestType: "json",
81
108
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
82
109
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
83
110
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
84
111
  });
85
112
  if (_response.ok) {
86
- return { data: undefined, rawResponse: _response.rawResponse };
113
+ return {
114
+ data: serializers.identities.agents.list.Response.parseOrThrow(_response.body, {
115
+ unrecognizedObjectKeys: "passthrough",
116
+ allowUnrecognizedUnionMembers: true,
117
+ allowUnrecognizedEnumValues: true,
118
+ skipValidation: true,
119
+ breadcrumbsPrefix: ["response"],
120
+ }),
121
+ rawResponse: _response.rawResponse,
122
+ };
87
123
  }
88
124
  if (_response.error.reason === "status-code") {
89
- throw new errors.LettaError({
90
- statusCode: _response.error.statusCode,
91
- body: _response.error.body,
92
- rawResponse: _response.rawResponse,
93
- });
125
+ switch (_response.error.statusCode) {
126
+ case 422:
127
+ throw new Letta.UnprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
128
+ unrecognizedObjectKeys: "passthrough",
129
+ allowUnrecognizedUnionMembers: true,
130
+ allowUnrecognizedEnumValues: true,
131
+ skipValidation: true,
132
+ breadcrumbsPrefix: ["response"],
133
+ }), _response.rawResponse);
134
+ default:
135
+ throw new errors.LettaError({
136
+ statusCode: _response.error.statusCode,
137
+ body: _response.error.body,
138
+ rawResponse: _response.rawResponse,
139
+ });
140
+ }
94
141
  }
95
142
  switch (_response.error.reason) {
96
143
  case "non-json":
@@ -1 +1 @@
1
- export {};
1
+ export * from "./requests";
@@ -1,2 +1,17 @@
1
1
  "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
2
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./requests"), exports);
@@ -0,0 +1,30 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Letta from "../../../../../../index";
5
+ /**
6
+ * @example
7
+ * {}
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.identities.AgentsListRequestOrder;
26
+ /**
27
+ * Field to sort by
28
+ */
29
+ orderBy?: "created_at";
30
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1 @@
1
+ export { type AgentsListRequest } from "./AgentsListRequest";
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -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);
@@ -0,0 +1,11 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * Sort order for agents by creation time. 'asc' for oldest first, 'desc' for newest first
6
+ */
7
+ export type AgentsListRequestOrder = "asc" | "desc";
8
+ export declare const AgentsListRequestOrder: {
9
+ readonly Asc: "asc";
10
+ readonly Desc: "desc";
11
+ };
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.AgentsListRequestOrder = void 0;
7
+ exports.AgentsListRequestOrder = {
8
+ Asc: "asc",
9
+ Desc: "desc",
10
+ };
@@ -0,0 +1 @@
1
+ export * from "./AgentsListRequestOrder";
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./AgentsListRequestOrder"), exports);
@@ -3,6 +3,7 @@
3
3
  */
4
4
  import * as environments from "../../../../../../environments";
5
5
  import * as core from "../../../../../../core";
6
+ import * as Letta from "../../../../../index";
6
7
  export declare namespace Blocks {
7
8
  interface Options {
8
9
  environment?: core.Supplier<environments.LettaEnvironment | string>;
@@ -30,13 +31,18 @@ export declare class Blocks {
30
31
  protected readonly _options: Blocks.Options;
31
32
  constructor(_options?: Blocks.Options);
32
33
  /**
34
+ * Get all blocks associated with the specified identity.
35
+ *
33
36
  * @param {string} identityId
37
+ * @param {Letta.identities.BlocksListRequest} request
34
38
  * @param {Blocks.RequestOptions} requestOptions - Request-specific configuration.
35
39
  *
40
+ * @throws {@link Letta.UnprocessableEntityError}
41
+ *
36
42
  * @example
37
43
  * await client.identities.blocks.list("identity_id")
38
44
  */
39
- list(identityId: string, requestOptions?: Blocks.RequestOptions): core.HttpResponsePromise<void>;
45
+ list(identityId: string, request?: Letta.identities.BlocksListRequest, requestOptions?: Blocks.RequestOptions): core.HttpResponsePromise<Letta.Block[]>;
40
46
  private __list;
41
47
  protected _getCustomAuthorizationHeaders(): Promise<{
42
48
  Authorization: string;