cf 1.0.0-beta.15 → 1.0.0-beta.16

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 (237) hide show
  1. package/dist/_meta/commands.json +3797 -3220
  2. package/dist/_meta/hand-written-commands.json +2 -2
  3. package/dist/_meta/schemas.json +4768 -4250
  4. package/dist/{abuse-reports-CnQBtN1G.mjs → abuse-reports-17K-TRhO.mjs} +1 -1
  5. package/dist/{access-BzmXSwzj.mjs → access-BwB7sg1D.mjs} +1 -1
  6. package/dist/{account-tags-2qPWbW17.mjs → account-tags-povXTDAu.mjs} +1 -1
  7. package/dist/{accounts-B0Byg-AV.mjs → accounts-BnIGu_ac.mjs} +39 -39
  8. package/dist/{acm-DgAu0cnk.mjs → acm-CQRcu_zw.mjs} +3 -3
  9. package/dist/{addressing-J1oa0ML2.mjs → addressing-Qcm9jd3C.mjs} +14 -14
  10. package/dist/{agent-memory-4KGou-tm.mjs → agent-memory-B3xN9I6-.mjs} +1 -1
  11. package/dist/{ai-WY7wVQfA.mjs → ai-BRKOCckA.mjs} +1 -1
  12. package/dist/{ai-audit-D38HaEoZ.mjs → ai-audit-Cd9Rc2Fc.mjs} +1 -1
  13. package/dist/{ai-gateway-C0gIipT8.mjs → ai-gateway-BWU5064V.mjs} +6 -6
  14. package/dist/{ai-search-ClwnPU-9.mjs → ai-search-CJ3b8eot.mjs} +23 -23
  15. package/dist/{ai-security-BIsvFPYV.mjs → ai-security-Dn0Ee6QS.mjs} +1 -1
  16. package/dist/{alerting-MHhv28oO.mjs → alerting-BXTiMfXo.mjs} +1 -1
  17. package/dist/{analytics-BfBz7bqB.mjs → analytics-Jyd04TRW.mjs} +1 -1
  18. package/dist/{analytics_engine-CXVdBF1n.mjs → analytics-engine-CzrNfUeh.mjs} +2 -2
  19. package/dist/{api-security-DUCfcdC1.mjs → api-security-DRBHZaf_.mjs} +2 -2
  20. package/dist/{argo-CUlzI4v3.mjs → argo-DiQt0pSb.mjs} +1 -1
  21. package/dist/{artifacts-BLfWGzBg.mjs → artifacts-eBZ4YN53.mjs} +1 -1
  22. package/dist/audit-logs-Bb4HTZay.mjs +4 -0
  23. package/dist/{auth-CGRemu5W.mjs → auth-C6My1gI6.mjs} +1 -1
  24. package/dist/auth-OFqV2M4q.mjs +2 -0
  25. package/dist/{auth-C6u9qIGO.mjs → auth-eVI_UEt8.mjs} +1 -1
  26. package/dist/{auth-token-DkkYg4DP.mjs → auth-token-Cfj2yehs.mjs} +1 -1
  27. package/dist/{basin-catalog-CrKRYJ0b.mjs → basin-catalog-Cwk1RSMX.mjs} +1 -1
  28. package/dist/{billing-NxehgXrR.mjs → billing-CfV8oi6A.mjs} +7 -7
  29. package/dist/{bot-management-C993iQKL.mjs → bot-management-CH4_Kewx.mjs} +1 -1
  30. package/dist/{botnet-feed-CZ4vYk5y.mjs → botnet-feed-Cg_Wp8ei.mjs} +1 -1
  31. package/dist/{brand-protection-ADVgIi0l.mjs → brand-protection-Cp2ckWou.mjs} +1 -1
  32. package/dist/browser-run-CfQ30dB6.mjs +42 -0
  33. package/dist/{builds-DqtiTH7p.mjs → builds-B2RBgVL9.mjs} +1 -1
  34. package/dist/{cache-hX5QxmI0.mjs → cache-yvrYPvRI.mjs} +1 -1
  35. package/dist/{certificate-authorities-BOcybjc1.mjs → certificate-authorities-BdMRaOnD.mjs} +1 -1
  36. package/dist/{cli-R8h3OKZI.mjs → cli-CsnoQloF.mjs} +1 -1
  37. package/dist/{client-certificates-Bez_ArKE.mjs → client-certificates-CuWGvZSr.mjs} +1 -1
  38. package/dist/{client-side-security-CSmA50Bv.mjs → client-side-security-D50iZjd_.mjs} +1 -1
  39. package/dist/{cloud-connector-0Wivqi7S.mjs → cloud-connector-wvSGdxWT.mjs} +1 -1
  40. package/dist/{cloudforce-one-J-rU6k1U.mjs → cloudforce-one-j6vlmaMB.mjs} +21 -21
  41. package/dist/{command-0BOb1pgV.mjs → command-74P4_CTx.mjs} +1 -1
  42. package/dist/{command-BIsI-mMX.mjs → command-BDpm-U8z.mjs} +1 -1
  43. package/dist/{command-BG-kLOnS.mjs → command-BSbhJRmu.mjs} +1 -1
  44. package/dist/{command-DIs-Nqtl.mjs → command-BbO3sBQ2.mjs} +1 -1
  45. package/dist/{command-BCJN-ZM2.mjs → command-CM_f48gs.mjs} +1 -1
  46. package/dist/{command-BWQIKu6I.mjs → command-CmUtmu5j.mjs} +1 -1
  47. package/dist/{command-BKDbbA-L.mjs → command-DFRsim8q.mjs} +1 -1
  48. package/dist/{command-DPn5ANHs.mjs → command-DQojhTEQ.mjs} +1 -1
  49. package/dist/{command-CKW6UhTh.mjs → command-DiqRELHF.mjs} +1 -1
  50. package/dist/{command-Bdy69UFU.mjs → command-Dr4PEvB2.mjs} +1 -1
  51. package/dist/{completions-CpNGTlUX.mjs → completions-oD1EcuHk.mjs} +1 -1
  52. package/dist/{connector-interrupts-CH-DaLuo.mjs → connector-interrupts-DP4rbOe8.mjs} +1 -1
  53. package/dist/{connector-telemetry-events-X3Fod9nl.mjs → connector-telemetry-events-BQGBQwzR.mjs} +1 -1
  54. package/dist/{connector-telemetry-snapshots-D-WR4npQ.mjs → connector-telemetry-snapshots-DBO0Mdcj.mjs} +1 -1
  55. package/dist/{connectors-CORKD31m.mjs → connectors-BSVr3Kz1.mjs} +1 -1
  56. package/dist/{containers-Di3_Vopq.mjs → containers-BOpKpipz.mjs} +1 -1
  57. package/dist/{containers-BboUbx3k.mjs → containers-BTqAeVV2.mjs} +5 -5
  58. package/dist/{content-scan-DXGREAXa.mjs → content-scan-B9Keyxe-.mjs} +1 -1
  59. package/dist/{context-A6T-NKPI.mjs → context-B-vEsyrK.mjs} +1 -1
  60. package/dist/{cps-1BoOLtTq.mjs → cps-VRP794c5.mjs} +1 -1
  61. package/dist/csam-scanner-C1jOgXVu.mjs +10 -0
  62. package/dist/{ct-alerting-DlH4ILQo.mjs → ct-alerting-Y9vfa6Fo.mjs} +1 -1
  63. package/dist/{custom-certificates-zJqJZ2Th.mjs → custom-certificates-CojTEC0E.mjs} +4 -4
  64. package/dist/{custom-csrs-DoLIGqYL.mjs → custom-csrs-DM5X-K6H.mjs} +3 -3
  65. package/dist/{custom-hostnames-YfV-aoAK.mjs → custom-hostnames-BBjqaiFF.mjs} +6 -6
  66. package/dist/{custom-nameservers-BV43gmgt.mjs → custom-nameservers-C0NDMLPJ.mjs} +1 -1
  67. package/dist/{custom-pages-CoOU1Cdx.mjs → custom-pages-M4RUxcn6.mjs} +6 -6
  68. package/dist/{d1-DujBmzLa.mjs → d1-hin5PmxW.mjs} +1 -1
  69. package/dist/{dcv-delegation-CPLsVYOl.mjs → dcv-delegation-KOO8syyQ.mjs} +1 -1
  70. package/dist/{deploy-wNujfGUJ.mjs → deploy-Bo7FtE44.mjs} +1 -1
  71. package/dist/{deploy-context-tEhwEXnA.mjs → deploy-context-ClvBD87y.mjs} +1 -1
  72. package/dist/{diagnostics-B3TYPVRi.mjs → diagnostics-LZuMrGjK.mjs} +1 -1
  73. package/dist/{dls-CWm1HRF0.mjs → dls-Bq8k3iy-.mjs} +7 -7
  74. package/dist/{dns-firewall-BooBP9ap.mjs → dns-firewall-zavP5Qxj.mjs} +1 -1
  75. package/dist/{dns-CjAFU7Z9.mjs → dns-ry5E2Bsa.mjs} +5 -5
  76. package/dist/{docs-C5XB7HdG.mjs → docs-B08YtL0U.mjs} +1 -1
  77. package/dist/{durable-objects-CSrMQDCE.mjs → durable-objects-B9fo41B1.mjs} +1 -1
  78. package/dist/{email-auth-Bp1Mui-n.mjs → email-auth-D9LGjFlh.mjs} +1 -1
  79. package/dist/{email-routing-CVF6SwQt.mjs → email-routing-6iDnNPhY.mjs} +4 -4
  80. package/dist/{email-security-mYZtazae.mjs → email-security-ty4ufRnJ.mjs} +1 -1
  81. package/dist/{email-sending-BqaKU_Xu.mjs → email-sending-d7LO_Cz_.mjs} +14 -14
  82. package/dist/field-extractors-DkgQ7PSw.mjs +9 -0
  83. package/dist/{firewall-DgTDsYOt.mjs → firewall-Q88YyEwD.mjs} +11 -11
  84. package/dist/{flagship-Db3PxxyZ.mjs → flagship-CzI8zhd6.mjs} +1 -1
  85. package/dist/{fraud-BEOQczy8.mjs → fraud-CvFXTR0w.mjs} +1 -1
  86. package/dist/{google-tag-gateway-DjLQ9wo0.mjs → google-tag-gateway-Y2zbyey8.mjs} +1 -1
  87. package/dist/{healthchecks-C3ScnKss.mjs → healthchecks-4Hz-6xYi.mjs} +7 -7
  88. package/dist/{hostnames-DU0k-xO9.mjs → hostnames-B3k7fIUL.mjs} +1 -1
  89. package/dist/{hyperdrive-IpCCLCRd.mjs → hyperdrive-BWGYz95H.mjs} +3 -3
  90. package/dist/{iam-96CYM8Vw.mjs → iam-AXco_qmt.mjs} +1 -1
  91. package/dist/{images-AB9EgZgT.mjs → images-BzYh8y0u.mjs} +1 -1
  92. package/dist/index.mjs +1 -1
  93. package/dist/{init-D2nPoW4f.mjs → init-DlenHBtS.mjs} +1 -1
  94. package/dist/{intel-BKb4RLvS.mjs → intel-BBi3i_GU.mjs} +1 -1
  95. package/dist/{ips-z9APCV_b.mjs → ips-CWG2b7AM.mjs} +1 -1
  96. package/dist/{k2-Bv-HiJ29.mjs → k2-DXdMe3Cb.mjs} +1 -1
  97. package/dist/{keyless-certificates-ChgSGHq4.mjs → keyless-certificates-B4ta_OGS.mjs} +4 -4
  98. package/dist/{keys-BhngDsDa.mjs → keys-B9zvFzrf.mjs} +1 -1
  99. package/dist/{kv-CB5MQVGP.mjs → kv-FUd7UdDu.mjs} +3 -3
  100. package/dist/{lazy-command-CaZ1kdlW.mjs → lazy-command-BC8rIlHu.mjs} +1 -1
  101. package/dist/{leaked-credential-checks-Bsi2WpSU.mjs → leaked-credential-checks-BufVA9vL.mjs} +3 -3
  102. package/dist/{load-balancers-0gXZNCeI.mjs → load-balancers-CWd9mSWM.mjs} +40 -40
  103. package/dist/{login-CiQGR8ha.mjs → login-BJr2PBaJ.mjs} +1 -1
  104. package/dist/{login-Ik98G4K6.mjs → login-DVbXZ_Tv.mjs} +1 -1
  105. package/dist/{logo-matches-DmoF5Otu.mjs → logo-matches-BluaPvMa.mjs} +1 -1
  106. package/dist/{logos-BL6ohIMH.mjs → logos-CXtmYWEJ.mjs} +1 -1
  107. package/dist/{logpush-UVopW68t.mjs → logpush-DCYgrqz0.mjs} +6 -6
  108. package/dist/{logs-BVfxiEiM.mjs → logs-as60IP29.mjs} +1 -1
  109. package/dist/{magic-cloud-networking-B5S3aM6f.mjs → magic-cloud-networking-0RsHugUF.mjs} +1 -1
  110. package/dist/{magic-network-monitoring-CDSJPP47.mjs → magic-network-monitoring-CPqvZdcb.mjs} +1 -1
  111. package/dist/{magic-transit-TcDTKM43.mjs → magic-transit-ClPyGzOE.mjs} +1 -1
  112. package/dist/{managed-defense-C88HL0pg.mjs → managed-defense-P4_QWSbK.mjs} +5 -5
  113. package/dist/{managed-transforms-Ja41Tahl.mjs → managed-transforms-CUwQXMij.mjs} +1 -1
  114. package/dist/{matches-BL_Y-9Yq.mjs → matches-BjckDBW1.mjs} +1 -1
  115. package/dist/{mcp-BWp5Q09R.mjs → mcp-C2EG2c7L.mjs} +1 -1
  116. package/dist/{mesh-lFPLRWhV.mjs → mesh-CpMZA7Xt.mjs} +1 -1
  117. package/dist/{monetization-BIc4Bwo2.mjs → monetization-DypuCZmU.mjs} +1 -1
  118. package/dist/{mtls-certificates-CVBw-Jli.mjs → mtls-certificates-B5AWTU6u.mjs} +1 -1
  119. package/dist/{network-Wig0qbaC.mjs → network-DQ5Ridgy.mjs} +1 -1
  120. package/dist/{network-interconnects-C16z1HuQ.mjs → network-interconnects-ifU4JhGE.mjs} +1 -1
  121. package/dist/{o11y-Bhy4qDRm.mjs → o11y-CzssfRHt.mjs} +2 -2
  122. package/dist/{oauth-oWaW7ICv.mjs → oauth-BDdhqasa.mjs} +1 -1
  123. package/dist/{oauth-CfEedDZi.mjs → oauth-BNTiErBG.mjs} +1 -1
  124. package/dist/{oauth-clients-eXjmK5yf.mjs → oauth-clients-gknNcBdV.mjs} +1 -1
  125. package/dist/{oauth-scopes-DZWn50EA.mjs → oauth-scopes-BJeSanuF.mjs} +1 -1
  126. package/dist/{organization-QdAQTrKa.mjs → organization-CXAM41sd.mjs} +3 -3
  127. package/dist/{organizations-CgAQYdK5.mjs → organizations-kfFFW4uO.mjs} +1 -1
  128. package/dist/{origin-ca-certificates-BklXqp8X.mjs → origin-ca-certificates-DwhYV3m_.mjs} +1 -1
  129. package/dist/{origin-post-quantum-encryption-Dg16ueT4.mjs → origin-post-quantum-encryption-DfrnptJ1.mjs} +1 -1
  130. package/dist/{origin-tls-client-auth-d8bDU5zU.mjs → origin-tls-client-auth-COSxTc2q.mjs} +6 -6
  131. package/dist/{page-rules-CgMkC6YR.mjs → page-rules-ByrDMDBZ.mjs} +5 -5
  132. package/dist/{pages-CkBtOOf8.mjs → pages-DuGcBC6k.mjs} +9 -9
  133. package/dist/{pay-per-crawl-CnGXOWyz.mjs → pay-per-crawl-B3_Gn9Cj.mjs} +1 -1
  134. package/dist/{pay-per-use-HbfxpATr.mjs → pay-per-use-49EXt75f.mjs} +1 -1
  135. package/dist/{pipelines-CnO9CCs0.mjs → pipelines-Bvgh1BQZ.mjs} +1 -1
  136. package/dist/{precursor-Bc55XJdQ.mjs → precursor-VobQf--m.mjs} +1 -1
  137. package/dist/{previews-C7vZrajd.mjs → previews-DkwFHNRx.mjs} +1 -1
  138. package/dist/{progress-D5po7ScB.mjs → progress-R-1tIuep.mjs} +1 -1
  139. package/dist/{prompt-BAJpE3jV.mjs → prompt-dgLm0iFJ.mjs} +1 -1
  140. package/dist/{queries-BJAH4B74.mjs → queries-EbIadtC5.mjs} +1 -1
  141. package/dist/{queues-D4G8vvwi.mjs → queues-C4GZ-O3f.mjs} +4 -4
  142. package/dist/{r2-CJ8rD6Jb.mjs → r2-DEuFfWBR.mjs} +4 -4
  143. package/dist/{radar-DgaxOdcd.mjs → radar-CDOERVcR.mjs} +1 -1
  144. package/dist/{raw-fetch-yY-wX5Xx.mjs → raw-fetch-BapeoreV.mjs} +1 -1
  145. package/dist/{realtime-DU09m7L7.mjs → realtime-D_A9Qgly.mjs} +6 -6
  146. package/dist/{registrar-Cj7OfvGs.mjs → registrar-X1YLlnmg.mjs} +1 -1
  147. package/dist/{registrar-sandbox-CA0Mua-j.mjs → registrar-sandbox-BF3cYO3n.mjs} +1 -1
  148. package/dist/reporting-BWm9jIF8.mjs +14 -0
  149. package/dist/{request-headers-D_eQn93b.mjs → request-headers-BRxv6NkA.mjs} +1 -1
  150. package/dist/{request-tracers-VBD4R3s3.mjs → request-tracers-CHWpiejG.mjs} +1 -1
  151. package/dist/{resource-sharing-BtUF3psS.mjs → resource-sharing-C186jZv0.mjs} +1 -1
  152. package/dist/{resource-tagging--90INP8_.mjs → resource-tagging-BTagOZli.mjs} +1 -1
  153. package/dist/{rules-CcwPngVo.mjs → rules-DYnGIU_0.mjs} +10 -10
  154. package/dist/{rulesets-CfdruY82.mjs → rulesets-BcNrbVcq.mjs} +15 -15
  155. package/dist/{rum-RLkdfSL7.mjs → rum-BDyRecfp.mjs} +1 -1
  156. package/dist/{run-DASYqJsY.mjs → run-BvDCuZ8q.mjs} +1 -1
  157. package/dist/run-roYb_Odh.mjs +2 -0
  158. package/dist/{schema-flags-CShtn7ya.mjs → schema-flags-DcKjAxI1.mjs} +1 -1
  159. package/dist/{scim-BZYsTPIL.mjs → scim-zn-CNCsc.mjs} +1 -1
  160. package/dist/{secrets-store-C_-FkSH_.mjs → secrets-store-CFhyQUV6.mjs} +1 -1
  161. package/dist/{security-insights-BVBEaZmD.mjs → security-insights-D8XgtCed.mjs} +1 -1
  162. package/dist/{security-txt--IoHrHee.mjs → security-txt-CCM-Vro0.mjs} +1 -1
  163. package/dist/{shared-zNQNv1im.mjs → shared-ouAF7o4S.mjs} +1 -1
  164. package/dist/{smart-shield-CByC4_60.mjs → smart-shield-DwW7N92r.mjs} +5 -5
  165. package/dist/{snippets-DB-jiZAV.mjs → snippets-B2jBY0m_.mjs} +1 -1
  166. package/dist/{spectrum-Bs2g1BmK.mjs → spectrum-Cf_4cGE8.mjs} +9 -9
  167. package/dist/{speed-Bq4evEnJ.mjs → speed-DoXdyIYK.mjs} +1 -1
  168. package/dist/{sql-XGci7hZC.mjs → sql-Bze4h80q.mjs} +1 -1
  169. package/dist/{src-GiuwAT55.mjs → src-BguQDHjS.mjs} +7 -7
  170. package/dist/{ssl-KJTLW1NR.mjs → ssl-u_0gUhPA.mjs} +5 -5
  171. package/dist/{stream-BotgYspF.mjs → stream-BcReYIHJ.mjs} +8 -8
  172. package/dist/{submit-C5VytaHP.mjs → submit-ldFVNfNC.mjs} +1 -1
  173. package/dist/{tags-3Hq-B9qp.mjs → tags-D_Hc_A-r.mjs} +1 -1
  174. package/dist/{telemetry-3FJOXl_C.mjs → telemetry-Cojgz4Sv.mjs} +1 -1
  175. package/dist/telemetry-Ct_2AaO4.mjs +2 -0
  176. package/dist/{tenant-BgX5onPc.mjs → tenant-AZ0EAsmT.mjs} +1 -1
  177. package/dist/{tenant-custom-nameservers-BVG8v1Xo.mjs → tenant-custom-nameservers-aozjaasc.mjs} +2 -2
  178. package/dist/{tunnels-CThOI3qH.mjs → tunnels-CXez5LPB.mjs} +3 -3
  179. package/dist/{turnstile-BgZaUx-g.mjs → turnstile-B2NQ8Nsk.mjs} +1 -1
  180. package/dist/{update-check-jb89ih_g.mjs → update-check-BlyKN8m0.mjs} +1 -1
  181. package/dist/update-check-BnGDxswi.mjs +2 -0
  182. package/dist/update-check-worker.mjs +1 -1
  183. package/dist/{url-info-DQERN0Xq.mjs → url-info-D_UqGiWD.mjs} +1 -1
  184. package/dist/{url-normalization-Cb1hofqv.mjs → url-normalization-CF1YHpIN.mjs} +1 -1
  185. package/dist/{url-scanner-gHgx1bW7.mjs → url-scanner-ChF3GO2U.mjs} +1 -1
  186. package/dist/{user-CdKzIuSi.mjs → user-BfWRsdJh.mjs} +58 -58
  187. package/dist/{values-EwA8Sx0w.mjs → values-CLfxkAUJ.mjs} +1 -1
  188. package/dist/{vectorize-DejgIJIv.mjs → vectorize-CRYbWKg5.mjs} +1 -1
  189. package/dist/version-CVlh2Zaq.mjs +2 -0
  190. package/dist/{waiting-rooms-BNR1HvAP.mjs → waiting-rooms-Crp7MVd9.mjs} +18 -18
  191. package/dist/{web-assets-iglnzkTV.mjs → web-assets-CgyrPnT-.mjs} +1 -1
  192. package/dist/{web3-JBUU6IVt.mjs → web3-Cd0Yd0eQ.mjs} +11 -11
  193. package/dist/{workers-CDp4kLTJ.mjs → workers-CTwJpTfJ.mjs} +2 -2
  194. package/dist/{workers-builds-CSb9Dglt.mjs → workers-builds-f2nVw7EZ.mjs} +1 -1
  195. package/dist/{workers-for-platforms-D4srNZvt.mjs → workers-for-platforms-DjeKp2uy.mjs} +1 -1
  196. package/dist/{workers-vpc-LPC8TadH.mjs → workers-vpc-B_L3TEg2.mjs} +1 -1
  197. package/dist/{workflows-DN_VqWJC.mjs → workflows-CBPGf65x.mjs} +1 -1
  198. package/dist/{zaraz-DDErl5yc.mjs → zaraz-3VDxl0gF.mjs} +1 -1
  199. package/dist/{zero-trust-M88XX3uD.mjs → zero-trust-B9xY8zcn.mjs} +27 -27
  200. package/dist/{zone-BsGvedmN.mjs → zone-CmwVqTI2.mjs} +1 -1
  201. package/dist/{zones-l_sRKrVl.mjs → zones-Bf0VVpMf.mjs} +3 -3
  202. package/package.json +3 -2
  203. package/dist/alerts-BSON-vFh.mjs +0 -2
  204. package/dist/audit-logs-CsfIm2QS.mjs +0 -4
  205. package/dist/auth-8Sm4uLGM.mjs +0 -2
  206. package/dist/autorag-kNrLiqDX.mjs +0 -2
  207. package/dist/brands-bBJgbbOH.mjs +0 -2
  208. package/dist/browser-extension-C1_fcw7h.mjs +0 -2
  209. package/dist/browser-run-CEptKZYl.mjs +0 -42
  210. package/dist/clear-BW9vLgI3.mjs +0 -2
  211. package/dist/connector-telemetry-events-latest-BQdOvbWh.mjs +0 -2
  212. package/dist/connector-telemetry-snapshots-latest-CtdN_dGu.mjs +0 -2
  213. package/dist/csamScanner-CHfbfeup.mjs +0 -10
  214. package/dist/domain-info-BkcBcyfF.mjs +0 -2
  215. package/dist/fieldExtractors-CAGZVmYg.mjs +0 -9
  216. package/dist/health-CTaCeVyC.mjs +0 -2
  217. package/dist/internal-BYS7hO8c.mjs +0 -2
  218. package/dist/live-BJE_YWE1.mjs +0 -2
  219. package/dist/r2-data-catalog-BRo-Rx2I.mjs +0 -2
  220. package/dist/rate-limit-analytics-BiRyU0Xd.mjs +0 -2
  221. package/dist/rate-limits-Cr2zpncO.mjs +0 -2
  222. package/dist/ready-B3pLxnjc.mjs +0 -2
  223. package/dist/recent-submissions-JLOvuZq-.mjs +0 -2
  224. package/dist/refute-Dp3VodMn.mjs +0 -2
  225. package/dist/reporting-3kDVF5c8.mjs +0 -14
  226. package/dist/run-CUNhH5CQ.mjs +0 -2
  227. package/dist/scan-logo-3Zr6CDJB.mjs +0 -2
  228. package/dist/scan-page-CxeudOzj.mjs +0 -2
  229. package/dist/search-B_P5ZTQj.mjs +0 -2
  230. package/dist/signed-url-D5RwvrQq.mjs +0 -2
  231. package/dist/submission-info-_t78q2OE.mjs +0 -2
  232. package/dist/telemetry-BhKfwxyh.mjs +0 -2
  233. package/dist/total-queries-CPrKEciQ.mjs +0 -2
  234. package/dist/tracked-domains-CTRItgFT.mjs +0 -2
  235. package/dist/update-check-Yy7Ivq2V.mjs +0 -2
  236. package/dist/verify-5KcvRk-q.mjs +0 -2
  237. package/dist/version-B6MnUIqV.mjs +0 -2
@@ -1,12 +1,12 @@
1
1
  #!/usr/bin/env node
2
- import"./api-eMuS5GI1.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{t}from"./local-Dil4fTWX.mjs";import{i as n,n as r}from"./auth-C6u9qIGO.mjs";import{a as i,i as a,t as o}from"./context-A6T-NKPI.mjs";import{t as s}from"./output-Co4xdFf6.mjs";import{t as c}from"./dry-run-C2KjGX10.mjs";import{t as l}from"./progress-D5po7ScB.mjs";import{t as u}from"./run-DASYqJsY.mjs";import"./telemetry-BhKfwxyh.mjs";import{i as d,n as f,r as p,t as m}from"./body-parser-DkHKPkJ7.mjs";import{n as h,t as g}from"./input-validation-D7z60HJH.mjs";import{a as _,i as v,n as y}from"./prompt-BAJpE3jV.mjs";import{n as ee,t as te}from"./raw-fetch-yY-wX5Xx.mjs";var ne={method:`POST`,path:t=>e`/${t.account_or_zone}/${t.account_or_zone_id}/access/apps`,body:`json`};function re(e){return e.usage(`$0 zero-trust access applications create
2
+ import"./api-eMuS5GI1.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{t}from"./local-Dil4fTWX.mjs";import{i as n,n as r}from"./auth-eVI_UEt8.mjs";import{a as i,i as a,t as o}from"./context-B-vEsyrK.mjs";import{t as s}from"./output-Co4xdFf6.mjs";import{t as c}from"./dry-run-C2KjGX10.mjs";import{t as l}from"./progress-R-1tIuep.mjs";import{t as u}from"./run-BvDCuZ8q.mjs";import"./telemetry-Ct_2AaO4.mjs";import{i as d,n as f,r as p,t as m}from"./body-parser-DkHKPkJ7.mjs";import{n as h,t as g}from"./input-validation-D7z60HJH.mjs";import{a as _,i as v,n as y}from"./prompt-dgLm0iFJ.mjs";import{n as ee,t as te}from"./raw-fetch-BapeoreV.mjs";var ne={method:`POST`,path:t=>e`/${t.account_or_zone}/${t.account_or_zone_id}/access/apps`,body:`json`};function re(e){return e.usage(`$0 zero-trust access applications create
3
3
 
4
4
  Adds a new application to Access.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const ie={command:`create`,describe:`Add an Access application`,builder:re,handler:async e=>u({command:`zero-trust access applications create`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=e.zone===void 0?await i():void 0,n=e.zone===void 0?`accounts`:`zones`,r=e.zone??t??`<account-id>`;c({command:`cf zero-trust access applications create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/${n}/${r}/access/apps`,pathParams:{"account-or-zone":String(n),"account-or-zone-id":String(r)},bodyKind:`json`,body:e.body===void 0?void 0:f(e.body)});return}let n=await r(e),u=e.zone===void 0?`accounts`:`zones`,d=u===`zones`?await a({zone:e.zone},n,{quiet:e.quiet}):e.local?t:await o();if(u===`zones`?e.zoneId=d:e.accountId=d,e.body){let t=f(e.body),r=await l(`Creating`,async()=>n.send(ne,{body:t,account_or_zone:u,account_or_zone_id:d}));s(r,{successLabel:`Created`});return}if(e.body===void 0)throw Error(`--body is required for this command. Pass --body '<json>' or --body @path/to/file.json.`)})};var ae={method:`DELETE`,path:t=>e`/${t.account_or_zone}/${t.account_or_zone_id}/access/apps/${t.app_id}`};function oe(e){return e.usage(`$0 zero-trust access applications delete <app-id>
5
5
 
6
- Deletes an application from Access.`).positional(`app-id`,{type:`string`,description:`App 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 se={command:`delete <app-id>`,describe:`Delete an Access application`,builder:oe,handler:async e=>u({command:`zero-trust access applications delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{if(e.dryRun){let t=e.zone===void 0?await i():void 0,n=e.zone===void 0?`accounts`:`zones`,r=e.zone??t??`<account-id>`;c({command:`cf zero-trust access applications delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/${n}/${r}/access/apps/${e[`app-id`]==null?`<app-id>`:encodeURIComponent(String(e[`app-id`]))}`,pathParams:{"account-or-zone":String(n),"app-id":String(e[`app-id`]??``),"account-or-zone-id":String(r)},bodyKind:`none`});return}let n=await r(e),u=e.zone===void 0?`accounts`:`zones`,d=u===`zones`?await a({zone:e.zone},n,{quiet:e.quiet}):e.local?t:await o();if(u===`zones`?e.zoneId=d:e.accountId=d,!await y({force:!!e.force})){process.stderr.write(`Aborted.
6
+ Deletes an application from Access.`).positional(`app-id`,{type:`string`,description:`App 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 se={command:`delete <app-id>`,describe:`Delete an Access application`,builder:oe,handler:async e=>u({command:`zero-trust access applications delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{if(e.dryRun){let t=e.zone===void 0?await i():void 0,n=e.zone===void 0?`accounts`:`zones`,r=e.zone??t??`<account-id>`;c({command:`cf zero-trust access applications delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/${n}/${r}/access/apps/${e[`app-id`]==null?`<app-id>`:encodeURIComponent(String(e[`app-id`]))}`,pathParams:{"account-or-zone":String(n),"account-or-zone-id":String(r),"app-id":String(e[`app-id`]??``)},bodyKind:`none`});return}let n=await r(e),u=e.zone===void 0?`accounts`:`zones`,d=u===`zones`?await a({zone:e.zone},n,{quiet:e.quiet}):e.local?t:await o();if(u===`zones`?e.zoneId=d:e.accountId=d,!await y({force:!!e.force})){process.stderr.write(`Aborted.
7
7
  `);return}let f=await l(`Deleting`,async()=>n.send(ae,{account_or_zone:u,account_or_zone_id:d,app_id:e[`app-id`]}));s(f,{successLabel:`Deleted`})})};var ce={method:`GET`,path:t=>e`/${t.account_or_zone}/${t.account_or_zone_id}/access/apps/${t.app_id}`};function le(e){return e.usage(`$0 zero-trust access applications get <app-id>
8
8
 
9
- Fetches information about an Access application.`).positional(`app-id`,{type:`string`,description:`App ID`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const ue={command:`get <app-id>`,describe:`Get an Access application`,builder:le,handler:async e=>u({command:`zero-trust access applications get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=e.zone===void 0?await i():void 0,n=e.zone===void 0?`accounts`:`zones`,r=e.zone??t??`<account-id>`;c({command:`cf zero-trust access applications get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/${n}/${r}/access/apps/${e[`app-id`]==null?`<app-id>`:encodeURIComponent(String(e[`app-id`]))}`,pathParams:{"account-or-zone":String(n),"app-id":String(e[`app-id`]??``),"account-or-zone-id":String(r)},bodyKind:`none`});return}let n=await r(e),u=e.zone===void 0?`accounts`:`zones`,d=u===`zones`?await a({zone:e.zone},n,{quiet:e.quiet}):e.local?t:await o();u===`zones`?e.zoneId=d:e.accountId=d;let f=await l(`Loading`,async()=>n.send(ce,{account_or_zone:u,account_or_zone_id:d,app_id:e[`app-id`]}));s(f,{successLabel:`Loaded`})})};var de={method:`GET`,path:t=>e`/${t.account_or_zone}/${t.account_or_zone_id}/access/apps`,query:[`name`,`domain`,`aud`,`target_attributes`,`exact`,`search`,`page`,`per_page`]};function fe(e){return e.usage(`$0 zero-trust access applications list
9
+ Fetches information about an Access application.`).positional(`app-id`,{type:`string`,description:`App ID`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const ue={command:`get <app-id>`,describe:`Get an Access application`,builder:le,handler:async e=>u({command:`zero-trust access applications get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=e.zone===void 0?await i():void 0,n=e.zone===void 0?`accounts`:`zones`,r=e.zone??t??`<account-id>`;c({command:`cf zero-trust access applications get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/${n}/${r}/access/apps/${e[`app-id`]==null?`<app-id>`:encodeURIComponent(String(e[`app-id`]))}`,pathParams:{"account-or-zone":String(n),"account-or-zone-id":String(r),"app-id":String(e[`app-id`]??``)},bodyKind:`none`});return}let n=await r(e),u=e.zone===void 0?`accounts`:`zones`,d=u===`zones`?await a({zone:e.zone},n,{quiet:e.quiet}):e.local?t:await o();u===`zones`?e.zoneId=d:e.accountId=d;let f=await l(`Loading`,async()=>n.send(ce,{account_or_zone:u,account_or_zone_id:d,app_id:e[`app-id`]}));s(f,{successLabel:`Loaded`})})};var de={method:`GET`,path:t=>e`/${t.account_or_zone}/${t.account_or_zone_id}/access/apps`,query:[`name`,`domain`,`aud`,`target_attributes`,`exact`,`search`,`page`,`per_page`]};function fe(e){return e.usage(`$0 zero-trust access applications list
10
10
 
11
11
  Lists all Access applications in an account or zone.`).option(`name`,{type:`string`,description:`The name of the app.`}).option(`domain`,{type:`string`,description:`The domain of the app.`}).option(`aud`,{type:`string`,description:`The aud of the app.`}).option(`target-attributes`,{type:`string`,description:`Target Criteria attributes in key=value format.`}).option(`exact`,{type:`boolean`,description:`True for only exact string matches against passed name/domain query parameters.`}).option(`search`,{type:`string`,description:`Search for apps by other listed query parameters.`}).option(`page`,{type:`number`,description:`Page number of results.`}).option(`per-page`,{type:`number`,description:`Number of results per page.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const pe={command:`list`,describe:`List Access applications`,builder:fe,handler:async e=>u({command:`zero-trust access applications list`,classification:{safeFlags:[`exact`,`dry-run`]}},e,async()=>{let n={name:e.name,domain:e.domain,aud:e.aud,target_attributes:e[`target-attributes`],exact:e.exact,search:e.search,page:e.page,per_page:e[`per-page`]};if(e.dryRun){let t=e.zone===void 0?await i():void 0,r=e.zone===void 0?`accounts`:`zones`,a=e.zone??t??`<account-id>`;c({command:`cf zero-trust access applications list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/${r}/${a}/access/apps`,pathParams:{"account-or-zone":String(r),"account-or-zone-id":String(a)},query:n,bodyKind:`none`});return}let u=await r(e),d=e.zone===void 0?`accounts`:`zones`,f=d===`zones`?await a({zone:e.zone},u,{quiet:e.quiet}):e.local?t:await o();d===`zones`?e.zoneId=f:e.accountId=f;let p=await l(`Loading`,async()=>u.send(de,{account_or_zone:d,account_or_zone_id:f,...n}));s(p,{successLabel:`Loaded`})})};var me={method:`PUT`,path:t=>e`/accounts/${t.account_id}/access/apps/${t.app_id}/policies/${t.policy_id}/make_reusable`};function he(e){return e.usage(`$0 zero-trust access applications policies make-reusable <policy-id>
12
12
 
@@ -18,23 +18,23 @@ Fetches the current status of a given Access policy test.`).positional(`policy-t
18
18
 
19
19
  Fetches a single page of user results from an Access policy test.`).option(`policy-test-id`,{type:`string`,description:`The UUID of the policy test.`,demandOption:!0}).option(`page`,{type:`number`,description:`Page number of results.`}).option(`per-page`,{type:`number`,description:`Per page`}).option(`status`,{type:`string`,description:`Filter users by their policy evaluation status.`,choices:[`success`,`fail`,`error`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const Ee={command:`list`,describe:`Get an Access policy test users page`,builder:Te,handler:async e=>u({command:`zero-trust access applications policy-tests users list`,classification:{safeFlags:[`status`,`dry-run`]}},e,async()=>{let n={page:e.page,per_page:e[`per-page`],status:e.status};if(e.dryRun){let t=await i();c({command:`cf zero-trust access applications policy-tests users list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/access/policy-tests/${e[`policy-test-id`]==null?`<policy-test-id>`:encodeURIComponent(String(e[`policy-test-id`]))}/users`,pathParams:{"policy-test-id":String(e[`policy-test-id`]??``)},query:n,bodyKind:`none`});return}let a=await r(e),u=e.local?t:await o();e.accountId=u;let d=await l(`Loading`,async()=>a.send(we,{account_id:u,policy_test_id:e[`policy-test-id`],...n}));s(d,{successLabel:`Loaded`})})},De={command:`users`,describe:`Operations for access.applications.policy-tests.users`,builder:e=>e.command(Ee).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},Oe={command:`policy-tests`,describe:`Operations for access.applications.policy-tests`,builder:e=>e.command(be).command(Ce).command(De).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var ke={method:`POST`,path:t=>e`/${t.account_or_zone}/${t.account_or_zone_id}/access/apps/${t.app_id}/revoke_tokens`};function Ae(e){return e.usage(`$0 zero-trust access applications revoke-tokens <app-id>
20
20
 
21
- Revokes all tokens issued for an application.`).positional(`app-id`,{type:`string`,description:`App ID`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`force`,{type:`boolean`,alias:`f`,description:`Skip confirmation (useful in scripts and CI)`,default:!1})}const je={command:`revoke-tokens <app-id>`,describe:`Revoke application tokens`,builder:Ae,handler:async e=>u({command:`zero-trust access applications revoke-tokens`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{if(e.dryRun){let t=e.zone===void 0?await i():void 0,n=e.zone===void 0?`accounts`:`zones`,r=e.zone??t??`<account-id>`;c({command:`cf zero-trust access applications revoke-tokens`,method:`POST`,url:`https://api.cloudflare.com/client/v4/${n}/${r}/access/apps/${e[`app-id`]==null?`<app-id>`:encodeURIComponent(String(e[`app-id`]))}/revoke_tokens`,pathParams:{"account-or-zone":String(n),"app-id":String(e[`app-id`]??``),"account-or-zone-id":String(r)},bodyKind:`none`});return}let n=await r(e),u=e.zone===void 0?`accounts`:`zones`,d=u===`zones`?await a({zone:e.zone},n,{quiet:e.quiet}):e.local?t:await o();if(u===`zones`?e.zoneId=d:e.accountId=d,!await y({force:!!e.force,message:`This operation invalidates every service token for the app.`})){process.stderr.write(`Aborted.
21
+ Revokes all tokens issued for an application.`).positional(`app-id`,{type:`string`,description:`App ID`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`force`,{type:`boolean`,alias:`f`,description:`Skip confirmation (useful in scripts and CI)`,default:!1})}const je={command:`revoke-tokens <app-id>`,describe:`Revoke application tokens`,builder:Ae,handler:async e=>u({command:`zero-trust access applications revoke-tokens`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{if(e.dryRun){let t=e.zone===void 0?await i():void 0,n=e.zone===void 0?`accounts`:`zones`,r=e.zone??t??`<account-id>`;c({command:`cf zero-trust access applications revoke-tokens`,method:`POST`,url:`https://api.cloudflare.com/client/v4/${n}/${r}/access/apps/${e[`app-id`]==null?`<app-id>`:encodeURIComponent(String(e[`app-id`]))}/revoke_tokens`,pathParams:{"account-or-zone":String(n),"account-or-zone-id":String(r),"app-id":String(e[`app-id`]??``)},bodyKind:`none`});return}let n=await r(e),u=e.zone===void 0?`accounts`:`zones`,d=u===`zones`?await a({zone:e.zone},n,{quiet:e.quiet}):e.local?t:await o();if(u===`zones`?e.zoneId=d:e.accountId=d,!await y({force:!!e.force,message:`This operation invalidates every service token for the app.`})){process.stderr.write(`Aborted.
22
22
  `);return}let f=await l(`Deleting`,async()=>n.send(ke,{account_or_zone:u,account_or_zone_id:d,app_id:e[`app-id`]}));s(f,{successLabel:`Deleted`})})};var Me={method:`PUT`,path:t=>e`/${t.account_or_zone}/${t.account_or_zone_id}/access/apps/${t.app_id}/settings`,body:`json`};function Ne(e){return e.usage(`$0 zero-trust access applications settings update <app-id>
23
23
 
24
- Updates Access application settings.`).positional(`app-id`,{type:`string`,description:`App ID`,demandOption:!0}).option(`allow-iframe`,{type:`boolean`,description:`Enables loading application content in an iFrame.`}).option(`skip-interstitial`,{type:`boolean`,description:`Enables automatic authentication through cloudflared.`}).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 Pe={command:`update <app-id>`,describe:`Update Access application settings`,builder:Ne,handler:async e=>u({command:`zero-trust access applications settings update`,classification:{safeFlags:[`allow-iframe`,`skip-interstitial`,`dry-run`]}},e,async()=>{if(e.dryRun){let t=e.zone===void 0?await i():void 0,n=e.zone===void 0?`accounts`:`zones`,r=e.zone??t??`<account-id>`;c({command:`cf zero-trust access applications settings update`,method:`PUT`,url:`https://api.cloudflare.com/client/v4/${n}/${r}/access/apps/${e[`app-id`]==null?`<app-id>`:encodeURIComponent(String(e[`app-id`]))}/settings`,pathParams:{"account-or-zone":String(n),"app-id":String(e[`app-id`]??``),"account-or-zone-id":String(r)},bodyKind:`json`,body:e.body===void 0?m({allow_iframe:e[`allow-iframe`],skip_interstitial:e[`skip-interstitial`]}):f(e.body)});return}let n=await r(e),u=e.zone===void 0?`accounts`:`zones`,d=u===`zones`?await a({zone:e.zone},n,{quiet:e.quiet}):e.local?t:await o();if(u===`zones`?e.zoneId=d:e.accountId=d,e.body){let t=f(e.body),r=await l(`Updating`,async()=>n.send(Me,{body:t,account_or_zone:u,account_or_zone_id:d,app_id:e[`app-id`]}));s(r,{successLabel:`Updated`});return}let p=m({allow_iframe:e[`allow-iframe`],skip_interstitial:e[`skip-interstitial`]}),h=await l(`Updating`,async()=>n.send(Me,{body:p,account_or_zone:u,account_or_zone_id:d,app_id:e[`app-id`]}));s(h,{successLabel:`Updated`})})},Fe={command:`settings`,describe:`Operations for access.applications.settings`,builder:e=>e.command(Pe).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var Ie={method:`POST`,path:t=>e`/${t.account_or_zone}/${t.account_or_zone_id}/access/apps/${t.app_id}/ca`};function Le(e){return e.usage(`$0 zero-trust access applications short-lived-certificates create <app-id>
24
+ Updates Access application settings.`).positional(`app-id`,{type:`string`,description:`App ID`,demandOption:!0}).option(`allow-iframe`,{type:`boolean`,description:`Enables loading application content in an iFrame.`}).option(`skip-interstitial`,{type:`boolean`,description:`Enables automatic authentication through cloudflared.`}).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 Pe={command:`update <app-id>`,describe:`Update Access application settings`,builder:Ne,handler:async e=>u({command:`zero-trust access applications settings update`,classification:{safeFlags:[`allow-iframe`,`skip-interstitial`,`dry-run`]}},e,async()=>{if(e.dryRun){let t=e.zone===void 0?await i():void 0,n=e.zone===void 0?`accounts`:`zones`,r=e.zone??t??`<account-id>`;c({command:`cf zero-trust access applications settings update`,method:`PUT`,url:`https://api.cloudflare.com/client/v4/${n}/${r}/access/apps/${e[`app-id`]==null?`<app-id>`:encodeURIComponent(String(e[`app-id`]))}/settings`,pathParams:{"account-or-zone":String(n),"account-or-zone-id":String(r),"app-id":String(e[`app-id`]??``)},bodyKind:`json`,body:e.body===void 0?m({allow_iframe:e[`allow-iframe`],skip_interstitial:e[`skip-interstitial`]}):f(e.body)});return}let n=await r(e),u=e.zone===void 0?`accounts`:`zones`,d=u===`zones`?await a({zone:e.zone},n,{quiet:e.quiet}):e.local?t:await o();if(u===`zones`?e.zoneId=d:e.accountId=d,e.body){let t=f(e.body),r=await l(`Updating`,async()=>n.send(Me,{body:t,account_or_zone:u,account_or_zone_id:d,app_id:e[`app-id`]}));s(r,{successLabel:`Updated`});return}let p=m({allow_iframe:e[`allow-iframe`],skip_interstitial:e[`skip-interstitial`]}),h=await l(`Updating`,async()=>n.send(Me,{body:p,account_or_zone:u,account_or_zone_id:d,app_id:e[`app-id`]}));s(h,{successLabel:`Updated`})})},Fe={command:`settings`,describe:`Operations for access.applications.settings`,builder:e=>e.command(Pe).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var Ie={method:`POST`,path:t=>e`/${t.account_or_zone}/${t.account_or_zone_id}/access/apps/${t.app_id}/ca`};function Le(e){return e.usage(`$0 zero-trust access applications short-lived-certificates create <app-id>
25
25
 
26
- Generates a new short-lived certificate CA and public key.`).positional(`app-id`,{type:`string`,description:`UUID.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const Re={command:`create <app-id>`,describe:`Create a short-lived certificate CA`,builder:Le,handler:async e=>u({command:`zero-trust access applications short-lived-certificates create`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=e.zone===void 0?await i():void 0,n=e.zone===void 0?`accounts`:`zones`,r=e.zone??t??`<account-id>`;c({command:`cf zero-trust access applications short-lived-certificates create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/${n}/${r}/access/apps/${e[`app-id`]==null?`<app-id>`:encodeURIComponent(String(e[`app-id`]))}/ca`,pathParams:{"account-or-zone":String(n),"app-id":String(e[`app-id`]??``),"account-or-zone-id":String(r)},bodyKind:`none`});return}let n=await r(e),u=e.zone===void 0?`accounts`:`zones`,d=u===`zones`?await a({zone:e.zone},n,{quiet:e.quiet}):e.local?t:await o();u===`zones`?e.zoneId=d:e.accountId=d;let f=await l(`Creating`,async()=>n.send(Ie,{account_or_zone:u,account_or_zone_id:d,app_id:e[`app-id`]}));s(f,{successLabel:`Created`})})};var ze={method:`DELETE`,path:t=>e`/${t.account_or_zone}/${t.account_or_zone_id}/access/apps/${t.app_id}/ca`};function Be(e){return e.usage(`$0 zero-trust access applications short-lived-certificates delete <app-id>
26
+ Generates a new short-lived certificate CA and public key.`).positional(`app-id`,{type:`string`,description:`UUID.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const Re={command:`create <app-id>`,describe:`Create a short-lived certificate CA`,builder:Le,handler:async e=>u({command:`zero-trust access applications short-lived-certificates create`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=e.zone===void 0?await i():void 0,n=e.zone===void 0?`accounts`:`zones`,r=e.zone??t??`<account-id>`;c({command:`cf zero-trust access applications short-lived-certificates create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/${n}/${r}/access/apps/${e[`app-id`]==null?`<app-id>`:encodeURIComponent(String(e[`app-id`]))}/ca`,pathParams:{"account-or-zone":String(n),"account-or-zone-id":String(r),"app-id":String(e[`app-id`]??``)},bodyKind:`none`});return}let n=await r(e),u=e.zone===void 0?`accounts`:`zones`,d=u===`zones`?await a({zone:e.zone},n,{quiet:e.quiet}):e.local?t:await o();u===`zones`?e.zoneId=d:e.accountId=d;let f=await l(`Creating`,async()=>n.send(Ie,{account_or_zone:u,account_or_zone_id:d,app_id:e[`app-id`]}));s(f,{successLabel:`Created`})})};var ze={method:`DELETE`,path:t=>e`/${t.account_or_zone}/${t.account_or_zone_id}/access/apps/${t.app_id}/ca`};function Be(e){return e.usage(`$0 zero-trust access applications short-lived-certificates delete <app-id>
27
27
 
28
- Deletes a short-lived certificate CA.`).positional(`app-id`,{type:`string`,description:`UUID.`,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 Ve={command:`delete <app-id>`,describe:`Delete a short-lived certificate CA`,builder:Be,handler:async e=>u({command:`zero-trust access applications short-lived-certificates delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{if(e.dryRun){let t=e.zone===void 0?await i():void 0,n=e.zone===void 0?`accounts`:`zones`,r=e.zone??t??`<account-id>`;c({command:`cf zero-trust access applications short-lived-certificates delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/${n}/${r}/access/apps/${e[`app-id`]==null?`<app-id>`:encodeURIComponent(String(e[`app-id`]))}/ca`,pathParams:{"account-or-zone":String(n),"app-id":String(e[`app-id`]??``),"account-or-zone-id":String(r)},bodyKind:`none`});return}let n=await r(e),u=e.zone===void 0?`accounts`:`zones`,d=u===`zones`?await a({zone:e.zone},n,{quiet:e.quiet}):e.local?t:await o();if(u===`zones`?e.zoneId=d:e.accountId=d,!await y({force:!!e.force})){process.stderr.write(`Aborted.
28
+ Deletes a short-lived certificate CA.`).positional(`app-id`,{type:`string`,description:`UUID.`,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 Ve={command:`delete <app-id>`,describe:`Delete a short-lived certificate CA`,builder:Be,handler:async e=>u({command:`zero-trust access applications short-lived-certificates delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{if(e.dryRun){let t=e.zone===void 0?await i():void 0,n=e.zone===void 0?`accounts`:`zones`,r=e.zone??t??`<account-id>`;c({command:`cf zero-trust access applications short-lived-certificates delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/${n}/${r}/access/apps/${e[`app-id`]==null?`<app-id>`:encodeURIComponent(String(e[`app-id`]))}/ca`,pathParams:{"account-or-zone":String(n),"account-or-zone-id":String(r),"app-id":String(e[`app-id`]??``)},bodyKind:`none`});return}let n=await r(e),u=e.zone===void 0?`accounts`:`zones`,d=u===`zones`?await a({zone:e.zone},n,{quiet:e.quiet}):e.local?t:await o();if(u===`zones`?e.zoneId=d:e.accountId=d,!await y({force:!!e.force})){process.stderr.write(`Aborted.
29
29
  `);return}let f=await l(`Deleting`,async()=>n.send(ze,{account_or_zone:u,account_or_zone_id:d,app_id:e[`app-id`]}));s(f,{successLabel:`Deleted`})})};var He={method:`GET`,path:t=>e`/${t.account_or_zone}/${t.account_or_zone_id}/access/apps/${t.app_id}/ca`};function Ue(e){return e.usage(`$0 zero-trust access applications short-lived-certificates get <app-id>
30
30
 
31
- Fetches a short-lived certificate CA and its public key.`).positional(`app-id`,{type:`string`,description:`UUID.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const We={command:`get <app-id>`,describe:`Get a short-lived certificate CA`,builder:Ue,handler:async e=>u({command:`zero-trust access applications short-lived-certificates get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=e.zone===void 0?await i():void 0,n=e.zone===void 0?`accounts`:`zones`,r=e.zone??t??`<account-id>`;c({command:`cf zero-trust access applications short-lived-certificates get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/${n}/${r}/access/apps/${e[`app-id`]==null?`<app-id>`:encodeURIComponent(String(e[`app-id`]))}/ca`,pathParams:{"account-or-zone":String(n),"app-id":String(e[`app-id`]??``),"account-or-zone-id":String(r)},bodyKind:`none`});return}let n=await r(e),u=e.zone===void 0?`accounts`:`zones`,d=u===`zones`?await a({zone:e.zone},n,{quiet:e.quiet}):e.local?t:await o();u===`zones`?e.zoneId=d:e.accountId=d;let f=await l(`Loading`,async()=>n.send(He,{account_or_zone:u,account_or_zone_id:d,app_id:e[`app-id`]}));s(f,{successLabel:`Loaded`})})};var Ge={method:`GET`,path:t=>e`/${t.account_or_zone}/${t.account_or_zone_id}/access/apps/ca`,query:[`page`,`per_page`]};function Ke(e){return e.usage(`$0 zero-trust access applications short-lived-certificates list
31
+ Fetches a short-lived certificate CA and its public key.`).positional(`app-id`,{type:`string`,description:`UUID.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const We={command:`get <app-id>`,describe:`Get a short-lived certificate CA`,builder:Ue,handler:async e=>u({command:`zero-trust access applications short-lived-certificates get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=e.zone===void 0?await i():void 0,n=e.zone===void 0?`accounts`:`zones`,r=e.zone??t??`<account-id>`;c({command:`cf zero-trust access applications short-lived-certificates get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/${n}/${r}/access/apps/${e[`app-id`]==null?`<app-id>`:encodeURIComponent(String(e[`app-id`]))}/ca`,pathParams:{"account-or-zone":String(n),"account-or-zone-id":String(r),"app-id":String(e[`app-id`]??``)},bodyKind:`none`});return}let n=await r(e),u=e.zone===void 0?`accounts`:`zones`,d=u===`zones`?await a({zone:e.zone},n,{quiet:e.quiet}):e.local?t:await o();u===`zones`?e.zoneId=d:e.accountId=d;let f=await l(`Loading`,async()=>n.send(He,{account_or_zone:u,account_or_zone_id:d,app_id:e[`app-id`]}));s(f,{successLabel:`Loaded`})})};var Ge={method:`GET`,path:t=>e`/${t.account_or_zone}/${t.account_or_zone_id}/access/apps/ca`,query:[`page`,`per_page`]};function Ke(e){return e.usage(`$0 zero-trust access applications short-lived-certificates list
32
32
 
33
33
  Lists short-lived certificate CAs and their public keys.`).option(`page`,{type:`number`,description:`Page number of results.`}).option(`per-page`,{type:`number`,description:`Number of results per page.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const qe={command:`list`,describe:`List short-lived certificate CAs`,builder:Ke,handler:async e=>u({command:`zero-trust access applications short-lived-certificates list`,classification:{safeFlags:[`dry-run`]}},e,async()=>{let n={page:e.page,per_page:e[`per-page`]};if(e.dryRun){let t=e.zone===void 0?await i():void 0,r=e.zone===void 0?`accounts`:`zones`,a=e.zone??t??`<account-id>`;c({command:`cf zero-trust access applications short-lived-certificates list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/${r}/${a}/access/apps/ca`,pathParams:{"account-or-zone":String(r),"account-or-zone-id":String(a)},query:n,bodyKind:`none`});return}let u=await r(e),d=e.zone===void 0?`accounts`:`zones`,f=d===`zones`?await a({zone:e.zone},u,{quiet:e.quiet}):e.local?t:await o();d===`zones`?e.zoneId=f:e.accountId=f;let p=await l(`Loading`,async()=>u.send(Ge,{account_or_zone:d,account_or_zone_id:f,...n}));s(p,{successLabel:`Loaded`})})},Je={command:`short-lived-certificates`,describe:`Operations for access.applications.short-lived-certificates`,builder:e=>e.command(Re).command(Ve).command(We).command(qe).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var Ye={method:`PUT`,path:t=>e`/${t.account_or_zone}/${t.account_or_zone_id}/access/apps/${t.app_id}`,body:`json`};function Xe(e){return e.usage(`$0 zero-trust access applications update <app-id>
34
34
 
35
- Updates an Access application.`).positional(`app-id`,{type:`string`,description:`App ID`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const Ze={command:`update <app-id>`,describe:`Update an Access application`,builder:Xe,handler:async e=>u({command:`zero-trust access applications update`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=e.zone===void 0?await i():void 0,n=e.zone===void 0?`accounts`:`zones`,r=e.zone??t??`<account-id>`;c({command:`cf zero-trust access applications update`,method:`PUT`,url:`https://api.cloudflare.com/client/v4/${n}/${r}/access/apps/${e[`app-id`]==null?`<app-id>`:encodeURIComponent(String(e[`app-id`]))}`,pathParams:{"account-or-zone":String(n),"app-id":String(e[`app-id`]??``),"account-or-zone-id":String(r)},bodyKind:`json`,body:e.body===void 0?void 0:f(e.body)});return}let n=await r(e),u=e.zone===void 0?`accounts`:`zones`,d=u===`zones`?await a({zone:e.zone},n,{quiet:e.quiet}):e.local?t:await o();if(u===`zones`?e.zoneId=d:e.accountId=d,e.body){let t=f(e.body),r=await l(`Updating`,async()=>n.send(Ye,{body:t,account_or_zone:u,account_or_zone_id:d,app_id:e[`app-id`]}));s(r,{successLabel:`Updated`});return}if(e.body===void 0)throw Error(`--body is required for this command. Pass --body '<json>' or --body @path/to/file.json.`)})};var Qe={method:`GET`,path:t=>e`/${t.account_or_zone}/${t.account_or_zone_id}/access/apps/${t.app_id}/user_policy_checks`};function $e(e){return e.usage(`$0 zero-trust access applications user-policy-checks list
35
+ Updates an Access application.`).positional(`app-id`,{type:`string`,description:`App ID`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const Ze={command:`update <app-id>`,describe:`Update an Access application`,builder:Xe,handler:async e=>u({command:`zero-trust access applications update`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=e.zone===void 0?await i():void 0,n=e.zone===void 0?`accounts`:`zones`,r=e.zone??t??`<account-id>`;c({command:`cf zero-trust access applications update`,method:`PUT`,url:`https://api.cloudflare.com/client/v4/${n}/${r}/access/apps/${e[`app-id`]==null?`<app-id>`:encodeURIComponent(String(e[`app-id`]))}`,pathParams:{"account-or-zone":String(n),"account-or-zone-id":String(r),"app-id":String(e[`app-id`]??``)},bodyKind:`json`,body:e.body===void 0?void 0:f(e.body)});return}let n=await r(e),u=e.zone===void 0?`accounts`:`zones`,d=u===`zones`?await a({zone:e.zone},n,{quiet:e.quiet}):e.local?t:await o();if(u===`zones`?e.zoneId=d:e.accountId=d,e.body){let t=f(e.body),r=await l(`Updating`,async()=>n.send(Ye,{body:t,account_or_zone:u,account_or_zone_id:d,app_id:e[`app-id`]}));s(r,{successLabel:`Updated`});return}if(e.body===void 0)throw Error(`--body is required for this command. Pass --body '<json>' or --body @path/to/file.json.`)})};var Qe={method:`GET`,path:t=>e`/${t.account_or_zone}/${t.account_or_zone_id}/access/apps/${t.app_id}/user_policy_checks`};function $e(e){return e.usage(`$0 zero-trust access applications user-policy-checks list
36
36
 
37
- Tests if a specific user has permission to access an application.`).option(`app-id`,{type:`string`,description:`App ID`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const et={command:`list`,describe:`Test Access policies`,builder:$e,handler:async e=>u({command:`zero-trust access applications user-policy-checks list`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=e.zone===void 0?await i():void 0,n=e.zone===void 0?`accounts`:`zones`,r=e.zone??t??`<account-id>`;c({command:`cf zero-trust access applications user-policy-checks list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/${n}/${r}/access/apps/${e[`app-id`]==null?`<app-id>`:encodeURIComponent(String(e[`app-id`]))}/user_policy_checks`,pathParams:{"account-or-zone":String(n),"app-id":String(e[`app-id`]??``),"account-or-zone-id":String(r)},bodyKind:`none`});return}let n=await r(e),u=e.zone===void 0?`accounts`:`zones`,d=u===`zones`?await a({zone:e.zone},n,{quiet:e.quiet}):e.local?t:await o();u===`zones`?e.zoneId=d:e.accountId=d;let f=await l(`Loading`,async()=>n.send(Qe,{account_or_zone:u,account_or_zone_id:d,app_id:e[`app-id`]}));s(f,{successLabel:`Loaded`})})},tt={command:`user-policy-checks`,describe:`Operations for access.applications.user-policy-checks`,builder:e=>e.command(et).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},nt={command:`applications`,describe:`Operations for access.applications`,builder:e=>e.command(ie).command(se).command(ue).command(pe).command(je).command(Ze).command(_e).command(Oe).command(Fe).command(Je).command(tt).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var rt={method:`POST`,path:t=>e`/accounts/${t.account_id}/access/custom_pages`,body:`json`,errors:{422:`UnprocessableEntityError`}};function it(e){return e.usage(`$0 zero-trust access custom-pages create
37
+ Tests if a specific user has permission to access an application.`).option(`app-id`,{type:`string`,description:`App ID`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const et={command:`list`,describe:`Test Access policies`,builder:$e,handler:async e=>u({command:`zero-trust access applications user-policy-checks list`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=e.zone===void 0?await i():void 0,n=e.zone===void 0?`accounts`:`zones`,r=e.zone??t??`<account-id>`;c({command:`cf zero-trust access applications user-policy-checks list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/${n}/${r}/access/apps/${e[`app-id`]==null?`<app-id>`:encodeURIComponent(String(e[`app-id`]))}/user_policy_checks`,pathParams:{"account-or-zone":String(n),"account-or-zone-id":String(r),"app-id":String(e[`app-id`]??``)},bodyKind:`none`});return}let n=await r(e),u=e.zone===void 0?`accounts`:`zones`,d=u===`zones`?await a({zone:e.zone},n,{quiet:e.quiet}):e.local?t:await o();u===`zones`?e.zoneId=d:e.accountId=d;let f=await l(`Loading`,async()=>n.send(Qe,{account_or_zone:u,account_or_zone_id:d,app_id:e[`app-id`]}));s(f,{successLabel:`Loaded`})})},tt={command:`user-policy-checks`,describe:`Operations for access.applications.user-policy-checks`,builder:e=>e.command(et).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},nt={command:`applications`,describe:`Operations for access.applications`,builder:e=>e.command(ie).command(se).command(ue).command(pe).command(je).command(Ze).command(_e).command(Oe).command(Fe).command(Je).command(tt).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var rt={method:`POST`,path:t=>e`/accounts/${t.account_id}/access/custom_pages`,body:`json`,errors:{422:`UnprocessableEntityError`}};function it(e){return e.usage(`$0 zero-trust access custom-pages create
38
38
 
39
39
  Create a custom page`).option(`app-count`,{type:`number`,description:`Number of apps the custom page is assigned to.`}).option(`contract-version`,{type:`number`,description:`Contract version of the page's Liquid template. Present (>= 1) marks a sanitized template; absent or 0 marks a legacy page served verbatim.`}).option(`custom-html`,{type:`string`,description:`Custom page HTML.`}).option(`name`,{type:`string`,description:`Custom page name.`}).option(`type`,{type:`string`,description:`Custom page type.`,choices:[`identity_denied`,`forbidden`,`login`,`interstitial`]}).coerce(`type`,e=>h(e,`type`,`text`)).option(`uid`,{type:`string`,description:`UUID.`}).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 at={command:`create`,describe:`Create a custom page`,builder:it,handler:async e=>u({command:`zero-trust access custom-pages create`,classification:{safeFlags:[`type`,`dry-run`]}},e,async()=>{if(e.dryRun){let t=await i();c({command:`cf zero-trust access custom-pages create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/access/custom_pages`,pathParams:{},bodyKind:`json`,body:e.body===void 0?m({app_count:e[`app-count`],contract_version:e[`contract-version`],custom_html:h(e[`custom-html`],`custom-html`,`text`),name:h(e.name,`name`,`text`),type:e.type,uid:h(e.uid,`uid`,`text`)}):f(e.body)});return}let n=await r(e),a=e.local?t:await o();if(e.accountId=a,e.body){let t=f(e.body),r=await l(`Creating`,async()=>n.send(rt,{body:t,account_id:a}));s(r,{successLabel:`Created`});return}e[`custom-html`]===void 0&&(e[`custom-html`]=await _(`custom-html`,`Custom page HTML.`)),e.name===void 0&&(e.name=await _(`name`,`Custom page name.`)),e.type===void 0&&(e.type=await v(`type`,`Custom page type.`,[`identity_denied`,`forbidden`,`login`,`interstitial`]));let u=m({app_count:e[`app-count`],contract_version:e[`contract-version`],custom_html:h(e[`custom-html`],`custom-html`,`text`),name:h(e.name,`name`,`text`),type:e.type,uid:h(e.uid,`uid`,`text`)}),d=await l(`Creating`,async()=>n.send(rt,{body:u,account_id:a}));s(d,{successLabel:`Created`})})};var ot={method:`DELETE`,path:t=>e`/accounts/${t.account_id}/access/custom_pages/${t.custom_page_id}`};function st(e){return e.usage(`$0 zero-trust access custom-pages delete <custom-page-id>
40
40
 
@@ -75,10 +75,10 @@ Returns a list of Authenticator Device AAGUIDs for MFA configuration.`).option(`
75
75
 
76
76
  Adds a new mTLS root certificate to Access.`).option(`associated-hostnames`,{type:`string`,array:!0,description:`The hostnames of the applications that will use this certificate.`}).option(`certificate`,{type:`string`,description:`The certificate content.`}).option(`name`,{type:`string`,description:`The name of the certificate.`}).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 dn={command:`create`,describe:`Add an mTLS certificate`,builder:un,handler:async e=>u({command:`zero-trust access mtls-certificates create`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=e.zone===void 0?await i():void 0,n=e.zone===void 0?`accounts`:`zones`,r=e.zone??t??`<account-id>`;c({command:`cf zero-trust access mtls-certificates create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/${n}/${r}/access/certificates`,pathParams:{"account-or-zone":String(n),"account-or-zone-id":String(r)},bodyKind:`json`,body:e.body===void 0?m({associated_hostnames:e[`associated-hostnames`],certificate:h(e.certificate,`certificate`,`text`),name:h(e.name,`name`,`text`)}):f(e.body)});return}let n=await r(e),u=e.zone===void 0?`accounts`:`zones`,d=u===`zones`?await a({zone:e.zone},n,{quiet:e.quiet}):e.local?t:await o();if(u===`zones`?e.zoneId=d:e.accountId=d,e.body){let t=f(e.body),r=await l(`Creating`,async()=>n.send(S,{body:t,account_or_zone:u,account_or_zone_id:d}));s(r,{successLabel:`Created`});return}e.certificate===void 0&&(e.certificate=await _(`certificate`,`The certificate content.`)),e.name===void 0&&(e.name=await _(`name`,`The name of the certificate.`));let p=m({associated_hostnames:e[`associated-hostnames`],certificate:h(e.certificate,`certificate`,`text`),name:h(e.name,`name`,`text`)}),g=await l(`Creating`,async()=>n.send(S,{body:p,account_or_zone:u,account_or_zone_id:d}));s(g,{successLabel:`Created`})})};var fn={method:`DELETE`,path:t=>e`/${t.account_or_zone}/${t.account_or_zone_id}/access/certificates/${t.certificate_id}`};function pn(e){return e.usage(`$0 zero-trust access mtls-certificates delete <certificate-id>
77
77
 
78
- Deletes an mTLS certificate.`).positional(`certificate-id`,{type:`string`,description:`UUID.`,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 mn={command:`delete <certificate-id>`,describe:`Delete an mTLS certificate`,builder:pn,handler:async e=>u({command:`zero-trust access mtls-certificates delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{if(e.dryRun){let t=e.zone===void 0?await i():void 0,n=e.zone===void 0?`accounts`:`zones`,r=e.zone??t??`<account-id>`;c({command:`cf zero-trust access mtls-certificates delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/${n}/${r}/access/certificates/${e[`certificate-id`]==null?`<certificate-id>`:encodeURIComponent(String(e[`certificate-id`]))}`,pathParams:{"account-or-zone":String(n),"certificate-id":String(e[`certificate-id`]??``),"account-or-zone-id":String(r)},bodyKind:`none`});return}let n=await r(e),u=e.zone===void 0?`accounts`:`zones`,d=u===`zones`?await a({zone:e.zone},n,{quiet:e.quiet}):e.local?t:await o();if(u===`zones`?e.zoneId=d:e.accountId=d,!await y({force:!!e.force})){process.stderr.write(`Aborted.
78
+ Deletes an mTLS certificate.`).positional(`certificate-id`,{type:`string`,description:`UUID.`,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 mn={command:`delete <certificate-id>`,describe:`Delete an mTLS certificate`,builder:pn,handler:async e=>u({command:`zero-trust access mtls-certificates delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{if(e.dryRun){let t=e.zone===void 0?await i():void 0,n=e.zone===void 0?`accounts`:`zones`,r=e.zone??t??`<account-id>`;c({command:`cf zero-trust access mtls-certificates delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/${n}/${r}/access/certificates/${e[`certificate-id`]==null?`<certificate-id>`:encodeURIComponent(String(e[`certificate-id`]))}`,pathParams:{"account-or-zone":String(n),"account-or-zone-id":String(r),"certificate-id":String(e[`certificate-id`]??``)},bodyKind:`none`});return}let n=await r(e),u=e.zone===void 0?`accounts`:`zones`,d=u===`zones`?await a({zone:e.zone},n,{quiet:e.quiet}):e.local?t:await o();if(u===`zones`?e.zoneId=d:e.accountId=d,!await y({force:!!e.force})){process.stderr.write(`Aborted.
79
79
  `);return}let f=await l(`Deleting`,async()=>n.send(fn,{account_or_zone:u,account_or_zone_id:d,certificate_id:e[`certificate-id`]}));s(f,{successLabel:`Deleted`})})};var hn={method:`GET`,path:t=>e`/${t.account_or_zone}/${t.account_or_zone_id}/access/certificates/${t.certificate_id}`};function gn(e){return e.usage(`$0 zero-trust access mtls-certificates get <certificate-id>
80
80
 
81
- Fetches a single mTLS certificate.`).positional(`certificate-id`,{type:`string`,description:`UUID.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const _n={command:`get <certificate-id>`,describe:`Get an mTLS certificate`,builder:gn,handler:async e=>u({command:`zero-trust access mtls-certificates get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=e.zone===void 0?await i():void 0,n=e.zone===void 0?`accounts`:`zones`,r=e.zone??t??`<account-id>`;c({command:`cf zero-trust access mtls-certificates get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/${n}/${r}/access/certificates/${e[`certificate-id`]==null?`<certificate-id>`:encodeURIComponent(String(e[`certificate-id`]))}`,pathParams:{"account-or-zone":String(n),"certificate-id":String(e[`certificate-id`]??``),"account-or-zone-id":String(r)},bodyKind:`none`});return}let n=await r(e),u=e.zone===void 0?`accounts`:`zones`,d=u===`zones`?await a({zone:e.zone},n,{quiet:e.quiet}):e.local?t:await o();u===`zones`?e.zoneId=d:e.accountId=d;let f=await l(`Loading`,async()=>n.send(hn,{account_or_zone:u,account_or_zone_id:d,certificate_id:e[`certificate-id`]}));s(f,{successLabel:`Loaded`})})};var vn={method:`GET`,path:t=>e`/${t.account_or_zone}/${t.account_or_zone_id}/access/certificates`,query:[`page`,`per_page`]};function yn(e){return e.usage(`$0 zero-trust access mtls-certificates list
81
+ Fetches a single mTLS certificate.`).positional(`certificate-id`,{type:`string`,description:`UUID.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const _n={command:`get <certificate-id>`,describe:`Get an mTLS certificate`,builder:gn,handler:async e=>u({command:`zero-trust access mtls-certificates get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=e.zone===void 0?await i():void 0,n=e.zone===void 0?`accounts`:`zones`,r=e.zone??t??`<account-id>`;c({command:`cf zero-trust access mtls-certificates get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/${n}/${r}/access/certificates/${e[`certificate-id`]==null?`<certificate-id>`:encodeURIComponent(String(e[`certificate-id`]))}`,pathParams:{"account-or-zone":String(n),"account-or-zone-id":String(r),"certificate-id":String(e[`certificate-id`]??``)},bodyKind:`none`});return}let n=await r(e),u=e.zone===void 0?`accounts`:`zones`,d=u===`zones`?await a({zone:e.zone},n,{quiet:e.quiet}):e.local?t:await o();u===`zones`?e.zoneId=d:e.accountId=d;let f=await l(`Loading`,async()=>n.send(hn,{account_or_zone:u,account_or_zone_id:d,certificate_id:e[`certificate-id`]}));s(f,{successLabel:`Loaded`})})};var vn={method:`GET`,path:t=>e`/${t.account_or_zone}/${t.account_or_zone_id}/access/certificates`,query:[`page`,`per_page`]};function yn(e){return e.usage(`$0 zero-trust access mtls-certificates list
82
82
 
83
83
  Lists all mTLS root certificates.`).option(`page`,{type:`number`,description:`Page number of results.`}).option(`per-page`,{type:`number`,description:`Number of results per page.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const bn={command:`list`,describe:`List mTLS certificates`,builder:yn,handler:async e=>u({command:`zero-trust access mtls-certificates list`,classification:{safeFlags:[`dry-run`]}},e,async()=>{let n={page:e.page,per_page:e[`per-page`]};if(e.dryRun){let t=e.zone===void 0?await i():void 0,r=e.zone===void 0?`accounts`:`zones`,a=e.zone??t??`<account-id>`;c({command:`cf zero-trust access mtls-certificates list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/${r}/${a}/access/certificates`,pathParams:{"account-or-zone":String(r),"account-or-zone-id":String(a)},query:n,bodyKind:`none`});return}let u=await r(e),d=e.zone===void 0?`accounts`:`zones`,f=d===`zones`?await a({zone:e.zone},u,{quiet:e.quiet}):e.local?t:await o();d===`zones`?e.zoneId=f:e.accountId=f;let p=await l(`Loading`,async()=>u.send(vn,{account_or_zone:d,account_or_zone_id:f,...n}));s(p,{successLabel:`Loaded`})})};var xn={method:`GET`,path:t=>e`/${t.account_or_zone}/${t.account_or_zone_id}/access/certificates/settings`};function Sn(e){return e.usage(`$0 zero-trust access mtls-certificates settings get
84
84
 
@@ -86,9 +86,9 @@ List all mTLS hostname settings for this account or zone.`).option(`dry-run`,{ty
86
86
 
87
87
  Updates an mTLS certificate's hostname settings.`).option(`settings`,{type:`string`,description:`The settings field. Provide as a JSON array of objects or @path/to/file.json.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const Tn={command:`update`,describe:`Update an mTLS certificate's hostname settings`,builder:wn,handler:async e=>u({command:`zero-trust access mtls-certificates settings update`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=e.zone===void 0?await i():void 0,n=e.zone===void 0?`accounts`:`zones`,r=e.zone??t??`<account-id>`;c({command:`cf zero-trust access mtls-certificates settings update`,method:`PUT`,url:`https://api.cloudflare.com/client/v4/${n}/${r}/access/certificates/settings`,pathParams:{"account-or-zone":String(n),"account-or-zone-id":String(r)},bodyKind:`json`,body:e.body===void 0?m({settings:p(e.settings,`settings`)}):f(e.body)});return}let n=await r(e),u=e.zone===void 0?`accounts`:`zones`,d=u===`zones`?await a({zone:e.zone},n,{quiet:e.quiet}):e.local?t:await o();if(u===`zones`?e.zoneId=d:e.accountId=d,e.body){let t=f(e.body),r=await l(`Updating`,async()=>n.send(C,{body:t,account_or_zone:u,account_or_zone_id:d}));s(r,{successLabel:`Updated`});return}if(e.settings===void 0)throw Error(`--settings is required (or pass --body with this field set).`);let h=m({settings:p(e.settings,`settings`)}),g=await l(`Updating`,async()=>n.send(C,{body:h,account_or_zone:u,account_or_zone_id:d}));s(g,{successLabel:`Updated`})})},En={command:`settings`,describe:`Operations for access.mtls-certificates.settings`,builder:e=>e.command(Cn).command(Tn).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var w={method:`PUT`,path:t=>e`/${t.account_or_zone}/${t.account_or_zone_id}/access/certificates/${t.certificate_id}`,body:`json`};function Dn(e){return e.usage(`$0 zero-trust access mtls-certificates update <certificate-id>
88
88
 
89
- Updates a configured mTLS certificate.`).positional(`certificate-id`,{type:`string`,description:`UUID.`,demandOption:!0}).option(`associated-hostnames`,{type:`string`,array:!0,description:`The hostnames of the applications that will use this certificate.`}).option(`name`,{type:`string`,description:`The name of the certificate.`}).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 On={command:`update <certificate-id>`,describe:`Update an mTLS certificate`,builder:Dn,handler:async e=>u({command:`zero-trust access mtls-certificates update`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=e.zone===void 0?await i():void 0,n=e.zone===void 0?`accounts`:`zones`,r=e.zone??t??`<account-id>`;c({command:`cf zero-trust access mtls-certificates update`,method:`PUT`,url:`https://api.cloudflare.com/client/v4/${n}/${r}/access/certificates/${e[`certificate-id`]==null?`<certificate-id>`:encodeURIComponent(String(e[`certificate-id`]))}`,pathParams:{"account-or-zone":String(n),"certificate-id":String(e[`certificate-id`]??``),"account-or-zone-id":String(r)},bodyKind:`json`,body:e.body===void 0?m({associated_hostnames:e[`associated-hostnames`],name:h(e.name,`name`,`text`)}):f(e.body)});return}let n=await r(e),u=e.zone===void 0?`accounts`:`zones`,d=u===`zones`?await a({zone:e.zone},n,{quiet:e.quiet}):e.local?t:await o();if(u===`zones`?e.zoneId=d:e.accountId=d,e.body){let t=f(e.body),r=await l(`Updating`,async()=>n.send(w,{body:t,account_or_zone:u,account_or_zone_id:d,certificate_id:e[`certificate-id`]}));s(r,{successLabel:`Updated`});return}if(e[`associated-hostnames`]===void 0)throw Error(`--associated-hostnames is required (or pass --body with this field set).`);let p=m({associated_hostnames:e[`associated-hostnames`],name:h(e.name,`name`,`text`)}),g=await l(`Updating`,async()=>n.send(w,{body:p,account_or_zone:u,account_or_zone_id:d,certificate_id:e[`certificate-id`]}));s(g,{successLabel:`Updated`})})},kn={command:`mtls-certificates`,describe:`Operations for access.mtls-certificates`,builder:e=>e.command(dn).command(mn).command(_n).command(bn).command(On).command(En).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var T={method:`POST`,path:t=>e`/accounts/${t.account_id}/access/policies`,body:`json`};function An(e){return e.usage(`$0 zero-trust access policies create
89
+ Updates a configured mTLS certificate.`).positional(`certificate-id`,{type:`string`,description:`UUID.`,demandOption:!0}).option(`associated-hostnames`,{type:`string`,array:!0,description:`The hostnames of the applications that will use this certificate.`}).option(`name`,{type:`string`,description:`The name of the certificate.`}).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 On={command:`update <certificate-id>`,describe:`Update an mTLS certificate`,builder:Dn,handler:async e=>u({command:`zero-trust access mtls-certificates update`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=e.zone===void 0?await i():void 0,n=e.zone===void 0?`accounts`:`zones`,r=e.zone??t??`<account-id>`;c({command:`cf zero-trust access mtls-certificates update`,method:`PUT`,url:`https://api.cloudflare.com/client/v4/${n}/${r}/access/certificates/${e[`certificate-id`]==null?`<certificate-id>`:encodeURIComponent(String(e[`certificate-id`]))}`,pathParams:{"account-or-zone":String(n),"account-or-zone-id":String(r),"certificate-id":String(e[`certificate-id`]??``)},bodyKind:`json`,body:e.body===void 0?m({associated_hostnames:e[`associated-hostnames`],name:h(e.name,`name`,`text`)}):f(e.body)});return}let n=await r(e),u=e.zone===void 0?`accounts`:`zones`,d=u===`zones`?await a({zone:e.zone},n,{quiet:e.quiet}):e.local?t:await o();if(u===`zones`?e.zoneId=d:e.accountId=d,e.body){let t=f(e.body),r=await l(`Updating`,async()=>n.send(w,{body:t,account_or_zone:u,account_or_zone_id:d,certificate_id:e[`certificate-id`]}));s(r,{successLabel:`Updated`});return}if(e[`associated-hostnames`]===void 0)throw Error(`--associated-hostnames is required (or pass --body with this field set).`);let p=m({associated_hostnames:e[`associated-hostnames`],name:h(e.name,`name`,`text`)}),g=await l(`Updating`,async()=>n.send(w,{body:p,account_or_zone:u,account_or_zone_id:d,certificate_id:e[`certificate-id`]}));s(g,{successLabel:`Updated`})})},kn={command:`mtls-certificates`,describe:`Operations for access.mtls-certificates`,builder:e=>e.command(dn).command(mn).command(_n).command(bn).command(On).command(En).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var T={method:`POST`,path:t=>e`/accounts/${t.account_id}/access/policies`,body:`json`};function An(e){return e.usage(`$0 zero-trust access policies create
90
90
 
91
- Creates a new Access reusable policy.`).option(`decision`,{type:`string`,description:`The action Access will take if a user matches this policy. Infrastructure application policies can only use the Allow action.`,choices:[`allow`,`deny`,`non_identity`,`bypass`]}).coerce(`decision`,e=>h(e,`decision`,`text`)).option(`exclude`,{type:`string`,description:`Rules evaluated with a NOT logical operator. To match the policy, a user cannot meet any of the Exclude rules. Provide as a JSON array of objects or @path/to/file.json.`}).option(`include`,{type:`string`,description:`Rules evaluated with an OR logical operator. A user needs to meet only one of the Include rules. Provide as a JSON array of objects or @path/to/file.json.`}).option(`name`,{type:`string`,description:`The name of the Access policy.`}).option(`require`,{type:`string`,description:`Rules evaluated with an AND logical operator. To match the policy, a user must meet all of the Require rules. Provide as a JSON array of objects or @path/to/file.json.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const jn={command:`create`,describe:`Create an Access reusable policy`,builder:An,handler:async e=>u({command:`zero-trust access policies create`,classification:{safeFlags:[`decision`,`dry-run`]}},e,async()=>{if(e.dryRun){let t=await i();c({command:`cf zero-trust access policies create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/access/policies`,pathParams:{},bodyKind:`json`,body:e.body===void 0?m({decision:e.decision,exclude:p(e.exclude,`exclude`),include:p(e.include,`include`),name:h(e.name,`name`,`text`),require:p(e.require,`require`)}):f(e.body)});return}let n=await r(e),a=e.local?t:await o();if(e.accountId=a,e.body){let t=f(e.body),r=await l(`Creating`,async()=>n.send(T,{body:t,account_id:a}));s(r,{successLabel:`Created`});return}if(e.decision===void 0&&(e.decision=await v(`decision`,`The action Access will take if a user matches this policy. Infrastructure application policies can only use the Allow action.`,[`allow`,`deny`,`non_identity`,`bypass`])),e.include===void 0)throw Error(`--include is required (or pass --body with this field set).`);e.name===void 0&&(e.name=await _(`name`,`The name of the Access policy.`));let u=m({decision:e.decision,exclude:p(e.exclude,`exclude`),include:p(e.include,`include`),name:h(e.name,`name`,`text`),require:p(e.require,`require`)}),d=await l(`Creating`,async()=>n.send(T,{body:u,account_id:a}));s(d,{successLabel:`Created`})})};var Mn={method:`DELETE`,path:t=>e`/accounts/${t.account_id}/access/policies/${t.policy_id}`};function Nn(e){return e.usage(`$0 zero-trust access policies delete <policy-id>
91
+ Creates a new Access reusable policy.`).option(`approval-groups`,{type:`string`,description:`Administrators who can approve a temporary authentication request. Provide as a JSON array of objects or @path/to/file.json.`}).option(`approval-required`,{type:`boolean`,description:`Requires the user to request access from an administrator at the start of each session.`}).option(`connection-rules-rdp-allowed-clipboard-local-to-remote-formats`,{type:`string`,array:!0,description:`Clipboard formats allowed when copying from local machine to remote RDP session.`}).option(`connection-rules-rdp-allowed-clipboard-remote-to-local-formats`,{type:`string`,array:!0,description:`Clipboard formats allowed when copying from remote RDP session to local machine.`}).option(`isolation-required`,{type:`boolean`,description:`Require this application to be served in an isolated browser for users matching this policy. 'Client Web Isolation' must be on for the account in order to use this feature.`}).option(`mfa-config-allowed-authenticators`,{type:`string`,array:!0,description:`Lists the MFA methods that users can authenticate with.`}).option(`mfa-config-mfa-disabled`,{type:`boolean`,description:`Indicates whether to disable MFA for this resource. This option is available at the application and policy level.`}).option(`mfa-config-session-duration`,{type:`string`,description:"Defines the duration of an MFA session. Must be in minutes (m) or hours (h). Minimum: 0m. Maximum: 720h (30 days). Examples:`5m` or `24h`."}).option(`purpose-justification-prompt`,{type:`string`,description:`A custom message that will appear on the purpose justification screen.`}).option(`purpose-justification-required`,{type:`boolean`,description:`Require users to enter a justification when they log in to the application.`}).option(`session-duration`,{type:`string`,description:"The amount of time that tokens issued for the application will be valid. Must be in the format `300ms` or `2h45m`. Valid time units are: ns, us (or µs), ms, s, m, h."}).option(`decision`,{type:`string`,description:`The action Access will take if a user matches this policy. Infrastructure application policies can only use the Allow action.`,choices:[`allow`,`deny`,`non_identity`,`bypass`]}).coerce(`decision`,e=>h(e,`decision`,`text`)).option(`exclude`,{type:`string`,description:`Rules evaluated with a NOT logical operator. To match the policy, a user cannot meet any of the Exclude rules. Provide as a JSON array of objects or @path/to/file.json.`}).option(`include`,{type:`string`,description:`Rules evaluated with an OR logical operator. A user needs to meet only one of the Include rules. Provide as a JSON array of objects or @path/to/file.json.`}).option(`name`,{type:`string`,description:`The name of the Access policy.`}).option(`require`,{type:`string`,description:`Rules evaluated with an AND logical operator. To match the policy, a user must meet all of the Require rules. Provide as a JSON array of objects or @path/to/file.json.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const jn={command:`create`,describe:`Create an Access reusable policy`,builder:An,handler:async e=>u({command:`zero-trust access policies create`,classification:{safeFlags:[`approval-required`,`isolation-required`,`mfa-config-mfa-disabled`,`purpose-justification-required`,`decision`,`dry-run`]}},e,async()=>{if(e.dryRun){let t=await i();c({command:`cf zero-trust access policies create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/access/policies`,pathParams:{},bodyKind:`json`,body:e.body===void 0?m({approval_groups:p(e[`approval-groups`],`approval-groups`),approval_required:e[`approval-required`],connection_rules:{rdp:{allowed_clipboard_local_to_remote_formats:e[`connection-rules-rdp-allowed-clipboard-local-to-remote-formats`],allowed_clipboard_remote_to_local_formats:e[`connection-rules-rdp-allowed-clipboard-remote-to-local-formats`]}},isolation_required:e[`isolation-required`],mfa_config:{allowed_authenticators:e[`mfa-config-allowed-authenticators`],mfa_disabled:e[`mfa-config-mfa-disabled`],session_duration:h(e[`mfa-config-session-duration`],`mfa-config-session-duration`,`text`)},purpose_justification_prompt:h(e[`purpose-justification-prompt`],`purpose-justification-prompt`,`text`),purpose_justification_required:e[`purpose-justification-required`],session_duration:h(e[`session-duration`],`session-duration`,`text`),decision:e.decision,exclude:p(e.exclude,`exclude`),include:p(e.include,`include`),name:h(e.name,`name`,`text`),require:p(e.require,`require`)}):f(e.body)});return}let n=await r(e),a=e.local?t:await o();if(e.accountId=a,e.body){let t=f(e.body),r=await l(`Creating`,async()=>n.send(T,{body:t,account_id:a}));s(r,{successLabel:`Created`});return}if(e.decision===void 0&&(e.decision=await v(`decision`,`The action Access will take if a user matches this policy. Infrastructure application policies can only use the Allow action.`,[`allow`,`deny`,`non_identity`,`bypass`])),e.include===void 0)throw Error(`--include is required (or pass --body with this field set).`);e.name===void 0&&(e.name=await _(`name`,`The name of the Access policy.`));let u=m({approval_groups:p(e[`approval-groups`],`approval-groups`),approval_required:e[`approval-required`],connection_rules:{rdp:{allowed_clipboard_local_to_remote_formats:e[`connection-rules-rdp-allowed-clipboard-local-to-remote-formats`],allowed_clipboard_remote_to_local_formats:e[`connection-rules-rdp-allowed-clipboard-remote-to-local-formats`]}},isolation_required:e[`isolation-required`],mfa_config:{allowed_authenticators:e[`mfa-config-allowed-authenticators`],mfa_disabled:e[`mfa-config-mfa-disabled`],session_duration:h(e[`mfa-config-session-duration`],`mfa-config-session-duration`,`text`)},purpose_justification_prompt:h(e[`purpose-justification-prompt`],`purpose-justification-prompt`,`text`),purpose_justification_required:e[`purpose-justification-required`],session_duration:h(e[`session-duration`],`session-duration`,`text`),decision:e.decision,exclude:p(e.exclude,`exclude`),include:p(e.include,`include`),name:h(e.name,`name`,`text`),require:p(e.require,`require`)}),d=await l(`Creating`,async()=>n.send(T,{body:u,account_id:a}));s(d,{successLabel:`Created`})})};var Mn={method:`DELETE`,path:t=>e`/accounts/${t.account_id}/access/policies/${t.policy_id}`};function Nn(e){return e.usage(`$0 zero-trust access policies delete <policy-id>
92
92
 
93
93
  Deletes an Access reusable policy.`).positional(`policy-id`,{type:`string`,description:`The UUID of the policy`,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 Pn={command:`delete <policy-id>`,describe:`Delete an Access reusable policy`,builder:Nn,handler:async e=>u({command:`zero-trust access policies delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{if(e.dryRun){let t=await i();c({command:`cf zero-trust access policies delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/access/policies/${e[`policy-id`]==null?`<policy-id>`:encodeURIComponent(String(e[`policy-id`]))}`,pathParams:{"policy-id":String(e[`policy-id`]??``)},bodyKind:`none`});return}let n=await r(e),a=e.local?t:await o();if(e.accountId=a,!await y({force:!!e.force})){process.stderr.write(`Aborted.
94
94
  `);return}let u=await l(`Deleting`,async()=>n.send(Mn,{account_id:a,policy_id:e[`policy-id`]}));s(u,{successLabel:`Deleted`})})};var Fn={method:`GET`,path:t=>e`/accounts/${t.account_id}/access/policies/${t.policy_id}`};function In(e){return e.usage(`$0 zero-trust access policies get <policy-id>
@@ -97,18 +97,18 @@ Fetches a single Access reusable policy.`).positional(`policy-id`,{type:`string`
97
97
 
98
98
  Lists Access reusable policies.`).option(`page`,{type:`number`,description:`Page number of results.`}).option(`per-page`,{type:`number`,description:`Number of results per page.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const Bn={command:`list`,describe:`List Access reusable policies`,builder:zn,handler:async e=>u({command:`zero-trust access policies list`,classification:{safeFlags:[`dry-run`]}},e,async()=>{let n={page:e.page,per_page:e[`per-page`]};if(e.dryRun){let e=await i();c({command:`cf zero-trust access policies list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}/access/policies`,pathParams:{},query:n,bodyKind:`none`});return}let a=await r(e),u=e.local?t:await o();e.accountId=u;let d=await l(`Loading`,async()=>a.send(Rn,{account_id:u,...n}));s(d,{successLabel:`Loaded`})})};var E={method:`PUT`,path:t=>e`/accounts/${t.account_id}/access/policies/${t.policy_id}`,body:`json`};function Vn(e){return e.usage(`$0 zero-trust access policies update <policy-id>
99
99
 
100
- Updates a Access reusable policy.`).positional(`policy-id`,{type:`string`,description:`The UUID of the policy`,demandOption:!0}).option(`decision`,{type:`string`,description:`The action Access will take if a user matches this policy. Infrastructure application policies can only use the Allow action.`,choices:[`allow`,`deny`,`non_identity`,`bypass`]}).coerce(`decision`,e=>h(e,`decision`,`text`)).option(`exclude`,{type:`string`,description:`Rules evaluated with a NOT logical operator. To match the policy, a user cannot meet any of the Exclude rules. Provide as a JSON array of objects or @path/to/file.json.`}).option(`include`,{type:`string`,description:`Rules evaluated with an OR logical operator. A user needs to meet only one of the Include rules. Provide as a JSON array of objects or @path/to/file.json.`}).option(`name`,{type:`string`,description:`The name of the Access policy.`}).option(`require`,{type:`string`,description:`Rules evaluated with an AND logical operator. To match the policy, a user must meet all of the Require rules. Provide as a JSON array of objects or @path/to/file.json.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const Hn={command:`update <policy-id>`,describe:`Update an Access reusable policy`,builder:Vn,handler:async e=>u({command:`zero-trust access policies update`,classification:{safeFlags:[`decision`,`dry-run`]}},e,async()=>{if(e.dryRun){let t=await i();c({command:`cf zero-trust access policies update`,method:`PUT`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/access/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?m({decision:e.decision,exclude:p(e.exclude,`exclude`),include:p(e.include,`include`),name:h(e.name,`name`,`text`),require:p(e.require,`require`)}):f(e.body)});return}let n=await r(e),a=e.local?t:await o();if(e.accountId=a,e.body){let t=f(e.body),r=await l(`Updating`,async()=>n.send(E,{body:t,account_id:a,policy_id:e[`policy-id`]}));s(r,{successLabel:`Updated`});return}if(e.decision===void 0&&(e.decision=await v(`decision`,`The action Access will take if a user matches this policy. Infrastructure application policies can only use the Allow action.`,[`allow`,`deny`,`non_identity`,`bypass`])),e.include===void 0)throw Error(`--include is required (or pass --body with this field set).`);e.name===void 0&&(e.name=await _(`name`,`The name of the Access policy.`));let u=m({decision:e.decision,exclude:p(e.exclude,`exclude`),include:p(e.include,`include`),name:h(e.name,`name`,`text`),require:p(e.require,`require`)}),d=await l(`Updating`,async()=>n.send(E,{body:u,account_id:a,policy_id:e[`policy-id`]}));s(d,{successLabel:`Updated`})})},Un={command:`policies`,describe:`Operations for access.policies`,builder:e=>e.command(jn).command(Pn).command(Ln).command(Bn).command(Hn).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var D={method:`POST`,path:t=>e`/${t.account_or_zone}/${t.account_or_zone_id}/access/groups`,body:`json`};function Wn(e){return e.usage(`$0 zero-trust access rule-groups create
100
+ Updates a Access reusable policy.`).positional(`policy-id`,{type:`string`,description:`The UUID of the policy`,demandOption:!0}).option(`approval-groups`,{type:`string`,description:`Administrators who can approve a temporary authentication request. Provide as a JSON array of objects or @path/to/file.json.`}).option(`approval-required`,{type:`boolean`,description:`Requires the user to request access from an administrator at the start of each session.`}).option(`connection-rules-rdp-allowed-clipboard-local-to-remote-formats`,{type:`string`,array:!0,description:`Clipboard formats allowed when copying from local machine to remote RDP session.`}).option(`connection-rules-rdp-allowed-clipboard-remote-to-local-formats`,{type:`string`,array:!0,description:`Clipboard formats allowed when copying from remote RDP session to local machine.`}).option(`isolation-required`,{type:`boolean`,description:`Require this application to be served in an isolated browser for users matching this policy. 'Client Web Isolation' must be on for the account in order to use this feature.`}).option(`mfa-config-allowed-authenticators`,{type:`string`,array:!0,description:`Lists the MFA methods that users can authenticate with.`}).option(`mfa-config-mfa-disabled`,{type:`boolean`,description:`Indicates whether to disable MFA for this resource. This option is available at the application and policy level.`}).option(`mfa-config-session-duration`,{type:`string`,description:"Defines the duration of an MFA session. Must be in minutes (m) or hours (h). Minimum: 0m. Maximum: 720h (30 days). Examples:`5m` or `24h`."}).option(`purpose-justification-prompt`,{type:`string`,description:`A custom message that will appear on the purpose justification screen.`}).option(`purpose-justification-required`,{type:`boolean`,description:`Require users to enter a justification when they log in to the application.`}).option(`session-duration`,{type:`string`,description:"The amount of time that tokens issued for the application will be valid. Must be in the format `300ms` or `2h45m`. Valid time units are: ns, us (or µs), ms, s, m, h."}).option(`decision`,{type:`string`,description:`The action Access will take if a user matches this policy. Infrastructure application policies can only use the Allow action.`,choices:[`allow`,`deny`,`non_identity`,`bypass`]}).coerce(`decision`,e=>h(e,`decision`,`text`)).option(`exclude`,{type:`string`,description:`Rules evaluated with a NOT logical operator. To match the policy, a user cannot meet any of the Exclude rules. Provide as a JSON array of objects or @path/to/file.json.`}).option(`include`,{type:`string`,description:`Rules evaluated with an OR logical operator. A user needs to meet only one of the Include rules. Provide as a JSON array of objects or @path/to/file.json.`}).option(`name`,{type:`string`,description:`The name of the Access policy.`}).option(`require`,{type:`string`,description:`Rules evaluated with an AND logical operator. To match the policy, a user must meet all of the Require rules. Provide as a JSON array of objects or @path/to/file.json.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const Hn={command:`update <policy-id>`,describe:`Update an Access reusable policy`,builder:Vn,handler:async e=>u({command:`zero-trust access policies update`,classification:{safeFlags:[`approval-required`,`isolation-required`,`mfa-config-mfa-disabled`,`purpose-justification-required`,`decision`,`dry-run`]}},e,async()=>{if(e.dryRun){let t=await i();c({command:`cf zero-trust access policies update`,method:`PUT`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/access/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?m({approval_groups:p(e[`approval-groups`],`approval-groups`),approval_required:e[`approval-required`],connection_rules:{rdp:{allowed_clipboard_local_to_remote_formats:e[`connection-rules-rdp-allowed-clipboard-local-to-remote-formats`],allowed_clipboard_remote_to_local_formats:e[`connection-rules-rdp-allowed-clipboard-remote-to-local-formats`]}},isolation_required:e[`isolation-required`],mfa_config:{allowed_authenticators:e[`mfa-config-allowed-authenticators`],mfa_disabled:e[`mfa-config-mfa-disabled`],session_duration:h(e[`mfa-config-session-duration`],`mfa-config-session-duration`,`text`)},purpose_justification_prompt:h(e[`purpose-justification-prompt`],`purpose-justification-prompt`,`text`),purpose_justification_required:e[`purpose-justification-required`],session_duration:h(e[`session-duration`],`session-duration`,`text`),decision:e.decision,exclude:p(e.exclude,`exclude`),include:p(e.include,`include`),name:h(e.name,`name`,`text`),require:p(e.require,`require`)}):f(e.body)});return}let n=await r(e),a=e.local?t:await o();if(e.accountId=a,e.body){let t=f(e.body),r=await l(`Updating`,async()=>n.send(E,{body:t,account_id:a,policy_id:e[`policy-id`]}));s(r,{successLabel:`Updated`});return}if(e.decision===void 0&&(e.decision=await v(`decision`,`The action Access will take if a user matches this policy. Infrastructure application policies can only use the Allow action.`,[`allow`,`deny`,`non_identity`,`bypass`])),e.include===void 0)throw Error(`--include is required (or pass --body with this field set).`);e.name===void 0&&(e.name=await _(`name`,`The name of the Access policy.`));let u=m({approval_groups:p(e[`approval-groups`],`approval-groups`),approval_required:e[`approval-required`],connection_rules:{rdp:{allowed_clipboard_local_to_remote_formats:e[`connection-rules-rdp-allowed-clipboard-local-to-remote-formats`],allowed_clipboard_remote_to_local_formats:e[`connection-rules-rdp-allowed-clipboard-remote-to-local-formats`]}},isolation_required:e[`isolation-required`],mfa_config:{allowed_authenticators:e[`mfa-config-allowed-authenticators`],mfa_disabled:e[`mfa-config-mfa-disabled`],session_duration:h(e[`mfa-config-session-duration`],`mfa-config-session-duration`,`text`)},purpose_justification_prompt:h(e[`purpose-justification-prompt`],`purpose-justification-prompt`,`text`),purpose_justification_required:e[`purpose-justification-required`],session_duration:h(e[`session-duration`],`session-duration`,`text`),decision:e.decision,exclude:p(e.exclude,`exclude`),include:p(e.include,`include`),name:h(e.name,`name`,`text`),require:p(e.require,`require`)}),d=await l(`Updating`,async()=>n.send(E,{body:u,account_id:a,policy_id:e[`policy-id`]}));s(d,{successLabel:`Updated`})})},Un={command:`policies`,describe:`Operations for access.policies`,builder:e=>e.command(jn).command(Pn).command(Ln).command(Bn).command(Hn).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var D={method:`POST`,path:t=>e`/${t.account_or_zone}/${t.account_or_zone_id}/access/groups`,body:`json`};function Wn(e){return e.usage(`$0 zero-trust access rule-groups create
101
101
 
102
102
  Creates a new Access group.`).option(`exclude`,{type:`string`,description:`Rules evaluated with a NOT logical operator. To match a policy, a user cannot meet any of the Exclude rules. Provide as a JSON array of objects or @path/to/file.json.`}).option(`include`,{type:`string`,description:`Rules evaluated with an OR logical operator. A user needs to meet only one of the Include rules. Provide as a JSON array of objects or @path/to/file.json.`}).option(`is-default`,{type:`boolean`,description:`Whether this is the default group`}).option(`name`,{type:`string`,description:`The name of the Access group.`}).option(`require`,{type:`string`,description:`Rules evaluated with an AND logical operator. To match a policy, a user must meet all of the Require rules. Provide as a JSON array of objects or @path/to/file.json.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const Gn={command:`create`,describe:`Create an Access group`,builder:Wn,handler:async e=>u({command:`zero-trust access rule-groups create`,classification:{safeFlags:[`is-default`,`dry-run`]}},e,async()=>{if(e.dryRun){let t=e.zone===void 0?await i():void 0,n=e.zone===void 0?`accounts`:`zones`,r=e.zone??t??`<account-id>`;c({command:`cf zero-trust access rule-groups create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/${n}/${r}/access/groups`,pathParams:{"account-or-zone":String(n),"account-or-zone-id":String(r)},bodyKind:`json`,body:e.body===void 0?m({exclude:p(e.exclude,`exclude`),include:p(e.include,`include`),is_default:e[`is-default`],name:h(e.name,`name`,`text`),require:p(e.require,`require`)}):f(e.body)});return}let n=await r(e),u=e.zone===void 0?`accounts`:`zones`,d=u===`zones`?await a({zone:e.zone},n,{quiet:e.quiet}):e.local?t:await o();if(u===`zones`?e.zoneId=d:e.accountId=d,e.body){let t=f(e.body),r=await l(`Creating`,async()=>n.send(D,{body:t,account_or_zone:u,account_or_zone_id:d}));s(r,{successLabel:`Created`});return}if(e.include===void 0)throw Error(`--include is required (or pass --body with this field set).`);e.name===void 0&&(e.name=await _(`name`,`The name of the Access group.`));let g=m({exclude:p(e.exclude,`exclude`),include:p(e.include,`include`),is_default:e[`is-default`],name:h(e.name,`name`,`text`),require:p(e.require,`require`)}),v=await l(`Creating`,async()=>n.send(D,{body:g,account_or_zone:u,account_or_zone_id:d}));s(v,{successLabel:`Created`})})};var Kn={method:`DELETE`,path:t=>e`/${t.account_or_zone}/${t.account_or_zone_id}/access/groups/${t.group_id}`};function qn(e){return e.usage(`$0 zero-trust access rule-groups delete <group-id>
103
103
 
104
- Deletes an Access group.`).positional(`group-id`,{type:`string`,description:`UUID.`,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 Jn={command:`delete <group-id>`,describe:`Delete an Access group`,builder:qn,handler:async e=>u({command:`zero-trust access rule-groups delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{if(e.dryRun){let t=e.zone===void 0?await i():void 0,n=e.zone===void 0?`accounts`:`zones`,r=e.zone??t??`<account-id>`;c({command:`cf zero-trust access rule-groups delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/${n}/${r}/access/groups/${e[`group-id`]==null?`<group-id>`:encodeURIComponent(String(e[`group-id`]))}`,pathParams:{"account-or-zone":String(n),"group-id":String(e[`group-id`]??``),"account-or-zone-id":String(r)},bodyKind:`none`});return}let n=await r(e),u=e.zone===void 0?`accounts`:`zones`,d=u===`zones`?await a({zone:e.zone},n,{quiet:e.quiet}):e.local?t:await o();if(u===`zones`?e.zoneId=d:e.accountId=d,!await y({force:!!e.force})){process.stderr.write(`Aborted.
104
+ Deletes an Access group.`).positional(`group-id`,{type:`string`,description:`UUID.`,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 Jn={command:`delete <group-id>`,describe:`Delete an Access group`,builder:qn,handler:async e=>u({command:`zero-trust access rule-groups delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{if(e.dryRun){let t=e.zone===void 0?await i():void 0,n=e.zone===void 0?`accounts`:`zones`,r=e.zone??t??`<account-id>`;c({command:`cf zero-trust access rule-groups delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/${n}/${r}/access/groups/${e[`group-id`]==null?`<group-id>`:encodeURIComponent(String(e[`group-id`]))}`,pathParams:{"account-or-zone":String(n),"account-or-zone-id":String(r),"group-id":String(e[`group-id`]??``)},bodyKind:`none`});return}let n=await r(e),u=e.zone===void 0?`accounts`:`zones`,d=u===`zones`?await a({zone:e.zone},n,{quiet:e.quiet}):e.local?t:await o();if(u===`zones`?e.zoneId=d:e.accountId=d,!await y({force:!!e.force})){process.stderr.write(`Aborted.
105
105
  `);return}let f=await l(`Deleting`,async()=>n.send(Kn,{account_or_zone:u,account_or_zone_id:d,group_id:e[`group-id`]}));s(f,{successLabel:`Deleted`})})};var Yn={method:`GET`,path:t=>e`/${t.account_or_zone}/${t.account_or_zone_id}/access/groups/${t.group_id}`};function Xn(e){return e.usage(`$0 zero-trust access rule-groups get <group-id>
106
106
 
107
- Fetches a single Access group.`).positional(`group-id`,{type:`string`,description:`UUID.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const Zn={command:`get <group-id>`,describe:`Get an Access group`,builder:Xn,handler:async e=>u({command:`zero-trust access rule-groups get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=e.zone===void 0?await i():void 0,n=e.zone===void 0?`accounts`:`zones`,r=e.zone??t??`<account-id>`;c({command:`cf zero-trust access rule-groups get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/${n}/${r}/access/groups/${e[`group-id`]==null?`<group-id>`:encodeURIComponent(String(e[`group-id`]))}`,pathParams:{"account-or-zone":String(n),"group-id":String(e[`group-id`]??``),"account-or-zone-id":String(r)},bodyKind:`none`});return}let n=await r(e),u=e.zone===void 0?`accounts`:`zones`,d=u===`zones`?await a({zone:e.zone},n,{quiet:e.quiet}):e.local?t:await o();u===`zones`?e.zoneId=d:e.accountId=d;let f=await l(`Loading`,async()=>n.send(Yn,{account_or_zone:u,account_or_zone_id:d,group_id:e[`group-id`]}));s(f,{successLabel:`Loaded`})})};var Qn={method:`GET`,path:t=>e`/${t.account_or_zone}/${t.account_or_zone_id}/access/groups`,query:[`name`,`search`,`page`,`per_page`]};function $n(e){return e.usage(`$0 zero-trust access rule-groups list
107
+ Fetches a single Access group.`).positional(`group-id`,{type:`string`,description:`UUID.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const Zn={command:`get <group-id>`,describe:`Get an Access group`,builder:Xn,handler:async e=>u({command:`zero-trust access rule-groups get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=e.zone===void 0?await i():void 0,n=e.zone===void 0?`accounts`:`zones`,r=e.zone??t??`<account-id>`;c({command:`cf zero-trust access rule-groups get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/${n}/${r}/access/groups/${e[`group-id`]==null?`<group-id>`:encodeURIComponent(String(e[`group-id`]))}`,pathParams:{"account-or-zone":String(n),"account-or-zone-id":String(r),"group-id":String(e[`group-id`]??``)},bodyKind:`none`});return}let n=await r(e),u=e.zone===void 0?`accounts`:`zones`,d=u===`zones`?await a({zone:e.zone},n,{quiet:e.quiet}):e.local?t:await o();u===`zones`?e.zoneId=d:e.accountId=d;let f=await l(`Loading`,async()=>n.send(Yn,{account_or_zone:u,account_or_zone_id:d,group_id:e[`group-id`]}));s(f,{successLabel:`Loaded`})})};var Qn={method:`GET`,path:t=>e`/${t.account_or_zone}/${t.account_or_zone_id}/access/groups`,query:[`name`,`search`,`page`,`per_page`]};function $n(e){return e.usage(`$0 zero-trust access rule-groups list
108
108
 
109
109
  Lists all Access groups.`).option(`name`,{type:`string`,description:`The name of the group.`}).option(`search`,{type:`string`,description:`Search for groups by other listed query parameters.`}).option(`page`,{type:`number`,description:`Page number of results.`}).option(`per-page`,{type:`number`,description:`Number of results per page.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const er={command:`list`,describe:`List Access groups`,builder:$n,handler:async e=>u({command:`zero-trust access rule-groups list`,classification:{safeFlags:[`dry-run`]}},e,async()=>{let n={name:e.name,search:e.search,page:e.page,per_page:e[`per-page`]};if(e.dryRun){let t=e.zone===void 0?await i():void 0,r=e.zone===void 0?`accounts`:`zones`,a=e.zone??t??`<account-id>`;c({command:`cf zero-trust access rule-groups list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/${r}/${a}/access/groups`,pathParams:{"account-or-zone":String(r),"account-or-zone-id":String(a)},query:n,bodyKind:`none`});return}let u=await r(e),d=e.zone===void 0?`accounts`:`zones`,f=d===`zones`?await a({zone:e.zone},u,{quiet:e.quiet}):e.local?t:await o();d===`zones`?e.zoneId=f:e.accountId=f;let p=await l(`Loading`,async()=>u.send(Qn,{account_or_zone:d,account_or_zone_id:f,...n}));s(p,{successLabel:`Loaded`})})};var O={method:`PUT`,path:t=>e`/${t.account_or_zone}/${t.account_or_zone_id}/access/groups/${t.group_id}`,body:`json`};function tr(e){return e.usage(`$0 zero-trust access rule-groups update <group-id>
110
110
 
111
- Updates a configured Access group.`).positional(`group-id`,{type:`string`,description:`UUID.`,demandOption:!0}).option(`exclude`,{type:`string`,description:`Rules evaluated with a NOT logical operator. To match a policy, a user cannot meet any of the Exclude rules. Provide as a JSON array of objects or @path/to/file.json.`}).option(`include`,{type:`string`,description:`Rules evaluated with an OR logical operator. A user needs to meet only one of the Include rules. Provide as a JSON array of objects or @path/to/file.json.`}).option(`is-default`,{type:`boolean`,description:`Whether this is the default group`}).option(`name`,{type:`string`,description:`The name of the Access group.`}).option(`require`,{type:`string`,description:`Rules evaluated with an AND logical operator. To match a policy, a user must meet all of the Require rules. Provide as a JSON array of objects or @path/to/file.json.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const nr={command:`update <group-id>`,describe:`Update an Access group`,builder:tr,handler:async e=>u({command:`zero-trust access rule-groups update`,classification:{safeFlags:[`is-default`,`dry-run`]}},e,async()=>{if(e.dryRun){let t=e.zone===void 0?await i():void 0,n=e.zone===void 0?`accounts`:`zones`,r=e.zone??t??`<account-id>`;c({command:`cf zero-trust access rule-groups update`,method:`PUT`,url:`https://api.cloudflare.com/client/v4/${n}/${r}/access/groups/${e[`group-id`]==null?`<group-id>`:encodeURIComponent(String(e[`group-id`]))}`,pathParams:{"account-or-zone":String(n),"group-id":String(e[`group-id`]??``),"account-or-zone-id":String(r)},bodyKind:`json`,body:e.body===void 0?m({exclude:p(e.exclude,`exclude`),include:p(e.include,`include`),is_default:e[`is-default`],name:h(e.name,`name`,`text`),require:p(e.require,`require`)}):f(e.body)});return}let n=await r(e),u=e.zone===void 0?`accounts`:`zones`,d=u===`zones`?await a({zone:e.zone},n,{quiet:e.quiet}):e.local?t:await o();if(u===`zones`?e.zoneId=d:e.accountId=d,e.body){let t=f(e.body),r=await l(`Updating`,async()=>n.send(O,{body:t,account_or_zone:u,account_or_zone_id:d,group_id:e[`group-id`]}));s(r,{successLabel:`Updated`});return}if(e.include===void 0)throw Error(`--include is required (or pass --body with this field set).`);e.name===void 0&&(e.name=await _(`name`,`The name of the Access group.`));let g=m({exclude:p(e.exclude,`exclude`),include:p(e.include,`include`),is_default:e[`is-default`],name:h(e.name,`name`,`text`),require:p(e.require,`require`)}),v=await l(`Updating`,async()=>n.send(O,{body:g,account_or_zone:u,account_or_zone_id:d,group_id:e[`group-id`]}));s(v,{successLabel:`Updated`})})},rr={command:`rule-groups`,describe:`Operations for access.rule-groups`,builder:e=>e.command(Gn).command(Jn).command(Zn).command(er).command(nr).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var ir={method:`GET`,path:t=>e`/accounts/${t.account_id}/access/saml_certificates/${t.saml_cert_set_id}/pem`,response:!1,errors:{404:`NotFoundError`}};function ar(e){return e.usage(`$0 zero-trust access saml-encryption-certificates get-pem <saml-cert-set-id>
111
+ Updates a configured Access group.`).positional(`group-id`,{type:`string`,description:`UUID.`,demandOption:!0}).option(`exclude`,{type:`string`,description:`Rules evaluated with a NOT logical operator. To match a policy, a user cannot meet any of the Exclude rules. Provide as a JSON array of objects or @path/to/file.json.`}).option(`include`,{type:`string`,description:`Rules evaluated with an OR logical operator. A user needs to meet only one of the Include rules. Provide as a JSON array of objects or @path/to/file.json.`}).option(`is-default`,{type:`boolean`,description:`Whether this is the default group`}).option(`name`,{type:`string`,description:`The name of the Access group.`}).option(`require`,{type:`string`,description:`Rules evaluated with an AND logical operator. To match a policy, a user must meet all of the Require rules. Provide as a JSON array of objects or @path/to/file.json.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const nr={command:`update <group-id>`,describe:`Update an Access group`,builder:tr,handler:async e=>u({command:`zero-trust access rule-groups update`,classification:{safeFlags:[`is-default`,`dry-run`]}},e,async()=>{if(e.dryRun){let t=e.zone===void 0?await i():void 0,n=e.zone===void 0?`accounts`:`zones`,r=e.zone??t??`<account-id>`;c({command:`cf zero-trust access rule-groups update`,method:`PUT`,url:`https://api.cloudflare.com/client/v4/${n}/${r}/access/groups/${e[`group-id`]==null?`<group-id>`:encodeURIComponent(String(e[`group-id`]))}`,pathParams:{"account-or-zone":String(n),"account-or-zone-id":String(r),"group-id":String(e[`group-id`]??``)},bodyKind:`json`,body:e.body===void 0?m({exclude:p(e.exclude,`exclude`),include:p(e.include,`include`),is_default:e[`is-default`],name:h(e.name,`name`,`text`),require:p(e.require,`require`)}):f(e.body)});return}let n=await r(e),u=e.zone===void 0?`accounts`:`zones`,d=u===`zones`?await a({zone:e.zone},n,{quiet:e.quiet}):e.local?t:await o();if(u===`zones`?e.zoneId=d:e.accountId=d,e.body){let t=f(e.body),r=await l(`Updating`,async()=>n.send(O,{body:t,account_or_zone:u,account_or_zone_id:d,group_id:e[`group-id`]}));s(r,{successLabel:`Updated`});return}if(e.include===void 0)throw Error(`--include is required (or pass --body with this field set).`);e.name===void 0&&(e.name=await _(`name`,`The name of the Access group.`));let g=m({exclude:p(e.exclude,`exclude`),include:p(e.include,`include`),is_default:e[`is-default`],name:h(e.name,`name`,`text`),require:p(e.require,`require`)}),v=await l(`Updating`,async()=>n.send(O,{body:g,account_or_zone:u,account_or_zone_id:d,group_id:e[`group-id`]}));s(v,{successLabel:`Updated`})})},rr={command:`rule-groups`,describe:`Operations for access.rule-groups`,builder:e=>e.command(Gn).command(Jn).command(Zn).command(er).command(nr).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var ir={method:`GET`,path:t=>e`/accounts/${t.account_id}/access/saml_certificates/${t.saml_cert_set_id}/pem`,response:!1,errors:{404:`NotFoundError`}};function ar(e){return e.usage(`$0 zero-trust access saml-encryption-certificates get-pem <saml-cert-set-id>
112
112
 
113
113
  Downloads the current SAML encryption certificate's public key in PEM format for the specified certificate set. This endpoint is useful for providing the certificate to Identity Providers for SAML assertion encryption configuration.`).positional(`saml-cert-set-id`,{type:`string`,description:`UID of the SAML certificate set.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const or={command:`get-pem <saml-cert-set-id>`,describe:`Download current certificate in PEM format`,builder:ar,handler:async e=>u({command:`zero-trust access saml-encryption-certificates get-pem`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await i();c({command:`cf zero-trust access saml-encryption-certificates get-pem`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/access/saml_certificates/${e[`saml-cert-set-id`]==null?`<saml-cert-set-id>`:encodeURIComponent(String(e[`saml-cert-set-id`]))}/pem`,pathParams:{"saml-cert-set-id":String(e[`saml-cert-set-id`]??``)},bodyKind:`none`});return}let n=await r(e),a=e.local?t:await o();e.accountId=a;let u=await l(`Loading`,async()=>n.send(ir,{account_id:a,saml_cert_set_id:e[`saml-cert-set-id`]}));s(u,{successLabel:`Loaded`})})};var sr={method:`GET`,path:t=>e`/accounts/${t.account_id}/access/saml_certificates/${t.saml_cert_set_id}`,errors:{404:`NotFoundError`}};function cr(e){return e.usage(`$0 zero-trust access saml-encryption-certificates get <saml-cert-set-id>
114
114
 
@@ -120,10 +120,10 @@ Rotates the SAML encryption certificates within the specified certificate set. T
120
120
 
121
121
  Generates a new service token. **Note:** This is the only time you can get the Client Secret. If you lose the Client Secret, you will have to rotate the Client Secret or create a new service token.`).option(`client-secret-version`,{type:`number`,description:"A version number identifying the current `client_secret` associated with the service token. Incrementing it triggers a rotation; the previous secret will still be accepted until the time indicated by `previous_client_secret_expires_at`.",default:1}).option(`duration`,{type:`string`,description:"The duration for how long the service token will be valid. Must be in the format `300ms` or `2h45m`, or the special value `forever` for non-expiring tokens. Valid time units are: ns, us (or µs), ms, s, m, h. The default is 1 year in hours (8760h).",default:`8760h`}).option(`enabled`,{type:`boolean`,description:"Whether the service token is enabled. A disabled service token cannot be used to authenticate; both its current and previous `client_secret` stop being accepted, but the token itself is preserved and can be re-enabled at any time. Defaults to enabled when omitted on create."}).option(`name`,{type:`string`,description:`The name of the service token.`}).option(`previous-client-secret-expires-at`,{type:`string`,description:"The expiration of the previous `client_secret`. This can be modified at any point after a rotation. For example, you may extend it further into the future if you need more time to update services with the new secret; or move it into the past to immediately invalidate the previous token in case of compromise."}).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 vr={command:`create`,describe:`Create a service token`,builder:_r,handler:async e=>u({command:`zero-trust access service-tokens create`,classification:{safeFlags:[`enabled`,`dry-run`]}},e,async()=>{if(e.dryRun){let t=e.zone===void 0?await i():void 0,n=e.zone===void 0?`accounts`:`zones`,r=e.zone??t??`<account-id>`;c({command:`cf zero-trust access service-tokens create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/${n}/${r}/access/service_tokens`,pathParams:{"account-or-zone":String(n),"account-or-zone-id":String(r)},bodyKind:`json`,body:e.body===void 0?m({client_secret_version:e[`client-secret-version`],duration:h(e.duration,`duration`,`text`),enabled:e.enabled,name:h(e.name,`name`,`text`),previous_client_secret_expires_at:h(e[`previous-client-secret-expires-at`],`previous-client-secret-expires-at`,`text`)}):f(e.body)});return}let n=await r(e),u=e.zone===void 0?`accounts`:`zones`,d=u===`zones`?await a({zone:e.zone},n,{quiet:e.quiet}):e.local?t:await o();if(u===`zones`?e.zoneId=d:e.accountId=d,e.body){let t=f(e.body),r=await l(`Creating`,async()=>n.send(k,{body:t,account_or_zone:u,account_or_zone_id:d}));s(r,{successLabel:`Created`});return}e.name===void 0&&(e.name=await _(`name`,`The name of the service token.`));let p=m({client_secret_version:e[`client-secret-version`],duration:h(e.duration,`duration`,`text`),enabled:e.enabled,name:h(e.name,`name`,`text`),previous_client_secret_expires_at:h(e[`previous-client-secret-expires-at`],`previous-client-secret-expires-at`,`text`)}),g=await l(`Creating`,async()=>n.send(k,{body:p,account_or_zone:u,account_or_zone_id:d}));s(g,{successLabel:`Created`})})};var yr={method:`DELETE`,path:t=>e`/${t.account_or_zone}/${t.account_or_zone_id}/access/service_tokens/${t.service_token_id}`};function br(e){return e.usage(`$0 zero-trust access service-tokens delete <service-token-id>
122
122
 
123
- Deletes a service token.`).positional(`service-token-id`,{type:`string`,description:`UUID.`,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 xr={command:`delete <service-token-id>`,describe:`Delete a service token`,builder:br,handler:async e=>u({command:`zero-trust access service-tokens delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{if(e.dryRun){let t=e.zone===void 0?await i():void 0,n=e.zone===void 0?`accounts`:`zones`,r=e.zone??t??`<account-id>`;c({command:`cf zero-trust access service-tokens delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/${n}/${r}/access/service_tokens/${e[`service-token-id`]==null?`<service-token-id>`:encodeURIComponent(String(e[`service-token-id`]))}`,pathParams:{"account-or-zone":String(n),"service-token-id":String(e[`service-token-id`]??``),"account-or-zone-id":String(r)},bodyKind:`none`});return}let n=await r(e),u=e.zone===void 0?`accounts`:`zones`,d=u===`zones`?await a({zone:e.zone},n,{quiet:e.quiet}):e.local?t:await o();if(u===`zones`?e.zoneId=d:e.accountId=d,!await y({force:!!e.force})){process.stderr.write(`Aborted.
123
+ Deletes a service token.`).positional(`service-token-id`,{type:`string`,description:`UUID.`,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 xr={command:`delete <service-token-id>`,describe:`Delete a service token`,builder:br,handler:async e=>u({command:`zero-trust access service-tokens delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{if(e.dryRun){let t=e.zone===void 0?await i():void 0,n=e.zone===void 0?`accounts`:`zones`,r=e.zone??t??`<account-id>`;c({command:`cf zero-trust access service-tokens delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/${n}/${r}/access/service_tokens/${e[`service-token-id`]==null?`<service-token-id>`:encodeURIComponent(String(e[`service-token-id`]))}`,pathParams:{"account-or-zone":String(n),"account-or-zone-id":String(r),"service-token-id":String(e[`service-token-id`]??``)},bodyKind:`none`});return}let n=await r(e),u=e.zone===void 0?`accounts`:`zones`,d=u===`zones`?await a({zone:e.zone},n,{quiet:e.quiet}):e.local?t:await o();if(u===`zones`?e.zoneId=d:e.accountId=d,!await y({force:!!e.force})){process.stderr.write(`Aborted.
124
124
  `);return}let f=await l(`Deleting`,async()=>n.send(yr,{account_or_zone:u,account_or_zone_id:d,service_token_id:e[`service-token-id`]}));s(f,{successLabel:`Deleted`})})};var Sr={method:`GET`,path:t=>e`/${t.account_or_zone}/${t.account_or_zone_id}/access/service_tokens/${t.service_token_id}`};function Cr(e){return e.usage(`$0 zero-trust access service-tokens get <service-token-id>
125
125
 
126
- Fetches a single service token.`).positional(`service-token-id`,{type:`string`,description:`UUID.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const wr={command:`get <service-token-id>`,describe:`Get a service token`,builder:Cr,handler:async e=>u({command:`zero-trust access service-tokens get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=e.zone===void 0?await i():void 0,n=e.zone===void 0?`accounts`:`zones`,r=e.zone??t??`<account-id>`;c({command:`cf zero-trust access service-tokens get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/${n}/${r}/access/service_tokens/${e[`service-token-id`]==null?`<service-token-id>`:encodeURIComponent(String(e[`service-token-id`]))}`,pathParams:{"account-or-zone":String(n),"service-token-id":String(e[`service-token-id`]??``),"account-or-zone-id":String(r)},bodyKind:`none`});return}let n=await r(e),u=e.zone===void 0?`accounts`:`zones`,d=u===`zones`?await a({zone:e.zone},n,{quiet:e.quiet}):e.local?t:await o();u===`zones`?e.zoneId=d:e.accountId=d;let f=await l(`Loading`,async()=>n.send(Sr,{account_or_zone:u,account_or_zone_id:d,service_token_id:e[`service-token-id`]}));s(f,{successLabel:`Loaded`})})};var Tr={method:`GET`,path:t=>e`/${t.account_or_zone}/${t.account_or_zone_id}/access/service_tokens`,query:[`name`,`search`,`page`,`per_page`]};function Er(e){return e.usage(`$0 zero-trust access service-tokens list
126
+ Fetches a single service token.`).positional(`service-token-id`,{type:`string`,description:`UUID.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const wr={command:`get <service-token-id>`,describe:`Get a service token`,builder:Cr,handler:async e=>u({command:`zero-trust access service-tokens get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=e.zone===void 0?await i():void 0,n=e.zone===void 0?`accounts`:`zones`,r=e.zone??t??`<account-id>`;c({command:`cf zero-trust access service-tokens get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/${n}/${r}/access/service_tokens/${e[`service-token-id`]==null?`<service-token-id>`:encodeURIComponent(String(e[`service-token-id`]))}`,pathParams:{"account-or-zone":String(n),"account-or-zone-id":String(r),"service-token-id":String(e[`service-token-id`]??``)},bodyKind:`none`});return}let n=await r(e),u=e.zone===void 0?`accounts`:`zones`,d=u===`zones`?await a({zone:e.zone},n,{quiet:e.quiet}):e.local?t:await o();u===`zones`?e.zoneId=d:e.accountId=d;let f=await l(`Loading`,async()=>n.send(Sr,{account_or_zone:u,account_or_zone_id:d,service_token_id:e[`service-token-id`]}));s(f,{successLabel:`Loaded`})})};var Tr={method:`GET`,path:t=>e`/${t.account_or_zone}/${t.account_or_zone_id}/access/service_tokens`,query:[`name`,`search`,`page`,`per_page`]};function Er(e){return e.usage(`$0 zero-trust access service-tokens list
127
127
 
128
128
  Lists all service tokens.`).option(`name`,{type:`string`,description:`The name of the service token.`}).option(`search`,{type:`string`,description:`Search for service tokens by other listed query parameters.`}).option(`page`,{type:`number`,description:`Page number of results.`}).option(`per-page`,{type:`number`,description:`Number of results per page.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const Dr={command:`list`,describe:`List service tokens`,builder:Er,handler:async e=>u({command:`zero-trust access service-tokens list`,classification:{safeFlags:[`dry-run`]}},e,async()=>{let n={name:e.name,search:e.search,page:e.page,per_page:e[`per-page`]};if(e.dryRun){let t=e.zone===void 0?await i():void 0,r=e.zone===void 0?`accounts`:`zones`,a=e.zone??t??`<account-id>`;c({command:`cf zero-trust access service-tokens list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/${r}/${a}/access/service_tokens`,pathParams:{"account-or-zone":String(r),"account-or-zone-id":String(a)},query:n,bodyKind:`none`});return}let u=await r(e),d=e.zone===void 0?`accounts`:`zones`,f=d===`zones`?await a({zone:e.zone},u,{quiet:e.quiet}):e.local?t:await o();d===`zones`?e.zoneId=f:e.accountId=f;let p=await l(`Loading`,async()=>u.send(Tr,{account_or_zone:d,account_or_zone_id:f,...n}));s(p,{successLabel:`Loaded`})})};var Or={method:`POST`,path:t=>e`/accounts/${t.account_id}/access/service_tokens/${t.service_token_id}/refresh`};function kr(e){return e.usage(`$0 zero-trust access service-tokens refresh <service-token-id>
129
129
 
@@ -131,7 +131,7 @@ Refreshes the expiration of a service token.`).positional(`service-token-id`,{ty
131
131
 
132
132
  Generates a new Client Secret for a service token and revokes the old one.`).positional(`service-token-id`,{type:`string`,description:`UUID.`,demandOption:!0}).option(`previous-client-secret-expires-at`,{type:`string`,description:"The expiration of the previous `client_secret`. If not provided, it defaults to the current timestamp in order to immediately expire the previous secret."}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const Mr={command:`rotate <service-token-id>`,describe:`Rotate a service token`,builder:jr,handler:async e=>u({command:`zero-trust access service-tokens rotate`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await i();c({command:`cf zero-trust access service-tokens rotate`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/access/service_tokens/${e[`service-token-id`]==null?`<service-token-id>`:encodeURIComponent(String(e[`service-token-id`]))}/rotate`,pathParams:{"service-token-id":String(e[`service-token-id`]??``)},bodyKind:`json`,body:e.body===void 0?m({previous_client_secret_expires_at:h(e[`previous-client-secret-expires-at`],`previous-client-secret-expires-at`,`text`)}):f(e.body)});return}let n=await r(e),a=e.local?t:await o();if(e.accountId=a,e.body){let t=f(e.body),r=await l(`Creating`,async()=>n.send(A,{body:t,account_id:a,service_token_id:e[`service-token-id`]}));s(r,{successLabel:`Created`});return}let u=m({previous_client_secret_expires_at:h(e[`previous-client-secret-expires-at`],`previous-client-secret-expires-at`,`text`)}),d=await l(`Creating`,async()=>n.send(A,{body:u,account_id:a,service_token_id:e[`service-token-id`]}));s(d,{successLabel:`Created`})})};var j={method:`PUT`,path:t=>e`/${t.account_or_zone}/${t.account_or_zone_id}/access/service_tokens/${t.service_token_id}`,body:`json`};function Nr(e){return e.usage(`$0 zero-trust access service-tokens update <service-token-id>
133
133
 
134
- Updates a configured service token.`).positional(`service-token-id`,{type:`string`,description:`UUID.`,demandOption:!0}).option(`client-secret-version`,{type:`number`,description:"A version number identifying the current `client_secret` associated with the service token. Incrementing it triggers a rotation; the previous secret will still be accepted until the time indicated by `previous_client_secret_expires_at`."}).option(`duration`,{type:`string`,description:"The duration for how long the service token will be valid. Must be in the format `300ms` or `2h45m`, or the special value `forever` for non-expiring tokens. Valid time units are: ns, us (or µs), ms, s, m, h. The default is 1 year in hours (8760h)."}).option(`enabled`,{type:`boolean`,description:"Whether the service token is enabled. A disabled service token cannot be used to authenticate; both its current and previous `client_secret` stop being accepted, but the token itself is preserved and can be re-enabled at any time. Defaults to enabled when omitted on create."}).option(`name`,{type:`string`,description:`The name of the service token.`}).option(`previous-client-secret-expires-at`,{type:`string`,description:"The expiration of the previous `client_secret`. This can be modified at any point after a rotation. For example, you may extend it further into the future if you need more time to update services with the new secret; or move it into the past to immediately invalidate the previous token in case of compromise."}).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 Pr={command:`update <service-token-id>`,describe:`Update a service token`,builder:Nr,handler:async e=>u({command:`zero-trust access service-tokens update`,classification:{safeFlags:[`enabled`,`dry-run`]}},e,async()=>{if(e.dryRun){let t=e.zone===void 0?await i():void 0,n=e.zone===void 0?`accounts`:`zones`,r=e.zone??t??`<account-id>`;c({command:`cf zero-trust access service-tokens update`,method:`PUT`,url:`https://api.cloudflare.com/client/v4/${n}/${r}/access/service_tokens/${e[`service-token-id`]==null?`<service-token-id>`:encodeURIComponent(String(e[`service-token-id`]))}`,pathParams:{"account-or-zone":String(n),"service-token-id":String(e[`service-token-id`]??``),"account-or-zone-id":String(r)},bodyKind:`json`,body:e.body===void 0?m({client_secret_version:e[`client-secret-version`],duration:h(e.duration,`duration`,`text`),enabled:e.enabled,name:h(e.name,`name`,`text`),previous_client_secret_expires_at:h(e[`previous-client-secret-expires-at`],`previous-client-secret-expires-at`,`text`)}):f(e.body)});return}let n=await r(e),u=e.zone===void 0?`accounts`:`zones`,d=u===`zones`?await a({zone:e.zone},n,{quiet:e.quiet}):e.local?t:await o();if(u===`zones`?e.zoneId=d:e.accountId=d,e.body){let t=f(e.body),r=await l(`Updating`,async()=>n.send(j,{body:t,account_or_zone:u,account_or_zone_id:d,service_token_id:e[`service-token-id`]}));s(r,{successLabel:`Updated`});return}let p=m({client_secret_version:e[`client-secret-version`],duration:h(e.duration,`duration`,`text`),enabled:e.enabled,name:h(e.name,`name`,`text`),previous_client_secret_expires_at:h(e[`previous-client-secret-expires-at`],`previous-client-secret-expires-at`,`text`)}),g=await l(`Updating`,async()=>n.send(j,{body:p,account_or_zone:u,account_or_zone_id:d,service_token_id:e[`service-token-id`]}));s(g,{successLabel:`Updated`})})},Fr={command:`service-tokens`,describe:`Operations for access.service-tokens`,builder:e=>e.command(vr).command(xr).command(wr).command(Dr).command(Ar).command(Mr).command(Pr).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var Ir={method:`GET`,path:t=>e`/accounts/${t.account_id}/access/keys`};function Lr(e){return e.usage(`$0 zero-trust access signing-keys get
134
+ Updates a configured service token.`).positional(`service-token-id`,{type:`string`,description:`UUID.`,demandOption:!0}).option(`client-secret-version`,{type:`number`,description:"A version number identifying the current `client_secret` associated with the service token. Incrementing it triggers a rotation; the previous secret will still be accepted until the time indicated by `previous_client_secret_expires_at`."}).option(`duration`,{type:`string`,description:"The duration for how long the service token will be valid. Must be in the format `300ms` or `2h45m`, or the special value `forever` for non-expiring tokens. Valid time units are: ns, us (or µs), ms, s, m, h. The default is 1 year in hours (8760h)."}).option(`enabled`,{type:`boolean`,description:"Whether the service token is enabled. A disabled service token cannot be used to authenticate; both its current and previous `client_secret` stop being accepted, but the token itself is preserved and can be re-enabled at any time. Defaults to enabled when omitted on create."}).option(`name`,{type:`string`,description:`The name of the service token.`}).option(`previous-client-secret-expires-at`,{type:`string`,description:"The expiration of the previous `client_secret`. This can be modified at any point after a rotation. For example, you may extend it further into the future if you need more time to update services with the new secret; or move it into the past to immediately invalidate the previous token in case of compromise."}).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 Pr={command:`update <service-token-id>`,describe:`Update a service token`,builder:Nr,handler:async e=>u({command:`zero-trust access service-tokens update`,classification:{safeFlags:[`enabled`,`dry-run`]}},e,async()=>{if(e.dryRun){let t=e.zone===void 0?await i():void 0,n=e.zone===void 0?`accounts`:`zones`,r=e.zone??t??`<account-id>`;c({command:`cf zero-trust access service-tokens update`,method:`PUT`,url:`https://api.cloudflare.com/client/v4/${n}/${r}/access/service_tokens/${e[`service-token-id`]==null?`<service-token-id>`:encodeURIComponent(String(e[`service-token-id`]))}`,pathParams:{"account-or-zone":String(n),"account-or-zone-id":String(r),"service-token-id":String(e[`service-token-id`]??``)},bodyKind:`json`,body:e.body===void 0?m({client_secret_version:e[`client-secret-version`],duration:h(e.duration,`duration`,`text`),enabled:e.enabled,name:h(e.name,`name`,`text`),previous_client_secret_expires_at:h(e[`previous-client-secret-expires-at`],`previous-client-secret-expires-at`,`text`)}):f(e.body)});return}let n=await r(e),u=e.zone===void 0?`accounts`:`zones`,d=u===`zones`?await a({zone:e.zone},n,{quiet:e.quiet}):e.local?t:await o();if(u===`zones`?e.zoneId=d:e.accountId=d,e.body){let t=f(e.body),r=await l(`Updating`,async()=>n.send(j,{body:t,account_or_zone:u,account_or_zone_id:d,service_token_id:e[`service-token-id`]}));s(r,{successLabel:`Updated`});return}let p=m({client_secret_version:e[`client-secret-version`],duration:h(e.duration,`duration`,`text`),enabled:e.enabled,name:h(e.name,`name`,`text`),previous_client_secret_expires_at:h(e[`previous-client-secret-expires-at`],`previous-client-secret-expires-at`,`text`)}),g=await l(`Updating`,async()=>n.send(j,{body:p,account_or_zone:u,account_or_zone_id:d,service_token_id:e[`service-token-id`]}));s(g,{successLabel:`Updated`})})},Fr={command:`service-tokens`,describe:`Operations for access.service-tokens`,builder:e=>e.command(vr).command(xr).command(wr).command(Dr).command(Ar).command(Mr).command(Pr).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var Ir={method:`GET`,path:t=>e`/accounts/${t.account_id}/access/keys`};function Lr(e){return e.usage(`$0 zero-trust access signing-keys get
135
135
 
136
136
  Gets the Access key rotation settings for an account.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const Rr={command:`get`,describe:`Get the Access key configuration`,builder:Lr,handler:async e=>u({command:`zero-trust access signing-keys get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let e=await i();c({command:`cf zero-trust access signing-keys get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}/access/keys`,pathParams:{},bodyKind:`none`});return}let n=await r(e),a=e.local?t:await o();e.accountId=a;let u=await l(`Loading`,async()=>n.send(Ir,{account_id:a}));s(u,{successLabel:`Loaded`})})};var zr={method:`POST`,path:t=>e`/accounts/${t.account_id}/access/keys/rotate`};function Br(e){return e.usage(`$0 zero-trust access signing-keys rotate
137
137
 
@@ -478,7 +478,7 @@ Updates a configured device managed network.`).positional(`network-id`,{type:`st
478
478
 
479
479
  Generates an account-wide or device-specific uninstall protection override code.`).option(`device-id`,{type:`string`,description:`Physical device ID. Required when scope is device and forbidden when scope is account.`}).option(`duration-hours`,{type:`number`,description:`Number of hours for which the override code should remain valid.`}).option(`scope`,{type:`string`,description:`Whether the code applies to every device in the account or one physical device.`,choices:[`account`,`device`]}).coerce(`scope`,e=>h(e,`scope`,`text`)).option(`type`,{type:`string`,description:`The feature that the override code applies to.`,choices:[`uninstall_protection`]}).coerce(`type`,e=>h(e,`type`,`text`)).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const Gf={command:`create`,describe:`Generate an uninstall protection override code`,builder:Wf,handler:async e=>u({command:`zero-trust devices override-codes create`,classification:{safeFlags:[`scope`,`type`,`dry-run`]}},e,async()=>{if(e.dryRun){let t=await i();c({command:`cf zero-trust devices override-codes create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/devices/override_codes`,pathParams:{},bodyKind:`json`,body:e.body===void 0?m({device_id:h(e[`device-id`],`device-id`,`text`),duration_hours:e[`duration-hours`],scope:e.scope,type:e.type}):f(e.body)});return}let n=await r(e),a=e.local?t:await o();if(e.accountId=a,e.body){let t=f(e.body),r=await l(`Creating`,async()=>n.send(Uf,{body:t,account_id:a}));s(r,{successLabel:`Created`});return}if(e[`duration-hours`]===void 0)throw Error(`--duration-hours is required (or pass --body with this field set).`);e.scope===void 0&&(e.scope=await v(`scope`,`Whether the code applies to every device in the account or one physical device.`,[`account`,`device`])),e.type===void 0&&(e.type=await v(`type`,`The feature that the override code applies to.`,[`uninstall_protection`]));let u=m({device_id:h(e[`device-id`],`device-id`,`text`),duration_hours:e[`duration-hours`],scope:e.scope,type:e.type}),d=await l(`Creating`,async()=>n.send(Uf,{body:u,account_id:a}));s(d,{successLabel:`Created`})})},Kf={command:`override-codes`,describe:`Operations for devices.override-codes`,builder:e=>e.command(Gf).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var qf={method:`POST`,path:t=>e`/accounts/${t.account_id}/devices/posture/integration`,body:`json`};function Jf(e){return e.usage(`$0 zero-trust devices posture integrations create
480
480
 
481
- Create a new device posture integration.`).option(`config-api-url`,{type:`string`,description:`The Workspace One API URL provided in the Workspace One Admin Dashboard.`}).option(`config-auth-url`,{type:`string`,description:`The Workspace One Authorization URL depending on your region.`}).option(`config-client-id`,{type:`string`,description:`The Workspace One client ID provided in the Workspace One Admin Dashboard.`}).option(`config-client-secret`,{type:`string`,description:`The Workspace One client secret provided in the Workspace One Admin Dashboard.`}).option(`config-customer-id`,{type:`string`,description:`The Crowdstrike customer ID.`}).option(`config-client-key`,{type:`string`,description:`The Uptycs client secret.`}).option(`config-access-client-id`,{type:`string`,description:"If present, this id will be passed in the `CF-Access-Client-ID` header when hitting the `api_url`."}).option(`config-access-client-secret`,{type:`string`,description:"If present, this secret will be passed in the `CF-Access-Client-Secret` header when hitting the `api_url`."}).option(`interval`,{type:`string`,description:"The interval between each posture check with the third-party API. Use `m` for minutes (e.g. `5m`) and `h` for hours (e.g. `12h`)."}).option(`name`,{type:`string`,description:`The name of the device posture integration.`}).option(`type`,{type:`string`,description:`The type of device posture integration.`,choices:[`workspace_one`,`crowdstrike_s2s`,`uptycs`,`intune`,`kolide`,`tanium_s2s`,`sentinelone_s2s`,`custom_s2s`]}).coerce(`type`,e=>h(e,`type`,`text`)).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`}).conflicts(`config-api-url`,[`config-customer-id`,`config-client-id`,`config-client-secret`]).conflicts(`config-auth-url`,[`config-customer-id`,`config-client-key`,`config-access-client-id`,`config-access-client-secret`]).implies(`config-auth-url`,[`config-api-url`,`config-client-id`,`config-client-secret`]).conflicts(`config-client-id`,[`config-client-key`,`config-customer-id`,`config-access-client-id`,`config-access-client-secret`,`config-api-url`]).conflicts(`config-client-secret`,[`config-access-client-id`,`config-access-client-secret`,`config-api-url`]).conflicts(`config-customer-id`,[`config-auth-url`,`config-client-id`,`config-api-url`,`config-access-client-id`,`config-access-client-secret`]).conflicts(`config-client-key`,[`config-auth-url`,`config-client-id`,`config-access-client-id`,`config-access-client-secret`]).implies(`config-client-key`,[`config-api-url`,`config-customer-id`,`config-client-secret`]).conflicts(`config-access-client-id`,[`config-auth-url`,`config-client-id`,`config-client-secret`,`config-customer-id`,`config-client-key`]).implies(`config-access-client-id`,[`config-api-url`,`config-access-client-secret`]).conflicts(`config-access-client-secret`,[`config-auth-url`,`config-client-id`,`config-client-secret`,`config-customer-id`,`config-client-key`]).implies(`config-access-client-secret`,[`config-api-url`,`config-access-client-id`])}const Yf={command:`create`,describe:`Create posture integration`,builder:Jf,handler:async e=>u({command:`zero-trust devices posture integrations create`,classification:{safeFlags:[`type`,`dry-run`]}},e,async()=>{if(e.dryRun){let t=await i();c({command:`cf zero-trust devices posture integrations create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/devices/posture/integration`,pathParams:{},bodyKind:`json`,body:e.body===void 0?m({config:{api_url:h(e[`config-api-url`],`config-api-url`,`text`),auth_url:h(e[`config-auth-url`],`config-auth-url`,`text`),client_id:h(e[`config-client-id`],`config-client-id`,`text`),client_secret:h(e[`config-client-secret`],`config-client-secret`,`text`),customer_id:h(e[`config-customer-id`],`config-customer-id`,`text`),client_key:h(e[`config-client-key`],`config-client-key`,`text`),access_client_id:h(e[`config-access-client-id`],`config-access-client-id`,`text`),access_client_secret:h(e[`config-access-client-secret`],`config-access-client-secret`,`text`)},interval:h(e.interval,`interval`,`text`),name:h(e.name,`name`,`text`),type:e.type}):f(e.body),sensitiveBodyPaths:[[`config`,`client_secret`],[`config`,`client_key`],[`config`,`access_client_secret`]]});return}let n=await r(e),a=e.local?t:await o();if(e.accountId=a,e.body){let t=f(e.body),r=await l(`Creating`,async()=>n.send(qf,{body:t,account_id:a}));s(r,{successLabel:`Created`});return}e.interval===void 0&&(e.interval=await _(`interval`,"The interval between each posture check with the third-party API. Use `m` for minutes (e.g. `5m`) and `h` for hours (e.g. `12h`).")),e.name===void 0&&(e.name=await _(`name`,`The name of the device posture integration.`)),e.type===void 0&&(e.type=await v(`type`,`The type of device posture integration.`,[`workspace_one`,`crowdstrike_s2s`,`uptycs`,`intune`,`kolide`,`tanium_s2s`,`sentinelone_s2s`,`custom_s2s`]));let u=m({config:{api_url:h(e[`config-api-url`],`config-api-url`,`text`),auth_url:h(e[`config-auth-url`],`config-auth-url`,`text`),client_id:h(e[`config-client-id`],`config-client-id`,`text`),client_secret:h(e[`config-client-secret`],`config-client-secret`,`text`),customer_id:h(e[`config-customer-id`],`config-customer-id`,`text`),client_key:h(e[`config-client-key`],`config-client-key`,`text`),access_client_id:h(e[`config-access-client-id`],`config-access-client-id`,`text`),access_client_secret:h(e[`config-access-client-secret`],`config-access-client-secret`,`text`)},interval:h(e.interval,`interval`,`text`),name:h(e.name,`name`,`text`),type:e.type}),d=await l(`Creating`,async()=>n.send(qf,{body:u,account_id:a}));s(d,{successLabel:`Created`})})};var Xf={method:`DELETE`,path:t=>e`/accounts/${t.account_id}/devices/posture/integration/${t.integration_id}`};function Zf(e){return e.usage(`$0 zero-trust devices posture integrations delete <integration-id>
481
+ Create a new device posture integration.`).option(`config-api-url`,{type:`string`,description:`The Workspace One API URL provided in the Workspace One Admin Dashboard.`}).option(`config-auth-url`,{type:`string`,description:`The Workspace One Authorization URL depending on your region.`}).option(`config-client-id`,{type:`string`,description:`The Workspace One client ID provided in the Workspace One Admin Dashboard.`}).option(`config-client-secret`,{type:`string`,description:`The Workspace One client secret provided in the Workspace One Admin Dashboard.`}).option(`config-customer-id`,{type:`string`,description:`The Crowdstrike customer ID.`}).option(`config-client-key`,{type:`string`,description:`The Uptycs client secret.`}).option(`config-access-client-id`,{type:`string`,description:"If present, this id will be passed in the `CF-Access-Client-ID` header when hitting the `api_url`."}).option(`config-access-client-secret`,{type:`string`,description:"If present, this secret will be passed in the `CF-Access-Client-Secret` header when hitting the `api_url`."}).option(`interval`,{type:`string`,description:"The interval between each posture check with the third-party API. Use `m` for minutes (e.g. `5m`) and `h` for hours (e.g. `12h`)."}).option(`name`,{type:`string`,description:`The name of the device posture integration.`}).option(`type`,{type:`string`,description:`The type of device posture integration.`,choices:[`workspace_one`,`crowdstrike_s2s`,`uptycs`,`intune`,`kolide`,`tanium_s2s`,`sentinelone_s2s`,`custom_s2s`]}).coerce(`type`,e=>h(e,`type`,`text`)).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`}).conflicts(`config-api-url`,[`config-customer-id`,`config-client-id`,`config-client-secret`]).conflicts(`config-auth-url`,[`config-customer-id`,`config-client-key`,`config-access-client-id`,`config-access-client-secret`]).implies(`config-auth-url`,[`config-api-url`,`config-client-id`,`config-client-secret`]).conflicts(`config-client-id`,[`config-client-key`,`config-customer-id`,`config-access-client-id`,`config-access-client-secret`,`config-api-url`]).conflicts(`config-client-secret`,[`config-access-client-id`,`config-access-client-secret`,`config-api-url`]).conflicts(`config-customer-id`,[`config-auth-url`,`config-client-id`,`config-api-url`,`config-access-client-id`,`config-access-client-secret`]).conflicts(`config-client-key`,[`config-auth-url`,`config-client-id`,`config-access-client-id`,`config-access-client-secret`]).implies(`config-client-key`,[`config-api-url`,`config-client-secret`,`config-customer-id`]).conflicts(`config-access-client-id`,[`config-auth-url`,`config-client-id`,`config-client-secret`,`config-customer-id`,`config-client-key`]).implies(`config-access-client-id`,[`config-access-client-secret`,`config-api-url`]).conflicts(`config-access-client-secret`,[`config-auth-url`,`config-client-id`,`config-client-secret`,`config-customer-id`,`config-client-key`]).implies(`config-access-client-secret`,[`config-access-client-id`,`config-api-url`])}const Yf={command:`create`,describe:`Create posture integration`,builder:Jf,handler:async e=>u({command:`zero-trust devices posture integrations create`,classification:{safeFlags:[`type`,`dry-run`]}},e,async()=>{if(e.dryRun){let t=await i();c({command:`cf zero-trust devices posture integrations create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/devices/posture/integration`,pathParams:{},bodyKind:`json`,body:e.body===void 0?m({config:{api_url:h(e[`config-api-url`],`config-api-url`,`text`),auth_url:h(e[`config-auth-url`],`config-auth-url`,`text`),client_id:h(e[`config-client-id`],`config-client-id`,`text`),client_secret:h(e[`config-client-secret`],`config-client-secret`,`text`),customer_id:h(e[`config-customer-id`],`config-customer-id`,`text`),client_key:h(e[`config-client-key`],`config-client-key`,`text`),access_client_id:h(e[`config-access-client-id`],`config-access-client-id`,`text`),access_client_secret:h(e[`config-access-client-secret`],`config-access-client-secret`,`text`)},interval:h(e.interval,`interval`,`text`),name:h(e.name,`name`,`text`),type:e.type}):f(e.body),sensitiveBodyPaths:[[`config`,`client_secret`],[`config`,`client_key`],[`config`,`access_client_secret`]]});return}let n=await r(e),a=e.local?t:await o();if(e.accountId=a,e.body){let t=f(e.body),r=await l(`Creating`,async()=>n.send(qf,{body:t,account_id:a}));s(r,{successLabel:`Created`});return}e.interval===void 0&&(e.interval=await _(`interval`,"The interval between each posture check with the third-party API. Use `m` for minutes (e.g. `5m`) and `h` for hours (e.g. `12h`).")),e.name===void 0&&(e.name=await _(`name`,`The name of the device posture integration.`)),e.type===void 0&&(e.type=await v(`type`,`The type of device posture integration.`,[`workspace_one`,`crowdstrike_s2s`,`uptycs`,`intune`,`kolide`,`tanium_s2s`,`sentinelone_s2s`,`custom_s2s`]));let u=m({config:{api_url:h(e[`config-api-url`],`config-api-url`,`text`),auth_url:h(e[`config-auth-url`],`config-auth-url`,`text`),client_id:h(e[`config-client-id`],`config-client-id`,`text`),client_secret:h(e[`config-client-secret`],`config-client-secret`,`text`),customer_id:h(e[`config-customer-id`],`config-customer-id`,`text`),client_key:h(e[`config-client-key`],`config-client-key`,`text`),access_client_id:h(e[`config-access-client-id`],`config-access-client-id`,`text`),access_client_secret:h(e[`config-access-client-secret`],`config-access-client-secret`,`text`)},interval:h(e.interval,`interval`,`text`),name:h(e.name,`name`,`text`),type:e.type}),d=await l(`Creating`,async()=>n.send(qf,{body:u,account_id:a}));s(d,{successLabel:`Created`})})};var Xf={method:`DELETE`,path:t=>e`/accounts/${t.account_id}/devices/posture/integration/${t.integration_id}`};function Zf(e){return e.usage(`$0 zero-trust devices posture integrations delete <integration-id>
482
482
 
483
483
  Delete a configured device posture integration.`).positional(`integration-id`,{type:`string`,description:`API UUID.`,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 Qf={command:`delete <integration-id>`,describe:`Delete posture integration`,builder:Zf,handler:async e=>u({command:`zero-trust devices posture integrations delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{if(e.dryRun){let t=await i();c({command:`cf zero-trust devices posture integrations delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/devices/posture/integration/${e[`integration-id`]==null?`<integration-id>`:encodeURIComponent(String(e[`integration-id`]))}`,pathParams:{"integration-id":String(e[`integration-id`]??``)},bodyKind:`none`});return}let n=await r(e),a=e.local?t:await o();if(e.accountId=a,!await y({force:!!e.force})){process.stderr.write(`Aborted.
484
484
  `);return}let u=await l(`Deleting`,async()=>n.send(Xf,{account_id:a,integration_id:e[`integration-id`]}));s(u,{successLabel:`Deleted`})})};var $f={method:`GET`,path:t=>e`/accounts/${t.account_id}/devices/posture/integration/${t.integration_id}`};function ep(e){return e.usage(`$0 zero-trust devices posture integrations get <integration-id>
@@ -487,7 +487,7 @@ Fetches details for a single device posture integration.`).positional(`integrati
487
487
 
488
488
  Fetches the list of device posture integrations for an account.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const ip={command:`list`,describe:`List posture integrations`,builder:rp,handler:async e=>u({command:`zero-trust devices posture integrations list`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let e=await i();c({command:`cf zero-trust devices posture integrations list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}/devices/posture/integration`,pathParams:{},bodyKind:`none`});return}let n=await r(e),a=e.local?t:await o();e.accountId=a;let u=await l(`Loading`,async()=>n.send(np,{account_id:a}));s(u,{successLabel:`Loaded`})})};var ap={method:`PATCH`,path:t=>e`/accounts/${t.account_id}/devices/posture/integration/${t.integration_id}`,body:`json`};function op(e){return e.usage(`$0 zero-trust devices posture integrations update <integration-id>
489
489
 
490
- Updates a configured device posture integration.`).positional(`integration-id`,{type:`string`,description:`API UUID.`,demandOption:!0}).option(`config-api-url`,{type:`string`,description:`The Workspace One API URL provided in the Workspace One Admin Dashboard.`}).option(`config-auth-url`,{type:`string`,description:`The Workspace One Authorization URL depending on your region.`}).option(`config-client-id`,{type:`string`,description:`The Workspace One client ID provided in the Workspace One Admin Dashboard.`}).option(`config-client-secret`,{type:`string`,description:`The Workspace One client secret provided in the Workspace One Admin Dashboard.`}).option(`config-customer-id`,{type:`string`,description:`The Crowdstrike customer ID.`}).option(`config-client-key`,{type:`string`,description:`The Uptycs client secret.`}).option(`config-access-client-id`,{type:`string`,description:"If present, this id will be passed in the `CF-Access-Client-ID` header when hitting the `api_url`."}).option(`config-access-client-secret`,{type:`string`,description:"If present, this secret will be passed in the `CF-Access-Client-Secret` header when hitting the `api_url`."}).option(`interval`,{type:`string`,description:"The interval between each posture check with the third-party API. Use `m` for minutes (e.g. `5m`) and `h` for hours (e.g. `12h`)."}).option(`name`,{type:`string`,description:`The name of the device posture integration.`}).option(`type`,{type:`string`,description:`The type of device posture integration.`,choices:[`workspace_one`,`crowdstrike_s2s`,`uptycs`,`intune`,`kolide`,`tanium_s2s`,`sentinelone_s2s`,`custom_s2s`]}).coerce(`type`,e=>h(e,`type`,`text`)).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`}).conflicts(`config-api-url`,[`config-customer-id`,`config-client-id`,`config-client-secret`]).conflicts(`config-auth-url`,[`config-customer-id`,`config-client-key`,`config-access-client-id`,`config-access-client-secret`]).implies(`config-auth-url`,[`config-api-url`,`config-client-id`,`config-client-secret`]).conflicts(`config-client-id`,[`config-client-key`,`config-customer-id`,`config-access-client-id`,`config-access-client-secret`,`config-api-url`]).conflicts(`config-client-secret`,[`config-access-client-id`,`config-access-client-secret`,`config-api-url`]).conflicts(`config-customer-id`,[`config-auth-url`,`config-client-id`,`config-api-url`,`config-access-client-id`,`config-access-client-secret`]).conflicts(`config-client-key`,[`config-auth-url`,`config-client-id`,`config-access-client-id`,`config-access-client-secret`]).implies(`config-client-key`,[`config-api-url`,`config-customer-id`,`config-client-secret`]).conflicts(`config-access-client-id`,[`config-auth-url`,`config-client-id`,`config-client-secret`,`config-customer-id`,`config-client-key`]).implies(`config-access-client-id`,[`config-api-url`,`config-access-client-secret`]).conflicts(`config-access-client-secret`,[`config-auth-url`,`config-client-id`,`config-client-secret`,`config-customer-id`,`config-client-key`]).implies(`config-access-client-secret`,[`config-api-url`,`config-access-client-id`])}const sp={command:`update <integration-id>`,describe:`Update posture integration`,builder:op,handler:async e=>u({command:`zero-trust devices posture integrations update`,classification:{safeFlags:[`type`,`dry-run`]}},e,async()=>{if(e.dryRun){let t=await i();c({command:`cf zero-trust devices posture integrations update`,method:`PATCH`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/devices/posture/integration/${e[`integration-id`]==null?`<integration-id>`:encodeURIComponent(String(e[`integration-id`]))}`,pathParams:{"integration-id":String(e[`integration-id`]??``)},bodyKind:`json`,body:e.body===void 0?m({config:{api_url:h(e[`config-api-url`],`config-api-url`,`text`),auth_url:h(e[`config-auth-url`],`config-auth-url`,`text`),client_id:h(e[`config-client-id`],`config-client-id`,`text`),client_secret:h(e[`config-client-secret`],`config-client-secret`,`text`),customer_id:h(e[`config-customer-id`],`config-customer-id`,`text`),client_key:h(e[`config-client-key`],`config-client-key`,`text`),access_client_id:h(e[`config-access-client-id`],`config-access-client-id`,`text`),access_client_secret:h(e[`config-access-client-secret`],`config-access-client-secret`,`text`)},interval:h(e.interval,`interval`,`text`),name:h(e.name,`name`,`text`),type:e.type}):f(e.body),sensitiveBodyPaths:[[`config`,`client_secret`],[`config`,`client_key`],[`config`,`access_client_secret`]]});return}let n=await r(e),a=e.local?t:await o();if(e.accountId=a,e.body){let t=f(e.body),r=await l(`Updating`,async()=>n.send(ap,{body:t,account_id:a,integration_id:e[`integration-id`]}));s(r,{successLabel:`Updated`});return}let u=m({config:{api_url:h(e[`config-api-url`],`config-api-url`,`text`),auth_url:h(e[`config-auth-url`],`config-auth-url`,`text`),client_id:h(e[`config-client-id`],`config-client-id`,`text`),client_secret:h(e[`config-client-secret`],`config-client-secret`,`text`),customer_id:h(e[`config-customer-id`],`config-customer-id`,`text`),client_key:h(e[`config-client-key`],`config-client-key`,`text`),access_client_id:h(e[`config-access-client-id`],`config-access-client-id`,`text`),access_client_secret:h(e[`config-access-client-secret`],`config-access-client-secret`,`text`)},interval:h(e.interval,`interval`,`text`),name:h(e.name,`name`,`text`),type:e.type}),d=await l(`Updating`,async()=>n.send(ap,{body:u,account_id:a,integration_id:e[`integration-id`]}));s(d,{successLabel:`Updated`})})},cp={command:`integrations`,describe:`Operations for devices.posture.integrations`,builder:e=>e.command(Yf).command(Qf).command(tp).command(ip).command(sp).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var lp={method:`POST`,path:t=>e`/accounts/${t.account_id}/devices/posture`,body:`json`};function up(e){return e.usage(`$0 zero-trust devices posture rules create
490
+ Updates a configured device posture integration.`).positional(`integration-id`,{type:`string`,description:`API UUID.`,demandOption:!0}).option(`config-api-url`,{type:`string`,description:`The Workspace One API URL provided in the Workspace One Admin Dashboard.`}).option(`config-auth-url`,{type:`string`,description:`The Workspace One Authorization URL depending on your region.`}).option(`config-client-id`,{type:`string`,description:`The Workspace One client ID provided in the Workspace One Admin Dashboard.`}).option(`config-client-secret`,{type:`string`,description:`The Workspace One client secret provided in the Workspace One Admin Dashboard.`}).option(`config-customer-id`,{type:`string`,description:`The Crowdstrike customer ID.`}).option(`config-client-key`,{type:`string`,description:`The Uptycs client secret.`}).option(`config-access-client-id`,{type:`string`,description:"If present, this id will be passed in the `CF-Access-Client-ID` header when hitting the `api_url`."}).option(`config-access-client-secret`,{type:`string`,description:"If present, this secret will be passed in the `CF-Access-Client-Secret` header when hitting the `api_url`."}).option(`interval`,{type:`string`,description:"The interval between each posture check with the third-party API. Use `m` for minutes (e.g. `5m`) and `h` for hours (e.g. `12h`)."}).option(`name`,{type:`string`,description:`The name of the device posture integration.`}).option(`type`,{type:`string`,description:`The type of device posture integration.`,choices:[`workspace_one`,`crowdstrike_s2s`,`uptycs`,`intune`,`kolide`,`tanium_s2s`,`sentinelone_s2s`,`custom_s2s`]}).coerce(`type`,e=>h(e,`type`,`text`)).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`}).conflicts(`config-api-url`,[`config-customer-id`,`config-client-id`,`config-client-secret`]).conflicts(`config-auth-url`,[`config-customer-id`,`config-client-key`,`config-access-client-id`,`config-access-client-secret`]).implies(`config-auth-url`,[`config-api-url`,`config-client-id`,`config-client-secret`]).conflicts(`config-client-id`,[`config-client-key`,`config-customer-id`,`config-access-client-id`,`config-access-client-secret`,`config-api-url`]).conflicts(`config-client-secret`,[`config-access-client-id`,`config-access-client-secret`,`config-api-url`]).conflicts(`config-customer-id`,[`config-auth-url`,`config-client-id`,`config-api-url`,`config-access-client-id`,`config-access-client-secret`]).conflicts(`config-client-key`,[`config-auth-url`,`config-client-id`,`config-access-client-id`,`config-access-client-secret`]).implies(`config-client-key`,[`config-api-url`,`config-client-secret`,`config-customer-id`]).conflicts(`config-access-client-id`,[`config-auth-url`,`config-client-id`,`config-client-secret`,`config-customer-id`,`config-client-key`]).implies(`config-access-client-id`,[`config-access-client-secret`,`config-api-url`]).conflicts(`config-access-client-secret`,[`config-auth-url`,`config-client-id`,`config-client-secret`,`config-customer-id`,`config-client-key`]).implies(`config-access-client-secret`,[`config-access-client-id`,`config-api-url`])}const sp={command:`update <integration-id>`,describe:`Update posture integration`,builder:op,handler:async e=>u({command:`zero-trust devices posture integrations update`,classification:{safeFlags:[`type`,`dry-run`]}},e,async()=>{if(e.dryRun){let t=await i();c({command:`cf zero-trust devices posture integrations update`,method:`PATCH`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/devices/posture/integration/${e[`integration-id`]==null?`<integration-id>`:encodeURIComponent(String(e[`integration-id`]))}`,pathParams:{"integration-id":String(e[`integration-id`]??``)},bodyKind:`json`,body:e.body===void 0?m({config:{api_url:h(e[`config-api-url`],`config-api-url`,`text`),auth_url:h(e[`config-auth-url`],`config-auth-url`,`text`),client_id:h(e[`config-client-id`],`config-client-id`,`text`),client_secret:h(e[`config-client-secret`],`config-client-secret`,`text`),customer_id:h(e[`config-customer-id`],`config-customer-id`,`text`),client_key:h(e[`config-client-key`],`config-client-key`,`text`),access_client_id:h(e[`config-access-client-id`],`config-access-client-id`,`text`),access_client_secret:h(e[`config-access-client-secret`],`config-access-client-secret`,`text`)},interval:h(e.interval,`interval`,`text`),name:h(e.name,`name`,`text`),type:e.type}):f(e.body),sensitiveBodyPaths:[[`config`,`client_secret`],[`config`,`client_key`],[`config`,`access_client_secret`]]});return}let n=await r(e),a=e.local?t:await o();if(e.accountId=a,e.body){let t=f(e.body),r=await l(`Updating`,async()=>n.send(ap,{body:t,account_id:a,integration_id:e[`integration-id`]}));s(r,{successLabel:`Updated`});return}let u=m({config:{api_url:h(e[`config-api-url`],`config-api-url`,`text`),auth_url:h(e[`config-auth-url`],`config-auth-url`,`text`),client_id:h(e[`config-client-id`],`config-client-id`,`text`),client_secret:h(e[`config-client-secret`],`config-client-secret`,`text`),customer_id:h(e[`config-customer-id`],`config-customer-id`,`text`),client_key:h(e[`config-client-key`],`config-client-key`,`text`),access_client_id:h(e[`config-access-client-id`],`config-access-client-id`,`text`),access_client_secret:h(e[`config-access-client-secret`],`config-access-client-secret`,`text`)},interval:h(e.interval,`interval`,`text`),name:h(e.name,`name`,`text`),type:e.type}),d=await l(`Updating`,async()=>n.send(ap,{body:u,account_id:a,integration_id:e[`integration-id`]}));s(d,{successLabel:`Updated`})})},cp={command:`integrations`,describe:`Operations for devices.posture.integrations`,builder:e=>e.command(Yf).command(Qf).command(tp).command(ip).command(sp).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var lp={method:`POST`,path:t=>e`/accounts/${t.account_id}/devices/posture`,body:`json`};function up(e){return e.usage(`$0 zero-trust devices posture rules create
491
491
 
492
492
  Creates a new device posture rule.`).option(`description`,{type:`string`,description:`The description of the device posture rule.`}).option(`expiration`,{type:`string`,description:`Sets the expiration time for a posture check result. If empty, the result remains valid until it is overwritten by new data from the WARP client.`}).option(`input-exists`,{type:`boolean`,description:`Whether or not file exists.`}).option(`input-operating-system`,{type:`string`,description:`Operating system.`,choices:[`windows`,`linux`,`mac`,`android`,`ios`,`chromeos`]}).coerce(`input-operating-system`,e=>h(e,`input-operating-system`,`text`)).option(`input-path`,{type:`string`,description:`File path.`}).option(`input-sha256`,{type:`string`,description:`SHA-256.`}).option(`input-thumbprint`,{type:`string`,description:`Signing certificate thumbprint.`}).option(`input-id`,{type:`string`,description:`List ID.`}).option(`input-domain`,{type:`string`,description:`Domain.`}).option(`input-operator`,{type:`string`,description:`Operator.`,choices:[`<`,`<=`,`>`,`>=`,`==`]}).coerce(`input-operator`,e=>h(e,`input-operator`,`text`)).option(`input-os-distro-name`,{type:`string`,description:`Operating System Distribution Name (linux only).`}).option(`input-os-distro-revision`,{type:`string`,description:`Version of OS Distribution (linux only).`}).option(`input-os-version-extra`,{type:`string`,description:`Additional operating system version details. For Windows, the UBR (Update Build Revision). For Mac or iOS, the Product Version Extra. For Linux, the distribution name and version.`}).option(`input-version`,{type:`string`,description:`Version of OS.`}).option(`input-enabled`,{type:`boolean`,description:`Enabled.`}).option(`input-check-disks`,{type:`string`,array:!0,description:`List of volume names to be checked for encryption.`}).option(`input-require-all`,{type:`boolean`,description:`Whether to check all disks for encryption.`}).option(`input-certificate-id`,{type:`string`,description:`UUID of Cloudflare managed certificate.`}).option(`input-cn`,{type:`string`,description:`Common Name that is protected by the certificate.`}).option(`input-check-private-key`,{type:`boolean`,description:`Confirm the certificate was not imported from another device. We recommend keeping this enabled unless the certificate was deployed without a private key.`}).option(`input-extended-key-usage`,{type:`string`,array:!0,description:`List of values indicating purposes for which the certificate public key can be used.`}).option(`input-locations-paths`,{type:`string`,array:!0,description:`List of paths to check for client certificate on linux.`}).option(`input-locations-trust-stores`,{type:`string`,array:!0,description:`List of trust stores to check for client certificate.`}).option(`input-subject-alternative-names`,{type:`string`,array:!0,description:`List of certificate Subject Alternative Names.`}).option(`input-update-window-days`,{type:`number`,description:`Number of days that the antivirus should be updated within.`}).option(`input-compliance-status`,{type:`string`,description:`Compliance Status.`,choices:[`compliant`,`noncompliant`,`unknown`,`notapplicable`,`ingraceperiod`,`error`]}).coerce(`input-compliance-status`,e=>h(e,`input-compliance-status`,`text`)).option(`input-connection-id`,{type:`string`,description:`Posture Integration ID.`}).option(`input-last-seen`,{type:`string`,description:`For more details on last seen, please refer to the Crowdstrike documentation.`}).option(`input-os`,{type:`string`,description:`Os Version.`}).option(`input-overall`,{type:`string`,description:`Overall.`}).option(`input-sensor-config`,{type:`string`,description:`SensorConfig.`}).option(`input-state`,{type:`string`,description:`For more details on state, please refer to the Crowdstrike documentation.`,choices:[`online`,`offline`,`unknown`]}).coerce(`input-state`,e=>h(e,`input-state`,`text`)).option(`input-version-operator`,{type:`string`,description:`Version Operator.`,choices:[`<`,`<=`,`>`,`>=`,`==`]}).coerce(`input-version-operator`,e=>h(e,`input-version-operator`,`text`)).option(`input-auth-state`,{type:`string`,array:!0,description:`The set of Kolide device authentication states that pass the posture check. Device must match one of the specified states.`}).option(`input-count-operator`,{type:`string`,description:`Count Operator.`,choices:[`<`,`<=`,`>`,`>=`,`==`]}).coerce(`input-count-operator`,e=>h(e,`input-count-operator`,`text`)).option(`input-issue-count`,{type:`string`,description:`The Number of Issues.`}).option(`input-eid-last-seen`,{type:`string`,description:`For more details on eid last seen, refer to the Tanium documentation.`}).option(`input-risk-level`,{type:`string`,description:`For more details on risk level, refer to the Tanium documentation.`,choices:[`low`,`medium`,`high`,`critical`]}).coerce(`input-risk-level`,e=>h(e,`input-risk-level`,`text`)).option(`input-score-operator`,{type:`string`,description:`Score Operator.`,choices:[`<`,`<=`,`>`,`>=`,`==`]}).coerce(`input-score-operator`,e=>h(e,`input-score-operator`,`text`)).option(`input-total-score`,{type:`number`,description:`For more details on total score, refer to the Tanium documentation.`}).option(`input-active-threats`,{type:`number`,description:`The Number of active threats.`}).option(`input-infected`,{type:`boolean`,description:`Whether device is infected.`}).option(`input-is-active`,{type:`boolean`,description:`Whether device is active.`}).option(`input-network-status`,{type:`string`,description:`Network status of device.`,choices:[`connected`,`disconnected`,`disconnecting`,`connecting`]}).coerce(`input-network-status`,e=>h(e,`input-network-status`,`text`)).option(`input-operational-state`,{type:`string`,description:`Agent operational state.`,choices:[`na`,`partially_disabled`,`auto_fully_disabled`,`fully_disabled`,`auto_partially_disabled`,`disabled_error`,`db_corruption`]}).coerce(`input-operational-state`,e=>h(e,`input-operational-state`,`text`)).option(`input-score`,{type:`number`,description:`A value between 0-100 assigned to devices set by the 3rd party posture provider.`}).option(`match`,{type:`string`,description:`The conditions that the client must match to run the rule. Provide as a JSON array of objects or @path/to/file.json.`}).option(`name`,{type:`string`,description:`The name of the device posture rule.`}).option(`schedule`,{type:`string`,description:"Polling frequency for the WARP client posture check. Default: `5m` (poll every five minutes). Minimum: `1m`."}).option(`type`,{type:`string`,description:`The type of device posture rule.`,choices:[`file`,`application`,`tanium`,`gateway`,`warp`,`disk_encryption`,`serial_number`,`sentinelone`,`carbonblack`,`firewall`,`os_version`,`domain_joined`,`client_certificate`,`client_certificate_v2`,`antivirus`,`unique_client_id`,`kolide`,`tanium_s2s`,`crowdstrike_s2s`,`intune`,`workspace_one`,`sentinelone_s2s`,`custom_s2s`]}).coerce(`type`,e=>h(e,`type`,`text`)).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`}).conflicts(`input-exists`,/* @__PURE__ */ `input-id.input-domain.input-operator.input-os-distro-name.input-os-distro-revision.input-os-version-extra.input-version.input-enabled.input-check-disks.input-require-all.input-certificate-id.input-cn.input-check-private-key.input-extended-key-usage.input-locations-paths.input-locations-trust-stores.input-subject-alternative-names.input-update-window-days.input-compliance-status.input-connection-id.input-last-seen.input-os.input-overall.input-sensor-config.input-state.input-version-operator.input-auth-state.input-count-operator.input-issue-count.input-eid-last-seen.input-risk-level.input-score-operator.input-total-score.input-active-threats.input-infected.input-is-active.input-network-status.input-operational-state.input-score`.split(`.`)).conflicts(`input-operating-system`,/* @__PURE__ */ `input-id.input-check-disks.input-require-all.input-certificate-id.input-cn.input-update-window-days.input-compliance-status.input-connection-id.input-last-seen.input-operator.input-os.input-overall.input-sensor-config.input-state.input-version.input-version-operator.input-auth-state.input-count-operator.input-issue-count.input-eid-last-seen.input-risk-level.input-score-operator.input-total-score.input-active-threats.input-infected.input-is-active.input-network-status.input-operational-state.input-score`.split(`.`)).conflicts(`input-path`,/* @__PURE__ */ `input-id.input-domain.input-operator.input-os-distro-name.input-os-distro-revision.input-os-version-extra.input-version.input-enabled.input-check-disks.input-require-all.input-certificate-id.input-cn.input-check-private-key.input-extended-key-usage.input-locations-paths.input-locations-trust-stores.input-subject-alternative-names.input-update-window-days.input-compliance-status.input-connection-id.input-last-seen.input-os.input-overall.input-sensor-config.input-state.input-version-operator.input-auth-state.input-count-operator.input-issue-count.input-eid-last-seen.input-risk-level.input-score-operator.input-total-score.input-active-threats.input-infected.input-is-active.input-network-status.input-operational-state.input-score`.split(`.`)).conflicts(`input-sha256`,/* @__PURE__ */ `input-id.input-domain.input-operator.input-os-distro-name.input-os-distro-revision.input-os-version-extra.input-version.input-enabled.input-check-disks.input-require-all.input-certificate-id.input-cn.input-check-private-key.input-extended-key-usage.input-locations-paths.input-locations-trust-stores.input-subject-alternative-names.input-update-window-days.input-compliance-status.input-connection-id.input-last-seen.input-os.input-overall.input-sensor-config.input-state.input-version-operator.input-auth-state.input-count-operator.input-issue-count.input-eid-last-seen.input-risk-level.input-score-operator.input-total-score.input-active-threats.input-infected.input-is-active.input-network-status.input-operational-state.input-score`.split(`.`)).conflicts(`input-thumbprint`,/* @__PURE__ */ `input-id.input-domain.input-operator.input-os-distro-name.input-os-distro-revision.input-os-version-extra.input-version.input-enabled.input-check-disks.input-require-all.input-certificate-id.input-cn.input-check-private-key.input-extended-key-usage.input-locations-paths.input-locations-trust-stores.input-subject-alternative-names.input-update-window-days.input-compliance-status.input-connection-id.input-last-seen.input-os.input-overall.input-sensor-config.input-state.input-version-operator.input-auth-state.input-count-operator.input-issue-count.input-eid-last-seen.input-risk-level.input-score-operator.input-total-score.input-active-threats.input-infected.input-is-active.input-network-status.input-operational-state.input-score`.split(`.`)).conflicts(`input-id`,/* @__PURE__ */ `input-exists.input-path.input-sha256.input-thumbprint.input-operating-system.input-domain.input-operator.input-os-distro-name.input-os-distro-revision.input-os-version-extra.input-version.input-enabled.input-check-disks.input-require-all.input-certificate-id.input-cn.input-check-private-key.input-extended-key-usage.input-locations-paths.input-locations-trust-stores.input-subject-alternative-names.input-update-window-days.input-compliance-status.input-connection-id.input-last-seen.input-os.input-overall.input-sensor-config.input-state.input-version-operator.input-auth-state.input-count-operator.input-issue-count.input-eid-last-seen.input-risk-level.input-score-operator.input-total-score.input-active-threats.input-infected.input-is-active.input-network-status.input-operational-state.input-score`.split(`.`)).conflicts(`input-domain`,/* @__PURE__ */ `input-exists.input-path.input-sha256.input-thumbprint.input-id.input-operator.input-os-distro-name.input-os-distro-revision.input-os-version-extra.input-version.input-enabled.input-check-disks.input-require-all.input-certificate-id.input-cn.input-check-private-key.input-extended-key-usage.input-locations-paths.input-locations-trust-stores.input-subject-alternative-names.input-update-window-days.input-compliance-status.input-connection-id.input-last-seen.input-os.input-overall.input-sensor-config.input-state.input-version-operator.input-auth-state.input-count-operator.input-issue-count.input-eid-last-seen.input-risk-level.input-score-operator.input-total-score.input-active-threats.input-infected.input-is-active.input-network-status.input-operational-state.input-score`.split(`.`)).conflicts(`input-operator`,[`input-exists`,`input-path`,`input-sha256`,`input-thumbprint`,`input-operating-system`,`input-id`,`input-domain`,`input-enabled`,`input-check-disks`,`input-require-all`,`input-certificate-id`,`input-cn`,`input-check-private-key`,`input-extended-key-usage`,`input-locations-paths`,`input-locations-trust-stores`,`input-subject-alternative-names`,`input-update-window-days`,`input-compliance-status`,`input-connection-id`,`input-auth-state`,`input-count-operator`,`input-issue-count`]).conflicts(`input-os-distro-name`,/* @__PURE__ */ `input-exists.input-path.input-sha256.input-thumbprint.input-id.input-domain.input-enabled.input-check-disks.input-require-all.input-certificate-id.input-cn.input-check-private-key.input-extended-key-usage.input-locations-paths.input-locations-trust-stores.input-subject-alternative-names.input-update-window-days.input-compliance-status.input-connection-id.input-last-seen.input-os.input-overall.input-sensor-config.input-state.input-version-operator.input-auth-state.input-count-operator.input-issue-count.input-eid-last-seen.input-risk-level.input-score-operator.input-total-score.input-active-threats.input-infected.input-is-active.input-network-status.input-operational-state.input-score`.split(`.`)).conflicts(`input-os-distro-revision`,/* @__PURE__ */ `input-exists.input-path.input-sha256.input-thumbprint.input-id.input-domain.input-enabled.input-check-disks.input-require-all.input-certificate-id.input-cn.input-check-private-key.input-extended-key-usage.input-locations-paths.input-locations-trust-stores.input-subject-alternative-names.input-update-window-days.input-compliance-status.input-connection-id.input-last-seen.input-os.input-overall.input-sensor-config.input-state.input-version-operator.input-auth-state.input-count-operator.input-issue-count.input-eid-last-seen.input-risk-level.input-score-operator.input-total-score.input-active-threats.input-infected.input-is-active.input-network-status.input-operational-state.input-score`.split(`.`)).conflicts(`input-os-version-extra`,/* @__PURE__ */ `input-exists.input-path.input-sha256.input-thumbprint.input-id.input-domain.input-enabled.input-check-disks.input-require-all.input-certificate-id.input-cn.input-check-private-key.input-extended-key-usage.input-locations-paths.input-locations-trust-stores.input-subject-alternative-names.input-update-window-days.input-compliance-status.input-connection-id.input-last-seen.input-os.input-overall.input-sensor-config.input-state.input-version-operator.input-auth-state.input-count-operator.input-issue-count.input-eid-last-seen.input-risk-level.input-score-operator.input-total-score.input-active-threats.input-infected.input-is-active.input-network-status.input-operational-state.input-score`.split(`.`)).conflicts(`input-version`,/* @__PURE__ */ `input-exists.input-path.input-sha256.input-thumbprint.input-operating-system.input-id.input-domain.input-enabled.input-check-disks.input-require-all.input-certificate-id.input-cn.input-check-private-key.input-extended-key-usage.input-locations-paths.input-locations-trust-stores.input-subject-alternative-names.input-update-window-days.input-compliance-status.input-connection-id.input-auth-state.input-count-operator.input-issue-count.input-eid-last-seen.input-risk-level.input-score-operator.input-total-score.input-active-threats.input-infected.input-is-active.input-network-status.input-operational-state.input-score`.split(`.`)).implies(`input-version`,[`input-operating-system`,`input-operator`]).conflicts(`input-enabled`,/* @__PURE__ */ `input-exists.input-path.input-sha256.input-thumbprint.input-id.input-domain.input-operator.input-os-distro-name.input-os-distro-revision.input-os-version-extra.input-version.input-check-disks.input-require-all.input-certificate-id.input-cn.input-check-private-key.input-extended-key-usage.input-locations-paths.input-locations-trust-stores.input-subject-alternative-names.input-update-window-days.input-compliance-status.input-connection-id.input-last-seen.input-os.input-overall.input-sensor-config.input-state.input-version-operator.input-auth-state.input-count-operator.input-issue-count.input-eid-last-seen.input-risk-level.input-score-operator.input-total-score.input-active-threats.input-infected.input-is-active.input-network-status.input-operational-state.input-score`.split(`.`)).implies(`input-enabled`,[`input-operating-system`]).conflicts(`input-check-disks`,/* @__PURE__ */ `input-exists.input-operating-system.input-path.input-sha256.input-thumbprint.input-id.input-domain.input-operator.input-os-distro-name.input-os-distro-revision.input-os-version-extra.input-version.input-enabled.input-certificate-id.input-cn.input-check-private-key.input-extended-key-usage.input-locations-paths.input-locations-trust-stores.input-subject-alternative-names.input-update-window-days.input-compliance-status.input-connection-id.input-last-seen.input-os.input-overall.input-sensor-config.input-state.input-version-operator.input-auth-state.input-count-operator.input-issue-count.input-eid-last-seen.input-risk-level.input-score-operator.input-total-score.input-active-threats.input-infected.input-is-active.input-network-status.input-operational-state.input-score`.split(`.`)).conflicts(`input-require-all`,/* @__PURE__ */ `input-exists.input-operating-system.input-path.input-sha256.input-thumbprint.input-id.input-domain.input-operator.input-os-distro-name.input-os-distro-revision.input-os-version-extra.input-version.input-enabled.input-certificate-id.input-cn.input-check-private-key.input-extended-key-usage.input-locations-paths.input-locations-trust-stores.input-subject-alternative-names.input-update-window-days.input-compliance-status.input-connection-id.input-last-seen.input-os.input-overall.input-sensor-config.input-state.input-version-operator.input-auth-state.input-count-operator.input-issue-count.input-eid-last-seen.input-risk-level.input-score-operator.input-total-score.input-active-threats.input-infected.input-is-active.input-network-status.input-operational-state.input-score`.split(`.`)).conflicts(`input-certificate-id`,/* @__PURE__ */ `input-exists.input-operating-system.input-path.input-sha256.input-thumbprint.input-id.input-domain.input-operator.input-os-distro-name.input-os-distro-revision.input-os-version-extra.input-version.input-enabled.input-check-disks.input-require-all.input-update-window-days.input-compliance-status.input-connection-id.input-last-seen.input-os.input-overall.input-sensor-config.input-state.input-version-operator.input-auth-state.input-count-operator.input-issue-count.input-eid-last-seen.input-risk-level.input-score-operator.input-total-score.input-active-threats.input-infected.input-is-active.input-network-status.input-operational-state.input-score`.split(`.`)).conflicts(`input-cn`,/* @__PURE__ */ `input-exists.input-operating-system.input-path.input-sha256.input-thumbprint.input-id.input-domain.input-operator.input-os-distro-name.input-os-distro-revision.input-os-version-extra.input-version.input-enabled.input-check-disks.input-require-all.input-update-window-days.input-compliance-status.input-connection-id.input-last-seen.input-os.input-overall.input-sensor-config.input-state.input-version-operator.input-auth-state.input-count-operator.input-issue-count.input-eid-last-seen.input-risk-level.input-score-operator.input-total-score.input-active-threats.input-infected.input-is-active.input-network-status.input-operational-state.input-score`.split(`.`)).implies(`input-cn`,[`input-certificate-id`]).conflicts(`input-check-private-key`,/* @__PURE__ */ `input-exists.input-path.input-sha256.input-thumbprint.input-id.input-domain.input-operator.input-os-distro-name.input-os-distro-revision.input-os-version-extra.input-version.input-enabled.input-check-disks.input-require-all.input-update-window-days.input-compliance-status.input-connection-id.input-last-seen.input-os.input-overall.input-sensor-config.input-state.input-version-operator.input-auth-state.input-count-operator.input-issue-count.input-eid-last-seen.input-risk-level.input-score-operator.input-total-score.input-active-threats.input-infected.input-is-active.input-network-status.input-operational-state.input-score`.split(`.`)).implies(`input-check-private-key`,[`input-certificate-id`,`input-operating-system`]).conflicts(`input-extended-key-usage`,/* @__PURE__ */ `input-exists.input-path.input-sha256.input-thumbprint.input-id.input-domain.input-operator.input-os-distro-name.input-os-distro-revision.input-os-version-extra.input-version.input-enabled.input-check-disks.input-require-all.input-update-window-days.input-compliance-status.input-connection-id.input-last-seen.input-os.input-overall.input-sensor-config.input-state.input-version-operator.input-auth-state.input-count-operator.input-issue-count.input-eid-last-seen.input-risk-level.input-score-operator.input-total-score.input-active-threats.input-infected.input-is-active.input-network-status.input-operational-state.input-score`.split(`.`)).conflicts(`input-locations-paths`,/* @__PURE__ */ `input-exists.input-path.input-sha256.input-thumbprint.input-id.input-domain.input-operator.input-os-distro-name.input-os-distro-revision.input-os-version-extra.input-version.input-enabled.input-check-disks.input-require-all.input-update-window-days.input-compliance-status.input-connection-id.input-last-seen.input-os.input-overall.input-sensor-config.input-state.input-version-operator.input-auth-state.input-count-operator.input-issue-count.input-eid-last-seen.input-risk-level.input-score-operator.input-total-score.input-active-threats.input-infected.input-is-active.input-network-status.input-operational-state.input-score`.split(`.`)).conflicts(`input-locations-trust-stores`,/* @__PURE__ */ `input-exists.input-path.input-sha256.input-thumbprint.input-id.input-domain.input-operator.input-os-distro-name.input-os-distro-revision.input-os-version-extra.input-version.input-enabled.input-check-disks.input-require-all.input-update-window-days.input-compliance-status.input-connection-id.input-last-seen.input-os.input-overall.input-sensor-config.input-state.input-version-operator.input-auth-state.input-count-operator.input-issue-count.input-eid-last-seen.input-risk-level.input-score-operator.input-total-score.input-active-threats.input-infected.input-is-active.input-network-status.input-operational-state.input-score`.split(`.`)).conflicts(`input-subject-alternative-names`,/* @__PURE__ */ `input-exists.input-path.input-sha256.input-thumbprint.input-id.input-domain.input-operator.input-os-distro-name.input-os-distro-revision.input-os-version-extra.input-version.input-enabled.input-check-disks.input-require-all.input-update-window-days.input-compliance-status.input-connection-id.input-last-seen.input-os.input-overall.input-sensor-config.input-state.input-version-operator.input-auth-state.input-count-operator.input-issue-count.input-eid-last-seen.input-risk-level.input-score-operator.input-total-score.input-active-threats.input-infected.input-is-active.input-network-status.input-operational-state.input-score`.split(`.`)).conflicts(`input-update-window-days`,/* @__PURE__ */ `input-exists.input-operating-system.input-path.input-sha256.input-thumbprint.input-id.input-domain.input-operator.input-os-distro-name.input-os-distro-revision.input-os-version-extra.input-version.input-enabled.input-check-disks.input-require-all.input-certificate-id.input-cn.input-check-private-key.input-extended-key-usage.input-locations-paths.input-locations-trust-stores.input-subject-alternative-names.input-compliance-status.input-connection-id.input-last-seen.input-os.input-overall.input-sensor-config.input-state.input-version-operator.input-auth-state.input-count-operator.input-issue-count.input-eid-last-seen.input-risk-level.input-score-operator.input-total-score.input-active-threats.input-infected.input-is-active.input-network-status.input-operational-state.input-score`.split(`.`)).conflicts(`input-compliance-status`,/* @__PURE__ */ `input-exists.input-operating-system.input-path.input-sha256.input-thumbprint.input-id.input-domain.input-operator.input-os-distro-name.input-os-distro-revision.input-os-version-extra.input-version.input-enabled.input-check-disks.input-require-all.input-certificate-id.input-cn.input-check-private-key.input-extended-key-usage.input-locations-paths.input-locations-trust-stores.input-subject-alternative-names.input-update-window-days.input-last-seen.input-os.input-overall.input-sensor-config.input-state.input-version-operator.input-auth-state.input-count-operator.input-issue-count.input-eid-last-seen.input-risk-level.input-score-operator.input-total-score.input-active-threats.input-infected.input-is-active.input-network-status.input-operational-state.input-score`.split(`.`)).conflicts(`input-connection-id`,[`input-exists`,`input-operating-system`,`input-path`,`input-sha256`,`input-thumbprint`,`input-id`,`input-domain`,`input-operator`,`input-os-distro-name`,`input-os-distro-revision`,`input-os-version-extra`,`input-version`,`input-enabled`,`input-check-disks`,`input-require-all`,`input-certificate-id`,`input-cn`,`input-check-private-key`,`input-extended-key-usage`,`input-locations-paths`,`input-locations-trust-stores`,`input-subject-alternative-names`,`input-update-window-days`]).conflicts(`input-last-seen`,/* @__PURE__ */ `input-exists.input-operating-system.input-path.input-sha256.input-thumbprint.input-id.input-domain.input-os-distro-name.input-os-distro-revision.input-os-version-extra.input-enabled.input-check-disks.input-require-all.input-certificate-id.input-cn.input-check-private-key.input-extended-key-usage.input-locations-paths.input-locations-trust-stores.input-subject-alternative-names.input-update-window-days.input-compliance-status.input-auth-state.input-count-operator.input-issue-count.input-eid-last-seen.input-risk-level.input-score-operator.input-total-score.input-active-threats.input-infected.input-is-active.input-network-status.input-operational-state.input-score`.split(`.`)).conflicts(`input-os`,/* @__PURE__ */ `input-exists.input-operating-system.input-path.input-sha256.input-thumbprint.input-id.input-domain.input-os-distro-name.input-os-distro-revision.input-os-version-extra.input-enabled.input-check-disks.input-require-all.input-certificate-id.input-cn.input-check-private-key.input-extended-key-usage.input-locations-paths.input-locations-trust-stores.input-subject-alternative-names.input-update-window-days.input-compliance-status.input-auth-state.input-count-operator.input-issue-count.input-eid-last-seen.input-risk-level.input-score-operator.input-total-score.input-active-threats.input-infected.input-is-active.input-network-status.input-operational-state.input-score`.split(`.`)).conflicts(`input-overall`,/* @__PURE__ */ `input-exists.input-operating-system.input-path.input-sha256.input-thumbprint.input-id.input-domain.input-os-distro-name.input-os-distro-revision.input-os-version-extra.input-enabled.input-check-disks.input-require-all.input-certificate-id.input-cn.input-check-private-key.input-extended-key-usage.input-locations-paths.input-locations-trust-stores.input-subject-alternative-names.input-update-window-days.input-compliance-status.input-auth-state.input-count-operator.input-issue-count.input-eid-last-seen.input-risk-level.input-score-operator.input-total-score.input-active-threats.input-infected.input-is-active.input-network-status.input-operational-state.input-score`.split(`.`)).conflicts(`input-sensor-config`,/* @__PURE__ */ `input-exists.input-operating-system.input-path.input-sha256.input-thumbprint.input-id.input-domain.input-os-distro-name.input-os-distro-revision.input-os-version-extra.input-enabled.input-check-disks.input-require-all.input-certificate-id.input-cn.input-check-private-key.input-extended-key-usage.input-locations-paths.input-locations-trust-stores.input-subject-alternative-names.input-update-window-days.input-compliance-status.input-auth-state.input-count-operator.input-issue-count.input-eid-last-seen.input-risk-level.input-score-operator.input-total-score.input-active-threats.input-infected.input-is-active.input-network-status.input-operational-state.input-score`.split(`.`)).conflicts(`input-state`,/* @__PURE__ */ `input-exists.input-operating-system.input-path.input-sha256.input-thumbprint.input-id.input-domain.input-os-distro-name.input-os-distro-revision.input-os-version-extra.input-enabled.input-check-disks.input-require-all.input-certificate-id.input-cn.input-check-private-key.input-extended-key-usage.input-locations-paths.input-locations-trust-stores.input-subject-alternative-names.input-update-window-days.input-compliance-status.input-auth-state.input-count-operator.input-issue-count.input-eid-last-seen.input-risk-level.input-score-operator.input-total-score.input-active-threats.input-infected.input-is-active.input-network-status.input-operational-state.input-score`.split(`.`)).conflicts(`input-version-operator`,/* @__PURE__ */ `input-exists.input-operating-system.input-path.input-sha256.input-thumbprint.input-id.input-domain.input-os-distro-name.input-os-distro-revision.input-os-version-extra.input-enabled.input-check-disks.input-require-all.input-certificate-id.input-cn.input-check-private-key.input-extended-key-usage.input-locations-paths.input-locations-trust-stores.input-subject-alternative-names.input-update-window-days.input-compliance-status.input-auth-state.input-count-operator.input-issue-count.input-eid-last-seen.input-risk-level.input-score-operator.input-total-score.input-active-threats.input-infected.input-is-active.input-network-status.input-operational-state.input-score`.split(`.`)).conflicts(`input-auth-state`,/* @__PURE__ */ `input-exists.input-operating-system.input-path.input-sha256.input-thumbprint.input-id.input-domain.input-operator.input-os-distro-name.input-os-distro-revision.input-os-version-extra.input-version.input-enabled.input-check-disks.input-require-all.input-certificate-id.input-cn.input-check-private-key.input-extended-key-usage.input-locations-paths.input-locations-trust-stores.input-subject-alternative-names.input-update-window-days.input-compliance-status.input-last-seen.input-os.input-overall.input-sensor-config.input-state.input-version-operator.input-eid-last-seen.input-risk-level.input-score-operator.input-total-score.input-active-threats.input-infected.input-is-active.input-network-status.input-operational-state.input-score`.split(`.`)).conflicts(`input-count-operator`,/* @__PURE__ */ `input-exists.input-operating-system.input-path.input-sha256.input-thumbprint.input-id.input-domain.input-operator.input-os-distro-name.input-os-distro-revision.input-os-version-extra.input-version.input-enabled.input-check-disks.input-require-all.input-certificate-id.input-cn.input-check-private-key.input-extended-key-usage.input-locations-paths.input-locations-trust-stores.input-subject-alternative-names.input-update-window-days.input-compliance-status.input-last-seen.input-os.input-overall.input-sensor-config.input-state.input-version-operator.input-eid-last-seen.input-risk-level.input-score-operator.input-total-score.input-active-threats.input-infected.input-is-active.input-network-status.input-operational-state.input-score`.split(`.`)).conflicts(`input-issue-count`,/* @__PURE__ */ `input-exists.input-operating-system.input-path.input-sha256.input-thumbprint.input-id.input-domain.input-operator.input-os-distro-name.input-os-distro-revision.input-os-version-extra.input-version.input-enabled.input-check-disks.input-require-all.input-certificate-id.input-cn.input-check-private-key.input-extended-key-usage.input-locations-paths.input-locations-trust-stores.input-subject-alternative-names.input-update-window-days.input-compliance-status.input-last-seen.input-os.input-overall.input-sensor-config.input-state.input-version-operator.input-eid-last-seen.input-risk-level.input-score-operator.input-total-score.input-active-threats.input-infected.input-is-active.input-network-status.input-operational-state.input-score`.split(`.`)).conflicts(`input-eid-last-seen`,/* @__PURE__ */ `input-exists.input-operating-system.input-path.input-sha256.input-thumbprint.input-id.input-domain.input-os-distro-name.input-os-distro-revision.input-os-version-extra.input-version.input-enabled.input-check-disks.input-require-all.input-certificate-id.input-cn.input-check-private-key.input-extended-key-usage.input-locations-paths.input-locations-trust-stores.input-subject-alternative-names.input-update-window-days.input-compliance-status.input-last-seen.input-os.input-overall.input-sensor-config.input-state.input-version-operator.input-auth-state.input-count-operator.input-issue-count.input-active-threats.input-infected.input-is-active.input-network-status.input-operational-state.input-score`.split(`.`)).conflicts(`input-risk-level`,/* @__PURE__ */ `input-exists.input-operating-system.input-path.input-sha256.input-thumbprint.input-id.input-domain.input-os-distro-name.input-os-distro-revision.input-os-version-extra.input-version.input-enabled.input-check-disks.input-require-all.input-certificate-id.input-cn.input-check-private-key.input-extended-key-usage.input-locations-paths.input-locations-trust-stores.input-subject-alternative-names.input-update-window-days.input-compliance-status.input-last-seen.input-os.input-overall.input-sensor-config.input-state.input-version-operator.input-auth-state.input-count-operator.input-issue-count.input-active-threats.input-infected.input-is-active.input-network-status.input-operational-state.input-score`.split(`.`)).conflicts(`input-score-operator`,/* @__PURE__ */ `input-exists.input-operating-system.input-path.input-sha256.input-thumbprint.input-id.input-domain.input-os-distro-name.input-os-distro-revision.input-os-version-extra.input-version.input-enabled.input-check-disks.input-require-all.input-certificate-id.input-cn.input-check-private-key.input-extended-key-usage.input-locations-paths.input-locations-trust-stores.input-subject-alternative-names.input-update-window-days.input-compliance-status.input-last-seen.input-os.input-overall.input-sensor-config.input-state.input-version-operator.input-auth-state.input-count-operator.input-issue-count.input-active-threats.input-infected.input-is-active.input-network-status.input-operational-state.input-score`.split(`.`)).conflicts(`input-total-score`,/* @__PURE__ */ `input-exists.input-operating-system.input-path.input-sha256.input-thumbprint.input-id.input-domain.input-os-distro-name.input-os-distro-revision.input-os-version-extra.input-version.input-enabled.input-check-disks.input-require-all.input-certificate-id.input-cn.input-check-private-key.input-extended-key-usage.input-locations-paths.input-locations-trust-stores.input-subject-alternative-names.input-update-window-days.input-compliance-status.input-last-seen.input-os.input-overall.input-sensor-config.input-state.input-version-operator.input-auth-state.input-count-operator.input-issue-count.input-active-threats.input-infected.input-is-active.input-network-status.input-operational-state.input-score`.split(`.`)).conflicts(`input-active-threats`,/* @__PURE__ */ `input-exists.input-operating-system.input-path.input-sha256.input-thumbprint.input-id.input-domain.input-os-distro-name.input-os-distro-revision.input-os-version-extra.input-version.input-enabled.input-check-disks.input-require-all.input-certificate-id.input-cn.input-check-private-key.input-extended-key-usage.input-locations-paths.input-locations-trust-stores.input-subject-alternative-names.input-update-window-days.input-compliance-status.input-last-seen.input-os.input-overall.input-sensor-config.input-state.input-version-operator.input-auth-state.input-count-operator.input-issue-count.input-eid-last-seen.input-risk-level.input-score-operator.input-total-score.input-score`.split(`.`)).conflicts(`input-infected`,/* @__PURE__ */ `input-exists.input-operating-system.input-path.input-sha256.input-thumbprint.input-id.input-domain.input-os-distro-name.input-os-distro-revision.input-os-version-extra.input-version.input-enabled.input-check-disks.input-require-all.input-certificate-id.input-cn.input-check-private-key.input-extended-key-usage.input-locations-paths.input-locations-trust-stores.input-subject-alternative-names.input-update-window-days.input-compliance-status.input-last-seen.input-os.input-overall.input-sensor-config.input-state.input-version-operator.input-auth-state.input-count-operator.input-issue-count.input-eid-last-seen.input-risk-level.input-score-operator.input-total-score.input-score`.split(`.`)).conflicts(`input-is-active`,/* @__PURE__ */ `input-exists.input-operating-system.input-path.input-sha256.input-thumbprint.input-id.input-domain.input-os-distro-name.input-os-distro-revision.input-os-version-extra.input-version.input-enabled.input-check-disks.input-require-all.input-certificate-id.input-cn.input-check-private-key.input-extended-key-usage.input-locations-paths.input-locations-trust-stores.input-subject-alternative-names.input-update-window-days.input-compliance-status.input-last-seen.input-os.input-overall.input-sensor-config.input-state.input-version-operator.input-auth-state.input-count-operator.input-issue-count.input-eid-last-seen.input-risk-level.input-score-operator.input-total-score.input-score`.split(`.`)).conflicts(`input-network-status`,/* @__PURE__ */ `input-exists.input-operating-system.input-path.input-sha256.input-thumbprint.input-id.input-domain.input-os-distro-name.input-os-distro-revision.input-os-version-extra.input-version.input-enabled.input-check-disks.input-require-all.input-certificate-id.input-cn.input-check-private-key.input-extended-key-usage.input-locations-paths.input-locations-trust-stores.input-subject-alternative-names.input-update-window-days.input-compliance-status.input-last-seen.input-os.input-overall.input-sensor-config.input-state.input-version-operator.input-auth-state.input-count-operator.input-issue-count.input-eid-last-seen.input-risk-level.input-score-operator.input-total-score.input-score`.split(`.`)).conflicts(`input-operational-state`,/* @__PURE__ */ `input-exists.input-operating-system.input-path.input-sha256.input-thumbprint.input-id.input-domain.input-os-distro-name.input-os-distro-revision.input-os-version-extra.input-version.input-enabled.input-check-disks.input-require-all.input-certificate-id.input-cn.input-check-private-key.input-extended-key-usage.input-locations-paths.input-locations-trust-stores.input-subject-alternative-names.input-update-window-days.input-compliance-status.input-last-seen.input-os.input-overall.input-sensor-config.input-state.input-version-operator.input-auth-state.input-count-operator.input-issue-count.input-eid-last-seen.input-risk-level.input-score-operator.input-total-score.input-score`.split(`.`)).conflicts(`input-score`,/* @__PURE__ */ `input-exists.input-operating-system.input-path.input-sha256.input-thumbprint.input-id.input-domain.input-os-distro-name.input-os-distro-revision.input-os-version-extra.input-version.input-enabled.input-check-disks.input-require-all.input-certificate-id.input-cn.input-check-private-key.input-extended-key-usage.input-locations-paths.input-locations-trust-stores.input-subject-alternative-names.input-update-window-days.input-compliance-status.input-last-seen.input-os.input-overall.input-sensor-config.input-state.input-version-operator.input-auth-state.input-count-operator.input-issue-count.input-eid-last-seen.input-risk-level.input-score-operator.input-total-score.input-active-threats.input-infected.input-is-active.input-network-status.input-operational-state`.split(`.`)).implies(`input-score`,[`input-connection-id`,`input-operator`])}const dp={command:`create`,describe:`Create posture rule`,builder:up,handler:async e=>u({command:`zero-trust devices posture rules create`,classification:{safeFlags:[`input-exists`,`input-operating-system`,`input-operator`,`input-enabled`,`input-require-all`,`input-check-private-key`,`input-compliance-status`,`input-state`,`input-version-operator`,`input-count-operator`,`input-risk-level`,`input-score-operator`,`input-infected`,`input-is-active`,`input-network-status`,`input-operational-state`,`type`,`dry-run`]}},e,async()=>{if(e.dryRun){let t=await i();c({command:`cf zero-trust devices posture rules create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/devices/posture`,pathParams:{},bodyKind:`json`,body:e.body===void 0?m({description:h(e.description,`description`,`text`),expiration:h(e.expiration,`expiration`,`text`),input:{exists:e[`input-exists`],operating_system:e[`input-operating-system`],path:h(e[`input-path`],`input-path`,`text`),sha256:h(e[`input-sha256`],`input-sha256`,`text`),thumbprint:h(e[`input-thumbprint`],`input-thumbprint`,`text`),id:h(e[`input-id`],`input-id`,`text`),domain:h(e[`input-domain`],`input-domain`,`text`),operator:e[`input-operator`],os_distro_name:h(e[`input-os-distro-name`],`input-os-distro-name`,`text`),os_distro_revision:h(e[`input-os-distro-revision`],`input-os-distro-revision`,`text`),os_version_extra:h(e[`input-os-version-extra`],`input-os-version-extra`,`text`),version:h(e[`input-version`],`input-version`,`text`),enabled:e[`input-enabled`],checkDisks:e[`input-check-disks`],requireAll:e[`input-require-all`],certificate_id:h(e[`input-certificate-id`],`input-certificate-id`,`text`),cn:h(e[`input-cn`],`input-cn`,`text`),check_private_key:e[`input-check-private-key`],extended_key_usage:e[`input-extended-key-usage`],locations:{paths:e[`input-locations-paths`],trust_stores:e[`input-locations-trust-stores`]},subject_alternative_names:e[`input-subject-alternative-names`],update_window_days:e[`input-update-window-days`],compliance_status:e[`input-compliance-status`],connection_id:h(e[`input-connection-id`],`input-connection-id`,`text`),last_seen:h(e[`input-last-seen`],`input-last-seen`,`text`),os:h(e[`input-os`],`input-os`,`text`),overall:h(e[`input-overall`],`input-overall`,`text`),sensor_config:h(e[`input-sensor-config`],`input-sensor-config`,`text`),state:e[`input-state`],versionOperator:e[`input-version-operator`],auth_state:e[`input-auth-state`],countOperator:e[`input-count-operator`],issue_count:h(e[`input-issue-count`],`input-issue-count`,`text`),eid_last_seen:h(e[`input-eid-last-seen`],`input-eid-last-seen`,`text`),risk_level:e[`input-risk-level`],scoreOperator:e[`input-score-operator`],total_score:e[`input-total-score`],active_threats:e[`input-active-threats`],infected:e[`input-infected`],is_active:e[`input-is-active`],network_status:e[`input-network-status`],operational_state:e[`input-operational-state`],score:e[`input-score`]},match:p(e.match,`match`),name:h(e.name,`name`,`text`),schedule:h(e.schedule,`schedule`,`text`),type:e.type}):f(e.body)});return}let n=await r(e),a=e.local?t:await o();if(e.accountId=a,e.body){let t=f(e.body),r=await l(`Creating`,async()=>n.send(lp,{body:t,account_id:a}));s(r,{successLabel:`Created`});return}e.name===void 0&&(e.name=await _(`name`,`The name of the device posture rule.`)),e.type===void 0&&(e.type=await v(`type`,`The type of device posture rule.`,[`file`,`application`,`tanium`,`gateway`,`warp`,`disk_encryption`,`serial_number`,`sentinelone`,`carbonblack`,`firewall`,`os_version`,`domain_joined`,`client_certificate`,`client_certificate_v2`,`antivirus`,`unique_client_id`,`kolide`,`tanium_s2s`,`crowdstrike_s2s`,`intune`,`workspace_one`,`sentinelone_s2s`,`custom_s2s`]));let u=m({description:h(e.description,`description`,`text`),expiration:h(e.expiration,`expiration`,`text`),input:{exists:e[`input-exists`],operating_system:e[`input-operating-system`],path:h(e[`input-path`],`input-path`,`text`),sha256:h(e[`input-sha256`],`input-sha256`,`text`),thumbprint:h(e[`input-thumbprint`],`input-thumbprint`,`text`),id:h(e[`input-id`],`input-id`,`text`),domain:h(e[`input-domain`],`input-domain`,`text`),operator:e[`input-operator`],os_distro_name:h(e[`input-os-distro-name`],`input-os-distro-name`,`text`),os_distro_revision:h(e[`input-os-distro-revision`],`input-os-distro-revision`,`text`),os_version_extra:h(e[`input-os-version-extra`],`input-os-version-extra`,`text`),version:h(e[`input-version`],`input-version`,`text`),enabled:e[`input-enabled`],checkDisks:e[`input-check-disks`],requireAll:e[`input-require-all`],certificate_id:h(e[`input-certificate-id`],`input-certificate-id`,`text`),cn:h(e[`input-cn`],`input-cn`,`text`),check_private_key:e[`input-check-private-key`],extended_key_usage:e[`input-extended-key-usage`],locations:{paths:e[`input-locations-paths`],trust_stores:e[`input-locations-trust-stores`]},subject_alternative_names:e[`input-subject-alternative-names`],update_window_days:e[`input-update-window-days`],compliance_status:e[`input-compliance-status`],connection_id:h(e[`input-connection-id`],`input-connection-id`,`text`),last_seen:h(e[`input-last-seen`],`input-last-seen`,`text`),os:h(e[`input-os`],`input-os`,`text`),overall:h(e[`input-overall`],`input-overall`,`text`),sensor_config:h(e[`input-sensor-config`],`input-sensor-config`,`text`),state:e[`input-state`],versionOperator:e[`input-version-operator`],auth_state:e[`input-auth-state`],countOperator:e[`input-count-operator`],issue_count:h(e[`input-issue-count`],`input-issue-count`,`text`),eid_last_seen:h(e[`input-eid-last-seen`],`input-eid-last-seen`,`text`),risk_level:e[`input-risk-level`],scoreOperator:e[`input-score-operator`],total_score:e[`input-total-score`],active_threats:e[`input-active-threats`],infected:e[`input-infected`],is_active:e[`input-is-active`],network_status:e[`input-network-status`],operational_state:e[`input-operational-state`],score:e[`input-score`]},match:p(e.match,`match`),name:h(e.name,`name`,`text`),schedule:h(e.schedule,`schedule`,`text`),type:e.type}),d=await l(`Creating`,async()=>n.send(lp,{body:u,account_id:a}));s(d,{successLabel:`Created`})})};var fp={method:`DELETE`,path:t=>e`/accounts/${t.account_id}/devices/posture/${t.rule_id}`};function pp(e){return e.usage(`$0 zero-trust devices posture rules delete <rule-id>
493
493
 
@@ -854,7 +854,7 @@ List all Zero Trust Gateway PAC files for an account.`).option(`page`,{type:`num
854
854
 
855
855
  Update a configured Zero Trust Gateway PAC file.`).positional(`pacfile-id`,{type:`string`,description:`Pacfile ID`,demandOption:!0}).option(`contents`,{type:`string`,description:`Actual contents of the PAC file`}).option(`description`,{type:`string`,description:`Detailed description of the PAC file.`}).option(`name`,{type:`string`,description:`Name of the PAC file.`}).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 vC={command:`update <pacfile-id>`,describe:`Update a Zero Trust Gateway PAC file`,builder:_C,handler:async e=>u({command:`zero-trust gateway pacfiles update`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await i();c({command:`cf zero-trust gateway pacfiles update`,method:`PUT`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/gateway/pacfiles/${e[`pacfile-id`]==null?`<pacfile-id>`:encodeURIComponent(String(e[`pacfile-id`]))}`,pathParams:{"pacfile-id":String(e[`pacfile-id`]??``)},bodyKind:`json`,body:e.body===void 0?m({contents:h(e.contents,`contents`,`text`),description:h(e.description,`description`,`text`),name:h(e.name,`name`,`text`)}):f(e.body)});return}let n=await r(e),a=e.local?t:await o();if(e.accountId=a,e.body){let t=f(e.body),r=await l(`Updating`,async()=>n.send(gC,{body:t,account_id:a,pacfile_id:e[`pacfile-id`]}));s(r,{successLabel:`Updated`});return}e.contents===void 0&&(e.contents=await _(`contents`,`Actual contents of the PAC file`)),e.description===void 0&&(e.description=await _(`description`,`Detailed description of the PAC file.`)),e.name===void 0&&(e.name=await _(`name`,`Name of the PAC file.`));let u=m({contents:h(e.contents,`contents`,`text`),description:h(e.description,`description`,`text`),name:h(e.name,`name`,`text`)}),d=await l(`Updating`,async()=>n.send(gC,{body:u,account_id:a,pacfile_id:e[`pacfile-id`]}));s(d,{successLabel:`Updated`})})},yC={command:`pacfiles`,describe:`Operations for gateway.pacfiles`,builder:e=>e.command(oC).command(lC).command(fC).command(hC).command(vC).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var bC={method:`POST`,path:t=>e`/accounts/${t.account_id}/gateway/proxy_endpoints`,body:`json`};function xC(e){return e.usage(`$0 zero-trust gateway proxy-endpoints create
856
856
 
857
- Create a new Zero Trust Gateway proxy endpoint.`).option(`kind`,{type:`string`,description:`The proxy endpoint kind.`,choices:[`ip`,`identity`],default:`ip`}).coerce(`kind`,e=>h(e,`kind`,`text`)).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const SC={command:`create`,describe:`Create a proxy endpoint`,builder:xC,handler:async e=>u({command:`zero-trust gateway proxy-endpoints create`,classification:{safeFlags:[`kind`,`dry-run`]}},e,async()=>{if(e.dryRun){let t=await i();c({command:`cf zero-trust gateway proxy-endpoints create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/gateway/proxy_endpoints`,pathParams:{},bodyKind:`json`,body:e.body===void 0?m({kind:e.kind}):f(e.body)});return}let n=await r(e),a=e.local?t:await o();if(e.accountId=a,e.body){let t=f(e.body),r=await l(`Creating`,async()=>n.send(bC,{body:t,account_id:a}));s(r,{successLabel:`Created`});return}if(e.kind===`ip`)throw Error(`The ip variant requires ips, which cannot be supplied as flags. Pass --body with a complete request body.`);e.kind===`identity`&&e.kind===void 0&&(e.kind=await _(`kind`,`The proxy endpoint kind.`,{question:`Enter value for --kind`}));let u=m({kind:e.kind}),d=await l(`Creating`,async()=>n.send(bC,{body:u,account_id:a}));s(d,{successLabel:`Created`})})};var CC={method:`DELETE`,path:t=>e`/accounts/${t.account_id}/gateway/proxy_endpoints/${t.proxy_endpoint_id}`};function wC(e){return e.usage(`$0 zero-trust gateway proxy-endpoints delete <proxy-endpoint-id>
857
+ Create a new Zero Trust Gateway proxy endpoint.`).option(`kind`,{type:`string`,description:`The proxy endpoint kind.`,choices:[`ip`,`identity`],default:`ip`}).coerce(`kind`,e=>h(e,`kind`,`text`)).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const SC={command:`create`,describe:`Create a proxy endpoint`,builder:xC,handler:async e=>u({command:`zero-trust gateway proxy-endpoints create`,classification:{safeFlags:[`kind`,`dry-run`]}},e,async()=>{if(e.dryRun){let t=await i();c({command:`cf zero-trust gateway proxy-endpoints create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/gateway/proxy_endpoints`,pathParams:{},bodyKind:`json`,body:e.body===void 0?m({kind:e.kind}):f(e.body)});return}let n=await r(e),a=e.local?t:await o();if(e.accountId=a,e.body){let t=f(e.body),r=await l(`Creating`,async()=>n.send(bC,{body:t,account_id:a}));s(r,{successLabel:`Created`});return}let u=m({kind:e.kind}),d=await l(`Creating`,async()=>n.send(bC,{body:u,account_id:a}));s(d,{successLabel:`Created`})})};var CC={method:`DELETE`,path:t=>e`/accounts/${t.account_id}/gateway/proxy_endpoints/${t.proxy_endpoint_id}`};function wC(e){return e.usage(`$0 zero-trust gateway proxy-endpoints delete <proxy-endpoint-id>
858
858
 
859
859
  Delete a configured Zero Trust Gateway proxy endpoint.`).positional(`proxy-endpoint-id`,{type:`string`,description:`Proxy endpoint 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 TC={command:`delete <proxy-endpoint-id>`,describe:`Delete a proxy endpoint`,builder:wC,handler:async e=>u({command:`zero-trust gateway proxy-endpoints delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{if(e.dryRun){let t=await i();c({command:`cf zero-trust gateway proxy-endpoints delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/gateway/proxy_endpoints/${e[`proxy-endpoint-id`]==null?`<proxy-endpoint-id>`:encodeURIComponent(String(e[`proxy-endpoint-id`]))}`,pathParams:{"proxy-endpoint-id":String(e[`proxy-endpoint-id`]??``)},bodyKind:`none`});return}let n=await r(e),a=e.local?t:await o();if(e.accountId=a,!await y({force:!!e.force})){process.stderr.write(`Aborted.
860
860
  `);return}let u=await l(`Deleting`,async()=>n.send(CC,{account_id:a,proxy_endpoint_id:e[`proxy-endpoint-id`]}));s(u,{successLabel:`Deleted`})})};var EC={method:`PATCH`,path:t=>e`/accounts/${t.account_id}/gateway/proxy_endpoints/${t.proxy_endpoint_id}`,body:`json`};function DC(e){return e.usage(`$0 zero-trust gateway proxy-endpoints edit <proxy-endpoint-id>
@@ -882,7 +882,7 @@ Update a configured Zero Trust Gateway rule.`).positional(`rule-id`,{type:`strin
882
882
 
883
883
  Adds a new identity provider to Access.`).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 pw={command:`create`,describe:`Add an Access identity provider`,builder:fw,handler:async e=>u({command:`zero-trust identity-providers create`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=e.zone===void 0?await i():void 0,n=e.zone===void 0?`accounts`:`zones`,r=e.zone??t??`<account-id>`;c({command:`cf zero-trust identity-providers create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/${n}/${r}/access/identity_providers`,pathParams:{"account-or-zone":String(n),"account-or-zone-id":String(r)},bodyKind:`json`,body:e.body===void 0?void 0:f(e.body)});return}let n=await r(e),u=e.zone===void 0?`accounts`:`zones`,d=u===`zones`?await a({zone:e.zone},n,{quiet:e.quiet}):e.local?t:await o();if(u===`zones`?e.zoneId=d:e.accountId=d,e.body){let t=f(e.body),r=await l(`Creating`,async()=>n.send(dw,{body:t,account_or_zone:u,account_or_zone_id:d}));s(r,{successLabel:`Created`});return}if(e.body===void 0)throw Error(`--body is required for this command. Pass --body '<json>' or --body @path/to/file.json.`)})};var mw={method:`DELETE`,path:t=>e`/${t.account_or_zone}/${t.account_or_zone_id}/access/identity_providers/${t.identity_provider_id}`};function hw(e){return e.usage(`$0 zero-trust identity-providers delete <identity-provider-id>
884
884
 
885
- Deletes an identity provider from Access.`).positional(`identity-provider-id`,{type:`string`,description:`UUID.`,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 gw={command:`delete <identity-provider-id>`,describe:`Delete an Access identity provider`,builder:hw,handler:async e=>u({command:`zero-trust identity-providers delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{if(e.dryRun){let t=e.zone===void 0?await i():void 0,n=e.zone===void 0?`accounts`:`zones`,r=e.zone??t??`<account-id>`;c({command:`cf zero-trust identity-providers delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/${n}/${r}/access/identity_providers/${e[`identity-provider-id`]==null?`<identity-provider-id>`:encodeURIComponent(String(e[`identity-provider-id`]))}`,pathParams:{"account-or-zone":String(n),"identity-provider-id":String(e[`identity-provider-id`]??``),"account-or-zone-id":String(r)},bodyKind:`none`});return}let n=await r(e),u=e.zone===void 0?`accounts`:`zones`,d=u===`zones`?await a({zone:e.zone},n,{quiet:e.quiet}):e.local?t:await o();if(u===`zones`?e.zoneId=d:e.accountId=d,!await y({force:!!e.force})){process.stderr.write(`Aborted.
885
+ Deletes an identity provider from Access.`).positional(`identity-provider-id`,{type:`string`,description:`UUID.`,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 gw={command:`delete <identity-provider-id>`,describe:`Delete an Access identity provider`,builder:hw,handler:async e=>u({command:`zero-trust identity-providers delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{if(e.dryRun){let t=e.zone===void 0?await i():void 0,n=e.zone===void 0?`accounts`:`zones`,r=e.zone??t??`<account-id>`;c({command:`cf zero-trust identity-providers delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/${n}/${r}/access/identity_providers/${e[`identity-provider-id`]==null?`<identity-provider-id>`:encodeURIComponent(String(e[`identity-provider-id`]))}`,pathParams:{"account-or-zone":String(n),"account-or-zone-id":String(r),"identity-provider-id":String(e[`identity-provider-id`]??``)},bodyKind:`none`});return}let n=await r(e),u=e.zone===void 0?`accounts`:`zones`,d=u===`zones`?await a({zone:e.zone},n,{quiet:e.quiet}):e.local?t:await o();if(u===`zones`?e.zoneId=d:e.accountId=d,!await y({force:!!e.force})){process.stderr.write(`Aborted.
886
886
  `);return}let f=await l(`Deleting`,async()=>n.send(mw,{account_or_zone:u,account_or_zone_id:d,identity_provider_id:e[`identity-provider-id`]}));s(f,{successLabel:`Deleted`})})};var _w={method:`POST`,path:t=>e`/accounts/${t.account_id}/access/idp_federation_grants`,body:`json`};function vw(e){return e.usage(`$0 zero-trust identity-providers federation-grants create
887
887
 
888
888
  Creates an IdP federation grant for the specified identity provider, making it available for federation to other accounts in the same Cloudflare organization. The account must belong to a Cloudflare organization. One-time pin and Cloudflare-managed identity providers cannot be federated. An account can federate at most five identity providers at a time.`).option(`idp-id`,{type:`string`,description:`UID of the identity provider to federate. Must be an existing identity provider in this account. One-time pin and Cloudflare-managed identity providers cannot be federated.`}).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 yw={command:`create`,describe:`Create an IdP federation grant`,builder:vw,handler:async e=>u({command:`zero-trust identity-providers federation-grants create`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await i();c({command:`cf zero-trust identity-providers federation-grants create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/access/idp_federation_grants`,pathParams:{},bodyKind:`json`,body:e.body===void 0?m({idp_id:h(e[`idp-id`],`idp-id`,`text`)}):f(e.body)});return}let n=await r(e),a=e.local?t:await o();if(e.accountId=a,e.body){let t=f(e.body),r=await l(`Creating`,async()=>n.send(_w,{body:t,account_id:a}));s(r,{successLabel:`Created`});return}e[`idp-id`]===void 0&&(e[`idp-id`]=await _(`idp-id`,`UID of the identity provider to federate. Must be an existing identity provider in this account. One-time pin and Cloudflare-managed identity providers cannot be federated.`));let u=m({idp_id:h(e[`idp-id`],`idp-id`,`text`)}),d=await l(`Creating`,async()=>n.send(_w,{body:u,account_id:a}));s(d,{successLabel:`Created`})})};var bw={method:`DELETE`,path:t=>e`/accounts/${t.account_id}/access/idp_federation_grants/${t.grant_id}`,errors:{404:`NotFoundError`}};function xw(e){return e.usage(`$0 zero-trust identity-providers federation-grants delete <grant-id>
@@ -894,7 +894,7 @@ Retrieves a single IdP federation grant by its UID.`).positional(`grant-id`,{typ
894
894
 
895
895
  Lists the IdP federation grants owned by the account.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const Ow={command:`list`,describe:`List IdP federation grants`,builder:Dw,handler:async e=>u({command:`zero-trust identity-providers federation-grants list`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let e=await i();c({command:`cf zero-trust identity-providers federation-grants list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}/access/idp_federation_grants`,pathParams:{},bodyKind:`none`});return}let n=await r(e),a=e.local?t:await o();e.accountId=a;let u=await l(`Loading`,async()=>n.send(Ew,{account_id:a}));s(u,{successLabel:`Loaded`})})},kw={command:`federation-grants`,describe:`Operations for identity-providers.federation-grants`,builder:e=>e.command(yw).command(Sw).command(Tw).command(Ow).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var Aw={method:`GET`,path:t=>e`/${t.account_or_zone}/${t.account_or_zone_id}/access/identity_providers/${t.identity_provider_id}`};function jw(e){return e.usage(`$0 zero-trust identity-providers get <identity-provider-id>
896
896
 
897
- Fetches a configured identity provider.`).positional(`identity-provider-id`,{type:`string`,description:`UUID.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const Mw={command:`get <identity-provider-id>`,describe:`Get an Access identity provider`,builder:jw,handler:async e=>u({command:`zero-trust identity-providers get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=e.zone===void 0?await i():void 0,n=e.zone===void 0?`accounts`:`zones`,r=e.zone??t??`<account-id>`;c({command:`cf zero-trust identity-providers get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/${n}/${r}/access/identity_providers/${e[`identity-provider-id`]==null?`<identity-provider-id>`:encodeURIComponent(String(e[`identity-provider-id`]))}`,pathParams:{"account-or-zone":String(n),"identity-provider-id":String(e[`identity-provider-id`]??``),"account-or-zone-id":String(r)},bodyKind:`none`});return}let n=await r(e),u=e.zone===void 0?`accounts`:`zones`,d=u===`zones`?await a({zone:e.zone},n,{quiet:e.quiet}):e.local?t:await o();u===`zones`?e.zoneId=d:e.accountId=d;let f=await l(`Loading`,async()=>n.send(Aw,{account_or_zone:u,account_or_zone_id:d,identity_provider_id:e[`identity-provider-id`]}));s(f,{successLabel:`Loaded`})})};var Nw={method:`GET`,path:t=>e`/${t.account_or_zone}/${t.account_or_zone_id}/access/identity_providers`,query:[`scim_enabled`,`page`,`per_page`]};function Pw(e){return e.usage(`$0 zero-trust identity-providers list
897
+ Fetches a configured identity provider.`).positional(`identity-provider-id`,{type:`string`,description:`UUID.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const Mw={command:`get <identity-provider-id>`,describe:`Get an Access identity provider`,builder:jw,handler:async e=>u({command:`zero-trust identity-providers get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=e.zone===void 0?await i():void 0,n=e.zone===void 0?`accounts`:`zones`,r=e.zone??t??`<account-id>`;c({command:`cf zero-trust identity-providers get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/${n}/${r}/access/identity_providers/${e[`identity-provider-id`]==null?`<identity-provider-id>`:encodeURIComponent(String(e[`identity-provider-id`]))}`,pathParams:{"account-or-zone":String(n),"account-or-zone-id":String(r),"identity-provider-id":String(e[`identity-provider-id`]??``)},bodyKind:`none`});return}let n=await r(e),u=e.zone===void 0?`accounts`:`zones`,d=u===`zones`?await a({zone:e.zone},n,{quiet:e.quiet}):e.local?t:await o();u===`zones`?e.zoneId=d:e.accountId=d;let f=await l(`Loading`,async()=>n.send(Aw,{account_or_zone:u,account_or_zone_id:d,identity_provider_id:e[`identity-provider-id`]}));s(f,{successLabel:`Loaded`})})};var Nw={method:`GET`,path:t=>e`/${t.account_or_zone}/${t.account_or_zone_id}/access/identity_providers`,query:[`scim_enabled`,`page`,`per_page`]};function Pw(e){return e.usage(`$0 zero-trust identity-providers list
898
898
 
899
899
  Lists all configured identity providers.`).option(`scim-enabled`,{type:`string`,description:`Indicates to Access to only retrieve identity providers that have the System for Cross-Domain Identity Management (SCIM) enabled.`}).option(`page`,{type:`number`,description:`Page number of results.`}).option(`per-page`,{type:`number`,description:`Number of results per page.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const Fw={command:`list`,describe:`List Access identity providers`,builder:Pw,handler:async e=>u({command:`zero-trust identity-providers list`,classification:{safeFlags:[`dry-run`]}},e,async()=>{let n={scim_enabled:e[`scim-enabled`],page:e.page,per_page:e[`per-page`]};if(e.dryRun){let t=e.zone===void 0?await i():void 0,r=e.zone===void 0?`accounts`:`zones`,a=e.zone??t??`<account-id>`;c({command:`cf zero-trust identity-providers list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/${r}/${a}/access/identity_providers`,pathParams:{"account-or-zone":String(r),"account-or-zone-id":String(a)},query:n,bodyKind:`none`});return}let u=await r(e),d=e.zone===void 0?`accounts`:`zones`,f=d===`zones`?await a({zone:e.zone},u,{quiet:e.quiet}):e.local?t:await o();d===`zones`?e.zoneId=f:e.accountId=f;let p=await l(`Loading`,async()=>u.send(Nw,{account_or_zone:d,account_or_zone_id:f,...n}));s(p,{successLabel:`Loaded`})})};var Iw={method:`POST`,path:t=>e`/accounts/${t.account_id}/access/identity_providers/${t.identity_provider_id}/saml_certificate`,errors:{403:`ForbiddenError`,404:`NotFoundError`}};function Lw(e){return e.usage("$0 zero-trust identity-providers saml-certificate create <identity-provider-id>\n\nCreates a new SAML encryption certificate set and assigns it to the specified SAML Identity Provider. This endpoint is idempotent - if the IdP already has a certificate set assigned, the existing certificate set is returned with a 200 status. **Workflow for enabling SAML encryption:** 1. Call this endpoint to create and assign a certificate set to the IdP 2. Update the IdP configuration (PUT `/identity_providers/{id}`) with: - `config.enable_encryption: true` - `saml_certificate_set_id: <uid from step 1>` 3. Configure the certificate's public key in your external SAML Identity Provider").positional(`identity-provider-id`,{type:`string`,description:`UUID.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const Rw={command:`create <identity-provider-id>`,describe:`Create SAML encryption certificate for Identity Provider`,builder:Lw,handler:async e=>u({command:`zero-trust identity-providers saml-certificate create`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await i();c({command:`cf zero-trust identity-providers saml-certificate create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/access/identity_providers/${e[`identity-provider-id`]==null?`<identity-provider-id>`:encodeURIComponent(String(e[`identity-provider-id`]))}/saml_certificate`,pathParams:{"identity-provider-id":String(e[`identity-provider-id`]??``)},bodyKind:`none`});return}let n=await r(e),a=e.local?t:await o();e.accountId=a;let u=await l(`Creating`,async()=>n.send(Iw,{account_id:a,identity_provider_id:e[`identity-provider-id`]}));s(u,{successLabel:`Created`})})},zw={command:`saml-certificate`,describe:`Operations for identity-providers.saml-certificate`,builder:e=>e.command(Rw).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var Bw={method:`DELETE`,path:t=>e`/accounts/${t.account_id}/access/identity_providers/${t.identity_provider_id}/scim/groups/${t.group_id}`,response:!1};function Vw(e){return e.usage(`$0 zero-trust identity-providers scim groups delete <group-id>
900
900
 
@@ -912,7 +912,7 @@ Returns a SCIM User resource synced to Cloudflare via the System for Cross-domai
912
912
 
913
913
  Lists SCIM User resources synced to Cloudflare via the System for Cross-domain Identity Management (SCIM).`).option(`identity-provider-id`,{type:`string`,description:`UUID.`,demandOption:!0}).option(`cf-resource-id`,{type:`string`,description:'The unique Cloudflare-generated Id of the SCIM User resource; also known as the "Id".\nPass once for a single lookup (`?cf_resource_id=A`) or repeat the parameter\n(`?cf_resource_id=A&cf_resource_id=B`) to look up multiple users in one request,\nup to 50 values. Mutually exclusive with `idp_resource_id`, `username`, `email`,\n`name`, `search_contains`, and `search_starts_with`.'}).option(`idp-resource-id`,{type:`string`,description:'The IdP-generated Id of the SCIM User resource; also known as the "external Id".\nPass once for a single lookup (`?idp_resource_id=A`) or repeat the parameter\n(`?idp_resource_id=A&idp_resource_id=B`) to look up multiple users in one request,\nup to 50 values. Mutually exclusive with `cf_resource_id`, `username`, `email`,\n`name`, `search_contains`, and `search_starts_with`.'}).option(`username`,{type:`string`,description:`The username of the SCIM User resource.`}).option(`email`,{type:`string`,description:`The email address of the SCIM User resource.`}).option(`name`,{type:`string`,description:`The name of the SCIM User resource.`}).option(`page`,{type:`number`,description:`Page number of results.`}).option(`per-page`,{type:`number`,description:`Number of results per page.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const iT={command:`list`,describe:`List SCIM User resources`,builder:rT,handler:async e=>u({command:`zero-trust identity-providers scim users list`,classification:{safeFlags:[`dry-run`]}},e,async()=>{let n={cf_resource_id:e[`cf-resource-id`],idp_resource_id:e[`idp-resource-id`],username:e.username,email:e.email,name:e.name,page:e.page,per_page:e[`per-page`]};if(e.dryRun){let t=await i();c({command:`cf zero-trust identity-providers scim users list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/access/identity_providers/${e[`identity-provider-id`]==null?`<identity-provider-id>`:encodeURIComponent(String(e[`identity-provider-id`]))}/scim/users`,pathParams:{"identity-provider-id":String(e[`identity-provider-id`]??``)},query:n,bodyKind:`none`});return}let a=await r(e),u=e.local?t:await o();e.accountId=u;let d=await l(`Loading`,async()=>a.send(nT,{account_id:u,identity_provider_id:e[`identity-provider-id`],...n}));s(d,{successLabel:`Loaded`})})},aT={command:`users`,describe:`Operations for identity-providers.scim.users`,builder:e=>e.command(Qw).command(tT).command(iT).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},oT={command:`scim`,describe:`Operations for identity-providers.scim`,builder:e=>e.command(Yw).command(aT).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var sT={method:`PUT`,path:t=>e`/${t.account_or_zone}/${t.account_or_zone_id}/access/identity_providers/${t.identity_provider_id}`,body:`json`};function cT(e){return e.usage(`$0 zero-trust identity-providers update <identity-provider-id>
914
914
 
915
- Updates a configured identity provider.`).positional(`identity-provider-id`,{type:`string`,description:`UUID.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const lT={command:`update <identity-provider-id>`,describe:`Update an Access identity provider`,builder:cT,handler:async e=>u({command:`zero-trust identity-providers update`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=e.zone===void 0?await i():void 0,n=e.zone===void 0?`accounts`:`zones`,r=e.zone??t??`<account-id>`;c({command:`cf zero-trust identity-providers update`,method:`PUT`,url:`https://api.cloudflare.com/client/v4/${n}/${r}/access/identity_providers/${e[`identity-provider-id`]==null?`<identity-provider-id>`:encodeURIComponent(String(e[`identity-provider-id`]))}`,pathParams:{"account-or-zone":String(n),"identity-provider-id":String(e[`identity-provider-id`]??``),"account-or-zone-id":String(r)},bodyKind:`json`,body:e.body===void 0?void 0:f(e.body)});return}let n=await r(e),u=e.zone===void 0?`accounts`:`zones`,d=u===`zones`?await a({zone:e.zone},n,{quiet:e.quiet}):e.local?t:await o();if(u===`zones`?e.zoneId=d:e.accountId=d,e.body){let t=f(e.body),r=await l(`Updating`,async()=>n.send(sT,{body:t,account_or_zone:u,account_or_zone_id:d,identity_provider_id:e[`identity-provider-id`]}));s(r,{successLabel:`Updated`});return}if(e.body===void 0)throw Error(`--body is required for this command. Pass --body '<json>' or --body @path/to/file.json.`)})},uT={command:`identity-providers`,describe:`Operations for identity-providers`,builder:e=>e.command(pw).command(gw).command(Mw).command(Fw).command(lT).command(kw).command(zw).command(oT).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var dT={method:`POST`,path:t=>e`/${t.account_or_zone}/${t.account_or_zone_id}/access/organizations`,body:`json`};function fT(e){return e.usage(`$0 zero-trust organization create
915
+ Updates a configured identity provider.`).positional(`identity-provider-id`,{type:`string`,description:`UUID.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const lT={command:`update <identity-provider-id>`,describe:`Update an Access identity provider`,builder:cT,handler:async e=>u({command:`zero-trust identity-providers update`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=e.zone===void 0?await i():void 0,n=e.zone===void 0?`accounts`:`zones`,r=e.zone??t??`<account-id>`;c({command:`cf zero-trust identity-providers update`,method:`PUT`,url:`https://api.cloudflare.com/client/v4/${n}/${r}/access/identity_providers/${e[`identity-provider-id`]==null?`<identity-provider-id>`:encodeURIComponent(String(e[`identity-provider-id`]))}`,pathParams:{"account-or-zone":String(n),"account-or-zone-id":String(r),"identity-provider-id":String(e[`identity-provider-id`]??``)},bodyKind:`json`,body:e.body===void 0?void 0:f(e.body)});return}let n=await r(e),u=e.zone===void 0?`accounts`:`zones`,d=u===`zones`?await a({zone:e.zone},n,{quiet:e.quiet}):e.local?t:await o();if(u===`zones`?e.zoneId=d:e.accountId=d,e.body){let t=f(e.body),r=await l(`Updating`,async()=>n.send(sT,{body:t,account_or_zone:u,account_or_zone_id:d,identity_provider_id:e[`identity-provider-id`]}));s(r,{successLabel:`Updated`});return}if(e.body===void 0)throw Error(`--body is required for this command. Pass --body '<json>' or --body @path/to/file.json.`)})},uT={command:`identity-providers`,describe:`Operations for identity-providers`,builder:e=>e.command(pw).command(gw).command(Mw).command(Fw).command(lT).command(kw).command(zw).command(oT).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var dT={method:`POST`,path:t=>e`/${t.account_or_zone}/${t.account_or_zone_id}/access/organizations`,body:`json`};function fT(e){return e.usage(`$0 zero-trust organization create
916
916
 
917
917
  Sets up a Zero Trust organization for your account or zone.`).option(`allow-authenticate-via-warp`,{type:`boolean`,description:`When set to true, users can authenticate via WARP for any application in your organization. Application settings will take precedence over this value.`,default:!1}).option(`auth-domain`,{type:`string`,description:"The unique subdomain assigned to your Zero Trust organization. If omitted on creation, a unique subdomain is auto-generated in the format `adjective-noun-hex4` (e.g. `frosty-moon-7a3b.cloudflareaccess.com`)."}).option(`auto-redirect-to-identity`,{type:`boolean`,description:"When set to `true`, users skip the identity provider selection step during login.",default:!1}).option(`deny-unmatched-requests`,{type:`boolean`,description:"Determines whether to deny all requests to Cloudflare-protected resources that lack an associated Access application. If enabled, you must explicitly configure an Access application and policy to allow traffic to your Cloudflare-protected resources. For domains you want to be public across all subdomains, add the domain to the `deny_unmatched_requests_exempted_zone_names` array."}).option(`deny-unmatched-requests-exempted-zone-names`,{type:`string`,array:!0,description:"Contains zone names to exempt from the `deny_unmatched_requests` feature. Requests to a subdomain in an exempted zone will block unauthenticated traffic by default if there is a configured Access application and policy that matches the request."}).option(`is-ui-read-only`,{type:`boolean`,description:`Lock all settings as Read-Only in the Dashboard, regardless of user permission. Updates may only be made via the API or Terraform for this account when enabled.`,default:!1}).option(`login-design-background-color`,{type:`string`,description:`The background color on your login page.`}).option(`login-design-footer-text`,{type:`string`,description:`The text at the bottom of your login page.`}).option(`login-design-header-text`,{type:`string`,description:`The text at the top of your login page.`}).option(`login-design-logo-path`,{type:`string`,description:`The URL of the logo on your login page.`}).option(`login-design-text-color`,{type:`string`,description:`The text color on your login page.`}).option(`mfa-config-allowed-authenticators`,{type:`string`,array:!0,description:"Lists the MFA methods that users can authenticate with. The `piv_key` and `ssh_fido2_key` values are supported only for infrastructure applications."}).option(`mfa-config-amr-matching-session-duration`,{type:`string`,description:`Allows a user to skip MFA via Authentication Method Reference (AMR) matching when the AMR claim provided by the IdP the user used to authenticate contains "mfa". Must be in minutes (m) or hours (h). Minimum: 0m. Maximum: 720h (30 days).`}).option(`mfa-config-required-aaguids`,{type:`string`,description:`Specifies a Cloudflare List of required FIDO2 authenticator device AAGUIDs.`}).option(`mfa-config-session-duration`,{type:`string`,description:"Defines the duration of an MFA session. Must be in minutes (m) or hours (h). Minimum: 0m. Maximum: 720h (30 days). Examples:`5m` or `24h`."}).option(`mfa-piv-key-requirements-pin-policy`,{type:`string`,description:"Defines when a PIN is required to use the SSH key. Valid values: `never` (no PIN required), `once` (PIN required once per session), `always` (PIN required for each use).",choices:[`never`,`once`,`always`]}).coerce(`mfa-piv-key-requirements-pin-policy`,e=>h(e,`mfa-piv-key-requirements-pin-policy`,`text`)).option(`mfa-piv-key-requirements-require-fips-device`,{type:`boolean`,description:`Requires the PIV key to be stored on a FIPS 140-2 Level 1 or higher validated device.`}).option(`mfa-piv-key-requirements-ssh-key-size`,{type:`string`,array:!0,description:`Specifies the allowed SSH key sizes in bits. Valid sizes depend on key type. Ed25519 has a fixed key size and does not accept this parameter.`}).option(`mfa-piv-key-requirements-ssh-key-type`,{type:`string`,array:!0,description:"Specifies the allowed SSH key types. Valid values are `ecdsa`, `ed25519`, and `rsa`."}).option(`mfa-piv-key-requirements-touch-policy`,{type:`string`,description:"Defines when physical touch is required to use the SSH key. Valid values: `never` (no touch required), `always` (touch required for each use), `cached` (touch cached for 15 seconds).",choices:[`never`,`always`,`cached`]}).coerce(`mfa-piv-key-requirements-touch-policy`,e=>h(e,`mfa-piv-key-requirements-touch-policy`,`text`)).option(`mfa-required-for-all-apps`,{type:`boolean`,description:`Determines whether global MFA settings apply to applications by default. The organization must have MFA enabled with at least one authentication method and a session duration configured. Note: 'allowed_authenticators' cannot contain only the infrastructure SSH authenticators ('piv_key' and 'ssh_fido2_key') if the organization has any non-infrastructure applications.`,default:!1}).option(`name`,{type:`string`,description:`The name of your Zero Trust organization. When omitted on creation, defaults to the provided auth_domain; when both are omitted, defaults to the auto-generated subdomain slug (e.g. frosty-moon-7a3b).`}).option(`service-token-inactivity-action`,{type:`string`,description:`The action applied to an inactive service token.`,choices:[`disable`,`delete`]}).coerce(`service-token-inactivity-action`,e=>h(e,`service-token-inactivity-action`,`text`)).option(`service-token-inactivity-enabled`,{type:`boolean`,description:`Whether automatic enforcement for inactive service tokens is enabled.`}).option(`service-token-inactivity-inactivity-threshold-days`,{type:`number`,description:`The number of days a service token must be inactive before the configured action is applied.`}).option(`session-duration`,{type:`string`,description:"The amount of time that tokens issued for applications will be valid. Must be in the format `300ms` or `2h45m`. Valid time units are: ns, us (or µs), ms, s, m, h."}).option(`strict-service-token-auth`,{type:`boolean`,description:`Enables new behaviors for requests made with Access service tokens. Unauthorized requests emit audit logs, and return a 401 or 403 status code in the response instead of redirecting to the login page. Successful requests no longer receive a CF_Authorization cookie in the response. Zero Trust organizations created on or after October 5, 2026 will have this setting enabled by default, and cannot disable it.`}).option(`ui-read-only-toggle-reason`,{type:`string`,description:`A description of the reason why the UI read only field is being toggled.`}).option(`user-seat-expiration-inactive-time`,{type:`string`,description:"The amount of time a user seat is inactive before it expires. When the user seat exceeds the set time of inactivity, the user is removed as an active seat and no longer counts against your Teams seat count. Minimum value for this setting is 1 month (730h). Must be in the format `300ms` or `2h45m`. Valid time units are: `ns`, `us` (or `µs`), `ms`, `s`, `m`, `h`."}).option(`warp-auth-non-browser-401`,{type:`boolean`,description:`When enabled, unsuccessful WARP authentication requests with a non-HTML Accept header return a 401 response instead of redirecting to the login page.`,default:!1}).option(`warp-auth-session-duration`,{type:`string`,description:"The amount of time that tokens issued for applications will be valid. Must be in the format `30m` or `2h45m`. Valid time units are: m, h."}).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=>{if([`service-token-inactivity-action`,`service-token-inactivity-enabled`,`service-token-inactivity-inactivity-threshold-days`].some(t=>e[t]!==void 0)){let t=[`service-token-inactivity-action`,`service-token-inactivity-enabled`,`service-token-inactivity-inactivity-threshold-days`].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 --service_token_inactivity-* flag is set`)}return!0})}const pT={command:`create`,describe:`Create your Zero Trust organization`,builder:fT,handler:async e=>u({command:`zero-trust organization create`,classification:{safeFlags:[`allow-authenticate-via-warp`,`auto-redirect-to-identity`,`deny-unmatched-requests`,`is-ui-read-only`,`mfa-piv-key-requirements-pin-policy`,`mfa-piv-key-requirements-require-fips-device`,`mfa-piv-key-requirements-touch-policy`,`mfa-required-for-all-apps`,`service-token-inactivity-action`,`service-token-inactivity-enabled`,`strict-service-token-auth`,`warp-auth-non-browser-401`,`dry-run`]}},e,async()=>{if(e.dryRun){let t=e.zone===void 0?await i():void 0,n=e.zone===void 0?`accounts`:`zones`,r=e.zone??t??`<account-id>`;c({command:`cf zero-trust organization create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/${n}/${r}/access/organizations`,pathParams:{"account-or-zone":String(n),"account-or-zone-id":String(r)},bodyKind:`json`,body:e.body===void 0?m({allow_authenticate_via_warp:e[`allow-authenticate-via-warp`],auth_domain:h(e[`auth-domain`],`auth-domain`,`text`),auto_redirect_to_identity:e[`auto-redirect-to-identity`],deny_unmatched_requests:e[`deny-unmatched-requests`],deny_unmatched_requests_exempted_zone_names:e[`deny-unmatched-requests-exempted-zone-names`],is_ui_read_only:e[`is-ui-read-only`],login_design:{background_color:h(e[`login-design-background-color`],`login-design-background-color`,`text`),footer_text:h(e[`login-design-footer-text`],`login-design-footer-text`,`text`),header_text:h(e[`login-design-header-text`],`login-design-header-text`,`text`),logo_path:h(e[`login-design-logo-path`],`login-design-logo-path`,`text`),text_color:h(e[`login-design-text-color`],`login-design-text-color`,`text`)},mfa_config:{allowed_authenticators:e[`mfa-config-allowed-authenticators`],amr_matching_session_duration:h(e[`mfa-config-amr-matching-session-duration`],`mfa-config-amr-matching-session-duration`,`text`),required_aaguids:h(e[`mfa-config-required-aaguids`],`mfa-config-required-aaguids`,`text`),session_duration:h(e[`mfa-config-session-duration`],`mfa-config-session-duration`,`text`)},mfa_piv_key_requirements:{pin_policy:e[`mfa-piv-key-requirements-pin-policy`],require_fips_device:e[`mfa-piv-key-requirements-require-fips-device`],ssh_key_size:e[`mfa-piv-key-requirements-ssh-key-size`],ssh_key_type:e[`mfa-piv-key-requirements-ssh-key-type`],touch_policy:e[`mfa-piv-key-requirements-touch-policy`]},mfa_required_for_all_apps:e[`mfa-required-for-all-apps`],name:h(e.name,`name`,`text`),service_token_inactivity:{action:e[`service-token-inactivity-action`],enabled:e[`service-token-inactivity-enabled`],inactivity_threshold_days:e[`service-token-inactivity-inactivity-threshold-days`]},session_duration:h(e[`session-duration`],`session-duration`,`text`),strict_service_token_auth:e[`strict-service-token-auth`],ui_read_only_toggle_reason:h(e[`ui-read-only-toggle-reason`],`ui-read-only-toggle-reason`,`text`),user_seat_expiration_inactive_time:h(e[`user-seat-expiration-inactive-time`],`user-seat-expiration-inactive-time`,`text`),warp_auth_non_browser_401:e[`warp-auth-non-browser-401`],warp_auth_session_duration:h(e[`warp-auth-session-duration`],`warp-auth-session-duration`,`text`)}):f(e.body)});return}let n=await r(e),u=e.zone===void 0?`accounts`:`zones`,d=u===`zones`?await a({zone:e.zone},n,{quiet:e.quiet}):e.local?t:await o();if(u===`zones`?e.zoneId=d:e.accountId=d,e.body){let t=f(e.body),r=await l(`Creating`,async()=>n.send(dT,{body:t,account_or_zone:u,account_or_zone_id:d}));s(r,{successLabel:`Created`});return}let p=m({allow_authenticate_via_warp:e[`allow-authenticate-via-warp`],auth_domain:h(e[`auth-domain`],`auth-domain`,`text`),auto_redirect_to_identity:e[`auto-redirect-to-identity`],deny_unmatched_requests:e[`deny-unmatched-requests`],deny_unmatched_requests_exempted_zone_names:e[`deny-unmatched-requests-exempted-zone-names`],is_ui_read_only:e[`is-ui-read-only`],login_design:{background_color:h(e[`login-design-background-color`],`login-design-background-color`,`text`),footer_text:h(e[`login-design-footer-text`],`login-design-footer-text`,`text`),header_text:h(e[`login-design-header-text`],`login-design-header-text`,`text`),logo_path:h(e[`login-design-logo-path`],`login-design-logo-path`,`text`),text_color:h(e[`login-design-text-color`],`login-design-text-color`,`text`)},mfa_config:{allowed_authenticators:e[`mfa-config-allowed-authenticators`],amr_matching_session_duration:h(e[`mfa-config-amr-matching-session-duration`],`mfa-config-amr-matching-session-duration`,`text`),required_aaguids:h(e[`mfa-config-required-aaguids`],`mfa-config-required-aaguids`,`text`),session_duration:h(e[`mfa-config-session-duration`],`mfa-config-session-duration`,`text`)},mfa_piv_key_requirements:{pin_policy:e[`mfa-piv-key-requirements-pin-policy`],require_fips_device:e[`mfa-piv-key-requirements-require-fips-device`],ssh_key_size:e[`mfa-piv-key-requirements-ssh-key-size`],ssh_key_type:e[`mfa-piv-key-requirements-ssh-key-type`],touch_policy:e[`mfa-piv-key-requirements-touch-policy`]},mfa_required_for_all_apps:e[`mfa-required-for-all-apps`],name:h(e.name,`name`,`text`),service_token_inactivity:{action:e[`service-token-inactivity-action`],enabled:e[`service-token-inactivity-enabled`],inactivity_threshold_days:e[`service-token-inactivity-inactivity-threshold-days`]},session_duration:h(e[`session-duration`],`session-duration`,`text`),strict_service_token_auth:e[`strict-service-token-auth`],ui_read_only_toggle_reason:h(e[`ui-read-only-toggle-reason`],`ui-read-only-toggle-reason`,`text`),user_seat_expiration_inactive_time:h(e[`user-seat-expiration-inactive-time`],`user-seat-expiration-inactive-time`,`text`),warp_auth_non_browser_401:e[`warp-auth-non-browser-401`],warp_auth_session_duration:h(e[`warp-auth-session-duration`],`warp-auth-session-duration`,`text`)}),g=await l(`Creating`,async()=>n.send(dT,{body:p,account_or_zone:u,account_or_zone_id:d}));s(g,{successLabel:`Created`})})};var mT={method:`GET`,path:t=>e`/accounts/${t.account_id}/access/organizations/doh`};function hT(e){return e.usage(`$0 zero-trust organization doh get
918
918