cf 1.0.0-beta.27 → 1.0.0-beta.29

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 (370) hide show
  1. package/README.md +10 -3
  2. package/dist/_meta/commands.json +7966 -5034
  3. package/dist/_meta/hand-written-commands.json +40 -10
  4. package/dist/_meta/schemas.json +3153 -3736
  5. package/dist/{abuse-reports-RxXqfDEW.mjs → abuse-reports-DqXYX_6F.mjs} +10 -10
  6. package/dist/{access-BxEprr2f.mjs → access-Cte4yyIz.mjs} +1 -1
  7. package/dist/{accounts-DU2ZNYqP.mjs → accounts-G-x-_cEx.mjs} +58 -57
  8. package/dist/{acm-CBCIKBJ4.mjs → acm-Bg3HqMGG.mjs} +7 -7
  9. package/dist/{addressing-BKxiLRHk.mjs → addressing-BwEofGEm.mjs} +46 -46
  10. package/dist/{agent-memory-DkBpQYUL.mjs → agent-memory-DhwZ2KRw.mjs} +15 -15
  11. package/dist/ai-DWWRIQIt.mjs +30 -0
  12. package/dist/ai-audit-CMEBz6ZP.mjs +6 -0
  13. package/dist/ai-gateway-D2s0isU-.mjs +76 -0
  14. package/dist/ai-search-a0uqr9yJ.mjs +74 -0
  15. package/dist/{ai-security-CvZfP2JC.mjs → ai-security-H_RqjRoL.mjs} +4 -4
  16. package/dist/alerting-Bgp9rE4I.mjs +52 -0
  17. package/dist/analytics-CFYM82FD.mjs +17 -0
  18. package/dist/analytics-engine-BLiEaLxb.mjs +4 -0
  19. package/dist/api-Dnt6lRJG.mjs +3 -0
  20. package/dist/{api-security-BbcvDtff.mjs → api-security-B0YtHglt.mjs} +63 -63
  21. package/dist/argo-BPwbzHY7.mjs +14 -0
  22. package/dist/{artifacts-2R2sxIKO.mjs → artifacts-B6UwC2PH.mjs} +20 -20
  23. package/dist/{audit-logs-LoBB1OO_.mjs → audit-logs-kG97iEnI.mjs} +2 -2
  24. package/dist/auth-Czr8ChBB.mjs +2 -0
  25. package/dist/auth-DA1PHaHi.mjs +2 -0
  26. package/dist/auth-Dwfa4S3h.mjs +7 -0
  27. package/dist/{auth-token-BwpERbnG.mjs → auth-token-CE3Wa5-b.mjs} +1 -1
  28. package/dist/{autoconfig-B2w-woU0.mjs → autoconfig-B4tFR6ua.mjs} +118 -114
  29. package/dist/{basin-catalog-AgOHGiPI.mjs → basin-catalog-DzVEPupy.mjs} +17 -17
  30. package/dist/billing-TERxOuLR.mjs +22 -0
  31. package/dist/{blocks-C8vyXIAT.mjs → blocks-C3Im7AT0.mjs} +1 -1
  32. package/dist/body-parser-HN91kAf0.mjs +2 -0
  33. package/dist/{body-unions-CjpNjwSW.mjs → body-unions-D9OSaf4M.mjs} +1 -1
  34. package/dist/{bot-management-fwxKIbaB.mjs → bot-management-SZw9jTOC.mjs} +4 -4
  35. package/dist/{botnet-feed-DCYB5kYZ.mjs → botnet-feed-DjdAeUtb.mjs} +5 -5
  36. package/dist/brand-protection-BpA7Gmf1.mjs +18 -0
  37. package/dist/browser-run-BvjfMK3f.mjs +40 -0
  38. package/dist/build-CCwo_ydV.mjs +2 -0
  39. package/dist/build-yQOzZg6Z.mjs +2 -0
  40. package/dist/builds-tMa3sbQU.mjs +62 -0
  41. package/dist/cache-b_EPh6Is.mjs +36 -0
  42. package/dist/cf-DmvZ2L51.mjs +18 -0
  43. package/dist/{chunk-DSGVRFIS-DQwKND2c.mjs → chunk-DSGVRFIS-Cj7pO-YQ.mjs} +1 -1
  44. package/dist/chunk-Q5KVZMHK-WOCEMyET.mjs +363 -0
  45. package/dist/cli-Cc7ujzAy.mjs +4 -0
  46. package/dist/{client-side-security-VmZzMy-m.mjs → client-side-security-DVkeCzcC.mjs} +14 -14
  47. package/dist/{cloud-connector-bMlFnqP0.mjs → cloud-connector-MVf4acRR.mjs} +3 -3
  48. package/dist/{cloudflared-Ba4KWdTO.mjs → cloudflared-BOkMl8Gm.mjs} +1 -1
  49. package/dist/cloudforce-one-KrCfQbRx.mjs +318 -0
  50. package/dist/{command-BxZBNPxG.mjs → command-BQbZw4Kx.mjs} +1 -1
  51. package/dist/command-BVct0Dvr.mjs +2 -0
  52. package/dist/{command-BiIVclNA.mjs → command-C4_lMRkw.mjs} +1 -1
  53. package/dist/command-CJ3ldWrA.mjs +2 -0
  54. package/dist/command-CyOdBNur.mjs +2 -0
  55. package/dist/command-D2XkyO1e.mjs +2 -0
  56. package/dist/command-DHODgfFZ.mjs +2 -0
  57. package/dist/command-DIIaZx_f.mjs +2 -0
  58. package/dist/command-DONwHpqZ.mjs +2 -0
  59. package/dist/command-DdYnSf-8.mjs +2 -0
  60. package/dist/command-DqOU7Ql2.mjs +2 -0
  61. package/dist/{command-pMoNdd22.mjs → command-HW7k43qu.mjs} +1 -1
  62. package/dist/command-NqM0lo4a.mjs +2 -0
  63. package/dist/command-bwVDyMv4.mjs +2 -0
  64. package/dist/command-yzqs4m83.mjs +2 -0
  65. package/dist/{completions-DRzBiqpv.mjs → completions-0YKvIyBT.mjs} +2 -2
  66. package/dist/connector-interrupts-CsunbRsr.mjs +6 -0
  67. package/dist/{connector-telemetry-events-BbAOUt9h.mjs → connector-telemetry-events-DmQPD7xC.mjs} +3 -3
  68. package/dist/{connector-telemetry-snapshots-DcpBx7Qx.mjs → connector-telemetry-snapshots-C62iHjC9.mjs} +3 -3
  69. package/dist/{connectors-D1WFLJoE.mjs → connectors-Bg0MU6ZT.mjs} +7 -7
  70. package/dist/containers-BiA_bpPR.mjs +76 -0
  71. package/dist/{content-scan-D1GfPSL0.mjs → content-scan-4SA2nacB.mjs} +6 -6
  72. package/dist/{context-Dp4CXG22.mjs → context-BGm5_wTT.mjs} +1 -1
  73. package/dist/{cps-D4uhzg3k.mjs → cps-WDmD3V5I.mjs} +3 -3
  74. package/dist/create-DmLDMvrj.mjs +2 -0
  75. package/dist/csam-scanner-Rmy-hBEA.mjs +8 -0
  76. package/dist/custom-csrs-D-lvkyRV.mjs +18 -0
  77. package/dist/custom-hostnames-B5BQX5m6.mjs +24 -0
  78. package/dist/custom-nameservers-CZrRjcjx.mjs +12 -0
  79. package/dist/custom-pages-CWwjtfbj.mjs +38 -0
  80. package/dist/d1-N81q-FAr.mjs +50 -0
  81. package/dist/{delegate-B4bKqF7i.mjs → delegate-livNdiwK.mjs} +1 -1
  82. package/dist/delegate.mjs +1 -1
  83. package/dist/deploy-Ok4ncy06.mjs +2 -0
  84. package/dist/deploy-context-B_lLfxt7.mjs +55 -0
  85. package/dist/deploy-input-JZlEJwKB.mjs +2 -0
  86. package/dist/dev-DxbkJkzc.mjs +4 -0
  87. package/dist/{diagnostics-D1CUs2o9.mjs → diagnostics-DlJzpO8b.mjs} +7 -7
  88. package/dist/dialog-CD94-Kzw.mjs +2 -0
  89. package/dist/discover-D9FNaCDK.mjs +2 -0
  90. package/dist/discover-DGsMj9ZN.mjs +2 -0
  91. package/dist/{dist-D5qkmHhC.mjs → dist-BxhwE-W1.mjs} +202 -193
  92. package/dist/{dls-DWBiYzY1.mjs → dls-5OXuxLAB.mjs} +8 -8
  93. package/dist/dns-Burep9O7.mjs +142 -0
  94. package/dist/{dns-firewall-DH9xIT5H.mjs → dns-firewall-hUHaQ0DE.mjs} +8 -8
  95. package/dist/docs-BFVK88kB.mjs +3 -0
  96. package/dist/{dry-run-gy0Hl9xo.mjs → dry-run-qsnRlRk6.mjs} +1 -1
  97. package/dist/{durable-objects-DF0MYpnV.mjs → durable-objects-D6R8S2Dk.mjs} +3 -3
  98. package/dist/email-auth--2KCzZNA.mjs +6 -0
  99. package/dist/email-routing-DzaExfVf.mjs +44 -0
  100. package/dist/{email-security-CnNa1YON.mjs → email-security-DwQJszzy.mjs} +71 -71
  101. package/dist/{email-sending-CpDSw-Eb.mjs → email-sending-mQd2qB-o.mjs} +21 -21
  102. package/dist/{error-sanitization-DG8WSzHe.mjs → error-sanitization-BkgtZ0Vx.mjs} +1 -1
  103. package/dist/error-sanitization-D069tpKk.mjs +2 -0
  104. package/dist/errors-C_bGcR0X.mjs +11 -0
  105. package/dist/field-extractors-MVOizTlB.mjs +8 -0
  106. package/dist/{firewall-CY_oem-d.mjs → firewall-DtSIlkfL.mjs} +19 -19
  107. package/dist/flagship-9E5gwNki.mjs +24 -0
  108. package/dist/{fraud-CSUKLh8X.mjs → fraud-DjqhVJdf.mjs} +3 -3
  109. package/dist/generate-BzOnRBij.mjs +2 -0
  110. package/dist/generate-DfxZtpn9.mjs +2 -0
  111. package/dist/get-3XNn0upb.mjs +2 -0
  112. package/dist/{global-options-DiKj2cQy.mjs → global-options-4pyD17hd.mjs} +1 -1
  113. package/dist/{google-tag-gateway-C2skt6t-.mjs → google-tag-gateway-BM5GmCZa.mjs} +3 -3
  114. package/dist/gt-BV-jij5q.mjs +4 -0
  115. package/dist/healthchecks-CEZ5f3XJ.mjs +20 -0
  116. package/dist/{hyperdrive-FcBbpew4.mjs → hyperdrive-Da8hCcUw.mjs} +12 -12
  117. package/dist/{iam-8T74DNhH.mjs → iam-BK6N7NdQ.mjs} +31 -31
  118. package/dist/{images-C3JUaf6b.mjs → images-3bCWE6Ml.mjs} +33 -33
  119. package/dist/index.mjs +1 -1
  120. package/dist/init-BgCF9K8h.mjs +43 -0
  121. package/dist/intel-BQ58CJLt.mjs +62 -0
  122. package/dist/{interactive-CKHdGvkh.mjs → interactive-JBA3qOUa.mjs} +9 -9
  123. package/dist/{internal-CamuESs0.mjs → internal-CWPz0sBF.mjs} +2 -2
  124. package/dist/{ips-DinCNnWj.mjs → ips-3WYegiVW.mjs} +2 -2
  125. package/dist/k2-Bc_hjmiv.mjs +10 -0
  126. package/dist/kv-DbShBhhg.mjs +12 -0
  127. package/dist/{lazy-command-WB1FOuew.mjs → lazy-command-CbGyEqFK.mjs} +1 -1
  128. package/dist/leaked-credential-checks-DgPefxP9.mjs +16 -0
  129. package/dist/{live-B6AsI_E5.mjs → live-BTtMv1a6.mjs} +2 -2
  130. package/dist/load-balancers-C2hg52WA.mjs +84 -0
  131. package/dist/{local-CgBhtmON.mjs → local-B3zt9PXR.mjs} +1 -1
  132. package/dist/local-DRxctCh9.mjs +2 -0
  133. package/dist/local-runtime-BOnDiMDc.mjs +2 -0
  134. package/dist/{log-BWdaOGOW.mjs → log-Brx-wjJW.mjs} +3 -3
  135. package/dist/log-DBAHla_W.mjs +2 -0
  136. package/dist/login-CK3nn9a5.mjs +2 -0
  137. package/dist/{login-BJHaTERg.mjs → login-DiR-buzS.mjs} +3 -3
  138. package/dist/{logpush-qhlxsioM.mjs → logpush-CitvUX-J.mjs} +22 -22
  139. package/dist/{logs-bI54CJ0w.mjs → logs-CfWHu4Ir.mjs} +14 -16
  140. package/dist/magic-network-monitoring-gU6yzzML.mjs +34 -0
  141. package/dist/{magic-transit-BwDyySHJ.mjs → magic-transit-B3JY9u5o.mjs} +139 -139
  142. package/dist/{managed-defense-CsBBkfeQ.mjs → managed-defense-C_EQ-NYp.mjs} +9 -9
  143. package/dist/managed-transforms-DIGl6JkM.mjs +8 -0
  144. package/dist/{mcp-CyI0sDmL.mjs → mcp-DqhQJVaz.mjs} +15 -15
  145. package/dist/{mesh-Czr0UCP4.mjs → mesh-DXVZBNDC.mjs} +12 -12
  146. package/dist/{migrate-DKDWYrz2.mjs → migrate-CmXyk9vX.mjs} +1 -1
  147. package/dist/{monetization-NUgfDtSy.mjs → monetization-CWg-mySr.mjs} +9 -9
  148. package/dist/{network-interconnects-DuIBe8fK.mjs → network-interconnects-DhfKL5tG.mjs} +17 -19
  149. package/dist/{network-B42zrBic.mjs → network-jtgq5eb4.mjs} +24 -24
  150. package/dist/o11y-eYYs59X9.mjs +88 -0
  151. package/dist/oauth-BgDZMd72.mjs +5 -0
  152. package/dist/{oauth-BLQ1-y3R.mjs → oauth-V37G-PaV.mjs} +1 -1
  153. package/dist/{observability-BxhJQCgZ.mjs → observability-CB72eC4T.mjs} +2 -2
  154. package/dist/ohttp-gateway-K9ToEft8.mjs +8 -0
  155. package/dist/organizations-BllV7l_c.mjs +70 -0
  156. package/dist/output-hFMAotFl.mjs +2 -0
  157. package/dist/package-oNVeacC9.mjs +2 -0
  158. package/dist/page-rules-BVmi-ZFW.mjs +35 -0
  159. package/dist/pages-5spcBpX1.mjs +48 -0
  160. package/dist/pay-per-crawl-BgsdGcBi.mjs +36 -0
  161. package/dist/{pay-per-use-VatiU-Nt.mjs → pay-per-use-CzmI1kEA.mjs} +16 -16
  162. package/dist/pipelines-CbtmLRxt.mjs +40 -0
  163. package/dist/{precursor-D3VH2MXT.mjs → precursor-Dk8YOKf_.mjs} +2 -2
  164. package/dist/previews-Bv1HMMtO.mjs +6 -0
  165. package/dist/progress-DE_G09u2.mjs +2 -0
  166. package/dist/project-settings-D_S-UC8I.mjs +3 -0
  167. package/dist/prompt-D274Im1O.mjs +4 -0
  168. package/dist/queues-DGCYUr4g.mjs +52 -0
  169. package/dist/r2-DtCk-Nfi.mjs +112 -0
  170. package/dist/{radar-CvLtu-Vr.mjs → radar-1CwqOsMZ.mjs} +150 -150
  171. package/dist/raw-fetch-DhlyWQtk.mjs +2 -0
  172. package/dist/{ready-gsGEaWLL.mjs → ready-CcoEA7M7.mjs} +2 -2
  173. package/dist/{realtime-DiCEgFTC.mjs → realtime-DFUxwIG5.mjs} +80 -81
  174. package/dist/registrar-Cl1snz8z.mjs +43 -0
  175. package/dist/registrar-sandbox-Cne9BVCZ.mjs +58 -0
  176. package/dist/{reporting-BiHgnT8L.mjs → reporting-D9FC-Z-3.mjs} +7 -7
  177. package/dist/request-headers-Bopp5lH_.mjs +2 -0
  178. package/dist/request-tracers-CSSB9_aW.mjs +4 -0
  179. package/dist/resource-sharing-D8yuzJm7.mjs +36 -0
  180. package/dist/{rules-CRhe_ca9.mjs → rules-DzmOQ3MB.mjs} +8 -8
  181. package/dist/rulesets-DsTGcgbc.mjs +42 -0
  182. package/dist/{rum-BfnWHW_d.mjs → rum-DrJLI93T.mjs} +14 -14
  183. package/dist/run-C5yPsiO2.mjs +2 -0
  184. package/dist/run-CXWkMU3x.mjs +2 -0
  185. package/dist/schema-CfZOW8Zw.mjs +2 -0
  186. package/dist/{schema-cache-BIo0Gi2H.mjs → schema-cache-CtqAs0PP.mjs} +1 -1
  187. package/dist/schema-flags-DO3kLYBu.mjs +4 -0
  188. package/dist/scim-0OufLKru.mjs +16 -0
  189. package/dist/{secrets-store-DgtzZRze.mjs → secrets-store-BQeLzFxv.mjs} +11 -11
  190. package/dist/{security-insights-SlUGW3F_.mjs → security-insights-D2pj8-O-.mjs} +20 -20
  191. package/dist/{security-txt-C3YS0REz.mjs → security-txt-SKtgW4n-.mjs} +4 -4
  192. package/dist/session-COdP8BXD.mjs +2 -0
  193. package/dist/shared-D_2KLpP3.mjs +2 -0
  194. package/dist/{signed-url-ClLk45_J.mjs → signed-url-CcE2zQ4Y.mjs} +2 -2
  195. package/dist/smart-shield-Dod9Gs6T.mjs +22 -0
  196. package/dist/snippets-DrrdpLnS.mjs +18 -0
  197. package/dist/spawn-DNf-Ge8d.mjs +5 -0
  198. package/dist/{spectrum-Cj0BMtg2.mjs → spectrum-CHBGZbZF.mjs} +11 -11
  199. package/dist/{speed-BrVeZRyX.mjs → speed-vOlHyG3v.mjs} +11 -11
  200. package/dist/sql-BCuLxGSf.mjs +4 -0
  201. package/dist/src-ByCoEqOw.mjs +133 -0
  202. package/dist/{ssl-Bx4LCutF.mjs → ssl-BA_dcVwF.mjs} +60 -62
  203. package/dist/startup-profile-CyQk_f_L.mjs +2 -0
  204. package/dist/{startup-profile-DqaYNT0b.mjs → startup-profile-uh-F0HRS.mjs} +3 -3
  205. package/dist/state-B6r-b_-d.mjs +2 -0
  206. package/dist/{state-BmzOLELo.mjs → state-CTLznbVs.mjs} +1 -1
  207. package/dist/{containers-DINLx5_i.mjs → static-assets-DGDoaJf1.mjs} +216 -210
  208. package/dist/stream-CzlqY8hq.mjs +89 -0
  209. package/dist/{tags-xVzjZxdt.mjs → tags-BLeaslAb.mjs} +8 -8
  210. package/dist/telemetry-COlodX5Z.mjs +2 -0
  211. package/dist/{telemetry-CJ9URio3.mjs → telemetry-DF7A5Bpk.mjs} +1 -1
  212. package/dist/{tenant-custom-nameservers-M7Fxqh2W.mjs → tenant-custom-nameservers-C5rh6jPf.mjs} +4 -4
  213. package/dist/tenants-CRirmhxS.mjs +13 -0
  214. package/dist/{tools-C-vmgYSv.mjs → tools-BRjRgZnj.mjs} +1 -1
  215. package/dist/tunnels-nLfIWPYT.mjs +27 -0
  216. package/dist/{turnstile-B_Ugzgom.mjs → turnstile-CZjXtBCr.mjs} +10 -10
  217. package/dist/ui-dWsVmFCG.mjs +2 -0
  218. package/dist/{update-check-DRr0eRhB.mjs → update-check-CXMdVBhW.mjs} +1 -1
  219. package/dist/{update-check-DHUo4FOJ.mjs → update-check-D_Oky9-u.mjs} +1 -1
  220. package/dist/update-check-worker.mjs +1 -1
  221. package/dist/{url-normalization-CZRQH_pJ.mjs → url-normalization-DTKgJHE8.mjs} +4 -4
  222. package/dist/url-scanner-9XW3zLaU.mjs +16 -0
  223. package/dist/user-Bk1BIqZ5.mjs +103 -0
  224. package/dist/vectorize-CgOfmWYq.mjs +30 -0
  225. package/dist/verify-B9ILCohg.mjs +2 -0
  226. package/dist/verify-BCuWaO-L.mjs +2 -0
  227. package/dist/version-CcuBNjqg.mjs +2 -0
  228. package/dist/waiting-rooms-C3nTKfK9.mjs +52 -0
  229. package/dist/{web-assets-CgQXsp8m.mjs → web-assets-CWU3jrit.mjs} +29 -29
  230. package/dist/web3-CRpQ5sl4.mjs +26 -0
  231. package/dist/workers-BZMvamn0.mjs +39 -0
  232. package/dist/{workers-for-platforms-5RkV9MVp.mjs → workers-for-platforms-C7F2ev-5.mjs} +18 -18
  233. package/dist/{workers-vpc-Bt4OQbwM.mjs → workers-vpc-ztEKvWmq.mjs} +6 -6
  234. package/dist/workflows-Dd88_Nqc.mjs +48 -0
  235. package/dist/{wrangler-migration-BbmGOu8l.mjs → wrangler-migration-BzMTJPdI.mjs} +302 -293
  236. package/dist/zaraz-BFK0p28R.mjs +22 -0
  237. package/dist/zero-trust-Cdjfp0Ie.mjs +1008 -0
  238. package/dist/{zones-DTAcguf6.mjs → zones-DDn5jk6I.mjs} +51 -51
  239. package/package.json +20 -20
  240. package/dist/ai-DqEN_hhg.mjs +0 -30
  241. package/dist/ai-audit-BmzOgt6x.mjs +0 -6
  242. package/dist/ai-gateway-B0uiYVHq.mjs +0 -74
  243. package/dist/ai-search-DbZIxdio.mjs +0 -74
  244. package/dist/alerting-BjGwBxZT.mjs +0 -52
  245. package/dist/analytics-C7kT_H-W.mjs +0 -17
  246. package/dist/analytics-engine-BHpcNSdD.mjs +0 -4
  247. package/dist/api-X3wKppsT.mjs +0 -3
  248. package/dist/argo-D1VONzu-.mjs +0 -14
  249. package/dist/auth-CspwoBlp.mjs +0 -2
  250. package/dist/auth-D499YE2n.mjs +0 -7
  251. package/dist/auth-FK2eLQ02.mjs +0 -2
  252. package/dist/billing-DRNww0iC.mjs +0 -24
  253. package/dist/body-parser-BKcZS9iJ.mjs +0 -2
  254. package/dist/brand-protection-BVICLzBc.mjs +0 -26
  255. package/dist/browser-run-CEk-NIgP.mjs +0 -40
  256. package/dist/build-CRm2TQq8.mjs +0 -2
  257. package/dist/build-DO_GNhRl.mjs +0 -2
  258. package/dist/builds-CoazxuN-.mjs +0 -64
  259. package/dist/cache-jlLJLSu7.mjs +0 -36
  260. package/dist/cf-hP0SOgC6.mjs +0 -18
  261. package/dist/chunk-SOBRPAPT-BKzUiNx_.mjs +0 -363
  262. package/dist/cli-Nqf58-1c.mjs +0 -4
  263. package/dist/cloudforce-one-CCaIBOAo.mjs +0 -318
  264. package/dist/command-BASaTmJc.mjs +0 -2
  265. package/dist/command-Bih1HLr3.mjs +0 -2
  266. package/dist/command-ByYf12-8.mjs +0 -2
  267. package/dist/command-C0qCuw03.mjs +0 -2
  268. package/dist/command-C2FVMd1b.mjs +0 -2
  269. package/dist/command-C4OgtX_x.mjs +0 -2
  270. package/dist/command-C5Kqc5Km.mjs +0 -2
  271. package/dist/command-CFxyp8Uo.mjs +0 -2
  272. package/dist/command-CZAR85ba.mjs +0 -2
  273. package/dist/command-CelQVrZL.mjs +0 -2
  274. package/dist/command-CrAlzysj.mjs +0 -2
  275. package/dist/command-MxFFWqMg.mjs +0 -2
  276. package/dist/connector-interrupts-CrTeSyaM.mjs +0 -6
  277. package/dist/containers-BOBEs1Gk.mjs +0 -75
  278. package/dist/create-BtmuVqVL.mjs +0 -2
  279. package/dist/csam-scanner-DOOUBeBM.mjs +0 -8
  280. package/dist/custom-csrs-DtdFo5YZ.mjs +0 -18
  281. package/dist/custom-hostnames-ccdlELaD.mjs +0 -24
  282. package/dist/custom-nameservers-p3gDjfva.mjs +0 -12
  283. package/dist/custom-pages-DAkKVzgR.mjs +0 -38
  284. package/dist/d1-CDIyRdh4.mjs +0 -52
  285. package/dist/deploy-BaC5Ty7F.mjs +0 -2
  286. package/dist/deploy-context-DTTgNGro.mjs +0 -56
  287. package/dist/deploy-input-mAy06fAI.mjs +0 -2
  288. package/dist/dev-De-HszNT.mjs +0 -4
  289. package/dist/dialog-D5lus4M4.mjs +0 -2
  290. package/dist/discover-6kAmVMPp.mjs +0 -2
  291. package/dist/discover-C06Syc2B.mjs +0 -2
  292. package/dist/dns-wMjf1t6-.mjs +0 -152
  293. package/dist/docs-BA7qslb2.mjs +0 -3
  294. package/dist/email-auth-BShMFXn4.mjs +0 -6
  295. package/dist/email-domains-CDSbVclP.mjs +0 -14
  296. package/dist/email-routing-CBCkbg_F.mjs +0 -44
  297. package/dist/error-sanitization-B025CygB.mjs +0 -2
  298. package/dist/errors-DatLr-iR.mjs +0 -11
  299. package/dist/field-extractors-BwGdMnTr.mjs +0 -8
  300. package/dist/flagship-Bat5EZCk.mjs +0 -24
  301. package/dist/generate-CeeWW3eX.mjs +0 -3
  302. package/dist/generate-D6V4Q58z.mjs +0 -2
  303. package/dist/get-Be821dio.mjs +0 -2
  304. package/dist/gt-BQkaDQDq.mjs +0 -3
  305. package/dist/healthchecks-uC43QKQd.mjs +0 -20
  306. package/dist/init-BEVVz4_P.mjs +0 -43
  307. package/dist/intel-DRy4rHrt.mjs +0 -62
  308. package/dist/k2-wsanPL3y.mjs +0 -10
  309. package/dist/kv-BLSPcEnH.mjs +0 -12
  310. package/dist/leaked-credential-checks-CSZd9hBQ.mjs +0 -16
  311. package/dist/load-balancers-gap5u4b1.mjs +0 -84
  312. package/dist/local-CFsO9Tkg.mjs +0 -2
  313. package/dist/local-runtime-CmlJ20uJ.mjs +0 -2
  314. package/dist/log-DZfik9Jk.mjs +0 -2
  315. package/dist/login-BfuOf-Yi.mjs +0 -2
  316. package/dist/magic-network-monitoring-CX3TaMTu.mjs +0 -34
  317. package/dist/managed-transforms-CUC-uAbW.mjs +0 -8
  318. package/dist/o11y-oEUpMC3O.mjs +0 -86
  319. package/dist/oauth-BmSFLp_s.mjs +0 -4
  320. package/dist/organization-CEnlXwrl.mjs +0 -70
  321. package/dist/organizations-Dt86ToxE.mjs +0 -4
  322. package/dist/origin-post-quantum-encryption-lX-uaJSL.mjs +0 -6
  323. package/dist/output-BJEgbI0G.mjs +0 -2
  324. package/dist/package-CiRJBRHO.mjs +0 -2
  325. package/dist/page-rules-J6LhwR-s.mjs +0 -38
  326. package/dist/pages-BksdnChs.mjs +0 -48
  327. package/dist/pay-per-crawl-BLcbHRoR.mjs +0 -36
  328. package/dist/pipelines-B5AoB3f3.mjs +0 -40
  329. package/dist/previews-DzJ85fsr.mjs +0 -6
  330. package/dist/progress-DLri-rA7.mjs +0 -2
  331. package/dist/project-settings-nBMEx1f-.mjs +0 -3
  332. package/dist/prompt-D0dXwuME.mjs +0 -4
  333. package/dist/queues-BsAck4To.mjs +0 -52
  334. package/dist/r2-BYjdHDEZ.mjs +0 -112
  335. package/dist/raw-fetch-DQeDx1wT.mjs +0 -2
  336. package/dist/registrar-D4wdgWpo.mjs +0 -43
  337. package/dist/registrar-sandbox-B6yopzdG.mjs +0 -58
  338. package/dist/request-headers-CoxHUNcB.mjs +0 -2
  339. package/dist/request-tracers-817HTytF.mjs +0 -4
  340. package/dist/resource-sharing-CW9xxtq5.mjs +0 -36
  341. package/dist/rulesets-CKyc-Xlx.mjs +0 -42
  342. package/dist/run-Ciw_GIrC.mjs +0 -2
  343. package/dist/run-DD45EQTm.mjs +0 -2
  344. package/dist/schema-DuLIZRhA.mjs +0 -2
  345. package/dist/schema-flags-DrqvwQNw.mjs +0 -4
  346. package/dist/scim-C4iRWNYB.mjs +0 -16
  347. package/dist/session-D2yuwO4i.mjs +0 -2
  348. package/dist/shared--uVkAAd7.mjs +0 -2
  349. package/dist/smart-shield-Dn95hqUH.mjs +0 -22
  350. package/dist/snippets-BNUKOajz.mjs +0 -18
  351. package/dist/spawn-DuT4snxu.mjs +0 -5
  352. package/dist/sql-BX1pBqj3.mjs +0 -4
  353. package/dist/src-DPnUfK4c.mjs +0 -131
  354. package/dist/startup-profile-tZNb2HGz.mjs +0 -2
  355. package/dist/state-Uwfrmw5I.mjs +0 -2
  356. package/dist/stream-BRzr6yh0.mjs +0 -89
  357. package/dist/telemetry-Pt5GpCKD.mjs +0 -2
  358. package/dist/tunnels-DQVXKUKA.mjs +0 -27
  359. package/dist/ui-FYultowZ.mjs +0 -2
  360. package/dist/url-scanner-BH4PLy16.mjs +0 -16
  361. package/dist/user-Bn82Qw0Y.mjs +0 -103
  362. package/dist/vectorize-DoVVz_sh.mjs +0 -30
  363. package/dist/version-Zr2oF8mY.mjs +0 -2
  364. package/dist/waiting-rooms-QUW131o3.mjs +0 -52
  365. package/dist/web3-TY9s6Swn.mjs +0 -26
  366. package/dist/workers-B3uJqJKc.mjs +0 -39
  367. package/dist/workers-builds-BgGY0IGk.mjs +0 -14
  368. package/dist/workflows-6m85DdqF.mjs +0 -48
  369. package/dist/zaraz-8WSJ7l0L.mjs +0 -22
  370. package/dist/zero-trust-DK0cqDZv.mjs +0 -1022
@@ -1,19 +1,19 @@
1
1
  #!/usr/bin/env node
2
- import"./api-X3wKppsT.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{t}from"./local-CgBhtmON.mjs";import{i as n,n as r}from"./auth-FK2eLQ02.mjs";import{a as i,i as a,t as o}from"./context-Dp4CXG22.mjs";import{t as s}from"./output-BJEgbI0G.mjs";import{t as c}from"./dry-run-gy0Hl9xo.mjs";import{t as l}from"./progress-DLri-rA7.mjs";import{t as u}from"./run-Ciw_GIrC.mjs";import"./telemetry-Pt5GpCKD.mjs";import{a as d,n as f,t as p}from"./body-parser-BKcZS9iJ.mjs";import{n as m}from"./input-validation-D7z60HJH.mjs";import{a as h,i as g,n as _}from"./prompt-D0dXwuME.mjs";var v={method:`POST`,path:t=>e`/zones/${t.zone_id}/schema_validation/schemas`,body:`json`,constants:{kind:`openapi_v3`}};function ee(e){return e.usage(`$0 api-security schema-validation schemas create
2
+ import"./api-Dnt6lRJG.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{i as t,n}from"./auth-DA1PHaHi.mjs";import{o as r,r as i,t as a}from"./body-parser-HN91kAf0.mjs";import{a as o,i as s,t as c}from"./context-BGm5_wTT.mjs";import{t as l}from"./dry-run-qsnRlRk6.mjs";import{n as u}from"./input-validation-D7z60HJH.mjs";import{t as d}from"./output-hFMAotFl.mjs";import{t as f}from"./run-CXWkMU3x.mjs";import{t as p}from"./progress-DE_G09u2.mjs";import{a as m,i as h,n as g}from"./prompt-D274Im1O.mjs";import"./telemetry-COlodX5Z.mjs";import{t as _}from"./local-B3zt9PXR.mjs";var v={method:`POST`,path:t=>e`/zones/${t.zone_id}/schema_validation/schemas`,body:`json`,constants:{kind:`openapi_v3`}};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`]}).coerce(`kind`,e=>m(e,`kind`,`text`)).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 y={command:`create`,describe:`Upload a schema`,builder:ee,handler:async e=>u({command:`api-security schema-validation schemas create`,classification:{safeFlags:[`kind`,`validation-enabled`,`dry-run`]}},e,async()=>{if(e.dryRun){c({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?p({kind:e.kind,name:m(e.name,`name`,`text`),source:m(e.source,`source`,`text`),validation_enabled:e[`validation-enabled`]}):f(e.body)});return}let t=await r(e),n=await a({zone:e.zone},t,{quiet:e.quiet});if(e.zoneId=n,e.body){let r=f(e.body),i=await l(`Creating`,async()=>t.send(v,{body:r,zone_id:n}));s(i,{successLabel:`Created`});return}if(e.kind===void 0&&(e.kind=await g(`kind`,`The kind of the schema`,[`openapi_v3`])),e.name===void 0&&(e.name=await h(`name`,`A human-readable name for the schema`)),e.source===void 0&&(e.source=await h(`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=p({kind:e.kind,name:m(e.name,`name`,`text`),source:m(e.source,`source`,`text`),validation_enabled:e[`validation-enabled`]}),o=await l(`Creating`,async()=>t.send(v,{body:i,zone_id:n}));s(o,{successLabel:`Created`})})};var te={method:`DELETE`,path:t=>e`/zones/${t.zone_id}/schema_validation/schemas/${t.schema_id}`};function ne(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`]}).coerce(`kind`,e=>u(e,`kind`,`text`)).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 y={command:`create`,describe:`Upload a schema`,builder:ee,handler:async e=>f({command:`api-security schema-validation schemas create`,classification:{safeFlags:[`kind`,`validation-enabled`,`dry-run`]}},e,async()=>{if(e.dryRun){l({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?a({kind:e.kind,name:u(e.name,`name`,`text`),source:u(e.source,`source`,`text`),validation_enabled:e[`validation-enabled`]}):i(e.body)});return}let t=e.body===void 0?void 0:i(e.body),r=await n(e),o=await s({zone:e.zone},r,{quiet:e.quiet});if(e.zoneId=o,e.body!==void 0){let e=t,n=await p(`Creating`,async()=>r.send(v,{body:e,zone_id:o}));d(n,{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 c=a({kind:e.kind,name:u(e.name,`name`,`text`),source:u(e.source,`source`,`text`),validation_enabled:e[`validation-enabled`]}),f=await p(`Creating`,async()=>r.send(v,{body:c,zone_id:o}));d(f,{successLabel:`Created`})})};var te={method:`DELETE`,path:t=>e`/zones/${t.zone_id}/schema_validation/schemas/${t.schema_id}`};function ne(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 re={command:`delete <schema-id>`,describe:`Delete a schema`,builder:ne,handler:async e=>u({command:`api-security schema-validation schemas delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{if(e.dryRun){c({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 r(e),n=await a({zone:e.zone},t,{quiet:e.quiet});if(e.zoneId=n,!await _({force:!!e.force,message:`This operation permanently deletes the uploaded schema and removes its validation coverage.`}))return;let i=await l(`Deleting`,async()=>t.send(te,{zone_id:n,schema_id:e[`schema-id`]}));s(i,{successLabel:`Deleted`})})};var ie={method:`GET`,path:t=>e`/zones/${t.zone_id}/schema_validation/schemas/${t.schema_id}`,query:[`omit_source`]};function ae(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 re={command:`delete <schema-id>`,describe:`Delete a schema`,builder:ne,handler:async e=>f({command:`api-security schema-validation schemas delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{if(e.dryRun){l({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 n(e),r=await s({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.`}))return;let i=await p(`Deleting`,async()=>t.send(te,{zone_id:r,schema_id:e[`schema-id`]}));d(i,{successLabel:`Deleted`})})};var ie={method:`GET`,path:t=>e`/zones/${t.zone_id}/schema_validation/schemas/${t.schema_id}`,query:[`omit_source`]};function ae(e){return e.usage(`$0 api-security schema-validation schemas get <schema-id>
7
7
 
8
- 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 oe={command:`get <schema-id>`,describe:`Get details of a schema`,builder:ae,handler:async e=>u({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){c({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 n=await r(e),i=await a({zone:e.zone},n,{quiet:e.quiet});e.zoneId=i;let o=await l(`Loading`,async()=>n.send(ie,{zone_id:i,schema_id:e[`schema-id`],...t}));s(o,{successLabel:`Loaded`})})};var se={method:`GET`,path:t=>e`/zones/${t.zone_id}/schema_validation/schemas/hosts`,query:[`page`,`per_page`]};function ce(e){return e.usage(`$0 api-security schema-validation schemas hosts list
8
+ 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 oe={command:`get <schema-id>`,describe:`Get details of a schema`,builder:ae,handler:async e=>f({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){l({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 n(e),i=await s({zone:e.zone},r,{quiet:e.quiet});e.zoneId=i;let a=await p(`Loading`,async()=>r.send(ie,{zone_id:i,schema_id:e[`schema-id`],...t}));d(a,{successLabel:`Loaded`})})};var se={method:`GET`,path:t=>e`/zones/${t.zone_id}/schema_validation/schemas/hosts`,query:[`page`,`per_page`]};function ce(e){return e.usage(`$0 api-security schema-validation schemas hosts list
9
9
 
10
- 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 le={command:`list`,describe:`List hosts covered by uploaded schemas`,builder:ce,handler:async e=>u({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){c({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 n=await r(e),i=await a({zone:e.zone},n,{quiet:e.quiet});e.zoneId=i;let o=await l(`Loading`,async()=>n.send(se,{zone_id:i,...t}));s(o,{successLabel:`Loaded`})})},ue={command:`hosts`,describe:`Operations for schema-validation.schemas.hosts`,builder:e=>e.command(le).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var de={method:`GET`,path:t=>e`/zones/${t.zone_id}/schema_validation/schemas`,query:[`page`,`per_page`,`omit_source`,`validation_enabled`]};function fe(e){return e.usage(`$0 api-security schema-validation schemas list
10
+ 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 le={command:`list`,describe:`List hosts covered by uploaded schemas`,builder:ce,handler:async e=>f({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){l({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 n(e),i=await s({zone:e.zone},r,{quiet:e.quiet});e.zoneId=i;let a=await p(`Loading`,async()=>r.send(se,{zone_id:i,...t}));d(a,{successLabel:`Loaded`})})},ue={command:`hosts`,describe:`Operations for schema-validation.schemas.hosts`,builder:e=>e.command(le).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var de={method:`GET`,path:t=>e`/zones/${t.zone_id}/schema_validation/schemas`,query:[`page`,`per_page`,`omit_source`,`validation_enabled`]};function fe(e){return e.usage(`$0 api-security schema-validation schemas list
11
11
 
12
- 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 pe={command:`list`,describe:`List all uploaded schemas`,builder:fe,handler:async e=>u({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){c({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 n=await r(e),i=await a({zone:e.zone},n,{quiet:e.quiet});e.zoneId=i;let o=await l(`Loading`,async()=>n.send(de,{zone_id:i,...t}));s(o,{successLabel:`Loaded`})})};var me={method:`GET`,path:t=>e`/zones/${t.zone_id}/schema_validation/schemas/${t.schema_id}/operations`,query:[`feature`,`host`,`method`,`endpoint`,`page`,`per_page`,`operation_status`]};function he(e){return e.usage(`$0 api-security schema-validation schemas operations list
12
+ 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 pe={command:`list`,describe:`List all uploaded schemas`,builder:fe,handler:async e=>f({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){l({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 n(e),i=await s({zone:e.zone},r,{quiet:e.quiet});e.zoneId=i;let a=await p(`Loading`,async()=>r.send(de,{zone_id:i,...t}));d(a,{successLabel:`Loaded`})})};var me={method:`GET`,path:t=>e`/zones/${t.zone_id}/schema_validation/schemas/${t.schema_id}/operations`,query:[`feature`,`host`,`method`,`endpoint`,`page`,`per_page`,`operation_status`]};function he(e){return e.usage(`$0 api-security schema-validation schemas operations list
13
13
 
14
- 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`,array:!0,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`,array:!0,description:`Filter results to only include the specified hosts.`}).option(`method`,{type:`string`,array:!0,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 ge={command:`list`,describe:`Retrieve all operations from the schema`,builder:he,handler:async e=>u({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){c({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 n=await r(e),i=await a({zone:e.zone},n,{quiet:e.quiet});e.zoneId=i;let o=await l(`Loading`,async()=>n.send(me,{zone_id:i,schema_id:e[`schema-id`],...t}));s(o,{successLabel:`Loaded`})})},_e={command:`operations`,describe:`Operations for schema-validation.schemas.operations`,builder:e=>e.command(ge).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var b={method:`PATCH`,path:t=>e`/zones/${t.zone_id}/schema_validation/schemas/${t.schema_id}`,body:`json`};function ve(e){return e.usage(`$0 api-security schema-validation schemas set-validation <schema-id>
14
+ 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`,array:!0,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`,array:!0,description:`Filter results to only include the specified hosts.`}).option(`method`,{type:`string`,array:!0,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 ge={command:`list`,describe:`Retrieve all operations from the schema`,builder:he,handler:async e=>f({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){l({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 n(e),i=await s({zone:e.zone},r,{quiet:e.quiet});e.zoneId=i;let a=await p(`Loading`,async()=>r.send(me,{zone_id:i,schema_id:e[`schema-id`],...t}));d(a,{successLabel:`Loaded`})})},_e={command:`operations`,describe:`Operations for schema-validation.schemas.operations`,builder:e=>e.command(ge).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var b={method:`PATCH`,path:t=>e`/zones/${t.zone_id}/schema_validation/schemas/${t.schema_id}`,body:`json`};function ve(e){return e.usage(`$0 api-security schema-validation schemas set-validation <schema-id>
15
15
 
16
- 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 ye={command:`set-validation <schema-id>`,describe:`Set schema validation state`,builder:ve,handler:async e=>u({command:`api-security schema-validation schemas set-validation`,classification:{safeFlags:[`validation-enabled`,`dry-run`]}},e,async()=>{if(e.dryRun){c({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?p({validation_enabled:e[`validation-enabled`]}):f(e.body)});return}let t=await r(e),n=await a({zone:e.zone},t,{quiet:e.quiet});if(e.zoneId=n,e.body){let r=f(e.body),i=await l(`Updating`,async()=>t.send(b,{body:r,zone_id:n,schema_id:e[`schema-id`]}));s(i,{successLabel:`Updated`});return}let i=p({validation_enabled:e[`validation-enabled`]}),o=await l(`Updating`,async()=>t.send(b,{body:i,zone_id:n,schema_id:e[`schema-id`]}));s(o,{successLabel:`Updated`})})},be={command:`schemas`,describe:`Operations for schema-validation.schemas`,builder:e=>e.command(y).command(re).command(oe).command(pe).command(ye).command(ue).command(_e).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var x={method:`PATCH`,path:t=>e`/zones/${t.zone_id}/schema_validation/settings`,body:`json`};function S(e){return e.usage(`$0 api-security schema-validation settings edit
16
+ 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 ye={command:`set-validation <schema-id>`,describe:`Set schema validation state`,builder:ve,handler:async e=>f({command:`api-security schema-validation schemas set-validation`,classification:{safeFlags:[`validation-enabled`,`dry-run`]}},e,async()=>{if(e.dryRun){l({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?a({validation_enabled:e[`validation-enabled`]}):i(e.body)});return}let t=e.body===void 0?void 0:i(e.body),r=await n(e),o=await s({zone:e.zone},r,{quiet:e.quiet});if(e.zoneId=o,e.body!==void 0){let n=t,i=await p(`Updating`,async()=>r.send(b,{body:n,zone_id:o,schema_id:e[`schema-id`]}));d(i,{successLabel:`Updated`});return}let c=a({validation_enabled:e[`validation-enabled`]}),u=await p(`Updating`,async()=>r.send(b,{body:c,zone_id:o,schema_id:e[`schema-id`]}));d(u,{successLabel:`Updated`})})},be={command:`schemas`,describe:`Operations for schema-validation.schemas`,builder:e=>e.command(y).command(re).command(oe).command(pe).command(ye).command(ue).command(_e).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var x={method:`PATCH`,path:t=>e`/zones/${t.zone_id}/schema_validation/settings`,body:`json`};function S(e){return e.usage(`$0 api-security schema-validation settings edit
17
17
 
18
18
  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
19
19
  Mitigation actions are as follows:
@@ -21,23 +21,23 @@ Mitigation actions are as follows:
21
21
  - \`"log"\` - log request when request does not conform to schema
22
22
  - \`"block"\` - deny access to the site when request does not conform to schema
23
23
  - \`"none"\` - skip running schema validation
24
- `,choices:[`none`,`log`,`block`]}).coerce(`validation-default-mitigation-action`,e=>m(e,`validation-default-mitigation-action`,`text`)).option(`validation-override-mitigation-action`,{type:`string`,description:`When set, this overrides both zone level and operation level mitigation actions.
24
+ `,choices:[`none`,`log`,`block`]}).coerce(`validation-default-mitigation-action`,e=>u(e,`validation-default-mitigation-action`,`text`)).option(`validation-override-mitigation-action`,{type:`string`,description:`When set, this overrides both zone level and operation level mitigation actions.
25
25
 
26
26
  - \`"none"\` - skip running schema validation entirely for the request
27
27
  - \`null\` - clears any existing override
28
- `,choices:[`none`]}).coerce(`validation-override-mitigation-action`,e=>m(e,`validation-override-mitigation-action`,`text`)).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 C={command:`edit`,describe:`Edit global schema validation settings`,builder:S,handler:async e=>u({command:`api-security schema-validation settings edit`,classification:{safeFlags:[`validation-default-mitigation-action`,`validation-override-mitigation-action`,`dry-run`]}},e,async()=>{if(e.dryRun){c({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?p({validation_default_mitigation_action:e[`validation-default-mitigation-action`],validation_override_mitigation_action:e[`validation-override-mitigation-action`]}):f(e.body)});return}let t=await r(e),n=await a({zone:e.zone},t,{quiet:e.quiet});if(e.zoneId=n,e.body){let r=f(e.body),i=await l(`Updating`,async()=>t.send(x,{body:r,zone_id:n}));s(i,{successLabel:`Updated`});return}let i=p({validation_default_mitigation_action:e[`validation-default-mitigation-action`],validation_override_mitigation_action:e[`validation-override-mitigation-action`]}),o=await l(`Updating`,async()=>t.send(x,{body:i,zone_id:n}));s(o,{successLabel:`Updated`})})};var w={method:`GET`,path:t=>e`/zones/${t.zone_id}/schema_validation/settings`};function T(e){return e.usage(`$0 api-security schema-validation settings get
28
+ `,choices:[`none`]}).coerce(`validation-override-mitigation-action`,e=>u(e,`validation-override-mitigation-action`,`text`)).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 C={command:`edit`,describe:`Edit global schema validation settings`,builder:S,handler:async e=>f({command:`api-security schema-validation settings edit`,classification:{safeFlags:[`validation-default-mitigation-action`,`validation-override-mitigation-action`,`dry-run`]}},e,async()=>{if(e.dryRun){l({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?a({validation_default_mitigation_action:e[`validation-default-mitigation-action`],validation_override_mitigation_action:e[`validation-override-mitigation-action`]}):i(e.body)});return}let t=e.body===void 0?void 0:i(e.body),r=await n(e),o=await s({zone:e.zone},r,{quiet:e.quiet});if(e.zoneId=o,e.body!==void 0){let e=t,n=await p(`Updating`,async()=>r.send(x,{body:e,zone_id:o}));d(n,{successLabel:`Updated`});return}let c=a({validation_default_mitigation_action:e[`validation-default-mitigation-action`],validation_override_mitigation_action:e[`validation-override-mitigation-action`]}),u=await p(`Updating`,async()=>r.send(x,{body:c,zone_id:o}));d(u,{successLabel:`Updated`})})};var w={method:`GET`,path:t=>e`/zones/${t.zone_id}/schema_validation/settings`};function T(e){return e.usage(`$0 api-security schema-validation settings get
29
29
 
30
- 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 E={command:`get`,describe:`Get global schema validation settings`,builder:T,handler:async e=>u({command:`api-security schema-validation settings get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){c({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 r(e),n=await a({zone:e.zone},t,{quiet:e.quiet});e.zoneId=n;let i=await l(`Loading`,async()=>t.send(w,{zone_id:n}));s(i,{successLabel:`Loaded`})})};var D={method:`PATCH`,path:t=>e`/zones/${t.zone_id}/schema_validation/settings/operations`,body:`json`};function O(e){return e.usage(`$0 api-security schema-validation settings operations bulk-edit
30
+ 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 E={command:`get`,describe:`Get global schema validation settings`,builder:T,handler:async e=>f({command:`api-security schema-validation settings get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){l({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 n(e),r=await s({zone:e.zone},t,{quiet:e.quiet});e.zoneId=r;let i=await p(`Loading`,async()=>t.send(w,{zone_id:r}));d(i,{successLabel:`Loaded`})})};var D={method:`PATCH`,path:t=>e`/zones/${t.zone_id}/schema_validation/settings/operations`,body:`json`};function O(e){return e.usage(`$0 api-security schema-validation settings operations bulk-edit
31
31
 
32
- 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 k={command:`bulk-edit`,describe:`Bulk edit per-operation schema validation settings`,builder:O,handler:async e=>u({command:`api-security schema-validation settings operations bulk-edit`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){c({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:f(e.body)});return}let t=await r(e),i=await a({zone:e.zone},t,{quiet:e.quiet});if(e.zoneId=i,e.body){let n=f(e.body),r=await l(`Updating`,async()=>t.send(D,{body:n,zone_id:i}));s(r,{successLabel:`Updated`});return}let o=await l(`Updating`,async()=>n(t,`PATCH`,`/zones/${e.zoneId}/schema_validation/settings/operations`));s(o,{successLabel:`Updated`})})};var A={method:`DELETE`,path:t=>e`/zones/${t.zone_id}/schema_validation/settings/operations/${t.operation_id}`};function j(e){return e.usage(`$0 api-security schema-validation settings operations delete <operation-id>
32
+ 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 k={command:`bulk-edit`,describe:`Bulk edit per-operation schema validation settings`,builder:O,handler:async e=>f({command:`api-security schema-validation settings operations bulk-edit`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){l({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:i(e.body)});return}let r=e.body===void 0?void 0:i(e.body),a=await n(e),o=await s({zone:e.zone},a,{quiet:e.quiet});if(e.zoneId=o,e.body!==void 0){let e=r,t=await p(`Updating`,async()=>a.send(D,{body:e,zone_id:o}));d(t,{successLabel:`Updated`});return}let c=await p(`Updating`,async()=>t(a,`PATCH`,`/zones/${e.zoneId}/schema_validation/settings/operations`));d(c,{successLabel:`Updated`})})};var A={method:`DELETE`,path:t=>e`/zones/${t.zone_id}/schema_validation/settings/operations/${t.operation_id}`};function j(e){return e.usage(`$0 api-security schema-validation settings operations delete <operation-id>
33
33
 
34
- 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 M={command:`delete <operation-id>`,describe:`Delete per-operation schema validation setting`,builder:j,handler:async e=>u({command:`api-security schema-validation settings operations delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{if(e.dryRun){c({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 r(e),n=await a({zone:e.zone},t,{quiet:e.quiet});if(e.zoneId=n,!await _({force:!!e.force,message:`This operation deletes the operation-specific schema validation setting and restores the zone default.`}))return;let i=await l(`Deleting`,async()=>t.send(A,{zone_id:n,operation_id:e[`operation-id`]}));s(i,{successLabel:`Deleted`})})};var N={method:`GET`,path:t=>e`/zones/${t.zone_id}/schema_validation/settings/operations/${t.operation_id}`};function xe(e){return e.usage(`$0 api-security schema-validation settings operations get <operation-id>
34
+ 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 M={command:`delete <operation-id>`,describe:`Delete per-operation schema validation setting`,builder:j,handler:async e=>f({command:`api-security schema-validation settings operations delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{if(e.dryRun){l({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 n(e),r=await s({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.`}))return;let i=await p(`Deleting`,async()=>t.send(A,{zone_id:r,operation_id:e[`operation-id`]}));d(i,{successLabel:`Deleted`})})};var N={method:`GET`,path:t=>e`/zones/${t.zone_id}/schema_validation/settings/operations/${t.operation_id}`};function xe(e){return e.usage(`$0 api-security schema-validation settings operations get <operation-id>
35
35
 
36
- 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 Se={command:`get <operation-id>`,describe:`Get per-operation schema validation setting`,builder:xe,handler:async e=>u({command:`api-security schema-validation settings operations get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){c({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 r(e),n=await a({zone:e.zone},t,{quiet:e.quiet});e.zoneId=n;let i=await l(`Loading`,async()=>t.send(N,{zone_id:n,operation_id:e[`operation-id`]}));s(i,{successLabel:`Loaded`})})};var Ce={method:`GET`,path:t=>e`/zones/${t.zone_id}/schema_validation/settings/operations`,query:[`page`,`per_page`]};function we(e){return e.usage(`$0 api-security schema-validation settings operations list
36
+ 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 Se={command:`get <operation-id>`,describe:`Get per-operation schema validation setting`,builder:xe,handler:async e=>f({command:`api-security schema-validation settings operations get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){l({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 n(e),r=await s({zone:e.zone},t,{quiet:e.quiet});e.zoneId=r;let i=await p(`Loading`,async()=>t.send(N,{zone_id:r,operation_id:e[`operation-id`]}));d(i,{successLabel:`Loaded`})})};var Ce={method:`GET`,path:t=>e`/zones/${t.zone_id}/schema_validation/settings/operations`,query:[`page`,`per_page`]};function we(e){return e.usage(`$0 api-security schema-validation settings operations list
37
37
 
38
- 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 Te={command:`list`,describe:`List per-operation schema validation settings`,builder:we,handler:async e=>u({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){c({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 n=await r(e),i=await a({zone:e.zone},n,{quiet:e.quiet});e.zoneId=i;let o=await l(`Loading`,async()=>n.send(Ce,{zone_id:i,...t}));s(o,{successLabel:`Loaded`})})};var P={method:`PUT`,path:t=>e`/zones/${t.zone_id}/schema_validation/settings/operations/${t.operation_id}`,body:`json`};function Ee(e){return e.usage(`$0 api-security schema-validation settings operations update <operation-id>
38
+ 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 Te={command:`list`,describe:`List per-operation schema validation settings`,builder:we,handler:async e=>f({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){l({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 n(e),i=await s({zone:e.zone},r,{quiet:e.quiet});e.zoneId=i;let a=await p(`Loading`,async()=>r.send(Ce,{zone_id:i,...t}));d(a,{successLabel:`Loaded`})})};var P={method:`PUT`,path:t=>e`/zones/${t.zone_id}/schema_validation/settings/operations/${t.operation_id}`,body:`json`};function Ee(e){return e.usage(`$0 api-security schema-validation settings operations update <operation-id>
39
39
 
40
- 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`]}).coerce(`mitigation-action`,e=>m(e,`mitigation-action`,`text`)).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:`update <operation-id>`,describe:`Update per-operation schema validation setting`,builder:Ee,handler:async e=>u({command:`api-security schema-validation settings operations update`,classification:{safeFlags:[`mitigation-action`,`dry-run`]}},e,async()=>{if(e.dryRun){c({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?p({mitigation_action:e[`mitigation-action`]}):f(e.body)});return}let t=await r(e),n=await a({zone:e.zone},t,{quiet:e.quiet});if(e.zoneId=n,e.body){let r=f(e.body),i=await l(`Updating`,async()=>t.send(P,{body:r,zone_id:n,operation_id:e[`operation-id`]}));s(i,{successLabel:`Updated`});return}e[`mitigation-action`]===void 0&&(e[`mitigation-action`]=await g(`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=p({mitigation_action:e[`mitigation-action`]}),o=await l(`Updating`,async()=>t.send(P,{body:i,zone_id:n,operation_id:e[`operation-id`]}));s(o,{successLabel:`Updated`})})},Oe={command:`operations`,describe:`Operations for schema-validation.settings.operations`,builder:e=>e.command(k).command(M).command(Se).command(Te).command(De).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var F={method:`PUT`,path:t=>e`/zones/${t.zone_id}/schema_validation/settings`,body:`json`};function ke(e){return e.usage(`$0 api-security schema-validation settings update
40
+ 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`]}).coerce(`mitigation-action`,e=>u(e,`mitigation-action`,`text`)).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:`update <operation-id>`,describe:`Update per-operation schema validation setting`,builder:Ee,handler:async e=>f({command:`api-security schema-validation settings operations update`,classification:{safeFlags:[`mitigation-action`,`dry-run`]}},e,async()=>{if(e.dryRun){l({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?a({mitigation_action:e[`mitigation-action`]}):i(e.body)});return}let t=e.body===void 0?void 0:i(e.body),r=await n(e),o=await s({zone:e.zone},r,{quiet:e.quiet});if(e.zoneId=o,e.body!==void 0){let n=t,i=await p(`Updating`,async()=>r.send(P,{body:n,zone_id:o,operation_id:e[`operation-id`]}));d(i,{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 c=a({mitigation_action:e[`mitigation-action`]}),u=await p(`Updating`,async()=>r.send(P,{body:c,zone_id:o,operation_id:e[`operation-id`]}));d(u,{successLabel:`Updated`})})},Oe={command:`operations`,describe:`Operations for schema-validation.settings.operations`,builder:e=>e.command(k).command(M).command(Se).command(Te).command(De).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var F={method:`PUT`,path:t=>e`/zones/${t.zone_id}/schema_validation/settings`,body:`json`};function ke(e){return e.usage(`$0 api-security schema-validation settings update
41
41
 
42
42
  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
43
43
  Mitigation actions are as follows:
@@ -45,102 +45,102 @@ Mitigation actions are as follows:
45
45
  - \`"log"\` - log request when request does not conform to schema
46
46
  - \`"block"\` - deny access to the site when request does not conform to schema
47
47
  - \`"none"\` - skip running schema validation
48
- `,choices:[`none`,`log`,`block`]}).coerce(`validation-default-mitigation-action`,e=>m(e,`validation-default-mitigation-action`,`text`)).option(`validation-override-mitigation-action`,{type:`string`,description:`When set, this overrides both zone level and operation level mitigation actions.
48
+ `,choices:[`none`,`log`,`block`]}).coerce(`validation-default-mitigation-action`,e=>u(e,`validation-default-mitigation-action`,`text`)).option(`validation-override-mitigation-action`,{type:`string`,description:`When set, this overrides both zone level and operation level mitigation actions.
49
49
 
50
50
  - \`"none"\` - skip running schema validation entirely for the request
51
51
  - \`null\` - clears any existing override
52
- `,choices:[`none`]}).coerce(`validation-override-mitigation-action`,e=>m(e,`validation-override-mitigation-action`,`text`)).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 Ae={command:`update`,describe:`Update global schema validation settings`,builder:ke,handler:async e=>u({command:`api-security schema-validation settings update`,classification:{safeFlags:[`validation-default-mitigation-action`,`validation-override-mitigation-action`,`dry-run`]}},e,async()=>{if(e.dryRun){c({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?p({validation_default_mitigation_action:e[`validation-default-mitigation-action`],validation_override_mitigation_action:e[`validation-override-mitigation-action`]}):f(e.body)});return}let t=await r(e),n=await a({zone:e.zone},t,{quiet:e.quiet});if(e.zoneId=n,e.body){let r=f(e.body),i=await l(`Updating`,async()=>t.send(F,{body:r,zone_id:n}));s(i,{successLabel:`Updated`});return}e[`validation-default-mitigation-action`]===void 0&&(e[`validation-default-mitigation-action`]=await g(`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=p({validation_default_mitigation_action:e[`validation-default-mitigation-action`],validation_override_mitigation_action:e[`validation-override-mitigation-action`]}),o=await l(`Updating`,async()=>t.send(F,{body:i,zone_id:n}));s(o,{successLabel:`Updated`})})},je={command:`settings`,describe:`Operations for schema-validation.settings`,builder:e=>e.command(C).command(E).command(Ae).command(Oe).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},Me={command:`schema-validation`,describe:`Operations for schema-validation`,builder:e=>e.command(be).command(je).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var Ne={method:`GET`,path:t=>e`/zones/${t.zone_id}/api_gateway/configuration`,query:[`normalize`]};function Pe(e){return e.usage(`$0 api-security session-identifiers get
52
+ `,choices:[`none`]}).coerce(`validation-override-mitigation-action`,e=>u(e,`validation-override-mitigation-action`,`text`)).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 Ae={command:`update`,describe:`Update global schema validation settings`,builder:ke,handler:async e=>f({command:`api-security schema-validation settings update`,classification:{safeFlags:[`validation-default-mitigation-action`,`validation-override-mitigation-action`,`dry-run`]}},e,async()=>{if(e.dryRun){l({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?a({validation_default_mitigation_action:e[`validation-default-mitigation-action`],validation_override_mitigation_action:e[`validation-override-mitigation-action`]}):i(e.body)});return}let t=e.body===void 0?void 0:i(e.body),r=await n(e),o=await s({zone:e.zone},r,{quiet:e.quiet});if(e.zoneId=o,e.body!==void 0){let e=t,n=await p(`Updating`,async()=>r.send(F,{body:e,zone_id:o}));d(n,{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 c=a({validation_default_mitigation_action:e[`validation-default-mitigation-action`],validation_override_mitigation_action:e[`validation-override-mitigation-action`]}),u=await p(`Updating`,async()=>r.send(F,{body:c,zone_id:o}));d(u,{successLabel:`Updated`})})},je={command:`settings`,describe:`Operations for schema-validation.settings`,builder:e=>e.command(C).command(E).command(Ae).command(Oe).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},Me={command:`schema-validation`,describe:`Operations for schema-validation`,builder:e=>e.command(be).command(je).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var Ne={method:`GET`,path:t=>e`/zones/${t.zone_id}/api_gateway/configuration`,query:[`normalize`]};function Pe(e){return e.usage(`$0 api-security session-identifiers get
53
53
 
54
- 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 Fe={command:`get`,describe:`Get session identifier settings`,builder:Pe,handler:async e=>u({command:`api-security session-identifiers get`,classification:{safeFlags:[`normalize`,`dry-run`]}},e,async()=>{let t={normalize:e.normalize};if(e.dryRun){c({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 n=await r(e),i=await a({zone:e.zone},n,{quiet:e.quiet});e.zoneId=i;let o=await l(`Loading`,async()=>n.send(Ne,{zone_id:i,...t}));s(o,{successLabel:`Loaded`})})};var I={method:`PUT`,path:t=>e`/zones/${t.zone_id}/api_gateway/configuration`,query:[`normalize`],body:`json`};function Ie(e){return e.usage(`$0 api-security session-identifiers update
54
+ 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 Fe={command:`get`,describe:`Get session identifier settings`,builder:Pe,handler:async e=>f({command:`api-security session-identifiers get`,classification:{safeFlags:[`normalize`,`dry-run`]}},e,async()=>{let t={normalize:e.normalize};if(e.dryRun){l({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 n(e),i=await s({zone:e.zone},r,{quiet:e.quiet});e.zoneId=i;let a=await p(`Loading`,async()=>r.send(Ne,{zone_id:i,...t}));d(a,{successLabel:`Loaded`})})};var I={method:`PUT`,path:t=>e`/zones/${t.zone_id}/api_gateway/configuration`,query:[`normalize`],body:`json`};function Ie(e){return e.usage(`$0 api-security session-identifiers update
55
55
 
56
- 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 Le={command:`update`,describe:`Update session identifier settings`,builder:Ie,handler:async e=>u({command:`api-security session-identifiers update`,classification:{safeFlags:[`normalize`,`dry-run`]}},e,async()=>{let t={normalize:e.normalize};if(e.dryRun){c({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?p({auth_id_characteristics:d(e[`auth-id-characteristics`],`auth-id-characteristics`)}):f(e.body)});return}let n=await r(e),i=await a({zone:e.zone},n,{quiet:e.quiet});if(e.zoneId=i,e.body){let r=f(e.body);new URLSearchParams(Object.entries(t).filter(([,e])=>e!==void 0).map(([e,t])=>[e,String(t)])).toString();let a=await l(`Updating`,async()=>n.send(I,{body:r,zone_id:i,...t}));s(a,{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 o=p({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();let u=await l(`Updating`,async()=>n.send(I,{body:o,zone_id:i,...t}));s(u,{successLabel:`Updated`})})},Re={command:`session-identifiers`,describe:`Operations for session-identifiers`,builder:e=>e.command(Fe).command(Le).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var L={method:`POST`,path:t=>e`/zones/${t.zone_id}/token_validation/config`,body:`json`,constants:{token_type:`JWT`}};function ze(e){return e.usage(`$0 api-security token-validation configurations create
56
+ 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. Shape: [({"name": string, "type": "header" | "cookie"} | {"name": string, "type": "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 Le={command:`update`,describe:`Update session identifier settings`,builder:Ie,handler:async e=>f({command:`api-security session-identifiers update`,classification:{safeFlags:[`normalize`,`dry-run`]}},e,async()=>{let t={normalize:e.normalize};if(e.dryRun){l({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?a({auth_id_characteristics:r(e[`auth-id-characteristics`],`auth-id-characteristics`)}):i(e.body)});return}let o=e.body===void 0?void 0:i(e.body),c=await n(e),u=await s({zone:e.zone},c,{quiet:e.quiet});if(e.zoneId=u,e.body!==void 0){let e=o;new URLSearchParams(Object.entries(t).filter(([,e])=>e!==void 0).map(([e,t])=>[e,String(t)])).toString();let n=await p(`Updating`,async()=>c.send(I,{body:e,zone_id:u,...t}));d(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 f=a({auth_id_characteristics:r(e[`auth-id-characteristics`],`auth-id-characteristics`)});new URLSearchParams(Object.entries(t).filter(([,e])=>e!==void 0).map(([e,t])=>[e,String(t)])).toString();let m=await p(`Updating`,async()=>c.send(I,{body:f,zone_id:u,...t}));d(m,{successLabel:`Updated`})})},Re={command:`session-identifiers`,describe:`Operations for session-identifiers`,builder:e=>e.command(Fe).command(Le).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var L={method:`POST`,path:t=>e`/zones/${t.zone_id}/token_validation/config`,body:`json`,constants:{token_type:`JWT`}};function ze(e){return e.usage(`$0 api-security token-validation configurations create
57
57
 
58
- Creates a JWT validation configuration for the zone.`).option(`credentials-keys`,{type:`string`,description:`The credentials.keys field. Provide as a JSON array of objects or @path/to/file.json.`}).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`]}).coerce(`token-type`,e=>m(e,`token-type`,`text`)).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 Be={command:`create`,describe:`Create a token validation configuration`,builder:ze,handler:async e=>u({command:`api-security token-validation configurations create`,classification:{safeFlags:[`token-type`,`dry-run`]}},e,async()=>{if(e.dryRun){c({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?p({credentials:{keys:d(e[`credentials-keys`],`credentials-keys`)},description:m(e.description,`description`,`text`),title:m(e.title,`title`,`text`),token_type:e[`token-type`]}):f(e.body)});return}let t=await r(e),n=await a({zone:e.zone},t,{quiet:e.quiet});if(e.zoneId=n,e.body){let r=f(e.body),i=await l(`Creating`,async()=>t.send(L,{body:r,zone_id:n}));s(i,{successLabel:`Created`});return}if(e[`credentials-keys`]===void 0)throw Error(`--credentials-keys is required (or pass --body with this field set).`);e.description===void 0&&(e.description=await h(`description`,`The description field`)),e.title===void 0&&(e.title=await h(`title`,`The title field`)),e[`token-type`]===void 0&&(e[`token-type`]=await g(`token-type`,`The token_type field`,[`JWT`]));let i=p({credentials:{keys:d(e[`credentials-keys`],`credentials-keys`)},description:m(e.description,`description`,`text`),title:m(e.title,`title`,`text`),token_type:e[`token-type`]}),o=await l(`Creating`,async()=>t.send(L,{body:i,zone_id:n}));s(o,{successLabel:`Created`})})};var R={method:`PATCH`,path:t=>e`/zones/${t.zone_id}/token_validation/config/${t.config_id}/credentials`,body:`json`};function Ve(e){return e.usage(`$0 api-security token-validation configurations credentials edit <config-id>
58
+ Creates a JWT validation configuration for the zone.`).option(`credentials-keys`,{type:`string`,description:`The credentials.keys field. Provide as a JSON array of objects or @path/to/file.json. Shape: [(({"kid": string} & {"alg": "RS256" | "RS384" | "RS512" | ...more, "e": string, "kty": "RSA", "n": string}) | ({"kid": string} & {"kty": "EC", "x": string, "y": string} & {"alg": "ES256", "crv": "P-256"}) | ...more)].`}).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`]}).coerce(`token-type`,e=>u(e,`token-type`,`text`)).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 Be={command:`create`,describe:`Create a token validation configuration`,builder:ze,handler:async e=>f({command:`api-security token-validation configurations create`,classification:{safeFlags:[`token-type`,`dry-run`]}},e,async()=>{if(e.dryRun){l({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?a({credentials:{keys:r(e[`credentials-keys`],`credentials-keys`)},description:u(e.description,`description`,`text`),title:u(e.title,`title`,`text`),token_type:e[`token-type`]}):i(e.body)});return}let t=e.body===void 0?void 0:i(e.body),o=await n(e),c=await s({zone:e.zone},o,{quiet:e.quiet});if(e.zoneId=c,e.body!==void 0){let e=t,n=await p(`Creating`,async()=>o.send(L,{body:e,zone_id:c}));d(n,{successLabel:`Created`});return}if(e[`credentials-keys`]===void 0)throw Error(`--credentials-keys is required (or pass --body with this field set).`);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 f=a({credentials:{keys:r(e[`credentials-keys`],`credentials-keys`)},description:u(e.description,`description`,`text`),title:u(e.title,`title`,`text`),token_type:e[`token-type`]}),g=await p(`Creating`,async()=>o.send(L,{body:f,zone_id:c}));d(g,{successLabel:`Created`})})};var R={method:`PATCH`,path:t=>e`/zones/${t.zone_id}/token_validation/config/${t.config_id}/credentials`,body:`json`};function Ve(e){return e.usage(`$0 api-security token-validation configurations credentials edit <config-id>
59
59
 
60
- 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 He={command:`edit <config-id>`,describe:`Edit token validation credentials`,builder:Ve,handler:async e=>u({command:`api-security token-validation configurations credentials edit`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){c({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?p({keys:d(e.keys,`keys`)}):f(e.body)});return}let t=await r(e),n=await a({zone:e.zone},t,{quiet:e.quiet});if(e.zoneId=n,e.body){let r=f(e.body),i=await l(`Updating`,async()=>t.send(R,{body:r,zone_id:n,config_id:e[`config-id`]}));s(i,{successLabel:`Updated`});return}if(e.keys===void 0)throw Error(`--keys is required (or pass --body with this field set).`);let i=p({keys:d(e.keys,`keys`)}),o=await l(`Updating`,async()=>t.send(R,{body:i,zone_id:n,config_id:e[`config-id`]}));s(o,{successLabel:`Updated`})})};var z={method:`PUT`,path:t=>e`/zones/${t.zone_id}/token_validation/config/${t.config_id}/credentials`,body:`json`};function Ue(e){return e.usage(`$0 api-security token-validation configurations credentials update <config-id>
60
+ 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. Shape: [(({"kid": string} & {"alg": "RS256" | "RS384" | "RS512" | ...more, "e": string, "kty": "RSA", "n": string}) | ({"kid": string} & {"kty": "EC", "x": string, "y": string} & {"alg": "ES256", "crv": "P-256"}) | ...more)].`}).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 He={command:`edit <config-id>`,describe:`Edit token validation credentials`,builder:Ve,handler:async e=>f({command:`api-security token-validation configurations credentials edit`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){l({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?a({keys:r(e.keys,`keys`)}):i(e.body)});return}let t=e.body===void 0?void 0:i(e.body),o=await n(e),c=await s({zone:e.zone},o,{quiet:e.quiet});if(e.zoneId=c,e.body!==void 0){let n=t,r=await p(`Updating`,async()=>o.send(R,{body:n,zone_id:c,config_id:e[`config-id`]}));d(r,{successLabel:`Updated`});return}if(e.keys===void 0)throw Error(`--keys is required (or pass --body with this field set).`);let u=a({keys:r(e.keys,`keys`)}),f=await p(`Updating`,async()=>o.send(R,{body:u,zone_id:c,config_id:e[`config-id`]}));d(f,{successLabel:`Updated`})})};var z={method:`PUT`,path:t=>e`/zones/${t.zone_id}/token_validation/config/${t.config_id}/credentials`,body:`json`};function Ue(e){return e.usage(`$0 api-security token-validation configurations credentials update <config-id>
61
61
 
62
- 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 We={command:`update <config-id>`,describe:`Replace token validation credentials`,builder:Ue,handler:async e=>u({command:`api-security token-validation configurations credentials update`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){c({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?p({keys:d(e.keys,`keys`)}):f(e.body)});return}let t=await r(e),n=await a({zone:e.zone},t,{quiet:e.quiet});if(e.zoneId=n,e.body){let r=f(e.body),i=await l(`Updating`,async()=>t.send(z,{body:r,zone_id:n,config_id:e[`config-id`]}));s(i,{successLabel:`Updated`});return}if(e.keys===void 0)throw Error(`--keys is required (or pass --body with this field set).`);let i=p({keys:d(e.keys,`keys`)}),o=await l(`Updating`,async()=>t.send(z,{body:i,zone_id:n,config_id:e[`config-id`]}));s(o,{successLabel:`Updated`})})},Ge={command:`credentials`,describe:`Operations for token-validation.configurations.credentials`,builder:e=>e.command(He).command(We).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var Ke={method:`DELETE`,path:t=>e`/zones/${t.zone_id}/token_validation/config/${t.config_id}`};function qe(e){return e.usage(`$0 api-security token-validation configurations delete <config-id>
62
+ 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. Shape: [(({"kid": string} & {"alg": "RS256" | "RS384" | "RS512" | ...more, "e": string, "kty": "RSA", "n": string}) | ({"kid": string} & {"kty": "EC", "x": string, "y": string} & {"alg": "ES256", "crv": "P-256"}) | ...more)].`}).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 We={command:`update <config-id>`,describe:`Replace token validation credentials`,builder:Ue,handler:async e=>f({command:`api-security token-validation configurations credentials update`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){l({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?a({keys:r(e.keys,`keys`)}):i(e.body)});return}let t=e.body===void 0?void 0:i(e.body),o=await n(e),c=await s({zone:e.zone},o,{quiet:e.quiet});if(e.zoneId=c,e.body!==void 0){let n=t,r=await p(`Updating`,async()=>o.send(z,{body:n,zone_id:c,config_id:e[`config-id`]}));d(r,{successLabel:`Updated`});return}if(e.keys===void 0)throw Error(`--keys is required (or pass --body with this field set).`);let u=a({keys:r(e.keys,`keys`)}),f=await p(`Updating`,async()=>o.send(z,{body:u,zone_id:c,config_id:e[`config-id`]}));d(f,{successLabel:`Updated`})})},Ge={command:`credentials`,describe:`Operations for token-validation.configurations.credentials`,builder:e=>e.command(He).command(We).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var Ke={method:`DELETE`,path:t=>e`/zones/${t.zone_id}/token_validation/config/${t.config_id}`};function qe(e){return e.usage(`$0 api-security token-validation configurations delete <config-id>
63
63
 
64
- 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 Je={command:`delete <config-id>`,describe:`Delete a token validation configuration`,builder:qe,handler:async e=>u({command:`api-security token-validation configurations delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{if(e.dryRun){c({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 r(e),n=await a({zone:e.zone},t,{quiet:e.quiet});if(e.zoneId=n,!await _({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.`}))return;let i=await l(`Deleting`,async()=>t.send(Ke,{zone_id:n,config_id:e[`config-id`]}));s(i,{successLabel:`Deleted`})})};var B={method:`PATCH`,path:t=>e`/zones/${t.zone_id}/token_validation/config/${t.config_id}`,body:`json`};function Ye(e){return e.usage(`$0 api-security token-validation configurations edit <config-id>
64
+ 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 Je={command:`delete <config-id>`,describe:`Delete a token validation configuration`,builder:qe,handler:async e=>f({command:`api-security token-validation configurations delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{if(e.dryRun){l({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 n(e),r=await s({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.`}))return;let i=await p(`Deleting`,async()=>t.send(Ke,{zone_id:r,config_id:e[`config-id`]}));d(i,{successLabel:`Deleted`})})};var B={method:`PATCH`,path:t=>e`/zones/${t.zone_id}/token_validation/config/${t.config_id}`,body:`json`};function Ye(e){return e.usage(`$0 api-security token-validation configurations edit <config-id>
65
65
 
66
- 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 Xe={command:`edit <config-id>`,describe:`Edit a token validation configuration`,builder:Ye,handler:async e=>u({command:`api-security token-validation configurations edit`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){c({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?p({description:m(e.description,`description`,`text`),title:m(e.title,`title`,`text`)}):f(e.body)});return}let t=await r(e),n=await a({zone:e.zone},t,{quiet:e.quiet});if(e.zoneId=n,e.body){let r=f(e.body),i=await l(`Updating`,async()=>t.send(B,{body:r,zone_id:n,config_id:e[`config-id`]}));s(i,{successLabel:`Updated`});return}let i=p({description:m(e.description,`description`,`text`),title:m(e.title,`title`,`text`)}),o=await l(`Updating`,async()=>t.send(B,{body:i,zone_id:n,config_id:e[`config-id`]}));s(o,{successLabel:`Updated`})})};var Ze={method:`GET`,path:t=>e`/zones/${t.zone_id}/token_validation/config/${t.config_id}`};function Qe(e){return e.usage(`$0 api-security token-validation configurations get <config-id>
66
+ 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 Xe={command:`edit <config-id>`,describe:`Edit a token validation configuration`,builder:Ye,handler:async e=>f({command:`api-security token-validation configurations edit`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){l({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?a({description:u(e.description,`description`,`text`),title:u(e.title,`title`,`text`)}):i(e.body)});return}let t=e.body===void 0?void 0:i(e.body),r=await n(e),o=await s({zone:e.zone},r,{quiet:e.quiet});if(e.zoneId=o,e.body!==void 0){let n=t,i=await p(`Updating`,async()=>r.send(B,{body:n,zone_id:o,config_id:e[`config-id`]}));d(i,{successLabel:`Updated`});return}let c=a({description:u(e.description,`description`,`text`),title:u(e.title,`title`,`text`)}),f=await p(`Updating`,async()=>r.send(B,{body:c,zone_id:o,config_id:e[`config-id`]}));d(f,{successLabel:`Updated`})})};var Ze={method:`GET`,path:t=>e`/zones/${t.zone_id}/token_validation/config/${t.config_id}`};function Qe(e){return e.usage(`$0 api-security token-validation configurations get <config-id>
67
67
 
68
- 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 $e={command:`get <config-id>`,describe:`Get a token validation configuration`,builder:Qe,handler:async e=>u({command:`api-security token-validation configurations get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){c({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 r(e),n=await a({zone:e.zone},t,{quiet:e.quiet});e.zoneId=n;let i=await l(`Loading`,async()=>t.send(Ze,{zone_id:n,config_id:e[`config-id`]}));s(i,{successLabel:`Loaded`})})};var et={method:`GET`,path:t=>e`/zones/${t.zone_id}/token_validation/config`,query:[`page`,`per_page`]};function tt(e){return e.usage(`$0 api-security token-validation configurations list
68
+ 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 $e={command:`get <config-id>`,describe:`Get a token validation configuration`,builder:Qe,handler:async e=>f({command:`api-security token-validation configurations get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){l({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 n(e),r=await s({zone:e.zone},t,{quiet:e.quiet});e.zoneId=r;let i=await p(`Loading`,async()=>t.send(Ze,{zone_id:r,config_id:e[`config-id`]}));d(i,{successLabel:`Loaded`})})};var et={method:`GET`,path:t=>e`/zones/${t.zone_id}/token_validation/config`,query:[`page`,`per_page`]};function tt(e){return e.usage(`$0 api-security token-validation configurations list
69
69
 
70
- 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 nt={command:`list`,describe:`List token validation configurations`,builder:tt,handler:async e=>u({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){c({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 n=await r(e),i=await a({zone:e.zone},n,{quiet:e.quiet});e.zoneId=i;let o=await l(`Loading`,async()=>n.send(et,{zone_id:i,...t}));s(o,{successLabel:`Loaded`})})},rt={command:`configurations`,describe:`Operations for token-validation.configurations`,builder:e=>e.command(Be).command(Je).command(Xe).command($e).command(nt).command(Ge).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var it={method:`POST`,path:t=>e`/zones/${t.zone_id}/token_validation/rules/bulk`,body:`json`};function at(e){return e.usage(`$0 api-security token-validation rules bulk-create
70
+ 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 nt={command:`list`,describe:`List token validation configurations`,builder:tt,handler:async e=>f({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){l({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 n(e),i=await s({zone:e.zone},r,{quiet:e.quiet});e.zoneId=i;let a=await p(`Loading`,async()=>r.send(et,{zone_id:i,...t}));d(a,{successLabel:`Loaded`})})},rt={command:`configurations`,describe:`Operations for token-validation.configurations`,builder:e=>e.command(Be).command(Je).command(Xe).command($e).command(nt).command(Ge).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var it={method:`POST`,path:t=>e`/zones/${t.zone_id}/token_validation/rules/bulk`,body:`json`};function at(e){return e.usage(`$0 api-security token-validation rules bulk-create
71
71
 
72
- 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 ot={command:`bulk-create`,describe:`Create token validation rules`,builder:at,handler:async e=>u({command:`api-security token-validation rules bulk-create`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){c({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:f(e.body)});return}let t=await r(e),n=await a({zone:e.zone},t,{quiet:e.quiet});if(e.zoneId=n,e.body){let r=f(e.body),i=await l(`Creating`,async()=>t.send(it,{body:r,zone_id:n}));s(i,{successLabel:`Created`})}else if(e.body===void 0)throw Error(`--body is required for this command. Pass --body '<json>' or --body @path/to/file.json.`)})};var st={method:`PATCH`,path:t=>e`/zones/${t.zone_id}/token_validation/rules/bulk`,body:`json`};function ct(e){return e.usage(`$0 api-security token-validation rules bulk-edit
72
+ 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 ot={command:`bulk-create`,describe:`Create token validation rules`,builder:at,handler:async e=>f({command:`api-security token-validation rules bulk-create`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){l({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:i(e.body)});return}if(e.body===void 0)throw Error(`--body is required for this command. Pass --body '<json>' or --body @path/to/file.json.`);let t=e.body===void 0?void 0:i(e.body),r=await n(e),a=await s({zone:e.zone},r,{quiet:e.quiet});if(e.zoneId=a,e.body!==void 0){let e=t,n=await p(`Creating`,async()=>r.send(it,{body:e,zone_id:a}));d(n,{successLabel:`Created`})}})};var st={method:`PATCH`,path:t=>e`/zones/${t.zone_id}/token_validation/rules/bulk`,body:`json`};function ct(e){return e.usage(`$0 api-security token-validation rules bulk-edit
73
73
 
74
- 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 lt={command:`bulk-edit`,describe:`Edit token validation rules`,builder:ct,handler:async e=>u({command:`api-security token-validation rules bulk-edit`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){c({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:f(e.body)});return}let t=await r(e),n=await a({zone:e.zone},t,{quiet:e.quiet});if(e.zoneId=n,e.body){let r=f(e.body),i=await l(`Updating`,async()=>t.send(st,{body:r,zone_id:n}));s(i,{successLabel:`Updated`})}else if(e.body===void 0)throw Error(`--body is required for this command. Pass --body '<json>' or --body @path/to/file.json.`)})};var V={method:`POST`,path:t=>e`/zones/${t.zone_id}/token_validation/rules`,body:`json`};function ut(e){return e.usage(`$0 api-security token-validation rules create
74
+ 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 lt={command:`bulk-edit`,describe:`Edit token validation rules`,builder:ct,handler:async e=>f({command:`api-security token-validation rules bulk-edit`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){l({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:i(e.body)});return}if(e.body===void 0)throw Error(`--body is required for this command. Pass --body '<json>' or --body @path/to/file.json.`);let t=e.body===void 0?void 0:i(e.body),r=await n(e),a=await s({zone:e.zone},r,{quiet:e.quiet});if(e.zoneId=a,e.body!==void 0){let e=t,n=await p(`Updating`,async()=>r.send(st,{body:e,zone_id:a}));d(n,{successLabel:`Updated`})}})};var V={method:`POST`,path:t=>e`/zones/${t.zone_id}/token_validation/rules`,body:`json`};function ut(e){return e.usage(`$0 api-security token-validation rules create
75
75
 
76
- 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`]}).coerce(`action`,e=>m(e,`action`,`text`)).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\`.
76
+ 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`]}).coerce(`action`,e=>u(e,`action`,`text`)).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\`.
77
77
 
78
78
  For details on expressions, see the [Cloudflare Docs](https://developers.cloudflare.com/api-shield/security/jwt-validation/).
79
- `}).option(`selector-exclude`,{type:`string`,description:"Ignore operations that were otherwise included by `include`. Provide as a JSON array of objects or @path/to/file.json."}).option(`selector-include`,{type:`string`,description:`Select all matching operations. Provide as a JSON array of objects or @path/to/file.json.`}).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 dt={command:`create`,describe:`Create a token validation rule`,builder:ut,handler:async e=>u({command:`api-security token-validation rules create`,classification:{safeFlags:[`action`,`enabled`,`dry-run`]}},e,async()=>{if(e.dryRun){c({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?p({action:e.action,description:m(e.description,`description`,`text`),enabled:e.enabled,expression:m(e.expression,`expression`,`text`),selector:{exclude:d(e[`selector-exclude`],`selector-exclude`),include:d(e[`selector-include`],`selector-include`)},title:m(e.title,`title`,`text`)}):f(e.body)});return}let t=await r(e),n=await a({zone:e.zone},t,{quiet:e.quiet});if(e.zoneId=n,e.body){let r=f(e.body),i=await l(`Creating`,async()=>t.send(V,{body:r,zone_id:n}));s(i,{successLabel:`Created`});return}if(e.action===void 0&&(e.action=await g(`action`,"Action to take on requests that match operations included in `selector` and fail `expression`.",[`log`,`block`])),e.description===void 0&&(e.description=await h(`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 h(`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 h(`title`,`A human-readable name for the rule.`));let i=p({action:e.action,description:m(e.description,`description`,`text`),enabled:e.enabled,expression:m(e.expression,`expression`,`text`),selector:{exclude:d(e[`selector-exclude`],`selector-exclude`),include:d(e[`selector-include`],`selector-include`)},title:m(e.title,`title`,`text`)}),o=await l(`Creating`,async()=>t.send(V,{body:i,zone_id:n}));s(o,{successLabel:`Created`})})};var ft={method:`DELETE`,path:t=>e`/zones/${t.zone_id}/token_validation/rules/${t.rule_id}`};function pt(e){return e.usage(`$0 api-security token-validation rules delete <rule-id>
79
+ `}).option(`selector-exclude`,{type:`string`,description:'Ignore operations that were otherwise included by `include`. Provide as a JSON array of objects or @path/to/file.json. Shape: [{"operation_ids"?: [string]}]. ? marks optional keys.'}).option(`selector-include`,{type:`string`,description:`Select all matching operations. Provide as a JSON array of objects or @path/to/file.json. Shape: [{"host"?: [string]}]. ? marks optional keys.`}).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 dt={command:`create`,describe:`Create a token validation rule`,builder:ut,handler:async e=>f({command:`api-security token-validation rules create`,classification:{safeFlags:[`action`,`enabled`,`dry-run`]}},e,async()=>{if(e.dryRun){l({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?a({action:e.action,description:u(e.description,`description`,`text`),enabled:e.enabled,expression:u(e.expression,`expression`,`text`),selector:{exclude:r(e[`selector-exclude`],`selector-exclude`),include:r(e[`selector-include`],`selector-include`)},title:u(e.title,`title`,`text`)}):i(e.body)});return}let t=e.body===void 0?void 0:i(e.body),o=await n(e),c=await s({zone:e.zone},o,{quiet:e.quiet});if(e.zoneId=c,e.body!==void 0){let e=t,n=await p(`Creating`,async()=>o.send(V,{body:e,zone_id:c}));d(n,{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 f=a({action:e.action,description:u(e.description,`description`,`text`),enabled:e.enabled,expression:u(e.expression,`expression`,`text`),selector:{exclude:r(e[`selector-exclude`],`selector-exclude`),include:r(e[`selector-include`],`selector-include`)},title:u(e.title,`title`,`text`)}),g=await p(`Creating`,async()=>o.send(V,{body:f,zone_id:c}));d(g,{successLabel:`Created`})})};var ft={method:`DELETE`,path:t=>e`/zones/${t.zone_id}/token_validation/rules/${t.rule_id}`};function pt(e){return e.usage(`$0 api-security token-validation rules delete <rule-id>
80
80
 
81
- 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 mt={command:`delete <rule-id>`,describe:`Delete a token validation rule`,builder:pt,handler:async e=>u({command:`api-security token-validation rules delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{if(e.dryRun){c({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 r(e),n=await a({zone:e.zone},t,{quiet:e.quiet});if(e.zoneId=n,!await _({force:!!e.force,message:`This operation deletes the token validation rule from the zone.`}))return;let i=await l(`Deleting`,async()=>t.send(ft,{zone_id:n,rule_id:e[`rule-id`]}));s(i,{successLabel:`Deleted`})})};var H={method:`PATCH`,path:t=>e`/zones/${t.zone_id}/token_validation/rules/${t.rule_id}`,body:`json`};function ht(e){return e.usage(`$0 api-security token-validation rules edit <rule-id>
81
+ 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 mt={command:`delete <rule-id>`,describe:`Delete a token validation rule`,builder:pt,handler:async e=>f({command:`api-security token-validation rules delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{if(e.dryRun){l({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 n(e),r=await s({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.`}))return;let i=await p(`Deleting`,async()=>t.send(ft,{zone_id:r,rule_id:e[`rule-id`]}));d(i,{successLabel:`Deleted`})})};var H={method:`PATCH`,path:t=>e`/zones/${t.zone_id}/token_validation/rules/${t.rule_id}`,body:`json`};function ht(e){return e.usage(`$0 api-security token-validation rules edit <rule-id>
82
82
 
83
- 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`]}).coerce(`action`,e=>m(e,`action`,`text`)).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\`.
83
+ 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`]}).coerce(`action`,e=>u(e,`action`,`text`)).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\`.
84
84
 
85
85
  For details on expressions, see the [Cloudflare Docs](https://developers.cloudflare.com/api-shield/security/jwt-validation/).
86
- `}).option(`selector-exclude`,{type:`string`,description:"Ignore operations that were otherwise included by `include`. Provide as a JSON array of objects or @path/to/file.json."}).option(`selector-include`,{type:`string`,description:`Select all matching operations. Provide as a JSON array of objects or @path/to/file.json.`}).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 gt={command:`edit <rule-id>`,describe:`Edit a token validation rule`,builder:ht,handler:async e=>u({command:`api-security token-validation rules edit`,classification:{safeFlags:[`action`,`enabled`,`dry-run`]}},e,async()=>{if(e.dryRun){c({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?p({action:e.action,description:m(e.description,`description`,`text`),enabled:e.enabled,expression:m(e.expression,`expression`,`text`),selector:{exclude:d(e[`selector-exclude`],`selector-exclude`),include:d(e[`selector-include`],`selector-include`)},title:m(e.title,`title`,`text`),position:{index:e[`position-index`],before:m(e[`position-before`],`position-before`,`text`),after:m(e[`position-after`],`position-after`,`text`)}}):f(e.body)});return}let t=await r(e),n=await a({zone:e.zone},t,{quiet:e.quiet});if(e.zoneId=n,e.body){let r=f(e.body),i=await l(`Updating`,async()=>t.send(H,{body:r,zone_id:n,rule_id:e[`rule-id`]}));s(i,{successLabel:`Updated`});return}let i=p({action:e.action,description:m(e.description,`description`,`text`),enabled:e.enabled,expression:m(e.expression,`expression`,`text`),selector:{exclude:d(e[`selector-exclude`],`selector-exclude`),include:d(e[`selector-include`],`selector-include`)},title:m(e.title,`title`,`text`),position:{index:e[`position-index`],before:m(e[`position-before`],`position-before`,`text`),after:m(e[`position-after`],`position-after`,`text`)}}),o=await l(`Updating`,async()=>t.send(H,{body:i,zone_id:n,rule_id:e[`rule-id`]}));s(o,{successLabel:`Updated`})})};var _t={method:`GET`,path:t=>e`/zones/${t.zone_id}/token_validation/rules/${t.rule_id}`};function vt(e){return e.usage(`$0 api-security token-validation rules get <rule-id>
86
+ `}).option(`selector-exclude`,{type:`string`,description:'Ignore operations that were otherwise included by `include`. Provide as a JSON array of objects or @path/to/file.json. Shape: [{"operation_ids"?: [string]}]. ? marks optional keys.'}).option(`selector-include`,{type:`string`,description:`Select all matching operations. Provide as a JSON array of objects or @path/to/file.json. Shape: [{"host"?: [string]}]. ? marks optional keys.`}).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 gt={command:`edit <rule-id>`,describe:`Edit a token validation rule`,builder:ht,handler:async e=>f({command:`api-security token-validation rules edit`,classification:{safeFlags:[`action`,`enabled`,`dry-run`]}},e,async()=>{if(e.dryRun){l({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?a({action:e.action,description:u(e.description,`description`,`text`),enabled:e.enabled,expression:u(e.expression,`expression`,`text`),selector:{exclude:r(e[`selector-exclude`],`selector-exclude`),include:r(e[`selector-include`],`selector-include`)},title:u(e.title,`title`,`text`),position:{index:e[`position-index`],before:u(e[`position-before`],`position-before`,`text`),after:u(e[`position-after`],`position-after`,`text`)}}):i(e.body)});return}let t=e.body===void 0?void 0:i(e.body),o=await n(e),c=await s({zone:e.zone},o,{quiet:e.quiet});if(e.zoneId=c,e.body!==void 0){let n=t,r=await p(`Updating`,async()=>o.send(H,{body:n,zone_id:c,rule_id:e[`rule-id`]}));d(r,{successLabel:`Updated`});return}let f=a({action:e.action,description:u(e.description,`description`,`text`),enabled:e.enabled,expression:u(e.expression,`expression`,`text`),selector:{exclude:r(e[`selector-exclude`],`selector-exclude`),include:r(e[`selector-include`],`selector-include`)},title:u(e.title,`title`,`text`),position:{index:e[`position-index`],before:u(e[`position-before`],`position-before`,`text`),after:u(e[`position-after`],`position-after`,`text`)}}),m=await p(`Updating`,async()=>o.send(H,{body:f,zone_id:c,rule_id:e[`rule-id`]}));d(m,{successLabel:`Updated`})})};var _t={method:`GET`,path:t=>e`/zones/${t.zone_id}/token_validation/rules/${t.rule_id}`};function vt(e){return e.usage(`$0 api-security token-validation rules get <rule-id>
87
87
 
88
- 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 yt={command:`get <rule-id>`,describe:`Get a token validation rule`,builder:vt,handler:async e=>u({command:`api-security token-validation rules get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){c({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 r(e),n=await a({zone:e.zone},t,{quiet:e.quiet});e.zoneId=n;let i=await l(`Loading`,async()=>t.send(_t,{zone_id:n,rule_id:e[`rule-id`]}));s(i,{successLabel:`Loaded`})})};var bt={method:`GET`,path:t=>e`/zones/${t.zone_id}/token_validation/rules`,query:[`per_page`,`page`,`token_configuration`,`action`,`enabled`,`id`,`rule_id`,`host`,`hostname`]};function xt(e){return e.usage(`$0 api-security token-validation rules list
88
+ 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 yt={command:`get <rule-id>`,describe:`Get a token validation rule`,builder:vt,handler:async e=>f({command:`api-security token-validation rules get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){l({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 n(e),r=await s({zone:e.zone},t,{quiet:e.quiet});e.zoneId=r;let i=await p(`Loading`,async()=>t.send(_t,{zone_id:r,rule_id:e[`rule-id`]}));d(i,{successLabel:`Loaded`})})};var bt={method:`GET`,path:t=>e`/zones/${t.zone_id}/token_validation/rules`,query:[`per_page`,`page`,`token_configuration`,`action`,`enabled`,`id`,`rule_id`,`host`,`hostname`]};function xt(e){return e.usage(`$0 api-security token-validation rules list
89
89
 
90
- 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`,array:!0,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 St={command:`list`,describe:`List token validation rules`,builder:xt,handler:async e=>u({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){c({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 n=await r(e),i=await a({zone:e.zone},n,{quiet:e.quiet});e.zoneId=i;let o=await l(`Loading`,async()=>n.send(bt,{zone_id:i,...t}));s(o,{successLabel:`Loaded`})})},Ct={command:`rules`,describe:`Operations for token-validation.rules`,builder:e=>e.command(ot).command(lt).command(dt).command(mt).command(gt).command(yt).command(St).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},wt={command:`token-validation`,describe:`Operations for token-validation`,builder:e=>e.command(rt).command(Ct).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var U={method:`POST`,path:t=>e`/accounts/${t.account_id}/vuln_scanner/credential_sets`,body:`json`};function Tt(e){return e.usage(`$0 api-security vulnerability-scanner credential-sets create
90
+ 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`,array:!0,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 St={command:`list`,describe:`List token validation rules`,builder:xt,handler:async e=>f({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){l({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 n(e),i=await s({zone:e.zone},r,{quiet:e.quiet});e.zoneId=i;let a=await p(`Loading`,async()=>r.send(bt,{zone_id:i,...t}));d(a,{successLabel:`Loaded`})})},Ct={command:`rules`,describe:`Operations for token-validation.rules`,builder:e=>e.command(ot).command(lt).command(dt).command(mt).command(gt).command(yt).command(St).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},wt={command:`token-validation`,describe:`Operations for token-validation`,builder:e=>e.command(rt).command(Ct).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var U={method:`POST`,path:t=>e`/accounts/${t.account_id}/vuln_scanner/credential_sets`,body:`json`};function Tt(e){return e.usage(`$0 api-security vulnerability-scanner credential-sets create
91
91
 
92
- 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 Et={command:`create`,describe:`Create credential set`,builder:Tt,handler:async e=>u({command:`api-security vulnerability-scanner credential-sets create`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await i();c({command:`cf api-security vulnerability-scanner credential-sets create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/vuln_scanner/credential_sets`,pathParams:{},bodyKind:`json`,body:e.body===void 0?p({name:m(e.name,`name`,`text`)}):f(e.body)});return}let n=await r(e),a=e.local?t:await o();if(e.accountId=a,e.body){let t=f(e.body),r=await l(`Creating`,async()=>n.send(U,{body:t,account_id:a}));s(r,{successLabel:`Created`});return}e.name===void 0&&(e.name=await h(`name`,`Human-readable name.`));let u=p({name:m(e.name,`name`,`text`)}),d=await l(`Creating`,async()=>n.send(U,{body:u,account_id:a}));s(d,{successLabel:`Created`})})};var W={method:`POST`,path:t=>e`/accounts/${t.account_id}/vuln_scanner/credential_sets/${t.credential_set_id}/credentials`,body:`json`};function Dt(e){return e.usage(`$0 api-security vulnerability-scanner credential-sets credentials create <credential-set-id>
92
+ 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 Et={command:`create`,describe:`Create credential set`,builder:Tt,handler:async e=>f({command:`api-security vulnerability-scanner credential-sets create`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await o();l({command:`cf api-security vulnerability-scanner credential-sets create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/vuln_scanner/credential_sets`,pathParams:{},bodyKind:`json`,body:e.body===void 0?a({name:u(e.name,`name`,`text`)}):i(e.body)});return}let t=e.body===void 0?void 0:i(e.body),r=await n(e),s=e.local?_:await c();if(e.accountId=s,e.body!==void 0){let e=t,n=await p(`Creating`,async()=>r.send(U,{body:e,account_id:s}));d(n,{successLabel:`Created`});return}e.name===void 0&&(e.name=await m(`name`,`Human-readable name.`));let f=a({name:u(e.name,`name`,`text`)}),h=await p(`Creating`,async()=>r.send(U,{body:f,account_id:s}));d(h,{successLabel:`Created`})})};var W={method:`POST`,path:t=>e`/accounts/${t.account_id}/vuln_scanner/credential_sets/${t.credential_set_id}/credentials`,body:`json`};function Dt(e){return e.usage(`$0 api-security vulnerability-scanner credential-sets credentials create <credential-set-id>
93
93
 
94
- 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`]}).coerce(`location`,e=>m(e,`location`,`text`)).option(`location-name`,{type:`string`,description:`Name of the header or cookie where the credential is attached.
94
+ 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`]}).coerce(`location`,e=>u(e,`location`,`text`)).option(`location-name`,{type:`string`,description:`Name of the header or cookie where the credential is attached.
95
95
  `}).option(`name`,{type:`string`,description:`Human-readable name.`}).option(`value`,{type:`string`,description:`The credential value (e.g. API key, session token). Write-only.
96
96
  Never returned in responses.
97
- `}).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 Ot={command:`create <credential-set-id>`,describe:`Create credential`,builder:Dt,handler:async e=>u({command:`api-security vulnerability-scanner credential-sets credentials create`,classification:{safeFlags:[`location`,`dry-run`]}},e,async()=>{if(e.dryRun){let t=await i();c({command:`cf api-security vulnerability-scanner credential-sets credentials create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/vuln_scanner/credential_sets/${e[`credential-set-id`]==null?`<credential-set-id>`:encodeURIComponent(String(e[`credential-set-id`]))}/credentials`,pathParams:{"credential-set-id":String(e[`credential-set-id`]??``)},bodyKind:`json`,body:e.body===void 0?p({location:e.location,location_name:m(e[`location-name`],`location-name`,`text`),name:m(e.name,`name`,`text`),value:m(e.value,`value`,`text`)}):f(e.body),sensitiveBodyPaths:[[`value`]]});return}let n=await r(e),a=e.local?t:await o();if(e.accountId=a,e.body){let t=f(e.body),r=await l(`Creating`,async()=>n.send(W,{body:t,account_id:a,credential_set_id:e[`credential-set-id`]}));s(r,{successLabel:`Created`});return}e.location===void 0&&(e.location=await g(`location`,`Where the credential is attached in outgoing requests.`,[`header`,`cookie`])),e[`location-name`]===void 0&&(e[`location-name`]=await h(`location-name`,`Name of the header or cookie where the credential is attached. `)),e.name===void 0&&(e.name=await h(`name`,`Human-readable name.`)),e.value===void 0&&(e.value=await h(`value`,`The credential value (e.g. API key, session token). Write-only. Never returned in responses. `,{kind:`secret`}));let u=p({location:e.location,location_name:m(e[`location-name`],`location-name`,`text`),name:m(e.name,`name`,`text`),value:m(e.value,`value`,`text`)}),d=await l(`Creating`,async()=>n.send(W,{body:u,account_id:a,credential_set_id:e[`credential-set-id`]}));s(d,{successLabel:`Created`})})};var kt={method:`DELETE`,path:t=>e`/accounts/${t.account_id}/vuln_scanner/credential_sets/${t.credential_set_id}/credentials/${t.credential_id}`};function At(e){return e.usage(`$0 api-security vulnerability-scanner credential-sets credentials delete <credential-id>
97
+ `}).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 Ot={command:`create <credential-set-id>`,describe:`Create credential`,builder:Dt,handler:async e=>f({command:`api-security vulnerability-scanner credential-sets credentials create`,classification:{safeFlags:[`location`,`dry-run`]}},e,async()=>{if(e.dryRun){let t=await o();l({command:`cf api-security vulnerability-scanner credential-sets credentials create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/vuln_scanner/credential_sets/${e[`credential-set-id`]==null?`<credential-set-id>`:encodeURIComponent(String(e[`credential-set-id`]))}/credentials`,pathParams:{"credential-set-id":String(e[`credential-set-id`]??``)},bodyKind:`json`,body:e.body===void 0?a({location:e.location,location_name:u(e[`location-name`],`location-name`,`text`),name:u(e.name,`name`,`text`),value:u(e.value,`value`,`text`)}):i(e.body),sensitiveBodyPaths:[[`value`]]});return}let t=e.body===void 0?void 0:i(e.body),r=await n(e),s=e.local?_:await c();if(e.accountId=s,e.body!==void 0){let n=t,i=await p(`Creating`,async()=>r.send(W,{body:n,account_id:s,credential_set_id:e[`credential-set-id`]}));d(i,{successLabel:`Created`});return}e.location===void 0&&(e.location=await h(`location`,`Where the credential is attached in outgoing requests.`,[`header`,`cookie`])),e[`location-name`]===void 0&&(e[`location-name`]=await m(`location-name`,`Name of the header or cookie where the credential is attached. `)),e.name===void 0&&(e.name=await m(`name`,`Human-readable name.`)),e.value===void 0&&(e.value=await m(`value`,`The credential value (e.g. API key, session token). Write-only. Never returned in responses. `,{kind:`secret`}));let f=a({location:e.location,location_name:u(e[`location-name`],`location-name`,`text`),name:u(e.name,`name`,`text`),value:u(e.value,`value`,`text`)}),g=await p(`Creating`,async()=>r.send(W,{body:f,account_id:s,credential_set_id:e[`credential-set-id`]}));d(g,{successLabel:`Created`})})};var kt={method:`DELETE`,path:t=>e`/accounts/${t.account_id}/vuln_scanner/credential_sets/${t.credential_set_id}/credentials/${t.credential_id}`};function At(e){return e.usage(`$0 api-security vulnerability-scanner credential-sets credentials delete <credential-id>
98
98
 
99
- 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 jt={command:`delete <credential-id>`,describe:`Delete credential`,builder:At,handler:async e=>u({command:`api-security vulnerability-scanner credential-sets credentials delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{if(e.dryRun){let t=await i();c({command:`cf api-security vulnerability-scanner credential-sets credentials delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/vuln_scanner/credential_sets/${e[`credential-set-id`]==null?`<credential-set-id>`:encodeURIComponent(String(e[`credential-set-id`]))}/credentials/${e[`credential-id`]==null?`<credential-id>`:encodeURIComponent(String(e[`credential-id`]))}`,pathParams:{"credential-set-id":String(e[`credential-set-id`]??``),"credential-id":String(e[`credential-id`]??``)},bodyKind:`none`});return}let n=await r(e),a=e.local?t:await o();if(e.accountId=a,!await _({force:!!e.force,message:`This operation permanently deletes the credential from the credential set.`}))return;let u=await l(`Deleting`,async()=>n.send(kt,{account_id:a,credential_set_id:e[`credential-set-id`],credential_id:e[`credential-id`]}));s(u,{successLabel:`Deleted`})})};var G={method:`PATCH`,path:t=>e`/accounts/${t.account_id}/vuln_scanner/credential_sets/${t.credential_set_id}/credentials/${t.credential_id}`,body:`json`};function Mt(e){return e.usage(`$0 api-security vulnerability-scanner credential-sets credentials edit <credential-id>
99
+ 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 jt={command:`delete <credential-id>`,describe:`Delete credential`,builder:At,handler:async e=>f({command:`api-security vulnerability-scanner credential-sets credentials delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{if(e.dryRun){let t=await o();l({command:`cf api-security vulnerability-scanner credential-sets credentials delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/vuln_scanner/credential_sets/${e[`credential-set-id`]==null?`<credential-set-id>`:encodeURIComponent(String(e[`credential-set-id`]))}/credentials/${e[`credential-id`]==null?`<credential-id>`:encodeURIComponent(String(e[`credential-id`]))}`,pathParams:{"credential-set-id":String(e[`credential-set-id`]??``),"credential-id":String(e[`credential-id`]??``)},bodyKind:`none`});return}let t=await n(e),r=e.local?_:await c();if(e.accountId=r,!await g({force:!!e.force,message:`This operation permanently deletes the credential from the credential set.`}))return;let i=await p(`Deleting`,async()=>t.send(kt,{account_id:r,credential_set_id:e[`credential-set-id`],credential_id:e[`credential-id`]}));d(i,{successLabel:`Deleted`})})};var G={method:`PATCH`,path:t=>e`/accounts/${t.account_id}/vuln_scanner/credential_sets/${t.credential_set_id}/credentials/${t.credential_id}`,body:`json`};function Mt(e){return e.usage(`$0 api-security vulnerability-scanner credential-sets credentials edit <credential-id>
100
100
 
101
- 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`]}).coerce(`location`,e=>m(e,`location`,`text`)).option(`location-name`,{type:`string`,description:`Name of the header or cookie where the credential is attached.
101
+ 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`]}).coerce(`location`,e=>u(e,`location`,`text`)).option(`location-name`,{type:`string`,description:`Name of the header or cookie where the credential is attached.
102
102
  `}).option(`name`,{type:`string`,description:`Human-readable name.`}).option(`value`,{type:`string`,description:`The credential value. Write-only. Never returned in responses.
103
- `}).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-id>`,describe:`Edit credential`,builder:Mt,handler:async e=>u({command:`api-security vulnerability-scanner credential-sets credentials edit`,classification:{safeFlags:[`location`,`dry-run`]}},e,async()=>{if(e.dryRun){let t=await i();c({command:`cf api-security vulnerability-scanner credential-sets credentials edit`,method:`PATCH`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/vuln_scanner/credential_sets/${e[`credential-set-id`]==null?`<credential-set-id>`:encodeURIComponent(String(e[`credential-set-id`]))}/credentials/${e[`credential-id`]==null?`<credential-id>`:encodeURIComponent(String(e[`credential-id`]))}`,pathParams:{"credential-set-id":String(e[`credential-set-id`]??``),"credential-id":String(e[`credential-id`]??``)},bodyKind:`json`,body:e.body===void 0?p({location:e.location,location_name:m(e[`location-name`],`location-name`,`text`),name:m(e.name,`name`,`text`),value:m(e.value,`value`,`text`)}):f(e.body),sensitiveBodyPaths:[[`value`]]});return}let n=await r(e),a=e.local?t:await o();if(e.accountId=a,e.body){let t=f(e.body),r=await l(`Updating`,async()=>n.send(G,{body:t,account_id:a,credential_set_id:e[`credential-set-id`],credential_id:e[`credential-id`]}));s(r,{successLabel:`Updated`});return}let u=p({location:e.location,location_name:m(e[`location-name`],`location-name`,`text`),name:m(e.name,`name`,`text`),value:m(e.value,`value`,`text`)}),d=await l(`Updating`,async()=>n.send(G,{body:u,account_id:a,credential_set_id:e[`credential-set-id`],credential_id:e[`credential-id`]}));s(d,{successLabel:`Updated`})})};var Pt={method:`GET`,path:t=>e`/accounts/${t.account_id}/vuln_scanner/credential_sets/${t.credential_set_id}/credentials/${t.credential_id}`};function Ft(e){return e.usage(`$0 api-security vulnerability-scanner credential-sets credentials get <credential-id>
103
+ `}).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-id>`,describe:`Edit credential`,builder:Mt,handler:async e=>f({command:`api-security vulnerability-scanner credential-sets credentials edit`,classification:{safeFlags:[`location`,`dry-run`]}},e,async()=>{if(e.dryRun){let t=await o();l({command:`cf api-security vulnerability-scanner credential-sets credentials edit`,method:`PATCH`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/vuln_scanner/credential_sets/${e[`credential-set-id`]==null?`<credential-set-id>`:encodeURIComponent(String(e[`credential-set-id`]))}/credentials/${e[`credential-id`]==null?`<credential-id>`:encodeURIComponent(String(e[`credential-id`]))}`,pathParams:{"credential-set-id":String(e[`credential-set-id`]??``),"credential-id":String(e[`credential-id`]??``)},bodyKind:`json`,body:e.body===void 0?a({location:e.location,location_name:u(e[`location-name`],`location-name`,`text`),name:u(e.name,`name`,`text`),value:u(e.value,`value`,`text`)}):i(e.body),sensitiveBodyPaths:[[`value`]]});return}let t=e.body===void 0?void 0:i(e.body),r=await n(e),s=e.local?_:await c();if(e.accountId=s,e.body!==void 0){let n=t,i=await p(`Updating`,async()=>r.send(G,{body:n,account_id:s,credential_set_id:e[`credential-set-id`],credential_id:e[`credential-id`]}));d(i,{successLabel:`Updated`});return}let f=a({location:e.location,location_name:u(e[`location-name`],`location-name`,`text`),name:u(e.name,`name`,`text`),value:u(e.value,`value`,`text`)}),m=await p(`Updating`,async()=>r.send(G,{body:f,account_id:s,credential_set_id:e[`credential-set-id`],credential_id:e[`credential-id`]}));d(m,{successLabel:`Updated`})})};var Pt={method:`GET`,path:t=>e`/accounts/${t.account_id}/vuln_scanner/credential_sets/${t.credential_set_id}/credentials/${t.credential_id}`};function Ft(e){return e.usage(`$0 api-security vulnerability-scanner credential-sets credentials get <credential-id>
104
104
 
105
- 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 It={command:`get <credential-id>`,describe:`Get credential`,builder:Ft,handler:async e=>u({command:`api-security vulnerability-scanner credential-sets credentials get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await i();c({command:`cf api-security vulnerability-scanner credential-sets credentials get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/vuln_scanner/credential_sets/${e[`credential-set-id`]==null?`<credential-set-id>`:encodeURIComponent(String(e[`credential-set-id`]))}/credentials/${e[`credential-id`]==null?`<credential-id>`:encodeURIComponent(String(e[`credential-id`]))}`,pathParams:{"credential-set-id":String(e[`credential-set-id`]??``),"credential-id":String(e[`credential-id`]??``)},bodyKind:`none`});return}let n=await r(e),a=e.local?t:await o();e.accountId=a;let u=await l(`Loading`,async()=>n.send(Pt,{account_id:a,credential_set_id:e[`credential-set-id`],credential_id:e[`credential-id`]}));s(u,{successLabel:`Loaded`})})};var Lt={method:`GET`,path:t=>e`/accounts/${t.account_id}/vuln_scanner/credential_sets/${t.credential_set_id}/credentials`,query:[`page`,`per_page`]};function Rt(e){return e.usage(`$0 api-security vulnerability-scanner credential-sets credentials list
105
+ 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 It={command:`get <credential-id>`,describe:`Get credential`,builder:Ft,handler:async e=>f({command:`api-security vulnerability-scanner credential-sets credentials get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await o();l({command:`cf api-security vulnerability-scanner credential-sets credentials get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/vuln_scanner/credential_sets/${e[`credential-set-id`]==null?`<credential-set-id>`:encodeURIComponent(String(e[`credential-set-id`]))}/credentials/${e[`credential-id`]==null?`<credential-id>`:encodeURIComponent(String(e[`credential-id`]))}`,pathParams:{"credential-set-id":String(e[`credential-set-id`]??``),"credential-id":String(e[`credential-id`]??``)},bodyKind:`none`});return}let t=await n(e),r=e.local?_:await c();e.accountId=r;let i=await p(`Loading`,async()=>t.send(Pt,{account_id:r,credential_set_id:e[`credential-set-id`],credential_id:e[`credential-id`]}));d(i,{successLabel:`Loaded`})})};var Lt={method:`GET`,path:t=>e`/accounts/${t.account_id}/vuln_scanner/credential_sets/${t.credential_set_id}/credentials`,query:[`page`,`per_page`]};function Rt(e){return e.usage(`$0 api-security vulnerability-scanner credential-sets credentials list
106
106
 
107
- 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 zt={command:`list`,describe:`List credentials`,builder:Rt,handler:async e=>u({command:`api-security vulnerability-scanner credential-sets credentials list`,classification:{safeFlags:[`dry-run`]}},e,async()=>{let n={page:e.page,per_page:e[`per-page`]};if(e.dryRun){let t=await i();c({command:`cf api-security vulnerability-scanner credential-sets credentials list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/vuln_scanner/credential_sets/${e[`credential-set-id`]==null?`<credential-set-id>`:encodeURIComponent(String(e[`credential-set-id`]))}/credentials`,pathParams:{"credential-set-id":String(e[`credential-set-id`]??``)},query:n,bodyKind:`none`});return}let a=await r(e),u=e.local?t:await o();e.accountId=u;let d=await l(`Loading`,async()=>a.send(Lt,{account_id:u,credential_set_id:e[`credential-set-id`],...n}));s(d,{successLabel:`Loaded`})})};var K={method:`PUT`,path:t=>e`/accounts/${t.account_id}/vuln_scanner/credential_sets/${t.credential_set_id}/credentials/${t.credential_id}`,body:`json`};function Bt(e){return e.usage(`$0 api-security vulnerability-scanner credential-sets credentials update <credential-id>
107
+ 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 zt={command:`list`,describe:`List credentials`,builder:Rt,handler:async e=>f({command:`api-security vulnerability-scanner credential-sets credentials list`,classification:{safeFlags:[`dry-run`]}},e,async()=>{let t={page:e.page,per_page:e[`per-page`]};if(e.dryRun){let n=await o();l({command:`cf api-security vulnerability-scanner credential-sets credentials list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${n??`<account-id>`}/vuln_scanner/credential_sets/${e[`credential-set-id`]==null?`<credential-set-id>`:encodeURIComponent(String(e[`credential-set-id`]))}/credentials`,pathParams:{"credential-set-id":String(e[`credential-set-id`]??``)},query:t,bodyKind:`none`});return}let r=await n(e),i=e.local?_:await c();e.accountId=i;let a=await p(`Loading`,async()=>r.send(Lt,{account_id:i,credential_set_id:e[`credential-set-id`],...t}));d(a,{successLabel:`Loaded`})})};var K={method:`PUT`,path:t=>e`/accounts/${t.account_id}/vuln_scanner/credential_sets/${t.credential_set_id}/credentials/${t.credential_id}`,body:`json`};function Bt(e){return e.usage(`$0 api-security vulnerability-scanner credential-sets credentials update <credential-id>
108
108
 
109
- 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`]}).coerce(`location`,e=>m(e,`location`,`text`)).option(`location-name`,{type:`string`,description:`Name of the header or cookie where the credential is attached.
109
+ 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`]}).coerce(`location`,e=>u(e,`location`,`text`)).option(`location-name`,{type:`string`,description:`Name of the header or cookie where the credential is attached.
110
110
  `}).option(`name`,{type:`string`,description:`Human-readable name.`}).option(`value`,{type:`string`,description:`The credential value. Write-only. Never returned in responses.
111
- `}).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 Vt={command:`update <credential-id>`,describe:`Update credential`,builder:Bt,handler:async e=>u({command:`api-security vulnerability-scanner credential-sets credentials update`,classification:{safeFlags:[`location`,`dry-run`]}},e,async()=>{if(e.dryRun){let t=await i();c({command:`cf api-security vulnerability-scanner credential-sets credentials update`,method:`PUT`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/vuln_scanner/credential_sets/${e[`credential-set-id`]==null?`<credential-set-id>`:encodeURIComponent(String(e[`credential-set-id`]))}/credentials/${e[`credential-id`]==null?`<credential-id>`:encodeURIComponent(String(e[`credential-id`]))}`,pathParams:{"credential-set-id":String(e[`credential-set-id`]??``),"credential-id":String(e[`credential-id`]??``)},bodyKind:`json`,body:e.body===void 0?p({location:e.location,location_name:m(e[`location-name`],`location-name`,`text`),name:m(e.name,`name`,`text`),value:m(e.value,`value`,`text`)}):f(e.body),sensitiveBodyPaths:[[`value`]]});return}let n=await r(e),a=e.local?t:await o();if(e.accountId=a,e.body){let t=f(e.body),r=await l(`Updating`,async()=>n.send(K,{body:t,account_id:a,credential_set_id:e[`credential-set-id`],credential_id:e[`credential-id`]}));s(r,{successLabel:`Updated`});return}e.location===void 0&&(e.location=await g(`location`,`Where the credential is attached in outgoing requests.`,[`header`,`cookie`])),e[`location-name`]===void 0&&(e[`location-name`]=await h(`location-name`,`Name of the header or cookie where the credential is attached. `)),e.name===void 0&&(e.name=await h(`name`,`Human-readable name.`)),e.value===void 0&&(e.value=await h(`value`,`The credential value. Write-only. Never returned in responses. `,{kind:`secret`}));let u=p({location:e.location,location_name:m(e[`location-name`],`location-name`,`text`),name:m(e.name,`name`,`text`),value:m(e.value,`value`,`text`)}),d=await l(`Updating`,async()=>n.send(K,{body:u,account_id:a,credential_set_id:e[`credential-set-id`],credential_id:e[`credential-id`]}));s(d,{successLabel:`Updated`})})},Ht={command:`credentials`,describe:`Operations for vulnerability-scanner.credential-sets.credentials`,builder:e=>e.command(Ot).command(jt).command(Nt).command(It).command(zt).command(Vt).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var Ut={method:`DELETE`,path:t=>e`/accounts/${t.account_id}/vuln_scanner/credential_sets/${t.credential_set_id}`};function Wt(e){return e.usage(`$0 api-security vulnerability-scanner credential-sets delete <credential-set-id>
111
+ `}).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 Vt={command:`update <credential-id>`,describe:`Update credential`,builder:Bt,handler:async e=>f({command:`api-security vulnerability-scanner credential-sets credentials update`,classification:{safeFlags:[`location`,`dry-run`]}},e,async()=>{if(e.dryRun){let t=await o();l({command:`cf api-security vulnerability-scanner credential-sets credentials update`,method:`PUT`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/vuln_scanner/credential_sets/${e[`credential-set-id`]==null?`<credential-set-id>`:encodeURIComponent(String(e[`credential-set-id`]))}/credentials/${e[`credential-id`]==null?`<credential-id>`:encodeURIComponent(String(e[`credential-id`]))}`,pathParams:{"credential-set-id":String(e[`credential-set-id`]??``),"credential-id":String(e[`credential-id`]??``)},bodyKind:`json`,body:e.body===void 0?a({location:e.location,location_name:u(e[`location-name`],`location-name`,`text`),name:u(e.name,`name`,`text`),value:u(e.value,`value`,`text`)}):i(e.body),sensitiveBodyPaths:[[`value`]]});return}let t=e.body===void 0?void 0:i(e.body),r=await n(e),s=e.local?_:await c();if(e.accountId=s,e.body!==void 0){let n=t,i=await p(`Updating`,async()=>r.send(K,{body:n,account_id:s,credential_set_id:e[`credential-set-id`],credential_id:e[`credential-id`]}));d(i,{successLabel:`Updated`});return}e.location===void 0&&(e.location=await h(`location`,`Where the credential is attached in outgoing requests.`,[`header`,`cookie`])),e[`location-name`]===void 0&&(e[`location-name`]=await m(`location-name`,`Name of the header or cookie where the credential is attached. `)),e.name===void 0&&(e.name=await m(`name`,`Human-readable name.`)),e.value===void 0&&(e.value=await m(`value`,`The credential value. Write-only. Never returned in responses. `,{kind:`secret`}));let f=a({location:e.location,location_name:u(e[`location-name`],`location-name`,`text`),name:u(e.name,`name`,`text`),value:u(e.value,`value`,`text`)}),g=await p(`Updating`,async()=>r.send(K,{body:f,account_id:s,credential_set_id:e[`credential-set-id`],credential_id:e[`credential-id`]}));d(g,{successLabel:`Updated`})})},Ht={command:`credentials`,describe:`Operations for vulnerability-scanner.credential-sets.credentials`,builder:e=>e.command(Ot).command(jt).command(Nt).command(It).command(zt).command(Vt).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var Ut={method:`DELETE`,path:t=>e`/accounts/${t.account_id}/vuln_scanner/credential_sets/${t.credential_set_id}`};function Wt(e){return e.usage(`$0 api-security vulnerability-scanner credential-sets delete <credential-set-id>
112
112
 
113
- 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 Gt={command:`delete <credential-set-id>`,describe:`Delete credential set`,builder:Wt,handler:async e=>u({command:`api-security vulnerability-scanner credential-sets delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{if(e.dryRun){let t=await i();c({command:`cf api-security vulnerability-scanner credential-sets delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/vuln_scanner/credential_sets/${e[`credential-set-id`]==null?`<credential-set-id>`:encodeURIComponent(String(e[`credential-set-id`]))}`,pathParams:{"credential-set-id":String(e[`credential-set-id`]??``)},bodyKind:`none`});return}let n=await r(e),a=e.local?t:await o();if(e.accountId=a,!await _({force:!!e.force,message:`This operation permanently deletes the credential set and every credential it contains.`}))return;let u=await l(`Deleting`,async()=>n.send(Ut,{account_id:a,credential_set_id:e[`credential-set-id`]}));s(u,{successLabel:`Deleted`})})};var q={method:`PATCH`,path:t=>e`/accounts/${t.account_id}/vuln_scanner/credential_sets/${t.credential_set_id}`,body:`json`};function Kt(e){return e.usage(`$0 api-security vulnerability-scanner credential-sets edit <credential-set-id>
113
+ 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 Gt={command:`delete <credential-set-id>`,describe:`Delete credential set`,builder:Wt,handler:async e=>f({command:`api-security vulnerability-scanner credential-sets delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{if(e.dryRun){let t=await o();l({command:`cf api-security vulnerability-scanner credential-sets delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/vuln_scanner/credential_sets/${e[`credential-set-id`]==null?`<credential-set-id>`:encodeURIComponent(String(e[`credential-set-id`]))}`,pathParams:{"credential-set-id":String(e[`credential-set-id`]??``)},bodyKind:`none`});return}let t=await n(e),r=e.local?_:await c();if(e.accountId=r,!await g({force:!!e.force,message:`This operation permanently deletes the credential set and every credential it contains.`}))return;let i=await p(`Deleting`,async()=>t.send(Ut,{account_id:r,credential_set_id:e[`credential-set-id`]}));d(i,{successLabel:`Deleted`})})};var q={method:`PATCH`,path:t=>e`/accounts/${t.account_id}/vuln_scanner/credential_sets/${t.credential_set_id}`,body:`json`};function Kt(e){return e.usage(`$0 api-security vulnerability-scanner credential-sets edit <credential-set-id>
114
114
 
115
- 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 qt={command:`edit <credential-set-id>`,describe:`Edit credential set`,builder:Kt,handler:async e=>u({command:`api-security vulnerability-scanner credential-sets edit`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await i();c({command:`cf api-security vulnerability-scanner credential-sets edit`,method:`PATCH`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/vuln_scanner/credential_sets/${e[`credential-set-id`]==null?`<credential-set-id>`:encodeURIComponent(String(e[`credential-set-id`]))}`,pathParams:{"credential-set-id":String(e[`credential-set-id`]??``)},bodyKind:`json`,body:e.body===void 0?p({name:m(e.name,`name`,`text`)}):f(e.body)});return}let n=await r(e),a=e.local?t:await o();if(e.accountId=a,e.body){let t=f(e.body),r=await l(`Updating`,async()=>n.send(q,{body:t,account_id:a,credential_set_id:e[`credential-set-id`]}));s(r,{successLabel:`Updated`});return}let u=p({name:m(e.name,`name`,`text`)}),d=await l(`Updating`,async()=>n.send(q,{body:u,account_id:a,credential_set_id:e[`credential-set-id`]}));s(d,{successLabel:`Updated`})})};var Jt={method:`GET`,path:t=>e`/accounts/${t.account_id}/vuln_scanner/credential_sets/${t.credential_set_id}`};function Yt(e){return e.usage(`$0 api-security vulnerability-scanner credential-sets get <credential-set-id>
115
+ 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 qt={command:`edit <credential-set-id>`,describe:`Edit credential set`,builder:Kt,handler:async e=>f({command:`api-security vulnerability-scanner credential-sets edit`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await o();l({command:`cf api-security vulnerability-scanner credential-sets edit`,method:`PATCH`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/vuln_scanner/credential_sets/${e[`credential-set-id`]==null?`<credential-set-id>`:encodeURIComponent(String(e[`credential-set-id`]))}`,pathParams:{"credential-set-id":String(e[`credential-set-id`]??``)},bodyKind:`json`,body:e.body===void 0?a({name:u(e.name,`name`,`text`)}):i(e.body)});return}let t=e.body===void 0?void 0:i(e.body),r=await n(e),s=e.local?_:await c();if(e.accountId=s,e.body!==void 0){let n=t,i=await p(`Updating`,async()=>r.send(q,{body:n,account_id:s,credential_set_id:e[`credential-set-id`]}));d(i,{successLabel:`Updated`});return}let f=a({name:u(e.name,`name`,`text`)}),m=await p(`Updating`,async()=>r.send(q,{body:f,account_id:s,credential_set_id:e[`credential-set-id`]}));d(m,{successLabel:`Updated`})})};var Jt={method:`GET`,path:t=>e`/accounts/${t.account_id}/vuln_scanner/credential_sets/${t.credential_set_id}`};function Yt(e){return e.usage(`$0 api-security vulnerability-scanner credential-sets get <credential-set-id>
116
116
 
117
- 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 Xt={command:`get <credential-set-id>`,describe:`Get credential set`,builder:Yt,handler:async e=>u({command:`api-security vulnerability-scanner credential-sets get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await i();c({command:`cf api-security vulnerability-scanner credential-sets get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/vuln_scanner/credential_sets/${e[`credential-set-id`]==null?`<credential-set-id>`:encodeURIComponent(String(e[`credential-set-id`]))}`,pathParams:{"credential-set-id":String(e[`credential-set-id`]??``)},bodyKind:`none`});return}let n=await r(e),a=e.local?t:await o();e.accountId=a;let u=await l(`Loading`,async()=>n.send(Jt,{account_id:a,credential_set_id:e[`credential-set-id`]}));s(u,{successLabel:`Loaded`})})};var Zt={method:`GET`,path:t=>e`/accounts/${t.account_id}/vuln_scanner/credential_sets`,query:[`page`,`per_page`]};function Qt(e){return e.usage(`$0 api-security vulnerability-scanner credential-sets list
117
+ 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 Xt={command:`get <credential-set-id>`,describe:`Get credential set`,builder:Yt,handler:async e=>f({command:`api-security vulnerability-scanner credential-sets get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await o();l({command:`cf api-security vulnerability-scanner credential-sets get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/vuln_scanner/credential_sets/${e[`credential-set-id`]==null?`<credential-set-id>`:encodeURIComponent(String(e[`credential-set-id`]))}`,pathParams:{"credential-set-id":String(e[`credential-set-id`]??``)},bodyKind:`none`});return}let t=await n(e),r=e.local?_:await c();e.accountId=r;let i=await p(`Loading`,async()=>t.send(Jt,{account_id:r,credential_set_id:e[`credential-set-id`]}));d(i,{successLabel:`Loaded`})})};var Zt={method:`GET`,path:t=>e`/accounts/${t.account_id}/vuln_scanner/credential_sets`,query:[`page`,`per_page`]};function Qt(e){return e.usage(`$0 api-security vulnerability-scanner credential-sets list
118
118
 
119
- 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 $t={command:`list`,describe:`List credential sets`,builder:Qt,handler:async e=>u({command:`api-security vulnerability-scanner credential-sets list`,classification:{safeFlags:[`dry-run`]}},e,async()=>{let n={page:e.page,per_page:e[`per-page`]};if(e.dryRun){let e=await i();c({command:`cf api-security vulnerability-scanner credential-sets list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}/vuln_scanner/credential_sets`,pathParams:{},query:n,bodyKind:`none`});return}let a=await r(e),u=e.local?t:await o();e.accountId=u;let d=await l(`Loading`,async()=>a.send(Zt,{account_id:u,...n}));s(d,{successLabel:`Loaded`})})};var J={method:`PUT`,path:t=>e`/accounts/${t.account_id}/vuln_scanner/credential_sets/${t.credential_set_id}`,body:`json`};function en(e){return e.usage(`$0 api-security vulnerability-scanner credential-sets update <credential-set-id>
119
+ 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 $t={command:`list`,describe:`List credential sets`,builder:Qt,handler:async e=>f({command:`api-security vulnerability-scanner credential-sets list`,classification:{safeFlags:[`dry-run`]}},e,async()=>{let t={page:e.page,per_page:e[`per-page`]};if(e.dryRun){let e=await o();l({command:`cf api-security vulnerability-scanner credential-sets list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}/vuln_scanner/credential_sets`,pathParams:{},query:t,bodyKind:`none`});return}let r=await n(e),i=e.local?_:await c();e.accountId=i;let a=await p(`Loading`,async()=>r.send(Zt,{account_id:i,...t}));d(a,{successLabel:`Loaded`})})};var J={method:`PUT`,path:t=>e`/accounts/${t.account_id}/vuln_scanner/credential_sets/${t.credential_set_id}`,body:`json`};function en(e){return e.usage(`$0 api-security vulnerability-scanner credential-sets update <credential-set-id>
120
120
 
121
- 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 tn={command:`update <credential-set-id>`,describe:`Update credential set`,builder:en,handler:async e=>u({command:`api-security vulnerability-scanner credential-sets update`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await i();c({command:`cf api-security vulnerability-scanner credential-sets update`,method:`PUT`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/vuln_scanner/credential_sets/${e[`credential-set-id`]==null?`<credential-set-id>`:encodeURIComponent(String(e[`credential-set-id`]))}`,pathParams:{"credential-set-id":String(e[`credential-set-id`]??``)},bodyKind:`json`,body:e.body===void 0?p({name:m(e.name,`name`,`text`)}):f(e.body)});return}let n=await r(e),a=e.local?t:await o();if(e.accountId=a,e.body){let t=f(e.body),r=await l(`Updating`,async()=>n.send(J,{body:t,account_id:a,credential_set_id:e[`credential-set-id`]}));s(r,{successLabel:`Updated`});return}e.name===void 0&&(e.name=await h(`name`,`Human-readable name.`));let u=p({name:m(e.name,`name`,`text`)}),d=await l(`Updating`,async()=>n.send(J,{body:u,account_id:a,credential_set_id:e[`credential-set-id`]}));s(d,{successLabel:`Updated`})})},nn={command:`credential-sets`,describe:`Operations for vulnerability-scanner.credential-sets`,builder:e=>e.command(Et).command(Gt).command(qt).command(Xt).command($t).command(tn).command(Ht).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var Y={method:`POST`,path:t=>e`/accounts/${t.account_id}/vuln_scanner/scans`,body:`json`,constants:{scan_type:`bola`}};function rn(e){return e.usage(`$0 api-security vulnerability-scanner scans create
121
+ 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 tn={command:`update <credential-set-id>`,describe:`Update credential set`,builder:en,handler:async e=>f({command:`api-security vulnerability-scanner credential-sets update`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await o();l({command:`cf api-security vulnerability-scanner credential-sets update`,method:`PUT`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/vuln_scanner/credential_sets/${e[`credential-set-id`]==null?`<credential-set-id>`:encodeURIComponent(String(e[`credential-set-id`]))}`,pathParams:{"credential-set-id":String(e[`credential-set-id`]??``)},bodyKind:`json`,body:e.body===void 0?a({name:u(e.name,`name`,`text`)}):i(e.body)});return}let t=e.body===void 0?void 0:i(e.body),r=await n(e),s=e.local?_:await c();if(e.accountId=s,e.body!==void 0){let n=t,i=await p(`Updating`,async()=>r.send(J,{body:n,account_id:s,credential_set_id:e[`credential-set-id`]}));d(i,{successLabel:`Updated`});return}e.name===void 0&&(e.name=await m(`name`,`Human-readable name.`));let f=a({name:u(e.name,`name`,`text`)}),h=await p(`Updating`,async()=>r.send(J,{body:f,account_id:s,credential_set_id:e[`credential-set-id`]}));d(h,{successLabel:`Updated`})})},nn={command:`credential-sets`,describe:`Operations for vulnerability-scanner.credential-sets`,builder:e=>e.command(Et).command(Gt).command(qt).command(Xt).command($t).command(tn).command(Ht).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var Y={method:`POST`,path:t=>e`/accounts/${t.account_id}/vuln_scanner/scans`,body:`json`,constants:{scan_type:`bola`}};function rn(e){return e.usage(`$0 api-security vulnerability-scanner scans create
122
122
 
123
123
  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
124
124
  uses this to discover endpoints and construct requests.
125
- `}).option(`scan-type`,{type:`string`,description:`The scan_type field`,choices:[`bola`]}).coerce(`scan-type`,e=>m(e,`scan-type`,`text`)).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. "})}const an={command:`create`,describe:`Create scan`,builder:rn,handler:async e=>u({command:`api-security vulnerability-scanner scans create`,classification:{safeFlags:[`scan-type`,`dry-run`]}},e,async()=>{if(e.dryRun){let t=await i();c({command:`cf api-security vulnerability-scanner scans create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/vuln_scanner/scans`,pathParams:{},bodyKind:`json`,body:e.body===void 0?p({credential_sets:{attacker:m(e[`credential-sets-attacker`],`credential-sets-attacker`,`text`),owner:m(e[`credential-sets-owner`],`credential-sets-owner`,`text`)},open_api:m(e[`open-api`],`open-api`,`text`),scan_type:e[`scan-type`],target_environment_id:m(e[`target-environment-id`],`target-environment-id`,`text`)}):f(e.body)});return}let n=await r(e),a=e.local?t:await o();if(e.accountId=a,e.body){let t=f(e.body),r=await l(`Creating`,async()=>n.send(Y,{body:t,account_id:a}));s(r,{successLabel:`Created`});return}e[`credential-sets-attacker`]===void 0&&(e[`credential-sets-attacker`]=await h(`credential-sets-attacker`,`Credential set ID for the attacker.`)),e[`credential-sets-owner`]===void 0&&(e[`credential-sets-owner`]=await h(`credential-sets-owner`,`Credential set ID for the resource owner.`)),e[`open-api`]===void 0&&(e[`open-api`]=await h(`open-api`,`OpenAPI schema definition for the API under test. The scanner uses this to discover endpoints and construct requests. `)),e[`scan-type`]===void 0&&(e[`scan-type`]=await g(`scan-type`,`The scan_type field`,[`bola`])),e[`target-environment-id`]===void 0&&(e[`target-environment-id`]=await h(`target-environment-id`,`The target environment to scan.`));let u=p({credential_sets:{attacker:m(e[`credential-sets-attacker`],`credential-sets-attacker`,`text`),owner:m(e[`credential-sets-owner`],`credential-sets-owner`,`text`)},open_api:m(e[`open-api`],`open-api`,`text`),scan_type:e[`scan-type`],target_environment_id:m(e[`target-environment-id`],`target-environment-id`,`text`)}),d=await l(`Creating`,async()=>n.send(Y,{body:u,account_id:a}));s(d,{successLabel:`Created`})})};var on={method:`DELETE`,path:t=>e`/accounts/${t.account_id}/vuln_scanner/scans/${t.scan_id}`};function sn(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 cn={command:`delete <scan-id>`,describe:`Delete scan`,builder:sn,handler:async e=>u({command:`api-security vulnerability-scanner scans delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{if(e.dryRun){let t=await i();c({command:`cf api-security vulnerability-scanner scans delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/vuln_scanner/scans/${e[`scan-id`]==null?`<scan-id>`:encodeURIComponent(String(e[`scan-id`]))}`,pathParams:{"scan-id":String(e[`scan-id`]??``)},bodyKind:`none`});return}let n=await r(e),a=e.local?t:await o();if(e.accountId=a,!await _({force:!!e.force,message:`This operation permanently deletes the completed or failed scan and all associated scan data.`}))return;let u=await l(`Deleting`,async()=>n.send(on,{account_id:a,scan_id:e[`scan-id`]}));s(u,{successLabel:`Deleted`})})};var ln={method:`GET`,path:t=>e`/accounts/${t.account_id}/vuln_scanner/scans/${t.scan_id}`};function un(e){return e.usage(`$0 api-security vulnerability-scanner scans get <scan-id>
125
+ `}).option(`scan-type`,{type:`string`,description:`The scan_type field`,choices:[`bola`]}).coerce(`scan-type`,e=>u(e,`scan-type`,`text`)).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. "})}const an={command:`create`,describe:`Create scan`,builder:rn,handler:async e=>f({command:`api-security vulnerability-scanner scans create`,classification:{safeFlags:[`scan-type`,`dry-run`]}},e,async()=>{if(e.dryRun){let t=await o();l({command:`cf api-security vulnerability-scanner scans create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/vuln_scanner/scans`,pathParams:{},bodyKind:`json`,body:e.body===void 0?a({credential_sets:{attacker:u(e[`credential-sets-attacker`],`credential-sets-attacker`,`text`),owner:u(e[`credential-sets-owner`],`credential-sets-owner`,`text`)},open_api:u(e[`open-api`],`open-api`,`text`),scan_type:e[`scan-type`],target_environment_id:u(e[`target-environment-id`],`target-environment-id`,`text`)}):i(e.body)});return}let t=e.body===void 0?void 0:i(e.body),r=await n(e),s=e.local?_:await c();if(e.accountId=s,e.body!==void 0){let e=t,n=await p(`Creating`,async()=>r.send(Y,{body:e,account_id:s}));d(n,{successLabel:`Created`});return}e[`credential-sets-attacker`]===void 0&&(e[`credential-sets-attacker`]=await m(`credential-sets-attacker`,`Credential set ID for the attacker.`)),e[`credential-sets-owner`]===void 0&&(e[`credential-sets-owner`]=await m(`credential-sets-owner`,`Credential set ID for the resource owner.`)),e[`open-api`]===void 0&&(e[`open-api`]=await m(`open-api`,`OpenAPI schema definition for the API under test. The scanner uses this to discover endpoints and construct requests. `)),e[`scan-type`]===void 0&&(e[`scan-type`]=await h(`scan-type`,`The scan_type field`,[`bola`])),e[`target-environment-id`]===void 0&&(e[`target-environment-id`]=await m(`target-environment-id`,`The target environment to scan.`));let f=a({credential_sets:{attacker:u(e[`credential-sets-attacker`],`credential-sets-attacker`,`text`),owner:u(e[`credential-sets-owner`],`credential-sets-owner`,`text`)},open_api:u(e[`open-api`],`open-api`,`text`),scan_type:e[`scan-type`],target_environment_id:u(e[`target-environment-id`],`target-environment-id`,`text`)}),g=await p(`Creating`,async()=>r.send(Y,{body:f,account_id:s}));d(g,{successLabel:`Created`})})};var on={method:`DELETE`,path:t=>e`/accounts/${t.account_id}/vuln_scanner/scans/${t.scan_id}`};function sn(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 cn={command:`delete <scan-id>`,describe:`Delete scan`,builder:sn,handler:async e=>f({command:`api-security vulnerability-scanner scans delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{if(e.dryRun){let t=await o();l({command:`cf api-security vulnerability-scanner scans delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/vuln_scanner/scans/${e[`scan-id`]==null?`<scan-id>`:encodeURIComponent(String(e[`scan-id`]))}`,pathParams:{"scan-id":String(e[`scan-id`]??``)},bodyKind:`none`});return}let t=await n(e),r=e.local?_:await c();if(e.accountId=r,!await g({force:!!e.force,message:`This operation permanently deletes the completed or failed scan and all associated scan data.`}))return;let i=await p(`Deleting`,async()=>t.send(on,{account_id:r,scan_id:e[`scan-id`]}));d(i,{successLabel:`Deleted`})})};var ln={method:`GET`,path:t=>e`/accounts/${t.account_id}/vuln_scanner/scans/${t.scan_id}`};function un(e){return e.usage(`$0 api-security vulnerability-scanner scans get <scan-id>
126
126
 
127
- 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 dn={command:`get <scan-id>`,describe:`Get scan`,builder:un,handler:async e=>u({command:`api-security vulnerability-scanner scans get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await i();c({command:`cf api-security vulnerability-scanner scans get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/vuln_scanner/scans/${e[`scan-id`]==null?`<scan-id>`:encodeURIComponent(String(e[`scan-id`]))}`,pathParams:{"scan-id":String(e[`scan-id`]??``)},bodyKind:`none`});return}let n=await r(e),a=e.local?t:await o();e.accountId=a;let u=await l(`Loading`,async()=>n.send(ln,{account_id:a,scan_id:e[`scan-id`]}));s(u,{successLabel:`Loaded`})})};var fn={method:`GET`,path:t=>e`/accounts/${t.account_id}/vuln_scanner/scans`,query:[`page`,`per_page`]};function pn(e){return e.usage(`$0 api-security vulnerability-scanner scans list
127
+ 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 dn={command:`get <scan-id>`,describe:`Get scan`,builder:un,handler:async e=>f({command:`api-security vulnerability-scanner scans get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await o();l({command:`cf api-security vulnerability-scanner scans get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/vuln_scanner/scans/${e[`scan-id`]==null?`<scan-id>`:encodeURIComponent(String(e[`scan-id`]))}`,pathParams:{"scan-id":String(e[`scan-id`]??``)},bodyKind:`none`});return}let t=await n(e),r=e.local?_:await c();e.accountId=r;let i=await p(`Loading`,async()=>t.send(ln,{account_id:r,scan_id:e[`scan-id`]}));d(i,{successLabel:`Loaded`})})};var fn={method:`GET`,path:t=>e`/accounts/${t.account_id}/vuln_scanner/scans`,query:[`page`,`per_page`]};function pn(e){return e.usage(`$0 api-security vulnerability-scanner scans list
128
128
 
129
- 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 mn={command:`list`,describe:`List scans`,builder:pn,handler:async e=>u({command:`api-security vulnerability-scanner scans list`,classification:{safeFlags:[`dry-run`]}},e,async()=>{let n={page:e.page,per_page:e[`per-page`]};if(e.dryRun){let e=await i();c({command:`cf api-security vulnerability-scanner scans list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}/vuln_scanner/scans`,pathParams:{},query:n,bodyKind:`none`});return}let a=await r(e),u=e.local?t:await o();e.accountId=u;let d=await l(`Loading`,async()=>a.send(fn,{account_id:u,...n}));s(d,{successLabel:`Loaded`})})},hn={command:`scans`,describe:`Operations for vulnerability-scanner.scans`,builder:e=>e.command(an).command(cn).command(dn).command(mn).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var X={method:`POST`,path:t=>e`/accounts/${t.account_id}/vuln_scanner/target_environments`,body:`json`};function gn(e){return e.usage(`$0 api-security vulnerability-scanner target-environments create
129
+ 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 mn={command:`list`,describe:`List scans`,builder:pn,handler:async e=>f({command:`api-security vulnerability-scanner scans list`,classification:{safeFlags:[`dry-run`]}},e,async()=>{let t={page:e.page,per_page:e[`per-page`]};if(e.dryRun){let e=await o();l({command:`cf api-security vulnerability-scanner scans list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}/vuln_scanner/scans`,pathParams:{},query:t,bodyKind:`none`});return}let r=await n(e),i=e.local?_:await c();e.accountId=i;let a=await p(`Loading`,async()=>r.send(fn,{account_id:i,...t}));d(a,{successLabel:`Loaded`})})},hn={command:`scans`,describe:`Operations for vulnerability-scanner.scans`,builder:e=>e.command(an).command(cn).command(dn).command(mn).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var X={method:`POST`,path:t=>e`/accounts/${t.account_id}/vuln_scanner/target_environments`,body:`json`};function gn(e){return e.usage(`$0 api-security vulnerability-scanner target-environments create
130
130
 
131
- 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`]}).coerce(`target-type`,e=>m(e,`target-type`,`text`)).option(`target-zone-tag`,{type:`string`,description:`Cloudflare zone tag. The zone must belong to the account.
132
- `}).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 _n={command:`create`,describe:`Create target environment`,builder:gn,handler:async e=>u({command:`api-security vulnerability-scanner target-environments create`,classification:{safeFlags:[`target-type`,`dry-run`]}},e,async()=>{if(e.dryRun){let t=await i();c({command:`cf api-security vulnerability-scanner target-environments create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/vuln_scanner/target_environments`,pathParams:{},bodyKind:`json`,body:e.body===void 0?p({description:m(e.description,`description`,`text`),name:m(e.name,`name`,`text`),target:{type:e[`target-type`],zone_tag:m(e[`target-zone-tag`],`target-zone-tag`,`text`)}}):f(e.body)});return}let n=await r(e),a=e.local?t:await o();if(e.accountId=a,e.body){let t=f(e.body),r=await l(`Creating`,async()=>n.send(X,{body:t,account_id:a}));s(r,{successLabel:`Created`});return}e.name===void 0&&(e.name=await h(`name`,`Human-readable name.`)),e[`target-type`]===void 0&&(e[`target-type`]=await g(`target-type`,`The target.type field`,[`zone`])),e[`target-zone-tag`]===void 0&&(e[`target-zone-tag`]=await h(`target-zone-tag`,`Cloudflare zone tag. The zone must belong to the account. `));let u=p({description:m(e.description,`description`,`text`),name:m(e.name,`name`,`text`),target:{type:e[`target-type`],zone_tag:m(e[`target-zone-tag`],`target-zone-tag`,`text`)}}),d=await l(`Creating`,async()=>n.send(X,{body:u,account_id:a}));s(d,{successLabel:`Created`})})};var vn={method:`DELETE`,path:t=>e`/accounts/${t.account_id}/vuln_scanner/target_environments/${t.target_environment_id}`};function yn(e){return e.usage(`$0 api-security vulnerability-scanner target-environments delete <target-environment-id>
131
+ 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`]}).coerce(`target-type`,e=>u(e,`target-type`,`text`)).option(`target-zone-tag`,{type:`string`,description:`Cloudflare zone tag. The zone must belong to the account.
132
+ `}).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 _n={command:`create`,describe:`Create target environment`,builder:gn,handler:async e=>f({command:`api-security vulnerability-scanner target-environments create`,classification:{safeFlags:[`target-type`,`dry-run`]}},e,async()=>{if(e.dryRun){let t=await o();l({command:`cf api-security vulnerability-scanner target-environments create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/vuln_scanner/target_environments`,pathParams:{},bodyKind:`json`,body:e.body===void 0?a({description:u(e.description,`description`,`text`),name:u(e.name,`name`,`text`),target:{type:e[`target-type`],zone_tag:u(e[`target-zone-tag`],`target-zone-tag`,`text`)}}):i(e.body)});return}let t=e.body===void 0?void 0:i(e.body),r=await n(e),s=e.local?_:await c();if(e.accountId=s,e.body!==void 0){let e=t,n=await p(`Creating`,async()=>r.send(X,{body:e,account_id:s}));d(n,{successLabel:`Created`});return}e.name===void 0&&(e.name=await m(`name`,`Human-readable name.`)),e[`target-type`]===void 0&&(e[`target-type`]=await h(`target-type`,`The target.type field`,[`zone`])),e[`target-zone-tag`]===void 0&&(e[`target-zone-tag`]=await m(`target-zone-tag`,`Cloudflare zone tag. The zone must belong to the account. `));let f=a({description:u(e.description,`description`,`text`),name:u(e.name,`name`,`text`),target:{type:e[`target-type`],zone_tag:u(e[`target-zone-tag`],`target-zone-tag`,`text`)}}),g=await p(`Creating`,async()=>r.send(X,{body:f,account_id:s}));d(g,{successLabel:`Created`})})};var vn={method:`DELETE`,path:t=>e`/accounts/${t.account_id}/vuln_scanner/target_environments/${t.target_environment_id}`};function yn(e){return e.usage(`$0 api-security vulnerability-scanner target-environments delete <target-environment-id>
133
133
 
134
- 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 bn={command:`delete <target-environment-id>`,describe:`Delete target environment`,builder:yn,handler:async e=>u({command:`api-security vulnerability-scanner target-environments delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{if(e.dryRun){let t=await i();c({command:`cf api-security vulnerability-scanner target-environments delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/vuln_scanner/target_environments/${e[`target-environment-id`]==null?`<target-environment-id>`:encodeURIComponent(String(e[`target-environment-id`]))}`,pathParams:{"target-environment-id":String(e[`target-environment-id`]??``)},bodyKind:`none`});return}let n=await r(e),a=e.local?t:await o();if(e.accountId=a,!await _({force:!!e.force,message:`This operation permanently deletes the target environment from Vulnerability Scanner.`}))return;let u=await l(`Deleting`,async()=>n.send(vn,{account_id:a,target_environment_id:e[`target-environment-id`]}));s(u,{successLabel:`Deleted`})})};var Z={method:`PATCH`,path:t=>e`/accounts/${t.account_id}/vuln_scanner/target_environments/${t.target_environment_id}`,body:`json`};function Q(e){return e.usage(`$0 api-security vulnerability-scanner target-environments edit <target-environment-id>
134
+ 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 bn={command:`delete <target-environment-id>`,describe:`Delete target environment`,builder:yn,handler:async e=>f({command:`api-security vulnerability-scanner target-environments delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{if(e.dryRun){let t=await o();l({command:`cf api-security vulnerability-scanner target-environments delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/vuln_scanner/target_environments/${e[`target-environment-id`]==null?`<target-environment-id>`:encodeURIComponent(String(e[`target-environment-id`]))}`,pathParams:{"target-environment-id":String(e[`target-environment-id`]??``)},bodyKind:`none`});return}let t=await n(e),r=e.local?_:await c();if(e.accountId=r,!await g({force:!!e.force,message:`This operation permanently deletes the target environment from Vulnerability Scanner.`}))return;let i=await p(`Deleting`,async()=>t.send(vn,{account_id:r,target_environment_id:e[`target-environment-id`]}));d(i,{successLabel:`Deleted`})})};var Z={method:`PATCH`,path:t=>e`/accounts/${t.account_id}/vuln_scanner/target_environments/${t.target_environment_id}`,body:`json`};function Q(e){return e.usage(`$0 api-security vulnerability-scanner target-environments edit <target-environment-id>
135
135
 
136
136
  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\`
137
137
  to clear, or provide a string to update.
138
- `}).option(`name`,{type:`string`,description:`Human-readable name.`}).option(`target-type`,{type:`string`,description:`The target.type field`,choices:[`zone`]}).coerce(`target-type`,e=>m(e,`target-type`,`text`)).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:'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=>{let t=[`target-type`,`target-zone-tag`].some(t=>e[t]!==void 0);if(!e.body&&t){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 xn={command:`edit <target-environment-id>`,describe:`Edit target environment`,builder:Q,handler:async e=>u({command:`api-security vulnerability-scanner target-environments edit`,classification:{safeFlags:[`target-type`,`dry-run`]}},e,async()=>{if(e.dryRun){let t=await i();c({command:`cf api-security vulnerability-scanner target-environments edit`,method:`PATCH`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/vuln_scanner/target_environments/${e[`target-environment-id`]==null?`<target-environment-id>`:encodeURIComponent(String(e[`target-environment-id`]))}`,pathParams:{"target-environment-id":String(e[`target-environment-id`]??``)},bodyKind:`json`,body:e.body===void 0?p({description:m(e.description,`description`,`text`),name:m(e.name,`name`,`text`),target:{type:e[`target-type`],zone_tag:m(e[`target-zone-tag`],`target-zone-tag`,`text`)}}):f(e.body)});return}let n=await r(e),a=e.local?t:await o();if(e.accountId=a,e.body){let t=f(e.body),r=await l(`Updating`,async()=>n.send(Z,{body:t,account_id:a,target_environment_id:e[`target-environment-id`]}));s(r,{successLabel:`Updated`});return}let u=p({description:m(e.description,`description`,`text`),name:m(e.name,`name`,`text`),target:{type:e[`target-type`],zone_tag:m(e[`target-zone-tag`],`target-zone-tag`,`text`)}}),d=await l(`Updating`,async()=>n.send(Z,{body:u,account_id:a,target_environment_id:e[`target-environment-id`]}));s(d,{successLabel:`Updated`})})};var Sn={method:`GET`,path:t=>e`/accounts/${t.account_id}/vuln_scanner/target_environments/${t.target_environment_id}`};function Cn(e){return e.usage(`$0 api-security vulnerability-scanner target-environments get <target-environment-id>
138
+ `}).option(`name`,{type:`string`,description:`Human-readable name.`}).option(`target-type`,{type:`string`,description:`The target.type field`,choices:[`zone`]}).coerce(`target-type`,e=>u(e,`target-type`,`text`)).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:'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=>{let t=[`target-type`,`target-zone-tag`].some(t=>e[t]!==void 0);if(!e.body&&t){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 xn={command:`edit <target-environment-id>`,describe:`Edit target environment`,builder:Q,handler:async e=>f({command:`api-security vulnerability-scanner target-environments edit`,classification:{safeFlags:[`target-type`,`dry-run`]}},e,async()=>{if(e.dryRun){let t=await o();l({command:`cf api-security vulnerability-scanner target-environments edit`,method:`PATCH`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/vuln_scanner/target_environments/${e[`target-environment-id`]==null?`<target-environment-id>`:encodeURIComponent(String(e[`target-environment-id`]))}`,pathParams:{"target-environment-id":String(e[`target-environment-id`]??``)},bodyKind:`json`,body:e.body===void 0?a({description:u(e.description,`description`,`text`),name:u(e.name,`name`,`text`),target:{type:e[`target-type`],zone_tag:u(e[`target-zone-tag`],`target-zone-tag`,`text`)}}):i(e.body)});return}let t=e.body===void 0?void 0:i(e.body),r=await n(e),s=e.local?_:await c();if(e.accountId=s,e.body!==void 0){let n=t,i=await p(`Updating`,async()=>r.send(Z,{body:n,account_id:s,target_environment_id:e[`target-environment-id`]}));d(i,{successLabel:`Updated`});return}let f=a({description:u(e.description,`description`,`text`),name:u(e.name,`name`,`text`),target:{type:e[`target-type`],zone_tag:u(e[`target-zone-tag`],`target-zone-tag`,`text`)}}),m=await p(`Updating`,async()=>r.send(Z,{body:f,account_id:s,target_environment_id:e[`target-environment-id`]}));d(m,{successLabel:`Updated`})})};var Sn={method:`GET`,path:t=>e`/accounts/${t.account_id}/vuln_scanner/target_environments/${t.target_environment_id}`};function Cn(e){return e.usage(`$0 api-security vulnerability-scanner target-environments get <target-environment-id>
140
140
 
141
- 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 wn={command:`get <target-environment-id>`,describe:`Get target environment`,builder:Cn,handler:async e=>u({command:`api-security vulnerability-scanner target-environments get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await i();c({command:`cf api-security vulnerability-scanner target-environments get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/vuln_scanner/target_environments/${e[`target-environment-id`]==null?`<target-environment-id>`:encodeURIComponent(String(e[`target-environment-id`]))}`,pathParams:{"target-environment-id":String(e[`target-environment-id`]??``)},bodyKind:`none`});return}let n=await r(e),a=e.local?t:await o();e.accountId=a;let u=await l(`Loading`,async()=>n.send(Sn,{account_id:a,target_environment_id:e[`target-environment-id`]}));s(u,{successLabel:`Loaded`})})};var Tn={method:`GET`,path:t=>e`/accounts/${t.account_id}/vuln_scanner/target_environments`,query:[`page`,`per_page`]};function En(e){return e.usage(`$0 api-security vulnerability-scanner target-environments list
141
+ 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 wn={command:`get <target-environment-id>`,describe:`Get target environment`,builder:Cn,handler:async e=>f({command:`api-security vulnerability-scanner target-environments get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await o();l({command:`cf api-security vulnerability-scanner target-environments get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/vuln_scanner/target_environments/${e[`target-environment-id`]==null?`<target-environment-id>`:encodeURIComponent(String(e[`target-environment-id`]))}`,pathParams:{"target-environment-id":String(e[`target-environment-id`]??``)},bodyKind:`none`});return}let t=await n(e),r=e.local?_:await c();e.accountId=r;let i=await p(`Loading`,async()=>t.send(Sn,{account_id:r,target_environment_id:e[`target-environment-id`]}));d(i,{successLabel:`Loaded`})})};var Tn={method:`GET`,path:t=>e`/accounts/${t.account_id}/vuln_scanner/target_environments`,query:[`page`,`per_page`]};function En(e){return e.usage(`$0 api-security vulnerability-scanner target-environments list
142
142
 
143
- 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 Dn={command:`list`,describe:`List target environments`,builder:En,handler:async e=>u({command:`api-security vulnerability-scanner target-environments list`,classification:{safeFlags:[`dry-run`]}},e,async()=>{let n={page:e.page,per_page:e[`per-page`]};if(e.dryRun){let e=await i();c({command:`cf api-security vulnerability-scanner target-environments list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}/vuln_scanner/target_environments`,pathParams:{},query:n,bodyKind:`none`});return}let a=await r(e),u=e.local?t:await o();e.accountId=u;let d=await l(`Loading`,async()=>a.send(Tn,{account_id:u,...n}));s(d,{successLabel:`Loaded`})})};var $={method:`PUT`,path:t=>e`/accounts/${t.account_id}/vuln_scanner/target_environments/${t.target_environment_id}`,body:`json`};function On(e){return e.usage(`$0 api-security vulnerability-scanner target-environments update <target-environment-id>
143
+ 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 Dn={command:`list`,describe:`List target environments`,builder:En,handler:async e=>f({command:`api-security vulnerability-scanner target-environments list`,classification:{safeFlags:[`dry-run`]}},e,async()=>{let t={page:e.page,per_page:e[`per-page`]};if(e.dryRun){let e=await o();l({command:`cf api-security vulnerability-scanner target-environments list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}/vuln_scanner/target_environments`,pathParams:{},query:t,bodyKind:`none`});return}let r=await n(e),i=e.local?_:await c();e.accountId=i;let a=await p(`Loading`,async()=>r.send(Tn,{account_id:i,...t}));d(a,{successLabel:`Loaded`})})};var $={method:`PUT`,path:t=>e`/accounts/${t.account_id}/vuln_scanner/target_environments/${t.target_environment_id}`,body:`json`};function On(e){return e.usage(`$0 api-security vulnerability-scanner target-environments update <target-environment-id>
144
144
 
145
- 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`]}).coerce(`target-type`,e=>m(e,`target-type`,`text`)).option(`target-zone-tag`,{type:`string`,description:`Cloudflare zone tag. The zone must belong to the account.
146
- `}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Full replacement.`})}const kn={command:`update <target-environment-id>`,describe:`Update target environment`,builder:On,handler:async e=>u({command:`api-security vulnerability-scanner target-environments update`,classification:{safeFlags:[`target-type`,`dry-run`]}},e,async()=>{if(e.dryRun){let t=await i();c({command:`cf api-security vulnerability-scanner target-environments update`,method:`PUT`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/vuln_scanner/target_environments/${e[`target-environment-id`]==null?`<target-environment-id>`:encodeURIComponent(String(e[`target-environment-id`]))}`,pathParams:{"target-environment-id":String(e[`target-environment-id`]??``)},bodyKind:`json`,body:e.body===void 0?p({description:m(e.description,`description`,`text`),name:m(e.name,`name`,`text`),target:{type:e[`target-type`],zone_tag:m(e[`target-zone-tag`],`target-zone-tag`,`text`)}}):f(e.body)});return}let n=await r(e),a=e.local?t:await o();if(e.accountId=a,e.body){let t=f(e.body),r=await l(`Updating`,async()=>n.send($,{body:t,account_id:a,target_environment_id:e[`target-environment-id`]}));s(r,{successLabel:`Updated`});return}e.name===void 0&&(e.name=await h(`name`,`Human-readable name.`)),e[`target-type`]===void 0&&(e[`target-type`]=await g(`target-type`,`The target.type field`,[`zone`])),e[`target-zone-tag`]===void 0&&(e[`target-zone-tag`]=await h(`target-zone-tag`,`Cloudflare zone tag. The zone must belong to the account. `));let u=p({description:m(e.description,`description`,`text`),name:m(e.name,`name`,`text`),target:{type:e[`target-type`],zone_tag:m(e[`target-zone-tag`],`target-zone-tag`,`text`)}}),d=await l(`Updating`,async()=>n.send($,{body:u,account_id:a,target_environment_id:e[`target-environment-id`]}));s(d,{successLabel:`Updated`})})},An={command:`target-environments`,describe:`Operations for vulnerability-scanner.target-environments`,builder:e=>e.command(_n).command(bn).command(xn).command(wn).command(Dn).command(kn).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},jn={command:`vulnerability-scanner`,describe:`Operations for vulnerability-scanner`,builder:e=>e.command(nn).command(hn).command(An).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},Mn={command:`api-security`,describe:`api-security`,builder:e=>e.command(Me).command(Re).command(wt).command(jn).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};export{Mn as default};
145
+ 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`]}).coerce(`target-type`,e=>u(e,`target-type`,`text`)).option(`target-zone-tag`,{type:`string`,description:`Cloudflare zone tag. The zone must belong to the account.
146
+ `}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Full replacement.`})}const kn={command:`update <target-environment-id>`,describe:`Update target environment`,builder:On,handler:async e=>f({command:`api-security vulnerability-scanner target-environments update`,classification:{safeFlags:[`target-type`,`dry-run`]}},e,async()=>{if(e.dryRun){let t=await o();l({command:`cf api-security vulnerability-scanner target-environments update`,method:`PUT`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/vuln_scanner/target_environments/${e[`target-environment-id`]==null?`<target-environment-id>`:encodeURIComponent(String(e[`target-environment-id`]))}`,pathParams:{"target-environment-id":String(e[`target-environment-id`]??``)},bodyKind:`json`,body:e.body===void 0?a({description:u(e.description,`description`,`text`),name:u(e.name,`name`,`text`),target:{type:e[`target-type`],zone_tag:u(e[`target-zone-tag`],`target-zone-tag`,`text`)}}):i(e.body)});return}let t=e.body===void 0?void 0:i(e.body),r=await n(e),s=e.local?_:await c();if(e.accountId=s,e.body!==void 0){let n=t,i=await p(`Updating`,async()=>r.send($,{body:n,account_id:s,target_environment_id:e[`target-environment-id`]}));d(i,{successLabel:`Updated`});return}e.name===void 0&&(e.name=await m(`name`,`Human-readable name.`)),e[`target-type`]===void 0&&(e[`target-type`]=await h(`target-type`,`The target.type field`,[`zone`])),e[`target-zone-tag`]===void 0&&(e[`target-zone-tag`]=await m(`target-zone-tag`,`Cloudflare zone tag. The zone must belong to the account. `));let f=a({description:u(e.description,`description`,`text`),name:u(e.name,`name`,`text`),target:{type:e[`target-type`],zone_tag:u(e[`target-zone-tag`],`target-zone-tag`,`text`)}}),g=await p(`Updating`,async()=>r.send($,{body:f,account_id:s,target_environment_id:e[`target-environment-id`]}));d(g,{successLabel:`Updated`})})},An={command:`target-environments`,describe:`Operations for vulnerability-scanner.target-environments`,builder:e=>e.command(_n).command(bn).command(xn).command(wn).command(Dn).command(kn).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},jn={command:`vulnerability-scanner`,describe:`Operations for vulnerability-scanner`,builder:e=>e.command(nn).command(hn).command(An).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},Mn={command:`api-security`,describe:`api-security`,builder:e=>e.command(Me).command(Re).command(wt).command(jn).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};export{Mn as default};