cf 1.0.0-beta.11 → 1.0.0-beta.12
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/bin/cf +1 -1
- package/dist/abuse-reports-Cy9RcWPu.mjs +24 -0
- package/dist/{access-DuHs0Mii.mjs → access-DwJm1qet.mjs} +1 -1
- package/dist/account-tags-d0RkEw6s.mjs +15 -0
- package/dist/{accounts-DfXSHrkF.mjs → accounts-BSd4b-1j.mjs} +63 -63
- package/dist/{acm-BgSr3Ig4.mjs → acm-BfI0p2sX.mjs} +7 -7
- package/dist/addressing-lfeJf7YB.mjs +93 -0
- package/dist/agent-context-DFEgYjEQ.mjs +2 -0
- package/dist/agent-memory-CP1qpn-y.mjs +34 -0
- package/dist/{ai-audit-Bn_BfMFS.mjs → ai-audit-B_tSl78A.mjs} +3 -3
- package/dist/ai-gateway-CJaUlfGc.mjs +82 -0
- package/dist/ai-jFzFBANM.mjs +29 -0
- package/dist/{ai-search-C4YWVTCa.mjs → ai-search-PTlpY1T9.mjs} +42 -42
- package/dist/ai-security-CKGE547U.mjs +10 -0
- package/dist/alerting-CuxoqG3S.mjs +56 -0
- package/dist/analytics-NPND7aHB.mjs +20 -0
- package/dist/analytics_engine-BoapM9wd.mjs +4 -0
- package/dist/ansi-styles-kSC6bEIq.mjs +2 -0
- package/dist/{api-security-gB1FHrHq.mjs → api-security-Nk_bg-Kg.mjs} +57 -57
- package/dist/{argo-wFCAsYx7.mjs → argo-DYfLQhd2.mjs} +5 -5
- package/dist/artifacts-BS6cEqCB.mjs +43 -0
- package/dist/{audit-logs-CpPUjMUP.mjs → audit-logs-x5tLqeX2.mjs} +2 -2
- package/dist/auth-AobvBmz4.mjs +2 -0
- package/dist/auth-CBtzZ3Sw.mjs +2 -0
- package/dist/{auth-7Fk7PVIC.mjs → auth-CKotxfap.mjs} +1 -1
- package/dist/{auth-token-DeG33BMQ.mjs → auth-token-CtguMdmF.mjs} +1 -1
- package/dist/autoconfig-PfnbLuEO.mjs +532 -0
- package/dist/{banner-Xk4xBN8U.mjs → banner-D03JEqRs.mjs} +1 -1
- package/dist/basin-catalog-Ddi-t3q9.mjs +46 -0
- package/dist/billing-CDMc4tvX.mjs +23 -0
- package/dist/bot-management-UrCM3P8K.mjs +9 -0
- package/dist/botnet-feed-CVwRm42k.mjs +11 -0
- package/dist/brand-protection-DfNf5REj.mjs +27 -0
- package/dist/browser-run-DVaiBLYX.mjs +46 -0
- package/dist/build-BKPVP5ip.mjs +2 -0
- package/dist/build-C4giET85.mjs +2 -0
- package/dist/builds-BG5DHqU3.mjs +71 -0
- package/dist/cache-C05hHXUp.mjs +45 -0
- package/dist/{certificate-authorities-NUQzCDK8.mjs → certificate-authorities-DyCFmZwR.mjs} +3 -3
- package/dist/cf-B9aqZZKD.mjs +18 -0
- package/dist/chunk-AUSY7DKT-BJX6Fdc4.mjs +312 -0
- package/dist/chunk-FT2NMTJB-DQ7s3x7Q.mjs +361 -0
- package/dist/chunk-KKDV4JPS-D3kwd1Nq.mjs +2 -0
- package/dist/chunk-U6NEESU5-DqqRCaWH.mjs +2 -0
- package/dist/chunk-WMOON6TZ-C0dmPHpM.mjs +2 -0
- package/dist/{cli-aChy8ou_.mjs → cli-D9qlPB-6.mjs} +1 -1
- package/dist/cli-exit-CstFZ1eJ.mjs +2 -0
- package/dist/{client-certificates-qgLpBn8t.mjs → client-certificates-B-m8rfM9.mjs} +6 -6
- package/dist/{client-side-security-DZO6Xw14.mjs → client-side-security-M4oIUqID.mjs} +14 -14
- package/dist/{cloud-connector-C7vGDCzX.mjs → cloud-connector-B63Dwn6n.mjs} +3 -3
- package/dist/cloudflared-B48cfu95.mjs +2 -0
- package/dist/cloudforce-one-Dlc1GNFy.mjs +447 -0
- package/dist/{command-07vhr56i.mjs → command-BQpXcGKV.mjs} +1 -1
- package/dist/{command-Cdx___59.mjs → command-BWlpCtHe.mjs} +1 -1
- package/dist/{command-CrtDkZNs.mjs → command-BlGILcTA.mjs} +1 -1
- package/dist/{command-eM48o0J6.mjs → command-CKQlxypn.mjs} +1 -1
- package/dist/{command-D0MKPucK.mjs → command-CRl00uA2.mjs} +1 -1
- package/dist/{command-Ds5OVat3.mjs → command-CUkXxZsc.mjs} +1 -1
- package/dist/command-CXxh5Hce.mjs +2 -0
- package/dist/{command-BWC9CbE7.mjs → command-CzvlHvov.mjs} +1 -1
- package/dist/{command-B6TpINoN.mjs → command-DBaNgfA4.mjs} +1 -1
- package/dist/{command-C2pNxAeL.mjs → command-DEQSv-S1.mjs} +1 -1
- package/dist/{command-Dv6YavZa.mjs → command-DyE8v4sd.mjs} +1 -1
- package/dist/command-Rv2MR-eh.mjs +2 -0
- package/dist/{command-BsmF3J_l.mjs → command-SS1z_t68.mjs} +1 -1
- package/dist/{command-maDJWJgu.mjs → command-VuxpEvmH.mjs} +1 -1
- package/dist/{command-dAYWrB5y.mjs → command-ZBQ1WITj.mjs} +1 -1
- package/dist/{completions-D0280hul.mjs → completions-lf50FBGm.mjs} +2 -2
- package/dist/connector-interrupts-DHN1KtUE.mjs +6 -0
- package/dist/connector-telemetry-events-CHg7FmXh.mjs +6 -0
- package/dist/connector-telemetry-snapshots-CSifYi9r.mjs +6 -0
- package/dist/connectors-0UwPUav-.mjs +15 -0
- package/dist/containers-DRzgE46U.mjs +375 -0
- package/dist/containers-DuIsM7lM.mjs +78 -0
- package/dist/{content-scan-BCtWBCqd.mjs → content-scan-COyTz0Wb.mjs} +7 -7
- package/dist/{context-CquYYyS3.mjs → context-Bwkz4Lm_.mjs} +2 -2
- package/dist/{cps-C8BbnbuD.mjs → cps-B7_BJaAU.mjs} +3 -3
- package/dist/{csamScanner-CsJ9H2fA.mjs → csamScanner-jez2EYXC.mjs} +3 -3
- package/dist/ct-alerting-CACDrY0E.mjs +5 -0
- package/dist/{custom-certificates-CA8HqolM.mjs → custom-certificates-BBd92YlF.mjs} +7 -7
- package/dist/{custom-csrs-D0P2vWJE.mjs → custom-csrs-DTwBiNMX.mjs} +5 -5
- package/dist/{custom-hostnames-CzYMChbh.mjs → custom-hostnames-DIWlqvN9.mjs} +12 -12
- package/dist/{custom-nameservers-Cet3oF56.mjs → custom-nameservers-DISy8v8u.mjs} +5 -5
- package/dist/{custom-pages-DUkHIaTP.mjs → custom-pages-BHXO_NFv.mjs} +10 -10
- package/dist/d1-MvAQMvvo.mjs +89 -0
- package/dist/{dcv-delegation-BkdRVEAH.mjs → dcv-delegation-Buq0hcm_.mjs} +2 -2
- package/dist/delegate.mjs +1 -1
- package/dist/{deploy-BdWBEbLj.mjs → deploy-BS47vZvJ.mjs} +1 -1
- package/dist/deploy-context-Cfushp8j.mjs +56 -0
- package/dist/{deploy-input-LmLfj6kI.mjs → deploy-input-BAhS5LYx.mjs} +1 -1
- package/dist/{dev-BHkVwAea.mjs → dev-D8FGPKRt.mjs} +2 -2
- package/dist/diagnostics-ChDfJ-Gv.mjs +15 -0
- package/dist/{dialog-Dpi-UVbz.mjs → dialog-CL1Zy4pn.mjs} +1 -1
- package/dist/discover-DIDEGKo3.mjs +2 -0
- package/dist/discover-P20XeGBF.mjs +2 -0
- package/dist/{dist-Cpb7_h4N.mjs → dist-8rP3V95o.mjs} +5 -5
- package/dist/dist-CYFkGHYv.mjs +487 -0
- package/dist/dls-8D00tqvC.mjs +17 -0
- package/dist/{dns-BLNa0GrP.mjs → dns-C-A5pwf3.mjs} +63 -63
- package/dist/{dns-firewall-ChCvC5rT.mjs → dns-firewall-DIiF4pro.mjs} +9 -9
- package/dist/dot-prop-IITUZ2XW-BnPfnQkb.mjs +2 -0
- package/dist/dotenv-DpXaxfho.mjs +4 -0
- package/dist/dry-run-DmsbOMF1.mjs +2 -0
- package/dist/durable-objects-CnIqbj84.mjs +6 -0
- package/dist/{email-auth-C28s03aI.mjs → email-auth-v97Md32E.mjs} +3 -3
- package/dist/{email-routing-Ci-xjXIN.mjs → email-routing-I29RG4hb.mjs} +22 -22
- package/dist/{email-security-DPU6xvI9.mjs → email-security-BCarmbky.mjs} +86 -86
- package/dist/{email-sending-kTVAlVKO.mjs → email-sending-CsHk2HAJ.mjs} +22 -22
- package/dist/error-sanitization-BWnGnB73.mjs +2 -0
- package/dist/error-sanitization-C_a2LxOK.mjs +2 -0
- package/dist/fieldExtractors-GIVe9jZa.mjs +9 -0
- package/dist/{firewall-BND3qSY2.mjs → firewall-DpgFqJr3.mjs} +16 -16
- package/dist/flagship-BVaXXlsX.mjs +28 -0
- package/dist/{fraud-DgyYv_CC.mjs → fraud-B5GQdEF2.mjs} +3 -3
- package/dist/{generate-VxmGG8BF.mjs → generate-CeeWW3eX.mjs} +1 -1
- package/dist/generate-D80-1GnZ.mjs +2 -0
- package/dist/{google-tag-gateway-v3p7murv.mjs → google-tag-gateway-C4O61lp-.mjs} +3 -3
- package/dist/gt-3bcLGJ7V.mjs +3 -0
- package/dist/{healthchecks-CByb4qYA.mjs → healthchecks-BwYMnKSF.mjs} +10 -10
- package/dist/{hostnames-3CqeMF5g.mjs → hostnames-DhrGRFeI.mjs} +5 -5
- package/dist/{hyperdrive-CmyYTE-K.mjs → hyperdrive-DAA8Fazg.mjs} +10 -10
- package/dist/iam-sRKDU2Z3.mjs +52 -0
- package/dist/images-DXdekLVs.mjs +71 -0
- package/dist/index.mjs +1 -1
- package/dist/init-j47MT4Qe.mjs +39 -0
- package/dist/intel-CnVeSjIS.mjs +76 -0
- package/dist/interactive-Dqv0RWVU.mjs +42 -0
- package/dist/interactive-Wpd3FcDc.mjs +2 -0
- package/dist/{ips-WWvPwSBc.mjs → ips-COCUG8mk.mjs} +2 -2
- package/dist/k2-CmHkArHL.mjs +13 -0
- package/dist/{keyless-certificates-DqILy3t9.mjs → keyless-certificates-l2_S__h3.mjs} +6 -6
- package/dist/keys-CDZreums.mjs +4 -0
- package/dist/kv-DkpKVimq.mjs +15 -0
- package/dist/{lazy-command--5YpWUVY.mjs → lazy-command-_vZGz6mv.mjs} +1 -1
- package/dist/{leaked-credential-checks-C0U1oYM5.mjs → leaked-credential-checks-edbapECI.mjs} +8 -8
- package/dist/lifecycle-oud60haK.mjs +2 -0
- package/dist/{load-balancers-BJKI9lm7.mjs → load-balancers-C5YMvhXD.mjs} +40 -40
- package/dist/{local-rYpzEQb-.mjs → local-C0lQ9sTg.mjs} +1 -1
- package/dist/local-D5L5Bwju.mjs +2 -0
- package/dist/{local-runtime-DZTTIe6x.mjs → local-runtime-DtnWXN0a.mjs} +1 -1
- package/dist/{login-bnylLTit.mjs → login-BrjOuHKu.mjs} +1 -1
- package/dist/login-DeOM4v0L.mjs +2 -0
- package/dist/logo-matches-CF8321pb.mjs +6 -0
- package/dist/logos-Bd8xNRKW.mjs +7 -0
- package/dist/logpush-BYk3qqwY.mjs +46 -0
- package/dist/{logs-c3b3USyS.mjs → logs-Jcj2NN8H.mjs} +11 -11
- package/dist/magic-cloud-networking-Dgdb9H0f.mjs +71 -0
- package/dist/magic-network-monitoring-CxVU4MZB.mjs +36 -0
- package/dist/magic-transit-KDyfUgTv.mjs +383 -0
- package/dist/managed-defense-CxaDeNUd.mjs +18 -0
- package/dist/{managed-transforms-DcYAvqTe.mjs → managed-transforms-C7rT5E-x.mjs} +4 -4
- package/dist/{matches-hnU16rSJ.mjs → matches-BtKqG8T9.mjs} +3 -3
- package/dist/{mcp-kZX4irfN.mjs → mcp-QDd1Iyc0.mjs} +17 -17
- package/dist/mesh-DtrIzl5z.mjs +26 -0
- package/dist/metadata-Df5kCWJv.mjs +2 -0
- package/dist/{migrate-BNvUWrjy.mjs → migrate-DHlfR_gZ.mjs} +1 -1
- package/dist/{monetization-Dsqj9DCA.mjs → monetization-pLalYYMI.mjs} +9 -9
- package/dist/mtls-certificates-DYA9Wu-c.mjs +13 -0
- package/dist/network-DrJxPWXQ.mjs +50 -0
- package/dist/{network-interconnects-osO_vAPu.mjs → network-interconnects-D73MlYG8.mjs} +19 -19
- package/dist/{oauth-CeZ3d_dB.mjs → oauth-B08YQ4xq.mjs} +1 -1
- package/dist/{oauth-w0fWmrwU.mjs → oauth-TGbM1Q0V.mjs} +1 -1
- package/dist/oauth-clients-CkPDLFd-.mjs +16 -0
- package/dist/{oauth-scopes-CxpRD6d7.mjs → oauth-scopes-VgliqcQe.mjs} +2 -2
- package/dist/{observability-BxL2RqWZ.mjs → observability-CvN9oxAo.mjs} +42 -42
- package/dist/open-PCXX3ZDZ-D55O2jpQ.mjs +4 -0
- package/dist/{organization-DNieJ1xJ.mjs → organization-DIwqRBBV.mjs} +16 -16
- package/dist/{organizations-BIXPmTy5.mjs → organizations-Dk0D9ukm.mjs} +2 -2
- package/dist/{origin-ca-certificates-dVJvSIH8.mjs → origin-ca-certificates-BSFqMTn-.mjs} +5 -5
- package/dist/{origin-post-quantum-encryption-CO6tDW1t.mjs → origin-post-quantum-encryption-BOKWKDTY.mjs} +3 -3
- package/dist/{origin-tls-client-auth-DeTY8aN2.mjs → origin-tls-client-auth-BzE3WpcN.mjs} +14 -14
- package/dist/output-BGqhvqe2.mjs +2 -0
- package/dist/{page-rules-DA552Ra4.mjs → page-rules-BKaU37cM.mjs} +7 -7
- package/dist/pages-2Xg-lrMf.mjs +54 -0
- package/dist/{pay-per-crawl-DoTg9VP7.mjs → pay-per-crawl-5-KTQXRr.mjs} +33 -33
- package/dist/pay-per-use-sGebKzNK.mjs +6 -0
- package/dist/pipelines-BM-T7mMK.mjs +44 -0
- package/dist/precursor-DmQ32-Sp.mjs +4 -0
- package/dist/previews-DDQ9ACDJ.mjs +4 -0
- package/dist/{progress-TLUEIYE6.mjs → progress-BYVZuEcG.mjs} +1 -1
- package/dist/{prompt-Ck_1PCHm.mjs → prompt-F5wxc8zq.mjs} +1 -1
- package/dist/queries-DPBkVynK.mjs +9 -0
- package/dist/queues-CCXRs98q.mjs +57 -0
- package/dist/r2-BKuBSW8h.mjs +125 -0
- package/dist/{radar-Bez6k9Dw.mjs → radar-Gv1yFoRX.mjs} +150 -150
- package/dist/{raw-fetch-DNxNCoeP.mjs → raw-fetch-DyYWa923.mjs} +1 -1
- package/dist/realtime-CVl-rvgx.mjs +172 -0
- package/dist/registrar-sandbox-cmOYDnkp.mjs +56 -0
- package/dist/registrar-swlnh22i.mjs +43 -0
- package/dist/{registry-CsSLAAOE.mjs → registry-C20J1MW0.mjs} +1 -1
- package/dist/reporting-Bgwsvol1.mjs +14 -0
- package/dist/request-headers-CUee83pa.mjs +2 -0
- package/dist/request-tracers-BBiJvVDz.mjs +4 -0
- package/dist/resolve-DvxgnWjL.mjs +2 -0
- package/dist/resolve-qwL1LmKN.mjs +2 -0
- package/dist/resource-sharing-C1JiYLbl.mjs +40 -0
- package/dist/resource-tagging-C9VOSlDR.mjs +4 -0
- package/dist/rules-BDunCGMj.mjs +18 -0
- package/dist/{rulesets-RJ6yBefy.mjs → rulesets-BMGxrnv9.mjs} +17 -17
- package/dist/rum-B7XiECe9.mjs +30 -0
- package/dist/run-CrZgB8L_.mjs +2 -0
- package/dist/run-nNxXb_Cv.mjs +2 -0
- package/dist/schema-DC0kdqgV.mjs +2 -0
- package/dist/schema-flags-BUZR9SLd.mjs +5 -0
- package/dist/scim-CORcs2wK.mjs +18 -0
- package/dist/secrets-store-BoZQaFey.mjs +24 -0
- package/dist/{security-insights-DVAqroY5.mjs → security-insights-DblK_6sg.mjs} +20 -20
- package/dist/{security-txt-rfrrdiZV.mjs → security-txt-Dl7RPnRb.mjs} +4 -4
- package/dist/{session-B6mFkaVZ.mjs → session-BWe9et4K.mjs} +1 -1
- package/dist/shared-0N31BXkY.mjs +2 -0
- package/dist/{smart-shield-_HA814Im.mjs → smart-shield-DX0-8ruu.mjs} +11 -11
- package/dist/{snippets-mRelEw0p.mjs → snippets-BFN-Lg3K.mjs} +8 -8
- package/dist/source-mXUcrTVw.mjs +6 -0
- package/dist/spawn-DZ9A-xXb.mjs +10 -0
- package/dist/{spectrum-BwtOiaDw.mjs → spectrum-HYWLWB0X.mjs} +11 -11
- package/dist/{speed-DmqsZtiJ.mjs → speed-Dj0YhfRe.mjs} +11 -11
- package/dist/src-CAiZlihY.mjs +117 -0
- package/dist/{ssl-DCvfveJB.mjs → ssl-BQL1fNtD.mjs} +16 -16
- package/dist/startup-profile-0X5ebbng.mjs +29 -0
- package/dist/startup-profile-CXnsF4c7.mjs +2 -0
- package/dist/state-BA2CanJ_.mjs +2 -0
- package/dist/{state-BPwdiNO_.mjs → state-Dy6-rKNd.mjs} +1 -1
- package/dist/stream-DKv2TtZN.mjs +102 -0
- package/dist/submit-Byt2KBGI.mjs +4 -0
- package/dist/{tags-Djw0e-4j.mjs → tags-BIBsdG68.mjs} +2 -2
- package/dist/telemetry-DBXOMuLh.mjs +2 -0
- package/dist/{telemetry-DrFNujdx.mjs → telemetry-bu3txnIR.mjs} +1 -1
- package/dist/{tenant-tc1wb_ym.mjs → tenant-Bs4Ac4n3.mjs} +5 -5
- package/dist/{tenant-custom-nameservers-XCbXryBZ.mjs → tenant-custom-nameservers-DcaELeCE.mjs} +4 -4
- package/dist/{theme-BIWQFmZ0.mjs → theme-CQ_TYifs.mjs} +2 -2
- package/dist/{tools-CB4NleeJ.mjs → tools-BbTX7rlM.mjs} +1 -1
- package/dist/tunnels-DWcrz9Sf.mjs +29 -0
- package/dist/turnstile-2MIGp2ce.mjs +33 -0
- package/dist/{ui-D1hhIDIs.mjs → ui-YmjF66Ct.mjs} +1 -1
- package/dist/update-check-B-CvDAUz.mjs +2 -0
- package/dist/update-check-CfB0PNTY.mjs +2 -0
- package/dist/update-check-worker.mjs +1 -1
- package/dist/url-info-B8udoxlx.mjs +4 -0
- package/dist/{url-normalization-Dbypc9wz.mjs → url-normalization-C6AdWtaE.mjs} +4 -4
- package/dist/url-scanner-Dg0c_yVb.mjs +16 -0
- package/dist/{user-3uwLMH78.mjs → user-BLZ-0Bgv.mjs} +51 -51
- package/dist/values-BUK-m0Jg.mjs +4 -0
- package/dist/vectorize-DEUSEQXY.mjs +32 -0
- package/dist/version-BZNc7Y3t.mjs +2 -0
- package/dist/waiting-rooms-BycGk2Y0.mjs +53 -0
- package/dist/{web-assets-BfEprX1S.mjs → web-assets-CLZdWOmN.mjs} +30 -30
- package/dist/{web3-DNbp5sZw.mjs → web3-DjeavuLg.mjs} +13 -13
- package/dist/workers-C_SfyU-v.mjs +38 -0
- package/dist/workers-builds-COn5Ne5G.mjs +14 -0
- package/dist/workers-for-platforms-tchCXwNF.mjs +42 -0
- package/dist/{workers-vpc-LVfayM2-.mjs → workers-vpc-CKts8Av0.mjs} +7 -7
- package/dist/workflows-BibtWuOx.mjs +43 -0
- package/dist/{wrangler-migration-B0mKHqGd.mjs → wrangler-migration-BpJqCFAa.mjs} +1 -1
- package/dist/{zaraz-BY60ZUQ4.mjs → zaraz-BvQZB0YY.mjs} +11 -11
- package/dist/{zero-trust-CQNohO7_.mjs → zero-trust-FStq4uhn.mjs} +411 -411
- package/dist/{zone-BVDW2UGd.mjs → zone-tymlghWb.mjs} +2 -2
- package/dist/{zones-CcZL0YQp.mjs → zones-Bz6dgT9_.mjs} +43 -43
- package/package.json +20 -21
- package/dist/abuse-reports-DX5xgeka.mjs +0 -24
- package/dist/account-tags-CiKwgOWd.mjs +0 -15
- package/dist/addressing-B70NFnrX.mjs +0 -93
- package/dist/agent-context-GRiQ4zRU.mjs +0 -2
- package/dist/agent-memory-DJRquHeq.mjs +0 -34
- package/dist/ai-CP2oIS-I.mjs +0 -29
- package/dist/ai-gateway-CrrEtzUP.mjs +0 -82
- package/dist/ai-security-Bt_fG65f.mjs +0 -10
- package/dist/alerting-CRr88fVR.mjs +0 -56
- package/dist/analytics-XqS9OP5B.mjs +0 -20
- package/dist/analytics_engine-CzmYem4f.mjs +0 -4
- package/dist/ansi-styles-eKEZXVwN.mjs +0 -2
- package/dist/artifacts-qFjlNRqb.mjs +0 -43
- package/dist/auth-BmJ946bE.mjs +0 -2
- package/dist/auth-Br-t8vL_.mjs +0 -2
- package/dist/autoconfig-D-copdZG.mjs +0 -511
- package/dist/basin-catalog-CshcpsAH.mjs +0 -46
- package/dist/billing-B-xNxxiP.mjs +0 -23
- package/dist/bot-management-DhafeA2J.mjs +0 -9
- package/dist/botnet-feed-D6uCLE_D.mjs +0 -11
- package/dist/brand-protection-c3WiHbYn.mjs +0 -27
- package/dist/browser-run-D9_cwaSD.mjs +0 -46
- package/dist/build-9ihDp-Gy.mjs +0 -2
- package/dist/build-DrG6TqMw.mjs +0 -2
- package/dist/builds-Dl8if-2k.mjs +0 -71
- package/dist/cache-CIZokBjd.mjs +0 -45
- package/dist/cf-DfQfIu3q.mjs +0 -18
- package/dist/chunk-FT2NMTJB-BFqlGcem.mjs +0 -97
- package/dist/chunk-KKDV4JPS-B_t8sDTz.mjs +0 -2
- package/dist/chunk-U6NEESU5-BhF4rnpx.mjs +0 -2
- package/dist/chunk-WMOON6TZ-B8xCqjB1.mjs +0 -2
- package/dist/cli-exit-Dqoo6Jgb.mjs +0 -2
- package/dist/cloudflared-CEfZhSQH.mjs +0 -2
- package/dist/cloudforce-one-CE7y5UkF.mjs +0 -447
- package/dist/command-C65Ed0o9.mjs +0 -2
- package/dist/command-DHdWKtqx.mjs +0 -2
- package/dist/connector-interrupts-CVjFhU-C.mjs +0 -6
- package/dist/connector-telemetry-events-Bu3LKP6T.mjs +0 -6
- package/dist/connector-telemetry-snapshots-BbDTIc06.mjs +0 -6
- package/dist/connectors-DGtx-rPI.mjs +0 -15
- package/dist/containers-CzNbBrYE.mjs +0 -239
- package/dist/containers-DEFrbNgO.mjs +0 -78
- package/dist/ct-alerting-CYsQZO2H.mjs +0 -5
- package/dist/d1-B2duXfH2.mjs +0 -41
- package/dist/diagnostics-9Wj5UWBL.mjs +0 -15
- package/dist/discover-BYkHr5Ja.mjs +0 -2
- package/dist/discover-t6E9lpf3.mjs +0 -2
- package/dist/dist-D1iG7guo.mjs +0 -366
- package/dist/dist-zep5OXGt.mjs +0 -48
- package/dist/dls-Caya7FZc.mjs +0 -17
- package/dist/dot-prop-IITUZ2XW-BsZYdILY.mjs +0 -2
- package/dist/dotenv-CcQjGlV0.mjs +0 -4
- package/dist/dry-run-p9Q7nMZ5.mjs +0 -2
- package/dist/durable-objects-DuRbdp7N.mjs +0 -6
- package/dist/error-sanitization-BbEw--0B.mjs +0 -2
- package/dist/error-sanitization-p5rmb53x.mjs +0 -2
- package/dist/fieldExtractors-ceaXu4zD.mjs +0 -9
- package/dist/flagship-DfxbNzgx.mjs +0 -28
- package/dist/generate-9P8Q_RiO.mjs +0 -2
- package/dist/gt-KlYHH-UC.mjs +0 -2
- package/dist/iam-CV_M681j.mjs +0 -52
- package/dist/images-DaLPjskW.mjs +0 -71
- package/dist/init-CBKifk5L.mjs +0 -39
- package/dist/intel-MpftjuPB.mjs +0 -76
- package/dist/interactive-D80kbTap.mjs +0 -32
- package/dist/interactive-mJQ_IrGd.mjs +0 -2
- package/dist/k2-D0QYUFqT.mjs +0 -13
- package/dist/keys-DhX4AcqF.mjs +0 -4
- package/dist/kv-DLUfUL0_.mjs +0 -15
- package/dist/lifecycle-Cyc3fmyN.mjs +0 -2
- package/dist/local-DkYQiSQQ.mjs +0 -2
- package/dist/login-CnE2Ii_F.mjs +0 -2
- package/dist/logo-matches-DFZybI0C.mjs +0 -6
- package/dist/logos-Da2YtqSN.mjs +0 -7
- package/dist/logpush-Q7WIEHS1.mjs +0 -46
- package/dist/magic-cloud-networking-BoyDmFq3.mjs +0 -71
- package/dist/magic-network-monitoring-BkUbpMUp.mjs +0 -36
- package/dist/magic-transit-4-THD45G.mjs +0 -383
- package/dist/managed-defense-CTMqSp6z.mjs +0 -18
- package/dist/mesh-Dxzvvso6.mjs +0 -26
- package/dist/metadata-C33s4rc-.mjs +0 -2
- package/dist/mtls-certificates-BSbMwIna.mjs +0 -13
- package/dist/network-mEnXTEiG.mjs +0 -50
- package/dist/oauth-clients-CWPHi-Yn.mjs +0 -16
- package/dist/open-PCXX3ZDZ-C7gpxSsl.mjs +0 -4
- package/dist/output-ClYel9WX.mjs +0 -2
- package/dist/pages-B0x7tidm.mjs +0 -54
- package/dist/pay-per-use-yRO2QBfe.mjs +0 -6
- package/dist/pipelines-CQxrm9ao.mjs +0 -44
- package/dist/precursor-FiGYDRV9.mjs +0 -4
- package/dist/previews-BthBa50j.mjs +0 -4
- package/dist/queries-C0RRdol7.mjs +0 -9
- package/dist/queues-sLgvjsRP.mjs +0 -57
- package/dist/r2-C2PllL6i.mjs +0 -125
- package/dist/realtime-D-HSXznX.mjs +0 -172
- package/dist/registrar-DwHrG9QR.mjs +0 -43
- package/dist/registrar-sandbox-jNukmzQP.mjs +0 -56
- package/dist/reporting-DolhAb10.mjs +0 -14
- package/dist/request-headers-Lhj314mk.mjs +0 -2
- package/dist/request-tracers-w72hKc33.mjs +0 -4
- package/dist/resolve-CGKqk7q8.mjs +0 -2
- package/dist/resolve-Djf2xgBx.mjs +0 -2
- package/dist/resource-sharing-DTrSkqI4.mjs +0 -40
- package/dist/resource-tagging-aURR4fIJ.mjs +0 -4
- package/dist/rules-C8a7cV-W.mjs +0 -18
- package/dist/rum-Bk1dPW4p.mjs +0 -30
- package/dist/run-BJOAPmsz.mjs +0 -2
- package/dist/run-iFM5TxtQ.mjs +0 -2
- package/dist/schema-flags-PagOq-G2.mjs +0 -5
- package/dist/schema-v7mOxMdx.mjs +0 -2
- package/dist/scim-C0FmjkkV.mjs +0 -18
- package/dist/secrets-store-cG_5RMzK.mjs +0 -24
- package/dist/shared-BqsWoApw.mjs +0 -2
- package/dist/source-38bULAR8.mjs +0 -6
- package/dist/spawn-BzPhcLJI.mjs +0 -10
- package/dist/src--KDGqL5N.mjs +0 -109
- package/dist/startup-profile-BCe9k9sR.mjs +0 -17
- package/dist/startup-profile-WrwRyMwH.mjs +0 -2
- package/dist/state-a1tTOGjm.mjs +0 -2
- package/dist/stream-aroClJeD.mjs +0 -102
- package/dist/submit-BBKhoKT8.mjs +0 -4
- package/dist/telemetry-DoBQOGRk.mjs +0 -2
- package/dist/tunnels-C2FTswb6.mjs +0 -29
- package/dist/turnstile-BV4Mdd-j.mjs +0 -33
- package/dist/update-check-CFt6cMOi.mjs +0 -2
- package/dist/update-check-Dtj9fzNe.mjs +0 -2
- package/dist/url-info-CeegsDK7.mjs +0 -4
- package/dist/url-scanner-BFXMrpJF.mjs +0 -16
- package/dist/values-BTncDc3U.mjs +0 -4
- package/dist/vectorize-CtMAtx8r.mjs +0 -32
- package/dist/version-oN1bmOgM.mjs +0 -2
- package/dist/waiting-rooms-1xDvjF13.mjs +0 -53
- package/dist/workers-DK_JgS4Y.mjs +0 -38
- package/dist/workers-builds-CdhwmmsQ.mjs +0 -14
- package/dist/workers-for-platforms-CP6IqxrK.mjs +0 -42
- package/dist/workflows-CA5K8FFb.mjs +0 -43
- /package/dist/{Page-DAgOEX17.mjs → Page-BShsqCXr.mjs} +0 -0
- /package/dist/{alerts-D3iKtzoN.mjs → alerts-BSON-vFh.mjs} +0 -0
- /package/dist/{args-CXgkQKK7.mjs → args-CfbYkeXd.mjs} +0 -0
- /package/dist/{autorag-pvRfDwne.mjs → autorag-kNrLiqDX.mjs} +0 -0
- /package/dist/{body-parser-NjzJZMOV.mjs → body-parser-DkHKPkJ7.mjs} +0 -0
- /package/dist/{brands-DP5Ndir1.mjs → brands-bBJgbbOH.mjs} +0 -0
- /package/dist/{browser-extension-Dee2Y1qn.mjs → browser-extension-C1_fcw7h.mjs} +0 -0
- /package/dist/{clear-qLKPlJqb.mjs → clear-BW9vLgI3.mjs} +0 -0
- /package/dist/{cli-types-_Kmwfpnp.mjs → cli-types-9oYmRTHJ.mjs} +0 -0
- /package/dist/{connector-telemetry-events-latest-_aCmWeZx.mjs → connector-telemetry-events-latest-BQdOvbWh.mjs} +0 -0
- /package/dist/{connector-telemetry-snapshots-latest-CffEplpV.mjs → connector-telemetry-snapshots-latest-CtdN_dGu.mjs} +0 -0
- /package/dist/{delegate-CCGgla7X.mjs → delegate-Tgfxa-MZ.mjs} +0 -0
- /package/dist/{domain-info-BQh9XapD.mjs → domain-info-BkcBcyfF.mjs} +0 -0
- /package/dist/{errors-cuuW88wR.mjs → errors-_sob7Ihu.mjs} +0 -0
- /package/dist/{health--10IShMi.mjs → health-CTaCeVyC.mjs} +0 -0
- /package/dist/{input-validation-0CeePPHp.mjs → input-validation-D7z60HJH.mjs} +0 -0
- /package/dist/{internal-BUs583vv.mjs → internal-BYS7hO8c.mjs} +0 -0
- /package/dist/{live-VCSxA0N9.mjs → live-BJE_YWE1.mjs} +0 -0
- /package/dist/{project-settings-Bf6rReo1.mjs → project-settings-nBMEx1f-.mjs} +0 -0
- /package/dist/{r2-data-catalog-Bg7zq1IB.mjs → r2-data-catalog-BRo-Rx2I.mjs} +0 -0
- /package/dist/{rate-limit-analytics-D3q0mGv2.mjs → rate-limit-analytics-BiRyU0Xd.mjs} +0 -0
- /package/dist/{rate-limits-BIxlBuMn.mjs → rate-limits-Cr2zpncO.mjs} +0 -0
- /package/dist/{ready-CAgelFmC.mjs → ready-B3pLxnjc.mjs} +0 -0
- /package/dist/{recent-submissions-B3TOjNmk.mjs → recent-submissions-JLOvuZq-.mjs} +0 -0
- /package/dist/{refute-BZNkFpBB.mjs → refute-Dp3VodMn.mjs} +0 -0
- /package/dist/{scan-logo-StecHiaf.mjs → scan-logo-3Zr6CDJB.mjs} +0 -0
- /package/dist/{scan-page-B4adr-vD.mjs → scan-page-CxeudOzj.mjs} +0 -0
- /package/dist/{search-Devngw4M.mjs → search-B_P5ZTQj.mjs} +0 -0
- /package/dist/{signed-url-ChR5eXXd.mjs → signed-url-D5RwvrQq.mjs} +0 -0
- /package/dist/{submission-info-BGb81HZN.mjs → submission-info-_t78q2OE.mjs} +0 -0
- /package/dist/{total-queries-_wa6KxEl.mjs → total-queries-CPrKEciQ.mjs} +0 -0
- /package/dist/{tracked-domains-BesKGqfI.mjs → tracked-domains-CTRItgFT.mjs} +0 -0
- /package/dist/{verify-CYM5GlPu.mjs → verify-5KcvRk-q.mjs} +0 -0
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.12",
|
|
4
4
|
"description": "The Cloudflare CLI",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ai",
|
|
@@ -61,10 +61,10 @@
|
|
|
61
61
|
"./package.json": "./package.json"
|
|
62
62
|
},
|
|
63
63
|
"dependencies": {
|
|
64
|
-
"@cloudflare/build-output-utils": "0.8.
|
|
65
|
-
"@cloudflare/codemods": "0.
|
|
66
|
-
"@cloudflare/config": "0.
|
|
67
|
-
"@cloudflare/runtime-types": "0.1.
|
|
64
|
+
"@cloudflare/build-output-utils": "0.8.5",
|
|
65
|
+
"@cloudflare/codemods": "0.4.0",
|
|
66
|
+
"@cloudflare/config": "0.23.0",
|
|
67
|
+
"@cloudflare/runtime-types": "0.1.7",
|
|
68
68
|
"blake3-wasm": "2.1.5",
|
|
69
69
|
"miniflare": "5.20260930.0-alpha",
|
|
70
70
|
"minisearch": "7.2.0"
|
|
@@ -73,14 +73,14 @@
|
|
|
73
73
|
"@bomb.sh/tab": "0.0.15",
|
|
74
74
|
"@clack/core": "1.2.0",
|
|
75
75
|
"@clack/prompts": "^1.2.0",
|
|
76
|
-
"@cloudflare/autoconfig": "0.7.
|
|
77
|
-
"@cloudflare/cli-shared-helpers": "0.2.
|
|
78
|
-
"@cloudflare/containers-shared": "0.21.
|
|
79
|
-
"@cloudflare/deploy-helpers": "0.19.
|
|
76
|
+
"@cloudflare/autoconfig": "0.7.5",
|
|
77
|
+
"@cloudflare/cli-shared-helpers": "0.2.3",
|
|
78
|
+
"@cloudflare/containers-shared": "0.21.3",
|
|
79
|
+
"@cloudflare/deploy-helpers": "0.19.2",
|
|
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.
|
|
82
|
+
"@cloudflare/workers-auth": "0.12.0",
|
|
83
|
+
"@cloudflare/workers-utils": "0.46.0",
|
|
84
84
|
"@types/node": "25.3.5",
|
|
85
85
|
"@types/semver": "7.7.1",
|
|
86
86
|
"@types/shell-quote": "^1.7.5",
|
|
@@ -94,10 +94,9 @@
|
|
|
94
94
|
"msw": "2.14.6",
|
|
95
95
|
"semver": "7.8.5",
|
|
96
96
|
"shell-quote": "^1.8.1",
|
|
97
|
-
"tsdown": "^0.21.0",
|
|
98
97
|
"tsx": "4.21.0",
|
|
99
98
|
"undici": "7.29.1",
|
|
100
|
-
"
|
|
99
|
+
"vite-plus": "1.0.0-rc.0",
|
|
101
100
|
"yargs": "18.0.0",
|
|
102
101
|
"zod": "4.4.3"
|
|
103
102
|
},
|
|
@@ -105,13 +104,13 @@
|
|
|
105
104
|
"node": ">=22"
|
|
106
105
|
},
|
|
107
106
|
"scripts": {
|
|
108
|
-
"generate": "
|
|
109
|
-
"dev": "
|
|
110
|
-
"build": "
|
|
111
|
-
"build:test": "
|
|
112
|
-
"check:type": "
|
|
113
|
-
"test": "
|
|
114
|
-
"test:watch": "
|
|
115
|
-
"test:imports": "
|
|
107
|
+
"generate": "vp run task:generate",
|
|
108
|
+
"dev": "vp run task:dev",
|
|
109
|
+
"build": "vp run task:build",
|
|
110
|
+
"build:test": "vp run task:build:test",
|
|
111
|
+
"check:type": "vp run task:check:type",
|
|
112
|
+
"test": "vp run task:test",
|
|
113
|
+
"test:watch": "vp run task:test:watch",
|
|
114
|
+
"test:imports": "vp run task:test:imports"
|
|
116
115
|
}
|
|
117
116
|
}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
import{t as e}from"./local-rYpzEQb-.mjs";import{i as t,n}from"./auth-Br-t8vL_.mjs";import{a as r,t as i}from"./context-CquYYyS3.mjs";import{t as a}from"./output-ClYel9WX.mjs";import{t as o}from"./dry-run-p9Q7nMZ5.mjs";import{t as s}from"./progress-TLUEIYE6.mjs";import{t as c}from"./run-iFM5TxtQ.mjs";import"./telemetry-DoBQOGRk.mjs";import{i as l,n as u,r as d,t as f}from"./body-parser-NjzJZMOV.mjs";import{n as p}from"./input-validation-0CeePPHp.mjs";import{a as m,i as h}from"./prompt-Ck_1PCHm.mjs";import{t as g}from"./cli-types-_Kmwfpnp.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){o({command:`cf abuse-reports appeals eligibility`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await r()??`<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,a(await s(`Loading`,async()=>c.abuseReports.appeals.eligibility({account_id:l,report_id:t[`report-id`]})),{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){o({command:`cf abuse-reports create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${await r()??`<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);a(await s(`Creating`,async()=>t(c,`POST`,`/accounts/${g}/abuse-reports/${encodeURIComponent(String(d[`report-type`]))}`,{body:e})),{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`]),a(await s(`Creating`,async()=>t(c,`POST`,`/accounts/${g}/abuse-reports/${encodeURIComponent(String(d[`report-type`]))}`,{body:Object.keys(_).length>0?_:void 0})),{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){o({command:`cf abuse-reports emails list-submitted`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await r()??`<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,a(await s(`Loading`,async()=>l.abuseReports.emails.listSubmitted({account_id:u,report_id:t[`report-id`],...c})),{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){o({command:`cf abuse-reports emails list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await r()??`<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,a(await s(`Loading`,async()=>l.abuseReports.emails.list({account_id:u,report_id:t[`report-id`],...c})),{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){o({command:`cf abuse-reports get-submitted`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await r()??`<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,a(await s(`Loading`,async()=>c.abuseReports.getSubmitted({account_id:l,report_id:t[`report-id`]})),{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){o({command:`cf abuse-reports get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await r()??`<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,a(await s(`Loading`,async()=>t(c,`GET`,`/accounts/${u}/abuse-reports/${encodeURIComponent(String(l[`report-id`]))}`)),{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){o({command:`cf abuse-reports list-submitted`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await r()??`<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,a(await s(`Loading`,async()=>l.abuseReports.listSubmitted({account_id:u,...c})),{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){o({command:`cf abuse-reports list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await r()??`<account-id>`}/abuse-reports`,pathParams:{},query:c,bodyKind:`none`});return}let l=await n(t),u=t.local?e:await i();t.accountId=u,a(await s(`Loading`,async()=>l.abuseReports.list({account_id:u,...c})),{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){o({command:`cf abuse-reports mitigations list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await r()??`<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,a(await s(`Loading`,async()=>l.abuseReports.mitigations.list({account_id:u,report_id:t[`report-id`],...c})),{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){o({command:`cf abuse-reports mitigations review`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${await r()??`<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);a(await s(`Creating`,async()=>c.abuseReports.mitigations.review({body:e,account_id:l,report_id:t[`report-id`]})),{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`)});a(await s(`Creating`,async()=>c.abuseReports.mitigations.review({body:m,account_id:l,report_id:t[`report-id`]})),{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};
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
import{t as e}from"./local-rYpzEQb-.mjs";import{i as t,n}from"./auth-Br-t8vL_.mjs";import{a as r,i,t as a}from"./context-CquYYyS3.mjs";import{t as o}from"./output-ClYel9WX.mjs";import{t as s}from"./dry-run-p9Q7nMZ5.mjs";import{t as c}from"./progress-TLUEIYE6.mjs";import{t as l}from"./run-iFM5TxtQ.mjs";import"./telemetry-DoBQOGRk.mjs";import{i as u,n as d,t as f}from"./body-parser-NjzJZMOV.mjs";import{n as p}from"./input-validation-0CeePPHp.mjs";import{a as m,i as h,n as g}from"./prompt-Ck_1PCHm.mjs";import{t as _}from"./cli-types-_Kmwfpnp.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:`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);o(await c(`Deleting`,async()=>t(v,`DELETE`,`/${y}/${b}/tags`,{body:e,headers:Object.keys(l).length>0?l:void 0})),{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.`,`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`)),o(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})),{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:`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,o(await c(`Loading`,async()=>u.accountTags.get({account_or_zone:d,account_or_zone_id:f,...l})),{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:`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);o(await c(`Updating`,async()=>t(_,`PUT`,`/${v}/${y}/tags`,{body:e,headers:Object.keys(l).length>0?l:void 0})),{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.`,`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`)),o(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})),{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};
|
|
@@ -1,93 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
import{t as e}from"./local-rYpzEQb-.mjs";import{i as t,n}from"./auth-Br-t8vL_.mjs";import{a as r,i,t as a}from"./context-CquYYyS3.mjs";import{t as o}from"./output-ClYel9WX.mjs";import{t as s}from"./dry-run-p9Q7nMZ5.mjs";import{t as c}from"./progress-TLUEIYE6.mjs";import{t as l}from"./run-iFM5TxtQ.mjs";import"./telemetry-DoBQOGRk.mjs";import{n as u,r as d,t as f}from"./body-parser-NjzJZMOV.mjs";import{n as p,t as m}from"./input-validation-0CeePPHp.mjs";import{a as h,n as g}from"./prompt-Ck_1PCHm.mjs";import{n as ee,t as te}from"./raw-fetch-DNxNCoeP.mjs";function _(e){return e.usage(`$0 addressing address-maps accounts delete <member-account-id>
|
|
3
|
-
|
|
4
|
-
Remove an account as a member of a particular address map.`).positional(`member-account-id`,{type:`string`,description:`Identifier of a Cloudflare account.`,demandOption:!0}).option(`address-map-id`,{type:`string`,description:`Identifier of an Address Map.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`force`,{type:`boolean`,alias:`f`,description:`Skip confirmation (useful in scripts and CI)`,default:!1})}const v={command:`delete <member-account-id>`,describe:`Remove an account membership from an Address Map`,builder:_,handler:async t=>l({command:`addressing address-maps accounts delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},t,async()=>{if(t.dryRun){s({command:`cf addressing address-maps accounts delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${await r()??`<account-id>`}/addressing/address_maps/${t[`address-map-id`]==null?`<address-map-id>`:encodeURIComponent(String(t[`address-map-id`]))}/accounts/${t[`member-account-id`]==null?`<member-account-id>`:encodeURIComponent(String(t[`member-account-id`]))}`,pathParams:{"address-map-id":String(t[`address-map-id`]??``),"member-account-id":String(t[`member-account-id`]??``)},bodyKind:`none`});return}let i=await n(t),l=t.local?e:await a();if(t.accountId=l,!await g({force:!!t.force})){process.stderr.write(`Aborted.
|
|
5
|
-
`);return}o(await c(`Deleting`,async()=>i.addressing.addressMaps.accounts.delete({account_id:l,address_map_id:t[`address-map-id`],member_account_id:t[`member-account-id`]})),{successLabel:`Deleted`})})};function y(e){return e.usage(`$0 addressing address-maps accounts update <member-account-id>
|
|
6
|
-
|
|
7
|
-
Add an account as a member of a particular address map.`).positional(`member-account-id`,{type:`string`,description:`Identifier of a Cloudflare account.`,demandOption:!0}).option(`address-map-id`,{type:`string`,description:`Identifier of an Address Map.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const b={command:`update <member-account-id>`,describe:`Add an account membership to an Address Map`,builder:y,handler:async t=>l({command:`addressing address-maps accounts update`,classification:{safeFlags:[`dry-run`]}},t,async()=>{if(t.dryRun){s({command:`cf addressing address-maps accounts update`,method:`PUT`,url:`https://api.cloudflare.com/client/v4/accounts/${await r()??`<account-id>`}/addressing/address_maps/${t[`address-map-id`]==null?`<address-map-id>`:encodeURIComponent(String(t[`address-map-id`]))}/accounts/${t[`member-account-id`]==null?`<member-account-id>`:encodeURIComponent(String(t[`member-account-id`]))}`,pathParams:{"address-map-id":String(t[`address-map-id`]??``),"member-account-id":String(t[`member-account-id`]??``)},bodyKind:`none`});return}let i=await n(t),l=t.local?e:await a();t.accountId=l,o(await c(`Updating`,async()=>i.addressing.addressMaps.accounts.update({account_id:l,address_map_id:t[`address-map-id`],member_account_id:t[`member-account-id`]})),{successLabel:`Updated`})})},x={command:`accounts`,describe:`Operations for address-maps.accounts`,builder:e=>e.command(v).command(b).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function S(e){return e.usage(`$0 addressing address-maps create
|
|
8
|
-
|
|
9
|
-
Create a new address map under the account.`).option(`description`,{type:`string`,description:`An optional description field which may be used to describe the types of IPs or zones on the map.`}).option(`enabled`,{type:`boolean`,description:`Whether the Address Map is enabled or not. Cloudflare's DNS will not respond with IP addresses on an Address Map until the map is enabled.`,default:!1}).option(`ips`,{type:`string`,array:!0,description:`The ips field`}).option(`memberships`,{type:`string`,description:`Zones and Accounts which will be assigned IPs on this Address Map. A zone membership will take priority over an account membership. Provide as a JSON array of objects or @path/to/file.json.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const C={command:`create`,describe:`Create Address Map`,builder:S,handler:async t=>l({command:`addressing address-maps create`,classification:{safeFlags:[`enabled`,`dry-run`]}},t,async()=>{if(t.dryRun){s({command:`cf addressing address-maps create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${await r()??`<account-id>`}/addressing/address_maps`,pathParams:{},bodyKind:`json`,body:t.body===void 0?f({description:p(t.description,`description`,`text`),enabled:t.enabled,ips:t.ips,memberships:d(t.memberships,`memberships`)}):u(t.body)});return}let i=await n(t),l=t.local?e:await a();if(t.accountId=l,t.body){let e=u(t.body);o(await c(`Creating`,async()=>i.addressing.addressMaps.create({...e,account_id:l})),{successLabel:`Created`});return}let m=f({description:p(t.description,`description`,`text`),enabled:t.enabled,ips:t.ips,memberships:d(t.memberships,`memberships`)});o(await c(`Creating`,async()=>i.addressing.addressMaps.create({...m,account_id:l})),{successLabel:`Created`})})};function w(e){return e.usage(`$0 addressing address-maps delete <address-map-id>
|
|
10
|
-
|
|
11
|
-
Delete a particular address map owned by the account. An Address Map must be disabled before it can be deleted.`).positional(`address-map-id`,{type:`string`,description:`Identifier of an Address Map.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`force`,{type:`boolean`,alias:`f`,description:`Skip confirmation (useful in scripts and CI)`,default:!1})}const T={command:`delete <address-map-id>`,describe:`Delete Address Map`,builder:w,handler:async t=>l({command:`addressing address-maps delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},t,async()=>{if(t.dryRun){s({command:`cf addressing address-maps delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${await r()??`<account-id>`}/addressing/address_maps/${t[`address-map-id`]==null?`<address-map-id>`:encodeURIComponent(String(t[`address-map-id`]))}`,pathParams:{"address-map-id":String(t[`address-map-id`]??``)},bodyKind:`none`});return}let i=await n(t),l=t.local?e:await a();if(t.accountId=l,!await g({force:!!t.force})){process.stderr.write(`Aborted.
|
|
12
|
-
`);return}o(await c(`Deleting`,async()=>i.addressing.addressMaps.delete({account_id:l,address_map_id:t[`address-map-id`]})),{successLabel:`Deleted`})})};function E(e){return e.usage(`$0 addressing address-maps edit <address-map-id>
|
|
13
|
-
|
|
14
|
-
Modify properties of an address map owned by the account.`).positional(`address-map-id`,{type:`string`,description:`Identifier of an Address Map.`,demandOption:!0}).option(`default-sni`,{type:`string`,description:`If you have legacy TLS clients which do not send the TLS server name indicator, then you can specify one default SNI on the map. If Cloudflare receives a TLS handshake from a client without an SNI, it will respond with the default SNI on those IPs. The default SNI can be any valid zone or subdomain owned by the account.`}).option(`description`,{type:`string`,description:`An optional description field which may be used to describe the types of IPs or zones on the map.`}).option(`enabled`,{type:`boolean`,description:`Whether the Address Map is enabled or not. Cloudflare's DNS will not respond with IP addresses on an Address Map until the map is enabled.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const D={command:`edit <address-map-id>`,describe:`Update Address Map`,builder:E,handler:async t=>l({command:`addressing address-maps edit`,classification:{safeFlags:[`enabled`,`dry-run`]}},t,async()=>{if(t.dryRun){s({command:`cf addressing address-maps edit`,method:`PATCH`,url:`https://api.cloudflare.com/client/v4/accounts/${await r()??`<account-id>`}/addressing/address_maps/${t[`address-map-id`]==null?`<address-map-id>`:encodeURIComponent(String(t[`address-map-id`]))}`,pathParams:{"address-map-id":String(t[`address-map-id`]??``)},bodyKind:`json`,body:t.body===void 0?f({default_sni:p(t[`default-sni`],`default-sni`,`text`),description:p(t.description,`description`,`text`),enabled:t.enabled}):u(t.body)});return}let i=await n(t),l=t.local?e:await a();if(t.accountId=l,t.body){let e=u(t.body);o(await c(`Updating`,async()=>i.addressing.addressMaps.edit({...e,account_id:l,address_map_id:t[`address-map-id`]})),{successLabel:`Updated`});return}let d=f({default_sni:p(t[`default-sni`],`default-sni`,`text`),description:p(t.description,`description`,`text`),enabled:t.enabled});o(await c(`Updating`,async()=>i.addressing.addressMaps.edit({...d,account_id:l,address_map_id:t[`address-map-id`]})),{successLabel:`Updated`})})};function O(e){return e.usage(`$0 addressing address-maps get <address-map-id>
|
|
15
|
-
|
|
16
|
-
Show a particular address map owned by the account.`).positional(`address-map-id`,{type:`string`,description:`Identifier of an Address Map.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const k={command:`get <address-map-id>`,describe:`Address Map Details`,builder:O,handler:async t=>l({command:`addressing address-maps get`,classification:{safeFlags:[`dry-run`]}},t,async()=>{if(t.dryRun){s({command:`cf addressing address-maps get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await r()??`<account-id>`}/addressing/address_maps/${t[`address-map-id`]==null?`<address-map-id>`:encodeURIComponent(String(t[`address-map-id`]))}`,pathParams:{"address-map-id":String(t[`address-map-id`]??``)},bodyKind:`none`});return}let i=await n(t),l=t.local?e:await a();t.accountId=l,o(await c(`Loading`,async()=>i.addressing.addressMaps.get({account_id:l,address_map_id:t[`address-map-id`]})),{successLabel:`Loaded`})})};function A(e){return e.usage(`$0 addressing address-maps ips delete <ip-address>
|
|
17
|
-
|
|
18
|
-
Remove an IP from a particular address map.`).positional(`ip-address`,{type:`string`,description:`An IPv4 or IPv6 address.`,demandOption:!0}).option(`address-map-id`,{type:`string`,description:`Identifier of an Address Map.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`force`,{type:`boolean`,alias:`f`,description:`Skip confirmation (useful in scripts and CI)`,default:!1})}const j={command:`delete <ip-address>`,describe:`Remove an IP from an Address Map`,builder:A,handler:async t=>l({command:`addressing address-maps ips delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},t,async()=>{if(t.dryRun){s({command:`cf addressing address-maps ips delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${await r()??`<account-id>`}/addressing/address_maps/${t[`address-map-id`]==null?`<address-map-id>`:encodeURIComponent(String(t[`address-map-id`]))}/ips/${t[`ip-address`]==null?`<ip-address>`:encodeURIComponent(String(t[`ip-address`]))}`,pathParams:{"ip-address":String(t[`ip-address`]??``),"address-map-id":String(t[`address-map-id`]??``)},bodyKind:`none`});return}let i=await n(t),l=t.local?e:await a();if(t.accountId=l,!await g({force:!!t.force})){process.stderr.write(`Aborted.
|
|
19
|
-
`);return}o(await c(`Deleting`,async()=>i.addressing.addressMaps.ips.delete({account_id:l,address_map_id:t[`address-map-id`],ip_address:t[`ip-address`]})),{successLabel:`Deleted`})})};function M(e){return e.usage(`$0 addressing address-maps ips update <ip-address>
|
|
20
|
-
|
|
21
|
-
Add an IP from a prefix owned by the account to a particular address map.`).positional(`ip-address`,{type:`string`,description:`An IPv4 or IPv6 address.`,demandOption:!0}).option(`address-map-id`,{type:`string`,description:`Identifier of an Address Map.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const N={command:`update <ip-address>`,describe:`Add an IP to an Address Map`,builder:M,handler:async t=>l({command:`addressing address-maps ips update`,classification:{safeFlags:[`dry-run`]}},t,async()=>{if(t.dryRun){s({command:`cf addressing address-maps ips update`,method:`PUT`,url:`https://api.cloudflare.com/client/v4/accounts/${await r()??`<account-id>`}/addressing/address_maps/${t[`address-map-id`]==null?`<address-map-id>`:encodeURIComponent(String(t[`address-map-id`]))}/ips/${t[`ip-address`]==null?`<ip-address>`:encodeURIComponent(String(t[`ip-address`]))}`,pathParams:{"ip-address":String(t[`ip-address`]??``),"address-map-id":String(t[`address-map-id`]??``)},bodyKind:`none`});return}let i=await n(t),l=t.local?e:await a();t.accountId=l,o(await c(`Updating`,async()=>i.addressing.addressMaps.ips.update({account_id:l,address_map_id:t[`address-map-id`],ip_address:t[`ip-address`]})),{successLabel:`Updated`})})},P={command:`ips`,describe:`Operations for address-maps.ips`,builder:e=>e.command(j).command(N).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function F(e){return e.usage(`$0 addressing address-maps list
|
|
22
|
-
|
|
23
|
-
List all address maps owned by the account.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const I={command:`list`,describe:`List Address Maps`,builder:F,handler:async t=>l({command:`addressing address-maps list`,classification:{safeFlags:[`dry-run`]}},t,async()=>{if(t.dryRun){s({command:`cf addressing address-maps list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await r()??`<account-id>`}/addressing/address_maps`,pathParams:{},bodyKind:`none`});return}let i=await n(t),l=t.local?e:await a();t.accountId=l,o(await c(`Loading`,async()=>i.addressing.addressMaps.list({account_id:l})),{successLabel:`Loaded`})})};function L(e){return e.usage(`$0 addressing address-maps zones delete <member-zone-id>
|
|
24
|
-
|
|
25
|
-
Remove a zone as a member of a particular address map.`).positional(`member-zone-id`,{type:`string`,description:`Identifier of a zone.`,demandOption:!0}).option(`address-map-id`,{type:`string`,description:`Identifier of an Address Map.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`force`,{type:`boolean`,alias:`f`,description:`Skip confirmation (useful in scripts and CI)`,default:!1})}const R={command:`delete <member-zone-id>`,describe:`Remove a zone membership from an Address Map`,builder:L,handler:async t=>l({command:`addressing address-maps zones delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},t,async()=>{if(t.dryRun){s({command:`cf addressing address-maps zones delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${await r()??`<account-id>`}/addressing/address_maps/${t[`address-map-id`]==null?`<address-map-id>`:encodeURIComponent(String(t[`address-map-id`]))}/zones/${t[`member-zone-id`]==null?`<member-zone-id>`:encodeURIComponent(String(t[`member-zone-id`]))}`,pathParams:{"member-zone-id":String(t[`member-zone-id`]??``),"address-map-id":String(t[`address-map-id`]??``)},bodyKind:`none`});return}let i=await n(t),l=t.local?e:await a();if(t.accountId=l,!await g({force:!!t.force})){process.stderr.write(`Aborted.
|
|
26
|
-
`);return}o(await c(`Deleting`,async()=>i.addressing.addressMaps.zones.delete({account_id:l,address_map_id:t[`address-map-id`],member_zone_id:t[`member-zone-id`]})),{successLabel:`Deleted`})})};function z(e){return e.usage(`$0 addressing address-maps zones update <member-zone-id>
|
|
27
|
-
|
|
28
|
-
Add a zone as a member of a particular address map.`).positional(`member-zone-id`,{type:`string`,description:`Identifier of a zone.`,demandOption:!0}).option(`address-map-id`,{type:`string`,description:`Identifier of an Address Map.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const B={command:`update <member-zone-id>`,describe:`Add a zone membership to an Address Map`,builder:z,handler:async t=>l({command:`addressing address-maps zones update`,classification:{safeFlags:[`dry-run`]}},t,async()=>{if(t.dryRun){s({command:`cf addressing address-maps zones update`,method:`PUT`,url:`https://api.cloudflare.com/client/v4/accounts/${await r()??`<account-id>`}/addressing/address_maps/${t[`address-map-id`]==null?`<address-map-id>`:encodeURIComponent(String(t[`address-map-id`]))}/zones/${t[`member-zone-id`]==null?`<member-zone-id>`:encodeURIComponent(String(t[`member-zone-id`]))}`,pathParams:{"member-zone-id":String(t[`member-zone-id`]??``),"address-map-id":String(t[`address-map-id`]??``)},bodyKind:`none`});return}let i=await n(t),l=t.local?e:await a();t.accountId=l,o(await c(`Updating`,async()=>i.addressing.addressMaps.zones.update({account_id:l,address_map_id:t[`address-map-id`],member_zone_id:t[`member-zone-id`]})),{successLabel:`Updated`})})},V={command:`zones`,describe:`Operations for address-maps.zones`,builder:e=>e.command(R).command(B).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},H={command:`address-maps`,describe:`Operations for address-maps`,builder:e=>e.command(C).command(T).command(D).command(k).command(I).command(x).command(P).command(V).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function U(e){return e.usage(`$0 addressing leases list
|
|
29
|
-
|
|
30
|
-
List all leases owned by the account.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const W={command:`list`,describe:`List Leases`,builder:U,handler:async t=>l({command:`addressing leases list`,classification:{safeFlags:[`dry-run`]}},t,async()=>{if(t.dryRun){s({command:`cf addressing leases list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await r()??`<account-id>`}/addressing/leases`,pathParams:{},bodyKind:`none`});return}let i=await n(t),l=t.local?e:await a();t.accountId=l,o(await c(`Loading`,async()=>i.addressing.leases.list({account_id:l})),{successLabel:`Loaded`})})},G={command:`leases`,describe:`Operations for leases`,builder:e=>e.command(W).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function K(e){return e.usage(`$0 addressing loa-documents create
|
|
31
|
-
|
|
32
|
-
Submit LOA document (pdf format) under the account.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`}).option(`file`,{type:`string`,description:`Path to a file to upload as the request body`}).option(`loa-document`,{type:`string`,description:`LOA document to upload.`})}const q={command:`create`,describe:`Upload LOA Document`,builder:K,handler:async i=>l({command:`addressing loa-documents create`,classification:{safeFlags:[`dry-run`]}},i,async()=>{if(i.dryRun){s({command:`cf addressing loa-documents create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${await r()??`<account-id>`}/addressing/loa_documents`,pathParams:{},bodyKind:`multipart`,body:{body:i.body,file:i.file,"loa-document":i[`loa-document`]}});return}let l=await n(i),u=i.local?e:await a();if(i.accountId=u,i.file!==void 0||i.body!==void 0||i[`loa-document`]!==void 0){let e=new FormData;if(i.file){let t=m(i.file);e.append(`file`,new Blob([t]),i.file.split(/[\\/]/).filter(Boolean).pop())}else i.body!==void 0&&e.append(`file`,i.body);i[`loa-document`]!==void 0&&e.append(`loa_document`,String(p(i[`loa-document`],`loa-document`,`text`)??``)),o(await c(`Creating`,async()=>t(l,`POST`,`/accounts/${u}/addressing/loa_documents`,{body:e})),{successLabel:`Created`});return}if(i.body){let e=p(i.body,`body`,`binary`);o(await c(`Creating`,async()=>t(l,`POST`,`/accounts/${u}/addressing/loa_documents`,{body:e,headers:{"Content-Type":`multipart/form-data`}})),{successLabel:`Created`});return}if(i.body===void 0)throw Error(`--body is required for this command. Pass --body '<json>' or --body @path/to/file.json.`)})};function J(e){return e.usage(`$0 addressing loa-documents get <loa-document-id>
|
|
33
|
-
|
|
34
|
-
Download specified LOA document under the account.`).positional(`loa-document-id`,{type:`string`,description:`Identifier for the uploaded LOA document.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`text`,{type:`boolean`,description:`Decode the response body as UTF-8 text instead of writing raw bytes`,default:!1})}const Y={command:`get <loa-document-id>`,describe:`Download LOA Document`,builder:J,handler:async t=>l({command:`addressing loa-documents get`,classification:{safeFlags:[`dry-run`,`text`]}},t,async()=>{if(t.dryRun){s({command:`cf addressing loa-documents get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await r()??`<account-id>`}/addressing/loa_documents/${t[`loa-document-id`]==null?`<loa-document-id>`:encodeURIComponent(String(t[`loa-document-id`]))}/download`,pathParams:{"loa-document-id":String(t[`loa-document-id`]??``)},bodyKind:`none`});return}await n(t);let i=t.local?e:await a();t.accountId=i;let o=await c(`Loading`,async()=>te(`/accounts/${i}/addressing/loa_documents/${encodeURIComponent(String(t[`loa-document-id`]))}/download`,{method:`GET`,local:t.local===!0,persistTo:t.persistTo}));ee(t.text===!0?o.toString(`utf-8`):o)})},X={command:`loa-documents`,describe:`Operations for loa-documents`,builder:e=>e.command(q).command(Y).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function Z(e){return e.usage(`$0 addressing prefixes advertisement-status edit <prefix-id>
|
|
35
|
-
|
|
36
|
-
Advertise or withdraw the BGP route for a prefix. **Deprecated:** Prefer the BGP Prefixes endpoints, which additionally allow for advertising and withdrawing subnets of an IP prefix.`).positional(`prefix-id`,{type:`string`,description:`Identifier of an IP Prefix.`,demandOption:!0}).option(`advertised`,{type:`boolean`,description:"Advertisement status of the prefix. If `true`, the BGP route for the prefix is advertised to the Internet. If \n`false`, the BGP route is withdrawn.\n"}).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 Q={command:`edit <prefix-id>`,describe:`Update Prefix Dynamic Advertisement Status`,builder:Z,handler:async t=>l({command:`addressing prefixes advertisement-status edit`,classification:{safeFlags:[`advertised`,`dry-run`]}},t,async()=>{if(t.dryRun){s({command:`cf addressing prefixes advertisement-status edit`,method:`PATCH`,url:`https://api.cloudflare.com/client/v4/accounts/${await r()??`<account-id>`}/addressing/prefixes/${t[`prefix-id`]==null?`<prefix-id>`:encodeURIComponent(String(t[`prefix-id`]))}/bgp/status`,pathParams:{"prefix-id":String(t[`prefix-id`]??``)},bodyKind:`json`,body:t.body===void 0?f({advertised:t.advertised}):u(t.body)});return}let i=await n(t),l=t.local?e:await a();if(t.accountId=l,t.body){let e=u(t.body);o(await c(`Updating`,async()=>i.addressing.prefixes.advertisementStatus.edit({...e,account_id:l,prefix_id:t[`prefix-id`]})),{successLabel:`Updated`});return}if(t.advertised===void 0)throw Error(`--advertised is required (or pass --body with this field set).`);let d=f({advertised:t.advertised});o(await c(`Updating`,async()=>i.addressing.prefixes.advertisementStatus.edit({...d,account_id:l,prefix_id:t[`prefix-id`]})),{successLabel:`Updated`})})};function ne(e){return e.usage(`$0 addressing prefixes advertisement-status get <prefix-id>
|
|
37
|
-
|
|
38
|
-
View the current advertisement state for a prefix. **Deprecated:** Prefer the BGP Prefixes endpoints, which additionally allow for advertising and withdrawing subnets of an IP prefix.`).positional(`prefix-id`,{type:`string`,description:`Identifier of an IP Prefix.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const re={command:`get <prefix-id>`,describe:`Get Advertisement Status`,builder:ne,handler:async t=>l({command:`addressing prefixes advertisement-status get`,classification:{safeFlags:[`dry-run`]}},t,async()=>{if(t.dryRun){s({command:`cf addressing prefixes advertisement-status get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await r()??`<account-id>`}/addressing/prefixes/${t[`prefix-id`]==null?`<prefix-id>`:encodeURIComponent(String(t[`prefix-id`]))}/bgp/status`,pathParams:{"prefix-id":String(t[`prefix-id`]??``)},bodyKind:`none`});return}let i=await n(t),l=t.local?e:await a();t.accountId=l,o(await c(`Loading`,async()=>i.addressing.prefixes.advertisementStatus.get({account_id:l,prefix_id:t[`prefix-id`]})),{successLabel:`Loaded`})})},ie={command:`advertisement-status`,describe:`Operations for prefixes.advertisement-status`,builder:e=>e.command(Q).command(re).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function ae(e){return e.usage(`$0 addressing prefixes bgp-prefixes create <prefix-id>
|
|
39
|
-
|
|
40
|
-
Create a BGP prefix, controlling the BGP advertisement status of a specific subnet. When created, BGP prefixes are initially withdrawn, and can be advertised with the Update BGP Prefix API.`).positional(`prefix-id`,{type:`string`,description:`Identifier of an IP Prefix.`,demandOption:!0}).option(`cidr`,{type:`string`,description:`IP Prefix in Classless Inter-Domain Routing format.`}).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 oe={command:`create <prefix-id>`,describe:`Create BGP Prefix`,builder:ae,handler:async t=>l({command:`addressing prefixes bgp-prefixes create`,classification:{safeFlags:[`dry-run`]}},t,async()=>{if(t.dryRun){s({command:`cf addressing prefixes bgp-prefixes create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${await r()??`<account-id>`}/addressing/prefixes/${t[`prefix-id`]==null?`<prefix-id>`:encodeURIComponent(String(t[`prefix-id`]))}/bgp/prefixes`,pathParams:{"prefix-id":String(t[`prefix-id`]??``)},bodyKind:`json`,body:t.body===void 0?f({cidr:p(t.cidr,`cidr`,`text`)}):u(t.body)});return}let i=await n(t),l=t.local?e:await a();if(t.accountId=l,t.body){let e=u(t.body);o(await c(`Creating`,async()=>i.addressing.prefixes.bgpPrefixes.create({...e,account_id:l,prefix_id:t[`prefix-id`]})),{successLabel:`Created`});return}t.cidr===void 0&&(t.cidr=await h(`cidr`,`IP Prefix in Classless Inter-Domain Routing format.`));let d=f({cidr:p(t.cidr,`cidr`,`text`)});o(await c(`Creating`,async()=>i.addressing.prefixes.bgpPrefixes.create({...d,account_id:l,prefix_id:t[`prefix-id`]})),{successLabel:`Created`})})};function se(e){return e.usage(`$0 addressing prefixes bgp-prefixes delete <bgp-prefix-id>
|
|
41
|
-
|
|
42
|
-
Delete a BGP Prefix associated with the specified IP Prefix. A BGP Prefix must be withdrawn before it can be deleted.`).positional(`bgp-prefix-id`,{type:`string`,description:`Identifier of BGP Prefix.`,demandOption:!0}).option(`prefix-id`,{type:`string`,description:`Identifier of an IP Prefix.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`force`,{type:`boolean`,alias:`f`,description:`Skip confirmation (useful in scripts and CI)`,default:!1})}const ce={command:`delete <bgp-prefix-id>`,describe:`Delete BGP Prefix`,builder:se,handler:async t=>l({command:`addressing prefixes bgp-prefixes delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},t,async()=>{if(t.dryRun){s({command:`cf addressing prefixes bgp-prefixes delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${await r()??`<account-id>`}/addressing/prefixes/${t[`prefix-id`]==null?`<prefix-id>`:encodeURIComponent(String(t[`prefix-id`]))}/bgp/prefixes/${t[`bgp-prefix-id`]==null?`<bgp-prefix-id>`:encodeURIComponent(String(t[`bgp-prefix-id`]))}`,pathParams:{"prefix-id":String(t[`prefix-id`]??``),"bgp-prefix-id":String(t[`bgp-prefix-id`]??``)},bodyKind:`none`});return}let i=await n(t),l=t.local?e:await a();if(t.accountId=l,!await g({force:!!t.force})){process.stderr.write(`Aborted.
|
|
43
|
-
`);return}o(await c(`Deleting`,async()=>i.addressing.prefixes.bgpPrefixes.delete({account_id:l,prefix_id:t[`prefix-id`],bgp_prefix_id:t[`bgp-prefix-id`]})),{successLabel:`Deleted`})})};function le(e){return e.usage(`$0 addressing prefixes bgp-prefixes edit <bgp-prefix-id>
|
|
44
|
-
|
|
45
|
-
Update the properties of a BGP Prefix, such as the on demand advertisement status (advertised or withdrawn).`).positional(`bgp-prefix-id`,{type:`string`,description:`Identifier of BGP Prefix.`,demandOption:!0}).option(`prefix-id`,{type:`string`,description:`Identifier of an IP Prefix.`,demandOption:!0}).option(`asn-prepend-count`,{type:`number`,description:`Number of times to prepend the Cloudflare ASN to the BGP AS-Path attribute`}).option(`auto-advertise-withdraw`,{type:`boolean`,description:`Determines if Cloudflare advertises a BYOIP BGP prefix even when there is no matching BGP prefix in the Magic routing table. When true, Cloudflare will automatically withdraw the BGP prefix when there are no matching BGP routes, and will resume advertising when there is at least one matching BGP route.`}).option(`on-demand-advertised`,{type:`boolean`,description:`The on_demand.advertised field`}).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 ue={command:`edit <bgp-prefix-id>`,describe:`Update BGP Prefix`,builder:le,handler:async t=>l({command:`addressing prefixes bgp-prefixes edit`,classification:{safeFlags:[`auto-advertise-withdraw`,`on-demand-advertised`,`dry-run`]}},t,async()=>{if(t.dryRun){s({command:`cf addressing prefixes bgp-prefixes edit`,method:`PATCH`,url:`https://api.cloudflare.com/client/v4/accounts/${await r()??`<account-id>`}/addressing/prefixes/${t[`prefix-id`]==null?`<prefix-id>`:encodeURIComponent(String(t[`prefix-id`]))}/bgp/prefixes/${t[`bgp-prefix-id`]==null?`<bgp-prefix-id>`:encodeURIComponent(String(t[`bgp-prefix-id`]))}`,pathParams:{"prefix-id":String(t[`prefix-id`]??``),"bgp-prefix-id":String(t[`bgp-prefix-id`]??``)},bodyKind:`json`,body:t.body===void 0?f({asn_prepend_count:t[`asn-prepend-count`],auto_advertise_withdraw:t[`auto-advertise-withdraw`],on_demand:{advertised:t[`on-demand-advertised`]}}):u(t.body)});return}let i=await n(t),l=t.local?e:await a();if(t.accountId=l,t.body){let e=u(t.body);o(await c(`Updating`,async()=>i.addressing.prefixes.bgpPrefixes.edit({...e,account_id:l,prefix_id:t[`prefix-id`],bgp_prefix_id:t[`bgp-prefix-id`]})),{successLabel:`Updated`});return}let d=f({asn_prepend_count:t[`asn-prepend-count`],auto_advertise_withdraw:t[`auto-advertise-withdraw`],on_demand:{advertised:t[`on-demand-advertised`]}});o(await c(`Updating`,async()=>i.addressing.prefixes.bgpPrefixes.edit({...d,account_id:l,prefix_id:t[`prefix-id`],bgp_prefix_id:t[`bgp-prefix-id`]})),{successLabel:`Updated`})})};function de(e){return e.usage(`$0 addressing prefixes bgp-prefixes get <bgp-prefix-id>
|
|
46
|
-
|
|
47
|
-
Retrieve a single BGP Prefix according to its identifier`).positional(`bgp-prefix-id`,{type:`string`,description:`Identifier of BGP Prefix.`,demandOption:!0}).option(`prefix-id`,{type:`string`,description:`Identifier of an IP Prefix.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const fe={command:`get <bgp-prefix-id>`,describe:`Fetch BGP Prefix`,builder:de,handler:async t=>l({command:`addressing prefixes bgp-prefixes get`,classification:{safeFlags:[`dry-run`]}},t,async()=>{if(t.dryRun){s({command:`cf addressing prefixes bgp-prefixes get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await r()??`<account-id>`}/addressing/prefixes/${t[`prefix-id`]==null?`<prefix-id>`:encodeURIComponent(String(t[`prefix-id`]))}/bgp/prefixes/${t[`bgp-prefix-id`]==null?`<bgp-prefix-id>`:encodeURIComponent(String(t[`bgp-prefix-id`]))}`,pathParams:{"prefix-id":String(t[`prefix-id`]??``),"bgp-prefix-id":String(t[`bgp-prefix-id`]??``)},bodyKind:`none`});return}let i=await n(t),l=t.local?e:await a();t.accountId=l,o(await c(`Loading`,async()=>i.addressing.prefixes.bgpPrefixes.get({account_id:l,prefix_id:t[`prefix-id`],bgp_prefix_id:t[`bgp-prefix-id`]})),{successLabel:`Loaded`})})};function pe(e){return e.usage(`$0 addressing prefixes bgp-prefixes list
|
|
48
|
-
|
|
49
|
-
List all BGP Prefixes within the specified IP Prefix. BGP Prefixes are used to control which specific subnets are advertised to the Internet. It is possible to advertise subnets more specific than an IP Prefix by creating more specific BGP Prefixes.`).option(`prefix-id`,{type:`string`,description:`Identifier of an IP Prefix.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const me={command:`list`,describe:`List BGP Prefixes`,builder:pe,handler:async t=>l({command:`addressing prefixes bgp-prefixes list`,classification:{safeFlags:[`dry-run`]}},t,async()=>{if(t.dryRun){s({command:`cf addressing prefixes bgp-prefixes list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await r()??`<account-id>`}/addressing/prefixes/${t[`prefix-id`]==null?`<prefix-id>`:encodeURIComponent(String(t[`prefix-id`]))}/bgp/prefixes`,pathParams:{"prefix-id":String(t[`prefix-id`]??``)},bodyKind:`none`});return}let i=await n(t),l=t.local?e:await a();t.accountId=l,o(await c(`Loading`,async()=>i.addressing.prefixes.bgpPrefixes.list({account_id:l,prefix_id:t[`prefix-id`]})),{successLabel:`Loaded`})})},he={command:`bgp-prefixes`,describe:`Operations for prefixes.bgp-prefixes`,builder:e=>e.command(oe).command(ce).command(ue).command(fe).command(me).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function ge(e){return e.usage(`$0 addressing prefixes create
|
|
50
|
-
|
|
51
|
-
Add a new prefix under the account.`).option(`asn`,{type:`number`,description:`Autonomous System Number (ASN) the prefix will be advertised under.`}).option(`cidr`,{type:`string`,description:`IP Prefix in Classless Inter-Domain Routing format.`}).option(`delegate-loa-creation`,{type:`boolean`,description:`Whether Cloudflare is allowed to generate the LOA document on behalf of the prefix owner.`,default:!1}).option(`description`,{type:`string`,description:`Description of the prefix.`}).option(`loa-document-id`,{type:`string`,description:`Identifier for the uploaded LOA document.`}).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:`Add Prefix`,builder:ge,handler:async t=>l({command:`addressing prefixes create`,classification:{safeFlags:[`delegate-loa-creation`,`dry-run`]}},t,async()=>{if(t.dryRun){s({command:`cf addressing prefixes create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${await r()??`<account-id>`}/addressing/prefixes`,pathParams:{},bodyKind:`json`,body:t.body===void 0?f({asn:t.asn,cidr:p(t.cidr,`cidr`,`text`),delegate_loa_creation:t[`delegate-loa-creation`],description:p(t.description,`description`,`text`),loa_document_id:p(t[`loa-document-id`],`loa-document-id`,`text`)}):u(t.body)});return}let i=await n(t),l=t.local?e:await a();if(t.accountId=l,t.body){let e=u(t.body);o(await c(`Creating`,async()=>i.addressing.prefixes.create({...e,account_id:l})),{successLabel:`Created`});return}if(t.asn===void 0)throw Error(`--asn is required (or pass --body with this field set).`);t.cidr===void 0&&(t.cidr=await h(`cidr`,`IP Prefix in Classless Inter-Domain Routing format.`));let d=f({asn:t.asn,cidr:p(t.cidr,`cidr`,`text`),delegate_loa_creation:t[`delegate-loa-creation`],description:p(t.description,`description`,`text`),loa_document_id:p(t[`loa-document-id`],`loa-document-id`,`text`)});o(await c(`Creating`,async()=>i.addressing.prefixes.create({...d,account_id:l})),{successLabel:`Created`})})};function ve(e){return e.usage(`$0 addressing prefixes delegations create <prefix-id>
|
|
52
|
-
|
|
53
|
-
Create a new account delegation for a given IP prefix.`).positional(`prefix-id`,{type:`string`,description:`Identifier of an IP Prefix.`,demandOption:!0}).option(`cidr`,{type:`string`,description:`IP Prefix in Classless Inter-Domain Routing format.`}).option(`delegated-account-id`,{type:`string`,description:`Account identifier for the account to which prefix is being delegated.`}).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 ye={command:`create <prefix-id>`,describe:`Create Prefix Delegation`,builder:ve,handler:async t=>l({command:`addressing prefixes delegations create`,classification:{safeFlags:[`dry-run`]}},t,async()=>{if(t.dryRun){s({command:`cf addressing prefixes delegations create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${await r()??`<account-id>`}/addressing/prefixes/${t[`prefix-id`]==null?`<prefix-id>`:encodeURIComponent(String(t[`prefix-id`]))}/delegations`,pathParams:{"prefix-id":String(t[`prefix-id`]??``)},bodyKind:`json`,body:t.body===void 0?f({cidr:p(t.cidr,`cidr`,`text`),delegated_account_id:p(t[`delegated-account-id`],`delegated-account-id`,`text`)}):u(t.body)});return}let i=await n(t),l=t.local?e:await a();if(t.accountId=l,t.body){let e=u(t.body);o(await c(`Creating`,async()=>i.addressing.prefixes.delegations.create({...e,account_id:l,prefix_id:t[`prefix-id`]})),{successLabel:`Created`});return}t.cidr===void 0&&(t.cidr=await h(`cidr`,`IP Prefix in Classless Inter-Domain Routing format.`)),t[`delegated-account-id`]===void 0&&(t[`delegated-account-id`]=await h(`delegated-account-id`,`Account identifier for the account to which prefix is being delegated.`));let d=f({cidr:p(t.cidr,`cidr`,`text`),delegated_account_id:p(t[`delegated-account-id`],`delegated-account-id`,`text`)});o(await c(`Creating`,async()=>i.addressing.prefixes.delegations.create({...d,account_id:l,prefix_id:t[`prefix-id`]})),{successLabel:`Created`})})};function be(e){return e.usage(`$0 addressing prefixes delegations delete <delegation-id>
|
|
54
|
-
|
|
55
|
-
Delete an account delegation for a given IP prefix.`).positional(`delegation-id`,{type:`string`,description:`Identifier of a Delegation.`,demandOption:!0}).option(`prefix-id`,{type:`string`,description:`Identifier of an IP Prefix.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`force`,{type:`boolean`,alias:`f`,description:`Skip confirmation (useful in scripts and CI)`,default:!1})}const xe={command:`delete <delegation-id>`,describe:`Delete Prefix Delegation`,builder:be,handler:async t=>l({command:`addressing prefixes delegations delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},t,async()=>{if(t.dryRun){s({command:`cf addressing prefixes delegations delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${await r()??`<account-id>`}/addressing/prefixes/${t[`prefix-id`]==null?`<prefix-id>`:encodeURIComponent(String(t[`prefix-id`]))}/delegations/${t[`delegation-id`]==null?`<delegation-id>`:encodeURIComponent(String(t[`delegation-id`]))}`,pathParams:{"delegation-id":String(t[`delegation-id`]??``),"prefix-id":String(t[`prefix-id`]??``)},bodyKind:`none`});return}let i=await n(t),l=t.local?e:await a();if(t.accountId=l,!await g({force:!!t.force})){process.stderr.write(`Aborted.
|
|
56
|
-
`);return}o(await c(`Deleting`,async()=>i.addressing.prefixes.delegations.delete({account_id:l,prefix_id:t[`prefix-id`],delegation_id:t[`delegation-id`]})),{successLabel:`Deleted`})})};function Se(e){return e.usage(`$0 addressing prefixes delegations list
|
|
57
|
-
|
|
58
|
-
List all delegations for a given account IP prefix.`).option(`prefix-id`,{type:`string`,description:`Identifier of an IP Prefix.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const Ce={command:`list`,describe:`List Prefix Delegations`,builder:Se,handler:async t=>l({command:`addressing prefixes delegations list`,classification:{safeFlags:[`dry-run`]}},t,async()=>{if(t.dryRun){s({command:`cf addressing prefixes delegations list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await r()??`<account-id>`}/addressing/prefixes/${t[`prefix-id`]==null?`<prefix-id>`:encodeURIComponent(String(t[`prefix-id`]))}/delegations`,pathParams:{"prefix-id":String(t[`prefix-id`]??``)},bodyKind:`none`});return}let i=await n(t),l=t.local?e:await a();t.accountId=l,o(await c(`Loading`,async()=>i.addressing.prefixes.delegations.list({account_id:l,prefix_id:t[`prefix-id`]})),{successLabel:`Loaded`})})},we={command:`delegations`,describe:`Operations for prefixes.delegations`,builder:e=>e.command(ye).command(xe).command(Ce).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function Te(e){return e.usage(`$0 addressing prefixes delete <prefix-id>
|
|
59
|
-
|
|
60
|
-
Delete an unapproved prefix owned by the account.`).positional(`prefix-id`,{type:`string`,description:`Identifier of an IP Prefix.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`force`,{type:`boolean`,alias:`f`,description:`Skip confirmation (useful in scripts and CI)`,default:!1})}const Ee={command:`delete <prefix-id>`,describe:`Delete Prefix`,builder:Te,handler:async t=>l({command:`addressing prefixes delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},t,async()=>{if(t.dryRun){s({command:`cf addressing prefixes delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${await r()??`<account-id>`}/addressing/prefixes/${t[`prefix-id`]==null?`<prefix-id>`:encodeURIComponent(String(t[`prefix-id`]))}`,pathParams:{"prefix-id":String(t[`prefix-id`]??``)},bodyKind:`none`});return}let i=await n(t),l=t.local?e:await a();if(t.accountId=l,!await g({force:!!t.force})){process.stderr.write(`Aborted.
|
|
61
|
-
`);return}o(await c(`Deleting`,async()=>i.addressing.prefixes.delete({account_id:l,prefix_id:t[`prefix-id`]})),{successLabel:`Deleted`})})};function De(e){return e.usage(`$0 addressing prefixes edit <prefix-id>
|
|
62
|
-
|
|
63
|
-
Modify the description for a prefix owned by the account.`).positional(`prefix-id`,{type:`string`,description:`Identifier of an IP Prefix.`,demandOption:!0}).option(`description`,{type:`string`,description:`Description of the prefix.`}).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 Oe={command:`edit <prefix-id>`,describe:`Update Prefix Description`,builder:De,handler:async t=>l({command:`addressing prefixes edit`,classification:{safeFlags:[`dry-run`]}},t,async()=>{if(t.dryRun){s({command:`cf addressing prefixes edit`,method:`PATCH`,url:`https://api.cloudflare.com/client/v4/accounts/${await r()??`<account-id>`}/addressing/prefixes/${t[`prefix-id`]==null?`<prefix-id>`:encodeURIComponent(String(t[`prefix-id`]))}`,pathParams:{"prefix-id":String(t[`prefix-id`]??``)},bodyKind:`json`,body:t.body===void 0?f({description:p(t.description,`description`,`text`)}):u(t.body)});return}let i=await n(t),l=t.local?e:await a();if(t.accountId=l,t.body){let e=u(t.body);o(await c(`Updating`,async()=>i.addressing.prefixes.edit({...e,account_id:l,prefix_id:t[`prefix-id`]})),{successLabel:`Updated`});return}t.description===void 0&&(t.description=await h(`description`,`Description of the prefix.`));let d=f({description:p(t.description,`description`,`text`)});o(await c(`Updating`,async()=>i.addressing.prefixes.edit({...d,account_id:l,prefix_id:t[`prefix-id`]})),{successLabel:`Updated`})})};function ke(e){return e.usage(`$0 addressing prefixes get <prefix-id>
|
|
64
|
-
|
|
65
|
-
List a particular prefix owned by the account.`).positional(`prefix-id`,{type:`string`,description:`Identifier of an IP Prefix.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const Ae={command:`get <prefix-id>`,describe:`Prefix Details`,builder:ke,handler:async t=>l({command:`addressing prefixes get`,classification:{safeFlags:[`dry-run`]}},t,async()=>{if(t.dryRun){s({command:`cf addressing prefixes get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await r()??`<account-id>`}/addressing/prefixes/${t[`prefix-id`]==null?`<prefix-id>`:encodeURIComponent(String(t[`prefix-id`]))}`,pathParams:{"prefix-id":String(t[`prefix-id`]??``)},bodyKind:`none`});return}let i=await n(t),l=t.local?e:await a();t.accountId=l,o(await c(`Loading`,async()=>i.addressing.prefixes.get({account_id:l,prefix_id:t[`prefix-id`]})),{successLabel:`Loaded`})})};function je(e){return e.usage(`$0 addressing prefixes list
|
|
66
|
-
|
|
67
|
-
List all prefixes owned by the account.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const Me={command:`list`,describe:`List Prefixes`,builder:je,handler:async t=>l({command:`addressing prefixes list`,classification:{safeFlags:[`dry-run`]}},t,async()=>{if(t.dryRun){s({command:`cf addressing prefixes list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await r()??`<account-id>`}/addressing/prefixes`,pathParams:{},bodyKind:`none`});return}let i=await n(t),l=t.local?e:await a();t.accountId=l,o(await c(`Loading`,async()=>i.addressing.prefixes.list({account_id:l})),{successLabel:`Loaded`})})};function Ne(e){return e.usage(`$0 addressing prefixes service-bindings create <prefix-id>
|
|
68
|
-
|
|
69
|
-
Creates a new Service Binding, routing traffic to IPs within the given CIDR to a service running on Cloudflare's network. **NOTE:** The first Service Binding created for an IP Prefix must exactly match the IP Prefix's CIDR. Subsequent Service Bindings may be created with a more-specific CIDR. Refer to the [Service Bindings Documentation](https://developers.cloudflare.com/byoip/service-bindings/) for compatibility details.`).positional(`prefix-id`,{type:`string`,description:`Identifier of an IP Prefix.`,demandOption:!0}).option(`cidr`,{type:`string`,description:`IP Prefix in Classless Inter-Domain Routing format.`}).option(`service-id`,{type:`string`,description:`Identifier of a Service on the Cloudflare network. Available services and their IDs may be found in the
|
|
70
|
-
**List Services** endpoint.
|
|
71
|
-
`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const Pe={command:`create <prefix-id>`,describe:`Create Service Binding`,builder:Ne,handler:async t=>l({command:`addressing prefixes service-bindings create`,classification:{safeFlags:[`dry-run`]}},t,async()=>{if(t.dryRun){s({command:`cf addressing prefixes service-bindings create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${await r()??`<account-id>`}/addressing/prefixes/${t[`prefix-id`]==null?`<prefix-id>`:encodeURIComponent(String(t[`prefix-id`]))}/bindings`,pathParams:{"prefix-id":String(t[`prefix-id`]??``)},bodyKind:`json`,body:t.body===void 0?f({cidr:p(t.cidr,`cidr`,`text`),service_id:p(t[`service-id`],`service-id`,`text`)}):u(t.body)});return}let i=await n(t),l=t.local?e:await a();if(t.accountId=l,t.body){let e=u(t.body);o(await c(`Creating`,async()=>i.addressing.prefixes.serviceBindings.create({...e,account_id:l,prefix_id:t[`prefix-id`]})),{successLabel:`Created`});return}t.cidr===void 0&&(t.cidr=await h(`cidr`,`IP Prefix in Classless Inter-Domain Routing format.`)),t[`service-id`]===void 0&&(t[`service-id`]=await h(`service-id`,`Identifier of a Service on the Cloudflare network. Available services and their IDs may be found in the **List Services** endpoint. `));let d=f({cidr:p(t.cidr,`cidr`,`text`),service_id:p(t[`service-id`],`service-id`,`text`)});o(await c(`Creating`,async()=>i.addressing.prefixes.serviceBindings.create({...d,account_id:l,prefix_id:t[`prefix-id`]})),{successLabel:`Created`})})};function Fe(e){return e.usage(`$0 addressing prefixes service-bindings delete <binding-id>
|
|
72
|
-
|
|
73
|
-
Delete a Service Binding`).positional(`binding-id`,{type:`string`,description:`Identifier of a Service Binding.`,demandOption:!0}).option(`prefix-id`,{type:`string`,description:`Identifier of an IP Prefix.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`force`,{type:`boolean`,alias:`f`,description:`Skip confirmation (useful in scripts and CI)`,default:!1})}const Ie={command:`delete <binding-id>`,describe:`Delete Service Binding`,builder:Fe,handler:async t=>l({command:`addressing prefixes service-bindings delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},t,async()=>{if(t.dryRun){s({command:`cf addressing prefixes service-bindings delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${await r()??`<account-id>`}/addressing/prefixes/${t[`prefix-id`]==null?`<prefix-id>`:encodeURIComponent(String(t[`prefix-id`]))}/bindings/${t[`binding-id`]==null?`<binding-id>`:encodeURIComponent(String(t[`binding-id`]))}`,pathParams:{"prefix-id":String(t[`prefix-id`]??``),"binding-id":String(t[`binding-id`]??``)},bodyKind:`none`});return}let i=await n(t),l=t.local?e:await a();if(t.accountId=l,!await g({force:!!t.force})){process.stderr.write(`Aborted.
|
|
74
|
-
`);return}o(await c(`Deleting`,async()=>i.addressing.prefixes.serviceBindings.delete({account_id:l,prefix_id:t[`prefix-id`],binding_id:t[`binding-id`]})),{successLabel:`Deleted`})})};function Le(e){return e.usage(`$0 addressing prefixes service-bindings get <binding-id>
|
|
75
|
-
|
|
76
|
-
Fetch a single Service Binding`).positional(`binding-id`,{type:`string`,description:`Identifier of a Service Binding.`,demandOption:!0}).option(`prefix-id`,{type:`string`,description:`Identifier of an IP Prefix.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const Re={command:`get <binding-id>`,describe:`Get Service Binding`,builder:Le,handler:async t=>l({command:`addressing prefixes service-bindings get`,classification:{safeFlags:[`dry-run`]}},t,async()=>{if(t.dryRun){s({command:`cf addressing prefixes service-bindings get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await r()??`<account-id>`}/addressing/prefixes/${t[`prefix-id`]==null?`<prefix-id>`:encodeURIComponent(String(t[`prefix-id`]))}/bindings/${t[`binding-id`]==null?`<binding-id>`:encodeURIComponent(String(t[`binding-id`]))}`,pathParams:{"prefix-id":String(t[`prefix-id`]??``),"binding-id":String(t[`binding-id`]??``)},bodyKind:`none`});return}let i=await n(t),l=t.local?e:await a();t.accountId=l,o(await c(`Loading`,async()=>i.addressing.prefixes.serviceBindings.get({account_id:l,prefix_id:t[`prefix-id`],binding_id:t[`binding-id`]})),{successLabel:`Loaded`})})};function ze(e){return e.usage("$0 addressing prefixes service-bindings list\n\nList the Cloudflare services this prefix is currently bound to. Traffic sent to an address within an IP prefix will be routed to the Cloudflare service of the most-specific Service Binding matching the address. **Example:** binding `192.0.2.0/24` to Cloudflare Magic Transit and `192.0.2.1/32` to the Cloudflare CDN would route traffic for `192.0.2.1` to the CDN, and traffic for all other IPs in the prefix to Cloudflare Magic Transit.").option(`prefix-id`,{type:`string`,description:`Identifier of an IP Prefix.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const Be={command:`list`,describe:`List Service Bindings`,builder:ze,handler:async t=>l({command:`addressing prefixes service-bindings list`,classification:{safeFlags:[`dry-run`]}},t,async()=>{if(t.dryRun){s({command:`cf addressing prefixes service-bindings list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await r()??`<account-id>`}/addressing/prefixes/${t[`prefix-id`]==null?`<prefix-id>`:encodeURIComponent(String(t[`prefix-id`]))}/bindings`,pathParams:{"prefix-id":String(t[`prefix-id`]??``)},bodyKind:`none`});return}let i=await n(t),l=t.local?e:await a();t.accountId=l,o(await c(`Loading`,async()=>i.addressing.prefixes.serviceBindings.list({account_id:l,prefix_id:t[`prefix-id`]})),{successLabel:`Loaded`})})},Ve={command:`service-bindings`,describe:`Operations for prefixes.service-bindings`,builder:e=>e.command(Pe).command(Ie).command(Re).command(Be).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function He(e){return e.usage(`$0 addressing prefixes validate create <prefix-id>
|
|
77
|
-
|
|
78
|
-
Triggers a new prefix validation. The checks are run asynchronously and include IRR, RPKI, and prefix ownership.`).positional(`prefix-id`,{type:`string`,description:`Identifier of an IP Prefix.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const Ue={command:`create <prefix-id>`,describe:`Validate Prefix`,builder:He,handler:async t=>l({command:`addressing prefixes validate create`,classification:{safeFlags:[`dry-run`]}},t,async()=>{if(t.dryRun){s({command:`cf addressing prefixes validate create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${await r()??`<account-id>`}/addressing/prefixes/${t[`prefix-id`]==null?`<prefix-id>`:encodeURIComponent(String(t[`prefix-id`]))}/validate`,pathParams:{"prefix-id":String(t[`prefix-id`]??``)},bodyKind:`none`});return}let i=await n(t),l=t.local?e:await a();t.accountId=l,o(await c(`Creating`,async()=>i.addressing.prefixes.validate.create({account_id:l,prefix_id:t[`prefix-id`]})),{successLabel:`Created`})})},We={command:`validate`,describe:`Operations for prefixes.validate`,builder:e=>e.command(Ue).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},Ge={command:`prefixes`,describe:`Operations for prefixes`,builder:e=>e.command(_e).command(Ee).command(Oe).command(Ae).command(Me).command(ie).command(he).command(we).command(Ve).command(We).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function Ke(e){return e.usage(`$0 addressing regional_hostnames create
|
|
79
|
-
|
|
80
|
-
Create a new Regional Hostname entry. Cloudflare will only use data centers that are physically located within the chosen region to decrypt and service HTTPS traffic. Learn more about [Regional Services](https://developers.cloudflare.com/data-localization/regional-services/get-started/).`).option(`hostname`,{type:`string`,description:"DNS hostname to be regionalized, must be a subdomain of the zone. Wildcards are supported for one level, e.g `*.example.com`"}).option(`region-key`,{type:`string`,description:`Identifying key for the region`}).option(`routing`,{type:`string`,description:`Configure which routing method to use for the regional hostname`,default:`dns`}).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 qe={command:`create`,describe:`Create Regional Hostname`,builder:Ke,handler:async e=>l({command:`addressing regional_hostnames create`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){s({command:`cf addressing regional_hostnames create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/addressing/regional_hostnames`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``)},bodyKind:`json`,body:e.body===void 0?f({hostname:p(e.hostname,`hostname`,`text`),region_key:p(e[`region-key`],`region-key`,`text`),routing:p(e.routing,`routing`,`text`)}):u(e.body)});return}let t=await n(e),r=await i({zone:e.zone},t,{quiet:e.quiet});if(e.zoneId=r,e.body){let n=u(e.body);o(await c(`Creating`,async()=>t.addressing.regionalHostnames.create({...n,zone_id:r})),{successLabel:`Created`});return}e.hostname===void 0&&(e.hostname=await h(`hostname`,"DNS hostname to be regionalized, must be a subdomain of the zone. Wildcards are supported for one level, e.g `*.example.com`")),e[`region-key`]===void 0&&(e[`region-key`]=await h(`region-key`,`Identifying key for the region`));let a=f({hostname:p(e.hostname,`hostname`,`text`),region_key:p(e[`region-key`],`region-key`,`text`),routing:p(e.routing,`routing`,`text`)});o(await c(`Creating`,async()=>t.addressing.regionalHostnames.create({...a,zone_id:r})),{successLabel:`Created`})})};function Je(e){return e.usage(`$0 addressing regional_hostnames delete <hostname>
|
|
81
|
-
|
|
82
|
-
Delete the region configuration for a specific Regional Hostname.`).positional(`hostname`,{type:`string`,description:"DNS hostname to be regionalized, must be a subdomain of the zone. Wildcards are supported for one level, e.g `*.example.com`",demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`force`,{type:`boolean`,alias:`f`,description:`Skip confirmation (useful in scripts and CI)`,default:!1})}const $={command:`delete <hostname>`,describe:`Delete Regional Hostname`,builder:Je,handler:async e=>l({command:`addressing regional_hostnames delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{if(e.dryRun){s({command:`cf addressing regional_hostnames delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/addressing/regional_hostnames/${e.hostname==null?`<hostname>`:encodeURIComponent(String(e.hostname))}`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``),hostname:String(e.hostname??``)},bodyKind:`none`});return}let t=await n(e),r=await i({zone:e.zone},t,{quiet:e.quiet});if(e.zoneId=r,!await g({force:!!e.force})){process.stderr.write(`Aborted.
|
|
83
|
-
`);return}o(await c(`Deleting`,async()=>t.addressing.regionalHostnames.delete({zone_id:r,hostname:e.hostname})),{successLabel:`Deleted`})})};function Ye(e){return e.usage(`$0 addressing regional_hostnames edit <hostname>
|
|
84
|
-
|
|
85
|
-
Update the configuration for a specific Regional Hostname. Only the region_key of a hostname is mutable.`).positional(`hostname`,{type:`string`,description:"DNS hostname to be regionalized, must be a subdomain of the zone. Wildcards are supported for one level, e.g `*.example.com`",demandOption:!0}).option(`region-key`,{type:`string`,description:`Identifying key for the region`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const Xe={command:`edit <hostname>`,describe:`Update Regional Hostname`,builder:Ye,handler:async e=>l({command:`addressing regional_hostnames edit`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){s({command:`cf addressing regional_hostnames edit`,method:`PATCH`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/addressing/regional_hostnames/${e.hostname==null?`<hostname>`:encodeURIComponent(String(e.hostname))}`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``),hostname:String(e.hostname??``)},bodyKind:`json`,body:e.body===void 0?f({region_key:p(e[`region-key`],`region-key`,`text`)}):u(e.body)});return}let t=await n(e),r=await i({zone:e.zone},t,{quiet:e.quiet});if(e.zoneId=r,e.body){let n=u(e.body);o(await c(`Updating`,async()=>t.addressing.regionalHostnames.edit({...n,zone_id:r,hostname:e.hostname})),{successLabel:`Updated`});return}e[`region-key`]===void 0&&(e[`region-key`]=await h(`region-key`,`Identifying key for the region`));let a=f({region_key:p(e[`region-key`],`region-key`,`text`)});o(await c(`Updating`,async()=>t.addressing.regionalHostnames.edit({...a,zone_id:r,hostname:e.hostname})),{successLabel:`Updated`})})};function Ze(e){return e.usage(`$0 addressing regional_hostnames get <hostname>
|
|
86
|
-
|
|
87
|
-
Fetch the configuration for a specific Regional Hostname, within a zone.`).positional(`hostname`,{type:`string`,description:"DNS hostname to be regionalized, must be a subdomain of the zone. Wildcards are supported for one level, e.g `*.example.com`",demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const Qe={command:`get <hostname>`,describe:`Fetch Regional Hostname`,builder:Ze,handler:async e=>l({command:`addressing regional_hostnames get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){s({command:`cf addressing regional_hostnames get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/addressing/regional_hostnames/${e.hostname==null?`<hostname>`:encodeURIComponent(String(e.hostname))}`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``),hostname:String(e.hostname??``)},bodyKind:`none`});return}let t=await n(e),r=await i({zone:e.zone},t,{quiet:e.quiet});e.zoneId=r,o(await c(`Loading`,async()=>t.addressing.regionalHostnames.get({zone_id:r,hostname:e.hostname})),{successLabel:`Loaded`})})};function $e(e){return e.usage(`$0 addressing regional_hostnames list
|
|
88
|
-
|
|
89
|
-
List all Regional Hostnames within a zone.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const et={command:`list`,describe:`List Regional Hostnames`,builder:$e,handler:async e=>l({command:`addressing regional_hostnames list`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){s({command:`cf addressing regional_hostnames list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/addressing/regional_hostnames`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``)},bodyKind:`none`});return}let t=await n(e),r=await i({zone:e.zone},t,{quiet:e.quiet});e.zoneId=r,o(await c(`Loading`,async()=>t.addressing.regionalHostnames.list({zone_id:r})),{successLabel:`Loaded`})})};function tt(e){return e.usage(`$0 addressing regional_hostnames regions list
|
|
90
|
-
|
|
91
|
-
List all Regional Services regions available for use by this account.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const nt={command:`list`,describe:`List Regions`,builder:tt,handler:async t=>l({command:`addressing regional_hostnames regions list`,classification:{safeFlags:[`dry-run`]}},t,async()=>{if(t.dryRun){s({command:`cf addressing regional_hostnames regions list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await r()??`<account-id>`}/addressing/regional_hostnames/regions`,pathParams:{},bodyKind:`none`});return}let i=await n(t),l=t.local?e:await a();t.accountId=l,o(await c(`Loading`,async()=>i.addressing.regionalHostnames.regions.list({account_id:l})),{successLabel:`Loaded`})})},rt={command:`regions`,describe:`Operations for regional_hostnames.regions`,builder:e=>e.command(nt).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},it={command:`regional_hostnames`,describe:`Operations for regional_hostnames`,builder:e=>e.command(qe).command($).command(Xe).command(Qe).command(et).command(rt).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function at(e){return e.usage(`$0 addressing services list
|
|
92
|
-
|
|
93
|
-
Bring-Your-Own IP (BYOIP) prefixes onboarded to Cloudflare must be bound to a service running on the Cloudflare network to enable a Cloudflare product on the IP addresses. This endpoint can be used as a reference of available services on the Cloudflare network, and their service IDs.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const ot={command:`list`,describe:`List Services`,builder:at,handler:async t=>l({command:`addressing services list`,classification:{safeFlags:[`dry-run`]}},t,async()=>{if(t.dryRun){s({command:`cf addressing services list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await r()??`<account-id>`}/addressing/services`,pathParams:{},bodyKind:`none`});return}let i=await n(t),l=t.local?e:await a();t.accountId=l,o(await c(`Loading`,async()=>i.addressing.services.list({account_id:l})),{successLabel:`Loaded`})})},st={command:`services`,describe:`Operations for services`,builder:e=>e.command(ot).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},ct={command:`addressing`,describe:`addressing`,builder:e=>e.command(H).command(G).command(X).command(Ge).command(it).command(st).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};export{ct as default};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
const e=new Set([``,`0`,`false`,`no`,`off`]);function t(t,n){let r=t[n];if(typeof r!=`string`)return;let i=r.trim();return e.has(i.toLowerCase())?void 0:i}function n(e,t,n){return e[t]===n}function r(e,t,n){return t&&e.push(n),t}function i(e,t,n={}){return{harness:e,...n,signals:t}}const a=[e=>n(e,`OPENCODE`,`1`)?i({id:`opencode`,name:`OpenCode`},[`OPENCODE`]):null,e=>{let n=t(e,`QWEN_CODE_SESSION_ID`);if(!n)return null;let r=[`QWEN_CODE_SESSION_ID`],a=t(e,`QWEN_CODE_MODEL`),o=t(e,`QWEN_CODE_AGENT_ID`),s=t(e,`QWEN_CODE_PROMPT_ID`);return a&&r.push(`QWEN_CODE_MODEL`),o&&r.push(`QWEN_CODE_AGENT_ID`),s&&r.push(`QWEN_CODE_PROMPT_ID`),i({id:`qwen-code`,name:`Qwen Code`},r,{model:a?{id:a}:void 0,sessionId:n,invocationId:o??s})},e=>{let a=[],o=r(a,n(e,`PI_CODING_AGENT`,`true`),`PI_CODING_AGENT`),s=r(a,n(e,`AI_AGENT`,`pi`),`AI_AGENT`);if(!o&&!s)return null;let c=t(e,`PI_SESSION_ID`),l=t(e,`PI_PROVIDER`),u=t(e,`PI_MODEL`);return c&&a.push(`PI_SESSION_ID`),l&&a.push(`PI_PROVIDER`),u&&a.push(`PI_MODEL`),i({id:`pi`,name:`Pi`},a,{model:u?{id:u,provider:l}:void 0,sessionId:c})},e=>{if(!n(e,`CURSOR_AGENT`,`1`))return null;let r=[`CURSOR_AGENT`],a=t(e,`CURSOR_CONVERSATION_ID`),o=t(e,`CURSOR_TRACE_ID`);return a&&r.push(`CURSOR_CONVERSATION_ID`),o&&r.push(`CURSOR_TRACE_ID`),i({id:`cursor-agent`,name:`Cursor Agent`},r,{sessionId:a,invocationId:o})},e=>{if(!n(e,`CLAUDECODE`,`1`))return null;let r=[`CLAUDECODE`],a=t(e,`CLAUDE_CODE_SESSION_ID`);return a&&r.push(`CLAUDE_CODE_SESSION_ID`),i({id:`claude-code`,name:`Claude Code`},r,{sessionId:a})},e=>{let n=t(e,`CODEX_THREAD_ID`);return n?i({id:`codex`,name:`OpenAI Codex`},[`CODEX_THREAD_ID`],{sessionId:n}):null},e=>{let n=t(e,`AMP_CURRENT_THREAD_ID`);return n?i({id:`amp`,name:`Amp`},[`AMP_CURRENT_THREAD_ID`],{sessionId:n}):null},e=>n(e,`GEMINI_CLI`,`1`)?i({id:`gemini-agent`,name:`Gemini CLI`},[`GEMINI_CLI`]):null,e=>n(e,`AUGMENT_AGENT`,`1`)?i({id:`auggie`,name:`Auggie`},[`AUGMENT_AGENT`]):null,e=>{let t=[],a=r(t,n(e,`CRUSH`,`1`),`CRUSH`),o=r(t,n(e,`AI_AGENT`,`crush`),`AI_AGENT`);return a||o?i({id:`crush`,name:`Crush`},t):null},e=>{let t=[],a=r(t,n(e,`AI_AGENT`,`github_copilot_vscode_agent`),`AI_AGENT`),o=r(t,n(e,`COPILOT_AGENT`,`1`),`COPILOT_AGENT`);return a||o?i({id:`vscode-copilot-agent`,name:`GitHub Copilot in VS Code`,surface:`vscode`},t):null},e=>{let n=t(e,`OZ_RUN_ID`);return n?i({id:`warp`,name:`Warp`},[`OZ_RUN_ID`],{sessionId:n}):null}];function o(e=process.env,t=a){let n=[];for(let r of t)try{let t=r(e);t&&n.push(t)}catch{}return{isAgentic:n.length>0,harness:n[0]?.harness??null,model:n.find(e=>e.model)?.model??null,sessionId:n.find(e=>e.sessionId)?.sessionId??null,invocationId:n.find(e=>e.invocationId)?.invocationId??null,matches:n}}export{o as t};
|