cf 1.0.0-beta.15 → 1.0.0-beta.16
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-17K-TRhO.mjs} +1 -1
- package/dist/{access-BzmXSwzj.mjs → access-BwB7sg1D.mjs} +1 -1
- package/dist/{account-tags-2qPWbW17.mjs → account-tags-povXTDAu.mjs} +1 -1
- package/dist/{accounts-B0Byg-AV.mjs → accounts-BnIGu_ac.mjs} +39 -39
- package/dist/{acm-DgAu0cnk.mjs → acm-CQRcu_zw.mjs} +3 -3
- package/dist/{addressing-J1oa0ML2.mjs → addressing-Qcm9jd3C.mjs} +14 -14
- package/dist/{agent-memory-4KGou-tm.mjs → agent-memory-B3xN9I6-.mjs} +1 -1
- package/dist/{ai-WY7wVQfA.mjs → ai-BRKOCckA.mjs} +1 -1
- package/dist/{ai-audit-D38HaEoZ.mjs → ai-audit-Cd9Rc2Fc.mjs} +1 -1
- package/dist/{ai-gateway-C0gIipT8.mjs → ai-gateway-BWU5064V.mjs} +6 -6
- package/dist/{ai-search-ClwnPU-9.mjs → ai-search-CJ3b8eot.mjs} +23 -23
- package/dist/{ai-security-BIsvFPYV.mjs → ai-security-Dn0Ee6QS.mjs} +1 -1
- package/dist/{alerting-MHhv28oO.mjs → alerting-BXTiMfXo.mjs} +1 -1
- package/dist/{analytics-BfBz7bqB.mjs → analytics-Jyd04TRW.mjs} +1 -1
- package/dist/{analytics_engine-CXVdBF1n.mjs → analytics-engine-CzrNfUeh.mjs} +2 -2
- package/dist/{api-security-DUCfcdC1.mjs → api-security-DRBHZaf_.mjs} +2 -2
- package/dist/{argo-CUlzI4v3.mjs → argo-DiQt0pSb.mjs} +1 -1
- package/dist/{artifacts-BLfWGzBg.mjs → artifacts-eBZ4YN53.mjs} +1 -1
- package/dist/audit-logs-Bb4HTZay.mjs +4 -0
- package/dist/{auth-CGRemu5W.mjs → auth-C6My1gI6.mjs} +1 -1
- package/dist/auth-OFqV2M4q.mjs +2 -0
- package/dist/{auth-C6u9qIGO.mjs → auth-eVI_UEt8.mjs} +1 -1
- package/dist/{auth-token-DkkYg4DP.mjs → auth-token-Cfj2yehs.mjs} +1 -1
- package/dist/{basin-catalog-CrKRYJ0b.mjs → basin-catalog-Cwk1RSMX.mjs} +1 -1
- package/dist/{billing-NxehgXrR.mjs → billing-CfV8oi6A.mjs} +7 -7
- package/dist/{bot-management-C993iQKL.mjs → bot-management-CH4_Kewx.mjs} +1 -1
- package/dist/{botnet-feed-CZ4vYk5y.mjs → botnet-feed-Cg_Wp8ei.mjs} +1 -1
- package/dist/{brand-protection-ADVgIi0l.mjs → brand-protection-Cp2ckWou.mjs} +1 -1
- package/dist/browser-run-CfQ30dB6.mjs +42 -0
- package/dist/{builds-DqtiTH7p.mjs → builds-B2RBgVL9.mjs} +1 -1
- package/dist/{cache-hX5QxmI0.mjs → cache-yvrYPvRI.mjs} +1 -1
- package/dist/{certificate-authorities-BOcybjc1.mjs → certificate-authorities-BdMRaOnD.mjs} +1 -1
- package/dist/{cli-R8h3OKZI.mjs → cli-CsnoQloF.mjs} +1 -1
- package/dist/{client-certificates-Bez_ArKE.mjs → client-certificates-CuWGvZSr.mjs} +1 -1
- package/dist/{client-side-security-CSmA50Bv.mjs → client-side-security-D50iZjd_.mjs} +1 -1
- package/dist/{cloud-connector-0Wivqi7S.mjs → cloud-connector-wvSGdxWT.mjs} +1 -1
- package/dist/{cloudforce-one-J-rU6k1U.mjs → cloudforce-one-j6vlmaMB.mjs} +21 -21
- package/dist/{command-0BOb1pgV.mjs → command-74P4_CTx.mjs} +1 -1
- package/dist/{command-BIsI-mMX.mjs → command-BDpm-U8z.mjs} +1 -1
- package/dist/{command-BG-kLOnS.mjs → command-BSbhJRmu.mjs} +1 -1
- package/dist/{command-DIs-Nqtl.mjs → command-BbO3sBQ2.mjs} +1 -1
- package/dist/{command-BCJN-ZM2.mjs → command-CM_f48gs.mjs} +1 -1
- package/dist/{command-BWQIKu6I.mjs → command-CmUtmu5j.mjs} +1 -1
- package/dist/{command-BKDbbA-L.mjs → command-DFRsim8q.mjs} +1 -1
- package/dist/{command-DPn5ANHs.mjs → command-DQojhTEQ.mjs} +1 -1
- package/dist/{command-CKW6UhTh.mjs → command-DiqRELHF.mjs} +1 -1
- package/dist/{command-Bdy69UFU.mjs → command-Dr4PEvB2.mjs} +1 -1
- package/dist/{completions-CpNGTlUX.mjs → completions-oD1EcuHk.mjs} +1 -1
- package/dist/{connector-interrupts-CH-DaLuo.mjs → connector-interrupts-DP4rbOe8.mjs} +1 -1
- package/dist/{connector-telemetry-events-X3Fod9nl.mjs → connector-telemetry-events-BQGBQwzR.mjs} +1 -1
- package/dist/{connector-telemetry-snapshots-D-WR4npQ.mjs → connector-telemetry-snapshots-DBO0Mdcj.mjs} +1 -1
- package/dist/{connectors-CORKD31m.mjs → connectors-BSVr3Kz1.mjs} +1 -1
- package/dist/{containers-Di3_Vopq.mjs → containers-BOpKpipz.mjs} +1 -1
- package/dist/{containers-BboUbx3k.mjs → containers-BTqAeVV2.mjs} +5 -5
- package/dist/{content-scan-DXGREAXa.mjs → content-scan-B9Keyxe-.mjs} +1 -1
- package/dist/{context-A6T-NKPI.mjs → context-B-vEsyrK.mjs} +1 -1
- package/dist/{cps-1BoOLtTq.mjs → cps-VRP794c5.mjs} +1 -1
- package/dist/csam-scanner-C1jOgXVu.mjs +10 -0
- package/dist/{ct-alerting-DlH4ILQo.mjs → ct-alerting-Y9vfa6Fo.mjs} +1 -1
- package/dist/{custom-certificates-zJqJZ2Th.mjs → custom-certificates-CojTEC0E.mjs} +4 -4
- package/dist/{custom-csrs-DoLIGqYL.mjs → custom-csrs-DM5X-K6H.mjs} +3 -3
- package/dist/{custom-hostnames-YfV-aoAK.mjs → custom-hostnames-BBjqaiFF.mjs} +6 -6
- package/dist/{custom-nameservers-BV43gmgt.mjs → custom-nameservers-C0NDMLPJ.mjs} +1 -1
- package/dist/{custom-pages-CoOU1Cdx.mjs → custom-pages-M4RUxcn6.mjs} +6 -6
- package/dist/{d1-DujBmzLa.mjs → d1-hin5PmxW.mjs} +1 -1
- package/dist/{dcv-delegation-CPLsVYOl.mjs → dcv-delegation-KOO8syyQ.mjs} +1 -1
- package/dist/{deploy-wNujfGUJ.mjs → deploy-Bo7FtE44.mjs} +1 -1
- package/dist/{deploy-context-tEhwEXnA.mjs → deploy-context-ClvBD87y.mjs} +1 -1
- package/dist/{diagnostics-B3TYPVRi.mjs → diagnostics-LZuMrGjK.mjs} +1 -1
- package/dist/{dls-CWm1HRF0.mjs → dls-Bq8k3iy-.mjs} +7 -7
- package/dist/{dns-firewall-BooBP9ap.mjs → dns-firewall-zavP5Qxj.mjs} +1 -1
- package/dist/{dns-CjAFU7Z9.mjs → dns-ry5E2Bsa.mjs} +5 -5
- package/dist/{docs-C5XB7HdG.mjs → docs-B08YtL0U.mjs} +1 -1
- package/dist/{durable-objects-CSrMQDCE.mjs → durable-objects-B9fo41B1.mjs} +1 -1
- package/dist/{email-auth-Bp1Mui-n.mjs → email-auth-D9LGjFlh.mjs} +1 -1
- package/dist/{email-routing-CVF6SwQt.mjs → email-routing-6iDnNPhY.mjs} +4 -4
- package/dist/{email-security-mYZtazae.mjs → email-security-ty4ufRnJ.mjs} +1 -1
- package/dist/{email-sending-BqaKU_Xu.mjs → email-sending-d7LO_Cz_.mjs} +14 -14
- package/dist/field-extractors-DkgQ7PSw.mjs +9 -0
- package/dist/{firewall-DgTDsYOt.mjs → firewall-Q88YyEwD.mjs} +11 -11
- package/dist/{flagship-Db3PxxyZ.mjs → flagship-CzI8zhd6.mjs} +1 -1
- package/dist/{fraud-BEOQczy8.mjs → fraud-CvFXTR0w.mjs} +1 -1
- package/dist/{google-tag-gateway-DjLQ9wo0.mjs → google-tag-gateway-Y2zbyey8.mjs} +1 -1
- package/dist/{healthchecks-C3ScnKss.mjs → healthchecks-4Hz-6xYi.mjs} +7 -7
- package/dist/{hostnames-DU0k-xO9.mjs → hostnames-B3k7fIUL.mjs} +1 -1
- package/dist/{hyperdrive-IpCCLCRd.mjs → hyperdrive-BWGYz95H.mjs} +3 -3
- package/dist/{iam-96CYM8Vw.mjs → iam-AXco_qmt.mjs} +1 -1
- package/dist/{images-AB9EgZgT.mjs → images-BzYh8y0u.mjs} +1 -1
- package/dist/index.mjs +1 -1
- package/dist/{init-D2nPoW4f.mjs → init-DlenHBtS.mjs} +1 -1
- package/dist/{intel-BKb4RLvS.mjs → intel-BBi3i_GU.mjs} +1 -1
- package/dist/{ips-z9APCV_b.mjs → ips-CWG2b7AM.mjs} +1 -1
- package/dist/{k2-Bv-HiJ29.mjs → k2-DXdMe3Cb.mjs} +1 -1
- package/dist/{keyless-certificates-ChgSGHq4.mjs → keyless-certificates-B4ta_OGS.mjs} +4 -4
- package/dist/{keys-BhngDsDa.mjs → keys-B9zvFzrf.mjs} +1 -1
- package/dist/{kv-CB5MQVGP.mjs → kv-FUd7UdDu.mjs} +3 -3
- package/dist/{lazy-command-CaZ1kdlW.mjs → lazy-command-BC8rIlHu.mjs} +1 -1
- package/dist/{leaked-credential-checks-Bsi2WpSU.mjs → leaked-credential-checks-BufVA9vL.mjs} +3 -3
- package/dist/{load-balancers-0gXZNCeI.mjs → load-balancers-CWd9mSWM.mjs} +40 -40
- package/dist/{login-CiQGR8ha.mjs → login-BJr2PBaJ.mjs} +1 -1
- package/dist/{login-Ik98G4K6.mjs → login-DVbXZ_Tv.mjs} +1 -1
- package/dist/{logo-matches-DmoF5Otu.mjs → logo-matches-BluaPvMa.mjs} +1 -1
- package/dist/{logos-BL6ohIMH.mjs → logos-CXtmYWEJ.mjs} +1 -1
- package/dist/{logpush-UVopW68t.mjs → logpush-DCYgrqz0.mjs} +6 -6
- package/dist/{logs-BVfxiEiM.mjs → logs-as60IP29.mjs} +1 -1
- package/dist/{magic-cloud-networking-B5S3aM6f.mjs → magic-cloud-networking-0RsHugUF.mjs} +1 -1
- package/dist/{magic-network-monitoring-CDSJPP47.mjs → magic-network-monitoring-CPqvZdcb.mjs} +1 -1
- package/dist/{magic-transit-TcDTKM43.mjs → magic-transit-ClPyGzOE.mjs} +1 -1
- package/dist/{managed-defense-C88HL0pg.mjs → managed-defense-P4_QWSbK.mjs} +5 -5
- package/dist/{managed-transforms-Ja41Tahl.mjs → managed-transforms-CUwQXMij.mjs} +1 -1
- package/dist/{matches-BL_Y-9Yq.mjs → matches-BjckDBW1.mjs} +1 -1
- package/dist/{mcp-BWp5Q09R.mjs → mcp-C2EG2c7L.mjs} +1 -1
- package/dist/{mesh-lFPLRWhV.mjs → mesh-CpMZA7Xt.mjs} +1 -1
- package/dist/{monetization-BIc4Bwo2.mjs → monetization-DypuCZmU.mjs} +1 -1
- package/dist/{mtls-certificates-CVBw-Jli.mjs → mtls-certificates-B5AWTU6u.mjs} +1 -1
- package/dist/{network-Wig0qbaC.mjs → network-DQ5Ridgy.mjs} +1 -1
- package/dist/{network-interconnects-C16z1HuQ.mjs → network-interconnects-ifU4JhGE.mjs} +1 -1
- package/dist/{o11y-Bhy4qDRm.mjs → o11y-CzssfRHt.mjs} +2 -2
- package/dist/{oauth-oWaW7ICv.mjs → oauth-BDdhqasa.mjs} +1 -1
- package/dist/{oauth-CfEedDZi.mjs → oauth-BNTiErBG.mjs} +1 -1
- package/dist/{oauth-clients-eXjmK5yf.mjs → oauth-clients-gknNcBdV.mjs} +1 -1
- package/dist/{oauth-scopes-DZWn50EA.mjs → oauth-scopes-BJeSanuF.mjs} +1 -1
- package/dist/{organization-QdAQTrKa.mjs → organization-CXAM41sd.mjs} +3 -3
- package/dist/{organizations-CgAQYdK5.mjs → organizations-kfFFW4uO.mjs} +1 -1
- package/dist/{origin-ca-certificates-BklXqp8X.mjs → origin-ca-certificates-DwhYV3m_.mjs} +1 -1
- package/dist/{origin-post-quantum-encryption-Dg16ueT4.mjs → origin-post-quantum-encryption-DfrnptJ1.mjs} +1 -1
- package/dist/{origin-tls-client-auth-d8bDU5zU.mjs → origin-tls-client-auth-COSxTc2q.mjs} +6 -6
- package/dist/{page-rules-CgMkC6YR.mjs → page-rules-ByrDMDBZ.mjs} +5 -5
- package/dist/{pages-CkBtOOf8.mjs → pages-DuGcBC6k.mjs} +9 -9
- package/dist/{pay-per-crawl-CnGXOWyz.mjs → pay-per-crawl-B3_Gn9Cj.mjs} +1 -1
- package/dist/{pay-per-use-HbfxpATr.mjs → pay-per-use-49EXt75f.mjs} +1 -1
- package/dist/{pipelines-CnO9CCs0.mjs → pipelines-Bvgh1BQZ.mjs} +1 -1
- package/dist/{precursor-Bc55XJdQ.mjs → precursor-VobQf--m.mjs} +1 -1
- package/dist/{previews-C7vZrajd.mjs → previews-DkwFHNRx.mjs} +1 -1
- package/dist/{progress-D5po7ScB.mjs → progress-R-1tIuep.mjs} +1 -1
- package/dist/{prompt-BAJpE3jV.mjs → prompt-dgLm0iFJ.mjs} +1 -1
- package/dist/{queries-BJAH4B74.mjs → queries-EbIadtC5.mjs} +1 -1
- package/dist/{queues-D4G8vvwi.mjs → queues-C4GZ-O3f.mjs} +4 -4
- package/dist/{r2-CJ8rD6Jb.mjs → r2-DEuFfWBR.mjs} +4 -4
- package/dist/{radar-DgaxOdcd.mjs → radar-CDOERVcR.mjs} +1 -1
- package/dist/{raw-fetch-yY-wX5Xx.mjs → raw-fetch-BapeoreV.mjs} +1 -1
- package/dist/{realtime-DU09m7L7.mjs → realtime-D_A9Qgly.mjs} +6 -6
- package/dist/{registrar-Cj7OfvGs.mjs → registrar-X1YLlnmg.mjs} +1 -1
- package/dist/{registrar-sandbox-CA0Mua-j.mjs → registrar-sandbox-BF3cYO3n.mjs} +1 -1
- package/dist/reporting-BWm9jIF8.mjs +14 -0
- package/dist/{request-headers-D_eQn93b.mjs → request-headers-BRxv6NkA.mjs} +1 -1
- package/dist/{request-tracers-VBD4R3s3.mjs → request-tracers-CHWpiejG.mjs} +1 -1
- package/dist/{resource-sharing-BtUF3psS.mjs → resource-sharing-C186jZv0.mjs} +1 -1
- package/dist/{resource-tagging--90INP8_.mjs → resource-tagging-BTagOZli.mjs} +1 -1
- package/dist/{rules-CcwPngVo.mjs → rules-DYnGIU_0.mjs} +10 -10
- package/dist/{rulesets-CfdruY82.mjs → rulesets-BcNrbVcq.mjs} +15 -15
- package/dist/{rum-RLkdfSL7.mjs → rum-BDyRecfp.mjs} +1 -1
- package/dist/{run-DASYqJsY.mjs → run-BvDCuZ8q.mjs} +1 -1
- package/dist/run-roYb_Odh.mjs +2 -0
- package/dist/{schema-flags-CShtn7ya.mjs → schema-flags-DcKjAxI1.mjs} +1 -1
- package/dist/{scim-BZYsTPIL.mjs → scim-zn-CNCsc.mjs} +1 -1
- package/dist/{secrets-store-C_-FkSH_.mjs → secrets-store-CFhyQUV6.mjs} +1 -1
- package/dist/{security-insights-BVBEaZmD.mjs → security-insights-D8XgtCed.mjs} +1 -1
- package/dist/{security-txt--IoHrHee.mjs → security-txt-CCM-Vro0.mjs} +1 -1
- package/dist/{shared-zNQNv1im.mjs → shared-ouAF7o4S.mjs} +1 -1
- package/dist/{smart-shield-CByC4_60.mjs → smart-shield-DwW7N92r.mjs} +5 -5
- package/dist/{snippets-DB-jiZAV.mjs → snippets-B2jBY0m_.mjs} +1 -1
- package/dist/{spectrum-Bs2g1BmK.mjs → spectrum-Cf_4cGE8.mjs} +9 -9
- package/dist/{speed-Bq4evEnJ.mjs → speed-DoXdyIYK.mjs} +1 -1
- package/dist/{sql-XGci7hZC.mjs → sql-Bze4h80q.mjs} +1 -1
- package/dist/{src-GiuwAT55.mjs → src-BguQDHjS.mjs} +7 -7
- package/dist/{ssl-KJTLW1NR.mjs → ssl-u_0gUhPA.mjs} +5 -5
- package/dist/{stream-BotgYspF.mjs → stream-BcReYIHJ.mjs} +8 -8
- package/dist/{submit-C5VytaHP.mjs → submit-ldFVNfNC.mjs} +1 -1
- package/dist/{tags-3Hq-B9qp.mjs → tags-D_Hc_A-r.mjs} +1 -1
- package/dist/{telemetry-3FJOXl_C.mjs → telemetry-Cojgz4Sv.mjs} +1 -1
- package/dist/telemetry-Ct_2AaO4.mjs +2 -0
- package/dist/{tenant-BgX5onPc.mjs → tenant-AZ0EAsmT.mjs} +1 -1
- package/dist/{tenant-custom-nameservers-BVG8v1Xo.mjs → tenant-custom-nameservers-aozjaasc.mjs} +2 -2
- package/dist/{tunnels-CThOI3qH.mjs → tunnels-CXez5LPB.mjs} +3 -3
- package/dist/{turnstile-BgZaUx-g.mjs → turnstile-B2NQ8Nsk.mjs} +1 -1
- package/dist/{update-check-jb89ih_g.mjs → update-check-BlyKN8m0.mjs} +1 -1
- package/dist/update-check-BnGDxswi.mjs +2 -0
- package/dist/update-check-worker.mjs +1 -1
- package/dist/{url-info-DQERN0Xq.mjs → url-info-D_UqGiWD.mjs} +1 -1
- package/dist/{url-normalization-Cb1hofqv.mjs → url-normalization-CF1YHpIN.mjs} +1 -1
- package/dist/{url-scanner-gHgx1bW7.mjs → url-scanner-ChF3GO2U.mjs} +1 -1
- package/dist/{user-CdKzIuSi.mjs → user-BfWRsdJh.mjs} +58 -58
- package/dist/{values-EwA8Sx0w.mjs → values-CLfxkAUJ.mjs} +1 -1
- package/dist/{vectorize-DejgIJIv.mjs → vectorize-CRYbWKg5.mjs} +1 -1
- package/dist/version-CVlh2Zaq.mjs +2 -0
- package/dist/{waiting-rooms-BNR1HvAP.mjs → waiting-rooms-Crp7MVd9.mjs} +18 -18
- package/dist/{web-assets-iglnzkTV.mjs → web-assets-CgyrPnT-.mjs} +1 -1
- package/dist/{web3-JBUU6IVt.mjs → web3-Cd0Yd0eQ.mjs} +11 -11
- package/dist/{workers-CDp4kLTJ.mjs → workers-CTwJpTfJ.mjs} +2 -2
- package/dist/{workers-builds-CSb9Dglt.mjs → workers-builds-f2nVw7EZ.mjs} +1 -1
- package/dist/{workers-for-platforms-D4srNZvt.mjs → workers-for-platforms-DjeKp2uy.mjs} +1 -1
- package/dist/{workers-vpc-LPC8TadH.mjs → workers-vpc-B_L3TEg2.mjs} +1 -1
- package/dist/{workflows-DN_VqWJC.mjs → workflows-CBPGf65x.mjs} +1 -1
- package/dist/{zaraz-DDErl5yc.mjs → zaraz-3VDxl0gF.mjs} +1 -1
- package/dist/{zero-trust-M88XX3uD.mjs → zero-trust-B9xY8zcn.mjs} +27 -27
- package/dist/{zone-BsGvedmN.mjs → zone-CmwVqTI2.mjs} +1 -1
- package/dist/{zones-l_sRKrVl.mjs → zones-Bf0VVpMf.mjs} +3 -3
- package/package.json +3 -2
- 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/clear-BW9vLgI3.mjs +0 -2
- 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
|
@@ -1,28 +1,28 @@
|
|
|
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-eVI_UEt8.mjs";import{i as n}from"./context-B-vEsyrK.mjs";import{t as r}from"./output-Co4xdFf6.mjs";import{t as i}from"./dry-run-C2KjGX10.mjs";import{t as a}from"./progress-R-1tIuep.mjs";import{t as o}from"./run-BvDCuZ8q.mjs";import"./telemetry-Ct_2AaO4.mjs";import{n as s,r as c,t as l}from"./body-parser-DkHKPkJ7.mjs";import{n as u}from"./input-validation-D7z60HJH.mjs";import{a as d,i as f,n as p}from"./prompt-dgLm0iFJ.mjs";var m={method:`POST`,path:t=>e`/zones/${t.zone_id}/web3/hostnames`,body:`json`};function h(e){return e.usage(`$0 web3 hostnames create
|
|
3
3
|
|
|
4
4
|
Create Web3 Hostname`).option(`description`,{type:`string`,description:`Specify an optional description of the hostname.`}).option(`dnslink`,{type:`string`,description:`Specify the DNSLink value used if the target is ipfs.`}).option(`name`,{type:`string`,description:`Specify the hostname that points to the target gateway via CNAME.`}).option(`target`,{type:`string`,description:`Specify the target gateway of the hostname.`,choices:[`ethereum`,`ipfs`,`ipfs_universal_path`]}).coerce(`target`,e=>u(e,`target`,`text`)).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 Web3 Hostname`,builder:h,handler:async e=>o({command:`web3 hostnames create`,classification:{safeFlags:[`target`,`dry-run`]}},e,async()=>{if(e.dryRun){i({command:`cf web3 hostnames create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/web3/hostnames`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``)},bodyKind:`json`,body:e.body===void 0?l({description:u(e.description,`description`,`text`),dnslink:u(e.dnslink,`dnslink`,`text`),name:u(e.name,`name`,`text`),target:e.target}):s(e.body)});return}let o=await t(e),c=await n({zone:e.zone},o,{quiet:e.quiet});if(e.zoneId=c,e.body){let t=s(e.body),n=await a(`Creating`,async()=>o.send(m,{body:t,zone_id:c}));r(n,{successLabel:`Created`});return}e.name===void 0&&(e.name=await d(`name`,`Specify the hostname that points to the target gateway via CNAME.`)),e.target===void 0&&(e.target=await f(`target`,`Specify the target gateway of the hostname.`,[`ethereum`,`ipfs`,`ipfs_universal_path`]));let p=l({description:u(e.description,`description`,`text`),dnslink:u(e.dnslink,`dnslink`,`text`),name:u(e.name,`name`,`text`),target:e.target}),h=await a(`Creating`,async()=>o.send(m,{body:p,zone_id:c}));r(h,{successLabel:`Created`})})};var _={method:`DELETE`,path:t=>e`/zones/${t.zone_id}/web3/hostnames/${t.identifier}`};function v(e){return e.usage(`$0 web3 hostnames delete <identifier>
|
|
5
5
|
|
|
6
|
-
Delete Web3 Hostname`).positional(`identifier`,{type:`string`,description:`Specify the identifier of the hostname.`,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 y={command:`delete <identifier>`,describe:`Delete Web3 Hostname`,builder:v,handler:async e=>o({command:`web3 hostnames delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{if(e.dryRun){i({command:`cf web3 hostnames delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/web3/hostnames/${e.identifier==null?`<identifier>`:encodeURIComponent(String(e.identifier))}`,pathParams:{
|
|
6
|
+
Delete Web3 Hostname`).positional(`identifier`,{type:`string`,description:`Specify the identifier of the hostname.`,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 y={command:`delete <identifier>`,describe:`Delete Web3 Hostname`,builder:v,handler:async e=>o({command:`web3 hostnames delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{if(e.dryRun){i({command:`cf web3 hostnames delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/web3/hostnames/${e.identifier==null?`<identifier>`:encodeURIComponent(String(e.identifier))}`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``),identifier:String(e.identifier??``)},bodyKind:`none`});return}let o=await t(e),s=await n({zone:e.zone},o,{quiet:e.quiet});if(e.zoneId=s,!await p({force:!!e.force})){process.stderr.write(`Aborted.
|
|
7
7
|
`);return}let c=await a(`Deleting`,async()=>o.send(_,{zone_id:s,identifier:e.identifier}));r(c,{successLabel:`Deleted`})})};var b={method:`PATCH`,path:t=>e`/zones/${t.zone_id}/web3/hostnames/${t.identifier}`,body:`json`};function x(e){return e.usage(`$0 web3 hostnames edit <identifier>
|
|
8
8
|
|
|
9
|
-
Edit Web3 Hostname`).positional(`identifier`,{type:`string`,description:`Specify the identifier of the hostname.`,demandOption:!0}).option(`description`,{type:`string`,description:`Specify an optional description of the hostname.`}).option(`dnslink`,{type:`string`,description:`Specify the DNSLink value used if the target is ipfs.`}).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:`edit <identifier>`,describe:`Edit Web3 Hostname`,builder:x,handler:async e=>o({command:`web3 hostnames edit`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){i({command:`cf web3 hostnames edit`,method:`PATCH`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/web3/hostnames/${e.identifier==null?`<identifier>`:encodeURIComponent(String(e.identifier))}`,pathParams:{
|
|
9
|
+
Edit Web3 Hostname`).positional(`identifier`,{type:`string`,description:`Specify the identifier of the hostname.`,demandOption:!0}).option(`description`,{type:`string`,description:`Specify an optional description of the hostname.`}).option(`dnslink`,{type:`string`,description:`Specify the DNSLink value used if the target is ipfs.`}).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:`edit <identifier>`,describe:`Edit Web3 Hostname`,builder:x,handler:async e=>o({command:`web3 hostnames edit`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){i({command:`cf web3 hostnames edit`,method:`PATCH`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/web3/hostnames/${e.identifier==null?`<identifier>`:encodeURIComponent(String(e.identifier))}`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``),identifier:String(e.identifier??``)},bodyKind:`json`,body:e.body===void 0?l({description:u(e.description,`description`,`text`),dnslink:u(e.dnslink,`dnslink`,`text`)}):s(e.body)});return}let o=await t(e),c=await n({zone:e.zone},o,{quiet:e.quiet});if(e.zoneId=c,e.body){let t=s(e.body),n=await a(`Updating`,async()=>o.send(b,{body:t,zone_id:c,identifier:e.identifier}));r(n,{successLabel:`Updated`});return}let d=l({description:u(e.description,`description`,`text`),dnslink:u(e.dnslink,`dnslink`,`text`)}),f=await a(`Updating`,async()=>o.send(b,{body:d,zone_id:c,identifier:e.identifier}));r(f,{successLabel:`Updated`})})};var C={method:`GET`,path:t=>e`/zones/${t.zone_id}/web3/hostnames/${t.identifier}`};function w(e){return e.usage(`$0 web3 hostnames get <identifier>
|
|
10
10
|
|
|
11
|
-
Web3 Hostname Details`).positional(`identifier`,{type:`string`,description:`Specify the identifier of the hostname.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const T={command:`get <identifier>`,describe:`Web3 Hostname Details`,builder:w,handler:async e=>o({command:`web3 hostnames get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){i({command:`cf web3 hostnames get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/web3/hostnames/${e.identifier==null?`<identifier>`:encodeURIComponent(String(e.identifier))}`,pathParams:{
|
|
11
|
+
Web3 Hostname Details`).positional(`identifier`,{type:`string`,description:`Specify the identifier of the hostname.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const T={command:`get <identifier>`,describe:`Web3 Hostname Details`,builder:w,handler:async e=>o({command:`web3 hostnames get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){i({command:`cf web3 hostnames get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/web3/hostnames/${e.identifier==null?`<identifier>`:encodeURIComponent(String(e.identifier))}`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``),identifier:String(e.identifier??``)},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(C,{zone_id:s,identifier:e.identifier}));r(c,{successLabel:`Loaded`})})};var E={method:`POST`,path:t=>e`/zones/${t.zone_id}/web3/hostnames/${t.identifier}/ipfs_universal_path/content_list/entries`,body:`json`};function D(e){return e.usage(`$0 web3 hostnames ipfs-universal-paths content-lists entries create <identifier>
|
|
12
12
|
|
|
13
|
-
Create IPFS Universal Path Gateway Content List Entry`).positional(`identifier`,{type:`string`,description:`Specify the identifier of the hostname.`,demandOption:!0}).option(`content`,{type:`string`,description:`Specify the CID or content path of content to block.`}).option(`description`,{type:`string`,description:`Specify an optional description of the content list entry.`}).option(`type`,{type:`string`,description:`Specify the type of content list entry to block.`,choices:[`cid`,`content_path`]}).coerce(`type`,e=>u(e,`type`,`text`)).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 O={command:`create <identifier>`,describe:`Create IPFS Universal Path Gateway Content List Entry`,builder:D,handler:async e=>o({command:`web3 hostnames ipfs-universal-paths content-lists entries create`,classification:{safeFlags:[`type`,`dry-run`]}},e,async()=>{if(e.dryRun){i({command:`cf web3 hostnames ipfs-universal-paths content-lists entries create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/web3/hostnames/${e.identifier==null?`<identifier>`:encodeURIComponent(String(e.identifier))}/ipfs_universal_path/content_list/entries`,pathParams:{
|
|
13
|
+
Create IPFS Universal Path Gateway Content List Entry`).positional(`identifier`,{type:`string`,description:`Specify the identifier of the hostname.`,demandOption:!0}).option(`content`,{type:`string`,description:`Specify the CID or content path of content to block.`}).option(`description`,{type:`string`,description:`Specify an optional description of the content list entry.`}).option(`type`,{type:`string`,description:`Specify the type of content list entry to block.`,choices:[`cid`,`content_path`]}).coerce(`type`,e=>u(e,`type`,`text`)).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 O={command:`create <identifier>`,describe:`Create IPFS Universal Path Gateway Content List Entry`,builder:D,handler:async e=>o({command:`web3 hostnames ipfs-universal-paths content-lists entries create`,classification:{safeFlags:[`type`,`dry-run`]}},e,async()=>{if(e.dryRun){i({command:`cf web3 hostnames ipfs-universal-paths content-lists entries create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/web3/hostnames/${e.identifier==null?`<identifier>`:encodeURIComponent(String(e.identifier))}/ipfs_universal_path/content_list/entries`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``),identifier:String(e.identifier??``)},bodyKind:`json`,body:e.body===void 0?l({content:u(e.content,`content`,`text`),description:u(e.description,`description`,`text`),type:e.type}):s(e.body)});return}let o=await t(e),c=await n({zone:e.zone},o,{quiet:e.quiet});if(e.zoneId=c,e.body){let t=s(e.body),n=await a(`Creating`,async()=>o.send(E,{body:t,zone_id:c,identifier:e.identifier}));r(n,{successLabel:`Created`});return}e.content===void 0&&(e.content=await d(`content`,`Specify the CID or content path of content to block.`)),e.type===void 0&&(e.type=await f(`type`,`Specify the type of content list entry to block.`,[`cid`,`content_path`]));let p=l({content:u(e.content,`content`,`text`),description:u(e.description,`description`,`text`),type:e.type}),m=await a(`Creating`,async()=>o.send(E,{body:p,zone_id:c,identifier:e.identifier}));r(m,{successLabel:`Created`})})};var k={method:`DELETE`,path:t=>e`/zones/${t.zone_id}/web3/hostnames/${t.identifier}/ipfs_universal_path/content_list/entries/${t.content_list_entry_identifier}`};function A(e){return e.usage(`$0 web3 hostnames ipfs-universal-paths content-lists entries delete <content-list-entry-identifier>
|
|
14
14
|
|
|
15
|
-
Delete IPFS Universal Path Gateway Content List Entry`).positional(`content-list-entry-identifier`,{type:`string`,description:`Specify the identifier of the hostname.`,demandOption:!0}).option(`identifier`,{type:`string`,description:`Specify the identifier of the hostname.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`force`,{type:`boolean`,alias:`f`,description:`Skip confirmation (useful in scripts and CI)`,default:!1})}const j={command:`delete <content-list-entry-identifier>`,describe:`Delete IPFS Universal Path Gateway Content List Entry`,builder:A,handler:async e=>o({command:`web3 hostnames ipfs-universal-paths content-lists entries delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{if(e.dryRun){i({command:`cf web3 hostnames ipfs-universal-paths content-lists entries delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/web3/hostnames/${e.identifier==null?`<identifier>`:encodeURIComponent(String(e.identifier))}/ipfs_universal_path/content_list/entries/${e[`content-list-entry-identifier`]==null?`<content-list-entry-identifier>`:encodeURIComponent(String(e[`content-list-entry-identifier`]))}`,pathParams:{"
|
|
15
|
+
Delete IPFS Universal Path Gateway Content List Entry`).positional(`content-list-entry-identifier`,{type:`string`,description:`Specify the identifier of the hostname.`,demandOption:!0}).option(`identifier`,{type:`string`,description:`Specify the identifier of the hostname.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`force`,{type:`boolean`,alias:`f`,description:`Skip confirmation (useful in scripts and CI)`,default:!1})}const j={command:`delete <content-list-entry-identifier>`,describe:`Delete IPFS Universal Path Gateway Content List Entry`,builder:A,handler:async e=>o({command:`web3 hostnames ipfs-universal-paths content-lists entries delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{if(e.dryRun){i({command:`cf web3 hostnames ipfs-universal-paths content-lists entries delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/web3/hostnames/${e.identifier==null?`<identifier>`:encodeURIComponent(String(e.identifier))}/ipfs_universal_path/content_list/entries/${e[`content-list-entry-identifier`]==null?`<content-list-entry-identifier>`:encodeURIComponent(String(e[`content-list-entry-identifier`]))}`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``),identifier:String(e.identifier??``),"content-list-entry-identifier":String(e[`content-list-entry-identifier`]??``)},bodyKind:`none`});return}let o=await t(e),s=await n({zone:e.zone},o,{quiet:e.quiet});if(e.zoneId=s,!await p({force:!!e.force})){process.stderr.write(`Aborted.
|
|
16
16
|
`);return}let c=await a(`Deleting`,async()=>o.send(k,{zone_id:s,identifier:e.identifier,content_list_entry_identifier:e[`content-list-entry-identifier`]}));r(c,{successLabel:`Deleted`})})};var M={method:`GET`,path:t=>e`/zones/${t.zone_id}/web3/hostnames/${t.identifier}/ipfs_universal_path/content_list/entries/${t.content_list_entry_identifier}`};function N(e){return e.usage(`$0 web3 hostnames ipfs-universal-paths content-lists entries get <content-list-entry-identifier>
|
|
17
17
|
|
|
18
|
-
IPFS Universal Path Gateway Content List Entry Details`).positional(`content-list-entry-identifier`,{type:`string`,description:`Specify the identifier of the hostname.`,demandOption:!0}).option(`identifier`,{type:`string`,description:`Specify the identifier of the hostname.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const P={command:`get <content-list-entry-identifier>`,describe:`IPFS Universal Path Gateway Content List Entry Details`,builder:N,handler:async e=>o({command:`web3 hostnames ipfs-universal-paths content-lists entries get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){i({command:`cf web3 hostnames ipfs-universal-paths content-lists entries get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/web3/hostnames/${e.identifier==null?`<identifier>`:encodeURIComponent(String(e.identifier))}/ipfs_universal_path/content_list/entries/${e[`content-list-entry-identifier`]==null?`<content-list-entry-identifier>`:encodeURIComponent(String(e[`content-list-entry-identifier`]))}`,pathParams:{"
|
|
18
|
+
IPFS Universal Path Gateway Content List Entry Details`).positional(`content-list-entry-identifier`,{type:`string`,description:`Specify the identifier of the hostname.`,demandOption:!0}).option(`identifier`,{type:`string`,description:`Specify the identifier of the hostname.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const P={command:`get <content-list-entry-identifier>`,describe:`IPFS Universal Path Gateway Content List Entry Details`,builder:N,handler:async e=>o({command:`web3 hostnames ipfs-universal-paths content-lists entries get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){i({command:`cf web3 hostnames ipfs-universal-paths content-lists entries get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/web3/hostnames/${e.identifier==null?`<identifier>`:encodeURIComponent(String(e.identifier))}/ipfs_universal_path/content_list/entries/${e[`content-list-entry-identifier`]==null?`<content-list-entry-identifier>`:encodeURIComponent(String(e[`content-list-entry-identifier`]))}`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``),identifier:String(e.identifier??``),"content-list-entry-identifier":String(e[`content-list-entry-identifier`]??``)},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(M,{zone_id:s,identifier:e.identifier,content_list_entry_identifier:e[`content-list-entry-identifier`]}));r(c,{successLabel:`Loaded`})})};var F={method:`GET`,path:t=>e`/zones/${t.zone_id}/web3/hostnames/${t.identifier}/ipfs_universal_path/content_list/entries`};function I(e){return e.usage(`$0 web3 hostnames ipfs-universal-paths content-lists entries list
|
|
19
19
|
|
|
20
|
-
List IPFS Universal Path Gateway Content List Entries`).option(`identifier`,{type:`string`,description:`Specify the identifier of the hostname.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const ee={command:`list`,describe:`List IPFS Universal Path Gateway Content List Entries`,builder:I,handler:async e=>o({command:`web3 hostnames ipfs-universal-paths content-lists entries list`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){i({command:`cf web3 hostnames ipfs-universal-paths content-lists entries list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/web3/hostnames/${e.identifier==null?`<identifier>`:encodeURIComponent(String(e.identifier))}/ipfs_universal_path/content_list/entries`,pathParams:{
|
|
20
|
+
List IPFS Universal Path Gateway Content List Entries`).option(`identifier`,{type:`string`,description:`Specify the identifier of the hostname.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const ee={command:`list`,describe:`List IPFS Universal Path Gateway Content List Entries`,builder:I,handler:async e=>o({command:`web3 hostnames ipfs-universal-paths content-lists entries list`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){i({command:`cf web3 hostnames ipfs-universal-paths content-lists entries list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/web3/hostnames/${e.identifier==null?`<identifier>`:encodeURIComponent(String(e.identifier))}/ipfs_universal_path/content_list/entries`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``),identifier:String(e.identifier??``)},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(F,{zone_id:s,identifier:e.identifier}));r(c,{successLabel:`Loaded`})})};var L={method:`PUT`,path:t=>e`/zones/${t.zone_id}/web3/hostnames/${t.identifier}/ipfs_universal_path/content_list/entries/${t.content_list_entry_identifier}`,body:`json`};function R(e){return e.usage(`$0 web3 hostnames ipfs-universal-paths content-lists entries update <content-list-entry-identifier>
|
|
21
21
|
|
|
22
|
-
Edit IPFS Universal Path Gateway Content List Entry`).positional(`content-list-entry-identifier`,{type:`string`,description:`Specify the identifier of the hostname.`,demandOption:!0}).option(`identifier`,{type:`string`,description:`Specify the identifier of the hostname.`,demandOption:!0}).option(`content`,{type:`string`,description:`Specify the CID or content path of content to block.`}).option(`description`,{type:`string`,description:`Specify an optional description of the content list entry.`}).option(`type`,{type:`string`,description:`Specify the type of content list entry to block.`,choices:[`cid`,`content_path`]}).coerce(`type`,e=>u(e,`type`,`text`)).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 z={command:`update <content-list-entry-identifier>`,describe:`Edit IPFS Universal Path Gateway Content List Entry`,builder:R,handler:async e=>o({command:`web3 hostnames ipfs-universal-paths content-lists entries update`,classification:{safeFlags:[`type`,`dry-run`]}},e,async()=>{if(e.dryRun){i({command:`cf web3 hostnames ipfs-universal-paths content-lists entries update`,method:`PUT`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/web3/hostnames/${e.identifier==null?`<identifier>`:encodeURIComponent(String(e.identifier))}/ipfs_universal_path/content_list/entries/${e[`content-list-entry-identifier`]==null?`<content-list-entry-identifier>`:encodeURIComponent(String(e[`content-list-entry-identifier`]))}`,pathParams:{"
|
|
22
|
+
Edit IPFS Universal Path Gateway Content List Entry`).positional(`content-list-entry-identifier`,{type:`string`,description:`Specify the identifier of the hostname.`,demandOption:!0}).option(`identifier`,{type:`string`,description:`Specify the identifier of the hostname.`,demandOption:!0}).option(`content`,{type:`string`,description:`Specify the CID or content path of content to block.`}).option(`description`,{type:`string`,description:`Specify an optional description of the content list entry.`}).option(`type`,{type:`string`,description:`Specify the type of content list entry to block.`,choices:[`cid`,`content_path`]}).coerce(`type`,e=>u(e,`type`,`text`)).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 z={command:`update <content-list-entry-identifier>`,describe:`Edit IPFS Universal Path Gateway Content List Entry`,builder:R,handler:async e=>o({command:`web3 hostnames ipfs-universal-paths content-lists entries update`,classification:{safeFlags:[`type`,`dry-run`]}},e,async()=>{if(e.dryRun){i({command:`cf web3 hostnames ipfs-universal-paths content-lists entries update`,method:`PUT`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/web3/hostnames/${e.identifier==null?`<identifier>`:encodeURIComponent(String(e.identifier))}/ipfs_universal_path/content_list/entries/${e[`content-list-entry-identifier`]==null?`<content-list-entry-identifier>`:encodeURIComponent(String(e[`content-list-entry-identifier`]))}`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``),identifier:String(e.identifier??``),"content-list-entry-identifier":String(e[`content-list-entry-identifier`]??``)},bodyKind:`json`,body:e.body===void 0?l({content:u(e.content,`content`,`text`),description:u(e.description,`description`,`text`),type:e.type}):s(e.body)});return}let o=await t(e),c=await n({zone:e.zone},o,{quiet:e.quiet});if(e.zoneId=c,e.body){let t=s(e.body),n=await a(`Updating`,async()=>o.send(L,{body:t,zone_id:c,identifier:e.identifier,content_list_entry_identifier:e[`content-list-entry-identifier`]}));r(n,{successLabel:`Updated`});return}e.content===void 0&&(e.content=await d(`content`,`Specify the CID or content path of content to block.`)),e.type===void 0&&(e.type=await f(`type`,`Specify the type of content list entry to block.`,[`cid`,`content_path`]));let p=l({content:u(e.content,`content`,`text`),description:u(e.description,`description`,`text`),type:e.type}),m=await a(`Updating`,async()=>o.send(L,{body:p,zone_id:c,identifier:e.identifier,content_list_entry_identifier:e[`content-list-entry-identifier`]}));r(m,{successLabel:`Updated`})})},B={command:`entries`,describe:`Operations for hostnames.ipfs-universal-paths.content-lists.entries`,builder:e=>e.command(O).command(j).command(P).command(ee).command(z).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var V={method:`GET`,path:t=>e`/zones/${t.zone_id}/web3/hostnames/${t.identifier}/ipfs_universal_path/content_list`};function H(e){return e.usage(`$0 web3 hostnames ipfs-universal-paths content-lists get <identifier>
|
|
23
23
|
|
|
24
|
-
IPFS Universal Path Gateway Content List Details`).positional(`identifier`,{type:`string`,description:`Specify the identifier of the hostname.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const U={command:`get <identifier>`,describe:`IPFS Universal Path Gateway Content List Details`,builder:H,handler:async e=>o({command:`web3 hostnames ipfs-universal-paths content-lists get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){i({command:`cf web3 hostnames ipfs-universal-paths content-lists get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/web3/hostnames/${e.identifier==null?`<identifier>`:encodeURIComponent(String(e.identifier))}/ipfs_universal_path/content_list`,pathParams:{
|
|
24
|
+
IPFS Universal Path Gateway Content List Details`).positional(`identifier`,{type:`string`,description:`Specify the identifier of the hostname.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const U={command:`get <identifier>`,describe:`IPFS Universal Path Gateway Content List Details`,builder:H,handler:async e=>o({command:`web3 hostnames ipfs-universal-paths content-lists get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){i({command:`cf web3 hostnames ipfs-universal-paths content-lists get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/web3/hostnames/${e.identifier==null?`<identifier>`:encodeURIComponent(String(e.identifier))}/ipfs_universal_path/content_list`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``),identifier:String(e.identifier??``)},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(V,{zone_id:s,identifier:e.identifier}));r(c,{successLabel:`Loaded`})})};var W={method:`PUT`,path:t=>e`/zones/${t.zone_id}/web3/hostnames/${t.identifier}/ipfs_universal_path/content_list`,body:`json`,constants:{action:`block`}};function G(e){return e.usage(`$0 web3 hostnames ipfs-universal-paths content-lists update <identifier>
|
|
25
25
|
|
|
26
|
-
Update IPFS Universal Path Gateway Content List`).positional(`identifier`,{type:`string`,description:`Specify the identifier of the hostname.`,demandOption:!0}).option(`action`,{type:`string`,description:`Behavior of the content list.`,choices:[`block`]}).coerce(`action`,e=>u(e,`action`,`text`)).option(`entries`,{type:`string`,description:`Provides content list entries. Provide as a JSON array of objects or @path/to/file.json.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const K={command:`update <identifier>`,describe:`Update IPFS Universal Path Gateway Content List`,builder:G,handler:async e=>o({command:`web3 hostnames ipfs-universal-paths content-lists update`,classification:{safeFlags:[`action`,`dry-run`]}},e,async()=>{if(e.dryRun){i({command:`cf web3 hostnames ipfs-universal-paths content-lists update`,method:`PUT`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/web3/hostnames/${e.identifier==null?`<identifier>`:encodeURIComponent(String(e.identifier))}/ipfs_universal_path/content_list`,pathParams:{
|
|
26
|
+
Update IPFS Universal Path Gateway Content List`).positional(`identifier`,{type:`string`,description:`Specify the identifier of the hostname.`,demandOption:!0}).option(`action`,{type:`string`,description:`Behavior of the content list.`,choices:[`block`]}).coerce(`action`,e=>u(e,`action`,`text`)).option(`entries`,{type:`string`,description:`Provides content list entries. Provide as a JSON array of objects or @path/to/file.json.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const K={command:`update <identifier>`,describe:`Update IPFS Universal Path Gateway Content List`,builder:G,handler:async e=>o({command:`web3 hostnames ipfs-universal-paths content-lists update`,classification:{safeFlags:[`action`,`dry-run`]}},e,async()=>{if(e.dryRun){i({command:`cf web3 hostnames ipfs-universal-paths content-lists update`,method:`PUT`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/web3/hostnames/${e.identifier==null?`<identifier>`:encodeURIComponent(String(e.identifier))}/ipfs_universal_path/content_list`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``),identifier:String(e.identifier??``)},bodyKind:`json`,body:e.body===void 0?l({action:e.action,entries:c(e.entries,`entries`)}):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(W,{body:t,zone_id:u,identifier:e.identifier}));r(n,{successLabel:`Updated`});return}if(e.action===void 0&&(e.action=await f(`action`,`Behavior of the content list.`,[`block`])),e.entries===void 0)throw Error(`--entries is required (or pass --body with this field set).`);let d=l({action:e.action,entries:c(e.entries,`entries`)}),p=await a(`Updating`,async()=>o.send(W,{body:d,zone_id:u,identifier:e.identifier}));r(p,{successLabel:`Updated`})})},q={command:`content-lists`,describe:`Operations for hostnames.ipfs-universal-paths.content-lists`,builder:e=>e.command(U).command(K).command(B).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},J={command:`ipfs-universal-paths`,describe:`Operations for hostnames.ipfs-universal-paths`,builder:e=>e.command(q).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var Y={method:`GET`,path:t=>e`/zones/${t.zone_id}/web3/hostnames`};function X(e){return e.usage(`$0 web3 hostnames list
|
|
27
27
|
|
|
28
28
|
List Web3 Hostnames`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const Z={command:`list`,describe:`List Web3 Hostnames`,builder:X,handler:async e=>o({command:`web3 hostnames list`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){i({command:`cf web3 hostnames list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/web3/hostnames`,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(Y,{zone_id:s}));r(c,{successLabel:`Loaded`})})},Q={command:`hostnames`,describe:`Operations for hostnames`,builder:e=>e.command(g).command(y).command(S).command(T).command(Z).command(J).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},$={command:`web3`,describe:`web3`,builder:e=>e.command(Q).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};export{$ as default};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import{t as e}from"./lazy-command-
|
|
2
|
+
import{t as e}from"./lazy-command-BC8rIlHu.mjs";import{r as t}from"./theme-BGHWSKCw.mjs";import{r as n}from"./dotenv-usOKkeW7.mjs";import{J as r}from"./dist-DZRTPMMA.mjs";import"./api-eMuS5GI1.mjs";import{t as i}from"./path-DRw6Y-nd.mjs";import{t as a}from"./hand-written-dry-run-B82fRl2N.mjs";import{t as o}from"./local-Dil4fTWX.mjs";import"./ui-BtIBQeaG.mjs";import{i as s,n as c}from"./auth-eVI_UEt8.mjs";import{n as l}from"./dist-uRuGmkMB.mjs";import{a as u,r as d,t as f}from"./context-B-vEsyrK.mjs";import{t as p}from"./deploy-context-ClvBD87y.mjs";import{t as ee}from"./auth-token-Cfj2yehs.mjs";import{t as m}from"./output-Co4xdFf6.mjs";import{t as h}from"./dry-run-C2KjGX10.mjs";import{t as g}from"./progress-R-1tIuep.mjs";import{n as _,t as v}from"./run-BvDCuZ8q.mjs";import"./telemetry-Ct_2AaO4.mjs";import{i as y,n as b,r as x,t as S}from"./body-parser-DkHKPkJ7.mjs";import{n as C,t as te}from"./input-validation-D7z60HJH.mjs";import{a as ne,i as w,n as T}from"./prompt-dgLm0iFJ.mjs";import{n as E,t as D}from"./raw-fetch-BapeoreV.mjs";import{l as O,s as k}from"./containers-BOpKpipz.mjs";import{a as A,i as j,n as M,o as N,r as P}from"./build-sBpqm9ga.mjs";import{r as F}from"./deploy-input-BqJ7GVZ-.mjs";import{n as I,t as L}from"./shared-ouAF7o4S.mjs";import{readBuildOutput as R}from"@cloudflare/build-output-utils";var z={method:`DELETE`,path:e=>i`/accounts/${e.account_id}/workers/workers/${e.worker_id}`,query:[`force`],errors:{400:`BadRequestError`,401:`UnauthorizedError`,404:`NotFoundError`,500:`InternalServerError`}};function B(e){return e.usage(`$0 workers delete <worker-id>
|
|
3
3
|
|
|
4
4
|
Delete a Worker and all its associated resources (versions, deployments, etc.).`).positional(`worker-id`,{type:`string`,description:`Identifier for the Worker, which can be ID or name.`,demandOption:!0}).option(`delete-with-references`,{type:`boolean`,description:`If true, delete the Worker even when other Workers still reference it. Service bindings in those Workers may be left broken. Durable Object namespaces implemented by the deleted Worker are deleted even if other Workers reference them.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`force`,{type:`boolean`,alias:`f`,description:`Skip confirmation (useful in scripts and CI)`,default:!1})}const V={command:`delete <worker-id>`,describe:`Delete Worker`,builder:B,handler:async e=>v({command:`workers delete`,classification:{safeFlags:[`delete-with-references`,`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{let t={force:e[`delete-with-references`]};if(e.dryRun){let n=await u();h({command:`cf workers delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${n??`<account-id>`}/workers/workers/${e[`worker-id`]==null?`<worker-id>`:encodeURIComponent(String(e[`worker-id`]))}`,pathParams:{"worker-id":String(e[`worker-id`]??``)},query:t,bodyKind:`none`});return}let n=await c(e),r=e.local?o:await f();if(e.accountId=r,!await T({force:!!e.force,message:`This will permanently delete the Worker and its associated versions and deployments.`})){process.stderr.write(`Aborted.
|
|
5
5
|
`);return}let i=await g(`Deleting`,async()=>n.send(z,{account_id:r,worker_id:e[`worker-id`],...t}));m(i,{successLabel:`Deleted`})})};var H={method:`POST`,path:e=>i`/accounts/${e.account_id}/workers/scripts/${e.script_name}/deployments`,query:[`force`],body:`json`,constants:{strategy:`percentage`}};function U(e){return e.usage(`$0 workers deployments create
|
|
@@ -37,4 +37,4 @@ Get details about a specific Worker version.`).positional(`version-id`,{type:`st
|
|
|
37
37
|
|
|
38
38
|
List all versions for a Worker.`).option(`worker-id`,{type:`string`,description:`Identifier for the Worker, which can be ID or name.`,demandOption:!0}).option(`page`,{type:`number`,description:`Current page.`}).option(`per-page`,{type:`number`,description:`Items per-page.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const Re={command:`list`,describe:`List Worker Versions`,builder:Le,handler:async e=>v({command:`workers versions list`,classification:{safeFlags:[`dry-run`]}},e,async()=>{let t={page:e.page,per_page:e[`per-page`]};if(e.dryRun){let n=await u();h({command:`cf workers versions list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${n??`<account-id>`}/workers/workers/${e[`worker-id`]==null?`<worker-id>`:encodeURIComponent(String(e[`worker-id`]))}/versions`,pathParams:{"worker-id":String(e[`worker-id`]??``)},query:t,bodyKind:`none`});return}let n=await c(e),r=e.local?o:await f();e.accountId=r;let i=await g(`Loading`,async()=>n.send(Ie,{account_id:r,worker_id:e[`worker-id`],...t}));m(i,{successLabel:`Loaded`})})};function ze(e){return e.usage(`$0 workers versions profile <version-id>
|
|
39
39
|
|
|
40
|
-
Captures a CPU or heap profile from a recently active isolate running the specified Worker version. This endpoint requires the Worker profiling feature to be enabled for the account.`).positional(`version-id`,{type:`string`,description:`Identifies the version by UUID or UUID prefix with a minimum length of eight characters. Use "latest" to select the most recently created version.`,demandOption:!0}).option(`worker-id`,{type:`string`,description:`Identifies the Worker by ID or name.`,demandOption:!0}).option(`actor-id`,{type:`string`,description:`Identifies the exact Durable Object actor to profile. Must be specified together with namespace_id. The actor must currently be active and running the requested Worker version.`}).option(`duration-ms`,{type:`number`,description:`Profile duration in milliseconds.`}).option(`namespace-id`,{type:`string`,description:`Identifies the Durable Object namespace containing the actor to profile. Must be specified together with actor_id.`}).option(`profile-type`,{type:`string`,description:`The profile_type field`,choices:[`cpu`,`heap`],default:`cpu`}).coerce(`profile-type`,e=>C(e,`profile-type`,`text`)).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`}).option(`text`,{type:`boolean`,description:`Decode the response body as UTF-8 text instead of writing raw bytes`,default:!1})}const Be={command:`profile <version-id>`,describe:`Profile Worker Version`,builder:ze,handler:async e=>v({command:`workers versions profile`,classification:{safeFlags:[`profile-type`,`dry-run`,`text`]}},e,async()=>{if(e.dryRun){let t=await u();h({command:`cf workers versions profile`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/workers/workers/${e[`worker-id`]==null?`<worker-id>`:encodeURIComponent(String(e[`worker-id`]))}/versions/${e[`version-id`]==null?`<version-id>`:encodeURIComponent(String(e[`version-id`]))}/profile`,pathParams:{"worker-id":String(e[`worker-id`]??``),"version-id":String(e[`version-id`]??``)},bodyKind:`json`,body:e.body===void 0?S({actor_id:C(e[`actor-id`],`actor-id`,`text`),duration_ms:e[`duration-ms`],namespace_id:C(e[`namespace-id`],`namespace-id`,`text`),profile_type:e[`profile-type`]}):b(e.body)});return}await c(e);let t=e.local?o:await f();if(e.accountId=t,e.body){let n=b(e.body),r=await g(`Creating`,async()=>D(`/accounts/${t}/workers/workers/${encodeURIComponent(String(e[`worker-id`]))}/versions/${encodeURIComponent(String(e[`version-id`]))}/profile`,{method:`POST`,local:e.local===!0,persistTo:e.persistTo,body:JSON.stringify(n),contentType:`application/json`}));E(e.text===!0?r.toString(`utf-8`):r);return}if(e[`duration-ms`]===void 0)throw Error(`--duration-ms is required (or pass --body with this field set).`);let n={};e[`actor-id`]!==void 0&&y(n,[`actor_id`],C(e[`actor-id`],`actor-id`,`text`)),e[`duration-ms`]!==void 0&&y(n,[`duration_ms`],e[`duration-ms`]),e[`namespace-id`]!==void 0&&y(n,[`namespace_id`],C(e[`namespace-id`],`namespace-id`,`text`)),e[`profile-type`]!==void 0&&y(n,[`profile_type`],e[`profile-type`]);let r=await g(`Creating`,async()=>D(`/accounts/${t}/workers/workers/${encodeURIComponent(String(e[`worker-id`]))}/versions/${encodeURIComponent(String(e[`version-id`]))}/profile`,{method:`POST`,local:e.local===!0,persistTo:e.persistTo,body:Object.keys(n).length>0?n:void 0}));E(e.text===!0?r.toString(`utf-8`):r)})};function Ve(e){return I(e).hide(`local`).hide(`persist-to`).epilogue(`Local simulation (--local) is not supported by this command.`).option(`preview-alias`,{type:`string`,description:`Preview alias for this Worker Version`,requiresArg:!0})}var $=_({command:`create`,describe:`Upload a new Worker Version without deploying it`,builder:Ve,handler:async e=>{if(e.local)throw Error(`--local is not supported by cf workers versions create.`);await L(e,{command:`Version upload`})}},{command:`workers versions create`,classification:{safeFlags:[`dry-run`,`prebuilt`]}});const He={command:`versions`,describe:`Operations for versions`,builder:e=>e.command(a($,`native`)).command(Me).command(Fe).command(Re).command(Be).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var Ue=e(`check`,`Profile a Worker's startup performance`,()=>import(`./command-
|
|
40
|
+
Captures a CPU or heap profile from a recently active isolate running the specified Worker version. This endpoint requires the Worker profiling feature to be enabled for the account.`).positional(`version-id`,{type:`string`,description:`Identifies the version by UUID or UUID prefix with a minimum length of eight characters. Use "latest" to select the most recently created version.`,demandOption:!0}).option(`worker-id`,{type:`string`,description:`Identifies the Worker by ID or name.`,demandOption:!0}).option(`actor-id`,{type:`string`,description:`Identifies the exact Durable Object actor to profile. Must be specified together with namespace_id. The actor must currently be active and running the requested Worker version.`}).option(`duration-ms`,{type:`number`,description:`Profile duration in milliseconds.`}).option(`namespace-id`,{type:`string`,description:`Identifies the Durable Object namespace containing the actor to profile. Must be specified together with actor_id.`}).option(`profile-type`,{type:`string`,description:`The profile_type field`,choices:[`cpu`,`heap`],default:`cpu`}).coerce(`profile-type`,e=>C(e,`profile-type`,`text`)).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`}).option(`text`,{type:`boolean`,description:`Decode the response body as UTF-8 text instead of writing raw bytes`,default:!1})}const Be={command:`profile <version-id>`,describe:`Profile Worker Version`,builder:ze,handler:async e=>v({command:`workers versions profile`,classification:{safeFlags:[`profile-type`,`dry-run`,`text`]}},e,async()=>{if(e.dryRun){let t=await u();h({command:`cf workers versions profile`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/workers/workers/${e[`worker-id`]==null?`<worker-id>`:encodeURIComponent(String(e[`worker-id`]))}/versions/${e[`version-id`]==null?`<version-id>`:encodeURIComponent(String(e[`version-id`]))}/profile`,pathParams:{"worker-id":String(e[`worker-id`]??``),"version-id":String(e[`version-id`]??``)},bodyKind:`json`,body:e.body===void 0?S({actor_id:C(e[`actor-id`],`actor-id`,`text`),duration_ms:e[`duration-ms`],namespace_id:C(e[`namespace-id`],`namespace-id`,`text`),profile_type:e[`profile-type`]}):b(e.body)});return}await c(e);let t=e.local?o:await f();if(e.accountId=t,e.body){let n=b(e.body),r=await g(`Creating`,async()=>D(`/accounts/${t}/workers/workers/${encodeURIComponent(String(e[`worker-id`]))}/versions/${encodeURIComponent(String(e[`version-id`]))}/profile`,{method:`POST`,local:e.local===!0,persistTo:e.persistTo,body:JSON.stringify(n),contentType:`application/json`}));E(e.text===!0?r.toString(`utf-8`):r);return}if(e[`duration-ms`]===void 0)throw Error(`--duration-ms is required (or pass --body with this field set).`);let n={};e[`actor-id`]!==void 0&&y(n,[`actor_id`],C(e[`actor-id`],`actor-id`,`text`)),e[`duration-ms`]!==void 0&&y(n,[`duration_ms`],e[`duration-ms`]),e[`namespace-id`]!==void 0&&y(n,[`namespace_id`],C(e[`namespace-id`],`namespace-id`,`text`)),e[`profile-type`]!==void 0&&y(n,[`profile_type`],e[`profile-type`]);let r=await g(`Creating`,async()=>D(`/accounts/${t}/workers/workers/${encodeURIComponent(String(e[`worker-id`]))}/versions/${encodeURIComponent(String(e[`version-id`]))}/profile`,{method:`POST`,local:e.local===!0,persistTo:e.persistTo,body:Object.keys(n).length>0?n:void 0}));E(e.text===!0?r.toString(`utf-8`):r)})};function Ve(e){return I(e).hide(`local`).hide(`persist-to`).epilogue(`Local simulation (--local) is not supported by this command.`).option(`preview-alias`,{type:`string`,description:`Preview alias for this Worker Version`,requiresArg:!0})}var $=_({command:`create`,describe:`Upload a new Worker Version without deploying it`,builder:Ve,handler:async e=>{if(e.local)throw Error(`--local is not supported by cf workers versions create.`);await L(e,{command:`Version upload`})}},{command:`workers versions create`,classification:{safeFlags:[`dry-run`,`prebuilt`]}});const He={command:`versions`,describe:`Operations for versions`,builder:e=>e.command(a($,`native`)).command(Me).command(Fe).command(Re).command(Be).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var Ue=e(`check`,`Profile a Worker's startup performance`,()=>import(`./command-BSbhJRmu.mjs`),{command:`workers check`,classification:{safeFlags:[`prebuilt`]}});function We(e){return e.hide(`local`).hide(`persist-to`).epilogue(`Local simulation (--local) is not supported by this command.`).option(`prebuilt`,{type:`boolean`,description:`Use existing Build Output Specification files without building`,default:!1}).option(`dry-run`,{type:`boolean`,description:`Run checks without applying triggers`,default:!1}).option(`worker`,P)}const Ge={command:`deploy`,describe:`Apply triggers (Routes, Workflows, Cron triggers etc.)`,builder:We,handler:async e=>{if(e.local)throw Error(`--local is not supported by cf workers triggers deploy.`);if(!e.prebuilt){if(await M(e.mode,{worker:e.worker,dryRun:e[`dry-run`]})===`setup-needed`){l.success(`--dry-run: exiting now.`);return}l.message(``,{spacing:0})}await n(e,()=>Ke(e))}};async function Ke(e){let{workers:n,rootConfig:i}=await R(process.cwd());if(i.buildContext.isPreview){let e=[`cf previews deploy`,`--prebuilt`,...i.buildContext.mode===void 0?[]:[`--mode`,i.buildContext.mode]].join(` `);throw Error(`The Build Output was created for a Preview, but this command deploys production triggers. To use the existing Build Output and deploy the Preview, run "${e}". To deploy production triggers, rebuild without Preview settings before deploying.`)}N(e.mode,i.buildContext.mode);let a=A(n,e.worker),{wranglerConfig:o}=j(a,i),s=e[`dry-run`]?``:await ee(),c=e[`dry-run`]?void 0:i.accountId??await f({skipProjectSettings:!0,complianceRegion:r(o)});O(p(s)),l.message(t.bold(`Deploy triggers`),{symbol:t.muted(`├`),spacing:0}),await k(F(a,o,c,e)),e[`dry-run`]||l.success(`Trigger deploy complete`)}const qe={command:`triggers`,describe:`Manage triggers (Routes, Workflows, Cron triggers etc.)`,builder:e=>e.command(_(Ge,{command:`workers triggers deploy`,classification:{safeFlags:[`dry-run`,`prebuilt`]}})).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var Je=e(`types`,`Generate types from cloudflare.config.ts`,()=>import(`./command-DCQgsd2U.mjs`),{command:`workers types`,classification:{safeFlags:[`include-runtime`]}});const Ye={command:`workers`,describe:`workers`,builder:e=>e.command(a(Ue,`preview`)).command(V).command(ce).command(de).command(a(Je,`preview`)).command(ae).command(he).command(ke).command(a(qe,`native`)).command(He).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};export{Ye as default};
|
|
@@ -1,5 +1,5 @@
|
|
|
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-eVI_UEt8.mjs";import{a as r,t as i}from"./context-B-vEsyrK.mjs";import{t as a}from"./output-Co4xdFf6.mjs";import{t as o}from"./dry-run-C2KjGX10.mjs";import{t as s}from"./progress-R-1tIuep.mjs";import{t as c}from"./run-BvDCuZ8q.mjs";import"./telemetry-Ct_2AaO4.mjs";import{n as l,t as u}from"./body-parser-DkHKPkJ7.mjs";import{n as d}from"./input-validation-D7z60HJH.mjs";var f={method:`POST`,path:t=>e`/accounts/${t.account_id}/builds/workers/${t.script_tag}/migrate_to_previews`,body:`json`,errors:{400:`BadRequestError`,401:`UnauthorizedError`,404:`NotFoundError`}};function p(e){return e.usage(`$0 workers-builds workers migrate-to-previews <script-tag>
|
|
3
3
|
|
|
4
4
|
Migrate a Worker's legacy non-production trigger to Previews. The legacy build settings become the Previews base config and the legacy trigger is removed.`).positional(`script-tag`,{type:`string`,description:`The Worker script tag (external script ID)`,demandOption:!0}).option(`deploy-command`,{type:`string`,description:`Deploy command for the migrated Preview settings. Omit it to have the existing 'wrangler versions upload' command rewritten to 'wrangler preview' automatically, which fails with 400 when the existing command cannot be rewritten.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Request body for migrating a Worker's legacy non-production trigger to Previews.`})}const m={command:`migrate-to-previews <script-tag>`,describe:`Migrate worker to previews`,builder:p,handler:async e=>c({command:`workers-builds workers migrate-to-previews`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await r();o({command:`cf workers-builds workers migrate-to-previews`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/builds/workers/${e[`script-tag`]==null?`<script-tag>`:encodeURIComponent(String(e[`script-tag`]))}/migrate_to_previews`,pathParams:{"script-tag":String(e[`script-tag`]??``)},bodyKind:`json`,body:e.body===void 0?u({deploy_command:d(e[`deploy-command`],`deploy-command`,`text`)}):l(e.body)});return}let c=await n(e),p=e.local?t:await i();if(e.accountId=p,e.body){let t=l(e.body),n=await s(`Creating`,async()=>c.send(f,{body:t,account_id:p,script_tag:e[`script-tag`]}));a(n,{successLabel:`Created`});return}let m=u({deploy_command:d(e[`deploy-command`],`deploy-command`,`text`)}),h=await s(`Creating`,async()=>c.send(f,{body:m,account_id:p,script_tag:e[`script-tag`]}));a(h,{successLabel:`Created`})})};var h={method:`POST`,path:t=>e`/accounts/${t.account_id}/builds/workers/${t.script_tag}/previews/${t.preview_id}/builds`,body:`json`,errors:{400:`BadRequestError`,401:`UnauthorizedError`,404:`NotFoundError`}};function g(e){return e.usage(`$0 workers-builds workers previews create-build <preview-id>
|
|
5
5
|
|
|
@@ -1,5 +1,5 @@
|
|
|
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-eVI_UEt8.mjs";import{a as i,t as a}from"./context-B-vEsyrK.mjs";import{t as o}from"./output-Co4xdFf6.mjs";import{t as s}from"./dry-run-C2KjGX10.mjs";import{t as c}from"./progress-R-1tIuep.mjs";import{t as l}from"./run-BvDCuZ8q.mjs";import"./telemetry-Ct_2AaO4.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,i as h,n as g}from"./prompt-dgLm0iFJ.mjs";var _={method:`POST`,path:t=>e`/accounts/${t.account_id}/workers/dispatch/namespaces`,body:`json`};function ee(e){return e.usage(`$0 workers-for-platforms dispatch-namespaces create
|
|
3
3
|
|
|
4
4
|
Create a new Workers for Platforms dispatch namespace.`).option(`name`,{type:`string`,description:`The name of the dispatch 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 v={command:`create`,describe:`Create Workers for Platforms Dispatch Namespace`,builder:ee,handler:async e=>l({command:`workers-for-platforms dispatch-namespaces create`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await i();s({command:`cf workers-for-platforms dispatch-namespaces create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/workers/dispatch/namespaces`,pathParams:{},bodyKind:`json`,body:e.body===void 0?d({name:f(e.name,`name`,`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(_,{body:t,account_id:l}));o(r,{successLabel:`Created`});return}let p=d({name:f(e.name,`name`,`text`)}),m=await c(`Creating`,async()=>n.send(_,{body:p,account_id:l}));o(m,{successLabel:`Created`})})};var y={method:`DELETE`,path:t=>e`/accounts/${t.account_id}/workers/dispatch/namespaces/${t.dispatch_namespace}`};function b(e){return e.usage(`$0 workers-for-platforms dispatch-namespaces delete <dispatch-namespace>
|
|
5
5
|
|
|
@@ -1,5 +1,5 @@
|
|
|
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-eVI_UEt8.mjs";import{a as r,t as i}from"./context-B-vEsyrK.mjs";import{t as a}from"./output-Co4xdFf6.mjs";import{t as o}from"./dry-run-C2KjGX10.mjs";import{t as s}from"./progress-R-1tIuep.mjs";import{t as c}from"./run-BvDCuZ8q.mjs";import"./telemetry-Ct_2AaO4.mjs";import{n as l,t as u}from"./body-parser-DkHKPkJ7.mjs";import{n as d}from"./input-validation-D7z60HJH.mjs";import{a as f,i as p,n as m}from"./prompt-dgLm0iFJ.mjs";var h={method:`POST`,path:t=>e`/accounts/${t.account_id}/connectivity/directory/services`,body:`json`};function g(e){return e.usage(`$0 workers-vpc services create
|
|
3
3
|
|
|
4
4
|
Creates a new Workers VPC connectivity service in the account.`).option(`host-ipv4`,{type:`string`,description:`The host.ipv4 field`}).option(`host-network-tunnel-id`,{type:`string`,description:`The host.network.tunnel_id field`}).option(`host-ipv6`,{type:`string`,description:`The host.ipv6 field`}).option(`host-hostname`,{type:`string`,description:`The host.hostname field`}).option(`host-resolver-network-resolver-ips`,{type:`string`,array:!0,description:`The host.resolver_network.resolver_ips field`}).option(`host-resolver-network-tunnel-id`,{type:`string`,description:`The host.resolver_network.tunnel_id field`}).option(`name`,{type:`string`,description:`The name field`}).option(`tls-settings-cert-verification-mode`,{type:`string`,description:'TLS certificate verification mode for the connection to the origin.\n\n- `"verify_full"` — verify certificate chain and hostname (default)\n- `"verify_ca"` — verify certificate chain only, skip hostname check\n- `"disabled"` — do not verify the server certificate at all'}).option(`type`,{type:`string`,description:`The type field`,choices:[`tcp`,`http`]}).coerce(`type`,e=>d(e,`type`,`text`)).option(`http-port`,{type:`number`,description:`The http_port field`}).option(`https-port`,{type:`number`,description:`The https_port field`}).option(`app-protocol`,{type:`string`,description:`The app_protocol field`,choices:[`postgresql`,`mysql`]}).coerce(`app-protocol`,e=>d(e,`app-protocol`,`text`)).option(`tcp-port`,{type:`number`,description:`The tcp_port 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)`}).conflicts(`host-ipv4`,[`host-ipv6`,`host-hostname`,`host-resolver-network-resolver-ips`]).conflicts(`host-ipv6`,[`host-ipv4`,`host-hostname`,`host-resolver-network-resolver-ips`]).conflicts(`host-hostname`,[`host-ipv4`,`host-ipv6`]).conflicts(`host-resolver-network-resolver-ips`,[`host-ipv4`,`host-ipv6`]).conflicts(`http-port`,[`app-protocol`,`tcp-port`]).conflicts(`https-port`,[`app-protocol`,`tcp-port`]).conflicts(`app-protocol`,[`http-port`,`https-port`]).conflicts(`tcp-port`,[`http-port`,`https-port`]).check(e=>{if([`host-ipv4`,`host-network-tunnel-id`,`host-ipv6`,`host-hostname`,`host-resolver-network-resolver-ips`,`host-resolver-network-tunnel-id`].some(t=>e[t]!==void 0)){let t=[`host-network-tunnel-id`,`host-resolver-network-tunnel-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 --host-* flag is set`)}return!0}).check(e=>{if([`tls-settings-cert-verification-mode`].some(t=>e[t]!==void 0)){let t=[`tls-settings-cert-verification-mode`].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 --tls_settings-* flag is set`)}return!0})}const _={command:`create`,describe:`Create Workers VPC connectivity service`,builder:g,handler:async e=>c({command:`workers-vpc services create`,classification:{safeFlags:[`type`,`app-protocol`,`dry-run`]}},e,async()=>{if(e.dryRun){let t=await r();o({command:`cf workers-vpc services create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/connectivity/directory/services`,pathParams:{},bodyKind:`json`,body:e.body===void 0?u({host:{ipv4:d(e[`host-ipv4`],`host-ipv4`,`text`),network:{tunnel_id:d(e[`host-network-tunnel-id`],`host-network-tunnel-id`,`text`)},ipv6:d(e[`host-ipv6`],`host-ipv6`,`text`),hostname:d(e[`host-hostname`],`host-hostname`,`text`),resolver_network:{resolver_ips:e[`host-resolver-network-resolver-ips`],tunnel_id:d(e[`host-resolver-network-tunnel-id`],`host-resolver-network-tunnel-id`,`text`)}},name:d(e.name,`name`,`text`),tls_settings:{cert_verification_mode:d(e[`tls-settings-cert-verification-mode`],`tls-settings-cert-verification-mode`,`text`)},type:e.type,http_port:e[`http-port`],https_port:e[`https-port`],app_protocol:e[`app-protocol`],tcp_port:e[`tcp-port`]}):l(e.body)});return}let c=await n(e),m=e.local?t:await i();if(e.accountId=m,e.body){let t=l(e.body),n=await s(`Creating`,async()=>c.send(h,{body:t,account_id:m}));a(n,{successLabel:`Created`});return}e.name===void 0&&(e.name=await f(`name`,`The name field`)),e.type===void 0&&(e.type=await p(`type`,`The type field`,[`tcp`,`http`]));let g=u({host:{ipv4:d(e[`host-ipv4`],`host-ipv4`,`text`),network:{tunnel_id:d(e[`host-network-tunnel-id`],`host-network-tunnel-id`,`text`)},ipv6:d(e[`host-ipv6`],`host-ipv6`,`text`),hostname:d(e[`host-hostname`],`host-hostname`,`text`),resolver_network:{resolver_ips:e[`host-resolver-network-resolver-ips`],tunnel_id:d(e[`host-resolver-network-tunnel-id`],`host-resolver-network-tunnel-id`,`text`)}},name:d(e.name,`name`,`text`),tls_settings:{cert_verification_mode:d(e[`tls-settings-cert-verification-mode`],`tls-settings-cert-verification-mode`,`text`)},type:e.type,http_port:e[`http-port`],https_port:e[`https-port`],app_protocol:e[`app-protocol`],tcp_port:e[`tcp-port`]}),_=await s(`Creating`,async()=>c.send(h,{body:g,account_id:m}));a(_,{successLabel:`Created`})})};var v={method:`DELETE`,path:t=>e`/accounts/${t.account_id}/connectivity/directory/services/${t.service_id}`,response:!1};function y(e){return e.usage(`$0 workers-vpc services delete <service-id>
|
|
5
5
|
|
|
@@ -1,5 +1,5 @@
|
|
|
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-eVI_UEt8.mjs";import{a as i,t as a}from"./context-B-vEsyrK.mjs";import{t as o}from"./output-Co4xdFf6.mjs";import{t as s}from"./dry-run-C2KjGX10.mjs";import{t as c}from"./progress-R-1tIuep.mjs";import{t as l}from"./run-BvDCuZ8q.mjs";import"./telemetry-Ct_2AaO4.mjs";import{n as u,t as d}from"./body-parser-DkHKPkJ7.mjs";import{n as f}from"./input-validation-D7z60HJH.mjs";import{a as p,i as m,n as h}from"./prompt-dgLm0iFJ.mjs";import{n as g,t as ee}from"./raw-fetch-BapeoreV.mjs";var _={method:`POST`,path:t=>e`/accounts/${t.account_id}/workflows/concurrency`,body:`json`,errors:{400:`BadRequestError`,403:`ForbiddenError`,409:`ConflictError`}};function v(e){return e.usage(`$0 workflows concurrency create
|
|
3
3
|
|
|
4
4
|
Creates an account-scoped concurrency key. Limits count steps still in flight from a previously deleted key of the same name.`).option(`limit`,{type:`number`,description:`Maximum number of steps that may concurrently hold this key.`}).option(`name`,{type:`string`,description:`Unique (per account) name of the concurrency key. Referenced by workflow steps via step config.`}).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:`Create a concurrency key`,builder:v,handler:async e=>l({command:`workflows concurrency create`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await i();s({command:`cf workflows concurrency create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/workflows/concurrency`,pathParams:{},bodyKind:`json`,body:e.body===void 0?d({limit:e.limit,name:f(e.name,`name`,`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(_,{body:t,account_id:l}));o(r,{successLabel:`Created`});return}if(e.limit===void 0)throw Error(`--limit is required (or pass --body with this field set).`);e.name===void 0&&(e.name=await p(`name`,`Unique (per account) name of the concurrency key. Referenced by workflow steps via step config.`));let m=d({limit:e.limit,name:f(e.name,`name`,`text`)}),h=await c(`Creating`,async()=>n.send(_,{body:m,account_id:l}));o(h,{successLabel:`Created`})})};var ne={method:`DELETE`,path:t=>e`/accounts/${t.account_id}/workflows/concurrency/${t.key_id}`,errors:{400:`BadRequestError`,403:`ForbiddenError`,404:`NotFoundError`,409:`ConflictError`}};function re(e){return e.usage(`$0 workflows concurrency delete <key-id>
|
|
5
5
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import"./api-eMuS5GI1.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{i as t,n}from"./auth-
|
|
2
|
+
import"./api-eMuS5GI1.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{i as t,n}from"./auth-eVI_UEt8.mjs";import{i as r}from"./context-B-vEsyrK.mjs";import{t as i}from"./output-Co4xdFf6.mjs";import{t as a}from"./dry-run-C2KjGX10.mjs";import{t as o}from"./progress-R-1tIuep.mjs";import{t as s}from"./run-BvDCuZ8q.mjs";import"./telemetry-Ct_2AaO4.mjs";import{n as c,t as l}from"./body-parser-DkHKPkJ7.mjs";import{n as u}from"./input-validation-D7z60HJH.mjs";import{a as d}from"./prompt-dgLm0iFJ.mjs";var f={method:`GET`,path:t=>e`/zones/${t.zone_id}/settings/zaraz/config`};function p(e){return e.usage(`$0 zaraz config get
|
|
3
3
|
|
|
4
4
|
Gets latest Zaraz configuration for a zone. It can be preview or published configuration, whichever was the last updated. Secret variables values will not be included.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const m={command:`get`,describe:`Get Zaraz configuration`,builder:p,handler:async e=>s({command:`zaraz config get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){a({command:`cf zaraz config get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/settings/zaraz/config`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``)},bodyKind:`none`});return}let t=await n(e),s=await r({zone:e.zone},t,{quiet:e.quiet});e.zoneId=s;let c=await o(`Loading`,async()=>t.send(f,{zone_id:s}));i(c,{successLabel:`Loaded`})})};var h={method:`PUT`,path:t=>e`/zones/${t.zone_id}/settings/zaraz/config`,body:`json`};function g(e){return e.usage(`$0 zaraz config update
|
|
5
5
|
|