cf 1.0.0-beta.10 → 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-D4DN4XZF.mjs → access-DwJm1qet.mjs} +1 -1
- package/dist/account-tags-d0RkEw6s.mjs +15 -0
- package/dist/accounts-BSd4b-1j.mjs +138 -0
- package/dist/{acm-OQqE8FMc.mjs → acm-BfI0p2sX.mjs} +8 -8
- 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-B_tSl78A.mjs +6 -0
- package/dist/ai-gateway-CJaUlfGc.mjs +82 -0
- package/dist/ai-jFzFBANM.mjs +29 -0
- package/dist/ai-search-PTlpY1T9.mjs +79 -0
- 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-CSuYMpMO.mjs → api-security-Nk_bg-Kg.mjs} +61 -61
- package/dist/{argo-DMfNmOV4.mjs → argo-DYfLQhd2.mjs} +5 -5
- package/dist/artifacts-BS6cEqCB.mjs +43 -0
- package/dist/{audit-logs-BrjNuiLx.mjs → audit-logs-x5tLqeX2.mjs} +2 -2
- package/dist/auth-AobvBmz4.mjs +2 -0
- package/dist/auth-CBtzZ3Sw.mjs +2 -0
- package/dist/auth-CKotxfap.mjs +2 -0
- package/dist/auth-token-CtguMdmF.mjs +8 -0
- package/dist/autoconfig-PfnbLuEO.mjs +532 -0
- package/dist/{banner-ClclgnBn.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-D_uAJH9B.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-BeXSqJAj.mjs → cli-D9qlPB-6.mjs} +1 -1
- package/dist/cli-exit-CstFZ1eJ.mjs +2 -0
- package/dist/{client-certificates-DqFcK_s1.mjs → client-certificates-B-m8rfM9.mjs} +7 -7
- package/dist/{client-side-security-DJXZ1XAu.mjs → client-side-security-M4oIUqID.mjs} +15 -15
- package/dist/cloud-connector-B63Dwn6n.mjs +6 -0
- package/dist/cloudflared-B48cfu95.mjs +2 -0
- package/dist/cloudforce-one-Dlc1GNFy.mjs +447 -0
- package/dist/{command-xU78ACNA.mjs → command-BQpXcGKV.mjs} +1 -1
- package/dist/{command-DUafPVUr.mjs → command-BWlpCtHe.mjs} +1 -1
- package/dist/{command-BOLlvEan.mjs → command-BlGILcTA.mjs} +1 -1
- package/dist/{command-K1-DZFJS.mjs → command-CKQlxypn.mjs} +1 -1
- package/dist/{command-C__qB2mo.mjs → command-CRl00uA2.mjs} +1 -1
- package/dist/{command-DZookrfw.mjs → command-CUkXxZsc.mjs} +1 -1
- package/dist/command-CXxh5Hce.mjs +2 -0
- package/dist/{command-BCag-xjk.mjs → command-CzvlHvov.mjs} +1 -1
- package/dist/{command-DxSJy_ym.mjs → command-DBaNgfA4.mjs} +1 -1
- package/dist/command-DEQSv-S1.mjs +2 -0
- package/dist/{command-BrHTpaji.mjs → command-DyE8v4sd.mjs} +1 -1
- package/dist/command-Rv2MR-eh.mjs +2 -0
- package/dist/{command-B6DqnUwt.mjs → command-SS1z_t68.mjs} +1 -1
- package/dist/{command-6YTtWltE.mjs → command-VuxpEvmH.mjs} +1 -1
- package/dist/{command-DzHL5LKI.mjs → command-ZBQ1WITj.mjs} +1 -1
- package/dist/{completions-Cm9brGAI.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-C_ROsbTJ.mjs → content-scan-COyTz0Wb.mjs} +8 -8
- package/dist/{context-CEOHpZgd.mjs → context-Bwkz4Lm_.mjs} +2 -2
- package/dist/{cps-BPQqyL2E.mjs → cps-B7_BJaAU.mjs} +3 -3
- package/dist/{csamScanner-D-oO5cxT.mjs → csamScanner-jez2EYXC.mjs} +3 -3
- package/dist/ct-alerting-CACDrY0E.mjs +5 -0
- package/dist/{custom-certificates-DvnFBZdJ.mjs → custom-certificates-BBd92YlF.mjs} +8 -8
- package/dist/{custom-csrs-BZ8TXbuQ.mjs → custom-csrs-DTwBiNMX.mjs} +6 -6
- package/dist/{custom-hostnames-CTqf-KlT.mjs → custom-hostnames-DIWlqvN9.mjs} +15 -15
- package/dist/custom-nameservers-DISy8v8u.mjs +9 -0
- package/dist/custom-pages-BHXO_NFv.mjs +21 -0
- package/dist/d1-MvAQMvvo.mjs +89 -0
- package/dist/{dcv-delegation-yOtz90qE.mjs → dcv-delegation-Buq0hcm_.mjs} +2 -2
- package/dist/delegate.mjs +1 -1
- package/dist/{deploy-C4p6SzLH.mjs → deploy-BS47vZvJ.mjs} +1 -1
- package/dist/deploy-context-Cfushp8j.mjs +56 -0
- package/dist/{deploy-input-DTjBGloL.mjs → deploy-input-BAhS5LYx.mjs} +1 -1
- package/dist/{dev-BML-bpNU.mjs → dev-D8FGPKRt.mjs} +2 -2
- package/dist/diagnostics-ChDfJ-Gv.mjs +15 -0
- package/dist/{dialog-BlUXJKbA.mjs → dialog-CL1Zy4pn.mjs} +1 -1
- package/dist/discover-DIDEGKo3.mjs +2 -0
- package/dist/discover-P20XeGBF.mjs +2 -0
- package/dist/{dist-DW47TUGh.mjs → dist-8rP3V95o.mjs} +5 -5
- package/dist/dist-CYFkGHYv.mjs +487 -0
- package/dist/dls-8D00tqvC.mjs +17 -0
- package/dist/{dns-C9sUPsNt.mjs → dns-C-A5pwf3.mjs} +68 -68
- package/dist/{dns-firewall-EDiT-Zli.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-BgvoEHJk.mjs → email-auth-v97Md32E.mjs} +3 -3
- package/dist/{email-routing-Bggn219w.mjs → email-routing-I29RG4hb.mjs} +24 -24
- package/dist/{email-security-_t7rzrzd.mjs → email-security-BCarmbky.mjs} +86 -86
- package/dist/email-sending-CsHk2HAJ.mjs +47 -0
- package/dist/error-sanitization-BWnGnB73.mjs +2 -0
- package/dist/error-sanitization-C_a2LxOK.mjs +2 -0
- package/dist/errors-_sob7Ihu.mjs +3 -0
- package/dist/fieldExtractors-GIVe9jZa.mjs +9 -0
- package/dist/{firewall-CZEN8iA_.mjs → firewall-DpgFqJr3.mjs} +19 -19
- package/dist/flagship-BVaXXlsX.mjs +28 -0
- package/dist/{fraud-9_9hobAh.mjs → fraud-B5GQdEF2.mjs} +3 -3
- package/dist/{generate-CLqGOlOx.mjs → generate-CeeWW3eX.mjs} +1 -1
- package/dist/generate-D80-1GnZ.mjs +2 -0
- package/dist/{google-tag-gateway-O_N0vHRY.mjs → google-tag-gateway-C4O61lp-.mjs} +3 -3
- package/dist/gt-3bcLGJ7V.mjs +3 -0
- package/dist/{healthchecks-Bt3Gw_JZ.mjs → healthchecks-BwYMnKSF.mjs} +12 -12
- package/dist/{hostnames-DdOube3R.mjs → hostnames-DhrGRFeI.mjs} +6 -6
- package/dist/{hyperdrive-C14NAh9l.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-PT_uQKAf.mjs → ips-COCUG8mk.mjs} +2 -2
- package/dist/k2-CmHkArHL.mjs +13 -0
- package/dist/{keyless-certificates-BHvas2q1.mjs → keyless-certificates-l2_S__h3.mjs} +7 -7
- package/dist/keys-CDZreums.mjs +4 -0
- package/dist/kv-DkpKVimq.mjs +15 -0
- package/dist/{lazy-command-glNW3jzf.mjs → lazy-command-_vZGz6mv.mjs} +1 -1
- package/dist/{leaked-credential-checks-De9hI1rl.mjs → leaked-credential-checks-edbapECI.mjs} +10 -10
- package/dist/lifecycle-oud60haK.mjs +2 -0
- package/dist/{load-balancers-Cs6bUHS1.mjs → load-balancers-C5YMvhXD.mjs} +40 -40
- package/dist/{local-B5oRPTEN.mjs → local-C0lQ9sTg.mjs} +1 -1
- package/dist/local-D5L5Bwju.mjs +2 -0
- package/dist/{local-runtime-CZnegFEM.mjs → local-runtime-DtnWXN0a.mjs} +1 -1
- package/dist/login-BrjOuHKu.mjs +5 -0
- 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-Jcj2NN8H.mjs +36 -0
- 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-CCpUz4TY.mjs → managed-transforms-C7rT5E-x.mjs} +5 -5
- package/dist/{matches-BSiYXs99.mjs → matches-BtKqG8T9.mjs} +3 -3
- package/dist/{mcp-CCMiS75R.mjs → mcp-QDd1Iyc0.mjs} +17 -17
- package/dist/mesh-DtrIzl5z.mjs +26 -0
- package/dist/metadata-Df5kCWJv.mjs +2 -0
- package/dist/{migrate-BJ9Go_wP.mjs → migrate-DHlfR_gZ.mjs} +1 -1
- package/dist/{monetization-CFf_lb6x.mjs → monetization-pLalYYMI.mjs} +11 -11
- package/dist/mtls-certificates-DYA9Wu-c.mjs +13 -0
- package/dist/network-DrJxPWXQ.mjs +50 -0
- package/dist/{network-interconnects-YiRUBbjx.mjs → network-interconnects-D73MlYG8.mjs} +19 -19
- package/dist/{oauth-cNZUky3h.mjs → oauth-B08YQ4xq.mjs} +2 -2
- package/dist/{oauth-DxGgIwFc.mjs → oauth-TGbM1Q0V.mjs} +1 -1
- package/dist/oauth-clients-CkPDLFd-.mjs +16 -0
- package/dist/{oauth-scopes-xl-pcWdg.mjs → oauth-scopes-VgliqcQe.mjs} +2 -2
- package/dist/observability-CvN9oxAo.mjs +80 -0
- package/dist/open-PCXX3ZDZ-D55O2jpQ.mjs +4 -0
- package/dist/{organization-Dbom1gTR.mjs → organization-DIwqRBBV.mjs} +16 -16
- package/dist/{organizations-OUMVsuen.mjs → organizations-Dk0D9ukm.mjs} +2 -2
- package/dist/{origin-ca-certificates-B3-T0-Nn.mjs → origin-ca-certificates-BSFqMTn-.mjs} +5 -5
- package/dist/{origin-post-quantum-encryption-CGB6AfPa.mjs → origin-post-quantum-encryption-BOKWKDTY.mjs} +3 -3
- package/dist/{origin-tls-client-auth-CgzzfAWr.mjs → origin-tls-client-auth-BzE3WpcN.mjs} +16 -16
- package/dist/output-BGqhvqe2.mjs +2 -0
- package/dist/{page-rules-B9BQKU4_.mjs → page-rules-BKaU37cM.mjs} +8 -8
- package/dist/pages-2Xg-lrMf.mjs +54 -0
- package/dist/pay-per-crawl-5-KTQXRr.mjs +65 -0
- 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-A61dRbXl.mjs → progress-BYVZuEcG.mjs} +1 -1
- package/dist/{prompt-CGUzvBgY.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-CU4T02Ag.mjs → radar-Gv1yFoRX.mjs} +150 -150
- package/dist/raw-fetch-DyYWa923.mjs +2 -0
- 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-Cg5lP8oo.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-HOOnxHZZ.mjs → rulesets-BMGxrnv9.mjs} +20 -20
- 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-DblK_6sg.mjs +40 -0
- package/dist/{security-txt-Fnl3LdSn.mjs → security-txt-Dl7RPnRb.mjs} +5 -5
- package/dist/{session-CZTuHcbm.mjs → session-BWe9et4K.mjs} +1 -1
- package/dist/shared-0N31BXkY.mjs +2 -0
- package/dist/{smart-shield-DB0E7cZI.mjs → smart-shield-DX0-8ruu.mjs} +13 -13
- package/dist/snippets-BFN-Lg3K.mjs +20 -0
- package/dist/source-mXUcrTVw.mjs +6 -0
- package/dist/spawn-DZ9A-xXb.mjs +10 -0
- package/dist/{spectrum-DtG0jYjE.mjs → spectrum-HYWLWB0X.mjs} +12 -12
- package/dist/{speed-B-RiNHGK.mjs → speed-Dj0YhfRe.mjs} +13 -13
- package/dist/src-CAiZlihY.mjs +117 -0
- package/dist/{ssl-DBVpCZAM.mjs → ssl-BQL1fNtD.mjs} +17 -17
- 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-BaGRaYow.mjs → state-Dy6-rKNd.mjs} +1 -1
- package/dist/stream-DKv2TtZN.mjs +102 -0
- package/dist/submit-Byt2KBGI.mjs +4 -0
- package/dist/{tags--eph7JbN.mjs → tags-BIBsdG68.mjs} +2 -2
- package/dist/telemetry-DBXOMuLh.mjs +2 -0
- package/dist/{telemetry-51etasAu.mjs → telemetry-bu3txnIR.mjs} +1 -1
- package/dist/{tenant-Bj-He2xO.mjs → tenant-Bs4Ac4n3.mjs} +5 -5
- package/dist/{tenant-custom-nameservers-B5IIIwbz.mjs → tenant-custom-nameservers-DcaELeCE.mjs} +4 -4
- package/dist/{theme-BIWQFmZ0.mjs → theme-CQ_TYifs.mjs} +2 -2
- package/dist/{tools-BJZ0DDlL.mjs → tools-BbTX7rlM.mjs} +1 -1
- package/dist/tunnels-DWcrz9Sf.mjs +29 -0
- package/dist/turnstile-2MIGp2ce.mjs +33 -0
- package/dist/{ui-BQxRjahW.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-BpGDUUQc.mjs → url-normalization-C6AdWtaE.mjs} +5 -5
- package/dist/url-scanner-Dg0c_yVb.mjs +16 -0
- package/dist/{user-B6P5_OjP.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-yaKxN4w_.mjs → web-assets-CLZdWOmN.mjs} +35 -35
- package/dist/{web3-Bu9c_QAt.mjs → web3-DjeavuLg.mjs} +15 -15
- 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-C1oUHHqk.mjs → workers-vpc-CKts8Av0.mjs} +7 -7
- package/dist/workflows-BibtWuOx.mjs +43 -0
- package/dist/{wrangler-migration-CJEb9hY3.mjs → wrangler-migration-BpJqCFAa.mjs} +1 -1
- package/dist/zaraz-BvQZB0YY.mjs +22 -0
- package/dist/zero-trust-FStq4uhn.mjs +821 -0
- package/dist/{zone-uJwRLSnn.mjs → zone-tymlghWb.mjs} +2 -2
- package/dist/{zones-Dpofsnth.mjs → zones-Bz6dgT9_.mjs} +47 -47
- package/package.json +25 -21
- package/dist/abuse-reports-BhSTEz7h.mjs +0 -24
- package/dist/account-tags-BWEIZLID.mjs +0 -15
- package/dist/accounts-ZQvIqGJz.mjs +0 -138
- package/dist/addressing-DCFm17JQ.mjs +0 -93
- package/dist/agent-context-GRiQ4zRU.mjs +0 -2
- package/dist/agent-memory-BtfPt2me.mjs +0 -34
- package/dist/ai-B0_sZbmy.mjs +0 -29
- package/dist/ai-audit-DaubuhYF.mjs +0 -6
- package/dist/ai-gateway-CJ-1Dzzr.mjs +0 -82
- package/dist/ai-search-Dywa1kqX.mjs +0 -79
- package/dist/ai-security-2wxMPqKS.mjs +0 -10
- package/dist/alerting-yad9DYRv.mjs +0 -56
- package/dist/analytics-DKNw2fVc.mjs +0 -20
- package/dist/analytics_engine-BA3kF46s.mjs +0 -4
- package/dist/ansi-styles-eKEZXVwN.mjs +0 -2
- package/dist/artifacts-Cb3hwClm.mjs +0 -43
- package/dist/auth-BBlAI8HG.mjs +0 -2
- package/dist/auth-BIr56Mbx.mjs +0 -8
- package/dist/autoconfig-DPUztTL2.mjs +0 -511
- package/dist/basin-catalog-BLsQhJP4.mjs +0 -46
- package/dist/billing-CRwD7oQS.mjs +0 -23
- package/dist/bot-management-CyW8F8Wm.mjs +0 -9
- package/dist/botnet-feed-BBKsxf3Y.mjs +0 -11
- package/dist/brand-protection-DSeD8LXl.mjs +0 -27
- package/dist/browser-run-BAcUTwB4.mjs +0 -46
- package/dist/build-B5UYMEQH.mjs +0 -2
- package/dist/build-DLZ9gBNA.mjs +0 -2
- package/dist/builds-W1HEG7Bv.mjs +0 -71
- package/dist/cache-B7E_PXUp.mjs +0 -45
- package/dist/cf-Bh_fTFIj.mjs +0 -18
- package/dist/chunk-FT2NMTJB-1VFYM1Ro.mjs +0 -97
- package/dist/chunk-KKDV4JPS-DdzLLtnl.mjs +0 -2
- package/dist/chunk-U6NEESU5-BhF4rnpx.mjs +0 -2
- package/dist/chunk-WMOON6TZ-D_ToS88f.mjs +0 -2
- package/dist/cli-exit-Dqoo6Jgb.mjs +0 -2
- package/dist/cloud-connector-Czg1GdQi.mjs +0 -6
- package/dist/cloudflared-DGuau-lC.mjs +0 -2
- package/dist/cloudforce-one-B1IhIZcp.mjs +0 -447
- package/dist/command-CAtsHc1V.mjs +0 -2
- package/dist/command-DfffeX-k.mjs +0 -2
- package/dist/command-TCklVvOY.mjs +0 -2
- package/dist/connector-interrupts-D93KTMkw.mjs +0 -6
- package/dist/connector-telemetry-events-D6CmKR14.mjs +0 -6
- package/dist/connector-telemetry-snapshots-WO9IUk0e.mjs +0 -6
- package/dist/connectors-DNT6GTW3.mjs +0 -15
- package/dist/containers-Btx7vCDP.mjs +0 -78
- package/dist/containers-Ce7IO-Ia.mjs +0 -239
- package/dist/ct-alerting-CnTRE1Fb.mjs +0 -5
- package/dist/custom-nameservers-B0CpnUVg.mjs +0 -9
- package/dist/custom-pages-DcoSGN56.mjs +0 -21
- package/dist/d1-m7UfzBzl.mjs +0 -41
- package/dist/diagnostics-hOvnx5DT.mjs +0 -15
- package/dist/discover-C5aiI6u0.mjs +0 -2
- package/dist/discover-DwczTkRX.mjs +0 -2
- package/dist/dist-BuCJ_55d.mjs +0 -366
- package/dist/dist-C3s9SXTd.mjs +0 -48
- package/dist/dls-v6DyEWTd.mjs +0 -17
- package/dist/dot-prop-IITUZ2XW-BilKo4kO.mjs +0 -2
- package/dist/dotenv-CcQjGlV0.mjs +0 -4
- package/dist/dry-run-Bq0JAsbX.mjs +0 -2
- package/dist/durable-objects-C01phVwL.mjs +0 -6
- package/dist/email-sending-_dKCs2VF.mjs +0 -47
- package/dist/error-sanitization-CJ5OLJrh.mjs +0 -2
- package/dist/error-sanitization-hmi1CqE5.mjs +0 -2
- package/dist/fieldExtractors-Cm5QnkE0.mjs +0 -9
- package/dist/flagship-B_SAI_ZL.mjs +0 -28
- package/dist/generate-BPqoDbck.mjs +0 -2
- package/dist/gt-DmcMNPX6.mjs +0 -2
- package/dist/iam-DUW7neMx.mjs +0 -52
- package/dist/images-B9dnr1z0.mjs +0 -71
- package/dist/init-BGcAIvV7.mjs +0 -39
- package/dist/intel-BQpZMck3.mjs +0 -76
- package/dist/interactive-C-o16XQs.mjs +0 -32
- package/dist/interactive-SgAjen2z.mjs +0 -2
- package/dist/k2-nPYti7Y0.mjs +0 -13
- package/dist/keys-O5kAW9ox.mjs +0 -4
- package/dist/kv-BUP_ZLM_.mjs +0 -15
- package/dist/lifecycle-C7tAC1Mn.mjs +0 -2
- package/dist/local-Bj-l0TP6.mjs +0 -2
- package/dist/login-C5nSIS-T.mjs +0 -2
- package/dist/login-CUup7w0e.mjs +0 -5
- package/dist/logo-matches-BkQKdu4Z.mjs +0 -6
- package/dist/logos-C_sv-boo.mjs +0 -7
- package/dist/logpush-NUcyMKHi.mjs +0 -46
- package/dist/logs-BZT4PlqZ.mjs +0 -36
- package/dist/magic-cloud-networking-DQnSdmgA.mjs +0 -71
- package/dist/magic-network-monitoring-pHTU6aS8.mjs +0 -36
- package/dist/magic-transit-5302bQNh.mjs +0 -383
- package/dist/managed-defense-8OEfDzuO.mjs +0 -18
- package/dist/mesh-DKBGTlCD.mjs +0 -26
- package/dist/metadata-C33s4rc-.mjs +0 -2
- package/dist/mtls-certificates-DsF3NFNs.mjs +0 -13
- package/dist/network-Bm0qYRqY.mjs +0 -50
- package/dist/oauth-clients-CP6alY0_.mjs +0 -16
- package/dist/observability-Bp71PtlD.mjs +0 -80
- package/dist/open-PCXX3ZDZ-BKRik1gi.mjs +0 -4
- package/dist/output-CvQFJkvi.mjs +0 -2
- package/dist/pages-DZPdyuT4.mjs +0 -54
- package/dist/pay-per-crawl-CnveMVDi.mjs +0 -65
- package/dist/pay-per-use-Bpxe8PHv.mjs +0 -6
- package/dist/pipelines-CHev3o5G.mjs +0 -44
- package/dist/precursor-C9PK9Bue.mjs +0 -4
- package/dist/previews-BIMI1dTz.mjs +0 -4
- package/dist/queries-f-btyefs.mjs +0 -9
- package/dist/queues-kLNdeb3q.mjs +0 -57
- package/dist/r2-D_awYx2p.mjs +0 -125
- package/dist/raw-fetch-CvkmFO23.mjs +0 -2
- package/dist/realtime-C0dvcBBM.mjs +0 -172
- package/dist/registrar-CHc-4vcf.mjs +0 -43
- package/dist/registrar-sandbox-Dq8LV2AI.mjs +0 -56
- package/dist/reporting-4u21g6Dk.mjs +0 -14
- package/dist/request-headers-D31kdxrQ.mjs +0 -2
- package/dist/request-tracers-CupJ_83j.mjs +0 -4
- package/dist/resolve-BCTrtcx7.mjs +0 -2
- package/dist/resolve-PZuJ878-.mjs +0 -2
- package/dist/resource-sharing-CO-Lh-u7.mjs +0 -40
- package/dist/resource-tagging-D0R5SzR6.mjs +0 -4
- package/dist/rules-BsmKzB9H.mjs +0 -18
- package/dist/rum-wcLEvVJl.mjs +0 -30
- package/dist/run-CIJTelJL.mjs +0 -2
- package/dist/run-quhbAvQi.mjs +0 -2
- package/dist/schema-GdBsV4P7.mjs +0 -2
- package/dist/schema-flags-D8vL2oiF.mjs +0 -5
- package/dist/scim-BkdJmAS8.mjs +0 -18
- package/dist/sdk-BCzcRJCi.mjs +0 -3
- package/dist/secrets-store-CHs0oYA0.mjs +0 -24
- package/dist/security-insights-vsl-4xFa.mjs +0 -40
- package/dist/shared-BS30oCf8.mjs +0 -2
- package/dist/snippets-CFaF_NyG.mjs +0 -20
- package/dist/source-38bULAR8.mjs +0 -6
- package/dist/spawn-B0Sl8lUu.mjs +0 -10
- package/dist/src-CM3XaB4p.mjs +0 -109
- package/dist/startup-profile-CLmojOrn.mjs +0 -2
- package/dist/startup-profile-CR7GMuLx.mjs +0 -17
- package/dist/state-CpXhcMdX.mjs +0 -2
- package/dist/stream-cAdBvpS1.mjs +0 -102
- package/dist/submit-Bkd7l2rK.mjs +0 -4
- package/dist/telemetry-Q3_UmwHj.mjs +0 -2
- package/dist/tunnels-CgtuRpcD.mjs +0 -29
- package/dist/turnstile-Bmcnrzw7.mjs +0 -33
- package/dist/update-check-BqSpgzHk.mjs +0 -2
- package/dist/update-check-DC0qP_8z.mjs +0 -2
- package/dist/url-info-DhVehaT8.mjs +0 -4
- package/dist/url-scanner-DiLdqsQk.mjs +0 -16
- package/dist/values-Cxx4Lxrd.mjs +0 -4
- package/dist/vectorize-YyxVpql-.mjs +0 -32
- package/dist/version-C0pInAZ9.mjs +0 -2
- package/dist/waiting-rooms-BdahlCdD.mjs +0 -53
- package/dist/workers-5GgoGA2e.mjs +0 -38
- package/dist/workers-builds-h-1FJjE1.mjs +0 -14
- package/dist/workers-for-platforms-CV9iRrp9.mjs +0 -42
- package/dist/workflows-dtMlkj1-.mjs +0 -43
- package/dist/zaraz-838AbMEX.mjs +0 -22
- package/dist/zero-trust-CYt-eELJ.mjs +0 -821
- /package/dist/{Page-CjJht2qT.mjs → Page-BShsqCXr.mjs} +0 -0
- /package/dist/{alerts-DY_7Nknx.mjs → alerts-BSON-vFh.mjs} +0 -0
- /package/dist/{args-CXgkQKK7.mjs → args-CfbYkeXd.mjs} +0 -0
- /package/dist/{autorag-K396-M2S.mjs → autorag-kNrLiqDX.mjs} +0 -0
- /package/dist/{body-parser-hh2avzkz.mjs → body-parser-DkHKPkJ7.mjs} +0 -0
- /package/dist/{brands-DeLbFxSt.mjs → brands-bBJgbbOH.mjs} +0 -0
- /package/dist/{browser-extension-C1zmKFDG.mjs → browser-extension-C1_fcw7h.mjs} +0 -0
- /package/dist/{clear-CRfI7WS7.mjs → clear-BW9vLgI3.mjs} +0 -0
- /package/dist/{cli-types-DoVT5q_M.mjs → cli-types-9oYmRTHJ.mjs} +0 -0
- /package/dist/{connector-telemetry-events-latest-D8p_dR8s.mjs → connector-telemetry-events-latest-BQdOvbWh.mjs} +0 -0
- /package/dist/{connector-telemetry-snapshots-latest-COFmzmlk.mjs → connector-telemetry-snapshots-latest-CtdN_dGu.mjs} +0 -0
- /package/dist/{delegate-B6LetRpZ.mjs → delegate-Tgfxa-MZ.mjs} +0 -0
- /package/dist/{domain-info-aiwP60Fo.mjs → domain-info-BkcBcyfF.mjs} +0 -0
- /package/dist/{health-Bz33n-_F.mjs → health-CTaCeVyC.mjs} +0 -0
- /package/dist/{input-validation-Dk52b0me.mjs → input-validation-D7z60HJH.mjs} +0 -0
- /package/dist/{internal-BHrJbbdA.mjs → internal-BYS7hO8c.mjs} +0 -0
- /package/dist/{live-MeJQXIei.mjs → live-BJE_YWE1.mjs} +0 -0
- /package/dist/{project-settings-DO6njFg_.mjs → project-settings-nBMEx1f-.mjs} +0 -0
- /package/dist/{r2-data-catalog-2jQrdAdo.mjs → r2-data-catalog-BRo-Rx2I.mjs} +0 -0
- /package/dist/{rate-limit-analytics-CU55zqCU.mjs → rate-limit-analytics-BiRyU0Xd.mjs} +0 -0
- /package/dist/{rate-limits-CZ-qHDPK.mjs → rate-limits-Cr2zpncO.mjs} +0 -0
- /package/dist/{ready-BOpbZ1pN.mjs → ready-B3pLxnjc.mjs} +0 -0
- /package/dist/{recent-submissions-KDqD2HyS.mjs → recent-submissions-JLOvuZq-.mjs} +0 -0
- /package/dist/{refute-DkF4XIMw.mjs → refute-Dp3VodMn.mjs} +0 -0
- /package/dist/{scan-logo-DQkf6glG.mjs → scan-logo-3Zr6CDJB.mjs} +0 -0
- /package/dist/{scan-page-CMOJ_E0n.mjs → scan-page-CxeudOzj.mjs} +0 -0
- /package/dist/{search-Bre1Zwn3.mjs → search-B_P5ZTQj.mjs} +0 -0
- /package/dist/{signed-url-24ZbX4yV.mjs → signed-url-D5RwvrQq.mjs} +0 -0
- /package/dist/{submission-info-BmkbZVqM.mjs → submission-info-_t78q2OE.mjs} +0 -0
- /package/dist/{total-queries-j8OAF_cE.mjs → total-queries-CPrKEciQ.mjs} +0 -0
- /package/dist/{tracked-domains-fe3EWYmF.mjs → tracked-domains-CTRItgFT.mjs} +0 -0
- /package/dist/{verify-CKgZYvln.mjs → verify-5KcvRk-q.mjs} +0 -0
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import{t as e}from"./local-C0lQ9sTg.mjs";import{n as t}from"./auth-AobvBmz4.mjs";import{a as n,t as r}from"./context-Bwkz4Lm_.mjs";import{t as i}from"./output-BGqhvqe2.mjs";import{t as a}from"./dry-run-DmsbOMF1.mjs";import{t as o}from"./progress-BYVZuEcG.mjs";import{t as s}from"./run-CrZgB8L_.mjs";import"./telemetry-DBXOMuLh.mjs";import{n as c,t as l}from"./body-parser-DkHKPkJ7.mjs";import{n as u}from"./input-validation-D7z60HJH.mjs";import{a as d,n as f}from"./prompt-F5wxc8zq.mjs";import{t as p}from"./cli-types-9oYmRTHJ.mjs";function m(e){return e.usage(`$0 turnstile widgets create
|
|
3
|
+
|
|
4
|
+
Creates a Turnstile widget for an account.`).option(`page`,{type:`number`,description:`Page number of paginated results.`}).option(`per-page`,{type:`number`,description:`Number of items per page.`}).option(`order`,{type:`string`,description:`Field to order widgets by.`,choices:[`id`,`sitekey`,`name`,`created_on`,`modified_on`]}).option(`direction`,{type:`string`,description:`Direction to order widgets.`,choices:[`asc`,`desc`]}).option(`filter`,{type:`string`,description:"Filter widgets by field. The `name` field uses case-insensitive\nsubstring matching; `sitekey` uses exact matching.\nFormat: `field:value`\n\nSupported fields:\n- `name` - Filter by widget name (e.g., `filter=name:login-form`)\n- `sitekey` - Filter by sitekey (e.g., `filter=sitekey:0x4AAA`)\n\nReturns 400 Bad Request if the field is unsupported or format is invalid.\nAn empty filter value returns all results."}).option(`bot-fight-mode`,{type:`boolean`,description:`If bot_fight_mode is set to \`true\`, Cloudflare issues computationally
|
|
5
|
+
expensive challenges in response to malicious bots (ENT only).
|
|
6
|
+
`}).option(`clearance-level`,{type:`string`,description:`If Turnstile is embedded on a Cloudflare site and the widget should grant challenge clearance,
|
|
7
|
+
this setting can determine the clearance level to be set
|
|
8
|
+
`,choices:[`no_clearance`,`jschallenge`,`managed`,`interactive`]}).option(`domains`,{type:`string`,array:!0,description:`The domains field`}).option(`ephemeral-id`,{type:`boolean`,description:`Return the Ephemeral ID in /siteverify (ENT only).
|
|
9
|
+
`}).option(`name`,{type:`string`,description:`Human readable widget name. Not unique. Cloudflare suggests that you
|
|
10
|
+
set this to a meaningful string to make it easier to identify your
|
|
11
|
+
widget, and where it is used.
|
|
12
|
+
`}).option(`offlabel`,{type:`boolean`,description:`Do not show any Cloudflare branding on the widget (ENT only).
|
|
13
|
+
`}).option(`region`,{type:`string`,description:`Region where this widget can be used. This cannot be changed after creation.
|
|
14
|
+
`,choices:[`world`,`china`],default:`world`}).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 h={command:`create`,describe:`Create a Turnstile Widget`,builder:p(m),handler:async f=>s({command:`turnstile widgets create`,classification:{safeFlags:[`order`,`direction`,`bot-fight-mode`,`clearance-level`,`ephemeral-id`,`offlabel`,`region`,`dry-run`]}},f,async()=>{let s={page:f.page,per_page:f[`per-page`],order:f.order,direction:f.direction,filter:f.filter};if(f.dryRun){let e=await n();a({command:`cf turnstile widgets create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}/challenges/widgets`,pathParams:{},query:s,bodyKind:`json`,body:f.body===void 0?l({bot_fight_mode:f[`bot-fight-mode`],clearance_level:u(f[`clearance-level`],`clearance-level`,`text`),domains:f.domains,ephemeral_id:f[`ephemeral-id`],name:u(f.name,`name`,`text`),offlabel:f.offlabel,region:u(f.region,`region`,`text`)}):c(f.body)});return}let p=await t(f),m=f.local?e:await r();if(f.accountId=m,f.body){let e=c(f.body);new URLSearchParams(Object.entries(s).filter(([,e])=>e!==void 0).map(([e,t])=>[e,String(t)])).toString();let t=await o(`Creating`,async()=>p.turnstile.widgets.create({...e,account_id:m,...s}));i(t,{successLabel:`Created`});return}if(f.domains===void 0)throw Error(`--domains is required (or pass --body with this field set).`);f.name===void 0&&(f.name=await d(`name`,`Human readable widget name. Not unique. Cloudflare suggests that you set this to a meaningful string to make it easier to identify your widget, and where it is used. `));let h=l({bot_fight_mode:f[`bot-fight-mode`],clearance_level:u(f[`clearance-level`],`clearance-level`,`text`),domains:f.domains,ephemeral_id:f[`ephemeral-id`],name:u(f.name,`name`,`text`),offlabel:f.offlabel,region:u(f.region,`region`,`text`)});new URLSearchParams(Object.entries(s).filter(([,e])=>e!==void 0).map(([e,t])=>[e,String(t)])).toString();let g=await o(`Creating`,async()=>p.turnstile.widgets.create({...h,account_id:m,...s}));i(g,{successLabel:`Created`})})};function g(e){return e.usage(`$0 turnstile widgets delete <sitekey>
|
|
15
|
+
|
|
16
|
+
Deletes a Turnstile widget from an account.`).positional(`sitekey`,{type:`string`,description:`Unique identifier for a Turnstile widget.`,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 <sitekey>`,describe:`Delete a Turnstile Widget`,builder:g,handler:async c=>s({command:`turnstile widgets delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},c,async()=>{if(c.dryRun){let e=await n();a({command:`cf turnstile widgets delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}/challenges/widgets/${c.sitekey==null?`<sitekey>`:encodeURIComponent(String(c.sitekey))}`,pathParams:{sitekey:String(c.sitekey??``)},bodyKind:`none`});return}let s=await t(c),l=c.local?e:await r();if(c.accountId=l,!await f({force:!!c.force})){process.stderr.write(`Aborted.
|
|
17
|
+
`);return}let u=await o(`Deleting`,async()=>s.turnstile.widgets.delete({account_id:l,sitekey:c.sitekey}));i(u,{successLabel:`Deleted`})})};function v(e){return e.usage(`$0 turnstile widgets get <sitekey>
|
|
18
|
+
|
|
19
|
+
Returns the configuration of a Turnstile widget.`).positional(`sitekey`,{type:`string`,description:`Unique identifier for a Turnstile widget.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const y={command:`get <sitekey>`,describe:`Turnstile Widget Details`,builder:v,handler:async c=>s({command:`turnstile widgets get`,classification:{safeFlags:[`dry-run`]}},c,async()=>{if(c.dryRun){let e=await n();a({command:`cf turnstile widgets get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}/challenges/widgets/${c.sitekey==null?`<sitekey>`:encodeURIComponent(String(c.sitekey))}`,pathParams:{sitekey:String(c.sitekey??``)},bodyKind:`none`});return}let s=await t(c),l=c.local?e:await r();c.accountId=l;let u=await o(`Loading`,async()=>s.turnstile.widgets.get({account_id:l,sitekey:c.sitekey}));i(u,{successLabel:`Loaded`})})};function b(e){return e.usage(`$0 turnstile widgets list
|
|
20
|
+
|
|
21
|
+
Lists Turnstile widgets for an account.`).option(`page`,{type:`number`,description:`Page number of paginated results.`}).option(`per-page`,{type:`number`,description:`Number of items per page.`}).option(`order`,{type:`string`,description:`Field to order widgets by.`,choices:[`id`,`sitekey`,`name`,`created_on`,`modified_on`]}).option(`direction`,{type:`string`,description:`Direction to order widgets.`,choices:[`asc`,`desc`]}).option(`filter`,{type:`string`,description:"Filter widgets by field. The `name` field uses case-insensitive\nsubstring matching; `sitekey` uses exact matching.\nFormat: `field:value`\n\nSupported fields:\n- `name` - Filter by widget name (e.g., `filter=name:login-form`)\n- `sitekey` - Filter by sitekey (e.g., `filter=sitekey:0x4AAA`)\n\nReturns 400 Bad Request if the field is unsupported or format is invalid.\nAn empty filter value returns all results."}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const x={command:`list`,describe:`List Turnstile Widgets`,builder:p(b),handler:async c=>s({command:`turnstile widgets list`,classification:{safeFlags:[`order`,`direction`,`dry-run`]}},c,async()=>{let s={page:c.page,per_page:c[`per-page`],order:c.order,direction:c.direction,filter:c.filter};if(c.dryRun){let e=await n();a({command:`cf turnstile widgets list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}/challenges/widgets`,pathParams:{},query:s,bodyKind:`none`});return}let l=await t(c),u=c.local?e:await r();c.accountId=u;let d=await o(`Loading`,async()=>l.turnstile.widgets.list({account_id:u,...s}));i(d,{successLabel:`Loaded`})})};function S(e){return e.usage("$0 turnstile widgets rotate-secret <sitekey>\n\nGenerates a new secret key for this widget. If `invalidate_immediately` is set to `false`, the previous secret remains valid for 2 hours. Note that secrets cannot be rotated again during the grace period.").positional(`sitekey`,{type:`string`,description:`Unique identifier for a Turnstile widget.`,demandOption:!0}).option(`invalidate-immediately`,{type:`boolean`,description:"If `invalidate_immediately` is set to `false`, the previous secret will\nremain valid for two hours. Otherwise, the secret is immediately\ninvalidated, and requests using it will be rejected.\n",default:!1}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const C={command:`rotate-secret <sitekey>`,describe:`Rotate Secret for a Turnstile Widget`,builder:S,handler:async u=>s({command:`turnstile widgets rotate-secret`,classification:{safeFlags:[`invalidate-immediately`,`dry-run`]}},u,async()=>{if(u.dryRun){let e=await n();a({command:`cf turnstile widgets rotate-secret`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}/challenges/widgets/${u.sitekey==null?`<sitekey>`:encodeURIComponent(String(u.sitekey))}/rotate_secret`,pathParams:{sitekey:String(u.sitekey??``)},bodyKind:`json`,body:u.body===void 0?l({invalidate_immediately:u[`invalidate-immediately`]}):c(u.body)});return}let s=await t(u),d=u.local?e:await r();if(u.accountId=d,u.body){let e=c(u.body),t=await o(`Creating`,async()=>s.turnstile.widgets.rotateSecret({...e,account_id:d,sitekey:u.sitekey}));i(t,{successLabel:`Created`});return}let f=l({invalidate_immediately:u[`invalidate-immediately`]}),p=await o(`Creating`,async()=>s.turnstile.widgets.rotateSecret({...f,account_id:d,sitekey:u.sitekey}));i(p,{successLabel:`Created`})})};function w(e){return e.usage(`$0 turnstile widgets update <sitekey>
|
|
22
|
+
|
|
23
|
+
Updates the configuration of a Turnstile widget.`).positional(`sitekey`,{type:`string`,description:`Unique identifier for a Turnstile widget.`,demandOption:!0}).option(`bot-fight-mode`,{type:`boolean`,description:`If bot_fight_mode is set to \`true\`, Cloudflare issues computationally
|
|
24
|
+
expensive challenges in response to malicious bots (ENT only).
|
|
25
|
+
`}).option(`clearance-level`,{type:`string`,description:`If Turnstile is embedded on a Cloudflare site and the widget should grant challenge clearance,
|
|
26
|
+
this setting can determine the clearance level to be set
|
|
27
|
+
`,choices:[`no_clearance`,`jschallenge`,`managed`,`interactive`]}).option(`domains`,{type:`string`,array:!0,description:`The domains field`}).option(`ephemeral-id`,{type:`boolean`,description:`Return the Ephemeral ID in /siteverify (ENT only).
|
|
28
|
+
`}).option(`name`,{type:`string`,description:`Human readable widget name. Not unique. Cloudflare suggests that you
|
|
29
|
+
set this to a meaningful string to make it easier to identify your
|
|
30
|
+
widget, and where it is used.
|
|
31
|
+
`}).option(`offlabel`,{type:`boolean`,description:`Do not show any Cloudflare branding on the widget (ENT only).
|
|
32
|
+
`}).option(`region`,{type:`string`,description:`Region where this widget can be used. This cannot be changed after creation.
|
|
33
|
+
`,choices:[`world`,`china`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const T={command:`update <sitekey>`,describe:`Update a Turnstile Widget`,builder:w,handler:async f=>s({command:`turnstile widgets update`,classification:{safeFlags:[`bot-fight-mode`,`clearance-level`,`ephemeral-id`,`offlabel`,`region`,`dry-run`]}},f,async()=>{if(f.dryRun){let e=await n();a({command:`cf turnstile widgets update`,method:`PUT`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}/challenges/widgets/${f.sitekey==null?`<sitekey>`:encodeURIComponent(String(f.sitekey))}`,pathParams:{sitekey:String(f.sitekey??``)},bodyKind:`json`,body:f.body===void 0?l({bot_fight_mode:f[`bot-fight-mode`],clearance_level:u(f[`clearance-level`],`clearance-level`,`text`),domains:f.domains,ephemeral_id:f[`ephemeral-id`],name:u(f.name,`name`,`text`),offlabel:f.offlabel,region:u(f.region,`region`,`text`)}):c(f.body)});return}let s=await t(f),p=f.local?e:await r();if(f.accountId=p,f.body){let e=c(f.body),t=await o(`Updating`,async()=>s.turnstile.widgets.update({...e,account_id:p,sitekey:f.sitekey}));i(t,{successLabel:`Updated`});return}if(f.domains===void 0)throw Error(`--domains is required (or pass --body with this field set).`);f.name===void 0&&(f.name=await d(`name`,`Human readable widget name. Not unique. Cloudflare suggests that you set this to a meaningful string to make it easier to identify your widget, and where it is used. `));let m=l({bot_fight_mode:f[`bot-fight-mode`],clearance_level:u(f[`clearance-level`],`clearance-level`,`text`),domains:f.domains,ephemeral_id:f[`ephemeral-id`],name:u(f.name,`name`,`text`),offlabel:f.offlabel,region:u(f.region,`region`,`text`)}),h=await o(`Updating`,async()=>s.turnstile.widgets.update({...m,account_id:p,sitekey:f.sitekey}));i(h,{successLabel:`Updated`})})},E={command:`widgets`,describe:`Turnstile widget configurations — site keys, secret rotation, and challenge mode settings`,builder:e=>e.command(h).command(_).command(y).command(x).command(C).command(T).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},D={command:`turnstile`,describe:`CAPTCHA-free bot verification widgets that protect forms and APIs without degrading user experience`,builder:e=>e.command(E).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};export{D as default};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import{r as e}from"./theme-
|
|
2
|
+
import{r as e}from"./theme-CQ_TYifs.mjs";import"./banner-D03JEqRs.mjs";const t={bar:`│`,top:`┌`,bottom:`└`};function n(n,i,a){let o=a?.title??`Error`,s=e.error(t.bar),c=e.error(t.top),l=e.error(t.bottom),u=Math.max(20,(process.stdout.columns||80)-2),d=[];if(d.push(``),d.push(`${c} ${e.error(e.bold(o))}`),a?.rawMessage)for(let e of n.split(`
|
|
3
3
|
`))d.push(e.length>0?`${s} ${e}`:s);else for(let t of r(n,u))d.push(t.length>0?`${s} ${e.error(e.bold(t))}`:s);if(i){d.push(s);for(let t of r(i,u))d.push(t.length>0?`${s} ${e.muted(t)}`:s)}return d.push(l),d.join(`
|
|
4
4
|
`)}function r(e,t){let n=[];for(let r of e.split(`
|
|
5
5
|
`)){if(r.length<=t){n.push(r);continue}let e=r.split(/\s+/),i=``;for(let r of e){if(!i){i=r;continue}i.length+1+r.length<=t?i+=` `+r:(n.push(i),i=r)}i&&n.push(i)}return n}export{n as t};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import{i as e,n as t}from"./source-mXUcrTVw.mjs";import{n}from"./version-BZNc7Y3t.mjs";import{i as r}from"./cf-B9aqZZKD.mjs";import{r as i,t as a}from"./gt-3bcLGJ7V.mjs";import{closeSync as o,mkdirSync as s,openSync as c,readFileSync as l,renameSync as u,statSync as d,unlinkSync as f,writeFileSync as p}from"node:fs";import{dirname as m,join as h}from"node:path";import{fileURLToPath as g}from"node:url";import{spawn as _}from"node:child_process";var v=/* @__PURE__ */ t(((e,t)=>{let n=i();t.exports=(e,t)=>new n(e,t).major})),y=/* @__PURE__ */ t(((e,t)=>{let n=i();t.exports=(e,t,r=!1)=>{if(e instanceof n)return e;try{return new n(e,t)}catch(e){if(!r)return null;throw e}}})),b=/* @__PURE__ */ t(((e,t)=>{let n=y();t.exports=(e,t)=>{let r=n(e,t);return r&&r.prerelease.length?r.prerelease:null}})),x=/* @__PURE__ */ t(((e,t)=>{let n=y();t.exports=(e,t)=>{let r=n(e,t);return r?r.version:null}})),S=/* @__PURE__ */ e(a(),1),C=/* @__PURE__ */ e(v(),1),w=/* @__PURE__ */ e(b(),1),T=/* @__PURE__ */ e(x(),1);const E=864e5;function D(e){return(0,w.default)(e)?.includes(`beta`)?`beta`:`latest`}function O(e=n){return h(r(),`cache`,`update-check-${D(e)}.json`)}function k(e=O()){try{let t=JSON.parse(l(e,`utf8`));if(typeof t!=`object`||!t||Array.isArray(t))return{};let n=t;return{lastAttemptedAt:typeof n.lastAttemptedAt==`number`&&Number.isFinite(n.lastAttemptedAt)?n.lastAttemptedAt:void 0,lastSuccessfulAt:typeof n.lastSuccessfulAt==`number`&&Number.isFinite(n.lastSuccessfulAt)?n.lastSuccessfulAt:void 0,latestVersion:typeof n.latestVersion==`string`&&(0,T.default)(n.latestVersion)?n.latestVersion:void 0}}catch{return{}}}function A(e,t=O()){let n=`${t}.${process.pid}.tmp`;try{return s(m(t),{recursive:!0}),p(n,`${JSON.stringify(e)}\n`,{encoding:`utf8`,mode:384}),u(n,t),!0}catch{try{f(n)}catch{}return!1}}function j(e,t,n){let r=`${e}.lock`,i;try{s(m(e),{recursive:!0});try{i=c(r,`wx`,384)}catch{try{if(t-d(r).mtimeMs<=5e3)return;f(r),i=c(r,`wx`,384)}catch{return}}return n()}catch{return}finally{if(i!==void 0)try{o(i),f(r)}catch{}}}function M(e,t){if(!(0,T.default)(e)||!t.latestVersion||!(0,S.default)(t.latestVersion,e))return;let n=(0,C.default)(t.latestVersion)>(0,C.default)(e);return{latestVersion:t.latestVersion,isMajor:n}}function N(e,t=O(e)){return M(e,k(t))}function P(){let e=import.meta.url.endsWith(`.ts`),t=new URL(e?`../update-check-worker.ts`:`./update-check-worker.mjs`,import.meta.url),n=e?[...process.execArgv,g(t)]:[g(t)];_(process.execPath,n,{detached:!0,stdio:`ignore`,windowsHide:!0}).unref()}function F(e={}){let t=e.cachePath??O(e.currentVersion??n),r=e.now??Date.now();if(j(t,r,()=>{let e=k(t);return e.lastAttemptedAt!==void 0&&r-e.lastAttemptedAt<864e5?!1:A({...e,lastAttemptedAt:r},t)}))try{(e.spawnWorker??P)()}catch{}}async function I(e,t,r,i){if(!(0,T.default)(t))return{status:`failed`};let a=await i(`https://registry.npmjs.org/${encodeURIComponent(e)}/${r}`,{headers:{accept:`application/json`,"user-agent":`cf-cli/${n}`},signal:AbortSignal.timeout(3e3)});if(!a.ok)return{status:`failed`};let o=await a.json();if(typeof o!=`object`||!o||Array.isArray(o))return{status:`failed`};let s=o;return s.name!==e||typeof s.version!=`string`||!(0,T.default)(s.version)?{status:`failed`}:(0,S.default)(s.version,t)?{status:`update-available`,latest:s.version}:{status:`up-to-date`}}async function L(e={}){let t=e.currentVersion??n,r=e.cachePath??O(t),i=e.now??Date.now();try{let n=await(e.check??((t,n,r)=>I(t,n,r,e.fetch??globalThis.fetch)))(`cf`,t,`latest`);if(n.status===`failed`)return;let a=n.status===`update-available`?n.latest:t;if(!(0,T.default)(a))return;A({...k(r),latestVersion:a,lastSuccessfulAt:i},r)}catch{}}export{L as i,N as n,F as r,E as t};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import{i as e}from"./update-check-
|
|
2
|
+
import{i as e}from"./update-check-CfB0PNTY.mjs";await e();export{};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import{t as e}from"./local-C0lQ9sTg.mjs";import{n as t}from"./auth-AobvBmz4.mjs";import{a as n,t as r}from"./context-Bwkz4Lm_.mjs";import{t as i}from"./output-BGqhvqe2.mjs";import{t as a}from"./dry-run-DmsbOMF1.mjs";import{t as o}from"./progress-BYVZuEcG.mjs";import{t as s}from"./run-CrZgB8L_.mjs";import"./telemetry-DBXOMuLh.mjs";function c(e){return e.usage(`$0 url-info get
|
|
3
|
+
|
|
4
|
+
Return submitted URLs based on ID`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const l={command:`get`,describe:`Read submitted URLs by ID`,builder:c,handler:async c=>s({command:`url-info get`,classification:{safeFlags:[`dry-run`]}},c,async()=>{if(c.dryRun){let e=await n();a({command:`cf url-info get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}/brand-protection/url-info`,pathParams:{},bodyKind:`none`});return}let s=await t(c),l=c.local?e:await r();c.accountId=l;let u=await o(`Loading`,async()=>s.urlInfo.get({account_id:l}));i(u,{successLabel:`Loaded`})})},u={command:`url-info`,describe:`url-info`,builder:e=>e.command(l).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};export{u as default};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import{
|
|
2
|
+
import{n as e}from"./auth-AobvBmz4.mjs";import{i as t}from"./context-Bwkz4Lm_.mjs";import{t as n}from"./output-BGqhvqe2.mjs";import{t as r}from"./dry-run-DmsbOMF1.mjs";import{t as i}from"./progress-BYVZuEcG.mjs";import{t as a}from"./run-CrZgB8L_.mjs";import"./telemetry-DBXOMuLh.mjs";import{n as o,t as s}from"./body-parser-DkHKPkJ7.mjs";import{n as c}from"./input-validation-D7z60HJH.mjs";import{i as l,n as u}from"./prompt-F5wxc8zq.mjs";function d(e){return e.usage(`$0 url-normalization delete
|
|
3
3
|
|
|
4
|
-
Deletes the URL Normalization settings.`).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 f={command:`delete`,describe:`Delete URL Normalization settings`,builder:d,handler:async o=>a({command:`url-normalization delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},o,async()=>{if(o.dryRun){r({command:`cf url-normalization delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/zones/${o.zone??o.zoneId??`<zone>`}/url_normalization`,pathParams:{"zone-id":String(o.zone??o[`zone-id`]??``)},bodyKind:`none`});return}let a=await
|
|
5
|
-
`);return}
|
|
4
|
+
Deletes the URL Normalization settings.`).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 f={command:`delete`,describe:`Delete URL Normalization settings`,builder:d,handler:async o=>a({command:`url-normalization delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},o,async()=>{if(o.dryRun){r({command:`cf url-normalization delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/zones/${o.zone??o.zoneId??`<zone>`}/url_normalization`,pathParams:{"zone-id":String(o.zone??o[`zone-id`]??``)},bodyKind:`none`});return}let a=await e(o),s=await t({zone:o.zone},a,{quiet:o.quiet});if(o.zoneId=s,!await u({force:!!o.force})){process.stderr.write(`Aborted.
|
|
5
|
+
`);return}let c=await i(`Deleting`,async()=>a.urlNormalization.delete({zone_id:s}));n(c,{successLabel:`Deleted`})})};function p(e){return e.usage(`$0 url-normalization get
|
|
6
6
|
|
|
7
|
-
Fetches the current URL Normalization settings.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const m={command:`get`,describe:`Get URL Normalization settings`,builder:p,handler:async o=>a({command:`url-normalization get`,classification:{safeFlags:[`dry-run`]}},o,async()=>{if(o.dryRun){r({command:`cf url-normalization get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/zones/${o.zone??o.zoneId??`<zone>`}/url_normalization`,pathParams:{"zone-id":String(o.zone??o[`zone-id`]??``)},bodyKind:`none`});return}let a=await
|
|
7
|
+
Fetches the current URL Normalization settings.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const m={command:`get`,describe:`Get URL Normalization settings`,builder:p,handler:async o=>a({command:`url-normalization get`,classification:{safeFlags:[`dry-run`]}},o,async()=>{if(o.dryRun){r({command:`cf url-normalization get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/zones/${o.zone??o.zoneId??`<zone>`}/url_normalization`,pathParams:{"zone-id":String(o.zone??o[`zone-id`]??``)},bodyKind:`none`});return}let a=await e(o),s=await t({zone:o.zone},a,{quiet:o.quiet});o.zoneId=s;let c=await i(`Loading`,async()=>a.urlNormalization.get({zone_id:s}));n(c,{successLabel:`Loaded`})})};function h(e){return e.usage(`$0 url-normalization update
|
|
8
8
|
|
|
9
|
-
Updates the URL Normalization settings.`).option(`scope`,{type:`string`,description:`The scope of the URL normalization.`,choices:[`incoming`,`both`,`none`]}).option(`type`,{type:`string`,description:`The type of URL normalization performed by Cloudflare.`,choices:[`cloudflare`,`rfc3986`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`A URL Normalization object.`})}const g={command:`update`,describe:`Update URL Normalization settings`,builder:h,handler:async u=>a({command:`url-normalization update`,classification:{safeFlags:[`scope`,`type`,`dry-run`]}},u,async()=>{if(u.dryRun){r({command:`cf url-normalization update`,method:`PUT`,url:`https://api.cloudflare.com/client/v4/zones/${u.zone??u.zoneId??`<zone>`}/url_normalization`,pathParams:{"zone-id":String(u.zone??u[`zone-id`]??``)},bodyKind:`json`,body:u.body===void 0?s({scope:c(u.scope,`scope`,`text`),type:c(u.type,`type`,`text`)}):o(u.body)});return}let a=await
|
|
9
|
+
Updates the URL Normalization settings.`).option(`scope`,{type:`string`,description:`The scope of the URL normalization.`,choices:[`incoming`,`both`,`none`]}).option(`type`,{type:`string`,description:`The type of URL normalization performed by Cloudflare.`,choices:[`cloudflare`,`rfc3986`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`A URL Normalization object.`})}const g={command:`update`,describe:`Update URL Normalization settings`,builder:h,handler:async u=>a({command:`url-normalization update`,classification:{safeFlags:[`scope`,`type`,`dry-run`]}},u,async()=>{if(u.dryRun){r({command:`cf url-normalization update`,method:`PUT`,url:`https://api.cloudflare.com/client/v4/zones/${u.zone??u.zoneId??`<zone>`}/url_normalization`,pathParams:{"zone-id":String(u.zone??u[`zone-id`]??``)},bodyKind:`json`,body:u.body===void 0?s({scope:c(u.scope,`scope`,`text`),type:c(u.type,`type`,`text`)}):o(u.body)});return}let a=await e(u),d=await t({zone:u.zone},a,{quiet:u.quiet});if(u.zoneId=d,u.body){let e=o(u.body),t=await i(`Updating`,async()=>a.urlNormalization.update({body:e,zone_id:d}));n(t,{successLabel:`Updated`});return}u.scope===void 0&&(u.scope=await l(`scope`,`The scope of the URL normalization.`,[`incoming`,`both`,`none`])),u.type===void 0&&(u.type=await l(`type`,`The type of URL normalization performed by Cloudflare.`,[`cloudflare`,`rfc3986`]));let f=s({scope:c(u.scope,`scope`,`text`),type:c(u.type,`type`,`text`)}),p=await i(`Updating`,async()=>a.urlNormalization.update({body:f,zone_id:d}));n(p,{successLabel:`Updated`})})},_={command:`url-normalization`,describe:`url-normalization`,builder:e=>e.command(f).command(m).command(g).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};export{_ as default};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import{t as e}from"./local-C0lQ9sTg.mjs";import{n as t}from"./auth-AobvBmz4.mjs";import{a as n,t as r}from"./context-Bwkz4Lm_.mjs";import{t as i}from"./output-BGqhvqe2.mjs";import{t as a}from"./dry-run-DmsbOMF1.mjs";import{t as o}from"./progress-BYVZuEcG.mjs";import{t as s}from"./run-CrZgB8L_.mjs";import"./telemetry-DBXOMuLh.mjs";import{n as c,t as l}from"./body-parser-DkHKPkJ7.mjs";import{n as u}from"./input-validation-D7z60HJH.mjs";import{a as d}from"./prompt-F5wxc8zq.mjs";import{n as f,t as p}from"./raw-fetch-DyYWa923.mjs";function m(e){return e.usage("$0 url-scanner responses get <response-id>\n\nReturns the raw response of the network request. Find the `response_id` in the `data.requests.response.hash`.").positional(`response-id`,{type:`string`,description:`Response hash.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const h={command:`get <response-id>`,describe:`Get raw response`,builder:m,handler:async i=>s({command:`url-scanner responses get`,classification:{safeFlags:[`dry-run`]}},i,async()=>{if(i.dryRun){let e=await n();a({command:`cf url-scanner responses get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}/urlscanner/v2/responses/${i[`response-id`]==null?`<response-id>`:encodeURIComponent(String(i[`response-id`]))}`,pathParams:{"response-id":String(i[`response-id`]??``)},bodyKind:`none`});return}await t(i);let s=i.local?e:await r();i.accountId=s;let c=await o(`Loading`,async()=>p(`/accounts/${s}/urlscanner/v2/responses/${encodeURIComponent(String(i[`response-id`]))}`,{method:`GET`,local:i.local===!0,persistTo:i.persistTo}));f(c.toString(`utf-8`))})},g={command:`responses`,describe:`Raw HTTP response data captured during URL scans`,builder:e=>e.command(h).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function _(e){return e.usage(`$0 url-scanner scans bulk-create
|
|
3
|
+
|
|
4
|
+
Submit URLs to scan. Check limits at https://developers.cloudflare.com/security-center/investigate/scan-limits/ and take into account scans submitted in bulk have lower priority and may take longer to finish.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`List of urls to scan (up to a 100).`})}const v={command:`bulk-create`,describe:`Bulk create URL Scans`,builder:_,handler:async l=>s({command:`url-scanner scans bulk-create`,classification:{safeFlags:[`dry-run`]}},l,async()=>{if(l.dryRun){let e=await n();a({command:`cf url-scanner scans bulk-create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}/urlscanner/v2/bulk`,pathParams:{},bodyKind:`json`,body:l.body===void 0?void 0:c(l.body)});return}let s=await t(l),u=l.local?e:await r();if(l.accountId=u,l.body){let e=c(l.body),t=await o(`Creating`,async()=>s.urlScanner.scans.bulkCreate({body:e,account_id:u}));i(t,{successLabel:`Created`});return}if(l.body===void 0)throw Error(`--body is required for this command. Pass --body '<json>' or --body @path/to/file.json.`)})};function y(e){return e.usage(`$0 url-scanner scans create
|
|
5
|
+
|
|
6
|
+
Submit a URL to scan. Check limits at https://developers.cloudflare.com/security-center/investigate/scan-limits/.`).option(`agent-readiness`,{type:`boolean`,description:`Enable agent readiness checks.`}).option(`country`,{type:`string`,description:`Country to geo egress from`,choices:/* @__PURE__ */ `AF.AL.DZ.AD.AO.AG.AR.AM.AU.AT.AZ.BH.BD.BB.BY.BE.BZ.BJ.BM.BT.BO.BA.BW.BR.BN.BG.BF.BI.KH.CM.CA.CV.KY.CF.TD.CL.CN.CO.KM.CG.CR.CI.HR.CU.CY.CZ.CD.DK.DJ.DM.DO.EC.EG.SV.GQ.ER.EE.SZ.ET.FJ.FI.FR.GA.GE.DE.GH.GR.GL.GD.GT.GN.GW.GY.HT.HN.HU.IS.IN.ID.IR.IQ.IE.IL.IT.JM.JP.JO.KZ.KE.KI.KW.KG.LA.LV.LB.LS.LR.LY.LI.LT.LU.MO.MG.MW.MY.MV.ML.MR.MU.MX.FM.MD.MC.MN.MS.MA.MZ.MM.NA.NR.NP.NL.NZ.NI.NE.NG.KP.MK.NO.OM.PK.PS.PA.PG.PY.PE.PH.PL.PT.QA.RO.RU.RW.SH.KN.LC.VC.WS.SM.ST.SA.SN.RS.SC.SL.SK.SI.SB.SO.ZA.KR.SS.ES.LK.SD.SR.SE.CH.SY.TW.TJ.TZ.TH.BS.GM.TL.TG.TO.TT.TN.TR.TM.UG.UA.AE.GB.US.UY.UZ.VU.VE.VN.YE.ZM.ZW`.split(`.`)}).option(`customagent`,{type:`string`,description:`The customagent field`}).option(`referer`,{type:`string`,description:`The referer field`}).option(`screenshots-resolutions`,{type:`string`,array:!0,description:`Take multiple screenshots targeting different device types.`}).option(`url`,{type:`string`,description:`The url field`}).option(`visibility`,{type:`string`,description:"The option `Public` means it will be included in listings like recent scans and search results. `Unlisted` means it will not be included in the aforementioned listings, users will need to have the scan's ID to access it. A a scan will be automatically marked as unlisted if it fails, if it contains potential PII or other sensitive material.",choices:[`Public`,`Unlisted`],default:`Public`}).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 b={command:`create`,describe:`Create URL Scan`,builder:y,handler:async f=>s({command:`url-scanner scans create`,classification:{safeFlags:[`agent-readiness`,`country`,`visibility`,`dry-run`]}},f,async()=>{if(f.dryRun){let e=await n();a({command:`cf url-scanner scans create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}/urlscanner/v2/scan`,pathParams:{},bodyKind:`json`,body:f.body===void 0?l({agentReadiness:f[`agent-readiness`],country:u(f.country,`country`,`text`),customagent:u(f.customagent,`customagent`,`text`),referer:u(f.referer,`referer`,`text`),screenshotsResolutions:f[`screenshots-resolutions`],url:u(f.url,`url`,`text`),visibility:u(f.visibility,`visibility`,`text`)}):c(f.body)});return}let s=await t(f),p=f.local?e:await r();if(f.accountId=p,f.body){let e=c(f.body),t=await o(`Creating`,async()=>s.urlScanner.scans.create({...e,account_id:p}));i(t,{successLabel:`Created`});return}f.url===void 0&&(f.url=await d(`url`,`The url field`));let m=l({agentReadiness:f[`agent-readiness`],country:u(f.country,`country`,`text`),customagent:u(f.customagent,`customagent`,`text`),referer:u(f.referer,`referer`,`text`),screenshotsResolutions:f[`screenshots-resolutions`],url:u(f.url,`url`,`text`),visibility:u(f.visibility,`visibility`,`text`)}),h=await o(`Creating`,async()=>s.urlScanner.scans.create({...m,account_id:p}));i(h,{successLabel:`Created`})})};function x(e){return e.usage(`$0 url-scanner scans dom <scan-id>
|
|
7
|
+
|
|
8
|
+
Returns a plain text response, with the scan's DOM content as rendered by Chrome.`).positional(`scan-id`,{type:`string`,description:`Scan UUID.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const S={command:`dom <scan-id>`,describe:`Get URL scan's DOM`,builder:x,handler:async i=>s({command:`url-scanner scans dom`,classification:{safeFlags:[`dry-run`]}},i,async()=>{if(i.dryRun){let e=await n();a({command:`cf url-scanner scans dom`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}/urlscanner/v2/dom/${i[`scan-id`]==null?`<scan-id>`:encodeURIComponent(String(i[`scan-id`]))}`,pathParams:{"scan-id":String(i[`scan-id`]??``)},bodyKind:`none`});return}await t(i);let s=i.local?e:await r();i.accountId=s;let c=await o(`Loading`,async()=>p(`/accounts/${s}/urlscanner/v2/dom/${encodeURIComponent(String(i[`scan-id`]))}`,{method:`GET`,local:i.local===!0,persistTo:i.persistTo}));f(c.toString(`utf-8`))})};function C(e){return e.usage(`$0 url-scanner scans get <scan-id>
|
|
9
|
+
|
|
10
|
+
Get URL scan by uuid`).positional(`scan-id`,{type:`string`,description:`Scan UUID.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const w={command:`get <scan-id>`,describe:`Get URL scan`,builder:C,handler:async c=>s({command:`url-scanner scans get`,classification:{safeFlags:[`dry-run`]}},c,async()=>{if(c.dryRun){let e=await n();a({command:`cf url-scanner scans get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}/urlscanner/v2/result/${c[`scan-id`]==null?`<scan-id>`:encodeURIComponent(String(c[`scan-id`]))}`,pathParams:{"scan-id":String(c[`scan-id`]??``)},bodyKind:`none`});return}let s=await t(c),l=c.local?e:await r();c.accountId=l;let u=await o(`Loading`,async()=>s.urlScanner.scans.get({account_id:l,scan_id:c[`scan-id`]}));i(u,{successLabel:`Loaded`})})};function T(e){return e.usage(`$0 url-scanner scans har <scan-id>
|
|
11
|
+
|
|
12
|
+
Get a URL scan's HAR file. See HAR spec at http://www.softwareishard.com/blog/har-12-spec/.`).positional(`scan-id`,{type:`string`,description:`Scan UUID.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const E={command:`har <scan-id>`,describe:`Get URL scan's HAR`,builder:T,handler:async c=>s({command:`url-scanner scans har`,classification:{safeFlags:[`dry-run`]}},c,async()=>{if(c.dryRun){let e=await n();a({command:`cf url-scanner scans har`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}/urlscanner/v2/har/${c[`scan-id`]==null?`<scan-id>`:encodeURIComponent(String(c[`scan-id`]))}`,pathParams:{"scan-id":String(c[`scan-id`]??``)},bodyKind:`none`});return}let s=await t(c),l=c.local?e:await r();c.accountId=l;let u=await o(`Loading`,async()=>s.urlScanner.scans.har({account_id:l,scan_id:c[`scan-id`]}));i(u,{successLabel:`Loaded`})})};function D(e){return e.usage(`$0 url-scanner scans list
|
|
13
|
+
|
|
14
|
+
Use a subset of ElasticSearch Query syntax to filter scans. Some example queries:<br/> <br/>- 'path:"/bundles/jquery.js"': Searches for scans who requested resources with the given path.<br/>- 'page.asn:AS24940 AND hash:xxx': Websites hosted in AS24940 where a resource with the given hash was downloaded.<br/>- 'page.domain:microsoft* AND verdicts.malicious:true AND NOT page.domain:microsoft.com': malicious scans whose hostname starts with "microsoft".<br/>- 'apikey:me AND date:[2025-01 TO 2025-02]': my scans from 2025 January to 2025 February.`).option(`size`,{type:`number`,description:`Limit the number of objects in the response.`}).option(`query`,{type:`string`,description:`Filter scans`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const O={command:`list`,describe:`Search URL scans`,builder:D,handler:async c=>s({command:`url-scanner scans list`,classification:{safeFlags:[`dry-run`]}},c,async()=>{let s={size:c.size,q:c.query};if(c.dryRun){let e=await n();a({command:`cf url-scanner scans list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}/urlscanner/v2/search`,pathParams:{},query:s,bodyKind:`none`});return}let l=await t(c),u=c.local?e:await r();c.accountId=u;let d=await o(`Loading`,async()=>l.urlScanner.scans.list({account_id:u,...s}));i(d,{successLabel:`Loaded`})})};function k(e){return e.usage(`$0 url-scanner scans screenshot <scan-id>
|
|
15
|
+
|
|
16
|
+
Get scan's screenshot by resolution (desktop/mobile/tablet).`).positional(`scan-id`,{type:`string`,description:`Scan UUID.`,demandOption:!0}).option(`resolution`,{type:`string`,description:`Target device type.`,choices:[`desktop`,`mobile`,`tablet`]}).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 A={command:`screenshot <scan-id>`,describe:`Get screenshot`,builder:k,handler:async i=>s({command:`url-scanner scans screenshot`,classification:{safeFlags:[`resolution`,`dry-run`,`text`]}},i,async()=>{let s={resolution:i.resolution};if(i.dryRun){let e=await n();a({command:`cf url-scanner scans screenshot`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}/urlscanner/v2/screenshots/${i[`scan-id`]==null?`<scan-id>`:encodeURIComponent(String(i[`scan-id`]))}.png`,pathParams:{"scan-id":String(i[`scan-id`]??``)},query:s,bodyKind:`none`});return}await t(i);let c=i.local?e:await r();i.accountId=c;let l=new URLSearchParams(Object.entries(s).filter(([,e])=>e!==void 0).map(([e,t])=>[e,String(t)])).toString(),u=await o(`Loading`,async()=>p(`/accounts/${c}/urlscanner/v2/screenshots/${encodeURIComponent(String(i[`scan-id`]))}.png${l?`?`+l:``}`,{method:`GET`,local:i.local===!0,persistTo:i.persistTo}));f(i.text===!0?u.toString(`utf-8`):u)})},j={command:`scans`,describe:`URL scan requests and results — submit URLs for analysis and retrieve threat verdicts`,builder:e=>e.command(v).command(b).command(S).command(w).command(E).command(O).command(A).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},M={command:`url-scanner`,describe:`Scan URLs for phishing, malware, and other threats — submit scans and retrieve detailed results`,builder:e=>e.command(g).command(j).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};export{M as default};
|