cf 1.0.0-beta.1 → 1.0.0-beta.10

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 (375) hide show
  1. package/README.md +12 -0
  2. package/dist/_meta/commands.json +11448 -13819
  3. package/dist/_meta/hand-written-commands.json +579 -41
  4. package/dist/_meta/schemas.json +14496 -16450
  5. package/dist/abuse-reports-BhSTEz7h.mjs +24 -0
  6. package/dist/access-D4DN4XZF.mjs +2 -0
  7. package/dist/{account-tags-DAf-hq1m.mjs → account-tags-BWEIZLID.mjs} +5 -5
  8. package/dist/{accounts-BDIKjiG2.mjs → accounts-ZQvIqGJz.mjs} +66 -60
  9. package/dist/{acm-D-q1FVWJ.mjs → acm-OQqE8FMc.mjs} +3 -3
  10. package/dist/{addressing-0w2U1NEy.mjs → addressing-DCFm17JQ.mjs} +50 -50
  11. package/dist/agent-context-GRiQ4zRU.mjs +2 -0
  12. package/dist/{agent-memory-Drumm4qd.mjs → agent-memory-BtfPt2me.mjs} +15 -15
  13. package/dist/ai-B0_sZbmy.mjs +29 -0
  14. package/dist/{ai-audit-CPrmohqf.mjs → ai-audit-DaubuhYF.mjs} +1 -1
  15. package/dist/ai-gateway-CJ-1Dzzr.mjs +82 -0
  16. package/dist/{ai-search-B5l4IDSR.mjs → ai-search-Dywa1kqX.mjs} +37 -37
  17. package/dist/{ai-security-C7_IGDDl.mjs → ai-security-2wxMPqKS.mjs} +1 -1
  18. package/dist/{alerting-B6m1Rhf4.mjs → alerting-yad9DYRv.mjs} +26 -26
  19. package/dist/analytics-DKNw2fVc.mjs +20 -0
  20. package/dist/{analytics_engine-BvjKCwn1.mjs → analytics_engine-BA3kF46s.mjs} +2 -2
  21. package/dist/{api-security-B9IozS2a.mjs → api-security-CSuYMpMO.mjs} +61 -61
  22. package/dist/{argo-C_QcqR6P.mjs → argo-DMfNmOV4.mjs} +1 -1
  23. package/dist/args-CXgkQKK7.mjs +2 -0
  24. package/dist/{artifacts-DDFNpYBz.mjs → artifacts-Cb3hwClm.mjs} +20 -20
  25. package/dist/{audit-logs-cTzNV0DV.mjs → audit-logs-BrjNuiLx.mjs} +2 -2
  26. package/dist/auth-BBlAI8HG.mjs +2 -0
  27. package/dist/auth-BIr56Mbx.mjs +8 -0
  28. package/dist/autoconfig-DPUztTL2.mjs +511 -0
  29. package/dist/banner-ClclgnBn.mjs +2 -0
  30. package/dist/basin-catalog-BLsQhJP4.mjs +46 -0
  31. package/dist/{billing-DU2X-q-x.mjs → billing-CRwD7oQS.mjs} +10 -10
  32. package/dist/{bot-management-BHAAoZOh.mjs → bot-management-CyW8F8Wm.mjs} +1 -1
  33. package/dist/{botnet-feed-DOOnGVVY.mjs → botnet-feed-BBKsxf3Y.mjs} +5 -5
  34. package/dist/{brand-protection-C_DYa7IK.mjs → brand-protection-DSeD8LXl.mjs} +13 -13
  35. package/dist/browser-extension-C1zmKFDG.mjs +2 -0
  36. package/dist/{browser-run-Dw-vgWGR.mjs → browser-run-BAcUTwB4.mjs} +23 -23
  37. package/dist/build-B5UYMEQH.mjs +2 -0
  38. package/dist/build-DLZ9gBNA.mjs +2 -0
  39. package/dist/{builds-CO0MmSd3.mjs → builds-W1HEG7Bv.mjs} +31 -31
  40. package/dist/{cache-XxusQxXe.mjs → cache-B7E_PXUp.mjs} +27 -27
  41. package/dist/{certificate-authorities-Dmxh7w-Z.mjs → certificate-authorities-D_uAJH9B.mjs} +1 -1
  42. package/dist/cf-Bh_fTFIj.mjs +18 -0
  43. package/dist/chunk-FT2NMTJB-1VFYM1Ro.mjs +97 -0
  44. package/dist/chunk-KKDV4JPS-DdzLLtnl.mjs +2 -0
  45. package/dist/chunk-U6NEESU5-BhF4rnpx.mjs +2 -0
  46. package/dist/chunk-WMOON6TZ-D_ToS88f.mjs +2 -0
  47. package/dist/cli-BeXSqJAj.mjs +6 -0
  48. package/dist/cli-exit-Dqoo6Jgb.mjs +2 -0
  49. package/dist/client-certificates-DqFcK_s1.mjs +13 -0
  50. package/dist/{client-side-security-D7NWV0YH.mjs → client-side-security-DJXZ1XAu.mjs} +1 -1
  51. package/dist/{cloud-connector-XMFOTNqT.mjs → cloud-connector-Czg1GdQi.mjs} +1 -1
  52. package/dist/{cloudflared-DhItYrCq.mjs → cloudflared-DGuau-lC.mjs} +1 -1
  53. package/dist/{cloudforce-one-Cew4MHvA.mjs → cloudforce-one-B1IhIZcp.mjs} +213 -222
  54. package/dist/command-6YTtWltE.mjs +2 -0
  55. package/dist/command-B6DqnUwt.mjs +2 -0
  56. package/dist/command-BCag-xjk.mjs +2 -0
  57. package/dist/command-BOLlvEan.mjs +2 -0
  58. package/dist/command-BrHTpaji.mjs +2 -0
  59. package/dist/command-CAtsHc1V.mjs +2 -0
  60. package/dist/command-C__qB2mo.mjs +2 -0
  61. package/dist/command-DUafPVUr.mjs +2 -0
  62. package/dist/command-DZookrfw.mjs +2 -0
  63. package/dist/command-DfffeX-k.mjs +2 -0
  64. package/dist/command-DxSJy_ym.mjs +2 -0
  65. package/dist/command-DzHL5LKI.mjs +2 -0
  66. package/dist/command-K1-DZFJS.mjs +2 -0
  67. package/dist/command-TCklVvOY.mjs +2 -0
  68. package/dist/command-xU78ACNA.mjs +2 -0
  69. package/dist/{completions-xPLd1cvL.mjs → completions-Cm9brGAI.mjs} +26 -26
  70. package/dist/{connector-interrupts-BfQN_pm6.mjs → connector-interrupts-D93KTMkw.mjs} +3 -3
  71. package/dist/{connector-telemetry-events-B7qLZsZJ.mjs → connector-telemetry-events-D6CmKR14.mjs} +3 -3
  72. package/dist/{connector-telemetry-snapshots-Ckvg9BPc.mjs → connector-telemetry-snapshots-WO9IUk0e.mjs} +3 -3
  73. package/dist/{connectors-BhvAP5fb.mjs → connectors-DNT6GTW3.mjs} +7 -7
  74. package/dist/{containers-Bl3EY-cy.mjs → containers-Btx7vCDP.mjs} +17 -17
  75. package/dist/{containers-Cq1gtnq6.mjs → containers-Ce7IO-Ia.mjs} +70 -72
  76. package/dist/{content-scan-BYGe9fFj.mjs → content-scan-C_ROsbTJ.mjs} +1 -1
  77. package/dist/context-CEOHpZgd.mjs +7 -0
  78. package/dist/{cps-BWMDWeVq.mjs → cps-BPQqyL2E.mjs} +1 -1
  79. package/dist/{csamScanner-DMYGzLNi.mjs → csamScanner-D-oO5cxT.mjs} +1 -1
  80. package/dist/{ct-alerting-Vq4l2s7n.mjs → ct-alerting-CnTRE1Fb.mjs} +1 -1
  81. package/dist/{custom-certificates-BDEHH0Ym.mjs → custom-certificates-DvnFBZdJ.mjs} +4 -4
  82. package/dist/{custom-csrs-CHSkZNdX.mjs → custom-csrs-BZ8TXbuQ.mjs} +5 -5
  83. package/dist/{custom-hostnames-Bch3iQZC.mjs → custom-hostnames-CTqf-KlT.mjs} +6 -6
  84. package/dist/{custom-nameservers-Tdvu1-vr.mjs → custom-nameservers-B0CpnUVg.mjs} +5 -5
  85. package/dist/{custom-pages-rFsiIXlr.mjs → custom-pages-DcoSGN56.mjs} +10 -10
  86. package/dist/{d1-C1GK7DsW.mjs → d1-m7UfzBzl.mjs} +16 -20
  87. package/dist/{dcv-delegation-D6xiYj2l.mjs → dcv-delegation-yOtz90qE.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-C4p6SzLH.mjs} +1 -1
  91. package/dist/{deploy-input-COEKxOA1.mjs → deploy-input-DTjBGloL.mjs} +1 -1
  92. package/dist/dev-BML-bpNU.mjs +4 -0
  93. package/dist/{diagnostics-BZVAAguV.mjs → diagnostics-hOvnx5DT.mjs} +7 -7
  94. package/dist/dialog-BlUXJKbA.mjs +2 -0
  95. package/dist/discover-C5aiI6u0.mjs +2 -0
  96. package/dist/discover-DwczTkRX.mjs +2 -0
  97. package/dist/dist-BuCJ_55d.mjs +366 -0
  98. package/dist/dist-C3s9SXTd.mjs +48 -0
  99. package/dist/{dist-BpadEMNY.mjs → dist-DW47TUGh.mjs} +35 -35
  100. package/dist/{dls-BsnURYja.mjs → dls-v6DyEWTd.mjs} +8 -8
  101. package/dist/{dns-B_nTXhuM.mjs → dns-C9sUPsNt.mjs} +72 -63
  102. package/dist/{dns-firewall-DDsrdulo.mjs → dns-firewall-EDiT-Zli.mjs} +8 -8
  103. package/dist/dot-prop-IITUZ2XW-BilKo4kO.mjs +2 -0
  104. package/dist/dotenv-CcQjGlV0.mjs +4 -0
  105. package/dist/dry-run-Bq0JAsbX.mjs +2 -0
  106. package/dist/durable-objects-C01phVwL.mjs +6 -0
  107. package/dist/{email-auth-CzjtGH6g.mjs → email-auth-BgvoEHJk.mjs} +1 -1
  108. package/dist/{email-routing-B92fty1-.mjs → email-routing-Bggn219w.mjs} +24 -24
  109. package/dist/email-security-_t7rzrzd.mjs +158 -0
  110. package/dist/{email-sending-B7f95epu.mjs → email-sending-_dKCs2VF.mjs} +23 -23
  111. package/dist/error-sanitization-CJ5OLJrh.mjs +2 -0
  112. package/dist/error-sanitization-hmi1CqE5.mjs +2 -0
  113. package/dist/{fieldExtractors-DL_H1m7E.mjs → fieldExtractors-Cm5QnkE0.mjs} +4 -4
  114. package/dist/firewall-CZEN8iA_.mjs +36 -0
  115. package/dist/flagship-B_SAI_ZL.mjs +28 -0
  116. package/dist/{fraud-DU_YCLC5.mjs → fraud-9_9hobAh.mjs} +1 -1
  117. package/dist/generate-BPqoDbck.mjs +2 -0
  118. package/dist/generate-CLqGOlOx.mjs +3 -0
  119. package/dist/{google-tag-gateway-xqN-QudN.mjs → google-tag-gateway-O_N0vHRY.mjs} +1 -1
  120. package/dist/gt-DmcMNPX6.mjs +2 -0
  121. package/dist/{healthchecks-COnq1YOx.mjs → healthchecks-Bt3Gw_JZ.mjs} +1 -1
  122. package/dist/{hostnames-CxRAY_Pp.mjs → hostnames-DdOube3R.mjs} +1 -1
  123. package/dist/hyperdrive-C14NAh9l.mjs +37 -0
  124. package/dist/{iam-CtX9NPCy.mjs → iam-DUW7neMx.mjs} +24 -24
  125. package/dist/{images-CuWFOsGw.mjs → images-B9dnr1z0.mjs} +38 -38
  126. package/dist/index.mjs +1 -1
  127. package/dist/init-BGcAIvV7.mjs +39 -0
  128. package/dist/{intel-BeGV3VXt.mjs → intel-BQpZMck3.mjs} +38 -38
  129. package/dist/interactive-C-o16XQs.mjs +32 -0
  130. package/dist/interactive-SgAjen2z.mjs +2 -0
  131. package/dist/{ips-d6aoKAI4.mjs → ips-PT_uQKAf.mjs} +1 -1
  132. package/dist/k2-nPYti7Y0.mjs +13 -0
  133. package/dist/keyless-certificates-BHvas2q1.mjs +13 -0
  134. package/dist/{keys-Fyf3vWcA.mjs → keys-O5kAW9ox.mjs} +2 -2
  135. package/dist/kv-BUP_ZLM_.mjs +15 -0
  136. package/dist/lazy-command-glNW3jzf.mjs +2 -0
  137. package/dist/{leaked-credential-checks-B7ewx3W-.mjs → leaked-credential-checks-De9hI1rl.mjs} +1 -1
  138. package/dist/{load-balancers-DHD4f2CT.mjs → load-balancers-Cs6bUHS1.mjs} +39 -39
  139. package/dist/{local-B6b2OIBW.mjs → local-B5oRPTEN.mjs} +1 -1
  140. package/dist/local-Bj-l0TP6.mjs +2 -0
  141. package/dist/{local-runtime-DD8DAIlm.mjs → local-runtime-CZnegFEM.mjs} +1 -1
  142. package/dist/login-C5nSIS-T.mjs +2 -0
  143. package/dist/login-CUup7w0e.mjs +5 -0
  144. package/dist/{logo-matches-BAX8v3iL.mjs → logo-matches-BkQKdu4Z.mjs} +3 -3
  145. package/dist/{logos-BWBVGwU6.mjs → logos-C_sv-boo.mjs} +3 -3
  146. package/dist/{logpush-CZKR8DHO.mjs → logpush-NUcyMKHi.mjs} +23 -23
  147. package/dist/logs-BZT4PlqZ.mjs +36 -0
  148. package/dist/{magic-cloud-networking-DttrBXqd.mjs → magic-cloud-networking-DQnSdmgA.mjs} +34 -34
  149. package/dist/{magic-network-monitoring-9VXDSYuL.mjs → magic-network-monitoring-pHTU6aS8.mjs} +17 -17
  150. package/dist/{magic-transit-Dsu_cSGM.mjs → magic-transit-5302bQNh.mjs} +154 -158
  151. package/dist/{managed-defense-SYreve4W.mjs → managed-defense-8OEfDzuO.mjs} +9 -9
  152. package/dist/{managed-transforms-CzSy_xPw.mjs → managed-transforms-CCpUz4TY.mjs} +1 -1
  153. package/dist/{matches-qf7GReyu.mjs → matches-BSiYXs99.mjs} +3 -3
  154. package/dist/{mcp-DYSk5_gc.mjs → mcp-CCMiS75R.mjs} +15 -15
  155. package/dist/{mesh-DdY07OYt.mjs → mesh-DKBGTlCD.mjs} +12 -12
  156. package/dist/migrate-BJ9Go_wP.mjs +2 -0
  157. package/dist/monetization-CFf_lb6x.mjs +20 -0
  158. package/dist/mtls-certificates-DsF3NFNs.mjs +13 -0
  159. package/dist/{network-DpaZ5LJL.mjs → network-Bm0qYRqY.mjs} +24 -24
  160. package/dist/{network-interconnects-C4uUoeNa.mjs → network-interconnects-YiRUBbjx.mjs} +17 -17
  161. package/dist/{oauth-nsTDJ0dF.mjs → oauth-DxGgIwFc.mjs} +1 -1
  162. package/dist/oauth-cNZUky3h.mjs +9 -0
  163. package/dist/{oauth-clients-D7Ou7oAS.mjs → oauth-clients-CP6alY0_.mjs} +7 -7
  164. package/dist/{oauth-scopes-BFoE82Mv.mjs → oauth-scopes-xl-pcWdg.mjs} +1 -1
  165. package/dist/{observability-smcOFbC1.mjs → observability-Bp71PtlD.mjs} +44 -44
  166. package/dist/open-PCXX3ZDZ-BKRik1gi.mjs +4 -0
  167. package/dist/{organization-Dyf_0mq4.mjs → organization-Dbom1gTR.mjs} +7 -7
  168. package/dist/{organizations-D7zGPLVm.mjs → organizations-OUMVsuen.mjs} +1 -1
  169. package/dist/{origin-ca-certificates-DJrp29gv.mjs → origin-ca-certificates-B3-T0-Nn.mjs} +3 -3
  170. package/dist/{origin-post-quantum-encryption-BYj3kJiq.mjs → origin-post-quantum-encryption-CGB6AfPa.mjs} +1 -1
  171. package/dist/{origin-tls-client-auth-j0tGh6Fy.mjs → origin-tls-client-auth-CgzzfAWr.mjs} +5 -5
  172. package/dist/output-CvQFJkvi.mjs +2 -0
  173. package/dist/{page-rules-CLzba_nr.mjs → page-rules-B9BQKU4_.mjs} +1 -1
  174. package/dist/pages-DZPdyuT4.mjs +54 -0
  175. package/dist/{pay-per-crawl-DbaTVI8V.mjs → pay-per-crawl-CnveMVDi.mjs} +32 -32
  176. package/dist/{pay-per-use-BEvtoppJ.mjs → pay-per-use-Bpxe8PHv.mjs} +3 -3
  177. package/dist/{pipelines-lps71uoA.mjs → pipelines-CHev3o5G.mjs} +20 -20
  178. package/dist/precursor-C9PK9Bue.mjs +4 -0
  179. package/dist/previews-BIMI1dTz.mjs +4 -0
  180. package/dist/progress-A61dRbXl.mjs +2 -0
  181. package/dist/prompt-CGUzvBgY.mjs +3 -0
  182. package/dist/{queries-EJYlFw8m.mjs → queries-f-btyefs.mjs} +4 -4
  183. package/dist/{queues-CozKGaA4.mjs → queues-kLNdeb3q.mjs} +29 -35
  184. package/dist/r2-D_awYx2p.mjs +125 -0
  185. package/dist/r2-data-catalog-2jQrdAdo.mjs +2 -0
  186. package/dist/{radar-NmpdyMo5.mjs → radar-CU4T02Ag.mjs} +1 -1
  187. package/dist/raw-fetch-CvkmFO23.mjs +2 -0
  188. package/dist/{realtime-iWTz8WbH.mjs → realtime-C0dvcBBM.mjs} +78 -78
  189. package/dist/{registrar-Cza1L8i_.mjs → registrar-CHc-4vcf.mjs} +8 -8
  190. package/dist/{registrar-sandbox-BP4GQg5s.mjs → registrar-sandbox-Dq8LV2AI.mjs} +6 -6
  191. package/dist/{registry-vreNkX6u.mjs → registry-Cg5lP8oo.mjs} +1 -1
  192. package/dist/{reporting-gvXX2MxY.mjs → reporting-4u21g6Dk.mjs} +7 -7
  193. package/dist/request-headers-D31kdxrQ.mjs +2 -0
  194. package/dist/{request-tracers-F8a_aj32.mjs → request-tracers-CupJ_83j.mjs} +2 -2
  195. package/dist/resolve-PZuJ878-.mjs +2 -0
  196. package/dist/{resource-sharing-D6XWIDmb.mjs → resource-sharing-CO-Lh-u7.mjs} +14 -14
  197. package/dist/{resource-tagging-c_z4VZt0.mjs → resource-tagging-D0R5SzR6.mjs} +2 -2
  198. package/dist/{rules-_QDaG3U5.mjs → rules-BsmKzB9H.mjs} +8 -8
  199. package/dist/{rulesets-Bc4ZuPG_.mjs → rulesets-HOOnxHZZ.mjs} +20 -20
  200. package/dist/{rum-ChPyfpM2.mjs → rum-wcLEvVJl.mjs} +14 -14
  201. package/dist/run-CIJTelJL.mjs +2 -0
  202. package/dist/run-quhbAvQi.mjs +2 -0
  203. package/dist/schema-GdBsV4P7.mjs +2 -0
  204. package/dist/{schema-flags-C9lbLgE-.mjs → schema-flags-D8vL2oiF.mjs} +2 -2
  205. package/dist/{scim-BjiswXbC.mjs → scim-BkdJmAS8.mjs} +10 -10
  206. package/dist/{sdk-CsWOex96.mjs → sdk-BCzcRJCi.mjs} +2 -2
  207. package/dist/{secrets-store-Cn3D5a0d.mjs → secrets-store-CHs0oYA0.mjs} +11 -11
  208. package/dist/security-insights-vsl-4xFa.mjs +40 -0
  209. package/dist/{security-txt-CaR5Idmz.mjs → security-txt-Fnl3LdSn.mjs} +1 -1
  210. package/dist/session-CZTuHcbm.mjs +2 -0
  211. package/dist/shared-BS30oCf8.mjs +2 -0
  212. package/dist/{smart-shield-CphSzoh4.mjs → smart-shield-DB0E7cZI.mjs} +1 -1
  213. package/dist/{snippets-r-Mre0cE.mjs → snippets-CFaF_NyG.mjs} +1 -1
  214. package/dist/source-38bULAR8.mjs +6 -0
  215. package/dist/spawn-B0Sl8lUu.mjs +10 -0
  216. package/dist/{spectrum-BhjCVFZk.mjs → spectrum-DtG0jYjE.mjs} +1 -1
  217. package/dist/{speed-CPgypY7n.mjs → speed-B-RiNHGK.mjs} +1 -1
  218. package/dist/src-CM3XaB4p.mjs +109 -0
  219. package/dist/{ssl-DsMrXyqK.mjs → ssl-DBVpCZAM.mjs} +4 -4
  220. package/dist/startup-profile-CLmojOrn.mjs +2 -0
  221. package/dist/startup-profile-CR7GMuLx.mjs +17 -0
  222. package/dist/{state-BxCejn42.mjs → state-BaGRaYow.mjs} +1 -1
  223. package/dist/state-CpXhcMdX.mjs +2 -0
  224. package/dist/{stream-L2NmGPby.mjs → stream-cAdBvpS1.mjs} +45 -45
  225. package/dist/{submit-KN0Ul5fV.mjs → submit-Bkd7l2rK.mjs} +2 -2
  226. package/dist/{tags-CZMFKGdP.mjs → tags--eph7JbN.mjs} +2 -2
  227. package/dist/telemetry-51etasAu.mjs +2 -0
  228. package/dist/telemetry-Q3_UmwHj.mjs +2 -0
  229. package/dist/tenant-Bj-He2xO.mjs +10 -0
  230. package/dist/{tenant-custom-nameservers-Nx59Buv0.mjs → tenant-custom-nameservers-B5IIIwbz.mjs} +1 -1
  231. package/dist/{theme-BiIYWOed.mjs → theme-BIWQFmZ0.mjs} +2 -2
  232. package/dist/tools-BJZ0DDlL.mjs +2 -0
  233. package/dist/{tunnels-C-mMZy4v.mjs → tunnels-CgtuRpcD.mjs} +15 -15
  234. package/dist/turnstile-Bmcnrzw7.mjs +33 -0
  235. package/dist/ui-BQxRjahW.mjs +5 -0
  236. package/dist/update-check-BqSpgzHk.mjs +2 -0
  237. package/dist/update-check-DC0qP_8z.mjs +2 -0
  238. package/dist/update-check-worker.mjs +1 -1
  239. package/dist/{url-info-7ikewAnp.mjs → url-info-DhVehaT8.mjs} +2 -2
  240. package/dist/{url-normalization-B0D7Fhf3.mjs → url-normalization-BpGDUUQc.mjs} +1 -1
  241. package/dist/{url-scanner-DpKIqkin.mjs → url-scanner-DiLdqsQk.mjs} +8 -8
  242. package/dist/{user-BFq8UM1s.mjs → user-B6P5_OjP.mjs} +1 -1
  243. package/dist/{values-DnBYV1ZD.mjs → values-Cxx4Lxrd.mjs} +2 -2
  244. package/dist/{vectorize-BpZ4UsUj.mjs → vectorize-YyxVpql-.mjs} +15 -15
  245. package/dist/version-C0pInAZ9.mjs +2 -0
  246. package/dist/{waiting-rooms-DJfqehy9.mjs → waiting-rooms-BdahlCdD.mjs} +25 -25
  247. package/dist/{web-assets-CCSSW_JH.mjs → web-assets-yaKxN4w_.mjs} +1 -1
  248. package/dist/{web3-bbT1REPc.mjs → web3-Bu9c_QAt.mjs} +1 -1
  249. package/dist/workers-5GgoGA2e.mjs +38 -0
  250. package/dist/{workers-builds-TRF3K416.mjs → workers-builds-h-1FJjE1.mjs} +7 -7
  251. package/dist/workers-for-platforms-CV9iRrp9.mjs +42 -0
  252. package/dist/{workers-vpc-kgryQ48l.mjs → workers-vpc-C1oUHHqk.mjs} +6 -6
  253. package/dist/{workflows-CKdPlIkK.mjs → workflows-dtMlkj1-.mjs} +20 -20
  254. package/dist/wrangler-migration-CJEb9hY3.mjs +2 -0
  255. package/dist/{zaraz-BXFlEWSx.mjs → zaraz-838AbMEX.mjs} +1 -1
  256. package/dist/{zero-trust-M08mBsYd.mjs → zero-trust-CYt-eELJ.mjs} +460 -434
  257. package/dist/{zone-DHmrotGW.mjs → zone-uJwRLSnn.mjs} +1 -1
  258. package/dist/{zones-C0eKBTqG.mjs → zones-Dpofsnth.mjs} +1 -1
  259. package/package.json +15 -12
  260. package/dist/abuse-reports-Dd6kJM7r.mjs +0 -26
  261. package/dist/access-C_2rEi0H.mjs +0 -27
  262. package/dist/account-CZ9SPVdz.mjs +0 -12
  263. package/dist/ai-ARwLeQ1O.mjs +0 -31
  264. package/dist/ai-gateway-DNY4FPF2.mjs +0 -147
  265. package/dist/analytics-nnzFBB_7.mjs +0 -21
  266. package/dist/auth-DJhSjNNL.mjs +0 -8
  267. package/dist/auth-sAorfdWU.mjs +0 -2
  268. package/dist/browser-extension-C48pKh3t.mjs +0 -15
  269. package/dist/build-1a8CiNIT.mjs +0 -2
  270. package/dist/build-Ca_drQY2.mjs +0 -2
  271. package/dist/cf-oadujOtC.mjs +0 -18
  272. package/dist/chunk-6EUZQHAF-QVTL_mC-.mjs +0 -2
  273. package/dist/chunk-DL5FNmn1.mjs +0 -2
  274. package/dist/chunk-Q72B4Q5Z-Cr1H_iK6.mjs +0 -2
  275. package/dist/chunk-Q72B4Q5Z-DKhx_4ok.mjs +0 -2
  276. package/dist/chunk-QBZBEHZB-Byagrlop.mjs +0 -2
  277. package/dist/chunk-XLADBZ7F-BXKOjWbx.mjs +0 -374
  278. package/dist/client-certificates-CgaIc3zN.mjs +0 -13
  279. package/dist/command-CF0giIIc.mjs +0 -3
  280. package/dist/command-CsZFRm3P.mjs +0 -2
  281. package/dist/command-DBz8QiFk.mjs +0 -2
  282. package/dist/command-RiZ_LYcm.mjs +0 -2
  283. package/dist/config-B4vIa0zp.mjs +0 -2
  284. package/dist/data-security-DDhPnX8Z.mjs +0 -71
  285. package/dist/dev-CVD3BVUG.mjs +0 -4
  286. package/dist/dialog--iw0F2s-.mjs +0 -2
  287. package/dist/dist-CUUGKvjh.mjs +0 -48
  288. package/dist/dist-dc4E1u01.mjs +0 -272
  289. package/dist/dot-prop-6SRZBKHT-Dj7YOlwR.mjs +0 -2
  290. package/dist/dry-run-CLX6Pbtq.mjs +0 -2
  291. package/dist/durable-objects-8U8DpF9q.mjs +0 -8
  292. package/dist/email-security-keTqF0nJ.mjs +0 -160
  293. package/dist/error-sanitization-Cbd_oegl.mjs +0 -2
  294. package/dist/error-sanitization-DwOlM3R7.mjs +0 -2
  295. package/dist/firewall-67qoXiqD.mjs +0 -56
  296. package/dist/flagship-CjC3dF7L.mjs +0 -28
  297. package/dist/hyperdrive-DPWyiXpj.mjs +0 -37
  298. package/dist/interactive-B6woOLo-.mjs +0 -32
  299. package/dist/interactive-DnUvQHjc.mjs +0 -2
  300. package/dist/keyless-certificates-Dvib4jhw.mjs +0 -13
  301. package/dist/kv-CA4J7cCq.mjs +0 -21
  302. package/dist/local-BrfySqnx.mjs +0 -2
  303. package/dist/login-CLW108XX.mjs +0 -5
  304. package/dist/login-xgRjiyJa.mjs +0 -2
  305. package/dist/logs-CiDyrqEu.mjs +0 -48
  306. package/dist/mtls-certificates-LXlgdkf1.mjs +0 -13
  307. package/dist/oauth-Dzk6Gy-6.mjs +0 -14
  308. package/dist/open-PBXRGS4R-C4CKEADM.mjs +0 -4
  309. package/dist/open-PBXRGS4R-C_-G_4DC.mjs +0 -4
  310. package/dist/output-Bia1u2k5.mjs +0 -2
  311. package/dist/pages-pah6dZBJ.mjs +0 -60
  312. package/dist/precursor-DTTYLDEa.mjs +0 -4
  313. package/dist/previews-B89cUmpr.mjs +0 -4
  314. package/dist/progress-D_mL-Kcy.mjs +0 -2
  315. package/dist/prompt-sL_yMZbI.mjs +0 -3
  316. package/dist/r2-Chn_JQUM.mjs +0 -127
  317. package/dist/r2-data-catalog-Bfn3AWzn.mjs +0 -44
  318. package/dist/raw-fetch-lSVttVJF.mjs +0 -2
  319. package/dist/request-headers-POBKmu93.mjs +0 -2
  320. package/dist/resolve-BXemCSyA.mjs +0 -2
  321. package/dist/run-DtN51G2A.mjs +0 -2
  322. package/dist/run-oACgYK8I.mjs +0 -2
  323. package/dist/schema-DZSSJaY0.mjs +0 -2
  324. package/dist/security-center-DP4GC1cG.mjs +0 -30
  325. package/dist/shared-W9uoX1-W.mjs +0 -2
  326. package/dist/source-BR4_k2ad.mjs +0 -6
  327. package/dist/spawn-BWEuIO-w.mjs +0 -523
  328. package/dist/src-Hw-TlVAO.mjs +0 -108
  329. package/dist/startup-profile-CYEokTVe.mjs +0 -2
  330. package/dist/startup-profile-CgWHy4rE.mjs +0 -17
  331. package/dist/state-DSzkxXML.mjs +0 -2
  332. package/dist/telemetry-CSj_ezpk.mjs +0 -2
  333. package/dist/telemetry-DAf9gLyH.mjs +0 -2
  334. package/dist/telemetry-Dk1GcQ0u.mjs +0 -5
  335. package/dist/tenant-Cu4P-foo.mjs +0 -12
  336. package/dist/tools-BMKpYraQ.mjs +0 -2
  337. package/dist/turnstile-39JL9tMt.mjs +0 -33
  338. package/dist/ui-DH95w1Qk.mjs +0 -5
  339. package/dist/undici-DTSBJHNS.mjs +0 -96
  340. package/dist/update-check-BKQBD4MQ.mjs +0 -2
  341. package/dist/update-check-CE9XB6gf.mjs +0 -2
  342. package/dist/version-Bh3b9vTa.mjs +0 -2
  343. package/dist/workers-CXuyjZB8.mjs +0 -36
  344. package/dist/workers-for-platforms-B57iKiSN.mjs +0 -25
  345. /package/dist/{Page-C-JHZnIy.mjs → Page-CjJht2qT.mjs} +0 -0
  346. /package/dist/{alerts-CstOk8n0.mjs → alerts-DY_7Nknx.mjs} +0 -0
  347. /package/dist/{autorag-PRTwXGgn.mjs → autorag-K396-M2S.mjs} +0 -0
  348. /package/dist/{body-parser-CUWbw_Tq.mjs → body-parser-hh2avzkz.mjs} +0 -0
  349. /package/dist/{brands-BHRXlWDm.mjs → brands-DeLbFxSt.mjs} +0 -0
  350. /package/dist/{clear-UvKESVx3.mjs → clear-CRfI7WS7.mjs} +0 -0
  351. /package/dist/{cli-types-tt_LZMbn.mjs → cli-types-DoVT5q_M.mjs} +0 -0
  352. /package/dist/{connector-telemetry-events-latest-DwnFeZg0.mjs → connector-telemetry-events-latest-D8p_dR8s.mjs} +0 -0
  353. /package/dist/{connector-telemetry-snapshots-latest-Dv6rZlxs.mjs → connector-telemetry-snapshots-latest-COFmzmlk.mjs} +0 -0
  354. /package/dist/{domain-info-BqTDXNBo.mjs → domain-info-aiwP60Fo.mjs} +0 -0
  355. /package/dist/{health-CwPzzrV6.mjs → health-Bz33n-_F.mjs} +0 -0
  356. /package/dist/{input-validation-Ch4Vllrm.mjs → input-validation-Dk52b0me.mjs} +0 -0
  357. /package/dist/{internal-WLHfxX64.mjs → internal-BHrJbbdA.mjs} +0 -0
  358. /package/dist/{lifecycle-Ichnb2x1.mjs → lifecycle-C7tAC1Mn.mjs} +0 -0
  359. /package/dist/{live-D_k7eHdv.mjs → live-MeJQXIei.mjs} +0 -0
  360. /package/dist/{metadata-APBiectA.mjs → metadata-C33s4rc-.mjs} +0 -0
  361. /package/dist/{project-settings-DSXevRvj.mjs → project-settings-DO6njFg_.mjs} +0 -0
  362. /package/dist/{rate-limit-analytics-CDTPxSET.mjs → rate-limit-analytics-CU55zqCU.mjs} +0 -0
  363. /package/dist/{rate-limits-C3K9smdl.mjs → rate-limits-CZ-qHDPK.mjs} +0 -0
  364. /package/dist/{ready-CvwvbdTX.mjs → ready-BOpbZ1pN.mjs} +0 -0
  365. /package/dist/{recent-submissions-CjzcT-iH.mjs → recent-submissions-KDqD2HyS.mjs} +0 -0
  366. /package/dist/{refute-CIAFMj00.mjs → refute-DkF4XIMw.mjs} +0 -0
  367. /package/dist/{resolve-CUDKxUrW.mjs → resolve-BCTrtcx7.mjs} +0 -0
  368. /package/dist/{scan-logo-zFkphtQ3.mjs → scan-logo-DQkf6glG.mjs} +0 -0
  369. /package/dist/{scan-page-CLl2MAkZ.mjs → scan-page-CMOJ_E0n.mjs} +0 -0
  370. /package/dist/{search-12jA1b4l.mjs → search-Bre1Zwn3.mjs} +0 -0
  371. /package/dist/{signed-url-U0T_PEMR.mjs → signed-url-24ZbX4yV.mjs} +0 -0
  372. /package/dist/{submission-info-CZ84a3Nb.mjs → submission-info-BmkbZVqM.mjs} +0 -0
  373. /package/dist/{total-queries-CJTc9Pde.mjs → total-queries-j8OAF_cE.mjs} +0 -0
  374. /package/dist/{tracked-domains-BKLxnnSv.mjs → tracked-domains-fe3EWYmF.mjs} +0 -0
  375. /package/dist/{verify-CZW5Fo1q.mjs → verify-CKgZYvln.mjs} +0 -0
@@ -1,20 +1,20 @@
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{a as i,r as a}from"./auth-DJhSjNNL.mjs";import{t as o}from"./output-Bia1u2k5.mjs";import{t as s}from"./dry-run-CLX6Pbtq.mjs";import{t as c}from"./progress-D_mL-Kcy.mjs";import{t as l}from"./run-DtN51G2A.mjs";import"./telemetry-DAf9gLyH.mjs";import{n as u,r as d,t as f}from"./body-parser-CUWbw_Tq.mjs";import{n as p}from"./input-validation-Ch4Vllrm.mjs";import{a as m,i as h,n as g}from"./prompt-sL_yMZbI.mjs";import{t as _}from"./cli-types-tt_LZMbn.mjs";function ee(e){return e.usage(`$0 api-security schema-validation schemas create
2
+ import{t as e}from"./local-B5oRPTEN.mjs";import{a as t,i as n,t as r}from"./context-CEOHpZgd.mjs";import{a as i,r as a}from"./auth-BIr56Mbx.mjs";import{t as o}from"./output-CvQFJkvi.mjs";import{t as s}from"./dry-run-Bq0JAsbX.mjs";import{t as c}from"./progress-A61dRbXl.mjs";import{t as l}from"./run-CIJTelJL.mjs";import"./telemetry-Q3_UmwHj.mjs";import{n as u,r as d,t as f}from"./body-parser-hh2avzkz.mjs";import{n as p}from"./input-validation-Dk52b0me.mjs";import{a as m,i as h,n as g}from"./prompt-CGUzvBgY.mjs";import{t as _}from"./cli-types-DoVT5q_M.mjs";function ee(e){return e.usage(`$0 api-security schema-validation schemas create
3
3
 
4
- Uploads an OpenAPI schema that defines expected request formats for API operations.`).option(`kind`,{type:`string`,description:`The kind of the schema`,choices:[`openapi_v3`]}).option(`name`,{type:`string`,description:`A human-readable name for the schema`}).option(`source`,{type:`string`,description:`The raw schema, e.g., the OpenAPI schema, either as JSON or YAML`}).option(`validation-enabled`,{type:`boolean`,description:`An indicator if this schema is enabled`}).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 te={command:`create`,describe:`Upload a schema`,builder:ee,handler:async e=>l({command:`api-security schema-validation schemas create`,classification:{safeFlags:[`kind`,`validation-enabled`,`dry-run`]}},e,async()=>{if(e.dryRun){s({command:`cf api-security schema-validation schemas create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/schema_validation/schemas`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``)},bodyKind:`json`,body:e.body===void 0?f({kind:p(e.kind,`kind`,`text`),name:p(e.name,`name`,`text`),source:p(e.source,`source`,`text`),validation_enabled:e[`validation-enabled`]}):u(e.body)});return}let n=await a(e),r=await t({zone:e.zone},n,{quiet:e.quiet});if(e.zoneId=r,e.body){let t=u(e.body);o(await c(`Creating`,async()=>n.apiSecurity.schemaValidation.schemas.create({...t,zone_id:r})),{successLabel:`Created`});return}if(e.kind===void 0&&(e.kind=await h(`kind`,`The kind of the schema`,[`openapi_v3`])),e.name===void 0&&(e.name=await m(`name`,`A human-readable name for the schema`)),e.source===void 0&&(e.source=await m(`source`,`The raw schema, e.g., the OpenAPI schema, either as JSON or YAML`)),e[`validation-enabled`]===void 0)throw Error(`--validation-enabled is required (or pass --body with this field set).`);let i=f({kind:p(e.kind,`kind`,`text`),name:p(e.name,`name`,`text`),source:p(e.source,`source`,`text`),validation_enabled:e[`validation-enabled`]});o(await c(`Creating`,async()=>n.apiSecurity.schemaValidation.schemas.create({...i,zone_id:r})),{successLabel:`Created`})})};function v(e){return e.usage(`$0 api-security schema-validation schemas delete <schema-id>
4
+ Uploads an OpenAPI schema that defines expected request formats for API operations.`).option(`kind`,{type:`string`,description:`The kind of the schema`,choices:[`openapi_v3`]}).option(`name`,{type:`string`,description:`A human-readable name for the schema`}).option(`source`,{type:`string`,description:`The raw schema, e.g., the OpenAPI schema, either as JSON or YAML`}).option(`validation-enabled`,{type:`boolean`,description:`An indicator if this schema is enabled`}).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 te={command:`create`,describe:`Upload a schema`,builder:ee,handler:async e=>l({command:`api-security schema-validation schemas create`,classification:{safeFlags:[`kind`,`validation-enabled`,`dry-run`]}},e,async()=>{if(e.dryRun){s({command:`cf api-security schema-validation schemas create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/schema_validation/schemas`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``)},bodyKind:`json`,body:e.body===void 0?f({kind:p(e.kind,`kind`,`text`),name:p(e.name,`name`,`text`),source:p(e.source,`source`,`text`),validation_enabled:e[`validation-enabled`]}):u(e.body)});return}let t=await a(e),r=await n({zone:e.zone},t,{quiet:e.quiet});if(e.zoneId=r,e.body){let n=u(e.body);o(await c(`Creating`,async()=>t.apiSecurity.schemaValidation.schemas.create({...n,zone_id:r})),{successLabel:`Created`});return}if(e.kind===void 0&&(e.kind=await h(`kind`,`The kind of the schema`,[`openapi_v3`])),e.name===void 0&&(e.name=await m(`name`,`A human-readable name for the schema`)),e.source===void 0&&(e.source=await m(`source`,`The raw schema, e.g., the OpenAPI schema, either as JSON or YAML`)),e[`validation-enabled`]===void 0)throw Error(`--validation-enabled is required (or pass --body with this field set).`);let i=f({kind:p(e.kind,`kind`,`text`),name:p(e.name,`name`,`text`),source:p(e.source,`source`,`text`),validation_enabled:e[`validation-enabled`]});o(await c(`Creating`,async()=>t.apiSecurity.schemaValidation.schemas.create({...i,zone_id:r})),{successLabel:`Created`})})};function v(e){return e.usage(`$0 api-security schema-validation schemas delete <schema-id>
5
5
 
6
- Permanently removes an uploaded OpenAPI schema from API Security. Operations using this schema will lose their validation rules.`).positional(`schema-id`,{type:`string`,description:`The unique identifier of the schema`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`force`,{type:`boolean`,alias:`f`,description:`Skip confirmation (useful in scripts and CI)`,default:!1})}const y={command:`delete <schema-id>`,describe:`Delete a schema`,builder:v,handler:async e=>l({command:`api-security schema-validation schemas delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{if(e.dryRun){s({command:`cf api-security schema-validation schemas delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/schema_validation/schemas/${e[`schema-id`]==null?`<schema-id>`:encodeURIComponent(String(e[`schema-id`]))}`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``),"schema-id":String(e[`schema-id`]??``)},bodyKind:`none`});return}let n=await a(e),r=await t({zone:e.zone},n,{quiet:e.quiet});if(e.zoneId=r,!await g({force:!!e.force,message:`This operation permanently deletes the uploaded schema and removes its validation coverage.`})){process.stderr.write(`Aborted.
7
- `);return}o(await c(`Deleting`,async()=>n.apiSecurity.schemaValidation.schemas.delete({zone_id:r,schema_id:e[`schema-id`]})),{successLabel:`Deleted`})})};function b(e){return e.usage(`$0 api-security schema-validation schemas get <schema-id>
6
+ Permanently removes an uploaded OpenAPI schema from API Security. Operations using this schema will lose their validation rules.`).positional(`schema-id`,{type:`string`,description:`The unique identifier of the schema`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`force`,{type:`boolean`,alias:`f`,description:`Skip confirmation (useful in scripts and CI)`,default:!1})}const y={command:`delete <schema-id>`,describe:`Delete a schema`,builder:v,handler:async e=>l({command:`api-security schema-validation schemas delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{if(e.dryRun){s({command:`cf api-security schema-validation schemas delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/schema_validation/schemas/${e[`schema-id`]==null?`<schema-id>`:encodeURIComponent(String(e[`schema-id`]))}`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``),"schema-id":String(e[`schema-id`]??``)},bodyKind:`none`});return}let t=await a(e),r=await n({zone:e.zone},t,{quiet:e.quiet});if(e.zoneId=r,!await g({force:!!e.force,message:`This operation permanently deletes the uploaded schema and removes its validation coverage.`})){process.stderr.write(`Aborted.
7
+ `);return}o(await c(`Deleting`,async()=>t.apiSecurity.schemaValidation.schemas.delete({zone_id:r,schema_id:e[`schema-id`]})),{successLabel:`Deleted`})})};function b(e){return e.usage(`$0 api-security schema-validation schemas get <schema-id>
8
8
 
9
- Gets the contents and metadata of a specific OpenAPI schema uploaded to API Security.`).positional(`schema-id`,{type:`string`,description:`The unique identifier of the schema`,demandOption:!0}).option(`omit-source`,{type:`boolean`,description:`Omit the source-files of schemas and only retrieve their meta-data.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const x={command:`get <schema-id>`,describe:`Get details of a schema`,builder:b,handler:async e=>l({command:`api-security schema-validation schemas get`,classification:{safeFlags:[`omit-source`,`dry-run`]}},e,async()=>{let n={omit_source:e[`omit-source`]};if(e.dryRun){s({command:`cf api-security schema-validation schemas get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/schema_validation/schemas/${e[`schema-id`]==null?`<schema-id>`:encodeURIComponent(String(e[`schema-id`]))}`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``),"schema-id":String(e[`schema-id`]??``)},query:n,bodyKind:`none`});return}let r=await a(e),i=await t({zone:e.zone},r,{quiet:e.quiet});e.zoneId=i,o(await c(`Loading`,async()=>r.apiSecurity.schemaValidation.schemas.get({zone_id:i,schema_id:e[`schema-id`],...n})),{successLabel:`Loaded`})})};function S(e){return e.usage(`$0 api-security schema-validation schemas hosts list
9
+ Gets the contents and metadata of a specific OpenAPI schema uploaded to API Security.`).positional(`schema-id`,{type:`string`,description:`The unique identifier of the schema`,demandOption:!0}).option(`omit-source`,{type:`boolean`,description:`Omit the source-files of schemas and only retrieve their meta-data.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const x={command:`get <schema-id>`,describe:`Get details of a schema`,builder:b,handler:async e=>l({command:`api-security schema-validation schemas get`,classification:{safeFlags:[`omit-source`,`dry-run`]}},e,async()=>{let t={omit_source:e[`omit-source`]};if(e.dryRun){s({command:`cf api-security schema-validation schemas get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/schema_validation/schemas/${e[`schema-id`]==null?`<schema-id>`:encodeURIComponent(String(e[`schema-id`]))}`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``),"schema-id":String(e[`schema-id`]??``)},query:t,bodyKind:`none`});return}let r=await a(e),i=await n({zone:e.zone},r,{quiet:e.quiet});e.zoneId=i,o(await c(`Loading`,async()=>r.apiSecurity.schemaValidation.schemas.get({zone_id:i,schema_id:e[`schema-id`],...t})),{successLabel:`Loaded`})})};function S(e){return e.usage(`$0 api-security schema-validation schemas hosts list
10
10
 
11
- Lists all unique hosts found in uploaded OpenAPI schemas for the zone.`).option(`page`,{type:`number`,description:`Page number of paginated results.`}).option(`per-page`,{type:`number`,description:`Maximum number of results per page.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const C={command:`list`,describe:`List hosts covered by uploaded schemas`,builder:S,handler:async e=>l({command:`api-security schema-validation schemas hosts list`,classification:{safeFlags:[`dry-run`]}},e,async()=>{let n={page:e.page,per_page:e[`per-page`]};if(e.dryRun){s({command:`cf api-security schema-validation schemas hosts list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/schema_validation/schemas/hosts`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``)},query:n,bodyKind:`none`});return}let r=await a(e),i=await t({zone:e.zone},r,{quiet:e.quiet});e.zoneId=i,o(await c(`Loading`,async()=>r.apiSecurity.schemaValidation.schemas.hosts.list({zone_id:i,...n})),{successLabel:`Loaded`})})},w={command:`hosts`,describe:`Operations for schema-validation.schemas.hosts`,builder:e=>e.command(C).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function T(e){return e.usage(`$0 api-security schema-validation schemas list
11
+ Lists all unique hosts found in uploaded OpenAPI schemas for the zone.`).option(`page`,{type:`number`,description:`Page number of paginated results.`}).option(`per-page`,{type:`number`,description:`Maximum number of results per page.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const C={command:`list`,describe:`List hosts covered by uploaded schemas`,builder:S,handler:async e=>l({command:`api-security schema-validation schemas hosts list`,classification:{safeFlags:[`dry-run`]}},e,async()=>{let t={page:e.page,per_page:e[`per-page`]};if(e.dryRun){s({command:`cf api-security schema-validation schemas hosts list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/schema_validation/schemas/hosts`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``)},query:t,bodyKind:`none`});return}let r=await a(e),i=await n({zone:e.zone},r,{quiet:e.quiet});e.zoneId=i,o(await c(`Loading`,async()=>r.apiSecurity.schemaValidation.schemas.hosts.list({zone_id:i,...t})),{successLabel:`Loaded`})})},w={command:`hosts`,describe:`Operations for schema-validation.schemas.hosts`,builder:e=>e.command(C).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function T(e){return e.usage(`$0 api-security schema-validation schemas list
12
12
 
13
- Lists all OpenAPI schemas uploaded to API Security.`).option(`page`,{type:`number`,description:`Page number of paginated results.`}).option(`per-page`,{type:`number`,description:`Maximum number of results per page.`}).option(`omit-source`,{type:`boolean`,description:`Omit the source-files of schemas and only retrieve their meta-data.`}).option(`validation-enabled`,{type:`boolean`,description:`Filter for enabled schemas`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const E={command:`list`,describe:`List all uploaded schemas`,builder:T,handler:async e=>l({command:`api-security schema-validation schemas list`,classification:{safeFlags:[`omit-source`,`validation-enabled`,`dry-run`]}},e,async()=>{let n={page:e.page,per_page:e[`per-page`],omit_source:e[`omit-source`],validation_enabled:e[`validation-enabled`]};if(e.dryRun){s({command:`cf api-security schema-validation schemas list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/schema_validation/schemas`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``)},query:n,bodyKind:`none`});return}let r=await a(e),i=await t({zone:e.zone},r,{quiet:e.quiet});e.zoneId=i,o(await c(`Loading`,async()=>r.apiSecurity.schemaValidation.schemas.list({zone_id:i,...n})),{successLabel:`Loaded`})})};function D(e){return e.usage(`$0 api-security schema-validation schemas operations list
13
+ Lists all OpenAPI schemas uploaded to API Security.`).option(`page`,{type:`number`,description:`Page number of paginated results.`}).option(`per-page`,{type:`number`,description:`Maximum number of results per page.`}).option(`omit-source`,{type:`boolean`,description:`Omit the source-files of schemas and only retrieve their meta-data.`}).option(`validation-enabled`,{type:`boolean`,description:`Filter for enabled schemas`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const E={command:`list`,describe:`List all uploaded schemas`,builder:T,handler:async e=>l({command:`api-security schema-validation schemas list`,classification:{safeFlags:[`omit-source`,`validation-enabled`,`dry-run`]}},e,async()=>{let t={page:e.page,per_page:e[`per-page`],omit_source:e[`omit-source`],validation_enabled:e[`validation-enabled`]};if(e.dryRun){s({command:`cf api-security schema-validation schemas list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/schema_validation/schemas`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``)},query:t,bodyKind:`none`});return}let r=await a(e),i=await n({zone:e.zone},r,{quiet:e.quiet});e.zoneId=i,o(await c(`Loading`,async()=>r.apiSecurity.schemaValidation.schemas.list({zone_id:i,...t})),{successLabel:`Loaded`})})};function D(e){return e.usage(`$0 api-security schema-validation schemas operations list
14
14
 
15
- Retrieves all operations from the schema. Operations that already exist in API Shield Endpoint Management will be returned as full operations.`).option(`schema-id`,{type:`string`,description:`The unique identifier of the schema`,demandOption:!0}).option(`feature`,{type:`string`,description:`Add feature(s) to the results. The feature name that is given here corresponds to the resulting feature object. Have a look at the top-level object description for more details on the specific meaning.`}).option(`host`,{type:`string`,description:`Filter results to only include the specified hosts.`}).option(`method`,{type:`string`,description:`Filter results to only include the specified HTTP methods.`}).option(`endpoint`,{type:`string`,description:`Filter results to only include endpoints containing this pattern.`}).option(`page`,{type:`number`,description:`Page number of paginated results.`}).option(`per-page`,{type:`number`,description:`Maximum number of results per page.`}).option(`operation-status`,{type:`string`,description:"Filter results by whether operations exist in Web Asset Management or not. `new` will just return operations from the schema that do not exist otherwise. `existing` will just return operations from the schema that already exist.",choices:[`new`,`existing`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const O={command:`list`,describe:`Retrieve all operations from the schema`,builder:_(D),handler:async e=>l({command:`api-security schema-validation schemas operations list`,classification:{safeFlags:[`operation-status`,`dry-run`]}},e,async()=>{let n={feature:e.feature,host:e.host,method:e.method,endpoint:e.endpoint,page:e.page,per_page:e[`per-page`],operation_status:e[`operation-status`]};if(e.dryRun){s({command:`cf api-security schema-validation schemas operations list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/schema_validation/schemas/${e[`schema-id`]==null?`<schema-id>`:encodeURIComponent(String(e[`schema-id`]))}/operations`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``),"schema-id":String(e[`schema-id`]??``)},query:n,bodyKind:`none`});return}let r=await a(e),i=await t({zone:e.zone},r,{quiet:e.quiet});e.zoneId=i,o(await c(`Loading`,async()=>r.apiSecurity.schemaValidation.schemas.operations.list({zone_id:i,schema_id:e[`schema-id`],...n})),{successLabel:`Loaded`})})},k={command:`operations`,describe:`Operations for schema-validation.schemas.operations`,builder:e=>e.command(O).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function A(e){return e.usage(`$0 api-security schema-validation schemas set-validation <schema-id>
15
+ Retrieves all operations from the schema. Operations that already exist in API Shield Endpoint Management will be returned as full operations.`).option(`schema-id`,{type:`string`,description:`The unique identifier of the schema`,demandOption:!0}).option(`feature`,{type:`string`,description:`Add feature(s) to the results. The feature name that is given here corresponds to the resulting feature object. Have a look at the top-level object description for more details on the specific meaning.`}).option(`host`,{type:`string`,description:`Filter results to only include the specified hosts.`}).option(`method`,{type:`string`,description:`Filter results to only include the specified HTTP methods.`}).option(`endpoint`,{type:`string`,description:`Filter results to only include endpoints containing this pattern.`}).option(`page`,{type:`number`,description:`Page number of paginated results.`}).option(`per-page`,{type:`number`,description:`Maximum number of results per page.`}).option(`operation-status`,{type:`string`,description:"Filter results by whether operations exist in Web Asset Management or not. `new` will just return operations from the schema that do not exist otherwise. `existing` will just return operations from the schema that already exist.",choices:[`new`,`existing`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const O={command:`list`,describe:`Retrieve all operations from the schema`,builder:_(D),handler:async e=>l({command:`api-security schema-validation schemas operations list`,classification:{safeFlags:[`operation-status`,`dry-run`]}},e,async()=>{let t={feature:e.feature,host:e.host,method:e.method,endpoint:e.endpoint,page:e.page,per_page:e[`per-page`],operation_status:e[`operation-status`]};if(e.dryRun){s({command:`cf api-security schema-validation schemas operations list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/schema_validation/schemas/${e[`schema-id`]==null?`<schema-id>`:encodeURIComponent(String(e[`schema-id`]))}/operations`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``),"schema-id":String(e[`schema-id`]??``)},query:t,bodyKind:`none`});return}let r=await a(e),i=await n({zone:e.zone},r,{quiet:e.quiet});e.zoneId=i,o(await c(`Loading`,async()=>r.apiSecurity.schemaValidation.schemas.operations.list({zone_id:i,schema_id:e[`schema-id`],...t})),{successLabel:`Loaded`})})},k={command:`operations`,describe:`Operations for schema-validation.schemas.operations`,builder:e=>e.command(O).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function A(e){return e.usage(`$0 api-security schema-validation schemas set-validation <schema-id>
16
16
 
17
- Enables or disables validation for an uploaded OpenAPI schema without changing the schema document.`).positional(`schema-id`,{type:`string`,description:`The unique identifier of the schema`,demandOption:!0}).option(`validation-enabled`,{type:`boolean`,description:`Flag whether schema is enabled for validation.`}).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 j={command:`set-validation <schema-id>`,describe:`Set schema validation state`,builder:A,handler:async e=>l({command:`api-security schema-validation schemas set-validation`,classification:{safeFlags:[`validation-enabled`,`dry-run`]}},e,async()=>{if(e.dryRun){s({command:`cf api-security schema-validation schemas set-validation`,method:`PATCH`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/schema_validation/schemas/${e[`schema-id`]==null?`<schema-id>`:encodeURIComponent(String(e[`schema-id`]))}`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``),"schema-id":String(e[`schema-id`]??``)},bodyKind:`json`,body:e.body===void 0?f({validation_enabled:e[`validation-enabled`]}):u(e.body)});return}let n=await a(e),r=await t({zone:e.zone},n,{quiet:e.quiet});if(e.zoneId=r,e.body){let t=u(e.body);o(await c(`Updating`,async()=>n.apiSecurity.schemaValidation.schemas.setValidation({...t,zone_id:r,schema_id:e[`schema-id`]})),{successLabel:`Updated`});return}let i=f({validation_enabled:e[`validation-enabled`]});o(await c(`Updating`,async()=>n.apiSecurity.schemaValidation.schemas.setValidation({...i,zone_id:r,schema_id:e[`schema-id`]})),{successLabel:`Updated`})})},M={command:`schemas`,describe:`Operations for schema-validation.schemas`,builder:e=>e.command(te).command(y).command(x).command(E).command(j).command(w).command(k).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function N(e){return e.usage(`$0 api-security schema-validation settings edit
17
+ Enables or disables validation for an uploaded OpenAPI schema without changing the schema document.`).positional(`schema-id`,{type:`string`,description:`The unique identifier of the schema`,demandOption:!0}).option(`validation-enabled`,{type:`boolean`,description:`Flag whether schema is enabled for validation.`}).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 j={command:`set-validation <schema-id>`,describe:`Set schema validation state`,builder:A,handler:async e=>l({command:`api-security schema-validation schemas set-validation`,classification:{safeFlags:[`validation-enabled`,`dry-run`]}},e,async()=>{if(e.dryRun){s({command:`cf api-security schema-validation schemas set-validation`,method:`PATCH`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/schema_validation/schemas/${e[`schema-id`]==null?`<schema-id>`:encodeURIComponent(String(e[`schema-id`]))}`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``),"schema-id":String(e[`schema-id`]??``)},bodyKind:`json`,body:e.body===void 0?f({validation_enabled:e[`validation-enabled`]}):u(e.body)});return}let t=await a(e),r=await n({zone:e.zone},t,{quiet:e.quiet});if(e.zoneId=r,e.body){let n=u(e.body);o(await c(`Updating`,async()=>t.apiSecurity.schemaValidation.schemas.setValidation({...n,zone_id:r,schema_id:e[`schema-id`]})),{successLabel:`Updated`});return}let i=f({validation_enabled:e[`validation-enabled`]});o(await c(`Updating`,async()=>t.apiSecurity.schemaValidation.schemas.setValidation({...i,zone_id:r,schema_id:e[`schema-id`]})),{successLabel:`Updated`})})},M={command:`schemas`,describe:`Operations for schema-validation.schemas`,builder:e=>e.command(te).command(y).command(x).command(E).command(j).command(w).command(k).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function N(e){return e.usage(`$0 api-security schema-validation settings edit
18
18
 
19
19
  Partially updates global schema validation settings for a zone using PATCH semantics.`).option(`validation-default-mitigation-action`,{type:`string`,description:`The default mitigation action used
20
20
  Mitigation actions are as follows:
@@ -26,20 +26,20 @@ Mitigation actions are as follows:
26
26
 
27
27
  - \`"none"\` - skip running schema validation entirely for the request
28
28
  - \`null\` - clears any existing override
29
- `,choices:[`none`]}).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:`edit`,describe:`Edit global schema validation settings`,builder:N,handler:async e=>l({command:`api-security schema-validation settings edit`,classification:{safeFlags:[`validation-default-mitigation-action`,`validation-override-mitigation-action`,`dry-run`]}},e,async()=>{if(e.dryRun){s({command:`cf api-security schema-validation settings edit`,method:`PATCH`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/schema_validation/settings`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``)},bodyKind:`json`,body:e.body===void 0?f({validation_default_mitigation_action:p(e[`validation-default-mitigation-action`],`validation-default-mitigation-action`,`text`),validation_override_mitigation_action:p(e[`validation-override-mitigation-action`],`validation-override-mitigation-action`,`text`)}):u(e.body)});return}let n=await a(e),r=await t({zone:e.zone},n,{quiet:e.quiet});if(e.zoneId=r,e.body){let t=u(e.body);o(await c(`Updating`,async()=>n.apiSecurity.schemaValidation.settings.edit({body:t,zone_id:r})),{successLabel:`Updated`});return}let i=f({validation_default_mitigation_action:p(e[`validation-default-mitigation-action`],`validation-default-mitigation-action`,`text`),validation_override_mitigation_action:p(e[`validation-override-mitigation-action`],`validation-override-mitigation-action`,`text`)});o(await c(`Updating`,async()=>n.apiSecurity.schemaValidation.settings.edit({body:i,zone_id:r})),{successLabel:`Updated`})})};function F(e){return e.usage(`$0 api-security schema-validation settings get
29
+ `,choices:[`none`]}).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:`edit`,describe:`Edit global schema validation settings`,builder:N,handler:async e=>l({command:`api-security schema-validation settings edit`,classification:{safeFlags:[`validation-default-mitigation-action`,`validation-override-mitigation-action`,`dry-run`]}},e,async()=>{if(e.dryRun){s({command:`cf api-security schema-validation settings edit`,method:`PATCH`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/schema_validation/settings`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``)},bodyKind:`json`,body:e.body===void 0?f({validation_default_mitigation_action:p(e[`validation-default-mitigation-action`],`validation-default-mitigation-action`,`text`),validation_override_mitigation_action:p(e[`validation-override-mitigation-action`],`validation-override-mitigation-action`,`text`)}):u(e.body)});return}let t=await a(e),r=await n({zone:e.zone},t,{quiet:e.quiet});if(e.zoneId=r,e.body){let n=u(e.body);o(await c(`Updating`,async()=>t.apiSecurity.schemaValidation.settings.edit({body:n,zone_id:r})),{successLabel:`Updated`});return}let i=f({validation_default_mitigation_action:p(e[`validation-default-mitigation-action`],`validation-default-mitigation-action`,`text`),validation_override_mitigation_action:p(e[`validation-override-mitigation-action`],`validation-override-mitigation-action`,`text`)});o(await c(`Updating`,async()=>t.apiSecurity.schemaValidation.settings.edit({body:i,zone_id:r})),{successLabel:`Updated`})})};function F(e){return e.usage(`$0 api-security schema-validation settings get
30
30
 
31
- Retrieves the current global schema validation settings for a zone.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const I={command:`get`,describe:`Get global schema validation settings`,builder:F,handler:async e=>l({command:`api-security schema-validation settings get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){s({command:`cf api-security schema-validation settings get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/schema_validation/settings`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``)},bodyKind:`none`});return}let n=await a(e),r=await t({zone:e.zone},n,{quiet:e.quiet});e.zoneId=r,o(await c(`Loading`,async()=>n.apiSecurity.schemaValidation.settings.get({zone_id:r})),{successLabel:`Loaded`})})};function L(e){return e.usage(`$0 api-security schema-validation settings operations bulk-edit
31
+ Retrieves the current global schema validation settings for a zone.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const I={command:`get`,describe:`Get global schema validation settings`,builder:F,handler:async e=>l({command:`api-security schema-validation settings get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){s({command:`cf api-security schema-validation settings get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/schema_validation/settings`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``)},bodyKind:`none`});return}let t=await a(e),r=await n({zone:e.zone},t,{quiet:e.quiet});e.zoneId=r,o(await c(`Loading`,async()=>t.apiSecurity.schemaValidation.settings.get({zone_id:r})),{successLabel:`Loaded`})})};function L(e){return e.usage(`$0 api-security schema-validation settings operations bulk-edit
32
32
 
33
- Updates schema validation settings for multiple API operations in a single request. Efficient for applying consistent validation rules across endpoints.`).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 R={command:`bulk-edit`,describe:`Bulk edit per-operation schema validation settings`,builder:L,handler:async e=>l({command:`api-security schema-validation settings operations bulk-edit`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){s({command:`cf api-security schema-validation settings operations bulk-edit`,method:`PATCH`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/schema_validation/settings/operations`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``)},bodyKind:`json`,body:e.body===void 0?void 0:u(e.body)});return}let n=await a(e),r=await t({zone:e.zone},n,{quiet:e.quiet});if(e.zoneId=r,e.body){let t=u(e.body);o(await c(`Updating`,async()=>n.apiSecurity.schemaValidation.settings.operations.bulkEdit({body:t,zone_id:r})),{successLabel:`Updated`});return}o(await c(`Updating`,async()=>i(n,`PATCH`,`/zones/${e.zoneId}/schema_validation/settings/operations`)),{successLabel:`Updated`})})};function z(e){return e.usage(`$0 api-security schema-validation settings operations delete <operation-id>
33
+ Updates schema validation settings for multiple API operations in a single request. Efficient for applying consistent validation rules across endpoints.`).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 R={command:`bulk-edit`,describe:`Bulk edit per-operation schema validation settings`,builder:L,handler:async e=>l({command:`api-security schema-validation settings operations bulk-edit`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){s({command:`cf api-security schema-validation settings operations bulk-edit`,method:`PATCH`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/schema_validation/settings/operations`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``)},bodyKind:`json`,body:e.body===void 0?void 0:u(e.body)});return}let t=await a(e),r=await n({zone:e.zone},t,{quiet:e.quiet});if(e.zoneId=r,e.body){let n=u(e.body);o(await c(`Updating`,async()=>t.apiSecurity.schemaValidation.settings.operations.bulkEdit({body:n,zone_id:r})),{successLabel:`Updated`});return}o(await c(`Updating`,async()=>i(t,`PATCH`,`/zones/${e.zoneId}/schema_validation/settings/operations`)),{successLabel:`Updated`})})};function z(e){return e.usage(`$0 api-security schema-validation settings operations delete <operation-id>
34
34
 
35
- Removes custom schema validation settings for a specific API operation, reverting to zone-level defaults.`).positional(`operation-id`,{type:`string`,description:`Identifier for the operation`,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 B={command:`delete <operation-id>`,describe:`Delete per-operation schema validation setting`,builder:z,handler:async e=>l({command:`api-security schema-validation settings operations delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{if(e.dryRun){s({command:`cf api-security schema-validation settings operations delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/schema_validation/settings/operations/${e[`operation-id`]==null?`<operation-id>`:encodeURIComponent(String(e[`operation-id`]))}`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``),"operation-id":String(e[`operation-id`]??``)},bodyKind:`none`});return}let n=await a(e),r=await t({zone:e.zone},n,{quiet:e.quiet});if(e.zoneId=r,!await g({force:!!e.force,message:`This operation deletes the operation-specific schema validation setting and restores the zone default.`})){process.stderr.write(`Aborted.
36
- `);return}o(await c(`Deleting`,async()=>n.apiSecurity.schemaValidation.settings.operations.delete({zone_id:r,operation_id:e[`operation-id`]})),{successLabel:`Deleted`})})};function V(e){return e.usage(`$0 api-security schema-validation settings operations get <operation-id>
35
+ Removes custom schema validation settings for a specific API operation, reverting to zone-level defaults.`).positional(`operation-id`,{type:`string`,description:`Identifier for the operation`,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 B={command:`delete <operation-id>`,describe:`Delete per-operation schema validation setting`,builder:z,handler:async e=>l({command:`api-security schema-validation settings operations delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{if(e.dryRun){s({command:`cf api-security schema-validation settings operations delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/schema_validation/settings/operations/${e[`operation-id`]==null?`<operation-id>`:encodeURIComponent(String(e[`operation-id`]))}`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``),"operation-id":String(e[`operation-id`]??``)},bodyKind:`none`});return}let t=await a(e),r=await n({zone:e.zone},t,{quiet:e.quiet});if(e.zoneId=r,!await g({force:!!e.force,message:`This operation deletes the operation-specific schema validation setting and restores the zone default.`})){process.stderr.write(`Aborted.
36
+ `);return}o(await c(`Deleting`,async()=>t.apiSecurity.schemaValidation.settings.operations.delete({zone_id:r,operation_id:e[`operation-id`]})),{successLabel:`Deleted`})})};function V(e){return e.usage(`$0 api-security schema-validation settings operations get <operation-id>
37
37
 
38
- Retrieves the schema validation settings configured for a specific API operation.`).positional(`operation-id`,{type:`string`,description:`Identifier for the operation`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const H={command:`get <operation-id>`,describe:`Get per-operation schema validation setting`,builder:V,handler:async e=>l({command:`api-security schema-validation settings operations get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){s({command:`cf api-security schema-validation settings operations get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/schema_validation/settings/operations/${e[`operation-id`]==null?`<operation-id>`:encodeURIComponent(String(e[`operation-id`]))}`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``),"operation-id":String(e[`operation-id`]??``)},bodyKind:`none`});return}let n=await a(e),r=await t({zone:e.zone},n,{quiet:e.quiet});e.zoneId=r,o(await c(`Loading`,async()=>n.apiSecurity.schemaValidation.settings.operations.get({zone_id:r,operation_id:e[`operation-id`]})),{successLabel:`Loaded`})})};function U(e){return e.usage(`$0 api-security schema-validation settings operations list
38
+ Retrieves the schema validation settings configured for a specific API operation.`).positional(`operation-id`,{type:`string`,description:`Identifier for the operation`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const H={command:`get <operation-id>`,describe:`Get per-operation schema validation setting`,builder:V,handler:async e=>l({command:`api-security schema-validation settings operations get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){s({command:`cf api-security schema-validation settings operations get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/schema_validation/settings/operations/${e[`operation-id`]==null?`<operation-id>`:encodeURIComponent(String(e[`operation-id`]))}`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``),"operation-id":String(e[`operation-id`]??``)},bodyKind:`none`});return}let t=await a(e),r=await n({zone:e.zone},t,{quiet:e.quiet});e.zoneId=r,o(await c(`Loading`,async()=>t.apiSecurity.schemaValidation.settings.operations.get({zone_id:r,operation_id:e[`operation-id`]})),{successLabel:`Loaded`})})};function U(e){return e.usage(`$0 api-security schema-validation settings operations list
39
39
 
40
- Lists per-operation schema validation settings configured for the zone.`).option(`page`,{type:`number`,description:`Page number of paginated results.`}).option(`per-page`,{type:`number`,description:`Maximum number of results per page.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const W={command:`list`,describe:`List per-operation schema validation settings`,builder:U,handler:async e=>l({command:`api-security schema-validation settings operations list`,classification:{safeFlags:[`dry-run`]}},e,async()=>{let n={page:e.page,per_page:e[`per-page`]};if(e.dryRun){s({command:`cf api-security schema-validation settings operations list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/schema_validation/settings/operations`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``)},query:n,bodyKind:`none`});return}let r=await a(e),i=await t({zone:e.zone},r,{quiet:e.quiet});e.zoneId=i,o(await c(`Loading`,async()=>r.apiSecurity.schemaValidation.settings.operations.list({zone_id:i,...n})),{successLabel:`Loaded`})})};function G(e){return e.usage(`$0 api-security schema-validation settings operations update <operation-id>
40
+ Lists per-operation schema validation settings configured for the zone.`).option(`page`,{type:`number`,description:`Page number of paginated results.`}).option(`per-page`,{type:`number`,description:`Maximum number of results per page.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const W={command:`list`,describe:`List per-operation schema validation settings`,builder:U,handler:async e=>l({command:`api-security schema-validation settings operations list`,classification:{safeFlags:[`dry-run`]}},e,async()=>{let t={page:e.page,per_page:e[`per-page`]};if(e.dryRun){s({command:`cf api-security schema-validation settings operations list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/schema_validation/settings/operations`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``)},query:t,bodyKind:`none`});return}let r=await a(e),i=await n({zone:e.zone},r,{quiet:e.quiet});e.zoneId=i,o(await c(`Loading`,async()=>r.apiSecurity.schemaValidation.settings.operations.list({zone_id:i,...t})),{successLabel:`Loaded`})})};function G(e){return e.usage(`$0 api-security schema-validation settings operations update <operation-id>
41
41
 
42
- Fully updates schema validation settings for a specific API operation.`).positional(`operation-id`,{type:`string`,description:`Identifier for the operation`,demandOption:!0}).option(`mitigation-action`,{type:`string`,description:'When set, this applies a mitigation action to this operation\n\n - `"log"` - log request when request does not conform to schema for this operation\n - `"block"` - deny access to the site when request does not conform to schema for this operation\n - `"none"` - will skip mitigation for this operation\n - `null` - clears any mitigation action\n',choices:[`log`,`block`,`none`]}).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 K={command:`update <operation-id>`,describe:`Update per-operation schema validation setting`,builder:G,handler:async e=>l({command:`api-security schema-validation settings operations update`,classification:{safeFlags:[`mitigation-action`,`dry-run`]}},e,async()=>{if(e.dryRun){s({command:`cf api-security schema-validation settings operations update`,method:`PUT`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/schema_validation/settings/operations/${e[`operation-id`]==null?`<operation-id>`:encodeURIComponent(String(e[`operation-id`]))}`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``),"operation-id":String(e[`operation-id`]??``)},bodyKind:`json`,body:e.body===void 0?f({mitigation_action:p(e[`mitigation-action`],`mitigation-action`,`text`)}):u(e.body)});return}let n=await a(e),r=await t({zone:e.zone},n,{quiet:e.quiet});if(e.zoneId=r,e.body){let t=u(e.body);o(await c(`Updating`,async()=>n.apiSecurity.schemaValidation.settings.operations.update({...t,zone_id:r,operation_id:e[`operation-id`]})),{successLabel:`Updated`});return}e[`mitigation-action`]===void 0&&(e[`mitigation-action`]=await h(`mitigation-action`,'When set, this applies a mitigation action to this operation - `"log"` - log request when request does not conform to schema for this operation - `"block"` - deny access to the site when request does not conform to schema for this operation - `"none"` - will skip mitigation for this operation - `null` - clears any mitigation action ',[`log`,`block`,`none`]));let i=f({mitigation_action:p(e[`mitigation-action`],`mitigation-action`,`text`)});o(await c(`Updating`,async()=>n.apiSecurity.schemaValidation.settings.operations.update({...i,zone_id:r,operation_id:e[`operation-id`]})),{successLabel:`Updated`})})},q={command:`operations`,describe:`Operations for schema-validation.settings.operations`,builder:e=>e.command(R).command(B).command(H).command(W).command(K).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function J(e){return e.usage(`$0 api-security schema-validation settings update
42
+ Fully updates schema validation settings for a specific API operation.`).positional(`operation-id`,{type:`string`,description:`Identifier for the operation`,demandOption:!0}).option(`mitigation-action`,{type:`string`,description:'When set, this applies a mitigation action to this operation\n\n - `"log"` - log request when request does not conform to schema for this operation\n - `"block"` - deny access to the site when request does not conform to schema for this operation\n - `"none"` - will skip mitigation for this operation\n - `null` - clears any mitigation action\n',choices:[`log`,`block`,`none`]}).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 K={command:`update <operation-id>`,describe:`Update per-operation schema validation setting`,builder:G,handler:async e=>l({command:`api-security schema-validation settings operations update`,classification:{safeFlags:[`mitigation-action`,`dry-run`]}},e,async()=>{if(e.dryRun){s({command:`cf api-security schema-validation settings operations update`,method:`PUT`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/schema_validation/settings/operations/${e[`operation-id`]==null?`<operation-id>`:encodeURIComponent(String(e[`operation-id`]))}`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``),"operation-id":String(e[`operation-id`]??``)},bodyKind:`json`,body:e.body===void 0?f({mitigation_action:p(e[`mitigation-action`],`mitigation-action`,`text`)}):u(e.body)});return}let t=await a(e),r=await n({zone:e.zone},t,{quiet:e.quiet});if(e.zoneId=r,e.body){let n=u(e.body);o(await c(`Updating`,async()=>t.apiSecurity.schemaValidation.settings.operations.update({...n,zone_id:r,operation_id:e[`operation-id`]})),{successLabel:`Updated`});return}e[`mitigation-action`]===void 0&&(e[`mitigation-action`]=await h(`mitigation-action`,'When set, this applies a mitigation action to this operation - `"log"` - log request when request does not conform to schema for this operation - `"block"` - deny access to the site when request does not conform to schema for this operation - `"none"` - will skip mitigation for this operation - `null` - clears any mitigation action ',[`log`,`block`,`none`]));let i=f({mitigation_action:p(e[`mitigation-action`],`mitigation-action`,`text`)});o(await c(`Updating`,async()=>t.apiSecurity.schemaValidation.settings.operations.update({...i,zone_id:r,operation_id:e[`operation-id`]})),{successLabel:`Updated`})})},q={command:`operations`,describe:`Operations for schema-validation.settings.operations`,builder:e=>e.command(R).command(B).command(H).command(W).command(K).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function J(e){return e.usage(`$0 api-security schema-validation settings update
43
43
 
44
44
  Fully updates global schema validation settings for a zone, replacing existing configuration.`).option(`validation-default-mitigation-action`,{type:`string`,description:`The default mitigation action used
45
45
  Mitigation actions are as follows:
@@ -51,104 +51,104 @@ Mitigation actions are as follows:
51
51
 
52
52
  - \`"none"\` - skip running schema validation entirely for the request
53
53
  - \`null\` - clears any existing override
54
- `,choices:[`none`]}).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 Y={command:`update`,describe:`Update global schema validation settings`,builder:J,handler:async e=>l({command:`api-security schema-validation settings update`,classification:{safeFlags:[`validation-default-mitigation-action`,`validation-override-mitigation-action`,`dry-run`]}},e,async()=>{if(e.dryRun){s({command:`cf api-security schema-validation settings update`,method:`PUT`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/schema_validation/settings`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``)},bodyKind:`json`,body:e.body===void 0?f({validation_default_mitigation_action:p(e[`validation-default-mitigation-action`],`validation-default-mitigation-action`,`text`),validation_override_mitigation_action:p(e[`validation-override-mitigation-action`],`validation-override-mitigation-action`,`text`)}):u(e.body)});return}let n=await a(e),r=await t({zone:e.zone},n,{quiet:e.quiet});if(e.zoneId=r,e.body){let t=u(e.body);o(await c(`Updating`,async()=>n.apiSecurity.schemaValidation.settings.update({...t,zone_id:r})),{successLabel:`Updated`});return}e[`validation-default-mitigation-action`]===void 0&&(e[`validation-default-mitigation-action`]=await h(`validation-default-mitigation-action`,'The default mitigation action used Mitigation actions are as follows: - `"log"` - log request when request does not conform to schema - `"block"` - deny access to the site when request does not conform to schema - `"none"` - skip running schema validation ',[`none`,`log`,`block`]));let i=f({validation_default_mitigation_action:p(e[`validation-default-mitigation-action`],`validation-default-mitigation-action`,`text`),validation_override_mitigation_action:p(e[`validation-override-mitigation-action`],`validation-override-mitigation-action`,`text`)});o(await c(`Updating`,async()=>n.apiSecurity.schemaValidation.settings.update({...i,zone_id:r})),{successLabel:`Updated`})})},X={command:`settings`,describe:`Operations for schema-validation.settings`,builder:e=>e.command(P).command(I).command(Y).command(q).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},Z={command:`schema-validation`,describe:`Operations for schema-validation`,builder:e=>e.command(M).command(X).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function Q(e){return e.usage(`$0 api-security session-identifiers get
54
+ `,choices:[`none`]}).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 Y={command:`update`,describe:`Update global schema validation settings`,builder:J,handler:async e=>l({command:`api-security schema-validation settings update`,classification:{safeFlags:[`validation-default-mitigation-action`,`validation-override-mitigation-action`,`dry-run`]}},e,async()=>{if(e.dryRun){s({command:`cf api-security schema-validation settings update`,method:`PUT`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/schema_validation/settings`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``)},bodyKind:`json`,body:e.body===void 0?f({validation_default_mitigation_action:p(e[`validation-default-mitigation-action`],`validation-default-mitigation-action`,`text`),validation_override_mitigation_action:p(e[`validation-override-mitigation-action`],`validation-override-mitigation-action`,`text`)}):u(e.body)});return}let t=await a(e),r=await n({zone:e.zone},t,{quiet:e.quiet});if(e.zoneId=r,e.body){let n=u(e.body);o(await c(`Updating`,async()=>t.apiSecurity.schemaValidation.settings.update({...n,zone_id:r})),{successLabel:`Updated`});return}e[`validation-default-mitigation-action`]===void 0&&(e[`validation-default-mitigation-action`]=await h(`validation-default-mitigation-action`,'The default mitigation action used Mitigation actions are as follows: - `"log"` - log request when request does not conform to schema - `"block"` - deny access to the site when request does not conform to schema - `"none"` - skip running schema validation ',[`none`,`log`,`block`]));let i=f({validation_default_mitigation_action:p(e[`validation-default-mitigation-action`],`validation-default-mitigation-action`,`text`),validation_override_mitigation_action:p(e[`validation-override-mitigation-action`],`validation-override-mitigation-action`,`text`)});o(await c(`Updating`,async()=>t.apiSecurity.schemaValidation.settings.update({...i,zone_id:r})),{successLabel:`Updated`})})},X={command:`settings`,describe:`Operations for schema-validation.settings`,builder:e=>e.command(P).command(I).command(Y).command(q).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},Z={command:`schema-validation`,describe:`Operations for schema-validation`,builder:e=>e.command(M).command(X).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function Q(e){return e.usage(`$0 api-security session-identifiers get
55
55
 
56
- Returns the authentication identifier characteristics configured for the zone. Header, cookie, or JWT claim values identify distinct API sessions.`).option(`normalize`,{type:`boolean`,description:`Ensures that the configuration is written or retrieved in normalized fashion`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const ne={command:`get`,describe:`Get session identifier settings`,builder:Q,handler:async e=>l({command:`api-security session-identifiers get`,classification:{safeFlags:[`normalize`,`dry-run`]}},e,async()=>{let n={normalize:e.normalize};if(e.dryRun){s({command:`cf api-security session-identifiers get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/api_gateway/configuration`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``)},query:n,bodyKind:`none`});return}let r=await a(e),i=await t({zone:e.zone},r,{quiet:e.quiet});e.zoneId=i,o(await c(`Loading`,async()=>r.apiSecurity.sessionIdentifiers.get({zone_id:i,...n})),{successLabel:`Loaded`})})};function re(e){return e.usage(`$0 api-security session-identifiers update
56
+ Returns the authentication identifier characteristics configured for the zone. Header, cookie, or JWT claim values identify distinct API sessions.`).option(`normalize`,{type:`boolean`,description:`Ensures that the configuration is written or retrieved in normalized fashion`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const ne={command:`get`,describe:`Get session identifier settings`,builder:Q,handler:async e=>l({command:`api-security session-identifiers get`,classification:{safeFlags:[`normalize`,`dry-run`]}},e,async()=>{let t={normalize:e.normalize};if(e.dryRun){s({command:`cf api-security session-identifiers get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/api_gateway/configuration`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``)},query:t,bodyKind:`none`});return}let r=await a(e),i=await n({zone:e.zone},r,{quiet:e.quiet});e.zoneId=i,o(await c(`Loading`,async()=>r.apiSecurity.sessionIdentifiers.get({zone_id:i,...t})),{successLabel:`Loaded`})})};function re(e){return e.usage(`$0 api-security session-identifiers update
57
57
 
58
- Replaces the zone's authentication identifier characteristics used to identify distinct API sessions.`).option(`normalize`,{type:`boolean`,description:`Ensures that the configuration is written or retrieved in normalized fashion`}).option(`auth-id-characteristics`,{type:`string`,description:`The auth_id_characteristics field. Provide as a JSON array of objects or @path/to/file.json.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const ie={command:`update`,describe:`Update session identifier settings`,builder:re,handler:async e=>l({command:`api-security session-identifiers update`,classification:{safeFlags:[`normalize`,`dry-run`]}},e,async()=>{let n={normalize:e.normalize};if(e.dryRun){s({command:`cf api-security session-identifiers update`,method:`PUT`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/api_gateway/configuration`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``)},query:n,bodyKind:`json`,body:e.body===void 0?f({auth_id_characteristics:d(e[`auth-id-characteristics`],`auth-id-characteristics`)}):u(e.body)});return}let r=await a(e),i=await t({zone:e.zone},r,{quiet:e.quiet});if(e.zoneId=i,e.body){let t=u(e.body);new URLSearchParams(Object.entries(n).filter(([,e])=>e!==void 0).map(([e,t])=>[e,String(t)])).toString(),o(await c(`Updating`,async()=>r.apiSecurity.sessionIdentifiers.update({body:t,zone_id:i,...n})),{successLabel:`Updated`});return}if(e[`auth-id-characteristics`]===void 0)throw Error(`--auth-id-characteristics is required (or pass --body with this field set).`);let l=f({auth_id_characteristics:d(e[`auth-id-characteristics`],`auth-id-characteristics`)});new URLSearchParams(Object.entries(n).filter(([,e])=>e!==void 0).map(([e,t])=>[e,String(t)])).toString(),o(await c(`Updating`,async()=>r.apiSecurity.sessionIdentifiers.update({body:l,zone_id:i,...n})),{successLabel:`Updated`})})},ae={command:`session-identifiers`,describe:`Operations for session-identifiers`,builder:e=>e.command(ne).command(ie).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function oe(e){return e.usage(`$0 api-security token-validation configurations create
58
+ Replaces the zone's authentication identifier characteristics used to identify distinct API sessions.`).option(`normalize`,{type:`boolean`,description:`Ensures that the configuration is written or retrieved in normalized fashion`}).option(`auth-id-characteristics`,{type:`string`,description:`The auth_id_characteristics field. Provide as a JSON array of objects or @path/to/file.json.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const ie={command:`update`,describe:`Update session identifier settings`,builder:re,handler:async e=>l({command:`api-security session-identifiers update`,classification:{safeFlags:[`normalize`,`dry-run`]}},e,async()=>{let t={normalize:e.normalize};if(e.dryRun){s({command:`cf api-security session-identifiers update`,method:`PUT`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/api_gateway/configuration`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``)},query:t,bodyKind:`json`,body:e.body===void 0?f({auth_id_characteristics:d(e[`auth-id-characteristics`],`auth-id-characteristics`)}):u(e.body)});return}let r=await a(e),i=await n({zone:e.zone},r,{quiet:e.quiet});if(e.zoneId=i,e.body){let n=u(e.body);new URLSearchParams(Object.entries(t).filter(([,e])=>e!==void 0).map(([e,t])=>[e,String(t)])).toString(),o(await c(`Updating`,async()=>r.apiSecurity.sessionIdentifiers.update({body:n,zone_id:i,...t})),{successLabel:`Updated`});return}if(e[`auth-id-characteristics`]===void 0)throw Error(`--auth-id-characteristics is required (or pass --body with this field set).`);let l=f({auth_id_characteristics:d(e[`auth-id-characteristics`],`auth-id-characteristics`)});new URLSearchParams(Object.entries(t).filter(([,e])=>e!==void 0).map(([e,t])=>[e,String(t)])).toString(),o(await c(`Updating`,async()=>r.apiSecurity.sessionIdentifiers.update({body:l,zone_id:i,...t})),{successLabel:`Updated`})})},ae={command:`session-identifiers`,describe:`Operations for session-identifiers`,builder:e=>e.command(ne).command(ie).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function oe(e){return e.usage(`$0 api-security token-validation configurations create
59
59
 
60
- Creates a JWT validation configuration for the zone.`).option(`description`,{type:`string`,description:`The description field`}).option(`title`,{type:`string`,description:`The title field`}).option(`token-type`,{type:`string`,description:`The token_type field`,choices:[`JWT`]}).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 se={command:`create`,describe:`Create a token validation configuration`,builder:oe,handler:async e=>l({command:`api-security token-validation configurations create`,classification:{safeFlags:[`token-type`,`dry-run`]}},e,async()=>{if(e.dryRun){s({command:`cf api-security token-validation configurations create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/token_validation/config`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``)},bodyKind:`json`,body:e.body===void 0?f({description:p(e.description,`description`,`text`),title:p(e.title,`title`,`text`),token_type:p(e[`token-type`],`token-type`,`text`)}):u(e.body)});return}let n=await a(e),r=await t({zone:e.zone},n,{quiet:e.quiet});if(e.zoneId=r,e.body){let t=u(e.body);o(await c(`Creating`,async()=>n.apiSecurity.tokenValidation.configurations.create({...t,zone_id:r})),{successLabel:`Created`});return}e.description===void 0&&(e.description=await m(`description`,`The description field`)),e.title===void 0&&(e.title=await m(`title`,`The title field`)),e[`token-type`]===void 0&&(e[`token-type`]=await h(`token-type`,`The token_type field`,[`JWT`]));let i=f({description:p(e.description,`description`,`text`),title:p(e.title,`title`,`text`),token_type:p(e[`token-type`],`token-type`,`text`)});o(await c(`Creating`,async()=>n.apiSecurity.tokenValidation.configurations.create({...i,zone_id:r})),{successLabel:`Created`})})};function ce(e){return e.usage(`$0 api-security token-validation configurations credentials edit <config-id>
60
+ Creates a JWT validation configuration for the zone.`).option(`description`,{type:`string`,description:`The description field`}).option(`title`,{type:`string`,description:`The title field`}).option(`token-type`,{type:`string`,description:`The token_type field`,choices:[`JWT`]}).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 se={command:`create`,describe:`Create a token validation configuration`,builder:oe,handler:async e=>l({command:`api-security token-validation configurations create`,classification:{safeFlags:[`token-type`,`dry-run`]}},e,async()=>{if(e.dryRun){s({command:`cf api-security token-validation configurations create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/token_validation/config`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``)},bodyKind:`json`,body:e.body===void 0?f({description:p(e.description,`description`,`text`),title:p(e.title,`title`,`text`),token_type:p(e[`token-type`],`token-type`,`text`)}):u(e.body)});return}let t=await a(e),r=await n({zone:e.zone},t,{quiet:e.quiet});if(e.zoneId=r,e.body){let n=u(e.body);o(await c(`Creating`,async()=>t.apiSecurity.tokenValidation.configurations.create({...n,zone_id:r})),{successLabel:`Created`});return}e.description===void 0&&(e.description=await m(`description`,`The description field`)),e.title===void 0&&(e.title=await m(`title`,`The title field`)),e[`token-type`]===void 0&&(e[`token-type`]=await h(`token-type`,`The token_type field`,[`JWT`]));let i=f({description:p(e.description,`description`,`text`),title:p(e.title,`title`,`text`),token_type:p(e[`token-type`],`token-type`,`text`)});o(await c(`Creating`,async()=>t.apiSecurity.tokenValidation.configurations.create({...i,zone_id:r})),{successLabel:`Created`})})};function ce(e){return e.usage(`$0 api-security token-validation configurations credentials edit <config-id>
61
61
 
62
- Updates the configuration's complete key set while allowing omitted fields on existing keys to retain stored values. Omitted key identities are removed.`).positional(`config-id`,{type:`string`,description:`Token Configuration ID`,demandOption:!0}).option(`keys`,{type:`string`,description:`The keys field. Provide as a JSON array of objects or @path/to/file.json.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:"Request payload for PATCH credentials. Provided keys define the complete stored key set, and stored keys omitted from payload are removed. For each provided key identity (`{alg,kid}`), payload fields overwrite the stored key before validation and omitted fields inherit from the stored key. Key identities must be unique."})}const le={command:`edit <config-id>`,describe:`Edit token validation credentials`,builder:ce,handler:async e=>l({command:`api-security token-validation configurations credentials edit`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){s({command:`cf api-security token-validation configurations credentials edit`,method:`PATCH`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/token_validation/config/${e[`config-id`]==null?`<config-id>`:encodeURIComponent(String(e[`config-id`]))}/credentials`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``),"config-id":String(e[`config-id`]??``)},bodyKind:`json`,body:e.body===void 0?f({keys:d(e.keys,`keys`)}):u(e.body)});return}let n=await a(e),r=await t({zone:e.zone},n,{quiet:e.quiet});if(e.zoneId=r,e.body){let t=u(e.body);o(await c(`Updating`,async()=>n.apiSecurity.tokenValidation.configurations.credentials.edit({...t,zone_id:r,config_id:e[`config-id`]})),{successLabel:`Updated`});return}if(e.keys===void 0)throw Error(`--keys is required (or pass --body with this field set).`);let i=f({keys:d(e.keys,`keys`)});o(await c(`Updating`,async()=>n.apiSecurity.tokenValidation.configurations.credentials.edit({...i,zone_id:r,config_id:e[`config-id`]})),{successLabel:`Updated`})})};function ue(e){return e.usage(`$0 api-security token-validation configurations credentials update <config-id>
62
+ Updates the configuration's complete key set while allowing omitted fields on existing keys to retain stored values. Omitted key identities are removed.`).positional(`config-id`,{type:`string`,description:`Token Configuration ID`,demandOption:!0}).option(`keys`,{type:`string`,description:`The keys field. Provide as a JSON array of objects or @path/to/file.json.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:"Request payload for PATCH credentials. Provided keys define the complete stored key set, and stored keys omitted from payload are removed. For each provided key identity (`{alg,kid}`), payload fields overwrite the stored key before validation and omitted fields inherit from the stored key. Key identities must be unique."})}const le={command:`edit <config-id>`,describe:`Edit token validation credentials`,builder:ce,handler:async e=>l({command:`api-security token-validation configurations credentials edit`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){s({command:`cf api-security token-validation configurations credentials edit`,method:`PATCH`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/token_validation/config/${e[`config-id`]==null?`<config-id>`:encodeURIComponent(String(e[`config-id`]))}/credentials`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``),"config-id":String(e[`config-id`]??``)},bodyKind:`json`,body:e.body===void 0?f({keys:d(e.keys,`keys`)}):u(e.body)});return}let t=await a(e),r=await n({zone:e.zone},t,{quiet:e.quiet});if(e.zoneId=r,e.body){let n=u(e.body);o(await c(`Updating`,async()=>t.apiSecurity.tokenValidation.configurations.credentials.edit({...n,zone_id:r,config_id:e[`config-id`]})),{successLabel:`Updated`});return}if(e.keys===void 0)throw Error(`--keys is required (or pass --body with this field set).`);let i=f({keys:d(e.keys,`keys`)});o(await c(`Updating`,async()=>t.apiSecurity.tokenValidation.configurations.credentials.edit({...i,zone_id:r,config_id:e[`config-id`]})),{successLabel:`Updated`})})};function ue(e){return e.usage(`$0 api-security token-validation configurations credentials update <config-id>
63
63
 
64
- Replaces the configuration's complete key set. Symmetric keys must include their key material.`).positional(`config-id`,{type:`string`,description:`Token Configuration ID`,demandOption:!0}).option(`keys`,{type:`string`,description:`The keys field. Provide as a JSON array of objects or @path/to/file.json.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:"Request payload for create and PUT credentials operations. Provided keys define the complete stored key set. Key identities (`{alg,kid}`) must be unique."})}const de={command:`update <config-id>`,describe:`Replace token validation credentials`,builder:ue,handler:async e=>l({command:`api-security token-validation configurations credentials update`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){s({command:`cf api-security token-validation configurations credentials update`,method:`PUT`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/token_validation/config/${e[`config-id`]==null?`<config-id>`:encodeURIComponent(String(e[`config-id`]))}/credentials`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``),"config-id":String(e[`config-id`]??``)},bodyKind:`json`,body:e.body===void 0?f({keys:d(e.keys,`keys`)}):u(e.body)});return}let n=await a(e),r=await t({zone:e.zone},n,{quiet:e.quiet});if(e.zoneId=r,e.body){let t=u(e.body);o(await c(`Updating`,async()=>n.apiSecurity.tokenValidation.configurations.credentials.update({body:t,zone_id:r,config_id:e[`config-id`]})),{successLabel:`Updated`});return}if(e.keys===void 0)throw Error(`--keys is required (or pass --body with this field set).`);let i=f({keys:d(e.keys,`keys`)});o(await c(`Updating`,async()=>n.apiSecurity.tokenValidation.configurations.credentials.update({body:i,zone_id:r,config_id:e[`config-id`]})),{successLabel:`Updated`})})},fe={command:`credentials`,describe:`Operations for token-validation.configurations.credentials`,builder:e=>e.command(le).command(de).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function pe(e){return e.usage(`$0 api-security token-validation configurations delete <config-id>
64
+ Replaces the configuration's complete key set. Symmetric keys must include their key material.`).positional(`config-id`,{type:`string`,description:`Token Configuration ID`,demandOption:!0}).option(`keys`,{type:`string`,description:`The keys field. Provide as a JSON array of objects or @path/to/file.json.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:"Request payload for create and PUT credentials operations. Provided keys define the complete stored key set. Key identities (`{alg,kid}`) must be unique."})}const de={command:`update <config-id>`,describe:`Replace token validation credentials`,builder:ue,handler:async e=>l({command:`api-security token-validation configurations credentials update`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){s({command:`cf api-security token-validation configurations credentials update`,method:`PUT`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/token_validation/config/${e[`config-id`]==null?`<config-id>`:encodeURIComponent(String(e[`config-id`]))}/credentials`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``),"config-id":String(e[`config-id`]??``)},bodyKind:`json`,body:e.body===void 0?f({keys:d(e.keys,`keys`)}):u(e.body)});return}let t=await a(e),r=await n({zone:e.zone},t,{quiet:e.quiet});if(e.zoneId=r,e.body){let n=u(e.body);o(await c(`Updating`,async()=>t.apiSecurity.tokenValidation.configurations.credentials.update({body:n,zone_id:r,config_id:e[`config-id`]})),{successLabel:`Updated`});return}if(e.keys===void 0)throw Error(`--keys is required (or pass --body with this field set).`);let i=f({keys:d(e.keys,`keys`)});o(await c(`Updating`,async()=>t.apiSecurity.tokenValidation.configurations.credentials.update({body:i,zone_id:r,config_id:e[`config-id`]})),{successLabel:`Updated`})})},fe={command:`credentials`,describe:`Operations for token-validation.configurations.credentials`,builder:e=>e.command(le).command(de).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function pe(e){return e.usage(`$0 api-security token-validation configurations delete <config-id>
65
65
 
66
- Deletes a JWT validation configuration from the zone.`).positional(`config-id`,{type:`string`,description:`Token Configuration ID`,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 me={command:`delete <config-id>`,describe:`Delete a token validation configuration`,builder:pe,handler:async e=>l({command:`api-security token-validation configurations delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{if(e.dryRun){s({command:`cf api-security token-validation configurations delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/token_validation/config/${e[`config-id`]==null?`<config-id>`:encodeURIComponent(String(e[`config-id`]))}`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``),"config-id":String(e[`config-id`]??``)},bodyKind:`none`});return}let n=await a(e),r=await t({zone:e.zone},n,{quiet:e.quiet});if(e.zoneId=r,!await g({force:!!e.force,message:`This operation deletes the token validation configuration. The request is rejected if rules, operations, or JWT authentication identifiers still reference it.`})){process.stderr.write(`Aborted.
67
- `);return}o(await c(`Deleting`,async()=>n.apiSecurity.tokenValidation.configurations.delete({zone_id:r,config_id:e[`config-id`]})),{successLabel:`Deleted`})})};function he(e){return e.usage(`$0 api-security token-validation configurations edit <config-id>
66
+ Deletes a JWT validation configuration from the zone.`).positional(`config-id`,{type:`string`,description:`Token Configuration ID`,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 me={command:`delete <config-id>`,describe:`Delete a token validation configuration`,builder:pe,handler:async e=>l({command:`api-security token-validation configurations delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{if(e.dryRun){s({command:`cf api-security token-validation configurations delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/token_validation/config/${e[`config-id`]==null?`<config-id>`:encodeURIComponent(String(e[`config-id`]))}`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``),"config-id":String(e[`config-id`]??``)},bodyKind:`none`});return}let t=await a(e),r=await n({zone:e.zone},t,{quiet:e.quiet});if(e.zoneId=r,!await g({force:!!e.force,message:`This operation deletes the token validation configuration. The request is rejected if rules, operations, or JWT authentication identifiers still reference it.`})){process.stderr.write(`Aborted.
67
+ `);return}o(await c(`Deleting`,async()=>t.apiSecurity.tokenValidation.configurations.delete({zone_id:r,config_id:e[`config-id`]})),{successLabel:`Deleted`})})};function he(e){return e.usage(`$0 api-security token-validation configurations edit <config-id>
68
68
 
69
- Updates only the supplied fields on a JWT validation configuration.`).positional(`config-id`,{type:`string`,description:`Token Configuration ID`,demandOption:!0}).option(`description`,{type:`string`,description:`The description field`}).option(`title`,{type:`string`,description:`The title 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 ge={command:`edit <config-id>`,describe:`Edit a token validation configuration`,builder:he,handler:async e=>l({command:`api-security token-validation configurations edit`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){s({command:`cf api-security token-validation configurations edit`,method:`PATCH`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/token_validation/config/${e[`config-id`]==null?`<config-id>`:encodeURIComponent(String(e[`config-id`]))}`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``),"config-id":String(e[`config-id`]??``)},bodyKind:`json`,body:e.body===void 0?f({description:p(e.description,`description`,`text`),title:p(e.title,`title`,`text`)}):u(e.body)});return}let n=await a(e),r=await t({zone:e.zone},n,{quiet:e.quiet});if(e.zoneId=r,e.body){let t=u(e.body);o(await c(`Updating`,async()=>n.apiSecurity.tokenValidation.configurations.edit({...t,zone_id:r,config_id:e[`config-id`]})),{successLabel:`Updated`});return}let i=f({description:p(e.description,`description`,`text`),title:p(e.title,`title`,`text`)});o(await c(`Updating`,async()=>n.apiSecurity.tokenValidation.configurations.edit({...i,zone_id:r,config_id:e[`config-id`]})),{successLabel:`Updated`})})};function _e(e){return e.usage(`$0 api-security token-validation configurations get <config-id>
69
+ Updates only the supplied fields on a JWT validation configuration.`).positional(`config-id`,{type:`string`,description:`Token Configuration ID`,demandOption:!0}).option(`description`,{type:`string`,description:`The description field`}).option(`title`,{type:`string`,description:`The title 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 ge={command:`edit <config-id>`,describe:`Edit a token validation configuration`,builder:he,handler:async e=>l({command:`api-security token-validation configurations edit`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){s({command:`cf api-security token-validation configurations edit`,method:`PATCH`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/token_validation/config/${e[`config-id`]==null?`<config-id>`:encodeURIComponent(String(e[`config-id`]))}`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``),"config-id":String(e[`config-id`]??``)},bodyKind:`json`,body:e.body===void 0?f({description:p(e.description,`description`,`text`),title:p(e.title,`title`,`text`)}):u(e.body)});return}let t=await a(e),r=await n({zone:e.zone},t,{quiet:e.quiet});if(e.zoneId=r,e.body){let n=u(e.body);o(await c(`Updating`,async()=>t.apiSecurity.tokenValidation.configurations.edit({...n,zone_id:r,config_id:e[`config-id`]})),{successLabel:`Updated`});return}let i=f({description:p(e.description,`description`,`text`),title:p(e.title,`title`,`text`)});o(await c(`Updating`,async()=>t.apiSecurity.tokenValidation.configurations.edit({...i,zone_id:r,config_id:e[`config-id`]})),{successLabel:`Updated`})})};function _e(e){return e.usage(`$0 api-security token-validation configurations get <config-id>
70
70
 
71
- Returns a JWT validation configuration by ID.`).positional(`config-id`,{type:`string`,description:`Token Configuration ID`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const ve={command:`get <config-id>`,describe:`Get a token validation configuration`,builder:_e,handler:async e=>l({command:`api-security token-validation configurations get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){s({command:`cf api-security token-validation configurations get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/token_validation/config/${e[`config-id`]==null?`<config-id>`:encodeURIComponent(String(e[`config-id`]))}`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``),"config-id":String(e[`config-id`]??``)},bodyKind:`none`});return}let n=await a(e),r=await t({zone:e.zone},n,{quiet:e.quiet});e.zoneId=r,o(await c(`Loading`,async()=>n.apiSecurity.tokenValidation.configurations.get({zone_id:r,config_id:e[`config-id`]})),{successLabel:`Loaded`})})};function ye(e){return e.usage(`$0 api-security token-validation configurations list
71
+ Returns a JWT validation configuration by ID.`).positional(`config-id`,{type:`string`,description:`Token Configuration ID`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const ve={command:`get <config-id>`,describe:`Get a token validation configuration`,builder:_e,handler:async e=>l({command:`api-security token-validation configurations get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){s({command:`cf api-security token-validation configurations get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/token_validation/config/${e[`config-id`]==null?`<config-id>`:encodeURIComponent(String(e[`config-id`]))}`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``),"config-id":String(e[`config-id`]??``)},bodyKind:`none`});return}let t=await a(e),r=await n({zone:e.zone},t,{quiet:e.quiet});e.zoneId=r,o(await c(`Loading`,async()=>t.apiSecurity.tokenValidation.configurations.get({zone_id:r,config_id:e[`config-id`]})),{successLabel:`Loaded`})})};function ye(e){return e.usage(`$0 api-security token-validation configurations list
72
72
 
73
- Lists the JWT validation configurations defined for the zone.`).option(`page`,{type:`number`,description:`Page number of paginated results.`}).option(`per-page`,{type:`number`,description:`Maximum number of results per page.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const be={command:`list`,describe:`List token validation configurations`,builder:ye,handler:async e=>l({command:`api-security token-validation configurations list`,classification:{safeFlags:[`dry-run`]}},e,async()=>{let n={page:e.page,per_page:e[`per-page`]};if(e.dryRun){s({command:`cf api-security token-validation configurations list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/token_validation/config`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``)},query:n,bodyKind:`none`});return}let r=await a(e),i=await t({zone:e.zone},r,{quiet:e.quiet});e.zoneId=i,o(await c(`Loading`,async()=>r.apiSecurity.tokenValidation.configurations.list({zone_id:i,...n})),{successLabel:`Loaded`})})},xe={command:`configurations`,describe:`Operations for token-validation.configurations`,builder:e=>e.command(se).command(me).command(ge).command(ve).command(be).command(fe).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function Se(e){return e.usage(`$0 api-security token-validation rules bulk-create
73
+ Lists the JWT validation configurations defined for the zone.`).option(`page`,{type:`number`,description:`Page number of paginated results.`}).option(`per-page`,{type:`number`,description:`Maximum number of results per page.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const be={command:`list`,describe:`List token validation configurations`,builder:ye,handler:async e=>l({command:`api-security token-validation configurations list`,classification:{safeFlags:[`dry-run`]}},e,async()=>{let t={page:e.page,per_page:e[`per-page`]};if(e.dryRun){s({command:`cf api-security token-validation configurations list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/token_validation/config`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``)},query:t,bodyKind:`none`});return}let r=await a(e),i=await n({zone:e.zone},r,{quiet:e.quiet});e.zoneId=i,o(await c(`Loading`,async()=>r.apiSecurity.tokenValidation.configurations.list({zone_id:i,...t})),{successLabel:`Loaded`})})},xe={command:`configurations`,describe:`Operations for token-validation.configurations`,builder:e=>e.command(se).command(me).command(ge).command(ve).command(be).command(fe).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function Se(e){return e.usage(`$0 api-security token-validation rules bulk-create
74
74
 
75
- Creates multiple token validation rules for the zone in one request.`).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 Ce={command:`bulk-create`,describe:`Create token validation rules`,builder:Se,handler:async e=>l({command:`api-security token-validation rules bulk-create`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){s({command:`cf api-security token-validation rules bulk-create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/token_validation/rules/bulk`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``)},bodyKind:`json`,body:e.body===void 0?void 0:u(e.body)});return}let n=await a(e),r=await t({zone:e.zone},n,{quiet:e.quiet});if(e.zoneId=r,e.body){let t=u(e.body);o(await c(`Creating`,async()=>n.apiSecurity.tokenValidation.rules.bulkCreate({body:t,zone_id:r})),{successLabel:`Created`});return}if(e.body===void 0)throw Error(`--body is required for this command. Pass --body '<json>' or --body @path/to/file.json.`)})};function we(e){return e.usage(`$0 api-security token-validation rules bulk-edit
75
+ Creates multiple token validation rules for the zone in one request.`).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 Ce={command:`bulk-create`,describe:`Create token validation rules`,builder:Se,handler:async e=>l({command:`api-security token-validation rules bulk-create`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){s({command:`cf api-security token-validation rules bulk-create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/token_validation/rules/bulk`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``)},bodyKind:`json`,body:e.body===void 0?void 0:u(e.body)});return}let t=await a(e),r=await n({zone:e.zone},t,{quiet:e.quiet});if(e.zoneId=r,e.body){let n=u(e.body);o(await c(`Creating`,async()=>t.apiSecurity.tokenValidation.rules.bulkCreate({body:n,zone_id:r})),{successLabel:`Created`});return}if(e.body===void 0)throw Error(`--body is required for this command. Pass --body '<json>' or --body @path/to/file.json.`)})};function we(e){return e.usage(`$0 api-security token-validation rules bulk-edit
76
76
 
77
- Updates and reorders multiple token validation rules in one request, then returns the updated rules.`).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 Te={command:`bulk-edit`,describe:`Edit token validation rules`,builder:we,handler:async e=>l({command:`api-security token-validation rules bulk-edit`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){s({command:`cf api-security token-validation rules bulk-edit`,method:`PATCH`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/token_validation/rules/bulk`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``)},bodyKind:`json`,body:e.body===void 0?void 0:u(e.body)});return}let n=await a(e),r=await t({zone:e.zone},n,{quiet:e.quiet});if(e.zoneId=r,e.body){let t=u(e.body);o(await c(`Updating`,async()=>n.apiSecurity.tokenValidation.rules.bulkEdit({body:t,zone_id:r})),{successLabel:`Updated`});return}if(e.body===void 0)throw Error(`--body is required for this command. Pass --body '<json>' or --body @path/to/file.json.`)})};function Ee(e){return e.usage(`$0 api-security token-validation rules create
77
+ Updates and reorders multiple token validation rules in one request, then returns the updated rules.`).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 Te={command:`bulk-edit`,describe:`Edit token validation rules`,builder:we,handler:async e=>l({command:`api-security token-validation rules bulk-edit`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){s({command:`cf api-security token-validation rules bulk-edit`,method:`PATCH`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/token_validation/rules/bulk`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``)},bodyKind:`json`,body:e.body===void 0?void 0:u(e.body)});return}let t=await a(e),r=await n({zone:e.zone},t,{quiet:e.quiet});if(e.zoneId=r,e.body){let n=u(e.body);o(await c(`Updating`,async()=>t.apiSecurity.tokenValidation.rules.bulkEdit({body:n,zone_id:r})),{successLabel:`Updated`});return}if(e.body===void 0)throw Error(`--body is required for this command. Pass --body '<json>' or --body @path/to/file.json.`)})};function Ee(e){return e.usage(`$0 api-security token-validation rules create
78
78
 
79
79
  Creates a token validation rule for the zone.`).option(`action`,{type:`string`,description:"Action to take on requests that match operations included in `selector` and fail `expression`.",choices:[`log`,`block`]}).option(`description`,{type:`string`,description:"A human-readable description that gives more details than `title`."}).option(`enabled`,{type:`boolean`,description:`Toggle rule on or off.`}).option(`expression`,{type:`string`,description:`Rule expression. Requests that fail to match this expression will be subject to \`action\`.
80
80
 
81
81
  For details on expressions, see the [Cloudflare Docs](https://developers.cloudflare.com/api-shield/security/jwt-validation/).
82
- `}).option(`title`,{type:`string`,description:`A human-readable name for the rule.`}).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 De={command:`create`,describe:`Create a token validation rule`,builder:Ee,handler:async e=>l({command:`api-security token-validation rules create`,classification:{safeFlags:[`action`,`enabled`,`dry-run`]}},e,async()=>{if(e.dryRun){s({command:`cf api-security token-validation rules create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/token_validation/rules`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``)},bodyKind:`json`,body:e.body===void 0?f({action:p(e.action,`action`,`text`),description:p(e.description,`description`,`text`),enabled:e.enabled,expression:p(e.expression,`expression`,`text`),title:p(e.title,`title`,`text`)}):u(e.body)});return}let n=await a(e),r=await t({zone:e.zone},n,{quiet:e.quiet});if(e.zoneId=r,e.body){let t=u(e.body);o(await c(`Creating`,async()=>n.apiSecurity.tokenValidation.rules.create({body:t,zone_id:r})),{successLabel:`Created`});return}if(e.action===void 0&&(e.action=await h(`action`,"Action to take on requests that match operations included in `selector` and fail `expression`.",[`log`,`block`])),e.description===void 0&&(e.description=await m(`description`,"A human-readable description that gives more details than `title`.")),e.enabled===void 0)throw Error(`--enabled is required (or pass --body with this field set).`);e.expression===void 0&&(e.expression=await m(`expression`,"Rule expression. Requests that fail to match this expression will be subject to `action`. For details on expressions, see the [Cloudflare Docs](https://developers.cloudflare.com/api-shield/security/jwt-validation/). ")),e.title===void 0&&(e.title=await m(`title`,`A human-readable name for the rule.`));let i=f({action:p(e.action,`action`,`text`),description:p(e.description,`description`,`text`),enabled:e.enabled,expression:p(e.expression,`expression`,`text`),title:p(e.title,`title`,`text`)});o(await c(`Creating`,async()=>n.apiSecurity.tokenValidation.rules.create({body:i,zone_id:r})),{successLabel:`Created`})})};function Oe(e){return e.usage(`$0 api-security token-validation rules delete <rule-id>
82
+ `}).option(`title`,{type:`string`,description:`A human-readable name for the rule.`}).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 De={command:`create`,describe:`Create a token validation rule`,builder:Ee,handler:async e=>l({command:`api-security token-validation rules create`,classification:{safeFlags:[`action`,`enabled`,`dry-run`]}},e,async()=>{if(e.dryRun){s({command:`cf api-security token-validation rules create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/token_validation/rules`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``)},bodyKind:`json`,body:e.body===void 0?f({action:p(e.action,`action`,`text`),description:p(e.description,`description`,`text`),enabled:e.enabled,expression:p(e.expression,`expression`,`text`),title:p(e.title,`title`,`text`)}):u(e.body)});return}let t=await a(e),r=await n({zone:e.zone},t,{quiet:e.quiet});if(e.zoneId=r,e.body){let n=u(e.body);o(await c(`Creating`,async()=>t.apiSecurity.tokenValidation.rules.create({body:n,zone_id:r})),{successLabel:`Created`});return}if(e.action===void 0&&(e.action=await h(`action`,"Action to take on requests that match operations included in `selector` and fail `expression`.",[`log`,`block`])),e.description===void 0&&(e.description=await m(`description`,"A human-readable description that gives more details than `title`.")),e.enabled===void 0)throw Error(`--enabled is required (or pass --body with this field set).`);e.expression===void 0&&(e.expression=await m(`expression`,"Rule expression. Requests that fail to match this expression will be subject to `action`. For details on expressions, see the [Cloudflare Docs](https://developers.cloudflare.com/api-shield/security/jwt-validation/). ")),e.title===void 0&&(e.title=await m(`title`,`A human-readable name for the rule.`));let i=f({action:p(e.action,`action`,`text`),description:p(e.description,`description`,`text`),enabled:e.enabled,expression:p(e.expression,`expression`,`text`),title:p(e.title,`title`,`text`)});o(await c(`Creating`,async()=>t.apiSecurity.tokenValidation.rules.create({body:i,zone_id:r})),{successLabel:`Created`})})};function Oe(e){return e.usage(`$0 api-security token-validation rules delete <rule-id>
83
83
 
84
- Deletes a token validation rule from the zone.`).positional(`rule-id`,{type:`string`,description:`Token Validation Rule ID`,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 ke={command:`delete <rule-id>`,describe:`Delete a token validation rule`,builder:Oe,handler:async e=>l({command:`api-security token-validation rules delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{if(e.dryRun){s({command:`cf api-security token-validation rules delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/token_validation/rules/${e[`rule-id`]==null?`<rule-id>`:encodeURIComponent(String(e[`rule-id`]))}`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``),"rule-id":String(e[`rule-id`]??``)},bodyKind:`none`});return}let n=await a(e),r=await t({zone:e.zone},n,{quiet:e.quiet});if(e.zoneId=r,!await g({force:!!e.force,message:`This operation deletes the token validation rule from the zone.`})){process.stderr.write(`Aborted.
85
- `);return}o(await c(`Deleting`,async()=>n.apiSecurity.tokenValidation.rules.delete({zone_id:r,rule_id:e[`rule-id`]})),{successLabel:`Deleted`})})};function Ae(e){return e.usage(`$0 api-security token-validation rules edit <rule-id>
84
+ Deletes a token validation rule from the zone.`).positional(`rule-id`,{type:`string`,description:`Token Validation Rule ID`,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 ke={command:`delete <rule-id>`,describe:`Delete a token validation rule`,builder:Oe,handler:async e=>l({command:`api-security token-validation rules delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{if(e.dryRun){s({command:`cf api-security token-validation rules delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/token_validation/rules/${e[`rule-id`]==null?`<rule-id>`:encodeURIComponent(String(e[`rule-id`]))}`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``),"rule-id":String(e[`rule-id`]??``)},bodyKind:`none`});return}let t=await a(e),r=await n({zone:e.zone},t,{quiet:e.quiet});if(e.zoneId=r,!await g({force:!!e.force,message:`This operation deletes the token validation rule from the zone.`})){process.stderr.write(`Aborted.
85
+ `);return}o(await c(`Deleting`,async()=>t.apiSecurity.tokenValidation.rules.delete({zone_id:r,rule_id:e[`rule-id`]})),{successLabel:`Deleted`})})};function Ae(e){return e.usage(`$0 api-security token-validation rules edit <rule-id>
86
86
 
87
87
  Updates only the supplied fields on a token validation rule.`).positional(`rule-id`,{type:`string`,description:`Token Validation Rule ID`,demandOption:!0}).option(`action`,{type:`string`,description:"Action to take on requests that match operations included in `selector` and fail `expression`.",choices:[`log`,`block`]}).option(`description`,{type:`string`,description:"A human-readable description that gives more details than `title`."}).option(`enabled`,{type:`boolean`,description:`Toggle rule on or off.`}).option(`expression`,{type:`string`,description:`Rule expression. Requests that fail to match this expression will be subject to \`action\`.
88
88
 
89
89
  For details on expressions, see the [Cloudflare Docs](https://developers.cloudflare.com/api-shield/security/jwt-validation/).
90
- `}).option(`title`,{type:`string`,description:`A human-readable name for the rule.`}).option(`position-index`,{type:`number`,description:`Move rule to this position`}).option(`position-before`,{type:`string`,description:`Move rule to before rule with this ID.`}).option(`position-after`,{type:`string`,description:`Move rule to after rule with this ID.`}).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)`}).conflicts(`position-index`,[`position-before`,`position-after`]).conflicts(`position-before`,[`position-index`,`position-after`]).conflicts(`position-after`,[`position-index`,`position-before`])}const je={command:`edit <rule-id>`,describe:`Edit a token validation rule`,builder:Ae,handler:async e=>l({command:`api-security token-validation rules edit`,classification:{safeFlags:[`action`,`enabled`,`dry-run`]}},e,async()=>{if(e.dryRun){s({command:`cf api-security token-validation rules edit`,method:`PATCH`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/token_validation/rules/${e[`rule-id`]==null?`<rule-id>`:encodeURIComponent(String(e[`rule-id`]))}`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``),"rule-id":String(e[`rule-id`]??``)},bodyKind:`json`,body:e.body===void 0?f({action:p(e.action,`action`,`text`),description:p(e.description,`description`,`text`),enabled:e.enabled,expression:p(e.expression,`expression`,`text`),title:p(e.title,`title`,`text`),position:{index:e[`position-index`],before:p(e[`position-before`],`position-before`,`text`),after:p(e[`position-after`],`position-after`,`text`)}}):u(e.body)});return}let n=await a(e),r=await t({zone:e.zone},n,{quiet:e.quiet});if(e.zoneId=r,e.body){let t=u(e.body);o(await c(`Updating`,async()=>n.apiSecurity.tokenValidation.rules.edit({body:t,zone_id:r,rule_id:e[`rule-id`]})),{successLabel:`Updated`});return}let i=f({action:p(e.action,`action`,`text`),description:p(e.description,`description`,`text`),enabled:e.enabled,expression:p(e.expression,`expression`,`text`),title:p(e.title,`title`,`text`),position:{index:e[`position-index`],before:p(e[`position-before`],`position-before`,`text`),after:p(e[`position-after`],`position-after`,`text`)}});o(await c(`Updating`,async()=>n.apiSecurity.tokenValidation.rules.edit({body:i,zone_id:r,rule_id:e[`rule-id`]})),{successLabel:`Updated`})})};function Me(e){return e.usage(`$0 api-security token-validation rules get <rule-id>
90
+ `}).option(`title`,{type:`string`,description:`A human-readable name for the rule.`}).option(`position-index`,{type:`number`,description:`Move rule to this position`}).option(`position-before`,{type:`string`,description:`Move rule to before rule with this ID.`}).option(`position-after`,{type:`string`,description:`Move rule to after rule with this ID.`}).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)`}).conflicts(`position-index`,[`position-before`,`position-after`]).conflicts(`position-before`,[`position-index`,`position-after`]).conflicts(`position-after`,[`position-index`,`position-before`])}const je={command:`edit <rule-id>`,describe:`Edit a token validation rule`,builder:Ae,handler:async e=>l({command:`api-security token-validation rules edit`,classification:{safeFlags:[`action`,`enabled`,`dry-run`]}},e,async()=>{if(e.dryRun){s({command:`cf api-security token-validation rules edit`,method:`PATCH`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/token_validation/rules/${e[`rule-id`]==null?`<rule-id>`:encodeURIComponent(String(e[`rule-id`]))}`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``),"rule-id":String(e[`rule-id`]??``)},bodyKind:`json`,body:e.body===void 0?f({action:p(e.action,`action`,`text`),description:p(e.description,`description`,`text`),enabled:e.enabled,expression:p(e.expression,`expression`,`text`),title:p(e.title,`title`,`text`),position:{index:e[`position-index`],before:p(e[`position-before`],`position-before`,`text`),after:p(e[`position-after`],`position-after`,`text`)}}):u(e.body)});return}let t=await a(e),r=await n({zone:e.zone},t,{quiet:e.quiet});if(e.zoneId=r,e.body){let n=u(e.body);o(await c(`Updating`,async()=>t.apiSecurity.tokenValidation.rules.edit({body:n,zone_id:r,rule_id:e[`rule-id`]})),{successLabel:`Updated`});return}let i=f({action:p(e.action,`action`,`text`),description:p(e.description,`description`,`text`),enabled:e.enabled,expression:p(e.expression,`expression`,`text`),title:p(e.title,`title`,`text`),position:{index:e[`position-index`],before:p(e[`position-before`],`position-before`,`text`),after:p(e[`position-after`],`position-after`,`text`)}});o(await c(`Updating`,async()=>t.apiSecurity.tokenValidation.rules.edit({body:i,zone_id:r,rule_id:e[`rule-id`]})),{successLabel:`Updated`})})};function Me(e){return e.usage(`$0 api-security token-validation rules get <rule-id>
91
91
 
92
- Returns a token validation rule by ID.`).positional(`rule-id`,{type:`string`,description:`Token Validation Rule ID`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const Ne={command:`get <rule-id>`,describe:`Get a token validation rule`,builder:Me,handler:async e=>l({command:`api-security token-validation rules get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){s({command:`cf api-security token-validation rules get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/token_validation/rules/${e[`rule-id`]==null?`<rule-id>`:encodeURIComponent(String(e[`rule-id`]))}`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``),"rule-id":String(e[`rule-id`]??``)},bodyKind:`none`});return}let n=await a(e),r=await t({zone:e.zone},n,{quiet:e.quiet});e.zoneId=r,o(await c(`Loading`,async()=>n.apiSecurity.tokenValidation.rules.get({zone_id:r,rule_id:e[`rule-id`]})),{successLabel:`Loaded`})})};function Pe(e){return e.usage(`$0 api-security token-validation rules list
92
+ Returns a token validation rule by ID.`).positional(`rule-id`,{type:`string`,description:`Token Validation Rule ID`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const Ne={command:`get <rule-id>`,describe:`Get a token validation rule`,builder:Me,handler:async e=>l({command:`api-security token-validation rules get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){s({command:`cf api-security token-validation rules get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/token_validation/rules/${e[`rule-id`]==null?`<rule-id>`:encodeURIComponent(String(e[`rule-id`]))}`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``),"rule-id":String(e[`rule-id`]??``)},bodyKind:`none`});return}let t=await a(e),r=await n({zone:e.zone},t,{quiet:e.quiet});e.zoneId=r,o(await c(`Loading`,async()=>t.apiSecurity.tokenValidation.rules.get({zone_id:r,rule_id:e[`rule-id`]})),{successLabel:`Loaded`})})};function Pe(e){return e.usage(`$0 api-security token-validation rules list
93
93
 
94
- Lists token validation rules for the zone, with filters for configuration, action, state, ID, and host.`).option(`per-page`,{type:`number`,description:`Maximum number of results per page.`}).option(`page`,{type:`number`,description:`Page number of paginated results.`}).option(`token-configuration`,{type:`string`,description:`Select rules using any of these token configurations.`}).option(`action`,{type:`string`,description:"Action to take on requests that match operations included in `selector` and fail `expression`.",choices:[`log`,`block`]}).option(`enabled`,{type:`boolean`,description:`Toggle rule on or off.`}).option(`id`,{type:`string`,description:`Select rules with these IDs.`}).option(`rule-id`,{type:`string`,description:`Select rules with these IDs.`}).option(`host`,{type:`string`,description:"Select rules with this host in `include`."}).option(`hostname`,{type:`string`,description:"Select rules with this host in `include`."}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const Fe={command:`list`,describe:`List token validation rules`,builder:_(Pe),handler:async e=>l({command:`api-security token-validation rules list`,classification:{safeFlags:[`action`,`enabled`,`dry-run`]}},e,async()=>{let n={per_page:e[`per-page`],page:e.page,token_configuration:e[`token-configuration`],action:e.action,enabled:e.enabled,id:e.id,rule_id:e[`rule-id`],host:e.host,hostname:e.hostname};if(e.dryRun){s({command:`cf api-security token-validation rules list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/token_validation/rules`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``)},query:n,bodyKind:`none`});return}let r=await a(e),i=await t({zone:e.zone},r,{quiet:e.quiet});e.zoneId=i,o(await c(`Loading`,async()=>r.apiSecurity.tokenValidation.rules.list({zone_id:i,...n})),{successLabel:`Loaded`})})},Ie={command:`rules`,describe:`Operations for token-validation.rules`,builder:e=>e.command(Ce).command(Te).command(De).command(ke).command(je).command(Ne).command(Fe).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},Le={command:`token-validation`,describe:`Operations for token-validation`,builder:e=>e.command(xe).command(Ie).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function Re(e){return e.usage(`$0 api-security vulnerability-scanner credential-sets create
94
+ Lists token validation rules for the zone, with filters for configuration, action, state, ID, and host.`).option(`per-page`,{type:`number`,description:`Maximum number of results per page.`}).option(`page`,{type:`number`,description:`Page number of paginated results.`}).option(`token-configuration`,{type:`string`,description:`Select rules using any of these token configurations.`}).option(`action`,{type:`string`,description:"Action to take on requests that match operations included in `selector` and fail `expression`.",choices:[`log`,`block`]}).option(`enabled`,{type:`boolean`,description:`Toggle rule on or off.`}).option(`id`,{type:`string`,description:`Select rules with these IDs.`}).option(`rule-id`,{type:`string`,description:`Select rules with these IDs.`}).option(`host`,{type:`string`,description:"Select rules with this host in `include`."}).option(`hostname`,{type:`string`,description:"Select rules with this host in `include`."}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const Fe={command:`list`,describe:`List token validation rules`,builder:_(Pe),handler:async e=>l({command:`api-security token-validation rules list`,classification:{safeFlags:[`action`,`enabled`,`dry-run`]}},e,async()=>{let t={per_page:e[`per-page`],page:e.page,token_configuration:e[`token-configuration`],action:e.action,enabled:e.enabled,id:e.id,rule_id:e[`rule-id`],host:e.host,hostname:e.hostname};if(e.dryRun){s({command:`cf api-security token-validation rules list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/token_validation/rules`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``)},query:t,bodyKind:`none`});return}let r=await a(e),i=await n({zone:e.zone},r,{quiet:e.quiet});e.zoneId=i,o(await c(`Loading`,async()=>r.apiSecurity.tokenValidation.rules.list({zone_id:i,...t})),{successLabel:`Loaded`})})},Ie={command:`rules`,describe:`Operations for token-validation.rules`,builder:e=>e.command(Ce).command(Te).command(De).command(ke).command(je).command(Ne).command(Fe).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},Le={command:`token-validation`,describe:`Operations for token-validation`,builder:e=>e.command(xe).command(Ie).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function Re(e){return e.usage(`$0 api-security vulnerability-scanner credential-sets create
95
95
 
96
- Creates a new credential set.`).option(`name`,{type:`string`,description:`Human-readable name.`}).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 ze={command:`create`,describe:`Create credential set`,builder:Re,handler:async t=>l({command:`api-security vulnerability-scanner credential-sets create`,classification:{safeFlags:[`dry-run`]}},t,async()=>{if(t.dryRun){s({command:`cf api-security vulnerability-scanner credential-sets create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${await r()??`<account-id>`}/vuln_scanner/credential_sets`,pathParams:{},bodyKind:`json`,body:t.body===void 0?f({name:p(t.name,`name`,`text`)}):u(t.body)});return}let i=await a(t),l=t.local?e:await n();if(t.accountId=l,t.body){let e=u(t.body);o(await c(`Creating`,async()=>i.apiSecurity.vulnerabilityScanner.credentialSets.create({...e,account_id:l})),{successLabel:`Created`});return}t.name===void 0&&(t.name=await m(`name`,`Human-readable name.`));let d=f({name:p(t.name,`name`,`text`)});o(await c(`Creating`,async()=>i.apiSecurity.vulnerabilityScanner.credentialSets.create({...d,account_id:l})),{successLabel:`Created`})})};function Be(e){return e.usage(`$0 api-security vulnerability-scanner credential-sets credentials create <credential-set-id>
96
+ Creates a new credential set.`).option(`name`,{type:`string`,description:`Human-readable name.`}).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 ze={command:`create`,describe:`Create credential set`,builder:Re,handler:async n=>l({command:`api-security vulnerability-scanner credential-sets create`,classification:{safeFlags:[`dry-run`]}},n,async()=>{if(n.dryRun){s({command:`cf api-security vulnerability-scanner credential-sets create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/vuln_scanner/credential_sets`,pathParams:{},bodyKind:`json`,body:n.body===void 0?f({name:p(n.name,`name`,`text`)}):u(n.body)});return}let i=await a(n),l=n.local?e:await r();if(n.accountId=l,n.body){let e=u(n.body);o(await c(`Creating`,async()=>i.apiSecurity.vulnerabilityScanner.credentialSets.create({...e,account_id:l})),{successLabel:`Created`});return}n.name===void 0&&(n.name=await m(`name`,`Human-readable name.`));let d=f({name:p(n.name,`name`,`text`)});o(await c(`Creating`,async()=>i.apiSecurity.vulnerabilityScanner.credentialSets.create({...d,account_id:l})),{successLabel:`Created`})})};function Be(e){return e.usage(`$0 api-security vulnerability-scanner credential-sets credentials create <credential-set-id>
97
97
 
98
98
  Creates a new credential within a credential set.`).positional(`credential-set-id`,{type:`string`,description:`Credential set identifier.`,demandOption:!0}).option(`location`,{type:`string`,description:`Where the credential is attached in outgoing requests.`,choices:[`header`,`cookie`]}).option(`location-name`,{type:`string`,description:`Name of the header or cookie where the credential is attached.
99
99
  `}).option(`name`,{type:`string`,description:`Human-readable name.`}).option(`value`,{type:`string`,description:`The credential value (e.g. API key, session token). Write-only.
100
100
  Never returned in responses.
101
- `}).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 Ve={command:`create <credential-set-id>`,describe:`Create credential`,builder:Be,handler:async t=>l({command:`api-security vulnerability-scanner credential-sets credentials create`,classification:{safeFlags:[`location`,`dry-run`]}},t,async()=>{if(t.dryRun){s({command:`cf api-security vulnerability-scanner credential-sets credentials create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${await r()??`<account-id>`}/vuln_scanner/credential_sets/${t[`credential-set-id`]==null?`<credential-set-id>`:encodeURIComponent(String(t[`credential-set-id`]))}/credentials`,pathParams:{"credential-set-id":String(t[`credential-set-id`]??``)},bodyKind:`json`,body:t.body===void 0?f({location:p(t.location,`location`,`text`),location_name:p(t[`location-name`],`location-name`,`text`),name:p(t.name,`name`,`text`),value:p(t.value,`value`,`text`)}):u(t.body)});return}let i=await a(t),l=t.local?e:await n();if(t.accountId=l,t.body){let e=u(t.body);o(await c(`Creating`,async()=>i.apiSecurity.vulnerabilityScanner.credentialSets.credentials.create({...e,account_id:l,credential_set_id:t[`credential-set-id`]})),{successLabel:`Created`});return}t.location===void 0&&(t.location=await h(`location`,`Where the credential is attached in outgoing requests.`,[`header`,`cookie`])),t[`location-name`]===void 0&&(t[`location-name`]=await m(`location-name`,`Name of the header or cookie where the credential is attached. `)),t.name===void 0&&(t.name=await m(`name`,`Human-readable name.`)),t.value===void 0&&(t.value=await m(`value`,`The credential value (e.g. API key, session token). Write-only. Never returned in responses. `,{kind:`secret`}));let d=f({location:p(t.location,`location`,`text`),location_name:p(t[`location-name`],`location-name`,`text`),name:p(t.name,`name`,`text`),value:p(t.value,`value`,`text`)});o(await c(`Creating`,async()=>i.apiSecurity.vulnerabilityScanner.credentialSets.credentials.create({...d,account_id:l,credential_set_id:t[`credential-set-id`]})),{successLabel:`Created`})})};function He(e){return e.usage(`$0 api-security vulnerability-scanner credential-sets credentials delete <credential-id>
101
+ `}).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 Ve={command:`create <credential-set-id>`,describe:`Create credential`,builder:Be,handler:async n=>l({command:`api-security vulnerability-scanner credential-sets credentials create`,classification:{safeFlags:[`location`,`dry-run`]}},n,async()=>{if(n.dryRun){s({command:`cf api-security vulnerability-scanner credential-sets credentials create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/vuln_scanner/credential_sets/${n[`credential-set-id`]==null?`<credential-set-id>`:encodeURIComponent(String(n[`credential-set-id`]))}/credentials`,pathParams:{"credential-set-id":String(n[`credential-set-id`]??``)},bodyKind:`json`,body:n.body===void 0?f({location:p(n.location,`location`,`text`),location_name:p(n[`location-name`],`location-name`,`text`),name:p(n.name,`name`,`text`),value:p(n.value,`value`,`text`)}):u(n.body)});return}let i=await a(n),l=n.local?e:await r();if(n.accountId=l,n.body){let e=u(n.body);o(await c(`Creating`,async()=>i.apiSecurity.vulnerabilityScanner.credentialSets.credentials.create({...e,account_id:l,credential_set_id:n[`credential-set-id`]})),{successLabel:`Created`});return}n.location===void 0&&(n.location=await h(`location`,`Where the credential is attached in outgoing requests.`,[`header`,`cookie`])),n[`location-name`]===void 0&&(n[`location-name`]=await m(`location-name`,`Name of the header or cookie where the credential is attached. `)),n.name===void 0&&(n.name=await m(`name`,`Human-readable name.`)),n.value===void 0&&(n.value=await m(`value`,`The credential value (e.g. API key, session token). Write-only. Never returned in responses. `,{kind:`secret`}));let d=f({location:p(n.location,`location`,`text`),location_name:p(n[`location-name`],`location-name`,`text`),name:p(n.name,`name`,`text`),value:p(n.value,`value`,`text`)});o(await c(`Creating`,async()=>i.apiSecurity.vulnerabilityScanner.credentialSets.credentials.create({...d,account_id:l,credential_set_id:n[`credential-set-id`]})),{successLabel:`Created`})})};function He(e){return e.usage(`$0 api-security vulnerability-scanner credential-sets credentials delete <credential-id>
102
102
 
103
- Deletes a credential.`).positional(`credential-id`,{type:`string`,description:`Credential identifier.`,demandOption:!0}).option(`credential-set-id`,{type:`string`,description:`Credential set 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 Ue={command:`delete <credential-id>`,describe:`Delete credential`,builder:He,handler:async t=>l({command:`api-security vulnerability-scanner credential-sets credentials delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},t,async()=>{if(t.dryRun){s({command:`cf api-security vulnerability-scanner credential-sets credentials delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${await r()??`<account-id>`}/vuln_scanner/credential_sets/${t[`credential-set-id`]==null?`<credential-set-id>`:encodeURIComponent(String(t[`credential-set-id`]))}/credentials/${t[`credential-id`]==null?`<credential-id>`:encodeURIComponent(String(t[`credential-id`]))}`,pathParams:{"credential-set-id":String(t[`credential-set-id`]??``),"credential-id":String(t[`credential-id`]??``)},bodyKind:`none`});return}let i=await a(t),l=t.local?e:await n();if(t.accountId=l,!await g({force:!!t.force,message:`This operation permanently deletes the credential from the credential set.`})){process.stderr.write(`Aborted.
104
- `);return}o(await c(`Deleting`,async()=>i.apiSecurity.vulnerabilityScanner.credentialSets.credentials.delete({account_id:l,credential_set_id:t[`credential-set-id`],credential_id:t[`credential-id`]})),{successLabel:`Deleted`})})};function We(e){return e.usage(`$0 api-security vulnerability-scanner credential-sets credentials edit <credential-id>
103
+ Deletes a credential.`).positional(`credential-id`,{type:`string`,description:`Credential identifier.`,demandOption:!0}).option(`credential-set-id`,{type:`string`,description:`Credential set 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 Ue={command:`delete <credential-id>`,describe:`Delete credential`,builder:He,handler:async n=>l({command:`api-security vulnerability-scanner credential-sets credentials delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},n,async()=>{if(n.dryRun){s({command:`cf api-security vulnerability-scanner credential-sets credentials delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/vuln_scanner/credential_sets/${n[`credential-set-id`]==null?`<credential-set-id>`:encodeURIComponent(String(n[`credential-set-id`]))}/credentials/${n[`credential-id`]==null?`<credential-id>`:encodeURIComponent(String(n[`credential-id`]))}`,pathParams:{"credential-set-id":String(n[`credential-set-id`]??``),"credential-id":String(n[`credential-id`]??``)},bodyKind:`none`});return}let i=await a(n),l=n.local?e:await r();if(n.accountId=l,!await g({force:!!n.force,message:`This operation permanently deletes the credential from the credential set.`})){process.stderr.write(`Aborted.
104
+ `);return}o(await c(`Deleting`,async()=>i.apiSecurity.vulnerabilityScanner.credentialSets.credentials.delete({account_id:l,credential_set_id:n[`credential-set-id`],credential_id:n[`credential-id`]})),{successLabel:`Deleted`})})};function We(e){return e.usage(`$0 api-security vulnerability-scanner credential-sets credentials edit <credential-id>
105
105
 
106
106
  Updates a credential with only the provided fields; omitted fields remain unchanged.`).positional(`credential-id`,{type:`string`,description:`Credential identifier.`,demandOption:!0}).option(`credential-set-id`,{type:`string`,description:`Credential set identifier.`,demandOption:!0}).option(`location`,{type:`string`,description:`Where the credential is attached in outgoing requests.`,choices:[`header`,`cookie`]}).option(`location-name`,{type:`string`,description:`Name of the header or cookie where the credential is attached.
107
107
  `}).option(`name`,{type:`string`,description:`Human-readable name.`}).option(`value`,{type:`string`,description:`The credential value. Write-only. Never returned in responses.
108
- `}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Applies a partial update. Only the provided fields change; omitted fields remain unchanged.`})}const Ge={command:`edit <credential-id>`,describe:`Edit credential`,builder:We,handler:async t=>l({command:`api-security vulnerability-scanner credential-sets credentials edit`,classification:{safeFlags:[`location`,`dry-run`]}},t,async()=>{if(t.dryRun){s({command:`cf api-security vulnerability-scanner credential-sets credentials edit`,method:`PATCH`,url:`https://api.cloudflare.com/client/v4/accounts/${await r()??`<account-id>`}/vuln_scanner/credential_sets/${t[`credential-set-id`]==null?`<credential-set-id>`:encodeURIComponent(String(t[`credential-set-id`]))}/credentials/${t[`credential-id`]==null?`<credential-id>`:encodeURIComponent(String(t[`credential-id`]))}`,pathParams:{"credential-set-id":String(t[`credential-set-id`]??``),"credential-id":String(t[`credential-id`]??``)},bodyKind:`json`,body:t.body===void 0?f({location:p(t.location,`location`,`text`),location_name:p(t[`location-name`],`location-name`,`text`),name:p(t.name,`name`,`text`),value:p(t.value,`value`,`text`)}):u(t.body)});return}let i=await a(t),l=t.local?e:await n();if(t.accountId=l,t.body){let e=u(t.body);o(await c(`Updating`,async()=>i.apiSecurity.vulnerabilityScanner.credentialSets.credentials.edit({...e,account_id:l,credential_set_id:t[`credential-set-id`],credential_id:t[`credential-id`]})),{successLabel:`Updated`});return}let d=f({location:p(t.location,`location`,`text`),location_name:p(t[`location-name`],`location-name`,`text`),name:p(t.name,`name`,`text`),value:p(t.value,`value`,`text`)});o(await c(`Updating`,async()=>i.apiSecurity.vulnerabilityScanner.credentialSets.credentials.edit({...d,account_id:l,credential_set_id:t[`credential-set-id`],credential_id:t[`credential-id`]})),{successLabel:`Updated`})})};function Ke(e){return e.usage(`$0 api-security vulnerability-scanner credential-sets credentials get <credential-id>
108
+ `}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Applies a partial update. Only the provided fields change; omitted fields remain unchanged.`})}const Ge={command:`edit <credential-id>`,describe:`Edit credential`,builder:We,handler:async n=>l({command:`api-security vulnerability-scanner credential-sets credentials edit`,classification:{safeFlags:[`location`,`dry-run`]}},n,async()=>{if(n.dryRun){s({command:`cf api-security vulnerability-scanner credential-sets credentials edit`,method:`PATCH`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/vuln_scanner/credential_sets/${n[`credential-set-id`]==null?`<credential-set-id>`:encodeURIComponent(String(n[`credential-set-id`]))}/credentials/${n[`credential-id`]==null?`<credential-id>`:encodeURIComponent(String(n[`credential-id`]))}`,pathParams:{"credential-set-id":String(n[`credential-set-id`]??``),"credential-id":String(n[`credential-id`]??``)},bodyKind:`json`,body:n.body===void 0?f({location:p(n.location,`location`,`text`),location_name:p(n[`location-name`],`location-name`,`text`),name:p(n.name,`name`,`text`),value:p(n.value,`value`,`text`)}):u(n.body)});return}let i=await a(n),l=n.local?e:await r();if(n.accountId=l,n.body){let e=u(n.body);o(await c(`Updating`,async()=>i.apiSecurity.vulnerabilityScanner.credentialSets.credentials.edit({...e,account_id:l,credential_set_id:n[`credential-set-id`],credential_id:n[`credential-id`]})),{successLabel:`Updated`});return}let d=f({location:p(n.location,`location`,`text`),location_name:p(n[`location-name`],`location-name`,`text`),name:p(n.name,`name`,`text`),value:p(n.value,`value`,`text`)});o(await c(`Updating`,async()=>i.apiSecurity.vulnerabilityScanner.credentialSets.credentials.edit({...d,account_id:l,credential_set_id:n[`credential-set-id`],credential_id:n[`credential-id`]})),{successLabel:`Updated`})})};function Ke(e){return e.usage(`$0 api-security vulnerability-scanner credential-sets credentials get <credential-id>
109
109
 
110
- Returns a single credential by ID.`).positional(`credential-id`,{type:`string`,description:`Credential identifier.`,demandOption:!0}).option(`credential-set-id`,{type:`string`,description:`Credential set identifier.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const qe={command:`get <credential-id>`,describe:`Get credential`,builder:Ke,handler:async t=>l({command:`api-security vulnerability-scanner credential-sets credentials get`,classification:{safeFlags:[`dry-run`]}},t,async()=>{if(t.dryRun){s({command:`cf api-security vulnerability-scanner credential-sets credentials get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await r()??`<account-id>`}/vuln_scanner/credential_sets/${t[`credential-set-id`]==null?`<credential-set-id>`:encodeURIComponent(String(t[`credential-set-id`]))}/credentials/${t[`credential-id`]==null?`<credential-id>`:encodeURIComponent(String(t[`credential-id`]))}`,pathParams:{"credential-set-id":String(t[`credential-set-id`]??``),"credential-id":String(t[`credential-id`]??``)},bodyKind:`none`});return}let i=await a(t),l=t.local?e:await n();t.accountId=l,o(await c(`Loading`,async()=>i.apiSecurity.vulnerabilityScanner.credentialSets.credentials.get({account_id:l,credential_set_id:t[`credential-set-id`],credential_id:t[`credential-id`]})),{successLabel:`Loaded`})})};function Je(e){return e.usage(`$0 api-security vulnerability-scanner credential-sets credentials list
110
+ Returns a single credential by ID.`).positional(`credential-id`,{type:`string`,description:`Credential identifier.`,demandOption:!0}).option(`credential-set-id`,{type:`string`,description:`Credential set identifier.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const qe={command:`get <credential-id>`,describe:`Get credential`,builder:Ke,handler:async n=>l({command:`api-security vulnerability-scanner credential-sets credentials get`,classification:{safeFlags:[`dry-run`]}},n,async()=>{if(n.dryRun){s({command:`cf api-security vulnerability-scanner credential-sets credentials get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/vuln_scanner/credential_sets/${n[`credential-set-id`]==null?`<credential-set-id>`:encodeURIComponent(String(n[`credential-set-id`]))}/credentials/${n[`credential-id`]==null?`<credential-id>`:encodeURIComponent(String(n[`credential-id`]))}`,pathParams:{"credential-set-id":String(n[`credential-set-id`]??``),"credential-id":String(n[`credential-id`]??``)},bodyKind:`none`});return}let i=await a(n),l=n.local?e:await r();n.accountId=l,o(await c(`Loading`,async()=>i.apiSecurity.vulnerabilityScanner.credentialSets.credentials.get({account_id:l,credential_set_id:n[`credential-set-id`],credential_id:n[`credential-id`]})),{successLabel:`Loaded`})})};function Je(e){return e.usage(`$0 api-security vulnerability-scanner credential-sets credentials list
111
111
 
112
- Returns all credentials within a credential set.`).option(`credential-set-id`,{type:`string`,description:`Credential set identifier.`,demandOption:!0}).option(`page`,{type:`number`,description:`Page number of paginated results.`}).option(`per-page`,{type:`number`,description:`Number of results per page.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const Ye={command:`list`,describe:`List credentials`,builder:Je,handler:async t=>l({command:`api-security vulnerability-scanner credential-sets credentials list`,classification:{safeFlags:[`dry-run`]}},t,async()=>{let i={page:t.page,per_page:t[`per-page`]};if(t.dryRun){s({command:`cf api-security vulnerability-scanner credential-sets credentials list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await r()??`<account-id>`}/vuln_scanner/credential_sets/${t[`credential-set-id`]==null?`<credential-set-id>`:encodeURIComponent(String(t[`credential-set-id`]))}/credentials`,pathParams:{"credential-set-id":String(t[`credential-set-id`]??``)},query:i,bodyKind:`none`});return}let l=await a(t),u=t.local?e:await n();t.accountId=u,o(await c(`Loading`,async()=>l.apiSecurity.vulnerabilityScanner.credentialSets.credentials.list({account_id:u,credential_set_id:t[`credential-set-id`],...i})),{successLabel:`Loaded`})})};function Xe(e){return e.usage(`$0 api-security vulnerability-scanner credential-sets credentials update <credential-id>
112
+ Returns all credentials within a credential set.`).option(`credential-set-id`,{type:`string`,description:`Credential set identifier.`,demandOption:!0}).option(`page`,{type:`number`,description:`Page number of paginated results.`}).option(`per-page`,{type:`number`,description:`Number of results per page.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const Ye={command:`list`,describe:`List credentials`,builder:Je,handler:async n=>l({command:`api-security vulnerability-scanner credential-sets credentials list`,classification:{safeFlags:[`dry-run`]}},n,async()=>{let i={page:n.page,per_page:n[`per-page`]};if(n.dryRun){s({command:`cf api-security vulnerability-scanner credential-sets credentials list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/vuln_scanner/credential_sets/${n[`credential-set-id`]==null?`<credential-set-id>`:encodeURIComponent(String(n[`credential-set-id`]))}/credentials`,pathParams:{"credential-set-id":String(n[`credential-set-id`]??``)},query:i,bodyKind:`none`});return}let l=await a(n),u=n.local?e:await r();n.accountId=u,o(await c(`Loading`,async()=>l.apiSecurity.vulnerabilityScanner.credentialSets.credentials.list({account_id:u,credential_set_id:n[`credential-set-id`],...i})),{successLabel:`Loaded`})})};function Xe(e){return e.usage(`$0 api-security vulnerability-scanner credential-sets credentials update <credential-id>
113
113
 
114
114
  Replaces a credential. All fields must be provided.`).positional(`credential-id`,{type:`string`,description:`Credential identifier.`,demandOption:!0}).option(`credential-set-id`,{type:`string`,description:`Credential set identifier.`,demandOption:!0}).option(`location`,{type:`string`,description:`Where the credential is attached in outgoing requests.`,choices:[`header`,`cookie`]}).option(`location-name`,{type:`string`,description:`Name of the header or cookie where the credential is attached.
115
115
  `}).option(`name`,{type:`string`,description:`Human-readable name.`}).option(`value`,{type:`string`,description:`The credential value. Write-only. Never returned in responses.
116
- `}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Full replacement. Provide all fields.`})}const Ze={command:`update <credential-id>`,describe:`Update credential`,builder:Xe,handler:async t=>l({command:`api-security vulnerability-scanner credential-sets credentials update`,classification:{safeFlags:[`location`,`dry-run`]}},t,async()=>{if(t.dryRun){s({command:`cf api-security vulnerability-scanner credential-sets credentials update`,method:`PUT`,url:`https://api.cloudflare.com/client/v4/accounts/${await r()??`<account-id>`}/vuln_scanner/credential_sets/${t[`credential-set-id`]==null?`<credential-set-id>`:encodeURIComponent(String(t[`credential-set-id`]))}/credentials/${t[`credential-id`]==null?`<credential-id>`:encodeURIComponent(String(t[`credential-id`]))}`,pathParams:{"credential-set-id":String(t[`credential-set-id`]??``),"credential-id":String(t[`credential-id`]??``)},bodyKind:`json`,body:t.body===void 0?f({location:p(t.location,`location`,`text`),location_name:p(t[`location-name`],`location-name`,`text`),name:p(t.name,`name`,`text`),value:p(t.value,`value`,`text`)}):u(t.body)});return}let i=await a(t),l=t.local?e:await n();if(t.accountId=l,t.body){let e=u(t.body);o(await c(`Updating`,async()=>i.apiSecurity.vulnerabilityScanner.credentialSets.credentials.update({...e,account_id:l,credential_set_id:t[`credential-set-id`],credential_id:t[`credential-id`]})),{successLabel:`Updated`});return}t.location===void 0&&(t.location=await h(`location`,`Where the credential is attached in outgoing requests.`,[`header`,`cookie`])),t[`location-name`]===void 0&&(t[`location-name`]=await m(`location-name`,`Name of the header or cookie where the credential is attached. `)),t.name===void 0&&(t.name=await m(`name`,`Human-readable name.`)),t.value===void 0&&(t.value=await m(`value`,`The credential value. Write-only. Never returned in responses. `,{kind:`secret`}));let d=f({location:p(t.location,`location`,`text`),location_name:p(t[`location-name`],`location-name`,`text`),name:p(t.name,`name`,`text`),value:p(t.value,`value`,`text`)});o(await c(`Updating`,async()=>i.apiSecurity.vulnerabilityScanner.credentialSets.credentials.update({...d,account_id:l,credential_set_id:t[`credential-set-id`],credential_id:t[`credential-id`]})),{successLabel:`Updated`})})},Qe={command:`credentials`,describe:`Operations for vulnerability-scanner.credential-sets.credentials`,builder:e=>e.command(Ve).command(Ue).command(Ge).command(qe).command(Ye).command(Ze).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function $e(e){return e.usage(`$0 api-security vulnerability-scanner credential-sets delete <credential-set-id>
116
+ `}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Full replacement. Provide all fields.`})}const Ze={command:`update <credential-id>`,describe:`Update credential`,builder:Xe,handler:async n=>l({command:`api-security vulnerability-scanner credential-sets credentials update`,classification:{safeFlags:[`location`,`dry-run`]}},n,async()=>{if(n.dryRun){s({command:`cf api-security vulnerability-scanner credential-sets credentials update`,method:`PUT`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/vuln_scanner/credential_sets/${n[`credential-set-id`]==null?`<credential-set-id>`:encodeURIComponent(String(n[`credential-set-id`]))}/credentials/${n[`credential-id`]==null?`<credential-id>`:encodeURIComponent(String(n[`credential-id`]))}`,pathParams:{"credential-set-id":String(n[`credential-set-id`]??``),"credential-id":String(n[`credential-id`]??``)},bodyKind:`json`,body:n.body===void 0?f({location:p(n.location,`location`,`text`),location_name:p(n[`location-name`],`location-name`,`text`),name:p(n.name,`name`,`text`),value:p(n.value,`value`,`text`)}):u(n.body)});return}let i=await a(n),l=n.local?e:await r();if(n.accountId=l,n.body){let e=u(n.body);o(await c(`Updating`,async()=>i.apiSecurity.vulnerabilityScanner.credentialSets.credentials.update({...e,account_id:l,credential_set_id:n[`credential-set-id`],credential_id:n[`credential-id`]})),{successLabel:`Updated`});return}n.location===void 0&&(n.location=await h(`location`,`Where the credential is attached in outgoing requests.`,[`header`,`cookie`])),n[`location-name`]===void 0&&(n[`location-name`]=await m(`location-name`,`Name of the header or cookie where the credential is attached. `)),n.name===void 0&&(n.name=await m(`name`,`Human-readable name.`)),n.value===void 0&&(n.value=await m(`value`,`The credential value. Write-only. Never returned in responses. `,{kind:`secret`}));let d=f({location:p(n.location,`location`,`text`),location_name:p(n[`location-name`],`location-name`,`text`),name:p(n.name,`name`,`text`),value:p(n.value,`value`,`text`)});o(await c(`Updating`,async()=>i.apiSecurity.vulnerabilityScanner.credentialSets.credentials.update({...d,account_id:l,credential_set_id:n[`credential-set-id`],credential_id:n[`credential-id`]})),{successLabel:`Updated`})})},Qe={command:`credentials`,describe:`Operations for vulnerability-scanner.credential-sets.credentials`,builder:e=>e.command(Ve).command(Ue).command(Ge).command(qe).command(Ye).command(Ze).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function $e(e){return e.usage(`$0 api-security vulnerability-scanner credential-sets delete <credential-set-id>
117
117
 
118
- Deletes a credential set and all of its credentials.`).positional(`credential-set-id`,{type:`string`,description:`Credential set 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 et={command:`delete <credential-set-id>`,describe:`Delete credential set`,builder:$e,handler:async t=>l({command:`api-security vulnerability-scanner credential-sets delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},t,async()=>{if(t.dryRun){s({command:`cf api-security vulnerability-scanner credential-sets delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${await r()??`<account-id>`}/vuln_scanner/credential_sets/${t[`credential-set-id`]==null?`<credential-set-id>`:encodeURIComponent(String(t[`credential-set-id`]))}`,pathParams:{"credential-set-id":String(t[`credential-set-id`]??``)},bodyKind:`none`});return}let i=await a(t),l=t.local?e:await n();if(t.accountId=l,!await g({force:!!t.force,message:`This operation permanently deletes the credential set and every credential it contains.`})){process.stderr.write(`Aborted.
119
- `);return}o(await c(`Deleting`,async()=>i.apiSecurity.vulnerabilityScanner.credentialSets.delete({account_id:l,credential_set_id:t[`credential-set-id`]})),{successLabel:`Deleted`})})};function tt(e){return e.usage(`$0 api-security vulnerability-scanner credential-sets edit <credential-set-id>
118
+ Deletes a credential set and all of its credentials.`).positional(`credential-set-id`,{type:`string`,description:`Credential set 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 et={command:`delete <credential-set-id>`,describe:`Delete credential set`,builder:$e,handler:async n=>l({command:`api-security vulnerability-scanner credential-sets delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},n,async()=>{if(n.dryRun){s({command:`cf api-security vulnerability-scanner credential-sets delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/vuln_scanner/credential_sets/${n[`credential-set-id`]==null?`<credential-set-id>`:encodeURIComponent(String(n[`credential-set-id`]))}`,pathParams:{"credential-set-id":String(n[`credential-set-id`]??``)},bodyKind:`none`});return}let i=await a(n),l=n.local?e:await r();if(n.accountId=l,!await g({force:!!n.force,message:`This operation permanently deletes the credential set and every credential it contains.`})){process.stderr.write(`Aborted.
119
+ `);return}o(await c(`Deleting`,async()=>i.apiSecurity.vulnerabilityScanner.credentialSets.delete({account_id:l,credential_set_id:n[`credential-set-id`]})),{successLabel:`Deleted`})})};function tt(e){return e.usage(`$0 api-security vulnerability-scanner credential-sets edit <credential-set-id>
120
120
 
121
- Updates a credential set with only the provided fields; omitted fields remain unchanged.`).positional(`credential-set-id`,{type:`string`,description:`Credential set identifier.`,demandOption:!0}).option(`name`,{type:`string`,description:`Human-readable name.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Applies a partial update. Only the provided fields change; omitted fields remain unchanged.`})}const nt={command:`edit <credential-set-id>`,describe:`Edit credential set`,builder:tt,handler:async t=>l({command:`api-security vulnerability-scanner credential-sets edit`,classification:{safeFlags:[`dry-run`]}},t,async()=>{if(t.dryRun){s({command:`cf api-security vulnerability-scanner credential-sets edit`,method:`PATCH`,url:`https://api.cloudflare.com/client/v4/accounts/${await r()??`<account-id>`}/vuln_scanner/credential_sets/${t[`credential-set-id`]==null?`<credential-set-id>`:encodeURIComponent(String(t[`credential-set-id`]))}`,pathParams:{"credential-set-id":String(t[`credential-set-id`]??``)},bodyKind:`json`,body:t.body===void 0?f({name:p(t.name,`name`,`text`)}):u(t.body)});return}let i=await a(t),l=t.local?e:await n();if(t.accountId=l,t.body){let e=u(t.body);o(await c(`Updating`,async()=>i.apiSecurity.vulnerabilityScanner.credentialSets.edit({...e,account_id:l,credential_set_id:t[`credential-set-id`]})),{successLabel:`Updated`});return}let d=f({name:p(t.name,`name`,`text`)});o(await c(`Updating`,async()=>i.apiSecurity.vulnerabilityScanner.credentialSets.edit({...d,account_id:l,credential_set_id:t[`credential-set-id`]})),{successLabel:`Updated`})})};function rt(e){return e.usage(`$0 api-security vulnerability-scanner credential-sets get <credential-set-id>
121
+ Updates a credential set with only the provided fields; omitted fields remain unchanged.`).positional(`credential-set-id`,{type:`string`,description:`Credential set identifier.`,demandOption:!0}).option(`name`,{type:`string`,description:`Human-readable name.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Applies a partial update. Only the provided fields change; omitted fields remain unchanged.`})}const nt={command:`edit <credential-set-id>`,describe:`Edit credential set`,builder:tt,handler:async n=>l({command:`api-security vulnerability-scanner credential-sets edit`,classification:{safeFlags:[`dry-run`]}},n,async()=>{if(n.dryRun){s({command:`cf api-security vulnerability-scanner credential-sets edit`,method:`PATCH`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/vuln_scanner/credential_sets/${n[`credential-set-id`]==null?`<credential-set-id>`:encodeURIComponent(String(n[`credential-set-id`]))}`,pathParams:{"credential-set-id":String(n[`credential-set-id`]??``)},bodyKind:`json`,body:n.body===void 0?f({name:p(n.name,`name`,`text`)}):u(n.body)});return}let i=await a(n),l=n.local?e:await r();if(n.accountId=l,n.body){let e=u(n.body);o(await c(`Updating`,async()=>i.apiSecurity.vulnerabilityScanner.credentialSets.edit({...e,account_id:l,credential_set_id:n[`credential-set-id`]})),{successLabel:`Updated`});return}let d=f({name:p(n.name,`name`,`text`)});o(await c(`Updating`,async()=>i.apiSecurity.vulnerabilityScanner.credentialSets.edit({...d,account_id:l,credential_set_id:n[`credential-set-id`]})),{successLabel:`Updated`})})};function rt(e){return e.usage(`$0 api-security vulnerability-scanner credential-sets get <credential-set-id>
122
122
 
123
- Returns a single credential set by ID.`).positional(`credential-set-id`,{type:`string`,description:`Credential set identifier.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const it={command:`get <credential-set-id>`,describe:`Get credential set`,builder:rt,handler:async t=>l({command:`api-security vulnerability-scanner credential-sets get`,classification:{safeFlags:[`dry-run`]}},t,async()=>{if(t.dryRun){s({command:`cf api-security vulnerability-scanner credential-sets get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await r()??`<account-id>`}/vuln_scanner/credential_sets/${t[`credential-set-id`]==null?`<credential-set-id>`:encodeURIComponent(String(t[`credential-set-id`]))}`,pathParams:{"credential-set-id":String(t[`credential-set-id`]??``)},bodyKind:`none`});return}let i=await a(t),l=t.local?e:await n();t.accountId=l,o(await c(`Loading`,async()=>i.apiSecurity.vulnerabilityScanner.credentialSets.get({account_id:l,credential_set_id:t[`credential-set-id`]})),{successLabel:`Loaded`})})};function at(e){return e.usage(`$0 api-security vulnerability-scanner credential-sets list
123
+ Returns a single credential set by ID.`).positional(`credential-set-id`,{type:`string`,description:`Credential set identifier.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const it={command:`get <credential-set-id>`,describe:`Get credential set`,builder:rt,handler:async n=>l({command:`api-security vulnerability-scanner credential-sets get`,classification:{safeFlags:[`dry-run`]}},n,async()=>{if(n.dryRun){s({command:`cf api-security vulnerability-scanner credential-sets get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/vuln_scanner/credential_sets/${n[`credential-set-id`]==null?`<credential-set-id>`:encodeURIComponent(String(n[`credential-set-id`]))}`,pathParams:{"credential-set-id":String(n[`credential-set-id`]??``)},bodyKind:`none`});return}let i=await a(n),l=n.local?e:await r();n.accountId=l,o(await c(`Loading`,async()=>i.apiSecurity.vulnerabilityScanner.credentialSets.get({account_id:l,credential_set_id:n[`credential-set-id`]})),{successLabel:`Loaded`})})};function at(e){return e.usage(`$0 api-security vulnerability-scanner credential-sets list
124
124
 
125
- Returns all credential sets for the account.`).option(`page`,{type:`number`,description:`Page number of paginated results.`}).option(`per-page`,{type:`number`,description:`Number of results per page.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const ot={command:`list`,describe:`List credential sets`,builder:at,handler:async t=>l({command:`api-security vulnerability-scanner credential-sets list`,classification:{safeFlags:[`dry-run`]}},t,async()=>{let i={page:t.page,per_page:t[`per-page`]};if(t.dryRun){s({command:`cf api-security vulnerability-scanner credential-sets list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await r()??`<account-id>`}/vuln_scanner/credential_sets`,pathParams:{},query:i,bodyKind:`none`});return}let l=await a(t),u=t.local?e:await n();t.accountId=u,o(await c(`Loading`,async()=>l.apiSecurity.vulnerabilityScanner.credentialSets.list({account_id:u,...i})),{successLabel:`Loaded`})})};function st(e){return e.usage(`$0 api-security vulnerability-scanner credential-sets update <credential-set-id>
125
+ Returns all credential sets for the account.`).option(`page`,{type:`number`,description:`Page number of paginated results.`}).option(`per-page`,{type:`number`,description:`Number of results per page.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const ot={command:`list`,describe:`List credential sets`,builder:at,handler:async n=>l({command:`api-security vulnerability-scanner credential-sets list`,classification:{safeFlags:[`dry-run`]}},n,async()=>{let i={page:n.page,per_page:n[`per-page`]};if(n.dryRun){s({command:`cf api-security vulnerability-scanner credential-sets list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/vuln_scanner/credential_sets`,pathParams:{},query:i,bodyKind:`none`});return}let l=await a(n),u=n.local?e:await r();n.accountId=u,o(await c(`Loading`,async()=>l.apiSecurity.vulnerabilityScanner.credentialSets.list({account_id:u,...i})),{successLabel:`Loaded`})})};function st(e){return e.usage(`$0 api-security vulnerability-scanner credential-sets update <credential-set-id>
126
126
 
127
- Replaces a credential set. All fields must be provided.`).positional(`credential-set-id`,{type:`string`,description:`Credential set identifier.`,demandOption:!0}).option(`name`,{type:`string`,description:`Human-readable name.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Full replacement. Provide all fields.`})}const ct={command:`update <credential-set-id>`,describe:`Update credential set`,builder:st,handler:async t=>l({command:`api-security vulnerability-scanner credential-sets update`,classification:{safeFlags:[`dry-run`]}},t,async()=>{if(t.dryRun){s({command:`cf api-security vulnerability-scanner credential-sets update`,method:`PUT`,url:`https://api.cloudflare.com/client/v4/accounts/${await r()??`<account-id>`}/vuln_scanner/credential_sets/${t[`credential-set-id`]==null?`<credential-set-id>`:encodeURIComponent(String(t[`credential-set-id`]))}`,pathParams:{"credential-set-id":String(t[`credential-set-id`]??``)},bodyKind:`json`,body:t.body===void 0?f({name:p(t.name,`name`,`text`)}):u(t.body)});return}let i=await a(t),l=t.local?e:await n();if(t.accountId=l,t.body){let e=u(t.body);o(await c(`Updating`,async()=>i.apiSecurity.vulnerabilityScanner.credentialSets.update({...e,account_id:l,credential_set_id:t[`credential-set-id`]})),{successLabel:`Updated`});return}t.name===void 0&&(t.name=await m(`name`,`Human-readable name.`));let d=f({name:p(t.name,`name`,`text`)});o(await c(`Updating`,async()=>i.apiSecurity.vulnerabilityScanner.credentialSets.update({...d,account_id:l,credential_set_id:t[`credential-set-id`]})),{successLabel:`Updated`})})},lt={command:`credential-sets`,describe:`Operations for vulnerability-scanner.credential-sets`,builder:e=>e.command(ze).command(et).command(nt).command(it).command(ot).command(ct).command(Qe).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function ut(e){return e.usage(`$0 api-security vulnerability-scanner scans create
127
+ Replaces a credential set. All fields must be provided.`).positional(`credential-set-id`,{type:`string`,description:`Credential set identifier.`,demandOption:!0}).option(`name`,{type:`string`,description:`Human-readable name.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Full replacement. Provide all fields.`})}const ct={command:`update <credential-set-id>`,describe:`Update credential set`,builder:st,handler:async n=>l({command:`api-security vulnerability-scanner credential-sets update`,classification:{safeFlags:[`dry-run`]}},n,async()=>{if(n.dryRun){s({command:`cf api-security vulnerability-scanner credential-sets update`,method:`PUT`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/vuln_scanner/credential_sets/${n[`credential-set-id`]==null?`<credential-set-id>`:encodeURIComponent(String(n[`credential-set-id`]))}`,pathParams:{"credential-set-id":String(n[`credential-set-id`]??``)},bodyKind:`json`,body:n.body===void 0?f({name:p(n.name,`name`,`text`)}):u(n.body)});return}let i=await a(n),l=n.local?e:await r();if(n.accountId=l,n.body){let e=u(n.body);o(await c(`Updating`,async()=>i.apiSecurity.vulnerabilityScanner.credentialSets.update({...e,account_id:l,credential_set_id:n[`credential-set-id`]})),{successLabel:`Updated`});return}n.name===void 0&&(n.name=await m(`name`,`Human-readable name.`));let d=f({name:p(n.name,`name`,`text`)});o(await c(`Updating`,async()=>i.apiSecurity.vulnerabilityScanner.credentialSets.update({...d,account_id:l,credential_set_id:n[`credential-set-id`]})),{successLabel:`Updated`})})},lt={command:`credential-sets`,describe:`Operations for vulnerability-scanner.credential-sets`,builder:e=>e.command(ze).command(et).command(nt).command(it).command(ot).command(ct).command(Qe).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function ut(e){return e.usage(`$0 api-security vulnerability-scanner scans create
128
128
 
129
129
  Creates and starts a new vulnerability scan. The response may include non-fatal warnings in the \`messages\` array.`).option(`credential-sets-attacker`,{type:`string`,description:`Credential set ID for the attacker.`}).option(`credential-sets-owner`,{type:`string`,description:`Credential set ID for the resource owner.`}).option(`open-api`,{type:`string`,description:`OpenAPI schema definition for the API under test. The scanner
130
130
  uses this to discover endpoints and construct requests.
131
- `}).option(`scan-type`,{type:`string`,description:`The scan_type field`,choices:[`bola`]}).option(`target-environment-id`,{type:`string`,description:`The target environment to scan.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:"Create a new vulnerability scan. The `scan_type` discriminator selects the scan variant and its required context fields. "}).check(e=>{if([`credential-sets-attacker`,`credential-sets-owner`].some(t=>e[t]!==void 0)){let t=[`credential-sets-attacker`,`credential-sets-owner`].filter(t=>e[t]===void 0);if(t.length>0)throw Error(`${t.map(e=>`--`+e).join(`, `)} ${t.length===1?`is`:`are`} required when any --credential_sets-* flag is set`)}return!0})}const dt={command:`create`,describe:`Create scan`,builder:ut,handler:async t=>l({command:`api-security vulnerability-scanner scans create`,classification:{safeFlags:[`scan-type`,`dry-run`]}},t,async()=>{if(t.dryRun){s({command:`cf api-security vulnerability-scanner scans create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${await r()??`<account-id>`}/vuln_scanner/scans`,pathParams:{},bodyKind:`json`,body:t.body===void 0?f({credential_sets:{attacker:p(t[`credential-sets-attacker`],`credential-sets-attacker`,`text`),owner:p(t[`credential-sets-owner`],`credential-sets-owner`,`text`)},open_api:p(t[`open-api`],`open-api`,`text`),scan_type:p(t[`scan-type`],`scan-type`,`text`),target_environment_id:p(t[`target-environment-id`],`target-environment-id`,`text`)}):u(t.body)});return}let i=await a(t),l=t.local?e:await n();if(t.accountId=l,t.body){let e=u(t.body);o(await c(`Creating`,async()=>i.apiSecurity.vulnerabilityScanner.scans.create({body:e,account_id:l})),{successLabel:`Created`});return}t[`open-api`]===void 0&&(t[`open-api`]=await m(`open-api`,`OpenAPI schema definition for the API under test. The scanner uses this to discover endpoints and construct requests. `)),t[`scan-type`]===void 0&&(t[`scan-type`]=await h(`scan-type`,`The scan_type field`,[`bola`])),t[`target-environment-id`]===void 0&&(t[`target-environment-id`]=await m(`target-environment-id`,`The target environment to scan.`));let d=f({credential_sets:{attacker:p(t[`credential-sets-attacker`],`credential-sets-attacker`,`text`),owner:p(t[`credential-sets-owner`],`credential-sets-owner`,`text`)},open_api:p(t[`open-api`],`open-api`,`text`),scan_type:p(t[`scan-type`],`scan-type`,`text`),target_environment_id:p(t[`target-environment-id`],`target-environment-id`,`text`)});o(await c(`Creating`,async()=>i.apiSecurity.vulnerabilityScanner.scans.create({body:d,account_id:l})),{successLabel:`Created`})})};function ft(e){return e.usage("$0 api-security vulnerability-scanner scans delete <scan-id>\n\nDeletes a scan and all associated data. Only scans in a terminal state (`finished`, `failed`) may be deleted. Attempting to delete a scan that is still being created or executed (`created`, `scheduled`, `planning`, `running`) returns `400`.").positional(`scan-id`,{type:`string`,description:`Scan 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 pt={command:`delete <scan-id>`,describe:`Delete scan`,builder:ft,handler:async t=>l({command:`api-security vulnerability-scanner scans delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},t,async()=>{if(t.dryRun){s({command:`cf api-security vulnerability-scanner scans delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${await r()??`<account-id>`}/vuln_scanner/scans/${t[`scan-id`]==null?`<scan-id>`:encodeURIComponent(String(t[`scan-id`]))}`,pathParams:{"scan-id":String(t[`scan-id`]??``)},bodyKind:`none`});return}let i=await a(t),l=t.local?e:await n();if(t.accountId=l,!await g({force:!!t.force,message:`This operation permanently deletes the completed or failed scan and all associated scan data.`})){process.stderr.write(`Aborted.
132
- `);return}o(await c(`Deleting`,async()=>i.apiSecurity.vulnerabilityScanner.scans.delete({account_id:l,scan_id:t[`scan-id`]})),{successLabel:`Deleted`})})};function mt(e){return e.usage(`$0 api-security vulnerability-scanner scans get <scan-id>
131
+ `}).option(`scan-type`,{type:`string`,description:`The scan_type field`,choices:[`bola`]}).option(`target-environment-id`,{type:`string`,description:`The target environment to scan.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:"Create a new vulnerability scan. The `scan_type` discriminator selects the scan variant and its required context fields. "}).check(e=>{if([`credential-sets-attacker`,`credential-sets-owner`].some(t=>e[t]!==void 0)){let t=[`credential-sets-attacker`,`credential-sets-owner`].filter(t=>e[t]===void 0);if(t.length>0)throw Error(`${t.map(e=>`--`+e).join(`, `)} ${t.length===1?`is`:`are`} required when any --credential_sets-* flag is set`)}return!0})}const dt={command:`create`,describe:`Create scan`,builder:ut,handler:async n=>l({command:`api-security vulnerability-scanner scans create`,classification:{safeFlags:[`scan-type`,`dry-run`]}},n,async()=>{if(n.dryRun){s({command:`cf api-security vulnerability-scanner scans create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/vuln_scanner/scans`,pathParams:{},bodyKind:`json`,body:n.body===void 0?f({credential_sets:{attacker:p(n[`credential-sets-attacker`],`credential-sets-attacker`,`text`),owner:p(n[`credential-sets-owner`],`credential-sets-owner`,`text`)},open_api:p(n[`open-api`],`open-api`,`text`),scan_type:p(n[`scan-type`],`scan-type`,`text`),target_environment_id:p(n[`target-environment-id`],`target-environment-id`,`text`)}):u(n.body)});return}let i=await a(n),l=n.local?e:await r();if(n.accountId=l,n.body){let e=u(n.body);o(await c(`Creating`,async()=>i.apiSecurity.vulnerabilityScanner.scans.create({body:e,account_id:l})),{successLabel:`Created`});return}n[`open-api`]===void 0&&(n[`open-api`]=await m(`open-api`,`OpenAPI schema definition for the API under test. The scanner uses this to discover endpoints and construct requests. `)),n[`scan-type`]===void 0&&(n[`scan-type`]=await h(`scan-type`,`The scan_type field`,[`bola`])),n[`target-environment-id`]===void 0&&(n[`target-environment-id`]=await m(`target-environment-id`,`The target environment to scan.`));let d=f({credential_sets:{attacker:p(n[`credential-sets-attacker`],`credential-sets-attacker`,`text`),owner:p(n[`credential-sets-owner`],`credential-sets-owner`,`text`)},open_api:p(n[`open-api`],`open-api`,`text`),scan_type:p(n[`scan-type`],`scan-type`,`text`),target_environment_id:p(n[`target-environment-id`],`target-environment-id`,`text`)});o(await c(`Creating`,async()=>i.apiSecurity.vulnerabilityScanner.scans.create({body:d,account_id:l})),{successLabel:`Created`})})};function ft(e){return e.usage("$0 api-security vulnerability-scanner scans delete <scan-id>\n\nDeletes a scan and all associated data. Only scans in a terminal state (`finished`, `failed`) may be deleted. Attempting to delete a scan that is still being created or executed (`created`, `scheduled`, `planning`, `running`) returns `400`.").positional(`scan-id`,{type:`string`,description:`Scan 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 pt={command:`delete <scan-id>`,describe:`Delete scan`,builder:ft,handler:async n=>l({command:`api-security vulnerability-scanner scans delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},n,async()=>{if(n.dryRun){s({command:`cf api-security vulnerability-scanner scans delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/vuln_scanner/scans/${n[`scan-id`]==null?`<scan-id>`:encodeURIComponent(String(n[`scan-id`]))}`,pathParams:{"scan-id":String(n[`scan-id`]??``)},bodyKind:`none`});return}let i=await a(n),l=n.local?e:await r();if(n.accountId=l,!await g({force:!!n.force,message:`This operation permanently deletes the completed or failed scan and all associated scan data.`})){process.stderr.write(`Aborted.
132
+ `);return}o(await c(`Deleting`,async()=>i.apiSecurity.vulnerabilityScanner.scans.delete({account_id:l,scan_id:n[`scan-id`]})),{successLabel:`Deleted`})})};function mt(e){return e.usage(`$0 api-security vulnerability-scanner scans get <scan-id>
133
133
 
134
- Returns a single scan by ID.`).positional(`scan-id`,{type:`string`,description:`Scan identifier.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const ht={command:`get <scan-id>`,describe:`Get scan`,builder:mt,handler:async t=>l({command:`api-security vulnerability-scanner scans get`,classification:{safeFlags:[`dry-run`]}},t,async()=>{if(t.dryRun){s({command:`cf api-security vulnerability-scanner scans get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await r()??`<account-id>`}/vuln_scanner/scans/${t[`scan-id`]==null?`<scan-id>`:encodeURIComponent(String(t[`scan-id`]))}`,pathParams:{"scan-id":String(t[`scan-id`]??``)},bodyKind:`none`});return}let i=await a(t),l=t.local?e:await n();t.accountId=l,o(await c(`Loading`,async()=>i.apiSecurity.vulnerabilityScanner.scans.get({account_id:l,scan_id:t[`scan-id`]})),{successLabel:`Loaded`})})};function gt(e){return e.usage(`$0 api-security vulnerability-scanner scans list
134
+ Returns a single scan by ID.`).positional(`scan-id`,{type:`string`,description:`Scan identifier.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const ht={command:`get <scan-id>`,describe:`Get scan`,builder:mt,handler:async n=>l({command:`api-security vulnerability-scanner scans get`,classification:{safeFlags:[`dry-run`]}},n,async()=>{if(n.dryRun){s({command:`cf api-security vulnerability-scanner scans get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/vuln_scanner/scans/${n[`scan-id`]==null?`<scan-id>`:encodeURIComponent(String(n[`scan-id`]))}`,pathParams:{"scan-id":String(n[`scan-id`]??``)},bodyKind:`none`});return}let i=await a(n),l=n.local?e:await r();n.accountId=l,o(await c(`Loading`,async()=>i.apiSecurity.vulnerabilityScanner.scans.get({account_id:l,scan_id:n[`scan-id`]})),{successLabel:`Loaded`})})};function gt(e){return e.usage(`$0 api-security vulnerability-scanner scans list
135
135
 
136
- Returns all scans for the account.`).option(`page`,{type:`number`,description:`Page number of paginated results.`}).option(`per-page`,{type:`number`,description:`Number of results per page.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const _t={command:`list`,describe:`List scans`,builder:gt,handler:async t=>l({command:`api-security vulnerability-scanner scans list`,classification:{safeFlags:[`dry-run`]}},t,async()=>{let i={page:t.page,per_page:t[`per-page`]};if(t.dryRun){s({command:`cf api-security vulnerability-scanner scans list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await r()??`<account-id>`}/vuln_scanner/scans`,pathParams:{},query:i,bodyKind:`none`});return}let l=await a(t),u=t.local?e:await n();t.accountId=u,o(await c(`Loading`,async()=>l.apiSecurity.vulnerabilityScanner.scans.list({account_id:u,...i})),{successLabel:`Loaded`})})},vt={command:`scans`,describe:`Operations for vulnerability-scanner.scans`,builder:e=>e.command(dt).command(pt).command(ht).command(_t).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function yt(e){return e.usage(`$0 api-security vulnerability-scanner target-environments create
136
+ Returns all scans for the account.`).option(`page`,{type:`number`,description:`Page number of paginated results.`}).option(`per-page`,{type:`number`,description:`Number of results per page.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const _t={command:`list`,describe:`List scans`,builder:gt,handler:async n=>l({command:`api-security vulnerability-scanner scans list`,classification:{safeFlags:[`dry-run`]}},n,async()=>{let i={page:n.page,per_page:n[`per-page`]};if(n.dryRun){s({command:`cf api-security vulnerability-scanner scans list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/vuln_scanner/scans`,pathParams:{},query:i,bodyKind:`none`});return}let l=await a(n),u=n.local?e:await r();n.accountId=u,o(await c(`Loading`,async()=>l.apiSecurity.vulnerabilityScanner.scans.list({account_id:u,...i})),{successLabel:`Loaded`})})},vt={command:`scans`,describe:`Operations for vulnerability-scanner.scans`,builder:e=>e.command(dt).command(pt).command(ht).command(_t).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function yt(e){return e.usage(`$0 api-security vulnerability-scanner target-environments create
137
137
 
138
138
  Creates a new target environment for the account.`).option(`description`,{type:`string`,description:`Optional description.`}).option(`name`,{type:`string`,description:`Human-readable name.`}).option(`target-type`,{type:`string`,description:`The target.type field`,choices:[`zone`]}).option(`target-zone-tag`,{type:`string`,description:`Cloudflare zone tag. The zone must belong to the account.
139
- `}).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 $={command:`create`,describe:`Create target environment`,builder:yt,handler:async t=>l({command:`api-security vulnerability-scanner target-environments create`,classification:{safeFlags:[`target-type`,`dry-run`]}},t,async()=>{if(t.dryRun){s({command:`cf api-security vulnerability-scanner target-environments create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${await r()??`<account-id>`}/vuln_scanner/target_environments`,pathParams:{},bodyKind:`json`,body:t.body===void 0?f({description:p(t.description,`description`,`text`),name:p(t.name,`name`,`text`),target:{type:p(t[`target-type`],`target-type`,`text`),zone_tag:p(t[`target-zone-tag`],`target-zone-tag`,`text`)}}):u(t.body)});return}let i=await a(t),l=t.local?e:await n();if(t.accountId=l,t.body){let e=u(t.body);o(await c(`Creating`,async()=>i.apiSecurity.vulnerabilityScanner.targetEnvironments.create({...e,account_id:l})),{successLabel:`Created`});return}t.name===void 0&&(t.name=await m(`name`,`Human-readable name.`)),t[`target-type`]===void 0&&(t[`target-type`]=await h(`target-type`,`The target.type field`,[`zone`])),t[`target-zone-tag`]===void 0&&(t[`target-zone-tag`]=await m(`target-zone-tag`,`Cloudflare zone tag. The zone must belong to the account. `));let d=f({description:p(t.description,`description`,`text`),name:p(t.name,`name`,`text`),target:{type:p(t[`target-type`],`target-type`,`text`),zone_tag:p(t[`target-zone-tag`],`target-zone-tag`,`text`)}});o(await c(`Creating`,async()=>i.apiSecurity.vulnerabilityScanner.targetEnvironments.create({...d,account_id:l})),{successLabel:`Created`})})};function bt(e){return e.usage(`$0 api-security vulnerability-scanner target-environments delete <target-environment-id>
139
+ `}).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 $={command:`create`,describe:`Create target environment`,builder:yt,handler:async n=>l({command:`api-security vulnerability-scanner target-environments create`,classification:{safeFlags:[`target-type`,`dry-run`]}},n,async()=>{if(n.dryRun){s({command:`cf api-security vulnerability-scanner target-environments create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/vuln_scanner/target_environments`,pathParams:{},bodyKind:`json`,body:n.body===void 0?f({description:p(n.description,`description`,`text`),name:p(n.name,`name`,`text`),target:{type:p(n[`target-type`],`target-type`,`text`),zone_tag:p(n[`target-zone-tag`],`target-zone-tag`,`text`)}}):u(n.body)});return}let i=await a(n),l=n.local?e:await r();if(n.accountId=l,n.body){let e=u(n.body);o(await c(`Creating`,async()=>i.apiSecurity.vulnerabilityScanner.targetEnvironments.create({...e,account_id:l})),{successLabel:`Created`});return}n.name===void 0&&(n.name=await m(`name`,`Human-readable name.`)),n[`target-type`]===void 0&&(n[`target-type`]=await h(`target-type`,`The target.type field`,[`zone`])),n[`target-zone-tag`]===void 0&&(n[`target-zone-tag`]=await m(`target-zone-tag`,`Cloudflare zone tag. The zone must belong to the account. `));let d=f({description:p(n.description,`description`,`text`),name:p(n.name,`name`,`text`),target:{type:p(n[`target-type`],`target-type`,`text`),zone_tag:p(n[`target-zone-tag`],`target-zone-tag`,`text`)}});o(await c(`Creating`,async()=>i.apiSecurity.vulnerabilityScanner.targetEnvironments.create({...d,account_id:l})),{successLabel:`Created`})})};function bt(e){return e.usage(`$0 api-security vulnerability-scanner target-environments delete <target-environment-id>
140
140
 
141
- Removes a target environment.`).positional(`target-environment-id`,{type:`string`,description:`Target environment 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 xt={command:`delete <target-environment-id>`,describe:`Delete target environment`,builder:bt,handler:async t=>l({command:`api-security vulnerability-scanner target-environments delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},t,async()=>{if(t.dryRun){s({command:`cf api-security vulnerability-scanner target-environments delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${await r()??`<account-id>`}/vuln_scanner/target_environments/${t[`target-environment-id`]==null?`<target-environment-id>`:encodeURIComponent(String(t[`target-environment-id`]))}`,pathParams:{"target-environment-id":String(t[`target-environment-id`]??``)},bodyKind:`none`});return}let i=await a(t),l=t.local?e:await n();if(t.accountId=l,!await g({force:!!t.force,message:`This operation permanently deletes the target environment from Vulnerability Scanner.`})){process.stderr.write(`Aborted.
142
- `);return}o(await c(`Deleting`,async()=>i.apiSecurity.vulnerabilityScanner.targetEnvironments.delete({account_id:l,target_environment_id:t[`target-environment-id`]})),{successLabel:`Deleted`})})};function St(e){return e.usage(`$0 api-security vulnerability-scanner target-environments edit <target-environment-id>
141
+ Removes a target environment.`).positional(`target-environment-id`,{type:`string`,description:`Target environment 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 xt={command:`delete <target-environment-id>`,describe:`Delete target environment`,builder:bt,handler:async n=>l({command:`api-security vulnerability-scanner target-environments delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},n,async()=>{if(n.dryRun){s({command:`cf api-security vulnerability-scanner target-environments delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/vuln_scanner/target_environments/${n[`target-environment-id`]==null?`<target-environment-id>`:encodeURIComponent(String(n[`target-environment-id`]))}`,pathParams:{"target-environment-id":String(n[`target-environment-id`]??``)},bodyKind:`none`});return}let i=await a(n),l=n.local?e:await r();if(n.accountId=l,!await g({force:!!n.force,message:`This operation permanently deletes the target environment from Vulnerability Scanner.`})){process.stderr.write(`Aborted.
142
+ `);return}o(await c(`Deleting`,async()=>i.apiSecurity.vulnerabilityScanner.targetEnvironments.delete({account_id:l,target_environment_id:n[`target-environment-id`]})),{successLabel:`Deleted`})})};function St(e){return e.usage(`$0 api-security vulnerability-scanner target-environments edit <target-environment-id>
143
143
 
144
144
  Updates a target environment with only the provided fields; omitted fields remain unchanged.`).positional(`target-environment-id`,{type:`string`,description:`Target environment identifier.`,demandOption:!0}).option(`description`,{type:`string`,description:`Optional description. Omit to leave unchanged, set to \`null\`
145
145
  to clear, or provide a string to update.
146
146
  `}).option(`name`,{type:`string`,description:`Human-readable name.`}).option(`target-type`,{type:`string`,description:`The target.type field`,choices:[`zone`]}).option(`target-zone-tag`,{type:`string`,description:`Cloudflare zone tag. The zone must belong to the account.
147
- `}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:'Applies a partial update. Only the provided fields change; omitted fields remain unchanged. The `description` field supports three states: - **omitted**: leave unchanged - **`null`**: clear the description - **`"value"`**: set to the given string '}).check(e=>{if([`target-type`,`target-zone-tag`].some(t=>e[t]!==void 0)){let t=[`target-type`,`target-zone-tag`].filter(t=>e[t]===void 0);if(t.length>0)throw Error(`${t.map(e=>`--`+e).join(`, `)} ${t.length===1?`is`:`are`} required when any --target-* flag is set`)}return!0})}const Ct={command:`edit <target-environment-id>`,describe:`Edit target environment`,builder:St,handler:async t=>l({command:`api-security vulnerability-scanner target-environments edit`,classification:{safeFlags:[`target-type`,`dry-run`]}},t,async()=>{if(t.dryRun){s({command:`cf api-security vulnerability-scanner target-environments edit`,method:`PATCH`,url:`https://api.cloudflare.com/client/v4/accounts/${await r()??`<account-id>`}/vuln_scanner/target_environments/${t[`target-environment-id`]==null?`<target-environment-id>`:encodeURIComponent(String(t[`target-environment-id`]))}`,pathParams:{"target-environment-id":String(t[`target-environment-id`]??``)},bodyKind:`json`,body:t.body===void 0?f({description:p(t.description,`description`,`text`),name:p(t.name,`name`,`text`),target:{type:p(t[`target-type`],`target-type`,`text`),zone_tag:p(t[`target-zone-tag`],`target-zone-tag`,`text`)}}):u(t.body)});return}let i=await a(t),l=t.local?e:await n();if(t.accountId=l,t.body){let e=u(t.body);o(await c(`Updating`,async()=>i.apiSecurity.vulnerabilityScanner.targetEnvironments.edit({...e,account_id:l,target_environment_id:t[`target-environment-id`]})),{successLabel:`Updated`});return}let d=f({description:p(t.description,`description`,`text`),name:p(t.name,`name`,`text`),target:{type:p(t[`target-type`],`target-type`,`text`),zone_tag:p(t[`target-zone-tag`],`target-zone-tag`,`text`)}});o(await c(`Updating`,async()=>i.apiSecurity.vulnerabilityScanner.targetEnvironments.edit({...d,account_id:l,target_environment_id:t[`target-environment-id`]})),{successLabel:`Updated`})})};function wt(e){return e.usage(`$0 api-security vulnerability-scanner target-environments get <target-environment-id>
147
+ `}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:'Applies a partial update. Only the provided fields change; omitted fields remain unchanged. The `description` field supports three states: - **omitted**: leave unchanged - **`null`**: clear the description - **`"value"`**: set to the given string '}).check(e=>{if([`target-type`,`target-zone-tag`].some(t=>e[t]!==void 0)){let t=[`target-type`,`target-zone-tag`].filter(t=>e[t]===void 0);if(t.length>0)throw Error(`${t.map(e=>`--`+e).join(`, `)} ${t.length===1?`is`:`are`} required when any --target-* flag is set`)}return!0})}const Ct={command:`edit <target-environment-id>`,describe:`Edit target environment`,builder:St,handler:async n=>l({command:`api-security vulnerability-scanner target-environments edit`,classification:{safeFlags:[`target-type`,`dry-run`]}},n,async()=>{if(n.dryRun){s({command:`cf api-security vulnerability-scanner target-environments edit`,method:`PATCH`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/vuln_scanner/target_environments/${n[`target-environment-id`]==null?`<target-environment-id>`:encodeURIComponent(String(n[`target-environment-id`]))}`,pathParams:{"target-environment-id":String(n[`target-environment-id`]??``)},bodyKind:`json`,body:n.body===void 0?f({description:p(n.description,`description`,`text`),name:p(n.name,`name`,`text`),target:{type:p(n[`target-type`],`target-type`,`text`),zone_tag:p(n[`target-zone-tag`],`target-zone-tag`,`text`)}}):u(n.body)});return}let i=await a(n),l=n.local?e:await r();if(n.accountId=l,n.body){let e=u(n.body);o(await c(`Updating`,async()=>i.apiSecurity.vulnerabilityScanner.targetEnvironments.edit({...e,account_id:l,target_environment_id:n[`target-environment-id`]})),{successLabel:`Updated`});return}let d=f({description:p(n.description,`description`,`text`),name:p(n.name,`name`,`text`),target:{type:p(n[`target-type`],`target-type`,`text`),zone_tag:p(n[`target-zone-tag`],`target-zone-tag`,`text`)}});o(await c(`Updating`,async()=>i.apiSecurity.vulnerabilityScanner.targetEnvironments.edit({...d,account_id:l,target_environment_id:n[`target-environment-id`]})),{successLabel:`Updated`})})};function wt(e){return e.usage(`$0 api-security vulnerability-scanner target-environments get <target-environment-id>
148
148
 
149
- Returns a single target environment by ID.`).positional(`target-environment-id`,{type:`string`,description:`Target environment identifier.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const Tt={command:`get <target-environment-id>`,describe:`Get target environment`,builder:wt,handler:async t=>l({command:`api-security vulnerability-scanner target-environments get`,classification:{safeFlags:[`dry-run`]}},t,async()=>{if(t.dryRun){s({command:`cf api-security vulnerability-scanner target-environments get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await r()??`<account-id>`}/vuln_scanner/target_environments/${t[`target-environment-id`]==null?`<target-environment-id>`:encodeURIComponent(String(t[`target-environment-id`]))}`,pathParams:{"target-environment-id":String(t[`target-environment-id`]??``)},bodyKind:`none`});return}let i=await a(t),l=t.local?e:await n();t.accountId=l,o(await c(`Loading`,async()=>i.apiSecurity.vulnerabilityScanner.targetEnvironments.get({account_id:l,target_environment_id:t[`target-environment-id`]})),{successLabel:`Loaded`})})};function Et(e){return e.usage(`$0 api-security vulnerability-scanner target-environments list
149
+ Returns a single target environment by ID.`).positional(`target-environment-id`,{type:`string`,description:`Target environment identifier.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const Tt={command:`get <target-environment-id>`,describe:`Get target environment`,builder:wt,handler:async n=>l({command:`api-security vulnerability-scanner target-environments get`,classification:{safeFlags:[`dry-run`]}},n,async()=>{if(n.dryRun){s({command:`cf api-security vulnerability-scanner target-environments get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/vuln_scanner/target_environments/${n[`target-environment-id`]==null?`<target-environment-id>`:encodeURIComponent(String(n[`target-environment-id`]))}`,pathParams:{"target-environment-id":String(n[`target-environment-id`]??``)},bodyKind:`none`});return}let i=await a(n),l=n.local?e:await r();n.accountId=l,o(await c(`Loading`,async()=>i.apiSecurity.vulnerabilityScanner.targetEnvironments.get({account_id:l,target_environment_id:n[`target-environment-id`]})),{successLabel:`Loaded`})})};function Et(e){return e.usage(`$0 api-security vulnerability-scanner target-environments list
150
150
 
151
- Returns all target environments for the account.`).option(`page`,{type:`number`,description:`Page number of paginated results.`}).option(`per-page`,{type:`number`,description:`Number of results per page.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const Dt={command:`list`,describe:`List target environments`,builder:Et,handler:async t=>l({command:`api-security vulnerability-scanner target-environments list`,classification:{safeFlags:[`dry-run`]}},t,async()=>{let i={page:t.page,per_page:t[`per-page`]};if(t.dryRun){s({command:`cf api-security vulnerability-scanner target-environments list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await r()??`<account-id>`}/vuln_scanner/target_environments`,pathParams:{},query:i,bodyKind:`none`});return}let l=await a(t),u=t.local?e:await n();t.accountId=u,o(await c(`Loading`,async()=>l.apiSecurity.vulnerabilityScanner.targetEnvironments.list({account_id:u,...i})),{successLabel:`Loaded`})})};function Ot(e){return e.usage(`$0 api-security vulnerability-scanner target-environments update <target-environment-id>
151
+ Returns all target environments for the account.`).option(`page`,{type:`number`,description:`Page number of paginated results.`}).option(`per-page`,{type:`number`,description:`Number of results per page.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const Dt={command:`list`,describe:`List target environments`,builder:Et,handler:async n=>l({command:`api-security vulnerability-scanner target-environments list`,classification:{safeFlags:[`dry-run`]}},n,async()=>{let i={page:n.page,per_page:n[`per-page`]};if(n.dryRun){s({command:`cf api-security vulnerability-scanner target-environments list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/vuln_scanner/target_environments`,pathParams:{},query:i,bodyKind:`none`});return}let l=await a(n),u=n.local?e:await r();n.accountId=u,o(await c(`Loading`,async()=>l.apiSecurity.vulnerabilityScanner.targetEnvironments.list({account_id:u,...i})),{successLabel:`Loaded`})})};function Ot(e){return e.usage(`$0 api-security vulnerability-scanner target-environments update <target-environment-id>
152
152
 
153
153
  Replaces a target environment. All fields must be provided.`).positional(`target-environment-id`,{type:`string`,description:`Target environment identifier.`,demandOption:!0}).option(`description`,{type:`string`,description:`Optional description.`}).option(`name`,{type:`string`,description:`Human-readable name.`}).option(`target-type`,{type:`string`,description:`The target.type field`,choices:[`zone`]}).option(`target-zone-tag`,{type:`string`,description:`Cloudflare zone tag. The zone must belong to the account.
154
- `}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Full replacement.`})}const kt={command:`update <target-environment-id>`,describe:`Update target environment`,builder:Ot,handler:async t=>l({command:`api-security vulnerability-scanner target-environments update`,classification:{safeFlags:[`target-type`,`dry-run`]}},t,async()=>{if(t.dryRun){s({command:`cf api-security vulnerability-scanner target-environments update`,method:`PUT`,url:`https://api.cloudflare.com/client/v4/accounts/${await r()??`<account-id>`}/vuln_scanner/target_environments/${t[`target-environment-id`]==null?`<target-environment-id>`:encodeURIComponent(String(t[`target-environment-id`]))}`,pathParams:{"target-environment-id":String(t[`target-environment-id`]??``)},bodyKind:`json`,body:t.body===void 0?f({description:p(t.description,`description`,`text`),name:p(t.name,`name`,`text`),target:{type:p(t[`target-type`],`target-type`,`text`),zone_tag:p(t[`target-zone-tag`],`target-zone-tag`,`text`)}}):u(t.body)});return}let i=await a(t),l=t.local?e:await n();if(t.accountId=l,t.body){let e=u(t.body);o(await c(`Updating`,async()=>i.apiSecurity.vulnerabilityScanner.targetEnvironments.update({...e,account_id:l,target_environment_id:t[`target-environment-id`]})),{successLabel:`Updated`});return}t.name===void 0&&(t.name=await m(`name`,`Human-readable name.`)),t[`target-type`]===void 0&&(t[`target-type`]=await h(`target-type`,`The target.type field`,[`zone`])),t[`target-zone-tag`]===void 0&&(t[`target-zone-tag`]=await m(`target-zone-tag`,`Cloudflare zone tag. The zone must belong to the account. `));let d=f({description:p(t.description,`description`,`text`),name:p(t.name,`name`,`text`),target:{type:p(t[`target-type`],`target-type`,`text`),zone_tag:p(t[`target-zone-tag`],`target-zone-tag`,`text`)}});o(await c(`Updating`,async()=>i.apiSecurity.vulnerabilityScanner.targetEnvironments.update({...d,account_id:l,target_environment_id:t[`target-environment-id`]})),{successLabel:`Updated`})})},At={command:`target-environments`,describe:`Operations for vulnerability-scanner.target-environments`,builder:e=>e.command($).command(xt).command(Ct).command(Tt).command(Dt).command(kt).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},jt={command:`vulnerability-scanner`,describe:`Operations for vulnerability-scanner`,builder:e=>e.command(lt).command(vt).command(At).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},Mt={command:`api-security`,describe:`api-security`,builder:e=>e.command(Z).command(ae).command(Le).command(jt).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};export{Mt as default};
154
+ `}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Full replacement.`})}const kt={command:`update <target-environment-id>`,describe:`Update target environment`,builder:Ot,handler:async n=>l({command:`api-security vulnerability-scanner target-environments update`,classification:{safeFlags:[`target-type`,`dry-run`]}},n,async()=>{if(n.dryRun){s({command:`cf api-security vulnerability-scanner target-environments update`,method:`PUT`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/vuln_scanner/target_environments/${n[`target-environment-id`]==null?`<target-environment-id>`:encodeURIComponent(String(n[`target-environment-id`]))}`,pathParams:{"target-environment-id":String(n[`target-environment-id`]??``)},bodyKind:`json`,body:n.body===void 0?f({description:p(n.description,`description`,`text`),name:p(n.name,`name`,`text`),target:{type:p(n[`target-type`],`target-type`,`text`),zone_tag:p(n[`target-zone-tag`],`target-zone-tag`,`text`)}}):u(n.body)});return}let i=await a(n),l=n.local?e:await r();if(n.accountId=l,n.body){let e=u(n.body);o(await c(`Updating`,async()=>i.apiSecurity.vulnerabilityScanner.targetEnvironments.update({...e,account_id:l,target_environment_id:n[`target-environment-id`]})),{successLabel:`Updated`});return}n.name===void 0&&(n.name=await m(`name`,`Human-readable name.`)),n[`target-type`]===void 0&&(n[`target-type`]=await h(`target-type`,`The target.type field`,[`zone`])),n[`target-zone-tag`]===void 0&&(n[`target-zone-tag`]=await m(`target-zone-tag`,`Cloudflare zone tag. The zone must belong to the account. `));let d=f({description:p(n.description,`description`,`text`),name:p(n.name,`name`,`text`),target:{type:p(n[`target-type`],`target-type`,`text`),zone_tag:p(n[`target-zone-tag`],`target-zone-tag`,`text`)}});o(await c(`Updating`,async()=>i.apiSecurity.vulnerabilityScanner.targetEnvironments.update({...d,account_id:l,target_environment_id:n[`target-environment-id`]})),{successLabel:`Updated`})})},At={command:`target-environments`,describe:`Operations for vulnerability-scanner.target-environments`,builder:e=>e.command($).command(xt).command(Ct).command(Tt).command(Dt).command(kt).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},jt={command:`vulnerability-scanner`,describe:`Operations for vulnerability-scanner`,builder:e=>e.command(lt).command(vt).command(At).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},Mt={command:`api-security`,describe:`api-security`,builder:e=>e.command(Z).command(ae).command(Le).command(jt).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};export{Mt as default};