@letta-ai/letta-client 1.0.0-alpha.7 → 1.1.0

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 (512) hide show
  1. package/CHANGELOG.md +248 -0
  2. package/README.md +282 -319
  3. package/client.d.mts +61 -36
  4. package/client.d.mts.map +1 -1
  5. package/client.d.ts +61 -36
  6. package/client.d.ts.map +1 -1
  7. package/client.js +53 -23
  8. package/client.js.map +1 -1
  9. package/client.mjs +53 -23
  10. package/client.mjs.map +1 -1
  11. package/core/pagination.d.mts +96 -0
  12. package/core/pagination.d.mts.map +1 -0
  13. package/core/pagination.d.ts +96 -0
  14. package/core/pagination.d.ts.map +1 -0
  15. package/core/pagination.js +199 -0
  16. package/core/pagination.js.map +1 -0
  17. package/core/pagination.mjs +191 -0
  18. package/core/pagination.mjs.map +1 -0
  19. package/core/streaming.d.mts +33 -0
  20. package/core/streaming.d.mts.map +1 -0
  21. package/core/streaming.d.ts +33 -0
  22. package/core/streaming.d.ts.map +1 -0
  23. package/core/streaming.js +276 -0
  24. package/core/streaming.js.map +1 -0
  25. package/core/streaming.mjs +271 -0
  26. package/core/streaming.mjs.map +1 -0
  27. package/index.d.mts +1 -0
  28. package/index.d.mts.map +1 -1
  29. package/index.d.ts +1 -0
  30. package/index.d.ts.map +1 -1
  31. package/index.js +3 -1
  32. package/index.js.map +1 -1
  33. package/index.mjs +1 -0
  34. package/index.mjs.map +1 -1
  35. package/internal/decoders/line.d.mts +17 -0
  36. package/internal/decoders/line.d.mts.map +1 -0
  37. package/internal/decoders/line.d.ts +17 -0
  38. package/internal/decoders/line.d.ts.map +1 -0
  39. package/internal/decoders/line.js +113 -0
  40. package/internal/decoders/line.js.map +1 -0
  41. package/internal/decoders/line.mjs +108 -0
  42. package/internal/decoders/line.mjs.map +1 -0
  43. package/internal/parse.d.mts.map +1 -1
  44. package/internal/parse.d.ts.map +1 -1
  45. package/internal/parse.js +10 -0
  46. package/internal/parse.js.map +1 -1
  47. package/internal/parse.mjs +10 -0
  48. package/internal/parse.mjs.map +1 -1
  49. package/internal/request-options.d.mts +2 -0
  50. package/internal/request-options.d.mts.map +1 -1
  51. package/internal/request-options.d.ts +2 -0
  52. package/internal/request-options.d.ts.map +1 -1
  53. package/internal/request-options.js.map +1 -1
  54. package/internal/request-options.mjs.map +1 -1
  55. package/internal/tslib.js +17 -17
  56. package/package.json +21 -1
  57. package/pagination.d.mts +2 -0
  58. package/pagination.d.mts.map +1 -0
  59. package/pagination.d.ts +2 -0
  60. package/pagination.d.ts.map +1 -0
  61. package/pagination.js +6 -0
  62. package/pagination.js.map +1 -0
  63. package/pagination.mjs +2 -0
  64. package/pagination.mjs.map +1 -0
  65. package/resources/access-tokens.d.mts +105 -0
  66. package/resources/access-tokens.d.mts.map +1 -0
  67. package/resources/access-tokens.d.ts +105 -0
  68. package/resources/access-tokens.d.ts.map +1 -0
  69. package/resources/access-tokens.js +30 -0
  70. package/resources/access-tokens.js.map +1 -0
  71. package/resources/access-tokens.mjs +26 -0
  72. package/resources/access-tokens.mjs.map +1 -0
  73. package/resources/agents/agents.d.mts +517 -160
  74. package/resources/agents/agents.d.mts.map +1 -1
  75. package/resources/agents/agents.d.ts +517 -160
  76. package/resources/agents/agents.d.ts.map +1 -1
  77. package/resources/agents/agents.js +16 -21
  78. package/resources/agents/agents.js.map +1 -1
  79. package/resources/agents/agents.mjs +17 -22
  80. package/resources/agents/agents.mjs.map +1 -1
  81. package/resources/agents/archives.d.mts +31 -0
  82. package/resources/agents/archives.d.mts.map +1 -0
  83. package/resources/agents/archives.d.ts +31 -0
  84. package/resources/agents/archives.d.ts.map +1 -0
  85. package/resources/agents/archives.js +24 -0
  86. package/resources/agents/archives.js.map +1 -0
  87. package/resources/agents/archives.mjs +20 -0
  88. package/resources/agents/archives.mjs.map +1 -0
  89. package/resources/agents/blocks.d.mts +33 -55
  90. package/resources/agents/blocks.d.mts.map +1 -1
  91. package/resources/agents/blocks.d.ts +33 -55
  92. package/resources/agents/blocks.d.ts.map +1 -1
  93. package/resources/agents/blocks.js +2 -1
  94. package/resources/agents/blocks.js.map +1 -1
  95. package/resources/agents/blocks.mjs +2 -1
  96. package/resources/agents/blocks.mjs.map +1 -1
  97. package/resources/agents/files.d.mts +39 -79
  98. package/resources/agents/files.d.mts.map +1 -1
  99. package/resources/agents/files.d.ts +39 -79
  100. package/resources/agents/files.d.ts.map +1 -1
  101. package/resources/agents/files.js +5 -1
  102. package/resources/agents/files.js.map +1 -1
  103. package/resources/agents/files.mjs +5 -1
  104. package/resources/agents/files.mjs.map +1 -1
  105. package/resources/agents/folders.d.mts +50 -79
  106. package/resources/agents/folders.d.mts.map +1 -1
  107. package/resources/agents/folders.d.ts +50 -79
  108. package/resources/agents/folders.d.ts.map +1 -1
  109. package/resources/agents/folders.js +5 -1
  110. package/resources/agents/folders.js.map +1 -1
  111. package/resources/agents/folders.mjs +5 -1
  112. package/resources/agents/folders.mjs.map +1 -1
  113. package/resources/agents/groups.d.mts +6 -28
  114. package/resources/agents/groups.d.mts.map +1 -1
  115. package/resources/agents/groups.d.ts +6 -28
  116. package/resources/agents/groups.d.ts.map +1 -1
  117. package/resources/agents/groups.js +5 -1
  118. package/resources/agents/groups.js.map +1 -1
  119. package/resources/agents/groups.mjs +5 -1
  120. package/resources/agents/groups.mjs.map +1 -1
  121. package/resources/agents/identities.d.mts +31 -0
  122. package/resources/agents/identities.d.mts.map +1 -0
  123. package/resources/agents/identities.d.ts +31 -0
  124. package/resources/agents/identities.d.ts.map +1 -0
  125. package/resources/agents/identities.js +24 -0
  126. package/resources/agents/identities.js.map +1 -0
  127. package/resources/agents/identities.mjs +20 -0
  128. package/resources/agents/identities.mjs.map +1 -0
  129. package/resources/agents/index.d.mts +9 -7
  130. package/resources/agents/index.d.mts.map +1 -1
  131. package/resources/agents/index.d.ts +9 -7
  132. package/resources/agents/index.d.ts.map +1 -1
  133. package/resources/agents/index.js +5 -1
  134. package/resources/agents/index.js.map +1 -1
  135. package/resources/agents/index.mjs +2 -0
  136. package/resources/agents/index.mjs.map +1 -1
  137. package/resources/agents/messages.d.mts +668 -422
  138. package/resources/agents/messages.d.mts.map +1 -1
  139. package/resources/agents/messages.d.ts +668 -422
  140. package/resources/agents/messages.d.ts.map +1 -1
  141. package/resources/agents/messages.js +27 -26
  142. package/resources/agents/messages.js.map +1 -1
  143. package/resources/agents/messages.mjs +27 -26
  144. package/resources/agents/messages.mjs.map +1 -1
  145. package/resources/agents/tools.d.mts +9 -30
  146. package/resources/agents/tools.d.mts.map +1 -1
  147. package/resources/agents/tools.d.ts +9 -30
  148. package/resources/agents/tools.d.ts.map +1 -1
  149. package/resources/agents/tools.js +5 -1
  150. package/resources/agents/tools.js.map +1 -1
  151. package/resources/agents/tools.mjs +5 -1
  152. package/resources/agents/tools.mjs.map +1 -1
  153. package/resources/archives/archives.d.mts +115 -0
  154. package/resources/archives/archives.d.mts.map +1 -0
  155. package/resources/archives/archives.d.ts +115 -0
  156. package/resources/archives/archives.d.ts.map +1 -0
  157. package/resources/archives/archives.js +50 -0
  158. package/resources/archives/archives.js.map +1 -0
  159. package/resources/archives/archives.mjs +45 -0
  160. package/resources/archives/archives.mjs.map +1 -0
  161. package/resources/archives/index.d.mts +3 -0
  162. package/resources/archives/index.d.mts.map +1 -0
  163. package/resources/archives/index.d.ts +3 -0
  164. package/resources/archives/index.d.ts.map +1 -0
  165. package/resources/archives/index.js +9 -0
  166. package/resources/archives/index.js.map +1 -0
  167. package/resources/archives/index.mjs +4 -0
  168. package/resources/archives/index.mjs.map +1 -0
  169. package/resources/archives/passages.d.mts +113 -0
  170. package/resources/archives/passages.d.mts.map +1 -0
  171. package/resources/archives/passages.d.ts +113 -0
  172. package/resources/archives/passages.d.ts.map +1 -0
  173. package/resources/archives/passages.js +32 -0
  174. package/resources/archives/passages.js.map +1 -0
  175. package/resources/archives/passages.mjs +28 -0
  176. package/resources/archives/passages.mjs.map +1 -0
  177. package/resources/archives.d.mts +1 -130
  178. package/resources/archives.d.mts.map +1 -1
  179. package/resources/archives.d.ts +1 -130
  180. package/resources/archives.d.ts.map +1 -1
  181. package/resources/archives.js +2 -37
  182. package/resources/archives.js.map +1 -1
  183. package/resources/archives.mjs +1 -35
  184. package/resources/archives.mjs.map +1 -1
  185. package/resources/batches/batches.d.mts +52 -34
  186. package/resources/batches/batches.d.mts.map +1 -1
  187. package/resources/batches/batches.d.ts +52 -34
  188. package/resources/batches/batches.d.ts.map +1 -1
  189. package/resources/batches/batches.js +2 -1
  190. package/resources/batches/batches.js.map +1 -1
  191. package/resources/batches/batches.mjs +2 -1
  192. package/resources/batches/batches.mjs.map +1 -1
  193. package/resources/batches/index.d.mts +2 -2
  194. package/resources/batches/index.d.mts.map +1 -1
  195. package/resources/batches/index.d.ts +2 -2
  196. package/resources/batches/index.d.ts.map +1 -1
  197. package/resources/batches/index.js.map +1 -1
  198. package/resources/batches/index.mjs.map +1 -1
  199. package/resources/batches/messages.d.mts +6 -30
  200. package/resources/batches/messages.d.mts.map +1 -1
  201. package/resources/batches/messages.d.ts +6 -30
  202. package/resources/batches/messages.d.ts.map +1 -1
  203. package/resources/batches/messages.js +2 -1
  204. package/resources/batches/messages.js.map +1 -1
  205. package/resources/batches/messages.mjs +2 -1
  206. package/resources/batches/messages.mjs.map +1 -1
  207. package/resources/blocks/agents.d.mts +6 -28
  208. package/resources/blocks/agents.d.mts.map +1 -1
  209. package/resources/blocks/agents.d.ts +6 -28
  210. package/resources/blocks/agents.d.ts.map +1 -1
  211. package/resources/blocks/agents.js +5 -1
  212. package/resources/blocks/agents.js.map +1 -1
  213. package/resources/blocks/agents.mjs +5 -1
  214. package/resources/blocks/agents.mjs.map +1 -1
  215. package/resources/blocks/blocks.d.mts +108 -48
  216. package/resources/blocks/blocks.d.mts.map +1 -1
  217. package/resources/blocks/blocks.d.ts +108 -48
  218. package/resources/blocks/blocks.d.ts.map +1 -1
  219. package/resources/blocks/blocks.js +3 -8
  220. package/resources/blocks/blocks.js.map +1 -1
  221. package/resources/blocks/blocks.mjs +3 -8
  222. package/resources/blocks/blocks.mjs.map +1 -1
  223. package/resources/blocks/index.d.mts +2 -2
  224. package/resources/blocks/index.d.mts.map +1 -1
  225. package/resources/blocks/index.d.ts +2 -2
  226. package/resources/blocks/index.d.ts.map +1 -1
  227. package/resources/blocks/index.js.map +1 -1
  228. package/resources/blocks/index.mjs.map +1 -1
  229. package/resources/folders/files.d.mts +75 -97
  230. package/resources/folders/files.d.mts.map +1 -1
  231. package/resources/folders/files.d.ts +75 -97
  232. package/resources/folders/files.d.ts.map +1 -1
  233. package/resources/folders/files.js +5 -1
  234. package/resources/folders/files.js.map +1 -1
  235. package/resources/folders/files.mjs +5 -1
  236. package/resources/folders/files.mjs.map +1 -1
  237. package/resources/folders/folders.d.mts +11 -44
  238. package/resources/folders/folders.d.mts.map +1 -1
  239. package/resources/folders/folders.d.ts +11 -44
  240. package/resources/folders/folders.d.ts.map +1 -1
  241. package/resources/folders/folders.js +2 -7
  242. package/resources/folders/folders.js.map +1 -1
  243. package/resources/folders/folders.mjs +2 -7
  244. package/resources/folders/folders.mjs.map +1 -1
  245. package/resources/folders/index.d.mts +2 -2
  246. package/resources/folders/index.d.mts.map +1 -1
  247. package/resources/folders/index.d.ts +2 -2
  248. package/resources/folders/index.d.ts.map +1 -1
  249. package/resources/folders/index.js.map +1 -1
  250. package/resources/folders/index.mjs.map +1 -1
  251. package/resources/groups/groups.d.mts +17 -67
  252. package/resources/groups/groups.d.mts.map +1 -1
  253. package/resources/groups/groups.d.ts +17 -67
  254. package/resources/groups/groups.d.ts.map +1 -1
  255. package/resources/groups/groups.js +6 -28
  256. package/resources/groups/groups.js.map +1 -1
  257. package/resources/groups/groups.mjs +6 -28
  258. package/resources/groups/groups.mjs.map +1 -1
  259. package/resources/groups/index.d.mts +2 -2
  260. package/resources/groups/index.d.mts.map +1 -1
  261. package/resources/groups/index.d.ts +2 -2
  262. package/resources/groups/index.d.ts.map +1 -1
  263. package/resources/groups/index.js.map +1 -1
  264. package/resources/groups/index.mjs.map +1 -1
  265. package/resources/groups/messages.d.mts +145 -79
  266. package/resources/groups/messages.d.mts.map +1 -1
  267. package/resources/groups/messages.d.ts +145 -79
  268. package/resources/groups/messages.d.ts.map +1 -1
  269. package/resources/groups/messages.js +18 -10
  270. package/resources/groups/messages.js.map +1 -1
  271. package/resources/groups/messages.mjs +18 -10
  272. package/resources/groups/messages.mjs.map +1 -1
  273. package/resources/identities/agents.d.mts +6 -28
  274. package/resources/identities/agents.d.mts.map +1 -1
  275. package/resources/identities/agents.d.ts +6 -28
  276. package/resources/identities/agents.d.ts.map +1 -1
  277. package/resources/identities/agents.js +2 -1
  278. package/resources/identities/agents.js.map +1 -1
  279. package/resources/identities/agents.mjs +2 -1
  280. package/resources/identities/agents.mjs.map +1 -1
  281. package/resources/identities/blocks.d.mts +7 -29
  282. package/resources/identities/blocks.d.mts.map +1 -1
  283. package/resources/identities/blocks.d.ts +7 -29
  284. package/resources/identities/blocks.d.ts.map +1 -1
  285. package/resources/identities/blocks.js +2 -1
  286. package/resources/identities/blocks.js.map +1 -1
  287. package/resources/identities/blocks.mjs +2 -1
  288. package/resources/identities/blocks.mjs.map +1 -1
  289. package/resources/identities/identities.d.mts +30 -65
  290. package/resources/identities/identities.d.mts.map +1 -1
  291. package/resources/identities/identities.d.ts +30 -65
  292. package/resources/identities/identities.d.ts.map +1 -1
  293. package/resources/identities/identities.js +7 -29
  294. package/resources/identities/identities.js.map +1 -1
  295. package/resources/identities/identities.mjs +7 -29
  296. package/resources/identities/identities.mjs.map +1 -1
  297. package/resources/identities/index.d.mts +3 -3
  298. package/resources/identities/index.d.mts.map +1 -1
  299. package/resources/identities/index.d.ts +3 -3
  300. package/resources/identities/index.d.ts.map +1 -1
  301. package/resources/identities/index.js.map +1 -1
  302. package/resources/identities/index.mjs.map +1 -1
  303. package/resources/identities/properties.d.mts +1 -1
  304. package/resources/identities/properties.d.ts +1 -1
  305. package/resources/identities/properties.js +1 -1
  306. package/resources/identities/properties.mjs +1 -1
  307. package/resources/index.d.mts +13 -11
  308. package/resources/index.d.mts.map +1 -1
  309. package/resources/index.d.ts +13 -11
  310. package/resources/index.d.ts.map +1 -1
  311. package/resources/index.js +6 -2
  312. package/resources/index.js.map +1 -1
  313. package/resources/index.mjs +3 -1
  314. package/resources/index.mjs.map +1 -1
  315. package/resources/mcp-servers/index.d.mts +3 -0
  316. package/resources/mcp-servers/index.d.mts.map +1 -0
  317. package/resources/mcp-servers/index.d.ts +3 -0
  318. package/resources/mcp-servers/index.d.ts.map +1 -0
  319. package/resources/mcp-servers/index.js +9 -0
  320. package/resources/mcp-servers/index.js.map +1 -0
  321. package/resources/mcp-servers/index.mjs +4 -0
  322. package/resources/mcp-servers/index.mjs.map +1 -0
  323. package/resources/mcp-servers/mcp-servers.d.mts +349 -0
  324. package/resources/mcp-servers/mcp-servers.d.mts.map +1 -0
  325. package/resources/mcp-servers/mcp-servers.d.ts +349 -0
  326. package/resources/mcp-servers/mcp-servers.d.ts.map +1 -0
  327. package/resources/mcp-servers/mcp-servers.js +69 -0
  328. package/resources/mcp-servers/mcp-servers.js.map +1 -0
  329. package/resources/mcp-servers/mcp-servers.mjs +64 -0
  330. package/resources/mcp-servers/mcp-servers.mjs.map +1 -0
  331. package/resources/mcp-servers/tools.d.mts +42 -0
  332. package/resources/mcp-servers/tools.d.mts.map +1 -0
  333. package/resources/mcp-servers/tools.d.ts +42 -0
  334. package/resources/mcp-servers/tools.d.ts.map +1 -0
  335. package/resources/mcp-servers/tools.js +36 -0
  336. package/resources/mcp-servers/tools.js.map +1 -0
  337. package/resources/mcp-servers/tools.mjs +32 -0
  338. package/resources/mcp-servers/tools.mjs.map +1 -0
  339. package/resources/mcp-servers.d.mts +2 -0
  340. package/resources/mcp-servers.d.mts.map +1 -0
  341. package/resources/mcp-servers.d.ts +2 -0
  342. package/resources/mcp-servers.d.ts.map +1 -0
  343. package/resources/mcp-servers.js +6 -0
  344. package/resources/mcp-servers.js.map +1 -0
  345. package/resources/mcp-servers.mjs +3 -0
  346. package/resources/mcp-servers.mjs.map +1 -0
  347. package/resources/models/embeddings.d.mts +6 -2
  348. package/resources/models/embeddings.d.mts.map +1 -1
  349. package/resources/models/embeddings.d.ts +6 -2
  350. package/resources/models/embeddings.d.ts.map +1 -1
  351. package/resources/models/embeddings.js +5 -1
  352. package/resources/models/embeddings.js.map +1 -1
  353. package/resources/models/embeddings.mjs +5 -1
  354. package/resources/models/embeddings.mjs.map +1 -1
  355. package/resources/models/index.d.mts +1 -1
  356. package/resources/models/index.d.mts.map +1 -1
  357. package/resources/models/index.d.ts +1 -1
  358. package/resources/models/index.d.ts.map +1 -1
  359. package/resources/models/index.js.map +1 -1
  360. package/resources/models/index.mjs.map +1 -1
  361. package/resources/models/models.d.mts +180 -4
  362. package/resources/models/models.d.mts.map +1 -1
  363. package/resources/models/models.d.ts +180 -4
  364. package/resources/models/models.d.ts.map +1 -1
  365. package/resources/models/models.js +5 -1
  366. package/resources/models/models.js.map +1 -1
  367. package/resources/models/models.mjs +5 -1
  368. package/resources/models/models.mjs.map +1 -1
  369. package/resources/runs/index.d.mts +3 -3
  370. package/resources/runs/index.d.mts.map +1 -1
  371. package/resources/runs/index.d.ts +3 -3
  372. package/resources/runs/index.d.ts.map +1 -1
  373. package/resources/runs/index.js.map +1 -1
  374. package/resources/runs/index.mjs.map +1 -1
  375. package/resources/runs/messages.d.mts +8 -28
  376. package/resources/runs/messages.d.mts.map +1 -1
  377. package/resources/runs/messages.d.ts +8 -28
  378. package/resources/runs/messages.d.ts.map +1 -1
  379. package/resources/runs/messages.js +10 -2
  380. package/resources/runs/messages.js.map +1 -1
  381. package/resources/runs/messages.mjs +10 -2
  382. package/resources/runs/messages.mjs.map +1 -1
  383. package/resources/runs/runs.d.mts +10 -36
  384. package/resources/runs/runs.d.mts.map +1 -1
  385. package/resources/runs/runs.d.ts +10 -36
  386. package/resources/runs/runs.d.ts.map +1 -1
  387. package/resources/runs/runs.js +2 -1
  388. package/resources/runs/runs.js.map +1 -1
  389. package/resources/runs/runs.mjs +3 -2
  390. package/resources/runs/runs.mjs.map +1 -1
  391. package/resources/runs/steps.d.mts +6 -26
  392. package/resources/runs/steps.d.mts.map +1 -1
  393. package/resources/runs/steps.d.ts +6 -26
  394. package/resources/runs/steps.d.ts.map +1 -1
  395. package/resources/runs/steps.js +5 -1
  396. package/resources/runs/steps.js.map +1 -1
  397. package/resources/runs/steps.mjs +5 -1
  398. package/resources/runs/steps.mjs.map +1 -1
  399. package/resources/steps/index.d.mts +2 -2
  400. package/resources/steps/index.d.mts.map +1 -1
  401. package/resources/steps/index.d.ts +2 -2
  402. package/resources/steps/index.d.ts.map +1 -1
  403. package/resources/steps/index.js.map +1 -1
  404. package/resources/steps/index.mjs +1 -1
  405. package/resources/steps/index.mjs.map +1 -1
  406. package/resources/steps/messages.d.mts +14 -28
  407. package/resources/steps/messages.d.mts.map +1 -1
  408. package/resources/steps/messages.d.ts +14 -28
  409. package/resources/steps/messages.d.ts.map +1 -1
  410. package/resources/steps/messages.js +5 -1
  411. package/resources/steps/messages.js.map +1 -1
  412. package/resources/steps/messages.mjs +5 -1
  413. package/resources/steps/messages.mjs.map +1 -1
  414. package/resources/steps/steps.d.mts +17 -44
  415. package/resources/steps/steps.d.mts.map +1 -1
  416. package/resources/steps/steps.d.ts +17 -44
  417. package/resources/steps/steps.d.ts.map +1 -1
  418. package/resources/steps/steps.js +3 -11
  419. package/resources/steps/steps.js.map +1 -1
  420. package/resources/steps/steps.mjs +3 -11
  421. package/resources/steps/steps.mjs.map +1 -1
  422. package/resources/templates/agents.d.mts +9 -14
  423. package/resources/templates/agents.d.mts.map +1 -1
  424. package/resources/templates/agents.d.ts +9 -14
  425. package/resources/templates/agents.d.ts.map +1 -1
  426. package/resources/templates/agents.js +2 -3
  427. package/resources/templates/agents.js.map +1 -1
  428. package/resources/templates/agents.mjs +2 -3
  429. package/resources/templates/agents.mjs.map +1 -1
  430. package/resources/tools.d.mts +6 -68
  431. package/resources/tools.d.mts.map +1 -1
  432. package/resources/tools.d.ts +6 -68
  433. package/resources/tools.d.ts.map +1 -1
  434. package/resources/tools.js +2 -7
  435. package/resources/tools.js.map +1 -1
  436. package/resources/tools.mjs +2 -7
  437. package/resources/tools.mjs.map +1 -1
  438. package/src/client.ts +274 -127
  439. package/src/core/pagination.ts +334 -0
  440. package/src/core/streaming.ts +331 -0
  441. package/src/index.ts +1 -0
  442. package/src/internal/decoders/line.ts +135 -0
  443. package/src/internal/parse.ts +14 -0
  444. package/src/internal/request-options.ts +2 -0
  445. package/src/pagination.ts +2 -0
  446. package/src/resources/access-tokens.ts +163 -0
  447. package/src/resources/agents/agents.ts +722 -242
  448. package/src/resources/agents/archives.ts +51 -0
  449. package/src/resources/agents/blocks.ts +50 -63
  450. package/src/resources/agents/files.ts +47 -90
  451. package/src/resources/agents/folders.ts +58 -88
  452. package/src/resources/agents/groups.ts +11 -35
  453. package/src/resources/agents/identities.ts +51 -0
  454. package/src/resources/agents/index.ts +40 -12
  455. package/src/resources/agents/messages.ts +941 -550
  456. package/src/resources/agents/tools.ts +13 -37
  457. package/src/resources/archives/archives.ts +170 -0
  458. package/src/resources/archives/index.ts +17 -0
  459. package/src/resources/archives/passages.ts +150 -0
  460. package/src/resources/archives.ts +1 -178
  461. package/src/resources/batches/batches.ts +74 -46
  462. package/src/resources/batches/index.ts +2 -2
  463. package/src/resources/batches/messages.ts +12 -37
  464. package/src/resources/blocks/agents.ts +11 -35
  465. package/src/resources/blocks/blocks.ts +130 -64
  466. package/src/resources/blocks/index.ts +3 -3
  467. package/src/resources/folders/files.ts +90 -113
  468. package/src/resources/folders/folders.ts +14 -55
  469. package/src/resources/folders/index.ts +2 -2
  470. package/src/resources/groups/groups.ts +21 -102
  471. package/src/resources/groups/index.ts +2 -4
  472. package/src/resources/groups/messages.ts +215 -103
  473. package/src/resources/identities/agents.ts +12 -35
  474. package/src/resources/identities/blocks.ts +13 -36
  475. package/src/resources/identities/identities.ts +35 -107
  476. package/src/resources/identities/index.ts +3 -4
  477. package/src/resources/identities/properties.ts +1 -1
  478. package/src/resources/index.ts +55 -18
  479. package/src/resources/mcp-servers/index.ts +25 -0
  480. package/src/resources/mcp-servers/mcp-servers.ts +460 -0
  481. package/src/resources/mcp-servers/tools.ts +69 -0
  482. package/src/resources/mcp-servers.ts +3 -0
  483. package/src/resources/models/embeddings.ts +6 -2
  484. package/src/resources/models/index.ts +2 -0
  485. package/src/resources/models/models.ts +260 -3
  486. package/src/resources/runs/index.ts +2 -3
  487. package/src/resources/runs/messages.ts +18 -37
  488. package/src/resources/runs/runs.ts +14 -54
  489. package/src/resources/runs/steps.ts +11 -33
  490. package/src/resources/steps/index.ts +7 -2
  491. package/src/resources/steps/messages.ts +25 -35
  492. package/src/resources/steps/steps.ts +20 -61
  493. package/src/resources/templates/agents.ts +14 -17
  494. package/src/resources/tools.ts +8 -92
  495. package/src/streaming.ts +2 -0
  496. package/src/version.ts +1 -1
  497. package/streaming.d.mts +2 -0
  498. package/streaming.d.mts.map +1 -0
  499. package/streaming.d.ts +2 -0
  500. package/streaming.d.ts.map +1 -0
  501. package/streaming.js +6 -0
  502. package/streaming.js.map +1 -0
  503. package/streaming.mjs +2 -0
  504. package/streaming.mjs.map +1 -0
  505. package/version.d.mts +1 -1
  506. package/version.d.mts.map +1 -1
  507. package/version.d.ts +1 -1
  508. package/version.d.ts.map +1 -1
  509. package/version.js +1 -1
  510. package/version.js.map +1 -1
  511. package/version.mjs +1 -1
  512. package/version.mjs.map +1 -1
@@ -1,11 +1,12 @@
1
1
  import { APIResource } from "../../core/resource.mjs";
2
2
  import * as AgentsAPI from "./agents.mjs";
3
- import { AgentListParams, AgentListResponse, Agents } from "./agents.mjs";
3
+ import { AgentListParams, Agents } from "./agents.mjs";
4
4
  import * as BlocksAPI from "./blocks.mjs";
5
- import { BlockListParams, BlockListResponse, Blocks } from "./blocks.mjs";
5
+ import { BlockListParams, Blocks } from "./blocks.mjs";
6
6
  import * as PropertiesAPI from "./properties.mjs";
7
7
  import { Properties, PropertyUpsertParams, PropertyUpsertResponse } from "./properties.mjs";
8
8
  import { APIPromise } from "../../core/api-promise.mjs";
9
+ import { ArrayPage, type ArrayPageParams, PagePromise } from "../../core/pagination.mjs";
9
10
  import { RequestOptions } from "../../internal/request-options.mjs";
10
11
  export declare class Identities extends APIResource {
11
12
  properties: PropertiesAPI.Properties;
@@ -14,33 +15,34 @@ export declare class Identities extends APIResource {
14
15
  /**
15
16
  * Create Identity
16
17
  */
17
- create(params: IdentityCreateParams, options?: RequestOptions): APIPromise<Identity>;
18
+ create(body: IdentityCreateParams, options?: RequestOptions): APIPromise<Identity>;
18
19
  /**
19
20
  * Retrieve Identity
20
21
  */
21
22
  retrieve(identityID: string, options?: RequestOptions): APIPromise<Identity>;
22
23
  /**
23
- * Modify Identity
24
+ * Update Identity
24
25
  */
25
26
  update(identityID: string, body: IdentityUpdateParams, options?: RequestOptions): APIPromise<Identity>;
26
27
  /**
27
28
  * Get a list of all identities in the database
28
29
  */
29
- list(query?: IdentityListParams | null | undefined, options?: RequestOptions): APIPromise<IdentityListResponse>;
30
+ list(query?: IdentityListParams | null | undefined, options?: RequestOptions): PagePromise<IdentitiesArrayPage, Identity>;
30
31
  /**
31
32
  * Delete an identity by its identifier key
32
33
  */
33
34
  delete(identityID: string, options?: RequestOptions): APIPromise<unknown>;
34
- /**
35
- * Get count of all identities for a user
36
- */
37
- count(options?: RequestOptions): APIPromise<IdentityCountResponse>;
38
35
  /**
39
36
  * Upsert Identity
40
37
  */
41
- upsert(params: IdentityUpsertParams, options?: RequestOptions): APIPromise<Identity>;
38
+ upsert(body: IdentityUpsertParams, options?: RequestOptions): APIPromise<Identity>;
42
39
  }
40
+ export type IdentitiesArrayPage = ArrayPage<Identity>;
43
41
  export interface Identity {
42
+ /**
43
+ * The human-friendly ID of the Identity
44
+ */
45
+ id: string;
44
46
  /**
45
47
  * @deprecated The IDs of the agents associated with the identity.
46
48
  */
@@ -61,10 +63,6 @@ export interface Identity {
61
63
  * The name of the identity.
62
64
  */
63
65
  name: string;
64
- /**
65
- * The human-friendly ID of the Identity
66
- */
67
- id?: string;
68
66
  /**
69
67
  * The project id of the identity, if applicable.
70
68
  */
@@ -97,42 +95,36 @@ export interface IdentityProperty {
97
95
  * Enum to represent the type of the identity.
98
96
  */
99
97
  export type IdentityType = 'org' | 'user' | 'other';
100
- export type IdentityListResponse = Array<Identity>;
101
98
  export type IdentityDeleteResponse = unknown;
102
- export type IdentityCountResponse = number;
103
99
  export interface IdentityCreateParams {
104
100
  /**
105
- * Body param: External, user-generated identifier key of the identity.
101
+ * External, user-generated identifier key of the identity.
106
102
  */
107
103
  identifier_key: string;
108
104
  /**
109
- * Body param: The type of the identity.
105
+ * The type of the identity.
110
106
  */
111
107
  identity_type: IdentityType;
112
108
  /**
113
- * Body param: The name of the identity.
109
+ * The name of the identity.
114
110
  */
115
111
  name: string;
116
112
  /**
117
- * @deprecated Body param: The agent ids that are associated with the identity.
113
+ * @deprecated The agent ids that are associated with the identity.
118
114
  */
119
115
  agent_ids?: Array<string> | null;
120
116
  /**
121
- * @deprecated Body param: The IDs of the blocks associated with the identity.
117
+ * @deprecated The IDs of the blocks associated with the identity.
122
118
  */
123
119
  block_ids?: Array<string> | null;
124
120
  /**
125
- * Body param: The project id of the identity, if applicable.
121
+ * The project id of the identity, if applicable.
126
122
  */
127
123
  project_id?: string | null;
128
124
  /**
129
- * Body param: List of properties associated with the identity.
125
+ * List of properties associated with the identity.
130
126
  */
131
127
  properties?: Array<IdentityProperty> | null;
132
- /**
133
- * Header param: The project slug to associate with the identity (cloud only).
134
- */
135
- 'X-Project'?: string;
136
128
  }
137
129
  export interface IdentityUpdateParams {
138
130
  /**
@@ -160,76 +152,49 @@ export interface IdentityUpdateParams {
160
152
  */
161
153
  properties?: Array<IdentityProperty> | null;
162
154
  }
163
- export interface IdentityListParams {
164
- /**
165
- * Identity ID cursor for pagination. Returns identities that come after this
166
- * identity ID in the specified sort order
167
- */
168
- after?: string | null;
169
- /**
170
- * Identity ID cursor for pagination. Returns identities that come before this
171
- * identity ID in the specified sort order
172
- */
173
- before?: string | null;
155
+ export interface IdentityListParams extends ArrayPageParams {
174
156
  identifier_key?: string | null;
175
157
  /**
176
158
  * Enum to represent the type of the identity.
177
159
  */
178
160
  identity_type?: IdentityType | null;
179
- /**
180
- * Maximum number of identities to return
181
- */
182
- limit?: number | null;
183
161
  name?: string | null;
184
- /**
185
- * Sort order for identities by creation time. 'asc' for oldest first, 'desc' for
186
- * newest first
187
- */
188
- order?: 'asc' | 'desc';
189
- /**
190
- * Field to sort by
191
- */
192
- order_by?: 'created_at';
193
162
  project_id?: string | null;
194
163
  }
195
164
  export interface IdentityUpsertParams {
196
165
  /**
197
- * Body param: External, user-generated identifier key of the identity.
166
+ * External, user-generated identifier key of the identity.
198
167
  */
199
168
  identifier_key: string;
200
169
  /**
201
- * Body param: The type of the identity.
170
+ * The type of the identity.
202
171
  */
203
172
  identity_type: IdentityType;
204
173
  /**
205
- * Body param: The name of the identity.
174
+ * The name of the identity.
206
175
  */
207
176
  name: string;
208
177
  /**
209
- * @deprecated Body param: The agent ids that are associated with the identity.
178
+ * @deprecated The agent ids that are associated with the identity.
210
179
  */
211
180
  agent_ids?: Array<string> | null;
212
181
  /**
213
- * @deprecated Body param: The IDs of the blocks associated with the identity.
182
+ * @deprecated The IDs of the blocks associated with the identity.
214
183
  */
215
184
  block_ids?: Array<string> | null;
216
185
  /**
217
- * Body param: The project id of the identity, if applicable.
186
+ * The project id of the identity, if applicable.
218
187
  */
219
188
  project_id?: string | null;
220
189
  /**
221
- * Body param: List of properties associated with the identity.
190
+ * List of properties associated with the identity.
222
191
  */
223
192
  properties?: Array<IdentityProperty> | null;
224
- /**
225
- * Header param: The project slug to associate with the identity (cloud only).
226
- */
227
- 'X-Project'?: string;
228
193
  }
229
194
  export declare namespace Identities {
230
- export { type Identity as Identity, type IdentityProperty as IdentityProperty, type IdentityType as IdentityType, type IdentityListResponse as IdentityListResponse, type IdentityDeleteResponse as IdentityDeleteResponse, type IdentityCountResponse as IdentityCountResponse, type IdentityCreateParams as IdentityCreateParams, type IdentityUpdateParams as IdentityUpdateParams, type IdentityListParams as IdentityListParams, type IdentityUpsertParams as IdentityUpsertParams, };
195
+ export { type Identity as Identity, type IdentityProperty as IdentityProperty, type IdentityType as IdentityType, type IdentityDeleteResponse as IdentityDeleteResponse, type IdentitiesArrayPage as IdentitiesArrayPage, type IdentityCreateParams as IdentityCreateParams, type IdentityUpdateParams as IdentityUpdateParams, type IdentityListParams as IdentityListParams, type IdentityUpsertParams as IdentityUpsertParams, };
231
196
  export { Properties as Properties, type PropertyUpsertResponse as PropertyUpsertResponse, type PropertyUpsertParams as PropertyUpsertParams, };
232
- export { Agents as Agents, type AgentListResponse as AgentListResponse, type AgentListParams as AgentListParams, };
233
- export { Blocks as Blocks, type BlockListResponse as BlockListResponse, type BlockListParams as BlockListParams, };
197
+ export { Agents as Agents, type AgentListParams as AgentListParams };
198
+ export { Blocks as Blocks, type BlockListParams as BlockListParams };
234
199
  }
235
200
  //# sourceMappingURL=identities.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"identities.d.mts","sourceRoot":"","sources":["../../src/resources/identities/identities.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,SAAS;OACd,EAAE,eAAe,EAAE,iBAAiB,EAAE,MAAM,EAAE;OAC9C,KAAK,SAAS;OACd,EAAE,eAAe,EAAE,iBAAiB,EAAE,MAAM,EAAE;OAC9C,KAAK,aAAa;OAClB,EAAE,UAAU,EAAE,oBAAoB,EAAE,sBAAsB,EAAE;OAC5D,EAAE,UAAU,EAAE;OAEd,EAAE,cAAc,EAAE;AAGzB,qBAAa,UAAW,SAAQ,WAAW;IACzC,UAAU,EAAE,aAAa,CAAC,UAAU,CAA8C;IAClF,MAAM,EAAE,SAAS,CAAC,MAAM,CAAsC;IAC9D,MAAM,EAAE,SAAS,CAAC,MAAM,CAAsC;IAE9D;;OAEG;IACH,MAAM,CAAC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,CAAC,gBAAgB,CAAC,GAAG,IAAI,CAAC;IAE5C;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAMD,MAAM,CAAC,OAAO,WAAW,UAAU,CAAC;IAClC,OAAO,EACL,KAAK,QAAQ,IAAI,QAAQ,EACzB,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,YAAY,IAAI,YAAY,EACjC,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,oBAAoB,IAAI,oBAAoB,GAClD,CAAC;IAEF,OAAO,EACL,UAAU,IAAI,UAAU,EACxB,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,oBAAoB,IAAI,oBAAoB,GAClD,CAAC;IAEF,OAAO,EACL,MAAM,IAAI,MAAM,EAChB,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,eAAe,IAAI,eAAe,GACxC,CAAC;IAEF,OAAO,EACL,MAAM,IAAI,MAAM,EAChB,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,eAAe,IAAI,eAAe,GACxC,CAAC;CACH"}
1
+ {"version":3,"file":"identities.d.mts","sourceRoot":"","sources":["../../src/resources/identities/identities.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,SAAS;OACd,EAAE,eAAe,EAAE,MAAM,EAAE;OAC3B,KAAK,SAAS;OACd,EAAE,eAAe,EAAE,MAAM,EAAE;OAC3B,KAAK,aAAa;OAClB,EAAE,UAAU,EAAE,oBAAoB,EAAE,sBAAsB,EAAE;OAC5D,EAAE,UAAU,EAAE;OACd,EAAE,SAAS,EAAE,KAAK,eAAe,EAAE,WAAW,EAAE;OAChD,EAAE,cAAc,EAAE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mB,EAC/C,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,oBAAoB,IAAI,oBAAoB,GAClD,CAAC;IAEF,OAAO,EACL,UAAU,IAAI,UAAU,EACxB,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,oBAAoB,IAAI,oBAAoB,GAClD,CAAC;IAEF,OAAO,EAAE,MAAM,IAAI,MAAM,EAAE,KAAK,eAAe,IAAI,eAAe,EAAE,CAAC;IAErE,OAAO,EAAE,MAAM,IAAI,MAAM,EAAE,KAAK,eAAe,IAAI,eAAe,EAAE,CAAC;CACtE"}
@@ -1,11 +1,12 @@
1
1
  import { APIResource } from "../../core/resource.js";
2
2
  import * as AgentsAPI from "./agents.js";
3
- import { AgentListParams, AgentListResponse, Agents } from "./agents.js";
3
+ import { AgentListParams, Agents } from "./agents.js";
4
4
  import * as BlocksAPI from "./blocks.js";
5
- import { BlockListParams, BlockListResponse, Blocks } from "./blocks.js";
5
+ import { BlockListParams, Blocks } from "./blocks.js";
6
6
  import * as PropertiesAPI from "./properties.js";
7
7
  import { Properties, PropertyUpsertParams, PropertyUpsertResponse } from "./properties.js";
8
8
  import { APIPromise } from "../../core/api-promise.js";
9
+ import { ArrayPage, type ArrayPageParams, PagePromise } from "../../core/pagination.js";
9
10
  import { RequestOptions } from "../../internal/request-options.js";
10
11
  export declare class Identities extends APIResource {
11
12
  properties: PropertiesAPI.Properties;
@@ -14,33 +15,34 @@ export declare class Identities extends APIResource {
14
15
  /**
15
16
  * Create Identity
16
17
  */
17
- create(params: IdentityCreateParams, options?: RequestOptions): APIPromise<Identity>;
18
+ create(body: IdentityCreateParams, options?: RequestOptions): APIPromise<Identity>;
18
19
  /**
19
20
  * Retrieve Identity
20
21
  */
21
22
  retrieve(identityID: string, options?: RequestOptions): APIPromise<Identity>;
22
23
  /**
23
- * Modify Identity
24
+ * Update Identity
24
25
  */
25
26
  update(identityID: string, body: IdentityUpdateParams, options?: RequestOptions): APIPromise<Identity>;
26
27
  /**
27
28
  * Get a list of all identities in the database
28
29
  */
29
- list(query?: IdentityListParams | null | undefined, options?: RequestOptions): APIPromise<IdentityListResponse>;
30
+ list(query?: IdentityListParams | null | undefined, options?: RequestOptions): PagePromise<IdentitiesArrayPage, Identity>;
30
31
  /**
31
32
  * Delete an identity by its identifier key
32
33
  */
33
34
  delete(identityID: string, options?: RequestOptions): APIPromise<unknown>;
34
- /**
35
- * Get count of all identities for a user
36
- */
37
- count(options?: RequestOptions): APIPromise<IdentityCountResponse>;
38
35
  /**
39
36
  * Upsert Identity
40
37
  */
41
- upsert(params: IdentityUpsertParams, options?: RequestOptions): APIPromise<Identity>;
38
+ upsert(body: IdentityUpsertParams, options?: RequestOptions): APIPromise<Identity>;
42
39
  }
40
+ export type IdentitiesArrayPage = ArrayPage<Identity>;
43
41
  export interface Identity {
42
+ /**
43
+ * The human-friendly ID of the Identity
44
+ */
45
+ id: string;
44
46
  /**
45
47
  * @deprecated The IDs of the agents associated with the identity.
46
48
  */
@@ -61,10 +63,6 @@ export interface Identity {
61
63
  * The name of the identity.
62
64
  */
63
65
  name: string;
64
- /**
65
- * The human-friendly ID of the Identity
66
- */
67
- id?: string;
68
66
  /**
69
67
  * The project id of the identity, if applicable.
70
68
  */
@@ -97,42 +95,36 @@ export interface IdentityProperty {
97
95
  * Enum to represent the type of the identity.
98
96
  */
99
97
  export type IdentityType = 'org' | 'user' | 'other';
100
- export type IdentityListResponse = Array<Identity>;
101
98
  export type IdentityDeleteResponse = unknown;
102
- export type IdentityCountResponse = number;
103
99
  export interface IdentityCreateParams {
104
100
  /**
105
- * Body param: External, user-generated identifier key of the identity.
101
+ * External, user-generated identifier key of the identity.
106
102
  */
107
103
  identifier_key: string;
108
104
  /**
109
- * Body param: The type of the identity.
105
+ * The type of the identity.
110
106
  */
111
107
  identity_type: IdentityType;
112
108
  /**
113
- * Body param: The name of the identity.
109
+ * The name of the identity.
114
110
  */
115
111
  name: string;
116
112
  /**
117
- * @deprecated Body param: The agent ids that are associated with the identity.
113
+ * @deprecated The agent ids that are associated with the identity.
118
114
  */
119
115
  agent_ids?: Array<string> | null;
120
116
  /**
121
- * @deprecated Body param: The IDs of the blocks associated with the identity.
117
+ * @deprecated The IDs of the blocks associated with the identity.
122
118
  */
123
119
  block_ids?: Array<string> | null;
124
120
  /**
125
- * Body param: The project id of the identity, if applicable.
121
+ * The project id of the identity, if applicable.
126
122
  */
127
123
  project_id?: string | null;
128
124
  /**
129
- * Body param: List of properties associated with the identity.
125
+ * List of properties associated with the identity.
130
126
  */
131
127
  properties?: Array<IdentityProperty> | null;
132
- /**
133
- * Header param: The project slug to associate with the identity (cloud only).
134
- */
135
- 'X-Project'?: string;
136
128
  }
137
129
  export interface IdentityUpdateParams {
138
130
  /**
@@ -160,76 +152,49 @@ export interface IdentityUpdateParams {
160
152
  */
161
153
  properties?: Array<IdentityProperty> | null;
162
154
  }
163
- export interface IdentityListParams {
164
- /**
165
- * Identity ID cursor for pagination. Returns identities that come after this
166
- * identity ID in the specified sort order
167
- */
168
- after?: string | null;
169
- /**
170
- * Identity ID cursor for pagination. Returns identities that come before this
171
- * identity ID in the specified sort order
172
- */
173
- before?: string | null;
155
+ export interface IdentityListParams extends ArrayPageParams {
174
156
  identifier_key?: string | null;
175
157
  /**
176
158
  * Enum to represent the type of the identity.
177
159
  */
178
160
  identity_type?: IdentityType | null;
179
- /**
180
- * Maximum number of identities to return
181
- */
182
- limit?: number | null;
183
161
  name?: string | null;
184
- /**
185
- * Sort order for identities by creation time. 'asc' for oldest first, 'desc' for
186
- * newest first
187
- */
188
- order?: 'asc' | 'desc';
189
- /**
190
- * Field to sort by
191
- */
192
- order_by?: 'created_at';
193
162
  project_id?: string | null;
194
163
  }
195
164
  export interface IdentityUpsertParams {
196
165
  /**
197
- * Body param: External, user-generated identifier key of the identity.
166
+ * External, user-generated identifier key of the identity.
198
167
  */
199
168
  identifier_key: string;
200
169
  /**
201
- * Body param: The type of the identity.
170
+ * The type of the identity.
202
171
  */
203
172
  identity_type: IdentityType;
204
173
  /**
205
- * Body param: The name of the identity.
174
+ * The name of the identity.
206
175
  */
207
176
  name: string;
208
177
  /**
209
- * @deprecated Body param: The agent ids that are associated with the identity.
178
+ * @deprecated The agent ids that are associated with the identity.
210
179
  */
211
180
  agent_ids?: Array<string> | null;
212
181
  /**
213
- * @deprecated Body param: The IDs of the blocks associated with the identity.
182
+ * @deprecated The IDs of the blocks associated with the identity.
214
183
  */
215
184
  block_ids?: Array<string> | null;
216
185
  /**
217
- * Body param: The project id of the identity, if applicable.
186
+ * The project id of the identity, if applicable.
218
187
  */
219
188
  project_id?: string | null;
220
189
  /**
221
- * Body param: List of properties associated with the identity.
190
+ * List of properties associated with the identity.
222
191
  */
223
192
  properties?: Array<IdentityProperty> | null;
224
- /**
225
- * Header param: The project slug to associate with the identity (cloud only).
226
- */
227
- 'X-Project'?: string;
228
193
  }
229
194
  export declare namespace Identities {
230
- export { type Identity as Identity, type IdentityProperty as IdentityProperty, type IdentityType as IdentityType, type IdentityListResponse as IdentityListResponse, type IdentityDeleteResponse as IdentityDeleteResponse, type IdentityCountResponse as IdentityCountResponse, type IdentityCreateParams as IdentityCreateParams, type IdentityUpdateParams as IdentityUpdateParams, type IdentityListParams as IdentityListParams, type IdentityUpsertParams as IdentityUpsertParams, };
195
+ export { type Identity as Identity, type IdentityProperty as IdentityProperty, type IdentityType as IdentityType, type IdentityDeleteResponse as IdentityDeleteResponse, type IdentitiesArrayPage as IdentitiesArrayPage, type IdentityCreateParams as IdentityCreateParams, type IdentityUpdateParams as IdentityUpdateParams, type IdentityListParams as IdentityListParams, type IdentityUpsertParams as IdentityUpsertParams, };
231
196
  export { Properties as Properties, type PropertyUpsertResponse as PropertyUpsertResponse, type PropertyUpsertParams as PropertyUpsertParams, };
232
- export { Agents as Agents, type AgentListResponse as AgentListResponse, type AgentListParams as AgentListParams, };
233
- export { Blocks as Blocks, type BlockListResponse as BlockListResponse, type BlockListParams as BlockListParams, };
197
+ export { Agents as Agents, type AgentListParams as AgentListParams };
198
+ export { Blocks as Blocks, type BlockListParams as BlockListParams };
234
199
  }
235
200
  //# sourceMappingURL=identities.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"identities.d.ts","sourceRoot":"","sources":["../../src/resources/identities/identities.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,SAAS;OACd,EAAE,eAAe,EAAE,iBAAiB,EAAE,MAAM,EAAE;OAC9C,KAAK,SAAS;OACd,EAAE,eAAe,EAAE,iBAAiB,EAAE,MAAM,EAAE;OAC9C,KAAK,aAAa;OAClB,EAAE,UAAU,EAAE,oBAAoB,EAAE,sBAAsB,EAAE;OAC5D,EAAE,UAAU,EAAE;OAEd,EAAE,cAAc,EAAE;AAGzB,qBAAa,UAAW,SAAQ,WAAW;IACzC,UAAU,EAAE,aAAa,CAAC,UAAU,CAA8C;IAClF,MAAM,EAAE,SAAS,CAAC,MAAM,CAAsC;IAC9D,MAAM,EAAE,SAAS,CAAC,MAAM,CAAsC;IAE9D;;OAEG;IACH,MAAM,CAAC,MAAM,EAAE,oBAAoB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,QAAQ,CAAC;IAYpF;;OAEG;IACH,QAAQ,CAAC,UAAU,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,QAAQ,CAAC;IAI5E;;OAEG;IACH,MAAM,CAAC,UAAU,EAAE,MAAM,EAAE,IAAI,EAAE,oBAAoB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,QAAQ,CAAC;IAItG;;OAEG;IACH,IAAI,CACF,KAAK,GAAE,kBAAkB,GAAG,IAAI,GAAG,SAAc,EACjD,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,oBAAoB,CAAC;IAInC;;OAEG;IACH,MAAM,CAAC,UAAU,EAAE,MA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("./blocks.js");
11
11
  const PropertiesAPI = tslib_1.__importStar(require("./properties.js"));
12
12
  const properties_1 = require("./properties.js");
13
- const headers_1 = require("../../internal/headers.js");
13
+ const pagination_1 = require("../../core/pagination.js");
14
14
  const path_1 = require("../../internal/utils/path.js");
15
15
  class Identities extends resource_1.APIResource {
16
16
  constructor() {
@@ -22,16 +22,8 @@ class Identities extends resource_1.APIResource {
22
22
  /**
23
23
  * Create Identity
24
24
  */
25
- create(params, options) {
26
- const { 'X-Project': xProject, ...body } = params;
27
- return this._client.post('/v1/identities/', {
28
- body,
29
- ...options,
30
- headers: (0, headers_1.buildHeaders)([
31
- { ...(xProject != null ? { 'X-Project': xProject } : undefined) },
32
- options?.headers,
33
- ]),
34
- });
25
+ create(body, options) {
26
+ return this._client.post('/v1/identities/', { body, ...options });
35
27
  }
36
28
  /**
37
29
  * Retrieve Identity
@@ -40,7 +32,7 @@ class Identities extends resource_1.APIResource {
40
32
  return this._client.get((0, path_1.path) `/v1/identities/${identityID}`, options);
41
33
  }
42
34
  /**
43
- * Modify Identity
35
+ * Update Identity
44
36
  */
45
37
  update(identityID, body, options) {
46
38
  return this._client.patch((0, path_1.path) `/v1/identities/${identityID}`, { body, ...options });
@@ -49,7 +41,7 @@ class Identities extends resource_1.APIResource {
49
41
  * Get a list of all identities in the database
50
42
  */
51
43
  list(query = {}, options) {
52
- return this._client.get('/v1/identities/', { query, ...options });
44
+ return this._client.getAPIList('/v1/identities/', (pagination_1.ArrayPage), { query, ...options });
53
45
  }
54
46
  /**
55
47
  * Delete an identity by its identifier key
@@ -57,25 +49,11 @@ class Identities extends resource_1.APIResource {
57
49
  delete(identityID, options) {
58
50
  return this._client.delete((0, path_1.path) `/v1/identities/${identityID}`, options);
59
51
  }
60
- /**
61
- * Get count of all identities for a user
62
- */
63
- count(options) {
64
- return this._client.get('/v1/identities/count', options);
65
- }
66
52
  /**
67
53
  * Upsert Identity
68
54
  */
69
- upsert(params, options) {
70
- const { 'X-Project': xProject, ...body } = params;
71
- return this._client.put('/v1/identities/', {
72
- body,
73
- ...options,
74
- headers: (0, headers_1.buildHeaders)([
75
- { ...(xProject != null ? { 'X-Project': xProject } : undefined) },
76
- options?.headers,
77
- ]),
78
- });
55
+ upsert(body, options) {
56
+ return this._client.put('/v1/identities/', { body, ...options });
79
57
  }
80
58
  }
81
59
  exports.Identities = Identities;
@@ -1 +1 @@
1
- {"version":3,"file":"identities.js","sourceRoot":"","sources":["../../src/resources/identities/identities.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,qDAAkD;AAClD,+DAAsC;AACtC,wCAAsE;AACtE,+DAAsC;AACtC,wCAAsE;AACtE,uEAA8C;AAC9C,gDAAwF;AAExF,uDAAsD;AAEtD,uDAAiD;AAEjD,MAAa,UAAW,SAAQ,sBAAW;IAA3C;;QACE,eAAU,GAA6B,IAAI,aAAa,CAAC,UAAU,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAClF,WAAM,GAAqB,IAAI,SAAS,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAC9D,WAAM,GAAqB,IAAI,SAAS,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAqEhE,CAAC;IAnEC;;OAEG;IACH,MAAM,CAAC,MAA4B,EAAE,OAAwB;QAC3D,MAAM,EAAE,WAAW,EAAE,QAAQ,EAAE,GAAG,IAAI,EAAE,GAAG,MAAM,CAAC;QAClD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,iBAAiB,EAAE;YAC1C,IAAI;YACJ,GAAG,OAAO;YACV,OAAO,EAAE,IAAA,sBAAY,EAAC;gBACpB,EAAE,GAAG,CAAC,QAAQ,IAAI,IAAI,CAAC,CAAC,CAAC,EAAE,WAAW,EAAE,QAAQ,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC,EAAE;gBACjE,OAAO,EAAE,OAAO;aACjB,CAAC;SACH,CAAC,CAAC;IACL,CAAC;IAED;;OAEG;IACH,Q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AU,EAAE,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACtF,CAAC;IAED;;OAEG;IACH,IAAI,CACF,QAA+C,EAAE,EACjD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,iBAAiB,EAAE,CAAA,sBAAmB,CAAA,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAChG,CAAC;IAED;;OAEG;IACH,MAAM,CAAC,UAAkB,EAAE,OAAwB;QACjD,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAA,WAAI,EAAA,kBAAkB,UAAU,EAAE,EAAE,OAAO,CAAC,CAAC;IAC1E,CAAC;IAED;;OAEG;IACH,MAAM,CAAC,IAA0B,EAAE,OAAwB;QACzD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,iBAAiB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACnE,CAAC;CACF;AAjDD,gCAiDC;AAgMD,UAAU,CAAC,UAAU,GAAG,uBAAU,CAAC;AACnC,UAAU,CAAC,MAAM,GAAG,eAAM,CAAC;AAC3B,UAAU,CAAC,MAAM,GAAG,eAAM,CAAC"}
@@ -6,7 +6,7 @@ import * as BlocksAPI from "./blocks.mjs";
6
6
  import { Blocks } from "./blocks.mjs";
7
7
  import * as PropertiesAPI from "./properties.mjs";
8
8
  import { Properties } from "./properties.mjs";
9
- import { buildHeaders } from "../../internal/headers.mjs";
9
+ import { ArrayPage } from "../../core/pagination.mjs";
10
10
  import { path } from "../../internal/utils/path.mjs";
11
11
  export class Identities extends APIResource {
12
12
  constructor() {
@@ -18,16 +18,8 @@ export class Identities extends APIResource {
18
18
  /**
19
19
  * Create Identity
20
20
  */
21
- create(params, options) {
22
- const { 'X-Project': xProject, ...body } = params;
23
- return this._client.post('/v1/identities/', {
24
- body,
25
- ...options,
26
- headers: buildHeaders([
27
- { ...(xProject != null ? { 'X-Project': xProject } : undefined) },
28
- options?.headers,
29
- ]),
30
- });
21
+ create(body, options) {
22
+ return this._client.post('/v1/identities/', { body, ...options });
31
23
  }
32
24
  /**
33
25
  * Retrieve Identity
@@ -36,7 +28,7 @@ export class Identities extends APIResource {
36
28
  return this._client.get(path `/v1/identities/${identityID}`, options);
37
29
  }
38
30
  /**
39
- * Modify Identity
31
+ * Update Identity
40
32
  */
41
33
  update(identityID, body, options) {
42
34
  return this._client.patch(path `/v1/identities/${identityID}`, { body, ...options });
@@ -45,7 +37,7 @@ export class Identities extends APIResource {
45
37
  * Get a list of all identities in the database
46
38
  */
47
39
  list(query = {}, options) {
48
- return this._client.get('/v1/identities/', { query, ...options });
40
+ return this._client.getAPIList('/v1/identities/', (ArrayPage), { query, ...options });
49
41
  }
50
42
  /**
51
43
  * Delete an identity by its identifier key
@@ -53,25 +45,11 @@ export class Identities extends APIResource {
53
45
  delete(identityID, options) {
54
46
  return this._client.delete(path `/v1/identities/${identityID}`, options);
55
47
  }
56
- /**
57
- * Get count of all identities for a user
58
- */
59
- count(options) {
60
- return this._client.get('/v1/identities/count', options);
61
- }
62
48
  /**
63
49
  * Upsert Identity
64
50
  */
65
- upsert(params, options) {
66
- const { 'X-Project': xProject, ...body } = params;
67
- return this._client.put('/v1/identities/', {
68
- body,
69
- ...options,
70
- headers: buildHeaders([
71
- { ...(xProject != null ? { 'X-Project': xProject } : undefined) },
72
- options?.headers,
73
- ]),
74
- });
51
+ upsert(body, options) {
52
+ return this._client.put('/v1/identities/', { body, ...options });
75
53
  }
76
54
  }
77
55
  Identities.Properties = Properties;
@@ -1 +1 @@
1
- {"version":3,"file":"identities.mjs","sourceRoot":"","sources":["../../src/resources/identities/identities.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OACf,KAAK,SAAS;OACd,EAAsC,MAAM,EAAE;OAC9C,KAAK,SAAS;OACd,EAAsC,MAAM,EAAE;OAC9C,KAAK,aAAa;OAClB,EAAE,U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,CAAA,kBAAkB,UAAU,EAAE,EAAE,OAAO,CAAC,CAAC;IAC1E,CAAC;IAED;;OAEG;IACH,MAAM,CAAC,IAA0B,EAAE,OAAwB;QACzD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,iBAAiB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACnE,CAAC;CACF;AAgMD,UAAU,CAAC,UAAU,GAAG,UAAU,CAAC;AACnC,UAAU,CAAC,MAAM,GAAG,MAAM,CAAC;AAC3B,UAAU,CAAC,MAAM,GAAG,MAAM,CAAC"}
@@ -1,5 +1,5 @@
1
- export { Agents, type AgentListResponse, type AgentListParams } from "./agents.mjs";
2
- export { Blocks, type BlockListResponse, type BlockListParams } from "./blocks.mjs";
3
- export { Identities, type Identity, type IdentityProperty, type IdentityType, type IdentityListResponse, type IdentityDeleteResponse, type IdentityCountResponse, type IdentityCreateParams, type IdentityUpdateParams, type IdentityListParams, type IdentityUpsertParams, } from "./identities.mjs";
1
+ export { Agents, type AgentListParams } from "./agents.mjs";
2
+ export { Blocks, type BlockListParams } from "./blocks.mjs";
3
+ export { Identities, type Identity, type IdentityProperty, type IdentityType, type IdentityDeleteResponse, type IdentityCreateParams, type IdentityUpdateParams, type IdentityListParams, type IdentityUpsertParams, type IdentitiesArrayPage, } from "./identities.mjs";
4
4
  export { Properties, type PropertyUpsertResponse, type PropertyUpsertParams } from "./properties.mjs";
5
5
  //# sourceMappingURL=index.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../src/resources/identities/index.ts"],"names":[],"mappings":"OAEO,EAAE,MAAM,EAAE,KAAK,iBAAiB,EAAE,KAAK,eAAe,EAAE;OACxD,EAAE,MAAM,EAAE,KAAK,iBAAiB,EAAE,KAAK,eAAe,EAAE;OACxD,EACL,UAAU,EACV,KAAK,QAAQ,EACb,KAAK,gBAAgB,EACrB,KAAK,YAAY,EACjB,KAAK,oBAAoB,EACzB,KAAK,sBAAsB,EAC3B,KAAK,qBAAqB,EAC1B,KAAK,oBAAoB,EACzB,KAAK,oBAAoB,EACzB,KAAK,kBAAkB,EACvB,KAAK,oBAAoB,GAC1B;OACM,EAAE,UAAU,EAAE,KAAK,sBAAsB,EAAE,KAAK,oBAAoB,EAAE"}
1
+ {"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../src/resources/identities/index.ts"],"names":[],"mappings":"OAEO,EAAE,MAAM,EAAE,KAAK,eAAe,EAAE;OAChC,EAAE,MAAM,EAAE,KAAK,eAAe,EAAE;OAChC,EACL,UAAU,EACV,KAAK,QAAQ,EACb,KAAK,gBAAgB,EACrB,KAAK,YAAY,EACjB,KAAK,sBAAsB,EAC3B,KAAK,oBAAoB,EACzB,KAAK,oBAAoB,EACzB,KAAK,kBAAkB,EACvB,KAAK,oBAAoB,EACzB,KAAK,mBAAmB,GACzB;OACM,EAAE,UAAU,EAAE,KAAK,sBAAsB,EAAE,KAAK,oBAAoB,EAAE"}