cf 1.0.0-beta.1 → 1.0.0-beta.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +12 -0
- package/dist/_meta/commands.json +7481 -10370
- package/dist/_meta/hand-written-commands.json +578 -40
- package/dist/_meta/schemas.json +29048 -31332
- package/dist/{abuse-reports-Dd6kJM7r.mjs → abuse-reports-CWX7WKhe.mjs} +11 -11
- package/dist/access-2aKv_Dya.mjs +2 -0
- package/dist/{account-CZ9SPVdz.mjs → account-CnZO9-bl.mjs} +5 -5
- package/dist/{account-tags-DAf-hq1m.mjs → account-tags-ClLZOfTA.mjs} +4 -4
- package/dist/{accounts-BDIKjiG2.mjs → accounts-Cbj9aFyY.mjs} +59 -59
- package/dist/{acm-D-q1FVWJ.mjs → acm-wGJ9cnzE.mjs} +3 -3
- package/dist/{addressing-0w2U1NEy.mjs → addressing-YvHX2dAb.mjs} +50 -50
- package/dist/agent-context-GRiQ4zRU.mjs +2 -0
- package/dist/{agent-memory-Drumm4qd.mjs → agent-memory-B4N-lmLb.mjs} +15 -15
- package/dist/{ai-audit-CPrmohqf.mjs → ai-audit-CG_DG6N7.mjs} +1 -1
- package/dist/ai-gateway-DUttjxrN.mjs +80 -0
- package/dist/{ai-ARwLeQ1O.mjs → ai-lziiVEGR.mjs} +14 -14
- package/dist/{ai-search-B5l4IDSR.mjs → ai-search-k63uopiK.mjs} +37 -37
- package/dist/{ai-security-C7_IGDDl.mjs → ai-security-D10lzYTn.mjs} +1 -1
- package/dist/{alerting-B6m1Rhf4.mjs → alerting-c4ICS8KO.mjs} +26 -26
- package/dist/{analytics-nnzFBB_7.mjs → analytics-CEQ0EVTq.mjs} +9 -9
- package/dist/{analytics_engine-BvjKCwn1.mjs → analytics_engine-B9kiAPbY.mjs} +2 -2
- package/dist/{api-security-B9IozS2a.mjs → api-security-6LlxeiOi.mjs} +61 -61
- package/dist/{argo-C_QcqR6P.mjs → argo-BCcp1ybr.mjs} +1 -1
- package/dist/args-CXgkQKK7.mjs +2 -0
- package/dist/{artifacts-DDFNpYBz.mjs → artifacts-PoO3rAvo.mjs} +20 -20
- package/dist/{audit-logs-cTzNV0DV.mjs → audit-logs-Vt3NbAA1.mjs} +2 -2
- package/dist/auth-3bFlHTVl.mjs +8 -0
- package/dist/auth-BfYtTyXo.mjs +2 -0
- package/dist/autoconfig-DqgOi1kW.mjs +511 -0
- package/dist/banner-ClclgnBn.mjs +2 -0
- package/dist/{billing-DU2X-q-x.mjs → billing-DVrpin2a.mjs} +10 -10
- package/dist/{bot-management-BHAAoZOh.mjs → bot-management-Bw-GZWoT.mjs} +1 -1
- package/dist/{botnet-feed-DOOnGVVY.mjs → botnet-feed-ov970cZf.mjs} +5 -5
- package/dist/{brand-protection-C_DYa7IK.mjs → brand-protection-C7WOvdx6.mjs} +13 -13
- package/dist/browser-extension-C1zmKFDG.mjs +2 -0
- package/dist/{browser-run-Dw-vgWGR.mjs → browser-run-DhnKUXVv.mjs} +23 -23
- package/dist/build-CVvo9BvP.mjs +2 -0
- package/dist/build-vfD1txJe.mjs +2 -0
- package/dist/{builds-CO0MmSd3.mjs → builds-BIqfNXEE.mjs} +31 -31
- package/dist/{cache-XxusQxXe.mjs → cache-Dzl3kth1.mjs} +1 -1
- package/dist/{certificate-authorities-Dmxh7w-Z.mjs → certificate-authorities-CQinLiq_.mjs} +1 -1
- package/dist/cf-O3gEaXYZ.mjs +18 -0
- package/dist/chunk-M77HNR46-DPbhuhiy.mjs +2 -0
- package/dist/chunk-RV27PEH3-Cws_30ln.mjs +97 -0
- package/dist/chunk-U6NEESU5-BhF4rnpx.mjs +2 -0
- package/dist/chunk-WMOON6TZ-D_ToS88f.mjs +2 -0
- package/dist/cli-ZXrxm369.mjs +6 -0
- package/dist/cli-exit-Dqoo6Jgb.mjs +2 -0
- package/dist/client-certificates--vw-4vvy.mjs +13 -0
- package/dist/{client-side-security-D7NWV0YH.mjs → client-side-security-YCsdeK3e.mjs} +1 -1
- package/dist/{cloud-connector-XMFOTNqT.mjs → cloud-connector-CwSi4zZI.mjs} +1 -1
- package/dist/{cloudflared-DhItYrCq.mjs → cloudflared-CH8rOneA.mjs} +1 -1
- package/dist/{cloudforce-one-Cew4MHvA.mjs → cloudforce-one-hEykJeqy.mjs} +214 -214
- package/dist/command-Axp5Wfpj.mjs +2 -0
- package/dist/command-BH-TMJWp.mjs +2 -0
- package/dist/command-C1CwuI4O.mjs +2 -0
- package/dist/command-CIZDQPmS.mjs +2 -0
- package/dist/command-CeL8kQCM.mjs +2 -0
- package/dist/command-ChDtawgh.mjs +2 -0
- package/dist/command-D5nZoVE1.mjs +2 -0
- package/dist/command-DBCoI1fN.mjs +2 -0
- package/dist/command-DBpr6U4L.mjs +2 -0
- package/dist/command-DrQKTf1O.mjs +2 -0
- package/dist/command-IuYNIUk9.mjs +2 -0
- package/dist/command-L0y09SE5.mjs +2 -0
- package/dist/{command-RiZ_LYcm.mjs → command-ZSxcR8-J.mjs} +1 -1
- package/dist/command-egPOyKbx.mjs +2 -0
- package/dist/command-jJKEah9i.mjs +2 -0
- package/dist/{completions-xPLd1cvL.mjs → completions-DNisLHie.mjs} +26 -26
- package/dist/{connector-interrupts-BfQN_pm6.mjs → connector-interrupts-uIHLde10.mjs} +3 -3
- package/dist/{connector-telemetry-events-B7qLZsZJ.mjs → connector-telemetry-events-D2MH0OSs.mjs} +3 -3
- package/dist/{connector-telemetry-snapshots-Ckvg9BPc.mjs → connector-telemetry-snapshots-CQICQaGf.mjs} +3 -3
- package/dist/{connectors-BhvAP5fb.mjs → connectors-BXwvP7SF.mjs} +7 -7
- package/dist/{containers-Cq1gtnq6.mjs → containers-ClK7HGfx.mjs} +70 -72
- package/dist/{containers-Bl3EY-cy.mjs → containers-DOyOrVV9.mjs} +17 -17
- package/dist/{content-scan-BYGe9fFj.mjs → content-scan-B71JZ7G6.mjs} +1 -1
- package/dist/context-5JRcefHh.mjs +7 -0
- package/dist/{cps-BWMDWeVq.mjs → cps-CzNfFv-5.mjs} +1 -1
- package/dist/{csamScanner-DMYGzLNi.mjs → csamScanner-BfZcrcjk.mjs} +1 -1
- package/dist/{ct-alerting-Vq4l2s7n.mjs → ct-alerting-Cm8YLmXE.mjs} +1 -1
- package/dist/{custom-certificates-BDEHH0Ym.mjs → custom-certificates-DFMRe9_D.mjs} +4 -4
- package/dist/{custom-csrs-CHSkZNdX.mjs → custom-csrs-B5njuvdd.mjs} +5 -5
- package/dist/{custom-hostnames-Bch3iQZC.mjs → custom-hostnames-D06jQfNs.mjs} +6 -6
- package/dist/{custom-nameservers-Tdvu1-vr.mjs → custom-nameservers-CKwKLqbF.mjs} +5 -5
- package/dist/{custom-pages-rFsiIXlr.mjs → custom-pages-D339_r6I.mjs} +10 -10
- package/dist/{d1-C1GK7DsW.mjs → d1-CHXmF-Ga.mjs} +14 -14
- package/dist/{dcv-delegation-D6xiYj2l.mjs → dcv-delegation-BAnTwW8J.mjs} +1 -1
- package/dist/{delegate-GctF_lrq.mjs → delegate-B6LetRpZ.mjs} +1 -1
- package/dist/delegate.mjs +1 -1
- package/dist/{deploy-D04Xvm0m.mjs → deploy-CsQbufsL.mjs} +1 -1
- package/dist/{deploy-input-COEKxOA1.mjs → deploy-input-dwBe8pSi.mjs} +1 -1
- package/dist/dev-BpvWl6pG.mjs +4 -0
- package/dist/{diagnostics-BZVAAguV.mjs → diagnostics-BEUAWeLH.mjs} +7 -7
- package/dist/dialog-BlUXJKbA.mjs +2 -0
- package/dist/discover-DmIsaE54.mjs +2 -0
- package/dist/dist-CpufWpsP.mjs +48 -0
- package/dist/{dist-BpadEMNY.mjs → dist-DW47TUGh.mjs} +35 -35
- package/dist/dist-DfMipWKR.mjs +366 -0
- package/dist/{dls-BsnURYja.mjs → dls-CXS7bPlj.mjs} +8 -8
- package/dist/{dns-B_nTXhuM.mjs → dns-Dx7oPdtH.mjs} +63 -63
- package/dist/{dns-firewall-DDsrdulo.mjs → dns-firewall-wcP1fgB-.mjs} +8 -8
- package/dist/dot-prop-IITUZ2XW-BilKo4kO.mjs +2 -0
- package/dist/dotenv-CcQjGlV0.mjs +4 -0
- package/dist/dry-run-Bq0JAsbX.mjs +2 -0
- package/dist/{durable-objects-8U8DpF9q.mjs → durable-objects-DmieQflu.mjs} +4 -4
- package/dist/{email-auth-CzjtGH6g.mjs → email-auth-DiO-k5wt.mjs} +1 -1
- package/dist/{email-routing-B92fty1-.mjs → email-routing-CycPV4UR.mjs} +24 -24
- package/dist/{email-security-keTqF0nJ.mjs → email-security-DhtBU1X_.mjs} +77 -79
- package/dist/{email-sending-B7f95epu.mjs → email-sending-BjgiwUht.mjs} +23 -23
- package/dist/error-sanitization-Cu-8OKRA.mjs +2 -0
- package/dist/error-sanitization-Dc4bLj8k.mjs +2 -0
- package/dist/{fieldExtractors-DL_H1m7E.mjs → fieldExtractors-BOBRZ8gw.mjs} +4 -4
- package/dist/firewall-Dc0Xm26N.mjs +36 -0
- package/dist/{flagship-CjC3dF7L.mjs → flagship-BRqR3ioN.mjs} +13 -13
- package/dist/{fraud-DU_YCLC5.mjs → fraud-Czu1ed5n.mjs} +1 -1
- package/dist/generate-BAHK895m.mjs +2 -0
- package/dist/generate-DWW1YPjv.mjs +3 -0
- package/dist/{google-tag-gateway-xqN-QudN.mjs → google-tag-gateway-DsZA0a1r.mjs} +1 -1
- package/dist/gt-DmcMNPX6.mjs +2 -0
- package/dist/{healthchecks-COnq1YOx.mjs → healthchecks-CFH5bIAG.mjs} +1 -1
- package/dist/{hostnames-CxRAY_Pp.mjs → hostnames-CKDSQsXT.mjs} +1 -1
- package/dist/{hyperdrive-DPWyiXpj.mjs → hyperdrive-BLiI7eoy.mjs} +9 -9
- package/dist/{iam-CtX9NPCy.mjs → iam-B5mdfq5e.mjs} +24 -24
- package/dist/{images-CuWFOsGw.mjs → images-IVRjrB4_.mjs} +38 -38
- package/dist/index.mjs +1 -1
- package/dist/init-C6pA2OKl.mjs +39 -0
- package/dist/{intel-BeGV3VXt.mjs → intel-CvesITo3.mjs} +38 -38
- package/dist/interactive-C-o16XQs.mjs +32 -0
- package/dist/interactive-SgAjen2z.mjs +2 -0
- package/dist/{ips-d6aoKAI4.mjs → ips-DT9GaimG.mjs} +1 -1
- package/dist/keyless-certificates-B0Xe5WqA.mjs +13 -0
- package/dist/{keys-Fyf3vWcA.mjs → keys-BfcwaSGe.mjs} +2 -2
- package/dist/kv-BAKDr9h1.mjs +15 -0
- package/dist/lazy-command-BR3u8SQ2.mjs +2 -0
- package/dist/{leaked-credential-checks-B7ewx3W-.mjs → leaked-credential-checks-gRpF7J9-.mjs} +1 -1
- package/dist/{load-balancers-DHD4f2CT.mjs → load-balancers-CLVWIN9d.mjs} +39 -39
- package/dist/local-22UA5g9y.mjs +2 -0
- package/dist/{local-B6b2OIBW.mjs → local-CxYne8s2.mjs} +1 -1
- package/dist/{local-runtime-DD8DAIlm.mjs → local-runtime-C_fR3pz4.mjs} +1 -1
- package/dist/login-B2IW-LZC.mjs +5 -0
- package/dist/login-BKQI53YQ.mjs +2 -0
- package/dist/{logo-matches-BAX8v3iL.mjs → logo-matches-CmCWQC_j.mjs} +3 -3
- package/dist/{logos-BWBVGwU6.mjs → logos-DoGIvvML.mjs} +3 -3
- package/dist/{logpush-CZKR8DHO.mjs → logpush-C2fS4mz8.mjs} +23 -23
- package/dist/{logs-CiDyrqEu.mjs → logs-DOchrxC9.mjs} +16 -16
- package/dist/{magic-cloud-networking-DttrBXqd.mjs → magic-cloud-networking-BTWKttlB.mjs} +34 -34
- package/dist/{magic-network-monitoring-9VXDSYuL.mjs → magic-network-monitoring-C_6hCn_f.mjs} +17 -17
- package/dist/{magic-transit-Dsu_cSGM.mjs → magic-transit-B-Rmmg-Z.mjs} +139 -139
- package/dist/{managed-defense-SYreve4W.mjs → managed-defense-BPSLbGgV.mjs} +9 -9
- package/dist/{managed-transforms-CzSy_xPw.mjs → managed-transforms-BqiDVQD6.mjs} +1 -1
- package/dist/{matches-qf7GReyu.mjs → matches-wLc335So.mjs} +3 -3
- package/dist/{mcp-DYSk5_gc.mjs → mcp-CmQOrkzP.mjs} +15 -15
- package/dist/{mesh-DdY07OYt.mjs → mesh-DRuFq2pw.mjs} +12 -12
- package/dist/migrate-DBwOnU6B.mjs +2 -0
- package/dist/mtls-certificates-BUcQwJGQ.mjs +13 -0
- package/dist/{network-DpaZ5LJL.mjs → network-BuXy0ysq.mjs} +24 -24
- package/dist/{network-interconnects-C4uUoeNa.mjs → network-interconnects-BzfPaxkW.mjs} +17 -17
- package/dist/oauth-BYmfy7l7.mjs +9 -0
- package/dist/{oauth-nsTDJ0dF.mjs → oauth-BlFK0DPZ.mjs} +1 -1
- package/dist/{oauth-clients-D7Ou7oAS.mjs → oauth-clients-CnABE4xT.mjs} +7 -7
- package/dist/{oauth-scopes-BFoE82Mv.mjs → oauth-scopes-BFy1Hw7K.mjs} +1 -1
- package/dist/{observability-smcOFbC1.mjs → observability-B1IkzeE0.mjs} +44 -44
- package/dist/open-PCXX3ZDZ-BKRik1gi.mjs +4 -0
- package/dist/{organization-Dyf_0mq4.mjs → organization-DeIzTyFr.mjs} +1 -1
- package/dist/{organizations-D7zGPLVm.mjs → organizations-dpNO5XaQ.mjs} +1 -1
- package/dist/{origin-ca-certificates-DJrp29gv.mjs → origin-ca-certificates-B-1YtC61.mjs} +3 -3
- package/dist/{origin-post-quantum-encryption-BYj3kJiq.mjs → origin-post-quantum-encryption-DdvwucsG.mjs} +1 -1
- package/dist/{origin-tls-client-auth-j0tGh6Fy.mjs → origin-tls-client-auth-CzfpVmTE.mjs} +5 -5
- package/dist/output-CvQFJkvi.mjs +2 -0
- package/dist/{page-rules-CLzba_nr.mjs → page-rules--wnIp30C.mjs} +1 -1
- package/dist/pages-DvhJZv5S.mjs +60 -0
- package/dist/{pay-per-crawl-DbaTVI8V.mjs → pay-per-crawl-lqX3Rwt9.mjs} +32 -32
- package/dist/{pay-per-use-BEvtoppJ.mjs → pay-per-use-BRKnBlz2.mjs} +3 -3
- package/dist/{pipelines-lps71uoA.mjs → pipelines-CvePummb.mjs} +20 -20
- package/dist/precursor-DgotmHQd.mjs +4 -0
- package/dist/previews-Brsuhzmk.mjs +4 -0
- package/dist/progress-DUeNqM-j.mjs +2 -0
- package/dist/prompt-DV6YTdoa.mjs +3 -0
- package/dist/{queries-EJYlFw8m.mjs → queries-CLqy4AM6.mjs} +4 -4
- package/dist/{queues-CozKGaA4.mjs → queues-D0Y4LNP1.mjs} +29 -35
- package/dist/r2-D_FuuTGm.mjs +132 -0
- package/dist/{r2-data-catalog-Bfn3AWzn.mjs → r2-data-catalog-D5Fvpr3C.mjs} +16 -16
- package/dist/{radar-NmpdyMo5.mjs → radar-B6bYFNVn.mjs} +1 -1
- package/dist/raw-fetch-Cp3EaTcj.mjs +2 -0
- package/dist/{realtime-iWTz8WbH.mjs → realtime-BTBZoZNW.mjs} +78 -78
- package/dist/{registrar-Cza1L8i_.mjs → registrar-CFh4TCkC.mjs} +8 -8
- package/dist/{registrar-sandbox-BP4GQg5s.mjs → registrar-sandbox-By6ukXxf.mjs} +6 -6
- package/dist/{registry-vreNkX6u.mjs → registry-kYRASukx.mjs} +1 -1
- package/dist/{reporting-gvXX2MxY.mjs → reporting-Cf3q4cuO.mjs} +7 -7
- package/dist/request-headers-jdUlF-_S.mjs +2 -0
- package/dist/{request-tracers-F8a_aj32.mjs → request-tracers-CqNmb-dS.mjs} +2 -2
- package/dist/resolve-PZuJ878-.mjs +2 -0
- package/dist/{resource-sharing-D6XWIDmb.mjs → resource-sharing-vDvq5J5a.mjs} +14 -14
- package/dist/{resource-tagging-c_z4VZt0.mjs → resource-tagging-DRCkpRmf.mjs} +2 -2
- package/dist/{rules-_QDaG3U5.mjs → rules-D-IfU82u.mjs} +8 -8
- package/dist/{rulesets-Bc4ZuPG_.mjs → rulesets-ezJUnXm7.mjs} +17 -17
- package/dist/{rum-ChPyfpM2.mjs → rum-G42H7AXu.mjs} +14 -14
- package/dist/run-BhfDNWCI.mjs +2 -0
- package/dist/run-djd1-6kN.mjs +2 -0
- package/dist/{schema-flags-C9lbLgE-.mjs → schema-flags-yDMur8UR.mjs} +2 -2
- package/dist/schema-s22s29sJ.mjs +2 -0
- package/dist/{scim-BjiswXbC.mjs → scim-DgRlqTtE.mjs} +10 -10
- package/dist/{sdk-CsWOex96.mjs → sdk-Bx29ZKK3.mjs} +2 -2
- package/dist/{secrets-store-Cn3D5a0d.mjs → secrets-store-DcNmMGG2.mjs} +11 -11
- package/dist/{security-center-DP4GC1cG.mjs → security-center-CZwVaL7t.mjs} +15 -15
- package/dist/{security-txt-CaR5Idmz.mjs → security-txt-CD0RAEsU.mjs} +1 -1
- package/dist/session-CjQFm10R.mjs +2 -0
- package/dist/shared-Cfuwhk19.mjs +2 -0
- package/dist/{smart-shield-CphSzoh4.mjs → smart-shield-C72SYuAe.mjs} +1 -1
- package/dist/{snippets-r-Mre0cE.mjs → snippets-Bl4Rfvdf.mjs} +1 -1
- package/dist/source-38bULAR8.mjs +6 -0
- package/dist/spawn-PBhhCQdl.mjs +10 -0
- package/dist/{spectrum-BhjCVFZk.mjs → spectrum-BgOMd04u.mjs} +1 -1
- package/dist/{speed-CPgypY7n.mjs → speed-dahwVmv-.mjs} +1 -1
- package/dist/src-npcmT3gh.mjs +109 -0
- package/dist/{ssl-DsMrXyqK.mjs → ssl-BMZZPgJx.mjs} +4 -4
- package/dist/startup-profile-B0UCc9_J.mjs +2 -0
- package/dist/startup-profile-DrV846S5.mjs +17 -0
- package/dist/{state-BxCejn42.mjs → state-DhHOAdTo.mjs} +1 -1
- package/dist/state-Dyo8DcW7.mjs +2 -0
- package/dist/{stream-L2NmGPby.mjs → stream-CsQ8wMMF.mjs} +45 -45
- package/dist/{submit-KN0Ul5fV.mjs → submit-DdoTeeRt.mjs} +2 -2
- package/dist/{tags-CZMFKGdP.mjs → tags-BESTUjkv.mjs} +2 -2
- package/dist/telemetry-CVjp5qaj.mjs +2 -0
- package/dist/telemetry-iBZ-f6og.mjs +2 -0
- package/dist/{tenant-Cu4P-foo.mjs → tenant-COyp8x56.mjs} +1 -1
- package/dist/{tenant-custom-nameservers-Nx59Buv0.mjs → tenant-custom-nameservers-BdrnvyTk.mjs} +1 -1
- package/dist/{theme-BiIYWOed.mjs → theme-BIWQFmZ0.mjs} +2 -2
- package/dist/tools-LlzHD_86.mjs +2 -0
- package/dist/{tunnels-C-mMZy4v.mjs → tunnels-CjDCYR0_.mjs} +15 -15
- package/dist/turnstile-crX-kMig.mjs +33 -0
- package/dist/ui-BQxRjahW.mjs +5 -0
- package/dist/update-check-BpLdkJeA.mjs +2 -0
- package/dist/update-check-CtmTFJ-O.mjs +2 -0
- package/dist/update-check-worker.mjs +1 -1
- package/dist/{url-info-7ikewAnp.mjs → url-info-CSU3TaVe.mjs} +2 -2
- package/dist/{url-normalization-B0D7Fhf3.mjs → url-normalization-DKZYH3Tv.mjs} +1 -1
- package/dist/{url-scanner-DpKIqkin.mjs → url-scanner-mtiMlSyE.mjs} +8 -8
- package/dist/{user-BFq8UM1s.mjs → user-DuDnsFvs.mjs} +1 -1
- package/dist/{values-DnBYV1ZD.mjs → values-B4gL0UvN.mjs} +2 -2
- package/dist/{vectorize-BpZ4UsUj.mjs → vectorize-CEC7tpRJ.mjs} +15 -15
- package/dist/version-CPwqVR_p.mjs +2 -0
- package/dist/{waiting-rooms-DJfqehy9.mjs → waiting-rooms-CosskYpi.mjs} +25 -25
- package/dist/{web-assets-CCSSW_JH.mjs → web-assets-Do2JEl4p.mjs} +1 -1
- package/dist/{web3-bbT1REPc.mjs → web3-C3sb4DR8.mjs} +1 -1
- package/dist/{workers-CXuyjZB8.mjs → workers-ByA4Nddg.mjs} +20 -20
- package/dist/{workers-builds-TRF3K416.mjs → workers-builds-CDE-wcw-.mjs} +7 -7
- package/dist/{workers-for-platforms-B57iKiSN.mjs → workers-for-platforms-CvZI2B1d.mjs} +11 -11
- package/dist/{workers-vpc-kgryQ48l.mjs → workers-vpc-WbwBVV_L.mjs} +6 -6
- package/dist/{workflows-CKdPlIkK.mjs → workflows-Ch7cNhhq.mjs} +20 -20
- package/dist/{zaraz-BXFlEWSx.mjs → zaraz-BO7WT_U7.mjs} +1 -1
- package/dist/{zero-trust-M08mBsYd.mjs → zero-trust-CTKtzxxW.mjs} +466 -426
- package/dist/{zone-DHmrotGW.mjs → zone-DSHj2Vv2.mjs} +1 -1
- package/dist/{zones-C0eKBTqG.mjs → zones-CeFb9USG.mjs} +1 -1
- package/package.json +13 -11
- package/dist/access-C_2rEi0H.mjs +0 -27
- package/dist/ai-gateway-DNY4FPF2.mjs +0 -147
- package/dist/auth-DJhSjNNL.mjs +0 -8
- package/dist/auth-sAorfdWU.mjs +0 -2
- package/dist/browser-extension-C48pKh3t.mjs +0 -15
- package/dist/build-1a8CiNIT.mjs +0 -2
- package/dist/build-Ca_drQY2.mjs +0 -2
- package/dist/cf-oadujOtC.mjs +0 -18
- package/dist/chunk-6EUZQHAF-QVTL_mC-.mjs +0 -2
- package/dist/chunk-DL5FNmn1.mjs +0 -2
- package/dist/chunk-Q72B4Q5Z-Cr1H_iK6.mjs +0 -2
- package/dist/chunk-Q72B4Q5Z-DKhx_4ok.mjs +0 -2
- package/dist/chunk-QBZBEHZB-Byagrlop.mjs +0 -2
- package/dist/chunk-XLADBZ7F-BXKOjWbx.mjs +0 -374
- package/dist/client-certificates-CgaIc3zN.mjs +0 -13
- package/dist/command-CF0giIIc.mjs +0 -3
- package/dist/command-CsZFRm3P.mjs +0 -2
- package/dist/command-DBz8QiFk.mjs +0 -2
- package/dist/config-B4vIa0zp.mjs +0 -2
- package/dist/data-security-DDhPnX8Z.mjs +0 -71
- package/dist/dev-CVD3BVUG.mjs +0 -4
- package/dist/dialog--iw0F2s-.mjs +0 -2
- package/dist/dist-CUUGKvjh.mjs +0 -48
- package/dist/dist-dc4E1u01.mjs +0 -272
- package/dist/dot-prop-6SRZBKHT-Dj7YOlwR.mjs +0 -2
- package/dist/dry-run-CLX6Pbtq.mjs +0 -2
- package/dist/error-sanitization-Cbd_oegl.mjs +0 -2
- package/dist/error-sanitization-DwOlM3R7.mjs +0 -2
- package/dist/firewall-67qoXiqD.mjs +0 -56
- package/dist/interactive-B6woOLo-.mjs +0 -32
- package/dist/interactive-DnUvQHjc.mjs +0 -2
- package/dist/keyless-certificates-Dvib4jhw.mjs +0 -13
- package/dist/kv-CA4J7cCq.mjs +0 -21
- package/dist/local-BrfySqnx.mjs +0 -2
- package/dist/login-CLW108XX.mjs +0 -5
- package/dist/login-xgRjiyJa.mjs +0 -2
- package/dist/mtls-certificates-LXlgdkf1.mjs +0 -13
- package/dist/oauth-Dzk6Gy-6.mjs +0 -14
- package/dist/open-PBXRGS4R-C4CKEADM.mjs +0 -4
- package/dist/open-PBXRGS4R-C_-G_4DC.mjs +0 -4
- package/dist/output-Bia1u2k5.mjs +0 -2
- package/dist/pages-pah6dZBJ.mjs +0 -60
- package/dist/precursor-DTTYLDEa.mjs +0 -4
- package/dist/previews-B89cUmpr.mjs +0 -4
- package/dist/progress-D_mL-Kcy.mjs +0 -2
- package/dist/prompt-sL_yMZbI.mjs +0 -3
- package/dist/r2-Chn_JQUM.mjs +0 -127
- package/dist/raw-fetch-lSVttVJF.mjs +0 -2
- package/dist/request-headers-POBKmu93.mjs +0 -2
- package/dist/resolve-BXemCSyA.mjs +0 -2
- package/dist/run-DtN51G2A.mjs +0 -2
- package/dist/run-oACgYK8I.mjs +0 -2
- package/dist/schema-DZSSJaY0.mjs +0 -2
- package/dist/shared-W9uoX1-W.mjs +0 -2
- package/dist/source-BR4_k2ad.mjs +0 -6
- package/dist/spawn-BWEuIO-w.mjs +0 -523
- package/dist/src-Hw-TlVAO.mjs +0 -108
- package/dist/startup-profile-CYEokTVe.mjs +0 -2
- package/dist/startup-profile-CgWHy4rE.mjs +0 -17
- package/dist/state-DSzkxXML.mjs +0 -2
- package/dist/telemetry-CSj_ezpk.mjs +0 -2
- package/dist/telemetry-DAf9gLyH.mjs +0 -2
- package/dist/telemetry-Dk1GcQ0u.mjs +0 -5
- package/dist/tools-BMKpYraQ.mjs +0 -2
- package/dist/turnstile-39JL9tMt.mjs +0 -33
- package/dist/ui-DH95w1Qk.mjs +0 -5
- package/dist/undici-DTSBJHNS.mjs +0 -96
- package/dist/update-check-BKQBD4MQ.mjs +0 -2
- package/dist/update-check-CE9XB6gf.mjs +0 -2
- package/dist/version-Bh3b9vTa.mjs +0 -2
- /package/dist/{Page-C-JHZnIy.mjs → Page-CjJht2qT.mjs} +0 -0
- /package/dist/{alerts-CstOk8n0.mjs → alerts-DqZgVSCT.mjs} +0 -0
- /package/dist/{autorag-PRTwXGgn.mjs → autorag-Cq9k9Ye6.mjs} +0 -0
- /package/dist/{body-parser-CUWbw_Tq.mjs → body-parser-hh2avzkz.mjs} +0 -0
- /package/dist/{brands-BHRXlWDm.mjs → brands-DeLbFxSt.mjs} +0 -0
- /package/dist/{clear-UvKESVx3.mjs → clear-CRfI7WS7.mjs} +0 -0
- /package/dist/{cli-types-tt_LZMbn.mjs → cli-types-DoVT5q_M.mjs} +0 -0
- /package/dist/{connector-telemetry-events-latest-DwnFeZg0.mjs → connector-telemetry-events-latest-D8p_dR8s.mjs} +0 -0
- /package/dist/{connector-telemetry-snapshots-latest-Dv6rZlxs.mjs → connector-telemetry-snapshots-latest-COFmzmlk.mjs} +0 -0
- /package/dist/{domain-info-BqTDXNBo.mjs → domain-info-aiwP60Fo.mjs} +0 -0
- /package/dist/{health-CwPzzrV6.mjs → health-Bz33n-_F.mjs} +0 -0
- /package/dist/{input-validation-Ch4Vllrm.mjs → input-validation-Dk52b0me.mjs} +0 -0
- /package/dist/{internal-WLHfxX64.mjs → internal-BHrJbbdA.mjs} +0 -0
- /package/dist/{lifecycle-Ichnb2x1.mjs → lifecycle-C7tAC1Mn.mjs} +0 -0
- /package/dist/{live-D_k7eHdv.mjs → live-a01OfPf9.mjs} +0 -0
- /package/dist/{metadata-APBiectA.mjs → metadata-C33s4rc-.mjs} +0 -0
- /package/dist/{project-settings-DSXevRvj.mjs → project-settings-DO6njFg_.mjs} +0 -0
- /package/dist/{rate-limit-analytics-CDTPxSET.mjs → rate-limit-analytics-Bw9qmxMx.mjs} +0 -0
- /package/dist/{rate-limits-C3K9smdl.mjs → rate-limits-CDm_xzKt.mjs} +0 -0
- /package/dist/{ready-CvwvbdTX.mjs → ready-BXGqY1Wi.mjs} +0 -0
- /package/dist/{recent-submissions-CjzcT-iH.mjs → recent-submissions-AhGZD3a3.mjs} +0 -0
- /package/dist/{refute-CIAFMj00.mjs → refute-D_w5Gw20.mjs} +0 -0
- /package/dist/{resolve-CUDKxUrW.mjs → resolve-BCTrtcx7.mjs} +0 -0
- /package/dist/{scan-logo-zFkphtQ3.mjs → scan-logo-BZzFam-Q.mjs} +0 -0
- /package/dist/{scan-page-CLl2MAkZ.mjs → scan-page-BPA8nSPM.mjs} +0 -0
- /package/dist/{search-12jA1b4l.mjs → search-De0UlXYN.mjs} +0 -0
- /package/dist/{signed-url-U0T_PEMR.mjs → signed-url-ziDz9frX.mjs} +0 -0
- /package/dist/{submission-info-CZ84a3Nb.mjs → submission-info-83D2DCCG.mjs} +0 -0
- /package/dist/{total-queries-CJTc9Pde.mjs → total-queries-Dhol31Kn.mjs} +0 -0
- /package/dist/{tracked-domains-BKLxnnSv.mjs → tracked-domains-DoOPs6Vd.mjs} +0 -0
- /package/dist/{verify-CZW5Fo1q.mjs → verify-CxpGEnJb.mjs} +0 -0
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
import{a as e,n as t}from"./theme-BiIYWOed.mjs";import"./ui-DH95w1Qk.mjs";import{l as n,s as r,t as i}from"./config-B4vIa0zp.mjs";const a={command:`disable`,describe:`Disable cf telemetry collection`,handler:()=>{n(!1);let{enabled:e,source:a}=r(),o=t(),s=e?o.green(`Enabled`):o.red(`Disabled`),c=a===`env`?` (set by ${i})`:``;console.log(`Status: ${s}${c}\n`),console.log(e?`cf is collecting usage telemetry because ${i}=true overrides this setting.\n`:`cf is no longer collecting usage telemetry.
|
|
3
|
-
`)}},o={command:`enable`,describe:`Enable cf telemetry collection`,handler:()=>{n(!0);let{enabled:e,source:a}=r(),o=t(),s=e?o.green(`Enabled`):o.red(`Disabled`),c=a===`env`?` (set by ${i})`:``;console.log(`Status: ${s}${c}\n`),console.log(e?`cf is now collecting anonymous usage telemetry. Thank you for helping make cf better.
|
|
4
|
-
`:`cf is not collecting usage telemetry because ${i}=false overrides this setting.\n`)}},s={command:`status`,describe:`Check whether cf telemetry collection is enabled`,handler:()=>{let n=t(),{enabled:a,source:o}=r(),s=a?n.green(`Enabled`):n.red(`Disabled`),c=o===`env`?` (set by ${i})`:``;console.log(`Status: ${s}${c}\n`),console.log(e.muted(`Configure on this machine: \`cf telemetry enable\` / \`cf telemetry disable\`.
|
|
5
|
-
Override per invocation with ${i}=true/false.\nLearn more: https://github.com/cloudflare/cf/blob/main/packages/cli/telemetry.md`))}},c={command:`telemetry`,describe:`Configure whether cf collects anonymous usage telemetry`,builder:e=>e.command(s).command(o).command(a).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};export{c as default};
|
package/dist/tools-BMKpYraQ.mjs
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
import{t as e}from"./output-Bia1u2k5.mjs";import{n as t,t as n}from"./metadata-APBiectA.mjs";function r(e){return e.replace(/[\s-]+/g,`_`)}function i(e){let t={type:e.type,description:e.description};return`default`in e&&e.default!==void 0&&(t.default=e.default),e.enum&&e.enum.length>0&&(t.enum=e.enum),t}function a(e){let t={},n=[];for(let r of e.arguments)t[r.name]=i(r),r.required&&n.push(r.name);for(let r of e.options)t[r.name]=i(r),r.required&&n.push(r.name);return{name:r(e.command),description:e.description,inputSchema:{type:`object`,properties:t,required:n}}}const o={command:`tools`,describe:!1,builder:e=>e,handler:async r=>{let i=t(import.meta.url,`commands.json`,n)?.commands??null;if(i===null){console.error(`Warning: Command metadata file not found. Run the build to generate it.`),e({version:`1.0`,tools:[]});return}e({version:`1.0`,tools:i.map(a)})}};export{o as default};
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
import{t as e}from"./local-B6b2OIBW.mjs";import{m as t,v as n}from"./oauth-Dzk6Gy-6.mjs";import{r}from"./auth-DJhSjNNL.mjs";import{t as i}from"./output-Bia1u2k5.mjs";import{t as a}from"./dry-run-CLX6Pbtq.mjs";import{t as o}from"./progress-D_mL-Kcy.mjs";import{t as s}from"./run-DtN51G2A.mjs";import"./telemetry-DAf9gLyH.mjs";import{n as c,t as l}from"./body-parser-CUWbw_Tq.mjs";import{n as u}from"./input-validation-Ch4Vllrm.mjs";import{a as d,n as f}from"./prompt-sL_yMZbI.mjs";import{t as p}from"./cli-types-tt_LZMbn.mjs";function m(e){return e.usage(`$0 turnstile widgets create
|
|
3
|
-
|
|
4
|
-
Lists challenge widgets.`).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 using case-insensitive substring 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){a({command:`cf turnstile widgets create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${await n()??`<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 r(f),m=f.local?e:await t();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(),i(await o(`Creating`,async()=>p.turnstile.widgets.create({...e,account_id:m,...s})),{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(),i(await o(`Creating`,async()=>p.turnstile.widgets.create({...h,account_id:m,...s})),{successLabel:`Created`})})};function g(e){return e.usage(`$0 turnstile widgets delete <sitekey>
|
|
15
|
-
|
|
16
|
-
Destroy a Turnstile Widget.`).positional(`sitekey`,{type:`string`,description:`Widget item identifier tag.`,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){a({command:`cf turnstile widgets delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${await n()??`<account-id>`}/challenges/widgets/${c.sitekey==null?`<sitekey>`:encodeURIComponent(String(c.sitekey))}`,pathParams:{sitekey:String(c.sitekey??``)},bodyKind:`none`});return}let s=await r(c),l=c.local?e:await t();if(c.accountId=l,!await f({force:!!c.force})){process.stderr.write(`Aborted.
|
|
17
|
-
`);return}i(await o(`Deleting`,async()=>s.turnstile.widgets.delete({account_id:l,sitekey:c.sitekey})),{successLabel:`Deleted`})})};function v(e){return e.usage(`$0 turnstile widgets get <sitekey>
|
|
18
|
-
|
|
19
|
-
Show a single challenge widget configuration.`).positional(`sitekey`,{type:`string`,description:`Widget item identifier tag.`,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){a({command:`cf turnstile widgets get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await n()??`<account-id>`}/challenges/widgets/${c.sitekey==null?`<sitekey>`:encodeURIComponent(String(c.sitekey))}`,pathParams:{sitekey:String(c.sitekey??``)},bodyKind:`none`});return}let s=await r(c),l=c.local?e:await t();c.accountId=l,i(await o(`Loading`,async()=>s.turnstile.widgets.get({account_id:l,sitekey:c.sitekey})),{successLabel:`Loaded`})})};function b(e){return e.usage(`$0 turnstile widgets list
|
|
20
|
-
|
|
21
|
-
Lists all turnstile widgets of 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 using case-insensitive substring 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){a({command:`cf turnstile widgets list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await n()??`<account-id>`}/challenges/widgets`,pathParams:{},query:s,bodyKind:`none`});return}let l=await r(c),u=c.local?e:await t();c.accountId=u,i(await o(`Loading`,async()=>l.turnstile.widgets.list({account_id:u,...s})),{successLabel:`Loaded`})})};function S(e){return e.usage("$0 turnstile widgets rotate-secret <sitekey>\n\nGenerate 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:`Widget item identifier tag.`,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){a({command:`cf turnstile widgets rotate-secret`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${await n()??`<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 r(u),d=u.local?e:await t();if(u.accountId=d,u.body){let e=c(u.body);i(await o(`Creating`,async()=>s.turnstile.widgets.rotateSecret({...e,account_id:d,sitekey:u.sitekey})),{successLabel:`Created`});return}let f=l({invalidate_immediately:u[`invalidate-immediately`]});i(await o(`Creating`,async()=>s.turnstile.widgets.rotateSecret({...f,account_id:d,sitekey:u.sitekey})),{successLabel:`Created`})})};function w(e){return e.usage(`$0 turnstile widgets update <sitekey>
|
|
22
|
-
|
|
23
|
-
Update the configuration of a widget.`).positional(`sitekey`,{type:`string`,description:`Widget item identifier tag.`,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){a({command:`cf turnstile widgets update`,method:`PUT`,url:`https://api.cloudflare.com/client/v4/accounts/${await n()??`<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 r(f),p=f.local?e:await t();if(f.accountId=p,f.body){let e=c(f.body);i(await o(`Updating`,async()=>s.turnstile.widgets.update({...e,account_id:p,sitekey:f.sitekey})),{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`)});i(await o(`Updating`,async()=>s.turnstile.widgets.update({...m,account_id:p,sitekey:f.sitekey})),{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};
|
package/dist/ui-DH95w1Qk.mjs
DELETED
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
import"./delegate-GctF_lrq.mjs";import{i as e,n as t,t as n}from"./theme-BiIYWOed.mjs";import{stripVTControlCharacters as r}from"node:util";function i(r){return`${t().hex(n.warning)(e.warning)} ${r}`}function a(r){return`${t().hex(n.info)(e.info)} ${r}`}function o(r){let i=t().hex(n.muted);return`${i(e.arrow)} ${i(r)}`}function s(e,a){let o=t(),s=process.env.CF_DELEGATION?` ${o.dim(`·`)} ${o.dim(`delegated`)}`:``,c=a?` ${o.dim(`·`)} ${o.hex(n.warning)(`update available: v${a.latestVersion}`)}`:``,l=`🍊☁️ ${o.bold.hex(n.orange)(`cf`)} ${o.dim(`·`)} ${o.dim(`v${e}`)}${s}${c}`,u=r(l).length,d=`─`.repeat(u);return`${l}\n${o.hex(n.orange)(d)}${a?.isMajor?`\n${i(`A new major version of cf is available. Updating is recommended.`)}`:``}`}const c={bar:`│`,top:`┌`,bottom:`└`};function l(e,r,i){let a=i?.title??`Error`,o=t(),s=n.error,l=o.hex(s)(c.bar),d=o.hex(s)(c.top),f=o.hex(s)(c.bottom),p=Math.max(20,(process.stdout.columns||80)-2),m=[];if(m.push(``),m.push(`${d} ${o.hex(s).bold(a)}`),i?.rawMessage)for(let t of e.split(`
|
|
3
|
-
`))m.push(t.length>0?`${l} ${t}`:l);else for(let t of u(e,p))m.push(t.length>0?`${l} ${o.hex(s).bold(t)}`:l);if(r){m.push(l);for(let e of u(r,p))m.push(e.length>0?`${l} ${o.dim(e)}`:l)}return m.push(f),m.join(`
|
|
4
|
-
`)}function u(e,t){let n=[];for(let r of e.split(`
|
|
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{i as a,a as i,s as n,o as r,l as t};
|