@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,35 +1,108 @@
1
1
  import { APIResource } from "../../core/resource.mjs";
2
- import * as BlocksAPI from "../agents/blocks.mjs";
3
2
  import * as AgentsAPI from "./agents.mjs";
4
- import { AgentListParams, AgentListResponse, Agents } from "./agents.mjs";
3
+ import { AgentListParams, Agents } from "./agents.mjs";
5
4
  import { APIPromise } from "../../core/api-promise.mjs";
5
+ import { ArrayPage, type ArrayPageParams, PagePromise } from "../../core/pagination.mjs";
6
6
  import { RequestOptions } from "../../internal/request-options.mjs";
7
7
  export declare class Blocks extends APIResource {
8
8
  agents: AgentsAPI.Agents;
9
9
  /**
10
10
  * Create Block
11
11
  */
12
- create(body: BlockCreateParams, options?: RequestOptions): APIPromise<BlocksAPI.Block>;
12
+ create(body: BlockCreateParams, options?: RequestOptions): APIPromise<BlockResponse>;
13
13
  /**
14
14
  * Retrieve Block
15
15
  */
16
- retrieve(blockID: string, options?: RequestOptions): APIPromise<BlocksAPI.Block>;
16
+ retrieve(blockID: string, options?: RequestOptions): APIPromise<BlockResponse>;
17
17
  /**
18
- * Modify Block
18
+ * Update Block
19
19
  */
20
- update(blockID: string, body: BlockUpdateParams, options?: RequestOptions): APIPromise<BlocksAPI.Block>;
20
+ update(blockID: string, body: BlockUpdateParams, options?: RequestOptions): APIPromise<BlockResponse>;
21
21
  /**
22
22
  * List Blocks
23
23
  */
24
- list(query?: BlockListParams | null | undefined, options?: RequestOptions): APIPromise<BlockListResponse>;
24
+ list(query?: BlockListParams | null | undefined, options?: RequestOptions): PagePromise<BlockResponsesArrayPage, BlockResponse>;
25
25
  /**
26
26
  * Delete Block
27
27
  */
28
28
  delete(blockID: string, options?: RequestOptions): APIPromise<unknown>;
29
+ }
30
+ export type BlockResponsesArrayPage = ArrayPage<BlockResponse>;
31
+ export interface BlockResponse {
32
+ /**
33
+ * The id of the block.
34
+ */
35
+ id: string;
36
+ /**
37
+ * Value of the block.
38
+ */
39
+ value: string;
40
+ /**
41
+ * @deprecated (Deprecated) The base template id of the block.
42
+ */
43
+ base_template_id?: string | null;
44
+ /**
45
+ * The id of the user that made this Block.
46
+ */
47
+ created_by_id?: string | null;
29
48
  /**
30
- * Count all blocks created by a user.
49
+ * @deprecated (Deprecated) The id of the deployment.
31
50
  */
32
- count(options?: RequestOptions): APIPromise<BlockCountResponse>;
51
+ deployment_id?: string | null;
52
+ /**
53
+ * Description of the block.
54
+ */
55
+ description?: string | null;
56
+ /**
57
+ * @deprecated (Deprecated) The id of the entity within the template.
58
+ */
59
+ entity_id?: string | null;
60
+ /**
61
+ * @deprecated (Deprecated) If set to True, the block will be hidden.
62
+ */
63
+ hidden?: boolean | null;
64
+ /**
65
+ * Whether the block is a template (e.g. saved human/persona options).
66
+ */
67
+ is_template?: boolean;
68
+ /**
69
+ * Label of the block (e.g. 'human', 'persona') in the context window.
70
+ */
71
+ label?: string | null;
72
+ /**
73
+ * The id of the user that last updated this Block.
74
+ */
75
+ last_updated_by_id?: string | null;
76
+ /**
77
+ * Character limit of the block.
78
+ */
79
+ limit?: number;
80
+ /**
81
+ * Metadata of the block.
82
+ */
83
+ metadata?: {
84
+ [key: string]: unknown;
85
+ } | null;
86
+ /**
87
+ * @deprecated (Deprecated) Preserve the block on template migration.
88
+ */
89
+ preserve_on_migration?: boolean | null;
90
+ /**
91
+ * The associated project id.
92
+ */
93
+ project_id?: string | null;
94
+ /**
95
+ * @deprecated (Deprecated) Whether the agent has read-only access to the block.
96
+ */
97
+ read_only?: boolean;
98
+ /**
99
+ * @deprecated (Deprecated) The id of the template.
100
+ */
101
+ template_id?: string | null;
102
+ /**
103
+ * @deprecated (Deprecated) The name of the block template (if it is a template).
104
+ */
105
+ template_name?: string | null;
33
106
  }
34
107
  /**
35
108
  * Create a block
@@ -74,10 +147,6 @@ export interface CreateBlock {
74
147
  metadata?: {
75
148
  [key: string]: unknown;
76
149
  } | null;
77
- /**
78
- * The id of the template.
79
- */
80
- name?: string | null;
81
150
  /**
82
151
  * Preserve the block on template migration.
83
152
  */
@@ -90,10 +159,16 @@ export interface CreateBlock {
90
159
  * Whether the agent has read-only access to the block.
91
160
  */
92
161
  read_only?: boolean;
162
+ /**
163
+ * The id of the template.
164
+ */
165
+ template_id?: string | null;
166
+ /**
167
+ * Name of the block if it is a template.
168
+ */
169
+ template_name?: string | null;
93
170
  }
94
- export type BlockListResponse = Array<BlocksAPI.Block>;
95
171
  export type BlockDeleteResponse = unknown;
96
- export type BlockCountResponse = number;
97
172
  export interface BlockCreateParams {
98
173
  /**
99
174
  * Label of the block.
@@ -134,10 +209,6 @@ export interface BlockCreateParams {
134
209
  metadata?: {
135
210
  [key: string]: unknown;
136
211
  } | null;
137
- /**
138
- * The id of the template.
139
- */
140
- name?: string | null;
141
212
  /**
142
213
  * Preserve the block on template migration.
143
214
  */
@@ -150,6 +221,14 @@ export interface BlockCreateParams {
150
221
  * Whether the agent has read-only access to the block.
151
222
  */
152
223
  read_only?: boolean;
224
+ /**
225
+ * The id of the template.
226
+ */
227
+ template_id?: string | null;
228
+ /**
229
+ * Name of the block if it is a template.
230
+ */
231
+ template_name?: string | null;
153
232
  }
154
233
  export interface BlockUpdateParams {
155
234
  /**
@@ -190,10 +269,6 @@ export interface BlockUpdateParams {
190
269
  metadata?: {
191
270
  [key: string]: unknown;
192
271
  } | null;
193
- /**
194
- * The id of the template.
195
- */
196
- name?: string | null;
197
272
  /**
198
273
  * Preserve the block on template migration.
199
274
  */
@@ -207,21 +282,19 @@ export interface BlockUpdateParams {
207
282
  */
208
283
  read_only?: boolean;
209
284
  /**
210
- * Value of the block.
285
+ * The id of the template.
211
286
  */
212
- value?: string | null;
213
- }
214
- export interface BlockListParams {
287
+ template_id?: string | null;
215
288
  /**
216
- * Block ID cursor for pagination. Returns blocks that come after this block ID in
217
- * the specified sort order
289
+ * Name of the block if it is a template.
218
290
  */
219
- after?: string | null;
291
+ template_name?: string | null;
220
292
  /**
221
- * Block ID cursor for pagination. Returns blocks that come before this block ID in
222
- * the specified sort order
293
+ * Value of the block.
223
294
  */
224
- before?: string | null;
295
+ value?: string | null;
296
+ }
297
+ export interface BlockListParams extends ArrayPageParams {
225
298
  /**
226
299
  * Filter blocks by the exact number of connected agents. If provided, returns
227
300
  * blocks that have exactly this number of connected agents.
@@ -259,23 +332,10 @@ export interface BlockListParams {
259
332
  * is a full-text search on labels.
260
333
  */
261
334
  label_search?: string | null;
262
- /**
263
- * Number of blocks to return
264
- */
265
- limit?: number | null;
266
335
  /**
267
336
  * Name of the block
268
337
  */
269
338
  name?: string | null;
270
- /**
271
- * Sort order for blocks by creation time. 'asc' for oldest first, 'desc' for
272
- * newest first
273
- */
274
- order?: 'asc' | 'desc';
275
- /**
276
- * Field to sort by
277
- */
278
- order_by?: 'created_at';
279
339
  /**
280
340
  * Search blocks by project id
281
341
  */
@@ -290,7 +350,7 @@ export interface BlockListParams {
290
350
  value_search?: string | null;
291
351
  }
292
352
  export declare namespace Blocks {
293
- export { type CreateBlock as CreateBlock, type BlockListResponse as BlockListResponse, type BlockDeleteResponse as BlockDeleteResponse, type BlockCountResponse as BlockCountResponse, type BlockCreateParams as BlockCreateParams, type BlockUpdateParams as BlockUpdateParams, type BlockListParams as BlockListParams, };
294
- export { Agents as Agents, type AgentListResponse as AgentListResponse, type AgentListParams as AgentListParams, };
353
+ export { type BlockResponse as BlockResponse, type CreateBlock as CreateBlock, type BlockDeleteResponse as BlockDeleteResponse, type BlockResponsesArrayPage as BlockResponsesArrayPage, type BlockCreateParams as BlockCreateParams, type BlockUpdateParams as BlockUpdateParams, type BlockListParams as BlockListParams, };
354
+ export { Agents as Agents, type AgentListParams as AgentListParams };
295
355
  }
296
356
  //# sourceMappingURL=blocks.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"blocks.d.mts","sourceRoot":"","sources":["../../src/resources/blocks/blocks.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,SAAS;OACd,KAAK,SAAS;OACd,EAAE,eAAe,EAAE,iBAAiB,EAAE,MAAM,EAAE;OAC9C,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAGzB,qBAAa,MAAO,SAAQ,WAAW;IACrC,MAAM,EAAE,SAAS,CAAC,MAAM,CAAsC;IAE9D;;OAEG;IACH,MAAM,CAAC,IAAI,EAAE,iBAAiB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,SAAS,CAAC,KAAK,CAAC;IAItF;;OAEG;IACH,QAAQ,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,G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1
  import { APIResource } from "../../core/resource.js";
2
- import * as BlocksAPI from "../agents/blocks.js";
3
2
  import * as AgentsAPI from "./agents.js";
4
- import { AgentListParams, AgentListResponse, Agents } from "./agents.js";
3
+ import { AgentListParams, Agents } from "./agents.js";
5
4
  import { APIPromise } from "../../core/api-promise.js";
5
+ import { ArrayPage, type ArrayPageParams, PagePromise } from "../../core/pagination.js";
6
6
  import { RequestOptions } from "../../internal/request-options.js";
7
7
  export declare class Blocks extends APIResource {
8
8
  agents: AgentsAPI.Agents;
9
9
  /**
10
10
  * Create Block
11
11
  */
12
- create(body: BlockCreateParams, options?: RequestOptions): APIPromise<BlocksAPI.Block>;
12
+ create(body: BlockCreateParams, options?: RequestOptions): APIPromise<BlockResponse>;
13
13
  /**
14
14
  * Retrieve Block
15
15
  */
16
- retrieve(blockID: string, options?: RequestOptions): APIPromise<BlocksAPI.Block>;
16
+ retrieve(blockID: string, options?: RequestOptions): APIPromise<BlockResponse>;
17
17
  /**
18
- * Modify Block
18
+ * Update Block
19
19
  */
20
- update(blockID: string, body: BlockUpdateParams, options?: RequestOptions): APIPromise<BlocksAPI.Block>;
20
+ update(blockID: string, body: BlockUpdateParams, options?: RequestOptions): APIPromise<BlockResponse>;
21
21
  /**
22
22
  * List Blocks
23
23
  */
24
- list(query?: BlockListParams | null | undefined, options?: RequestOptions): APIPromise<BlockListResponse>;
24
+ list(query?: BlockListParams | null | undefined, options?: RequestOptions): PagePromise<BlockResponsesArrayPage, BlockResponse>;
25
25
  /**
26
26
  * Delete Block
27
27
  */
28
28
  delete(blockID: string, options?: RequestOptions): APIPromise<unknown>;
29
+ }
30
+ export type BlockResponsesArrayPage = ArrayPage<BlockResponse>;
31
+ export interface BlockResponse {
32
+ /**
33
+ * The id of the block.
34
+ */
35
+ id: string;
36
+ /**
37
+ * Value of the block.
38
+ */
39
+ value: string;
40
+ /**
41
+ * @deprecated (Deprecated) The base template id of the block.
42
+ */
43
+ base_template_id?: string | null;
44
+ /**
45
+ * The id of the user that made this Block.
46
+ */
47
+ created_by_id?: string | null;
29
48
  /**
30
- * Count all blocks created by a user.
49
+ * @deprecated (Deprecated) The id of the deployment.
31
50
  */
32
- count(options?: RequestOptions): APIPromise<BlockCountResponse>;
51
+ deployment_id?: string | null;
52
+ /**
53
+ * Description of the block.
54
+ */
55
+ description?: string | null;
56
+ /**
57
+ * @deprecated (Deprecated) The id of the entity within the template.
58
+ */
59
+ entity_id?: string | null;
60
+ /**
61
+ * @deprecated (Deprecated) If set to True, the block will be hidden.
62
+ */
63
+ hidden?: boolean | null;
64
+ /**
65
+ * Whether the block is a template (e.g. saved human/persona options).
66
+ */
67
+ is_template?: boolean;
68
+ /**
69
+ * Label of the block (e.g. 'human', 'persona') in the context window.
70
+ */
71
+ label?: string | null;
72
+ /**
73
+ * The id of the user that last updated this Block.
74
+ */
75
+ last_updated_by_id?: string | null;
76
+ /**
77
+ * Character limit of the block.
78
+ */
79
+ limit?: number;
80
+ /**
81
+ * Metadata of the block.
82
+ */
83
+ metadata?: {
84
+ [key: string]: unknown;
85
+ } | null;
86
+ /**
87
+ * @deprecated (Deprecated) Preserve the block on template migration.
88
+ */
89
+ preserve_on_migration?: boolean | null;
90
+ /**
91
+ * The associated project id.
92
+ */
93
+ project_id?: string | null;
94
+ /**
95
+ * @deprecated (Deprecated) Whether the agent has read-only access to the block.
96
+ */
97
+ read_only?: boolean;
98
+ /**
99
+ * @deprecated (Deprecated) The id of the template.
100
+ */
101
+ template_id?: string | null;
102
+ /**
103
+ * @deprecated (Deprecated) The name of the block template (if it is a template).
104
+ */
105
+ template_name?: string | null;
33
106
  }
34
107
  /**
35
108
  * Create a block
@@ -74,10 +147,6 @@ export interface CreateBlock {
74
147
  metadata?: {
75
148
  [key: string]: unknown;
76
149
  } | null;
77
- /**
78
- * The id of the template.
79
- */
80
- name?: string | null;
81
150
  /**
82
151
  * Preserve the block on template migration.
83
152
  */
@@ -90,10 +159,16 @@ export interface CreateBlock {
90
159
  * Whether the agent has read-only access to the block.
91
160
  */
92
161
  read_only?: boolean;
162
+ /**
163
+ * The id of the template.
164
+ */
165
+ template_id?: string | null;
166
+ /**
167
+ * Name of the block if it is a template.
168
+ */
169
+ template_name?: string | null;
93
170
  }
94
- export type BlockListResponse = Array<BlocksAPI.Block>;
95
171
  export type BlockDeleteResponse = unknown;
96
- export type BlockCountResponse = number;
97
172
  export interface BlockCreateParams {
98
173
  /**
99
174
  * Label of the block.
@@ -134,10 +209,6 @@ export interface BlockCreateParams {
134
209
  metadata?: {
135
210
  [key: string]: unknown;
136
211
  } | null;
137
- /**
138
- * The id of the template.
139
- */
140
- name?: string | null;
141
212
  /**
142
213
  * Preserve the block on template migration.
143
214
  */
@@ -150,6 +221,14 @@ export interface BlockCreateParams {
150
221
  * Whether the agent has read-only access to the block.
151
222
  */
152
223
  read_only?: boolean;
224
+ /**
225
+ * The id of the template.
226
+ */
227
+ template_id?: string | null;
228
+ /**
229
+ * Name of the block if it is a template.
230
+ */
231
+ template_name?: string | null;
153
232
  }
154
233
  export interface BlockUpdateParams {
155
234
  /**
@@ -190,10 +269,6 @@ export interface BlockUpdateParams {
190
269
  metadata?: {
191
270
  [key: string]: unknown;
192
271
  } | null;
193
- /**
194
- * The id of the template.
195
- */
196
- name?: string | null;
197
272
  /**
198
273
  * Preserve the block on template migration.
199
274
  */
@@ -207,21 +282,19 @@ export interface BlockUpdateParams {
207
282
  */
208
283
  read_only?: boolean;
209
284
  /**
210
- * Value of the block.
285
+ * The id of the template.
211
286
  */
212
- value?: string | null;
213
- }
214
- export interface BlockListParams {
287
+ template_id?: string | null;
215
288
  /**
216
- * Block ID cursor for pagination. Returns blocks that come after this block ID in
217
- * the specified sort order
289
+ * Name of the block if it is a template.
218
290
  */
219
- after?: string | null;
291
+ template_name?: string | null;
220
292
  /**
221
- * Block ID cursor for pagination. Returns blocks that come before this block ID in
222
- * the specified sort order
293
+ * Value of the block.
223
294
  */
224
- before?: string | null;
295
+ value?: string | null;
296
+ }
297
+ export interface BlockListParams extends ArrayPageParams {
225
298
  /**
226
299
  * Filter blocks by the exact number of connected agents. If provided, returns
227
300
  * blocks that have exactly this number of connected agents.
@@ -259,23 +332,10 @@ export interface BlockListParams {
259
332
  * is a full-text search on labels.
260
333
  */
261
334
  label_search?: string | null;
262
- /**
263
- * Number of blocks to return
264
- */
265
- limit?: number | null;
266
335
  /**
267
336
  * Name of the block
268
337
  */
269
338
  name?: string | null;
270
- /**
271
- * Sort order for blocks by creation time. 'asc' for oldest first, 'desc' for
272
- * newest first
273
- */
274
- order?: 'asc' | 'desc';
275
- /**
276
- * Field to sort by
277
- */
278
- order_by?: 'created_at';
279
339
  /**
280
340
  * Search blocks by project id
281
341
  */
@@ -290,7 +350,7 @@ export interface BlockListParams {
290
350
  value_search?: string | null;
291
351
  }
292
352
  export declare namespace Blocks {
293
- export { type CreateBlock as CreateBlock, type BlockListResponse as BlockListResponse, type BlockDeleteResponse as BlockDeleteResponse, type BlockCountResponse as BlockCountResponse, type BlockCreateParams as BlockCreateParams, type BlockUpdateParams as BlockUpdateParams, type BlockListParams as BlockListParams, };
294
- export { Agents as Agents, type AgentListResponse as AgentListResponse, type AgentListParams as AgentListParams, };
353
+ export { type BlockResponse as BlockResponse, type CreateBlock as CreateBlock, type BlockDeleteResponse as BlockDeleteResponse, type BlockResponsesArrayPage as BlockResponsesArrayPage, type BlockCreateParams as BlockCreateParams, type BlockUpdateParams as BlockUpdateParams, type BlockListParams as BlockListParams, };
354
+ export { Agents as Agents, type AgentListParams as AgentListParams };
295
355
  }
296
356
  //# sourceMappingURL=blocks.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"blocks.d.ts","sourceRoot":"","sources":["../../src/resources/blocks/blocks.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,SAAS;OACd,KAAK,SAAS;OACd,EAAE,eAAe,EAAE,iBAAiB,EAAE,MAAM,EAAE;OAC9C,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAGzB,qBAAa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,mBAAmB,EAC/C,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,eAAe,IAAI,eAAe,GACxC,CAAC;IAEF,OAAO,EAAE,MAAM,IAAI,MAAM,EAAE,KAAK,eAAe,IAAI,eAAe,EAAE,CAAC;CACtE"}
@@ -6,6 +6,7 @@ const tslib_1 = require("../../internal/tslib.js");
6
6
  const resource_1 = require("../../core/resource.js");
7
7
  const AgentsAPI = tslib_1.__importStar(require("./agents.js"));
8
8
  const agents_1 = require("./agents.js");
9
+ const pagination_1 = require("../../core/pagination.js");
9
10
  const path_1 = require("../../internal/utils/path.js");
10
11
  class Blocks extends resource_1.APIResource {
11
12
  constructor() {
@@ -25,7 +26,7 @@ class Blocks extends resource_1.APIResource {
25
26
  return this._client.get((0, path_1.path) `/v1/blocks/${blockID}`, options);
26
27
  }
27
28
  /**
28
- * Modify Block
29
+ * Update Block
29
30
  */
30
31
  update(blockID, body, options) {
31
32
  return this._client.patch((0, path_1.path) `/v1/blocks/${blockID}`, { body, ...options });
@@ -34,7 +35,7 @@ class Blocks extends resource_1.APIResource {
34
35
  * List Blocks
35
36
  */
36
37
  list(query = {}, options) {
37
- return this._client.get('/v1/blocks/', { query, ...options });
38
+ return this._client.getAPIList('/v1/blocks/', (pagination_1.ArrayPage), { query, ...options });
38
39
  }
39
40
  /**
40
41
  * Delete Block
@@ -42,12 +43,6 @@ class Blocks extends resource_1.APIResource {
42
43
  delete(blockID, options) {
43
44
  return this._client.delete((0, path_1.path) `/v1/blocks/${blockID}`, options);
44
45
  }
45
- /**
46
- * Count all blocks created by a user.
47
- */
48
- count(options) {
49
- return this._client.get('/v1/blocks/count', options);
50
- }
51
46
  }
52
47
  exports.Blocks = Blocks;
53
48
  Blocks.Agents = agents_1.Agents;
@@ -1 +1 @@
1
- {"version":3,"file":"blocks.js","sourceRoot":"","sources":["../../src/resources/blocks/blocks.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CAAC,MAAM,CAAC,IAAA,WAAI,EAAA,cAAc,OAAO,EAAE,EAAE,OAAO,CAAC,CAAC;IACnE,CAAC;CACF;AAxCD,wBAwCC;AAyYD,MAAM,CAAC,MAAM,GAAG,eAAM,CAAC"}
@@ -2,6 +2,7 @@
2
2
  import { APIResource } from "../../core/resource.mjs";
3
3
  import * as AgentsAPI from "./agents.mjs";
4
4
  import { Agents } from "./agents.mjs";
5
+ import { ArrayPage } from "../../core/pagination.mjs";
5
6
  import { path } from "../../internal/utils/path.mjs";
6
7
  export class Blocks extends APIResource {
7
8
  constructor() {
@@ -21,7 +22,7 @@ export class Blocks extends APIResource {
21
22
  return this._client.get(path `/v1/blocks/${blockID}`, options);
22
23
  }
23
24
  /**
24
- * Modify Block
25
+ * Update Block
25
26
  */
26
27
  update(blockID, body, options) {
27
28
  return this._client.patch(path `/v1/blocks/${blockID}`, { body, ...options });
@@ -30,7 +31,7 @@ export class Blocks extends APIResource {
30
31
  * List Blocks
31
32
  */
32
33
  list(query = {}, options) {
33
- return this._client.get('/v1/blocks/', { query, ...options });
34
+ return this._client.getAPIList('/v1/blocks/', (ArrayPage), { query, ...options });
34
35
  }
35
36
  /**
36
37
  * Delete Block
@@ -38,12 +39,6 @@ export class Blocks extends APIResource {
38
39
  delete(blockID, options) {
39
40
  return this._client.delete(path `/v1/blocks/${blockID}`, options);
40
41
  }
41
- /**
42
- * Count all blocks created by a user.
43
- */
44
- count(options) {
45
- return this._client.get('/v1/blocks/count', options);
46
- }
47
42
  }
48
43
  Blocks.Agents = Agents;
49
44
  //# sourceMappingURL=blocks.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"blocks.mjs","sourceRoot":"","sources":["../../src/resources/blocks/blocks.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAEf,KAAK,SAAS;OACd,EAAsC,MAAM,EAAE;OAG9C,EAAE,IAAI,EAAE;AAEf,MAAM,OAAO,MAAO,SAAQ,WAAW;IAAv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@ -1,3 +1,3 @@
1
- export { Agents, type AgentListResponse, type AgentListParams } from "./agents.mjs";
2
- export { Blocks, type CreateBlock, type BlockListResponse, type BlockDeleteResponse, type BlockCountResponse, type BlockCreateParams, type BlockUpdateParams, type BlockListParams, } from "./blocks.mjs";
1
+ export { Agents, type AgentListParams } from "./agents.mjs";
2
+ export { Blocks, type BlockResponse, type CreateBlock, type BlockDeleteResponse, type BlockCreateParams, type BlockUpdateParams, type BlockListParams, type BlockResponsesArrayPage, } from "./blocks.mjs";
3
3
  //# sourceMappingURL=index.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../src/resources/blocks/index.ts"],"names":[],"mappings":"OAEO,EAAE,MAAM,EAAE,KAAK,iBAAiB,EAAE,KAAK,eAAe,EAAE;OACxD,EACL,MAAM,EACN,KAAK,WAAW,EAChB,KAAK,iBAAiB,EACtB,KAAK,mBAAmB,EACxB,KAAK,kBAAkB,EACvB,KAAK,iBAAiB,EACtB,KAAK,iBAAiB,EACtB,KAAK,eAAe,GACrB"}
1
+ {"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../src/resources/blocks/index.ts"],"names":[],"mappings":"OAEO,EAAE,MAAM,EAAE,KAAK,eAAe,EAAE;OAChC,EACL,MAAM,EACN,KAAK,aAAa,EAClB,KAAK,WAAW,EAChB,KAAK,mBAAmB,EACxB,KAAK,iBAAiB,EACtB,KAAK,iBAAiB,EACtB,KAAK,eAAe,EACpB,KAAK,uBAAuB,GAC7B"}
@@ -1,3 +1,3 @@
1
- export { Agents, type AgentListResponse, type AgentListParams } from "./agents.js";
2
- export { Blocks, type CreateBlock, type BlockListResponse, type BlockDeleteResponse, type BlockCountResponse, type BlockCreateParams, type BlockUpdateParams, type BlockListParams, } from "./blocks.js";
1
+ export { Agents, type AgentListParams } from "./agents.js";
2
+ export { Blocks, type BlockResponse, type CreateBlock, type BlockDeleteResponse, type BlockCreateParams, type BlockUpdateParams, type BlockListParams, type BlockResponsesArrayPage, } from "./blocks.js";
3
3
  //# sourceMappingURL=index.d.ts.map