@letta-ai/letta-client 0.0.68645 → 0.0.68647

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 (388) hide show
  1. package/Client.d.ts +0 -3
  2. package/Client.js +26 -31
  3. package/api/resources/agents/client/Client.d.ts +2 -2
  4. package/api/resources/agents/client/Client.js +23 -13
  5. package/api/resources/agents/client/requests/AgentsListRequest.d.ts +9 -0
  6. package/api/resources/agents/client/requests/{BodyImportAgentSerialized.d.ts → BodyImportAgent.d.ts} +1 -1
  7. package/api/resources/agents/client/requests/index.d.ts +1 -1
  8. package/api/resources/agents/resources/blocks/client/Client.js +5 -5
  9. package/api/resources/agents/resources/context/client/Client.js +1 -1
  10. package/api/resources/agents/resources/coreMemory/client/Client.js +1 -1
  11. package/api/resources/agents/resources/files/client/Client.js +4 -4
  12. package/api/resources/agents/resources/folders/client/Client.js +3 -3
  13. package/api/resources/agents/resources/groups/client/Client.js +1 -1
  14. package/api/resources/agents/resources/memoryVariables/client/Client.js +1 -1
  15. package/api/resources/agents/resources/messages/client/Client.js +9 -9
  16. package/api/resources/agents/resources/passages/client/Client.js +5 -5
  17. package/api/resources/agents/resources/sources/client/Client.js +3 -3
  18. package/api/resources/agents/resources/templates/client/Client.js +3 -3
  19. package/api/resources/agents/resources/tools/client/Client.js +4 -4
  20. package/api/resources/agents/types/AgentsListRequestOrder.d.ts +11 -0
  21. package/api/resources/agents/types/AgentsListRequestOrder.js +10 -0
  22. package/api/resources/agents/types/AgentsListRequestOrderBy.d.ts +11 -0
  23. package/api/resources/agents/types/AgentsListRequestOrderBy.js +10 -0
  24. package/api/resources/agents/types/index.d.ts +2 -0
  25. package/api/resources/agents/types/index.js +2 -0
  26. package/api/resources/batches/client/Client.js +4 -4
  27. package/api/resources/batches/resources/messages/client/Client.js +1 -1
  28. package/api/resources/blocks/client/Client.js +16 -8
  29. package/api/resources/blocks/client/requests/BlocksListRequest.d.ts +11 -2
  30. package/api/resources/blocks/index.d.ts +1 -0
  31. package/api/resources/blocks/index.js +1 -0
  32. package/api/resources/blocks/resources/agents/client/Client.js +1 -1
  33. package/api/resources/blocks/types/BlocksListRequestOrder.d.ts +11 -0
  34. package/api/resources/blocks/types/BlocksListRequestOrder.js +10 -0
  35. package/api/resources/blocks/types/index.d.ts +1 -0
  36. package/api/resources/blocks/types/index.js +17 -0
  37. package/api/resources/clientSideAccessTokens/client/Client.js +3 -3
  38. package/api/resources/folders/client/Client.d.ts +2 -1
  39. package/api/resources/folders/client/Client.js +34 -13
  40. package/api/resources/folders/client/requests/FoldersListRequest.d.ts +30 -0
  41. package/api/resources/folders/client/requests/index.d.ts +1 -0
  42. package/api/resources/folders/index.d.ts +1 -0
  43. package/api/resources/folders/index.js +1 -0
  44. package/api/resources/folders/resources/files/client/Client.js +3 -3
  45. package/api/resources/folders/resources/passages/client/Client.js +1 -1
  46. package/api/resources/folders/types/FoldersListRequestOrder.d.ts +11 -0
  47. package/api/resources/folders/types/FoldersListRequestOrder.js +10 -0
  48. package/api/resources/folders/types/index.d.ts +1 -0
  49. package/api/resources/folders/types/index.js +17 -0
  50. package/api/resources/groups/client/Client.js +15 -7
  51. package/api/resources/groups/client/requests/GroupsListRequest.d.ts +11 -3
  52. package/api/resources/groups/resources/messages/client/Client.js +5 -5
  53. package/api/resources/groups/types/GroupsListRequestOrder.d.ts +11 -0
  54. package/api/resources/groups/types/GroupsListRequestOrder.js +10 -0
  55. package/api/resources/groups/types/index.d.ts +1 -0
  56. package/api/resources/groups/types/index.js +1 -0
  57. package/api/resources/health/client/Client.js +1 -1
  58. package/api/resources/identities/client/Client.js +16 -8
  59. package/api/resources/identities/client/requests/IdentitiesListRequest.d.ts +17 -0
  60. package/api/resources/identities/index.d.ts +1 -0
  61. package/api/resources/identities/index.js +1 -0
  62. package/api/resources/identities/resources/properties/client/Client.js +1 -1
  63. package/api/resources/identities/types/IdentitiesListRequestOrder.d.ts +11 -0
  64. package/api/resources/identities/types/IdentitiesListRequestOrder.js +10 -0
  65. package/api/resources/identities/types/index.d.ts +1 -0
  66. package/api/resources/identities/types/index.js +17 -0
  67. package/api/resources/index.d.ts +8 -5
  68. package/api/resources/index.js +9 -6
  69. package/api/resources/jobs/client/Client.js +5 -5
  70. package/api/resources/models/client/Client.d.ts +3 -0
  71. package/api/resources/models/client/Client.js +7 -2
  72. package/api/resources/models/index.d.ts +1 -0
  73. package/api/resources/models/index.js +1 -0
  74. package/{dist/api/resources/embeddingModels → api/resources/models/resources/embeddings}/client/Client.d.ts +10 -10
  75. package/{dist/api/resources/embeddingModels → api/resources/models/resources/embeddings}/client/Client.js +12 -12
  76. package/api/resources/models/resources/index.d.ts +1 -0
  77. package/api/resources/models/resources/index.js +37 -0
  78. package/api/resources/projects/client/Client.js +1 -1
  79. package/api/resources/providers/client/Client.js +23 -12
  80. package/api/resources/providers/client/requests/ProvidersListRequest.d.ts +26 -2
  81. package/api/resources/providers/index.d.ts +1 -0
  82. package/api/resources/providers/index.js +1 -0
  83. package/api/resources/providers/types/ProvidersListRequestOrder.d.ts +11 -0
  84. package/api/resources/providers/types/ProvidersListRequestOrder.js +10 -0
  85. package/api/resources/providers/types/index.d.ts +1 -0
  86. package/api/resources/providers/types/index.js +17 -0
  87. package/api/resources/runs/client/Client.js +5 -5
  88. package/api/resources/runs/resources/messages/client/Client.js +1 -1
  89. package/api/resources/runs/resources/steps/client/Client.js +1 -1
  90. package/api/resources/runs/resources/usage/client/Client.js +1 -1
  91. package/api/resources/sources/client/Client.js +10 -10
  92. package/api/resources/sources/resources/files/client/Client.js +3 -3
  93. package/api/resources/sources/resources/passages/client/Client.js +1 -1
  94. package/api/resources/steps/client/Client.d.ts +0 -1
  95. package/api/resources/steps/client/Client.js +9 -5
  96. package/api/resources/steps/client/requests/StepsListRequest.d.ts +6 -2
  97. package/api/resources/steps/resources/feedback/client/Client.js +1 -1
  98. package/api/resources/steps/resources/feedback/client/requests/AddFeedbackRequest.d.ts +2 -0
  99. package/api/resources/steps/resources/metrics/client/Client.js +1 -1
  100. package/api/resources/steps/resources/trace/client/Client.js +1 -1
  101. package/api/resources/steps/types/StepsListRequestOrder.d.ts +11 -0
  102. package/api/resources/steps/types/StepsListRequestOrder.js +10 -0
  103. package/api/resources/steps/types/index.d.ts +1 -0
  104. package/api/resources/steps/types/index.js +1 -0
  105. package/api/resources/tags/client/Client.d.ts +1 -1
  106. package/api/resources/tags/client/Client.js +2 -2
  107. package/api/resources/telemetry/client/Client.js +1 -1
  108. package/api/resources/templates/client/Client.js +9 -9
  109. package/api/resources/templates/resources/agents/client/Client.js +1 -1
  110. package/api/resources/tools/client/Client.d.ts +1 -1
  111. package/api/resources/tools/client/Client.js +33 -22
  112. package/api/resources/tools/client/requests/ToolsListRequest.d.ts +22 -0
  113. package/api/resources/tools/types/ToolsListRequestOrder.d.ts +11 -0
  114. package/api/resources/tools/types/ToolsListRequestOrder.js +10 -0
  115. package/api/resources/tools/types/index.d.ts +1 -0
  116. package/api/resources/tools/types/index.js +1 -0
  117. package/api/resources/voice/client/Client.js +1 -1
  118. package/api/types/{BodyExportAgentSerialized.d.ts → BodyExportAgent.d.ts} +1 -1
  119. package/api/types/DeploymentEntity.d.ts +2 -0
  120. package/api/types/index.d.ts +1 -1
  121. package/api/types/index.js +1 -1
  122. package/dist/Client.d.ts +0 -3
  123. package/dist/Client.js +26 -31
  124. package/dist/api/resources/agents/client/Client.d.ts +2 -2
  125. package/dist/api/resources/agents/client/Client.js +23 -13
  126. package/dist/api/resources/agents/client/requests/AgentsListRequest.d.ts +9 -0
  127. package/dist/api/resources/agents/client/requests/{BodyImportAgentSerialized.d.ts → BodyImportAgent.d.ts} +1 -1
  128. package/dist/api/resources/agents/client/requests/index.d.ts +1 -1
  129. package/dist/api/resources/agents/resources/blocks/client/Client.js +5 -5
  130. package/dist/api/resources/agents/resources/context/client/Client.js +1 -1
  131. package/dist/api/resources/agents/resources/coreMemory/client/Client.js +1 -1
  132. package/dist/api/resources/agents/resources/files/client/Client.js +4 -4
  133. package/dist/api/resources/agents/resources/folders/client/Client.js +3 -3
  134. package/dist/api/resources/agents/resources/groups/client/Client.js +1 -1
  135. package/dist/api/resources/agents/resources/memoryVariables/client/Client.js +1 -1
  136. package/dist/api/resources/agents/resources/messages/client/Client.js +9 -9
  137. package/dist/api/resources/agents/resources/passages/client/Client.js +5 -5
  138. package/dist/api/resources/agents/resources/sources/client/Client.js +3 -3
  139. package/dist/api/resources/agents/resources/templates/client/Client.js +3 -3
  140. package/dist/api/resources/agents/resources/tools/client/Client.js +4 -4
  141. package/dist/api/resources/agents/types/AgentsListRequestOrder.d.ts +11 -0
  142. package/dist/api/resources/agents/types/AgentsListRequestOrder.js +10 -0
  143. package/dist/api/resources/agents/types/AgentsListRequestOrderBy.d.ts +11 -0
  144. package/dist/api/resources/agents/types/AgentsListRequestOrderBy.js +10 -0
  145. package/dist/api/resources/agents/types/index.d.ts +2 -0
  146. package/dist/api/resources/agents/types/index.js +2 -0
  147. package/dist/api/resources/batches/client/Client.js +4 -4
  148. package/dist/api/resources/batches/resources/messages/client/Client.js +1 -1
  149. package/dist/api/resources/blocks/client/Client.js +16 -8
  150. package/dist/api/resources/blocks/client/requests/BlocksListRequest.d.ts +11 -2
  151. package/dist/api/resources/blocks/index.d.ts +1 -0
  152. package/dist/api/resources/blocks/index.js +1 -0
  153. package/dist/api/resources/blocks/resources/agents/client/Client.js +1 -1
  154. package/dist/api/resources/blocks/types/BlocksListRequestOrder.d.ts +11 -0
  155. package/dist/api/resources/blocks/types/BlocksListRequestOrder.js +10 -0
  156. package/dist/api/resources/blocks/types/index.d.ts +1 -0
  157. package/dist/api/resources/blocks/types/index.js +17 -0
  158. package/dist/api/resources/clientSideAccessTokens/client/Client.js +3 -3
  159. package/dist/api/resources/folders/client/Client.d.ts +2 -1
  160. package/dist/api/resources/folders/client/Client.js +34 -13
  161. package/dist/api/resources/folders/client/requests/FoldersListRequest.d.ts +30 -0
  162. package/dist/api/resources/folders/client/requests/FoldersListRequest.js +5 -0
  163. package/dist/api/resources/folders/client/requests/index.d.ts +1 -0
  164. package/dist/api/resources/folders/index.d.ts +1 -0
  165. package/dist/api/resources/folders/index.js +1 -0
  166. package/dist/api/resources/folders/resources/files/client/Client.js +3 -3
  167. package/dist/api/resources/folders/resources/passages/client/Client.js +1 -1
  168. package/dist/api/resources/folders/types/FoldersListRequestOrder.d.ts +11 -0
  169. package/dist/api/resources/folders/types/FoldersListRequestOrder.js +10 -0
  170. package/dist/api/resources/folders/types/index.d.ts +1 -0
  171. package/dist/api/resources/folders/types/index.js +17 -0
  172. package/dist/api/resources/groups/client/Client.js +15 -7
  173. package/dist/api/resources/groups/client/requests/GroupsListRequest.d.ts +11 -3
  174. package/dist/api/resources/groups/resources/messages/client/Client.js +5 -5
  175. package/dist/api/resources/groups/types/GroupsListRequestOrder.d.ts +11 -0
  176. package/dist/api/resources/groups/types/GroupsListRequestOrder.js +10 -0
  177. package/dist/api/resources/groups/types/index.d.ts +1 -0
  178. package/dist/api/resources/groups/types/index.js +1 -0
  179. package/dist/api/resources/health/client/Client.js +1 -1
  180. package/dist/api/resources/identities/client/Client.js +16 -8
  181. package/dist/api/resources/identities/client/requests/IdentitiesListRequest.d.ts +17 -0
  182. package/dist/api/resources/identities/index.d.ts +1 -0
  183. package/dist/api/resources/identities/index.js +1 -0
  184. package/dist/api/resources/identities/resources/properties/client/Client.js +1 -1
  185. package/dist/api/resources/identities/types/IdentitiesListRequestOrder.d.ts +11 -0
  186. package/dist/api/resources/identities/types/IdentitiesListRequestOrder.js +10 -0
  187. package/dist/api/resources/identities/types/index.d.ts +1 -0
  188. package/dist/api/resources/identities/types/index.js +17 -0
  189. package/dist/api/resources/index.d.ts +8 -5
  190. package/dist/api/resources/index.js +9 -6
  191. package/dist/api/resources/jobs/client/Client.js +5 -5
  192. package/dist/api/resources/models/client/Client.d.ts +3 -0
  193. package/dist/api/resources/models/client/Client.js +7 -2
  194. package/dist/api/resources/models/index.d.ts +1 -0
  195. package/dist/api/resources/models/index.js +1 -0
  196. package/{api/resources/embeddingModels → dist/api/resources/models/resources/embeddings}/client/Client.d.ts +10 -10
  197. package/{api/resources/embeddingModels → dist/api/resources/models/resources/embeddings}/client/Client.js +12 -12
  198. package/dist/api/resources/models/resources/index.d.ts +1 -0
  199. package/dist/api/resources/models/resources/index.js +37 -0
  200. package/dist/api/resources/projects/client/Client.js +1 -1
  201. package/dist/api/resources/providers/client/Client.js +23 -12
  202. package/dist/api/resources/providers/client/requests/ProvidersListRequest.d.ts +26 -2
  203. package/dist/api/resources/providers/index.d.ts +1 -0
  204. package/dist/api/resources/providers/index.js +1 -0
  205. package/dist/api/resources/providers/types/ProvidersListRequestOrder.d.ts +11 -0
  206. package/dist/api/resources/providers/types/ProvidersListRequestOrder.js +10 -0
  207. package/dist/api/resources/providers/types/index.d.ts +1 -0
  208. package/dist/api/resources/providers/types/index.js +17 -0
  209. package/dist/api/resources/runs/client/Client.js +5 -5
  210. package/dist/api/resources/runs/resources/messages/client/Client.js +1 -1
  211. package/dist/api/resources/runs/resources/steps/client/Client.js +1 -1
  212. package/dist/api/resources/runs/resources/usage/client/Client.js +1 -1
  213. package/dist/api/resources/sources/client/Client.js +10 -10
  214. package/dist/api/resources/sources/resources/files/client/Client.js +3 -3
  215. package/dist/api/resources/sources/resources/passages/client/Client.js +1 -1
  216. package/dist/api/resources/steps/client/Client.d.ts +0 -1
  217. package/dist/api/resources/steps/client/Client.js +9 -5
  218. package/dist/api/resources/steps/client/requests/StepsListRequest.d.ts +6 -2
  219. package/dist/api/resources/steps/resources/feedback/client/Client.js +1 -1
  220. package/dist/api/resources/steps/resources/feedback/client/requests/AddFeedbackRequest.d.ts +2 -0
  221. package/dist/api/resources/steps/resources/metrics/client/Client.js +1 -1
  222. package/dist/api/resources/steps/resources/trace/client/Client.js +1 -1
  223. package/dist/api/resources/steps/types/StepsListRequestOrder.d.ts +11 -0
  224. package/dist/api/resources/steps/types/StepsListRequestOrder.js +10 -0
  225. package/dist/api/resources/steps/types/index.d.ts +1 -0
  226. package/dist/api/resources/steps/types/index.js +1 -0
  227. package/dist/api/resources/tags/client/Client.d.ts +1 -1
  228. package/dist/api/resources/tags/client/Client.js +2 -2
  229. package/dist/api/resources/telemetry/client/Client.js +1 -1
  230. package/dist/api/resources/templates/client/Client.js +9 -9
  231. package/dist/api/resources/templates/resources/agents/client/Client.js +1 -1
  232. package/dist/api/resources/tools/client/Client.d.ts +1 -1
  233. package/dist/api/resources/tools/client/Client.js +33 -22
  234. package/dist/api/resources/tools/client/requests/ToolsListRequest.d.ts +22 -0
  235. package/dist/api/resources/tools/types/ToolsListRequestOrder.d.ts +11 -0
  236. package/dist/api/resources/tools/types/ToolsListRequestOrder.js +10 -0
  237. package/dist/api/resources/tools/types/index.d.ts +1 -0
  238. package/dist/api/resources/tools/types/index.js +1 -0
  239. package/dist/api/resources/voice/client/Client.js +1 -1
  240. package/dist/api/types/{BodyExportAgentSerialized.d.ts → BodyExportAgent.d.ts} +1 -1
  241. package/dist/api/types/BodyExportAgent.js +5 -0
  242. package/dist/api/types/DeploymentEntity.d.ts +2 -0
  243. package/dist/api/types/index.d.ts +1 -1
  244. package/dist/api/types/index.js +1 -1
  245. package/dist/serialization/resources/agents/types/AgentsListRequestOrder.d.ts +10 -0
  246. package/dist/serialization/resources/agents/types/AgentsListRequestOrder.js +41 -0
  247. package/dist/serialization/resources/agents/types/AgentsListRequestOrderBy.d.ts +10 -0
  248. package/dist/serialization/resources/agents/types/AgentsListRequestOrderBy.js +41 -0
  249. package/dist/serialization/resources/agents/types/index.d.ts +2 -0
  250. package/dist/serialization/resources/agents/types/index.js +2 -0
  251. package/dist/serialization/resources/blocks/index.d.ts +1 -0
  252. package/dist/serialization/resources/blocks/index.js +1 -0
  253. package/dist/serialization/resources/blocks/types/BlocksListRequestOrder.d.ts +10 -0
  254. package/dist/serialization/resources/blocks/types/BlocksListRequestOrder.js +41 -0
  255. package/dist/serialization/resources/blocks/types/index.d.ts +1 -0
  256. package/dist/serialization/resources/blocks/types/index.js +17 -0
  257. package/dist/serialization/resources/folders/index.d.ts +1 -0
  258. package/dist/serialization/resources/folders/index.js +1 -0
  259. package/dist/serialization/resources/folders/types/FoldersListRequestOrder.d.ts +10 -0
  260. package/dist/serialization/resources/folders/types/FoldersListRequestOrder.js +41 -0
  261. package/dist/serialization/resources/folders/types/index.d.ts +1 -0
  262. package/dist/serialization/resources/folders/types/index.js +17 -0
  263. package/dist/serialization/resources/groups/types/GroupsListRequestOrder.d.ts +10 -0
  264. package/dist/serialization/resources/groups/types/GroupsListRequestOrder.js +41 -0
  265. package/dist/serialization/resources/groups/types/index.d.ts +1 -0
  266. package/dist/serialization/resources/groups/types/index.js +1 -0
  267. package/dist/serialization/resources/identities/index.d.ts +1 -0
  268. package/dist/serialization/resources/identities/index.js +1 -0
  269. package/dist/serialization/resources/identities/types/IdentitiesListRequestOrder.d.ts +10 -0
  270. package/dist/serialization/resources/identities/types/IdentitiesListRequestOrder.js +41 -0
  271. package/dist/serialization/resources/identities/types/index.d.ts +1 -0
  272. package/dist/serialization/resources/identities/types/index.js +17 -0
  273. package/dist/serialization/resources/index.d.ts +8 -5
  274. package/dist/serialization/resources/index.js +9 -6
  275. package/dist/serialization/resources/models/index.d.ts +1 -0
  276. package/dist/serialization/resources/models/index.js +1 -0
  277. package/dist/serialization/resources/models/resources/embeddings/client/list.d.ts +11 -0
  278. package/dist/serialization/resources/{embeddingModels → models/resources/embeddings}/client/list.js +2 -2
  279. package/dist/serialization/resources/models/resources/index.d.ts +1 -0
  280. package/dist/serialization/resources/models/resources/index.js +37 -0
  281. package/dist/serialization/resources/providers/index.d.ts +1 -0
  282. package/dist/serialization/resources/providers/index.js +1 -0
  283. package/dist/serialization/resources/providers/types/ProvidersListRequestOrder.d.ts +10 -0
  284. package/dist/serialization/resources/providers/types/ProvidersListRequestOrder.js +41 -0
  285. package/dist/serialization/resources/providers/types/index.d.ts +1 -0
  286. package/dist/serialization/resources/providers/types/index.js +17 -0
  287. package/dist/serialization/resources/steps/resources/feedback/client/requests/AddFeedbackRequest.d.ts +1 -0
  288. package/dist/serialization/resources/steps/resources/feedback/client/requests/AddFeedbackRequest.js +1 -0
  289. package/dist/serialization/resources/steps/types/StepsListRequestOrder.d.ts +10 -0
  290. package/dist/serialization/resources/steps/types/StepsListRequestOrder.js +41 -0
  291. package/dist/serialization/resources/steps/types/index.d.ts +1 -0
  292. package/dist/serialization/resources/steps/types/index.js +1 -0
  293. package/dist/serialization/resources/tools/types/ToolsListRequestOrder.d.ts +10 -0
  294. package/dist/serialization/resources/tools/types/ToolsListRequestOrder.js +41 -0
  295. package/dist/serialization/resources/tools/types/index.d.ts +1 -0
  296. package/dist/serialization/resources/tools/types/index.js +1 -0
  297. package/{serialization/types/BodyExportAgentSerialized.d.ts → dist/serialization/types/BodyExportAgent.d.ts} +2 -2
  298. package/dist/serialization/types/{BodyExportAgentSerialized.js → BodyExportAgent.js} +2 -2
  299. package/dist/serialization/types/DeploymentEntity.d.ts +2 -0
  300. package/dist/serialization/types/DeploymentEntity.js +2 -0
  301. package/dist/serialization/types/index.d.ts +1 -1
  302. package/dist/serialization/types/index.js +1 -1
  303. package/dist/version.d.ts +1 -1
  304. package/dist/version.js +1 -1
  305. package/package.json +1 -1
  306. package/reference.md +69 -62
  307. package/serialization/resources/agents/types/AgentsListRequestOrder.d.ts +10 -0
  308. package/serialization/resources/agents/types/AgentsListRequestOrder.js +41 -0
  309. package/serialization/resources/agents/types/AgentsListRequestOrderBy.d.ts +10 -0
  310. package/serialization/resources/agents/types/AgentsListRequestOrderBy.js +41 -0
  311. package/serialization/resources/agents/types/index.d.ts +2 -0
  312. package/serialization/resources/agents/types/index.js +2 -0
  313. package/serialization/resources/blocks/index.d.ts +1 -0
  314. package/serialization/resources/blocks/index.js +1 -0
  315. package/serialization/resources/blocks/types/BlocksListRequestOrder.d.ts +10 -0
  316. package/serialization/resources/blocks/types/BlocksListRequestOrder.js +41 -0
  317. package/serialization/resources/blocks/types/index.d.ts +1 -0
  318. package/serialization/resources/blocks/types/index.js +17 -0
  319. package/serialization/resources/folders/index.d.ts +1 -0
  320. package/serialization/resources/folders/index.js +1 -0
  321. package/serialization/resources/folders/types/FoldersListRequestOrder.d.ts +10 -0
  322. package/serialization/resources/folders/types/FoldersListRequestOrder.js +41 -0
  323. package/serialization/resources/folders/types/index.d.ts +1 -0
  324. package/serialization/resources/folders/types/index.js +17 -0
  325. package/serialization/resources/groups/types/GroupsListRequestOrder.d.ts +10 -0
  326. package/serialization/resources/groups/types/GroupsListRequestOrder.js +41 -0
  327. package/serialization/resources/groups/types/index.d.ts +1 -0
  328. package/serialization/resources/groups/types/index.js +1 -0
  329. package/serialization/resources/identities/index.d.ts +1 -0
  330. package/serialization/resources/identities/index.js +1 -0
  331. package/serialization/resources/identities/types/IdentitiesListRequestOrder.d.ts +10 -0
  332. package/serialization/resources/identities/types/IdentitiesListRequestOrder.js +41 -0
  333. package/serialization/resources/identities/types/index.d.ts +1 -0
  334. package/serialization/resources/identities/types/index.js +17 -0
  335. package/serialization/resources/index.d.ts +8 -5
  336. package/serialization/resources/index.js +9 -6
  337. package/serialization/resources/models/index.d.ts +1 -0
  338. package/serialization/resources/models/index.js +1 -0
  339. package/serialization/resources/models/resources/embeddings/client/list.d.ts +11 -0
  340. package/serialization/resources/{embeddingModels → models/resources/embeddings}/client/list.js +2 -2
  341. package/serialization/resources/models/resources/index.d.ts +1 -0
  342. package/serialization/resources/models/resources/index.js +37 -0
  343. package/serialization/resources/providers/index.d.ts +1 -0
  344. package/serialization/resources/providers/index.js +1 -0
  345. package/serialization/resources/providers/types/ProvidersListRequestOrder.d.ts +10 -0
  346. package/serialization/resources/providers/types/ProvidersListRequestOrder.js +41 -0
  347. package/serialization/resources/providers/types/index.d.ts +1 -0
  348. package/serialization/resources/providers/types/index.js +17 -0
  349. package/serialization/resources/steps/resources/feedback/client/requests/AddFeedbackRequest.d.ts +1 -0
  350. package/serialization/resources/steps/resources/feedback/client/requests/AddFeedbackRequest.js +1 -0
  351. package/serialization/resources/steps/types/StepsListRequestOrder.d.ts +10 -0
  352. package/serialization/resources/steps/types/StepsListRequestOrder.js +41 -0
  353. package/serialization/resources/steps/types/index.d.ts +1 -0
  354. package/serialization/resources/steps/types/index.js +1 -0
  355. package/serialization/resources/tools/types/ToolsListRequestOrder.d.ts +10 -0
  356. package/serialization/resources/tools/types/ToolsListRequestOrder.js +41 -0
  357. package/serialization/resources/tools/types/index.d.ts +1 -0
  358. package/serialization/resources/tools/types/index.js +1 -0
  359. package/{dist/serialization/types/BodyExportAgentSerialized.d.ts → serialization/types/BodyExportAgent.d.ts} +2 -2
  360. package/serialization/types/{BodyExportAgentSerialized.js → BodyExportAgent.js} +2 -2
  361. package/serialization/types/DeploymentEntity.d.ts +2 -0
  362. package/serialization/types/DeploymentEntity.js +2 -0
  363. package/serialization/types/index.d.ts +1 -1
  364. package/serialization/types/index.js +1 -1
  365. package/version.d.ts +1 -1
  366. package/version.js +1 -1
  367. package/dist/serialization/resources/embeddingModels/client/list.d.ts +0 -11
  368. package/serialization/resources/embeddingModels/client/list.d.ts +0 -11
  369. /package/api/resources/agents/client/requests/{BodyImportAgentSerialized.js → BodyImportAgent.js} +0 -0
  370. /package/api/{types/BodyExportAgentSerialized.js → resources/folders/client/requests/FoldersListRequest.js} +0 -0
  371. /package/api/resources/{embeddingModels → models/resources/embeddings}/client/index.d.ts +0 -0
  372. /package/api/resources/{embeddingModels → models/resources/embeddings}/client/index.js +0 -0
  373. /package/api/resources/{embeddingModels → models/resources/embeddings}/index.d.ts +0 -0
  374. /package/api/resources/{embeddingModels → models/resources/embeddings}/index.js +0 -0
  375. /package/{dist/api/resources/agents/client/requests/BodyImportAgentSerialized.js → api/types/BodyExportAgent.js} +0 -0
  376. /package/dist/api/{types/BodyExportAgentSerialized.js → resources/agents/client/requests/BodyImportAgent.js} +0 -0
  377. /package/dist/api/resources/{embeddingModels → models/resources/embeddings}/client/index.d.ts +0 -0
  378. /package/dist/api/resources/{embeddingModels → models/resources/embeddings}/client/index.js +0 -0
  379. /package/dist/api/resources/{embeddingModels → models/resources/embeddings}/index.d.ts +0 -0
  380. /package/dist/api/resources/{embeddingModels → models/resources/embeddings}/index.js +0 -0
  381. /package/dist/serialization/resources/{embeddingModels → models/resources/embeddings}/client/index.d.ts +0 -0
  382. /package/dist/serialization/resources/{embeddingModels → models/resources/embeddings}/client/index.js +0 -0
  383. /package/dist/serialization/resources/{embeddingModels → models/resources/embeddings}/index.d.ts +0 -0
  384. /package/dist/serialization/resources/{embeddingModels → models/resources/embeddings}/index.js +0 -0
  385. /package/serialization/resources/{embeddingModels → models/resources/embeddings}/client/index.d.ts +0 -0
  386. /package/serialization/resources/{embeddingModels → models/resources/embeddings}/client/index.js +0 -0
  387. /package/serialization/resources/{embeddingModels → models/resources/embeddings}/index.d.ts +0 -0
  388. /package/serialization/resources/{embeddingModels → models/resources/embeddings}/index.js +0 -0
package/Client.d.ts CHANGED
@@ -10,7 +10,6 @@ import { Agents } from "./api/resources/agents/client/Client";
10
10
  import { Groups } from "./api/resources/groups/client/Client";
11
11
  import { Identities } from "./api/resources/identities/client/Client";
12
12
  import { Models } from "./api/resources/models/client/Client";
13
- import { EmbeddingModels } from "./api/resources/embeddingModels/client/Client";
14
13
  import { Blocks } from "./api/resources/blocks/client/Client";
15
14
  import { Jobs } from "./api/resources/jobs/client/Client";
16
15
  import { Health } from "./api/resources/health/client/Client";
@@ -56,7 +55,6 @@ export declare class LettaClient {
56
55
  protected _groups: Groups | undefined;
57
56
  protected _identities: Identities | undefined;
58
57
  protected _models: Models | undefined;
59
- protected _embeddingModels: EmbeddingModels | undefined;
60
58
  protected _blocks: Blocks | undefined;
61
59
  protected _jobs: Jobs | undefined;
62
60
  protected _health: Health | undefined;
@@ -78,7 +76,6 @@ export declare class LettaClient {
78
76
  get groups(): Groups;
79
77
  get identities(): Identities;
80
78
  get models(): Models;
81
- get embeddingModels(): EmbeddingModels;
82
79
  get blocks(): Blocks;
83
80
  get jobs(): Jobs;
84
81
  get health(): Health;
package/Client.js CHANGED
@@ -11,20 +11,19 @@ const Client_4 = require("./api/resources/agents/client/Client");
11
11
  const Client_5 = require("./api/resources/groups/client/Client");
12
12
  const Client_6 = require("./api/resources/identities/client/Client");
13
13
  const Client_7 = require("./api/resources/models/client/Client");
14
- const Client_8 = require("./api/resources/embeddingModels/client/Client");
15
- const Client_9 = require("./api/resources/blocks/client/Client");
16
- const Client_10 = require("./api/resources/jobs/client/Client");
17
- const Client_11 = require("./api/resources/health/client/Client");
18
- const Client_12 = require("./api/resources/providers/client/Client");
19
- const Client_13 = require("./api/resources/runs/client/Client");
20
- const Client_14 = require("./api/resources/steps/client/Client");
21
- const Client_15 = require("./api/resources/tags/client/Client");
22
- const Client_16 = require("./api/resources/telemetry/client/Client");
23
- const Client_17 = require("./api/resources/batches/client/Client");
24
- const Client_18 = require("./api/resources/voice/client/Client");
25
- const Client_19 = require("./api/resources/templates/client/Client");
26
- const Client_20 = require("./api/resources/clientSideAccessTokens/client/Client");
27
- const Client_21 = require("./api/resources/projects/client/Client");
14
+ const Client_8 = require("./api/resources/blocks/client/Client");
15
+ const Client_9 = require("./api/resources/jobs/client/Client");
16
+ const Client_10 = require("./api/resources/health/client/Client");
17
+ const Client_11 = require("./api/resources/providers/client/Client");
18
+ const Client_12 = require("./api/resources/runs/client/Client");
19
+ const Client_13 = require("./api/resources/steps/client/Client");
20
+ const Client_14 = require("./api/resources/tags/client/Client");
21
+ const Client_15 = require("./api/resources/telemetry/client/Client");
22
+ const Client_16 = require("./api/resources/batches/client/Client");
23
+ const Client_17 = require("./api/resources/voice/client/Client");
24
+ const Client_18 = require("./api/resources/templates/client/Client");
25
+ const Client_19 = require("./api/resources/clientSideAccessTokens/client/Client");
26
+ const Client_20 = require("./api/resources/projects/client/Client");
28
27
  class LettaClient {
29
28
  constructor(_options = {}) {
30
29
  this._options = _options;
@@ -57,61 +56,57 @@ class LettaClient {
57
56
  var _a;
58
57
  return ((_a = this._models) !== null && _a !== void 0 ? _a : (this._models = new Client_7.Models(this._options)));
59
58
  }
60
- get embeddingModels() {
61
- var _a;
62
- return ((_a = this._embeddingModels) !== null && _a !== void 0 ? _a : (this._embeddingModels = new Client_8.EmbeddingModels(this._options)));
63
- }
64
59
  get blocks() {
65
60
  var _a;
66
- return ((_a = this._blocks) !== null && _a !== void 0 ? _a : (this._blocks = new Client_9.Blocks(this._options)));
61
+ return ((_a = this._blocks) !== null && _a !== void 0 ? _a : (this._blocks = new Client_8.Blocks(this._options)));
67
62
  }
68
63
  get jobs() {
69
64
  var _a;
70
- return ((_a = this._jobs) !== null && _a !== void 0 ? _a : (this._jobs = new Client_10.Jobs(this._options)));
65
+ return ((_a = this._jobs) !== null && _a !== void 0 ? _a : (this._jobs = new Client_9.Jobs(this._options)));
71
66
  }
72
67
  get health() {
73
68
  var _a;
74
- return ((_a = this._health) !== null && _a !== void 0 ? _a : (this._health = new Client_11.Health(this._options)));
69
+ return ((_a = this._health) !== null && _a !== void 0 ? _a : (this._health = new Client_10.Health(this._options)));
75
70
  }
76
71
  get providers() {
77
72
  var _a;
78
- return ((_a = this._providers) !== null && _a !== void 0 ? _a : (this._providers = new Client_12.Providers(this._options)));
73
+ return ((_a = this._providers) !== null && _a !== void 0 ? _a : (this._providers = new Client_11.Providers(this._options)));
79
74
  }
80
75
  get runs() {
81
76
  var _a;
82
- return ((_a = this._runs) !== null && _a !== void 0 ? _a : (this._runs = new Client_13.Runs(this._options)));
77
+ return ((_a = this._runs) !== null && _a !== void 0 ? _a : (this._runs = new Client_12.Runs(this._options)));
83
78
  }
84
79
  get steps() {
85
80
  var _a;
86
- return ((_a = this._steps) !== null && _a !== void 0 ? _a : (this._steps = new Client_14.Steps(this._options)));
81
+ return ((_a = this._steps) !== null && _a !== void 0 ? _a : (this._steps = new Client_13.Steps(this._options)));
87
82
  }
88
83
  get tags() {
89
84
  var _a;
90
- return ((_a = this._tags) !== null && _a !== void 0 ? _a : (this._tags = new Client_15.Tags(this._options)));
85
+ return ((_a = this._tags) !== null && _a !== void 0 ? _a : (this._tags = new Client_14.Tags(this._options)));
91
86
  }
92
87
  get telemetry() {
93
88
  var _a;
94
- return ((_a = this._telemetry) !== null && _a !== void 0 ? _a : (this._telemetry = new Client_16.Telemetry(this._options)));
89
+ return ((_a = this._telemetry) !== null && _a !== void 0 ? _a : (this._telemetry = new Client_15.Telemetry(this._options)));
95
90
  }
96
91
  get batches() {
97
92
  var _a;
98
- return ((_a = this._batches) !== null && _a !== void 0 ? _a : (this._batches = new Client_17.Batches(this._options)));
93
+ return ((_a = this._batches) !== null && _a !== void 0 ? _a : (this._batches = new Client_16.Batches(this._options)));
99
94
  }
100
95
  get voice() {
101
96
  var _a;
102
- return ((_a = this._voice) !== null && _a !== void 0 ? _a : (this._voice = new Client_18.Voice(this._options)));
97
+ return ((_a = this._voice) !== null && _a !== void 0 ? _a : (this._voice = new Client_17.Voice(this._options)));
103
98
  }
104
99
  get templates() {
105
100
  var _a;
106
- return ((_a = this._templates) !== null && _a !== void 0 ? _a : (this._templates = new Client_19.Templates(this._options)));
101
+ return ((_a = this._templates) !== null && _a !== void 0 ? _a : (this._templates = new Client_18.Templates(this._options)));
107
102
  }
108
103
  get clientSideAccessTokens() {
109
104
  var _a;
110
- return ((_a = this._clientSideAccessTokens) !== null && _a !== void 0 ? _a : (this._clientSideAccessTokens = new Client_20.ClientSideAccessTokens(this._options)));
105
+ return ((_a = this._clientSideAccessTokens) !== null && _a !== void 0 ? _a : (this._clientSideAccessTokens = new Client_19.ClientSideAccessTokens(this._options)));
111
106
  }
112
107
  get projects() {
113
108
  var _a;
114
- return ((_a = this._projects) !== null && _a !== void 0 ? _a : (this._projects = new Client_21.Projects(this._options)));
109
+ return ((_a = this._projects) !== null && _a !== void 0 ? _a : (this._projects = new Client_20.Projects(this._options)));
115
110
  }
116
111
  }
117
112
  exports.LettaClient = LettaClient;
@@ -132,7 +132,7 @@ export declare class Agents {
132
132
  * Returns the IDs of all imported agents.
133
133
  *
134
134
  * @param {File | fs.ReadStream | Blob} file
135
- * @param {Letta.BodyImportAgentSerialized} request
135
+ * @param {Letta.BodyImportAgent} request
136
136
  * @param {Agents.RequestOptions} requestOptions - Request-specific configuration.
137
137
  *
138
138
  * @throws {@link Letta.UnprocessableEntityError}
@@ -140,7 +140,7 @@ export declare class Agents {
140
140
  * @example
141
141
  * await client.agents.importFile(fs.createReadStream("/path/to/your/file"), {})
142
142
  */
143
- importFile(file: File | fs.ReadStream | Blob, request: Letta.BodyImportAgentSerialized, requestOptions?: Agents.RequestOptions): core.HttpResponsePromise<Letta.ImportedAgentsResponse>;
143
+ importFile(file: File | fs.ReadStream | Blob, request: Letta.BodyImportAgent, requestOptions?: Agents.RequestOptions): core.HttpResponsePromise<Letta.ImportedAgentsResponse>;
144
144
  private __importFile;
145
145
  /**
146
146
  * Get the state of the agent.
@@ -52,8 +52,8 @@ exports.Agents = void 0;
52
52
  const environments = __importStar(require("../../../../environments"));
53
53
  const core = __importStar(require("../../../../core"));
54
54
  const Letta = __importStar(require("../../../index"));
55
- const url_join_1 = __importDefault(require("url-join"));
56
55
  const serializers = __importStar(require("../../../../serialization/index"));
56
+ const url_join_1 = __importDefault(require("url-join"));
57
57
  const errors = __importStar(require("../../../../errors/index"));
58
58
  const Client_1 = require("../resources/context/client/Client");
59
59
  const Client_2 = require("../resources/tools/client/Client");
@@ -139,7 +139,7 @@ class Agents {
139
139
  __list() {
140
140
  return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
141
141
  var _a, _b, _c;
142
- const { name, tags, matchAllTags, before, after, limit, queryText, projectId, templateId, baseTemplateId, identityId, identifierKeys, includeRelationships, ascending, sortBy, } = request;
142
+ const { name, tags, matchAllTags, before, after, limit, queryText, projectId, templateId, baseTemplateId, identityId, identifierKeys, includeRelationships, order, orderBy, ascending, sortBy, } = request;
143
143
  const _queryParams = {};
144
144
  if (name != null) {
145
145
  _queryParams["name"] = name;
@@ -195,6 +195,16 @@ class Agents {
195
195
  _queryParams["include_relationships"] = includeRelationships;
196
196
  }
197
197
  }
198
+ if (order != null) {
199
+ _queryParams["order"] = serializers.AgentsListRequestOrder.jsonOrThrow(order, {
200
+ unrecognizedObjectKeys: "strip",
201
+ });
202
+ }
203
+ if (orderBy != null) {
204
+ _queryParams["order_by"] = serializers.AgentsListRequestOrderBy.jsonOrThrow(orderBy, {
205
+ unrecognizedObjectKeys: "strip",
206
+ });
207
+ }
198
208
  if (ascending != null) {
199
209
  _queryParams["ascending"] = ascending.toString();
200
210
  }
@@ -206,7 +216,7 @@ class Agents {
206
216
  method: "GET",
207
217
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
208
218
  ? 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.68645", "User-Agent": "@letta-ai/letta-client/0.0.68645", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
219
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68647", "User-Agent": "@letta-ai/letta-client/0.0.68647", "X-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
220
  contentType: "application/json",
211
221
  queryParameters: _queryParams,
212
222
  requestType: "json",
@@ -283,7 +293,7 @@ class Agents {
283
293
  method: "POST",
284
294
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
285
295
  ? yield core.Supplier.get(this._options.project)
286
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68645", "User-Agent": "@letta-ai/letta-client/0.0.68645", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
296
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68647", "User-Agent": "@letta-ai/letta-client/0.0.68647", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
287
297
  contentType: "application/json",
288
298
  requestType: "json",
289
299
  body: serializers.CreateAgentRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -359,7 +369,7 @@ class Agents {
359
369
  method: "GET",
360
370
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
361
371
  ? yield core.Supplier.get(this._options.project)
362
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68645", "User-Agent": "@letta-ai/letta-client/0.0.68645", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
372
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68647", "User-Agent": "@letta-ai/letta-client/0.0.68647", "X-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
373
  contentType: "application/json",
364
374
  requestType: "json",
365
375
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -448,7 +458,7 @@ class Agents {
448
458
  method: "GET",
449
459
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
450
460
  ? yield core.Supplier.get(this._options.project)
451
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68645", "User-Agent": "@letta-ai/letta-client/0.0.68645", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
461
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68647", "User-Agent": "@letta-ai/letta-client/0.0.68647", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
452
462
  contentType: "application/json",
453
463
  queryParameters: _queryParams,
454
464
  requestType: "json",
@@ -508,7 +518,7 @@ class Agents {
508
518
  * Returns the IDs of all imported agents.
509
519
  *
510
520
  * @param {File | fs.ReadStream | Blob} file
511
- * @param {Letta.BodyImportAgentSerialized} request
521
+ * @param {Letta.BodyImportAgent} request
512
522
  * @param {Agents.RequestOptions} requestOptions - Request-specific configuration.
513
523
  *
514
524
  * @throws {@link Letta.UnprocessableEntityError}
@@ -548,7 +558,7 @@ class Agents {
548
558
  method: "POST",
549
559
  headers: Object.assign(Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
550
560
  ? yield core.Supplier.get(this._options.project)
551
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68645", "User-Agent": "@letta-ai/letta-client/0.0.68645", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, "x-override-embedding-model": request.overrideEmbeddingModel != null ? request.overrideEmbeddingModel : undefined }, (yield this._getCustomAuthorizationHeaders())), _maybeEncodedRequest.headers), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
561
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68647", "User-Agent": "@letta-ai/letta-client/0.0.68647", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, "x-override-embedding-model": request.overrideEmbeddingModel != null ? request.overrideEmbeddingModel : undefined }, (yield this._getCustomAuthorizationHeaders())), _maybeEncodedRequest.headers), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
552
562
  requestType: "file",
553
563
  duplex: _maybeEncodedRequest.duplex,
554
564
  body: _maybeEncodedRequest.body,
@@ -636,7 +646,7 @@ class Agents {
636
646
  method: "GET",
637
647
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
638
648
  ? yield core.Supplier.get(this._options.project)
639
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68645", "User-Agent": "@letta-ai/letta-client/0.0.68645", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
649
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68647", "User-Agent": "@letta-ai/letta-client/0.0.68647", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
640
650
  contentType: "application/json",
641
651
  queryParameters: _queryParams,
642
652
  requestType: "json",
@@ -713,7 +723,7 @@ class Agents {
713
723
  method: "DELETE",
714
724
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
715
725
  ? yield core.Supplier.get(this._options.project)
716
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68645", "User-Agent": "@letta-ai/letta-client/0.0.68645", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
726
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68647", "User-Agent": "@letta-ai/letta-client/0.0.68647", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
717
727
  contentType: "application/json",
718
728
  requestType: "json",
719
729
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -781,7 +791,7 @@ class Agents {
781
791
  method: "PATCH",
782
792
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
783
793
  ? yield core.Supplier.get(this._options.project)
784
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68645", "User-Agent": "@letta-ai/letta-client/0.0.68645", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
794
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68647", "User-Agent": "@letta-ai/letta-client/0.0.68647", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
785
795
  contentType: "application/json",
786
796
  requestType: "json",
787
797
  body: serializers.UpdateAgent.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -867,7 +877,7 @@ class Agents {
867
877
  method: "POST",
868
878
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
869
879
  ? yield core.Supplier.get(this._options.project)
870
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68645", "User-Agent": "@letta-ai/letta-client/0.0.68645", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
880
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68647", "User-Agent": "@letta-ai/letta-client/0.0.68647", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
871
881
  contentType: "application/json",
872
882
  queryParameters: _queryParams,
873
883
  requestType: "json",
@@ -935,7 +945,7 @@ class Agents {
935
945
  method: "POST",
936
946
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
937
947
  ? yield core.Supplier.get(this._options.project)
938
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68645", "User-Agent": "@letta-ai/letta-client/0.0.68645", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
948
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68647", "User-Agent": "@letta-ai/letta-client/0.0.68647", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
939
949
  contentType: "application/json",
940
950
  requestType: "json",
941
951
  body: serializers.AgentsSearchRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -1,6 +1,7 @@
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
  * {}
@@ -58,6 +59,14 @@ export interface AgentsListRequest {
58
59
  * Specify which relational fields (e.g., 'tools', 'sources', 'memory') to include in the response. If not provided, all relationships are loaded by default. Using this can optimize performance by reducing unnecessary joins.
59
60
  */
60
61
  includeRelationships?: string | string[];
62
+ /**
63
+ * Sort order for agents by creation time. 'asc' for oldest first, 'desc' for newest first
64
+ */
65
+ order?: Letta.AgentsListRequestOrder;
66
+ /**
67
+ * Field to sort by
68
+ */
69
+ orderBy?: Letta.AgentsListRequestOrderBy;
61
70
  /**
62
71
  * Whether to sort agents oldest to newest (True) or newest to oldest (False, default)
63
72
  */
@@ -5,7 +5,7 @@
5
5
  * @example
6
6
  * {}
7
7
  */
8
- export interface BodyImportAgentSerialized {
8
+ export interface BodyImportAgent {
9
9
  overrideEmbeddingModel?: string;
10
10
  /** If set to True, appends "_copy" to the end of the agent name. */
11
11
  appendCopySuffix?: boolean;
@@ -1,7 +1,7 @@
1
1
  export { type AgentsListRequest } from "./AgentsListRequest";
2
2
  export { type CreateAgentRequest } from "./CreateAgentRequest";
3
3
  export { type AgentsExportFileRequest } from "./AgentsExportFileRequest";
4
- export { type BodyImportAgentSerialized } from "./BodyImportAgentSerialized";
4
+ export { type BodyImportAgent } from "./BodyImportAgent";
5
5
  export { type AgentsRetrieveRequest } from "./AgentsRetrieveRequest";
6
6
  export { type UpdateAgent } from "./UpdateAgent";
7
7
  export { type SummarizeAgentConversationRequest } from "./SummarizeAgentConversationRequest";
@@ -82,7 +82,7 @@ class Blocks {
82
82
  method: "GET",
83
83
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
84
84
  ? yield core.Supplier.get(this._options.project)
85
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68645", "User-Agent": "@letta-ai/letta-client/0.0.68645", "X-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.68647", "User-Agent": "@letta-ai/letta-client/0.0.68647", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
86
86
  contentType: "application/json",
87
87
  requestType: "json",
88
88
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -160,7 +160,7 @@ class Blocks {
160
160
  method: "PATCH",
161
161
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
162
162
  ? yield core.Supplier.get(this._options.project)
163
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68645", "User-Agent": "@letta-ai/letta-client/0.0.68645", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
163
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68647", "User-Agent": "@letta-ai/letta-client/0.0.68647", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
164
164
  contentType: "application/json",
165
165
  requestType: "json",
166
166
  body: serializers.BlockUpdate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -237,7 +237,7 @@ class Blocks {
237
237
  method: "GET",
238
238
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
239
239
  ? yield core.Supplier.get(this._options.project)
240
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68645", "User-Agent": "@letta-ai/letta-client/0.0.68645", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
240
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68647", "User-Agent": "@letta-ai/letta-client/0.0.68647", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
241
241
  contentType: "application/json",
242
242
  requestType: "json",
243
243
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -314,7 +314,7 @@ class Blocks {
314
314
  method: "PATCH",
315
315
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
316
316
  ? yield core.Supplier.get(this._options.project)
317
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68645", "User-Agent": "@letta-ai/letta-client/0.0.68645", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
317
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68647", "User-Agent": "@letta-ai/letta-client/0.0.68647", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
318
318
  contentType: "application/json",
319
319
  requestType: "json",
320
320
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -391,7 +391,7 @@ class Blocks {
391
391
  method: "PATCH",
392
392
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
393
393
  ? yield core.Supplier.get(this._options.project)
394
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68645", "User-Agent": "@letta-ai/letta-client/0.0.68645", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
394
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68647", "User-Agent": "@letta-ai/letta-client/0.0.68647", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
395
395
  contentType: "application/json",
396
396
  requestType: "json",
397
397
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -81,7 +81,7 @@ class Context {
81
81
  method: "GET",
82
82
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
83
83
  ? yield core.Supplier.get(this._options.project)
84
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68645", "User-Agent": "@letta-ai/letta-client/0.0.68645", "X-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.68647", "User-Agent": "@letta-ai/letta-client/0.0.68647", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
85
85
  contentType: "application/json",
86
86
  requestType: "json",
87
87
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -82,7 +82,7 @@ class CoreMemory {
82
82
  method: "GET",
83
83
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
84
84
  ? yield core.Supplier.get(this._options.project)
85
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68645", "User-Agent": "@letta-ai/letta-client/0.0.68645", "X-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.68647", "User-Agent": "@letta-ai/letta-client/0.0.68647", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
86
86
  contentType: "application/json",
87
87
  requestType: "json",
88
88
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -84,7 +84,7 @@ class Files {
84
84
  method: "PATCH",
85
85
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
86
86
  ? yield core.Supplier.get(this._options.project)
87
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68645", "User-Agent": "@letta-ai/letta-client/0.0.68645", "X-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.68647", "User-Agent": "@letta-ai/letta-client/0.0.68647", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
88
88
  contentType: "application/json",
89
89
  requestType: "json",
90
90
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -165,7 +165,7 @@ class Files {
165
165
  method: "PATCH",
166
166
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
167
167
  ? yield core.Supplier.get(this._options.project)
168
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68645", "User-Agent": "@letta-ai/letta-client/0.0.68645", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
168
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68647", "User-Agent": "@letta-ai/letta-client/0.0.68647", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
169
169
  contentType: "application/json",
170
170
  requestType: "json",
171
171
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -245,7 +245,7 @@ class Files {
245
245
  method: "PATCH",
246
246
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
247
247
  ? yield core.Supplier.get(this._options.project)
248
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68645", "User-Agent": "@letta-ai/letta-client/0.0.68645", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
248
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68647", "User-Agent": "@letta-ai/letta-client/0.0.68647", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
249
249
  contentType: "application/json",
250
250
  requestType: "json",
251
251
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -324,7 +324,7 @@ class Files {
324
324
  method: "GET",
325
325
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
326
326
  ? yield core.Supplier.get(this._options.project)
327
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68645", "User-Agent": "@letta-ai/letta-client/0.0.68645", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
327
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68647", "User-Agent": "@letta-ai/letta-client/0.0.68647", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
328
328
  contentType: "application/json",
329
329
  queryParameters: _queryParams,
330
330
  requestType: "json",
@@ -82,7 +82,7 @@ class Folders {
82
82
  method: "PATCH",
83
83
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
84
84
  ? yield core.Supplier.get(this._options.project)
85
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68645", "User-Agent": "@letta-ai/letta-client/0.0.68645", "X-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.68647", "User-Agent": "@letta-ai/letta-client/0.0.68647", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
86
86
  contentType: "application/json",
87
87
  requestType: "json",
88
88
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -159,7 +159,7 @@ class Folders {
159
159
  method: "PATCH",
160
160
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
161
161
  ? yield core.Supplier.get(this._options.project)
162
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68645", "User-Agent": "@letta-ai/letta-client/0.0.68645", "X-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.68647", "User-Agent": "@letta-ai/letta-client/0.0.68647", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
163
163
  contentType: "application/json",
164
164
  requestType: "json",
165
165
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -235,7 +235,7 @@ class Folders {
235
235
  method: "GET",
236
236
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
237
237
  ? yield core.Supplier.get(this._options.project)
238
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68645", "User-Agent": "@letta-ai/letta-client/0.0.68645", "X-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.68647", "User-Agent": "@letta-ai/letta-client/0.0.68647", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
239
239
  contentType: "application/json",
240
240
  requestType: "json",
241
241
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -87,7 +87,7 @@ class Groups {
87
87
  method: "GET",
88
88
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
89
89
  ? yield core.Supplier.get(this._options.project)
90
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68645", "User-Agent": "@letta-ai/letta-client/0.0.68645", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
90
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68647", "User-Agent": "@letta-ai/letta-client/0.0.68647", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
91
91
  contentType: "application/json",
92
92
  queryParameters: _queryParams,
93
93
  requestType: "json",
@@ -83,7 +83,7 @@ class MemoryVariables {
83
83
  method: "GET",
84
84
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
85
85
  ? yield core.Supplier.get(this._options.project)
86
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68645", "User-Agent": "@letta-ai/letta-client/0.0.68645", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
86
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68647", "User-Agent": "@letta-ai/letta-client/0.0.68647", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
87
87
  contentType: "application/json",
88
88
  requestType: "json",
89
89
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,