@agentuity/server 1.0.31 → 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 (566) hide show
  1. package/AGENTS.md +1 -0
  2. package/dist/api/api.d.ts +1 -227
  3. package/dist/api/api.d.ts.map +1 -1
  4. package/dist/api/api.js +1 -637
  5. package/dist/api/api.js.map +1 -1
  6. package/dist/api/index.d.ts +1 -17
  7. package/dist/api/index.d.ts.map +1 -1
  8. package/dist/api/index.js +1 -17
  9. package/dist/api/index.js.map +1 -1
  10. package/dist/api/org/env-delete.d.ts +1 -22
  11. package/dist/api/org/env-delete.d.ts.map +1 -1
  12. package/dist/api/org/env-delete.js +1 -24
  13. package/dist/api/org/env-delete.js.map +1 -1
  14. package/dist/api/org/env-get.d.ts +1 -32
  15. package/dist/api/org/env-get.d.ts.map +1 -1
  16. package/dist/api/org/env-get.js +1 -25
  17. package/dist/api/org/env-get.js.map +1 -1
  18. package/dist/api/org/env-update.d.ts +1 -23
  19. package/dist/api/org/env-update.d.ts.map +1 -1
  20. package/dist/api/org/env-update.js +1 -25
  21. package/dist/api/org/env-update.js.map +1 -1
  22. package/dist/api/project/get.d.ts +1 -42
  23. package/dist/api/project/get.d.ts.map +1 -1
  24. package/dist/api/project/get.js +1 -35
  25. package/dist/api/project/get.js.map +1 -1
  26. package/dist/api/project/list.d.ts +1 -47
  27. package/dist/api/project/list.d.ts.map +1 -1
  28. package/dist/api/project/list.js +1 -37
  29. package/dist/api/project/list.js.map +1 -1
  30. package/dist/api/project/malware.d.ts +1 -70
  31. package/dist/api/project/malware.d.ts.map +1 -1
  32. package/dist/api/project/malware.js +1 -41
  33. package/dist/api/project/malware.js.map +1 -1
  34. package/dist/api/region/create.d.ts +1 -80
  35. package/dist/api/region/create.d.ts.map +1 -1
  36. package/dist/api/region/create.js +1 -176
  37. package/dist/api/region/create.js.map +1 -1
  38. package/dist/api/sandbox/client.d.ts +1 -190
  39. package/dist/api/sandbox/client.d.ts.map +1 -1
  40. package/dist/api/sandbox/client.js +1 -260
  41. package/dist/api/sandbox/client.js.map +1 -1
  42. package/dist/api/sandbox/pause.d.ts +1 -21
  43. package/dist/api/sandbox/pause.d.ts.map +1 -1
  44. package/dist/api/sandbox/pause.js +1 -24
  45. package/dist/api/sandbox/pause.js.map +1 -1
  46. package/dist/api/sandbox/resume.d.ts +1 -21
  47. package/dist/api/sandbox/resume.d.ts.map +1 -1
  48. package/dist/api/sandbox/resume.js +1 -24
  49. package/dist/api/sandbox/resume.js.map +1 -1
  50. package/dist/api/sandbox/util.d.ts +1 -284
  51. package/dist/api/sandbox/util.d.ts.map +1 -1
  52. package/dist/api/sandbox/util.js +1 -210
  53. package/dist/api/sandbox/util.js.map +1 -1
  54. package/dist/api/user/whoami.d.ts +1 -38
  55. package/dist/api/user/whoami.d.ts.map +1 -1
  56. package/dist/api/user/whoami.js +1 -26
  57. package/dist/api/user/whoami.js.map +1 -1
  58. package/dist/index.d.ts +1 -4
  59. package/dist/index.d.ts.map +1 -1
  60. package/dist/index.js +3 -12
  61. package/dist/index.js.map +1 -1
  62. package/dist/util/resources.js +2 -2
  63. package/dist/util/resources.js.map +1 -1
  64. package/package.json +4 -4
  65. package/src/api/api.ts +1 -936
  66. package/src/api/index.ts +1 -17
  67. package/src/api/org/env-delete.ts +1 -37
  68. package/src/api/org/env-get.ts +1 -43
  69. package/src/api/org/env-update.ts +1 -38
  70. package/src/api/project/get.ts +1 -49
  71. package/src/api/project/list.ts +1 -54
  72. package/src/api/project/malware.ts +1 -68
  73. package/src/api/region/create.ts +1 -207
  74. package/src/api/sandbox/client.ts +1 -460
  75. package/src/api/sandbox/pause.ts +1 -39
  76. package/src/api/sandbox/resume.ts +1 -39
  77. package/src/api/sandbox/util.ts +1 -276
  78. package/src/api/user/whoami.ts +1 -32
  79. package/src/index.ts +3 -30
  80. package/src/util/resources.ts +2 -2
  81. package/dist/api/apikey/create.d.ts +0 -33
  82. package/dist/api/apikey/create.d.ts.map +0 -1
  83. package/dist/api/apikey/create.js +0 -23
  84. package/dist/api/apikey/create.js.map +0 -1
  85. package/dist/api/apikey/delete.d.ts +0 -19
  86. package/dist/api/apikey/delete.d.ts.map +0 -1
  87. package/dist/api/apikey/delete.js +0 -19
  88. package/dist/api/apikey/delete.js.map +0 -1
  89. package/dist/api/apikey/get.d.ts +0 -45
  90. package/dist/api/apikey/get.d.ts.map +0 -1
  91. package/dist/api/apikey/get.js +0 -36
  92. package/dist/api/apikey/get.js.map +0 -1
  93. package/dist/api/apikey/index.d.ts +0 -6
  94. package/dist/api/apikey/index.d.ts.map +0 -1
  95. package/dist/api/apikey/index.js +0 -6
  96. package/dist/api/apikey/index.js.map +0 -1
  97. package/dist/api/apikey/list.d.ts +0 -64
  98. package/dist/api/apikey/list.d.ts.map +0 -1
  99. package/dist/api/apikey/list.js +0 -46
  100. package/dist/api/apikey/list.js.map +0 -1
  101. package/dist/api/apikey/util.d.ts +0 -23
  102. package/dist/api/apikey/util.d.ts.map +0 -1
  103. package/dist/api/apikey/util.js +0 -3
  104. package/dist/api/apikey/util.js.map +0 -1
  105. package/dist/api/db/index.d.ts +0 -5
  106. package/dist/api/db/index.d.ts.map +0 -1
  107. package/dist/api/db/index.js +0 -5
  108. package/dist/api/db/index.js.map +0 -1
  109. package/dist/api/db/logs.d.ts +0 -70
  110. package/dist/api/db/logs.d.ts.map +0 -1
  111. package/dist/api/db/logs.js +0 -59
  112. package/dist/api/db/logs.js.map +0 -1
  113. package/dist/api/db/query.d.ts +0 -39
  114. package/dist/api/db/query.d.ts.map +0 -1
  115. package/dist/api/db/query.js +0 -49
  116. package/dist/api/db/query.js.map +0 -1
  117. package/dist/api/db/tables.d.ts +0 -49
  118. package/dist/api/db/tables.d.ts.map +0 -1
  119. package/dist/api/db/tables.js +0 -59
  120. package/dist/api/db/tables.js.map +0 -1
  121. package/dist/api/db/util.d.ts +0 -31
  122. package/dist/api/db/util.d.ts.map +0 -1
  123. package/dist/api/db/util.js +0 -4
  124. package/dist/api/db/util.js.map +0 -1
  125. package/dist/api/eval/get.d.ts +0 -36
  126. package/dist/api/eval/get.d.ts.map +0 -1
  127. package/dist/api/eval/get.js +0 -23
  128. package/dist/api/eval/get.js.map +0 -1
  129. package/dist/api/eval/index.d.ts +0 -5
  130. package/dist/api/eval/index.d.ts.map +0 -1
  131. package/dist/api/eval/index.js +0 -5
  132. package/dist/api/eval/index.js.map +0 -1
  133. package/dist/api/eval/list.d.ts +0 -50
  134. package/dist/api/eval/list.d.ts.map +0 -1
  135. package/dist/api/eval/list.js +0 -32
  136. package/dist/api/eval/list.js.map +0 -1
  137. package/dist/api/eval/run-get.d.ts +0 -48
  138. package/dist/api/eval/run-get.d.ts.map +0 -1
  139. package/dist/api/eval/run-get.js +0 -29
  140. package/dist/api/eval/run-get.js.map +0 -1
  141. package/dist/api/eval/run-list.d.ts +0 -70
  142. package/dist/api/eval/run-list.d.ts.map +0 -1
  143. package/dist/api/eval/run-list.js +0 -42
  144. package/dist/api/eval/run-list.js.map +0 -1
  145. package/dist/api/machine/index.d.ts +0 -3
  146. package/dist/api/machine/index.d.ts.map +0 -1
  147. package/dist/api/machine/index.js +0 -3
  148. package/dist/api/machine/index.js.map +0 -1
  149. package/dist/api/machine/machine.d.ts +0 -192
  150. package/dist/api/machine/machine.d.ts.map +0 -1
  151. package/dist/api/machine/machine.js +0 -109
  152. package/dist/api/machine/machine.js.map +0 -1
  153. package/dist/api/machine/util.d.ts +0 -14
  154. package/dist/api/machine/util.d.ts.map +0 -1
  155. package/dist/api/machine/util.js +0 -3
  156. package/dist/api/machine/util.js.map +0 -1
  157. package/dist/api/org/index.d.ts +0 -7
  158. package/dist/api/org/index.d.ts.map +0 -1
  159. package/dist/api/org/index.js +0 -7
  160. package/dist/api/org/index.js.map +0 -1
  161. package/dist/api/org/list.d.ts +0 -27
  162. package/dist/api/org/list.d.ts.map +0 -1
  163. package/dist/api/org/list.js +0 -22
  164. package/dist/api/org/list.js.map +0 -1
  165. package/dist/api/org/resources.d.ts +0 -141
  166. package/dist/api/org/resources.d.ts.map +0 -1
  167. package/dist/api/org/resources.js +0 -92
  168. package/dist/api/org/resources.js.map +0 -1
  169. package/dist/api/org/util.d.ts +0 -45
  170. package/dist/api/org/util.d.ts.map +0 -1
  171. package/dist/api/org/util.js +0 -4
  172. package/dist/api/org/util.js.map +0 -1
  173. package/dist/api/project/agent.d.ts +0 -89
  174. package/dist/api/project/agent.d.ts.map +0 -1
  175. package/dist/api/project/agent.js +0 -60
  176. package/dist/api/project/agent.js.map +0 -1
  177. package/dist/api/project/create.d.ts +0 -37
  178. package/dist/api/project/create.d.ts.map +0 -1
  179. package/dist/api/project/create.js +0 -31
  180. package/dist/api/project/create.js.map +0 -1
  181. package/dist/api/project/delete.d.ts +0 -15
  182. package/dist/api/project/delete.d.ts.map +0 -1
  183. package/dist/api/project/delete.js +0 -13
  184. package/dist/api/project/delete.js.map +0 -1
  185. package/dist/api/project/deploy.d.ts +0 -490
  186. package/dist/api/project/deploy.d.ts.map +0 -1
  187. package/dist/api/project/deploy.js +0 -313
  188. package/dist/api/project/deploy.js.map +0 -1
  189. package/dist/api/project/deployment.d.ts +0 -237
  190. package/dist/api/project/deployment.d.ts.map +0 -1
  191. package/dist/api/project/deployment.js +0 -127
  192. package/dist/api/project/deployment.js.map +0 -1
  193. package/dist/api/project/env-delete.d.ts +0 -22
  194. package/dist/api/project/env-delete.d.ts.map +0 -1
  195. package/dist/api/project/env-delete.js +0 -29
  196. package/dist/api/project/env-delete.js.map +0 -1
  197. package/dist/api/project/env-update.d.ts +0 -31
  198. package/dist/api/project/env-update.d.ts.map +0 -1
  199. package/dist/api/project/env-update.js +0 -36
  200. package/dist/api/project/env-update.js.map +0 -1
  201. package/dist/api/project/exists.d.ts +0 -25
  202. package/dist/api/project/exists.d.ts.map +0 -1
  203. package/dist/api/project/exists.js +0 -45
  204. package/dist/api/project/exists.js.map +0 -1
  205. package/dist/api/project/hostname.d.ts +0 -25
  206. package/dist/api/project/hostname.d.ts.map +0 -1
  207. package/dist/api/project/hostname.js +0 -37
  208. package/dist/api/project/hostname.js.map +0 -1
  209. package/dist/api/project/index.d.ts +0 -14
  210. package/dist/api/project/index.d.ts.map +0 -1
  211. package/dist/api/project/index.js +0 -14
  212. package/dist/api/project/index.js.map +0 -1
  213. package/dist/api/project/update-region.d.ts +0 -27
  214. package/dist/api/project/update-region.d.ts.map +0 -1
  215. package/dist/api/project/update-region.js +0 -25
  216. package/dist/api/project/update-region.js.map +0 -1
  217. package/dist/api/project/util.d.ts +0 -62
  218. package/dist/api/project/util.d.ts.map +0 -1
  219. package/dist/api/project/util.js +0 -6
  220. package/dist/api/project/util.js.map +0 -1
  221. package/dist/api/queue/analytics.d.ts +0 -250
  222. package/dist/api/queue/analytics.d.ts.map +0 -1
  223. package/dist/api/queue/analytics.js +0 -233
  224. package/dist/api/queue/analytics.js.map +0 -1
  225. package/dist/api/queue/destinations.d.ts +0 -202
  226. package/dist/api/queue/destinations.d.ts.map +0 -1
  227. package/dist/api/queue/destinations.js +0 -168
  228. package/dist/api/queue/destinations.js.map +0 -1
  229. package/dist/api/queue/dlq.d.ts +0 -168
  230. package/dist/api/queue/dlq.d.ts.map +0 -1
  231. package/dist/api/queue/dlq.js +0 -166
  232. package/dist/api/queue/dlq.js.map +0 -1
  233. package/dist/api/queue/index.d.ts +0 -56
  234. package/dist/api/queue/index.d.ts.map +0 -1
  235. package/dist/api/queue/index.js +0 -90
  236. package/dist/api/queue/index.js.map +0 -1
  237. package/dist/api/queue/messages.d.ts +0 -503
  238. package/dist/api/queue/messages.d.ts.map +0 -1
  239. package/dist/api/queue/messages.js +0 -549
  240. package/dist/api/queue/messages.js.map +0 -1
  241. package/dist/api/queue/queues.d.ts +0 -226
  242. package/dist/api/queue/queues.d.ts.map +0 -1
  243. package/dist/api/queue/queues.js +0 -321
  244. package/dist/api/queue/queues.js.map +0 -1
  245. package/dist/api/queue/sources.d.ts +0 -202
  246. package/dist/api/queue/sources.d.ts.map +0 -1
  247. package/dist/api/queue/sources.js +0 -202
  248. package/dist/api/queue/sources.js.map +0 -1
  249. package/dist/api/queue/types.d.ts +0 -1218
  250. package/dist/api/queue/types.d.ts.map +0 -1
  251. package/dist/api/queue/types.js +0 -1002
  252. package/dist/api/queue/types.js.map +0 -1
  253. package/dist/api/queue/util.d.ts +0 -278
  254. package/dist/api/queue/util.d.ts.map +0 -1
  255. package/dist/api/queue/util.js +0 -235
  256. package/dist/api/queue/util.js.map +0 -1
  257. package/dist/api/queue/validation.d.ts +0 -247
  258. package/dist/api/queue/validation.d.ts.map +0 -1
  259. package/dist/api/queue/validation.js +0 -513
  260. package/dist/api/queue/validation.js.map +0 -1
  261. package/dist/api/queue/websocket.d.ts +0 -168
  262. package/dist/api/queue/websocket.d.ts.map +0 -1
  263. package/dist/api/queue/websocket.js +0 -394
  264. package/dist/api/queue/websocket.js.map +0 -1
  265. package/dist/api/region/delete.d.ts +0 -62
  266. package/dist/api/region/delete.d.ts.map +0 -1
  267. package/dist/api/region/delete.js +0 -37
  268. package/dist/api/region/delete.js.map +0 -1
  269. package/dist/api/region/index.d.ts +0 -5
  270. package/dist/api/region/index.d.ts.map +0 -1
  271. package/dist/api/region/index.js +0 -5
  272. package/dist/api/region/index.js.map +0 -1
  273. package/dist/api/region/list.d.ts +0 -27
  274. package/dist/api/region/list.d.ts.map +0 -1
  275. package/dist/api/region/list.js +0 -22
  276. package/dist/api/region/list.js.map +0 -1
  277. package/dist/api/region/resources.d.ts +0 -71
  278. package/dist/api/region/resources.d.ts.map +0 -1
  279. package/dist/api/region/resources.js +0 -53
  280. package/dist/api/region/resources.js.map +0 -1
  281. package/dist/api/region/util.d.ts +0 -23
  282. package/dist/api/region/util.d.ts.map +0 -1
  283. package/dist/api/region/util.js +0 -3
  284. package/dist/api/region/util.js.map +0 -1
  285. package/dist/api/sandbox/cli-list.d.ts +0 -114
  286. package/dist/api/sandbox/cli-list.d.ts.map +0 -1
  287. package/dist/api/sandbox/cli-list.js +0 -71
  288. package/dist/api/sandbox/cli-list.js.map +0 -1
  289. package/dist/api/sandbox/create.d.ts +0 -118
  290. package/dist/api/sandbox/create.d.ts.map +0 -1
  291. package/dist/api/sandbox/create.js +0 -211
  292. package/dist/api/sandbox/create.js.map +0 -1
  293. package/dist/api/sandbox/destroy.d.ts +0 -22
  294. package/dist/api/sandbox/destroy.d.ts.map +0 -1
  295. package/dist/api/sandbox/destroy.js +0 -25
  296. package/dist/api/sandbox/destroy.js.map +0 -1
  297. package/dist/api/sandbox/disk-checkpoint.d.ts +0 -103
  298. package/dist/api/sandbox/disk-checkpoint.d.ts.map +0 -1
  299. package/dist/api/sandbox/disk-checkpoint.js +0 -104
  300. package/dist/api/sandbox/disk-checkpoint.js.map +0 -1
  301. package/dist/api/sandbox/execute.d.ts +0 -69
  302. package/dist/api/sandbox/execute.d.ts.map +0 -1
  303. package/dist/api/sandbox/execute.js +0 -103
  304. package/dist/api/sandbox/execute.js.map +0 -1
  305. package/dist/api/sandbox/execution.d.ts +0 -169
  306. package/dist/api/sandbox/execution.d.ts.map +0 -1
  307. package/dist/api/sandbox/execution.js +0 -118
  308. package/dist/api/sandbox/execution.js.map +0 -1
  309. package/dist/api/sandbox/files.d.ts +0 -261
  310. package/dist/api/sandbox/files.d.ts.map +0 -1
  311. package/dist/api/sandbox/files.js +0 -386
  312. package/dist/api/sandbox/files.js.map +0 -1
  313. package/dist/api/sandbox/get.d.ts +0 -283
  314. package/dist/api/sandbox/get.d.ts.map +0 -1
  315. package/dist/api/sandbox/get.js +0 -215
  316. package/dist/api/sandbox/get.js.map +0 -1
  317. package/dist/api/sandbox/getStatus.d.ts +0 -16
  318. package/dist/api/sandbox/getStatus.d.ts.map +0 -1
  319. package/dist/api/sandbox/getStatus.js +0 -32
  320. package/dist/api/sandbox/getStatus.js.map +0 -1
  321. package/dist/api/sandbox/index.d.ts +0 -39
  322. package/dist/api/sandbox/index.d.ts.map +0 -1
  323. package/dist/api/sandbox/index.js +0 -20
  324. package/dist/api/sandbox/index.js.map +0 -1
  325. package/dist/api/sandbox/list.d.ts +0 -293
  326. package/dist/api/sandbox/list.d.ts.map +0 -1
  327. package/dist/api/sandbox/list.js +0 -191
  328. package/dist/api/sandbox/list.js.map +0 -1
  329. package/dist/api/sandbox/resolve.d.ts +0 -82
  330. package/dist/api/sandbox/resolve.d.ts.map +0 -1
  331. package/dist/api/sandbox/resolve.js +0 -71
  332. package/dist/api/sandbox/resolve.js.map +0 -1
  333. package/dist/api/sandbox/run.d.ts +0 -28
  334. package/dist/api/sandbox/run.d.ts.map +0 -1
  335. package/dist/api/sandbox/run.js +0 -342
  336. package/dist/api/sandbox/run.js.map +0 -1
  337. package/dist/api/sandbox/runtime.d.ts +0 -83
  338. package/dist/api/sandbox/runtime.d.ts.map +0 -1
  339. package/dist/api/sandbox/runtime.js +0 -78
  340. package/dist/api/sandbox/runtime.js.map +0 -1
  341. package/dist/api/sandbox/snapshot-build.d.ts +0 -48
  342. package/dist/api/sandbox/snapshot-build.d.ts.map +0 -1
  343. package/dist/api/sandbox/snapshot-build.js +0 -74
  344. package/dist/api/sandbox/snapshot-build.js.map +0 -1
  345. package/dist/api/sandbox/snapshot.d.ts +0 -595
  346. package/dist/api/sandbox/snapshot.d.ts.map +0 -1
  347. package/dist/api/sandbox/snapshot.js +0 -598
  348. package/dist/api/sandbox/snapshot.js.map +0 -1
  349. package/dist/api/services/index.d.ts +0 -2
  350. package/dist/api/services/index.d.ts.map +0 -1
  351. package/dist/api/services/index.js +0 -2
  352. package/dist/api/services/index.js.map +0 -1
  353. package/dist/api/services/stats.d.ts +0 -263
  354. package/dist/api/services/stats.d.ts.map +0 -1
  355. package/dist/api/services/stats.js +0 -144
  356. package/dist/api/services/stats.js.map +0 -1
  357. package/dist/api/session/get.d.ts +0 -169
  358. package/dist/api/session/get.d.ts.map +0 -1
  359. package/dist/api/session/get.js +0 -56
  360. package/dist/api/session/get.js.map +0 -1
  361. package/dist/api/session/index.d.ts +0 -4
  362. package/dist/api/session/index.d.ts.map +0 -1
  363. package/dist/api/session/index.js +0 -4
  364. package/dist/api/session/index.js.map +0 -1
  365. package/dist/api/session/list.d.ts +0 -143
  366. package/dist/api/session/list.d.ts.map +0 -1
  367. package/dist/api/session/list.js +0 -91
  368. package/dist/api/session/list.js.map +0 -1
  369. package/dist/api/session/logs.d.ts +0 -40
  370. package/dist/api/session/logs.d.ts.map +0 -1
  371. package/dist/api/session/logs.js +0 -28
  372. package/dist/api/session/logs.js.map +0 -1
  373. package/dist/api/session/util.d.ts +0 -23
  374. package/dist/api/session/util.d.ts.map +0 -1
  375. package/dist/api/session/util.js +0 -3
  376. package/dist/api/session/util.js.map +0 -1
  377. package/dist/api/storage/config.d.ts +0 -99
  378. package/dist/api/storage/config.d.ts.map +0 -1
  379. package/dist/api/storage/config.js +0 -61
  380. package/dist/api/storage/config.js.map +0 -1
  381. package/dist/api/storage/index.d.ts +0 -5
  382. package/dist/api/storage/index.d.ts.map +0 -1
  383. package/dist/api/storage/index.js +0 -5
  384. package/dist/api/storage/index.js.map +0 -1
  385. package/dist/api/storage/objects.d.ts +0 -155
  386. package/dist/api/storage/objects.d.ts.map +0 -1
  387. package/dist/api/storage/objects.js +0 -142
  388. package/dist/api/storage/objects.js.map +0 -1
  389. package/dist/api/storage/types.d.ts +0 -161
  390. package/dist/api/storage/types.d.ts.map +0 -1
  391. package/dist/api/storage/types.js +0 -101
  392. package/dist/api/storage/types.js.map +0 -1
  393. package/dist/api/storage/util.d.ts +0 -48
  394. package/dist/api/storage/util.d.ts.map +0 -1
  395. package/dist/api/storage/util.js +0 -8
  396. package/dist/api/storage/util.js.map +0 -1
  397. package/dist/api/stream/get.d.ts +0 -58
  398. package/dist/api/stream/get.d.ts.map +0 -1
  399. package/dist/api/stream/get.js +0 -40
  400. package/dist/api/stream/get.js.map +0 -1
  401. package/dist/api/stream/index.d.ts +0 -4
  402. package/dist/api/stream/index.d.ts.map +0 -1
  403. package/dist/api/stream/index.js +0 -4
  404. package/dist/api/stream/index.js.map +0 -1
  405. package/dist/api/stream/list.d.ts +0 -120
  406. package/dist/api/stream/list.d.ts.map +0 -1
  407. package/dist/api/stream/list.js +0 -77
  408. package/dist/api/stream/list.js.map +0 -1
  409. package/dist/api/stream/util.d.ts +0 -23
  410. package/dist/api/stream/util.d.ts.map +0 -1
  411. package/dist/api/stream/util.js +0 -3
  412. package/dist/api/stream/util.js.map +0 -1
  413. package/dist/api/thread/delete.d.ts +0 -23
  414. package/dist/api/thread/delete.d.ts.map +0 -1
  415. package/dist/api/thread/delete.js +0 -21
  416. package/dist/api/thread/delete.js.map +0 -1
  417. package/dist/api/thread/get.d.ts +0 -36
  418. package/dist/api/thread/get.d.ts.map +0 -1
  419. package/dist/api/thread/get.js +0 -23
  420. package/dist/api/thread/get.js.map +0 -1
  421. package/dist/api/thread/index.d.ts +0 -5
  422. package/dist/api/thread/index.d.ts.map +0 -1
  423. package/dist/api/thread/index.js +0 -5
  424. package/dist/api/thread/index.js.map +0 -1
  425. package/dist/api/thread/list.d.ts +0 -69
  426. package/dist/api/thread/list.d.ts.map +0 -1
  427. package/dist/api/thread/list.js +0 -51
  428. package/dist/api/thread/list.js.map +0 -1
  429. package/dist/api/thread/util.d.ts +0 -23
  430. package/dist/api/thread/util.d.ts.map +0 -1
  431. package/dist/api/thread/util.js +0 -3
  432. package/dist/api/thread/util.js.map +0 -1
  433. package/dist/api/user/index.d.ts +0 -2
  434. package/dist/api/user/index.d.ts.map +0 -1
  435. package/dist/api/user/index.js +0 -2
  436. package/dist/api/user/index.js.map +0 -1
  437. package/dist/api/user/util.d.ts +0 -23
  438. package/dist/api/user/util.d.ts.map +0 -1
  439. package/dist/api/user/util.js +0 -3
  440. package/dist/api/user/util.js.map +0 -1
  441. package/dist/api/webhook/deliveries.d.ts +0 -94
  442. package/dist/api/webhook/deliveries.d.ts.map +0 -1
  443. package/dist/api/webhook/deliveries.js +0 -79
  444. package/dist/api/webhook/deliveries.js.map +0 -1
  445. package/dist/api/webhook/destinations.d.ts +0 -136
  446. package/dist/api/webhook/destinations.d.ts.map +0 -1
  447. package/dist/api/webhook/destinations.js +0 -137
  448. package/dist/api/webhook/destinations.js.map +0 -1
  449. package/dist/api/webhook/index.d.ts +0 -41
  450. package/dist/api/webhook/index.d.ts.map +0 -1
  451. package/dist/api/webhook/index.js +0 -59
  452. package/dist/api/webhook/index.js.map +0 -1
  453. package/dist/api/webhook/receipts.d.ts +0 -77
  454. package/dist/api/webhook/receipts.d.ts.map +0 -1
  455. package/dist/api/webhook/receipts.js +0 -78
  456. package/dist/api/webhook/receipts.js.map +0 -1
  457. package/dist/api/webhook/types.d.ts +0 -249
  458. package/dist/api/webhook/types.d.ts.map +0 -1
  459. package/dist/api/webhook/types.js +0 -221
  460. package/dist/api/webhook/types.js.map +0 -1
  461. package/dist/api/webhook/util.d.ts +0 -202
  462. package/dist/api/webhook/util.d.ts.map +0 -1
  463. package/dist/api/webhook/util.js +0 -201
  464. package/dist/api/webhook/util.js.map +0 -1
  465. package/dist/api/webhook/webhooks.d.ts +0 -146
  466. package/dist/api/webhook/webhooks.d.ts.map +0 -1
  467. package/dist/api/webhook/webhooks.js +0 -165
  468. package/dist/api/webhook/webhooks.js.map +0 -1
  469. package/src/api/api-example.md +0 -164
  470. package/src/api/apikey/create.ts +0 -41
  471. package/src/api/apikey/delete.ts +0 -30
  472. package/src/api/apikey/get.ts +0 -48
  473. package/src/api/apikey/index.ts +0 -5
  474. package/src/api/apikey/list.ts +0 -64
  475. package/src/api/apikey/util.ts +0 -3
  476. package/src/api/db/index.ts +0 -27
  477. package/src/api/db/logs.ts +0 -75
  478. package/src/api/db/query.ts +0 -67
  479. package/src/api/db/tables.ts +0 -92
  480. package/src/api/db/util.ts +0 -9
  481. package/src/api/eval/get.ts +0 -33
  482. package/src/api/eval/index.ts +0 -28
  483. package/src/api/eval/list.ts +0 -49
  484. package/src/api/eval/run-get.ts +0 -39
  485. package/src/api/eval/run-list.ts +0 -59
  486. package/src/api/machine/index.ts +0 -2
  487. package/src/api/machine/machine.ts +0 -160
  488. package/src/api/machine/util.ts +0 -5
  489. package/src/api/org/index.ts +0 -6
  490. package/src/api/org/list.ts +0 -28
  491. package/src/api/org/resources.ts +0 -135
  492. package/src/api/org/util.ts +0 -4
  493. package/src/api/project/agent.ts +0 -86
  494. package/src/api/project/create.ts +0 -47
  495. package/src/api/project/delete.ts +0 -25
  496. package/src/api/project/deploy.ts +0 -458
  497. package/src/api/project/deployment.ts +0 -195
  498. package/src/api/project/env-delete.ts +0 -45
  499. package/src/api/project/env-update.ts +0 -55
  500. package/src/api/project/exists.ts +0 -58
  501. package/src/api/project/hostname.ts +0 -73
  502. package/src/api/project/index.ts +0 -13
  503. package/src/api/project/update-region.ts +0 -44
  504. package/src/api/project/util.ts +0 -8
  505. package/src/api/queue/analytics.ts +0 -311
  506. package/src/api/queue/destinations.ts +0 -259
  507. package/src/api/queue/dlq.ts +0 -243
  508. package/src/api/queue/index.ts +0 -308
  509. package/src/api/queue/messages.ts +0 -784
  510. package/src/api/queue/queues.ts +0 -460
  511. package/src/api/queue/sources.ts +0 -294
  512. package/src/api/queue/types.ts +0 -1325
  513. package/src/api/queue/util.ts +0 -278
  514. package/src/api/queue/validation.ts +0 -560
  515. package/src/api/queue/websocket.ts +0 -514
  516. package/src/api/region/delete.ts +0 -57
  517. package/src/api/region/index.ts +0 -4
  518. package/src/api/region/list.ts +0 -32
  519. package/src/api/region/resources.ts +0 -69
  520. package/src/api/region/util.ts +0 -3
  521. package/src/api/sandbox/cli-list.ts +0 -127
  522. package/src/api/sandbox/create.ts +0 -256
  523. package/src/api/sandbox/destroy.ts +0 -41
  524. package/src/api/sandbox/disk-checkpoint.ts +0 -179
  525. package/src/api/sandbox/execute.ts +0 -132
  526. package/src/api/sandbox/execution.ts +0 -183
  527. package/src/api/sandbox/files.ts +0 -596
  528. package/src/api/sandbox/get.ts +0 -249
  529. package/src/api/sandbox/getStatus.ts +0 -54
  530. package/src/api/sandbox/index.ts +0 -211
  531. package/src/api/sandbox/list.ts +0 -224
  532. package/src/api/sandbox/resolve.ts +0 -98
  533. package/src/api/sandbox/run.ts +0 -439
  534. package/src/api/sandbox/runtime.ts +0 -100
  535. package/src/api/sandbox/snapshot-build.ts +0 -98
  536. package/src/api/sandbox/snapshot.ts +0 -781
  537. package/src/api/services/index.ts +0 -1
  538. package/src/api/services/stats.ts +0 -213
  539. package/src/api/session/get.ts +0 -106
  540. package/src/api/session/index.ts +0 -3
  541. package/src/api/session/list.ts +0 -136
  542. package/src/api/session/logs.ts +0 -47
  543. package/src/api/session/util.ts +0 -3
  544. package/src/api/storage/config.ts +0 -103
  545. package/src/api/storage/index.ts +0 -4
  546. package/src/api/storage/objects.ts +0 -240
  547. package/src/api/storage/types.ts +0 -134
  548. package/src/api/storage/util.ts +0 -10
  549. package/src/api/stream/get.ts +0 -51
  550. package/src/api/stream/index.ts +0 -3
  551. package/src/api/stream/list.ts +0 -127
  552. package/src/api/stream/util.ts +0 -3
  553. package/src/api/thread/delete.ts +0 -31
  554. package/src/api/thread/get.ts +0 -34
  555. package/src/api/thread/index.ts +0 -4
  556. package/src/api/thread/list.ts +0 -76
  557. package/src/api/thread/util.ts +0 -3
  558. package/src/api/user/index.ts +0 -1
  559. package/src/api/user/util.ts +0 -3
  560. package/src/api/webhook/deliveries.ts +0 -129
  561. package/src/api/webhook/destinations.ts +0 -224
  562. package/src/api/webhook/index.ts +0 -133
  563. package/src/api/webhook/receipts.ts +0 -124
  564. package/src/api/webhook/types.ts +0 -309
  565. package/src/api/webhook/util.ts +0 -237
  566. package/src/api/webhook/webhooks.ts +0 -260
@@ -1,221 +0,0 @@
1
- import { z } from 'zod';
2
- // ============================================================================
3
- // Webhook Destination Types
4
- // ============================================================================
5
- /**
6
- * Webhook destination type schema.
7
- *
8
- * Currently only 'url' destinations are supported.
9
- *
10
- * @example
11
- * ```typescript
12
- * const destType = WebhookDestinationTypeSchema.parse('url');
13
- * ```
14
- */
15
- export const WebhookDestinationTypeSchema = z.enum(['url']);
16
- // ============================================================================
17
- // Webhook Delivery Status
18
- // ============================================================================
19
- /**
20
- * Webhook delivery status schema.
21
- *
22
- * - `pending`: Delivery is queued and waiting to be sent.
23
- * - `success`: Delivery was completed successfully.
24
- * - `failed`: Delivery failed after all retry attempts.
25
- *
26
- * @example
27
- * ```typescript
28
- * const status = WebhookDeliveryStatusSchema.parse('success');
29
- * ```
30
- */
31
- export const WebhookDeliveryStatusSchema = z.enum(['pending', 'success', 'failed']);
32
- // ============================================================================
33
- // Core Schemas
34
- // ============================================================================
35
- /**
36
- * Webhook schema representing a webhook endpoint.
37
- *
38
- * @example
39
- * ```typescript
40
- * const webhook = await getWebhook(client, 'wh_abc123');
41
- * console.log(`Webhook: ${webhook.name} (${webhook.id})`);
42
- * ```
43
- */
44
- export const WebhookSchema = z.object({
45
- /** Unique identifier for the webhook (prefixed with wh_). */
46
- id: z.string(),
47
- /** ISO 8601 timestamp when the webhook was created. */
48
- created_at: z.string(),
49
- /** ISO 8601 timestamp when the webhook was last updated. */
50
- updated_at: z.string(),
51
- /** ID of the user who created the webhook. */
52
- created_by: z.string(),
53
- /** Human-readable webhook name. */
54
- name: z.string(),
55
- /** Optional description of the webhook's purpose. */
56
- description: z.string().nullable().optional(),
57
- /** Fully-qualified ingest URL for sending events to this webhook. Only present on create. */
58
- url: z.string().optional(),
59
- });
60
- /**
61
- * Webhook destination schema representing a delivery target for webhook events.
62
- *
63
- * Destinations define where incoming webhook payloads are forwarded to.
64
- *
65
- * @example
66
- * ```typescript
67
- * const destinations = await listWebhookDestinations(client, 'wh_abc123');
68
- * for (const dest of destinations) {
69
- * console.log(`Destination ${dest.id}: type=${dest.type}`);
70
- * }
71
- * ```
72
- */
73
- export const WebhookDestinationSchema = z.object({
74
- /** Unique identifier for the destination (prefixed with whds_). */
75
- id: z.string(),
76
- /** ISO 8601 timestamp when the destination was created. */
77
- created_at: z.string(),
78
- /** ISO 8601 timestamp when the destination was last updated. */
79
- updated_at: z.string(),
80
- /** ID of the user who created the destination. */
81
- created_by: z.string(),
82
- /** ID of the webhook this destination belongs to. */
83
- webhook_id: z.string(),
84
- /** Type of destination (currently only 'url'). */
85
- type: WebhookDestinationTypeSchema,
86
- /** Configuration object for the destination (e.g., URL, headers). */
87
- config: z.record(z.string(), z.unknown()),
88
- });
89
- /**
90
- * Webhook receipt schema representing an incoming webhook payload that was received.
91
- *
92
- * Receipts capture the raw payload and headers of each incoming webhook request.
93
- *
94
- * @example
95
- * ```typescript
96
- * const receipt = await getWebhookReceipt(client, 'wh_abc123', 'whrc_def456');
97
- * console.log(`Receipt ${receipt.id}: received at ${receipt.date}`);
98
- * ```
99
- */
100
- export const WebhookReceiptSchema = z.object({
101
- /** Unique identifier for the receipt (prefixed with whrc_). */
102
- id: z.string(),
103
- /** ISO 8601 timestamp when the receipt was recorded. */
104
- date: z.string(),
105
- /** ID of the webhook this receipt belongs to. */
106
- webhook_id: z.string(),
107
- /** HTTP headers from the incoming webhook request. */
108
- headers: z.record(z.string(), z.unknown()),
109
- /** Raw payload from the incoming webhook request (can be any type). */
110
- payload: z.unknown(),
111
- });
112
- /**
113
- * Webhook delivery schema representing a delivery attempt to a destination.
114
- *
115
- * Deliveries track the status and result of forwarding a received webhook
116
- * payload to a configured destination.
117
- *
118
- * @example
119
- * ```typescript
120
- * const deliveries = await listWebhookDeliveries(client, 'wh_abc123');
121
- * for (const delivery of deliveries) {
122
- * console.log(`Delivery ${delivery.id}: ${delivery.status}`);
123
- * }
124
- * ```
125
- */
126
- export const WebhookDeliverySchema = z.object({
127
- /** Unique identifier for the delivery (prefixed with whdv_). */
128
- id: z.string(),
129
- /** ISO 8601 timestamp when the delivery was attempted. */
130
- date: z.string(),
131
- /** ID of the webhook this delivery belongs to. */
132
- webhook_id: z.string(),
133
- /** ID of the destination this delivery was sent to. */
134
- webhook_destination_id: z.string(),
135
- /** ID of the receipt that triggered this delivery. */
136
- webhook_receipt_id: z.string(),
137
- /** Current status of the delivery. */
138
- status: WebhookDeliveryStatusSchema,
139
- /** Number of retry attempts made. */
140
- retries: z.number(),
141
- /** Error message if the delivery failed. */
142
- error: z.string().nullable().optional(),
143
- /** Response data from the destination (if available). */
144
- response: z.record(z.string(), z.unknown()).nullable().optional(),
145
- });
146
- // ============================================================================
147
- // Request Schemas
148
- // ============================================================================
149
- /**
150
- * Request schema for creating a new webhook.
151
- *
152
- * @example
153
- * ```typescript
154
- * const request: CreateWebhookRequest = {
155
- * name: 'github-events',
156
- * description: 'Receives GitHub webhook events',
157
- * };
158
- * ```
159
- */
160
- export const CreateWebhookRequestSchema = z.object({
161
- /** Human-readable name for the webhook. */
162
- name: z.string(),
163
- /** Optional description of the webhook's purpose. */
164
- description: z.string().optional(),
165
- });
166
- /**
167
- * Request schema for updating an existing webhook.
168
- *
169
- * @example
170
- * ```typescript
171
- * const request: UpdateWebhookRequest = {
172
- * name: 'github-events-v2',
173
- * description: 'Updated description',
174
- * };
175
- * ```
176
- */
177
- export const UpdateWebhookRequestSchema = z.object({
178
- /** New name for the webhook. */
179
- name: z.string(),
180
- /** New description for the webhook. */
181
- description: z.string().optional(),
182
- });
183
- /**
184
- * Request schema for creating a webhook destination.
185
- *
186
- * @example
187
- * ```typescript
188
- * const request: CreateWebhookDestinationRequest = {
189
- * type: 'url',
190
- * config: { url: 'https://api.example.com/webhook' },
191
- * };
192
- * ```
193
- */
194
- export const CreateWebhookDestinationRequestSchema = z.object({
195
- /** Type of destination to create. */
196
- type: WebhookDestinationTypeSchema,
197
- /** Configuration object for the destination. */
198
- config: z.record(z.string(), z.unknown()),
199
- });
200
- /**
201
- * Request schema for updating a webhook destination.
202
- *
203
- * @example
204
- * ```typescript
205
- * const request: UpdateWebhookDestinationRequest = {
206
- * config: { url: 'https://api.example.com/webhook/v2' },
207
- * };
208
- * ```
209
- */
210
- export const UpdateWebhookDestinationRequestSchema = z.object({
211
- /** Updated configuration object for the destination. */
212
- config: z.record(z.string(), z.unknown()).optional(),
213
- });
214
- export const PaginationRequestSchema = z.object({
215
- limit: z.number().optional(),
216
- offset: z.number().optional(),
217
- });
218
- export const ListWebhooksRequestSchema = PaginationRequestSchema;
219
- export const ListWebhookReceiptsRequestSchema = PaginationRequestSchema;
220
- export const ListWebhookDeliveriesRequestSchema = PaginationRequestSchema;
221
- //# sourceMappingURL=types.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/api/webhook/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,+EAA+E;AAC/E,4BAA4B;AAC5B,+EAA+E;AAE/E;;;;;;;;;GASG;AACH,MAAM,CAAC,MAAM,4BAA4B,GAAG,CAAC,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC;AAO5D,+EAA+E;AAC/E,0BAA0B;AAC1B,+EAA+E;AAE/E;;;;;;;;;;;GAWG;AACH,MAAM,CAAC,MAAM,2BAA2B,GAAG,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,EAAE,SAAS,EAAE,QAAQ,CAAC,CAAC,CAAC;AAOpF,+EAA+E;AAC/E,eAAe;AACf,+EAA+E;AAE/E;;;;;;;;GAQG;AACH,MAAM,CAAC,MAAM,aAAa,GAAG,CAAC,CAAC,MAAM,CAAC;IACrC,6DAA6D;IAC7D,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE;IACd,uDAAuD;IACvD,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE;IACtB,4DAA4D;IAC5D,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE;IACtB,8CAA8C;IAC9C,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE;IACtB,mCAAmC;IACnC,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;IAChB,qDAAqD;IACrD,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;IAC7C,6FAA6F;IAC7F,GAAG,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;C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AAC,MAAM,EAAE,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC;CACzC,CAAC,CAAC;AAKH;;;;;;;;;GASG;AACH,MAAM,CAAC,MAAM,qCAAqC,GAAG,CAAC,CAAC,MAAM,CAAC;IAC7D,wDAAwD;IACxD,MAAM,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,CAAC,QAAQ,EAAE;CACpD,CAAC,CAAC;AAKH,MAAM,CAAC,MAAM,uBAAuB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC/C,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC5B,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CAC7B,CAAC,CAAC;AAIH,MAAM,CAAC,MAAM,yBAAyB,GAAG,uBAAuB,CAAC;AAKjE,MAAM,CAAC,MAAM,gCAAgC,GAAG,uBAAuB,CAAC;AAKxE,MAAM,CAAC,MAAM,kCAAkC,GAAG,uBAAuB,CAAC"}
@@ -1,202 +0,0 @@
1
- /**
2
- * General webhook operation error.
3
- *
4
- * Thrown when a webhook operation fails for reasons other than not-found.
5
- *
6
- * @example
7
- * ```typescript
8
- * try {
9
- * await createWebhook(client, { name: 'my-webhook' });
10
- * } catch (error) {
11
- * if (error instanceof WebhookError) {
12
- * console.error(`Webhook operation failed: ${error.message}`);
13
- * }
14
- * }
15
- * ```
16
- */
17
- export declare const WebhookError: {
18
- new (args?: ({
19
- webhookId?: string;
20
- } & {
21
- message?: string;
22
- cause?: unknown;
23
- }) | undefined): import("@agentuity/core").RichError & {
24
- readonly _tag: "WebhookError";
25
- } & Readonly<{
26
- webhookId?: string;
27
- }>;
28
- readonly defaultMessage?: string;
29
- };
30
- /**
31
- * Error thrown when a webhook is not found.
32
- *
33
- * @example
34
- * ```typescript
35
- * try {
36
- * await getWebhook(client, 'wh_nonexistent');
37
- * } catch (error) {
38
- * if (error instanceof WebhookNotFoundError) {
39
- * console.error(`Webhook not found: ${error.webhookId}`);
40
- * }
41
- * }
42
- * ```
43
- */
44
- export declare const WebhookNotFoundError: {
45
- new (args?: ({
46
- webhookId: string;
47
- } & {
48
- message?: string;
49
- cause?: unknown;
50
- }) | undefined): import("@agentuity/core").RichError & {
51
- readonly _tag: "WebhookNotFoundError";
52
- } & Readonly<{
53
- webhookId: string;
54
- }>;
55
- readonly defaultMessage?: string;
56
- };
57
- /**
58
- * Error thrown when a webhook destination is not found.
59
- *
60
- * @example
61
- * ```typescript
62
- * try {
63
- * await deleteWebhookDestination(client, 'wh_abc', 'whds_nonexistent');
64
- * } catch (error) {
65
- * if (error instanceof WebhookDestinationNotFoundError) {
66
- * console.error(`Destination ${error.destinationId} not found`);
67
- * }
68
- * }
69
- * ```
70
- */
71
- export declare const WebhookDestinationNotFoundError: {
72
- new (args?: ({
73
- webhookId: string;
74
- destinationId: string;
75
- } & {
76
- message?: string;
77
- cause?: unknown;
78
- }) | undefined): import("@agentuity/core").RichError & {
79
- readonly _tag: "WebhookDestinationNotFoundError";
80
- } & Readonly<{
81
- webhookId: string;
82
- destinationId: string;
83
- }>;
84
- readonly defaultMessage?: string;
85
- };
86
- /**
87
- * Error thrown when a webhook receipt is not found.
88
- *
89
- * @example
90
- * ```typescript
91
- * try {
92
- * await getWebhookReceipt(client, 'wh_abc', 'whrc_nonexistent');
93
- * } catch (error) {
94
- * if (error instanceof WebhookReceiptNotFoundError) {
95
- * console.error(`Receipt ${error.receiptId} not found`);
96
- * }
97
- * }
98
- * ```
99
- */
100
- export declare const WebhookReceiptNotFoundError: {
101
- new (args?: ({
102
- webhookId: string;
103
- receiptId: string;
104
- } & {
105
- message?: string;
106
- cause?: unknown;
107
- }) | undefined): import("@agentuity/core").RichError & {
108
- readonly _tag: "WebhookReceiptNotFoundError";
109
- } & Readonly<{
110
- webhookId: string;
111
- receiptId: string;
112
- }>;
113
- readonly defaultMessage?: string;
114
- };
115
- /**
116
- * Error thrown when a webhook delivery is not found.
117
- *
118
- * @example
119
- * ```typescript
120
- * try {
121
- * await retryWebhookDelivery(client, 'wh_abc', 'whdv_nonexistent');
122
- * } catch (error) {
123
- * if (error instanceof WebhookDeliveryNotFoundError) {
124
- * console.error(`Delivery ${error.deliveryId} not found`);
125
- * }
126
- * }
127
- * ```
128
- */
129
- export declare const WebhookDeliveryNotFoundError: {
130
- new (args?: ({
131
- webhookId: string;
132
- deliveryId: string;
133
- } & {
134
- message?: string;
135
- cause?: unknown;
136
- }) | undefined): import("@agentuity/core").RichError & {
137
- readonly _tag: "WebhookDeliveryNotFoundError";
138
- } & Readonly<{
139
- webhookId: string;
140
- deliveryId: string;
141
- }>;
142
- readonly defaultMessage?: string;
143
- };
144
- /**
145
- * Constructs a full API path for webhook operations.
146
- *
147
- * Pattern: `/webhook/${VERSION}/${verb}/${segments.join('/')}`
148
- * Each verb is unique to avoid route conflicts with the Go mux.
149
- *
150
- * @param verb - The action verb (e.g., 'create', 'list', 'get', 'destination-list')
151
- * @param segments - Additional path segments (e.g., webhook ID, sub-resource ID)
152
- * @returns The full API path with version and verb prefix
153
- *
154
- * @internal
155
- */
156
- export declare function webhookApiPath(verb: string, ...segments: string[]): string;
157
- /**
158
- * Constructs a full API path for webhook operations with query string.
159
- *
160
- * @param verb - The action verb
161
- * @param queryString - Query string to append (without leading ?)
162
- * @param segments - Additional path segments
163
- * @returns The full API path with version, verb, and query string
164
- *
165
- * @internal
166
- */
167
- export declare function webhookApiPathWithQuery(verb: string, queryString: string | undefined, ...segments: string[]): string;
168
- /**
169
- * Constructs the public ingest URL for a webhook.
170
- *
171
- * Pattern: `/webhook/{orgId}-{webhookId}` (non-versioned, public)
172
- *
173
- * @param orgId - The organization ID
174
- * @param webhookId - The webhook ID (prefixed with wh_)
175
- * @returns The public ingest URL
176
- *
177
- * @internal
178
- */
179
- export declare function webhookIngestPath(orgId: string, webhookId: string): string;
180
- /**
181
- * Builds headers for webhook API requests.
182
- *
183
- * @param orgId - Optional organization ID for CLI authentication
184
- * @returns Headers object to pass to API client
185
- *
186
- * @internal
187
- */
188
- export declare function buildWebhookHeaders(orgId?: string): Record<string, string> | undefined;
189
- /**
190
- * Wraps an API call and translates APIError with HTTP status codes to domain-specific webhook errors.
191
- *
192
- * - 404 → WebhookNotFoundError / WebhookDestinationNotFoundError / WebhookReceiptNotFoundError / WebhookDeliveryNotFoundError
193
- *
194
- * @internal
195
- */
196
- export declare function withWebhookErrorHandling<T>(apiCall: () => Promise<T>, context: {
197
- webhookId?: string;
198
- destinationId?: string;
199
- receiptId?: string;
200
- deliveryId?: string;
201
- }): Promise<T>;
202
- //# sourceMappingURL=util.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"util.d.ts","sourceRoot":"","sources":["../../../src/api/webhook/util.ts"],"names":[],"mappings":"AAOA;;;;;;;;;;;;;;;GAeG;AACH,eAAO,MAAM,YAAY;;oBAAiD,MAAM;;;;;;;oBAAN,MAAM;;;CAAK,CAAC;AAEtF;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,oBAAoB;;mBACrB,MAAM;;;;;;;mBAAN,MAAM;;;CACd,CAAC;AAEL;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,+BAA+B;;mBAChC,MAAM;uBACF,MAAM;;;;;;;mBADV,MAAM;uBACF,MAAM;;;CAClB,CAAC;AAEL;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,2BAA2B;;mBAC5B,MAAM;mBACN,MAAM;;;;;;;mBADN,MAAM;mBACN,MAAM;;;CACd,CAAC;AAEL;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,4BAA4B;;mBAC7B,MAAM;oBACL,MAAM;;;;;;;mBADP,MAAM;oBACL,MAAM;;;CACf,CAAC;AASL;;;;;;;;;;;GAWG;AACH,wBAAgB,cAAc,CAAC,IAAI,EAAE,MAAM,EAAE,GAAG,QAAQ,EAAE,MAAM,EAAE,GAAG,MAAM,CAM1E;AAED;;;;;;;;;GASG;AACH,wBAAgB,uBAAuB,CACtC,IAAI,EAAE,MAAM,EACZ,WAAW,EAAE,MAAM,GAAG,SAAS,EAC/B,GAAG,QAAQ,EAAE,MAAM,EAAE,GACnB,MAAM,CAGR;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,GAAG,MAAM,CAE1E;AAMD;;;;;;;GAOG;AACH,wBAAgB,mBAAmB,CAAC,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,SAAS,CAKtF;AAMD;;;;;;GAMG;AACH,wBAAsB,wBAAwB,CAAC,CAAC,EAC/C,OAAO,EAAE,MAAM,OAAO,CAAC,CAAC,CAAC,EACzB,OAAO,EAAE;IACR,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,UAAU,CAAC,EAAE,MAAM,CAAC;CACpB,GACC,OAAO,CAAC,CAAC,CAAC,CAqCZ"}
@@ -1,201 +0,0 @@
1
- import { StructuredError } from '@agentuity/core';
2
- import { APIError } from "../api.js";
3
- // ============================================================================
4
- // Error Types
5
- // ============================================================================
6
- /**
7
- * General webhook operation error.
8
- *
9
- * Thrown when a webhook operation fails for reasons other than not-found.
10
- *
11
- * @example
12
- * ```typescript
13
- * try {
14
- * await createWebhook(client, { name: 'my-webhook' });
15
- * } catch (error) {
16
- * if (error instanceof WebhookError) {
17
- * console.error(`Webhook operation failed: ${error.message}`);
18
- * }
19
- * }
20
- * ```
21
- */
22
- export const WebhookError = StructuredError('WebhookError')();
23
- /**
24
- * Error thrown when a webhook is not found.
25
- *
26
- * @example
27
- * ```typescript
28
- * try {
29
- * await getWebhook(client, 'wh_nonexistent');
30
- * } catch (error) {
31
- * if (error instanceof WebhookNotFoundError) {
32
- * console.error(`Webhook not found: ${error.webhookId}`);
33
- * }
34
- * }
35
- * ```
36
- */
37
- export const WebhookNotFoundError = StructuredError('WebhookNotFoundError')();
38
- /**
39
- * Error thrown when a webhook destination is not found.
40
- *
41
- * @example
42
- * ```typescript
43
- * try {
44
- * await deleteWebhookDestination(client, 'wh_abc', 'whds_nonexistent');
45
- * } catch (error) {
46
- * if (error instanceof WebhookDestinationNotFoundError) {
47
- * console.error(`Destination ${error.destinationId} not found`);
48
- * }
49
- * }
50
- * ```
51
- */
52
- export const WebhookDestinationNotFoundError = StructuredError('WebhookDestinationNotFoundError')();
53
- /**
54
- * Error thrown when a webhook receipt is not found.
55
- *
56
- * @example
57
- * ```typescript
58
- * try {
59
- * await getWebhookReceipt(client, 'wh_abc', 'whrc_nonexistent');
60
- * } catch (error) {
61
- * if (error instanceof WebhookReceiptNotFoundError) {
62
- * console.error(`Receipt ${error.receiptId} not found`);
63
- * }
64
- * }
65
- * ```
66
- */
67
- export const WebhookReceiptNotFoundError = StructuredError('WebhookReceiptNotFoundError')();
68
- /**
69
- * Error thrown when a webhook delivery is not found.
70
- *
71
- * @example
72
- * ```typescript
73
- * try {
74
- * await retryWebhookDelivery(client, 'wh_abc', 'whdv_nonexistent');
75
- * } catch (error) {
76
- * if (error instanceof WebhookDeliveryNotFoundError) {
77
- * console.error(`Delivery ${error.deliveryId} not found`);
78
- * }
79
- * }
80
- * ```
81
- */
82
- export const WebhookDeliveryNotFoundError = StructuredError('WebhookDeliveryNotFoundError')();
83
- // ============================================================================
84
- // API Path Helpers
85
- // ============================================================================
86
- /** Current Webhook API version. */
87
- const WEBHOOK_API_VERSION = '2026-02-24';
88
- /**
89
- * Constructs a full API path for webhook operations.
90
- *
91
- * Pattern: `/webhook/${VERSION}/${verb}/${segments.join('/')}`
92
- * Each verb is unique to avoid route conflicts with the Go mux.
93
- *
94
- * @param verb - The action verb (e.g., 'create', 'list', 'get', 'destination-list')
95
- * @param segments - Additional path segments (e.g., webhook ID, sub-resource ID)
96
- * @returns The full API path with version and verb prefix
97
- *
98
- * @internal
99
- */
100
- export function webhookApiPath(verb, ...segments) {
101
- const encoded = segments.map((s) => encodeURIComponent(s)).join('/');
102
- if (encoded) {
103
- return `/webhook/${WEBHOOK_API_VERSION}/${verb}/${encoded}`;
104
- }
105
- return `/webhook/${WEBHOOK_API_VERSION}/${verb}`;
106
- }
107
- /**
108
- * Constructs a full API path for webhook operations with query string.
109
- *
110
- * @param verb - The action verb
111
- * @param queryString - Query string to append (without leading ?)
112
- * @param segments - Additional path segments
113
- * @returns The full API path with version, verb, and query string
114
- *
115
- * @internal
116
- */
117
- export function webhookApiPathWithQuery(verb, queryString, ...segments) {
118
- const basePath = webhookApiPath(verb, ...segments);
119
- return queryString ? `${basePath}?${queryString}` : basePath;
120
- }
121
- /**
122
- * Constructs the public ingest URL for a webhook.
123
- *
124
- * Pattern: `/webhook/{orgId}-{webhookId}` (non-versioned, public)
125
- *
126
- * @param orgId - The organization ID
127
- * @param webhookId - The webhook ID (prefixed with wh_)
128
- * @returns The public ingest URL
129
- *
130
- * @internal
131
- */
132
- export function webhookIngestPath(orgId, webhookId) {
133
- return `/webhook/${encodeURIComponent(orgId)}-${encodeURIComponent(webhookId)}`;
134
- }
135
- // ============================================================================
136
- // Header Builder
137
- // ============================================================================
138
- /**
139
- * Builds headers for webhook API requests.
140
- *
141
- * @param orgId - Optional organization ID for CLI authentication
142
- * @returns Headers object to pass to API client
143
- *
144
- * @internal
145
- */
146
- export function buildWebhookHeaders(orgId) {
147
- if (orgId) {
148
- return { 'x-agentuity-orgid': orgId };
149
- }
150
- return undefined;
151
- }
152
- // ============================================================================
153
- // Error Handling
154
- // ============================================================================
155
- /**
156
- * Wraps an API call and translates APIError with HTTP status codes to domain-specific webhook errors.
157
- *
158
- * - 404 → WebhookNotFoundError / WebhookDestinationNotFoundError / WebhookReceiptNotFoundError / WebhookDeliveryNotFoundError
159
- *
160
- * @internal
161
- */
162
- export async function withWebhookErrorHandling(apiCall, context) {
163
- try {
164
- return await apiCall();
165
- }
166
- catch (error) {
167
- if (error instanceof APIError) {
168
- if (error.status === 404) {
169
- if (context.deliveryId && context.webhookId) {
170
- throw new WebhookDeliveryNotFoundError({
171
- webhookId: context.webhookId,
172
- deliveryId: context.deliveryId,
173
- message: error.message,
174
- });
175
- }
176
- if (context.receiptId && context.webhookId) {
177
- throw new WebhookReceiptNotFoundError({
178
- webhookId: context.webhookId,
179
- receiptId: context.receiptId,
180
- message: error.message,
181
- });
182
- }
183
- if (context.destinationId && context.webhookId) {
184
- throw new WebhookDestinationNotFoundError({
185
- webhookId: context.webhookId,
186
- destinationId: context.destinationId,
187
- message: error.message,
188
- });
189
- }
190
- if (context.webhookId) {
191
- throw new WebhookNotFoundError({
192
- webhookId: context.webhookId,
193
- message: error.message,
194
- });
195
- }
196
- }
197
- }
198
- throw error;
199
- }
200
- }
201
- //# sourceMappingURL=util.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"util.js","sourceRoot":"","sources":["../../../src/api/webhook/util.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAClD,OAAO,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAC;AAErC,+EAA+E;AAC/E,cAAc;AACd,+EAA+E;AAE/E;;;;;;;;;;;;;;;GAeG;AACH,MAAM,CAAC,MAAM,YAAY,GAAG,eAAe,CAAC,cAAc,CAAC,EAA0B,CAAC;AAEtF;;;;;;;;;;;;;GAaG;AACH,MAAM,CAAC,MAAM,oBAAoB,GAAG,eAAe,CAAC,sBAAsB,CAAC,EAEvE,CAAC;AAEL;;;;;;;;;;;;;GAaG;AACH,MAAM,CAAC,MAAM,+BAA+B,GAAG,eAAe,CAAC,iCAAiC,CAAC,EAG7F,CAAC;AAEL;;;;;;;;;;;;;GAaG;AACH,MAAM,CAAC,MAAM,2BAA2B,GAAG,eAAe,CAAC,6BAA6B,CAAC,EAGrF,CAAC;AAEL;;;;;;;;;;;;;GAaG;AACH,MAAM,CAAC,MAAM,4BAA4B,GAAG,eAA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