@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,1002 +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 const QueueTypeSchema = z.enum(['worker', 'pubsub']);
14
- /**
15
- * Base queue settings schema without defaults - used for partial updates.
16
- *
17
- * This schema is used for PATCH operations where we don't want Zod to apply
18
- * default values for missing fields (which would overwrite existing values).
19
- */
20
- const QueueSettingsSchemaBase = z.object({
21
- /** Default time-to-live for messages in seconds. Null means no expiration. */
22
- default_ttl_seconds: z.number().nullable().optional(),
23
- /** Time in seconds a message is invisible after being received. */
24
- default_visibility_timeout_seconds: z.number().optional(),
25
- /** Maximum number of delivery attempts before moving to DLQ. */
26
- default_max_retries: z.number().optional(),
27
- /** Initial backoff delay in milliseconds for retries. */
28
- default_retry_backoff_ms: z.number().optional(),
29
- /** Maximum backoff delay in milliseconds for retries. */
30
- default_retry_max_backoff_ms: z.number().optional(),
31
- /** Multiplier for exponential backoff. */
32
- default_retry_multiplier: z.number().optional(),
33
- /** Maximum number of messages a single client can process concurrently. */
34
- max_in_flight_per_client: z.number().optional(),
35
- /** Retention period for acknowledged messages in seconds. */
36
- retention_seconds: z.number().optional(),
37
- });
38
- /**
39
- * Queue settings schema for configuring queue behavior.
40
- *
41
- * These settings control message lifecycle, retry behavior, and concurrency limits.
42
- * This schema includes defaults and is used for output types and documentation.
43
- *
44
- * @example
45
- * ```typescript
46
- * const settings = QueueSettingsSchema.parse({
47
- * default_ttl_seconds: 3600, // Messages expire after 1 hour
48
- * default_visibility_timeout_seconds: 60, // Processing timeout
49
- * default_max_retries: 3, // Retry failed messages 3 times
50
- * });
51
- * ```
52
- */
53
- export const QueueSettingsSchema = z.object({
54
- /** Default time-to-live for messages in seconds. Null means no expiration. */
55
- default_ttl_seconds: z.number().nullable().optional(),
56
- /** Time in seconds a message is invisible after being received (default: 30). */
57
- default_visibility_timeout_seconds: z.number().default(30),
58
- /** Maximum number of delivery attempts before moving to DLQ (default: 5). */
59
- default_max_retries: z.number().default(5),
60
- /** Initial backoff delay in milliseconds for retries (default: 1000). */
61
- default_retry_backoff_ms: z.number().default(1000),
62
- /** Maximum backoff delay in milliseconds for retries (default: 60000). */
63
- default_retry_max_backoff_ms: z.number().default(60000),
64
- /** Multiplier for exponential backoff (default: 2.0). */
65
- default_retry_multiplier: z.number().default(2.0),
66
- /** Maximum number of messages a single client can process concurrently (default: 10). */
67
- max_in_flight_per_client: z.number().default(10),
68
- /** Retention period for acknowledged messages in seconds (default: 30 days). */
69
- retention_seconds: z.number().default(2592000),
70
- });
71
- /**
72
- * Queue statistics schema showing current queue state.
73
- */
74
- export const QueueStatsSchema = z.object({
75
- /** Total number of messages currently in the queue. */
76
- message_count: z.number(),
77
- /** Number of messages in the dead letter queue. */
78
- dlq_count: z.number(),
79
- /** The next offset that will be assigned to a new message. */
80
- next_offset: z.number(),
81
- });
82
- /**
83
- * Queue schema representing a message queue.
84
- *
85
- * @example
86
- * ```typescript
87
- * const queue = await getQueue(client, 'my-queue');
88
- * console.log(`Queue ${queue.name} has ${queue.message_count} messages`);
89
- * ```
90
- */
91
- export const QueueSchema = z.object({
92
- /** Unique identifier for the queue. */
93
- id: z.string(),
94
- /** Human-readable queue name (used for API operations). */
95
- name: z.string(),
96
- /** Optional description of the queue's purpose. */
97
- description: z.string().nullable().optional(),
98
- /** The type of queue (worker or pubsub). */
99
- queue_type: QueueTypeSchema,
100
- /** Default time-to-live for messages in seconds. Null means no expiration. */
101
- default_ttl_seconds: z.number().nullable().optional(),
102
- /** Time in seconds a message is invisible after being received. */
103
- default_visibility_timeout_seconds: z.number().optional(),
104
- /** Maximum number of delivery attempts before moving to DLQ. */
105
- default_max_retries: z.number().optional(),
106
- /** Initial backoff delay in milliseconds for retries. */
107
- default_retry_backoff_ms: z.number().optional(),
108
- /** Maximum backoff delay in milliseconds for retries. */
109
- default_retry_max_backoff_ms: z.number().optional(),
110
- /** Multiplier for exponential backoff. */
111
- default_retry_multiplier: z.number().optional(),
112
- /** Maximum number of messages a single client can process concurrently. */
113
- max_in_flight_per_client: z.number().optional(),
114
- /** The next offset that will be assigned to a new message. */
115
- next_offset: z.number().optional(),
116
- /** Total number of messages currently in the queue. */
117
- message_count: z.number().optional(),
118
- /** Number of messages in the dead letter queue. */
119
- dlq_count: z.number().optional(),
120
- /** ISO 8601 timestamp when the queue was created. */
121
- created_at: z.string(),
122
- /** ISO 8601 timestamp when the queue was last updated. */
123
- updated_at: z.string(),
124
- /** ISO 8601 timestamp when the queue was paused (null if not paused). */
125
- paused_at: z.string().nullable().optional(),
126
- /** Retention period for acknowledged messages in seconds. */
127
- retention_seconds: z.number().optional(),
128
- });
129
- /**
130
- * Message state schema for tracking message lifecycle.
131
- *
132
- * - `pending`: Message is waiting to be processed.
133
- * - `leased`: Message has been received and is currently being processed by a consumer.
134
- * - `processing`: Message has been received and is being processed (legacy, equivalent to leased).
135
- * - `delivered`: Message was successfully acknowledged.
136
- * - `failed`: Message processing failed but may be retried.
137
- * - `dead`: Message exceeded retry limit and was moved to DLQ.
138
- */
139
- export const MessageStateSchema = z.enum([
140
- 'pending',
141
- 'leased',
142
- 'processing',
143
- 'delivered',
144
- 'failed',
145
- 'dead',
146
- ]);
147
- /**
148
- * Message schema representing a queue message.
149
- *
150
- * @example
151
- * ```typescript
152
- * const message = await publishMessage(client, 'my-queue', { payload: 'Hello' });
153
- * console.log(`Published message ${message.id} at offset ${message.offset}`);
154
- * ```
155
- */
156
- export const MessageSchema = z.object({
157
- /** Unique identifier for the message (prefixed with msg_). */
158
- id: z.string(),
159
- /** ID of the queue this message belongs to. */
160
- queue_id: z.string(),
161
- /** Sequential offset within the queue. */
162
- offset: z.number(),
163
- /** The message payload (JSON object). */
164
- payload: z.unknown(),
165
- /** Size of the message payload in bytes. */
166
- size: z.number().optional(),
167
- /** Optional metadata attached to the message. */
168
- metadata: z.record(z.string(), z.unknown()).nullable().optional(),
169
- /** Current state of the message. */
170
- state: MessageStateSchema.optional(),
171
- /** Optional key for message deduplication. */
172
- idempotency_key: z.string().nullable().optional(),
173
- /** Optional key for message ordering. */
174
- partition_key: z.string().nullable().optional(),
175
- /** Time-to-live in seconds (null means no expiration). */
176
- ttl_seconds: z.number().nullable().optional(),
177
- /** Number of times delivery has been attempted. */
178
- delivery_attempts: z.number().optional(),
179
- /** Maximum number of delivery attempts allowed. */
180
- max_retries: z.number().optional(),
181
- /** ISO 8601 timestamp when the message was published. */
182
- published_at: z.string().optional(),
183
- /** ISO 8601 timestamp when the message will expire (if TTL set). */
184
- expires_at: z.string().nullable().optional(),
185
- /** ISO 8601 timestamp when the message was delivered. */
186
- delivered_at: z.string().nullable().optional(),
187
- /** ISO 8601 timestamp when the message was acknowledged. */
188
- acknowledged_at: z.string().nullable().optional(),
189
- /** ISO 8601 timestamp when the message was created. */
190
- created_at: z.string().optional(),
191
- /** ISO 8601 timestamp when the message was last updated. */
192
- updated_at: z.string().optional(),
193
- });
194
- /**
195
- * Destination type schema. Currently only HTTP webhooks are supported.
196
- */
197
- export const DestinationTypeSchema = z.enum(['http']);
198
- /**
199
- * HTTP destination configuration schema for webhook delivery.
200
- *
201
- * @example
202
- * ```typescript
203
- * const config: HttpDestinationConfig = {
204
- * url: 'https://api.example.com/webhook',
205
- * method: 'POST',
206
- * headers: { 'X-Custom-Header': 'value' },
207
- * timeout_ms: 10000,
208
- * retry_policy: { max_attempts: 3 },
209
- * };
210
- * ```
211
- */
212
- export const HttpDestinationConfigSchema = z.object({
213
- /** The URL to send messages to. */
214
- url: z.string(),
215
- /** Optional custom headers to include in requests. */
216
- headers: z.record(z.string(), z.string()).optional(),
217
- /** HTTP method to use (default: POST). */
218
- method: z.string().default('POST'),
219
- /** Request timeout in milliseconds (default: 30000). */
220
- timeout_ms: z.number().default(30000),
221
- /** Optional retry policy for failed deliveries. */
222
- retry_policy: z
223
- .object({
224
- /** Maximum number of delivery attempts (default: 5). */
225
- max_attempts: z.number().default(5),
226
- /** Initial backoff delay in milliseconds (default: 1000). */
227
- initial_backoff_ms: z.number().default(1000),
228
- /** Maximum backoff delay in milliseconds (default: 60000). */
229
- max_backoff_ms: z.number().default(60000),
230
- /** Backoff multiplier for exponential backoff (default: 2.0). */
231
- backoff_multiplier: z.number().default(2.0),
232
- })
233
- .optional(),
234
- /** Optional request signing configuration. */
235
- signing: z
236
- .object({
237
- /** Whether signing is enabled (default: false). */
238
- enabled: z.boolean().default(false),
239
- /** Secret key for HMAC signing. */
240
- secret_key: z.string().optional(),
241
- })
242
- .optional(),
243
- });
244
- /**
245
- * Destination statistics schema showing delivery metrics.
246
- */
247
- export const DestinationStatsSchema = z.object({
248
- /** Total number of delivery attempts. */
249
- total_deliveries: z.number(),
250
- /** Number of successful deliveries. */
251
- successful_deliveries: z.number(),
252
- /** Number of failed deliveries. */
253
- failed_deliveries: z.number(),
254
- /** ISO 8601 timestamp of the last delivery attempt. */
255
- last_delivery_at: z.string().nullable().optional(),
256
- /** ISO 8601 timestamp of the last successful delivery. */
257
- last_success_at: z.string().nullable().optional(),
258
- /** ISO 8601 timestamp of the last failed delivery. */
259
- last_failure_at: z.string().nullable().optional(),
260
- });
261
- /**
262
- * Destination schema representing a webhook endpoint for message delivery.
263
- *
264
- * Destinations are attached to queues and automatically receive messages when published.
265
- *
266
- * @example
267
- * ```typescript
268
- * const destination = await createDestination(client, 'my-queue', {
269
- * destination_type: 'http',
270
- * config: { url: 'https://api.example.com/webhook' },
271
- * enabled: true,
272
- * });
273
- * ```
274
- */
275
- export const DestinationSchema = z.object({
276
- /** Unique identifier for the destination (prefixed with dest_). */
277
- id: z.string(),
278
- /** ID of the queue this destination is attached to. */
279
- queue_id: z.string(),
280
- /** Type of destination (currently only 'http'). */
281
- destination_type: DestinationTypeSchema,
282
- /** HTTP configuration for the destination. */
283
- config: HttpDestinationConfigSchema,
284
- /** Whether the destination is enabled for delivery. */
285
- enabled: z.boolean(),
286
- /** Delivery statistics for this destination. */
287
- stats: DestinationStatsSchema.optional(),
288
- /** ISO 8601 timestamp when the destination was created. */
289
- created_at: z.string(),
290
- /** ISO 8601 timestamp when the destination was last updated. */
291
- updated_at: z.string(),
292
- });
293
- /**
294
- * Dead letter message schema for messages that failed processing.
295
- *
296
- * Messages are moved to the dead letter queue (DLQ) after exceeding the maximum
297
- * retry limit. They can be inspected, replayed, or deleted.
298
- *
299
- * @example
300
- * ```typescript
301
- * const { messages } = await listDeadLetterMessages(client, 'my-queue');
302
- * for (const msg of messages) {
303
- * console.log(`Failed message: ${msg.failure_reason}`);
304
- * await replayDeadLetterMessage(client, 'my-queue', msg.id);
305
- * }
306
- * ```
307
- */
308
- export const DeadLetterMessageSchema = z.object({
309
- /** Unique identifier for the DLQ entry. */
310
- id: z.string(),
311
- /** ID of the queue this message belongs to. */
312
- queue_id: z.string(),
313
- /** ID of the original message that failed (optional until backend includes it). */
314
- original_message_id: z.string().optional(),
315
- /** Offset of the original message in the queue. */
316
- offset: z.number(),
317
- /** The message payload (JSON object). */
318
- payload: z.unknown(),
319
- /** Optional metadata from the original message. */
320
- metadata: z.record(z.string(), z.unknown()).nullable().optional(),
321
- /** Reason why the message was moved to DLQ. */
322
- failure_reason: z.string().nullable().optional(),
323
- /** Number of delivery attempts before failure. */
324
- delivery_attempts: z.number(),
325
- /** ISO 8601 timestamp when the message was moved to DLQ (optional until backend includes it). */
326
- moved_at: z.string().optional(),
327
- /** ISO 8601 timestamp when the original message was published (optional, falls back to published_at). */
328
- original_published_at: z.string().optional(),
329
- /** ISO 8601 timestamp when the message was published (from base message). */
330
- published_at: z.string().optional(),
331
- /** ISO 8601 timestamp when the DLQ entry was created. */
332
- created_at: z.string(),
333
- });
334
- // ============================================================================
335
- // Request Schemas
336
- // ============================================================================
337
- /**
338
- * Request schema for creating a new queue.
339
- *
340
- * @example
341
- * ```typescript
342
- * const request: CreateQueueRequest = {
343
- * name: 'my-worker-queue',
344
- * queue_type: 'worker',
345
- * description: 'Processes background jobs',
346
- * settings: { default_max_retries: 3 },
347
- * };
348
- * ```
349
- */
350
- export const CreateQueueRequestSchema = z.object({
351
- /** Optional queue name (auto-generated if not provided). */
352
- name: z.string().optional(),
353
- /** Optional description of the queue's purpose. */
354
- description: z.string().optional(),
355
- /** Type of queue to create. */
356
- queue_type: QueueTypeSchema,
357
- /** Optional settings to customize queue behavior (server applies defaults for missing fields). */
358
- settings: QueueSettingsSchemaBase.partial().optional(),
359
- });
360
- /**
361
- * Request schema for updating an existing queue.
362
- */
363
- export const UpdateQueueRequestSchema = z.object({
364
- /** New description for the queue. */
365
- description: z.string().optional(),
366
- /** Settings to update (partial update supported, only provided fields are updated). */
367
- settings: QueueSettingsSchemaBase.partial().optional(),
368
- });
369
- /**
370
- * Request schema for listing queues with pagination.
371
- */
372
- export const ListQueuesRequestSchema = z.object({
373
- /** Maximum number of queues to return. */
374
- limit: z.number().optional(),
375
- /** Number of queues to skip for pagination. */
376
- offset: z.number().optional(),
377
- /** Filter by queue name substring. */
378
- name: z.string().optional(),
379
- /** Filter by queue type. */
380
- queue_type: QueueTypeSchema.optional(),
381
- /** Filter by queue status. */
382
- status: z.enum(['active', 'paused']).optional(),
383
- /** Field to sort by. */
384
- sort: z.enum(['name', 'created', 'updated', 'message_count', 'dlq_count']).optional(),
385
- /** Sort direction (asc or desc). */
386
- direction: z.enum(['asc', 'desc']).optional(),
387
- });
388
- /**
389
- * Request schema for publishing a message to a queue.
390
- *
391
- * @example
392
- * ```typescript
393
- * const request: PublishMessageRequest = {
394
- * payload: { task: 'process-order', orderId: 123 },
395
- * metadata: { priority: 'high' },
396
- * idempotency_key: 'order-123-v1',
397
- * ttl_seconds: 3600,
398
- * };
399
- * ```
400
- */
401
- export const PublishMessageRequestSchema = z.object({
402
- /** The message payload (JSON object). */
403
- payload: z.unknown(),
404
- /** Optional metadata to attach to the message. */
405
- metadata: z.record(z.string(), z.unknown()).optional(),
406
- /** Optional key for deduplication (prevents duplicate messages). */
407
- idempotency_key: z.string().optional(),
408
- /** Optional key for message ordering within a partition. */
409
- partition_key: z.string().optional(),
410
- /** Optional time-to-live in seconds. */
411
- ttl_seconds: z.number().optional(),
412
- });
413
- /**
414
- * Request schema for batch publishing multiple messages.
415
- *
416
- * @example
417
- * ```typescript
418
- * const request: BatchPublishMessagesRequest = {
419
- * messages: [
420
- * { payload: { task: 'a' } },
421
- * { payload: { task: 'b' } },
422
- * ],
423
- * };
424
- * ```
425
- */
426
- export const BatchPublishMessagesRequestSchema = z.object({
427
- /** Array of messages to publish (max 1000 per batch). */
428
- messages: z.array(PublishMessageRequestSchema).max(1000),
429
- });
430
- /**
431
- * Request schema for listing messages with pagination and filtering.
432
- */
433
- export const ListMessagesRequestSchema = z.object({
434
- /** Maximum number of messages to return. */
435
- limit: z.number().optional(),
436
- /** Number of messages to skip for pagination. */
437
- offset: z.number().optional(),
438
- /** Filter messages by state. */
439
- state: MessageStateSchema.optional(),
440
- });
441
- /**
442
- * Request schema for consuming messages from a specific offset.
443
- */
444
- export const ConsumeMessagesRequestSchema = z.object({
445
- /** Starting offset to consume from. */
446
- offset: z.number(),
447
- /** Maximum number of messages to consume. */
448
- limit: z.number().optional(),
449
- });
450
- /**
451
- * Request schema for creating a destination webhook.
452
- *
453
- * @example
454
- * ```typescript
455
- * const request: CreateDestinationRequest = {
456
- * destination_type: 'http',
457
- * config: {
458
- * url: 'https://api.example.com/webhook',
459
- * method: 'POST',
460
- * },
461
- * enabled: true,
462
- * };
463
- * ```
464
- */
465
- export const CreateDestinationRequestSchema = z.object({
466
- /** Type of destination to create. */
467
- destination_type: DestinationTypeSchema,
468
- /** HTTP configuration for the destination. */
469
- config: HttpDestinationConfigSchema,
470
- /** Whether the destination should be enabled (default: true). */
471
- enabled: z.boolean().default(true),
472
- });
473
- /**
474
- * Request schema for updating a destination.
475
- */
476
- export const UpdateDestinationRequestSchema = z.object({
477
- /** HTTP configuration updates (partial update supported). */
478
- config: HttpDestinationConfigSchema.partial().optional(),
479
- /** Enable or disable the destination. */
480
- enabled: z.boolean().optional(),
481
- });
482
- /**
483
- * Request schema for listing dead letter queue messages with pagination.
484
- */
485
- export const ListDlqRequestSchema = z.object({
486
- /** Maximum number of messages to return. */
487
- limit: z.number().optional(),
488
- /** Number of messages to skip for pagination. */
489
- offset: z.number().optional(),
490
- });
491
- // ============================================================================
492
- // Analytics Types
493
- // ============================================================================
494
- /**
495
- * Time bucket granularity for analytics queries.
496
- *
497
- * - `minute`: 1-minute buckets, max range 24 hours. Best for real-time monitoring.
498
- * - `hour`: 1-hour buckets, max range 7 days. Best for short-term trend analysis.
499
- * - `day`: 1-day buckets, max range 90 days. Best for long-term analysis.
500
- *
501
- * @example
502
- * ```typescript
503
- * const analytics = await getQueueAnalytics(client, 'my-queue', {
504
- * granularity: 'hour',
505
- * start: '2026-01-14T00:00:00Z',
506
- * });
507
- * ```
508
- */
509
- export const AnalyticsGranularitySchema = z.enum(['minute', 'hour', 'day']);
510
- /**
511
- * Time period for analytics responses.
512
- *
513
- * Represents the time range and granularity of the analytics data.
514
- */
515
- export const TimePeriodSchema = z.object({
516
- /** Start of the time period in ISO8601 format. */
517
- start: z.string(),
518
- /** End of the time period in ISO8601 format. */
519
- end: z.string(),
520
- /** Time bucket granularity used for aggregation. */
521
- granularity: AnalyticsGranularitySchema.optional(),
522
- });
523
- /**
524
- * Latency statistics with percentile distributions.
525
- *
526
- * Provides average, percentile (p50, p95, p99), and maximum latency values
527
- * for message delivery operations.
528
- *
529
- * @example
530
- * ```typescript
531
- * const { latency } = await getQueueAnalytics(client, 'my-queue');
532
- * console.log(`Average: ${latency.avg_ms}ms, P95: ${latency.p95_ms}ms`);
533
- * ```
534
- */
535
- export const LatencyStatsSchema = z.object({
536
- /** Average latency in milliseconds. */
537
- avg_ms: z.number(),
538
- /** 50th percentile (median) latency in milliseconds. */
539
- p50_ms: z.number().optional(),
540
- /** 95th percentile latency in milliseconds. */
541
- p95_ms: z.number().optional(),
542
- /** 99th percentile latency in milliseconds. */
543
- p99_ms: z.number().optional(),
544
- /** Maximum observed latency in milliseconds. */
545
- max_ms: z.number().optional(),
546
- });
547
- /**
548
- * Current real-time queue state.
549
- *
550
- * Represents the instantaneous state of a queue, useful for monitoring
551
- * dashboards and alerting on queue health.
552
- *
553
- * @example
554
- * ```typescript
555
- * const { current } = await getQueueAnalytics(client, 'my-queue');
556
- * if (current.backlog > 1000) {
557
- * console.warn('Queue backlog is high!');
558
- * }
559
- * ```
560
- */
561
- export const QueueCurrentStatsSchema = z.object({
562
- /** Number of messages waiting to be processed. */
563
- backlog: z.number(),
564
- /** Number of messages in the dead letter queue. */
565
- dlq_count: z.number(),
566
- /** Number of messages currently leased by consumers. */
567
- messages_in_flight: z.number(),
568
- /** Number of active WebSocket/long-poll consumers. */
569
- active_consumers: z.number(),
570
- /** Age in seconds of the oldest pending message (null if queue is empty). */
571
- oldest_message_age_seconds: z.number().nullable().optional(),
572
- });
573
- /**
574
- * Aggregated statistics for a time period.
575
- *
576
- * Contains counts and metrics aggregated over the requested time range.
577
- *
578
- * @example
579
- * ```typescript
580
- * const { period_stats } = await getQueueAnalytics(client, 'my-queue');
581
- * const successRate = period_stats.messages_acknowledged / period_stats.messages_published;
582
- * console.log(`Success rate: ${(successRate * 100).toFixed(1)}%`);
583
- * ```
584
- */
585
- export const QueuePeriodStatsSchema = z.object({
586
- /** Total messages published during the period. */
587
- messages_published: z.number(),
588
- /** Total messages delivered to consumers during the period. */
589
- messages_delivered: z.number(),
590
- /** Total messages successfully acknowledged during the period. */
591
- messages_acknowledged: z.number(),
592
- /** Total messages that failed and moved to DLQ during the period. */
593
- messages_failed: z.number(),
594
- /** Total messages replayed from DLQ during the period. */
595
- messages_replayed: z.number(),
596
- /** Total bytes of message payloads published during the period. */
597
- bytes_published: z.number(),
598
- /** Total delivery attempts (includes retries) during the period. */
599
- delivery_attempts: z.number(),
600
- /** Number of retry attempts (delivery_attempts - messages_delivered). */
601
- retry_count: z.number(),
602
- });
603
- /**
604
- * Analytics for a webhook destination.
605
- *
606
- * Provides delivery statistics for a configured webhook endpoint.
607
- *
608
- * @example
609
- * ```typescript
610
- * const { destinations } = await getQueueAnalytics(client, 'my-queue');
611
- * for (const dest of destinations ?? []) {
612
- * const successRate = dest.success_count / (dest.success_count + dest.failure_count);
613
- * console.log(`${dest.url}: ${(successRate * 100).toFixed(1)}% success`);
614
- * }
615
- * ```
616
- */
617
- export const DestinationAnalyticsSchema = z.object({
618
- /** Unique destination identifier (prefixed with dest_). */
619
- id: z.string(),
620
- /** Destination type (currently only 'http'). */
621
- type: z.string(),
622
- /** Webhook URL. */
623
- url: z.string(),
624
- /** Total successful deliveries. */
625
- success_count: z.number(),
626
- /** Total failed deliveries. */
627
- failure_count: z.number(),
628
- /** Average response time in milliseconds. */
629
- avg_response_time_ms: z.number().optional(),
630
- /** ISO8601 timestamp of last successful delivery. */
631
- last_success_at: z.string().nullable().optional(),
632
- /** ISO8601 timestamp of last failed delivery. */
633
- last_failure_at: z.string().nullable().optional(),
634
- });
635
- /**
636
- * Complete analytics for a single queue.
637
- *
638
- * Provides comprehensive analytics including current state, period statistics,
639
- * latency metrics, and destination performance.
640
- *
641
- * @example
642
- * ```typescript
643
- * const analytics = await getQueueAnalytics(client, 'order-processing');
644
- * console.log(`Queue: ${analytics.queue_name} (${analytics.queue_type})`);
645
- * console.log(`Backlog: ${analytics.current.backlog}`);
646
- * console.log(`Published (24h): ${analytics.period_stats.messages_published}`);
647
- * console.log(`P95 Latency: ${analytics.latency.p95_ms}ms`);
648
- * ```
649
- */
650
- export const QueueAnalyticsSchema = z.object({
651
- /** Unique queue identifier (prefixed with queue_). */
652
- queue_id: z.string(),
653
- /** Human-readable queue name. */
654
- queue_name: z.string(),
655
- /** Queue type: 'worker' or 'pubsub'. */
656
- queue_type: z.string(),
657
- /** Time period for the analytics data. */
658
- period: TimePeriodSchema,
659
- /** Current real-time queue state. */
660
- current: QueueCurrentStatsSchema,
661
- /** Aggregated statistics for the time period. */
662
- period_stats: QueuePeriodStatsSchema,
663
- /** Message delivery latency statistics. */
664
- latency: LatencyStatsSchema,
665
- /** Consumer processing latency (delivery-to-ack time). */
666
- consumer_latency: LatencyStatsSchema,
667
- /** Analytics for each configured webhook destination. */
668
- destinations: z.array(DestinationAnalyticsSchema).optional(),
669
- });
670
- /**
671
- * Summary statistics for a queue in org-level analytics.
672
- *
673
- * Provides a condensed view of queue metrics for listing in dashboards.
674
- */
675
- export const QueueSummarySchema = z.object({
676
- /** Unique queue identifier. */
677
- id: z.string(),
678
- /** Human-readable queue name. */
679
- name: z.string(),
680
- /** Queue type: 'worker' or 'pubsub'. */
681
- queue_type: z.string(),
682
- /** Messages published during the period. */
683
- messages_published: z.number(),
684
- /** Messages delivered during the period. */
685
- messages_delivered: z.number(),
686
- /** Messages acknowledged during the period. */
687
- messages_acknowledged: z.number(),
688
- /** Current pending message count. */
689
- backlog: z.number(),
690
- /** Current dead letter queue count. */
691
- dlq_count: z.number(),
692
- /** Average delivery latency in milliseconds. */
693
- avg_latency_ms: z.number(),
694
- /** Percentage of messages that failed (0-100). */
695
- error_rate_percent: z.number(),
696
- });
697
- /**
698
- * Aggregated summary across all queues in an organization.
699
- *
700
- * @example
701
- * ```typescript
702
- * const { summary } = await getOrgAnalytics(client);
703
- * console.log(`Total queues: ${summary.total_queues}`);
704
- * console.log(`Total messages: ${summary.total_messages_published}`);
705
- * console.log(`Error rate: ${summary.error_rate_percent.toFixed(2)}%`);
706
- * ```
707
- */
708
- export const OrgAnalyticsSummarySchema = z.object({
709
- /** Total number of queues in the organization. */
710
- total_queues: z.number(),
711
- /** Total messages published across all queues. */
712
- total_messages_published: z.number(),
713
- /** Total messages delivered across all queues. */
714
- total_messages_delivered: z.number(),
715
- /** Total messages acknowledged across all queues. */
716
- total_messages_acknowledged: z.number(),
717
- /** Total messages in all dead letter queues. */
718
- total_dlq_messages: z.number(),
719
- /** Total bytes published across all queues. */
720
- total_bytes_published: z.number(),
721
- /** Average delivery latency across all queues in milliseconds. */
722
- avg_latency_ms: z.number(),
723
- /** 95th percentile latency across all queues in milliseconds. */
724
- p95_latency_ms: z.number(),
725
- /** Overall error rate as percentage (0-100). */
726
- error_rate_percent: z.number(),
727
- });
728
- /**
729
- * Complete organization-level analytics.
730
- *
731
- * Provides an overview of all queues with aggregated metrics and per-queue summaries.
732
- *
733
- * @example
734
- * ```typescript
735
- * const analytics = await getOrgAnalytics(client);
736
- * console.log(`Org: ${analytics.org_id}`);
737
- * console.log(`Queues: ${analytics.summary.total_queues}`);
738
- * for (const queue of analytics.queues) {
739
- * console.log(` ${queue.name}: ${queue.backlog} pending`);
740
- * }
741
- * ```
742
- */
743
- export const OrgAnalyticsSchema = z.object({
744
- /** Organization identifier. */
745
- org_id: z.string(),
746
- /** Time period for the analytics data. */
747
- period: TimePeriodSchema,
748
- /** Aggregated summary across all queues. */
749
- summary: OrgAnalyticsSummarySchema,
750
- /** Per-queue summary statistics. */
751
- queues: z.array(QueueSummarySchema),
752
- });
753
- /**
754
- * Single data point in a time series.
755
- *
756
- * Represents metrics for one time bucket (minute, hour, or day).
757
- * Used for building charts and visualizing trends over time.
758
- *
759
- * @example
760
- * ```typescript
761
- * const { series } = await getQueueTimeSeries(client, 'my-queue', { granularity: 'hour' });
762
- * for (const point of series) {
763
- * console.log(`${point.timestamp}: ${point.throughput} msg/h, ${point.avg_latency_ms}ms avg`);
764
- * }
765
- * ```
766
- */
767
- export const TimeSeriesPointSchema = z.object({
768
- /** ISO8601 timestamp for the start of this time bucket. */
769
- timestamp: z.string(),
770
- /** Messages published during this bucket. */
771
- throughput: z.number(),
772
- /** Messages delivered during this bucket. */
773
- delivery_rate: z.number(),
774
- /** Messages acknowledged during this bucket. */
775
- ack_rate: z.number(),
776
- /** Messages that failed during this bucket. */
777
- error_rate: z.number(),
778
- /** Average delivery latency in milliseconds for this bucket. */
779
- avg_latency_ms: z.number(),
780
- /** 95th percentile latency in milliseconds for this bucket. */
781
- p95_latency_ms: z.number().optional(),
782
- /** Queue backlog at the end of this bucket (snapshot). */
783
- backlog: z.number().optional(),
784
- /** Messages in flight at the end of this bucket (snapshot). */
785
- messages_in_flight: z.number().optional(),
786
- });
787
- /**
788
- * Time series analytics data for charting and visualization.
789
- *
790
- * Contains an array of data points at the requested granularity for building
791
- * time-based charts and dashboards.
792
- *
793
- * @example
794
- * ```typescript
795
- * const timeseries = await getQueueTimeSeries(client, 'order-processing', {
796
- * granularity: 'hour',
797
- * start: '2026-01-14T00:00:00Z',
798
- * end: '2026-01-15T00:00:00Z',
799
- * });
800
- *
801
- * // Plot throughput over time
802
- * const chartData = timeseries.series.map(p => ({
803
- * x: new Date(p.timestamp),
804
- * y: p.throughput,
805
- * }));
806
- * ```
807
- */
808
- export const TimeSeriesDataSchema = z.object({
809
- /** Unique queue identifier. */
810
- queue_id: z.string(),
811
- /** Human-readable queue name. */
812
- queue_name: z.string(),
813
- /** Time period and granularity for the data. */
814
- period: TimePeriodSchema,
815
- /** Array of time-bucketed data points. */
816
- series: z.array(TimeSeriesPointSchema),
817
- });
818
- /**
819
- * Real-time stats event from SSE stream.
820
- *
821
- * Represents a single snapshot of queue statistics delivered via Server-Sent Events.
822
- * Events are pushed at the interval specified when opening the stream.
823
- *
824
- * @example
825
- * ```typescript
826
- * const stream = streamQueueAnalytics(client, 'my-queue', { interval: 5 });
827
- * for await (const event of stream) {
828
- * updateDashboard({
829
- * backlog: event.backlog,
830
- * throughput: event.throughput_1m,
831
- * latency: event.avg_latency_ms,
832
- * consumers: event.active_consumers,
833
- * });
834
- * }
835
- * ```
836
- */
837
- export const SSEStatsEventSchema = z.object({
838
- /** ISO8601 timestamp when this snapshot was taken. */
839
- timestamp: z.string(),
840
- /** Current number of pending messages. */
841
- backlog: z.number(),
842
- /** Current number of messages being processed. */
843
- messages_in_flight: z.number(),
844
- /** Messages published in the last minute. */
845
- throughput_1m: z.number(),
846
- /** Messages delivered in the last minute. */
847
- delivery_rate_1m: z.number(),
848
- /** Messages that failed in the last minute. */
849
- error_rate_1m: z.number(),
850
- /** Current average delivery latency in milliseconds. */
851
- avg_latency_ms: z.number(),
852
- /** Current number of connected consumers. */
853
- active_consumers: z.number(),
854
- });
855
- // ============================================================================
856
- // Source Types
857
- // ============================================================================
858
- /**
859
- * Source authentication type schema.
860
- */
861
- export const SourceAuthTypeSchema = z.enum(['none', 'basic', 'header']);
862
- /**
863
- * Queue source schema representing an HTTP ingestion endpoint.
864
- *
865
- * Sources provide public URLs for ingesting data into queues from external sources.
866
- * They support various authentication methods to secure access.
867
- *
868
- * @example
869
- * ```typescript
870
- * const source = await getSource(client, 'my-queue', 'qsrc_abc123');
871
- * console.log(`Source URL: ${source.url}`);
872
- * console.log(`Success rate: ${source.success_count}/${source.request_count}`);
873
- * ```
874
- */
875
- export const SourceSchema = z.object({
876
- /** Unique identifier for the source (prefixed with qsrc_). */
877
- id: z.string(),
878
- /** ID of the queue this source publishes to. */
879
- queue_id: z.string(),
880
- /** Human-readable source name. */
881
- name: z.string(),
882
- /** Optional description of the source's purpose. */
883
- description: z.string().nullable().optional(),
884
- /** Authentication type for the public endpoint. */
885
- auth_type: SourceAuthTypeSchema,
886
- /** Whether the source is enabled. */
887
- enabled: z.boolean(),
888
- /** Public URL to send data to this source. */
889
- url: z.string(),
890
- /** Total number of requests received. */
891
- request_count: z.number(),
892
- /** Number of successful ingestions. */
893
- success_count: z.number(),
894
- /** Number of failed ingestions. */
895
- failure_count: z.number(),
896
- /** ISO 8601 timestamp of last request. */
897
- last_request_at: z.string().nullable().optional(),
898
- /** ISO 8601 timestamp of last success. */
899
- last_success_at: z.string().nullable().optional(),
900
- /** ISO 8601 timestamp of last failure. */
901
- last_failure_at: z.string().nullable().optional(),
902
- /** Error message from last failure. */
903
- last_failure_error: z.string().nullable().optional(),
904
- /** ISO 8601 timestamp when the source was created. */
905
- created_at: z.string(),
906
- /** ISO 8601 timestamp when the source was last updated. */
907
- updated_at: z.string(),
908
- });
909
- /**
910
- * Create source request schema.
911
- *
912
- * @example
913
- * ```typescript
914
- * const request: CreateSourceRequest = {
915
- * name: 'webhook-ingestion',
916
- * description: 'Receives webhooks from external service',
917
- * auth_type: 'header',
918
- * auth_value: 'Bearer my-secret-token',
919
- * };
920
- * ```
921
- */
922
- export const CreateSourceRequestSchema = z.object({
923
- /** Human-readable name for the source. */
924
- name: z.string().min(1).max(256),
925
- /** Optional description. */
926
- description: z.string().max(1024).optional(),
927
- /** Authentication type (default: none). */
928
- auth_type: SourceAuthTypeSchema.optional().default('none'),
929
- /** Authentication value (format depends on auth_type). */
930
- auth_value: z.string().optional(),
931
- });
932
- /**
933
- * Update source request schema.
934
- *
935
- * All fields are optional - only provided fields will be updated.
936
- *
937
- * @example
938
- * ```typescript
939
- * // Disable a source
940
- * const request: UpdateSourceRequest = { enabled: false };
941
- *
942
- * // Update authentication
943
- * const request: UpdateSourceRequest = {
944
- * auth_type: 'basic',
945
- * auth_value: 'user:password',
946
- * };
947
- * ```
948
- */
949
- export const UpdateSourceRequestSchema = z.object({
950
- /** New name for the source. */
951
- name: z.string().min(1).max(256).optional(),
952
- /** New description. */
953
- description: z.string().max(1024).nullable().optional(),
954
- /** New authentication type. */
955
- auth_type: SourceAuthTypeSchema.optional(),
956
- /** New authentication value. */
957
- auth_value: z.string().optional(),
958
- /** Whether the source is enabled. */
959
- enabled: z.boolean().optional(),
960
- });
961
- // ============================================================================
962
- // WebSocket Types
963
- // ============================================================================
964
- /**
965
- * WebSocket authentication request.
966
- * This must be the first message sent after the WebSocket connection is established.
967
- */
968
- export const WebSocketAuthRequestSchema = z.object({
969
- /** The API key for authentication (raw key, not "Bearer ..."). */
970
- authorization: z.string(),
971
- /** Optional client ID from a previous connection for reconnection. */
972
- client_id: z.string().optional(),
973
- /** Offset of the last message successfully processed. Server replays from here. */
974
- last_offset: z.number().optional(),
975
- });
976
- /**
977
- * WebSocket authentication response from the server.
978
- */
979
- export const WebSocketAuthResponseSchema = z.object({
980
- /** Whether authentication was successful. */
981
- success: z.boolean(),
982
- /** Error message if authentication failed. */
983
- error: z.string().optional(),
984
- /** The client/subscription ID assigned to this connection. Store and reuse on reconnect. */
985
- client_id: z.string().optional(),
986
- });
987
- /**
988
- * WebSocket message pushed by the server.
989
- *
990
- * Messages are always delivered as an array. A single live push contains one
991
- * element (`type: "message"`), while a replay batch may contain many
992
- * (`type: "replay"`).
993
- */
994
- export const WebSocketMessageSchema = z.object({
995
- /** Message type — "message" for live pushes, "replay" for reconnect replay batches. */
996
- type: z.enum(['message', 'replay']),
997
- /** Queue ID the messages belong to. */
998
- queue_id: z.string(),
999
- /** The queue messages. Always an array — single live pushes contain one element. */
1000
- messages: z.array(MessageSchema),
1001
- });
1002
- //# sourceMappingURL=types.js.map