cf 1.0.0-beta.22 → 1.0.0-beta.24
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.
- package/dist/_meta/commands.json +75 -15
- package/dist/_meta/hand-written-commands.json +2 -2
- package/dist/_meta/schemas.json +25 -2
- package/dist/{abuse-reports-GF9V-_qH.mjs → abuse-reports-CTOO4FJ4.mjs} +1 -1
- package/dist/{access-dWdATy_5.mjs → access-DFGLlXpy.mjs} +1 -1
- package/dist/{accounts-CNpiDgQ-.mjs → accounts-C-wpV8Az.mjs} +1 -1
- package/dist/{acm-BXOuZNqO.mjs → acm-thIt17mv.mjs} +1 -1
- package/dist/{addressing-BE4KpVHp.mjs → addressing-D7VI7-Oi.mjs} +1 -1
- package/dist/{agent-memory-WOFBlqfc.mjs → agent-memory-duLTH8pl.mjs} +1 -1
- package/dist/{ai-audit-DBZnZtSH.mjs → ai-audit-CjhuS21p.mjs} +1 -1
- package/dist/{ai-2syYes5a.mjs → ai-ctIjDCq0.mjs} +1 -1
- package/dist/{ai-gateway-BL8uRjav.mjs → ai-gateway-B1TIw7wl.mjs} +1 -1
- package/dist/{ai-search-xKyrECHJ.mjs → ai-search-DUQBnOWH.mjs} +1 -1
- package/dist/{ai-security-D-o76TBI.mjs → ai-security-bdABwEIR.mjs} +1 -1
- package/dist/{alerting-D0Hh3IxQ.mjs → alerting-I_KErGZy.mjs} +1 -1
- package/dist/{analytics-BS_HDYYE.mjs → analytics-DGxcDAWu.mjs} +1 -1
- package/dist/{analytics-engine-B8J0AASh.mjs → analytics-engine-DNNokw1O.mjs} +1 -1
- package/dist/{api-security-Dm-_J64v.mjs → api-security-CsPrJ-Xw.mjs} +1 -1
- package/dist/{argo-DLLQUUEp.mjs → argo-BhNmRYk5.mjs} +1 -1
- package/dist/{artifacts-B-ILiKwb.mjs → artifacts-DRo8KadB.mjs} +1 -1
- package/dist/{audit-logs-B6f7Yyqb.mjs → audit-logs-CzxDyTbx.mjs} +1 -1
- package/dist/auth-B2V5gsm4.mjs +2 -0
- package/dist/{auth-CENmPoCB.mjs → auth-CyF_s5ic.mjs} +1 -1
- package/dist/{auth-BlWCu-YH.mjs → auth-pbuzyz4C.mjs} +1 -1
- package/dist/{auth-token-7Gn0n5N_.mjs → auth-token-BcIV7k1B.mjs} +1 -1
- package/dist/{autoconfig-Bjb97Onj.mjs → autoconfig-CXcy-e1R.mjs} +12 -12
- package/dist/{basin-catalog-C61jbxPf.mjs → basin-catalog-DoTn8zvi.mjs} +1 -1
- package/dist/{billing-CpbtioM3.mjs → billing-CMbLzZV0.mjs} +1 -1
- package/dist/{blocks-DDNRRYxu.mjs → blocks-DmOx-xEv.mjs} +1 -1
- package/dist/body-parser-BKcZS9iJ.mjs +2 -0
- package/dist/{bot-management-iYrqBG7K.mjs → bot-management-CJs5WwAW.mjs} +1 -1
- package/dist/{botnet-feed-CiCwJ6Oe.mjs → botnet-feed-DeF7P5lI.mjs} +1 -1
- package/dist/{brand-protection-D25yQ6cQ.mjs → brand-protection-dx_B8OWa.mjs} +1 -1
- package/dist/{browser-run-CC3fAKEB.mjs → browser-run-fRn9ItYu.mjs} +1 -1
- package/dist/{build-DKFvtSB_.mjs → build-CCepbVuJ.mjs} +1 -1
- package/dist/build-CgpCJjPA.mjs +2 -0
- package/dist/{builds-AFdd5qia.mjs → builds-5YhQ_zIm.mjs} +1 -1
- package/dist/{cache-BI3Oyz-Z.mjs → cache-WQyxt7O5.mjs} +1 -1
- package/dist/{cf-fIBhEAxU.mjs → cf-CInFH4Ng.mjs} +1 -1
- package/dist/{chunk-XVBBSNW2-DfMyGS-l.mjs → chunk-3PJ54H4K-C8sxQzhB.mjs} +25 -25
- package/dist/{chunk-DSGVRFIS-DHC6NOIj.mjs → chunk-DSGVRFIS-CP2xC0bc.mjs} +1 -1
- package/dist/{cli-Dji5-s1V.mjs → cli-CgkhNdjb.mjs} +1 -1
- package/dist/{client-side-security-rknn53xw.mjs → client-side-security-COuAb7BM.mjs} +1 -1
- package/dist/{cloud-connector-BTc3qgHz.mjs → cloud-connector-D1gjX0Dx.mjs} +1 -1
- package/dist/{cloudflared-DbzoIouQ.mjs → cloudflared-FEg1GxHT.mjs} +1 -1
- package/dist/{cloudforce-one-BoFYTYsT.mjs → cloudforce-one-BmXgL6kB.mjs} +4 -4
- package/dist/{command-BDFf54JB.mjs → command-8hWrCCy6.mjs} +1 -1
- package/dist/{command-ukMoR-tT.mjs → command-BG9JYUHo.mjs} +1 -1
- package/dist/{command-CiBygnsK.mjs → command-BJFKdqVc.mjs} +1 -1
- package/dist/{command-KuJJ2WEe.mjs → command-BXPssGfS.mjs} +1 -1
- package/dist/{command-CKEmPXtc.mjs → command-B_Fxpr5v.mjs} +1 -1
- package/dist/{command-orlUsdgf.mjs → command-BaIY4UuC.mjs} +1 -1
- package/dist/{command-C6kE7BU0.mjs → command-BfoLlrr1.mjs} +1 -1
- package/dist/{command-B_C1I0aq.mjs → command-CA6yIa17.mjs} +1 -1
- package/dist/{command-CqKRlHGv.mjs → command-D3E7d8E7.mjs} +1 -1
- package/dist/{command-rUCxlpQI.mjs → command-DrdxR1tJ.mjs} +1 -1
- package/dist/{command-BpmbvQqK.mjs → command-Dsi4sM8D.mjs} +1 -1
- package/dist/{command-6vX_Ie2o.mjs → command-WyIFe__L.mjs} +1 -1
- package/dist/{command-WlIhTGN6.mjs → command-hh8rEbH4.mjs} +1 -1
- package/dist/{command-leDr72L4.mjs → command-qhfkede5.mjs} +1 -1
- package/dist/{completions-DGe2alry.mjs → completions-BshG3sAO.mjs} +1 -1
- package/dist/{connector-interrupts-DZyCZta-.mjs → connector-interrupts-pNU4QmsW.mjs} +1 -1
- package/dist/{connector-telemetry-events-BP5GTJuQ.mjs → connector-telemetry-events-BpRPtTdD.mjs} +1 -1
- package/dist/{connector-telemetry-snapshots-Q9y68rU7.mjs → connector-telemetry-snapshots-pNfynA2r.mjs} +1 -1
- package/dist/{connectors-C6wEHhyM.mjs → connectors-CiWTAGHh.mjs} +1 -1
- package/dist/{containers-DcR44W-a.mjs → containers-Dvq0NjQg.mjs} +2 -2
- package/dist/containers-IBtaInTL.mjs +380 -0
- package/dist/{content-scan-cQbQH1Ko.mjs → content-scan-B69hOyhb.mjs} +1 -1
- package/dist/{context-CSjTAJ8s.mjs → context-BryBS1zQ.mjs} +1 -1
- package/dist/{cps-aDZte41c.mjs → cps-DLgWaZMT.mjs} +1 -1
- package/dist/{csam-scanner-cRaGDmR_.mjs → csam-scanner-D1928b81.mjs} +1 -1
- package/dist/{custom-csrs-DoAFlLRn.mjs → custom-csrs-DrxWBjmx.mjs} +1 -1
- package/dist/{custom-hostnames-5vHNAJo7.mjs → custom-hostnames-BP1pxK1F.mjs} +1 -1
- package/dist/{custom-nameservers-B7dTZfCW.mjs → custom-nameservers-5DJLY479.mjs} +1 -1
- package/dist/{custom-pages-DsXlaGqQ.mjs → custom-pages-CNAsOY9a.mjs} +1 -1
- package/dist/{d1-DZ2JyfdZ.mjs → d1-Dge80Qgq.mjs} +2 -2
- package/dist/{delegate-DzeuzE99.mjs → delegate-CBKb0nov.mjs} +1 -1
- package/dist/delegate.mjs +1 -1
- package/dist/{deploy-CPFnQQOk.mjs → deploy-CR5b7uhB.mjs} +1 -1
- package/dist/{deploy-context-C_YUdUN-.mjs → deploy-context-D51tgJGI.mjs} +1 -1
- package/dist/{deploy-input-CKQOolPd.mjs → deploy-input-em95cFc7.mjs} +1 -1
- package/dist/dev-BczBHbpj.mjs +4 -0
- package/dist/{diagnostics-BIuJQRjU.mjs → diagnostics-BKKinCge.mjs} +1 -1
- package/dist/dist-D5YYi2LO.mjs +453 -0
- package/dist/{dls-BurMhzEE.mjs → dls-DU4HnxED.mjs} +1 -1
- package/dist/{dns-Dl1VSmFf.mjs → dns-BzdH3geY.mjs} +1 -1
- package/dist/{dns-firewall-BykvgGT1.mjs → dns-firewall-puq_86Wd.mjs} +1 -1
- package/dist/{docs-FllOac9a.mjs → docs-AWb7X2VX.mjs} +1 -1
- package/dist/{dotenv-CmPRiXmU.mjs → dotenv-qsoPELMm.mjs} +1 -1
- package/dist/{durable-objects-BNCJA3NE.mjs → durable-objects-Dg6XPcsB.mjs} +1 -1
- package/dist/{email-auth-BYvR29qP.mjs → email-auth-DXR0NU9R.mjs} +1 -1
- package/dist/{email-domains-C3jG7o39.mjs → email-domains-B00mAtjT.mjs} +1 -1
- package/dist/{email-routing-BQ7b2KAy.mjs → email-routing-Cm19q9hA.mjs} +1 -1
- package/dist/{email-security-CsoNcUfp.mjs → email-security-CFKcS-DM.mjs} +1 -1
- package/dist/{email-sending-d_b9vyge.mjs → email-sending-B3xSoKcC.mjs} +1 -1
- package/dist/{errors-DFSWbpd6.mjs → errors-CIQDUrWg.mjs} +1 -1
- package/dist/{field-extractors-Be4UTSz-.mjs → field-extractors-Csz8QknP.mjs} +1 -1
- package/dist/{firewall-DYGPUErP.mjs → firewall-C8FW0Nb2.mjs} +1 -1
- package/dist/{flagship-HIikhoYo.mjs → flagship-v-bGZ_U-.mjs} +1 -1
- package/dist/{fraud-DNAOkNU5.mjs → fraud-VvfL2I5a.mjs} +1 -1
- package/dist/{google-tag-gateway-DHvhuTYu.mjs → google-tag-gateway-DF6fS2MQ.mjs} +1 -1
- package/dist/{healthchecks-BKtoWgF2.mjs → healthchecks-D3p3E4WL.mjs} +1 -1
- package/dist/{hyperdrive-DQrmkuSh.mjs → hyperdrive-DopYL1dK.mjs} +1 -1
- package/dist/{iam-BEs1Geob.mjs → iam-cIfyshlf.mjs} +1 -1
- package/dist/{images-D55kUS0m.mjs → images-BR5fP_6r.mjs} +1 -1
- package/dist/index.mjs +1 -1
- package/dist/{init-BTXSeUaj.mjs → init-JXRQoqGP.mjs} +1 -1
- package/dist/{intel-BDbanlya.mjs → intel-BvNrrM7V.mjs} +1 -1
- package/dist/{interactive-D4E8PdaW.mjs → interactive-DOWEcR6_.mjs} +8 -4
- package/dist/{internal-Cj_Wo6sr.mjs → internal-DcnAVlpA.mjs} +1 -1
- package/dist/{ips-CHrG3mwW.mjs → ips-BUEIuhhw.mjs} +1 -1
- package/dist/{k2-CJzI3dVt.mjs → k2-Dm4LvAhL.mjs} +1 -1
- package/dist/{kv-BjfDMxOg.mjs → kv-7oD-JIak.mjs} +1 -1
- package/dist/{lazy-command-DkI_21Dt.mjs → lazy-command-CD1nuS38.mjs} +1 -1
- package/dist/{leaked-credential-checks-BHe-erAg.mjs → leaked-credential-checks-B6s8hUYU.mjs} +1 -1
- package/dist/{live-DSwOLngp.mjs → live-CHP4AXSN.mjs} +1 -1
- package/dist/{load-balancers-CWNEVfum.mjs → load-balancers-B_yvINGW.mjs} +1 -1
- package/dist/{local-CSH3UMpD.mjs → local-CIeKNHSz.mjs} +1 -1
- package/dist/local-CTaqb1nl.mjs +2 -0
- package/dist/local-runtime-DOSBgJlo.mjs +2 -0
- package/dist/{login-CJYJE6Ae.mjs → login-h8vuvNN3.mjs} +1 -1
- package/dist/login-pt6gTX3x.mjs +2 -0
- package/dist/{logpush-BQhzhkBY.mjs → logpush-B70rNMOP.mjs} +1 -1
- package/dist/{logs-DndNcbrR.mjs → logs-DqmqCNqQ.mjs} +1 -1
- package/dist/{magic-cloud-networking-XmIKU6F1.mjs → magic-cloud-networking-CurtlBvl.mjs} +1 -1
- package/dist/{magic-network-monitoring-BgPLcQzT.mjs → magic-network-monitoring-OzpX7MfI.mjs} +1 -1
- package/dist/{magic-transit-C2kLj1Hd.mjs → magic-transit-Ca_CROhr.mjs} +1 -1
- package/dist/{managed-defense-Bq63Exyv.mjs → managed-defense-BRxv0mgy.mjs} +1 -1
- package/dist/{managed-transforms-Bz3Q6vSk.mjs → managed-transforms-C7YLIPdN.mjs} +1 -1
- package/dist/{mcp-IiegTI5c.mjs → mcp-B_StIx94.mjs} +1 -1
- package/dist/{mesh-C7sj3FL4.mjs → mesh-YW-p6Tkx.mjs} +1 -1
- package/dist/{migrate-D7pH9_Y8.mjs → migrate-CrBgU7Xm.mjs} +1 -1
- package/dist/{monetization-DvfqZhGk.mjs → monetization-rMP8HK_4.mjs} +1 -1
- package/dist/{network-CnqNYoOf.mjs → network-D9Do7C-u.mjs} +1 -1
- package/dist/{network-interconnects-BXftLikd.mjs → network-interconnects-DYMhB3TR.mjs} +1 -1
- package/dist/{o11y-1Qku543b.mjs → o11y-HT9_9NUF.mjs} +1 -1
- package/dist/{oauth-B-SYl8nR.mjs → oauth-D6uh5ZdS.mjs} +1 -1
- package/dist/{oauth-C6uYSFM5.mjs → oauth-DetIFT59.mjs} +1 -1
- package/dist/{oauth-clients-DXNO-K_e.mjs → oauth-clients-B_BJco0Z.mjs} +1 -1
- package/dist/{oauth-scopes-WxoyDblU.mjs → oauth-scopes-Cub2pl0Z.mjs} +1 -1
- package/dist/{organization-HBQnzh8z.mjs → organization-DhxMPdqU.mjs} +1 -1
- package/dist/{organizations-DvS-ENN2.mjs → organizations-DIduPB74.mjs} +1 -1
- package/dist/{origin-post-quantum-encryption-BnjX0dCp.mjs → origin-post-quantum-encryption-CPZQGLmW.mjs} +1 -1
- package/dist/package-Bf2u3-yO.mjs +2 -0
- package/dist/{page-rules-CypVq1Wb.mjs → page-rules-0nDfdFWr.mjs} +1 -1
- package/dist/{pages-BxLbPYIf.mjs → pages-Br-w5HLL.mjs} +3 -3
- package/dist/{pay-per-crawl-KidGhWnn.mjs → pay-per-crawl-Di6UpJoo.mjs} +1 -1
- package/dist/{pay-per-use-DcsdwXr7.mjs → pay-per-use-Bm7Nxf6s.mjs} +1 -1
- package/dist/{pipelines-CX7esgh3.mjs → pipelines-BRVI3bV9.mjs} +1 -1
- package/dist/{precursor-BzDcAmUT.mjs → precursor-DyrQWdO5.mjs} +1 -1
- package/dist/{previews-B7MZKZK6.mjs → previews-rpfwcJzi.mjs} +1 -1
- package/dist/{progress-BcjUdm_B.mjs → progress-C_yVLVcl.mjs} +1 -1
- package/dist/{prompt-BFRinxR0.mjs → prompt-kxvGZ6nF.mjs} +1 -1
- package/dist/{queues-mSjNdJNl.mjs → queues-BGV3aC26.mjs} +1 -1
- package/dist/{r2-ClBc0jT0.mjs → r2-CWMqr3JJ.mjs} +1 -1
- package/dist/{radar-C9GwykGn.mjs → radar-D8x_TUAi.mjs} +1 -1
- package/dist/{raw-fetch-BO0VqOVx.mjs → raw-fetch-C_hWBr7n.mjs} +1 -1
- package/dist/{ready-DhdeN4ga.mjs → ready-BXz5amSL.mjs} +1 -1
- package/dist/{realtime-9V5zWcij.mjs → realtime-9jG5GaNK.mjs} +1 -1
- package/dist/{registrar-DsI2A62h.mjs → registrar-C-2I1SJh.mjs} +1 -1
- package/dist/{registrar-sandbox-DcjFW26g.mjs → registrar-sandbox-D9ldxGPo.mjs} +1 -1
- package/dist/{reporting-pAQ3jvEO.mjs → reporting-Bk3dc6Gi.mjs} +1 -1
- package/dist/{request-headers-DFPlTFRf.mjs → request-headers-B5Rjq7Ic.mjs} +1 -1
- package/dist/{request-tracers-CQqdbHj8.mjs → request-tracers-H-iRAUdG.mjs} +1 -1
- package/dist/{resource-sharing-BJraifhD.mjs → resource-sharing-A6ITunsT.mjs} +1 -1
- package/dist/{rules-B_Mopjel.mjs → rules-BntvQdnS.mjs} +1 -1
- package/dist/{rulesets-DRV0HtYz.mjs → rulesets-DKz_iYU_.mjs} +1 -1
- package/dist/{rum-D5dYq2Uy.mjs → rum-D9zpcNqT.mjs} +1 -1
- package/dist/{run--9dxcon4.mjs → run-BlSXngtI.mjs} +1 -1
- package/dist/run-DB1-Sj9a.mjs +2 -0
- package/dist/{schema-flags-blYVIAUK.mjs → schema-flags-CoTAkrz8.mjs} +1 -1
- package/dist/{scim-C91WGj_g.mjs → scim-DVhxKKpH.mjs} +1 -1
- package/dist/{secrets-store-D4Zr-fuz.mjs → secrets-store-3mxJrDWJ.mjs} +1 -1
- package/dist/{security-insights-DJWdVax5.mjs → security-insights-BDLWuG0E.mjs} +1 -1
- package/dist/{security-txt-B0NLFJNk.mjs → security-txt-COzdrpdW.mjs} +1 -1
- package/dist/{session-Bafy81hj.mjs → session-X3xaW70I.mjs} +1 -1
- package/dist/shared-foRpbmSV.mjs +2 -0
- package/dist/{signed-url-DBf_p7Wf.mjs → signed-url-Dgi1p-Qi.mjs} +1 -1
- package/dist/{smart-shield-BufLvdU3.mjs → smart-shield-DSDA5bZt.mjs} +1 -1
- package/dist/{snippets-DA2Gk50m.mjs → snippets-myowgDLd.mjs} +1 -1
- package/dist/spawn-C8D5pzxJ.mjs +5 -0
- package/dist/{spectrum-DlI8qtVo.mjs → spectrum-CB-NzbZ7.mjs} +1 -1
- package/dist/{speed-DNwm5gYl.mjs → speed-UqKG1WDl.mjs} +1 -1
- package/dist/{sql-aBDdRWdd.mjs → sql-BzikdIje.mjs} +1 -1
- package/dist/{src-4-uZcDN_.mjs → src-B9agxHh8.mjs} +24 -10
- package/dist/{ssl-DEDucWlo.mjs → ssl-BmWWsUX6.mjs} +1 -1
- package/dist/{startup-profile-DlWrt4Fm.mjs → startup-profile-B7yHR_YB.mjs} +2 -4
- package/dist/startup-profile-zt6cFnBn.mjs +2 -0
- package/dist/state-C5mQ9At8.mjs +2 -0
- package/dist/{state-DazGSbRx.mjs → state-DNuVv5i-.mjs} +1 -1
- package/dist/{stream-DGv9Bssl.mjs → stream-G87TzC9e.mjs} +1 -1
- package/dist/{tags-CNBA4Pf1.mjs → tags-Ctl4fLux.mjs} +1 -1
- package/dist/{telemetry-klBrZrC7.mjs → telemetry-CA0_i9-l.mjs} +1 -1
- package/dist/telemetry-jl3s2-bN.mjs +2 -0
- package/dist/{tenant-custom-nameservers-CtrqQc_i.mjs → tenant-custom-nameservers-B2ehXfQK.mjs} +1 -1
- package/dist/{tenant-DVtqafWB.mjs → tenant-t5yPFQOx.mjs} +1 -1
- package/dist/{tunnels-Bc_r--ln.mjs → tunnels-DL_VgV0P.mjs} +2 -2
- package/dist/{turnstile-Cr2cTE0C.mjs → turnstile-CEjw5vn6.mjs} +1 -1
- package/dist/ui-Dt1-eURh.mjs +2 -0
- package/dist/{update-check-C5bJ4-Ef.mjs → update-check-2Mn4Z1ln.mjs} +1 -1
- package/dist/{update-check-B5V9BBM7.mjs → update-check-LF-JcHRF.mjs} +1 -1
- package/dist/update-check-worker.mjs +1 -1
- package/dist/{url-normalization-D6r0sLRj.mjs → url-normalization-BL_BkGvP.mjs} +1 -1
- package/dist/{url-scanner-D4u7jbzf.mjs → url-scanner-CVzV9Syq.mjs} +1 -1
- package/dist/{user-DhWPKWo0.mjs → user-YnQSmPNR.mjs} +1 -1
- package/dist/{vectorize-CB9IjpC3.mjs → vectorize-C5ZwKQzI.mjs} +1 -1
- package/dist/version-Bz705iJe.mjs +2 -0
- package/dist/{waiting-rooms-BYlwhzgD.mjs → waiting-rooms-D9V1Fm16.mjs} +1 -1
- package/dist/{web-assets-Nn2HArqh.mjs → web-assets-yzPkWgLy.mjs} +1 -1
- package/dist/{web3-DpJNkFNQ.mjs → web3-DbWNUhP4.mjs} +1 -1
- package/dist/{workers-builds-BL3dK2R3.mjs → workers-builds-DgIDPDhj.mjs} +1 -1
- package/dist/{workers-for-platforms-CAQLG6dE.mjs → workers-for-platforms-CoPp1ez5.mjs} +1 -1
- package/dist/{workers-BkNt1wSN.mjs → workers-r9Aj68v1.mjs} +2 -2
- package/dist/{workers-vpc-WnRec8oo.mjs → workers-vpc-Cvjg15bk.mjs} +1 -1
- package/dist/{workflows-DpXBMizW.mjs → workflows-D4SIo58Q.mjs} +1 -1
- package/dist/wrangler-migration-D2HwxIG5.mjs +946 -0
- package/dist/{zaraz-hWisKRaN.mjs → zaraz-CkqpiZBH.mjs} +1 -1
- package/dist/{zero-trust-DiZhiSa4.mjs → zero-trust-CEY-lohP.mjs} +5 -5
- package/dist/{zones-giCZ0LO8.mjs → zones-BWieAez1.mjs} +50 -48
- package/package.json +14 -14
- package/dist/auth-C0-WtqBw.mjs +0 -2
- package/dist/body-parser-ChnyBsfm.mjs +0 -2
- package/dist/build-CovoviZW.mjs +0 -2
- package/dist/containers-f3DbMCIO.mjs +0 -380
- package/dist/dev-rRWAGDV_.mjs +0 -4
- package/dist/dist-BtzWfAjU.mjs +0 -453
- package/dist/local-CAs8RWYW.mjs +0 -2
- package/dist/local-runtime-KOFLRZeZ.mjs +0 -2
- package/dist/login-D2Bf_HMY.mjs +0 -2
- package/dist/package-DAB8HAGn.mjs +0 -2
- package/dist/registry-Bm-GgDC3.mjs +0 -2
- package/dist/run-BUebYPOn.mjs +0 -2
- package/dist/shared-rCcn7D66.mjs +0 -2
- package/dist/spawn-hrdbxnm1.mjs +0 -5
- package/dist/startup-profile-CZYtQziF.mjs +0 -2
- package/dist/state-B3Uy1jPX.mjs +0 -2
- package/dist/telemetry-THz8wtoW.mjs +0 -2
- package/dist/ui-DvC7Qa0H.mjs +0 -2
- package/dist/version-Dp7G_dM6.mjs +0 -2
- package/dist/wrangler-migration-__jrVjrp.mjs +0 -946
- package/dist/zone-D7b949er.mjs +0 -4
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import"./api-X3wKppsT.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{i as t,n}from"./auth-
|
|
2
|
+
import"./api-X3wKppsT.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{i as t,n}from"./auth-pbuzyz4C.mjs";import{i as r}from"./context-BryBS1zQ.mjs";import{t as i}from"./output-BJEgbI0G.mjs";import{t as a}from"./dry-run-gy0Hl9xo.mjs";import{t as o}from"./progress-C_yVLVcl.mjs";import{t as s}from"./run-BlSXngtI.mjs";import"./telemetry-jl3s2-bN.mjs";import{n as c,r as l,t as u}from"./body-parser-BKcZS9iJ.mjs";import{n as d}from"./input-validation-D7z60HJH.mjs";import{a as f}from"./prompt-kxvGZ6nF.mjs";var p={method:`GET`,path:t=>e`/zones/${t.zone_id}/settings/zaraz/config`};function m(e){return e.usage(`$0 zaraz config get
|
|
3
3
|
|
|
4
4
|
Gets latest Zaraz configuration for a zone. It can be preview or published configuration, whichever was the last updated. Secret variables values will not be included.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const h={command:`get`,describe:`Get Zaraz configuration`,builder:m,handler:async e=>s({command:`zaraz config get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){a({command:`cf zaraz config get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/settings/zaraz/config`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``)},bodyKind:`none`});return}let t=await n(e),s=await r({zone:e.zone},t,{quiet:e.quiet});e.zoneId=s;let c=await o(`Loading`,async()=>t.send(p,{zone_id:s}));i(c,{successLabel:`Loaded`})})};var g={method:`PUT`,path:t=>e`/zones/${t.zone_id}/settings/zaraz/config`,body:`json`};function _(e){return e.usage(`$0 zaraz config update
|
|
5
5
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import"./api-X3wKppsT.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{t}from"./local-
|
|
2
|
+
import"./api-X3wKppsT.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{t}from"./local-CIeKNHSz.mjs";import{i as n,n as r}from"./auth-pbuzyz4C.mjs";import{a as i,i as a,t as o}from"./context-BryBS1zQ.mjs";import{t as s}from"./output-BJEgbI0G.mjs";import{t as c}from"./dry-run-gy0Hl9xo.mjs";import{t as l}from"./progress-C_yVLVcl.mjs";import{t as u}from"./run-BlSXngtI.mjs";import"./telemetry-jl3s2-bN.mjs";import{a as d,n as f,o as p,r as m,s as h,t as g}from"./body-parser-BKcZS9iJ.mjs";import{n as _,t as v}from"./input-validation-D7z60HJH.mjs";import{a as y,i as b,n as x}from"./prompt-kxvGZ6nF.mjs";import{n as ee,t as te}from"./raw-fetch-C_hWBr7n.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`})}else 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
|
|
|
@@ -489,7 +489,7 @@ Fetches device posture rules for a Zero Trust account.`).option(`dry-run`,{type:
|
|
|
489
489
|
|
|
490
490
|
Updates a device posture rule.`).positional(`rule-id`,{type:`string`,description:`API UUID.`,demandOption:!0}).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=>_(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=>_(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=>_(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=>_(e,`input-state`,`text`)).option(`input-version-operator`,{type:`string`,description:`Version Operator.`,choices:[`<`,`<=`,`>`,`>=`,`==`]}).coerce(`input-version-operator`,e=>_(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=>_(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=>_(e,`input-risk-level`,`text`)).option(`input-score-operator`,{type:`string`,description:`Score Operator.`,choices:[`<`,`<=`,`>`,`>=`,`==`]}).coerce(`input-score-operator`,e=>_(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=>_(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=>_(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=>_(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 Zp={command:`update <rule-id>`,describe:`Update posture rule`,builder:Xp,handler:async e=>u({command:`zero-trust devices posture rules update`,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 update`,method:`PUT`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/devices/posture/${e[`rule-id`]==null?`<rule-id>`:encodeURIComponent(String(e[`rule-id`]))}`,pathParams:{"rule-id":String(e[`rule-id`]??``)},bodyKind:`json`,body:e.body===void 0?g({description:_(e.description,`description`,`text`),expiration:_(e.expiration,`expiration`,`text`),input:{exists:e[`input-exists`],operating_system:e[`input-operating-system`],path:_(e[`input-path`],`input-path`,`text`),sha256:_(e[`input-sha256`],`input-sha256`,`text`),thumbprint:_(e[`input-thumbprint`],`input-thumbprint`,`text`),id:_(e[`input-id`],`input-id`,`text`),domain:_(e[`input-domain`],`input-domain`,`text`),operator:e[`input-operator`],os_distro_name:_(e[`input-os-distro-name`],`input-os-distro-name`,`text`),os_distro_revision:_(e[`input-os-distro-revision`],`input-os-distro-revision`,`text`),os_version_extra:_(e[`input-os-version-extra`],`input-os-version-extra`,`text`),version:_(e[`input-version`],`input-version`,`text`),enabled:e[`input-enabled`],checkDisks:e[`input-check-disks`],requireAll:e[`input-require-all`],certificate_id:_(e[`input-certificate-id`],`input-certificate-id`,`text`),cn:_(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:_(e[`input-connection-id`],`input-connection-id`,`text`),last_seen:_(e[`input-last-seen`],`input-last-seen`,`text`),os:_(e[`input-os`],`input-os`,`text`),overall:_(e[`input-overall`],`input-overall`,`text`),sensor_config:_(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:_(e[`input-issue-count`],`input-issue-count`,`text`),eid_last_seen:_(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:d(e.match,`match`),name:_(e.name,`name`,`text`),schedule:_(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(`Updating`,async()=>n.send(Yp,{body:t,account_id:a,rule_id:e[`rule-id`]}));s(r,{successLabel:`Updated`});return}e.name===void 0&&(e.name=await y(`name`,`The name of the device posture rule.`)),e.type===void 0&&(e.type=await b(`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=g({description:_(e.description,`description`,`text`),expiration:_(e.expiration,`expiration`,`text`),input:{exists:e[`input-exists`],operating_system:e[`input-operating-system`],path:_(e[`input-path`],`input-path`,`text`),sha256:_(e[`input-sha256`],`input-sha256`,`text`),thumbprint:_(e[`input-thumbprint`],`input-thumbprint`,`text`),id:_(e[`input-id`],`input-id`,`text`),domain:_(e[`input-domain`],`input-domain`,`text`),operator:e[`input-operator`],os_distro_name:_(e[`input-os-distro-name`],`input-os-distro-name`,`text`),os_distro_revision:_(e[`input-os-distro-revision`],`input-os-distro-revision`,`text`),os_version_extra:_(e[`input-os-version-extra`],`input-os-version-extra`,`text`),version:_(e[`input-version`],`input-version`,`text`),enabled:e[`input-enabled`],checkDisks:e[`input-check-disks`],requireAll:e[`input-require-all`],certificate_id:_(e[`input-certificate-id`],`input-certificate-id`,`text`),cn:_(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:_(e[`input-connection-id`],`input-connection-id`,`text`),last_seen:_(e[`input-last-seen`],`input-last-seen`,`text`),os:_(e[`input-os`],`input-os`,`text`),overall:_(e[`input-overall`],`input-overall`,`text`),sensor_config:_(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:_(e[`input-issue-count`],`input-issue-count`,`text`),eid_last_seen:_(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:d(e.match,`match`),name:_(e.name,`name`,`text`),schedule:_(e.schedule,`schedule`,`text`),type:e.type}),p=await l(`Updating`,async()=>n.send(Yp,{body:u,account_id:a,rule_id:e[`rule-id`]}));s(p,{successLabel:`Updated`})})},Qp={command:`rules`,describe:`Operations for devices.posture.rules`,builder:e=>e.command(zp).command(Hp).command(Gp).command(Jp).command(Zp).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},$p={command:`posture`,describe:`Operations for devices.posture`,builder:e=>e.command(Ip).command(Qp).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var em={method:`POST`,path:t=>e`/accounts/${t.account_id}/devices/policy`,body:`json`};function tm(e){return e.usage(`$0 zero-trust devices profiles custom create
|
|
491
491
|
|
|
492
|
-
Creates a device settings profile to be applied to certain devices matching the criteria.`).option(`allow-mode-switch`,{type:`boolean`,description:`Whether to allow the user to switch WARP between modes.`,default:!1}).option(`allow-updates`,{type:`boolean`,description:`Whether to receive update notifications when a new version of the client is available.`,default:!1}).option(`allowed-to-leave`,{type:`boolean`,description:`Whether to allow devices to leave the organization.`,default:!0}).option(`auto-connect`,{type:`number`,description:`The amount of time in seconds to reconnect after having been disabled.`,default:0}).option(`browser-extension-config-proxy-control`,{type:`string`,description:`Whether the user may disable the browser extension proxy.`,choices:[`unlocked`,`locked`]}).coerce(`browser-extension-config-proxy-control`,e=>_(e,`browser-extension-config-proxy-control`,`text`)).option(`browser-extension-config-proxy-enabled`,{type:`boolean`,description:`Whether the browser extension proxy is active.`}).option(`captive-portal`,{type:`number`,description:`Turn on the captive portal after the specified amount of time.`,default:180}).option(`default`,{type:`boolean`,description:`Whether the policy is the account default. WARP group profiles cannot set this field.`,default:!1}).option(`description`,{type:`string`,description:`A description of the policy.`}).option(`disable-auto-fallback`,{type:`boolean`,description:"If the `dns_server` field of a fallback domain is not present, the client will fall back to a best guess of the default/system DNS resolvers unless this policy option is set to `true`.",default:!1}).option(`dns-search-suffixes`,{type:`string`,description:`List of DNS search suffixes to apply to clients. Suffixes are evaluated in order. Use an empty array to clear. Provide as a JSON array of objects or @path/to/file.json.`}).option(`enable-device-credential-authentication`,{type:`boolean`,description:`Determines whether the WARP client can silently reauthenticate the user with device credentials (Microsoft Entra) instead of prompting for browser-based reauthentication.`,default:!1}).option(`enabled`,{type:`boolean`,description:`Whether the policy will be applied to matching devices.`,default:!0}).option(`exclude`,{type:`string`,description:`List of routes excluded in the WARP client's tunnel. Both 'exclude' and 'include' cannot be set in the same request. Provide as a JSON array of objects or @path/to/file.json.`}).option(`exclude-office-ips`,{type:`boolean`,description:`Whether to add Microsoft IPs to Split Tunnel exclusions.`,default:!1}).option(`global-acceleration-api-endpoints`,{type:`string`,array:!0,description:`IP:port entries for the API endpoints.`}).option(`global-acceleration-autoswitch`,{type:`boolean`,description:`Automatically switch Global Acceleration regions based on device location. Defaults to false when not provided.`}).option(`global-acceleration-enabled`,{type:`boolean`,description:`Global acceleration settings are used only when "enabled".`}).option(`global-acceleration-masque-endpoints`,{type:`string`,array:!0,description:`IP:port entries for the MASQUE tunnel endpoints. Either wireguard_endpoints or masque_endpoints must be provided.`}).option(`global-acceleration-wireguard-endpoints`,{type:`string`,array:!0,description:`IP:port entries for the WireGuard tunnel endpoints. Either wireguard_endpoints or masque_endpoints must be provided.`}).option(`include`,{type:`string`,description:`List of routes included in the WARP client's tunnel. Both 'exclude' and 'include' cannot be set in the same request. Provide as a JSON array of objects or @path/to/file.json.`}).option(`lan-allow-minutes`,{type:`number`,description:`The amount of time in minutes a user is allowed access to their LAN. A value of 0 will allow LAN access until the next WARP reconnection, such as a reboot or a laptop waking from sleep. Note that this field is omitted from the response if null or unset.`}).option(`lan-allow-subnet-size`,{type:`number`,description:`The size of the subnet for the local access network. Note that this field is omitted from the response if null or unset.`}).option(`match`,{type:`string`,description:`The wirefilter expression to match devices. Available values: "identity.email", "identity.groups.id", "identity.groups.name", "identity.groups.email", "identity.service_token_uuid", "identity.saml_attributes", "network", "os.name", "os.version", "device.tags".`}).option(`name`,{type:`string`,description:`The name of the device settings profile.`}).option(`precedence`,{type:`number`,description:`The precedence of the policy. Lower values indicate higher precedence. Policies will be evaluated in ascending order of this field.`}).option(`profile-type`,{type:`string`,description:`The client type to which the device settings profile applies. This field is set when the profile is created and cannot be changed.`,choices:[`warp`,`browser_extension`],default:`warp`}).coerce(`profile-type`,e=>_(e,`profile-type`,`text`)).option(`register-interface-ip-with-dns`,{type:`boolean`,description:`Determines if the operating system will register WARP's local interface IP with your on-premises DNS server.`,default:!0}).option(`sccm-vpn-boundary-support`,{type:`boolean`,description:`Determines whether the WARP client indicates to SCCM that it is inside a VPN boundary. (Windows only).`,default:!1}).option(`service-mode-v2-mode`,{type:`string`,description:`The mode to run the WARP client under.`}).option(`service-mode-v2-port`,{type:`number`,description:`The port number when used with proxy mode.`}).option(`support-url`,{type:`string`,description:`The URL to launch when the Send Feedback button is clicked.`,default:``}).option(`switch-locked`,{type:`boolean`,description:`Whether to allow the user to turn off the WARP switch and disconnect the client.`,default:!1}).option(`tunnel-protocol`,{type:`string`,description:`Determines which tunnel protocol to use.`,default:``}).option(`uninstall-protection`,{type:`boolean`,description:`Determines whether uninstalling the WARP client requires an override code. (Windows only).`,default:!1}).option(`virtual-networks-allowed`,{type:`string`,array:!0,description:`List of virtual network IDs the device is allowed to access. When virtual_networks is set, at least one entry is required.`}).option(`virtual-networks-default`,{type:`string`,description:"The default virtual network ID. Must be included in the `allowed` list."}).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([`browser-extension-config-proxy-control`,`browser-extension-config-proxy-enabled`].some(t=>e[t]!==void 0)){let t=[`browser-extension-config-proxy-control`,`browser-extension-config-proxy-enabled`].filter(t=>e[t]===void 0);if(t.length>0)throw Error(`${t.map(e=>`--`+e).join(`, `)} ${t.length===1?`is`:`are`} required when any --browser_extension_config-* flag is set`)}return!0}).check(e=>{if([`global-acceleration-api-endpoints`,`global-acceleration-autoswitch`,`global-acceleration-enabled`,`global-acceleration-masque-endpoints`,`global-acceleration-wireguard-endpoints`].some(t=>e[t]!==void 0)){let t=[`global-acceleration-api-endpoints`,`global-acceleration-enabled`,`global-acceleration-masque-endpoints`,`global-acceleration-wireguard-endpoints`].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 --global_acceleration-* flag is set`)}return!0}).check(e=>{if([`virtual-networks-allowed`,`virtual-networks-default`].some(t=>e[t]!==void 0)){let t=[`virtual-networks-allowed`,`virtual-networks-default`].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 --virtual_networks-* flag is set`)}return!0})}const nm={command:`create`,describe:`Create a device settings profile`,builder:tm,handler:async e=>u({command:`zero-trust devices profiles custom create`,classification:{safeFlags:[`allow-mode-switch`,`allow-updates`,`allowed-to-leave`,`browser-extension-config-proxy-control`,`browser-extension-config-proxy-enabled`,`default`,`disable-auto-fallback`,`enable-device-credential-authentication`,`enabled`,`exclude-office-ips`,`global-acceleration-autoswitch`,`global-acceleration-enabled`,`profile-type`,`register-interface-ip-with-dns`,`sccm-vpn-boundary-support`,`switch-locked`,`uninstall-protection`,`dry-run`]}},e,async()=>{if(e.dryRun){let t=await i();c({command:`cf zero-trust devices profiles custom create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/devices/policy`,pathParams:{},bodyKind:`json`,body:e.body===void 0?g({allow_mode_switch:e[`allow-mode-switch`],allow_updates:e[`allow-updates`],allowed_to_leave:e[`allowed-to-leave`],auto_connect:e[`auto-connect`],browser_extension_config:{proxy_control:e[`browser-extension-config-proxy-control`],proxy_enabled:e[`browser-extension-config-proxy-enabled`]},captive_portal:e[`captive-portal`],default:e.default,description:_(e.description,`description`,`text`),disable_auto_fallback:e[`disable-auto-fallback`],dns_search_suffixes:d(e[`dns-search-suffixes`],`dns-search-suffixes`),enable_device_credential_authentication:e[`enable-device-credential-authentication`],enabled:e.enabled,exclude:d(e.exclude,`exclude`),exclude_office_ips:e[`exclude-office-ips`],global_acceleration:{api_endpoints:e[`global-acceleration-api-endpoints`],autoswitch:e[`global-acceleration-autoswitch`],enabled:e[`global-acceleration-enabled`],masque_endpoints:e[`global-acceleration-masque-endpoints`],wireguard_endpoints:e[`global-acceleration-wireguard-endpoints`]},include:d(e.include,`include`),lan_allow_minutes:e[`lan-allow-minutes`],lan_allow_subnet_size:e[`lan-allow-subnet-size`],match:_(e.match,`match`,`text`),name:_(e.name,`name`,`text`),precedence:e.precedence,profile_type:e[`profile-type`],register_interface_ip_with_dns:e[`register-interface-ip-with-dns`],sccm_vpn_boundary_support:e[`sccm-vpn-boundary-support`],service_mode_v2:{mode:_(e[`service-mode-v2-mode`],`service-mode-v2-mode`,`text`),port:e[`service-mode-v2-port`]},support_url:_(e[`support-url`],`support-url`,`text`),switch_locked:e[`switch-locked`],tunnel_protocol:_(e[`tunnel-protocol`],`tunnel-protocol`,`text`),uninstall_protection:e[`uninstall-protection`],virtual_networks:{allowed:e[`virtual-networks-allowed`],default:_(e[`virtual-networks-default`],`virtual-networks-default`,`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(em,{body:t,account_id:a}));s(r,{successLabel:`Created`});return}e.name===void 0&&(e.name=await y(`name`,`The name of the device settings profile.`));let u=g({allow_mode_switch:e[`allow-mode-switch`],allow_updates:e[`allow-updates`],allowed_to_leave:e[`allowed-to-leave`],auto_connect:e[`auto-connect`],browser_extension_config:{proxy_control:e[`browser-extension-config-proxy-control`],proxy_enabled:e[`browser-extension-config-proxy-enabled`]},captive_portal:e[`captive-portal`],default:e.default,description:_(e.description,`description`,`text`),disable_auto_fallback:e[`disable-auto-fallback`],dns_search_suffixes:d(e[`dns-search-suffixes`],`dns-search-suffixes`),enable_device_credential_authentication:e[`enable-device-credential-authentication`],enabled:e.enabled,exclude:d(e.exclude,`exclude`),exclude_office_ips:e[`exclude-office-ips`],global_acceleration:{api_endpoints:e[`global-acceleration-api-endpoints`],autoswitch:e[`global-acceleration-autoswitch`],enabled:e[`global-acceleration-enabled`],masque_endpoints:e[`global-acceleration-masque-endpoints`],wireguard_endpoints:e[`global-acceleration-wireguard-endpoints`]},include:d(e.include,`include`),lan_allow_minutes:e[`lan-allow-minutes`],lan_allow_subnet_size:e[`lan-allow-subnet-size`],match:_(e.match,`match`,`text`),name:_(e.name,`name`,`text`),precedence:e.precedence,profile_type:e[`profile-type`],register_interface_ip_with_dns:e[`register-interface-ip-with-dns`],sccm_vpn_boundary_support:e[`sccm-vpn-boundary-support`],service_mode_v2:{mode:_(e[`service-mode-v2-mode`],`service-mode-v2-mode`,`text`),port:e[`service-mode-v2-port`]},support_url:_(e[`support-url`],`support-url`,`text`),switch_locked:e[`switch-locked`],tunnel_protocol:_(e[`tunnel-protocol`],`tunnel-protocol`,`text`),uninstall_protection:e[`uninstall-protection`],virtual_networks:{allowed:e[`virtual-networks-allowed`],default:_(e[`virtual-networks-default`],`virtual-networks-default`,`text`)}}),p=await l(`Creating`,async()=>n.send(em,{body:u,account_id:a}));s(p,{successLabel:`Created`})})};var rm={method:`DELETE`,path:t=>e`/accounts/${t.account_id}/devices/policy/${t.policy_id}`};function im(e){return e.usage(`$0 zero-trust devices profiles custom delete <policy-id>
|
|
492
|
+
Creates a device settings profile to be applied to certain devices matching the criteria.`).option(`allow-mode-switch`,{type:`boolean`,description:`Whether to allow the user to switch WARP between modes.`,default:!1}).option(`allow-updates`,{type:`boolean`,description:`Whether to receive update notifications when a new version of the client is available.`,default:!1}).option(`allowed-to-leave`,{type:`boolean`,description:`Whether to allow devices to leave the organization.`,default:!0}).option(`auto-connect`,{type:`number`,description:`The amount of time in seconds to reconnect after having been disabled.`,default:0}).option(`browser-extension-config-proxy-control`,{type:`string`,description:`Whether the user may disable the browser extension proxy.`,choices:[`unlocked`,`locked`]}).coerce(`browser-extension-config-proxy-control`,e=>_(e,`browser-extension-config-proxy-control`,`text`)).option(`browser-extension-config-proxy-enabled`,{type:`boolean`,description:`Whether the browser extension proxy is active.`}).option(`captive-portal`,{type:`number`,description:`Turn on the captive portal after the specified amount of time.`,default:180}).option(`default`,{type:`boolean`,description:`Whether the policy is the account default. WARP group profiles cannot set this field.`,default:!1}).option(`description`,{type:`string`,description:`A description of the policy.`}).option(`disable-auto-fallback`,{type:`boolean`,description:"If the `dns_server` field of a fallback domain is not present, the client will fall back to a best guess of the default/system DNS resolvers unless this policy option is set to `true`.",default:!1}).option(`dns-search-suffixes`,{type:`string`,description:`List of DNS search suffixes to apply to clients. Suffixes are evaluated in order. Use an empty array to clear. Provide as a JSON array of objects or @path/to/file.json.`}).option(`enable-device-credential-authentication`,{type:`boolean`,description:`Determines whether the WARP client can silently reauthenticate the user with device credentials (Microsoft Entra) instead of prompting for browser-based reauthentication.`,default:!1}).option(`enabled`,{type:`boolean`,description:`Whether the policy will be applied to matching devices.`,default:!0}).option(`exclude`,{type:`string`,description:`List of routes excluded in the WARP client's tunnel. Both 'exclude' and 'include' cannot be set in the same request. Provide as a JSON array of objects or @path/to/file.json.`}).option(`exclude-office-ips`,{type:`boolean`,description:`Whether to add Microsoft IPs to Split Tunnel exclusions.`,default:!1}).option(`global-acceleration-allow-manual-override`,{type:`boolean`,description:`Whether WARP users may manually override the automatic Global Acceleration decision. Defaults to true when not provided.`}).option(`global-acceleration-api-endpoints`,{type:`string`,array:!0,description:`IP:port entries for the API endpoints.`}).option(`global-acceleration-autoswitch`,{type:`boolean`,description:`Automatically switch Global Acceleration regions based on device location. Defaults to false when not provided.`}).option(`global-acceleration-enabled`,{type:`boolean`,description:`Global acceleration settings are used only when "enabled".`}).option(`global-acceleration-masque-endpoints`,{type:`string`,array:!0,description:`IP:port entries for the MASQUE tunnel endpoints. Either wireguard_endpoints or masque_endpoints must be provided.`}).option(`global-acceleration-wireguard-endpoints`,{type:`string`,array:!0,description:`IP:port entries for the WireGuard tunnel endpoints. Either wireguard_endpoints or masque_endpoints must be provided.`}).option(`include`,{type:`string`,description:`List of routes included in the WARP client's tunnel. Both 'exclude' and 'include' cannot be set in the same request. Provide as a JSON array of objects or @path/to/file.json.`}).option(`lan-allow-minutes`,{type:`number`,description:`The amount of time in minutes a user is allowed access to their LAN. A value of 0 will allow LAN access until the next WARP reconnection, such as a reboot or a laptop waking from sleep. Note that this field is omitted from the response if null or unset.`}).option(`lan-allow-subnet-size`,{type:`number`,description:`The size of the subnet for the local access network. Note that this field is omitted from the response if null or unset.`}).option(`match`,{type:`string`,description:`The wirefilter expression to match devices. Available values: "identity.email", "identity.groups.id", "identity.groups.name", "identity.groups.email", "identity.service_token_uuid", "identity.saml_attributes", "network", "os.name", "os.version", "device.tags".`}).option(`name`,{type:`string`,description:`The name of the device settings profile.`}).option(`precedence`,{type:`number`,description:`The precedence of the policy. Lower values indicate higher precedence. Policies will be evaluated in ascending order of this field.`}).option(`profile-type`,{type:`string`,description:`The client type to which the device settings profile applies. This field is set when the profile is created and cannot be changed.`,choices:[`warp`,`browser_extension`],default:`warp`}).coerce(`profile-type`,e=>_(e,`profile-type`,`text`)).option(`register-interface-ip-with-dns`,{type:`boolean`,description:`Determines if the operating system will register WARP's local interface IP with your on-premises DNS server.`,default:!0}).option(`sccm-vpn-boundary-support`,{type:`boolean`,description:`Determines whether the WARP client indicates to SCCM that it is inside a VPN boundary. (Windows only).`,default:!1}).option(`service-mode-v2-mode`,{type:`string`,description:`The mode to run the WARP client under.`}).option(`service-mode-v2-port`,{type:`number`,description:`The port number when used with proxy mode.`}).option(`support-url`,{type:`string`,description:`The URL to launch when the Send Feedback button is clicked.`,default:``}).option(`switch-locked`,{type:`boolean`,description:`Whether to allow the user to turn off the WARP switch and disconnect the client.`,default:!1}).option(`tunnel-protocol`,{type:`string`,description:`Determines which tunnel protocol to use.`,default:``}).option(`uninstall-protection`,{type:`boolean`,description:`Determines whether uninstalling the WARP client requires an override code. (Windows only).`,default:!1}).option(`virtual-networks-allowed`,{type:`string`,array:!0,description:`List of virtual network IDs the device is allowed to access. When virtual_networks is set, at least one entry is required.`}).option(`virtual-networks-default`,{type:`string`,description:"The default virtual network ID. Must be included in the `allowed` list."}).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([`browser-extension-config-proxy-control`,`browser-extension-config-proxy-enabled`].some(t=>e[t]!==void 0)){let t=[`browser-extension-config-proxy-control`,`browser-extension-config-proxy-enabled`].filter(t=>e[t]===void 0);if(t.length>0)throw Error(`${t.map(e=>`--`+e).join(`, `)} ${t.length===1?`is`:`are`} required when any --browser_extension_config-* flag is set`)}return!0}).check(e=>{if([`global-acceleration-allow-manual-override`,`global-acceleration-api-endpoints`,`global-acceleration-autoswitch`,`global-acceleration-enabled`,`global-acceleration-masque-endpoints`,`global-acceleration-wireguard-endpoints`].some(t=>e[t]!==void 0)){let t=[`global-acceleration-api-endpoints`,`global-acceleration-enabled`,`global-acceleration-masque-endpoints`,`global-acceleration-wireguard-endpoints`].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 --global_acceleration-* flag is set`)}return!0}).check(e=>{if([`virtual-networks-allowed`,`virtual-networks-default`].some(t=>e[t]!==void 0)){let t=[`virtual-networks-allowed`,`virtual-networks-default`].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 --virtual_networks-* flag is set`)}return!0})}const nm={command:`create`,describe:`Create a device settings profile`,builder:tm,handler:async e=>u({command:`zero-trust devices profiles custom create`,classification:{safeFlags:[`allow-mode-switch`,`allow-updates`,`allowed-to-leave`,`browser-extension-config-proxy-control`,`browser-extension-config-proxy-enabled`,`default`,`disable-auto-fallback`,`enable-device-credential-authentication`,`enabled`,`exclude-office-ips`,`global-acceleration-allow-manual-override`,`global-acceleration-autoswitch`,`global-acceleration-enabled`,`profile-type`,`register-interface-ip-with-dns`,`sccm-vpn-boundary-support`,`switch-locked`,`uninstall-protection`,`dry-run`]}},e,async()=>{if(e.dryRun){let t=await i();c({command:`cf zero-trust devices profiles custom create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/devices/policy`,pathParams:{},bodyKind:`json`,body:e.body===void 0?g({allow_mode_switch:e[`allow-mode-switch`],allow_updates:e[`allow-updates`],allowed_to_leave:e[`allowed-to-leave`],auto_connect:e[`auto-connect`],browser_extension_config:{proxy_control:e[`browser-extension-config-proxy-control`],proxy_enabled:e[`browser-extension-config-proxy-enabled`]},captive_portal:e[`captive-portal`],default:e.default,description:_(e.description,`description`,`text`),disable_auto_fallback:e[`disable-auto-fallback`],dns_search_suffixes:d(e[`dns-search-suffixes`],`dns-search-suffixes`),enable_device_credential_authentication:e[`enable-device-credential-authentication`],enabled:e.enabled,exclude:d(e.exclude,`exclude`),exclude_office_ips:e[`exclude-office-ips`],global_acceleration:{allow_manual_override:e[`global-acceleration-allow-manual-override`],api_endpoints:e[`global-acceleration-api-endpoints`],autoswitch:e[`global-acceleration-autoswitch`],enabled:e[`global-acceleration-enabled`],masque_endpoints:e[`global-acceleration-masque-endpoints`],wireguard_endpoints:e[`global-acceleration-wireguard-endpoints`]},include:d(e.include,`include`),lan_allow_minutes:e[`lan-allow-minutes`],lan_allow_subnet_size:e[`lan-allow-subnet-size`],match:_(e.match,`match`,`text`),name:_(e.name,`name`,`text`),precedence:e.precedence,profile_type:e[`profile-type`],register_interface_ip_with_dns:e[`register-interface-ip-with-dns`],sccm_vpn_boundary_support:e[`sccm-vpn-boundary-support`],service_mode_v2:{mode:_(e[`service-mode-v2-mode`],`service-mode-v2-mode`,`text`),port:e[`service-mode-v2-port`]},support_url:_(e[`support-url`],`support-url`,`text`),switch_locked:e[`switch-locked`],tunnel_protocol:_(e[`tunnel-protocol`],`tunnel-protocol`,`text`),uninstall_protection:e[`uninstall-protection`],virtual_networks:{allowed:e[`virtual-networks-allowed`],default:_(e[`virtual-networks-default`],`virtual-networks-default`,`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(em,{body:t,account_id:a}));s(r,{successLabel:`Created`});return}e.name===void 0&&(e.name=await y(`name`,`The name of the device settings profile.`));let u=g({allow_mode_switch:e[`allow-mode-switch`],allow_updates:e[`allow-updates`],allowed_to_leave:e[`allowed-to-leave`],auto_connect:e[`auto-connect`],browser_extension_config:{proxy_control:e[`browser-extension-config-proxy-control`],proxy_enabled:e[`browser-extension-config-proxy-enabled`]},captive_portal:e[`captive-portal`],default:e.default,description:_(e.description,`description`,`text`),disable_auto_fallback:e[`disable-auto-fallback`],dns_search_suffixes:d(e[`dns-search-suffixes`],`dns-search-suffixes`),enable_device_credential_authentication:e[`enable-device-credential-authentication`],enabled:e.enabled,exclude:d(e.exclude,`exclude`),exclude_office_ips:e[`exclude-office-ips`],global_acceleration:{allow_manual_override:e[`global-acceleration-allow-manual-override`],api_endpoints:e[`global-acceleration-api-endpoints`],autoswitch:e[`global-acceleration-autoswitch`],enabled:e[`global-acceleration-enabled`],masque_endpoints:e[`global-acceleration-masque-endpoints`],wireguard_endpoints:e[`global-acceleration-wireguard-endpoints`]},include:d(e.include,`include`),lan_allow_minutes:e[`lan-allow-minutes`],lan_allow_subnet_size:e[`lan-allow-subnet-size`],match:_(e.match,`match`,`text`),name:_(e.name,`name`,`text`),precedence:e.precedence,profile_type:e[`profile-type`],register_interface_ip_with_dns:e[`register-interface-ip-with-dns`],sccm_vpn_boundary_support:e[`sccm-vpn-boundary-support`],service_mode_v2:{mode:_(e[`service-mode-v2-mode`],`service-mode-v2-mode`,`text`),port:e[`service-mode-v2-port`]},support_url:_(e[`support-url`],`support-url`,`text`),switch_locked:e[`switch-locked`],tunnel_protocol:_(e[`tunnel-protocol`],`tunnel-protocol`,`text`),uninstall_protection:e[`uninstall-protection`],virtual_networks:{allowed:e[`virtual-networks-allowed`],default:_(e[`virtual-networks-default`],`virtual-networks-default`,`text`)}}),p=await l(`Creating`,async()=>n.send(em,{body:u,account_id:a}));s(p,{successLabel:`Created`})})};var rm={method:`DELETE`,path:t=>e`/accounts/${t.account_id}/devices/policy/${t.policy_id}`};function im(e){return e.usage(`$0 zero-trust devices profiles custom delete <policy-id>
|
|
493
493
|
|
|
494
494
|
Deletes a device settings profile and fetches a list of the remaining profiles for an account.`).positional(`policy-id`,{type:`string`,description:`Policy 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 am={command:`delete <policy-id>`,describe:`Delete a device settings profile`,builder:im,handler:async e=>u({command:`zero-trust devices profiles custom 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 profiles custom delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/devices/policy/${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 x({force:!!e.force}))return;let u=await l(`Deleting`,async()=>n.send(rm,{account_id:a,policy_id:e[`policy-id`]}));s(u,{successLabel:`Deleted`})})};var om={method:`GET`,path:t=>e`/accounts/${t.account_id}/devices/policy/${t.policy_id}`};function sm(e){return e.usage(`$0 zero-trust devices profiles custom get <policy-id>
|
|
495
495
|
|
|
@@ -497,11 +497,11 @@ Fetches a device settings profile by ID.`).positional(`policy-id`,{type:`string`
|
|
|
497
497
|
|
|
498
498
|
Fetches a list of the device settings profiles for an account.`).option(`profile-type`,{type:`string`,description:`Filter profiles by client type. When omitted, only WARP profiles are returned.`,choices:[`warp`,`browser_extension`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const dm={command:`list`,describe:`List device settings profiles`,builder:um,handler:async e=>u({command:`zero-trust devices profiles custom list`,classification:{safeFlags:[`profile-type`,`dry-run`]}},e,async()=>{let n={profile_type:e[`profile-type`]};if(e.dryRun){let e=await i();c({command:`cf zero-trust devices profiles custom list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}/devices/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(lm,{account_id:u,...n}));s(d,{successLabel:`Loaded`})})};var fm={method:`PATCH`,path:t=>e`/accounts/${t.account_id}/devices/policy/${t.policy_id}`,body:`json`};function pm(e){return e.usage(`$0 zero-trust devices profiles custom update <policy-id>
|
|
499
499
|
|
|
500
|
-
Updates a configured device settings profile.`).positional(`policy-id`,{type:`string`,description:`Policy ID`,demandOption:!0}).option(`allow-mode-switch`,{type:`boolean`,description:`Whether to allow the user to switch WARP between modes.`}).option(`allow-updates`,{type:`boolean`,description:`Whether to receive update notifications when a new version of the client is available.`}).option(`allowed-to-leave`,{type:`boolean`,description:`Whether to allow devices to leave the organization.`}).option(`auto-connect`,{type:`number`,description:`The amount of time in seconds to reconnect after having been disabled.`}).option(`browser-extension-config-proxy-control`,{type:`string`,description:`Whether the user may disable the browser extension proxy.`,choices:[`unlocked`,`locked`]}).coerce(`browser-extension-config-proxy-control`,e=>_(e,`browser-extension-config-proxy-control`,`text`)).option(`browser-extension-config-proxy-enabled`,{type:`boolean`,description:`Whether the browser extension proxy is active.`}).option(`captive-portal`,{type:`number`,description:`Turn on the captive portal after the specified amount of time.`}).option(`default`,{type:`boolean`,description:`Whether the policy is the account default. WARP group profiles cannot set this field.`}).option(`description`,{type:`string`,description:`A description of the policy.`}).option(`disable-auto-fallback`,{type:`boolean`,description:"If the `dns_server` field of a fallback domain is not present, the client will fall back to a best guess of the default/system DNS resolvers unless this policy option is set to `true`."}).option(`dns-search-suffixes`,{type:`string`,description:`List of DNS search suffixes to apply to clients. Suffixes are evaluated in order. Use an empty array to clear. Provide as a JSON array of objects or @path/to/file.json.`}).option(`enable-device-credential-authentication`,{type:`boolean`,description:`Determines whether the WARP client can silently reauthenticate the user with device credentials (Microsoft Entra) instead of prompting for browser-based reauthentication.`}).option(`enabled`,{type:`boolean`,description:`Whether the policy will be applied to matching devices.`}).option(`exclude`,{type:`string`,description:`List of routes excluded in the WARP client's tunnel. Both 'exclude' and 'include' cannot be set in the same request. Provide as a JSON array of objects or @path/to/file.json.`}).option(`exclude-office-ips`,{type:`boolean`,description:`Whether to add Microsoft IPs to Split Tunnel exclusions.`}).option(`global-acceleration-api-endpoints`,{type:`string`,array:!0,description:`IP:port entries for the API endpoints.`}).option(`global-acceleration-autoswitch`,{type:`boolean`,description:`Automatically switch Global Acceleration regions based on device location. Defaults to false when not provided.`}).option(`global-acceleration-enabled`,{type:`boolean`,description:`Global acceleration settings are used only when "enabled".`}).option(`global-acceleration-masque-endpoints`,{type:`string`,array:!0,description:`IP:port entries for the MASQUE tunnel endpoints. Either wireguard_endpoints or masque_endpoints must be provided.`}).option(`global-acceleration-wireguard-endpoints`,{type:`string`,array:!0,description:`IP:port entries for the WireGuard tunnel endpoints. Either wireguard_endpoints or masque_endpoints must be provided.`}).option(`include`,{type:`string`,description:`List of routes included in the WARP client's tunnel. Both 'exclude' and 'include' cannot be set in the same request. Provide as a JSON array of objects or @path/to/file.json.`}).option(`lan-allow-minutes`,{type:`number`,description:`The amount of time in minutes a user is allowed access to their LAN. A value of 0 will allow LAN access until the next WARP reconnection, such as a reboot or a laptop waking from sleep. Note that this field is omitted from the response if null or unset.`}).option(`lan-allow-subnet-size`,{type:`number`,description:`The size of the subnet for the local access network. Note that this field is omitted from the response if null or unset.`}).option(`match`,{type:`string`,description:`The wirefilter expression to match devices. Available values: "identity.email", "identity.groups.id", "identity.groups.name", "identity.groups.email", "identity.service_token_uuid", "identity.saml_attributes", "network", "os.name", "os.version", "device.tags".`}).option(`name`,{type:`string`,description:`The name of the device settings profile.`}).option(`precedence`,{type:`number`,description:`The precedence of the policy. Lower values indicate higher precedence. Policies will be evaluated in ascending order of this field.`}).option(`register-interface-ip-with-dns`,{type:`boolean`,description:`Determines if the operating system will register WARP's local interface IP with your on-premises DNS server.`}).option(`sccm-vpn-boundary-support`,{type:`boolean`,description:`Determines whether the WARP client indicates to SCCM that it is inside a VPN boundary. (Windows only).`}).option(`service-mode-v2-mode`,{type:`string`,description:`The mode to run the WARP client under.`}).option(`service-mode-v2-port`,{type:`number`,description:`The port number when used with proxy mode.`}).option(`support-url`,{type:`string`,description:`The URL to launch when the Send Feedback button is clicked.`}).option(`switch-locked`,{type:`boolean`,description:`Whether to allow the user to turn off the WARP switch and disconnect the client.`}).option(`tunnel-protocol`,{type:`string`,description:`Determines which tunnel protocol to use.`}).option(`uninstall-protection`,{type:`boolean`,description:`Determines whether uninstalling the WARP client requires an override code. (Windows only).`}).option(`virtual-networks-allowed`,{type:`string`,array:!0,description:`List of virtual network IDs the device is allowed to access. When virtual_networks is set, at least one entry is required.`}).option(`virtual-networks-default`,{type:`string`,description:"The default virtual network ID. Must be included in the `allowed` list."}).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([`browser-extension-config-proxy-control`,`browser-extension-config-proxy-enabled`].some(t=>e[t]!==void 0)){let t=[`browser-extension-config-proxy-control`,`browser-extension-config-proxy-enabled`].filter(t=>e[t]===void 0);if(t.length>0)throw Error(`${t.map(e=>`--`+e).join(`, `)} ${t.length===1?`is`:`are`} required when any --browser_extension_config-* flag is set`)}return!0}).check(e=>{if([`global-acceleration-api-endpoints`,`global-acceleration-autoswitch`,`global-acceleration-enabled`,`global-acceleration-masque-endpoints`,`global-acceleration-wireguard-endpoints`].some(t=>e[t]!==void 0)){let t=[`global-acceleration-api-endpoints`,`global-acceleration-enabled`,`global-acceleration-masque-endpoints`,`global-acceleration-wireguard-endpoints`].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 --global_acceleration-* flag is set`)}return!0}).check(e=>{if([`virtual-networks-allowed`,`virtual-networks-default`].some(t=>e[t]!==void 0)){let t=[`virtual-networks-allowed`,`virtual-networks-default`].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 --virtual_networks-* flag is set`)}return!0})}const mm={command:`update <policy-id>`,describe:`Update a device settings profile`,builder:pm,handler:async e=>u({command:`zero-trust devices profiles custom update`,classification:{safeFlags:[`allow-mode-switch`,`allow-updates`,`allowed-to-leave`,`browser-extension-config-proxy-control`,`browser-extension-config-proxy-enabled`,`default`,`disable-auto-fallback`,`enable-device-credential-authentication`,`enabled`,`exclude-office-ips`,`global-acceleration-autoswitch`,`global-acceleration-enabled`,`register-interface-ip-with-dns`,`sccm-vpn-boundary-support`,`switch-locked`,`uninstall-protection`,`dry-run`]}},e,async()=>{if(e.dryRun){let t=await i();c({command:`cf zero-trust devices profiles custom update`,method:`PATCH`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/devices/policy/${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?g({allow_mode_switch:e[`allow-mode-switch`],allow_updates:e[`allow-updates`],allowed_to_leave:e[`allowed-to-leave`],auto_connect:e[`auto-connect`],browser_extension_config:{proxy_control:e[`browser-extension-config-proxy-control`],proxy_enabled:e[`browser-extension-config-proxy-enabled`]},captive_portal:e[`captive-portal`],default:e.default,description:_(e.description,`description`,`text`),disable_auto_fallback:e[`disable-auto-fallback`],dns_search_suffixes:d(e[`dns-search-suffixes`],`dns-search-suffixes`),enable_device_credential_authentication:e[`enable-device-credential-authentication`],enabled:e.enabled,exclude:d(e.exclude,`exclude`),exclude_office_ips:e[`exclude-office-ips`],global_acceleration:{api_endpoints:e[`global-acceleration-api-endpoints`],autoswitch:e[`global-acceleration-autoswitch`],enabled:e[`global-acceleration-enabled`],masque_endpoints:e[`global-acceleration-masque-endpoints`],wireguard_endpoints:e[`global-acceleration-wireguard-endpoints`]},include:d(e.include,`include`),lan_allow_minutes:e[`lan-allow-minutes`],lan_allow_subnet_size:e[`lan-allow-subnet-size`],match:_(e.match,`match`,`text`),name:_(e.name,`name`,`text`),precedence:e.precedence,register_interface_ip_with_dns:e[`register-interface-ip-with-dns`],sccm_vpn_boundary_support:e[`sccm-vpn-boundary-support`],service_mode_v2:{mode:_(e[`service-mode-v2-mode`],`service-mode-v2-mode`,`text`),port:e[`service-mode-v2-port`]},support_url:_(e[`support-url`],`support-url`,`text`),switch_locked:e[`switch-locked`],tunnel_protocol:_(e[`tunnel-protocol`],`tunnel-protocol`,`text`),uninstall_protection:e[`uninstall-protection`],virtual_networks:{allowed:e[`virtual-networks-allowed`],default:_(e[`virtual-networks-default`],`virtual-networks-default`,`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(fm,{body:t,account_id:a,policy_id:e[`policy-id`]}));s(r,{successLabel:`Updated`});return}let u=g({allow_mode_switch:e[`allow-mode-switch`],allow_updates:e[`allow-updates`],allowed_to_leave:e[`allowed-to-leave`],auto_connect:e[`auto-connect`],browser_extension_config:{proxy_control:e[`browser-extension-config-proxy-control`],proxy_enabled:e[`browser-extension-config-proxy-enabled`]},captive_portal:e[`captive-portal`],default:e.default,description:_(e.description,`description`,`text`),disable_auto_fallback:e[`disable-auto-fallback`],dns_search_suffixes:d(e[`dns-search-suffixes`],`dns-search-suffixes`),enable_device_credential_authentication:e[`enable-device-credential-authentication`],enabled:e.enabled,exclude:d(e.exclude,`exclude`),exclude_office_ips:e[`exclude-office-ips`],global_acceleration:{api_endpoints:e[`global-acceleration-api-endpoints`],autoswitch:e[`global-acceleration-autoswitch`],enabled:e[`global-acceleration-enabled`],masque_endpoints:e[`global-acceleration-masque-endpoints`],wireguard_endpoints:e[`global-acceleration-wireguard-endpoints`]},include:d(e.include,`include`),lan_allow_minutes:e[`lan-allow-minutes`],lan_allow_subnet_size:e[`lan-allow-subnet-size`],match:_(e.match,`match`,`text`),name:_(e.name,`name`,`text`),precedence:e.precedence,register_interface_ip_with_dns:e[`register-interface-ip-with-dns`],sccm_vpn_boundary_support:e[`sccm-vpn-boundary-support`],service_mode_v2:{mode:_(e[`service-mode-v2-mode`],`service-mode-v2-mode`,`text`),port:e[`service-mode-v2-port`]},support_url:_(e[`support-url`],`support-url`,`text`),switch_locked:e[`switch-locked`],tunnel_protocol:_(e[`tunnel-protocol`],`tunnel-protocol`,`text`),uninstall_protection:e[`uninstall-protection`],virtual_networks:{allowed:e[`virtual-networks-allowed`],default:_(e[`virtual-networks-default`],`virtual-networks-default`,`text`)}}),p=await l(`Updating`,async()=>n.send(fm,{body:u,account_id:a,policy_id:e[`policy-id`]}));s(p,{successLabel:`Updated`})})},hm={command:`custom`,describe:`Operations for devices.profiles.custom`,builder:e=>e.command(nm).command(am).command(cm).command(dm).command(mm).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var gm={method:`GET`,path:t=>e`/accounts/${t.account_id}/devices/policy`};function _m(e){return e.usage(`$0 zero-trust devices profiles default get
|
|
500
|
+
Updates a configured device settings profile.`).positional(`policy-id`,{type:`string`,description:`Policy ID`,demandOption:!0}).option(`allow-mode-switch`,{type:`boolean`,description:`Whether to allow the user to switch WARP between modes.`}).option(`allow-updates`,{type:`boolean`,description:`Whether to receive update notifications when a new version of the client is available.`}).option(`allowed-to-leave`,{type:`boolean`,description:`Whether to allow devices to leave the organization.`}).option(`auto-connect`,{type:`number`,description:`The amount of time in seconds to reconnect after having been disabled.`}).option(`browser-extension-config-proxy-control`,{type:`string`,description:`Whether the user may disable the browser extension proxy.`,choices:[`unlocked`,`locked`]}).coerce(`browser-extension-config-proxy-control`,e=>_(e,`browser-extension-config-proxy-control`,`text`)).option(`browser-extension-config-proxy-enabled`,{type:`boolean`,description:`Whether the browser extension proxy is active.`}).option(`captive-portal`,{type:`number`,description:`Turn on the captive portal after the specified amount of time.`}).option(`default`,{type:`boolean`,description:`Whether the policy is the account default. WARP group profiles cannot set this field.`}).option(`description`,{type:`string`,description:`A description of the policy.`}).option(`disable-auto-fallback`,{type:`boolean`,description:"If the `dns_server` field of a fallback domain is not present, the client will fall back to a best guess of the default/system DNS resolvers unless this policy option is set to `true`."}).option(`dns-search-suffixes`,{type:`string`,description:`List of DNS search suffixes to apply to clients. Suffixes are evaluated in order. Use an empty array to clear. Provide as a JSON array of objects or @path/to/file.json.`}).option(`enable-device-credential-authentication`,{type:`boolean`,description:`Determines whether the WARP client can silently reauthenticate the user with device credentials (Microsoft Entra) instead of prompting for browser-based reauthentication.`}).option(`enabled`,{type:`boolean`,description:`Whether the policy will be applied to matching devices.`}).option(`exclude`,{type:`string`,description:`List of routes excluded in the WARP client's tunnel. Both 'exclude' and 'include' cannot be set in the same request. Provide as a JSON array of objects or @path/to/file.json.`}).option(`exclude-office-ips`,{type:`boolean`,description:`Whether to add Microsoft IPs to Split Tunnel exclusions.`}).option(`global-acceleration-allow-manual-override`,{type:`boolean`,description:`Whether WARP users may manually override the automatic Global Acceleration decision. Defaults to true when not provided.`}).option(`global-acceleration-api-endpoints`,{type:`string`,array:!0,description:`IP:port entries for the API endpoints.`}).option(`global-acceleration-autoswitch`,{type:`boolean`,description:`Automatically switch Global Acceleration regions based on device location. Defaults to false when not provided.`}).option(`global-acceleration-enabled`,{type:`boolean`,description:`Global acceleration settings are used only when "enabled".`}).option(`global-acceleration-masque-endpoints`,{type:`string`,array:!0,description:`IP:port entries for the MASQUE tunnel endpoints. Either wireguard_endpoints or masque_endpoints must be provided.`}).option(`global-acceleration-wireguard-endpoints`,{type:`string`,array:!0,description:`IP:port entries for the WireGuard tunnel endpoints. Either wireguard_endpoints or masque_endpoints must be provided.`}).option(`include`,{type:`string`,description:`List of routes included in the WARP client's tunnel. Both 'exclude' and 'include' cannot be set in the same request. Provide as a JSON array of objects or @path/to/file.json.`}).option(`lan-allow-minutes`,{type:`number`,description:`The amount of time in minutes a user is allowed access to their LAN. A value of 0 will allow LAN access until the next WARP reconnection, such as a reboot or a laptop waking from sleep. Note that this field is omitted from the response if null or unset.`}).option(`lan-allow-subnet-size`,{type:`number`,description:`The size of the subnet for the local access network. Note that this field is omitted from the response if null or unset.`}).option(`match`,{type:`string`,description:`The wirefilter expression to match devices. Available values: "identity.email", "identity.groups.id", "identity.groups.name", "identity.groups.email", "identity.service_token_uuid", "identity.saml_attributes", "network", "os.name", "os.version", "device.tags".`}).option(`name`,{type:`string`,description:`The name of the device settings profile.`}).option(`precedence`,{type:`number`,description:`The precedence of the policy. Lower values indicate higher precedence. Policies will be evaluated in ascending order of this field.`}).option(`register-interface-ip-with-dns`,{type:`boolean`,description:`Determines if the operating system will register WARP's local interface IP with your on-premises DNS server.`}).option(`sccm-vpn-boundary-support`,{type:`boolean`,description:`Determines whether the WARP client indicates to SCCM that it is inside a VPN boundary. (Windows only).`}).option(`service-mode-v2-mode`,{type:`string`,description:`The mode to run the WARP client under.`}).option(`service-mode-v2-port`,{type:`number`,description:`The port number when used with proxy mode.`}).option(`support-url`,{type:`string`,description:`The URL to launch when the Send Feedback button is clicked.`}).option(`switch-locked`,{type:`boolean`,description:`Whether to allow the user to turn off the WARP switch and disconnect the client.`}).option(`tunnel-protocol`,{type:`string`,description:`Determines which tunnel protocol to use.`}).option(`uninstall-protection`,{type:`boolean`,description:`Determines whether uninstalling the WARP client requires an override code. (Windows only).`}).option(`virtual-networks-allowed`,{type:`string`,array:!0,description:`List of virtual network IDs the device is allowed to access. When virtual_networks is set, at least one entry is required.`}).option(`virtual-networks-default`,{type:`string`,description:"The default virtual network ID. Must be included in the `allowed` list."}).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([`browser-extension-config-proxy-control`,`browser-extension-config-proxy-enabled`].some(t=>e[t]!==void 0)){let t=[`browser-extension-config-proxy-control`,`browser-extension-config-proxy-enabled`].filter(t=>e[t]===void 0);if(t.length>0)throw Error(`${t.map(e=>`--`+e).join(`, `)} ${t.length===1?`is`:`are`} required when any --browser_extension_config-* flag is set`)}return!0}).check(e=>{if([`global-acceleration-allow-manual-override`,`global-acceleration-api-endpoints`,`global-acceleration-autoswitch`,`global-acceleration-enabled`,`global-acceleration-masque-endpoints`,`global-acceleration-wireguard-endpoints`].some(t=>e[t]!==void 0)){let t=[`global-acceleration-api-endpoints`,`global-acceleration-enabled`,`global-acceleration-masque-endpoints`,`global-acceleration-wireguard-endpoints`].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 --global_acceleration-* flag is set`)}return!0}).check(e=>{if([`virtual-networks-allowed`,`virtual-networks-default`].some(t=>e[t]!==void 0)){let t=[`virtual-networks-allowed`,`virtual-networks-default`].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 --virtual_networks-* flag is set`)}return!0})}const mm={command:`update <policy-id>`,describe:`Update a device settings profile`,builder:pm,handler:async e=>u({command:`zero-trust devices profiles custom update`,classification:{safeFlags:[`allow-mode-switch`,`allow-updates`,`allowed-to-leave`,`browser-extension-config-proxy-control`,`browser-extension-config-proxy-enabled`,`default`,`disable-auto-fallback`,`enable-device-credential-authentication`,`enabled`,`exclude-office-ips`,`global-acceleration-allow-manual-override`,`global-acceleration-autoswitch`,`global-acceleration-enabled`,`register-interface-ip-with-dns`,`sccm-vpn-boundary-support`,`switch-locked`,`uninstall-protection`,`dry-run`]}},e,async()=>{if(e.dryRun){let t=await i();c({command:`cf zero-trust devices profiles custom update`,method:`PATCH`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/devices/policy/${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?g({allow_mode_switch:e[`allow-mode-switch`],allow_updates:e[`allow-updates`],allowed_to_leave:e[`allowed-to-leave`],auto_connect:e[`auto-connect`],browser_extension_config:{proxy_control:e[`browser-extension-config-proxy-control`],proxy_enabled:e[`browser-extension-config-proxy-enabled`]},captive_portal:e[`captive-portal`],default:e.default,description:_(e.description,`description`,`text`),disable_auto_fallback:e[`disable-auto-fallback`],dns_search_suffixes:d(e[`dns-search-suffixes`],`dns-search-suffixes`),enable_device_credential_authentication:e[`enable-device-credential-authentication`],enabled:e.enabled,exclude:d(e.exclude,`exclude`),exclude_office_ips:e[`exclude-office-ips`],global_acceleration:{allow_manual_override:e[`global-acceleration-allow-manual-override`],api_endpoints:e[`global-acceleration-api-endpoints`],autoswitch:e[`global-acceleration-autoswitch`],enabled:e[`global-acceleration-enabled`],masque_endpoints:e[`global-acceleration-masque-endpoints`],wireguard_endpoints:e[`global-acceleration-wireguard-endpoints`]},include:d(e.include,`include`),lan_allow_minutes:e[`lan-allow-minutes`],lan_allow_subnet_size:e[`lan-allow-subnet-size`],match:_(e.match,`match`,`text`),name:_(e.name,`name`,`text`),precedence:e.precedence,register_interface_ip_with_dns:e[`register-interface-ip-with-dns`],sccm_vpn_boundary_support:e[`sccm-vpn-boundary-support`],service_mode_v2:{mode:_(e[`service-mode-v2-mode`],`service-mode-v2-mode`,`text`),port:e[`service-mode-v2-port`]},support_url:_(e[`support-url`],`support-url`,`text`),switch_locked:e[`switch-locked`],tunnel_protocol:_(e[`tunnel-protocol`],`tunnel-protocol`,`text`),uninstall_protection:e[`uninstall-protection`],virtual_networks:{allowed:e[`virtual-networks-allowed`],default:_(e[`virtual-networks-default`],`virtual-networks-default`,`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(fm,{body:t,account_id:a,policy_id:e[`policy-id`]}));s(r,{successLabel:`Updated`});return}let u=g({allow_mode_switch:e[`allow-mode-switch`],allow_updates:e[`allow-updates`],allowed_to_leave:e[`allowed-to-leave`],auto_connect:e[`auto-connect`],browser_extension_config:{proxy_control:e[`browser-extension-config-proxy-control`],proxy_enabled:e[`browser-extension-config-proxy-enabled`]},captive_portal:e[`captive-portal`],default:e.default,description:_(e.description,`description`,`text`),disable_auto_fallback:e[`disable-auto-fallback`],dns_search_suffixes:d(e[`dns-search-suffixes`],`dns-search-suffixes`),enable_device_credential_authentication:e[`enable-device-credential-authentication`],enabled:e.enabled,exclude:d(e.exclude,`exclude`),exclude_office_ips:e[`exclude-office-ips`],global_acceleration:{allow_manual_override:e[`global-acceleration-allow-manual-override`],api_endpoints:e[`global-acceleration-api-endpoints`],autoswitch:e[`global-acceleration-autoswitch`],enabled:e[`global-acceleration-enabled`],masque_endpoints:e[`global-acceleration-masque-endpoints`],wireguard_endpoints:e[`global-acceleration-wireguard-endpoints`]},include:d(e.include,`include`),lan_allow_minutes:e[`lan-allow-minutes`],lan_allow_subnet_size:e[`lan-allow-subnet-size`],match:_(e.match,`match`,`text`),name:_(e.name,`name`,`text`),precedence:e.precedence,register_interface_ip_with_dns:e[`register-interface-ip-with-dns`],sccm_vpn_boundary_support:e[`sccm-vpn-boundary-support`],service_mode_v2:{mode:_(e[`service-mode-v2-mode`],`service-mode-v2-mode`,`text`),port:e[`service-mode-v2-port`]},support_url:_(e[`support-url`],`support-url`,`text`),switch_locked:e[`switch-locked`],tunnel_protocol:_(e[`tunnel-protocol`],`tunnel-protocol`,`text`),uninstall_protection:e[`uninstall-protection`],virtual_networks:{allowed:e[`virtual-networks-allowed`],default:_(e[`virtual-networks-default`],`virtual-networks-default`,`text`)}}),p=await l(`Updating`,async()=>n.send(fm,{body:u,account_id:a,policy_id:e[`policy-id`]}));s(p,{successLabel:`Updated`})})},hm={command:`custom`,describe:`Operations for devices.profiles.custom`,builder:e=>e.command(nm).command(am).command(cm).command(dm).command(mm).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var gm={method:`GET`,path:t=>e`/accounts/${t.account_id}/devices/policy`};function _m(e){return e.usage(`$0 zero-trust devices profiles default get
|
|
501
501
|
|
|
502
502
|
Fetches the default device settings profile for an account.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const vm={command:`get`,describe:`Get the default device settings profile`,builder:_m,handler:async e=>u({command:`zero-trust devices profiles default get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let e=await i();c({command:`cf zero-trust devices profiles default get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}/devices/policy`,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(gm,{account_id:a}));s(u,{successLabel:`Loaded`})})};var ym={method:`PATCH`,path:t=>e`/accounts/${t.account_id}/devices/policy`,body:`json`};function bm(e){return e.usage(`$0 zero-trust devices profiles default update
|
|
503
503
|
|
|
504
|
-
Updates the default device settings profile for an account.`).option(`allow-mode-switch`,{type:`boolean`,description:`Whether to allow the user to switch WARP between modes.`}).option(`allow-updates`,{type:`boolean`,description:`Whether to receive update notifications when a new version of the client is available.`}).option(`allowed-to-leave`,{type:`boolean`,description:`Whether to allow devices to leave the organization.`}).option(`auto-connect`,{type:`number`,description:`The amount of time in seconds to reconnect after having been disabled.`}).option(`captive-portal`,{type:`number`,description:`Turn on the captive portal after the specified amount of time.`}).option(`disable-auto-fallback`,{type:`boolean`,description:"If the `dns_server` field of a fallback domain is not present, the client will fall back to a best guess of the default/system DNS resolvers unless this policy option is set to `true`."}).option(`dns-search-suffixes`,{type:`string`,description:`List of DNS search suffixes to apply to clients. Suffixes are evaluated in order. Use an empty array to clear. Provide as a JSON array of objects or @path/to/file.json.`}).option(`enable-device-credential-authentication`,{type:`boolean`,description:`Determines whether the WARP client can silently reauthenticate the user with device credentials (Microsoft Entra) instead of prompting for browser-based reauthentication.`}).option(`exclude`,{type:`string`,description:`List of routes excluded in the WARP client's tunnel. Both 'exclude' and 'include' cannot be set in the same request. Provide as a JSON array of objects or @path/to/file.json.`}).option(`exclude-office-ips`,{type:`boolean`,description:`Whether to add Microsoft IPs to Split Tunnel exclusions.`}).option(`global-acceleration-api-endpoints`,{type:`string`,array:!0,description:`IP:port entries for the API endpoints.`}).option(`global-acceleration-autoswitch`,{type:`boolean`,description:`Automatically switch Global Acceleration regions based on device location. Defaults to false when not provided.`}).option(`global-acceleration-enabled`,{type:`boolean`,description:`Global acceleration settings are used only when "enabled".`}).option(`global-acceleration-masque-endpoints`,{type:`string`,array:!0,description:`IP:port entries for the MASQUE tunnel endpoints. Either wireguard_endpoints or masque_endpoints must be provided.`}).option(`global-acceleration-wireguard-endpoints`,{type:`string`,array:!0,description:`IP:port entries for the WireGuard tunnel endpoints. Either wireguard_endpoints or masque_endpoints must be provided.`}).option(`include`,{type:`string`,description:`List of routes included in the WARP client's tunnel. Both 'exclude' and 'include' cannot be set in the same request. Provide as a JSON array of objects or @path/to/file.json.`}).option(`lan-allow-minutes`,{type:`number`,description:`The amount of time in minutes a user is allowed access to their LAN. A value of 0 will allow LAN access until the next WARP reconnection, such as a reboot or a laptop waking from sleep. Note that this field is omitted from the response if null or unset.`}).option(`lan-allow-subnet-size`,{type:`number`,description:`The size of the subnet for the local access network. Note that this field is omitted from the response if null or unset.`}).option(`register-interface-ip-with-dns`,{type:`boolean`,description:`Determines if the operating system will register WARP's local interface IP with your on-premises DNS server.`}).option(`sccm-vpn-boundary-support`,{type:`boolean`,description:`Determines whether the WARP client indicates to SCCM that it is inside a VPN boundary. (Windows only).`}).option(`service-mode-v2-mode`,{type:`string`,description:`The mode to run the WARP client under.`}).option(`service-mode-v2-port`,{type:`number`,description:`The port number when used with proxy mode.`}).option(`support-url`,{type:`string`,description:`The URL to launch when the Send Feedback button is clicked.`}).option(`switch-locked`,{type:`boolean`,description:`Whether to allow the user to turn off the WARP switch and disconnect the client.`}).option(`tunnel-protocol`,{type:`string`,description:`Determines which tunnel protocol to use.`}).option(`uninstall-protection`,{type:`boolean`,description:`Determines whether uninstalling the WARP client requires an override code. (Windows only).`}).option(`virtual-networks-allowed`,{type:`string`,array:!0,description:`List of virtual network IDs the device is allowed to access. When virtual_networks is set, at least one entry is required.`}).option(`virtual-networks-default`,{type:`string`,description:"The default virtual network ID. Must be included in the `allowed` list."}).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([`global-acceleration-api-endpoints`,`global-acceleration-autoswitch`,`global-acceleration-enabled`,`global-acceleration-masque-endpoints`,`global-acceleration-wireguard-endpoints`].some(t=>e[t]!==void 0)){let t=[`global-acceleration-api-endpoints`,`global-acceleration-enabled`,`global-acceleration-masque-endpoints`,`global-acceleration-wireguard-endpoints`].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 --global_acceleration-* flag is set`)}return!0}).check(e=>{if([`virtual-networks-allowed`,`virtual-networks-default`].some(t=>e[t]!==void 0)){let t=[`virtual-networks-allowed`,`virtual-networks-default`].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 --virtual_networks-* flag is set`)}return!0})}const xm={command:`update`,describe:`Update the default device settings profile`,builder:bm,handler:async e=>u({command:`zero-trust devices profiles default update`,classification:{safeFlags:[`allow-mode-switch`,`allow-updates`,`allowed-to-leave`,`disable-auto-fallback`,`enable-device-credential-authentication`,`exclude-office-ips`,`global-acceleration-autoswitch`,`global-acceleration-enabled`,`register-interface-ip-with-dns`,`sccm-vpn-boundary-support`,`switch-locked`,`uninstall-protection`,`dry-run`]}},e,async()=>{if(e.dryRun){let t=await i();c({command:`cf zero-trust devices profiles default update`,method:`PATCH`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/devices/policy`,pathParams:{},bodyKind:`json`,body:e.body===void 0?g({allow_mode_switch:e[`allow-mode-switch`],allow_updates:e[`allow-updates`],allowed_to_leave:e[`allowed-to-leave`],auto_connect:e[`auto-connect`],captive_portal:e[`captive-portal`],disable_auto_fallback:e[`disable-auto-fallback`],dns_search_suffixes:d(e[`dns-search-suffixes`],`dns-search-suffixes`),enable_device_credential_authentication:e[`enable-device-credential-authentication`],exclude:d(e.exclude,`exclude`),exclude_office_ips:e[`exclude-office-ips`],global_acceleration:{api_endpoints:e[`global-acceleration-api-endpoints`],autoswitch:e[`global-acceleration-autoswitch`],enabled:e[`global-acceleration-enabled`],masque_endpoints:e[`global-acceleration-masque-endpoints`],wireguard_endpoints:e[`global-acceleration-wireguard-endpoints`]},include:d(e.include,`include`),lan_allow_minutes:e[`lan-allow-minutes`],lan_allow_subnet_size:e[`lan-allow-subnet-size`],register_interface_ip_with_dns:e[`register-interface-ip-with-dns`],sccm_vpn_boundary_support:e[`sccm-vpn-boundary-support`],service_mode_v2:{mode:_(e[`service-mode-v2-mode`],`service-mode-v2-mode`,`text`),port:e[`service-mode-v2-port`]},support_url:_(e[`support-url`],`support-url`,`text`),switch_locked:e[`switch-locked`],tunnel_protocol:_(e[`tunnel-protocol`],`tunnel-protocol`,`text`),uninstall_protection:e[`uninstall-protection`],virtual_networks:{allowed:e[`virtual-networks-allowed`],default:_(e[`virtual-networks-default`],`virtual-networks-default`,`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(ym,{body:t,account_id:a}));s(r,{successLabel:`Updated`});return}let u=g({allow_mode_switch:e[`allow-mode-switch`],allow_updates:e[`allow-updates`],allowed_to_leave:e[`allowed-to-leave`],auto_connect:e[`auto-connect`],captive_portal:e[`captive-portal`],disable_auto_fallback:e[`disable-auto-fallback`],dns_search_suffixes:d(e[`dns-search-suffixes`],`dns-search-suffixes`),enable_device_credential_authentication:e[`enable-device-credential-authentication`],exclude:d(e.exclude,`exclude`),exclude_office_ips:e[`exclude-office-ips`],global_acceleration:{api_endpoints:e[`global-acceleration-api-endpoints`],autoswitch:e[`global-acceleration-autoswitch`],enabled:e[`global-acceleration-enabled`],masque_endpoints:e[`global-acceleration-masque-endpoints`],wireguard_endpoints:e[`global-acceleration-wireguard-endpoints`]},include:d(e.include,`include`),lan_allow_minutes:e[`lan-allow-minutes`],lan_allow_subnet_size:e[`lan-allow-subnet-size`],register_interface_ip_with_dns:e[`register-interface-ip-with-dns`],sccm_vpn_boundary_support:e[`sccm-vpn-boundary-support`],service_mode_v2:{mode:_(e[`service-mode-v2-mode`],`service-mode-v2-mode`,`text`),port:e[`service-mode-v2-port`]},support_url:_(e[`support-url`],`support-url`,`text`),switch_locked:e[`switch-locked`],tunnel_protocol:_(e[`tunnel-protocol`],`tunnel-protocol`,`text`),uninstall_protection:e[`uninstall-protection`],virtual_networks:{allowed:e[`virtual-networks-allowed`],default:_(e[`virtual-networks-default`],`virtual-networks-default`,`text`)}}),p=await l(`Updating`,async()=>n.send(ym,{body:u,account_id:a}));s(p,{successLabel:`Updated`})})},Sm={command:`default`,describe:`Operations for devices.profiles.default`,builder:e=>e.command(vm).command(xm).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},Cm={command:`profiles`,describe:`Operations for devices.profiles`,builder:e=>e.command(hm).command(Sm).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var wm={method:`DELETE`,path:t=>e`/accounts/${t.account_id}/devices/registrations`,query:[`id`]};function Tm(e){return e.usage(`$0 zero-trust devices registrations bulk-delete
|
|
504
|
+
Updates the default device settings profile for an account.`).option(`allow-mode-switch`,{type:`boolean`,description:`Whether to allow the user to switch WARP between modes.`}).option(`allow-updates`,{type:`boolean`,description:`Whether to receive update notifications when a new version of the client is available.`}).option(`allowed-to-leave`,{type:`boolean`,description:`Whether to allow devices to leave the organization.`}).option(`auto-connect`,{type:`number`,description:`The amount of time in seconds to reconnect after having been disabled.`}).option(`captive-portal`,{type:`number`,description:`Turn on the captive portal after the specified amount of time.`}).option(`disable-auto-fallback`,{type:`boolean`,description:"If the `dns_server` field of a fallback domain is not present, the client will fall back to a best guess of the default/system DNS resolvers unless this policy option is set to `true`."}).option(`dns-search-suffixes`,{type:`string`,description:`List of DNS search suffixes to apply to clients. Suffixes are evaluated in order. Use an empty array to clear. Provide as a JSON array of objects or @path/to/file.json.`}).option(`enable-device-credential-authentication`,{type:`boolean`,description:`Determines whether the WARP client can silently reauthenticate the user with device credentials (Microsoft Entra) instead of prompting for browser-based reauthentication.`}).option(`exclude`,{type:`string`,description:`List of routes excluded in the WARP client's tunnel. Both 'exclude' and 'include' cannot be set in the same request. Provide as a JSON array of objects or @path/to/file.json.`}).option(`exclude-office-ips`,{type:`boolean`,description:`Whether to add Microsoft IPs to Split Tunnel exclusions.`}).option(`global-acceleration-allow-manual-override`,{type:`boolean`,description:`Whether WARP users may manually override the automatic Global Acceleration decision. Defaults to true when not provided.`}).option(`global-acceleration-api-endpoints`,{type:`string`,array:!0,description:`IP:port entries for the API endpoints.`}).option(`global-acceleration-autoswitch`,{type:`boolean`,description:`Automatically switch Global Acceleration regions based on device location. Defaults to false when not provided.`}).option(`global-acceleration-enabled`,{type:`boolean`,description:`Global acceleration settings are used only when "enabled".`}).option(`global-acceleration-masque-endpoints`,{type:`string`,array:!0,description:`IP:port entries for the MASQUE tunnel endpoints. Either wireguard_endpoints or masque_endpoints must be provided.`}).option(`global-acceleration-wireguard-endpoints`,{type:`string`,array:!0,description:`IP:port entries for the WireGuard tunnel endpoints. Either wireguard_endpoints or masque_endpoints must be provided.`}).option(`include`,{type:`string`,description:`List of routes included in the WARP client's tunnel. Both 'exclude' and 'include' cannot be set in the same request. Provide as a JSON array of objects or @path/to/file.json.`}).option(`lan-allow-minutes`,{type:`number`,description:`The amount of time in minutes a user is allowed access to their LAN. A value of 0 will allow LAN access until the next WARP reconnection, such as a reboot or a laptop waking from sleep. Note that this field is omitted from the response if null or unset.`}).option(`lan-allow-subnet-size`,{type:`number`,description:`The size of the subnet for the local access network. Note that this field is omitted from the response if null or unset.`}).option(`register-interface-ip-with-dns`,{type:`boolean`,description:`Determines if the operating system will register WARP's local interface IP with your on-premises DNS server.`}).option(`sccm-vpn-boundary-support`,{type:`boolean`,description:`Determines whether the WARP client indicates to SCCM that it is inside a VPN boundary. (Windows only).`}).option(`service-mode-v2-mode`,{type:`string`,description:`The mode to run the WARP client under.`}).option(`service-mode-v2-port`,{type:`number`,description:`The port number when used with proxy mode.`}).option(`support-url`,{type:`string`,description:`The URL to launch when the Send Feedback button is clicked.`}).option(`switch-locked`,{type:`boolean`,description:`Whether to allow the user to turn off the WARP switch and disconnect the client.`}).option(`tunnel-protocol`,{type:`string`,description:`Determines which tunnel protocol to use.`}).option(`uninstall-protection`,{type:`boolean`,description:`Determines whether uninstalling the WARP client requires an override code. (Windows only).`}).option(`virtual-networks-allowed`,{type:`string`,array:!0,description:`List of virtual network IDs the device is allowed to access. When virtual_networks is set, at least one entry is required.`}).option(`virtual-networks-default`,{type:`string`,description:"The default virtual network ID. Must be included in the `allowed` list."}).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([`global-acceleration-allow-manual-override`,`global-acceleration-api-endpoints`,`global-acceleration-autoswitch`,`global-acceleration-enabled`,`global-acceleration-masque-endpoints`,`global-acceleration-wireguard-endpoints`].some(t=>e[t]!==void 0)){let t=[`global-acceleration-api-endpoints`,`global-acceleration-enabled`,`global-acceleration-masque-endpoints`,`global-acceleration-wireguard-endpoints`].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 --global_acceleration-* flag is set`)}return!0}).check(e=>{if([`virtual-networks-allowed`,`virtual-networks-default`].some(t=>e[t]!==void 0)){let t=[`virtual-networks-allowed`,`virtual-networks-default`].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 --virtual_networks-* flag is set`)}return!0})}const xm={command:`update`,describe:`Update the default device settings profile`,builder:bm,handler:async e=>u({command:`zero-trust devices profiles default update`,classification:{safeFlags:[`allow-mode-switch`,`allow-updates`,`allowed-to-leave`,`disable-auto-fallback`,`enable-device-credential-authentication`,`exclude-office-ips`,`global-acceleration-allow-manual-override`,`global-acceleration-autoswitch`,`global-acceleration-enabled`,`register-interface-ip-with-dns`,`sccm-vpn-boundary-support`,`switch-locked`,`uninstall-protection`,`dry-run`]}},e,async()=>{if(e.dryRun){let t=await i();c({command:`cf zero-trust devices profiles default update`,method:`PATCH`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/devices/policy`,pathParams:{},bodyKind:`json`,body:e.body===void 0?g({allow_mode_switch:e[`allow-mode-switch`],allow_updates:e[`allow-updates`],allowed_to_leave:e[`allowed-to-leave`],auto_connect:e[`auto-connect`],captive_portal:e[`captive-portal`],disable_auto_fallback:e[`disable-auto-fallback`],dns_search_suffixes:d(e[`dns-search-suffixes`],`dns-search-suffixes`),enable_device_credential_authentication:e[`enable-device-credential-authentication`],exclude:d(e.exclude,`exclude`),exclude_office_ips:e[`exclude-office-ips`],global_acceleration:{allow_manual_override:e[`global-acceleration-allow-manual-override`],api_endpoints:e[`global-acceleration-api-endpoints`],autoswitch:e[`global-acceleration-autoswitch`],enabled:e[`global-acceleration-enabled`],masque_endpoints:e[`global-acceleration-masque-endpoints`],wireguard_endpoints:e[`global-acceleration-wireguard-endpoints`]},include:d(e.include,`include`),lan_allow_minutes:e[`lan-allow-minutes`],lan_allow_subnet_size:e[`lan-allow-subnet-size`],register_interface_ip_with_dns:e[`register-interface-ip-with-dns`],sccm_vpn_boundary_support:e[`sccm-vpn-boundary-support`],service_mode_v2:{mode:_(e[`service-mode-v2-mode`],`service-mode-v2-mode`,`text`),port:e[`service-mode-v2-port`]},support_url:_(e[`support-url`],`support-url`,`text`),switch_locked:e[`switch-locked`],tunnel_protocol:_(e[`tunnel-protocol`],`tunnel-protocol`,`text`),uninstall_protection:e[`uninstall-protection`],virtual_networks:{allowed:e[`virtual-networks-allowed`],default:_(e[`virtual-networks-default`],`virtual-networks-default`,`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(ym,{body:t,account_id:a}));s(r,{successLabel:`Updated`});return}let u=g({allow_mode_switch:e[`allow-mode-switch`],allow_updates:e[`allow-updates`],allowed_to_leave:e[`allowed-to-leave`],auto_connect:e[`auto-connect`],captive_portal:e[`captive-portal`],disable_auto_fallback:e[`disable-auto-fallback`],dns_search_suffixes:d(e[`dns-search-suffixes`],`dns-search-suffixes`),enable_device_credential_authentication:e[`enable-device-credential-authentication`],exclude:d(e.exclude,`exclude`),exclude_office_ips:e[`exclude-office-ips`],global_acceleration:{allow_manual_override:e[`global-acceleration-allow-manual-override`],api_endpoints:e[`global-acceleration-api-endpoints`],autoswitch:e[`global-acceleration-autoswitch`],enabled:e[`global-acceleration-enabled`],masque_endpoints:e[`global-acceleration-masque-endpoints`],wireguard_endpoints:e[`global-acceleration-wireguard-endpoints`]},include:d(e.include,`include`),lan_allow_minutes:e[`lan-allow-minutes`],lan_allow_subnet_size:e[`lan-allow-subnet-size`],register_interface_ip_with_dns:e[`register-interface-ip-with-dns`],sccm_vpn_boundary_support:e[`sccm-vpn-boundary-support`],service_mode_v2:{mode:_(e[`service-mode-v2-mode`],`service-mode-v2-mode`,`text`),port:e[`service-mode-v2-port`]},support_url:_(e[`support-url`],`support-url`,`text`),switch_locked:e[`switch-locked`],tunnel_protocol:_(e[`tunnel-protocol`],`tunnel-protocol`,`text`),uninstall_protection:e[`uninstall-protection`],virtual_networks:{allowed:e[`virtual-networks-allowed`],default:_(e[`virtual-networks-default`],`virtual-networks-default`,`text`)}}),p=await l(`Updating`,async()=>n.send(ym,{body:u,account_id:a}));s(p,{successLabel:`Updated`})})},Sm={command:`default`,describe:`Operations for devices.profiles.default`,builder:e=>e.command(vm).command(xm).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},Cm={command:`profiles`,describe:`Operations for devices.profiles`,builder:e=>e.command(hm).command(Sm).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var wm={method:`DELETE`,path:t=>e`/accounts/${t.account_id}/devices/registrations`,query:[`id`]};function Tm(e){return e.usage(`$0 zero-trust devices registrations bulk-delete
|
|
505
505
|
|
|
506
506
|
Deletes a list of WARP registrations.`).option(`id`,{type:`string`,description:`A list of registration IDs to delete.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`force`,{type:`boolean`,alias:`f`,description:`Skip confirmation (useful in scripts and CI)`,default:!1})}const Em={command:`bulk-delete`,describe:`Delete registrations`,builder:Tm,handler:async e=>u({command:`zero-trust devices registrations bulk-delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{let n={id:e.id};if(e.dryRun){let e=await i();c({command:`cf zero-trust devices registrations bulk-delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}/devices/registrations`,pathParams:{},query:n,bodyKind:`none`});return}let a=await r(e),u=e.local?t:await o();if(e.accountId=u,!await x({force:!!e.force}))return;let d=await l(`Deleting`,async()=>a.send(wm,{account_id:u,...n}));s(d,{successLabel:`Deleted`})})};var Dm={method:`DELETE`,path:t=>e`/accounts/${t.account_id}/devices/registrations/${t.registration_id}`};function Om(e){return e.usage(`$0 zero-trust devices registrations delete <registration-id>
|
|
507
507
|
|
|
@@ -517,7 +517,7 @@ Resets the current device settings for a Zero Trust account.`).option(`dry-run`,
|
|
|
517
517
|
|
|
518
518
|
Describes the current device settings for a Zero Trust account.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const Km={command:`get`,describe:`Get device settings`,builder:Gm,handler:async e=>u({command:`zero-trust devices settings get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let e=await i();c({command:`cf zero-trust devices settings get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}/devices/settings`,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(Wm,{account_id:a}));s(u,{successLabel:`Loaded`})})};var qm={method:`PATCH`,path:t=>e`/accounts/${t.account_id}/devices/settings`,body:`json`};function Jm(e){return e.usage(`$0 zero-trust devices settings update
|
|
519
519
|
|
|
520
|
-
Updates the device settings for a Zero Trust account.`).option(`disable-for-time`,{type:`number`,description:`Sets the time limit, in seconds, that a user can use an override code to bypass WARP.`}).option(`external-emergency-signal-enabled`,{type:`boolean`,description:`Controls whether the external emergency disconnect feature is enabled.`}).option(`external-emergency-signal-fingerprint`,{type:`string`,description:`The SHA256 fingerprint (64 hexadecimal characters) of the HTTPS server certificate for the external_emergency_signal_url. If provided, the WARP client will use this value to verify the server's identity. The device will ignore any response if the server's certificate fingerprint does not exactly match this value.`}).option(`external-emergency-signal-interval`,{type:`string`,description:`The interval at which the WARP client fetches the emergency disconnect signal, formatted as a duration string (e.g., "5m", "2m30s", "1h"). Minimum 30 seconds.`}).option(`external-emergency-signal-url`,{type:`string`,description:`The HTTPS URL from which to fetch the emergency disconnect signal. Must use HTTPS and have an IPv4 or IPv6 address as the host.`}).option(`gateway-proxy-enabled`,{type:`boolean`,description:`Enable gateway proxy filtering on TCP.`}).option(`gateway-udp-proxy-enabled`,{type:`boolean`,description:`Enable gateway proxy filtering on UDP.`}).option(`root-certificate-installation-enabled`,{type:`boolean`,description:`Enable installation of cloudflare managed root certificate.`}).option(`use-zt-virtual-ip`,{type:`boolean`,description:`Enable using CGNAT virtual IPv4.`}).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 Ym={command:`update`,describe:`Update device settings`,builder:Jm,handler:async e=>u({command:`zero-trust devices settings update`,classification:{safeFlags:[`external-emergency-signal-enabled`,`gateway-proxy-enabled`,`gateway-udp-proxy-enabled`,`root-certificate-installation-enabled`,`use-zt-virtual-ip`,`dry-run`]}},e,async()=>{if(e.dryRun){let t=await i();c({command:`cf zero-trust devices settings update`,method:`PATCH`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/devices/settings`,pathParams:{},bodyKind:`json`,body:e.body===void 0?g({disable_for_time:e[`disable-for-time`],external_emergency_signal_enabled:e[`external-emergency-signal-enabled`],external_emergency_signal_fingerprint:_(e[`external-emergency-signal-fingerprint`],`external-emergency-signal-fingerprint`,`text`),external_emergency_signal_interval:_(e[`external-emergency-signal-interval`],`external-emergency-signal-interval`,`text`),external_emergency_signal_url:_(e[`external-emergency-signal-url`],`external-emergency-signal-url`,`text`),gateway_proxy_enabled:e[`gateway-proxy-enabled`],gateway_udp_proxy_enabled:e[`gateway-udp-proxy-enabled`],root_certificate_installation_enabled:e[`root-certificate-installation-enabled`],use_zt_virtual_ip:e[`use-zt-virtual-ip`]}):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(qm,{body:t,account_id:a}));s(r,{successLabel:`Updated`});return}let u=g({disable_for_time:e[`disable-for-time`],external_emergency_signal_enabled:e[`external-emergency-signal-enabled`],external_emergency_signal_fingerprint:_(e[`external-emergency-signal-fingerprint`],`external-emergency-signal-fingerprint`,`text`),external_emergency_signal_interval:_(e[`external-emergency-signal-interval`],`external-emergency-signal-interval`,`text`),external_emergency_signal_url:_(e[`external-emergency-signal-url`],`external-emergency-signal-url`,`text`),gateway_proxy_enabled:e[`gateway-proxy-enabled`],gateway_udp_proxy_enabled:e[`gateway-udp-proxy-enabled`],root_certificate_installation_enabled:e[`root-certificate-installation-enabled`],use_zt_virtual_ip:e[`use-zt-virtual-ip`]}),d=await l(`Updating`,async()=>n.send(qm,{body:u,account_id:a}));s(d,{successLabel:`Updated`})})},Xm={command:`settings`,describe:`Operations for devices.settings`,builder:e=>e.command(Um).command(Km).command(Ym).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var Zm={method:`PATCH`,path:t=>e`/accounts/${t.account_id}/devices/physical-devices/${t.device_id}`,body:`json`};function Qm(e){return e.usage(`$0 zero-trust devices update <device-id>
|
|
520
|
+
Updates the device settings for a Zero Trust account.`).option(`disable-for-time`,{type:`number`,description:`Sets the time limit, in seconds, that a user can use an override code to bypass WARP.`}).option(`external-emergency-signal-enabled`,{type:`boolean`,description:`Controls whether the external emergency disconnect feature is enabled.`}).option(`external-emergency-signal-fingerprint`,{type:`string`,description:`The SHA256 fingerprint (64 hexadecimal characters) of the HTTPS server certificate for the external_emergency_signal_url. If provided, the WARP client will use this value to verify the server's identity. The device will ignore any response if the server's certificate fingerprint does not exactly match this value.`}).option(`external-emergency-signal-interval`,{type:`string`,description:`The interval at which the WARP client fetches the emergency disconnect signal, formatted as a duration string (e.g., "5m", "2m30s", "1h"). Minimum 30 seconds.`}).option(`external-emergency-signal-url`,{type:`string`,description:`The HTTPS URL from which to fetch the emergency disconnect signal. Must use HTTPS and have an IPv4 or IPv6 address as the host.`}).option(`gateway-proxy-enabled`,{type:`boolean`,description:`Enable gateway proxy filtering on TCP.`}).option(`gateway-udp-proxy-enabled`,{type:`boolean`,description:`Enable gateway proxy filtering on UDP.`}).option(`root-certificate-installation-enabled`,{type:`boolean`,description:`Enable installation of cloudflare managed root certificate.`}).option(`use-zt-virtual-ip`,{type:`boolean`,description:`Enable using CGNAT virtual IPv4.`}).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 Ym={command:`update`,describe:`Update device settings`,builder:Jm,handler:async e=>u({command:`zero-trust devices settings update`,classification:{safeFlags:[`external-emergency-signal-enabled`,`gateway-proxy-enabled`,`gateway-udp-proxy-enabled`,`root-certificate-installation-enabled`,`use-zt-virtual-ip`,`dry-run`]}},e,async()=>{if(e.dryRun){let t=await i();c({command:`cf zero-trust devices settings update`,method:`PATCH`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/devices/settings`,pathParams:{},bodyKind:`json`,body:e.body===void 0?g({disable_for_time:e[`disable-for-time`],external_emergency_signal_enabled:e[`external-emergency-signal-enabled`],external_emergency_signal_fingerprint:_(e[`external-emergency-signal-fingerprint`],`external-emergency-signal-fingerprint`,`text`),external_emergency_signal_interval:_(e[`external-emergency-signal-interval`],`external-emergency-signal-interval`,`text`),external_emergency_signal_url:_(e[`external-emergency-signal-url`],`external-emergency-signal-url`,`text`),gateway_proxy_enabled:e[`gateway-proxy-enabled`],gateway_udp_proxy_enabled:e[`gateway-udp-proxy-enabled`],root_certificate_installation_enabled:e[`root-certificate-installation-enabled`],use_zt_virtual_ip:e[`use-zt-virtual-ip`]}):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(qm,{body:t,account_id:a}));s(r,{successLabel:`Updated`});return}let u=g({disable_for_time:e[`disable-for-time`],external_emergency_signal_enabled:e[`external-emergency-signal-enabled`],external_emergency_signal_fingerprint:_(e[`external-emergency-signal-fingerprint`],`external-emergency-signal-fingerprint`,`text`),external_emergency_signal_interval:_(e[`external-emergency-signal-interval`],`external-emergency-signal-interval`,`text`),external_emergency_signal_url:_(e[`external-emergency-signal-url`],`external-emergency-signal-url`,`text`),gateway_proxy_enabled:e[`gateway-proxy-enabled`],gateway_udp_proxy_enabled:e[`gateway-udp-proxy-enabled`],root_certificate_installation_enabled:e[`root-certificate-installation-enabled`],use_zt_virtual_ip:e[`use-zt-virtual-ip`]}),d=await l(`Updating`,async()=>n.send(qm,{body:u,account_id:a}));s(d,{successLabel:`Updated`})})},Xm={command:`settings`,describe:`Operations for devices.settings`,builder:e=>e.command(Um).command(Km).command(Ym).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var Zm={method:`PATCH`,path:t=>e`/accounts/${t.account_id}/devices/physical-devices/${t.device_id}`,body:`json`,errors:{409:`ConflictError`}};function Qm(e){return e.usage(`$0 zero-trust devices update <device-id>
|
|
521
521
|
|
|
522
522
|
Updates properties of a WARP device.`).positional(`device-id`,{type:`string`,description:`Device ID`,demandOption:!0}).option(`tags`,{type:`string`,description:`Replaces all tags assigned to the physical device. An empty object removes all tags. Provide as a JSON object 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 $m={command:`update <device-id>`,describe:`Update device`,builder:Qm,handler:async e=>u({command:`zero-trust devices update`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.body===void 0&&e.tags===void 0)throw Error(`--body is required unless at least one JSON map flag is provided (--tags).`);if(e.dryRun){let t=await i();c({command:`cf zero-trust devices update`,method:`PATCH`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/devices/physical-devices/${e[`device-id`]==null?`<device-id>`:encodeURIComponent(String(e[`device-id`]))}`,pathParams:{"device-id":String(e[`device-id`]??``)},bodyKind:`json`,body:e.body===void 0?g({tags:m(e.tags,`tags`)},[[`tags`]]):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(Zm,{body:t,account_id:a,device_id:e[`device-id`]}));s(r,{successLabel:`Updated`});return}let u=g({tags:m(e.tags,`tags`)},[[`tags`]]),d=await l(`Updating`,async()=>n.send(Zm,{body:u,account_id:a,device_id:e[`device-id`]}));s(d,{successLabel:`Updated`})})},eh={command:`devices`,describe:`Operations for devices`,builder:e=>e.command(lf).command(Ff).command(ep).command($m).command(of).command(Tf).command(Mf).command(Zf).command(gp).command(bp).command($p).command(Cm).command(Bm).command(Xm).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var th={method:`GET`,path:t=>e`/accounts/${t.account_id}/dex/colos`,query:[`from`,`to`,`sortBy`]};function nh(e){return e.usage(`$0 zero-trust dex colos list
|
|
523
523
|
|