cf 1.0.0-beta.1 → 1.0.0-beta.3

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 (356) hide show
  1. package/README.md +12 -0
  2. package/dist/_meta/commands.json +7481 -10370
  3. package/dist/_meta/hand-written-commands.json +578 -40
  4. package/dist/_meta/schemas.json +29048 -31332
  5. package/dist/{abuse-reports-Dd6kJM7r.mjs → abuse-reports-CWX7WKhe.mjs} +11 -11
  6. package/dist/access-2aKv_Dya.mjs +2 -0
  7. package/dist/{account-CZ9SPVdz.mjs → account-CnZO9-bl.mjs} +5 -5
  8. package/dist/{account-tags-DAf-hq1m.mjs → account-tags-ClLZOfTA.mjs} +4 -4
  9. package/dist/{accounts-BDIKjiG2.mjs → accounts-Cbj9aFyY.mjs} +59 -59
  10. package/dist/{acm-D-q1FVWJ.mjs → acm-wGJ9cnzE.mjs} +3 -3
  11. package/dist/{addressing-0w2U1NEy.mjs → addressing-YvHX2dAb.mjs} +50 -50
  12. package/dist/agent-context-GRiQ4zRU.mjs +2 -0
  13. package/dist/{agent-memory-Drumm4qd.mjs → agent-memory-B4N-lmLb.mjs} +15 -15
  14. package/dist/{ai-audit-CPrmohqf.mjs → ai-audit-CG_DG6N7.mjs} +1 -1
  15. package/dist/ai-gateway-DUttjxrN.mjs +80 -0
  16. package/dist/{ai-ARwLeQ1O.mjs → ai-lziiVEGR.mjs} +14 -14
  17. package/dist/{ai-search-B5l4IDSR.mjs → ai-search-k63uopiK.mjs} +37 -37
  18. package/dist/{ai-security-C7_IGDDl.mjs → ai-security-D10lzYTn.mjs} +1 -1
  19. package/dist/{alerting-B6m1Rhf4.mjs → alerting-c4ICS8KO.mjs} +26 -26
  20. package/dist/{analytics-nnzFBB_7.mjs → analytics-CEQ0EVTq.mjs} +9 -9
  21. package/dist/{analytics_engine-BvjKCwn1.mjs → analytics_engine-B9kiAPbY.mjs} +2 -2
  22. package/dist/{api-security-B9IozS2a.mjs → api-security-6LlxeiOi.mjs} +61 -61
  23. package/dist/{argo-C_QcqR6P.mjs → argo-BCcp1ybr.mjs} +1 -1
  24. package/dist/args-CXgkQKK7.mjs +2 -0
  25. package/dist/{artifacts-DDFNpYBz.mjs → artifacts-PoO3rAvo.mjs} +20 -20
  26. package/dist/{audit-logs-cTzNV0DV.mjs → audit-logs-Vt3NbAA1.mjs} +2 -2
  27. package/dist/auth-3bFlHTVl.mjs +8 -0
  28. package/dist/auth-BfYtTyXo.mjs +2 -0
  29. package/dist/autoconfig-DqgOi1kW.mjs +511 -0
  30. package/dist/banner-ClclgnBn.mjs +2 -0
  31. package/dist/{billing-DU2X-q-x.mjs → billing-DVrpin2a.mjs} +10 -10
  32. package/dist/{bot-management-BHAAoZOh.mjs → bot-management-Bw-GZWoT.mjs} +1 -1
  33. package/dist/{botnet-feed-DOOnGVVY.mjs → botnet-feed-ov970cZf.mjs} +5 -5
  34. package/dist/{brand-protection-C_DYa7IK.mjs → brand-protection-C7WOvdx6.mjs} +13 -13
  35. package/dist/browser-extension-C1zmKFDG.mjs +2 -0
  36. package/dist/{browser-run-Dw-vgWGR.mjs → browser-run-DhnKUXVv.mjs} +23 -23
  37. package/dist/build-CVvo9BvP.mjs +2 -0
  38. package/dist/build-vfD1txJe.mjs +2 -0
  39. package/dist/{builds-CO0MmSd3.mjs → builds-BIqfNXEE.mjs} +31 -31
  40. package/dist/{cache-XxusQxXe.mjs → cache-Dzl3kth1.mjs} +1 -1
  41. package/dist/{certificate-authorities-Dmxh7w-Z.mjs → certificate-authorities-CQinLiq_.mjs} +1 -1
  42. package/dist/cf-O3gEaXYZ.mjs +18 -0
  43. package/dist/chunk-M77HNR46-DPbhuhiy.mjs +2 -0
  44. package/dist/chunk-RV27PEH3-Cws_30ln.mjs +97 -0
  45. package/dist/chunk-U6NEESU5-BhF4rnpx.mjs +2 -0
  46. package/dist/chunk-WMOON6TZ-D_ToS88f.mjs +2 -0
  47. package/dist/cli-ZXrxm369.mjs +6 -0
  48. package/dist/cli-exit-Dqoo6Jgb.mjs +2 -0
  49. package/dist/client-certificates--vw-4vvy.mjs +13 -0
  50. package/dist/{client-side-security-D7NWV0YH.mjs → client-side-security-YCsdeK3e.mjs} +1 -1
  51. package/dist/{cloud-connector-XMFOTNqT.mjs → cloud-connector-CwSi4zZI.mjs} +1 -1
  52. package/dist/{cloudflared-DhItYrCq.mjs → cloudflared-CH8rOneA.mjs} +1 -1
  53. package/dist/{cloudforce-one-Cew4MHvA.mjs → cloudforce-one-hEykJeqy.mjs} +214 -214
  54. package/dist/command-Axp5Wfpj.mjs +2 -0
  55. package/dist/command-BH-TMJWp.mjs +2 -0
  56. package/dist/command-C1CwuI4O.mjs +2 -0
  57. package/dist/command-CIZDQPmS.mjs +2 -0
  58. package/dist/command-CeL8kQCM.mjs +2 -0
  59. package/dist/command-ChDtawgh.mjs +2 -0
  60. package/dist/command-D5nZoVE1.mjs +2 -0
  61. package/dist/command-DBCoI1fN.mjs +2 -0
  62. package/dist/command-DBpr6U4L.mjs +2 -0
  63. package/dist/command-DrQKTf1O.mjs +2 -0
  64. package/dist/command-IuYNIUk9.mjs +2 -0
  65. package/dist/command-L0y09SE5.mjs +2 -0
  66. package/dist/{command-RiZ_LYcm.mjs → command-ZSxcR8-J.mjs} +1 -1
  67. package/dist/command-egPOyKbx.mjs +2 -0
  68. package/dist/command-jJKEah9i.mjs +2 -0
  69. package/dist/{completions-xPLd1cvL.mjs → completions-DNisLHie.mjs} +26 -26
  70. package/dist/{connector-interrupts-BfQN_pm6.mjs → connector-interrupts-uIHLde10.mjs} +3 -3
  71. package/dist/{connector-telemetry-events-B7qLZsZJ.mjs → connector-telemetry-events-D2MH0OSs.mjs} +3 -3
  72. package/dist/{connector-telemetry-snapshots-Ckvg9BPc.mjs → connector-telemetry-snapshots-CQICQaGf.mjs} +3 -3
  73. package/dist/{connectors-BhvAP5fb.mjs → connectors-BXwvP7SF.mjs} +7 -7
  74. package/dist/{containers-Cq1gtnq6.mjs → containers-ClK7HGfx.mjs} +70 -72
  75. package/dist/{containers-Bl3EY-cy.mjs → containers-DOyOrVV9.mjs} +17 -17
  76. package/dist/{content-scan-BYGe9fFj.mjs → content-scan-B71JZ7G6.mjs} +1 -1
  77. package/dist/context-5JRcefHh.mjs +7 -0
  78. package/dist/{cps-BWMDWeVq.mjs → cps-CzNfFv-5.mjs} +1 -1
  79. package/dist/{csamScanner-DMYGzLNi.mjs → csamScanner-BfZcrcjk.mjs} +1 -1
  80. package/dist/{ct-alerting-Vq4l2s7n.mjs → ct-alerting-Cm8YLmXE.mjs} +1 -1
  81. package/dist/{custom-certificates-BDEHH0Ym.mjs → custom-certificates-DFMRe9_D.mjs} +4 -4
  82. package/dist/{custom-csrs-CHSkZNdX.mjs → custom-csrs-B5njuvdd.mjs} +5 -5
  83. package/dist/{custom-hostnames-Bch3iQZC.mjs → custom-hostnames-D06jQfNs.mjs} +6 -6
  84. package/dist/{custom-nameservers-Tdvu1-vr.mjs → custom-nameservers-CKwKLqbF.mjs} +5 -5
  85. package/dist/{custom-pages-rFsiIXlr.mjs → custom-pages-D339_r6I.mjs} +10 -10
  86. package/dist/{d1-C1GK7DsW.mjs → d1-CHXmF-Ga.mjs} +14 -14
  87. package/dist/{dcv-delegation-D6xiYj2l.mjs → dcv-delegation-BAnTwW8J.mjs} +1 -1
  88. package/dist/{delegate-GctF_lrq.mjs → delegate-B6LetRpZ.mjs} +1 -1
  89. package/dist/delegate.mjs +1 -1
  90. package/dist/{deploy-D04Xvm0m.mjs → deploy-CsQbufsL.mjs} +1 -1
  91. package/dist/{deploy-input-COEKxOA1.mjs → deploy-input-dwBe8pSi.mjs} +1 -1
  92. package/dist/dev-BpvWl6pG.mjs +4 -0
  93. package/dist/{diagnostics-BZVAAguV.mjs → diagnostics-BEUAWeLH.mjs} +7 -7
  94. package/dist/dialog-BlUXJKbA.mjs +2 -0
  95. package/dist/discover-DmIsaE54.mjs +2 -0
  96. package/dist/dist-CpufWpsP.mjs +48 -0
  97. package/dist/{dist-BpadEMNY.mjs → dist-DW47TUGh.mjs} +35 -35
  98. package/dist/dist-DfMipWKR.mjs +366 -0
  99. package/dist/{dls-BsnURYja.mjs → dls-CXS7bPlj.mjs} +8 -8
  100. package/dist/{dns-B_nTXhuM.mjs → dns-Dx7oPdtH.mjs} +63 -63
  101. package/dist/{dns-firewall-DDsrdulo.mjs → dns-firewall-wcP1fgB-.mjs} +8 -8
  102. package/dist/dot-prop-IITUZ2XW-BilKo4kO.mjs +2 -0
  103. package/dist/dotenv-CcQjGlV0.mjs +4 -0
  104. package/dist/dry-run-Bq0JAsbX.mjs +2 -0
  105. package/dist/{durable-objects-8U8DpF9q.mjs → durable-objects-DmieQflu.mjs} +4 -4
  106. package/dist/{email-auth-CzjtGH6g.mjs → email-auth-DiO-k5wt.mjs} +1 -1
  107. package/dist/{email-routing-B92fty1-.mjs → email-routing-CycPV4UR.mjs} +24 -24
  108. package/dist/{email-security-keTqF0nJ.mjs → email-security-DhtBU1X_.mjs} +77 -79
  109. package/dist/{email-sending-B7f95epu.mjs → email-sending-BjgiwUht.mjs} +23 -23
  110. package/dist/error-sanitization-Cu-8OKRA.mjs +2 -0
  111. package/dist/error-sanitization-Dc4bLj8k.mjs +2 -0
  112. package/dist/{fieldExtractors-DL_H1m7E.mjs → fieldExtractors-BOBRZ8gw.mjs} +4 -4
  113. package/dist/firewall-Dc0Xm26N.mjs +36 -0
  114. package/dist/{flagship-CjC3dF7L.mjs → flagship-BRqR3ioN.mjs} +13 -13
  115. package/dist/{fraud-DU_YCLC5.mjs → fraud-Czu1ed5n.mjs} +1 -1
  116. package/dist/generate-BAHK895m.mjs +2 -0
  117. package/dist/generate-DWW1YPjv.mjs +3 -0
  118. package/dist/{google-tag-gateway-xqN-QudN.mjs → google-tag-gateway-DsZA0a1r.mjs} +1 -1
  119. package/dist/gt-DmcMNPX6.mjs +2 -0
  120. package/dist/{healthchecks-COnq1YOx.mjs → healthchecks-CFH5bIAG.mjs} +1 -1
  121. package/dist/{hostnames-CxRAY_Pp.mjs → hostnames-CKDSQsXT.mjs} +1 -1
  122. package/dist/{hyperdrive-DPWyiXpj.mjs → hyperdrive-BLiI7eoy.mjs} +9 -9
  123. package/dist/{iam-CtX9NPCy.mjs → iam-B5mdfq5e.mjs} +24 -24
  124. package/dist/{images-CuWFOsGw.mjs → images-IVRjrB4_.mjs} +38 -38
  125. package/dist/index.mjs +1 -1
  126. package/dist/init-C6pA2OKl.mjs +39 -0
  127. package/dist/{intel-BeGV3VXt.mjs → intel-CvesITo3.mjs} +38 -38
  128. package/dist/interactive-C-o16XQs.mjs +32 -0
  129. package/dist/interactive-SgAjen2z.mjs +2 -0
  130. package/dist/{ips-d6aoKAI4.mjs → ips-DT9GaimG.mjs} +1 -1
  131. package/dist/keyless-certificates-B0Xe5WqA.mjs +13 -0
  132. package/dist/{keys-Fyf3vWcA.mjs → keys-BfcwaSGe.mjs} +2 -2
  133. package/dist/kv-BAKDr9h1.mjs +15 -0
  134. package/dist/lazy-command-BR3u8SQ2.mjs +2 -0
  135. package/dist/{leaked-credential-checks-B7ewx3W-.mjs → leaked-credential-checks-gRpF7J9-.mjs} +1 -1
  136. package/dist/{load-balancers-DHD4f2CT.mjs → load-balancers-CLVWIN9d.mjs} +39 -39
  137. package/dist/local-22UA5g9y.mjs +2 -0
  138. package/dist/{local-B6b2OIBW.mjs → local-CxYne8s2.mjs} +1 -1
  139. package/dist/{local-runtime-DD8DAIlm.mjs → local-runtime-C_fR3pz4.mjs} +1 -1
  140. package/dist/login-B2IW-LZC.mjs +5 -0
  141. package/dist/login-BKQI53YQ.mjs +2 -0
  142. package/dist/{logo-matches-BAX8v3iL.mjs → logo-matches-CmCWQC_j.mjs} +3 -3
  143. package/dist/{logos-BWBVGwU6.mjs → logos-DoGIvvML.mjs} +3 -3
  144. package/dist/{logpush-CZKR8DHO.mjs → logpush-C2fS4mz8.mjs} +23 -23
  145. package/dist/{logs-CiDyrqEu.mjs → logs-DOchrxC9.mjs} +16 -16
  146. package/dist/{magic-cloud-networking-DttrBXqd.mjs → magic-cloud-networking-BTWKttlB.mjs} +34 -34
  147. package/dist/{magic-network-monitoring-9VXDSYuL.mjs → magic-network-monitoring-C_6hCn_f.mjs} +17 -17
  148. package/dist/{magic-transit-Dsu_cSGM.mjs → magic-transit-B-Rmmg-Z.mjs} +139 -139
  149. package/dist/{managed-defense-SYreve4W.mjs → managed-defense-BPSLbGgV.mjs} +9 -9
  150. package/dist/{managed-transforms-CzSy_xPw.mjs → managed-transforms-BqiDVQD6.mjs} +1 -1
  151. package/dist/{matches-qf7GReyu.mjs → matches-wLc335So.mjs} +3 -3
  152. package/dist/{mcp-DYSk5_gc.mjs → mcp-CmQOrkzP.mjs} +15 -15
  153. package/dist/{mesh-DdY07OYt.mjs → mesh-DRuFq2pw.mjs} +12 -12
  154. package/dist/migrate-DBwOnU6B.mjs +2 -0
  155. package/dist/mtls-certificates-BUcQwJGQ.mjs +13 -0
  156. package/dist/{network-DpaZ5LJL.mjs → network-BuXy0ysq.mjs} +24 -24
  157. package/dist/{network-interconnects-C4uUoeNa.mjs → network-interconnects-BzfPaxkW.mjs} +17 -17
  158. package/dist/oauth-BYmfy7l7.mjs +9 -0
  159. package/dist/{oauth-nsTDJ0dF.mjs → oauth-BlFK0DPZ.mjs} +1 -1
  160. package/dist/{oauth-clients-D7Ou7oAS.mjs → oauth-clients-CnABE4xT.mjs} +7 -7
  161. package/dist/{oauth-scopes-BFoE82Mv.mjs → oauth-scopes-BFy1Hw7K.mjs} +1 -1
  162. package/dist/{observability-smcOFbC1.mjs → observability-B1IkzeE0.mjs} +44 -44
  163. package/dist/open-PCXX3ZDZ-BKRik1gi.mjs +4 -0
  164. package/dist/{organization-Dyf_0mq4.mjs → organization-DeIzTyFr.mjs} +1 -1
  165. package/dist/{organizations-D7zGPLVm.mjs → organizations-dpNO5XaQ.mjs} +1 -1
  166. package/dist/{origin-ca-certificates-DJrp29gv.mjs → origin-ca-certificates-B-1YtC61.mjs} +3 -3
  167. package/dist/{origin-post-quantum-encryption-BYj3kJiq.mjs → origin-post-quantum-encryption-DdvwucsG.mjs} +1 -1
  168. package/dist/{origin-tls-client-auth-j0tGh6Fy.mjs → origin-tls-client-auth-CzfpVmTE.mjs} +5 -5
  169. package/dist/output-CvQFJkvi.mjs +2 -0
  170. package/dist/{page-rules-CLzba_nr.mjs → page-rules--wnIp30C.mjs} +1 -1
  171. package/dist/pages-DvhJZv5S.mjs +60 -0
  172. package/dist/{pay-per-crawl-DbaTVI8V.mjs → pay-per-crawl-lqX3Rwt9.mjs} +32 -32
  173. package/dist/{pay-per-use-BEvtoppJ.mjs → pay-per-use-BRKnBlz2.mjs} +3 -3
  174. package/dist/{pipelines-lps71uoA.mjs → pipelines-CvePummb.mjs} +20 -20
  175. package/dist/precursor-DgotmHQd.mjs +4 -0
  176. package/dist/previews-Brsuhzmk.mjs +4 -0
  177. package/dist/progress-DUeNqM-j.mjs +2 -0
  178. package/dist/prompt-DV6YTdoa.mjs +3 -0
  179. package/dist/{queries-EJYlFw8m.mjs → queries-CLqy4AM6.mjs} +4 -4
  180. package/dist/{queues-CozKGaA4.mjs → queues-D0Y4LNP1.mjs} +29 -35
  181. package/dist/r2-D_FuuTGm.mjs +132 -0
  182. package/dist/{r2-data-catalog-Bfn3AWzn.mjs → r2-data-catalog-D5Fvpr3C.mjs} +16 -16
  183. package/dist/{radar-NmpdyMo5.mjs → radar-B6bYFNVn.mjs} +1 -1
  184. package/dist/raw-fetch-Cp3EaTcj.mjs +2 -0
  185. package/dist/{realtime-iWTz8WbH.mjs → realtime-BTBZoZNW.mjs} +78 -78
  186. package/dist/{registrar-Cza1L8i_.mjs → registrar-CFh4TCkC.mjs} +8 -8
  187. package/dist/{registrar-sandbox-BP4GQg5s.mjs → registrar-sandbox-By6ukXxf.mjs} +6 -6
  188. package/dist/{registry-vreNkX6u.mjs → registry-kYRASukx.mjs} +1 -1
  189. package/dist/{reporting-gvXX2MxY.mjs → reporting-Cf3q4cuO.mjs} +7 -7
  190. package/dist/request-headers-jdUlF-_S.mjs +2 -0
  191. package/dist/{request-tracers-F8a_aj32.mjs → request-tracers-CqNmb-dS.mjs} +2 -2
  192. package/dist/resolve-PZuJ878-.mjs +2 -0
  193. package/dist/{resource-sharing-D6XWIDmb.mjs → resource-sharing-vDvq5J5a.mjs} +14 -14
  194. package/dist/{resource-tagging-c_z4VZt0.mjs → resource-tagging-DRCkpRmf.mjs} +2 -2
  195. package/dist/{rules-_QDaG3U5.mjs → rules-D-IfU82u.mjs} +8 -8
  196. package/dist/{rulesets-Bc4ZuPG_.mjs → rulesets-ezJUnXm7.mjs} +17 -17
  197. package/dist/{rum-ChPyfpM2.mjs → rum-G42H7AXu.mjs} +14 -14
  198. package/dist/run-BhfDNWCI.mjs +2 -0
  199. package/dist/run-djd1-6kN.mjs +2 -0
  200. package/dist/{schema-flags-C9lbLgE-.mjs → schema-flags-yDMur8UR.mjs} +2 -2
  201. package/dist/schema-s22s29sJ.mjs +2 -0
  202. package/dist/{scim-BjiswXbC.mjs → scim-DgRlqTtE.mjs} +10 -10
  203. package/dist/{sdk-CsWOex96.mjs → sdk-Bx29ZKK3.mjs} +2 -2
  204. package/dist/{secrets-store-Cn3D5a0d.mjs → secrets-store-DcNmMGG2.mjs} +11 -11
  205. package/dist/{security-center-DP4GC1cG.mjs → security-center-CZwVaL7t.mjs} +15 -15
  206. package/dist/{security-txt-CaR5Idmz.mjs → security-txt-CD0RAEsU.mjs} +1 -1
  207. package/dist/session-CjQFm10R.mjs +2 -0
  208. package/dist/shared-Cfuwhk19.mjs +2 -0
  209. package/dist/{smart-shield-CphSzoh4.mjs → smart-shield-C72SYuAe.mjs} +1 -1
  210. package/dist/{snippets-r-Mre0cE.mjs → snippets-Bl4Rfvdf.mjs} +1 -1
  211. package/dist/source-38bULAR8.mjs +6 -0
  212. package/dist/spawn-PBhhCQdl.mjs +10 -0
  213. package/dist/{spectrum-BhjCVFZk.mjs → spectrum-BgOMd04u.mjs} +1 -1
  214. package/dist/{speed-CPgypY7n.mjs → speed-dahwVmv-.mjs} +1 -1
  215. package/dist/src-npcmT3gh.mjs +109 -0
  216. package/dist/{ssl-DsMrXyqK.mjs → ssl-BMZZPgJx.mjs} +4 -4
  217. package/dist/startup-profile-B0UCc9_J.mjs +2 -0
  218. package/dist/startup-profile-DrV846S5.mjs +17 -0
  219. package/dist/{state-BxCejn42.mjs → state-DhHOAdTo.mjs} +1 -1
  220. package/dist/state-Dyo8DcW7.mjs +2 -0
  221. package/dist/{stream-L2NmGPby.mjs → stream-CsQ8wMMF.mjs} +45 -45
  222. package/dist/{submit-KN0Ul5fV.mjs → submit-DdoTeeRt.mjs} +2 -2
  223. package/dist/{tags-CZMFKGdP.mjs → tags-BESTUjkv.mjs} +2 -2
  224. package/dist/telemetry-CVjp5qaj.mjs +2 -0
  225. package/dist/telemetry-iBZ-f6og.mjs +2 -0
  226. package/dist/{tenant-Cu4P-foo.mjs → tenant-COyp8x56.mjs} +1 -1
  227. package/dist/{tenant-custom-nameservers-Nx59Buv0.mjs → tenant-custom-nameservers-BdrnvyTk.mjs} +1 -1
  228. package/dist/{theme-BiIYWOed.mjs → theme-BIWQFmZ0.mjs} +2 -2
  229. package/dist/tools-LlzHD_86.mjs +2 -0
  230. package/dist/{tunnels-C-mMZy4v.mjs → tunnels-CjDCYR0_.mjs} +15 -15
  231. package/dist/turnstile-crX-kMig.mjs +33 -0
  232. package/dist/ui-BQxRjahW.mjs +5 -0
  233. package/dist/update-check-BpLdkJeA.mjs +2 -0
  234. package/dist/update-check-CtmTFJ-O.mjs +2 -0
  235. package/dist/update-check-worker.mjs +1 -1
  236. package/dist/{url-info-7ikewAnp.mjs → url-info-CSU3TaVe.mjs} +2 -2
  237. package/dist/{url-normalization-B0D7Fhf3.mjs → url-normalization-DKZYH3Tv.mjs} +1 -1
  238. package/dist/{url-scanner-DpKIqkin.mjs → url-scanner-mtiMlSyE.mjs} +8 -8
  239. package/dist/{user-BFq8UM1s.mjs → user-DuDnsFvs.mjs} +1 -1
  240. package/dist/{values-DnBYV1ZD.mjs → values-B4gL0UvN.mjs} +2 -2
  241. package/dist/{vectorize-BpZ4UsUj.mjs → vectorize-CEC7tpRJ.mjs} +15 -15
  242. package/dist/version-CPwqVR_p.mjs +2 -0
  243. package/dist/{waiting-rooms-DJfqehy9.mjs → waiting-rooms-CosskYpi.mjs} +25 -25
  244. package/dist/{web-assets-CCSSW_JH.mjs → web-assets-Do2JEl4p.mjs} +1 -1
  245. package/dist/{web3-bbT1REPc.mjs → web3-C3sb4DR8.mjs} +1 -1
  246. package/dist/{workers-CXuyjZB8.mjs → workers-ByA4Nddg.mjs} +20 -20
  247. package/dist/{workers-builds-TRF3K416.mjs → workers-builds-CDE-wcw-.mjs} +7 -7
  248. package/dist/{workers-for-platforms-B57iKiSN.mjs → workers-for-platforms-CvZI2B1d.mjs} +11 -11
  249. package/dist/{workers-vpc-kgryQ48l.mjs → workers-vpc-WbwBVV_L.mjs} +6 -6
  250. package/dist/{workflows-CKdPlIkK.mjs → workflows-Ch7cNhhq.mjs} +20 -20
  251. package/dist/{zaraz-BXFlEWSx.mjs → zaraz-BO7WT_U7.mjs} +1 -1
  252. package/dist/{zero-trust-M08mBsYd.mjs → zero-trust-CTKtzxxW.mjs} +466 -426
  253. package/dist/{zone-DHmrotGW.mjs → zone-DSHj2Vv2.mjs} +1 -1
  254. package/dist/{zones-C0eKBTqG.mjs → zones-CeFb9USG.mjs} +1 -1
  255. package/package.json +13 -11
  256. package/dist/access-C_2rEi0H.mjs +0 -27
  257. package/dist/ai-gateway-DNY4FPF2.mjs +0 -147
  258. package/dist/auth-DJhSjNNL.mjs +0 -8
  259. package/dist/auth-sAorfdWU.mjs +0 -2
  260. package/dist/browser-extension-C48pKh3t.mjs +0 -15
  261. package/dist/build-1a8CiNIT.mjs +0 -2
  262. package/dist/build-Ca_drQY2.mjs +0 -2
  263. package/dist/cf-oadujOtC.mjs +0 -18
  264. package/dist/chunk-6EUZQHAF-QVTL_mC-.mjs +0 -2
  265. package/dist/chunk-DL5FNmn1.mjs +0 -2
  266. package/dist/chunk-Q72B4Q5Z-Cr1H_iK6.mjs +0 -2
  267. package/dist/chunk-Q72B4Q5Z-DKhx_4ok.mjs +0 -2
  268. package/dist/chunk-QBZBEHZB-Byagrlop.mjs +0 -2
  269. package/dist/chunk-XLADBZ7F-BXKOjWbx.mjs +0 -374
  270. package/dist/client-certificates-CgaIc3zN.mjs +0 -13
  271. package/dist/command-CF0giIIc.mjs +0 -3
  272. package/dist/command-CsZFRm3P.mjs +0 -2
  273. package/dist/command-DBz8QiFk.mjs +0 -2
  274. package/dist/config-B4vIa0zp.mjs +0 -2
  275. package/dist/data-security-DDhPnX8Z.mjs +0 -71
  276. package/dist/dev-CVD3BVUG.mjs +0 -4
  277. package/dist/dialog--iw0F2s-.mjs +0 -2
  278. package/dist/dist-CUUGKvjh.mjs +0 -48
  279. package/dist/dist-dc4E1u01.mjs +0 -272
  280. package/dist/dot-prop-6SRZBKHT-Dj7YOlwR.mjs +0 -2
  281. package/dist/dry-run-CLX6Pbtq.mjs +0 -2
  282. package/dist/error-sanitization-Cbd_oegl.mjs +0 -2
  283. package/dist/error-sanitization-DwOlM3R7.mjs +0 -2
  284. package/dist/firewall-67qoXiqD.mjs +0 -56
  285. package/dist/interactive-B6woOLo-.mjs +0 -32
  286. package/dist/interactive-DnUvQHjc.mjs +0 -2
  287. package/dist/keyless-certificates-Dvib4jhw.mjs +0 -13
  288. package/dist/kv-CA4J7cCq.mjs +0 -21
  289. package/dist/local-BrfySqnx.mjs +0 -2
  290. package/dist/login-CLW108XX.mjs +0 -5
  291. package/dist/login-xgRjiyJa.mjs +0 -2
  292. package/dist/mtls-certificates-LXlgdkf1.mjs +0 -13
  293. package/dist/oauth-Dzk6Gy-6.mjs +0 -14
  294. package/dist/open-PBXRGS4R-C4CKEADM.mjs +0 -4
  295. package/dist/open-PBXRGS4R-C_-G_4DC.mjs +0 -4
  296. package/dist/output-Bia1u2k5.mjs +0 -2
  297. package/dist/pages-pah6dZBJ.mjs +0 -60
  298. package/dist/precursor-DTTYLDEa.mjs +0 -4
  299. package/dist/previews-B89cUmpr.mjs +0 -4
  300. package/dist/progress-D_mL-Kcy.mjs +0 -2
  301. package/dist/prompt-sL_yMZbI.mjs +0 -3
  302. package/dist/r2-Chn_JQUM.mjs +0 -127
  303. package/dist/raw-fetch-lSVttVJF.mjs +0 -2
  304. package/dist/request-headers-POBKmu93.mjs +0 -2
  305. package/dist/resolve-BXemCSyA.mjs +0 -2
  306. package/dist/run-DtN51G2A.mjs +0 -2
  307. package/dist/run-oACgYK8I.mjs +0 -2
  308. package/dist/schema-DZSSJaY0.mjs +0 -2
  309. package/dist/shared-W9uoX1-W.mjs +0 -2
  310. package/dist/source-BR4_k2ad.mjs +0 -6
  311. package/dist/spawn-BWEuIO-w.mjs +0 -523
  312. package/dist/src-Hw-TlVAO.mjs +0 -108
  313. package/dist/startup-profile-CYEokTVe.mjs +0 -2
  314. package/dist/startup-profile-CgWHy4rE.mjs +0 -17
  315. package/dist/state-DSzkxXML.mjs +0 -2
  316. package/dist/telemetry-CSj_ezpk.mjs +0 -2
  317. package/dist/telemetry-DAf9gLyH.mjs +0 -2
  318. package/dist/telemetry-Dk1GcQ0u.mjs +0 -5
  319. package/dist/tools-BMKpYraQ.mjs +0 -2
  320. package/dist/turnstile-39JL9tMt.mjs +0 -33
  321. package/dist/ui-DH95w1Qk.mjs +0 -5
  322. package/dist/undici-DTSBJHNS.mjs +0 -96
  323. package/dist/update-check-BKQBD4MQ.mjs +0 -2
  324. package/dist/update-check-CE9XB6gf.mjs +0 -2
  325. package/dist/version-Bh3b9vTa.mjs +0 -2
  326. /package/dist/{Page-C-JHZnIy.mjs → Page-CjJht2qT.mjs} +0 -0
  327. /package/dist/{alerts-CstOk8n0.mjs → alerts-DqZgVSCT.mjs} +0 -0
  328. /package/dist/{autorag-PRTwXGgn.mjs → autorag-Cq9k9Ye6.mjs} +0 -0
  329. /package/dist/{body-parser-CUWbw_Tq.mjs → body-parser-hh2avzkz.mjs} +0 -0
  330. /package/dist/{brands-BHRXlWDm.mjs → brands-DeLbFxSt.mjs} +0 -0
  331. /package/dist/{clear-UvKESVx3.mjs → clear-CRfI7WS7.mjs} +0 -0
  332. /package/dist/{cli-types-tt_LZMbn.mjs → cli-types-DoVT5q_M.mjs} +0 -0
  333. /package/dist/{connector-telemetry-events-latest-DwnFeZg0.mjs → connector-telemetry-events-latest-D8p_dR8s.mjs} +0 -0
  334. /package/dist/{connector-telemetry-snapshots-latest-Dv6rZlxs.mjs → connector-telemetry-snapshots-latest-COFmzmlk.mjs} +0 -0
  335. /package/dist/{domain-info-BqTDXNBo.mjs → domain-info-aiwP60Fo.mjs} +0 -0
  336. /package/dist/{health-CwPzzrV6.mjs → health-Bz33n-_F.mjs} +0 -0
  337. /package/dist/{input-validation-Ch4Vllrm.mjs → input-validation-Dk52b0me.mjs} +0 -0
  338. /package/dist/{internal-WLHfxX64.mjs → internal-BHrJbbdA.mjs} +0 -0
  339. /package/dist/{lifecycle-Ichnb2x1.mjs → lifecycle-C7tAC1Mn.mjs} +0 -0
  340. /package/dist/{live-D_k7eHdv.mjs → live-a01OfPf9.mjs} +0 -0
  341. /package/dist/{metadata-APBiectA.mjs → metadata-C33s4rc-.mjs} +0 -0
  342. /package/dist/{project-settings-DSXevRvj.mjs → project-settings-DO6njFg_.mjs} +0 -0
  343. /package/dist/{rate-limit-analytics-CDTPxSET.mjs → rate-limit-analytics-Bw9qmxMx.mjs} +0 -0
  344. /package/dist/{rate-limits-C3K9smdl.mjs → rate-limits-CDm_xzKt.mjs} +0 -0
  345. /package/dist/{ready-CvwvbdTX.mjs → ready-BXGqY1Wi.mjs} +0 -0
  346. /package/dist/{recent-submissions-CjzcT-iH.mjs → recent-submissions-AhGZD3a3.mjs} +0 -0
  347. /package/dist/{refute-CIAFMj00.mjs → refute-D_w5Gw20.mjs} +0 -0
  348. /package/dist/{resolve-CUDKxUrW.mjs → resolve-BCTrtcx7.mjs} +0 -0
  349. /package/dist/{scan-logo-zFkphtQ3.mjs → scan-logo-BZzFam-Q.mjs} +0 -0
  350. /package/dist/{scan-page-CLl2MAkZ.mjs → scan-page-BPA8nSPM.mjs} +0 -0
  351. /package/dist/{search-12jA1b4l.mjs → search-De0UlXYN.mjs} +0 -0
  352. /package/dist/{signed-url-U0T_PEMR.mjs → signed-url-ziDz9frX.mjs} +0 -0
  353. /package/dist/{submission-info-CZ84a3Nb.mjs → submission-info-83D2DCCG.mjs} +0 -0
  354. /package/dist/{total-queries-CJTc9Pde.mjs → total-queries-Dhol31Kn.mjs} +0 -0
  355. /package/dist/{tracked-domains-BKLxnnSv.mjs → tracked-domains-DoOPs6Vd.mjs} +0 -0
  356. /package/dist/{verify-CZW5Fo1q.mjs → verify-CxpGEnJb.mjs} +0 -0
@@ -1,24 +1,24 @@
1
1
  #!/usr/bin/env node
2
- import{t as e}from"./local-B6b2OIBW.mjs";import{m as t,v as n}from"./oauth-Dzk6Gy-6.mjs";import{r}from"./auth-DJhSjNNL.mjs";import{t as i}from"./output-Bia1u2k5.mjs";import{t as a}from"./dry-run-CLX6Pbtq.mjs";import{t as o}from"./progress-D_mL-Kcy.mjs";import{t as s}from"./run-DtN51G2A.mjs";import"./telemetry-DAf9gLyH.mjs";import{n as c,t as l}from"./body-parser-CUWbw_Tq.mjs";import{n as u}from"./input-validation-Ch4Vllrm.mjs";import{a as d,n as f}from"./prompt-sL_yMZbI.mjs";import{t as p}from"./cli-types-tt_LZMbn.mjs";function m(e){return e.usage(`$0 secrets-store quota get
2
+ import{t as e}from"./local-CxYne8s2.mjs";import{a as t,t as n}from"./context-5JRcefHh.mjs";import{r}from"./auth-3bFlHTVl.mjs";import{t as i}from"./output-CvQFJkvi.mjs";import{t as a}from"./dry-run-Bq0JAsbX.mjs";import{t as o}from"./progress-DUeNqM-j.mjs";import{t as s}from"./run-BhfDNWCI.mjs";import"./telemetry-iBZ-f6og.mjs";import{n as c,t as l}from"./body-parser-hh2avzkz.mjs";import{n as u}from"./input-validation-Dk52b0me.mjs";import{a as d,n as f}from"./prompt-DV6YTdoa.mjs";import{t as p}from"./cli-types-DoVT5q_M.mjs";function m(e){return e.usage(`$0 secrets-store quota get
3
3
 
4
- Lists the number of secrets used in the account.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const h={command:`get`,describe:`View secret usage`,builder:m,handler:async c=>s({command:`secrets-store quota get`,classification:{safeFlags:[`dry-run`]}},c,async()=>{if(c.dryRun){a({command:`cf secrets-store quota get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await n()??`<account-id>`}/secrets_store/quota`,pathParams:{},bodyKind:`none`});return}let s=await r(c),l=c.local?e:await t();c.accountId=l,i(await o(`Loading`,async()=>s.secretsStore.quota.get({account_id:l})),{successLabel:`Loaded`})})},g={command:`quota`,describe:`Account quota limits for secrets stores, secrets count, and storage capacity`,builder:e=>e.command(h).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function _(e){return e.usage(`$0 secrets-store secrets bulk-delete
4
+ Lists the number of secrets used in the account.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const h={command:`get`,describe:`View secret usage`,builder:m,handler:async c=>s({command:`secrets-store quota get`,classification:{safeFlags:[`dry-run`]}},c,async()=>{if(c.dryRun){a({command:`cf secrets-store quota get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/secrets_store/quota`,pathParams:{},bodyKind:`none`});return}let s=await r(c),l=c.local?e:await n();c.accountId=l,i(await o(`Loading`,async()=>s.secretsStore.quota.get({account_id:l})),{successLabel:`Loaded`})})},g={command:`quota`,describe:`Account quota limits for secrets stores, secrets count, and storage capacity`,builder:e=>e.command(h).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function _(e){return e.usage(`$0 secrets-store secrets bulk-delete
5
5
 
6
- Deletes one or more secrets.`).option(`store-id`,{type:`string`,description:`Store identifier.`,demandOption:!0}).option(`ids`,{type:`string`,array:!0,description:`List of secret identifier tags 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:`Request body for bulk deleting secrets.`})}const v={command:`bulk-delete`,describe:`Delete secrets`,builder:_,handler:async u=>s({command:`secrets-store secrets bulk-delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},u,async()=>{if(u.dryRun){a({command:`cf secrets-store secrets bulk-delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${await n()??`<account-id>`}/secrets_store/stores/${u[`store-id`]==null?`<store-id>`:encodeURIComponent(String(u[`store-id`]))}/secrets`,pathParams:{"store-id":String(u[`store-id`]??``)},bodyKind:`json`,body:u.body===void 0?l({ids:u.ids}):c(u.body)});return}let s=await r(u),d=u.local?e:await t();if(u.accountId=d,!await f({force:!!u.force,message:`This operation permanently deletes the specified secrets and cannot be undone.`})){process.stderr.write(`Aborted.
6
+ Deletes one or more secrets.`).option(`store-id`,{type:`string`,description:`Store identifier.`,demandOption:!0}).option(`ids`,{type:`string`,array:!0,description:`List of secret identifier tags 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:`Request body for bulk deleting secrets.`})}const v={command:`bulk-delete`,describe:`Delete secrets`,builder:_,handler:async u=>s({command:`secrets-store secrets bulk-delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},u,async()=>{if(u.dryRun){a({command:`cf secrets-store secrets bulk-delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/secrets_store/stores/${u[`store-id`]==null?`<store-id>`:encodeURIComponent(String(u[`store-id`]))}/secrets`,pathParams:{"store-id":String(u[`store-id`]??``)},bodyKind:`json`,body:u.body===void 0?l({ids:u.ids}):c(u.body)});return}let s=await r(u),d=u.local?e:await n();if(u.accountId=d,!await f({force:!!u.force,message:`This operation permanently deletes the specified secrets and cannot be undone.`})){process.stderr.write(`Aborted.
7
7
  `);return}if(u.body){let e=c(u.body);i(await o(`Deleting`,async()=>s.secretsStore.secrets.bulkDelete({...e,account_id:d,store_id:u[`store-id`]})),{successLabel:`Deleted`});return}if(u.ids===void 0)throw Error(`--ids is required (or pass --body with this field set).`);let p=l({ids:u.ids});i(await o(`Deleting`,async()=>s.secretsStore.secrets.bulkDelete({...p,account_id:d,store_id:u[`store-id`]})),{successLabel:`Deleted`})})};function y(e){return e.usage(`$0 secrets-store secrets create <store-id>
8
8
 
9
- Creates a secret in the account.`).positional(`store-id`,{type:`string`,description:`Store identifier.`,demandOption:!0}).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 b={command:`create <store-id>`,describe:`Create a secret`,builder:y,handler:async l=>s({command:`secrets-store secrets create`,classification:{safeFlags:[`dry-run`]}},l,async()=>{if(l.dryRun){a({command:`cf secrets-store secrets create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${await n()??`<account-id>`}/secrets_store/stores/${l[`store-id`]==null?`<store-id>`:encodeURIComponent(String(l[`store-id`]))}/secrets`,pathParams:{"store-id":String(l[`store-id`]??``)},bodyKind:`json`,body:l.body===void 0?void 0:c(l.body)});return}let s=await r(l),u=l.local?e:await t();if(l.accountId=u,l.body){let e=c(l.body);i(await o(`Creating`,async()=>s.secretsStore.secrets.create({body:e,account_id:u,store_id:l[`store-id`]})),{successLabel:`Created`});return}if(l.body===void 0)throw Error(`--body is required for this command. Pass --body '<json>' or --body @path/to/file.json.`)})};function x(e){return e.usage(`$0 secrets-store secrets delete <secret-id>
9
+ Creates a secret in the account.`).positional(`store-id`,{type:`string`,description:`Store identifier.`,demandOption:!0}).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 b={command:`create <store-id>`,describe:`Create a secret`,builder:y,handler:async l=>s({command:`secrets-store secrets create`,classification:{safeFlags:[`dry-run`]}},l,async()=>{if(l.dryRun){a({command:`cf secrets-store secrets create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/secrets_store/stores/${l[`store-id`]==null?`<store-id>`:encodeURIComponent(String(l[`store-id`]))}/secrets`,pathParams:{"store-id":String(l[`store-id`]??``)},bodyKind:`json`,body:l.body===void 0?void 0:c(l.body)});return}let s=await r(l),u=l.local?e:await n();if(l.accountId=u,l.body){let e=c(l.body);i(await o(`Creating`,async()=>s.secretsStore.secrets.create({body:e,account_id:u,store_id:l[`store-id`]})),{successLabel:`Created`});return}if(l.body===void 0)throw Error(`--body is required for this command. Pass --body '<json>' or --body @path/to/file.json.`)})};function x(e){return e.usage(`$0 secrets-store secrets delete <secret-id>
10
10
 
11
- Deletes a single secret.`).positional(`secret-id`,{type:`string`,description:`Secret identifier.`,demandOption:!0}).option(`store-id`,{type:`string`,description:`Store 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 S={command:`delete <secret-id>`,describe:`Delete a secret`,builder:x,handler:async c=>s({command:`secrets-store secrets delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},c,async()=>{if(c.dryRun){a({command:`cf secrets-store secrets delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${await n()??`<account-id>`}/secrets_store/stores/${c[`store-id`]==null?`<store-id>`:encodeURIComponent(String(c[`store-id`]))}/secrets/${c[`secret-id`]==null?`<secret-id>`:encodeURIComponent(String(c[`secret-id`]))}`,pathParams:{"store-id":String(c[`store-id`]??``),"secret-id":String(c[`secret-id`]??``)},bodyKind:`none`});return}let s=await r(c),l=c.local?e:await t();if(c.accountId=l,!await f({force:!!c.force})){process.stderr.write(`Aborted.
11
+ Deletes a single secret.`).positional(`secret-id`,{type:`string`,description:`Secret identifier.`,demandOption:!0}).option(`store-id`,{type:`string`,description:`Store 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 S={command:`delete <secret-id>`,describe:`Delete a secret`,builder:x,handler:async c=>s({command:`secrets-store secrets delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},c,async()=>{if(c.dryRun){a({command:`cf secrets-store secrets delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/secrets_store/stores/${c[`store-id`]==null?`<store-id>`:encodeURIComponent(String(c[`store-id`]))}/secrets/${c[`secret-id`]==null?`<secret-id>`:encodeURIComponent(String(c[`secret-id`]))}`,pathParams:{"store-id":String(c[`store-id`]??``),"secret-id":String(c[`secret-id`]??``)},bodyKind:`none`});return}let s=await r(c),l=c.local?e:await n();if(c.accountId=l,!await f({force:!!c.force})){process.stderr.write(`Aborted.
12
12
  `);return}i(await o(`Deleting`,async()=>s.secretsStore.secrets.delete({account_id:l,store_id:c[`store-id`],secret_id:c[`secret-id`]})),{successLabel:`Deleted`})})};function C(e){return e.usage(`$0 secrets-store secrets duplicate <secret-id>
13
13
 
14
- Creates a duplicate of the secret, keeping the value.`).positional(`secret-id`,{type:`string`,description:`Secret identifier.`,demandOption:!0}).option(`store-id`,{type:`string`,description:`Store identifier.`,demandOption:!0}).option(`comment`,{type:`string`,description:`Freeform text describing the secret.`}).option(`name`,{type:`string`,description:`The name of the secret.`}).option(`scopes`,{type:`string`,array:!0,description:`The list of services that can use this secret.`}).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 w={command:`duplicate <secret-id>`,describe:`Duplicate Secret`,builder:C,handler:async f=>s({command:`secrets-store secrets duplicate`,classification:{safeFlags:[`dry-run`]}},f,async()=>{if(f.dryRun){a({command:`cf secrets-store secrets duplicate`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${await n()??`<account-id>`}/secrets_store/stores/${f[`store-id`]==null?`<store-id>`:encodeURIComponent(String(f[`store-id`]))}/secrets/${f[`secret-id`]==null?`<secret-id>`:encodeURIComponent(String(f[`secret-id`]))}/duplicate`,pathParams:{"store-id":String(f[`store-id`]??``),"secret-id":String(f[`secret-id`]??``)},bodyKind:`json`,body:f.body===void 0?l({comment:u(f.comment,`comment`,`text`),name:u(f.name,`name`,`text`),scopes:f.scopes}):c(f.body)});return}let s=await r(f),p=f.local?e:await t();if(f.accountId=p,f.body){let e=c(f.body);i(await o(`Creating`,async()=>s.secretsStore.secrets.duplicate({...e,account_id:p,store_id:f[`store-id`],secret_id:f[`secret-id`]})),{successLabel:`Created`});return}if(f.name===void 0&&(f.name=await d(`name`,`The name of the secret.`)),f.scopes===void 0)throw Error(`--scopes is required (or pass --body with this field set).`);let m=l({comment:u(f.comment,`comment`,`text`),name:u(f.name,`name`,`text`),scopes:f.scopes});i(await o(`Creating`,async()=>s.secretsStore.secrets.duplicate({...m,account_id:p,store_id:f[`store-id`],secret_id:f[`secret-id`]})),{successLabel:`Created`})})};function T(e){return e.usage(`$0 secrets-store secrets edit <secret-id>
14
+ Creates a duplicate of the secret, keeping the value.`).positional(`secret-id`,{type:`string`,description:`Secret identifier.`,demandOption:!0}).option(`store-id`,{type:`string`,description:`Store identifier.`,demandOption:!0}).option(`comment`,{type:`string`,description:`Freeform text describing the secret.`}).option(`name`,{type:`string`,description:`The name of the secret.`}).option(`scopes`,{type:`string`,array:!0,description:`The list of services that can use this secret.`}).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 w={command:`duplicate <secret-id>`,describe:`Duplicate Secret`,builder:C,handler:async f=>s({command:`secrets-store secrets duplicate`,classification:{safeFlags:[`dry-run`]}},f,async()=>{if(f.dryRun){a({command:`cf secrets-store secrets duplicate`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/secrets_store/stores/${f[`store-id`]==null?`<store-id>`:encodeURIComponent(String(f[`store-id`]))}/secrets/${f[`secret-id`]==null?`<secret-id>`:encodeURIComponent(String(f[`secret-id`]))}/duplicate`,pathParams:{"store-id":String(f[`store-id`]??``),"secret-id":String(f[`secret-id`]??``)},bodyKind:`json`,body:f.body===void 0?l({comment:u(f.comment,`comment`,`text`),name:u(f.name,`name`,`text`),scopes:f.scopes}):c(f.body)});return}let s=await r(f),p=f.local?e:await n();if(f.accountId=p,f.body){let e=c(f.body);i(await o(`Creating`,async()=>s.secretsStore.secrets.duplicate({...e,account_id:p,store_id:f[`store-id`],secret_id:f[`secret-id`]})),{successLabel:`Created`});return}if(f.name===void 0&&(f.name=await d(`name`,`The name of the secret.`)),f.scopes===void 0)throw Error(`--scopes is required (or pass --body with this field set).`);let m=l({comment:u(f.comment,`comment`,`text`),name:u(f.name,`name`,`text`),scopes:f.scopes});i(await o(`Creating`,async()=>s.secretsStore.secrets.duplicate({...m,account_id:p,store_id:f[`store-id`],secret_id:f[`secret-id`]})),{successLabel:`Created`})})};function T(e){return e.usage(`$0 secrets-store secrets edit <secret-id>
15
15
 
16
- Updates a single secret.`).positional(`secret-id`,{type:`string`,description:`Secret identifier.`,demandOption:!0}).option(`store-id`,{type:`string`,description:`Store identifier.`,demandOption:!0}).option(`comment`,{type:`string`,description:`Freeform text describing the secret.`}).option(`scopes`,{type:`string`,array:!0,description:`The list of services that can use this secret.`}).option(`value`,{type:`string`,description:`The value of the secret. Maximum 64 KiB (65,536 bytes). Note that this is 'write only' - the API never returns this value; it exists only to create or modify secrets.`}).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 E={command:`edit <secret-id>`,describe:`Patch a secret`,builder:T,handler:async d=>s({command:`secrets-store secrets edit`,classification:{safeFlags:[`dry-run`]}},d,async()=>{if(d.dryRun){a({command:`cf secrets-store secrets edit`,method:`PATCH`,url:`https://api.cloudflare.com/client/v4/accounts/${await n()??`<account-id>`}/secrets_store/stores/${d[`store-id`]==null?`<store-id>`:encodeURIComponent(String(d[`store-id`]))}/secrets/${d[`secret-id`]==null?`<secret-id>`:encodeURIComponent(String(d[`secret-id`]))}`,pathParams:{"store-id":String(d[`store-id`]??``),"secret-id":String(d[`secret-id`]??``)},bodyKind:`json`,body:d.body===void 0?l({comment:u(d.comment,`comment`,`text`),scopes:d.scopes,value:u(d.value,`value`,`text`)}):c(d.body)});return}let s=await r(d),f=d.local?e:await t();if(d.accountId=f,d.body){let e=c(d.body);i(await o(`Updating`,async()=>s.secretsStore.secrets.edit({...e,account_id:f,store_id:d[`store-id`],secret_id:d[`secret-id`]})),{successLabel:`Updated`});return}let p=l({comment:u(d.comment,`comment`,`text`),scopes:d.scopes,value:u(d.value,`value`,`text`)});i(await o(`Updating`,async()=>s.secretsStore.secrets.edit({...p,account_id:f,store_id:d[`store-id`],secret_id:d[`secret-id`]})),{successLabel:`Updated`})})};function D(e){return e.usage(`$0 secrets-store secrets get <secret-id>
16
+ Updates a single secret.`).positional(`secret-id`,{type:`string`,description:`Secret identifier.`,demandOption:!0}).option(`store-id`,{type:`string`,description:`Store identifier.`,demandOption:!0}).option(`comment`,{type:`string`,description:`Freeform text describing the secret.`}).option(`scopes`,{type:`string`,array:!0,description:`The list of services that can use this secret.`}).option(`value`,{type:`string`,description:`The value of the secret. Maximum 64 KiB (65,536 bytes). Note that this is 'write only' - the API never returns this value; it exists only to create or modify secrets.`}).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 E={command:`edit <secret-id>`,describe:`Patch a secret`,builder:T,handler:async d=>s({command:`secrets-store secrets edit`,classification:{safeFlags:[`dry-run`]}},d,async()=>{if(d.dryRun){a({command:`cf secrets-store secrets edit`,method:`PATCH`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/secrets_store/stores/${d[`store-id`]==null?`<store-id>`:encodeURIComponent(String(d[`store-id`]))}/secrets/${d[`secret-id`]==null?`<secret-id>`:encodeURIComponent(String(d[`secret-id`]))}`,pathParams:{"store-id":String(d[`store-id`]??``),"secret-id":String(d[`secret-id`]??``)},bodyKind:`json`,body:d.body===void 0?l({comment:u(d.comment,`comment`,`text`),scopes:d.scopes,value:u(d.value,`value`,`text`)}):c(d.body)});return}let s=await r(d),f=d.local?e:await n();if(d.accountId=f,d.body){let e=c(d.body);i(await o(`Updating`,async()=>s.secretsStore.secrets.edit({...e,account_id:f,store_id:d[`store-id`],secret_id:d[`secret-id`]})),{successLabel:`Updated`});return}let p=l({comment:u(d.comment,`comment`,`text`),scopes:d.scopes,value:u(d.value,`value`,`text`)});i(await o(`Updating`,async()=>s.secretsStore.secrets.edit({...p,account_id:f,store_id:d[`store-id`],secret_id:d[`secret-id`]})),{successLabel:`Updated`})})};function D(e){return e.usage(`$0 secrets-store secrets get <secret-id>
17
17
 
18
- Returns details of a single secret.`).positional(`secret-id`,{type:`string`,description:`Secret identifier.`,demandOption:!0}).option(`store-id`,{type:`string`,description:`Store identifier.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const O={command:`get <secret-id>`,describe:`Get a secret by ID`,builder:D,handler:async c=>s({command:`secrets-store secrets get`,classification:{safeFlags:[`dry-run`]}},c,async()=>{if(c.dryRun){a({command:`cf secrets-store secrets get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await n()??`<account-id>`}/secrets_store/stores/${c[`store-id`]==null?`<store-id>`:encodeURIComponent(String(c[`store-id`]))}/secrets/${c[`secret-id`]==null?`<secret-id>`:encodeURIComponent(String(c[`secret-id`]))}`,pathParams:{"store-id":String(c[`store-id`]??``),"secret-id":String(c[`secret-id`]??``)},bodyKind:`none`});return}let s=await r(c),l=c.local?e:await t();c.accountId=l,i(await o(`Loading`,async()=>s.secretsStore.secrets.get({account_id:l,store_id:c[`store-id`],secret_id:c[`secret-id`]})),{successLabel:`Loaded`})})};function k(e){return e.usage(`$0 secrets-store secrets list
18
+ Returns details of a single secret.`).positional(`secret-id`,{type:`string`,description:`Secret identifier.`,demandOption:!0}).option(`store-id`,{type:`string`,description:`Store identifier.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const O={command:`get <secret-id>`,describe:`Get a secret by ID`,builder:D,handler:async c=>s({command:`secrets-store secrets get`,classification:{safeFlags:[`dry-run`]}},c,async()=>{if(c.dryRun){a({command:`cf secrets-store secrets get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/secrets_store/stores/${c[`store-id`]==null?`<store-id>`:encodeURIComponent(String(c[`store-id`]))}/secrets/${c[`secret-id`]==null?`<secret-id>`:encodeURIComponent(String(c[`secret-id`]))}`,pathParams:{"store-id":String(c[`store-id`]??``),"secret-id":String(c[`secret-id`]??``)},bodyKind:`none`});return}let s=await r(c),l=c.local?e:await n();c.accountId=l,i(await o(`Loading`,async()=>s.secretsStore.secrets.get({account_id:l,store_id:c[`store-id`],secret_id:c[`secret-id`]})),{successLabel:`Loaded`})})};function k(e){return e.usage(`$0 secrets-store secrets list
19
19
 
20
- Lists all store secrets.`).option(`store-id`,{type:`string`,description:`Store identifier.`,demandOption:!0}).option(`direction`,{type:`string`,description:`Direction to sort objects.`,choices:[`asc`,`desc`]}).option(`page`,{type:`number`,description:`Page number.`}).option(`per-page`,{type:`number`,description:`Number of objects to return per page.`}).option(`search`,{type:`string`,description:`Search secrets using a filter string, filtering across name and comment.`}).option(`order`,{type:`string`,description:`Order secrets by values in the given field.`,choices:[`name`,`comment`,`created`,`modified`,`status`]}).option(`scopes`,{type:`string`,description:`Only secrets with the given scopes will be returned.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const A={command:`list`,describe:`List store secrets`,builder:p(k),handler:async c=>s({command:`secrets-store secrets list`,classification:{safeFlags:[`direction`,`order`,`dry-run`]}},c,async()=>{let s={direction:c.direction,page:c.page,per_page:c[`per-page`],search:c.search,order:c.order,scopes:c.scopes};if(c.dryRun){a({command:`cf secrets-store secrets list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await n()??`<account-id>`}/secrets_store/stores/${c[`store-id`]==null?`<store-id>`:encodeURIComponent(String(c[`store-id`]))}/secrets`,pathParams:{"store-id":String(c[`store-id`]??``)},query:s,bodyKind:`none`});return}let l=await r(c),u=c.local?e:await t();c.accountId=u,i(await o(`Loading`,async()=>l.secretsStore.secrets.list({account_id:u,store_id:c[`store-id`],...s})),{successLabel:`Loaded`})})},j={command:`secrets`,describe:`Encrypted key-value secrets within a store. Pass --store-id to scope.`,builder:e=>e.command(v).command(b).command(S).command(w).command(E).command(O).command(A).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function M(e){return e.usage(`$0 secrets-store stores get <store-id>
20
+ Lists all store secrets.`).option(`store-id`,{type:`string`,description:`Store identifier.`,demandOption:!0}).option(`direction`,{type:`string`,description:`Direction to sort objects.`,choices:[`asc`,`desc`]}).option(`page`,{type:`number`,description:`Page number.`}).option(`per-page`,{type:`number`,description:`Number of objects to return per page.`}).option(`search`,{type:`string`,description:`Search secrets using a filter string, filtering across name and comment.`}).option(`order`,{type:`string`,description:`Order secrets by values in the given field.`,choices:[`name`,`comment`,`created`,`modified`,`status`]}).option(`scopes`,{type:`string`,description:`Only secrets with the given scopes will be returned.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const A={command:`list`,describe:`List store secrets`,builder:p(k),handler:async c=>s({command:`secrets-store secrets list`,classification:{safeFlags:[`direction`,`order`,`dry-run`]}},c,async()=>{let s={direction:c.direction,page:c.page,per_page:c[`per-page`],search:c.search,order:c.order,scopes:c.scopes};if(c.dryRun){a({command:`cf secrets-store secrets list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/secrets_store/stores/${c[`store-id`]==null?`<store-id>`:encodeURIComponent(String(c[`store-id`]))}/secrets`,pathParams:{"store-id":String(c[`store-id`]??``)},query:s,bodyKind:`none`});return}let l=await r(c),u=c.local?e:await n();c.accountId=u,i(await o(`Loading`,async()=>l.secretsStore.secrets.list({account_id:u,store_id:c[`store-id`],...s})),{successLabel:`Loaded`})})},j={command:`secrets`,describe:`Encrypted key-value secrets within a store. Pass --store-id to scope.`,builder:e=>e.command(v).command(b).command(S).command(w).command(E).command(O).command(A).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function M(e){return e.usage(`$0 secrets-store stores get <store-id>
21
21
 
22
- Returns details of a single store.`).positional(`store-id`,{type:`string`,description:`Store identifier.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const N={command:`get <store-id>`,describe:`Get a store by ID`,builder:M,handler:async c=>s({command:`secrets-store stores get`,classification:{safeFlags:[`dry-run`]}},c,async()=>{if(c.dryRun){a({command:`cf secrets-store stores get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await n()??`<account-id>`}/secrets_store/stores/${c[`store-id`]==null?`<store-id>`:encodeURIComponent(String(c[`store-id`]))}`,pathParams:{"store-id":String(c[`store-id`]??``)},bodyKind:`none`});return}let s=await r(c),l=c.local?e:await t();c.accountId=l,i(await o(`Loading`,async()=>s.secretsStore.stores.get({account_id:l,store_id:c[`store-id`]})),{successLabel:`Loaded`})})};function P(e){return e.usage(`$0 secrets-store stores list
22
+ Returns details of a single store.`).positional(`store-id`,{type:`string`,description:`Store identifier.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const N={command:`get <store-id>`,describe:`Get a store by ID`,builder:M,handler:async c=>s({command:`secrets-store stores get`,classification:{safeFlags:[`dry-run`]}},c,async()=>{if(c.dryRun){a({command:`cf secrets-store stores get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/secrets_store/stores/${c[`store-id`]==null?`<store-id>`:encodeURIComponent(String(c[`store-id`]))}`,pathParams:{"store-id":String(c[`store-id`]??``)},bodyKind:`none`});return}let s=await r(c),l=c.local?e:await n();c.accountId=l,i(await o(`Loading`,async()=>s.secretsStore.stores.get({account_id:l,store_id:c[`store-id`]})),{successLabel:`Loaded`})})};function P(e){return e.usage(`$0 secrets-store stores list
23
23
 
24
- Lists all the stores in an account.`).option(`direction`,{type:`string`,description:`Direction to sort objects.`,choices:[`asc`,`desc`]}).option(`page`,{type:`number`,description:`Page number.`}).option(`per-page`,{type:`number`,description:`Number of objects to return per page.`}).option(`order`,{type:`string`,description:`Order stores by values in the given field.`,choices:[`name`,`created`,`modified`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const F={command:`list`,describe:`List account stores`,builder:p(P),handler:async c=>s({command:`secrets-store stores list`,classification:{safeFlags:[`direction`,`order`,`dry-run`]}},c,async()=>{let s={direction:c.direction,page:c.page,per_page:c[`per-page`],order:c.order};if(c.dryRun){a({command:`cf secrets-store stores list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await n()??`<account-id>`}/secrets_store/stores`,pathParams:{},query:s,bodyKind:`none`});return}let l=await r(c),u=c.local?e:await t();c.accountId=u,i(await o(`Loading`,async()=>l.secretsStore.stores.list({account_id:u,...s})),{successLabel:`Loaded`})})},I={command:`stores`,describe:`Secret stores that hold encrypted key-value secrets accessible by Workers and services`,builder:e=>e.command(N).command(F).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},L={command:`secrets-store`,describe:`Centralized secret management — store API keys, tokens, and credentials for use across Workers and other products`,builder:e=>e.command(g).command(j).command(I).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};export{L as default};
24
+ Lists all the stores in an account.`).option(`direction`,{type:`string`,description:`Direction to sort objects.`,choices:[`asc`,`desc`]}).option(`page`,{type:`number`,description:`Page number.`}).option(`per-page`,{type:`number`,description:`Number of objects to return per page.`}).option(`order`,{type:`string`,description:`Order stores by values in the given field.`,choices:[`name`,`created`,`modified`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const F={command:`list`,describe:`List account stores`,builder:p(P),handler:async c=>s({command:`secrets-store stores list`,classification:{safeFlags:[`direction`,`order`,`dry-run`]}},c,async()=>{let s={direction:c.direction,page:c.page,per_page:c[`per-page`],order:c.order};if(c.dryRun){a({command:`cf secrets-store stores list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/secrets_store/stores`,pathParams:{},query:s,bodyKind:`none`});return}let l=await r(c),u=c.local?e:await n();c.accountId=u,i(await o(`Loading`,async()=>l.secretsStore.stores.list({account_id:u,...s})),{successLabel:`Loaded`})})},I={command:`stores`,describe:`Secret stores that hold encrypted key-value secrets accessible by Workers and services`,builder:e=>e.command(N).command(F).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},L={command:`secrets-store`,describe:`Centralized secret management — store API keys, tokens, and credentials for use across Workers and other products`,builder:e=>e.command(g).command(j).command(I).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};export{L as default};
@@ -1,30 +1,30 @@
1
1
  #!/usr/bin/env node
2
- import{t as e}from"./local-B6b2OIBW.mjs";import{_ as t,m as n,v as r}from"./oauth-Dzk6Gy-6.mjs";import{r as i}from"./auth-DJhSjNNL.mjs";import{t as a}from"./output-Bia1u2k5.mjs";import{t as o}from"./dry-run-CLX6Pbtq.mjs";import{t as s}from"./progress-D_mL-Kcy.mjs";import{t as c}from"./run-DtN51G2A.mjs";import"./telemetry-DAf9gLyH.mjs";import{n as l,t as u}from"./body-parser-CUWbw_Tq.mjs";import{n as d}from"./input-validation-Ch4Vllrm.mjs";import{t as f}from"./cli-types-tt_LZMbn.mjs";function p(e){return e.usage(`$0 security-center audit-logs get <issue-id>
2
+ import{t as e}from"./local-CxYne8s2.mjs";import{a as t,i as n,t as r}from"./context-5JRcefHh.mjs";import{r as i}from"./auth-3bFlHTVl.mjs";import{t as a}from"./output-CvQFJkvi.mjs";import{t as o}from"./dry-run-Bq0JAsbX.mjs";import{t as s}from"./progress-DUeNqM-j.mjs";import{t as c}from"./run-BhfDNWCI.mjs";import"./telemetry-iBZ-f6og.mjs";import{n as l,t as u}from"./body-parser-hh2avzkz.mjs";import{n as d}from"./input-validation-Dk52b0me.mjs";import{t as f}from"./cli-types-DoVT5q_M.mjs";function p(e){return e.usage(`$0 security-center audit-logs get <issue-id>
3
3
 
4
- Lists audit log entries for a specific Security Center insight, showing changes to its status and classification over time.`).positional(`issue-id`,{type:`string`,description:`Issue ID`,demandOption:!0}).option(`per-page`,{type:`number`,description:`Number of results per page.`}).option(`cursor`,{type:`string`,description:`Opaque cursor for pagination. Use the cursor value from result_info of the previous response.`}).option(`field-changed`,{type:`string`,description:`Filter by the field that was changed.`,choices:[`status`,`user_classification`]}).option(`changed-by`,{type:`string`,description:`Filter by the actor that made the change.`}).option(`since`,{type:`string`,description:`Filter entries changed at or after this timestamp (RFC 3339).`}).option(`before`,{type:`string`,description:`Filter entries changed before this timestamp (RFC 3339).`}).option(`order`,{type:`string`,description:`Sort order for results. Use 'asc' for oldest first or 'desc' for newest first.`,choices:[`asc`,`desc`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const m={command:`get <issue-id>`,describe:`Retrieves Issue Audit Log`,builder:f(p),handler:async l=>c({command:`security-center audit-logs get`,classification:{safeFlags:[`field-changed`,`order`,`dry-run`]}},l,async()=>{let c={per_page:l[`per-page`],cursor:l.cursor,field_changed:l[`field-changed`],changed_by:l[`changed-by`],since:l.since,before:l.before,order:l.order};if(l.dryRun){let e=l.zone===void 0?await r():void 0,t=l.zone===void 0?`accounts`:`zones`,n=l.zone??e??`<account-id>`;o({command:`cf security-center audit-logs get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/${t}/${n}/security-center/insights/${l[`issue-id`]==null?`<issue-id>`:encodeURIComponent(String(l[`issue-id`]))}/audit-log`,pathParams:{"account-or-zone":String(t),"account-or-zone-id":String(n),"issue-id":String(l[`issue-id`]??``)},query:c,bodyKind:`none`});return}let u=await i(l),d=l.zone===void 0?`accounts`:`zones`,f=d===`zones`?await t({zone:l.zone},u,{quiet:l.quiet}):l.local?e:await n();d===`zones`?l.zoneId=f:l.accountId=f,a(await s(`Loading`,async()=>u.securityCenter.auditLogs.get({account_or_zone:d,account_or_zone_id:f,issue_id:l[`issue-id`],...c})),{successLabel:`Loaded`})})};function h(e){return e.usage(`$0 security-center audit-logs list
4
+ Lists audit log entries for a specific Security Center insight, showing changes to its status and classification over time.`).positional(`issue-id`,{type:`string`,description:`Issue ID`,demandOption:!0}).option(`per-page`,{type:`number`,description:`Number of results per page.`}).option(`cursor`,{type:`string`,description:`Opaque cursor for pagination. Use the cursor value from result_info of the previous response.`}).option(`field-changed`,{type:`string`,description:`Filter by the field that was changed.`,choices:[`status`,`user_classification`]}).option(`changed-by`,{type:`string`,description:`Filter by the actor that made the change.`}).option(`since`,{type:`string`,description:`Filter entries changed at or after this timestamp (RFC 3339).`}).option(`before`,{type:`string`,description:`Filter entries changed before this timestamp (RFC 3339).`}).option(`order`,{type:`string`,description:`Sort order for results. Use 'asc' for oldest first or 'desc' for newest first.`,choices:[`asc`,`desc`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const m={command:`get <issue-id>`,describe:`Retrieves Issue Audit Log`,builder:f(p),handler:async l=>c({command:`security-center audit-logs get`,classification:{safeFlags:[`field-changed`,`order`,`dry-run`]}},l,async()=>{let c={per_page:l[`per-page`],cursor:l.cursor,field_changed:l[`field-changed`],changed_by:l[`changed-by`],since:l.since,before:l.before,order:l.order};if(l.dryRun){let e=l.zone===void 0?await t():void 0,n=l.zone===void 0?`accounts`:`zones`,r=l.zone??e??`<account-id>`;o({command:`cf security-center audit-logs get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/${n}/${r}/security-center/insights/${l[`issue-id`]==null?`<issue-id>`:encodeURIComponent(String(l[`issue-id`]))}/audit-log`,pathParams:{"account-or-zone":String(n),"account-or-zone-id":String(r),"issue-id":String(l[`issue-id`]??``)},query:c,bodyKind:`none`});return}let u=await i(l),d=l.zone===void 0?`accounts`:`zones`,f=d===`zones`?await n({zone:l.zone},u,{quiet:l.quiet}):l.local?e:await r();d===`zones`?l.zoneId=f:l.accountId=f,a(await s(`Loading`,async()=>u.securityCenter.auditLogs.get({account_or_zone:d,account_or_zone_id:f,issue_id:l[`issue-id`],...c})),{successLabel:`Loaded`})})};function h(e){return e.usage(`$0 security-center audit-logs list
5
5
 
6
- Lists audit log entries for all Security Center insights in the account or zone, showing changes to insight status and classification.`).option(`per-page`,{type:`number`,description:`Number of results per page.`}).option(`cursor`,{type:`string`,description:`Opaque cursor for pagination. Use the cursor value from result_info of the previous response.`}).option(`field-changed`,{type:`string`,description:`Filter by the field that was changed.`,choices:[`status`,`user_classification`]}).option(`changed-by`,{type:`string`,description:`Filter by the actor that made the change.`}).option(`since`,{type:`string`,description:`Filter entries changed at or after this timestamp (RFC 3339).`}).option(`before`,{type:`string`,description:`Filter entries changed before this timestamp (RFC 3339).`}).option(`order`,{type:`string`,description:`Sort order for results. Use 'asc' for oldest first or 'desc' for newest first.`,choices:[`asc`,`desc`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const g={command:`list`,describe:`Retrieves account or zone Audit Log`,builder:f(h),handler:async l=>c({command:`security-center audit-logs list`,classification:{safeFlags:[`field-changed`,`order`,`dry-run`]}},l,async()=>{let c={per_page:l[`per-page`],cursor:l.cursor,field_changed:l[`field-changed`],changed_by:l[`changed-by`],since:l.since,before:l.before,order:l.order};if(l.dryRun){let e=l.zone===void 0?await r():void 0,t=l.zone===void 0?`accounts`:`zones`,n=l.zone??e??`<account-id>`;o({command:`cf security-center audit-logs list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/${t}/${n}/security-center/insights/audit-log`,pathParams:{"account-or-zone":String(t),"account-or-zone-id":String(n)},query:c,bodyKind:`none`});return}let u=await i(l),d=l.zone===void 0?`accounts`:`zones`,f=d===`zones`?await t({zone:l.zone},u,{quiet:l.quiet}):l.local?e:await n();d===`zones`?l.zoneId=f:l.accountId=f,a(await s(`Loading`,async()=>u.securityCenter.auditLogs.list({account_or_zone:d,account_or_zone_id:f,...c})),{successLabel:`Loaded`})})},_={command:`audit-logs`,describe:`Operations for audit-logs`,builder:e=>e.command(m).command(g).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function v(e){return e.usage(`$0 security-center insights class get
6
+ Lists audit log entries for all Security Center insights in the account or zone, showing changes to insight status and classification.`).option(`per-page`,{type:`number`,description:`Number of results per page.`}).option(`cursor`,{type:`string`,description:`Opaque cursor for pagination. Use the cursor value from result_info of the previous response.`}).option(`field-changed`,{type:`string`,description:`Filter by the field that was changed.`,choices:[`status`,`user_classification`]}).option(`changed-by`,{type:`string`,description:`Filter by the actor that made the change.`}).option(`since`,{type:`string`,description:`Filter entries changed at or after this timestamp (RFC 3339).`}).option(`before`,{type:`string`,description:`Filter entries changed before this timestamp (RFC 3339).`}).option(`order`,{type:`string`,description:`Sort order for results. Use 'asc' for oldest first or 'desc' for newest first.`,choices:[`asc`,`desc`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const g={command:`list`,describe:`Retrieves account or zone Audit Log`,builder:f(h),handler:async l=>c({command:`security-center audit-logs list`,classification:{safeFlags:[`field-changed`,`order`,`dry-run`]}},l,async()=>{let c={per_page:l[`per-page`],cursor:l.cursor,field_changed:l[`field-changed`],changed_by:l[`changed-by`],since:l.since,before:l.before,order:l.order};if(l.dryRun){let e=l.zone===void 0?await t():void 0,n=l.zone===void 0?`accounts`:`zones`,r=l.zone??e??`<account-id>`;o({command:`cf security-center audit-logs list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/${n}/${r}/security-center/insights/audit-log`,pathParams:{"account-or-zone":String(n),"account-or-zone-id":String(r)},query:c,bodyKind:`none`});return}let u=await i(l),d=l.zone===void 0?`accounts`:`zones`,f=d===`zones`?await n({zone:l.zone},u,{quiet:l.quiet}):l.local?e:await r();d===`zones`?l.zoneId=f:l.accountId=f,a(await s(`Loading`,async()=>u.securityCenter.auditLogs.list({account_or_zone:d,account_or_zone_id:f,...c})),{successLabel:`Loaded`})})},_={command:`audit-logs`,describe:`Operations for audit-logs`,builder:e=>e.command(m).command(g).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function v(e){return e.usage(`$0 security-center insights class get
7
7
 
8
- Retrieves Security Center insight counts aggregated by classification class.`).option(`dismissed`,{type:`boolean`,description:`Dismissed`}).option(`issue-class`,{type:`string`,description:`Issue class`}).option(`issue-type`,{type:`string`,description:`Issue type`}).option(`product`,{type:`string`,description:`Product`}).option(`source`,{type:`string`,description:`Source`}).option(`severity`,{type:`string`,description:`Severity`}).option(`subject`,{type:`string`,description:`Subject`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const y={command:`get`,describe:`Retrieves Security Center Insight Counts by Class`,builder:f(v),handler:async l=>c({command:`security-center insights class get`,classification:{safeFlags:[`dismissed`,`dry-run`]}},l,async()=>{let c={dismissed:l.dismissed,issue_class:l[`issue-class`],issue_type:l[`issue-type`],product:l.product,source:l.source,severity:l.severity,subject:l.subject};if(l.dryRun){let e=l.zone===void 0?await r():void 0,t=l.zone===void 0?`accounts`:`zones`,n=l.zone??e??`<account-id>`;o({command:`cf security-center insights class get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/${t}/${n}/security-center/insights/class`,pathParams:{"account-or-zone":String(t),"account-or-zone-id":String(n)},query:c,bodyKind:`none`});return}let u=await i(l),d=l.zone===void 0?`accounts`:`zones`,f=d===`zones`?await t({zone:l.zone},u,{quiet:l.quiet}):l.local?e:await n();d===`zones`?l.zoneId=f:l.accountId=f,a(await s(`Loading`,async()=>u.securityCenter.insights.class.get({account_or_zone:d,account_or_zone_id:f,...c})),{successLabel:`Loaded`})})},b={command:`class`,describe:`Operations for insights.class`,builder:e=>e.command(y).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function x(e){return e.usage(`$0 security-center insights dismiss <issue-id>
8
+ Retrieves Security Center insight counts aggregated by classification class.`).option(`dismissed`,{type:`boolean`,description:`Dismissed`}).option(`issue-class`,{type:`string`,description:`Issue class`}).option(`issue-type`,{type:`string`,description:`Issue type`}).option(`product`,{type:`string`,description:`Product`}).option(`source`,{type:`string`,description:`Source`}).option(`severity`,{type:`string`,description:`Severity`}).option(`subject`,{type:`string`,description:`Subject`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const y={command:`get`,describe:`Retrieves Security Center Insight Counts by Class`,builder:f(v),handler:async l=>c({command:`security-center insights class get`,classification:{safeFlags:[`dismissed`,`dry-run`]}},l,async()=>{let c={dismissed:l.dismissed,issue_class:l[`issue-class`],issue_type:l[`issue-type`],product:l.product,source:l.source,severity:l.severity,subject:l.subject};if(l.dryRun){let e=l.zone===void 0?await t():void 0,n=l.zone===void 0?`accounts`:`zones`,r=l.zone??e??`<account-id>`;o({command:`cf security-center insights class get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/${n}/${r}/security-center/insights/class`,pathParams:{"account-or-zone":String(n),"account-or-zone-id":String(r)},query:c,bodyKind:`none`});return}let u=await i(l),d=l.zone===void 0?`accounts`:`zones`,f=d===`zones`?await n({zone:l.zone},u,{quiet:l.quiet}):l.local?e:await r();d===`zones`?l.zoneId=f:l.accountId=f,a(await s(`Loading`,async()=>u.securityCenter.insights.class.get({account_or_zone:d,account_or_zone_id:f,...c})),{successLabel:`Loaded`})})},b={command:`class`,describe:`Operations for insights.class`,builder:e=>e.command(y).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function x(e){return e.usage(`$0 security-center insights dismiss <issue-id>
9
9
 
10
- Archives a Security Center insight for an account or zone, removing it from the active insights list while preserving historical data.`).positional(`issue-id`,{type:`string`,description:`Issue ID`,demandOption:!0}).option(`dismiss`,{type:`boolean`,description:`The dismiss 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 S={command:`dismiss <issue-id>`,describe:`Archives Security Center Insight`,builder:x,handler:async d=>c({command:`security-center insights dismiss`,classification:{safeFlags:[`dismiss`,`dry-run`]}},d,async()=>{if(d.dryRun){let e=d.zone===void 0?await r():void 0,t=d.zone===void 0?`accounts`:`zones`,n=d.zone??e??`<account-id>`;o({command:`cf security-center insights dismiss`,method:`PUT`,url:`https://api.cloudflare.com/client/v4/${t}/${n}/security-center/insights/${d[`issue-id`]==null?`<issue-id>`:encodeURIComponent(String(d[`issue-id`]))}/dismiss`,pathParams:{"account-or-zone":String(t),"account-or-zone-id":String(n),"issue-id":String(d[`issue-id`]??``)},bodyKind:`json`,body:d.body===void 0?u({dismiss:d.dismiss}):l(d.body)});return}let c=await i(d),f=d.zone===void 0?`accounts`:`zones`,p=f===`zones`?await t({zone:d.zone},c,{quiet:d.quiet}):d.local?e:await n();if(f===`zones`?d.zoneId=p:d.accountId=p,d.body){let e=l(d.body);a(await s(`Updating`,async()=>c.securityCenter.insights.dismiss({...e,account_or_zone:f,account_or_zone_id:p,issue_id:d[`issue-id`]})),{successLabel:`Updated`});return}let m=u({dismiss:d.dismiss});a(await s(`Updating`,async()=>c.securityCenter.insights.dismiss({...m,account_or_zone:f,account_or_zone_id:p,issue_id:d[`issue-id`]})),{successLabel:`Updated`})})};function C(e){return e.usage(`$0 security-center insights get-partner-count
10
+ Archives a Security Center insight for an account or zone, removing it from the active insights list while preserving historical data.`).positional(`issue-id`,{type:`string`,description:`Issue ID`,demandOption:!0}).option(`dismiss`,{type:`boolean`,description:`The dismiss 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 S={command:`dismiss <issue-id>`,describe:`Archives Security Center Insight`,builder:x,handler:async d=>c({command:`security-center insights dismiss`,classification:{safeFlags:[`dismiss`,`dry-run`]}},d,async()=>{if(d.dryRun){let e=d.zone===void 0?await t():void 0,n=d.zone===void 0?`accounts`:`zones`,r=d.zone??e??`<account-id>`;o({command:`cf security-center insights dismiss`,method:`PUT`,url:`https://api.cloudflare.com/client/v4/${n}/${r}/security-center/insights/${d[`issue-id`]==null?`<issue-id>`:encodeURIComponent(String(d[`issue-id`]))}/dismiss`,pathParams:{"account-or-zone":String(n),"account-or-zone-id":String(r),"issue-id":String(d[`issue-id`]??``)},bodyKind:`json`,body:d.body===void 0?u({dismiss:d.dismiss}):l(d.body)});return}let c=await i(d),f=d.zone===void 0?`accounts`:`zones`,p=f===`zones`?await n({zone:d.zone},c,{quiet:d.quiet}):d.local?e:await r();if(f===`zones`?d.zoneId=p:d.accountId=p,d.body){let e=l(d.body);a(await s(`Updating`,async()=>c.securityCenter.insights.dismiss({...e,account_or_zone:f,account_or_zone_id:p,issue_id:d[`issue-id`]})),{successLabel:`Updated`});return}let m=u({dismiss:d.dismiss});a(await s(`Updating`,async()=>c.securityCenter.insights.dismiss({...m,account_or_zone:f,account_or_zone_id:p,issue_id:d[`issue-id`]})),{successLabel:`Updated`})})};function C(e){return e.usage(`$0 security-center insights get-partner-count
11
11
 
12
- Retrieves the uncapped count of active, non-dismissed, unclassified RiskRecon insights for the account or zone.`).option(`source`,{type:`string`,description:`Source`,choices:[`riskrecon`],demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const w={command:`get-partner-count`,describe:`Retrieves a Partner Security Center Insight Count`,builder:f(C),handler:async l=>c({command:`security-center insights get-partner-count`,classification:{safeFlags:[`source`,`dry-run`]}},l,async()=>{let c={source:l.source};if(l.dryRun){let e=l.zone===void 0?await r():void 0,t=l.zone===void 0?`accounts`:`zones`,n=l.zone??e??`<account-id>`;o({command:`cf security-center insights get-partner-count`,method:`GET`,url:`https://api.cloudflare.com/client/v4/${t}/${n}/security-center/insights/partner-count`,pathParams:{"account-or-zone":String(t),"account-or-zone-id":String(n)},query:c,bodyKind:`none`});return}let u=await i(l),d=l.zone===void 0?`accounts`:`zones`,f=d===`zones`?await t({zone:l.zone},u,{quiet:l.quiet}):l.local?e:await n();d===`zones`?l.zoneId=f:l.accountId=f,a(await s(`Loading`,async()=>u.securityCenter.insights.getPartnerCount({account_or_zone:d,account_or_zone_id:f,...c})),{successLabel:`Loaded`})})};function T(e){return e.usage(`$0 security-center insights list
12
+ Retrieves the uncapped count of active, non-dismissed, unclassified RiskRecon insights for the account or zone.`).option(`source`,{type:`string`,description:`Source`,choices:[`riskrecon`],demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const w={command:`get-partner-count`,describe:`Retrieves a Partner Security Center Insight Count`,builder:f(C),handler:async l=>c({command:`security-center insights get-partner-count`,classification:{safeFlags:[`source`,`dry-run`]}},l,async()=>{let c={source:l.source};if(l.dryRun){let e=l.zone===void 0?await t():void 0,n=l.zone===void 0?`accounts`:`zones`,r=l.zone??e??`<account-id>`;o({command:`cf security-center insights get-partner-count`,method:`GET`,url:`https://api.cloudflare.com/client/v4/${n}/${r}/security-center/insights/partner-count`,pathParams:{"account-or-zone":String(n),"account-or-zone-id":String(r)},query:c,bodyKind:`none`});return}let u=await i(l),d=l.zone===void 0?`accounts`:`zones`,f=d===`zones`?await n({zone:l.zone},u,{quiet:l.quiet}):l.local?e:await r();d===`zones`?l.zoneId=f:l.accountId=f,a(await s(`Loading`,async()=>u.securityCenter.insights.getPartnerCount({account_or_zone:d,account_or_zone_id:f,...c})),{successLabel:`Loaded`})})};function T(e){return e.usage(`$0 security-center insights list
13
13
 
14
- Lists all Security Center insights for the account or zone, showing security findings and recommendations.`).option(`dismissed`,{type:`boolean`,description:`Dismissed`}).option(`issue-class`,{type:`string`,description:`Issue class`}).option(`issue-type`,{type:`string`,description:`Issue type`}).option(`product`,{type:`string`,description:`Product`}).option(`source`,{type:`string`,description:`Source`}).option(`severity`,{type:`string`,description:`Severity`}).option(`subject`,{type:`string`,description:`Subject`}).option(`page`,{type:`number`,description:`Specifies the current page within paginated list of results.`}).option(`per-page`,{type:`number`,description:`Sets the number of results per page of results.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const E={command:`list`,describe:`Retrieves Security Center Insights`,builder:f(T),handler:async l=>c({command:`security-center insights list`,classification:{safeFlags:[`dismissed`,`dry-run`]}},l,async()=>{let c={dismissed:l.dismissed,issue_class:l[`issue-class`],issue_type:l[`issue-type`],product:l.product,source:l.source,severity:l.severity,subject:l.subject,page:l.page,per_page:l[`per-page`]};if(l.dryRun){let e=l.zone===void 0?await r():void 0,t=l.zone===void 0?`accounts`:`zones`,n=l.zone??e??`<account-id>`;o({command:`cf security-center insights list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/${t}/${n}/security-center/insights`,pathParams:{"account-or-zone":String(t),"account-or-zone-id":String(n)},query:c,bodyKind:`none`});return}let u=await i(l),d=l.zone===void 0?`accounts`:`zones`,f=d===`zones`?await t({zone:l.zone},u,{quiet:l.quiet}):l.local?e:await n();d===`zones`?l.zoneId=f:l.accountId=f,a(await s(`Loading`,async()=>u.securityCenter.insights.list({account_or_zone:d,account_or_zone_id:f,...c})),{successLabel:`Loaded`})})};function D(e){return e.usage(`$0 security-center insights severity get
14
+ Lists all Security Center insights for the account or zone, showing security findings and recommendations.`).option(`dismissed`,{type:`boolean`,description:`Dismissed`}).option(`issue-class`,{type:`string`,description:`Issue class`}).option(`issue-type`,{type:`string`,description:`Issue type`}).option(`product`,{type:`string`,description:`Product`}).option(`source`,{type:`string`,description:`Source`}).option(`severity`,{type:`string`,description:`Severity`}).option(`subject`,{type:`string`,description:`Subject`}).option(`page`,{type:`number`,description:`Specifies the current page within paginated list of results.`}).option(`per-page`,{type:`number`,description:`Sets the number of results per page of results.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const E={command:`list`,describe:`Retrieves Security Center Insights`,builder:f(T),handler:async l=>c({command:`security-center insights list`,classification:{safeFlags:[`dismissed`,`dry-run`]}},l,async()=>{let c={dismissed:l.dismissed,issue_class:l[`issue-class`],issue_type:l[`issue-type`],product:l.product,source:l.source,severity:l.severity,subject:l.subject,page:l.page,per_page:l[`per-page`]};if(l.dryRun){let e=l.zone===void 0?await t():void 0,n=l.zone===void 0?`accounts`:`zones`,r=l.zone??e??`<account-id>`;o({command:`cf security-center insights list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/${n}/${r}/security-center/insights`,pathParams:{"account-or-zone":String(n),"account-or-zone-id":String(r)},query:c,bodyKind:`none`});return}let u=await i(l),d=l.zone===void 0?`accounts`:`zones`,f=d===`zones`?await n({zone:l.zone},u,{quiet:l.quiet}):l.local?e:await r();d===`zones`?l.zoneId=f:l.accountId=f,a(await s(`Loading`,async()=>u.securityCenter.insights.list({account_or_zone:d,account_or_zone_id:f,...c})),{successLabel:`Loaded`})})};function D(e){return e.usage(`$0 security-center insights severity get
15
15
 
16
- Retrieves Security Center insight counts aggregated by severity level (critical, high, medium, low).`).option(`dismissed`,{type:`boolean`,description:`Dismissed`}).option(`issue-class`,{type:`string`,description:`Issue class`}).option(`issue-type`,{type:`string`,description:`Issue type`}).option(`product`,{type:`string`,description:`Product`}).option(`source`,{type:`string`,description:`Source`}).option(`severity`,{type:`string`,description:`Severity`}).option(`subject`,{type:`string`,description:`Subject`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const O={command:`get`,describe:`Retrieves Security Center Insight Counts by Severity`,builder:f(D),handler:async l=>c({command:`security-center insights severity get`,classification:{safeFlags:[`dismissed`,`dry-run`]}},l,async()=>{let c={dismissed:l.dismissed,issue_class:l[`issue-class`],issue_type:l[`issue-type`],product:l.product,source:l.source,severity:l.severity,subject:l.subject};if(l.dryRun){let e=l.zone===void 0?await r():void 0,t=l.zone===void 0?`accounts`:`zones`,n=l.zone??e??`<account-id>`;o({command:`cf security-center insights severity get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/${t}/${n}/security-center/insights/severity`,pathParams:{"account-or-zone":String(t),"account-or-zone-id":String(n)},query:c,bodyKind:`none`});return}let u=await i(l),d=l.zone===void 0?`accounts`:`zones`,f=d===`zones`?await t({zone:l.zone},u,{quiet:l.quiet}):l.local?e:await n();d===`zones`?l.zoneId=f:l.accountId=f,a(await s(`Loading`,async()=>u.securityCenter.insights.severity.get({account_or_zone:d,account_or_zone_id:f,...c})),{successLabel:`Loaded`})})},k={command:`severity`,describe:`Operations for insights.severity`,builder:e=>e.command(O).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function A(e){return e.usage(`$0 security-center insights type get
16
+ Retrieves Security Center insight counts aggregated by severity level (critical, high, medium, low).`).option(`dismissed`,{type:`boolean`,description:`Dismissed`}).option(`issue-class`,{type:`string`,description:`Issue class`}).option(`issue-type`,{type:`string`,description:`Issue type`}).option(`product`,{type:`string`,description:`Product`}).option(`source`,{type:`string`,description:`Source`}).option(`severity`,{type:`string`,description:`Severity`}).option(`subject`,{type:`string`,description:`Subject`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const O={command:`get`,describe:`Retrieves Security Center Insight Counts by Severity`,builder:f(D),handler:async l=>c({command:`security-center insights severity get`,classification:{safeFlags:[`dismissed`,`dry-run`]}},l,async()=>{let c={dismissed:l.dismissed,issue_class:l[`issue-class`],issue_type:l[`issue-type`],product:l.product,source:l.source,severity:l.severity,subject:l.subject};if(l.dryRun){let e=l.zone===void 0?await t():void 0,n=l.zone===void 0?`accounts`:`zones`,r=l.zone??e??`<account-id>`;o({command:`cf security-center insights severity get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/${n}/${r}/security-center/insights/severity`,pathParams:{"account-or-zone":String(n),"account-or-zone-id":String(r)},query:c,bodyKind:`none`});return}let u=await i(l),d=l.zone===void 0?`accounts`:`zones`,f=d===`zones`?await n({zone:l.zone},u,{quiet:l.quiet}):l.local?e:await r();d===`zones`?l.zoneId=f:l.accountId=f,a(await s(`Loading`,async()=>u.securityCenter.insights.severity.get({account_or_zone:d,account_or_zone_id:f,...c})),{successLabel:`Loaded`})})},k={command:`severity`,describe:`Operations for insights.severity`,builder:e=>e.command(O).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function A(e){return e.usage(`$0 security-center insights type get
17
17
 
18
- Retrieves Security Center insight counts aggregated by insight type.`).option(`dismissed`,{type:`boolean`,description:`Dismissed`}).option(`issue-class`,{type:`string`,description:`Issue class`}).option(`issue-type`,{type:`string`,description:`Issue type`}).option(`product`,{type:`string`,description:`Product`}).option(`source`,{type:`string`,description:`Source`}).option(`severity`,{type:`string`,description:`Severity`}).option(`subject`,{type:`string`,description:`Subject`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const j={command:`get`,describe:`Retrieves Security Center Insight Counts by Type`,builder:f(A),handler:async l=>c({command:`security-center insights type get`,classification:{safeFlags:[`dismissed`,`dry-run`]}},l,async()=>{let c={dismissed:l.dismissed,issue_class:l[`issue-class`],issue_type:l[`issue-type`],product:l.product,source:l.source,severity:l.severity,subject:l.subject};if(l.dryRun){let e=l.zone===void 0?await r():void 0,t=l.zone===void 0?`accounts`:`zones`,n=l.zone??e??`<account-id>`;o({command:`cf security-center insights type get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/${t}/${n}/security-center/insights/type`,pathParams:{"account-or-zone":String(t),"account-or-zone-id":String(n)},query:c,bodyKind:`none`});return}let u=await i(l),d=l.zone===void 0?`accounts`:`zones`,f=d===`zones`?await t({zone:l.zone},u,{quiet:l.quiet}):l.local?e:await n();d===`zones`?l.zoneId=f:l.accountId=f,a(await s(`Loading`,async()=>u.securityCenter.insights.type.get({account_or_zone:d,account_or_zone_id:f,...c})),{successLabel:`Loaded`})})},M={command:`type`,describe:`Operations for insights.type`,builder:e=>e.command(j).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function N(e){return e.usage(`$0 security-center insights update-classification <issue-id>
18
+ Retrieves Security Center insight counts aggregated by insight type.`).option(`dismissed`,{type:`boolean`,description:`Dismissed`}).option(`issue-class`,{type:`string`,description:`Issue class`}).option(`issue-type`,{type:`string`,description:`Issue type`}).option(`product`,{type:`string`,description:`Product`}).option(`source`,{type:`string`,description:`Source`}).option(`severity`,{type:`string`,description:`Severity`}).option(`subject`,{type:`string`,description:`Subject`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const j={command:`get`,describe:`Retrieves Security Center Insight Counts by Type`,builder:f(A),handler:async l=>c({command:`security-center insights type get`,classification:{safeFlags:[`dismissed`,`dry-run`]}},l,async()=>{let c={dismissed:l.dismissed,issue_class:l[`issue-class`],issue_type:l[`issue-type`],product:l.product,source:l.source,severity:l.severity,subject:l.subject};if(l.dryRun){let e=l.zone===void 0?await t():void 0,n=l.zone===void 0?`accounts`:`zones`,r=l.zone??e??`<account-id>`;o({command:`cf security-center insights type get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/${n}/${r}/security-center/insights/type`,pathParams:{"account-or-zone":String(n),"account-or-zone-id":String(r)},query:c,bodyKind:`none`});return}let u=await i(l),d=l.zone===void 0?`accounts`:`zones`,f=d===`zones`?await n({zone:l.zone},u,{quiet:l.quiet}):l.local?e:await r();d===`zones`?l.zoneId=f:l.accountId=f,a(await s(`Loading`,async()=>u.securityCenter.insights.type.get({account_or_zone:d,account_or_zone_id:f,...c})),{successLabel:`Loaded`})})},M={command:`type`,describe:`Operations for insights.type`,builder:e=>e.command(j).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function N(e){return e.usage(`$0 security-center insights update-classification <issue-id>
19
19
 
20
- Updates the user classification for a Security Center insight. Valid values are 'false_positive' or 'accept_risk'. To reset, set classification to null. Cannot change directly between classification values - must reset to null first.`).positional(`issue-id`,{type:`string`,description:`Issue ID`,demandOption:!0}).option(`classification`,{type:`string`,description:`User-defined classification for the insight. Can be 'false_positive', 'accept_risk', 'other', or null.`,choices:[`false_positive`,`accept_risk`,`other`]}).option(`rationale`,{type:`string`,description:`Rationale for the classification change. Required when classification is 'accept_risk' or 'other'.`}).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 P={command:`update-classification <issue-id>`,describe:`Updates Security Center Insight Classification`,builder:N,handler:async f=>c({command:`security-center insights update-classification`,classification:{safeFlags:[`classification`,`dry-run`]}},f,async()=>{if(f.dryRun){let e=f.zone===void 0?await r():void 0,t=f.zone===void 0?`accounts`:`zones`,n=f.zone??e??`<account-id>`;o({command:`cf security-center insights update-classification`,method:`PATCH`,url:`https://api.cloudflare.com/client/v4/${t}/${n}/security-center/insights/${f[`issue-id`]==null?`<issue-id>`:encodeURIComponent(String(f[`issue-id`]))}/classification`,pathParams:{"account-or-zone":String(t),"account-or-zone-id":String(n),"issue-id":String(f[`issue-id`]??``)},bodyKind:`json`,body:f.body===void 0?u({classification:d(f.classification,`classification`,`text`),rationale:d(f.rationale,`rationale`,`text`)}):l(f.body)});return}let c=await i(f),p=f.zone===void 0?`accounts`:`zones`,m=p===`zones`?await t({zone:f.zone},c,{quiet:f.quiet}):f.local?e:await n();if(p===`zones`?f.zoneId=m:f.accountId=m,f.body){let e=l(f.body);a(await s(`Updating`,async()=>c.securityCenter.insights.updateClassification({...e,account_or_zone:p,account_or_zone_id:m,issue_id:f[`issue-id`]})),{successLabel:`Updated`});return}let h=u({classification:d(f.classification,`classification`,`text`),rationale:d(f.rationale,`rationale`,`text`)});a(await s(`Updating`,async()=>c.securityCenter.insights.updateClassification({...h,account_or_zone:p,account_or_zone_id:m,issue_id:f[`issue-id`]})),{successLabel:`Updated`})})},F={command:`insights`,describe:`Security findings and recommendations across your account — DNS, SSL, WAF misconfigurations, etc.`,builder:e=>e.command(S).command(w).command(E).command(P).command(b).command(k).command(M).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function I(e){return e.usage(`$0 security-center scans list
20
+ Updates the user classification for a Security Center insight. Valid values are 'false_positive' or 'accept_risk'. To reset, set classification to null. Cannot change directly between classification values - must reset to null first.`).positional(`issue-id`,{type:`string`,description:`Issue ID`,demandOption:!0}).option(`classification`,{type:`string`,description:`User-defined classification for the insight. Can be 'false_positive', 'accept_risk', 'other', or null.`,choices:[`false_positive`,`accept_risk`,`other`]}).option(`rationale`,{type:`string`,description:`Rationale for the classification change. Required when classification is 'accept_risk' or 'other'.`}).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 P={command:`update-classification <issue-id>`,describe:`Updates Security Center Insight Classification`,builder:N,handler:async f=>c({command:`security-center insights update-classification`,classification:{safeFlags:[`classification`,`dry-run`]}},f,async()=>{if(f.dryRun){let e=f.zone===void 0?await t():void 0,n=f.zone===void 0?`accounts`:`zones`,r=f.zone??e??`<account-id>`;o({command:`cf security-center insights update-classification`,method:`PATCH`,url:`https://api.cloudflare.com/client/v4/${n}/${r}/security-center/insights/${f[`issue-id`]==null?`<issue-id>`:encodeURIComponent(String(f[`issue-id`]))}/classification`,pathParams:{"account-or-zone":String(n),"account-or-zone-id":String(r),"issue-id":String(f[`issue-id`]??``)},bodyKind:`json`,body:f.body===void 0?u({classification:d(f.classification,`classification`,`text`),rationale:d(f.rationale,`rationale`,`text`)}):l(f.body)});return}let c=await i(f),p=f.zone===void 0?`accounts`:`zones`,m=p===`zones`?await n({zone:f.zone},c,{quiet:f.quiet}):f.local?e:await r();if(p===`zones`?f.zoneId=m:f.accountId=m,f.body){let e=l(f.body);a(await s(`Updating`,async()=>c.securityCenter.insights.updateClassification({...e,account_or_zone:p,account_or_zone_id:m,issue_id:f[`issue-id`]})),{successLabel:`Updated`});return}let h=u({classification:d(f.classification,`classification`,`text`),rationale:d(f.rationale,`rationale`,`text`)});a(await s(`Updating`,async()=>c.securityCenter.insights.updateClassification({...h,account_or_zone:p,account_or_zone_id:m,issue_id:f[`issue-id`]})),{successLabel:`Updated`})})},F={command:`insights`,describe:`Security findings and recommendations across your account — DNS, SSL, WAF misconfigurations, etc.`,builder:e=>e.command(S).command(w).command(E).command(P).command(b).command(k).command(M).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function I(e){return e.usage(`$0 security-center scans list
21
21
 
22
- Returns the most recent on-demand scans for the account or zone, up to a maximum of 5. Each scan includes its ID, start time, and current status. This includes both account or zone-wide and zone-scoped scans. Also returns quota information showing how many scans have been used and how many remain in the current 24-hour window.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const L={command:`list`,describe:`Get Recent account or zone Scans`,builder:I,handler:async l=>c({command:`security-center scans list`,classification:{safeFlags:[`dry-run`]}},l,async()=>{if(l.dryRun){let e=l.zone===void 0?await r():void 0,t=l.zone===void 0?`accounts`:`zones`,n=l.zone??e??`<account-id>`;o({command:`cf security-center scans list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/${t}/${n}/security-center/insights/scans`,pathParams:{"account-or-zone":String(t),"account-or-zone-id":String(n)},bodyKind:`none`});return}let c=await i(l),u=l.zone===void 0?`accounts`:`zones`,d=u===`zones`?await t({zone:l.zone},c,{quiet:l.quiet}):l.local?e:await n();u===`zones`?l.zoneId=d:l.accountId=d,a(await s(`Loading`,async()=>c.securityCenter.scans.list({account_or_zone:u,account_or_zone_id:d})),{successLabel:`Loaded`})})};function R(e){return e.usage(`$0 security-center scans start
22
+ Returns the most recent on-demand scans for the account or zone, up to a maximum of 5. Each scan includes its ID, start time, and current status. This includes both account or zone-wide and zone-scoped scans. Also returns quota information showing how many scans have been used and how many remain in the current 24-hour window.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const L={command:`list`,describe:`Get Recent account or zone Scans`,builder:I,handler:async l=>c({command:`security-center scans list`,classification:{safeFlags:[`dry-run`]}},l,async()=>{if(l.dryRun){let e=l.zone===void 0?await t():void 0,n=l.zone===void 0?`accounts`:`zones`,r=l.zone??e??`<account-id>`;o({command:`cf security-center scans list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/${n}/${r}/security-center/insights/scans`,pathParams:{"account-or-zone":String(n),"account-or-zone-id":String(r)},bodyKind:`none`});return}let c=await i(l),u=l.zone===void 0?`accounts`:`zones`,d=u===`zones`?await n({zone:l.zone},c,{quiet:l.quiet}):l.local?e:await r();u===`zones`?l.zoneId=d:l.accountId=d,a(await s(`Loading`,async()=>c.securityCenter.scans.list({account_or_zone:u,account_or_zone_id:d})),{successLabel:`Loaded`})})};function R(e){return e.usage(`$0 security-center scans start
23
23
 
24
- Initiates an on-demand security scan for the entire account or zone, scanning all zones associated with the account or zone. Rate limited to 5 scans per account or zone per 24-hour window.`).option(`issue-type`,{type:`string`,description:`The issue_type field`,choices:[`compliance_violation`,`email_security`,`exposed_infrastructure`,`insecure_configuration`,`weak_authentication`,`configuration_suggestion`]}).option(`issue-class`,{type:`string`,description:`The issue_class field`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Request body for starting an on-demand scan. Specify issue_type or issue_class to scope the scan, or provide an empty object to scan all issue types.`}).conflicts(`issue-type`,[`issue-class`]).conflicts(`issue-class`,[`issue-type`])}const z={command:`start`,describe:`Start On-Demand account or zone Scan`,builder:R,handler:async f=>c({command:`security-center scans start`,classification:{safeFlags:[`issue-type`,`dry-run`]}},f,async()=>{if(f.dryRun){let e=f.zone===void 0?await r():void 0,t=f.zone===void 0?`accounts`:`zones`,n=f.zone??e??`<account-id>`;o({command:`cf security-center scans start`,method:`POST`,url:`https://api.cloudflare.com/client/v4/${t}/${n}/security-center/insights/scans`,pathParams:{"account-or-zone":String(t),"account-or-zone-id":String(n)},bodyKind:`json`,body:f.body===void 0?u({issue_type:d(f[`issue-type`],`issue-type`,`text`),issue_class:d(f[`issue-class`],`issue-class`,`text`)}):l(f.body)});return}let c=await i(f),p=f.zone===void 0?`accounts`:`zones`,m=p===`zones`?await t({zone:f.zone},c,{quiet:f.quiet}):f.local?e:await n();if(p===`zones`?f.zoneId=m:f.accountId=m,f.body){let e=l(f.body);a(await s(`Creating`,async()=>c.securityCenter.scans.start({body:e,account_or_zone:p,account_or_zone_id:m})),{successLabel:`Created`});return}let h=u({issue_type:d(f[`issue-type`],`issue-type`,`text`),issue_class:d(f[`issue-class`],`issue-class`,`text`)});a(await s(`Creating`,async()=>c.securityCenter.scans.start({body:h,account_or_zone:p,account_or_zone_id:m})),{successLabel:`Created`})})},B={command:`scans`,describe:`Operations for scans`,builder:e=>e.command(L).command(z).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function V(e){return e.usage(`$0 security-center state get
24
+ Initiates an on-demand security scan for the entire account or zone, scanning all zones associated with the account or zone. Rate limited to 5 scans per account or zone per 24-hour window.`).option(`issue-type`,{type:`string`,description:`The issue_type field`,choices:[`compliance_violation`,`email_security`,`exposed_infrastructure`,`insecure_configuration`,`weak_authentication`,`configuration_suggestion`]}).option(`issue-class`,{type:`string`,description:`The issue_class field`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Request body for starting an on-demand scan. Specify issue_type or issue_class to scope the scan, or provide an empty object to scan all issue types.`}).conflicts(`issue-type`,[`issue-class`]).conflicts(`issue-class`,[`issue-type`])}const z={command:`start`,describe:`Start On-Demand account or zone Scan`,builder:R,handler:async f=>c({command:`security-center scans start`,classification:{safeFlags:[`issue-type`,`dry-run`]}},f,async()=>{if(f.dryRun){let e=f.zone===void 0?await t():void 0,n=f.zone===void 0?`accounts`:`zones`,r=f.zone??e??`<account-id>`;o({command:`cf security-center scans start`,method:`POST`,url:`https://api.cloudflare.com/client/v4/${n}/${r}/security-center/insights/scans`,pathParams:{"account-or-zone":String(n),"account-or-zone-id":String(r)},bodyKind:`json`,body:f.body===void 0?u({issue_type:d(f[`issue-type`],`issue-type`,`text`),issue_class:d(f[`issue-class`],`issue-class`,`text`)}):l(f.body)});return}let c=await i(f),p=f.zone===void 0?`accounts`:`zones`,m=p===`zones`?await n({zone:f.zone},c,{quiet:f.quiet}):f.local?e:await r();if(p===`zones`?f.zoneId=m:f.accountId=m,f.body){let e=l(f.body);a(await s(`Creating`,async()=>c.securityCenter.scans.start({body:e,account_or_zone:p,account_or_zone_id:m})),{successLabel:`Created`});return}let h=u({issue_type:d(f[`issue-type`],`issue-type`,`text`),issue_class:d(f[`issue-class`],`issue-class`,`text`)});a(await s(`Creating`,async()=>c.securityCenter.scans.start({body:h,account_or_zone:p,account_or_zone_id:m})),{successLabel:`Created`})})},B={command:`scans`,describe:`Operations for scans`,builder:e=>e.command(L).command(z).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function V(e){return e.usage(`$0 security-center state get
25
25
 
26
- Returns account-level Security Center state: whether scans are enabled for the account and whether the account was recently reactivated from a dormant state.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const H={command:`get`,describe:`Retrieves Account State`,builder:V,handler:async t=>c({command:`security-center state get`,classification:{safeFlags:[`dry-run`]}},t,async()=>{if(t.dryRun){o({command:`cf security-center state get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await r()??`<account-id>`}/security-center/state`,pathParams:{},bodyKind:`none`});return}let c=await i(t),l=t.local?e:await n();t.accountId=l,a(await s(`Loading`,async()=>c.securityCenter.state.get({account_id:l})),{successLabel:`Loaded`})})};function U(e){return e.usage(`$0 security-center state update
26
+ Returns account-level Security Center state: whether scans are enabled for the account and whether the account was recently reactivated from a dormant state.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const H={command:`get`,describe:`Retrieves Account State`,builder:V,handler:async n=>c({command:`security-center state get`,classification:{safeFlags:[`dry-run`]}},n,async()=>{if(n.dryRun){o({command:`cf security-center state get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/security-center/state`,pathParams:{},bodyKind:`none`});return}let c=await i(n),l=n.local?e:await r();n.accountId=l,a(await s(`Loading`,async()=>c.securityCenter.state.get({account_id:l})),{successLabel:`Loaded`})})};function U(e){return e.usage(`$0 security-center state update
27
27
 
28
- Updates account-level Security Center state. Currently supports enabling or disabling scans for the account. Returns the account's state after the update.`).option(`scans-enabled`,{type:`boolean`,description:`Enable or disable scans for the account.`}).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 W={command:`update`,describe:`Updates Account State`,builder:U,handler:async t=>c({command:`security-center state update`,classification:{safeFlags:[`scans-enabled`,`dry-run`]}},t,async()=>{if(t.dryRun){o({command:`cf security-center state update`,method:`PUT`,url:`https://api.cloudflare.com/client/v4/accounts/${await r()??`<account-id>`}/security-center/state`,pathParams:{},bodyKind:`json`,body:t.body===void 0?u({scans_enabled:t[`scans-enabled`]}):l(t.body)});return}let c=await i(t),d=t.local?e:await n();if(t.accountId=d,t.body){let e=l(t.body);a(await s(`Updating`,async()=>c.securityCenter.state.update({...e,account_id:d})),{successLabel:`Updated`});return}if(t[`scans-enabled`]===void 0)throw Error(`--scans-enabled is required (or pass --body with this field set).`);let f=u({scans_enabled:t[`scans-enabled`]});a(await s(`Updating`,async()=>c.securityCenter.state.update({...f,account_id:d})),{successLabel:`Updated`})})},G={command:`state`,describe:`Operations for state`,builder:e=>e.command(H).command(W).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function K(e){return e.usage(`$0 security-center zone-insights context get <issue-id>
28
+ Updates account-level Security Center state. Currently supports enabling or disabling scans for the account. Returns the account's state after the update.`).option(`scans-enabled`,{type:`boolean`,description:`Enable or disable scans for the account.`}).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 W={command:`update`,describe:`Updates Account State`,builder:U,handler:async n=>c({command:`security-center state update`,classification:{safeFlags:[`scans-enabled`,`dry-run`]}},n,async()=>{if(n.dryRun){o({command:`cf security-center state update`,method:`PUT`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/security-center/state`,pathParams:{},bodyKind:`json`,body:n.body===void 0?u({scans_enabled:n[`scans-enabled`]}):l(n.body)});return}let c=await i(n),d=n.local?e:await r();if(n.accountId=d,n.body){let e=l(n.body);a(await s(`Updating`,async()=>c.securityCenter.state.update({...e,account_id:d})),{successLabel:`Updated`});return}if(n[`scans-enabled`]===void 0)throw Error(`--scans-enabled is required (or pass --body with this field set).`);let f=u({scans_enabled:n[`scans-enabled`]});a(await s(`Updating`,async()=>c.securityCenter.state.update({...f,account_id:d})),{successLabel:`Updated`})})},G={command:`state`,describe:`Operations for state`,builder:e=>e.command(H).command(W).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function K(e){return e.usage(`$0 security-center zone-insights context get <issue-id>
29
29
 
30
- Returns the full context payload for an insight. This endpoint is used for insights with large payloads that are not included inline in the list response.`).positional(`issue-id`,{type:`string`,description:`Issue ID`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const q={command:`get <issue-id>`,describe:`Retrieves Security Center Insight Context`,builder:K,handler:async t=>c({command:`security-center zone-insights context get`,classification:{safeFlags:[`dry-run`]}},t,async()=>{if(t.dryRun){o({command:`cf security-center zone-insights context get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await r()??`<account-id>`}/security-center/insights/${t[`issue-id`]==null?`<issue-id>`:encodeURIComponent(String(t[`issue-id`]))}/context`,pathParams:{"issue-id":String(t[`issue-id`]??``)},bodyKind:`none`});return}let c=await i(t),l=t.local?e:await n();t.accountId=l,a(await s(`Loading`,async()=>c.securityCenter.zoneInsights.context.get({account_id:l,issue_id:t[`issue-id`]})),{successLabel:`Loaded`})})},J={command:`context`,describe:`Operations for zone-insights.context`,builder:e=>e.command(q).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},Y={command:`zone-insights`,describe:`Zone-scoped security insights — counts by class, severity, type, and dismissal`,builder:e=>e.command(J).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},X={command:`security-center`,describe:`Security posture dashboard — view and manage security insights, misconfigurations, and vulnerabilities`,builder:e=>e.command(_).command(F).command(B).command(G).command(Y).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};export{X as default};
30
+ Returns the full context payload for an insight. This endpoint is used for insights with large payloads that are not included inline in the list response.`).positional(`issue-id`,{type:`string`,description:`Issue ID`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const q={command:`get <issue-id>`,describe:`Retrieves Security Center Insight Context`,builder:K,handler:async n=>c({command:`security-center zone-insights context get`,classification:{safeFlags:[`dry-run`]}},n,async()=>{if(n.dryRun){o({command:`cf security-center zone-insights context get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/security-center/insights/${n[`issue-id`]==null?`<issue-id>`:encodeURIComponent(String(n[`issue-id`]))}/context`,pathParams:{"issue-id":String(n[`issue-id`]??``)},bodyKind:`none`});return}let c=await i(n),l=n.local?e:await r();n.accountId=l,a(await s(`Loading`,async()=>c.securityCenter.zoneInsights.context.get({account_id:l,issue_id:n[`issue-id`]})),{successLabel:`Loaded`})})},J={command:`context`,describe:`Operations for zone-insights.context`,builder:e=>e.command(q).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},Y={command:`zone-insights`,describe:`Zone-scoped security insights — counts by class, severity, type, and dismissal`,builder:e=>e.command(J).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},X={command:`security-center`,describe:`Security posture dashboard — view and manage security insights, misconfigurations, and vulnerabilities`,builder:e=>e.command(_).command(F).command(B).command(G).command(Y).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};export{X as default};
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import{_ as e}from"./oauth-Dzk6Gy-6.mjs";import{r as t}from"./auth-DJhSjNNL.mjs";import{t as n}from"./output-Bia1u2k5.mjs";import{t as r}from"./dry-run-CLX6Pbtq.mjs";import{t as i}from"./progress-D_mL-Kcy.mjs";import{t as a}from"./run-DtN51G2A.mjs";import"./telemetry-DAf9gLyH.mjs";import{n as o,t as s}from"./body-parser-CUWbw_Tq.mjs";import{n as c}from"./input-validation-Ch4Vllrm.mjs";import{n as l}from"./prompt-sL_yMZbI.mjs";function u(e){return e.usage(`$0 security-txt delete
2
+ import{i as e}from"./context-5JRcefHh.mjs";import{r as t}from"./auth-3bFlHTVl.mjs";import{t as n}from"./output-CvQFJkvi.mjs";import{t as r}from"./dry-run-Bq0JAsbX.mjs";import{t as i}from"./progress-DUeNqM-j.mjs";import{t as a}from"./run-BhfDNWCI.mjs";import"./telemetry-iBZ-f6og.mjs";import{n as o,t as s}from"./body-parser-hh2avzkz.mjs";import{n as c}from"./input-validation-Dk52b0me.mjs";import{n as l}from"./prompt-DV6YTdoa.mjs";function u(e){return e.usage(`$0 security-txt delete
3
3
 
4
4
  Removes the security.txt file configuration for a zone. The /.well-known/security.txt endpoint will no longer be served.`).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 d={command:`delete`,describe:`Deletes security.txt`,builder:u,handler:async o=>a({command:`security-txt delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},o,async()=>{if(o.dryRun){r({command:`cf security-txt delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/zones/${o.zone??o.zoneId??`<zone>`}/security-center/securitytxt`,pathParams:{"zone-id":String(o.zone??o[`zone-id`]??``)},bodyKind:`none`});return}let a=await t(o),s=await e({zone:o.zone},a,{quiet:o.quiet});if(o.zoneId=s,!await l({force:!!o.force})){process.stderr.write(`Aborted.
5
5
  `);return}n(await i(`Deleting`,async()=>a.securityTxt.delete({zone_id:s})),{successLabel:`Deleted`})})};function f(e){return e.usage(`$0 security-txt get
@@ -0,0 +1,2 @@
1
+ #!/usr/bin/env node
2
+ import{r as e}from"./theme-BIWQFmZ0.mjs";import{o as t}from"./chunk-RV27PEH3-Cws_30ln.mjs";import{t as n}from"./banner-ClclgnBn.mjs";let r=!1,i=!1,a=!1;function o(e,t={}){if(!(r||i)){if(t.quiet||!process.stderr.isTTY){i=!0;return}process.stderr.write(`${n(e,t.update)}\n`),r=!0}}function s(n){!r||i||a||n===`default`||t({allowGlobalAuthKey:!1})!==void 0||(process.stderr.write(`${e.muted(`Active profile:`)} ${e.info(n)}\n`),a=!0)}export{s as n,o as t};
@@ -0,0 +1,2 @@
1
+ #!/usr/bin/env node
2
+ import{r as e}from"./theme-BIWQFmZ0.mjs";import{r as t}from"./dotenv-CcQjGlV0.mjs";import{G as n,nt as r}from"./dist-DfMipWKR.mjs";import"./ui-BQxRjahW.mjs";import{t as i}from"./context-5JRcefHh.mjs";import{n as a}from"./dist-DW47TUGh.mjs";import{i as o}from"./auth-3bFlHTVl.mjs";import{D as s,d as c,g as l,u}from"./dist-CpufWpsP.mjs";import{c as d,i as f,l as p,t as m}from"./containers-ClK7HGfx.mjs";import{a as h,i as g,n as _,o as v,r as y}from"./build-vfD1txJe.mjs";import{i as b,n as x,t as S}from"./deploy-input-dwBe8pSi.mjs";import{readBuildOutput as C}from"@cloudflare/build-output-utils";function w(e){return e.option(`prebuilt`,{type:`boolean`,description:`Deploy existing Build Output Specification files without building`,default:!1}).option(`tag`,{type:`string`,description:`A tag to associate with this Worker Version`,requiresArg:!0}).option(`message`,{type:`string`,description:`A message to associate with this Worker Version`,requiresArg:!0}).option(`secrets-file`,{type:`string`,description:`Path to a file containing secrets to upload with the version (JSON or .env format)`,requiresArg:!0}).option(`dry-run`,{describe:`Build a project and run checks without actually uploading the Worker`,type:`boolean`,default:!1}).option(`worker`,y)}async function T(e,n){return e.prebuilt||(await _(e.mode,{worker:e.worker}),a.message(``,{spacing:0})),t(e,()=>E(e,n))}async function E(t,_){let{workers:y,rootConfig:w,containers:T}=await C(process.cwd());if(w.buildContext.isPreview){let e=[`cf previews deploy`,...t.prebuilt?[`--prebuilt`]:[],...w.buildContext.mode===void 0?[]:[`--mode`,w.buildContext.mode]].join(` `);throw Error(`This build output is for a Preview. Run ${e} instead.`)}v(t.mode,w.buildContext.mode,{requireRequestedMode:t.prebuilt});let E=h(y,t.worker),{wranglerConfig:D,builtConfig:O}=g(E,w),k=S(E,O),A=t[`dry-run`]?``:await o(),j=t[`dry-run`]?void 0:await i(),M=s(A);p(M),l({logger:M.logger,fetchResult:M.fetchResult,fetchPagedListResult:M.fetchPagedListResult}),j!==void 0&&T.length>0&&c(j,A,n(D));let N=m(T,D,{accountId:j,containersRollout:t[`containers-rollout`]}),P;if(_.command===`Deploy`){let n=x(E,D,j,t,N);a.message(e.bold(`Deploy`),{symbol:e.muted(`├`),spacing:0}),{versionId:P}=await f(n,D,k,{syncWorkersSite:void 0,analyseBundle:void 0})}else{let n=b(E,D,j,t,N);a.message(e.bold(`Upload`),{symbol:e.muted(`├`),spacing:0}),{versionId:P}=await d(n,D,k,{analyseBundle:void 0})}P!==null&&!t[`dry-run`]&&(_.command!==`Deploy`||t[`containers-rollout`]!==`none`)&&await u([..._.command===`Deploy`?N.standard.builtImages:[],...N.durableObjects.builtImages],r()),a.success(t[`dry-run`]?`Dry run complete`:`${_.command} complete`)}export{w as n,T as t};
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import{_ as e}from"./oauth-Dzk6Gy-6.mjs";import{r as t}from"./auth-DJhSjNNL.mjs";import{t as n}from"./output-Bia1u2k5.mjs";import{t as r}from"./dry-run-CLX6Pbtq.mjs";import{t as i}from"./progress-D_mL-Kcy.mjs";import{t as a}from"./run-DtN51G2A.mjs";import"./telemetry-DAf9gLyH.mjs";import{n as o,r as s,t as c}from"./body-parser-CUWbw_Tq.mjs";import{n as l}from"./input-validation-Ch4Vllrm.mjs";import{a as u,n as d}from"./prompt-sL_yMZbI.mjs";function f(e){return e.usage(`$0 smart-shield cache-reserve-clear clear
2
+ import{i as e}from"./context-5JRcefHh.mjs";import{r as t}from"./auth-3bFlHTVl.mjs";import{t as n}from"./output-CvQFJkvi.mjs";import{t as r}from"./dry-run-Bq0JAsbX.mjs";import{t as i}from"./progress-DUeNqM-j.mjs";import{t as a}from"./run-BhfDNWCI.mjs";import"./telemetry-iBZ-f6og.mjs";import{n as o,r as s,t as c}from"./body-parser-hh2avzkz.mjs";import{n as l}from"./input-validation-Dk52b0me.mjs";import{a as u,n as d}from"./prompt-DV6YTdoa.mjs";function f(e){return e.usage(`$0 smart-shield cache-reserve-clear clear
3
3
 
4
4
  You can use Cache Reserve Clear to clear your Cache Reserve, but you must first disable Cache Reserve. In most cases, this will be accomplished within 24 hours. You cannot re-enable Cache Reserve while this process is ongoing. Keep in mind that you cannot undo or cancel this operation.`).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 p={command:`clear`,describe:`Start Cache Reserve Clear`,builder:f,handler:async o=>a({command:`smart-shield cache-reserve-clear clear`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},o,async()=>{if(o.dryRun){r({command:`cf smart-shield cache-reserve-clear clear`,method:`POST`,url:`https://api.cloudflare.com/client/v4/zones/${o.zone??o.zoneId??`<zone>`}/smart_shield/cache_reserve_clear`,pathParams:{"zone-id":String(o.zone??o[`zone-id`]??``)},bodyKind:`none`});return}let a=await t(o),s=await e({zone:o.zone},a,{quiet:o.quiet});if(o.zoneId=s,!await d({force:!!o.force,message:`This operation permanently clears Cache Reserve for this zone and cannot be undone.`})){process.stderr.write(`Aborted.
5
5
  `);return}n(await i(`Deleting`,async()=>a.smartShield.cacheReserveClear.clear({zone_id:s})),{successLabel:`Deleted`})})};function m(e){return e.usage(`$0 smart-shield cache-reserve-clear status
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import{_ as e}from"./oauth-Dzk6Gy-6.mjs";import{a as t,r as n}from"./auth-DJhSjNNL.mjs";import{t as r}from"./output-Bia1u2k5.mjs";import{t as i}from"./dry-run-CLX6Pbtq.mjs";import{t as a}from"./progress-D_mL-Kcy.mjs";import{t as o}from"./run-DtN51G2A.mjs";import"./telemetry-DAf9gLyH.mjs";import{n as s,r as c,t as l}from"./body-parser-CUWbw_Tq.mjs";import{n as u,t as d}from"./input-validation-Ch4Vllrm.mjs";import{n as f}from"./prompt-sL_yMZbI.mjs";import{n as p,t as m}from"./raw-fetch-lSVttVJF.mjs";function h(e){return e.usage(`$0 snippets content get <snippet-name>
2
+ import{i as e}from"./context-5JRcefHh.mjs";import{a as t,r as n}from"./auth-3bFlHTVl.mjs";import{t as r}from"./output-CvQFJkvi.mjs";import{t as i}from"./dry-run-Bq0JAsbX.mjs";import{t as a}from"./progress-DUeNqM-j.mjs";import{t as o}from"./run-BhfDNWCI.mjs";import"./telemetry-iBZ-f6og.mjs";import{n as s,r as c,t as l}from"./body-parser-hh2avzkz.mjs";import{n as u,t as d}from"./input-validation-Dk52b0me.mjs";import{n as f}from"./prompt-DV6YTdoa.mjs";import{n as p,t as m}from"./raw-fetch-Cp3EaTcj.mjs";function h(e){return e.usage(`$0 snippets content get <snippet-name>
3
3
 
4
4
  Fetches the content of a snippet belonging to the zone.`).positional(`snippet-name`,{type:`string`,description:`Identify the snippet.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`text`,{type:`boolean`,description:`Decode the response body as UTF-8 text instead of writing raw bytes`,default:!1})}const g={command:`get <snippet-name>`,describe:`Get a zone snippet content`,builder:h,handler:async t=>o({command:`snippets content get`,classification:{safeFlags:[`dry-run`,`text`]}},t,async()=>{if(t.dryRun){i({command:`cf snippets content get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/zones/${t.zone??t.zoneId??`<zone>`}/snippets/${t[`snippet-name`]==null?`<snippet-name>`:encodeURIComponent(String(t[`snippet-name`]))}/content`,pathParams:{"zone-id":String(t.zone??t[`zone-id`]??``),"snippet-name":String(t[`snippet-name`]??``)},bodyKind:`none`});return}let r=await n(t);t.zoneId=await e({zone:t.zone},r,{quiet:t.quiet});let o=await a(`Loading`,async()=>m(`/zones/${t.zoneId}/snippets/${encodeURIComponent(String(t[`snippet-name`]))}/content`,{method:`GET`,local:t.local===!0,persistTo:t.persistTo}));p(t.text===!0?o.toString(`utf-8`):o)})},_={command:`content`,describe:`Operations for content`,builder:e=>e.command(g).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function v(e){return e.usage(`$0 snippets delete <snippet-name>
5
5
 
@@ -0,0 +1,6 @@
1
+ #!/usr/bin/env node
2
+ import{createRequire as e}from"node:module";import t from"node:process";import n from"node:os";import r from"node:tty";var i=Object.create,a=Object.defineProperty,o=Object.getOwnPropertyDescriptor,s=Object.getOwnPropertyNames,c=Object.getPrototypeOf,l=Object.prototype.hasOwnProperty,u=(e,t)=>()=>(t||(e((t={exports:{}}).exports,t),e=null),t.exports),d=(e,t,n,r)=>{if(t&&typeof t==`object`||typeof t==`function`)for(var i=s(t),c=0,u=i.length,d;c<u;c++)d=i[c],!l.call(e,d)&&d!==n&&a(e,d,{get:(e=>t[e]).bind(null,d),enumerable:!(r=o(t,d))||r.enumerable});return e},f=(e,t,n)=>(n=e==null?{}:i(c(e)),d(t||!e||!e.__esModule?a(n,`default`,{value:e,enumerable:!0}):n,e)),p=e(import.meta.url);const m=(e=0)=>t=>`\u001B[${t+e}m`,h=(e=0)=>t=>`\u001B[${38+e};5;${t}m`,g=(e=0)=>(t,n,r)=>`\u001B[${38+e};2;${t};${n};${r}m`,_={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],overline:[53,55],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],gray:[90,39],grey:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgGray:[100,49],bgGrey:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};Object.keys(_.modifier);const v=Object.keys(_.color),y=Object.keys(_.bgColor);[...v,...y];function b(){let e=new Map;for(let[t,n]of Object.entries(_)){for(let[t,r]of Object.entries(n))_[t]={open:`\u001B[${r[0]}m`,close:`\u001B[${r[1]}m`},n[t]=_[t],e.set(r[0],r[1]);Object.defineProperty(_,t,{value:n,enumerable:!1})}return Object.defineProperty(_,`codes`,{value:e,enumerable:!1}),_.color.close=`\x1B[39m`,_.bgColor.close=`\x1B[49m`,_.color.ansi=m(),_.color.ansi256=h(),_.color.ansi16m=g(),_.bgColor.ansi=m(10),_.bgColor.ansi256=h(10),_.bgColor.ansi16m=g(10),Object.defineProperties(_,{rgbToAnsi256:{value(e,t,n){return e===t&&t===n?e<8?16:e>248?231:Math.round((e-8)/247*24)+232:16+36*Math.round(e/255*5)+6*Math.round(t/255*5)+Math.round(n/255*5)},enumerable:!1},hexToRgb:{value(e){let t=/[a-f\d]{6}|[a-f\d]{3}/i.exec(e.toString(16));if(!t)return[0,0,0];let[n]=t;n.length===3&&(n=[...n].map(e=>e+e).join(``));let r=Number.parseInt(n,16);return[r>>16&255,r>>8&255,r&255]},enumerable:!1},hexToAnsi256:{value:e=>_.rgbToAnsi256(..._.hexToRgb(e)),enumerable:!1},ansi256ToAnsi:{value(e){if(e<8)return 30+e;if(e<16)return 90+(e-8);let t,n,r;if(e>=232)t=((e-232)*10+8)/255,n=t,r=t;else{e-=16;let i=e%36;t=Math.floor(e/36)/5,n=Math.floor(i/6)/5,r=i%6/5}let i=Math.max(t,n,r)*2;if(i===0)return 30;let a=30+(Math.round(r)<<2|Math.round(n)<<1|Math.round(t));return i===2&&(a+=60),a},enumerable:!1},rgbToAnsi:{value:(e,t,n)=>_.ansi256ToAnsi(_.rgbToAnsi256(e,t,n)),enumerable:!1},hexToAnsi:{value:e=>_.ansi256ToAnsi(_.hexToAnsi256(e)),enumerable:!1}}),_}const x=b();function S(e,n=globalThis.Deno?globalThis.Deno.args:t.argv){let r=e.startsWith(`-`)?``:e.length===1?`-`:`--`,i=n.indexOf(r+e),a=n.indexOf(`--`);return i!==-1&&(a===-1||i<a)}const{env:C}=t;let w;S(`no-color`)||S(`no-colors`)||S(`color=false`)||S(`color=never`)?w=0:(S(`color`)||S(`colors`)||S(`color=true`)||S(`color=always`))&&(w=1);function T(){if(`FORCE_COLOR`in C)return C.FORCE_COLOR===`true`?1:C.FORCE_COLOR===`false`?0:C.FORCE_COLOR.length===0?1:Math.min(Number.parseInt(C.FORCE_COLOR,10),3)}function E(e){return e===0?!1:{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}function D(e,{streamIsTTY:r,sniffFlags:i=!0}={}){let a=T();a!==void 0&&(w=a);let o=i?w:a;if(o===0)return 0;if(i){if(S(`color=16m`)||S(`color=full`)||S(`color=truecolor`))return 3;if(S(`color=256`))return 2}if(`TF_BUILD`in C&&`AGENT_NAME`in C)return 1;if(e&&!r&&o===void 0)return 0;let s=o||0;if(C.TERM===`dumb`)return s;if(t.platform===`win32`){let e=n.release().split(`.`);return Number(e[0])>=10&&Number(e[2])>=10586?Number(e[2])>=14931?3:2:1}if(`CI`in C)return`GITHUB_ACTIONS`in C||`GITEA_ACTIONS`in C?3:[`TRAVIS`,`CIRCLECI`,`APPVEYOR`,`GITLAB_CI`,`BUILDKITE`,`DRONE`].some(e=>e in C)||C.CI_NAME===`codeship`?1:s;if(`TEAMCITY_VERSION`in C)return+!!/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(C.TEAMCITY_VERSION);if(C.COLORTERM===`truecolor`||C.TERM===`xterm-kitty`)return 3;if(`TERM_PROGRAM`in C){let e=Number.parseInt((C.TERM_PROGRAM_VERSION||``).split(`.`)[0],10);switch(C.TERM_PROGRAM){case`iTerm.app`:return e>=3?3:2;case`Apple_Terminal`:return 2}}return/-256(color)?$/i.test(C.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(C.TERM)||`COLORTERM`in C?1:s}function O(e,t={}){return E(D(e,{streamIsTTY:e&&e.isTTY,...t}))}const k={stdout:O({isTTY:r.isatty(1)}),stderr:O({isTTY:r.isatty(2)})};function A(e,t,n){let r=e.indexOf(t);if(r===-1)return e;let i=t.length,a=0,o=``;do o+=e.slice(a,r)+t+n,a=r+i,r=e.indexOf(t,a);while(r!==-1);return o+=e.slice(a),o}function j(e,t,n,r){let i=0,a=``;do{let o=e[r-1]===`\r`;a+=e.slice(i,o?r-1:r)+t+(o?`\r
3
+ `:`
4
+ `)+n,i=r+1,r=e.indexOf(`
5
+ `,i)}while(r!==-1);return a+=e.slice(i),a}const{stdout:M,stderr:N}=k,P=Symbol(`GENERATOR`),F=Symbol(`STYLER`),I=Symbol(`IS_EMPTY`),L=[`ansi`,`ansi`,`ansi256`,`ansi16m`],R=Object.create(null),z=(e,t={})=>{if(t.level&&!(Number.isInteger(t.level)&&t.level>=0&&t.level<=3))throw Error("The `level` option should be an integer from 0 to 3");let n=M?M.level:0;e.level=t.level===void 0?n:t.level},B=e=>{let t=(...e)=>e.join(` `);return z(t,e),Object.setPrototypeOf(t,V.prototype),t};function V(e){return B(e)}Object.setPrototypeOf(V.prototype,Function.prototype);for(let[e,t]of Object.entries(x))R[e]={get(){let n=G(this,W(t.open,t.close,this[F]),this[I]);return Object.defineProperty(this,e,{value:n}),n}};R.visible={get(){let e=G(this,this[F],!0);return Object.defineProperty(this,`visible`,{value:e}),e}};const H=(e,t,n,...r)=>e===`rgb`?t===`ansi16m`?x[n].ansi16m(...r):t===`ansi256`?x[n].ansi256(x.rgbToAnsi256(...r)):x[n].ansi(x.rgbToAnsi(...r)):e===`hex`?H(`rgb`,t,n,...x.hexToRgb(...r)):x[n][e](...r);for(let e of[`rgb`,`hex`,`ansi256`]){R[e]={get(){let{level:t}=this;return function(...n){let r=W(H(e,L[t],`color`,...n),x.color.close,this[F]);return G(this,r,this[I])}}};let t=`bg`+e[0].toUpperCase()+e.slice(1);R[t]={get(){let{level:t}=this;return function(...n){let r=W(H(e,L[t],`bgColor`,...n),x.bgColor.close,this[F]);return G(this,r,this[I])}}}}const U=Object.defineProperties(()=>{},{...R,level:{enumerable:!0,get(){return this[P].level},set(e){this[P].level=e}}}),W=(e,t,n)=>{let r,i;return n===void 0?(r=e,i=t):(r=n.openAll+e,i=t+n.closeAll),{open:e,close:t,openAll:r,closeAll:i,parent:n}},G=(e,t,n)=>{let r=(...e)=>K(r,e.length===1?``+e[0]:e.join(` `));return Object.setPrototypeOf(r,U),r[P]=e,r[F]=t,r[I]=n,r},K=(e,t)=>{if(e.level<=0||!t)return e[I]?``:t;let n=e[F];if(n===void 0)return t;let{openAll:r,closeAll:i}=n;if(t.includes(`\x1B`))for(;n!==void 0;)t=A(t,n.close,n.open),n=n.parent;let a=t.indexOf(`
6
+ `);return a!==-1&&(t=j(t,i,r,a)),r+t+i};Object.defineProperties(V.prototype,R);const q=V();V({level:N?N.level:0});export{f as i,u as n,p as r,q as t};
@@ -0,0 +1,10 @@
1
+ #!/usr/bin/env node
2
+ import{i as e,n as t}from"./source-38bULAR8.mjs";import{r as n}from"./theme-BIWQFmZ0.mjs";import{t as r}from"./cli-exit-Dqoo6Jgb.mjs";import"./ui-BQxRjahW.mjs";import{a as i,i as a,n as o,o as s,r as c,s as l,t as u}from"./gt-DmcMNPX6.mjs";import{n as d,t as f}from"./discover-DmIsaE54.mjs";import{t as p}from"./registry-kYRASukx.mjs";import{constants as m}from"node:os";import{spawn as h}from"node:child_process";var g=t(((e,t)=>{t.exports=class{constructor(){this.max=1e3,this.map=new Map}get(e){let t=this.map.get(e);if(t!==void 0)return this.map.delete(e),this.map.set(e,t),t}delete(e){return this.map.delete(e)}set(e,t){if(!this.delete(e)&&t!==void 0){if(this.map.size>=this.max){let e=this.map.keys().next().value;this.delete(e)}this.map.set(e,t)}return this}}})),_=t(((e,t)=>{let n=o();t.exports=(e,t,r)=>n(e,t,r)===0})),v=t(((e,t)=>{let n=o();t.exports=(e,t,r)=>n(e,t,r)!==0})),y=t(((e,t)=>{let n=o();t.exports=(e,t,r)=>n(e,t,r)>=0})),b=t(((e,t)=>{let n=o();t.exports=(e,t,r)=>n(e,t,r)<0})),x=t(((e,t)=>{let n=o();t.exports=(e,t,r)=>n(e,t,r)<=0})),S=t(((e,t)=>{let n=_(),r=v(),i=u(),a=y(),o=b(),s=x();t.exports=(e,t,c,l)=>{switch(t){case`===`:return typeof e==`object`&&(e=e.version),typeof c==`object`&&(c=c.version),e===c;case`!==`:return typeof e==`object`&&(e=e.version),typeof c==`object`&&(c=c.version),e!==c;case``:case`=`:case`==`:return n(e,c,l);case`!=`:return r(e,c,l);case`>`:return i(e,c,l);case`>=`:return a(e,c,l);case`<`:return o(e,c,l);case`<=`:return s(e,c,l);default:throw TypeError(`Invalid operator: ${t}`)}}})),C=t(((e,t)=>{let n=Symbol(`SemVer ANY`);t.exports=class e{static get ANY(){return n}constructor(t,i){if(i=r(i),t instanceof e){if(t.loose===!!i.loose)return t;t=t.value}t=t.trim().split(/\s+/).join(` `),d(`comparator`,t,i),this.options=i,this.loose=!!i.loose,this.parse(t),this.semver===n?this.value=``:this.value=this.operator+this.semver.version,d(`comp`,this)}parse(e){let t=this.options.loose?o[s.COMPARATORLOOSE]:o[s.COMPARATOR],r=e.match(t);if(!r)throw TypeError(`Invalid comparator: ${e}`);this.operator=r[1]===void 0?``:r[1],this.operator===`=`&&(this.operator=``),r[2]?this.semver=new f(r[2],this.options.loose):this.semver=n}toString(){return this.value}test(e){if(d(`Comparator.test`,e,this.options.loose),this.semver===n||e===n)return!0;if(typeof e==`string`)try{e=new f(e,this.options)}catch{return!1}return u(e,this.operator,this.semver,this.options)}intersects(t,n){if(!(t instanceof e))throw TypeError(`a Comparator is required`);return this.operator===``?this.value===``?!0:new p(t.value,n).test(this.value):t.operator===``?t.value===``?!0:new p(this.value,n).test(t.semver):(n=r(n),n.includePrerelease&&(this.value===`<0.0.0-0`||t.value===`<0.0.0-0`)||!n.includePrerelease&&(this.value.startsWith(`<0.0.0`)||t.value.startsWith(`<0.0.0`))?!1:!!(this.operator.startsWith(`>`)&&t.operator.startsWith(`>`)||this.operator.startsWith(`<`)&&t.operator.startsWith(`<`)||this.semver.version===t.semver.version&&this.operator.includes(`=`)&&t.operator.includes(`=`)||u(this.semver,`<`,t.semver,n)&&this.operator.startsWith(`>`)&&t.operator.startsWith(`<`)||u(this.semver,`>`,t.semver,n)&&this.operator.startsWith(`<`)&&t.operator.startsWith(`>`)))}};let r=a(),{safeRe:o,t:s}=i(),u=S(),d=l(),f=c(),p=w()})),w=t(((e,t)=>{let n=/\s+/g;t.exports=class e{constructor(t,r){if(r=o(r),t instanceof e)return t.loose===!!r.loose&&t.includePrerelease===!!r.includePrerelease?t:new e(t.raw,r);if(t instanceof u)return this.raw=t.value,this.set=[[t]],this.formatted=void 0,this;if(this.options=r,this.loose=!!r.loose,this.includePrerelease=!!r.includePrerelease,this.raw=t.trim().replace(n,` `),this.set=this.raw.split(`||`).map(e=>this.parseRange(e.trim())).filter(e=>e.length),!this.set.length)throw TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){let e=this.set[0];if(this.set=this.set.filter(e=>!w(e[0])),this.set.length===0)this.set=[e];else if(this.set.length>1){for(let e of this.set)if(e.length===1&&T(e[0])){this.set=[e];break}}}this.formatted=void 0}get range(){if(this.formatted===void 0){this.formatted=``;for(let e=0;e<this.set.length;e++){e>0&&(this.formatted+=`||`);let t=this.set[e];for(let e=0;e<t.length;e++)e>0&&(this.formatted+=` `),this.formatted+=t[e].toString().trim()}}return this.formatted}format(){return this.range}toString(){return this.range}parseRange(e){e=e.replace(S,``);let t=((this.options.includePrerelease&&b)|(this.options.loose&&x))+`:`+e,n=r.get(t);if(n)return n;let i=this.options.loose,a=i?p[h.HYPHENRANGELOOSE]:p[h.HYPHENRANGE];e=e.replace(a,R(this.options.includePrerelease)),d(`hyphen replace`,e),e=e.replace(p[h.COMPARATORTRIM],_),d(`comparator trim`,e),e=e.replace(p[h.TILDETRIM],v),d(`tilde trim`,e),e=e.replace(p[h.CARETTRIM],y),d(`caret trim`,e);let o=e.split(` `).map(e=>D(e,this.options)).join(` `).split(/\s+/).map(e=>L(e,this.options));i&&(o=o.filter(e=>(d(`loose invalid filter`,e,this.options),!!e.match(p[h.COMPARATORLOOSE])))),d(`range list`,o);let s=new Map,c=o.map(e=>new u(e,this.options));for(let e of c){if(w(e))return[e];s.set(e.value,e)}s.size>1&&s.has(``)&&s.delete(``);let l=[...s.values()];return r.set(t,l),l}intersects(t,n){if(!(t instanceof e))throw TypeError(`a Range is required`);return this.set.some(e=>E(e,n)&&t.set.some(t=>E(t,n)&&e.every(e=>t.every(t=>e.intersects(t,n)))))}test(e){if(!e)return!1;if(typeof e==`string`)try{e=new f(e,this.options)}catch{return!1}for(let t=0;t<this.set.length;t++)if(z(this.set[t],e,this.options))return!0;return!1}};let r=new(g()),o=a(),u=C(),d=l(),f=c(),{safeRe:p,src:m,t:h,comparatorTrimReplace:_,tildeTrimReplace:v,caretTrimReplace:y}=i(),{FLAG_INCLUDE_PRERELEASE:b,FLAG_LOOSE:x}=s(),S=new RegExp(m[h.BUILD],`g`),w=e=>e.value===`<0.0.0-0`,T=e=>e.value===``,E=(e,t)=>{let n=!0,r=e.slice(),i=r.pop();for(;n&&r.length;)n=r.every(e=>i.intersects(e,t)),i=r.pop();return n},D=(e,t)=>(e=e.replace(p[h.BUILD],``),d(`comp`,e,t),e=M(e,t),d(`caret`,e),e=A(e,t),d(`tildes`,e),e=P(e,t),d(`xrange`,e),e=I(e,t),d(`stars`,e),e),O=e=>!e||e.toLowerCase()===`x`||e===`*`,k=(e,t,n)=>O(e)&&!O(t)||O(t)&&n&&!O(n),A=(e,t)=>e.trim().split(/\s+/).map(e=>j(e,t)).join(` `),j=(e,t)=>{let n=t.loose?p[h.TILDELOOSE]:p[h.TILDE],r=t.includePrerelease?`-0`:``;return e.replace(n,(t,n,i,a,o)=>{d(`tilde`,e,t,n,i,a,o);let s;return O(n)?s=``:O(i)?s=`>=${n}.0.0${r} <${+n+1}.0.0-0`:O(a)?s=`>=${n}.${i}.0${r} <${n}.${+i+1}.0-0`:o?(d(`replaceTilde pr`,o),s=`>=${n}.${i}.${a}-${o} <${n}.${+i+1}.0-0`):s=`>=${n}.${i}.${a} <${n}.${+i+1}.0-0`,d(`tilde return`,s),s})},M=(e,t)=>e.trim().split(/\s+/).map(e=>N(e,t)).join(` `),N=(e,t)=>{d(`caret`,e,t);let n=t.loose?p[h.CARETLOOSE]:p[h.CARET],r=t.includePrerelease?`-0`:``;return e.replace(n,(t,n,i,a,o)=>{d(`caret`,e,t,n,i,a,o);let s;return O(n)?s=``:O(i)?s=`>=${n}.0.0${r} <${+n+1}.0.0-0`:O(a)?s=n===`0`?`>=${n}.${i}.0${r} <${n}.${+i+1}.0-0`:`>=${n}.${i}.0${r} <${+n+1}.0.0-0`:o?(d(`replaceCaret pr`,o),s=n===`0`?i===`0`?`>=${n}.${i}.${a}-${o} <${n}.${i}.${+a+1}-0`:`>=${n}.${i}.${a}-${o} <${n}.${+i+1}.0-0`:`>=${n}.${i}.${a}-${o} <${+n+1}.0.0-0`):(d(`no pr`),s=n===`0`?i===`0`?`>=${n}.${i}.${a} <${n}.${i}.${+a+1}-0`:`>=${n}.${i}.${a} <${n}.${+i+1}.0-0`:`>=${n}.${i}.${a} <${+n+1}.0.0-0`),d(`caret return`,s),s})},P=(e,t)=>(d(`replaceXRanges`,e,t),e.split(/\s+/).map(e=>F(e,t)).join(` `)),F=(e,t)=>{e=e.trim();let n=t.loose?p[h.XRANGELOOSE]:p[h.XRANGE];return e.replace(n,(n,r,i,a,o,s)=>{if(d(`xRange`,e,n,r,i,a,o,s),k(i,a,o))return e;let c=O(i),l=c||O(a),u=l||O(o),f=u;return r===`=`&&f&&(r=``),s=t.includePrerelease?`-0`:``,c?n=r===`>`||r===`<`?`<0.0.0-0`:`*`:r&&f?(l&&(a=0),o=0,r===`>`?(r=`>=`,l?(i=+i+1,a=0,o=0):(a=+a+1,o=0)):r===`<=`&&(r=`<`,l?i=+i+1:a=+a+1),r===`<`&&(s=`-0`),n=`${r+i}.${a}.${o}${s}`):l?n=`>=${i}.0.0${s} <${+i+1}.0.0-0`:u&&(n=`>=${i}.${a}.0${s} <${i}.${+a+1}.0-0`),d(`xRange return`,n),n})},I=(e,t)=>(d(`replaceStars`,e,t),e.trim().replace(p[h.STAR],``)),L=(e,t)=>(d(`replaceGTE0`,e,t),e.trim().replace(p[t.includePrerelease?h.GTE0PRE:h.GTE0],``)),R=e=>(t,n,r,i,a,o,s,c,l,u,d,f)=>(n=O(r)?``:O(i)?`>=${r}.0.0${e?`-0`:``}`:O(a)?`>=${r}.${i}.0${e?`-0`:``}`:o?`>=${n}`:`>=${n}${e?`-0`:``}`,c=O(l)?``:O(u)?`<${+l+1}.0.0-0`:O(d)?`<${l}.${+u+1}.0-0`:f?`<=${l}.${u}.${d}-${f}`:e?`<${l}.${u}.${+d+1}-0`:`<=${c}`,`${n} ${c}`.trim()),z=(e,t,n)=>{for(let n=0;n<e.length;n++)if(!e[n].test(t))return!1;if(t.prerelease.length&&!n.includePrerelease){for(let n=0;n<e.length;n++)if(d(e[n].semver),e[n].semver!==u.ANY&&e[n].semver.prerelease.length>0){let r=e[n].semver;if(r.major===t.major&&r.minor===t.minor&&r.patch===t.patch)return!0}return!1}return!0}})),T=e(t(((e,t)=>{let n=w();t.exports=(e,t,r)=>{try{t=new n(t,r)}catch{return!1}return t.test(e)}}))(),1);function E(e){let t=f(e);if(t.length===0)throw A(e),new r(1);if(t.length>1)throw j(t),new r(1);let[n]=t;if(!n)throw new r(1);if(!n.binary)throw M(n),new r(1);if(n.impl.versionConstraint!==void 0&&!D(n.installedVersion,n.impl.versionConstraint.range))throw O(n),new r(1);return n}function D(e,t){return e!==void 0&&(0,T.default)(e,t,{includePrerelease:!0})}function O(e){console.error(`\n${n.bold(e.impl.pkg)}@${e.installedVersion??`unknown`} is installed, but it is not compatible with cf's local runtime.\n\n`+k(e)+`Try: ${e.impl.installHint}`)}function k(e){let t=e.impl.versionConstraint?.display??`a compatible version`;return`cf requires ${n.bold(t)} for ${n.bold(`cf dev`)}, ${n.bold(`cf build`)}, ${n.bold(`cf deploy`)}, and ${n.bold(`cf previews deploy`)}.\n`}function A(e){console.error(`
3
+ No Cloudflare dev-server is installed in this project.
4
+
5
+ A project must declare exactly one of the following in its manifest:
6
+ `);for(let e of d)console.error(` ${n.bold(e.pkg)} ${n.muted(`(${e.description})`)}`),console.error(` install: ${e.installHint}`);console.error(`\nThe manifest checked was: ${e}/(package.json|pyproject.toml|Cargo.toml)`)}function j(e){console.error(`
7
+ Multiple Cloudflare dev-server implementations are configured:
8
+ `);for(let t of e)console.error(` - ${n.bold(t.impl.pkg)} (${t.manifestPath})`);console.error(`
9
+ A project can only use one dev-server. Remove all but one
10
+ from your project's manifest and try again.`)}function M(e){if(e.installed&&e.impl.versionConstraint){console.error(`\n${n.bold(e.impl.pkg)} is declared in ${e.manifestPath}, but this installation does not include the cf delegate.\n\n`+k(e)+`Try: ${e.impl.installHint}`);return}console.error(`\n${n.bold(e.impl.pkg)} is declared in ${e.manifestPath} but is not installed.\n\nTry: ${e.impl.installHint}`)}function N(e,t=process.platform){return t!==`win32`||e!==`SIGINT`}function P(e,t,n){let r=t??n??void 0;return{exitCode:e??(r?128+(m.signals[r]??1):1),...r?{signal:r}:{}}}async function F(e,t,n,r={}){let i=r.output??`stdout`,a=e.binary;if(!a)throw Error(`Cannot spawn ${e.impl.pkg}: binary not found.\nTry: ${e.impl.installHint}`);let{command:o,prefixArgs:s}=L(a),c=h(o,[...s,t,...n],{stdio:[`inherit`,i===`stderr`?process.stderr:i===`silent`?`ignore`:`inherit`,`inherit`],env:I(t,r.env)}),l,u=e=>{l??=e,N(e)&&c.kill(e)},d=()=>u(`SIGINT`),f=()=>u(`SIGTERM`);process.on(`SIGINT`,d),process.on(`SIGTERM`,f);try{return await new Promise((e,t)=>{c.once(`exit`,(t,n)=>{e(P(t,n,l))}),c.once(`error`,e=>{t(e)})})}finally{process.off(`SIGINT`,d),process.off(`SIGTERM`,f)}}function I(e,t={}){let n={...R(process.env,`--no-deprecation`),...t,CLOUDFLARE_CF_AUTH:`true`};return e===`dev`?{...n,...p(n)}:n}function L(e){return e.startsWith(`uv:`)?{command:`uv`,prefixArgs:[`run`,`--no-sync`,e.slice(3)]}:{command:e,prefixArgs:[]}}function R(e,t){let n=e.NODE_OPTIONS??``;return n.split(/\s+/).includes(t)?e:{...e,NODE_OPTIONS:n?`${n} ${t}`:t}}export{E as n,F as t};
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import{_ as e}from"./oauth-Dzk6Gy-6.mjs";import{r as t}from"./auth-DJhSjNNL.mjs";import{t as n}from"./output-Bia1u2k5.mjs";import{t as r}from"./dry-run-CLX6Pbtq.mjs";import{t as i}from"./progress-D_mL-Kcy.mjs";import{t as a}from"./run-DtN51G2A.mjs";import"./telemetry-DAf9gLyH.mjs";import{n as o,t as s}from"./body-parser-CUWbw_Tq.mjs";import{n as c}from"./input-validation-Ch4Vllrm.mjs";import{a as l,n as u}from"./prompt-sL_yMZbI.mjs";import{t as d}from"./cli-types-tt_LZMbn.mjs";function f(e){return e.usage(`$0 spectrum analytics aggregates currents get
2
+ import{i as e}from"./context-5JRcefHh.mjs";import{r as t}from"./auth-3bFlHTVl.mjs";import{t as n}from"./output-CvQFJkvi.mjs";import{t as r}from"./dry-run-Bq0JAsbX.mjs";import{t as i}from"./progress-DUeNqM-j.mjs";import{t as a}from"./run-BhfDNWCI.mjs";import"./telemetry-iBZ-f6og.mjs";import{n as o,t as s}from"./body-parser-hh2avzkz.mjs";import{n as c}from"./input-validation-Dk52b0me.mjs";import{a as l,n as u}from"./prompt-DV6YTdoa.mjs";import{t as d}from"./cli-types-DoVT5q_M.mjs";function f(e){return e.usage(`$0 spectrum analytics aggregates currents get
3
3
 
4
4
  Retrieves analytics aggregated from the last minute of usage on Spectrum applications underneath a given zone.`).option(`app-id`,{type:`string`,description:`Comma-delimited list of Spectrum Application Id(s). If provided, the response will be limited to Spectrum Application Id(s) that match.`}).option(`colo-name`,{type:`string`,description:`Co-location identifier.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const p={command:`get`,describe:`Get current aggregated analytics`,builder:f,handler:async o=>a({command:`spectrum analytics aggregates currents get`,classification:{safeFlags:[`dry-run`]}},o,async()=>{let a={appID:o[`app-id`],colo_name:o[`colo-name`]};if(o.dryRun){r({command:`cf spectrum analytics aggregates currents get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/zones/${o.zone??o.zoneId??`<zone>`}/spectrum/analytics/aggregate/current`,pathParams:{"zone-id":String(o.zone??o[`zone-id`]??``)},query:a,bodyKind:`none`});return}let s=await t(o),c=await e({zone:o.zone},s,{quiet:o.quiet});o.zoneId=c,n(await i(`Loading`,async()=>s.spectrum.analytics.aggregates.currents.get({zone_id:c,...a})),{successLabel:`Loaded`})})},m={command:`currents`,describe:`Operations for analytics.aggregates.currents`,builder:e=>e.command(p).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},h={command:`aggregates`,describe:`Operations for analytics.aggregates`,builder:e=>e.command(m).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function g(e){return e.usage(`$0 spectrum analytics events bytimes get
5
5
 
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import{_ as e}from"./oauth-Dzk6Gy-6.mjs";import{r as t}from"./auth-DJhSjNNL.mjs";import{t as n}from"./output-Bia1u2k5.mjs";import{t as r}from"./dry-run-CLX6Pbtq.mjs";import{t as i}from"./progress-D_mL-Kcy.mjs";import{t as a}from"./run-DtN51G2A.mjs";import"./telemetry-DAf9gLyH.mjs";import{n as o}from"./body-parser-CUWbw_Tq.mjs";import{n as s}from"./prompt-sL_yMZbI.mjs";import{t as c}from"./cli-types-tt_LZMbn.mjs";function l(e){return e.usage(`$0 speed availabilities list
2
+ import{i as e}from"./context-5JRcefHh.mjs";import{r as t}from"./auth-3bFlHTVl.mjs";import{t as n}from"./output-CvQFJkvi.mjs";import{t as r}from"./dry-run-Bq0JAsbX.mjs";import{t as i}from"./progress-DUeNqM-j.mjs";import{t as a}from"./run-BhfDNWCI.mjs";import"./telemetry-iBZ-f6og.mjs";import{n as o}from"./body-parser-hh2avzkz.mjs";import{n as s}from"./prompt-DV6YTdoa.mjs";import{t as c}from"./cli-types-DoVT5q_M.mjs";function l(e){return e.usage(`$0 speed availabilities list
3
3
 
4
4
  Retrieves quota for all plans, as well as the current zone quota.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const u={command:`list`,describe:`Get quota and availability`,builder:l,handler:async o=>a({command:`speed availabilities list`,classification:{safeFlags:[`dry-run`]}},o,async()=>{if(o.dryRun){r({command:`cf speed availabilities list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/zones/${o.zone??o.zoneId??`<zone>`}/speed_api/availabilities`,pathParams:{"zone-id":String(o.zone??o[`zone-id`]??``)},bodyKind:`none`});return}let a=await t(o),s=await e({zone:o.zone},a,{quiet:o.quiet});o.zoneId=s,n(await i(`Loading`,async()=>a.speed.availabilities.list({zone_id:s})),{successLabel:`Loaded`})})},d={command:`availabilities`,describe:`Check which speed test regions and configurations are available for your zone`,builder:e=>e.command(u).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function f(e){return e.usage(`$0 speed pages list
5
5