@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
@@ -11,7 +11,24 @@ export interface IdentitiesListRequest {
11
11
  projectId?: string;
12
12
  identifierKey?: string;
13
13
  identityType?: Letta.IdentityType;
14
+ /**
15
+ * Identity ID cursor for pagination. Returns identities that come before this identity ID in the specified sort order
16
+ */
14
17
  before?: string;
18
+ /**
19
+ * Identity ID cursor for pagination. Returns identities that come after this identity ID in the specified sort order
20
+ */
15
21
  after?: string;
22
+ /**
23
+ * Maximum number of identities to return
24
+ */
16
25
  limit?: number;
26
+ /**
27
+ * Sort order for identities by creation time. 'asc' for oldest first, 'desc' for newest first
28
+ */
29
+ order?: Letta.IdentitiesListRequestOrder;
30
+ /**
31
+ * Field to sort by
32
+ */
33
+ orderBy?: "created_at";
17
34
  }
@@ -1,2 +1,3 @@
1
+ export * from "./types";
1
2
  export * from "./client";
2
3
  export * from "./resources";
@@ -14,5 +14,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./types"), exports);
17
18
  __exportStar(require("./client"), exports);
18
19
  __exportStar(require("./resources"), exports);
@@ -84,7 +84,7 @@ class Properties {
84
84
  method: "PUT",
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
  body: serializers.identities.properties.upsert.Request.jsonOrThrow(request, {
@@ -0,0 +1,11 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * Sort order for identities by creation time. 'asc' for oldest first, 'desc' for newest first
6
+ */
7
+ export type IdentitiesListRequestOrder = "asc" | "desc";
8
+ export declare const IdentitiesListRequestOrder: {
9
+ readonly Asc: "asc";
10
+ readonly Desc: "desc";
11
+ };
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.IdentitiesListRequestOrder = void 0;
7
+ exports.IdentitiesListRequestOrder = {
8
+ Asc: "asc",
9
+ Desc: "desc",
10
+ };
@@ -0,0 +1 @@
1
+ export * from "./IdentitiesListRequestOrder";
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./IdentitiesListRequestOrder"), exports);
@@ -1,9 +1,17 @@
1
1
  export * as tools from "./tools";
2
2
  export * from "./tools/types";
3
+ export * as folders from "./folders";
4
+ export * from "./folders/types";
3
5
  export * as agents from "./agents";
4
6
  export * from "./agents/types";
5
7
  export * as groups from "./groups";
6
8
  export * from "./groups/types";
9
+ export * as identities from "./identities";
10
+ export * from "./identities/types";
11
+ export * as blocks from "./blocks";
12
+ export * from "./blocks/types";
13
+ export * as providers from "./providers";
14
+ export * from "./providers/types";
7
15
  export * as runs from "./runs";
8
16
  export * from "./runs/types";
9
17
  export * as steps from "./steps";
@@ -19,14 +27,9 @@ export * from "./clientSideAccessTokens/types";
19
27
  export * as projects from "./projects";
20
28
  export * from "./projects/types";
21
29
  export * as sources from "./sources";
22
- export * as folders from "./folders";
23
- export * as identities from "./identities";
24
30
  export * as models from "./models";
25
- export * as embeddingModels from "./embeddingModels";
26
- export * as blocks from "./blocks";
27
31
  export * as jobs from "./jobs";
28
32
  export * as health from "./health";
29
- export * as providers from "./providers";
30
33
  export * as telemetry from "./telemetry";
31
34
  export * as voice from "./voice";
32
35
  export * from "./tools/client/requests";
@@ -36,13 +36,21 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
36
36
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
37
37
  };
38
38
  Object.defineProperty(exports, "__esModule", { value: true });
39
- exports.voice = exports.telemetry = exports.providers = exports.health = exports.jobs = exports.blocks = exports.embeddingModels = exports.models = exports.identities = exports.folders = exports.sources = exports.projects = exports.clientSideAccessTokens = exports.templates = exports.batches = exports.tags = exports.steps = exports.runs = exports.groups = exports.agents = exports.tools = void 0;
39
+ exports.voice = exports.telemetry = exports.health = exports.jobs = exports.models = exports.sources = exports.projects = exports.clientSideAccessTokens = exports.templates = exports.batches = exports.tags = exports.steps = exports.runs = exports.providers = exports.blocks = exports.identities = exports.groups = exports.agents = exports.folders = exports.tools = void 0;
40
40
  exports.tools = __importStar(require("./tools"));
41
41
  __exportStar(require("./tools/types"), exports);
42
+ exports.folders = __importStar(require("./folders"));
43
+ __exportStar(require("./folders/types"), exports);
42
44
  exports.agents = __importStar(require("./agents"));
43
45
  __exportStar(require("./agents/types"), exports);
44
46
  exports.groups = __importStar(require("./groups"));
45
47
  __exportStar(require("./groups/types"), exports);
48
+ exports.identities = __importStar(require("./identities"));
49
+ __exportStar(require("./identities/types"), exports);
50
+ exports.blocks = __importStar(require("./blocks"));
51
+ __exportStar(require("./blocks/types"), exports);
52
+ exports.providers = __importStar(require("./providers"));
53
+ __exportStar(require("./providers/types"), exports);
46
54
  exports.runs = __importStar(require("./runs"));
47
55
  __exportStar(require("./runs/types"), exports);
48
56
  exports.steps = __importStar(require("./steps"));
@@ -58,14 +66,9 @@ __exportStar(require("./clientSideAccessTokens/types"), exports);
58
66
  exports.projects = __importStar(require("./projects"));
59
67
  __exportStar(require("./projects/types"), exports);
60
68
  exports.sources = __importStar(require("./sources"));
61
- exports.folders = __importStar(require("./folders"));
62
- exports.identities = __importStar(require("./identities"));
63
69
  exports.models = __importStar(require("./models"));
64
- exports.embeddingModels = __importStar(require("./embeddingModels"));
65
- exports.blocks = __importStar(require("./blocks"));
66
70
  exports.jobs = __importStar(require("./jobs"));
67
71
  exports.health = __importStar(require("./health"));
68
- exports.providers = __importStar(require("./providers"));
69
72
  exports.telemetry = __importStar(require("./telemetry"));
70
73
  exports.voice = __importStar(require("./voice"));
71
74
  __exportStar(require("./tools/client/requests"), exports);
@@ -99,7 +99,7 @@ class Jobs {
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.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),
102
+ : 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),
103
103
  contentType: "application/json",
104
104
  queryParameters: _queryParams,
105
105
  requestType: "json",
@@ -193,7 +193,7 @@ class Jobs {
193
193
  method: "GET",
194
194
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
195
195
  ? yield core.Supplier.get(this._options.project)
196
- : 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),
196
+ : 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),
197
197
  contentType: "application/json",
198
198
  queryParameters: _queryParams,
199
199
  requestType: "json",
@@ -270,7 +270,7 @@ class Jobs {
270
270
  method: "GET",
271
271
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
272
272
  ? yield core.Supplier.get(this._options.project)
273
- : 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),
273
+ : 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),
274
274
  contentType: "application/json",
275
275
  requestType: "json",
276
276
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -346,7 +346,7 @@ class Jobs {
346
346
  method: "DELETE",
347
347
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
348
348
  ? yield core.Supplier.get(this._options.project)
349
- : 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),
349
+ : 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),
350
350
  contentType: "application/json",
351
351
  requestType: "json",
352
352
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -425,7 +425,7 @@ class Jobs {
425
425
  method: "PATCH",
426
426
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
427
427
  ? yield core.Supplier.get(this._options.project)
428
- : 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),
428
+ : 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),
429
429
  contentType: "application/json",
430
430
  requestType: "json",
431
431
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -4,6 +4,7 @@
4
4
  import * as environments from "../../../../environments";
5
5
  import * as core from "../../../../core";
6
6
  import * as Letta from "../../../index";
7
+ import { Embeddings } from "../resources/embeddings/client/Client";
7
8
  export declare namespace Models {
8
9
  interface Options {
9
10
  environment?: core.Supplier<environments.LettaEnvironment | string>;
@@ -29,7 +30,9 @@ export declare namespace Models {
29
30
  }
30
31
  export declare class Models {
31
32
  protected readonly _options: Models.Options;
33
+ protected _embeddings: Embeddings | undefined;
32
34
  constructor(_options?: Models.Options);
35
+ get embeddings(): Embeddings;
33
36
  /**
34
37
  * List available LLM models using the asynchronous implementation for improved performance
35
38
  *
@@ -55,10 +55,15 @@ const Letta = __importStar(require("../../../index"));
55
55
  const serializers = __importStar(require("../../../../serialization/index"));
56
56
  const url_join_1 = __importDefault(require("url-join"));
57
57
  const errors = __importStar(require("../../../../errors/index"));
58
+ const Client_1 = require("../resources/embeddings/client/Client");
58
59
  class Models {
59
60
  constructor(_options = {}) {
60
61
  this._options = _options;
61
62
  }
63
+ get embeddings() {
64
+ var _a;
65
+ return ((_a = this._embeddings) !== null && _a !== void 0 ? _a : (this._embeddings = new Client_1.Embeddings(this._options)));
66
+ }
62
67
  /**
63
68
  * List available LLM models using the asynchronous implementation for improved performance
64
69
  *
@@ -101,7 +106,7 @@ class Models {
101
106
  method: "GET",
102
107
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
103
108
  ? yield core.Supplier.get(this._options.project)
104
- : 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),
109
+ : 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),
105
110
  contentType: "application/json",
106
111
  queryParameters: _queryParams,
107
112
  requestType: "json",
@@ -173,7 +178,7 @@ class Models {
173
178
  method: "GET",
174
179
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
175
180
  ? yield core.Supplier.get(this._options.project)
176
- : 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),
181
+ : 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),
177
182
  contentType: "application/json",
178
183
  requestType: "json",
179
184
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -1 +1,2 @@
1
1
  export * from "./client";
2
+ export * from "./resources";
@@ -15,3 +15,4 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./client"), exports);
18
+ __exportStar(require("./resources"), exports);
@@ -1,10 +1,10 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- import * as environments from "../../../../environments";
5
- import * as core from "../../../../core";
6
- import * as Letta from "../../../index";
7
- export declare namespace EmbeddingModels {
4
+ import * as environments from "../../../../../../environments";
5
+ import * as core from "../../../../../../core";
6
+ import * as Letta from "../../../../../index";
7
+ export declare namespace Embeddings {
8
8
  interface Options {
9
9
  environment?: core.Supplier<environments.LettaEnvironment | string>;
10
10
  /** Specify a custom URL to connect the client to. */
@@ -27,20 +27,20 @@ export declare namespace EmbeddingModels {
27
27
  headers?: Record<string, string>;
28
28
  }
29
29
  }
30
- export declare class EmbeddingModels {
31
- protected readonly _options: EmbeddingModels.Options;
32
- constructor(_options?: EmbeddingModels.Options);
30
+ export declare class Embeddings {
31
+ protected readonly _options: Embeddings.Options;
32
+ constructor(_options?: Embeddings.Options);
33
33
  /**
34
34
  * List available embedding models using the asynchronous implementation for improved performance
35
35
  *
36
- * @param {EmbeddingModels.RequestOptions} requestOptions - Request-specific configuration.
36
+ * @param {Embeddings.RequestOptions} requestOptions - Request-specific configuration.
37
37
  *
38
38
  * @throws {@link Letta.UnprocessableEntityError}
39
39
  *
40
40
  * @example
41
- * await client.embeddingModels.list()
41
+ * await client.models.embeddings.list()
42
42
  */
43
- list(requestOptions?: EmbeddingModels.RequestOptions): core.HttpResponsePromise<Letta.EmbeddingConfig[]>;
43
+ list(requestOptions?: Embeddings.RequestOptions): core.HttpResponsePromise<Letta.EmbeddingConfig[]>;
44
44
  private __list;
45
45
  protected _getCustomAuthorizationHeaders(): Promise<{
46
46
  Authorization: string;
@@ -48,26 +48,26 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
48
48
  return (mod && mod.__esModule) ? mod : { "default": mod };
49
49
  };
50
50
  Object.defineProperty(exports, "__esModule", { value: true });
51
- exports.EmbeddingModels = void 0;
52
- const environments = __importStar(require("../../../../environments"));
53
- const core = __importStar(require("../../../../core"));
54
- const Letta = __importStar(require("../../../index"));
51
+ exports.Embeddings = void 0;
52
+ const environments = __importStar(require("../../../../../../environments"));
53
+ const core = __importStar(require("../../../../../../core"));
54
+ const Letta = __importStar(require("../../../../../index"));
55
55
  const url_join_1 = __importDefault(require("url-join"));
56
- const serializers = __importStar(require("../../../../serialization/index"));
57
- const errors = __importStar(require("../../../../errors/index"));
58
- class EmbeddingModels {
56
+ const serializers = __importStar(require("../../../../../../serialization/index"));
57
+ const errors = __importStar(require("../../../../../../errors/index"));
58
+ class Embeddings {
59
59
  constructor(_options = {}) {
60
60
  this._options = _options;
61
61
  }
62
62
  /**
63
63
  * List available embedding models using the asynchronous implementation for improved performance
64
64
  *
65
- * @param {EmbeddingModels.RequestOptions} requestOptions - Request-specific configuration.
65
+ * @param {Embeddings.RequestOptions} requestOptions - Request-specific configuration.
66
66
  *
67
67
  * @throws {@link Letta.UnprocessableEntityError}
68
68
  *
69
69
  * @example
70
- * await client.embeddingModels.list()
70
+ * await client.models.embeddings.list()
71
71
  */
72
72
  list(requestOptions) {
73
73
  return core.HttpResponsePromise.fromPromise(this.__list(requestOptions));
@@ -80,7 +80,7 @@ class EmbeddingModels {
80
80
  method: "GET",
81
81
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
82
82
  ? yield core.Supplier.get(this._options.project)
83
- : 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),
83
+ : 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),
84
84
  contentType: "application/json",
85
85
  requestType: "json",
86
86
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -89,7 +89,7 @@ class EmbeddingModels {
89
89
  });
90
90
  if (_response.ok) {
91
91
  return {
92
- data: serializers.embeddingModels.list.Response.parseOrThrow(_response.body, {
92
+ data: serializers.models.embeddings.list.Response.parseOrThrow(_response.body, {
93
93
  unrecognizedObjectKeys: "passthrough",
94
94
  allowUnrecognizedUnionMembers: true,
95
95
  allowUnrecognizedEnumValues: true,
@@ -141,4 +141,4 @@ class EmbeddingModels {
141
141
  });
142
142
  }
143
143
  }
144
- exports.EmbeddingModels = EmbeddingModels;
144
+ exports.Embeddings = Embeddings;
@@ -0,0 +1 @@
1
+ export * as embeddings from "./embeddings";
@@ -0,0 +1,37 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || (function () {
19
+ var ownKeys = function(o) {
20
+ ownKeys = Object.getOwnPropertyNames || function (o) {
21
+ var ar = [];
22
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
23
+ return ar;
24
+ };
25
+ return ownKeys(o);
26
+ };
27
+ return function (mod) {
28
+ if (mod && mod.__esModule) return mod;
29
+ var result = {};
30
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
31
+ __setModuleDefault(result, mod);
32
+ return result;
33
+ };
34
+ })();
35
+ Object.defineProperty(exports, "__esModule", { value: true });
36
+ exports.embeddings = void 0;
37
+ exports.embeddings = __importStar(require("./embeddings"));
@@ -89,7 +89,7 @@ class Projects {
89
89
  method: "GET",
90
90
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
91
91
  ? yield core.Supplier.get(this._options.project)
92
- : 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),
92
+ : 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),
93
93
  contentType: "application/json",
94
94
  queryParameters: _queryParams,
95
95
  requestType: "json",
@@ -76,8 +76,25 @@ class Providers {
76
76
  __list() {
77
77
  return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
78
78
  var _a, _b, _c;
79
- const { name, providerType, after, limit } = request;
79
+ const { before, after, limit, order, orderBy, name, providerType } = request;
80
80
  const _queryParams = {};
81
+ if (before != null) {
82
+ _queryParams["before"] = before;
83
+ }
84
+ if (after != null) {
85
+ _queryParams["after"] = after;
86
+ }
87
+ if (limit != null) {
88
+ _queryParams["limit"] = limit.toString();
89
+ }
90
+ if (order != null) {
91
+ _queryParams["order"] = serializers.ProvidersListRequestOrder.jsonOrThrow(order, {
92
+ unrecognizedObjectKeys: "strip",
93
+ });
94
+ }
95
+ if (orderBy != null) {
96
+ _queryParams["order_by"] = orderBy;
97
+ }
81
98
  if (name != null) {
82
99
  _queryParams["name"] = name;
83
100
  }
@@ -86,18 +103,12 @@ class Providers {
86
103
  unrecognizedObjectKeys: "strip",
87
104
  });
88
105
  }
89
- if (after != null) {
90
- _queryParams["after"] = after;
91
- }
92
- if (limit != null) {
93
- _queryParams["limit"] = limit.toString();
94
- }
95
106
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
96
107
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, "v1/providers/"),
97
108
  method: "GET",
98
109
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
99
110
  ? yield core.Supplier.get(this._options.project)
100
- : 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),
111
+ : 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),
101
112
  contentType: "application/json",
102
113
  queryParameters: _queryParams,
103
114
  requestType: "json",
@@ -178,7 +189,7 @@ class Providers {
178
189
  method: "POST",
179
190
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
180
191
  ? yield core.Supplier.get(this._options.project)
181
- : 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),
192
+ : 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),
182
193
  contentType: "application/json",
183
194
  requestType: "json",
184
195
  body: serializers.ProviderCreate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -255,7 +266,7 @@ class Providers {
255
266
  method: "DELETE",
256
267
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
257
268
  ? yield core.Supplier.get(this._options.project)
258
- : 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),
269
+ : 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),
259
270
  contentType: "application/json",
260
271
  requestType: "json",
261
272
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -325,7 +336,7 @@ class Providers {
325
336
  method: "PATCH",
326
337
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
327
338
  ? yield core.Supplier.get(this._options.project)
328
- : 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),
339
+ : 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),
329
340
  contentType: "application/json",
330
341
  requestType: "json",
331
342
  body: serializers.ProviderUpdate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -405,7 +416,7 @@ class Providers {
405
416
  method: "POST",
406
417
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
407
418
  ? yield core.Supplier.get(this._options.project)
408
- : 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),
419
+ : 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),
409
420
  contentType: "application/json",
410
421
  requestType: "json",
411
422
  body: serializers.ProviderCheck.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -7,8 +7,32 @@ import * as Letta from "../../../../index";
7
7
  * {}
8
8
  */
9
9
  export interface ProvidersListRequest {
10
- name?: string;
11
- providerType?: Letta.ProviderType;
10
+ /**
11
+ * Provider ID cursor for pagination. Returns providers that come before this provider ID in the specified sort order
12
+ */
13
+ before?: string;
14
+ /**
15
+ * Provider ID cursor for pagination. Returns providers that come after this provider ID in the specified sort order
16
+ */
12
17
  after?: string;
18
+ /**
19
+ * Maximum number of providers to return
20
+ */
13
21
  limit?: number;
22
+ /**
23
+ * Sort order for providers by creation time. 'asc' for oldest first, 'desc' for newest first
24
+ */
25
+ order?: Letta.ProvidersListRequestOrder;
26
+ /**
27
+ * Field to sort by
28
+ */
29
+ orderBy?: "created_at";
30
+ /**
31
+ * Filter providers by name
32
+ */
33
+ name?: string;
34
+ /**
35
+ * Filter providers by type
36
+ */
37
+ providerType?: Letta.ProviderType;
14
38
  }
@@ -1 +1,2 @@
1
+ export * from "./types";
1
2
  export * from "./client";
@@ -14,4 +14,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./types"), exports);
17
18
  __exportStar(require("./client"), exports);
@@ -0,0 +1,11 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * Sort order for providers by creation time. 'asc' for oldest first, 'desc' for newest first
6
+ */
7
+ export type ProvidersListRequestOrder = "asc" | "desc";
8
+ export declare const ProvidersListRequestOrder: {
9
+ readonly Asc: "asc";
10
+ readonly Desc: "desc";
11
+ };
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.ProvidersListRequestOrder = void 0;
7
+ exports.ProvidersListRequestOrder = {
8
+ Asc: "asc",
9
+ Desc: "desc",
10
+ };
@@ -0,0 +1 @@
1
+ export * from "./ProvidersListRequestOrder";