cf 1.0.0-beta.15 → 1.0.0-beta.17

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 (250) hide show
  1. package/dist/_meta/commands.json +3797 -3220
  2. package/dist/_meta/hand-written-commands.json +2 -2
  3. package/dist/_meta/schemas.json +4768 -4250
  4. package/dist/{abuse-reports-CnQBtN1G.mjs → abuse-reports-C4LxDvUM.mjs} +1 -1
  5. package/dist/{access-BzmXSwzj.mjs → access-DnWW2AAT.mjs} +1 -1
  6. package/dist/{account-tags-2qPWbW17.mjs → account-tags-zvHRQZxb.mjs} +1 -1
  7. package/dist/{accounts-B0Byg-AV.mjs → accounts-8UcHNm3S.mjs} +39 -39
  8. package/dist/{acm-DgAu0cnk.mjs → acm-qRM3iy4Z.mjs} +3 -3
  9. package/dist/{addressing-J1oa0ML2.mjs → addressing-CAb8z2Dq.mjs} +14 -14
  10. package/dist/{agent-memory-4KGou-tm.mjs → agent-memory-oIUP4ZV5.mjs} +1 -1
  11. package/dist/{ai-WY7wVQfA.mjs → ai-DnhytGdc.mjs} +1 -1
  12. package/dist/{ai-audit-D38HaEoZ.mjs → ai-audit-B7_5EOcN.mjs} +1 -1
  13. package/dist/{ai-gateway-C0gIipT8.mjs → ai-gateway-b3FFu6UV.mjs} +6 -6
  14. package/dist/{ai-search-ClwnPU-9.mjs → ai-search-CtfW5fzl.mjs} +25 -25
  15. package/dist/{ai-security-BIsvFPYV.mjs → ai-security-KUs94UW-.mjs} +1 -1
  16. package/dist/{alerting-MHhv28oO.mjs → alerting-CCmyEPzN.mjs} +1 -1
  17. package/dist/{analytics-BfBz7bqB.mjs → analytics-BAvBj6qx.mjs} +1 -1
  18. package/dist/{analytics_engine-CXVdBF1n.mjs → analytics-engine-DAJp89gM.mjs} +2 -2
  19. package/dist/{api-security-DUCfcdC1.mjs → api-security-BItVQymb.mjs} +2 -2
  20. package/dist/{argo-CUlzI4v3.mjs → argo-DsJCvfml.mjs} +1 -1
  21. package/dist/{artifacts-BLfWGzBg.mjs → artifacts-DzHXeah6.mjs} +1 -1
  22. package/dist/audit-logs-D9XxsVZm.mjs +4 -0
  23. package/dist/{auth-CGRemu5W.mjs → auth-C530fHKQ.mjs} +1 -1
  24. package/dist/auth-Ccm5viK_.mjs +2 -0
  25. package/dist/{auth-C6u9qIGO.mjs → auth-MNz2D-PD.mjs} +1 -1
  26. package/dist/{auth-token-DkkYg4DP.mjs → auth-token-Cw4c0y89.mjs} +1 -1
  27. package/dist/{autoconfig-B0ESZ8DJ.mjs → autoconfig-9po_tqsS.mjs} +1 -1
  28. package/dist/{basin-catalog-CrKRYJ0b.mjs → basin-catalog-DcMiZV9J.mjs} +1 -1
  29. package/dist/{billing-NxehgXrR.mjs → billing-COgAWTYh.mjs} +7 -7
  30. package/dist/{bot-management-C993iQKL.mjs → bot-management-Dx3lh9Fi.mjs} +1 -1
  31. package/dist/{botnet-feed-CZ4vYk5y.mjs → botnet-feed-C8496Nhl.mjs} +1 -1
  32. package/dist/{brand-protection-ADVgIi0l.mjs → brand-protection-B0p8Sv6s.mjs} +1 -1
  33. package/dist/browser-run-ChXohmNG.mjs +42 -0
  34. package/dist/build-BRJnyeu8.mjs +2 -0
  35. package/dist/{build-sBpqm9ga.mjs → build-i8l2qGVZ.mjs} +1 -1
  36. package/dist/{builds-DqtiTH7p.mjs → builds-DmEFTQTa.mjs} +1 -1
  37. package/dist/{cache-hX5QxmI0.mjs → cache-BUh85NRr.mjs} +1 -1
  38. package/dist/{certificate-authorities-BOcybjc1.mjs → certificate-authorities-BTLdA7EQ.mjs} +1 -1
  39. package/dist/chunk-JP6R7L72-C0kFUelb.mjs +2 -0
  40. package/dist/cli-DJhpXf38.mjs +6 -0
  41. package/dist/{client-certificates-Bez_ArKE.mjs → client-certificates-B3UxH_Au.mjs} +1 -1
  42. package/dist/{client-side-security-CSmA50Bv.mjs → client-side-security-km3-4L_4.mjs} +1 -1
  43. package/dist/{cloud-connector-0Wivqi7S.mjs → cloud-connector-BoKFprDD.mjs} +1 -1
  44. package/dist/{cloudforce-one-J-rU6k1U.mjs → cloudforce-one-DN5N3C3w.mjs} +21 -21
  45. package/dist/{command-BCJN-ZM2.mjs → command-B694oLDo.mjs} +1 -1
  46. package/dist/{command-BG-kLOnS.mjs → command-Bmee6uwe.mjs} +1 -1
  47. package/dist/{command-BKDbbA-L.mjs → command-CAs3SxlI.mjs} +1 -1
  48. package/dist/{command-DIs-Nqtl.mjs → command-CCq-Z2Ua.mjs} +1 -1
  49. package/dist/{command-Bdy69UFU.mjs → command-CbQFbfps.mjs} +1 -1
  50. package/dist/{command-0BOb1pgV.mjs → command-CiApsRql.mjs} +1 -1
  51. package/dist/{command-CKW6UhTh.mjs → command-D1JR8Fb7.mjs} +1 -1
  52. package/dist/{command-DPn5ANHs.mjs → command-DerHAjQL.mjs} +1 -1
  53. package/dist/{command-BIsI-mMX.mjs → command-RC9WM5jq.mjs} +1 -1
  54. package/dist/{command-BWQIKu6I.mjs → command-rx0Kb5pn.mjs} +1 -1
  55. package/dist/{completions-CpNGTlUX.mjs → completions-11latun5.mjs} +1 -1
  56. package/dist/{connector-interrupts-CH-DaLuo.mjs → connector-interrupts-wvQcZsO1.mjs} +1 -1
  57. package/dist/{connector-telemetry-events-X3Fod9nl.mjs → connector-telemetry-events-C0GGCIQk.mjs} +1 -1
  58. package/dist/{connector-telemetry-snapshots-D-WR4npQ.mjs → connector-telemetry-snapshots-ZXzsFgea.mjs} +1 -1
  59. package/dist/{connectors-CORKD31m.mjs → connectors-DXIUG4Zi.mjs} +1 -1
  60. package/dist/{containers-BboUbx3k.mjs → containers-DCH6MFjY.mjs} +5 -5
  61. package/dist/{containers-Di3_Vopq.mjs → containers-WMWKhLkp.mjs} +1 -1
  62. package/dist/{content-scan-DXGREAXa.mjs → content-scan-CRDmR7rD.mjs} +1 -1
  63. package/dist/{context-A6T-NKPI.mjs → context-q-6bMSL-.mjs} +1 -1
  64. package/dist/{cps-1BoOLtTq.mjs → cps-Due0P5IW.mjs} +1 -1
  65. package/dist/csam-scanner-DvLrPw45.mjs +10 -0
  66. package/dist/{ct-alerting-DlH4ILQo.mjs → ct-alerting-BtEGkRJi.mjs} +1 -1
  67. package/dist/{custom-certificates-zJqJZ2Th.mjs → custom-certificates-CMLXTTEc.mjs} +4 -4
  68. package/dist/{custom-csrs-DoLIGqYL.mjs → custom-csrs-BV017SqE.mjs} +3 -3
  69. package/dist/{custom-hostnames-YfV-aoAK.mjs → custom-hostnames-DI_dFaof.mjs} +6 -6
  70. package/dist/{custom-nameservers-BV43gmgt.mjs → custom-nameservers-BLoE8VGG.mjs} +1 -1
  71. package/dist/{custom-pages-CoOU1Cdx.mjs → custom-pages-ubava9Qm.mjs} +6 -6
  72. package/dist/{d1-DujBmzLa.mjs → d1-Dbs8HItA.mjs} +1 -1
  73. package/dist/{dcv-delegation-CPLsVYOl.mjs → dcv-delegation-sGGt6UU_.mjs} +1 -1
  74. package/dist/{deploy-wNujfGUJ.mjs → deploy-5utIiOMN.mjs} +1 -1
  75. package/dist/{deploy-context-tEhwEXnA.mjs → deploy-context-C0iVbWRG.mjs} +1 -1
  76. package/dist/{deploy-input-BqJ7GVZ-.mjs → deploy-input-KK6yyBN_.mjs} +1 -1
  77. package/dist/{dev-EtnMYA7K.mjs → dev-CnoMHxf4.mjs} +1 -1
  78. package/dist/{diagnostics-B3TYPVRi.mjs → diagnostics-C9B07eJY.mjs} +1 -1
  79. package/dist/{dls-CWm1HRF0.mjs → dls-lbM3i4x-.mjs} +7 -7
  80. package/dist/{dns-CjAFU7Z9.mjs → dns-QTMPGYMa.mjs} +5 -5
  81. package/dist/{dns-firewall-BooBP9ap.mjs → dns-firewall-Bfv0S44I.mjs} +1 -1
  82. package/dist/{docs-C5XB7HdG.mjs → docs-bV3hPwQL.mjs} +1 -1
  83. package/dist/{durable-objects-CSrMQDCE.mjs → durable-objects-0JvGTV27.mjs} +1 -1
  84. package/dist/{email-auth-Bp1Mui-n.mjs → email-auth-PzRqG0ex.mjs} +1 -1
  85. package/dist/{email-routing-CVF6SwQt.mjs → email-routing-BgHL0Rbz.mjs} +4 -4
  86. package/dist/{email-security-mYZtazae.mjs → email-security-CSTKIecn.mjs} +1 -1
  87. package/dist/{email-sending-BqaKU_Xu.mjs → email-sending-BSwuAir8.mjs} +14 -14
  88. package/dist/field-extractors-B_lFnwaL.mjs +9 -0
  89. package/dist/{firewall-DgTDsYOt.mjs → firewall-BsZxVitA.mjs} +11 -11
  90. package/dist/{flagship-Db3PxxyZ.mjs → flagship-qBohOZaM.mjs} +1 -1
  91. package/dist/{fraud-BEOQczy8.mjs → fraud-vGNdrSm-.mjs} +1 -1
  92. package/dist/{google-tag-gateway-DjLQ9wo0.mjs → google-tag-gateway-BHdOg4VW.mjs} +1 -1
  93. package/dist/{healthchecks-C3ScnKss.mjs → healthchecks-DAYYLZ6u.mjs} +7 -7
  94. package/dist/{hostnames-DU0k-xO9.mjs → hostnames-CLlaMqHu.mjs} +1 -1
  95. package/dist/{hyperdrive-IpCCLCRd.mjs → hyperdrive-CXTqaIqk.mjs} +3 -3
  96. package/dist/{iam-96CYM8Vw.mjs → iam-Dl_n_Lqq.mjs} +1 -1
  97. package/dist/{images-AB9EgZgT.mjs → images-vMtXk2Rf.mjs} +1 -1
  98. package/dist/index.mjs +1 -1
  99. package/dist/{init-D2nPoW4f.mjs → init-_7djeBVw.mjs} +1 -1
  100. package/dist/{intel-BKb4RLvS.mjs → intel-Bq4GGXv-.mjs} +1 -1
  101. package/dist/{ips-z9APCV_b.mjs → ips-BcvZS46g.mjs} +1 -1
  102. package/dist/{k2-Bv-HiJ29.mjs → k2-DL4hrVTj.mjs} +1 -1
  103. package/dist/{keyless-certificates-ChgSGHq4.mjs → keyless-certificates-0pzjkZb6.mjs} +4 -4
  104. package/dist/{keys-BhngDsDa.mjs → keys-BSV5IXdU.mjs} +1 -1
  105. package/dist/{kv-CB5MQVGP.mjs → kv-BLo9wMgb.mjs} +3 -3
  106. package/dist/{lazy-command-CaZ1kdlW.mjs → lazy-command-CRcT6Dx-.mjs} +1 -1
  107. package/dist/{leaked-credential-checks-Bsi2WpSU.mjs → leaked-credential-checks-Dx4RXMyN.mjs} +3 -3
  108. package/dist/{load-balancers-0gXZNCeI.mjs → load-balancers-CCCWoQXv.mjs} +40 -40
  109. package/dist/{login-CiQGR8ha.mjs → login-DT6Q1UJw.mjs} +1 -1
  110. package/dist/{login-Ik98G4K6.mjs → login-Du_W6b9o.mjs} +1 -1
  111. package/dist/{logo-matches-DmoF5Otu.mjs → logo-matches-C-1J0Oc3.mjs} +1 -1
  112. package/dist/{logos-BL6ohIMH.mjs → logos-BuhvSu_H.mjs} +1 -1
  113. package/dist/{logpush-UVopW68t.mjs → logpush-DgZtF9vG.mjs} +6 -6
  114. package/dist/{logs-BVfxiEiM.mjs → logs-CaKOk-1v.mjs} +1 -1
  115. package/dist/{magic-cloud-networking-B5S3aM6f.mjs → magic-cloud-networking-CKxXYT8r.mjs} +1 -1
  116. package/dist/{magic-network-monitoring-CDSJPP47.mjs → magic-network-monitoring-BykFGQCz.mjs} +1 -1
  117. package/dist/{magic-transit-TcDTKM43.mjs → magic-transit-DYULsrUP.mjs} +1 -1
  118. package/dist/{managed-defense-C88HL0pg.mjs → managed-defense-DIb_uN25.mjs} +5 -5
  119. package/dist/{managed-transforms-Ja41Tahl.mjs → managed-transforms-an3wQ0DW.mjs} +1 -1
  120. package/dist/{matches-BL_Y-9Yq.mjs → matches-DkLSWb5X.mjs} +1 -1
  121. package/dist/{mcp-BWp5Q09R.mjs → mcp-BcV1XqE8.mjs} +1 -1
  122. package/dist/{mesh-lFPLRWhV.mjs → mesh-CSSlZ-0F.mjs} +1 -1
  123. package/dist/{migrate-6e5mJ79R.mjs → migrate-DerOyuv2.mjs} +1 -1
  124. package/dist/{monetization-BIc4Bwo2.mjs → monetization-B-nJ0SyI.mjs} +1 -1
  125. package/dist/{mtls-certificates-CVBw-Jli.mjs → mtls-certificates-ukwDz6Lc.mjs} +1 -1
  126. package/dist/{network-Wig0qbaC.mjs → network-ZzxQ_Dcz.mjs} +1 -1
  127. package/dist/{network-interconnects-C16z1HuQ.mjs → network-interconnects-CI9NXQpe.mjs} +1 -1
  128. package/dist/{o11y-Bhy4qDRm.mjs → o11y-LG6Y9LUZ.mjs} +2 -2
  129. package/dist/{oauth-oWaW7ICv.mjs → oauth-Bx693Af5.mjs} +1 -1
  130. package/dist/{oauth-CfEedDZi.mjs → oauth-CP82E1_0.mjs} +1 -1
  131. package/dist/{oauth-clients-eXjmK5yf.mjs → oauth-clients-BA30rTEl.mjs} +1 -1
  132. package/dist/{oauth-scopes-DZWn50EA.mjs → oauth-scopes-hseWES1v.mjs} +1 -1
  133. package/dist/open-PCXX3ZDZ-5J5IU2MX-CKla-jDt.mjs +4 -0
  134. package/dist/{organization-QdAQTrKa.mjs → organization-DMr_z6n4.mjs} +3 -3
  135. package/dist/{organizations-CgAQYdK5.mjs → organizations-CcgZPmFl.mjs} +1 -1
  136. package/dist/{origin-ca-certificates-BklXqp8X.mjs → origin-ca-certificates-BZxUbB5N.mjs} +1 -1
  137. package/dist/{origin-post-quantum-encryption-Dg16ueT4.mjs → origin-post-quantum-encryption-BhdlaolV.mjs} +1 -1
  138. package/dist/{origin-tls-client-auth-d8bDU5zU.mjs → origin-tls-client-auth-DzbZvtmi.mjs} +6 -6
  139. package/dist/{page-rules-CgMkC6YR.mjs → page-rules-DFfqfllI.mjs} +5 -5
  140. package/dist/{pages-CkBtOOf8.mjs → pages-BkcL5rC4.mjs} +9 -9
  141. package/dist/{pay-per-crawl-CnGXOWyz.mjs → pay-per-crawl-Dulm7Xy5.mjs} +1 -1
  142. package/dist/{pay-per-use-HbfxpATr.mjs → pay-per-use-C_HxhpM4.mjs} +1 -1
  143. package/dist/{pipelines-CnO9CCs0.mjs → pipelines-DUMIVwof.mjs} +1 -1
  144. package/dist/{precursor-Bc55XJdQ.mjs → precursor-DsGbA_YJ.mjs} +1 -1
  145. package/dist/{previews-C7vZrajd.mjs → previews-Cma3-M7K.mjs} +1 -1
  146. package/dist/{progress-D5po7ScB.mjs → progress-DaQ4MzBI.mjs} +1 -1
  147. package/dist/{prompt-BAJpE3jV.mjs → prompt-KWYZvJWM.mjs} +1 -1
  148. package/dist/{queries-BJAH4B74.mjs → queries-DoyhspQf.mjs} +1 -1
  149. package/dist/{queues-D4G8vvwi.mjs → queues-BPxTU2rU.mjs} +4 -4
  150. package/dist/{r2-CJ8rD6Jb.mjs → r2-CQt4S7o7.mjs} +4 -4
  151. package/dist/{radar-DgaxOdcd.mjs → radar-CALpR1vq.mjs} +1 -1
  152. package/dist/{raw-fetch-yY-wX5Xx.mjs → raw-fetch-Cy09TjHc.mjs} +1 -1
  153. package/dist/{realtime-DU09m7L7.mjs → realtime-BiHKBoI4.mjs} +6 -6
  154. package/dist/{registrar-Cj7OfvGs.mjs → registrar-gERQ3b85.mjs} +1 -1
  155. package/dist/{registrar-sandbox-CA0Mua-j.mjs → registrar-sandbox-BttFwYqE.mjs} +1 -1
  156. package/dist/reporting-8aRJD5HX.mjs +14 -0
  157. package/dist/{request-headers-D_eQn93b.mjs → request-headers-CqfJOkpO.mjs} +1 -1
  158. package/dist/{request-tracers-VBD4R3s3.mjs → request-tracers-DcnwQg3K.mjs} +1 -1
  159. package/dist/{resource-sharing-BtUF3psS.mjs → resource-sharing-uVVpMW0w.mjs} +1 -1
  160. package/dist/{resource-tagging--90INP8_.mjs → resource-tagging-SlsUtLsq.mjs} +1 -1
  161. package/dist/{rules-CcwPngVo.mjs → rules-CFOuN3t2.mjs} +10 -10
  162. package/dist/{rulesets-CfdruY82.mjs → rulesets-DkhV2Hny.mjs} +15 -15
  163. package/dist/{rum-RLkdfSL7.mjs → rum-BnMW0Tlb.mjs} +1 -1
  164. package/dist/run-CHNyLZLG.mjs +2 -0
  165. package/dist/{run-DASYqJsY.mjs → run-Clc3P2u7.mjs} +1 -1
  166. package/dist/{schema-flags-CShtn7ya.mjs → schema-flags-b096XMpt.mjs} +1 -1
  167. package/dist/{scim-BZYsTPIL.mjs → scim-tvZm6A-r.mjs} +1 -1
  168. package/dist/{secrets-store-C_-FkSH_.mjs → secrets-store-DuNxSh1_.mjs} +1 -1
  169. package/dist/{security-insights-BVBEaZmD.mjs → security-insights-C17c9ZYZ.mjs} +1 -1
  170. package/dist/{security-txt--IoHrHee.mjs → security-txt-D4pRk7-w.mjs} +1 -1
  171. package/dist/{shared-zNQNv1im.mjs → shared-zePemxHi.mjs} +1 -1
  172. package/dist/{smart-shield-CByC4_60.mjs → smart-shield-2egm1Vaw.mjs} +5 -5
  173. package/dist/{snippets-DB-jiZAV.mjs → snippets-BIcZ6vSW.mjs} +1 -1
  174. package/dist/{spawn-DQttFH05.mjs → spawn-BW2bJmKO.mjs} +1 -1
  175. package/dist/{spectrum-Bs2g1BmK.mjs → spectrum-DjDX0geK.mjs} +9 -9
  176. package/dist/{speed-Bq4evEnJ.mjs → speed-DiPoFJMm.mjs} +1 -1
  177. package/dist/{sql-XGci7hZC.mjs → sql-DLjCt_R3.mjs} +1 -1
  178. package/dist/{src-GiuwAT55.mjs → src-CutrsNl4.mjs} +7 -7
  179. package/dist/{ssl-KJTLW1NR.mjs → ssl-vNzK0c9S.mjs} +5 -5
  180. package/dist/{stream-BotgYspF.mjs → stream-uhn_Zsni.mjs} +8 -8
  181. package/dist/{submit-C5VytaHP.mjs → submit-C3suIDBX.mjs} +1 -1
  182. package/dist/{tags-3Hq-B9qp.mjs → tags-Dy2jG-Dt.mjs} +1 -1
  183. package/dist/telemetry-Bdv5LZZs.mjs +2 -0
  184. package/dist/{telemetry-3FJOXl_C.mjs → telemetry-DYjsavEr.mjs} +1 -1
  185. package/dist/{tenant-BgX5onPc.mjs → tenant-DK88yQM4.mjs} +1 -1
  186. package/dist/{tenant-custom-nameservers-BVG8v1Xo.mjs → tenant-custom-nameservers-BZ1JD1Yf.mjs} +2 -2
  187. package/dist/{tunnels-CThOI3qH.mjs → tunnels-DjbomhCa.mjs} +3 -3
  188. package/dist/{turnstile-BgZaUx-g.mjs → turnstile-DXrbEy2A.mjs} +1 -1
  189. package/dist/{update-check-jb89ih_g.mjs → update-check-BhhtSXVZ.mjs} +1 -1
  190. package/dist/update-check-Dld7rbLd.mjs +2 -0
  191. package/dist/update-check-worker.mjs +1 -1
  192. package/dist/{url-info-DQERN0Xq.mjs → url-info-a0mY4UsC.mjs} +1 -1
  193. package/dist/{url-normalization-Cb1hofqv.mjs → url-normalization-DiwpDIhc.mjs} +1 -1
  194. package/dist/{url-scanner-gHgx1bW7.mjs → url-scanner-D0egjBe5.mjs} +1 -1
  195. package/dist/{user-CdKzIuSi.mjs → user-DDH9lxf5.mjs} +58 -58
  196. package/dist/{values-EwA8Sx0w.mjs → values-Bfr5-bL6.mjs} +1 -1
  197. package/dist/{vectorize-DejgIJIv.mjs → vectorize-DaT3amFV.mjs} +1 -1
  198. package/dist/version-CAuKDZAG.mjs +2 -0
  199. package/dist/{waiting-rooms-BNR1HvAP.mjs → waiting-rooms-BGMpu9gS.mjs} +18 -18
  200. package/dist/{web-assets-iglnzkTV.mjs → web-assets-NqNglLSI.mjs} +1 -1
  201. package/dist/{web3-JBUU6IVt.mjs → web3-UnCUuIfB.mjs} +11 -11
  202. package/dist/{workers-CDp4kLTJ.mjs → workers-DfA9ugmb.mjs} +2 -2
  203. package/dist/{workers-builds-CSb9Dglt.mjs → workers-builds-Cy6fdtm5.mjs} +1 -1
  204. package/dist/{workers-for-platforms-D4srNZvt.mjs → workers-for-platforms-JscCHivQ.mjs} +1 -1
  205. package/dist/{workers-vpc-LPC8TadH.mjs → workers-vpc-FDZQBqOu.mjs} +1 -1
  206. package/dist/{workflows-DN_VqWJC.mjs → workflows-Dq-k81hU.mjs} +1 -1
  207. package/dist/wrangler-migration-R9TQ_4Qd.mjs +946 -0
  208. package/dist/{zaraz-DDErl5yc.mjs → zaraz-Dpr1pLDx.mjs} +1 -1
  209. package/dist/{zero-trust-M88XX3uD.mjs → zero-trust-CZ685QhO.mjs} +27 -27
  210. package/dist/{zone-BsGvedmN.mjs → zone-DcZIUTWt.mjs} +1 -1
  211. package/dist/{zones-l_sRKrVl.mjs → zones-BVdvYUCv.mjs} +3 -3
  212. package/package.json +11 -10
  213. package/dist/alerts-BSON-vFh.mjs +0 -2
  214. package/dist/audit-logs-CsfIm2QS.mjs +0 -4
  215. package/dist/auth-8Sm4uLGM.mjs +0 -2
  216. package/dist/autorag-kNrLiqDX.mjs +0 -2
  217. package/dist/brands-bBJgbbOH.mjs +0 -2
  218. package/dist/browser-extension-C1_fcw7h.mjs +0 -2
  219. package/dist/browser-run-CEptKZYl.mjs +0 -42
  220. package/dist/build-Bm6kGyzo.mjs +0 -2
  221. package/dist/clear-BW9vLgI3.mjs +0 -2
  222. package/dist/cli-R8h3OKZI.mjs +0 -6
  223. package/dist/connector-telemetry-events-latest-BQdOvbWh.mjs +0 -2
  224. package/dist/connector-telemetry-snapshots-latest-CtdN_dGu.mjs +0 -2
  225. package/dist/csamScanner-CHfbfeup.mjs +0 -10
  226. package/dist/domain-info-BkcBcyfF.mjs +0 -2
  227. package/dist/fieldExtractors-CAGZVmYg.mjs +0 -9
  228. package/dist/health-CTaCeVyC.mjs +0 -2
  229. package/dist/internal-BYS7hO8c.mjs +0 -2
  230. package/dist/live-BJE_YWE1.mjs +0 -2
  231. package/dist/r2-data-catalog-BRo-Rx2I.mjs +0 -2
  232. package/dist/rate-limit-analytics-BiRyU0Xd.mjs +0 -2
  233. package/dist/rate-limits-Cr2zpncO.mjs +0 -2
  234. package/dist/ready-B3pLxnjc.mjs +0 -2
  235. package/dist/recent-submissions-JLOvuZq-.mjs +0 -2
  236. package/dist/refute-Dp3VodMn.mjs +0 -2
  237. package/dist/reporting-3kDVF5c8.mjs +0 -14
  238. package/dist/run-CUNhH5CQ.mjs +0 -2
  239. package/dist/scan-logo-3Zr6CDJB.mjs +0 -2
  240. package/dist/scan-page-CxeudOzj.mjs +0 -2
  241. package/dist/search-B_P5ZTQj.mjs +0 -2
  242. package/dist/signed-url-D5RwvrQq.mjs +0 -2
  243. package/dist/submission-info-_t78q2OE.mjs +0 -2
  244. package/dist/telemetry-BhKfwxyh.mjs +0 -2
  245. package/dist/total-queries-CPrKEciQ.mjs +0 -2
  246. package/dist/tracked-domains-CTRItgFT.mjs +0 -2
  247. package/dist/update-check-Yy7Ivq2V.mjs +0 -2
  248. package/dist/verify-5KcvRk-q.mjs +0 -2
  249. package/dist/version-B6MnUIqV.mjs +0 -2
  250. package/dist/wrangler-migration-DxTB5yPT.mjs +0 -2
@@ -1,4 +1,4 @@
1
1
  #!/usr/bin/env node
2
- import"./api-eMuS5GI1.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{n as t}from"./auth-C6u9qIGO.mjs";import{i as n}from"./context-A6T-NKPI.mjs";import{t as r}from"./output-Co4xdFf6.mjs";import{t as i}from"./dry-run-C2KjGX10.mjs";import{t as a}from"./progress-D5po7ScB.mjs";import{t as o}from"./run-DASYqJsY.mjs";import"./telemetry-BhKfwxyh.mjs";import{n as s,r as c,t as l}from"./body-parser-DkHKPkJ7.mjs";import{n as u}from"./input-validation-D7z60HJH.mjs";var d={method:`GET`,path:t=>e`/zones/${t.zone_id}/precursor`};function f(e){return e.usage("$0 precursor get\n\nRetrieve a zone's Precursor configuration: the zone-level `default_mode` and the ordered list of `enforcement_rules`.").option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const p={command:`get`,describe:`Get Zone Precursor Config`,builder:f,handler:async e=>o({command:`precursor get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){i({command:`cf precursor get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/precursor`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``)},bodyKind:`none`});return}let o=await t(e),s=await n({zone:e.zone},o,{quiet:e.quiet});e.zoneId=s;let c=await a(`Loading`,async()=>o.send(d,{zone_id:s}));r(c,{successLabel:`Loaded`})})};var m={method:`PUT`,path:t=>e`/zones/${t.zone_id}/precursor`,body:`json`};function h(e){return e.usage("$0 precursor update\n\nUpdates the Precursor configuration for a zone. `default_mode` sets the zone-level enforcement mode. `enforcement_rules` is the ordered list of rules that override enforcement for matching requests. This is a partial update: only the fields present in the request body are changed. - Sending an empty array (`[]`) clears all enforcement rules. - At least one of `default_mode` or `enforcement_rules` must be present; an empty body (`{}`) is rejected with `400`. - Rule `id` is read-only (assigned by Cloudflare) and ignored on input. - Rule `mode` must be `min-friction` or `max-security` (`off` is not a valid rule mode; use `default_mode` to disable enforcement). - Rule `expression` is limited to 4000 characters. The limit applies to each rule individually, not to the combined size of all rules.").option(`default-mode`,{type:`string`,description:`The zone-level Precursor enforcement mode applied to requests that do
2
+ import"./api-eMuS5GI1.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{n as t}from"./auth-MNz2D-PD.mjs";import{i as n}from"./context-q-6bMSL-.mjs";import{t as r}from"./output-Co4xdFf6.mjs";import{t as i}from"./dry-run-C2KjGX10.mjs";import{t as a}from"./progress-DaQ4MzBI.mjs";import{t as o}from"./run-Clc3P2u7.mjs";import"./telemetry-Bdv5LZZs.mjs";import{n as s,r as c,t as l}from"./body-parser-DkHKPkJ7.mjs";import{n as u}from"./input-validation-D7z60HJH.mjs";var d={method:`GET`,path:t=>e`/zones/${t.zone_id}/precursor`};function f(e){return e.usage("$0 precursor get\n\nRetrieve a zone's Precursor configuration: the zone-level `default_mode` and the ordered list of `enforcement_rules`.").option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const p={command:`get`,describe:`Get Zone Precursor Config`,builder:f,handler:async e=>o({command:`precursor get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){i({command:`cf precursor get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/precursor`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``)},bodyKind:`none`});return}let o=await t(e),s=await n({zone:e.zone},o,{quiet:e.quiet});e.zoneId=s;let c=await a(`Loading`,async()=>o.send(d,{zone_id:s}));r(c,{successLabel:`Loaded`})})};var m={method:`PUT`,path:t=>e`/zones/${t.zone_id}/precursor`,body:`json`};function h(e){return e.usage("$0 precursor update\n\nUpdates the Precursor configuration for a zone. `default_mode` sets the zone-level enforcement mode. `enforcement_rules` is the ordered list of rules that override enforcement for matching requests. This is a partial update: only the fields present in the request body are changed. - Sending an empty array (`[]`) clears all enforcement rules. - At least one of `default_mode` or `enforcement_rules` must be present; an empty body (`{}`) is rejected with `400`. - Rule `id` is read-only (assigned by Cloudflare) and ignored on input. - Rule `mode` must be `min-friction` or `max-security` (`off` is not a valid rule mode; use `default_mode` to disable enforcement). - Rule `expression` is limited to 4000 characters. The limit applies to each rule individually, not to the combined size of all rules.").option(`default-mode`,{type:`string`,description:`The zone-level Precursor enforcement mode applied to requests that do
3
3
  not match a more specific enforcement rule.
4
4
  `,choices:[`off`,`min-friction`,`max-security`]}).coerce(`default-mode`,e=>u(e,`default-mode`,`text`)).option(`enforcement-rules`,{type:`string`,description:`The ordered list of enforcement rules for the zone. Provide as a JSON array of objects or @path/to/file.json.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const g={command:`update`,describe:`Update Zone Precursor Config`,builder:h,handler:async e=>o({command:`precursor update`,classification:{safeFlags:[`default-mode`,`dry-run`]}},e,async()=>{if(e.dryRun){i({command:`cf precursor update`,method:`PUT`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/precursor`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``)},bodyKind:`json`,body:e.body===void 0?l({default_mode:e[`default-mode`],enforcement_rules:c(e[`enforcement-rules`],`enforcement-rules`)}):s(e.body)});return}let o=await t(e),u=await n({zone:e.zone},o,{quiet:e.quiet});if(e.zoneId=u,e.body){let t=s(e.body),n=await a(`Updating`,async()=>o.send(m,{body:t,zone_id:u}));r(n,{successLabel:`Updated`});return}let d=l({default_mode:e[`default-mode`],enforcement_rules:c(e[`enforcement-rules`],`enforcement-rules`)}),f=await a(`Updating`,async()=>o.send(m,{body:d,zone_id:u}));r(f,{successLabel:`Updated`})})},_={command:`precursor`,describe:`Precursor settings for a zone`,builder:e=>e.command(p).command(g).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};export{_ as default};
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import{r as e}from"./dotenv-usOKkeW7.mjs";import{J as t,K as n,rt as r}from"./dist-DZRTPMMA.mjs";import{t as i}from"./hand-written-dry-run-B82fRl2N.mjs";import{t as a}from"./local-Dil4fTWX.mjs";import{i as o,n as s}from"./auth-C6u9qIGO.mjs";import{l as c,p as l}from"./interactive-BW9T1D1q.mjs";import{a as u,t as d}from"./context-A6T-NKPI.mjs";import{C as f,_ as p,d as m,f as h,l as g,r as _,t as v,x as y,y as b}from"./deploy-context-tEhwEXnA.mjs";import{t as x}from"./auth-token-DkkYg4DP.mjs";import{t as S}from"./output-Co4xdFf6.mjs";import{t as C}from"./dry-run-C2KjGX10.mjs";import{t as w}from"./progress-D5po7ScB.mjs";import{n as T,t as E}from"./run-DASYqJsY.mjs";import"./telemetry-BhKfwxyh.mjs";import{n as D}from"./prompt-BAJpE3jV.mjs";import{a as O,l as k,n as A,o as j,r as M,t as N}from"./containers-Di3_Vopq.mjs";import{a as P,i as F,n as I,o as L,r as R,s as z}from"./build-sBpqm9ga.mjs";import{t as B}from"./deploy-input-BqJ7GVZ-.mjs";import{readBuildOutput as V}from"@cloudflare/build-output-utils";function H(e){return e.usage(`$0 previews delete <name>
2
+ import{r as e}from"./dotenv-usOKkeW7.mjs";import{J as t,K as n,rt as r}from"./dist-DZRTPMMA.mjs";import{t as i}from"./hand-written-dry-run-B82fRl2N.mjs";import{t as a}from"./local-Dil4fTWX.mjs";import{i as o,n as s}from"./auth-MNz2D-PD.mjs";import{l as c,p as l}from"./interactive-BW9T1D1q.mjs";import{a as u,t as d}from"./context-q-6bMSL-.mjs";import{C as f,_ as p,d as m,f as h,l as g,r as _,t as v,x as y,y as b}from"./deploy-context-C0iVbWRG.mjs";import{t as x}from"./auth-token-Cw4c0y89.mjs";import{t as S}from"./output-Co4xdFf6.mjs";import{t as C}from"./dry-run-C2KjGX10.mjs";import{t as w}from"./progress-DaQ4MzBI.mjs";import{n as T,t as E}from"./run-Clc3P2u7.mjs";import"./telemetry-Bdv5LZZs.mjs";import{n as D}from"./prompt-KWYZvJWM.mjs";import{a as O,l as k,n as A,o as j,r as M,t as N}from"./containers-WMWKhLkp.mjs";import{a as P,i as F,n as I,o as L,r as R,s as z}from"./build-i8l2qGVZ.mjs";import{t as B}from"./deploy-input-KK6yyBN_.mjs";import{readBuildOutput as V}from"@cloudflare/build-output-utils";function H(e){return e.usage(`$0 previews delete <name>
3
3
 
4
4
  Delete a Preview.`).positional(`name`,{type:`string`,description:`Identifier for the Preview, which can be ID, slug, or URL-encoded name.`,demandOption:!0}).option(`worker`,{type:`string`,description:`Identifier for the Worker, which can be ID or name.`,demandOption:!0}).option(`delete-with-references`,{type:`boolean`,description:`If true, delete the Preview even when other Workers still reference it. Service bindings in those Workers may be left broken. Durable Object namespaces implemented by the deleted Preview are deleted even if other Workers reference them.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`force`,{type:`boolean`,alias:`f`,description:`Skip confirmation (useful in scripts and CI)`,default:!1})}const U={command:`delete <name>`,describe:`Delete Preview`,builder:H,handler:async e=>E({command:`previews delete`,classification:{safeFlags:[`delete-with-references`,`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{let t={force:e[`delete-with-references`]};if(e.dryRun){let n=await u();C({command:`cf previews delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${n??`<account-id>`}/workers/workers/${e.worker==null?`<worker>`:encodeURIComponent(String(e.worker))}/previews/${e.name==null?`<name>`:encodeURIComponent(String(e.name))}`,pathParams:{worker:String(e.worker??``),name:String(e.name??``)},query:t,bodyKind:`none`});return}let n=await s(e),r=e.local?a:await d();if(e.accountId=r,!await D({force:!!e.force,message:`This operation permanently deletes the Preview.`})){process.stderr.write(`Aborted.
5
5
  `);return}let i=await w(`Deleting`,async()=>o(n,`DELETE`,`/accounts/${r}/workers/workers/${encodeURIComponent(String(e.worker))}/previews/${encodeURIComponent(String(e.name))}`,{query:t}));S(i,{successLabel:`Deleted`})})};function W(e){return{getNormalizedContainerOptions:async t=>e.standard.normalized.map(e=>({...e,name:t.containers?.find(({class_name:t})=>t===e.class_name)?.name??e.name})),deployPreviewContainers:async(t,n,i,a,o)=>G(o.quiet,async()=>{let s=/* @__PURE__ */ new Map;for(let e of Object.values(i.env??{}))e.type===`durable_object_namespace`&&e.class_name&&e.namespace_id&&e.script_name===void 0&&s.set(e.class_name,e.namespace_id);let c;for(let r of n){let n=s.get(r.class_name);if(n||=(c??=await b(t,a),c.find(e=>e.class===r.class_name&&e.preview?.id===i.preview_id)?.id),!n)throw Error(`Could not find a Preview Durable Object namespace for Container class "${r.class_name}".`);let l=await K(r,e,i.id,a,t,o.localImageReferences?.get(r.class_name));await g({imageRef:l,durable_object_namespace_id:n},r,t,a)}await m(e.standard.builtImages.filter(({container:e})=>!o.localImageReferences?.has(e.class_name)),r())})}}async function G(e,t){if(!e)return t();let n=c();l(`error`);try{return await t()}finally{l(n)}}async function K(e,t,n,i,a,o){if(o!==void 0)return f({pathToDocker:r(),sourceTag:o,targetTag:o,accountId:i,complianceConfig:a,containerConfig:`dockerfile`in e?e:void 0,cleanupSourceTag:!1});let s=t.standard.builtImages.find(({container:t})=>t.class_name===e.class_name);if(s)return y(s,n,r(),i,a);if(`image_uri`in e)return{newTag:e.image_uri};throw Error(`Container "${e.name}" has no Build Output image to deploy.`)}function q(e){return e.positional(`preview-name`,{type:`string`,description:`Preview name. Defaults to the current CI or Git branch; required if no branch is available.`}).option(`prebuilt`,{type:`boolean`,description:`Use existing Preview Build Output Specification files without building`,default:!1}).option(`worker`,R)}function J(e){return{type:`preview`,version:1,preview_id:e.preview.id,preview_name:e.preview.name,preview_slug:e.preview.slug,preview_urls:e.preview.urls,deployment_id:e.deployment.id,deployment_urls:e.deployment.urls}}async function Y(t){let n=t[`preview-name`],r=n??O();if(!r||!n&&r===`HEAD`)throw Error(`We couldn't determine a Preview name from CI or Git. The name is optional when a branch is available. Otherwise, run:
@@ -1,2 +1,2 @@
1
1
  #!/usr/bin/env node
2
- import{t as e}from"./theme-BGHWSKCw.mjs";import{r as t,t as n}from"./session-Cq3YNLoI.mjs";import{n as r}from"./version-B6MnUIqV.mjs";import{a as i}from"./dist-uRuGmkMB.mjs";const a={Hidden:0,Normal:1,Error:2,Indeterminate:3,Warning:4},o=new class{cleanupRegistered=!1;get isDisabled(){return process.env.CF_NO_OSC_PROGRESS===`1`||process.env.CF_QUIET===`1`||t()}get isSupported(){if(this.isDisabled||!process.stderr.isTTY)return!1;if(process.env.CF_FORCE_OSC_PROGRESS===`1`)return!0;let e=process.env.TERM_PROGRAM?.toLowerCase()??``;return!!(e.includes(`ghostty`)||e.includes(`iterm`)||e.includes(`wezterm`)||process.env.WT_SESSION||process.env.ConEmuANSI===`ON`)}setIndeterminate(){this.isSupported&&(this.ensureCleanup(),this.write(a.Indeterminate))}clear(){this.isSupported&&process.stderr.write(`\x1b]9;4;${a.Hidden};0\x07`)}ensureCleanup(){this.cleanupRegistered||(this.cleanupRegistered=!0,process.on(`exit`,()=>{this.clear()}))}write(e){this.isSupported&&process.stderr.write(`\x1b]9;4;${e};0\x07`)}},s=[`⠋`,`⠙`,`⠹`,`⠸`,`⠼`,`⠴`,`⠦`,`⠧`,`⠇`,`⠏`];function c(){return!(!e()||!process.stdout.isTTY||process.env.CF_QUIET===`1`)}async function l(e,t){if(!c())return t();n(r);let a=i({frames:[...s],indicator:`timer`,delay:80});o.setIndeterminate(),a.start(e);try{let n=await t();return o.clear(),a.stop(e),n}catch(t){throw o.clear(),a.error(e),t}}export{l as t};
2
+ import{t as e}from"./theme-BGHWSKCw.mjs";import{r as t,t as n}from"./session-Cq3YNLoI.mjs";import{n as r}from"./version-CAuKDZAG.mjs";import{a as i}from"./dist-uRuGmkMB.mjs";const a={Hidden:0,Normal:1,Error:2,Indeterminate:3,Warning:4},o=new class{cleanupRegistered=!1;get isDisabled(){return process.env.CF_NO_OSC_PROGRESS===`1`||process.env.CF_QUIET===`1`||t()}get isSupported(){if(this.isDisabled||!process.stderr.isTTY)return!1;if(process.env.CF_FORCE_OSC_PROGRESS===`1`)return!0;let e=process.env.TERM_PROGRAM?.toLowerCase()??``;return!!(e.includes(`ghostty`)||e.includes(`iterm`)||e.includes(`wezterm`)||process.env.WT_SESSION||process.env.ConEmuANSI===`ON`)}setIndeterminate(){this.isSupported&&(this.ensureCleanup(),this.write(a.Indeterminate))}clear(){this.isSupported&&process.stderr.write(`\x1b]9;4;${a.Hidden};0\x07`)}ensureCleanup(){this.cleanupRegistered||(this.cleanupRegistered=!0,process.on(`exit`,()=>{this.clear()}))}write(e){this.isSupported&&process.stderr.write(`\x1b]9;4;${e};0\x07`)}},s=[`⠋`,`⠙`,`⠹`,`⠸`,`⠼`,`⠴`,`⠦`,`⠧`,`⠇`,`⠏`];function c(){return!(!e()||!process.stdout.isTTY||process.env.CF_QUIET===`1`)}async function l(e,t){if(!c())return t();n(r);let a=i({frames:[...s],indicator:`timer`,delay:80});o.setIndeterminate(),a.start(e);try{let n=await t();return o.clear(),a.stop(e),n}catch(t){throw o.clear(),a.error(e),t}}export{l as t};
@@ -1,4 +1,4 @@
1
1
  #!/usr/bin/env node
2
- import{r as e}from"./theme-BGHWSKCw.mjs";import{t}from"./session-Cq3YNLoI.mjs";import{t as n}from"./cli-exit-CstFZ1eJ.mjs";import{n as r}from"./version-B6MnUIqV.mjs";import{i,o as a,r as o,s,t as c}from"./dist-uRuGmkMB.mjs";import{n as l}from"./interactive-BW9T1D1q.mjs";function u(e){return e.replace(/[\p{Cc}\p{Cf}\p{Zl}\p{Zp}]/gu,` `)}function d(){t(r)}async function f(){let e=[];for await(let t of process.stdin)e.push(Buffer.from(t));let t=Buffer.concat(e).toString(`utf-8`);return t.endsWith(`
2
+ import{r as e}from"./theme-BGHWSKCw.mjs";import{t}from"./session-Cq3YNLoI.mjs";import{t as n}from"./cli-exit-CstFZ1eJ.mjs";import{n as r}from"./version-CAuKDZAG.mjs";import{i,o as a,r as o,s,t as c}from"./dist-uRuGmkMB.mjs";import{n as l}from"./interactive-BW9T1D1q.mjs";function u(e){return e.replace(/[\p{Cc}\p{Cf}\p{Zl}\p{Zp}]/gu,` `)}function d(){t(r)}async function f(){let e=[];for await(let t of process.stdin)e.push(Buffer.from(t));let t=Buffer.concat(e).toString(`utf-8`);return t.endsWith(`
3
3
  `)?t.slice(0,-1):t}async function p(e,t,r){let i=r?.kind??`text`;if(l()){if(i===`secret`){let t=await f();if(t.length>0)return t;throw Error(`--${e} is required. Pipe the value via stdin, pass --${e} <value>, or run interactively.`)}throw Error(`--${e} is required. Pass --${e} <value> or run interactively.`)}let c=`Enter value for --${e}`,u=t||r?.question||c,p=e=>e&&e.length>0?r?.validate?.(e):`Value cannot be empty`;d();let m=i===`secret`?await o({message:u,mask:`•`,validate:p}):await a({message:u,validate:p});if(s(m)||typeof m!=`string`)throw new n(130,{cancelled:!0});return m}async function m(e,t,r,a={}){let o=u(e),c=r.map(u);if(l())throw Error(`--${o} is required (one of: ${c.join(`, `)}). Pass --${o} <value> or run interactively.`);let f=`Select value for --${o}`,p=u(t||f);d();let m=await i({message:p,options:r.map(e=>({value:e,label:u((Object.hasOwn(a,e)?a[e]:void 0)??e)}))});if(s(m)||typeof m!=`string`)throw new n(130,{cancelled:!0});return m}async function h(e,t){if(l())throw Error(`--${e} is required and must be true. Pass --${e} or run interactively.`);d();let r=await c({message:t||`Confirm --${e}`,initialValue:!1});if(s(r))throw new n(130,{cancelled:!0});return r===!0}async function g(e,{defaultValue:t=!0,fallbackValue:r=!0}={}){if(l())return process.stderr.write(`? ${e}\n Using fallback value in non-interactive context: ${r?`yes`:`no`}\n`),r;d();let i=await c({message:e,initialValue:t});if(s(i))throw new n(130,{cancelled:!0});return i===!0}async function _(t={}){if(t.force===!0)return!0;let r=t.message?`${t.message} Continue?`:`This permanently deletes the resource. Continue?`;if(l())throw process.stderr.write(`${e.warning(`?`)} ${r}\n ${e.muted(`(non-interactive; pass --force to confirm)`)}\nAborted.
4
4
  `),new n(1);d();let i=await c({message:r,initialValue:!1});if(s(i))throw new n(130,{cancelled:!0});return i===!0}export{p as a,m as i,_ as n,u as o,h as r,g as t};
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import"./api-eMuS5GI1.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{t}from"./local-Dil4fTWX.mjs";import{n}from"./auth-C6u9qIGO.mjs";import{a as r,t as i}from"./context-A6T-NKPI.mjs";import{t as a}from"./output-Co4xdFf6.mjs";import{t as o}from"./dry-run-C2KjGX10.mjs";import{t as s}from"./progress-D5po7ScB.mjs";import{t as c}from"./run-DASYqJsY.mjs";import"./telemetry-BhKfwxyh.mjs";import{n as l,r as u,t as d}from"./body-parser-DkHKPkJ7.mjs";import{n as f}from"./input-validation-D7z60HJH.mjs";import{n as p}from"./prompt-BAJpE3jV.mjs";var m={method:`POST`,path:t=>e`/accounts/${t.account_id}/brand-protection/queries/bulk`,body:`json`,response:!1,errors:{422:`UnprocessableEntityError`}};function h(e){return e.usage(`$0 queries bulk create
2
+ import"./api-eMuS5GI1.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{t}from"./local-Dil4fTWX.mjs";import{n}from"./auth-MNz2D-PD.mjs";import{a as r,t as i}from"./context-q-6bMSL-.mjs";import{t as a}from"./output-Co4xdFf6.mjs";import{t as o}from"./dry-run-C2KjGX10.mjs";import{t as s}from"./progress-DaQ4MzBI.mjs";import{t as c}from"./run-Clc3P2u7.mjs";import"./telemetry-Bdv5LZZs.mjs";import{n as l,r as u,t as d}from"./body-parser-DkHKPkJ7.mjs";import{n as f}from"./input-validation-D7z60HJH.mjs";import{n as p}from"./prompt-KWYZvJWM.mjs";var m={method:`POST`,path:t=>e`/accounts/${t.account_id}/brand-protection/queries/bulk`,body:`json`,response:!1,errors:{422:`UnprocessableEntityError`}};function h(e){return e.usage(`$0 queries bulk create
3
3
 
4
4
  Return a success message after creating new saved string queries in bulk`).option(`queries`,{type:`string`,description:`The queries field. Provide as a JSON array of objects or @path/to/file.json.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const g={command:`create`,describe:`Create new saved string queries in bulk`,builder:h,handler:async e=>c({command:`queries bulk create`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await r();o({command:`cf queries bulk create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/brand-protection/queries/bulk`,pathParams:{},bodyKind:`json`,body:e.body===void 0?d({queries:u(e.queries,`queries`)}):l(e.body)});return}let c=await n(e),f=e.local?t:await i();if(e.accountId=f,e.body){let t=l(e.body),n=await s(`Creating`,async()=>c.send(m,{body:t,account_id:f}));a(n,{successLabel:`Created`});return}let p=d({queries:u(e.queries,`queries`)}),h=await s(`Creating`,async()=>c.send(m,{body:p,account_id:f}));a(h,{successLabel:`Created`})})},_={command:`bulk`,describe:`Operations for bulk`,builder:e=>e.command(g).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var v={method:`POST`,path:t=>e`/accounts/${t.account_id}/brand-protection/queries`,query:[`id`],body:`json`,response:!1,errors:{422:`UnprocessableEntityError`}};function y(e){return e.usage(`$0 queries create
5
5
 
@@ -1,16 +1,16 @@
1
1
  #!/usr/bin/env node
2
- import"./api-eMuS5GI1.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{t}from"./local-Dil4fTWX.mjs";import{n}from"./auth-C6u9qIGO.mjs";import{a as r,t as i}from"./context-A6T-NKPI.mjs";import{t as a}from"./output-Co4xdFf6.mjs";import{t as o}from"./dry-run-C2KjGX10.mjs";import{t as s}from"./progress-D5po7ScB.mjs";import{t as c}from"./run-DASYqJsY.mjs";import"./telemetry-BhKfwxyh.mjs";import{n as l,r as u,t as d}from"./body-parser-DkHKPkJ7.mjs";import{n as f}from"./input-validation-D7z60HJH.mjs";import{a as p,i as m,n as h}from"./prompt-BAJpE3jV.mjs";var g={method:`POST`,path:t=>e`/accounts/${t.account_id}/queues/${t.queue_id}/consumers`,body:`json`};function _(e){return e.usage(`$0 queues consumers create <queue-id>
2
+ import"./api-eMuS5GI1.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{t}from"./local-Dil4fTWX.mjs";import{n}from"./auth-MNz2D-PD.mjs";import{a as r,t as i}from"./context-q-6bMSL-.mjs";import{t as a}from"./output-Co4xdFf6.mjs";import{t as o}from"./dry-run-C2KjGX10.mjs";import{t as s}from"./progress-DaQ4MzBI.mjs";import{t as c}from"./run-Clc3P2u7.mjs";import"./telemetry-Bdv5LZZs.mjs";import{n as l,r as u,t as d}from"./body-parser-DkHKPkJ7.mjs";import{n as f}from"./input-validation-D7z60HJH.mjs";import{a as p,i as m,n as h}from"./prompt-KWYZvJWM.mjs";var g={method:`POST`,path:t=>e`/accounts/${t.account_id}/queues/${t.queue_id}/consumers`,body:`json`};function _(e){return e.usage(`$0 queues consumers create <queue-id>
3
3
 
4
4
  Creates a consumer for a Queue.`).positional(`queue-id`,{type:`string`,description:`A Resource identifier.`,demandOption:!0}).option(`dead-letter-queue`,{type:`string`,description:`The dead_letter_queue field`}).option(`script-name`,{type:`string`,description:`Name of a Worker`}).option(`settings-batch-size`,{type:`number`,description:`The maximum number of messages to include in a batch.`}).option(`settings-max-concurrency`,{type:`number`,description:"Maximum number of concurrent consumers that may consume from this Queue. Set to `null` to automatically opt in to the platform's maximum (recommended)."}).option(`settings-max-retries`,{type:`number`,description:`The maximum number of retries`}).option(`settings-max-wait-time-ms`,{type:`number`,description:`The number of milliseconds to wait for a batch to fill up before attempting to deliver it`}).option(`settings-retry-delay`,{type:`number`,description:`The number of seconds to delay before making the message available for another attempt.`}).option(`settings-visibility-timeout-ms`,{type:`number`,description:`The number of milliseconds that a message is exclusively leased. After the timeout, the message becomes available for another attempt.`}).option(`type`,{type:`string`,description:`The type field`,choices:[`worker`,`http_pull`]}).coerce(`type`,e=>f(e,`type`,`text`)).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Request body for creating or updating a consumer`}).conflicts(`script-name`,[`settings-visibility-timeout-ms`]).conflicts(`settings-max-concurrency`,[`settings-visibility-timeout-ms`]).conflicts(`settings-max-wait-time-ms`,[`settings-visibility-timeout-ms`]).conflicts(`settings-visibility-timeout-ms`,[`script-name`,`settings-max-concurrency`,`settings-max-wait-time-ms`])}const ee={command:`create <queue-id>`,describe:`Create a Queue Consumer`,builder:_,handler:async e=>c({command:`queues consumers create`,classification:{safeFlags:[`type`,`dry-run`]}},e,async()=>{if(e.dryRun){let t=await r();o({command:`cf queues consumers create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/queues/${e[`queue-id`]==null?`<queue-id>`:encodeURIComponent(String(e[`queue-id`]))}/consumers`,pathParams:{"queue-id":String(e[`queue-id`]??``)},bodyKind:`json`,body:e.body===void 0?d({dead_letter_queue:f(e[`dead-letter-queue`],`dead-letter-queue`,`text`),script_name:f(e[`script-name`],`script-name`,`text`),settings:{batch_size:e[`settings-batch-size`],max_concurrency:e[`settings-max-concurrency`],max_retries:e[`settings-max-retries`],max_wait_time_ms:e[`settings-max-wait-time-ms`],retry_delay:e[`settings-retry-delay`],visibility_timeout_ms:e[`settings-visibility-timeout-ms`]},type:e.type}):l(e.body)});return}let c=await n(e),u=e.local?t:await i();if(e.accountId=u,e.body){let t=l(e.body),n=await s(`Creating`,async()=>c.send(g,{body:t,account_id:u,queue_id:e[`queue-id`]}));a(n,{successLabel:`Created`});return}e.type===void 0&&(e.type=await m(`type`,`The type field`,[`worker`,`http_pull`])),e.type===`worker`&&e[`script-name`]===void 0&&(e[`script-name`]=await p(`script-name`,`Name of a Worker`,{question:`Enter value for --script-name`}));let h=d({dead_letter_queue:f(e[`dead-letter-queue`],`dead-letter-queue`,`text`),script_name:f(e[`script-name`],`script-name`,`text`),settings:{batch_size:e[`settings-batch-size`],max_concurrency:e[`settings-max-concurrency`],max_retries:e[`settings-max-retries`],max_wait_time_ms:e[`settings-max-wait-time-ms`],retry_delay:e[`settings-retry-delay`],visibility_timeout_ms:e[`settings-visibility-timeout-ms`]},type:e.type}),_=await s(`Creating`,async()=>c.send(g,{body:h,account_id:u,queue_id:e[`queue-id`]}));a(_,{successLabel:`Created`})})};var te={method:`DELETE`,path:t=>e`/accounts/${t.account_id}/queues/${t.queue_id}/consumers/${t.consumer_id}`};function v(e){return e.usage(`$0 queues consumers delete <consumer-id>
5
5
 
6
- Deletes a consumer from a Queue.`).positional(`consumer-id`,{type:`string`,description:`A Resource identifier.`,demandOption:!0}).option(`queue-id`,{type:`string`,description:`A Resource identifier.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`force`,{type:`boolean`,alias:`f`,description:`Skip confirmation (useful in scripts and CI)`,default:!1})}const y={command:`delete <consumer-id>`,describe:`Delete Queue Consumer`,builder:v,handler:async e=>c({command:`queues consumers delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{if(e.dryRun){let t=await r();o({command:`cf queues consumers delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/queues/${e[`queue-id`]==null?`<queue-id>`:encodeURIComponent(String(e[`queue-id`]))}/consumers/${e[`consumer-id`]==null?`<consumer-id>`:encodeURIComponent(String(e[`consumer-id`]))}`,pathParams:{"consumer-id":String(e[`consumer-id`]??``),"queue-id":String(e[`queue-id`]??``)},bodyKind:`none`});return}let c=await n(e),l=e.local?t:await i();if(e.accountId=l,!await h({force:!!e.force})){process.stderr.write(`Aborted.
6
+ Deletes a consumer from a Queue.`).positional(`consumer-id`,{type:`string`,description:`A Resource identifier.`,demandOption:!0}).option(`queue-id`,{type:`string`,description:`A Resource identifier.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`force`,{type:`boolean`,alias:`f`,description:`Skip confirmation (useful in scripts and CI)`,default:!1})}const y={command:`delete <consumer-id>`,describe:`Delete Queue Consumer`,builder:v,handler:async e=>c({command:`queues consumers delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{if(e.dryRun){let t=await r();o({command:`cf queues consumers delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/queues/${e[`queue-id`]==null?`<queue-id>`:encodeURIComponent(String(e[`queue-id`]))}/consumers/${e[`consumer-id`]==null?`<consumer-id>`:encodeURIComponent(String(e[`consumer-id`]))}`,pathParams:{"queue-id":String(e[`queue-id`]??``),"consumer-id":String(e[`consumer-id`]??``)},bodyKind:`none`});return}let c=await n(e),l=e.local?t:await i();if(e.accountId=l,!await h({force:!!e.force})){process.stderr.write(`Aborted.
7
7
  `);return}let u=await s(`Deleting`,async()=>c.send(te,{account_id:l,queue_id:e[`queue-id`],consumer_id:e[`consumer-id`]}));a(u,{successLabel:`Deleted`})})};var b={method:`GET`,path:t=>e`/accounts/${t.account_id}/queues/${t.queue_id}/consumers/${t.consumer_id}`};function x(e){return e.usage(`$0 queues consumers get <consumer-id>
8
8
 
9
- Returns a Queue consumer by identifier.`).positional(`consumer-id`,{type:`string`,description:`A Resource identifier.`,demandOption:!0}).option(`queue-id`,{type:`string`,description:`A Resource identifier.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const ne={command:`get <consumer-id>`,describe:`Get Queue Consumer`,builder:x,handler:async e=>c({command:`queues consumers get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await r();o({command:`cf queues consumers get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/queues/${e[`queue-id`]==null?`<queue-id>`:encodeURIComponent(String(e[`queue-id`]))}/consumers/${e[`consumer-id`]==null?`<consumer-id>`:encodeURIComponent(String(e[`consumer-id`]))}`,pathParams:{"consumer-id":String(e[`consumer-id`]??``),"queue-id":String(e[`queue-id`]??``)},bodyKind:`none`});return}let c=await n(e),l=e.local?t:await i();e.accountId=l;let u=await s(`Loading`,async()=>c.send(b,{account_id:l,queue_id:e[`queue-id`],consumer_id:e[`consumer-id`]}));a(u,{successLabel:`Loaded`})})};var re={method:`GET`,path:t=>e`/accounts/${t.account_id}/queues/${t.queue_id}/consumers`};function ie(e){return e.usage(`$0 queues consumers list
9
+ Returns a Queue consumer by identifier.`).positional(`consumer-id`,{type:`string`,description:`A Resource identifier.`,demandOption:!0}).option(`queue-id`,{type:`string`,description:`A Resource identifier.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const ne={command:`get <consumer-id>`,describe:`Get Queue Consumer`,builder:x,handler:async e=>c({command:`queues consumers get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await r();o({command:`cf queues consumers get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/queues/${e[`queue-id`]==null?`<queue-id>`:encodeURIComponent(String(e[`queue-id`]))}/consumers/${e[`consumer-id`]==null?`<consumer-id>`:encodeURIComponent(String(e[`consumer-id`]))}`,pathParams:{"queue-id":String(e[`queue-id`]??``),"consumer-id":String(e[`consumer-id`]??``)},bodyKind:`none`});return}let c=await n(e),l=e.local?t:await i();e.accountId=l;let u=await s(`Loading`,async()=>c.send(b,{account_id:l,queue_id:e[`queue-id`],consumer_id:e[`consumer-id`]}));a(u,{successLabel:`Loaded`})})};var re={method:`GET`,path:t=>e`/accounts/${t.account_id}/queues/${t.queue_id}/consumers`};function ie(e){return e.usage(`$0 queues consumers list
10
10
 
11
11
  Returns the consumers configured for a Queue.`).option(`queue-id`,{type:`string`,description:`A Resource identifier.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const ae={command:`list`,describe:`List Queue Consumers`,builder:ie,handler:async e=>c({command:`queues consumers list`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await r();o({command:`cf queues consumers list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/queues/${e[`queue-id`]==null?`<queue-id>`:encodeURIComponent(String(e[`queue-id`]))}/consumers`,pathParams:{"queue-id":String(e[`queue-id`]??``)},bodyKind:`none`});return}let c=await n(e),l=e.local?t:await i();e.accountId=l;let u=await s(`Loading`,async()=>c.send(re,{account_id:l,queue_id:e[`queue-id`]}));a(u,{successLabel:`Loaded`})})};var S={method:`PUT`,path:t=>e`/accounts/${t.account_id}/queues/${t.queue_id}/consumers/${t.consumer_id}`,body:`json`};function oe(e){return e.usage(`$0 queues consumers update <consumer-id>
12
12
 
13
- Replaces a Queue consumer, or creates it if it does not exist.`).positional(`consumer-id`,{type:`string`,description:`A Resource identifier.`,demandOption:!0}).option(`queue-id`,{type:`string`,description:`A Resource identifier.`,demandOption:!0}).option(`dead-letter-queue`,{type:`string`,description:`The dead_letter_queue field`}).option(`script-name`,{type:`string`,description:`Name of a Worker`}).option(`settings-batch-size`,{type:`number`,description:`The maximum number of messages to include in a batch.`}).option(`settings-max-concurrency`,{type:`number`,description:"Maximum number of concurrent consumers that may consume from this Queue. Set to `null` to automatically opt in to the platform's maximum (recommended)."}).option(`settings-max-retries`,{type:`number`,description:`The maximum number of retries`}).option(`settings-max-wait-time-ms`,{type:`number`,description:`The number of milliseconds to wait for a batch to fill up before attempting to deliver it`}).option(`settings-retry-delay`,{type:`number`,description:`The number of seconds to delay before making the message available for another attempt.`}).option(`settings-visibility-timeout-ms`,{type:`number`,description:`The number of milliseconds that a message is exclusively leased. After the timeout, the message becomes available for another attempt.`}).option(`type`,{type:`string`,description:`The type field`,choices:[`worker`,`http_pull`]}).coerce(`type`,e=>f(e,`type`,`text`)).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Request body for creating or updating a consumer`}).conflicts(`script-name`,[`settings-visibility-timeout-ms`]).conflicts(`settings-max-concurrency`,[`settings-visibility-timeout-ms`]).conflicts(`settings-max-wait-time-ms`,[`settings-visibility-timeout-ms`]).conflicts(`settings-visibility-timeout-ms`,[`script-name`,`settings-max-concurrency`,`settings-max-wait-time-ms`])}const se={command:`update <consumer-id>`,describe:`Update Queue Consumer`,builder:oe,handler:async e=>c({command:`queues consumers update`,classification:{safeFlags:[`type`,`dry-run`]}},e,async()=>{if(e.dryRun){let t=await r();o({command:`cf queues consumers update`,method:`PUT`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/queues/${e[`queue-id`]==null?`<queue-id>`:encodeURIComponent(String(e[`queue-id`]))}/consumers/${e[`consumer-id`]==null?`<consumer-id>`:encodeURIComponent(String(e[`consumer-id`]))}`,pathParams:{"consumer-id":String(e[`consumer-id`]??``),"queue-id":String(e[`queue-id`]??``)},bodyKind:`json`,body:e.body===void 0?d({dead_letter_queue:f(e[`dead-letter-queue`],`dead-letter-queue`,`text`),script_name:f(e[`script-name`],`script-name`,`text`),settings:{batch_size:e[`settings-batch-size`],max_concurrency:e[`settings-max-concurrency`],max_retries:e[`settings-max-retries`],max_wait_time_ms:e[`settings-max-wait-time-ms`],retry_delay:e[`settings-retry-delay`],visibility_timeout_ms:e[`settings-visibility-timeout-ms`]},type:e.type}):l(e.body)});return}let c=await n(e),u=e.local?t:await i();if(e.accountId=u,e.body){let t=l(e.body),n=await s(`Updating`,async()=>c.send(S,{body:t,account_id:u,queue_id:e[`queue-id`],consumer_id:e[`consumer-id`]}));a(n,{successLabel:`Updated`});return}e.type===void 0&&(e.type=await m(`type`,`The type field`,[`worker`,`http_pull`])),e.type===`worker`&&e[`script-name`]===void 0&&(e[`script-name`]=await p(`script-name`,`Name of a Worker`,{question:`Enter value for --script-name`}));let h=d({dead_letter_queue:f(e[`dead-letter-queue`],`dead-letter-queue`,`text`),script_name:f(e[`script-name`],`script-name`,`text`),settings:{batch_size:e[`settings-batch-size`],max_concurrency:e[`settings-max-concurrency`],max_retries:e[`settings-max-retries`],max_wait_time_ms:e[`settings-max-wait-time-ms`],retry_delay:e[`settings-retry-delay`],visibility_timeout_ms:e[`settings-visibility-timeout-ms`]},type:e.type}),g=await s(`Updating`,async()=>c.send(S,{body:h,account_id:u,queue_id:e[`queue-id`],consumer_id:e[`consumer-id`]}));a(g,{successLabel:`Updated`})})},ce={command:`consumers`,describe:`Workers that automatically receive and process messages from a queue`,builder:e=>e.command(ee).command(y).command(ne).command(ae).command(se).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var C={method:`POST`,path:t=>e`/accounts/${t.account_id}/queues`,body:`json`};function w(e){return e.usage(`$0 queues create
13
+ Replaces a Queue consumer, or creates it if it does not exist.`).positional(`consumer-id`,{type:`string`,description:`A Resource identifier.`,demandOption:!0}).option(`queue-id`,{type:`string`,description:`A Resource identifier.`,demandOption:!0}).option(`dead-letter-queue`,{type:`string`,description:`The dead_letter_queue field`}).option(`script-name`,{type:`string`,description:`Name of a Worker`}).option(`settings-batch-size`,{type:`number`,description:`The maximum number of messages to include in a batch.`}).option(`settings-max-concurrency`,{type:`number`,description:"Maximum number of concurrent consumers that may consume from this Queue. Set to `null` to automatically opt in to the platform's maximum (recommended)."}).option(`settings-max-retries`,{type:`number`,description:`The maximum number of retries`}).option(`settings-max-wait-time-ms`,{type:`number`,description:`The number of milliseconds to wait for a batch to fill up before attempting to deliver it`}).option(`settings-retry-delay`,{type:`number`,description:`The number of seconds to delay before making the message available for another attempt.`}).option(`settings-visibility-timeout-ms`,{type:`number`,description:`The number of milliseconds that a message is exclusively leased. After the timeout, the message becomes available for another attempt.`}).option(`type`,{type:`string`,description:`The type field`,choices:[`worker`,`http_pull`]}).coerce(`type`,e=>f(e,`type`,`text`)).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Request body for creating or updating a consumer`}).conflicts(`script-name`,[`settings-visibility-timeout-ms`]).conflicts(`settings-max-concurrency`,[`settings-visibility-timeout-ms`]).conflicts(`settings-max-wait-time-ms`,[`settings-visibility-timeout-ms`]).conflicts(`settings-visibility-timeout-ms`,[`script-name`,`settings-max-concurrency`,`settings-max-wait-time-ms`])}const se={command:`update <consumer-id>`,describe:`Update Queue Consumer`,builder:oe,handler:async e=>c({command:`queues consumers update`,classification:{safeFlags:[`type`,`dry-run`]}},e,async()=>{if(e.dryRun){let t=await r();o({command:`cf queues consumers update`,method:`PUT`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/queues/${e[`queue-id`]==null?`<queue-id>`:encodeURIComponent(String(e[`queue-id`]))}/consumers/${e[`consumer-id`]==null?`<consumer-id>`:encodeURIComponent(String(e[`consumer-id`]))}`,pathParams:{"queue-id":String(e[`queue-id`]??``),"consumer-id":String(e[`consumer-id`]??``)},bodyKind:`json`,body:e.body===void 0?d({dead_letter_queue:f(e[`dead-letter-queue`],`dead-letter-queue`,`text`),script_name:f(e[`script-name`],`script-name`,`text`),settings:{batch_size:e[`settings-batch-size`],max_concurrency:e[`settings-max-concurrency`],max_retries:e[`settings-max-retries`],max_wait_time_ms:e[`settings-max-wait-time-ms`],retry_delay:e[`settings-retry-delay`],visibility_timeout_ms:e[`settings-visibility-timeout-ms`]},type:e.type}):l(e.body)});return}let c=await n(e),u=e.local?t:await i();if(e.accountId=u,e.body){let t=l(e.body),n=await s(`Updating`,async()=>c.send(S,{body:t,account_id:u,queue_id:e[`queue-id`],consumer_id:e[`consumer-id`]}));a(n,{successLabel:`Updated`});return}e.type===void 0&&(e.type=await m(`type`,`The type field`,[`worker`,`http_pull`])),e.type===`worker`&&e[`script-name`]===void 0&&(e[`script-name`]=await p(`script-name`,`Name of a Worker`,{question:`Enter value for --script-name`}));let h=d({dead_letter_queue:f(e[`dead-letter-queue`],`dead-letter-queue`,`text`),script_name:f(e[`script-name`],`script-name`,`text`),settings:{batch_size:e[`settings-batch-size`],max_concurrency:e[`settings-max-concurrency`],max_retries:e[`settings-max-retries`],max_wait_time_ms:e[`settings-max-wait-time-ms`],retry_delay:e[`settings-retry-delay`],visibility_timeout_ms:e[`settings-visibility-timeout-ms`]},type:e.type}),g=await s(`Updating`,async()=>c.send(S,{body:h,account_id:u,queue_id:e[`queue-id`],consumer_id:e[`consumer-id`]}));a(g,{successLabel:`Updated`})})},ce={command:`consumers`,describe:`Workers that automatically receive and process messages from a queue`,builder:e=>e.command(ee).command(y).command(ne).command(ae).command(se).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var C={method:`POST`,path:t=>e`/accounts/${t.account_id}/queues`,body:`json`};function w(e){return e.usage(`$0 queues create
14
14
 
15
15
  Creates a Queue in the account.`).option(`jurisdiction`,{type:`string`,description:`The jurisdiction field`,choices:[`eu`,`us`,`fedramp`]}).coerce(`jurisdiction`,e=>f(e,`jurisdiction`,`text`)).option(`queue-name`,{type:`string`,description:`The queue_name field`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const T={command:`create`,describe:`Create Queue`,builder:w,handler:async e=>c({command:`queues create`,classification:{safeFlags:[`jurisdiction`,`dry-run`]}},e,async()=>{if(e.dryRun){let t=await r();o({command:`cf queues create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/queues`,pathParams:{},bodyKind:`json`,body:e.body===void 0?d({jurisdiction:e.jurisdiction,queue_name:f(e[`queue-name`],`queue-name`,`text`)}):l(e.body)});return}let c=await n(e),u=e.local?t:await i();if(e.accountId=u,e.body){let t=l(e.body),n=await s(`Creating`,async()=>c.send(C,{body:t,account_id:u}));a(n,{successLabel:`Created`});return}e[`queue-name`]===void 0&&(e[`queue-name`]=await p(`queue-name`,`The queue_name field`));let m=d({jurisdiction:e.jurisdiction,queue_name:f(e[`queue-name`],`queue-name`,`text`)}),h=await s(`Creating`,async()=>c.send(C,{body:m,account_id:u}));a(h,{successLabel:`Created`})})};var E={method:`DELETE`,path:t=>e`/accounts/${t.account_id}/queues/${t.queue_id}`};function D(e){return e.usage(`$0 queues delete <queue-id>
16
16
 
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import"./api-eMuS5GI1.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{t}from"./local-Dil4fTWX.mjs";import{i as n,n as r}from"./auth-C6u9qIGO.mjs";import{a as i,t as a}from"./context-A6T-NKPI.mjs";import{t as o}from"./output-Co4xdFf6.mjs";import{t as s}from"./dry-run-C2KjGX10.mjs";import{t as c}from"./progress-D5po7ScB.mjs";import{t as l}from"./run-DASYqJsY.mjs";import"./telemetry-BhKfwxyh.mjs";import{i as u,n as d,r as f,t as p}from"./body-parser-DkHKPkJ7.mjs";import{n as m,t as h}from"./input-validation-D7z60HJH.mjs";import{a as g,i as _,n as v}from"./prompt-BAJpE3jV.mjs";import{n as y,t as b}from"./raw-fetch-yY-wX5Xx.mjs";function ee(e){return e.usage(`$0 r2 buckets cors delete <bucket-name>
2
+ import"./api-eMuS5GI1.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{t}from"./local-Dil4fTWX.mjs";import{i as n,n as r}from"./auth-MNz2D-PD.mjs";import{a as i,t as a}from"./context-q-6bMSL-.mjs";import{t as o}from"./output-Co4xdFf6.mjs";import{t as s}from"./dry-run-C2KjGX10.mjs";import{t as c}from"./progress-DaQ4MzBI.mjs";import{t as l}from"./run-Clc3P2u7.mjs";import"./telemetry-Bdv5LZZs.mjs";import{i as u,n as d,r as f,t as p}from"./body-parser-DkHKPkJ7.mjs";import{n as m,t as h}from"./input-validation-D7z60HJH.mjs";import{a as g,i as _,n as v}from"./prompt-KWYZvJWM.mjs";import{n as y,t as b}from"./raw-fetch-Cy09TjHc.mjs";function ee(e){return e.usage(`$0 r2 buckets cors delete <bucket-name>
3
3
 
4
4
  Delete the CORS policy for a bucket.`).positional(`bucket-name`,{type:`string`,description:`Name of the bucket.`,demandOption:!0}).option(`cf-r2-jurisdiction`,{type:`string`,description:`Jurisdiction where objects in this bucket are guaranteed to be stored.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`force`,{type:`boolean`,alias:`f`,description:`Skip confirmation (useful in scripts and CI)`,default:!1})}const te={command:`delete <bucket-name>`,describe:`Delete Bucket CORS Policy`,builder:ee,handler:async e=>l({command:`r2 buckets cors delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{let l={};if(e[`cf-r2-jurisdiction`]!==void 0&&(l[`cf-r2-jurisdiction`]=String(e[`cf-r2-jurisdiction`])),e.dryRun){let t=await i();s({command:`cf r2 buckets cors delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/r2/buckets/${e[`bucket-name`]==null?`<bucket-name>`:encodeURIComponent(String(e[`bucket-name`]))}/cors`,pathParams:{"bucket-name":String(e[`bucket-name`]??``)},bodyKind:`none`});return}let u=await r(e),d=e.local?t:await a();if(e.accountId=d,!await v({force:!!e.force,message:`This removes the R2 bucket's CORS policy. Browser requests that depend on these cross-origin permissions may fail.`})){process.stderr.write(`Aborted.
5
5
  `);return}let f=await c(`Deleting`,async()=>n(u,`DELETE`,`/accounts/${d}/r2/buckets/${encodeURIComponent(String(e[`bucket-name`]))}/cors`,{headers:Object.keys(l).length>0?l:void 0}));o(f,{successLabel:`Deleted`})})};function ne(e){return e.usage(`$0 r2 buckets cors get <bucket-name>
@@ -32,14 +32,14 @@ Enables or disables public access to the R2 bucket through its managed r2.dev do
32
32
 
33
33
  Changes the default storage class for newly uploaded objects in an existing R2 bucket. Existing objects retain their storage class, and individual uploads can override the bucket default.`).positional(`bucket-name`,{type:`string`,description:`Name of the bucket.`,demandOption:!0}).option(`cf-r2-jurisdiction`,{type:`string`,description:`Jurisdiction where objects in this bucket are guaranteed to be stored.`}).option(`cf-r2-storage-class`,{type:`string`,description:`Storage class for newly uploaded objects, unless specified otherwise.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const G={command:`edit <bucket-name>`,describe:`Patch Bucket`,builder:W,handler:async e=>l({command:`r2 buckets edit`,classification:{safeFlags:[`dry-run`]}},e,async()=>{let l={};if(e[`cf-r2-jurisdiction`]!==void 0&&(l[`cf-r2-jurisdiction`]=String(e[`cf-r2-jurisdiction`])),e[`cf-r2-storage-class`]!==void 0&&(l[`cf-r2-storage-class`]=String(e[`cf-r2-storage-class`])),e.dryRun){let t=await i();s({command:`cf r2 buckets edit`,method:`PATCH`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/r2/buckets/${e[`bucket-name`]==null?`<bucket-name>`:encodeURIComponent(String(e[`bucket-name`]))}`,pathParams:{"bucket-name":String(e[`bucket-name`]??``)},bodyKind:`none`});return}let u=await r(e),d=e.local?t:await a();e.accountId=d;let f=await c(`Updating`,async()=>n(u,`PATCH`,`/accounts/${d}/r2/buckets/${encodeURIComponent(String(e[`bucket-name`]))}`,{headers:Object.keys(l).length>0?l:void 0}));o(f,{successLabel:`Updated`})})};function K(e){return e.usage(`$0 r2 buckets event-notifications delete <queue-id>
34
34
 
35
- Deletes the specified event notification rules for an R2 bucket and Cloudflare Queue. Provide ruleIds in the request body to select rules. If no body is provided, all rules for that bucket and queue are deleted.`).positional(`queue-id`,{type:`string`,description:`ID of the Cloudflare Queue that receives notifications for matching R2 object events.`,demandOption:!0}).option(`bucket-name`,{type:`string`,description:`Name of the bucket.`,demandOption:!0}).option(`cf-r2-jurisdiction`,{type:`string`,description:`Jurisdiction where objects in this bucket are guaranteed to be stored.`}).option(`rule-ids`,{type:`string`,array:!0,description:`Array of rule ids to delete.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`force`,{type:`boolean`,alias:`f`,description:`Skip confirmation (useful in scripts and CI)`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const q={command:`delete <queue-id>`,describe:`Delete Event Notification Rules`,builder:K,handler:async e=>l({command:`r2 buckets event-notifications delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{let l={};if(e[`cf-r2-jurisdiction`]!==void 0&&(l[`cf-r2-jurisdiction`]=String(e[`cf-r2-jurisdiction`])),e.dryRun){let t=await i();s({command:`cf r2 buckets event-notifications delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/event_notifications/r2/${e[`bucket-name`]==null?`<bucket-name>`:encodeURIComponent(String(e[`bucket-name`]))}/configuration/queues/${e[`queue-id`]==null?`<queue-id>`:encodeURIComponent(String(e[`queue-id`]))}`,pathParams:{"queue-id":String(e[`queue-id`]??``),"bucket-name":String(e[`bucket-name`]??``)},bodyKind:`json`,body:e.body===void 0?p({ruleIds:e[`rule-ids`]}):d(e.body)});return}let f=await r(e),m=e.local?t:await a();if(e.accountId=m,!await v({force:!!e.force,message:`This deletes event notification rules for the selected R2 bucket and queue. Without a request body, all rules for that bucket and queue are deleted.`})){process.stderr.write(`Aborted.
35
+ Deletes the specified event notification rules for an R2 bucket and Cloudflare Queue. Provide ruleIds in the request body to select rules. If no body is provided, all rules for that bucket and queue are deleted.`).positional(`queue-id`,{type:`string`,description:`ID of the Cloudflare Queue that receives notifications for matching R2 object events.`,demandOption:!0}).option(`bucket-name`,{type:`string`,description:`Name of the bucket.`,demandOption:!0}).option(`cf-r2-jurisdiction`,{type:`string`,description:`Jurisdiction where objects in this bucket are guaranteed to be stored.`}).option(`rule-ids`,{type:`string`,array:!0,description:`Array of rule ids to delete.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`force`,{type:`boolean`,alias:`f`,description:`Skip confirmation (useful in scripts and CI)`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const q={command:`delete <queue-id>`,describe:`Delete Event Notification Rules`,builder:K,handler:async e=>l({command:`r2 buckets event-notifications delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{let l={};if(e[`cf-r2-jurisdiction`]!==void 0&&(l[`cf-r2-jurisdiction`]=String(e[`cf-r2-jurisdiction`])),e.dryRun){let t=await i();s({command:`cf r2 buckets event-notifications delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/event_notifications/r2/${e[`bucket-name`]==null?`<bucket-name>`:encodeURIComponent(String(e[`bucket-name`]))}/configuration/queues/${e[`queue-id`]==null?`<queue-id>`:encodeURIComponent(String(e[`queue-id`]))}`,pathParams:{"bucket-name":String(e[`bucket-name`]??``),"queue-id":String(e[`queue-id`]??``)},bodyKind:`json`,body:e.body===void 0?p({ruleIds:e[`rule-ids`]}):d(e.body)});return}let f=await r(e),m=e.local?t:await a();if(e.accountId=m,!await v({force:!!e.force,message:`This deletes event notification rules for the selected R2 bucket and queue. Without a request body, all rules for that bucket and queue are deleted.`})){process.stderr.write(`Aborted.
36
36
  `);return}if(e.body){let t=d(e.body),r=await c(`Deleting`,async()=>n(f,`DELETE`,`/accounts/${m}/event_notifications/r2/${encodeURIComponent(String(e[`bucket-name`]))}/configuration/queues/${encodeURIComponent(String(e[`queue-id`]))}`,{body:t,headers:Object.keys(l).length>0?l:void 0}));o(r,{successLabel:`Deleted`});return}let h={};e[`rule-ids`]!==void 0&&u(h,[`ruleIds`],e[`rule-ids`]);let g=await c(`Deleting`,async()=>n(f,`DELETE`,`/accounts/${m}/event_notifications/r2/${encodeURIComponent(String(e[`bucket-name`]))}/configuration/queues/${encodeURIComponent(String(e[`queue-id`]))}`,{body:h,headers:Object.keys(l).length>0?l:void 0}));o(g,{successLabel:`Deleted`})})};function se(e){return e.usage(`$0 r2 buckets event-notifications get <queue-id>
37
37
 
38
- Gets the event notification rules for the specified R2 bucket and Cloudflare Queue. The response includes the queue's configuration and its array of rules.`).positional(`queue-id`,{type:`string`,description:`ID of the Cloudflare Queue that receives notifications for matching R2 object events.`,demandOption:!0}).option(`bucket-name`,{type:`string`,description:`Name of the bucket.`,demandOption:!0}).option(`cf-r2-jurisdiction`,{type:`string`,description:`Jurisdiction where objects in this bucket are guaranteed to be stored.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const ce={command:`get <queue-id>`,describe:`Get Event Notification Rules for a Queue`,builder:se,handler:async e=>l({command:`r2 buckets event-notifications get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{let l={};if(e[`cf-r2-jurisdiction`]!==void 0&&(l[`cf-r2-jurisdiction`]=String(e[`cf-r2-jurisdiction`])),e.dryRun){let t=await i();s({command:`cf r2 buckets event-notifications get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/event_notifications/r2/${e[`bucket-name`]==null?`<bucket-name>`:encodeURIComponent(String(e[`bucket-name`]))}/configuration/queues/${e[`queue-id`]==null?`<queue-id>`:encodeURIComponent(String(e[`queue-id`]))}`,pathParams:{"queue-id":String(e[`queue-id`]??``),"bucket-name":String(e[`bucket-name`]??``)},bodyKind:`none`});return}let u=await r(e),d=e.local?t:await a();e.accountId=d;let f=await c(`Loading`,async()=>n(u,`GET`,`/accounts/${d}/event_notifications/r2/${encodeURIComponent(String(e[`bucket-name`]))}/configuration/queues/${encodeURIComponent(String(e[`queue-id`]))}`,{headers:Object.keys(l).length>0?l:void 0}));o(f,{successLabel:`Loaded`})})};function le(e){return e.usage(`$0 r2 buckets event-notifications list
38
+ Gets the event notification rules for the specified R2 bucket and Cloudflare Queue. The response includes the queue's configuration and its array of rules.`).positional(`queue-id`,{type:`string`,description:`ID of the Cloudflare Queue that receives notifications for matching R2 object events.`,demandOption:!0}).option(`bucket-name`,{type:`string`,description:`Name of the bucket.`,demandOption:!0}).option(`cf-r2-jurisdiction`,{type:`string`,description:`Jurisdiction where objects in this bucket are guaranteed to be stored.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const ce={command:`get <queue-id>`,describe:`Get Event Notification Rules for a Queue`,builder:se,handler:async e=>l({command:`r2 buckets event-notifications get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{let l={};if(e[`cf-r2-jurisdiction`]!==void 0&&(l[`cf-r2-jurisdiction`]=String(e[`cf-r2-jurisdiction`])),e.dryRun){let t=await i();s({command:`cf r2 buckets event-notifications get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/event_notifications/r2/${e[`bucket-name`]==null?`<bucket-name>`:encodeURIComponent(String(e[`bucket-name`]))}/configuration/queues/${e[`queue-id`]==null?`<queue-id>`:encodeURIComponent(String(e[`queue-id`]))}`,pathParams:{"bucket-name":String(e[`bucket-name`]??``),"queue-id":String(e[`queue-id`]??``)},bodyKind:`none`});return}let u=await r(e),d=e.local?t:await a();e.accountId=d;let f=await c(`Loading`,async()=>n(u,`GET`,`/accounts/${d}/event_notifications/r2/${encodeURIComponent(String(e[`bucket-name`]))}/configuration/queues/${encodeURIComponent(String(e[`queue-id`]))}`,{headers:Object.keys(l).length>0?l:void 0}));o(f,{successLabel:`Loaded`})})};function le(e){return e.usage(`$0 r2 buckets event-notifications list
39
39
 
40
40
  Lists event notification rules for an R2 bucket, grouped by the Cloudflare Queue that receives matching object events.`).option(`bucket-name`,{type:`string`,description:`Name of the bucket.`,demandOption:!0}).option(`cf-r2-jurisdiction`,{type:`string`,description:`Jurisdiction where objects in this bucket are guaranteed to be stored.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const ue={command:`list`,describe:`List Event Notification Rules`,builder:le,handler:async e=>l({command:`r2 buckets event-notifications list`,classification:{safeFlags:[`dry-run`]}},e,async()=>{let l={};if(e[`cf-r2-jurisdiction`]!==void 0&&(l[`cf-r2-jurisdiction`]=String(e[`cf-r2-jurisdiction`])),e.dryRun){let t=await i();s({command:`cf r2 buckets event-notifications list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/event_notifications/r2/${e[`bucket-name`]==null?`<bucket-name>`:encodeURIComponent(String(e[`bucket-name`]))}/configuration`,pathParams:{"bucket-name":String(e[`bucket-name`]??``)},bodyKind:`none`});return}let u=await r(e),d=e.local?t:await a();e.accountId=d;let f=await c(`Loading`,async()=>n(u,`GET`,`/accounts/${d}/event_notifications/r2/${encodeURIComponent(String(e[`bucket-name`]))}/configuration`,{headers:Object.keys(l).length>0?l:void 0}));o(f,{successLabel:`Loaded`})})};function de(e){return e.usage(`$0 r2 buckets event-notifications update <queue-id>
41
41
 
42
- Creates rules that send notifications for matching R2 object events to the specified Cloudflare Queue. Rules can filter objects by key prefix and suffix. New rules are added to any existing rules for the queue; a rule that overlaps an existing rule is rejected.`).positional(`queue-id`,{type:`string`,description:`ID of the Cloudflare Queue that receives notifications for matching R2 object events.`,demandOption:!0}).option(`bucket-name`,{type:`string`,description:`Name of the bucket.`,demandOption:!0}).option(`cf-r2-jurisdiction`,{type:`string`,description:`Jurisdiction where objects in this bucket are guaranteed to be stored.`}).option(`rules`,{type:`string`,description:`Array of rules to drive notifications. Provide as a JSON array of objects or @path/to/file.json.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const fe={command:`update <queue-id>`,describe:`Create Event Notification Rules`,builder:de,handler:async e=>l({command:`r2 buckets event-notifications update`,classification:{safeFlags:[`dry-run`]}},e,async()=>{let l={};if(e[`cf-r2-jurisdiction`]!==void 0&&(l[`cf-r2-jurisdiction`]=String(e[`cf-r2-jurisdiction`])),e.dryRun){let t=await i();s({command:`cf r2 buckets event-notifications update`,method:`PUT`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/event_notifications/r2/${e[`bucket-name`]==null?`<bucket-name>`:encodeURIComponent(String(e[`bucket-name`]))}/configuration/queues/${e[`queue-id`]==null?`<queue-id>`:encodeURIComponent(String(e[`queue-id`]))}`,pathParams:{"queue-id":String(e[`queue-id`]??``),"bucket-name":String(e[`bucket-name`]??``)},bodyKind:`json`,body:e.body===void 0?p({rules:f(e.rules,`rules`)}):d(e.body)});return}let m=await r(e),h=e.local?t:await a();if(e.accountId=h,e.body){let t=d(e.body),r=await c(`Updating`,async()=>n(m,`PUT`,`/accounts/${h}/event_notifications/r2/${encodeURIComponent(String(e[`bucket-name`]))}/configuration/queues/${encodeURIComponent(String(e[`queue-id`]))}`,{body:t,headers:Object.keys(l).length>0?l:void 0}));o(r,{successLabel:`Updated`});return}if(e.rules===void 0)throw Error(`--rules is required (or pass --body with this field set).`);let g={};e.rules!==void 0&&u(g,[`rules`],f(e.rules,`rules`));let _=await c(`Updating`,async()=>n(m,`PUT`,`/accounts/${h}/event_notifications/r2/${encodeURIComponent(String(e[`bucket-name`]))}/configuration/queues/${encodeURIComponent(String(e[`queue-id`]))}`,{body:g,headers:Object.keys(l).length>0?l:void 0}));o(_,{successLabel:`Updated`})})},pe={command:`event-notifications`,describe:`Operations for buckets.event-notifications`,builder:e=>e.command(q).command(ce).command(ue).command(fe).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function me(e){return e.usage(`$0 r2 buckets get <bucket-name>
42
+ Creates rules that send notifications for matching R2 object events to the specified Cloudflare Queue. Rules can filter objects by key prefix and suffix. New rules are added to any existing rules for the queue; a rule that overlaps an existing rule is rejected.`).positional(`queue-id`,{type:`string`,description:`ID of the Cloudflare Queue that receives notifications for matching R2 object events.`,demandOption:!0}).option(`bucket-name`,{type:`string`,description:`Name of the bucket.`,demandOption:!0}).option(`cf-r2-jurisdiction`,{type:`string`,description:`Jurisdiction where objects in this bucket are guaranteed to be stored.`}).option(`rules`,{type:`string`,description:`Array of rules to drive notifications. Provide as a JSON array of objects or @path/to/file.json.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const fe={command:`update <queue-id>`,describe:`Create Event Notification Rules`,builder:de,handler:async e=>l({command:`r2 buckets event-notifications update`,classification:{safeFlags:[`dry-run`]}},e,async()=>{let l={};if(e[`cf-r2-jurisdiction`]!==void 0&&(l[`cf-r2-jurisdiction`]=String(e[`cf-r2-jurisdiction`])),e.dryRun){let t=await i();s({command:`cf r2 buckets event-notifications update`,method:`PUT`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/event_notifications/r2/${e[`bucket-name`]==null?`<bucket-name>`:encodeURIComponent(String(e[`bucket-name`]))}/configuration/queues/${e[`queue-id`]==null?`<queue-id>`:encodeURIComponent(String(e[`queue-id`]))}`,pathParams:{"bucket-name":String(e[`bucket-name`]??``),"queue-id":String(e[`queue-id`]??``)},bodyKind:`json`,body:e.body===void 0?p({rules:f(e.rules,`rules`)}):d(e.body)});return}let m=await r(e),h=e.local?t:await a();if(e.accountId=h,e.body){let t=d(e.body),r=await c(`Updating`,async()=>n(m,`PUT`,`/accounts/${h}/event_notifications/r2/${encodeURIComponent(String(e[`bucket-name`]))}/configuration/queues/${encodeURIComponent(String(e[`queue-id`]))}`,{body:t,headers:Object.keys(l).length>0?l:void 0}));o(r,{successLabel:`Updated`});return}if(e.rules===void 0)throw Error(`--rules is required (or pass --body with this field set).`);let g={};e.rules!==void 0&&u(g,[`rules`],f(e.rules,`rules`));let _=await c(`Updating`,async()=>n(m,`PUT`,`/accounts/${h}/event_notifications/r2/${encodeURIComponent(String(e[`bucket-name`]))}/configuration/queues/${encodeURIComponent(String(e[`queue-id`]))}`,{body:g,headers:Object.keys(l).length>0?l:void 0}));o(_,{successLabel:`Updated`})})},pe={command:`event-notifications`,describe:`Operations for buckets.event-notifications`,builder:e=>e.command(q).command(ce).command(ue).command(fe).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function me(e){return e.usage(`$0 r2 buckets get <bucket-name>
43
43
 
44
44
  Gets properties of an existing R2 bucket.`).positional(`bucket-name`,{type:`string`,description:`Name of the bucket.`,demandOption:!0}).option(`cf-r2-jurisdiction`,{type:`string`,description:`Jurisdiction where objects in this bucket are guaranteed to be stored.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const he={command:`get <bucket-name>`,describe:`Get Bucket`,builder:me,handler:async e=>l({command:`r2 buckets get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{let l={};if(e[`cf-r2-jurisdiction`]!==void 0&&(l[`cf-r2-jurisdiction`]=String(e[`cf-r2-jurisdiction`])),e.dryRun){let t=await i();s({command:`cf r2 buckets get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/r2/buckets/${e[`bucket-name`]==null?`<bucket-name>`:encodeURIComponent(String(e[`bucket-name`]))}`,pathParams:{"bucket-name":String(e[`bucket-name`]??``)},bodyKind:`none`});return}let u=await r(e),d=e.local?t:await a();e.accountId=d;let f=await c(`Loading`,async()=>n(u,`GET`,`/accounts/${d}/r2/buckets/${encodeURIComponent(String(e[`bucket-name`]))}`,{headers:Object.keys(l).length>0?l:void 0}));o(f,{successLabel:`Loaded`})})};function ge(e){return e.usage('$0 r2 buckets jobs create <bucket-name>\n\nCreates a background job for an R2 bucket. The `jobType` field selects the job: - **`prefixDelete`**: deletes every object whose key begins with `prefix`. A non-empty prefix must end in `/`. An empty prefix (`""`) empties the entire bucket. - **`storageClassMigration`**: migrates every object in the bucket between storage classes. `sourceStorageClass` and `destinationStorageClass` must be provided together and must differ; omitting both migrates from `InfrequentAccess` to `Standard`. Poll the returned `id` with the Get Bucket Job endpoint. Small prefix-delete jobs can finish synchronously and return `COMPLETED`. Objects uploaded after a background job starts are not affected by that job. For prefix-delete jobs: abort active multipart uploads before submitting the request, since a synchronously completed job does not abort them, and avoid writing objects or starting multipart uploads while a bucket-emptying job is in progress. Each request creates a distinct job, and the number of active prefix-delete jobs is limited per bucket; wait for an existing job to finish before retrying a request rejected with HTTP 429. A bucket cannot be emptied while event notifications are configured (HTTP 409 / error code 10083). To protect a bucket with R2 Data Catalog enabled, send the `cf-r2-data-catalog-check` header; a conflict is returned with HTTP 409 / error code 10081. Prefix-delete jobs require permission to delete objects; storage-class migration jobs require permission to write to the bucket.').positional(`bucket-name`,{type:`string`,description:`Name of the bucket.`,demandOption:!0}).option(`cf-r2-jurisdiction`,{type:`string`,description:`Jurisdiction where objects in this bucket are guaranteed to be stored.`}).option(`cf-r2-data-catalog-check`,{type:`string`,description:`For prefix-delete jobs, set this header to reject the request when R2 Data Catalog is enabled for the bucket.`}).option(`job-type`,{type:`string`,description:`The jobType field`,choices:[`prefixDelete`,`storageClassMigration`]}).coerce(`job-type`,e=>m(e,`job-type`,`text`)).option(`prefix`,{type:`string`,description:`Prefix matched against object keys. A non-empty value must end in \`/\`.
45
45
  An empty string empties the entire bucket.
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import"./api-eMuS5GI1.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{n as t}from"./auth-C6u9qIGO.mjs";import{t as n}from"./output-Co4xdFf6.mjs";import{t as r}from"./dry-run-C2KjGX10.mjs";import{t as i}from"./progress-D5po7ScB.mjs";import{t as a}from"./run-DASYqJsY.mjs";import"./telemetry-BhKfwxyh.mjs";import{n as o,t as s}from"./body-parser-DkHKPkJ7.mjs";import{n as c,t as l}from"./raw-fetch-yY-wX5Xx.mjs";var u={method:`GET`,path:t=>e`/radar/agent_readiness/summary/${t.dimension}`,query:[`date`,`domainCategory`,`name`,`format`],errors:{400:`BadRequestError`}};function ee(e){return e.usage(`$0 radar agent-readiness summary <dimension>
2
+ import"./api-eMuS5GI1.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{n as t}from"./auth-MNz2D-PD.mjs";import{t as n}from"./output-Co4xdFf6.mjs";import{t as r}from"./dry-run-C2KjGX10.mjs";import{t as i}from"./progress-DaQ4MzBI.mjs";import{t as a}from"./run-Clc3P2u7.mjs";import"./telemetry-Bdv5LZZs.mjs";import{n as o,t as s}from"./body-parser-DkHKPkJ7.mjs";import{n as c,t as l}from"./raw-fetch-Cy09TjHc.mjs";var u={method:`GET`,path:t=>e`/radar/agent_readiness/summary/${t.dimension}`,query:[`date`,`domainCategory`,`name`,`format`],errors:{400:`BadRequestError`}};function ee(e){return e.usage(`$0 radar agent-readiness summary <dimension>
3
3
 
4
4
  Returns a summary of AI agent readiness scores across scanned domains, grouped by the specified dimension. Data is sourced from weekly bulk scans. All values are raw domain counts.`).positional(`dimension`,{type:`string`,description:`Specifies the agent readiness data dimension by which to group the results.`,demandOption:!0}).option(`date`,{type:`string`,description:`Filters results by the specified date.`}).option(`domain-category`,{type:`string`,description:`Filters results by domain category.`}).option(`name`,{type:`string`,description:`Array of names used to label the series in the response.`}).option(`format`,{type:`string`,description:`Format in which results will be returned.`,choices:[`JSON`,`CSV`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const te={command:`summary <dimension>`,describe:`Get agent readiness summary`,builder:ee,handler:async e=>a({command:`radar agent-readiness summary`,classification:{safeFlags:[`format`,`dry-run`]}},e,async()=>{let a={date:e.date,domainCategory:e[`domain-category`],name:e.name,format:e.format};if(e.dryRun){r({command:`cf radar agent-readiness summary`,method:`GET`,url:`https://api.cloudflare.com/client/v4/radar/agent_readiness/summary/${e.dimension==null?`<dimension>`:encodeURIComponent(String(e.dimension))}`,pathParams:{dimension:String(e.dimension??``)},query:a,bodyKind:`none`});return}let o=await t(e),s=await i(`Loading`,async()=>o.send(u,{dimension:e.dimension,...a}));n(s,{successLabel:`Loaded`})})},ne={command:`agent-readiness`,describe:`Agent readiness summary statistics across the Cloudflare network`,builder:e=>e.command(te).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var d={method:`GET`,path:t=>e`/radar/ai/bots/timeseries_groups/${t.dimension}`,query:[`aggInterval`,`name`,`dateRange`,`dateStart`,`dateEnd`,`asn`,`location`,`continent`,`crawlPurpose`,`userAgent`,`industry`,`vertical`,`contentType`,`responseStatus`,`responseStatusCategory`,`limitPerGroup`,`normalization`,`format`],errors:{400:`BadRequestError`}};function f(e){return e.usage(`$0 radar ai bots timeseries-groups <dimension>
5
5
 
@@ -1,2 +1,2 @@
1
1
  #!/usr/bin/env node
2
- import{K as e}from"./dist-DZRTPMMA.mjs";import{n as t}from"./api-eMuS5GI1.mjs";import{r as n}from"./local-Dil4fTWX.mjs";import{c as r,l as i}from"./auth-C6u9qIGO.mjs";import{n as a}from"./context-A6T-NKPI.mjs";import{t as o}from"./auth-token-DkkYg4DP.mjs";import{n as s}from"./request-headers-D_eQn93b.mjs";async function c(c,l={}){let{method:u=`GET`,local:d=!1}=l,f=e({compliance_region:await a()}),p=`${f.replace(/\/+$/,``)}${c}`,m={...s()};l.headers&&Object.assign(m,l.headers);let h=globalThis.fetch;d?h=n({persistTo:l.persistTo,apiBaseUrl:f}):m.Authorization=`Bearer ${await o()}`;let g,_=l.body;_!=null&&(_ instanceof FormData?g=_:Buffer.isBuffer(_)||_ instanceof Uint8Array||_ instanceof ArrayBuffer?(g=_,m[`Content-Type`]??=l.contentType??`application/octet-stream`):typeof _==`string`?(g=_,l.contentType&&(m[`Content-Type`]??=l.contentType)):(g=JSON.stringify(_),m[`Content-Type`]??=l.contentType??`application/json`));let v=await h(p,{method:u,headers:m,...g===void 0?{}:{body:g},...r(g)?{}:{signal:AbortSignal.timeout(i)}});if(!v.ok){let e=v.headers.get(`content-type`)??``,n;try{n=e.includes(`application/json`)?await v.json():await v.text()}catch{n=null}throw new t({statusCode:v.status,body:n,rawResponse:{status:v.status,statusText:v.statusText,url:v.url||p,headers:v.headers,redirected:v.redirected,type:v.type}})}let y=await v.arrayBuffer();return Buffer.from(y)}function l(e){process.stdout.write(e)}export{l as n,c as t};
2
+ import{K as e}from"./dist-DZRTPMMA.mjs";import{n as t}from"./api-eMuS5GI1.mjs";import{r as n}from"./local-Dil4fTWX.mjs";import{c as r,l as i}from"./auth-MNz2D-PD.mjs";import{n as a}from"./context-q-6bMSL-.mjs";import{t as o}from"./auth-token-Cw4c0y89.mjs";import{n as s}from"./request-headers-CqfJOkpO.mjs";async function c(c,l={}){let{method:u=`GET`,local:d=!1}=l,f=e({compliance_region:await a()}),p=`${f.replace(/\/+$/,``)}${c}`,m={...s()};l.headers&&Object.assign(m,l.headers);let h=globalThis.fetch;d?h=n({persistTo:l.persistTo,apiBaseUrl:f}):m.Authorization=`Bearer ${await o()}`;let g,_=l.body;_!=null&&(_ instanceof FormData?g=_:Buffer.isBuffer(_)||_ instanceof Uint8Array||_ instanceof ArrayBuffer?(g=_,m[`Content-Type`]??=l.contentType??`application/octet-stream`):typeof _==`string`?(g=_,l.contentType&&(m[`Content-Type`]??=l.contentType)):(g=JSON.stringify(_),m[`Content-Type`]??=l.contentType??`application/json`));let v=await h(p,{method:u,headers:m,...g===void 0?{}:{body:g},...r(g)?{}:{signal:AbortSignal.timeout(i)}});if(!v.ok){let e=v.headers.get(`content-type`)??``,n;try{n=e.includes(`application/json`)?await v.json():await v.text()}catch{n=null}throw new t({statusCode:v.status,body:n,rawResponse:{status:v.status,statusText:v.statusText,url:v.url||p,headers:v.headers,redirected:v.redirected,type:v.type}})}let y=await v.arrayBuffer();return Buffer.from(y)}function l(e){process.stdout.write(e)}export{l as n,c as t};