@distilled.cloud/cloudflare 0.0.0 → 0.2.0-alpha

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 (560) hide show
  1. package/lib/auth.d.ts +13 -0
  2. package/lib/auth.d.ts.map +1 -0
  3. package/lib/auth.js +12 -0
  4. package/lib/auth.js.map +1 -0
  5. package/lib/category.d.ts +2 -0
  6. package/lib/category.d.ts.map +1 -0
  7. package/lib/category.js +2 -0
  8. package/lib/category.js.map +1 -0
  9. package/lib/client/api.d.ts +14 -0
  10. package/lib/client/api.d.ts.map +1 -0
  11. package/lib/client/api.js +197 -0
  12. package/lib/client/api.js.map +1 -0
  13. package/lib/client/index.d.ts +8 -0
  14. package/lib/client/index.d.ts.map +1 -0
  15. package/lib/client/index.js +8 -0
  16. package/lib/client/index.js.map +1 -0
  17. package/lib/credentials.d.ts +14 -0
  18. package/lib/credentials.d.ts.map +1 -0
  19. package/lib/credentials.js +17 -0
  20. package/lib/credentials.js.map +1 -0
  21. package/lib/errors.d.ts +48 -0
  22. package/lib/errors.d.ts.map +1 -0
  23. package/lib/errors.js +38 -0
  24. package/lib/errors.js.map +1 -0
  25. package/lib/index.d.ts +10 -0
  26. package/lib/index.d.ts.map +1 -0
  27. package/lib/index.js +10 -0
  28. package/lib/index.js.map +1 -0
  29. package/lib/retry.d.ts +14 -0
  30. package/lib/retry.d.ts.map +1 -0
  31. package/lib/retry.js +14 -0
  32. package/lib/retry.js.map +1 -0
  33. package/lib/schemas.d.ts +29 -0
  34. package/lib/schemas.d.ts.map +1 -0
  35. package/lib/schemas.js +34 -0
  36. package/lib/schemas.js.map +1 -0
  37. package/lib/services/abuse-reports.d.ts +224 -0
  38. package/lib/services/abuse-reports.d.ts.map +1 -0
  39. package/lib/services/abuse-reports.js +353 -0
  40. package/lib/services/abuse-reports.js.map +1 -0
  41. package/lib/services/accounts.d.ts +682 -0
  42. package/lib/services/accounts.d.ts.map +1 -0
  43. package/lib/services/accounts.js +805 -0
  44. package/lib/services/accounts.js.map +1 -0
  45. package/lib/services/acm.d.ts +73 -0
  46. package/lib/services/acm.d.ts.map +1 -0
  47. package/lib/services/acm.js +76 -0
  48. package/lib/services/acm.js.map +1 -0
  49. package/lib/services/addressing.d.ts +1208 -0
  50. package/lib/services/addressing.d.ts.map +1 -0
  51. package/lib/services/addressing.js +1776 -0
  52. package/lib/services/addressing.js.map +1 -0
  53. package/lib/services/ai-gateway.d.ts +956 -0
  54. package/lib/services/ai-gateway.d.ts.map +1 -0
  55. package/lib/services/ai-gateway.js +1706 -0
  56. package/lib/services/ai-gateway.js.map +1 -0
  57. package/lib/services/ai.d.ts +243 -0
  58. package/lib/services/ai.d.ts.map +1 -0
  59. package/lib/services/ai.js +299 -0
  60. package/lib/services/ai.js.map +1 -0
  61. package/lib/services/aisearch.d.ts +915 -0
  62. package/lib/services/aisearch.d.ts.map +1 -0
  63. package/lib/services/aisearch.js +2425 -0
  64. package/lib/services/aisearch.js.map +1 -0
  65. package/lib/services/alerting.d.ts +718 -0
  66. package/lib/services/alerting.d.ts.map +1 -0
  67. package/lib/services/alerting.js +1388 -0
  68. package/lib/services/alerting.js.map +1 -0
  69. package/lib/services/api-gateway.d.ts +830 -0
  70. package/lib/services/api-gateway.d.ts.map +1 -0
  71. package/lib/services/api-gateway.js +1548 -0
  72. package/lib/services/api-gateway.js.map +1 -0
  73. package/lib/services/argo.d.ts +101 -0
  74. package/lib/services/argo.d.ts.map +1 -0
  75. package/lib/services/argo.js +105 -0
  76. package/lib/services/argo.js.map +1 -0
  77. package/lib/services/audit-logs.d.ts +46 -0
  78. package/lib/services/audit-logs.d.ts.map +1 -0
  79. package/lib/services/audit-logs.js +37 -0
  80. package/lib/services/audit-logs.js.map +1 -0
  81. package/lib/services/billing.d.ts +62 -0
  82. package/lib/services/billing.d.ts.map +1 -0
  83. package/lib/services/billing.js +100 -0
  84. package/lib/services/billing.js.map +1 -0
  85. package/lib/services/bot-management.d.ts +124 -0
  86. package/lib/services/bot-management.d.ts.map +1 -0
  87. package/lib/services/bot-management.js +262 -0
  88. package/lib/services/bot-management.js.map +1 -0
  89. package/lib/services/botnet-feed.d.ts +65 -0
  90. package/lib/services/botnet-feed.d.ts.map +1 -0
  91. package/lib/services/botnet-feed.js +84 -0
  92. package/lib/services/botnet-feed.js.map +1 -0
  93. package/lib/services/brand-protection.d.ts +188 -0
  94. package/lib/services/brand-protection.d.ts.map +1 -0
  95. package/lib/services/brand-protection.js +214 -0
  96. package/lib/services/brand-protection.js.map +1 -0
  97. package/lib/services/browser-rendering.d.ts +857 -0
  98. package/lib/services/browser-rendering.d.ts.map +1 -0
  99. package/lib/services/browser-rendering.js +1141 -0
  100. package/lib/services/browser-rendering.js.map +1 -0
  101. package/lib/services/cache.d.ts +287 -0
  102. package/lib/services/cache.d.ts.map +1 -0
  103. package/lib/services/cache.js +330 -0
  104. package/lib/services/cache.js.map +1 -0
  105. package/lib/services/calls.d.ts +202 -0
  106. package/lib/services/calls.d.ts.map +1 -0
  107. package/lib/services/calls.js +175 -0
  108. package/lib/services/calls.js.map +1 -0
  109. package/lib/services/certificate-authorities.d.ts +40 -0
  110. package/lib/services/certificate-authorities.d.ts.map +1 -0
  111. package/lib/services/certificate-authorities.js +49 -0
  112. package/lib/services/certificate-authorities.js.map +1 -0
  113. package/lib/services/client-certificates.d.ts +254 -0
  114. package/lib/services/client-certificates.d.ts.map +1 -0
  115. package/lib/services/client-certificates.js +350 -0
  116. package/lib/services/client-certificates.js.map +1 -0
  117. package/lib/services/cloud-connector.d.ts +59 -0
  118. package/lib/services/cloud-connector.d.ts.map +1 -0
  119. package/lib/services/cloud-connector.js +84 -0
  120. package/lib/services/cloud-connector.js.map +1 -0
  121. package/lib/services/cloudforce-one.d.ts +1318 -0
  122. package/lib/services/cloudforce-one.d.ts.map +1 -0
  123. package/lib/services/cloudforce-one.js +1684 -0
  124. package/lib/services/cloudforce-one.js.map +1 -0
  125. package/lib/services/connectivity.d.ts +248 -0
  126. package/lib/services/connectivity.d.ts.map +1 -0
  127. package/lib/services/connectivity.js +377 -0
  128. package/lib/services/connectivity.js.map +1 -0
  129. package/lib/services/content-scanning.d.ts +131 -0
  130. package/lib/services/content-scanning.d.ts.map +1 -0
  131. package/lib/services/content-scanning.js +156 -0
  132. package/lib/services/content-scanning.js.map +1 -0
  133. package/lib/services/custom-certificates.d.ts +211 -0
  134. package/lib/services/custom-certificates.d.ts.map +1 -0
  135. package/lib/services/custom-certificates.js +309 -0
  136. package/lib/services/custom-certificates.js.map +1 -0
  137. package/lib/services/custom-hostnames.d.ts +525 -0
  138. package/lib/services/custom-hostnames.d.ts.map +1 -0
  139. package/lib/services/custom-hostnames.js +1164 -0
  140. package/lib/services/custom-hostnames.js.map +1 -0
  141. package/lib/services/custom-nameservers.d.ts +67 -0
  142. package/lib/services/custom-nameservers.d.ts.map +1 -0
  143. package/lib/services/custom-nameservers.js +80 -0
  144. package/lib/services/custom-nameservers.js.map +1 -0
  145. package/lib/services/custom-pages.d.ts +74 -0
  146. package/lib/services/custom-pages.d.ts.map +1 -0
  147. package/lib/services/custom-pages.js +125 -0
  148. package/lib/services/custom-pages.js.map +1 -0
  149. package/lib/services/d1.d.ts +326 -0
  150. package/lib/services/d1.d.ts.map +1 -0
  151. package/lib/services/d1.js +448 -0
  152. package/lib/services/d1.js.map +1 -0
  153. package/lib/services/dcv-delegation.d.ts +24 -0
  154. package/lib/services/dcv-delegation.d.ts.map +1 -0
  155. package/lib/services/dcv-delegation.js +24 -0
  156. package/lib/services/dcv-delegation.js.map +1 -0
  157. package/lib/services/diagnostics.d.ts +175 -0
  158. package/lib/services/diagnostics.d.ts.map +1 -0
  159. package/lib/services/diagnostics.js +273 -0
  160. package/lib/services/diagnostics.js.map +1 -0
  161. package/lib/services/dns-firewall.d.ts +288 -0
  162. package/lib/services/dns-firewall.d.ts.map +1 -0
  163. package/lib/services/dns-firewall.js +373 -0
  164. package/lib/services/dns-firewall.js.map +1 -0
  165. package/lib/services/dns.d.ts +2946 -0
  166. package/lib/services/dns.d.ts.map +1 -0
  167. package/lib/services/dns.js +4511 -0
  168. package/lib/services/dns.js.map +1 -0
  169. package/lib/services/durable-objects.d.ts +61 -0
  170. package/lib/services/durable-objects.d.ts.map +1 -0
  171. package/lib/services/durable-objects.js +66 -0
  172. package/lib/services/durable-objects.js.map +1 -0
  173. package/lib/services/email-routing.d.ts +542 -0
  174. package/lib/services/email-routing.d.ts.map +1 -0
  175. package/lib/services/email-routing.js +662 -0
  176. package/lib/services/email-routing.js.map +1 -0
  177. package/lib/services/email-security.d.ts +1131 -0
  178. package/lib/services/email-security.d.ts.map +1 -0
  179. package/lib/services/email-security.js +2065 -0
  180. package/lib/services/email-security.js.map +1 -0
  181. package/lib/services/filters.d.ts +157 -0
  182. package/lib/services/filters.d.ts.map +1 -0
  183. package/lib/services/filters.js +135 -0
  184. package/lib/services/filters.js.map +1 -0
  185. package/lib/services/firewall.d.ts +1080 -0
  186. package/lib/services/firewall.d.ts.map +1 -0
  187. package/lib/services/firewall.js +1881 -0
  188. package/lib/services/firewall.js.map +1 -0
  189. package/lib/services/healthchecks.d.ts +464 -0
  190. package/lib/services/healthchecks.d.ts.map +1 -0
  191. package/lib/services/healthchecks.js +838 -0
  192. package/lib/services/healthchecks.js.map +1 -0
  193. package/lib/services/hostnames.d.ts +74 -0
  194. package/lib/services/hostnames.d.ts.map +1 -0
  195. package/lib/services/hostnames.js +100 -0
  196. package/lib/services/hostnames.js.map +1 -0
  197. package/lib/services/hyperdrive.d.ts +203 -0
  198. package/lib/services/hyperdrive.d.ts.map +1 -0
  199. package/lib/services/hyperdrive.js +299 -0
  200. package/lib/services/hyperdrive.js.map +1 -0
  201. package/lib/services/iam.d.ts +554 -0
  202. package/lib/services/iam.d.ts.map +1 -0
  203. package/lib/services/iam.js +743 -0
  204. package/lib/services/iam.js.map +1 -0
  205. package/lib/services/images.d.ts +403 -0
  206. package/lib/services/images.d.ts.map +1 -0
  207. package/lib/services/images.js +417 -0
  208. package/lib/services/images.js.map +1 -0
  209. package/lib/services/intel.d.ts +768 -0
  210. package/lib/services/intel.d.ts.map +1 -0
  211. package/lib/services/intel.js +1179 -0
  212. package/lib/services/intel.js.map +1 -0
  213. package/lib/services/ips.d.ts +28 -0
  214. package/lib/services/ips.d.ts.map +1 -0
  215. package/lib/services/ips.js +39 -0
  216. package/lib/services/ips.js.map +1 -0
  217. package/lib/services/keyless-certificates.d.ts +177 -0
  218. package/lib/services/keyless-certificates.d.ts.map +1 -0
  219. package/lib/services/keyless-certificates.js +216 -0
  220. package/lib/services/keyless-certificates.js.map +1 -0
  221. package/lib/services/kv.d.ts +339 -0
  222. package/lib/services/kv.d.ts.map +1 -0
  223. package/lib/services/kv.js +402 -0
  224. package/lib/services/kv.js.map +1 -0
  225. package/lib/services/leaked-credential-checks.d.ts +119 -0
  226. package/lib/services/leaked-credential-checks.d.ts.map +1 -0
  227. package/lib/services/leaked-credential-checks.js +130 -0
  228. package/lib/services/leaked-credential-checks.js.map +1 -0
  229. package/lib/services/load-balancers.d.ts +1767 -0
  230. package/lib/services/load-balancers.d.ts.map +1 -0
  231. package/lib/services/load-balancers.js +3068 -0
  232. package/lib/services/load-balancers.js.map +1 -0
  233. package/lib/services/logpush.d.ts +401 -0
  234. package/lib/services/logpush.d.ts.map +1 -0
  235. package/lib/services/logpush.js +724 -0
  236. package/lib/services/logpush.js.map +1 -0
  237. package/lib/services/logs.d.ts +125 -0
  238. package/lib/services/logs.d.ts.map +1 -0
  239. package/lib/services/logs.js +145 -0
  240. package/lib/services/logs.js.map +1 -0
  241. package/lib/services/magic-cloud-networking.d.ts +1599 -0
  242. package/lib/services/magic-cloud-networking.d.ts.map +1 -0
  243. package/lib/services/magic-cloud-networking.js +5205 -0
  244. package/lib/services/magic-cloud-networking.js.map +1 -0
  245. package/lib/services/magic-network-monitoring.d.ts +379 -0
  246. package/lib/services/magic-network-monitoring.d.ts.map +1 -0
  247. package/lib/services/magic-network-monitoring.js +535 -0
  248. package/lib/services/magic-network-monitoring.js.map +1 -0
  249. package/lib/services/magic-transit.d.ts +3650 -0
  250. package/lib/services/magic-transit.d.ts.map +1 -0
  251. package/lib/services/magic-transit.js +6120 -0
  252. package/lib/services/magic-transit.js.map +1 -0
  253. package/lib/services/managed-transforms.d.ts +79 -0
  254. package/lib/services/managed-transforms.d.ts.map +1 -0
  255. package/lib/services/managed-transforms.js +107 -0
  256. package/lib/services/managed-transforms.js.map +1 -0
  257. package/lib/services/memberships.d.ts +172 -0
  258. package/lib/services/memberships.d.ts.map +1 -0
  259. package/lib/services/memberships.js +282 -0
  260. package/lib/services/memberships.js.map +1 -0
  261. package/lib/services/mtls-certificates.d.ts +140 -0
  262. package/lib/services/mtls-certificates.d.ts.map +1 -0
  263. package/lib/services/mtls-certificates.js +173 -0
  264. package/lib/services/mtls-certificates.js.map +1 -0
  265. package/lib/services/network-interconnects.d.ts +410 -0
  266. package/lib/services/network-interconnects.d.ts.map +1 -0
  267. package/lib/services/network-interconnects.js +583 -0
  268. package/lib/services/network-interconnects.js.map +1 -0
  269. package/lib/services/organizations.d.ts +201 -0
  270. package/lib/services/organizations.d.ts.map +1 -0
  271. package/lib/services/organizations.js +355 -0
  272. package/lib/services/organizations.js.map +1 -0
  273. package/lib/services/origin-ca-certificates.d.ts +99 -0
  274. package/lib/services/origin-ca-certificates.d.ts.map +1 -0
  275. package/lib/services/origin-ca-certificates.js +156 -0
  276. package/lib/services/origin-ca-certificates.js.map +1 -0
  277. package/lib/services/origin-post-quantum-encryption.d.ts +50 -0
  278. package/lib/services/origin-post-quantum-encryption.d.ts.map +1 -0
  279. package/lib/services/origin-post-quantum-encryption.js +60 -0
  280. package/lib/services/origin-post-quantum-encryption.js.map +1 -0
  281. package/lib/services/origin-tls-client-auth.d.ts +273 -0
  282. package/lib/services/origin-tls-client-auth.d.ts.map +1 -0
  283. package/lib/services/origin-tls-client-auth.js +401 -0
  284. package/lib/services/origin-tls-client-auth.js.map +1 -0
  285. package/lib/services/page-rules.d.ts +773 -0
  286. package/lib/services/page-rules.d.ts.map +1 -0
  287. package/lib/services/page-rules.js +1365 -0
  288. package/lib/services/page-rules.js.map +1 -0
  289. package/lib/services/page-shield.d.ts +426 -0
  290. package/lib/services/page-shield.d.ts.map +1 -0
  291. package/lib/services/page-shield.js +484 -0
  292. package/lib/services/page-shield.js.map +1 -0
  293. package/lib/services/pages.d.ts +1654 -0
  294. package/lib/services/pages.d.ts.map +1 -0
  295. package/lib/services/pages.js +2954 -0
  296. package/lib/services/pages.js.map +1 -0
  297. package/lib/services/pipelines.d.ts +1461 -0
  298. package/lib/services/pipelines.d.ts.map +1 -0
  299. package/lib/services/pipelines.js +2912 -0
  300. package/lib/services/pipelines.js.map +1 -0
  301. package/lib/services/queues.d.ts +807 -0
  302. package/lib/services/queues.d.ts.map +1 -0
  303. package/lib/services/queues.js +1194 -0
  304. package/lib/services/queues.js.map +1 -0
  305. package/lib/services/r2-data-catalog.d.ts +341 -0
  306. package/lib/services/r2-data-catalog.d.ts.map +1 -0
  307. package/lib/services/r2-data-catalog.js +499 -0
  308. package/lib/services/r2-data-catalog.js.map +1 -0
  309. package/lib/services/r2.d.ts +1041 -0
  310. package/lib/services/r2.d.ts.map +1 -0
  311. package/lib/services/r2.js +1384 -0
  312. package/lib/services/r2.js.map +1 -0
  313. package/lib/services/radar.d.ts +9276 -0
  314. package/lib/services/radar.d.ts.map +1 -0
  315. package/lib/services/radar.js +20491 -0
  316. package/lib/services/radar.js.map +1 -0
  317. package/lib/services/rate-limits.d.ts +315 -0
  318. package/lib/services/rate-limits.d.ts.map +1 -0
  319. package/lib/services/rate-limits.js +521 -0
  320. package/lib/services/rate-limits.js.map +1 -0
  321. package/lib/services/realtime-kit.d.ts +2728 -0
  322. package/lib/services/realtime-kit.d.ts.map +1 -0
  323. package/lib/services/realtime-kit.js +5401 -0
  324. package/lib/services/realtime-kit.js.map +1 -0
  325. package/lib/services/registrar.d.ts +81 -0
  326. package/lib/services/registrar.d.ts.map +1 -0
  327. package/lib/services/registrar.js +154 -0
  328. package/lib/services/registrar.js.map +1 -0
  329. package/lib/services/request-tracers.d.ts +61 -0
  330. package/lib/services/request-tracers.d.ts.map +1 -0
  331. package/lib/services/request-tracers.js +82 -0
  332. package/lib/services/request-tracers.js.map +1 -0
  333. package/lib/services/resource-sharing.d.ts +540 -0
  334. package/lib/services/resource-sharing.d.ts.map +1 -0
  335. package/lib/services/resource-sharing.js +846 -0
  336. package/lib/services/resource-sharing.js.map +1 -0
  337. package/lib/services/rules.d.ts +297 -0
  338. package/lib/services/rules.d.ts.map +1 -0
  339. package/lib/services/rules.js +396 -0
  340. package/lib/services/rules.js.map +1 -0
  341. package/lib/services/rulesets.d.ts +3300 -0
  342. package/lib/services/rulesets.d.ts.map +1 -0
  343. package/lib/services/rulesets.js +7852 -0
  344. package/lib/services/rulesets.js.map +1 -0
  345. package/lib/services/rum.d.ts +289 -0
  346. package/lib/services/rum.d.ts.map +1 -0
  347. package/lib/services/rum.js +409 -0
  348. package/lib/services/rum.js.map +1 -0
  349. package/lib/services/schema-validation.d.ts +240 -0
  350. package/lib/services/schema-validation.d.ts.map +1 -0
  351. package/lib/services/schema-validation.js +306 -0
  352. package/lib/services/schema-validation.js.map +1 -0
  353. package/lib/services/secrets-store.d.ts +321 -0
  354. package/lib/services/secrets-store.d.ts.map +1 -0
  355. package/lib/services/secrets-store.js +385 -0
  356. package/lib/services/secrets-store.js.map +1 -0
  357. package/lib/services/security-center.d.ts +102 -0
  358. package/lib/services/security-center.d.ts.map +1 -0
  359. package/lib/services/security-center.js +170 -0
  360. package/lib/services/security-center.js.map +1 -0
  361. package/lib/services/security-txt.d.ts +105 -0
  362. package/lib/services/security-txt.d.ts.map +1 -0
  363. package/lib/services/security-txt.js +136 -0
  364. package/lib/services/security-txt.js.map +1 -0
  365. package/lib/services/snippets.d.ts +138 -0
  366. package/lib/services/snippets.d.ts.map +1 -0
  367. package/lib/services/snippets.js +178 -0
  368. package/lib/services/snippets.js.map +1 -0
  369. package/lib/services/spectrum.d.ts +316 -0
  370. package/lib/services/spectrum.d.ts.map +1 -0
  371. package/lib/services/spectrum.js +510 -0
  372. package/lib/services/spectrum.js.map +1 -0
  373. package/lib/services/speed.d.ts +227 -0
  374. package/lib/services/speed.d.ts.map +1 -0
  375. package/lib/services/speed.js +444 -0
  376. package/lib/services/speed.js.map +1 -0
  377. package/lib/services/ssl.d.ts +370 -0
  378. package/lib/services/ssl.d.ts.map +1 -0
  379. package/lib/services/ssl.js +732 -0
  380. package/lib/services/ssl.js.map +1 -0
  381. package/lib/services/stream.d.ts +1014 -0
  382. package/lib/services/stream.d.ts.map +1 -0
  383. package/lib/services/stream.js +1049 -0
  384. package/lib/services/stream.js.map +1 -0
  385. package/lib/services/token-validation.d.ts +547 -0
  386. package/lib/services/token-validation.d.ts.map +1 -0
  387. package/lib/services/token-validation.js +768 -0
  388. package/lib/services/token-validation.js.map +1 -0
  389. package/lib/services/turnstile.d.ts +248 -0
  390. package/lib/services/turnstile.d.ts.map +1 -0
  391. package/lib/services/turnstile.js +308 -0
  392. package/lib/services/turnstile.js.map +1 -0
  393. package/lib/services/url-normalization.d.ts +53 -0
  394. package/lib/services/url-normalization.d.ts.map +1 -0
  395. package/lib/services/url-normalization.js +52 -0
  396. package/lib/services/url-normalization.js.map +1 -0
  397. package/lib/services/url-scanner.d.ts +612 -0
  398. package/lib/services/url-scanner.d.ts.map +1 -0
  399. package/lib/services/url-scanner.js +915 -0
  400. package/lib/services/url-scanner.js.map +1 -0
  401. package/lib/services/user.d.ts +441 -0
  402. package/lib/services/user.d.ts.map +1 -0
  403. package/lib/services/user.js +567 -0
  404. package/lib/services/user.js.map +1 -0
  405. package/lib/services/vectorize.d.ts +282 -0
  406. package/lib/services/vectorize.d.ts.map +1 -0
  407. package/lib/services/vectorize.js +340 -0
  408. package/lib/services/vectorize.js.map +1 -0
  409. package/lib/services/waiting-rooms.d.ts +1009 -0
  410. package/lib/services/waiting-rooms.d.ts.map +1 -0
  411. package/lib/services/waiting-rooms.js +1757 -0
  412. package/lib/services/waiting-rooms.js.map +1 -0
  413. package/lib/services/web3.d.ts +274 -0
  414. package/lib/services/web3.d.ts.map +1 -0
  415. package/lib/services/web3.js +362 -0
  416. package/lib/services/web3.js.map +1 -0
  417. package/lib/services/workers-for-platforms.d.ts +1224 -0
  418. package/lib/services/workers-for-platforms.d.ts.map +1 -0
  419. package/lib/services/workers-for-platforms.js +2078 -0
  420. package/lib/services/workers-for-platforms.js.map +1 -0
  421. package/lib/services/workers.d.ts +3498 -0
  422. package/lib/services/workers.d.ts.map +1 -0
  423. package/lib/services/workers.js +5967 -0
  424. package/lib/services/workers.js.map +1 -0
  425. package/lib/services/workflows.d.ts +359 -0
  426. package/lib/services/workflows.d.ts.map +1 -0
  427. package/lib/services/workflows.js +516 -0
  428. package/lib/services/workflows.js.map +1 -0
  429. package/lib/services/zaraz.d.ts +300 -0
  430. package/lib/services/zaraz.d.ts.map +1 -0
  431. package/lib/services/zaraz.js +298 -0
  432. package/lib/services/zaraz.js.map +1 -0
  433. package/lib/services/zero-trust.d.ts +15449 -0
  434. package/lib/services/zero-trust.d.ts.map +1 -0
  435. package/lib/services/zero-trust.js +29194 -0
  436. package/lib/services/zero-trust.js.map +1 -0
  437. package/lib/services/zones.d.ts +1278 -0
  438. package/lib/services/zones.d.ts.map +1 -0
  439. package/lib/services/zones.js +2416 -0
  440. package/lib/services/zones.js.map +1 -0
  441. package/lib/traits.d.ts +28 -0
  442. package/lib/traits.d.ts.map +1 -0
  443. package/lib/traits.js +26 -0
  444. package/lib/traits.js.map +1 -0
  445. package/package.json +67 -5
  446. package/src/auth.ts +14 -0
  447. package/src/category.ts +1 -0
  448. package/src/client/api.ts +269 -0
  449. package/src/client/index.ts +7 -0
  450. package/src/credentials.ts +30 -0
  451. package/src/errors.ts +65 -0
  452. package/src/index.ts +9 -0
  453. package/src/retry.ts +35 -0
  454. package/src/schemas.ts +51 -0
  455. package/src/services/abuse-reports.ts +747 -0
  456. package/src/services/accounts.ts +1947 -0
  457. package/src/services/acm.ts +170 -0
  458. package/src/services/addressing.ts +3947 -0
  459. package/src/services/ai-gateway.ts +3335 -0
  460. package/src/services/ai.ts +727 -0
  461. package/src/services/aisearch.ts +4750 -0
  462. package/src/services/alerting.ts +2947 -0
  463. package/src/services/api-gateway.ts +3391 -0
  464. package/src/services/argo.ts +254 -0
  465. package/src/services/audit-logs.ts +90 -0
  466. package/src/services/billing.ts +172 -0
  467. package/src/services/bot-management.ts +541 -0
  468. package/src/services/botnet-feed.ts +193 -0
  469. package/src/services/brand-protection.ts +553 -0
  470. package/src/services/browser-rendering.ts +2707 -0
  471. package/src/services/cache.ts +827 -0
  472. package/src/services/calls.ts +483 -0
  473. package/src/services/certificate-authorities.ts +110 -0
  474. package/src/services/client-certificates.ts +718 -0
  475. package/src/services/cloud-connector.ts +181 -0
  476. package/src/services/cloudforce-one.ts +3876 -0
  477. package/src/services/connectivity.ts +629 -0
  478. package/src/services/content-scanning.ts +385 -0
  479. package/src/services/custom-certificates.ts +611 -0
  480. package/src/services/custom-hostnames.ts +2453 -0
  481. package/src/services/custom-nameservers.ts +182 -0
  482. package/src/services/custom-pages.ts +264 -0
  483. package/src/services/d1.ts +1034 -0
  484. package/src/services/dcv-delegation.ts +52 -0
  485. package/src/services/diagnostics.ts +603 -0
  486. package/src/services/dns-firewall.ts +823 -0
  487. package/src/services/dns.ts +8897 -0
  488. package/src/services/durable-objects.ts +148 -0
  489. package/src/services/email-routing.ts +1602 -0
  490. package/src/services/email-security.ts +4283 -0
  491. package/src/services/filters.ts +370 -0
  492. package/src/services/firewall.ts +3896 -0
  493. package/src/services/healthchecks.ts +1750 -0
  494. package/src/services/hostnames.ts +218 -0
  495. package/src/services/hyperdrive.ts +592 -0
  496. package/src/services/iam.ts +1668 -0
  497. package/src/services/images.ts +1086 -0
  498. package/src/services/intel.ts +2768 -0
  499. package/src/services/ips.ts +88 -0
  500. package/src/services/keyless-certificates.ts +462 -0
  501. package/src/services/kv.ts +1011 -0
  502. package/src/services/leaked-credential-checks.ts +325 -0
  503. package/src/services/load-balancers.ts +6438 -0
  504. package/src/services/logpush.ts +1667 -0
  505. package/src/services/logs.ts +375 -0
  506. package/src/services/magic-cloud-networking.ts +10020 -0
  507. package/src/services/magic-network-monitoring.ts +1156 -0
  508. package/src/services/magic-transit.ts +13050 -0
  509. package/src/services/managed-transforms.ts +237 -0
  510. package/src/services/memberships.ts +615 -0
  511. package/src/services/mtls-certificates.ts +374 -0
  512. package/src/services/network-interconnects.ts +1253 -0
  513. package/src/services/organizations.ts +674 -0
  514. package/src/services/origin-ca-certificates.ts +303 -0
  515. package/src/services/origin-post-quantum-encryption.ts +128 -0
  516. package/src/services/origin-tls-client-auth.ts +878 -0
  517. package/src/services/page-rules.ts +2612 -0
  518. package/src/services/page-shield.ts +1195 -0
  519. package/src/services/pages.ts +5709 -0
  520. package/src/services/pipelines.ts +6000 -0
  521. package/src/services/queues.ts +2629 -0
  522. package/src/services/r2-data-catalog.ts +1119 -0
  523. package/src/services/r2.ts +3348 -0
  524. package/src/services/radar.ts +42152 -0
  525. package/src/services/rate-limits.ts +1150 -0
  526. package/src/services/realtime-kit.ts +11079 -0
  527. package/src/services/registrar.ts +295 -0
  528. package/src/services/request-tracers.ts +158 -0
  529. package/src/services/resource-sharing.ts +1832 -0
  530. package/src/services/rules.ts +837 -0
  531. package/src/services/rulesets.ts +15144 -0
  532. package/src/services/rum.ts +901 -0
  533. package/src/services/schema-validation.ts +733 -0
  534. package/src/services/secrets-store.ts +860 -0
  535. package/src/services/security-center.ts +397 -0
  536. package/src/services/security-txt.ts +315 -0
  537. package/src/services/snippets.ts +420 -0
  538. package/src/services/spectrum.ts +1103 -0
  539. package/src/services/speed.ts +1056 -0
  540. package/src/services/ssl.ts +1587 -0
  541. package/src/services/stream.ts +2756 -0
  542. package/src/services/token-validation.ts +1585 -0
  543. package/src/services/turnstile.ts +643 -0
  544. package/src/services/url-normalization.ts +129 -0
  545. package/src/services/url-scanner.ts +1851 -0
  546. package/src/services/user.ts +1384 -0
  547. package/src/services/vectorize.ts +816 -0
  548. package/src/services/waiting-rooms.ts +3807 -0
  549. package/src/services/web3.ts +834 -0
  550. package/src/services/workers-for-platforms.ts +3859 -0
  551. package/src/services/workers.ts +11637 -0
  552. package/src/services/workflows.ts +1124 -0
  553. package/src/services/zaraz.ts +797 -0
  554. package/src/services/zero-trust.ts +58933 -0
  555. package/src/services/zones.ts +4875 -0
  556. package/src/traits.ts +47 -0
  557. package/README.md +0 -15
  558. package/bun.lock +0 -26
  559. package/index.ts +0 -1
  560. package/tsconfig.json +0 -29
@@ -0,0 +1,1194 @@
1
+ /**
2
+ * Cloudflare QUEUES API
3
+ *
4
+ * Generated from Cloudflare TypeScript SDK.
5
+ * DO NOT EDIT - regenerate with: bun scripts/generate.ts --service queues
6
+ */
7
+ import * as Schema from "effect/Schema";
8
+ import * as API from "../client/api.js";
9
+ import * as T from "../traits";
10
+ import {} from "../errors";
11
+ // =============================================================================
12
+ // Errors
13
+ // =============================================================================
14
+ export class InvalidMessageBody extends Schema.TaggedErrorClass()("InvalidMessageBody", { code: Schema.Number, message: Schema.String }) {
15
+ }
16
+ T.applyErrorMatchers(InvalidMessageBody, [{ code: 10207 }]);
17
+ export class InvalidQueueName extends Schema.TaggedErrorClass()("InvalidQueueName", { code: Schema.Number, message: Schema.String }) {
18
+ }
19
+ T.applyErrorMatchers(InvalidQueueName, [{ code: 11003 }]);
20
+ export class InvalidRequestBody extends Schema.TaggedErrorClass()("InvalidRequestBody", { code: Schema.Number, message: Schema.String }) {
21
+ }
22
+ T.applyErrorMatchers(InvalidRequestBody, [{ code: 10026 }]);
23
+ export class UnrecognizedEventType extends Schema.TaggedErrorClass()("UnrecognizedEventType", { code: Schema.Number, message: Schema.String }) {
24
+ }
25
+ T.applyErrorMatchers(UnrecognizedEventType, [
26
+ { code: 0, message: { includes: "Unrecognized event types" } },
27
+ ]);
28
+ export const GetConsumerRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
29
+ queueId: Schema.String.pipe(T.HttpPath("queueId")),
30
+ consumerId: Schema.String.pipe(T.HttpPath("consumerId")),
31
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
32
+ }).pipe(T.Http({
33
+ method: "GET",
34
+ path: "/accounts/{account_id}/queues/{queueId}/consumers/{consumerId}",
35
+ }));
36
+ export const GetConsumerResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Union([
37
+ Schema.Struct({
38
+ consumerId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
39
+ createdOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
40
+ queueId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
41
+ script: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
42
+ settings: Schema.optional(Schema.Union([
43
+ Schema.Struct({
44
+ batchSize: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
45
+ maxConcurrency: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
46
+ maxRetries: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
47
+ maxWaitTimeMs: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
48
+ retryDelay: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
49
+ }).pipe(Schema.encodeKeys({
50
+ batchSize: "batch_size",
51
+ maxConcurrency: "max_concurrency",
52
+ maxRetries: "max_retries",
53
+ maxWaitTimeMs: "max_wait_time_ms",
54
+ retryDelay: "retry_delay",
55
+ })),
56
+ Schema.Null,
57
+ ])),
58
+ type: Schema.optional(Schema.Union([Schema.Literal("worker"), Schema.Null])),
59
+ }).pipe(Schema.encodeKeys({
60
+ consumerId: "consumer_id",
61
+ createdOn: "created_on",
62
+ queueId: "queue_id",
63
+ script: "script",
64
+ settings: "settings",
65
+ type: "type",
66
+ })),
67
+ Schema.Struct({
68
+ consumerId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
69
+ createdOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
70
+ queueId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
71
+ settings: Schema.optional(Schema.Union([
72
+ Schema.Struct({
73
+ batchSize: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
74
+ maxRetries: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
75
+ retryDelay: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
76
+ visibilityTimeoutMs: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
77
+ }).pipe(Schema.encodeKeys({
78
+ batchSize: "batch_size",
79
+ maxRetries: "max_retries",
80
+ retryDelay: "retry_delay",
81
+ visibilityTimeoutMs: "visibility_timeout_ms",
82
+ })),
83
+ Schema.Null,
84
+ ])),
85
+ type: Schema.optional(Schema.Union([Schema.Literal("http_pull"), Schema.Null])),
86
+ }).pipe(Schema.encodeKeys({
87
+ consumerId: "consumer_id",
88
+ createdOn: "created_on",
89
+ queueId: "queue_id",
90
+ settings: "settings",
91
+ type: "type",
92
+ })),
93
+ ]);
94
+ export const getConsumer = API.make(() => ({
95
+ input: GetConsumerRequest,
96
+ output: GetConsumerResponse,
97
+ errors: [InvalidRequestBody],
98
+ }));
99
+ export const ListConsumersRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
100
+ queueId: Schema.String.pipe(T.HttpPath("queueId")),
101
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
102
+ }).pipe(T.Http({
103
+ method: "GET",
104
+ path: "/accounts/{account_id}/queues/{queueId}/consumers",
105
+ }));
106
+ export const ListConsumersResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Array(Schema.Union([
107
+ Schema.Struct({
108
+ consumerId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
109
+ createdOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
110
+ queueId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
111
+ script: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
112
+ settings: Schema.optional(Schema.Union([
113
+ Schema.Struct({
114
+ batchSize: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
115
+ maxConcurrency: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
116
+ maxRetries: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
117
+ maxWaitTimeMs: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
118
+ retryDelay: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
119
+ }).pipe(Schema.encodeKeys({
120
+ batchSize: "batch_size",
121
+ maxConcurrency: "max_concurrency",
122
+ maxRetries: "max_retries",
123
+ maxWaitTimeMs: "max_wait_time_ms",
124
+ retryDelay: "retry_delay",
125
+ })),
126
+ Schema.Null,
127
+ ])),
128
+ type: Schema.optional(Schema.Union([Schema.Literal("worker"), Schema.Null])),
129
+ }).pipe(Schema.encodeKeys({
130
+ consumerId: "consumer_id",
131
+ createdOn: "created_on",
132
+ queueId: "queue_id",
133
+ script: "script",
134
+ settings: "settings",
135
+ type: "type",
136
+ })),
137
+ Schema.Struct({
138
+ consumerId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
139
+ createdOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
140
+ queueId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
141
+ settings: Schema.optional(Schema.Union([
142
+ Schema.Struct({
143
+ batchSize: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
144
+ maxRetries: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
145
+ retryDelay: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
146
+ visibilityTimeoutMs: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
147
+ }).pipe(Schema.encodeKeys({
148
+ batchSize: "batch_size",
149
+ maxRetries: "max_retries",
150
+ retryDelay: "retry_delay",
151
+ visibilityTimeoutMs: "visibility_timeout_ms",
152
+ })),
153
+ Schema.Null,
154
+ ])),
155
+ type: Schema.optional(Schema.Union([Schema.Literal("http_pull"), Schema.Null])),
156
+ }).pipe(Schema.encodeKeys({
157
+ consumerId: "consumer_id",
158
+ createdOn: "created_on",
159
+ queueId: "queue_id",
160
+ settings: "settings",
161
+ type: "type",
162
+ })),
163
+ ]));
164
+ export const listConsumers = API.make(() => ({
165
+ input: ListConsumersRequest,
166
+ output: ListConsumersResponse,
167
+ errors: [InvalidRequestBody],
168
+ }));
169
+ export const CreateConsumerRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
170
+ queueId: Schema.String.pipe(T.HttpPath("queueId")),
171
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
172
+ deadLetterQueue: Schema.optional(Schema.String),
173
+ scriptName: Schema.optional(Schema.String),
174
+ settings: Schema.optional(Schema.Struct({
175
+ batchSize: Schema.optional(Schema.Number),
176
+ maxConcurrency: Schema.optional(Schema.Number),
177
+ maxRetries: Schema.optional(Schema.Number),
178
+ maxWaitTimeMs: Schema.optional(Schema.Number),
179
+ retryDelay: Schema.optional(Schema.Number),
180
+ }).pipe(Schema.encodeKeys({
181
+ batchSize: "batch_size",
182
+ maxConcurrency: "max_concurrency",
183
+ maxRetries: "max_retries",
184
+ maxWaitTimeMs: "max_wait_time_ms",
185
+ retryDelay: "retry_delay",
186
+ }))),
187
+ type: Schema.optional(Schema.Literal("worker")),
188
+ }).pipe(Schema.encodeKeys({
189
+ deadLetterQueue: "dead_letter_queue",
190
+ scriptName: "script_name",
191
+ settings: "settings",
192
+ type: "type",
193
+ }), T.Http({
194
+ method: "POST",
195
+ path: "/accounts/{account_id}/queues/{queueId}/consumers",
196
+ }));
197
+ export const CreateConsumerResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Union([
198
+ Schema.Struct({
199
+ consumerId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
200
+ createdOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
201
+ queueId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
202
+ script: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
203
+ settings: Schema.optional(Schema.Union([
204
+ Schema.Struct({
205
+ batchSize: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
206
+ maxConcurrency: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
207
+ maxRetries: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
208
+ maxWaitTimeMs: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
209
+ retryDelay: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
210
+ }).pipe(Schema.encodeKeys({
211
+ batchSize: "batch_size",
212
+ maxConcurrency: "max_concurrency",
213
+ maxRetries: "max_retries",
214
+ maxWaitTimeMs: "max_wait_time_ms",
215
+ retryDelay: "retry_delay",
216
+ })),
217
+ Schema.Null,
218
+ ])),
219
+ type: Schema.optional(Schema.Union([Schema.Literal("worker"), Schema.Null])),
220
+ }).pipe(Schema.encodeKeys({
221
+ consumerId: "consumer_id",
222
+ createdOn: "created_on",
223
+ queueId: "queue_id",
224
+ script: "script",
225
+ settings: "settings",
226
+ type: "type",
227
+ })),
228
+ Schema.Struct({
229
+ consumerId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
230
+ createdOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
231
+ queueId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
232
+ settings: Schema.optional(Schema.Union([
233
+ Schema.Struct({
234
+ batchSize: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
235
+ maxRetries: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
236
+ retryDelay: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
237
+ visibilityTimeoutMs: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
238
+ }).pipe(Schema.encodeKeys({
239
+ batchSize: "batch_size",
240
+ maxRetries: "max_retries",
241
+ retryDelay: "retry_delay",
242
+ visibilityTimeoutMs: "visibility_timeout_ms",
243
+ })),
244
+ Schema.Null,
245
+ ])),
246
+ type: Schema.optional(Schema.Union([Schema.Literal("http_pull"), Schema.Null])),
247
+ }).pipe(Schema.encodeKeys({
248
+ consumerId: "consumer_id",
249
+ createdOn: "created_on",
250
+ queueId: "queue_id",
251
+ settings: "settings",
252
+ type: "type",
253
+ })),
254
+ ]);
255
+ export const createConsumer = API.make(() => ({
256
+ input: CreateConsumerRequest,
257
+ output: CreateConsumerResponse,
258
+ errors: [InvalidRequestBody],
259
+ }));
260
+ export const UpdateConsumerRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
261
+ queueId: Schema.String.pipe(T.HttpPath("queueId")),
262
+ consumerId: Schema.String.pipe(T.HttpPath("consumerId")),
263
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
264
+ deadLetterQueue: Schema.optional(Schema.String),
265
+ scriptName: Schema.optional(Schema.String),
266
+ settings: Schema.optional(Schema.Struct({
267
+ batchSize: Schema.optional(Schema.Number),
268
+ maxConcurrency: Schema.optional(Schema.Number),
269
+ maxRetries: Schema.optional(Schema.Number),
270
+ maxWaitTimeMs: Schema.optional(Schema.Number),
271
+ retryDelay: Schema.optional(Schema.Number),
272
+ }).pipe(Schema.encodeKeys({
273
+ batchSize: "batch_size",
274
+ maxConcurrency: "max_concurrency",
275
+ maxRetries: "max_retries",
276
+ maxWaitTimeMs: "max_wait_time_ms",
277
+ retryDelay: "retry_delay",
278
+ }))),
279
+ type: Schema.optional(Schema.Literal("worker")),
280
+ }).pipe(Schema.encodeKeys({
281
+ deadLetterQueue: "dead_letter_queue",
282
+ scriptName: "script_name",
283
+ settings: "settings",
284
+ type: "type",
285
+ }), T.Http({
286
+ method: "PUT",
287
+ path: "/accounts/{account_id}/queues/{queueId}/consumers/{consumerId}",
288
+ }));
289
+ export const UpdateConsumerResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Union([
290
+ Schema.Struct({
291
+ consumerId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
292
+ createdOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
293
+ queueId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
294
+ script: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
295
+ settings: Schema.optional(Schema.Union([
296
+ Schema.Struct({
297
+ batchSize: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
298
+ maxConcurrency: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
299
+ maxRetries: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
300
+ maxWaitTimeMs: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
301
+ retryDelay: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
302
+ }).pipe(Schema.encodeKeys({
303
+ batchSize: "batch_size",
304
+ maxConcurrency: "max_concurrency",
305
+ maxRetries: "max_retries",
306
+ maxWaitTimeMs: "max_wait_time_ms",
307
+ retryDelay: "retry_delay",
308
+ })),
309
+ Schema.Null,
310
+ ])),
311
+ type: Schema.optional(Schema.Union([Schema.Literal("worker"), Schema.Null])),
312
+ }).pipe(Schema.encodeKeys({
313
+ consumerId: "consumer_id",
314
+ createdOn: "created_on",
315
+ queueId: "queue_id",
316
+ script: "script",
317
+ settings: "settings",
318
+ type: "type",
319
+ })),
320
+ Schema.Struct({
321
+ consumerId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
322
+ createdOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
323
+ queueId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
324
+ settings: Schema.optional(Schema.Union([
325
+ Schema.Struct({
326
+ batchSize: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
327
+ maxRetries: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
328
+ retryDelay: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
329
+ visibilityTimeoutMs: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
330
+ }).pipe(Schema.encodeKeys({
331
+ batchSize: "batch_size",
332
+ maxRetries: "max_retries",
333
+ retryDelay: "retry_delay",
334
+ visibilityTimeoutMs: "visibility_timeout_ms",
335
+ })),
336
+ Schema.Null,
337
+ ])),
338
+ type: Schema.optional(Schema.Union([Schema.Literal("http_pull"), Schema.Null])),
339
+ }).pipe(Schema.encodeKeys({
340
+ consumerId: "consumer_id",
341
+ createdOn: "created_on",
342
+ queueId: "queue_id",
343
+ settings: "settings",
344
+ type: "type",
345
+ })),
346
+ ]);
347
+ export const updateConsumer = API.make(() => ({
348
+ input: UpdateConsumerRequest,
349
+ output: UpdateConsumerResponse,
350
+ errors: [InvalidRequestBody],
351
+ }));
352
+ export const DeleteConsumerRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
353
+ queueId: Schema.String.pipe(T.HttpPath("queueId")),
354
+ consumerId: Schema.String.pipe(T.HttpPath("consumerId")),
355
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
356
+ }).pipe(T.Http({
357
+ method: "DELETE",
358
+ path: "/accounts/{account_id}/queues/{queueId}/consumers/{consumerId}",
359
+ }));
360
+ export const DeleteConsumerResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
361
+ errors: Schema.optional(Schema.Union([Schema.Array(Schema.Unknown), Schema.Null])),
362
+ messages: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
363
+ success: Schema.optional(Schema.Union([Schema.Literal(true), Schema.Null])),
364
+ });
365
+ export const deleteConsumer = API.make(() => ({
366
+ input: DeleteConsumerRequest,
367
+ output: DeleteConsumerResponse,
368
+ errors: [InvalidRequestBody],
369
+ }));
370
+ export const BulkPushMessagesRequest =
371
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
372
+ queueId: Schema.String.pipe(T.HttpPath("queueId")),
373
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
374
+ delaySeconds: Schema.optional(Schema.Number),
375
+ messages: Schema.optional(Schema.Array(Schema.Union([
376
+ Schema.Struct({
377
+ body: Schema.optional(Schema.String),
378
+ contentType: Schema.optional(Schema.Literal("text")),
379
+ delaySeconds: Schema.optional(Schema.Number),
380
+ }).pipe(Schema.encodeKeys({
381
+ body: "body",
382
+ contentType: "content_type",
383
+ delaySeconds: "delay_seconds",
384
+ })),
385
+ Schema.Struct({
386
+ body: Schema.optional(Schema.Unknown),
387
+ contentType: Schema.optional(Schema.Literal("json")),
388
+ delaySeconds: Schema.optional(Schema.Number),
389
+ }).pipe(Schema.encodeKeys({
390
+ body: "body",
391
+ contentType: "content_type",
392
+ delaySeconds: "delay_seconds",
393
+ })),
394
+ ]))),
395
+ }).pipe(Schema.encodeKeys({ delaySeconds: "delay_seconds", messages: "messages" }), T.Http({
396
+ method: "POST",
397
+ path: "/accounts/{account_id}/queues/{queueId}/messages/batch",
398
+ }));
399
+ export const BulkPushMessagesResponse =
400
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
401
+ errors: Schema.optional(Schema.Union([Schema.Array(Schema.Unknown), Schema.Null])),
402
+ messages: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
403
+ success: Schema.optional(Schema.Union([Schema.Literal(true), Schema.Null])),
404
+ });
405
+ export const bulkPushMessages = API.make(() => ({
406
+ input: BulkPushMessagesRequest,
407
+ output: BulkPushMessagesResponse,
408
+ errors: [InvalidMessageBody],
409
+ }));
410
+ export const PullMessageRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
411
+ queueId: Schema.String.pipe(T.HttpPath("queueId")),
412
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
413
+ batchSize: Schema.optional(Schema.Number),
414
+ visibilityTimeoutMs: Schema.optional(Schema.Number),
415
+ }).pipe(Schema.encodeKeys({
416
+ batchSize: "batch_size",
417
+ visibilityTimeoutMs: "visibility_timeout_ms",
418
+ }), T.Http({
419
+ method: "POST",
420
+ path: "/accounts/{account_id}/queues/{queueId}/messages/pull",
421
+ }));
422
+ export const PullMessageResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
423
+ messageBacklogCount: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
424
+ messages: Schema.optional(Schema.Union([
425
+ Schema.Array(Schema.Struct({
426
+ id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
427
+ attempts: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
428
+ body: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
429
+ leaseId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
430
+ metadata: Schema.optional(Schema.Union([Schema.Unknown, Schema.Null])),
431
+ timestampMs: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
432
+ }).pipe(Schema.encodeKeys({
433
+ id: "id",
434
+ attempts: "attempts",
435
+ body: "body",
436
+ leaseId: "lease_id",
437
+ metadata: "metadata",
438
+ timestampMs: "timestamp_ms",
439
+ }))),
440
+ Schema.Null,
441
+ ])),
442
+ }).pipe(Schema.encodeKeys({
443
+ messageBacklogCount: "message_backlog_count",
444
+ messages: "messages",
445
+ }));
446
+ export const pullMessage = API.make(() => ({
447
+ input: PullMessageRequest,
448
+ output: PullMessageResponse,
449
+ errors: [InvalidRequestBody],
450
+ }));
451
+ export const PushMessageRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
452
+ queueId: Schema.String.pipe(T.HttpPath("queueId")),
453
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
454
+ body: Schema.optional(Schema.String).pipe(T.HttpBody()),
455
+ contentType: Schema.optional(Schema.Literal("text")),
456
+ delaySeconds: Schema.optional(Schema.Number),
457
+ }).pipe(Schema.encodeKeys({
458
+ contentType: "content_type",
459
+ delaySeconds: "delay_seconds",
460
+ }), T.Http({
461
+ method: "POST",
462
+ path: "/accounts/{account_id}/queues/{queueId}/messages",
463
+ }));
464
+ export const PushMessageResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
465
+ errors: Schema.optional(Schema.Union([Schema.Array(Schema.Unknown), Schema.Null])),
466
+ messages: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
467
+ success: Schema.optional(Schema.Union([Schema.Literal(true), Schema.Null])),
468
+ });
469
+ export const pushMessage = API.make(() => ({
470
+ input: PushMessageRequest,
471
+ output: PushMessageResponse,
472
+ errors: [InvalidMessageBody],
473
+ }));
474
+ export const AckMessageRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
475
+ queueId: Schema.String.pipe(T.HttpPath("queueId")),
476
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
477
+ acks: Schema.optional(Schema.Array(Schema.Struct({
478
+ leaseId: Schema.optional(Schema.String),
479
+ }).pipe(Schema.encodeKeys({ leaseId: "lease_id" })))),
480
+ retries: Schema.optional(Schema.Array(Schema.Struct({
481
+ delaySeconds: Schema.optional(Schema.Number),
482
+ leaseId: Schema.optional(Schema.String),
483
+ }).pipe(Schema.encodeKeys({
484
+ delaySeconds: "delay_seconds",
485
+ leaseId: "lease_id",
486
+ })))),
487
+ }).pipe(T.Http({
488
+ method: "POST",
489
+ path: "/accounts/{account_id}/queues/{queueId}/messages/ack",
490
+ }));
491
+ export const AckMessageResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
492
+ ackCount: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
493
+ retryCount: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
494
+ warnings: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
495
+ });
496
+ export const ackMessage = API.make(() => ({
497
+ input: AckMessageRequest,
498
+ output: AckMessageResponse,
499
+ errors: [InvalidRequestBody],
500
+ }));
501
+ export const StartPurgeRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
502
+ queueId: Schema.String.pipe(T.HttpPath("queueId")),
503
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
504
+ deleteMessagesPermanently: Schema.optional(Schema.Boolean),
505
+ }).pipe(Schema.encodeKeys({
506
+ deleteMessagesPermanently: "delete_messages_permanently",
507
+ }), T.Http({
508
+ method: "POST",
509
+ path: "/accounts/{account_id}/queues/{queueId}/purge",
510
+ }));
511
+ export const StartPurgeResponse =
512
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Unknown;
513
+ export const startPurge = API.make(() => ({
514
+ input: StartPurgeRequest,
515
+ output: StartPurgeResponse,
516
+ errors: [],
517
+ }));
518
+ export const StatusPurgeRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
519
+ queueId: Schema.String.pipe(T.HttpPath("queueId")),
520
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
521
+ }).pipe(T.Http({
522
+ method: "GET",
523
+ path: "/accounts/{account_id}/queues/{queueId}/purge",
524
+ }));
525
+ export const StatusPurgeResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
526
+ completed: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
527
+ startedAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
528
+ }).pipe(Schema.encodeKeys({ completed: "completed", startedAt: "started_at" }));
529
+ export const statusPurge = API.make(() => ({
530
+ input: StatusPurgeRequest,
531
+ output: StatusPurgeResponse,
532
+ errors: [],
533
+ }));
534
+ export const GetQueueRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
535
+ queueId: Schema.String.pipe(T.HttpPath("queueId")),
536
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
537
+ }).pipe(T.Http({ method: "GET", path: "/accounts/{account_id}/queues/{queueId}" }));
538
+ export const GetQueueResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
539
+ consumers: Schema.optional(Schema.Union([Schema.Array(Schema.Unknown), Schema.Null])),
540
+ consumersTotalCount: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
541
+ createdOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
542
+ modifiedOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
543
+ producers: Schema.optional(Schema.Union([
544
+ Schema.Array(Schema.Union([
545
+ Schema.Struct({
546
+ script: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
547
+ type: Schema.optional(Schema.Union([Schema.Literal("worker"), Schema.Null])),
548
+ }),
549
+ Schema.Struct({
550
+ bucketName: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
551
+ type: Schema.optional(Schema.Union([Schema.Literal("r2_bucket"), Schema.Null])),
552
+ }).pipe(Schema.encodeKeys({ bucketName: "bucket_name", type: "type" })),
553
+ ])),
554
+ Schema.Null,
555
+ ])),
556
+ producersTotalCount: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
557
+ queueId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
558
+ queueName: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
559
+ settings: Schema.optional(Schema.Union([
560
+ Schema.Struct({
561
+ deliveryDelay: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
562
+ deliveryPaused: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
563
+ messageRetentionPeriod: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
564
+ }).pipe(Schema.encodeKeys({
565
+ deliveryDelay: "delivery_delay",
566
+ deliveryPaused: "delivery_paused",
567
+ messageRetentionPeriod: "message_retention_period",
568
+ })),
569
+ Schema.Null,
570
+ ])),
571
+ }).pipe(Schema.encodeKeys({
572
+ consumers: "consumers",
573
+ consumersTotalCount: "consumers_total_count",
574
+ createdOn: "created_on",
575
+ modifiedOn: "modified_on",
576
+ producers: "producers",
577
+ producersTotalCount: "producers_total_count",
578
+ queueId: "queue_id",
579
+ queueName: "queue_name",
580
+ settings: "settings",
581
+ }));
582
+ export const getQueue = API.make(() => ({
583
+ input: GetQueueRequest,
584
+ output: GetQueueResponse,
585
+ errors: [],
586
+ }));
587
+ export const ListQueuesRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
588
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
589
+ }).pipe(T.Http({ method: "GET", path: "/accounts/{account_id}/queues" }));
590
+ export const ListQueuesResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Array(Schema.Struct({
591
+ consumers: Schema.optional(Schema.Union([Schema.Array(Schema.Unknown), Schema.Null])),
592
+ consumersTotalCount: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
593
+ createdOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
594
+ modifiedOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
595
+ producers: Schema.optional(Schema.Union([
596
+ Schema.Array(Schema.Union([
597
+ Schema.Struct({
598
+ script: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
599
+ type: Schema.optional(Schema.Union([Schema.Literal("worker"), Schema.Null])),
600
+ }),
601
+ Schema.Struct({
602
+ bucketName: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
603
+ type: Schema.optional(Schema.Union([Schema.Literal("r2_bucket"), Schema.Null])),
604
+ }).pipe(Schema.encodeKeys({ bucketName: "bucket_name", type: "type" })),
605
+ ])),
606
+ Schema.Null,
607
+ ])),
608
+ producersTotalCount: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
609
+ queueId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
610
+ queueName: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
611
+ settings: Schema.optional(Schema.Union([
612
+ Schema.Struct({
613
+ deliveryDelay: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
614
+ deliveryPaused: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
615
+ messageRetentionPeriod: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
616
+ }).pipe(Schema.encodeKeys({
617
+ deliveryDelay: "delivery_delay",
618
+ deliveryPaused: "delivery_paused",
619
+ messageRetentionPeriod: "message_retention_period",
620
+ })),
621
+ Schema.Null,
622
+ ])),
623
+ }).pipe(Schema.encodeKeys({
624
+ consumers: "consumers",
625
+ consumersTotalCount: "consumers_total_count",
626
+ createdOn: "created_on",
627
+ modifiedOn: "modified_on",
628
+ producers: "producers",
629
+ producersTotalCount: "producers_total_count",
630
+ queueId: "queue_id",
631
+ queueName: "queue_name",
632
+ settings: "settings",
633
+ })));
634
+ export const listQueues = API.make(() => ({
635
+ input: ListQueuesRequest,
636
+ output: ListQueuesResponse,
637
+ errors: [],
638
+ }));
639
+ export const CreateQueueRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
640
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
641
+ queueName: Schema.String,
642
+ }).pipe(Schema.encodeKeys({ queueName: "queue_name" }), T.Http({ method: "POST", path: "/accounts/{account_id}/queues" }));
643
+ export const CreateQueueResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
644
+ consumers: Schema.optional(Schema.Union([Schema.Array(Schema.Unknown), Schema.Null])),
645
+ consumersTotalCount: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
646
+ createdOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
647
+ modifiedOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
648
+ producers: Schema.optional(Schema.Union([
649
+ Schema.Array(Schema.Union([
650
+ Schema.Struct({
651
+ script: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
652
+ type: Schema.optional(Schema.Union([Schema.Literal("worker"), Schema.Null])),
653
+ }),
654
+ Schema.Struct({
655
+ bucketName: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
656
+ type: Schema.optional(Schema.Union([Schema.Literal("r2_bucket"), Schema.Null])),
657
+ }).pipe(Schema.encodeKeys({ bucketName: "bucket_name", type: "type" })),
658
+ ])),
659
+ Schema.Null,
660
+ ])),
661
+ producersTotalCount: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
662
+ queueId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
663
+ queueName: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
664
+ settings: Schema.optional(Schema.Union([
665
+ Schema.Struct({
666
+ deliveryDelay: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
667
+ deliveryPaused: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
668
+ messageRetentionPeriod: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
669
+ }).pipe(Schema.encodeKeys({
670
+ deliveryDelay: "delivery_delay",
671
+ deliveryPaused: "delivery_paused",
672
+ messageRetentionPeriod: "message_retention_period",
673
+ })),
674
+ Schema.Null,
675
+ ])),
676
+ }).pipe(Schema.encodeKeys({
677
+ consumers: "consumers",
678
+ consumersTotalCount: "consumers_total_count",
679
+ createdOn: "created_on",
680
+ modifiedOn: "modified_on",
681
+ producers: "producers",
682
+ producersTotalCount: "producers_total_count",
683
+ queueId: "queue_id",
684
+ queueName: "queue_name",
685
+ settings: "settings",
686
+ }));
687
+ export const createQueue = API.make(() => ({
688
+ input: CreateQueueRequest,
689
+ output: CreateQueueResponse,
690
+ errors: [],
691
+ }));
692
+ export const UpdateQueueRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
693
+ queueId: Schema.String.pipe(T.HttpPath("queueId")),
694
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
695
+ queueName: Schema.optional(Schema.String),
696
+ settings: Schema.optional(Schema.Struct({
697
+ deliveryDelay: Schema.optional(Schema.Number),
698
+ deliveryPaused: Schema.optional(Schema.Boolean),
699
+ messageRetentionPeriod: Schema.optional(Schema.Number),
700
+ }).pipe(Schema.encodeKeys({
701
+ deliveryDelay: "delivery_delay",
702
+ deliveryPaused: "delivery_paused",
703
+ messageRetentionPeriod: "message_retention_period",
704
+ }))),
705
+ }).pipe(Schema.encodeKeys({ queueName: "queue_name", settings: "settings" }), T.Http({ method: "PUT", path: "/accounts/{account_id}/queues/{queueId}" }));
706
+ export const UpdateQueueResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
707
+ consumers: Schema.optional(Schema.Union([Schema.Array(Schema.Unknown), Schema.Null])),
708
+ consumersTotalCount: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
709
+ createdOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
710
+ modifiedOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
711
+ producers: Schema.optional(Schema.Union([
712
+ Schema.Array(Schema.Union([
713
+ Schema.Struct({
714
+ script: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
715
+ type: Schema.optional(Schema.Union([Schema.Literal("worker"), Schema.Null])),
716
+ }),
717
+ Schema.Struct({
718
+ bucketName: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
719
+ type: Schema.optional(Schema.Union([Schema.Literal("r2_bucket"), Schema.Null])),
720
+ }).pipe(Schema.encodeKeys({ bucketName: "bucket_name", type: "type" })),
721
+ ])),
722
+ Schema.Null,
723
+ ])),
724
+ producersTotalCount: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
725
+ queueId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
726
+ queueName: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
727
+ settings: Schema.optional(Schema.Union([
728
+ Schema.Struct({
729
+ deliveryDelay: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
730
+ deliveryPaused: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
731
+ messageRetentionPeriod: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
732
+ }).pipe(Schema.encodeKeys({
733
+ deliveryDelay: "delivery_delay",
734
+ deliveryPaused: "delivery_paused",
735
+ messageRetentionPeriod: "message_retention_period",
736
+ })),
737
+ Schema.Null,
738
+ ])),
739
+ }).pipe(Schema.encodeKeys({
740
+ consumers: "consumers",
741
+ consumersTotalCount: "consumers_total_count",
742
+ createdOn: "created_on",
743
+ modifiedOn: "modified_on",
744
+ producers: "producers",
745
+ producersTotalCount: "producers_total_count",
746
+ queueId: "queue_id",
747
+ queueName: "queue_name",
748
+ settings: "settings",
749
+ }));
750
+ export const updateQueue = API.make(() => ({
751
+ input: UpdateQueueRequest,
752
+ output: UpdateQueueResponse,
753
+ errors: [InvalidQueueName],
754
+ }));
755
+ export const PatchQueueRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
756
+ queueId: Schema.String.pipe(T.HttpPath("queueId")),
757
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
758
+ queueName: Schema.optional(Schema.String),
759
+ settings: Schema.optional(Schema.Struct({
760
+ deliveryDelay: Schema.optional(Schema.Number),
761
+ deliveryPaused: Schema.optional(Schema.Boolean),
762
+ messageRetentionPeriod: Schema.optional(Schema.Number),
763
+ }).pipe(Schema.encodeKeys({
764
+ deliveryDelay: "delivery_delay",
765
+ deliveryPaused: "delivery_paused",
766
+ messageRetentionPeriod: "message_retention_period",
767
+ }))),
768
+ }).pipe(Schema.encodeKeys({ queueName: "queue_name", settings: "settings" }), T.Http({ method: "PATCH", path: "/accounts/{account_id}/queues/{queueId}" }));
769
+ export const PatchQueueResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
770
+ consumers: Schema.optional(Schema.Union([Schema.Array(Schema.Unknown), Schema.Null])),
771
+ consumersTotalCount: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
772
+ createdOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
773
+ modifiedOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
774
+ producers: Schema.optional(Schema.Union([
775
+ Schema.Array(Schema.Union([
776
+ Schema.Struct({
777
+ script: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
778
+ type: Schema.optional(Schema.Union([Schema.Literal("worker"), Schema.Null])),
779
+ }),
780
+ Schema.Struct({
781
+ bucketName: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
782
+ type: Schema.optional(Schema.Union([Schema.Literal("r2_bucket"), Schema.Null])),
783
+ }).pipe(Schema.encodeKeys({ bucketName: "bucket_name", type: "type" })),
784
+ ])),
785
+ Schema.Null,
786
+ ])),
787
+ producersTotalCount: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
788
+ queueId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
789
+ queueName: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
790
+ settings: Schema.optional(Schema.Union([
791
+ Schema.Struct({
792
+ deliveryDelay: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
793
+ deliveryPaused: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
794
+ messageRetentionPeriod: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
795
+ }).pipe(Schema.encodeKeys({
796
+ deliveryDelay: "delivery_delay",
797
+ deliveryPaused: "delivery_paused",
798
+ messageRetentionPeriod: "message_retention_period",
799
+ })),
800
+ Schema.Null,
801
+ ])),
802
+ }).pipe(Schema.encodeKeys({
803
+ consumers: "consumers",
804
+ consumersTotalCount: "consumers_total_count",
805
+ createdOn: "created_on",
806
+ modifiedOn: "modified_on",
807
+ producers: "producers",
808
+ producersTotalCount: "producers_total_count",
809
+ queueId: "queue_id",
810
+ queueName: "queue_name",
811
+ settings: "settings",
812
+ }));
813
+ export const patchQueue = API.make(() => ({
814
+ input: PatchQueueRequest,
815
+ output: PatchQueueResponse,
816
+ errors: [],
817
+ }));
818
+ export const DeleteQueueRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
819
+ queueId: Schema.String.pipe(T.HttpPath("queueId")),
820
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
821
+ }).pipe(T.Http({ method: "DELETE", path: "/accounts/{account_id}/queues/{queueId}" }));
822
+ export const DeleteQueueResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
823
+ errors: Schema.optional(Schema.Union([Schema.Array(Schema.Unknown), Schema.Null])),
824
+ messages: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
825
+ success: Schema.optional(Schema.Union([Schema.Literal(true), Schema.Null])),
826
+ });
827
+ export const deleteQueue = API.make(() => ({
828
+ input: DeleteQueueRequest,
829
+ output: DeleteQueueResponse,
830
+ errors: [],
831
+ }));
832
+ export const GetSubscriptionRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
833
+ subscriptionId: Schema.String.pipe(T.HttpPath("subscriptionId")),
834
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
835
+ }).pipe(T.Http({
836
+ method: "GET",
837
+ path: "/accounts/{account_id}/event_subscriptions/subscriptions/{subscriptionId}",
838
+ }));
839
+ export const GetSubscriptionResponse =
840
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
841
+ id: Schema.String,
842
+ createdAt: Schema.String,
843
+ destination: Schema.Struct({
844
+ queueId: Schema.String,
845
+ type: Schema.Literal("queues.queue"),
846
+ }).pipe(Schema.encodeKeys({ queueId: "queue_id", type: "type" })),
847
+ enabled: Schema.Boolean,
848
+ events: Schema.Array(Schema.String),
849
+ modifiedAt: Schema.String,
850
+ name: Schema.String,
851
+ source: Schema.Union([
852
+ Schema.Struct({
853
+ type: Schema.optional(Schema.Union([Schema.Literal("images"), Schema.Null])),
854
+ }),
855
+ Schema.Struct({
856
+ type: Schema.optional(Schema.Union([Schema.Literal("kv"), Schema.Null])),
857
+ }),
858
+ Schema.Struct({
859
+ type: Schema.optional(Schema.Union([Schema.Literal("r2"), Schema.Null])),
860
+ }),
861
+ Schema.Struct({
862
+ type: Schema.optional(Schema.Union([Schema.Literal("superSlurper"), Schema.Null])),
863
+ }),
864
+ Schema.Struct({
865
+ type: Schema.optional(Schema.Union([Schema.Literal("vectorize"), Schema.Null])),
866
+ }),
867
+ Schema.Struct({
868
+ modelName: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
869
+ type: Schema.optional(Schema.Union([Schema.Literal("workersAi.model"), Schema.Null])),
870
+ }).pipe(Schema.encodeKeys({ modelName: "model_name", type: "type" })),
871
+ Schema.Struct({
872
+ type: Schema.optional(Schema.Union([Schema.Literal("workersBuilds.worker"), Schema.Null])),
873
+ workerName: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
874
+ }).pipe(Schema.encodeKeys({ type: "type", workerName: "worker_name" })),
875
+ Schema.Struct({
876
+ type: Schema.optional(Schema.Union([Schema.Literal("workflows.workflow"), Schema.Null])),
877
+ workflowName: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
878
+ }).pipe(Schema.encodeKeys({ type: "type", workflowName: "workflow_name" })),
879
+ ]),
880
+ }).pipe(Schema.encodeKeys({
881
+ id: "id",
882
+ createdAt: "created_at",
883
+ destination: "destination",
884
+ enabled: "enabled",
885
+ events: "events",
886
+ modifiedAt: "modified_at",
887
+ name: "name",
888
+ source: "source",
889
+ }));
890
+ export const getSubscription = API.make(() => ({
891
+ input: GetSubscriptionRequest,
892
+ output: GetSubscriptionResponse,
893
+ errors: [UnrecognizedEventType],
894
+ }));
895
+ export const ListSubscriptionsRequest =
896
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
897
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
898
+ direction: Schema.optional(Schema.Literals(["asc", "desc"])).pipe(T.HttpQuery("direction")),
899
+ order: Schema.optional(Schema.Literals(["created_at", "name", "enabled", "source"])).pipe(T.HttpQuery("order")),
900
+ }).pipe(T.Http({
901
+ method: "GET",
902
+ path: "/accounts/{account_id}/event_subscriptions/subscriptions",
903
+ }));
904
+ export const ListSubscriptionsResponse =
905
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Array(Schema.Struct({
906
+ id: Schema.String,
907
+ createdAt: Schema.String,
908
+ destination: Schema.Struct({
909
+ queueId: Schema.String,
910
+ type: Schema.Literal("queues.queue"),
911
+ }).pipe(Schema.encodeKeys({ queueId: "queue_id", type: "type" })),
912
+ enabled: Schema.Boolean,
913
+ events: Schema.Array(Schema.String),
914
+ modifiedAt: Schema.String,
915
+ name: Schema.String,
916
+ source: Schema.Union([
917
+ Schema.Struct({
918
+ type: Schema.optional(Schema.Union([Schema.Literal("images"), Schema.Null])),
919
+ }),
920
+ Schema.Struct({
921
+ type: Schema.optional(Schema.Union([Schema.Literal("kv"), Schema.Null])),
922
+ }),
923
+ Schema.Struct({
924
+ type: Schema.optional(Schema.Union([Schema.Literal("r2"), Schema.Null])),
925
+ }),
926
+ Schema.Struct({
927
+ type: Schema.optional(Schema.Union([Schema.Literal("superSlurper"), Schema.Null])),
928
+ }),
929
+ Schema.Struct({
930
+ type: Schema.optional(Schema.Union([Schema.Literal("vectorize"), Schema.Null])),
931
+ }),
932
+ Schema.Struct({
933
+ modelName: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
934
+ type: Schema.optional(Schema.Union([Schema.Literal("workersAi.model"), Schema.Null])),
935
+ }).pipe(Schema.encodeKeys({ modelName: "model_name", type: "type" })),
936
+ Schema.Struct({
937
+ type: Schema.optional(Schema.Union([Schema.Literal("workersBuilds.worker"), Schema.Null])),
938
+ workerName: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
939
+ }).pipe(Schema.encodeKeys({ type: "type", workerName: "worker_name" })),
940
+ Schema.Struct({
941
+ type: Schema.optional(Schema.Union([Schema.Literal("workflows.workflow"), Schema.Null])),
942
+ workflowName: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
943
+ }).pipe(Schema.encodeKeys({ type: "type", workflowName: "workflow_name" })),
944
+ ]),
945
+ }).pipe(Schema.encodeKeys({
946
+ id: "id",
947
+ createdAt: "created_at",
948
+ destination: "destination",
949
+ enabled: "enabled",
950
+ events: "events",
951
+ modifiedAt: "modified_at",
952
+ name: "name",
953
+ source: "source",
954
+ })));
955
+ export const listSubscriptions = API.make(() => ({
956
+ input: ListSubscriptionsRequest,
957
+ output: ListSubscriptionsResponse,
958
+ errors: [],
959
+ }));
960
+ export const CreateSubscriptionRequest =
961
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
962
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
963
+ destination: Schema.optional(Schema.Struct({
964
+ queueId: Schema.String,
965
+ type: Schema.Literal("queues.queue"),
966
+ }).pipe(Schema.encodeKeys({ queueId: "queue_id", type: "type" }))),
967
+ enabled: Schema.optional(Schema.Boolean),
968
+ events: Schema.optional(Schema.Array(Schema.String)),
969
+ name: Schema.optional(Schema.String),
970
+ source: Schema.optional(Schema.Union([
971
+ Schema.Struct({
972
+ type: Schema.optional(Schema.Literal("images")),
973
+ }),
974
+ Schema.Struct({
975
+ type: Schema.optional(Schema.Literal("kv")),
976
+ }),
977
+ Schema.Struct({
978
+ type: Schema.optional(Schema.Literal("r2")),
979
+ }),
980
+ Schema.Struct({
981
+ type: Schema.optional(Schema.Literal("superSlurper")),
982
+ }),
983
+ Schema.Struct({
984
+ type: Schema.optional(Schema.Literal("vectorize")),
985
+ }),
986
+ Schema.Struct({
987
+ modelName: Schema.optional(Schema.String),
988
+ type: Schema.optional(Schema.Literal("workersAi.model")),
989
+ }).pipe(Schema.encodeKeys({ modelName: "model_name", type: "type" })),
990
+ Schema.Struct({
991
+ type: Schema.optional(Schema.Literal("workersBuilds.worker")),
992
+ workerName: Schema.optional(Schema.String),
993
+ }).pipe(Schema.encodeKeys({ type: "type", workerName: "worker_name" })),
994
+ Schema.Struct({
995
+ type: Schema.optional(Schema.Literal("workflows.workflow")),
996
+ workflowName: Schema.optional(Schema.String),
997
+ }).pipe(Schema.encodeKeys({ type: "type", workflowName: "workflow_name" })),
998
+ ])),
999
+ }).pipe(T.Http({
1000
+ method: "POST",
1001
+ path: "/accounts/{account_id}/event_subscriptions/subscriptions",
1002
+ }));
1003
+ export const CreateSubscriptionResponse =
1004
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1005
+ id: Schema.String,
1006
+ createdAt: Schema.String,
1007
+ destination: Schema.Struct({
1008
+ queueId: Schema.String,
1009
+ type: Schema.Literal("queues.queue"),
1010
+ }).pipe(Schema.encodeKeys({ queueId: "queue_id", type: "type" })),
1011
+ enabled: Schema.Boolean,
1012
+ events: Schema.Array(Schema.String),
1013
+ modifiedAt: Schema.String,
1014
+ name: Schema.String,
1015
+ source: Schema.Union([
1016
+ Schema.Struct({
1017
+ type: Schema.optional(Schema.Union([Schema.Literal("images"), Schema.Null])),
1018
+ }),
1019
+ Schema.Struct({
1020
+ type: Schema.optional(Schema.Union([Schema.Literal("kv"), Schema.Null])),
1021
+ }),
1022
+ Schema.Struct({
1023
+ type: Schema.optional(Schema.Union([Schema.Literal("r2"), Schema.Null])),
1024
+ }),
1025
+ Schema.Struct({
1026
+ type: Schema.optional(Schema.Union([Schema.Literal("superSlurper"), Schema.Null])),
1027
+ }),
1028
+ Schema.Struct({
1029
+ type: Schema.optional(Schema.Union([Schema.Literal("vectorize"), Schema.Null])),
1030
+ }),
1031
+ Schema.Struct({
1032
+ modelName: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1033
+ type: Schema.optional(Schema.Union([Schema.Literal("workersAi.model"), Schema.Null])),
1034
+ }).pipe(Schema.encodeKeys({ modelName: "model_name", type: "type" })),
1035
+ Schema.Struct({
1036
+ type: Schema.optional(Schema.Union([Schema.Literal("workersBuilds.worker"), Schema.Null])),
1037
+ workerName: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1038
+ }).pipe(Schema.encodeKeys({ type: "type", workerName: "worker_name" })),
1039
+ Schema.Struct({
1040
+ type: Schema.optional(Schema.Union([Schema.Literal("workflows.workflow"), Schema.Null])),
1041
+ workflowName: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1042
+ }).pipe(Schema.encodeKeys({ type: "type", workflowName: "workflow_name" })),
1043
+ ]),
1044
+ }).pipe(Schema.encodeKeys({
1045
+ id: "id",
1046
+ createdAt: "created_at",
1047
+ destination: "destination",
1048
+ enabled: "enabled",
1049
+ events: "events",
1050
+ modifiedAt: "modified_at",
1051
+ name: "name",
1052
+ source: "source",
1053
+ }));
1054
+ export const createSubscription = API.make(() => ({
1055
+ input: CreateSubscriptionRequest,
1056
+ output: CreateSubscriptionResponse,
1057
+ errors: [UnrecognizedEventType],
1058
+ }));
1059
+ export const PatchSubscriptionRequest =
1060
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1061
+ subscriptionId: Schema.String.pipe(T.HttpPath("subscriptionId")),
1062
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
1063
+ destination: Schema.optional(Schema.Struct({
1064
+ queueId: Schema.String,
1065
+ type: Schema.Literal("queues.queue"),
1066
+ }).pipe(Schema.encodeKeys({ queueId: "queue_id", type: "type" }))),
1067
+ enabled: Schema.optional(Schema.Boolean),
1068
+ events: Schema.optional(Schema.Array(Schema.String)),
1069
+ name: Schema.optional(Schema.String),
1070
+ }).pipe(T.Http({
1071
+ method: "PATCH",
1072
+ path: "/accounts/{account_id}/event_subscriptions/subscriptions/{subscriptionId}",
1073
+ }));
1074
+ export const PatchSubscriptionResponse =
1075
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1076
+ id: Schema.String,
1077
+ createdAt: Schema.String,
1078
+ destination: Schema.Struct({
1079
+ queueId: Schema.String,
1080
+ type: Schema.Literal("queues.queue"),
1081
+ }).pipe(Schema.encodeKeys({ queueId: "queue_id", type: "type" })),
1082
+ enabled: Schema.Boolean,
1083
+ events: Schema.Array(Schema.String),
1084
+ modifiedAt: Schema.String,
1085
+ name: Schema.String,
1086
+ source: Schema.Union([
1087
+ Schema.Struct({
1088
+ type: Schema.optional(Schema.Union([Schema.Literal("images"), Schema.Null])),
1089
+ }),
1090
+ Schema.Struct({
1091
+ type: Schema.optional(Schema.Union([Schema.Literal("kv"), Schema.Null])),
1092
+ }),
1093
+ Schema.Struct({
1094
+ type: Schema.optional(Schema.Union([Schema.Literal("r2"), Schema.Null])),
1095
+ }),
1096
+ Schema.Struct({
1097
+ type: Schema.optional(Schema.Union([Schema.Literal("superSlurper"), Schema.Null])),
1098
+ }),
1099
+ Schema.Struct({
1100
+ type: Schema.optional(Schema.Union([Schema.Literal("vectorize"), Schema.Null])),
1101
+ }),
1102
+ Schema.Struct({
1103
+ modelName: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1104
+ type: Schema.optional(Schema.Union([Schema.Literal("workersAi.model"), Schema.Null])),
1105
+ }).pipe(Schema.encodeKeys({ modelName: "model_name", type: "type" })),
1106
+ Schema.Struct({
1107
+ type: Schema.optional(Schema.Union([Schema.Literal("workersBuilds.worker"), Schema.Null])),
1108
+ workerName: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1109
+ }).pipe(Schema.encodeKeys({ type: "type", workerName: "worker_name" })),
1110
+ Schema.Struct({
1111
+ type: Schema.optional(Schema.Union([Schema.Literal("workflows.workflow"), Schema.Null])),
1112
+ workflowName: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1113
+ }).pipe(Schema.encodeKeys({ type: "type", workflowName: "workflow_name" })),
1114
+ ]),
1115
+ }).pipe(Schema.encodeKeys({
1116
+ id: "id",
1117
+ createdAt: "created_at",
1118
+ destination: "destination",
1119
+ enabled: "enabled",
1120
+ events: "events",
1121
+ modifiedAt: "modified_at",
1122
+ name: "name",
1123
+ source: "source",
1124
+ }));
1125
+ export const patchSubscription = API.make(() => ({
1126
+ input: PatchSubscriptionRequest,
1127
+ output: PatchSubscriptionResponse,
1128
+ errors: [UnrecognizedEventType],
1129
+ }));
1130
+ export const DeleteSubscriptionRequest =
1131
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1132
+ subscriptionId: Schema.String.pipe(T.HttpPath("subscriptionId")),
1133
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
1134
+ }).pipe(T.Http({
1135
+ method: "DELETE",
1136
+ path: "/accounts/{account_id}/event_subscriptions/subscriptions/{subscriptionId}",
1137
+ }));
1138
+ export const DeleteSubscriptionResponse =
1139
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1140
+ id: Schema.String,
1141
+ createdAt: Schema.String,
1142
+ destination: Schema.Struct({
1143
+ queueId: Schema.String,
1144
+ type: Schema.Literal("queues.queue"),
1145
+ }).pipe(Schema.encodeKeys({ queueId: "queue_id", type: "type" })),
1146
+ enabled: Schema.Boolean,
1147
+ events: Schema.Array(Schema.String),
1148
+ modifiedAt: Schema.String,
1149
+ name: Schema.String,
1150
+ source: Schema.Union([
1151
+ Schema.Struct({
1152
+ type: Schema.optional(Schema.Union([Schema.Literal("images"), Schema.Null])),
1153
+ }),
1154
+ Schema.Struct({
1155
+ type: Schema.optional(Schema.Union([Schema.Literal("kv"), Schema.Null])),
1156
+ }),
1157
+ Schema.Struct({
1158
+ type: Schema.optional(Schema.Union([Schema.Literal("r2"), Schema.Null])),
1159
+ }),
1160
+ Schema.Struct({
1161
+ type: Schema.optional(Schema.Union([Schema.Literal("superSlurper"), Schema.Null])),
1162
+ }),
1163
+ Schema.Struct({
1164
+ type: Schema.optional(Schema.Union([Schema.Literal("vectorize"), Schema.Null])),
1165
+ }),
1166
+ Schema.Struct({
1167
+ modelName: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1168
+ type: Schema.optional(Schema.Union([Schema.Literal("workersAi.model"), Schema.Null])),
1169
+ }).pipe(Schema.encodeKeys({ modelName: "model_name", type: "type" })),
1170
+ Schema.Struct({
1171
+ type: Schema.optional(Schema.Union([Schema.Literal("workersBuilds.worker"), Schema.Null])),
1172
+ workerName: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1173
+ }).pipe(Schema.encodeKeys({ type: "type", workerName: "worker_name" })),
1174
+ Schema.Struct({
1175
+ type: Schema.optional(Schema.Union([Schema.Literal("workflows.workflow"), Schema.Null])),
1176
+ workflowName: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1177
+ }).pipe(Schema.encodeKeys({ type: "type", workflowName: "workflow_name" })),
1178
+ ]),
1179
+ }).pipe(Schema.encodeKeys({
1180
+ id: "id",
1181
+ createdAt: "created_at",
1182
+ destination: "destination",
1183
+ enabled: "enabled",
1184
+ events: "events",
1185
+ modifiedAt: "modified_at",
1186
+ name: "name",
1187
+ source: "source",
1188
+ }));
1189
+ export const deleteSubscription = API.make(() => ({
1190
+ input: DeleteSubscriptionRequest,
1191
+ output: DeleteSubscriptionResponse,
1192
+ errors: [UnrecognizedEventType],
1193
+ }));
1194
+ //# sourceMappingURL=queues.js.map