@letta-ai/letta-client 0.0.68656 → 0.0.68658

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 (337) hide show
  1. package/Client.d.ts +3 -0
  2. package/Client.js +45 -40
  3. package/README.md +9 -9
  4. package/api/resources/agents/client/Client.js +9 -9
  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/archives/client/Client.d.ts +78 -0
  18. package/api/resources/archives/client/Client.js +325 -0
  19. package/api/resources/archives/client/index.d.ts +1 -0
  20. package/api/resources/archives/client/index.js +17 -0
  21. package/api/resources/archives/client/requests/ArchiveCreateRequest.d.ts +13 -0
  22. package/api/resources/archives/client/requests/ArchiveCreateRequest.js +5 -0
  23. package/api/resources/archives/client/requests/ArchiveUpdateRequest.d.ts +11 -0
  24. package/api/resources/archives/client/requests/ArchiveUpdateRequest.js +5 -0
  25. package/api/resources/archives/client/requests/ListArchivesRequest.d.ts +34 -0
  26. package/api/resources/archives/client/requests/ListArchivesRequest.js +5 -0
  27. package/api/resources/archives/client/requests/index.d.ts +3 -0
  28. package/api/resources/archives/client/requests/index.js +2 -0
  29. package/api/resources/archives/index.d.ts +2 -0
  30. package/api/resources/archives/index.js +18 -0
  31. package/api/resources/archives/types/ListArchivesRequestOrder.d.ts +11 -0
  32. package/api/resources/archives/types/ListArchivesRequestOrder.js +10 -0
  33. package/api/resources/archives/types/index.d.ts +1 -0
  34. package/api/resources/archives/types/index.js +17 -0
  35. package/api/resources/batches/client/Client.js +4 -4
  36. package/api/resources/batches/resources/messages/client/Client.js +1 -1
  37. package/api/resources/blocks/client/Client.js +6 -6
  38. package/api/resources/blocks/resources/agents/client/Client.js +1 -1
  39. package/api/resources/clientSideAccessTokens/client/Client.js +3 -3
  40. package/api/resources/folders/client/Client.js +8 -8
  41. package/api/resources/folders/resources/agents/client/Client.js +1 -1
  42. package/api/resources/folders/resources/files/client/Client.js +3 -3
  43. package/api/resources/folders/resources/passages/client/Client.js +1 -1
  44. package/api/resources/groups/client/Client.js +6 -6
  45. package/api/resources/groups/resources/messages/client/Client.js +5 -5
  46. package/api/resources/health/client/Client.js +1 -1
  47. package/api/resources/identities/client/Client.js +7 -7
  48. package/api/resources/identities/resources/agents/client/Client.js +1 -1
  49. package/api/resources/identities/resources/blocks/client/Client.js +1 -1
  50. package/api/resources/identities/resources/properties/client/Client.js +1 -1
  51. package/api/resources/index.d.ts +3 -0
  52. package/api/resources/index.js +4 -1
  53. package/api/resources/jobs/client/Client.d.ts +0 -1
  54. package/api/resources/jobs/client/Client.js +9 -7
  55. package/api/resources/jobs/client/requests/JobsListRequest.d.ts +4 -0
  56. package/api/resources/models/client/Client.js +2 -2
  57. package/api/resources/models/resources/embeddings/client/Client.js +1 -1
  58. package/api/resources/projects/client/Client.js +1 -1
  59. package/api/resources/providers/client/Client.js +6 -6
  60. package/api/resources/runs/client/Client.js +15 -7
  61. package/api/resources/runs/client/requests/RunsListRequest.d.ts +9 -0
  62. package/api/resources/runs/resources/messages/client/Client.js +1 -1
  63. package/api/resources/runs/resources/steps/client/Client.js +1 -1
  64. package/api/resources/runs/resources/usage/client/Client.js +1 -1
  65. package/api/resources/sources/client/Client.js +10 -10
  66. package/api/resources/sources/resources/files/client/Client.js +3 -3
  67. package/api/resources/sources/resources/passages/client/Client.js +1 -1
  68. package/api/resources/steps/client/Client.d.ts +3 -0
  69. package/api/resources/steps/client/Client.js +7 -2
  70. package/api/resources/steps/index.d.ts +1 -1
  71. package/api/resources/steps/index.js +1 -1
  72. package/api/resources/steps/resources/feedback/client/Client.js +1 -1
  73. package/api/resources/steps/resources/index.d.ts +3 -0
  74. package/api/resources/steps/resources/index.js +4 -1
  75. package/api/resources/steps/resources/messages/client/Client.d.ts +50 -0
  76. package/api/resources/steps/resources/messages/client/Client.js +166 -0
  77. package/api/resources/steps/resources/messages/client/index.d.ts +1 -0
  78. package/api/resources/steps/resources/messages/client/index.js +17 -0
  79. package/api/resources/steps/resources/messages/client/requests/MessagesListRequest.d.ts +30 -0
  80. package/api/resources/steps/resources/messages/client/requests/MessagesListRequest.js +5 -0
  81. package/api/resources/steps/resources/messages/client/requests/index.d.ts +1 -0
  82. package/api/resources/steps/resources/messages/client/requests/index.js +2 -0
  83. package/api/resources/steps/resources/messages/index.d.ts +2 -0
  84. package/api/resources/steps/resources/messages/index.js +18 -0
  85. package/api/resources/steps/resources/messages/types/MessagesListRequestOrder.d.ts +11 -0
  86. package/api/resources/steps/resources/messages/types/MessagesListRequestOrder.js +10 -0
  87. package/api/resources/steps/resources/messages/types/MessagesListResponseItem.d.ts +5 -0
  88. package/api/resources/steps/resources/messages/types/MessagesListResponseItem.js +5 -0
  89. package/api/resources/steps/resources/messages/types/index.d.ts +2 -0
  90. package/api/resources/steps/resources/messages/types/index.js +18 -0
  91. package/api/resources/steps/resources/metrics/client/Client.js +1 -1
  92. package/api/resources/steps/resources/trace/client/Client.js +1 -1
  93. package/api/resources/tags/client/Client.js +1 -1
  94. package/api/resources/telemetry/client/Client.js +1 -1
  95. package/api/resources/templates/client/Client.js +9 -9
  96. package/api/resources/templates/resources/agents/client/Client.js +1 -1
  97. package/api/resources/tools/client/Client.js +20 -20
  98. package/api/resources/voice/client/Client.js +1 -1
  99. package/api/types/Archive.d.ts +35 -0
  100. package/api/types/Archive.js +5 -0
  101. package/api/types/BatchJob.d.ts +2 -0
  102. package/api/types/ChildToolRule.d.ts +1 -1
  103. package/api/types/ConditionalToolRule.d.ts +1 -1
  104. package/api/types/ContinueToolRule.d.ts +1 -1
  105. package/api/types/InitToolRule.d.ts +1 -1
  106. package/api/types/Job.d.ts +2 -0
  107. package/api/types/MaxCountPerStepToolRule.d.ts +1 -1
  108. package/api/types/Memory.d.ts +3 -1
  109. package/api/types/MemoryAgentType.d.ts +8 -0
  110. package/api/types/MemoryAgentType.js +5 -0
  111. package/api/types/ParentToolRule.d.ts +1 -1
  112. package/api/types/RequiredBeforeExitToolRule.d.ts +1 -1
  113. package/api/types/RequiresApprovalToolRule.d.ts +1 -1
  114. package/api/types/Run.d.ts +2 -0
  115. package/api/types/Step.d.ts +1 -1
  116. package/api/types/TerminalToolRule.d.ts +1 -1
  117. package/api/types/index.d.ts +2 -0
  118. package/api/types/index.js +2 -0
  119. package/dist/Client.d.ts +3 -0
  120. package/dist/Client.js +45 -40
  121. package/dist/api/resources/agents/client/Client.js +9 -9
  122. package/dist/api/resources/agents/resources/blocks/client/Client.js +5 -5
  123. package/dist/api/resources/agents/resources/context/client/Client.js +1 -1
  124. package/dist/api/resources/agents/resources/coreMemory/client/Client.js +1 -1
  125. package/dist/api/resources/agents/resources/files/client/Client.js +4 -4
  126. package/dist/api/resources/agents/resources/folders/client/Client.js +3 -3
  127. package/dist/api/resources/agents/resources/groups/client/Client.js +1 -1
  128. package/dist/api/resources/agents/resources/memoryVariables/client/Client.js +1 -1
  129. package/dist/api/resources/agents/resources/messages/client/Client.js +10 -10
  130. package/dist/api/resources/agents/resources/passages/client/Client.js +5 -5
  131. package/dist/api/resources/agents/resources/sources/client/Client.js +3 -3
  132. package/dist/api/resources/agents/resources/templates/client/Client.js +3 -3
  133. package/dist/api/resources/agents/resources/tools/client/Client.js +4 -4
  134. package/dist/api/resources/archives/client/Client.d.ts +78 -0
  135. package/dist/api/resources/archives/client/Client.js +325 -0
  136. package/dist/api/resources/archives/client/index.d.ts +1 -0
  137. package/dist/api/resources/archives/client/index.js +17 -0
  138. package/dist/api/resources/archives/client/requests/ArchiveCreateRequest.d.ts +13 -0
  139. package/dist/api/resources/archives/client/requests/ArchiveCreateRequest.js +5 -0
  140. package/dist/api/resources/archives/client/requests/ArchiveUpdateRequest.d.ts +11 -0
  141. package/dist/api/resources/archives/client/requests/ArchiveUpdateRequest.js +5 -0
  142. package/dist/api/resources/archives/client/requests/ListArchivesRequest.d.ts +34 -0
  143. package/dist/api/resources/archives/client/requests/ListArchivesRequest.js +5 -0
  144. package/dist/api/resources/archives/client/requests/index.d.ts +3 -0
  145. package/dist/api/resources/archives/client/requests/index.js +2 -0
  146. package/dist/api/resources/archives/index.d.ts +2 -0
  147. package/dist/api/resources/archives/index.js +18 -0
  148. package/dist/api/resources/archives/types/ListArchivesRequestOrder.d.ts +11 -0
  149. package/dist/api/resources/archives/types/ListArchivesRequestOrder.js +10 -0
  150. package/dist/api/resources/archives/types/index.d.ts +1 -0
  151. package/dist/api/resources/archives/types/index.js +17 -0
  152. package/dist/api/resources/batches/client/Client.js +4 -4
  153. package/dist/api/resources/batches/resources/messages/client/Client.js +1 -1
  154. package/dist/api/resources/blocks/client/Client.js +6 -6
  155. package/dist/api/resources/blocks/resources/agents/client/Client.js +1 -1
  156. package/dist/api/resources/clientSideAccessTokens/client/Client.js +3 -3
  157. package/dist/api/resources/folders/client/Client.js +8 -8
  158. package/dist/api/resources/folders/resources/agents/client/Client.js +1 -1
  159. package/dist/api/resources/folders/resources/files/client/Client.js +3 -3
  160. package/dist/api/resources/folders/resources/passages/client/Client.js +1 -1
  161. package/dist/api/resources/groups/client/Client.js +6 -6
  162. package/dist/api/resources/groups/resources/messages/client/Client.js +5 -5
  163. package/dist/api/resources/health/client/Client.js +1 -1
  164. package/dist/api/resources/identities/client/Client.js +7 -7
  165. package/dist/api/resources/identities/resources/agents/client/Client.js +1 -1
  166. package/dist/api/resources/identities/resources/blocks/client/Client.js +1 -1
  167. package/dist/api/resources/identities/resources/properties/client/Client.js +1 -1
  168. package/dist/api/resources/index.d.ts +3 -0
  169. package/dist/api/resources/index.js +4 -1
  170. package/dist/api/resources/jobs/client/Client.d.ts +0 -1
  171. package/dist/api/resources/jobs/client/Client.js +9 -7
  172. package/dist/api/resources/jobs/client/requests/JobsListRequest.d.ts +4 -0
  173. package/dist/api/resources/models/client/Client.js +2 -2
  174. package/dist/api/resources/models/resources/embeddings/client/Client.js +1 -1
  175. package/dist/api/resources/projects/client/Client.js +1 -1
  176. package/dist/api/resources/providers/client/Client.js +6 -6
  177. package/dist/api/resources/runs/client/Client.js +15 -7
  178. package/dist/api/resources/runs/client/requests/RunsListRequest.d.ts +9 -0
  179. package/dist/api/resources/runs/resources/messages/client/Client.js +1 -1
  180. package/dist/api/resources/runs/resources/steps/client/Client.js +1 -1
  181. package/dist/api/resources/runs/resources/usage/client/Client.js +1 -1
  182. package/dist/api/resources/sources/client/Client.js +10 -10
  183. package/dist/api/resources/sources/resources/files/client/Client.js +3 -3
  184. package/dist/api/resources/sources/resources/passages/client/Client.js +1 -1
  185. package/dist/api/resources/steps/client/Client.d.ts +3 -0
  186. package/dist/api/resources/steps/client/Client.js +7 -2
  187. package/dist/api/resources/steps/index.d.ts +1 -1
  188. package/dist/api/resources/steps/index.js +1 -1
  189. package/dist/api/resources/steps/resources/feedback/client/Client.js +1 -1
  190. package/dist/api/resources/steps/resources/index.d.ts +3 -0
  191. package/dist/api/resources/steps/resources/index.js +4 -1
  192. package/dist/api/resources/steps/resources/messages/client/Client.d.ts +50 -0
  193. package/dist/api/resources/steps/resources/messages/client/Client.js +166 -0
  194. package/dist/api/resources/steps/resources/messages/client/index.d.ts +1 -0
  195. package/dist/api/resources/steps/resources/messages/client/index.js +17 -0
  196. package/dist/api/resources/steps/resources/messages/client/requests/MessagesListRequest.d.ts +30 -0
  197. package/dist/api/resources/steps/resources/messages/client/requests/MessagesListRequest.js +5 -0
  198. package/dist/api/resources/steps/resources/messages/client/requests/index.d.ts +1 -0
  199. package/dist/api/resources/steps/resources/messages/client/requests/index.js +2 -0
  200. package/dist/api/resources/steps/resources/messages/index.d.ts +2 -0
  201. package/dist/api/resources/steps/resources/messages/index.js +18 -0
  202. package/dist/api/resources/steps/resources/messages/types/MessagesListRequestOrder.d.ts +11 -0
  203. package/dist/api/resources/steps/resources/messages/types/MessagesListRequestOrder.js +10 -0
  204. package/dist/api/resources/steps/resources/messages/types/MessagesListResponseItem.d.ts +5 -0
  205. package/dist/api/resources/steps/resources/messages/types/MessagesListResponseItem.js +5 -0
  206. package/dist/api/resources/steps/resources/messages/types/index.d.ts +2 -0
  207. package/dist/api/resources/steps/resources/messages/types/index.js +18 -0
  208. package/dist/api/resources/steps/resources/metrics/client/Client.js +1 -1
  209. package/dist/api/resources/steps/resources/trace/client/Client.js +1 -1
  210. package/dist/api/resources/tags/client/Client.js +1 -1
  211. package/dist/api/resources/telemetry/client/Client.js +1 -1
  212. package/dist/api/resources/templates/client/Client.js +9 -9
  213. package/dist/api/resources/templates/resources/agents/client/Client.js +1 -1
  214. package/dist/api/resources/tools/client/Client.js +20 -20
  215. package/dist/api/resources/voice/client/Client.js +1 -1
  216. package/dist/api/types/Archive.d.ts +35 -0
  217. package/dist/api/types/Archive.js +5 -0
  218. package/dist/api/types/BatchJob.d.ts +2 -0
  219. package/dist/api/types/ChildToolRule.d.ts +1 -1
  220. package/dist/api/types/ConditionalToolRule.d.ts +1 -1
  221. package/dist/api/types/ContinueToolRule.d.ts +1 -1
  222. package/dist/api/types/InitToolRule.d.ts +1 -1
  223. package/dist/api/types/Job.d.ts +2 -0
  224. package/dist/api/types/MaxCountPerStepToolRule.d.ts +1 -1
  225. package/dist/api/types/Memory.d.ts +3 -1
  226. package/dist/api/types/MemoryAgentType.d.ts +8 -0
  227. package/dist/api/types/MemoryAgentType.js +5 -0
  228. package/dist/api/types/ParentToolRule.d.ts +1 -1
  229. package/dist/api/types/RequiredBeforeExitToolRule.d.ts +1 -1
  230. package/dist/api/types/RequiresApprovalToolRule.d.ts +1 -1
  231. package/dist/api/types/Run.d.ts +2 -0
  232. package/dist/api/types/Step.d.ts +1 -1
  233. package/dist/api/types/TerminalToolRule.d.ts +1 -1
  234. package/dist/api/types/index.d.ts +2 -0
  235. package/dist/api/types/index.js +2 -0
  236. package/dist/serialization/resources/archives/client/index.d.ts +2 -0
  237. package/dist/serialization/resources/archives/client/index.js +41 -0
  238. package/dist/serialization/resources/archives/client/listArchives.d.ts +11 -0
  239. package/dist/serialization/resources/archives/client/listArchives.js +42 -0
  240. package/dist/serialization/resources/archives/client/requests/ArchiveCreateRequest.d.ts +13 -0
  241. package/dist/serialization/resources/archives/client/requests/ArchiveCreateRequest.js +44 -0
  242. package/dist/serialization/resources/archives/client/requests/ArchiveUpdateRequest.d.ts +13 -0
  243. package/dist/serialization/resources/archives/client/requests/ArchiveUpdateRequest.js +44 -0
  244. package/dist/serialization/resources/archives/client/requests/index.d.ts +2 -0
  245. package/dist/serialization/resources/archives/client/requests/index.js +7 -0
  246. package/dist/serialization/resources/archives/index.d.ts +2 -0
  247. package/dist/serialization/resources/archives/index.js +18 -0
  248. package/dist/serialization/resources/archives/types/ListArchivesRequestOrder.d.ts +10 -0
  249. package/dist/serialization/resources/archives/types/ListArchivesRequestOrder.js +41 -0
  250. package/dist/serialization/resources/archives/types/index.d.ts +1 -0
  251. package/dist/serialization/resources/archives/types/index.js +17 -0
  252. package/dist/serialization/resources/index.d.ts +3 -0
  253. package/dist/serialization/resources/index.js +4 -1
  254. package/dist/serialization/resources/steps/index.d.ts +1 -1
  255. package/dist/serialization/resources/steps/index.js +1 -1
  256. package/dist/serialization/resources/steps/resources/index.d.ts +2 -0
  257. package/dist/serialization/resources/steps/resources/index.js +3 -1
  258. package/dist/serialization/resources/steps/resources/messages/client/index.d.ts +1 -0
  259. package/dist/serialization/resources/steps/resources/messages/client/index.js +37 -0
  260. package/dist/serialization/resources/steps/resources/messages/client/list.d.ts +11 -0
  261. package/dist/serialization/resources/steps/resources/messages/client/list.js +42 -0
  262. package/dist/serialization/resources/steps/resources/messages/index.d.ts +2 -0
  263. package/dist/serialization/resources/steps/resources/messages/index.js +18 -0
  264. package/dist/serialization/resources/steps/resources/messages/types/MessagesListRequestOrder.d.ts +10 -0
  265. package/dist/serialization/resources/steps/resources/messages/types/MessagesListRequestOrder.js +41 -0
  266. package/dist/serialization/resources/steps/resources/messages/types/MessagesListResponseItem.d.ts +19 -0
  267. package/dist/serialization/resources/steps/resources/messages/types/MessagesListResponseItem.js +60 -0
  268. package/dist/serialization/resources/steps/resources/messages/types/index.d.ts +2 -0
  269. package/dist/serialization/resources/steps/resources/messages/types/index.js +18 -0
  270. package/dist/serialization/types/Archive.d.ts +21 -0
  271. package/dist/serialization/types/Archive.js +52 -0
  272. package/dist/serialization/types/BatchJob.d.ts +2 -0
  273. package/dist/serialization/types/BatchJob.js +2 -0
  274. package/dist/serialization/types/Job.d.ts +2 -0
  275. package/dist/serialization/types/Job.js +2 -0
  276. package/dist/serialization/types/Memory.d.ts +2 -0
  277. package/dist/serialization/types/Memory.js +2 -0
  278. package/dist/serialization/types/MemoryAgentType.d.ts +11 -0
  279. package/dist/serialization/types/MemoryAgentType.js +42 -0
  280. package/dist/serialization/types/Run.d.ts +2 -0
  281. package/dist/serialization/types/Run.js +2 -0
  282. package/dist/serialization/types/index.d.ts +2 -0
  283. package/dist/serialization/types/index.js +2 -0
  284. package/dist/version.d.ts +1 -1
  285. package/dist/version.js +1 -1
  286. package/package.json +1 -1
  287. package/reference.md +274 -1
  288. package/serialization/resources/archives/client/index.d.ts +2 -0
  289. package/serialization/resources/archives/client/index.js +41 -0
  290. package/serialization/resources/archives/client/listArchives.d.ts +11 -0
  291. package/serialization/resources/archives/client/listArchives.js +42 -0
  292. package/serialization/resources/archives/client/requests/ArchiveCreateRequest.d.ts +13 -0
  293. package/serialization/resources/archives/client/requests/ArchiveCreateRequest.js +44 -0
  294. package/serialization/resources/archives/client/requests/ArchiveUpdateRequest.d.ts +13 -0
  295. package/serialization/resources/archives/client/requests/ArchiveUpdateRequest.js +44 -0
  296. package/serialization/resources/archives/client/requests/index.d.ts +2 -0
  297. package/serialization/resources/archives/client/requests/index.js +7 -0
  298. package/serialization/resources/archives/index.d.ts +2 -0
  299. package/serialization/resources/archives/index.js +18 -0
  300. package/serialization/resources/archives/types/ListArchivesRequestOrder.d.ts +10 -0
  301. package/serialization/resources/archives/types/ListArchivesRequestOrder.js +41 -0
  302. package/serialization/resources/archives/types/index.d.ts +1 -0
  303. package/serialization/resources/archives/types/index.js +17 -0
  304. package/serialization/resources/index.d.ts +3 -0
  305. package/serialization/resources/index.js +4 -1
  306. package/serialization/resources/steps/index.d.ts +1 -1
  307. package/serialization/resources/steps/index.js +1 -1
  308. package/serialization/resources/steps/resources/index.d.ts +2 -0
  309. package/serialization/resources/steps/resources/index.js +3 -1
  310. package/serialization/resources/steps/resources/messages/client/index.d.ts +1 -0
  311. package/serialization/resources/steps/resources/messages/client/index.js +37 -0
  312. package/serialization/resources/steps/resources/messages/client/list.d.ts +11 -0
  313. package/serialization/resources/steps/resources/messages/client/list.js +42 -0
  314. package/serialization/resources/steps/resources/messages/index.d.ts +2 -0
  315. package/serialization/resources/steps/resources/messages/index.js +18 -0
  316. package/serialization/resources/steps/resources/messages/types/MessagesListRequestOrder.d.ts +10 -0
  317. package/serialization/resources/steps/resources/messages/types/MessagesListRequestOrder.js +41 -0
  318. package/serialization/resources/steps/resources/messages/types/MessagesListResponseItem.d.ts +19 -0
  319. package/serialization/resources/steps/resources/messages/types/MessagesListResponseItem.js +60 -0
  320. package/serialization/resources/steps/resources/messages/types/index.d.ts +2 -0
  321. package/serialization/resources/steps/resources/messages/types/index.js +18 -0
  322. package/serialization/types/Archive.d.ts +21 -0
  323. package/serialization/types/Archive.js +52 -0
  324. package/serialization/types/BatchJob.d.ts +2 -0
  325. package/serialization/types/BatchJob.js +2 -0
  326. package/serialization/types/Job.d.ts +2 -0
  327. package/serialization/types/Job.js +2 -0
  328. package/serialization/types/Memory.d.ts +2 -0
  329. package/serialization/types/Memory.js +2 -0
  330. package/serialization/types/MemoryAgentType.d.ts +11 -0
  331. package/serialization/types/MemoryAgentType.js +42 -0
  332. package/serialization/types/Run.d.ts +2 -0
  333. package/serialization/types/Run.js +2 -0
  334. package/serialization/types/index.d.ts +2 -0
  335. package/serialization/types/index.js +2 -0
  336. package/version.d.ts +1 -1
  337. package/version.js +1 -1
@@ -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.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),
111
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68658", "User-Agent": "@letta-ai/letta-client/0.0.68658", "X-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.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),
198
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68658", "User-Agent": "@letta-ai/letta-client/0.0.68658", "X-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.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),
279
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68658", "User-Agent": "@letta-ai/letta-client/0.0.68658", "X-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.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),
350
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68658", "User-Agent": "@letta-ai/letta-client/0.0.68658", "X-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.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
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68658", "User-Agent": "@letta-ai/letta-client/0.0.68658", "X-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.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),
520
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68658", "User-Agent": "@letta-ai/letta-client/0.0.68658", "X-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.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),
610
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68658", "User-Agent": "@letta-ai/letta-client/0.0.68658", "X-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.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),
693
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68658", "User-Agent": "@letta-ai/letta-client/0.0.68658", "X-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.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),
783
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68658", "User-Agent": "@letta-ai/letta-client/0.0.68658", "X-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.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),
869
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68658", "User-Agent": "@letta-ai/letta-client/0.0.68658", "X-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.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),
102
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68658", "User-Agent": "@letta-ai/letta-client/0.0.68658", "X-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.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),
182
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68658", "User-Agent": "@letta-ai/letta-client/0.0.68658", "X-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.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),
289
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68658", "User-Agent": "@letta-ai/letta-client/0.0.68658", "X-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.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
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68658", "User-Agent": "@letta-ai/letta-client/0.0.68658", "X-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.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),
431
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68658", "User-Agent": "@letta-ai/letta-client/0.0.68658", "X-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.68656", "User-Agent": "@letta-ai/letta-client/0.0.68656", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
85
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68658", "User-Agent": "@letta-ai/letta-client/0.0.68658", "X-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.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),
162
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68658", "User-Agent": "@letta-ai/letta-client/0.0.68658", "X-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.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),
238
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68658", "User-Agent": "@letta-ai/letta-client/0.0.68658", "X-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.68656", "User-Agent": "@letta-ai/letta-client/0.0.68656", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
87
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68658", "User-Agent": "@letta-ai/letta-client/0.0.68658", "X-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.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),
153
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68658", "User-Agent": "@letta-ai/letta-client/0.0.68658", "X-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.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),
209
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68658", "User-Agent": "@letta-ai/letta-client/0.0.68658", "X-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.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),
84
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68658", "User-Agent": "@letta-ai/letta-client/0.0.68658", "X-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.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),
161
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68658", "User-Agent": "@letta-ai/letta-client/0.0.68658", "X-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.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),
238
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68658", "User-Agent": "@letta-ai/letta-client/0.0.68658", "X-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.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),
321
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68658", "User-Agent": "@letta-ai/letta-client/0.0.68658", "X-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",
@@ -0,0 +1,78 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as environments from "../../../../environments";
5
+ import * as core from "../../../../core";
6
+ import * as Letta from "../../../index";
7
+ export declare namespace Archives {
8
+ interface Options {
9
+ environment?: core.Supplier<environments.LettaEnvironment | string>;
10
+ /** Specify a custom URL to connect the client to. */
11
+ baseUrl?: core.Supplier<string>;
12
+ token?: core.Supplier<string | undefined>;
13
+ /** Override the X-Project header */
14
+ project?: core.Supplier<string | undefined>;
15
+ fetcher?: core.FetchFunction;
16
+ }
17
+ interface RequestOptions {
18
+ /** The maximum time to wait for a response in seconds. */
19
+ timeoutInSeconds?: number;
20
+ /** The number of times to retry the request. Defaults to 2. */
21
+ maxRetries?: number;
22
+ /** A hook to abort the request. */
23
+ abortSignal?: AbortSignal;
24
+ /** Override the X-Project header */
25
+ project?: string | undefined;
26
+ /** Additional headers to include in the request. */
27
+ headers?: Record<string, string>;
28
+ }
29
+ }
30
+ export declare class Archives {
31
+ protected readonly _options: Archives.Options;
32
+ constructor(_options?: Archives.Options);
33
+ /**
34
+ * Get a list of all archives for the current organization with optional filters and pagination.
35
+ *
36
+ * @param {Letta.ListArchivesRequest} request
37
+ * @param {Archives.RequestOptions} requestOptions - Request-specific configuration.
38
+ *
39
+ * @throws {@link Letta.UnprocessableEntityError}
40
+ *
41
+ * @example
42
+ * await client.archives.listArchives()
43
+ */
44
+ listArchives(request?: Letta.ListArchivesRequest, requestOptions?: Archives.RequestOptions): core.HttpResponsePromise<Letta.Archive[]>;
45
+ private __listArchives;
46
+ /**
47
+ * Create a new archive.
48
+ *
49
+ * @param {Letta.ArchiveCreateRequest} request
50
+ * @param {Archives.RequestOptions} requestOptions - Request-specific configuration.
51
+ *
52
+ * @throws {@link Letta.UnprocessableEntityError}
53
+ *
54
+ * @example
55
+ * await client.archives.createArchive({
56
+ * name: "name"
57
+ * })
58
+ */
59
+ createArchive(request: Letta.ArchiveCreateRequest, requestOptions?: Archives.RequestOptions): core.HttpResponsePromise<Letta.Archive>;
60
+ private __createArchive;
61
+ /**
62
+ * Update an existing archive's name and/or description.
63
+ *
64
+ * @param {string} archiveId
65
+ * @param {Letta.ArchiveUpdateRequest} request
66
+ * @param {Archives.RequestOptions} requestOptions - Request-specific configuration.
67
+ *
68
+ * @throws {@link Letta.UnprocessableEntityError}
69
+ *
70
+ * @example
71
+ * await client.archives.modifyArchive("archive_id")
72
+ */
73
+ modifyArchive(archiveId: string, request?: Letta.ArchiveUpdateRequest, requestOptions?: Archives.RequestOptions): core.HttpResponsePromise<Letta.Archive>;
74
+ private __modifyArchive;
75
+ protected _getCustomAuthorizationHeaders(): Promise<{
76
+ Authorization: string;
77
+ }>;
78
+ }