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,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{i as u,n as d,r as f,t as p}from"./body-parser-DkHKPkJ7.mjs";import{n as m,t as h}from"./input-validation-D7z60HJH.mjs";import{a as g,i as _,n as v}from"./prompt-dgLm0iFJ.mjs";import{n as y,t as b}from"./raw-fetch-BapeoreV.mjs";function ee(e){return e.usage(`$0 cloudforce-one binary-storage create
|
|
3
3
|
|
|
4
4
|
Uploads a binary file to Cloudforce One's binary database for malware analysis and threat intelligence correlation.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Binary file to be uploaded to the database.`}).option(`file`,{type:`string`,description:`Path to a file to upload as the request body`})}const te={command:`create`,describe:`Posts a file to Binary Storage`,builder:ee,handler:async e=>l({command:`cloudforce-one binary-storage create`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await i();s({command:`cf cloudforce-one binary-storage create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/cloudforce-one/binary`,pathParams:{},bodyKind:`multipart`,body:{body:e.body,file:e.file}});return}let l=await r(e),u=e.local?t:await a();if(e.accountId=u,e.file!==void 0||e.body!==void 0){let t=new FormData;if(e.file){let n=h(e.file);t.append(`file`,new Blob([n]),e.file.split(/[\\/]/).filter(Boolean).pop())}else e.body!==void 0&&t.append(`file`,e.body);let r=await c(`Creating`,async()=>n(l,`POST`,`/accounts/${u}/cloudforce-one/binary`,{body:t}));o(r,{successLabel:`Created`});return}if(e.body){let t=m(e.body,`body`,`binary`),r=await c(`Creating`,async()=>n(l,`POST`,`/accounts/${u}/cloudforce-one/binary`,{body:t,headers:{"Content-Type":`multipart/form-data`}}));o(r,{successLabel:`Created`});return}if(e.body===void 0)throw Error(`--body is required for this command. Pass --body '<json>' or --body @path/to/file.json.`)})};var ne={method:`GET`,path:t=>e`/accounts/${t.account_id}/cloudforce-one/binary/${t.hash}`,response:!1,errors:{400:`BadRequestError`}};function re(e){return e.usage(`$0 cloudforce-one binary-storage get <hash>
|
|
5
5
|
|
|
@@ -187,11 +187,11 @@ List all file assets for a request. Customer can only list assets from their own
|
|
|
187
187
|
|
|
188
188
|
Upload a file asset to R2 storage and associate it with a request. Customer can only upload to their own account.`).positional(`request-id`,{type:`string`,description:`RFI UUID`,demandOption:!0}).option(`project-type`,{type:`string`,description:`RFI project type. Valid values: threat-intelligence, incident-response, ir-emergency-response, table-top, pentest, irp, threat-hunting, cybersecurity-assessment, react-general, legal-response, soc-alerts, demo`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`}).option(`file`,{type:`string`,description:`Path to a file to upload as the request body`}).option(`description`,{type:`string`,description:`Optional description of the asset`}).option(`metadata`,{type:`string`,description:`Optional JSON string of key-value pairs (e.g., '{"key1":"value1"}')`})}const ja={command:`upload <request-id>`,describe:`Upload asset to request (Customer)`,builder:Aa,handler:async e=>l({command:`cloudforce-one requests assets upload`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await i();s({command:`cf cloudforce-one requests assets upload`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/cloudforce-one/v2/requests/${e[`project-type`]==null?`<project-type>`:encodeURIComponent(String(e[`project-type`]))}/${e[`request-id`]==null?`<request-id>`:encodeURIComponent(String(e[`request-id`]))}/assets/upload`,pathParams:{"project-type":String(e[`project-type`]??``),"request-id":String(e[`request-id`]??``)},bodyKind:`multipart`,body:{body:e.body,file:e.file,description:e.description,metadata:e.metadata}});return}let l=await r(e),u=e.local?t:await a();if(e.accountId=u,e.file!==void 0||e.body!==void 0||e.description!==void 0||e.metadata!==void 0){let t=new FormData;if(e.file){let n=h(e.file);t.append(`file`,new Blob([n]),e.file.split(/[\\/]/).filter(Boolean).pop())}else e.body!==void 0&&t.append(`file`,e.body);e.description!==void 0&&t.append(`description`,String(m(e.description,`description`,`text`)??``)),e.metadata!==void 0&&t.append(`metadata`,String(m(e.metadata,`metadata`,`text`)??``));let r=await c(`Creating`,async()=>n(l,`POST`,`/accounts/${u}/cloudforce-one/v2/requests/${encodeURIComponent(String(e[`project-type`]))}/${encodeURIComponent(String(e[`request-id`]))}/assets/upload`,{body:t}));o(r,{successLabel:`Created`});return}if(e.body){let t=m(e.body,`body`,`binary`),r=await c(`Creating`,async()=>n(l,`POST`,`/accounts/${u}/cloudforce-one/v2/requests/${encodeURIComponent(String(e[`project-type`]))}/${encodeURIComponent(String(e[`request-id`]))}/assets/upload`,{body:t,headers:{"Content-Type":`multipart/form-data`}}));o(r,{successLabel:`Created`});return}let d=await c(`Creating`,async()=>l.send(ka,{account_id:u,project_type:e[`project-type`],request_id:e[`request-id`]}));o(d,{successLabel:`Created`})})},Ma={command:`assets`,describe:`Operations for requests.assets`,builder:e=>e.command(Ta).command(Oa).command(ja).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var Na={method:`GET`,path:t=>e`/accounts/${t.account_id}/cloudforce-one/v2/requests/${t.project_type}/constants`};function Pa(e){return e.usage(`$0 cloudforce-one requests constants get <project-type>
|
|
189
189
|
|
|
190
|
-
Returns available priorities, statuses, and TLP levels for request workflows`).positional(`project-type`,{type:`string`,description:`Project type`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const Fa={command:`get <project-type>`,describe:`Get request constants`,builder:Pa,handler:async e=>l({command:`cloudforce-one requests constants get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await i();s({command:`cf cloudforce-one requests constants get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/cloudforce-one/v2/requests/${e[`project-type`]==null?`<project-type>`:encodeURIComponent(String(e[`project-type`]))}/constants`,pathParams:{"project-type":String(e[`project-type`]??``)},bodyKind:`none`});return}let n=await r(e),l=e.local?t:await a();e.accountId=l;let u=await c(`Loading`,async()=>n.send(Na,{account_id:l,project_type:e[`project-type`]}));o(u,{successLabel:`Loaded`})})},Ia={command:`constants`,describe:`Operations for requests.constants`,builder:e=>e.command(Fa).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var La={method:`GET`,path:t=>e`/accounts/${t.account_id}/cloudforce-one/v2/requests/${t.project_type}`,query:[`page`,`pageSize`,`status`,`search`,`createdBy`,`assignee`,`requestType`,`priority`,`tlp`,`id`,`readableId`,`summary`,`accountId`,`metadata`,`orderBy`,`order`]};function Ra(e){return e.usage(`$0 cloudforce-one requests
|
|
190
|
+
Returns available priorities, statuses, and TLP levels for request workflows`).positional(`project-type`,{type:`string`,description:`Project type`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const Fa={command:`get <project-type>`,describe:`Get request constants`,builder:Pa,handler:async e=>l({command:`cloudforce-one requests constants get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await i();s({command:`cf cloudforce-one requests constants get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/cloudforce-one/v2/requests/${e[`project-type`]==null?`<project-type>`:encodeURIComponent(String(e[`project-type`]))}/constants`,pathParams:{"project-type":String(e[`project-type`]??``)},bodyKind:`none`});return}let n=await r(e),l=e.local?t:await a();e.accountId=l;let u=await c(`Loading`,async()=>n.send(Na,{account_id:l,project_type:e[`project-type`]}));o(u,{successLabel:`Loaded`})})},Ia={command:`constants`,describe:`Operations for requests.constants`,builder:e=>e.command(Fa).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var La={method:`GET`,path:t=>e`/accounts/${t.account_id}/cloudforce-one/v2/requests/${t.project_type}`,query:[`page`,`pageSize`,`status`,`search`,`createdBy`,`assignee`,`requestType`,`priority`,`tlp`,`id`,`readableId`,`summary`,`accountId`,`metadata`,`orderBy`,`order`]};function Ra(e){return e.usage(`$0 cloudforce-one requests get-request-list <project-type>
|
|
191
191
|
|
|
192
|
-
Retrieves a paginated list of RFIs with filtering and sorting options.`).positional(`project-type`,{type:`string`,description:`RFI project type`,demandOption:!0}).option(`page`,{type:`number`,description:`Page`}).option(`page-size`,{type:`number`,description:`PageSize`}).option(`status`,{type:`string`,description:`Status filter. Projects with a narrowed dashboard vocabulary accept only their customer-facing values.`}).option(`search`,{type:`string`,description:`Search`}).option(`created-by`,{type:`string`,description:"Filter by creator email. NOTE: For the `legal-response` project type this query parameter is **rejected with HTTP 400** — the server derives the filter from the authenticated user's JWT automatically and does not accept a client-supplied value. Requests to `legal-response` with no valid JWT identity are rejected with HTTP 401."}).option(`assignee`,{type:`string`,description:`Assignee`}).option(`request-type`,{type:`string`,description:`RequestType`}).option(`priority`,{type:`string`,description:`Priority`}).option(`tlp`,{type:`string`,description:`Tlp`}).option(`id`,{type:`string`,description:`ID`}).option(`readable-id`,{type:`string`,description:`ReadableId`}).option(`summary`,{type:`string`,description:`Summary`}).option(`filter-account-id`,{type:`string`,description:`AccountId`}).option(`metadata`,{type:`string`,description:`JSON string object of metadata filters. Supports two formats: 1) Simple values for exact match (backward compatible): {"status": "open"} 2) Operator objects for advanced filtering: {"identifiers": {"operator": "contains_line", "value": "blah.com"}}. Available operators: 'eq' (exact match, default), 'contains' (substring match), 'contains_line' (match complete line in newline-separated text). Date fields are automatically normalized to YYYY-MM-DD format.`}).option(`order-by`,{type:`string`,description:`Sort field. SOC Communications support customer-safe latest_activity ordering.`}).option(`order`,{type:`string`,description:`Order`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const za={command:`
|
|
192
|
+
Retrieves a paginated list of RFIs with filtering and sorting options.`).positional(`project-type`,{type:`string`,description:`RFI project type`,demandOption:!0}).option(`page`,{type:`number`,description:`Page`}).option(`page-size`,{type:`number`,description:`PageSize`}).option(`status`,{type:`string`,description:`Status filter. Projects with a narrowed dashboard vocabulary accept only their customer-facing values.`}).option(`search`,{type:`string`,description:`Search`}).option(`created-by`,{type:`string`,description:"Filter by creator email. NOTE: For the `legal-response` project type this query parameter is **rejected with HTTP 400** — the server derives the filter from the authenticated user's JWT automatically and does not accept a client-supplied value. Requests to `legal-response` with no valid JWT identity are rejected with HTTP 401."}).option(`assignee`,{type:`string`,description:`Assignee`}).option(`request-type`,{type:`string`,description:`RequestType`}).option(`priority`,{type:`string`,description:`Priority`}).option(`tlp`,{type:`string`,description:`Tlp`}).option(`id`,{type:`string`,description:`ID`}).option(`readable-id`,{type:`string`,description:`ReadableId`}).option(`summary`,{type:`string`,description:`Summary`}).option(`filter-account-id`,{type:`string`,description:`AccountId`}).option(`metadata`,{type:`string`,description:`JSON string object of metadata filters. Supports two formats: 1) Simple values for exact match (backward compatible): {"status": "open"} 2) Operator objects for advanced filtering: {"identifiers": {"operator": "contains_line", "value": "blah.com"}}. Available operators: 'eq' (exact match, default), 'contains' (substring match), 'contains_line' (match complete line in newline-separated text). Date fields are automatically normalized to YYYY-MM-DD format.`}).option(`order-by`,{type:`string`,description:`Sort field. SOC Communications support customer-safe latest_activity ordering.`}).option(`order`,{type:`string`,description:`Order`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const za={command:`get-request-list <project-type>`,describe:`List RFIs`,builder:Ra,handler:async e=>l({command:`cloudforce-one requests get-request-list`,classification:{safeFlags:[`dry-run`]}},e,async()=>{let n={page:e.page,pageSize:e[`page-size`],status:e.status,search:e.search,createdBy:e[`created-by`],assignee:e.assignee,requestType:e[`request-type`],priority:e.priority,tlp:e.tlp,id:e.id,readableId:e[`readable-id`],summary:e.summary,accountId:e[`filter-account-id`],metadata:e.metadata,orderBy:e[`order-by`],order:e.order};if(e.dryRun){let t=await i();s({command:`cf cloudforce-one requests get-request-list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/cloudforce-one/v2/requests/${e[`project-type`]==null?`<project-type>`:encodeURIComponent(String(e[`project-type`]))}`,pathParams:{"project-type":String(e[`project-type`]??``)},query:n,bodyKind:`none`});return}let l=await r(e),u=e.local?t:await a();e.accountId=u;let d=await c(`Loading`,async()=>l.send(La,{account_id:u,project_type:e[`project-type`],...n}));o(d,{successLabel:`Loaded`})})};var Ba={method:`GET`,path:t=>e`/accounts/${t.account_id}/cloudforce-one/v2/requests/${t.project_type}/${t.request_id}`,errors:{400:`BadRequestError`,404:`NotFoundError`}};function Va(e){return e.usage(`$0 cloudforce-one requests get-request-read <request-id>
|
|
193
193
|
|
|
194
|
-
Retrieves a specific RFI by its UUID with related data.`).positional(`request-id`,{type:`string`,description:`RFI UUID`,demandOption:!0}).option(`project-type`,{type:`string`,description:`RFI project type. Valid values: threat-intelligence, incident-response, ir-emergency-response, table-top, pentest, irp, threat-hunting, cybersecurity-assessment, react-general, legal-response, soc-alerts, demo`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const Ha={command:`
|
|
194
|
+
Retrieves a specific RFI by its UUID with related data.`).positional(`request-id`,{type:`string`,description:`RFI UUID`,demandOption:!0}).option(`project-type`,{type:`string`,description:`RFI project type. Valid values: threat-intelligence, incident-response, ir-emergency-response, table-top, pentest, irp, threat-hunting, cybersecurity-assessment, react-general, legal-response, soc-alerts, demo`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const Ha={command:`get-request-read <request-id>`,describe:`Get an RFI by ID`,builder:Va,handler:async e=>l({command:`cloudforce-one requests get-request-read`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await i();s({command:`cf cloudforce-one requests get-request-read`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/cloudforce-one/v2/requests/${e[`project-type`]==null?`<project-type>`:encodeURIComponent(String(e[`project-type`]))}/${e[`request-id`]==null?`<request-id>`:encodeURIComponent(String(e[`request-id`]))}`,pathParams:{"project-type":String(e[`project-type`]??``),"request-id":String(e[`request-id`]??``)},bodyKind:`none`});return}let n=await r(e),l=e.local?t:await a();e.accountId=l;let u=await c(`Loading`,async()=>n.send(Ba,{account_id:l,project_type:e[`project-type`],request_id:e[`request-id`]}));o(u,{successLabel:`Loaded`})})};var Ua={method:`GET`,path:t=>e`/accounts/${t.account_id}/cloudforce-one/v2/requests/legal-response/access-check`,errors:{401:`UnauthorizedError`}};function Wa(e){return e.usage(`$0 cloudforce-one requests legal-response access-check
|
|
195
195
|
|
|
196
196
|
Returns whether the JWT-authenticated user's email is on the legal-response allowlist. This endpoint is purely informational for UI gating; actual access enforcement is performed by \`legalResponseMiddleware\` on real legal-response endpoints. Read-only — no Durable Object writes are performed.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const Ga={command:`access-check`,describe:`Check if current user is allowlisted for Legal Response`,builder:Wa,handler:async e=>l({command:`cloudforce-one requests legal-response access-check`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let e=await i();s({command:`cf cloudforce-one requests legal-response access-check`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}/cloudforce-one/v2/requests/legal-response/access-check`,pathParams:{},bodyKind:`none`});return}let n=await r(e),l=e.local?t:await a();e.accountId=l;let u=await c(`Loading`,async()=>n.send(Ua,{account_id:l}));o(u,{successLabel:`Loaded`})})},Ka={command:`legal-response`,describe:`Operations for requests.legal-response`,builder:e=>e.command(Ga).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function qa(e){return e.usage(`$0 cloudforce-one requests messages create <request-id>
|
|
197
197
|
|
|
@@ -203,11 +203,11 @@ Retrieves the published, non-deleted messages visible to the agent for an RFI re
|
|
|
203
203
|
|
|
204
204
|
Updates an existing message, typically to publish a draft by setting publish=true. Workflow-enabled publication requires Idempotency-Key and atomically records message activity and any policy transition.`).positional(`message-id`,{type:`string`,description:`Message ID`,demandOption:!0}).option(`project-type`,{type:`string`,description:`Project type`,demandOption:!0}).option(`request-id`,{type:`string`,description:`Request ID`,demandOption:!0}).option(`idempotency-key`,{type:`string`,description:`Client command key. Required when publishing a message for a workflow-enabled project; trimmed and limited to 255 characters.`}).option(`attachment-asset-ids`,{type:`string`,array:!0,description:`The attachment_asset_ids field`}).option(`content`,{type:`string`,description:`The content field`}).option(`publish`,{type:`boolean`,description:`The publish field`}).option(`tlp`,{type:`string`,description:`The tlp field`,choices:[`clear`,`green`,`amber`,`amber-strict`,`red`,`white`]}).coerce(`tlp`,e=>m(e,`tlp`,`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 no={command:`update <message-id>`,describe:`Update/publish a message for an RFI request`,builder:to,handler:async e=>l({command:`cloudforce-one requests messages update`,classification:{safeFlags:[`publish`,`tlp`,`dry-run`]}},e,async()=>{let l={};if(e[`idempotency-key`]!==void 0&&(l[`Idempotency-Key`]=String(e[`idempotency-key`])),e.dryRun){let t=await i();s({command:`cf cloudforce-one requests messages update`,method:`PUT`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/cloudforce-one/v2/requests/${e[`project-type`]==null?`<project-type>`:encodeURIComponent(String(e[`project-type`]))}/${e[`request-id`]==null?`<request-id>`:encodeURIComponent(String(e[`request-id`]))}/messages/${e[`message-id`]==null?`<message-id>`:encodeURIComponent(String(e[`message-id`]))}`,pathParams:{"project-type":String(e[`project-type`]??``),"request-id":String(e[`request-id`]??``),"message-id":String(e[`message-id`]??``)},bodyKind:`json`,body:e.body===void 0?p({attachment_asset_ids:e[`attachment-asset-ids`],content:m(e.content,`content`,`text`),publish:e.publish,tlp:e.tlp}):d(e.body)});return}let f=await r(e),h=e.local?t:await a();if(e.accountId=h,e.body){let t=d(e.body),r=await c(`Updating`,async()=>n(f,`PUT`,`/accounts/${h}/cloudforce-one/v2/requests/${encodeURIComponent(String(e[`project-type`]))}/${encodeURIComponent(String(e[`request-id`]))}/messages/${encodeURIComponent(String(e[`message-id`]))}`,{body:t,headers:Object.keys(l).length>0?l:void 0}));o(r,{successLabel:`Updated`});return}if(e.content===void 0&&(e.content=await g(`content`,`The content field`)),e.publish===void 0)throw Error(`--publish is required (or pass --body with this field set).`);e.tlp===void 0&&(e.tlp=await _(`tlp`,`The tlp field`,[`clear`,`green`,`amber`,`amber-strict`,`red`,`white`]));let v={};e[`attachment-asset-ids`]!==void 0&&u(v,[`attachment_asset_ids`],e[`attachment-asset-ids`]),e.content!==void 0&&u(v,[`content`],m(e.content,`content`,`text`)),e.publish!==void 0&&u(v,[`publish`],e.publish),e.tlp!==void 0&&u(v,[`tlp`],e.tlp);let y=await c(`Updating`,async()=>n(f,`PUT`,`/accounts/${h}/cloudforce-one/v2/requests/${encodeURIComponent(String(e[`project-type`]))}/${encodeURIComponent(String(e[`request-id`]))}/messages/${encodeURIComponent(String(e[`message-id`]))}`,{body:v,headers:Object.keys(l).length>0?l:void 0}));o(y,{successLabel:`Updated`})})},ro={command:`messages`,describe:`Operations for requests.messages`,builder:e=>e.command(Ja).command(Za).command(eo).command(no).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var io={method:`GET`,path:t=>e`/accounts/${t.account_id}/cloudforce-one/v2/requests/${t.project_type}/metadata`,query:[`request_type`,`country`],errors:{401:`UnauthorizedError`}};function ao(e){return e.usage(`$0 cloudforce-one requests metadata list
|
|
205
205
|
|
|
206
|
-
Get custom metadata fields available for the specified project type`).option(`project-type`,{type:`string`,description:`Project type`,demandOption:!0}).option(`request-type`,{type:`string`,description:`Filter fields to those applicable to this request type. Fields without request type restrictions are always included.`}).option(`country`,{type:`string`,description:`Exclude fields restricted for this alpha-2 country code`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const oo={command:`list`,describe:`List metadata fields for an RFI type`,builder:ao,handler:async e=>l({command:`cloudforce-one requests metadata list`,classification:{safeFlags:[`dry-run`]}},e,async()=>{let n={request_type:e[`request-type`],country:e.country};if(e.dryRun){let t=await i();s({command:`cf cloudforce-one requests metadata list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/cloudforce-one/v2/requests/${e[`project-type`]==null?`<project-type>`:encodeURIComponent(String(e[`project-type`]))}/metadata`,pathParams:{"project-type":String(e[`project-type`]??``)},query:n,bodyKind:`none`});return}let l=await r(e),u=e.local?t:await a();e.accountId=u;let d=await c(`Loading`,async()=>l.send(io,{account_id:u,project_type:e[`project-type`],...n}));o(d,{successLabel:`Loaded`})})},so={command:`metadata`,describe:`Operations for requests.metadata`,builder:e=>e.command(oo).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var co={method:`POST`,path:t=>e`/accounts/${t.account_id}/cloudforce-one/v2/requests/${t.project_type}`,body:`json`,errors:{400:`BadRequestError`,500:`InternalServerError`}};function lo(e){return e.usage(`$0 cloudforce-one requests
|
|
206
|
+
Get custom metadata fields available for the specified project type`).option(`project-type`,{type:`string`,description:`Project type`,demandOption:!0}).option(`request-type`,{type:`string`,description:`Filter fields to those applicable to this request type. Fields without request type restrictions are always included.`}).option(`country`,{type:`string`,description:`Exclude fields restricted for this alpha-2 country code`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const oo={command:`list`,describe:`List metadata fields for an RFI type`,builder:ao,handler:async e=>l({command:`cloudforce-one requests metadata list`,classification:{safeFlags:[`dry-run`]}},e,async()=>{let n={request_type:e[`request-type`],country:e.country};if(e.dryRun){let t=await i();s({command:`cf cloudforce-one requests metadata list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/cloudforce-one/v2/requests/${e[`project-type`]==null?`<project-type>`:encodeURIComponent(String(e[`project-type`]))}/metadata`,pathParams:{"project-type":String(e[`project-type`]??``)},query:n,bodyKind:`none`});return}let l=await r(e),u=e.local?t:await a();e.accountId=u;let d=await c(`Loading`,async()=>l.send(io,{account_id:u,project_type:e[`project-type`],...n}));o(d,{successLabel:`Loaded`})})},so={command:`metadata`,describe:`Operations for requests.metadata`,builder:e=>e.command(oo).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var co={method:`POST`,path:t=>e`/accounts/${t.account_id}/cloudforce-one/v2/requests/${t.project_type}`,body:`json`,errors:{400:`BadRequestError`,500:`InternalServerError`}};function lo(e){return e.usage(`$0 cloudforce-one requests post-request-create <project-type>
|
|
207
207
|
|
|
208
|
-
Creates a new Request for Information with the specified project type and details.`).positional(`project-type`,{type:`string`,description:`RFI project type`,demandOption:!0}).option(`description`,{type:`string`,description:`RFI description (optional). Defaults to an empty string when omitted.`}).option(`event-id`,{type:`string`,description:`Optional related event ID`}).option(`priority`,{type:`string`,description:"RFI priority. Four-level projects use `low`, `routine`, `high`, `urgent`; existing projects retain legacy `low`->routine compatibility. `medium`, `critical`, and `unknown` remain accepted legacy aliases. Defaults to `routine`.",choices:[`low`,`routine`,`high`,`urgent`,`unknown`,`medium`,`critical`]}).coerce(`priority`,e=>m(e,`priority`,`text`)).option(`request-type`,{type:`string`,description:`Optional request type for the request`}).option(`subtype-id`,{type:`string`,description:`Optional subtype ID`}).option(`title`,{type:`string`,description:`RFI title (optional). When omitted, the server generates a summary from the request type and readable ID.`}).option(`tlp`,{type:`string`,description:"Traffic Light Protocol level. Canonical values are `clear`, `green`, `amber`, `amber-strict`, `red`, `purple`. `white` and `amber+strict` are accepted input aliases; responses always use the canonical spelling.",choices:[`clear`,`green`,`amber`,`amber-strict`,`red`,`purple`,`white`,`amber+strict`]}).coerce(`tlp`,e=>m(e,`tlp`,`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 uo={command:`
|
|
208
|
+
Creates a new Request for Information with the specified project type and details.`).positional(`project-type`,{type:`string`,description:`RFI project type`,demandOption:!0}).option(`description`,{type:`string`,description:`RFI description (optional). Defaults to an empty string when omitted.`}).option(`event-id`,{type:`string`,description:`Optional related event ID`}).option(`priority`,{type:`string`,description:"RFI priority. Four-level projects use `low`, `routine`, `high`, `urgent`; existing projects retain legacy `low`->routine compatibility. `medium`, `critical`, and `unknown` remain accepted legacy aliases. Defaults to `routine`.",choices:[`low`,`routine`,`high`,`urgent`,`unknown`,`medium`,`critical`]}).coerce(`priority`,e=>m(e,`priority`,`text`)).option(`request-type`,{type:`string`,description:`Optional request type for the request`}).option(`subtype-id`,{type:`string`,description:`Optional subtype ID`}).option(`title`,{type:`string`,description:`RFI title (optional). When omitted, the server generates a summary from the request type and readable ID.`}).option(`tlp`,{type:`string`,description:"Traffic Light Protocol level. Canonical values are `clear`, `green`, `amber`, `amber-strict`, `red`, `purple`. `white` and `amber+strict` are accepted input aliases; responses always use the canonical spelling.",choices:[`clear`,`green`,`amber`,`amber-strict`,`red`,`purple`,`white`,`amber+strict`]}).coerce(`tlp`,e=>m(e,`tlp`,`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 uo={command:`post-request-create <project-type>`,describe:`Creates a new RFI`,builder:lo,handler:async e=>l({command:`cloudforce-one requests post-request-create`,classification:{safeFlags:[`priority`,`tlp`,`dry-run`]}},e,async()=>{if(e.dryRun){let t=await i();s({command:`cf cloudforce-one requests post-request-create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/cloudforce-one/v2/requests/${e[`project-type`]==null?`<project-type>`:encodeURIComponent(String(e[`project-type`]))}`,pathParams:{"project-type":String(e[`project-type`]??``)},bodyKind:`json`,body:e.body===void 0?p({description:m(e.description,`description`,`text`),eventId:m(e[`event-id`],`event-id`,`text`),priority:e.priority,request_type:m(e[`request-type`],`request-type`,`text`),subtypeId:m(e[`subtype-id`],`subtype-id`,`text`),title:m(e.title,`title`,`text`),tlp:e.tlp}):d(e.body)});return}let n=await r(e),l=e.local?t:await a();if(e.accountId=l,e.body){let t=d(e.body),r=await c(`Creating`,async()=>n.send(co,{body:t,account_id:l,project_type:e[`project-type`]}));o(r,{successLabel:`Created`});return}let u=p({description:m(e.description,`description`,`text`),eventId:m(e[`event-id`],`event-id`,`text`),priority:e.priority,request_type:m(e[`request-type`],`request-type`,`text`),subtypeId:m(e[`subtype-id`],`subtype-id`,`text`),title:m(e.title,`title`,`text`),tlp:e.tlp}),f=await c(`Creating`,async()=>n.send(co,{body:u,account_id:l,project_type:e[`project-type`]}));o(f,{successLabel:`Created`})})};var fo={method:`PUT`,path:t=>e`/accounts/${t.account_id}/cloudforce-one/v2/requests/${t.project_type}/${t.request_id}`,body:`json`,errors:{400:`BadRequestError`,404:`NotFoundError`}};function po(e){return e.usage(`$0 cloudforce-one requests put-request-update <request-id>
|
|
209
209
|
|
|
210
|
-
Updates an existing RFI with the provided fields. Only provided fields will be updated.`).positional(`request-id`,{type:`string`,description:`RFI UUID`,demandOption:!0}).option(`project-type`,{type:`string`,description:`RFI project type. Valid values: threat-intelligence, incident-response, ir-emergency-response, table-top, pentest, irp, threat-hunting, cybersecurity-assessment, react-general, legal-response, soc-alerts, demo`,demandOption:!0}).option(`description`,{type:`string`,description:`RFI description`}).option(`event-id`,{type:`string`,description:`Optional related event ID`}).option(`priority`,{type:`string`,description:"RFI priority. Four-level projects use a distinct `low` level; existing projects retain legacy `low`->routine compatibility. `medium`, `critical`, and `unknown` remain accepted legacy aliases.",choices:[`low`,`routine`,`high`,`urgent`,`unknown`,`medium`,`critical`]}).coerce(`priority`,e=>m(e,`priority`,`text`)).option(`request-type`,{type:`string`,description:`Request type. May only be changed while the request is still open; changing it recalculates the request's token cost.`}).option(`subtype-id`,{type:`string`,description:`Optional subtype ID`}).option(`summary`,{type:`string`,description:`RFI summary`}).option(`title`,{type:`string`,description:`RFI title (alias for summary field)`}).option(`tlp`,{type:`string`,description:"Traffic Light Protocol level. `white` and `amber+strict` are accepted input aliases; responses always use the canonical spelling.",choices:[`clear`,`green`,`amber`,`amber-strict`,`red`,`purple`,`white`,`amber+strict`]}).coerce(`tlp`,e=>m(e,`tlp`,`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 mo={command:`
|
|
210
|
+
Updates an existing RFI with the provided fields. Only provided fields will be updated.`).positional(`request-id`,{type:`string`,description:`RFI UUID`,demandOption:!0}).option(`project-type`,{type:`string`,description:`RFI project type. Valid values: threat-intelligence, incident-response, ir-emergency-response, table-top, pentest, irp, threat-hunting, cybersecurity-assessment, react-general, legal-response, soc-alerts, demo`,demandOption:!0}).option(`description`,{type:`string`,description:`RFI description`}).option(`event-id`,{type:`string`,description:`Optional related event ID`}).option(`priority`,{type:`string`,description:"RFI priority. Four-level projects use a distinct `low` level; existing projects retain legacy `low`->routine compatibility. `medium`, `critical`, and `unknown` remain accepted legacy aliases.",choices:[`low`,`routine`,`high`,`urgent`,`unknown`,`medium`,`critical`]}).coerce(`priority`,e=>m(e,`priority`,`text`)).option(`request-type`,{type:`string`,description:`Request type. May only be changed while the request is still open; changing it recalculates the request's token cost.`}).option(`subtype-id`,{type:`string`,description:`Optional subtype ID`}).option(`summary`,{type:`string`,description:`RFI summary`}).option(`title`,{type:`string`,description:`RFI title (alias for summary field)`}).option(`tlp`,{type:`string`,description:"Traffic Light Protocol level. `white` and `amber+strict` are accepted input aliases; responses always use the canonical spelling.",choices:[`clear`,`green`,`amber`,`amber-strict`,`red`,`purple`,`white`,`amber+strict`]}).coerce(`tlp`,e=>m(e,`tlp`,`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 mo={command:`put-request-update <request-id>`,describe:`Update an RFI`,builder:po,handler:async e=>l({command:`cloudforce-one requests put-request-update`,classification:{safeFlags:[`priority`,`tlp`,`dry-run`]}},e,async()=>{if(e.dryRun){let t=await i();s({command:`cf cloudforce-one requests put-request-update`,method:`PUT`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/cloudforce-one/v2/requests/${e[`project-type`]==null?`<project-type>`:encodeURIComponent(String(e[`project-type`]))}/${e[`request-id`]==null?`<request-id>`:encodeURIComponent(String(e[`request-id`]))}`,pathParams:{"project-type":String(e[`project-type`]??``),"request-id":String(e[`request-id`]??``)},bodyKind:`json`,body:e.body===void 0?p({description:m(e.description,`description`,`text`),eventId:m(e[`event-id`],`event-id`,`text`),priority:e.priority,request_type:m(e[`request-type`],`request-type`,`text`),subtypeId:m(e[`subtype-id`],`subtype-id`,`text`),summary:m(e.summary,`summary`,`text`),title:m(e.title,`title`,`text`),tlp:e.tlp}):d(e.body)});return}let n=await r(e),l=e.local?t:await a();if(e.accountId=l,e.body){let t=d(e.body),r=await c(`Updating`,async()=>n.send(fo,{body:t,account_id:l,project_type:e[`project-type`],request_id:e[`request-id`]}));o(r,{successLabel:`Updated`});return}let u=p({description:m(e.description,`description`,`text`),eventId:m(e[`event-id`],`event-id`,`text`),priority:e.priority,request_type:m(e[`request-type`],`request-type`,`text`),subtypeId:m(e[`subtype-id`],`subtype-id`,`text`),summary:m(e.summary,`summary`,`text`),title:m(e.title,`title`,`text`),tlp:e.tlp}),f=await c(`Updating`,async()=>n.send(fo,{body:u,account_id:l,project_type:e[`project-type`],request_id:e[`request-id`]}));o(f,{successLabel:`Updated`})})};var ho={method:`GET`,path:t=>e`/accounts/${t.account_id}/cloudforce-one/v2/requests/${t.project_type}/quota`,response:!1,errors:{404:`NotFoundError`,422:`UnprocessableEntityError`}};function go(e){return e.usage(`$0 cloudforce-one requests quota get <project-type>
|
|
211
211
|
|
|
212
212
|
Returns the account's token quota for the current anniversary quarter: total granted, used, remaining, and the quarter/anniversary boundaries.`).positional(`project-type`,{type:`string`,description:`RFI project type`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const _o={command:`get <project-type>`,describe:`Get request token quota`,builder:go,handler:async e=>l({command:`cloudforce-one requests quota get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await i();s({command:`cf cloudforce-one requests quota get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/cloudforce-one/v2/requests/${e[`project-type`]==null?`<project-type>`:encodeURIComponent(String(e[`project-type`]))}/quota`,pathParams:{"project-type":String(e[`project-type`]??``)},bodyKind:`none`});return}let n=await r(e),l=e.local?t:await a();e.accountId=l;let u=await c(`Loading`,async()=>n.send(ho,{account_id:l,project_type:e[`project-type`]}));o(u,{successLabel:`Loaded`})})},vo={command:`quota`,describe:`Operations for requests.quota`,builder:e=>e.command(_o).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var yo={method:`GET`,path:t=>e`/accounts/${t.account_id}/cloudforce-one/v2/requests/${t.project_type}/types`};function bo(e){return e.usage(`$0 cloudforce-one requests types list
|
|
213
213
|
|
|
@@ -223,13 +223,13 @@ Returns rule approvals with optional status, revision, reviewer-scope, and mutat
|
|
|
223
223
|
|
|
224
224
|
Create a new pending revision from a rejected rule approval. Only the original requester may resubmit the latest revision.`).positional(`id`,{type:`string`,description:`The unique identifier for the approval.`,demandOption:!0}).option(`commit-message`,{type:`string`,description:`The commit_message field`}).option(`content`,{type:`string`,description:`The content field`}).option(`description`,{type:`string`,description:`The description field`}).option(`enabled`,{type:`boolean`,description:`The enabled field`}).option(`name`,{type:`string`,description:`The name field`}).option(`namespaces`,{type:`string`,array:!0,description:`The namespaces 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 zo={command:`resubmit <id>`,describe:`Revise and resubmit a rejected approval`,builder:Ro,handler:async e=>l({command:`cloudforce-one rules approvals resubmit`,classification:{safeFlags:[`enabled`,`dry-run`]}},e,async()=>{if(e.dryRun){let t=await i();s({command:`cf cloudforce-one rules approvals resubmit`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/cloudforce-one/rules/approvals/${e.id==null?`<id>`:encodeURIComponent(String(e.id))}/resubmit`,pathParams:{id:String(e.id??``)},bodyKind:`json`,body:e.body===void 0?p({commit_message:m(e[`commit-message`],`commit-message`,`text`),content:m(e.content,`content`,`text`),description:m(e.description,`description`,`text`),enabled:e.enabled,name:m(e.name,`name`,`text`),namespaces:e.namespaces}):d(e.body)});return}let n=await r(e),l=e.local?t:await a();if(e.accountId=l,e.body){let t=d(e.body),r=await c(`Creating`,async()=>n.send(Lo,{body:t,account_id:l,id:e.id}));o(r,{successLabel:`Created`});return}let u=p({commit_message:m(e[`commit-message`],`commit-message`,`text`),content:m(e.content,`content`,`text`),description:m(e.description,`description`,`text`),enabled:e.enabled,name:m(e.name,`name`,`text`),namespaces:e.namespaces}),f=await c(`Creating`,async()=>n.send(Lo,{body:u,account_id:l,id:e.id}));o(f,{successLabel:`Created`})})},Bo={command:`approvals`,describe:`Approval workflow operations`,builder:e=>e.command(Ao).command(No).command(Io).command(zo).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var Vo={method:`POST`,path:t=>e`/accounts/${t.account_id}/cloudforce-one/rules`,body:`json`,errors:{400:`BadRequestError`,401:`UnauthorizedError`}};function Ho(e){return e.usage(`$0 cloudforce-one rules create
|
|
225
225
|
|
|
226
|
-
Create a new detection rule.`).option(`actions`,{type:`string`,description:`The actions field. Provide as a JSON array of objects or @path/to/file.json.`}).option(`commit-message`,{type:`string`,description:`Human-readable justification for this change. Required for internal-account submissions; optional for customer accounts and automated sync.`}).option(`content`,{type:`string`,description:`The content field`}).option(`description`,{type:`string`,description:`Human-readable description of the rule. Auto-extracted from YARA meta if present.`}).option(`enabled`,{type:`boolean`,description:`Whether this rule is active for dice consumers.`,default:!0}).option(`is-public`,{type:`boolean`,description:`Whether this rule is visible to other internal accounts.`,default:!1}).option(`meta`,{type:`string`,description:`Adds YARA meta entries to the rule's meta block and stores them in rule_meta alongside content metadata. Use valid YARA identifiers for keys; exclude 'name', 'enabled', and 'description'. You may repeat keys. Provide as a JSON array of objects or @path/to/file.json.`}).option(`name`,{type:`string`,description:`The name field`}).option(`namespaces`,{type:`string`,array:!0,description:`Optional WfP deployment tags (customer rules only). Internal rules leave empty.`}).option(`path`,{type:`string`,description:`The path 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 Uo={command:`create`,describe:`Create a rule`,builder:Ho,handler:async e=>l({command:`cloudforce-one rules create`,classification:{safeFlags:[`enabled`,`is-public`,`dry-run`]}},e,async()=>{if(e.dryRun){let t=await i();s({command:`cf cloudforce-one rules create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/cloudforce-one/rules`,pathParams:{},bodyKind:`json`,body:e.body===void 0?p({actions:f(e.actions,`actions`),commit_message:m(e[`commit-message`],`commit-message`,`text`),content:m(e.content,`content`,`text`),description:m(e.description,`description`,`text`),enabled:e.enabled,is_public:e[`is-public`],meta:f(e.meta,`meta`),name:m(e.name,`name`,`text`),namespaces:e.namespaces,path:m(e.path,`path`,`text`)}):d(e.body)});return}let n=await r(e),l=e.local?t:await a();if(e.accountId=l,e.body){let t=d(e.body),r=await c(`Creating`,async()=>n.send(Vo,{body:t,account_id:l}));o(r,{successLabel:`Created`});return}e.content===void 0&&(e.content=await g(`content`,`The content field`)),e.name===void 0&&(e.name=await g(`name`,`The name field`)),e.path===void 0&&(e.path=await g(`path`,`The path field`));let u=p({actions:f(e.actions,`actions`),commit_message:m(e[`commit-message`],`commit-message`,`text`),content:m(e.content,`content`,`text`),description:m(e.description,`description`,`text`),enabled:e.enabled,is_public:e[`is-public`],meta:f(e.meta,`meta`),name:m(e.name,`name`,`text`),namespaces:e.namespaces,path:m(e.path,`path`,`text`)}),h=await c(`Creating`,async()=>n.send(Vo,{body:u,account_id:l}));o(h,{successLabel:`Created`})})};var Wo={method:`DELETE`,path:t=>e`/accounts/${t.account_id}/cloudforce-one/rules
|
|
226
|
+
Create a new detection rule.`).option(`actions`,{type:`string`,description:`The actions field. Provide as a JSON array of objects or @path/to/file.json.`}).option(`commit-message`,{type:`string`,description:`Human-readable justification for this change. Required for internal-account submissions; optional for customer accounts and automated sync.`}).option(`content`,{type:`string`,description:`The content field`}).option(`description`,{type:`string`,description:`Human-readable description of the rule. Auto-extracted from YARA meta if present.`}).option(`enabled`,{type:`boolean`,description:`Whether this rule is active for dice consumers.`,default:!0}).option(`is-public`,{type:`boolean`,description:`Whether this rule is visible to other internal accounts.`,default:!1}).option(`meta`,{type:`string`,description:`Adds YARA meta entries to the rule's meta block and stores them in rule_meta alongside content metadata. Use valid YARA identifiers for keys; exclude 'name', 'enabled', and 'description'. You may repeat keys. Provide as a JSON array of objects or @path/to/file.json.`}).option(`name`,{type:`string`,description:`The name field`}).option(`namespaces`,{type:`string`,array:!0,description:`Optional WfP deployment tags (customer rules only). Internal rules leave empty.`}).option(`path`,{type:`string`,description:`The path 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 Uo={command:`create`,describe:`Create a rule`,builder:Ho,handler:async e=>l({command:`cloudforce-one rules create`,classification:{safeFlags:[`enabled`,`is-public`,`dry-run`]}},e,async()=>{if(e.dryRun){let t=await i();s({command:`cf cloudforce-one rules create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/cloudforce-one/rules`,pathParams:{},bodyKind:`json`,body:e.body===void 0?p({actions:f(e.actions,`actions`),commit_message:m(e[`commit-message`],`commit-message`,`text`),content:m(e.content,`content`,`text`),description:m(e.description,`description`,`text`),enabled:e.enabled,is_public:e[`is-public`],meta:f(e.meta,`meta`),name:m(e.name,`name`,`text`),namespaces:e.namespaces,path:m(e.path,`path`,`text`)}):d(e.body)});return}let n=await r(e),l=e.local?t:await a();if(e.accountId=l,e.body){let t=d(e.body),r=await c(`Creating`,async()=>n.send(Vo,{body:t,account_id:l}));o(r,{successLabel:`Created`});return}e.content===void 0&&(e.content=await g(`content`,`The content field`)),e.name===void 0&&(e.name=await g(`name`,`The name field`)),e.path===void 0&&(e.path=await g(`path`,`The path field`));let u=p({actions:f(e.actions,`actions`),commit_message:m(e[`commit-message`],`commit-message`,`text`),content:m(e.content,`content`,`text`),description:m(e.description,`description`,`text`),enabled:e.enabled,is_public:e[`is-public`],meta:f(e.meta,`meta`),name:m(e.name,`name`,`text`),namespaces:e.namespaces,path:m(e.path,`path`,`text`)}),h=await c(`Creating`,async()=>n.send(Vo,{body:u,account_id:l}));o(h,{successLabel:`Created`})})};var Wo={method:`DELETE`,path:t=>e`/accounts/${t.account_id}/cloudforce-one/rules`,errors:{401:`UnauthorizedError`,409:`ConflictError`}};function Go(e){return e.usage(`$0 cloudforce-one rules delete-all
|
|
227
227
|
|
|
228
|
-
Delete
|
|
229
|
-
`);return}
|
|
228
|
+
Delete all rules in an account.`).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 Ko={command:`delete-all`,describe:`Delete all rules`,builder:Go,handler:async e=>l({command:`cloudforce-one rules delete-all`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{if(e.dryRun){let e=await i();s({command:`cf cloudforce-one rules delete-all`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}/cloudforce-one/rules`,pathParams:{},bodyKind:`none`});return}let n=await r(e),l=e.local?t:await a();if(e.accountId=l,!await v({force:!!e.force})){process.stderr.write(`Aborted.
|
|
229
|
+
`);return}let u=await c(`Deleting`,async()=>n.send(Wo,{account_id:l}));o(u,{successLabel:`Deleted`})})};var qo={method:`DELETE`,path:t=>e`/accounts/${t.account_id}/cloudforce-one/rules/${t.id}`,body:`json`,errors:{400:`BadRequestError`,401:`UnauthorizedError`,404:`NotFoundError`,409:`ConflictError`}};function Jo(e){return e.usage(`$0 cloudforce-one rules delete <id>
|
|
230
230
|
|
|
231
|
-
Delete
|
|
232
|
-
`);return}let
|
|
231
|
+
Delete an existing rule.`).positional(`id`,{type:`string`,description:`The unique identifier for the rule.`,demandOption:!0}).option(`commit-message`,{type:`string`,description:`Human-readable justification for the deletion. Required for internal-account submissions; optional for customer accounts and automated sync.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`force`,{type:`boolean`,alias:`f`,description:`Skip confirmation (useful in scripts and CI)`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const Yo={command:`delete <id>`,describe:`Delete a rule`,builder:Jo,handler:async e=>l({command:`cloudforce-one rules delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{if(e.dryRun){let t=await i();s({command:`cf cloudforce-one rules delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/cloudforce-one/rules/${e.id==null?`<id>`:encodeURIComponent(String(e.id))}`,pathParams:{id:String(e.id??``)},bodyKind:`json`,body:e.body===void 0?p({commit_message:m(e[`commit-message`],`commit-message`,`text`)}):d(e.body)});return}let n=await r(e),l=e.local?t:await a();if(e.accountId=l,!await v({force:!!e.force})){process.stderr.write(`Aborted.
|
|
232
|
+
`);return}if(e.body){let t=d(e.body),r=await c(`Deleting`,async()=>n.send(qo,{body:t,account_id:l,id:e.id}));o(r,{successLabel:`Deleted`});return}let u=p({commit_message:m(e[`commit-message`],`commit-message`,`text`)}),f=await c(`Deleting`,async()=>n.send(qo,{body:u,account_id:l,id:e.id}));o(f,{successLabel:`Deleted`})})};var Xo={method:`POST`,path:t=>e`/accounts/${t.account_id}/cloudforce-one/rules/structured/approvals/${t.id}/resubmit`,query:[`module`],body:`json`,errors:{400:`BadRequestError`,403:`ForbiddenError`,404:`NotFoundError`,409:`ConflictError`}};function Zo(e){return e.usage(`$0 cloudforce-one rules email approvals resubmit <id>
|
|
233
233
|
|
|
234
234
|
Validates and compiles a complete structured email rule, then creates an immutable pending revision of its rejected approval.`).positional(`id`,{type:`string`,description:`The unique identifier for the approval.`,demandOption:!0}).option(`module`,{type:`string`,description:`Structured rule module.`,choices:[`eml`]}).option(`condition-operator`,{type:`string`,description:`The condition.operator field`,choices:[`and`,`or`]}).coerce(`condition-operator`,e=>m(e,`condition-operator`,`text`)).option(`condition-type`,{type:`string`,description:`The condition.type field`,choices:[`group`]}).coerce(`condition-type`,e=>m(e,`condition-type`,`text`)).option(`description`,{type:`string`,description:`The description field`}).option(`enabled`,{type:`boolean`,description:`The enabled field`,default:!0}).option(`meta`,{type:`string`,description:`The meta field. Provide as a JSON array of objects or @path/to/file.json.`}).option(`name`,{type:`string`,description:`The name field`}).option(`status`,{type:`string`,description:`Disposition for matching email. This emits status metadata with the selected value.`,choices:[`silent`,`blocking`],default:`silent`}).coerce(`status`,e=>m(e,`status`,`text`)).option(`strings`,{type:`string`,description:`The strings field. 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 Qo={command:`resubmit <id>`,describe:`Revise and resubmit a rejected structured email rule approval`,builder:Zo,handler:async e=>l({command:`cloudforce-one rules email approvals resubmit`,classification:{safeFlags:[`module`,`condition-operator`,`condition-type`,`enabled`,`status`,`dry-run`]}},e,async()=>{let n={module:e.module};if(e.dryRun){let t=await i();s({command:`cf cloudforce-one rules email approvals resubmit`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/cloudforce-one/rules/structured/approvals/${e.id==null?`<id>`:encodeURIComponent(String(e.id))}/resubmit`,pathParams:{id:String(e.id??``)},query:n,bodyKind:`json`,body:e.body===void 0?p({condition:{operator:e[`condition-operator`],type:e[`condition-type`]},description:m(e.description,`description`,`text`),enabled:e.enabled,meta:f(e.meta,`meta`),name:m(e.name,`name`,`text`),status:e.status,strings:f(e.strings,`strings`)}):d(e.body)});return}let l=await r(e),u=e.local?t:await a();if(e.accountId=u,e.body){let t=d(e.body);new URLSearchParams(Object.entries(n).filter(([,e])=>e!==void 0).map(([e,t])=>[e,String(t)])).toString();let r=await c(`Creating`,async()=>l.send(Xo,{body:t,account_id:u,id:e.id,...n}));o(r,{successLabel:`Created`});return}e[`condition-operator`]===void 0&&(e[`condition-operator`]=await _(`condition-operator`,`The condition.operator field`,[`and`,`or`])),e[`condition-type`]===void 0&&(e[`condition-type`]=await _(`condition-type`,`The condition.type field`,[`group`])),e.name===void 0&&(e.name=await g(`name`,`The name field`));let h=p({condition:{operator:e[`condition-operator`],type:e[`condition-type`]},description:m(e.description,`description`,`text`),enabled:e.enabled,meta:f(e.meta,`meta`),name:m(e.name,`name`,`text`),status:e.status,strings:f(e.strings,`strings`)});new URLSearchParams(Object.entries(n).filter(([,e])=>e!==void 0).map(([e,t])=>[e,String(t)])).toString();let v=await c(`Creating`,async()=>l.send(Xo,{body:h,account_id:u,id:e.id,...n}));o(v,{successLabel:`Created`})})},$o={command:`approvals`,describe:`Operations for rules.email.approvals`,builder:e=>e.command(Qo).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var es={method:`POST`,path:t=>e`/accounts/${t.account_id}/cloudforce-one/rules/structured`,body:`json`,errors:{400:`BadRequestError`,401:`UnauthorizedError`}};function ts(e){return e.usage(`$0 cloudforce-one rules email create
|
|
235
235
|
|
|
@@ -244,13 +244,13 @@ Returns structured email rules.`).option(`limit`,{type:`number`,description:`Lim
|
|
|
244
244
|
|
|
245
245
|
Get the field catalog for structured email rules.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const ms={command:`get`,describe:`Get email rule schema`,builder:ps,handler:async e=>l({command:`cloudforce-one rules email schema get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let e=await i();s({command:`cf cloudforce-one rules email schema get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}/cloudforce-one/rules/structured/schema`,pathParams:{},bodyKind:`none`});return}let n=await r(e),l=e.local?t:await a();e.accountId=l;let u=await c(`Loading`,async()=>n.send(fs,{account_id:l}));o(u,{successLabel:`Loaded`})})},hs={command:`schema`,describe:`Operations for rules.email.schema`,builder:e=>e.command(ms).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var gs={method:`POST`,path:t=>e`/accounts/${t.account_id}/cloudforce-one/rules/structured/${t.id}/test`,body:`json`,errors:{400:`BadRequestError`,404:`NotFoundError`}};function _s(e){return e.usage(`$0 cloudforce-one rules email test <id>
|
|
246
246
|
|
|
247
|
-
Test a structured email rule against sample email JSON.`).positional(`id`,{type:`string`,description:`The unique identifier for the rule.`,demandOption:!0}).option(`sample-json`,{type:`string`,description:`The sample_json 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 vs={command:`test <id>`,describe:`Test an email rule`,builder:_s,handler:async e=>l({command:`cloudforce-one rules email test`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await i();s({command:`cf cloudforce-one rules email test`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/cloudforce-one/rules/structured/${e.id==null?`<id>`:encodeURIComponent(String(e.id))}/test`,pathParams:{id:String(e.id??``)},bodyKind:`json`,body:e.body===void 0?p({sample_json:m(e[`sample-json`],`sample-json`,`text`)}):d(e.body)});return}let n=await r(e),l=e.local?t:await a();if(e.accountId=l,e.body){let t=d(e.body),r=await c(`Creating`,async()=>n.send(gs,{body:t,account_id:l,id:e.id}));o(r,{successLabel:`Created`});return}e[`sample-json`]===void 0&&(e[`sample-json`]=await g(`sample-json`,`The sample_json field`));let u=p({sample_json:m(e[`sample-json`],`sample-json`,`text`)}),f=await c(`Creating`,async()=>n.send(gs,{body:u,account_id:l,id:e.id}));o(f,{successLabel:`Created`})})};var ys={method:`PUT`,path:t=>e`/accounts/${t.account_id}/cloudforce-one/rules/structured/${t.id}`,body:`json`,errors:{400:`BadRequestError`,
|
|
247
|
+
Test a structured email rule against sample email JSON.`).positional(`id`,{type:`string`,description:`The unique identifier for the rule.`,demandOption:!0}).option(`sample-json`,{type:`string`,description:`The sample_json 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 vs={command:`test <id>`,describe:`Test an email rule`,builder:_s,handler:async e=>l({command:`cloudforce-one rules email test`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await i();s({command:`cf cloudforce-one rules email test`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/cloudforce-one/rules/structured/${e.id==null?`<id>`:encodeURIComponent(String(e.id))}/test`,pathParams:{id:String(e.id??``)},bodyKind:`json`,body:e.body===void 0?p({sample_json:m(e[`sample-json`],`sample-json`,`text`)}):d(e.body)});return}let n=await r(e),l=e.local?t:await a();if(e.accountId=l,e.body){let t=d(e.body),r=await c(`Creating`,async()=>n.send(gs,{body:t,account_id:l,id:e.id}));o(r,{successLabel:`Created`});return}e[`sample-json`]===void 0&&(e[`sample-json`]=await g(`sample-json`,`The sample_json field`));let u=p({sample_json:m(e[`sample-json`],`sample-json`,`text`)}),f=await c(`Creating`,async()=>n.send(gs,{body:u,account_id:l,id:e.id}));o(f,{successLabel:`Created`})})};var ys={method:`PUT`,path:t=>e`/accounts/${t.account_id}/cloudforce-one/rules/structured/approvals/${t.id}`,query:[`module`],body:`json`,errors:{400:`BadRequestError`,403:`ForbiddenError`,404:`NotFoundError`,409:`ConflictError`}};function bs(e){return e.usage(`$0 cloudforce-one rules email update-pending-approval <id>
|
|
248
248
|
|
|
249
|
-
|
|
249
|
+
Validate, compile, and replace the proposed structured email rule on a pending approval. Only the original requester may update it.`).positional(`id`,{type:`string`,description:`The unique identifier for the approval.`,demandOption:!0}).option(`module`,{type:`string`,description:`Structured rule module.`,choices:[`eml`]}).option(`condition-operator`,{type:`string`,description:`The condition.operator field`,choices:[`and`,`or`]}).coerce(`condition-operator`,e=>m(e,`condition-operator`,`text`)).option(`condition-type`,{type:`string`,description:`The condition.type field`,choices:[`group`]}).coerce(`condition-type`,e=>m(e,`condition-type`,`text`)).option(`description`,{type:`string`,description:`The description field`}).option(`enabled`,{type:`boolean`,description:`The enabled field`}).option(`meta`,{type:`string`,description:`The meta field. Provide as a JSON array of objects or @path/to/file.json.`}).option(`name`,{type:`string`,description:`The name field`}).option(`status`,{type:`string`,description:`Disposition for matching email. This emits status metadata with the selected value.`,choices:[`silent`,`blocking`]}).coerce(`status`,e=>m(e,`status`,`text`)).option(`strings`,{type:`string`,description:`The strings field. 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 xs={command:`update-pending-approval <id>`,describe:`Update a pending structured email rule approval`,builder:bs,handler:async e=>l({command:`cloudforce-one rules email update-pending-approval`,classification:{safeFlags:[`module`,`condition-operator`,`condition-type`,`enabled`,`status`,`dry-run`]}},e,async()=>{let n={module:e.module};if(e.dryRun){let t=await i();s({command:`cf cloudforce-one rules email update-pending-approval`,method:`PUT`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/cloudforce-one/rules/structured/approvals/${e.id==null?`<id>`:encodeURIComponent(String(e.id))}`,pathParams:{id:String(e.id??``)},query:n,bodyKind:`json`,body:e.body===void 0?p({condition:{operator:e[`condition-operator`],type:e[`condition-type`]},description:m(e.description,`description`,`text`),enabled:e.enabled,meta:f(e.meta,`meta`),name:m(e.name,`name`,`text`),status:e.status,strings:f(e.strings,`strings`)}):d(e.body)});return}let l=await r(e),u=e.local?t:await a();if(e.accountId=u,e.body){let t=d(e.body);new URLSearchParams(Object.entries(n).filter(([,e])=>e!==void 0).map(([e,t])=>[e,String(t)])).toString();let r=await c(`Updating`,async()=>l.send(ys,{body:t,account_id:u,id:e.id,...n}));o(r,{successLabel:`Updated`});return}e[`condition-operator`]===void 0&&(e[`condition-operator`]=await _(`condition-operator`,`The condition.operator field`,[`and`,`or`])),e[`condition-type`]===void 0&&(e[`condition-type`]=await _(`condition-type`,`The condition.type field`,[`group`])),e.name===void 0&&(e.name=await g(`name`,`The name field`));let h=p({condition:{operator:e[`condition-operator`],type:e[`condition-type`]},description:m(e.description,`description`,`text`),enabled:e.enabled,meta:f(e.meta,`meta`),name:m(e.name,`name`,`text`),status:e.status,strings:f(e.strings,`strings`)});new URLSearchParams(Object.entries(n).filter(([,e])=>e!==void 0).map(([e,t])=>[e,String(t)])).toString();let v=await c(`Updating`,async()=>l.send(ys,{body:h,account_id:u,id:e.id,...n}));o(v,{successLabel:`Updated`})})};var Ss={method:`PUT`,path:t=>e`/accounts/${t.account_id}/cloudforce-one/rules/structured/${t.id}`,body:`json`,errors:{400:`BadRequestError`,401:`UnauthorizedError`,404:`NotFoundError`,409:`ConflictError`}};function Cs(e){return e.usage(`$0 cloudforce-one rules email update <id>
|
|
250
250
|
|
|
251
|
-
|
|
251
|
+
Updates an existing structured email rule.`).positional(`id`,{type:`string`,description:`The unique identifier for the rule.`,demandOption:!0}).option(`condition-operator`,{type:`string`,description:`The condition.operator field`,choices:[`and`,`or`]}).coerce(`condition-operator`,e=>m(e,`condition-operator`,`text`)).option(`condition-type`,{type:`string`,description:`The condition.type field`,choices:[`group`]}).coerce(`condition-type`,e=>m(e,`condition-type`,`text`)).option(`description`,{type:`string`,description:`The description field`}).option(`enabled`,{type:`boolean`,description:`The enabled field`}).option(`meta`,{type:`string`,description:`The meta field. Provide as a JSON array of objects or @path/to/file.json.`}).option(`name`,{type:`string`,description:`The name field`}).option(`status`,{type:`string`,description:`Disposition for matching email. This emits status metadata with the selected value.`,choices:[`silent`,`blocking`]}).coerce(`status`,e=>m(e,`status`,`text`)).option(`strings`,{type:`string`,description:`The strings field. 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)`}).check(e=>{if([`condition-operator`,`condition-type`].some(t=>e[t]!==void 0)){let t=[`condition-operator`,`condition-type`].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 --condition-* flag is set`)}return!0})}const ws={command:`update <id>`,describe:`Update an email rule`,builder:Cs,handler:async e=>l({command:`cloudforce-one rules email update`,classification:{safeFlags:[`condition-operator`,`condition-type`,`enabled`,`status`,`dry-run`]}},e,async()=>{if(e.dryRun){let t=await i();s({command:`cf cloudforce-one rules email update`,method:`PUT`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/cloudforce-one/rules/structured/${e.id==null?`<id>`:encodeURIComponent(String(e.id))}`,pathParams:{id:String(e.id??``)},bodyKind:`json`,body:e.body===void 0?p({condition:{operator:e[`condition-operator`],type:e[`condition-type`]},description:m(e.description,`description`,`text`),enabled:e.enabled,meta:f(e.meta,`meta`),name:m(e.name,`name`,`text`),status:e.status,strings:f(e.strings,`strings`)}):d(e.body)});return}let n=await r(e),l=e.local?t:await a();if(e.accountId=l,e.body){let t=d(e.body),r=await c(`Updating`,async()=>n.send(Ss,{body:t,account_id:l,id:e.id}));o(r,{successLabel:`Updated`});return}let u=p({condition:{operator:e[`condition-operator`],type:e[`condition-type`]},description:m(e.description,`description`,`text`),enabled:e.enabled,meta:f(e.meta,`meta`),name:m(e.name,`name`,`text`),status:e.status,strings:f(e.strings,`strings`)}),h=await c(`Updating`,async()=>n.send(Ss,{body:u,account_id:l,id:e.id}));o(h,{successLabel:`Updated`})})};var Ts={method:`POST`,path:t=>e`/accounts/${t.account_id}/cloudforce-one/rules/structured/validate`,body:`json`,errors:{400:`BadRequestError`}};function Es(e){return e.usage(`$0 cloudforce-one rules email validate
|
|
252
252
|
|
|
253
|
-
Validates structured email rule syntax and metadata.`).option(`condition-operator`,{type:`string`,description:`The condition.operator field`,choices:[`and`,`or`]}).coerce(`condition-operator`,e=>m(e,`condition-operator`,`text`)).option(`condition-type`,{type:`string`,description:`The condition.type field`,choices:[`group`]}).coerce(`condition-type`,e=>m(e,`condition-type`,`text`)).option(`description`,{type:`string`,description:`The description field`}).option(`enabled`,{type:`boolean`,description:`The enabled field`,default:!0}).option(`existing-rule-id`,{type:`string`,description:`Existing rule ID to exclude from duplicate-name checks when validating an update.`}).option(`meta`,{type:`string`,description:`The meta field. Provide as a JSON array of objects or @path/to/file.json.`}).option(`name`,{type:`string`,description:`The name field`}).option(`status`,{type:`string`,description:`Disposition for matching email. This emits status metadata with the selected value.`,choices:[`silent`,`blocking`],default:`silent`}).coerce(`status`,e=>m(e,`status`,`text`)).option(`strings`,{type:`string`,description:`The strings field. 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 Ds={command:`validate`,describe:`Validate an email rule`,builder:Es,handler:async e=>l({command:`cloudforce-one rules email validate`,classification:{safeFlags:[`condition-operator`,`condition-type`,`enabled`,`status`,`dry-run`]}},e,async()=>{if(e.dryRun){let t=await i();s({command:`cf cloudforce-one rules email validate`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/cloudforce-one/rules/structured/validate`,pathParams:{},bodyKind:`json`,body:e.body===void 0?p({condition:{operator:e[`condition-operator`],type:e[`condition-type`]},description:m(e.description,`description`,`text`),enabled:e.enabled,existing_rule_id:m(e[`existing-rule-id`],`existing-rule-id`,`text`),meta:f(e.meta,`meta`),name:m(e.name,`name`,`text`),status:e.status,strings:f(e.strings,`strings`)}):d(e.body)});return}let n=await r(e),l=e.local?t:await a();if(e.accountId=l,e.body){let t=d(e.body),r=await c(`Creating`,async()=>n.send(Ts,{body:t,account_id:l}));o(r,{successLabel:`Created`});return}e[`condition-operator`]===void 0&&(e[`condition-operator`]=await _(`condition-operator`,`The condition.operator field`,[`and`,`or`])),e[`condition-type`]===void 0&&(e[`condition-type`]=await _(`condition-type`,`The condition.type field`,[`group`])),e.name===void 0&&(e.name=await g(`name`,`The name field`));let u=p({condition:{operator:e[`condition-operator`],type:e[`condition-type`]},description:m(e.description,`description`,`text`),enabled:e.enabled,existing_rule_id:m(e[`existing-rule-id`],`existing-rule-id`,`text`),meta:f(e.meta,`meta`),name:m(e.name,`name`,`text`),status:e.status,strings:f(e.strings,`strings`)}),h=await c(`Creating`,async()=>n.send(Ts,{body:u,account_id:l}));o(h,{successLabel:`Created`})})},Os={command:`email`,describe:`Email rule operations`,builder:e=>e.command(ns).command(as).command(cs).command(ds).command(vs).command(
|
|
253
|
+
Validates structured email rule syntax and metadata.`).option(`condition-operator`,{type:`string`,description:`The condition.operator field`,choices:[`and`,`or`]}).coerce(`condition-operator`,e=>m(e,`condition-operator`,`text`)).option(`condition-type`,{type:`string`,description:`The condition.type field`,choices:[`group`]}).coerce(`condition-type`,e=>m(e,`condition-type`,`text`)).option(`description`,{type:`string`,description:`The description field`}).option(`enabled`,{type:`boolean`,description:`The enabled field`,default:!0}).option(`existing-rule-id`,{type:`string`,description:`Existing rule ID to exclude from duplicate-name checks when validating an update.`}).option(`meta`,{type:`string`,description:`The meta field. Provide as a JSON array of objects or @path/to/file.json.`}).option(`name`,{type:`string`,description:`The name field`}).option(`status`,{type:`string`,description:`Disposition for matching email. This emits status metadata with the selected value.`,choices:[`silent`,`blocking`],default:`silent`}).coerce(`status`,e=>m(e,`status`,`text`)).option(`strings`,{type:`string`,description:`The strings field. 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 Ds={command:`validate`,describe:`Validate an email rule`,builder:Es,handler:async e=>l({command:`cloudforce-one rules email validate`,classification:{safeFlags:[`condition-operator`,`condition-type`,`enabled`,`status`,`dry-run`]}},e,async()=>{if(e.dryRun){let t=await i();s({command:`cf cloudforce-one rules email validate`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/cloudforce-one/rules/structured/validate`,pathParams:{},bodyKind:`json`,body:e.body===void 0?p({condition:{operator:e[`condition-operator`],type:e[`condition-type`]},description:m(e.description,`description`,`text`),enabled:e.enabled,existing_rule_id:m(e[`existing-rule-id`],`existing-rule-id`,`text`),meta:f(e.meta,`meta`),name:m(e.name,`name`,`text`),status:e.status,strings:f(e.strings,`strings`)}):d(e.body)});return}let n=await r(e),l=e.local?t:await a();if(e.accountId=l,e.body){let t=d(e.body),r=await c(`Creating`,async()=>n.send(Ts,{body:t,account_id:l}));o(r,{successLabel:`Created`});return}e[`condition-operator`]===void 0&&(e[`condition-operator`]=await _(`condition-operator`,`The condition.operator field`,[`and`,`or`])),e[`condition-type`]===void 0&&(e[`condition-type`]=await _(`condition-type`,`The condition.type field`,[`group`])),e.name===void 0&&(e.name=await g(`name`,`The name field`));let u=p({condition:{operator:e[`condition-operator`],type:e[`condition-type`]},description:m(e.description,`description`,`text`),enabled:e.enabled,existing_rule_id:m(e[`existing-rule-id`],`existing-rule-id`,`text`),meta:f(e.meta,`meta`),name:m(e.name,`name`,`text`),status:e.status,strings:f(e.strings,`strings`)}),h=await c(`Creating`,async()=>n.send(Ts,{body:u,account_id:l}));o(h,{successLabel:`Created`})})},Os={command:`email`,describe:`Email rule operations`,builder:e=>e.command(ns).command(as).command(cs).command(ds).command(vs).command(ws).command(xs).command(Ds).command($o).command(hs).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var ks={method:`POST`,path:t=>e`/accounts/${t.account_id}/cloudforce-one/rules/exemptions`,body:`json`,errors:{400:`BadRequestError`,401:`UnauthorizedError`,403:`ForbiddenError`}};function As(e){return e.usage(`$0 cloudforce-one rules exemptions create
|
|
254
254
|
|
|
255
255
|
Add regex patterns to per-account exemption rules (union semantics). Missing keys leave that type untouched; duplicates are silently deduped.`).option(`namespace`,{type:`string`,array:!0,description:`The namespace field`}).option(`tag-match`,{type:`string`,array:!0,description:`The tag_match field`}).option(`worker-name`,{type:`string`,array:!0,description:`The worker_name 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 js={command:`create`,describe:`Add patterns to exemption rules`,builder:As,handler:async e=>l({command:`cloudforce-one rules exemptions create`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await i();s({command:`cf cloudforce-one rules exemptions create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/cloudforce-one/rules/exemptions`,pathParams:{},bodyKind:`json`,body:e.body===void 0?p({namespace:e.namespace,tag_match:e[`tag-match`],worker_name:e[`worker-name`]}):d(e.body)});return}let n=await r(e),l=e.local?t:await a();if(e.accountId=l,e.body){let t=d(e.body),r=await c(`Creating`,async()=>n.send(ks,{body:t,account_id:l}));o(r,{successLabel:`Created`});return}let u=p({namespace:e.namespace,tag_match:e[`tag-match`],worker_name:e[`worker-name`]}),f=await c(`Creating`,async()=>n.send(ks,{body:u,account_id:l}));o(f,{successLabel:`Created`})})};var Ms={method:`DELETE`,path:t=>e`/accounts/${t.account_id}/cloudforce-one/rules/exemptions`,body:`json`,errors:{400:`BadRequestError`,401:`UnauthorizedError`,403:`ForbiddenError`}};function Ns(e){return e.usage(`$0 cloudforce-one rules exemptions delete
|
|
256
256
|
|
|
@@ -275,7 +275,7 @@ Get the folder tree structure for rules navigation.`).option(`dry-run`,{type:`bo
|
|
|
275
275
|
|
|
276
276
|
Updates an existing rule.`).positional(`id`,{type:`string`,description:`The unique identifier for the rule.`,demandOption:!0}).option(`commit-message`,{type:`string`,description:`Human-readable justification for this change. Required for internal-account submissions; optional for customer accounts and automated sync.`}).option(`content`,{type:`string`,description:`The content field`}).option(`description`,{type:`string`,description:`Human-readable description of the rule. Auto-extracted from YARA meta if present.`}).option(`enabled`,{type:`boolean`,description:`Whether this rule is active for dice consumers.`}).option(`is-public`,{type:`boolean`,description:`Whether this rule is visible to other internal accounts.`}).option(`meta`,{type:`string`,description:`Adds YARA meta entries to the rule's meta block and stores them in rule_meta alongside content metadata. Use valid YARA identifiers for keys; exclude 'name', 'enabled', and 'description'. You may repeat keys. Provide as a JSON array of objects or @path/to/file.json.`}).option(`name`,{type:`string`,description:`The name field`}).option(`namespaces`,{type:`string`,array:!0,description:`The namespaces field`}).option(`path`,{type:`string`,description:`Path change goes through approval workflow.`}).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 dc={command:`update <id>`,describe:`Update a rule`,builder:uc,handler:async e=>l({command:`cloudforce-one rules update`,classification:{safeFlags:[`enabled`,`is-public`,`dry-run`]}},e,async()=>{if(e.dryRun){let t=await i();s({command:`cf cloudforce-one rules update`,method:`PUT`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/cloudforce-one/rules/${e.id==null?`<id>`:encodeURIComponent(String(e.id))}`,pathParams:{id:String(e.id??``)},bodyKind:`json`,body:e.body===void 0?p({commit_message:m(e[`commit-message`],`commit-message`,`text`),content:m(e.content,`content`,`text`),description:m(e.description,`description`,`text`),enabled:e.enabled,is_public:e[`is-public`],meta:f(e.meta,`meta`),name:m(e.name,`name`,`text`),namespaces:e.namespaces,path:m(e.path,`path`,`text`)}):d(e.body)});return}let n=await r(e),l=e.local?t:await a();if(e.accountId=l,e.body){let t=d(e.body),r=await c(`Updating`,async()=>n.send(lc,{body:t,account_id:l,id:e.id}));o(r,{successLabel:`Updated`});return}let u=p({commit_message:m(e[`commit-message`],`commit-message`,`text`),content:m(e.content,`content`,`text`),description:m(e.description,`description`,`text`),enabled:e.enabled,is_public:e[`is-public`],meta:f(e.meta,`meta`),name:m(e.name,`name`,`text`),namespaces:e.namespaces,path:m(e.path,`path`,`text`)}),h=await c(`Updating`,async()=>n.send(lc,{body:u,account_id:l,id:e.id}));o(h,{successLabel:`Updated`})})};var fc={method:`POST`,path:t=>e`/accounts/${t.account_id}/cloudforce-one/rules/validate`,body:`json`,errors:{401:`UnauthorizedError`}};function pc(e){return e.usage(`$0 cloudforce-one rules validate
|
|
277
277
|
|
|
278
|
-
Validates rule syntax, name uniqueness, namespace, and metadata.`).option(`content`,{type:`string`,description:`The content field`}).option(`exclude-rule-id`,{type:`string`,description:`The excludeRuleId field`}).option(`name`,{type:`string`,description:`The name field`}).option(`namespaces`,{type:`string`,array:!0,description:`The namespaces field`}).option(`path`,{type:`string`,description:`The path 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 mc={command:`validate`,describe:`Validate rule with context`,builder:pc,handler:async e=>l({command:`cloudforce-one rules validate`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await i();s({command:`cf cloudforce-one rules validate`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/cloudforce-one/rules/validate`,pathParams:{},bodyKind:`json`,body:e.body===void 0?p({content:m(e.content,`content`,`text`),excludeRuleId:m(e[`exclude-rule-id`],`exclude-rule-id`,`text`),name:m(e.name,`name`,`text`),namespaces:e.namespaces,path:m(e.path,`path`,`text`)}):d(e.body)});return}let n=await r(e),l=e.local?t:await a();if(e.accountId=l,e.body){let t=d(e.body),r=await c(`Creating`,async()=>n.send(fc,{body:t,account_id:l}));o(r,{successLabel:`Created`});return}e.content===void 0&&(e.content=await g(`content`,`The content field`)),e.name===void 0&&(e.name=await g(`name`,`The name field`));let u=p({content:m(e.content,`content`,`text`),excludeRuleId:m(e[`exclude-rule-id`],`exclude-rule-id`,`text`),name:m(e.name,`name`,`text`),namespaces:e.namespaces,path:m(e.path,`path`,`text`)}),f=await c(`Creating`,async()=>n.send(fc,{body:u,account_id:l}));o(f,{successLabel:`Created`})})},hc={command:`rules`,describe:`Rule management operations`,builder:e=>e.command(Uo).command(
|
|
278
|
+
Validates rule syntax, name uniqueness, namespace, and metadata.`).option(`content`,{type:`string`,description:`The content field`}).option(`exclude-rule-id`,{type:`string`,description:`The excludeRuleId field`}).option(`name`,{type:`string`,description:`The name field`}).option(`namespaces`,{type:`string`,array:!0,description:`The namespaces field`}).option(`path`,{type:`string`,description:`The path 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 mc={command:`validate`,describe:`Validate rule with context`,builder:pc,handler:async e=>l({command:`cloudforce-one rules validate`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await i();s({command:`cf cloudforce-one rules validate`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/cloudforce-one/rules/validate`,pathParams:{},bodyKind:`json`,body:e.body===void 0?p({content:m(e.content,`content`,`text`),excludeRuleId:m(e[`exclude-rule-id`],`exclude-rule-id`,`text`),name:m(e.name,`name`,`text`),namespaces:e.namespaces,path:m(e.path,`path`,`text`)}):d(e.body)});return}let n=await r(e),l=e.local?t:await a();if(e.accountId=l,e.body){let t=d(e.body),r=await c(`Creating`,async()=>n.send(fc,{body:t,account_id:l}));o(r,{successLabel:`Created`});return}e.content===void 0&&(e.content=await g(`content`,`The content field`)),e.name===void 0&&(e.name=await g(`name`,`The name field`));let u=p({content:m(e.content,`content`,`text`),excludeRuleId:m(e[`exclude-rule-id`],`exclude-rule-id`,`text`),name:m(e.name,`name`,`text`),namespaces:e.namespaces,path:m(e.path,`path`,`text`)}),f=await c(`Creating`,async()=>n.send(fc,{body:u,account_id:l}));o(f,{successLabel:`Created`})})},hc={command:`rules`,describe:`Rule management operations`,builder:e=>e.command(Uo).command(Yo).command(Ko).command(Ws).command(qs).command(ec).command(dc).command(mc).command(Bo).command(Os).command(Vs).command(Zs).command(ic).command(cc).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var gc={method:`POST`,path:t=>e`/accounts/${t.account_id}/cloudforce-one/scans/config`,body:`json`};function _c(e){return e.usage(`$0 cloudforce-one scans config create
|
|
279
279
|
|
|
280
280
|
Creates a new scan configuration for Cloudforce One's network scanning service.`).option(`frequency`,{type:`number`,description:`Defines the number of days between each scan (0 = One-off scan).`}).option(`ips`,{type:`string`,array:!0,description:`Defines a list of IP addresses or CIDR blocks to scan. The maximum number of total IP addresses allowed is 5000.`}).option(`ports`,{type:`string`,array:!0,description:`Defines a list of ports to scan. Valid values are:"default", "all", or a comma-separated list of ports or range of ports (e.g. ["1-80", "443"]). "default" scans the 100 most commonly open ports.`}).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 vc={command:`create`,describe:`Create a new Scan Config`,builder:_c,handler:async e=>l({command:`cloudforce-one scans config create`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await i();s({command:`cf cloudforce-one scans config create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/cloudforce-one/scans/config`,pathParams:{},bodyKind:`json`,body:e.body===void 0?p({frequency:e.frequency,ips:e.ips,ports:e.ports}):d(e.body)});return}let n=await r(e),l=e.local?t:await a();if(e.accountId=l,e.body){let t=d(e.body),r=await c(`Creating`,async()=>n.send(gc,{body:t,account_id:l}));o(r,{successLabel:`Created`});return}if(e.ips===void 0)throw Error(`--ips is required (or pass --body with this field set).`);let u=p({frequency:e.frequency,ips:e.ips,ports:e.ports}),f=await c(`Creating`,async()=>n.send(gc,{body:u,account_id:l}));o(f,{successLabel:`Created`})})};var yc={method:`DELETE`,path:t=>e`/accounts/${t.account_id}/cloudforce-one/scans/config/${t.config_id}`};function bc(e){return e.usage(`$0 cloudforce-one scans config delete <config-id>
|
|
281
281
|
|
|
@@ -284,11 +284,11 @@ Deletes a scan configuration from Cloudforce One's network scanning service.`).p
|
|
|
284
284
|
|
|
285
285
|
Updates an existing scan configuration in Cloudforce One's network scanning service.`).positional(`config-id`,{type:`string`,description:`Defines the Config ID.`,demandOption:!0}).option(`frequency`,{type:`number`,description:`Defines the number of days between each scan (0 = One-off scan).`}).option(`ips`,{type:`string`,array:!0,description:`Defines a list of IP addresses or CIDR blocks to scan. The maximum number of total IP addresses allowed is 5000.`}).option(`ports`,{type:`string`,array:!0,description:`Defines a list of ports to scan. Valid values are:"default", "all", or a comma-separated list of ports or range of ports (e.g. ["1-80", "443"]). "default" scans the 100 most commonly open ports.`}).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 wc={command:`edit <config-id>`,describe:`Update an existing Scan Config`,builder:Cc,handler:async e=>l({command:`cloudforce-one scans config edit`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await i();s({command:`cf cloudforce-one scans config edit`,method:`PATCH`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/cloudforce-one/scans/config/${e[`config-id`]==null?`<config-id>`:encodeURIComponent(String(e[`config-id`]))}`,pathParams:{"config-id":String(e[`config-id`]??``)},bodyKind:`json`,body:e.body===void 0?p({frequency:e.frequency,ips:e.ips,ports:e.ports}):d(e.body)});return}let n=await r(e),l=e.local?t:await a();if(e.accountId=l,e.body){let t=d(e.body),r=await c(`Updating`,async()=>n.send(Sc,{body:t,account_id:l,config_id:e[`config-id`]}));o(r,{successLabel:`Updated`});return}let u=p({frequency:e.frequency,ips:e.ips,ports:e.ports}),f=await c(`Updating`,async()=>n.send(Sc,{body:u,account_id:l,config_id:e[`config-id`]}));o(f,{successLabel:`Updated`})})};var Tc={method:`GET`,path:t=>e`/accounts/${t.account_id}/cloudforce-one/scans/config`};function Ec(e){return e.usage(`$0 cloudforce-one scans config list
|
|
286
286
|
|
|
287
|
-
Lists scan configurations for Cloudforce One's network scanning service.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const Dc={command:`list`,describe:`List Scan Configs`,builder:Ec,handler:async e=>l({command:`cloudforce-one scans config list`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let e=await i();s({command:`cf cloudforce-one scans config list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}/cloudforce-one/scans/config`,pathParams:{},bodyKind:`none`});return}let n=await r(e),l=e.local?t:await a();e.accountId=l;let u=await c(`Loading`,async()=>n.send(Tc,{account_id:l}));o(u,{successLabel:`Loaded`})})},Oc={command:`config`,describe:`Operations for scans.config`,builder:e=>e.command(vc).command(xc).command(wc).command(Dc).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var kc={method:`GET`,path:t=>e`/accounts/${t.account_id}/cloudforce-one/
|
|
287
|
+
Lists scan configurations for Cloudforce One's network scanning service.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const Dc={command:`list`,describe:`List Scan Configs`,builder:Ec,handler:async e=>l({command:`cloudforce-one scans config list`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let e=await i();s({command:`cf cloudforce-one scans config list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}/cloudforce-one/scans/config`,pathParams:{},bodyKind:`none`});return}let n=await r(e),l=e.local?t:await a();e.accountId=l;let u=await c(`Loading`,async()=>n.send(Tc,{account_id:l}));o(u,{successLabel:`Loaded`})})},Oc={command:`config`,describe:`Operations for scans.config`,builder:e=>e.command(vc).command(xc).command(wc).command(Dc).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var kc={method:`GET`,path:t=>e`/accounts/${t.account_id}/cloudforce-one/banner/${t.config_id}`};function Ac(e){return e.usage(`$0 cloudforce-one scans results get-banners <config-id>
|
|
288
288
|
|
|
289
|
-
Retrieves the latest
|
|
289
|
+
Retrieves the latest banner grab results for a Cloudforce One scan configuration, including service banners from open ports.`).positional(`config-id`,{type:`string`,description:`Defines the Config ID.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const jc={command:`get-banners <config-id>`,describe:`Get the Latest Banner Grab Result`,builder:Ac,handler:async e=>l({command:`cloudforce-one scans results get-banners`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await i();s({command:`cf cloudforce-one scans results get-banners`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/cloudforce-one/banner/${e[`config-id`]==null?`<config-id>`:encodeURIComponent(String(e[`config-id`]))}`,pathParams:{"config-id":String(e[`config-id`]??``)},bodyKind:`none`});return}let n=await r(e),l=e.local?t:await a();e.accountId=l;let u=await c(`Loading`,async()=>n.send(kc,{account_id:l,config_id:e[`config-id`]}));o(u,{successLabel:`Loaded`})})};var Mc={method:`GET`,path:t=>e`/accounts/${t.account_id}/cloudforce-one/scans/results/${t.config_id}`};function Nc(e){return e.usage(`$0 cloudforce-one scans results get <config-id>
|
|
290
290
|
|
|
291
|
-
Retrieves the latest
|
|
291
|
+
Retrieves the latest scan results for a Cloudforce One scan configuration, including discovered open ports.`).positional(`config-id`,{type:`string`,description:`Defines the Config ID.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const Pc={command:`get <config-id>`,describe:`Get the Latest Scan Result`,builder:Nc,handler:async e=>l({command:`cloudforce-one scans results get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await i();s({command:`cf cloudforce-one scans results get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/cloudforce-one/scans/results/${e[`config-id`]==null?`<config-id>`:encodeURIComponent(String(e[`config-id`]))}`,pathParams:{"config-id":String(e[`config-id`]??``)},bodyKind:`none`});return}let n=await r(e),l=e.local?t:await a();e.accountId=l;let u=await c(`Loading`,async()=>n.send(Mc,{account_id:l,config_id:e[`config-id`]}));o(u,{successLabel:`Loaded`})})},Fc={command:`results`,describe:`Operations for scans.results`,builder:e=>e.command(Pc).command(jc).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},Ic={command:`scans`,describe:`Scan URLs, IPs, and domains for threat intelligence indicators`,builder:e=>e.command(Oc).command(Fc).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var Lc={method:`GET`,path:t=>e`/accounts/${t.account_id}/cloudforce-one/events/attackers`,query:[`datasetIds`],errors:{400:`BadRequestError`}};function Rc(e){return e.usage(`$0 cloudforce-one threat-events attackers list
|
|
292
292
|
|
|
293
293
|
Lists known threat attackers tracked in Cloudforce One threat intelligence.`).option(`dataset-ids`,{type:`string`,description:`Array of dataset IDs to query attackers from. If not provided, uses the default dataset.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const zc={command:`list`,describe:`Lists attackers across multiple datasets`,builder:Rc,handler:async e=>l({command:`cloudforce-one threat-events attackers list`,classification:{safeFlags:[`dry-run`]}},e,async()=>{let n={datasetIds:e[`dataset-ids`]};if(e.dryRun){let e=await i();s({command:`cf cloudforce-one threat-events attackers list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}/cloudforce-one/events/attackers`,pathParams:{},query:n,bodyKind:`none`});return}let l=await r(e),u=e.local?t:await a();e.accountId=u;let d=await c(`Loading`,async()=>l.send(Lc,{account_id:u,...n}));o(d,{successLabel:`Loaded`})})},Bc={command:`attackers`,describe:`Operations for threat-events.attackers`,builder:e=>e.command(zc).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var Vc={method:`POST`,path:t=>e`/accounts/${t.account_id}/cloudforce-one/events/create/bulk`,body:`json`,errors:{400:`BadRequestError`}};function Hc(e){return e.usage("$0 cloudforce-one threat-events bulk-create\n\nThe `datasetId` parameter must be defined. To list existing datasets (and their IDs) in your account, use the [`List Datasets`](https://developers.cloudflare.com/api/resources/cloudforce_one/subresources/threat_events/subresources/datasets/methods/list/) endpoint.").option(`data`,{type:`string`,description:`The data field. Provide as a JSON array of objects or @path/to/file.json.`}).option(`dataset-id`,{type:`string`,description:`The datasetId field`}).option(`include-created-events`,{type:`boolean`,description:`When true, response includes array of created event UUIDs and shard IDs. Useful for tracking which events were created and where.`}).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 Uc={command:`bulk-create`,describe:`Creates bulk events`,builder:Hc,handler:async e=>l({command:`cloudforce-one threat-events bulk-create`,classification:{safeFlags:[`include-created-events`,`dry-run`]}},e,async()=>{if(e.dryRun){let t=await i();s({command:`cf cloudforce-one threat-events bulk-create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/cloudforce-one/events/create/bulk`,pathParams:{},bodyKind:`json`,body:e.body===void 0?p({data:f(e.data,`data`),datasetId:m(e[`dataset-id`],`dataset-id`,`text`),includeCreatedEvents:e[`include-created-events`]}):d(e.body)});return}let n=await r(e),l=e.local?t:await a();if(e.accountId=l,e.body){let t=d(e.body),r=await c(`Creating`,async()=>n.send(Vc,{body:t,account_id:l}));o(r,{successLabel:`Created`});return}if(e.data===void 0)throw Error(`--data is required (or pass --body with this field set).`);e[`dataset-id`]===void 0&&(e[`dataset-id`]=await g(`dataset-id`,`The datasetId field`));let u=p({data:f(e.data,`data`),datasetId:m(e[`dataset-id`],`dataset-id`,`text`),includeCreatedEvents:e[`include-created-events`]}),h=await c(`Creating`,async()=>n.send(Vc,{body:u,account_id:l}));o(h,{successLabel:`Created`})})};var Wc={method:`POST`,path:t=>e`/accounts/${t.account_id}/cloudforce-one/events/categories/create`,body:`json`,errors:{400:`BadRequestError`}};function Gc(e){return e.usage(`$0 cloudforce-one threat-events categories create
|
|
294
294
|
|
|
@@ -313,7 +313,7 @@ Retrieves details for a specific threat event dataset.`).positional(`dataset-id`
|
|
|
313
313
|
|
|
314
314
|
Lists all threat event datasets configured in Cloudforce One.`).option(`include-deleted`,{type:`boolean`,description:"When true, include soft-deleted datasets in the response. Each item includes a `deletedAt` field (ISO 8601 or null). Default: false."}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const wl={command:`list`,describe:`Lists all datasets in an account`,builder:Cl,handler:async e=>l({command:`cloudforce-one threat-events datasets list`,classification:{safeFlags:[`include-deleted`,`dry-run`]}},e,async()=>{let n={includeDeleted:e[`include-deleted`]};if(e.dryRun){let e=await i();s({command:`cf cloudforce-one threat-events datasets list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}/cloudforce-one/events/dataset`,pathParams:{},query:n,bodyKind:`none`});return}let l=await r(e),u=e.local?t:await a();e.accountId=u;let d=await c(`Loading`,async()=>l.send(Sl,{account_id:u,...n}));o(d,{successLabel:`Loaded`})})};var Tl={method:`GET`,path:t=>e`/accounts/${t.account_id}/cloudforce-one/events/datasets/${t.dataset_id}/events/${t.event_id}/raw`,errors:{404:`NotFoundError`,500:`InternalServerError`}};function El(e){return e.usage(`$0 cloudforce-one threat-events datasets raw <event-id>
|
|
315
315
|
|
|
316
|
-
Retrieves the raw data associated with an event. Searches across all shards in the dataset.`).positional(`event-id`,{type:`string`,description:`Event ID.`,demandOption:!0}).option(`dataset-id`,{type:`string`,description:`Dataset ID.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const Dl={command:`raw <event-id>`,describe:`Reads raw data for an event by UUID`,builder:El,handler:async e=>l({command:`cloudforce-one threat-events datasets raw`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await i();s({command:`cf cloudforce-one threat-events datasets raw`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/cloudforce-one/events/datasets/${e[`dataset-id`]==null?`<dataset-id>`:encodeURIComponent(String(e[`dataset-id`]))}/events/${e[`event-id`]==null?`<event-id>`:encodeURIComponent(String(e[`event-id`]))}/raw`,pathParams:{"
|
|
316
|
+
Retrieves the raw data associated with an event. Searches across all shards in the dataset.`).positional(`event-id`,{type:`string`,description:`Event ID.`,demandOption:!0}).option(`dataset-id`,{type:`string`,description:`Dataset ID.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const Dl={command:`raw <event-id>`,describe:`Reads raw data for an event by UUID`,builder:El,handler:async e=>l({command:`cloudforce-one threat-events datasets raw`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await i();s({command:`cf cloudforce-one threat-events datasets raw`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/cloudforce-one/events/datasets/${e[`dataset-id`]==null?`<dataset-id>`:encodeURIComponent(String(e[`dataset-id`]))}/events/${e[`event-id`]==null?`<event-id>`:encodeURIComponent(String(e[`event-id`]))}/raw`,pathParams:{"dataset-id":String(e[`dataset-id`]??``),"event-id":String(e[`event-id`]??``)},bodyKind:`none`});return}let n=await r(e),l=e.local?t:await a();e.accountId=l;let u=await c(`Loading`,async()=>n.send(Tl,{account_id:l,dataset_id:e[`dataset-id`],event_id:e[`event-id`]}));o(u,{successLabel:`Loaded`})})},Ol={command:`datasets`,describe:`Operations for threat-events.datasets`,builder:e=>e.command(hl).command(vl).command(xl).command(wl).command(Dl).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var kl={method:`PATCH`,path:t=>e`/accounts/${t.account_id}/cloudforce-one/events/${t.event_id}`,body:`json`,errors:{400:`BadRequestError`}};function Al(e){return e.usage(`$0 cloudforce-one threat-events edit <event-id>
|
|
317
317
|
|
|
318
318
|
Partially updates a threat event in Cloudforce One, modifying specific fields without replacing the entire event.`).positional(`event-id`,{type:`string`,description:`Event UUID.`,demandOption:!0}).option(`attacker`,{type:`string`,description:`The attacker field`}).option(`attacker-country`,{type:`string`,description:`The attackerCountry field`}).option(`category`,{type:`string`,description:`The category field`}).option(`created-at`,{type:`string`,description:`The createdAt field`}).option(`dataset-id`,{type:`string`,description:`Dataset ID containing the event to update.`}).option(`date`,{type:`string`,description:`The date field`}).option(`event`,{type:`string`,description:`The event field`}).option(`indicator`,{type:`string`,description:`The indicator field`}).option(`indicator-type`,{type:`string`,description:`The indicatorType field`}).option(`insight`,{type:`string`,description:`The insight field`}).option(`raw-source`,{type:`string`,description:`The raw.source field`}).option(`raw-tlp`,{type:`string`,description:`The raw.tlp field`}).option(`target-country`,{type:`string`,description:`The targetCountry field`}).option(`target-industry`,{type:`string`,description:`The targetIndustry field`}).option(`tlp`,{type:`string`,description:`The tlp 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 jl={command:`edit <event-id>`,describe:`Updates an event`,builder:Al,handler:async e=>l({command:`cloudforce-one threat-events edit`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await i();s({command:`cf cloudforce-one threat-events edit`,method:`PATCH`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/cloudforce-one/events/${e[`event-id`]==null?`<event-id>`:encodeURIComponent(String(e[`event-id`]))}`,pathParams:{"event-id":String(e[`event-id`]??``)},bodyKind:`json`,body:e.body===void 0?p({attacker:m(e.attacker,`attacker`,`text`),attackerCountry:m(e[`attacker-country`],`attacker-country`,`text`),category:m(e.category,`category`,`text`),createdAt:m(e[`created-at`],`created-at`,`text`),datasetId:m(e[`dataset-id`],`dataset-id`,`text`),date:m(e.date,`date`,`text`),event:m(e.event,`event`,`text`),indicator:m(e.indicator,`indicator`,`text`),indicatorType:m(e[`indicator-type`],`indicator-type`,`text`),insight:m(e.insight,`insight`,`text`),raw:{source:m(e[`raw-source`],`raw-source`,`text`),tlp:m(e[`raw-tlp`],`raw-tlp`,`text`)},targetCountry:m(e[`target-country`],`target-country`,`text`),targetIndustry:m(e[`target-industry`],`target-industry`,`text`),tlp:m(e.tlp,`tlp`,`text`)}):d(e.body)});return}let n=await r(e),l=e.local?t:await a();if(e.accountId=l,e.body){let t=d(e.body),r=await c(`Updating`,async()=>n.send(kl,{body:t,account_id:l,event_id:e[`event-id`]}));o(r,{successLabel:`Updated`});return}e[`dataset-id`]===void 0&&(e[`dataset-id`]=await g(`dataset-id`,`Dataset ID containing the event to update.`));let u=p({attacker:m(e.attacker,`attacker`,`text`),attackerCountry:m(e[`attacker-country`],`attacker-country`,`text`),category:m(e.category,`category`,`text`),createdAt:m(e[`created-at`],`created-at`,`text`),datasetId:m(e[`dataset-id`],`dataset-id`,`text`),date:m(e.date,`date`,`text`),event:m(e.event,`event`,`text`),indicator:m(e.indicator,`indicator`,`text`),indicatorType:m(e[`indicator-type`],`indicator-type`,`text`),insight:m(e.insight,`insight`,`text`),raw:{source:m(e[`raw-source`],`raw-source`,`text`),tlp:m(e[`raw-tlp`],`raw-tlp`,`text`)},targetCountry:m(e[`target-country`],`target-country`,`text`),targetIndustry:m(e[`target-industry`],`target-industry`,`text`),tlp:m(e.tlp,`tlp`,`text`)}),f=await c(`Updating`,async()=>n.send(kl,{body:u,account_id:l,event_id:e[`event-id`]}));o(f,{successLabel:`Updated`})})};var Ml={method:`POST`,path:t=>e`/accounts/${t.account_id}/cloudforce-one/events/event_tag/${t.event_id}/create`,body:`json`,errors:{400:`BadRequestError`}};function Nl(e){return e.usage(`$0 cloudforce-one threat-events event-tags create <event-id>
|
|
319
319
|
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import{t as e}from"./cli-exit-CstFZ1eJ.mjs";import{r as t}from"./dotenv-usOKkeW7.mjs";import{n}from"./context-
|
|
2
|
+
import{t as e}from"./cli-exit-CstFZ1eJ.mjs";import{r as t}from"./dotenv-usOKkeW7.mjs";import{n}from"./context-B-vEsyrK.mjs";import{n as r}from"./cloudflared-By8BzYXc.mjs";const i={command:`login <url>`,describe:`Authenticate with an Access application and store its JWT through cloudflared.`,builder:e=>e.positional(`url`,{type:`string`,description:`URL of the Access application`,demandOption:!0}),handler:async i=>{if(i.local)throw Error(`--local is not supported by cf access login.`);let a=[`access`];throw await t({mode:i.mode,local:i.local},()=>n())===`fedramp_high`&&a.push(`--fedramp`),a.push(`login`),i.quiet&&a.push(`--quiet`),a.push(i.url),new e(await r(a))}};export{i as default};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import{t as e}from"./cli-exit-CstFZ1eJ.mjs";import{r as t}from"./dotenv-usOKkeW7.mjs";import{n}from"./context-
|
|
2
|
+
import{t as e}from"./cli-exit-CstFZ1eJ.mjs";import{r as t}from"./dotenv-usOKkeW7.mjs";import{n}from"./context-B-vEsyrK.mjs";import{n as r}from"./cloudflared-By8BzYXc.mjs";const i={command:`curl <url>`,describe:`Run curl against an Access-protected application with its JWT injected by cloudflared.`,builder:e=>e.parserConfiguration({"populate--":!0,"parse-positional-numbers":!1,"short-option-groups":!1}).option(`allow-request`,{alias:`ar`,type:`boolean`,description:`Continue the request when no Access token is available`}).positional(`url`,{type:`string`,description:`URL of the Access application`,demandOption:!0}),handler:async i=>{if(i.local)throw Error(`--local is not supported by cf access curl.`);let a=[`access`];throw await t({mode:i.mode,local:i.local},()=>n())===`fedramp_high`&&a.push(`--fedramp`),a.push(`curl`),i[`allow-request`]&&a.push(`--allow-request`),a.push(i.url,...(i[`--`]??[]).map(String)),new e(await r(a))}};export{i as default};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import{x as e}from"./dist-DZRTPMMA.mjs";import{t}from"./chunk-DSGVRFIS-C5SqiTOz.mjs";import{i as n,n as r,t as i}from"./startup-profile-BOaseXnO.mjs";import{t as a}from"./output-Co4xdFf6.mjs";import{t as o}from"./progress-
|
|
2
|
+
import{x as e}from"./dist-DZRTPMMA.mjs";import{t}from"./chunk-DSGVRFIS-C5SqiTOz.mjs";import{i as n,n as r,t as i}from"./startup-profile-BOaseXnO.mjs";import{t as a}from"./output-Co4xdFf6.mjs";import{t as o}from"./progress-R-1tIuep.mjs";import{a as s,i as c,n as l,o as u,r as d,s as f}from"./build-sBpqm9ga.mjs";import{t as p}from"./deploy-input-BqJ7GVZ-.mjs";import m from"node:path";import{writeFile as h}from"node:fs/promises";import{readBuildOutput as g}from"@cloudflare/build-output-utils";function _(e){return e.option(`outfile`,{type:`string`,description:`Output file for the startup CPU profile`,default:`worker-startup.cpuprofile`,requiresArg:!0}).option(`prebuilt`,{type:`boolean`,description:`Use existing Build Output Specification files without building`,default:!1}).option(`worker`,d)}const v={command:`check`,describe:`Profile a Worker's startup performance`,builder:_,handler:async d=>{if(d.local)throw Error(`--local is not supported by cf workers check.`);d.prebuilt||await l(d.mode,{output:d.quiet?`silent`:`stderr`,worker:d.worker});let{workers:_,rootConfig:v}=await g(process.cwd());u(d.mode,v.buildContext.mode);let y=s(_,d.worker),{wranglerConfig:b,builtConfig:x}=c(y,v),S=p(y,x);if(!S.resolvedEntryPointPath)throw new f(`Startup profiling requires a Worker entrypoint; assets-only projects cannot be profiled.`);if(S.bundleType===`commonjs`)throw new f(`Startup profiling does not support service-worker format Workers. Refer to https://developers.cloudflare.com/workers/reference/migrate-to-module-workers/ for migration guidance.`);let C=t({name:b.name??y.config.name??`worker`,main:{name:x.manifest?.mainModule??m.basename(S.resolvedEntryPointPath),filePath:S.resolvedEntryPointPath,content:S.content,type:S.bundleType},modules:S.modules,sourceMaps:S.sourceMaps,compatibility_date:b.compatibility_date,compatibility_flags:b.compatibility_flags??[],assets:void 0,containers:void 0,migrations:void 0,exports:void 0,keepVars:void 0,keepSecrets:void 0,logpush:void 0,placement:void 0,tail_consumers:void 0,streaming_tail_consumers:void 0,limits:void 0,annotations:void 0,observability:void 0,cache:void 0,package_dependencies:void 0},e(b),{dryRun:!0,unsafe:b.unsafe}),w=await r(C),T=d.quiet?await i(C):await o(`Profiling Worker startup`,()=>i(C)),E=n(T);await h(d.outfile,JSON.stringify(T)),a({bundle:{sizeBytes:w.size,gzipSizeBytes:w.gzipSize},startup:{profileWindowMs:E.profileWindow/1e3,sampledTimeMs:E.sampledTime/1e3,activeTimeMs:E.activeTime/1e3,garbageCollectionTimeMs:E.garbageCollectionTime/1e3,idleTimeMs:E.idleTime/1e3,sampleCount:E.sampleCount},profile:d.outfile,note:`This profile was measured locally. Use it to understand where startup time is spent, not to predict startup time on Cloudflare.`},{quiet:d.quiet})}};export{v as default};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import{t as e}from"./cli-exit-CstFZ1eJ.mjs";import{r as t}from"./dotenv-usOKkeW7.mjs";import{n}from"./context-
|
|
2
|
+
import{t as e}from"./cli-exit-CstFZ1eJ.mjs";import{r as t}from"./dotenv-usOKkeW7.mjs";import{n}from"./context-B-vEsyrK.mjs";import{n as r,t as i}from"./cloudflared-By8BzYXc.mjs";function a(e){return e.option(`hostname`,{type:`string`,demandOption:!0,description:`Hostname of the Access application`}).option(`destination`,{type:`string`,description:`Destination address of the target server`}).option(`url`,{type:`string`,description:`Local host and port to forward to the Cloudflare edge`}).option(`header`,{type:`string`,array:!0,description:`Additional request header; repeat for multiple headers`}).option(`service-token-id`,{type:`string`,description:`Access service token ID`}).option(`service-token-secret`,{type:`string`,description:`Access service token secret`}).option(`log-level`,{alias:`loglevel`,type:`string`,choices:i,description:`cloudflared log level`})}const o={command:`tcp`,aliases:[`ssh`,`rdp`,`smb`],describe:`Proxy a TCP connection through Access. The command is also available as ssh, rdp, and smb.`,builder:a,handler:async i=>{if(i.local)throw Error(`--local is not supported by cf access tcp.`);let a=[`access`];await t({mode:i.mode,local:i.local},()=>n())===`fedramp_high`&&a.push(`--fedramp`),a.push(`tcp`),a.push(`--hostname`,i.hostname),i.destination&&a.push(`--destination`,i.destination),i.url&&a.push(`--url`,i.url);for(let e of i.header??[])a.push(`--header`,e);i[`service-token-id`]&&a.push(`--service-token-id`,i[`service-token-id`]),i[`log-level`]&&a.push(`--loglevel`,i[`log-level`]);let o=i[`service-token-secret`]?{TUNNEL_SERVICE_TOKEN_SECRET:i[`service-token-secret`]}:void 0;throw new e(await r(a,{env:o}))}};export{o as default};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import{t as e}from"./cli-exit-CstFZ1eJ.mjs";import{r as t}from"./dotenv-usOKkeW7.mjs";import{n}from"./context-
|
|
2
|
+
import{t as e}from"./cli-exit-CstFZ1eJ.mjs";import{r as t}from"./dotenv-usOKkeW7.mjs";import{n}from"./context-B-vEsyrK.mjs";import{n as r}from"./cloudflared-By8BzYXc.mjs";const i={command:`ssh-config`,describe:`Print an example SSH configuration for an Access application.`,builder:e=>e.option(`hostname`,{type:`string`,description:`Hostname of the Access application`}).option(`short-lived-cert`,{type:`boolean`,description:`Include short-lived certificate configuration`}),handler:async i=>{if(i.local)throw Error(`--local is not supported by cf access ssh-config.`);if(await t({mode:i.mode,local:i.local},()=>n())===`fedramp_high`)throw Error(`cf access ssh-config does not support FedRAMP because cloudflared does not include --fedramp in its generated SSH configuration.`);let a=[`access`,`ssh-config`];throw i.hostname&&a.push(`--hostname`,i.hostname),i[`short-lived-cert`]&&a.push(`--short-lived-cert`),new e(await r(a))}};export{i as default};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import{t as e}from"./cli-exit-CstFZ1eJ.mjs";import{r as t}from"./dotenv-usOKkeW7.mjs";import"./api-eMuS5GI1.mjs";import{t as n}from"./path-DRw6Y-nd.mjs";import{n as r}from"./auth-
|
|
2
|
+
import{t as e}from"./cli-exit-CstFZ1eJ.mjs";import{r as t}from"./dotenv-usOKkeW7.mjs";import"./api-eMuS5GI1.mjs";import{t as n}from"./path-DRw6Y-nd.mjs";import{n as r}from"./auth-eVI_UEt8.mjs";import{r as i}from"./resolve-C3FmNlSO.mjs";import{t as a}from"./context-B-vEsyrK.mjs";import{t as o}from"./progress-R-1tIuep.mjs";import{t as s}from"./get-iPUHxD1r.mjs";import{n as c,t as l}from"./cloudflared-By8BzYXc.mjs";const u={method:`GET`,path:e=>n`/accounts/${e.account_id}/cfd_tunnel`,query:[`name`,`is_deleted`,`existed_at`,`uuid`,`was_active_at`,`was_inactive_at`,`include_prefix`,`exclude_prefix`,`status`,`per_page`,`page`]},d=1e3;async function f(e,t,n){if(i(n))return n;let r=0,a;for(let i=1;;i++){let o=await e.send(u,{account_id:t,name:n,is_deleted:!1,page:i,per_page:d}),s=o.result??[];for(let e of s)e.name===n&&(r++,a=e.id);let c=o.result_info?.per_page||d;if(s.length<c)break}if(r===0)throw Error(`"${n}" is neither the ID nor the name of any tunnel. Run \`cf tunnels list\` to see available tunnels.`);if(r>1)throw Error(`Found multiple tunnels named "${n}". Pass the tunnel UUID instead.`);if(!a)throw Error(`Tunnel "${n}" was found but has no ID. Pass the tunnel UUID instead.`);return a}async function p(e,t,n){let r=await e.send(s,{account_id:t,tunnel_id:n});if(typeof r!=`string`||r.length===0)throw Error(`The API returned an empty token for tunnel ${n}.`);return r}function m(e){return e.positional(`tunnel`,{type:`string`,description:`Tunnel name or UUID; required unless --token is provided`}).option(`token`,{type:`string`,description:`Tunnel token supplied directly to cloudflared`}).option(`log-level`,{type:`string`,choices:l,default:`info`,description:`cloudflared log level`})}const h={command:`run [tunnel]`,describe:`Run a named Cloudflare Tunnel using the cf-managed cloudflared binary.`,builder:m,handler:async n=>{if(n.local)throw Error(`--local is not supported by cf tunnels run.`);let i=n.token,s=n.tunnel;if(!i){if(!s)throw Error(`Either a tunnel name/UUID or --token must be provided.`);i=await t(n,async()=>{let e=await r(n),t=await a();return o(`Fetching tunnel token`,async()=>{let n=await f(e,t,s);return p(e,t,n)})})}let l=[`tunnel`,`--loglevel`,n[`log-level`]];throw l.push(`run`),new e(await c(l,{env:{TUNNEL_TOKEN:i}}))}};export{h as default};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import{t as e}from"./cli-exit-CstFZ1eJ.mjs";import{r as t}from"./dotenv-usOKkeW7.mjs";import{n}from"./context-
|
|
2
|
+
import{t as e}from"./cli-exit-CstFZ1eJ.mjs";import{r as t}from"./dotenv-usOKkeW7.mjs";import{n}from"./context-B-vEsyrK.mjs";import{n as r}from"./cloudflared-By8BzYXc.mjs";const i={command:`ssh-gen`,describe:`Generate a short-lived certificate for an Access SSH application.`,builder:e=>e.option(`hostname`,{type:`string`,description:`Hostname of the Access application`,demandOption:!0}),handler:async i=>{if(i.local)throw Error(`--local is not supported by cf access ssh-gen.`);let a=[`access`];throw await t({mode:i.mode,local:i.local},()=>n())===`fedramp_high`&&a.push(`--fedramp`),a.push(`ssh-gen`,`--hostname`,i.hostname),new e(await r(a))}};export{i as default};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import{t as e}from"./cli-exit-CstFZ1eJ.mjs";import{r as t}from"./dotenv-usOKkeW7.mjs";import{n}from"./auth-
|
|
2
|
+
import{t as e}from"./cli-exit-CstFZ1eJ.mjs";import{r as t}from"./dotenv-usOKkeW7.mjs";import{n}from"./auth-eVI_UEt8.mjs";import{t as r}from"./context-B-vEsyrK.mjs";import{t as i}from"./progress-R-1tIuep.mjs";import{t as a}from"./create-OXylMu6m.mjs";import{n as o}from"./cloudflared-By8BzYXc.mjs";const s=[`cloudflared`,`http`,`tcp`,`udp`],c=[`debug`,`info`,`warn`,`error`],l=/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i;function u(e,t){if(!l.test(e))throw Error(`${t} must be a valid UUID.`);return e}const d={command:`tail [tunnel-id]`,describe:`Stream logs from a remote cloudflared instance.`,builder:e=>e.positional(`tunnel-id`,{type:`string`,coerce:e=>u(e,`Tunnel ID`),description:`Tunnel UUID to stream logs from`}).option(`connector-id`,{type:`string`,coerce:e=>u(e,`--connector-id`),description:`Target a specific cloudflared connector`}).option(`event`,{type:`string`,choices:s,array:!0,description:`Filter by event type (may be repeated)`}).option(`level`,{type:`string`,choices:c,description:`Filter by log level`}).option(`sample`,{type:`number`,coerce:e=>{if(!Number.isFinite(e)||e<=0||e>1)throw Error(`--sample must be greater than 0.0 and no greater than 1.0.`);return e},description:`Sample log events by fraction greater than 0.0 and no greater than 1.0`}),handler:async s=>{if(s.local)throw Error(`--local is not supported by cf tunnels tail.`);let c=process.env.TUNNEL_MANAGEMENT_TOKEN;if(c!==void 0&&!c.trim())throw Error(`TUNNEL_MANAGEMENT_TOKEN must not be empty.`);if(c&&s[`tunnel-id`])throw Error(`Specify either a tunnel ID or TUNNEL_MANAGEMENT_TOKEN, not both.`);let l=c;if(!l){let e=s[`tunnel-id`];if(!e)throw Error(`Either a tunnel ID or TUNNEL_MANAGEMENT_TOKEN must be provided.`);l=await t({mode:s.mode,local:s.local},async()=>{let t=await n(s),o=await r();return i(`Fetching tunnel management token`,async()=>t.send(a,{account_id:o,tunnel_id:e,body:{resources:[`logs`]}}))})}let u=[`tail`,`--output`,`json`];if(s[`connector-id`]&&u.push(`--connector-id`,s[`connector-id`]),s.event)for(let e of s.event)u.push(`--event`,e);throw s.level&&u.push(`--level`,s.level),s.sample!==void 0&&u.push(`--sample`,String(s.sample)),s[`tunnel-id`]&&u.push(s[`tunnel-id`]),new e(await o(u,{env:{TUNNEL_MANAGEMENT_TOKEN:l}}))}};export{d as default};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import{t as e}from"./cli-exit-CstFZ1eJ.mjs";import{r as t}from"./dotenv-usOKkeW7.mjs";import{n}from"./context-
|
|
2
|
+
import{t as e}from"./cli-exit-CstFZ1eJ.mjs";import{r as t}from"./dotenv-usOKkeW7.mjs";import{n}from"./context-B-vEsyrK.mjs";import{n as r}from"./cloudflared-By8BzYXc.mjs";const i={command:`token <url>`,describe:`Print a JWT for authenticating with an Access application.`,builder:e=>e.positional(`url`,{type:`string`,description:`URL of the Access application`,demandOption:!0}),handler:async i=>{if(i.local)throw Error(`--local is not supported by cf access token.`);let a=[`access`];throw await t({mode:i.mode,local:i.local},()=>n())===`fedramp_high`&&a.push(`--fedramp`),a.push(`token`,i.url),new e(await r(a))}};export{i as default};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import{t as e}from"./cli-exit-CstFZ1eJ.mjs";import{r as t}from"./dotenv-usOKkeW7.mjs";import{n}from"./context-
|
|
2
|
+
import{t as e}from"./cli-exit-CstFZ1eJ.mjs";import{r as t}from"./dotenv-usOKkeW7.mjs";import{n}from"./context-B-vEsyrK.mjs";import{n as r}from"./cloudflared-By8BzYXc.mjs";const i={command:`login`,describe:`Authorize cloudflared and download an origin certificate for locally managed tunnels.`,handler:async i=>{if(i.local)throw Error(`--local is not supported by cf tunnels login.`);let a=[`tunnel`,`login`];throw await t({mode:i.mode,local:i.local},()=>n())===`fedramp_high`&&a.push(`--fedramp`),new e(await r(a))}};export{i as default};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import{n as e,t}from"./metadata-Df5kCWJv.mjs";import{t as n}from"./run-
|
|
2
|
+
import{n as e,t}from"./metadata-Df5kCWJv.mjs";import{t as n}from"./run-BvDCuZ8q.mjs";import r from"node:assert";function i(e,t){return`#compdef ${e}
|
|
3
3
|
compdef _${e} ${e}
|
|
4
4
|
|
|
5
5
|
# zsh completion for ${e} -*- shell-script -*-
|
|
@@ -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";var d={method:`POST`,path:t=>e`/accounts/${t.account_id}/magic/connectors/${t.connector_id}/interrupts`,body:`json`,errors:{400:`BadRequestError`,401:`UnauthorizedError`,403:`ForbiddenError`,404:`NotFoundError`,409:`ConflictError`,500:`InternalServerError`}};function f(e){return e.usage(`$0 connector-interrupts create <connector-id>
|
|
3
3
|
|
|
4
4
|
Creates an interrupt for a Magic WAN Connector.`).positional(`connector-id`,{type:`string`,description:`Connector ID`,demandOption:!0}).option(`reboot-purge`,{type:`boolean`,description:`Purge connector state.`}).option(`restart-purge`,{type:`boolean`,description:`Purge connector state.`}).option(`shutdown-purge`,{type:`boolean`,description:`Purge connector state.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Interrupt action for a connector.`})}const p={command:`create <connector-id>`,describe:`Create Interrupt`,builder:f,handler:async e=>c({command:`connector-interrupts create`,classification:{safeFlags:[`reboot-purge`,`restart-purge`,`shutdown-purge`,`dry-run`]}},e,async()=>{if(e.dryRun){let t=await r();o({command:`cf connector-interrupts create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/magic/connectors/${e[`connector-id`]==null?`<connector-id>`:encodeURIComponent(String(e[`connector-id`]))}/interrupts`,pathParams:{"connector-id":String(e[`connector-id`]??``)},bodyKind:`json`,body:e.body===void 0?u({reboot:{purge:e[`reboot-purge`]},restart:{purge:e[`restart-purge`]},shutdown:{purge:e[`shutdown-purge`]}}):l(e.body)});return}let c=await n(e),f=e.local?t:await i();if(e.accountId=f,e.body){let t=l(e.body),n=await s(`Creating`,async()=>c.send(d,{body:t,account_id:f,connector_id:e[`connector-id`]}));a(n,{successLabel:`Created`});return}let p=u({reboot:{purge:e[`reboot-purge`]},restart:{purge:e[`restart-purge`]},shutdown:{purge:e[`shutdown-purge`]}}),m=await s(`Creating`,async()=>c.send(d,{body:p,account_id:f,connector_id:e[`connector-id`]}));a(m,{successLabel:`Created`})})};var m={method:`GET`,path:t=>e`/accounts/${t.account_id}/magic/connectors/${t.connector_id}/interrupts`,errors:{400:`BadRequestError`,401:`UnauthorizedError`,403:`ForbiddenError`,404:`NotFoundError`,500:`InternalServerError`}};function h(e){return e.usage(`$0 connector-interrupts list
|
|
5
5
|
|
package/dist/{connector-telemetry-events-X3Fod9nl.mjs → connector-telemetry-events-BQGBQwzR.mjs}
RENAMED
|
@@ -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";var l={method:`GET`,path:t=>e`/accounts/${t.account_id}/magic/connectors/${t.connector_id}/telemetry/events/${t.event_t}.${t.event_n}`,errors:{400:`BadRequestError`,401:`UnauthorizedError`,403:`ForbiddenError`,404:`NotFoundError`,429:`TooManyRequestsError`,500:`InternalServerError`}};function u(e){return e.usage(`$0 connector-telemetry-events get <event-n>
|
|
3
3
|
|
|
4
4
|
Gets Magic WAN Connector Telemetry Event`).positional(`event-n`,{type:`string`,description:`Event n`,demandOption:!0}).option(`connector-id`,{type:`string`,description:`Connector ID`,demandOption:!0}).option(`event-t`,{type:`string`,description:`Event t`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const d={command:`get <event-n>`,describe:`Get Event`,builder:u,handler:async e=>c({command:`connector-telemetry-events get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await r();o({command:`cf connector-telemetry-events get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/magic/connectors/${e[`connector-id`]==null?`<connector-id>`:encodeURIComponent(String(e[`connector-id`]))}/telemetry/events/${e[`event-t`]==null?`<event-t>`:encodeURIComponent(String(e[`event-t`]))}.${e[`event-n`]==null?`<event-n>`:encodeURIComponent(String(e[`event-n`]))}`,pathParams:{"connector-id":String(e[`connector-id`]??``),"event-t":String(e[`event-t`]??``),"event-n":String(e[`event-n`]??``)},bodyKind:`none`});return}let c=await n(e),u=e.local?t:await i();e.accountId=u;let d=await s(`Loading`,async()=>c.send(l,{account_id:u,connector_id:e[`connector-id`],event_t:e[`event-t`],event_n:e[`event-n`]}));a(d,{successLabel:`Loaded`})})};var f={method:`GET`,path:t=>e`/accounts/${t.account_id}/magic/connectors/${t.connector_id}/telemetry/events`,query:[`from`,`to`,`limit`,`cursor`,`k`],errors:{400:`BadRequestError`,401:`UnauthorizedError`,403:`ForbiddenError`,429:`TooManyRequestsError`,500:`InternalServerError`}};function p(e){return e.usage(`$0 connector-telemetry-events list
|
|
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";var l={method:`GET`,path:t=>e`/accounts/${t.account_id}/magic/connectors/${t.connector_id}/telemetry/snapshots/${t.snapshot_t}`,errors:{400:`BadRequestError`,401:`UnauthorizedError`,403:`ForbiddenError`,404:`NotFoundError`,429:`TooManyRequestsError`,500:`InternalServerError`}};function u(e){return e.usage(`$0 connector-telemetry-snapshots get <snapshot-t>
|
|
3
3
|
|
|
4
4
|
Gets Magic WAN Connector Telemetry Snapshot`).positional(`snapshot-t`,{type:`string`,description:`Snapshot t`,demandOption:!0}).option(`connector-id`,{type:`string`,description:`Connector ID`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const d={command:`get <snapshot-t>`,describe:`Get Snapshot`,builder:u,handler:async e=>c({command:`connector-telemetry-snapshots get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await r();o({command:`cf connector-telemetry-snapshots get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/magic/connectors/${e[`connector-id`]==null?`<connector-id>`:encodeURIComponent(String(e[`connector-id`]))}/telemetry/snapshots/${e[`snapshot-t`]==null?`<snapshot-t>`:encodeURIComponent(String(e[`snapshot-t`]))}`,pathParams:{"connector-id":String(e[`connector-id`]??``),"snapshot-t":String(e[`snapshot-t`]??``)},bodyKind:`none`});return}let c=await n(e),u=e.local?t:await i();e.accountId=u;let d=await s(`Loading`,async()=>c.send(l,{account_id:u,connector_id:e[`connector-id`],snapshot_t:e[`snapshot-t`]}));a(d,{successLabel:`Loaded`})})};var f={method:`GET`,path:t=>e`/accounts/${t.account_id}/magic/connectors/${t.connector_id}/telemetry/snapshots`,query:[`from`,`to`,`limit`,`cursor`],errors:{400:`BadRequestError`,401:`UnauthorizedError`,403:`ForbiddenError`,429:`TooManyRequestsError`,500:`InternalServerError`}};function p(e){return e.usage(`$0 connector-telemetry-snapshots list
|
|
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{n as f}from"./prompt-dgLm0iFJ.mjs";var p={method:`POST`,path:t=>e`/accounts/${t.account_id}/magic/connectors`,body:`json`,errors:{400:`BadRequestError`,401:`UnauthorizedError`,403:`ForbiddenError`,404:`NotFoundError`,409:`ConflictError`,500:`InternalServerError`}};function m(e){return e.usage(`$0 connectors create
|
|
3
3
|
|
|
4
4
|
Creates a Magic WAN Connector.`).option(`device-id`,{type:`string`,description:`The device.id field`}).option(`device-provision-license`,{type:`boolean`,description:`When true, create and provision a new licence key for the connector.`}).option(`device-serial-number`,{type:`string`,description:`The device.serial_number field`}).option(`activated`,{type:`boolean`,description:`The activated field`}).option(`interrupt-window-days-of-week`,{type:`string`,array:!0,description:`Allowed days of the week for upgrades. Default is all days.`}).option(`interrupt-window-duration-hours`,{type:`number`,description:`The interrupt_window_duration_hours field`}).option(`interrupt-window-embargo-dates`,{type:`string`,array:!0,description:`List of dates (YYYY-MM-DD) when upgrades are blocked.`}).option(`interrupt-window-hour-of-day`,{type:`number`,description:`The interrupt_window_hour_of_day field`}).option(`notes`,{type:`string`,description:`The notes field`}).option(`timezone`,{type:`string`,description:`The timezone 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 h={command:`create`,describe:`Create Connector`,builder:m,handler:async e=>c({command:`connectors create`,classification:{safeFlags:[`device-provision-license`,`activated`,`dry-run`]}},e,async()=>{if(e.dryRun){let t=await r();o({command:`cf connectors create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/magic/connectors`,pathParams:{},bodyKind:`json`,body:e.body===void 0?u({device:{id:d(e[`device-id`],`device-id`,`text`),provision_license:e[`device-provision-license`],serial_number:d(e[`device-serial-number`],`device-serial-number`,`text`)},activated:e.activated,interrupt_window_days_of_week:e[`interrupt-window-days-of-week`],interrupt_window_duration_hours:e[`interrupt-window-duration-hours`],interrupt_window_embargo_dates:e[`interrupt-window-embargo-dates`],interrupt_window_hour_of_day:e[`interrupt-window-hour-of-day`],notes:d(e.notes,`notes`,`text`),timezone:d(e.timezone,`timezone`,`text`)}):l(e.body)});return}let c=await n(e),f=e.local?t:await i();if(e.accountId=f,e.body){let t=l(e.body),n=await s(`Creating`,async()=>c.send(p,{body:t,account_id:f}));a(n,{successLabel:`Created`});return}let m=u({device:{id:d(e[`device-id`],`device-id`,`text`),provision_license:e[`device-provision-license`],serial_number:d(e[`device-serial-number`],`device-serial-number`,`text`)},activated:e.activated,interrupt_window_days_of_week:e[`interrupt-window-days-of-week`],interrupt_window_duration_hours:e[`interrupt-window-duration-hours`],interrupt_window_embargo_dates:e[`interrupt-window-embargo-dates`],interrupt_window_hour_of_day:e[`interrupt-window-hour-of-day`],notes:d(e.notes,`notes`,`text`),timezone:d(e.timezone,`timezone`,`text`)}),h=await s(`Creating`,async()=>c.send(p,{body:m,account_id:f}));a(h,{successLabel:`Created`})})};var g={method:`DELETE`,path:t=>e`/accounts/${t.account_id}/magic/connectors/${t.connector_id}`,errors:{400:`BadRequestError`,401:`UnauthorizedError`,403:`ForbiddenError`,404:`NotFoundError`,500:`InternalServerError`}};function _(e){return e.usage(`$0 connectors delete <connector-id>
|
|
5
5
|
|