@agentuity/server 1.0.32 → 1.0.33

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 (562) hide show
  1. package/dist/api/api.d.ts +1 -227
  2. package/dist/api/api.d.ts.map +1 -1
  3. package/dist/api/api.js +1 -637
  4. package/dist/api/api.js.map +1 -1
  5. package/dist/api/index.d.ts +1 -17
  6. package/dist/api/index.d.ts.map +1 -1
  7. package/dist/api/index.js +1 -17
  8. package/dist/api/index.js.map +1 -1
  9. package/dist/api/org/env-delete.d.ts +1 -22
  10. package/dist/api/org/env-delete.d.ts.map +1 -1
  11. package/dist/api/org/env-delete.js +1 -24
  12. package/dist/api/org/env-delete.js.map +1 -1
  13. package/dist/api/org/env-get.d.ts +1 -32
  14. package/dist/api/org/env-get.d.ts.map +1 -1
  15. package/dist/api/org/env-get.js +1 -25
  16. package/dist/api/org/env-get.js.map +1 -1
  17. package/dist/api/org/env-update.d.ts +1 -23
  18. package/dist/api/org/env-update.d.ts.map +1 -1
  19. package/dist/api/org/env-update.js +1 -25
  20. package/dist/api/org/env-update.js.map +1 -1
  21. package/dist/api/project/get.d.ts +1 -42
  22. package/dist/api/project/get.d.ts.map +1 -1
  23. package/dist/api/project/get.js +1 -35
  24. package/dist/api/project/get.js.map +1 -1
  25. package/dist/api/project/list.d.ts +1 -47
  26. package/dist/api/project/list.d.ts.map +1 -1
  27. package/dist/api/project/list.js +1 -37
  28. package/dist/api/project/list.js.map +1 -1
  29. package/dist/api/project/malware.d.ts +1 -70
  30. package/dist/api/project/malware.d.ts.map +1 -1
  31. package/dist/api/project/malware.js +1 -41
  32. package/dist/api/project/malware.js.map +1 -1
  33. package/dist/api/region/create.d.ts +1 -80
  34. package/dist/api/region/create.d.ts.map +1 -1
  35. package/dist/api/region/create.js +1 -176
  36. package/dist/api/region/create.js.map +1 -1
  37. package/dist/api/sandbox/client.d.ts +1 -190
  38. package/dist/api/sandbox/client.d.ts.map +1 -1
  39. package/dist/api/sandbox/client.js +1 -260
  40. package/dist/api/sandbox/client.js.map +1 -1
  41. package/dist/api/sandbox/pause.d.ts +1 -21
  42. package/dist/api/sandbox/pause.d.ts.map +1 -1
  43. package/dist/api/sandbox/pause.js +1 -24
  44. package/dist/api/sandbox/pause.js.map +1 -1
  45. package/dist/api/sandbox/resume.d.ts +1 -21
  46. package/dist/api/sandbox/resume.d.ts.map +1 -1
  47. package/dist/api/sandbox/resume.js +1 -24
  48. package/dist/api/sandbox/resume.js.map +1 -1
  49. package/dist/api/sandbox/util.d.ts +1 -284
  50. package/dist/api/sandbox/util.d.ts.map +1 -1
  51. package/dist/api/sandbox/util.js +1 -210
  52. package/dist/api/sandbox/util.js.map +1 -1
  53. package/dist/api/user/whoami.d.ts +1 -38
  54. package/dist/api/user/whoami.d.ts.map +1 -1
  55. package/dist/api/user/whoami.js +1 -26
  56. package/dist/api/user/whoami.js.map +1 -1
  57. package/dist/index.d.ts +1 -4
  58. package/dist/index.d.ts.map +1 -1
  59. package/dist/index.js +3 -12
  60. package/dist/index.js.map +1 -1
  61. package/package.json +4 -4
  62. package/src/api/api.ts +1 -936
  63. package/src/api/index.ts +1 -17
  64. package/src/api/org/env-delete.ts +1 -37
  65. package/src/api/org/env-get.ts +1 -43
  66. package/src/api/org/env-update.ts +1 -38
  67. package/src/api/project/get.ts +1 -49
  68. package/src/api/project/list.ts +1 -54
  69. package/src/api/project/malware.ts +1 -68
  70. package/src/api/region/create.ts +1 -207
  71. package/src/api/sandbox/client.ts +1 -460
  72. package/src/api/sandbox/pause.ts +1 -39
  73. package/src/api/sandbox/resume.ts +1 -39
  74. package/src/api/sandbox/util.ts +1 -276
  75. package/src/api/user/whoami.ts +1 -32
  76. package/src/index.ts +3 -30
  77. package/dist/api/apikey/create.d.ts +0 -33
  78. package/dist/api/apikey/create.d.ts.map +0 -1
  79. package/dist/api/apikey/create.js +0 -23
  80. package/dist/api/apikey/create.js.map +0 -1
  81. package/dist/api/apikey/delete.d.ts +0 -19
  82. package/dist/api/apikey/delete.d.ts.map +0 -1
  83. package/dist/api/apikey/delete.js +0 -19
  84. package/dist/api/apikey/delete.js.map +0 -1
  85. package/dist/api/apikey/get.d.ts +0 -45
  86. package/dist/api/apikey/get.d.ts.map +0 -1
  87. package/dist/api/apikey/get.js +0 -36
  88. package/dist/api/apikey/get.js.map +0 -1
  89. package/dist/api/apikey/index.d.ts +0 -6
  90. package/dist/api/apikey/index.d.ts.map +0 -1
  91. package/dist/api/apikey/index.js +0 -6
  92. package/dist/api/apikey/index.js.map +0 -1
  93. package/dist/api/apikey/list.d.ts +0 -64
  94. package/dist/api/apikey/list.d.ts.map +0 -1
  95. package/dist/api/apikey/list.js +0 -46
  96. package/dist/api/apikey/list.js.map +0 -1
  97. package/dist/api/apikey/util.d.ts +0 -23
  98. package/dist/api/apikey/util.d.ts.map +0 -1
  99. package/dist/api/apikey/util.js +0 -3
  100. package/dist/api/apikey/util.js.map +0 -1
  101. package/dist/api/db/index.d.ts +0 -5
  102. package/dist/api/db/index.d.ts.map +0 -1
  103. package/dist/api/db/index.js +0 -5
  104. package/dist/api/db/index.js.map +0 -1
  105. package/dist/api/db/logs.d.ts +0 -70
  106. package/dist/api/db/logs.d.ts.map +0 -1
  107. package/dist/api/db/logs.js +0 -59
  108. package/dist/api/db/logs.js.map +0 -1
  109. package/dist/api/db/query.d.ts +0 -39
  110. package/dist/api/db/query.d.ts.map +0 -1
  111. package/dist/api/db/query.js +0 -49
  112. package/dist/api/db/query.js.map +0 -1
  113. package/dist/api/db/tables.d.ts +0 -49
  114. package/dist/api/db/tables.d.ts.map +0 -1
  115. package/dist/api/db/tables.js +0 -59
  116. package/dist/api/db/tables.js.map +0 -1
  117. package/dist/api/db/util.d.ts +0 -31
  118. package/dist/api/db/util.d.ts.map +0 -1
  119. package/dist/api/db/util.js +0 -4
  120. package/dist/api/db/util.js.map +0 -1
  121. package/dist/api/eval/get.d.ts +0 -36
  122. package/dist/api/eval/get.d.ts.map +0 -1
  123. package/dist/api/eval/get.js +0 -23
  124. package/dist/api/eval/get.js.map +0 -1
  125. package/dist/api/eval/index.d.ts +0 -5
  126. package/dist/api/eval/index.d.ts.map +0 -1
  127. package/dist/api/eval/index.js +0 -5
  128. package/dist/api/eval/index.js.map +0 -1
  129. package/dist/api/eval/list.d.ts +0 -50
  130. package/dist/api/eval/list.d.ts.map +0 -1
  131. package/dist/api/eval/list.js +0 -32
  132. package/dist/api/eval/list.js.map +0 -1
  133. package/dist/api/eval/run-get.d.ts +0 -48
  134. package/dist/api/eval/run-get.d.ts.map +0 -1
  135. package/dist/api/eval/run-get.js +0 -29
  136. package/dist/api/eval/run-get.js.map +0 -1
  137. package/dist/api/eval/run-list.d.ts +0 -70
  138. package/dist/api/eval/run-list.d.ts.map +0 -1
  139. package/dist/api/eval/run-list.js +0 -42
  140. package/dist/api/eval/run-list.js.map +0 -1
  141. package/dist/api/machine/index.d.ts +0 -3
  142. package/dist/api/machine/index.d.ts.map +0 -1
  143. package/dist/api/machine/index.js +0 -3
  144. package/dist/api/machine/index.js.map +0 -1
  145. package/dist/api/machine/machine.d.ts +0 -192
  146. package/dist/api/machine/machine.d.ts.map +0 -1
  147. package/dist/api/machine/machine.js +0 -109
  148. package/dist/api/machine/machine.js.map +0 -1
  149. package/dist/api/machine/util.d.ts +0 -14
  150. package/dist/api/machine/util.d.ts.map +0 -1
  151. package/dist/api/machine/util.js +0 -3
  152. package/dist/api/machine/util.js.map +0 -1
  153. package/dist/api/org/index.d.ts +0 -7
  154. package/dist/api/org/index.d.ts.map +0 -1
  155. package/dist/api/org/index.js +0 -7
  156. package/dist/api/org/index.js.map +0 -1
  157. package/dist/api/org/list.d.ts +0 -27
  158. package/dist/api/org/list.d.ts.map +0 -1
  159. package/dist/api/org/list.js +0 -22
  160. package/dist/api/org/list.js.map +0 -1
  161. package/dist/api/org/resources.d.ts +0 -141
  162. package/dist/api/org/resources.d.ts.map +0 -1
  163. package/dist/api/org/resources.js +0 -97
  164. package/dist/api/org/resources.js.map +0 -1
  165. package/dist/api/org/util.d.ts +0 -45
  166. package/dist/api/org/util.d.ts.map +0 -1
  167. package/dist/api/org/util.js +0 -4
  168. package/dist/api/org/util.js.map +0 -1
  169. package/dist/api/project/agent.d.ts +0 -89
  170. package/dist/api/project/agent.d.ts.map +0 -1
  171. package/dist/api/project/agent.js +0 -60
  172. package/dist/api/project/agent.js.map +0 -1
  173. package/dist/api/project/create.d.ts +0 -37
  174. package/dist/api/project/create.d.ts.map +0 -1
  175. package/dist/api/project/create.js +0 -31
  176. package/dist/api/project/create.js.map +0 -1
  177. package/dist/api/project/delete.d.ts +0 -15
  178. package/dist/api/project/delete.d.ts.map +0 -1
  179. package/dist/api/project/delete.js +0 -13
  180. package/dist/api/project/delete.js.map +0 -1
  181. package/dist/api/project/deploy.d.ts +0 -490
  182. package/dist/api/project/deploy.d.ts.map +0 -1
  183. package/dist/api/project/deploy.js +0 -313
  184. package/dist/api/project/deploy.js.map +0 -1
  185. package/dist/api/project/deployment.d.ts +0 -237
  186. package/dist/api/project/deployment.d.ts.map +0 -1
  187. package/dist/api/project/deployment.js +0 -127
  188. package/dist/api/project/deployment.js.map +0 -1
  189. package/dist/api/project/env-delete.d.ts +0 -22
  190. package/dist/api/project/env-delete.d.ts.map +0 -1
  191. package/dist/api/project/env-delete.js +0 -29
  192. package/dist/api/project/env-delete.js.map +0 -1
  193. package/dist/api/project/env-update.d.ts +0 -31
  194. package/dist/api/project/env-update.d.ts.map +0 -1
  195. package/dist/api/project/env-update.js +0 -36
  196. package/dist/api/project/env-update.js.map +0 -1
  197. package/dist/api/project/exists.d.ts +0 -25
  198. package/dist/api/project/exists.d.ts.map +0 -1
  199. package/dist/api/project/exists.js +0 -45
  200. package/dist/api/project/exists.js.map +0 -1
  201. package/dist/api/project/hostname.d.ts +0 -25
  202. package/dist/api/project/hostname.d.ts.map +0 -1
  203. package/dist/api/project/hostname.js +0 -37
  204. package/dist/api/project/hostname.js.map +0 -1
  205. package/dist/api/project/index.d.ts +0 -14
  206. package/dist/api/project/index.d.ts.map +0 -1
  207. package/dist/api/project/index.js +0 -14
  208. package/dist/api/project/index.js.map +0 -1
  209. package/dist/api/project/update-region.d.ts +0 -27
  210. package/dist/api/project/update-region.d.ts.map +0 -1
  211. package/dist/api/project/update-region.js +0 -25
  212. package/dist/api/project/update-region.js.map +0 -1
  213. package/dist/api/project/util.d.ts +0 -62
  214. package/dist/api/project/util.d.ts.map +0 -1
  215. package/dist/api/project/util.js +0 -6
  216. package/dist/api/project/util.js.map +0 -1
  217. package/dist/api/queue/analytics.d.ts +0 -250
  218. package/dist/api/queue/analytics.d.ts.map +0 -1
  219. package/dist/api/queue/analytics.js +0 -233
  220. package/dist/api/queue/analytics.js.map +0 -1
  221. package/dist/api/queue/destinations.d.ts +0 -202
  222. package/dist/api/queue/destinations.d.ts.map +0 -1
  223. package/dist/api/queue/destinations.js +0 -168
  224. package/dist/api/queue/destinations.js.map +0 -1
  225. package/dist/api/queue/dlq.d.ts +0 -168
  226. package/dist/api/queue/dlq.d.ts.map +0 -1
  227. package/dist/api/queue/dlq.js +0 -166
  228. package/dist/api/queue/dlq.js.map +0 -1
  229. package/dist/api/queue/index.d.ts +0 -56
  230. package/dist/api/queue/index.d.ts.map +0 -1
  231. package/dist/api/queue/index.js +0 -90
  232. package/dist/api/queue/index.js.map +0 -1
  233. package/dist/api/queue/messages.d.ts +0 -503
  234. package/dist/api/queue/messages.d.ts.map +0 -1
  235. package/dist/api/queue/messages.js +0 -549
  236. package/dist/api/queue/messages.js.map +0 -1
  237. package/dist/api/queue/queues.d.ts +0 -226
  238. package/dist/api/queue/queues.d.ts.map +0 -1
  239. package/dist/api/queue/queues.js +0 -321
  240. package/dist/api/queue/queues.js.map +0 -1
  241. package/dist/api/queue/sources.d.ts +0 -202
  242. package/dist/api/queue/sources.d.ts.map +0 -1
  243. package/dist/api/queue/sources.js +0 -202
  244. package/dist/api/queue/sources.js.map +0 -1
  245. package/dist/api/queue/types.d.ts +0 -1218
  246. package/dist/api/queue/types.d.ts.map +0 -1
  247. package/dist/api/queue/types.js +0 -1002
  248. package/dist/api/queue/types.js.map +0 -1
  249. package/dist/api/queue/util.d.ts +0 -278
  250. package/dist/api/queue/util.d.ts.map +0 -1
  251. package/dist/api/queue/util.js +0 -235
  252. package/dist/api/queue/util.js.map +0 -1
  253. package/dist/api/queue/validation.d.ts +0 -247
  254. package/dist/api/queue/validation.d.ts.map +0 -1
  255. package/dist/api/queue/validation.js +0 -513
  256. package/dist/api/queue/validation.js.map +0 -1
  257. package/dist/api/queue/websocket.d.ts +0 -168
  258. package/dist/api/queue/websocket.d.ts.map +0 -1
  259. package/dist/api/queue/websocket.js +0 -394
  260. package/dist/api/queue/websocket.js.map +0 -1
  261. package/dist/api/region/delete.d.ts +0 -62
  262. package/dist/api/region/delete.d.ts.map +0 -1
  263. package/dist/api/region/delete.js +0 -37
  264. package/dist/api/region/delete.js.map +0 -1
  265. package/dist/api/region/index.d.ts +0 -5
  266. package/dist/api/region/index.d.ts.map +0 -1
  267. package/dist/api/region/index.js +0 -5
  268. package/dist/api/region/index.js.map +0 -1
  269. package/dist/api/region/list.d.ts +0 -27
  270. package/dist/api/region/list.d.ts.map +0 -1
  271. package/dist/api/region/list.js +0 -22
  272. package/dist/api/region/list.js.map +0 -1
  273. package/dist/api/region/resources.d.ts +0 -71
  274. package/dist/api/region/resources.d.ts.map +0 -1
  275. package/dist/api/region/resources.js +0 -53
  276. package/dist/api/region/resources.js.map +0 -1
  277. package/dist/api/region/util.d.ts +0 -23
  278. package/dist/api/region/util.d.ts.map +0 -1
  279. package/dist/api/region/util.js +0 -3
  280. package/dist/api/region/util.js.map +0 -1
  281. package/dist/api/sandbox/cli-list.d.ts +0 -114
  282. package/dist/api/sandbox/cli-list.d.ts.map +0 -1
  283. package/dist/api/sandbox/cli-list.js +0 -71
  284. package/dist/api/sandbox/cli-list.js.map +0 -1
  285. package/dist/api/sandbox/create.d.ts +0 -118
  286. package/dist/api/sandbox/create.d.ts.map +0 -1
  287. package/dist/api/sandbox/create.js +0 -211
  288. package/dist/api/sandbox/create.js.map +0 -1
  289. package/dist/api/sandbox/destroy.d.ts +0 -22
  290. package/dist/api/sandbox/destroy.d.ts.map +0 -1
  291. package/dist/api/sandbox/destroy.js +0 -25
  292. package/dist/api/sandbox/destroy.js.map +0 -1
  293. package/dist/api/sandbox/disk-checkpoint.d.ts +0 -104
  294. package/dist/api/sandbox/disk-checkpoint.d.ts.map +0 -1
  295. package/dist/api/sandbox/disk-checkpoint.js +0 -104
  296. package/dist/api/sandbox/disk-checkpoint.js.map +0 -1
  297. package/dist/api/sandbox/execute.d.ts +0 -69
  298. package/dist/api/sandbox/execute.d.ts.map +0 -1
  299. package/dist/api/sandbox/execute.js +0 -103
  300. package/dist/api/sandbox/execute.js.map +0 -1
  301. package/dist/api/sandbox/execution.d.ts +0 -169
  302. package/dist/api/sandbox/execution.d.ts.map +0 -1
  303. package/dist/api/sandbox/execution.js +0 -118
  304. package/dist/api/sandbox/execution.js.map +0 -1
  305. package/dist/api/sandbox/files.d.ts +0 -261
  306. package/dist/api/sandbox/files.d.ts.map +0 -1
  307. package/dist/api/sandbox/files.js +0 -386
  308. package/dist/api/sandbox/files.js.map +0 -1
  309. package/dist/api/sandbox/get.d.ts +0 -283
  310. package/dist/api/sandbox/get.d.ts.map +0 -1
  311. package/dist/api/sandbox/get.js +0 -215
  312. package/dist/api/sandbox/get.js.map +0 -1
  313. package/dist/api/sandbox/getStatus.d.ts +0 -16
  314. package/dist/api/sandbox/getStatus.d.ts.map +0 -1
  315. package/dist/api/sandbox/getStatus.js +0 -32
  316. package/dist/api/sandbox/getStatus.js.map +0 -1
  317. package/dist/api/sandbox/index.d.ts +0 -39
  318. package/dist/api/sandbox/index.d.ts.map +0 -1
  319. package/dist/api/sandbox/index.js +0 -20
  320. package/dist/api/sandbox/index.js.map +0 -1
  321. package/dist/api/sandbox/list.d.ts +0 -293
  322. package/dist/api/sandbox/list.d.ts.map +0 -1
  323. package/dist/api/sandbox/list.js +0 -191
  324. package/dist/api/sandbox/list.js.map +0 -1
  325. package/dist/api/sandbox/resolve.d.ts +0 -82
  326. package/dist/api/sandbox/resolve.d.ts.map +0 -1
  327. package/dist/api/sandbox/resolve.js +0 -71
  328. package/dist/api/sandbox/resolve.js.map +0 -1
  329. package/dist/api/sandbox/run.d.ts +0 -28
  330. package/dist/api/sandbox/run.d.ts.map +0 -1
  331. package/dist/api/sandbox/run.js +0 -342
  332. package/dist/api/sandbox/run.js.map +0 -1
  333. package/dist/api/sandbox/runtime.d.ts +0 -83
  334. package/dist/api/sandbox/runtime.d.ts.map +0 -1
  335. package/dist/api/sandbox/runtime.js +0 -78
  336. package/dist/api/sandbox/runtime.js.map +0 -1
  337. package/dist/api/sandbox/snapshot-build.d.ts +0 -48
  338. package/dist/api/sandbox/snapshot-build.d.ts.map +0 -1
  339. package/dist/api/sandbox/snapshot-build.js +0 -74
  340. package/dist/api/sandbox/snapshot-build.js.map +0 -1
  341. package/dist/api/sandbox/snapshot.d.ts +0 -595
  342. package/dist/api/sandbox/snapshot.d.ts.map +0 -1
  343. package/dist/api/sandbox/snapshot.js +0 -598
  344. package/dist/api/sandbox/snapshot.js.map +0 -1
  345. package/dist/api/services/index.d.ts +0 -2
  346. package/dist/api/services/index.d.ts.map +0 -1
  347. package/dist/api/services/index.js +0 -2
  348. package/dist/api/services/index.js.map +0 -1
  349. package/dist/api/services/stats.d.ts +0 -263
  350. package/dist/api/services/stats.d.ts.map +0 -1
  351. package/dist/api/services/stats.js +0 -144
  352. package/dist/api/services/stats.js.map +0 -1
  353. package/dist/api/session/get.d.ts +0 -169
  354. package/dist/api/session/get.d.ts.map +0 -1
  355. package/dist/api/session/get.js +0 -56
  356. package/dist/api/session/get.js.map +0 -1
  357. package/dist/api/session/index.d.ts +0 -4
  358. package/dist/api/session/index.d.ts.map +0 -1
  359. package/dist/api/session/index.js +0 -4
  360. package/dist/api/session/index.js.map +0 -1
  361. package/dist/api/session/list.d.ts +0 -143
  362. package/dist/api/session/list.d.ts.map +0 -1
  363. package/dist/api/session/list.js +0 -91
  364. package/dist/api/session/list.js.map +0 -1
  365. package/dist/api/session/logs.d.ts +0 -40
  366. package/dist/api/session/logs.d.ts.map +0 -1
  367. package/dist/api/session/logs.js +0 -28
  368. package/dist/api/session/logs.js.map +0 -1
  369. package/dist/api/session/util.d.ts +0 -23
  370. package/dist/api/session/util.d.ts.map +0 -1
  371. package/dist/api/session/util.js +0 -3
  372. package/dist/api/session/util.js.map +0 -1
  373. package/dist/api/storage/config.d.ts +0 -99
  374. package/dist/api/storage/config.d.ts.map +0 -1
  375. package/dist/api/storage/config.js +0 -61
  376. package/dist/api/storage/config.js.map +0 -1
  377. package/dist/api/storage/index.d.ts +0 -5
  378. package/dist/api/storage/index.d.ts.map +0 -1
  379. package/dist/api/storage/index.js +0 -5
  380. package/dist/api/storage/index.js.map +0 -1
  381. package/dist/api/storage/objects.d.ts +0 -155
  382. package/dist/api/storage/objects.d.ts.map +0 -1
  383. package/dist/api/storage/objects.js +0 -148
  384. package/dist/api/storage/objects.js.map +0 -1
  385. package/dist/api/storage/types.d.ts +0 -161
  386. package/dist/api/storage/types.d.ts.map +0 -1
  387. package/dist/api/storage/types.js +0 -141
  388. package/dist/api/storage/types.js.map +0 -1
  389. package/dist/api/storage/util.d.ts +0 -48
  390. package/dist/api/storage/util.d.ts.map +0 -1
  391. package/dist/api/storage/util.js +0 -8
  392. package/dist/api/storage/util.js.map +0 -1
  393. package/dist/api/stream/get.d.ts +0 -58
  394. package/dist/api/stream/get.d.ts.map +0 -1
  395. package/dist/api/stream/get.js +0 -40
  396. package/dist/api/stream/get.js.map +0 -1
  397. package/dist/api/stream/index.d.ts +0 -4
  398. package/dist/api/stream/index.d.ts.map +0 -1
  399. package/dist/api/stream/index.js +0 -4
  400. package/dist/api/stream/index.js.map +0 -1
  401. package/dist/api/stream/list.d.ts +0 -120
  402. package/dist/api/stream/list.d.ts.map +0 -1
  403. package/dist/api/stream/list.js +0 -77
  404. package/dist/api/stream/list.js.map +0 -1
  405. package/dist/api/stream/util.d.ts +0 -23
  406. package/dist/api/stream/util.d.ts.map +0 -1
  407. package/dist/api/stream/util.js +0 -3
  408. package/dist/api/stream/util.js.map +0 -1
  409. package/dist/api/thread/delete.d.ts +0 -23
  410. package/dist/api/thread/delete.d.ts.map +0 -1
  411. package/dist/api/thread/delete.js +0 -21
  412. package/dist/api/thread/delete.js.map +0 -1
  413. package/dist/api/thread/get.d.ts +0 -36
  414. package/dist/api/thread/get.d.ts.map +0 -1
  415. package/dist/api/thread/get.js +0 -23
  416. package/dist/api/thread/get.js.map +0 -1
  417. package/dist/api/thread/index.d.ts +0 -5
  418. package/dist/api/thread/index.d.ts.map +0 -1
  419. package/dist/api/thread/index.js +0 -5
  420. package/dist/api/thread/index.js.map +0 -1
  421. package/dist/api/thread/list.d.ts +0 -69
  422. package/dist/api/thread/list.d.ts.map +0 -1
  423. package/dist/api/thread/list.js +0 -51
  424. package/dist/api/thread/list.js.map +0 -1
  425. package/dist/api/thread/util.d.ts +0 -23
  426. package/dist/api/thread/util.d.ts.map +0 -1
  427. package/dist/api/thread/util.js +0 -3
  428. package/dist/api/thread/util.js.map +0 -1
  429. package/dist/api/user/index.d.ts +0 -2
  430. package/dist/api/user/index.d.ts.map +0 -1
  431. package/dist/api/user/index.js +0 -2
  432. package/dist/api/user/index.js.map +0 -1
  433. package/dist/api/user/util.d.ts +0 -23
  434. package/dist/api/user/util.d.ts.map +0 -1
  435. package/dist/api/user/util.js +0 -3
  436. package/dist/api/user/util.js.map +0 -1
  437. package/dist/api/webhook/deliveries.d.ts +0 -94
  438. package/dist/api/webhook/deliveries.d.ts.map +0 -1
  439. package/dist/api/webhook/deliveries.js +0 -79
  440. package/dist/api/webhook/deliveries.js.map +0 -1
  441. package/dist/api/webhook/destinations.d.ts +0 -136
  442. package/dist/api/webhook/destinations.d.ts.map +0 -1
  443. package/dist/api/webhook/destinations.js +0 -137
  444. package/dist/api/webhook/destinations.js.map +0 -1
  445. package/dist/api/webhook/index.d.ts +0 -41
  446. package/dist/api/webhook/index.d.ts.map +0 -1
  447. package/dist/api/webhook/index.js +0 -59
  448. package/dist/api/webhook/index.js.map +0 -1
  449. package/dist/api/webhook/receipts.d.ts +0 -77
  450. package/dist/api/webhook/receipts.d.ts.map +0 -1
  451. package/dist/api/webhook/receipts.js +0 -78
  452. package/dist/api/webhook/receipts.js.map +0 -1
  453. package/dist/api/webhook/types.d.ts +0 -249
  454. package/dist/api/webhook/types.d.ts.map +0 -1
  455. package/dist/api/webhook/types.js +0 -221
  456. package/dist/api/webhook/types.js.map +0 -1
  457. package/dist/api/webhook/util.d.ts +0 -202
  458. package/dist/api/webhook/util.d.ts.map +0 -1
  459. package/dist/api/webhook/util.js +0 -201
  460. package/dist/api/webhook/util.js.map +0 -1
  461. package/dist/api/webhook/webhooks.d.ts +0 -146
  462. package/dist/api/webhook/webhooks.d.ts.map +0 -1
  463. package/dist/api/webhook/webhooks.js +0 -165
  464. package/dist/api/webhook/webhooks.js.map +0 -1
  465. package/src/api/api-example.md +0 -164
  466. package/src/api/apikey/create.ts +0 -41
  467. package/src/api/apikey/delete.ts +0 -30
  468. package/src/api/apikey/get.ts +0 -48
  469. package/src/api/apikey/index.ts +0 -5
  470. package/src/api/apikey/list.ts +0 -64
  471. package/src/api/apikey/util.ts +0 -3
  472. package/src/api/db/index.ts +0 -27
  473. package/src/api/db/logs.ts +0 -75
  474. package/src/api/db/query.ts +0 -67
  475. package/src/api/db/tables.ts +0 -92
  476. package/src/api/db/util.ts +0 -9
  477. package/src/api/eval/get.ts +0 -33
  478. package/src/api/eval/index.ts +0 -28
  479. package/src/api/eval/list.ts +0 -49
  480. package/src/api/eval/run-get.ts +0 -39
  481. package/src/api/eval/run-list.ts +0 -59
  482. package/src/api/machine/index.ts +0 -2
  483. package/src/api/machine/machine.ts +0 -160
  484. package/src/api/machine/util.ts +0 -5
  485. package/src/api/org/index.ts +0 -6
  486. package/src/api/org/list.ts +0 -28
  487. package/src/api/org/resources.ts +0 -140
  488. package/src/api/org/util.ts +0 -4
  489. package/src/api/project/agent.ts +0 -86
  490. package/src/api/project/create.ts +0 -47
  491. package/src/api/project/delete.ts +0 -25
  492. package/src/api/project/deploy.ts +0 -458
  493. package/src/api/project/deployment.ts +0 -195
  494. package/src/api/project/env-delete.ts +0 -45
  495. package/src/api/project/env-update.ts +0 -55
  496. package/src/api/project/exists.ts +0 -58
  497. package/src/api/project/hostname.ts +0 -73
  498. package/src/api/project/index.ts +0 -13
  499. package/src/api/project/update-region.ts +0 -44
  500. package/src/api/project/util.ts +0 -8
  501. package/src/api/queue/analytics.ts +0 -311
  502. package/src/api/queue/destinations.ts +0 -259
  503. package/src/api/queue/dlq.ts +0 -243
  504. package/src/api/queue/index.ts +0 -308
  505. package/src/api/queue/messages.ts +0 -784
  506. package/src/api/queue/queues.ts +0 -460
  507. package/src/api/queue/sources.ts +0 -294
  508. package/src/api/queue/types.ts +0 -1325
  509. package/src/api/queue/util.ts +0 -278
  510. package/src/api/queue/validation.ts +0 -560
  511. package/src/api/queue/websocket.ts +0 -514
  512. package/src/api/region/delete.ts +0 -57
  513. package/src/api/region/index.ts +0 -4
  514. package/src/api/region/list.ts +0 -32
  515. package/src/api/region/resources.ts +0 -69
  516. package/src/api/region/util.ts +0 -3
  517. package/src/api/sandbox/cli-list.ts +0 -127
  518. package/src/api/sandbox/create.ts +0 -256
  519. package/src/api/sandbox/destroy.ts +0 -41
  520. package/src/api/sandbox/disk-checkpoint.ts +0 -179
  521. package/src/api/sandbox/execute.ts +0 -132
  522. package/src/api/sandbox/execution.ts +0 -183
  523. package/src/api/sandbox/files.ts +0 -596
  524. package/src/api/sandbox/get.ts +0 -249
  525. package/src/api/sandbox/getStatus.ts +0 -54
  526. package/src/api/sandbox/index.ts +0 -211
  527. package/src/api/sandbox/list.ts +0 -224
  528. package/src/api/sandbox/resolve.ts +0 -98
  529. package/src/api/sandbox/run.ts +0 -439
  530. package/src/api/sandbox/runtime.ts +0 -100
  531. package/src/api/sandbox/snapshot-build.ts +0 -98
  532. package/src/api/sandbox/snapshot.ts +0 -781
  533. package/src/api/services/index.ts +0 -1
  534. package/src/api/services/stats.ts +0 -213
  535. package/src/api/session/get.ts +0 -106
  536. package/src/api/session/index.ts +0 -3
  537. package/src/api/session/list.ts +0 -136
  538. package/src/api/session/logs.ts +0 -47
  539. package/src/api/session/util.ts +0 -3
  540. package/src/api/storage/config.ts +0 -111
  541. package/src/api/storage/index.ts +0 -4
  542. package/src/api/storage/objects.ts +0 -250
  543. package/src/api/storage/types.ts +0 -174
  544. package/src/api/storage/util.ts +0 -10
  545. package/src/api/stream/get.ts +0 -51
  546. package/src/api/stream/index.ts +0 -3
  547. package/src/api/stream/list.ts +0 -127
  548. package/src/api/stream/util.ts +0 -3
  549. package/src/api/thread/delete.ts +0 -31
  550. package/src/api/thread/get.ts +0 -34
  551. package/src/api/thread/index.ts +0 -4
  552. package/src/api/thread/list.ts +0 -76
  553. package/src/api/thread/util.ts +0 -3
  554. package/src/api/user/index.ts +0 -1
  555. package/src/api/user/util.ts +0 -3
  556. package/src/api/webhook/deliveries.ts +0 -129
  557. package/src/api/webhook/destinations.ts +0 -224
  558. package/src/api/webhook/index.ts +0 -133
  559. package/src/api/webhook/receipts.ts +0 -124
  560. package/src/api/webhook/types.ts +0 -309
  561. package/src/api/webhook/util.ts +0 -237
  562. package/src/api/webhook/webhooks.ts +0 -260
@@ -1,250 +0,0 @@
1
- import { z } from 'zod';
2
- import { type APIClient, APIResponseSchema } from '../api.ts';
3
- import {
4
- StorageListResponseSchema,
5
- StorageDeleteResponseSchema,
6
- StoragePresignResponseSchema,
7
- StorageStatsResponseSchema,
8
- StorageAnalyticsResponseSchema,
9
- type StorageListResponse,
10
- type StorageDeleteResponse,
11
- type StoragePresignResponse,
12
- type StorageStatsResponse,
13
- type StorageAnalyticsResponse,
14
- } from './types.ts';
15
- import { STORAGE_OBJECTS_API_VERSION, StorageObjectsResponseError } from './util.ts';
16
-
17
- export const StorageListAPIResponseSchema = APIResponseSchema(StorageListResponseSchema);
18
- export const StorageDeleteAPIResponseSchema = APIResponseSchema(StorageDeleteResponseSchema);
19
- export const StoragePresignAPIResponseSchema = APIResponseSchema(StoragePresignResponseSchema);
20
- export const StorageStatsAPIResponseSchema = APIResponseSchema(StorageStatsResponseSchema);
21
- export const StorageAnalyticsAPIResponseSchema = APIResponseSchema(StorageAnalyticsResponseSchema);
22
-
23
- export interface ListStorageObjectsOptions {
24
- prefix?: string;
25
- limit?: number;
26
- offset?: number;
27
- }
28
-
29
- /**
30
- * List objects in a storage bucket with optional prefix filtering and pagination.
31
- *
32
- * @param client - The API client to use for the request
33
- * @param bucketName - Name of the bucket to list objects from
34
- * @param options - Optional filtering/pagination options
35
- * @param extraHeaders - Optional extra headers (e.g. x-agentuity-orgid for CLI auth)
36
- * @returns Paginated list of objects with total count
37
- * @throws {StorageObjectsResponseError} If the request fails
38
- */
39
- export async function listStorageObjects(
40
- client: APIClient,
41
- bucketName: string,
42
- options?: ListStorageObjectsOptions,
43
- extraHeaders?: Record<string, string>
44
- ): Promise<StorageListResponse> {
45
- const params = new URLSearchParams();
46
- if (options?.prefix) params.set('prefix', options.prefix);
47
- if (options?.limit !== undefined) {
48
- if (
49
- !Number.isFinite(options.limit) ||
50
- !Number.isInteger(options.limit) ||
51
- options.limit < 0
52
- ) {
53
- throw new TypeError('limit must be a non-negative integer');
54
- }
55
- params.set('limit', String(options.limit));
56
- }
57
- if (options?.offset !== undefined) {
58
- if (
59
- !Number.isFinite(options.offset) ||
60
- !Number.isInteger(options.offset) ||
61
- options.offset < 0
62
- ) {
63
- throw new TypeError('offset must be a non-negative integer');
64
- }
65
- params.set('offset', String(options.offset));
66
- }
67
-
68
- const query = params.toString();
69
- const url = `/storage/objects/${STORAGE_OBJECTS_API_VERSION}/${encodeURIComponent(bucketName)}${query ? `?${query}` : ''}`;
70
-
71
- const resp = await client.get<z.infer<typeof StorageListAPIResponseSchema>>(
72
- url,
73
- StorageListAPIResponseSchema,
74
- undefined,
75
- extraHeaders
76
- );
77
-
78
- if (resp.success) {
79
- return resp.data;
80
- }
81
-
82
- throw new StorageObjectsResponseError({ message: resp.message });
83
- }
84
-
85
- export interface DeleteStorageObjectsOptions {
86
- key?: string;
87
- prefix?: string;
88
- }
89
-
90
- /**
91
- * Delete objects from a storage bucket.
92
- * Provide either `key` (single object) or `prefix` (all matching objects), but not both.
93
- *
94
- * @param client - The API client to use for the request
95
- * @param bucketName - Name of the bucket to delete from
96
- * @param options - Must include either key or prefix (mutually exclusive)
97
- * @param extraHeaders - Optional extra headers (e.g. x-agentuity-orgid for CLI auth)
98
- * @returns The count of deleted objects
99
- * @throws {StorageObjectsResponseError} If the request fails
100
- */
101
- export async function deleteStorageObjects(
102
- client: APIClient,
103
- bucketName: string,
104
- options: DeleteStorageObjectsOptions,
105
- extraHeaders?: Record<string, string>
106
- ): Promise<StorageDeleteResponse> {
107
- if (!options.key && !options.prefix) {
108
- throw new StorageObjectsResponseError({ message: "Either 'key' or 'prefix' is required" });
109
- }
110
- if (options.key && options.prefix) {
111
- throw new StorageObjectsResponseError({
112
- message: "Provide either 'key' or 'prefix', not both",
113
- });
114
- }
115
-
116
- const params = new URLSearchParams();
117
- if (options.key) params.set('key', options.key);
118
- if (options.prefix) params.set('prefix', options.prefix);
119
-
120
- const url = `/storage/objects/${STORAGE_OBJECTS_API_VERSION}/${encodeURIComponent(bucketName)}?${params.toString()}`;
121
-
122
- const resp = await client.delete<z.infer<typeof StorageDeleteAPIResponseSchema>>(
123
- url,
124
- StorageDeleteAPIResponseSchema,
125
- undefined,
126
- extraHeaders
127
- );
128
-
129
- if (resp.success) {
130
- return resp.data;
131
- }
132
-
133
- throw new StorageObjectsResponseError({ message: resp.message });
134
- }
135
-
136
- /**
137
- * Generate a presigned URL for downloading or uploading an object.
138
- *
139
- * @param client - The API client to use for the request
140
- * @param bucketName - Name of the bucket
141
- * @param key - Object key
142
- * @param operation - 'download' (default) or 'upload'
143
- * @param extraHeaders - Optional extra headers (e.g. x-agentuity-orgid for CLI auth)
144
- * @returns Presigned URL and expiry info
145
- * @throws {StorageObjectsResponseError} If the request fails
146
- */
147
- export async function presignStorageObject(
148
- client: APIClient,
149
- bucketName: string,
150
- key: string,
151
- operation: 'download' | 'upload' = 'download',
152
- extraHeaders?: Record<string, string>
153
- ): Promise<StoragePresignResponse> {
154
- if (!key) {
155
- throw new StorageObjectsResponseError({ message: "'key' must be a non-empty string" });
156
- }
157
- const params = new URLSearchParams();
158
- params.set('key', key);
159
- if (operation !== 'download') {
160
- params.set('operation', operation);
161
- }
162
-
163
- const url = `/storage/presign/${STORAGE_OBJECTS_API_VERSION}/${encodeURIComponent(bucketName)}?${params.toString()}`;
164
-
165
- const resp = await client.get<z.infer<typeof StoragePresignAPIResponseSchema>>(
166
- url,
167
- StoragePresignAPIResponseSchema,
168
- undefined,
169
- extraHeaders
170
- );
171
-
172
- if (resp.success) {
173
- return resp.data;
174
- }
175
-
176
- throw new StorageObjectsResponseError({ message: resp.message });
177
- }
178
-
179
- /**
180
- * Get aggregate stats for a storage bucket (object count, total size).
181
- *
182
- * @param client - The API client to use for the request
183
- * @param bucketName - Name of the bucket
184
- * @param extraHeaders - Optional extra headers (e.g. x-agentuity-orgid for CLI auth)
185
- * @returns Bucket statistics
186
- * @throws {StorageObjectsResponseError} If the request fails
187
- */
188
- export async function getStorageStats(
189
- client: APIClient,
190
- bucketName: string,
191
- extraHeaders?: Record<string, string>
192
- ): Promise<StorageStatsResponse> {
193
- const url = `/storage/stats/${STORAGE_OBJECTS_API_VERSION}/${encodeURIComponent(bucketName)}`;
194
-
195
- const resp = await client.get<z.infer<typeof StorageStatsAPIResponseSchema>>(
196
- url,
197
- StorageStatsAPIResponseSchema,
198
- undefined,
199
- extraHeaders
200
- );
201
-
202
- if (resp.success) {
203
- return resp.data;
204
- }
205
-
206
- throw new StorageObjectsResponseError({ message: resp.message });
207
- }
208
-
209
- export interface GetStorageAnalyticsOptions {
210
- days?: number;
211
- }
212
-
213
- /**
214
- * Get storage analytics for the org: summary totals, per-bucket breakdown, and daily snapshots.
215
- *
216
- * @param client - The API client to use for the request
217
- * @param options - Optional options (days for sparkline history, default 180)
218
- * @param extraHeaders - Optional extra headers (e.g. x-agentuity-orgid for CLI auth)
219
- * @returns Analytics data with summary, buckets, and daily snapshots
220
- * @throws {StorageObjectsResponseError} If the request fails
221
- */
222
- export async function getStorageAnalytics(
223
- client: APIClient,
224
- options?: GetStorageAnalyticsOptions,
225
- extraHeaders?: Record<string, string>
226
- ): Promise<StorageAnalyticsResponse> {
227
- const params = new URLSearchParams();
228
- if (options?.days !== undefined) {
229
- if (!Number.isFinite(options.days) || !Number.isInteger(options.days) || options.days < 0) {
230
- throw new TypeError('days must be a non-negative integer');
231
- }
232
- params.set('days', String(options.days));
233
- }
234
-
235
- const query = params.toString();
236
- const url = `/storage/analytics/${STORAGE_OBJECTS_API_VERSION}${query ? `?${query}` : ''}`;
237
-
238
- const resp = await client.get<z.infer<typeof StorageAnalyticsAPIResponseSchema>>(
239
- url,
240
- StorageAnalyticsAPIResponseSchema,
241
- undefined,
242
- extraHeaders
243
- );
244
-
245
- if (resp.success) {
246
- return resp.data;
247
- }
248
-
249
- throw new StorageObjectsResponseError({ message: resp.message });
250
- }
@@ -1,174 +0,0 @@
1
- import { z } from 'zod';
2
-
3
- /** Valid storage tier values */
4
- export const StorageTierValues = ['STANDARD', 'INFREQUENT_ACCESS', 'ARCHIVE'] as const;
5
-
6
- /** Storage tier enum schema */
7
- export const StorageTierSchema = z.enum(StorageTierValues).describe('Storage tier for the bucket');
8
-
9
- /** Storage tier type */
10
- export type StorageTier = z.infer<typeof StorageTierSchema>;
11
-
12
- /** CORS configuration for a bucket */
13
- export const CORSConfigSchema = z.object({
14
- allowed_origins: z
15
- .array(z.string().describe('An allowed origin URL'))
16
- .optional()
17
- .describe('List of allowed origin URLs for CORS requests'),
18
- allowed_methods: z
19
- .array(z.string().describe('An allowed HTTP method'))
20
- .optional()
21
- .describe('List of allowed HTTP methods for CORS requests'),
22
- allowed_headers: z
23
- .array(z.string().describe('An allowed request header'))
24
- .optional()
25
- .describe('List of allowed request headers for CORS requests'),
26
- expose_headers: z
27
- .array(z.string().describe('A response header to expose'))
28
- .optional()
29
- .describe('List of response headers to expose to the browser'),
30
- max_age_seconds: z
31
- .number()
32
- .int()
33
- .min(0)
34
- .nullable()
35
- .optional()
36
- .describe('Maximum time in seconds that preflight results can be cached'),
37
- });
38
-
39
- /** Full bucket config (response from GET/PUT) */
40
- export const BucketConfigSchema = z.object({
41
- bucket_name: z.string().describe('The name of the storage bucket'),
42
- storage_tier: StorageTierSchema.nullable().optional().describe('Storage tier for the bucket'),
43
- ttl: z.number().int().min(0).nullable().optional().describe('Object TTL in seconds'),
44
- public: z.boolean().nullable().optional().describe('Whether the bucket is publicly accessible'),
45
- cache_control: z
46
- .string()
47
- .nullable()
48
- .optional()
49
- .describe('Default Cache-Control header for objects'),
50
- cors: CORSConfigSchema.nullable().optional().describe('Custom CORS configuration'),
51
- additional_headers: z
52
- .record(z.string(), z.string())
53
- .nullable()
54
- .optional()
55
- .describe('Additional response headers as key-value pairs'),
56
- bucket_location: z.string().nullable().optional().describe('Bucket location or region override'),
57
- });
58
-
59
- /**
60
- * Update request body (all fields optional — partial update).
61
- * Send a field with a value to set it, send null to unset it, omit to leave unchanged.
62
- */
63
- export const BucketConfigUpdateSchema = z.object({
64
- storage_tier: StorageTierSchema.nullable().optional().describe('Storage tier for the bucket'),
65
- ttl: z
66
- .number()
67
- .int()
68
- .min(0)
69
- .nullable()
70
- .optional()
71
- .describe('Object TTL in seconds (0 to clear)'),
72
- public: z.boolean().nullable().optional().describe('Whether the bucket is publicly accessible'),
73
- cache_control: z
74
- .string()
75
- .nullable()
76
- .optional()
77
- .describe('Default Cache-Control header for objects'),
78
- cors: CORSConfigSchema.nullable().optional().describe('Custom CORS configuration'),
79
- additional_headers: z
80
- .record(z.string(), z.string())
81
- .nullable()
82
- .optional()
83
- .describe('Additional response headers as key-value pairs'),
84
- });
85
-
86
- /** TypeScript types derived from Zod schemas */
87
- export type CORSConfig = z.infer<typeof CORSConfigSchema>;
88
- export type BucketConfig = z.infer<typeof BucketConfigSchema>;
89
- export type BucketConfigUpdate = z.infer<typeof BucketConfigUpdateSchema>;
90
-
91
- // --- Storage Objects types ---
92
-
93
- /** A storage object in a bucket */
94
- export const StorageObjectSchema = z.object({
95
- bucket_name: z.string().describe('The bucket this object belongs to'),
96
- key: z.string().describe('Object key (path)'),
97
- size: z.number().int().nonnegative().describe('Object size in bytes'),
98
- etag: z.string().optional().describe('Object ETag'),
99
- content_type: z.string().optional().describe('Object content type'),
100
- last_modified: z.string().optional().describe('Last modified timestamp (ISO8601)'),
101
- });
102
-
103
- /** Paginated list of storage objects */
104
- export const StorageListResponseSchema = z.object({
105
- objects: z.array(StorageObjectSchema).describe('List of objects'),
106
- total: z.number().int().nonnegative().describe('Total count matching the query'),
107
- prefix: z.string().describe('Prefix filter applied'),
108
- limit: z.number().int().nonnegative().describe('Page size'),
109
- offset: z.number().int().nonnegative().describe('Page offset'),
110
- });
111
-
112
- /** Delete response */
113
- export const StorageDeleteResponseSchema = z.object({
114
- deleted_count: z.number().int().nonnegative().describe('Number of objects deleted'),
115
- });
116
-
117
- /** Presigned URL response */
118
- export const StoragePresignResponseSchema = z.object({
119
- presigned_url: z.string().describe('The presigned URL'),
120
- expiry_seconds: z.number().int().nonnegative().describe('URL expiry time in seconds'),
121
- });
122
-
123
- /** Bucket stats response */
124
- export const StorageStatsResponseSchema = z.object({
125
- bucket_name: z.string().describe('The bucket name'),
126
- object_count: z.number().int().nonnegative().describe('Number of objects'),
127
- total_size: z.number().int().nonnegative().describe('Total size in bytes'),
128
- last_event_at: z.string().optional().describe('Last event timestamp (ISO8601)'),
129
- });
130
-
131
- // --- Storage Analytics types ---
132
-
133
- /** Summary totals across all buckets */
134
- export const StorageAnalyticsSummarySchema = z.object({
135
- total_object_count: z.number().int().nonnegative().describe('Total objects across all buckets'),
136
- total_size: z.number().int().nonnegative().describe('Total size in bytes across all buckets'),
137
- estimated_monthly_cost: z.number().describe('Estimated monthly cost in USD'),
138
- cost_per_gb_month: z.number().describe('Cost rate per GB per month in USD'),
139
- });
140
-
141
- /** Per-bucket breakdown */
142
- export const StorageAnalyticsBucketSchema = z.object({
143
- bucket_name: z.string().describe('The bucket name'),
144
- object_count: z.number().int().nonnegative().describe('Number of objects in this bucket'),
145
- total_size: z.number().int().nonnegative().describe('Total size in bytes for this bucket'),
146
- last_event_at: z.string().optional().describe('Last event timestamp (ISO8601)'),
147
- estimated_monthly_cost: z.number().describe('Estimated monthly cost for this bucket in USD'),
148
- });
149
-
150
- /** Daily snapshot for sparklines */
151
- export const StorageAnalyticsDailySnapshotSchema = z.object({
152
- date: z.string().describe('Snapshot date (YYYY-MM-DD)'),
153
- total_object_count: z.number().int().nonnegative().describe('Total objects on this date'),
154
- total_size: z.number().int().nonnegative().describe('Total size in bytes on this date'),
155
- estimated_cost: z.number().describe('Estimated monthly cost at this snapshot in USD'),
156
- });
157
-
158
- /** Full analytics response */
159
- export const StorageAnalyticsResponseSchema = z.object({
160
- summary: StorageAnalyticsSummarySchema.describe('Org-wide totals'),
161
- buckets: z.array(StorageAnalyticsBucketSchema).describe('Per-bucket breakdown'),
162
- daily: z.array(StorageAnalyticsDailySnapshotSchema).describe('Daily snapshots for sparklines'),
163
- days: z.number().int().nonnegative().describe('Number of days requested'),
164
- });
165
-
166
- export type StorageObject = z.infer<typeof StorageObjectSchema>;
167
- export type StorageListResponse = z.infer<typeof StorageListResponseSchema>;
168
- export type StorageDeleteResponse = z.infer<typeof StorageDeleteResponseSchema>;
169
- export type StoragePresignResponse = z.infer<typeof StoragePresignResponseSchema>;
170
- export type StorageStatsResponse = z.infer<typeof StorageStatsResponseSchema>;
171
- export type StorageAnalyticsSummary = z.infer<typeof StorageAnalyticsSummarySchema>;
172
- export type StorageAnalyticsBucket = z.infer<typeof StorageAnalyticsBucketSchema>;
173
- export type StorageAnalyticsDailySnapshot = z.infer<typeof StorageAnalyticsDailySnapshotSchema>;
174
- export type StorageAnalyticsResponse = z.infer<typeof StorageAnalyticsResponseSchema>;
@@ -1,10 +0,0 @@
1
- import { StructuredError } from '@agentuity/core';
2
-
3
- export const BUCKET_CONFIG_API_VERSION = '2026-02-28';
4
- export const STORAGE_OBJECTS_API_VERSION = '2026-03-01';
5
-
6
- // Keep the old name exported for backward compat
7
- export const API_VERSION = BUCKET_CONFIG_API_VERSION;
8
-
9
- export const BucketConfigResponseError = StructuredError('BucketConfigResponseError');
10
- export const StorageObjectsResponseError = StructuredError('StorageObjectsResponseError');
@@ -1,51 +0,0 @@
1
- import { z } from 'zod';
2
- import { type APIClient, APIResponseSchema } from '../api.ts';
3
- import { StreamResponseError } from './util.ts';
4
-
5
- export const StreamDetailSchema = z.object({
6
- id: z.string().describe('the stream id'),
7
- namespace: z.string().describe('the stream namespace'),
8
- metadata: z.record(z.string(), z.string()).describe('stream metadata'),
9
- url: z.string().describe('public URL to access the stream'),
10
- sizeBytes: z.number().describe('size in bytes'),
11
- createdAt: z.string().nullable().describe('ISO 8601 creation timestamp'),
12
- updatedAt: z.string().nullable().describe('ISO 8601 last update timestamp'),
13
- startedAt: z.string().nullable().describe('ISO 8601 stream start timestamp'),
14
- endedAt: z.string().nullable().describe('ISO 8601 stream end timestamp'),
15
- expiresAt: z.string().nullable().describe('ISO 8601 expiration timestamp or null'),
16
- orgId: z.string().describe('the organization id'),
17
- projectId: z.string().nullable().describe('the project id'),
18
- completed: z.boolean().describe('whether the stream upload is completed'),
19
- headers: z.record(z.string(), z.string()).describe('stream headers'),
20
- chunks: z.number().describe('number of chunks'),
21
- });
22
-
23
- export const StreamDetailResponseSchema = APIResponseSchema(StreamDetailSchema);
24
-
25
- export type StreamDetailResponse = z.infer<typeof StreamDetailResponseSchema>;
26
- export type StreamDetail = z.infer<typeof StreamDetailSchema>;
27
-
28
- /**
29
- * Get a specific stream by ID.
30
- *
31
- * @param client - The API client
32
- * @param id - The stream ID
33
- * @returns A promise that resolves to the stream details
34
- *
35
- * @example
36
- * const stream = await streamGet(client, 'stream_abc123');
37
- * console.log(`Namespace: ${stream.namespace}, Size: ${stream.sizeBytes} bytes`);
38
- */
39
- export async function streamGet(client: APIClient, id: string): Promise<StreamDetail> {
40
- const resp = await client.request<StreamDetailResponse>(
41
- 'GET',
42
- `/cli/stream/${encodeURIComponent(id)}`,
43
- StreamDetailResponseSchema
44
- );
45
-
46
- if (resp.success) {
47
- return resp.data;
48
- }
49
-
50
- throw new StreamResponseError({ message: resp.message });
51
- }
@@ -1,3 +0,0 @@
1
- export * from './get.ts';
2
- export * from './list.ts';
3
- export * from './util.ts';
@@ -1,127 +0,0 @@
1
- import type { SortDirection } from '@agentuity/core';
2
- import { z } from 'zod';
3
- import { type APIClient, APIResponseSchema } from '../api.ts';
4
- import { StreamResponseError } from './util.ts';
5
-
6
- export const StreamInfoSchema = z.object({
7
- id: z.string().describe('the stream id'),
8
- namespace: z.string().describe('the stream namespace'),
9
- metadata: z.record(z.string(), z.string()).describe('stream metadata'),
10
- url: z.string().describe('public URL to access the stream'),
11
- sizeBytes: z.number().describe('size in bytes'),
12
- expiresAt: z.string().nullable().describe('ISO 8601 expiration timestamp or null'),
13
- orgId: z.string().describe('the organization id'),
14
- projectId: z.string().nullable().describe('the project id'),
15
- projectName: z.string().nullable().describe('the project name'),
16
- });
17
-
18
- export const StreamListDataSchema = z.object({
19
- streams: z.array(StreamInfoSchema).describe('list of streams'),
20
- total: z.number().describe('total count of matching streams'),
21
- });
22
-
23
- export const StreamListResponseSchema = APIResponseSchema(StreamListDataSchema);
24
-
25
- export type StreamListResponse = z.infer<typeof StreamListResponseSchema>;
26
- export type StreamListData = z.infer<typeof StreamListDataSchema>;
27
- export type StreamInfo = z.infer<typeof StreamInfoSchema>;
28
-
29
- export interface StreamListOptions {
30
- /**
31
- * Filter by specific project ID
32
- */
33
- projectId?: string;
34
- /**
35
- * Filter by specific organization ID
36
- */
37
- orgId?: string;
38
- /**
39
- * Filter by stream namespace
40
- */
41
- namespace?: string;
42
- /**
43
- * Filter by stream name
44
- */
45
- name?: string;
46
- /**
47
- * Maximum number of streams to return (default: 100, max: 1000)
48
- */
49
- limit?: number;
50
- /**
51
- * Number of streams to skip for pagination
52
- */
53
- offset?: number;
54
- /**
55
- * Filter by metadata key-value pairs
56
- */
57
- metadata?: Record<string, string>;
58
- /**
59
- * Field to sort by
60
- */
61
- sort?: string;
62
- /**
63
- * Sort direction (default: 'desc')
64
- */
65
- direction?: SortDirection;
66
- }
67
-
68
- /**
69
- * List streams with optional filtering.
70
- *
71
- * If no projectId or orgId is provided, returns streams from all orgs the user is a member of.
72
- *
73
- * @param client - The API client
74
- * @param options - Filtering and pagination options
75
- * @returns A promise that resolves to the list of streams with metadata
76
- *
77
- * @example
78
- * // List all streams across all orgs
79
- * const result = await streamList(client);
80
- * console.log(`Found ${result.total} streams`);
81
- *
82
- * @example
83
- * // List streams for a specific project
84
- * const result = await streamList(client, { projectId: 'proj_123' });
85
- *
86
- * @example
87
- * // List streams with namespace filter
88
- * const result = await streamList(client, { namespace: 'agent-logs' });
89
- *
90
- * @example
91
- * // List streams with metadata filter
92
- * const result = await streamList(client, {
93
- * metadata: { type: 'export', env: 'production' }
94
- * });
95
- */
96
- export async function streamList(
97
- client: APIClient,
98
- options: StreamListOptions = {}
99
- ): Promise<StreamListData> {
100
- const { projectId, orgId, namespace, name, limit, offset, metadata } = options;
101
- const params = new URLSearchParams();
102
-
103
- if (projectId) params.set('projectId', projectId);
104
- if (orgId) params.set('orgId', orgId);
105
- if (namespace) params.set('namespace', namespace);
106
- if (name) params.set('name', name);
107
- if (limit !== undefined) params.set('limit', limit.toString());
108
- if (offset !== undefined) params.set('offset', offset.toString());
109
- if (metadata && Object.keys(metadata).length > 0) {
110
- params.set('metadata', JSON.stringify(metadata));
111
- }
112
- if (options.sort) params.set('sort', options.sort);
113
- if (options.direction) params.set('direction', options.direction);
114
-
115
- const queryString = params.toString();
116
- const resp = await client.request<StreamListResponse>(
117
- 'GET',
118
- `/cli/stream${queryString ? `?${queryString}` : ''}`,
119
- StreamListResponseSchema
120
- );
121
-
122
- if (resp.success) {
123
- return resp.data;
124
- }
125
-
126
- throw new StreamResponseError({ message: resp.message });
127
- }
@@ -1,3 +0,0 @@
1
- import { StructuredError } from '@agentuity/core';
2
-
3
- export const StreamResponseError = StructuredError('StreamResponseError');
@@ -1,31 +0,0 @@
1
- import { z } from 'zod';
2
- import { APIClient, APIResponseSchemaNoData } from '../api.ts';
3
- import { ThreadResponseError } from './util.ts';
4
-
5
- export const _ThreadDeleteRequestSchema = z.object({
6
- id: z.string().describe('the thread id'),
7
- });
8
-
9
- export const ThreadDeleteResponseSchema = APIResponseSchemaNoData();
10
-
11
- export type ThreadDeleteRequest = z.infer<typeof _ThreadDeleteRequestSchema>;
12
- export type ThreadDeleteResponse = z.infer<typeof ThreadDeleteResponseSchema>;
13
-
14
- /**
15
- * Delete a thread by id
16
- *
17
- * @param client
18
- * @param request
19
- * @returns
20
- */
21
- export async function threadDelete(client: APIClient, request: ThreadDeleteRequest): Promise<void> {
22
- const resp = await client.request<ThreadDeleteResponse>(
23
- 'DELETE',
24
- `/thread/2025-03-17/${request.id}`,
25
- ThreadDeleteResponseSchema
26
- );
27
-
28
- if (!resp.success) {
29
- throw new ThreadResponseError({ message: resp.message });
30
- }
31
- }
@@ -1,34 +0,0 @@
1
- import { z } from 'zod';
2
- import { APIClient, APIResponseSchema } from '../api.ts';
3
- import { ThreadSchema, type Thread } from './list.ts';
4
- import { ThreadResponseError } from './util.ts';
5
-
6
- export const _ThreadGetRequestSchema = z.object({
7
- id: z.string().describe('the thread id'),
8
- });
9
-
10
- export const ThreadGetResponseSchema = APIResponseSchema(ThreadSchema);
11
-
12
- export type ThreadGetRequest = z.infer<typeof _ThreadGetRequestSchema>;
13
- export type ThreadGetResponse = z.infer<typeof ThreadGetResponseSchema>;
14
-
15
- /**
16
- * Get a single thread by id
17
- *
18
- * @param client
19
- * @param request
20
- * @returns
21
- */
22
- export async function threadGet(client: APIClient, request: ThreadGetRequest): Promise<Thread> {
23
- const resp = await client.request<ThreadGetResponse>(
24
- 'GET',
25
- `/thread/2025-03-17/${request.id}`,
26
- ThreadGetResponseSchema
27
- );
28
-
29
- if (resp.success) {
30
- return resp.data;
31
- }
32
-
33
- throw new ThreadResponseError({ message: resp.message });
34
- }