cf 1.0.0-beta.2 → 1.0.0-beta.4
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 +1 -0
- package/dist/_meta/commands.json +28143 -30372
- package/dist/_meta/hand-written-commands.json +72 -49
- package/dist/_meta/schemas.json +18731 -20305
- package/dist/{abuse-reports-JcwSaW-c.mjs → abuse-reports-L4L7sC0F.mjs} +1 -1
- package/dist/access-DUQisFsH.mjs +2 -0
- package/dist/{account-CLsfIk5j.mjs → account-J7N4Ukse.mjs} +1 -1
- package/dist/{account-tags-BJdDiyDi.mjs → account-tags-DMmTopgx.mjs} +1 -1
- package/dist/{accounts-6eXqIqSW.mjs → accounts-DbZdpH5e.mjs} +1 -1
- package/dist/{acm-ChNLnPqM.mjs → acm-BtXPdUqH.mjs} +1 -1
- package/dist/{addressing-z8ei_TCh.mjs → addressing-Bc_ZSmrK.mjs} +5 -5
- package/dist/{agent-memory-Un0usAVF.mjs → agent-memory-CEUI1wKI.mjs} +1 -1
- package/dist/{ai-Bj8kgDf7.mjs → ai-CFHaVQcc.mjs} +1 -1
- package/dist/{ai-audit-FR6QuDK_.mjs → ai-audit-guygqmOl.mjs} +1 -1
- package/dist/ai-gateway-BcKOL4WQ.mjs +80 -0
- package/dist/{ai-search-BvMeOKK6.mjs → ai-search-DJvNkX2o.mjs} +1 -1
- package/dist/{ai-security-BHvDKoM1.mjs → ai-security-CVaHbGzn.mjs} +1 -1
- package/dist/{alerting-DmRZCAjg.mjs → alerting-wy4IuGs7.mjs} +1 -1
- package/dist/{analytics-DqidJ4qc.mjs → analytics-Do4VMrPX.mjs} +2 -2
- package/dist/{analytics_engine-I7N0I6yP.mjs → analytics_engine-Cv7IF8ex.mjs} +1 -1
- package/dist/{api-security-BMNhdDyR.mjs → api-security-fuzV322d.mjs} +1 -1
- package/dist/{argo-U5TIBcub.mjs → argo-BBf-Jw0O.mjs} +1 -1
- package/dist/{artifacts-Byw1W73U.mjs → artifacts-B7_OhBxW.mjs} +1 -1
- package/dist/{audit-logs-C6zyFeKM.mjs → audit-logs-DyARgcxN.mjs} +1 -1
- package/dist/{auth-B5p3SIhO.mjs → auth-BYFcxn1F.mjs} +2 -2
- package/dist/{auth-CosaKfuk.mjs → auth-CiOv7s9F.mjs} +1 -1
- package/dist/{autoconfig-DED3bWob.mjs → autoconfig-DbL_FL5k.mjs} +74 -74
- package/dist/{banner-Xk4xBN8U.mjs → banner-ClclgnBn.mjs} +1 -1
- package/dist/{billing-BS1raRJt.mjs → billing-07_VIO4X.mjs} +1 -1
- package/dist/{bot-management-Cn6xfGzJ.mjs → bot-management-CmkPUu2I.mjs} +1 -1
- package/dist/{botnet-feed-DtWOPNfw.mjs → botnet-feed-Bn5pE_rx.mjs} +1 -1
- package/dist/{brand-protection-BcEQ66bT.mjs → brand-protection-CWDqPOXe.mjs} +1 -1
- package/dist/{browser-run-RZ7ZPRop.mjs → browser-run-CfEIfpnQ.mjs} +1 -1
- package/dist/build-BmLpTw4w.mjs +2 -0
- package/dist/build-DEbkHHVh.mjs +2 -0
- package/dist/{builds-AOCMH4CE.mjs → builds-mgouQLUs.mjs} +1 -1
- package/dist/{cache-D_EBxDff.mjs → cache-DXLofz5T.mjs} +1 -1
- package/dist/{certificate-authorities-B6rtjuaT.mjs → certificate-authorities-BfW-rEpf.mjs} +1 -1
- package/dist/{cf--3tGe71B.mjs → cf-O3gEaXYZ.mjs} +11 -11
- package/dist/{chunk-M77HNR46-BqG3fjQz.mjs → chunk-M77HNR46-DPbhuhiy.mjs} +1 -1
- package/dist/{chunk-RV27PEH3-C8_6bMgi.mjs → chunk-RV27PEH3-Cws_30ln.mjs} +30 -30
- package/dist/cli-Dgk9bd8j.mjs +6 -0
- package/dist/{client-certificates-uBOjGcgo.mjs → client-certificates-By2A46a2.mjs} +1 -1
- package/dist/{client-side-security-Bm7JwGaG.mjs → client-side-security-Bo6ZwJOS.mjs} +1 -1
- package/dist/{cloud-connector-69M2Dx8h.mjs → cloud-connector-DYb_3u-M.mjs} +1 -1
- package/dist/{cloudflared-Ba5LySkU.mjs → cloudflared-91JvyShh.mjs} +1 -1
- package/dist/{cloudforce-one-Xn2mlAPv.mjs → cloudforce-one-D8l0I5PL.mjs} +1 -1
- package/dist/command-BPfW-yE4.mjs +2 -0
- package/dist/{command-Cb0pS8T5.mjs → command-BgBsFEYv.mjs} +1 -1
- package/dist/{command-DEC5PwJo.mjs → command-C3Qhz4kU.mjs} +1 -1
- package/dist/command-C72KLHMc.mjs +2 -0
- package/dist/command-C7cOrHdI.mjs +2 -0
- package/dist/command-CGD1oByJ.mjs +2 -0
- package/dist/command-CJR1CUK_.mjs +2 -0
- package/dist/command-C_lQtSPg.mjs +2 -0
- package/dist/{command-DCpX9Cem.mjs → command-DH67hNLj.mjs} +1 -1
- package/dist/command-DJJN9xaA.mjs +2 -0
- package/dist/command-DRlUj6lW.mjs +2 -0
- package/dist/command-DYeBZ5mA.mjs +2 -0
- package/dist/command-DaAGN9uP.mjs +2 -0
- package/dist/{command-Cz_bKDWf.mjs → command-DjNcY4cf.mjs} +1 -1
- package/dist/command-gSmdvn_d.mjs +2 -0
- package/dist/{completions-DZDltM9V.mjs → completions-DUDx3DwX.mjs} +26 -26
- package/dist/{connector-interrupts-DTy6laab.mjs → connector-interrupts-DIMvaZhN.mjs} +1 -1
- package/dist/{connector-telemetry-events-CJqGGvFJ.mjs → connector-telemetry-events-TWQvm-cj.mjs} +1 -1
- package/dist/{connector-telemetry-snapshots-BPxhPhr6.mjs → connector-telemetry-snapshots-Dyoe-_R3.mjs} +1 -1
- package/dist/{connectors-CdfCcZuA.mjs → connectors-D7ZFg3hB.mjs} +1 -1
- package/dist/{containers-VMqcxH5a.mjs → containers-Bu3tLjU1.mjs} +1 -1
- package/dist/{containers-C7z53QcY.mjs → containers-CduXjFBJ.mjs} +88 -90
- package/dist/{content-scan-BirgZrmr.mjs → content-scan-CVBD6mUI.mjs} +1 -1
- package/dist/{context-Dzzbc9RK.mjs → context-BsGrhAqB.mjs} +2 -2
- package/dist/{cps-DzFm3zKp.mjs → cps-CgiRKmTe.mjs} +1 -1
- package/dist/{csamScanner-D2_OO5-1.mjs → csamScanner-BlXIOFFe.mjs} +1 -1
- package/dist/{ct-alerting-B7wQkFVl.mjs → ct-alerting-CJZK0uSQ.mjs} +1 -1
- package/dist/{custom-certificates-BKcCfbH8.mjs → custom-certificates-DFaj_czg.mjs} +1 -1
- package/dist/{custom-csrs-CXoOxir4.mjs → custom-csrs-BnFQpjOo.mjs} +1 -1
- package/dist/{custom-hostnames-CNYfnCOd.mjs → custom-hostnames-DSnE6xOT.mjs} +1 -1
- package/dist/{custom-nameservers-BlLM7a4L.mjs → custom-nameservers-CdQOt_qU.mjs} +1 -1
- package/dist/{custom-pages-BcWoypet.mjs → custom-pages-TWGlS6Ms.mjs} +1 -1
- package/dist/{d1-CvrHsqYY.mjs → d1-Cbqx2kAz.mjs} +1 -1
- package/dist/{dcv-delegation-9_Hl-5v-.mjs → dcv-delegation-DM3oGGio.mjs} +1 -1
- package/dist/delegate.mjs +1 -1
- package/dist/{deploy-BlXYtvTd.mjs → deploy-BZUWZ888.mjs} +1 -1
- package/dist/{deploy-input-DTXVZ2QJ.mjs → deploy-input-ChEbf2Kp.mjs} +1 -1
- package/dist/dev-OsbQIdD8.mjs +4 -0
- package/dist/{diagnostics-BxHs1EJB.mjs → diagnostics-8bbleTmW.mjs} +1 -1
- package/dist/{dialog-ClHoC_cG.mjs → dialog-BlUXJKbA.mjs} +1 -1
- package/dist/discover-DgHRf-qo.mjs +2 -0
- package/dist/discover-VRFBjse7.mjs +2 -0
- package/dist/{dist-CmyJy57B.mjs → dist-DTN-pqSs.mjs} +14 -14
- package/dist/{dist-Cpb7_h4N.mjs → dist-DW47TUGh.mjs} +1 -1
- package/dist/{dist-cGGV-p_F.mjs → dist-DfMipWKR.mjs} +3 -3
- package/dist/{dls-D7GXW-N3.mjs → dls-TzQpry2j.mjs} +1 -1
- package/dist/{dns-B0mdWJO5.mjs → dns-Bzv4YLeg.mjs} +1 -1
- package/dist/{dns-firewall-BG0bzuL3.mjs → dns-firewall-BjWwOmDR.mjs} +1 -1
- package/dist/{dot-prop-IITUZ2XW-BO5KJUwL.mjs → dot-prop-IITUZ2XW-BilKo4kO.mjs} +1 -1
- package/dist/dotenv-CcQjGlV0.mjs +4 -0
- package/dist/dry-run-Bq0JAsbX.mjs +2 -0
- package/dist/{durable-objects-DW0CsJzR.mjs → durable-objects-CRhSGkpc.mjs} +1 -1
- package/dist/{email-auth-Ls-7Yijm.mjs → email-auth-Bth4_FHy.mjs} +1 -1
- package/dist/{email-routing-DVaFhg-3.mjs → email-routing-CkTh4F5j.mjs} +1 -1
- package/dist/{email-security-vnwkqlgp.mjs → email-security-C-2jADxE.mjs} +1 -1
- package/dist/{email-sending-CbMUicJz.mjs → email-sending-B_sd4ouE.mjs} +1 -1
- package/dist/error-sanitization-Cu-8OKRA.mjs +2 -0
- package/dist/{error-sanitization-TV6O0aCD.mjs → error-sanitization-Dc4bLj8k.mjs} +1 -1
- package/dist/{fieldExtractors-2EkDoJg8.mjs → fieldExtractors-z92V55-Y.mjs} +1 -1
- package/dist/{firewall-BK4QYqRe.mjs → firewall-0yKpxdjj.mjs} +1 -1
- package/dist/{flagship--lHQ0H3n.mjs → flagship-IRVq23te.mjs} +1 -1
- package/dist/{fraud-CaoRrQ8W.mjs → fraud-BpJ_aoIE.mjs} +1 -1
- package/dist/{generate-CrKNH6ms.mjs → generate-iV6OVNin.mjs} +1 -1
- package/dist/generate-qMU-2MgC.mjs +2 -0
- package/dist/{google-tag-gateway-DDzLPmk5.mjs → google-tag-gateway-DA_7SCC3.mjs} +1 -1
- package/dist/gt-DmcMNPX6.mjs +2 -0
- package/dist/{healthchecks-Q2uXvt4m.mjs → healthchecks-C-GthoQz.mjs} +1 -1
- package/dist/{hostnames-CsaYnis6.mjs → hostnames-CH6utzVv.mjs} +1 -1
- package/dist/{hyperdrive-DDr6sAkw.mjs → hyperdrive-_rIC33bB.mjs} +1 -1
- package/dist/{iam-CmzocepZ.mjs → iam-sseKl99z.mjs} +1 -1
- package/dist/{images-Ux0Phsbi.mjs → images-CvIOwtg0.mjs} +1 -1
- package/dist/index.mjs +1 -1
- package/dist/{init-Nx4RRgfT.mjs → init-DEIhItNF.mjs} +2 -2
- package/dist/{intel-bgS4g7nx.mjs → intel-Da84oZMO.mjs} +1 -1
- package/dist/interactive-SgAjen2z.mjs +2 -0
- package/dist/{ips-BDiolgWF.mjs → ips-zTTd_3jg.mjs} +1 -1
- package/dist/{keyless-certificates-C_TwTMql.mjs → keyless-certificates-BGOUKdJc.mjs} +1 -1
- package/dist/{keys-Cr8AqQDY.mjs → keys-CDnrfmiS.mjs} +1 -1
- package/dist/kv-C5jR7vjM.mjs +15 -0
- package/dist/lazy-command-DZtpMsVB.mjs +2 -0
- package/dist/{leaked-credential-checks-De7ph4VA.mjs → leaked-credential-checks-B7WSzVG3.mjs} +1 -1
- package/dist/{load-balancers-DXt4ndF4.mjs → load-balancers-DG9wMQUM.mjs} +1 -1
- package/dist/{local-OKXweFsd.mjs → local-B3OyWKkW.mjs} +1 -1
- package/dist/local-qOpZjDed.mjs +2 -0
- package/dist/{local-runtime-tTYpniPS.mjs → local-runtime-Co5vVDlI.mjs} +1 -1
- package/dist/{login-BurQ63Ws.mjs → login-k3QLVysD.mjs} +1 -1
- package/dist/{login-CmlHvH5k.mjs → login-rJanUgdL.mjs} +1 -1
- package/dist/{logo-matches-CQ60P96J.mjs → logo-matches-5nijgkg7.mjs} +1 -1
- package/dist/{logos-u7UwT8MH.mjs → logos-BRRqg8_2.mjs} +1 -1
- package/dist/{logpush-IoIe8e80.mjs → logpush-Br7H8sRD.mjs} +1 -1
- package/dist/{logs-ih5tyXEE.mjs → logs-CBU44LT8.mjs} +1 -1
- package/dist/{magic-cloud-networking-CWNFnjcY.mjs → magic-cloud-networking-Bu7O7wKz.mjs} +1 -1
- package/dist/{magic-network-monitoring-ClfZleF8.mjs → magic-network-monitoring-Bnc--4Jr.mjs} +1 -1
- package/dist/{magic-transit-D69pkEVW.mjs → magic-transit-Dxr86HKN.mjs} +1 -1
- package/dist/{managed-defense-BHdmL0vx.mjs → managed-defense-Bm_jKFTN.mjs} +1 -1
- package/dist/{managed-transforms-DbCR4LUg.mjs → managed-transforms-D5mvHv_N.mjs} +1 -1
- package/dist/{matches-Cou6RVkh.mjs → matches-Dhc1eSWw.mjs} +1 -1
- package/dist/{mcp-CQYfM19s.mjs → mcp-B-PBoBl5.mjs} +1 -1
- package/dist/{mesh-CXqaAFS4.mjs → mesh-CW8B4naI.mjs} +1 -1
- package/dist/migrate-B4kBnkpV.mjs +2 -0
- package/dist/{mtls-certificates-DNeId8xS.mjs → mtls-certificates-swvfPqA2.mjs} +1 -1
- package/dist/{network-interconnects-BNon8iUs.mjs → network-interconnects-CjXYZC4g.mjs} +1 -1
- package/dist/{network-B7V3JbU7.mjs → network-iwRBn0i7.mjs} +1 -1
- package/dist/{oauth-DM8q-TYg.mjs → oauth-CrTr-mRe.mjs} +1 -1
- package/dist/oauth-DJW_HyaL.mjs +9 -0
- package/dist/{oauth-clients-gGmWIWHl.mjs → oauth-clients-DGUJzFFu.mjs} +1 -1
- package/dist/{oauth-scopes-DSEu331u.mjs → oauth-scopes-Bl0YUOHt.mjs} +1 -1
- package/dist/{observability-_VJhfwM1.mjs → observability-DRHiMrLy.mjs} +1 -1
- package/dist/{open-PCXX3ZDZ-DobJT1Mj.mjs → open-PCXX3ZDZ-BKRik1gi.mjs} +3 -3
- package/dist/{organization-DW4EpwGl.mjs → organization-BoMJzks7.mjs} +1 -1
- package/dist/{organizations-DE1g2wVq.mjs → organizations-UGtCHzSq.mjs} +1 -1
- package/dist/{origin-ca-certificates-D3ULDV__.mjs → origin-ca-certificates-CdByaOCe.mjs} +1 -1
- package/dist/{origin-post-quantum-encryption-BLropaz7.mjs → origin-post-quantum-encryption-GjmifGkF.mjs} +1 -1
- package/dist/{origin-tls-client-auth-C87TG2i_.mjs → origin-tls-client-auth-CCIqSj_C.mjs} +1 -1
- package/dist/{output-CZt-berV.mjs → output-CvQFJkvi.mjs} +1 -1
- package/dist/{page-rules-tlb9P-7V.mjs → page-rules-Btn-r3QF.mjs} +1 -1
- package/dist/pages-iil93G96.mjs +60 -0
- package/dist/{pay-per-crawl-C50wI-Iz.mjs → pay-per-crawl-DcAZuk9T.mjs} +1 -1
- package/dist/{pay-per-use-DHHIvynU.mjs → pay-per-use-z0Iwy9rN.mjs} +1 -1
- package/dist/{pipelines-Y2icOwuf.mjs → pipelines-YRPwntqo.mjs} +1 -1
- package/dist/{precursor-DeyurJSC.mjs → precursor-Bcww14RH.mjs} +1 -1
- package/dist/previews-BBn-IiQu.mjs +4 -0
- package/dist/{progress-C9dWgc3J.mjs → progress-5nsUpQL6.mjs} +1 -1
- package/dist/{prompt-Mh69ni1N.mjs → prompt-Ba_bys2F.mjs} +1 -1
- package/dist/{queries-DyUJefwL.mjs → queries-lxdncISw.mjs} +1 -1
- package/dist/{queues-CdNe4tGY.mjs → queues-Egb0KXYK.mjs} +1 -1
- package/dist/r2-BD4NOkR7.mjs +132 -0
- package/dist/{r2-data-catalog-D_zDlmVD.mjs → r2-data-catalog-CI-oHtKe.mjs} +1 -1
- package/dist/{radar-CSguicKC.mjs → radar-B4dtfeBP.mjs} +1 -1
- package/dist/{raw-fetch-1ygCOcT_.mjs → raw-fetch-AX_Gz3c3.mjs} +1 -1
- package/dist/{realtime-CvWs5pi3.mjs → realtime-CtLXkW8l.mjs} +1 -1
- package/dist/{registrar-DQUxn0FK.mjs → registrar-I9XClUOe.mjs} +1 -1
- package/dist/{registrar-sandbox-Q7ZEmg2x.mjs → registrar-sandbox-DAqK58QS.mjs} +1 -1
- package/dist/{registry-4Sw95M5_.mjs → registry-DBMUTYqf.mjs} +1 -1
- package/dist/{reporting-DJShxeDv.mjs → reporting-BYsEUCIE.mjs} +1 -1
- package/dist/{request-headers-DFBBErJg.mjs → request-headers-sc4CaZX0.mjs} +1 -1
- package/dist/{request-tracers-DD8HlG61.mjs → request-tracers-DXr9Dr2z.mjs} +1 -1
- package/dist/resolve-PZuJ878-.mjs +2 -0
- package/dist/{resource-sharing-J46JMWQP.mjs → resource-sharing-DgbnNgCQ.mjs} +1 -1
- package/dist/{resource-tagging-DLZJLIqy.mjs → resource-tagging-CjPU8PpX.mjs} +1 -1
- package/dist/{rules-D068LfBR.mjs → rules-BrshTdy1.mjs} +1 -1
- package/dist/{rulesets-Cz6P7Oje.mjs → rulesets-BZulblVp.mjs} +1 -1
- package/dist/{rum-C6GQC2vI.mjs → rum-B4IRlWgy.mjs} +1 -1
- package/dist/run-BQGVl3vg.mjs +2 -0
- package/dist/run-UHTbUldP.mjs +2 -0
- package/dist/{schema-VZPw_2CY.mjs → schema-CueLBLXC.mjs} +1 -1
- package/dist/{schema-flags-BmY0Nzp0.mjs → schema-flags-C4KmiKur.mjs} +1 -1
- package/dist/{scim-DMTp_Zhc.mjs → scim-BL2TVEZM.mjs} +1 -1
- package/dist/{sdk-BuF3fTHr.mjs → sdk-Bx29ZKK3.mjs} +2 -2
- package/dist/{secrets-store-C2epk0sQ.mjs → secrets-store-BcyhU7Kj.mjs} +1 -1
- package/dist/{security-center-DwMdQ02Y.mjs → security-center-D1LSkhL_.mjs} +1 -1
- package/dist/{security-txt-CORQfMul.mjs → security-txt-BGIj4nU3.mjs} +1 -1
- package/dist/{session-BEXskZi2.mjs → session-CjQFm10R.mjs} +1 -1
- package/dist/shared-jqlTaG5K.mjs +2 -0
- package/dist/{smart-shield-BZ0xjy_6.mjs → smart-shield-C8mGSzyE.mjs} +1 -1
- package/dist/{snippets-LSkJGDOc.mjs → snippets-BmHMaKEZ.mjs} +1 -1
- package/dist/spawn-IM_tQldH.mjs +10 -0
- package/dist/{spectrum-zU8_GFTV.mjs → spectrum-CrGKTMx-.mjs} +1 -1
- package/dist/{speed-4XbFmeYM.mjs → speed-yyPLwj5X.mjs} +1 -1
- package/dist/src-DFnlH5Tg.mjs +109 -0
- package/dist/{ssl-DiCsMY_a.mjs → ssl-DZ6G7pP_.mjs} +1 -1
- package/dist/startup-profile-B0UCc9_J.mjs +2 -0
- package/dist/{startup-profile-6fCkD04r.mjs → startup-profile-DrV846S5.mjs} +3 -3
- package/dist/{state-DiHwKWTy.mjs → state-DhHOAdTo.mjs} +1 -1
- package/dist/state-Dyo8DcW7.mjs +2 -0
- package/dist/{stream-BG3NUAVE.mjs → stream-hoBmKs9X.mjs} +1 -1
- package/dist/{submit-CKSaSFS1.mjs → submit-Lfebq3yj.mjs} +1 -1
- package/dist/{tags-uT9Mi-bX.mjs → tags-CnHv__u_.mjs} +1 -1
- package/dist/telemetry-C3hmM9Q9.mjs +2 -0
- package/dist/telemetry-DbAo3nvk.mjs +2 -0
- package/dist/{tenant--UrYFHM0.mjs → tenant-7CL844dh.mjs} +1 -1
- package/dist/{tenant-custom-nameservers-8Z4TVJtr.mjs → tenant-custom-nameservers-CZL9_D8w.mjs} +1 -1
- package/dist/{tools-DNGD0l7I.mjs → tools-BJbI_f35.mjs} +1 -1
- package/dist/{tunnels-5lGSXYpl.mjs → tunnels-DuO8F5_h.mjs} +1 -1
- package/dist/{turnstile-CT3AkMPV.mjs → turnstile-B-6k-bKa.mjs} +1 -1
- package/dist/{ui-D1hhIDIs.mjs → ui-BQxRjahW.mjs} +1 -1
- package/dist/update-check-BDMPumcv.mjs +2 -0
- package/dist/update-check-g9Jcn6YJ.mjs +2 -0
- package/dist/update-check-worker.mjs +1 -1
- package/dist/{url-info-DvpNcNl8.mjs → url-info-C6-jj9nl.mjs} +1 -1
- package/dist/{url-normalization-C9URZnpq.mjs → url-normalization-BRSTQe20.mjs} +1 -1
- package/dist/{url-scanner-CIwK3wB5.mjs → url-scanner-DER5YAdW.mjs} +1 -1
- package/dist/{user-DGA7cqdf.mjs → user-foSeF-0m.mjs} +1 -1
- package/dist/{values-BzS0b25w.mjs → values-DgBNckq9.mjs} +1 -1
- package/dist/{vectorize-DtDjl2fJ.mjs → vectorize-9AZMN3fN.mjs} +1 -1
- package/dist/version-DLvRzH-I.mjs +2 -0
- package/dist/{waiting-rooms-CjTh4F3B.mjs → waiting-rooms-CUc0Xqp0.mjs} +1 -1
- package/dist/{web-assets-4l1B5V9b.mjs → web-assets-D5LUB5UO.mjs} +1 -1
- package/dist/{web3-C0Z4AJjC.mjs → web3-BvOpojFR.mjs} +1 -1
- package/dist/workers-Cko7OnFE.mjs +40 -0
- package/dist/{workers-builds-DYGeoxmX.mjs → workers-builds-BFqiT0GR.mjs} +1 -1
- package/dist/{workers-for-platforms-CSw0K8Nl.mjs → workers-for-platforms-EVE01qsM.mjs} +1 -1
- package/dist/{workers-vpc-DJ7Couct.mjs → workers-vpc-9xBzFjiF.mjs} +1 -1
- package/dist/{workflows-Dm03QT8U.mjs → workflows-BS0EGixd.mjs} +1 -1
- package/dist/wrangler-migration-BDkh1_IV.mjs +2 -0
- package/dist/{zaraz-DJbWUUe3.mjs → zaraz-DBccJ-ZM.mjs} +1 -1
- package/dist/{zero-trust-DiMY-pN5.mjs → zero-trust-DGagti-V.mjs} +431 -281
- package/dist/{zone-BWjBv1yy.mjs → zone-B4OniptR.mjs} +1 -1
- package/dist/{zones-zGqcQvcY.mjs → zones-DYuGVoTH.mjs} +1 -1
- package/package.json +1 -1
- package/dist/access-B3TvAe5h.mjs +0 -27
- package/dist/ai-gateway-DrQhTvKf.mjs +0 -147
- package/dist/build-DG8NfVjJ.mjs +0 -2
- package/dist/build-kgS7iKwi.mjs +0 -2
- package/dist/cli-Ct980dyx.mjs +0 -3
- package/dist/command-B7SzqjQM.mjs +0 -2
- package/dist/command-BLHcNQ8m.mjs +0 -2
- package/dist/command-BxQbIQWT.mjs +0 -2
- package/dist/command-C0SMCHZp.mjs +0 -2
- package/dist/command-CE8k5TuK.mjs +0 -2
- package/dist/command-CPiCDUth.mjs +0 -2
- package/dist/command-DHjsstFb.mjs +0 -2
- package/dist/command-MTUsmZU5.mjs +0 -2
- package/dist/command-Sb9lOxWT.mjs +0 -2
- package/dist/command-sQ8yswii.mjs +0 -2
- package/dist/config-DcppJ5D2.mjs +0 -2
- package/dist/data-security-BxzLSdGk.mjs +0 -71
- package/dist/dev-reqdKM28.mjs +0 -4
- package/dist/dry-run-BmzTxDtZ.mjs +0 -2
- package/dist/error-sanitization-cyGBhW1Z.mjs +0 -2
- package/dist/generate-Djb5Af37.mjs +0 -2
- package/dist/interactive-B_dcVghB.mjs +0 -2
- package/dist/kv-DmAQCqXl.mjs +0 -21
- package/dist/lazy-command-B_bwSa2F.mjs +0 -2
- package/dist/local-CFd107fr.mjs +0 -2
- package/dist/migrate-CXMbQPyC.mjs +0 -2
- package/dist/oauth-CeXh-ACI.mjs +0 -9
- package/dist/pages-CjPErYik.mjs +0 -60
- package/dist/previews-Dj_LcGRd.mjs +0 -4
- package/dist/r2-C0W2J4sT.mjs +0 -127
- package/dist/resolve-BVxXAYG7.mjs +0 -2
- package/dist/run-C_qUgBTs.mjs +0 -2
- package/dist/run-DK1d9BJz.mjs +0 -2
- package/dist/shared--lvrXmXY.mjs +0 -2
- package/dist/spawn-Da3HnlmB.mjs +0 -10
- package/dist/src-BLLpnbzC.mjs +0 -109
- package/dist/startup-profile-Cw-_akjQ.mjs +0 -2
- package/dist/state-CcktNox9.mjs +0 -2
- package/dist/telemetry-C0k8vfbq.mjs +0 -2
- package/dist/telemetry-Dh-8kdfY.mjs +0 -5
- package/dist/telemetry-IrDBqbQW.mjs +0 -2
- package/dist/update-check-BYJnL8J8.mjs +0 -2
- package/dist/update-check-DFoSm5GT.mjs +0 -2
- package/dist/version-B47pK_PZ.mjs +0 -2
- package/dist/workers-CNBv6GxE.mjs +0 -36
- package/dist/zt-Bt4Q6iM1.mjs +0 -110
- /package/dist/{Page-BchtVjAO.mjs → Page-CjJht2qT.mjs} +0 -0
- /package/dist/{alerts-DY_7Nknx.mjs → alerts-DqZgVSCT.mjs} +0 -0
- /package/dist/{autorag-K396-M2S.mjs → autorag-Cq9k9Ye6.mjs} +0 -0
- /package/dist/{body-parser-BpPZBRMr.mjs → body-parser-hh2avzkz.mjs} +0 -0
- /package/dist/{brands-Uy0Cmv1w.mjs → brands-DeLbFxSt.mjs} +0 -0
- /package/dist/{browser-extension-D_siSsD9.mjs → browser-extension-C1zmKFDG.mjs} +0 -0
- /package/dist/{chunk-U6NEESU5-CAnOLcsu.mjs → chunk-U6NEESU5-BhF4rnpx.mjs} +0 -0
- /package/dist/{chunk-WMOON6TZ-D3H84qpM.mjs → chunk-WMOON6TZ-D_ToS88f.mjs} +0 -0
- /package/dist/{clear-CpcO2ExU.mjs → clear-CRfI7WS7.mjs} +0 -0
- /package/dist/{cli-types-B6tm-8uL.mjs → cli-types-DoVT5q_M.mjs} +0 -0
- /package/dist/{connector-telemetry-events-latest-oguk5Zyj.mjs → connector-telemetry-events-latest-D8p_dR8s.mjs} +0 -0
- /package/dist/{connector-telemetry-snapshots-latest-B6zuxkr0.mjs → connector-telemetry-snapshots-latest-COFmzmlk.mjs} +0 -0
- /package/dist/{delegate-CCGgla7X.mjs → delegate-B6LetRpZ.mjs} +0 -0
- /package/dist/{input-validation-D3e278L_.mjs → input-validation-Dk52b0me.mjs} +0 -0
- /package/dist/{interactive-D80kbTap.mjs → interactive-C-o16XQs.mjs} +0 -0
- /package/dist/{lifecycle-Cyc3fmyN.mjs → lifecycle-C7tAC1Mn.mjs} +0 -0
- /package/dist/{project-settings-Bf6rReo1.mjs → project-settings-DO6njFg_.mjs} +0 -0
- /package/dist/{resolve-qPFfBMrn.mjs → resolve-BCTrtcx7.mjs} +0 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import{t as e}from"./local-
|
|
2
|
+
import{t as e}from"./local-B3OyWKkW.mjs";import{a as t,i as n,t as r}from"./context-BsGrhAqB.mjs";import{a as i,r as a}from"./auth-BYFcxn1F.mjs";import{t as o}from"./output-CvQFJkvi.mjs";import{t as s}from"./dry-run-Bq0JAsbX.mjs";import{t as c}from"./progress-5nsUpQL6.mjs";import{t as l}from"./run-UHTbUldP.mjs";import"./telemetry-C3hmM9Q9.mjs";import{n as u,r as d,t as f}from"./body-parser-hh2avzkz.mjs";import{n as p}from"./input-validation-Dk52b0me.mjs";import{a as m,i as h,n as g}from"./prompt-Ba_bys2F.mjs";import{t as _}from"./cli-types-DoVT5q_M.mjs";function ee(e){return e.usage(`$0 api-security schema-validation schemas create
|
|
3
3
|
|
|
4
4
|
Uploads an OpenAPI schema that defines expected request formats for API operations.`).option(`kind`,{type:`string`,description:`The kind of the schema`,choices:[`openapi_v3`]}).option(`name`,{type:`string`,description:`A human-readable name for the schema`}).option(`source`,{type:`string`,description:`The raw schema, e.g., the OpenAPI schema, either as JSON or YAML`}).option(`validation-enabled`,{type:`boolean`,description:`An indicator if this schema is enabled`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const te={command:`create`,describe:`Upload a schema`,builder:ee,handler:async e=>l({command:`api-security schema-validation schemas create`,classification:{safeFlags:[`kind`,`validation-enabled`,`dry-run`]}},e,async()=>{if(e.dryRun){s({command:`cf api-security schema-validation schemas create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/schema_validation/schemas`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``)},bodyKind:`json`,body:e.body===void 0?f({kind:p(e.kind,`kind`,`text`),name:p(e.name,`name`,`text`),source:p(e.source,`source`,`text`),validation_enabled:e[`validation-enabled`]}):u(e.body)});return}let t=await a(e),r=await n({zone:e.zone},t,{quiet:e.quiet});if(e.zoneId=r,e.body){let n=u(e.body);o(await c(`Creating`,async()=>t.apiSecurity.schemaValidation.schemas.create({...n,zone_id:r})),{successLabel:`Created`});return}if(e.kind===void 0&&(e.kind=await h(`kind`,`The kind of the schema`,[`openapi_v3`])),e.name===void 0&&(e.name=await m(`name`,`A human-readable name for the schema`)),e.source===void 0&&(e.source=await m(`source`,`The raw schema, e.g., the OpenAPI schema, either as JSON or YAML`)),e[`validation-enabled`]===void 0)throw Error(`--validation-enabled is required (or pass --body with this field set).`);let i=f({kind:p(e.kind,`kind`,`text`),name:p(e.name,`name`,`text`),source:p(e.source,`source`,`text`),validation_enabled:e[`validation-enabled`]});o(await c(`Creating`,async()=>t.apiSecurity.schemaValidation.schemas.create({...i,zone_id:r})),{successLabel:`Created`})})};function v(e){return e.usage(`$0 api-security schema-validation schemas delete <schema-id>
|
|
5
5
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import{i as e}from"./context-
|
|
2
|
+
import{i as e}from"./context-BsGrhAqB.mjs";import{r as t}from"./auth-BYFcxn1F.mjs";import{t as n}from"./output-CvQFJkvi.mjs";import{t as r}from"./dry-run-Bq0JAsbX.mjs";import{t as i}from"./progress-5nsUpQL6.mjs";import{t as a}from"./run-UHTbUldP.mjs";import"./telemetry-C3hmM9Q9.mjs";import{n as o,t as s}from"./body-parser-hh2avzkz.mjs";import{n as c}from"./input-validation-Dk52b0me.mjs";import{i as l}from"./prompt-Ba_bys2F.mjs";function u(e){return e.usage(`$0 argo smart-routing edit
|
|
3
3
|
|
|
4
4
|
Configures the value of the Argo Smart Routing enablement setting.`).option(`value`,{type:`string`,description:`Specifies the enablement value of Argo Smart Routing.`,choices:[`on`,`off`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Configures the enablement of Argo Smart Routing.`})}const d={command:`edit`,describe:`Patch Argo Smart Routing setting`,builder:u,handler:async u=>a({command:`argo smart-routing edit`,classification:{safeFlags:[`value`,`dry-run`]}},u,async()=>{if(u.dryRun){r({command:`cf argo smart-routing edit`,method:`PATCH`,url:`https://api.cloudflare.com/client/v4/zones/${u.zone??u.zoneId??`<zone>`}/argo/smart_routing`,pathParams:{"zone-id":String(u.zone??u[`zone-id`]??``)},bodyKind:`json`,body:u.body===void 0?s({value:c(u.value,`value`,`text`)}):o(u.body)});return}let a=await t(u),d=await e({zone:u.zone},a,{quiet:u.quiet});if(u.zoneId=d,u.body){let e=o(u.body);n(await i(`Updating`,async()=>a.argo.smartRouting.edit({...e,zone_id:d})),{successLabel:`Updated`});return}u.value===void 0&&(u.value=await l(`value`,`Specifies the enablement value of Argo Smart Routing.`,[`on`,`off`]));let f=s({value:c(u.value,`value`,`text`)});n(await i(`Updating`,async()=>a.argo.smartRouting.edit({...f,zone_id:d})),{successLabel:`Updated`})})};function f(e){return e.usage(`$0 argo smart-routing get
|
|
5
5
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import{t as e}from"./local-
|
|
2
|
+
import{t as e}from"./local-B3OyWKkW.mjs";import{a as t,t as n}from"./context-BsGrhAqB.mjs";import{r}from"./auth-BYFcxn1F.mjs";import{t as i}from"./output-CvQFJkvi.mjs";import{t as a}from"./dry-run-Bq0JAsbX.mjs";import{t as o}from"./progress-5nsUpQL6.mjs";import{t as s}from"./run-UHTbUldP.mjs";import"./telemetry-C3hmM9Q9.mjs";import{n as c,t as l}from"./body-parser-hh2avzkz.mjs";import{n as u}from"./input-validation-Dk52b0me.mjs";import{a as d,n as f}from"./prompt-Ba_bys2F.mjs";import{t as p}from"./cli-types-DoVT5q_M.mjs";import{n as m,t as h}from"./raw-fetch-AX_Gz3c3.mjs";function ee(e){return e.usage(`$0 artifacts namespaces create
|
|
3
3
|
|
|
4
4
|
Creates an empty Artifacts namespace for an account.`).option(`jurisdiction`,{type:`string`,description:`The jurisdiction field`,choices:[`unrestricted`,`us`,`eu`,`fedramp`],default:`unrestricted`}).option(`namespace`,{type:`string`,description:`The namespace field`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const g={command:`create`,describe:`Create a namespace`,builder:ee,handler:async f=>s({command:`artifacts namespaces create`,classification:{safeFlags:[`jurisdiction`,`dry-run`]}},f,async()=>{if(f.dryRun){a({command:`cf artifacts namespaces create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/artifacts/namespaces`,pathParams:{},bodyKind:`json`,body:f.body===void 0?l({jurisdiction:u(f.jurisdiction,`jurisdiction`,`text`),namespace:u(f.namespace,`namespace`,`text`)}):c(f.body)});return}let s=await r(f),p=f.local?e:await n();if(f.accountId=p,f.body){let e=c(f.body);i(await o(`Creating`,async()=>s.artifacts.namespaces.create({...e,account_id:p})),{successLabel:`Created`});return}f.namespace===void 0&&(f.namespace=await d(`namespace`,`The namespace field`));let m=l({jurisdiction:u(f.jurisdiction,`jurisdiction`,`text`),namespace:u(f.namespace,`namespace`,`text`)});i(await o(`Creating`,async()=>s.artifacts.namespaces.create({...m,account_id:p})),{successLabel:`Created`})})};function _(e){return e.usage(`$0 artifacts namespaces delete <namespace>
|
|
5
5
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import{t as e}from"./local-
|
|
2
|
+
import{t as e}from"./local-B3OyWKkW.mjs";import{a as t,t as n}from"./context-BsGrhAqB.mjs";import{r}from"./auth-BYFcxn1F.mjs";import{t as i}from"./output-CvQFJkvi.mjs";import{t as a}from"./dry-run-Bq0JAsbX.mjs";import{t as o}from"./progress-5nsUpQL6.mjs";import{t as s}from"./run-UHTbUldP.mjs";import"./telemetry-C3hmM9Q9.mjs";import{t as c}from"./cli-types-DoVT5q_M.mjs";function l(e){return e.usage(`$0 audit-logs list
|
|
3
3
|
|
|
4
4
|
Gets a list of audit logs for an account. Can be filtered by who made the change, on which zone, and the timeframe of the change.`).option(`id`,{type:`string`,description:`Finds a specific log by its ID.`}).option(`export`,{type:`boolean`,description:`Indicates that this request is an export of logs in CSV format.`}).option(`action-type`,{type:`string`,description:`Filters by the action type.`}).option(`actor-ip`,{type:`string`,description:`Filters by the IP address of the request that made the change by specific IP address or valid CIDR Range.`}).option(`actor-email`,{type:`string`,description:`Filters by the email address of the actor that made the change.`}).option(`since`,{type:`string`,description:"Limits the returned results to logs newer than the specified date. A `full-date` that conforms to RFC3339."}).option(`before`,{type:`string`,description:"Limits the returned results to logs older than the specified date. A `full-date` that conforms to RFC3339."}).option(`zone-name`,{type:`string`,description:`Filters by the name of the zone associated to the change.`}).option(`direction`,{type:`string`,description:`Changes the direction of the chronological sorting.`,choices:[`desc`,`asc`]}).option(`per-page`,{type:`number`,description:`Sets the number of results to return per page.`}).option(`page`,{type:`number`,description:`Defines which page of results to return.`}).option(`hide-user-logs`,{type:`boolean`,description:`Indicates whether or not to hide user level audit logs.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const u={command:`list`,describe:`Get account audit logs`,builder:c(l),handler:async c=>s({command:`audit-logs list`,classification:{safeFlags:[`export`,`direction`,`hide-user-logs`,`dry-run`]}},c,async()=>{let s={id:c.id,export:c.export,"action.type":c[`action-type`],"actor.ip":c[`actor-ip`],"actor.email":c[`actor-email`],since:c.since,before:c.before,"zone.name":c[`zone-name`],direction:c.direction,per_page:c[`per-page`],page:c.page,hide_user_logs:c[`hide-user-logs`]};if(c.dryRun){a({command:`cf audit-logs list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/audit_logs`,pathParams:{},query:s,bodyKind:`none`});return}let l=await r(c),u=c.local?e:await n();c.accountId=u,i(await o(`Loading`,async()=>l.auditLogs.list({account_id:u,...s})),{successLabel:`Loaded`})})},d={command:`audit-logs`,describe:`audit-logs`,builder:e=>e.command(u).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};export{d as default};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import{n as e,r as t,t as n}from"./sdk-
|
|
2
|
+
import{n as e,r as t,t as n}from"./sdk-Bx29ZKK3.mjs";import{G as r}from"./dist-DfMipWKR.mjs";import{o as i}from"./chunk-RV27PEH3-Cws_30ln.mjs";import{a,n as o}from"./context-BsGrhAqB.mjs";import{s}from"./oauth-DJW_HyaL.mjs";import{n as c}from"./request-headers-sc4CaZX0.mjs";const l=3e4,u=e.Default;function d(e){return e instanceof FormData||e instanceof Blob||e instanceof ArrayBuffer||ArrayBuffer.isView(e)||e instanceof ReadableStream||e instanceof URLSearchParams}function f(e){return Object.keys(e).some(e=>e.toLowerCase()===`content-type`)}async function p(e){let t=e.headers.get(`content-type`)??``;try{return t.includes(`application/json`)?await e.json():await e.text()}catch{return null}}function m(e,t,n){if(!(n==null||n===``)){if(Array.isArray(n)){for(let r of n)m(e,t,r);return}e.append(t,String(n))}}function h(e){let t=new URLSearchParams;for(let[n,r]of Object.entries(e))m(t,n,r);return t.toString()}function g(e,t,n){let r=new URL(t.endsWith(`/`)?t:`${t}/`),i=new URL(e.startsWith(`/`)?e.slice(1):e,r);if(i.origin!==r.origin)throw Error(`Refusing to send an authenticated request to ${i.origin} (expected ${r.origin})`);let a=h(n??{});return a&&(i.search=a),i.toString()}const _=new WeakMap;async function v(e,n,r,i={}){let a=g(r,_.get(e)??u,i.query),o={...i.headers},s;i.body!==void 0&&(d(i.body)||typeof i.body==`string`&&f(o)?s=i.body:(o[`Content-Type`]??=`application/json`,s=JSON.stringify(i.body)));let c;try{c=await e.fetch(a,{method:n,headers:o,body:s,signal:i.signal},{timeoutInSeconds:i.timeout?i.timeout/1e3:void 0,abortSignal:i.signal})}catch(e){throw i.signal?.aborted?Error(`Request aborted`):e instanceof Error&&e.name===`AbortError`?Error(`Request timed out after ${i.timeout??3e4}ms`):e instanceof Error?Error(`Request failed: ${e.message}`):e}if(!c.ok)throw new t({statusCode:c.status,body:await p(c),rawResponse:{status:c.status,statusText:c.statusText,url:c.url||a,headers:c.headers,redirected:c.redirected,type:c.type}});if(c.status===204)return null;let l=c.headers.get(`content-type`)??``;if(!l.includes(`application/json`)&&i.preserveNonJsonBytes)return Buffer.from(await c.arrayBuffer());let m=await c.text();if(m===``)return null;if(!l.includes(`application/json`))return m;let h=JSON.parse(m);if(h.success===!1)throw new t({message:`API error: ${h.errors?.map(e=>e.message).filter(Boolean).join(`, `)||`unknown error`}`,statusCode:c.status,body:h});return`result`in h?h.result:h}function y(e){let t=e.baseURL??u,r=new n({baseUrl:t,auth:async()=>({headers:{Authorization:`Bearer ${e.apiToken}`}}),headers:e.defaultHeaders,timeoutInSeconds:(e.timeout??3e4)/1e3,maxRetries:0,fetch:e.fetch??globalThis.fetch});return _.set(r,t),r}async function b(){let e=i({allowGlobalAuthKey:!1});if(e&&`apiToken`in e)return e.apiToken;let t=await s();if(t)return t;throw Error(`No authentication token found.
|
|
3
3
|
|
|
4
4
|
Please set one of the following:
|
|
5
5
|
1. Set the CLOUDFLARE_API_TOKEN environment variable
|
|
6
6
|
2. Run 'cf auth login' to authenticate via OAuth
|
|
7
7
|
|
|
8
|
-
For API tokens, visit: https://dash.cloudflare.com/profile/api-tokens`)}async function x(e){let t=await a();if(t)return t;try{let t=await b(),n=r({compliance_region:await o()}),i=e-Date.now();if(i<=0)return;let a=y({apiToken:t,baseURL:n,defaultHeaders:c()}),s={timeoutInSeconds:i/1e3,maxRetries:0},[l,u]=await Promise.allSettled([a.accounts.list({per_page:50},s),a.user.memberships.list({per_page:50},s)]);if(l.status===`rejected`)return;let d=l.value;if((d.result_info?.total_count??d.result.length)>d.result.length)return;let f=d.result;if(u.status===`fulfilled`){let e=u.value.result??[];if((u.value.result_info?.total_count??e.length)>e.length)return;let t=new Set(e.map(e=>e.account?.id).filter(e=>e!==void 0));f=f.filter(e=>t.has(e.id))}return f.length===1?f[0]?.id:void 0}catch{return}}async function S(e){let t=r({compliance_region:await o()});if(e.local){let{createLocalFetch:n}=await import(`./local-
|
|
8
|
+
For API tokens, visit: https://dash.cloudflare.com/profile/api-tokens`)}async function x(e){let t=await a();if(t)return t;try{let t=await b(),n=r({compliance_region:await o()}),i=e-Date.now();if(i<=0)return;let a=y({apiToken:t,baseURL:n,defaultHeaders:c()}),s={timeoutInSeconds:i/1e3,maxRetries:0},[l,u]=await Promise.allSettled([a.accounts.list({per_page:50},s),a.user.memberships.list({per_page:50},s)]);if(l.status===`rejected`)return;let d=l.value;if((d.result_info?.total_count??d.result.length)>d.result.length)return;let f=d.result;if(u.status===`fulfilled`){let e=u.value.result??[];if((u.value.result_info?.total_count??e.length)>e.length)return;let t=new Set(e.map(e=>e.account?.id).filter(e=>e!==void 0));f=f.filter(e=>t.has(e.id))}return f.length===1?f[0]?.id:void 0}catch{return}}async function S(e){let t=r({compliance_region:await o()});if(e.local){let{createLocalFetch:n}=await import(`./local-qOpZjDed.mjs`);return y({apiToken:`cf-local-mode-no-auth`,baseURL:t,defaultHeaders:c(),fetch:n({persistTo:e.persistTo,apiBaseUrl:t})})}return y({apiToken:await b(),baseURL:t,defaultHeaders:c()})}export{v as a,b as i,y as n,x as o,S as r,l as t};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import{r as e}from"./theme-BIWQFmZ0.mjs";import{a as t,n,r}from"./banner-
|
|
2
|
+
import{r as e}from"./theme-BIWQFmZ0.mjs";import{a as t,n,r}from"./banner-ClclgnBn.mjs";import"./ui-BQxRjahW.mjs";import{c as i,d as a,i as o,p as s,r as c,t as l,u}from"./oauth-DJW_HyaL.mjs";import{i as d,n as f}from"./auth-BYFcxn1F.mjs";import{t as p}from"./output-CvQFJkvi.mjs";import{n as m}from"./run-UHTbUldP.mjs";import"./telemetry-C3hmM9Q9.mjs";import{a as h,c as g,i as _,n as v,o as y,r as b,s as x,t as S}from"./login-k3QLVysD.mjs";const C={command:`logout`,describe:`Log out and remove stored credentials`,handler:async a=>{_(a,`logout`,"Run `cf auth delete <name>` to remove a named profile.");let l=c();l!==`default`&&console.log(t(`This directory has profile "${l}" active. \`cf auth logout\` removes the default profile's token, not "${l}".\nTo delete "${l}", run \`cf auth delete ${l}\`.`)),s(`default`);let d=i(),f=!!process.env.CLOUDFLARE_API_TOKEN;if(!d){f?(console.log(r(`No cf OAuth credentials found, but CLOUDFLARE_API_TOKEN environment variable is set.`)),console.log(r(`Unset it with: unset CLOUDFLARE_API_TOKEN`))):(console.log(r(`You are not currently logged in.`)),console.log(n(`Run ${e.code(`cf auth login`)} to authenticate.`)));return}console.log(r(`Logging out...`)),await u(`default`),console.log(`${e.info(`Removed:`)} OAuth tokens from ${e.muted(o())}`),f&&(console.log(``),console.log(t(`CLOUDFLARE_API_TOKEN environment variable is still set.`)),console.log(r(`You will remain authenticated via the env var. Unset it with: unset CLOUDFLARE_API_TOKEN`)))}},w={command:`whoami`,describe:`Show current user and authentication status`,builder:e=>e,handler:async e=>{let t=process.env.CLOUDFLARE_API_TOKEN,n=a(),r;r=t?`CLOUDFLARE_API_TOKEN environment variable`:n?.oauth_token?`OAuth token from ${o()}`:`none`;let i;try{i=await d()}catch{p({authenticated:!1,error:`Not logged in`});return}let s=f({apiToken:i}),c,u=[],[m,h]=await Promise.allSettled([s.user.get(),l()]);if(m.status===`fulfilled`){let e=m.value;e&&`email`in e&&typeof e.email==`string`&&(c=e.email)}else process.env.DEBUG&&console.error(`User lookup error:`,m.reason);h.status===`fulfilled`?u=h.value:process.env.DEBUG&&console.error(`Account lookup error:`,h.reason);let g=m.status===`fulfilled`||h.status===`fulfilled`,_={authenticated:!0,authSource:r,tokenValid:g,...c&&{email:c},accounts:u};n?.oauth_token&&(_.scopes=n.scopes,_.expiresAt=n.expiration_time),p(_)}},T={command:`auth`,describe:`Manage authentication and profiles`,builder:e=>e.command(m(S,{command:`auth login`,classification:v})).command(E(C,`auth logout`)).command(E(w,`auth whoami`)).command(E(h,`auth create`,[`browser`,`device`])).command(E(x,`auth delete`)).command(E(b,`auth activate`)).command(E(y,`auth deactivate`)).command(E(g,`auth list`)).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function E(e,t,n=[],r){return m(e,{command:t,classification:{safeFlags:n,shortFlagAliases:r}})}export{T as default};
|