cf 1.0.0-beta.15 → 1.0.0-beta.17
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_meta/commands.json +3797 -3220
- package/dist/_meta/hand-written-commands.json +2 -2
- package/dist/_meta/schemas.json +4768 -4250
- package/dist/{abuse-reports-CnQBtN1G.mjs → abuse-reports-C4LxDvUM.mjs} +1 -1
- package/dist/{access-BzmXSwzj.mjs → access-DnWW2AAT.mjs} +1 -1
- package/dist/{account-tags-2qPWbW17.mjs → account-tags-zvHRQZxb.mjs} +1 -1
- package/dist/{accounts-B0Byg-AV.mjs → accounts-8UcHNm3S.mjs} +39 -39
- package/dist/{acm-DgAu0cnk.mjs → acm-qRM3iy4Z.mjs} +3 -3
- package/dist/{addressing-J1oa0ML2.mjs → addressing-CAb8z2Dq.mjs} +14 -14
- package/dist/{agent-memory-4KGou-tm.mjs → agent-memory-oIUP4ZV5.mjs} +1 -1
- package/dist/{ai-WY7wVQfA.mjs → ai-DnhytGdc.mjs} +1 -1
- package/dist/{ai-audit-D38HaEoZ.mjs → ai-audit-B7_5EOcN.mjs} +1 -1
- package/dist/{ai-gateway-C0gIipT8.mjs → ai-gateway-b3FFu6UV.mjs} +6 -6
- package/dist/{ai-search-ClwnPU-9.mjs → ai-search-CtfW5fzl.mjs} +25 -25
- package/dist/{ai-security-BIsvFPYV.mjs → ai-security-KUs94UW-.mjs} +1 -1
- package/dist/{alerting-MHhv28oO.mjs → alerting-CCmyEPzN.mjs} +1 -1
- package/dist/{analytics-BfBz7bqB.mjs → analytics-BAvBj6qx.mjs} +1 -1
- package/dist/{analytics_engine-CXVdBF1n.mjs → analytics-engine-DAJp89gM.mjs} +2 -2
- package/dist/{api-security-DUCfcdC1.mjs → api-security-BItVQymb.mjs} +2 -2
- package/dist/{argo-CUlzI4v3.mjs → argo-DsJCvfml.mjs} +1 -1
- package/dist/{artifacts-BLfWGzBg.mjs → artifacts-DzHXeah6.mjs} +1 -1
- package/dist/audit-logs-D9XxsVZm.mjs +4 -0
- package/dist/{auth-CGRemu5W.mjs → auth-C530fHKQ.mjs} +1 -1
- package/dist/auth-Ccm5viK_.mjs +2 -0
- package/dist/{auth-C6u9qIGO.mjs → auth-MNz2D-PD.mjs} +1 -1
- package/dist/{auth-token-DkkYg4DP.mjs → auth-token-Cw4c0y89.mjs} +1 -1
- package/dist/{autoconfig-B0ESZ8DJ.mjs → autoconfig-9po_tqsS.mjs} +1 -1
- package/dist/{basin-catalog-CrKRYJ0b.mjs → basin-catalog-DcMiZV9J.mjs} +1 -1
- package/dist/{billing-NxehgXrR.mjs → billing-COgAWTYh.mjs} +7 -7
- package/dist/{bot-management-C993iQKL.mjs → bot-management-Dx3lh9Fi.mjs} +1 -1
- package/dist/{botnet-feed-CZ4vYk5y.mjs → botnet-feed-C8496Nhl.mjs} +1 -1
- package/dist/{brand-protection-ADVgIi0l.mjs → brand-protection-B0p8Sv6s.mjs} +1 -1
- package/dist/browser-run-ChXohmNG.mjs +42 -0
- package/dist/build-BRJnyeu8.mjs +2 -0
- package/dist/{build-sBpqm9ga.mjs → build-i8l2qGVZ.mjs} +1 -1
- package/dist/{builds-DqtiTH7p.mjs → builds-DmEFTQTa.mjs} +1 -1
- package/dist/{cache-hX5QxmI0.mjs → cache-BUh85NRr.mjs} +1 -1
- package/dist/{certificate-authorities-BOcybjc1.mjs → certificate-authorities-BTLdA7EQ.mjs} +1 -1
- package/dist/chunk-JP6R7L72-C0kFUelb.mjs +2 -0
- package/dist/cli-DJhpXf38.mjs +6 -0
- package/dist/{client-certificates-Bez_ArKE.mjs → client-certificates-B3UxH_Au.mjs} +1 -1
- package/dist/{client-side-security-CSmA50Bv.mjs → client-side-security-km3-4L_4.mjs} +1 -1
- package/dist/{cloud-connector-0Wivqi7S.mjs → cloud-connector-BoKFprDD.mjs} +1 -1
- package/dist/{cloudforce-one-J-rU6k1U.mjs → cloudforce-one-DN5N3C3w.mjs} +21 -21
- package/dist/{command-BCJN-ZM2.mjs → command-B694oLDo.mjs} +1 -1
- package/dist/{command-BG-kLOnS.mjs → command-Bmee6uwe.mjs} +1 -1
- package/dist/{command-BKDbbA-L.mjs → command-CAs3SxlI.mjs} +1 -1
- package/dist/{command-DIs-Nqtl.mjs → command-CCq-Z2Ua.mjs} +1 -1
- package/dist/{command-Bdy69UFU.mjs → command-CbQFbfps.mjs} +1 -1
- package/dist/{command-0BOb1pgV.mjs → command-CiApsRql.mjs} +1 -1
- package/dist/{command-CKW6UhTh.mjs → command-D1JR8Fb7.mjs} +1 -1
- package/dist/{command-DPn5ANHs.mjs → command-DerHAjQL.mjs} +1 -1
- package/dist/{command-BIsI-mMX.mjs → command-RC9WM5jq.mjs} +1 -1
- package/dist/{command-BWQIKu6I.mjs → command-rx0Kb5pn.mjs} +1 -1
- package/dist/{completions-CpNGTlUX.mjs → completions-11latun5.mjs} +1 -1
- package/dist/{connector-interrupts-CH-DaLuo.mjs → connector-interrupts-wvQcZsO1.mjs} +1 -1
- package/dist/{connector-telemetry-events-X3Fod9nl.mjs → connector-telemetry-events-C0GGCIQk.mjs} +1 -1
- package/dist/{connector-telemetry-snapshots-D-WR4npQ.mjs → connector-telemetry-snapshots-ZXzsFgea.mjs} +1 -1
- package/dist/{connectors-CORKD31m.mjs → connectors-DXIUG4Zi.mjs} +1 -1
- package/dist/{containers-BboUbx3k.mjs → containers-DCH6MFjY.mjs} +5 -5
- package/dist/{containers-Di3_Vopq.mjs → containers-WMWKhLkp.mjs} +1 -1
- package/dist/{content-scan-DXGREAXa.mjs → content-scan-CRDmR7rD.mjs} +1 -1
- package/dist/{context-A6T-NKPI.mjs → context-q-6bMSL-.mjs} +1 -1
- package/dist/{cps-1BoOLtTq.mjs → cps-Due0P5IW.mjs} +1 -1
- package/dist/csam-scanner-DvLrPw45.mjs +10 -0
- package/dist/{ct-alerting-DlH4ILQo.mjs → ct-alerting-BtEGkRJi.mjs} +1 -1
- package/dist/{custom-certificates-zJqJZ2Th.mjs → custom-certificates-CMLXTTEc.mjs} +4 -4
- package/dist/{custom-csrs-DoLIGqYL.mjs → custom-csrs-BV017SqE.mjs} +3 -3
- package/dist/{custom-hostnames-YfV-aoAK.mjs → custom-hostnames-DI_dFaof.mjs} +6 -6
- package/dist/{custom-nameservers-BV43gmgt.mjs → custom-nameservers-BLoE8VGG.mjs} +1 -1
- package/dist/{custom-pages-CoOU1Cdx.mjs → custom-pages-ubava9Qm.mjs} +6 -6
- package/dist/{d1-DujBmzLa.mjs → d1-Dbs8HItA.mjs} +1 -1
- package/dist/{dcv-delegation-CPLsVYOl.mjs → dcv-delegation-sGGt6UU_.mjs} +1 -1
- package/dist/{deploy-wNujfGUJ.mjs → deploy-5utIiOMN.mjs} +1 -1
- package/dist/{deploy-context-tEhwEXnA.mjs → deploy-context-C0iVbWRG.mjs} +1 -1
- package/dist/{deploy-input-BqJ7GVZ-.mjs → deploy-input-KK6yyBN_.mjs} +1 -1
- package/dist/{dev-EtnMYA7K.mjs → dev-CnoMHxf4.mjs} +1 -1
- package/dist/{diagnostics-B3TYPVRi.mjs → diagnostics-C9B07eJY.mjs} +1 -1
- package/dist/{dls-CWm1HRF0.mjs → dls-lbM3i4x-.mjs} +7 -7
- package/dist/{dns-CjAFU7Z9.mjs → dns-QTMPGYMa.mjs} +5 -5
- package/dist/{dns-firewall-BooBP9ap.mjs → dns-firewall-Bfv0S44I.mjs} +1 -1
- package/dist/{docs-C5XB7HdG.mjs → docs-bV3hPwQL.mjs} +1 -1
- package/dist/{durable-objects-CSrMQDCE.mjs → durable-objects-0JvGTV27.mjs} +1 -1
- package/dist/{email-auth-Bp1Mui-n.mjs → email-auth-PzRqG0ex.mjs} +1 -1
- package/dist/{email-routing-CVF6SwQt.mjs → email-routing-BgHL0Rbz.mjs} +4 -4
- package/dist/{email-security-mYZtazae.mjs → email-security-CSTKIecn.mjs} +1 -1
- package/dist/{email-sending-BqaKU_Xu.mjs → email-sending-BSwuAir8.mjs} +14 -14
- package/dist/field-extractors-B_lFnwaL.mjs +9 -0
- package/dist/{firewall-DgTDsYOt.mjs → firewall-BsZxVitA.mjs} +11 -11
- package/dist/{flagship-Db3PxxyZ.mjs → flagship-qBohOZaM.mjs} +1 -1
- package/dist/{fraud-BEOQczy8.mjs → fraud-vGNdrSm-.mjs} +1 -1
- package/dist/{google-tag-gateway-DjLQ9wo0.mjs → google-tag-gateway-BHdOg4VW.mjs} +1 -1
- package/dist/{healthchecks-C3ScnKss.mjs → healthchecks-DAYYLZ6u.mjs} +7 -7
- package/dist/{hostnames-DU0k-xO9.mjs → hostnames-CLlaMqHu.mjs} +1 -1
- package/dist/{hyperdrive-IpCCLCRd.mjs → hyperdrive-CXTqaIqk.mjs} +3 -3
- package/dist/{iam-96CYM8Vw.mjs → iam-Dl_n_Lqq.mjs} +1 -1
- package/dist/{images-AB9EgZgT.mjs → images-vMtXk2Rf.mjs} +1 -1
- package/dist/index.mjs +1 -1
- package/dist/{init-D2nPoW4f.mjs → init-_7djeBVw.mjs} +1 -1
- package/dist/{intel-BKb4RLvS.mjs → intel-Bq4GGXv-.mjs} +1 -1
- package/dist/{ips-z9APCV_b.mjs → ips-BcvZS46g.mjs} +1 -1
- package/dist/{k2-Bv-HiJ29.mjs → k2-DL4hrVTj.mjs} +1 -1
- package/dist/{keyless-certificates-ChgSGHq4.mjs → keyless-certificates-0pzjkZb6.mjs} +4 -4
- package/dist/{keys-BhngDsDa.mjs → keys-BSV5IXdU.mjs} +1 -1
- package/dist/{kv-CB5MQVGP.mjs → kv-BLo9wMgb.mjs} +3 -3
- package/dist/{lazy-command-CaZ1kdlW.mjs → lazy-command-CRcT6Dx-.mjs} +1 -1
- package/dist/{leaked-credential-checks-Bsi2WpSU.mjs → leaked-credential-checks-Dx4RXMyN.mjs} +3 -3
- package/dist/{load-balancers-0gXZNCeI.mjs → load-balancers-CCCWoQXv.mjs} +40 -40
- package/dist/{login-CiQGR8ha.mjs → login-DT6Q1UJw.mjs} +1 -1
- package/dist/{login-Ik98G4K6.mjs → login-Du_W6b9o.mjs} +1 -1
- package/dist/{logo-matches-DmoF5Otu.mjs → logo-matches-C-1J0Oc3.mjs} +1 -1
- package/dist/{logos-BL6ohIMH.mjs → logos-BuhvSu_H.mjs} +1 -1
- package/dist/{logpush-UVopW68t.mjs → logpush-DgZtF9vG.mjs} +6 -6
- package/dist/{logs-BVfxiEiM.mjs → logs-CaKOk-1v.mjs} +1 -1
- package/dist/{magic-cloud-networking-B5S3aM6f.mjs → magic-cloud-networking-CKxXYT8r.mjs} +1 -1
- package/dist/{magic-network-monitoring-CDSJPP47.mjs → magic-network-monitoring-BykFGQCz.mjs} +1 -1
- package/dist/{magic-transit-TcDTKM43.mjs → magic-transit-DYULsrUP.mjs} +1 -1
- package/dist/{managed-defense-C88HL0pg.mjs → managed-defense-DIb_uN25.mjs} +5 -5
- package/dist/{managed-transforms-Ja41Tahl.mjs → managed-transforms-an3wQ0DW.mjs} +1 -1
- package/dist/{matches-BL_Y-9Yq.mjs → matches-DkLSWb5X.mjs} +1 -1
- package/dist/{mcp-BWp5Q09R.mjs → mcp-BcV1XqE8.mjs} +1 -1
- package/dist/{mesh-lFPLRWhV.mjs → mesh-CSSlZ-0F.mjs} +1 -1
- package/dist/{migrate-6e5mJ79R.mjs → migrate-DerOyuv2.mjs} +1 -1
- package/dist/{monetization-BIc4Bwo2.mjs → monetization-B-nJ0SyI.mjs} +1 -1
- package/dist/{mtls-certificates-CVBw-Jli.mjs → mtls-certificates-ukwDz6Lc.mjs} +1 -1
- package/dist/{network-Wig0qbaC.mjs → network-ZzxQ_Dcz.mjs} +1 -1
- package/dist/{network-interconnects-C16z1HuQ.mjs → network-interconnects-CI9NXQpe.mjs} +1 -1
- package/dist/{o11y-Bhy4qDRm.mjs → o11y-LG6Y9LUZ.mjs} +2 -2
- package/dist/{oauth-oWaW7ICv.mjs → oauth-Bx693Af5.mjs} +1 -1
- package/dist/{oauth-CfEedDZi.mjs → oauth-CP82E1_0.mjs} +1 -1
- package/dist/{oauth-clients-eXjmK5yf.mjs → oauth-clients-BA30rTEl.mjs} +1 -1
- package/dist/{oauth-scopes-DZWn50EA.mjs → oauth-scopes-hseWES1v.mjs} +1 -1
- package/dist/open-PCXX3ZDZ-5J5IU2MX-CKla-jDt.mjs +4 -0
- package/dist/{organization-QdAQTrKa.mjs → organization-DMr_z6n4.mjs} +3 -3
- package/dist/{organizations-CgAQYdK5.mjs → organizations-CcgZPmFl.mjs} +1 -1
- package/dist/{origin-ca-certificates-BklXqp8X.mjs → origin-ca-certificates-BZxUbB5N.mjs} +1 -1
- package/dist/{origin-post-quantum-encryption-Dg16ueT4.mjs → origin-post-quantum-encryption-BhdlaolV.mjs} +1 -1
- package/dist/{origin-tls-client-auth-d8bDU5zU.mjs → origin-tls-client-auth-DzbZvtmi.mjs} +6 -6
- package/dist/{page-rules-CgMkC6YR.mjs → page-rules-DFfqfllI.mjs} +5 -5
- package/dist/{pages-CkBtOOf8.mjs → pages-BkcL5rC4.mjs} +9 -9
- package/dist/{pay-per-crawl-CnGXOWyz.mjs → pay-per-crawl-Dulm7Xy5.mjs} +1 -1
- package/dist/{pay-per-use-HbfxpATr.mjs → pay-per-use-C_HxhpM4.mjs} +1 -1
- package/dist/{pipelines-CnO9CCs0.mjs → pipelines-DUMIVwof.mjs} +1 -1
- package/dist/{precursor-Bc55XJdQ.mjs → precursor-DsGbA_YJ.mjs} +1 -1
- package/dist/{previews-C7vZrajd.mjs → previews-Cma3-M7K.mjs} +1 -1
- package/dist/{progress-D5po7ScB.mjs → progress-DaQ4MzBI.mjs} +1 -1
- package/dist/{prompt-BAJpE3jV.mjs → prompt-KWYZvJWM.mjs} +1 -1
- package/dist/{queries-BJAH4B74.mjs → queries-DoyhspQf.mjs} +1 -1
- package/dist/{queues-D4G8vvwi.mjs → queues-BPxTU2rU.mjs} +4 -4
- package/dist/{r2-CJ8rD6Jb.mjs → r2-CQt4S7o7.mjs} +4 -4
- package/dist/{radar-DgaxOdcd.mjs → radar-CALpR1vq.mjs} +1 -1
- package/dist/{raw-fetch-yY-wX5Xx.mjs → raw-fetch-Cy09TjHc.mjs} +1 -1
- package/dist/{realtime-DU09m7L7.mjs → realtime-BiHKBoI4.mjs} +6 -6
- package/dist/{registrar-Cj7OfvGs.mjs → registrar-gERQ3b85.mjs} +1 -1
- package/dist/{registrar-sandbox-CA0Mua-j.mjs → registrar-sandbox-BttFwYqE.mjs} +1 -1
- package/dist/reporting-8aRJD5HX.mjs +14 -0
- package/dist/{request-headers-D_eQn93b.mjs → request-headers-CqfJOkpO.mjs} +1 -1
- package/dist/{request-tracers-VBD4R3s3.mjs → request-tracers-DcnwQg3K.mjs} +1 -1
- package/dist/{resource-sharing-BtUF3psS.mjs → resource-sharing-uVVpMW0w.mjs} +1 -1
- package/dist/{resource-tagging--90INP8_.mjs → resource-tagging-SlsUtLsq.mjs} +1 -1
- package/dist/{rules-CcwPngVo.mjs → rules-CFOuN3t2.mjs} +10 -10
- package/dist/{rulesets-CfdruY82.mjs → rulesets-DkhV2Hny.mjs} +15 -15
- package/dist/{rum-RLkdfSL7.mjs → rum-BnMW0Tlb.mjs} +1 -1
- package/dist/run-CHNyLZLG.mjs +2 -0
- package/dist/{run-DASYqJsY.mjs → run-Clc3P2u7.mjs} +1 -1
- package/dist/{schema-flags-CShtn7ya.mjs → schema-flags-b096XMpt.mjs} +1 -1
- package/dist/{scim-BZYsTPIL.mjs → scim-tvZm6A-r.mjs} +1 -1
- package/dist/{secrets-store-C_-FkSH_.mjs → secrets-store-DuNxSh1_.mjs} +1 -1
- package/dist/{security-insights-BVBEaZmD.mjs → security-insights-C17c9ZYZ.mjs} +1 -1
- package/dist/{security-txt--IoHrHee.mjs → security-txt-D4pRk7-w.mjs} +1 -1
- package/dist/{shared-zNQNv1im.mjs → shared-zePemxHi.mjs} +1 -1
- package/dist/{smart-shield-CByC4_60.mjs → smart-shield-2egm1Vaw.mjs} +5 -5
- package/dist/{snippets-DB-jiZAV.mjs → snippets-BIcZ6vSW.mjs} +1 -1
- package/dist/{spawn-DQttFH05.mjs → spawn-BW2bJmKO.mjs} +1 -1
- package/dist/{spectrum-Bs2g1BmK.mjs → spectrum-DjDX0geK.mjs} +9 -9
- package/dist/{speed-Bq4evEnJ.mjs → speed-DiPoFJMm.mjs} +1 -1
- package/dist/{sql-XGci7hZC.mjs → sql-DLjCt_R3.mjs} +1 -1
- package/dist/{src-GiuwAT55.mjs → src-CutrsNl4.mjs} +7 -7
- package/dist/{ssl-KJTLW1NR.mjs → ssl-vNzK0c9S.mjs} +5 -5
- package/dist/{stream-BotgYspF.mjs → stream-uhn_Zsni.mjs} +8 -8
- package/dist/{submit-C5VytaHP.mjs → submit-C3suIDBX.mjs} +1 -1
- package/dist/{tags-3Hq-B9qp.mjs → tags-Dy2jG-Dt.mjs} +1 -1
- package/dist/telemetry-Bdv5LZZs.mjs +2 -0
- package/dist/{telemetry-3FJOXl_C.mjs → telemetry-DYjsavEr.mjs} +1 -1
- package/dist/{tenant-BgX5onPc.mjs → tenant-DK88yQM4.mjs} +1 -1
- package/dist/{tenant-custom-nameservers-BVG8v1Xo.mjs → tenant-custom-nameservers-BZ1JD1Yf.mjs} +2 -2
- package/dist/{tunnels-CThOI3qH.mjs → tunnels-DjbomhCa.mjs} +3 -3
- package/dist/{turnstile-BgZaUx-g.mjs → turnstile-DXrbEy2A.mjs} +1 -1
- package/dist/{update-check-jb89ih_g.mjs → update-check-BhhtSXVZ.mjs} +1 -1
- package/dist/update-check-Dld7rbLd.mjs +2 -0
- package/dist/update-check-worker.mjs +1 -1
- package/dist/{url-info-DQERN0Xq.mjs → url-info-a0mY4UsC.mjs} +1 -1
- package/dist/{url-normalization-Cb1hofqv.mjs → url-normalization-DiwpDIhc.mjs} +1 -1
- package/dist/{url-scanner-gHgx1bW7.mjs → url-scanner-D0egjBe5.mjs} +1 -1
- package/dist/{user-CdKzIuSi.mjs → user-DDH9lxf5.mjs} +58 -58
- package/dist/{values-EwA8Sx0w.mjs → values-Bfr5-bL6.mjs} +1 -1
- package/dist/{vectorize-DejgIJIv.mjs → vectorize-DaT3amFV.mjs} +1 -1
- package/dist/version-CAuKDZAG.mjs +2 -0
- package/dist/{waiting-rooms-BNR1HvAP.mjs → waiting-rooms-BGMpu9gS.mjs} +18 -18
- package/dist/{web-assets-iglnzkTV.mjs → web-assets-NqNglLSI.mjs} +1 -1
- package/dist/{web3-JBUU6IVt.mjs → web3-UnCUuIfB.mjs} +11 -11
- package/dist/{workers-CDp4kLTJ.mjs → workers-DfA9ugmb.mjs} +2 -2
- package/dist/{workers-builds-CSb9Dglt.mjs → workers-builds-Cy6fdtm5.mjs} +1 -1
- package/dist/{workers-for-platforms-D4srNZvt.mjs → workers-for-platforms-JscCHivQ.mjs} +1 -1
- package/dist/{workers-vpc-LPC8TadH.mjs → workers-vpc-FDZQBqOu.mjs} +1 -1
- package/dist/{workflows-DN_VqWJC.mjs → workflows-Dq-k81hU.mjs} +1 -1
- package/dist/wrangler-migration-R9TQ_4Qd.mjs +946 -0
- package/dist/{zaraz-DDErl5yc.mjs → zaraz-Dpr1pLDx.mjs} +1 -1
- package/dist/{zero-trust-M88XX3uD.mjs → zero-trust-CZ685QhO.mjs} +27 -27
- package/dist/{zone-BsGvedmN.mjs → zone-DcZIUTWt.mjs} +1 -1
- package/dist/{zones-l_sRKrVl.mjs → zones-BVdvYUCv.mjs} +3 -3
- package/package.json +11 -10
- package/dist/alerts-BSON-vFh.mjs +0 -2
- package/dist/audit-logs-CsfIm2QS.mjs +0 -4
- package/dist/auth-8Sm4uLGM.mjs +0 -2
- package/dist/autorag-kNrLiqDX.mjs +0 -2
- package/dist/brands-bBJgbbOH.mjs +0 -2
- package/dist/browser-extension-C1_fcw7h.mjs +0 -2
- package/dist/browser-run-CEptKZYl.mjs +0 -42
- package/dist/build-Bm6kGyzo.mjs +0 -2
- package/dist/clear-BW9vLgI3.mjs +0 -2
- package/dist/cli-R8h3OKZI.mjs +0 -6
- package/dist/connector-telemetry-events-latest-BQdOvbWh.mjs +0 -2
- package/dist/connector-telemetry-snapshots-latest-CtdN_dGu.mjs +0 -2
- package/dist/csamScanner-CHfbfeup.mjs +0 -10
- package/dist/domain-info-BkcBcyfF.mjs +0 -2
- package/dist/fieldExtractors-CAGZVmYg.mjs +0 -9
- package/dist/health-CTaCeVyC.mjs +0 -2
- package/dist/internal-BYS7hO8c.mjs +0 -2
- package/dist/live-BJE_YWE1.mjs +0 -2
- package/dist/r2-data-catalog-BRo-Rx2I.mjs +0 -2
- package/dist/rate-limit-analytics-BiRyU0Xd.mjs +0 -2
- package/dist/rate-limits-Cr2zpncO.mjs +0 -2
- package/dist/ready-B3pLxnjc.mjs +0 -2
- package/dist/recent-submissions-JLOvuZq-.mjs +0 -2
- package/dist/refute-Dp3VodMn.mjs +0 -2
- package/dist/reporting-3kDVF5c8.mjs +0 -14
- package/dist/run-CUNhH5CQ.mjs +0 -2
- package/dist/scan-logo-3Zr6CDJB.mjs +0 -2
- package/dist/scan-page-CxeudOzj.mjs +0 -2
- package/dist/search-B_P5ZTQj.mjs +0 -2
- package/dist/signed-url-D5RwvrQq.mjs +0 -2
- package/dist/submission-info-_t78q2OE.mjs +0 -2
- package/dist/telemetry-BhKfwxyh.mjs +0 -2
- package/dist/total-queries-CPrKEciQ.mjs +0 -2
- package/dist/tracked-domains-CTRItgFT.mjs +0 -2
- package/dist/update-check-Yy7Ivq2V.mjs +0 -2
- package/dist/verify-5KcvRk-q.mjs +0 -2
- package/dist/version-B6MnUIqV.mjs +0 -2
- package/dist/wrangler-migration-DxTB5yPT.mjs +0 -2
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import"./api-eMuS5GI1.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{n as t}from"./auth-
|
|
2
|
+
import"./api-eMuS5GI1.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{n as t}from"./auth-MNz2D-PD.mjs";import{i as n}from"./context-q-6bMSL-.mjs";import{t as r}from"./output-Co4xdFf6.mjs";import{t as i}from"./dry-run-C2KjGX10.mjs";import{t as a}from"./progress-DaQ4MzBI.mjs";import{t as o}from"./run-Clc3P2u7.mjs";import"./telemetry-Bdv5LZZs.mjs";import{n as s,t as c}from"./body-parser-DkHKPkJ7.mjs";import{n as l}from"./input-validation-D7z60HJH.mjs";import{a as u,n as d}from"./prompt-KWYZvJWM.mjs";var f={method:`POST`,path:t=>e`/zones/${t.zone_id}/keyless_certificates`,body:`json`};function p(e){return e.usage(`$0 keyless-certificates create
|
|
3
3
|
|
|
4
4
|
Creates a Keyless SSL configuration that allows SSL/TLS termination without exposing private keys to Cloudflare. Keys remain on your infrastructure.`).option(`bundle-method`,{type:`string`,description:`A ubiquitous bundle has the highest probability of being verified everywhere, even by clients using outdated or unusual trust stores. An optimal bundle uses the shortest chain and newest intermediates. And the force bundle verifies the chain, but does not otherwise modify it.`,choices:[`ubiquitous`,`optimal`,`force`],default:`ubiquitous`}).coerce(`bundle-method`,e=>l(e,`bundle-method`,`text`)).option(`certificate`,{type:`string`,description:`The zone's SSL certificate or SSL certificate and intermediate(s).`}).option(`host`,{type:`string`,description:`The keyless SSL name.`}).option(`name`,{type:`string`,description:`The keyless SSL name.`}).option(`port`,{type:`number`,description:`The keyless SSL port used to communicate between Cloudflare and the client's Keyless SSL server.`,default:24008}).option(`tunnel-private-ip`,{type:`string`,description:`Private IP of the Key Server Host.`}).option(`tunnel-vnet-id`,{type:`string`,description:`Cloudflare Tunnel Virtual Network ID.`}).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)`}).check(e=>{if([`tunnel-private-ip`,`tunnel-vnet-id`].some(t=>e[t]!==void 0)){let t=[`tunnel-private-ip`,`tunnel-vnet-id`].filter(t=>e[t]===void 0);if(t.length>0)throw Error(`${t.map(e=>`--`+e).join(`, `)} ${t.length===1?`is`:`are`} required when any --tunnel-* flag is set`)}return!0})}const m={command:`create`,describe:`Create Keyless SSL Configuration`,builder:p,handler:async e=>o({command:`keyless-certificates create`,classification:{safeFlags:[`bundle-method`,`dry-run`]}},e,async()=>{if(e.dryRun){i({command:`cf keyless-certificates create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/keyless_certificates`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``)},bodyKind:`json`,body:e.body===void 0?c({bundle_method:e[`bundle-method`],certificate:l(e.certificate,`certificate`,`text`),host:l(e.host,`host`,`text`),name:l(e.name,`name`,`text`),port:e.port,tunnel:{private_ip:l(e[`tunnel-private-ip`],`tunnel-private-ip`,`text`),vnet_id:l(e[`tunnel-vnet-id`],`tunnel-vnet-id`,`text`)}}):s(e.body)});return}let o=await t(e),d=await n({zone:e.zone},o,{quiet:e.quiet});if(e.zoneId=d,e.body){let t=s(e.body),n=await a(`Creating`,async()=>o.send(f,{body:t,zone_id:d}));r(n,{successLabel:`Created`});return}if(e.certificate===void 0&&(e.certificate=await u(`certificate`,`The zone's SSL certificate or SSL certificate and intermediate(s).`)),e.host===void 0&&(e.host=await u(`host`,`The keyless SSL name.`)),e.port===void 0)throw Error(`--port is required (or pass --body with this field set).`);let p=c({bundle_method:e[`bundle-method`],certificate:l(e.certificate,`certificate`,`text`),host:l(e.host,`host`,`text`),name:l(e.name,`name`,`text`),port:e.port,tunnel:{private_ip:l(e[`tunnel-private-ip`],`tunnel-private-ip`,`text`),vnet_id:l(e[`tunnel-vnet-id`],`tunnel-vnet-id`,`text`)}}),m=await a(`Creating`,async()=>o.send(f,{body:p,zone_id:d}));r(m,{successLabel:`Created`})})};var h={method:`DELETE`,path:t=>e`/zones/${t.zone_id}/keyless_certificates/${t.keyless_certificate_id}`};function g(e){return e.usage(`$0 keyless-certificates delete <keyless-certificate-id>
|
|
5
5
|
|
|
6
|
-
Removes a Keyless SSL configuration. SSL connections will no longer use the keyless server for cryptographic operations.`).positional(`keyless-certificate-id`,{type:`string`,description:`Keyless certificate 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 <keyless-certificate-id>`,describe:`Delete Keyless SSL Configuration`,builder:g,handler:async e=>o({command:`keyless-certificates delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{if(e.dryRun){i({command:`cf keyless-certificates delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/keyless_certificates/${e[`keyless-certificate-id`]==null?`<keyless-certificate-id>`:encodeURIComponent(String(e[`keyless-certificate-id`]))}`,pathParams:{"
|
|
6
|
+
Removes a Keyless SSL configuration. SSL connections will no longer use the keyless server for cryptographic operations.`).positional(`keyless-certificate-id`,{type:`string`,description:`Keyless certificate 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 <keyless-certificate-id>`,describe:`Delete Keyless SSL Configuration`,builder:g,handler:async e=>o({command:`keyless-certificates delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{if(e.dryRun){i({command:`cf keyless-certificates delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/keyless_certificates/${e[`keyless-certificate-id`]==null?`<keyless-certificate-id>`:encodeURIComponent(String(e[`keyless-certificate-id`]))}`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``),"keyless-certificate-id":String(e[`keyless-certificate-id`]??``)},bodyKind:`none`});return}let o=await t(e),s=await n({zone:e.zone},o,{quiet:e.quiet});if(e.zoneId=s,!await d({force:!!e.force})){process.stderr.write(`Aborted.
|
|
7
7
|
`);return}let c=await a(`Deleting`,async()=>o.send(h,{zone_id:s,keyless_certificate_id:e[`keyless-certificate-id`]}));r(c,{successLabel:`Deleted`})})};var v={method:`PATCH`,path:t=>e`/zones/${t.zone_id}/keyless_certificates/${t.keyless_certificate_id}`,body:`json`};function y(e){return e.usage(`$0 keyless-certificates edit <keyless-certificate-id>
|
|
8
8
|
|
|
9
|
-
This will update attributes of a Keyless SSL. Consists of one or more of the following: host,name,port.`).positional(`keyless-certificate-id`,{type:`string`,description:`Keyless certificate identifier tag.`,demandOption:!0}).option(`enabled`,{type:`boolean`,description:`Whether or not the Keyless SSL is on or off.`}).option(`host`,{type:`string`,description:`The keyless SSL name.`}).option(`name`,{type:`string`,description:`The keyless SSL name.`}).option(`port`,{type:`number`,description:`The keyless SSL port used to communicate between Cloudflare and the client's Keyless SSL server.`}).option(`tunnel-private-ip`,{type:`string`,description:`Private IP of the Key Server Host.`}).option(`tunnel-vnet-id`,{type:`string`,description:`Cloudflare Tunnel Virtual Network ID.`}).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)`}).check(e=>{if([`tunnel-private-ip`,`tunnel-vnet-id`].some(t=>e[t]!==void 0)){let t=[`tunnel-private-ip`,`tunnel-vnet-id`].filter(t=>e[t]===void 0);if(t.length>0)throw Error(`${t.map(e=>`--`+e).join(`, `)} ${t.length===1?`is`:`are`} required when any --tunnel-* flag is set`)}return!0})}const b={command:`edit <keyless-certificate-id>`,describe:`Edit Keyless SSL Configuration`,builder:y,handler:async e=>o({command:`keyless-certificates edit`,classification:{safeFlags:[`enabled`,`dry-run`]}},e,async()=>{if(e.dryRun){i({command:`cf keyless-certificates edit`,method:`PATCH`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/keyless_certificates/${e[`keyless-certificate-id`]==null?`<keyless-certificate-id>`:encodeURIComponent(String(e[`keyless-certificate-id`]))}`,pathParams:{"
|
|
9
|
+
This will update attributes of a Keyless SSL. Consists of one or more of the following: host,name,port.`).positional(`keyless-certificate-id`,{type:`string`,description:`Keyless certificate identifier tag.`,demandOption:!0}).option(`enabled`,{type:`boolean`,description:`Whether or not the Keyless SSL is on or off.`}).option(`host`,{type:`string`,description:`The keyless SSL name.`}).option(`name`,{type:`string`,description:`The keyless SSL name.`}).option(`port`,{type:`number`,description:`The keyless SSL port used to communicate between Cloudflare and the client's Keyless SSL server.`}).option(`tunnel-private-ip`,{type:`string`,description:`Private IP of the Key Server Host.`}).option(`tunnel-vnet-id`,{type:`string`,description:`Cloudflare Tunnel Virtual Network ID.`}).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)`}).check(e=>{if([`tunnel-private-ip`,`tunnel-vnet-id`].some(t=>e[t]!==void 0)){let t=[`tunnel-private-ip`,`tunnel-vnet-id`].filter(t=>e[t]===void 0);if(t.length>0)throw Error(`${t.map(e=>`--`+e).join(`, `)} ${t.length===1?`is`:`are`} required when any --tunnel-* flag is set`)}return!0})}const b={command:`edit <keyless-certificate-id>`,describe:`Edit Keyless SSL Configuration`,builder:y,handler:async e=>o({command:`keyless-certificates edit`,classification:{safeFlags:[`enabled`,`dry-run`]}},e,async()=>{if(e.dryRun){i({command:`cf keyless-certificates edit`,method:`PATCH`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/keyless_certificates/${e[`keyless-certificate-id`]==null?`<keyless-certificate-id>`:encodeURIComponent(String(e[`keyless-certificate-id`]))}`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``),"keyless-certificate-id":String(e[`keyless-certificate-id`]??``)},bodyKind:`json`,body:e.body===void 0?c({enabled:e.enabled,host:l(e.host,`host`,`text`),name:l(e.name,`name`,`text`),port:e.port,tunnel:{private_ip:l(e[`tunnel-private-ip`],`tunnel-private-ip`,`text`),vnet_id:l(e[`tunnel-vnet-id`],`tunnel-vnet-id`,`text`)}}):s(e.body)});return}let o=await t(e),u=await n({zone:e.zone},o,{quiet:e.quiet});if(e.zoneId=u,e.body){let t=s(e.body),n=await a(`Updating`,async()=>o.send(v,{body:t,zone_id:u,keyless_certificate_id:e[`keyless-certificate-id`]}));r(n,{successLabel:`Updated`});return}let d=c({enabled:e.enabled,host:l(e.host,`host`,`text`),name:l(e.name,`name`,`text`),port:e.port,tunnel:{private_ip:l(e[`tunnel-private-ip`],`tunnel-private-ip`,`text`),vnet_id:l(e[`tunnel-vnet-id`],`tunnel-vnet-id`,`text`)}}),f=await a(`Updating`,async()=>o.send(v,{body:d,zone_id:u,keyless_certificate_id:e[`keyless-certificate-id`]}));r(f,{successLabel:`Updated`})})};var x={method:`GET`,path:t=>e`/zones/${t.zone_id}/keyless_certificates/${t.keyless_certificate_id}`};function S(e){return e.usage(`$0 keyless-certificates get <keyless-certificate-id>
|
|
10
10
|
|
|
11
|
-
Get details for one Keyless SSL configuration.`).positional(`keyless-certificate-id`,{type:`string`,description:`Keyless certificate identifier tag.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const C={command:`get <keyless-certificate-id>`,describe:`Get Keyless SSL Configuration`,builder:S,handler:async e=>o({command:`keyless-certificates get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){i({command:`cf keyless-certificates get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/keyless_certificates/${e[`keyless-certificate-id`]==null?`<keyless-certificate-id>`:encodeURIComponent(String(e[`keyless-certificate-id`]))}`,pathParams:{"
|
|
11
|
+
Get details for one Keyless SSL configuration.`).positional(`keyless-certificate-id`,{type:`string`,description:`Keyless certificate identifier tag.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const C={command:`get <keyless-certificate-id>`,describe:`Get Keyless SSL Configuration`,builder:S,handler:async e=>o({command:`keyless-certificates get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){i({command:`cf keyless-certificates get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/keyless_certificates/${e[`keyless-certificate-id`]==null?`<keyless-certificate-id>`:encodeURIComponent(String(e[`keyless-certificate-id`]))}`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``),"keyless-certificate-id":String(e[`keyless-certificate-id`]??``)},bodyKind:`none`});return}let o=await t(e),s=await n({zone:e.zone},o,{quiet:e.quiet});e.zoneId=s;let c=await a(`Loading`,async()=>o.send(x,{zone_id:s,keyless_certificate_id:e[`keyless-certificate-id`]}));r(c,{successLabel:`Loaded`})})};var w={method:`GET`,path:t=>e`/zones/${t.zone_id}/keyless_certificates`};function T(e){return e.usage(`$0 keyless-certificates list
|
|
12
12
|
|
|
13
13
|
List all Keyless SSL configurations for a given zone.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const E={command:`list`,describe:`List Keyless SSL Configurations`,builder:T,handler:async e=>o({command:`keyless-certificates list`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){i({command:`cf keyless-certificates list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/keyless_certificates`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``)},bodyKind:`none`});return}let o=await t(e),s=await n({zone:e.zone},o,{quiet:e.quiet});e.zoneId=s;let c=await a(`Loading`,async()=>o.send(w,{zone_id:s}));r(c,{successLabel:`Loaded`})})},D={command:`keyless-certificates`,describe:`keyless-certificates`,builder:e=>e.command(m).command(_).command(b).command(C).command(E).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};export{D as default};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import"./api-eMuS5GI1.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{t}from"./local-Dil4fTWX.mjs";import{n}from"./auth-
|
|
2
|
+
import"./api-eMuS5GI1.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{t}from"./local-Dil4fTWX.mjs";import{n}from"./auth-MNz2D-PD.mjs";import{a as r,t as i}from"./context-q-6bMSL-.mjs";import{t as a}from"./output-Co4xdFf6.mjs";import{t as o}from"./dry-run-C2KjGX10.mjs";import{t as s}from"./progress-DaQ4MzBI.mjs";import{t as c}from"./run-Clc3P2u7.mjs";import"./telemetry-Bdv5LZZs.mjs";var l={method:`GET`,path:t=>e`/accounts/${t.account_id}/tags/keys`,query:[`cursor`]};function u(e){return e.usage(`$0 keys list
|
|
3
3
|
|
|
4
4
|
Lists all distinct tag keys used across resources in an account.`).option(`cursor`,{type:`string`,description:`Cursor for pagination.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const d={command:`list`,describe:`List tag keys`,builder:u,handler:async e=>c({command:`keys list`,classification:{safeFlags:[`dry-run`]}},e,async()=>{let c={cursor:e.cursor};if(e.dryRun){let e=await r();o({command:`cf keys list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}/tags/keys`,pathParams:{},query:c,bodyKind:`none`});return}let u=await n(e),d=e.local?t:await i();e.accountId=d;let f=await s(`Loading`,async()=>u.send(l,{account_id:d,...c}));a(f,{successLabel:`Loaded`})})},f={command:`keys`,describe:`keys`,builder:e=>e.command(d).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};export{f as default};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import"./api-eMuS5GI1.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{t}from"./local-Dil4fTWX.mjs";import{i as n,n as r}from"./auth-
|
|
2
|
+
import"./api-eMuS5GI1.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{t}from"./local-Dil4fTWX.mjs";import{i as n,n as r}from"./auth-MNz2D-PD.mjs";import{a as i,t as a}from"./context-q-6bMSL-.mjs";import{t as o}from"./output-Co4xdFf6.mjs";import{t as s}from"./dry-run-C2KjGX10.mjs";import{t as c}from"./progress-DaQ4MzBI.mjs";import{t as l}from"./run-Clc3P2u7.mjs";import"./telemetry-Bdv5LZZs.mjs";import{n as u,t as d}from"./body-parser-DkHKPkJ7.mjs";import{n as f,t as p}from"./input-validation-D7z60HJH.mjs";import{a as m,n as h}from"./prompt-KWYZvJWM.mjs";import{n as g,t as _}from"./raw-fetch-Cy09TjHc.mjs";function v(e){return e.usage(`$0 kv bulk delete <namespace-id>
|
|
3
3
|
|
|
4
4
|
Deletes up to 10,000 key-value pairs from the specified Workers KV namespace. Send a JSON array of the key names to delete. The result reports the number of successful deletions and any keys that failed and should be retried.`).positional(`namespace-id`,{type:`string`,description:`ID of the Workers KV namespace.`,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}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const y={command:`delete <namespace-id>`,describe:`Delete multiple key-value pairs`,builder:v,handler:async e=>l({command:`kv bulk delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{if(e.dryRun){let t=await i();s({command:`cf kv bulk delete`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/storage/kv/namespaces/${e[`namespace-id`]==null?`<namespace-id>`:encodeURIComponent(String(e[`namespace-id`]))}/bulk/delete`,pathParams:{"namespace-id":String(e[`namespace-id`]??``)},bodyKind:`json`,body:e.body===void 0?void 0:u(e.body)});return}let l=await r(e),d=e.local?t:await a();if(e.accountId=d,!await h({force:!!e.force,message:`This operation deletes the specified keys and their values from the Workers KV namespace.`})){process.stderr.write(`Aborted.
|
|
5
|
-
`);return}if(e.body){let t=u(e.body);if(Array.isArray(t)&&t.length>1e4){let r=Math.ceil(t.length/1e4),i=null;for(let a=0;a<t.length;a+=1e4){let o=t.slice(a,a+1e4),s=Math.floor(a/1e4)+1;i=await c(`Deleting: batch ${s}/${r}`,async()=>n(l,`POST`,`/accounts/${d}/storage/kv/namespaces/${encodeURIComponent(String(e[`namespace-id`]))}/bulk/delete`,{body:o}))}o(i,{successLabel:`Deleted`});return}let r=await c(`Deleting`,async()=>n(l,`POST`,`/accounts/${d}/storage/kv/namespaces/${encodeURIComponent(String(e[`namespace-id`]))}/bulk/delete`,{body:t}));o(r,{successLabel:`Deleted`});return}if(e.body===void 0)throw Error(`--body is required for this command. Pass --body '<json>' or --body @path/to/file.json.`)})};var b={method:`POST`,path:t=>e`/accounts/${t.account_id}/storage/kv/namespaces/${t.namespace_id}/bulk/get`,body:`json`};function x(e){return e.usage("$0 kv bulk get <namespace-id>\n\nRetrieves the text-based values of up to 100 keys from the specified Workers KV namespace. The result maps each requested key to its value. Set `type` to `json` to parse JSON values instead of returning strings, and set `withMetadata` to `true` to include metadata with each value. Binary values are not supported by this operation.").positional(`namespace-id`,{type:`string`,description:`ID of the Workers KV namespace.`,demandOption:!0}).option(`keys`,{type:`string`,array:!0,description:`Array of keys to retrieve (maximum of 100).`}).option(`type`,{type:`string`,description:"Return values as strings with `text`, or parse stored JSON values with `json`.",choices:[`text`,`json`],default:`text`}).coerce(`type`,e=>f(e,`type`,`text`)).option(`with-metadata`,{type:`boolean`,description:`Whether to include metadata in the response.`,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 S={command:`get <namespace-id>`,describe:`Get multiple key-value pairs`,builder:x,handler:async e=>l({command:`kv bulk get`,classification:{safeFlags:[`type`,`with-metadata`,`dry-run`]}},e,async()=>{if(e.dryRun){let t=await i();s({command:`cf kv bulk get`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/storage/kv/namespaces/${e[`namespace-id`]==null?`<namespace-id>`:encodeURIComponent(String(e[`namespace-id`]))}/bulk/get`,pathParams:{"namespace-id":String(e[`namespace-id`]??``)},bodyKind:`json`,body:e.body===void 0?d({keys:e.keys,type:e.type,withMetadata:e[`with-metadata`]}):u(e.body)});return}let n=await r(e),l=e.local?t:await a();if(e.accountId=l,e.body){let t=u(e.body),r=await c(`Creating`,async()=>n.send(b,{body:t,account_id:l,namespace_id:e[`namespace-id`]}));o(r,{successLabel:`Created`});return}if(e.keys===void 0)throw Error(`--keys is required (or pass --body with this field set).`);let f=d({keys:e.keys,type:e.type,withMetadata:e[`with-metadata`]}),p=await c(`Creating`,async()=>n.send(b,{body:f,account_id:l,namespace_id:e[`namespace-id`]}));o(p,{successLabel:`Created`})})};function C(e){return e.usage("$0 kv bulk put <namespace-id>\n\nWrites up to 10,000 key-value pairs to the specified Workers KV namespace from a JSON array, with optional metadata and expiration settings for each pair. Existing values and expirations are overwritten. If neither `expiration` nor `expiration_ttl` is specified, the key-value pair will not expire. If both are set, `expiration_ttl` takes precedence. The entire request must be 100 megabytes or less. The result reports the number of successful writes and any keys that failed and should be retried.").positional(`namespace-id`,{type:`string`,description:`ID of the Workers KV namespace.`,demandOption:!0}).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 w={command:`put <namespace-id>`,describe:`Write multiple key-value pairs`,builder:C,handler:async e=>l({command:`kv bulk put`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await i();s({command:`cf kv bulk put`,method:`PUT`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/storage/kv/namespaces/${e[`namespace-id`]==null?`<namespace-id>`:encodeURIComponent(String(e[`namespace-id`]))}/bulk`,pathParams:{"namespace-id":String(e[`namespace-id`]??``)},bodyKind:`json`,body:e.body===void 0?void 0:u(e.body)});return}let l=await r(e),d=e.local?t:await a();if(e.accountId=d,e.body){let t=u(e.body);if(Array.isArray(t)&&t.length>1e4){let r=Math.ceil(t.length/1e4),i=null;for(let a=0;a<t.length;a+=1e4){let o=t.slice(a,a+1e4),s=Math.floor(a/1e4)+1;i=await c(`Updating: batch ${s}/${r}`,async()=>n(l,`PUT`,`/accounts/${d}/storage/kv/namespaces/${encodeURIComponent(String(e[`namespace-id`]))}/bulk`,{body:o}))}o(i,{successLabel:`Updated`});return}let r=await c(`Updating`,async()=>n(l,`PUT`,`/accounts/${d}/storage/kv/namespaces/${encodeURIComponent(String(e[`namespace-id`]))}/bulk`,{body:t}));o(r,{successLabel:`Updated`});return}if(e.body===void 0)throw Error(`--body is required for this command. Pass --body '<json>' or --body @path/to/file.json.`)})},T={command:`bulk`,describe:`Operations for bulk`,builder:e=>e.command(y).command(S).command(w).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var E={method:`DELETE`,path:t=>e`/accounts/${t.account_id}/storage/kv/namespaces/${t.namespace_id}/values/${t.key_name}`};function D(e){return e.usage("$0 kv keys delete <key-name>\n\nDeletes the specified key and its value from the Workers KV namespace. Use URL-encoding for special characters (for example, `:`, `!`, `%`) in the key name when constructing the request URL.").positional(`key-name`,{type:`string`,description:`A key's name. The name may be at most 512 bytes. All printable, non-whitespace characters are valid. Use percent-encoding to define key names as part of a URL.`,demandOption:!0}).option(`namespace-id`,{type:`string`,description:`ID of the Workers KV namespace.`,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 O={command:`delete <key-name>`,describe:`Delete a key-value pair`,builder:D,handler:async e=>l({command:`kv keys delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{if(e.dryRun){let t=await i();s({command:`cf kv keys delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/storage/kv/namespaces/${e[`namespace-id`]==null?`<namespace-id>`:encodeURIComponent(String(e[`namespace-id`]))}/values/${e[`key-name`]==null?`<key-name>`:encodeURIComponent(String(e[`key-name`]))}`,pathParams:{"
|
|
6
|
-
`);return}let u=await c(`Deleting`,async()=>n.send(E,{account_id:l,namespace_id:e[`namespace-id`],key_name:e[`key-name`]}));o(u,{successLabel:`Deleted`})})};function k(e){return e.usage("$0 kv keys get <key-name>\n\nReturns the value stored under the specified key in the Workers KV namespace as raw bytes. Use URL-encoding for special characters (for example, `:`, `!`, `%`) in the key name when constructing the request URL. If the key-value pair expires, the `expiration` response header contains its expiration time in seconds since the UNIX epoch.").positional(`key-name`,{type:`string`,description:`A key's name. The name may be at most 512 bytes. All printable, non-whitespace characters are valid. Use percent-encoding to define key names as part of a URL.`,demandOption:!0}).option(`namespace-id`,{type:`string`,description:`ID of the Workers KV namespace.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`text`,{type:`boolean`,description:`Decode the response body as UTF-8 text instead of writing raw bytes`,default:!1})}const A={command:`get <key-name>`,describe:`Get a key's value`,builder:k,handler:async e=>l({command:`kv keys get`,classification:{safeFlags:[`dry-run`,`text`]}},e,async()=>{if(e.dryRun){let t=await i();s({command:`cf kv keys get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/storage/kv/namespaces/${e[`namespace-id`]==null?`<namespace-id>`:encodeURIComponent(String(e[`namespace-id`]))}/values/${e[`key-name`]==null?`<key-name>`:encodeURIComponent(String(e[`key-name`]))}`,pathParams:{"key-name":String(e[`key-name`]??``),"namespace-id":String(e[`namespace-id`]??``)},bodyKind:`none`});return}await r(e);let n=e.local?t:await a();e.accountId=n;let o=await c(`Loading`,async()=>_(`/accounts/${n}/storage/kv/namespaces/${encodeURIComponent(String(e[`namespace-id`]))}/values/${encodeURIComponent(String(e[`key-name`]))}`,{method:`GET`,local:e.local===!0,persistTo:e.persistTo}));g(e.text===!0?o.toString(`utf-8`):o)})};var j={method:`GET`,path:t=>e`/accounts/${t.account_id}/storage/kv/namespaces/${t.namespace_id}/keys`,query:[`limit`,`prefix`,`cursor`]};function M(e){return e.usage("$0 kv keys list\n\nLists key names in the specified Workers KV namespace, with expiration times and metadata when present. Use `prefix` to filter names and `cursor` to request the next page. Values are not included.").option(`namespace-id`,{type:`string`,description:`ID of the Workers KV namespace.`,demandOption:!0}).option(`limit`,{type:`number`,description:"Maximum number of keys to return in one response. Pass `result_info.cursor` from the response as `cursor` to request the next page."}).option(`prefix`,{type:`string`,description:`Filters returned keys by a name prefix. Exact matches and any key names that begin with the prefix will be returned.`}).option(`cursor`,{type:`string`,description:"Opaque pagination token from `result_info.cursor` in the previous response. Pass it unchanged to request the next page of keys."}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const N={command:`list`,describe:`List keys in a namespace`,builder:M,handler:async e=>l({command:`kv keys list`,classification:{safeFlags:[`dry-run`]}},e,async()=>{let n={limit:e.limit,prefix:e.prefix,cursor:e.cursor};if(e.dryRun){let t=await i();s({command:`cf kv keys list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/storage/kv/namespaces/${e[`namespace-id`]==null?`<namespace-id>`:encodeURIComponent(String(e[`namespace-id`]))}/keys`,pathParams:{"namespace-id":String(e[`namespace-id`]??``)},query:n,bodyKind:`none`});return}let l=await r(e),u=e.local?t:await a();e.accountId=u;let d=await c(`Loading`,async()=>l.send(j,{account_id:u,namespace_id:e[`namespace-id`],...n}));o(d,{successLabel:`Loaded`})})};function P(e){return e.usage("$0 kv keys put <key-name>\n\nWrites a value under the specified key in the Workers KV namespace, creating the key-value pair or replacing its existing value, expiration, and metadata. Send the value as an `application/octet-stream` request body, or use `multipart/form-data` with a `value` part and an optional JSON `metadata` part. Use URL-encoding for special characters (for example, `:`, `!`, `%`) in the key name when constructing the request URL. If neither `expiration` nor `expiration_ttl` is specified, the key-value pair will not expire. If both are set, `expiration_ttl` takes precedence.").positional(`key-name`,{type:`string`,description:`A key's name. The name may be at most 512 bytes. All printable, non-whitespace characters are valid. Use percent-encoding to define key names as part of a URL.`,demandOption:!0}).option(`namespace-id`,{type:`string`,description:`ID of the Workers KV namespace.`,demandOption:!0}).option(`expiration`,{type:`number`,description:`Expires the key at a certain time, measured in number of seconds since the UNIX epoch.`}).option(`expiration-ttl`,{type:`number`,description:"Number of seconds until the key expires. Must be at least 60. Takes precedence over `expiration` when both are specified."}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`A byte sequence to be stored, up to 25 MiB in length.`}).option(`file`,{type:`string`,description:`Path to a file to upload as the request body`}).option(`metadata`,{type:`string`,description:`Associates arbitrary JSON data with a key/value pair.`})}const F={command:`put <key-name>`,describe:`Write a key-value pair with optional metadata`,builder:P,handler:async e=>l({command:`kv keys put`,classification:{safeFlags:[`dry-run`]}},e,async()=>{let l={expiration:e.expiration,expiration_ttl:e[`expiration-ttl`]};if(e.dryRun){let t=await i();s({command:`cf kv keys put`,method:`PUT`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/storage/kv/namespaces/${e[`namespace-id`]==null?`<namespace-id>`:encodeURIComponent(String(e[`namespace-id`]))}/values/${e[`key-name`]==null?`<key-name>`:encodeURIComponent(String(e[`key-name`]))}`,pathParams:{"key-name":String(e[`key-name`]??``),"namespace-id":String(e[`namespace-id`]??``)},query:l,bodyKind:e.metadata===void 0?`octet-stream`:`multipart`,body:e.metadata===void 0?e.body:{body:e.body,file:e.file,metadata:e.metadata}});return}let u=await r(e),d=e.local?t:await a();if(e.accountId=d,e.metadata!==void 0){let t=new FormData;if(e.file){let n=p(e.file);t.append(`value`,new Blob([n]),e.file.split(/[\\/]/).filter(Boolean).pop())}else e.body!==void 0&&t.append(`value`,e.body);e.metadata!==void 0&&t.append(`metadata`,String(f(e.metadata,`metadata`,`text`)??``));let r=await c(`Updating`,async()=>n(u,`PUT`,`/accounts/${d}/storage/kv/namespaces/${encodeURIComponent(String(e[`namespace-id`]))}/values/${encodeURIComponent(String(e[`key-name`]))}`,{body:t}));o(r,{successLabel:`Updated`});return}if(e.file){let t=p(e.file),r=await c(`Updating`,async()=>n(u,`PUT`,`/accounts/${d}/storage/kv/namespaces/${encodeURIComponent(String(e[`namespace-id`]))}/values/${encodeURIComponent(String(e[`key-name`]))}`,{body:t,headers:{"Content-Type":`application/octet-stream`}}));o(r,{successLabel:`Updated`});return}if(e.body){let t=f(e.body,`body`,`binary`),r=new URLSearchParams(Object.entries(l).filter(([,e])=>e!==void 0).map(([e,t])=>[e,String(t)])).toString(),i=await c(`Updating`,async()=>n(u,`PUT`,`/accounts/${d}/storage/kv/namespaces/${encodeURIComponent(String(e[`namespace-id`]))}/values/${encodeURIComponent(String(e[`key-name`]))}${r?`?`+r:``}`,{body:t,headers:{"Content-Type":`application/octet-stream`}}));o(i,{successLabel:`Updated`});return}if(e.body===void 0)throw Error(`--body is required for this command. Pass --body '<json>' or --body @path/to/file.json.`)})},ee={command:`keys`,describe:`Operations for keys`,builder:e=>e.command(O).command(A).command(N).command(F).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var I={method:`GET`,path:t=>e`/accounts/${t.account_id}/storage/kv/namespaces/${t.namespace_id}/metadata/${t.key_name}`};function L(e){return e.usage("$0 kv metadata get <key-name>\n\nReturns the JSON metadata associated with the specified key in the Workers KV namespace, without retrieving its value. Use URL-encoding for special characters (for example, `:`, `!`, `%`) in the key name when constructing the request URL.").positional(`key-name`,{type:`string`,description:`A key's name. The name may be at most 512 bytes. All printable, non-whitespace characters are valid. Use percent-encoding to define key names as part of a URL.`,demandOption:!0}).option(`namespace-id`,{type:`string`,description:`ID of the Workers KV namespace.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const R={command:`get <key-name>`,describe:`Get a key's metadata`,builder:L,handler:async e=>l({command:`kv metadata get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await i();s({command:`cf kv metadata get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/storage/kv/namespaces/${e[`namespace-id`]==null?`<namespace-id>`:encodeURIComponent(String(e[`namespace-id`]))}/metadata/${e[`key-name`]==null?`<key-name>`:encodeURIComponent(String(e[`key-name`]))}`,pathParams:{"key-name":String(e[`key-name`]??``),"namespace-id":String(e[`namespace-id`]??``)},bodyKind:`none`});return}let n=await r(e),l=e.local?t:await a();e.accountId=l;let u=await c(`Loading`,async()=>n.send(I,{account_id:l,namespace_id:e[`namespace-id`],key_name:e[`key-name`]}));o(u,{successLabel:`Loaded`})})},z={command:`metadata`,describe:`Operations for metadata`,builder:e=>e.command(R).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var B={method:`POST`,path:t=>e`/accounts/${t.account_id}/storage/kv/namespaces`,body:`json`};function V(e){return e.usage(`$0 kv namespaces create
|
|
5
|
+
`);return}if(e.body){let t=u(e.body);if(Array.isArray(t)&&t.length>1e4){let r=Math.ceil(t.length/1e4),i=null;for(let a=0;a<t.length;a+=1e4){let o=t.slice(a,a+1e4),s=Math.floor(a/1e4)+1;i=await c(`Deleting: batch ${s}/${r}`,async()=>n(l,`POST`,`/accounts/${d}/storage/kv/namespaces/${encodeURIComponent(String(e[`namespace-id`]))}/bulk/delete`,{body:o}))}o(i,{successLabel:`Deleted`});return}let r=await c(`Deleting`,async()=>n(l,`POST`,`/accounts/${d}/storage/kv/namespaces/${encodeURIComponent(String(e[`namespace-id`]))}/bulk/delete`,{body:t}));o(r,{successLabel:`Deleted`});return}if(e.body===void 0)throw Error(`--body is required for this command. Pass --body '<json>' or --body @path/to/file.json.`)})};var b={method:`POST`,path:t=>e`/accounts/${t.account_id}/storage/kv/namespaces/${t.namespace_id}/bulk/get`,body:`json`};function x(e){return e.usage("$0 kv bulk get <namespace-id>\n\nRetrieves the text-based values of up to 100 keys from the specified Workers KV namespace. The result maps each requested key to its value. Set `type` to `json` to parse JSON values instead of returning strings, and set `withMetadata` to `true` to include metadata with each value. Binary values are not supported by this operation.").positional(`namespace-id`,{type:`string`,description:`ID of the Workers KV namespace.`,demandOption:!0}).option(`keys`,{type:`string`,array:!0,description:`Array of keys to retrieve (maximum of 100).`}).option(`type`,{type:`string`,description:"Return values as strings with `text`, or parse stored JSON values with `json`.",choices:[`text`,`json`],default:`text`}).coerce(`type`,e=>f(e,`type`,`text`)).option(`with-metadata`,{type:`boolean`,description:`Whether to include metadata in the response.`,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 S={command:`get <namespace-id>`,describe:`Get multiple key-value pairs`,builder:x,handler:async e=>l({command:`kv bulk get`,classification:{safeFlags:[`type`,`with-metadata`,`dry-run`]}},e,async()=>{if(e.dryRun){let t=await i();s({command:`cf kv bulk get`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/storage/kv/namespaces/${e[`namespace-id`]==null?`<namespace-id>`:encodeURIComponent(String(e[`namespace-id`]))}/bulk/get`,pathParams:{"namespace-id":String(e[`namespace-id`]??``)},bodyKind:`json`,body:e.body===void 0?d({keys:e.keys,type:e.type,withMetadata:e[`with-metadata`]}):u(e.body)});return}let n=await r(e),l=e.local?t:await a();if(e.accountId=l,e.body){let t=u(e.body),r=await c(`Creating`,async()=>n.send(b,{body:t,account_id:l,namespace_id:e[`namespace-id`]}));o(r,{successLabel:`Created`});return}if(e.keys===void 0)throw Error(`--keys is required (or pass --body with this field set).`);let f=d({keys:e.keys,type:e.type,withMetadata:e[`with-metadata`]}),p=await c(`Creating`,async()=>n.send(b,{body:f,account_id:l,namespace_id:e[`namespace-id`]}));o(p,{successLabel:`Created`})})};function C(e){return e.usage("$0 kv bulk put <namespace-id>\n\nWrites up to 10,000 key-value pairs to the specified Workers KV namespace from a JSON array, with optional metadata and expiration settings for each pair. Existing values and expirations are overwritten. If neither `expiration` nor `expiration_ttl` is specified, the key-value pair will not expire. If both are set, `expiration_ttl` takes precedence. The entire request must be 100 megabytes or less. The result reports the number of successful writes and any keys that failed and should be retried.").positional(`namespace-id`,{type:`string`,description:`ID of the Workers KV namespace.`,demandOption:!0}).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 w={command:`put <namespace-id>`,describe:`Write multiple key-value pairs`,builder:C,handler:async e=>l({command:`kv bulk put`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await i();s({command:`cf kv bulk put`,method:`PUT`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/storage/kv/namespaces/${e[`namespace-id`]==null?`<namespace-id>`:encodeURIComponent(String(e[`namespace-id`]))}/bulk`,pathParams:{"namespace-id":String(e[`namespace-id`]??``)},bodyKind:`json`,body:e.body===void 0?void 0:u(e.body)});return}let l=await r(e),d=e.local?t:await a();if(e.accountId=d,e.body){let t=u(e.body);if(Array.isArray(t)&&t.length>1e4){let r=Math.ceil(t.length/1e4),i=null;for(let a=0;a<t.length;a+=1e4){let o=t.slice(a,a+1e4),s=Math.floor(a/1e4)+1;i=await c(`Updating: batch ${s}/${r}`,async()=>n(l,`PUT`,`/accounts/${d}/storage/kv/namespaces/${encodeURIComponent(String(e[`namespace-id`]))}/bulk`,{body:o}))}o(i,{successLabel:`Updated`});return}let r=await c(`Updating`,async()=>n(l,`PUT`,`/accounts/${d}/storage/kv/namespaces/${encodeURIComponent(String(e[`namespace-id`]))}/bulk`,{body:t}));o(r,{successLabel:`Updated`});return}if(e.body===void 0)throw Error(`--body is required for this command. Pass --body '<json>' or --body @path/to/file.json.`)})},T={command:`bulk`,describe:`Operations for bulk`,builder:e=>e.command(y).command(S).command(w).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var E={method:`DELETE`,path:t=>e`/accounts/${t.account_id}/storage/kv/namespaces/${t.namespace_id}/values/${t.key_name}`};function D(e){return e.usage("$0 kv keys delete <key-name>\n\nDeletes the specified key and its value from the Workers KV namespace. Use URL-encoding for special characters (for example, `:`, `!`, `%`) in the key name when constructing the request URL.").positional(`key-name`,{type:`string`,description:`A key's name. The name may be at most 512 bytes. All printable, non-whitespace characters are valid. Use percent-encoding to define key names as part of a URL.`,demandOption:!0}).option(`namespace-id`,{type:`string`,description:`ID of the Workers KV namespace.`,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 O={command:`delete <key-name>`,describe:`Delete a key-value pair`,builder:D,handler:async e=>l({command:`kv keys delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{if(e.dryRun){let t=await i();s({command:`cf kv keys delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/storage/kv/namespaces/${e[`namespace-id`]==null?`<namespace-id>`:encodeURIComponent(String(e[`namespace-id`]))}/values/${e[`key-name`]==null?`<key-name>`:encodeURIComponent(String(e[`key-name`]))}`,pathParams:{"namespace-id":String(e[`namespace-id`]??``),"key-name":String(e[`key-name`]??``)},bodyKind:`none`});return}let n=await r(e),l=e.local?t:await a();if(e.accountId=l,!await h({force:!!e.force,message:`This operation deletes the selected key-value pair from the Workers KV namespace.`})){process.stderr.write(`Aborted.
|
|
6
|
+
`);return}let u=await c(`Deleting`,async()=>n.send(E,{account_id:l,namespace_id:e[`namespace-id`],key_name:e[`key-name`]}));o(u,{successLabel:`Deleted`})})};function k(e){return e.usage("$0 kv keys get <key-name>\n\nReturns the value stored under the specified key in the Workers KV namespace as raw bytes. Use URL-encoding for special characters (for example, `:`, `!`, `%`) in the key name when constructing the request URL. If the key-value pair expires, the `expiration` response header contains its expiration time in seconds since the UNIX epoch.").positional(`key-name`,{type:`string`,description:`A key's name. The name may be at most 512 bytes. All printable, non-whitespace characters are valid. Use percent-encoding to define key names as part of a URL.`,demandOption:!0}).option(`namespace-id`,{type:`string`,description:`ID of the Workers KV namespace.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`text`,{type:`boolean`,description:`Decode the response body as UTF-8 text instead of writing raw bytes`,default:!1})}const A={command:`get <key-name>`,describe:`Get a key's value`,builder:k,handler:async e=>l({command:`kv keys get`,classification:{safeFlags:[`dry-run`,`text`]}},e,async()=>{if(e.dryRun){let t=await i();s({command:`cf kv keys get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/storage/kv/namespaces/${e[`namespace-id`]==null?`<namespace-id>`:encodeURIComponent(String(e[`namespace-id`]))}/values/${e[`key-name`]==null?`<key-name>`:encodeURIComponent(String(e[`key-name`]))}`,pathParams:{"namespace-id":String(e[`namespace-id`]??``),"key-name":String(e[`key-name`]??``)},bodyKind:`none`});return}await r(e);let n=e.local?t:await a();e.accountId=n;let o=await c(`Loading`,async()=>_(`/accounts/${n}/storage/kv/namespaces/${encodeURIComponent(String(e[`namespace-id`]))}/values/${encodeURIComponent(String(e[`key-name`]))}`,{method:`GET`,local:e.local===!0,persistTo:e.persistTo}));g(e.text===!0?o.toString(`utf-8`):o)})};var j={method:`GET`,path:t=>e`/accounts/${t.account_id}/storage/kv/namespaces/${t.namespace_id}/keys`,query:[`limit`,`prefix`,`cursor`]};function M(e){return e.usage("$0 kv keys list\n\nLists key names in the specified Workers KV namespace, with expiration times and metadata when present. Use `prefix` to filter names and `cursor` to request the next page. Values are not included.").option(`namespace-id`,{type:`string`,description:`ID of the Workers KV namespace.`,demandOption:!0}).option(`limit`,{type:`number`,description:"Maximum number of keys to return in one response. Pass `result_info.cursor` from the response as `cursor` to request the next page."}).option(`prefix`,{type:`string`,description:`Filters returned keys by a name prefix. Exact matches and any key names that begin with the prefix will be returned.`}).option(`cursor`,{type:`string`,description:"Opaque pagination token from `result_info.cursor` in the previous response. Pass it unchanged to request the next page of keys."}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const N={command:`list`,describe:`List keys in a namespace`,builder:M,handler:async e=>l({command:`kv keys list`,classification:{safeFlags:[`dry-run`]}},e,async()=>{let n={limit:e.limit,prefix:e.prefix,cursor:e.cursor};if(e.dryRun){let t=await i();s({command:`cf kv keys list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/storage/kv/namespaces/${e[`namespace-id`]==null?`<namespace-id>`:encodeURIComponent(String(e[`namespace-id`]))}/keys`,pathParams:{"namespace-id":String(e[`namespace-id`]??``)},query:n,bodyKind:`none`});return}let l=await r(e),u=e.local?t:await a();e.accountId=u;let d=await c(`Loading`,async()=>l.send(j,{account_id:u,namespace_id:e[`namespace-id`],...n}));o(d,{successLabel:`Loaded`})})};function P(e){return e.usage("$0 kv keys put <key-name>\n\nWrites a value under the specified key in the Workers KV namespace, creating the key-value pair or replacing its existing value, expiration, and metadata. Send the value as an `application/octet-stream` request body, or use `multipart/form-data` with a `value` part and an optional JSON `metadata` part. Use URL-encoding for special characters (for example, `:`, `!`, `%`) in the key name when constructing the request URL. If neither `expiration` nor `expiration_ttl` is specified, the key-value pair will not expire. If both are set, `expiration_ttl` takes precedence.").positional(`key-name`,{type:`string`,description:`A key's name. The name may be at most 512 bytes. All printable, non-whitespace characters are valid. Use percent-encoding to define key names as part of a URL.`,demandOption:!0}).option(`namespace-id`,{type:`string`,description:`ID of the Workers KV namespace.`,demandOption:!0}).option(`expiration`,{type:`number`,description:`Expires the key at a certain time, measured in number of seconds since the UNIX epoch.`}).option(`expiration-ttl`,{type:`number`,description:"Number of seconds until the key expires. Must be at least 60. Takes precedence over `expiration` when both are specified."}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`A byte sequence to be stored, up to 25 MiB in length.`}).option(`file`,{type:`string`,description:`Path to a file to upload as the request body`}).option(`metadata`,{type:`string`,description:`Associates arbitrary JSON data with a key/value pair.`})}const F={command:`put <key-name>`,describe:`Write a key-value pair with optional metadata`,builder:P,handler:async e=>l({command:`kv keys put`,classification:{safeFlags:[`dry-run`]}},e,async()=>{let l={expiration:e.expiration,expiration_ttl:e[`expiration-ttl`]};if(e.dryRun){let t=await i();s({command:`cf kv keys put`,method:`PUT`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/storage/kv/namespaces/${e[`namespace-id`]==null?`<namespace-id>`:encodeURIComponent(String(e[`namespace-id`]))}/values/${e[`key-name`]==null?`<key-name>`:encodeURIComponent(String(e[`key-name`]))}`,pathParams:{"namespace-id":String(e[`namespace-id`]??``),"key-name":String(e[`key-name`]??``)},query:l,bodyKind:e.metadata===void 0?`octet-stream`:`multipart`,body:e.metadata===void 0?e.body:{body:e.body,file:e.file,metadata:e.metadata}});return}let u=await r(e),d=e.local?t:await a();if(e.accountId=d,e.metadata!==void 0){let t=new FormData;if(e.file){let n=p(e.file);t.append(`value`,new Blob([n]),e.file.split(/[\\/]/).filter(Boolean).pop())}else e.body!==void 0&&t.append(`value`,e.body);e.metadata!==void 0&&t.append(`metadata`,String(f(e.metadata,`metadata`,`text`)??``));let r=await c(`Updating`,async()=>n(u,`PUT`,`/accounts/${d}/storage/kv/namespaces/${encodeURIComponent(String(e[`namespace-id`]))}/values/${encodeURIComponent(String(e[`key-name`]))}`,{body:t}));o(r,{successLabel:`Updated`});return}if(e.file){let t=p(e.file),r=await c(`Updating`,async()=>n(u,`PUT`,`/accounts/${d}/storage/kv/namespaces/${encodeURIComponent(String(e[`namespace-id`]))}/values/${encodeURIComponent(String(e[`key-name`]))}`,{body:t,headers:{"Content-Type":`application/octet-stream`}}));o(r,{successLabel:`Updated`});return}if(e.body){let t=f(e.body,`body`,`binary`),r=new URLSearchParams(Object.entries(l).filter(([,e])=>e!==void 0).map(([e,t])=>[e,String(t)])).toString(),i=await c(`Updating`,async()=>n(u,`PUT`,`/accounts/${d}/storage/kv/namespaces/${encodeURIComponent(String(e[`namespace-id`]))}/values/${encodeURIComponent(String(e[`key-name`]))}${r?`?`+r:``}`,{body:t,headers:{"Content-Type":`application/octet-stream`}}));o(i,{successLabel:`Updated`});return}if(e.body===void 0)throw Error(`--body is required for this command. Pass --body '<json>' or --body @path/to/file.json.`)})},ee={command:`keys`,describe:`Operations for keys`,builder:e=>e.command(O).command(A).command(N).command(F).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var I={method:`GET`,path:t=>e`/accounts/${t.account_id}/storage/kv/namespaces/${t.namespace_id}/metadata/${t.key_name}`};function L(e){return e.usage("$0 kv metadata get <key-name>\n\nReturns the JSON metadata associated with the specified key in the Workers KV namespace, without retrieving its value. Use URL-encoding for special characters (for example, `:`, `!`, `%`) in the key name when constructing the request URL.").positional(`key-name`,{type:`string`,description:`A key's name. The name may be at most 512 bytes. All printable, non-whitespace characters are valid. Use percent-encoding to define key names as part of a URL.`,demandOption:!0}).option(`namespace-id`,{type:`string`,description:`ID of the Workers KV namespace.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const R={command:`get <key-name>`,describe:`Get a key's metadata`,builder:L,handler:async e=>l({command:`kv metadata get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await i();s({command:`cf kv metadata get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/storage/kv/namespaces/${e[`namespace-id`]==null?`<namespace-id>`:encodeURIComponent(String(e[`namespace-id`]))}/metadata/${e[`key-name`]==null?`<key-name>`:encodeURIComponent(String(e[`key-name`]))}`,pathParams:{"namespace-id":String(e[`namespace-id`]??``),"key-name":String(e[`key-name`]??``)},bodyKind:`none`});return}let n=await r(e),l=e.local?t:await a();e.accountId=l;let u=await c(`Loading`,async()=>n.send(I,{account_id:l,namespace_id:e[`namespace-id`],key_name:e[`key-name`]}));o(u,{successLabel:`Loaded`})})},z={command:`metadata`,describe:`Operations for metadata`,builder:e=>e.command(R).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var B={method:`POST`,path:t=>e`/accounts/${t.account_id}/storage/kv/namespaces`,body:`json`};function V(e){return e.usage(`$0 kv namespaces create
|
|
7
7
|
|
|
8
8
|
Creates a Workers KV namespace in the specified account with the given title. Returns \`400\` if the account already owns a namespace with that title; an existing namespace must be explicitly deleted before it can be replaced. An optional jurisdiction restricts where data is durably stored and can only be set at creation time.`).option(`jurisdiction`,{type:`string`,description:`Specify the jurisdiction to restrict the KV namespace to durably store data within. Can only be set at namespace creation time.`,choices:[`eu`,`fedramp`,`us`]}).coerce(`jurisdiction`,e=>f(e,`jurisdiction`,`text`)).option(`namespace-mode`,{type:`string`,description:"The mode of the Workers KV namespace. Specify `instant` when creating a namespace to create a KV Instant namespace. Omit this field when creating a namespace to create a classic namespace. Currently, `instant` is the only supported explicit value.",choices:[`instant`]}).coerce(`namespace-mode`,e=>f(e,`namespace-mode`,`text`)).option(`title`,{type:`string`,description:`Human-readable string name for a Workers KV namespace.`}).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 namespace`,builder:V,handler:async e=>l({command:`kv namespaces create`,classification:{safeFlags:[`jurisdiction`,`namespace-mode`,`dry-run`]}},e,async()=>{if(e.dryRun){let t=await i();s({command:`cf kv namespaces create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/storage/kv/namespaces`,pathParams:{},bodyKind:`json`,body:e.body===void 0?d({jurisdiction:e.jurisdiction,mode:e[`namespace-mode`],title:f(e.title,`title`,`text`)}):u(e.body)});return}let n=await r(e),l=e.local?t:await a();if(e.accountId=l,e.body){let t=u(e.body),r=await c(`Creating`,async()=>n.send(B,{body:t,account_id:l}));o(r,{successLabel:`Created`});return}e.title===void 0&&(e.title=await m(`title`,`Human-readable string name for a Workers KV namespace.`));let p=d({jurisdiction:e.jurisdiction,mode:e[`namespace-mode`],title:f(e.title,`title`,`text`)}),h=await c(`Creating`,async()=>n.send(B,{body:p,account_id:l}));o(h,{successLabel:`Created`})})};var U={method:`DELETE`,path:t=>e`/accounts/${t.account_id}/storage/kv/namespaces/${t.namespace_id}`};function W(e){return e.usage(`$0 kv namespaces delete <namespace-id>
|
|
9
9
|
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
function e(e,t,n,r){return{command:e,describe:t,builder:async e=>{let t=(await n()).default.builder;return typeof t==`function`?t(e):e},handler:async e=>{let t=await n();if(r===null){await t.default.handler(e);return}let{runWithTelemetry:i}=await import(`./run-
|
|
2
|
+
function e(e,t,n,r){return{command:e,describe:t,builder:async e=>{let t=(await n()).default.builder;return typeof t==`function`?t(e):e},handler:async e=>{let t=await n();if(r===null){await t.default.handler(e);return}let{runWithTelemetry:i}=await import(`./run-CHNyLZLG.mjs`);await i(r,e,()=>t.default.handler(e))}}}export{e as t};
|
package/dist/{leaked-credential-checks-Bsi2WpSU.mjs → leaked-credential-checks-Dx4RXMyN.mjs}
RENAMED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import"./api-eMuS5GI1.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{n as t}from"./auth-
|
|
2
|
+
import"./api-eMuS5GI1.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{n as t}from"./auth-MNz2D-PD.mjs";import{i as n}from"./context-q-6bMSL-.mjs";import{t as r}from"./output-Co4xdFf6.mjs";import{t as i}from"./dry-run-C2KjGX10.mjs";import{t as a}from"./progress-DaQ4MzBI.mjs";import{t as o}from"./run-Clc3P2u7.mjs";import"./telemetry-Bdv5LZZs.mjs";import{n as s,t as c}from"./body-parser-DkHKPkJ7.mjs";import{n as l}from"./input-validation-D7z60HJH.mjs";import{n as u}from"./prompt-KWYZvJWM.mjs";var d={method:`POST`,path:t=>e`/zones/${t.zone_id}/leaked-credential-checks/detections`,body:`json`};function f(e){return e.usage(`$0 leaked-credential-checks detections create
|
|
3
3
|
|
|
4
|
-
Create a detection location for credentials that the default scan locations do not cover, using Rules language expressions such as \`lookup_json_string(http.request.body.raw, "user")\`. Only the username expression is required, and Leaked Credential Checks must be enabled on the zone.`).option(`password`,{type:`string`,description:`Defines ehe ruleset expression to use in matching the password in a request.`}).option(`username`,{type:`string`,description:`Defines the ruleset expression to use in matching the username in a request.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Defines a custom set of username/password expressions to match Leaked Credential Checks on.`})}const p={command:`create`,describe:`Create a custom detection location for a zone.`,builder:f,handler:async e=>o({command:`leaked-credential-checks detections create`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){i({command:`cf leaked-credential-checks detections create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/leaked-credential-checks/detections`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``)},bodyKind:`json`,body:e.body===void 0?c({password:l(e.password,`password`,`text`),username:l(e.username,`username`,`text`)}):s(e.body)});return}let o=await t(e),u=await n({zone:e.zone},o,{quiet:e.quiet});if(e.zoneId=u,e.body){let t=s(e.body),n=await a(`Creating`,async()=>o.send(d,{body:t,zone_id:u}));r(n,{successLabel:`Created`});return}let f=c({password:l(e.password,`password`,`text`),username:l(e.username,`username`,`text`)}),p=await a(`Creating`,async()=>o.send(d,{body:f,zone_id:u}));r(p,{successLabel:`Created`})})};var m={method:`DELETE`,path:t=>e`/zones/${t.zone_id}/leaked-credential-checks/detections/${t.detection_id}`};function h(e){return e.usage(`$0 leaked-credential-checks detections delete <detection-id>
|
|
4
|
+
Create a detection location for credentials that the default scan locations do not cover, using Rules language expressions such as \`lookup_json_string(http.request.body.raw, "user")\`. Only the username expression is required, and Leaked Credential Checks must be enabled on the zone.`).option(`id`,{type:`string`,description:`Defines the unique ID for this custom detection.`}).option(`password`,{type:`string`,description:`Defines ehe ruleset expression to use in matching the password in a request.`}).option(`username`,{type:`string`,description:`Defines the ruleset expression to use in matching the username in a request.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Defines a custom set of username/password expressions to match Leaked Credential Checks on.`})}const p={command:`create`,describe:`Create a custom detection location for a zone.`,builder:f,handler:async e=>o({command:`leaked-credential-checks detections create`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){i({command:`cf leaked-credential-checks detections create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/leaked-credential-checks/detections`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``)},bodyKind:`json`,body:e.body===void 0?c({id:l(e.id,`id`,`text`),password:l(e.password,`password`,`text`),username:l(e.username,`username`,`text`)}):s(e.body)});return}let o=await t(e),u=await n({zone:e.zone},o,{quiet:e.quiet});if(e.zoneId=u,e.body){let t=s(e.body),n=await a(`Creating`,async()=>o.send(d,{body:t,zone_id:u}));r(n,{successLabel:`Created`});return}let f=c({id:l(e.id,`id`,`text`),password:l(e.password,`password`,`text`),username:l(e.username,`username`,`text`)}),p=await a(`Creating`,async()=>o.send(d,{body:f,zone_id:u}));r(p,{successLabel:`Created`})})};var m={method:`DELETE`,path:t=>e`/zones/${t.zone_id}/leaked-credential-checks/detections/${t.detection_id}`};function h(e){return e.usage(`$0 leaked-credential-checks detections delete <detection-id>
|
|
5
5
|
|
|
6
6
|
Delete a user-defined detection location, identified by its detection ID. Incoming requests are then scanned using only the default scan locations and the detection locations that remain.`).positional(`detection-id`,{type:`string`,description:`Defines the unique ID for this custom detection.`,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 g={command:`delete <detection-id>`,describe:`Delete a custom detection location from a zone.`,builder:h,handler:async e=>o({command:`leaked-credential-checks detections delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{if(e.dryRun){i({command:`cf leaked-credential-checks detections delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/leaked-credential-checks/detections/${e[`detection-id`]==null?`<detection-id>`:encodeURIComponent(String(e[`detection-id`]))}`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``),"detection-id":String(e[`detection-id`]??``)},bodyKind:`none`});return}let o=await t(e),s=await n({zone:e.zone},o,{quiet:e.quiet});if(e.zoneId=s,!await u({force:!!e.force,message:`This operation deletes a Leaked Credential Checks custom detection location.`})){process.stderr.write(`Aborted.
|
|
7
7
|
`);return}let c=await a(`Deleting`,async()=>o.send(m,{zone_id:s,detection_id:e[`detection-id`]}));r(c,{successLabel:`Deleted`})})};var _={method:`GET`,path:t=>e`/zones/${t.zone_id}/leaked-credential-checks/detections/${t.detection_id}`};function v(e){return e.usage(`$0 leaked-credential-checks detections get <detection-id>
|
|
@@ -10,7 +10,7 @@ Get the username and password expressions of a single user-defined detection loc
|
|
|
10
10
|
|
|
11
11
|
List the user-defined detection locations configured for Leaked Credential Checks, each with its own identifier. A custom detection location tells the WAF where to find the username and password in requests to your application.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const S={command:`list`,describe:`List the custom detection locations of a zone.`,builder:x,handler:async e=>o({command:`leaked-credential-checks detections list`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){i({command:`cf leaked-credential-checks detections list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/leaked-credential-checks/detections`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``)},bodyKind:`none`});return}let o=await t(e),s=await n({zone:e.zone},o,{quiet:e.quiet});e.zoneId=s;let c=await a(`Loading`,async()=>o.send(b,{zone_id:s}));r(c,{successLabel:`Loaded`})})};var C={method:`PUT`,path:t=>e`/zones/${t.zone_id}/leaked-credential-checks/detections/${t.detection_id}`,body:`json`};function w(e){return e.usage(`$0 leaked-credential-checks detections update <detection-id>
|
|
12
12
|
|
|
13
|
-
Update the username and password expressions of an existing detection location, identified by its detection ID. Both expressions are overwritten, so omitting the password expression clears it.`).positional(`detection-id`,{type:`string`,description:`Defines the unique ID for this custom detection.`,demandOption:!0}).option(`password`,{type:`string`,description:`Defines ehe ruleset expression to use in matching the password in a request.`}).option(`username`,{type:`string`,description:`Defines the ruleset expression to use in matching the username in a request.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Defines a custom set of username/password expressions to match Leaked Credential Checks on.`})}const T={command:`update <detection-id>`,describe:`Update a custom detection location of a zone.`,builder:w,handler:async e=>o({command:`leaked-credential-checks detections update`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){i({command:`cf leaked-credential-checks detections update`,method:`PUT`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/leaked-credential-checks/detections/${e[`detection-id`]==null?`<detection-id>`:encodeURIComponent(String(e[`detection-id`]))}`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``),"detection-id":String(e[`detection-id`]??``)},bodyKind:`json`,body:e.body===void 0?c({password:l(e.password,`password`,`text`),username:l(e.username,`username`,`text`)}):s(e.body)});return}let o=await t(e),u=await n({zone:e.zone},o,{quiet:e.quiet});if(e.zoneId=u,e.body){let t=s(e.body),n=await a(`Updating`,async()=>o.send(C,{body:t,zone_id:u,detection_id:e[`detection-id`]}));r(n,{successLabel:`Updated`});return}let d=c({password:l(e.password,`password`,`text`),username:l(e.username,`username`,`text`)}),f=await a(`Updating`,async()=>o.send(C,{body:d,zone_id:u,detection_id:e[`detection-id`]}));r(f,{successLabel:`Updated`})})},E={command:`detections`,describe:`Custom detection locations that tell the WAF where to find usernames and passwords in requests`,builder:e=>e.command(p).command(g).command(y).command(S).command(T).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var D={method:`GET`,path:t=>e`/zones/${t.zone_id}/leaked-credential-checks`};function O(e){return e.usage(`$0 leaked-credential-checks get
|
|
13
|
+
Update the username and password expressions of an existing detection location, identified by its detection ID. Both expressions are overwritten, so omitting the password expression clears it.`).positional(`detection-id`,{type:`string`,description:`Defines the unique ID for this custom detection.`,demandOption:!0}).option(`id`,{type:`string`,description:`Defines the unique ID for this custom detection.`}).option(`password`,{type:`string`,description:`Defines ehe ruleset expression to use in matching the password in a request.`}).option(`username`,{type:`string`,description:`Defines the ruleset expression to use in matching the username in a request.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Defines a custom set of username/password expressions to match Leaked Credential Checks on.`})}const T={command:`update <detection-id>`,describe:`Update a custom detection location of a zone.`,builder:w,handler:async e=>o({command:`leaked-credential-checks detections update`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){i({command:`cf leaked-credential-checks detections update`,method:`PUT`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/leaked-credential-checks/detections/${e[`detection-id`]==null?`<detection-id>`:encodeURIComponent(String(e[`detection-id`]))}`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``),"detection-id":String(e[`detection-id`]??``)},bodyKind:`json`,body:e.body===void 0?c({id:l(e.id,`id`,`text`),password:l(e.password,`password`,`text`),username:l(e.username,`username`,`text`)}):s(e.body)});return}let o=await t(e),u=await n({zone:e.zone},o,{quiet:e.quiet});if(e.zoneId=u,e.body){let t=s(e.body),n=await a(`Updating`,async()=>o.send(C,{body:t,zone_id:u,detection_id:e[`detection-id`]}));r(n,{successLabel:`Updated`});return}let d=c({id:l(e.id,`id`,`text`),password:l(e.password,`password`,`text`),username:l(e.username,`username`,`text`)}),f=await a(`Updating`,async()=>o.send(C,{body:d,zone_id:u,detection_id:e[`detection-id`]}));r(f,{successLabel:`Updated`})})},E={command:`detections`,describe:`Custom detection locations that tell the WAF where to find usernames and passwords in requests`,builder:e=>e.command(p).command(g).command(y).command(S).command(T).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var D={method:`GET`,path:t=>e`/zones/${t.zone_id}/leaked-credential-checks`};function O(e){return e.usage(`$0 leaked-credential-checks get
|
|
14
14
|
|
|
15
15
|
Get the current Leaked Credential Checks status for the zone. While enabled, Cloudflare scans incoming requests for usernames and passwords that were exposed in known data breaches.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const k={command:`get`,describe:`Get the Leaked Credential Checks status for a zone.`,builder:O,handler:async e=>o({command:`leaked-credential-checks get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){i({command:`cf leaked-credential-checks get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/leaked-credential-checks`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``)},bodyKind:`none`});return}let o=await t(e),s=await n({zone:e.zone},o,{quiet:e.quiet});e.zoneId=s;let c=await a(`Loading`,async()=>o.send(D,{zone_id:s}));r(c,{successLabel:`Loaded`})})};var A={method:`POST`,path:t=>e`/zones/${t.zone_id}/leaked-credential-checks`,body:`json`};function j(e){return e.usage(`$0 leaked-credential-checks update
|
|
16
16
|
|