cf 1.0.0-beta.14 → 1.0.0-beta.15
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/README.md +10 -0
- package/dist/_meta/commands.json +3409 -621
- package/dist/_meta/hand-written-commands.json +33 -0
- package/dist/_meta/schemas.json +2160 -246
- package/dist/abuse-reports-CnQBtN1G.mjs +24 -0
- package/dist/{access-k1QjF5rE.mjs → access-BzmXSwzj.mjs} +1 -1
- package/dist/account-tags-2qPWbW17.mjs +15 -0
- package/dist/accounts-B0Byg-AV.mjs +132 -0
- package/dist/acm-DgAu0cnk.mjs +15 -0
- package/dist/addressing-J1oa0ML2.mjs +105 -0
- package/dist/agent-memory-4KGou-tm.mjs +34 -0
- package/dist/ai-WY7wVQfA.mjs +31 -0
- package/dist/ai-audit-D38HaEoZ.mjs +6 -0
- package/dist/ai-gateway-C0gIipT8.mjs +80 -0
- package/dist/ai-search-ClwnPU-9.mjs +79 -0
- package/dist/ai-security-BIsvFPYV.mjs +10 -0
- package/dist/alerting-MHhv28oO.mjs +56 -0
- package/dist/analytics-BfBz7bqB.mjs +17 -0
- package/dist/analytics_engine-CXVdBF1n.mjs +4 -0
- package/dist/api-eMuS5GI1.mjs +3 -0
- package/dist/api-security-DUCfcdC1.mjs +154 -0
- package/dist/argo-CUlzI4v3.mjs +14 -0
- package/dist/artifacts-BLfWGzBg.mjs +43 -0
- package/dist/audit-logs-CsfIm2QS.mjs +4 -0
- package/dist/auth-8Sm4uLGM.mjs +2 -0
- package/dist/auth-C6u9qIGO.mjs +2 -0
- package/dist/auth-CGRemu5W.mjs +2 -0
- package/dist/{auth-token-Dop0wLCw.mjs → auth-token-DkkYg4DP.mjs} +1 -1
- package/dist/{autoconfig-RQ3HS4m1.mjs → autoconfig-B0ESZ8DJ.mjs} +2 -2
- package/dist/basin-catalog-CrKRYJ0b.mjs +46 -0
- package/dist/billing-NxehgXrR.mjs +23 -0
- package/dist/blocks-Bat9A8V_.mjs +5 -0
- package/dist/bot-management-C993iQKL.mjs +9 -0
- package/dist/botnet-feed-CZ4vYk5y.mjs +11 -0
- package/dist/brand-protection-ADVgIi0l.mjs +27 -0
- package/dist/browser-run-CEptKZYl.mjs +42 -0
- package/dist/build-Bm6kGyzo.mjs +2 -0
- package/dist/{build-CCe7IrWT.mjs → build-sBpqm9ga.mjs} +1 -1
- package/dist/builds-DqtiTH7p.mjs +71 -0
- package/dist/cache-hX5QxmI0.mjs +45 -0
- package/dist/certificate-authorities-BOcybjc1.mjs +6 -0
- package/dist/cf-Bq4pA4n6.mjs +18 -0
- package/dist/{chunk-TAK63GWY-DdMktrgc.mjs → chunk-2HLTAS5V-D7COzUOd.mjs} +2 -2
- package/dist/chunk-2K52M2W5-CYxfQXUq.mjs +363 -0
- package/dist/{chunk-DSGVRFIS-CPI5cYtB.mjs → chunk-DSGVRFIS-C5SqiTOz.mjs} +1 -1
- package/dist/{cli-ht4q6i2y.mjs → cli-R8h3OKZI.mjs} +1 -1
- package/dist/client-certificates-Bez_ArKE.mjs +13 -0
- package/dist/client-side-security-CSmA50Bv.mjs +63 -0
- package/dist/cloud-connector-0Wivqi7S.mjs +6 -0
- package/dist/{cloudflared-D83U8Yn3.mjs → cloudflared-By8BzYXc.mjs} +1 -1
- package/dist/cloudforce-one-J-rU6k1U.mjs +405 -0
- package/dist/{command-9VAc7b30.mjs → command-0BOb1pgV.mjs} +1 -1
- package/dist/{command-CyJQ40fc.mjs → command-BCJN-ZM2.mjs} +1 -1
- package/dist/{command-OHov3PEc.mjs → command-BG-kLOnS.mjs} +1 -1
- package/dist/{command-B_Ixlz8Q.mjs → command-BIsI-mMX.mjs} +1 -1
- package/dist/{command-SmWD-MeI.mjs → command-BKDbbA-L.mjs} +1 -1
- package/dist/command-BWQIKu6I.mjs +2 -0
- package/dist/{command-Ckb9FufU.mjs → command-Bdy69UFU.mjs} +1 -1
- package/dist/{command-CtVUNm__.mjs → command-Bgb-3yPg.mjs} +1 -1
- package/dist/{command-DtgJilOK.mjs → command-C6w1OdoC.mjs} +1 -1
- package/dist/{command-BtDY_MKv.mjs → command-CKW6UhTh.mjs} +1 -1
- package/dist/{command-Bpzp8Mz2.mjs → command-DCQgsd2U.mjs} +1 -1
- package/dist/{command-DjEJaOwV.mjs → command-DIs-Nqtl.mjs} +1 -1
- package/dist/command-DPn5ANHs.mjs +2 -0
- package/dist/{command-CUNMrMou.mjs → command-DZfKHiru.mjs} +1 -1
- package/dist/{command-DXaRn1ls.mjs → command-DppVezAB.mjs} +1 -1
- package/dist/{completions-CuqAO3N_.mjs → completions-CpNGTlUX.mjs} +1 -1
- package/dist/config.mjs +0 -0
- package/dist/connector-interrupts-CH-DaLuo.mjs +6 -0
- package/dist/connector-telemetry-events-X3Fod9nl.mjs +6 -0
- package/dist/connector-telemetry-snapshots-D-WR4npQ.mjs +6 -0
- package/dist/connectors-CORKD31m.mjs +15 -0
- package/dist/containers-BboUbx3k.mjs +78 -0
- package/dist/containers-Di3_Vopq.mjs +376 -0
- package/dist/content-scan-DXGREAXa.mjs +14 -0
- package/dist/{context-BBLtgdR1.mjs → context-A6T-NKPI.mjs} +2 -2
- package/dist/{cps-C5phNoVU.mjs → cps-1BoOLtTq.mjs} +3 -3
- package/dist/create-OXylMu6m.mjs +2 -0
- package/dist/csamScanner-CHfbfeup.mjs +10 -0
- package/dist/ct-alerting-DlH4ILQo.mjs +5 -0
- package/dist/custom-certificates-zJqJZ2Th.mjs +17 -0
- package/dist/custom-csrs-DoLIGqYL.mjs +11 -0
- package/dist/custom-hostnames-YfV-aoAK.mjs +27 -0
- package/dist/custom-nameservers-BV43gmgt.mjs +9 -0
- package/dist/custom-pages-CoOU1Cdx.mjs +21 -0
- package/dist/{d1-EQMUlHTJ.mjs → d1-DujBmzLa.mjs} +31 -31
- package/dist/dcv-delegation-CPLsVYOl.mjs +4 -0
- package/dist/delegate.mjs +0 -0
- package/dist/deploy-context-tEhwEXnA.mjs +56 -0
- package/dist/{deploy-input-BCjcuP6u.mjs → deploy-input-BqJ7GVZ-.mjs} +1 -1
- package/dist/{deploy-B22sEVHd.mjs → deploy-wNujfGUJ.mjs} +1 -1
- package/dist/{dev-ClhhXuNU.mjs → dev-EtnMYA7K.mjs} +1 -1
- package/dist/diagnostics-B3TYPVRi.mjs +15 -0
- package/dist/{dist-DmRM6WSZ.mjs → dist-DZRTPMMA.mjs} +4 -4
- package/dist/dls-CWm1HRF0.mjs +17 -0
- package/dist/dns-CjAFU7Z9.mjs +144 -0
- package/dist/dns-firewall-BooBP9ap.mjs +71 -0
- package/dist/docs-C5XB7HdG.mjs +3 -0
- package/dist/{dotenv-DpXaxfho.mjs → dotenv-usOKkeW7.mjs} +3 -3
- package/dist/{dry-run-DRj2_uV3.mjs → dry-run-C2KjGX10.mjs} +1 -1
- package/dist/durable-objects-CSrMQDCE.mjs +6 -0
- package/dist/email-auth-Bp1Mui-n.mjs +6 -0
- package/dist/email-routing-CVF6SwQt.mjs +45 -0
- package/dist/email-security-mYZtazae.mjs +158 -0
- package/dist/email-sending-BqaKU_Xu.mjs +47 -0
- package/dist/error-sanitization-CIQOep3I.mjs +2 -0
- package/dist/error-sanitization-pOyzm2F1.mjs +2 -0
- package/dist/fieldExtractors-CAGZVmYg.mjs +9 -0
- package/dist/firewall-DgTDsYOt.mjs +36 -0
- package/dist/flagship-Db3PxxyZ.mjs +28 -0
- package/dist/fraud-BEOQczy8.mjs +22 -0
- package/dist/get-By1q8YlI.mjs +2 -0
- package/dist/get-CRKvqCu6.mjs +2 -0
- package/dist/get-iPUHxD1r.mjs +2 -0
- package/dist/google-tag-gateway-DjLQ9wo0.mjs +6 -0
- package/dist/healthchecks-C3ScnKss.mjs +22 -0
- package/dist/{hostnames-DvaUSzsj.mjs → hostnames-DU0k-xO9.mjs} +6 -6
- package/dist/hyperdrive-IpCCLCRd.mjs +37 -0
- package/dist/iam-96CYM8Vw.mjs +52 -0
- package/dist/images-AB9EgZgT.mjs +71 -0
- package/dist/index.mjs +1 -1
- package/dist/{init-Da8pe296.mjs → init-D2nPoW4f.mjs} +2 -2
- package/dist/intel-BKb4RLvS.mjs +76 -0
- package/dist/ips-z9APCV_b.mjs +4 -0
- package/dist/k2-Bv-HiJ29.mjs +11 -0
- package/dist/keyless-certificates-ChgSGHq4.mjs +13 -0
- package/dist/keys-BhngDsDa.mjs +4 -0
- package/dist/kv-CB5MQVGP.mjs +15 -0
- package/dist/{lazy-command-CDWwCsD2.mjs → lazy-command-CaZ1kdlW.mjs} +1 -1
- package/dist/leaked-credential-checks-Bsi2WpSU.mjs +18 -0
- package/dist/{load-balancers-Bu9pd2SV.mjs → load-balancers-0gXZNCeI.mjs} +40 -40
- package/dist/{local-BcPM4I0s.mjs → local-Dil4fTWX.mjs} +1 -1
- package/dist/local-DxWDQDnG.mjs +2 -0
- package/dist/{local-runtime-BHKyRlCP.mjs → local-runtime-B7TKFu6E.mjs} +1 -1
- package/dist/login-CiQGR8ha.mjs +5 -0
- package/dist/login-Ik98G4K6.mjs +2 -0
- package/dist/logo-matches-DmoF5Otu.mjs +6 -0
- package/dist/logos-BL6ohIMH.mjs +7 -0
- package/dist/logpush-UVopW68t.mjs +46 -0
- package/dist/logs-BVfxiEiM.mjs +36 -0
- package/dist/magic-cloud-networking-B5S3aM6f.mjs +71 -0
- package/dist/magic-network-monitoring-CDSJPP47.mjs +36 -0
- package/dist/magic-transit-TcDTKM43.mjs +386 -0
- package/dist/managed-defense-C88HL0pg.mjs +18 -0
- package/dist/managed-transforms-Ja41Tahl.mjs +9 -0
- package/dist/matches-BL_Y-9Yq.mjs +6 -0
- package/dist/mcp-BWp5Q09R.mjs +32 -0
- package/dist/mesh-lFPLRWhV.mjs +26 -0
- package/dist/{migrate-CZNq63Uj.mjs → migrate-6e5mJ79R.mjs} +1 -1
- package/dist/monetization-BIc4Bwo2.mjs +20 -0
- package/dist/mtls-certificates-CVBw-Jli.mjs +13 -0
- package/dist/network-Wig0qbaC.mjs +50 -0
- package/dist/network-interconnects-C16z1HuQ.mjs +72 -0
- package/dist/o11y-Bhy4qDRm.mjs +93 -0
- package/dist/oauth-CfEedDZi.mjs +4 -0
- package/dist/oauth-clients-eXjmK5yf.mjs +16 -0
- package/dist/{oauth-n8um6MFk.mjs → oauth-oWaW7ICv.mjs} +1 -1
- package/dist/oauth-scopes-DZWn50EA.mjs +4 -0
- package/dist/organization-QdAQTrKa.mjs +71 -0
- package/dist/organizations-CgAQYdK5.mjs +4 -0
- package/dist/origin-ca-certificates-BklXqp8X.mjs +11 -0
- package/dist/origin-post-quantum-encryption-Dg16ueT4.mjs +6 -0
- package/dist/origin-tls-client-auth-d8bDU5zU.mjs +30 -0
- package/dist/output-Co4xdFf6.mjs +2 -0
- package/dist/page-rules-CgMkC6YR.mjs +39 -0
- package/dist/{pages-Bn0Sg1ay.mjs → pages-CkBtOOf8.mjs} +29 -29
- package/dist/path-DRw6Y-nd.mjs +2 -0
- package/dist/pay-per-crawl-CnGXOWyz.mjs +38 -0
- package/dist/pay-per-use-HbfxpATr.mjs +33 -0
- package/dist/pipelines-CnO9CCs0.mjs +44 -0
- package/dist/precursor-Bc55XJdQ.mjs +4 -0
- package/dist/previews-C7vZrajd.mjs +7 -0
- package/dist/progress-D5po7ScB.mjs +2 -0
- package/dist/prompt-BAJpE3jV.mjs +4 -0
- package/dist/queries-BJAH4B74.mjs +9 -0
- package/dist/queues-D4G8vvwi.mjs +57 -0
- package/dist/r2-CJ8rD6Jb.mjs +128 -0
- package/dist/{radar-CdvQL4xm.mjs → radar-DgaxOdcd.mjs} +150 -150
- package/dist/raw-fetch-yY-wX5Xx.mjs +2 -0
- package/dist/realtime-DU09m7L7.mjs +172 -0
- package/dist/registrar-Cj7OfvGs.mjs +43 -0
- package/dist/registrar-sandbox-CA0Mua-j.mjs +56 -0
- package/dist/{registry-PI6sO95I.mjs → registry-CRnk93ur.mjs} +1 -1
- package/dist/reporting-3kDVF5c8.mjs +14 -0
- package/dist/{request-headers-D8L95bEQ.mjs → request-headers-D_eQn93b.mjs} +1 -1
- package/dist/request-tracers-VBD4R3s3.mjs +4 -0
- package/dist/resolve-BpgXeklt.mjs +2 -0
- package/dist/resolve-C3FmNlSO.mjs +2 -0
- package/dist/resource-sharing-BtUF3psS.mjs +40 -0
- package/dist/resource-tagging--90INP8_.mjs +4 -0
- package/dist/rules-CcwPngVo.mjs +18 -0
- package/dist/rulesets-CfdruY82.mjs +37 -0
- package/dist/rum-RLkdfSL7.mjs +30 -0
- package/dist/run-CUNhH5CQ.mjs +2 -0
- package/dist/{run-CW2Cgi0S.mjs → run-DASYqJsY.mjs} +1 -1
- package/dist/{schema-elj12WOx.mjs → schema-S3pUZwpI.mjs} +1 -1
- package/dist/{schema-flags-BTItUu1K.mjs → schema-flags-CShtn7ya.mjs} +1 -1
- package/dist/scim-BZYsTPIL.mjs +18 -0
- package/dist/secrets-store-C_-FkSH_.mjs +24 -0
- package/dist/security-insights-BVBEaZmD.mjs +40 -0
- package/dist/security-txt--IoHrHee.mjs +9 -0
- package/dist/session-Cq3YNLoI.mjs +2 -0
- package/dist/shared-zNQNv1im.mjs +2 -0
- package/dist/smart-shield-CByC4_60.mjs +24 -0
- package/dist/snippets-DB-jiZAV.mjs +20 -0
- package/dist/{spawn-D07wH-MH.mjs → spawn-DQttFH05.mjs} +1 -1
- package/dist/{spectrum-B6qkjR_Z.mjs → spectrum-Bs2g1BmK.mjs} +14 -14
- package/dist/speed-Bq4evEnJ.mjs +24 -0
- package/dist/sql-XGci7hZC.mjs +4 -0
- package/dist/src-GiuwAT55.mjs +125 -0
- package/dist/ssl-KJTLW1NR.mjs +45 -0
- package/dist/{startup-profile-CrtCP-6-.mjs → startup-profile-BOaseXnO.mjs} +1 -1
- package/dist/startup-profile-BwEZFVGS.mjs +2 -0
- package/dist/{state-DIiIGEtR.mjs → state-Boubf1X6.mjs} +1 -1
- package/dist/state-CODDG9Nx.mjs +2 -0
- package/dist/stream-BotgYspF.mjs +102 -0
- package/dist/submit-C5VytaHP.mjs +4 -0
- package/dist/{tags-CX23P4jg.mjs → tags-3Hq-B9qp.mjs} +2 -2
- package/dist/{telemetry-ZlCi5Xhc.mjs → telemetry-3FJOXl_C.mjs} +1 -1
- package/dist/telemetry-BhKfwxyh.mjs +2 -0
- package/dist/tenant-BgX5onPc.mjs +10 -0
- package/dist/tenant-custom-nameservers-BVG8v1Xo.mjs +9 -0
- package/dist/theme-BGHWSKCw.mjs +6 -0
- package/dist/{tools-CSc5DmFi.mjs → tools-BCCRUENY.mjs} +1 -1
- package/dist/{tunnels-NzYpsfi_.mjs → tunnels-CThOI3qH.mjs} +15 -15
- package/dist/turnstile-BgZaUx-g.mjs +33 -0
- package/dist/ui-BtIBQeaG.mjs +2 -0
- package/dist/update-check-Yy7Ivq2V.mjs +2 -0
- package/dist/{update-check-HFkPml6x.mjs → update-check-jb89ih_g.mjs} +1 -1
- package/dist/update-check-worker.mjs +1 -1
- package/dist/url-info-DQERN0Xq.mjs +4 -0
- package/dist/url-normalization-Cb1hofqv.mjs +9 -0
- package/dist/url-scanner-gHgx1bW7.mjs +16 -0
- package/dist/{user-rXca0J9M.mjs → user-CdKzIuSi.mjs} +58 -58
- package/dist/values-EwA8Sx0w.mjs +4 -0
- package/dist/vectorize-DejgIJIv.mjs +32 -0
- package/dist/version-B6MnUIqV.mjs +2 -0
- package/dist/{waiting-rooms-DrA3-0bw.mjs → waiting-rooms-BNR1HvAP.mjs} +25 -25
- package/dist/web-assets-iglnzkTV.mjs +64 -0
- package/dist/web3-JBUU6IVt.mjs +28 -0
- package/dist/workers-CDp4kLTJ.mjs +40 -0
- package/dist/workers-builds-CSb9Dglt.mjs +14 -0
- package/dist/workers-for-platforms-D4srNZvt.mjs +40 -0
- package/dist/workers-vpc-LPC8TadH.mjs +13 -0
- package/dist/workflows-DN_VqWJC.mjs +52 -0
- package/dist/{wrangler-migration-C6FKHER1.mjs → wrangler-migration-DxTB5yPT.mjs} +1 -1
- package/dist/zaraz-DDErl5yc.mjs +22 -0
- package/dist/zero-trust-M88XX3uD.mjs +957 -0
- package/dist/zone-BsGvedmN.mjs +4 -0
- package/dist/zones-l_sRKrVl.mjs +124 -0
- package/package.json +15 -18
- package/dist/Page-BShsqCXr.mjs +0 -2
- package/dist/abuse-reports-CVv52Q2w.mjs +0 -24
- package/dist/account-tags-RhvWOkOf.mjs +0 -15
- package/dist/accounts--3lrEkmu.mjs +0 -125
- package/dist/acm-BJxINEcu.mjs +0 -15
- package/dist/addressing-BqByG9JW.mjs +0 -105
- package/dist/agent-memory-D4dQMGbh.mjs +0 -34
- package/dist/ai-CRkQ4pjC.mjs +0 -31
- package/dist/ai-audit-fMSn4c5L.mjs +0 -6
- package/dist/ai-gateway-CbhvQK4L.mjs +0 -80
- package/dist/ai-search-CvVSnOA0.mjs +0 -79
- package/dist/ai-security-Z_qpI92I.mjs +0 -10
- package/dist/alerting-CpbCB8br.mjs +0 -56
- package/dist/analytics-DkY9dOP1.mjs +0 -17
- package/dist/analytics_engine-DE_jvlx_.mjs +0 -4
- package/dist/api-security-BHnOU5MM.mjs +0 -154
- package/dist/argo-DhC5L_aN.mjs +0 -14
- package/dist/args-CfbYkeXd.mjs +0 -2
- package/dist/artifacts-CrIupY7P.mjs +0 -43
- package/dist/audit-logs-BjeBxTox.mjs +0 -4
- package/dist/auth-BNYfOMl0.mjs +0 -2
- package/dist/auth-CAWalgW0.mjs +0 -2
- package/dist/auth-DOwC01PW.mjs +0 -2
- package/dist/banner-D03JEqRs.mjs +0 -2
- package/dist/basin-catalog-DZ7QV-_N.mjs +0 -46
- package/dist/billing-BFyte9fL.mjs +0 -23
- package/dist/bot-management-DXcbV3am.mjs +0 -9
- package/dist/botnet-feed-bGGp_cwX.mjs +0 -11
- package/dist/brand-protection-DN36XkxH.mjs +0 -27
- package/dist/browser-run-hHD1RT43.mjs +0 -42
- package/dist/build-BhpWYgNm.mjs +0 -2
- package/dist/builds-6aO61R9R.mjs +0 -71
- package/dist/cache-C5YJpMqi.mjs +0 -45
- package/dist/certificate-authorities-CbqDAktQ.mjs +0 -6
- package/dist/cf-oRSQKirD.mjs +0 -18
- package/dist/chunk-NDZDTP46-Civns3WA.mjs +0 -361
- package/dist/cli-types-9oYmRTHJ.mjs +0 -2
- package/dist/client-certificates-balaN_my.mjs +0 -13
- package/dist/client-side-security-3_4Ermmg.mjs +0 -63
- package/dist/cloud-connector-avx27sLw.mjs +0 -6
- package/dist/cloudforce-one-CXdeqJ9l.mjs +0 -405
- package/dist/command-DPX9sJVi.mjs +0 -2
- package/dist/command-OWe3v69l.mjs +0 -2
- package/dist/connector-interrupts-ftd10Du-.mjs +0 -6
- package/dist/connector-telemetry-events-TwDZYdEM.mjs +0 -6
- package/dist/connector-telemetry-snapshots-CZxkOuC3.mjs +0 -6
- package/dist/connectors-6lVSr-fd.mjs +0 -15
- package/dist/containers-Dqs_ZnO2.mjs +0 -78
- package/dist/containers-ncw3bd3a.mjs +0 -376
- package/dist/content-scan-BWFbqfQ0.mjs +0 -14
- package/dist/csamScanner-BwZNZu0A.mjs +0 -10
- package/dist/ct-alerting-DPp3qLqO.mjs +0 -5
- package/dist/custom-certificates-pfpZcr06.mjs +0 -17
- package/dist/custom-csrs-DrvGRAkl.mjs +0 -11
- package/dist/custom-hostnames-wGtmFbz1.mjs +0 -27
- package/dist/custom-nameservers-HTG6MPKv.mjs +0 -9
- package/dist/custom-pages-DqEHBSVt.mjs +0 -21
- package/dist/dcv-delegation-D6nj0Z5N.mjs +0 -4
- package/dist/deploy-context-DmG9rgPO.mjs +0 -56
- package/dist/diagnostics-tqHjq-Pl.mjs +0 -15
- package/dist/dls-BEHj4X9T.mjs +0 -17
- package/dist/dns-firewall-zwbkutyf.mjs +0 -71
- package/dist/dns-n4mfYBZg.mjs +0 -144
- package/dist/durable-objects-CQ2dHhho.mjs +0 -6
- package/dist/email-auth-DOi6yOt3.mjs +0 -6
- package/dist/email-routing-WcSPt22u.mjs +0 -45
- package/dist/email-security-BXu3OGay.mjs +0 -158
- package/dist/email-sending-B9zTlIjt.mjs +0 -47
- package/dist/error-sanitization-DE_zSrXw.mjs +0 -2
- package/dist/error-sanitization-DOCQ9Ykh.mjs +0 -2
- package/dist/errors-_sob7Ihu.mjs +0 -3
- package/dist/fieldExtractors-B37m2lKW.mjs +0 -9
- package/dist/firewall-CRtYO0Ha.mjs +0 -36
- package/dist/flagship-DvTFZSay.mjs +0 -28
- package/dist/fraud-uSyibsit.mjs +0 -22
- package/dist/google-tag-gateway-BFXiiokq.mjs +0 -6
- package/dist/healthchecks-27u7b7Jb.mjs +0 -22
- package/dist/hyperdrive-BzJvPdu6.mjs +0 -37
- package/dist/iam-Dl3cU9GI.mjs +0 -52
- package/dist/images-C2OkI1j7.mjs +0 -71
- package/dist/intel-DoB1g_K7.mjs +0 -76
- package/dist/ips-BRt68epr.mjs +0 -4
- package/dist/k2-_eq5ZY2t.mjs +0 -11
- package/dist/keyless-certificates-DaO2yqYu.mjs +0 -13
- package/dist/keys-7BQ3Zq6Y.mjs +0 -4
- package/dist/kv-BTYCXKML.mjs +0 -15
- package/dist/leaked-credential-checks-CPHOK_dE.mjs +0 -18
- package/dist/local-BundUuDT.mjs +0 -2
- package/dist/login-BBYC_BtH.mjs +0 -2
- package/dist/login-D2uoWhWh.mjs +0 -5
- package/dist/logo-matches-Bc1DQ4-g.mjs +0 -6
- package/dist/logos-X5B8z7Iv.mjs +0 -7
- package/dist/logpush-C2ENi1et.mjs +0 -46
- package/dist/logs-BKDz7kBW.mjs +0 -36
- package/dist/magic-cloud-networking-B60Gld8A.mjs +0 -71
- package/dist/magic-network-monitoring-CxXI3Y-H.mjs +0 -36
- package/dist/magic-transit-ZCSaCbl8.mjs +0 -386
- package/dist/managed-defense-DrxMb7xi.mjs +0 -18
- package/dist/managed-transforms-AI7KrRU1.mjs +0 -9
- package/dist/matches-rPMLS3Ip.mjs +0 -6
- package/dist/mcp-DXUMvEWt.mjs +0 -32
- package/dist/mesh-MmBCQ37q.mjs +0 -26
- package/dist/monetization-DQE5VtUO.mjs +0 -20
- package/dist/mtls-certificates-DwkEb-Hy.mjs +0 -13
- package/dist/network-BcfobxQY.mjs +0 -50
- package/dist/network-interconnects-BU3tN_Ab.mjs +0 -72
- package/dist/o11y-BBv7nedp.mjs +0 -93
- package/dist/oauth-BUr8bPwo.mjs +0 -9
- package/dist/oauth-clients-qWVImhHE.mjs +0 -16
- package/dist/oauth-scopes-CdeIgJIx.mjs +0 -4
- package/dist/organization-CJeOVWH7.mjs +0 -71
- package/dist/organizations-BpfoqZcG.mjs +0 -4
- package/dist/origin-ca-certificates-Bimf07RF.mjs +0 -11
- package/dist/origin-post-quantum-encryption-CM-If38w.mjs +0 -6
- package/dist/origin-tls-client-auth-BPwYPhc9.mjs +0 -30
- package/dist/output-BOe-3AQG.mjs +0 -2
- package/dist/page-rules-DOeekMrj.mjs +0 -39
- package/dist/pay-per-crawl-qJpseNNx.mjs +0 -38
- package/dist/pay-per-use-C1MWKJ4O.mjs +0 -33
- package/dist/pipelines-rCwXQw6S.mjs +0 -44
- package/dist/precursor-Bk8Pp6jT.mjs +0 -4
- package/dist/previews-BEheHO3T.mjs +0 -4
- package/dist/progress-CQqDtgmF.mjs +0 -2
- package/dist/prompt-C8FyienX.mjs +0 -3
- package/dist/queries-DJ8looyq.mjs +0 -9
- package/dist/queues-BBH9Q-Tt.mjs +0 -57
- package/dist/r2-CdJKpP2w.mjs +0 -128
- package/dist/raw-fetch-DbXN3SlE.mjs +0 -2
- package/dist/realtime-onrXppzh.mjs +0 -172
- package/dist/registrar-CbEBc5IE.mjs +0 -43
- package/dist/registrar-sandbox-BJhn1HFT.mjs +0 -56
- package/dist/reporting-bXZY6obP.mjs +0 -14
- package/dist/request-tracers-CihskC2A.mjs +0 -4
- package/dist/resolve-CaTBV-c6.mjs +0 -2
- package/dist/resolve-DCGSzUDQ.mjs +0 -2
- package/dist/resource-sharing-DDqcCHVs.mjs +0 -40
- package/dist/resource-tagging-D63RpBce.mjs +0 -4
- package/dist/rules-CAW0-Wde.mjs +0 -18
- package/dist/rulesets-CPir63Qc.mjs +0 -37
- package/dist/rum-BfwTcuup.mjs +0 -30
- package/dist/run-DEynXvCc.mjs +0 -2
- package/dist/scim-CtZ1FeQE.mjs +0 -18
- package/dist/secrets-store-BIuBYUJT.mjs +0 -24
- package/dist/security-insights-DfUus0bs.mjs +0 -40
- package/dist/security-txt-CgZOsAIZ.mjs +0 -9
- package/dist/session-BcM8Vyyx.mjs +0 -2
- package/dist/shared-CpS23WwR.mjs +0 -2
- package/dist/smart-shield-ClgB7r-9.mjs +0 -24
- package/dist/snippets-DLO3iFAg.mjs +0 -20
- package/dist/speed-DX5X2EIR.mjs +0 -24
- package/dist/sql-CF044HDW.mjs +0 -4
- package/dist/src-BMATTZU_.mjs +0 -125
- package/dist/ssl-CM-rChEC.mjs +0 -45
- package/dist/startup-profile-D662WI9s.mjs +0 -2
- package/dist/state-D7uNYnoi.mjs +0 -2
- package/dist/stream-5EmUOQvy.mjs +0 -102
- package/dist/submit-lEAaRSMR.mjs +0 -4
- package/dist/telemetry-0Y5hAtCX.mjs +0 -2
- package/dist/tenant-DnI7QziH.mjs +0 -10
- package/dist/tenant-custom-nameservers-MR0dlcGm.mjs +0 -9
- package/dist/theme-CQ_TYifs.mjs +0 -6
- package/dist/turnstile-M7sKCEz3.mjs +0 -33
- package/dist/ui-YmjF66Ct.mjs +0 -5
- package/dist/update-check-aTutXNRd.mjs +0 -2
- package/dist/url-info-Dos9VOXV.mjs +0 -4
- package/dist/url-normalization-CZbFOq_v.mjs +0 -9
- package/dist/url-scanner-B7quLPGW.mjs +0 -16
- package/dist/values-D-rrZrDa.mjs +0 -4
- package/dist/vectorize-D2tf_oA8.mjs +0 -32
- package/dist/version-BGnqDvNR.mjs +0 -2
- package/dist/web-assets-DQAfvPT9.mjs +0 -64
- package/dist/web3-MI0GQDnu.mjs +0 -28
- package/dist/workers-By6Pf8fv.mjs +0 -40
- package/dist/workers-builds-6YsWsCmC.mjs +0 -14
- package/dist/workers-for-platforms-DL8fC1qR.mjs +0 -40
- package/dist/workers-vpc-BYx6sbgd.mjs +0 -13
- package/dist/workflows-ByQLnV0E.mjs +0 -52
- package/dist/zaraz-CgbpmA85.mjs +0 -22
- package/dist/zero-trust-CpjTkkWt.mjs +0 -837
- package/dist/zone-DnKIe6po.mjs +0 -4
- package/dist/zones--5ZzsDmQ.mjs +0 -124
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import"./api-eMuS5GI1.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{n as t}from"./auth-C6u9qIGO.mjs";import{i as n}from"./context-A6T-NKPI.mjs";import{t as r}from"./output-Co4xdFf6.mjs";import{t as i}from"./dry-run-C2KjGX10.mjs";import{t as a}from"./progress-D5po7ScB.mjs";import{t as o}from"./run-DASYqJsY.mjs";import"./telemetry-BhKfwxyh.mjs";var s={method:`PUT`,path:t=>e`/zones/${t.zone_id}/activation_check`};function c(e){return e.usage(`$0 zone activate
|
|
3
|
+
|
|
4
|
+
Triggeres a new activation check for a PENDING Zone. This can be triggered every 5 min for paygo/ent customers, every hour for FREE Zones.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const l={command:`activate`,describe:`Rerun the Activation Check`,builder:c,handler:async e=>o({command:`zone activate`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){i({command:`cf zone activate`,method:`PUT`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/activation_check`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``)},bodyKind:`none`});return}let o=await t(e),c=await n({zone:e.zone},o,{quiet:e.quiet});e.zoneId=c;let l=await a(`Updating`,async()=>o.send(s,{zone_id:c}));r(l,{successLabel:`Updated`})})},u={command:`zone`,describe:`zone`,builder:e=>e.command(l).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};export{u as default};
|
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import"./api-eMuS5GI1.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{n as t}from"./auth-C6u9qIGO.mjs";import{o as n}from"./resolve-C3FmNlSO.mjs";import{i as r}from"./context-A6T-NKPI.mjs";import{t as i}from"./output-Co4xdFf6.mjs";import{t as a}from"./dry-run-C2KjGX10.mjs";import{t as o}from"./progress-D5po7ScB.mjs";import{t as s}from"./run-DASYqJsY.mjs";import"./telemetry-BhKfwxyh.mjs";import{n as c,r as l,t as u}from"./body-parser-DkHKPkJ7.mjs";import{n as d}from"./input-validation-D7z60HJH.mjs";import{a as f,i as p,n as m}from"./prompt-BAJpE3jV.mjs";var h={method:`PATCH`,path:t=>e`/zones/${t.zone_id}/settings/aegis`,body:`json`};function ee(e){return e.usage(`$0 zones aegis edit
|
|
3
|
+
|
|
4
|
+
Aegis provides dedicated egress IPs (from Cloudflare to your origin) for your layer 7 WAF and CDN services. The egress IPs are reserved exclusively for your account so that you can increase your origin security by only allowing traffic from a small list of IP addresses.`).option(`value-enabled`,{type:`boolean`,description:`Whether the feature is enabled or not.`}).option(`value-pool-id`,{type:`string`,description:`Egress pool id which refers to a grouping of dedicated egress IPs through which Cloudflare will connect to origin.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const te={command:`edit`,describe:`Change aegis setting`,builder:ee,handler:async e=>s({command:`zones aegis edit`,classification:{safeFlags:[`value-enabled`,`dry-run`]}},e,async()=>{if(e.dryRun){a({command:`cf zones aegis edit`,method:`PATCH`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/settings/aegis`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``)},bodyKind:`json`,body:e.body===void 0?u({value:{enabled:e[`value-enabled`],pool_id:d(e[`value-pool-id`],`value-pool-id`,`text`)}}):c(e.body)});return}let n=await t(e),s=await r({zone:e.zone},n,{quiet:e.quiet});if(e.zoneId=s,e.body){let t=c(e.body),r=await o(`Updating`,async()=>n.send(h,{body:t,zone_id:s}));i(r,{successLabel:`Updated`});return}let l=u({value:{enabled:e[`value-enabled`],pool_id:d(e[`value-pool-id`],`value-pool-id`,`text`)}}),f=await o(`Updating`,async()=>n.send(h,{body:l,zone_id:s}));i(f,{successLabel:`Updated`})})};var ne={method:`GET`,path:t=>e`/zones/${t.zone_id}/settings/aegis`};function g(e){return e.usage(`$0 zones aegis get
|
|
5
|
+
|
|
6
|
+
Aegis provides dedicated egress IPs (from Cloudflare to your origin) for your layer 7 WAF and CDN services. The egress IPs are reserved exclusively for your account so that you can increase your origin security by only allowing traffic from a small list of IP addresses.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const _={command:`get`,describe:`Get aegis setting`,builder:g,handler:async e=>s({command:`zones aegis get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){a({command:`cf zones aegis get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/settings/aegis`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``)},bodyKind:`none`});return}let n=await t(e),s=await r({zone:e.zone},n,{quiet:e.quiet});e.zoneId=s;let c=await o(`Loading`,async()=>n.send(ne,{zone_id:s}));i(c,{successLabel:`Loaded`})})},re={command:`aegis`,describe:`Aegis operations`,builder:e=>e.command(te).command(_).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var v={method:`PATCH`,path:t=>e`/zones/${t.zone_id}/settings/automatic_platform_optimization`,body:`json`};function ie(e){return e.usage(`$0 zones automatic-platform-optimization edit
|
|
7
|
+
|
|
8
|
+
Automatic Platform Optimization (APO) for WordPress is a performance feature that serves your WordPress site from Cloudflare's edge network, reducing load times for visitors. Refer to the APO documentation for more information.`).option(`value-cache-by-device-type`,{type:`boolean`,description:`Whether to cache by device type.`}).option(`value-cf`,{type:`boolean`,description:`Whether the zone is proxied through Cloudflare.`}).option(`value-enabled`,{type:`boolean`,description:`Whether APO is enabled.`}).option(`value-hostnames`,{type:`string`,array:!0,description:`List of hostnames where APO is active.`}).option(`value-recheck`,{type:`boolean`,description:`Whether to recheck WordPress and plugin detection.`}).option(`value-wordpress`,{type:`boolean`,description:`Whether the site is a WordPress site.`}).option(`value-wp-plugin`,{type:`boolean`,description:`Whether the Cloudflare WordPress plugin is installed.`}).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)`}).implies(`value-cf`,[`value-enabled`,`value-wordpress`,`value-wp-plugin`]).implies(`value-enabled`,[`value-cf`,`value-wordpress`,`value-wp-plugin`]).implies(`value-wordpress`,[`value-cf`,`value-enabled`,`value-wp-plugin`]).implies(`value-wp-plugin`,[`value-cf`,`value-enabled`,`value-wordpress`])}const ae={command:`edit`,describe:`Change Automatic Platform Optimization setting`,builder:ie,handler:async e=>s({command:`zones automatic-platform-optimization edit`,classification:{safeFlags:[`value-cache-by-device-type`,`value-cf`,`value-enabled`,`value-recheck`,`value-wordpress`,`value-wp-plugin`,`dry-run`]}},e,async()=>{if(e.dryRun){a({command:`cf zones automatic-platform-optimization edit`,method:`PATCH`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/settings/automatic_platform_optimization`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``)},bodyKind:`json`,body:e.body===void 0?u({value:{cache_by_device_type:e[`value-cache-by-device-type`],cf:e[`value-cf`],enabled:e[`value-enabled`],hostnames:e[`value-hostnames`],recheck:e[`value-recheck`],wordpress:e[`value-wordpress`],wp_plugin:e[`value-wp-plugin`]}}):c(e.body)});return}let n=await t(e),s=await r({zone:e.zone},n,{quiet:e.quiet});if(e.zoneId=s,e.body){let t=c(e.body),r=await o(`Updating`,async()=>n.send(v,{body:t,zone_id:s}));i(r,{successLabel:`Updated`});return}let l=u({value:{cache_by_device_type:e[`value-cache-by-device-type`],cf:e[`value-cf`],enabled:e[`value-enabled`],hostnames:e[`value-hostnames`],recheck:e[`value-recheck`],wordpress:e[`value-wordpress`],wp_plugin:e[`value-wp-plugin`]}}),d=await o(`Updating`,async()=>n.send(v,{body:l,zone_id:s}));i(d,{successLabel:`Updated`})})};var oe={method:`GET`,path:t=>e`/zones/${t.zone_id}/settings/automatic_platform_optimization`};function se(e){return e.usage(`$0 zones automatic-platform-optimization get
|
|
9
|
+
|
|
10
|
+
Automatic Platform Optimization (APO) for WordPress is a performance feature that serves your WordPress site from Cloudflare's edge network, reducing load times for visitors. Refer to the APO documentation for more information.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const ce={command:`get`,describe:`Get Automatic Platform Optimization setting`,builder:se,handler:async e=>s({command:`zones automatic-platform-optimization get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){a({command:`cf zones automatic-platform-optimization get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/settings/automatic_platform_optimization`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``)},bodyKind:`none`});return}let n=await t(e),s=await r({zone:e.zone},n,{quiet:e.quiet});e.zoneId=s;let c=await o(`Loading`,async()=>n.send(oe,{zone_id:s}));i(c,{successLabel:`Loaded`})})},le={command:`automatic-platform-optimization`,describe:`Operations for automatic-platform-optimization`,builder:e=>e.command(ae).command(ce).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var y={method:`PATCH`,path:t=>e`/zones/${t.zone_id}/settings/binary_ast`,body:`json`};function ue(e){return e.usage(`$0 zones binary-ast edit
|
|
11
|
+
|
|
12
|
+
Binary AST is a new binary encoding for JavaScript that enables faster parsing of scripts. When enabled, Cloudflare will serve a binary-encoded version of JavaScript to compatible browsers.`).option(`value`,{type:`string`,description:`Controls Binary AST behavior:
|
|
13
|
+
- "off": Feature disabled.
|
|
14
|
+
- "on": Binary AST enabled.
|
|
15
|
+
- "latest": Binary AST enabled using the latest version.
|
|
16
|
+
`,choices:[`off`,`on`,`latest`]}).coerce(`value`,e=>d(e,`value`,`text`)).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const de={command:`edit`,describe:`Change Binary AST setting`,builder:ue,handler:async e=>s({command:`zones binary-ast edit`,classification:{safeFlags:[`value`,`dry-run`]}},e,async()=>{if(e.dryRun){a({command:`cf zones binary-ast edit`,method:`PATCH`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/settings/binary_ast`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``)},bodyKind:`json`,body:e.body===void 0?u({value:e.value}):c(e.body)});return}let n=await t(e),s=await r({zone:e.zone},n,{quiet:e.quiet});if(e.zoneId=s,e.body){let t=c(e.body),r=await o(`Updating`,async()=>n.send(y,{body:t,zone_id:s}));i(r,{successLabel:`Updated`});return}e.value===void 0&&(e.value=await p(`value`,`Controls Binary AST behavior: - "off": Feature disabled. - "on": Binary AST enabled. - "latest": Binary AST enabled using the latest version. `,[`off`,`on`,`latest`]));let l=u({value:e.value}),d=await o(`Updating`,async()=>n.send(y,{body:l,zone_id:s}));i(d,{successLabel:`Updated`})})};var fe={method:`GET`,path:t=>e`/zones/${t.zone_id}/settings/binary_ast`};function pe(e){return e.usage(`$0 zones binary-ast get
|
|
17
|
+
|
|
18
|
+
Binary AST is a new binary encoding for JavaScript that enables faster parsing of scripts. When enabled, Cloudflare will serve a binary-encoded version of JavaScript to compatible browsers.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const me={command:`get`,describe:`Get Binary AST setting`,builder:pe,handler:async e=>s({command:`zones binary-ast get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){a({command:`cf zones binary-ast get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/settings/binary_ast`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``)},bodyKind:`none`});return}let n=await t(e),s=await r({zone:e.zone},n,{quiet:e.quiet});e.zoneId=s;let c=await o(`Loading`,async()=>n.send(fe,{zone_id:s}));i(c,{successLabel:`Loaded`})})},he={command:`binary-ast`,describe:`Operations for binary-ast`,builder:e=>e.command(de).command(me).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var b={method:`POST`,path:()=>`/zones`,body:`json`};function ge(e){return e.usage(`$0 zones create
|
|
19
|
+
|
|
20
|
+
Creates a new zone (domain) in your Cloudflare account. The zone is created in a pending state and must be activated by updating your domain's nameservers to point to Cloudflare, or by completing the verification process for partial (CNAME) setups.`).option(`account-id`,{type:`string`,description:`Identifier`}).option(`name`,{type:`string`,description:`The domain name. Per [RFC 1035](https://datatracker.ietf.org/doc/html/rfc1035#section-2.3.4) the overall zone name can be up to 253 characters, with each segment ("label") not exceeding 63 characters.`}).option(`type`,{type:`string`,description:`A full zone implies that DNS is hosted with Cloudflare. A partial zone is
|
|
21
|
+
typically a partner-hosted zone or a CNAME setup.
|
|
22
|
+
`,choices:[`full`,`partial`,`secondary`,`internal`],default:`full`}).coerce(`type`,e=>d(e,`type`,`text`)).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const x={command:`create`,describe:`Create Zone`,builder:ge,handler:async e=>s({command:`zones create`,classification:{safeFlags:[`type`,`dry-run`]}},e,async()=>{if(e.dryRun){a({command:`cf zones create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/zones`,pathParams:{},bodyKind:`json`,body:e.body===void 0?u({account:{id:d(e[`account-id`],`account-id`,`text`)},name:d(e.name,`name`,`text`),type:e.type}):c(e.body)});return}let n=await t(e);if(e.body){let t=c(e.body),r=await o(`Creating`,async()=>n.send(b,{body:t}));i(r,{successLabel:`Created`});return}e.name===void 0&&(e.name=await f(`name`,`The domain name. Per [RFC 1035](https://datatracker.ietf.org/doc/html/rfc1035#section-2.3.4) the overall zone name can be up to 253 characters, with each segment ("label") not exceeding 63 characters.`));let r=u({account:{id:d(e[`account-id`],`account-id`,`text`)},name:d(e.name,`name`,`text`),type:e.type}),s=await o(`Creating`,async()=>n.send(b,{body:r}));i(s,{successLabel:`Created`})})};var S={method:`DELETE`,path:t=>e`/zones/${t.zone_id}`};function C(e){return e.usage(`$0 zones delete
|
|
23
|
+
|
|
24
|
+
Deletes an existing zone.`).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 w={command:`delete`,describe:`Delete Zone`,builder:C,handler:async e=>s({command:`zones delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{if(e.dryRun){a({command:`cf zones delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``)},bodyKind:`none`});return}let n=await t(e),s=await r({zone:e.zone},n,{quiet:e.quiet});if(e.zoneId=s,!await m({force:!!e.force})){process.stderr.write(`Aborted.
|
|
25
|
+
`);return}let c=await o(`Deleting`,async()=>n.send(S,{zone_id:s}));i(c,{successLabel:`Deleted`})})};var T={method:`PATCH`,path:t=>e`/zones/${t.zone_id}`,body:`json`};function E(e){return e.usage(`$0 zones edit
|
|
26
|
+
|
|
27
|
+
Edits a zone. Only one zone property can be changed at a time.`).option(`paused`,{type:`boolean`,description:`Indicates whether the zone is only using Cloudflare DNS services. A
|
|
28
|
+
true value means the zone will not receive security or performance
|
|
29
|
+
benefits.
|
|
30
|
+
`}).option(`plan-id`,{type:`string`,description:`Identifier`}).option(`type`,{type:`string`,description:`A full zone implies that DNS is hosted with Cloudflare. A partial
|
|
31
|
+
zone is typically a partner-hosted zone or a CNAME setup. This
|
|
32
|
+
parameter is only available to Enterprise customers or if it has
|
|
33
|
+
been explicitly enabled on a zone.
|
|
34
|
+
`,choices:[`full`,`partial`,`secondary`,`internal`]}).coerce(`type`,e=>d(e,`type`,`text`)).option(`vanity-name-servers`,{type:`string`,array:!0,description:`An array of domains used for custom name servers. This is only
|
|
35
|
+
available for Business and Enterprise plans.`}).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 D={command:`edit`,describe:`Edit Zone`,builder:E,handler:async e=>s({command:`zones edit`,classification:{safeFlags:[`paused`,`type`,`dry-run`]}},e,async()=>{if(e.dryRun){a({command:`cf zones edit`,method:`PATCH`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``)},bodyKind:`json`,body:e.body===void 0?u({paused:e.paused,plan:{id:d(e[`plan-id`],`plan-id`,`text`)},type:e.type,vanity_name_servers:e[`vanity-name-servers`]}):c(e.body)});return}let n=await t(e),s=await r({zone:e.zone},n,{quiet:e.quiet});if(e.zoneId=s,e.body){let t=c(e.body),r=await o(`Updating`,async()=>n.send(T,{body:t,zone_id:s}));i(r,{successLabel:`Updated`});return}let l=u({paused:e.paused,plan:{id:d(e[`plan-id`],`plan-id`,`text`)},type:e.type,vanity_name_servers:e[`vanity-name-servers`]}),f=await o(`Updating`,async()=>n.send(T,{body:l,zone_id:s}));i(f,{successLabel:`Updated`})})};var O={method:`PATCH`,path:t=>e`/zones/${t.zone_id}/settings/fonts`,body:`json`};function k(e){return e.usage(`$0 zones fonts edit
|
|
36
|
+
|
|
37
|
+
Enhance your website's font delivery with Cloudflare Fonts. Deliver Google Hosted fonts from your own domain, boost performance, and enhance user privacy. Refer to the Cloudflare Fonts documentation for more information.`).option(`value`,{type:`string`,description:`Whether the feature is enabled or disabled.`,choices:[`on`,`off`]}).coerce(`value`,e=>d(e,`value`,`text`)).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const A={command:`edit`,describe:`Change Cloudflare Fonts setting`,builder:k,handler:async e=>s({command:`zones fonts edit`,classification:{safeFlags:[`value`,`dry-run`]}},e,async()=>{if(e.dryRun){a({command:`cf zones fonts edit`,method:`PATCH`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/settings/fonts`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``)},bodyKind:`json`,body:e.body===void 0?u({value:e.value}):c(e.body)});return}let n=await t(e),s=await r({zone:e.zone},n,{quiet:e.quiet});if(e.zoneId=s,e.body){let t=c(e.body),r=await o(`Updating`,async()=>n.send(O,{body:t,zone_id:s}));i(r,{successLabel:`Updated`});return}e.value===void 0&&(e.value=await p(`value`,`Whether the feature is enabled or disabled.`,[`on`,`off`]));let l=u({value:e.value}),d=await o(`Updating`,async()=>n.send(O,{body:l,zone_id:s}));i(d,{successLabel:`Updated`})})};var j={method:`GET`,path:t=>e`/zones/${t.zone_id}/settings/fonts`};function M(e){return e.usage(`$0 zones fonts get
|
|
38
|
+
|
|
39
|
+
Enhance your website's font delivery with Cloudflare Fonts. Deliver Google Hosted fonts from your own domain, boost performance, and enhance user privacy. Refer to the Cloudflare Fonts documentation for more information.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const N={command:`get`,describe:`Get Cloudflare Fonts setting`,builder:M,handler:async e=>s({command:`zones fonts get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){a({command:`cf zones fonts get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/settings/fonts`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``)},bodyKind:`none`});return}let n=await t(e),s=await r({zone:e.zone},n,{quiet:e.quiet});e.zoneId=s;let c=await o(`Loading`,async()=>n.send(j,{zone_id:s}));i(c,{successLabel:`Loaded`})})},P={command:`fonts`,describe:`Fonts operations`,builder:e=>e.command(A).command(N).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var F={method:`GET`,path:t=>e`/zones/${t.zone_id}`};function I(e){return e.usage(`$0 zones get
|
|
40
|
+
|
|
41
|
+
Retrieves detailed information about a specific zone identified by its zone ID. Returns zone configuration, status, nameservers, and associated metadata.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const L={command:`get`,describe:`Zone Details`,builder:I,handler:async e=>s({command:`zones get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){a({command:`cf zones get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``)},bodyKind:`none`});return}let n=await t(e),s=await r({zone:e.zone},n,{quiet:e.quiet});e.zoneId=s;let c=await o(`Loading`,async()=>n.send(F,{zone_id:s}));i(c,{successLabel:`Loaded`})})};var R={method:`PATCH`,path:t=>e`/zones/${t.zone_id}/settings/h2_prioritization`,body:`json`};function _e(e){return e.usage(`$0 zones h2-prioritization edit
|
|
42
|
+
|
|
43
|
+
HTTP/2 Prioritization controls the order in which assets are delivered to browsers. Cloudflare's HTTP/2 Prioritization overrides the default browser prioritization order, improving the loading performance of web pages.`).option(`value`,{type:`string`,description:`Controls HTTP/2 Prioritization behavior:
|
|
44
|
+
- "off": Use browser default prioritization.
|
|
45
|
+
- "on": Use Cloudflare's optimized prioritization.
|
|
46
|
+
- "custom": Use custom prioritization rules.
|
|
47
|
+
`,choices:[`off`,`on`,`custom`]}).coerce(`value`,e=>d(e,`value`,`text`)).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const ve={command:`edit`,describe:`Change HTTP/2 Prioritization setting`,builder:_e,handler:async e=>s({command:`zones h2-prioritization edit`,classification:{safeFlags:[`value`,`dry-run`]}},e,async()=>{if(e.dryRun){a({command:`cf zones h2-prioritization edit`,method:`PATCH`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/settings/h2_prioritization`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``)},bodyKind:`json`,body:e.body===void 0?u({value:e.value}):c(e.body)});return}let n=await t(e),s=await r({zone:e.zone},n,{quiet:e.quiet});if(e.zoneId=s,e.body){let t=c(e.body),r=await o(`Updating`,async()=>n.send(R,{body:t,zone_id:s}));i(r,{successLabel:`Updated`});return}e.value===void 0&&(e.value=await p(`value`,`Controls HTTP/2 Prioritization behavior: - "off": Use browser default prioritization. - "on": Use Cloudflare's optimized prioritization. - "custom": Use custom prioritization rules. `,[`off`,`on`,`custom`]));let l=u({value:e.value}),d=await o(`Updating`,async()=>n.send(R,{body:l,zone_id:s}));i(d,{successLabel:`Updated`})})};var ye={method:`GET`,path:t=>e`/zones/${t.zone_id}/settings/h2_prioritization`};function be(e){return e.usage(`$0 zones h2-prioritization get
|
|
48
|
+
|
|
49
|
+
HTTP/2 Prioritization controls the order in which assets are delivered to browsers. Cloudflare's HTTP/2 Prioritization overrides the default browser prioritization order, improving the loading performance of web pages.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const xe={command:`get`,describe:`Get HTTP/2 Prioritization setting`,builder:be,handler:async e=>s({command:`zones h2-prioritization get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){a({command:`cf zones h2-prioritization get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/settings/h2_prioritization`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``)},bodyKind:`none`});return}let n=await t(e),s=await r({zone:e.zone},n,{quiet:e.quiet});e.zoneId=s;let c=await o(`Loading`,async()=>n.send(ye,{zone_id:s}));i(c,{successLabel:`Loaded`})})},Se={command:`h2-prioritization`,describe:`Operations for h2-prioritization`,builder:e=>e.command(ve).command(xe).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var Ce={method:`POST`,path:t=>e`/zones/${t.zone_id}/hold`,query:[`include_subdomains`]};function we(e){return e.usage(`$0 zones holds create
|
|
50
|
+
|
|
51
|
+
Enforce a zone hold on the zone, blocking the creation and activation of zones with this zone's hostname. Zone holds cannot be enabled on CDN-only zones.`).option(`include-subdomains`,{type:`boolean`,description:`If provided, the zone hold will extend to block any subdomain of the given zone, as well
|
|
52
|
+
as SSL4SaaS Custom Hostnames. For example, a zone hold on a zone with the hostname
|
|
53
|
+
'example.com' and include_subdomains=true will block 'example.com',
|
|
54
|
+
'staging.example.com', 'api.staging.example.com', etc.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const Te={command:`create`,describe:`Create Zone Hold`,builder:we,handler:async e=>s({command:`zones holds create`,classification:{safeFlags:[`include-subdomains`,`dry-run`]}},e,async()=>{let n={include_subdomains:e[`include-subdomains`]};if(e.dryRun){a({command:`cf zones holds create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/hold`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``)},query:n,bodyKind:`none`});return}let s=await t(e),c=await r({zone:e.zone},s,{quiet:e.quiet});e.zoneId=c;let l=await o(`Creating`,async()=>s.send(Ce,{zone_id:c,...n}));i(l,{successLabel:`Created`})})};var Ee={method:`DELETE`,path:t=>e`/zones/${t.zone_id}/hold`,query:[`hold_after`]};function De(e){return e.usage(`$0 zones holds delete
|
|
55
|
+
|
|
56
|
+
Stop enforcement of a zone hold on the zone, permanently or temporarily, allowing the creation and activation of zones with this zone's hostname. Existing zone holds can be removed from CDN-only zones when \`hold_after\` is not provided. Active holds are automatically disabled when a zone transitions to CDN-only mode.`).option(`hold-after`,{type:`string`,description:"If `hold_after` is provided, the hold will be temporarily disabled,\nthen automatically re-enabled by the system at the time specified\nin this RFC3339-formatted timestamp. Otherwise, the hold will be\ndisabled indefinitely. `hold_after` cannot be provided for CDN-only zones."}).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 Oe={command:`delete`,describe:`Remove Zone Hold`,builder:De,handler:async e=>s({command:`zones holds delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{let n={hold_after:e[`hold-after`]};if(e.dryRun){a({command:`cf zones holds delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/hold`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``)},query:n,bodyKind:`none`});return}let s=await t(e),c=await r({zone:e.zone},s,{quiet:e.quiet});if(e.zoneId=c,!await m({force:!!e.force})){process.stderr.write(`Aborted.
|
|
57
|
+
`);return}let l=await o(`Deleting`,async()=>s.send(Ee,{zone_id:c,...n}));i(l,{successLabel:`Deleted`})})};var z={method:`PATCH`,path:t=>e`/zones/${t.zone_id}/hold`,body:`json`};function ke(e){return e.usage("$0 zones holds edit\n\nUpdate the `hold_after` and/or `include_subdomains` values on an existing zone hold. The hold is enabled if the `hold_after` date-time value is in the past. Existing zone holds can be removed from CDN-only zones by setting `hold_after` to `null`. Other zone hold updates cannot be made on CDN-only zones. Active holds are automatically disabled when a zone transitions to CDN-only mode.").option(`hold-after`,{type:`string`,description:"If `hold_after` is provided and future-dated, the hold will be temporarily disabled,\nthen automatically re-enabled by the system at the time specified\nin this RFC3339-formatted timestamp. A past-dated `hold_after` value will have\nno effect on an existing, enabled hold. Providing an empty string will set its value\nto the current time. Providing `null` will disable the hold indefinitely."}).option(`include-subdomains`,{type:`boolean`,description:`If \`true\`, the zone hold will extend to block any subdomain of the given zone, as well
|
|
58
|
+
as SSL4SaaS Custom Hostnames. For example, a zone hold on a zone with the hostname
|
|
59
|
+
'example.com' and include_subdomains=true will block 'example.com',
|
|
60
|
+
'staging.example.com', 'api.staging.example.com', etc.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const Ae={command:`edit`,describe:`Update Zone Hold`,builder:ke,handler:async e=>s({command:`zones holds edit`,classification:{safeFlags:[`include-subdomains`,`dry-run`]}},e,async()=>{if(e.dryRun){a({command:`cf zones holds edit`,method:`PATCH`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/hold`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``)},bodyKind:`json`,body:e.body===void 0?u({hold_after:d(e[`hold-after`],`hold-after`,`text`),include_subdomains:e[`include-subdomains`]}):c(e.body)});return}let n=await t(e),s=await r({zone:e.zone},n,{quiet:e.quiet});if(e.zoneId=s,e.body){let t=c(e.body),r=await o(`Updating`,async()=>n.send(z,{body:t,zone_id:s}));i(r,{successLabel:`Updated`});return}let l=u({hold_after:d(e[`hold-after`],`hold-after`,`text`),include_subdomains:e[`include-subdomains`]}),f=await o(`Updating`,async()=>n.send(z,{body:l,zone_id:s}));i(f,{successLabel:`Updated`})})};var je={method:`GET`,path:t=>e`/zones/${t.zone_id}/hold`};function Me(e){return e.usage(`$0 zones holds get
|
|
61
|
+
|
|
62
|
+
Retrieve whether the zone is subject to a zone hold, and metadata about the hold.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const Ne={command:`get`,describe:`Get Zone Hold`,builder:Me,handler:async e=>s({command:`zones holds get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){a({command:`cf zones holds get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/hold`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``)},bodyKind:`none`});return}let n=await t(e),s=await r({zone:e.zone},n,{quiet:e.quiet});e.zoneId=s;let c=await o(`Loading`,async()=>n.send(je,{zone_id:s}));i(c,{successLabel:`Loaded`})})},Pe={command:`holds`,describe:`Operations for holds`,builder:e=>e.command(Te).command(Oe).command(Ae).command(Ne).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var B={method:`PATCH`,path:t=>e`/zones/${t.zone_id}/settings/image_resizing`,body:`json`};function Fe(e){return e.usage("$0 zones image-resizing edit\n\nSets the Image Transformations setting for a zone. Accepted values are `off`, `on`, `open`, and `latest`.").option(`value`,{type:`string`,description:`Controls Image Resizing behavior:
|
|
63
|
+
- "off": Feature disabled.
|
|
64
|
+
- "on": Resizing is enabled for same-zone images only.
|
|
65
|
+
- "open": Resizing is enabled for images from any origin.
|
|
66
|
+
- "latest": Resizing is enabled for same-zone images using the latest version.
|
|
67
|
+
`,choices:[`off`,`on`,`open`,`latest`]}).coerce(`value`,e=>d(e,`value`,`text`)).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const Ie={command:`edit`,describe:`Change Image Transformations setting`,builder:Fe,handler:async e=>s({command:`zones image-resizing edit`,classification:{safeFlags:[`value`,`dry-run`]}},e,async()=>{if(e.dryRun){a({command:`cf zones image-resizing edit`,method:`PATCH`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/settings/image_resizing`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``)},bodyKind:`json`,body:e.body===void 0?u({value:e.value}):c(e.body)});return}let n=await t(e),s=await r({zone:e.zone},n,{quiet:e.quiet});if(e.zoneId=s,e.body){let t=c(e.body),r=await o(`Updating`,async()=>n.send(B,{body:t,zone_id:s}));i(r,{successLabel:`Updated`});return}e.value===void 0&&(e.value=await p(`value`,`Controls Image Resizing behavior: - "off": Feature disabled. - "on": Resizing is enabled for same-zone images only. - "open": Resizing is enabled for images from any origin. - "latest": Resizing is enabled for same-zone images using the latest version. `,[`off`,`on`,`open`,`latest`]));let l=u({value:e.value}),d=await o(`Updating`,async()=>n.send(B,{body:l,zone_id:s}));i(d,{successLabel:`Updated`})})};var Le={method:`GET`,path:t=>e`/zones/${t.zone_id}/settings/image_resizing`};function Re(e){return e.usage("$0 zones image-resizing get\n\nGets the Image Transformations setting for a zone. Accepted values are `off`, `on`, `open`, and `latest`.").option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const ze={command:`get`,describe:`Get Image Transformations setting`,builder:Re,handler:async e=>s({command:`zones image-resizing get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){a({command:`cf zones image-resizing get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/settings/image_resizing`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``)},bodyKind:`none`});return}let n=await t(e),s=await r({zone:e.zone},n,{quiet:e.quiet});e.zoneId=s;let c=await o(`Loading`,async()=>n.send(Le,{zone_id:s}));i(c,{successLabel:`Loaded`})})},Be={command:`image-resizing`,describe:`Operations for image-resizing`,builder:e=>e.command(Ie).command(ze).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function Ve(e){return e.usage(`$0 zones list
|
|
68
|
+
|
|
69
|
+
Lists, searches, sorts, and filters your zones. Listing zones across more than 500 accounts is currently not allowed.`).option(`name`,{type:`string`,description:"A domain name. Optional filter operators can be provided to extend refine the search:\n * `equal` (default)\n * `not_equal`\n * `starts_with`\n * `ends_with`\n * `contains`\n * `starts_with_case_sensitive`\n * `ends_with_case_sensitive`\n * `contains_case_sensitive`"}).option(`status`,{type:`string`,description:`Specify a zone status to filter by.`,choices:[`initializing`,`pending`,`active`,`moved`]}).option(`type`,{type:`string`,description:`Zone types to filter by. Multiple types can be specified as a comma-separated list (e.g., ?type=full,partial,secondary). When this parameter is not provided, zones with type "internal" are excluded from the results.`}).option(`account-id`,{type:`string`,description:`Filter by an account ID.`}).option(`account-name`,{type:`string`,description:"An account Name. Optional filter operators can be provided to extend refine the search:\n * `equal` (default)\n * `not_equal`\n * `starts_with`\n * `ends_with`\n * `contains`\n * `starts_with_case_sensitive`\n * `ends_with_case_sensitive`\n * `contains_case_sensitive`"}).option(`page`,{type:`number`,description:`Page number of paginated results.`}).option(`per-page`,{type:`number`,description:`Number of zones per page.`}).option(`order`,{type:`string`,description:`Field to order zones by.`,choices:[`name`,`status`,`account.id`,`account.name`,`plan.id`]}).option(`direction`,{type:`string`,description:`Direction to order zones.`,choices:[`asc`,`desc`]}).option(`match`,{type:`string`,description:`Whether to match all search requirements or at least one (any).`,choices:[`any`,`all`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const He={command:`list`,describe:`List Zones`,builder:Ve,handler:async e=>s({command:`zones list`,classification:{safeFlags:[`status`,`order`,`direction`,`match`,`dry-run`]}},e,async()=>{let r={name:e.name,status:e.status,type:e.type,"account.id":e[`account-id`],"account.name":e[`account-name`],page:e.page,per_page:e[`per-page`],order:e.order,direction:e.direction,match:e.match};if(e.dryRun){a({command:`cf zones list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/zones`,pathParams:{},query:r,bodyKind:`none`});return}let s=await t(e),c=await o(`Loading`,async()=>s.send(n,r));i(c,{successLabel:`Loaded`})})};var V={method:`PATCH`,path:t=>e`/zones/${t.zone_id}/settings/origin_h2_max_streams`,body:`json`};function Ue(e){return e.usage("$0 zones origin-h2-max-streams edit\n\nOrigin H2 Max Streams configures the max number of concurrent requests that Cloudflare will send within the same connection when communicating with the origin server, if the origin supports it. Note that if your origin does not support H2 multiplexing, 5xx errors may be observed, particularly 520s. Also note that the default value is `100` for all plan types except Enterprise where it is `1`. `1` means that H2 multiplexing is disabled.").option(`value`,{type:`number`,description:`Value of the Origin H2 Max Streams Setting.`}).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 We={command:`edit`,describe:`Change Origin H2 Max Streams Setting`,builder:Ue,handler:async e=>s({command:`zones origin-h2-max-streams edit`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){a({command:`cf zones origin-h2-max-streams edit`,method:`PATCH`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/settings/origin_h2_max_streams`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``)},bodyKind:`json`,body:e.body===void 0?u({value:e.value}):c(e.body)});return}let n=await t(e),s=await r({zone:e.zone},n,{quiet:e.quiet});if(e.zoneId=s,e.body){let t=c(e.body),r=await o(`Updating`,async()=>n.send(V,{body:t,zone_id:s}));i(r,{successLabel:`Updated`});return}if(e.value===void 0)throw Error(`--value is required (or pass --body with this field set).`);let l=u({value:e.value}),d=await o(`Updating`,async()=>n.send(V,{body:l,zone_id:s}));i(d,{successLabel:`Updated`})})};var Ge={method:`GET`,path:t=>e`/zones/${t.zone_id}/settings/origin_h2_max_streams`};function Ke(e){return e.usage("$0 zones origin-h2-max-streams get\n\nOrigin H2 Max Streams configures the max number of concurrent requests that Cloudflare will send within the same connection when communicating with the origin server, if the origin supports it. Note that if your origin does not support H2 multiplexing, 5xx errors may be observed, particularly 520s. Also note that the default value is `100` for all plan types except Enterprise where it is `1`. `1` means that H2 multiplexing is disabled.").option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const qe={command:`get`,describe:`Get Origin H2 Max Streams Setting`,builder:Ke,handler:async e=>s({command:`zones origin-h2-max-streams get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){a({command:`cf zones origin-h2-max-streams get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/settings/origin_h2_max_streams`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``)},bodyKind:`none`});return}let n=await t(e),s=await r({zone:e.zone},n,{quiet:e.quiet});e.zoneId=s;let c=await o(`Loading`,async()=>n.send(Ge,{zone_id:s}));i(c,{successLabel:`Loaded`})})},Je={command:`origin-h2-max-streams`,describe:`Origin H2 Max Streams operations`,builder:e=>e.command(We).command(qe).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var H={method:`PATCH`,path:t=>e`/zones/${t.zone_id}/settings/origin_max_http_version`,body:`json`};function Ye(e){return e.usage(`$0 zones origin-max-http-version edit
|
|
70
|
+
|
|
71
|
+
Origin Max HTTP Setting Version sets the highest HTTP version Cloudflare will attempt to use with your origin. This setting allows Cloudflare to make HTTP/2 requests to your origin. (Refer to [Enable HTTP/2 to Origin](https://developers.cloudflare.com/cache/how-to/enable-http2-to-origin/), for more information.). The default value is "2" for all plan types except Enterprise where it is "1".`).option(`value`,{type:`string`,description:`Value of the Origin Max HTTP Version Setting.`,choices:[`2`,`1`]}).coerce(`value`,e=>d(e,`value`,`text`)).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const Xe={command:`edit`,describe:`Change Origin Max HTTP Version Setting`,builder:Ye,handler:async e=>s({command:`zones origin-max-http-version edit`,classification:{safeFlags:[`value`,`dry-run`]}},e,async()=>{if(e.dryRun){a({command:`cf zones origin-max-http-version edit`,method:`PATCH`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/settings/origin_max_http_version`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``)},bodyKind:`json`,body:e.body===void 0?u({value:e.value}):c(e.body)});return}let n=await t(e),s=await r({zone:e.zone},n,{quiet:e.quiet});if(e.zoneId=s,e.body){let t=c(e.body),r=await o(`Updating`,async()=>n.send(H,{body:t,zone_id:s}));i(r,{successLabel:`Updated`});return}e.value===void 0&&(e.value=await p(`value`,`Value of the Origin Max HTTP Version Setting.`,[`2`,`1`]));let l=u({value:e.value}),d=await o(`Updating`,async()=>n.send(H,{body:l,zone_id:s}));i(d,{successLabel:`Updated`})})};var Ze={method:`GET`,path:t=>e`/zones/${t.zone_id}/settings/origin_max_http_version`};function Qe(e){return e.usage(`$0 zones origin-max-http-version get
|
|
72
|
+
|
|
73
|
+
Origin Max HTTP Setting Version sets the highest HTTP version Cloudflare will attempt to use with your origin. This setting allows Cloudflare to make HTTP/2 requests to your origin. (Refer to [Enable HTTP/2 to Origin](https://developers.cloudflare.com/cache/how-to/enable-http2-to-origin/), for more information.). The default value is "2" for all plan types except Enterprise where it is "1".`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const $e={command:`get`,describe:`Get Origin Max HTTP Version Setting`,builder:Qe,handler:async e=>s({command:`zones origin-max-http-version get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){a({command:`cf zones origin-max-http-version get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/settings/origin_max_http_version`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``)},bodyKind:`none`});return}let n=await t(e),s=await r({zone:e.zone},n,{quiet:e.quiet});e.zoneId=s;let c=await o(`Loading`,async()=>n.send(Ze,{zone_id:s}));i(c,{successLabel:`Loaded`})})},et={command:`origin-max-http-version`,describe:`Origin Max Http Version operations`,builder:e=>e.command(Xe).command($e).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var tt={method:`DELETE`,path:t=>e`/zones/${t.zone_id}/settings/origin_tls_compliance_modes`};function nt(e){return e.usage(`$0 zones origin-tls-compliance-modes delete
|
|
74
|
+
|
|
75
|
+
Delete the Origin TLS Compliance Modes setting for the zone, removing any configured compliance constraint. After deletion, Cloudflare's default behavior applies (no compliance filtering of the key-exchange algorithm list sent to the origin).`).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 rt={command:`delete`,describe:`Delete Origin TLS Compliance Modes setting`,builder:nt,handler:async e=>s({command:`zones origin-tls-compliance-modes delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{if(e.dryRun){a({command:`cf zones origin-tls-compliance-modes delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/settings/origin_tls_compliance_modes`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``)},bodyKind:`none`});return}let n=await t(e),s=await r({zone:e.zone},n,{quiet:e.quiet});if(e.zoneId=s,!await m({force:!!e.force})){process.stderr.write(`Aborted.
|
|
76
|
+
`);return}let c=await o(`Deleting`,async()=>n.send(tt,{zone_id:s}));i(c,{successLabel:`Deleted`})})};var U={method:`PATCH`,path:t=>e`/zones/${t.zone_id}/settings/origin_tls_compliance_modes`,body:`json`};function it(e){return e.usage('$0 zones origin-tls-compliance-modes edit\n\nUpdate the set of TLS compliance modes for the zone. PATCH performs a full replace of the modes list, not a merge — the request body is treated as the complete new list, and any modes not present in it are removed. (To remove a single mode from an existing configuration, send the updated list without it.) The request body must be of the form `{"value": ["fips", "pqh"]}`. Currently supported modes are `fips` and `pqh`; an empty list clears the constraint. Future modes (e.g. `cnsa2`) may be added; clients should treat unknown values as opaque strings. Invalid mode values are rejected with a 4xx response.').option(`value`,{type:`string`,array:!0,description:"List of TLS compliance modes that constrain the key-exchange algorithms Cloudflare may use when establishing the TLS connection to the zone's origin. Currently supported values are `fips` (FIPS-approved curves) and `pqh` (post-quantum hybrid). Future modes (e.g. `cnsa2`) may be added; clients should treat unknown values as opaque strings. Multiple modes are combined as the intersection of their permitted algorithm lists; selections whose intersection is empty are rejected. An empty list clears the constraint."}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const at={command:`edit`,describe:`Change Origin TLS Compliance Modes setting`,builder:it,handler:async e=>s({command:`zones origin-tls-compliance-modes edit`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){a({command:`cf zones origin-tls-compliance-modes edit`,method:`PATCH`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/settings/origin_tls_compliance_modes`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``)},bodyKind:`json`,body:e.body===void 0?u({value:e.value}):c(e.body)});return}let n=await t(e),s=await r({zone:e.zone},n,{quiet:e.quiet});if(e.zoneId=s,e.body){let t=c(e.body),r=await o(`Updating`,async()=>n.send(U,{body:t,zone_id:s}));i(r,{successLabel:`Updated`});return}if(e.value===void 0)throw Error(`--value is required (or pass --body with this field set).`);let l=u({value:e.value}),d=await o(`Updating`,async()=>n.send(U,{body:l,zone_id:s}));i(d,{successLabel:`Updated`})})};var ot={method:`GET`,path:t=>e`/zones/${t.zone_id}/settings/origin_tls_compliance_modes`};function st(e){return e.usage("$0 zones origin-tls-compliance-modes get\n\nOrigin TLS Compliance Modes constrains the set of TLS key-exchange algorithms Cloudflare may use when establishing the TLS connection to the zone's origin. The value is a list of named compliance modes (currently `fips` and `pqh`). Multiple modes are combined as the intersection of their permitted algorithm lists. An empty list (or no rule configured) means no compliance constraint is applied.").option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const ct={command:`get`,describe:`Get Origin TLS Compliance Modes setting`,builder:st,handler:async e=>s({command:`zones origin-tls-compliance-modes get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){a({command:`cf zones origin-tls-compliance-modes get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/settings/origin_tls_compliance_modes`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``)},bodyKind:`none`});return}let n=await t(e),s=await r({zone:e.zone},n,{quiet:e.quiet});e.zoneId=s;let c=await o(`Loading`,async()=>n.send(ot,{zone_id:s}));i(c,{successLabel:`Loaded`})})};var W={method:`PUT`,path:t=>e`/zones/${t.zone_id}/settings/origin_tls_compliance_modes`,body:`json`};function lt(e){return e.usage('$0 zones origin-tls-compliance-modes update\n\nReplace the entire set of TLS compliance modes for the zone with the list provided in the request body. PUT performs a full replace, not a merge — any modes not present in the request body are removed. The request body must be of the form `{"value": ["fips", "pqh"]}`. Currently supported modes are `fips` and `pqh`; an empty list clears the constraint. Future modes (e.g. `cnsa2`) may be added; clients should treat unknown values as opaque strings. Invalid mode values are rejected with a 4xx response.').option(`value`,{type:`string`,array:!0,description:"List of TLS compliance modes that constrain the key-exchange algorithms Cloudflare may use when establishing the TLS connection to the zone's origin. Currently supported values are `fips` (FIPS-approved curves) and `pqh` (post-quantum hybrid). Future modes (e.g. `cnsa2`) may be added; clients should treat unknown values as opaque strings. Multiple modes are combined as the intersection of their permitted algorithm lists; selections whose intersection is empty are rejected. An empty list clears the constraint."}).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 ut={command:`update`,describe:`Replace Origin TLS Compliance Modes setting`,builder:lt,handler:async e=>s({command:`zones origin-tls-compliance-modes update`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){a({command:`cf zones origin-tls-compliance-modes update`,method:`PUT`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/settings/origin_tls_compliance_modes`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``)},bodyKind:`json`,body:e.body===void 0?u({value:e.value}):c(e.body)});return}let n=await t(e),s=await r({zone:e.zone},n,{quiet:e.quiet});if(e.zoneId=s,e.body){let t=c(e.body),r=await o(`Updating`,async()=>n.send(W,{body:t,zone_id:s}));i(r,{successLabel:`Updated`});return}if(e.value===void 0)throw Error(`--value is required (or pass --body with this field set).`);let l=u({value:e.value}),d=await o(`Updating`,async()=>n.send(W,{body:l,zone_id:s}));i(d,{successLabel:`Updated`})})},dt={command:`origin-tls-compliance-modes`,describe:`Manage zone Origin TLS Compliance Modes setting`,builder:e=>e.command(rt).command(at).command(ct).command(ut).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var ft={method:`GET`,path:t=>e`/zones/${t.zone_id}/available_plans/${t.plan_identifier}`};function pt(e){return e.usage(`$0 zones plans get <plan-identifier>
|
|
77
|
+
|
|
78
|
+
Details of the available plan that the zone can subscribe to.`).positional(`plan-identifier`,{type:`string`,description:`Identifier`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const mt={command:`get <plan-identifier>`,describe:`Available Plan Details`,builder:pt,handler:async e=>s({command:`zones plans get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){a({command:`cf zones plans get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/available_plans/${e[`plan-identifier`]==null?`<plan-identifier>`:encodeURIComponent(String(e[`plan-identifier`]))}`,pathParams:{"plan-identifier":String(e[`plan-identifier`]??``),"zone-id":String(e.zone??e[`zone-id`]??``)},bodyKind:`none`});return}let n=await t(e),s=await r({zone:e.zone},n,{quiet:e.quiet});e.zoneId=s;let c=await o(`Loading`,async()=>n.send(ft,{zone_id:s,plan_identifier:e[`plan-identifier`]}));i(c,{successLabel:`Loaded`})})};var ht={method:`GET`,path:t=>e`/zones/${t.zone_id}/available_plans`};function gt(e){return e.usage(`$0 zones plans list
|
|
79
|
+
|
|
80
|
+
Lists available plans the zone can subscribe to.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const _t={command:`list`,describe:`List Available Plans`,builder:gt,handler:async e=>s({command:`zones plans list`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){a({command:`cf zones plans list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/available_plans`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``)},bodyKind:`none`});return}let n=await t(e),s=await r({zone:e.zone},n,{quiet:e.quiet});e.zoneId=s;let c=await o(`Loading`,async()=>n.send(ht,{zone_id:s}));i(c,{successLabel:`Loaded`})})},vt={command:`plans`,describe:`Operations for plans`,builder:e=>e.command(mt).command(_t).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var yt={method:`GET`,path:t=>e`/zones/${t.zone_id}/available_rate_plans`};function bt(e){return e.usage(`$0 zones rate-plans get
|
|
81
|
+
|
|
82
|
+
Lists all rate plans the zone can subscribe to.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const xt={command:`get`,describe:`List Available Rate Plans`,builder:bt,handler:async e=>s({command:`zones rate-plans get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){a({command:`cf zones rate-plans get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/available_rate_plans`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``)},bodyKind:`none`});return}let n=await t(e),s=await r({zone:e.zone},n,{quiet:e.quiet});e.zoneId=s;let c=await o(`Loading`,async()=>n.send(yt,{zone_id:s}));i(c,{successLabel:`Loaded`})})},St={command:`rate-plans`,describe:`Operations for rate-plans`,builder:e=>e.command(xt).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var G={method:`PATCH`,path:t=>e`/zones/${t.zone_id}/settings/rum`,body:`json`};function Ct(e){return e.usage(`$0 zones rum edit
|
|
83
|
+
|
|
84
|
+
Toggles RUM on/off for an existing zone.`).option(`value`,{type:`string`,description:`Value can either be On or Off.`}).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 wt={command:`edit`,describe:`Toggle RUM on/off for a zone`,builder:Ct,handler:async e=>s({command:`zones rum edit`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){a({command:`cf zones rum edit`,method:`PATCH`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/settings/rum`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``)},bodyKind:`json`,body:e.body===void 0?u({value:d(e.value,`value`,`text`)}):c(e.body)});return}let n=await t(e),s=await r({zone:e.zone},n,{quiet:e.quiet});if(e.zoneId=s,e.body){let t=c(e.body),r=await o(`Updating`,async()=>n.send(G,{body:t,zone_id:s}));i(r,{successLabel:`Updated`});return}let l=u({value:d(e.value,`value`,`text`)}),f=await o(`Updating`,async()=>n.send(G,{body:l,zone_id:s}));i(f,{successLabel:`Updated`})})};var Tt={method:`GET`,path:t=>e`/zones/${t.zone_id}/settings/rum`};function Et(e){return e.usage(`$0 zones rum get
|
|
85
|
+
|
|
86
|
+
Retrieves RUM status for a zone.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const Dt={command:`get`,describe:`Get RUM status for a zone`,builder:Et,handler:async e=>s({command:`zones rum get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){a({command:`cf zones rum get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/settings/rum`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``)},bodyKind:`none`});return}let n=await t(e),s=await r({zone:e.zone},n,{quiet:e.quiet});e.zoneId=s;let c=await o(`Loading`,async()=>n.send(Tt,{zone_id:s}));i(c,{successLabel:`Loaded`})})},Ot={command:`rum`,describe:`Rum operations`,builder:e=>e.command(wt).command(Dt).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var K={method:`PATCH`,path:t=>e`/zones/${t.zone_id}/settings/${t.setting_id}`,body:`json`};function kt(e){return e.usage(`$0 zones settings edit <setting-id>
|
|
87
|
+
|
|
88
|
+
Updates a single zone setting by the identifier`).positional(`setting-id`,{type:`string`,description:`Setting name`,demandOption:!0}).option(`enabled`,{type:`boolean`,description:`ssl-recommender enrollment setting.`}).option(`value-enabled`,{type:`boolean`,description:`Whether the feature is enabled or not.`}).option(`value-pool-id`,{type:`string`,description:`Egress pool id which refers to a grouping of dedicated egress IPs through which Cloudflare will connect to origin.`}).option(`value-cache-by-device-type`,{type:`boolean`,description:`Indicates whether or not [cache by device type](https://developers.cloudflare.com/automatic-platform-optimization/reference/cache-device-type/) is enabled.`}).option(`value-cf`,{type:`boolean`,description:`Indicates whether or not Cloudflare proxy is enabled.`}).option(`value-hostnames`,{type:`string`,array:!0,description:`An array of hostnames where Automatic Platform Optimization for WordPress is activated.`}).option(`value-wordpress`,{type:`boolean`,description:`Indicates whether or not site is powered by WordPress.`}).option(`value-wp-plugin`,{type:`boolean`,description:`Indicates whether or not [Cloudflare for WordPress plugin](https://wordpress.org/plugins/cloudflare/) is installed.`}).option(`value-strict-transport-security-enabled`,{type:`boolean`,description:`Whether or not strict transport security is enabled.`}).option(`value-strict-transport-security-include-subdomains`,{type:`boolean`,description:`Include all subdomains for strict transport security.`}).option(`value-strict-transport-security-max-age`,{type:`number`,description:`Max age in seconds of the strict transport security.`}).option(`value-strict-transport-security-nosniff`,{type:`boolean`,description:`Whether or not to include 'X-Content-Type-Options: nosniff' header.`}).option(`value-strict-transport-security-preload`,{type:`boolean`,description:`Enable automatic preload of the HSTS configuration.`}).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(`value-pool-id`,[`value-cache-by-device-type`,`value-cf`,`value-hostnames`,`value-wordpress`,`value-wp-plugin`,`value-strict-transport-security-include-subdomains`,`value-strict-transport-security-max-age`,`value-strict-transport-security-nosniff`,`value-strict-transport-security-preload`]).conflicts(`value-cache-by-device-type`,[`value-pool-id`,`value-strict-transport-security-include-subdomains`,`value-strict-transport-security-max-age`,`value-strict-transport-security-nosniff`,`value-strict-transport-security-preload`]).implies(`value-cache-by-device-type`,[`value-strict-transport-security-enabled`,`value-cf`,`value-wordpress`,`value-wp-plugin`,`value-hostnames`]).conflicts(`value-cf`,[`value-pool-id`,`value-strict-transport-security-include-subdomains`,`value-strict-transport-security-max-age`,`value-strict-transport-security-nosniff`,`value-strict-transport-security-preload`]).implies(`value-cf`,[`value-strict-transport-security-enabled`,`value-wordpress`,`value-wp-plugin`,`value-hostnames`,`value-cache-by-device-type`]).conflicts(`value-hostnames`,[`value-pool-id`,`value-strict-transport-security-include-subdomains`,`value-strict-transport-security-max-age`,`value-strict-transport-security-nosniff`,`value-strict-transport-security-preload`]).implies(`value-hostnames`,[`value-strict-transport-security-enabled`,`value-cf`,`value-wordpress`,`value-wp-plugin`,`value-cache-by-device-type`]).conflicts(`value-wordpress`,[`value-pool-id`,`value-strict-transport-security-include-subdomains`,`value-strict-transport-security-max-age`,`value-strict-transport-security-nosniff`,`value-strict-transport-security-preload`]).implies(`value-wordpress`,[`value-strict-transport-security-enabled`,`value-cf`,`value-wp-plugin`,`value-hostnames`,`value-cache-by-device-type`]).conflicts(`value-wp-plugin`,[`value-pool-id`,`value-strict-transport-security-include-subdomains`,`value-strict-transport-security-max-age`,`value-strict-transport-security-nosniff`,`value-strict-transport-security-preload`]).implies(`value-wp-plugin`,[`value-strict-transport-security-enabled`,`value-cf`,`value-wordpress`,`value-hostnames`,`value-cache-by-device-type`]).implies(`value-strict-transport-security-enabled`,[`value-cf`,`value-wordpress`,`value-wp-plugin`,`value-hostnames`,`value-cache-by-device-type`]).conflicts(`value-strict-transport-security-include-subdomains`,[`value-pool-id`,`value-cache-by-device-type`,`value-cf`,`value-hostnames`,`value-wordpress`,`value-wp-plugin`]).conflicts(`value-strict-transport-security-max-age`,[`value-pool-id`,`value-cache-by-device-type`,`value-cf`,`value-hostnames`,`value-wordpress`,`value-wp-plugin`]).conflicts(`value-strict-transport-security-nosniff`,[`value-pool-id`,`value-cache-by-device-type`,`value-cf`,`value-hostnames`,`value-wordpress`,`value-wp-plugin`]).conflicts(`value-strict-transport-security-preload`,[`value-pool-id`,`value-cache-by-device-type`,`value-cf`,`value-hostnames`,`value-wordpress`,`value-wp-plugin`])}const At={command:`edit <setting-id>`,describe:`Edit zone setting`,builder:kt,handler:async e=>s({command:`zones settings edit`,classification:{safeFlags:[`enabled`,`value-enabled`,`value-cache-by-device-type`,`value-cf`,`value-wordpress`,`value-wp-plugin`,`value-strict-transport-security-enabled`,`value-strict-transport-security-include-subdomains`,`value-strict-transport-security-nosniff`,`value-strict-transport-security-preload`,`dry-run`]}},e,async()=>{if(e.dryRun){a({command:`cf zones settings edit`,method:`PATCH`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/settings/${e[`setting-id`]==null?`<setting-id>`:encodeURIComponent(String(e[`setting-id`]))}`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``),"setting-id":String(e[`setting-id`]??``)},bodyKind:`json`,body:e.body===void 0?u({enabled:e.enabled,value:{enabled:e[`value-enabled`],pool_id:d(e[`value-pool-id`],`value-pool-id`,`text`),cache_by_device_type:e[`value-cache-by-device-type`],cf:e[`value-cf`],hostnames:e[`value-hostnames`],wordpress:e[`value-wordpress`],wp_plugin:e[`value-wp-plugin`],strict_transport_security:{enabled:e[`value-strict-transport-security-enabled`],include_subdomains:e[`value-strict-transport-security-include-subdomains`],max_age:e[`value-strict-transport-security-max-age`],nosniff:e[`value-strict-transport-security-nosniff`],preload:e[`value-strict-transport-security-preload`]}}}):c(e.body)});return}let n=await t(e),s=await r({zone:e.zone},n,{quiet:e.quiet});if(e.zoneId=s,e.body){let t=c(e.body),r=await o(`Updating`,async()=>n.send(K,{body:t,zone_id:s,setting_id:e[`setting-id`]}));i(r,{successLabel:`Updated`});return}let l=u({enabled:e.enabled,value:{enabled:e[`value-enabled`],pool_id:d(e[`value-pool-id`],`value-pool-id`,`text`),cache_by_device_type:e[`value-cache-by-device-type`],cf:e[`value-cf`],hostnames:e[`value-hostnames`],wordpress:e[`value-wordpress`],wp_plugin:e[`value-wp-plugin`],strict_transport_security:{enabled:e[`value-strict-transport-security-enabled`],include_subdomains:e[`value-strict-transport-security-include-subdomains`],max_age:e[`value-strict-transport-security-max-age`],nosniff:e[`value-strict-transport-security-nosniff`],preload:e[`value-strict-transport-security-preload`]}}}),f=await o(`Updating`,async()=>n.send(K,{body:l,zone_id:s,setting_id:e[`setting-id`]}));i(f,{successLabel:`Updated`})})};var jt={method:`GET`,path:t=>e`/zones/${t.zone_id}/settings/${t.setting_id}`};function Mt(e){return e.usage(`$0 zones settings get <setting-id>
|
|
89
|
+
|
|
90
|
+
Fetch a single zone setting by name`).positional(`setting-id`,{type:`string`,description:`Setting name`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const Nt={command:`get <setting-id>`,describe:`Get zone setting`,builder:Mt,handler:async e=>s({command:`zones settings get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){a({command:`cf zones settings get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/settings/${e[`setting-id`]==null?`<setting-id>`:encodeURIComponent(String(e[`setting-id`]))}`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``),"setting-id":String(e[`setting-id`]??``)},bodyKind:`none`});return}let n=await t(e),s=await r({zone:e.zone},n,{quiet:e.quiet});e.zoneId=s;let c=await o(`Loading`,async()=>n.send(jt,{zone_id:s,setting_id:e[`setting-id`]}));i(c,{successLabel:`Loaded`})})},Pt={command:`settings`,describe:`Operations for settings`,builder:e=>e.command(At).command(Nt).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var q={method:`PATCH`,path:t=>e`/zones/${t.zone_id}/settings/speed_brain`,body:`json`};function Ft(e){return e.usage(`$0 zones speed-brain edit
|
|
91
|
+
|
|
92
|
+
Speed Brain lets compatible browsers speculate on content which can be prefetched or preloaded, making website navigation faster. Refer to the Cloudflare Speed Brain documentation for more information.`).option(`value`,{type:`string`,description:`Whether the feature is enabled or disabled.`,choices:[`on`,`off`]}).coerce(`value`,e=>d(e,`value`,`text`)).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const It={command:`edit`,describe:`Change Cloudflare Speed Brain setting`,builder:Ft,handler:async e=>s({command:`zones speed-brain edit`,classification:{safeFlags:[`value`,`dry-run`]}},e,async()=>{if(e.dryRun){a({command:`cf zones speed-brain edit`,method:`PATCH`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/settings/speed_brain`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``)},bodyKind:`json`,body:e.body===void 0?u({value:e.value}):c(e.body)});return}let n=await t(e),s=await r({zone:e.zone},n,{quiet:e.quiet});if(e.zoneId=s,e.body){let t=c(e.body),r=await o(`Updating`,async()=>n.send(q,{body:t,zone_id:s}));i(r,{successLabel:`Updated`});return}e.value===void 0&&(e.value=await p(`value`,`Whether the feature is enabled or disabled.`,[`on`,`off`]));let l=u({value:e.value}),d=await o(`Updating`,async()=>n.send(q,{body:l,zone_id:s}));i(d,{successLabel:`Updated`})})};var Lt={method:`GET`,path:t=>e`/zones/${t.zone_id}/settings/speed_brain`};function Rt(e){return e.usage(`$0 zones speed-brain get
|
|
93
|
+
|
|
94
|
+
Speed Brain lets compatible browsers speculate on content which can be prefetched or preloaded, making website navigation faster. Refer to the Cloudflare Speed Brain documentation for more information.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const zt={command:`get`,describe:`Get Cloudflare Speed Brain setting`,builder:Rt,handler:async e=>s({command:`zones speed-brain get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){a({command:`cf zones speed-brain get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/settings/speed_brain`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``)},bodyKind:`none`});return}let n=await t(e),s=await r({zone:e.zone},n,{quiet:e.quiet});e.zoneId=s;let c=await o(`Loading`,async()=>n.send(Lt,{zone_id:s}));i(c,{successLabel:`Loaded`})})},Bt={command:`speed-brain`,describe:`Speed Brain operations`,builder:e=>e.command(It).command(zt).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var J={method:`POST`,path:t=>e`/zones/${t.zone_id}/subscription`,body:`json`};function Vt(e){return e.usage(`$0 zones subscriptions create
|
|
95
|
+
|
|
96
|
+
Create a zone subscription, either plan or add-ons.`).option(`app-install-id`,{type:`string`,description:`app install id.`}).option(`component-values`,{type:`string`,description:`Configurable component values for the subscription. Provide as a JSON array of objects or @path/to/file.json.`}).option(`frequency`,{type:`string`,description:`How often the subscription is renewed automatically.`,choices:[`weekly`,`monthly`,`quarterly`,`yearly`]}).coerce(`frequency`,e=>d(e,`frequency`,`text`)).option(`rate-plan-currency`,{type:`string`,description:`The currency applied to the rate plan subscription.`}).option(`rate-plan-externally-managed`,{type:`boolean`,description:`Whether this rate plan is managed externally from Cloudflare.`}).option(`rate-plan-id`,{type:`string`,description:`The ID of the rate plan.`}).option(`rate-plan-is-contract`,{type:`boolean`,description:`Whether a rate plan is enterprise-based (or newly adopted term contract).`}).option(`rate-plan-public-name`,{type:`string`,description:`The full name of the rate plan.`}).option(`rate-plan-scope`,{type:`string`,description:`The scope that this rate plan applies to.`}).option(`rate-plan-sets`,{type:`string`,array:!0,description:`The list of sets this rate plan applies to. Returns array of strings.`}).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 Ht={command:`create`,describe:`Create Zone Subscription`,builder:Vt,handler:async e=>s({command:`zones subscriptions create`,classification:{safeFlags:[`frequency`,`rate-plan-externally-managed`,`rate-plan-is-contract`,`dry-run`]}},e,async()=>{if(e.dryRun){a({command:`cf zones subscriptions create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/subscription`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``)},bodyKind:`json`,body:e.body===void 0?u({app:{install_id:d(e[`app-install-id`],`app-install-id`,`text`)},component_values:l(e[`component-values`],`component-values`),frequency:e.frequency,rate_plan:{currency:d(e[`rate-plan-currency`],`rate-plan-currency`,`text`),externally_managed:e[`rate-plan-externally-managed`],id:d(e[`rate-plan-id`],`rate-plan-id`,`text`),is_contract:e[`rate-plan-is-contract`],public_name:d(e[`rate-plan-public-name`],`rate-plan-public-name`,`text`),scope:d(e[`rate-plan-scope`],`rate-plan-scope`,`text`),sets:e[`rate-plan-sets`]}}):c(e.body)});return}let n=await t(e),s=await r({zone:e.zone},n,{quiet:e.quiet});if(e.zoneId=s,e.body){let t=c(e.body),r=await o(`Creating`,async()=>n.send(J,{body:t,zone_id:s}));i(r,{successLabel:`Created`});return}let f=u({app:{install_id:d(e[`app-install-id`],`app-install-id`,`text`)},component_values:l(e[`component-values`],`component-values`),frequency:e.frequency,rate_plan:{currency:d(e[`rate-plan-currency`],`rate-plan-currency`,`text`),externally_managed:e[`rate-plan-externally-managed`],id:d(e[`rate-plan-id`],`rate-plan-id`,`text`),is_contract:e[`rate-plan-is-contract`],public_name:d(e[`rate-plan-public-name`],`rate-plan-public-name`,`text`),scope:d(e[`rate-plan-scope`],`rate-plan-scope`,`text`),sets:e[`rate-plan-sets`]}}),p=await o(`Creating`,async()=>n.send(J,{body:f,zone_id:s}));i(p,{successLabel:`Created`})})};var Ut={method:`DELETE`,path:t=>e`/zones/${t.zone_id}/subscription`};function Wt(e){return e.usage(`$0 zones subscriptions delete
|
|
97
|
+
|
|
98
|
+
Deletes a zone's subscription.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`force`,{type:`boolean`,alias:`f`,description:`Skip confirmation (useful in scripts and CI)`,default:!1})}const Gt={command:`delete`,describe:`Delete Zone Subscription`,builder:Wt,handler:async e=>s({command:`zones subscriptions delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{if(e.dryRun){a({command:`cf zones subscriptions delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/subscription`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``)},bodyKind:`none`});return}let n=await t(e),s=await r({zone:e.zone},n,{quiet:e.quiet});if(e.zoneId=s,!await m({force:!!e.force})){process.stderr.write(`Aborted.
|
|
99
|
+
`);return}let c=await o(`Deleting`,async()=>n.send(Ut,{zone_id:s}));i(c,{successLabel:`Deleted`})})};var Kt={method:`GET`,path:t=>e`/zones/${t.zone_id}/subscription`};function qt(e){return e.usage(`$0 zones subscriptions get
|
|
100
|
+
|
|
101
|
+
Lists zone subscription details.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const Jt={command:`get`,describe:`Zone Subscription Details`,builder:qt,handler:async e=>s({command:`zones subscriptions get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){a({command:`cf zones subscriptions get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/subscription`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``)},bodyKind:`none`});return}let n=await t(e),s=await r({zone:e.zone},n,{quiet:e.quiet});e.zoneId=s;let c=await o(`Loading`,async()=>n.send(Kt,{zone_id:s}));i(c,{successLabel:`Loaded`})})};var Y={method:`PUT`,path:t=>e`/zones/${t.zone_id}/subscription`,body:`json`};function Yt(e){return e.usage(`$0 zones subscriptions update
|
|
102
|
+
|
|
103
|
+
Updates zone subscriptions, either plan or add-ons.`).option(`app-install-id`,{type:`string`,description:`app install id.`}).option(`component-values`,{type:`string`,description:`Configurable component values for the subscription. Provide as a JSON array of objects or @path/to/file.json.`}).option(`frequency`,{type:`string`,description:`How often the subscription is renewed automatically.`,choices:[`weekly`,`monthly`,`quarterly`,`yearly`]}).coerce(`frequency`,e=>d(e,`frequency`,`text`)).option(`rate-plan-currency`,{type:`string`,description:`The currency applied to the rate plan subscription.`}).option(`rate-plan-externally-managed`,{type:`boolean`,description:`Whether this rate plan is managed externally from Cloudflare.`}).option(`rate-plan-id`,{type:`string`,description:`The ID of the rate plan.`}).option(`rate-plan-is-contract`,{type:`boolean`,description:`Whether a rate plan is enterprise-based (or newly adopted term contract).`}).option(`rate-plan-public-name`,{type:`string`,description:`The full name of the rate plan.`}).option(`rate-plan-scope`,{type:`string`,description:`The scope that this rate plan applies to.`}).option(`rate-plan-sets`,{type:`string`,array:!0,description:`The list of sets this rate plan applies to. Returns array of strings.`}).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 Xt={command:`update`,describe:`Update Zone Subscription`,builder:Yt,handler:async e=>s({command:`zones subscriptions update`,classification:{safeFlags:[`frequency`,`rate-plan-externally-managed`,`rate-plan-is-contract`,`dry-run`]}},e,async()=>{if(e.dryRun){a({command:`cf zones subscriptions update`,method:`PUT`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/subscription`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``)},bodyKind:`json`,body:e.body===void 0?u({app:{install_id:d(e[`app-install-id`],`app-install-id`,`text`)},component_values:l(e[`component-values`],`component-values`),frequency:e.frequency,rate_plan:{currency:d(e[`rate-plan-currency`],`rate-plan-currency`,`text`),externally_managed:e[`rate-plan-externally-managed`],id:d(e[`rate-plan-id`],`rate-plan-id`,`text`),is_contract:e[`rate-plan-is-contract`],public_name:d(e[`rate-plan-public-name`],`rate-plan-public-name`,`text`),scope:d(e[`rate-plan-scope`],`rate-plan-scope`,`text`),sets:e[`rate-plan-sets`]}}):c(e.body)});return}let n=await t(e),s=await r({zone:e.zone},n,{quiet:e.quiet});if(e.zoneId=s,e.body){let t=c(e.body),r=await o(`Updating`,async()=>n.send(Y,{body:t,zone_id:s}));i(r,{successLabel:`Updated`});return}let f=u({app:{install_id:d(e[`app-install-id`],`app-install-id`,`text`)},component_values:l(e[`component-values`],`component-values`),frequency:e.frequency,rate_plan:{currency:d(e[`rate-plan-currency`],`rate-plan-currency`,`text`),externally_managed:e[`rate-plan-externally-managed`],id:d(e[`rate-plan-id`],`rate-plan-id`,`text`),is_contract:e[`rate-plan-is-contract`],public_name:d(e[`rate-plan-public-name`],`rate-plan-public-name`,`text`),scope:d(e[`rate-plan-scope`],`rate-plan-scope`,`text`),sets:e[`rate-plan-sets`]}}),p=await o(`Updating`,async()=>n.send(Y,{body:f,zone_id:s}));i(p,{successLabel:`Updated`})})},Zt={command:`subscriptions`,describe:`Operations for subscriptions`,builder:e=>e.command(Ht).command(Gt).command(Jt).command(Xt).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var X={method:`PATCH`,path:t=>e`/zones/${t.zone_id}/settings/transformations_allowed_origins`,body:`json`};function Qt(e){return e.usage(`$0 zones transformations-allowed-origins edit
|
|
104
|
+
|
|
105
|
+
Media Transformations Allowed Origins restricts transformations for images and video served through Cloudflare's network to requests originating from specified domains. Refer to the Image Transformations and Video Transformations documentation for more information.`).option(`value`,{type:`string`,description:`Comma-separated list of allowed origin domains for image and video transformations.
|
|
106
|
+
Use "*" to allow all origins (default).
|
|
107
|
+
`}).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 $t={command:`edit`,describe:`Change Image Transformations Allowed Origins setting`,builder:Qt,handler:async e=>s({command:`zones transformations-allowed-origins edit`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){a({command:`cf zones transformations-allowed-origins edit`,method:`PATCH`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/settings/transformations_allowed_origins`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``)},bodyKind:`json`,body:e.body===void 0?u({value:d(e.value,`value`,`text`)}):c(e.body)});return}let n=await t(e),s=await r({zone:e.zone},n,{quiet:e.quiet});if(e.zoneId=s,e.body){let t=c(e.body),r=await o(`Updating`,async()=>n.send(X,{body:t,zone_id:s}));i(r,{successLabel:`Updated`});return}e.value===void 0&&(e.value=await f(`value`,`Comma-separated list of allowed origin domains for image and video transformations. Use "*" to allow all origins (default). `));let l=u({value:d(e.value,`value`,`text`)}),p=await o(`Updating`,async()=>n.send(X,{body:l,zone_id:s}));i(p,{successLabel:`Updated`})})};var en={method:`GET`,path:t=>e`/zones/${t.zone_id}/settings/transformations_allowed_origins`};function tn(e){return e.usage(`$0 zones transformations-allowed-origins get
|
|
108
|
+
|
|
109
|
+
Media Transformations Allowed Origins restricts transformations for images and video served through Cloudflare's network to requests originating from specified domains. Refer to the Image Transformations and Video Transformations documentation for more information.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const nn={command:`get`,describe:`Get Image Transformations Allowed Origins setting`,builder:tn,handler:async e=>s({command:`zones transformations-allowed-origins get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){a({command:`cf zones transformations-allowed-origins get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/settings/transformations_allowed_origins`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``)},bodyKind:`none`});return}let n=await t(e),s=await r({zone:e.zone},n,{quiet:e.quiet});e.zoneId=s;let c=await o(`Loading`,async()=>n.send(en,{zone_id:s}));i(c,{successLabel:`Loaded`})})},Z={command:`transformations-allowed-origins`,describe:`Operations for transformations-allowed-origins`,builder:e=>e.command($t).command(nn).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var Q={method:`PATCH`,path:t=>e`/zones/${t.zone_id}/settings/transformations_c2pa`,body:`json`};function rn(e){return e.usage(`$0 zones transformations-c2pa edit
|
|
110
|
+
|
|
111
|
+
C2PA (Coalition for Content Provenance and Authenticity) signing adds cryptographic metadata to images processed through Cloudflare Image Transformations, enabling verification of image authenticity and provenance.`).option(`value`,{type:`string`,description:`Whether C2PA signing is enabled for image transformations.`,choices:[`off`,`on`]}).coerce(`value`,e=>d(e,`value`,`text`)).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const an={command:`edit`,describe:`Change Image Transformations C2PA setting`,builder:rn,handler:async e=>s({command:`zones transformations-c2pa edit`,classification:{safeFlags:[`value`,`dry-run`]}},e,async()=>{if(e.dryRun){a({command:`cf zones transformations-c2pa edit`,method:`PATCH`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/settings/transformations_c2pa`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``)},bodyKind:`json`,body:e.body===void 0?u({value:e.value}):c(e.body)});return}let n=await t(e),s=await r({zone:e.zone},n,{quiet:e.quiet});if(e.zoneId=s,e.body){let t=c(e.body),r=await o(`Updating`,async()=>n.send(Q,{body:t,zone_id:s}));i(r,{successLabel:`Updated`});return}e.value===void 0&&(e.value=await p(`value`,`Whether C2PA signing is enabled for image transformations.`,[`off`,`on`]));let l=u({value:e.value}),d=await o(`Updating`,async()=>n.send(Q,{body:l,zone_id:s}));i(d,{successLabel:`Updated`})})};var on={method:`GET`,path:t=>e`/zones/${t.zone_id}/settings/transformations_c2pa`};function sn(e){return e.usage(`$0 zones transformations-c2pa get
|
|
112
|
+
|
|
113
|
+
C2PA (Coalition for Content Provenance and Authenticity) signing adds cryptographic metadata to images processed through Cloudflare Image Transformations, enabling verification of image authenticity and provenance.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const cn={command:`get`,describe:`Get Image Transformations C2PA setting`,builder:sn,handler:async e=>s({command:`zones transformations-c2pa get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){a({command:`cf zones transformations-c2pa get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/settings/transformations_c2pa`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``)},bodyKind:`none`});return}let n=await t(e),s=await r({zone:e.zone},n,{quiet:e.quiet});e.zoneId=s;let c=await o(`Loading`,async()=>n.send(on,{zone_id:s}));i(c,{successLabel:`Loaded`})})},ln={command:`transformations-c2pa`,describe:`Operations for transformations-c2pa`,builder:e=>e.command(an).command(cn).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var $={method:`PATCH`,path:t=>e`/zones/${t.zone_id}/settings/transformations_config`,body:`json`};function un(e){return e.usage(`$0 zones transformations-config edit
|
|
114
|
+
|
|
115
|
+
Updates one or more fields of the combined Transformations configuration for a zone. Omitted fields are left unchanged. The response always returns the full current state of all three sub-settings.`).option(`value-allowed-origins`,{type:`string`,description:`Comma-separated list of allowed origin domains for image and video transformations.
|
|
116
|
+
Use "*" to allow all origins (default).
|
|
117
|
+
`}).option(`value-c2pa`,{type:`string`,description:`Whether C2PA signing is enabled for image transformations.`,choices:[`off`,`on`]}).coerce(`value-c2pa`,e=>d(e,`value-c2pa`,`text`)).option(`value-transformations`,{type:`string`,description:`Controls Image Transformations behavior:
|
|
118
|
+
- "off": Feature disabled.
|
|
119
|
+
- "on": Transformations enabled for same-zone images only.
|
|
120
|
+
- "open": Transformations enabled for images from any origin.
|
|
121
|
+
- "latest": Transformations enabled using the latest version.
|
|
122
|
+
`,choices:[`off`,`on`,`open`,`latest`]}).coerce(`value-transformations`,e=>d(e,`value-transformations`,`text`)).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const dn={command:`edit`,describe:`Change Transformations configuration`,builder:un,handler:async e=>s({command:`zones transformations-config edit`,classification:{safeFlags:[`value-c2pa`,`value-transformations`,`dry-run`]}},e,async()=>{if(e.dryRun){a({command:`cf zones transformations-config edit`,method:`PATCH`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/settings/transformations_config`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``)},bodyKind:`json`,body:e.body===void 0?u({value:{allowed_origins:d(e[`value-allowed-origins`],`value-allowed-origins`,`text`),c2pa:e[`value-c2pa`],transformations:e[`value-transformations`]}}):c(e.body)});return}let n=await t(e),s=await r({zone:e.zone},n,{quiet:e.quiet});if(e.zoneId=s,e.body){let t=c(e.body),r=await o(`Updating`,async()=>n.send($,{body:t,zone_id:s}));i(r,{successLabel:`Updated`});return}let l=u({value:{allowed_origins:d(e[`value-allowed-origins`],`value-allowed-origins`,`text`),c2pa:e[`value-c2pa`],transformations:e[`value-transformations`]}}),f=await o(`Updating`,async()=>n.send($,{body:l,zone_id:s}));i(f,{successLabel:`Updated`})})};var fn={method:`GET`,path:t=>e`/zones/${t.zone_id}/settings/transformations_config`};function pn(e){return e.usage(`$0 zones transformations-config get
|
|
123
|
+
|
|
124
|
+
Returns the combined Transformations configuration for a zone, including the transformations toggle, allowed origins, and C2PA signing settings in a single response.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const mn={command:`get`,describe:`Get Transformations configuration`,builder:pn,handler:async e=>s({command:`zones transformations-config get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){a({command:`cf zones transformations-config get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/settings/transformations_config`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``)},bodyKind:`none`});return}let n=await t(e),s=await r({zone:e.zone},n,{quiet:e.quiet});e.zoneId=s;let c=await o(`Loading`,async()=>n.send(fn,{zone_id:s}));i(c,{successLabel:`Loaded`})})},hn={command:`transformations-config`,describe:`Operations for transformations-config`,builder:e=>e.command(dn).command(mn).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},gn={command:`zones`,describe:`Zones are domains on Cloudflare — list, create, and configure domain settings`,builder:e=>e.command(x).command(w).command(D).command(L).command(He).command(re).command(le).command(he).command(P).command(Se).command(Pe).command(Be).command(Je).command(et).command(dt).command(vt).command(St).command(Ot).command(Pt).command(Bt).command(Zt).command(Z).command(ln).command(hn).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};export{gn as default};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cf",
|
|
3
|
-
"version": "1.0.0-beta.
|
|
3
|
+
"version": "1.0.0-beta.15",
|
|
4
4
|
"description": "The Cloudflare CLI",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ai",
|
|
@@ -47,10 +47,8 @@
|
|
|
47
47
|
"imports": {
|
|
48
48
|
"#commands/*": "./src/commands/*",
|
|
49
49
|
"#lib/*": "./src/lib/*",
|
|
50
|
-
"#
|
|
51
|
-
"#
|
|
52
|
-
"#sdk/client": "./src/sdk/sdk/Client.ts",
|
|
53
|
-
"#sdk/environments": "./src/sdk/sdk/environments.ts"
|
|
50
|
+
"#api": "./src/api/index.ts",
|
|
51
|
+
"#operations/*": "./src/commands/_generated/_operations/*"
|
|
54
52
|
},
|
|
55
53
|
"exports": {
|
|
56
54
|
".": "./dist/index.mjs",
|
|
@@ -61,10 +59,10 @@
|
|
|
61
59
|
"./package.json": "./package.json"
|
|
62
60
|
},
|
|
63
61
|
"dependencies": {
|
|
64
|
-
"@cloudflare/build-output-utils": "0.9.
|
|
62
|
+
"@cloudflare/build-output-utils": "0.9.1",
|
|
65
63
|
"@cloudflare/codemods": "0.4.2",
|
|
66
|
-
"@cloudflare/config": "0.
|
|
67
|
-
"@cloudflare/runtime-types": "0.1.
|
|
64
|
+
"@cloudflare/config": "0.25.0",
|
|
65
|
+
"@cloudflare/runtime-types": "0.1.10",
|
|
68
66
|
"blake3-wasm": "2.1.5",
|
|
69
67
|
"miniflare": "5.20261006.1-alpha",
|
|
70
68
|
"minisearch": "7.2.0"
|
|
@@ -73,30 +71,29 @@
|
|
|
73
71
|
"@bomb.sh/tab": "0.0.22",
|
|
74
72
|
"@clack/core": "1.5.1",
|
|
75
73
|
"@clack/prompts": "^1.8.1",
|
|
76
|
-
"@cloudflare/autoconfig": "0.7.
|
|
77
|
-
"@cloudflare/cli-shared-helpers": "0.2.
|
|
78
|
-
"@cloudflare/containers-shared": "0.21.
|
|
79
|
-
"@cloudflare/deploy-helpers": "0.20.
|
|
74
|
+
"@cloudflare/autoconfig": "0.7.8",
|
|
75
|
+
"@cloudflare/cli-shared-helpers": "0.2.6",
|
|
76
|
+
"@cloudflare/containers-shared": "0.21.6",
|
|
77
|
+
"@cloudflare/deploy-helpers": "0.20.2",
|
|
80
78
|
"@cloudflare/forge": "file:../../vendor/cloudflare-forge-0.1.0.tgz",
|
|
81
|
-
"@cloudflare/
|
|
82
|
-
"@cloudflare/workers-
|
|
83
|
-
"@cloudflare/workers-utils": "0.47.1",
|
|
79
|
+
"@cloudflare/workers-auth": "0.14.0",
|
|
80
|
+
"@cloudflare/workers-utils": "0.47.2",
|
|
84
81
|
"@types/node": "25.9.9",
|
|
85
82
|
"@types/semver": "7.8.0",
|
|
86
83
|
"@types/shell-quote": "^1.7.5",
|
|
87
84
|
"@types/yargs": "17.0.35",
|
|
88
|
-
"chalk": "
|
|
85
|
+
"chalk": "6.0.1",
|
|
89
86
|
"ci-info": "^4.4.0",
|
|
90
87
|
"esbuild": "0.28.2",
|
|
91
88
|
"figures": "6.1.0",
|
|
92
89
|
"minimatch": "10.2.6",
|
|
93
|
-
"msw": "
|
|
90
|
+
"msw": "3.0.2",
|
|
94
91
|
"semver": "7.8.5",
|
|
95
92
|
"shell-quote": "^1.12.0",
|
|
96
93
|
"tinyexec": "^1.3.1",
|
|
97
94
|
"tsx": "4.21.0",
|
|
98
95
|
"undici": "7.30.0",
|
|
99
|
-
"vite-plus": "1.
|
|
96
|
+
"vite-plus": "1.1.0",
|
|
100
97
|
"yargs": "18.2.0"
|
|
101
98
|
},
|
|
102
99
|
"engines": {
|
package/dist/Page-BShsqCXr.mjs
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
var e=class{data;rawResponse;response;_hasNextPage;getItems;loadNextPage;constructor({response:e,rawResponse:t,hasNextPage:n,getItems:r,loadPage:i}){this.response=e,this.rawResponse=t,this.data=r(e),this._hasNextPage=n,this.getItems=r,this.loadNextPage=i}async getNextPage(){let{data:e,rawResponse:t}=await this.loadNextPage(this.response).withRawResponse();return this.response=e,this.rawResponse=t,this.data=this.getItems(this.response),this}hasNextPage(){return this._hasNextPage(this.response)}async*iterMessages(){for(let e of this.data)yield e;for(;this.hasNextPage();){await this.getNextPage();for(let e of this.data)yield e}}async*[Symbol.asyncIterator](){for await(let e of this.iterMessages())yield e}};export{e as t};
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
import{t as e}from"./local-BcPM4I0s.mjs";import{n as t}from"./auth-CAWalgW0.mjs";import{a as n,t as r}from"./context-BBLtgdR1.mjs";import{t as i}from"./output-BOe-3AQG.mjs";import{t as a}from"./dry-run-DRj2_uV3.mjs";import{t as o}from"./progress-CQqDtgmF.mjs";import{t as s}from"./run-CW2Cgi0S.mjs";import"./telemetry-0Y5hAtCX.mjs";import{n as c,r as l,t as u}from"./body-parser-DkHKPkJ7.mjs";import{n as d}from"./input-validation-D7z60HJH.mjs";import{a as f,i as p}from"./prompt-C8FyienX.mjs";import{t as m}from"./cli-types-9oYmRTHJ.mjs";function h(e){return e.usage(`$0 abuse-reports appeals eligibility <report-id>
|
|
3
|
-
|
|
4
|
-
Returns whether the report is currently appealable, along with the signals behind that decision: whether it already has an open appeal, how many appeals have been submitted against it, and whether it has at least one mitigation that an appeal could reverse. Report-level appeals are currently available only for DMCA (copyright) reports. For other report types this operation returns the same \`404 Report not found\` response as a report that does not exist for the account.`).positional(`report-id`,{type:`string`,description:`Abuse Report ID`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const g={command:`eligibility <report-id>`,describe:`Check whether a report can be appealed`,builder:h,handler:async c=>s({command:`abuse-reports appeals eligibility`,classification:{safeFlags:[`dry-run`]}},c,async()=>{if(c.dryRun){let e=await n();a({command:`cf abuse-reports appeals eligibility`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}/abuse-reports/${c[`report-id`]==null?`<report-id>`:encodeURIComponent(String(c[`report-id`]))}/appeals/eligibility`,pathParams:{"report-id":String(c[`report-id`]??``)},bodyKind:`none`});return}let s=await t(c),l=c.local?e:await r();c.accountId=l;let u=await o(`Loading`,async()=>s.abuseReports.appeals.eligibility({account_id:l,report_id:c[`report-id`]}));i(u,{successLabel:`Loaded`})})},_={command:`appeals`,describe:`Appeal eligibility for abuse reports`,builder:e=>e.command(g).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function v(e){return e.usage("$0 abuse-reports create <report-type>\n\nSubmit an abuse report of a particular type. Requires the abuse-reports entitlement on the account (Enterprise accounts have it by default; other accounts must request access) and an API token with the `Trust and Safety Write` permission. If the account is not entitled, the request is rejected with an HTTP `401` response (see below).").positional(`report-type`,{type:`string`,description:`The report type to be submitted. Example: abuse_general`,demandOption:!0}).option(`act`,{type:`string`,description:`The act field`,choices:[`abuse_dmca`,`abuse_trademark`,`abuse_general`,`abuse_phishing`,`abuse_children`,`abuse_threat`,`abuse_registrar_whois`,`abuse_ncsei`]}).coerce(`act`,e=>d(e,`act`,`text`)).option(`comments`,{type:`string`,description:`Any additional comments about the infringement not exceeding 2000 characters`}).option(`company`,{type:`string`,description:`Text not exceeding 100 characters. This field may be released by Cloudflare to third parties such as the Lumen Database (https://lumendatabase.org/).`}).option(`email`,{type:`string`,description:`A valid email of the abuse reporter. This field may be released by Cloudflare to third parties such as the Lumen Database (https://lumendatabase.org/).`}).option(`email2`,{type:`string`,description:"Should match the value provided in `email`"}).option(`name`,{type:`string`,description:`Text not exceeding 255 characters. This field may be released by Cloudflare to third parties such as the Lumen Database (https://lumendatabase.org/).`}).option(`reported-country`,{type:`string`,description:`Text containing 2 characters`}).option(`reported-user-agent`,{type:`string`,description:`Text not exceeding 255 characters`}).option(`tele`,{type:`string`,description:`Text not exceeding 20 characters. This field may be released by Cloudflare to third parties such as the Lumen Database (https://lumendatabase.org/).`}).option(`title`,{type:`string`,description:`Text not exceeding 255 characters`}).option(`urls`,{type:`string`,description:`A list of valid URLs separated by ‘\\n’ (new line character). The list of the URLs should not exceed 250 URLs. All URLs should have the same hostname. Each URL should be unique. This field may be released by Cloudflare to third parties such as the Lumen Database (https://lumendatabase.org/).`}).option(`address1`,{type:`string`,description:`Text not exceeding 100 characters. This field may be released by Cloudflare to third parties such as the Lumen Database (https://lumendatabase.org/).`}).option(`agent-name`,{type:`string`,description:`The name of the copyright holder. Text not exceeding 60 characters. This field may be released by Cloudflare to third parties such as the Lumen Database (https://lumendatabase.org/).`}).option(`agree`,{type:`number`,description:"Can be `0` for false or `1` for true. Must be value: 1 for DMCA reports"}).option(`city`,{type:`string`,description:`Text not exceeding 255 characters. This field may be released by Cloudflare to third parties such as the Lumen Database (https://lumendatabase.org/).`}).option(`country`,{type:`string`,description:`Text not exceeding 255 characters. This field may be released by Cloudflare to third parties such as the Lumen Database (https://lumendatabase.org/).
|
|
5
|
-
`}).option(`host-notification`,{type:`string`,description:`Notification type based on the abuse type. NOTE: Copyright (DMCA) and Trademark reports cannot be anonymous.
|
|
6
|
-
`,choices:[`send`,`send-anon`]}).coerce(`host-notification`,e=>d(e,`host-notification`,`text`)).option(`original-work`,{type:`string`,description:`Text not exceeding 255 characters. This field may be released by Cloudflare to third parties such as the Lumen Database (https://lumendatabase.org/).
|
|
7
|
-
`}).option(`owner-notification`,{type:`string`,description:`Notification type based on the abuse type. NOTE: Copyright (DMCA) and Trademark reports cannot be anonymous.
|
|
8
|
-
`,choices:[`send`,`send-anon`,`none`]}).coerce(`owner-notification`,e=>d(e,`owner-notification`,`text`)).option(`signature`,{type:`string`,description:`Required for DMCA reports, should be same as Name. An affirmation that all information in the report is true and accurate while agreeing to the policies of Cloudflare's abuse reports`}).option(`state`,{type:`string`,description:`Text not exceeding 255 characters. This field may be released by Cloudflare to third parties such as the Lumen Database (https://lumendatabase.org/).`}).option(`justification`,{type:`string`,description:`A detailed description of the infringement, including any necessary access details and the exact steps needed to view the content, not exceeding 5000 characters.
|
|
9
|
-
`}).option(`trademark-number`,{type:`string`,description:`Text not exceeding 1000 characters`}).option(`trademark-office`,{type:`string`,description:`Text not exceeding 1000 characters`}).option(`trademark-symbol`,{type:`string`,description:`Text not exceeding 1000 characters`}).option(`destination-ips`,{type:`string`,description:`A list of IP addresses separated by ‘\\n’ (new line character). The list of destination IPs should not exceed 30 IP addresses. Each one of the IP addresses ought to be unique.`}).option(`ports-protocols`,{type:`string`,description:`A comma separated list of ports and protocols e.g. 80/TCP, 22/UDP. The total size of the field should not exceed 2000 characters. Each individual port/protocol should not exceed 100 characters. The list should not have more than 30 unique ports and protocols.`}).option(`source-ips`,{type:`string`,description:`A list of IP addresses separated by ‘\\n’ (new line character). The list of source IPs should not exceed 30 IP addresses. Each one of the IP addresses ought to be unique.`}).option(`ncmec-notification`,{type:`string`,description:`Notification type based on the abuse type. NOTE: Copyright (DMCA) and Trademark reports cannot be anonymous.
|
|
10
|
-
`,choices:[`send`,`send-anon`]}).coerce(`ncmec-notification`,e=>d(e,`ncmec-notification`,`text`)).option(`reg-who-request-reg-who-authorization-statement`,{type:`string`,description:`Optional authorization statement or power of attorney per RDP 10.2.1.3.`}).option(`reg-who-request-reg-who-good-faith-affirmation`,{type:`boolean`,description:`Affirmation that the request is made in good faith per RDP 10.2.4. Must be true.`}).option(`reg-who-request-reg-who-lawful-processing-agreement`,{type:`boolean`,description:`Agreement to process data lawfully per RDP 10.2.5. Must be true.`}).option(`reg-who-request-reg-who-legal-basis`,{type:`string`,description:`Legal rights and rationale for the request per RDP 10.2.3. Required for all WHOIS requests.`}).option(`reg-who-request-reg-who-request-type`,{type:`string`,description:`The type of WHOIS data request per RDP procedure.`,choices:[`disclosure`,`invalid_whois`]}).coerce(`reg-who-request-reg-who-request-type`,e=>d(e,`reg-who-request-reg-who-request-type`,`text`)).option(`reg-who-request-reg-who-requested-data-elements`,{type:`string`,array:!0,description:`The specific WHOIS data elements being requested per RDP 10.2.2. Required for all WHOIS requests.`}).option(`reg-who-request-reg-who-requestor-type`,{type:`string`,description:`The nature of the requestor per RDP 10.2.1.2.`,choices:[`government`,`corporation`,`individual`]}).coerce(`reg-who-request-reg-who-requestor-type`,e=>d(e,`reg-who-request-reg-who-requestor-type`,`text`)).option(`ncsei-subject-representation`,{type:`boolean`,description:`If the submitter is the target of NCSEI in the URLs of the abuse report.`}).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(`address1`,[`justification`,`trademark-number`,`trademark-office`,`trademark-symbol`,`destination-ips`,`ports-protocols`,`source-ips`,`ncmec-notification`,`reg-who-request-reg-who-authorization-statement`,`reg-who-request-reg-who-good-faith-affirmation`,`reg-who-request-reg-who-lawful-processing-agreement`,`reg-who-request-reg-who-legal-basis`,`reg-who-request-reg-who-request-type`,`reg-who-request-reg-who-requested-data-elements`,`reg-who-request-reg-who-requestor-type`,`ncsei-subject-representation`]).implies(`address1`,[`agent-name`,`agree`,`city`,`country`,`host-notification`,`original-work`,`signature`,`state`]).conflicts(`agent-name`,[`justification`,`trademark-number`,`trademark-office`,`trademark-symbol`,`destination-ips`,`ports-protocols`,`source-ips`,`ncmec-notification`,`reg-who-request-reg-who-authorization-statement`,`reg-who-request-reg-who-good-faith-affirmation`,`reg-who-request-reg-who-lawful-processing-agreement`,`reg-who-request-reg-who-legal-basis`,`reg-who-request-reg-who-request-type`,`reg-who-request-reg-who-requested-data-elements`,`reg-who-request-reg-who-requestor-type`,`ncsei-subject-representation`]).implies(`agent-name`,[`address1`,`agree`,`city`,`country`,`host-notification`,`original-work`,`signature`,`state`]).conflicts(`agree`,[`justification`,`trademark-number`,`trademark-office`,`trademark-symbol`,`destination-ips`,`ports-protocols`,`source-ips`,`ncmec-notification`,`reg-who-request-reg-who-authorization-statement`,`reg-who-request-reg-who-good-faith-affirmation`,`reg-who-request-reg-who-lawful-processing-agreement`,`reg-who-request-reg-who-legal-basis`,`reg-who-request-reg-who-request-type`,`reg-who-request-reg-who-requested-data-elements`,`reg-who-request-reg-who-requestor-type`,`ncsei-subject-representation`]).implies(`agree`,[`address1`,`agent-name`,`city`,`country`,`host-notification`,`original-work`,`signature`,`state`]).conflicts(`city`,[`justification`,`trademark-number`,`trademark-office`,`trademark-symbol`,`destination-ips`,`ports-protocols`,`source-ips`,`ncmec-notification`,`reg-who-request-reg-who-authorization-statement`,`reg-who-request-reg-who-good-faith-affirmation`,`reg-who-request-reg-who-lawful-processing-agreement`,`reg-who-request-reg-who-legal-basis`,`reg-who-request-reg-who-request-type`,`reg-who-request-reg-who-requested-data-elements`,`reg-who-request-reg-who-requestor-type`,`ncsei-subject-representation`]).implies(`city`,[`address1`,`agent-name`,`agree`,`country`,`host-notification`,`original-work`,`signature`,`state`]).conflicts(`country`,[`justification`,`trademark-number`,`trademark-office`,`trademark-symbol`,`destination-ips`,`ports-protocols`,`source-ips`,`reg-who-request-reg-who-authorization-statement`,`reg-who-request-reg-who-good-faith-affirmation`,`reg-who-request-reg-who-lawful-processing-agreement`,`reg-who-request-reg-who-legal-basis`,`reg-who-request-reg-who-request-type`,`reg-who-request-reg-who-requested-data-elements`,`reg-who-request-reg-who-requestor-type`,`original-work`]).implies(`country`,[`address1`,`agent-name`,`agree`,`city`,`host-notification`,`original-work`,`signature`,`state`]).conflicts(`host-notification`,[`reg-who-request-reg-who-authorization-statement`,`reg-who-request-reg-who-good-faith-affirmation`,`reg-who-request-reg-who-lawful-processing-agreement`,`reg-who-request-reg-who-legal-basis`,`reg-who-request-reg-who-request-type`,`reg-who-request-reg-who-requested-data-elements`,`reg-who-request-reg-who-requestor-type`]).conflicts(`original-work`,[`justification`,`trademark-number`,`trademark-office`,`trademark-symbol`,`destination-ips`,`ports-protocols`,`source-ips`,`ncmec-notification`,`reg-who-request-reg-who-authorization-statement`,`reg-who-request-reg-who-good-faith-affirmation`,`reg-who-request-reg-who-lawful-processing-agreement`,`reg-who-request-reg-who-legal-basis`,`reg-who-request-reg-who-request-type`,`reg-who-request-reg-who-requested-data-elements`,`reg-who-request-reg-who-requestor-type`,`ncsei-subject-representation`,`country`]).implies(`original-work`,[`address1`,`agent-name`,`agree`,`city`,`country`,`host-notification`,`signature`,`state`]).conflicts(`signature`,[`justification`,`trademark-number`,`trademark-office`,`trademark-symbol`,`destination-ips`,`ports-protocols`,`source-ips`,`ncmec-notification`,`reg-who-request-reg-who-authorization-statement`,`reg-who-request-reg-who-good-faith-affirmation`,`reg-who-request-reg-who-lawful-processing-agreement`,`reg-who-request-reg-who-legal-basis`,`reg-who-request-reg-who-request-type`,`reg-who-request-reg-who-requested-data-elements`,`reg-who-request-reg-who-requestor-type`,`ncsei-subject-representation`]).implies(`signature`,[`address1`,`agent-name`,`agree`,`city`,`country`,`host-notification`,`original-work`,`state`]).conflicts(`state`,[`justification`,`trademark-number`,`trademark-office`,`trademark-symbol`,`destination-ips`,`ports-protocols`,`source-ips`,`ncmec-notification`,`reg-who-request-reg-who-authorization-statement`,`reg-who-request-reg-who-good-faith-affirmation`,`reg-who-request-reg-who-lawful-processing-agreement`,`reg-who-request-reg-who-legal-basis`,`reg-who-request-reg-who-request-type`,`reg-who-request-reg-who-requested-data-elements`,`reg-who-request-reg-who-requestor-type`,`ncsei-subject-representation`]).implies(`state`,[`address1`,`agent-name`,`agree`,`city`,`country`,`host-notification`,`original-work`,`signature`]).conflicts(`justification`,[`address1`,`agent-name`,`agree`,`city`,`country`,`original-work`,`signature`,`state`,`reg-who-request-reg-who-authorization-statement`,`reg-who-request-reg-who-good-faith-affirmation`,`reg-who-request-reg-who-lawful-processing-agreement`,`reg-who-request-reg-who-legal-basis`,`reg-who-request-reg-who-request-type`,`reg-who-request-reg-who-requested-data-elements`,`reg-who-request-reg-who-requestor-type`,`ncsei-subject-representation`]).conflicts(`trademark-number`,[`address1`,`agent-name`,`agree`,`city`,`country`,`original-work`,`signature`,`state`,`destination-ips`,`ports-protocols`,`source-ips`,`ncmec-notification`,`reg-who-request-reg-who-authorization-statement`,`reg-who-request-reg-who-good-faith-affirmation`,`reg-who-request-reg-who-lawful-processing-agreement`,`reg-who-request-reg-who-legal-basis`,`reg-who-request-reg-who-request-type`,`reg-who-request-reg-who-requested-data-elements`,`reg-who-request-reg-who-requestor-type`,`ncsei-subject-representation`]).implies(`trademark-number`,[`host-notification`,`justification`,`trademark-office`,`trademark-symbol`]).conflicts(`trademark-office`,[`address1`,`agent-name`,`agree`,`city`,`country`,`original-work`,`signature`,`state`,`destination-ips`,`ports-protocols`,`source-ips`,`ncmec-notification`,`reg-who-request-reg-who-authorization-statement`,`reg-who-request-reg-who-good-faith-affirmation`,`reg-who-request-reg-who-lawful-processing-agreement`,`reg-who-request-reg-who-legal-basis`,`reg-who-request-reg-who-request-type`,`reg-who-request-reg-who-requested-data-elements`,`reg-who-request-reg-who-requestor-type`,`ncsei-subject-representation`]).implies(`trademark-office`,[`host-notification`,`justification`,`trademark-number`,`trademark-symbol`]).conflicts(`trademark-symbol`,[`address1`,`agent-name`,`agree`,`city`,`country`,`original-work`,`signature`,`state`,`destination-ips`,`ports-protocols`,`source-ips`,`ncmec-notification`,`reg-who-request-reg-who-authorization-statement`,`reg-who-request-reg-who-good-faith-affirmation`,`reg-who-request-reg-who-lawful-processing-agreement`,`reg-who-request-reg-who-legal-basis`,`reg-who-request-reg-who-request-type`,`reg-who-request-reg-who-requested-data-elements`,`reg-who-request-reg-who-requestor-type`,`ncsei-subject-representation`]).implies(`trademark-symbol`,[`host-notification`,`justification`,`trademark-number`,`trademark-office`]).conflicts(`destination-ips`,[`address1`,`agent-name`,`agree`,`city`,`country`,`original-work`,`signature`,`state`,`trademark-number`,`trademark-office`,`trademark-symbol`,`ncmec-notification`,`reg-who-request-reg-who-authorization-statement`,`reg-who-request-reg-who-good-faith-affirmation`,`reg-who-request-reg-who-lawful-processing-agreement`,`reg-who-request-reg-who-legal-basis`,`reg-who-request-reg-who-request-type`,`reg-who-request-reg-who-requested-data-elements`,`reg-who-request-reg-who-requestor-type`,`ncsei-subject-representation`]).conflicts(`ports-protocols`,[`address1`,`agent-name`,`agree`,`city`,`country`,`original-work`,`signature`,`state`,`trademark-number`,`trademark-office`,`trademark-symbol`,`ncmec-notification`,`reg-who-request-reg-who-authorization-statement`,`reg-who-request-reg-who-good-faith-affirmation`,`reg-who-request-reg-who-lawful-processing-agreement`,`reg-who-request-reg-who-legal-basis`,`reg-who-request-reg-who-request-type`,`reg-who-request-reg-who-requested-data-elements`,`reg-who-request-reg-who-requestor-type`,`ncsei-subject-representation`]).conflicts(`source-ips`,[`address1`,`agent-name`,`agree`,`city`,`country`,`original-work`,`signature`,`state`,`trademark-number`,`trademark-office`,`trademark-symbol`,`ncmec-notification`,`reg-who-request-reg-who-authorization-statement`,`reg-who-request-reg-who-good-faith-affirmation`,`reg-who-request-reg-who-lawful-processing-agreement`,`reg-who-request-reg-who-legal-basis`,`reg-who-request-reg-who-request-type`,`reg-who-request-reg-who-requested-data-elements`,`reg-who-request-reg-who-requestor-type`,`ncsei-subject-representation`]).conflicts(`ncmec-notification`,[`address1`,`agent-name`,`agree`,`city`,`original-work`,`signature`,`state`,`trademark-number`,`trademark-office`,`trademark-symbol`,`destination-ips`,`ports-protocols`,`source-ips`,`reg-who-request-reg-who-authorization-statement`,`reg-who-request-reg-who-good-faith-affirmation`,`reg-who-request-reg-who-lawful-processing-agreement`,`reg-who-request-reg-who-legal-basis`,`reg-who-request-reg-who-request-type`,`reg-who-request-reg-who-requested-data-elements`,`reg-who-request-reg-who-requestor-type`,`ncsei-subject-representation`]).implies(`ncmec-notification`,[`host-notification`,`justification`]).conflicts(`reg-who-request-reg-who-authorization-statement`,[`address1`,`agent-name`,`agree`,`city`,`country`,`host-notification`,`original-work`,`signature`,`state`,`justification`,`trademark-number`,`trademark-office`,`trademark-symbol`,`destination-ips`,`ports-protocols`,`source-ips`,`ncmec-notification`,`ncsei-subject-representation`]).conflicts(`reg-who-request-reg-who-good-faith-affirmation`,[`address1`,`agent-name`,`agree`,`city`,`country`,`host-notification`,`original-work`,`signature`,`state`,`justification`,`trademark-number`,`trademark-office`,`trademark-symbol`,`destination-ips`,`ports-protocols`,`source-ips`,`ncmec-notification`,`ncsei-subject-representation`]).conflicts(`reg-who-request-reg-who-lawful-processing-agreement`,[`address1`,`agent-name`,`agree`,`city`,`country`,`host-notification`,`original-work`,`signature`,`state`,`justification`,`trademark-number`,`trademark-office`,`trademark-symbol`,`destination-ips`,`ports-protocols`,`source-ips`,`ncmec-notification`,`ncsei-subject-representation`]).conflicts(`reg-who-request-reg-who-legal-basis`,[`address1`,`agent-name`,`agree`,`city`,`country`,`host-notification`,`original-work`,`signature`,`state`,`justification`,`trademark-number`,`trademark-office`,`trademark-symbol`,`destination-ips`,`ports-protocols`,`source-ips`,`ncmec-notification`,`ncsei-subject-representation`]).conflicts(`reg-who-request-reg-who-request-type`,[`address1`,`agent-name`,`agree`,`city`,`country`,`host-notification`,`original-work`,`signature`,`state`,`justification`,`trademark-number`,`trademark-office`,`trademark-symbol`,`destination-ips`,`ports-protocols`,`source-ips`,`ncmec-notification`,`ncsei-subject-representation`]).conflicts(`reg-who-request-reg-who-requested-data-elements`,[`address1`,`agent-name`,`agree`,`city`,`country`,`host-notification`,`original-work`,`signature`,`state`,`justification`,`trademark-number`,`trademark-office`,`trademark-symbol`,`destination-ips`,`ports-protocols`,`source-ips`,`ncmec-notification`,`ncsei-subject-representation`]).conflicts(`reg-who-request-reg-who-requestor-type`,[`address1`,`agent-name`,`agree`,`city`,`country`,`host-notification`,`original-work`,`signature`,`state`,`justification`,`trademark-number`,`trademark-office`,`trademark-symbol`,`destination-ips`,`ports-protocols`,`source-ips`,`ncmec-notification`,`ncsei-subject-representation`]).conflicts(`ncsei-subject-representation`,[`address1`,`agent-name`,`agree`,`city`,`original-work`,`signature`,`state`,`justification`,`trademark-number`,`trademark-office`,`trademark-symbol`,`destination-ips`,`ports-protocols`,`source-ips`,`ncmec-notification`,`reg-who-request-reg-who-authorization-statement`,`reg-who-request-reg-who-good-faith-affirmation`,`reg-who-request-reg-who-lawful-processing-agreement`,`reg-who-request-reg-who-legal-basis`,`reg-who-request-reg-who-request-type`,`reg-who-request-reg-who-requested-data-elements`,`reg-who-request-reg-who-requestor-type`]).implies(`ncsei-subject-representation`,[`host-notification`]).check(e=>{if([`reg-who-request-reg-who-authorization-statement`,`reg-who-request-reg-who-good-faith-affirmation`,`reg-who-request-reg-who-lawful-processing-agreement`,`reg-who-request-reg-who-legal-basis`,`reg-who-request-reg-who-request-type`,`reg-who-request-reg-who-requested-data-elements`,`reg-who-request-reg-who-requestor-type`].some(t=>e[t]!==void 0)){let t={"reg-who-request-reg-who-good-faith-affirmation":[`address1`,`agent-name`,`agree`,`city`,`country`,`host-notification`,`original-work`,`signature`,`state`,`justification`,`trademark-number`,`trademark-office`,`trademark-symbol`,`destination-ips`,`ports-protocols`,`source-ips`,`ncmec-notification`,`ncsei-subject-representation`],"reg-who-request-reg-who-lawful-processing-agreement":[`address1`,`agent-name`,`agree`,`city`,`country`,`host-notification`,`original-work`,`signature`,`state`,`justification`,`trademark-number`,`trademark-office`,`trademark-symbol`,`destination-ips`,`ports-protocols`,`source-ips`,`ncmec-notification`,`ncsei-subject-representation`],"reg-who-request-reg-who-legal-basis":[`address1`,`agent-name`,`agree`,`city`,`country`,`host-notification`,`original-work`,`signature`,`state`,`justification`,`trademark-number`,`trademark-office`,`trademark-symbol`,`destination-ips`,`ports-protocols`,`source-ips`,`ncmec-notification`,`ncsei-subject-representation`],"reg-who-request-reg-who-request-type":[`address1`,`agent-name`,`agree`,`city`,`country`,`host-notification`,`original-work`,`signature`,`state`,`justification`,`trademark-number`,`trademark-office`,`trademark-symbol`,`destination-ips`,`ports-protocols`,`source-ips`,`ncmec-notification`,`ncsei-subject-representation`],"reg-who-request-reg-who-requested-data-elements":[`address1`,`agent-name`,`agree`,`city`,`country`,`host-notification`,`original-work`,`signature`,`state`,`justification`,`trademark-number`,`trademark-office`,`trademark-symbol`,`destination-ips`,`ports-protocols`,`source-ips`,`ncmec-notification`,`ncsei-subject-representation`]},n=[`reg-who-request-reg-who-good-faith-affirmation`,`reg-who-request-reg-who-lawful-processing-agreement`,`reg-who-request-reg-who-legal-basis`,`reg-who-request-reg-who-request-type`,`reg-who-request-reg-who-requested-data-elements`].filter(n=>e[n]===void 0&&!(t[n]??[]).some(t=>e[t]!==void 0));if(n.length>0)throw Error(`${n.map(e=>`--`+e).join(`, `)} ${n.length===1?`is`:`are`} required when any --reg_who_request-* flag is set`)}return!0})}const y={command:`create <report-type>`,describe:`Submit an abuse report`,builder:v,handler:async l=>s({command:`abuse-reports create`,classification:{safeFlags:[`act`,`host-notification`,`owner-notification`,`ncmec-notification`,`reg-who-request-reg-who-good-faith-affirmation`,`reg-who-request-reg-who-lawful-processing-agreement`,`reg-who-request-reg-who-request-type`,`reg-who-request-reg-who-requestor-type`,`ncsei-subject-representation`,`dry-run`]}},l,async()=>{if(l.dryRun){let e=await n();a({command:`cf abuse-reports create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}/abuse-reports/${l[`report-type`]==null?`<report-type>`:encodeURIComponent(String(l[`report-type`]))}`,pathParams:{"report-type":String(l[`report-type`]??``)},bodyKind:`json`,body:l.body===void 0?u({act:l.act,comments:d(l.comments,`comments`,`text`),company:d(l.company,`company`,`text`),email:d(l.email,`email`,`text`),email2:d(l.email2,`email2`,`text`),name:d(l.name,`name`,`text`),reported_country:d(l[`reported-country`],`reported-country`,`text`),reported_user_agent:d(l[`reported-user-agent`],`reported-user-agent`,`text`),tele:d(l.tele,`tele`,`text`),title:d(l.title,`title`,`text`),urls:d(l.urls,`urls`,`text`),address1:d(l.address1,`address1`,`text`),agent_name:d(l[`agent-name`],`agent-name`,`text`),agree:l.agree,city:d(l.city,`city`,`text`),country:d(l.country,`country`,`text`),host_notification:l[`host-notification`],original_work:d(l[`original-work`],`original-work`,`text`),owner_notification:l[`owner-notification`],signature:d(l.signature,`signature`,`text`),state:d(l.state,`state`,`text`),justification:d(l.justification,`justification`,`text`),trademark_number:d(l[`trademark-number`],`trademark-number`,`text`),trademark_office:d(l[`trademark-office`],`trademark-office`,`text`),trademark_symbol:d(l[`trademark-symbol`],`trademark-symbol`,`text`),destination_ips:d(l[`destination-ips`],`destination-ips`,`text`),ports_protocols:d(l[`ports-protocols`],`ports-protocols`,`text`),source_ips:d(l[`source-ips`],`source-ips`,`text`),ncmec_notification:l[`ncmec-notification`],reg_who_request:{reg_who_authorization_statement:d(l[`reg-who-request-reg-who-authorization-statement`],`reg-who-request-reg-who-authorization-statement`,`text`),reg_who_good_faith_affirmation:l[`reg-who-request-reg-who-good-faith-affirmation`],reg_who_lawful_processing_agreement:l[`reg-who-request-reg-who-lawful-processing-agreement`],reg_who_legal_basis:d(l[`reg-who-request-reg-who-legal-basis`],`reg-who-request-reg-who-legal-basis`,`text`),reg_who_request_type:l[`reg-who-request-reg-who-request-type`],reg_who_requested_data_elements:l[`reg-who-request-reg-who-requested-data-elements`],reg_who_requestor_type:l[`reg-who-request-reg-who-requestor-type`]},ncsei_subject_representation:l[`ncsei-subject-representation`]}):c(l.body)});return}let s=await t(l),m=l.local?e:await r();if(l.accountId=m,l.body){let e=c(l.body),t=await o(`Creating`,async()=>s.abuseReports.create({body:e,account_id:m,"report-type":l[`report-type`]}));i(t,{successLabel:`Created`});return}if(l.act===void 0&&(l.act=await p(`act`,`The act field`,[`abuse_dmca`,`abuse_trademark`,`abuse_general`,`abuse_phishing`,`abuse_children`,`abuse_threat`,`abuse_registrar_whois`,`abuse_ncsei`])),l.email===void 0&&(l.email=await f(`email`,`A valid email of the abuse reporter. This field may be released by Cloudflare to third parties such as the Lumen Database (https://lumendatabase.org/).`)),l.email2===void 0&&(l.email2=await f(`email2`,"Should match the value provided in `email`")),l.name===void 0&&(l.name=await f(`name`,`Text not exceeding 255 characters. This field may be released by Cloudflare to third parties such as the Lumen Database (https://lumendatabase.org/).`)),l.urls===void 0&&(l.urls=await f(`urls`,`A list of valid URLs separated by ‘\\n’ (new line character). The list of the URLs should not exceed 250 URLs. All URLs should have the same hostname. Each URL should be unique. This field may be released by Cloudflare to third parties such as the Lumen Database (https://lumendatabase.org/).`)),l[`owner-notification`]===void 0&&(l[`owner-notification`]=await p(`owner-notification`,`Notification type based on the abuse type. NOTE: Copyright (DMCA) and Trademark reports cannot be anonymous. `,[`send`,`send-anon`,`none`])),l.act===`abuse_dmca`&&l.address1===void 0&&(l.address1=await f(`address1`,`Text not exceeding 100 characters. This field may be released by Cloudflare to third parties such as the Lumen Database (https://lumendatabase.org/).`,{question:`Enter value for --address1`})),l.act===`abuse_dmca`&&l[`agent-name`]===void 0&&(l[`agent-name`]=await f(`agent-name`,`The name of the copyright holder. Text not exceeding 60 characters. This field may be released by Cloudflare to third parties such as the Lumen Database (https://lumendatabase.org/).`,{question:`Enter value for --agent-name`})),l.act===`abuse_dmca`&&l.agree===void 0)throw Error(`--agree is required (or pass --body with this field set).`);if(l.act===`abuse_dmca`&&l.city===void 0&&(l.city=await f(`city`,`Text not exceeding 255 characters. This field may be released by Cloudflare to third parties such as the Lumen Database (https://lumendatabase.org/).`,{question:`Enter value for --city`})),l.act===`abuse_dmca`&&l.country===void 0&&(l.country=await f(`country`,`Text not exceeding 255 characters. This field may be released by Cloudflare to third parties such as the Lumen Database (https://lumendatabase.org/). `,{question:`Enter value for --country`})),l.act===`abuse_dmca`&&l[`host-notification`]===void 0&&(l[`host-notification`]=await f(`host-notification`,`Notification type based on the abuse type. NOTE: Copyright (DMCA) and Trademark reports cannot be anonymous. `,{question:`Enter value for --host-notification`})),l.act===`abuse_dmca`&&l[`original-work`]===void 0&&(l[`original-work`]=await f(`original-work`,`Text not exceeding 255 characters. This field may be released by Cloudflare to third parties such as the Lumen Database (https://lumendatabase.org/). `,{question:`Enter value for --original-work`})),l.act===`abuse_dmca`&&l.signature===void 0&&(l.signature=await f(`signature`,`Required for DMCA reports, should be same as Name. An affirmation that all information in the report is true and accurate while agreeing to the policies of Cloudflare's abuse reports`,{question:`Enter value for --signature`})),l.act===`abuse_dmca`&&l.state===void 0&&(l.state=await f(`state`,`Text not exceeding 255 characters. This field may be released by Cloudflare to third parties such as the Lumen Database (https://lumendatabase.org/).`,{question:`Enter value for --state`})),l.act===`abuse_trademark`&&l[`host-notification`]===void 0&&(l[`host-notification`]=await f(`host-notification`,`Notification type based on the abuse type. NOTE: Copyright (DMCA) and Trademark reports cannot be anonymous. `,{question:`Enter value for --host-notification`})),l.act===`abuse_trademark`&&l.justification===void 0&&(l.justification=await f(`justification`,`A detailed description of the infringement, including any necessary access details and the exact steps needed to view the content, not exceeding 5000 characters. `,{question:`Enter value for --justification`})),l.act===`abuse_trademark`&&l[`trademark-number`]===void 0&&(l[`trademark-number`]=await f(`trademark-number`,`Text not exceeding 1000 characters`,{question:`Enter value for --trademark-number`})),l.act===`abuse_trademark`&&l[`trademark-office`]===void 0&&(l[`trademark-office`]=await f(`trademark-office`,`Text not exceeding 1000 characters`,{question:`Enter value for --trademark-office`})),l.act===`abuse_trademark`&&l[`trademark-symbol`]===void 0&&(l[`trademark-symbol`]=await f(`trademark-symbol`,`Text not exceeding 1000 characters`,{question:`Enter value for --trademark-symbol`})),l.act===`abuse_general`&&l[`host-notification`]===void 0&&(l[`host-notification`]=await f(`host-notification`,`Notification type based on the abuse type. NOTE: Copyright (DMCA) and Trademark reports cannot be anonymous. `,{question:`Enter value for --host-notification`})),l.act===`abuse_general`&&l.justification===void 0&&(l.justification=await f(`justification`,`A detailed description of the infringement, including any necessary access details and the exact steps needed to view the content, not exceeding 5000 characters. `,{question:`Enter value for --justification`})),l.act===`abuse_phishing`&&l[`host-notification`]===void 0&&(l[`host-notification`]=await f(`host-notification`,`Notification type based on the abuse type. NOTE: Copyright (DMCA) and Trademark reports cannot be anonymous. `,{question:`Enter value for --host-notification`})),l.act===`abuse_phishing`&&l.justification===void 0&&(l.justification=await f(`justification`,`A detailed description of the infringement, including any necessary access details and the exact steps needed to view the content, not exceeding 5000 characters. `,{question:`Enter value for --justification`})),l.act===`abuse_children`&&l[`host-notification`]===void 0&&(l[`host-notification`]=await f(`host-notification`,`Notification type based on the abuse type. NOTE: Copyright (DMCA) and Trademark reports cannot be anonymous. `,{question:`Enter value for --host-notification`})),l.act===`abuse_children`&&l.justification===void 0&&(l.justification=await f(`justification`,`A detailed description of the infringement, including any necessary access details and the exact steps needed to view the content, not exceeding 5000 characters. `,{question:`Enter value for --justification`})),l.act===`abuse_children`&&l[`ncmec-notification`]===void 0&&(l[`ncmec-notification`]=await f(`ncmec-notification`,`Notification type based on the abuse type. NOTE: Copyright (DMCA) and Trademark reports cannot be anonymous. `,{question:`Enter value for --ncmec-notification`})),l.act===`abuse_threat`&&l[`host-notification`]===void 0&&(l[`host-notification`]=await f(`host-notification`,`Notification type based on the abuse type. NOTE: Copyright (DMCA) and Trademark reports cannot be anonymous. `,{question:`Enter value for --host-notification`})),l.act===`abuse_threat`&&l.justification===void 0&&(l.justification=await f(`justification`,`A detailed description of the infringement, including any necessary access details and the exact steps needed to view the content, not exceeding 5000 characters. `,{question:`Enter value for --justification`})),l.act===`abuse_ncsei`&&l[`host-notification`]===void 0&&(l[`host-notification`]=await f(`host-notification`,`Notification type based on the abuse type. NOTE: Copyright (DMCA) and Trademark reports cannot be anonymous. `,{question:`Enter value for --host-notification`})),l.act===`abuse_ncsei`&&l[`ncsei-subject-representation`]===void 0)throw Error(`--ncsei-subject-representation is required (or pass --body with this field set).`);let h=u({act:l.act,comments:d(l.comments,`comments`,`text`),company:d(l.company,`company`,`text`),email:d(l.email,`email`,`text`),email2:d(l.email2,`email2`,`text`),name:d(l.name,`name`,`text`),reported_country:d(l[`reported-country`],`reported-country`,`text`),reported_user_agent:d(l[`reported-user-agent`],`reported-user-agent`,`text`),tele:d(l.tele,`tele`,`text`),title:d(l.title,`title`,`text`),urls:d(l.urls,`urls`,`text`),address1:d(l.address1,`address1`,`text`),agent_name:d(l[`agent-name`],`agent-name`,`text`),agree:l.agree,city:d(l.city,`city`,`text`),country:d(l.country,`country`,`text`),host_notification:l[`host-notification`],original_work:d(l[`original-work`],`original-work`,`text`),owner_notification:l[`owner-notification`],signature:d(l.signature,`signature`,`text`),state:d(l.state,`state`,`text`),justification:d(l.justification,`justification`,`text`),trademark_number:d(l[`trademark-number`],`trademark-number`,`text`),trademark_office:d(l[`trademark-office`],`trademark-office`,`text`),trademark_symbol:d(l[`trademark-symbol`],`trademark-symbol`,`text`),destination_ips:d(l[`destination-ips`],`destination-ips`,`text`),ports_protocols:d(l[`ports-protocols`],`ports-protocols`,`text`),source_ips:d(l[`source-ips`],`source-ips`,`text`),ncmec_notification:l[`ncmec-notification`],reg_who_request:{reg_who_authorization_statement:d(l[`reg-who-request-reg-who-authorization-statement`],`reg-who-request-reg-who-authorization-statement`,`text`),reg_who_good_faith_affirmation:l[`reg-who-request-reg-who-good-faith-affirmation`],reg_who_lawful_processing_agreement:l[`reg-who-request-reg-who-lawful-processing-agreement`],reg_who_legal_basis:d(l[`reg-who-request-reg-who-legal-basis`],`reg-who-request-reg-who-legal-basis`,`text`),reg_who_request_type:l[`reg-who-request-reg-who-request-type`],reg_who_requested_data_elements:l[`reg-who-request-reg-who-requested-data-elements`],reg_who_requestor_type:l[`reg-who-request-reg-who-requestor-type`]},ncsei_subject_representation:l[`ncsei-subject-representation`]}),g=await o(`Creating`,async()=>s.abuseReports.create({body:h,account_id:m,"report-type":l[`report-type`]}));i(g,{successLabel:`Created`})})};function b(e){return e.usage(`$0 abuse-reports emails list-submitted <report-id>
|
|
11
|
-
|
|
12
|
-
List successful emails sent to the submitter of a report submitted by the account. Does not include emails sent to customers or hosts.`).positional(`report-id`,{type:`string`,description:`Public report code.`,demandOption:!0}).option(`page`,{type:`number`,description:`Page number to retrieve (default 1).`}).option(`per-page`,{type:`number`,description:`Number of emails per page (default 20, max 100).`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const x={command:`list-submitted <report-id>`,describe:`List emails sent to an abuse report submitter`,builder:b,handler:async c=>s({command:`abuse-reports emails list-submitted`,classification:{safeFlags:[`dry-run`]}},c,async()=>{let s={page:c.page,per_page:c[`per-page`]};if(c.dryRun){let e=await n();a({command:`cf abuse-reports emails list-submitted`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}/abuse-reports/submitted/${c[`report-id`]==null?`<report-id>`:encodeURIComponent(String(c[`report-id`]))}/emails`,pathParams:{"report-id":String(c[`report-id`]??``)},query:s,bodyKind:`none`});return}let l=await t(c),u=c.local?e:await r();c.accountId=u;let d=await o(`Loading`,async()=>l.abuseReports.emails.listSubmitted({account_id:u,report_id:c[`report-id`],...s}));i(d,{successLabel:`Loaded`})})};function S(e){return e.usage(`$0 abuse-reports emails list
|
|
13
|
-
|
|
14
|
-
List emails sent to the customer for an abuse report. Returns all successful customer emails sent for the specified abuse report. Does not include emails sent to hosts or submitters.`).option(`report-id`,{type:`string`,description:`Abuse Report ID`,demandOption:!0}).option(`page`,{type:`number`,description:`Page number to retrieve (default 1)`}).option(`per-page`,{type:`number`,description:`Number of emails per page (default 20, max 100)`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const C={command:`list`,describe:`List abuse report emails`,builder:S,handler:async c=>s({command:`abuse-reports emails list`,classification:{safeFlags:[`dry-run`]}},c,async()=>{let s={page:c.page,per_page:c[`per-page`]};if(c.dryRun){let e=await n();a({command:`cf abuse-reports emails list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}/abuse-reports/${c[`report-id`]==null?`<report-id>`:encodeURIComponent(String(c[`report-id`]))}/emails`,pathParams:{"report-id":String(c[`report-id`]??``)},query:s,bodyKind:`none`});return}let l=await t(c),u=c.local?e:await r();c.accountId=u;let d=await o(`Loading`,async()=>l.abuseReports.emails.list({account_id:u,report_id:c[`report-id`],...s}));i(d,{successLabel:`Loaded`})})},w={command:`emails`,describe:`Emails sent for abuse reports`,builder:e=>e.command(C).command(x).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function T(e){return e.usage(`$0 abuse-reports get-submitted <report-id>
|
|
15
|
-
|
|
16
|
-
Retrieve a report submitted by the account.`).positional(`report-id`,{type:`string`,description:`Public report code.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const E={command:`get-submitted <report-id>`,describe:`Get a submitted abuse report`,builder:T,handler:async c=>s({command:`abuse-reports get-submitted`,classification:{safeFlags:[`dry-run`]}},c,async()=>{if(c.dryRun){let e=await n();a({command:`cf abuse-reports get-submitted`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}/abuse-reports/submitted/${c[`report-id`]==null?`<report-id>`:encodeURIComponent(String(c[`report-id`]))}`,pathParams:{"report-id":String(c[`report-id`]??``)},bodyKind:`none`});return}let s=await t(c),l=c.local?e:await r();c.accountId=l;let u=await o(`Loading`,async()=>s.abuseReports.getSubmitted({account_id:l,report_id:c[`report-id`]}));i(u,{successLabel:`Loaded`})})};function D(e){return e.usage(`$0 abuse-reports get <report-id>
|
|
17
|
-
|
|
18
|
-
Retrieve the details of an abuse report made against a domain or other content associated with the account. To retrieve a report that the account submitted, use the submitted abuse report endpoint instead.`).positional(`report-id`,{type:`string`,description:`Public report ID.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const O={command:`get <report-id>`,describe:`Get an abuse report against the account`,builder:D,handler:async c=>s({command:`abuse-reports get`,classification:{safeFlags:[`dry-run`]}},c,async()=>{if(c.dryRun){let e=await n();a({command:`cf abuse-reports get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}/abuse-reports/${c[`report-id`]==null?`<report-id>`:encodeURIComponent(String(c[`report-id`]))}`,pathParams:{"report-id":String(c[`report-id`]??``)},bodyKind:`none`});return}let s=await t(c),l=c.local?e:await r();c.accountId=l;let u=await o(`Loading`,async()=>s.abuseReports.get({account_id:l,"report-id":c[`report-id`]}));i(u,{successLabel:`Loaded`})})};function k(e){return e.usage(`$0 abuse-reports list-submitted
|
|
19
|
-
|
|
20
|
-
List abuse reports submitted by the account.`).option(`page`,{type:`number`,description:`Page of submitted reports to return.`}).option(`per-page`,{type:`number`,description:`Number of submitted reports per page.`}).option(`sort`,{type:`string`,description:`A property and direction to sort by (id, cdate, domain, type, status).`}).option(`id`,{type:`string`,description:`Filter by report code.`}).option(`domain`,{type:`string`,description:`Filter by reported domain. This parameter can be specified multiple times.`}).option(`created-before`,{type:`string`,description:`Return reports submitted before this time.`}).option(`created-after`,{type:`string`,description:`Return reports submitted after this time.`}).option(`status`,{type:`string`,description:`Filter by submitter-facing status. This parameter can be specified multiple times.`}).option(`type`,{type:`string`,description:`Filter by report type. This parameter can be specified multiple times.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const A={command:`list-submitted`,describe:`List submitted abuse reports`,builder:m(k),handler:async c=>s({command:`abuse-reports list-submitted`,classification:{safeFlags:[`dry-run`]}},c,async()=>{let s={page:c.page,per_page:c[`per-page`],sort:c.sort,id:c.id,domain:c.domain,created_before:c[`created-before`],created_after:c[`created-after`],status:c.status,type:c.type};if(c.dryRun){let e=await n();a({command:`cf abuse-reports list-submitted`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}/abuse-reports/submitted`,pathParams:{},query:s,bodyKind:`none`});return}let l=await t(c),u=c.local?e:await r();c.accountId=u;let d=await o(`Loading`,async()=>l.abuseReports.listSubmitted({account_id:u,...s}));i(d,{successLabel:`Loaded`})})};function j(e){return e.usage(`$0 abuse-reports list
|
|
21
|
-
|
|
22
|
-
List abuse reports made against domains or other content associated with the account. To list reports that the account submitted, use the submitted abuse reports endpoint instead.`).option(`page`,{type:`number`,description:`Where in pagination to start listing abuse reports`}).option(`per-page`,{type:`number`,description:`How many abuse reports per page to list`}).option(`sort`,{type:`string`,description:`A property to sort by, followed by the order (id, cdate, domain, type, status)`}).option(`search`,{type:`string`,description:`Free-text search. Returns reports whose report ID starts with the term or whose domain contains the term, both case-insensitively. Surrounding whitespace is ignored, and an empty value is treated as absent. Combined with the other filters using AND.`}).option(`domain`,{type:`string`,description:`Filter by domain name related to the abuse report`}).option(`created-before`,{type:`string`,description:`Returns reports created before the specified date`}).option(`created-after`,{type:`string`,description:`Returns reports created after the specified date`}).option(`status`,{type:`string`,description:`Filter by the status of the report.`,choices:[`accepted`,`in_review`]}).option(`type`,{type:`string`,description:`Filter by the type of the report.`,choices:[`PHISH`,`GEN`,`THREAT`,`DMCA`,`EMER`,`TM`,`REG_WHO`,`NCSEI`,`NETWORK`]}).option(`mitigation-status`,{type:`string`,description:`Filter reports that have any mitigations in the given status.`,choices:[`pending`,`active`,`in_review`,`cancelled`,`removed`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const M={command:`list`,describe:`List abuse reports against the account`,builder:m(j),handler:async c=>s({command:`abuse-reports list`,classification:{safeFlags:[`status`,`type`,`mitigation-status`,`dry-run`]}},c,async()=>{let s={page:c.page,per_page:c[`per-page`],sort:c.sort,search:c.search,domain:c.domain,created_before:c[`created-before`],created_after:c[`created-after`],status:c.status,type:c.type,mitigation_status:c[`mitigation-status`]};if(c.dryRun){let e=await n();a({command:`cf abuse-reports list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}/abuse-reports`,pathParams:{},query:s,bodyKind:`none`});return}let l=await t(c),u=c.local?e:await r();c.accountId=u;let d=await o(`Loading`,async()=>l.abuseReports.list({account_id:u,...s}));i(d,{successLabel:`Loaded`})})};function N(e){return e.usage(`$0 abuse-reports mitigations list
|
|
23
|
-
|
|
24
|
-
List mitigations done to remediate the abuse report.`).option(`report-id`,{type:`string`,description:`Abuse Report ID`,demandOption:!0}).option(`page`,{type:`number`,description:`Where in pagination to start listing abuse reports`}).option(`per-page`,{type:`number`,description:`How many abuse reports per page to list`}).option(`sort`,{type:`string`,description:`A property to sort by, followed by the order`,choices:[`type,asc`,`type,desc`,`effective_date,asc`,`effective_date,desc`,`status,asc`,`status,desc`,`entity_type,asc`,`entity_type,desc`]}).option(`type`,{type:`string`,description:`Filter by the type of mitigation. This filter parameter can be specified multiple times to include multiple types of mitigations in the result set.`}).option(`effective-before`,{type:`string`,description:`Returns mitigations that were dispatched before the given date`}).option(`effective-after`,{type:`string`,description:`Returns mitigation that were dispatched after the given date`}).option(`status`,{type:`string`,description:`Filter by the status of the mitigation.`,choices:[`pending`,`active`,`in_review`,`cancelled`,`removed`]}).option(`entity-type`,{type:`string`,description:`Filter by the type of entity the mitigation impacts.`,choices:[`url_pattern`,`account`,`zone`,`custom_expression`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const P={command:`list`,describe:`List abuse report mitigations`,builder:m(N),handler:async c=>s({command:`abuse-reports mitigations list`,classification:{safeFlags:[`sort`,`status`,`entity-type`,`dry-run`]}},c,async()=>{let s={page:c.page,per_page:c[`per-page`],sort:c.sort,type:c.type,effective_before:c[`effective-before`],effective_after:c[`effective-after`],status:c.status,entity_type:c[`entity-type`]};if(c.dryRun){let e=await n();a({command:`cf abuse-reports mitigations list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}/abuse-reports/${c[`report-id`]==null?`<report-id>`:encodeURIComponent(String(c[`report-id`]))}/mitigations`,pathParams:{"report-id":String(c[`report-id`]??``)},query:s,bodyKind:`none`});return}let l=await t(c),u=c.local?e:await r();c.accountId=u;let d=await o(`Loading`,async()=>l.abuseReports.mitigations.list({account_id:u,report_id:c[`report-id`],...s}));i(d,{successLabel:`Loaded`})})};function F(e){return e.usage("$0 abuse-reports mitigations review <report-id>\n\nRequest a review of mitigations applied because of an abuse report, or submit a report-level appeal. - To request a review of specific mitigations, send `appeals` with the mitigation IDs and reasons. Repeating a request for a mitigation with an unresolved appeal is idempotent and returns that mitigation in the in-review state. - To submit a report-level appeal, send `type` and, for a `counter_notice`, the counter-notice details in `data`. Report-level appeals are currently available only for DMCA (copyright) reports.").positional(`report-id`,{type:`string`,description:`Abuse Report ID`,demandOption:!0}).option(`appeals`,{type:`string`,description:`List of mitigations to appeal. Provide as a JSON array of objects or @path/to/file.json.`}).option(`data-city`,{type:`string`,description:`The data.city field`}).option(`data-company`,{type:`string`,description:`The data.company field`}).option(`data-counter-notice-response`,{type:`string`,description:`The data.counter_notice_response field`}).option(`data-country`,{type:`string`,description:`The data.country field`}).option(`data-email`,{type:`string`,description:`The data.email field`}).option(`data-full-name`,{type:`string`,description:`The data.full_name field`}).option(`data-jurisdiction-consent`,{type:`boolean`,description:`The data.jurisdiction_consent field`}).option(`data-perjury-attestation`,{type:`boolean`,description:`The data.perjury_attestation field`}).option(`data-phone-number`,{type:`string`,description:`The data.phone_number field`}).option(`data-signature`,{type:`string`,description:`The data.signature field`}).option(`data-state`,{type:`string`,description:`The data.state field`}).option(`data-street-address`,{type:`string`,description:`The data.street_address field`}).option(`data-urls`,{type:`string`,array:!0,description:`The data.urls field`}).option(`data-zip-code`,{type:`string`,description:`The data.zip_code field`}).option(`type`,{type:`string`,description:`The type of appeal being submitted.`,choices:[`counter_notice`,`content_removed`]}).coerce(`type`,e=>d(e,`type`,`text`)).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Submit an appeal for a report. Provide either a list of mitigations to appeal, or an appeal type with its supporting details, but not both. When type is "counter_notice", the counter-notice details are required.`}).check(e=>{if([`data-city`,`data-company`,`data-counter-notice-response`,`data-country`,`data-email`,`data-full-name`,`data-jurisdiction-consent`,`data-perjury-attestation`,`data-phone-number`,`data-signature`,`data-state`,`data-street-address`,`data-urls`,`data-zip-code`].some(t=>e[t]!==void 0)){let t=[`data-city`,`data-country`,`data-email`,`data-full-name`,`data-jurisdiction-consent`,`data-perjury-attestation`,`data-phone-number`,`data-signature`,`data-state`,`data-street-address`,`data-urls`,`data-zip-code`].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 --data-* flag is set`)}return!0})}const I={command:`review <report-id>`,describe:`Request review on mitigations`,builder:F,handler:async f=>s({command:`abuse-reports mitigations review`,classification:{safeFlags:[`data-jurisdiction-consent`,`data-perjury-attestation`,`type`,`dry-run`]}},f,async()=>{if(f.dryRun){let e=await n();a({command:`cf abuse-reports mitigations review`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}/abuse-reports/${f[`report-id`]==null?`<report-id>`:encodeURIComponent(String(f[`report-id`]))}/mitigations/appeal`,pathParams:{"report-id":String(f[`report-id`]??``)},bodyKind:`json`,body:f.body===void 0?u({appeals:l(f.appeals,`appeals`),data:{city:d(f[`data-city`],`data-city`,`text`),company:d(f[`data-company`],`data-company`,`text`),counter_notice_response:d(f[`data-counter-notice-response`],`data-counter-notice-response`,`text`),country:d(f[`data-country`],`data-country`,`text`),email:d(f[`data-email`],`data-email`,`text`),full_name:d(f[`data-full-name`],`data-full-name`,`text`),jurisdiction_consent:f[`data-jurisdiction-consent`],perjury_attestation:f[`data-perjury-attestation`],phone_number:d(f[`data-phone-number`],`data-phone-number`,`text`),signature:d(f[`data-signature`],`data-signature`,`text`),state:d(f[`data-state`],`data-state`,`text`),street_address:d(f[`data-street-address`],`data-street-address`,`text`),urls:f[`data-urls`],zip_code:d(f[`data-zip-code`],`data-zip-code`,`text`)},type:f.type}):c(f.body)});return}let s=await t(f),p=f.local?e:await r();if(f.accountId=p,f.body){let e=c(f.body),t=await o(`Creating`,async()=>s.abuseReports.mitigations.review({body:e,account_id:p,report_id:f[`report-id`]}));i(t,{successLabel:`Created`});return}let m=u({appeals:l(f.appeals,`appeals`),data:{city:d(f[`data-city`],`data-city`,`text`),company:d(f[`data-company`],`data-company`,`text`),counter_notice_response:d(f[`data-counter-notice-response`],`data-counter-notice-response`,`text`),country:d(f[`data-country`],`data-country`,`text`),email:d(f[`data-email`],`data-email`,`text`),full_name:d(f[`data-full-name`],`data-full-name`,`text`),jurisdiction_consent:f[`data-jurisdiction-consent`],perjury_attestation:f[`data-perjury-attestation`],phone_number:d(f[`data-phone-number`],`data-phone-number`,`text`),signature:d(f[`data-signature`],`data-signature`,`text`),state:d(f[`data-state`],`data-state`,`text`),street_address:d(f[`data-street-address`],`data-street-address`,`text`),urls:f[`data-urls`],zip_code:d(f[`data-zip-code`],`data-zip-code`,`text`)},type:f.type}),h=await o(`Creating`,async()=>s.abuseReports.mitigations.review({body:m,account_id:p,report_id:f[`report-id`]}));i(h,{successLabel:`Created`})})},L={command:`mitigations`,describe:`Mitigation actions taken in response to abuse reports`,builder:e=>e.command(P).command(I).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},R={command:`abuse-reports`,describe:`Submit and track abuse reports for phishing, malware, and other policy violations on Cloudflare-proxied sites`,builder:e=>e.command(y).command(O).command(E).command(M).command(A).command(_).command(w).command(L).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};export{R as default};
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
import{t as e}from"./local-BcPM4I0s.mjs";import{i as t,n}from"./auth-CAWalgW0.mjs";import{a as r,i,t as a}from"./context-BBLtgdR1.mjs";import{t as o}from"./output-BOe-3AQG.mjs";import{t as s}from"./dry-run-DRj2_uV3.mjs";import{t as c}from"./progress-CQqDtgmF.mjs";import{t as l}from"./run-CW2Cgi0S.mjs";import"./telemetry-0Y5hAtCX.mjs";import{i as u,n as d,t as f}from"./body-parser-DkHKPkJ7.mjs";import{n as p}from"./input-validation-D7z60HJH.mjs";import{a as m,i as h,n as g}from"./prompt-C8FyienX.mjs";import{t as _}from"./cli-types-9oYmRTHJ.mjs";function v(e){return e.usage(`$0 account-tags delete
|
|
3
|
-
|
|
4
|
-
Removes all tags from a specific account or zone-level resource.`).option(`if-match`,{type:`string`,description:`ETag value for optimistic concurrency control. When provided, the server will
|
|
5
|
-
verify the current resource ETag matches before applying the write. Returns
|
|
6
|
-
412 Precondition Failed if the resource has been modified since the ETag was
|
|
7
|
-
obtained. Omit this header for unconditional writes.`}).option(`resource-id`,{type:`string`,description:`Identifies the unique resource.`}).option(`resource-type`,{type:`string`,description:`Enum for worker_version resource type.`,choices:/* @__PURE__ */ `worker_version.access_application.access_group.access_service_token.account.account_ruleset.ai_gateway.alerting_policy.alerting_webhook.cloudflared_tunnel.cws_deployment.cws_policy.cws_policy_set.cws_workload.d1_database.device.durable_object_namespace.gateway_list.gateway_rule.image.infrastructure_target.kv_namespace.load_balancer_monitor.load_balancer_pool.pages_project.queue.r2_bucket.resource_share.stream_live_input.stream_video.vectorize_index.worker`.split(`.`)}).coerce(`resource-type`,e=>p(e,`resource-type`,`text`)).option(`worker-id`,{type:`string`,description:`Worker ID is required only for worker_version resources`}).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}).option(`body`,{type:`string`,description:`Request body schema for deleting tags from account-level resources. Use /zones/{zone_id}/tags for zone-level resources.`})}const y={command:`delete`,describe:`Delete tags from an account or zone-level resource`,builder:v,handler:async _=>l({command:`account-tags delete`,classification:{safeFlags:[`resource-type`,`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},_,async()=>{let l={};if(_[`if-match`]!==void 0&&(l[`If-Match`]=String(_[`if-match`])),_.dryRun){let e=_.zone===void 0?await r():void 0,t=_.zone===void 0?`accounts`:`zones`,n=_.zone??e??`<account-id>`;s({command:`cf account-tags delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/${t}/${n}/tags`,pathParams:{"account-or-zone":String(t),"account-or-zone-id":String(n)},bodyKind:`json`,body:_.body===void 0?f({resource_id:p(_[`resource-id`],`resource-id`,`text`),resource_type:_[`resource-type`],worker_id:p(_[`worker-id`],`worker-id`,`text`)}):d(_.body)});return}let v=await n(_),y=_.zone===void 0?`accounts`:`zones`,b=y===`zones`?await i({zone:_.zone},v,{quiet:_.quiet}):_.local?e:await a();if(y===`zones`?_.zoneId=b:_.accountId=b,!await g({force:!!_.force})){process.stderr.write(`Aborted.
|
|
8
|
-
`);return}if(_.body){let e=d(_.body),n=await c(`Deleting`,async()=>t(v,`DELETE`,`/${y}/${b}/tags`,{body:e,headers:Object.keys(l).length>0?l:void 0}));o(n,{successLabel:`Deleted`});return}_[`resource-id`]===void 0&&(_[`resource-id`]=await m(`resource-id`,`Identifies the unique resource.`)),_[`resource-type`]===void 0&&(_[`resource-type`]=await h(`resource-type`,`Enum for worker_version resource type.`,/* @__PURE__ */ `worker_version.access_application.access_group.access_service_token.account.account_ruleset.ai_gateway.alerting_policy.alerting_webhook.cloudflared_tunnel.cws_deployment.cws_policy.cws_policy_set.cws_workload.d1_database.device.durable_object_namespace.gateway_list.gateway_rule.image.infrastructure_target.kv_namespace.load_balancer_monitor.load_balancer_pool.pages_project.queue.r2_bucket.resource_share.stream_live_input.stream_video.vectorize_index.worker`.split(`.`))),_[`resource-type`]===`worker_version`&&_[`worker-id`]===void 0&&(_[`worker-id`]=await m(`worker-id`,`Worker ID is required only for worker_version resources`,{question:`Enter value for --worker-id`}));let x={};_[`resource-id`]!==void 0&&u(x,[`resource_id`],p(_[`resource-id`],`resource-id`,`text`)),_[`resource-type`]!==void 0&&u(x,[`resource_type`],_[`resource-type`]),_[`worker-id`]!==void 0&&u(x,[`worker_id`],p(_[`worker-id`],`worker-id`,`text`));let S=await c(`Deleting`,async()=>t(v,`DELETE`,`/${y}/${b}/tags`,{body:Object.keys(x).length>0?x:void 0,headers:Object.keys(l).length>0?l:void 0}));o(S,{successLabel:`Deleted`})})};function b(e){return e.usage(`$0 account-tags get
|
|
9
|
-
|
|
10
|
-
Retrieves tags for a specific account or zone-level resource.`).option(`resource-id`,{type:`string`,description:`The ID of the resource to retrieve tags for.`,demandOption:!0}).option(`resource-type`,{type:`string`,description:`The type of the resource.`,choices:/* @__PURE__ */ `access_application.access_group.access_service_token.account.account_ruleset.ai_gateway.alerting_policy.alerting_webhook.cloudflared_tunnel.cws_deployment.cws_policy.cws_policy_set.cws_workload.d1_database.device.durable_object_namespace.gateway_list.gateway_rule.image.infrastructure_target.kv_namespace.load_balancer_monitor.load_balancer_pool.pages_project.queue.r2_bucket.resource_share.stream_live_input.stream_video.vectorize_index.worker.worker_version`.split(`.`),demandOption:!0}).option(`worker-id`,{type:`string`,description:`Worker identifier. Required for worker_version resources.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const x={command:`get`,describe:`Get tags for an account or zone-level resource`,builder:_(b),handler:async t=>l({command:`account-tags get`,classification:{safeFlags:[`resource-type`,`dry-run`]}},t,async()=>{let l={resource_id:t[`resource-id`],resource_type:t[`resource-type`],worker_id:t[`worker-id`]};if(t.dryRun){let e=t.zone===void 0?await r():void 0,n=t.zone===void 0?`accounts`:`zones`,i=t.zone??e??`<account-id>`;s({command:`cf account-tags get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/${n}/${i}/tags`,pathParams:{"account-or-zone":String(n),"account-or-zone-id":String(i)},query:l,bodyKind:`none`});return}let u=await n(t),d=t.zone===void 0?`accounts`:`zones`,f=d===`zones`?await i({zone:t.zone},u,{quiet:t.quiet}):t.local?e:await a();d===`zones`?t.zoneId=f:t.accountId=f;let p=await c(`Loading`,async()=>u.accountTags.get({account_or_zone:d,account_or_zone_id:f,...l}));o(p,{successLabel:`Loaded`})})};function S(e){return e.usage(`$0 account-tags update
|
|
11
|
-
|
|
12
|
-
Creates or updates tags for a specific account or zone-level resource. Replaces all existing tags for the resource.`).option(`if-match`,{type:`string`,description:`ETag value for optimistic concurrency control. When provided, the server will
|
|
13
|
-
verify the current resource ETag matches before applying the write. Returns
|
|
14
|
-
412 Precondition Failed if the resource has been modified since the ETag was
|
|
15
|
-
obtained. Omit this header for unconditional writes.`}).option(`resource-id`,{type:`string`,description:`Identifies the unique resource.`}).option(`resource-type`,{type:`string`,description:`Enum for worker_version resource type.`,choices:/* @__PURE__ */ `worker_version.access_application.access_group.access_service_token.account.account_ruleset.ai_gateway.alerting_policy.alerting_webhook.cloudflared_tunnel.cws_deployment.cws_policy.cws_policy_set.cws_workload.d1_database.device.durable_object_namespace.gateway_list.gateway_rule.image.infrastructure_target.kv_namespace.load_balancer_monitor.load_balancer_pool.pages_project.queue.r2_bucket.resource_share.stream_live_input.stream_video.vectorize_index.worker`.split(`.`)}).coerce(`resource-type`,e=>p(e,`resource-type`,`text`)).option(`worker-id`,{type:`string`,description:`Worker ID is required only for worker_version resources`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Request body schema for setting tags on account-level resources.`})}const C={command:`update`,describe:`Set tags for an account or zone-level resource`,builder:S,handler:async g=>l({command:`account-tags update`,classification:{safeFlags:[`resource-type`,`dry-run`]}},g,async()=>{let l={};if(g[`if-match`]!==void 0&&(l[`If-Match`]=String(g[`if-match`])),g.dryRun){let e=g.zone===void 0?await r():void 0,t=g.zone===void 0?`accounts`:`zones`,n=g.zone??e??`<account-id>`;s({command:`cf account-tags update`,method:`PUT`,url:`https://api.cloudflare.com/client/v4/${t}/${n}/tags`,pathParams:{"account-or-zone":String(t),"account-or-zone-id":String(n)},bodyKind:`json`,body:g.body===void 0?f({resource_id:p(g[`resource-id`],`resource-id`,`text`),resource_type:g[`resource-type`],worker_id:p(g[`worker-id`],`worker-id`,`text`)}):d(g.body)});return}let _=await n(g),v=g.zone===void 0?`accounts`:`zones`,y=v===`zones`?await i({zone:g.zone},_,{quiet:g.quiet}):g.local?e:await a();if(v===`zones`?g.zoneId=y:g.accountId=y,g.body){let e=d(g.body),n=await c(`Updating`,async()=>t(_,`PUT`,`/${v}/${y}/tags`,{body:e,headers:Object.keys(l).length>0?l:void 0}));o(n,{successLabel:`Updated`});return}g[`resource-id`]===void 0&&(g[`resource-id`]=await m(`resource-id`,`Identifies the unique resource.`)),g[`resource-type`]===void 0&&(g[`resource-type`]=await h(`resource-type`,`Enum for worker_version resource type.`,/* @__PURE__ */ `worker_version.access_application.access_group.access_service_token.account.account_ruleset.ai_gateway.alerting_policy.alerting_webhook.cloudflared_tunnel.cws_deployment.cws_policy.cws_policy_set.cws_workload.d1_database.device.durable_object_namespace.gateway_list.gateway_rule.image.infrastructure_target.kv_namespace.load_balancer_monitor.load_balancer_pool.pages_project.queue.r2_bucket.resource_share.stream_live_input.stream_video.vectorize_index.worker`.split(`.`))),g[`resource-type`]===`worker_version`&&g[`worker-id`]===void 0&&(g[`worker-id`]=await m(`worker-id`,`Worker ID is required only for worker_version resources`,{question:`Enter value for --worker-id`}));let b={};g[`resource-id`]!==void 0&&u(b,[`resource_id`],p(g[`resource-id`],`resource-id`,`text`)),g[`resource-type`]!==void 0&&u(b,[`resource_type`],g[`resource-type`]),g[`worker-id`]!==void 0&&u(b,[`worker_id`],p(g[`worker-id`],`worker-id`,`text`));let x=await c(`Updating`,async()=>t(_,`PUT`,`/${v}/${y}/tags`,{body:Object.keys(b).length>0?b:void 0,headers:Object.keys(l).length>0?l:void 0}));o(x,{successLabel:`Updated`})})},w={command:`account-tags`,describe:`account-tags`,builder:e=>e.command(y).command(x).command(C).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};export{w as default};
|