cf 1.0.0-beta.0 → 1.0.0-beta.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +11 -0
- package/dist/_meta/commands.json +10140 -10626
- package/dist/_meta/hand-written-commands.json +546 -1
- package/dist/_meta/schemas.json +6391 -7002
- package/dist/{abuse-reports-BwsJLiPN.mjs → abuse-reports-JcwSaW-c.mjs} +11 -11
- package/dist/access-B3TvAe5h.mjs +27 -0
- package/dist/{account-DBLarar2.mjs → account-CLsfIk5j.mjs} +5 -5
- package/dist/{account-tags-BNrSShjj.mjs → account-tags-BJdDiyDi.mjs} +4 -4
- package/dist/{accounts-CCAnDjFk.mjs → accounts-6eXqIqSW.mjs} +59 -59
- package/dist/{acm-ZPYQbZQr.mjs → acm-ChNLnPqM.mjs} +3 -3
- package/dist/{addressing-BFpzLfTn.mjs → addressing-z8ei_TCh.mjs} +49 -49
- package/dist/agent-context-GRiQ4zRU.mjs +2 -0
- package/dist/{agent-memory-DEvy2dLU.mjs → agent-memory-Un0usAVF.mjs} +15 -15
- package/dist/{ai-BF0_0NtS.mjs → ai-Bj8kgDf7.mjs} +14 -14
- package/dist/{ai-audit-Dn03zntn.mjs → ai-audit-FR6QuDK_.mjs} +1 -1
- package/dist/{ai-gateway-CVABbCjv.mjs → ai-gateway-DrQhTvKf.mjs} +68 -68
- package/dist/{ai-search-g0tR8Cut.mjs → ai-search-BvMeOKK6.mjs} +37 -37
- package/dist/{ai-security-BXXA0Jnk.mjs → ai-security-BHvDKoM1.mjs} +1 -1
- package/dist/{alerting-Bst10SOG.mjs → alerting-DmRZCAjg.mjs} +26 -26
- package/dist/{analytics-DgEaxta8.mjs → analytics-DqidJ4qc.mjs} +9 -9
- package/dist/{analytics_engine-B4DvcYmB.mjs → analytics_engine-I7N0I6yP.mjs} +2 -2
- package/dist/{api-security-Dkx1Codr.mjs → api-security-BMNhdDyR.mjs} +61 -61
- package/dist/{argo-BvswWPlP.mjs → argo-U5TIBcub.mjs} +1 -1
- package/dist/args-CXgkQKK7.mjs +2 -0
- package/dist/{artifacts-D8kZKJq0.mjs → artifacts-Byw1W73U.mjs} +20 -20
- package/dist/{audit-logs-Bp_yQpXJ.mjs → audit-logs-C6zyFeKM.mjs} +2 -2
- package/dist/auth-B5p3SIhO.mjs +8 -0
- package/dist/auth-CosaKfuk.mjs +2 -0
- package/dist/autoconfig-DED3bWob.mjs +511 -0
- package/dist/banner-Xk4xBN8U.mjs +2 -0
- package/dist/{billing-Cqj64fqz.mjs → billing-BS1raRJt.mjs} +10 -10
- package/dist/{bot-management-CzZx_aml.mjs → bot-management-Cn6xfGzJ.mjs} +1 -1
- package/dist/{botnet-feed-Co0c8Xdj.mjs → botnet-feed-DtWOPNfw.mjs} +5 -5
- package/dist/{brand-protection-CDsGaPIl.mjs → brand-protection-BcEQ66bT.mjs} +13 -13
- package/dist/browser-extension-D_siSsD9.mjs +2 -0
- package/dist/{browser-run-DFrohJ1p.mjs → browser-run-RZ7ZPRop.mjs} +23 -23
- package/dist/build-DG8NfVjJ.mjs +2 -0
- package/dist/build-kgS7iKwi.mjs +2 -0
- package/dist/{builds-CamhClyb.mjs → builds-AOCMH4CE.mjs} +31 -31
- package/dist/{cache-BiTk4-Zc.mjs → cache-D_EBxDff.mjs} +1 -1
- package/dist/{certificate-authorities-Dal9DNjW.mjs → certificate-authorities-B6rtjuaT.mjs} +1 -1
- package/dist/cf--3tGe71B.mjs +18 -0
- package/dist/chunk-M77HNR46-BqG3fjQz.mjs +2 -0
- package/dist/chunk-RV27PEH3-C8_6bMgi.mjs +97 -0
- package/dist/chunk-U6NEESU5-CAnOLcsu.mjs +2 -0
- package/dist/chunk-WMOON6TZ-D3H84qpM.mjs +2 -0
- package/dist/cli-Ct980dyx.mjs +3 -0
- package/dist/cli-exit-Dqoo6Jgb.mjs +2 -0
- package/dist/client-certificates-uBOjGcgo.mjs +13 -0
- package/dist/{client-side-security-CIO_YPtN.mjs → client-side-security-Bm7JwGaG.mjs} +1 -1
- package/dist/{cloud-connector-vwdixea0.mjs → cloud-connector-69M2Dx8h.mjs} +1 -1
- package/dist/{cloudflared-DhItYrCq.mjs → cloudflared-Ba5LySkU.mjs} +1 -1
- package/dist/{cloudforce-one-C1cFVBGK.mjs → cloudforce-one-Xn2mlAPv.mjs} +214 -214
- package/dist/command-B7SzqjQM.mjs +2 -0
- package/dist/command-BLHcNQ8m.mjs +2 -0
- package/dist/command-BxQbIQWT.mjs +2 -0
- package/dist/command-C0SMCHZp.mjs +2 -0
- package/dist/command-CE8k5TuK.mjs +2 -0
- package/dist/command-CPiCDUth.mjs +2 -0
- package/dist/command-Cb0pS8T5.mjs +2 -0
- package/dist/command-Cz_bKDWf.mjs +2 -0
- package/dist/command-DCpX9Cem.mjs +2 -0
- package/dist/command-DEC5PwJo.mjs +2 -0
- package/dist/command-DHjsstFb.mjs +2 -0
- package/dist/command-MTUsmZU5.mjs +2 -0
- package/dist/command-Sb9lOxWT.mjs +2 -0
- package/dist/command-sQ8yswii.mjs +2 -0
- package/dist/{completions-xPLd1cvL.mjs → completions-DZDltM9V.mjs} +3 -3
- package/dist/{config-B4vIa0zp.mjs → config-DcppJ5D2.mjs} +1 -1
- package/dist/{connector-interrupts-DQ5T-HMN.mjs → connector-interrupts-DTy6laab.mjs} +3 -3
- package/dist/{connector-telemetry-events-DWam38_9.mjs → connector-telemetry-events-CJqGGvFJ.mjs} +3 -3
- package/dist/{connector-telemetry-snapshots-DX6AJf9Q.mjs → connector-telemetry-snapshots-BPxhPhr6.mjs} +3 -3
- package/dist/{connectors-CBhLWVd-.mjs → connectors-CdfCcZuA.mjs} +7 -7
- package/dist/{containers-Bx_44bmJ.mjs → containers-C7z53QcY.mjs} +86 -86
- package/dist/{containers-C7blN-pe.mjs → containers-VMqcxH5a.mjs} +17 -17
- package/dist/{content-scan-CC91dAlv.mjs → content-scan-BirgZrmr.mjs} +1 -1
- package/dist/context-Dzzbc9RK.mjs +7 -0
- package/dist/{cps-D9a4N_bH.mjs → cps-DzFm3zKp.mjs} +1 -1
- package/dist/{csamScanner-T7nbCnep.mjs → csamScanner-D2_OO5-1.mjs} +1 -1
- package/dist/{ct-alerting-CkjNJlla.mjs → ct-alerting-B7wQkFVl.mjs} +1 -1
- package/dist/{custom-certificates-DnWnt9oJ.mjs → custom-certificates-BKcCfbH8.mjs} +4 -4
- package/dist/{custom-csrs-Db2pF9Ib.mjs → custom-csrs-CXoOxir4.mjs} +5 -5
- package/dist/{custom-hostnames-B_N-uSIa.mjs → custom-hostnames-CNYfnCOd.mjs} +6 -6
- package/dist/{custom-nameservers-DPA_sFY8.mjs → custom-nameservers-BlLM7a4L.mjs} +5 -5
- package/dist/{custom-pages-D6fxEBoh.mjs → custom-pages-BcWoypet.mjs} +10 -10
- package/dist/{d1-DXs1xVmH.mjs → d1-CvrHsqYY.mjs} +14 -14
- package/dist/{data-security-CVZAIzhe.mjs → data-security-BxzLSdGk.mjs} +33 -33
- package/dist/{dcv-delegation-as1ue_wx.mjs → dcv-delegation-9_Hl-5v-.mjs} +1 -1
- package/dist/{delegate-GctF_lrq.mjs → delegate-CCGgla7X.mjs} +1 -1
- package/dist/delegate.mjs +1 -1
- package/dist/{deploy-D2XXCkqk.mjs → deploy-BlXYtvTd.mjs} +1 -1
- package/dist/{deploy-input-BCYyKXpp.mjs → deploy-input-DTXVZ2QJ.mjs} +1 -1
- package/dist/dev-reqdKM28.mjs +4 -0
- package/dist/{diagnostics-BKH1Oh-C.mjs → diagnostics-BxHs1EJB.mjs} +7 -7
- package/dist/dialog-ClHoC_cG.mjs +2 -0
- package/dist/dist-CmyJy57B.mjs +48 -0
- package/dist/{dist-BpadEMNY.mjs → dist-Cpb7_h4N.mjs} +35 -35
- package/dist/dist-cGGV-p_F.mjs +366 -0
- package/dist/{dls-C5kAQsN6.mjs → dls-D7GXW-N3.mjs} +8 -8
- package/dist/{dns-CYwXrdJO.mjs → dns-B0mdWJO5.mjs} +63 -63
- package/dist/{dns-firewall-BEw4QcXj.mjs → dns-firewall-BG0bzuL3.mjs} +8 -8
- package/dist/dot-prop-IITUZ2XW-BO5KJUwL.mjs +2 -0
- package/dist/dry-run-BmzTxDtZ.mjs +2 -0
- package/dist/{durable-objects-3jvUgzKd.mjs → durable-objects-DW0CsJzR.mjs} +4 -4
- package/dist/{email-auth-B3MD8FrJ.mjs → email-auth-Ls-7Yijm.mjs} +1 -1
- package/dist/{email-routing-C4YhZGPw.mjs → email-routing-DVaFhg-3.mjs} +24 -24
- package/dist/{email-security-BcFyWNby.mjs → email-security-vnwkqlgp.mjs} +77 -79
- package/dist/{email-sending-BO1GOAho.mjs → email-sending-CbMUicJz.mjs} +23 -23
- package/dist/error-sanitization-TV6O0aCD.mjs +2 -0
- package/dist/error-sanitization-cyGBhW1Z.mjs +2 -0
- package/dist/{fieldExtractors-BJDnzNCN.mjs → fieldExtractors-2EkDoJg8.mjs} +4 -4
- package/dist/firewall-BK4QYqRe.mjs +36 -0
- package/dist/{flagship-BJYMb7hb.mjs → flagship--lHQ0H3n.mjs} +13 -13
- package/dist/{fraud-C7kS7kP9.mjs → fraud-CaoRrQ8W.mjs} +1 -1
- package/dist/generate-CrKNH6ms.mjs +3 -0
- package/dist/generate-Djb5Af37.mjs +2 -0
- package/dist/{google-tag-gateway-8VR-j0sa.mjs → google-tag-gateway-DDzLPmk5.mjs} +1 -1
- package/dist/{healthchecks-BJleItOD.mjs → healthchecks-Q2uXvt4m.mjs} +1 -1
- package/dist/{hostnames-CHajvoHa.mjs → hostnames-CsaYnis6.mjs} +1 -1
- package/dist/{hyperdrive-DlxQrok-.mjs → hyperdrive-DDr6sAkw.mjs} +9 -9
- package/dist/{iam-B7oTr6vW.mjs → iam-CmzocepZ.mjs} +24 -24
- package/dist/{images-xLAYe436.mjs → images-Ux0Phsbi.mjs} +38 -38
- package/dist/index.mjs +1 -1
- package/dist/init-Nx4RRgfT.mjs +39 -0
- package/dist/{intel-DwZXY1YE.mjs → intel-bgS4g7nx.mjs} +38 -38
- package/dist/interactive-B_dcVghB.mjs +2 -0
- package/dist/interactive-D80kbTap.mjs +32 -0
- package/dist/{ips-BC_9nKE7.mjs → ips-BDiolgWF.mjs} +1 -1
- package/dist/keyless-certificates-C_TwTMql.mjs +13 -0
- package/dist/{keys-K-GFzhku.mjs → keys-Cr8AqQDY.mjs} +2 -2
- package/dist/{kv-Bfwz_ULu.mjs → kv-DmAQCqXl.mjs} +10 -10
- package/dist/lazy-command-B_bwSa2F.mjs +2 -0
- package/dist/{leaked-credential-checks-D8UuxztO.mjs → leaked-credential-checks-De7ph4VA.mjs} +1 -1
- package/dist/{load-balancers-B0XeGLhT.mjs → load-balancers-DXt4ndF4.mjs} +39 -39
- package/dist/local-CFd107fr.mjs +2 -0
- package/dist/{local-B6b2OIBW.mjs → local-OKXweFsd.mjs} +1 -1
- package/dist/{local-runtime-DD8DAIlm.mjs → local-runtime-tTYpniPS.mjs} +1 -1
- package/dist/login-BurQ63Ws.mjs +5 -0
- package/dist/login-CmlHvH5k.mjs +2 -0
- package/dist/{logo-matches-DWg5ezsM.mjs → logo-matches-CQ60P96J.mjs} +3 -3
- package/dist/{logos-6A6gJC5C.mjs → logos-u7UwT8MH.mjs} +3 -3
- package/dist/{logpush-DwehajAw.mjs → logpush-IoIe8e80.mjs} +23 -23
- package/dist/{logs-BWg7YymF.mjs → logs-ih5tyXEE.mjs} +16 -16
- package/dist/{magic-cloud-networking--14hNj2F.mjs → magic-cloud-networking-CWNFnjcY.mjs} +34 -34
- package/dist/{magic-network-monitoring-Dzo4L6kd.mjs → magic-network-monitoring-ClfZleF8.mjs} +17 -17
- package/dist/{magic-transit-DDO0A5v4.mjs → magic-transit-D69pkEVW.mjs} +139 -139
- package/dist/{managed-defense-DQ0iwWdG.mjs → managed-defense-BHdmL0vx.mjs} +9 -9
- package/dist/{managed-transforms-DDIdcPG0.mjs → managed-transforms-DbCR4LUg.mjs} +1 -1
- package/dist/{matches-D6ahHNaP.mjs → matches-Cou6RVkh.mjs} +3 -3
- package/dist/{mcp-BcIrLbRv.mjs → mcp-CQYfM19s.mjs} +15 -15
- package/dist/{mesh-wLiPcWyN.mjs → mesh-CXqaAFS4.mjs} +12 -12
- package/dist/migrate-CXMbQPyC.mjs +2 -0
- package/dist/mtls-certificates-DNeId8xS.mjs +13 -0
- package/dist/{network-DZsrs_sw.mjs → network-B7V3JbU7.mjs} +24 -24
- package/dist/{network-interconnects-Cjbu4EMv.mjs → network-interconnects-BNon8iUs.mjs} +17 -17
- package/dist/oauth-CeXh-ACI.mjs +9 -0
- package/dist/{oauth-Cu1twz9z.mjs → oauth-DM8q-TYg.mjs} +1 -1
- package/dist/{oauth-clients-DR0hzakz.mjs → oauth-clients-gGmWIWHl.mjs} +7 -7
- package/dist/{oauth-scopes-BDNpJJ32.mjs → oauth-scopes-DSEu331u.mjs} +1 -1
- package/dist/{observability-BnHy2M6p.mjs → observability-_VJhfwM1.mjs} +44 -44
- package/dist/open-PCXX3ZDZ-DobJT1Mj.mjs +4 -0
- package/dist/{organization-iasRm69J.mjs → organization-DW4EpwGl.mjs} +1 -1
- package/dist/{organizations-CUzCIKXV.mjs → organizations-DE1g2wVq.mjs} +1 -1
- package/dist/{origin-ca-certificates-iQXSqBI0.mjs → origin-ca-certificates-D3ULDV__.mjs} +3 -3
- package/dist/{origin-post-quantum-encryption-DcMDK6Tz.mjs → origin-post-quantum-encryption-BLropaz7.mjs} +1 -1
- package/dist/{origin-tls-client-auth-D1X26X7y.mjs → origin-tls-client-auth-C87TG2i_.mjs} +5 -5
- package/dist/output-CZt-berV.mjs +2 -0
- package/dist/{page-rules-CXa8EYcP.mjs → page-rules-tlb9P-7V.mjs} +1 -1
- package/dist/{pages-Cu0m9GSH.mjs → pages-CjPErYik.mjs} +24 -24
- package/dist/{pay-per-crawl-DmF8xlm_.mjs → pay-per-crawl-C50wI-Iz.mjs} +32 -32
- package/dist/{pay-per-use-DIp2fwJU.mjs → pay-per-use-DHHIvynU.mjs} +3 -3
- package/dist/{pipelines-MmXlsxYO.mjs → pipelines-Y2icOwuf.mjs} +20 -20
- package/dist/precursor-DeyurJSC.mjs +4 -0
- package/dist/previews-Dj_LcGRd.mjs +4 -0
- package/dist/progress-C9dWgc3J.mjs +2 -0
- package/dist/prompt-Mh69ni1N.mjs +3 -0
- package/dist/{queries-VzdcSR5H.mjs → queries-DyUJefwL.mjs} +4 -4
- package/dist/{queues-BZYl2emH.mjs → queues-CdNe4tGY.mjs} +29 -35
- package/dist/{r2-omcKF8_A.mjs → r2-C0W2J4sT.mjs} +52 -52
- package/dist/{r2-data-catalog-DISnPFPY.mjs → r2-data-catalog-D_zDlmVD.mjs} +16 -16
- package/dist/{radar-JzBTD249.mjs → radar-CSguicKC.mjs} +1 -1
- package/dist/raw-fetch-1ygCOcT_.mjs +2 -0
- package/dist/{realtime-yIdAJ0Yf.mjs → realtime-CvWs5pi3.mjs} +78 -78
- package/dist/{registrar-D-Li9gNk.mjs → registrar-DQUxn0FK.mjs} +8 -8
- package/dist/{registrar-sandbox-CKSSHAyv.mjs → registrar-sandbox-Q7ZEmg2x.mjs} +6 -6
- package/dist/{registry-vreNkX6u.mjs → registry-4Sw95M5_.mjs} +1 -1
- package/dist/{reporting-Cf-pnw6h.mjs → reporting-DJShxeDv.mjs} +7 -7
- package/dist/request-headers-DFBBErJg.mjs +2 -0
- package/dist/{request-tracers-BegIQTzt.mjs → request-tracers-DD8HlG61.mjs} +2 -2
- package/dist/resolve-BVxXAYG7.mjs +2 -0
- package/dist/{resource-sharing-DEVgiYzM.mjs → resource-sharing-J46JMWQP.mjs} +14 -14
- package/dist/{resource-tagging-Cm2yJkU9.mjs → resource-tagging-DLZJLIqy.mjs} +2 -2
- package/dist/{rules-DDCa7cYF.mjs → rules-D068LfBR.mjs} +8 -8
- package/dist/{rulesets-BhS7Hvtu.mjs → rulesets-Cz6P7Oje.mjs} +17 -17
- package/dist/{rum-EIj9ViSn.mjs → rum-C6GQC2vI.mjs} +14 -14
- package/dist/run-C_qUgBTs.mjs +2 -0
- package/dist/run-DK1d9BJz.mjs +2 -0
- package/dist/schema-VZPw_2CY.mjs +2 -0
- package/dist/{schema-flags--GosoCMU.mjs → schema-flags-BmY0Nzp0.mjs} +2 -2
- package/dist/{scim-DA83eNe-.mjs → scim-DMTp_Zhc.mjs} +10 -10
- package/dist/{sdk-CvIO3tWS.mjs → sdk-BuF3fTHr.mjs} +2 -2
- package/dist/{secrets-store-BTd3eGIB.mjs → secrets-store-C2epk0sQ.mjs} +11 -11
- package/dist/{security-center-DbH_7h-T.mjs → security-center-DwMdQ02Y.mjs} +15 -15
- package/dist/{security-txt-DSrHhVEN.mjs → security-txt-CORQfMul.mjs} +1 -1
- package/dist/session-BEXskZi2.mjs +2 -0
- package/dist/shared--lvrXmXY.mjs +2 -0
- package/dist/{smart-shield-DnSTo-OI.mjs → smart-shield-BZ0xjy_6.mjs} +1 -1
- package/dist/{snippets-An5kQs33.mjs → snippets-LSkJGDOc.mjs} +1 -1
- package/dist/source-38bULAR8.mjs +6 -0
- package/dist/spawn-Da3HnlmB.mjs +10 -0
- package/dist/{spectrum-Ci79n7fd.mjs → spectrum-zU8_GFTV.mjs} +1 -1
- package/dist/{speed-BBL7LrLn.mjs → speed-4XbFmeYM.mjs} +1 -1
- package/dist/src-BLLpnbzC.mjs +109 -0
- package/dist/{ssl-B2psFIRm.mjs → ssl-DiCsMY_a.mjs} +4 -4
- package/dist/startup-profile-6fCkD04r.mjs +17 -0
- package/dist/startup-profile-Cw-_akjQ.mjs +2 -0
- package/dist/state-CcktNox9.mjs +2 -0
- package/dist/{state-BxCejn42.mjs → state-DiHwKWTy.mjs} +1 -1
- package/dist/{stream-Du0Q7UOh.mjs → stream-BG3NUAVE.mjs} +45 -45
- package/dist/{submit-CU8S2jBT.mjs → submit-CKSaSFS1.mjs} +2 -2
- package/dist/{tags-C3l5aZSi.mjs → tags-uT9Mi-bX.mjs} +2 -2
- package/dist/telemetry-C0k8vfbq.mjs +2 -0
- package/dist/telemetry-Dh-8kdfY.mjs +5 -0
- package/dist/{telemetry-PHe8XxA2.mjs → telemetry-IrDBqbQW.mjs} +1 -1
- package/dist/{tenant-BZ0ysR9L.mjs → tenant--UrYFHM0.mjs} +1 -1
- package/dist/{tenant-custom-nameservers-DtKeyM5J.mjs → tenant-custom-nameservers-8Z4TVJtr.mjs} +1 -1
- package/dist/{theme-BiIYWOed.mjs → theme-BIWQFmZ0.mjs} +2 -2
- package/dist/tools-DNGD0l7I.mjs +2 -0
- package/dist/{tunnels-D1tRWQQi.mjs → tunnels-5lGSXYpl.mjs} +15 -15
- package/dist/turnstile-CT3AkMPV.mjs +33 -0
- package/dist/ui-D1hhIDIs.mjs +5 -0
- package/dist/update-check-BYJnL8J8.mjs +2 -0
- package/dist/update-check-DFoSm5GT.mjs +2 -0
- package/dist/update-check-worker.mjs +1 -1
- package/dist/{url-info-BRA0XGT2.mjs → url-info-DvpNcNl8.mjs} +2 -2
- package/dist/{url-normalization-B6N2m5s6.mjs → url-normalization-C9URZnpq.mjs} +1 -1
- package/dist/{url-scanner-CeKkzkhe.mjs → url-scanner-CIwK3wB5.mjs} +8 -8
- package/dist/{user-CftksgmF.mjs → user-DGA7cqdf.mjs} +1 -1
- package/dist/{values-m7w9PX3o.mjs → values-BzS0b25w.mjs} +2 -2
- package/dist/{vectorize-BWBEtsgZ.mjs → vectorize-DtDjl2fJ.mjs} +15 -15
- package/dist/version-B47pK_PZ.mjs +2 -0
- package/dist/{waiting-rooms-BVZSYTNJ.mjs → waiting-rooms-CjTh4F3B.mjs} +25 -25
- package/dist/{web-assets-CLU5vAgP.mjs → web-assets-4l1B5V9b.mjs} +1 -1
- package/dist/{web3-Dkd4XRNH.mjs → web3-C0Z4AJjC.mjs} +1 -1
- package/dist/{workers-BQi4_SBS.mjs → workers-CNBv6GxE.mjs} +20 -20
- package/dist/{workers-builds-BgtPSDYJ.mjs → workers-builds-DYGeoxmX.mjs} +7 -7
- package/dist/{workers-for-platforms-actLCM6Q.mjs → workers-for-platforms-CSw0K8Nl.mjs} +11 -11
- package/dist/{workers-vpc-DjGfJgQn.mjs → workers-vpc-DJ7Couct.mjs} +6 -6
- package/dist/{workflows-Cm7WsAgB.mjs → workflows-Dm03QT8U.mjs} +20 -20
- package/dist/{zaraz-DurWe32F.mjs → zaraz-DJbWUUe3.mjs} +1 -1
- package/dist/zero-trust-DiMY-pN5.mjs +685 -0
- package/dist/{zone-B3AEAfcd.mjs → zone-BWjBv1yy.mjs} +1 -1
- package/dist/{zones-DiX5LoSU.mjs → zones-zGqcQvcY.mjs} +1 -1
- package/dist/zt-Bt4Q6iM1.mjs +110 -0
- package/package.json +13 -11
- package/dist/access-BVbIajYr.mjs +0 -27
- package/dist/auth-B9w55oRg.mjs +0 -2
- package/dist/auth-C80y97yu.mjs +0 -8
- package/dist/browser-extension-BRHJm3Qf.mjs +0 -15
- package/dist/build-BbjcJxKq.mjs +0 -2
- package/dist/build-DQh5-KK4.mjs +0 -2
- package/dist/cf-oadujOtC.mjs +0 -18
- package/dist/chunk-6EUZQHAF-QVTL_mC-.mjs +0 -2
- package/dist/chunk-DL5FNmn1.mjs +0 -2
- package/dist/chunk-Q72B4Q5Z-Cr1H_iK6.mjs +0 -2
- package/dist/chunk-Q72B4Q5Z-DKhx_4ok.mjs +0 -2
- package/dist/chunk-QBZBEHZB-Byagrlop.mjs +0 -2
- package/dist/chunk-XLADBZ7F-BXKOjWbx.mjs +0 -374
- package/dist/client-certificates-DDisXoTE.mjs +0 -13
- package/dist/command-BP7ldws1.mjs +0 -2
- package/dist/command-BtNRBTP6.mjs +0 -2
- package/dist/command-CF0giIIc.mjs +0 -3
- package/dist/command-Ck9rbHA4.mjs +0 -2
- package/dist/dev-nsNxyg2D.mjs +0 -4
- package/dist/dialog-Dx4rRcKM.mjs +0 -2
- package/dist/dist-BDOzKthe.mjs +0 -48
- package/dist/dist-dc4E1u01.mjs +0 -272
- package/dist/dot-prop-6SRZBKHT-Dj7YOlwR.mjs +0 -2
- package/dist/dry-run-CLX6Pbtq.mjs +0 -2
- package/dist/error-sanitization-BkgUhGVc.mjs +0 -2
- package/dist/error-sanitization-DOlqWkNu.mjs +0 -2
- package/dist/firewall-BSMa9aH3.mjs +0 -56
- package/dist/interactive-B6woOLo-.mjs +0 -32
- package/dist/interactive-DnUvQHjc.mjs +0 -2
- package/dist/keyless-certificates-CtsCsbZ2.mjs +0 -13
- package/dist/local-BrfySqnx.mjs +0 -2
- package/dist/login-CAsRUF4c.mjs +0 -2
- package/dist/login-DaglE6WA.mjs +0 -5
- package/dist/mtls-certificates-AEuNOERQ.mjs +0 -13
- package/dist/oauth-C-QCVfWz.mjs +0 -14
- package/dist/open-PBXRGS4R-C4CKEADM.mjs +0 -4
- package/dist/open-PBXRGS4R-C_-G_4DC.mjs +0 -4
- package/dist/output-Bia1u2k5.mjs +0 -2
- package/dist/precursor-jqeEG_mJ.mjs +0 -4
- package/dist/previews-Cg6lc24N.mjs +0 -4
- package/dist/progress-Bpp73hIu.mjs +0 -2
- package/dist/prompt-CpZztV8c.mjs +0 -3
- package/dist/raw-fetch-DxGs_eRm.mjs +0 -2
- package/dist/request-headers-DaXBfmVn.mjs +0 -2
- package/dist/resolve-BXemCSyA.mjs +0 -2
- package/dist/run-CSFE1qVX.mjs +0 -2
- package/dist/run-ChM_YpZ0.mjs +0 -2
- package/dist/schema-DCBb3Fcs.mjs +0 -2
- package/dist/shared-CtBkOWGN.mjs +0 -2
- package/dist/source-BR4_k2ad.mjs +0 -6
- package/dist/spawn-7IW1UyoH.mjs +0 -523
- package/dist/src-CNHNCZpy.mjs +0 -108
- package/dist/startup-profile-CYEokTVe.mjs +0 -2
- package/dist/startup-profile-CgWHy4rE.mjs +0 -17
- package/dist/state-DSzkxXML.mjs +0 -2
- package/dist/telemetry-CNt8H3aA.mjs +0 -2
- package/dist/telemetry-Dk1GcQ0u.mjs +0 -5
- package/dist/tools-BMKpYraQ.mjs +0 -2
- package/dist/turnstile-DBa4_Vyz.mjs +0 -33
- package/dist/ui-DH95w1Qk.mjs +0 -5
- package/dist/undici-DTSBJHNS.mjs +0 -96
- package/dist/update-check-AAn7EXw8.mjs +0 -2
- package/dist/update-check-BbIXBq1o.mjs +0 -2
- package/dist/version-cPq-WKL8.mjs +0 -2
- package/dist/zero-trust-D8SVU8YZ.mjs +0 -795
- /package/dist/{Page-C-JHZnIy.mjs → Page-BchtVjAO.mjs} +0 -0
- /package/dist/{alerts-CstOk8n0.mjs → alerts-DY_7Nknx.mjs} +0 -0
- /package/dist/{autorag-PRTwXGgn.mjs → autorag-K396-M2S.mjs} +0 -0
- /package/dist/{body-parser-CUWbw_Tq.mjs → body-parser-BpPZBRMr.mjs} +0 -0
- /package/dist/{brands-BHRXlWDm.mjs → brands-Uy0Cmv1w.mjs} +0 -0
- /package/dist/{clear-UvKESVx3.mjs → clear-CpcO2ExU.mjs} +0 -0
- /package/dist/{cli-types-tt_LZMbn.mjs → cli-types-B6tm-8uL.mjs} +0 -0
- /package/dist/{connector-telemetry-events-latest-DwnFeZg0.mjs → connector-telemetry-events-latest-oguk5Zyj.mjs} +0 -0
- /package/dist/{connector-telemetry-snapshots-latest-Dv6rZlxs.mjs → connector-telemetry-snapshots-latest-B6zuxkr0.mjs} +0 -0
- /package/dist/{domain-info-BqTDXNBo.mjs → domain-info-aiwP60Fo.mjs} +0 -0
- /package/dist/{health-CwPzzrV6.mjs → health-Bz33n-_F.mjs} +0 -0
- /package/dist/{input-validation-Ch4Vllrm.mjs → input-validation-D3e278L_.mjs} +0 -0
- /package/dist/{internal-WLHfxX64.mjs → internal-BHrJbbdA.mjs} +0 -0
- /package/dist/{lifecycle-Ichnb2x1.mjs → lifecycle-Cyc3fmyN.mjs} +0 -0
- /package/dist/{live-D_k7eHdv.mjs → live-a01OfPf9.mjs} +0 -0
- /package/dist/{metadata-APBiectA.mjs → metadata-C33s4rc-.mjs} +0 -0
- /package/dist/{project-settings-DSXevRvj.mjs → project-settings-Bf6rReo1.mjs} +0 -0
- /package/dist/{rate-limit-analytics-CDTPxSET.mjs → rate-limit-analytics-Bw9qmxMx.mjs} +0 -0
- /package/dist/{rate-limits-C3K9smdl.mjs → rate-limits-CDm_xzKt.mjs} +0 -0
- /package/dist/{ready-CvwvbdTX.mjs → ready-BXGqY1Wi.mjs} +0 -0
- /package/dist/{recent-submissions-CjzcT-iH.mjs → recent-submissions-AhGZD3a3.mjs} +0 -0
- /package/dist/{refute-CIAFMj00.mjs → refute-D_w5Gw20.mjs} +0 -0
- /package/dist/{resolve-CUDKxUrW.mjs → resolve-qPFfBMrn.mjs} +0 -0
- /package/dist/{scan-logo-zFkphtQ3.mjs → scan-logo-BZzFam-Q.mjs} +0 -0
- /package/dist/{scan-page-CLl2MAkZ.mjs → scan-page-BPA8nSPM.mjs} +0 -0
- /package/dist/{search-12jA1b4l.mjs → search-De0UlXYN.mjs} +0 -0
- /package/dist/{signed-url-U0T_PEMR.mjs → signed-url-ziDz9frX.mjs} +0 -0
- /package/dist/{submission-info-CZ84a3Nb.mjs → submission-info-83D2DCCG.mjs} +0 -0
- /package/dist/{total-queries-CJTc9Pde.mjs → total-queries-Dhol31Kn.mjs} +0 -0
- /package/dist/{tracked-domains-BKLxnnSv.mjs → tracked-domains-DoOPs6Vd.mjs} +0 -0
- /package/dist/{verify-CZW5Fo1q.mjs → verify-CxpGEnJb.mjs} +0 -0
package/dist/{magic-network-monitoring-Dzo4L6kd.mjs → magic-network-monitoring-ClfZleF8.mjs}
RENAMED
|
@@ -1,36 +1,36 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import{t as e}from"./local-
|
|
2
|
+
import{t as e}from"./local-OKXweFsd.mjs";import{a as t,t as n}from"./context-Dzzbc9RK.mjs";import{a as r,r as i}from"./auth-B5p3SIhO.mjs";import{t as a}from"./output-CZt-berV.mjs";import{t as o}from"./dry-run-BmzTxDtZ.mjs";import{t as s}from"./progress-C9dWgc3J.mjs";import{t as c}from"./run-DK1d9BJz.mjs";import"./telemetry-C0k8vfbq.mjs";import{n as l,r as u,t as d}from"./body-parser-BpPZBRMr.mjs";import{n as f}from"./input-validation-D3e278L_.mjs";import{a as p,i as m,n as h}from"./prompt-Mh69ni1N.mjs";function g(e){return e.usage(`$0 magic-network-monitoring configs create
|
|
3
3
|
|
|
4
|
-
Create a new network monitoring configuration.`).option(`default-sampling`,{type:`number`,description:`Fallback sampling rate of flow messages being sent in packets per second. This should match the packet sampling rate configured on the router.`,default:1}).option(`name`,{type:`string`,description:`The account name.`}).option(`router-ips`,{type:`string`,array:!0,description:`The router_ips field`}).option(`warp-devices`,{type:`string`,description:`The warp_devices 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 _={command:`create`,describe:`Create account configuration`,builder:g,handler:async r=>c({command:`magic-network-monitoring configs create`,classification:{safeFlags:[`dry-run`]}},r,async()=>{if(r.dryRun){o({command:`cf magic-network-monitoring configs create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${await
|
|
4
|
+
Create a new network monitoring configuration.`).option(`default-sampling`,{type:`number`,description:`Fallback sampling rate of flow messages being sent in packets per second. This should match the packet sampling rate configured on the router.`,default:1}).option(`name`,{type:`string`,description:`The account name.`}).option(`router-ips`,{type:`string`,array:!0,description:`The router_ips field`}).option(`warp-devices`,{type:`string`,description:`The warp_devices 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 _={command:`create`,describe:`Create account configuration`,builder:g,handler:async r=>c({command:`magic-network-monitoring configs create`,classification:{safeFlags:[`dry-run`]}},r,async()=>{if(r.dryRun){o({command:`cf magic-network-monitoring configs create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/mnm/config`,pathParams:{},bodyKind:`json`,body:r.body===void 0?d({default_sampling:r[`default-sampling`],name:f(r.name,`name`,`text`),router_ips:r[`router-ips`],warp_devices:u(r[`warp-devices`],`warp-devices`)}):l(r.body)});return}let c=await i(r),m=r.local?e:await n();if(r.accountId=m,r.body){let e=l(r.body);a(await s(`Creating`,async()=>c.magicNetworkMonitoring.configs.create({...e,account_id:m})),{successLabel:`Created`});return}if(r[`default-sampling`]===void 0)throw Error(`--default-sampling is required (or pass --body with this field set).`);r.name===void 0&&(r.name=await p(`name`,`The account name.`));let h=d({default_sampling:r[`default-sampling`],name:f(r.name,`name`,`text`),router_ips:r[`router-ips`],warp_devices:u(r[`warp-devices`],`warp-devices`)});a(await s(`Creating`,async()=>c.magicNetworkMonitoring.configs.create({...h,account_id:m})),{successLabel:`Created`})})};function v(e){return e.usage(`$0 magic-network-monitoring configs delete
|
|
5
5
|
|
|
6
|
-
Delete an existing network monitoring configuration.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`force`,{type:`boolean`,alias:`f`,description:`Skip confirmation (useful in scripts and CI)`,default:!1})}const y={command:`delete`,describe:`Delete account configuration`,builder:v,handler:async r=>c({command:`magic-network-monitoring configs delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},r,async()=>{if(r.dryRun){o({command:`cf magic-network-monitoring configs delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${await
|
|
6
|
+
Delete an existing network monitoring configuration.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`force`,{type:`boolean`,alias:`f`,description:`Skip confirmation (useful in scripts and CI)`,default:!1})}const y={command:`delete`,describe:`Delete account configuration`,builder:v,handler:async r=>c({command:`magic-network-monitoring configs delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},r,async()=>{if(r.dryRun){o({command:`cf magic-network-monitoring configs delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/mnm/config`,pathParams:{},bodyKind:`none`});return}let c=await i(r),l=r.local?e:await n();if(r.accountId=l,!await h({force:!!r.force})){process.stderr.write(`Aborted.
|
|
7
7
|
`);return}a(await s(`Deleting`,async()=>c.magicNetworkMonitoring.configs.delete({account_id:l})),{successLabel:`Deleted`})})};function b(e){return e.usage(`$0 magic-network-monitoring configs edit
|
|
8
8
|
|
|
9
|
-
Update fields in an existing network monitoring configuration.`).option(`default-sampling`,{type:`number`,description:`Fallback sampling rate of flow messages being sent in packets per second. This should match the packet sampling rate configured on the router.`}).option(`name`,{type:`string`,description:`The account name.`}).option(`router-ips`,{type:`string`,array:!0,description:`The router_ips field`}).option(`warp-devices`,{type:`string`,description:`The warp_devices 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 x={command:`edit`,describe:`Update account configuration fields`,builder:b,handler:async r=>c({command:`magic-network-monitoring configs edit`,classification:{safeFlags:[`dry-run`]}},r,async()=>{if(r.dryRun){o({command:`cf magic-network-monitoring configs edit`,method:`PATCH`,url:`https://api.cloudflare.com/client/v4/accounts/${await
|
|
9
|
+
Update fields in an existing network monitoring configuration.`).option(`default-sampling`,{type:`number`,description:`Fallback sampling rate of flow messages being sent in packets per second. This should match the packet sampling rate configured on the router.`}).option(`name`,{type:`string`,description:`The account name.`}).option(`router-ips`,{type:`string`,array:!0,description:`The router_ips field`}).option(`warp-devices`,{type:`string`,description:`The warp_devices 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 x={command:`edit`,describe:`Update account configuration fields`,builder:b,handler:async r=>c({command:`magic-network-monitoring configs edit`,classification:{safeFlags:[`dry-run`]}},r,async()=>{if(r.dryRun){o({command:`cf magic-network-monitoring configs edit`,method:`PATCH`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/mnm/config`,pathParams:{},bodyKind:`json`,body:r.body===void 0?d({default_sampling:r[`default-sampling`],name:f(r.name,`name`,`text`),router_ips:r[`router-ips`],warp_devices:u(r[`warp-devices`],`warp-devices`)}):l(r.body)});return}let c=await i(r),p=r.local?e:await n();if(r.accountId=p,r.body){let e=l(r.body);a(await s(`Updating`,async()=>c.magicNetworkMonitoring.configs.edit({...e,account_id:p})),{successLabel:`Updated`});return}let m=d({default_sampling:r[`default-sampling`],name:f(r.name,`name`,`text`),router_ips:r[`router-ips`],warp_devices:u(r[`warp-devices`],`warp-devices`)});a(await s(`Updating`,async()=>c.magicNetworkMonitoring.configs.edit({...m,account_id:p})),{successLabel:`Updated`})})};function S(e){return e.usage(`$0 magic-network-monitoring configs full get
|
|
10
10
|
|
|
11
|
-
Lists default sampling, router IPs, warp devices, and rules for account.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const C={command:`get`,describe:`List rules and account configuration`,builder:S,handler:async r=>c({command:`magic-network-monitoring configs full get`,classification:{safeFlags:[`dry-run`]}},r,async()=>{if(r.dryRun){o({command:`cf magic-network-monitoring configs full get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await
|
|
11
|
+
Lists default sampling, router IPs, warp devices, and rules for account.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const C={command:`get`,describe:`List rules and account configuration`,builder:S,handler:async r=>c({command:`magic-network-monitoring configs full get`,classification:{safeFlags:[`dry-run`]}},r,async()=>{if(r.dryRun){o({command:`cf magic-network-monitoring configs full get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/mnm/config/full`,pathParams:{},bodyKind:`none`});return}let c=await i(r),l=r.local?e:await n();r.accountId=l,a(await s(`Loading`,async()=>c.magicNetworkMonitoring.configs.full.get({account_id:l})),{successLabel:`Loaded`})})},w={command:`full`,describe:`Operations for configs.full`,builder:e=>e.command(C).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function T(e){return e.usage(`$0 magic-network-monitoring configs get
|
|
12
12
|
|
|
13
|
-
Lists default sampling, router IPs and warp devices for account.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const E={command:`get`,describe:`List account configuration`,builder:T,handler:async r=>c({command:`magic-network-monitoring configs get`,classification:{safeFlags:[`dry-run`]}},r,async()=>{if(r.dryRun){o({command:`cf magic-network-monitoring configs get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await
|
|
13
|
+
Lists default sampling, router IPs and warp devices for account.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const E={command:`get`,describe:`List account configuration`,builder:T,handler:async r=>c({command:`magic-network-monitoring configs get`,classification:{safeFlags:[`dry-run`]}},r,async()=>{if(r.dryRun){o({command:`cf magic-network-monitoring configs get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/mnm/config`,pathParams:{},bodyKind:`none`});return}let c=await i(r),l=r.local?e:await n();r.accountId=l,a(await s(`Loading`,async()=>c.magicNetworkMonitoring.configs.get({account_id:l})),{successLabel:`Loaded`})})};function D(e){return e.usage(`$0 magic-network-monitoring configs update
|
|
14
14
|
|
|
15
|
-
Update an existing network monitoring configuration, requires the entire configuration to be updated at once.`).option(`default-sampling`,{type:`number`,description:`Fallback sampling rate of flow messages being sent in packets per second. This should match the packet sampling rate configured on the router.`}).option(`name`,{type:`string`,description:`The account name.`}).option(`router-ips`,{type:`string`,array:!0,description:`The router_ips field`}).option(`warp-devices`,{type:`string`,description:`The warp_devices 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 O={command:`update`,describe:`Update an entire account configuration`,builder:D,handler:async r=>c({command:`magic-network-monitoring configs update`,classification:{safeFlags:[`dry-run`]}},r,async()=>{if(r.dryRun){o({command:`cf magic-network-monitoring configs update`,method:`PUT`,url:`https://api.cloudflare.com/client/v4/accounts/${await
|
|
15
|
+
Update an existing network monitoring configuration, requires the entire configuration to be updated at once.`).option(`default-sampling`,{type:`number`,description:`Fallback sampling rate of flow messages being sent in packets per second. This should match the packet sampling rate configured on the router.`}).option(`name`,{type:`string`,description:`The account name.`}).option(`router-ips`,{type:`string`,array:!0,description:`The router_ips field`}).option(`warp-devices`,{type:`string`,description:`The warp_devices 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 O={command:`update`,describe:`Update an entire account configuration`,builder:D,handler:async r=>c({command:`magic-network-monitoring configs update`,classification:{safeFlags:[`dry-run`]}},r,async()=>{if(r.dryRun){o({command:`cf magic-network-monitoring configs update`,method:`PUT`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/mnm/config`,pathParams:{},bodyKind:`json`,body:r.body===void 0?d({default_sampling:r[`default-sampling`],name:f(r.name,`name`,`text`),router_ips:r[`router-ips`],warp_devices:u(r[`warp-devices`],`warp-devices`)}):l(r.body)});return}let c=await i(r),m=r.local?e:await n();if(r.accountId=m,r.body){let e=l(r.body);a(await s(`Updating`,async()=>c.magicNetworkMonitoring.configs.update({...e,account_id:m})),{successLabel:`Updated`});return}if(r[`default-sampling`]===void 0)throw Error(`--default-sampling is required (or pass --body with this field set).`);r.name===void 0&&(r.name=await p(`name`,`The account name.`));let h=d({default_sampling:r[`default-sampling`],name:f(r.name,`name`,`text`),router_ips:r[`router-ips`],warp_devices:u(r[`warp-devices`],`warp-devices`)});a(await s(`Updating`,async()=>c.magicNetworkMonitoring.configs.update({...h,account_id:m})),{successLabel:`Updated`})})},k={command:`configs`,describe:`Account-level monitoring configuration — sampling rates, thresholds, and notification settings`,builder:e=>e.command(_).command(y).command(x).command(E).command(O).command(w).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function A(e){return e.usage(`$0 magic-network-monitoring rules advertisements edit <rule-id>
|
|
16
16
|
|
|
17
|
-
Update advertisement for rule.`).positional(`rule-id`,{type:`string`,description:`The id of the rule. Must be unique.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const j={command:`edit <rule-id>`,describe:`Update advertisement for rule`,builder:A,handler:async r=>c({command:`magic-network-monitoring rules advertisements edit`,classification:{safeFlags:[`dry-run`]}},r,async()=>{if(r.dryRun){o({command:`cf magic-network-monitoring rules advertisements edit`,method:`PATCH`,url:`https://api.cloudflare.com/client/v4/accounts/${await
|
|
17
|
+
Update advertisement for rule.`).positional(`rule-id`,{type:`string`,description:`The id of the rule. Must be unique.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const j={command:`edit <rule-id>`,describe:`Update advertisement for rule`,builder:A,handler:async r=>c({command:`magic-network-monitoring rules advertisements edit`,classification:{safeFlags:[`dry-run`]}},r,async()=>{if(r.dryRun){o({command:`cf magic-network-monitoring rules advertisements edit`,method:`PATCH`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/mnm/rules/${r[`rule-id`]==null?`<rule-id>`:encodeURIComponent(String(r[`rule-id`]))}/advertisement`,pathParams:{"rule-id":String(r[`rule-id`]??``)},bodyKind:`none`});return}let c=await i(r),l=r.local?e:await n();r.accountId=l,a(await s(`Updating`,async()=>c.magicNetworkMonitoring.rules.advertisements.edit({account_id:l,rule_id:r[`rule-id`]})),{successLabel:`Updated`})})},M={command:`advertisements`,describe:`Operations for rules.advertisements`,builder:e=>e.command(j).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function ee(e){return e.usage(`$0 magic-network-monitoring rules bulk create
|
|
18
18
|
|
|
19
|
-
Create multiple network monitoring rules for account in a single request. Supports up to 100 rules per request. All rules in a single request must be of the same type.`).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 N={command:`create`,describe:`Create rules in bulk`,builder:ee,handler:async u=>c({command:`magic-network-monitoring rules bulk create`,classification:{safeFlags:[`dry-run`]}},u,async()=>{if(u.dryRun){o({command:`cf magic-network-monitoring rules bulk create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${await
|
|
19
|
+
Create multiple network monitoring rules for account in a single request. Supports up to 100 rules per request. All rules in a single request must be of the same type.`).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 N={command:`create`,describe:`Create rules in bulk`,builder:ee,handler:async u=>c({command:`magic-network-monitoring rules bulk create`,classification:{safeFlags:[`dry-run`]}},u,async()=>{if(u.dryRun){o({command:`cf magic-network-monitoring rules bulk create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/mnm/rules/bulk`,pathParams:{},bodyKind:`json`,body:u.body===void 0?void 0:l(u.body)});return}let c=await i(u),d=u.local?e:await n();if(u.accountId=d,u.body){let e=l(u.body);if(Array.isArray(e)&&e.length>100){let t=Math.ceil(e.length/100),n=null;for(let i=0;i<e.length;i+=100){let a=e.slice(i,i+100);n=await s(`Creating: batch ${Math.floor(i/100)+1}/${t}`,async()=>r(c,`POST`,`/accounts/${d}/mnm/rules/bulk`,{body:a}))}a(n,{successLabel:`Created`});return}a(await s(`Creating`,async()=>r(c,`POST`,`/accounts/${d}/mnm/rules/bulk`,{body:e})),{successLabel:`Created`});return}if(u.body===void 0)throw Error(`--body is required for this command. Pass --body '<json>' or --body @path/to/file.json.`)})};function P(e){return e.usage(`$0 magic-network-monitoring rules bulk update
|
|
20
20
|
|
|
21
|
-
Update multiple network monitoring rules for account in a single request. Supports up to 100 rules per request. All rules in a single request must be of the same type.`).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 F={command:`update`,describe:`Update rules in bulk`,builder:P,handler:async u=>c({command:`magic-network-monitoring rules bulk update`,classification:{safeFlags:[`dry-run`]}},u,async()=>{if(u.dryRun){o({command:`cf magic-network-monitoring rules bulk update`,method:`PUT`,url:`https://api.cloudflare.com/client/v4/accounts/${await
|
|
21
|
+
Update multiple network monitoring rules for account in a single request. Supports up to 100 rules per request. All rules in a single request must be of the same type.`).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 F={command:`update`,describe:`Update rules in bulk`,builder:P,handler:async u=>c({command:`magic-network-monitoring rules bulk update`,classification:{safeFlags:[`dry-run`]}},u,async()=>{if(u.dryRun){o({command:`cf magic-network-monitoring rules bulk update`,method:`PUT`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/mnm/rules/bulk`,pathParams:{},bodyKind:`json`,body:u.body===void 0?void 0:l(u.body)});return}let c=await i(u),d=u.local?e:await n();if(u.accountId=d,u.body){let e=l(u.body);if(Array.isArray(e)&&e.length>100){let t=Math.ceil(e.length/100),n=null;for(let i=0;i<e.length;i+=100){let a=e.slice(i,i+100);n=await s(`Updating: batch ${Math.floor(i/100)+1}/${t}`,async()=>r(c,`PUT`,`/accounts/${d}/mnm/rules/bulk`,{body:a}))}a(n,{successLabel:`Updated`});return}a(await s(`Updating`,async()=>r(c,`PUT`,`/accounts/${d}/mnm/rules/bulk`,{body:e})),{successLabel:`Updated`});return}if(u.body===void 0)throw Error(`--body is required for this command. Pass --body '<json>' or --body @path/to/file.json.`)})},I={command:`bulk`,describe:`Operations for rules.bulk`,builder:e=>e.command(N).command(F).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function L(e){return e.usage(`$0 magic-network-monitoring rules create
|
|
22
22
|
|
|
23
|
-
Create network monitoring rules for account. Currently only supports creating a single rule per API request.`).option(`automatic-advertisement`,{type:`boolean`,description:`Toggle on if you would like Cloudflare to automatically advertise the IP Prefixes within the rule via Magic Transit when the rule is triggered. Only available for users of Magic Transit.`}).option(`bandwidth-threshold`,{type:`number`,description:`The number of bits per second for the rule. When this value is exceeded for the set duration, an alert notification is sent. Minimum of 1 and no maximum.`}).option(`duration`,{type:`string`,description:`The amount of time that the rule threshold must be exceeded to send an alert notification. The final value must be equivalent to one of the following 8 values ["1m","5m","10m","15m","20m","30m","45m","60m"].`,choices:[`1m`,`5m`,`10m`,`15m`,`20m`,`30m`,`45m`,`60m`],default:`1m`}).option(`name`,{type:`string`,description:`The name of the rule. Must be unique. Supports characters A-Z, a-z, 0-9, underscore (_), dash (-), period (.), and tilde (~). You can’t have a space in the rule name. Max 256 characters.`}).option(`packet-threshold`,{type:`number`,description:`The number of packets per second for the rule. When this value is exceeded for the set duration, an alert notification is sent. Minimum of 1 and no maximum.`}).option(`prefix-match`,{type:`string`,description:`Prefix match type to be applied for a prefix auto advertisement when using an advanced_ddos rule.`,choices:[`exact`,`subnet`,`supernet`]}).option(`prefixes`,{type:`string`,array:!0,description:`The prefixes field`}).option(`type`,{type:`string`,description:`MNM rule type.`,choices:[`threshold`,`zscore`,`advanced_ddos`]}).option(`zscore-sensitivity`,{type:`string`,description:`Level of sensitivity set for zscore rules.`,choices:[`low`,`medium`,`high`]}).option(`zscore-target`,{type:`string`,description:`Target of the zscore rule analysis.`,choices:[`bits`,`packets`]}).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 R={command:`create`,describe:`Create rules`,builder:L,handler:async r=>c({command:`magic-network-monitoring rules create`,classification:{safeFlags:[`automatic-advertisement`,`duration`,`prefix-match`,`type`,`zscore-sensitivity`,`zscore-target`,`dry-run`]}},r,async()=>{if(r.dryRun){o({command:`cf magic-network-monitoring rules create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${await
|
|
23
|
+
Create network monitoring rules for account. Currently only supports creating a single rule per API request.`).option(`automatic-advertisement`,{type:`boolean`,description:`Toggle on if you would like Cloudflare to automatically advertise the IP Prefixes within the rule via Magic Transit when the rule is triggered. Only available for users of Magic Transit.`}).option(`bandwidth-threshold`,{type:`number`,description:`The number of bits per second for the rule. When this value is exceeded for the set duration, an alert notification is sent. Minimum of 1 and no maximum.`}).option(`duration`,{type:`string`,description:`The amount of time that the rule threshold must be exceeded to send an alert notification. The final value must be equivalent to one of the following 8 values ["1m","5m","10m","15m","20m","30m","45m","60m"].`,choices:[`1m`,`5m`,`10m`,`15m`,`20m`,`30m`,`45m`,`60m`],default:`1m`}).option(`name`,{type:`string`,description:`The name of the rule. Must be unique. Supports characters A-Z, a-z, 0-9, underscore (_), dash (-), period (.), and tilde (~). You can’t have a space in the rule name. Max 256 characters.`}).option(`packet-threshold`,{type:`number`,description:`The number of packets per second for the rule. When this value is exceeded for the set duration, an alert notification is sent. Minimum of 1 and no maximum.`}).option(`prefix-match`,{type:`string`,description:`Prefix match type to be applied for a prefix auto advertisement when using an advanced_ddos rule.`,choices:[`exact`,`subnet`,`supernet`]}).option(`prefixes`,{type:`string`,array:!0,description:`The prefixes field`}).option(`type`,{type:`string`,description:`MNM rule type.`,choices:[`threshold`,`zscore`,`advanced_ddos`]}).option(`zscore-sensitivity`,{type:`string`,description:`Level of sensitivity set for zscore rules.`,choices:[`low`,`medium`,`high`]}).option(`zscore-target`,{type:`string`,description:`Target of the zscore rule analysis.`,choices:[`bits`,`packets`]}).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 R={command:`create`,describe:`Create rules`,builder:L,handler:async r=>c({command:`magic-network-monitoring rules create`,classification:{safeFlags:[`automatic-advertisement`,`duration`,`prefix-match`,`type`,`zscore-sensitivity`,`zscore-target`,`dry-run`]}},r,async()=>{if(r.dryRun){o({command:`cf magic-network-monitoring rules create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/mnm/rules`,pathParams:{},bodyKind:`json`,body:r.body===void 0?d({automatic_advertisement:r[`automatic-advertisement`],bandwidth_threshold:r[`bandwidth-threshold`],duration:f(r.duration,`duration`,`text`),name:f(r.name,`name`,`text`),packet_threshold:r[`packet-threshold`],prefix_match:f(r[`prefix-match`],`prefix-match`,`text`),prefixes:r.prefixes,type:f(r.type,`type`,`text`),zscore_sensitivity:f(r[`zscore-sensitivity`],`zscore-sensitivity`,`text`),zscore_target:f(r[`zscore-target`],`zscore-target`,`text`)}):l(r.body)});return}let c=await i(r),u=r.local?e:await n();if(r.accountId=u,r.body){let e=l(r.body);a(await s(`Creating`,async()=>c.magicNetworkMonitoring.rules.create({body:e,account_id:u})),{successLabel:`Created`});return}if(r[`automatic-advertisement`]===void 0)throw Error(`--automatic-advertisement is required (or pass --body with this field set).`);if(r.name===void 0&&(r.name=await p(`name`,`The name of the rule. Must be unique. Supports characters A-Z, a-z, 0-9, underscore (_), dash (-), period (.), and tilde (~). You can’t have a space in the rule name. Max 256 characters.`)),r.prefixes===void 0)throw Error(`--prefixes is required (or pass --body with this field set).`);r.type===void 0&&(r.type=await m(`type`,`MNM rule type.`,[`threshold`,`zscore`,`advanced_ddos`]));let h=d({automatic_advertisement:r[`automatic-advertisement`],bandwidth_threshold:r[`bandwidth-threshold`],duration:f(r.duration,`duration`,`text`),name:f(r.name,`name`,`text`),packet_threshold:r[`packet-threshold`],prefix_match:f(r[`prefix-match`],`prefix-match`,`text`),prefixes:r.prefixes,type:f(r.type,`type`,`text`),zscore_sensitivity:f(r[`zscore-sensitivity`],`zscore-sensitivity`,`text`),zscore_target:f(r[`zscore-target`],`zscore-target`,`text`)});a(await s(`Creating`,async()=>c.magicNetworkMonitoring.rules.create({body:h,account_id:u})),{successLabel:`Created`})})};function z(e){return e.usage(`$0 magic-network-monitoring rules delete <rule-id>
|
|
24
24
|
|
|
25
|
-
Delete a network monitoring rule for account.`).positional(`rule-id`,{type:`string`,description:`The id of the rule. Must be unique.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`force`,{type:`boolean`,alias:`f`,description:`Skip confirmation (useful in scripts and CI)`,default:!1})}const B={command:`delete <rule-id>`,describe:`Delete rule`,builder:z,handler:async r=>c({command:`magic-network-monitoring rules delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},r,async()=>{if(r.dryRun){o({command:`cf magic-network-monitoring rules delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${await
|
|
25
|
+
Delete a network monitoring rule for account.`).positional(`rule-id`,{type:`string`,description:`The id of the rule. Must be unique.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`force`,{type:`boolean`,alias:`f`,description:`Skip confirmation (useful in scripts and CI)`,default:!1})}const B={command:`delete <rule-id>`,describe:`Delete rule`,builder:z,handler:async r=>c({command:`magic-network-monitoring rules delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},r,async()=>{if(r.dryRun){o({command:`cf magic-network-monitoring rules delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/mnm/rules/${r[`rule-id`]==null?`<rule-id>`:encodeURIComponent(String(r[`rule-id`]))}`,pathParams:{"rule-id":String(r[`rule-id`]??``)},bodyKind:`none`});return}let c=await i(r),l=r.local?e:await n();if(r.accountId=l,!await h({force:!!r.force})){process.stderr.write(`Aborted.
|
|
26
26
|
`);return}a(await s(`Deleting`,async()=>c.magicNetworkMonitoring.rules.delete({account_id:l,rule_id:r[`rule-id`]})),{successLabel:`Deleted`})})};function V(e){return e.usage(`$0 magic-network-monitoring rules edit <rule-id>
|
|
27
27
|
|
|
28
|
-
Update a network monitoring rule for account.`).positional(`rule-id`,{type:`string`,description:`The id of the rule. Must be unique.`,demandOption:!0}).option(`automatic-advertisement`,{type:`boolean`,description:`Toggle on if you would like Cloudflare to automatically advertise the IP Prefixes within the rule via Magic Transit when the rule is triggered. Only available for users of Magic Transit.`}).option(`bandwidth-threshold`,{type:`number`,description:`The number of bits per second for the rule. When this value is exceeded for the set duration, an alert notification is sent. Minimum of 1 and no maximum.`}).option(`duration`,{type:`string`,description:`The amount of time that the rule threshold must be exceeded to send an alert notification. The final value must be equivalent to one of the following 8 values ["1m","5m","10m","15m","20m","30m","45m","60m"].`,choices:[`1m`,`5m`,`10m`,`15m`,`20m`,`30m`,`45m`,`60m`]}).option(`name`,{type:`string`,description:`The name of the rule. Must be unique. Supports characters A-Z, a-z, 0-9, underscore (_), dash (-), period (.), and tilde (~). You can’t have a space in the rule name. Max 256 characters.`}).option(`packet-threshold`,{type:`number`,description:`The number of packets per second for the rule. When this value is exceeded for the set duration, an alert notification is sent. Minimum of 1 and no maximum.`}).option(`prefix-match`,{type:`string`,description:`Prefix match type to be applied for a prefix auto advertisement when using an advanced_ddos rule.`,choices:[`exact`,`subnet`,`supernet`]}).option(`prefixes`,{type:`string`,array:!0,description:`The prefixes field`}).option(`type`,{type:`string`,description:`MNM rule type.`,choices:[`threshold`,`zscore`,`advanced_ddos`]}).option(`zscore-sensitivity`,{type:`string`,description:`Level of sensitivity set for zscore rules.`,choices:[`low`,`medium`,`high`]}).option(`zscore-target`,{type:`string`,description:`Target of the zscore rule analysis.`,choices:[`bits`,`packets`]}).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:`edit <rule-id>`,describe:`Update rule`,builder:V,handler:async r=>c({command:`magic-network-monitoring rules edit`,classification:{safeFlags:[`automatic-advertisement`,`duration`,`prefix-match`,`type`,`zscore-sensitivity`,`zscore-target`,`dry-run`]}},r,async()=>{if(r.dryRun){o({command:`cf magic-network-monitoring rules edit`,method:`PATCH`,url:`https://api.cloudflare.com/client/v4/accounts/${await
|
|
28
|
+
Update a network monitoring rule for account.`).positional(`rule-id`,{type:`string`,description:`The id of the rule. Must be unique.`,demandOption:!0}).option(`automatic-advertisement`,{type:`boolean`,description:`Toggle on if you would like Cloudflare to automatically advertise the IP Prefixes within the rule via Magic Transit when the rule is triggered. Only available for users of Magic Transit.`}).option(`bandwidth-threshold`,{type:`number`,description:`The number of bits per second for the rule. When this value is exceeded for the set duration, an alert notification is sent. Minimum of 1 and no maximum.`}).option(`duration`,{type:`string`,description:`The amount of time that the rule threshold must be exceeded to send an alert notification. The final value must be equivalent to one of the following 8 values ["1m","5m","10m","15m","20m","30m","45m","60m"].`,choices:[`1m`,`5m`,`10m`,`15m`,`20m`,`30m`,`45m`,`60m`]}).option(`name`,{type:`string`,description:`The name of the rule. Must be unique. Supports characters A-Z, a-z, 0-9, underscore (_), dash (-), period (.), and tilde (~). You can’t have a space in the rule name. Max 256 characters.`}).option(`packet-threshold`,{type:`number`,description:`The number of packets per second for the rule. When this value is exceeded for the set duration, an alert notification is sent. Minimum of 1 and no maximum.`}).option(`prefix-match`,{type:`string`,description:`Prefix match type to be applied for a prefix auto advertisement when using an advanced_ddos rule.`,choices:[`exact`,`subnet`,`supernet`]}).option(`prefixes`,{type:`string`,array:!0,description:`The prefixes field`}).option(`type`,{type:`string`,description:`MNM rule type.`,choices:[`threshold`,`zscore`,`advanced_ddos`]}).option(`zscore-sensitivity`,{type:`string`,description:`Level of sensitivity set for zscore rules.`,choices:[`low`,`medium`,`high`]}).option(`zscore-target`,{type:`string`,description:`Target of the zscore rule analysis.`,choices:[`bits`,`packets`]}).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:`edit <rule-id>`,describe:`Update rule`,builder:V,handler:async r=>c({command:`magic-network-monitoring rules edit`,classification:{safeFlags:[`automatic-advertisement`,`duration`,`prefix-match`,`type`,`zscore-sensitivity`,`zscore-target`,`dry-run`]}},r,async()=>{if(r.dryRun){o({command:`cf magic-network-monitoring rules edit`,method:`PATCH`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/mnm/rules/${r[`rule-id`]==null?`<rule-id>`:encodeURIComponent(String(r[`rule-id`]))}`,pathParams:{"rule-id":String(r[`rule-id`]??``)},bodyKind:`json`,body:r.body===void 0?d({automatic_advertisement:r[`automatic-advertisement`],bandwidth_threshold:r[`bandwidth-threshold`],duration:f(r.duration,`duration`,`text`),name:f(r.name,`name`,`text`),packet_threshold:r[`packet-threshold`],prefix_match:f(r[`prefix-match`],`prefix-match`,`text`),prefixes:r.prefixes,type:f(r.type,`type`,`text`),zscore_sensitivity:f(r[`zscore-sensitivity`],`zscore-sensitivity`,`text`),zscore_target:f(r[`zscore-target`],`zscore-target`,`text`)}):l(r.body)});return}let c=await i(r),u=r.local?e:await n();if(r.accountId=u,r.body){let e=l(r.body);a(await s(`Updating`,async()=>c.magicNetworkMonitoring.rules.edit({body:e,account_id:u,rule_id:r[`rule-id`]})),{successLabel:`Updated`});return}if(r[`automatic-advertisement`]===void 0)throw Error(`--automatic-advertisement is required (or pass --body with this field set).`);if(r.name===void 0&&(r.name=await p(`name`,`The name of the rule. Must be unique. Supports characters A-Z, a-z, 0-9, underscore (_), dash (-), period (.), and tilde (~). You can’t have a space in the rule name. Max 256 characters.`)),r.prefixes===void 0)throw Error(`--prefixes is required (or pass --body with this field set).`);r.type===void 0&&(r.type=await m(`type`,`MNM rule type.`,[`threshold`,`zscore`,`advanced_ddos`]));let h=d({automatic_advertisement:r[`automatic-advertisement`],bandwidth_threshold:r[`bandwidth-threshold`],duration:f(r.duration,`duration`,`text`),name:f(r.name,`name`,`text`),packet_threshold:r[`packet-threshold`],prefix_match:f(r[`prefix-match`],`prefix-match`,`text`),prefixes:r.prefixes,type:f(r.type,`type`,`text`),zscore_sensitivity:f(r[`zscore-sensitivity`],`zscore-sensitivity`,`text`),zscore_target:f(r[`zscore-target`],`zscore-target`,`text`)});a(await s(`Updating`,async()=>c.magicNetworkMonitoring.rules.edit({body:h,account_id:u,rule_id:r[`rule-id`]})),{successLabel:`Updated`})})};function U(e){return e.usage(`$0 magic-network-monitoring rules get <rule-id>
|
|
29
29
|
|
|
30
|
-
List a single network monitoring rule for account.`).positional(`rule-id`,{type:`string`,description:`The id of the rule. Must be unique.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const W={command:`get <rule-id>`,describe:`Get rule`,builder:U,handler:async r=>c({command:`magic-network-monitoring rules get`,classification:{safeFlags:[`dry-run`]}},r,async()=>{if(r.dryRun){o({command:`cf magic-network-monitoring rules get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await
|
|
30
|
+
List a single network monitoring rule for account.`).positional(`rule-id`,{type:`string`,description:`The id of the rule. Must be unique.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const W={command:`get <rule-id>`,describe:`Get rule`,builder:U,handler:async r=>c({command:`magic-network-monitoring rules get`,classification:{safeFlags:[`dry-run`]}},r,async()=>{if(r.dryRun){o({command:`cf magic-network-monitoring rules get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/mnm/rules/${r[`rule-id`]==null?`<rule-id>`:encodeURIComponent(String(r[`rule-id`]))}`,pathParams:{"rule-id":String(r[`rule-id`]??``)},bodyKind:`none`});return}let c=await i(r),l=r.local?e:await n();r.accountId=l,a(await s(`Loading`,async()=>c.magicNetworkMonitoring.rules.get({account_id:l,rule_id:r[`rule-id`]})),{successLabel:`Loaded`})})};function G(e){return e.usage(`$0 magic-network-monitoring rules list
|
|
31
31
|
|
|
32
|
-
Lists network monitoring rules for account.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const K={command:`list`,describe:`List rules`,builder:G,handler:async r=>c({command:`magic-network-monitoring rules list`,classification:{safeFlags:[`dry-run`]}},r,async()=>{if(r.dryRun){o({command:`cf magic-network-monitoring rules list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await
|
|
32
|
+
Lists network monitoring rules for account.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const K={command:`list`,describe:`List rules`,builder:G,handler:async r=>c({command:`magic-network-monitoring rules list`,classification:{safeFlags:[`dry-run`]}},r,async()=>{if(r.dryRun){o({command:`cf magic-network-monitoring rules list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/mnm/rules`,pathParams:{},bodyKind:`none`});return}let c=await i(r),l=r.local?e:await n();r.accountId=l,a(await s(`Loading`,async()=>c.magicNetworkMonitoring.rules.list({account_id:l})),{successLabel:`Loaded`})})};function q(e){return e.usage(`$0 magic-network-monitoring rules update
|
|
33
33
|
|
|
34
|
-
Update network monitoring rules for account.`).option(`automatic-advertisement`,{type:`boolean`,description:`Toggle on if you would like Cloudflare to automatically advertise the IP Prefixes within the rule via Magic Transit when the rule is triggered. Only available for users of Magic Transit.`}).option(`bandwidth-threshold`,{type:`number`,description:`The number of bits per second for the rule. When this value is exceeded for the set duration, an alert notification is sent. Minimum of 1 and no maximum.`}).option(`duration`,{type:`string`,description:`The amount of time that the rule threshold must be exceeded to send an alert notification. The final value must be equivalent to one of the following 8 values ["1m","5m","10m","15m","20m","30m","45m","60m"].`,choices:[`1m`,`5m`,`10m`,`15m`,`20m`,`30m`,`45m`,`60m`]}).option(`name`,{type:`string`,description:`The name of the rule. Must be unique. Supports characters A-Z, a-z, 0-9, underscore (_), dash (-), period (.), and tilde (~). You can’t have a space in the rule name. Max 256 characters.`}).option(`packet-threshold`,{type:`number`,description:`The number of packets per second for the rule. When this value is exceeded for the set duration, an alert notification is sent. Minimum of 1 and no maximum.`}).option(`prefix-match`,{type:`string`,description:`Prefix match type to be applied for a prefix auto advertisement when using an advanced_ddos rule.`,choices:[`exact`,`subnet`,`supernet`]}).option(`prefixes`,{type:`string`,array:!0,description:`The prefixes field`}).option(`type`,{type:`string`,description:`MNM rule type.`,choices:[`threshold`,`zscore`,`advanced_ddos`]}).option(`zscore-sensitivity`,{type:`string`,description:`Level of sensitivity set for zscore rules.`,choices:[`low`,`medium`,`high`]}).option(`zscore-target`,{type:`string`,description:`Target of the zscore rule analysis.`,choices:[`bits`,`packets`]}).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 J={command:`update`,describe:`Update rules`,builder:q,handler:async r=>c({command:`magic-network-monitoring rules update`,classification:{safeFlags:[`automatic-advertisement`,`duration`,`prefix-match`,`type`,`zscore-sensitivity`,`zscore-target`,`dry-run`]}},r,async()=>{if(r.dryRun){o({command:`cf magic-network-monitoring rules update`,method:`PUT`,url:`https://api.cloudflare.com/client/v4/accounts/${await
|
|
34
|
+
Update network monitoring rules for account.`).option(`automatic-advertisement`,{type:`boolean`,description:`Toggle on if you would like Cloudflare to automatically advertise the IP Prefixes within the rule via Magic Transit when the rule is triggered. Only available for users of Magic Transit.`}).option(`bandwidth-threshold`,{type:`number`,description:`The number of bits per second for the rule. When this value is exceeded for the set duration, an alert notification is sent. Minimum of 1 and no maximum.`}).option(`duration`,{type:`string`,description:`The amount of time that the rule threshold must be exceeded to send an alert notification. The final value must be equivalent to one of the following 8 values ["1m","5m","10m","15m","20m","30m","45m","60m"].`,choices:[`1m`,`5m`,`10m`,`15m`,`20m`,`30m`,`45m`,`60m`]}).option(`name`,{type:`string`,description:`The name of the rule. Must be unique. Supports characters A-Z, a-z, 0-9, underscore (_), dash (-), period (.), and tilde (~). You can’t have a space in the rule name. Max 256 characters.`}).option(`packet-threshold`,{type:`number`,description:`The number of packets per second for the rule. When this value is exceeded for the set duration, an alert notification is sent. Minimum of 1 and no maximum.`}).option(`prefix-match`,{type:`string`,description:`Prefix match type to be applied for a prefix auto advertisement when using an advanced_ddos rule.`,choices:[`exact`,`subnet`,`supernet`]}).option(`prefixes`,{type:`string`,array:!0,description:`The prefixes field`}).option(`type`,{type:`string`,description:`MNM rule type.`,choices:[`threshold`,`zscore`,`advanced_ddos`]}).option(`zscore-sensitivity`,{type:`string`,description:`Level of sensitivity set for zscore rules.`,choices:[`low`,`medium`,`high`]}).option(`zscore-target`,{type:`string`,description:`Target of the zscore rule analysis.`,choices:[`bits`,`packets`]}).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 J={command:`update`,describe:`Update rules`,builder:q,handler:async r=>c({command:`magic-network-monitoring rules update`,classification:{safeFlags:[`automatic-advertisement`,`duration`,`prefix-match`,`type`,`zscore-sensitivity`,`zscore-target`,`dry-run`]}},r,async()=>{if(r.dryRun){o({command:`cf magic-network-monitoring rules update`,method:`PUT`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/mnm/rules`,pathParams:{},bodyKind:`json`,body:r.body===void 0?d({automatic_advertisement:r[`automatic-advertisement`],bandwidth_threshold:r[`bandwidth-threshold`],duration:f(r.duration,`duration`,`text`),name:f(r.name,`name`,`text`),packet_threshold:r[`packet-threshold`],prefix_match:f(r[`prefix-match`],`prefix-match`,`text`),prefixes:r.prefixes,type:f(r.type,`type`,`text`),zscore_sensitivity:f(r[`zscore-sensitivity`],`zscore-sensitivity`,`text`),zscore_target:f(r[`zscore-target`],`zscore-target`,`text`)}):l(r.body)});return}let c=await i(r),u=r.local?e:await n();if(r.accountId=u,r.body){let e=l(r.body);a(await s(`Updating`,async()=>c.magicNetworkMonitoring.rules.update({body:e,account_id:u})),{successLabel:`Updated`});return}if(r[`automatic-advertisement`]===void 0)throw Error(`--automatic-advertisement is required (or pass --body with this field set).`);if(r.name===void 0&&(r.name=await p(`name`,`The name of the rule. Must be unique. Supports characters A-Z, a-z, 0-9, underscore (_), dash (-), period (.), and tilde (~). You can’t have a space in the rule name. Max 256 characters.`)),r.prefixes===void 0)throw Error(`--prefixes is required (or pass --body with this field set).`);r.type===void 0&&(r.type=await m(`type`,`MNM rule type.`,[`threshold`,`zscore`,`advanced_ddos`]));let h=d({automatic_advertisement:r[`automatic-advertisement`],bandwidth_threshold:r[`bandwidth-threshold`],duration:f(r.duration,`duration`,`text`),name:f(r.name,`name`,`text`),packet_threshold:r[`packet-threshold`],prefix_match:f(r[`prefix-match`],`prefix-match`,`text`),prefixes:r.prefixes,type:f(r.type,`type`,`text`),zscore_sensitivity:f(r[`zscore-sensitivity`],`zscore-sensitivity`,`text`),zscore_target:f(r[`zscore-target`],`zscore-target`,`text`)});a(await s(`Updating`,async()=>c.magicNetworkMonitoring.rules.update({body:h,account_id:u})),{successLabel:`Updated`})})},Y={command:`rules`,describe:`Monitoring rules that define traffic thresholds and trigger alerts or prefix advertisements`,builder:e=>e.command(R).command(B).command(H).command(W).command(K).command(J).command(M).command(I).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function X(e){return e.usage(`$0 magic-network-monitoring vpc-flows tokens create
|
|
35
35
|
|
|
36
|
-
Generate authentication token for VPC flow logs export.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const Z={command:`create`,describe:`Generate authentication token for VPC flow logs export.`,builder:X,handler:async r=>c({command:`magic-network-monitoring vpc-flows tokens create`,classification:{safeFlags:[`dry-run`]}},r,async()=>{if(r.dryRun){o({command:`cf magic-network-monitoring vpc-flows tokens create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${await
|
|
36
|
+
Generate authentication token for VPC flow logs export.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const Z={command:`create`,describe:`Generate authentication token for VPC flow logs export.`,builder:X,handler:async r=>c({command:`magic-network-monitoring vpc-flows tokens create`,classification:{safeFlags:[`dry-run`]}},r,async()=>{if(r.dryRun){o({command:`cf magic-network-monitoring vpc-flows tokens create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/mnm/vpc-flows/token`,pathParams:{},bodyKind:`none`});return}let c=await i(r),l=r.local?e:await n();r.accountId=l,a(await s(`Creating`,async()=>c.magicNetworkMonitoring.vpcFlows.tokens.create({account_id:l})),{successLabel:`Created`})})},Q={command:`tokens`,describe:`Operations for vpc-flows.tokens`,builder:e=>e.command(Z).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},$={command:`vpc-flows`,describe:`Ingest VPC flow logs from cloud providers for network visibility and anomaly detection`,builder:e=>e.command(Q).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},te={command:`magic-network-monitoring`,describe:`Flow-based network traffic monitoring with configurable alerting rules and VPC flow ingestion`,builder:e=>e.command(k).command(Y).command($).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};export{te as default};
|