cf 1.0.0-rc.2 → 1.0.0-rc.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (272) hide show
  1. package/README.md +11 -0
  2. package/dist/_meta/commands.json +3235 -2113
  3. package/dist/_meta/hand-written-commands.json +40 -0
  4. package/dist/_meta/schemas.json +2519 -1622
  5. package/dist/{abuse-reports-7pRdd95h.mjs → abuse-reports-DD4Xscda.mjs} +1 -1
  6. package/dist/{access-CON978TG.mjs → access-C35nZLcR.mjs} +1 -1
  7. package/dist/{accounts-DfTIQ1ol.mjs → accounts-dvxVNggW.mjs} +1 -1
  8. package/dist/{acm-DUOtXoq1.mjs → acm-BRx8MrVy.mjs} +1 -1
  9. package/dist/{addressing-BGI1lmHJ.mjs → addressing-MAedAImE.mjs} +13 -13
  10. package/dist/{agent-memory-B7_ERHJA.mjs → agent-memory-CPhvBC0V.mjs} +1 -1
  11. package/dist/{ai-CEUT9znF.mjs → ai-Dx-jS5E8.mjs} +1 -1
  12. package/dist/{ai-audit-BhbsdF3R.mjs → ai-audit-D5AU3d15.mjs} +1 -1
  13. package/dist/{ai-gateway-BMJ_sOoU.mjs → ai-gateway-siGcJ3Fd.mjs} +45 -35
  14. package/dist/{ai-search-jYmV4tZM.mjs → ai-search-30yyrERO.mjs} +1 -1
  15. package/dist/{ai-security-X7rya3Nc.mjs → ai-security-wIqGn-mp.mjs} +1 -1
  16. package/dist/{alerting-DrfOZuwU.mjs → alerting-ChL9dtmD.mjs} +1 -1
  17. package/dist/{analytics-CzMjVnxF.mjs → analytics-DC3GMpt3.mjs} +1 -1
  18. package/dist/{analytics-engine-DqNMYgeV.mjs → analytics-engine-CoMfFtru.mjs} +1 -1
  19. package/dist/{api-security-D3WIvBHW.mjs → api-security-DatApWUQ.mjs} +3 -3
  20. package/dist/{argo-D77o9nA0.mjs → argo-BNnKAmnR.mjs} +1 -1
  21. package/dist/{artifacts-JhJU8lVg.mjs → artifacts-BwOVrDS2.mjs} +1 -1
  22. package/dist/{audit-logs-BWNa7T1S.mjs → audit-logs-DCqXY3K2.mjs} +1 -1
  23. package/dist/auth-B23TQVFv.mjs +2 -0
  24. package/dist/auth-CMg2zvtO.mjs +2 -0
  25. package/dist/auth-DC9etXs1.mjs +3 -0
  26. package/dist/auth-token-DNUW1DyS.mjs +8 -0
  27. package/dist/authentication-error-CFW0YLMA-CyvbCVD8.mjs +131 -0
  28. package/dist/autoconfig-BCE1EcKH.mjs +647 -0
  29. package/dist/{basin-catalog-BLGqOmj3.mjs → basin-catalog-DViOl5uo.mjs} +1 -1
  30. package/dist/{billing-MKjaJ5OH.mjs → billing-tS4IRYvK.mjs} +2 -2
  31. package/dist/{blocks-BhHWbQEb.mjs → blocks-C3bPBwwd.mjs} +1 -1
  32. package/dist/{body-parser-HN91kAf0.mjs → body-parser-DftnWjJP.mjs} +1 -1
  33. package/dist/{body-unions-QFGGUlIr.mjs → body-unions-DX9G5Vny.mjs} +1 -1
  34. package/dist/{bot-management-C6XG6ndL.mjs → bot-management-84un7ti1.mjs} +1 -1
  35. package/dist/{botnet-feed-BKous_vP.mjs → botnet-feed-B4Zgb3WZ.mjs} +1 -1
  36. package/dist/{brand-protection-D4hFdjyk.mjs → brand-protection-BBpY-kFB.mjs} +1 -1
  37. package/dist/{browser-run-BHLEEC5E.mjs → browser-run-Bh4PeR1y.mjs} +4 -2
  38. package/dist/{build-CMyWk3oc.mjs → build-BGoObbc0.mjs} +1 -1
  39. package/dist/build-CQZMLw83.mjs +2 -0
  40. package/dist/{builds-Knlir3zp.mjs → builds-E1L2H1sP.mjs} +1 -1
  41. package/dist/{cache-27OeN2zW.mjs → cache-BCD3UGYE.mjs} +18 -18
  42. package/dist/cf-zVgRO5PY.mjs +17 -0
  43. package/dist/{cli-BGJM9SBt.mjs → cli-FRHgCU7v.mjs} +1 -1
  44. package/dist/{client-side-security-DhFutOIw.mjs → client-side-security-7dg-ZVsu.mjs} +1 -1
  45. package/dist/{cloud-connector-DUR52h7h.mjs → cloud-connector-BU0juaIN.mjs} +1 -1
  46. package/dist/{cloudflared-CSDMIBKX.mjs → cloudflared-DJhAGc-2.mjs} +1 -1
  47. package/dist/{cloudforce-one-C0SzLz65.mjs → cloudforce-one-DgyrexQ7.mjs} +22 -24
  48. package/dist/command-7YbmYQ25.mjs +2 -0
  49. package/dist/{command-Co0d2ime.mjs → command-BM_ONo-H.mjs} +1 -1
  50. package/dist/{command-Bufh8wFd.mjs → command-C7QTONEM.mjs} +1 -1
  51. package/dist/{command-Drp8GAuW.mjs → command-CNcnWikN.mjs} +1 -1
  52. package/dist/{command-CxhOAu2x.mjs → command-CvWcSClz.mjs} +1 -1
  53. package/dist/{command-BzExw-4e.mjs → command-D-ll3vGW.mjs} +1 -1
  54. package/dist/{command-C6ddiqb8.mjs → command-D3Xg83My.mjs} +1 -1
  55. package/dist/{command-Bt_yk3sP.mjs → command-DP37O9yH.mjs} +1 -1
  56. package/dist/{command-B5v4F93a.mjs → command-Das6RBQL.mjs} +1 -1
  57. package/dist/{command-B8KcAAzJ.mjs → command-Dp2VbxRs.mjs} +1 -1
  58. package/dist/{command-DMb8_5QR.mjs → command-F-PEA27_.mjs} +1 -1
  59. package/dist/{command-CLeeImJr.mjs → command-KOIS6pIJ.mjs} +1 -1
  60. package/dist/{command-BENj0-eD.mjs → command-Kph6cPx4.mjs} +1 -1
  61. package/dist/{command-DfmJhh-K.mjs → command-kkAVVWsY.mjs} +1 -1
  62. package/dist/{command-CkBbgXY8.mjs → command-m_RE8Ne6.mjs} +1 -1
  63. package/dist/{completions-Chw9TYCy.mjs → completions-Dc77ZhDr.mjs} +1 -1
  64. package/dist/config-WFtvFMMN-DO1DX3tx.mjs +300 -0
  65. package/dist/{connector-interrupts-DljkLm8i.mjs → connector-interrupts-DkWyiO-i.mjs} +1 -1
  66. package/dist/{connector-telemetry-events-fZ_Uqwfd.mjs → connector-telemetry-events-puB9H_bN.mjs} +1 -1
  67. package/dist/{connector-telemetry-snapshots-Bv5aAa_3.mjs → connector-telemetry-snapshots-fydkNSl2.mjs} +1 -1
  68. package/dist/{connectors-BJQW9yKU.mjs → connectors-C8kBNJU2.mjs} +1 -1
  69. package/dist/{containers-D_QkjuSF.mjs → containers-plmr4QyC.mjs} +2 -2
  70. package/dist/{content-scan-mmmapOqc.mjs → content-scan-CxtrHrzD.mjs} +1 -1
  71. package/dist/{context-ChcbaAGw.mjs → context-CglPDNRF.mjs} +1 -1
  72. package/dist/{cps-CKOptk6d.mjs → cps-EAJEOLrs.mjs} +1 -1
  73. package/dist/create-worker-upload-form-DhzLEfNO-BCarSV0E.mjs +2 -0
  74. package/dist/{csam-scanner-Cgj2eo9n.mjs → csam-scanner-tJhA7hqT.mjs} +1 -1
  75. package/dist/{custom-csrs-BhpfDaqQ.mjs → custom-csrs-B_s5EV1j.mjs} +1 -1
  76. package/dist/{custom-hostnames-DW8Rpdm5.mjs → custom-hostnames-Cr3dNRwC.mjs} +1 -1
  77. package/dist/{custom-nameservers-Djpe8V3o.mjs → custom-nameservers-RCRy6YRK.mjs} +1 -1
  78. package/dist/{custom-pages-Chhva9aF.mjs → custom-pages-CthLrFCW.mjs} +1 -1
  79. package/dist/{d1-BssqKsHt.mjs → d1-rfbTquF-.mjs} +1 -1
  80. package/dist/{delegate-CwB0ZkLX.mjs → delegate-f4FFYc-w.mjs} +1 -1
  81. package/dist/delegate.mjs +1 -1
  82. package/dist/{deploy-CYdpmaPG.mjs → deploy-BTvnmAz0.mjs} +1 -1
  83. package/dist/deploy-context-DO2Ej5Sf.mjs +122 -0
  84. package/dist/{deploy-input-pcciD1Bc.mjs → deploy-input-D8-f-ULB.mjs} +1 -1
  85. package/dist/dev-BrqTRIv1.mjs +4 -0
  86. package/dist/{diagnostics-Cm8Og_bM.mjs → diagnostics-BTKLIL60.mjs} +1 -1
  87. package/dist/{disk-cache-Csyrc7L_.mjs → disk-cache-SHcAdcTi.mjs} +1 -1
  88. package/dist/dist-CoYrirmB.mjs +70 -0
  89. package/dist/{dls-CNMSLaWR.mjs → dls-RyhdHqmj.mjs} +1 -1
  90. package/dist/{dns-Cwdq9kAp.mjs → dns-D4USVTcI.mjs} +13 -15
  91. package/dist/{dns-firewall-s33oZN9_.mjs → dns-firewall-BZOjpGEa.mjs} +1 -1
  92. package/dist/{docs-BX7oBoFp.mjs → docs-BjGZR51O.mjs} +1 -1
  93. package/dist/dot-prop-XnlHjVnE-Bi3oBTbt.mjs +2 -0
  94. package/dist/dotenv-Bs0zODmf.mjs +4 -0
  95. package/dist/{durable-objects-CZcj1eaJ.mjs → durable-objects-X_wDE1kN.mjs} +1 -1
  96. package/dist/{email-auth-CiOaqD27.mjs → email-auth-DTI45krk.mjs} +1 -1
  97. package/dist/{email-routing-0dzp8ahc.mjs → email-routing-CcRzdZ7w.mjs} +1 -1
  98. package/dist/{email-security-CPhkouDM.mjs → email-security-BG4oDbP8.mjs} +1 -1
  99. package/dist/{email-sending-DkwjDkpK.mjs → email-sending-Bwxz3HOE.mjs} +1 -1
  100. package/dist/error-sanitization-CoqDzMhY.mjs +2 -0
  101. package/dist/error-sanitization-DSyaOCwI.mjs +2 -0
  102. package/dist/{errors-BAF6Z21q.mjs → errors-BIYtgyJ2.mjs} +1 -1
  103. package/dist/feedback-CkfuTWEC.mjs +4 -0
  104. package/dist/{field-extractors-rpFJB4FT.mjs → field-extractors-CB0UJfXL.mjs} +1 -1
  105. package/dist/{firewall-GB6SpbJU.mjs → firewall-D2YIK_3P.mjs} +1 -1
  106. package/dist/{flagship-B0sIdg7R.mjs → flagship-DqNRMy2W.mjs} +1 -1
  107. package/dist/{fraud-Ca1zvG-F.mjs → fraud-D53t9Wtw.mjs} +1 -1
  108. package/dist/{google-tag-gateway-CC4xqAxo.mjs → google-tag-gateway-BHCRSeQm.mjs} +1 -1
  109. package/dist/{gt-BV-jij5q.mjs → gt-CfD9QGOr.mjs} +1 -1
  110. package/dist/{healthchecks-Cnl6Pv23.mjs → healthchecks-CTzeTqTV.mjs} +1 -1
  111. package/dist/{hyperdrive-CK-zHef4.mjs → hyperdrive-ClRYzEMt.mjs} +1 -1
  112. package/dist/{iam-D4GpREnO.mjs → iam-BPhNCSMt.mjs} +1 -1
  113. package/dist/{images-CQdKkefj.mjs → images-rjOXp_9M.mjs} +2 -2
  114. package/dist/index.mjs +1 -1
  115. package/dist/{init-Cj8qCJj7.mjs → init-DYa1i2-N.mjs} +2 -2
  116. package/dist/{intel-Di4M_luj.mjs → intel-DAEiuVd5.mjs} +5 -5
  117. package/dist/{interactive-FI8YIUbv.mjs → interactive-Bg9WyJ5G.mjs} +19 -19
  118. package/dist/{ips-BsSF2_y1.mjs → ips-Du6_SpiX.mjs} +1 -1
  119. package/dist/{k2-D3q3rmmF.mjs → k2-Dob-33Tv.mjs} +1 -1
  120. package/dist/{kv-T85sRcDz.mjs → kv-D1JYrgSd.mjs} +1 -1
  121. package/dist/{lazy-command-B3N4aXWS.mjs → lazy-command-BeOHik4o.mjs} +1 -1
  122. package/dist/{leaked-credential-checks--ulkoKo8.mjs → leaked-credential-checks-B-8upaC5.mjs} +1 -1
  123. package/dist/{load-balancers-DcLotLBB.mjs → load-balancers-BxXlkFHe.mjs} +1 -1
  124. package/dist/login-B3BkeHt6.mjs +2 -0
  125. package/dist/login-DIPsROTB.mjs +5 -0
  126. package/dist/{logpush-DAewBJFe.mjs → logpush-Bi88bWhn.mjs} +1 -1
  127. package/dist/{logs-DIRHM-E9.mjs → logs-Du28TgjU.mjs} +1 -1
  128. package/dist/{magic-network-monitoring-XtKqbZsz.mjs → magic-network-monitoring-Fs46HFzT.mjs} +1 -1
  129. package/dist/{magic-transit-DEt-PMS_.mjs → magic-transit-odyvqrYN.mjs} +1 -1
  130. package/dist/{managed-defense-CGITrGgV.mjs → managed-defense-C6BUvM0n.mjs} +1 -1
  131. package/dist/{managed-transforms-C27VjoWR.mjs → managed-transforms-DsaxeScz.mjs} +1 -1
  132. package/dist/{mcp-DMWcXkfV.mjs → mcp-BxtYhOtC.mjs} +2 -2
  133. package/dist/{mesh-CfZcm-Rl.mjs → mesh-CnbgVcmG.mjs} +1 -1
  134. package/dist/{migrate-D-xf74Yn.mjs → migrate-DykHgSce.mjs} +1 -1
  135. package/dist/{monetization-B5ksXOGO.mjs → monetization-xQZpBrQP.mjs} +1 -1
  136. package/dist/{network-BON9bFrK.mjs → network-LAUNuxaC.mjs} +4 -4
  137. package/dist/{network-interconnects-BWMs0LvT.mjs → network-interconnects-CUiDUngh.mjs} +1 -1
  138. package/dist/npm-launcher-Cx4wMwLb.mjs +2 -0
  139. package/dist/{o11y-CyZO37dy.mjs → o11y-C-c35mMA.mjs} +37 -41
  140. package/dist/{oauth-Do7K1Ycd.mjs → oauth-EQ8jqFiP.mjs} +1 -1
  141. package/dist/{oauth-CXm7-A7X.mjs → oauth-rF-C4Io5.mjs} +1 -1
  142. package/dist/{observability-DYy09kYo.mjs → observability-DoLkj6bq.mjs} +2 -2
  143. package/dist/{ohttp-gateway-Cqh36jz6.mjs → ohttp-gateway-CENYzFIz.mjs} +1 -1
  144. package/dist/open-BPppUKSJ-CtZ6XNLR.mjs +3 -0
  145. package/dist/{organizations-CiMeaQl0.mjs → organizations-BgezURxZ.mjs} +2 -2
  146. package/dist/package-DCTjwDaM.mjs +2 -0
  147. package/dist/{page-rules-DFNj-ZUk.mjs → page-rules-Zyhg9DGc.mjs} +1 -1
  148. package/dist/{pages-SSooyF53.mjs → pages-Vw8GCFpl.mjs} +2 -2
  149. package/dist/{pay-per-crawl-CC-mvH0h.mjs → pay-per-crawl-bYP31GU8.mjs} +1 -1
  150. package/dist/pay-per-use-Cz6NlvYS.mjs +40 -0
  151. package/dist/{pipelines-DGEpLhjs.mjs → pipelines-xSavOmi1.mjs} +2 -2
  152. package/dist/{precursor-CDnv_b0d.mjs → precursor-BYduCjnv.mjs} +1 -1
  153. package/dist/previews-Nvo-cl2k.mjs +6 -0
  154. package/dist/{progress-LGZ6-91a.mjs → progress-DV597tgm.mjs} +1 -1
  155. package/dist/{prompt-BSLPgIUg.mjs → prompt-WkzeQp66.mjs} +1 -1
  156. package/dist/{queues-DLGsVwH2.mjs → queues-lJRoRXhz.mjs} +3 -3
  157. package/dist/{r2-D94n2j1x.mjs → r2-CV2kwsvV.mjs} +2 -2
  158. package/dist/{radar-FHMHBDvg.mjs → radar-DMWHnxJf.mjs} +3 -3
  159. package/dist/raw-fetch-CWPKE55l.mjs +2 -0
  160. package/dist/{realtime-D4ImR9js.mjs → realtime-Cj7nP7c6.mjs} +38 -38
  161. package/dist/{registrar-BhCVJBi8.mjs → registrar-oO0NOyhZ.mjs} +1 -1
  162. package/dist/{registrar-sandbox-7S73fEBK.mjs → registrar-sandbox-BgakIlfa.mjs} +1 -1
  163. package/dist/{reporting-D-QpeRFo.mjs → reporting-Do1AQqTI.mjs} +1 -1
  164. package/dist/{request-headers-Inpc06QI.mjs → request-headers-Djxo_3pX.mjs} +1 -1
  165. package/dist/{request-tracers--W_ox55F.mjs → request-tracers-sHkrW5oF.mjs} +1 -1
  166. package/dist/{resource-sharing-DX-ySgCn.mjs → resource-sharing-DK3ayrt1.mjs} +5 -5
  167. package/dist/rolldown-runtime-BMUeFane-B0Knkemy.mjs +2 -0
  168. package/dist/{rules--3pEhUqP.mjs → rules-vWqZK-o-.mjs} +1 -1
  169. package/dist/{rulesets-UXNMbf21.mjs → rulesets-aaqJ_a0X.mjs} +4 -4
  170. package/dist/{rum-BI5bcaxj.mjs → rum-DGEDLsnB.mjs} +1 -1
  171. package/dist/run-BB7jHA1c.mjs +2 -0
  172. package/dist/run-DygYhh8g.mjs +2 -0
  173. package/dist/{schema-cache-CoAkY3EL.mjs → schema-cache-sZ4FzRWS.mjs} +1 -1
  174. package/dist/{schema-flags-YgeJ6Bey.mjs → schema-flags-CDUlHuF1.mjs} +1 -1
  175. package/dist/{scim-CUDTL74k.mjs → scim-BrUHziC8.mjs} +1 -1
  176. package/dist/{secrets-store-cpAAAdOD.mjs → secrets-store-DxflmMoF.mjs} +1 -1
  177. package/dist/{security-insights-DQDGeoGK.mjs → security-insights-BNGHKTWz.mjs} +1 -1
  178. package/dist/{security-txt-DMqNwxtT.mjs → security-txt-_joWJ0Gp.mjs} +1 -1
  179. package/dist/session-DZ2yOupF.mjs +2 -0
  180. package/dist/shared-Pw74xPAo.mjs +2 -0
  181. package/dist/{smart-shield-Tjh_-EWc.mjs → smart-shield-BoqicemV.mjs} +1 -1
  182. package/dist/{snippets-DL_OB7QE.mjs → snippets-CvJLit_s.mjs} +1 -1
  183. package/dist/{spawn-Dcit1ZgW.mjs → spawn-DXVOEwot.mjs} +4 -4
  184. package/dist/{spectrum-BDbdvXiL.mjs → spectrum-B0UP7LzC.mjs} +1 -1
  185. package/dist/{speed-PzlKqOxf.mjs → speed-DgzvaMOz.mjs} +1 -1
  186. package/dist/{sql-DqBcAQOi.mjs → sql-DIG6XE_K.mjs} +1 -1
  187. package/dist/{src-DY1gO4Hq.mjs → src-Dzp9yby9.mjs} +5 -5
  188. package/dist/{ssl-DmOr9F4p.mjs → ssl-CbY8Pl3Z.mjs} +2 -2
  189. package/dist/startup-profile-Cbj0m__A.mjs +2 -0
  190. package/dist/startup-profile-Dv_n6cTV.mjs +27 -0
  191. package/dist/state-CLwk9bEA.mjs +2 -0
  192. package/dist/{state-jXwCUs1C.mjs → state-qrqAdKcE.mjs} +1 -1
  193. package/dist/static-assets-BgkS3OVR.mjs +268 -0
  194. package/dist/{stream-BgqXnjWX.mjs → stream-1caalJNi.mjs} +4 -4
  195. package/dist/{tags-CkXGEaVr.mjs → tags-BjvacIQ7.mjs} +1 -1
  196. package/dist/{telemetry-CtWrahO4.mjs → telemetry-CWj_fL8y.mjs} +1 -1
  197. package/dist/telemetry-DTH02h9J.mjs +2 -0
  198. package/dist/{tenant-custom-nameservers-CbQRqKgy.mjs → tenant-custom-nameservers-B0BjA-UV.mjs} +1 -1
  199. package/dist/{tenants-fugWMuoJ.mjs → tenants-BPNCJnmb.mjs} +1 -1
  200. package/dist/{tunnels-C6xf10z5.mjs → tunnels-CCzHprUK.mjs} +23 -13
  201. package/dist/{turnstile-BRICGTnt.mjs → turnstile-BMmqJC6b.mjs} +4 -5
  202. package/dist/ui-BU-SZoFd.mjs +2 -0
  203. package/dist/undici-C4huyh7H.mjs +262 -0
  204. package/dist/update-BpPQ59qa.mjs +4 -0
  205. package/dist/update-check-BAv9XVm9.mjs +2 -0
  206. package/dist/{update-check-Cza2MgCa.mjs → update-check-CGMWCyjh.mjs} +1 -1
  207. package/dist/update-check-worker.mjs +1 -1
  208. package/dist/{url-normalization-CosYnVMB.mjs → url-normalization-ClDobamp.mjs} +1 -1
  209. package/dist/{url-scanner-BVH_6AJG.mjs → url-scanner-wqqX5qUt.mjs} +1 -1
  210. package/dist/{user-Bu7ff3bx.mjs → user-xQyUKX-z.mjs} +30 -30
  211. package/dist/valid-DVkqhQD-.mjs +2 -0
  212. package/dist/vectorize-D-wkY8uk.mjs +30 -0
  213. package/dist/version-PN64nEci.mjs +2 -0
  214. package/dist/{waiting-rooms-CXY1SQVQ.mjs → waiting-rooms--ADD0hV3.mjs} +3 -3
  215. package/dist/{web-assets-OGdIcJ6Q.mjs → web-assets-B0fZPTH3.mjs} +1 -1
  216. package/dist/web3-UafRTP9F.mjs +26 -0
  217. package/dist/whoami-CNZdOBDw.mjs +2 -0
  218. package/dist/{whoami-sg_pvN-b.mjs → whoami-DrdBMfdg.mjs} +3 -3
  219. package/dist/{workers-CCxmTaS8.mjs → workers-QUJ-FdJE.mjs} +3 -3
  220. package/dist/{workers-for-platforms-DQyH5xmF.mjs → workers-for-platforms-BC33ReOa.mjs} +1 -1
  221. package/dist/{workers-vpc-Dv_4bVyj.mjs → workers-vpc-BDcPn4np.mjs} +1 -1
  222. package/dist/{workflows-Bm0mxDoC.mjs → workflows-BQ2_aoCs.mjs} +1 -1
  223. package/dist/wrangler-migration-BXwEbK_h.mjs +614 -0
  224. package/dist/{zaraz-Nw7gzQK9.mjs → zaraz-DVHjNnRT.mjs} +1 -1
  225. package/dist/{zero-trust-iL97isOb.mjs → zero-trust-_sMgVrcF.mjs} +14 -14
  226. package/dist/{zones-BNtHBhcK.mjs → zones-Bj5EdxMY.mjs} +2 -2
  227. package/package.json +15 -14
  228. package/dist/auth-Bir2IDwr.mjs +0 -2
  229. package/dist/auth-C2vTENwf.mjs +0 -2
  230. package/dist/auth-MdFy7pyc.mjs +0 -3
  231. package/dist/auth-token-e3ippjSj.mjs +0 -8
  232. package/dist/autoconfig-DdFyUPGn.mjs +0 -812
  233. package/dist/build-ep4sfzzA.mjs +0 -2
  234. package/dist/cf-TB3QCSDh.mjs +0 -18
  235. package/dist/chunk-AAQI36FL-e6E5HW1g.mjs +0 -319
  236. package/dist/chunk-DSGVRFIS-5bsdVCqZ.mjs +0 -2
  237. package/dist/chunk-JP6R7L72-C0kFUelb.mjs +0 -2
  238. package/dist/chunk-SQ32YSCG-CQ3eXDT8.mjs +0 -363
  239. package/dist/chunk-U6NEESU5-DqqRCaWH.mjs +0 -2
  240. package/dist/chunk-WMOON6TZ-C0dmPHpM.mjs +0 -2
  241. package/dist/command-DkM3rDla.mjs +0 -2
  242. package/dist/deploy-context-DmYBYd8Q.mjs +0 -55
  243. package/dist/dev-DgerLZtO.mjs +0 -4
  244. package/dist/dist-aDyCGA5i.mjs +0 -465
  245. package/dist/dot-prop-IITUZ2XW-C4pkmT-K.mjs +0 -2
  246. package/dist/dotenv-DKRemNCH.mjs +0 -4
  247. package/dist/error-sanitization-Bve6lZ3A.mjs +0 -2
  248. package/dist/error-sanitization-CZolnIrD.mjs +0 -2
  249. package/dist/login-B8_ufSFI.mjs +0 -2
  250. package/dist/login-DGY-anz-.mjs +0 -5
  251. package/dist/open-PCXX3ZDZ-5J5IU2MX-DFe2CQkm.mjs +0 -4
  252. package/dist/open-PCXX3ZDZ-BD2iNJqn.mjs +0 -4
  253. package/dist/package-DLWHXbG1.mjs +0 -2
  254. package/dist/pay-per-use-9W39KK5F.mjs +0 -34
  255. package/dist/previews-CjBD7r9s.mjs +0 -6
  256. package/dist/raw-fetch-Cy2YR7bJ.mjs +0 -2
  257. package/dist/run-Bq0XGAg9.mjs +0 -2
  258. package/dist/run-CWmtD2lJ.mjs +0 -2
  259. package/dist/session-BfWuE2ax.mjs +0 -2
  260. package/dist/shared-BhmS_OQE.mjs +0 -2
  261. package/dist/startup-profile-C0UCllfs.mjs +0 -27
  262. package/dist/startup-profile-DT8dG8q7.mjs +0 -2
  263. package/dist/state-CQZhgMaN.mjs +0 -2
  264. package/dist/static-assets-n9iBqrrt.mjs +0 -386
  265. package/dist/telemetry-CvCFWLQU.mjs +0 -2
  266. package/dist/ui-C6DiSszw.mjs +0 -2
  267. package/dist/update-check-CO84YQp5.mjs +0 -2
  268. package/dist/vectorize-CIdh1Bb7.mjs +0 -30
  269. package/dist/version-DNYoInKC.mjs +0 -2
  270. package/dist/web3-BkwNeLQR.mjs +0 -26
  271. package/dist/whoami-DmQbL0w1.mjs +0 -2
  272. package/dist/wrangler-migration-iPVbGt2G.mjs +0 -959
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import"./api-5qkbb5HW.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{i as t,n}from"./auth-C2vTENwf.mjs";import{i as r}from"./context-ChcbaAGw.mjs";import{t as i}from"./dry-run-B4_5Qb0J.mjs";import{t as a}from"./output-DcDP8hsi.mjs";import{t as o}from"./progress-LGZ6-91a.mjs";import{t as s}from"./run-CWmtD2lJ.mjs";import"./telemetry-CvCFWLQU.mjs";import{i as c,r as l,t as u}from"./body-parser-HN91kAf0.mjs";import{n as d,t as f}from"./input-validation-D7z60HJH.mjs";import{a as p}from"./prompt-BSLPgIUg.mjs";var m={method:`GET`,path:t=>e`/zones/${t.zone_id}/settings/zaraz/config`};function h(e){return e.usage(`$0 zaraz config get
2
+ import"./api-5qkbb5HW.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{i as t,n}from"./auth-B23TQVFv.mjs";import{i as r}from"./context-CglPDNRF.mjs";import{t as i}from"./dry-run-B4_5Qb0J.mjs";import{t as a}from"./output-DcDP8hsi.mjs";import{t as o}from"./progress-DV597tgm.mjs";import{t as s}from"./run-BB7jHA1c.mjs";import"./telemetry-DTH02h9J.mjs";import{i as c,r as l,t as u}from"./body-parser-DftnWjJP.mjs";import{n as d,t as f}from"./input-validation-D7z60HJH.mjs";import{a as p}from"./prompt-WkzeQp66.mjs";var m={method:`GET`,path:t=>e`/zones/${t.zone_id}/settings/zaraz/config`};function h(e){return e.usage(`$0 zaraz config get
3
3
 
4
4
  Gets latest Zaraz configuration for a zone. It can be preview or published configuration, whichever was the last updated. Secret variables values will not be included.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const g={command:`get`,describe:`Get Zaraz configuration`,builder:h,handler:async e=>s({command:`zaraz config get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){i({command:`cf zaraz config get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/settings/zaraz/config`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``)},bodyKind:`none`});return}let t=await n(e),s=await r({zone:e.zone},t,{quiet:e.quiet});e.zoneId=s;let c=await o(`Loading`,async()=>t.send(m,{zone_id:s}));a(c,{successLabel:`Loaded`})})};var _={method:`PUT`,path:t=>e`/zones/${t.zone_id}/settings/zaraz/config`,body:`json`};function v(e){return e.usage(`$0 zaraz config update
5
5
 
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import"./api-5qkbb5HW.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{i as t,n}from"./auth-C2vTENwf.mjs";import{c as r,i,o as a,r as o,s,t as c}from"./body-parser-HN91kAf0.mjs";import{a as l,i as u,t as d}from"./context-ChcbaAGw.mjs";import{t as f}from"./dry-run-B4_5Qb0J.mjs";import{t as p}from"./local-CLMvfqkt.mjs";import{t as m}from"./output-DcDP8hsi.mjs";import{t as h}from"./run-CWmtD2lJ.mjs";import{t as g}from"./progress-LGZ6-91a.mjs";import"./telemetry-CvCFWLQU.mjs";import{a as _,i as v,n as y}from"./prompt-BSLPgIUg.mjs";import{n as b,t as x}from"./input-validation-D7z60HJH.mjs";import{n as ee,t as te}from"./raw-fetch-Cy2YR7bJ.mjs";import{t as ne}from"./body-unions-QFGGUlIr.mjs";var re={method:`POST`,path:t=>e`/${t.account_or_zone}/${t.account_or_zone_id}/access/apps`,body:`json`};function ie(e){return e.usage(`$0 zero-trust access applications create
2
+ import"./api-5qkbb5HW.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{i as t,n}from"./auth-B23TQVFv.mjs";import{c as r,i,o as a,r as o,s,t as c}from"./body-parser-DftnWjJP.mjs";import{a as l,i as u,t as d}from"./context-CglPDNRF.mjs";import{t as f}from"./dry-run-B4_5Qb0J.mjs";import{t as p}from"./local-CLMvfqkt.mjs";import{t as m}from"./output-DcDP8hsi.mjs";import{t as h}from"./run-BB7jHA1c.mjs";import{t as g}from"./progress-DV597tgm.mjs";import"./telemetry-DTH02h9J.mjs";import{a as _,i as v,n as y}from"./prompt-WkzeQp66.mjs";import{n as b,t as x}from"./input-validation-D7z60HJH.mjs";import{n as ee,t as te}from"./raw-fetch-CWPKE55l.mjs";import{t as ne}from"./body-unions-DX9G5Vny.mjs";var re={method:`POST`,path:t=>e`/${t.account_or_zone}/${t.account_or_zone_id}/access/apps`,body:`json`};function ie(e){return e.usage(`$0 zero-trust access applications create
3
3
 
4
4
  Adds a new application to Access.
5
5
 
@@ -401,7 +401,7 @@ Returns a paginated list of deployments in the account.`).option(`cursor`,{type:
401
401
 
402
402
  Replaces the deployment's mutable configuration and resource attachments.`).positional(`deployment-id`,{type:`string`,description:`ID of the deployment to update`,demandOption:!0}).option(`basic-auth-credential-ids`,{type:`string`,array:!0,description:`Replacement set of basic-auth credential IDs`}).option(`default-mode`,{type:`string`,description:`Default traffic mode: ALLOW or BLOCK`,choices:[`ALLOW`,`BLOCK`]}).coerce(`default-mode`,e=>b(e,`default-mode`,`text`)).option(`description`,{type:`string`,description:`Optional free-form description.`}).option(`domain-acl-id`,{type:`string`,description:`ID of the domain ACL to attach (omit or null to clear)`}).option(`name`,{type:`string`,description:`Name of the deployment`}).option(`on-error-action`,{type:`string`,description:`Action for runtime Rego errors. Omit to reset to BLOCK.`,choices:[`BLOCK`,`SKIP`]}).coerce(`on-error-action`,e=>b(e,`on-error-action`,`text`)).option(`policy-set-ids`,{type:`string`,array:!0,description:`Replacement set of policy set IDs`}).option(`rego-raise-error`,{type:`boolean`,description:`Whether OPA builtin failures are raised as runtime evaluation errors. Omit to reset to true.`}).option(`tags`,{type:`string`,description:`Replacement tag set. Omit or use {} to clear. Keys are limited to 256 UTF-8 bytes and values to 1024 UTF-8 bytes. Provide as a JSON object or @path/to/file.json. Shape: {"<key>": string}.`}).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 El={command:`update <deployment-id>`,describe:`Update a deployment`,builder:Tl,handler:async e=>h({command:`zero-trust cws deployments update`,classification:{safeFlags:[`default-mode`,`on-error-action`,`rego-raise-error`,`dry-run`]}},e,async()=>{let t=async()=>{if(e[`basic-auth-credential-ids`]===void 0)throw Error(`--basic-auth-credential-ids is required (or pass --body with this field set).`);if(e[`default-mode`]===void 0&&(e[`default-mode`]=await v(`default-mode`,`Default traffic mode: ALLOW or BLOCK`,[`ALLOW`,`BLOCK`])),e.name===void 0&&(e.name=await _(`name`,`Name of the deployment`)),e[`policy-set-ids`]===void 0)throw Error(`--policy-set-ids is required (or pass --body with this field set).`)};if(e.dryRun){e.body===void 0&&await t();let n=await l();f({command:`cf zero-trust cws deployments update`,method:`PUT`,url:`https://api.cloudflare.com/client/v4/accounts/${n??`<account-id>`}/cws/deployments/${e[`deployment-id`]==null?`<deployment-id>`:encodeURIComponent(String(e[`deployment-id`]))}`,pathParams:{"deployment-id":String(e[`deployment-id`]??``)},bodyKind:`json`,body:e.body===void 0?c({basic_auth_credential_ids:e[`basic-auth-credential-ids`],default_mode:e[`default-mode`],description:b(e.description,`description`,`text`),domain_acl_id:b(e[`domain-acl-id`],`domain-acl-id`,`text`),name:b(e.name,`name`,`text`),on_error_action:e[`on-error-action`],policy_set_ids:e[`policy-set-ids`],rego_raise_error:e[`rego-raise-error`],tags:i(e.tags,`tags`)},[[`tags`]]):o(e.body)});return}let r=e.body===void 0?void 0:o(e.body),a=await n(e),s=e.local?p:await d();if(e.accountId=s,e.body!==void 0){let t=r,n=await g(`Updating`,async()=>a.send(wl,{body:t,account_id:s,deployment_id:e[`deployment-id`]}));m(n,{successLabel:`Updated`});return}await t();let u=c({basic_auth_credential_ids:e[`basic-auth-credential-ids`],default_mode:e[`default-mode`],description:b(e.description,`description`,`text`),domain_acl_id:b(e[`domain-acl-id`],`domain-acl-id`,`text`),name:b(e.name,`name`,`text`),on_error_action:e[`on-error-action`],policy_set_ids:e[`policy-set-ids`],rego_raise_error:e[`rego-raise-error`],tags:i(e.tags,`tags`)},[[`tags`]]),h=await g(`Updating`,async()=>a.send(wl,{body:u,account_id:s,deployment_id:e[`deployment-id`]}));m(h,{successLabel:`Updated`})})},Dl={command:`deployments`,describe:`Operations for cws.deployments`,builder:e=>e.command(ml).command(_l).command(bl).command(Cl).command(El).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var Ol={method:`POST`,path:t=>e`/accounts/${t.account_id}/cws/domain-acls`,body:`json`};function kl(e){return e.usage(`$0 zero-trust cws domain-acls create
403
403
 
404
- Creates a domain access control list with its default action and entries.`).option(`default-action`,{type:`string`,description:`Default action when no entry matches`,choices:[`ALLOW`,`BLOCK`]}).coerce(`default-action`,e=>b(e,`default-action`,`text`)).option(`entries`,{type:`string`,description:`Domain entries for this ACL. Each domain must appear at most once. Provide as a JSON array of objects or @path/to/file.json. Shape: [{"action": "ALLOW" | "BLOCK", "domain": string}].`}).option(`name`,{type:`string`,description:`Name of the domain ACL`}).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 Al={command:`create`,describe:`Create a new domain ACL`,builder:kl,handler:async e=>h({command:`zero-trust cws domain-acls create`,classification:{safeFlags:[`default-action`,`dry-run`]}},e,async()=>{let t=async()=>{if(e[`default-action`]===void 0&&(e[`default-action`]=await v(`default-action`,`Default action when no entry matches`,[`ALLOW`,`BLOCK`])),e.entries===void 0)throw Error(`--entries is required (or pass --body with this field set).`);e.name===void 0&&(e.name=await _(`name`,`Name of the domain ACL`))};if(e.dryRun){e.body===void 0&&await t();let n=await l();f({command:`cf zero-trust cws domain-acls create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${n??`<account-id>`}/cws/domain-acls`,pathParams:{},bodyKind:`json`,body:e.body===void 0?c({default_action:e[`default-action`],entries:a(e.entries,`entries`),name:b(e.name,`name`,`text`)}):o(e.body)});return}let r=e.body===void 0?void 0:o(e.body),i=await n(e),s=e.local?p:await d();if(e.accountId=s,e.body!==void 0){let e=r,t=await g(`Creating`,async()=>i.send(Ol,{body:e,account_id:s}));m(t,{successLabel:`Created`});return}await t();let u=c({default_action:e[`default-action`],entries:a(e.entries,`entries`),name:b(e.name,`name`,`text`)}),h=await g(`Creating`,async()=>i.send(Ol,{body:u,account_id:s}));m(h,{successLabel:`Created`})})};var jl={method:`DELETE`,path:t=>e`/accounts/${t.account_id}/cws/domain-acls/${t.domain_acl_id}`};function Ml(e){return e.usage(`$0 zero-trust cws domain-acls delete <domain-acl-id>
404
+ Creates a domain access control list with its default action and entries.`).option(`default-action`,{type:`string`,description:`Default action when no entry matches`,choices:[`ALLOW`,`BLOCK`]}).coerce(`default-action`,e=>b(e,`default-action`,`text`)).option(`entries`,{type:`string`,description:`Domain entries for this ACL. Each domain must appear at most once. Provide as a JSON array of objects, null, or @path/to/file.json. Shape: [{"action": "ALLOW" | "BLOCK", "domain": string}].`}).option(`name`,{type:`string`,description:`Name of the domain ACL`}).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 Al={command:`create`,describe:`Create a new domain ACL`,builder:kl,handler:async e=>h({command:`zero-trust cws domain-acls create`,classification:{safeFlags:[`default-action`,`dry-run`]}},e,async()=>{let t=async()=>{if(e[`default-action`]===void 0&&(e[`default-action`]=await v(`default-action`,`Default action when no entry matches`,[`ALLOW`,`BLOCK`])),e.entries===void 0)throw Error(`--entries is required (or pass --body with this field set).`);e.name===void 0&&(e.name=await _(`name`,`Name of the domain ACL`))};if(e.dryRun){e.body===void 0&&await t();let n=await l();f({command:`cf zero-trust cws domain-acls create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${n??`<account-id>`}/cws/domain-acls`,pathParams:{},bodyKind:`json`,body:e.body===void 0?c({default_action:e[`default-action`],entries:a(e.entries,`entries`,!0),name:b(e.name,`name`,`text`)}):o(e.body)});return}let r=e.body===void 0?void 0:o(e.body),i=await n(e),s=e.local?p:await d();if(e.accountId=s,e.body!==void 0){let e=r,t=await g(`Creating`,async()=>i.send(Ol,{body:e,account_id:s}));m(t,{successLabel:`Created`});return}await t();let u=c({default_action:e[`default-action`],entries:a(e.entries,`entries`,!0),name:b(e.name,`name`,`text`)}),h=await g(`Creating`,async()=>i.send(Ol,{body:u,account_id:s}));m(h,{successLabel:`Created`})})};var jl={method:`DELETE`,path:t=>e`/accounts/${t.account_id}/cws/domain-acls/${t.domain_acl_id}`};function Ml(e){return e.usage(`$0 zero-trust cws domain-acls delete <domain-acl-id>
405
405
 
406
406
  Deletes the domain ACL if it is not attached to a deployment.`).positional(`domain-acl-id`,{type:`string`,description:`ID of the domain ACL to delete`,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 Nl={command:`delete <domain-acl-id>`,describe:`Delete a domain ACL`,builder:Ml,handler:async e=>h({command:`zero-trust cws domain-acls delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{if(e.dryRun){let t=await l();f({command:`cf zero-trust cws domain-acls delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/cws/domain-acls/${e[`domain-acl-id`]==null?`<domain-acl-id>`:encodeURIComponent(String(e[`domain-acl-id`]))}`,pathParams:{"domain-acl-id":String(e[`domain-acl-id`]??``)},bodyKind:`none`});return}let t=await n(e),r=e.local?p:await d();if(e.accountId=r,!await y({force:!!e.force,message:`Delete this domain ACL?`}))return;let i=await g(`Deleting`,async()=>t.send(jl,{account_id:r,domain_acl_id:e[`domain-acl-id`]}));m(i,{successLabel:`Deleted`})})};var Pl={method:`GET`,path:t=>e`/accounts/${t.account_id}/cws/domain-acls/${t.domain_acl_id}`};function Fl(e){return e.usage(`$0 zero-trust cws domain-acls get <domain-acl-id>
407
407
 
@@ -409,7 +409,7 @@ Returns the domain access control list with the specified ID.`).positional(`doma
409
409
 
410
410
  Returns a paginated list of domain access control lists in the account.`).option(`cursor`,{type:`string`,description:`Pagination cursor from previous response`}).option(`per-page`,{type:`number`,description:`Number of items per page (1-100, default 20)`}).option(`order`,{type:`string`,description:`Field to order results by (default: created_at)`,choices:[`name`,`created_at`,`updated_at`]}).option(`direction`,{type:`string`,description:`Sort direction (default: asc)`,choices:[`asc`,`desc`]}).option(`name`,{type:`string`,description:`Filter by domain ACL name (case-insensitive substring match)`}).option(`deployment-id`,{type:`string`,description:`Filter to domain ACLs attached to this deployment`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const zl={command:`list`,describe:`List domain ACLs`,builder:Rl,handler:async e=>h({command:`zero-trust cws domain-acls list`,classification:{safeFlags:[`order`,`direction`,`dry-run`]}},e,async()=>{let t={cursor:e.cursor,per_page:e[`per-page`],order:e.order,direction:e.direction,name:e.name,deployment_id:e[`deployment-id`]};if(e.dryRun){let e=await l();f({command:`cf zero-trust cws domain-acls list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}/cws/domain-acls`,pathParams:{},query:t,bodyKind:`none`});return}let r=await n(e),i=e.local?p:await d();e.accountId=i;let a=await g(`Loading`,async()=>r.send(Ll,{account_id:i,...t}));m(a,{successLabel:`Loaded`})})};var Bl={method:`PUT`,path:t=>e`/accounts/${t.account_id}/cws/domain-acls/${t.domain_acl_id}`,body:`json`};function Vl(e){return e.usage(`$0 zero-trust cws domain-acls update <domain-acl-id>
411
411
 
412
- Replaces the domain access control list's name, default action, and entries.`).positional(`domain-acl-id`,{type:`string`,description:`ID of the domain ACL to update`,demandOption:!0}).option(`default-action`,{type:`string`,description:`Default action when no entry matches`,choices:[`ALLOW`,`BLOCK`]}).coerce(`default-action`,e=>b(e,`default-action`,`text`)).option(`entries`,{type:`string`,description:`Replacement set of domain entries. Each domain must appear at most once. Provide as a JSON array of objects or @path/to/file.json. Shape: [{"action": "ALLOW" | "BLOCK", "domain": string}].`}).option(`name`,{type:`string`,description:`Name of the domain ACL`}).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 Hl={command:`update <domain-acl-id>`,describe:`Update a domain ACL and replace its entries`,builder:Vl,handler:async e=>h({command:`zero-trust cws domain-acls update`,classification:{safeFlags:[`default-action`,`dry-run`]}},e,async()=>{let t=async()=>{if(e[`default-action`]===void 0&&(e[`default-action`]=await v(`default-action`,`Default action when no entry matches`,[`ALLOW`,`BLOCK`])),e.entries===void 0)throw Error(`--entries is required (or pass --body with this field set).`);e.name===void 0&&(e.name=await _(`name`,`Name of the domain ACL`))};if(e.dryRun){e.body===void 0&&await t();let n=await l();f({command:`cf zero-trust cws domain-acls update`,method:`PUT`,url:`https://api.cloudflare.com/client/v4/accounts/${n??`<account-id>`}/cws/domain-acls/${e[`domain-acl-id`]==null?`<domain-acl-id>`:encodeURIComponent(String(e[`domain-acl-id`]))}`,pathParams:{"domain-acl-id":String(e[`domain-acl-id`]??``)},bodyKind:`json`,body:e.body===void 0?c({default_action:e[`default-action`],entries:a(e.entries,`entries`),name:b(e.name,`name`,`text`)}):o(e.body)});return}let r=e.body===void 0?void 0:o(e.body),i=await n(e),s=e.local?p:await d();if(e.accountId=s,e.body!==void 0){let t=r,n=await g(`Updating`,async()=>i.send(Bl,{body:t,account_id:s,domain_acl_id:e[`domain-acl-id`]}));m(n,{successLabel:`Updated`});return}await t();let u=c({default_action:e[`default-action`],entries:a(e.entries,`entries`),name:b(e.name,`name`,`text`)}),h=await g(`Updating`,async()=>i.send(Bl,{body:u,account_id:s,domain_acl_id:e[`domain-acl-id`]}));m(h,{successLabel:`Updated`})})},Ul={command:`domain-acls`,describe:`Operations for cws.domain-acls`,builder:e=>e.command(Al).command(Nl).command(Il).command(zl).command(Hl).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var Wl={method:`POST`,path:t=>e`/accounts/${t.account_id}/cws/policies`,body:`json`,errors:{503:`ServiceUnavailableError`}};function Gl(e){return e.usage(`$0 zero-trust cws policies create
412
+ Replaces the domain access control list's name, default action, and entries.`).positional(`domain-acl-id`,{type:`string`,description:`ID of the domain ACL to update`,demandOption:!0}).option(`default-action`,{type:`string`,description:`Default action when no entry matches`,choices:[`ALLOW`,`BLOCK`]}).coerce(`default-action`,e=>b(e,`default-action`,`text`)).option(`entries`,{type:`string`,description:`Replacement set of domain entries. Each domain must appear at most once. Provide as a JSON array of objects, null, or @path/to/file.json. Shape: [{"action": "ALLOW" | "BLOCK", "domain": string}].`}).option(`name`,{type:`string`,description:`Name of the domain ACL`}).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 Hl={command:`update <domain-acl-id>`,describe:`Update a domain ACL and replace its entries`,builder:Vl,handler:async e=>h({command:`zero-trust cws domain-acls update`,classification:{safeFlags:[`default-action`,`dry-run`]}},e,async()=>{let t=async()=>{if(e[`default-action`]===void 0&&(e[`default-action`]=await v(`default-action`,`Default action when no entry matches`,[`ALLOW`,`BLOCK`])),e.entries===void 0)throw Error(`--entries is required (or pass --body with this field set).`);e.name===void 0&&(e.name=await _(`name`,`Name of the domain ACL`))};if(e.dryRun){e.body===void 0&&await t();let n=await l();f({command:`cf zero-trust cws domain-acls update`,method:`PUT`,url:`https://api.cloudflare.com/client/v4/accounts/${n??`<account-id>`}/cws/domain-acls/${e[`domain-acl-id`]==null?`<domain-acl-id>`:encodeURIComponent(String(e[`domain-acl-id`]))}`,pathParams:{"domain-acl-id":String(e[`domain-acl-id`]??``)},bodyKind:`json`,body:e.body===void 0?c({default_action:e[`default-action`],entries:a(e.entries,`entries`,!0),name:b(e.name,`name`,`text`)}):o(e.body)});return}let r=e.body===void 0?void 0:o(e.body),i=await n(e),s=e.local?p:await d();if(e.accountId=s,e.body!==void 0){let t=r,n=await g(`Updating`,async()=>i.send(Bl,{body:t,account_id:s,domain_acl_id:e[`domain-acl-id`]}));m(n,{successLabel:`Updated`});return}await t();let u=c({default_action:e[`default-action`],entries:a(e.entries,`entries`,!0),name:b(e.name,`name`,`text`)}),h=await g(`Updating`,async()=>i.send(Bl,{body:u,account_id:s,domain_acl_id:e[`domain-acl-id`]}));m(h,{successLabel:`Updated`})})},Ul={command:`domain-acls`,describe:`Operations for cws.domain-acls`,builder:e=>e.command(Al).command(Nl).command(Il).command(zl).command(Hl).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var Wl={method:`POST`,path:t=>e`/accounts/${t.account_id}/cws/policies`,body:`json`,errors:{503:`ServiceUnavailableError`}};function Gl(e){return e.usage(`$0 zero-trust cws policies create
413
413
 
414
414
  Creates a policy from inline Rego source, an entrypoint, and a filter expression.`).option(`description`,{type:`string`,description:`Optional free-form description.`}).option(`entrypoint`,{type:`string`,description:`Non-function rule declared in rego_source. Evaluation uses data.<package_path>.<entrypoint>.`}).option(`filter`,{type:`string`,description:`Filter expression that determines whether this policy applies. Maximum 4096 UTF-8 bytes.`}).option(`name`,{type:`string`,description:`Name of the policy`}).option(`rego-source`,{type:`string`,description:`Inline Rego source with a package beginning with "policy." Maximum 16384 UTF-8 bytes.`}).option(`tags`,{type:`string`,description:`Tags to attach. Keys are limited to 256 UTF-8 bytes and values to 1024 UTF-8 bytes. Provide as a JSON object or @path/to/file.json. Shape: {"<key>": string}.`}).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 Kl={command:`create`,describe:`Create a new policy`,builder:Gl,handler:async e=>h({command:`zero-trust cws policies create`,classification:{safeFlags:[`dry-run`]}},e,async()=>{let t=async()=>{e.entrypoint===void 0&&(e.entrypoint=await _(`entrypoint`,`Non-function rule declared in rego_source. Evaluation uses data.<package_path>.<entrypoint>.`)),e.filter===void 0&&(e.filter=await _(`filter`,`Filter expression that determines whether this policy applies. Maximum 4096 UTF-8 bytes.`)),e.name===void 0&&(e.name=await _(`name`,`Name of the policy`)),e[`rego-source`]===void 0&&(e[`rego-source`]=await _(`rego-source`,`Inline Rego source with a package beginning with "policy." Maximum 16384 UTF-8 bytes.`))};if(e.dryRun){e.body===void 0&&await t();let n=await l();f({command:`cf zero-trust cws policies create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${n??`<account-id>`}/cws/policies`,pathParams:{},bodyKind:`json`,body:e.body===void 0?c({description:b(e.description,`description`,`text`),entrypoint:b(e.entrypoint,`entrypoint`,`text`),filter:b(e.filter,`filter`,`text`),name:b(e.name,`name`,`text`),rego_source:b(e[`rego-source`],`rego-source`,`text`),tags:i(e.tags,`tags`)},[[`tags`]]):o(e.body)});return}let r=e.body===void 0?void 0:o(e.body),a=await n(e),s=e.local?p:await d();if(e.accountId=s,e.body!==void 0){let e=r,t=await g(`Creating`,async()=>a.send(Wl,{body:e,account_id:s}));m(t,{successLabel:`Created`});return}await t();let u=c({description:b(e.description,`description`,`text`),entrypoint:b(e.entrypoint,`entrypoint`,`text`),filter:b(e.filter,`filter`,`text`),name:b(e.name,`name`,`text`),rego_source:b(e[`rego-source`],`rego-source`,`text`),tags:i(e.tags,`tags`)},[[`tags`]]),h=await g(`Creating`,async()=>a.send(Wl,{body:u,account_id:s}));m(h,{successLabel:`Created`})})};var ql={method:`DELETE`,path:t=>e`/accounts/${t.account_id}/cws/policies/${t.policy_id}`};function Jl(e){return e.usage(`$0 zero-trust cws policies delete <policy-id>
415
415
 
@@ -421,7 +421,7 @@ Returns a paginated list of policies in the account.`).option(`cursor`,{type:`st
421
421
 
422
422
  Replaces the policy's configuration. Omit tags or use {} to clear them.`).positional(`policy-id`,{type:`string`,description:`ID of the policy to update`,demandOption:!0}).option(`description`,{type:`string`,description:`Optional free-form description.`}).option(`entrypoint`,{type:`string`,description:`Non-function rule declared in rego_source. Evaluation uses data.<package_path>.<entrypoint>.`}).option(`filter`,{type:`string`,description:`Filter expression that determines whether this policy applies. Maximum 4096 UTF-8 bytes.`}).option(`name`,{type:`string`,description:`Name of the policy`}).option(`rego-source`,{type:`string`,description:`Inline Rego source with a package beginning with "policy." Maximum 16384 UTF-8 bytes.`}).option(`tags`,{type:`string`,description:`Replacement tag set. Omit or use {} to clear. Keys are limited to 256 UTF-8 bytes and values to 1024 UTF-8 bytes. Provide as a JSON object or @path/to/file.json. Shape: {"<key>": string}.`}).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 iu={command:`update <policy-id>`,describe:`Update a policy`,builder:ru,handler:async e=>h({command:`zero-trust cws policies update`,classification:{safeFlags:[`dry-run`]}},e,async()=>{let t=async()=>{e.entrypoint===void 0&&(e.entrypoint=await _(`entrypoint`,`Non-function rule declared in rego_source. Evaluation uses data.<package_path>.<entrypoint>.`)),e.filter===void 0&&(e.filter=await _(`filter`,`Filter expression that determines whether this policy applies. Maximum 4096 UTF-8 bytes.`)),e.name===void 0&&(e.name=await _(`name`,`Name of the policy`)),e[`rego-source`]===void 0&&(e[`rego-source`]=await _(`rego-source`,`Inline Rego source with a package beginning with "policy." Maximum 16384 UTF-8 bytes.`))};if(e.dryRun){e.body===void 0&&await t();let n=await l();f({command:`cf zero-trust cws policies update`,method:`PUT`,url:`https://api.cloudflare.com/client/v4/accounts/${n??`<account-id>`}/cws/policies/${e[`policy-id`]==null?`<policy-id>`:encodeURIComponent(String(e[`policy-id`]))}`,pathParams:{"policy-id":String(e[`policy-id`]??``)},bodyKind:`json`,body:e.body===void 0?c({description:b(e.description,`description`,`text`),entrypoint:b(e.entrypoint,`entrypoint`,`text`),filter:b(e.filter,`filter`,`text`),name:b(e.name,`name`,`text`),rego_source:b(e[`rego-source`],`rego-source`,`text`),tags:i(e.tags,`tags`)},[[`tags`]]):o(e.body)});return}let r=e.body===void 0?void 0:o(e.body),a=await n(e),s=e.local?p:await d();if(e.accountId=s,e.body!==void 0){let t=r,n=await g(`Updating`,async()=>a.send(nu,{body:t,account_id:s,policy_id:e[`policy-id`]}));m(n,{successLabel:`Updated`});return}await t();let u=c({description:b(e.description,`description`,`text`),entrypoint:b(e.entrypoint,`entrypoint`,`text`),filter:b(e.filter,`filter`,`text`),name:b(e.name,`name`,`text`),rego_source:b(e[`rego-source`],`rego-source`,`text`),tags:i(e.tags,`tags`)},[[`tags`]]),h=await g(`Updating`,async()=>a.send(nu,{body:u,account_id:s,policy_id:e[`policy-id`]}));m(h,{successLabel:`Updated`})})},au={command:`policies`,describe:`Operations for cws.policies`,builder:e=>e.command(Kl).command(Yl).command(Ql).command(tu).command(iu).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var ou={method:`POST`,path:t=>e`/accounts/${t.account_id}/cws/policy-sets`,body:`json`};function su(e){return e.usage(`$0 zero-trust cws policy-sets create
423
423
 
424
- Creates a policy set containing the specified policies and workload targets.`).option(`description`,{type:`string`,description:`Optional free-form description.`}).option(`exclude-workload-ids`,{type:`string`,array:!0,description:`Workload IDs that exclude matching requests. Exclusions take precedence.`}).option(`include-workload-ids`,{type:`string`,array:!0,description:`Workload IDs that include matching requests. Empty or omitted includes all requests before exclusions.`}).option(`name`,{type:`string`,description:`Name of the policy set`}).option(`policies`,{type:`string`,description:`Policies to include with per-membership enforcement mode. Provide as a JSON array of objects or @path/to/file.json. Shape: [{"policy_id": string, "enforce"?: boolean}]. ? marks optional keys.`}).option(`tags`,{type:`string`,description:`Tags to attach. Keys are limited to 256 UTF-8 bytes and values to 1024 UTF-8 bytes. Provide as a JSON object or @path/to/file.json. Shape: {"<key>": string}.`}).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 cu={command:`create`,describe:`Create a new policy set`,builder:su,handler:async e=>h({command:`zero-trust cws policy-sets create`,classification:{safeFlags:[`dry-run`]}},e,async()=>{let t=async()=>{if(e.name===void 0&&(e.name=await _(`name`,`Name of the policy set`)),e.policies===void 0)throw Error(`--policies is required (or pass --body with this field set).`)};if(e.dryRun){e.body===void 0&&await t();let n=await l();f({command:`cf zero-trust cws policy-sets create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${n??`<account-id>`}/cws/policy-sets`,pathParams:{},bodyKind:`json`,body:e.body===void 0?c({description:b(e.description,`description`,`text`),exclude_workload_ids:e[`exclude-workload-ids`],include_workload_ids:e[`include-workload-ids`],name:b(e.name,`name`,`text`),policies:a(e.policies,`policies`),tags:i(e.tags,`tags`)},[[`tags`]]):o(e.body)});return}let r=e.body===void 0?void 0:o(e.body),s=await n(e),u=e.local?p:await d();if(e.accountId=u,e.body!==void 0){let e=r,t=await g(`Creating`,async()=>s.send(ou,{body:e,account_id:u}));m(t,{successLabel:`Created`});return}await t();let h=c({description:b(e.description,`description`,`text`),exclude_workload_ids:e[`exclude-workload-ids`],include_workload_ids:e[`include-workload-ids`],name:b(e.name,`name`,`text`),policies:a(e.policies,`policies`),tags:i(e.tags,`tags`)},[[`tags`]]),v=await g(`Creating`,async()=>s.send(ou,{body:h,account_id:u}));m(v,{successLabel:`Created`})})};var lu={method:`DELETE`,path:t=>e`/accounts/${t.account_id}/cws/policy-sets/${t.policy_set_id}`};function uu(e){return e.usage(`$0 zero-trust cws policy-sets delete <policy-set-id>
424
+ Creates a policy set containing the specified policies and workload targets.`).option(`description`,{type:`string`,description:`Optional free-form description.`}).option(`exclude-workload-ids`,{type:`string`,array:!0,description:`Workload IDs that exclude matching requests. Exclusions take precedence.`}).option(`include-workload-ids`,{type:`string`,array:!0,description:`Workload IDs that include matching requests. Empty or omitted includes all requests before exclusions.`}).option(`name`,{type:`string`,description:`Name of the policy set`}).option(`policies`,{type:`string`,description:`Policies to include with per-membership enforcement mode. Provide as a JSON array of objects, null, or @path/to/file.json. Shape: [{"policy_id": string, "enforce"?: boolean}]. ? marks optional keys.`}).option(`tags`,{type:`string`,description:`Tags to attach. Keys are limited to 256 UTF-8 bytes and values to 1024 UTF-8 bytes. Provide as a JSON object or @path/to/file.json. Shape: {"<key>": string}.`}).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 cu={command:`create`,describe:`Create a new policy set`,builder:su,handler:async e=>h({command:`zero-trust cws policy-sets create`,classification:{safeFlags:[`dry-run`]}},e,async()=>{let t=async()=>{if(e.name===void 0&&(e.name=await _(`name`,`Name of the policy set`)),e.policies===void 0)throw Error(`--policies is required (or pass --body with this field set).`)};if(e.dryRun){e.body===void 0&&await t();let n=await l();f({command:`cf zero-trust cws policy-sets create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${n??`<account-id>`}/cws/policy-sets`,pathParams:{},bodyKind:`json`,body:e.body===void 0?c({description:b(e.description,`description`,`text`),exclude_workload_ids:e[`exclude-workload-ids`],include_workload_ids:e[`include-workload-ids`],name:b(e.name,`name`,`text`),policies:a(e.policies,`policies`,!0),tags:i(e.tags,`tags`)},[[`tags`]]):o(e.body)});return}let r=e.body===void 0?void 0:o(e.body),s=await n(e),u=e.local?p:await d();if(e.accountId=u,e.body!==void 0){let e=r,t=await g(`Creating`,async()=>s.send(ou,{body:e,account_id:u}));m(t,{successLabel:`Created`});return}await t();let h=c({description:b(e.description,`description`,`text`),exclude_workload_ids:e[`exclude-workload-ids`],include_workload_ids:e[`include-workload-ids`],name:b(e.name,`name`,`text`),policies:a(e.policies,`policies`,!0),tags:i(e.tags,`tags`)},[[`tags`]]),v=await g(`Creating`,async()=>s.send(ou,{body:h,account_id:u}));m(v,{successLabel:`Created`})})};var lu={method:`DELETE`,path:t=>e`/accounts/${t.account_id}/cws/policy-sets/${t.policy_set_id}`};function uu(e){return e.usage(`$0 zero-trust cws policy-sets delete <policy-set-id>
425
425
 
426
426
  Deletes the policy set and cascades its deployment attachment and policy and workload membership rows. The referenced deployments, policies, and workloads remain.`).positional(`policy-set-id`,{type:`string`,description:`ID of the policy set to delete`,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 du={command:`delete <policy-set-id>`,describe:`Delete a policy set`,builder:uu,handler:async e=>h({command:`zero-trust cws policy-sets delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{if(e.dryRun){let t=await l();f({command:`cf zero-trust cws policy-sets delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/cws/policy-sets/${e[`policy-set-id`]==null?`<policy-set-id>`:encodeURIComponent(String(e[`policy-set-id`]))}`,pathParams:{"policy-set-id":String(e[`policy-set-id`]??``)},bodyKind:`none`});return}let t=await n(e),r=e.local?p:await d();if(e.accountId=r,!await y({force:!!e.force,message:`Delete this policy set?`}))return;let i=await g(`Deleting`,async()=>t.send(lu,{account_id:r,policy_set_id:e[`policy-set-id`]}));m(i,{successLabel:`Deleted`})})};var fu={method:`GET`,path:t=>e`/accounts/${t.account_id}/cws/policy-sets/${t.policy_set_id}`};function pu(e){return e.usage(`$0 zero-trust cws policy-sets get <policy-set-id>
427
427
 
@@ -429,7 +429,7 @@ Returns the policy set with the specified ID.`).positional(`policy-set-id`,{type
429
429
 
430
430
  Returns a paginated list of policy sets in the account.`).option(`cursor`,{type:`string`,description:`Pagination cursor from previous response`}).option(`per-page`,{type:`number`,description:`Number of items per page (1-100, default 20)`}).option(`order`,{type:`string`,description:`Field to order results by (default: created_at)`,choices:[`name`,`created_at`,`updated_at`]}).option(`direction`,{type:`string`,description:`Sort direction (default: asc)`,choices:[`asc`,`desc`]}).option(`name`,{type:`string`,description:`Filter by policy set name (case-insensitive substring match)`}).option(`deployment-id`,{type:`string`,description:`Filter to policy sets attached to this deployment`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const _u={command:`list`,describe:`List policy sets`,builder:gu,handler:async e=>h({command:`zero-trust cws policy-sets list`,classification:{safeFlags:[`order`,`direction`,`dry-run`]}},e,async()=>{let t={cursor:e.cursor,per_page:e[`per-page`],order:e.order,direction:e.direction,name:e.name,deployment_id:e[`deployment-id`]};if(e.dryRun){let e=await l();f({command:`cf zero-trust cws policy-sets list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}/cws/policy-sets`,pathParams:{},query:t,bodyKind:`none`});return}let r=await n(e),i=e.local?p:await d();e.accountId=i;let a=await g(`Loading`,async()=>r.send(hu,{account_id:i,...t}));m(a,{successLabel:`Loaded`})})};var vu={method:`PUT`,path:t=>e`/accounts/${t.account_id}/cws/policy-sets/${t.policy_set_id}`,body:`json`};function yu(e){return e.usage(`$0 zero-trust cws policy-sets update <policy-set-id>
431
431
 
432
- Replaces the policy set's configuration. Omit tags or use {} to clear them.`).positional(`policy-set-id`,{type:`string`,description:`ID of the policy set to update`,demandOption:!0}).option(`description`,{type:`string`,description:`Optional free-form description.`}).option(`exclude-workload-ids`,{type:`string`,array:!0,description:`Replacement set of excluded workload IDs. Exclusions take precedence.`}).option(`include-workload-ids`,{type:`string`,array:!0,description:`Replacement set of included workload IDs. Empty or omitted includes all requests before exclusions.`}).option(`name`,{type:`string`,description:`Name of the policy set`}).option(`policies`,{type:`string`,description:`Replacement set of policies with per-membership enforcement mode. Provide as a JSON array of objects or @path/to/file.json. Shape: [{"policy_id": string, "enforce"?: boolean}]. ? marks optional keys.`}).option(`tags`,{type:`string`,description:`Replacement tag set. Omit or use {} to clear. Keys are limited to 256 UTF-8 bytes and values to 1024 UTF-8 bytes. Provide as a JSON object or @path/to/file.json. Shape: {"<key>": string}.`}).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 bu={command:`update <policy-set-id>`,describe:`Update a policy set`,builder:yu,handler:async e=>h({command:`zero-trust cws policy-sets update`,classification:{safeFlags:[`dry-run`]}},e,async()=>{let t=async()=>{if(e.name===void 0&&(e.name=await _(`name`,`Name of the policy set`)),e.policies===void 0)throw Error(`--policies is required (or pass --body with this field set).`)};if(e.dryRun){e.body===void 0&&await t();let n=await l();f({command:`cf zero-trust cws policy-sets update`,method:`PUT`,url:`https://api.cloudflare.com/client/v4/accounts/${n??`<account-id>`}/cws/policy-sets/${e[`policy-set-id`]==null?`<policy-set-id>`:encodeURIComponent(String(e[`policy-set-id`]))}`,pathParams:{"policy-set-id":String(e[`policy-set-id`]??``)},bodyKind:`json`,body:e.body===void 0?c({description:b(e.description,`description`,`text`),exclude_workload_ids:e[`exclude-workload-ids`],include_workload_ids:e[`include-workload-ids`],name:b(e.name,`name`,`text`),policies:a(e.policies,`policies`),tags:i(e.tags,`tags`)},[[`tags`]]):o(e.body)});return}let r=e.body===void 0?void 0:o(e.body),s=await n(e),u=e.local?p:await d();if(e.accountId=u,e.body!==void 0){let t=r,n=await g(`Updating`,async()=>s.send(vu,{body:t,account_id:u,policy_set_id:e[`policy-set-id`]}));m(n,{successLabel:`Updated`});return}await t();let h=c({description:b(e.description,`description`,`text`),exclude_workload_ids:e[`exclude-workload-ids`],include_workload_ids:e[`include-workload-ids`],name:b(e.name,`name`,`text`),policies:a(e.policies,`policies`),tags:i(e.tags,`tags`)},[[`tags`]]),v=await g(`Updating`,async()=>s.send(vu,{body:h,account_id:u,policy_set_id:e[`policy-set-id`]}));m(v,{successLabel:`Updated`})})},xu={command:`policy-sets`,describe:`Operations for cws.policy-sets`,builder:e=>e.command(cu).command(du).command(mu).command(_u).command(bu).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var Su={method:`POST`,path:t=>e`/accounts/${t.account_id}/cws/rego-metadata`,body:`json`};function Cu(e){return e.usage(`$0 zero-trust cws rego-metadata create
432
+ Replaces the policy set's configuration. Omit tags or use {} to clear them.`).positional(`policy-set-id`,{type:`string`,description:`ID of the policy set to update`,demandOption:!0}).option(`description`,{type:`string`,description:`Optional free-form description.`}).option(`exclude-workload-ids`,{type:`string`,array:!0,description:`Replacement set of excluded workload IDs. Exclusions take precedence.`}).option(`include-workload-ids`,{type:`string`,array:!0,description:`Replacement set of included workload IDs. Empty or omitted includes all requests before exclusions.`}).option(`name`,{type:`string`,description:`Name of the policy set`}).option(`policies`,{type:`string`,description:`Replacement set of policies with per-membership enforcement mode. Provide as a JSON array of objects, null, or @path/to/file.json. Shape: [{"policy_id": string, "enforce"?: boolean}]. ? marks optional keys.`}).option(`tags`,{type:`string`,description:`Replacement tag set. Omit or use {} to clear. Keys are limited to 256 UTF-8 bytes and values to 1024 UTF-8 bytes. Provide as a JSON object or @path/to/file.json. Shape: {"<key>": string}.`}).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 bu={command:`update <policy-set-id>`,describe:`Update a policy set`,builder:yu,handler:async e=>h({command:`zero-trust cws policy-sets update`,classification:{safeFlags:[`dry-run`]}},e,async()=>{let t=async()=>{if(e.name===void 0&&(e.name=await _(`name`,`Name of the policy set`)),e.policies===void 0)throw Error(`--policies is required (or pass --body with this field set).`)};if(e.dryRun){e.body===void 0&&await t();let n=await l();f({command:`cf zero-trust cws policy-sets update`,method:`PUT`,url:`https://api.cloudflare.com/client/v4/accounts/${n??`<account-id>`}/cws/policy-sets/${e[`policy-set-id`]==null?`<policy-set-id>`:encodeURIComponent(String(e[`policy-set-id`]))}`,pathParams:{"policy-set-id":String(e[`policy-set-id`]??``)},bodyKind:`json`,body:e.body===void 0?c({description:b(e.description,`description`,`text`),exclude_workload_ids:e[`exclude-workload-ids`],include_workload_ids:e[`include-workload-ids`],name:b(e.name,`name`,`text`),policies:a(e.policies,`policies`,!0),tags:i(e.tags,`tags`)},[[`tags`]]):o(e.body)});return}let r=e.body===void 0?void 0:o(e.body),s=await n(e),u=e.local?p:await d();if(e.accountId=u,e.body!==void 0){let t=r,n=await g(`Updating`,async()=>s.send(vu,{body:t,account_id:u,policy_set_id:e[`policy-set-id`]}));m(n,{successLabel:`Updated`});return}await t();let h=c({description:b(e.description,`description`,`text`),exclude_workload_ids:e[`exclude-workload-ids`],include_workload_ids:e[`include-workload-ids`],name:b(e.name,`name`,`text`),policies:a(e.policies,`policies`,!0),tags:i(e.tags,`tags`)},[[`tags`]]),v=await g(`Updating`,async()=>s.send(vu,{body:h,account_id:u,policy_set_id:e[`policy-set-id`]}));m(v,{successLabel:`Updated`})})},xu={command:`policy-sets`,describe:`Operations for cws.policy-sets`,builder:e=>e.command(cu).command(du).command(mu).command(_u).command(bu).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var Su={method:`POST`,path:t=>e`/accounts/${t.account_id}/cws/rego-metadata`,body:`json`};function Cu(e){return e.usage(`$0 zero-trust cws rego-metadata create
433
433
 
434
434
  Creates a JSON document that Rego can access through its import path.`).option(`import-path`,{type:`string`,description:`Unique Rego import path in the form metadata.<segment>, with one alphanumeric or underscore segment. Reference it as data.<import_path>.`}).option(`name`,{type:`string`,description:`Name of the rego metadata document (unique per account)`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const wu={command:`create`,describe:`Create a new rego metadata document`,builder:Cu,handler:async e=>h({command:`zero-trust cws rego-metadata create`,classification:{safeFlags:[`dry-run`]}},e,async()=>{let t=async()=>{e[`import-path`]===void 0&&(e[`import-path`]=await _(`import-path`,`Unique Rego import path in the form metadata.<segment>, with one alphanumeric or underscore segment. Reference it as data.<import_path>.`)),e.name===void 0&&(e.name=await _(`name`,`Name of the rego metadata document (unique per account)`))};if(e.dryRun){e.body===void 0&&await t();let n=await l();f({command:`cf zero-trust cws rego-metadata create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${n??`<account-id>`}/cws/rego-metadata`,pathParams:{},bodyKind:`json`,body:e.body===void 0?c({import_path:b(e[`import-path`],`import-path`,`text`),name:b(e.name,`name`,`text`)}):o(e.body)});return}let r=e.body===void 0?void 0:o(e.body),i=await n(e),a=e.local?p:await d();if(e.accountId=a,e.body!==void 0){let e=r,t=await g(`Creating`,async()=>i.send(Su,{body:e,account_id:a}));m(t,{successLabel:`Created`});return}await t();let s=c({import_path:b(e[`import-path`],`import-path`,`text`),name:b(e.name,`name`,`text`)}),u=await g(`Creating`,async()=>i.send(Su,{body:s,account_id:a}));m(u,{successLabel:`Created`})})};var Tu={method:`DELETE`,path:t=>e`/accounts/${t.account_id}/cws/rego-metadata/${t.rego_metadata_id}`};function Eu(e){return e.usage(`$0 zero-trust cws rego-metadata delete <rego-metadata-id>
435
435
 
@@ -699,7 +699,7 @@ Gets the configuration for a data class.`).positional(`data-class-id`,{type:`str
699
699
 
700
700
  Lists data classes configured for the account.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const p_={command:`list`,describe:`Retrieve all data classes in an account`,builder:f_,handler:async e=>h({command:`zero-trust dlp data-classes list`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let e=await l();f({command:`cf zero-trust dlp data-classes list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}/dlp/data_classes`,pathParams:{},bodyKind:`none`});return}let t=await n(e),r=e.local?p:await d();e.accountId=r;let i=await g(`Loading`,async()=>t.send(d_,{account_id:r}));m(i,{successLabel:`Loaded`})})};var m_={method:`PUT`,path:t=>e`/accounts/${t.account_id}/dlp/data_classes/${t.data_class_id}`,body:`json`};function h_(e){return e.usage(`$0 zero-trust dlp data-classes update <data-class-id>
701
701
 
702
- Updates the configuration for a data class.`).positional(`data-class-id`,{type:`string`,description:`Data class ID`,demandOption:!0}).option(`data-tags`,{type:`string`,array:!0,description:`The data_tags field`}).option(`description`,{type:`string`,description:`The description field`}).option(`expression`,{type:`string`,description:`The expression field`}).option(`name`,{type:`string`,description:`The name field`}).option(`sensitivity-levels`,{type:`string`,description:`The sensitivity_levels field. Provide as a JSON array of objects or @path/to/file.json. Shape: [{"group_id": string, "level_id": string}].`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Attributes of the data class to update.`})}const g_={command:`update <data-class-id>`,describe:`Update the attributes of a single data class`,builder:h_,handler:async e=>h({command:`zero-trust dlp data-classes update`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await l();f({command:`cf zero-trust dlp data-classes update`,method:`PUT`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/dlp/data_classes/${e[`data-class-id`]==null?`<data-class-id>`:encodeURIComponent(String(e[`data-class-id`]))}`,pathParams:{"data-class-id":String(e[`data-class-id`]??``)},bodyKind:`json`,body:e.body===void 0?c({data_tags:e[`data-tags`],description:b(e.description,`description`,`text`),expression:b(e.expression,`expression`,`text`),name:b(e.name,`name`,`text`),sensitivity_levels:a(e[`sensitivity-levels`],`sensitivity-levels`)}):o(e.body)});return}let t=e.body===void 0?void 0:o(e.body),r=await n(e),i=e.local?p:await d();if(e.accountId=i,e.body!==void 0){let n=t,a=await g(`Updating`,async()=>r.send(m_,{body:n,account_id:i,data_class_id:e[`data-class-id`]}));m(a,{successLabel:`Updated`});return}let s=c({data_tags:e[`data-tags`],description:b(e.description,`description`,`text`),expression:b(e.expression,`expression`,`text`),name:b(e.name,`name`,`text`),sensitivity_levels:a(e[`sensitivity-levels`],`sensitivity-levels`)}),u=await g(`Updating`,async()=>r.send(m_,{body:s,account_id:i,data_class_id:e[`data-class-id`]}));m(u,{successLabel:`Updated`})})},__={command:`data-classes`,describe:`Data Loss Prevention - manage data classes used to classify sensitive information`,builder:e=>e.command(i_).command(s_).command(u_).command(p_).command(g_).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var v_={method:`POST`,path:t=>e`/accounts/${t.account_id}/dlp/data_tag_categories`,body:`json`};function y_(e){return e.usage(`$0 zero-trust dlp data-tag-categories create
702
+ Updates the configuration for a data class.`).positional(`data-class-id`,{type:`string`,description:`Data class ID`,demandOption:!0}).option(`data-tags`,{type:`string`,array:!0,description:`The data_tags field`}).option(`description`,{type:`string`,description:`The description field`}).option(`expression`,{type:`string`,description:`The expression field`}).option(`name`,{type:`string`,description:`The name field`}).option(`sensitivity-levels`,{type:`string`,description:`The sensitivity_levels field. Provide as a JSON array of objects, null, or @path/to/file.json. Shape: [{"group_id": string, "level_id": string}].`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Attributes of the data class to update.`})}const g_={command:`update <data-class-id>`,describe:`Update the attributes of a single data class`,builder:h_,handler:async e=>h({command:`zero-trust dlp data-classes update`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await l();f({command:`cf zero-trust dlp data-classes update`,method:`PUT`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/dlp/data_classes/${e[`data-class-id`]==null?`<data-class-id>`:encodeURIComponent(String(e[`data-class-id`]))}`,pathParams:{"data-class-id":String(e[`data-class-id`]??``)},bodyKind:`json`,body:e.body===void 0?c({data_tags:e[`data-tags`],description:b(e.description,`description`,`text`),expression:b(e.expression,`expression`,`text`),name:b(e.name,`name`,`text`),sensitivity_levels:a(e[`sensitivity-levels`],`sensitivity-levels`,!0)}):o(e.body)});return}let t=e.body===void 0?void 0:o(e.body),r=await n(e),i=e.local?p:await d();if(e.accountId=i,e.body!==void 0){let n=t,a=await g(`Updating`,async()=>r.send(m_,{body:n,account_id:i,data_class_id:e[`data-class-id`]}));m(a,{successLabel:`Updated`});return}let s=c({data_tags:e[`data-tags`],description:b(e.description,`description`,`text`),expression:b(e.expression,`expression`,`text`),name:b(e.name,`name`,`text`),sensitivity_levels:a(e[`sensitivity-levels`],`sensitivity-levels`,!0)}),u=await g(`Updating`,async()=>r.send(m_,{body:s,account_id:i,data_class_id:e[`data-class-id`]}));m(u,{successLabel:`Updated`})})},__={command:`data-classes`,describe:`Data Loss Prevention - manage data classes used to classify sensitive information`,builder:e=>e.command(i_).command(s_).command(u_).command(p_).command(g_).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var v_={method:`POST`,path:t=>e`/accounts/${t.account_id}/dlp/data_tag_categories`,body:`json`};function y_(e){return e.usage(`$0 zero-trust dlp data-tag-categories create
703
703
 
704
704
  Creates a data tag category, optionally from a template.`).option(`description`,{type:`string`,description:`The description field`}).option(`name`,{type:`string`,description:`The name field`}).option(`tags`,{type:`string`,description:'Tags to create with the category. Mutually exclusive with `template_id`. Provide as a JSON array of objects or @path/to/file.json. Shape: [{"name": string, "description"?: (string | null)}]. ? marks optional keys.'}).option(`template-id`,{type:`string`,description:`The template_id field`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Attributes of the new data tag category.`})}const b_={command:`create`,describe:`Creates a new data tag category.`,builder:y_,handler:async e=>h({command:`zero-trust dlp data-tag-categories create`,classification:{safeFlags:[`dry-run`]}},e,async()=>{let t=async()=>{e.name===void 0&&(e.name=await _(`name`,`The name field`))};if(e.dryRun){e.body===void 0&&await t();let n=await l();f({command:`cf zero-trust dlp data-tag-categories create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${n??`<account-id>`}/dlp/data_tag_categories`,pathParams:{},bodyKind:`json`,body:e.body===void 0?c({description:b(e.description,`description`,`text`),name:b(e.name,`name`,`text`),tags:a(e.tags,`tags`),template_id:b(e[`template-id`],`template-id`,`text`)}):o(e.body)});return}let r=e.body===void 0?void 0:o(e.body),i=await n(e),s=e.local?p:await d();if(e.accountId=s,e.body!==void 0){let e=r,t=await g(`Creating`,async()=>i.send(v_,{body:e,account_id:s}));m(t,{successLabel:`Created`});return}await t();let u=c({description:b(e.description,`description`,`text`),name:b(e.name,`name`,`text`),tags:a(e.tags,`tags`),template_id:b(e[`template-id`],`template-id`,`text`)}),h=await g(`Creating`,async()=>i.send(v_,{body:u,account_id:s}));m(h,{successLabel:`Created`})})};var x_={method:`DELETE`,path:t=>e`/accounts/${t.account_id}/dlp/data_tag_categories/${t.category_id}`};function S_(e){return e.usage(`$0 zero-trust dlp data-tag-categories delete <category-id>
705
705
 
@@ -709,7 +709,7 @@ Gets a data tag category and its tags.`).positional(`category-id`,{type:`string`
709
709
 
710
710
  Lists data tag categories configured for the account.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const k_={command:`list`,describe:`Retrieve all data tag categories in an account`,builder:O_,handler:async e=>h({command:`zero-trust dlp data-tag-categories list`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let e=await l();f({command:`cf zero-trust dlp data-tag-categories list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}/dlp/data_tag_categories`,pathParams:{},bodyKind:`none`});return}let t=await n(e),r=e.local?p:await d();e.accountId=r;let i=await g(`Loading`,async()=>t.send(D_,{account_id:r}));m(i,{successLabel:`Loaded`})})};var A_={method:`PUT`,path:t=>e`/accounts/${t.account_id}/dlp/data_tag_categories/${t.category_id}`,body:`json`};function j_(e){return e.usage(`$0 zero-trust dlp data-tag-categories update <category-id>
711
711
 
712
- Updates a data tag category and its tags.`).positional(`category-id`,{type:`string`,description:`Category ID`,demandOption:!0}).option(`description`,{type:`string`,description:`The description field`}).option(`name`,{type:`string`,description:`The name field`}).option(`tags`,{type:`string`,description:'The desired final state of tags.\n- `None` (omitted): no tag changes.\n- `Some([])`: delete all tags.\n- `Some([...])`: desired final set + order. Provide as a JSON array of objects or @path/to/file.json. Shape: [({"description"?: (string | null), "name"?: (string | null)} & {"id"?: (string | null)})]. ? marks optional keys.'}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Attributes of the data tag category to update.`})}const M_={command:`update <category-id>`,describe:`Update the attributes of a single data tag category.`,builder:j_,handler:async e=>h({command:`zero-trust dlp data-tag-categories update`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await l();f({command:`cf zero-trust dlp data-tag-categories update`,method:`PUT`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/dlp/data_tag_categories/${e[`category-id`]==null?`<category-id>`:encodeURIComponent(String(e[`category-id`]))}`,pathParams:{"category-id":String(e[`category-id`]??``)},bodyKind:`json`,body:e.body===void 0?c({description:b(e.description,`description`,`text`),name:b(e.name,`name`,`text`),tags:a(e.tags,`tags`)}):o(e.body)});return}let t=e.body===void 0?void 0:o(e.body),r=await n(e),i=e.local?p:await d();if(e.accountId=i,e.body!==void 0){let n=t,a=await g(`Updating`,async()=>r.send(A_,{body:n,account_id:i,category_id:e[`category-id`]}));m(a,{successLabel:`Updated`});return}let s=c({description:b(e.description,`description`,`text`),name:b(e.name,`name`,`text`),tags:a(e.tags,`tags`)}),u=await g(`Updating`,async()=>r.send(A_,{body:s,account_id:i,category_id:e[`category-id`]}));m(u,{successLabel:`Updated`})})},N_={command:`data-tag-categories`,describe:`Data Loss Prevention - manage categories that organize data tags`,builder:e=>e.command(b_).command(C_).command(E_).command(k_).command(M_).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var P_={method:`GET`,path:t=>e`/accounts/${t.account_id}/dlp/data_tag_category_templates/${t.template_id}`};function F_(e){return e.usage(`$0 zero-trust dlp data-tag-category-templates get <template-id>
712
+ Updates a data tag category and its tags.`).positional(`category-id`,{type:`string`,description:`Category ID`,demandOption:!0}).option(`description`,{type:`string`,description:`The description field`}).option(`name`,{type:`string`,description:`The name field`}).option(`tags`,{type:`string`,description:'The desired final state of tags.\n- `None` (omitted): no tag changes.\n- `Some([])`: delete all tags.\n- `Some([...])`: desired final set + order. Provide as a JSON array of objects, null, or @path/to/file.json. Shape: [({"description"?: (string | null), "name"?: (string | null)} & {"id"?: (string | null)})]. ? marks optional keys.'}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Attributes of the data tag category to update.`})}const M_={command:`update <category-id>`,describe:`Update the attributes of a single data tag category.`,builder:j_,handler:async e=>h({command:`zero-trust dlp data-tag-categories update`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await l();f({command:`cf zero-trust dlp data-tag-categories update`,method:`PUT`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/dlp/data_tag_categories/${e[`category-id`]==null?`<category-id>`:encodeURIComponent(String(e[`category-id`]))}`,pathParams:{"category-id":String(e[`category-id`]??``)},bodyKind:`json`,body:e.body===void 0?c({description:b(e.description,`description`,`text`),name:b(e.name,`name`,`text`),tags:a(e.tags,`tags`,!0)}):o(e.body)});return}let t=e.body===void 0?void 0:o(e.body),r=await n(e),i=e.local?p:await d();if(e.accountId=i,e.body!==void 0){let n=t,a=await g(`Updating`,async()=>r.send(A_,{body:n,account_id:i,category_id:e[`category-id`]}));m(a,{successLabel:`Updated`});return}let s=c({description:b(e.description,`description`,`text`),name:b(e.name,`name`,`text`),tags:a(e.tags,`tags`,!0)}),u=await g(`Updating`,async()=>r.send(A_,{body:s,account_id:i,category_id:e[`category-id`]}));m(u,{successLabel:`Updated`})})},N_={command:`data-tag-categories`,describe:`Data Loss Prevention - manage categories that organize data tags`,builder:e=>e.command(b_).command(C_).command(E_).command(k_).command(M_).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var P_={method:`GET`,path:t=>e`/accounts/${t.account_id}/dlp/data_tag_category_templates/${t.template_id}`};function F_(e){return e.usage(`$0 zero-trust dlp data-tag-category-templates get <template-id>
713
713
 
714
714
  Gets an available data tag category template.`).positional(`template-id`,{type:`string`,description:`Template ID`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const I_={command:`get <template-id>`,describe:`Retrieve a specific data tag category template.`,builder:F_,handler:async e=>h({command:`zero-trust dlp data-tag-category-templates get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await l();f({command:`cf zero-trust dlp data-tag-category-templates get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/dlp/data_tag_category_templates/${e[`template-id`]==null?`<template-id>`:encodeURIComponent(String(e[`template-id`]))}`,pathParams:{"template-id":String(e[`template-id`]??``)},bodyKind:`none`});return}let t=await n(e),r=e.local?p:await d();e.accountId=r;let i=await g(`Loading`,async()=>t.send(P_,{account_id:r,template_id:e[`template-id`]}));m(i,{successLabel:`Loaded`})})};var L_={method:`GET`,path:t=>e`/accounts/${t.account_id}/dlp/data_tag_category_templates`};function R_(e){return e.usage(`$0 zero-trust dlp data-tag-category-templates list
715
715
 
@@ -797,7 +797,7 @@ Creates a DLP custom profile.`).option(`ai-context-enabled`,{type:`boolean`,desc
797
797
  Deletes a DLP custom profile.`).positional(`profile-id`,{type:`string`,description:`Profile 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 Gy={command:`delete <profile-id>`,describe:`Delete custom profile`,builder:Wy,handler:async e=>h({command:`zero-trust dlp profiles custom delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{if(e.dryRun){let t=await l();f({command:`cf zero-trust dlp profiles custom delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/dlp/profiles/custom/${e[`profile-id`]==null?`<profile-id>`:encodeURIComponent(String(e[`profile-id`]))}`,pathParams:{"profile-id":String(e[`profile-id`]??``)},bodyKind:`none`});return}let t=await n(e),r=e.local?p:await d();if(e.accountId=r,!await y({force:!!e.force}))return;let i=await g(`Deleting`,async()=>t.send(Uy,{account_id:r,profile_id:e[`profile-id`]}));m(i,{successLabel:`Deleted`})})};var Ky={method:`PUT`,path:t=>e`/accounts/${t.account_id}/dlp/profiles/custom/${t.profile_id}`,body:`json`};function qy(e){return e.usage(`$0 zero-trust dlp profiles custom update <profile-id>
798
798
 
799
799
  Updates a DLP custom profile.`).positional(`profile-id`,{type:`string`,description:`Profile ID`,demandOption:!0}).option(`ai-context-enabled`,{type:`boolean`,description:`The ai_context_enabled field`}).option(`allowed-match-count`,{type:`number`,description:`The allowed_match_count field`}).option(`confidence-threshold`,{type:`string`,description:`The confidence_threshold field`}).option(`context-awareness-enabled`,{type:`boolean`,description:`If true, scan the context of predefined entries to only return matches surrounded by keywords.`}).option(`context-awareness-skip-files`,{type:`boolean`,description:`If the content type is a file, skip context analysis and return all matches.`}).option(`data-classes`,{type:`string`,array:!0,description:`Data class IDs to associate with the profile. If omitted, existing associations are unchanged.`}).option(`data-tags`,{type:`string`,array:!0,description:`Data tag IDs to associate with the profile. If omitted, existing associations are unchanged.`}).option(`description`,{type:`string`,description:`The description of the profile.`}).option(`entries`,{type:`string`,description:`Custom entries from this profile.
800
- If this field is omitted, entries owned by this profile will not be changed. Provide as a JSON array of objects or @path/to/file.json. Shape: [(({"enabled": boolean, "name": string, "pattern": {...}, "description"?: (string | null)} & {"entry_id": string}) | {"enabled": boolean, "name": string, "pattern": {...}, "description"?: (string | null)})]. ? marks optional keys.`}).option(`name`,{type:`string`,description:`The name field`}).option(`ocr-enabled`,{type:`boolean`,description:`The ocr_enabled field`}).option(`sensitivity-levels`,{type:`string`,description:`Sensitivity levels to associate with the profile. If omitted, existing associations are unchanged. Provide as a JSON array of objects or @path/to/file.json. Shape: [{"group_id": string, "level_id": string}].`}).option(`shared-entries`,{type:`string`,description:`Other entries, e.g. predefined or integration. Provide as a JSON array of objects or @path/to/file.json. Shape: [{"enabled": boolean, "entry_id": string}].`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`The updated parameters for the profile.`}).check(e=>{let t=[`context-awareness-enabled`,`context-awareness-skip-files`].some(t=>e[t]!==void 0);if(!e.body&&t){let t=[`context-awareness-enabled`,`context-awareness-skip-files`].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 --context-awareness-* flag is set`)}return!0})}const Jy={command:`update <profile-id>`,describe:`Update custom profile`,builder:qy,handler:async e=>h({command:`zero-trust dlp profiles custom update`,classification:{safeFlags:[`ai-context-enabled`,`context-awareness-enabled`,`context-awareness-skip-files`,`ocr-enabled`,`dry-run`]}},e,async()=>{let t=async()=>{e.name===void 0&&(e.name=await _(`name`,`The name field`))};if(e.dryRun){e.body===void 0&&await t();let n=await l();f({command:`cf zero-trust dlp profiles custom update`,method:`PUT`,url:`https://api.cloudflare.com/client/v4/accounts/${n??`<account-id>`}/dlp/profiles/custom/${e[`profile-id`]==null?`<profile-id>`:encodeURIComponent(String(e[`profile-id`]))}`,pathParams:{"profile-id":String(e[`profile-id`]??``)},bodyKind:`json`,body:e.body===void 0?c({ai_context_enabled:e[`ai-context-enabled`],allowed_match_count:e[`allowed-match-count`],confidence_threshold:b(e[`confidence-threshold`],`confidence-threshold`,`text`),context_awareness:{enabled:e[`context-awareness-enabled`],skip:{files:e[`context-awareness-skip-files`]}},data_classes:e[`data-classes`],data_tags:e[`data-tags`],description:b(e.description,`description`,`text`),entries:a(e.entries,`entries`),name:b(e.name,`name`,`text`),ocr_enabled:e[`ocr-enabled`],sensitivity_levels:a(e[`sensitivity-levels`],`sensitivity-levels`),shared_entries:a(e[`shared-entries`],`shared-entries`)}):o(e.body)});return}let r=e.body===void 0?void 0:o(e.body),i=await n(e),s=e.local?p:await d();if(e.accountId=s,e.body!==void 0){let t=r,n=await g(`Updating`,async()=>i.send(Ky,{body:t,account_id:s,profile_id:e[`profile-id`]}));m(n,{successLabel:`Updated`});return}await t();let u=c({ai_context_enabled:e[`ai-context-enabled`],allowed_match_count:e[`allowed-match-count`],confidence_threshold:b(e[`confidence-threshold`],`confidence-threshold`,`text`),context_awareness:{enabled:e[`context-awareness-enabled`],skip:{files:e[`context-awareness-skip-files`]}},data_classes:e[`data-classes`],data_tags:e[`data-tags`],description:b(e.description,`description`,`text`),entries:a(e.entries,`entries`),name:b(e.name,`name`,`text`),ocr_enabled:e[`ocr-enabled`],sensitivity_levels:a(e[`sensitivity-levels`],`sensitivity-levels`),shared_entries:a(e[`shared-entries`],`shared-entries`)}),h=await g(`Updating`,async()=>i.send(Ky,{body:u,account_id:s,profile_id:e[`profile-id`]}));m(h,{successLabel:`Updated`})})},Yy={command:`custom`,describe:`Data Loss Prevention - manage custom profiles`,builder:e=>e.command(Hy).command(Gy).command(Jy).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var Xy={method:`GET`,path:t=>e`/accounts/${t.account_id}/dlp/profiles/${t.profile_id}`};function Zy(e){return e.usage(`$0 zero-trust dlp profiles get <profile-id>
800
+ If this field is omitted, entries owned by this profile will not be changed. Provide as a JSON array of objects, null, or @path/to/file.json. Shape: [(({"enabled": boolean, "name": string, "pattern": {...}, "description"?: (string | null)} & {"entry_id": string}) | {"enabled": boolean, "name": string, "pattern": {...}, "description"?: (string | null)})]. ? marks optional keys.`}).option(`name`,{type:`string`,description:`The name field`}).option(`ocr-enabled`,{type:`boolean`,description:`The ocr_enabled field`}).option(`sensitivity-levels`,{type:`string`,description:`Sensitivity levels to associate with the profile. If omitted, existing associations are unchanged. Provide as a JSON array of objects, null, or @path/to/file.json. Shape: [{"group_id": string, "level_id": string}].`}).option(`shared-entries`,{type:`string`,description:`Other entries, e.g. predefined or integration. Provide as a JSON array of objects or @path/to/file.json. Shape: [{"enabled": boolean, "entry_id": string}].`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`The updated parameters for the profile.`}).check(e=>{let t=[`context-awareness-enabled`,`context-awareness-skip-files`].some(t=>e[t]!==void 0);if(!e.body&&t){let t=[`context-awareness-enabled`,`context-awareness-skip-files`].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 --context-awareness-* flag is set`)}return!0})}const Jy={command:`update <profile-id>`,describe:`Update custom profile`,builder:qy,handler:async e=>h({command:`zero-trust dlp profiles custom update`,classification:{safeFlags:[`ai-context-enabled`,`context-awareness-enabled`,`context-awareness-skip-files`,`ocr-enabled`,`dry-run`]}},e,async()=>{let t=async()=>{e.name===void 0&&(e.name=await _(`name`,`The name field`))};if(e.dryRun){e.body===void 0&&await t();let n=await l();f({command:`cf zero-trust dlp profiles custom update`,method:`PUT`,url:`https://api.cloudflare.com/client/v4/accounts/${n??`<account-id>`}/dlp/profiles/custom/${e[`profile-id`]==null?`<profile-id>`:encodeURIComponent(String(e[`profile-id`]))}`,pathParams:{"profile-id":String(e[`profile-id`]??``)},bodyKind:`json`,body:e.body===void 0?c({ai_context_enabled:e[`ai-context-enabled`],allowed_match_count:e[`allowed-match-count`],confidence_threshold:b(e[`confidence-threshold`],`confidence-threshold`,`text`),context_awareness:{enabled:e[`context-awareness-enabled`],skip:{files:e[`context-awareness-skip-files`]}},data_classes:e[`data-classes`],data_tags:e[`data-tags`],description:b(e.description,`description`,`text`),entries:a(e.entries,`entries`,!0),name:b(e.name,`name`,`text`),ocr_enabled:e[`ocr-enabled`],sensitivity_levels:a(e[`sensitivity-levels`],`sensitivity-levels`,!0),shared_entries:a(e[`shared-entries`],`shared-entries`)}):o(e.body)});return}let r=e.body===void 0?void 0:o(e.body),i=await n(e),s=e.local?p:await d();if(e.accountId=s,e.body!==void 0){let t=r,n=await g(`Updating`,async()=>i.send(Ky,{body:t,account_id:s,profile_id:e[`profile-id`]}));m(n,{successLabel:`Updated`});return}await t();let u=c({ai_context_enabled:e[`ai-context-enabled`],allowed_match_count:e[`allowed-match-count`],confidence_threshold:b(e[`confidence-threshold`],`confidence-threshold`,`text`),context_awareness:{enabled:e[`context-awareness-enabled`],skip:{files:e[`context-awareness-skip-files`]}},data_classes:e[`data-classes`],data_tags:e[`data-tags`],description:b(e.description,`description`,`text`),entries:a(e.entries,`entries`,!0),name:b(e.name,`name`,`text`),ocr_enabled:e[`ocr-enabled`],sensitivity_levels:a(e[`sensitivity-levels`],`sensitivity-levels`,!0),shared_entries:a(e[`shared-entries`],`shared-entries`)}),h=await g(`Updating`,async()=>i.send(Ky,{body:u,account_id:s,profile_id:e[`profile-id`]}));m(h,{successLabel:`Updated`})})},Yy={command:`custom`,describe:`Data Loss Prevention - manage custom profiles`,builder:e=>e.command(Hy).command(Gy).command(Jy).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var Xy={method:`GET`,path:t=>e`/accounts/${t.account_id}/dlp/profiles/${t.profile_id}`};function Zy(e){return e.usage(`$0 zero-trust dlp profiles get <profile-id>
801
801
 
802
802
  Fetches a DLP profile by ID.`).positional(`profile-id`,{type:`string`,description:`Profile ID`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const Qy={command:`get <profile-id>`,describe:`Get DLP Profile`,builder:Zy,handler:async e=>h({command:`zero-trust dlp profiles get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await l();f({command:`cf zero-trust dlp profiles get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/dlp/profiles/${e[`profile-id`]==null?`<profile-id>`:encodeURIComponent(String(e[`profile-id`]))}`,pathParams:{"profile-id":String(e[`profile-id`]??``)},bodyKind:`none`});return}let t=await n(e),r=e.local?p:await d();e.accountId=r;let i=await g(`Loading`,async()=>t.send(Xy,{account_id:r,profile_id:e[`profile-id`]}));m(i,{successLabel:`Loaded`})})};var $y={method:`GET`,path:t=>e`/accounts/${t.account_id}/dlp/profiles`,query:[`all`]};function eb(e){return e.usage(`$0 zero-trust dlp profiles list
803
803
 
@@ -821,7 +821,7 @@ Lists sensitivity groups configured for the account.`).option(`dry-run`,{type:`b
821
821
 
822
822
  Updates the order of sensitivity levels in a group.`).positional(`sensitivity-group-id`,{type:`string`,description:`Sensitivity group ID`,demandOption:!0}).option(`level-ids`,{type:`string`,array:!0,description:`The level_ids field`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Desired ordered list of level IDs.`})}const jb={command:`update-level-order <sensitivity-group-id>`,describe:`Set the ordering of levels within a sensitivity group.`,builder:Ab,handler:async e=>h({command:`zero-trust dlp sensitivity-groups update-level-order`,classification:{safeFlags:[`dry-run`]}},e,async()=>{let t=async()=>{if(e[`level-ids`]===void 0)throw Error(`--level-ids is required (or pass --body with this field set).`)};if(e.dryRun){e.body===void 0&&await t();let n=await l();f({command:`cf zero-trust dlp sensitivity-groups update-level-order`,method:`PUT`,url:`https://api.cloudflare.com/client/v4/accounts/${n??`<account-id>`}/dlp/sensitivity_groups/${e[`sensitivity-group-id`]==null?`<sensitivity-group-id>`:encodeURIComponent(String(e[`sensitivity-group-id`]))}/level_order`,pathParams:{"sensitivity-group-id":String(e[`sensitivity-group-id`]??``)},bodyKind:`json`,body:e.body===void 0?c({level_ids:e[`level-ids`]}):o(e.body)});return}let r=e.body===void 0?void 0:o(e.body),i=await n(e),a=e.local?p:await d();if(e.accountId=a,e.body!==void 0){let t=r,n=await g(`Updating`,async()=>i.send(kb,{body:t,account_id:a,sensitivity_group_id:e[`sensitivity-group-id`]}));m(n,{successLabel:`Updated`});return}await t();let s=c({level_ids:e[`level-ids`]}),u=await g(`Updating`,async()=>i.send(kb,{body:s,account_id:a,sensitivity_group_id:e[`sensitivity-group-id`]}));m(u,{successLabel:`Updated`})})};var Mb={method:`PUT`,path:t=>e`/accounts/${t.account_id}/dlp/sensitivity_groups/${t.sensitivity_group_id}`,body:`json`};function Nb(e){return e.usage(`$0 zero-trust dlp sensitivity-groups update <sensitivity-group-id>
823
823
 
824
- Updates a sensitivity group and its levels.`).positional(`sensitivity-group-id`,{type:`string`,description:`Sensitivity group ID`,demandOption:!0}).option(`description`,{type:`string`,description:`The description field`}).option(`levels`,{type:`string`,description:'The desired final state of levels.\n- `None` (omitted): no level changes.\n- `Some([])`: delete all levels.\n- `Some([...])`: desired final set + order. Provide as a JSON array of objects or @path/to/file.json. Shape: [({"description"?: (string | null), "name"?: (string | null)} & {"id"?: (string | null)})]. ? marks optional keys.'}).option(`name`,{type:`string`,description:`The name field`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Attributes of the sensitivity group to update.`})}const Pb={command:`update <sensitivity-group-id>`,describe:`Update the attributes of a single sensitivity group.`,builder:Nb,handler:async e=>h({command:`zero-trust dlp sensitivity-groups update`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await l();f({command:`cf zero-trust dlp sensitivity-groups update`,method:`PUT`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/dlp/sensitivity_groups/${e[`sensitivity-group-id`]==null?`<sensitivity-group-id>`:encodeURIComponent(String(e[`sensitivity-group-id`]))}`,pathParams:{"sensitivity-group-id":String(e[`sensitivity-group-id`]??``)},bodyKind:`json`,body:e.body===void 0?c({description:b(e.description,`description`,`text`),levels:a(e.levels,`levels`),name:b(e.name,`name`,`text`)}):o(e.body)});return}let t=e.body===void 0?void 0:o(e.body),r=await n(e),i=e.local?p:await d();if(e.accountId=i,e.body!==void 0){let n=t,a=await g(`Updating`,async()=>r.send(Mb,{body:n,account_id:i,sensitivity_group_id:e[`sensitivity-group-id`]}));m(a,{successLabel:`Updated`});return}let s=c({description:b(e.description,`description`,`text`),levels:a(e.levels,`levels`),name:b(e.name,`name`,`text`)}),u=await g(`Updating`,async()=>r.send(Mb,{body:s,account_id:i,sensitivity_group_id:e[`sensitivity-group-id`]}));m(u,{successLabel:`Updated`})})},Fb={command:`sensitivity-groups`,describe:`Data Loss Prevention - manage sensitivity groups and their level ordering`,builder:e=>e.command(gb).command(yb).command(Tb).command(Sb).command(Ob).command(Pb).command(jb).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var Ib={method:`POST`,path:t=>e`/accounts/${t.account_id}/dlp/sensitivity_groups/${t.sensitivity_group_id}/levels`,body:`json`};function Lb(e){return e.usage(`$0 zero-trust dlp sensitivity-levels create <sensitivity-group-id>
824
+ Updates a sensitivity group and its levels.`).positional(`sensitivity-group-id`,{type:`string`,description:`Sensitivity group ID`,demandOption:!0}).option(`description`,{type:`string`,description:`The description field`}).option(`levels`,{type:`string`,description:'The desired final state of levels.\n- `None` (omitted): no level changes.\n- `Some([])`: delete all levels.\n- `Some([...])`: desired final set + order. Provide as a JSON array of objects, null, or @path/to/file.json. Shape: [({"description"?: (string | null), "name"?: (string | null)} & {"id"?: (string | null)})]. ? marks optional keys.'}).option(`name`,{type:`string`,description:`The name field`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Attributes of the sensitivity group to update.`})}const Pb={command:`update <sensitivity-group-id>`,describe:`Update the attributes of a single sensitivity group.`,builder:Nb,handler:async e=>h({command:`zero-trust dlp sensitivity-groups update`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await l();f({command:`cf zero-trust dlp sensitivity-groups update`,method:`PUT`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/dlp/sensitivity_groups/${e[`sensitivity-group-id`]==null?`<sensitivity-group-id>`:encodeURIComponent(String(e[`sensitivity-group-id`]))}`,pathParams:{"sensitivity-group-id":String(e[`sensitivity-group-id`]??``)},bodyKind:`json`,body:e.body===void 0?c({description:b(e.description,`description`,`text`),levels:a(e.levels,`levels`,!0),name:b(e.name,`name`,`text`)}):o(e.body)});return}let t=e.body===void 0?void 0:o(e.body),r=await n(e),i=e.local?p:await d();if(e.accountId=i,e.body!==void 0){let n=t,a=await g(`Updating`,async()=>r.send(Mb,{body:n,account_id:i,sensitivity_group_id:e[`sensitivity-group-id`]}));m(a,{successLabel:`Updated`});return}let s=c({description:b(e.description,`description`,`text`),levels:a(e.levels,`levels`,!0),name:b(e.name,`name`,`text`)}),u=await g(`Updating`,async()=>r.send(Mb,{body:s,account_id:i,sensitivity_group_id:e[`sensitivity-group-id`]}));m(u,{successLabel:`Updated`})})},Fb={command:`sensitivity-groups`,describe:`Data Loss Prevention - manage sensitivity groups and their level ordering`,builder:e=>e.command(gb).command(yb).command(Tb).command(Sb).command(Ob).command(Pb).command(jb).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var Ib={method:`POST`,path:t=>e`/accounts/${t.account_id}/dlp/sensitivity_groups/${t.sensitivity_group_id}/levels`,body:`json`};function Lb(e){return e.usage(`$0 zero-trust dlp sensitivity-levels create <sensitivity-group-id>
825
825
 
826
826
  Creates a sensitivity level in a group.`).positional(`sensitivity-group-id`,{type:`string`,description:`Sensitivity group ID`,demandOption:!0}).option(`description`,{type:`string`,description:`The description field`}).option(`name`,{type:`string`,description:`The name field`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Attributes of the new sensitivity level.`})}const Rb={command:`create <sensitivity-group-id>`,describe:`Creates a new sensitivity level.`,builder:Lb,handler:async e=>h({command:`zero-trust dlp sensitivity-levels create`,classification:{safeFlags:[`dry-run`]}},e,async()=>{let t=async()=>{e.name===void 0&&(e.name=await _(`name`,`The name field`))};if(e.dryRun){e.body===void 0&&await t();let n=await l();f({command:`cf zero-trust dlp sensitivity-levels create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${n??`<account-id>`}/dlp/sensitivity_groups/${e[`sensitivity-group-id`]==null?`<sensitivity-group-id>`:encodeURIComponent(String(e[`sensitivity-group-id`]))}/levels`,pathParams:{"sensitivity-group-id":String(e[`sensitivity-group-id`]??``)},bodyKind:`json`,body:e.body===void 0?c({description:b(e.description,`description`,`text`),name:b(e.name,`name`,`text`)}):o(e.body)});return}let r=e.body===void 0?void 0:o(e.body),i=await n(e),a=e.local?p:await d();if(e.accountId=a,e.body!==void 0){let t=r,n=await g(`Creating`,async()=>i.send(Ib,{body:t,account_id:a,sensitivity_group_id:e[`sensitivity-group-id`]}));m(n,{successLabel:`Created`});return}await t();let s=c({description:b(e.description,`description`,`text`),name:b(e.name,`name`,`text`)}),u=await g(`Creating`,async()=>i.send(Ib,{body:s,account_id:a,sensitivity_group_id:e[`sensitivity-group-id`]}));m(u,{successLabel:`Created`})})};var zb={method:`DELETE`,path:t=>e`/accounts/${t.account_id}/dlp/sensitivity_groups/${t.sensitivity_group_id}/levels/${t.sensitivity_level_id}`};function Bb(e){return e.usage(`$0 zero-trust dlp sensitivity-levels delete <sensitivity-level-id>
827
827
 
@@ -887,7 +887,7 @@ List all categories.`).option(`dry-run`,{type:`boolean`,description:`Validate an
887
887
 
888
888
  Bind a single Zero Trust certificate to the edge.`).positional(`certificate-id`,{type:`string`,description:`Identify the certificate with a UUID.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const dS={command:`activate <certificate-id>`,describe:`Activate a Zero Trust certificate`,builder:uS,handler:async e=>h({command:`zero-trust gateway certificates activate`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await l();f({command:`cf zero-trust gateway certificates activate`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/gateway/certificates/${e[`certificate-id`]==null?`<certificate-id>`:encodeURIComponent(String(e[`certificate-id`]))}/activate`,pathParams:{"certificate-id":String(e[`certificate-id`]??``)},bodyKind:`none`});return}let t=await n(e),r=e.local?p:await d();e.accountId=r;let i=await g(`Creating`,async()=>t.send(lS,{account_id:r,certificate_id:e[`certificate-id`]}));m(i,{successLabel:`Created`})})};var fS={method:`POST`,path:t=>e`/accounts/${t.account_id}/gateway/certificates`,body:`json`};function pS(e){return e.usage(`$0 zero-trust gateway certificates create
889
889
 
890
- Create a new Zero Trust certificate.`).option(`region`,{type:`string`,description:"Pin the generated certificate authority's key material to one of the account's selected Data Localization Suite regions. **Important**: This field is only settable during certificate creation. Certificates become immutable after creation - use the `/activate` and `/deactivate` endpoints to manage certificate lifecycle."}).option(`validity-period-days`,{type:`number`,description:"Sets the certificate validity period in days (range: 1-10,950 days / ~30 years). Defaults to 1,825 days (5 years). **Important**: This field is only settable during the certificate creation. Certificates becomes immutable after creation - use the `/activate` and `/deactivate` endpoints to manage certificate lifecycle."}).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 mS={command:`create`,describe:`Create Zero Trust certificate`,builder:pS,handler:async e=>h({command:`zero-trust gateway certificates create`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await l();f({command:`cf zero-trust gateway certificates create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/gateway/certificates`,pathParams:{},bodyKind:`json`,body:e.body===void 0?c({region:b(e.region,`region`,`text`),validity_period_days:e[`validity-period-days`]}):o(e.body)});return}let t=e.body===void 0?void 0:o(e.body),r=await n(e),i=e.local?p:await d();if(e.accountId=i,e.body!==void 0){let e=t,n=await g(`Creating`,async()=>r.send(fS,{body:e,account_id:i}));m(n,{successLabel:`Created`});return}let a=c({region:b(e.region,`region`,`text`),validity_period_days:e[`validity-period-days`]}),s=await g(`Creating`,async()=>r.send(fS,{body:a,account_id:i}));m(s,{successLabel:`Created`})})};var hS={method:`POST`,path:t=>e`/accounts/${t.account_id}/gateway/certificates/${t.certificate_id}/deactivate`};function gS(e){return e.usage(`$0 zero-trust gateway certificates deactivate <certificate-id>
890
+ Create a new Zero Trust certificate.`).option(`region`,{type:`string`,description:"Pin the generated certificate authority's key material to one of the account's selected Data Localization Suite regions. **Important**: This field is only settable during certificate creation. Certificates become immutable after creation - use the `/activate` and `/deactivate` endpoints to manage certificate lifecycle."}).option(`validity-period-days`,{type:`number`,description:"Sets the certificate validity period in days (range: 1-10,950 days / ~30 years). Defaults to 1,825 days (5 years). **Important**: This field is only settable during the certificate creation. Certificates becomes immutable after creation - use the `/activate` and `/deactivate` endpoints to manage certificate lifecycle."}).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 mS={command:`create`,describe:`Create Zero Trust certificate`,builder:pS,handler:async e=>h({command:`zero-trust gateway certificates create`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await l();f({command:`cf zero-trust gateway certificates create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/gateway/certificates`,pathParams:{},bodyKind:`json`,body:e.body===void 0?c({region:b(e.region,`region`,`text`),validity_period_days:e[`validity-period-days`]}):o(e.body)});return}let t=e.body===void 0?void 0:o(e.body),r=await n(e),i=e.local?p:await d();if(e.accountId=i,e.body!==void 0){let e=t,n=await g(`Creating`,async()=>r.send(fS,{body:e,account_id:i}));m(n,{successLabel:`Created`});return}let a=c({region:b(e.region,`region`,`text`),validity_period_days:e[`validity-period-days`]}),s=await g(`Creating`,async()=>r.send(fS,{body:a,account_id:i}));m(s,{successLabel:`Created`})})};var hS={method:`POST`,path:t=>e`/accounts/${t.account_id}/gateway/certificates/${t.certificate_id}/deactivate`};function gS(e){return e.usage(`$0 zero-trust gateway certificates deactivate <certificate-id>
891
891
 
892
892
  Unbind a single Zero Trust certificate from the edge.`).positional(`certificate-id`,{type:`string`,description:`Identify the certificate with a UUID.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const _S={command:`deactivate <certificate-id>`,describe:`Deactivate a Zero Trust certificate`,builder:gS,handler:async e=>h({command:`zero-trust gateway certificates deactivate`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await l();f({command:`cf zero-trust gateway certificates deactivate`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/gateway/certificates/${e[`certificate-id`]==null?`<certificate-id>`:encodeURIComponent(String(e[`certificate-id`]))}/deactivate`,pathParams:{"certificate-id":String(e[`certificate-id`]??``)},bodyKind:`none`});return}let t=await n(e),r=e.local?p:await d();e.accountId=r;let i=await g(`Creating`,async()=>t.send(hS,{account_id:r,certificate_id:e[`certificate-id`]}));m(i,{successLabel:`Created`})})};var vS={method:`DELETE`,path:t=>e`/accounts/${t.account_id}/gateway/certificates/${t.certificate_id}`};function yS(e){return e.usage(`$0 zero-trust gateway certificates delete <certificate-id>
893
893
 
@@ -895,11 +895,11 @@ Delete a gateway-managed Zero Trust certificate. You must deactivate the certifi
895
895
 
896
896
  Get a single Zero Trust certificate.`).positional(`certificate-id`,{type:`string`,description:`Identify the certificate with a UUID.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const CS={command:`get <certificate-id>`,describe:`Get Zero Trust certificate details`,builder:SS,handler:async e=>h({command:`zero-trust gateway certificates get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await l();f({command:`cf zero-trust gateway certificates get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/gateway/certificates/${e[`certificate-id`]==null?`<certificate-id>`:encodeURIComponent(String(e[`certificate-id`]))}`,pathParams:{"certificate-id":String(e[`certificate-id`]??``)},bodyKind:`none`});return}let t=await n(e),r=e.local?p:await d();e.accountId=r;let i=await g(`Loading`,async()=>t.send(xS,{account_id:r,certificate_id:e[`certificate-id`]}));m(i,{successLabel:`Loaded`})})};var wS={method:`GET`,path:t=>e`/accounts/${t.account_id}/gateway/certificates`};function TS(e){return e.usage(`$0 zero-trust gateway certificates list
897
897
 
898
- List all Zero Trust certificates for an account.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const ES={command:`list`,describe:`List Zero Trust certificates`,builder:TS,handler:async e=>h({command:`zero-trust gateway certificates list`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let e=await l();f({command:`cf zero-trust gateway certificates list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}/gateway/certificates`,pathParams:{},bodyKind:`none`});return}let t=await n(e),r=e.local?p:await d();e.accountId=r;let i=await g(`Loading`,async()=>t.send(wS,{account_id:r}));m(i,{successLabel:`Loaded`})})},DS={command:`certificates`,describe:`Operations for gateway.certificates`,builder:e=>e.command(dS).command(mS).command(_S).command(bS).command(CS).command(ES).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var OS={method:`PATCH`,path:t=>e`/accounts/${t.account_id}/gateway/configuration`,body:`json`};function kS(e){return e.usage("$0 zero-trust gateway configurations edit\n\nUpdate (PATCH) a single subcollection of settings such as `antivirus`, `tls_decrypt`, `activity_log`, `block_page`, `browser_isolation`, `fips`, `body_scanning`, `certificate`, or `max_ttl_secs` without updating the entire configuration object. This endpoint returns an error if any settings collection lacks proper configuration.").option(`settings-activity-log-enabled`,{type:`boolean`,description:`Specify whether to log activity.`}).option(`settings-antivirus-enabled-download-phase`,{type:`boolean`,description:`Specify whether to enable anti-virus scanning on downloads.`}).option(`settings-antivirus-enabled-upload-phase`,{type:`boolean`,description:`Specify whether to enable anti-virus scanning on uploads.`}).option(`settings-antivirus-fail-closed`,{type:`boolean`,description:`Specify whether to block requests for unscannable files.`}).option(`settings-antivirus-notification-settings-enabled`,{type:`boolean`,description:`Specify whether to enable notifications.`}).option(`settings-antivirus-notification-settings-include-context`,{type:`boolean`,description:`Specify whether to include context information as query parameters.`}).option(`settings-antivirus-notification-settings-msg`,{type:`string`,description:`Specify the message to show in the notification.`}).option(`settings-antivirus-notification-settings-support-url`,{type:`string`,description:`Specify a URL that directs users to more information. If unset, the notification opens a block page.`}).option(`settings-block-page-background-color`,{type:`string`,description:"Specify the block page background color in `#rrggbb` format when the mode is customized_block_page."}).option(`settings-block-page-enabled`,{type:`boolean`,description:`Specify whether to enable the custom block page.`}).option(`settings-block-page-footer-text`,{type:`string`,description:`Specify the block page footer text when the mode is customized_block_page.`}).option(`settings-block-page-header-text`,{type:`string`,description:`Specify the block page header text when the mode is customized_block_page.`}).option(`settings-block-page-include-context`,{type:`boolean`,description:`Specify whether to append context to target_uri as query parameters. This applies only when the mode is redirect_uri.`}).option(`settings-block-page-logo-path`,{type:`string`,description:`Specify the full URL to the logo file when the mode is customized_block_page.`}).option(`settings-block-page-mailto-address`,{type:`string`,description:`Specify the admin email for users to contact when the mode is customized_block_page.`}).option(`settings-block-page-mailto-subject`,{type:`string`,description:`Specify the subject line for emails created from the block page when the mode is customized_block_page.`}).option(`settings-block-page-mode`,{type:`string`,description:`Specify whether to redirect users to a Cloudflare-hosted block page or a customer-provided URI.`,choices:[`customized_block_page`,`redirect_uri`]}).coerce(`settings-block-page-mode`,e=>b(e,`settings-block-page-mode`,`text`)).option(`settings-block-page-name`,{type:`string`,description:`Specify the block page title when the mode is customized_block_page.`}).option(`settings-block-page-suppress-footer`,{type:`boolean`,description:`Specify whether to suppress detailed information at the bottom of the block page when the mode is customized_block_page.`}).option(`settings-block-page-target-uri`,{type:`string`,description:`Specify the URI to redirect users to when the mode is redirect_uri.`}).option(`settings-body-scanning-inspection-mode`,{type:`string`,description:"Specify the inspection mode as either `deep` or `shallow`.",choices:[`deep`,`shallow`]}).coerce(`settings-body-scanning-inspection-mode`,e=>b(e,`settings-body-scanning-inspection-mode`,`text`)).option(`settings-browser-isolation-non-identity-enabled`,{type:`boolean`,description:`Specify whether to enable non-identity onramp support for Browser Isolation.`}).option(`settings-browser-isolation-url-browser-isolation-enabled`,{type:`boolean`,description:`Specify whether to enable Clientless Browser Isolation.`}).option(`settings-certificate-id`,{type:`string`,description:`Specify the UUID of the certificate used for interception. Ensure the certificate is available at the edge(previously called 'active'). A nil UUID directs Cloudflare to use the Root CA.`}).option(`settings-custom-certificate-enabled`,{type:`boolean`,description:`Specify whether to enable a custom certificate authority for signing Gateway traffic.`}).option(`settings-custom-certificate-id`,{type:`string`,description:`Specify the UUID of the certificate (ID from MTLS certificate store).`}).option(`settings-extended-email-matching-enabled`,{type:`boolean`,description:`Specify whether to match all variants of user emails (with + or . modifiers) used as criteria in Firewall policies.`}).option(`settings-fips-tls`,{type:`boolean`,description:`Enforce cipher suites and TLS versions compliant with FIPS 140-2.`}).option(`settings-host-selector-enabled`,{type:`boolean`,description:`Specify whether to enable filtering via hosts for egress policies.`}).option(`settings-inspection-mode`,{type:`string`,description:`Define the proxy inspection mode. 1. static: Gateway applies static inspection to HTTP on TCP(80). With TLS decryption on, Gateway inspects HTTPS traffic on TCP(443) and UDP(443). 2. dynamic: Gateway applies protocol detection to inspect HTTP and HTTPS traffic on any port. TLS decryption must remain on to inspect HTTPS traffic.`,choices:[`static`,`dynamic`]}).coerce(`settings-inspection-mode`,e=>b(e,`settings-inspection-mode`,`text`)).option(`settings-max-ttl-secs`,{type:`number`,description:"Account-level cap on DNS response TTLs, in seconds. Gateway rewrites DNS responses so returned record TTLs do not exceed this value. Null means no cap. Each DNS location can inherit, override, or disable it through the location `max_ttl` setting."}).option(`settings-protocol-detection-enabled`,{type:`boolean`,description:`Specify whether to detect protocols from the initial bytes of client traffic.`}).option(`settings-regions`,{type:`string`,description:'Specify per-region TLS interception and certificate settings for Gateway, keyed by Data Localization Suite region key. Relies on the Zero Trust account region setting (`GET`/`PUT /accounts/{account_id}/zerotrust/region`) - the account must select a region before Gateway applies these settings for it. Provide as a JSON object or @path/to/file.json. Shape: {"<key>": {...}}.'}).option(`settings-sandbox-enabled`,{type:`boolean`,description:`Specify whether to enable the sandbox.`}).option(`settings-sandbox-fallback-action`,{type:`string`,description:`Specify the action to take when the system cannot scan the file.`,choices:[`allow`,`block`]}).coerce(`settings-sandbox-fallback-action`,e=>b(e,`settings-sandbox-fallback-action`,`text`)).option(`settings-tls-decrypt-enabled`,{type:`boolean`,description:`Specify whether to inspect encrypted HTTP traffic.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Specify account settings.`}).check(e=>{let t=[`settings-custom-certificate-enabled`,`settings-custom-certificate-id`].some(t=>e[t]!==void 0);if(!e.body&&t){let t=[`settings-custom-certificate-enabled`].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 --settings-custom-certificate-* flag is set`)}return!0})}const AS={command:`edit`,describe:`Patch Zero Trust account configuration`,builder:kS,handler:async e=>h({command:`zero-trust gateway configurations edit`,classification:{safeFlags:[`settings-activity-log-enabled`,`settings-antivirus-enabled-download-phase`,`settings-antivirus-enabled-upload-phase`,`settings-antivirus-fail-closed`,`settings-antivirus-notification-settings-enabled`,`settings-antivirus-notification-settings-include-context`,`settings-block-page-enabled`,`settings-block-page-include-context`,`settings-block-page-mode`,`settings-block-page-suppress-footer`,`settings-body-scanning-inspection-mode`,`settings-browser-isolation-non-identity-enabled`,`settings-browser-isolation-url-browser-isolation-enabled`,`settings-custom-certificate-enabled`,`settings-extended-email-matching-enabled`,`settings-fips-tls`,`settings-host-selector-enabled`,`settings-inspection-mode`,`settings-protocol-detection-enabled`,`settings-sandbox-enabled`,`settings-sandbox-fallback-action`,`settings-tls-decrypt-enabled`,`dry-run`]}},e,async()=>{if(e.dryRun){let t=await l();f({command:`cf zero-trust gateway configurations edit`,method:`PATCH`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/gateway/configuration`,pathParams:{},bodyKind:`json`,body:e.body===void 0?c({settings:{activity_log:{enabled:e[`settings-activity-log-enabled`]},antivirus:{enabled_download_phase:e[`settings-antivirus-enabled-download-phase`],enabled_upload_phase:e[`settings-antivirus-enabled-upload-phase`],fail_closed:e[`settings-antivirus-fail-closed`],notification_settings:{enabled:e[`settings-antivirus-notification-settings-enabled`],include_context:e[`settings-antivirus-notification-settings-include-context`],msg:b(e[`settings-antivirus-notification-settings-msg`],`settings-antivirus-notification-settings-msg`,`text`),support_url:b(e[`settings-antivirus-notification-settings-support-url`],`settings-antivirus-notification-settings-support-url`,`text`)}},block_page:{background_color:b(e[`settings-block-page-background-color`],`settings-block-page-background-color`,`text`),enabled:e[`settings-block-page-enabled`],footer_text:b(e[`settings-block-page-footer-text`],`settings-block-page-footer-text`,`text`),header_text:b(e[`settings-block-page-header-text`],`settings-block-page-header-text`,`text`),include_context:e[`settings-block-page-include-context`],logo_path:b(e[`settings-block-page-logo-path`],`settings-block-page-logo-path`,`text`),mailto_address:b(e[`settings-block-page-mailto-address`],`settings-block-page-mailto-address`,`text`),mailto_subject:b(e[`settings-block-page-mailto-subject`],`settings-block-page-mailto-subject`,`text`),mode:e[`settings-block-page-mode`],name:b(e[`settings-block-page-name`],`settings-block-page-name`,`text`),suppress_footer:e[`settings-block-page-suppress-footer`],target_uri:b(e[`settings-block-page-target-uri`],`settings-block-page-target-uri`,`text`)},body_scanning:{inspection_mode:e[`settings-body-scanning-inspection-mode`]},browser_isolation:{non_identity_enabled:e[`settings-browser-isolation-non-identity-enabled`],url_browser_isolation_enabled:e[`settings-browser-isolation-url-browser-isolation-enabled`]},certificate:{id:b(e[`settings-certificate-id`],`settings-certificate-id`,`text`)},custom_certificate:{enabled:e[`settings-custom-certificate-enabled`],id:b(e[`settings-custom-certificate-id`],`settings-custom-certificate-id`,`text`)},extended_email_matching:{enabled:e[`settings-extended-email-matching-enabled`]},fips:{tls:e[`settings-fips-tls`]},host_selector:{enabled:e[`settings-host-selector-enabled`]},inspection:{mode:e[`settings-inspection-mode`]},max_ttl_secs:e[`settings-max-ttl-secs`],protocol_detection:{enabled:e[`settings-protocol-detection-enabled`]},regions:i(e[`settings-regions`],`settings-regions`),sandbox:{enabled:e[`settings-sandbox-enabled`],fallback_action:e[`settings-sandbox-fallback-action`]},tls_decrypt:{enabled:e[`settings-tls-decrypt-enabled`]}}},[[`settings`,`regions`]]):o(e.body)});return}let t=e.body===void 0?void 0:o(e.body),r=await n(e),a=e.local?p:await d();if(e.accountId=a,e.body!==void 0){let e=t,n=await g(`Updating`,async()=>r.send(OS,{body:e,account_id:a}));m(n,{successLabel:`Updated`});return}let s=c({settings:{activity_log:{enabled:e[`settings-activity-log-enabled`]},antivirus:{enabled_download_phase:e[`settings-antivirus-enabled-download-phase`],enabled_upload_phase:e[`settings-antivirus-enabled-upload-phase`],fail_closed:e[`settings-antivirus-fail-closed`],notification_settings:{enabled:e[`settings-antivirus-notification-settings-enabled`],include_context:e[`settings-antivirus-notification-settings-include-context`],msg:b(e[`settings-antivirus-notification-settings-msg`],`settings-antivirus-notification-settings-msg`,`text`),support_url:b(e[`settings-antivirus-notification-settings-support-url`],`settings-antivirus-notification-settings-support-url`,`text`)}},block_page:{background_color:b(e[`settings-block-page-background-color`],`settings-block-page-background-color`,`text`),enabled:e[`settings-block-page-enabled`],footer_text:b(e[`settings-block-page-footer-text`],`settings-block-page-footer-text`,`text`),header_text:b(e[`settings-block-page-header-text`],`settings-block-page-header-text`,`text`),include_context:e[`settings-block-page-include-context`],logo_path:b(e[`settings-block-page-logo-path`],`settings-block-page-logo-path`,`text`),mailto_address:b(e[`settings-block-page-mailto-address`],`settings-block-page-mailto-address`,`text`),mailto_subject:b(e[`settings-block-page-mailto-subject`],`settings-block-page-mailto-subject`,`text`),mode:e[`settings-block-page-mode`],name:b(e[`settings-block-page-name`],`settings-block-page-name`,`text`),suppress_footer:e[`settings-block-page-suppress-footer`],target_uri:b(e[`settings-block-page-target-uri`],`settings-block-page-target-uri`,`text`)},body_scanning:{inspection_mode:e[`settings-body-scanning-inspection-mode`]},browser_isolation:{non_identity_enabled:e[`settings-browser-isolation-non-identity-enabled`],url_browser_isolation_enabled:e[`settings-browser-isolation-url-browser-isolation-enabled`]},certificate:{id:b(e[`settings-certificate-id`],`settings-certificate-id`,`text`)},custom_certificate:{enabled:e[`settings-custom-certificate-enabled`],id:b(e[`settings-custom-certificate-id`],`settings-custom-certificate-id`,`text`)},extended_email_matching:{enabled:e[`settings-extended-email-matching-enabled`]},fips:{tls:e[`settings-fips-tls`]},host_selector:{enabled:e[`settings-host-selector-enabled`]},inspection:{mode:e[`settings-inspection-mode`]},max_ttl_secs:e[`settings-max-ttl-secs`],protocol_detection:{enabled:e[`settings-protocol-detection-enabled`]},regions:i(e[`settings-regions`],`settings-regions`),sandbox:{enabled:e[`settings-sandbox-enabled`],fallback_action:e[`settings-sandbox-fallback-action`]},tls_decrypt:{enabled:e[`settings-tls-decrypt-enabled`]}}},[[`settings`,`regions`]]),u=await g(`Updating`,async()=>r.send(OS,{body:s,account_id:a}));m(u,{successLabel:`Updated`})})};var jS={method:`GET`,path:t=>e`/accounts/${t.account_id}/gateway/configuration`};function MS(e){return e.usage(`$0 zero-trust gateway configurations get
898
+ List all Zero Trust certificates for an account.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const ES={command:`list`,describe:`List Zero Trust certificates`,builder:TS,handler:async e=>h({command:`zero-trust gateway certificates list`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let e=await l();f({command:`cf zero-trust gateway certificates list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}/gateway/certificates`,pathParams:{},bodyKind:`none`});return}let t=await n(e),r=e.local?p:await d();e.accountId=r;let i=await g(`Loading`,async()=>t.send(wS,{account_id:r}));m(i,{successLabel:`Loaded`})})},DS={command:`certificates`,describe:`Operations for gateway.certificates`,builder:e=>e.command(dS).command(mS).command(_S).command(bS).command(CS).command(ES).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var OS={method:`PATCH`,path:t=>e`/accounts/${t.account_id}/gateway/configuration`,body:`json`};function kS(e){return e.usage("$0 zero-trust gateway configurations edit\n\nUpdate (PATCH) a single subcollection of settings such as `antivirus`, `tls_decrypt`, `activity_log`, `block_page`, `browser_isolation`, `fips`, `body_scanning`, `certificate`, or `max_ttl_secs` without updating the entire configuration object. This endpoint returns an error if any settings collection lacks proper configuration.").option(`settings-activity-log-enabled`,{type:`boolean`,description:`Specify whether to log activity.`}).option(`settings-antivirus-enabled-download-phase`,{type:`boolean`,description:`Specify whether to enable anti-virus scanning on downloads.`}).option(`settings-antivirus-enabled-upload-phase`,{type:`boolean`,description:`Specify whether to enable anti-virus scanning on uploads.`}).option(`settings-antivirus-fail-closed`,{type:`boolean`,description:`Specify whether to block requests for unscannable files.`}).option(`settings-antivirus-notification-settings-enabled`,{type:`boolean`,description:`Specify whether to enable notifications.`}).option(`settings-antivirus-notification-settings-include-context`,{type:`boolean`,description:`Specify whether to include context information as query parameters.`}).option(`settings-antivirus-notification-settings-msg`,{type:`string`,description:`Specify the message to show in the notification.`}).option(`settings-antivirus-notification-settings-support-url`,{type:`string`,description:`Specify a URL that directs users to more information. If unset, the notification opens a block page.`}).option(`settings-block-page-background-color`,{type:`string`,description:"Specify the block page background color in `#rrggbb` format when the mode is customized_block_page."}).option(`settings-block-page-enabled`,{type:`boolean`,description:`Specify whether to enable the custom block page.`}).option(`settings-block-page-footer-text`,{type:`string`,description:`Specify the block page footer text when the mode is customized_block_page.`}).option(`settings-block-page-header-text`,{type:`string`,description:`Specify the block page header text when the mode is customized_block_page.`}).option(`settings-block-page-include-context`,{type:`boolean`,description:`Specify whether to append context to target_uri as query parameters. This applies only when the mode is redirect_uri.`}).option(`settings-block-page-logo-path`,{type:`string`,description:`Specify the full URL to the logo file when the mode is customized_block_page.`}).option(`settings-block-page-mailto-address`,{type:`string`,description:`Specify the admin email for users to contact when the mode is customized_block_page.`}).option(`settings-block-page-mailto-subject`,{type:`string`,description:`Specify the subject line for emails created from the block page when the mode is customized_block_page.`}).option(`settings-block-page-mode`,{type:`string`,description:`Specify whether to redirect users to a Cloudflare-hosted block page or a customer-provided URI.`,choices:[`customized_block_page`,`redirect_uri`]}).coerce(`settings-block-page-mode`,e=>b(e,`settings-block-page-mode`,`text`)).option(`settings-block-page-name`,{type:`string`,description:`Specify the block page title when the mode is customized_block_page.`}).option(`settings-block-page-suppress-footer`,{type:`boolean`,description:`Specify whether to suppress detailed information at the bottom of the block page when the mode is customized_block_page.`}).option(`settings-block-page-target-uri`,{type:`string`,description:`Specify the URI to redirect users to when the mode is redirect_uri.`}).option(`settings-body-scanning-inspection-mode`,{type:`string`,description:"Specify the inspection mode as either `deep` or `shallow`.",choices:[`deep`,`shallow`]}).coerce(`settings-body-scanning-inspection-mode`,e=>b(e,`settings-body-scanning-inspection-mode`,`text`)).option(`settings-browser-isolation-non-identity-enabled`,{type:`boolean`,description:`Specify whether to enable non-identity onramp support for Browser Isolation.`}).option(`settings-browser-isolation-url-browser-isolation-enabled`,{type:`boolean`,description:`Specify whether to enable Clientless Browser Isolation.`}).option(`settings-certificate-id`,{type:`string`,description:`Specify the UUID of the certificate used for interception. Ensure the certificate is available at the edge(previously called 'active'). A nil UUID directs Cloudflare to use the Root CA.`}).option(`settings-custom-certificate-enabled`,{type:`boolean`,description:`Specify whether to enable a custom certificate authority for signing Gateway traffic.`}).option(`settings-custom-certificate-id`,{type:`string`,description:`Specify the UUID of the certificate (ID from MTLS certificate store).`}).option(`settings-extended-email-matching-enabled`,{type:`boolean`,description:`Specify whether to match all variants of user emails (with + or . modifiers) used as criteria in Firewall policies.`}).option(`settings-fips-tls`,{type:`boolean`,description:`Enforce cipher suites and TLS versions compliant with FIPS 140-2.`}).option(`settings-host-selector-enabled`,{type:`boolean`,description:`Specify whether to enable filtering via hosts for egress policies.`}).option(`settings-inspection-mode`,{type:`string`,description:`Define the proxy inspection mode. 1. static: Gateway applies static inspection to HTTP on TCP(80). With TLS decryption on, Gateway inspects HTTPS traffic on TCP(443) and UDP(443). 2. dynamic: Gateway applies protocol detection to inspect HTTP and HTTPS traffic on any port. TLS decryption must remain on to inspect HTTPS traffic.`,choices:[`static`,`dynamic`]}).coerce(`settings-inspection-mode`,e=>b(e,`settings-inspection-mode`,`text`)).option(`settings-max-ttl-secs`,{type:`number`,description:"Account-level cap on DNS response TTLs, in seconds. Gateway rewrites DNS responses so returned record TTLs do not exceed this value. Null means no cap. Each DNS location can inherit, override, or disable it through the location `max_ttl` setting."}).option(`settings-protocol-detection-enabled`,{type:`boolean`,description:`Specify whether to detect protocols from the initial bytes of client traffic.`}).option(`settings-regions`,{type:`string`,description:'Specify per-region TLS interception and certificate settings for Gateway, keyed by Data Localization Suite region key. Relies on the Zero Trust account region setting (`GET`/`PUT /accounts/{account_id}/zerotrust/region`) - the account must select a region before Gateway applies these settings for it. Provide as a JSON object or @path/to/file.json. Shape: {"<key>": {...}}.'}).option(`settings-sandbox-enabled`,{type:`boolean`,description:`Specify whether to enable the sandbox.`}).option(`settings-sandbox-fallback-action`,{type:`string`,description:`Specify the action to take when the system cannot scan the file.`,choices:[`allow`,`block`]}).coerce(`settings-sandbox-fallback-action`,e=>b(e,`settings-sandbox-fallback-action`,`text`)).option(`settings-tls-decrypt-enabled`,{type:`boolean`,description:`Specify whether to inspect encrypted HTTP traffic.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Specify account settings.`}).check(e=>{let t=[`settings-custom-certificate-enabled`,`settings-custom-certificate-id`].some(t=>e[t]!==void 0);if(!e.body&&t){let t=[`settings-custom-certificate-enabled`].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 --settings-custom-certificate-* flag is set`)}return!0})}const AS={command:`edit`,describe:`Patch Zero Trust account configuration`,builder:kS,handler:async e=>h({command:`zero-trust gateway configurations edit`,classification:{safeFlags:[`settings-activity-log-enabled`,`settings-antivirus-enabled-download-phase`,`settings-antivirus-enabled-upload-phase`,`settings-antivirus-fail-closed`,`settings-antivirus-notification-settings-enabled`,`settings-antivirus-notification-settings-include-context`,`settings-block-page-enabled`,`settings-block-page-include-context`,`settings-block-page-mode`,`settings-block-page-suppress-footer`,`settings-body-scanning-inspection-mode`,`settings-browser-isolation-non-identity-enabled`,`settings-browser-isolation-url-browser-isolation-enabled`,`settings-custom-certificate-enabled`,`settings-extended-email-matching-enabled`,`settings-fips-tls`,`settings-host-selector-enabled`,`settings-inspection-mode`,`settings-protocol-detection-enabled`,`settings-sandbox-enabled`,`settings-sandbox-fallback-action`,`settings-tls-decrypt-enabled`,`dry-run`]}},e,async()=>{if(e.dryRun){let t=await l();f({command:`cf zero-trust gateway configurations edit`,method:`PATCH`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/gateway/configuration`,pathParams:{},bodyKind:`json`,body:e.body===void 0?c({settings:{activity_log:{enabled:e[`settings-activity-log-enabled`]},antivirus:{enabled_download_phase:e[`settings-antivirus-enabled-download-phase`],enabled_upload_phase:e[`settings-antivirus-enabled-upload-phase`],fail_closed:e[`settings-antivirus-fail-closed`],notification_settings:{enabled:e[`settings-antivirus-notification-settings-enabled`],include_context:e[`settings-antivirus-notification-settings-include-context`],msg:b(e[`settings-antivirus-notification-settings-msg`],`settings-antivirus-notification-settings-msg`,`text`),support_url:b(e[`settings-antivirus-notification-settings-support-url`],`settings-antivirus-notification-settings-support-url`,`text`)}},block_page:{background_color:b(e[`settings-block-page-background-color`],`settings-block-page-background-color`,`text`),enabled:e[`settings-block-page-enabled`],footer_text:b(e[`settings-block-page-footer-text`],`settings-block-page-footer-text`,`text`),header_text:b(e[`settings-block-page-header-text`],`settings-block-page-header-text`,`text`),include_context:e[`settings-block-page-include-context`],logo_path:b(e[`settings-block-page-logo-path`],`settings-block-page-logo-path`,`text`),mailto_address:b(e[`settings-block-page-mailto-address`],`settings-block-page-mailto-address`,`text`),mailto_subject:b(e[`settings-block-page-mailto-subject`],`settings-block-page-mailto-subject`,`text`),mode:e[`settings-block-page-mode`],name:b(e[`settings-block-page-name`],`settings-block-page-name`,`text`),suppress_footer:e[`settings-block-page-suppress-footer`],target_uri:b(e[`settings-block-page-target-uri`],`settings-block-page-target-uri`,`text`)},body_scanning:{inspection_mode:e[`settings-body-scanning-inspection-mode`]},browser_isolation:{non_identity_enabled:e[`settings-browser-isolation-non-identity-enabled`],url_browser_isolation_enabled:e[`settings-browser-isolation-url-browser-isolation-enabled`]},certificate:{id:b(e[`settings-certificate-id`],`settings-certificate-id`,`text`)},custom_certificate:{enabled:e[`settings-custom-certificate-enabled`],id:b(e[`settings-custom-certificate-id`],`settings-custom-certificate-id`,`text`)},extended_email_matching:{enabled:e[`settings-extended-email-matching-enabled`]},fips:{tls:e[`settings-fips-tls`]},host_selector:{enabled:e[`settings-host-selector-enabled`]},inspection:{mode:e[`settings-inspection-mode`]},max_ttl_secs:e[`settings-max-ttl-secs`],protocol_detection:{enabled:e[`settings-protocol-detection-enabled`]},regions:i(e[`settings-regions`],`settings-regions`),sandbox:{enabled:e[`settings-sandbox-enabled`],fallback_action:e[`settings-sandbox-fallback-action`]},tls_decrypt:{enabled:e[`settings-tls-decrypt-enabled`]}}},[[`settings`,`regions`]]):o(e.body)});return}let t=e.body===void 0?void 0:o(e.body),r=await n(e),a=e.local?p:await d();if(e.accountId=a,e.body!==void 0){let e=t,n=await g(`Updating`,async()=>r.send(OS,{body:e,account_id:a}));m(n,{successLabel:`Updated`});return}let s=c({settings:{activity_log:{enabled:e[`settings-activity-log-enabled`]},antivirus:{enabled_download_phase:e[`settings-antivirus-enabled-download-phase`],enabled_upload_phase:e[`settings-antivirus-enabled-upload-phase`],fail_closed:e[`settings-antivirus-fail-closed`],notification_settings:{enabled:e[`settings-antivirus-notification-settings-enabled`],include_context:e[`settings-antivirus-notification-settings-include-context`],msg:b(e[`settings-antivirus-notification-settings-msg`],`settings-antivirus-notification-settings-msg`,`text`),support_url:b(e[`settings-antivirus-notification-settings-support-url`],`settings-antivirus-notification-settings-support-url`,`text`)}},block_page:{background_color:b(e[`settings-block-page-background-color`],`settings-block-page-background-color`,`text`),enabled:e[`settings-block-page-enabled`],footer_text:b(e[`settings-block-page-footer-text`],`settings-block-page-footer-text`,`text`),header_text:b(e[`settings-block-page-header-text`],`settings-block-page-header-text`,`text`),include_context:e[`settings-block-page-include-context`],logo_path:b(e[`settings-block-page-logo-path`],`settings-block-page-logo-path`,`text`),mailto_address:b(e[`settings-block-page-mailto-address`],`settings-block-page-mailto-address`,`text`),mailto_subject:b(e[`settings-block-page-mailto-subject`],`settings-block-page-mailto-subject`,`text`),mode:e[`settings-block-page-mode`],name:b(e[`settings-block-page-name`],`settings-block-page-name`,`text`),suppress_footer:e[`settings-block-page-suppress-footer`],target_uri:b(e[`settings-block-page-target-uri`],`settings-block-page-target-uri`,`text`)},body_scanning:{inspection_mode:e[`settings-body-scanning-inspection-mode`]},browser_isolation:{non_identity_enabled:e[`settings-browser-isolation-non-identity-enabled`],url_browser_isolation_enabled:e[`settings-browser-isolation-url-browser-isolation-enabled`]},certificate:{id:b(e[`settings-certificate-id`],`settings-certificate-id`,`text`)},custom_certificate:{enabled:e[`settings-custom-certificate-enabled`],id:b(e[`settings-custom-certificate-id`],`settings-custom-certificate-id`,`text`)},extended_email_matching:{enabled:e[`settings-extended-email-matching-enabled`]},fips:{tls:e[`settings-fips-tls`]},host_selector:{enabled:e[`settings-host-selector-enabled`]},inspection:{mode:e[`settings-inspection-mode`]},max_ttl_secs:e[`settings-max-ttl-secs`],protocol_detection:{enabled:e[`settings-protocol-detection-enabled`]},regions:i(e[`settings-regions`],`settings-regions`),sandbox:{enabled:e[`settings-sandbox-enabled`],fallback_action:e[`settings-sandbox-fallback-action`]},tls_decrypt:{enabled:e[`settings-tls-decrypt-enabled`]}}},[[`settings`,`regions`]]),u=await g(`Updating`,async()=>r.send(OS,{body:s,account_id:a}));m(u,{successLabel:`Updated`})})};var jS={method:`GET`,path:t=>e`/accounts/${t.account_id}/gateway/configuration`};function MS(e){return e.usage(`$0 zero-trust gateway configurations get
899
899
 
900
900
  Retrieve the current Zero Trust account configuration.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const NS={command:`get`,describe:`Get Zero Trust account configuration`,builder:MS,handler:async e=>h({command:`zero-trust gateway configurations get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let e=await l();f({command:`cf zero-trust gateway configurations get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}/gateway/configuration`,pathParams:{},bodyKind:`none`});return}let t=await n(e),r=e.local?p:await d();e.accountId=r;let i=await g(`Loading`,async()=>t.send(jS,{account_id:r}));m(i,{successLabel:`Loaded`})})};var PS={method:`PUT`,path:t=>e`/accounts/${t.account_id}/gateway/configuration`,body:`json`};function FS(e){return e.usage(`$0 zero-trust gateway configurations update
901
901
 
902
- Update the current Zero Trust account configuration.`).option(`settings-activity-log-enabled`,{type:`boolean`,description:`Specify whether to log activity.`}).option(`settings-antivirus-enabled-download-phase`,{type:`boolean`,description:`Specify whether to enable anti-virus scanning on downloads.`}).option(`settings-antivirus-enabled-upload-phase`,{type:`boolean`,description:`Specify whether to enable anti-virus scanning on uploads.`}).option(`settings-antivirus-fail-closed`,{type:`boolean`,description:`Specify whether to block requests for unscannable files.`}).option(`settings-antivirus-notification-settings-enabled`,{type:`boolean`,description:`Specify whether to enable notifications.`}).option(`settings-antivirus-notification-settings-include-context`,{type:`boolean`,description:`Specify whether to include context information as query parameters.`}).option(`settings-antivirus-notification-settings-msg`,{type:`string`,description:`Specify the message to show in the notification.`}).option(`settings-antivirus-notification-settings-support-url`,{type:`string`,description:`Specify a URL that directs users to more information. If unset, the notification opens a block page.`}).option(`settings-block-page-background-color`,{type:`string`,description:"Specify the block page background color in `#rrggbb` format when the mode is customized_block_page."}).option(`settings-block-page-enabled`,{type:`boolean`,description:`Specify whether to enable the custom block page.`}).option(`settings-block-page-footer-text`,{type:`string`,description:`Specify the block page footer text when the mode is customized_block_page.`}).option(`settings-block-page-header-text`,{type:`string`,description:`Specify the block page header text when the mode is customized_block_page.`}).option(`settings-block-page-include-context`,{type:`boolean`,description:`Specify whether to append context to target_uri as query parameters. This applies only when the mode is redirect_uri.`}).option(`settings-block-page-logo-path`,{type:`string`,description:`Specify the full URL to the logo file when the mode is customized_block_page.`}).option(`settings-block-page-mailto-address`,{type:`string`,description:`Specify the admin email for users to contact when the mode is customized_block_page.`}).option(`settings-block-page-mailto-subject`,{type:`string`,description:`Specify the subject line for emails created from the block page when the mode is customized_block_page.`}).option(`settings-block-page-mode`,{type:`string`,description:`Specify whether to redirect users to a Cloudflare-hosted block page or a customer-provided URI.`,choices:[`customized_block_page`,`redirect_uri`]}).coerce(`settings-block-page-mode`,e=>b(e,`settings-block-page-mode`,`text`)).option(`settings-block-page-name`,{type:`string`,description:`Specify the block page title when the mode is customized_block_page.`}).option(`settings-block-page-suppress-footer`,{type:`boolean`,description:`Specify whether to suppress detailed information at the bottom of the block page when the mode is customized_block_page.`}).option(`settings-block-page-target-uri`,{type:`string`,description:`Specify the URI to redirect users to when the mode is redirect_uri.`}).option(`settings-body-scanning-inspection-mode`,{type:`string`,description:"Specify the inspection mode as either `deep` or `shallow`.",choices:[`deep`,`shallow`]}).coerce(`settings-body-scanning-inspection-mode`,e=>b(e,`settings-body-scanning-inspection-mode`,`text`)).option(`settings-browser-isolation-non-identity-enabled`,{type:`boolean`,description:`Specify whether to enable non-identity onramp support for Browser Isolation.`}).option(`settings-browser-isolation-url-browser-isolation-enabled`,{type:`boolean`,description:`Specify whether to enable Clientless Browser Isolation.`}).option(`settings-certificate-id`,{type:`string`,description:`Specify the UUID of the certificate used for interception. Ensure the certificate is available at the edge(previously called 'active'). A nil UUID directs Cloudflare to use the Root CA.`}).option(`settings-custom-certificate-enabled`,{type:`boolean`,description:`Specify whether to enable a custom certificate authority for signing Gateway traffic.`}).option(`settings-custom-certificate-id`,{type:`string`,description:`Specify the UUID of the certificate (ID from MTLS certificate store).`}).option(`settings-extended-email-matching-enabled`,{type:`boolean`,description:`Specify whether to match all variants of user emails (with + or . modifiers) used as criteria in Firewall policies.`}).option(`settings-fips-tls`,{type:`boolean`,description:`Enforce cipher suites and TLS versions compliant with FIPS 140-2.`}).option(`settings-host-selector-enabled`,{type:`boolean`,description:`Specify whether to enable filtering via hosts for egress policies.`}).option(`settings-inspection-mode`,{type:`string`,description:`Define the proxy inspection mode. 1. static: Gateway applies static inspection to HTTP on TCP(80). With TLS decryption on, Gateway inspects HTTPS traffic on TCP(443) and UDP(443). 2. dynamic: Gateway applies protocol detection to inspect HTTP and HTTPS traffic on any port. TLS decryption must remain on to inspect HTTPS traffic.`,choices:[`static`,`dynamic`]}).coerce(`settings-inspection-mode`,e=>b(e,`settings-inspection-mode`,`text`)).option(`settings-max-ttl-secs`,{type:`number`,description:"Account-level cap on DNS response TTLs, in seconds. Gateway rewrites DNS responses so returned record TTLs do not exceed this value. Null means no cap. Each DNS location can inherit, override, or disable it through the location `max_ttl` setting."}).option(`settings-protocol-detection-enabled`,{type:`boolean`,description:`Specify whether to detect protocols from the initial bytes of client traffic.`}).option(`settings-regions`,{type:`string`,description:'Specify per-region TLS interception and certificate settings for Gateway, keyed by Data Localization Suite region key. Relies on the Zero Trust account region setting (`GET`/`PUT /accounts/{account_id}/zerotrust/region`) - the account must select a region before Gateway applies these settings for it. Provide as a JSON object or @path/to/file.json. Shape: {"<key>": {...}}.'}).option(`settings-sandbox-enabled`,{type:`boolean`,description:`Specify whether to enable the sandbox.`}).option(`settings-sandbox-fallback-action`,{type:`string`,description:`Specify the action to take when the system cannot scan the file.`,choices:[`allow`,`block`]}).coerce(`settings-sandbox-fallback-action`,e=>b(e,`settings-sandbox-fallback-action`,`text`)).option(`settings-tls-decrypt-enabled`,{type:`boolean`,description:`Specify whether to inspect encrypted HTTP traffic.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Specify account settings.`}).check(e=>{let t=[`settings-custom-certificate-enabled`,`settings-custom-certificate-id`].some(t=>e[t]!==void 0);if(!e.body&&t){let t=[`settings-custom-certificate-enabled`].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 --settings-custom-certificate-* flag is set`)}return!0})}const IS={command:`update`,describe:`Update Zero Trust account configuration`,builder:FS,handler:async e=>h({command:`zero-trust gateway configurations update`,classification:{safeFlags:[`settings-activity-log-enabled`,`settings-antivirus-enabled-download-phase`,`settings-antivirus-enabled-upload-phase`,`settings-antivirus-fail-closed`,`settings-antivirus-notification-settings-enabled`,`settings-antivirus-notification-settings-include-context`,`settings-block-page-enabled`,`settings-block-page-include-context`,`settings-block-page-mode`,`settings-block-page-suppress-footer`,`settings-body-scanning-inspection-mode`,`settings-browser-isolation-non-identity-enabled`,`settings-browser-isolation-url-browser-isolation-enabled`,`settings-custom-certificate-enabled`,`settings-extended-email-matching-enabled`,`settings-fips-tls`,`settings-host-selector-enabled`,`settings-inspection-mode`,`settings-protocol-detection-enabled`,`settings-sandbox-enabled`,`settings-sandbox-fallback-action`,`settings-tls-decrypt-enabled`,`dry-run`]}},e,async()=>{if(e.dryRun){let t=await l();f({command:`cf zero-trust gateway configurations update`,method:`PUT`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/gateway/configuration`,pathParams:{},bodyKind:`json`,body:e.body===void 0?c({settings:{activity_log:{enabled:e[`settings-activity-log-enabled`]},antivirus:{enabled_download_phase:e[`settings-antivirus-enabled-download-phase`],enabled_upload_phase:e[`settings-antivirus-enabled-upload-phase`],fail_closed:e[`settings-antivirus-fail-closed`],notification_settings:{enabled:e[`settings-antivirus-notification-settings-enabled`],include_context:e[`settings-antivirus-notification-settings-include-context`],msg:b(e[`settings-antivirus-notification-settings-msg`],`settings-antivirus-notification-settings-msg`,`text`),support_url:b(e[`settings-antivirus-notification-settings-support-url`],`settings-antivirus-notification-settings-support-url`,`text`)}},block_page:{background_color:b(e[`settings-block-page-background-color`],`settings-block-page-background-color`,`text`),enabled:e[`settings-block-page-enabled`],footer_text:b(e[`settings-block-page-footer-text`],`settings-block-page-footer-text`,`text`),header_text:b(e[`settings-block-page-header-text`],`settings-block-page-header-text`,`text`),include_context:e[`settings-block-page-include-context`],logo_path:b(e[`settings-block-page-logo-path`],`settings-block-page-logo-path`,`text`),mailto_address:b(e[`settings-block-page-mailto-address`],`settings-block-page-mailto-address`,`text`),mailto_subject:b(e[`settings-block-page-mailto-subject`],`settings-block-page-mailto-subject`,`text`),mode:e[`settings-block-page-mode`],name:b(e[`settings-block-page-name`],`settings-block-page-name`,`text`),suppress_footer:e[`settings-block-page-suppress-footer`],target_uri:b(e[`settings-block-page-target-uri`],`settings-block-page-target-uri`,`text`)},body_scanning:{inspection_mode:e[`settings-body-scanning-inspection-mode`]},browser_isolation:{non_identity_enabled:e[`settings-browser-isolation-non-identity-enabled`],url_browser_isolation_enabled:e[`settings-browser-isolation-url-browser-isolation-enabled`]},certificate:{id:b(e[`settings-certificate-id`],`settings-certificate-id`,`text`)},custom_certificate:{enabled:e[`settings-custom-certificate-enabled`],id:b(e[`settings-custom-certificate-id`],`settings-custom-certificate-id`,`text`)},extended_email_matching:{enabled:e[`settings-extended-email-matching-enabled`]},fips:{tls:e[`settings-fips-tls`]},host_selector:{enabled:e[`settings-host-selector-enabled`]},inspection:{mode:e[`settings-inspection-mode`]},max_ttl_secs:e[`settings-max-ttl-secs`],protocol_detection:{enabled:e[`settings-protocol-detection-enabled`]},regions:i(e[`settings-regions`],`settings-regions`),sandbox:{enabled:e[`settings-sandbox-enabled`],fallback_action:e[`settings-sandbox-fallback-action`]},tls_decrypt:{enabled:e[`settings-tls-decrypt-enabled`]}}},[[`settings`,`regions`]]):o(e.body)});return}let t=e.body===void 0?void 0:o(e.body),r=await n(e),a=e.local?p:await d();if(e.accountId=a,e.body!==void 0){let e=t,n=await g(`Updating`,async()=>r.send(PS,{body:e,account_id:a}));m(n,{successLabel:`Updated`});return}let s=c({settings:{activity_log:{enabled:e[`settings-activity-log-enabled`]},antivirus:{enabled_download_phase:e[`settings-antivirus-enabled-download-phase`],enabled_upload_phase:e[`settings-antivirus-enabled-upload-phase`],fail_closed:e[`settings-antivirus-fail-closed`],notification_settings:{enabled:e[`settings-antivirus-notification-settings-enabled`],include_context:e[`settings-antivirus-notification-settings-include-context`],msg:b(e[`settings-antivirus-notification-settings-msg`],`settings-antivirus-notification-settings-msg`,`text`),support_url:b(e[`settings-antivirus-notification-settings-support-url`],`settings-antivirus-notification-settings-support-url`,`text`)}},block_page:{background_color:b(e[`settings-block-page-background-color`],`settings-block-page-background-color`,`text`),enabled:e[`settings-block-page-enabled`],footer_text:b(e[`settings-block-page-footer-text`],`settings-block-page-footer-text`,`text`),header_text:b(e[`settings-block-page-header-text`],`settings-block-page-header-text`,`text`),include_context:e[`settings-block-page-include-context`],logo_path:b(e[`settings-block-page-logo-path`],`settings-block-page-logo-path`,`text`),mailto_address:b(e[`settings-block-page-mailto-address`],`settings-block-page-mailto-address`,`text`),mailto_subject:b(e[`settings-block-page-mailto-subject`],`settings-block-page-mailto-subject`,`text`),mode:e[`settings-block-page-mode`],name:b(e[`settings-block-page-name`],`settings-block-page-name`,`text`),suppress_footer:e[`settings-block-page-suppress-footer`],target_uri:b(e[`settings-block-page-target-uri`],`settings-block-page-target-uri`,`text`)},body_scanning:{inspection_mode:e[`settings-body-scanning-inspection-mode`]},browser_isolation:{non_identity_enabled:e[`settings-browser-isolation-non-identity-enabled`],url_browser_isolation_enabled:e[`settings-browser-isolation-url-browser-isolation-enabled`]},certificate:{id:b(e[`settings-certificate-id`],`settings-certificate-id`,`text`)},custom_certificate:{enabled:e[`settings-custom-certificate-enabled`],id:b(e[`settings-custom-certificate-id`],`settings-custom-certificate-id`,`text`)},extended_email_matching:{enabled:e[`settings-extended-email-matching-enabled`]},fips:{tls:e[`settings-fips-tls`]},host_selector:{enabled:e[`settings-host-selector-enabled`]},inspection:{mode:e[`settings-inspection-mode`]},max_ttl_secs:e[`settings-max-ttl-secs`],protocol_detection:{enabled:e[`settings-protocol-detection-enabled`]},regions:i(e[`settings-regions`],`settings-regions`),sandbox:{enabled:e[`settings-sandbox-enabled`],fallback_action:e[`settings-sandbox-fallback-action`]},tls_decrypt:{enabled:e[`settings-tls-decrypt-enabled`]}}},[[`settings`,`regions`]]),u=await g(`Updating`,async()=>r.send(PS,{body:s,account_id:a}));m(u,{successLabel:`Updated`})})},LS={command:`configurations`,describe:`Operations for gateway.configurations`,builder:e=>e.command(AS).command(NS).command(IS).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var RS={method:`POST`,path:t=>e`/accounts/${t.account_id}/gateway`};function zS(e){return e.usage(`$0 zero-trust gateway create
902
+ Update the current Zero Trust account configuration.`).option(`settings-activity-log-enabled`,{type:`boolean`,description:`Specify whether to log activity.`}).option(`settings-antivirus-enabled-download-phase`,{type:`boolean`,description:`Specify whether to enable anti-virus scanning on downloads.`}).option(`settings-antivirus-enabled-upload-phase`,{type:`boolean`,description:`Specify whether to enable anti-virus scanning on uploads.`}).option(`settings-antivirus-fail-closed`,{type:`boolean`,description:`Specify whether to block requests for unscannable files.`}).option(`settings-antivirus-notification-settings-enabled`,{type:`boolean`,description:`Specify whether to enable notifications.`}).option(`settings-antivirus-notification-settings-include-context`,{type:`boolean`,description:`Specify whether to include context information as query parameters.`}).option(`settings-antivirus-notification-settings-msg`,{type:`string`,description:`Specify the message to show in the notification.`}).option(`settings-antivirus-notification-settings-support-url`,{type:`string`,description:`Specify a URL that directs users to more information. If unset, the notification opens a block page.`}).option(`settings-block-page-background-color`,{type:`string`,description:"Specify the block page background color in `#rrggbb` format when the mode is customized_block_page."}).option(`settings-block-page-enabled`,{type:`boolean`,description:`Specify whether to enable the custom block page.`}).option(`settings-block-page-footer-text`,{type:`string`,description:`Specify the block page footer text when the mode is customized_block_page.`}).option(`settings-block-page-header-text`,{type:`string`,description:`Specify the block page header text when the mode is customized_block_page.`}).option(`settings-block-page-include-context`,{type:`boolean`,description:`Specify whether to append context to target_uri as query parameters. This applies only when the mode is redirect_uri.`}).option(`settings-block-page-logo-path`,{type:`string`,description:`Specify the full URL to the logo file when the mode is customized_block_page.`}).option(`settings-block-page-mailto-address`,{type:`string`,description:`Specify the admin email for users to contact when the mode is customized_block_page.`}).option(`settings-block-page-mailto-subject`,{type:`string`,description:`Specify the subject line for emails created from the block page when the mode is customized_block_page.`}).option(`settings-block-page-mode`,{type:`string`,description:`Specify whether to redirect users to a Cloudflare-hosted block page or a customer-provided URI.`,choices:[`customized_block_page`,`redirect_uri`]}).coerce(`settings-block-page-mode`,e=>b(e,`settings-block-page-mode`,`text`)).option(`settings-block-page-name`,{type:`string`,description:`Specify the block page title when the mode is customized_block_page.`}).option(`settings-block-page-suppress-footer`,{type:`boolean`,description:`Specify whether to suppress detailed information at the bottom of the block page when the mode is customized_block_page.`}).option(`settings-block-page-target-uri`,{type:`string`,description:`Specify the URI to redirect users to when the mode is redirect_uri.`}).option(`settings-body-scanning-inspection-mode`,{type:`string`,description:"Specify the inspection mode as either `deep` or `shallow`.",choices:[`deep`,`shallow`]}).coerce(`settings-body-scanning-inspection-mode`,e=>b(e,`settings-body-scanning-inspection-mode`,`text`)).option(`settings-browser-isolation-non-identity-enabled`,{type:`boolean`,description:`Specify whether to enable non-identity onramp support for Browser Isolation.`}).option(`settings-browser-isolation-url-browser-isolation-enabled`,{type:`boolean`,description:`Specify whether to enable Clientless Browser Isolation.`}).option(`settings-certificate-id`,{type:`string`,description:`Specify the UUID of the certificate used for interception. Ensure the certificate is available at the edge(previously called 'active'). A nil UUID directs Cloudflare to use the Root CA.`}).option(`settings-custom-certificate-enabled`,{type:`boolean`,description:`Specify whether to enable a custom certificate authority for signing Gateway traffic.`}).option(`settings-custom-certificate-id`,{type:`string`,description:`Specify the UUID of the certificate (ID from MTLS certificate store).`}).option(`settings-extended-email-matching-enabled`,{type:`boolean`,description:`Specify whether to match all variants of user emails (with + or . modifiers) used as criteria in Firewall policies.`}).option(`settings-fips-tls`,{type:`boolean`,description:`Enforce cipher suites and TLS versions compliant with FIPS 140-2.`}).option(`settings-host-selector-enabled`,{type:`boolean`,description:`Specify whether to enable filtering via hosts for egress policies.`}).option(`settings-inspection-mode`,{type:`string`,description:`Define the proxy inspection mode. 1. static: Gateway applies static inspection to HTTP on TCP(80). With TLS decryption on, Gateway inspects HTTPS traffic on TCP(443) and UDP(443). 2. dynamic: Gateway applies protocol detection to inspect HTTP and HTTPS traffic on any port. TLS decryption must remain on to inspect HTTPS traffic.`,choices:[`static`,`dynamic`]}).coerce(`settings-inspection-mode`,e=>b(e,`settings-inspection-mode`,`text`)).option(`settings-max-ttl-secs`,{type:`number`,description:"Account-level cap on DNS response TTLs, in seconds. Gateway rewrites DNS responses so returned record TTLs do not exceed this value. Null means no cap. Each DNS location can inherit, override, or disable it through the location `max_ttl` setting."}).option(`settings-protocol-detection-enabled`,{type:`boolean`,description:`Specify whether to detect protocols from the initial bytes of client traffic.`}).option(`settings-regions`,{type:`string`,description:'Specify per-region TLS interception and certificate settings for Gateway, keyed by Data Localization Suite region key. Relies on the Zero Trust account region setting (`GET`/`PUT /accounts/{account_id}/zerotrust/region`) - the account must select a region before Gateway applies these settings for it. Provide as a JSON object or @path/to/file.json. Shape: {"<key>": {...}}.'}).option(`settings-sandbox-enabled`,{type:`boolean`,description:`Specify whether to enable the sandbox.`}).option(`settings-sandbox-fallback-action`,{type:`string`,description:`Specify the action to take when the system cannot scan the file.`,choices:[`allow`,`block`]}).coerce(`settings-sandbox-fallback-action`,e=>b(e,`settings-sandbox-fallback-action`,`text`)).option(`settings-tls-decrypt-enabled`,{type:`boolean`,description:`Specify whether to inspect encrypted HTTP traffic.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Specify account settings.`}).check(e=>{let t=[`settings-custom-certificate-enabled`,`settings-custom-certificate-id`].some(t=>e[t]!==void 0);if(!e.body&&t){let t=[`settings-custom-certificate-enabled`].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 --settings-custom-certificate-* flag is set`)}return!0})}const IS={command:`update`,describe:`Update Zero Trust account configuration`,builder:FS,handler:async e=>h({command:`zero-trust gateway configurations update`,classification:{safeFlags:[`settings-activity-log-enabled`,`settings-antivirus-enabled-download-phase`,`settings-antivirus-enabled-upload-phase`,`settings-antivirus-fail-closed`,`settings-antivirus-notification-settings-enabled`,`settings-antivirus-notification-settings-include-context`,`settings-block-page-enabled`,`settings-block-page-include-context`,`settings-block-page-mode`,`settings-block-page-suppress-footer`,`settings-body-scanning-inspection-mode`,`settings-browser-isolation-non-identity-enabled`,`settings-browser-isolation-url-browser-isolation-enabled`,`settings-custom-certificate-enabled`,`settings-extended-email-matching-enabled`,`settings-fips-tls`,`settings-host-selector-enabled`,`settings-inspection-mode`,`settings-protocol-detection-enabled`,`settings-sandbox-enabled`,`settings-sandbox-fallback-action`,`settings-tls-decrypt-enabled`,`dry-run`]}},e,async()=>{if(e.dryRun){let t=await l();f({command:`cf zero-trust gateway configurations update`,method:`PUT`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/gateway/configuration`,pathParams:{},bodyKind:`json`,body:e.body===void 0?c({settings:{activity_log:{enabled:e[`settings-activity-log-enabled`]},antivirus:{enabled_download_phase:e[`settings-antivirus-enabled-download-phase`],enabled_upload_phase:e[`settings-antivirus-enabled-upload-phase`],fail_closed:e[`settings-antivirus-fail-closed`],notification_settings:{enabled:e[`settings-antivirus-notification-settings-enabled`],include_context:e[`settings-antivirus-notification-settings-include-context`],msg:b(e[`settings-antivirus-notification-settings-msg`],`settings-antivirus-notification-settings-msg`,`text`),support_url:b(e[`settings-antivirus-notification-settings-support-url`],`settings-antivirus-notification-settings-support-url`,`text`)}},block_page:{background_color:b(e[`settings-block-page-background-color`],`settings-block-page-background-color`,`text`),enabled:e[`settings-block-page-enabled`],footer_text:b(e[`settings-block-page-footer-text`],`settings-block-page-footer-text`,`text`),header_text:b(e[`settings-block-page-header-text`],`settings-block-page-header-text`,`text`),include_context:e[`settings-block-page-include-context`],logo_path:b(e[`settings-block-page-logo-path`],`settings-block-page-logo-path`,`text`),mailto_address:b(e[`settings-block-page-mailto-address`],`settings-block-page-mailto-address`,`text`),mailto_subject:b(e[`settings-block-page-mailto-subject`],`settings-block-page-mailto-subject`,`text`),mode:e[`settings-block-page-mode`],name:b(e[`settings-block-page-name`],`settings-block-page-name`,`text`),suppress_footer:e[`settings-block-page-suppress-footer`],target_uri:b(e[`settings-block-page-target-uri`],`settings-block-page-target-uri`,`text`)},body_scanning:{inspection_mode:e[`settings-body-scanning-inspection-mode`]},browser_isolation:{non_identity_enabled:e[`settings-browser-isolation-non-identity-enabled`],url_browser_isolation_enabled:e[`settings-browser-isolation-url-browser-isolation-enabled`]},certificate:{id:b(e[`settings-certificate-id`],`settings-certificate-id`,`text`)},custom_certificate:{enabled:e[`settings-custom-certificate-enabled`],id:b(e[`settings-custom-certificate-id`],`settings-custom-certificate-id`,`text`)},extended_email_matching:{enabled:e[`settings-extended-email-matching-enabled`]},fips:{tls:e[`settings-fips-tls`]},host_selector:{enabled:e[`settings-host-selector-enabled`]},inspection:{mode:e[`settings-inspection-mode`]},max_ttl_secs:e[`settings-max-ttl-secs`],protocol_detection:{enabled:e[`settings-protocol-detection-enabled`]},regions:i(e[`settings-regions`],`settings-regions`),sandbox:{enabled:e[`settings-sandbox-enabled`],fallback_action:e[`settings-sandbox-fallback-action`]},tls_decrypt:{enabled:e[`settings-tls-decrypt-enabled`]}}},[[`settings`,`regions`]]):o(e.body)});return}let t=e.body===void 0?void 0:o(e.body),r=await n(e),a=e.local?p:await d();if(e.accountId=a,e.body!==void 0){let e=t,n=await g(`Updating`,async()=>r.send(PS,{body:e,account_id:a}));m(n,{successLabel:`Updated`});return}let s=c({settings:{activity_log:{enabled:e[`settings-activity-log-enabled`]},antivirus:{enabled_download_phase:e[`settings-antivirus-enabled-download-phase`],enabled_upload_phase:e[`settings-antivirus-enabled-upload-phase`],fail_closed:e[`settings-antivirus-fail-closed`],notification_settings:{enabled:e[`settings-antivirus-notification-settings-enabled`],include_context:e[`settings-antivirus-notification-settings-include-context`],msg:b(e[`settings-antivirus-notification-settings-msg`],`settings-antivirus-notification-settings-msg`,`text`),support_url:b(e[`settings-antivirus-notification-settings-support-url`],`settings-antivirus-notification-settings-support-url`,`text`)}},block_page:{background_color:b(e[`settings-block-page-background-color`],`settings-block-page-background-color`,`text`),enabled:e[`settings-block-page-enabled`],footer_text:b(e[`settings-block-page-footer-text`],`settings-block-page-footer-text`,`text`),header_text:b(e[`settings-block-page-header-text`],`settings-block-page-header-text`,`text`),include_context:e[`settings-block-page-include-context`],logo_path:b(e[`settings-block-page-logo-path`],`settings-block-page-logo-path`,`text`),mailto_address:b(e[`settings-block-page-mailto-address`],`settings-block-page-mailto-address`,`text`),mailto_subject:b(e[`settings-block-page-mailto-subject`],`settings-block-page-mailto-subject`,`text`),mode:e[`settings-block-page-mode`],name:b(e[`settings-block-page-name`],`settings-block-page-name`,`text`),suppress_footer:e[`settings-block-page-suppress-footer`],target_uri:b(e[`settings-block-page-target-uri`],`settings-block-page-target-uri`,`text`)},body_scanning:{inspection_mode:e[`settings-body-scanning-inspection-mode`]},browser_isolation:{non_identity_enabled:e[`settings-browser-isolation-non-identity-enabled`],url_browser_isolation_enabled:e[`settings-browser-isolation-url-browser-isolation-enabled`]},certificate:{id:b(e[`settings-certificate-id`],`settings-certificate-id`,`text`)},custom_certificate:{enabled:e[`settings-custom-certificate-enabled`],id:b(e[`settings-custom-certificate-id`],`settings-custom-certificate-id`,`text`)},extended_email_matching:{enabled:e[`settings-extended-email-matching-enabled`]},fips:{tls:e[`settings-fips-tls`]},host_selector:{enabled:e[`settings-host-selector-enabled`]},inspection:{mode:e[`settings-inspection-mode`]},max_ttl_secs:e[`settings-max-ttl-secs`],protocol_detection:{enabled:e[`settings-protocol-detection-enabled`]},regions:i(e[`settings-regions`],`settings-regions`),sandbox:{enabled:e[`settings-sandbox-enabled`],fallback_action:e[`settings-sandbox-fallback-action`]},tls_decrypt:{enabled:e[`settings-tls-decrypt-enabled`]}}},[[`settings`,`regions`]]),u=await g(`Updating`,async()=>r.send(PS,{body:s,account_id:a}));m(u,{successLabel:`Updated`})})},LS={command:`configurations`,describe:`Operations for gateway.configurations`,builder:e=>e.command(AS).command(NS).command(IS).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var RS={method:`POST`,path:t=>e`/accounts/${t.account_id}/gateway`};function zS(e){return e.usage(`$0 zero-trust gateway create
903
903
 
904
904
  Create a Zero Trust account for an existing Cloudflare account.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const BS={command:`create`,describe:`Create Zero Trust account`,builder:zS,handler:async e=>h({command:`zero-trust gateway create`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let e=await l();f({command:`cf zero-trust gateway create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}/gateway`,pathParams:{},bodyKind:`none`});return}let t=await n(e),r=e.local?p:await d();e.accountId=r;let i=await g(`Creating`,async()=>t.send(RS,{account_id:r}));m(i,{successLabel:`Created`})})};var VS={method:`GET`,path:t=>e`/accounts/${t.account_id}/gateway/dns_destination_ips`};function HS(e){return e.usage(`$0 zero-trust gateway dns-destination-ips list
905
905
 
@@ -921,7 +921,7 @@ Fetch all Zero Trust lists for an account.`).option(`type`,{type:`string`,descri
921
921
 
922
922
  Updates a configured Zero Trust list. Skips updating list items if not included in the payload. A non empty list items will overwrite the existing list.`).positional(`list-id`,{type:`string`,description:`Identify the API resource with a UUID.`,demandOption:!0}).option(`description`,{type:`string`,description:`Provide the list description.`}).option(`items`,{type:`string`,description:`Add items to the list. Provide as a JSON array of objects or @path/to/file.json. Shape: [{"description"?: string, "value"?: string}]. ? marks optional keys.`}).option(`name`,{type:`string`,description:`Specify the list 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 hC={command:`update <list-id>`,describe:`Update Zero Trust list`,builder:mC,handler:async e=>h({command:`zero-trust gateway lists update`,classification:{safeFlags:[`dry-run`]}},e,async()=>{let t=async()=>{e.name===void 0&&(e.name=await _(`name`,`Specify the list name.`))};if(e.dryRun){e.body===void 0&&await t();let n=await l();f({command:`cf zero-trust gateway lists update`,method:`PUT`,url:`https://api.cloudflare.com/client/v4/accounts/${n??`<account-id>`}/gateway/lists/${e[`list-id`]==null?`<list-id>`:encodeURIComponent(String(e[`list-id`]))}`,pathParams:{"list-id":String(e[`list-id`]??``)},bodyKind:`json`,body:e.body===void 0?c({description:b(e.description,`description`,`text`),items:a(e.items,`items`),name:b(e.name,`name`,`text`)}):o(e.body)});return}let r=e.body===void 0?void 0:o(e.body),i=await n(e),s=e.local?p:await d();if(e.accountId=s,e.body!==void 0){let t=r,n=await g(`Updating`,async()=>i.send(pC,{body:t,account_id:s,list_id:e[`list-id`]}));m(n,{successLabel:`Updated`});return}await t();let u=c({description:b(e.description,`description`,`text`),items:a(e.items,`items`),name:b(e.name,`name`,`text`)}),h=await g(`Updating`,async()=>i.send(pC,{body:u,account_id:s,list_id:e[`list-id`]}));m(h,{successLabel:`Updated`})})},gC={command:`lists`,describe:`Operations for gateway.lists`,builder:e=>e.command(XS).command($S).command(nC).command(aC).command(fC).command(hC).command(lC).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var _C={method:`POST`,path:t=>e`/accounts/${t.account_id}/gateway/locations`,body:`json`};function vC(e){return e.usage(`$0 zero-trust gateway locations create
923
923
 
924
- Create a new Zero Trust Gateway location.`).option(`client-default`,{type:`boolean`,description:`Indicate whether this location is the default location.`,default:!1}).option(`dns64-enabled`,{type:`boolean`,description:`Enable DNS64 synthesis for DNS queries matched to this location. When updating a location, omitting this field resets it to false.`,default:!1}).option(`dns-destination-ips-id`,{type:`string`,description:`Specify the identifier of the pair of IPv4 addresses assigned to this location. When creating a location, if this field is absent or set to null, the pair of shared IPv4 addresses (0e4a32c6-6fb8-4858-9296-98f51631e8e6) is auto-assigned. When updating a location, if this field is absent or set to null, the pre-assigned pair remains unchanged.`}).option(`ecs-support`,{type:`boolean`,description:`Indicate whether the location must resolve EDNS queries.`,default:!1}).option(`endpoints-doh-enabled`,{type:`boolean`,description:`Indicate whether the DOH endpoint is enabled for this location.`}).option(`endpoints-doh-networks`,{type:`string`,description:`Specify the list of allowed source IP network ranges for this endpoint. When the list is empty, the endpoint allows all source IPs. The list takes effect only if the endpoint is enabled for this location. Provide as a JSON array of objects or @path/to/file.json. Shape: [{"network": string}].`}).option(`endpoints-doh-require-token`,{type:`boolean`,description:`Specify whether the DOH endpoint requires user identity authentication.`}).option(`endpoints-dot-enabled`,{type:`boolean`,description:`Indicate whether the DOT endpoint is enabled for this location.`}).option(`endpoints-dot-networks`,{type:`string`,description:`Specify the list of allowed source IP network ranges for this endpoint. When the list is empty, the endpoint allows all source IPs. The list takes effect only if the endpoint is enabled for this location. Provide as a JSON array of objects or @path/to/file.json. Shape: [{"network": string}].`}).option(`endpoints-ipv4-enabled`,{type:`boolean`,description:`Indicate whether the IPv4 endpoint is enabled for this location.`}).option(`endpoints-ipv6-enabled`,{type:`boolean`,description:`Indicate whether the IPV6 endpoint is enabled for this location.`}).option(`endpoints-ipv6-networks`,{type:`string`,description:`Specify the list of allowed source IPv6 network ranges for this endpoint. When the list is empty, the endpoint allows all source IPs. The list takes effect only if the endpoint is enabled for this location. Provide as a JSON array of objects or @path/to/file.json. Shape: [{"network": string}].`}).option(`max-ttl-mode`,{type:`string`,description:"`inherit` uses the account `max_ttl_secs`. `override` uses this location's `ttl_secs`. `disabled` leaves returned TTLs unchanged.",choices:[`inherit`,`override`,`disabled`]}).coerce(`max-ttl-mode`,e=>b(e,`max-ttl-mode`,`text`)).option(`max-ttl-ttl-secs`,{type:`number`,description:"Location-specific cap on DNS response TTLs, in seconds. Required when `mode` is `override`. Must be omitted when `mode` is `inherit` or `disabled`."}).option(`name`,{type:`string`,description:`Specify the location name.`}).option(`networks`,{type:`string`,description:`Specify the list of network ranges from which requests at this location originate. The list takes effect only if it is non-empty and the IPv4 endpoint is enabled for this location. Provide as a JSON array of objects or @path/to/file.json. Shape: [{"network": string}].`}).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)`}).check(e=>{let t=[`max-ttl-mode`,`max-ttl-ttl-secs`].some(t=>e[t]!==void 0);if(!e.body&&t){let t=[`max-ttl-mode`].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 --max-ttl-* flag is set`)}return!0})}const yC={command:`create`,describe:`Create a Zero Trust Gateway location`,builder:vC,handler:async e=>h({command:`zero-trust gateway locations create`,classification:{safeFlags:[`client-default`,`dns64-enabled`,`ecs-support`,`endpoints-doh-enabled`,`endpoints-doh-require-token`,`endpoints-dot-enabled`,`endpoints-ipv4-enabled`,`endpoints-ipv6-enabled`,`max-ttl-mode`,`dry-run`]}},e,async()=>{let t=async()=>{e.name===void 0&&(e.name=await _(`name`,`Specify the location name.`))};if(e.dryRun){e.body===void 0&&await t();let n=await l();f({command:`cf zero-trust gateway locations create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${n??`<account-id>`}/gateway/locations`,pathParams:{},bodyKind:`json`,body:e.body===void 0?c({client_default:e[`client-default`],dns64_enabled:e[`dns64-enabled`],dns_destination_ips_id:b(e[`dns-destination-ips-id`],`dns-destination-ips-id`,`text`),ecs_support:e[`ecs-support`],endpoints:{doh:{enabled:e[`endpoints-doh-enabled`],networks:a(e[`endpoints-doh-networks`],`endpoints-doh-networks`),require_token:e[`endpoints-doh-require-token`]},dot:{enabled:e[`endpoints-dot-enabled`],networks:a(e[`endpoints-dot-networks`],`endpoints-dot-networks`)},ipv4:{enabled:e[`endpoints-ipv4-enabled`]},ipv6:{enabled:e[`endpoints-ipv6-enabled`],networks:a(e[`endpoints-ipv6-networks`],`endpoints-ipv6-networks`)}},max_ttl:{mode:e[`max-ttl-mode`],ttl_secs:e[`max-ttl-ttl-secs`]},name:b(e.name,`name`,`text`),networks:a(e.networks,`networks`)}):o(e.body)});return}let r=e.body===void 0?void 0:o(e.body),i=await n(e),s=e.local?p:await d();if(e.accountId=s,e.body!==void 0){let e=r,t=await g(`Creating`,async()=>i.send(_C,{body:e,account_id:s}));m(t,{successLabel:`Created`});return}await t();let u=c({client_default:e[`client-default`],dns64_enabled:e[`dns64-enabled`],dns_destination_ips_id:b(e[`dns-destination-ips-id`],`dns-destination-ips-id`,`text`),ecs_support:e[`ecs-support`],endpoints:{doh:{enabled:e[`endpoints-doh-enabled`],networks:a(e[`endpoints-doh-networks`],`endpoints-doh-networks`),require_token:e[`endpoints-doh-require-token`]},dot:{enabled:e[`endpoints-dot-enabled`],networks:a(e[`endpoints-dot-networks`],`endpoints-dot-networks`)},ipv4:{enabled:e[`endpoints-ipv4-enabled`]},ipv6:{enabled:e[`endpoints-ipv6-enabled`],networks:a(e[`endpoints-ipv6-networks`],`endpoints-ipv6-networks`)}},max_ttl:{mode:e[`max-ttl-mode`],ttl_secs:e[`max-ttl-ttl-secs`]},name:b(e.name,`name`,`text`),networks:a(e.networks,`networks`)}),h=await g(`Creating`,async()=>i.send(_C,{body:u,account_id:s}));m(h,{successLabel:`Created`})})};var bC={method:`DELETE`,path:t=>e`/accounts/${t.account_id}/gateway/locations/${t.location_id}`};function xC(e){return e.usage(`$0 zero-trust gateway locations delete <location-id>
924
+ Create a new Zero Trust Gateway location.`).option(`client-default`,{type:`boolean`,description:`Indicate whether this location is the default location.`,default:!1}).option(`dns64-enabled`,{type:`boolean`,description:`Enable DNS64 synthesis for DNS queries matched to this location. When updating a location, omitting this field resets it to false.`,default:!1}).option(`dns-destination-ips-id`,{type:`string`,description:`Specify the identifier of the pair of IPv4 addresses assigned to this location. When creating a location, if this field is absent or set to null, the pair of shared IPv4 addresses (0e4a32c6-6fb8-4858-9296-98f51631e8e6) is auto-assigned. When updating a location, if this field is absent or set to null, the pre-assigned pair remains unchanged.`}).option(`ecs-support`,{type:`boolean`,description:`Indicate whether the location must resolve EDNS queries.`,default:!1}).option(`endpoints-doh-enabled`,{type:`boolean`,description:`Indicate whether the DOH endpoint is enabled for this location.`}).option(`endpoints-doh-networks`,{type:`string`,description:`Specify the list of allowed source IP network ranges for this endpoint. When the list is empty, the endpoint allows all source IPs. The list takes effect only if the endpoint is enabled for this location. Provide as a JSON array of objects, null, or @path/to/file.json. Shape: [{"network": string}].`}).option(`endpoints-doh-require-token`,{type:`boolean`,description:`Specify whether the DOH endpoint requires user identity authentication.`}).option(`endpoints-dot-enabled`,{type:`boolean`,description:`Indicate whether the DOT endpoint is enabled for this location.`}).option(`endpoints-dot-networks`,{type:`string`,description:`Specify the list of allowed source IP network ranges for this endpoint. When the list is empty, the endpoint allows all source IPs. The list takes effect only if the endpoint is enabled for this location. Provide as a JSON array of objects, null, or @path/to/file.json. Shape: [{"network": string}].`}).option(`endpoints-ipv4-enabled`,{type:`boolean`,description:`Indicate whether the IPv4 endpoint is enabled for this location.`}).option(`endpoints-ipv6-enabled`,{type:`boolean`,description:`Indicate whether the IPV6 endpoint is enabled for this location.`}).option(`endpoints-ipv6-networks`,{type:`string`,description:`Specify the list of allowed source IPv6 network ranges for this endpoint. When the list is empty, the endpoint allows all source IPs. The list takes effect only if the endpoint is enabled for this location. Provide as a JSON array of objects, null, or @path/to/file.json. Shape: [{"network": string}].`}).option(`max-ttl-mode`,{type:`string`,description:"`inherit` uses the account `max_ttl_secs`. `override` uses this location's `ttl_secs`. `disabled` leaves returned TTLs unchanged.",choices:[`inherit`,`override`,`disabled`]}).coerce(`max-ttl-mode`,e=>b(e,`max-ttl-mode`,`text`)).option(`max-ttl-ttl-secs`,{type:`number`,description:"Location-specific cap on DNS response TTLs, in seconds. Required when `mode` is `override`. Must be omitted when `mode` is `inherit` or `disabled`."}).option(`name`,{type:`string`,description:`Specify the location name.`}).option(`networks`,{type:`string`,description:`Specify the list of network ranges from which requests at this location originate. The list takes effect only if it is non-empty and the IPv4 endpoint is enabled for this location. Provide as a JSON array of objects, null, or @path/to/file.json. Shape: [{"network": string}].`}).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)`}).check(e=>{let t=[`max-ttl-mode`,`max-ttl-ttl-secs`].some(t=>e[t]!==void 0);if(!e.body&&t){let t=[`max-ttl-mode`].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 --max-ttl-* flag is set`)}return!0})}const yC={command:`create`,describe:`Create a Zero Trust Gateway location`,builder:vC,handler:async e=>h({command:`zero-trust gateway locations create`,classification:{safeFlags:[`client-default`,`dns64-enabled`,`ecs-support`,`endpoints-doh-enabled`,`endpoints-doh-require-token`,`endpoints-dot-enabled`,`endpoints-ipv4-enabled`,`endpoints-ipv6-enabled`,`max-ttl-mode`,`dry-run`]}},e,async()=>{let t=async()=>{e.name===void 0&&(e.name=await _(`name`,`Specify the location name.`))};if(e.dryRun){e.body===void 0&&await t();let n=await l();f({command:`cf zero-trust gateway locations create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${n??`<account-id>`}/gateway/locations`,pathParams:{},bodyKind:`json`,body:e.body===void 0?c({client_default:e[`client-default`],dns64_enabled:e[`dns64-enabled`],dns_destination_ips_id:b(e[`dns-destination-ips-id`],`dns-destination-ips-id`,`text`),ecs_support:e[`ecs-support`],endpoints:{doh:{enabled:e[`endpoints-doh-enabled`],networks:a(e[`endpoints-doh-networks`],`endpoints-doh-networks`,!0),require_token:e[`endpoints-doh-require-token`]},dot:{enabled:e[`endpoints-dot-enabled`],networks:a(e[`endpoints-dot-networks`],`endpoints-dot-networks`,!0)},ipv4:{enabled:e[`endpoints-ipv4-enabled`]},ipv6:{enabled:e[`endpoints-ipv6-enabled`],networks:a(e[`endpoints-ipv6-networks`],`endpoints-ipv6-networks`,!0)}},max_ttl:{mode:e[`max-ttl-mode`],ttl_secs:e[`max-ttl-ttl-secs`]},name:b(e.name,`name`,`text`),networks:a(e.networks,`networks`,!0)}):o(e.body)});return}let r=e.body===void 0?void 0:o(e.body),i=await n(e),s=e.local?p:await d();if(e.accountId=s,e.body!==void 0){let e=r,t=await g(`Creating`,async()=>i.send(_C,{body:e,account_id:s}));m(t,{successLabel:`Created`});return}await t();let u=c({client_default:e[`client-default`],dns64_enabled:e[`dns64-enabled`],dns_destination_ips_id:b(e[`dns-destination-ips-id`],`dns-destination-ips-id`,`text`),ecs_support:e[`ecs-support`],endpoints:{doh:{enabled:e[`endpoints-doh-enabled`],networks:a(e[`endpoints-doh-networks`],`endpoints-doh-networks`,!0),require_token:e[`endpoints-doh-require-token`]},dot:{enabled:e[`endpoints-dot-enabled`],networks:a(e[`endpoints-dot-networks`],`endpoints-dot-networks`,!0)},ipv4:{enabled:e[`endpoints-ipv4-enabled`]},ipv6:{enabled:e[`endpoints-ipv6-enabled`],networks:a(e[`endpoints-ipv6-networks`],`endpoints-ipv6-networks`,!0)}},max_ttl:{mode:e[`max-ttl-mode`],ttl_secs:e[`max-ttl-ttl-secs`]},name:b(e.name,`name`,`text`),networks:a(e.networks,`networks`,!0)}),h=await g(`Creating`,async()=>i.send(_C,{body:u,account_id:s}));m(h,{successLabel:`Created`})})};var bC={method:`DELETE`,path:t=>e`/accounts/${t.account_id}/gateway/locations/${t.location_id}`};function xC(e){return e.usage(`$0 zero-trust gateway locations delete <location-id>
925
925
 
926
926
  Delete a configured Zero Trust Gateway location.`).positional(`location-id`,{type:`string`,description:`Location 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 SC={command:`delete <location-id>`,describe:`Delete a Zero Trust Gateway location`,builder:xC,handler:async e=>h({command:`zero-trust gateway locations delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{if(e.dryRun){let t=await l();f({command:`cf zero-trust gateway locations delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/gateway/locations/${e[`location-id`]==null?`<location-id>`:encodeURIComponent(String(e[`location-id`]))}`,pathParams:{"location-id":String(e[`location-id`]??``)},bodyKind:`none`});return}let t=await n(e),r=e.local?p:await d();if(e.accountId=r,!await y({force:!!e.force}))return;let i=await g(`Deleting`,async()=>t.send(bC,{account_id:r,location_id:e[`location-id`]}));m(i,{successLabel:`Deleted`})})};var CC={method:`GET`,path:t=>e`/accounts/${t.account_id}/gateway/locations/${t.location_id}`};function wC(e){return e.usage(`$0 zero-trust gateway locations get <location-id>
927
927
 
@@ -929,7 +929,7 @@ Get a single Zero Trust Gateway location.`).positional(`location-id`,{type:`stri
929
929
 
930
930
  List Zero Trust Gateway locations for an account.`).option(`filter`,{type:`string`,array:!0,description:"Filter the returned locations by one or more `field:value` pairs.\nRepeat the parameter to apply multiple filters; they are combined with\nlogical AND (a location must satisfy every filter to be returned).\n\nSupported fields and their matching behaviour:\n * `name` — case-insensitive substring match on the location name.\n * `id` — substring match on the location ID (UUID), with or without dashes.\n * `is_default` — whether it is the default for the account.\n\nEach entry must match one of the per-field patterns below:\n * the field must be one of `name`, `id`, or `is_default`;\n * `name`/`id` accept any value;\n * `is_default` only accepts `true` or `false`; any other value returns `400`"}).option(`search`,{type:`string`,description:"Case-insensitive substring match on the location name. When combined\nwith `filter`, both must match (logical AND)."}).option(`order-by`,{type:`string`,description:"Field to sort the returned locations by. When omitted, the order of\nresults is unspecified. Supported values:\n * `name` — sort alphabetically by location name.\n * `created_at` — sort by creation time; defaults to descending unless `direction` is set.\n * `updated_at` — sort by last-modified time; defaults to descending unless `direction` is set.",choices:[`name`,`created_at`,`updated_at`]}).option(`direction`,{type:`string`,description:"Sort direction. Only takes effect when `order_by` is also provided; it\nis ignored otherwise. When `direction` is omitted the effective\ndirection is field-specific: `created_at` and `updated_at` default to\ndescending (newest first); `name` defaults to ascending.\n * `asc` — ascending.\n * `desc` — descending.",choices:[`asc`,`desc`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const OC={command:`list`,describe:`List Zero Trust Gateway locations`,builder:DC,handler:async e=>h({command:`zero-trust gateway locations list`,classification:{safeFlags:[`order-by`,`direction`,`dry-run`]}},e,async()=>{let t={filter:e.filter,search:e.search,order_by:e[`order-by`],direction:e.direction};if(e.dryRun){let e=await l();f({command:`cf zero-trust gateway locations list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}/gateway/locations`,pathParams:{},query:t,bodyKind:`none`});return}let r=await n(e),i=e.local?p:await d();e.accountId=i;let a=await g(`Loading`,async()=>r.send(EC,{account_id:i,...t}));m(a,{successLabel:`Loaded`})})};var kC={method:`PUT`,path:t=>e`/accounts/${t.account_id}/gateway/locations/${t.location_id}`,body:`json`};function AC(e){return e.usage(`$0 zero-trust gateway locations update <location-id>
931
931
 
932
- Update a configured Zero Trust Gateway location.`).positional(`location-id`,{type:`string`,description:`Location ID`,demandOption:!0}).option(`client-default`,{type:`boolean`,description:`Indicate whether this location is the default location.`}).option(`dns64-enabled`,{type:`boolean`,description:`Enable DNS64 synthesis for DNS queries matched to this location. When updating a location, omitting this field resets it to false.`}).option(`dns-destination-ips-id`,{type:`string`,description:`Specify the identifier of the pair of IPv4 addresses assigned to this location. When creating a location, if this field is absent or set to null, the pair of shared IPv4 addresses (0e4a32c6-6fb8-4858-9296-98f51631e8e6) is auto-assigned. When updating a location, if this field is absent or set to null, the pre-assigned pair remains unchanged.`}).option(`ecs-support`,{type:`boolean`,description:`Indicate whether the location must resolve EDNS queries.`}).option(`endpoints-doh-enabled`,{type:`boolean`,description:`Indicate whether the DOH endpoint is enabled for this location.`}).option(`endpoints-doh-networks`,{type:`string`,description:`Specify the list of allowed source IP network ranges for this endpoint. When the list is empty, the endpoint allows all source IPs. The list takes effect only if the endpoint is enabled for this location. Provide as a JSON array of objects or @path/to/file.json. Shape: [{"network": string}].`}).option(`endpoints-doh-require-token`,{type:`boolean`,description:`Specify whether the DOH endpoint requires user identity authentication.`}).option(`endpoints-dot-enabled`,{type:`boolean`,description:`Indicate whether the DOT endpoint is enabled for this location.`}).option(`endpoints-dot-networks`,{type:`string`,description:`Specify the list of allowed source IP network ranges for this endpoint. When the list is empty, the endpoint allows all source IPs. The list takes effect only if the endpoint is enabled for this location. Provide as a JSON array of objects or @path/to/file.json. Shape: [{"network": string}].`}).option(`endpoints-ipv4-enabled`,{type:`boolean`,description:`Indicate whether the IPv4 endpoint is enabled for this location.`}).option(`endpoints-ipv6-enabled`,{type:`boolean`,description:`Indicate whether the IPV6 endpoint is enabled for this location.`}).option(`endpoints-ipv6-networks`,{type:`string`,description:`Specify the list of allowed source IPv6 network ranges for this endpoint. When the list is empty, the endpoint allows all source IPs. The list takes effect only if the endpoint is enabled for this location. Provide as a JSON array of objects or @path/to/file.json. Shape: [{"network": string}].`}).option(`max-ttl-mode`,{type:`string`,description:"`inherit` uses the account `max_ttl_secs`. `override` uses this location's `ttl_secs`. `disabled` leaves returned TTLs unchanged.",choices:[`inherit`,`override`,`disabled`]}).coerce(`max-ttl-mode`,e=>b(e,`max-ttl-mode`,`text`)).option(`max-ttl-ttl-secs`,{type:`number`,description:"Location-specific cap on DNS response TTLs, in seconds. Required when `mode` is `override`. Must be omitted when `mode` is `inherit` or `disabled`."}).option(`name`,{type:`string`,description:`Specify the location name.`}).option(`networks`,{type:`string`,description:`Specify the list of network ranges from which requests at this location originate. The list takes effect only if it is non-empty and the IPv4 endpoint is enabled for this location. Provide as a JSON array of objects or @path/to/file.json. Shape: [{"network": string}].`}).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)`}).check(e=>{let t=[`max-ttl-mode`,`max-ttl-ttl-secs`].some(t=>e[t]!==void 0);if(!e.body&&t){let t=[`max-ttl-mode`].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 --max-ttl-* flag is set`)}return!0})}const jC={command:`update <location-id>`,describe:`Update a Zero Trust Gateway location`,builder:AC,handler:async e=>h({command:`zero-trust gateway locations update`,classification:{safeFlags:[`client-default`,`dns64-enabled`,`ecs-support`,`endpoints-doh-enabled`,`endpoints-doh-require-token`,`endpoints-dot-enabled`,`endpoints-ipv4-enabled`,`endpoints-ipv6-enabled`,`max-ttl-mode`,`dry-run`]}},e,async()=>{let t=async()=>{e.name===void 0&&(e.name=await _(`name`,`Specify the location name.`))};if(e.dryRun){e.body===void 0&&await t();let n=await l();f({command:`cf zero-trust gateway locations update`,method:`PUT`,url:`https://api.cloudflare.com/client/v4/accounts/${n??`<account-id>`}/gateway/locations/${e[`location-id`]==null?`<location-id>`:encodeURIComponent(String(e[`location-id`]))}`,pathParams:{"location-id":String(e[`location-id`]??``)},bodyKind:`json`,body:e.body===void 0?c({client_default:e[`client-default`],dns64_enabled:e[`dns64-enabled`],dns_destination_ips_id:b(e[`dns-destination-ips-id`],`dns-destination-ips-id`,`text`),ecs_support:e[`ecs-support`],endpoints:{doh:{enabled:e[`endpoints-doh-enabled`],networks:a(e[`endpoints-doh-networks`],`endpoints-doh-networks`),require_token:e[`endpoints-doh-require-token`]},dot:{enabled:e[`endpoints-dot-enabled`],networks:a(e[`endpoints-dot-networks`],`endpoints-dot-networks`)},ipv4:{enabled:e[`endpoints-ipv4-enabled`]},ipv6:{enabled:e[`endpoints-ipv6-enabled`],networks:a(e[`endpoints-ipv6-networks`],`endpoints-ipv6-networks`)}},max_ttl:{mode:e[`max-ttl-mode`],ttl_secs:e[`max-ttl-ttl-secs`]},name:b(e.name,`name`,`text`),networks:a(e.networks,`networks`)}):o(e.body)});return}let r=e.body===void 0?void 0:o(e.body),i=await n(e),s=e.local?p:await d();if(e.accountId=s,e.body!==void 0){let t=r,n=await g(`Updating`,async()=>i.send(kC,{body:t,account_id:s,location_id:e[`location-id`]}));m(n,{successLabel:`Updated`});return}await t();let u=c({client_default:e[`client-default`],dns64_enabled:e[`dns64-enabled`],dns_destination_ips_id:b(e[`dns-destination-ips-id`],`dns-destination-ips-id`,`text`),ecs_support:e[`ecs-support`],endpoints:{doh:{enabled:e[`endpoints-doh-enabled`],networks:a(e[`endpoints-doh-networks`],`endpoints-doh-networks`),require_token:e[`endpoints-doh-require-token`]},dot:{enabled:e[`endpoints-dot-enabled`],networks:a(e[`endpoints-dot-networks`],`endpoints-dot-networks`)},ipv4:{enabled:e[`endpoints-ipv4-enabled`]},ipv6:{enabled:e[`endpoints-ipv6-enabled`],networks:a(e[`endpoints-ipv6-networks`],`endpoints-ipv6-networks`)}},max_ttl:{mode:e[`max-ttl-mode`],ttl_secs:e[`max-ttl-ttl-secs`]},name:b(e.name,`name`,`text`),networks:a(e.networks,`networks`)}),h=await g(`Updating`,async()=>i.send(kC,{body:u,account_id:s,location_id:e[`location-id`]}));m(h,{successLabel:`Updated`})})},MC={command:`locations`,describe:`Operations for gateway.locations`,builder:e=>e.command(yC).command(SC).command(TC).command(OC).command(jC).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var NC={method:`GET`,path:t=>e`/accounts/${t.account_id}/gateway/logging`};function PC(e){return e.usage(`$0 zero-trust gateway logging get
932
+ Update a configured Zero Trust Gateway location.`).positional(`location-id`,{type:`string`,description:`Location ID`,demandOption:!0}).option(`client-default`,{type:`boolean`,description:`Indicate whether this location is the default location.`}).option(`dns64-enabled`,{type:`boolean`,description:`Enable DNS64 synthesis for DNS queries matched to this location. When updating a location, omitting this field resets it to false.`}).option(`dns-destination-ips-id`,{type:`string`,description:`Specify the identifier of the pair of IPv4 addresses assigned to this location. When creating a location, if this field is absent or set to null, the pair of shared IPv4 addresses (0e4a32c6-6fb8-4858-9296-98f51631e8e6) is auto-assigned. When updating a location, if this field is absent or set to null, the pre-assigned pair remains unchanged.`}).option(`ecs-support`,{type:`boolean`,description:`Indicate whether the location must resolve EDNS queries.`}).option(`endpoints-doh-enabled`,{type:`boolean`,description:`Indicate whether the DOH endpoint is enabled for this location.`}).option(`endpoints-doh-networks`,{type:`string`,description:`Specify the list of allowed source IP network ranges for this endpoint. When the list is empty, the endpoint allows all source IPs. The list takes effect only if the endpoint is enabled for this location. Provide as a JSON array of objects, null, or @path/to/file.json. Shape: [{"network": string}].`}).option(`endpoints-doh-require-token`,{type:`boolean`,description:`Specify whether the DOH endpoint requires user identity authentication.`}).option(`endpoints-dot-enabled`,{type:`boolean`,description:`Indicate whether the DOT endpoint is enabled for this location.`}).option(`endpoints-dot-networks`,{type:`string`,description:`Specify the list of allowed source IP network ranges for this endpoint. When the list is empty, the endpoint allows all source IPs. The list takes effect only if the endpoint is enabled for this location. Provide as a JSON array of objects, null, or @path/to/file.json. Shape: [{"network": string}].`}).option(`endpoints-ipv4-enabled`,{type:`boolean`,description:`Indicate whether the IPv4 endpoint is enabled for this location.`}).option(`endpoints-ipv6-enabled`,{type:`boolean`,description:`Indicate whether the IPV6 endpoint is enabled for this location.`}).option(`endpoints-ipv6-networks`,{type:`string`,description:`Specify the list of allowed source IPv6 network ranges for this endpoint. When the list is empty, the endpoint allows all source IPs. The list takes effect only if the endpoint is enabled for this location. Provide as a JSON array of objects, null, or @path/to/file.json. Shape: [{"network": string}].`}).option(`max-ttl-mode`,{type:`string`,description:"`inherit` uses the account `max_ttl_secs`. `override` uses this location's `ttl_secs`. `disabled` leaves returned TTLs unchanged.",choices:[`inherit`,`override`,`disabled`]}).coerce(`max-ttl-mode`,e=>b(e,`max-ttl-mode`,`text`)).option(`max-ttl-ttl-secs`,{type:`number`,description:"Location-specific cap on DNS response TTLs, in seconds. Required when `mode` is `override`. Must be omitted when `mode` is `inherit` or `disabled`."}).option(`name`,{type:`string`,description:`Specify the location name.`}).option(`networks`,{type:`string`,description:`Specify the list of network ranges from which requests at this location originate. The list takes effect only if it is non-empty and the IPv4 endpoint is enabled for this location. Provide as a JSON array of objects, null, or @path/to/file.json. Shape: [{"network": string}].`}).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)`}).check(e=>{let t=[`max-ttl-mode`,`max-ttl-ttl-secs`].some(t=>e[t]!==void 0);if(!e.body&&t){let t=[`max-ttl-mode`].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 --max-ttl-* flag is set`)}return!0})}const jC={command:`update <location-id>`,describe:`Update a Zero Trust Gateway location`,builder:AC,handler:async e=>h({command:`zero-trust gateway locations update`,classification:{safeFlags:[`client-default`,`dns64-enabled`,`ecs-support`,`endpoints-doh-enabled`,`endpoints-doh-require-token`,`endpoints-dot-enabled`,`endpoints-ipv4-enabled`,`endpoints-ipv6-enabled`,`max-ttl-mode`,`dry-run`]}},e,async()=>{let t=async()=>{e.name===void 0&&(e.name=await _(`name`,`Specify the location name.`))};if(e.dryRun){e.body===void 0&&await t();let n=await l();f({command:`cf zero-trust gateway locations update`,method:`PUT`,url:`https://api.cloudflare.com/client/v4/accounts/${n??`<account-id>`}/gateway/locations/${e[`location-id`]==null?`<location-id>`:encodeURIComponent(String(e[`location-id`]))}`,pathParams:{"location-id":String(e[`location-id`]??``)},bodyKind:`json`,body:e.body===void 0?c({client_default:e[`client-default`],dns64_enabled:e[`dns64-enabled`],dns_destination_ips_id:b(e[`dns-destination-ips-id`],`dns-destination-ips-id`,`text`),ecs_support:e[`ecs-support`],endpoints:{doh:{enabled:e[`endpoints-doh-enabled`],networks:a(e[`endpoints-doh-networks`],`endpoints-doh-networks`,!0),require_token:e[`endpoints-doh-require-token`]},dot:{enabled:e[`endpoints-dot-enabled`],networks:a(e[`endpoints-dot-networks`],`endpoints-dot-networks`,!0)},ipv4:{enabled:e[`endpoints-ipv4-enabled`]},ipv6:{enabled:e[`endpoints-ipv6-enabled`],networks:a(e[`endpoints-ipv6-networks`],`endpoints-ipv6-networks`,!0)}},max_ttl:{mode:e[`max-ttl-mode`],ttl_secs:e[`max-ttl-ttl-secs`]},name:b(e.name,`name`,`text`),networks:a(e.networks,`networks`,!0)}):o(e.body)});return}let r=e.body===void 0?void 0:o(e.body),i=await n(e),s=e.local?p:await d();if(e.accountId=s,e.body!==void 0){let t=r,n=await g(`Updating`,async()=>i.send(kC,{body:t,account_id:s,location_id:e[`location-id`]}));m(n,{successLabel:`Updated`});return}await t();let u=c({client_default:e[`client-default`],dns64_enabled:e[`dns64-enabled`],dns_destination_ips_id:b(e[`dns-destination-ips-id`],`dns-destination-ips-id`,`text`),ecs_support:e[`ecs-support`],endpoints:{doh:{enabled:e[`endpoints-doh-enabled`],networks:a(e[`endpoints-doh-networks`],`endpoints-doh-networks`,!0),require_token:e[`endpoints-doh-require-token`]},dot:{enabled:e[`endpoints-dot-enabled`],networks:a(e[`endpoints-dot-networks`],`endpoints-dot-networks`,!0)},ipv4:{enabled:e[`endpoints-ipv4-enabled`]},ipv6:{enabled:e[`endpoints-ipv6-enabled`],networks:a(e[`endpoints-ipv6-networks`],`endpoints-ipv6-networks`,!0)}},max_ttl:{mode:e[`max-ttl-mode`],ttl_secs:e[`max-ttl-ttl-secs`]},name:b(e.name,`name`,`text`),networks:a(e.networks,`networks`,!0)}),h=await g(`Updating`,async()=>i.send(kC,{body:u,account_id:s,location_id:e[`location-id`]}));m(h,{successLabel:`Updated`})})},MC={command:`locations`,describe:`Operations for gateway.locations`,builder:e=>e.command(yC).command(SC).command(TC).command(OC).command(jC).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var NC={method:`GET`,path:t=>e`/accounts/${t.account_id}/gateway/logging`};function PC(e){return e.usage(`$0 zero-trust gateway logging get
933
933
 
934
934
  Retrieve the current logging settings for the Zero Trust account.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const FC={command:`get`,describe:`Get logging settings for the Zero Trust account`,builder:PC,handler:async e=>h({command:`zero-trust gateway logging get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let e=await l();f({command:`cf zero-trust gateway logging get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}/gateway/logging`,pathParams:{},bodyKind:`none`});return}let t=await n(e),r=e.local?p:await d();e.accountId=r;let i=await g(`Loading`,async()=>t.send(NC,{account_id:r}));m(i,{successLabel:`Loaded`})})};var IC={method:`PUT`,path:t=>e`/accounts/${t.account_id}/gateway/logging`,body:`json`};function LC(e){return e.usage(`$0 zero-trust gateway logging update
935
935