cf 1.0.0-beta.24 → 1.0.0-beta.26

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 (243) hide show
  1. package/dist/_meta/commands.json +497 -145
  2. package/dist/_meta/hand-written-commands.json +60 -1
  3. package/dist/_meta/schemas.json +254 -2
  4. package/dist/{abuse-reports-CTOO4FJ4.mjs → abuse-reports-zPrsxbRz.mjs} +3 -3
  5. package/dist/{access-DFGLlXpy.mjs → access-DCOOmDC5.mjs} +1 -1
  6. package/dist/{accounts-C-wpV8Az.mjs → accounts-HC6XuIwP.mjs} +36 -34
  7. package/dist/{acm-thIt17mv.mjs → acm-DYgr6SAR.mjs} +1 -1
  8. package/dist/{addressing-D7VI7-Oi.mjs → addressing-BS66pJ_a.mjs} +1 -1
  9. package/dist/{agent-memory-duLTH8pl.mjs → agent-memory-BbXdueL0.mjs} +1 -1
  10. package/dist/{ai-ctIjDCq0.mjs → ai-BiIKznNv.mjs} +3 -3
  11. package/dist/{ai-audit-CjhuS21p.mjs → ai-audit-DI4Rw2wl.mjs} +1 -1
  12. package/dist/{ai-gateway-B1TIw7wl.mjs → ai-gateway-rlYCbts5.mjs} +3 -3
  13. package/dist/{ai-search-DUQBnOWH.mjs → ai-search-QOenIzDL.mjs} +1 -1
  14. package/dist/{ai-security-bdABwEIR.mjs → ai-security-BUwS6kVh.mjs} +2 -2
  15. package/dist/{alerting-I_KErGZy.mjs → alerting-BSzuvFk1.mjs} +1 -1
  16. package/dist/{analytics-DGxcDAWu.mjs → analytics-CQ-Yt1mm.mjs} +1 -1
  17. package/dist/{analytics-engine-DNNokw1O.mjs → analytics-engine-CdrY5-95.mjs} +1 -1
  18. package/dist/{api-security-CsPrJ-Xw.mjs → api-security-BBxEJjGv.mjs} +3 -3
  19. package/dist/{argo-BhNmRYk5.mjs → argo-BiefH8wc.mjs} +1 -1
  20. package/dist/{artifacts-DRo8KadB.mjs → artifacts-B9g9aPrk.mjs} +3 -3
  21. package/dist/{audit-logs-CzxDyTbx.mjs → audit-logs-BhJs-OS2.mjs} +1 -1
  22. package/dist/auth-C50SqX9F.mjs +7 -0
  23. package/dist/auth-Czzy5Rs_.mjs +2 -0
  24. package/dist/{auth-pbuzyz4C.mjs → auth-D5Yj9eYU.mjs} +1 -1
  25. package/dist/{auth-token-BcIV7k1B.mjs → auth-token-DvNoIhRL.mjs} +1 -1
  26. package/dist/{autoconfig-CXcy-e1R.mjs → autoconfig-ldsgXxa6.mjs} +75 -65
  27. package/dist/{basin-catalog-DoTn8zvi.mjs → basin-catalog-CtKFiH-n.mjs} +9 -9
  28. package/dist/{billing-CMbLzZV0.mjs → billing-BrLJqlOf.mjs} +1 -1
  29. package/dist/{blocks-DmOx-xEv.mjs → blocks-DnNrvi8s.mjs} +1 -1
  30. package/dist/{bot-management-CJs5WwAW.mjs → bot-management-BSBVuKc0.mjs} +1 -1
  31. package/dist/{botnet-feed-DeF7P5lI.mjs → botnet-feed-lD9s2oLA.mjs} +1 -1
  32. package/dist/{brand-protection-dx_B8OWa.mjs → brand-protection-Byoa1hvj.mjs} +2 -2
  33. package/dist/{browser-run-fRn9ItYu.mjs → browser-run-BSVANGzU.mjs} +1 -1
  34. package/dist/build-CPKxZ3kL.mjs +2 -0
  35. package/dist/{build-CCepbVuJ.mjs → build-Dwd1_7o0.mjs} +1 -1
  36. package/dist/{builds-5YhQ_zIm.mjs → builds-D3mAH87h.mjs} +1 -1
  37. package/dist/{cache-WQyxt7O5.mjs → cache-0xCdyNg9.mjs} +1 -1
  38. package/dist/cf-CpC4giTf.mjs +18 -0
  39. package/dist/{chunk-3PJ54H4K-C8sxQzhB.mjs → chunk-3PJ54H4K-CY8EY_n2.mjs} +1 -1
  40. package/dist/{chunk-2HLTAS5V-B92NbX1j.mjs → chunk-AAQI36FL-e6E5HW1g.mjs} +1 -1
  41. package/dist/{chunk-DSGVRFIS-CP2xC0bc.mjs → chunk-DSGVRFIS-vdfri8fR.mjs} +1 -1
  42. package/dist/{cli-CgkhNdjb.mjs → cli-Cm4Twas4.mjs} +3 -3
  43. package/dist/{client-side-security-COuAb7BM.mjs → client-side-security-BRn7KBpu.mjs} +1 -1
  44. package/dist/{cloud-connector-D1gjX0Dx.mjs → cloud-connector-DqkOIRDr.mjs} +1 -1
  45. package/dist/{cloudflared-FEg1GxHT.mjs → cloudflared-DDp_8PTK.mjs} +1 -1
  46. package/dist/{cloudforce-one-BmXgL6kB.mjs → cloudforce-one-B9k8vhso.mjs} +58 -58
  47. package/dist/{command-CA6yIa17.mjs → command--Y_QAiU2.mjs} +1 -1
  48. package/dist/{command-hh8rEbH4.mjs → command-B-_ba4rQ.mjs} +1 -1
  49. package/dist/{command-Dsi4sM8D.mjs → command-BKNQsGqu.mjs} +1 -1
  50. package/dist/{command-BG9JYUHo.mjs → command-BV8-laJK.mjs} +1 -1
  51. package/dist/{command-BaIY4UuC.mjs → command-BVz2aES3.mjs} +1 -1
  52. package/dist/{command-D3E7d8E7.mjs → command-BsCFkho-.mjs} +1 -1
  53. package/dist/{command-8hWrCCy6.mjs → command-CN8NFLs2.mjs} +1 -1
  54. package/dist/{command-B_Fxpr5v.mjs → command-CQMRxiDz.mjs} +1 -1
  55. package/dist/{command-DrdxR1tJ.mjs → command-CfOqnqlN.mjs} +1 -1
  56. package/dist/{command-WyIFe__L.mjs → command-DlI7Z_7j.mjs} +1 -1
  57. package/dist/{command-BJFKdqVc.mjs → command-Dn39o5xQ.mjs} +1 -1
  58. package/dist/{command-BfoLlrr1.mjs → command-DsOv6z9q.mjs} +1 -1
  59. package/dist/{command-qhfkede5.mjs → command-QHmV62Fv.mjs} +1 -1
  60. package/dist/{command-BXPssGfS.mjs → command-yOG9VUtq.mjs} +1 -1
  61. package/dist/{completions-BshG3sAO.mjs → completions-BA52jTea.mjs} +1 -1
  62. package/dist/{connector-interrupts-pNU4QmsW.mjs → connector-interrupts-zL7pxPn6.mjs} +1 -1
  63. package/dist/{connector-telemetry-events-BpRPtTdD.mjs → connector-telemetry-events-PL4Fqqvu.mjs} +1 -1
  64. package/dist/{connector-telemetry-snapshots-pNfynA2r.mjs → connector-telemetry-snapshots-DyBSuEFB.mjs} +1 -1
  65. package/dist/{connectors-CiWTAGHh.mjs → connectors-D8H6rQz9.mjs} +1 -1
  66. package/dist/{containers-IBtaInTL.mjs → containers-D4sa-Eoy.mjs} +193 -193
  67. package/dist/{containers-Dvq0NjQg.mjs → containers-Db-eWudu.mjs} +2 -2
  68. package/dist/{content-scan-B69hOyhb.mjs → content-scan-DUVq09i8.mjs} +1 -1
  69. package/dist/{context-BryBS1zQ.mjs → context-BvLXzoMs.mjs} +1 -1
  70. package/dist/{cps-DLgWaZMT.mjs → cps-CqaRliZZ.mjs} +1 -1
  71. package/dist/{csam-scanner-D1928b81.mjs → csam-scanner-DsXvOOsZ.mjs} +1 -1
  72. package/dist/{custom-csrs-DrxWBjmx.mjs → custom-csrs-Dl_daAbX.mjs} +1 -1
  73. package/dist/{custom-hostnames-BP1pxK1F.mjs → custom-hostnames-Cj_csfo_.mjs} +1 -1
  74. package/dist/{custom-nameservers-5DJLY479.mjs → custom-nameservers-Bw2P7F_W.mjs} +1 -1
  75. package/dist/{custom-pages-CNAsOY9a.mjs → custom-pages-CJ7ecSX6.mjs} +1 -1
  76. package/dist/{d1-Dge80Qgq.mjs → d1-BsWI546w.mjs} +2 -2
  77. package/dist/{delegate-CBKb0nov.mjs → delegate-CMfEjvHn.mjs} +1 -1
  78. package/dist/delegate.mjs +1 -1
  79. package/dist/{deploy-CR5b7uhB.mjs → deploy-DDbmxkiX.mjs} +1 -1
  80. package/dist/{deploy-context-D51tgJGI.mjs → deploy-context-DsEVu7bf.mjs} +1 -1
  81. package/dist/{deploy-input-em95cFc7.mjs → deploy-input-BA_3Q2Xu.mjs} +1 -1
  82. package/dist/{dev-BczBHbpj.mjs → dev-BS156bim.mjs} +1 -1
  83. package/dist/{diagnostics-BKKinCge.mjs → diagnostics-BmkQnSEb.mjs} +1 -1
  84. package/dist/{dist-D5YYi2LO.mjs → dist-DehXZozc.mjs} +4 -4
  85. package/dist/{dls-DU4HnxED.mjs → dls-DciZC_gQ.mjs} +1 -1
  86. package/dist/{dns-BzdH3geY.mjs → dns-C2YPspGN.mjs} +60 -58
  87. package/dist/{dns-firewall-puq_86Wd.mjs → dns-firewall-CRfde07f.mjs} +1 -1
  88. package/dist/{docs-AWb7X2VX.mjs → docs-CYjyBA8q.mjs} +1 -1
  89. package/dist/{dotenv-qsoPELMm.mjs → dotenv-DKRemNCH.mjs} +1 -1
  90. package/dist/{durable-objects-Dg6XPcsB.mjs → durable-objects-DcI97y4p.mjs} +1 -1
  91. package/dist/{email-auth-DXR0NU9R.mjs → email-auth-CMCQAu99.mjs} +1 -1
  92. package/dist/{email-domains-B00mAtjT.mjs → email-domains-1Nx60ETD.mjs} +1 -1
  93. package/dist/{email-routing-Cm19q9hA.mjs → email-routing-7p9dr5Ue.mjs} +1 -1
  94. package/dist/{email-security-CFKcS-DM.mjs → email-security-Bu0fAYh-.mjs} +2 -2
  95. package/dist/{email-sending-B3xSoKcC.mjs → email-sending-OpMZNaHZ.mjs} +1 -1
  96. package/dist/error-sanitization-B025CygB.mjs +2 -0
  97. package/dist/{error-sanitization-ahuAGEjT.mjs → error-sanitization-DG8WSzHe.mjs} +1 -1
  98. package/dist/{errors-CIQDUrWg.mjs → errors-C5RGao2J.mjs} +1 -1
  99. package/dist/{field-extractors-Csz8QknP.mjs → field-extractors-BfsNjd0e.mjs} +1 -1
  100. package/dist/{firewall-C8FW0Nb2.mjs → firewall-CJ-VIOk1.mjs} +22 -16
  101. package/dist/{flagship-v-bGZ_U-.mjs → flagship-C5PTR1ND.mjs} +1 -1
  102. package/dist/{fraud-VvfL2I5a.mjs → fraud-B7hwBheX.mjs} +1 -1
  103. package/dist/{google-tag-gateway-DF6fS2MQ.mjs → google-tag-gateway-D7iFDVEa.mjs} +1 -1
  104. package/dist/{healthchecks-D3p3E4WL.mjs → healthchecks-B4jTcKV7.mjs} +1 -1
  105. package/dist/{hyperdrive-DopYL1dK.mjs → hyperdrive-1432DM-p.mjs} +1 -1
  106. package/dist/{iam-cIfyshlf.mjs → iam-DuZenYtc.mjs} +1 -1
  107. package/dist/{images-BR5fP_6r.mjs → images-Ttea4khD.mjs} +1 -1
  108. package/dist/index.mjs +1 -1
  109. package/dist/{init-JXRQoqGP.mjs → init-BeYrAg7Q.mjs} +1 -1
  110. package/dist/{intel-BvNrrM7V.mjs → intel-CJznBf5n.mjs} +2 -2
  111. package/dist/{interactive-DOWEcR6_.mjs → interactive-DsU8VDvK.mjs} +1 -1
  112. package/dist/{internal-DcnAVlpA.mjs → internal-DOho_iA0.mjs} +1 -1
  113. package/dist/{ips-BUEIuhhw.mjs → ips-BgNoRwFN.mjs} +1 -1
  114. package/dist/{k2-Dm4LvAhL.mjs → k2-Cj1ORHul.mjs} +1 -1
  115. package/dist/{kv-7oD-JIak.mjs → kv-CTyuvcAz.mjs} +1 -1
  116. package/dist/{lazy-command-CD1nuS38.mjs → lazy-command-DeTzOWvU.mjs} +1 -1
  117. package/dist/{leaked-credential-checks-B6s8hUYU.mjs → leaked-credential-checks-21Wc7OqL.mjs} +1 -1
  118. package/dist/list-4MfEFwJN.mjs +2 -0
  119. package/dist/list-ByCv9-Fl.mjs +2 -0
  120. package/dist/{live-CHP4AXSN.mjs → live-BfrWKfq8.mjs} +1 -1
  121. package/dist/{load-balancers-B_yvINGW.mjs → load-balancers-DMTsh-9q.mjs} +1 -1
  122. package/dist/local-CWTti4ot.mjs +2 -0
  123. package/dist/{local-CIeKNHSz.mjs → local-CvzO-cQH.mjs} +1 -1
  124. package/dist/{local-runtime-DOSBgJlo.mjs → local-runtime-DOpR_Tnc.mjs} +1 -1
  125. package/dist/{login-h8vuvNN3.mjs → login-CVWkMh1L.mjs} +2 -2
  126. package/dist/login-Djz5mvHJ.mjs +2 -0
  127. package/dist/{logpush-B70rNMOP.mjs → logpush-OMhp7VgE.mjs} +2 -2
  128. package/dist/{logs-DqmqCNqQ.mjs → logs-BSyyNwso.mjs} +1 -1
  129. package/dist/{magic-cloud-networking-CurtlBvl.mjs → magic-cloud-networking-DD29yMnE.mjs} +3 -3
  130. package/dist/{magic-network-monitoring-OzpX7MfI.mjs → magic-network-monitoring-DRRvSrDP.mjs} +1 -1
  131. package/dist/{magic-transit-Ca_CROhr.mjs → magic-transit-BhP424T-.mjs} +1 -1
  132. package/dist/{managed-defense-BRxv0mgy.mjs → managed-defense-6l_B3hn_.mjs} +1 -1
  133. package/dist/{managed-transforms-C7YLIPdN.mjs → managed-transforms-D7FMBsnq.mjs} +1 -1
  134. package/dist/{mcp-B_StIx94.mjs → mcp-BUOfMkBP.mjs} +1 -1
  135. package/dist/{mesh-YW-p6Tkx.mjs → mesh-B1RrhAT1.mjs} +1 -1
  136. package/dist/{migrate-CrBgU7Xm.mjs → migrate-BTU8AvlP.mjs} +1 -1
  137. package/dist/{monetization-rMP8HK_4.mjs → monetization-Da3ooFLC.mjs} +1 -1
  138. package/dist/{network-D9Do7C-u.mjs → network-CjhSzhMm.mjs} +2 -2
  139. package/dist/{network-interconnects-DYMhB3TR.mjs → network-interconnects-DEQD6GM8.mjs} +1 -1
  140. package/dist/{o11y-HT9_9NUF.mjs → o11y-DeNxXxcp.mjs} +1 -1
  141. package/dist/{oauth-D6uh5ZdS.mjs → oauth-DdXkpU44.mjs} +1 -1
  142. package/dist/{oauth-DetIFT59.mjs → oauth-Dnog5v-Q.mjs} +2 -2
  143. package/dist/{oauth-clients-B_BJco0Z.mjs → oauth-clients-UnbMcHkx.mjs} +1 -1
  144. package/dist/oauth-scopes-DbtnZVO4.mjs +4 -0
  145. package/dist/{organization-DhxMPdqU.mjs → organization-IsxVyWol.mjs} +4 -4
  146. package/dist/organizations-p8Mgo8A7.mjs +4 -0
  147. package/dist/{origin-post-quantum-encryption-CPZQGLmW.mjs → origin-post-quantum-encryption-Bwysyttf.mjs} +1 -1
  148. package/dist/package-BOE_De2L.mjs +2 -0
  149. package/dist/{page-rules-0nDfdFWr.mjs → page-rules-D2eFbKWb.mjs} +1 -1
  150. package/dist/{pages-Br-w5HLL.mjs → pages-DYZDvWK6.mjs} +2 -2
  151. package/dist/{pay-per-crawl-Di6UpJoo.mjs → pay-per-crawl-CgPFv5HT.mjs} +1 -1
  152. package/dist/{pay-per-use-Bm7Nxf6s.mjs → pay-per-use-BIQrsrTy.mjs} +1 -1
  153. package/dist/{pipelines-BRVI3bV9.mjs → pipelines-D6pkhlpm.mjs} +1 -1
  154. package/dist/{precursor-DyrQWdO5.mjs → precursor-B35P8h6h.mjs} +1 -1
  155. package/dist/{previews-rpfwcJzi.mjs → previews-B1mqjXaJ.mjs} +1 -1
  156. package/dist/{progress-C_yVLVcl.mjs → progress-B-CVX0kn.mjs} +1 -1
  157. package/dist/{prompt-kxvGZ6nF.mjs → prompt-DJF_Rs5S.mjs} +1 -1
  158. package/dist/{queues-BGV3aC26.mjs → queues-DaqLO-UO.mjs} +1 -1
  159. package/dist/{r2-CWMqr3JJ.mjs → r2-DDIU9JN3.mjs} +1 -1
  160. package/dist/radar-D59qCgld.mjs +300 -0
  161. package/dist/{raw-fetch-C_hWBr7n.mjs → raw-fetch-BrOxDN9k.mjs} +1 -1
  162. package/dist/{ready-BXz5amSL.mjs → ready-DgE08svD.mjs} +1 -1
  163. package/dist/{realtime-9jG5GaNK.mjs → realtime-DWjdrDzv.mjs} +2 -2
  164. package/dist/{registrar-sandbox-D9ldxGPo.mjs → registrar-sandbox-uzs3eOKk.mjs} +2 -2
  165. package/dist/{registrar-C-2I1SJh.mjs → registrar-uYOU1U27.mjs} +10 -10
  166. package/dist/{reporting-Bk3dc6Gi.mjs → reporting-Dx2YTick.mjs} +1 -1
  167. package/dist/{request-headers-B5Rjq7Ic.mjs → request-headers-DHzBX7dQ.mjs} +1 -1
  168. package/dist/{request-tracers-H-iRAUdG.mjs → request-tracers-B49cBKkj.mjs} +1 -1
  169. package/dist/{resource-sharing-A6ITunsT.mjs → resource-sharing-CIsLVAcK.mjs} +2 -2
  170. package/dist/{rules-BntvQdnS.mjs → rules-CjgLSlUC.mjs} +1 -1
  171. package/dist/{rulesets-DKz_iYU_.mjs → rulesets-C7_aZA7m.mjs} +1 -1
  172. package/dist/{rum-D9zpcNqT.mjs → rum-vPEpMS_h.mjs} +1 -1
  173. package/dist/{run-BlSXngtI.mjs → run-BZ6Fj3jQ.mjs} +1 -1
  174. package/dist/run-D4-K_cbQ.mjs +2 -0
  175. package/dist/schema-cache-C_rvto6Y.mjs +3 -0
  176. package/dist/schema-flags-Cr6kleor.mjs +4 -0
  177. package/dist/{scim-DVhxKKpH.mjs → scim-BA7XbsSu.mjs} +1 -1
  178. package/dist/{secrets-store-3mxJrDWJ.mjs → secrets-store-MEUNt1Ph.mjs} +2 -2
  179. package/dist/{security-insights-BDLWuG0E.mjs → security-insights-ZKtey62s.mjs} +5 -5
  180. package/dist/{security-txt-COzdrpdW.mjs → security-txt-DikhnR2L.mjs} +1 -1
  181. package/dist/{session-X3xaW70I.mjs → session-BOnam-Wv.mjs} +1 -1
  182. package/dist/{shared-foRpbmSV.mjs → shared-DmmWSObC.mjs} +1 -1
  183. package/dist/{signed-url-Dgi1p-Qi.mjs → signed-url-C-24KbWB.mjs} +1 -1
  184. package/dist/{smart-shield-DSDA5bZt.mjs → smart-shield-DPqLMz7M.mjs} +1 -1
  185. package/dist/{snippets-myowgDLd.mjs → snippets-Bi3Uq1DF.mjs} +1 -1
  186. package/dist/{spawn-C8D5pzxJ.mjs → spawn-C3hzWVrJ.mjs} +1 -1
  187. package/dist/{spectrum-CB-NzbZ7.mjs → spectrum-BaWKMoAl.mjs} +5 -5
  188. package/dist/{speed-UqKG1WDl.mjs → speed-DShjlpAs.mjs} +1 -1
  189. package/dist/{sql-BzikdIje.mjs → sql-DCoFf15T.mjs} +1 -1
  190. package/dist/{src-B9agxHh8.mjs → src-jyCTFHcS.mjs} +5 -5
  191. package/dist/{ssl-BmWWsUX6.mjs → ssl-C4nt4pJK.mjs} +2 -2
  192. package/dist/{startup-profile-B7yHR_YB.mjs → startup-profile-CFJ_Lu1c.mjs} +1 -1
  193. package/dist/startup-profile-D_Qjgca1.mjs +2 -0
  194. package/dist/state-C7lNNN31.mjs +2 -0
  195. package/dist/{state-DNuVv5i-.mjs → state-DmjHXZat.mjs} +1 -1
  196. package/dist/{stream-G87TzC9e.mjs → stream-CpZbnSpH.mjs} +1 -1
  197. package/dist/{tags-Ctl4fLux.mjs → tags-BIjQ3Kjh.mjs} +2 -2
  198. package/dist/{telemetry-CA0_i9-l.mjs → telemetry-BDhqOpUw.mjs} +1 -1
  199. package/dist/telemetry-BZdRnr26.mjs +2 -0
  200. package/dist/{tenant-t5yPFQOx.mjs → tenant-CqYoylyU.mjs} +1 -1
  201. package/dist/{tenant-custom-nameservers-B2ehXfQK.mjs → tenant-custom-nameservers-DDzzdyY3.mjs} +1 -1
  202. package/dist/{tunnels-DL_VgV0P.mjs → tunnels-CXAO2CeL.mjs} +3 -3
  203. package/dist/{turnstile-CEjw5vn6.mjs → turnstile-Ctm0rs0q.mjs} +1 -1
  204. package/dist/ui-BUCBQ3Sq.mjs +2 -0
  205. package/dist/{update-check-2Mn4Z1ln.mjs → update-check-D_Wtw0_D.mjs} +1 -1
  206. package/dist/{update-check-LF-JcHRF.mjs → update-check-Dc7cRFlx.mjs} +1 -1
  207. package/dist/update-check-worker.mjs +1 -1
  208. package/dist/{url-normalization-BL_BkGvP.mjs → url-normalization-DOfc2Q7a.mjs} +1 -1
  209. package/dist/{url-scanner-CVzV9Syq.mjs → url-scanner-J8M3X2tR.mjs} +2 -2
  210. package/dist/{user-YnQSmPNR.mjs → user-BaF0qvvO.mjs} +1 -1
  211. package/dist/{vectorize-C5ZwKQzI.mjs → vectorize-D5qiggZU.mjs} +1 -1
  212. package/dist/version-DNcdABcr.mjs +2 -0
  213. package/dist/{waiting-rooms-D9V1Fm16.mjs → waiting-rooms-BdmAq7ul.mjs} +1 -1
  214. package/dist/{web-assets-yzPkWgLy.mjs → web-assets-BySw_Tme.mjs} +5 -5
  215. package/dist/{web3-DbWNUhP4.mjs → web3-BKkKf1RF.mjs} +1 -1
  216. package/dist/{workers-r9Aj68v1.mjs → workers-TS0oQ-XH.mjs} +2 -2
  217. package/dist/{workers-builds-DgIDPDhj.mjs → workers-builds-CVJ4FqzB.mjs} +1 -1
  218. package/dist/{workers-for-platforms-CoPp1ez5.mjs → workers-for-platforms-mzdtmr6r.mjs} +1 -1
  219. package/dist/{workers-vpc-Cvjg15bk.mjs → workers-vpc-xB1hHFPd.mjs} +1 -1
  220. package/dist/{workflows-D4SIo58Q.mjs → workflows-Cr957c4U.mjs} +1 -1
  221. package/dist/{wrangler-migration-D2HwxIG5.mjs → wrangler-migration-DZV7-4Fp.mjs} +5 -5
  222. package/dist/{zaraz-CkqpiZBH.mjs → zaraz-C8__FhOh.mjs} +2 -2
  223. package/dist/{zero-trust-CEY-lohP.mjs → zero-trust-BVCvQJ4e.mjs} +64 -58
  224. package/dist/{zones-BWieAez1.mjs → zones-BzyjOT10.mjs} +2 -2
  225. package/package.json +12 -12
  226. package/dist/auth-B2V5gsm4.mjs +0 -2
  227. package/dist/auth-CyF_s5ic.mjs +0 -2
  228. package/dist/build-CgpCJjPA.mjs +0 -2
  229. package/dist/cf-CInFH4Ng.mjs +0 -18
  230. package/dist/error-sanitization-rodO1WCL.mjs +0 -2
  231. package/dist/local-CTaqb1nl.mjs +0 -2
  232. package/dist/login-pt6gTX3x.mjs +0 -2
  233. package/dist/oauth-scopes-Cub2pl0Z.mjs +0 -4
  234. package/dist/organizations-DIduPB74.mjs +0 -4
  235. package/dist/package-Bf2u3-yO.mjs +0 -2
  236. package/dist/radar-D8x_TUAi.mjs +0 -300
  237. package/dist/run-DB1-Sj9a.mjs +0 -2
  238. package/dist/schema-flags-CoTAkrz8.mjs +0 -5
  239. package/dist/startup-profile-zt6cFnBn.mjs +0 -2
  240. package/dist/state-C5mQ9At8.mjs +0 -2
  241. package/dist/telemetry-jl3s2-bN.mjs +0 -2
  242. package/dist/ui-Dt1-eURh.mjs +0 -2
  243. package/dist/version-Bz705iJe.mjs +0 -2
@@ -1,4 +1,4 @@
1
1
  #!/usr/bin/env node
2
- import{i as e,n as t}from"./auth-pbuzyz4C.mjs";import{i as n}from"./context-BryBS1zQ.mjs";import{t as r}from"./output-BJEgbI0G.mjs";import{t as i}from"./dry-run-gy0Hl9xo.mjs";import{t as a}from"./progress-C_yVLVcl.mjs";import{t as o}from"./run-BlSXngtI.mjs";import"./telemetry-jl3s2-bN.mjs";import{a as s,n as c,s as l,t as u}from"./body-parser-BKcZS9iJ.mjs";function d(e){return e.usage("$0 precursor get\n\nRetrieve a zone's Precursor configuration: the detection `mode`, whether to `show_interstitial`, and the ordered list of `rules`.").option(`cloudflare-version`,{type:`string`,description:`Selects the split Precursor API schema.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const f={command:`get`,describe:`Get Zone Precursor Config`,builder:d,handler:async s=>o({command:`precursor get`,classification:{safeFlags:[`dry-run`]}},s,async()=>{let o={};if(s[`cloudflare-version`]!==void 0&&(o[`Cloudflare-Version`]=String(s[`cloudflare-version`])),s.dryRun){i({command:`cf precursor get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/zones/${s.zone??s.zoneId??`<zone>`}/precursor`,pathParams:{"zone-id":String(s.zone??s[`zone-id`]??``)},bodyKind:`none`});return}let c=await t(s);s.zoneId=await n({zone:s.zone},c,{quiet:s.quiet});let l=await a(`Loading`,async()=>e(c,`GET`,`/zones/${s.zoneId}/precursor`,{headers:Object.keys(o).length>0?o:void 0}));r(l,{successLabel:`Loaded`})})};function p(e){return e.usage("$0 precursor update\n\nUpdates the Precursor configuration for a zone. `mode` controls whether Precursor detection is off, monitoring, or armed. `show_interstitial` controls the zone-level response when armed. `rules` is the ordered list of overrides for matching requests. This is a partial update: only the fields present in the request body are changed. - Sending an empty array (`[]`) clears all rules. - At least one of `mode`, `show_interstitial`, or `rules` must be present; an empty body (`{}`) is rejected with `400`. - Rule `id` is read-only (assigned by Cloudflare) and ignored on input. - Rule `show_interstitial` is required and controls the response for requests that match that rule. - Rule `expression` is limited to 4000 characters. The limit applies to each rule individually, not to the combined size of all rules.").option(`cloudflare-version`,{type:`string`,description:`Selects the split Precursor API schema.`,demandOption:!0}).option(`rules`,{type:`string`,description:`The ordered list of Precursor rules for the zone. Provide as a JSON array of objects or @path/to/file.json.`}).option(`show-interstitial`,{type:`boolean`,description:`Whether Precursor shows an interstitial when it takes action on a
2
+ import{i as e,n as t}from"./auth-D5Yj9eYU.mjs";import{i as n}from"./context-BvLXzoMs.mjs";import{t as r}from"./output-BJEgbI0G.mjs";import{t as i}from"./dry-run-gy0Hl9xo.mjs";import{t as a}from"./progress-B-CVX0kn.mjs";import{t as o}from"./run-BZ6Fj3jQ.mjs";import"./telemetry-BZdRnr26.mjs";import{a as s,n as c,s as l,t as u}from"./body-parser-BKcZS9iJ.mjs";function d(e){return e.usage("$0 precursor get\n\nRetrieve a zone's Precursor configuration: the detection `mode`, whether to `show_interstitial`, and the ordered list of `rules`.").option(`cloudflare-version`,{type:`string`,description:`Selects the split Precursor API schema.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const f={command:`get`,describe:`Get Zone Precursor Config`,builder:d,handler:async s=>o({command:`precursor get`,classification:{safeFlags:[`dry-run`]}},s,async()=>{let o={};if(s[`cloudflare-version`]!==void 0&&(o[`Cloudflare-Version`]=String(s[`cloudflare-version`])),s.dryRun){i({command:`cf precursor get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/zones/${s.zone??s.zoneId??`<zone>`}/precursor`,pathParams:{"zone-id":String(s.zone??s[`zone-id`]??``)},bodyKind:`none`});return}let c=await t(s);s.zoneId=await n({zone:s.zone},c,{quiet:s.quiet});let l=await a(`Loading`,async()=>e(c,`GET`,`/zones/${s.zoneId}/precursor`,{headers:Object.keys(o).length>0?o:void 0}));r(l,{successLabel:`Loaded`})})};function p(e){return e.usage("$0 precursor update\n\nUpdates the Precursor configuration for a zone. `mode` controls whether Precursor detection is off, monitoring, or armed. `show_interstitial` controls the zone-level response when armed. `rules` is the ordered list of overrides for matching requests. This is a partial update: only the fields present in the request body are changed. - Sending an empty array (`[]`) clears all rules. - At least one of `mode`, `show_interstitial`, or `rules` must be present; an empty body (`{}`) is rejected with `400`. - Rule `id` is read-only (assigned by Cloudflare) and ignored on input. - Rule `show_interstitial` is required and controls the response for requests that match that rule. - Rule `expression` is limited to 4000 characters. The limit applies to each rule individually, not to the combined size of all rules.").option(`cloudflare-version`,{type:`string`,description:`Selects the split Precursor API schema.`,demandOption:!0}).option(`rules`,{type:`string`,description:`The ordered list of Precursor rules for the zone. Provide as a JSON array of objects or @path/to/file.json.`}).option(`show-interstitial`,{type:`boolean`,description:`Whether Precursor shows an interstitial when it takes action on a
3
3
  request.
4
4
  `}).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 m={command:`update`,describe:`Update Zone Precursor Config`,builder:p,handler:async d=>o({command:`precursor update`,classification:{safeFlags:[`show-interstitial`,`dry-run`]}},d,async()=>{let o={};if(d[`cloudflare-version`]!==void 0&&(o[`Cloudflare-Version`]=String(d[`cloudflare-version`])),d.dryRun){i({command:`cf precursor update`,method:`PUT`,url:`https://api.cloudflare.com/client/v4/zones/${d.zone??d.zoneId??`<zone>`}/precursor`,pathParams:{"zone-id":String(d.zone??d[`zone-id`]??``)},bodyKind:`json`,body:d.body===void 0?u({rules:s(d.rules,`rules`),show_interstitial:d[`show-interstitial`],cloudflare_version:d[`cloudflare-version`]}):c(d.body)});return}let f=await t(d);if(d.zoneId=await n({zone:d.zone},f,{quiet:d.quiet}),d.body){let t=c(d.body),n=await a(`Updating`,async()=>e(f,`PUT`,`/zones/${d.zoneId}/precursor`,{body:t,headers:Object.keys(o).length>0?o:void 0}));r(n,{successLabel:`Updated`});return}let p={};d.rules!==void 0&&l(p,[`rules`],s(d.rules,`rules`)),d[`show-interstitial`]!==void 0&&l(p,[`show_interstitial`],d[`show-interstitial`]),d[`cloudflare-version`]!==void 0&&(p.cloudflare_version=d[`cloudflare-version`]);let m=await a(`Updating`,async()=>e(f,`PUT`,`/zones/${d.zoneId}/precursor`,{body:p,headers:Object.keys(o).length>0?o:void 0}));r(m,{successLabel:`Updated`})})},h={command:`precursor`,describe:`Precursor settings for a zone`,builder:e=>e.command(f).command(m).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};export{h as default};
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import{r as e}from"./dotenv-qsoPELMm.mjs";import{J as t,K as n,rt as r,z as i}from"./dist-D5YYi2LO.mjs";import{t as a}from"./hand-written-dry-run-B82fRl2N.mjs";import{t as o}from"./local-CIeKNHSz.mjs";import{i as s,n as c}from"./auth-pbuzyz4C.mjs";import{a as l,t as u}from"./context-BryBS1zQ.mjs";import{d,s as f}from"./interactive-DOWEcR6_.mjs";import{C as p,_ as m,d as h,f as g,l as _,r as v,t as y,x as b,y as x}from"./deploy-context-D51tgJGI.mjs";import{t as S}from"./output-BJEgbI0G.mjs";import{t as C}from"./dry-run-gy0Hl9xo.mjs";import{t as w}from"./progress-C_yVLVcl.mjs";import{n as T,t as E}from"./run-BlSXngtI.mjs";import"./telemetry-jl3s2-bN.mjs";import{n as D}from"./prompt-kxvGZ6nF.mjs";import{i as O,n as k,o as A,r as j,s as M,t as N,u as P}from"./containers-IBtaInTL.mjs";import{a as F,c as I,i as ee,n as L,o as R,r as z,s as B}from"./build-CCepbVuJ.mjs";import{t as V}from"./deploy-input-em95cFc7.mjs";import{readBuildOutput as H}from"@cloudflare/build-output-utils";function U(e){return e.usage(`$0 previews delete <name>
2
+ import{r as e}from"./dotenv-DKRemNCH.mjs";import{J as t,K as n,rt as r,z as i}from"./dist-DehXZozc.mjs";import{t as a}from"./hand-written-dry-run-B82fRl2N.mjs";import{t as o}from"./local-CvzO-cQH.mjs";import{i as s,n as c}from"./auth-D5Yj9eYU.mjs";import{a as l,t as u}from"./context-BvLXzoMs.mjs";import{d,s as f}from"./interactive-DsU8VDvK.mjs";import{C as p,_ as m,d as h,f as g,l as _,r as v,t as y,x as b,y as x}from"./deploy-context-DsEVu7bf.mjs";import{t as S}from"./output-BJEgbI0G.mjs";import{t as C}from"./dry-run-gy0Hl9xo.mjs";import{t as w}from"./progress-B-CVX0kn.mjs";import{n as T,t as E}from"./run-BZ6Fj3jQ.mjs";import"./telemetry-BZdRnr26.mjs";import{n as D}from"./prompt-DJF_Rs5S.mjs";import{i as O,n as k,o as A,r as j,s as M,t as N,u as P}from"./containers-D4sa-Eoy.mjs";import{a as F,c as I,i as ee,n as L,o as R,r as z,s as B}from"./build-Dwd1_7o0.mjs";import{t as V}from"./deploy-input-BA_3Q2Xu.mjs";import{readBuildOutput as H}from"@cloudflare/build-output-utils";function U(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 W={command:`delete <name>`,describe:`Delete Preview`,builder:U,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 l();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 c(e),r=e.local?o:await u();if(e.accountId=r,!await D({force:!!e.force,message:`This operation permanently deletes the Preview.`}))return;let i=await w(`Deleting`,async()=>s(n,`DELETE`,`/accounts/${r}/workers/workers/${encodeURIComponent(String(e.worker))}/previews/${encodeURIComponent(String(e.name))}`,{query:t}));S(i,{successLabel:`Deleted`})})};function G(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)=>K(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 x(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 q(r,e,i.id,a,t,o.localImageReferences?.get(r.class_name));await _({imageRef:l,durable_object_namespace_id:n,configFileName:`cloudflare.config.ts`,observabilityTargetPercentageField:`targetInstancePercentage`,observabilityTargetCountField:`targetInstanceCount`},r,t,a)}await h(e.standard.builtImages.filter(({container:e})=>!o.localImageReferences?.has(e.class_name)),r())})}}async function K(e,t){if(!e)return t();let n=f();d(`error`);try{return await t()}finally{d(n)}}async function q(e,t,n,i,a,o){if(o!==void 0)return p({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 b(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 J(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`,z)}function Y(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 X(t){let n=t[`preview-name`],r=n??A();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:
5
5
 
@@ -1,2 +1,2 @@
1
1
  #!/usr/bin/env node
2
- import{t as e}from"./theme-BGHWSKCw.mjs";import{t}from"./args-BAOHroBC.mjs";import{n}from"./version-Bz705iJe.mjs";import{t as r}from"./session-X3xaW70I.mjs";import{s as i}from"./log-BWdaOGOW.mjs";import{n as a}from"./interactive-wQM7Blhm.mjs";const o={Hidden:0,Normal:1,Error:2,Indeterminate:3,Warning:4},s=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(o.Indeterminate))}clear(){this.isSupported&&process.stderr.write(`\x1b]9;4;${o.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`)}},c=[`⠋`,`⠙`,`⠹`,`⠸`,`⠼`,`⠴`,`⠦`,`⠧`,`⠇`,`⠏`];function l(){return!(!e(process.env,process.stderr.isTTY===!0)||a()||process.env.CF_QUIET===`1`)}async function u(e,t){if(!l())return t();r(n);let a=i({frames:[...c],indicator:`timer`,delay:80,output:process.stderr});s.setIndeterminate(),a.start(e);let o=e=>process.exit(e===`SIGTERM`?143:130),u=e=>{e===0&&(process.exitCode=130)};process.on(`SIGINT`,o),process.on(`SIGTERM`,o),process.on(`exit`,u);try{let n=await t();return s.clear(),a.stop(e),n}catch(t){throw s.clear(),a.error(e),t}finally{process.off(`SIGINT`,o),process.off(`SIGTERM`,o),process.off(`exit`,u)}}export{u as t};
2
+ import{t as e}from"./theme-BGHWSKCw.mjs";import{t}from"./args-BAOHroBC.mjs";import{n}from"./version-DNcdABcr.mjs";import{t as r}from"./session-BOnam-Wv.mjs";import{s as i}from"./log-BWdaOGOW.mjs";import{n as a}from"./interactive-wQM7Blhm.mjs";const o={Hidden:0,Normal:1,Error:2,Indeterminate:3,Warning:4},s=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(o.Indeterminate))}clear(){this.isSupported&&process.stderr.write(`\x1b]9;4;${o.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`)}},c=[`⠋`,`⠙`,`⠹`,`⠸`,`⠼`,`⠴`,`⠦`,`⠧`,`⠇`,`⠏`];function l(){return!(!e(process.env,process.stderr.isTTY===!0)||a()||process.env.CF_QUIET===`1`)}async function u(e,t){if(!l())return t();r(n);let a=i({frames:[...c],indicator:`timer`,delay:80,output:process.stderr});s.setIndeterminate(),a.start(e);let o=e=>process.exit(e===`SIGTERM`?143:130),u=e=>{e===0&&(process.exitCode=130)};process.on(`SIGINT`,o),process.on(`SIGTERM`,o),process.on(`exit`,u);try{let n=await t();return s.clear(),a.stop(e),n}catch(t){throw s.clear(),a.error(e),t}finally{process.off(`SIGINT`,o),process.off(`SIGTERM`,o),process.off(`exit`,u)}}export{u as t};
@@ -1,4 +1,4 @@
1
1
  #!/usr/bin/env node
2
- import{r as e}from"./theme-BGHWSKCw.mjs";import{t}from"./cli-exit-CstFZ1eJ.mjs";import{n}from"./version-Bz705iJe.mjs";import{t as r}from"./session-X3xaW70I.mjs";import{a as i,c as a,l as o,n as s,o as c,r as l}from"./log-BWdaOGOW.mjs";import{n as u}from"./interactive-wQM7Blhm.mjs";import{i as d}from"./dialog-D5lus4M4.mjs";function f(e){return e.replace(/[\p{Cc}\p{Cf}\p{Zl}\p{Zp}]/gu,` `)}function p(){r(n)}async function m(){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"./cli-exit-CstFZ1eJ.mjs";import{n}from"./version-DNcdABcr.mjs";import{t as r}from"./session-BOnam-Wv.mjs";import{a as i,c as a,l as o,n as s,o as c,r as l}from"./log-BWdaOGOW.mjs";import{n as u}from"./interactive-wQM7Blhm.mjs";import{i as d}from"./dialog-D5lus4M4.mjs";function f(e){return e.replace(/[\p{Cc}\p{Cf}\p{Zl}\p{Zp}]/gu,` `)}function p(){r(n)}async function m(){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 h(e,n,r){let s=r?.kind??`text`;if(u()){if(s===`secret`){let t=await m();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}`,l=d(n||r?.question||c),f=e=>e&&e.length>0?r?.validate?.(e):`Value cannot be empty`;p();let h=s===`secret`?await i({message:l,mask:`•`,validate:f,output:process.stderr}):await a({message:l,validate:f,output:process.stderr});if(o(h)||typeof h!=`string`)throw new t(130,{cancelled:!0});return h}async function g(e,n,r,i={}){let a=f(e),s=r.map(f);if(u())throw Error(`--${a} is required (one of: ${s.join(`, `)}). Pass --${a} <value> or run interactively.`);let l=`Select value for --${a}`,d=f(n||l);p();let m=await c({message:d,output:process.stderr,options:r.map(e=>({value:e,label:f((Object.hasOwn(i,e)?i[e]:void 0)??e)}))});if(o(m)||typeof m!=`string`)throw new t(130,{cancelled:!0});return m}async function _(e,n){if(u())throw Error(`--${e} is required and must be true. Pass --${e} or run interactively.`);p();let r=await l({message:n||`Confirm --${e}`,initialValue:!1,output:process.stderr});if(o(r))throw new t(130,{cancelled:!0});return r===!0}async function v(e,{defaultValue:n=!0,fallbackValue:r=!0}={}){if(u())return process.stderr.write(`? ${e}\n Using fallback value in non-interactive context: ${r?`yes`:`no`}\n`),r;p();let i=await l({message:e,initialValue:n,output:process.stderr});if(o(i))throw new t(130,{cancelled:!0});return i===!0}async function y(n={}){if(n.force===!0)return!0;let r=n.message?`${n.message} Continue?`:`This permanently deletes the resource. Continue?`;if(u())throw process.stderr.write(`${e.warning(`?`)} ${r}\n ${e.muted(`(non-interactive; pass --force to confirm)`)}\nAborted.
4
4
  `),new t(1);p();let i=await l({message:r,initialValue:!1,output:process.stderr});if(o(i))throw new t(130,{cancelled:!0});return i===!0||(s(`Aborted.`,{output:process.stderr}),!1)}export{h as a,g as i,y as n,f as o,_ as r,v as t};
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import"./api-X3wKppsT.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{t}from"./local-CIeKNHSz.mjs";import{n}from"./auth-pbuzyz4C.mjs";import{a as r,t as i}from"./context-BryBS1zQ.mjs";import{t as a}from"./output-BJEgbI0G.mjs";import{t as o}from"./dry-run-gy0Hl9xo.mjs";import{t as s}from"./progress-C_yVLVcl.mjs";import{t as c}from"./run-BlSXngtI.mjs";import"./telemetry-jl3s2-bN.mjs";import{a as l,n as u,t as d}from"./body-parser-BKcZS9iJ.mjs";import{n as f}from"./input-validation-D7z60HJH.mjs";import{a as p,i as m,n as h}from"./prompt-kxvGZ6nF.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-X3wKppsT.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{t}from"./local-CvzO-cQH.mjs";import{n}from"./auth-D5Yj9eYU.mjs";import{a as r,t as i}from"./context-BvLXzoMs.mjs";import{t as a}from"./output-BJEgbI0G.mjs";import{t as o}from"./dry-run-gy0Hl9xo.mjs";import{t as s}from"./progress-B-CVX0kn.mjs";import{t as c}from"./run-BZ6Fj3jQ.mjs";import"./telemetry-BZdRnr26.mjs";import{a as l,n as u,t as d}from"./body-parser-BKcZS9iJ.mjs";import{n as f}from"./input-validation-D7z60HJH.mjs";import{a as p,i as m,n as h}from"./prompt-DJF_Rs5S.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}):u(e.body)});return}let c=await n(e),l=e.local?t:await i();if(e.accountId=l,e.body){let t=u(e.body),n=await s(`Creating`,async()=>c.send(g,{body:t,account_id:l,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:l,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
 
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import"./api-X3wKppsT.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{t}from"./local-CIeKNHSz.mjs";import{i as n,n as r}from"./auth-pbuzyz4C.mjs";import{a as i,t as a}from"./context-BryBS1zQ.mjs";import{t as o}from"./output-BJEgbI0G.mjs";import{t as s}from"./dry-run-gy0Hl9xo.mjs";import{t as c}from"./progress-C_yVLVcl.mjs";import{t as l}from"./run-BlSXngtI.mjs";import"./telemetry-jl3s2-bN.mjs";import{a as u,n as d,s as f,t as p}from"./body-parser-BKcZS9iJ.mjs";import{n as m,t as h}from"./input-validation-D7z60HJH.mjs";import{a as g,i as _,n as v}from"./prompt-kxvGZ6nF.mjs";import{n as y,t as b}from"./raw-fetch-C_hWBr7n.mjs";function ee(e){return e.usage(`$0 r2 buckets cors delete <bucket-name>
2
+ import"./api-X3wKppsT.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{t}from"./local-CvzO-cQH.mjs";import{i as n,n as r}from"./auth-D5Yj9eYU.mjs";import{a as i,t as a}from"./context-BvLXzoMs.mjs";import{t as o}from"./output-BJEgbI0G.mjs";import{t as s}from"./dry-run-gy0Hl9xo.mjs";import{t as c}from"./progress-B-CVX0kn.mjs";import{t as l}from"./run-BZ6Fj3jQ.mjs";import"./telemetry-BZdRnr26.mjs";import{a as u,n as d,s as f,t as p}from"./body-parser-BKcZS9iJ.mjs";import{n as m,t as h}from"./input-validation-D7z60HJH.mjs";import{a as g,i as _,n as v}from"./prompt-DJF_Rs5S.mjs";import{n as y,t as b}from"./raw-fetch-BrOxDN9k.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.`}))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>
5
5