@agentuity/server 1.0.17 → 1.0.19

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 (422) hide show
  1. package/dist/api/api.d.ts.map +1 -1
  2. package/dist/api/api.js.map +1 -1
  3. package/dist/api/apikey/create.d.ts +1 -1
  4. package/dist/api/apikey/create.d.ts.map +1 -1
  5. package/dist/api/apikey/create.js +2 -2
  6. package/dist/api/apikey/create.js.map +1 -1
  7. package/dist/api/apikey/delete.d.ts +1 -1
  8. package/dist/api/apikey/delete.d.ts.map +1 -1
  9. package/dist/api/apikey/delete.js +2 -2
  10. package/dist/api/apikey/delete.js.map +1 -1
  11. package/dist/api/apikey/get.d.ts +1 -1
  12. package/dist/api/apikey/get.d.ts.map +1 -1
  13. package/dist/api/apikey/get.js +2 -2
  14. package/dist/api/apikey/get.js.map +1 -1
  15. package/dist/api/apikey/index.d.ts +5 -5
  16. package/dist/api/apikey/index.d.ts.map +1 -1
  17. package/dist/api/apikey/index.js +5 -5
  18. package/dist/api/apikey/index.js.map +1 -1
  19. package/dist/api/apikey/list.d.ts +1 -1
  20. package/dist/api/apikey/list.d.ts.map +1 -1
  21. package/dist/api/apikey/list.js +2 -2
  22. package/dist/api/apikey/list.js.map +1 -1
  23. package/dist/api/db/index.d.ts +4 -4
  24. package/dist/api/db/index.d.ts.map +1 -1
  25. package/dist/api/db/index.js +4 -4
  26. package/dist/api/db/index.js.map +1 -1
  27. package/dist/api/db/logs.d.ts +1 -1
  28. package/dist/api/db/logs.d.ts.map +1 -1
  29. package/dist/api/db/logs.js +2 -2
  30. package/dist/api/db/logs.js.map +1 -1
  31. package/dist/api/db/query.d.ts +1 -1
  32. package/dist/api/db/query.d.ts.map +1 -1
  33. package/dist/api/db/query.js +2 -2
  34. package/dist/api/db/query.js.map +1 -1
  35. package/dist/api/db/tables.d.ts +1 -1
  36. package/dist/api/db/tables.d.ts.map +1 -1
  37. package/dist/api/db/tables.js +2 -2
  38. package/dist/api/db/tables.js.map +1 -1
  39. package/dist/api/eval/get.d.ts +1 -1
  40. package/dist/api/eval/get.d.ts.map +1 -1
  41. package/dist/api/eval/get.js +1 -1
  42. package/dist/api/eval/get.js.map +1 -1
  43. package/dist/api/eval/index.d.ts +4 -4
  44. package/dist/api/eval/index.d.ts.map +1 -1
  45. package/dist/api/eval/index.js +4 -4
  46. package/dist/api/eval/index.js.map +1 -1
  47. package/dist/api/eval/list.d.ts +1 -1
  48. package/dist/api/eval/list.d.ts.map +1 -1
  49. package/dist/api/eval/list.js +1 -1
  50. package/dist/api/eval/list.js.map +1 -1
  51. package/dist/api/eval/run-get.d.ts +1 -1
  52. package/dist/api/eval/run-get.d.ts.map +1 -1
  53. package/dist/api/eval/run-get.js +1 -1
  54. package/dist/api/eval/run-get.js.map +1 -1
  55. package/dist/api/eval/run-list.d.ts +1 -1
  56. package/dist/api/eval/run-list.d.ts.map +1 -1
  57. package/dist/api/eval/run-list.js +1 -1
  58. package/dist/api/eval/run-list.js.map +1 -1
  59. package/dist/api/index.d.ts +14 -14
  60. package/dist/api/index.d.ts.map +1 -1
  61. package/dist/api/index.js +14 -14
  62. package/dist/api/index.js.map +1 -1
  63. package/dist/api/machine/index.d.ts +2 -2
  64. package/dist/api/machine/index.d.ts.map +1 -1
  65. package/dist/api/machine/index.js +2 -2
  66. package/dist/api/machine/index.js.map +1 -1
  67. package/dist/api/machine/machine.d.ts +1 -1
  68. package/dist/api/machine/machine.d.ts.map +1 -1
  69. package/dist/api/machine/machine.js +2 -2
  70. package/dist/api/machine/machine.js.map +1 -1
  71. package/dist/api/org/env-delete.d.ts +1 -1
  72. package/dist/api/org/env-delete.d.ts.map +1 -1
  73. package/dist/api/org/env-delete.js +2 -2
  74. package/dist/api/org/env-delete.js.map +1 -1
  75. package/dist/api/org/env-get.d.ts +1 -1
  76. package/dist/api/org/env-get.d.ts.map +1 -1
  77. package/dist/api/org/env-get.js +2 -2
  78. package/dist/api/org/env-get.js.map +1 -1
  79. package/dist/api/org/env-update.d.ts +1 -1
  80. package/dist/api/org/env-update.d.ts.map +1 -1
  81. package/dist/api/org/env-update.js +2 -2
  82. package/dist/api/org/env-update.js.map +1 -1
  83. package/dist/api/org/index.d.ts +6 -6
  84. package/dist/api/org/index.d.ts.map +1 -1
  85. package/dist/api/org/index.js +6 -6
  86. package/dist/api/org/index.js.map +1 -1
  87. package/dist/api/org/list.d.ts +1 -1
  88. package/dist/api/org/list.d.ts.map +1 -1
  89. package/dist/api/org/list.js +2 -2
  90. package/dist/api/org/list.js.map +1 -1
  91. package/dist/api/org/resources.d.ts +1 -1
  92. package/dist/api/org/resources.d.ts.map +1 -1
  93. package/dist/api/org/resources.js +2 -2
  94. package/dist/api/org/resources.js.map +1 -1
  95. package/dist/api/project/agent.d.ts +1 -1
  96. package/dist/api/project/agent.d.ts.map +1 -1
  97. package/dist/api/project/agent.js +2 -2
  98. package/dist/api/project/agent.js.map +1 -1
  99. package/dist/api/project/create.d.ts +1 -1
  100. package/dist/api/project/create.d.ts.map +1 -1
  101. package/dist/api/project/create.js +2 -2
  102. package/dist/api/project/create.js.map +1 -1
  103. package/dist/api/project/delete.d.ts +1 -1
  104. package/dist/api/project/delete.d.ts.map +1 -1
  105. package/dist/api/project/delete.js +2 -2
  106. package/dist/api/project/delete.js.map +1 -1
  107. package/dist/api/project/deploy.d.ts +1 -1
  108. package/dist/api/project/deploy.d.ts.map +1 -1
  109. package/dist/api/project/deploy.js +2 -2
  110. package/dist/api/project/deploy.js.map +1 -1
  111. package/dist/api/project/deployment.d.ts +1 -1
  112. package/dist/api/project/deployment.d.ts.map +1 -1
  113. package/dist/api/project/deployment.js +2 -2
  114. package/dist/api/project/deployment.js.map +1 -1
  115. package/dist/api/project/env-delete.d.ts +1 -1
  116. package/dist/api/project/env-delete.d.ts.map +1 -1
  117. package/dist/api/project/env-delete.js +2 -2
  118. package/dist/api/project/env-delete.js.map +1 -1
  119. package/dist/api/project/env-update.d.ts +2 -2
  120. package/dist/api/project/env-update.d.ts.map +1 -1
  121. package/dist/api/project/env-update.js +3 -3
  122. package/dist/api/project/env-update.js.map +1 -1
  123. package/dist/api/project/exists.d.ts +1 -1
  124. package/dist/api/project/exists.d.ts.map +1 -1
  125. package/dist/api/project/exists.js +2 -2
  126. package/dist/api/project/exists.js.map +1 -1
  127. package/dist/api/project/get.d.ts +1 -1
  128. package/dist/api/project/get.d.ts.map +1 -1
  129. package/dist/api/project/get.js +2 -2
  130. package/dist/api/project/get.js.map +1 -1
  131. package/dist/api/project/hostname.d.ts +1 -1
  132. package/dist/api/project/hostname.d.ts.map +1 -1
  133. package/dist/api/project/hostname.js +2 -2
  134. package/dist/api/project/hostname.js.map +1 -1
  135. package/dist/api/project/index.d.ts +13 -13
  136. package/dist/api/project/index.d.ts.map +1 -1
  137. package/dist/api/project/index.js +13 -13
  138. package/dist/api/project/index.js.map +1 -1
  139. package/dist/api/project/list.d.ts +1 -1
  140. package/dist/api/project/list.d.ts.map +1 -1
  141. package/dist/api/project/list.js +2 -2
  142. package/dist/api/project/list.js.map +1 -1
  143. package/dist/api/project/malware.d.ts +1 -1
  144. package/dist/api/project/malware.d.ts.map +1 -1
  145. package/dist/api/project/malware.js +6 -2
  146. package/dist/api/project/malware.js.map +1 -1
  147. package/dist/api/project/update-region.d.ts +1 -1
  148. package/dist/api/project/update-region.d.ts.map +1 -1
  149. package/dist/api/project/update-region.js +2 -2
  150. package/dist/api/project/update-region.js.map +1 -1
  151. package/dist/api/project/util.d.ts +13 -0
  152. package/dist/api/project/util.d.ts.map +1 -1
  153. package/dist/api/project/util.js +1 -0
  154. package/dist/api/project/util.js.map +1 -1
  155. package/dist/api/queue/analytics.d.ts +2 -2
  156. package/dist/api/queue/analytics.d.ts.map +1 -1
  157. package/dist/api/queue/analytics.js +6 -18
  158. package/dist/api/queue/analytics.js.map +1 -1
  159. package/dist/api/queue/destinations.d.ts +2 -2
  160. package/dist/api/queue/destinations.d.ts.map +1 -1
  161. package/dist/api/queue/destinations.js +14 -84
  162. package/dist/api/queue/destinations.js.map +1 -1
  163. package/dist/api/queue/dlq.d.ts +2 -2
  164. package/dist/api/queue/dlq.d.ts.map +1 -1
  165. package/dist/api/queue/dlq.js +8 -46
  166. package/dist/api/queue/dlq.js.map +1 -1
  167. package/dist/api/queue/index.d.ts +10 -10
  168. package/dist/api/queue/index.d.ts.map +1 -1
  169. package/dist/api/queue/index.js +10 -10
  170. package/dist/api/queue/index.js.map +1 -1
  171. package/dist/api/queue/messages.d.ts +2 -2
  172. package/dist/api/queue/messages.d.ts.map +1 -1
  173. package/dist/api/queue/messages.js +17 -107
  174. package/dist/api/queue/messages.js.map +1 -1
  175. package/dist/api/queue/queues.d.ts +2 -2
  176. package/dist/api/queue/queues.d.ts.map +1 -1
  177. package/dist/api/queue/queues.js +9 -39
  178. package/dist/api/queue/queues.js.map +1 -1
  179. package/dist/api/queue/sources.d.ts +2 -2
  180. package/dist/api/queue/sources.d.ts.map +1 -1
  181. package/dist/api/queue/sources.js +15 -98
  182. package/dist/api/queue/sources.js.map +1 -1
  183. package/dist/api/queue/util.d.ts +16 -0
  184. package/dist/api/queue/util.d.ts.map +1 -1
  185. package/dist/api/queue/util.js +64 -0
  186. package/dist/api/queue/util.js.map +1 -1
  187. package/dist/api/queue/websocket.d.ts +1 -1
  188. package/dist/api/queue/websocket.d.ts.map +1 -1
  189. package/dist/api/queue/websocket.js +3 -3
  190. package/dist/api/queue/websocket.js.map +1 -1
  191. package/dist/api/region/create.d.ts +1 -1
  192. package/dist/api/region/create.d.ts.map +1 -1
  193. package/dist/api/region/create.js +8 -2
  194. package/dist/api/region/create.js.map +1 -1
  195. package/dist/api/region/delete.d.ts +1 -1
  196. package/dist/api/region/delete.d.ts.map +1 -1
  197. package/dist/api/region/delete.js +2 -2
  198. package/dist/api/region/delete.js.map +1 -1
  199. package/dist/api/region/index.d.ts +4 -4
  200. package/dist/api/region/index.d.ts.map +1 -1
  201. package/dist/api/region/index.js +4 -4
  202. package/dist/api/region/index.js.map +1 -1
  203. package/dist/api/region/list.d.ts +1 -1
  204. package/dist/api/region/list.d.ts.map +1 -1
  205. package/dist/api/region/list.js +2 -2
  206. package/dist/api/region/list.js.map +1 -1
  207. package/dist/api/region/resources.d.ts +1 -1
  208. package/dist/api/region/resources.d.ts.map +1 -1
  209. package/dist/api/region/resources.js +2 -2
  210. package/dist/api/region/resources.js.map +1 -1
  211. package/dist/api/sandbox/cli-list.d.ts +1 -1
  212. package/dist/api/sandbox/cli-list.d.ts.map +1 -1
  213. package/dist/api/sandbox/cli-list.js +2 -2
  214. package/dist/api/sandbox/cli-list.js.map +1 -1
  215. package/dist/api/sandbox/client.d.ts +5 -1
  216. package/dist/api/sandbox/client.d.ts.map +1 -1
  217. package/dist/api/sandbox/client.js +12 -11
  218. package/dist/api/sandbox/client.js.map +1 -1
  219. package/dist/api/sandbox/create.d.ts +7 -1
  220. package/dist/api/sandbox/create.d.ts.map +1 -1
  221. package/dist/api/sandbox/create.js +15 -4
  222. package/dist/api/sandbox/create.js.map +1 -1
  223. package/dist/api/sandbox/destroy.d.ts +1 -1
  224. package/dist/api/sandbox/destroy.d.ts.map +1 -1
  225. package/dist/api/sandbox/destroy.js +2 -2
  226. package/dist/api/sandbox/destroy.js.map +1 -1
  227. package/dist/api/sandbox/execute.d.ts +1 -1
  228. package/dist/api/sandbox/execute.d.ts.map +1 -1
  229. package/dist/api/sandbox/execute.js +2 -2
  230. package/dist/api/sandbox/execute.js.map +1 -1
  231. package/dist/api/sandbox/execution.d.ts +1 -1
  232. package/dist/api/sandbox/execution.d.ts.map +1 -1
  233. package/dist/api/sandbox/execution.js +2 -2
  234. package/dist/api/sandbox/execution.js.map +1 -1
  235. package/dist/api/sandbox/files.d.ts +1 -1
  236. package/dist/api/sandbox/files.d.ts.map +1 -1
  237. package/dist/api/sandbox/files.js +1 -1
  238. package/dist/api/sandbox/files.js.map +1 -1
  239. package/dist/api/sandbox/get.d.ts +5 -1
  240. package/dist/api/sandbox/get.d.ts.map +1 -1
  241. package/dist/api/sandbox/get.js +17 -3
  242. package/dist/api/sandbox/get.js.map +1 -1
  243. package/dist/api/sandbox/index.d.ts +34 -30
  244. package/dist/api/sandbox/index.d.ts.map +1 -1
  245. package/dist/api/sandbox/index.js +17 -15
  246. package/dist/api/sandbox/index.js.map +1 -1
  247. package/dist/api/sandbox/list.d.ts +7 -1
  248. package/dist/api/sandbox/list.d.ts.map +1 -1
  249. package/dist/api/sandbox/list.js +17 -3
  250. package/dist/api/sandbox/list.js.map +1 -1
  251. package/dist/api/sandbox/pause.d.ts +22 -0
  252. package/dist/api/sandbox/pause.d.ts.map +1 -0
  253. package/dist/api/sandbox/pause.js +25 -0
  254. package/dist/api/sandbox/pause.js.map +1 -0
  255. package/dist/api/sandbox/resolve.d.ts +1 -1
  256. package/dist/api/sandbox/resolve.d.ts.map +1 -1
  257. package/dist/api/sandbox/resolve.js +1 -1
  258. package/dist/api/sandbox/resolve.js.map +1 -1
  259. package/dist/api/sandbox/resume.d.ts +22 -0
  260. package/dist/api/sandbox/resume.d.ts.map +1 -0
  261. package/dist/api/sandbox/resume.js +25 -0
  262. package/dist/api/sandbox/resume.js.map +1 -0
  263. package/dist/api/sandbox/run.d.ts +1 -1
  264. package/dist/api/sandbox/run.d.ts.map +1 -1
  265. package/dist/api/sandbox/run.js +6 -6
  266. package/dist/api/sandbox/run.js.map +1 -1
  267. package/dist/api/sandbox/runtime.d.ts +1 -1
  268. package/dist/api/sandbox/runtime.d.ts.map +1 -1
  269. package/dist/api/sandbox/runtime.js +2 -2
  270. package/dist/api/sandbox/runtime.js.map +1 -1
  271. package/dist/api/sandbox/snapshot.d.ts +1 -1
  272. package/dist/api/sandbox/snapshot.d.ts.map +1 -1
  273. package/dist/api/sandbox/snapshot.js +3 -3
  274. package/dist/api/sandbox/snapshot.js.map +1 -1
  275. package/dist/api/sandbox/util.d.ts +6 -0
  276. package/dist/api/sandbox/util.d.ts.map +1 -1
  277. package/dist/api/sandbox/util.js +6 -0
  278. package/dist/api/sandbox/util.js.map +1 -1
  279. package/dist/api/session/get.d.ts +2 -2
  280. package/dist/api/session/get.d.ts.map +1 -1
  281. package/dist/api/session/get.js +3 -3
  282. package/dist/api/session/get.js.map +1 -1
  283. package/dist/api/session/index.d.ts +3 -3
  284. package/dist/api/session/index.d.ts.map +1 -1
  285. package/dist/api/session/index.js +3 -3
  286. package/dist/api/session/index.js.map +1 -1
  287. package/dist/api/session/list.d.ts +1 -1
  288. package/dist/api/session/list.d.ts.map +1 -1
  289. package/dist/api/session/list.js +2 -2
  290. package/dist/api/session/list.js.map +1 -1
  291. package/dist/api/session/logs.d.ts +1 -1
  292. package/dist/api/session/logs.d.ts.map +1 -1
  293. package/dist/api/session/logs.js +2 -2
  294. package/dist/api/session/logs.js.map +1 -1
  295. package/dist/api/stream/get.d.ts +1 -1
  296. package/dist/api/stream/get.d.ts.map +1 -1
  297. package/dist/api/stream/get.js +2 -2
  298. package/dist/api/stream/get.js.map +1 -1
  299. package/dist/api/stream/index.d.ts +3 -3
  300. package/dist/api/stream/index.d.ts.map +1 -1
  301. package/dist/api/stream/index.js +3 -3
  302. package/dist/api/stream/index.js.map +1 -1
  303. package/dist/api/stream/list.d.ts +1 -1
  304. package/dist/api/stream/list.d.ts.map +1 -1
  305. package/dist/api/stream/list.js +2 -2
  306. package/dist/api/stream/list.js.map +1 -1
  307. package/dist/api/thread/delete.d.ts +1 -1
  308. package/dist/api/thread/delete.d.ts.map +1 -1
  309. package/dist/api/thread/delete.js +2 -2
  310. package/dist/api/thread/delete.js.map +1 -1
  311. package/dist/api/thread/get.d.ts +2 -2
  312. package/dist/api/thread/get.d.ts.map +1 -1
  313. package/dist/api/thread/get.js +3 -3
  314. package/dist/api/thread/get.js.map +1 -1
  315. package/dist/api/thread/index.d.ts +4 -4
  316. package/dist/api/thread/index.d.ts.map +1 -1
  317. package/dist/api/thread/index.js +4 -4
  318. package/dist/api/thread/index.js.map +1 -1
  319. package/dist/api/thread/list.d.ts +1 -1
  320. package/dist/api/thread/list.d.ts.map +1 -1
  321. package/dist/api/thread/list.js +2 -2
  322. package/dist/api/thread/list.js.map +1 -1
  323. package/dist/api/user/index.d.ts +1 -1
  324. package/dist/api/user/index.d.ts.map +1 -1
  325. package/dist/api/user/index.js +1 -1
  326. package/dist/api/user/index.js.map +1 -1
  327. package/dist/api/user/whoami.d.ts +1 -1
  328. package/dist/api/user/whoami.d.ts.map +1 -1
  329. package/dist/api/user/whoami.js +2 -2
  330. package/dist/api/user/whoami.js.map +1 -1
  331. package/dist/index.d.ts +8 -8
  332. package/dist/index.d.ts.map +1 -1
  333. package/dist/index.js +8 -8
  334. package/dist/index.js.map +1 -1
  335. package/dist/runtime-bootstrap.js +1 -1
  336. package/dist/runtime-bootstrap.js.map +1 -1
  337. package/package.json +4 -4
  338. package/src/api/api.ts +3 -8
  339. package/src/api/apikey/create.ts +2 -2
  340. package/src/api/apikey/delete.ts +2 -2
  341. package/src/api/apikey/get.ts +2 -2
  342. package/src/api/apikey/index.ts +5 -5
  343. package/src/api/apikey/list.ts +2 -2
  344. package/src/api/db/index.ts +4 -4
  345. package/src/api/db/logs.ts +2 -2
  346. package/src/api/db/query.ts +2 -2
  347. package/src/api/db/tables.ts +2 -2
  348. package/src/api/eval/get.ts +1 -1
  349. package/src/api/eval/index.ts +4 -4
  350. package/src/api/eval/list.ts +1 -1
  351. package/src/api/eval/run-get.ts +1 -1
  352. package/src/api/eval/run-list.ts +1 -1
  353. package/src/api/index.ts +14 -14
  354. package/src/api/machine/index.ts +2 -2
  355. package/src/api/machine/machine.ts +2 -2
  356. package/src/api/org/env-delete.ts +2 -2
  357. package/src/api/org/env-get.ts +2 -2
  358. package/src/api/org/env-update.ts +2 -2
  359. package/src/api/org/index.ts +6 -6
  360. package/src/api/org/list.ts +2 -2
  361. package/src/api/org/resources.ts +2 -2
  362. package/src/api/project/agent.ts +3 -3
  363. package/src/api/project/create.ts +2 -2
  364. package/src/api/project/delete.ts +2 -2
  365. package/src/api/project/deploy.ts +2 -2
  366. package/src/api/project/deployment.ts +2 -2
  367. package/src/api/project/env-delete.ts +2 -2
  368. package/src/api/project/env-update.ts +4 -4
  369. package/src/api/project/exists.ts +2 -2
  370. package/src/api/project/get.ts +2 -2
  371. package/src/api/project/hostname.ts +2 -2
  372. package/src/api/project/index.ts +13 -13
  373. package/src/api/project/list.ts +2 -2
  374. package/src/api/project/malware.ts +6 -2
  375. package/src/api/project/update-region.ts +2 -2
  376. package/src/api/project/util.ts +3 -0
  377. package/src/api/queue/analytics.ts +22 -28
  378. package/src/api/queue/destinations.ts +55 -119
  379. package/src/api/queue/dlq.ts +32 -72
  380. package/src/api/queue/index.ts +10 -10
  381. package/src/api/queue/messages.ts +92 -185
  382. package/src/api/queue/queues.ts +50 -71
  383. package/src/api/queue/sources.ts +50 -140
  384. package/src/api/queue/util.ts +74 -0
  385. package/src/api/queue/websocket.ts +8 -8
  386. package/src/api/region/create.ts +8 -2
  387. package/src/api/region/delete.ts +2 -2
  388. package/src/api/region/index.ts +4 -4
  389. package/src/api/region/list.ts +2 -2
  390. package/src/api/region/resources.ts +2 -2
  391. package/src/api/sandbox/cli-list.ts +11 -3
  392. package/src/api/sandbox/client.ts +17 -11
  393. package/src/api/sandbox/create.ts +17 -4
  394. package/src/api/sandbox/destroy.ts +2 -2
  395. package/src/api/sandbox/execute.ts +2 -2
  396. package/src/api/sandbox/execution.ts +2 -2
  397. package/src/api/sandbox/files.ts +2 -2
  398. package/src/api/sandbox/get.ts +17 -3
  399. package/src/api/sandbox/index.ts +34 -30
  400. package/src/api/sandbox/list.ts +17 -3
  401. package/src/api/sandbox/pause.ts +39 -0
  402. package/src/api/sandbox/resolve.ts +1 -1
  403. package/src/api/sandbox/resume.ts +39 -0
  404. package/src/api/sandbox/run.ts +6 -6
  405. package/src/api/sandbox/runtime.ts +2 -2
  406. package/src/api/sandbox/snapshot.ts +3 -3
  407. package/src/api/sandbox/util.ts +6 -0
  408. package/src/api/session/get.ts +3 -3
  409. package/src/api/session/index.ts +3 -3
  410. package/src/api/session/list.ts +2 -2
  411. package/src/api/session/logs.ts +2 -2
  412. package/src/api/stream/get.ts +2 -2
  413. package/src/api/stream/index.ts +3 -3
  414. package/src/api/stream/list.ts +2 -2
  415. package/src/api/thread/delete.ts +2 -2
  416. package/src/api/thread/get.ts +3 -3
  417. package/src/api/thread/index.ts +4 -4
  418. package/src/api/thread/list.ts +2 -2
  419. package/src/api/user/index.ts +1 -1
  420. package/src/api/user/whoami.ts +2 -2
  421. package/src/index.ts +8 -8
  422. package/src/runtime-bootstrap.ts +1 -1
@@ -9,17 +9,17 @@ import type {
9
9
  SandboxRunResult,
10
10
  } from '@agentuity/core';
11
11
  import type { Readable, Writable } from 'node:stream';
12
- import { APIClient } from '../api';
13
- import { sandboxCreate, type SandboxCreateResponse } from './create';
14
- import { sandboxDestroy } from './destroy';
15
- import { sandboxGet } from './get';
16
- import { sandboxExecute } from './execute';
17
- import { sandboxWriteFiles, sandboxReadFile } from './files';
18
- import { sandboxRun } from './run';
19
- import { executionGet, type ExecutionInfo } from './execution';
20
- import { ConsoleLogger } from '../../logger';
21
- import { getServiceUrls } from '../../config';
22
- import { writeAndDrain } from './util';
12
+ import { APIClient } from '../api.ts';
13
+ import { sandboxCreate, type SandboxCreateResponse } from './create.ts';
14
+ import { sandboxDestroy } from './destroy.ts';
15
+ import { sandboxGet } from './get.ts';
16
+ import { sandboxExecute } from './execute.ts';
17
+ import { sandboxWriteFiles, sandboxReadFile } from './files.ts';
18
+ import { sandboxRun } from './run.ts';
19
+ import { executionGet, type ExecutionInfo } from './execution.ts';
20
+ import { ConsoleLogger } from '../../logger.ts';
21
+ import { getServiceUrls } from '../../config.ts';
22
+ import { writeAndDrain } from './util.ts';
23
23
 
24
24
  // Server-side long-poll wait duration (max 5 minutes supported by server)
25
25
  const EXECUTION_WAIT_DURATION = '5m';
@@ -177,6 +177,11 @@ export interface SandboxInstance {
177
177
  */
178
178
  stderrStreamUrl?: string;
179
179
 
180
+ /**
181
+ * URL to stream audit events (eBPF/Tetragon security events)
182
+ */
183
+ auditStreamUrl?: string;
184
+
180
185
  /**
181
186
  * Execute a command in the sandbox
182
187
  */
@@ -313,6 +318,7 @@ export class SandboxClient {
313
318
  status: response.status,
314
319
  stdoutStreamUrl: response.stdoutStreamUrl,
315
320
  stderrStreamUrl: response.stderrStreamUrl,
321
+ auditStreamUrl: response.auditStreamUrl,
316
322
 
317
323
  async execute(executeOptions: ExecuteOptions): Promise<Execution> {
318
324
  const { pipe, ...coreOptions } = executeOptions;
@@ -1,8 +1,8 @@
1
1
  import type { SandboxCreateOptions, SandboxStatus } from '@agentuity/core';
2
2
  import { z } from 'zod';
3
- import { type APIClient, APIResponseSchema } from '../api';
4
- import { NPM_PACKAGE_NAME_PATTERN } from './snapshot-build';
5
- import { API_VERSION, throwSandboxError } from './util';
3
+ import { type APIClient, APIResponseSchema } from '../api.ts';
4
+ import { NPM_PACKAGE_NAME_PATTERN } from './snapshot-build.ts';
5
+ import { API_VERSION, throwSandboxError } from './util.ts';
6
6
 
7
7
  export const SandboxCreateRequestSchema = z
8
8
  .object({
@@ -122,12 +122,23 @@ export const SandboxCreateDataSchema = z
122
122
  .object({
123
123
  sandboxId: z.string().describe('Unique identifier for the created sandbox'),
124
124
  status: z
125
- .enum(['creating', 'idle', 'running', 'paused', 'stopping', 'suspended', 'terminated', 'failed'])
125
+ .enum([
126
+ 'creating',
127
+ 'idle',
128
+ 'running',
129
+ 'paused',
130
+ 'stopping',
131
+ 'suspended',
132
+ 'terminated',
133
+ 'failed',
134
+ ])
126
135
  .describe('Current status of the sandbox'),
127
136
  stdoutStreamId: z.string().optional().describe('Stream ID for reading stdout'),
128
137
  stdoutStreamUrl: z.string().optional().describe('URL for streaming stdout output'),
129
138
  stderrStreamId: z.string().optional().describe('Stream ID for reading stderr'),
130
139
  stderrStreamUrl: z.string().optional().describe('URL for streaming stderr output'),
140
+ auditStreamId: z.string().optional().describe('Stream ID for reading audit events'),
141
+ auditStreamUrl: z.string().optional().describe('URL for streaming audit events'),
131
142
  })
132
143
  .describe('Response data from sandbox creation');
133
144
 
@@ -140,6 +151,8 @@ export interface SandboxCreateResponse {
140
151
  stdoutStreamUrl?: string;
141
152
  stderrStreamId?: string;
142
153
  stderrStreamUrl?: string;
154
+ auditStreamId?: string;
155
+ auditStreamUrl?: string;
143
156
  }
144
157
 
145
158
  export interface SandboxCreateParams {
@@ -1,6 +1,6 @@
1
1
  import type { z } from 'zod';
2
- import { type APIClient, APIResponseSchemaNoData } from '../api';
3
- import { API_VERSION, throwSandboxError } from './util';
2
+ import { type APIClient, APIResponseSchemaNoData } from '../api.ts';
3
+ import { API_VERSION, throwSandboxError } from './util.ts';
4
4
 
5
5
  export const DestroyResponseSchema = APIResponseSchemaNoData();
6
6
 
@@ -1,7 +1,7 @@
1
1
  import type { ExecuteOptions, Execution, ExecutionStatus } from '@agentuity/core';
2
2
  import { z } from 'zod';
3
- import { type APIClient, APIResponseSchema } from '../api';
4
- import { API_VERSION, SandboxBusyError, throwSandboxError } from './util';
3
+ import { type APIClient, APIResponseSchema } from '../api.ts';
4
+ import { API_VERSION, SandboxBusyError, throwSandboxError } from './util.ts';
5
5
 
6
6
  export const ExecuteRequestSchema = z
7
7
  .object({
@@ -1,7 +1,7 @@
1
1
  import type { ExecutionStatus } from '@agentuity/core';
2
2
  import { z } from 'zod';
3
- import { type APIClient, APIResponseSchema } from '../api';
4
- import { API_VERSION, throwSandboxError } from './util';
3
+ import { type APIClient, APIResponseSchema } from '../api.ts';
4
+ import { API_VERSION, throwSandboxError } from './util.ts';
5
5
 
6
6
  export const ExecutionInfoSchema = z
7
7
  .object({
@@ -1,6 +1,6 @@
1
1
  import { z } from 'zod';
2
- import { APIClient } from '../api';
3
- import { SandboxResponseError, throwSandboxError, API_VERSION } from './util';
2
+ import { APIClient } from '../api.ts';
3
+ import { SandboxResponseError, throwSandboxError, API_VERSION } from './util.ts';
4
4
  import type { FileToWrite } from '@agentuity/core';
5
5
 
6
6
  export const FileToWriteSchema = z.object({
@@ -5,8 +5,8 @@ import type {
5
5
  SandboxStatus,
6
6
  } from '@agentuity/core';
7
7
  import { z } from 'zod';
8
- import { type APIClient, APIResponseSchema } from '../api';
9
- import { API_VERSION, throwSandboxError } from './util';
8
+ import { type APIClient, APIResponseSchema } from '../api.ts';
9
+ import { API_VERSION, throwSandboxError } from './util.ts';
10
10
 
11
11
  export const SandboxResourcesSchema = z
12
12
  .object({
@@ -105,7 +105,17 @@ export const SandboxInfoDataSchema = z
105
105
  name: z.string().optional().describe('Sandbox name'),
106
106
  description: z.string().optional().describe('Sandbox description'),
107
107
  status: z
108
- .enum(['creating', 'idle', 'running', 'paused', 'stopping', 'suspended', 'terminated', 'failed', 'deleted'])
108
+ .enum([
109
+ 'creating',
110
+ 'idle',
111
+ 'running',
112
+ 'paused',
113
+ 'stopping',
114
+ 'suspended',
115
+ 'terminated',
116
+ 'failed',
117
+ 'deleted',
118
+ ])
109
119
  .describe('Current status of the sandbox'),
110
120
  mode: z.string().optional().describe('Sandbox mode (interactive or oneshot)'),
111
121
  createdAt: z.string().describe('ISO timestamp when the sandbox was created'),
@@ -119,6 +129,8 @@ export const SandboxInfoDataSchema = z
119
129
  .describe('Exit code from the last execution (only for terminated/failed sandboxes)'),
120
130
  stdoutStreamUrl: z.string().optional().describe('URL for streaming stdout output'),
121
131
  stderrStreamUrl: z.string().optional().describe('URL for streaming stderr output'),
132
+ auditStreamId: z.string().optional().describe('ID of the audit event stream'),
133
+ auditStreamUrl: z.string().optional().describe('URL for streaming audit events'),
122
134
  dependencies: z
123
135
  .array(z.string())
124
136
  .optional()
@@ -212,6 +224,8 @@ export async function sandboxGet(
212
224
  exitCode: resp.data.exitCode,
213
225
  stdoutStreamUrl: resp.data.stdoutStreamUrl,
214
226
  stderrStreamUrl: resp.data.stderrStreamUrl,
227
+ auditStreamId: resp.data.auditStreamId,
228
+ auditStreamUrl: resp.data.auditStreamUrl,
215
229
  dependencies: resp.data.dependencies,
216
230
  packages: resp.data.packages,
217
231
  metadata: resp.data.metadata as Record<string, unknown> | undefined,
@@ -1,34 +1,38 @@
1
- export type { CLISandboxInfo, CLISandboxListData, CLISandboxListOptions } from './cli-list';
2
- export { cliSandboxList, SandboxListDataSchema, SandboxListResponseSchema } from './cli-list';
1
+ export type { CLISandboxInfo, CLISandboxListData, CLISandboxListOptions } from './cli-list.ts';
2
+ export { cliSandboxList, SandboxListDataSchema, SandboxListResponseSchema } from './cli-list.ts';
3
3
  export type {
4
4
  ExecuteOptions,
5
5
  SandboxClientOptions,
6
6
  SandboxClientRunIO,
7
7
  SandboxInstance,
8
- } from './client';
9
- export { SandboxClient } from './client';
10
- export type { SandboxCreateParams, SandboxCreateResponse } from './create';
8
+ } from './client.ts';
9
+ export { SandboxClient } from './client.ts';
10
+ export type { SandboxCreateParams, SandboxCreateResponse } from './create.ts';
11
11
  export {
12
12
  SandboxCreateDataSchema,
13
13
  SandboxCreateRequestSchema,
14
14
  SandboxCreateResponseSchema,
15
15
  sandboxCreate,
16
- } from './create';
17
- export type { SandboxDestroyParams } from './destroy';
18
- export { DestroyResponseSchema, sandboxDestroy } from './destroy';
19
- export type { SandboxExecuteParams } from './execute';
16
+ } from './create.ts';
17
+ export type { SandboxDestroyParams } from './destroy.ts';
18
+ export { DestroyResponseSchema, sandboxDestroy } from './destroy.ts';
19
+ export type { SandboxPauseParams } from './pause.ts';
20
+ export { PauseResponseSchema, sandboxPause } from './pause.ts';
21
+ export type { SandboxResumeParams } from './resume.ts';
22
+ export { ResumeResponseSchema, sandboxResume } from './resume.ts';
23
+ export type { SandboxExecuteParams } from './execute.ts';
20
24
  export {
21
25
  ExecuteDataSchema,
22
26
  ExecuteRequestSchema,
23
27
  ExecuteResponseSchema,
24
28
  sandboxExecute,
25
- } from './execute';
29
+ } from './execute.ts';
26
30
  export type {
27
31
  ExecutionGetParams,
28
32
  ExecutionInfo,
29
33
  ExecutionListParams,
30
34
  ExecutionListResponse,
31
- } from './execution';
35
+ } from './execution.ts';
32
36
  export {
33
37
  ExecutionGetResponseSchema,
34
38
  ExecutionInfoSchema,
@@ -36,7 +40,7 @@ export {
36
40
  ExecutionListResponseSchema,
37
41
  executionGet,
38
42
  executionList,
39
- } from './execution';
43
+ } from './execution.ts';
40
44
  export type {
41
45
  ArchiveFormat,
42
46
  DownloadArchiveParams,
@@ -52,7 +56,7 @@ export type {
52
56
  UploadArchiveParams,
53
57
  WriteFilesParams,
54
58
  WriteFilesResult,
55
- } from './files';
59
+ } from './files.ts';
56
60
  export {
57
61
  FileInfoSchema,
58
62
  FileToWriteSchema,
@@ -80,8 +84,8 @@ export {
80
84
  WriteFilesDataSchema,
81
85
  WriteFilesRequestSchema,
82
86
  WriteFilesResponseSchema,
83
- } from './files';
84
- export type { SandboxGetParams } from './get';
87
+ } from './files.ts';
88
+ export type { SandboxGetParams } from './get.ts';
85
89
  export {
86
90
  SandboxAgentInfoSchema,
87
91
  SandboxGetResponseSchema,
@@ -90,8 +94,8 @@ export {
90
94
  SandboxResourcesSchema,
91
95
  SandboxUserInfoSchema,
92
96
  sandboxGet,
93
- } from './get';
94
- export type { SandboxListParams } from './list';
97
+ } from './get.ts';
98
+ export type { SandboxListParams } from './list.ts';
95
99
  export {
96
100
  ListSandboxesDataSchema,
97
101
  ListSandboxesResponseSchema,
@@ -102,24 +106,24 @@ export {
102
106
  SandboxSnapshotOrgInfoSchema,
103
107
  SandboxSnapshotUserInfoSchema,
104
108
  sandboxList,
105
- } from './list';
106
- export type { ResolvedSandboxInfo } from './resolve';
109
+ } from './list.ts';
110
+ export type { ResolvedSandboxInfo } from './resolve.ts';
107
111
  export {
108
112
  SandboxResolveDataSchema,
109
113
  SandboxResolveError,
110
114
  SandboxResolveResponseSchema,
111
115
  sandboxResolve,
112
- } from './resolve';
113
- export type { SandboxRunParams } from './run';
114
- export { sandboxRun } from './run';
115
- export type { RuntimeListParams } from './runtime';
116
+ } from './resolve.ts';
117
+ export type { SandboxRunParams } from './run.ts';
118
+ export { sandboxRun } from './run.ts';
119
+ export type { RuntimeListParams } from './runtime.ts';
116
120
  export {
117
121
  ListRuntimesDataSchema,
118
122
  ListRuntimesResponseSchema,
119
123
  RuntimeInfoSchema,
120
124
  RuntimeRequirementsSchema,
121
125
  runtimeList,
122
- } from './runtime';
126
+ } from './runtime.ts';
123
127
  export type {
124
128
  SnapshotBuildFinalizeParams,
125
129
  SnapshotBuildGitInfo,
@@ -140,7 +144,7 @@ export type {
140
144
  SnapshotTagParams,
141
145
  SnapshotUploadParams,
142
146
  SnapshotUploadResponse,
143
- } from './snapshot';
147
+ } from './snapshot.ts';
144
148
  export {
145
149
  SnapshotBuildGitInfoSchema,
146
150
  SnapshotBuildInitAPIResponseSchema,
@@ -169,10 +173,10 @@ export {
169
173
  snapshotPublicList,
170
174
  snapshotTag,
171
175
  snapshotUpload,
172
- } from './snapshot';
173
- export type { SnapshotBuildFile } from './snapshot-build';
174
- export { SnapshotBuildFileSchema, NPM_PACKAGE_NAME_PATTERN } from './snapshot-build';
175
- export type { SandboxErrorCode, SandboxErrorContext } from './util';
176
+ } from './snapshot.ts';
177
+ export type { SnapshotBuildFile } from './snapshot-build.ts';
178
+ export { SnapshotBuildFileSchema, NPM_PACKAGE_NAME_PATTERN } from './snapshot-build.ts';
179
+ export type { SandboxErrorCode, SandboxErrorContext } from './util.ts';
176
180
  export {
177
181
  ExecutionCancelledError,
178
182
  ExecutionNotFoundError,
@@ -184,4 +188,4 @@ export {
184
188
  SnapshotNotFoundError,
185
189
  throwSandboxError,
186
190
  writeAndDrain,
187
- } from './util';
191
+ } from './util.ts';
@@ -6,8 +6,8 @@ import type {
6
6
  SandboxStatus,
7
7
  } from '@agentuity/core';
8
8
  import { z } from 'zod';
9
- import { type APIClient, APIResponseSchema } from '../api';
10
- import { API_VERSION, throwSandboxError } from './util';
9
+ import { type APIClient, APIResponseSchema } from '../api.ts';
10
+ import { API_VERSION, throwSandboxError } from './util.ts';
11
11
 
12
12
  export const SandboxOrgInfoSchema = z
13
13
  .object({
@@ -76,7 +76,17 @@ export const SandboxInfoSchema = z
76
76
  name: z.string().optional().describe('Sandbox name'),
77
77
  description: z.string().optional().describe('Sandbox description'),
78
78
  status: z
79
- .enum(['creating', 'idle', 'running', 'paused', 'stopping', 'suspended', 'terminated', 'failed', 'deleted'])
79
+ .enum([
80
+ 'creating',
81
+ 'idle',
82
+ 'running',
83
+ 'paused',
84
+ 'stopping',
85
+ 'suspended',
86
+ 'terminated',
87
+ 'failed',
88
+ 'deleted',
89
+ ])
80
90
  .describe('Current status of the sandbox'),
81
91
  mode: z.string().optional().describe('Sandbox mode (interactive or oneshot)'),
82
92
  createdAt: z.string().describe('ISO timestamp when the sandbox was created'),
@@ -86,6 +96,8 @@ export const SandboxInfoSchema = z
86
96
  executions: z.number().describe('Total number of executions in this sandbox'),
87
97
  stdoutStreamUrl: z.string().optional().describe('URL for streaming stdout output'),
88
98
  stderrStreamUrl: z.string().optional().describe('URL for streaming stderr output'),
99
+ auditStreamId: z.string().optional().describe('ID of the audit event stream'),
100
+ auditStreamUrl: z.string().optional().describe('URL for streaming audit events'),
89
101
  networkEnabled: z.boolean().optional().describe('Whether network access is enabled'),
90
102
  networkPort: z.number().optional().describe('Network port exposed from the sandbox'),
91
103
  url: z
@@ -197,6 +209,8 @@ export async function sandboxList(
197
209
  executions: s.executions,
198
210
  stdoutStreamUrl: s.stdoutStreamUrl,
199
211
  stderrStreamUrl: s.stderrStreamUrl,
212
+ auditStreamId: s.auditStreamId,
213
+ auditStreamUrl: s.auditStreamUrl,
200
214
  networkEnabled: s.networkEnabled,
201
215
  networkPort: s.networkPort,
202
216
  url: s.url,
@@ -0,0 +1,39 @@
1
+ import type { z } from 'zod';
2
+ import { type APIClient, APIResponseSchemaNoData } from '../api';
3
+ import { API_VERSION, throwSandboxError } from './util';
4
+
5
+ export const PauseResponseSchema = APIResponseSchemaNoData();
6
+
7
+ export interface SandboxPauseParams {
8
+ sandboxId: string;
9
+ orgId?: string;
10
+ }
11
+
12
+ /**
13
+ * Pauses a running sandbox, creating a checkpoint of its current state.
14
+ *
15
+ * @param client - The API client to use for the request
16
+ * @param params - Parameters including the sandbox ID to pause
17
+ * @throws {SandboxResponseError} If the sandbox is not found or pause fails
18
+ */
19
+ export async function sandboxPause(client: APIClient, params: SandboxPauseParams): Promise<void> {
20
+ const { sandboxId, orgId } = params;
21
+ const queryParams = new URLSearchParams();
22
+ if (orgId) {
23
+ queryParams.set('orgId', orgId);
24
+ }
25
+ const queryString = queryParams.toString();
26
+ const url = `/sandbox/${API_VERSION}/${sandboxId}/pause${queryString ? `?${queryString}` : ''}`;
27
+
28
+ const resp = await client.post<z.infer<typeof PauseResponseSchema>>(
29
+ url,
30
+ undefined,
31
+ PauseResponseSchema
32
+ );
33
+
34
+ if (resp.success) {
35
+ return;
36
+ }
37
+
38
+ throwSandboxError(resp, { sandboxId });
39
+ }
@@ -1,6 +1,6 @@
1
1
  import { StructuredError } from '@agentuity/core';
2
2
  import { z } from 'zod';
3
- import { type APIClient, APIResponseSchemaOptionalData } from '../api';
3
+ import { type APIClient, APIResponseSchemaOptionalData } from '../api.ts';
4
4
 
5
5
  /**
6
6
  * Data schema for sandbox resolve endpoint
@@ -0,0 +1,39 @@
1
+ import type { z } from 'zod';
2
+ import { type APIClient, APIResponseSchemaNoData } from '../api';
3
+ import { API_VERSION, throwSandboxError } from './util';
4
+
5
+ export const ResumeResponseSchema = APIResponseSchemaNoData();
6
+
7
+ export interface SandboxResumeParams {
8
+ sandboxId: string;
9
+ orgId?: string;
10
+ }
11
+
12
+ /**
13
+ * Resumes a paused sandbox from its checkpoint.
14
+ *
15
+ * @param client - The API client to use for the request
16
+ * @param params - Parameters including the sandbox ID to resume
17
+ * @throws {SandboxResponseError} If the sandbox is not found or resume fails
18
+ */
19
+ export async function sandboxResume(client: APIClient, params: SandboxResumeParams): Promise<void> {
20
+ const { sandboxId, orgId } = params;
21
+ const queryParams = new URLSearchParams();
22
+ if (orgId) {
23
+ queryParams.set('orgId', orgId);
24
+ }
25
+ const queryString = queryParams.toString();
26
+ const url = `/sandbox/${API_VERSION}/${sandboxId}/resume${queryString ? `?${queryString}` : ''}`;
27
+
28
+ const resp = await client.post<z.infer<typeof ResumeResponseSchema>>(
29
+ url,
30
+ undefined,
31
+ ResumeResponseSchema
32
+ );
33
+
34
+ if (resp.success) {
35
+ return;
36
+ }
37
+
38
+ throwSandboxError(resp, { sandboxId });
39
+ }
@@ -1,13 +1,13 @@
1
1
  import type { Logger } from '@agentuity/core';
2
2
  import type { Readable, Writable } from 'node:stream';
3
3
  import { PassThrough } from 'node:stream';
4
- import { APIClient, PaymentRequiredError } from '../api';
5
- import { sandboxCreate } from './create';
6
- import { sandboxDestroy } from './destroy';
7
- import { sandboxGet } from './get';
8
- import { ExecutionCancelledError, ExecutionTimeoutError, writeAndDrain } from './util';
4
+ import { APIClient, PaymentRequiredError } from '../api.ts';
5
+ import { sandboxCreate } from './create.ts';
6
+ import { sandboxDestroy } from './destroy.ts';
7
+ import { sandboxGet } from './get.ts';
8
+ import { ExecutionCancelledError, ExecutionTimeoutError, writeAndDrain } from './util.ts';
9
9
  import type { SandboxRunOptions, SandboxRunResult } from '@agentuity/core';
10
- import { getServiceUrls } from '../../config';
10
+ import { getServiceUrls } from '../../config.ts';
11
11
 
12
12
  /**
13
13
  * Creates a Writable stream that captures all chunks to a buffer array
@@ -1,7 +1,7 @@
1
1
  import type { ListRuntimesParams, ListRuntimesResponse, SandboxRuntime } from '@agentuity/core';
2
2
  import { z } from 'zod';
3
- import { type APIClient, APIResponseSchema } from '../api';
4
- import { API_VERSION, throwSandboxError } from './util';
3
+ import { type APIClient, APIResponseSchema } from '../api.ts';
4
+ import { API_VERSION, throwSandboxError } from './util.ts';
5
5
 
6
6
  export const RuntimeRequirementsSchema = z
7
7
  .object({
@@ -1,7 +1,7 @@
1
1
  import { z } from 'zod';
2
- import { type APIClient, APIResponseSchema, APIResponseSchemaNoData } from '../api';
3
- import { NPM_PACKAGE_NAME_PATTERN } from './snapshot-build';
4
- import { API_VERSION, SandboxResponseError, throwSandboxError } from './util';
2
+ import { type APIClient, APIResponseSchema, APIResponseSchemaNoData } from '../api.ts';
3
+ import { NPM_PACKAGE_NAME_PATTERN } from './snapshot-build.ts';
4
+ import { API_VERSION, SandboxResponseError, throwSandboxError } from './util.ts';
5
5
 
6
6
  export const SnapshotFileInfoSchema = z
7
7
  .object({
@@ -184,6 +184,12 @@ export interface SandboxErrorContext {
184
184
  * when the backend returns a known error code, and falling back to
185
185
  * SandboxResponseError for unknown codes.
186
186
  *
187
+ * Note: Pause and resume operations use standard error codes. The backend
188
+ * returns SANDBOX_NOT_FOUND when the sandbox doesn't exist, and HTTP 409
189
+ * Conflict (handled by APIClient retries) for invalid state transitions
190
+ * (e.g. pausing a non-running sandbox, resuming a non-suspended sandbox).
191
+ * No additional error codes are needed for pause/resume.
192
+ *
187
193
  * @param resp - The API response containing message and optional code
188
194
  * @param context - Context about the operation (sandbox ID, execution ID, etc.)
189
195
  * @throws {SandboxNotFoundError} When code is 'SANDBOX_NOT_FOUND'
@@ -1,7 +1,7 @@
1
1
  import { z } from 'zod';
2
- import { APIClient, APIResponseSchema } from '../api';
3
- import { SessionSchema, type Session } from './list';
4
- import { SessionResponseError } from './util';
2
+ import { APIClient, APIResponseSchema } from '../api.ts';
3
+ import { SessionSchema, type Session } from './list.ts';
4
+ import { SessionResponseError } from './util.ts';
5
5
 
6
6
  export const _SessionGetRequestSchema = z.object({
7
7
  id: z.string().describe('the session id'),
@@ -1,3 +1,3 @@
1
- export * from './get';
2
- export * from './list';
3
- export * from './logs';
1
+ export * from './get.ts';
2
+ export * from './list.ts';
3
+ export * from './logs.ts';
@@ -1,7 +1,7 @@
1
1
  import type { SortDirection } from '@agentuity/core';
2
2
  import { z } from 'zod';
3
- import { APIClient, APIResponseSchema } from '../api';
4
- import { SessionResponseError } from './util';
3
+ import { APIClient, APIResponseSchema } from '../api.ts';
4
+ import { SessionResponseError } from './util.ts';
5
5
 
6
6
  const SessionSchema = z.object({
7
7
  id: z.string().describe('the session id'),
@@ -1,6 +1,6 @@
1
1
  import { z } from 'zod';
2
- import { APIClient, APIResponseSchema } from '../api';
3
- import { SessionResponseError } from './util';
2
+ import { APIClient, APIResponseSchema } from '../api.ts';
3
+ import { SessionResponseError } from './util.ts';
4
4
 
5
5
  export const _SessionLogsRequestSchema = z.object({
6
6
  id: z.string().describe('the session id'),
@@ -1,6 +1,6 @@
1
1
  import { z } from 'zod';
2
- import { type APIClient, APIResponseSchema } from '../api';
3
- import { StreamResponseError } from './util';
2
+ import { type APIClient, APIResponseSchema } from '../api.ts';
3
+ import { StreamResponseError } from './util.ts';
4
4
 
5
5
  export const StreamDetailSchema = z.object({
6
6
  id: z.string().describe('the stream id'),
@@ -1,3 +1,3 @@
1
- export * from './get';
2
- export * from './list';
3
- export * from './util';
1
+ export * from './get.ts';
2
+ export * from './list.ts';
3
+ export * from './util.ts';
@@ -1,7 +1,7 @@
1
1
  import type { SortDirection } from '@agentuity/core';
2
2
  import { z } from 'zod';
3
- import { type APIClient, APIResponseSchema } from '../api';
4
- import { StreamResponseError } from './util';
3
+ import { type APIClient, APIResponseSchema } from '../api.ts';
4
+ import { StreamResponseError } from './util.ts';
5
5
 
6
6
  export const StreamInfoSchema = z.object({
7
7
  id: z.string().describe('the stream id'),
@@ -1,6 +1,6 @@
1
1
  import { z } from 'zod';
2
- import { APIClient, APIResponseSchemaNoData } from '../api';
3
- import { ThreadResponseError } from './util';
2
+ import { APIClient, APIResponseSchemaNoData } from '../api.ts';
3
+ import { ThreadResponseError } from './util.ts';
4
4
 
5
5
  export const _ThreadDeleteRequestSchema = z.object({
6
6
  id: z.string().describe('the thread id'),
@@ -1,7 +1,7 @@
1
1
  import { z } from 'zod';
2
- import { APIClient, APIResponseSchema } from '../api';
3
- import { ThreadSchema, type Thread } from './list';
4
- import { ThreadResponseError } from './util';
2
+ import { APIClient, APIResponseSchema } from '../api.ts';
3
+ import { ThreadSchema, type Thread } from './list.ts';
4
+ import { ThreadResponseError } from './util.ts';
5
5
 
6
6
  export const _ThreadGetRequestSchema = z.object({
7
7
  id: z.string().describe('the thread id'),
@@ -1,4 +1,4 @@
1
- export * from './get';
2
- export * from './list';
3
- export * from './delete';
4
- export * from './util';
1
+ export * from './get.ts';
2
+ export * from './list.ts';
3
+ export * from './delete.ts';
4
+ export * from './util.ts';
@@ -1,7 +1,7 @@
1
1
  import type { SortDirection } from '@agentuity/core';
2
2
  import { z } from 'zod';
3
- import { APIClient, APIResponseSchema } from '../api';
4
- import { ThreadResponseError } from './util';
3
+ import { APIClient, APIResponseSchema } from '../api.ts';
4
+ import { ThreadResponseError } from './util.ts';
5
5
 
6
6
  export const ThreadSchema = z.object({
7
7
  id: z.string().describe('the thread id'),
@@ -1 +1 @@
1
- export * from './whoami';
1
+ export * from './whoami.ts';