@agentuity/server 1.0.32 → 1.0.34

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (562) hide show
  1. package/dist/api/api.d.ts +1 -227
  2. package/dist/api/api.d.ts.map +1 -1
  3. package/dist/api/api.js +1 -637
  4. package/dist/api/api.js.map +1 -1
  5. package/dist/api/index.d.ts +1 -17
  6. package/dist/api/index.d.ts.map +1 -1
  7. package/dist/api/index.js +1 -17
  8. package/dist/api/index.js.map +1 -1
  9. package/dist/api/org/env-delete.d.ts +1 -22
  10. package/dist/api/org/env-delete.d.ts.map +1 -1
  11. package/dist/api/org/env-delete.js +1 -24
  12. package/dist/api/org/env-delete.js.map +1 -1
  13. package/dist/api/org/env-get.d.ts +1 -32
  14. package/dist/api/org/env-get.d.ts.map +1 -1
  15. package/dist/api/org/env-get.js +1 -25
  16. package/dist/api/org/env-get.js.map +1 -1
  17. package/dist/api/org/env-update.d.ts +1 -23
  18. package/dist/api/org/env-update.d.ts.map +1 -1
  19. package/dist/api/org/env-update.js +1 -25
  20. package/dist/api/org/env-update.js.map +1 -1
  21. package/dist/api/project/get.d.ts +1 -42
  22. package/dist/api/project/get.d.ts.map +1 -1
  23. package/dist/api/project/get.js +1 -35
  24. package/dist/api/project/get.js.map +1 -1
  25. package/dist/api/project/list.d.ts +1 -47
  26. package/dist/api/project/list.d.ts.map +1 -1
  27. package/dist/api/project/list.js +1 -37
  28. package/dist/api/project/list.js.map +1 -1
  29. package/dist/api/project/malware.d.ts +1 -70
  30. package/dist/api/project/malware.d.ts.map +1 -1
  31. package/dist/api/project/malware.js +1 -41
  32. package/dist/api/project/malware.js.map +1 -1
  33. package/dist/api/region/create.d.ts +1 -80
  34. package/dist/api/region/create.d.ts.map +1 -1
  35. package/dist/api/region/create.js +1 -176
  36. package/dist/api/region/create.js.map +1 -1
  37. package/dist/api/sandbox/client.d.ts +1 -190
  38. package/dist/api/sandbox/client.d.ts.map +1 -1
  39. package/dist/api/sandbox/client.js +1 -260
  40. package/dist/api/sandbox/client.js.map +1 -1
  41. package/dist/api/sandbox/pause.d.ts +1 -21
  42. package/dist/api/sandbox/pause.d.ts.map +1 -1
  43. package/dist/api/sandbox/pause.js +1 -24
  44. package/dist/api/sandbox/pause.js.map +1 -1
  45. package/dist/api/sandbox/resume.d.ts +1 -21
  46. package/dist/api/sandbox/resume.d.ts.map +1 -1
  47. package/dist/api/sandbox/resume.js +1 -24
  48. package/dist/api/sandbox/resume.js.map +1 -1
  49. package/dist/api/sandbox/util.d.ts +1 -284
  50. package/dist/api/sandbox/util.d.ts.map +1 -1
  51. package/dist/api/sandbox/util.js +1 -210
  52. package/dist/api/sandbox/util.js.map +1 -1
  53. package/dist/api/user/whoami.d.ts +1 -38
  54. package/dist/api/user/whoami.d.ts.map +1 -1
  55. package/dist/api/user/whoami.js +1 -26
  56. package/dist/api/user/whoami.js.map +1 -1
  57. package/dist/index.d.ts +1 -4
  58. package/dist/index.d.ts.map +1 -1
  59. package/dist/index.js +3 -12
  60. package/dist/index.js.map +1 -1
  61. package/package.json +4 -4
  62. package/src/api/api.ts +1 -936
  63. package/src/api/index.ts +1 -17
  64. package/src/api/org/env-delete.ts +1 -37
  65. package/src/api/org/env-get.ts +1 -43
  66. package/src/api/org/env-update.ts +1 -38
  67. package/src/api/project/get.ts +1 -49
  68. package/src/api/project/list.ts +1 -54
  69. package/src/api/project/malware.ts +1 -68
  70. package/src/api/region/create.ts +1 -207
  71. package/src/api/sandbox/client.ts +1 -460
  72. package/src/api/sandbox/pause.ts +1 -39
  73. package/src/api/sandbox/resume.ts +1 -39
  74. package/src/api/sandbox/util.ts +1 -276
  75. package/src/api/user/whoami.ts +1 -32
  76. package/src/index.ts +3 -30
  77. package/dist/api/apikey/create.d.ts +0 -33
  78. package/dist/api/apikey/create.d.ts.map +0 -1
  79. package/dist/api/apikey/create.js +0 -23
  80. package/dist/api/apikey/create.js.map +0 -1
  81. package/dist/api/apikey/delete.d.ts +0 -19
  82. package/dist/api/apikey/delete.d.ts.map +0 -1
  83. package/dist/api/apikey/delete.js +0 -19
  84. package/dist/api/apikey/delete.js.map +0 -1
  85. package/dist/api/apikey/get.d.ts +0 -45
  86. package/dist/api/apikey/get.d.ts.map +0 -1
  87. package/dist/api/apikey/get.js +0 -36
  88. package/dist/api/apikey/get.js.map +0 -1
  89. package/dist/api/apikey/index.d.ts +0 -6
  90. package/dist/api/apikey/index.d.ts.map +0 -1
  91. package/dist/api/apikey/index.js +0 -6
  92. package/dist/api/apikey/index.js.map +0 -1
  93. package/dist/api/apikey/list.d.ts +0 -64
  94. package/dist/api/apikey/list.d.ts.map +0 -1
  95. package/dist/api/apikey/list.js +0 -46
  96. package/dist/api/apikey/list.js.map +0 -1
  97. package/dist/api/apikey/util.d.ts +0 -23
  98. package/dist/api/apikey/util.d.ts.map +0 -1
  99. package/dist/api/apikey/util.js +0 -3
  100. package/dist/api/apikey/util.js.map +0 -1
  101. package/dist/api/db/index.d.ts +0 -5
  102. package/dist/api/db/index.d.ts.map +0 -1
  103. package/dist/api/db/index.js +0 -5
  104. package/dist/api/db/index.js.map +0 -1
  105. package/dist/api/db/logs.d.ts +0 -70
  106. package/dist/api/db/logs.d.ts.map +0 -1
  107. package/dist/api/db/logs.js +0 -59
  108. package/dist/api/db/logs.js.map +0 -1
  109. package/dist/api/db/query.d.ts +0 -39
  110. package/dist/api/db/query.d.ts.map +0 -1
  111. package/dist/api/db/query.js +0 -49
  112. package/dist/api/db/query.js.map +0 -1
  113. package/dist/api/db/tables.d.ts +0 -49
  114. package/dist/api/db/tables.d.ts.map +0 -1
  115. package/dist/api/db/tables.js +0 -59
  116. package/dist/api/db/tables.js.map +0 -1
  117. package/dist/api/db/util.d.ts +0 -31
  118. package/dist/api/db/util.d.ts.map +0 -1
  119. package/dist/api/db/util.js +0 -4
  120. package/dist/api/db/util.js.map +0 -1
  121. package/dist/api/eval/get.d.ts +0 -36
  122. package/dist/api/eval/get.d.ts.map +0 -1
  123. package/dist/api/eval/get.js +0 -23
  124. package/dist/api/eval/get.js.map +0 -1
  125. package/dist/api/eval/index.d.ts +0 -5
  126. package/dist/api/eval/index.d.ts.map +0 -1
  127. package/dist/api/eval/index.js +0 -5
  128. package/dist/api/eval/index.js.map +0 -1
  129. package/dist/api/eval/list.d.ts +0 -50
  130. package/dist/api/eval/list.d.ts.map +0 -1
  131. package/dist/api/eval/list.js +0 -32
  132. package/dist/api/eval/list.js.map +0 -1
  133. package/dist/api/eval/run-get.d.ts +0 -48
  134. package/dist/api/eval/run-get.d.ts.map +0 -1
  135. package/dist/api/eval/run-get.js +0 -29
  136. package/dist/api/eval/run-get.js.map +0 -1
  137. package/dist/api/eval/run-list.d.ts +0 -70
  138. package/dist/api/eval/run-list.d.ts.map +0 -1
  139. package/dist/api/eval/run-list.js +0 -42
  140. package/dist/api/eval/run-list.js.map +0 -1
  141. package/dist/api/machine/index.d.ts +0 -3
  142. package/dist/api/machine/index.d.ts.map +0 -1
  143. package/dist/api/machine/index.js +0 -3
  144. package/dist/api/machine/index.js.map +0 -1
  145. package/dist/api/machine/machine.d.ts +0 -192
  146. package/dist/api/machine/machine.d.ts.map +0 -1
  147. package/dist/api/machine/machine.js +0 -109
  148. package/dist/api/machine/machine.js.map +0 -1
  149. package/dist/api/machine/util.d.ts +0 -14
  150. package/dist/api/machine/util.d.ts.map +0 -1
  151. package/dist/api/machine/util.js +0 -3
  152. package/dist/api/machine/util.js.map +0 -1
  153. package/dist/api/org/index.d.ts +0 -7
  154. package/dist/api/org/index.d.ts.map +0 -1
  155. package/dist/api/org/index.js +0 -7
  156. package/dist/api/org/index.js.map +0 -1
  157. package/dist/api/org/list.d.ts +0 -27
  158. package/dist/api/org/list.d.ts.map +0 -1
  159. package/dist/api/org/list.js +0 -22
  160. package/dist/api/org/list.js.map +0 -1
  161. package/dist/api/org/resources.d.ts +0 -141
  162. package/dist/api/org/resources.d.ts.map +0 -1
  163. package/dist/api/org/resources.js +0 -97
  164. package/dist/api/org/resources.js.map +0 -1
  165. package/dist/api/org/util.d.ts +0 -45
  166. package/dist/api/org/util.d.ts.map +0 -1
  167. package/dist/api/org/util.js +0 -4
  168. package/dist/api/org/util.js.map +0 -1
  169. package/dist/api/project/agent.d.ts +0 -89
  170. package/dist/api/project/agent.d.ts.map +0 -1
  171. package/dist/api/project/agent.js +0 -60
  172. package/dist/api/project/agent.js.map +0 -1
  173. package/dist/api/project/create.d.ts +0 -37
  174. package/dist/api/project/create.d.ts.map +0 -1
  175. package/dist/api/project/create.js +0 -31
  176. package/dist/api/project/create.js.map +0 -1
  177. package/dist/api/project/delete.d.ts +0 -15
  178. package/dist/api/project/delete.d.ts.map +0 -1
  179. package/dist/api/project/delete.js +0 -13
  180. package/dist/api/project/delete.js.map +0 -1
  181. package/dist/api/project/deploy.d.ts +0 -490
  182. package/dist/api/project/deploy.d.ts.map +0 -1
  183. package/dist/api/project/deploy.js +0 -313
  184. package/dist/api/project/deploy.js.map +0 -1
  185. package/dist/api/project/deployment.d.ts +0 -237
  186. package/dist/api/project/deployment.d.ts.map +0 -1
  187. package/dist/api/project/deployment.js +0 -127
  188. package/dist/api/project/deployment.js.map +0 -1
  189. package/dist/api/project/env-delete.d.ts +0 -22
  190. package/dist/api/project/env-delete.d.ts.map +0 -1
  191. package/dist/api/project/env-delete.js +0 -29
  192. package/dist/api/project/env-delete.js.map +0 -1
  193. package/dist/api/project/env-update.d.ts +0 -31
  194. package/dist/api/project/env-update.d.ts.map +0 -1
  195. package/dist/api/project/env-update.js +0 -36
  196. package/dist/api/project/env-update.js.map +0 -1
  197. package/dist/api/project/exists.d.ts +0 -25
  198. package/dist/api/project/exists.d.ts.map +0 -1
  199. package/dist/api/project/exists.js +0 -45
  200. package/dist/api/project/exists.js.map +0 -1
  201. package/dist/api/project/hostname.d.ts +0 -25
  202. package/dist/api/project/hostname.d.ts.map +0 -1
  203. package/dist/api/project/hostname.js +0 -37
  204. package/dist/api/project/hostname.js.map +0 -1
  205. package/dist/api/project/index.d.ts +0 -14
  206. package/dist/api/project/index.d.ts.map +0 -1
  207. package/dist/api/project/index.js +0 -14
  208. package/dist/api/project/index.js.map +0 -1
  209. package/dist/api/project/update-region.d.ts +0 -27
  210. package/dist/api/project/update-region.d.ts.map +0 -1
  211. package/dist/api/project/update-region.js +0 -25
  212. package/dist/api/project/update-region.js.map +0 -1
  213. package/dist/api/project/util.d.ts +0 -62
  214. package/dist/api/project/util.d.ts.map +0 -1
  215. package/dist/api/project/util.js +0 -6
  216. package/dist/api/project/util.js.map +0 -1
  217. package/dist/api/queue/analytics.d.ts +0 -250
  218. package/dist/api/queue/analytics.d.ts.map +0 -1
  219. package/dist/api/queue/analytics.js +0 -233
  220. package/dist/api/queue/analytics.js.map +0 -1
  221. package/dist/api/queue/destinations.d.ts +0 -202
  222. package/dist/api/queue/destinations.d.ts.map +0 -1
  223. package/dist/api/queue/destinations.js +0 -168
  224. package/dist/api/queue/destinations.js.map +0 -1
  225. package/dist/api/queue/dlq.d.ts +0 -168
  226. package/dist/api/queue/dlq.d.ts.map +0 -1
  227. package/dist/api/queue/dlq.js +0 -166
  228. package/dist/api/queue/dlq.js.map +0 -1
  229. package/dist/api/queue/index.d.ts +0 -56
  230. package/dist/api/queue/index.d.ts.map +0 -1
  231. package/dist/api/queue/index.js +0 -90
  232. package/dist/api/queue/index.js.map +0 -1
  233. package/dist/api/queue/messages.d.ts +0 -503
  234. package/dist/api/queue/messages.d.ts.map +0 -1
  235. package/dist/api/queue/messages.js +0 -549
  236. package/dist/api/queue/messages.js.map +0 -1
  237. package/dist/api/queue/queues.d.ts +0 -226
  238. package/dist/api/queue/queues.d.ts.map +0 -1
  239. package/dist/api/queue/queues.js +0 -321
  240. package/dist/api/queue/queues.js.map +0 -1
  241. package/dist/api/queue/sources.d.ts +0 -202
  242. package/dist/api/queue/sources.d.ts.map +0 -1
  243. package/dist/api/queue/sources.js +0 -202
  244. package/dist/api/queue/sources.js.map +0 -1
  245. package/dist/api/queue/types.d.ts +0 -1218
  246. package/dist/api/queue/types.d.ts.map +0 -1
  247. package/dist/api/queue/types.js +0 -1002
  248. package/dist/api/queue/types.js.map +0 -1
  249. package/dist/api/queue/util.d.ts +0 -278
  250. package/dist/api/queue/util.d.ts.map +0 -1
  251. package/dist/api/queue/util.js +0 -235
  252. package/dist/api/queue/util.js.map +0 -1
  253. package/dist/api/queue/validation.d.ts +0 -247
  254. package/dist/api/queue/validation.d.ts.map +0 -1
  255. package/dist/api/queue/validation.js +0 -513
  256. package/dist/api/queue/validation.js.map +0 -1
  257. package/dist/api/queue/websocket.d.ts +0 -168
  258. package/dist/api/queue/websocket.d.ts.map +0 -1
  259. package/dist/api/queue/websocket.js +0 -394
  260. package/dist/api/queue/websocket.js.map +0 -1
  261. package/dist/api/region/delete.d.ts +0 -62
  262. package/dist/api/region/delete.d.ts.map +0 -1
  263. package/dist/api/region/delete.js +0 -37
  264. package/dist/api/region/delete.js.map +0 -1
  265. package/dist/api/region/index.d.ts +0 -5
  266. package/dist/api/region/index.d.ts.map +0 -1
  267. package/dist/api/region/index.js +0 -5
  268. package/dist/api/region/index.js.map +0 -1
  269. package/dist/api/region/list.d.ts +0 -27
  270. package/dist/api/region/list.d.ts.map +0 -1
  271. package/dist/api/region/list.js +0 -22
  272. package/dist/api/region/list.js.map +0 -1
  273. package/dist/api/region/resources.d.ts +0 -71
  274. package/dist/api/region/resources.d.ts.map +0 -1
  275. package/dist/api/region/resources.js +0 -53
  276. package/dist/api/region/resources.js.map +0 -1
  277. package/dist/api/region/util.d.ts +0 -23
  278. package/dist/api/region/util.d.ts.map +0 -1
  279. package/dist/api/region/util.js +0 -3
  280. package/dist/api/region/util.js.map +0 -1
  281. package/dist/api/sandbox/cli-list.d.ts +0 -114
  282. package/dist/api/sandbox/cli-list.d.ts.map +0 -1
  283. package/dist/api/sandbox/cli-list.js +0 -71
  284. package/dist/api/sandbox/cli-list.js.map +0 -1
  285. package/dist/api/sandbox/create.d.ts +0 -118
  286. package/dist/api/sandbox/create.d.ts.map +0 -1
  287. package/dist/api/sandbox/create.js +0 -211
  288. package/dist/api/sandbox/create.js.map +0 -1
  289. package/dist/api/sandbox/destroy.d.ts +0 -22
  290. package/dist/api/sandbox/destroy.d.ts.map +0 -1
  291. package/dist/api/sandbox/destroy.js +0 -25
  292. package/dist/api/sandbox/destroy.js.map +0 -1
  293. package/dist/api/sandbox/disk-checkpoint.d.ts +0 -104
  294. package/dist/api/sandbox/disk-checkpoint.d.ts.map +0 -1
  295. package/dist/api/sandbox/disk-checkpoint.js +0 -104
  296. package/dist/api/sandbox/disk-checkpoint.js.map +0 -1
  297. package/dist/api/sandbox/execute.d.ts +0 -69
  298. package/dist/api/sandbox/execute.d.ts.map +0 -1
  299. package/dist/api/sandbox/execute.js +0 -103
  300. package/dist/api/sandbox/execute.js.map +0 -1
  301. package/dist/api/sandbox/execution.d.ts +0 -169
  302. package/dist/api/sandbox/execution.d.ts.map +0 -1
  303. package/dist/api/sandbox/execution.js +0 -118
  304. package/dist/api/sandbox/execution.js.map +0 -1
  305. package/dist/api/sandbox/files.d.ts +0 -261
  306. package/dist/api/sandbox/files.d.ts.map +0 -1
  307. package/dist/api/sandbox/files.js +0 -386
  308. package/dist/api/sandbox/files.js.map +0 -1
  309. package/dist/api/sandbox/get.d.ts +0 -283
  310. package/dist/api/sandbox/get.d.ts.map +0 -1
  311. package/dist/api/sandbox/get.js +0 -215
  312. package/dist/api/sandbox/get.js.map +0 -1
  313. package/dist/api/sandbox/getStatus.d.ts +0 -16
  314. package/dist/api/sandbox/getStatus.d.ts.map +0 -1
  315. package/dist/api/sandbox/getStatus.js +0 -32
  316. package/dist/api/sandbox/getStatus.js.map +0 -1
  317. package/dist/api/sandbox/index.d.ts +0 -39
  318. package/dist/api/sandbox/index.d.ts.map +0 -1
  319. package/dist/api/sandbox/index.js +0 -20
  320. package/dist/api/sandbox/index.js.map +0 -1
  321. package/dist/api/sandbox/list.d.ts +0 -293
  322. package/dist/api/sandbox/list.d.ts.map +0 -1
  323. package/dist/api/sandbox/list.js +0 -191
  324. package/dist/api/sandbox/list.js.map +0 -1
  325. package/dist/api/sandbox/resolve.d.ts +0 -82
  326. package/dist/api/sandbox/resolve.d.ts.map +0 -1
  327. package/dist/api/sandbox/resolve.js +0 -71
  328. package/dist/api/sandbox/resolve.js.map +0 -1
  329. package/dist/api/sandbox/run.d.ts +0 -28
  330. package/dist/api/sandbox/run.d.ts.map +0 -1
  331. package/dist/api/sandbox/run.js +0 -342
  332. package/dist/api/sandbox/run.js.map +0 -1
  333. package/dist/api/sandbox/runtime.d.ts +0 -83
  334. package/dist/api/sandbox/runtime.d.ts.map +0 -1
  335. package/dist/api/sandbox/runtime.js +0 -78
  336. package/dist/api/sandbox/runtime.js.map +0 -1
  337. package/dist/api/sandbox/snapshot-build.d.ts +0 -48
  338. package/dist/api/sandbox/snapshot-build.d.ts.map +0 -1
  339. package/dist/api/sandbox/snapshot-build.js +0 -74
  340. package/dist/api/sandbox/snapshot-build.js.map +0 -1
  341. package/dist/api/sandbox/snapshot.d.ts +0 -595
  342. package/dist/api/sandbox/snapshot.d.ts.map +0 -1
  343. package/dist/api/sandbox/snapshot.js +0 -598
  344. package/dist/api/sandbox/snapshot.js.map +0 -1
  345. package/dist/api/services/index.d.ts +0 -2
  346. package/dist/api/services/index.d.ts.map +0 -1
  347. package/dist/api/services/index.js +0 -2
  348. package/dist/api/services/index.js.map +0 -1
  349. package/dist/api/services/stats.d.ts +0 -263
  350. package/dist/api/services/stats.d.ts.map +0 -1
  351. package/dist/api/services/stats.js +0 -144
  352. package/dist/api/services/stats.js.map +0 -1
  353. package/dist/api/session/get.d.ts +0 -169
  354. package/dist/api/session/get.d.ts.map +0 -1
  355. package/dist/api/session/get.js +0 -56
  356. package/dist/api/session/get.js.map +0 -1
  357. package/dist/api/session/index.d.ts +0 -4
  358. package/dist/api/session/index.d.ts.map +0 -1
  359. package/dist/api/session/index.js +0 -4
  360. package/dist/api/session/index.js.map +0 -1
  361. package/dist/api/session/list.d.ts +0 -143
  362. package/dist/api/session/list.d.ts.map +0 -1
  363. package/dist/api/session/list.js +0 -91
  364. package/dist/api/session/list.js.map +0 -1
  365. package/dist/api/session/logs.d.ts +0 -40
  366. package/dist/api/session/logs.d.ts.map +0 -1
  367. package/dist/api/session/logs.js +0 -28
  368. package/dist/api/session/logs.js.map +0 -1
  369. package/dist/api/session/util.d.ts +0 -23
  370. package/dist/api/session/util.d.ts.map +0 -1
  371. package/dist/api/session/util.js +0 -3
  372. package/dist/api/session/util.js.map +0 -1
  373. package/dist/api/storage/config.d.ts +0 -99
  374. package/dist/api/storage/config.d.ts.map +0 -1
  375. package/dist/api/storage/config.js +0 -61
  376. package/dist/api/storage/config.js.map +0 -1
  377. package/dist/api/storage/index.d.ts +0 -5
  378. package/dist/api/storage/index.d.ts.map +0 -1
  379. package/dist/api/storage/index.js +0 -5
  380. package/dist/api/storage/index.js.map +0 -1
  381. package/dist/api/storage/objects.d.ts +0 -155
  382. package/dist/api/storage/objects.d.ts.map +0 -1
  383. package/dist/api/storage/objects.js +0 -148
  384. package/dist/api/storage/objects.js.map +0 -1
  385. package/dist/api/storage/types.d.ts +0 -161
  386. package/dist/api/storage/types.d.ts.map +0 -1
  387. package/dist/api/storage/types.js +0 -141
  388. package/dist/api/storage/types.js.map +0 -1
  389. package/dist/api/storage/util.d.ts +0 -48
  390. package/dist/api/storage/util.d.ts.map +0 -1
  391. package/dist/api/storage/util.js +0 -8
  392. package/dist/api/storage/util.js.map +0 -1
  393. package/dist/api/stream/get.d.ts +0 -58
  394. package/dist/api/stream/get.d.ts.map +0 -1
  395. package/dist/api/stream/get.js +0 -40
  396. package/dist/api/stream/get.js.map +0 -1
  397. package/dist/api/stream/index.d.ts +0 -4
  398. package/dist/api/stream/index.d.ts.map +0 -1
  399. package/dist/api/stream/index.js +0 -4
  400. package/dist/api/stream/index.js.map +0 -1
  401. package/dist/api/stream/list.d.ts +0 -120
  402. package/dist/api/stream/list.d.ts.map +0 -1
  403. package/dist/api/stream/list.js +0 -77
  404. package/dist/api/stream/list.js.map +0 -1
  405. package/dist/api/stream/util.d.ts +0 -23
  406. package/dist/api/stream/util.d.ts.map +0 -1
  407. package/dist/api/stream/util.js +0 -3
  408. package/dist/api/stream/util.js.map +0 -1
  409. package/dist/api/thread/delete.d.ts +0 -23
  410. package/dist/api/thread/delete.d.ts.map +0 -1
  411. package/dist/api/thread/delete.js +0 -21
  412. package/dist/api/thread/delete.js.map +0 -1
  413. package/dist/api/thread/get.d.ts +0 -36
  414. package/dist/api/thread/get.d.ts.map +0 -1
  415. package/dist/api/thread/get.js +0 -23
  416. package/dist/api/thread/get.js.map +0 -1
  417. package/dist/api/thread/index.d.ts +0 -5
  418. package/dist/api/thread/index.d.ts.map +0 -1
  419. package/dist/api/thread/index.js +0 -5
  420. package/dist/api/thread/index.js.map +0 -1
  421. package/dist/api/thread/list.d.ts +0 -69
  422. package/dist/api/thread/list.d.ts.map +0 -1
  423. package/dist/api/thread/list.js +0 -51
  424. package/dist/api/thread/list.js.map +0 -1
  425. package/dist/api/thread/util.d.ts +0 -23
  426. package/dist/api/thread/util.d.ts.map +0 -1
  427. package/dist/api/thread/util.js +0 -3
  428. package/dist/api/thread/util.js.map +0 -1
  429. package/dist/api/user/index.d.ts +0 -2
  430. package/dist/api/user/index.d.ts.map +0 -1
  431. package/dist/api/user/index.js +0 -2
  432. package/dist/api/user/index.js.map +0 -1
  433. package/dist/api/user/util.d.ts +0 -23
  434. package/dist/api/user/util.d.ts.map +0 -1
  435. package/dist/api/user/util.js +0 -3
  436. package/dist/api/user/util.js.map +0 -1
  437. package/dist/api/webhook/deliveries.d.ts +0 -94
  438. package/dist/api/webhook/deliveries.d.ts.map +0 -1
  439. package/dist/api/webhook/deliveries.js +0 -79
  440. package/dist/api/webhook/deliveries.js.map +0 -1
  441. package/dist/api/webhook/destinations.d.ts +0 -136
  442. package/dist/api/webhook/destinations.d.ts.map +0 -1
  443. package/dist/api/webhook/destinations.js +0 -137
  444. package/dist/api/webhook/destinations.js.map +0 -1
  445. package/dist/api/webhook/index.d.ts +0 -41
  446. package/dist/api/webhook/index.d.ts.map +0 -1
  447. package/dist/api/webhook/index.js +0 -59
  448. package/dist/api/webhook/index.js.map +0 -1
  449. package/dist/api/webhook/receipts.d.ts +0 -77
  450. package/dist/api/webhook/receipts.d.ts.map +0 -1
  451. package/dist/api/webhook/receipts.js +0 -78
  452. package/dist/api/webhook/receipts.js.map +0 -1
  453. package/dist/api/webhook/types.d.ts +0 -249
  454. package/dist/api/webhook/types.d.ts.map +0 -1
  455. package/dist/api/webhook/types.js +0 -221
  456. package/dist/api/webhook/types.js.map +0 -1
  457. package/dist/api/webhook/util.d.ts +0 -202
  458. package/dist/api/webhook/util.d.ts.map +0 -1
  459. package/dist/api/webhook/util.js +0 -201
  460. package/dist/api/webhook/util.js.map +0 -1
  461. package/dist/api/webhook/webhooks.d.ts +0 -146
  462. package/dist/api/webhook/webhooks.d.ts.map +0 -1
  463. package/dist/api/webhook/webhooks.js +0 -165
  464. package/dist/api/webhook/webhooks.js.map +0 -1
  465. package/src/api/api-example.md +0 -164
  466. package/src/api/apikey/create.ts +0 -41
  467. package/src/api/apikey/delete.ts +0 -30
  468. package/src/api/apikey/get.ts +0 -48
  469. package/src/api/apikey/index.ts +0 -5
  470. package/src/api/apikey/list.ts +0 -64
  471. package/src/api/apikey/util.ts +0 -3
  472. package/src/api/db/index.ts +0 -27
  473. package/src/api/db/logs.ts +0 -75
  474. package/src/api/db/query.ts +0 -67
  475. package/src/api/db/tables.ts +0 -92
  476. package/src/api/db/util.ts +0 -9
  477. package/src/api/eval/get.ts +0 -33
  478. package/src/api/eval/index.ts +0 -28
  479. package/src/api/eval/list.ts +0 -49
  480. package/src/api/eval/run-get.ts +0 -39
  481. package/src/api/eval/run-list.ts +0 -59
  482. package/src/api/machine/index.ts +0 -2
  483. package/src/api/machine/machine.ts +0 -160
  484. package/src/api/machine/util.ts +0 -5
  485. package/src/api/org/index.ts +0 -6
  486. package/src/api/org/list.ts +0 -28
  487. package/src/api/org/resources.ts +0 -140
  488. package/src/api/org/util.ts +0 -4
  489. package/src/api/project/agent.ts +0 -86
  490. package/src/api/project/create.ts +0 -47
  491. package/src/api/project/delete.ts +0 -25
  492. package/src/api/project/deploy.ts +0 -458
  493. package/src/api/project/deployment.ts +0 -195
  494. package/src/api/project/env-delete.ts +0 -45
  495. package/src/api/project/env-update.ts +0 -55
  496. package/src/api/project/exists.ts +0 -58
  497. package/src/api/project/hostname.ts +0 -73
  498. package/src/api/project/index.ts +0 -13
  499. package/src/api/project/update-region.ts +0 -44
  500. package/src/api/project/util.ts +0 -8
  501. package/src/api/queue/analytics.ts +0 -311
  502. package/src/api/queue/destinations.ts +0 -259
  503. package/src/api/queue/dlq.ts +0 -243
  504. package/src/api/queue/index.ts +0 -308
  505. package/src/api/queue/messages.ts +0 -784
  506. package/src/api/queue/queues.ts +0 -460
  507. package/src/api/queue/sources.ts +0 -294
  508. package/src/api/queue/types.ts +0 -1325
  509. package/src/api/queue/util.ts +0 -278
  510. package/src/api/queue/validation.ts +0 -560
  511. package/src/api/queue/websocket.ts +0 -514
  512. package/src/api/region/delete.ts +0 -57
  513. package/src/api/region/index.ts +0 -4
  514. package/src/api/region/list.ts +0 -32
  515. package/src/api/region/resources.ts +0 -69
  516. package/src/api/region/util.ts +0 -3
  517. package/src/api/sandbox/cli-list.ts +0 -127
  518. package/src/api/sandbox/create.ts +0 -256
  519. package/src/api/sandbox/destroy.ts +0 -41
  520. package/src/api/sandbox/disk-checkpoint.ts +0 -179
  521. package/src/api/sandbox/execute.ts +0 -132
  522. package/src/api/sandbox/execution.ts +0 -183
  523. package/src/api/sandbox/files.ts +0 -596
  524. package/src/api/sandbox/get.ts +0 -249
  525. package/src/api/sandbox/getStatus.ts +0 -54
  526. package/src/api/sandbox/index.ts +0 -211
  527. package/src/api/sandbox/list.ts +0 -224
  528. package/src/api/sandbox/resolve.ts +0 -98
  529. package/src/api/sandbox/run.ts +0 -439
  530. package/src/api/sandbox/runtime.ts +0 -100
  531. package/src/api/sandbox/snapshot-build.ts +0 -98
  532. package/src/api/sandbox/snapshot.ts +0 -781
  533. package/src/api/services/index.ts +0 -1
  534. package/src/api/services/stats.ts +0 -213
  535. package/src/api/session/get.ts +0 -106
  536. package/src/api/session/index.ts +0 -3
  537. package/src/api/session/list.ts +0 -136
  538. package/src/api/session/logs.ts +0 -47
  539. package/src/api/session/util.ts +0 -3
  540. package/src/api/storage/config.ts +0 -111
  541. package/src/api/storage/index.ts +0 -4
  542. package/src/api/storage/objects.ts +0 -250
  543. package/src/api/storage/types.ts +0 -174
  544. package/src/api/storage/util.ts +0 -10
  545. package/src/api/stream/get.ts +0 -51
  546. package/src/api/stream/index.ts +0 -3
  547. package/src/api/stream/list.ts +0 -127
  548. package/src/api/stream/util.ts +0 -3
  549. package/src/api/thread/delete.ts +0 -31
  550. package/src/api/thread/get.ts +0 -34
  551. package/src/api/thread/index.ts +0 -4
  552. package/src/api/thread/list.ts +0 -76
  553. package/src/api/thread/util.ts +0 -3
  554. package/src/api/user/index.ts +0 -1
  555. package/src/api/user/util.ts +0 -3
  556. package/src/api/webhook/deliveries.ts +0 -129
  557. package/src/api/webhook/destinations.ts +0 -224
  558. package/src/api/webhook/index.ts +0 -133
  559. package/src/api/webhook/receipts.ts +0 -124
  560. package/src/api/webhook/types.ts +0 -309
  561. package/src/api/webhook/util.ts +0 -237
  562. package/src/api/webhook/webhooks.ts +0 -260
@@ -1,1218 +0,0 @@
1
- import { z } from 'zod';
2
- /**
3
- * Queue type schema for validation.
4
- *
5
- * - `worker`: Messages are consumed by workers with acknowledgment. Each message is processed by exactly one consumer.
6
- * - `pubsub`: Messages are broadcast to all subscribers. Multiple consumers can receive the same message.
7
- *
8
- * @example
9
- * ```typescript
10
- * const queueType = QueueTypeSchema.parse('worker'); // 'worker' | 'pubsub'
11
- * ```
12
- */
13
- export declare const QueueTypeSchema: z.ZodEnum<{
14
- worker: "worker";
15
- pubsub: "pubsub";
16
- }>;
17
- /**
18
- * Queue type - either 'worker' for task queues or 'pubsub' for broadcast messaging.
19
- */
20
- export type QueueType = z.infer<typeof QueueTypeSchema>;
21
- export type QueueSortField = 'name' | 'created' | 'updated' | 'message_count' | 'dlq_count';
22
- /**
23
- * Queue settings schema for configuring queue behavior.
24
- *
25
- * These settings control message lifecycle, retry behavior, and concurrency limits.
26
- * This schema includes defaults and is used for output types and documentation.
27
- *
28
- * @example
29
- * ```typescript
30
- * const settings = QueueSettingsSchema.parse({
31
- * default_ttl_seconds: 3600, // Messages expire after 1 hour
32
- * default_visibility_timeout_seconds: 60, // Processing timeout
33
- * default_max_retries: 3, // Retry failed messages 3 times
34
- * });
35
- * ```
36
- */
37
- export declare const QueueSettingsSchema: z.ZodObject<{
38
- default_ttl_seconds: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
39
- default_visibility_timeout_seconds: z.ZodDefault<z.ZodNumber>;
40
- default_max_retries: z.ZodDefault<z.ZodNumber>;
41
- default_retry_backoff_ms: z.ZodDefault<z.ZodNumber>;
42
- default_retry_max_backoff_ms: z.ZodDefault<z.ZodNumber>;
43
- default_retry_multiplier: z.ZodDefault<z.ZodNumber>;
44
- max_in_flight_per_client: z.ZodDefault<z.ZodNumber>;
45
- retention_seconds: z.ZodDefault<z.ZodNumber>;
46
- }, z.core.$strip>;
47
- /**
48
- * Queue settings configuration type.
49
- */
50
- export type QueueSettings = z.infer<typeof QueueSettingsSchema>;
51
- /**
52
- * Queue statistics schema showing current queue state.
53
- */
54
- export declare const QueueStatsSchema: z.ZodObject<{
55
- message_count: z.ZodNumber;
56
- dlq_count: z.ZodNumber;
57
- next_offset: z.ZodNumber;
58
- }, z.core.$strip>;
59
- /**
60
- * Queue statistics type.
61
- */
62
- export type QueueStats = z.infer<typeof QueueStatsSchema>;
63
- /**
64
- * Queue schema representing a message queue.
65
- *
66
- * @example
67
- * ```typescript
68
- * const queue = await getQueue(client, 'my-queue');
69
- * console.log(`Queue ${queue.name} has ${queue.message_count} messages`);
70
- * ```
71
- */
72
- export declare const QueueSchema: z.ZodObject<{
73
- id: z.ZodString;
74
- name: z.ZodString;
75
- description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
76
- queue_type: z.ZodEnum<{
77
- worker: "worker";
78
- pubsub: "pubsub";
79
- }>;
80
- default_ttl_seconds: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
81
- default_visibility_timeout_seconds: z.ZodOptional<z.ZodNumber>;
82
- default_max_retries: z.ZodOptional<z.ZodNumber>;
83
- default_retry_backoff_ms: z.ZodOptional<z.ZodNumber>;
84
- default_retry_max_backoff_ms: z.ZodOptional<z.ZodNumber>;
85
- default_retry_multiplier: z.ZodOptional<z.ZodNumber>;
86
- max_in_flight_per_client: z.ZodOptional<z.ZodNumber>;
87
- next_offset: z.ZodOptional<z.ZodNumber>;
88
- message_count: z.ZodOptional<z.ZodNumber>;
89
- dlq_count: z.ZodOptional<z.ZodNumber>;
90
- created_at: z.ZodString;
91
- updated_at: z.ZodString;
92
- paused_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
93
- retention_seconds: z.ZodOptional<z.ZodNumber>;
94
- }, z.core.$strip>;
95
- /**
96
- * Queue type representing a message queue instance.
97
- */
98
- export type Queue = z.infer<typeof QueueSchema>;
99
- /**
100
- * Message state schema for tracking message lifecycle.
101
- *
102
- * - `pending`: Message is waiting to be processed.
103
- * - `leased`: Message has been received and is currently being processed by a consumer.
104
- * - `processing`: Message has been received and is being processed (legacy, equivalent to leased).
105
- * - `delivered`: Message was successfully acknowledged.
106
- * - `failed`: Message processing failed but may be retried.
107
- * - `dead`: Message exceeded retry limit and was moved to DLQ.
108
- */
109
- export declare const MessageStateSchema: z.ZodEnum<{
110
- pending: "pending";
111
- failed: "failed";
112
- leased: "leased";
113
- processing: "processing";
114
- delivered: "delivered";
115
- dead: "dead";
116
- }>;
117
- /**
118
- * Message state type.
119
- */
120
- export type MessageState = z.infer<typeof MessageStateSchema>;
121
- /**
122
- * Message schema representing a queue message.
123
- *
124
- * @example
125
- * ```typescript
126
- * const message = await publishMessage(client, 'my-queue', { payload: 'Hello' });
127
- * console.log(`Published message ${message.id} at offset ${message.offset}`);
128
- * ```
129
- */
130
- export declare const MessageSchema: z.ZodObject<{
131
- id: z.ZodString;
132
- queue_id: z.ZodString;
133
- offset: z.ZodNumber;
134
- payload: z.ZodUnknown;
135
- size: z.ZodOptional<z.ZodNumber>;
136
- metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
137
- state: z.ZodOptional<z.ZodEnum<{
138
- pending: "pending";
139
- failed: "failed";
140
- leased: "leased";
141
- processing: "processing";
142
- delivered: "delivered";
143
- dead: "dead";
144
- }>>;
145
- idempotency_key: z.ZodOptional<z.ZodNullable<z.ZodString>>;
146
- partition_key: z.ZodOptional<z.ZodNullable<z.ZodString>>;
147
- ttl_seconds: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
148
- delivery_attempts: z.ZodOptional<z.ZodNumber>;
149
- max_retries: z.ZodOptional<z.ZodNumber>;
150
- published_at: z.ZodOptional<z.ZodString>;
151
- expires_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
152
- delivered_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
153
- acknowledged_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
154
- created_at: z.ZodOptional<z.ZodString>;
155
- updated_at: z.ZodOptional<z.ZodString>;
156
- }, z.core.$strip>;
157
- /**
158
- * Message type representing a queue message.
159
- */
160
- export type Message = z.infer<typeof MessageSchema>;
161
- /**
162
- * Destination type schema. Currently only HTTP webhooks are supported.
163
- */
164
- export declare const DestinationTypeSchema: z.ZodEnum<{
165
- http: "http";
166
- }>;
167
- /**
168
- * Destination type.
169
- */
170
- export type DestinationType = z.infer<typeof DestinationTypeSchema>;
171
- /**
172
- * HTTP destination configuration schema for webhook delivery.
173
- *
174
- * @example
175
- * ```typescript
176
- * const config: HttpDestinationConfig = {
177
- * url: 'https://api.example.com/webhook',
178
- * method: 'POST',
179
- * headers: { 'X-Custom-Header': 'value' },
180
- * timeout_ms: 10000,
181
- * retry_policy: { max_attempts: 3 },
182
- * };
183
- * ```
184
- */
185
- export declare const HttpDestinationConfigSchema: z.ZodObject<{
186
- url: z.ZodString;
187
- headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
188
- method: z.ZodDefault<z.ZodString>;
189
- timeout_ms: z.ZodDefault<z.ZodNumber>;
190
- retry_policy: z.ZodOptional<z.ZodObject<{
191
- max_attempts: z.ZodDefault<z.ZodNumber>;
192
- initial_backoff_ms: z.ZodDefault<z.ZodNumber>;
193
- max_backoff_ms: z.ZodDefault<z.ZodNumber>;
194
- backoff_multiplier: z.ZodDefault<z.ZodNumber>;
195
- }, z.core.$strip>>;
196
- signing: z.ZodOptional<z.ZodObject<{
197
- enabled: z.ZodDefault<z.ZodBoolean>;
198
- secret_key: z.ZodOptional<z.ZodString>;
199
- }, z.core.$strip>>;
200
- }, z.core.$strip>;
201
- /**
202
- * HTTP destination configuration type.
203
- */
204
- export type HttpDestinationConfig = z.infer<typeof HttpDestinationConfigSchema>;
205
- /**
206
- * Destination statistics schema showing delivery metrics.
207
- */
208
- export declare const DestinationStatsSchema: z.ZodObject<{
209
- total_deliveries: z.ZodNumber;
210
- successful_deliveries: z.ZodNumber;
211
- failed_deliveries: z.ZodNumber;
212
- last_delivery_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
213
- last_success_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
214
- last_failure_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
215
- }, z.core.$strip>;
216
- /**
217
- * Destination statistics type.
218
- */
219
- export type DestinationStats = z.infer<typeof DestinationStatsSchema>;
220
- /**
221
- * Destination schema representing a webhook endpoint for message delivery.
222
- *
223
- * Destinations are attached to queues and automatically receive messages when published.
224
- *
225
- * @example
226
- * ```typescript
227
- * const destination = await createDestination(client, 'my-queue', {
228
- * destination_type: 'http',
229
- * config: { url: 'https://api.example.com/webhook' },
230
- * enabled: true,
231
- * });
232
- * ```
233
- */
234
- export declare const DestinationSchema: z.ZodObject<{
235
- id: z.ZodString;
236
- queue_id: z.ZodString;
237
- destination_type: z.ZodEnum<{
238
- http: "http";
239
- }>;
240
- config: z.ZodObject<{
241
- url: z.ZodString;
242
- headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
243
- method: z.ZodDefault<z.ZodString>;
244
- timeout_ms: z.ZodDefault<z.ZodNumber>;
245
- retry_policy: z.ZodOptional<z.ZodObject<{
246
- max_attempts: z.ZodDefault<z.ZodNumber>;
247
- initial_backoff_ms: z.ZodDefault<z.ZodNumber>;
248
- max_backoff_ms: z.ZodDefault<z.ZodNumber>;
249
- backoff_multiplier: z.ZodDefault<z.ZodNumber>;
250
- }, z.core.$strip>>;
251
- signing: z.ZodOptional<z.ZodObject<{
252
- enabled: z.ZodDefault<z.ZodBoolean>;
253
- secret_key: z.ZodOptional<z.ZodString>;
254
- }, z.core.$strip>>;
255
- }, z.core.$strip>;
256
- enabled: z.ZodBoolean;
257
- stats: z.ZodOptional<z.ZodObject<{
258
- total_deliveries: z.ZodNumber;
259
- successful_deliveries: z.ZodNumber;
260
- failed_deliveries: z.ZodNumber;
261
- last_delivery_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
262
- last_success_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
263
- last_failure_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
264
- }, z.core.$strip>>;
265
- created_at: z.ZodString;
266
- updated_at: z.ZodString;
267
- }, z.core.$strip>;
268
- /**
269
- * Destination type representing a webhook endpoint.
270
- */
271
- export type Destination = z.infer<typeof DestinationSchema>;
272
- /**
273
- * Dead letter message schema for messages that failed processing.
274
- *
275
- * Messages are moved to the dead letter queue (DLQ) after exceeding the maximum
276
- * retry limit. They can be inspected, replayed, or deleted.
277
- *
278
- * @example
279
- * ```typescript
280
- * const { messages } = await listDeadLetterMessages(client, 'my-queue');
281
- * for (const msg of messages) {
282
- * console.log(`Failed message: ${msg.failure_reason}`);
283
- * await replayDeadLetterMessage(client, 'my-queue', msg.id);
284
- * }
285
- * ```
286
- */
287
- export declare const DeadLetterMessageSchema: z.ZodObject<{
288
- id: z.ZodString;
289
- queue_id: z.ZodString;
290
- original_message_id: z.ZodOptional<z.ZodString>;
291
- offset: z.ZodNumber;
292
- payload: z.ZodUnknown;
293
- metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
294
- failure_reason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
295
- delivery_attempts: z.ZodNumber;
296
- moved_at: z.ZodOptional<z.ZodString>;
297
- original_published_at: z.ZodOptional<z.ZodString>;
298
- published_at: z.ZodOptional<z.ZodString>;
299
- created_at: z.ZodString;
300
- }, z.core.$strip>;
301
- /**
302
- * Dead letter message type.
303
- */
304
- export type DeadLetterMessage = z.infer<typeof DeadLetterMessageSchema>;
305
- /**
306
- * Common options for queue API calls.
307
- *
308
- * Used to pass organization context when calling from CLI or other
309
- * contexts where the org is not implicit in the authentication token.
310
- */
311
- export interface QueueApiOptions {
312
- /**
313
- * Organization ID for the request.
314
- * Required when using user authentication (CLI) instead of SDK key.
315
- */
316
- orgId?: string;
317
- /**
318
- * Whether to publish synchronously.
319
- * When true, the API waits for the message to be fully persisted before returning.
320
- * When false (default), the API returns immediately with a pending message.
321
- */
322
- sync?: boolean;
323
- }
324
- /**
325
- * Request schema for creating a new queue.
326
- *
327
- * @example
328
- * ```typescript
329
- * const request: CreateQueueRequest = {
330
- * name: 'my-worker-queue',
331
- * queue_type: 'worker',
332
- * description: 'Processes background jobs',
333
- * settings: { default_max_retries: 3 },
334
- * };
335
- * ```
336
- */
337
- export declare const CreateQueueRequestSchema: z.ZodObject<{
338
- name: z.ZodOptional<z.ZodString>;
339
- description: z.ZodOptional<z.ZodString>;
340
- queue_type: z.ZodEnum<{
341
- worker: "worker";
342
- pubsub: "pubsub";
343
- }>;
344
- settings: z.ZodOptional<z.ZodObject<{
345
- default_ttl_seconds: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodNumber>>>;
346
- default_visibility_timeout_seconds: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
347
- default_max_retries: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
348
- default_retry_backoff_ms: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
349
- default_retry_max_backoff_ms: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
350
- default_retry_multiplier: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
351
- max_in_flight_per_client: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
352
- retention_seconds: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
353
- }, z.core.$strip>>;
354
- }, z.core.$strip>;
355
- /** Request type for creating a queue. */
356
- export type CreateQueueRequest = z.infer<typeof CreateQueueRequestSchema>;
357
- /**
358
- * Request schema for updating an existing queue.
359
- */
360
- export declare const UpdateQueueRequestSchema: z.ZodObject<{
361
- description: z.ZodOptional<z.ZodString>;
362
- settings: z.ZodOptional<z.ZodObject<{
363
- default_ttl_seconds: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodNumber>>>;
364
- default_visibility_timeout_seconds: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
365
- default_max_retries: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
366
- default_retry_backoff_ms: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
367
- default_retry_max_backoff_ms: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
368
- default_retry_multiplier: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
369
- max_in_flight_per_client: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
370
- retention_seconds: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
371
- }, z.core.$strip>>;
372
- }, z.core.$strip>;
373
- /** Request type for updating a queue. */
374
- export type UpdateQueueRequest = z.infer<typeof UpdateQueueRequestSchema>;
375
- /**
376
- * Request schema for listing queues with pagination.
377
- */
378
- export declare const ListQueuesRequestSchema: z.ZodObject<{
379
- limit: z.ZodOptional<z.ZodNumber>;
380
- offset: z.ZodOptional<z.ZodNumber>;
381
- name: z.ZodOptional<z.ZodString>;
382
- queue_type: z.ZodOptional<z.ZodEnum<{
383
- worker: "worker";
384
- pubsub: "pubsub";
385
- }>>;
386
- status: z.ZodOptional<z.ZodEnum<{
387
- paused: "paused";
388
- active: "active";
389
- }>>;
390
- sort: z.ZodOptional<z.ZodEnum<{
391
- name: "name";
392
- created: "created";
393
- updated: "updated";
394
- message_count: "message_count";
395
- dlq_count: "dlq_count";
396
- }>>;
397
- direction: z.ZodOptional<z.ZodEnum<{
398
- asc: "asc";
399
- desc: "desc";
400
- }>>;
401
- }, z.core.$strip>;
402
- /** Request type for listing queues. */
403
- export type ListQueuesRequest = z.infer<typeof ListQueuesRequestSchema>;
404
- /**
405
- * Request schema for publishing a message to a queue.
406
- *
407
- * @example
408
- * ```typescript
409
- * const request: PublishMessageRequest = {
410
- * payload: { task: 'process-order', orderId: 123 },
411
- * metadata: { priority: 'high' },
412
- * idempotency_key: 'order-123-v1',
413
- * ttl_seconds: 3600,
414
- * };
415
- * ```
416
- */
417
- export declare const PublishMessageRequestSchema: z.ZodObject<{
418
- payload: z.ZodUnknown;
419
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
420
- idempotency_key: z.ZodOptional<z.ZodString>;
421
- partition_key: z.ZodOptional<z.ZodString>;
422
- ttl_seconds: z.ZodOptional<z.ZodNumber>;
423
- }, z.core.$strip>;
424
- /** Request type for publishing a message. */
425
- export type PublishMessageRequest = z.infer<typeof PublishMessageRequestSchema>;
426
- /**
427
- * Request schema for batch publishing multiple messages.
428
- *
429
- * @example
430
- * ```typescript
431
- * const request: BatchPublishMessagesRequest = {
432
- * messages: [
433
- * { payload: { task: 'a' } },
434
- * { payload: { task: 'b' } },
435
- * ],
436
- * };
437
- * ```
438
- */
439
- export declare const BatchPublishMessagesRequestSchema: z.ZodObject<{
440
- messages: z.ZodArray<z.ZodObject<{
441
- payload: z.ZodUnknown;
442
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
443
- idempotency_key: z.ZodOptional<z.ZodString>;
444
- partition_key: z.ZodOptional<z.ZodString>;
445
- ttl_seconds: z.ZodOptional<z.ZodNumber>;
446
- }, z.core.$strip>>;
447
- }, z.core.$strip>;
448
- /** Request type for batch publishing messages. */
449
- export type BatchPublishMessagesRequest = z.infer<typeof BatchPublishMessagesRequestSchema>;
450
- /**
451
- * Request schema for listing messages with pagination and filtering.
452
- */
453
- export declare const ListMessagesRequestSchema: z.ZodObject<{
454
- limit: z.ZodOptional<z.ZodNumber>;
455
- offset: z.ZodOptional<z.ZodNumber>;
456
- state: z.ZodOptional<z.ZodEnum<{
457
- pending: "pending";
458
- failed: "failed";
459
- leased: "leased";
460
- processing: "processing";
461
- delivered: "delivered";
462
- dead: "dead";
463
- }>>;
464
- }, z.core.$strip>;
465
- /** Request type for listing messages. */
466
- export type ListMessagesRequest = z.infer<typeof ListMessagesRequestSchema>;
467
- /**
468
- * Request schema for consuming messages from a specific offset.
469
- */
470
- export declare const ConsumeMessagesRequestSchema: z.ZodObject<{
471
- offset: z.ZodNumber;
472
- limit: z.ZodOptional<z.ZodNumber>;
473
- }, z.core.$strip>;
474
- /** Request type for consuming messages. */
475
- export type ConsumeMessagesRequest = z.infer<typeof ConsumeMessagesRequestSchema>;
476
- /**
477
- * Request schema for creating a destination webhook.
478
- *
479
- * @example
480
- * ```typescript
481
- * const request: CreateDestinationRequest = {
482
- * destination_type: 'http',
483
- * config: {
484
- * url: 'https://api.example.com/webhook',
485
- * method: 'POST',
486
- * },
487
- * enabled: true,
488
- * };
489
- * ```
490
- */
491
- export declare const CreateDestinationRequestSchema: z.ZodObject<{
492
- destination_type: z.ZodEnum<{
493
- http: "http";
494
- }>;
495
- config: z.ZodObject<{
496
- url: z.ZodString;
497
- headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
498
- method: z.ZodDefault<z.ZodString>;
499
- timeout_ms: z.ZodDefault<z.ZodNumber>;
500
- retry_policy: z.ZodOptional<z.ZodObject<{
501
- max_attempts: z.ZodDefault<z.ZodNumber>;
502
- initial_backoff_ms: z.ZodDefault<z.ZodNumber>;
503
- max_backoff_ms: z.ZodDefault<z.ZodNumber>;
504
- backoff_multiplier: z.ZodDefault<z.ZodNumber>;
505
- }, z.core.$strip>>;
506
- signing: z.ZodOptional<z.ZodObject<{
507
- enabled: z.ZodDefault<z.ZodBoolean>;
508
- secret_key: z.ZodOptional<z.ZodString>;
509
- }, z.core.$strip>>;
510
- }, z.core.$strip>;
511
- enabled: z.ZodDefault<z.ZodBoolean>;
512
- }, z.core.$strip>;
513
- /** Request type for creating a destination. */
514
- export type CreateDestinationRequest = z.infer<typeof CreateDestinationRequestSchema>;
515
- /**
516
- * Request schema for updating a destination.
517
- */
518
- export declare const UpdateDestinationRequestSchema: z.ZodObject<{
519
- config: z.ZodOptional<z.ZodObject<{
520
- url: z.ZodOptional<z.ZodString>;
521
- headers: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>>;
522
- method: z.ZodOptional<z.ZodDefault<z.ZodString>>;
523
- timeout_ms: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
524
- retry_policy: z.ZodOptional<z.ZodOptional<z.ZodObject<{
525
- max_attempts: z.ZodDefault<z.ZodNumber>;
526
- initial_backoff_ms: z.ZodDefault<z.ZodNumber>;
527
- max_backoff_ms: z.ZodDefault<z.ZodNumber>;
528
- backoff_multiplier: z.ZodDefault<z.ZodNumber>;
529
- }, z.core.$strip>>>;
530
- signing: z.ZodOptional<z.ZodOptional<z.ZodObject<{
531
- enabled: z.ZodDefault<z.ZodBoolean>;
532
- secret_key: z.ZodOptional<z.ZodString>;
533
- }, z.core.$strip>>>;
534
- }, z.core.$strip>>;
535
- enabled: z.ZodOptional<z.ZodBoolean>;
536
- }, z.core.$strip>;
537
- /** Request type for updating a destination. */
538
- export type UpdateDestinationRequest = z.infer<typeof UpdateDestinationRequestSchema>;
539
- /**
540
- * Request schema for listing dead letter queue messages with pagination.
541
- */
542
- export declare const ListDlqRequestSchema: z.ZodObject<{
543
- limit: z.ZodOptional<z.ZodNumber>;
544
- offset: z.ZodOptional<z.ZodNumber>;
545
- }, z.core.$strip>;
546
- /** Request type for listing DLQ messages. */
547
- export type ListDlqRequest = z.infer<typeof ListDlqRequestSchema>;
548
- /**
549
- * Time bucket granularity for analytics queries.
550
- *
551
- * - `minute`: 1-minute buckets, max range 24 hours. Best for real-time monitoring.
552
- * - `hour`: 1-hour buckets, max range 7 days. Best for short-term trend analysis.
553
- * - `day`: 1-day buckets, max range 90 days. Best for long-term analysis.
554
- *
555
- * @example
556
- * ```typescript
557
- * const analytics = await getQueueAnalytics(client, 'my-queue', {
558
- * granularity: 'hour',
559
- * start: '2026-01-14T00:00:00Z',
560
- * });
561
- * ```
562
- */
563
- export declare const AnalyticsGranularitySchema: z.ZodEnum<{
564
- minute: "minute";
565
- hour: "hour";
566
- day: "day";
567
- }>;
568
- /**
569
- * Time bucket granularity type.
570
- */
571
- export type AnalyticsGranularity = z.infer<typeof AnalyticsGranularitySchema>;
572
- /**
573
- * Options for analytics queries.
574
- *
575
- * Use these options to filter and configure analytics requests by time range,
576
- * granularity, and optional filters like project or agent ID.
577
- *
578
- * @example
579
- * ```typescript
580
- * const options: AnalyticsOptions = {
581
- * start: '2026-01-14T00:00:00Z',
582
- * end: '2026-01-15T00:00:00Z',
583
- * granularity: 'hour',
584
- * projectId: 'proj_abc123',
585
- * };
586
- * const analytics = await getQueueAnalytics(client, 'my-queue', options);
587
- * ```
588
- */
589
- export interface AnalyticsOptions extends QueueApiOptions {
590
- /**
591
- * Start of time range in ISO8601 format.
592
- * @default 24 hours ago
593
- * @example '2026-01-14T00:00:00Z'
594
- */
595
- start?: string;
596
- /**
597
- * End of time range in ISO8601 format.
598
- * @default Current time
599
- * @example '2026-01-15T00:00:00Z'
600
- */
601
- end?: string;
602
- /**
603
- * Time bucket granularity for aggregation.
604
- * @default 'hour'
605
- */
606
- granularity?: AnalyticsGranularity;
607
- /**
608
- * Filter analytics to messages from a specific project.
609
- * Only messages with matching `project_id` will be included.
610
- */
611
- projectId?: string;
612
- /**
613
- * Filter analytics to messages from a specific agent.
614
- * Only messages with matching `agent_id` will be included.
615
- */
616
- agentId?: string;
617
- }
618
- /**
619
- * Options for real-time SSE streaming analytics.
620
- *
621
- * SSE (Server-Sent Events) streams provide live updates of queue statistics
622
- * at a configurable interval. The stream stays open until closed by the client.
623
- *
624
- * @example
625
- * ```typescript
626
- * const stream = streamQueueAnalytics(client, 'my-queue', { interval: 5 });
627
- * for await (const event of stream) {
628
- * console.log(`Backlog: ${event.backlog}`);
629
- * }
630
- * ```
631
- */
632
- export interface StreamAnalyticsOptions extends QueueApiOptions {
633
- /**
634
- * Interval between stats updates in seconds.
635
- * @default 5
636
- * @minimum 1
637
- * @maximum 60
638
- */
639
- interval?: number;
640
- }
641
- /**
642
- * Time period for analytics responses.
643
- *
644
- * Represents the time range and granularity of the analytics data.
645
- */
646
- export declare const TimePeriodSchema: z.ZodObject<{
647
- start: z.ZodString;
648
- end: z.ZodString;
649
- granularity: z.ZodOptional<z.ZodEnum<{
650
- minute: "minute";
651
- hour: "hour";
652
- day: "day";
653
- }>>;
654
- }, z.core.$strip>;
655
- /**
656
- * Time period type representing a date range for analytics.
657
- */
658
- export type TimePeriod = z.infer<typeof TimePeriodSchema>;
659
- /**
660
- * Latency statistics with percentile distributions.
661
- *
662
- * Provides average, percentile (p50, p95, p99), and maximum latency values
663
- * for message delivery operations.
664
- *
665
- * @example
666
- * ```typescript
667
- * const { latency } = await getQueueAnalytics(client, 'my-queue');
668
- * console.log(`Average: ${latency.avg_ms}ms, P95: ${latency.p95_ms}ms`);
669
- * ```
670
- */
671
- export declare const LatencyStatsSchema: z.ZodObject<{
672
- avg_ms: z.ZodNumber;
673
- p50_ms: z.ZodOptional<z.ZodNumber>;
674
- p95_ms: z.ZodOptional<z.ZodNumber>;
675
- p99_ms: z.ZodOptional<z.ZodNumber>;
676
- max_ms: z.ZodOptional<z.ZodNumber>;
677
- }, z.core.$strip>;
678
- /**
679
- * Latency statistics type.
680
- */
681
- export type LatencyStats = z.infer<typeof LatencyStatsSchema>;
682
- /**
683
- * Current real-time queue state.
684
- *
685
- * Represents the instantaneous state of a queue, useful for monitoring
686
- * dashboards and alerting on queue health.
687
- *
688
- * @example
689
- * ```typescript
690
- * const { current } = await getQueueAnalytics(client, 'my-queue');
691
- * if (current.backlog > 1000) {
692
- * console.warn('Queue backlog is high!');
693
- * }
694
- * ```
695
- */
696
- export declare const QueueCurrentStatsSchema: z.ZodObject<{
697
- backlog: z.ZodNumber;
698
- dlq_count: z.ZodNumber;
699
- messages_in_flight: z.ZodNumber;
700
- active_consumers: z.ZodNumber;
701
- oldest_message_age_seconds: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
702
- }, z.core.$strip>;
703
- /**
704
- * Current queue state type.
705
- */
706
- export type QueueCurrentStats = z.infer<typeof QueueCurrentStatsSchema>;
707
- /**
708
- * Aggregated statistics for a time period.
709
- *
710
- * Contains counts and metrics aggregated over the requested time range.
711
- *
712
- * @example
713
- * ```typescript
714
- * const { period_stats } = await getQueueAnalytics(client, 'my-queue');
715
- * const successRate = period_stats.messages_acknowledged / period_stats.messages_published;
716
- * console.log(`Success rate: ${(successRate * 100).toFixed(1)}%`);
717
- * ```
718
- */
719
- export declare const QueuePeriodStatsSchema: z.ZodObject<{
720
- messages_published: z.ZodNumber;
721
- messages_delivered: z.ZodNumber;
722
- messages_acknowledged: z.ZodNumber;
723
- messages_failed: z.ZodNumber;
724
- messages_replayed: z.ZodNumber;
725
- bytes_published: z.ZodNumber;
726
- delivery_attempts: z.ZodNumber;
727
- retry_count: z.ZodNumber;
728
- }, z.core.$strip>;
729
- /**
730
- * Period statistics type.
731
- */
732
- export type QueuePeriodStats = z.infer<typeof QueuePeriodStatsSchema>;
733
- /**
734
- * Analytics for a webhook destination.
735
- *
736
- * Provides delivery statistics for a configured webhook endpoint.
737
- *
738
- * @example
739
- * ```typescript
740
- * const { destinations } = await getQueueAnalytics(client, 'my-queue');
741
- * for (const dest of destinations ?? []) {
742
- * const successRate = dest.success_count / (dest.success_count + dest.failure_count);
743
- * console.log(`${dest.url}: ${(successRate * 100).toFixed(1)}% success`);
744
- * }
745
- * ```
746
- */
747
- export declare const DestinationAnalyticsSchema: z.ZodObject<{
748
- id: z.ZodString;
749
- type: z.ZodString;
750
- url: z.ZodString;
751
- success_count: z.ZodNumber;
752
- failure_count: z.ZodNumber;
753
- avg_response_time_ms: z.ZodOptional<z.ZodNumber>;
754
- last_success_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
755
- last_failure_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
756
- }, z.core.$strip>;
757
- /**
758
- * Destination analytics type.
759
- */
760
- export type DestinationAnalytics = z.infer<typeof DestinationAnalyticsSchema>;
761
- /**
762
- * Complete analytics for a single queue.
763
- *
764
- * Provides comprehensive analytics including current state, period statistics,
765
- * latency metrics, and destination performance.
766
- *
767
- * @example
768
- * ```typescript
769
- * const analytics = await getQueueAnalytics(client, 'order-processing');
770
- * console.log(`Queue: ${analytics.queue_name} (${analytics.queue_type})`);
771
- * console.log(`Backlog: ${analytics.current.backlog}`);
772
- * console.log(`Published (24h): ${analytics.period_stats.messages_published}`);
773
- * console.log(`P95 Latency: ${analytics.latency.p95_ms}ms`);
774
- * ```
775
- */
776
- export declare const QueueAnalyticsSchema: z.ZodObject<{
777
- queue_id: z.ZodString;
778
- queue_name: z.ZodString;
779
- queue_type: z.ZodString;
780
- period: z.ZodObject<{
781
- start: z.ZodString;
782
- end: z.ZodString;
783
- granularity: z.ZodOptional<z.ZodEnum<{
784
- minute: "minute";
785
- hour: "hour";
786
- day: "day";
787
- }>>;
788
- }, z.core.$strip>;
789
- current: z.ZodObject<{
790
- backlog: z.ZodNumber;
791
- dlq_count: z.ZodNumber;
792
- messages_in_flight: z.ZodNumber;
793
- active_consumers: z.ZodNumber;
794
- oldest_message_age_seconds: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
795
- }, z.core.$strip>;
796
- period_stats: z.ZodObject<{
797
- messages_published: z.ZodNumber;
798
- messages_delivered: z.ZodNumber;
799
- messages_acknowledged: z.ZodNumber;
800
- messages_failed: z.ZodNumber;
801
- messages_replayed: z.ZodNumber;
802
- bytes_published: z.ZodNumber;
803
- delivery_attempts: z.ZodNumber;
804
- retry_count: z.ZodNumber;
805
- }, z.core.$strip>;
806
- latency: z.ZodObject<{
807
- avg_ms: z.ZodNumber;
808
- p50_ms: z.ZodOptional<z.ZodNumber>;
809
- p95_ms: z.ZodOptional<z.ZodNumber>;
810
- p99_ms: z.ZodOptional<z.ZodNumber>;
811
- max_ms: z.ZodOptional<z.ZodNumber>;
812
- }, z.core.$strip>;
813
- consumer_latency: z.ZodObject<{
814
- avg_ms: z.ZodNumber;
815
- p50_ms: z.ZodOptional<z.ZodNumber>;
816
- p95_ms: z.ZodOptional<z.ZodNumber>;
817
- p99_ms: z.ZodOptional<z.ZodNumber>;
818
- max_ms: z.ZodOptional<z.ZodNumber>;
819
- }, z.core.$strip>;
820
- destinations: z.ZodOptional<z.ZodArray<z.ZodObject<{
821
- id: z.ZodString;
822
- type: z.ZodString;
823
- url: z.ZodString;
824
- success_count: z.ZodNumber;
825
- failure_count: z.ZodNumber;
826
- avg_response_time_ms: z.ZodOptional<z.ZodNumber>;
827
- last_success_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
828
- last_failure_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
829
- }, z.core.$strip>>>;
830
- }, z.core.$strip>;
831
- /**
832
- * Queue analytics type.
833
- */
834
- export type QueueAnalytics = z.infer<typeof QueueAnalyticsSchema>;
835
- /**
836
- * Summary statistics for a queue in org-level analytics.
837
- *
838
- * Provides a condensed view of queue metrics for listing in dashboards.
839
- */
840
- export declare const QueueSummarySchema: z.ZodObject<{
841
- id: z.ZodString;
842
- name: z.ZodString;
843
- queue_type: z.ZodString;
844
- messages_published: z.ZodNumber;
845
- messages_delivered: z.ZodNumber;
846
- messages_acknowledged: z.ZodNumber;
847
- backlog: z.ZodNumber;
848
- dlq_count: z.ZodNumber;
849
- avg_latency_ms: z.ZodNumber;
850
- error_rate_percent: z.ZodNumber;
851
- }, z.core.$strip>;
852
- /**
853
- * Queue summary type for org-level listings.
854
- */
855
- export type QueueSummary = z.infer<typeof QueueSummarySchema>;
856
- /**
857
- * Aggregated summary across all queues in an organization.
858
- *
859
- * @example
860
- * ```typescript
861
- * const { summary } = await getOrgAnalytics(client);
862
- * console.log(`Total queues: ${summary.total_queues}`);
863
- * console.log(`Total messages: ${summary.total_messages_published}`);
864
- * console.log(`Error rate: ${summary.error_rate_percent.toFixed(2)}%`);
865
- * ```
866
- */
867
- export declare const OrgAnalyticsSummarySchema: z.ZodObject<{
868
- total_queues: z.ZodNumber;
869
- total_messages_published: z.ZodNumber;
870
- total_messages_delivered: z.ZodNumber;
871
- total_messages_acknowledged: z.ZodNumber;
872
- total_dlq_messages: z.ZodNumber;
873
- total_bytes_published: z.ZodNumber;
874
- avg_latency_ms: z.ZodNumber;
875
- p95_latency_ms: z.ZodNumber;
876
- error_rate_percent: z.ZodNumber;
877
- }, z.core.$strip>;
878
- /**
879
- * Org-level analytics summary type.
880
- */
881
- export type OrgAnalyticsSummary = z.infer<typeof OrgAnalyticsSummarySchema>;
882
- /**
883
- * Complete organization-level analytics.
884
- *
885
- * Provides an overview of all queues with aggregated metrics and per-queue summaries.
886
- *
887
- * @example
888
- * ```typescript
889
- * const analytics = await getOrgAnalytics(client);
890
- * console.log(`Org: ${analytics.org_id}`);
891
- * console.log(`Queues: ${analytics.summary.total_queues}`);
892
- * for (const queue of analytics.queues) {
893
- * console.log(` ${queue.name}: ${queue.backlog} pending`);
894
- * }
895
- * ```
896
- */
897
- export declare const OrgAnalyticsSchema: z.ZodObject<{
898
- org_id: z.ZodString;
899
- period: z.ZodObject<{
900
- start: z.ZodString;
901
- end: z.ZodString;
902
- granularity: z.ZodOptional<z.ZodEnum<{
903
- minute: "minute";
904
- hour: "hour";
905
- day: "day";
906
- }>>;
907
- }, z.core.$strip>;
908
- summary: z.ZodObject<{
909
- total_queues: z.ZodNumber;
910
- total_messages_published: z.ZodNumber;
911
- total_messages_delivered: z.ZodNumber;
912
- total_messages_acknowledged: z.ZodNumber;
913
- total_dlq_messages: z.ZodNumber;
914
- total_bytes_published: z.ZodNumber;
915
- avg_latency_ms: z.ZodNumber;
916
- p95_latency_ms: z.ZodNumber;
917
- error_rate_percent: z.ZodNumber;
918
- }, z.core.$strip>;
919
- queues: z.ZodArray<z.ZodObject<{
920
- id: z.ZodString;
921
- name: z.ZodString;
922
- queue_type: z.ZodString;
923
- messages_published: z.ZodNumber;
924
- messages_delivered: z.ZodNumber;
925
- messages_acknowledged: z.ZodNumber;
926
- backlog: z.ZodNumber;
927
- dlq_count: z.ZodNumber;
928
- avg_latency_ms: z.ZodNumber;
929
- error_rate_percent: z.ZodNumber;
930
- }, z.core.$strip>>;
931
- }, z.core.$strip>;
932
- /**
933
- * Org-level analytics type.
934
- */
935
- export type OrgAnalytics = z.infer<typeof OrgAnalyticsSchema>;
936
- /**
937
- * Single data point in a time series.
938
- *
939
- * Represents metrics for one time bucket (minute, hour, or day).
940
- * Used for building charts and visualizing trends over time.
941
- *
942
- * @example
943
- * ```typescript
944
- * const { series } = await getQueueTimeSeries(client, 'my-queue', { granularity: 'hour' });
945
- * for (const point of series) {
946
- * console.log(`${point.timestamp}: ${point.throughput} msg/h, ${point.avg_latency_ms}ms avg`);
947
- * }
948
- * ```
949
- */
950
- export declare const TimeSeriesPointSchema: z.ZodObject<{
951
- timestamp: z.ZodString;
952
- throughput: z.ZodNumber;
953
- delivery_rate: z.ZodNumber;
954
- ack_rate: z.ZodNumber;
955
- error_rate: z.ZodNumber;
956
- avg_latency_ms: z.ZodNumber;
957
- p95_latency_ms: z.ZodOptional<z.ZodNumber>;
958
- backlog: z.ZodOptional<z.ZodNumber>;
959
- messages_in_flight: z.ZodOptional<z.ZodNumber>;
960
- }, z.core.$strip>;
961
- /**
962
- * Time series data point type.
963
- */
964
- export type TimeSeriesPoint = z.infer<typeof TimeSeriesPointSchema>;
965
- /**
966
- * Time series analytics data for charting and visualization.
967
- *
968
- * Contains an array of data points at the requested granularity for building
969
- * time-based charts and dashboards.
970
- *
971
- * @example
972
- * ```typescript
973
- * const timeseries = await getQueueTimeSeries(client, 'order-processing', {
974
- * granularity: 'hour',
975
- * start: '2026-01-14T00:00:00Z',
976
- * end: '2026-01-15T00:00:00Z',
977
- * });
978
- *
979
- * // Plot throughput over time
980
- * const chartData = timeseries.series.map(p => ({
981
- * x: new Date(p.timestamp),
982
- * y: p.throughput,
983
- * }));
984
- * ```
985
- */
986
- export declare const TimeSeriesDataSchema: z.ZodObject<{
987
- queue_id: z.ZodString;
988
- queue_name: z.ZodString;
989
- period: z.ZodObject<{
990
- start: z.ZodString;
991
- end: z.ZodString;
992
- granularity: z.ZodOptional<z.ZodEnum<{
993
- minute: "minute";
994
- hour: "hour";
995
- day: "day";
996
- }>>;
997
- }, z.core.$strip>;
998
- series: z.ZodArray<z.ZodObject<{
999
- timestamp: z.ZodString;
1000
- throughput: z.ZodNumber;
1001
- delivery_rate: z.ZodNumber;
1002
- ack_rate: z.ZodNumber;
1003
- error_rate: z.ZodNumber;
1004
- avg_latency_ms: z.ZodNumber;
1005
- p95_latency_ms: z.ZodOptional<z.ZodNumber>;
1006
- backlog: z.ZodOptional<z.ZodNumber>;
1007
- messages_in_flight: z.ZodOptional<z.ZodNumber>;
1008
- }, z.core.$strip>>;
1009
- }, z.core.$strip>;
1010
- /**
1011
- * Time series data type.
1012
- */
1013
- export type TimeSeriesData = z.infer<typeof TimeSeriesDataSchema>;
1014
- /**
1015
- * Real-time stats event from SSE stream.
1016
- *
1017
- * Represents a single snapshot of queue statistics delivered via Server-Sent Events.
1018
- * Events are pushed at the interval specified when opening the stream.
1019
- *
1020
- * @example
1021
- * ```typescript
1022
- * const stream = streamQueueAnalytics(client, 'my-queue', { interval: 5 });
1023
- * for await (const event of stream) {
1024
- * updateDashboard({
1025
- * backlog: event.backlog,
1026
- * throughput: event.throughput_1m,
1027
- * latency: event.avg_latency_ms,
1028
- * consumers: event.active_consumers,
1029
- * });
1030
- * }
1031
- * ```
1032
- */
1033
- export declare const SSEStatsEventSchema: z.ZodObject<{
1034
- timestamp: z.ZodString;
1035
- backlog: z.ZodNumber;
1036
- messages_in_flight: z.ZodNumber;
1037
- throughput_1m: z.ZodNumber;
1038
- delivery_rate_1m: z.ZodNumber;
1039
- error_rate_1m: z.ZodNumber;
1040
- avg_latency_ms: z.ZodNumber;
1041
- active_consumers: z.ZodNumber;
1042
- }, z.core.$strip>;
1043
- /**
1044
- * SSE stats event type for real-time streaming.
1045
- */
1046
- export type SSEStatsEvent = z.infer<typeof SSEStatsEventSchema>;
1047
- /**
1048
- * Source authentication type schema.
1049
- */
1050
- export declare const SourceAuthTypeSchema: z.ZodEnum<{
1051
- none: "none";
1052
- basic: "basic";
1053
- header: "header";
1054
- }>;
1055
- /**
1056
- * Source authentication type.
1057
- */
1058
- export type SourceAuthType = z.infer<typeof SourceAuthTypeSchema>;
1059
- /**
1060
- * Queue source schema representing an HTTP ingestion endpoint.
1061
- *
1062
- * Sources provide public URLs for ingesting data into queues from external sources.
1063
- * They support various authentication methods to secure access.
1064
- *
1065
- * @example
1066
- * ```typescript
1067
- * const source = await getSource(client, 'my-queue', 'qsrc_abc123');
1068
- * console.log(`Source URL: ${source.url}`);
1069
- * console.log(`Success rate: ${source.success_count}/${source.request_count}`);
1070
- * ```
1071
- */
1072
- export declare const SourceSchema: z.ZodObject<{
1073
- id: z.ZodString;
1074
- queue_id: z.ZodString;
1075
- name: z.ZodString;
1076
- description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1077
- auth_type: z.ZodEnum<{
1078
- none: "none";
1079
- basic: "basic";
1080
- header: "header";
1081
- }>;
1082
- enabled: z.ZodBoolean;
1083
- url: z.ZodString;
1084
- request_count: z.ZodNumber;
1085
- success_count: z.ZodNumber;
1086
- failure_count: z.ZodNumber;
1087
- last_request_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1088
- last_success_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1089
- last_failure_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1090
- last_failure_error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1091
- created_at: z.ZodString;
1092
- updated_at: z.ZodString;
1093
- }, z.core.$strip>;
1094
- /**
1095
- * Queue source type.
1096
- */
1097
- export type Source = z.infer<typeof SourceSchema>;
1098
- /**
1099
- * Create source request schema.
1100
- *
1101
- * @example
1102
- * ```typescript
1103
- * const request: CreateSourceRequest = {
1104
- * name: 'webhook-ingestion',
1105
- * description: 'Receives webhooks from external service',
1106
- * auth_type: 'header',
1107
- * auth_value: 'Bearer my-secret-token',
1108
- * };
1109
- * ```
1110
- */
1111
- export declare const CreateSourceRequestSchema: z.ZodObject<{
1112
- name: z.ZodString;
1113
- description: z.ZodOptional<z.ZodString>;
1114
- auth_type: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
1115
- none: "none";
1116
- basic: "basic";
1117
- header: "header";
1118
- }>>>;
1119
- auth_value: z.ZodOptional<z.ZodString>;
1120
- }, z.core.$strip>;
1121
- /**
1122
- * Create source request type.
1123
- */
1124
- export type CreateSourceRequest = z.infer<typeof CreateSourceRequestSchema>;
1125
- /**
1126
- * Update source request schema.
1127
- *
1128
- * All fields are optional - only provided fields will be updated.
1129
- *
1130
- * @example
1131
- * ```typescript
1132
- * // Disable a source
1133
- * const request: UpdateSourceRequest = { enabled: false };
1134
- *
1135
- * // Update authentication
1136
- * const request: UpdateSourceRequest = {
1137
- * auth_type: 'basic',
1138
- * auth_value: 'user:password',
1139
- * };
1140
- * ```
1141
- */
1142
- export declare const UpdateSourceRequestSchema: z.ZodObject<{
1143
- name: z.ZodOptional<z.ZodString>;
1144
- description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1145
- auth_type: z.ZodOptional<z.ZodEnum<{
1146
- none: "none";
1147
- basic: "basic";
1148
- header: "header";
1149
- }>>;
1150
- auth_value: z.ZodOptional<z.ZodString>;
1151
- enabled: z.ZodOptional<z.ZodBoolean>;
1152
- }, z.core.$strip>;
1153
- /**
1154
- * Update source request type.
1155
- */
1156
- export type UpdateSourceRequest = z.infer<typeof UpdateSourceRequestSchema>;
1157
- /**
1158
- * WebSocket authentication request.
1159
- * This must be the first message sent after the WebSocket connection is established.
1160
- */
1161
- export declare const WebSocketAuthRequestSchema: z.ZodObject<{
1162
- authorization: z.ZodString;
1163
- client_id: z.ZodOptional<z.ZodString>;
1164
- last_offset: z.ZodOptional<z.ZodNumber>;
1165
- }, z.core.$strip>;
1166
- export type WebSocketAuthRequest = z.infer<typeof WebSocketAuthRequestSchema>;
1167
- /**
1168
- * WebSocket authentication response from the server.
1169
- */
1170
- export declare const WebSocketAuthResponseSchema: z.ZodObject<{
1171
- success: z.ZodBoolean;
1172
- error: z.ZodOptional<z.ZodString>;
1173
- client_id: z.ZodOptional<z.ZodString>;
1174
- }, z.core.$strip>;
1175
- export type WebSocketAuthResponse = z.infer<typeof WebSocketAuthResponseSchema>;
1176
- /**
1177
- * WebSocket message pushed by the server.
1178
- *
1179
- * Messages are always delivered as an array. A single live push contains one
1180
- * element (`type: "message"`), while a replay batch may contain many
1181
- * (`type: "replay"`).
1182
- */
1183
- export declare const WebSocketMessageSchema: z.ZodObject<{
1184
- type: z.ZodEnum<{
1185
- message: "message";
1186
- replay: "replay";
1187
- }>;
1188
- queue_id: z.ZodString;
1189
- messages: z.ZodArray<z.ZodObject<{
1190
- id: z.ZodString;
1191
- queue_id: z.ZodString;
1192
- offset: z.ZodNumber;
1193
- payload: z.ZodUnknown;
1194
- size: z.ZodOptional<z.ZodNumber>;
1195
- metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
1196
- state: z.ZodOptional<z.ZodEnum<{
1197
- pending: "pending";
1198
- failed: "failed";
1199
- leased: "leased";
1200
- processing: "processing";
1201
- delivered: "delivered";
1202
- dead: "dead";
1203
- }>>;
1204
- idempotency_key: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1205
- partition_key: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1206
- ttl_seconds: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1207
- delivery_attempts: z.ZodOptional<z.ZodNumber>;
1208
- max_retries: z.ZodOptional<z.ZodNumber>;
1209
- published_at: z.ZodOptional<z.ZodString>;
1210
- expires_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1211
- delivered_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1212
- acknowledged_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1213
- created_at: z.ZodOptional<z.ZodString>;
1214
- updated_at: z.ZodOptional<z.ZodString>;
1215
- }, z.core.$strip>>;
1216
- }, z.core.$strip>;
1217
- export type WebSocketMessage = z.infer<typeof WebSocketMessageSchema>;
1218
- //# sourceMappingURL=types.d.ts.map