cf 1.0.0-beta.12 → 1.0.0-beta.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_meta/commands.json +4648 -3810
- package/dist/_meta/hand-written-commands.json +356 -23
- package/dist/_meta/schemas.json +2522 -2143
- package/dist/abuse-reports-CVv52Q2w.mjs +24 -0
- package/dist/access-k1QjF5rE.mjs +2 -0
- package/dist/account-tags-RhvWOkOf.mjs +15 -0
- package/dist/{accounts-BSd4b-1j.mjs → accounts--3lrEkmu.mjs} +67 -80
- package/dist/{acm-BfI0p2sX.mjs → acm-BJxINEcu.mjs} +2 -2
- package/dist/{addressing-lfeJf7YB.mjs → addressing-BqByG9JW.mjs} +55 -43
- package/dist/{agent-memory-CP1qpn-y.mjs → agent-memory-D4dQMGbh.mjs} +2 -2
- package/dist/{ai-jFzFBANM.mjs → ai-CRkQ4pjC.mjs} +18 -16
- package/dist/{ai-audit-B_tSl78A.mjs → ai-audit-fMSn4c5L.mjs} +1 -1
- package/dist/ai-gateway-CbhvQK4L.mjs +80 -0
- package/dist/ai-search-CvVSnOA0.mjs +79 -0
- package/dist/{ai-security-CKGE547U.mjs → ai-security-Z_qpI92I.mjs} +1 -1
- package/dist/{alerting-CuxoqG3S.mjs → alerting-CpbCB8br.mjs} +5 -5
- package/dist/analytics-DkY9dOP1.mjs +17 -0
- package/dist/{analytics_engine-BoapM9wd.mjs → analytics_engine-DE_jvlx_.mjs} +1 -1
- package/dist/{api-security-Nk_bg-Kg.mjs → api-security-BHnOU5MM.mjs} +25 -25
- package/dist/argo-DhC5L_aN.mjs +14 -0
- package/dist/{artifacts-BS6cEqCB.mjs → artifacts-CrIupY7P.mjs} +3 -3
- package/dist/{audit-logs-x5tLqeX2.mjs → audit-logs-BjeBxTox.mjs} +1 -1
- package/dist/{auth-CKotxfap.mjs → auth-BNYfOMl0.mjs} +1 -1
- package/dist/{auth-AobvBmz4.mjs → auth-CAWalgW0.mjs} +1 -1
- package/dist/auth-DOwC01PW.mjs +2 -0
- package/dist/{auth-token-CtguMdmF.mjs → auth-token-Dop0wLCw.mjs} +1 -1
- package/dist/{autoconfig-PfnbLuEO.mjs → autoconfig-RQ3HS4m1.mjs} +151 -151
- package/dist/{basin-catalog-Ddi-t3q9.mjs → basin-catalog-DZ7QV-_N.mjs} +3 -3
- package/dist/{billing-CDMc4tvX.mjs → billing-BFyte9fL.mjs} +3 -3
- package/dist/bot-management-DXcbV3am.mjs +9 -0
- package/dist/{botnet-feed-CVwRm42k.mjs → botnet-feed-bGGp_cwX.mjs} +1 -1
- package/dist/{brand-protection-DfNf5REj.mjs → brand-protection-DN36XkxH.mjs} +2 -2
- package/dist/browser-run-hHD1RT43.mjs +42 -0
- package/dist/build-BhpWYgNm.mjs +2 -0
- package/dist/{build-BKPVP5ip.mjs → build-CCe7IrWT.mjs} +1 -1
- package/dist/{builds-BG5DHqU3.mjs → builds-6aO61R9R.mjs} +4 -4
- package/dist/{cache-C05hHXUp.mjs → cache-C5YJpMqi.mjs} +6 -6
- package/dist/{certificate-authorities-DyCFmZwR.mjs → certificate-authorities-CbqDAktQ.mjs} +1 -1
- package/dist/cf-oRSQKirD.mjs +18 -0
- package/dist/chunk-DSGVRFIS-CPI5cYtB.mjs +2 -0
- package/dist/{chunk-FT2NMTJB-DQ7s3x7Q.mjs → chunk-NDZDTP46-Civns3WA.mjs} +3 -3
- package/dist/{chunk-AUSY7DKT-BJX6Fdc4.mjs → chunk-TAK63GWY-DdMktrgc.mjs} +9 -2
- package/dist/{cli-D9qlPB-6.mjs → cli-ht4q6i2y.mjs} +1 -1
- package/dist/{client-certificates-B-m8rfM9.mjs → client-certificates-balaN_my.mjs} +1 -1
- package/dist/{client-side-security-M4oIUqID.mjs → client-side-security-3_4Ermmg.mjs} +3 -3
- package/dist/{cloud-connector-B63Dwn6n.mjs → cloud-connector-avx27sLw.mjs} +1 -1
- package/dist/cloudflared-D83U8Yn3.mjs +2 -0
- package/dist/{cloudforce-one-Dlc1GNFy.mjs → cloudforce-one-CXdeqJ9l.mjs} +143 -185
- package/dist/{command-VuxpEvmH.mjs → command-9VAc7b30.mjs} +1 -1
- package/dist/{command-CUkXxZsc.mjs → command-B_Ixlz8Q.mjs} +1 -1
- package/dist/{command-ZBQ1WITj.mjs → command-Bpzp8Mz2.mjs} +1 -1
- package/dist/{command-DBaNgfA4.mjs → command-BtDY_MKv.mjs} +1 -1
- package/dist/command-CUNMrMou.mjs +2 -0
- package/dist/{command-SS1z_t68.mjs → command-Ckb9FufU.mjs} +1 -1
- package/dist/{command-BWlpCtHe.mjs → command-CtVUNm__.mjs} +1 -1
- package/dist/{command-DyE8v4sd.mjs → command-CyJQ40fc.mjs} +1 -1
- package/dist/{command-BlGILcTA.mjs → command-DPX9sJVi.mjs} +1 -1
- package/dist/{command-CXxh5Hce.mjs → command-DXaRn1ls.mjs} +1 -1
- package/dist/{command-CRl00uA2.mjs → command-DjEJaOwV.mjs} +1 -1
- package/dist/{command-Rv2MR-eh.mjs → command-DtgJilOK.mjs} +1 -1
- package/dist/{command-CKQlxypn.mjs → command-OHov3PEc.mjs} +1 -1
- package/dist/{command-DEQSv-S1.mjs → command-OWe3v69l.mjs} +1 -1
- package/dist/{command-BQpXcGKV.mjs → command-SmWD-MeI.mjs} +1 -1
- package/dist/{completions-lf50FBGm.mjs → completions-CuqAO3N_.mjs} +11 -11
- package/dist/{connector-interrupts-DHN1KtUE.mjs → connector-interrupts-ftd10Du-.mjs} +1 -1
- package/dist/{connector-telemetry-events-CHg7FmXh.mjs → connector-telemetry-events-TwDZYdEM.mjs} +1 -1
- package/dist/{connector-telemetry-snapshots-CSifYi9r.mjs → connector-telemetry-snapshots-CZxkOuC3.mjs} +1 -1
- package/dist/{connectors-0UwPUav-.mjs → connectors-6lVSr-fd.mjs} +1 -1
- package/dist/containers-Dqs_ZnO2.mjs +78 -0
- package/dist/containers-ncw3bd3a.mjs +376 -0
- package/dist/{content-scan-COyTz0Wb.mjs → content-scan-BWFbqfQ0.mjs} +3 -3
- package/dist/{context-Bwkz4Lm_.mjs → context-BBLtgdR1.mjs} +2 -2
- package/dist/cps-C5phNoVU.mjs +6 -0
- package/dist/{csamScanner-jez2EYXC.mjs → csamScanner-BwZNZu0A.mjs} +3 -3
- package/dist/{ct-alerting-CACDrY0E.mjs → ct-alerting-DPp3qLqO.mjs} +1 -1
- package/dist/{custom-certificates-BBd92YlF.mjs → custom-certificates-pfpZcr06.mjs} +5 -5
- package/dist/{custom-csrs-DTwBiNMX.mjs → custom-csrs-DrvGRAkl.mjs} +2 -2
- package/dist/{custom-hostnames-DIWlqvN9.mjs → custom-hostnames-wGtmFbz1.mjs} +4 -4
- package/dist/{custom-nameservers-DISy8v8u.mjs → custom-nameservers-HTG6MPKv.mjs} +1 -1
- package/dist/{custom-pages-BHXO_NFv.mjs → custom-pages-DqEHBSVt.mjs} +2 -2
- package/dist/d1-EQMUlHTJ.mjs +94 -0
- package/dist/{dcv-delegation-Buq0hcm_.mjs → dcv-delegation-D6nj0Z5N.mjs} +1 -1
- package/dist/deploy-B22sEVHd.mjs +2 -0
- package/dist/deploy-context-DmG9rgPO.mjs +56 -0
- package/dist/deploy-input-BCjcuP6u.mjs +2 -0
- package/dist/{dev-D8FGPKRt.mjs → dev-ClhhXuNU.mjs} +1 -1
- package/dist/diagnostics-tqHjq-Pl.mjs +15 -0
- package/dist/dialog-D4Y9ocuF.mjs +2 -0
- package/dist/dist-DmRM6WSZ.mjs +449 -0
- package/dist/dist-uRuGmkMB.mjs +60 -0
- package/dist/{dls-8D00tqvC.mjs → dls-BEHj4X9T.mjs} +1 -1
- package/dist/{dns-firewall-DIiF4pro.mjs → dns-firewall-zwbkutyf.mjs} +1 -1
- package/dist/{dns-C-A5pwf3.mjs → dns-n4mfYBZg.mjs} +7 -7
- package/dist/dry-run-DRj2_uV3.mjs +2 -0
- package/dist/{durable-objects-CnIqbj84.mjs → durable-objects-CQ2dHhho.mjs} +1 -1
- package/dist/{email-auth-v97Md32E.mjs → email-auth-DOi6yOt3.mjs} +1 -1
- package/dist/{email-routing-I29RG4hb.mjs → email-routing-WcSPt22u.mjs} +5 -5
- package/dist/{email-security-BCarmbky.mjs → email-security-BXu3OGay.mjs} +15 -15
- package/dist/{email-sending-CsHk2HAJ.mjs → email-sending-B9zTlIjt.mjs} +2 -2
- package/dist/{error-sanitization-BWnGnB73.mjs → error-sanitization-DE_zSrXw.mjs} +1 -1
- package/dist/error-sanitization-DOCQ9Ykh.mjs +2 -0
- package/dist/{fieldExtractors-GIVe9jZa.mjs → fieldExtractors-B37m2lKW.mjs} +1 -1
- package/dist/{firewall-DpgFqJr3.mjs → firewall-CRtYO0Ha.mjs} +7 -7
- package/dist/{flagship-BVaXXlsX.mjs → flagship-DvTFZSay.mjs} +3 -3
- package/dist/{fraud-B5GQdEF2.mjs → fraud-uSyibsit.mjs} +5 -5
- package/dist/{google-tag-gateway-C4O61lp-.mjs → google-tag-gateway-BFXiiokq.mjs} +1 -1
- package/dist/hand-written-dry-run-B82fRl2N.mjs +2 -0
- package/dist/{healthchecks-BwYMnKSF.mjs → healthchecks-27u7b7Jb.mjs} +5 -5
- package/dist/{hostnames-DhrGRFeI.mjs → hostnames-DvaUSzsj.mjs} +1 -1
- package/dist/hyperdrive-BzJvPdu6.mjs +37 -0
- package/dist/{iam-sRKDU2Z3.mjs → iam-Dl3cU9GI.mjs} +1 -1
- package/dist/{images-DXdekLVs.mjs → images-C2OkI1j7.mjs} +6 -6
- package/dist/index.mjs +1 -1
- package/dist/init-Da8pe296.mjs +43 -0
- package/dist/{intel-CnVeSjIS.mjs → intel-DoB1g_K7.mjs} +2 -2
- package/dist/interactive-BW9T1D1q.mjs +48 -0
- package/dist/interactive-DGUWZ2Gk.mjs +2 -0
- package/dist/{ips-COCUG8mk.mjs → ips-BRt68epr.mjs} +1 -1
- package/dist/k2-_eq5ZY2t.mjs +11 -0
- package/dist/{keyless-certificates-l2_S__h3.mjs → keyless-certificates-DaO2yqYu.mjs} +2 -2
- package/dist/{keys-CDZreums.mjs → keys-7BQ3Zq6Y.mjs} +1 -1
- package/dist/{kv-DkpKVimq.mjs → kv-BTYCXKML.mjs} +4 -4
- package/dist/{lazy-command-_vZGz6mv.mjs → lazy-command-CDWwCsD2.mjs} +1 -1
- package/dist/{leaked-credential-checks-edbapECI.mjs → leaked-credential-checks-CPHOK_dE.mjs} +1 -1
- package/dist/load-balancers-Bu9pd2SV.mjs +76 -0
- package/dist/{local-C0lQ9sTg.mjs → local-BcPM4I0s.mjs} +1 -1
- package/dist/local-BundUuDT.mjs +2 -0
- package/dist/{local-runtime-DtnWXN0a.mjs → local-runtime-BHKyRlCP.mjs} +1 -1
- package/dist/{login-DeOM4v0L.mjs → login-BBYC_BtH.mjs} +1 -1
- package/dist/{login-BrjOuHKu.mjs → login-D2uoWhWh.mjs} +1 -1
- package/dist/{logo-matches-CF8321pb.mjs → logo-matches-Bc1DQ4-g.mjs} +1 -1
- package/dist/{logos-Bd8xNRKW.mjs → logos-X5B8z7Iv.mjs} +1 -1
- package/dist/{logpush-BYk3qqwY.mjs → logpush-C2ENi1et.mjs} +7 -7
- package/dist/{logs-Jcj2NN8H.mjs → logs-BKDz7kBW.mjs} +1 -1
- package/dist/{magic-cloud-networking-Dgdb9H0f.mjs → magic-cloud-networking-B60Gld8A.mjs} +6 -6
- package/dist/{magic-network-monitoring-CxVU4MZB.mjs → magic-network-monitoring-CxXI3Y-H.mjs} +4 -4
- package/dist/{magic-transit-KDyfUgTv.mjs → magic-transit-ZCSaCbl8.mjs} +171 -168
- package/dist/{managed-defense-CxaDeNUd.mjs → managed-defense-DrxMb7xi.mjs} +1 -1
- package/dist/{managed-transforms-C7rT5E-x.mjs → managed-transforms-AI7KrRU1.mjs} +1 -1
- package/dist/{matches-BtKqG8T9.mjs → matches-rPMLS3Ip.mjs} +1 -1
- package/dist/mcp-DXUMvEWt.mjs +32 -0
- package/dist/mesh-MmBCQ37q.mjs +26 -0
- package/dist/{migrate-DHlfR_gZ.mjs → migrate-CZNq63Uj.mjs} +1 -1
- package/dist/{monetization-pLalYYMI.mjs → monetization-DQE5VtUO.mjs} +2 -2
- package/dist/{mtls-certificates-DYA9Wu-c.mjs → mtls-certificates-DwkEb-Hy.mjs} +2 -2
- package/dist/{network-DrJxPWXQ.mjs → network-BcfobxQY.mjs} +1 -1
- package/dist/{network-interconnects-D73MlYG8.mjs → network-interconnects-BU3tN_Ab.mjs} +10 -11
- package/dist/o11y-BBv7nedp.mjs +93 -0
- package/dist/{oauth-B08YQ4xq.mjs → oauth-BUr8bPwo.mjs} +1 -1
- package/dist/{oauth-clients-CkPDLFd-.mjs → oauth-clients-qWVImhHE.mjs} +3 -3
- package/dist/{oauth-TGbM1Q0V.mjs → oauth-n8um6MFk.mjs} +1 -1
- package/dist/{oauth-scopes-VgliqcQe.mjs → oauth-scopes-CdeIgJIx.mjs} +1 -1
- package/dist/organization-CJeOVWH7.mjs +71 -0
- package/dist/{organizations-Dk0D9ukm.mjs → organizations-BpfoqZcG.mjs} +1 -1
- package/dist/{origin-ca-certificates-BSFqMTn-.mjs → origin-ca-certificates-Bimf07RF.mjs} +2 -2
- package/dist/origin-post-quantum-encryption-CM-If38w.mjs +6 -0
- package/dist/{origin-tls-client-auth-BzE3WpcN.mjs → origin-tls-client-auth-BPwYPhc9.mjs} +3 -3
- package/dist/{output-BGqhvqe2.mjs → output-BOe-3AQG.mjs} +1 -1
- package/dist/{page-rules-BKaU37cM.mjs → page-rules-DOeekMrj.mjs} +4 -4
- package/dist/pages-Bn0Sg1ay.mjs +54 -0
- package/dist/pay-per-crawl-qJpseNNx.mjs +38 -0
- package/dist/pay-per-use-C1MWKJ4O.mjs +33 -0
- package/dist/pipelines-rCwXQw6S.mjs +44 -0
- package/dist/{precursor-DmQ32-Sp.mjs → precursor-Bk8Pp6jT.mjs} +2 -2
- package/dist/previews-BEheHO3T.mjs +4 -0
- package/dist/process-2wmDCy17.mjs +2 -0
- package/dist/{progress-BYVZuEcG.mjs → progress-CQqDtgmF.mjs} +1 -1
- package/dist/prompt-C8FyienX.mjs +3 -0
- package/dist/{queries-DPBkVynK.mjs → queries-DJ8looyq.mjs} +1 -1
- package/dist/{queues-CCXRs98q.mjs → queues-BBH9Q-Tt.mjs} +7 -7
- package/dist/{r2-BKuBSW8h.mjs → r2-CdJKpP2w.mjs} +52 -49
- package/dist/{radar-Gv1yFoRX.mjs → radar-CdvQL4xm.mjs} +1 -1
- package/dist/raw-fetch-DbXN3SlE.mjs +2 -0
- package/dist/{realtime-CVl-rvgx.mjs → realtime-onrXppzh.mjs} +9 -9
- package/dist/{registrar-swlnh22i.mjs → registrar-CbEBc5IE.mjs} +2 -2
- package/dist/{registrar-sandbox-cmOYDnkp.mjs → registrar-sandbox-BJhn1HFT.mjs} +3 -3
- package/dist/{registry-C20J1MW0.mjs → registry-PI6sO95I.mjs} +1 -1
- package/dist/{reporting-Bgwsvol1.mjs → reporting-bXZY6obP.mjs} +1 -1
- package/dist/{request-headers-CUee83pa.mjs → request-headers-D8L95bEQ.mjs} +1 -1
- package/dist/{request-tracers-BBiJvVDz.mjs → request-tracers-CihskC2A.mjs} +1 -1
- package/dist/{resolve-DvxgnWjL.mjs → resolve-CaTBV-c6.mjs} +1 -1
- package/dist/resolve-DCGSzUDQ.mjs +2 -0
- package/dist/{resource-sharing-C1JiYLbl.mjs → resource-sharing-DDqcCHVs.mjs} +11 -11
- package/dist/{resource-tagging-C9VOSlDR.mjs → resource-tagging-D63RpBce.mjs} +1 -1
- package/dist/{rules-BDunCGMj.mjs → rules-CAW0-Wde.mjs} +1 -1
- package/dist/rulesets-CPir63Qc.mjs +37 -0
- package/dist/{rum-B7XiECe9.mjs → rum-BfwTcuup.mjs} +1 -1
- package/dist/{run-CrZgB8L_.mjs → run-CW2Cgi0S.mjs} +1 -1
- package/dist/run-DEynXvCc.mjs +2 -0
- package/dist/{schema-DC0kdqgV.mjs → schema-elj12WOx.mjs} +1 -1
- package/dist/{schema-flags-BUZR9SLd.mjs → schema-flags-BTItUu1K.mjs} +1 -1
- package/dist/{scim-CORcs2wK.mjs → scim-CtZ1FeQE.mjs} +1 -1
- package/dist/{secrets-store-BoZQaFey.mjs → secrets-store-BIuBYUJT.mjs} +2 -2
- package/dist/{security-insights-DblK_6sg.mjs → security-insights-DfUus0bs.mjs} +3 -3
- package/dist/{security-txt-Dl7RPnRb.mjs → security-txt-CgZOsAIZ.mjs} +1 -1
- package/dist/{session-BWe9et4K.mjs → session-BcM8Vyyx.mjs} +1 -1
- package/dist/shared-CpS23WwR.mjs +2 -0
- package/dist/{smart-shield-DX0-8ruu.mjs → smart-shield-ClgB7r-9.mjs} +5 -5
- package/dist/{snippets-BFN-Lg3K.mjs → snippets-DLO3iFAg.mjs} +1 -1
- package/dist/spawn-D07wH-MH.mjs +10 -0
- package/dist/{spectrum-HYWLWB0X.mjs → spectrum-B6qkjR_Z.mjs} +5 -5
- package/dist/{speed-Dj0YhfRe.mjs → speed-DX5X2EIR.mjs} +1 -1
- package/dist/sql-CF044HDW.mjs +4 -0
- package/dist/src-BMATTZU_.mjs +125 -0
- package/dist/{ssl-BQL1fNtD.mjs → ssl-CM-rChEC.mjs} +5 -5
- package/dist/{startup-profile-0X5ebbng.mjs → startup-profile-CrtCP-6-.mjs} +1 -1
- package/dist/startup-profile-D662WI9s.mjs +2 -0
- package/dist/state-D7uNYnoi.mjs +2 -0
- package/dist/{state-Dy6-rKNd.mjs → state-DIiIGEtR.mjs} +1 -1
- package/dist/{stream-DKv2TtZN.mjs → stream-5EmUOQvy.mjs} +5 -5
- package/dist/{submit-Byt2KBGI.mjs → submit-lEAaRSMR.mjs} +1 -1
- package/dist/{tags-BIBsdG68.mjs → tags-CX23P4jg.mjs} +1 -1
- package/dist/telemetry-0Y5hAtCX.mjs +2 -0
- package/dist/{telemetry-bu3txnIR.mjs → telemetry-ZlCi5Xhc.mjs} +1 -1
- package/dist/{tenant-Bs4Ac4n3.mjs → tenant-DnI7QziH.mjs} +1 -1
- package/dist/{tenant-custom-nameservers-DcaELeCE.mjs → tenant-custom-nameservers-MR0dlcGm.mjs} +1 -1
- package/dist/{tools-BbTX7rlM.mjs → tools-CSc5DmFi.mjs} +1 -1
- package/dist/{tunnels-DWcrz9Sf.mjs → tunnels-NzYpsfi_.mjs} +15 -15
- package/dist/{turnstile-2MIGp2ce.mjs → turnstile-M7sKCEz3.mjs} +11 -11
- package/dist/{update-check-CfB0PNTY.mjs → update-check-HFkPml6x.mjs} +1 -1
- package/dist/update-check-aTutXNRd.mjs +2 -0
- package/dist/update-check-worker.mjs +1 -1
- package/dist/{url-info-B8udoxlx.mjs → url-info-Dos9VOXV.mjs} +1 -1
- package/dist/{url-normalization-C6AdWtaE.mjs → url-normalization-CZbFOq_v.mjs} +2 -2
- package/dist/{url-scanner-Dg0c_yVb.mjs → url-scanner-B7quLPGW.mjs} +2 -2
- package/dist/{user-BLZ-0Bgv.mjs → user-rXca0J9M.mjs} +14 -14
- package/dist/values-D-rrZrDa.mjs +4 -0
- package/dist/{vectorize-DEUSEQXY.mjs → vectorize-D2tf_oA8.mjs} +4 -4
- package/dist/version-BGnqDvNR.mjs +2 -0
- package/dist/waiting-rooms-DrA3-0bw.mjs +53 -0
- package/dist/{web-assets-CLZdWOmN.mjs → web-assets-DQAfvPT9.mjs} +3 -3
- package/dist/{web3-DjeavuLg.mjs → web3-MI0GQDnu.mjs} +5 -5
- package/dist/workers-By6Pf8fv.mjs +40 -0
- package/dist/{workers-builds-COn5Ne5G.mjs → workers-builds-6YsWsCmC.mjs} +2 -2
- package/dist/{workers-for-platforms-tchCXwNF.mjs → workers-for-platforms-DL8fC1qR.mjs} +4 -6
- package/dist/workers-vpc-BYx6sbgd.mjs +13 -0
- package/dist/workflows-ByQLnV0E.mjs +52 -0
- package/dist/{wrangler-migration-BpJqCFAa.mjs → wrangler-migration-C6FKHER1.mjs} +1 -1
- package/dist/{zaraz-BvQZB0YY.mjs → zaraz-CgbpmA85.mjs} +1 -1
- package/dist/{zero-trust-FStq4uhn.mjs → zero-trust-CpjTkkWt.mjs} +418 -402
- package/dist/{zone-tymlghWb.mjs → zone-DnKIe6po.mjs} +1 -1
- package/dist/{zones-Bz6dgT9_.mjs → zones--5ZzsDmQ.mjs} +15 -15
- package/package.json +25 -26
- package/dist/abuse-reports-Cy9RcWPu.mjs +0 -24
- package/dist/access-DwJm1qet.mjs +0 -2
- package/dist/account-tags-d0RkEw6s.mjs +0 -15
- package/dist/ai-gateway-CJaUlfGc.mjs +0 -82
- package/dist/ai-search-PTlpY1T9.mjs +0 -79
- package/dist/analytics-NPND7aHB.mjs +0 -20
- package/dist/argo-DYfLQhd2.mjs +0 -10
- package/dist/auth-CBtzZ3Sw.mjs +0 -2
- package/dist/bot-management-UrCM3P8K.mjs +0 -9
- package/dist/browser-run-DVaiBLYX.mjs +0 -46
- package/dist/build-C4giET85.mjs +0 -2
- package/dist/cf-B9aqZZKD.mjs +0 -18
- package/dist/chunk-KKDV4JPS-D3kwd1Nq.mjs +0 -2
- package/dist/cloudflared-B48cfu95.mjs +0 -2
- package/dist/command-CzvlHvov.mjs +0 -2
- package/dist/containers-DRzgE46U.mjs +0 -375
- package/dist/containers-DuIsM7lM.mjs +0 -78
- package/dist/cps-B7_BJaAU.mjs +0 -6
- package/dist/d1-MvAQMvvo.mjs +0 -89
- package/dist/deploy-BS47vZvJ.mjs +0 -2
- package/dist/deploy-context-Cfushp8j.mjs +0 -56
- package/dist/deploy-input-BAhS5LYx.mjs +0 -2
- package/dist/diagnostics-ChDfJ-Gv.mjs +0 -15
- package/dist/dialog-CL1Zy4pn.mjs +0 -2
- package/dist/dist-8rP3V95o.mjs +0 -57
- package/dist/dist-CYFkGHYv.mjs +0 -487
- package/dist/dry-run-DmsbOMF1.mjs +0 -2
- package/dist/error-sanitization-C_a2LxOK.mjs +0 -2
- package/dist/hyperdrive-DAA8Fazg.mjs +0 -37
- package/dist/init-j47MT4Qe.mjs +0 -39
- package/dist/interactive-Dqv0RWVU.mjs +0 -42
- package/dist/interactive-Wpd3FcDc.mjs +0 -2
- package/dist/k2-CmHkArHL.mjs +0 -13
- package/dist/load-balancers-C5YMvhXD.mjs +0 -76
- package/dist/local-D5L5Bwju.mjs +0 -2
- package/dist/mcp-QDd1Iyc0.mjs +0 -32
- package/dist/mesh-DtrIzl5z.mjs +0 -26
- package/dist/observability-CvN9oxAo.mjs +0 -80
- package/dist/organization-DIwqRBBV.mjs +0 -75
- package/dist/origin-post-quantum-encryption-BOKWKDTY.mjs +0 -6
- package/dist/pages-2Xg-lrMf.mjs +0 -54
- package/dist/pay-per-crawl-5-KTQXRr.mjs +0 -65
- package/dist/pay-per-use-sGebKzNK.mjs +0 -6
- package/dist/pipelines-BM-T7mMK.mjs +0 -44
- package/dist/previews-DDQ9ACDJ.mjs +0 -4
- package/dist/prompt-F5wxc8zq.mjs +0 -3
- package/dist/raw-fetch-DyYWa923.mjs +0 -2
- package/dist/resolve-qwL1LmKN.mjs +0 -2
- package/dist/rulesets-BMGxrnv9.mjs +0 -37
- package/dist/run-nNxXb_Cv.mjs +0 -2
- package/dist/shared-0N31BXkY.mjs +0 -2
- package/dist/spawn-DZ9A-xXb.mjs +0 -10
- package/dist/src-CAiZlihY.mjs +0 -117
- package/dist/startup-profile-CXnsF4c7.mjs +0 -2
- package/dist/state-BA2CanJ_.mjs +0 -2
- package/dist/telemetry-DBXOMuLh.mjs +0 -2
- package/dist/update-check-B-CvDAUz.mjs +0 -2
- package/dist/values-BUK-m0Jg.mjs +0 -4
- package/dist/version-BZNc7Y3t.mjs +0 -2
- package/dist/waiting-rooms-BycGk2Y0.mjs +0 -53
- package/dist/workers-C_SfyU-v.mjs +0 -38
- package/dist/workers-vpc-CKts8Av0.mjs +0 -13
- package/dist/workflows-BibtWuOx.mjs +0 -43
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import{n as e}from"./auth-
|
|
2
|
+
import{n as e}from"./auth-CAWalgW0.mjs";import{i as t}from"./context-BBLtgdR1.mjs";import{t as n}from"./output-BOe-3AQG.mjs";import{t as r}from"./dry-run-DRj2_uV3.mjs";import{t as i}from"./progress-CQqDtgmF.mjs";import{t as a}from"./run-CW2Cgi0S.mjs";import"./telemetry-0Y5hAtCX.mjs";function o(e){return e.usage(`$0 zone activate
|
|
3
3
|
|
|
4
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 s={command:`activate`,describe:`Rerun the Activation Check`,builder:o,handler:async o=>a({command:`zone activate`,classification:{safeFlags:[`dry-run`]}},o,async()=>{if(o.dryRun){r({command:`cf zone activate`,method:`PUT`,url:`https://api.cloudflare.com/client/v4/zones/${o.zone??o.zoneId??`<zone>`}/activation_check`,pathParams:{"zone-id":String(o.zone??o[`zone-id`]??``)},bodyKind:`none`});return}let a=await e(o),s=await t({zone:o.zone},a,{quiet:o.quiet});o.zoneId=s;let c=await i(`Updating`,async()=>a.zone.activate({zone_id:s}));n(c,{successLabel:`Updated`})})},c={command:`zone`,describe:`zone`,builder:e=>e.command(s).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};export{c as default};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import{n as e}from"./auth-
|
|
2
|
+
import{n as e}from"./auth-CAWalgW0.mjs";import{i as t}from"./context-BBLtgdR1.mjs";import{t as n}from"./output-BOe-3AQG.mjs";import{t as r}from"./dry-run-DRj2_uV3.mjs";import{t as i}from"./progress-CQqDtgmF.mjs";import{t as a}from"./run-CW2Cgi0S.mjs";import"./telemetry-0Y5hAtCX.mjs";import{n as o,r as s,t as c}from"./body-parser-DkHKPkJ7.mjs";import{n as l}from"./input-validation-D7z60HJH.mjs";import{a as u,i as d,n as f}from"./prompt-C8FyienX.mjs";import{t as p}from"./cli-types-9oYmRTHJ.mjs";function ee(e){return e.usage(`$0 zones aegis edit
|
|
3
3
|
|
|
4
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 s=>a({command:`zones aegis edit`,classification:{safeFlags:[`value-enabled`,`dry-run`]}},s,async()=>{if(s.dryRun){r({command:`cf zones aegis edit`,method:`PATCH`,url:`https://api.cloudflare.com/client/v4/zones/${s.zone??s.zoneId??`<zone>`}/settings/aegis`,pathParams:{"zone-id":String(s.zone??s[`zone-id`]??``)},bodyKind:`json`,body:s.body===void 0?c({value:{enabled:s[`value-enabled`],pool_id:l(s[`value-pool-id`],`value-pool-id`,`text`)}}):o(s.body)});return}let a=await e(s),u=await t({zone:s.zone},a,{quiet:s.quiet});if(s.zoneId=u,s.body){let e=o(s.body),t=await i(`Updating`,async()=>a.zones.aegis.edit({...e,zone_id:u}));n(t,{successLabel:`Updated`});return}let d=c({value:{enabled:s[`value-enabled`],pool_id:l(s[`value-pool-id`],`value-pool-id`,`text`)}}),f=await i(`Updating`,async()=>a.zones.aegis.edit({...d,zone_id:u}));n(f,{successLabel:`Updated`})})};function m(e){return e.usage(`$0 zones aegis get
|
|
5
5
|
|
|
@@ -13,13 +13,13 @@ Binary AST is a new binary encoding for JavaScript that enables faster parsing o
|
|
|
13
13
|
- "off": Feature disabled.
|
|
14
14
|
- "on": Binary AST enabled.
|
|
15
15
|
- "latest": Binary AST enabled using the latest version.
|
|
16
|
-
`,choices:[`off`,`on`,`latest`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const C={command:`edit`,describe:`Change Binary AST setting`,builder:S,handler:async s=>a({command:`zones binary-ast edit`,classification:{safeFlags:[`value`,`dry-run`]}},s,async()=>{if(s.dryRun){r({command:`cf zones binary-ast edit`,method:`PATCH`,url:`https://api.cloudflare.com/client/v4/zones/${s.zone??s.zoneId??`<zone>`}/settings/binary_ast`,pathParams:{"zone-id":String(s.zone??s[`zone-id`]??``)},bodyKind:`json`,body:s.body===void 0?c({value:
|
|
16
|
+
`,choices:[`off`,`on`,`latest`]}).coerce(`value`,e=>l(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 C={command:`edit`,describe:`Change Binary AST setting`,builder:S,handler:async s=>a({command:`zones binary-ast edit`,classification:{safeFlags:[`value`,`dry-run`]}},s,async()=>{if(s.dryRun){r({command:`cf zones binary-ast edit`,method:`PATCH`,url:`https://api.cloudflare.com/client/v4/zones/${s.zone??s.zoneId??`<zone>`}/settings/binary_ast`,pathParams:{"zone-id":String(s.zone??s[`zone-id`]??``)},bodyKind:`json`,body:s.body===void 0?c({value:s.value}):o(s.body)});return}let a=await e(s),l=await t({zone:s.zone},a,{quiet:s.quiet});if(s.zoneId=l,s.body){let e=o(s.body),t=await i(`Updating`,async()=>a.zones.binaryAst.edit({...e,zone_id:l}));n(t,{successLabel:`Updated`});return}s.value===void 0&&(s.value=await d(`value`,`Controls Binary AST behavior: - "off": Feature disabled. - "on": Binary AST enabled. - "latest": Binary AST enabled using the latest version. `,[`off`,`on`,`latest`]));let u=c({value:s.value}),f=await i(`Updating`,async()=>a.zones.binaryAst.edit({...u,zone_id:l}));n(f,{successLabel:`Updated`})})};function w(e){return e.usage(`$0 zones binary-ast get
|
|
17
17
|
|
|
18
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 T={command:`get`,describe:`Get Binary AST setting`,builder:w,handler:async o=>a({command:`zones binary-ast get`,classification:{safeFlags:[`dry-run`]}},o,async()=>{if(o.dryRun){r({command:`cf zones binary-ast get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/zones/${o.zone??o.zoneId??`<zone>`}/settings/binary_ast`,pathParams:{"zone-id":String(o.zone??o[`zone-id`]??``)},bodyKind:`none`});return}let a=await e(o),s=await t({zone:o.zone},a,{quiet:o.quiet});o.zoneId=s;let c=await i(`Loading`,async()=>a.zones.binaryAst.get({zone_id:s}));n(c,{successLabel:`Loaded`})})},E={command:`binary-ast`,describe:`Operations for binary-ast`,builder:e=>e.command(C).command(T).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function D(e){return e.usage(`$0 zones create
|
|
19
19
|
|
|
20
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
21
|
typically a partner-hosted zone or a CNAME setup.
|
|
22
|
-
`,choices:[`full`,`partial`,`secondary`,`internal`],default:`full`}).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 O={command:`create`,describe:`Create Zone`,builder:D,handler:async t=>a({command:`zones create`,classification:{safeFlags:[`type`,`dry-run`]}},t,async()=>{if(t.dryRun){r({command:`cf zones create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/zones`,pathParams:{},bodyKind:`json`,body:t.body===void 0?c({account:{id:l(t[`account-id`],`account-id`,`text`)},name:l(t.name,`name`,`text`),type:
|
|
22
|
+
`,choices:[`full`,`partial`,`secondary`,`internal`],default:`full`}).coerce(`type`,e=>l(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 O={command:`create`,describe:`Create Zone`,builder:D,handler:async t=>a({command:`zones create`,classification:{safeFlags:[`type`,`dry-run`]}},t,async()=>{if(t.dryRun){r({command:`cf zones create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/zones`,pathParams:{},bodyKind:`json`,body:t.body===void 0?c({account:{id:l(t[`account-id`],`account-id`,`text`)},name:l(t.name,`name`,`text`),type:t.type}):o(t.body)});return}let a=await e(t);if(t.body){let e=o(t.body),r=await i(`Creating`,async()=>a.zones.create({...e}));n(r,{successLabel:`Created`});return}t.name===void 0&&(t.name=await u(`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 s=c({account:{id:l(t[`account-id`],`account-id`,`text`)},name:l(t.name,`name`,`text`),type:t.type}),d=await i(`Creating`,async()=>a.zones.create({...s}));n(d,{successLabel:`Created`})})};function k(e){return e.usage(`$0 zones delete
|
|
23
23
|
|
|
24
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 A={command:`delete`,describe:`Delete Zone`,builder:k,handler:async o=>a({command:`zones delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},o,async()=>{if(o.dryRun){r({command:`cf zones delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/zones/${o.zone??o.zoneId??`<zone>`}`,pathParams:{"zone-id":String(o.zone??o[`zone-id`]??``)},bodyKind:`none`});return}let a=await e(o),s=await t({zone:o.zone},a,{quiet:o.quiet});if(o.zoneId=s,!await f({force:!!o.force})){process.stderr.write(`Aborted.
|
|
25
25
|
`);return}let c=await i(`Deleting`,async()=>a.zones.delete({zone_id:s}));n(c,{successLabel:`Deleted`})})};function j(e){return e.usage(`$0 zones edit
|
|
@@ -31,10 +31,10 @@ benefits.
|
|
|
31
31
|
zone is typically a partner-hosted zone or a CNAME setup. This
|
|
32
32
|
parameter is only available to Enterprise customers or if it has
|
|
33
33
|
been explicitly enabled on a zone.
|
|
34
|
-
`,choices:[`full`,`partial`,`secondary`,`internal`]}).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 M={command:`edit`,describe:`Edit Zone`,builder:j,handler:async s=>a({command:`zones edit`,classification:{safeFlags:[`paused`,`type`,`dry-run`]}},s,async()=>{if(s.dryRun){r({command:`cf zones edit`,method:`PATCH`,url:`https://api.cloudflare.com/client/v4/zones/${s.zone??s.zoneId??`<zone>`}`,pathParams:{"zone-id":String(s.zone??s[`zone-id`]??``)},bodyKind:`json`,body:s.body===void 0?c({paused:s.paused,plan:{id:l(s[`plan-id`],`plan-id`,`text`)},type:
|
|
34
|
+
`,choices:[`full`,`partial`,`secondary`,`internal`]}).coerce(`type`,e=>l(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 M={command:`edit`,describe:`Edit Zone`,builder:j,handler:async s=>a({command:`zones edit`,classification:{safeFlags:[`paused`,`type`,`dry-run`]}},s,async()=>{if(s.dryRun){r({command:`cf zones edit`,method:`PATCH`,url:`https://api.cloudflare.com/client/v4/zones/${s.zone??s.zoneId??`<zone>`}`,pathParams:{"zone-id":String(s.zone??s[`zone-id`]??``)},bodyKind:`json`,body:s.body===void 0?c({paused:s.paused,plan:{id:l(s[`plan-id`],`plan-id`,`text`)},type:s.type,vanity_name_servers:s[`vanity-name-servers`]}):o(s.body)});return}let a=await e(s),u=await t({zone:s.zone},a,{quiet:s.quiet});if(s.zoneId=u,s.body){let e=o(s.body),t=await i(`Updating`,async()=>a.zones.edit({...e,zone_id:u}));n(t,{successLabel:`Updated`});return}let d=c({paused:s.paused,plan:{id:l(s[`plan-id`],`plan-id`,`text`)},type:s.type,vanity_name_servers:s[`vanity-name-servers`]}),f=await i(`Updating`,async()=>a.zones.edit({...d,zone_id:u}));n(f,{successLabel:`Updated`})})};function N(e){return e.usage(`$0 zones fonts edit
|
|
36
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`]}).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 P={command:`edit`,describe:`Change Cloudflare Fonts setting`,builder:N,handler:async s=>a({command:`zones fonts edit`,classification:{safeFlags:[`value`,`dry-run`]}},s,async()=>{if(s.dryRun){r({command:`cf zones fonts edit`,method:`PATCH`,url:`https://api.cloudflare.com/client/v4/zones/${s.zone??s.zoneId??`<zone>`}/settings/fonts`,pathParams:{"zone-id":String(s.zone??s[`zone-id`]??``)},bodyKind:`json`,body:s.body===void 0?c({value:
|
|
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=>l(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 P={command:`edit`,describe:`Change Cloudflare Fonts setting`,builder:N,handler:async s=>a({command:`zones fonts edit`,classification:{safeFlags:[`value`,`dry-run`]}},s,async()=>{if(s.dryRun){r({command:`cf zones fonts edit`,method:`PATCH`,url:`https://api.cloudflare.com/client/v4/zones/${s.zone??s.zoneId??`<zone>`}/settings/fonts`,pathParams:{"zone-id":String(s.zone??s[`zone-id`]??``)},bodyKind:`json`,body:s.body===void 0?c({value:s.value}):o(s.body)});return}let a=await e(s),l=await t({zone:s.zone},a,{quiet:s.quiet});if(s.zoneId=l,s.body){let e=o(s.body),t=await i(`Updating`,async()=>a.zones.fonts.edit({...e,zone_id:l}));n(t,{successLabel:`Updated`});return}s.value===void 0&&(s.value=await d(`value`,`Whether the feature is enabled or disabled.`,[`on`,`off`]));let u=c({value:s.value}),f=await i(`Updating`,async()=>a.zones.fonts.edit({...u,zone_id:l}));n(f,{successLabel:`Updated`})})};function F(e){return e.usage(`$0 zones fonts get
|
|
38
38
|
|
|
39
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 I={command:`get`,describe:`Get Cloudflare Fonts setting`,builder:F,handler:async o=>a({command:`zones fonts get`,classification:{safeFlags:[`dry-run`]}},o,async()=>{if(o.dryRun){r({command:`cf zones fonts get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/zones/${o.zone??o.zoneId??`<zone>`}/settings/fonts`,pathParams:{"zone-id":String(o.zone??o[`zone-id`]??``)},bodyKind:`none`});return}let a=await e(o),s=await t({zone:o.zone},a,{quiet:o.quiet});o.zoneId=s;let c=await i(`Loading`,async()=>a.zones.fonts.get({zone_id:s}));n(c,{successLabel:`Loaded`})})},L={command:`fonts`,describe:`Fonts operations`,builder:e=>e.command(P).command(I).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function R(e){return e.usage(`$0 zones get
|
|
40
40
|
|
|
@@ -44,7 +44,7 @@ HTTP/2 Prioritization controls the order in which assets are delivered to browse
|
|
|
44
44
|
- "off": Use browser default prioritization.
|
|
45
45
|
- "on": Use Cloudflare's optimized prioritization.
|
|
46
46
|
- "custom": Use custom prioritization rules.
|
|
47
|
-
`,choices:[`off`,`on`,`custom`]}).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 V={command:`edit`,describe:`Change HTTP/2 Prioritization setting`,builder:B,handler:async s=>a({command:`zones h2-prioritization edit`,classification:{safeFlags:[`value`,`dry-run`]}},s,async()=>{if(s.dryRun){r({command:`cf zones h2-prioritization edit`,method:`PATCH`,url:`https://api.cloudflare.com/client/v4/zones/${s.zone??s.zoneId??`<zone>`}/settings/h2_prioritization`,pathParams:{"zone-id":String(s.zone??s[`zone-id`]??``)},bodyKind:`json`,body:s.body===void 0?c({value:
|
|
47
|
+
`,choices:[`off`,`on`,`custom`]}).coerce(`value`,e=>l(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 V={command:`edit`,describe:`Change HTTP/2 Prioritization setting`,builder:B,handler:async s=>a({command:`zones h2-prioritization edit`,classification:{safeFlags:[`value`,`dry-run`]}},s,async()=>{if(s.dryRun){r({command:`cf zones h2-prioritization edit`,method:`PATCH`,url:`https://api.cloudflare.com/client/v4/zones/${s.zone??s.zoneId??`<zone>`}/settings/h2_prioritization`,pathParams:{"zone-id":String(s.zone??s[`zone-id`]??``)},bodyKind:`json`,body:s.body===void 0?c({value:s.value}):o(s.body)});return}let a=await e(s),l=await t({zone:s.zone},a,{quiet:s.quiet});if(s.zoneId=l,s.body){let e=o(s.body),t=await i(`Updating`,async()=>a.zones.h2Prioritization.edit({...e,zone_id:l}));n(t,{successLabel:`Updated`});return}s.value===void 0&&(s.value=await d(`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 u=c({value:s.value}),f=await i(`Updating`,async()=>a.zones.h2Prioritization.edit({...u,zone_id:l}));n(f,{successLabel:`Updated`})})};function H(e){return e.usage(`$0 zones h2-prioritization get
|
|
48
48
|
|
|
49
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 U={command:`get`,describe:`Get HTTP/2 Prioritization setting`,builder:H,handler:async o=>a({command:`zones h2-prioritization get`,classification:{safeFlags:[`dry-run`]}},o,async()=>{if(o.dryRun){r({command:`cf zones h2-prioritization get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/zones/${o.zone??o.zoneId??`<zone>`}/settings/h2_prioritization`,pathParams:{"zone-id":String(o.zone??o[`zone-id`]??``)},bodyKind:`none`});return}let a=await e(o),s=await t({zone:o.zone},a,{quiet:o.quiet});o.zoneId=s;let c=await i(`Loading`,async()=>a.zones.h2Prioritization.get({zone_id:s}));n(c,{successLabel:`Loaded`})})},W={command:`h2-prioritization`,describe:`Operations for h2-prioritization`,builder:e=>e.command(V).command(U).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function G(e){return e.usage(`$0 zones holds create
|
|
50
50
|
|
|
@@ -64,11 +64,11 @@ Retrieve whether the zone is subject to a zone hold, and metadata about the hold
|
|
|
64
64
|
- "on": Resizing is enabled for same-zone images only.
|
|
65
65
|
- "open": Resizing is enabled for images from any origin.
|
|
66
66
|
- "latest": Resizing is enabled for same-zone images using the latest version.
|
|
67
|
-
`,choices:[`off`,`on`,`open`,`latest`]}).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:re,handler:async s=>a({command:`zones image-resizing edit`,classification:{safeFlags:[`value`,`dry-run`]}},s,async()=>{if(s.dryRun){r({command:`cf zones image-resizing edit`,method:`PATCH`,url:`https://api.cloudflare.com/client/v4/zones/${s.zone??s.zoneId??`<zone>`}/settings/image_resizing`,pathParams:{"zone-id":String(s.zone??s[`zone-id`]??``)},bodyKind:`json`,body:s.body===void 0?c({value:
|
|
67
|
+
`,choices:[`off`,`on`,`open`,`latest`]}).coerce(`value`,e=>l(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:re,handler:async s=>a({command:`zones image-resizing edit`,classification:{safeFlags:[`value`,`dry-run`]}},s,async()=>{if(s.dryRun){r({command:`cf zones image-resizing edit`,method:`PATCH`,url:`https://api.cloudflare.com/client/v4/zones/${s.zone??s.zoneId??`<zone>`}/settings/image_resizing`,pathParams:{"zone-id":String(s.zone??s[`zone-id`]??``)},bodyKind:`json`,body:s.body===void 0?c({value:s.value}):o(s.body)});return}let a=await e(s),l=await t({zone:s.zone},a,{quiet:s.quiet});if(s.zoneId=l,s.body){let e=o(s.body),t=await i(`Updating`,async()=>a.zones.imageResizing.edit({...e,zone_id:l}));n(t,{successLabel:`Updated`});return}s.value===void 0&&(s.value=await d(`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 u=c({value:s.value}),f=await i(`Updating`,async()=>a.zones.imageResizing.edit({...u,zone_id:l}));n(f,{successLabel:`Updated`})})};function ae(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 oe={command:`get`,describe:`Get Image Transformations setting`,builder:ae,handler:async o=>a({command:`zones image-resizing get`,classification:{safeFlags:[`dry-run`]}},o,async()=>{if(o.dryRun){r({command:`cf zones image-resizing get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/zones/${o.zone??o.zoneId??`<zone>`}/settings/image_resizing`,pathParams:{"zone-id":String(o.zone??o[`zone-id`]??``)},bodyKind:`none`});return}let a=await e(o),s=await t({zone:o.zone},a,{quiet:o.quiet});o.zoneId=s;let c=await i(`Loading`,async()=>a.zones.imageResizing.get({zone_id:s}));n(c,{successLabel:`Loaded`})})},se={command:`image-resizing`,describe:`Operations for image-resizing`,builder:e=>e.command(ie).command(oe).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function ce(e){return e.usage(`$0 zones list
|
|
68
68
|
|
|
69
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 le={command:`list`,describe:`List Zones`,builder:p(ce),handler:async t=>a({command:`zones list`,classification:{safeFlags:[`status`,`order`,`direction`,`match`,`dry-run`]}},t,async()=>{let a={name:t.name,status:t.status,type:t.type,"account.id":t[`account-id`],"account.name":t[`account-name`],page:t.page,per_page:t[`per-page`],order:t.order,direction:t.direction,match:t.match};if(t.dryRun){r({command:`cf zones list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/zones`,pathParams:{},query:a,bodyKind:`none`});return}let o=await e(t),s=await i(`Loading`,async()=>o.zones.list(a));n(s,{successLabel:`Loaded`})})};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 de={command:`edit`,describe:`Change Origin H2 Max Streams Setting`,builder:ue,handler:async s=>a({command:`zones origin-h2-max-streams edit`,classification:{safeFlags:[`dry-run`]}},s,async()=>{if(s.dryRun){r({command:`cf zones origin-h2-max-streams edit`,method:`PATCH`,url:`https://api.cloudflare.com/client/v4/zones/${s.zone??s.zoneId??`<zone>`}/settings/origin_h2_max_streams`,pathParams:{"zone-id":String(s.zone??s[`zone-id`]??``)},bodyKind:`json`,body:s.body===void 0?c({value:s.value}):o(s.body)});return}let a=await e(s),l=await t({zone:s.zone},a,{quiet:s.quiet});if(s.zoneId=l,s.body){let e=o(s.body),t=await i(`Updating`,async()=>a.zones.originH2MaxStreams.edit({...e,zone_id:l}));n(t,{successLabel:`Updated`});return}if(s.value===void 0)throw Error(`--value is required (or pass --body with this field set).`);let u=c({value:s.value}),d=await i(`Updating`,async()=>a.zones.originH2MaxStreams.edit({...u,zone_id:l}));n(d,{successLabel:`Updated`})})};function fe(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 pe={command:`get`,describe:`Get Origin H2 Max Streams Setting`,builder:fe,handler:async o=>a({command:`zones origin-h2-max-streams get`,classification:{safeFlags:[`dry-run`]}},o,async()=>{if(o.dryRun){r({command:`cf zones origin-h2-max-streams get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/zones/${o.zone??o.zoneId??`<zone>`}/settings/origin_h2_max_streams`,pathParams:{"zone-id":String(o.zone??o[`zone-id`]??``)},bodyKind:`none`});return}let a=await e(o),s=await t({zone:o.zone},a,{quiet:o.quiet});o.zoneId=s;let c=await i(`Loading`,async()=>a.zones.originH2MaxStreams.get({zone_id:s}));n(c,{successLabel:`Loaded`})})},me={command:`origin-h2-max-streams`,describe:`Origin H2 Max Streams operations`,builder:e=>e.command(de).command(pe).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function he(e){return e.usage(`$0 zones origin-max-http-version edit
|
|
70
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`]}).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 ge={command:`edit`,describe:`Change Origin Max HTTP Version Setting`,builder:he,handler:async s=>a({command:`zones origin-max-http-version edit`,classification:{safeFlags:[`value`,`dry-run`]}},s,async()=>{if(s.dryRun){r({command:`cf zones origin-max-http-version edit`,method:`PATCH`,url:`https://api.cloudflare.com/client/v4/zones/${s.zone??s.zoneId??`<zone>`}/settings/origin_max_http_version`,pathParams:{"zone-id":String(s.zone??s[`zone-id`]??``)},bodyKind:`json`,body:s.body===void 0?c({value:
|
|
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=>l(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 ge={command:`edit`,describe:`Change Origin Max HTTP Version Setting`,builder:he,handler:async s=>a({command:`zones origin-max-http-version edit`,classification:{safeFlags:[`value`,`dry-run`]}},s,async()=>{if(s.dryRun){r({command:`cf zones origin-max-http-version edit`,method:`PATCH`,url:`https://api.cloudflare.com/client/v4/zones/${s.zone??s.zoneId??`<zone>`}/settings/origin_max_http_version`,pathParams:{"zone-id":String(s.zone??s[`zone-id`]??``)},bodyKind:`json`,body:s.body===void 0?c({value:s.value}):o(s.body)});return}let a=await e(s),l=await t({zone:s.zone},a,{quiet:s.quiet});if(s.zoneId=l,s.body){let e=o(s.body),t=await i(`Updating`,async()=>a.zones.originMaxHttpVersion.edit({...e,zone_id:l}));n(t,{successLabel:`Updated`});return}s.value===void 0&&(s.value=await d(`value`,`Value of the Origin Max HTTP Version Setting.`,[`2`,`1`]));let u=c({value:s.value}),f=await i(`Updating`,async()=>a.zones.originMaxHttpVersion.edit({...u,zone_id:l}));n(f,{successLabel:`Updated`})})};function _e(e){return e.usage(`$0 zones origin-max-http-version get
|
|
72
72
|
|
|
73
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 ve={command:`get`,describe:`Get Origin Max HTTP Version Setting`,builder:_e,handler:async o=>a({command:`zones origin-max-http-version get`,classification:{safeFlags:[`dry-run`]}},o,async()=>{if(o.dryRun){r({command:`cf zones origin-max-http-version get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/zones/${o.zone??o.zoneId??`<zone>`}/settings/origin_max_http_version`,pathParams:{"zone-id":String(o.zone??o[`zone-id`]??``)},bodyKind:`none`});return}let a=await e(o),s=await t({zone:o.zone},a,{quiet:o.quiet});o.zoneId=s;let c=await i(`Loading`,async()=>a.zones.originMaxHttpVersion.get({zone_id:s}));n(c,{successLabel:`Loaded`})})},ye={command:`origin-max-http-version`,describe:`Origin Max Http Version operations`,builder:e=>e.command(ge).command(ve).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function be(e){return e.usage(`$0 zones origin-tls-compliance-modes delete
|
|
74
74
|
|
|
@@ -89,18 +89,18 @@ Updates a single zone setting by the identifier`).positional(`setting-id`,{type:
|
|
|
89
89
|
|
|
90
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 Ge={command:`get <setting-id>`,describe:`Get zone setting`,builder:We,handler:async o=>a({command:`zones settings get`,classification:{safeFlags:[`dry-run`]}},o,async()=>{if(o.dryRun){r({command:`cf zones settings get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/zones/${o.zone??o.zoneId??`<zone>`}/settings/${o[`setting-id`]==null?`<setting-id>`:encodeURIComponent(String(o[`setting-id`]))}`,pathParams:{"zone-id":String(o.zone??o[`zone-id`]??``),"setting-id":String(o[`setting-id`]??``)},bodyKind:`none`});return}let a=await e(o),s=await t({zone:o.zone},a,{quiet:o.quiet});o.zoneId=s;let c=await i(`Loading`,async()=>a.zones.settings.get({zone_id:s,setting_id:o[`setting-id`]}));n(c,{successLabel:`Loaded`})})},Ke={command:`settings`,describe:`Operations for settings`,builder:e=>e.command(Ue).command(Ge).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function qe(e){return e.usage(`$0 zones speed-brain edit
|
|
91
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`]}).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 Je={command:`edit`,describe:`Change Cloudflare Speed Brain setting`,builder:qe,handler:async s=>a({command:`zones speed-brain edit`,classification:{safeFlags:[`value`,`dry-run`]}},s,async()=>{if(s.dryRun){r({command:`cf zones speed-brain edit`,method:`PATCH`,url:`https://api.cloudflare.com/client/v4/zones/${s.zone??s.zoneId??`<zone>`}/settings/speed_brain`,pathParams:{"zone-id":String(s.zone??s[`zone-id`]??``)},bodyKind:`json`,body:s.body===void 0?c({value:
|
|
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=>l(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 Je={command:`edit`,describe:`Change Cloudflare Speed Brain setting`,builder:qe,handler:async s=>a({command:`zones speed-brain edit`,classification:{safeFlags:[`value`,`dry-run`]}},s,async()=>{if(s.dryRun){r({command:`cf zones speed-brain edit`,method:`PATCH`,url:`https://api.cloudflare.com/client/v4/zones/${s.zone??s.zoneId??`<zone>`}/settings/speed_brain`,pathParams:{"zone-id":String(s.zone??s[`zone-id`]??``)},bodyKind:`json`,body:s.body===void 0?c({value:s.value}):o(s.body)});return}let a=await e(s),l=await t({zone:s.zone},a,{quiet:s.quiet});if(s.zoneId=l,s.body){let e=o(s.body),t=await i(`Updating`,async()=>a.zones.speedBrain.edit({...e,zone_id:l}));n(t,{successLabel:`Updated`});return}s.value===void 0&&(s.value=await d(`value`,`Whether the feature is enabled or disabled.`,[`on`,`off`]));let u=c({value:s.value}),f=await i(`Updating`,async()=>a.zones.speedBrain.edit({...u,zone_id:l}));n(f,{successLabel:`Updated`})})};function Ye(e){return e.usage(`$0 zones speed-brain get
|
|
93
93
|
|
|
94
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 Xe={command:`get`,describe:`Get Cloudflare Speed Brain setting`,builder:Ye,handler:async o=>a({command:`zones speed-brain get`,classification:{safeFlags:[`dry-run`]}},o,async()=>{if(o.dryRun){r({command:`cf zones speed-brain get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/zones/${o.zone??o.zoneId??`<zone>`}/settings/speed_brain`,pathParams:{"zone-id":String(o.zone??o[`zone-id`]??``)},bodyKind:`none`});return}let a=await e(o),s=await t({zone:o.zone},a,{quiet:o.quiet});o.zoneId=s;let c=await i(`Loading`,async()=>a.zones.speedBrain.get({zone_id:s}));n(c,{successLabel:`Loaded`})})},Ze={command:`speed-brain`,describe:`Speed Brain operations`,builder:e=>e.command(Je).command(Xe).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function Qe(e){return e.usage(`$0 zones subscriptions create
|
|
95
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`]}).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 $e={command:`create`,describe:`Create Zone Subscription`,builder:Qe,handler:async u=>a({command:`zones subscriptions create`,classification:{safeFlags:[`frequency`,`rate-plan-externally-managed`,`rate-plan-is-contract`,`dry-run`]}},u,async()=>{if(u.dryRun){r({command:`cf zones subscriptions create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/zones/${u.zone??u.zoneId??`<zone>`}/subscription`,pathParams:{"zone-id":String(u.zone??u[`zone-id`]??``)},bodyKind:`json`,body:u.body===void 0?c({app:{install_id:l(u[`app-install-id`],`app-install-id`,`text`)},component_values:s(u[`component-values`],`component-values`),frequency:
|
|
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=>l(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 $e={command:`create`,describe:`Create Zone Subscription`,builder:Qe,handler:async u=>a({command:`zones subscriptions create`,classification:{safeFlags:[`frequency`,`rate-plan-externally-managed`,`rate-plan-is-contract`,`dry-run`]}},u,async()=>{if(u.dryRun){r({command:`cf zones subscriptions create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/zones/${u.zone??u.zoneId??`<zone>`}/subscription`,pathParams:{"zone-id":String(u.zone??u[`zone-id`]??``)},bodyKind:`json`,body:u.body===void 0?c({app:{install_id:l(u[`app-install-id`],`app-install-id`,`text`)},component_values:s(u[`component-values`],`component-values`),frequency:u.frequency,rate_plan:{currency:l(u[`rate-plan-currency`],`rate-plan-currency`,`text`),externally_managed:u[`rate-plan-externally-managed`],id:l(u[`rate-plan-id`],`rate-plan-id`,`text`),is_contract:u[`rate-plan-is-contract`],public_name:l(u[`rate-plan-public-name`],`rate-plan-public-name`,`text`),scope:l(u[`rate-plan-scope`],`rate-plan-scope`,`text`),sets:u[`rate-plan-sets`]}}):o(u.body)});return}let a=await e(u),d=await t({zone:u.zone},a,{quiet:u.quiet});if(u.zoneId=d,u.body){let e=o(u.body),t=await i(`Creating`,async()=>a.zones.subscriptions.create({body:e,zone_id:d}));n(t,{successLabel:`Created`});return}let f=c({app:{install_id:l(u[`app-install-id`],`app-install-id`,`text`)},component_values:s(u[`component-values`],`component-values`),frequency:u.frequency,rate_plan:{currency:l(u[`rate-plan-currency`],`rate-plan-currency`,`text`),externally_managed:u[`rate-plan-externally-managed`],id:l(u[`rate-plan-id`],`rate-plan-id`,`text`),is_contract:u[`rate-plan-is-contract`],public_name:l(u[`rate-plan-public-name`],`rate-plan-public-name`,`text`),scope:l(u[`rate-plan-scope`],`rate-plan-scope`,`text`),sets:u[`rate-plan-sets`]}}),p=await i(`Creating`,async()=>a.zones.subscriptions.create({body:f,zone_id:d}));n(p,{successLabel:`Created`})})};function et(e){return e.usage(`$0 zones subscriptions delete
|
|
97
97
|
|
|
98
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 tt={command:`delete`,describe:`Delete Zone Subscription`,builder:et,handler:async o=>a({command:`zones subscriptions delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},o,async()=>{if(o.dryRun){r({command:`cf zones subscriptions delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/zones/${o.zone??o.zoneId??`<zone>`}/subscription`,pathParams:{"zone-id":String(o.zone??o[`zone-id`]??``)},bodyKind:`none`});return}let a=await e(o),s=await t({zone:o.zone},a,{quiet:o.quiet});if(o.zoneId=s,!await f({force:!!o.force})){process.stderr.write(`Aborted.
|
|
99
99
|
`);return}let c=await i(`Deleting`,async()=>a.zones.subscriptions.delete({zone_id:s}));n(c,{successLabel:`Deleted`})})};function nt(e){return e.usage(`$0 zones subscriptions get
|
|
100
100
|
|
|
101
101
|
Lists zone subscription details.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const rt={command:`get`,describe:`Zone Subscription Details`,builder:nt,handler:async o=>a({command:`zones subscriptions get`,classification:{safeFlags:[`dry-run`]}},o,async()=>{if(o.dryRun){r({command:`cf zones subscriptions get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/zones/${o.zone??o.zoneId??`<zone>`}/subscription`,pathParams:{"zone-id":String(o.zone??o[`zone-id`]??``)},bodyKind:`none`});return}let a=await e(o),s=await t({zone:o.zone},a,{quiet:o.quiet});o.zoneId=s;let c=await i(`Loading`,async()=>a.zones.subscriptions.get({zone_id:s}));n(c,{successLabel:`Loaded`})})};function it(e){return e.usage(`$0 zones subscriptions update
|
|
102
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`]}).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 at={command:`update`,describe:`Update Zone Subscription`,builder:it,handler:async u=>a({command:`zones subscriptions update`,classification:{safeFlags:[`frequency`,`rate-plan-externally-managed`,`rate-plan-is-contract`,`dry-run`]}},u,async()=>{if(u.dryRun){r({command:`cf zones subscriptions update`,method:`PUT`,url:`https://api.cloudflare.com/client/v4/zones/${u.zone??u.zoneId??`<zone>`}/subscription`,pathParams:{"zone-id":String(u.zone??u[`zone-id`]??``)},bodyKind:`json`,body:u.body===void 0?c({app:{install_id:l(u[`app-install-id`],`app-install-id`,`text`)},component_values:s(u[`component-values`],`component-values`),frequency:
|
|
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=>l(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 at={command:`update`,describe:`Update Zone Subscription`,builder:it,handler:async u=>a({command:`zones subscriptions update`,classification:{safeFlags:[`frequency`,`rate-plan-externally-managed`,`rate-plan-is-contract`,`dry-run`]}},u,async()=>{if(u.dryRun){r({command:`cf zones subscriptions update`,method:`PUT`,url:`https://api.cloudflare.com/client/v4/zones/${u.zone??u.zoneId??`<zone>`}/subscription`,pathParams:{"zone-id":String(u.zone??u[`zone-id`]??``)},bodyKind:`json`,body:u.body===void 0?c({app:{install_id:l(u[`app-install-id`],`app-install-id`,`text`)},component_values:s(u[`component-values`],`component-values`),frequency:u.frequency,rate_plan:{currency:l(u[`rate-plan-currency`],`rate-plan-currency`,`text`),externally_managed:u[`rate-plan-externally-managed`],id:l(u[`rate-plan-id`],`rate-plan-id`,`text`),is_contract:u[`rate-plan-is-contract`],public_name:l(u[`rate-plan-public-name`],`rate-plan-public-name`,`text`),scope:l(u[`rate-plan-scope`],`rate-plan-scope`,`text`),sets:u[`rate-plan-sets`]}}):o(u.body)});return}let a=await e(u),d=await t({zone:u.zone},a,{quiet:u.quiet});if(u.zoneId=d,u.body){let e=o(u.body),t=await i(`Updating`,async()=>a.zones.subscriptions.update({body:e,zone_id:d}));n(t,{successLabel:`Updated`});return}let f=c({app:{install_id:l(u[`app-install-id`],`app-install-id`,`text`)},component_values:s(u[`component-values`],`component-values`),frequency:u.frequency,rate_plan:{currency:l(u[`rate-plan-currency`],`rate-plan-currency`,`text`),externally_managed:u[`rate-plan-externally-managed`],id:l(u[`rate-plan-id`],`rate-plan-id`,`text`),is_contract:u[`rate-plan-is-contract`],public_name:l(u[`rate-plan-public-name`],`rate-plan-public-name`,`text`),scope:l(u[`rate-plan-scope`],`rate-plan-scope`,`text`),sets:u[`rate-plan-sets`]}}),p=await i(`Updating`,async()=>a.zones.subscriptions.update({body:f,zone_id:d}));n(p,{successLabel:`Updated`})})},ot={command:`subscriptions`,describe:`Operations for subscriptions`,builder:e=>e.command($e).command(tt).command(rt).command(at).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function st(e){return e.usage(`$0 zones transformations-allowed-origins edit
|
|
104
104
|
|
|
105
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
106
|
Use "*" to allow all origins (default).
|
|
@@ -108,17 +108,17 @@ Use "*" to allow all origins (default).
|
|
|
108
108
|
|
|
109
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 ut={command:`get`,describe:`Get Image Transformations Allowed Origins setting`,builder:lt,handler:async o=>a({command:`zones transformations-allowed-origins get`,classification:{safeFlags:[`dry-run`]}},o,async()=>{if(o.dryRun){r({command:`cf zones transformations-allowed-origins get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/zones/${o.zone??o.zoneId??`<zone>`}/settings/transformations_allowed_origins`,pathParams:{"zone-id":String(o.zone??o[`zone-id`]??``)},bodyKind:`none`});return}let a=await e(o),s=await t({zone:o.zone},a,{quiet:o.quiet});o.zoneId=s;let c=await i(`Loading`,async()=>a.zones.transformationsAllowedOrigins.get({zone_id:s}));n(c,{successLabel:`Loaded`})})},dt={command:`transformations-allowed-origins`,describe:`Operations for transformations-allowed-origins`,builder:e=>e.command(ct).command(ut).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function ft(e){return e.usage(`$0 zones transformations-c2pa edit
|
|
110
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`]}).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 $={command:`edit`,describe:`Change Image Transformations C2PA setting`,builder:ft,handler:async s=>a({command:`zones transformations-c2pa edit`,classification:{safeFlags:[`value`,`dry-run`]}},s,async()=>{if(s.dryRun){r({command:`cf zones transformations-c2pa edit`,method:`PATCH`,url:`https://api.cloudflare.com/client/v4/zones/${s.zone??s.zoneId??`<zone>`}/settings/transformations_c2pa`,pathParams:{"zone-id":String(s.zone??s[`zone-id`]??``)},bodyKind:`json`,body:s.body===void 0?c({value:
|
|
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=>l(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 $={command:`edit`,describe:`Change Image Transformations C2PA setting`,builder:ft,handler:async s=>a({command:`zones transformations-c2pa edit`,classification:{safeFlags:[`value`,`dry-run`]}},s,async()=>{if(s.dryRun){r({command:`cf zones transformations-c2pa edit`,method:`PATCH`,url:`https://api.cloudflare.com/client/v4/zones/${s.zone??s.zoneId??`<zone>`}/settings/transformations_c2pa`,pathParams:{"zone-id":String(s.zone??s[`zone-id`]??``)},bodyKind:`json`,body:s.body===void 0?c({value:s.value}):o(s.body)});return}let a=await e(s),l=await t({zone:s.zone},a,{quiet:s.quiet});if(s.zoneId=l,s.body){let e=o(s.body),t=await i(`Updating`,async()=>a.zones.transformationsC2Pa.edit({...e,zone_id:l}));n(t,{successLabel:`Updated`});return}s.value===void 0&&(s.value=await d(`value`,`Whether C2PA signing is enabled for image transformations.`,[`off`,`on`]));let u=c({value:s.value}),f=await i(`Updating`,async()=>a.zones.transformationsC2Pa.edit({...u,zone_id:l}));n(f,{successLabel:`Updated`})})};function pt(e){return e.usage(`$0 zones transformations-c2pa get
|
|
112
112
|
|
|
113
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 mt={command:`get`,describe:`Get Image Transformations C2PA setting`,builder:pt,handler:async o=>a({command:`zones transformations-c2pa get`,classification:{safeFlags:[`dry-run`]}},o,async()=>{if(o.dryRun){r({command:`cf zones transformations-c2pa get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/zones/${o.zone??o.zoneId??`<zone>`}/settings/transformations_c2pa`,pathParams:{"zone-id":String(o.zone??o[`zone-id`]??``)},bodyKind:`none`});return}let a=await e(o),s=await t({zone:o.zone},a,{quiet:o.quiet});o.zoneId=s;let c=await i(`Loading`,async()=>a.zones.transformationsC2Pa.get({zone_id:s}));n(c,{successLabel:`Loaded`})})},ht={command:`transformations-c2pa`,describe:`Operations for transformations-c2pa`,builder:e=>e.command($).command(mt).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function gt(e){return e.usage(`$0 zones transformations-config edit
|
|
114
114
|
|
|
115
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
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`]}).option(`value-transformations`,{type:`string`,description:`Controls Image Transformations behavior:
|
|
117
|
+
`}).option(`value-c2pa`,{type:`string`,description:`Whether C2PA signing is enabled for image transformations.`,choices:[`off`,`on`]}).coerce(`value-c2pa`,e=>l(e,`value-c2pa`,`text`)).option(`value-transformations`,{type:`string`,description:`Controls Image Transformations behavior:
|
|
118
118
|
- "off": Feature disabled.
|
|
119
119
|
- "on": Transformations enabled for same-zone images only.
|
|
120
120
|
- "open": Transformations enabled for images from any origin.
|
|
121
121
|
- "latest": Transformations enabled using the latest version.
|
|
122
|
-
`,choices:[`off`,`on`,`open`,`latest`]}).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 Transformations configuration`,builder:gt,handler:async s=>a({command:`zones transformations-config edit`,classification:{safeFlags:[`value-c2pa`,`value-transformations`,`dry-run`]}},s,async()=>{if(s.dryRun){r({command:`cf zones transformations-config edit`,method:`PATCH`,url:`https://api.cloudflare.com/client/v4/zones/${s.zone??s.zoneId??`<zone>`}/settings/transformations_config`,pathParams:{"zone-id":String(s.zone??s[`zone-id`]??``)},bodyKind:`json`,body:s.body===void 0?c({value:{allowed_origins:l(s[`value-allowed-origins`],`value-allowed-origins`,`text`),c2pa:
|
|
122
|
+
`,choices:[`off`,`on`,`open`,`latest`]}).coerce(`value-transformations`,e=>l(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 _t={command:`edit`,describe:`Change Transformations configuration`,builder:gt,handler:async s=>a({command:`zones transformations-config edit`,classification:{safeFlags:[`value-c2pa`,`value-transformations`,`dry-run`]}},s,async()=>{if(s.dryRun){r({command:`cf zones transformations-config edit`,method:`PATCH`,url:`https://api.cloudflare.com/client/v4/zones/${s.zone??s.zoneId??`<zone>`}/settings/transformations_config`,pathParams:{"zone-id":String(s.zone??s[`zone-id`]??``)},bodyKind:`json`,body:s.body===void 0?c({value:{allowed_origins:l(s[`value-allowed-origins`],`value-allowed-origins`,`text`),c2pa:s[`value-c2pa`],transformations:s[`value-transformations`]}}):o(s.body)});return}let a=await e(s),u=await t({zone:s.zone},a,{quiet:s.quiet});if(s.zoneId=u,s.body){let e=o(s.body),t=await i(`Updating`,async()=>a.zones.transformationsConfig.edit({...e,zone_id:u}));n(t,{successLabel:`Updated`});return}let d=c({value:{allowed_origins:l(s[`value-allowed-origins`],`value-allowed-origins`,`text`),c2pa:s[`value-c2pa`],transformations:s[`value-transformations`]}}),f=await i(`Updating`,async()=>a.zones.transformationsConfig.edit({...d,zone_id:u}));n(f,{successLabel:`Updated`})})};function vt(e){return e.usage(`$0 zones transformations-config get
|
|
123
123
|
|
|
124
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 yt={command:`get`,describe:`Get Transformations configuration`,builder:vt,handler:async o=>a({command:`zones transformations-config get`,classification:{safeFlags:[`dry-run`]}},o,async()=>{if(o.dryRun){r({command:`cf zones transformations-config get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/zones/${o.zone??o.zoneId??`<zone>`}/settings/transformations_config`,pathParams:{"zone-id":String(o.zone??o[`zone-id`]??``)},bodyKind:`none`});return}let a=await e(o),s=await t({zone:o.zone},a,{quiet:o.quiet});o.zoneId=s;let c=await i(`Loading`,async()=>a.zones.transformationsConfig.get({zone_id:s}));n(c,{successLabel:`Loaded`})})},bt={command:`transformations-config`,describe:`Operations for transformations-config`,builder:e=>e.command(_t).command(yt).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},xt={command:`zones`,describe:`Zones are domains on Cloudflare — list, create, and configure domain settings`,builder:e=>e.command(O).command(A).command(M).command(z).command(le).command(g).command(x).command(E).command(L).command(W).command(ne).command(se).command(me).command(ye).command(Oe).command(Ne).command(Ie).command(Ve).command(Ke).command(Ze).command(ot).command(dt).command(ht).command(bt).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};export{xt 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.14",
|
|
4
4
|
"description": "The Cloudflare CLI",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ai",
|
|
@@ -61,44 +61,43 @@
|
|
|
61
61
|
"./package.json": "./package.json"
|
|
62
62
|
},
|
|
63
63
|
"dependencies": {
|
|
64
|
-
"@cloudflare/build-output-utils": "0.
|
|
65
|
-
"@cloudflare/codemods": "0.4.
|
|
66
|
-
"@cloudflare/config": "0.
|
|
67
|
-
"@cloudflare/runtime-types": "0.1.
|
|
64
|
+
"@cloudflare/build-output-utils": "0.9.0",
|
|
65
|
+
"@cloudflare/codemods": "0.4.2",
|
|
66
|
+
"@cloudflare/config": "0.24.1",
|
|
67
|
+
"@cloudflare/runtime-types": "0.1.9",
|
|
68
68
|
"blake3-wasm": "2.1.5",
|
|
69
|
-
"miniflare": "5.
|
|
69
|
+
"miniflare": "5.20261006.1-alpha",
|
|
70
70
|
"minisearch": "7.2.0"
|
|
71
71
|
},
|
|
72
72
|
"devDependencies": {
|
|
73
|
-
"@bomb.sh/tab": "0.0.
|
|
74
|
-
"@clack/core": "1.
|
|
75
|
-
"@clack/prompts": "^1.
|
|
76
|
-
"@cloudflare/autoconfig": "0.7.
|
|
77
|
-
"@cloudflare/cli-shared-helpers": "0.2.
|
|
78
|
-
"@cloudflare/containers-shared": "0.21.
|
|
79
|
-
"@cloudflare/deploy-helpers": "0.
|
|
73
|
+
"@bomb.sh/tab": "0.0.22",
|
|
74
|
+
"@clack/core": "1.5.1",
|
|
75
|
+
"@clack/prompts": "^1.8.1",
|
|
76
|
+
"@cloudflare/autoconfig": "0.7.7",
|
|
77
|
+
"@cloudflare/cli-shared-helpers": "0.2.5",
|
|
78
|
+
"@cloudflare/containers-shared": "0.21.5",
|
|
79
|
+
"@cloudflare/deploy-helpers": "0.20.1",
|
|
80
80
|
"@cloudflare/forge": "file:../../vendor/cloudflare-forge-0.1.0.tgz",
|
|
81
81
|
"@cloudflare/forge-transformer-sdk-ts": "file:../../vendor/cloudflare-forge-transformer-sdk-ts-0.1.0.tgz",
|
|
82
|
-
"@cloudflare/workers-auth": "0.
|
|
83
|
-
"@cloudflare/workers-utils": "0.
|
|
84
|
-
"@types/node": "25.
|
|
85
|
-
"@types/semver": "7.
|
|
82
|
+
"@cloudflare/workers-auth": "0.13.1",
|
|
83
|
+
"@cloudflare/workers-utils": "0.47.1",
|
|
84
|
+
"@types/node": "25.9.9",
|
|
85
|
+
"@types/semver": "7.8.0",
|
|
86
86
|
"@types/shell-quote": "^1.7.5",
|
|
87
87
|
"@types/yargs": "17.0.35",
|
|
88
88
|
"chalk": "5.6.2",
|
|
89
89
|
"ci-info": "^4.4.0",
|
|
90
|
-
"esbuild": "0.28.
|
|
91
|
-
"execa": "^6.1.0",
|
|
90
|
+
"esbuild": "0.28.2",
|
|
92
91
|
"figures": "6.1.0",
|
|
93
|
-
"minimatch": "10.2.
|
|
94
|
-
"msw": "2.
|
|
92
|
+
"minimatch": "10.2.6",
|
|
93
|
+
"msw": "2.15.0",
|
|
95
94
|
"semver": "7.8.5",
|
|
96
|
-
"shell-quote": "^1.
|
|
95
|
+
"shell-quote": "^1.12.0",
|
|
96
|
+
"tinyexec": "^1.3.1",
|
|
97
97
|
"tsx": "4.21.0",
|
|
98
|
-
"undici": "7.
|
|
99
|
-
"vite-plus": "1.0.0
|
|
100
|
-
"yargs": "18.
|
|
101
|
-
"zod": "4.4.3"
|
|
98
|
+
"undici": "7.30.0",
|
|
99
|
+
"vite-plus": "1.0.0",
|
|
100
|
+
"yargs": "18.2.0"
|
|
102
101
|
},
|
|
103
102
|
"engines": {
|
|
104
103
|
"node": ">=22"
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
import{t as e}from"./local-C0lQ9sTg.mjs";import{i as t,n}from"./auth-AobvBmz4.mjs";import{a as r,t as i}from"./context-Bwkz4Lm_.mjs";import{t as a}from"./output-BGqhvqe2.mjs";import{t as o}from"./dry-run-DmsbOMF1.mjs";import{t as s}from"./progress-BYVZuEcG.mjs";import{t as c}from"./run-CrZgB8L_.mjs";import"./telemetry-DBXOMuLh.mjs";import{i as l,n as u,r 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}from"./prompt-F5wxc8zq.mjs";import{t as g}from"./cli-types-9oYmRTHJ.mjs";function _(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 v={command:`eligibility <report-id>`,describe:`Check whether a report can be appealed`,builder:_,handler:async t=>c({command:`abuse-reports appeals eligibility`,classification:{safeFlags:[`dry-run`]}},t,async()=>{if(t.dryRun){let e=await r();o({command:`cf abuse-reports appeals eligibility`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}/abuse-reports/${t[`report-id`]==null?`<report-id>`:encodeURIComponent(String(t[`report-id`]))}/appeals/eligibility`,pathParams:{"report-id":String(t[`report-id`]??``)},bodyKind:`none`});return}let c=await n(t),l=t.local?e:await i();t.accountId=l;let u=await s(`Loading`,async()=>c.abuseReports.appeals.eligibility({account_id:l,report_id:t[`report-id`]}));a(u,{successLabel:`Loaded`})})},y={command:`appeals`,describe:`Appeal eligibility for abuse reports`,builder:e=>e.command(v).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function b(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`]}).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`]}).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`]}).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`]}).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`]}).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`]}).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 x={command:`create <report-type>`,describe:`Submit an abuse report`,builder:b,handler:async d=>c({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`]}},d,async()=>{if(d.dryRun){let e=await r();o({command:`cf abuse-reports create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}/abuse-reports/${d[`report-type`]==null?`<report-type>`:encodeURIComponent(String(d[`report-type`]))}`,pathParams:{"report-type":String(d[`report-type`]??``)},bodyKind:`json`,body:d.body===void 0?f({act:p(d.act,`act`,`text`),comments:p(d.comments,`comments`,`text`),company:p(d.company,`company`,`text`),email:p(d.email,`email`,`text`),email2:p(d.email2,`email2`,`text`),name:p(d.name,`name`,`text`),reported_country:p(d[`reported-country`],`reported-country`,`text`),reported_user_agent:p(d[`reported-user-agent`],`reported-user-agent`,`text`),tele:p(d.tele,`tele`,`text`),title:p(d.title,`title`,`text`),urls:p(d.urls,`urls`,`text`),address1:p(d.address1,`address1`,`text`),agent_name:p(d[`agent-name`],`agent-name`,`text`),agree:d.agree,city:p(d.city,`city`,`text`),country:p(d.country,`country`,`text`),host_notification:p(d[`host-notification`],`host-notification`,`text`),original_work:p(d[`original-work`],`original-work`,`text`),owner_notification:p(d[`owner-notification`],`owner-notification`,`text`),signature:p(d.signature,`signature`,`text`),state:p(d.state,`state`,`text`),justification:p(d.justification,`justification`,`text`),trademark_number:p(d[`trademark-number`],`trademark-number`,`text`),trademark_office:p(d[`trademark-office`],`trademark-office`,`text`),trademark_symbol:p(d[`trademark-symbol`],`trademark-symbol`,`text`),destination_ips:p(d[`destination-ips`],`destination-ips`,`text`),ports_protocols:p(d[`ports-protocols`],`ports-protocols`,`text`),source_ips:p(d[`source-ips`],`source-ips`,`text`),ncmec_notification:p(d[`ncmec-notification`],`ncmec-notification`,`text`),reg_who_request:{reg_who_authorization_statement:p(d[`reg-who-request-reg-who-authorization-statement`],`reg-who-request-reg-who-authorization-statement`,`text`),reg_who_good_faith_affirmation:d[`reg-who-request-reg-who-good-faith-affirmation`],reg_who_lawful_processing_agreement:d[`reg-who-request-reg-who-lawful-processing-agreement`],reg_who_legal_basis:p(d[`reg-who-request-reg-who-legal-basis`],`reg-who-request-reg-who-legal-basis`,`text`),reg_who_request_type:p(d[`reg-who-request-reg-who-request-type`],`reg-who-request-reg-who-request-type`,`text`),reg_who_requested_data_elements:d[`reg-who-request-reg-who-requested-data-elements`],reg_who_requestor_type:p(d[`reg-who-request-reg-who-requestor-type`],`reg-who-request-reg-who-requestor-type`,`text`)},ncsei_subject_representation:d[`ncsei-subject-representation`]}):u(d.body)});return}let c=await n(d),g=d.local?e:await i();if(d.accountId=g,d.body){let e=u(d.body),n=await s(`Creating`,async()=>t(c,`POST`,`/accounts/${g}/abuse-reports/${encodeURIComponent(String(d[`report-type`]))}`,{body:e}));a(n,{successLabel:`Created`});return}if(d.act===void 0&&(d.act=await h(`act`,`The act field`,[`abuse_dmca`,`abuse_trademark`,`abuse_general`,`abuse_phishing`,`abuse_children`,`abuse_threat`,`abuse_registrar_whois`,`abuse_ncsei`])),d.email===void 0&&(d.email=await m(`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/).`)),d.email2===void 0&&(d.email2=await m(`email2`,"Should match the value provided in `email`")),d.name===void 0&&(d.name=await m(`name`,`Text not exceeding 255 characters. This field may be released by Cloudflare to third parties such as the Lumen Database (https://lumendatabase.org/).`)),d.urls===void 0&&(d.urls=await m(`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/).`)),d[`owner-notification`]===void 0&&(d[`owner-notification`]=await h(`owner-notification`,`Notification type based on the abuse type. NOTE: Copyright (DMCA) and Trademark reports cannot be anonymous. `,[`send`,`send-anon`,`none`])),d.act===`abuse_dmca`&&d.address1===void 0&&(d.address1=await m(`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`})),d.act===`abuse_dmca`&&d[`agent-name`]===void 0&&(d[`agent-name`]=await m(`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`})),d.act===`abuse_dmca`&&d.agree===void 0)throw Error(`--agree is required (or pass --body with this field set).`);if(d.act===`abuse_dmca`&&d.city===void 0&&(d.city=await m(`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`})),d.act===`abuse_dmca`&&d.country===void 0&&(d.country=await m(`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`})),d.act===`abuse_dmca`&&d[`host-notification`]===void 0&&(d[`host-notification`]=await m(`host-notification`,`Notification type based on the abuse type. NOTE: Copyright (DMCA) and Trademark reports cannot be anonymous. `,{question:`Enter value for --host-notification`})),d.act===`abuse_dmca`&&d[`original-work`]===void 0&&(d[`original-work`]=await m(`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`})),d.act===`abuse_dmca`&&d.signature===void 0&&(d.signature=await m(`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`})),d.act===`abuse_dmca`&&d.state===void 0&&(d.state=await m(`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`})),d.act===`abuse_trademark`&&d[`host-notification`]===void 0&&(d[`host-notification`]=await m(`host-notification`,`Notification type based on the abuse type. NOTE: Copyright (DMCA) and Trademark reports cannot be anonymous. `,{question:`Enter value for --host-notification`})),d.act===`abuse_trademark`&&d.justification===void 0&&(d.justification=await m(`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`})),d.act===`abuse_trademark`&&d[`trademark-number`]===void 0&&(d[`trademark-number`]=await m(`trademark-number`,`Text not exceeding 1000 characters`,{question:`Enter value for --trademark-number`})),d.act===`abuse_trademark`&&d[`trademark-office`]===void 0&&(d[`trademark-office`]=await m(`trademark-office`,`Text not exceeding 1000 characters`,{question:`Enter value for --trademark-office`})),d.act===`abuse_trademark`&&d[`trademark-symbol`]===void 0&&(d[`trademark-symbol`]=await m(`trademark-symbol`,`Text not exceeding 1000 characters`,{question:`Enter value for --trademark-symbol`})),d.act===`abuse_general`&&d[`host-notification`]===void 0&&(d[`host-notification`]=await m(`host-notification`,`Notification type based on the abuse type. NOTE: Copyright (DMCA) and Trademark reports cannot be anonymous. `,{question:`Enter value for --host-notification`})),d.act===`abuse_general`&&d.justification===void 0&&(d.justification=await m(`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`})),d.act===`abuse_phishing`&&d[`host-notification`]===void 0&&(d[`host-notification`]=await m(`host-notification`,`Notification type based on the abuse type. NOTE: Copyright (DMCA) and Trademark reports cannot be anonymous. `,{question:`Enter value for --host-notification`})),d.act===`abuse_phishing`&&d.justification===void 0&&(d.justification=await m(`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`})),d.act===`abuse_children`&&d[`host-notification`]===void 0&&(d[`host-notification`]=await m(`host-notification`,`Notification type based on the abuse type. NOTE: Copyright (DMCA) and Trademark reports cannot be anonymous. `,{question:`Enter value for --host-notification`})),d.act===`abuse_children`&&d.justification===void 0&&(d.justification=await m(`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`})),d.act===`abuse_children`&&d[`ncmec-notification`]===void 0&&(d[`ncmec-notification`]=await m(`ncmec-notification`,`Notification type based on the abuse type. NOTE: Copyright (DMCA) and Trademark reports cannot be anonymous. `,{question:`Enter value for --ncmec-notification`})),d.act===`abuse_threat`&&d[`host-notification`]===void 0&&(d[`host-notification`]=await m(`host-notification`,`Notification type based on the abuse type. NOTE: Copyright (DMCA) and Trademark reports cannot be anonymous. `,{question:`Enter value for --host-notification`})),d.act===`abuse_threat`&&d.justification===void 0&&(d.justification=await m(`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`})),d.act===`abuse_ncsei`&&d[`host-notification`]===void 0&&(d[`host-notification`]=await m(`host-notification`,`Notification type based on the abuse type. NOTE: Copyright (DMCA) and Trademark reports cannot be anonymous. `,{question:`Enter value for --host-notification`})),d.act===`abuse_ncsei`&&d[`ncsei-subject-representation`]===void 0)throw Error(`--ncsei-subject-representation is required (or pass --body with this field set).`);let _={};d.act!==void 0&&l(_,[`act`],p(d.act,`act`,`text`)),d.comments!==void 0&&l(_,[`comments`],p(d.comments,`comments`,`text`)),d.company!==void 0&&l(_,[`company`],p(d.company,`company`,`text`)),d.email!==void 0&&l(_,[`email`],p(d.email,`email`,`text`)),d.email2!==void 0&&l(_,[`email2`],p(d.email2,`email2`,`text`)),d.name!==void 0&&l(_,[`name`],p(d.name,`name`,`text`)),d[`reported-country`]!==void 0&&l(_,[`reported_country`],p(d[`reported-country`],`reported-country`,`text`)),d[`reported-user-agent`]!==void 0&&l(_,[`reported_user_agent`],p(d[`reported-user-agent`],`reported-user-agent`,`text`)),d.tele!==void 0&&l(_,[`tele`],p(d.tele,`tele`,`text`)),d.title!==void 0&&l(_,[`title`],p(d.title,`title`,`text`)),d.urls!==void 0&&l(_,[`urls`],p(d.urls,`urls`,`text`)),d.address1!==void 0&&l(_,[`address1`],p(d.address1,`address1`,`text`)),d[`agent-name`]!==void 0&&l(_,[`agent_name`],p(d[`agent-name`],`agent-name`,`text`)),d.agree!==void 0&&l(_,[`agree`],d.agree),d.city!==void 0&&l(_,[`city`],p(d.city,`city`,`text`)),d.country!==void 0&&l(_,[`country`],p(d.country,`country`,`text`)),d[`host-notification`]!==void 0&&l(_,[`host_notification`],p(d[`host-notification`],`host-notification`,`text`)),d[`original-work`]!==void 0&&l(_,[`original_work`],p(d[`original-work`],`original-work`,`text`)),d[`owner-notification`]!==void 0&&l(_,[`owner_notification`],p(d[`owner-notification`],`owner-notification`,`text`)),d.signature!==void 0&&l(_,[`signature`],p(d.signature,`signature`,`text`)),d.state!==void 0&&l(_,[`state`],p(d.state,`state`,`text`)),d.justification!==void 0&&l(_,[`justification`],p(d.justification,`justification`,`text`)),d[`trademark-number`]!==void 0&&l(_,[`trademark_number`],p(d[`trademark-number`],`trademark-number`,`text`)),d[`trademark-office`]!==void 0&&l(_,[`trademark_office`],p(d[`trademark-office`],`trademark-office`,`text`)),d[`trademark-symbol`]!==void 0&&l(_,[`trademark_symbol`],p(d[`trademark-symbol`],`trademark-symbol`,`text`)),d[`destination-ips`]!==void 0&&l(_,[`destination_ips`],p(d[`destination-ips`],`destination-ips`,`text`)),d[`ports-protocols`]!==void 0&&l(_,[`ports_protocols`],p(d[`ports-protocols`],`ports-protocols`,`text`)),d[`source-ips`]!==void 0&&l(_,[`source_ips`],p(d[`source-ips`],`source-ips`,`text`)),d[`ncmec-notification`]!==void 0&&l(_,[`ncmec_notification`],p(d[`ncmec-notification`],`ncmec-notification`,`text`)),d[`reg-who-request-reg-who-authorization-statement`]!==void 0&&l(_,[`reg_who_request`,`reg_who_authorization_statement`],p(d[`reg-who-request-reg-who-authorization-statement`],`reg-who-request-reg-who-authorization-statement`,`text`)),d[`reg-who-request-reg-who-good-faith-affirmation`]!==void 0&&l(_,[`reg_who_request`,`reg_who_good_faith_affirmation`],d[`reg-who-request-reg-who-good-faith-affirmation`]),d[`reg-who-request-reg-who-lawful-processing-agreement`]!==void 0&&l(_,[`reg_who_request`,`reg_who_lawful_processing_agreement`],d[`reg-who-request-reg-who-lawful-processing-agreement`]),d[`reg-who-request-reg-who-legal-basis`]!==void 0&&l(_,[`reg_who_request`,`reg_who_legal_basis`],p(d[`reg-who-request-reg-who-legal-basis`],`reg-who-request-reg-who-legal-basis`,`text`)),d[`reg-who-request-reg-who-request-type`]!==void 0&&l(_,[`reg_who_request`,`reg_who_request_type`],p(d[`reg-who-request-reg-who-request-type`],`reg-who-request-reg-who-request-type`,`text`)),d[`reg-who-request-reg-who-requested-data-elements`]!==void 0&&l(_,[`reg_who_request`,`reg_who_requested_data_elements`],d[`reg-who-request-reg-who-requested-data-elements`]),d[`reg-who-request-reg-who-requestor-type`]!==void 0&&l(_,[`reg_who_request`,`reg_who_requestor_type`],p(d[`reg-who-request-reg-who-requestor-type`],`reg-who-request-reg-who-requestor-type`,`text`)),d[`ncsei-subject-representation`]!==void 0&&l(_,[`ncsei_subject_representation`],d[`ncsei-subject-representation`]);let v=await s(`Creating`,async()=>t(c,`POST`,`/accounts/${g}/abuse-reports/${encodeURIComponent(String(d[`report-type`]))}`,{body:Object.keys(_).length>0?_:void 0}));a(v,{successLabel:`Created`})})};function S(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 C={command:`list-submitted <report-id>`,describe:`List emails sent to an abuse report submitter`,builder:S,handler:async t=>c({command:`abuse-reports emails list-submitted`,classification:{safeFlags:[`dry-run`]}},t,async()=>{let c={page:t.page,per_page:t[`per-page`]};if(t.dryRun){let e=await r();o({command:`cf abuse-reports emails list-submitted`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}/abuse-reports/submitted/${t[`report-id`]==null?`<report-id>`:encodeURIComponent(String(t[`report-id`]))}/emails`,pathParams:{"report-id":String(t[`report-id`]??``)},query:c,bodyKind:`none`});return}let l=await n(t),u=t.local?e:await i();t.accountId=u;let d=await s(`Loading`,async()=>l.abuseReports.emails.listSubmitted({account_id:u,report_id:t[`report-id`],...c}));a(d,{successLabel:`Loaded`})})};function w(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 T={command:`list`,describe:`List abuse report emails`,builder:w,handler:async t=>c({command:`abuse-reports emails list`,classification:{safeFlags:[`dry-run`]}},t,async()=>{let c={page:t.page,per_page:t[`per-page`]};if(t.dryRun){let e=await r();o({command:`cf abuse-reports emails list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}/abuse-reports/${t[`report-id`]==null?`<report-id>`:encodeURIComponent(String(t[`report-id`]))}/emails`,pathParams:{"report-id":String(t[`report-id`]??``)},query:c,bodyKind:`none`});return}let l=await n(t),u=t.local?e:await i();t.accountId=u;let d=await s(`Loading`,async()=>l.abuseReports.emails.list({account_id:u,report_id:t[`report-id`],...c}));a(d,{successLabel:`Loaded`})})},E={command:`emails`,describe:`Emails sent for abuse reports`,builder:e=>e.command(T).command(C).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function D(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 O={command:`get-submitted <report-id>`,describe:`Get a submitted abuse report`,builder:D,handler:async t=>c({command:`abuse-reports get-submitted`,classification:{safeFlags:[`dry-run`]}},t,async()=>{if(t.dryRun){let e=await r();o({command:`cf abuse-reports get-submitted`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}/abuse-reports/submitted/${t[`report-id`]==null?`<report-id>`:encodeURIComponent(String(t[`report-id`]))}`,pathParams:{"report-id":String(t[`report-id`]??``)},bodyKind:`none`});return}let c=await n(t),l=t.local?e:await i();t.accountId=l;let u=await s(`Loading`,async()=>c.abuseReports.getSubmitted({account_id:l,report_id:t[`report-id`]}));a(u,{successLabel:`Loaded`})})};function k(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 A={command:`get <report-id>`,describe:`Get an abuse report against the account`,builder:k,handler:async l=>c({command:`abuse-reports get`,classification:{safeFlags:[`dry-run`]}},l,async()=>{if(l.dryRun){let e=await r();o({command:`cf abuse-reports get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}/abuse-reports/${l[`report-id`]==null?`<report-id>`:encodeURIComponent(String(l[`report-id`]))}`,pathParams:{"report-id":String(l[`report-id`]??``)},bodyKind:`none`});return}let c=await n(l),u=l.local?e:await i();l.accountId=u;let d=await s(`Loading`,async()=>t(c,`GET`,`/accounts/${u}/abuse-reports/${encodeURIComponent(String(l[`report-id`]))}`));a(d,{successLabel:`Loaded`})})};function j(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 M={command:`list-submitted`,describe:`List submitted abuse reports`,builder:g(j),handler:async t=>c({command:`abuse-reports list-submitted`,classification:{safeFlags:[`dry-run`]}},t,async()=>{let c={page:t.page,per_page:t[`per-page`],sort:t.sort,id:t.id,domain:t.domain,created_before:t[`created-before`],created_after:t[`created-after`],status:t.status,type:t.type};if(t.dryRun){let e=await r();o({command:`cf abuse-reports list-submitted`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}/abuse-reports/submitted`,pathParams:{},query:c,bodyKind:`none`});return}let l=await n(t),u=t.local?e:await i();t.accountId=u;let d=await s(`Loading`,async()=>l.abuseReports.listSubmitted({account_id:u,...c}));a(d,{successLabel:`Loaded`})})};function N(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(`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 P={command:`list`,describe:`List abuse reports against the account`,builder:g(N),handler:async t=>c({command:`abuse-reports list`,classification:{safeFlags:[`status`,`type`,`mitigation-status`,`dry-run`]}},t,async()=>{let c={page:t.page,per_page:t[`per-page`],sort:t.sort,domain:t.domain,created_before:t[`created-before`],created_after:t[`created-after`],status:t.status,type:t.type,mitigation_status:t[`mitigation-status`]};if(t.dryRun){let e=await r();o({command:`cf abuse-reports list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}/abuse-reports`,pathParams:{},query:c,bodyKind:`none`});return}let l=await n(t),u=t.local?e:await i();t.accountId=u;let d=await s(`Loading`,async()=>l.abuseReports.list({account_id:u,...c}));a(d,{successLabel:`Loaded`})})};function F(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 I={command:`list`,describe:`List abuse report mitigations`,builder:g(F),handler:async t=>c({command:`abuse-reports mitigations list`,classification:{safeFlags:[`sort`,`status`,`entity-type`,`dry-run`]}},t,async()=>{let c={page:t.page,per_page:t[`per-page`],sort:t.sort,type:t.type,effective_before:t[`effective-before`],effective_after:t[`effective-after`],status:t.status,entity_type:t[`entity-type`]};if(t.dryRun){let e=await r();o({command:`cf abuse-reports mitigations list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}/abuse-reports/${t[`report-id`]==null?`<report-id>`:encodeURIComponent(String(t[`report-id`]))}/mitigations`,pathParams:{"report-id":String(t[`report-id`]??``)},query:c,bodyKind:`none`});return}let l=await n(t),u=t.local?e:await i();t.accountId=u;let d=await s(`Loading`,async()=>l.abuseReports.mitigations.list({account_id:u,report_id:t[`report-id`],...c}));a(d,{successLabel:`Loaded`})})};function L(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`]}).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 R={command:`review <report-id>`,describe:`Request review on mitigations`,builder:L,handler:async t=>c({command:`abuse-reports mitigations review`,classification:{safeFlags:[`data-jurisdiction-consent`,`data-perjury-attestation`,`type`,`dry-run`]}},t,async()=>{if(t.dryRun){let e=await r();o({command:`cf abuse-reports mitigations review`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}/abuse-reports/${t[`report-id`]==null?`<report-id>`:encodeURIComponent(String(t[`report-id`]))}/mitigations/appeal`,pathParams:{"report-id":String(t[`report-id`]??``)},bodyKind:`json`,body:t.body===void 0?f({appeals:d(t.appeals,`appeals`),data:{city:p(t[`data-city`],`data-city`,`text`),company:p(t[`data-company`],`data-company`,`text`),counter_notice_response:p(t[`data-counter-notice-response`],`data-counter-notice-response`,`text`),country:p(t[`data-country`],`data-country`,`text`),email:p(t[`data-email`],`data-email`,`text`),full_name:p(t[`data-full-name`],`data-full-name`,`text`),jurisdiction_consent:t[`data-jurisdiction-consent`],perjury_attestation:t[`data-perjury-attestation`],phone_number:p(t[`data-phone-number`],`data-phone-number`,`text`),signature:p(t[`data-signature`],`data-signature`,`text`),state:p(t[`data-state`],`data-state`,`text`),street_address:p(t[`data-street-address`],`data-street-address`,`text`),urls:t[`data-urls`],zip_code:p(t[`data-zip-code`],`data-zip-code`,`text`)},type:p(t.type,`type`,`text`)}):u(t.body)});return}let c=await n(t),l=t.local?e:await i();if(t.accountId=l,t.body){let e=u(t.body),n=await s(`Creating`,async()=>c.abuseReports.mitigations.review({body:e,account_id:l,report_id:t[`report-id`]}));a(n,{successLabel:`Created`});return}let m=f({appeals:d(t.appeals,`appeals`),data:{city:p(t[`data-city`],`data-city`,`text`),company:p(t[`data-company`],`data-company`,`text`),counter_notice_response:p(t[`data-counter-notice-response`],`data-counter-notice-response`,`text`),country:p(t[`data-country`],`data-country`,`text`),email:p(t[`data-email`],`data-email`,`text`),full_name:p(t[`data-full-name`],`data-full-name`,`text`),jurisdiction_consent:t[`data-jurisdiction-consent`],perjury_attestation:t[`data-perjury-attestation`],phone_number:p(t[`data-phone-number`],`data-phone-number`,`text`),signature:p(t[`data-signature`],`data-signature`,`text`),state:p(t[`data-state`],`data-state`,`text`),street_address:p(t[`data-street-address`],`data-street-address`,`text`),urls:t[`data-urls`],zip_code:p(t[`data-zip-code`],`data-zip-code`,`text`)},type:p(t.type,`type`,`text`)}),h=await s(`Creating`,async()=>c.abuseReports.mitigations.review({body:m,account_id:l,report_id:t[`report-id`]}));a(h,{successLabel:`Created`})})},z={command:`mitigations`,describe:`Mitigation actions taken in response to abuse reports`,builder:e=>e.command(I).command(R).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},B={command:`abuse-reports`,describe:`Submit and track abuse reports for phishing, malware, and other policy violations on Cloudflare-proxied sites`,builder:e=>e.command(x).command(A).command(O).command(P).command(M).command(y).command(E).command(z).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};export{B as default};
|
package/dist/access-DwJm1qet.mjs
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
import{t as e}from"./lazy-command-_vZGz6mv.mjs";var t=e(`curl <url>`,`Run curl against an Access-protected application with its JWT injected by cloudflared.`,()=>import(`./command-CUkXxZsc.mjs`),{command:`access curl`,recordArgs:!1}),n=e(`login <url>`,`Authenticate with an Access application and store its JWT through cloudflared.`,()=>import(`./command-VuxpEvmH.mjs`),{command:`access login`,recordArgs:!1}),r=e(`ssh-config`,`Print an example SSH configuration for an Access application.`,()=>import(`./command-DyE8v4sd.mjs`),{command:`access ssh-config`,recordArgs:!1}),i=e(`ssh-gen`,`Generate a short-lived certificate for an Access SSH application.`,()=>import(`./command-BQpXcGKV.mjs`),{command:`access ssh-gen`,recordArgs:!1}),a={...e(`tcp`,`Proxy a TCP connection through Access. The command is also available as ssh, rdp, and smb.`,()=>import(`./command-CRl00uA2.mjs`),{command:`access tcp`,recordArgs:!1}),aliases:[`ssh`,`rdp`,`smb`]},o=e(`token <url>`,`Print a JWT for authenticating with an Access application.`,()=>import(`./command-DBaNgfA4.mjs`),{command:`access token`,recordArgs:!1});const s={command:`access`,describe:`Access protected applications and services`,builder:e=>e.command(t).command(n).command(r).command(i).command(a).command(o).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};export{s as default};
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
import{t as e}from"./local-C0lQ9sTg.mjs";import{i as t,n}from"./auth-AobvBmz4.mjs";import{a as r,i,t as a}from"./context-Bwkz4Lm_.mjs";import{t as o}from"./output-BGqhvqe2.mjs";import{t as s}from"./dry-run-DmsbOMF1.mjs";import{t as c}from"./progress-BYVZuEcG.mjs";import{t as l}from"./run-CrZgB8L_.mjs";import"./telemetry-DBXOMuLh.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-F5wxc8zq.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.account.account_ruleset.ai_gateway.alerting_policy.alerting_webhook.cloudflared_tunnel.cws_deployment.cws_policy.cws_policy_set.cws_workload.d1_database.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(`.`)}).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:p(_[`resource-type`],`resource-type`,`text`),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.account.account_ruleset.ai_gateway.alerting_policy.alerting_webhook.cloudflared_tunnel.cws_deployment.cws_policy.cws_policy_set.cws_workload.d1_database.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`],p(_[`resource-type`],`resource-type`,`text`)),_[`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.account.account_ruleset.ai_gateway.alerting_policy.alerting_webhook.cloudflared_tunnel.cws_deployment.cws_policy.cws_policy_set.cws_workload.d1_database.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.account.account_ruleset.ai_gateway.alerting_policy.alerting_webhook.cloudflared_tunnel.cws_deployment.cws_policy.cws_policy_set.cws_workload.d1_database.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(`.`)}).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:p(g[`resource-type`],`resource-type`,`text`),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.account.account_ruleset.ai_gateway.alerting_policy.alerting_webhook.cloudflared_tunnel.cws_deployment.cws_policy.cws_policy_set.cws_workload.d1_database.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`],p(g[`resource-type`],`resource-type`,`text`)),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};
|