cf 1.0.0-beta.23 → 1.0.0-beta.25
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 +547 -150
- package/dist/_meta/hand-written-commands.json +46 -2
- package/dist/_meta/schemas.json +277 -2
- package/dist/{abuse-reports-SaxhQy6n.mjs → abuse-reports-BIS9MZn7.mjs} +3 -3
- package/dist/{access-BI_7K9ye.mjs → access-__sFDSFL.mjs} +1 -1
- package/dist/{accounts-yCqYkAyG.mjs → accounts-CmggwRjh.mjs} +36 -34
- package/dist/{acm-Cyvj0TLt.mjs → acm-AAhRZUAU.mjs} +1 -1
- package/dist/{addressing-CPjDXCGE.mjs → addressing-DVeJNPZc.mjs} +1 -1
- package/dist/{agent-memory-EoP2Uwo7.mjs → agent-memory-DQhWO6sc.mjs} +1 -1
- package/dist/{ai-DU5T7Rw7.mjs → ai-CULO9sno.mjs} +3 -3
- package/dist/{ai-audit-DVT8qGLn.mjs → ai-audit-udn4HF34.mjs} +1 -1
- package/dist/{ai-gateway-BYtptiIM.mjs → ai-gateway-Bm2MMdec.mjs} +3 -3
- package/dist/{ai-search-CJJ5XZTd.mjs → ai-search-GRN_gXgU.mjs} +1 -1
- package/dist/{ai-security-CidIWQ2m.mjs → ai-security-DXy9ht-9.mjs} +2 -2
- package/dist/{alerting-CVatzxaS.mjs → alerting-CssnaN2i.mjs} +1 -1
- package/dist/{analytics-BWJAOVxo.mjs → analytics-BVo7Ax0w.mjs} +1 -1
- package/dist/{analytics-engine-CZgKAEo0.mjs → analytics-engine-BBd0Bydx.mjs} +1 -1
- package/dist/{api-security-CAeFfkOp.mjs → api-security-C-D9OKtH.mjs} +3 -3
- package/dist/{argo-YKMl_X-Q.mjs → argo-DSziwzvA.mjs} +1 -1
- package/dist/{artifacts-CrWK_jdk.mjs → artifacts-nVMgn4dn.mjs} +1 -1
- package/dist/{audit-logs-C7Z4o6lL.mjs → audit-logs-DIZ5oA_y.mjs} +1 -1
- package/dist/auth-Bls_1yRW.mjs +2 -0
- package/dist/{auth-DkPhAgZv.mjs → auth-CB9wjyad.mjs} +1 -1
- package/dist/auth-JsvLULHA.mjs +7 -0
- package/dist/{auth-token-C-ushV4K.mjs → auth-token-BAgw7kYP.mjs} +1 -1
- package/dist/{autoconfig-CwWsgTP2.mjs → autoconfig-CajkMb3B.mjs} +19 -11
- package/dist/{basin-catalog-Df0BLUfb.mjs → basin-catalog-BRvGeKm3.mjs} +9 -9
- package/dist/{billing-C7qD2cBJ.mjs → billing-BhPoqyKC.mjs} +1 -1
- package/dist/{blocks-hVx18MUM.mjs → blocks-D2tE8dp2.mjs} +1 -1
- package/dist/{bot-management-Dv2tluEZ.mjs → bot-management-BfjX5DuH.mjs} +1 -1
- package/dist/{botnet-feed-DrIY4gpG.mjs → botnet-feed-VOL5P4s3.mjs} +1 -1
- package/dist/{brand-protection-of9uwStG.mjs → brand-protection-CSVHQ9Pt.mjs} +2 -2
- package/dist/{browser-run-CbMV-Pf5.mjs → browser-run-cxOd2cZE.mjs} +1 -1
- package/dist/{build-Yf5bvUk2.mjs → build-BfkzV5_c.mjs} +1 -1
- package/dist/build-DCdLWwOg.mjs +2 -0
- package/dist/{builds-DQrlz2-K.mjs → builds-y5BQCJ81.mjs} +1 -1
- package/dist/{cache-suoMuQMh.mjs → cache-Bvr988Hj.mjs} +1 -1
- package/dist/cf-DgLg6Hop.mjs +18 -0
- package/dist/{chunk-3PJ54H4K-C8sxQzhB.mjs → chunk-3PJ54H4K-CbRAWQWI.mjs} +1 -1
- package/dist/{chunk-DSGVRFIS-CP2xC0bc.mjs → chunk-DSGVRFIS-Dq2PrGsi.mjs} +1 -1
- package/dist/{cli-BjAkPFKt.mjs → cli-BTxJfFus.mjs} +1 -1
- package/dist/{client-side-security-lh4tvRH8.mjs → client-side-security-CFmO0uz9.mjs} +1 -1
- package/dist/{cloud-connector-C65g5ddh.mjs → cloud-connector-CtwPdFBa.mjs} +1 -1
- package/dist/{cloudflared-FEg1GxHT.mjs → cloudflared-DPkNN1Qv.mjs} +1 -1
- package/dist/{cloudforce-one-C2K8Sbji.mjs → cloudforce-one-DHrMaxnU.mjs} +59 -59
- package/dist/{command-BfoLlrr1.mjs → command-6_Ms3TZv.mjs} +1 -1
- package/dist/{command-DrdxR1tJ.mjs → command-BWyx7dNO.mjs} +1 -1
- package/dist/{command-DCJgoFz9.mjs → command-BXCk1OsI.mjs} +1 -1
- package/dist/{command-BqEoltQG.mjs → command-CCDzJjIB.mjs} +1 -1
- package/dist/{command-CKXrXY0q.mjs → command-CDYTsmxe.mjs} +1 -1
- package/dist/{command-CBQp3Znu.mjs → command-CXwKBbj9.mjs} +1 -1
- package/dist/{command-DRBtP4R8.mjs → command-ClneauMx.mjs} +1 -1
- package/dist/{command-Cby3gjqh.mjs → command-CmK8-DJ9.mjs} +1 -1
- package/dist/{command-BaIY4UuC.mjs → command-Ct3tf-P5.mjs} +1 -1
- package/dist/{command-CszTdUQV.mjs → command-DPOjEs1B.mjs} +1 -1
- package/dist/{command-D3E7d8E7.mjs → command-DqWBPiew.mjs} +1 -1
- package/dist/{command-C2ZXXZI4.mjs → command-YFWLEK8W.mjs} +1 -1
- package/dist/{command-BHJu931_.mjs → command-ckixJeTm.mjs} +1 -1
- package/dist/{command-C5465_vZ.mjs → command-lJJ7sEZe.mjs} +1 -1
- package/dist/{completions-DIIrktem.mjs → completions-B1rYgw_a.mjs} +1 -1
- package/dist/{connector-interrupts-B4xZTu7K.mjs → connector-interrupts-DecTdK6X.mjs} +1 -1
- package/dist/{connector-telemetry-events-DtTO6KCB.mjs → connector-telemetry-events-wePxPACj.mjs} +1 -1
- package/dist/{connector-telemetry-snapshots-BS1Cq8v_.mjs → connector-telemetry-snapshots-D8sXR1qx.mjs} +1 -1
- package/dist/{connectors-CUywNbTu.mjs → connectors-C-6RQ_Q1.mjs} +1 -1
- package/dist/{containers-DCL31jYE.mjs → containers-C_byVTZF.mjs} +193 -193
- package/dist/{containers-CQxEk5xO.mjs → containers-D65Gpj9Q.mjs} +2 -2
- package/dist/{content-scan-6BGlT-em.mjs → content-scan-DbIDQ-Yu.mjs} +1 -1
- package/dist/{context-DoGlohS-.mjs → context-DCon1tRZ.mjs} +1 -1
- package/dist/{cps-BoQ1alPM.mjs → cps-DGLmzCzp.mjs} +1 -1
- package/dist/{csam-scanner-OFnvPsqP.mjs → csam-scanner-R7Ih-Dnw.mjs} +1 -1
- package/dist/{custom-csrs-BT-kjyPt.mjs → custom-csrs-D0RnVoJ7.mjs} +1 -1
- package/dist/{custom-hostnames-ItOUZwKc.mjs → custom-hostnames-BFWR-tR_.mjs} +1 -1
- package/dist/{custom-nameservers-BZ1SzRQI.mjs → custom-nameservers-Dn_9Ssti.mjs} +1 -1
- package/dist/{custom-pages-rIzNbxrh.mjs → custom-pages-HqIQcb77.mjs} +1 -1
- package/dist/{d1-DtEeX2ua.mjs → d1-CopIY9RT.mjs} +2 -2
- package/dist/{delegate-3IgxBeFH.mjs → delegate-CTj0dYET.mjs} +1 -1
- package/dist/delegate.mjs +1 -1
- package/dist/{deploy-CvIiOhGj.mjs → deploy-BVTA83rN.mjs} +1 -1
- package/dist/{deploy-context-CCahKKFs.mjs → deploy-context-CO8ZSRwx.mjs} +1 -1
- package/dist/{deploy-input-BusFZFqu.mjs → deploy-input-PhKRxa_2.mjs} +1 -1
- package/dist/dev-CM5GLHNn.mjs +4 -0
- package/dist/{diagnostics-Di6xJHuC.mjs → diagnostics-DPjl0aCm.mjs} +1 -1
- package/dist/{dist-D5YYi2LO.mjs → dist-ataVE8ob.mjs} +3 -3
- package/dist/{dls-CAlQiQv4.mjs → dls-BLTIVlbh.mjs} +1 -1
- package/dist/{dns-BzxLC4D1.mjs → dns-DkqVq-nB.mjs} +60 -58
- package/dist/{dns-firewall-CHVL95X_.mjs → dns-firewall-D1bb1byu.mjs} +1 -1
- package/dist/{docs-SWvG8lKe.mjs → docs-tOv_OllI.mjs} +1 -1
- package/dist/{durable-objects-DZl4seSi.mjs → durable-objects-OJhns_to.mjs} +1 -1
- package/dist/{email-auth-hHJQmtYR.mjs → email-auth-BbsIBNlu.mjs} +1 -1
- package/dist/{email-domains-BBFPOLQx.mjs → email-domains-pWZi1M4q.mjs} +1 -1
- package/dist/{email-routing-Cimk4lg2.mjs → email-routing-DnitWE1A.mjs} +1 -1
- package/dist/{email-security-DiNFIpmg.mjs → email-security-DiWtb7cx.mjs} +2 -2
- package/dist/{email-sending-yIqoikwn.mjs → email-sending-DuDjXykw.mjs} +1 -1
- package/dist/{errors-d_Ld5w3d.mjs → errors-CCFmptqJ.mjs} +1 -1
- package/dist/{field-extractors-CiuZnMX2.mjs → field-extractors-DNNnkBZH.mjs} +1 -1
- package/dist/{firewall-B8QK0M1Y.mjs → firewall-C7eZRNVF.mjs} +22 -16
- package/dist/{flagship-Dh0-PZgv.mjs → flagship-BczjsrJ5.mjs} +1 -1
- package/dist/{fraud-DDebasT8.mjs → fraud-wE0UM2SM.mjs} +1 -1
- package/dist/{google-tag-gateway-BPrh4DbT.mjs → google-tag-gateway-6mvtxcJK.mjs} +1 -1
- package/dist/{healthchecks-CF8SJ-wN.mjs → healthchecks-aIB3DebS.mjs} +1 -1
- package/dist/{hyperdrive-B9uPSMiW.mjs → hyperdrive-DHRP8SJS.mjs} +1 -1
- package/dist/{iam-g9EBjHMK.mjs → iam-6t7-ScrS.mjs} +1 -1
- package/dist/{images-BqSlZF88.mjs → images-CLgvxd0t.mjs} +1 -1
- package/dist/index.mjs +1 -1
- package/dist/{init-CIfT7Qx1.mjs → init-B_DBTMXU.mjs} +1 -1
- package/dist/{intel-D8nT11Y4.mjs → intel-jnoIVlYG.mjs} +2 -2
- package/dist/{interactive-DOWEcR6_.mjs → interactive-1g0dnrA8.mjs} +1 -1
- package/dist/{internal-C7zUQ4fS.mjs → internal-Ba3b-Z8J.mjs} +1 -1
- package/dist/{ips-DwrIBecV.mjs → ips-CQ4gFfex.mjs} +1 -1
- package/dist/{k2-7r63P37v.mjs → k2-Bsm6rzNX.mjs} +1 -1
- package/dist/{kv-BQSq0aQ5.mjs → kv-DQfnNE-w.mjs} +1 -1
- package/dist/{lazy-command-JgUZQW-c.mjs → lazy-command-DjGzxiUT.mjs} +1 -1
- package/dist/{leaked-credential-checks-Bu2NYq31.mjs → leaked-credential-checks-CaqjG3Oz.mjs} +1 -1
- package/dist/list-4MfEFwJN.mjs +2 -0
- package/dist/list-ByCv9-Fl.mjs +2 -0
- package/dist/{live-ZSukf_dI.mjs → live-BfobGv8W.mjs} +1 -1
- package/dist/{load-balancers-CthmhsmC.mjs → load-balancers-BzSCp2Uh.mjs} +1 -1
- package/dist/{local-Y4rIAAtA.mjs → local-BNmz58v4.mjs} +1 -1
- package/dist/local-ChR3YIMU.mjs +2 -0
- package/dist/local-runtime-DvH92pV8.mjs +2 -0
- package/dist/{login-lXb4Sqs9.mjs → login-B9wYab6S.mjs} +2 -2
- package/dist/login-ierSCYE6.mjs +2 -0
- package/dist/{logpush-Mw2VklWj.mjs → logpush-DgfiSd1b.mjs} +2 -2
- package/dist/{logs-DQrNjo77.mjs → logs-Dan7xU-k.mjs} +1 -1
- package/dist/{magic-cloud-networking-D8s1hN3K.mjs → magic-cloud-networking-DP8fWC4a.mjs} +3 -3
- package/dist/{magic-network-monitoring-f0ccLJlt.mjs → magic-network-monitoring-TAjt04vN.mjs} +1 -1
- package/dist/{magic-transit-7WpZJc0a.mjs → magic-transit-BSuLHnQ5.mjs} +1 -1
- package/dist/{managed-defense-QLYmbNgC.mjs → managed-defense-CTnIZLg4.mjs} +1 -1
- package/dist/{managed-transforms-CkaQn7tC.mjs → managed-transforms-BETvesjp.mjs} +1 -1
- package/dist/{mcp-Di1X9Amj.mjs → mcp-DhjMGaKc.mjs} +1 -1
- package/dist/{mesh-CkvqQb6B.mjs → mesh-jxLLG3t4.mjs} +1 -1
- package/dist/{migrate-KOhIz9fX.mjs → migrate-Bkhk38nJ.mjs} +1 -1
- package/dist/{monetization-C9c2OCag.mjs → monetization-BqDgHlPv.mjs} +1 -1
- package/dist/{network-0PlPsgfJ.mjs → network-D6BRpgOv.mjs} +2 -2
- package/dist/{network-interconnects-BeiuYp7F.mjs → network-interconnects-tP41GbnL.mjs} +1 -1
- package/dist/{o11y-Ys4wGQJ8.mjs → o11y-h4cIC_1T.mjs} +1 -1
- package/dist/{oauth-BX5dMp7e.mjs → oauth-CuM12iNb.mjs} +1 -1
- package/dist/{oauth-clients-DhVG_Upv.mjs → oauth-clients-B0voUiXM.mjs} +1 -1
- package/dist/{oauth-BL039mqa.mjs → oauth-nDH3nTCa.mjs} +2 -2
- package/dist/oauth-scopes-Bhns1ZHW.mjs +4 -0
- package/dist/{organization-8ateLjgl.mjs → organization-Cy55HoRR.mjs} +4 -4
- package/dist/organizations-7Q3d9vcW.mjs +4 -0
- package/dist/{origin-post-quantum-encryption-D9qT0WUV.mjs → origin-post-quantum-encryption-XBMPCdSL.mjs} +1 -1
- package/dist/package-DK3JX4I3.mjs +2 -0
- package/dist/{page-rules-DlOky6Zl.mjs → page-rules-BlT5xlhH.mjs} +1 -1
- package/dist/{pages-BcqYjzyx.mjs → pages-CIbL62L2.mjs} +3 -3
- package/dist/{pay-per-crawl-DtYmYcHH.mjs → pay-per-crawl-BzsBqo_m.mjs} +1 -1
- package/dist/{pay-per-use-DOUCWPNy.mjs → pay-per-use-DtejLYJ8.mjs} +1 -1
- package/dist/{pipelines-8yHQduBt.mjs → pipelines-LjLb8jq6.mjs} +1 -1
- package/dist/{precursor-CX7gjIRG.mjs → precursor-BKp5_Ag4.mjs} +1 -1
- package/dist/{previews-WL-CudUP.mjs → previews-zRYO9uO9.mjs} +1 -1
- package/dist/{progress-D2_AF54c.mjs → progress-_Jux05O5.mjs} +1 -1
- package/dist/{prompt-BBR19lgj.mjs → prompt-SNVLBS1b.mjs} +1 -1
- package/dist/{queues-BDNnjJ5M.mjs → queues-Ci4rGGC4.mjs} +1 -1
- package/dist/{r2-B9b18zom.mjs → r2-qm2hgS43.mjs} +1 -1
- package/dist/radar-C_ydbJe_.mjs +300 -0
- package/dist/{raw-fetch-BFcMz5hY.mjs → raw-fetch-D3ydyJYW.mjs} +1 -1
- package/dist/{ready-C8zZ63yB.mjs → ready-hk-_B8z3.mjs} +1 -1
- package/dist/{realtime-C8z8iTs4.mjs → realtime-BAvjYmYw.mjs} +2 -2
- package/dist/{registrar-BTMp4ivm.mjs → registrar-DD7WZaP2.mjs} +10 -10
- package/dist/{registrar-sandbox-C2PG_Alv.mjs → registrar-sandbox-DbxloH5s.mjs} +2 -2
- package/dist/{reporting-BQY6_uXf.mjs → reporting-CRVg3J1C.mjs} +1 -1
- package/dist/{request-headers-_yTB3kAw.mjs → request-headers-Cn01EsbI.mjs} +1 -1
- package/dist/{request-tracers-Dijdzs6y.mjs → request-tracers-BWs0rdFS.mjs} +1 -1
- package/dist/{resource-sharing-DYaOk_EC.mjs → resource-sharing-yipIkdbd.mjs} +2 -2
- package/dist/{rules-TsOBYamD.mjs → rules-CCtaBLiN.mjs} +1 -1
- package/dist/{rulesets-BICRAp0v.mjs → rulesets-DBEvCNDS.mjs} +1 -1
- package/dist/{rum-wY_8vewy.mjs → rum-gDOKylu_.mjs} +1 -1
- package/dist/{run-C2-1SFrS.mjs → run-Br8sYjNF.mjs} +1 -1
- package/dist/run-LOgTLpob.mjs +2 -0
- package/dist/schema-cache-Cb64Nqbt.mjs +3 -0
- package/dist/schema-flags-BcbbCWR5.mjs +4 -0
- package/dist/{scim-BCB-RVUX.mjs → scim-CM8Xah56.mjs} +1 -1
- package/dist/{secrets-store-BR-h9nxX.mjs → secrets-store-BEnXiYCC.mjs} +2 -2
- package/dist/{security-insights-C3pM4_QG.mjs → security-insights-Be5GvdBA.mjs} +5 -5
- package/dist/{security-txt-BYeDQJyf.mjs → security-txt-BF0PWAEW.mjs} +1 -1
- package/dist/{session-CG79ZLE9.mjs → session-B7vOqdZU.mjs} +1 -1
- package/dist/shared-CBMFY1VY.mjs +2 -0
- package/dist/{signed-url-BWwUnIl-.mjs → signed-url-VDDQlllt.mjs} +1 -1
- package/dist/{smart-shield-Dlsh9Xdx.mjs → smart-shield-DQku_wYi.mjs} +1 -1
- package/dist/{snippets-DWTJdzIF.mjs → snippets-B3FCEMuh.mjs} +1 -1
- package/dist/spawn-9sE67p7c.mjs +5 -0
- package/dist/{spectrum-RbNSnJya.mjs → spectrum-nLirlVue.mjs} +5 -5
- package/dist/{speed-Bh18cP0e.mjs → speed-C1hCyMPy.mjs} +1 -1
- package/dist/{sql-BKjCDDS-.mjs → sql-DVQOKThL.mjs} +1 -1
- package/dist/src-Bh2gHpI7.mjs +131 -0
- package/dist/{ssl-BHMbK4Be.mjs → ssl-CYDRgr24.mjs} +2 -2
- package/dist/{startup-profile-B7yHR_YB.mjs → startup-profile-BLvw_Wmc.mjs} +1 -1
- package/dist/startup-profile-ByxSdhEl.mjs +2 -0
- package/dist/{state-DNuVv5i-.mjs → state-B8n0QU04.mjs} +1 -1
- package/dist/state-BTOzaT5L.mjs +2 -0
- package/dist/{stream-BFs1vbTA.mjs → stream-DHyejrI6.mjs} +1 -1
- package/dist/{tags-ACINMEUC.mjs → tags-DOL6dKQE.mjs} +2 -2
- package/dist/{telemetry-Da9TmAgm.mjs → telemetry-DJ8-Q2pU.mjs} +1 -1
- package/dist/telemetry-kjElc1zT.mjs +2 -0
- package/dist/{tenant-Decq0ghq.mjs → tenant-2EdATz2Y.mjs} +1 -1
- package/dist/{tenant-custom-nameservers-CGcqESj5.mjs → tenant-custom-nameservers-DhEpJNST.mjs} +1 -1
- package/dist/{tunnels-ff1a_ucB.mjs → tunnels-CMAmH4Vh.mjs} +3 -3
- package/dist/{turnstile-BmJeENqH.mjs → turnstile-DTJjDMFp.mjs} +1 -1
- package/dist/ui-7zujR-O7.mjs +2 -0
- package/dist/{update-check-imcniBzu.mjs → update-check-BkCdHK-3.mjs} +1 -1
- package/dist/{update-check-BjlU_02g.mjs → update-check-DDGKWkmi.mjs} +1 -1
- package/dist/update-check-worker.mjs +1 -1
- package/dist/{url-normalization-DPqqTNzy.mjs → url-normalization-BbWOra1u.mjs} +1 -1
- package/dist/{url-scanner-SmzhVLS-.mjs → url-scanner-Bj-eS_3C.mjs} +2 -2
- package/dist/{user-LDJcWt0X.mjs → user-CMzTHHVX.mjs} +1 -1
- package/dist/{vectorize-D57FE9YT.mjs → vectorize-D4H7_KPs.mjs} +1 -1
- package/dist/version-DIIJ2ixL.mjs +2 -0
- package/dist/{waiting-rooms-Bp5glzYE.mjs → waiting-rooms-CqMbVu9s.mjs} +1 -1
- package/dist/{web-assets-BzSBU057.mjs → web-assets-BgfzyF8t.mjs} +5 -5
- package/dist/{web3-DmeS2XCY.mjs → web3-ByCe47FI.mjs} +1 -1
- package/dist/{workers-BUmSAYvI.mjs → workers-BiLsPkYD.mjs} +2 -2
- package/dist/{workers-builds-BRRyYyDr.mjs → workers-builds-2N71_8MZ.mjs} +1 -1
- package/dist/{workers-for-platforms-Bq5hpU-X.mjs → workers-for-platforms-BMN4QXgT.mjs} +1 -1
- package/dist/{workers-vpc-Dn83sJ0S.mjs → workers-vpc-3o7dMg7-.mjs} +1 -1
- package/dist/{workflows-BI1Oqr1y.mjs → workflows-COiyqt-B.mjs} +1 -1
- package/dist/{wrangler-migration-DHfxfsd8.mjs → wrangler-migration-CqSg8IDj.mjs} +5 -5
- package/dist/{zaraz-eWdwn_FV.mjs → zaraz-DjwhCH8A.mjs} +2 -2
- package/dist/{zero-trust-Dj_s_8u8.mjs → zero-trust-BmpuDOmH.mjs} +68 -62
- package/dist/{zones-D7J5AMUO.mjs → zones-XYQiz5kF.mjs} +2 -2
- package/package.json +12 -12
- package/dist/auth-0yg8UHy1.mjs +0 -2
- package/dist/auth-DCnxMUAZ.mjs +0 -2
- package/dist/build-DHPdqjpj.mjs +0 -2
- package/dist/cf-CInFH4Ng.mjs +0 -18
- package/dist/dev-2hNwTy0s.mjs +0 -4
- package/dist/local-CxTyXQlK.mjs +0 -2
- package/dist/local-runtime-Crs0aOFO.mjs +0 -2
- package/dist/login-C_gOc9pk.mjs +0 -2
- package/dist/oauth-scopes-B1n8hUMj.mjs +0 -4
- package/dist/organizations-DdQAC66Z.mjs +0 -4
- package/dist/package-C4H_6MHV.mjs +0 -2
- package/dist/radar-BCxOSIwx.mjs +0 -300
- package/dist/registry-DpNVjLuS.mjs +0 -2
- package/dist/run-C9r-Beel.mjs +0 -2
- package/dist/schema-flags-DHP8ll5_.mjs +0 -5
- package/dist/shared-Z4B68uro.mjs +0 -2
- package/dist/spawn-DdvGNWEs.mjs +0 -5
- package/dist/src-BZtxQa8v.mjs +0 -131
- package/dist/startup-profile-zt6cFnBn.mjs +0 -2
- package/dist/state-C5mQ9At8.mjs +0 -2
- package/dist/telemetry-Q7QghPwV.mjs +0 -2
- package/dist/ui-C1y5cXUM.mjs +0 -2
- package/dist/version-CbBZJTiB.mjs +0 -2
package/dist/radar-BCxOSIwx.mjs
DELETED
|
@@ -1,300 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
import"./api-X3wKppsT.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{n as t}from"./auth-DkPhAgZv.mjs";import{t as n}from"./output-BJEgbI0G.mjs";import{t as r}from"./dry-run-gy0Hl9xo.mjs";import{t as i}from"./progress-D2_AF54c.mjs";import{t as a}from"./run-C2-1SFrS.mjs";import"./telemetry-Q7QghPwV.mjs";import{n as o,t as s}from"./body-parser-BKcZS9iJ.mjs";import{n as c,t as l}from"./raw-fetch-BFcMz5hY.mjs";var u={method:`GET`,path:t=>e`/radar/agent_readiness/summary/${t.dimension}`,query:[`date`,`domainCategory`,`name`,`format`],errors:{400:`BadRequestError`}};function ee(e){return e.usage(`$0 radar agent-readiness summary <dimension>
|
|
3
|
-
|
|
4
|
-
Returns a summary of AI agent readiness scores across scanned domains, grouped by the specified dimension. Data is sourced from weekly bulk scans. All values are raw domain counts.`).positional(`dimension`,{type:`string`,description:`Specifies the agent readiness data dimension by which to group the results.`,demandOption:!0}).option(`date`,{type:`string`,description:`Filters results by the specified date.`}).option(`domain-category`,{type:`string`,description:`Filters results by domain category.`}).option(`name`,{type:`string`,description:`Array of names used to label the series in the response.`}).option(`format`,{type:`string`,description:`Format in which results will be returned.`,choices:[`JSON`,`CSV`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const te={command:`summary <dimension>`,describe:`Get agent readiness summary`,builder:ee,handler:async e=>a({command:`radar agent-readiness summary`,classification:{safeFlags:[`format`,`dry-run`]}},e,async()=>{let a={date:e.date,domainCategory:e[`domain-category`],name:e.name,format:e.format};if(e.dryRun){r({command:`cf radar agent-readiness summary`,method:`GET`,url:`https://api.cloudflare.com/client/v4/radar/agent_readiness/summary/${e.dimension==null?`<dimension>`:encodeURIComponent(String(e.dimension))}`,pathParams:{dimension:String(e.dimension??``)},query:a,bodyKind:`none`});return}let o=await t(e),s=await i(`Loading`,async()=>o.send(u,{dimension:e.dimension,...a}));n(s,{successLabel:`Loaded`})})},ne={command:`agent-readiness`,describe:`Agent readiness summary statistics across the Cloudflare network`,builder:e=>e.command(te).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var d={method:`GET`,path:t=>e`/radar/ai/bots/timeseries_groups/${t.dimension}`,query:[`aggInterval`,`name`,`dateRange`,`dateStart`,`dateEnd`,`asn`,`location`,`continent`,`crawlPurpose`,`userAgent`,`industry`,`vertical`,`contentType`,`responseStatus`,`responseStatusCategory`,`limitPerGroup`,`normalization`,`format`],errors:{400:`BadRequestError`}};function f(e){return e.usage(`$0 radar ai bots timeseries-groups <dimension>
|
|
5
|
-
|
|
6
|
-
Retrieves the distribution of HTTP requests from AI bots, grouped by the specified dimension over time.`).positional(`dimension`,{type:`string`,description:`Specifies the attribute by which to group the results.`,demandOption:!0}).option(`agg-interval`,{type:`string`,description:`Aggregation interval of the results (e.g., in 15 minutes or 1 hour intervals). Refer to [Aggregation intervals](https://developers.cloudflare.com/radar/concepts/aggregation-intervals/). When omitted, the interval is auto-selected from the requested date range; finer intervals are only available for shorter ranges. If the requested interval is too granular for the date range, the request is rejected.`,choices:[`15m`,`1h`,`1d`,`1w`]}).option(`name`,{type:`string`,description:`Array of names used to label the series in the response.`}).option(`date-range`,{type:`string`,description:"Filters results by relative date range ending at the current time, with each value producing a separate series. Use `<n>d` for days (up to `364d`) or `<n>w` for weeks (up to `52w`). Append `control` to request the equivalent previous period for comparison: the comparison window is shifted back by the current window's length rounded up to a whole number of weeks, so it keeps the same weekday alignment and does not overlap the current window (e.g. `7dcontrol` covers days -14 to -7, `10dcontrol` covers days -24 to -14). For example, pass `7d` and `7dcontrol` to compare this week with the previous week. All series must resolve to the same duration as the main series; relative ranges (including `control`) satisfy this automatically. Use this parameter or set specific start and end dates (`dateStart` and `dateEnd` parameters)."}).option(`date-start`,{type:`string`,description:"Start of the date range. Alternative to `dateRange`; provide together with `dateEnd`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`date-end`,{type:`string`,description:"End of the date range (inclusive). Alternative to `dateRange`; provide together with `dateStart`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`asn`,{type:`string`,description:"Filters results by Autonomous System. Specify one or more Autonomous System Numbers (ASNs) as a comma-separated list. Prefix with `-` to exclude ASNs from results. For example, `-174, 3356` excludes results from AS174, but includes results from AS3356."}).option(`location`,{type:`string`,description:"Filters results by location. Specify a comma-separated list of alpha-2 codes. Prefix with `-` to exclude locations from results. For example, `-US,PT` excludes results from the US, but includes results from PT."}).option(`continent`,{type:`string`,description:"Filters results by continent. Specify a comma-separated list of alpha-2 codes. Prefix with `-` to exclude continents from results. For example, `-EU,NA` excludes results from EU, but includes results from NA."}).option(`crawl-purpose`,{type:`string`,description:`Filters results by bot crawl purpose.`}).option(`user-agent`,{type:`string`,description:`Filters results by user agent.`}).option(`industry`,{type:`string`,description:`Filters results by industry.`}).option(`vertical`,{type:`string`,description:`Filters results by vertical.`}).option(`content-type`,{type:`string`,description:`Filters results by content type category. When set, results can only be further filtered by location, continent, or Autonomous System.`}).option(`response-status`,{type:`string`,description:`Filters results by HTTP response status code (e.g. 200, 403, 404). Only [IANA-registered codes](https://www.iana.org/assignments/http-status-codes/http-status-codes.xhtml) are accepted.`}).option(`response-status-category`,{type:`string`,description:`Filters results by HTTP response status code category.`}).option(`limit-per-group`,{type:`number`,description:`Limits the number of objects per group to the top items within the specified time range. When item count exceeds the limit, extra items appear grouped under an "other" category. Only supported on high-cardinality dimensions; otherwise the request is rejected. Minimum value is 2.`}).option(`normalization`,{type:`string`,description:"Normalization method applied to the results. Refer to [Normalization methods](https://developers.cloudflare.com/radar/concepts/normalization/). `PERCENTAGE_CHANGE` requires exactly one comparison series (e.g. a `control` date range).",choices:[`PERCENTAGE`,`MIN0_MAX`,`PERCENTAGE_CHANGE`]}).option(`format`,{type:`string`,description:`Format in which results will be returned.`,choices:[`JSON`,`CSV`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const p={command:`timeseries-groups <dimension>`,describe:`Get time series distribution of AI bots HTTP requests by dimension.`,builder:f,handler:async e=>a({command:`radar ai bots timeseries-groups`,classification:{safeFlags:[`agg-interval`,`normalization`,`format`,`dry-run`]}},e,async()=>{let a={aggInterval:e[`agg-interval`],name:e.name,dateRange:e[`date-range`],dateStart:e[`date-start`],dateEnd:e[`date-end`],asn:e.asn,location:e.location,continent:e.continent,crawlPurpose:e[`crawl-purpose`],userAgent:e[`user-agent`],industry:e.industry,vertical:e.vertical,contentType:e[`content-type`],responseStatus:e[`response-status`],responseStatusCategory:e[`response-status-category`],limitPerGroup:e[`limit-per-group`],normalization:e.normalization,format:e.format};if(e.dryRun){r({command:`cf radar ai bots timeseries-groups`,method:`GET`,url:`https://api.cloudflare.com/client/v4/radar/ai/bots/timeseries_groups/${e.dimension==null?`<dimension>`:encodeURIComponent(String(e.dimension))}`,pathParams:{dimension:String(e.dimension??``)},query:a,bodyKind:`none`});return}let o=await t(e),s=await i(`Loading`,async()=>o.send(d,{dimension:e.dimension,...a}));n(s,{successLabel:`Loaded`})})};var m={method:`GET`,path:()=>`/radar/ai/bots/timeseries`,query:[`aggInterval`,`name`,`dateRange`,`dateStart`,`dateEnd`,`asn`,`location`,`continent`,`crawlPurpose`,`userAgent`,`industry`,`vertical`,`contentType`,`responseStatus`,`responseStatusCategory`,`limitPerGroup`,`format`],errors:{400:`BadRequestError`}};function h(e){return e.usage(`$0 radar ai bots timeseries
|
|
7
|
-
|
|
8
|
-
Retrieves AI bots HTTP request volume over time.`).option(`agg-interval`,{type:`string`,description:`Aggregation interval of the results (e.g., in 15 minutes or 1 hour intervals). Refer to [Aggregation intervals](https://developers.cloudflare.com/radar/concepts/aggregation-intervals/). When omitted, the interval is auto-selected from the requested date range; finer intervals are only available for shorter ranges. If the requested interval is too granular for the date range, the request is rejected.`,choices:[`15m`,`1h`,`1d`,`1w`]}).option(`name`,{type:`string`,description:`Array of names used to label the series in the response.`}).option(`date-range`,{type:`string`,description:"Filters results by relative date range ending at the current time, with each value producing a separate series. Use `<n>d` for days (up to `364d`) or `<n>w` for weeks (up to `52w`). Append `control` to request the equivalent previous period for comparison: the comparison window is shifted back by the current window's length rounded up to a whole number of weeks, so it keeps the same weekday alignment and does not overlap the current window (e.g. `7dcontrol` covers days -14 to -7, `10dcontrol` covers days -24 to -14). For example, pass `7d` and `7dcontrol` to compare this week with the previous week. All series must resolve to the same duration as the main series; relative ranges (including `control`) satisfy this automatically. Use this parameter or set specific start and end dates (`dateStart` and `dateEnd` parameters)."}).option(`date-start`,{type:`string`,description:"Start of the date range. Alternative to `dateRange`; provide together with `dateEnd`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`date-end`,{type:`string`,description:"End of the date range (inclusive). Alternative to `dateRange`; provide together with `dateStart`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`asn`,{type:`string`,description:"Filters results by Autonomous System. Specify one or more Autonomous System Numbers (ASNs) as a comma-separated list. Prefix with `-` to exclude ASNs from results. For example, `-174, 3356` excludes results from AS174, but includes results from AS3356."}).option(`location`,{type:`string`,description:"Filters results by location. Specify a comma-separated list of alpha-2 codes. Prefix with `-` to exclude locations from results. For example, `-US,PT` excludes results from the US, but includes results from PT."}).option(`continent`,{type:`string`,description:"Filters results by continent. Specify a comma-separated list of alpha-2 codes. Prefix with `-` to exclude continents from results. For example, `-EU,NA` excludes results from EU, but includes results from NA."}).option(`crawl-purpose`,{type:`string`,description:`Filters results by bot crawl purpose.`}).option(`user-agent`,{type:`string`,description:`Filters results by user agent.`}).option(`industry`,{type:`string`,description:`Filters results by industry.`}).option(`vertical`,{type:`string`,description:`Filters results by vertical.`}).option(`content-type`,{type:`string`,description:`Filters results by content type category. When set, results can only be further filtered by location, continent, or Autonomous System.`}).option(`response-status`,{type:`string`,description:`Filters results by HTTP response status code (e.g. 200, 403, 404). Only [IANA-registered codes](https://www.iana.org/assignments/http-status-codes/http-status-codes.xhtml) are accepted.`}).option(`response-status-category`,{type:`string`,description:`Filters results by HTTP response status code category.`}).option(`limit-per-group`,{type:`number`,description:`Limits the number of objects per group to the top items within the specified time range. When item count exceeds the limit, extra items appear grouped under an "other" category. Only supported on high-cardinality dimensions; otherwise the request is rejected. Minimum value is 2.`}).option(`format`,{type:`string`,description:`Format in which results will be returned.`,choices:[`JSON`,`CSV`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const g={command:`timeseries`,describe:`Get AI bots HTTP requests time series`,builder:h,handler:async e=>a({command:`radar ai bots timeseries`,classification:{safeFlags:[`agg-interval`,`format`,`dry-run`]}},e,async()=>{let a={aggInterval:e[`agg-interval`],name:e.name,dateRange:e[`date-range`],dateStart:e[`date-start`],dateEnd:e[`date-end`],asn:e.asn,location:e.location,continent:e.continent,crawlPurpose:e[`crawl-purpose`],userAgent:e[`user-agent`],industry:e.industry,vertical:e.vertical,contentType:e[`content-type`],responseStatus:e[`response-status`],responseStatusCategory:e[`response-status-category`],limitPerGroup:e[`limit-per-group`],format:e.format};if(e.dryRun){r({command:`cf radar ai bots timeseries`,method:`GET`,url:`https://api.cloudflare.com/client/v4/radar/ai/bots/timeseries`,pathParams:{},query:a,bodyKind:`none`});return}let o=await t(e),s=await i(`Loading`,async()=>o.send(m,a));n(s,{successLabel:`Loaded`})})},_={command:`bots`,describe:`Operations for ai.bots`,builder:e=>e.command(g).command(p).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var v={method:`GET`,path:t=>e`/radar/ai/inference/summary/${t.dimension}`,query:[`name`,`dateRange`,`dateStart`,`dateEnd`,`asn`,`location`,`continent`,`limitPerGroup`,`format`],errors:{400:`BadRequestError`}};function y(e){return e.usage(`$0 radar ai inference summary-v2 <dimension>
|
|
9
|
-
|
|
10
|
-
Retrieves an aggregated summary of the number of inferences run on Workers AI, grouped by the specified dimension.`).positional(`dimension`,{type:`string`,description:`Specifies the attribute by which to group the results.`,demandOption:!0}).option(`name`,{type:`string`,description:`Array of names used to label the series in the response.`}).option(`date-range`,{type:`string`,description:"Filters results by relative date range ending at the current time, with each value producing a separate series. Use `<n>d` for days (up to `364d`) or `<n>w` for weeks (up to `52w`). Append `control` to request the equivalent previous period for comparison: the comparison window is shifted back by the current window's length rounded up to a whole number of weeks, so it keeps the same weekday alignment and does not overlap the current window (e.g. `7dcontrol` covers days -14 to -7, `10dcontrol` covers days -24 to -14). For example, pass `7d` and `7dcontrol` to compare this week with the previous week. All series must resolve to the same duration as the main series; relative ranges (including `control`) satisfy this automatically. Use this parameter or set specific start and end dates (`dateStart` and `dateEnd` parameters)."}).option(`date-start`,{type:`string`,description:"Start of the date range. Alternative to `dateRange`; provide together with `dateEnd`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`date-end`,{type:`string`,description:"End of the date range (inclusive). Alternative to `dateRange`; provide together with `dateStart`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`asn`,{type:`string`,description:"Filters results by Autonomous System. Specify one or more Autonomous System Numbers (ASNs) as a comma-separated list. Prefix with `-` to exclude ASNs from results. For example, `-174, 3356` excludes results from AS174, but includes results from AS3356."}).option(`location`,{type:`string`,description:"Filters results by location. Specify a comma-separated list of alpha-2 codes. Prefix with `-` to exclude locations from results. For example, `-US,PT` excludes results from the US, but includes results from PT."}).option(`continent`,{type:`string`,description:"Filters results by continent. Specify a comma-separated list of alpha-2 codes. Prefix with `-` to exclude continents from results. For example, `-EU,NA` excludes results from EU, but includes results from NA."}).option(`limit-per-group`,{type:`number`,description:`Limits the number of objects per group to the top items within the specified time range. When item count exceeds the limit, extra items appear grouped under an "other" category. Only supported on high-cardinality dimensions; otherwise the request is rejected. Minimum value is 2.`}).option(`format`,{type:`string`,description:`Format in which results will be returned.`,choices:[`JSON`,`CSV`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const b={command:`summary-v2 <dimension>`,describe:`Get Workers AI inference distribution by dimension`,builder:y,handler:async e=>a({command:`radar ai inference summary-v2`,classification:{safeFlags:[`format`,`dry-run`]}},e,async()=>{let a={name:e.name,dateRange:e[`date-range`],dateStart:e[`date-start`],dateEnd:e[`date-end`],asn:e.asn,location:e.location,continent:e.continent,limitPerGroup:e[`limit-per-group`],format:e.format};if(e.dryRun){r({command:`cf radar ai inference summary-v2`,method:`GET`,url:`https://api.cloudflare.com/client/v4/radar/ai/inference/summary/${e.dimension==null?`<dimension>`:encodeURIComponent(String(e.dimension))}`,pathParams:{dimension:String(e.dimension??``)},query:a,bodyKind:`none`});return}let o=await t(e),s=await i(`Loading`,async()=>o.send(v,{dimension:e.dimension,...a}));n(s,{successLabel:`Loaded`})})};var x={method:`GET`,path:t=>e`/radar/ai/inference/timeseries_groups/${t.dimension}`,query:[`aggInterval`,`name`,`dateRange`,`dateStart`,`dateEnd`,`asn`,`location`,`continent`,`limitPerGroup`,`normalization`,`format`],errors:{400:`BadRequestError`}};function S(e){return e.usage(`$0 radar ai inference timeseries-groups-v2 <dimension>
|
|
11
|
-
|
|
12
|
-
Retrieves the distribution of the number of inferences run on Workers AI, grouped by the specified dimension over time.`).positional(`dimension`,{type:`string`,description:`Specifies the attribute by which to group the results.`,demandOption:!0}).option(`agg-interval`,{type:`string`,description:`Aggregation interval of the results (e.g., in 15 minutes or 1 hour intervals). Refer to [Aggregation intervals](https://developers.cloudflare.com/radar/concepts/aggregation-intervals/). When omitted, the interval is auto-selected from the requested date range; finer intervals are only available for shorter ranges. If the requested interval is too granular for the date range, the request is rejected.`,choices:[`15m`,`1h`,`1d`,`1w`]}).option(`name`,{type:`string`,description:`Array of names used to label the series in the response.`}).option(`date-range`,{type:`string`,description:"Filters results by relative date range ending at the current time, with each value producing a separate series. Use `<n>d` for days (up to `364d`) or `<n>w` for weeks (up to `52w`). Append `control` to request the equivalent previous period for comparison: the comparison window is shifted back by the current window's length rounded up to a whole number of weeks, so it keeps the same weekday alignment and does not overlap the current window (e.g. `7dcontrol` covers days -14 to -7, `10dcontrol` covers days -24 to -14). For example, pass `7d` and `7dcontrol` to compare this week with the previous week. All series must resolve to the same duration as the main series; relative ranges (including `control`) satisfy this automatically. Use this parameter or set specific start and end dates (`dateStart` and `dateEnd` parameters)."}).option(`date-start`,{type:`string`,description:"Start of the date range. Alternative to `dateRange`; provide together with `dateEnd`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`date-end`,{type:`string`,description:"End of the date range (inclusive). Alternative to `dateRange`; provide together with `dateStart`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`asn`,{type:`string`,description:"Filters results by Autonomous System. Specify one or more Autonomous System Numbers (ASNs) as a comma-separated list. Prefix with `-` to exclude ASNs from results. For example, `-174, 3356` excludes results from AS174, but includes results from AS3356."}).option(`location`,{type:`string`,description:"Filters results by location. Specify a comma-separated list of alpha-2 codes. Prefix with `-` to exclude locations from results. For example, `-US,PT` excludes results from the US, but includes results from PT."}).option(`continent`,{type:`string`,description:"Filters results by continent. Specify a comma-separated list of alpha-2 codes. Prefix with `-` to exclude continents from results. For example, `-EU,NA` excludes results from EU, but includes results from NA."}).option(`limit-per-group`,{type:`number`,description:`Limits the number of objects per group to the top items within the specified time range. When item count exceeds the limit, extra items appear grouped under an "other" category. Only supported on high-cardinality dimensions; otherwise the request is rejected. Minimum value is 2.`}).option(`normalization`,{type:`string`,description:`Normalization method applied to the results. Refer to [Normalization methods](https://developers.cloudflare.com/radar/concepts/normalization/).`,choices:[`PERCENTAGE`,`MIN0_MAX`]}).option(`format`,{type:`string`,description:`Format in which results will be returned.`,choices:[`JSON`,`CSV`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const C={command:`timeseries-groups-v2 <dimension>`,describe:`Get time series distribution of Workers AI inference by dimension.`,builder:S,handler:async e=>a({command:`radar ai inference timeseries-groups-v2`,classification:{safeFlags:[`agg-interval`,`normalization`,`format`,`dry-run`]}},e,async()=>{let a={aggInterval:e[`agg-interval`],name:e.name,dateRange:e[`date-range`],dateStart:e[`date-start`],dateEnd:e[`date-end`],asn:e.asn,location:e.location,continent:e.continent,limitPerGroup:e[`limit-per-group`],normalization:e.normalization,format:e.format};if(e.dryRun){r({command:`cf radar ai inference timeseries-groups-v2`,method:`GET`,url:`https://api.cloudflare.com/client/v4/radar/ai/inference/timeseries_groups/${e.dimension==null?`<dimension>`:encodeURIComponent(String(e.dimension))}`,pathParams:{dimension:String(e.dimension??``)},query:a,bodyKind:`none`});return}let o=await t(e),s=await i(`Loading`,async()=>o.send(x,{dimension:e.dimension,...a}));n(s,{successLabel:`Loaded`})})},w={command:`inference`,describe:`Operations for ai.inference`,builder:e=>e.command(b).command(C).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var T={method:`GET`,path:()=>`/radar/ai/markdown_for_agents/summary`,query:[`name`,`dateRange`,`dateStart`,`dateEnd`,`format`],errors:{400:`BadRequestError`}};function E(e){return e.usage(`$0 radar ai markdown-for-agents summary
|
|
13
|
-
|
|
14
|
-
Retrieves the overall median HTML-to-markdown reduction ratio for AI agent requests over the given date range.`).option(`name`,{type:`string`,description:`Array of names used to label the series in the response.`}).option(`date-range`,{type:`string`,description:"Filters results by relative date range ending at the current time, with each value producing a separate series. Use `<n>d` for days (up to `364d`) or `<n>w` for weeks (up to `52w`). Append `control` to request the equivalent previous period for comparison: the comparison window is shifted back by the current window's length rounded up to a whole number of weeks, so it keeps the same weekday alignment and does not overlap the current window (e.g. `7dcontrol` covers days -14 to -7, `10dcontrol` covers days -24 to -14). For example, pass `7d` and `7dcontrol` to compare this week with the previous week. All series must resolve to the same duration as the main series; relative ranges (including `control`) satisfy this automatically. Use this parameter or set specific start and end dates (`dateStart` and `dateEnd` parameters)."}).option(`date-start`,{type:`string`,description:"Start of the date range. Alternative to `dateRange`; provide together with `dateEnd`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`date-end`,{type:`string`,description:"End of the date range (inclusive). Alternative to `dateRange`; provide together with `dateStart`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`format`,{type:`string`,description:`Format in which results will be returned.`,choices:[`JSON`,`CSV`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const D={command:`summary`,describe:`Get AI markdown for agents reduction ratio summary`,builder:E,handler:async e=>a({command:`radar ai markdown-for-agents summary`,classification:{safeFlags:[`format`,`dry-run`]}},e,async()=>{let a={name:e.name,dateRange:e[`date-range`],dateStart:e[`date-start`],dateEnd:e[`date-end`],format:e.format};if(e.dryRun){r({command:`cf radar ai markdown-for-agents summary`,method:`GET`,url:`https://api.cloudflare.com/client/v4/radar/ai/markdown_for_agents/summary`,pathParams:{},query:a,bodyKind:`none`});return}let o=await t(e),s=await i(`Loading`,async()=>o.send(T,a));n(s,{successLabel:`Loaded`})})};var O={method:`GET`,path:()=>`/radar/ai/markdown_for_agents/timeseries`,query:[`aggInterval`,`name`,`dateRange`,`dateStart`,`dateEnd`,`format`],errors:{400:`BadRequestError`}};function k(e){return e.usage(`$0 radar ai markdown-for-agents timeseries
|
|
15
|
-
|
|
16
|
-
Retrieves the median HTML-to-markdown reduction ratio over time for AI agent requests.`).option(`agg-interval`,{type:`string`,description:`Aggregation interval of the results (e.g., in 15 minutes or 1 hour intervals). Refer to [Aggregation intervals](https://developers.cloudflare.com/radar/concepts/aggregation-intervals/). When omitted, the interval is auto-selected from the requested date range; finer intervals are only available for shorter ranges. If the requested interval is too granular for the date range, the request is rejected.`,choices:[`15m`,`1h`,`1d`,`1w`]}).option(`name`,{type:`string`,description:`Array of names used to label the series in the response.`}).option(`date-range`,{type:`string`,description:"Filters results by relative date range ending at the current time, with each value producing a separate series. Use `<n>d` for days (up to `364d`) or `<n>w` for weeks (up to `52w`). Append `control` to request the equivalent previous period for comparison: the comparison window is shifted back by the current window's length rounded up to a whole number of weeks, so it keeps the same weekday alignment and does not overlap the current window (e.g. `7dcontrol` covers days -14 to -7, `10dcontrol` covers days -24 to -14). For example, pass `7d` and `7dcontrol` to compare this week with the previous week. All series must resolve to the same duration as the main series; relative ranges (including `control`) satisfy this automatically. Use this parameter or set specific start and end dates (`dateStart` and `dateEnd` parameters)."}).option(`date-start`,{type:`string`,description:"Start of the date range. Alternative to `dateRange`; provide together with `dateEnd`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`date-end`,{type:`string`,description:"End of the date range (inclusive). Alternative to `dateRange`; provide together with `dateStart`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`format`,{type:`string`,description:`Format in which results will be returned.`,choices:[`JSON`,`CSV`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const A={command:`timeseries`,describe:`Get AI markdown for agents reduction ratio time series`,builder:k,handler:async e=>a({command:`radar ai markdown-for-agents timeseries`,classification:{safeFlags:[`agg-interval`,`format`,`dry-run`]}},e,async()=>{let a={aggInterval:e[`agg-interval`],name:e.name,dateRange:e[`date-range`],dateStart:e[`date-start`],dateEnd:e[`date-end`],format:e.format};if(e.dryRun){r({command:`cf radar ai markdown-for-agents timeseries`,method:`GET`,url:`https://api.cloudflare.com/client/v4/radar/ai/markdown_for_agents/timeseries`,pathParams:{},query:a,bodyKind:`none`});return}let o=await t(e),s=await i(`Loading`,async()=>o.send(O,a));n(s,{successLabel:`Loaded`})})},j={command:`markdown-for-agents`,describe:`Operations for ai.markdown-for-agents`,builder:e=>e.command(D).command(A).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var M={method:`GET`,path:t=>e`/radar/ai/bots/summary/${t.dimension}`,query:[`name`,`dateRange`,`dateStart`,`dateEnd`,`asn`,`location`,`continent`,`crawlPurpose`,`userAgent`,`vertical`,`industry`,`contentType`,`responseStatus`,`responseStatusCategory`,`limitPerGroup`,`format`],errors:{400:`BadRequestError`}};function N(e){return e.usage(`$0 radar ai timeseries-groups summary <dimension>
|
|
17
|
-
|
|
18
|
-
Retrieves an aggregated summary of AI bots HTTP requests grouped by the specified dimension.`).positional(`dimension`,{type:`string`,description:`Specifies the attribute by which to group the results.`,demandOption:!0}).option(`name`,{type:`string`,description:`Array of names used to label the series in the response.`}).option(`date-range`,{type:`string`,description:"Filters results by relative date range ending at the current time, with each value producing a separate series. Use `<n>d` for days (up to `364d`) or `<n>w` for weeks (up to `52w`). Append `control` to request the equivalent previous period for comparison: the comparison window is shifted back by the current window's length rounded up to a whole number of weeks, so it keeps the same weekday alignment and does not overlap the current window (e.g. `7dcontrol` covers days -14 to -7, `10dcontrol` covers days -24 to -14). For example, pass `7d` and `7dcontrol` to compare this week with the previous week. All series must resolve to the same duration as the main series; relative ranges (including `control`) satisfy this automatically. Use this parameter or set specific start and end dates (`dateStart` and `dateEnd` parameters)."}).option(`date-start`,{type:`string`,description:"Start of the date range. Alternative to `dateRange`; provide together with `dateEnd`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`date-end`,{type:`string`,description:"End of the date range (inclusive). Alternative to `dateRange`; provide together with `dateStart`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`asn`,{type:`string`,description:"Filters results by Autonomous System. Specify one or more Autonomous System Numbers (ASNs) as a comma-separated list. Prefix with `-` to exclude ASNs from results. For example, `-174, 3356` excludes results from AS174, but includes results from AS3356."}).option(`location`,{type:`string`,description:"Filters results by location. Specify a comma-separated list of alpha-2 codes. Prefix with `-` to exclude locations from results. For example, `-US,PT` excludes results from the US, but includes results from PT."}).option(`continent`,{type:`string`,description:"Filters results by continent. Specify a comma-separated list of alpha-2 codes. Prefix with `-` to exclude continents from results. For example, `-EU,NA` excludes results from EU, but includes results from NA."}).option(`crawl-purpose`,{type:`string`,description:`Filters results by bot crawl purpose.`}).option(`user-agent`,{type:`string`,description:`Filters results by user agent.`}).option(`vertical`,{type:`string`,description:`Filters results by vertical.`}).option(`industry`,{type:`string`,description:`Filters results by industry.`}).option(`content-type`,{type:`string`,description:`Filters results by content type category. When set, results can only be further filtered by location, continent, or Autonomous System.`}).option(`response-status`,{type:`string`,description:`Filters results by HTTP response status code (e.g. 200, 403, 404). Only [IANA-registered codes](https://www.iana.org/assignments/http-status-codes/http-status-codes.xhtml) are accepted.`}).option(`response-status-category`,{type:`string`,description:`Filters results by HTTP response status code category.`}).option(`limit-per-group`,{type:`number`,description:`Limits the number of objects per group to the top items within the specified time range. When item count exceeds the limit, extra items appear grouped under an "other" category. Only supported on high-cardinality dimensions; otherwise the request is rejected. Minimum value is 2.`}).option(`format`,{type:`string`,description:`Format in which results will be returned.`,choices:[`JSON`,`CSV`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const P={command:`summary <dimension>`,describe:`Get AI bots HTTP requests distribution by dimension`,builder:N,handler:async e=>a({command:`radar ai timeseries-groups summary`,classification:{safeFlags:[`format`,`dry-run`]}},e,async()=>{let a={name:e.name,dateRange:e[`date-range`],dateStart:e[`date-start`],dateEnd:e[`date-end`],asn:e.asn,location:e.location,continent:e.continent,crawlPurpose:e[`crawl-purpose`],userAgent:e[`user-agent`],vertical:e.vertical,industry:e.industry,contentType:e[`content-type`],responseStatus:e[`response-status`],responseStatusCategory:e[`response-status-category`],limitPerGroup:e[`limit-per-group`],format:e.format};if(e.dryRun){r({command:`cf radar ai timeseries-groups summary`,method:`GET`,url:`https://api.cloudflare.com/client/v4/radar/ai/bots/summary/${e.dimension==null?`<dimension>`:encodeURIComponent(String(e.dimension))}`,pathParams:{dimension:String(e.dimension??``)},query:a,bodyKind:`none`});return}let o=await t(e),s=await i(`Loading`,async()=>o.send(M,{dimension:e.dimension,...a}));n(s,{successLabel:`Loaded`})})},F={command:`timeseries-groups`,describe:`Operations for ai.timeseries-groups`,builder:e=>e.command(P).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},I={command:`ai`,describe:`AI inference trends and model usage statistics across the Cloudflare network`,builder:e=>e.command(_).command(w).command(j).command(F).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var L={method:`GET`,path:t=>e`/radar/annotations/${t.id}`,query:[`format`],errors:{404:`NotFoundError`}};function R(e){return e.usage(`$0 radar annotations get <id>
|
|
19
|
-
|
|
20
|
-
Retrieves a single annotation by ID.`).positional(`id`,{type:`string`,description:`Annotation ID.`,demandOption:!0}).option(`format`,{type:`string`,description:`Format in which results will be returned.`,choices:[`JSON`,`CSV`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const z={command:`get <id>`,describe:`Get annotation by ID`,builder:R,handler:async e=>a({command:`radar annotations get`,classification:{safeFlags:[`format`,`dry-run`]}},e,async()=>{let a={format:e.format};if(e.dryRun){r({command:`cf radar annotations get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/radar/annotations/${e.id==null?`<id>`:encodeURIComponent(String(e.id))}`,pathParams:{id:String(e.id??``)},query:a,bodyKind:`none`});return}let o=await t(e),s=await i(`Loading`,async()=>o.send(L,{id:e.id,...a}));n(s,{successLabel:`Loaded`})})};var B={method:`GET`,path:()=>`/radar/annotations`,query:[`limit`,`offset`,`dateRange`,`dateStart`,`dateEnd`,`dataSource`,`eventType`,`outageType`,`outageCause`,`tags`,`query`,`asn`,`location`,`geoId`,`origin`,`tld`,`ca`,`log`,`bot`,`format`],errors:{400:`BadRequestError`}};function V(e){return e.usage(`$0 radar annotations list
|
|
21
|
-
|
|
22
|
-
Retrieves the latest annotations.`).option(`limit`,{type:`number`,description:`Limits the number of objects returned in the response.`}).option(`offset`,{type:`number`,description:`Skips the specified number of objects before fetching the results.`}).option(`date-range`,{type:`string`,description:"Filters results by a relative date range ending at the current time. Use `<n>d` for days (up to `364d`) or `<n>w` for weeks (up to `52w`), e.g. `7d`. Append `control` to request the equivalent previous period for comparison: the comparison window is shifted back by the current window's length rounded up to a whole number of weeks, so it keeps the same weekday alignment and does not overlap the current window (e.g. `3dcontrol` covers days -10 to -7, `7dcontrol` covers days -14 to -7, `28dcontrol` covers days -56 to -28, and `10dcontrol` covers days -24 to -14). Mutually exclusive with `dateStart`/`dateEnd`."}).option(`date-start`,{type:`string`,description:"Start of the date range (inclusive). Alternative to `dateRange`; provide together with `dateEnd`."}).option(`date-end`,{type:`string`,description:"End of the date range (inclusive). Alternative to `dateRange`; provide together with `dateStart`."}).option(`data-source`,{type:`string`,description:`Filters results by data source.`,choices:[`ALL`,`AI_BOTS`,`AI_GATEWAY`,`BGP`,`BOTS`,`CONNECTION_ANOMALY`,`CT`,`DNS`,`DNS_MAGNITUDE`,`DNS_AS112`,`DOS`,`EMAIL_ROUTING`,`EMAIL_SECURITY`,`FW`,`FW_PG`,`HTTP`,`HTTP_CONTROL`,`HTTP_CRAWLER_REFERER`,`HTTP_ORIGINS`,`IQI`,`LEAKED_CREDENTIALS`,`NET`,`ROBOTS_TXT`,`SPEED`,`WORKERS_AI`]}).option(`event-type`,{type:`string`,description:`Filters results by event type. EVENT is a legacy alias for GENERAL.`,choices:[`EVENT`,`GENERAL`,`OUTAGE`,`PARTIAL_PROJECTION`,`PIPELINE`,`TRAFFIC_ANOMALY`]}).option(`outage-type`,{type:`string`,description:`Filters results by outage type.`,choices:[`NATIONWIDE`,`REGIONAL`,`NETWORK`,`PLATFORM`]}).option(`outage-cause`,{type:`string`,description:`Filters results by outage cause.`,choices:[`BLOCKING`,`CABLE_CUT`,`CYBERATTACK`,`DNS`,`FIRE`,`GOVERNMENT_DIRECTED`,`MAINTENANCE`,`MECHANICAL`,`MILITARY_ACTION`,`MISCONFIGURATION`,`NATURAL_DISASTER`,`NETWORK_PROBLEM`,`POWER_OUTAGE`,`SOFTWARE`,`TECHNICAL_PROBLEM`,`UNKNOWN`,`WEATHER`]}).option(`tags`,{type:`string`,description:`Filters results by annotation tag. Matches annotations carrying at least one of the given tags.`}).option(`query`,{type:`string`,description:`Filters results by a free-text match on the annotation description, id, or linked entities (location, ASN, origin).`}).option(`asn`,{type:`number`,description:`Filters results by Autonomous System. Specify a single Autonomous System Number (ASN) as integer.`}).option(`location`,{type:`string`,description:`Filters results by location. Specify an alpha-2 location code.`}).option(`geo-id`,{type:`string`,description:`Filters results by geolocation. Refer to [GeoNames](https://download.geonames.org/export/dump/readme.txt).`}).option(`origin`,{type:`string`,description:`Filters results by origin.`}).option(`tld`,{type:`string`,description:`Filters results by top-level domain.`}).option(`ca`,{type:`string`,description:`Filters results by certificate authority.`}).option(`log`,{type:`string`,description:`Filters results by certificate log.`}).option(`bot`,{type:`string`,description:`Filters results by bot.`}).option(`format`,{type:`string`,description:`Format in which results will be returned.`,choices:[`JSON`,`CSV`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const H={command:`list`,describe:`Get latest annotations`,builder:V,handler:async e=>a({command:`radar annotations list`,classification:{safeFlags:[`data-source`,`event-type`,`outage-type`,`outage-cause`,`format`,`dry-run`]}},e,async()=>{let a={limit:e.limit,offset:e.offset,dateRange:e[`date-range`],dateStart:e[`date-start`],dateEnd:e[`date-end`],dataSource:e[`data-source`],eventType:e[`event-type`],outageType:e[`outage-type`],outageCause:e[`outage-cause`],tags:e.tags,query:e.query,asn:e.asn,location:e.location,geoId:e[`geo-id`],origin:e.origin,tld:e.tld,ca:e.ca,log:e.log,bot:e.bot,format:e.format};if(e.dryRun){r({command:`cf radar annotations list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/radar/annotations`,pathParams:{},query:a,bodyKind:`none`});return}let o=await t(e),s=await i(`Loading`,async()=>o.send(B,a));n(s,{successLabel:`Loaded`})})};var U={method:`GET`,path:()=>`/radar/annotations/outages`,query:[`limit`,`offset`,`dateRange`,`dateStart`,`dateEnd`,`dataSource`,`outageType`,`outageCause`,`tags`,`query`,`asn`,`location`,`geoId`,`origin`,`tld`,`ca`,`log`,`bot`,`format`],errors:{400:`BadRequestError`}};function W(e){return e.usage(`$0 radar annotations outages get
|
|
23
|
-
|
|
24
|
-
Retrieves the latest Internet outages and anomalies.`).option(`limit`,{type:`number`,description:`Limits the number of objects returned in the response.`}).option(`offset`,{type:`number`,description:`Skips the specified number of objects before fetching the results.`}).option(`date-range`,{type:`string`,description:"Filters results by a relative date range ending at the current time. Use `<n>d` for days (up to `364d`) or `<n>w` for weeks (up to `52w`), e.g. `7d`. Append `control` to request the equivalent previous period for comparison: the comparison window is shifted back by the current window's length rounded up to a whole number of weeks, so it keeps the same weekday alignment and does not overlap the current window (e.g. `3dcontrol` covers days -10 to -7, `7dcontrol` covers days -14 to -7, `28dcontrol` covers days -56 to -28, and `10dcontrol` covers days -24 to -14). Mutually exclusive with `dateStart`/`dateEnd`."}).option(`date-start`,{type:`string`,description:"Start of the date range (inclusive). Alternative to `dateRange`; provide together with `dateEnd`."}).option(`date-end`,{type:`string`,description:"End of the date range (inclusive). Alternative to `dateRange`; provide together with `dateStart`."}).option(`data-source`,{type:`string`,description:`Filters results by data source.`,choices:[`ALL`,`AI_BOTS`,`AI_GATEWAY`,`BGP`,`BOTS`,`CONNECTION_ANOMALY`,`CT`,`DNS`,`DNS_MAGNITUDE`,`DNS_AS112`,`DOS`,`EMAIL_ROUTING`,`EMAIL_SECURITY`,`FW`,`FW_PG`,`HTTP`,`HTTP_CONTROL`,`HTTP_CRAWLER_REFERER`,`HTTP_ORIGINS`,`IQI`,`LEAKED_CREDENTIALS`,`NET`,`ROBOTS_TXT`,`SPEED`,`WORKERS_AI`]}).option(`outage-type`,{type:`string`,description:`Filters results by outage type.`,choices:[`NATIONWIDE`,`REGIONAL`,`NETWORK`,`PLATFORM`]}).option(`outage-cause`,{type:`string`,description:`Filters results by outage cause.`,choices:[`BLOCKING`,`CABLE_CUT`,`CYBERATTACK`,`DNS`,`FIRE`,`GOVERNMENT_DIRECTED`,`MAINTENANCE`,`MECHANICAL`,`MILITARY_ACTION`,`MISCONFIGURATION`,`NATURAL_DISASTER`,`NETWORK_PROBLEM`,`POWER_OUTAGE`,`SOFTWARE`,`TECHNICAL_PROBLEM`,`UNKNOWN`,`WEATHER`]}).option(`tags`,{type:`string`,description:`Filters results by annotation tag. Matches annotations carrying at least one of the given tags.`}).option(`query`,{type:`string`,description:`Filters results by a free-text match on the annotation description, id, or linked entities (location, ASN, origin).`}).option(`asn`,{type:`number`,description:`Filters results by Autonomous System. Specify a single Autonomous System Number (ASN) as integer.`}).option(`location`,{type:`string`,description:`Filters results by location. Specify an alpha-2 location code.`}).option(`geo-id`,{type:`string`,description:`Filters results by geolocation. Refer to [GeoNames](https://download.geonames.org/export/dump/readme.txt).`}).option(`origin`,{type:`string`,description:`Filters results by origin.`}).option(`tld`,{type:`string`,description:`Filters results by top-level domain.`}).option(`ca`,{type:`string`,description:`Filters results by certificate authority.`}).option(`log`,{type:`string`,description:`Filters results by certificate log.`}).option(`bot`,{type:`string`,description:`Filters results by bot.`}).option(`format`,{type:`string`,description:`Format in which results will be returned.`,choices:[`JSON`,`CSV`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const G={command:`get`,describe:`Get latest Internet outages and anomalies`,builder:W,handler:async e=>a({command:`radar annotations outages get`,classification:{safeFlags:[`data-source`,`outage-type`,`outage-cause`,`format`,`dry-run`]}},e,async()=>{let a={limit:e.limit,offset:e.offset,dateRange:e[`date-range`],dateStart:e[`date-start`],dateEnd:e[`date-end`],dataSource:e[`data-source`],outageType:e[`outage-type`],outageCause:e[`outage-cause`],tags:e.tags,query:e.query,asn:e.asn,location:e.location,geoId:e[`geo-id`],origin:e.origin,tld:e.tld,ca:e.ca,log:e.log,bot:e.bot,format:e.format};if(e.dryRun){r({command:`cf radar annotations outages get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/radar/annotations/outages`,pathParams:{},query:a,bodyKind:`none`});return}let o=await t(e),s=await i(`Loading`,async()=>o.send(U,a));n(s,{successLabel:`Loaded`})})};var K={method:`GET`,path:()=>`/radar/annotations/outages/locations`,query:[`limit`,`dateRange`,`dateStart`,`dateEnd`,`format`],errors:{400:`BadRequestError`}};function q(e){return e.usage(`$0 radar annotations outages locations
|
|
25
|
-
|
|
26
|
-
Retrieves the number of outages by location.`).option(`limit`,{type:`number`,description:`Limits the number of objects returned in the response.`}).option(`date-range`,{type:`string`,description:"Filters results by a relative date range ending at the current time. Use `<n>d` for days (up to `364d`) or `<n>w` for weeks (up to `52w`), e.g. `7d`. Append `control` to request the equivalent previous period for comparison: the comparison window is shifted back by the current window's length rounded up to a whole number of weeks, so it keeps the same weekday alignment and does not overlap the current window (e.g. `3dcontrol` covers days -10 to -7, `7dcontrol` covers days -14 to -7, `28dcontrol` covers days -56 to -28, and `10dcontrol` covers days -24 to -14). Mutually exclusive with `dateStart`/`dateEnd`."}).option(`date-start`,{type:`string`,description:"Start of the date range (inclusive). Alternative to `dateRange`; provide together with `dateEnd`."}).option(`date-end`,{type:`string`,description:"End of the date range (inclusive). Alternative to `dateRange`; provide together with `dateStart`."}).option(`format`,{type:`string`,description:`Format in which results will be returned.`,choices:[`JSON`,`CSV`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const J={command:`locations`,describe:`Get the number of outages by location`,builder:q,handler:async e=>a({command:`radar annotations outages locations`,classification:{safeFlags:[`format`,`dry-run`]}},e,async()=>{let a={limit:e.limit,dateRange:e[`date-range`],dateStart:e[`date-start`],dateEnd:e[`date-end`],format:e.format};if(e.dryRun){r({command:`cf radar annotations outages locations`,method:`GET`,url:`https://api.cloudflare.com/client/v4/radar/annotations/outages/locations`,pathParams:{},query:a,bodyKind:`none`});return}let o=await t(e),s=await i(`Loading`,async()=>o.send(K,a));n(s,{successLabel:`Loaded`})})},Y={command:`outages`,describe:`Operations for annotations.outages`,builder:e=>e.command(G).command(J).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},X={command:`annotations`,describe:`Radar annotations marking significant Internet events (outages, cable cuts, etc.)`,builder:e=>e.command(z).command(H).command(Y).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var Z={method:`GET`,path:t=>e`/radar/as112/summary/${t.dimension}`,query:[`name`,`dateRange`,`dateStart`,`dateEnd`,`location`,`continent`,`queryType`,`protocol`,`responseCode`,`limitPerGroup`,`format`],errors:{400:`BadRequestError`}};function re(e){return e.usage(`$0 radar as112 summary-v2 <dimension>
|
|
27
|
-
|
|
28
|
-
Retrieves the distribution of AS112 queries by the specified dimension.`).positional(`dimension`,{type:`string`,description:`Specifies the attribute by which to group the results.`,demandOption:!0}).option(`name`,{type:`string`,description:`Array of names used to label the series in the response.`}).option(`date-range`,{type:`string`,description:"Filters results by relative date range ending at the current time, with each value producing a separate series. Use `<n>d` for days (up to `364d`) or `<n>w` for weeks (up to `52w`). Append `control` to request the equivalent previous period for comparison: the comparison window is shifted back by the current window's length rounded up to a whole number of weeks, so it keeps the same weekday alignment and does not overlap the current window (e.g. `7dcontrol` covers days -14 to -7, `10dcontrol` covers days -24 to -14). For example, pass `7d` and `7dcontrol` to compare this week with the previous week. All series must resolve to the same duration as the main series; relative ranges (including `control`) satisfy this automatically. Use this parameter or set specific start and end dates (`dateStart` and `dateEnd` parameters)."}).option(`date-start`,{type:`string`,description:"Start of the date range. Alternative to `dateRange`; provide together with `dateEnd`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`date-end`,{type:`string`,description:"End of the date range (inclusive). Alternative to `dateRange`; provide together with `dateStart`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`location`,{type:`string`,description:"Filters results by location. Specify a comma-separated list of alpha-2 codes. Prefix with `-` to exclude locations from results. For example, `-US,PT` excludes results from the US, but includes results from PT."}).option(`continent`,{type:`string`,description:"Filters results by continent. Specify a comma-separated list of alpha-2 codes. Prefix with `-` to exclude continents from results. For example, `-EU,NA` excludes results from EU, but includes results from NA."}).option(`query-type`,{type:`string`,description:`Filters results by DNS query type.`}).option(`protocol`,{type:`string`,description:`Filters results by DNS transport protocol.`}).option(`response-code`,{type:`string`,description:`Filters results by DNS response code.`}).option(`limit-per-group`,{type:`number`,description:`Limits the number of objects per group to the top items within the specified time range. When item count exceeds the limit, extra items appear grouped under an "other" category. Only supported on high-cardinality dimensions; otherwise the request is rejected. Minimum value is 2.`}).option(`format`,{type:`string`,description:`Format in which results will be returned.`,choices:[`JSON`,`CSV`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const ie={command:`summary-v2 <dimension>`,describe:`Get AS112 summary by dimension`,builder:re,handler:async e=>a({command:`radar as112 summary-v2`,classification:{safeFlags:[`format`,`dry-run`]}},e,async()=>{let a={name:e.name,dateRange:e[`date-range`],dateStart:e[`date-start`],dateEnd:e[`date-end`],location:e.location,continent:e.continent,queryType:e[`query-type`],protocol:e.protocol,responseCode:e[`response-code`],limitPerGroup:e[`limit-per-group`],format:e.format};if(e.dryRun){r({command:`cf radar as112 summary-v2`,method:`GET`,url:`https://api.cloudflare.com/client/v4/radar/as112/summary/${e.dimension==null?`<dimension>`:encodeURIComponent(String(e.dimension))}`,pathParams:{dimension:String(e.dimension??``)},query:a,bodyKind:`none`});return}let o=await t(e),s=await i(`Loading`,async()=>o.send(Z,{dimension:e.dimension,...a}));n(s,{successLabel:`Loaded`})})};var ae={method:`GET`,path:t=>e`/radar/as112/timeseries_groups/${t.dimension}`,query:[`aggInterval`,`name`,`dateRange`,`dateStart`,`dateEnd`,`location`,`continent`,`queryType`,`protocol`,`responseCode`,`limitPerGroup`,`format`],errors:{400:`BadRequestError`}};function oe(e){return e.usage(`$0 radar as112 timeseries-groups-v2 <dimension>
|
|
29
|
-
|
|
30
|
-
Retrieves the distribution of AS112 queries grouped by dimension over time.`).positional(`dimension`,{type:`string`,description:`Specifies the attribute by which to group the results.`,demandOption:!0}).option(`agg-interval`,{type:`string`,description:`Aggregation interval of the results (e.g., in 15 minutes or 1 hour intervals). Refer to [Aggregation intervals](https://developers.cloudflare.com/radar/concepts/aggregation-intervals/). When omitted, the interval is auto-selected from the requested date range; finer intervals are only available for shorter ranges. If the requested interval is too granular for the date range, the request is rejected.`,choices:[`15m`,`1h`,`1d`,`1w`]}).option(`name`,{type:`string`,description:`Array of names used to label the series in the response.`}).option(`date-range`,{type:`string`,description:"Filters results by relative date range ending at the current time, with each value producing a separate series. Use `<n>d` for days (up to `364d`) or `<n>w` for weeks (up to `52w`). Append `control` to request the equivalent previous period for comparison: the comparison window is shifted back by the current window's length rounded up to a whole number of weeks, so it keeps the same weekday alignment and does not overlap the current window (e.g. `7dcontrol` covers days -14 to -7, `10dcontrol` covers days -24 to -14). For example, pass `7d` and `7dcontrol` to compare this week with the previous week. All series must resolve to the same duration as the main series; relative ranges (including `control`) satisfy this automatically. Use this parameter or set specific start and end dates (`dateStart` and `dateEnd` parameters)."}).option(`date-start`,{type:`string`,description:"Start of the date range. Alternative to `dateRange`; provide together with `dateEnd`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`date-end`,{type:`string`,description:"End of the date range (inclusive). Alternative to `dateRange`; provide together with `dateStart`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`location`,{type:`string`,description:"Filters results by location. Specify a comma-separated list of alpha-2 codes. Prefix with `-` to exclude locations from results. For example, `-US,PT` excludes results from the US, but includes results from PT."}).option(`continent`,{type:`string`,description:"Filters results by continent. Specify a comma-separated list of alpha-2 codes. Prefix with `-` to exclude continents from results. For example, `-EU,NA` excludes results from EU, but includes results from NA."}).option(`query-type`,{type:`string`,description:`Filters results by DNS query type.`}).option(`protocol`,{type:`string`,description:`Filters results by DNS transport protocol.`}).option(`response-code`,{type:`string`,description:`Filters results by DNS response code.`}).option(`limit-per-group`,{type:`number`,description:`Limits the number of objects per group to the top items within the specified time range. When item count exceeds the limit, extra items appear grouped under an "other" category. Only supported on high-cardinality dimensions; otherwise the request is rejected. Minimum value is 2.`}).option(`format`,{type:`string`,description:`Format in which results will be returned.`,choices:[`JSON`,`CSV`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const se={command:`timeseries-groups-v2 <dimension>`,describe:`Get AS112 time series grouped by dimension`,builder:oe,handler:async e=>a({command:`radar as112 timeseries-groups-v2`,classification:{safeFlags:[`agg-interval`,`format`,`dry-run`]}},e,async()=>{let a={aggInterval:e[`agg-interval`],name:e.name,dateRange:e[`date-range`],dateStart:e[`date-start`],dateEnd:e[`date-end`],location:e.location,continent:e.continent,queryType:e[`query-type`],protocol:e.protocol,responseCode:e[`response-code`],limitPerGroup:e[`limit-per-group`],format:e.format};if(e.dryRun){r({command:`cf radar as112 timeseries-groups-v2`,method:`GET`,url:`https://api.cloudflare.com/client/v4/radar/as112/timeseries_groups/${e.dimension==null?`<dimension>`:encodeURIComponent(String(e.dimension))}`,pathParams:{dimension:String(e.dimension??``)},query:a,bodyKind:`none`});return}let o=await t(e),s=await i(`Loading`,async()=>o.send(ae,{dimension:e.dimension,...a}));n(s,{successLabel:`Loaded`})})};var ce={method:`GET`,path:()=>`/radar/as112/timeseries`,query:[`aggInterval`,`name`,`dateRange`,`dateStart`,`dateEnd`,`location`,`continent`,`queryType`,`protocol`,`responseCode`,`format`],errors:{400:`BadRequestError`}};function le(e){return e.usage(`$0 radar as112 timeseries
|
|
31
|
-
|
|
32
|
-
Retrieves the AS112 DNS queries over time.`).option(`agg-interval`,{type:`string`,description:`Aggregation interval of the results (e.g., in 15 minutes or 1 hour intervals). Refer to [Aggregation intervals](https://developers.cloudflare.com/radar/concepts/aggregation-intervals/). When omitted, the interval is auto-selected from the requested date range; finer intervals are only available for shorter ranges. If the requested interval is too granular for the date range, the request is rejected.`,choices:[`15m`,`1h`,`1d`,`1w`]}).option(`name`,{type:`string`,description:`Array of names used to label the series in the response.`}).option(`date-range`,{type:`string`,description:"Filters results by relative date range ending at the current time, with each value producing a separate series. Use `<n>d` for days (up to `364d`) or `<n>w` for weeks (up to `52w`). Append `control` to request the equivalent previous period for comparison: the comparison window is shifted back by the current window's length rounded up to a whole number of weeks, so it keeps the same weekday alignment and does not overlap the current window (e.g. `7dcontrol` covers days -14 to -7, `10dcontrol` covers days -24 to -14). For example, pass `7d` and `7dcontrol` to compare this week with the previous week. All series must resolve to the same duration as the main series; relative ranges (including `control`) satisfy this automatically. Use this parameter or set specific start and end dates (`dateStart` and `dateEnd` parameters)."}).option(`date-start`,{type:`string`,description:"Start of the date range. Alternative to `dateRange`; provide together with `dateEnd`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`date-end`,{type:`string`,description:"End of the date range (inclusive). Alternative to `dateRange`; provide together with `dateStart`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`location`,{type:`string`,description:"Filters results by location. Specify a comma-separated list of alpha-2 codes. Prefix with `-` to exclude locations from results. For example, `-US,PT` excludes results from the US, but includes results from PT."}).option(`continent`,{type:`string`,description:"Filters results by continent. Specify a comma-separated list of alpha-2 codes. Prefix with `-` to exclude continents from results. For example, `-EU,NA` excludes results from EU, but includes results from NA."}).option(`query-type`,{type:`string`,description:`Filters results by DNS query type.`}).option(`protocol`,{type:`string`,description:`Filters results by DNS transport protocol.`}).option(`response-code`,{type:`string`,description:`Filters results by DNS response code.`}).option(`format`,{type:`string`,description:`Format in which results will be returned.`,choices:[`JSON`,`CSV`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const ue={command:`timeseries`,describe:`Get AS112 DNS queries time series`,builder:le,handler:async e=>a({command:`radar as112 timeseries`,classification:{safeFlags:[`agg-interval`,`format`,`dry-run`]}},e,async()=>{let a={aggInterval:e[`agg-interval`],name:e.name,dateRange:e[`date-range`],dateStart:e[`date-start`],dateEnd:e[`date-end`],location:e.location,continent:e.continent,queryType:e[`query-type`],protocol:e.protocol,responseCode:e[`response-code`],format:e.format};if(e.dryRun){r({command:`cf radar as112 timeseries`,method:`GET`,url:`https://api.cloudflare.com/client/v4/radar/as112/timeseries`,pathParams:{},query:a,bodyKind:`none`});return}let o=await t(e),s=await i(`Loading`,async()=>o.send(ce,a));n(s,{successLabel:`Loaded`})})};var de={method:`GET`,path:t=>e`/radar/as112/top/locations/dnssec/${t.dnssec}`,query:[`limit`,`name`,`dateRange`,`dateStart`,`dateEnd`,`location`,`continent`,`format`],errors:{404:`NotFoundError`}};function fe(e){return e.usage(`$0 radar as112 top dnssec <dnssec>
|
|
33
|
-
|
|
34
|
-
Retrieves the top locations of DNS queries to AS112 with DNSSEC (DNS Security Extensions) support.`).positional(`dnssec`,{type:`string`,description:`DNSSEC (DNS Security Extensions) status.`,demandOption:!0}).option(`limit`,{type:`number`,description:`Limits the number of objects returned in the response.`}).option(`name`,{type:`string`,description:`Array of names used to label the series in the response.`}).option(`date-range`,{type:`string`,description:"Filters results by relative date range ending at the current time, with each value producing a separate series. Use `<n>d` for days (up to `364d`) or `<n>w` for weeks (up to `52w`). Append `control` to request the equivalent previous period for comparison: the comparison window is shifted back by the current window's length rounded up to a whole number of weeks, so it keeps the same weekday alignment and does not overlap the current window (e.g. `7dcontrol` covers days -14 to -7, `10dcontrol` covers days -24 to -14). For example, pass `7d` and `7dcontrol` to compare this week with the previous week. All series must resolve to the same duration as the main series; relative ranges (including `control`) satisfy this automatically. Use this parameter or set specific start and end dates (`dateStart` and `dateEnd` parameters)."}).option(`date-start`,{type:`string`,description:"Start of the date range. Alternative to `dateRange`; provide together with `dateEnd`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`date-end`,{type:`string`,description:"End of the date range (inclusive). Alternative to `dateRange`; provide together with `dateStart`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`location`,{type:`string`,description:"Filters results by location. Specify a comma-separated list of alpha-2 codes. Prefix with `-` to exclude locations from results. For example, `-US,PT` excludes results from the US, but includes results from PT."}).option(`continent`,{type:`string`,description:"Filters results by continent. Specify a comma-separated list of alpha-2 codes. Prefix with `-` to exclude continents from results. For example, `-EU,NA` excludes results from EU, but includes results from NA."}).option(`format`,{type:`string`,description:`Format in which results will be returned.`,choices:[`JSON`,`CSV`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const pe={command:`dnssec <dnssec>`,describe:`Get top locations by AS112 DNS queries with DNSSEC support`,builder:fe,handler:async e=>a({command:`radar as112 top dnssec`,classification:{safeFlags:[`format`,`dry-run`]}},e,async()=>{let a={limit:e.limit,name:e.name,dateRange:e[`date-range`],dateStart:e[`date-start`],dateEnd:e[`date-end`],location:e.location,continent:e.continent,format:e.format};if(e.dryRun){r({command:`cf radar as112 top dnssec`,method:`GET`,url:`https://api.cloudflare.com/client/v4/radar/as112/top/locations/dnssec/${e.dnssec==null?`<dnssec>`:encodeURIComponent(String(e.dnssec))}`,pathParams:{dnssec:String(e.dnssec??``)},query:a,bodyKind:`none`});return}let o=await t(e),s=await i(`Loading`,async()=>o.send(de,{dnssec:e.dnssec,...a}));n(s,{successLabel:`Loaded`})})};var me={method:`GET`,path:t=>e`/radar/as112/top/locations/edns/${t.edns}`,query:[`limit`,`name`,`dateRange`,`dateStart`,`dateEnd`,`location`,`continent`,`format`],errors:{404:`NotFoundError`}};function he(e){return e.usage(`$0 radar as112 top edns <edns>
|
|
35
|
-
|
|
36
|
-
Retrieves the top locations of DNS queries to AS112 with EDNS (Extension Mechanisms for DNS) support.`).positional(`edns`,{type:`string`,description:`EDNS (Extension Mechanisms for DNS) status.`,demandOption:!0}).option(`limit`,{type:`number`,description:`Limits the number of objects returned in the response.`}).option(`name`,{type:`string`,description:`Array of names used to label the series in the response.`}).option(`date-range`,{type:`string`,description:"Filters results by relative date range ending at the current time, with each value producing a separate series. Use `<n>d` for days (up to `364d`) or `<n>w` for weeks (up to `52w`). Append `control` to request the equivalent previous period for comparison: the comparison window is shifted back by the current window's length rounded up to a whole number of weeks, so it keeps the same weekday alignment and does not overlap the current window (e.g. `7dcontrol` covers days -14 to -7, `10dcontrol` covers days -24 to -14). For example, pass `7d` and `7dcontrol` to compare this week with the previous week. All series must resolve to the same duration as the main series; relative ranges (including `control`) satisfy this automatically. Use this parameter or set specific start and end dates (`dateStart` and `dateEnd` parameters)."}).option(`date-start`,{type:`string`,description:"Start of the date range. Alternative to `dateRange`; provide together with `dateEnd`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`date-end`,{type:`string`,description:"End of the date range (inclusive). Alternative to `dateRange`; provide together with `dateStart`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`location`,{type:`string`,description:"Filters results by location. Specify a comma-separated list of alpha-2 codes. Prefix with `-` to exclude locations from results. For example, `-US,PT` excludes results from the US, but includes results from PT."}).option(`continent`,{type:`string`,description:"Filters results by continent. Specify a comma-separated list of alpha-2 codes. Prefix with `-` to exclude continents from results. For example, `-EU,NA` excludes results from EU, but includes results from NA."}).option(`format`,{type:`string`,description:`Format in which results will be returned.`,choices:[`JSON`,`CSV`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const ge={command:`edns <edns>`,describe:`Get top locations by AS112 DNS queries with EDNS support`,builder:he,handler:async e=>a({command:`radar as112 top edns`,classification:{safeFlags:[`format`,`dry-run`]}},e,async()=>{let a={limit:e.limit,name:e.name,dateRange:e[`date-range`],dateStart:e[`date-start`],dateEnd:e[`date-end`],location:e.location,continent:e.continent,format:e.format};if(e.dryRun){r({command:`cf radar as112 top edns`,method:`GET`,url:`https://api.cloudflare.com/client/v4/radar/as112/top/locations/edns/${e.edns==null?`<edns>`:encodeURIComponent(String(e.edns))}`,pathParams:{edns:String(e.edns??``)},query:a,bodyKind:`none`});return}let o=await t(e),s=await i(`Loading`,async()=>o.send(me,{edns:e.edns,...a}));n(s,{successLabel:`Loaded`})})};var _e={method:`GET`,path:t=>e`/radar/as112/top/locations/ip_version/${t.ip_version}`,query:[`limit`,`name`,`dateRange`,`dateStart`,`dateEnd`,`location`,`continent`,`format`],errors:{404:`NotFoundError`}};function ve(e){return e.usage(`$0 radar as112 top ip-version <ip-version>
|
|
37
|
-
|
|
38
|
-
Retrieves the top locations of DNS queries to AS112 for an IP version.`).positional(`ip-version`,{type:`string`,description:`IP version.`,demandOption:!0}).option(`limit`,{type:`number`,description:`Limits the number of objects returned in the response.`}).option(`name`,{type:`string`,description:`Array of names used to label the series in the response.`}).option(`date-range`,{type:`string`,description:"Filters results by relative date range ending at the current time, with each value producing a separate series. Use `<n>d` for days (up to `364d`) or `<n>w` for weeks (up to `52w`). Append `control` to request the equivalent previous period for comparison: the comparison window is shifted back by the current window's length rounded up to a whole number of weeks, so it keeps the same weekday alignment and does not overlap the current window (e.g. `7dcontrol` covers days -14 to -7, `10dcontrol` covers days -24 to -14). For example, pass `7d` and `7dcontrol` to compare this week with the previous week. All series must resolve to the same duration as the main series; relative ranges (including `control`) satisfy this automatically. Use this parameter or set specific start and end dates (`dateStart` and `dateEnd` parameters)."}).option(`date-start`,{type:`string`,description:"Start of the date range. Alternative to `dateRange`; provide together with `dateEnd`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`date-end`,{type:`string`,description:"End of the date range (inclusive). Alternative to `dateRange`; provide together with `dateStart`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`location`,{type:`string`,description:"Filters results by location. Specify a comma-separated list of alpha-2 codes. Prefix with `-` to exclude locations from results. For example, `-US,PT` excludes results from the US, but includes results from PT."}).option(`continent`,{type:`string`,description:"Filters results by continent. Specify a comma-separated list of alpha-2 codes. Prefix with `-` to exclude continents from results. For example, `-EU,NA` excludes results from EU, but includes results from NA."}).option(`format`,{type:`string`,description:`Format in which results will be returned.`,choices:[`JSON`,`CSV`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const ye={command:`ip-version <ip-version>`,describe:`Get top locations by AS112 DNS queries for an IP version`,builder:ve,handler:async e=>a({command:`radar as112 top ip-version`,classification:{safeFlags:[`format`,`dry-run`]}},e,async()=>{let a={limit:e.limit,name:e.name,dateRange:e[`date-range`],dateStart:e[`date-start`],dateEnd:e[`date-end`],location:e.location,continent:e.continent,format:e.format};if(e.dryRun){r({command:`cf radar as112 top ip-version`,method:`GET`,url:`https://api.cloudflare.com/client/v4/radar/as112/top/locations/ip_version/${e[`ip-version`]==null?`<ip-version>`:encodeURIComponent(String(e[`ip-version`]))}`,pathParams:{"ip-version":String(e[`ip-version`]??``)},query:a,bodyKind:`none`});return}let o=await t(e),s=await i(`Loading`,async()=>o.send(_e,{ip_version:e[`ip-version`],...a}));n(s,{successLabel:`Loaded`})})};var be={method:`GET`,path:()=>`/radar/as112/top/locations`,query:[`limit`,`name`,`dateRange`,`dateStart`,`dateEnd`,`location`,`continent`,`format`],errors:{404:`NotFoundError`}};function xe(e){return e.usage(`$0 radar as112 top locations
|
|
39
|
-
|
|
40
|
-
Retrieves the top locations by AS112 DNS queries.`).option(`limit`,{type:`number`,description:`Limits the number of objects returned in the response.`}).option(`name`,{type:`string`,description:`Array of names used to label the series in the response.`}).option(`date-range`,{type:`string`,description:"Filters results by relative date range ending at the current time, with each value producing a separate series. Use `<n>d` for days (up to `364d`) or `<n>w` for weeks (up to `52w`). Append `control` to request the equivalent previous period for comparison: the comparison window is shifted back by the current window's length rounded up to a whole number of weeks, so it keeps the same weekday alignment and does not overlap the current window (e.g. `7dcontrol` covers days -14 to -7, `10dcontrol` covers days -24 to -14). For example, pass `7d` and `7dcontrol` to compare this week with the previous week. All series must resolve to the same duration as the main series; relative ranges (including `control`) satisfy this automatically. Use this parameter or set specific start and end dates (`dateStart` and `dateEnd` parameters)."}).option(`date-start`,{type:`string`,description:"Start of the date range. Alternative to `dateRange`; provide together with `dateEnd`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`date-end`,{type:`string`,description:"End of the date range (inclusive). Alternative to `dateRange`; provide together with `dateStart`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`location`,{type:`string`,description:"Filters results by location. Specify a comma-separated list of alpha-2 codes. Prefix with `-` to exclude locations from results. For example, `-US,PT` excludes results from the US, but includes results from PT."}).option(`continent`,{type:`string`,description:"Filters results by continent. Specify a comma-separated list of alpha-2 codes. Prefix with `-` to exclude continents from results. For example, `-EU,NA` excludes results from EU, but includes results from NA."}).option(`format`,{type:`string`,description:`Format in which results will be returned.`,choices:[`JSON`,`CSV`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const Se={command:`locations`,describe:`Get top locations by AS112 DNS queries`,builder:xe,handler:async e=>a({command:`radar as112 top locations`,classification:{safeFlags:[`format`,`dry-run`]}},e,async()=>{let a={limit:e.limit,name:e.name,dateRange:e[`date-range`],dateStart:e[`date-start`],dateEnd:e[`date-end`],location:e.location,continent:e.continent,format:e.format};if(e.dryRun){r({command:`cf radar as112 top locations`,method:`GET`,url:`https://api.cloudflare.com/client/v4/radar/as112/top/locations`,pathParams:{},query:a,bodyKind:`none`});return}let o=await t(e),s=await i(`Loading`,async()=>o.send(be,a));n(s,{successLabel:`Loaded`})})},Ce={command:`top`,describe:`Operations for as112.top`,builder:e=>e.command(pe).command(ge).command(ye).command(Se).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},we={command:`as112`,describe:`AS112 DNS sinkhole statistics — reverse DNS query volumes for private address space`,builder:e=>e.command(ie).command(ue).command(se).command(Ce).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var Te={method:`GET`,path:t=>e`/radar/attacks/layer3/summary/${t.dimension}`,query:[`name`,`dateRange`,`dateStart`,`dateEnd`,`location`,`continent`,`ipVersion`,`protocol`,`direction`,`limitPerGroup`,`format`],errors:{400:`BadRequestError`}};function Ee(e){return e.usage(`$0 radar attacks layer3 summary-v2 <dimension>
|
|
41
|
-
|
|
42
|
-
Retrieves the distribution of layer 3 attacks by the specified dimension.`).positional(`dimension`,{type:`string`,description:`Specifies the attribute by which to group the results.`,demandOption:!0}).option(`name`,{type:`string`,description:`Array of names used to label the series in the response.`}).option(`date-range`,{type:`string`,description:"Filters results by relative date range ending at the current time, with each value producing a separate series. Use `<n>d` for days (up to `364d`) or `<n>w` for weeks (up to `52w`). Append `control` to request the equivalent previous period for comparison: the comparison window is shifted back by the current window's length rounded up to a whole number of weeks, so it keeps the same weekday alignment and does not overlap the current window (e.g. `7dcontrol` covers days -14 to -7, `10dcontrol` covers days -24 to -14). For example, pass `7d` and `7dcontrol` to compare this week with the previous week. All series must resolve to the same duration as the main series; relative ranges (including `control`) satisfy this automatically. Use this parameter or set specific start and end dates (`dateStart` and `dateEnd` parameters)."}).option(`date-start`,{type:`string`,description:"Start of the date range. Alternative to `dateRange`; provide together with `dateEnd`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`date-end`,{type:`string`,description:"End of the date range (inclusive). Alternative to `dateRange`; provide together with `dateStart`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`location`,{type:`string`,description:"Filters results by location. Specify a comma-separated list of alpha-2 codes. Prefix with `-` to exclude locations from results. For example, `-US,PT` excludes results from the US, but includes results from PT."}).option(`continent`,{type:`string`,description:"Filters results by continent. Specify a comma-separated list of alpha-2 codes. Prefix with `-` to exclude continents from results. For example, `-EU,NA` excludes results from EU, but includes results from NA."}).option(`ip-version`,{type:`string`,description:`Filters results by IP version (Ipv4 vs. IPv6).`}).option(`protocol`,{type:`string`,description:`Filters the results by layer 3/4 protocol.`}).option(`direction`,{type:`string`,description:"Specifies whether the `location` filter applies to the source or target location.",choices:[`ORIGIN`,`TARGET`]}).option(`limit-per-group`,{type:`number`,description:`Limits the number of objects per group to the top items within the specified time range. When item count exceeds the limit, extra items appear grouped under an "other" category. Only supported on high-cardinality dimensions; otherwise the request is rejected. Minimum value is 2.`}).option(`format`,{type:`string`,description:`Format in which results will be returned.`,choices:[`JSON`,`CSV`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const De={command:`summary-v2 <dimension>`,describe:`Get layer 3 attacks summary by dimension`,builder:Ee,handler:async e=>a({command:`radar attacks layer3 summary-v2`,classification:{safeFlags:[`direction`,`format`,`dry-run`]}},e,async()=>{let a={name:e.name,dateRange:e[`date-range`],dateStart:e[`date-start`],dateEnd:e[`date-end`],location:e.location,continent:e.continent,ipVersion:e[`ip-version`],protocol:e.protocol,direction:e.direction,limitPerGroup:e[`limit-per-group`],format:e.format};if(e.dryRun){r({command:`cf radar attacks layer3 summary-v2`,method:`GET`,url:`https://api.cloudflare.com/client/v4/radar/attacks/layer3/summary/${e.dimension==null?`<dimension>`:encodeURIComponent(String(e.dimension))}`,pathParams:{dimension:String(e.dimension??``)},query:a,bodyKind:`none`});return}let o=await t(e),s=await i(`Loading`,async()=>o.send(Te,{dimension:e.dimension,...a}));n(s,{successLabel:`Loaded`})})};var Oe={method:`GET`,path:t=>e`/radar/attacks/layer3/timeseries_groups/${t.dimension}`,query:[`aggInterval`,`name`,`dateRange`,`dateStart`,`dateEnd`,`location`,`continent`,`ipVersion`,`protocol`,`normalization`,`direction`,`limitPerGroup`,`format`],errors:{400:`BadRequestError`}};function ke(e){return e.usage(`$0 radar attacks layer3 timeseries-groups-v2 <dimension>
|
|
43
|
-
|
|
44
|
-
Retrieves the distribution of layer 3 attacks grouped by dimension over time.`).positional(`dimension`,{type:`string`,description:`Specifies the attribute by which to group the results.`,demandOption:!0}).option(`agg-interval`,{type:`string`,description:`Aggregation interval of the results (e.g., in 15 minutes or 1 hour intervals). Refer to [Aggregation intervals](https://developers.cloudflare.com/radar/concepts/aggregation-intervals/). When omitted, the interval is auto-selected from the requested date range; finer intervals are only available for shorter ranges. If the requested interval is too granular for the date range, the request is rejected.`,choices:[`15m`,`1h`,`1d`,`1w`]}).option(`name`,{type:`string`,description:`Array of names used to label the series in the response.`}).option(`date-range`,{type:`string`,description:"Filters results by relative date range ending at the current time, with each value producing a separate series. Use `<n>d` for days (up to `364d`) or `<n>w` for weeks (up to `52w`). Append `control` to request the equivalent previous period for comparison: the comparison window is shifted back by the current window's length rounded up to a whole number of weeks, so it keeps the same weekday alignment and does not overlap the current window (e.g. `7dcontrol` covers days -14 to -7, `10dcontrol` covers days -24 to -14). For example, pass `7d` and `7dcontrol` to compare this week with the previous week. All series must resolve to the same duration as the main series; relative ranges (including `control`) satisfy this automatically. Use this parameter or set specific start and end dates (`dateStart` and `dateEnd` parameters)."}).option(`date-start`,{type:`string`,description:"Start of the date range. Alternative to `dateRange`; provide together with `dateEnd`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`date-end`,{type:`string`,description:"End of the date range (inclusive). Alternative to `dateRange`; provide together with `dateStart`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`location`,{type:`string`,description:"Filters results by location. Specify a comma-separated list of alpha-2 codes. Prefix with `-` to exclude locations from results. For example, `-US,PT` excludes results from the US, but includes results from PT."}).option(`continent`,{type:`string`,description:"Filters results by continent. Specify a comma-separated list of alpha-2 codes. Prefix with `-` to exclude continents from results. For example, `-EU,NA` excludes results from EU, but includes results from NA."}).option(`ip-version`,{type:`string`,description:`Filters results by IP version (Ipv4 vs. IPv6).`}).option(`protocol`,{type:`string`,description:`Filters the results by layer 3/4 protocol.`}).option(`normalization`,{type:`string`,description:`Normalization method applied to the results. Refer to [Normalization methods](https://developers.cloudflare.com/radar/concepts/normalization/).`,choices:[`PERCENTAGE`,`MIN0_MAX`]}).option(`direction`,{type:`string`,description:"Specifies whether the `location` filter applies to the source or target location.",choices:[`ORIGIN`,`TARGET`]}).option(`limit-per-group`,{type:`number`,description:`Limits the number of objects per group to the top items within the specified time range. When item count exceeds the limit, extra items appear grouped under an "other" category. Only supported on high-cardinality dimensions; otherwise the request is rejected. Minimum value is 2.`}).option(`format`,{type:`string`,description:`Format in which results will be returned.`,choices:[`JSON`,`CSV`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const Ae={command:`timeseries-groups-v2 <dimension>`,describe:`Get layer 3 attacks time series grouped by dimension`,builder:ke,handler:async e=>a({command:`radar attacks layer3 timeseries-groups-v2`,classification:{safeFlags:[`agg-interval`,`normalization`,`direction`,`format`,`dry-run`]}},e,async()=>{let a={aggInterval:e[`agg-interval`],name:e.name,dateRange:e[`date-range`],dateStart:e[`date-start`],dateEnd:e[`date-end`],location:e.location,continent:e.continent,ipVersion:e[`ip-version`],protocol:e.protocol,normalization:e.normalization,direction:e.direction,limitPerGroup:e[`limit-per-group`],format:e.format};if(e.dryRun){r({command:`cf radar attacks layer3 timeseries-groups-v2`,method:`GET`,url:`https://api.cloudflare.com/client/v4/radar/attacks/layer3/timeseries_groups/${e.dimension==null?`<dimension>`:encodeURIComponent(String(e.dimension))}`,pathParams:{dimension:String(e.dimension??``)},query:a,bodyKind:`none`});return}let o=await t(e),s=await i(`Loading`,async()=>o.send(Oe,{dimension:e.dimension,...a}));n(s,{successLabel:`Loaded`})})};var je={method:`GET`,path:()=>`/radar/attacks/layer3/timeseries`,query:[`aggInterval`,`name`,`dateRange`,`dateStart`,`dateEnd`,`asn`,`location`,`continent`,`ipVersion`,`protocol`,`normalization`,`metric`,`direction`,`format`],errors:{400:`BadRequestError`}};function Me(e){return e.usage(`$0 radar attacks layer3 timeseries
|
|
45
|
-
|
|
46
|
-
Retrieves layer 3 attacks over time.`).option(`agg-interval`,{type:`string`,description:`Aggregation interval of the results (e.g., in 15 minutes or 1 hour intervals). Refer to [Aggregation intervals](https://developers.cloudflare.com/radar/concepts/aggregation-intervals/). When omitted, the interval is auto-selected from the requested date range; finer intervals are only available for shorter ranges. If the requested interval is too granular for the date range, the request is rejected.`,choices:[`15m`,`1h`,`1d`,`1w`]}).option(`name`,{type:`string`,description:`Array of names used to label the series in the response.`}).option(`date-range`,{type:`string`,description:"Filters results by relative date range ending at the current time, with each value producing a separate series. Use `<n>d` for days (up to `364d`) or `<n>w` for weeks (up to `52w`). Append `control` to request the equivalent previous period for comparison: the comparison window is shifted back by the current window's length rounded up to a whole number of weeks, so it keeps the same weekday alignment and does not overlap the current window (e.g. `7dcontrol` covers days -14 to -7, `10dcontrol` covers days -24 to -14). For example, pass `7d` and `7dcontrol` to compare this week with the previous week. All series must resolve to the same duration as the main series; relative ranges (including `control`) satisfy this automatically. Use this parameter or set specific start and end dates (`dateStart` and `dateEnd` parameters)."}).option(`date-start`,{type:`string`,description:"Start of the date range. Alternative to `dateRange`; provide together with `dateEnd`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`date-end`,{type:`string`,description:"End of the date range (inclusive). Alternative to `dateRange`; provide together with `dateStart`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`asn`,{type:`string`,description:"Filters results by Autonomous System. Specify one or more Autonomous System Numbers (ASNs) as a comma-separated list. Prefix with `-` to exclude ASNs from results. For example, `-174, 3356` excludes results from AS174, but includes results from AS3356."}).option(`location`,{type:`string`,description:"Filters results by location. Specify a comma-separated list of alpha-2 codes. Prefix with `-` to exclude locations from results. For example, `-US,PT` excludes results from the US, but includes results from PT."}).option(`continent`,{type:`string`,description:"Filters results by continent. Specify a comma-separated list of alpha-2 codes. Prefix with `-` to exclude continents from results. For example, `-EU,NA` excludes results from EU, but includes results from NA."}).option(`ip-version`,{type:`string`,description:`Filters results by IP version (Ipv4 vs. IPv6).`}).option(`protocol`,{type:`string`,description:`Filters the results by layer 3/4 protocol.`}).option(`normalization`,{type:`string`,description:"Normalization method applied to the results. Refer to [Normalization methods](https://developers.cloudflare.com/radar/concepts/normalization/). `PERCENTAGE_CHANGE` requires exactly one comparison series (e.g. a `control` date range).",choices:[`PERCENTAGE_CHANGE`,`MIN0_MAX`]}).option(`metric`,{type:`string`,description:`Measurement units, eg. bytes.`,choices:[`BYTES`,`BYTES_OLD`]}).option(`direction`,{type:`string`,description:"Specifies whether the `location` filter applies to the source or target location.",choices:[`ORIGIN`,`TARGET`]}).option(`format`,{type:`string`,description:`Format in which results will be returned.`,choices:[`JSON`,`CSV`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const Ne={command:`timeseries`,describe:`Get layer 3 attacks by bytes time series`,builder:Me,handler:async e=>a({command:`radar attacks layer3 timeseries`,classification:{safeFlags:[`agg-interval`,`normalization`,`metric`,`direction`,`format`,`dry-run`]}},e,async()=>{let a={aggInterval:e[`agg-interval`],name:e.name,dateRange:e[`date-range`],dateStart:e[`date-start`],dateEnd:e[`date-end`],asn:e.asn,location:e.location,continent:e.continent,ipVersion:e[`ip-version`],protocol:e.protocol,normalization:e.normalization,metric:e.metric,direction:e.direction,format:e.format};if(e.dryRun){r({command:`cf radar attacks layer3 timeseries`,method:`GET`,url:`https://api.cloudflare.com/client/v4/radar/attacks/layer3/timeseries`,pathParams:{},query:a,bodyKind:`none`});return}let o=await t(e),s=await i(`Loading`,async()=>o.send(je,a));n(s,{successLabel:`Loaded`})})};var Pe={method:`GET`,path:()=>`/radar/attacks/layer3/top/attacks`,query:[`limit`,`name`,`dateRange`,`dateStart`,`dateEnd`,`location`,`continent`,`ipVersion`,`protocol`,`limitDirection`,`limitPerLocation`,`magnitude`,`normalization`,`format`],errors:{404:`NotFoundError`}};function Fe(e){return e.usage(`$0 radar attacks layer3 top attacks
|
|
47
|
-
|
|
48
|
-
Retrieves the top layer 3 attacks from origin to target location. Values are a percentage out of the total layer 3 attacks (with billing country). You can optionally limit the number of attacks by origin/target location (useful if all the top attacks are from or to the same location).`).option(`limit`,{type:`number`,description:`Limits the number of objects returned in the response.`}).option(`name`,{type:`string`,description:`Array of names used to label the series in the response.`}).option(`date-range`,{type:`string`,description:"Filters results by relative date range ending at the current time, with each value producing a separate series. Use `<n>d` for days (up to `364d`) or `<n>w` for weeks (up to `52w`). Append `control` to request the equivalent previous period for comparison: the comparison window is shifted back by the current window's length rounded up to a whole number of weeks, so it keeps the same weekday alignment and does not overlap the current window (e.g. `7dcontrol` covers days -14 to -7, `10dcontrol` covers days -24 to -14). For example, pass `7d` and `7dcontrol` to compare this week with the previous week. All series must resolve to the same duration as the main series; relative ranges (including `control`) satisfy this automatically. Use this parameter or set specific start and end dates (`dateStart` and `dateEnd` parameters)."}).option(`date-start`,{type:`string`,description:"Start of the date range. Alternative to `dateRange`; provide together with `dateEnd`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`date-end`,{type:`string`,description:"End of the date range (inclusive). Alternative to `dateRange`; provide together with `dateStart`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`location`,{type:`string`,description:"Filters results by location. Specify a comma-separated list of alpha-2 codes. Prefix with `-` to exclude locations from results. For example, `-US,PT` excludes results from the US, but includes results from PT."}).option(`continent`,{type:`string`,description:"Filters results by continent. Specify a comma-separated list of alpha-2 codes. Prefix with `-` to exclude continents from results. For example, `-EU,NA` excludes results from EU, but includes results from NA."}).option(`ip-version`,{type:`string`,description:`Filters results by IP version (Ipv4 vs. IPv6).`}).option(`protocol`,{type:`string`,description:`Filters the results by layer 3/4 protocol.`}).option(`limit-direction`,{type:`string`,description:"Specifies whether the `limitPerLocation` applies to the source or target location.",choices:[`ORIGIN`,`TARGET`]}).option(`limit-per-location`,{type:`number`,description:"Limits the number of attacks per origin/target (refer to `limitDirection` parameter) location."}).option(`magnitude`,{type:`string`,description:`Orders results based on attack magnitude, defined by total mitigated bytes or total mitigated attacks.`,choices:[`MITIGATED_BYTES`,`MITIGATED_ATTACKS`]}).option(`normalization`,{type:`string`,description:`Normalization method applied to the results. Refer to [Normalization methods](https://developers.cloudflare.com/radar/concepts/normalization/).`,choices:[`PERCENTAGE`,`MIN_MAX`]}).option(`format`,{type:`string`,description:`Format in which results will be returned.`,choices:[`JSON`,`CSV`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const Ie={command:`attacks`,describe:`Get top layer 3 attack pairs (origin and target locations)`,builder:Fe,handler:async e=>a({command:`radar attacks layer3 top attacks`,classification:{safeFlags:[`limit-direction`,`magnitude`,`normalization`,`format`,`dry-run`]}},e,async()=>{let a={limit:e.limit,name:e.name,dateRange:e[`date-range`],dateStart:e[`date-start`],dateEnd:e[`date-end`],location:e.location,continent:e.continent,ipVersion:e[`ip-version`],protocol:e.protocol,limitDirection:e[`limit-direction`],limitPerLocation:e[`limit-per-location`],magnitude:e.magnitude,normalization:e.normalization,format:e.format};if(e.dryRun){r({command:`cf radar attacks layer3 top attacks`,method:`GET`,url:`https://api.cloudflare.com/client/v4/radar/attacks/layer3/top/attacks`,pathParams:{},query:a,bodyKind:`none`});return}let o=await t(e),s=await i(`Loading`,async()=>o.send(Pe,a));n(s,{successLabel:`Loaded`})})};var Le={method:`GET`,path:()=>`/radar/attacks/layer3/top/locations/origin`,query:[`limit`,`name`,`dateRange`,`dateStart`,`dateEnd`,`location`,`continent`,`ipVersion`,`protocol`,`format`],errors:{404:`NotFoundError`}};function Re(e){return e.usage(`$0 radar attacks layer3 top locations origin
|
|
49
|
-
|
|
50
|
-
Retrieves the origin locations of layer 3 attacks.`).option(`limit`,{type:`number`,description:`Limits the number of objects returned in the response.`}).option(`name`,{type:`string`,description:`Array of names used to label the series in the response.`}).option(`date-range`,{type:`string`,description:"Filters results by relative date range ending at the current time, with each value producing a separate series. Use `<n>d` for days (up to `364d`) or `<n>w` for weeks (up to `52w`). Append `control` to request the equivalent previous period for comparison: the comparison window is shifted back by the current window's length rounded up to a whole number of weeks, so it keeps the same weekday alignment and does not overlap the current window (e.g. `7dcontrol` covers days -14 to -7, `10dcontrol` covers days -24 to -14). For example, pass `7d` and `7dcontrol` to compare this week with the previous week. All series must resolve to the same duration as the main series; relative ranges (including `control`) satisfy this automatically. Use this parameter or set specific start and end dates (`dateStart` and `dateEnd` parameters)."}).option(`date-start`,{type:`string`,description:"Start of the date range. Alternative to `dateRange`; provide together with `dateEnd`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`date-end`,{type:`string`,description:"End of the date range (inclusive). Alternative to `dateRange`; provide together with `dateStart`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`location`,{type:`string`,description:"Filters results by location. Specify a comma-separated list of alpha-2 codes. Prefix with `-` to exclude locations from results. For example, `-US,PT` excludes results from the US, but includes results from PT."}).option(`continent`,{type:`string`,description:"Filters results by continent. Specify a comma-separated list of alpha-2 codes. Prefix with `-` to exclude continents from results. For example, `-EU,NA` excludes results from EU, but includes results from NA."}).option(`ip-version`,{type:`string`,description:`Filters results by IP version (Ipv4 vs. IPv6).`}).option(`protocol`,{type:`string`,description:`Filters the results by layer 3/4 protocol.`}).option(`format`,{type:`string`,description:`Format in which results will be returned.`,choices:[`JSON`,`CSV`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const ze={command:`origin`,describe:`Get top origin locations of layer 3 attacks`,builder:Re,handler:async e=>a({command:`radar attacks layer3 top locations origin`,classification:{safeFlags:[`format`,`dry-run`]}},e,async()=>{let a={limit:e.limit,name:e.name,dateRange:e[`date-range`],dateStart:e[`date-start`],dateEnd:e[`date-end`],location:e.location,continent:e.continent,ipVersion:e[`ip-version`],protocol:e.protocol,format:e.format};if(e.dryRun){r({command:`cf radar attacks layer3 top locations origin`,method:`GET`,url:`https://api.cloudflare.com/client/v4/radar/attacks/layer3/top/locations/origin`,pathParams:{},query:a,bodyKind:`none`});return}let o=await t(e),s=await i(`Loading`,async()=>o.send(Le,a));n(s,{successLabel:`Loaded`})})};var Be={method:`GET`,path:()=>`/radar/attacks/layer3/top/locations/target`,query:[`limit`,`name`,`dateRange`,`dateStart`,`dateEnd`,`location`,`continent`,`ipVersion`,`protocol`,`format`],errors:{404:`NotFoundError`}};function Ve(e){return e.usage(`$0 radar attacks layer3 top locations target
|
|
51
|
-
|
|
52
|
-
Retrieves the target locations of layer 3 attacks.`).option(`limit`,{type:`number`,description:`Limits the number of objects returned in the response.`}).option(`name`,{type:`string`,description:`Array of names used to label the series in the response.`}).option(`date-range`,{type:`string`,description:"Filters results by relative date range ending at the current time, with each value producing a separate series. Use `<n>d` for days (up to `364d`) or `<n>w` for weeks (up to `52w`). Append `control` to request the equivalent previous period for comparison: the comparison window is shifted back by the current window's length rounded up to a whole number of weeks, so it keeps the same weekday alignment and does not overlap the current window (e.g. `7dcontrol` covers days -14 to -7, `10dcontrol` covers days -24 to -14). For example, pass `7d` and `7dcontrol` to compare this week with the previous week. All series must resolve to the same duration as the main series; relative ranges (including `control`) satisfy this automatically. Use this parameter or set specific start and end dates (`dateStart` and `dateEnd` parameters)."}).option(`date-start`,{type:`string`,description:"Start of the date range. Alternative to `dateRange`; provide together with `dateEnd`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`date-end`,{type:`string`,description:"End of the date range (inclusive). Alternative to `dateRange`; provide together with `dateStart`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`location`,{type:`string`,description:"Filters results by location. Specify a comma-separated list of alpha-2 codes. Prefix with `-` to exclude locations from results. For example, `-US,PT` excludes results from the US, but includes results from PT."}).option(`continent`,{type:`string`,description:"Filters results by continent. Specify a comma-separated list of alpha-2 codes. Prefix with `-` to exclude continents from results. For example, `-EU,NA` excludes results from EU, but includes results from NA."}).option(`ip-version`,{type:`string`,description:`Filters results by IP version (Ipv4 vs. IPv6).`}).option(`protocol`,{type:`string`,description:`Filters the results by layer 3/4 protocol.`}).option(`format`,{type:`string`,description:`Format in which results will be returned.`,choices:[`JSON`,`CSV`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const He={command:`target`,describe:`Get top target locations of layer 3 attacks`,builder:Ve,handler:async e=>a({command:`radar attacks layer3 top locations target`,classification:{safeFlags:[`format`,`dry-run`]}},e,async()=>{let a={limit:e.limit,name:e.name,dateRange:e[`date-range`],dateStart:e[`date-start`],dateEnd:e[`date-end`],location:e.location,continent:e.continent,ipVersion:e[`ip-version`],protocol:e.protocol,format:e.format};if(e.dryRun){r({command:`cf radar attacks layer3 top locations target`,method:`GET`,url:`https://api.cloudflare.com/client/v4/radar/attacks/layer3/top/locations/target`,pathParams:{},query:a,bodyKind:`none`});return}let o=await t(e),s=await i(`Loading`,async()=>o.send(Be,a));n(s,{successLabel:`Loaded`})})},Ue={command:`locations`,describe:`Operations for attacks.layer3.top.locations`,builder:e=>e.command(ze).command(He).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},We={command:`top`,describe:`Operations for attacks.layer3.top`,builder:e=>e.command(Ie).command(Ue).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},Ge={command:`layer3`,describe:`Operations for attacks.layer3`,builder:e=>e.command(De).command(Ne).command(Ae).command(We).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var Ke={method:`GET`,path:t=>e`/radar/attacks/layer7/summary/${t.dimension}`,query:[`name`,`dateRange`,`dateStart`,`dateEnd`,`asn`,`location`,`continent`,`ipVersion`,`httpVersion`,`httpMethod`,`mitigationProduct`,`limitPerGroup`,`format`],errors:{400:`BadRequestError`}};function qe(e){return e.usage(`$0 radar attacks layer7 summary-v2 <dimension>
|
|
53
|
-
|
|
54
|
-
Retrieves the distribution of layer 7 attacks by the specified dimension.`).positional(`dimension`,{type:`string`,description:`Specifies the attribute by which to group the results.`,demandOption:!0}).option(`name`,{type:`string`,description:`Array of names used to label the series in the response.`}).option(`date-range`,{type:`string`,description:"Filters results by relative date range ending at the current time, with each value producing a separate series. Use `<n>d` for days (up to `364d`) or `<n>w` for weeks (up to `52w`). Append `control` to request the equivalent previous period for comparison: the comparison window is shifted back by the current window's length rounded up to a whole number of weeks, so it keeps the same weekday alignment and does not overlap the current window (e.g. `7dcontrol` covers days -14 to -7, `10dcontrol` covers days -24 to -14). For example, pass `7d` and `7dcontrol` to compare this week with the previous week. All series must resolve to the same duration as the main series; relative ranges (including `control`) satisfy this automatically. Use this parameter or set specific start and end dates (`dateStart` and `dateEnd` parameters)."}).option(`date-start`,{type:`string`,description:"Start of the date range. Alternative to `dateRange`; provide together with `dateEnd`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`date-end`,{type:`string`,description:"End of the date range (inclusive). Alternative to `dateRange`; provide together with `dateStart`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`asn`,{type:`string`,description:"Filters results by Autonomous System. Specify one or more Autonomous System Numbers (ASNs) as a comma-separated list. Prefix with `-` to exclude ASNs from results. For example, `-174, 3356` excludes results from AS174, but includes results from AS3356."}).option(`location`,{type:`string`,description:"Filters results by location. Specify a comma-separated list of alpha-2 codes. Prefix with `-` to exclude locations from results. For example, `-US,PT` excludes results from the US, but includes results from PT."}).option(`continent`,{type:`string`,description:"Filters results by continent. Specify a comma-separated list of alpha-2 codes. Prefix with `-` to exclude continents from results. For example, `-EU,NA` excludes results from EU, but includes results from NA."}).option(`ip-version`,{type:`string`,description:`Filters results by IP version (Ipv4 vs. IPv6).`}).option(`http-version`,{type:`string`,description:`Filters results by HTTP version.`}).option(`http-method`,{type:`string`,description:`Filters results by HTTP method.`}).option(`mitigation-product`,{type:`string`,description:`Filters the results by layer 7 mitigation product.`}).option(`limit-per-group`,{type:`number`,description:`Limits the number of objects per group to the top items within the specified time range. When item count exceeds the limit, extra items appear grouped under an "other" category. Only supported on high-cardinality dimensions; otherwise the request is rejected. Minimum value is 2.`}).option(`format`,{type:`string`,description:`Format in which results will be returned.`,choices:[`JSON`,`CSV`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const Je={command:`summary-v2 <dimension>`,describe:`Get layer 7 attacks summary by dimension`,builder:qe,handler:async e=>a({command:`radar attacks layer7 summary-v2`,classification:{safeFlags:[`format`,`dry-run`]}},e,async()=>{let a={name:e.name,dateRange:e[`date-range`],dateStart:e[`date-start`],dateEnd:e[`date-end`],asn:e.asn,location:e.location,continent:e.continent,ipVersion:e[`ip-version`],httpVersion:e[`http-version`],httpMethod:e[`http-method`],mitigationProduct:e[`mitigation-product`],limitPerGroup:e[`limit-per-group`],format:e.format};if(e.dryRun){r({command:`cf radar attacks layer7 summary-v2`,method:`GET`,url:`https://api.cloudflare.com/client/v4/radar/attacks/layer7/summary/${e.dimension==null?`<dimension>`:encodeURIComponent(String(e.dimension))}`,pathParams:{dimension:String(e.dimension??``)},query:a,bodyKind:`none`});return}let o=await t(e),s=await i(`Loading`,async()=>o.send(Ke,{dimension:e.dimension,...a}));n(s,{successLabel:`Loaded`})})};var Ye={method:`GET`,path:t=>e`/radar/attacks/layer7/timeseries_groups/${t.dimension}`,query:[`aggInterval`,`name`,`dateRange`,`dateStart`,`dateEnd`,`asn`,`location`,`continent`,`ipVersion`,`httpVersion`,`httpMethod`,`mitigationProduct`,`normalization`,`limitPerGroup`,`format`],errors:{400:`BadRequestError`}};function Xe(e){return e.usage(`$0 radar attacks layer7 timeseries-groups-v2 <dimension>
|
|
55
|
-
|
|
56
|
-
Retrieves the distribution of layer 7 attacks grouped by dimension over time.`).positional(`dimension`,{type:`string`,description:`Specifies the attribute by which to group the results.`,demandOption:!0}).option(`agg-interval`,{type:`string`,description:`Aggregation interval of the results (e.g., in 15 minutes or 1 hour intervals). Refer to [Aggregation intervals](https://developers.cloudflare.com/radar/concepts/aggregation-intervals/). When omitted, the interval is auto-selected from the requested date range; finer intervals are only available for shorter ranges. If the requested interval is too granular for the date range, the request is rejected.`,choices:[`15m`,`1h`,`1d`,`1w`]}).option(`name`,{type:`string`,description:`Array of names used to label the series in the response.`}).option(`date-range`,{type:`string`,description:"Filters results by relative date range ending at the current time, with each value producing a separate series. Use `<n>d` for days (up to `364d`) or `<n>w` for weeks (up to `52w`). Append `control` to request the equivalent previous period for comparison: the comparison window is shifted back by the current window's length rounded up to a whole number of weeks, so it keeps the same weekday alignment and does not overlap the current window (e.g. `7dcontrol` covers days -14 to -7, `10dcontrol` covers days -24 to -14). For example, pass `7d` and `7dcontrol` to compare this week with the previous week. All series must resolve to the same duration as the main series; relative ranges (including `control`) satisfy this automatically. Use this parameter or set specific start and end dates (`dateStart` and `dateEnd` parameters)."}).option(`date-start`,{type:`string`,description:"Start of the date range. Alternative to `dateRange`; provide together with `dateEnd`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`date-end`,{type:`string`,description:"End of the date range (inclusive). Alternative to `dateRange`; provide together with `dateStart`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`asn`,{type:`string`,description:"Filters results by Autonomous System. Specify one or more Autonomous System Numbers (ASNs) as a comma-separated list. Prefix with `-` to exclude ASNs from results. For example, `-174, 3356` excludes results from AS174, but includes results from AS3356."}).option(`location`,{type:`string`,description:"Filters results by location. Specify a comma-separated list of alpha-2 codes. Prefix with `-` to exclude locations from results. For example, `-US,PT` excludes results from the US, but includes results from PT."}).option(`continent`,{type:`string`,description:"Filters results by continent. Specify a comma-separated list of alpha-2 codes. Prefix with `-` to exclude continents from results. For example, `-EU,NA` excludes results from EU, but includes results from NA."}).option(`ip-version`,{type:`string`,description:`Filters results by IP version (Ipv4 vs. IPv6).`}).option(`http-version`,{type:`string`,description:`Filters results by HTTP version.`}).option(`http-method`,{type:`string`,description:`Filters results by HTTP method.`}).option(`mitigation-product`,{type:`string`,description:`Filters the results by layer 7 mitigation product.`}).option(`normalization`,{type:`string`,description:`Normalization method applied to the results. Refer to [Normalization methods](https://developers.cloudflare.com/radar/concepts/normalization/).`,choices:[`PERCENTAGE`,`MIN0_MAX`]}).option(`limit-per-group`,{type:`number`,description:`Limits the number of objects per group to the top items within the specified time range. When item count exceeds the limit, extra items appear grouped under an "other" category. Only supported on high-cardinality dimensions; otherwise the request is rejected. Minimum value is 2.`}).option(`format`,{type:`string`,description:`Format in which results will be returned.`,choices:[`JSON`,`CSV`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const Ze={command:`timeseries-groups-v2 <dimension>`,describe:`Get layer 7 attacks time series grouped by dimension`,builder:Xe,handler:async e=>a({command:`radar attacks layer7 timeseries-groups-v2`,classification:{safeFlags:[`agg-interval`,`normalization`,`format`,`dry-run`]}},e,async()=>{let a={aggInterval:e[`agg-interval`],name:e.name,dateRange:e[`date-range`],dateStart:e[`date-start`],dateEnd:e[`date-end`],asn:e.asn,location:e.location,continent:e.continent,ipVersion:e[`ip-version`],httpVersion:e[`http-version`],httpMethod:e[`http-method`],mitigationProduct:e[`mitigation-product`],normalization:e.normalization,limitPerGroup:e[`limit-per-group`],format:e.format};if(e.dryRun){r({command:`cf radar attacks layer7 timeseries-groups-v2`,method:`GET`,url:`https://api.cloudflare.com/client/v4/radar/attacks/layer7/timeseries_groups/${e.dimension==null?`<dimension>`:encodeURIComponent(String(e.dimension))}`,pathParams:{dimension:String(e.dimension??``)},query:a,bodyKind:`none`});return}let o=await t(e),s=await i(`Loading`,async()=>o.send(Ye,{dimension:e.dimension,...a}));n(s,{successLabel:`Loaded`})})};var Qe={method:`GET`,path:()=>`/radar/attacks/layer7/timeseries`,query:[`aggInterval`,`name`,`dateRange`,`dateStart`,`dateEnd`,`asn`,`location`,`continent`,`normalization`,`ipVersion`,`httpVersion`,`httpMethod`,`mitigationProduct`,`format`],errors:{400:`BadRequestError`}};function $e(e){return e.usage(`$0 radar attacks layer7 timeseries
|
|
57
|
-
|
|
58
|
-
Retrieves layer 7 attacks over time.`).option(`agg-interval`,{type:`string`,description:`Aggregation interval of the results (e.g., in 15 minutes or 1 hour intervals). Refer to [Aggregation intervals](https://developers.cloudflare.com/radar/concepts/aggregation-intervals/). When omitted, the interval is auto-selected from the requested date range; finer intervals are only available for shorter ranges. If the requested interval is too granular for the date range, the request is rejected.`,choices:[`15m`,`1h`,`1d`,`1w`]}).option(`name`,{type:`string`,description:`Array of names used to label the series in the response.`}).option(`date-range`,{type:`string`,description:"Filters results by relative date range ending at the current time, with each value producing a separate series. Use `<n>d` for days (up to `364d`) or `<n>w` for weeks (up to `52w`). Append `control` to request the equivalent previous period for comparison: the comparison window is shifted back by the current window's length rounded up to a whole number of weeks, so it keeps the same weekday alignment and does not overlap the current window (e.g. `7dcontrol` covers days -14 to -7, `10dcontrol` covers days -24 to -14). For example, pass `7d` and `7dcontrol` to compare this week with the previous week. All series must resolve to the same duration as the main series; relative ranges (including `control`) satisfy this automatically. Use this parameter or set specific start and end dates (`dateStart` and `dateEnd` parameters)."}).option(`date-start`,{type:`string`,description:"Start of the date range. Alternative to `dateRange`; provide together with `dateEnd`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`date-end`,{type:`string`,description:"End of the date range (inclusive). Alternative to `dateRange`; provide together with `dateStart`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`asn`,{type:`string`,description:"Filters results by Autonomous System. Specify one or more Autonomous System Numbers (ASNs) as a comma-separated list. Prefix with `-` to exclude ASNs from results. For example, `-174, 3356` excludes results from AS174, but includes results from AS3356."}).option(`location`,{type:`string`,description:"Filters results by location. Specify a comma-separated list of alpha-2 codes. Prefix with `-` to exclude locations from results. For example, `-US,PT` excludes results from the US, but includes results from PT."}).option(`continent`,{type:`string`,description:"Filters results by continent. Specify a comma-separated list of alpha-2 codes. Prefix with `-` to exclude continents from results. For example, `-EU,NA` excludes results from EU, but includes results from NA."}).option(`normalization`,{type:`string`,description:"Normalization method applied to the results. Refer to [Normalization methods](https://developers.cloudflare.com/radar/concepts/normalization/). `PERCENTAGE_CHANGE` requires exactly one comparison series (e.g. a `control` date range).",choices:[`PERCENTAGE_CHANGE`,`MIN0_MAX`]}).option(`ip-version`,{type:`string`,description:`Filters results by IP version (Ipv4 vs. IPv6).`}).option(`http-version`,{type:`string`,description:`Filters results by HTTP version.`}).option(`http-method`,{type:`string`,description:`Filters results by HTTP method.`}).option(`mitigation-product`,{type:`string`,description:`Filters the results by layer 7 mitigation product.`}).option(`format`,{type:`string`,description:`Format in which results will be returned.`,choices:[`JSON`,`CSV`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const et={command:`timeseries`,describe:`Get layer 7 attacks time series`,builder:$e,handler:async e=>a({command:`radar attacks layer7 timeseries`,classification:{safeFlags:[`agg-interval`,`normalization`,`format`,`dry-run`]}},e,async()=>{let a={aggInterval:e[`agg-interval`],name:e.name,dateRange:e[`date-range`],dateStart:e[`date-start`],dateEnd:e[`date-end`],asn:e.asn,location:e.location,continent:e.continent,normalization:e.normalization,ipVersion:e[`ip-version`],httpVersion:e[`http-version`],httpMethod:e[`http-method`],mitigationProduct:e[`mitigation-product`],format:e.format};if(e.dryRun){r({command:`cf radar attacks layer7 timeseries`,method:`GET`,url:`https://api.cloudflare.com/client/v4/radar/attacks/layer7/timeseries`,pathParams:{},query:a,bodyKind:`none`});return}let o=await t(e),s=await i(`Loading`,async()=>o.send(Qe,a));n(s,{successLabel:`Loaded`})})};var tt={method:`GET`,path:()=>`/radar/attacks/layer7/top/ases/origin`,query:[`limit`,`name`,`dateRange`,`dateStart`,`dateEnd`,`location`,`continent`,`ipVersion`,`httpVersion`,`httpMethod`,`mitigationProduct`,`format`],errors:{404:`NotFoundError`}};function nt(e){return e.usage(`$0 radar attacks layer7 top ases origin
|
|
59
|
-
|
|
60
|
-
Retrieves the top origin autonomous systems of layer 7 attacks. Values are percentages of the total layer 7 attacks, with the origin autonomous systems determined by the client IP address.`).option(`limit`,{type:`number`,description:`Limits the number of objects returned in the response.`}).option(`name`,{type:`string`,description:`Array of names used to label the series in the response.`}).option(`date-range`,{type:`string`,description:"Filters results by relative date range ending at the current time, with each value producing a separate series. Use `<n>d` for days (up to `364d`) or `<n>w` for weeks (up to `52w`). Append `control` to request the equivalent previous period for comparison: the comparison window is shifted back by the current window's length rounded up to a whole number of weeks, so it keeps the same weekday alignment and does not overlap the current window (e.g. `7dcontrol` covers days -14 to -7, `10dcontrol` covers days -24 to -14). For example, pass `7d` and `7dcontrol` to compare this week with the previous week. All series must resolve to the same duration as the main series; relative ranges (including `control`) satisfy this automatically. Use this parameter or set specific start and end dates (`dateStart` and `dateEnd` parameters)."}).option(`date-start`,{type:`string`,description:"Start of the date range. Alternative to `dateRange`; provide together with `dateEnd`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`date-end`,{type:`string`,description:"End of the date range (inclusive). Alternative to `dateRange`; provide together with `dateStart`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`location`,{type:`string`,description:"Filters results by location. Specify a comma-separated list of alpha-2 codes. Prefix with `-` to exclude locations from results. For example, `-US,PT` excludes results from the US, but includes results from PT."}).option(`continent`,{type:`string`,description:"Filters results by continent. Specify a comma-separated list of alpha-2 codes. Prefix with `-` to exclude continents from results. For example, `-EU,NA` excludes results from EU, but includes results from NA."}).option(`ip-version`,{type:`string`,description:`Filters results by IP version (Ipv4 vs. IPv6).`}).option(`http-version`,{type:`string`,description:`Filters results by HTTP version.`}).option(`http-method`,{type:`string`,description:`Filters results by HTTP method.`}).option(`mitigation-product`,{type:`string`,description:`Filters the results by layer 7 mitigation product.`}).option(`format`,{type:`string`,description:`Format in which results will be returned.`,choices:[`JSON`,`CSV`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const rt={command:`origin`,describe:`Get top origin ASes of layer 7 attacks`,builder:nt,handler:async e=>a({command:`radar attacks layer7 top ases origin`,classification:{safeFlags:[`format`,`dry-run`]}},e,async()=>{let a={limit:e.limit,name:e.name,dateRange:e[`date-range`],dateStart:e[`date-start`],dateEnd:e[`date-end`],location:e.location,continent:e.continent,ipVersion:e[`ip-version`],httpVersion:e[`http-version`],httpMethod:e[`http-method`],mitigationProduct:e[`mitigation-product`],format:e.format};if(e.dryRun){r({command:`cf radar attacks layer7 top ases origin`,method:`GET`,url:`https://api.cloudflare.com/client/v4/radar/attacks/layer7/top/ases/origin`,pathParams:{},query:a,bodyKind:`none`});return}let o=await t(e),s=await i(`Loading`,async()=>o.send(tt,a));n(s,{successLabel:`Loaded`})})},it={command:`ases`,describe:`Operations for attacks.layer7.top.ases`,builder:e=>e.command(rt).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var at={method:`GET`,path:()=>`/radar/attacks/layer7/top/attacks`,query:[`limit`,`name`,`dateRange`,`dateStart`,`dateEnd`,`asn`,`location`,`continent`,`mitigationProduct`,`limitDirection`,`limitPerLocation`,`normalization`,`format`],errors:{404:`NotFoundError`}};function ot(e){return e.usage(`$0 radar attacks layer7 top attacks
|
|
61
|
-
|
|
62
|
-
Retrieves the top attacks from origin to target location. Values are percentages of the total layer 7 attacks (with billing country). The attack magnitude can be defined by the number of mitigated requests or by the number of zones affected. You can optionally limit the number of attacks by origin/target location (useful if all the top attacks are from or to the same location).`).option(`limit`,{type:`number`,description:`Limits the number of objects returned in the response.`}).option(`name`,{type:`string`,description:`Array of names used to label the series in the response.`}).option(`date-range`,{type:`string`,description:"Filters results by relative date range ending at the current time, with each value producing a separate series. Use `<n>d` for days (up to `364d`) or `<n>w` for weeks (up to `52w`). Append `control` to request the equivalent previous period for comparison: the comparison window is shifted back by the current window's length rounded up to a whole number of weeks, so it keeps the same weekday alignment and does not overlap the current window (e.g. `7dcontrol` covers days -14 to -7, `10dcontrol` covers days -24 to -14). For example, pass `7d` and `7dcontrol` to compare this week with the previous week. All series must resolve to the same duration as the main series; relative ranges (including `control`) satisfy this automatically. Use this parameter or set specific start and end dates (`dateStart` and `dateEnd` parameters)."}).option(`date-start`,{type:`string`,description:"Start of the date range. Alternative to `dateRange`; provide together with `dateEnd`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`date-end`,{type:`string`,description:"End of the date range (inclusive). Alternative to `dateRange`; provide together with `dateStart`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`asn`,{type:`string`,description:"Filters results by Autonomous System. Specify one or more Autonomous System Numbers (ASNs) as a comma-separated list. Prefix with `-` to exclude ASNs from results. For example, `-174, 3356` excludes results from AS174, but includes results from AS3356."}).option(`location`,{type:`string`,description:"Filters results by location. Specify a comma-separated list of alpha-2 codes. Prefix with `-` to exclude locations from results. For example, `-US,PT` excludes results from the US, but includes results from PT."}).option(`continent`,{type:`string`,description:"Filters results by continent. Specify a comma-separated list of alpha-2 codes. Prefix with `-` to exclude continents from results. For example, `-EU,NA` excludes results from EU, but includes results from NA."}).option(`mitigation-product`,{type:`string`,description:`Filters the results by layer 7 mitigation product.`}).option(`limit-direction`,{type:`string`,description:"Specifies whether the `limitPerLocation` applies to the source or target location.",choices:[`ORIGIN`,`TARGET`]}).option(`limit-per-location`,{type:`number`,description:"Limits the number of attacks per origin/target (refer to `limitDirection` parameter) location."}).option(`normalization`,{type:`string`,description:`Normalization method applied to the results. Refer to [Normalization methods](https://developers.cloudflare.com/radar/concepts/normalization/).`,choices:[`PERCENTAGE`,`MIN_MAX`]}).option(`format`,{type:`string`,description:`Format in which results will be returned.`,choices:[`JSON`,`CSV`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const st={command:`attacks`,describe:`Get top layer 7 attack pairs (origin and target locations)`,builder:ot,handler:async e=>a({command:`radar attacks layer7 top attacks`,classification:{safeFlags:[`limit-direction`,`normalization`,`format`,`dry-run`]}},e,async()=>{let a={limit:e.limit,name:e.name,dateRange:e[`date-range`],dateStart:e[`date-start`],dateEnd:e[`date-end`],asn:e.asn,location:e.location,continent:e.continent,mitigationProduct:e[`mitigation-product`],limitDirection:e[`limit-direction`],limitPerLocation:e[`limit-per-location`],normalization:e.normalization,format:e.format};if(e.dryRun){r({command:`cf radar attacks layer7 top attacks`,method:`GET`,url:`https://api.cloudflare.com/client/v4/radar/attacks/layer7/top/attacks`,pathParams:{},query:a,bodyKind:`none`});return}let o=await t(e),s=await i(`Loading`,async()=>o.send(at,a));n(s,{successLabel:`Loaded`})})};var ct={method:`GET`,path:()=>`/radar/attacks/layer7/top/locations/origin`,query:[`limit`,`name`,`dateRange`,`dateStart`,`dateEnd`,`asn`,`continent`,`ipVersion`,`httpVersion`,`httpMethod`,`mitigationProduct`,`format`],errors:{404:`NotFoundError`}};function lt(e){return e.usage(`$0 radar attacks layer7 top locations origin
|
|
63
|
-
|
|
64
|
-
Retrieves the top origin locations of layer 7 attacks. Values are percentages of the total layer 7 attacks, with the origin location determined by the client IP address.`).option(`limit`,{type:`number`,description:`Limits the number of objects returned in the response.`}).option(`name`,{type:`string`,description:`Array of names used to label the series in the response.`}).option(`date-range`,{type:`string`,description:"Filters results by relative date range ending at the current time, with each value producing a separate series. Use `<n>d` for days (up to `364d`) or `<n>w` for weeks (up to `52w`). Append `control` to request the equivalent previous period for comparison: the comparison window is shifted back by the current window's length rounded up to a whole number of weeks, so it keeps the same weekday alignment and does not overlap the current window (e.g. `7dcontrol` covers days -14 to -7, `10dcontrol` covers days -24 to -14). For example, pass `7d` and `7dcontrol` to compare this week with the previous week. All series must resolve to the same duration as the main series; relative ranges (including `control`) satisfy this automatically. Use this parameter or set specific start and end dates (`dateStart` and `dateEnd` parameters)."}).option(`date-start`,{type:`string`,description:"Start of the date range. Alternative to `dateRange`; provide together with `dateEnd`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`date-end`,{type:`string`,description:"End of the date range (inclusive). Alternative to `dateRange`; provide together with `dateStart`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`asn`,{type:`string`,description:"Filters results by Autonomous System. Specify one or more Autonomous System Numbers (ASNs) as a comma-separated list. Prefix with `-` to exclude ASNs from results. For example, `-174, 3356` excludes results from AS174, but includes results from AS3356."}).option(`continent`,{type:`string`,description:"Filters results by continent. Specify a comma-separated list of alpha-2 codes. Prefix with `-` to exclude continents from results. For example, `-EU,NA` excludes results from EU, but includes results from NA."}).option(`ip-version`,{type:`string`,description:`Filters results by IP version (Ipv4 vs. IPv6).`}).option(`http-version`,{type:`string`,description:`Filters results by HTTP version.`}).option(`http-method`,{type:`string`,description:`Filters results by HTTP method.`}).option(`mitigation-product`,{type:`string`,description:`Filters the results by layer 7 mitigation product.`}).option(`format`,{type:`string`,description:`Format in which results will be returned.`,choices:[`JSON`,`CSV`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const ut={command:`origin`,describe:`Get top origin locations of layer 7 attacks`,builder:lt,handler:async e=>a({command:`radar attacks layer7 top locations origin`,classification:{safeFlags:[`format`,`dry-run`]}},e,async()=>{let a={limit:e.limit,name:e.name,dateRange:e[`date-range`],dateStart:e[`date-start`],dateEnd:e[`date-end`],asn:e.asn,continent:e.continent,ipVersion:e[`ip-version`],httpVersion:e[`http-version`],httpMethod:e[`http-method`],mitigationProduct:e[`mitigation-product`],format:e.format};if(e.dryRun){r({command:`cf radar attacks layer7 top locations origin`,method:`GET`,url:`https://api.cloudflare.com/client/v4/radar/attacks/layer7/top/locations/origin`,pathParams:{},query:a,bodyKind:`none`});return}let o=await t(e),s=await i(`Loading`,async()=>o.send(ct,a));n(s,{successLabel:`Loaded`})})};var dt={method:`GET`,path:()=>`/radar/attacks/layer7/top/locations/target`,query:[`limit`,`name`,`dateRange`,`dateStart`,`dateEnd`,`continent`,`mitigationProduct`,`format`],errors:{404:`NotFoundError`}};function ft(e){return e.usage(`$0 radar attacks layer7 top locations target
|
|
65
|
-
|
|
66
|
-
Retrieves the top target locations of and by layer 7 attacks. Values are a percentage out of the total layer 7 attacks. The target location is determined by the attacked zone's billing country, when available.`).option(`limit`,{type:`number`,description:`Limits the number of objects returned in the response.`}).option(`name`,{type:`string`,description:`Array of names used to label the series in the response.`}).option(`date-range`,{type:`string`,description:"Filters results by relative date range ending at the current time, with each value producing a separate series. Use `<n>d` for days (up to `364d`) or `<n>w` for weeks (up to `52w`). Append `control` to request the equivalent previous period for comparison: the comparison window is shifted back by the current window's length rounded up to a whole number of weeks, so it keeps the same weekday alignment and does not overlap the current window (e.g. `7dcontrol` covers days -14 to -7, `10dcontrol` covers days -24 to -14). For example, pass `7d` and `7dcontrol` to compare this week with the previous week. All series must resolve to the same duration as the main series; relative ranges (including `control`) satisfy this automatically. Use this parameter or set specific start and end dates (`dateStart` and `dateEnd` parameters)."}).option(`date-start`,{type:`string`,description:"Start of the date range. Alternative to `dateRange`; provide together with `dateEnd`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`date-end`,{type:`string`,description:"End of the date range (inclusive). Alternative to `dateRange`; provide together with `dateStart`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`continent`,{type:`string`,description:"Filters results by continent. Specify a comma-separated list of alpha-2 codes. Prefix with `-` to exclude continents from results. For example, `-EU,NA` excludes results from EU, but includes results from NA."}).option(`mitigation-product`,{type:`string`,description:`Filters the results by layer 7 mitigation product.`}).option(`format`,{type:`string`,description:`Format in which results will be returned.`,choices:[`JSON`,`CSV`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const pt={command:`target`,describe:`Get top target locations of layer 7 attacks`,builder:ft,handler:async e=>a({command:`radar attacks layer7 top locations target`,classification:{safeFlags:[`format`,`dry-run`]}},e,async()=>{let a={limit:e.limit,name:e.name,dateRange:e[`date-range`],dateStart:e[`date-start`],dateEnd:e[`date-end`],continent:e.continent,mitigationProduct:e[`mitigation-product`],format:e.format};if(e.dryRun){r({command:`cf radar attacks layer7 top locations target`,method:`GET`,url:`https://api.cloudflare.com/client/v4/radar/attacks/layer7/top/locations/target`,pathParams:{},query:a,bodyKind:`none`});return}let o=await t(e),s=await i(`Loading`,async()=>o.send(dt,a));n(s,{successLabel:`Loaded`})})},mt={command:`locations`,describe:`Operations for attacks.layer7.top.locations`,builder:e=>e.command(ut).command(pt).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},ht={command:`top`,describe:`Operations for attacks.layer7.top`,builder:e=>e.command(st).command(it).command(mt).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},gt={command:`layer7`,describe:`Operations for attacks.layer7`,builder:e=>e.command(Je).command(et).command(Ze).command(ht).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},_t={command:`attacks`,describe:`DDoS and application-layer attack trends, vectors, and target analysis`,builder:e=>e.command(Ge).command(gt).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var vt={method:`GET`,path:()=>`/radar/bgp/hijacks/events`,query:[`page`,`per_page`,`eventId`,`hijackerAsn`,`victimAsn`,`involvedAsn`,`involvedCountry`,`prefix`,`minConfidence`,`maxConfidence`,`dateRange`,`dateStart`,`dateEnd`,`sortBy`,`sortOrder`,`format`],errors:{400:`BadRequestError`}};function yt(e){return e.usage(`$0 radar bgp hijacks events list
|
|
67
|
-
|
|
68
|
-
Retrieves the BGP hijack events.`).option(`page`,{type:`number`,description:`Current page number, starting from 1.`}).option(`per-page`,{type:`number`,description:`Number of entries per page.`}).option(`event-id`,{type:`number`,description:`The unique identifier of a event.`}).option(`hijacker-asn`,{type:`number`,description:`The potential hijacker AS of a BGP hijack event.`}).option(`victim-asn`,{type:`number`,description:`The potential victim AS of a BGP hijack event.`}).option(`involved-asn`,{type:`number`,description:`The potential hijacker or victim AS of a BGP hijack event.`}).option(`involved-country`,{type:`string`,description:`The country code of the potential hijacker or victim AS of a BGP hijack event.`}).option(`prefix`,{type:`string`,description:`Prefix`}).option(`min-confidence`,{type:`number`,description:`Filters events by minimum confidence score (1-4 low, 5-7 mid, 8+ high).`}).option(`max-confidence`,{type:`number`,description:`Filters events by maximum confidence score (1-4 low, 5-7 mid, 8+ high).`}).option(`date-range`,{type:`string`,description:"Filters results by a relative date range ending at the current time. Use `<n>d` for days (up to `364d`) or `<n>w` for weeks (up to `52w`), e.g. `7d`. Append `control` to request the equivalent previous period for comparison: the comparison window is shifted back by the current window's length rounded up to a whole number of weeks, so it keeps the same weekday alignment and does not overlap the current window (e.g. `3dcontrol` covers days -10 to -7, `7dcontrol` covers days -14 to -7, `28dcontrol` covers days -56 to -28, and `10dcontrol` covers days -24 to -14). Mutually exclusive with `dateStart`/`dateEnd`."}).option(`date-start`,{type:`string`,description:"Start of the date range (inclusive). Alternative to `dateRange`; provide together with `dateEnd`."}).option(`date-end`,{type:`string`,description:"End of the date range (inclusive). Alternative to `dateRange`; provide together with `dateStart`."}).option(`sort-by`,{type:`string`,description:`Sorts results by the specified field.`,choices:[`ID`,`TIME`,`CONFIDENCE`]}).option(`sort-order`,{type:`string`,description:`Sort order.`,choices:[`ASC`,`DESC`]}).option(`format`,{type:`string`,description:`Format in which results will be returned.`,choices:[`JSON`,`CSV`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const bt={command:`list`,describe:`Get BGP hijack events`,builder:yt,handler:async e=>a({command:`radar bgp hijacks events list`,classification:{safeFlags:[`sort-by`,`sort-order`,`format`,`dry-run`]}},e,async()=>{let a={page:e.page,per_page:e[`per-page`],eventId:e[`event-id`],hijackerAsn:e[`hijacker-asn`],victimAsn:e[`victim-asn`],involvedAsn:e[`involved-asn`],involvedCountry:e[`involved-country`],prefix:e.prefix,minConfidence:e[`min-confidence`],maxConfidence:e[`max-confidence`],dateRange:e[`date-range`],dateStart:e[`date-start`],dateEnd:e[`date-end`],sortBy:e[`sort-by`],sortOrder:e[`sort-order`],format:e.format};if(e.dryRun){r({command:`cf radar bgp hijacks events list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/radar/bgp/hijacks/events`,pathParams:{},query:a,bodyKind:`none`});return}let o=await t(e),s=await i(`Loading`,async()=>o.send(vt,a));n(s,{successLabel:`Loaded`})})},xt={command:`events`,describe:`Operations for bgp.hijacks.events`,builder:e=>e.command(bt).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},St={command:`hijacks`,describe:`Operations for bgp.hijacks`,builder:e=>e.command(xt).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var Ct={method:`GET`,path:()=>`/radar/bgp/ips/timeseries`,query:[`name`,`dateRange`,`dateStart`,`dateEnd`,`asn`,`location`,`ipVersion`,`includeDelay`,`format`],errors:{400:`BadRequestError`}};function wt(e){return e.usage(`$0 radar bgp ips timeseries
|
|
69
|
-
|
|
70
|
-
Retrieves time series data for the announced IP space count, represented as the number of IPv4 /24s and IPv6 /48s, for a given ASN.`).option(`name`,{type:`string`,description:`Array of names used to label the series in the response.`}).option(`date-range`,{type:`string`,description:"Filters results by relative date range ending at the current time, with each value producing a separate series. Use `<n>d` for days (up to `364d`) or `<n>w` for weeks (up to `52w`). Append `control` to request the equivalent previous period for comparison: the comparison window is shifted back by the current window's length rounded up to a whole number of weeks, so it keeps the same weekday alignment and does not overlap the current window (e.g. `7dcontrol` covers days -14 to -7, `10dcontrol` covers days -24 to -14). For example, pass `7d` and `7dcontrol` to compare this week with the previous week. All series must resolve to the same duration as the main series; relative ranges (including `control`) satisfy this automatically. Use this parameter or set specific start and end dates (`dateStart` and `dateEnd` parameters)."}).option(`date-start`,{type:`string`,description:"Start of the date range. Alternative to `dateRange`; provide together with `dateEnd`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`date-end`,{type:`string`,description:"End of the date range (inclusive). Alternative to `dateRange`; provide together with `dateStart`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`asn`,{type:`string`,description:"Filters results by Autonomous System. Specify one or more Autonomous System Numbers (ASNs) as a comma-separated list. Prefix with `-` to exclude ASNs from results. For example, `-174, 3356` excludes results from AS174, but includes results from AS3356."}).option(`location`,{type:`string`,description:`Filters results by location. Specify a comma-separated list of alpha-2 location codes.`}).option(`ip-version`,{type:`string`,description:`Filters results by IP version (Ipv4 vs. IPv6).`}).option(`include-delay`,{type:`boolean`,description:`Includes data delay meta information.`}).option(`format`,{type:`string`,description:`Format in which results will be returned.`,choices:[`JSON`,`CSV`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const Tt={command:`timeseries`,describe:`Get announced IP address space time series`,builder:wt,handler:async e=>a({command:`radar bgp ips timeseries`,classification:{safeFlags:[`include-delay`,`format`,`dry-run`]}},e,async()=>{let a={name:e.name,dateRange:e[`date-range`],dateStart:e[`date-start`],dateEnd:e[`date-end`],asn:e.asn,location:e.location,ipVersion:e[`ip-version`],includeDelay:e[`include-delay`],format:e.format};if(e.dryRun){r({command:`cf radar bgp ips timeseries`,method:`GET`,url:`https://api.cloudflare.com/client/v4/radar/bgp/ips/timeseries`,pathParams:{},query:a,bodyKind:`none`});return}let o=await t(e),s=await i(`Loading`,async()=>o.send(Ct,a));n(s,{successLabel:`Loaded`})})};var Et={method:`GET`,path:()=>`/radar/bgp/ips/top/ases`,query:[`date`,`limit`,`metric`,`country`,`format`],errors:{400:`BadRequestError`}};function Dt(e){return e.usage(`$0 radar bgp ips top ases
|
|
71
|
-
|
|
72
|
-
Returns the top-N autonomous systems by announced IP space at the nearest 8-hour RIB boundary at or before the requested date. The snapped boundary is returned as \`anchor_ts\`.`).option(`date`,{type:`string`,description:`Filters results by the specified datetime (ISO 8601).`}).option(`limit`,{type:`number`,description:`Limits the number of objects returned in the response.`}).option(`metric`,{type:`string`,description:`Ranking metric: IPv4 /24 count or IPv6 /48 count.`,choices:[`v4_24s`,`v6_48s`]}).option(`country`,{type:`string`,description:`Optional ISO 3166-1 alpha-2 country filter. Omit for global top-N.`}).option(`format`,{type:`string`,description:`Format in which results will be returned.`,choices:[`JSON`,`CSV`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const Ot={command:`ases`,describe:`Get top ASes by announced IP space`,builder:Dt,handler:async e=>a({command:`radar bgp ips top ases`,classification:{safeFlags:[`metric`,`format`,`dry-run`]}},e,async()=>{let a={date:e.date,limit:e.limit,metric:e.metric,country:e.country,format:e.format};if(e.dryRun){r({command:`cf radar bgp ips top ases`,method:`GET`,url:`https://api.cloudflare.com/client/v4/radar/bgp/ips/top/ases`,pathParams:{},query:a,bodyKind:`none`});return}let o=await t(e),s=await i(`Loading`,async()=>o.send(Et,a));n(s,{successLabel:`Loaded`})})},kt={command:`top`,describe:`Operations for bgp.ips.top`,builder:e=>e.command(Ot).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},At={command:`ips`,describe:`Operations for bgp.ips`,builder:e=>e.command(Tt).command(kt).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var jt={method:`GET`,path:()=>`/radar/bgp/leaks/events`,query:[`page`,`per_page`,`eventId`,`leakAsn`,`involvedAsn`,`involvedCountry`,`dateRange`,`dateStart`,`dateEnd`,`sortBy`,`sortOrder`,`format`],errors:{400:`BadRequestError`}};function Mt(e){return e.usage(`$0 radar bgp leaks events list
|
|
73
|
-
|
|
74
|
-
Retrieves the BGP route leak events.`).option(`page`,{type:`number`,description:`Current page number, starting from 1.`}).option(`per-page`,{type:`number`,description:`Number of entries per page.`}).option(`event-id`,{type:`number`,description:`The unique identifier of a event.`}).option(`leak-asn`,{type:`number`,description:`The leaking AS of a route leak event.`}).option(`involved-asn`,{type:`number`,description:`ASN that is causing or affected by a route leak event.`}).option(`involved-country`,{type:`string`,description:`Country code of a involved ASN in a route leak event.`}).option(`date-range`,{type:`string`,description:"Filters results by a relative date range ending at the current time. Use `<n>d` for days (up to `364d`) or `<n>w` for weeks (up to `52w`), e.g. `7d`. Append `control` to request the equivalent previous period for comparison: the comparison window is shifted back by the current window's length rounded up to a whole number of weeks, so it keeps the same weekday alignment and does not overlap the current window (e.g. `3dcontrol` covers days -10 to -7, `7dcontrol` covers days -14 to -7, `28dcontrol` covers days -56 to -28, and `10dcontrol` covers days -24 to -14). Mutually exclusive with `dateStart`/`dateEnd`."}).option(`date-start`,{type:`string`,description:"Start of the date range (inclusive). Alternative to `dateRange`; provide together with `dateEnd`."}).option(`date-end`,{type:`string`,description:"End of the date range (inclusive). Alternative to `dateRange`; provide together with `dateStart`."}).option(`sort-by`,{type:`string`,description:`Sorts results by the specified field.`,choices:[`ID`,`LEAKS`,`PEERS`,`PREFIXES`,`ORIGINS`,`TIME`]}).option(`sort-order`,{type:`string`,description:`Sort order.`,choices:[`ASC`,`DESC`]}).option(`format`,{type:`string`,description:`Format in which results will be returned.`,choices:[`JSON`,`CSV`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const Nt={command:`list`,describe:`Get BGP route leak events`,builder:Mt,handler:async e=>a({command:`radar bgp leaks events list`,classification:{safeFlags:[`sort-by`,`sort-order`,`format`,`dry-run`]}},e,async()=>{let a={page:e.page,per_page:e[`per-page`],eventId:e[`event-id`],leakAsn:e[`leak-asn`],involvedAsn:e[`involved-asn`],involvedCountry:e[`involved-country`],dateRange:e[`date-range`],dateStart:e[`date-start`],dateEnd:e[`date-end`],sortBy:e[`sort-by`],sortOrder:e[`sort-order`],format:e.format};if(e.dryRun){r({command:`cf radar bgp leaks events list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/radar/bgp/leaks/events`,pathParams:{},query:a,bodyKind:`none`});return}let o=await t(e),s=await i(`Loading`,async()=>o.send(jt,a));n(s,{successLabel:`Loaded`})})},Pt={command:`events`,describe:`Operations for bgp.leaks.events`,builder:e=>e.command(Nt).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},Ft={command:`leaks`,describe:`Operations for bgp.leaks`,builder:e=>e.command(Pt).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var It={method:`GET`,path:()=>`/radar/bgp/routes/ases`,query:[`location`,`limit`,`sortBy`,`sortOrder`,`format`],errors:{400:`BadRequestError`}};function Lt(e){return e.usage(`$0 radar bgp routes ases
|
|
75
|
-
|
|
76
|
-
Retrieves all ASes in the current global routing tables with routing statistics.`).option(`location`,{type:`string`,description:`Filters results by location. Specify an alpha-2 location code.`}).option(`limit`,{type:`number`,description:`Limits the number of objects returned in the response.`}).option(`sort-by`,{type:`string`,description:`Sorts results by the specified field.`,choices:[`cone`,`pfxs`,`ipv4`,`ipv6`,`rpki_valid`,`rpki_invalid`,`rpki_unknown`]}).option(`sort-order`,{type:`string`,description:`Sort order.`,choices:[`ASC`,`DESC`]}).option(`format`,{type:`string`,description:`Format in which results will be returned.`,choices:[`JSON`,`CSV`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const Rt={command:`ases`,describe:`List ASes from global routing tables`,builder:Lt,handler:async e=>a({command:`radar bgp routes ases`,classification:{safeFlags:[`sort-by`,`sort-order`,`format`,`dry-run`]}},e,async()=>{let a={location:e.location,limit:e.limit,sortBy:e[`sort-by`],sortOrder:e[`sort-order`],format:e.format};if(e.dryRun){r({command:`cf radar bgp routes ases`,method:`GET`,url:`https://api.cloudflare.com/client/v4/radar/bgp/routes/ases`,pathParams:{},query:a,bodyKind:`none`});return}let o=await t(e),s=await i(`Loading`,async()=>o.send(It,a));n(s,{successLabel:`Loaded`})})};var zt={method:`GET`,path:()=>`/radar/bgp/routes/moas`,query:[`origin`,`prefix`,`invalid_only`,`format`],errors:{400:`BadRequestError`}};function Bt(e){return e.usage(`$0 radar bgp routes moas
|
|
77
|
-
|
|
78
|
-
Retrieves all Multi-Origin AS (MOAS) prefixes in the global routing tables.`).option(`origin`,{type:`number`,description:`Lookup MOASes originated by the given ASN.`}).option(`prefix`,{type:`string`,description:`Prefix`}).option(`invalid-only`,{type:`boolean`,description:`Lookup only RPKI invalid MOASes.`}).option(`format`,{type:`string`,description:`Format in which results will be returned.`,choices:[`JSON`,`CSV`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const Vt={command:`moas`,describe:`Get Multi-Origin AS (MOAS) prefixes`,builder:Bt,handler:async e=>a({command:`radar bgp routes moas`,classification:{safeFlags:[`invalid-only`,`format`,`dry-run`]}},e,async()=>{let a={origin:e.origin,prefix:e.prefix,invalid_only:e[`invalid-only`],format:e.format};if(e.dryRun){r({command:`cf radar bgp routes moas`,method:`GET`,url:`https://api.cloudflare.com/client/v4/radar/bgp/routes/moas`,pathParams:{},query:a,bodyKind:`none`});return}let o=await t(e),s=await i(`Loading`,async()=>o.send(zt,a));n(s,{successLabel:`Loaded`})})};var Ht={method:`GET`,path:t=>e`/radar/bgp/routes/paths/${t.asn}`,query:[`ipVersion`,`collector`,`format`],errors:{400:`BadRequestError`}};function Ut(e){return e.usage(`$0 radar bgp routes paths list
|
|
79
|
-
|
|
80
|
-
Retrieves the paths an AS uses to reach the tier-1 clique, derived from RouteViews RIB snapshots. Each entry is an ordered AS-path segment (from the queried AS toward a tier-1) with the number of observed paths and peers, and the collectors that observed it. By default segments are merged across all active collectors; pass "collector" to scope to one. The response also includes an "asnInfo" map (keyed by ASN) with the name and country for every ASN in the returned segments plus the queried ASN (best-effort; null when unavailable).`).option(`asn`,{type:`string`,description:`Single Autonomous System Number (ASN) as integer.`,demandOption:!0}).option(`ip-version`,{type:`string`,description:`Address family of the observed paths. Defaults to IPv4.`,choices:[`IPv4`,`IPv6`]}).option(`collector`,{type:`string`,description:`Scope to a single RouteViews collector (e.g. "route-views3"). Omit to merge across all active collectors (identical path segments are deduplicated, observation counts summed, and every contributing collector listed).`}).option(`format`,{type:`string`,description:`Format in which results will be returned.`,choices:[`JSON`,`CSV`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const Wt={command:`list`,describe:`Get tier-1 path segments for an AS`,builder:Ut,handler:async e=>a({command:`radar bgp routes paths list`,classification:{safeFlags:[`ip-version`,`format`,`dry-run`]}},e,async()=>{let a={ipVersion:e[`ip-version`],collector:e.collector,format:e.format};if(e.dryRun){r({command:`cf radar bgp routes paths list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/radar/bgp/routes/paths/${e.asn==null?`<asn>`:encodeURIComponent(String(e.asn))}`,pathParams:{asn:String(e.asn??``)},query:a,bodyKind:`none`});return}let o=await t(e),s=await i(`Loading`,async()=>o.send(Ht,{asn:e.asn,...a}));n(s,{successLabel:`Loaded`})})},Gt={command:`paths`,describe:`Operations for bgp.routes.paths`,builder:e=>e.command(Wt).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var Kt={method:`GET`,path:()=>`/radar/bgp/routes/pfx2as`,query:[`prefix`,`origin`,`rpkiStatus`,`longestPrefixMatch`,`format`],errors:{400:`BadRequestError`}};function qt(e){return e.usage(`$0 radar bgp routes pfx2as
|
|
81
|
-
|
|
82
|
-
Retrieves the prefix-to-ASN mapping from global routing tables.`).option(`prefix`,{type:`string`,description:`Prefix`}).option(`origin`,{type:`number`,description:`Lookup prefixes originated by the given ASN.`}).option(`rpki-status`,{type:`string`,description:`Return only results with matching rpki status: valid, invalid or unknown.`,choices:[`VALID`,`INVALID`,`UNKNOWN`]}).option(`longest-prefix-match`,{type:`boolean`,description:`Return only results with the longest prefix match for the given prefix. For example, specify a /32 prefix to lookup the origin ASN for an IPv4 address.`}).option(`format`,{type:`string`,description:`Format in which results will be returned.`,choices:[`JSON`,`CSV`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const Jt={command:`pfx2as`,describe:`Get prefix-to-ASN mapping`,builder:qt,handler:async e=>a({command:`radar bgp routes pfx2as`,classification:{safeFlags:[`rpki-status`,`longest-prefix-match`,`format`,`dry-run`]}},e,async()=>{let a={prefix:e.prefix,origin:e.origin,rpkiStatus:e[`rpki-status`],longestPrefixMatch:e[`longest-prefix-match`],format:e.format};if(e.dryRun){r({command:`cf radar bgp routes pfx2as`,method:`GET`,url:`https://api.cloudflare.com/client/v4/radar/bgp/routes/pfx2as`,pathParams:{},query:a,bodyKind:`none`});return}let o=await t(e),s=await i(`Loading`,async()=>o.send(Kt,a));n(s,{successLabel:`Loaded`})})};var Yt={method:`GET`,path:()=>`/radar/bgp/routes/realtime`,query:[`prefix`,`format`],errors:{400:`BadRequestError`}};function Xt(e){return e.usage(`$0 radar bgp routes realtime
|
|
83
|
-
|
|
84
|
-
Retrieves real-time BGP routes for a prefix, using public real-time data collectors (RouteViews and RIPE RIS).`).option(`prefix`,{type:`string`,description:`Prefix`}).option(`format`,{type:`string`,description:`Format in which results will be returned.`,choices:[`JSON`,`CSV`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const Zt={command:`realtime`,describe:`Get real-time BGP routes for a prefix`,builder:Xt,handler:async e=>a({command:`radar bgp routes realtime`,classification:{safeFlags:[`format`,`dry-run`]}},e,async()=>{let a={prefix:e.prefix,format:e.format};if(e.dryRun){r({command:`cf radar bgp routes realtime`,method:`GET`,url:`https://api.cloudflare.com/client/v4/radar/bgp/routes/realtime`,pathParams:{},query:a,bodyKind:`none`});return}let o=await t(e),s=await i(`Loading`,async()=>o.send(Yt,a));n(s,{successLabel:`Loaded`})})};var Qt={method:`GET`,path:()=>`/radar/bgp/routes/stats`,query:[`asn`,`location`,`format`],errors:{400:`BadRequestError`}};function $t(e){return e.usage(`$0 radar bgp routes stats
|
|
85
|
-
|
|
86
|
-
Retrieves the BGP routing table stats.`).option(`asn`,{type:`number`,description:`Filters results by Autonomous System. Specify a single Autonomous System Number (ASN) as integer.`}).option(`location`,{type:`string`,description:`Filters results by location. Specify an alpha-2 location code.`}).option(`format`,{type:`string`,description:`Format in which results will be returned.`,choices:[`JSON`,`CSV`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const en={command:`stats`,describe:`Get BGP routing table stats`,builder:$t,handler:async e=>a({command:`radar bgp routes stats`,classification:{safeFlags:[`format`,`dry-run`]}},e,async()=>{let a={asn:e.asn,location:e.location,format:e.format};if(e.dryRun){r({command:`cf radar bgp routes stats`,method:`GET`,url:`https://api.cloudflare.com/client/v4/radar/bgp/routes/stats`,pathParams:{},query:a,bodyKind:`none`});return}let o=await t(e),s=await i(`Loading`,async()=>o.send(Qt,a));n(s,{successLabel:`Loaded`})})};var tn={method:`GET`,path:t=>e`/radar/bgp/routes/upstreams/${t.asn}/timeseries`,query:[`ipVersion`,`dateStart`,`dateEnd`,`limit`,`format`],errors:{400:`BadRequestError`}};function nn(e){return e.usage(`$0 radar bgp routes upstreams timeseries <asn>
|
|
87
|
-
|
|
88
|
-
Retrieves the share of an AS’s observed paths carried by each direct upstream over time, derived from RouteViews RIB snapshots across all collectors (the combined product). Each upstream ASN is returned as its own series of shares (0–1); the least-significant upstreams beyond the requested limit are grouped into an "OTHER" series. Series share a common set of timestamps.`).positional(`asn`,{type:`string`,description:`Single Autonomous System Number (ASN) as integer.`,demandOption:!0}).option(`ip-version`,{type:`string`,description:`Address family of the observed paths. Defaults to IPv4.`,choices:[`IPv4`,`IPv6`]}).option(`date-start`,{type:`string`,description:"Start of the date range (inclusive). Alternative to `dateRange`; provide together with `dateEnd`."}).option(`date-end`,{type:`string`,description:"End of the date range (inclusive). Alternative to `dateRange`; provide together with `dateStart`."}).option(`limit`,{type:`number`,description:`Number of upstream ASNs to return as separate series, ranked by the first bucket. Remaining upstreams are grouped into an "OTHER" series. Defaults to 5.`}).option(`format`,{type:`string`,description:`Format in which results will be returned.`,choices:[`JSON`,`CSV`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const rn={command:`timeseries <asn>`,describe:`Get upstream composition time series for an AS`,builder:nn,handler:async e=>a({command:`radar bgp routes upstreams timeseries`,classification:{safeFlags:[`ip-version`,`format`,`dry-run`]}},e,async()=>{let a={ipVersion:e[`ip-version`],dateStart:e[`date-start`],dateEnd:e[`date-end`],limit:e.limit,format:e.format};if(e.dryRun){r({command:`cf radar bgp routes upstreams timeseries`,method:`GET`,url:`https://api.cloudflare.com/client/v4/radar/bgp/routes/upstreams/${e.asn==null?`<asn>`:encodeURIComponent(String(e.asn))}/timeseries`,pathParams:{asn:String(e.asn??``)},query:a,bodyKind:`none`});return}let o=await t(e),s=await i(`Loading`,async()=>o.send(tn,{asn:e.asn,...a}));n(s,{successLabel:`Loaded`})})},an={command:`upstreams`,describe:`Operations for bgp.routes.upstreams`,builder:e=>e.command(rn).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},on={command:`routes`,describe:`Operations for bgp.routes`,builder:e=>e.command(Rt).command(Vt).command(Jt).command(Zt).command(en).command(Gt).command(an).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var sn={method:`GET`,path:()=>`/radar/bgp/rpki/aspa/changes`,query:[`dateStart`,`dateEnd`,`asn`,`includeAsnInfo`,`format`],errors:{400:`BadRequestError`}};function cn(e){return e.usage(`$0 radar bgp rpki aspa changes
|
|
89
|
-
|
|
90
|
-
Retrieves ASPA (Autonomous System Provider Authorization) changes over time. Returns daily aggregated changes including additions, removals, and modifications of ASPA objects.`).option(`date-start`,{type:`string`,description:"Start of the date range (inclusive). Alternative to `dateRange`; provide together with `dateEnd`."}).option(`date-end`,{type:`string`,description:"End of the date range (inclusive). Alternative to `dateRange`; provide together with `dateStart`."}).option(`asn`,{type:`number`,description:`Filter changes involving this ASN (as customer or provider).`}).option(`include-asn-info`,{type:`boolean`,description:`Include ASN metadata (name, country) in response.`}).option(`format`,{type:`string`,description:`Format in which results will be returned.`,choices:[`JSON`,`CSV`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const ln={command:`changes`,describe:`Get ASPA changes over time`,builder:cn,handler:async e=>a({command:`radar bgp rpki aspa changes`,classification:{safeFlags:[`include-asn-info`,`format`,`dry-run`]}},e,async()=>{let a={dateStart:e[`date-start`],dateEnd:e[`date-end`],asn:e.asn,includeAsnInfo:e[`include-asn-info`],format:e.format};if(e.dryRun){r({command:`cf radar bgp rpki aspa changes`,method:`GET`,url:`https://api.cloudflare.com/client/v4/radar/bgp/rpki/aspa/changes`,pathParams:{},query:a,bodyKind:`none`});return}let o=await t(e),s=await i(`Loading`,async()=>o.send(sn,a));n(s,{successLabel:`Loaded`})})};var un={method:`GET`,path:()=>`/radar/bgp/rpki/aspa/snapshot`,query:[`customerAsn`,`providerAsn`,`date`,`includeAsnInfo`,`format`],errors:{400:`BadRequestError`}};function dn(e){return e.usage(`$0 radar bgp rpki aspa snapshot
|
|
91
|
-
|
|
92
|
-
Retrieves current or historical ASPA (Autonomous System Provider Authorization) objects. ASPA objects define which ASNs are authorized upstream providers for a customer ASN.`).option(`customer-asn`,{type:`number`,description:`Filter by customer ASN (the ASN publishing the ASPA object).`}).option(`provider-asn`,{type:`number`,description:`Filter by provider ASN (an authorized upstream provider in ASPA objects).`}).option(`date`,{type:`string`,description:`Filters results by the specified datetime (ISO 8601).`}).option(`include-asn-info`,{type:`boolean`,description:`Include ASN metadata (name, country) in response.`}).option(`format`,{type:`string`,description:`Format in which results will be returned.`,choices:[`JSON`,`CSV`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const fn={command:`snapshot`,describe:`Get ASPA objects snapshot`,builder:dn,handler:async e=>a({command:`radar bgp rpki aspa snapshot`,classification:{safeFlags:[`include-asn-info`,`format`,`dry-run`]}},e,async()=>{let a={customerAsn:e[`customer-asn`],providerAsn:e[`provider-asn`],date:e.date,includeAsnInfo:e[`include-asn-info`],format:e.format};if(e.dryRun){r({command:`cf radar bgp rpki aspa snapshot`,method:`GET`,url:`https://api.cloudflare.com/client/v4/radar/bgp/rpki/aspa/snapshot`,pathParams:{},query:a,bodyKind:`none`});return}let o=await t(e),s=await i(`Loading`,async()=>o.send(un,a));n(s,{successLabel:`Loaded`})})};var pn={method:`GET`,path:()=>`/radar/bgp/rpki/aspa/timeseries`,query:[`dateStart`,`dateEnd`,`name`,`rir`,`location`,`format`],errors:{400:`BadRequestError`}};function mn(e){return e.usage(`$0 radar bgp rpki aspa timeseries
|
|
93
|
-
|
|
94
|
-
Retrieves ASPA (Autonomous System Provider Authorization) object count over time. Supports filtering by RIR or location (country code) to generate multiple named series. If no RIR or location filter is specified, returns total count.`).option(`date-start`,{type:`string`,description:"Start of the date range (inclusive). Alternative to `dateRange`; provide together with `dateEnd`."}).option(`date-end`,{type:`string`,description:"End of the date range (inclusive). Alternative to `dateRange`; provide together with `dateStart`."}).option(`name`,{type:`string`,description:`Array of names used to label the series in the response.`}).option(`rir`,{type:`string`,description:`Filter by Regional Internet Registry (RIR). Multiple RIRs generate multiple series.`}).option(`location`,{type:`string`,description:`Filters results by location. Specify a comma-separated list of alpha-2 location codes.`}).option(`format`,{type:`string`,description:`Format in which results will be returned.`,choices:[`JSON`,`CSV`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const hn={command:`timeseries`,describe:`Get ASPA count time series`,builder:mn,handler:async e=>a({command:`radar bgp rpki aspa timeseries`,classification:{safeFlags:[`format`,`dry-run`]}},e,async()=>{let a={dateStart:e[`date-start`],dateEnd:e[`date-end`],name:e.name,rir:e.rir,location:e.location,format:e.format};if(e.dryRun){r({command:`cf radar bgp rpki aspa timeseries`,method:`GET`,url:`https://api.cloudflare.com/client/v4/radar/bgp/rpki/aspa/timeseries`,pathParams:{},query:a,bodyKind:`none`});return}let o=await t(e),s=await i(`Loading`,async()=>o.send(pn,a));n(s,{successLabel:`Loaded`})})},gn={command:`aspa`,describe:`Operations for bgp.rpki.aspa`,builder:e=>e.command(ln).command(fn).command(hn).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var _n={method:`GET`,path:()=>`/radar/bgp/rpki/roas/timeseries`,query:[`dateStart`,`dateEnd`,`metric`,`asn`,`location`,`name`,`format`],errors:{400:`BadRequestError`}};function vn(e){return e.usage(`$0 radar bgp rpki roas timeseries
|
|
95
|
-
|
|
96
|
-
Retrieves RPKI ROA (Route Origin Authorization) validation ratios over time. Returns the selected metric as a time series. Supports filtering by ASN or location (country code) — multiple values of the same filter type produce one series per value. If no ASN or location is specified, returns the global aggregate.`).option(`date-start`,{type:`string`,description:"Start of the date range (inclusive). Alternative to `dateRange`; provide together with `dateEnd`."}).option(`date-end`,{type:`string`,description:"End of the date range (inclusive). Alternative to `dateRange`; provide together with `dateStart`."}).option(`metric`,{type:`string`,description:`Which RPKI ROA validation metric to return. validPfxsRatio = ratio of RPKI-valid prefixes (IPv4+IPv6 combined). validPfxsV4Ratio / validPfxsV6Ratio = same, split by IP version. validIpsRatio = ratio of RPKI-valid address space (IPv4 /24s + IPv6 /48s). validIpsV4Ratio / validIpsV6Ratio = same, split by IP version.`,choices:[`validPfxsRatio`,`validPfxsV4Ratio`,`validPfxsV6Ratio`,`validIpsRatio`,`validIpsV4Ratio`,`validIpsV6Ratio`]}).option(`asn`,{type:`string`,description:`Filters results by Autonomous System Number. Specify one or more ASNs. Multiple values generate one series per ASN.`}).option(`location`,{type:`string`,description:`Filters results by location. Specify a comma-separated list of alpha-2 location codes.`}).option(`name`,{type:`string`,description:`Array of names used to label the series in the response.`}).option(`format`,{type:`string`,description:`Format in which results will be returned.`,choices:[`JSON`,`CSV`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const yn={command:`timeseries`,describe:`Get RPKI ROA deployment time series`,builder:vn,handler:async e=>a({command:`radar bgp rpki roas timeseries`,classification:{safeFlags:[`metric`,`format`,`dry-run`]}},e,async()=>{let a={dateStart:e[`date-start`],dateEnd:e[`date-end`],metric:e.metric,asn:e.asn,location:e.location,name:e.name,format:e.format};if(e.dryRun){r({command:`cf radar bgp rpki roas timeseries`,method:`GET`,url:`https://api.cloudflare.com/client/v4/radar/bgp/rpki/roas/timeseries`,pathParams:{},query:a,bodyKind:`none`});return}let o=await t(e),s=await i(`Loading`,async()=>o.send(_n,a));n(s,{successLabel:`Loaded`})})},bn={command:`roas`,describe:`Operations for bgp.rpki.roas`,builder:e=>e.command(yn).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},xn={command:`rpki`,describe:`Operations for bgp.rpki`,builder:e=>e.command(gn).command(bn).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var Sn={method:`GET`,path:()=>`/radar/bgp/timeseries`,query:[`aggInterval`,`name`,`dateRange`,`dateStart`,`dateEnd`,`prefix`,`updateType`,`asn`,`format`],errors:{400:`BadRequestError`}};function Cn(e){return e.usage(`$0 radar bgp timeseries
|
|
97
|
-
|
|
98
|
-
Retrieves BGP updates over time. When requesting updates for an autonomous system, only BGP updates of type announcement are returned.`).option(`agg-interval`,{type:`string`,description:`Aggregation interval of the results (e.g., in 15 minutes or 1 hour intervals). Refer to [Aggregation intervals](https://developers.cloudflare.com/radar/concepts/aggregation-intervals/). When omitted, the interval is auto-selected from the requested date range; finer intervals are only available for shorter ranges. If the requested interval is too granular for the date range, the request is rejected.`,choices:[`15m`,`1h`,`1d`,`1w`]}).option(`name`,{type:`string`,description:`Array of names used to label the series in the response.`}).option(`date-range`,{type:`string`,description:"Filters results by relative date range ending at the current time, with each value producing a separate series. Use `<n>d` for days (up to `364d`) or `<n>w` for weeks (up to `52w`). Append `control` to request the equivalent previous period for comparison: the comparison window is shifted back by the current window's length rounded up to a whole number of weeks, so it keeps the same weekday alignment and does not overlap the current window (e.g. `7dcontrol` covers days -14 to -7, `10dcontrol` covers days -24 to -14). For example, pass `7d` and `7dcontrol` to compare this week with the previous week. All series must resolve to the same duration as the main series; relative ranges (including `control`) satisfy this automatically. Use this parameter or set specific start and end dates (`dateStart` and `dateEnd` parameters)."}).option(`date-start`,{type:`string`,description:"Start of the date range. Alternative to `dateRange`; provide together with `dateEnd`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`date-end`,{type:`string`,description:"End of the date range (inclusive). Alternative to `dateRange`; provide together with `dateStart`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`prefix`,{type:`string`,description:`Filters results by BGP network prefix.`}).option(`update-type`,{type:`string`,description:`Filters results by BGP update type.`}).option(`asn`,{type:`string`,description:"Filters results by Autonomous System. Specify one or more Autonomous System Numbers (ASNs) as a comma-separated list. Prefix with `-` to exclude ASNs from results. For example, `-174, 3356` excludes results from AS174, but includes results from AS3356."}).option(`format`,{type:`string`,description:`Format in which results will be returned.`,choices:[`JSON`,`CSV`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const wn={command:`timeseries`,describe:`Get BGP time series`,builder:Cn,handler:async e=>a({command:`radar bgp timeseries`,classification:{safeFlags:[`agg-interval`,`format`,`dry-run`]}},e,async()=>{let a={aggInterval:e[`agg-interval`],name:e.name,dateRange:e[`date-range`],dateStart:e[`date-start`],dateEnd:e[`date-end`],prefix:e.prefix,updateType:e[`update-type`],asn:e.asn,format:e.format};if(e.dryRun){r({command:`cf radar bgp timeseries`,method:`GET`,url:`https://api.cloudflare.com/client/v4/radar/bgp/timeseries`,pathParams:{},query:a,bodyKind:`none`});return}let o=await t(e),s=await i(`Loading`,async()=>o.send(Sn,a));n(s,{successLabel:`Loaded`})})};var Tn={method:`GET`,path:()=>`/radar/bgp/top/ases`,query:[`limit`,`name`,`dateRange`,`dateStart`,`dateEnd`,`asn`,`prefix`,`updateType`,`format`],errors:{400:`BadRequestError`}};function En(e){return e.usage(`$0 radar bgp top ases get
|
|
99
|
-
|
|
100
|
-
Retrieves the top autonomous systems by BGP updates (announcements only).`).option(`limit`,{type:`number`,description:`Limits the number of objects returned in the response.`}).option(`name`,{type:`string`,description:`Array of names used to label the series in the response.`}).option(`date-range`,{type:`string`,description:"Filters results by relative date range ending at the current time, with each value producing a separate series. Use `<n>d` for days (up to `364d`) or `<n>w` for weeks (up to `52w`). Append `control` to request the equivalent previous period for comparison: the comparison window is shifted back by the current window's length rounded up to a whole number of weeks, so it keeps the same weekday alignment and does not overlap the current window (e.g. `7dcontrol` covers days -14 to -7, `10dcontrol` covers days -24 to -14). For example, pass `7d` and `7dcontrol` to compare this week with the previous week. All series must resolve to the same duration as the main series; relative ranges (including `control`) satisfy this automatically. Use this parameter or set specific start and end dates (`dateStart` and `dateEnd` parameters)."}).option(`date-start`,{type:`string`,description:"Start of the date range. Alternative to `dateRange`; provide together with `dateEnd`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`date-end`,{type:`string`,description:"End of the date range (inclusive). Alternative to `dateRange`; provide together with `dateStart`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`asn`,{type:`string`,description:"Filters results by Autonomous System. Specify one or more Autonomous System Numbers (ASNs) as a comma-separated list. Prefix with `-` to exclude ASNs from results. For example, `-174, 3356` excludes results from AS174, but includes results from AS3356."}).option(`prefix`,{type:`string`,description:`Filters results by BGP network prefix.`}).option(`update-type`,{type:`string`,description:`Filters results by BGP update type.`}).option(`format`,{type:`string`,description:`Format in which results will be returned.`,choices:[`JSON`,`CSV`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const Dn={command:`get`,describe:`Get top ASes by BGP updates`,builder:En,handler:async e=>a({command:`radar bgp top ases get`,classification:{safeFlags:[`format`,`dry-run`]}},e,async()=>{let a={limit:e.limit,name:e.name,dateRange:e[`date-range`],dateStart:e[`date-start`],dateEnd:e[`date-end`],asn:e.asn,prefix:e.prefix,updateType:e[`update-type`],format:e.format};if(e.dryRun){r({command:`cf radar bgp top ases get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/radar/bgp/top/ases`,pathParams:{},query:a,bodyKind:`none`});return}let o=await t(e),s=await i(`Loading`,async()=>o.send(Tn,a));n(s,{successLabel:`Loaded`})})};var On={method:`GET`,path:()=>`/radar/bgp/top/ases/prefixes`,query:[`country`,`limit`,`format`],errors:{404:`NotFoundError`}};function kn(e){return e.usage(`$0 radar bgp top ases prefixes
|
|
101
|
-
|
|
102
|
-
Retrieves the full list of autonomous systems on the global routing table ordered by announced prefixes count. The data comes from public BGP MRT data archives and updates every 2 hours.`).option(`country`,{type:`string`,description:`Alpha-2 country code.`}).option(`limit`,{type:`number`,description:`Maximum number of ASes to return.`}).option(`format`,{type:`string`,description:`Format in which results will be returned.`,choices:[`JSON`,`CSV`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const An={command:`prefixes`,describe:`Get top ASes by prefix count`,builder:kn,handler:async e=>a({command:`radar bgp top ases prefixes`,classification:{safeFlags:[`format`,`dry-run`]}},e,async()=>{let a={country:e.country,limit:e.limit,format:e.format};if(e.dryRun){r({command:`cf radar bgp top ases prefixes`,method:`GET`,url:`https://api.cloudflare.com/client/v4/radar/bgp/top/ases/prefixes`,pathParams:{},query:a,bodyKind:`none`});return}let o=await t(e),s=await i(`Loading`,async()=>o.send(On,a));n(s,{successLabel:`Loaded`})})},jn={command:`ases`,describe:`Operations for bgp.top.ases`,builder:e=>e.command(Dn).command(An).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var Mn={method:`GET`,path:()=>`/radar/bgp/top/prefixes`,query:[`limit`,`name`,`dateRange`,`dateStart`,`dateEnd`,`asn`,`updateType`,`format`],errors:{400:`BadRequestError`}};function Nn(e){return e.usage(`$0 radar bgp top prefixes
|
|
103
|
-
|
|
104
|
-
Retrieves the top network prefixes by BGP updates.`).option(`limit`,{type:`number`,description:`Limits the number of objects returned in the response.`}).option(`name`,{type:`string`,description:`Array of names used to label the series in the response.`}).option(`date-range`,{type:`string`,description:"Filters results by relative date range ending at the current time, with each value producing a separate series. Use `<n>d` for days (up to `364d`) or `<n>w` for weeks (up to `52w`). Append `control` to request the equivalent previous period for comparison: the comparison window is shifted back by the current window's length rounded up to a whole number of weeks, so it keeps the same weekday alignment and does not overlap the current window (e.g. `7dcontrol` covers days -14 to -7, `10dcontrol` covers days -24 to -14). For example, pass `7d` and `7dcontrol` to compare this week with the previous week. All series must resolve to the same duration as the main series; relative ranges (including `control`) satisfy this automatically. Use this parameter or set specific start and end dates (`dateStart` and `dateEnd` parameters)."}).option(`date-start`,{type:`string`,description:"Start of the date range. Alternative to `dateRange`; provide together with `dateEnd`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`date-end`,{type:`string`,description:"End of the date range (inclusive). Alternative to `dateRange`; provide together with `dateStart`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`asn`,{type:`string`,description:"Filters results by Autonomous System. Specify one or more Autonomous System Numbers (ASNs) as a comma-separated list. Prefix with `-` to exclude ASNs from results. For example, `-174, 3356` excludes results from AS174, but includes results from AS3356."}).option(`update-type`,{type:`string`,description:`Filters results by BGP update type.`}).option(`format`,{type:`string`,description:`Format in which results will be returned.`,choices:[`JSON`,`CSV`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const Pn={command:`prefixes`,describe:`Get top prefixes by BGP updates`,builder:Nn,handler:async e=>a({command:`radar bgp top prefixes`,classification:{safeFlags:[`format`,`dry-run`]}},e,async()=>{let a={limit:e.limit,name:e.name,dateRange:e[`date-range`],dateStart:e[`date-start`],dateEnd:e[`date-end`],asn:e.asn,updateType:e[`update-type`],format:e.format};if(e.dryRun){r({command:`cf radar bgp top prefixes`,method:`GET`,url:`https://api.cloudflare.com/client/v4/radar/bgp/top/prefixes`,pathParams:{},query:a,bodyKind:`none`});return}let o=await t(e),s=await i(`Loading`,async()=>o.send(Mn,a));n(s,{successLabel:`Loaded`})})},Fn={command:`top`,describe:`Operations for bgp.top`,builder:e=>e.command(Pn).command(jn).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},In={command:`bgp`,describe:`BGP routing data — prefix announcements, AS-level stats, route leaks, and hijack events`,builder:e=>e.command(wn).command(St).command(At).command(Ft).command(on).command(xn).command(Fn).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var Ln={method:`GET`,path:t=>e`/radar/bots/${t.bot_slug}`,query:[`format`],errors:{404:`NotFoundError`}};function Rn(e){return e.usage(`$0 radar bots get <bot-slug>
|
|
105
|
-
|
|
106
|
-
Retrieves the requested bot information.`).positional(`bot-slug`,{type:`string`,description:`Bot slug.`,demandOption:!0}).option(`format`,{type:`string`,description:`Format in which results will be returned.`,choices:[`JSON`,`CSV`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const zn={command:`get <bot-slug>`,describe:`Get bot details`,builder:Rn,handler:async e=>a({command:`radar bots get`,classification:{safeFlags:[`format`,`dry-run`]}},e,async()=>{let a={format:e.format};if(e.dryRun){r({command:`cf radar bots get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/radar/bots/${e[`bot-slug`]==null?`<bot-slug>`:encodeURIComponent(String(e[`bot-slug`]))}`,pathParams:{"bot-slug":String(e[`bot-slug`]??``)},query:a,bodyKind:`none`});return}let o=await t(e),s=await i(`Loading`,async()=>o.send(Ln,{bot_slug:e[`bot-slug`],...a}));n(s,{successLabel:`Loaded`})})};var Bn={method:`GET`,path:()=>`/radar/bots`,query:[`limit`,`offset`,`botCategory`,`botOperator`,`kind`,`botVerificationStatus`,`format`],errors:{400:`BadRequestError`}};function Vn(e){return e.usage(`$0 radar bots list
|
|
107
|
-
|
|
108
|
-
Retrieves a list of bots.`).option(`limit`,{type:`number`,description:`Limits the number of objects returned in the response.`}).option(`offset`,{type:`number`,description:`Skips the specified number of objects before fetching the results.`}).option(`bot-category`,{type:`string`,description:`Filters results by bot category.`,choices:[`SEARCH_ENGINE_CRAWLER`,`SEARCH_ENGINE_OPTIMIZATION`,`MONITORING_AND_ANALYTICS`,`ADVERTISING_AND_MARKETING`,`SOCIAL_MEDIA_MARKETING`,`PAGE_PREVIEW`,`ACADEMIC_RESEARCH`,`SECURITY`,`ACCESSIBILITY`,`WEBHOOKS`,`FEED_FETCHER`,`AI_CRAWLER`,`AGGREGATOR`,`AI_ASSISTANT`,`AI_SEARCH`,`ARCHIVER`]}).option(`bot-operator`,{type:`string`,description:`Filters results by bot operator.`}).option(`kind`,{type:`string`,description:`Filters results by bot kind. Deprecated: the Verified Bot / Signed Agent distinction is being removed.`,choices:[`AGENT`,`BOT`]}).option(`bot-verification-status`,{type:`string`,description:`Filters results by bot verification status.`,choices:[`VERIFIED`]}).option(`format`,{type:`string`,description:`Format in which results will be returned.`,choices:[`JSON`,`CSV`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const Hn={command:`list`,describe:`List bots`,builder:Vn,handler:async e=>a({command:`radar bots list`,classification:{safeFlags:[`bot-category`,`kind`,`bot-verification-status`,`format`,`dry-run`]}},e,async()=>{let a={limit:e.limit,offset:e.offset,botCategory:e[`bot-category`],botOperator:e[`bot-operator`],kind:e.kind,botVerificationStatus:e[`bot-verification-status`],format:e.format};if(e.dryRun){r({command:`cf radar bots list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/radar/bots`,pathParams:{},query:a,bodyKind:`none`});return}let o=await t(e),s=await i(`Loading`,async()=>o.send(Bn,a));n(s,{successLabel:`Loaded`})})};var Un={method:`GET`,path:t=>e`/radar/bots/summary/${t.dimension}`,query:[`name`,`dateRange`,`dateStart`,`dateEnd`,`asn`,`location`,`continent`,`limitPerGroup`,`bot`,`botOperator`,`botCategory`,`botKind`,`botVerificationStatus`,`format`],errors:{400:`BadRequestError`}};function Wn(e){return e.usage(`$0 radar bots summary <dimension>
|
|
109
|
-
|
|
110
|
-
Retrieves an aggregated summary of bots HTTP requests grouped by the specified dimension.`).positional(`dimension`,{type:`string`,description:`Specifies the attribute by which to group the results.`,demandOption:!0}).option(`name`,{type:`string`,description:`Array of names used to label the series in the response.`}).option(`date-range`,{type:`string`,description:"Filters results by relative date range ending at the current time, with each value producing a separate series. Use `<n>d` for days (up to `364d`) or `<n>w` for weeks (up to `52w`). Append `control` to request the equivalent previous period for comparison: the comparison window is shifted back by the current window's length rounded up to a whole number of weeks, so it keeps the same weekday alignment and does not overlap the current window (e.g. `7dcontrol` covers days -14 to -7, `10dcontrol` covers days -24 to -14). For example, pass `7d` and `7dcontrol` to compare this week with the previous week. All series must resolve to the same duration as the main series; relative ranges (including `control`) satisfy this automatically. Use this parameter or set specific start and end dates (`dateStart` and `dateEnd` parameters)."}).option(`date-start`,{type:`string`,description:"Start of the date range. Alternative to `dateRange`; provide together with `dateEnd`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`date-end`,{type:`string`,description:"End of the date range (inclusive). Alternative to `dateRange`; provide together with `dateStart`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`asn`,{type:`string`,description:"Filters results by Autonomous System. Specify one or more Autonomous System Numbers (ASNs) as a comma-separated list. Prefix with `-` to exclude ASNs from results. For example, `-174, 3356` excludes results from AS174, but includes results from AS3356."}).option(`location`,{type:`string`,description:"Filters results by location. Specify a comma-separated list of alpha-2 codes. Prefix with `-` to exclude locations from results. For example, `-US,PT` excludes results from the US, but includes results from PT."}).option(`continent`,{type:`string`,description:"Filters results by continent. Specify a comma-separated list of alpha-2 codes. Prefix with `-` to exclude continents from results. For example, `-EU,NA` excludes results from EU, but includes results from NA."}).option(`limit-per-group`,{type:`number`,description:`Limits the number of objects per group to the top items within the specified time range. When item count exceeds the limit, extra items appear grouped under an "other" category. Only supported on high-cardinality dimensions; otherwise the request is rejected. Minimum value is 2.`}).option(`bot`,{type:`string`,description:`Filters results by bot name.`}).option(`bot-operator`,{type:`string`,description:`Filters results by bot operator.`}).option(`bot-category`,{type:`string`,description:`Filters results by bot category.`}).option(`bot-kind`,{type:`string`,description:`Filters results by bot kind. Deprecated: the Verified Bot / Signed Agent distinction is being removed.`}).option(`bot-verification-status`,{type:`string`,description:`Filters results by bot verification status (Verified vs. Unverified).`}).option(`format`,{type:`string`,description:`Format in which results will be returned.`,choices:[`JSON`,`CSV`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const Gn={command:`summary <dimension>`,describe:`Get bots HTTP requests distribution by dimension`,builder:Wn,handler:async e=>a({command:`radar bots summary`,classification:{safeFlags:[`format`,`dry-run`]}},e,async()=>{let a={name:e.name,dateRange:e[`date-range`],dateStart:e[`date-start`],dateEnd:e[`date-end`],asn:e.asn,location:e.location,continent:e.continent,limitPerGroup:e[`limit-per-group`],bot:e.bot,botOperator:e[`bot-operator`],botCategory:e[`bot-category`],botKind:e[`bot-kind`],botVerificationStatus:e[`bot-verification-status`],format:e.format};if(e.dryRun){r({command:`cf radar bots summary`,method:`GET`,url:`https://api.cloudflare.com/client/v4/radar/bots/summary/${e.dimension==null?`<dimension>`:encodeURIComponent(String(e.dimension))}`,pathParams:{dimension:String(e.dimension??``)},query:a,bodyKind:`none`});return}let o=await t(e),s=await i(`Loading`,async()=>o.send(Un,{dimension:e.dimension,...a}));n(s,{successLabel:`Loaded`})})};var Kn={method:`GET`,path:t=>e`/radar/bots/timeseries_groups/${t.dimension}`,query:[`aggInterval`,`name`,`dateRange`,`dateStart`,`dateEnd`,`asn`,`location`,`continent`,`limitPerGroup`,`bot`,`botOperator`,`botCategory`,`botKind`,`botVerificationStatus`,`format`],errors:{400:`BadRequestError`}};function qn(e){return e.usage(`$0 radar bots timeseries-groups <dimension>
|
|
111
|
-
|
|
112
|
-
Retrieves the distribution of HTTP requests from bots, grouped by the specified dimension over time.`).positional(`dimension`,{type:`string`,description:`Specifies the attribute by which to group the results.`,demandOption:!0}).option(`agg-interval`,{type:`string`,description:`Aggregation interval of the results (e.g., in 15 minutes or 1 hour intervals). Refer to [Aggregation intervals](https://developers.cloudflare.com/radar/concepts/aggregation-intervals/). When omitted, the interval is auto-selected from the requested date range; finer intervals are only available for shorter ranges. If the requested interval is too granular for the date range, the request is rejected.`,choices:[`15m`,`1h`,`1d`,`1w`]}).option(`name`,{type:`string`,description:`Array of names used to label the series in the response.`}).option(`date-range`,{type:`string`,description:"Filters results by relative date range ending at the current time, with each value producing a separate series. Use `<n>d` for days (up to `364d`) or `<n>w` for weeks (up to `52w`). Append `control` to request the equivalent previous period for comparison: the comparison window is shifted back by the current window's length rounded up to a whole number of weeks, so it keeps the same weekday alignment and does not overlap the current window (e.g. `7dcontrol` covers days -14 to -7, `10dcontrol` covers days -24 to -14). For example, pass `7d` and `7dcontrol` to compare this week with the previous week. All series must resolve to the same duration as the main series; relative ranges (including `control`) satisfy this automatically. Use this parameter or set specific start and end dates (`dateStart` and `dateEnd` parameters)."}).option(`date-start`,{type:`string`,description:"Start of the date range. Alternative to `dateRange`; provide together with `dateEnd`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`date-end`,{type:`string`,description:"End of the date range (inclusive). Alternative to `dateRange`; provide together with `dateStart`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`asn`,{type:`string`,description:"Filters results by Autonomous System. Specify one or more Autonomous System Numbers (ASNs) as a comma-separated list. Prefix with `-` to exclude ASNs from results. For example, `-174, 3356` excludes results from AS174, but includes results from AS3356."}).option(`location`,{type:`string`,description:"Filters results by location. Specify a comma-separated list of alpha-2 codes. Prefix with `-` to exclude locations from results. For example, `-US,PT` excludes results from the US, but includes results from PT."}).option(`continent`,{type:`string`,description:"Filters results by continent. Specify a comma-separated list of alpha-2 codes. Prefix with `-` to exclude continents from results. For example, `-EU,NA` excludes results from EU, but includes results from NA."}).option(`limit-per-group`,{type:`number`,description:`Limits the number of objects per group to the top items within the specified time range. When item count exceeds the limit, extra items appear grouped under an "other" category. Only supported on high-cardinality dimensions; otherwise the request is rejected. Minimum value is 2.`}).option(`bot`,{type:`string`,description:`Filters results by bot name.`}).option(`bot-operator`,{type:`string`,description:`Filters results by bot operator.`}).option(`bot-category`,{type:`string`,description:`Filters results by bot category.`}).option(`bot-kind`,{type:`string`,description:`Filters results by bot kind. Deprecated: the Verified Bot / Signed Agent distinction is being removed.`}).option(`bot-verification-status`,{type:`string`,description:`Filters results by bot verification status (Verified vs. Unverified).`}).option(`format`,{type:`string`,description:`Format in which results will be returned.`,choices:[`JSON`,`CSV`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const Jn={command:`timeseries-groups <dimension>`,describe:`Get time series distribution of bots HTTP requests by dimension.`,builder:qn,handler:async e=>a({command:`radar bots timeseries-groups`,classification:{safeFlags:[`agg-interval`,`format`,`dry-run`]}},e,async()=>{let a={aggInterval:e[`agg-interval`],name:e.name,dateRange:e[`date-range`],dateStart:e[`date-start`],dateEnd:e[`date-end`],asn:e.asn,location:e.location,continent:e.continent,limitPerGroup:e[`limit-per-group`],bot:e.bot,botOperator:e[`bot-operator`],botCategory:e[`bot-category`],botKind:e[`bot-kind`],botVerificationStatus:e[`bot-verification-status`],format:e.format};if(e.dryRun){r({command:`cf radar bots timeseries-groups`,method:`GET`,url:`https://api.cloudflare.com/client/v4/radar/bots/timeseries_groups/${e.dimension==null?`<dimension>`:encodeURIComponent(String(e.dimension))}`,pathParams:{dimension:String(e.dimension??``)},query:a,bodyKind:`none`});return}let o=await t(e),s=await i(`Loading`,async()=>o.send(Kn,{dimension:e.dimension,...a}));n(s,{successLabel:`Loaded`})})};var Yn={method:`GET`,path:()=>`/radar/bots/timeseries`,query:[`aggInterval`,`name`,`dateRange`,`dateStart`,`dateEnd`,`asn`,`location`,`continent`,`bot`,`botOperator`,`botCategory`,`botKind`,`botVerificationStatus`,`format`],errors:{400:`BadRequestError`}};function Xn(e){return e.usage(`$0 radar bots timeseries
|
|
113
|
-
|
|
114
|
-
Retrieves bots HTTP request volume over time.`).option(`agg-interval`,{type:`string`,description:`Aggregation interval of the results (e.g., in 15 minutes or 1 hour intervals). Refer to [Aggregation intervals](https://developers.cloudflare.com/radar/concepts/aggregation-intervals/). When omitted, the interval is auto-selected from the requested date range; finer intervals are only available for shorter ranges. If the requested interval is too granular for the date range, the request is rejected.`,choices:[`15m`,`1h`,`1d`,`1w`]}).option(`name`,{type:`string`,description:`Array of names used to label the series in the response.`}).option(`date-range`,{type:`string`,description:"Filters results by relative date range ending at the current time, with each value producing a separate series. Use `<n>d` for days (up to `364d`) or `<n>w` for weeks (up to `52w`). Append `control` to request the equivalent previous period for comparison: the comparison window is shifted back by the current window's length rounded up to a whole number of weeks, so it keeps the same weekday alignment and does not overlap the current window (e.g. `7dcontrol` covers days -14 to -7, `10dcontrol` covers days -24 to -14). For example, pass `7d` and `7dcontrol` to compare this week with the previous week. All series must resolve to the same duration as the main series; relative ranges (including `control`) satisfy this automatically. Use this parameter or set specific start and end dates (`dateStart` and `dateEnd` parameters)."}).option(`date-start`,{type:`string`,description:"Start of the date range. Alternative to `dateRange`; provide together with `dateEnd`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`date-end`,{type:`string`,description:"End of the date range (inclusive). Alternative to `dateRange`; provide together with `dateStart`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`asn`,{type:`string`,description:"Filters results by Autonomous System. Specify one or more Autonomous System Numbers (ASNs) as a comma-separated list. Prefix with `-` to exclude ASNs from results. For example, `-174, 3356` excludes results from AS174, but includes results from AS3356."}).option(`location`,{type:`string`,description:"Filters results by location. Specify a comma-separated list of alpha-2 codes. Prefix with `-` to exclude locations from results. For example, `-US,PT` excludes results from the US, but includes results from PT."}).option(`continent`,{type:`string`,description:"Filters results by continent. Specify a comma-separated list of alpha-2 codes. Prefix with `-` to exclude continents from results. For example, `-EU,NA` excludes results from EU, but includes results from NA."}).option(`bot`,{type:`string`,description:`Filters results by bot name.`}).option(`bot-operator`,{type:`string`,description:`Filters results by bot operator.`}).option(`bot-category`,{type:`string`,description:`Filters results by bot category.`}).option(`bot-kind`,{type:`string`,description:`Filters results by bot kind. Deprecated: the Verified Bot / Signed Agent distinction is being removed.`}).option(`bot-verification-status`,{type:`string`,description:`Filters results by bot verification status (Verified vs. Unverified).`}).option(`format`,{type:`string`,description:`Format in which results will be returned.`,choices:[`JSON`,`CSV`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const Zn={command:`timeseries`,describe:`Get bots HTTP requests time series`,builder:Xn,handler:async e=>a({command:`radar bots timeseries`,classification:{safeFlags:[`agg-interval`,`format`,`dry-run`]}},e,async()=>{let a={aggInterval:e[`agg-interval`],name:e.name,dateRange:e[`date-range`],dateStart:e[`date-start`],dateEnd:e[`date-end`],asn:e.asn,location:e.location,continent:e.continent,bot:e.bot,botOperator:e[`bot-operator`],botCategory:e[`bot-category`],botKind:e[`bot-kind`],botVerificationStatus:e[`bot-verification-status`],format:e.format};if(e.dryRun){r({command:`cf radar bots timeseries`,method:`GET`,url:`https://api.cloudflare.com/client/v4/radar/bots/timeseries`,pathParams:{},query:a,bodyKind:`none`});return}let o=await t(e),s=await i(`Loading`,async()=>o.send(Yn,a));n(s,{successLabel:`Loaded`})})};var Qn={method:`GET`,path:t=>e`/radar/bots/crawlers/summary/${t.dimension}`,query:[`name`,`dateRange`,`dateStart`,`dateEnd`,`limitPerGroup`,`botOperator`,`vertical`,`industry`,`clientType`,`responseStatus`,`responseStatusCategory`,`format`],errors:{400:`BadRequestError`}};function $n(e){return e.usage(`$0 radar bots web-crawlers summary <dimension>
|
|
115
|
-
|
|
116
|
-
Retrieves an aggregated summary of HTTP requests from crawlers, grouped by the specified dimension.`).positional(`dimension`,{type:`string`,description:`Specifies the attribute by which to group the results.`,demandOption:!0}).option(`name`,{type:`string`,description:`Array of names used to label the series in the response.`}).option(`date-range`,{type:`string`,description:"Filters results by relative date range ending at the current time, with each value producing a separate series. Use `<n>d` for days (up to `364d`) or `<n>w` for weeks (up to `52w`). Append `control` to request the equivalent previous period for comparison: the comparison window is shifted back by the current window's length rounded up to a whole number of weeks, so it keeps the same weekday alignment and does not overlap the current window (e.g. `7dcontrol` covers days -14 to -7, `10dcontrol` covers days -24 to -14). For example, pass `7d` and `7dcontrol` to compare this week with the previous week. All series must resolve to the same duration as the main series; relative ranges (including `control`) satisfy this automatically. Use this parameter or set specific start and end dates (`dateStart` and `dateEnd` parameters)."}).option(`date-start`,{type:`string`,description:"Start of the date range. Alternative to `dateRange`; provide together with `dateEnd`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`date-end`,{type:`string`,description:"End of the date range (inclusive). Alternative to `dateRange`; provide together with `dateStart`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`limit-per-group`,{type:`number`,description:`Limits the number of objects per group to the top items within the specified time range. When item count exceeds the limit, extra items appear grouped under an "other" category. Only supported on high-cardinality dimensions; otherwise the request is rejected. Minimum value is 2.`}).option(`bot-operator`,{type:`string`,description:`Filters results by bot operator.`}).option(`vertical`,{type:`string`,description:`Filters results by vertical.`}).option(`industry`,{type:`string`,description:`Filters results by industry.`}).option(`client-type`,{type:`string`,description:`Filters results by agent type.`}).option(`response-status`,{type:`string`,description:`Filters results by HTTP response status code (e.g. 200, 403, 404). Only [IANA-registered codes](https://www.iana.org/assignments/http-status-codes/http-status-codes.xhtml) are accepted.`}).option(`response-status-category`,{type:`string`,description:`Filters results by HTTP response status code category.`}).option(`format`,{type:`string`,description:`Format in which results will be returned.`,choices:[`JSON`,`CSV`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const er={command:`summary <dimension>`,describe:`Get crawler HTTP request distribution by dimension`,builder:$n,handler:async e=>a({command:`radar bots web-crawlers summary`,classification:{safeFlags:[`format`,`dry-run`]}},e,async()=>{let a={name:e.name,dateRange:e[`date-range`],dateStart:e[`date-start`],dateEnd:e[`date-end`],limitPerGroup:e[`limit-per-group`],botOperator:e[`bot-operator`],vertical:e.vertical,industry:e.industry,clientType:e[`client-type`],responseStatus:e[`response-status`],responseStatusCategory:e[`response-status-category`],format:e.format};if(e.dryRun){r({command:`cf radar bots web-crawlers summary`,method:`GET`,url:`https://api.cloudflare.com/client/v4/radar/bots/crawlers/summary/${e.dimension==null?`<dimension>`:encodeURIComponent(String(e.dimension))}`,pathParams:{dimension:String(e.dimension??``)},query:a,bodyKind:`none`});return}let o=await t(e),s=await i(`Loading`,async()=>o.send(Qn,{dimension:e.dimension,...a}));n(s,{successLabel:`Loaded`})})};var tr={method:`GET`,path:t=>e`/radar/bots/crawlers/timeseries_groups/${t.dimension}`,query:[`aggInterval`,`name`,`dateRange`,`dateStart`,`dateEnd`,`limitPerGroup`,`normalization`,`botOperator`,`vertical`,`industry`,`clientType`,`responseStatus`,`responseStatusCategory`,`format`],errors:{400:`BadRequestError`}};function nr(e){return e.usage(`$0 radar bots web-crawlers timeseries-groups <dimension>
|
|
117
|
-
|
|
118
|
-
Retrieves the distribution of HTTP requests from crawlers, grouped by the specified dimension over time.`).positional(`dimension`,{type:`string`,description:`Specifies the attribute by which to group the results.`,demandOption:!0}).option(`agg-interval`,{type:`string`,description:`Aggregation interval of the results (e.g., in 15 minutes or 1 hour intervals). Refer to [Aggregation intervals](https://developers.cloudflare.com/radar/concepts/aggregation-intervals/). When omitted, the interval is auto-selected from the requested date range; finer intervals are only available for shorter ranges. If the requested interval is too granular for the date range, the request is rejected.`,choices:[`15m`,`1h`,`1d`,`1w`]}).option(`name`,{type:`string`,description:`Array of names used to label the series in the response.`}).option(`date-range`,{type:`string`,description:"Filters results by relative date range ending at the current time, with each value producing a separate series. Use `<n>d` for days (up to `364d`) or `<n>w` for weeks (up to `52w`). Append `control` to request the equivalent previous period for comparison: the comparison window is shifted back by the current window's length rounded up to a whole number of weeks, so it keeps the same weekday alignment and does not overlap the current window (e.g. `7dcontrol` covers days -14 to -7, `10dcontrol` covers days -24 to -14). For example, pass `7d` and `7dcontrol` to compare this week with the previous week. All series must resolve to the same duration as the main series; relative ranges (including `control`) satisfy this automatically. Use this parameter or set specific start and end dates (`dateStart` and `dateEnd` parameters)."}).option(`date-start`,{type:`string`,description:"Start of the date range. Alternative to `dateRange`; provide together with `dateEnd`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`date-end`,{type:`string`,description:"End of the date range (inclusive). Alternative to `dateRange`; provide together with `dateStart`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`limit-per-group`,{type:`number`,description:`Limits the number of objects per group to the top items within the specified time range. When item count exceeds the limit, extra items appear grouped under an "other" category. Only supported on high-cardinality dimensions; otherwise the request is rejected. Minimum value is 2.`}).option(`normalization`,{type:`string`,description:"Normalization method applied to the results. Refer to [Normalization methods](https://developers.cloudflare.com/radar/concepts/normalization/). `PERCENTAGE_CHANGE` requires exactly one comparison series (e.g. a `control` date range).",choices:[`PERCENTAGE`,`MIN0_MAX`,`PERCENTAGE_CHANGE`]}).option(`bot-operator`,{type:`string`,description:`Filters results by bot operator.`}).option(`vertical`,{type:`string`,description:`Filters results by vertical.`}).option(`industry`,{type:`string`,description:`Filters results by industry.`}).option(`client-type`,{type:`string`,description:`Filters results by agent type.`}).option(`response-status`,{type:`string`,description:`Filters results by HTTP response status code (e.g. 200, 403, 404). Only [IANA-registered codes](https://www.iana.org/assignments/http-status-codes/http-status-codes.xhtml) are accepted.`}).option(`response-status-category`,{type:`string`,description:`Filters results by HTTP response status code category.`}).option(`format`,{type:`string`,description:`Format in which results will be returned.`,choices:[`JSON`,`CSV`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const rr={command:`timeseries-groups <dimension>`,describe:`Get time series of crawler HTTP request distribution by dimension`,builder:nr,handler:async e=>a({command:`radar bots web-crawlers timeseries-groups`,classification:{safeFlags:[`agg-interval`,`normalization`,`format`,`dry-run`]}},e,async()=>{let a={aggInterval:e[`agg-interval`],name:e.name,dateRange:e[`date-range`],dateStart:e[`date-start`],dateEnd:e[`date-end`],limitPerGroup:e[`limit-per-group`],normalization:e.normalization,botOperator:e[`bot-operator`],vertical:e.vertical,industry:e.industry,clientType:e[`client-type`],responseStatus:e[`response-status`],responseStatusCategory:e[`response-status-category`],format:e.format};if(e.dryRun){r({command:`cf radar bots web-crawlers timeseries-groups`,method:`GET`,url:`https://api.cloudflare.com/client/v4/radar/bots/crawlers/timeseries_groups/${e.dimension==null?`<dimension>`:encodeURIComponent(String(e.dimension))}`,pathParams:{dimension:String(e.dimension??``)},query:a,bodyKind:`none`});return}let o=await t(e),s=await i(`Loading`,async()=>o.send(tr,{dimension:e.dimension,...a}));n(s,{successLabel:`Loaded`})})},ir={command:`web-crawlers`,describe:`Operations for bots.web-crawlers`,builder:e=>e.command(er).command(rr).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},ar={command:`bots`,describe:`Internet-wide bot traffic trends, categories, and distribution statistics`,builder:e=>e.command(zn).command(Hn).command(Gn).command(Zn).command(Jn).command(ir).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var or={method:`GET`,path:t=>e`/radar/ct/authorities/${t.ca_slug}`,query:[`format`],errors:{404:`NotFoundError`}};function sr(e){return e.usage(`$0 radar ct authorities get <ca-slug>
|
|
119
|
-
|
|
120
|
-
Retrieves the requested CA information.`).positional(`ca-slug`,{type:`string`,description:`Certificate authority SHA256 fingerprint.`,demandOption:!0}).option(`format`,{type:`string`,description:`Format in which results will be returned.`,choices:[`JSON`,`CSV`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const cr={command:`get <ca-slug>`,describe:`Get certificate authority details`,builder:sr,handler:async e=>a({command:`radar ct authorities get`,classification:{safeFlags:[`format`,`dry-run`]}},e,async()=>{let a={format:e.format};if(e.dryRun){r({command:`cf radar ct authorities get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/radar/ct/authorities/${e[`ca-slug`]==null?`<ca-slug>`:encodeURIComponent(String(e[`ca-slug`]))}`,pathParams:{"ca-slug":String(e[`ca-slug`]??``)},query:a,bodyKind:`none`});return}let o=await t(e),s=await i(`Loading`,async()=>o.send(or,{ca_slug:e[`ca-slug`],...a}));n(s,{successLabel:`Loaded`})})};var lr={method:`GET`,path:()=>`/radar/ct/authorities`,query:[`limit`,`offset`,`format`],errors:{400:`BadRequestError`}};function ur(e){return e.usage(`$0 radar ct authorities list
|
|
121
|
-
|
|
122
|
-
Retrieves a list of certificate authorities.`).option(`limit`,{type:`number`,description:`Limits the number of objects returned in the response.`}).option(`offset`,{type:`number`,description:`Skips the specified number of objects before fetching the results.`}).option(`format`,{type:`string`,description:`Format in which results will be returned.`,choices:[`JSON`,`CSV`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const dr={command:`list`,describe:`List certificate authorities`,builder:ur,handler:async e=>a({command:`radar ct authorities list`,classification:{safeFlags:[`format`,`dry-run`]}},e,async()=>{let a={limit:e.limit,offset:e.offset,format:e.format};if(e.dryRun){r({command:`cf radar ct authorities list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/radar/ct/authorities`,pathParams:{},query:a,bodyKind:`none`});return}let o=await t(e),s=await i(`Loading`,async()=>o.send(lr,a));n(s,{successLabel:`Loaded`})})},fr={command:`authorities`,describe:`Operations for ct.authorities`,builder:e=>e.command(cr).command(dr).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var pr={method:`GET`,path:t=>e`/radar/ct/logs/${t.log_slug}`,query:[`format`],errors:{404:`NotFoundError`}};function mr(e){return e.usage(`$0 radar ct logs get <log-slug>
|
|
123
|
-
|
|
124
|
-
Retrieves the requested certificate log information.`).positional(`log-slug`,{type:`string`,description:`Certificate log slug.`,demandOption:!0}).option(`format`,{type:`string`,description:`Format in which results will be returned.`,choices:[`JSON`,`CSV`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const hr={command:`get <log-slug>`,describe:`Get certificate log details`,builder:mr,handler:async e=>a({command:`radar ct logs get`,classification:{safeFlags:[`format`,`dry-run`]}},e,async()=>{let a={format:e.format};if(e.dryRun){r({command:`cf radar ct logs get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/radar/ct/logs/${e[`log-slug`]==null?`<log-slug>`:encodeURIComponent(String(e[`log-slug`]))}`,pathParams:{"log-slug":String(e[`log-slug`]??``)},query:a,bodyKind:`none`});return}let o=await t(e),s=await i(`Loading`,async()=>o.send(pr,{log_slug:e[`log-slug`],...a}));n(s,{successLabel:`Loaded`})})};var gr={method:`GET`,path:()=>`/radar/ct/logs`,query:[`limit`,`offset`,`format`],errors:{400:`BadRequestError`}};function _r(e){return e.usage(`$0 radar ct logs list
|
|
125
|
-
|
|
126
|
-
Retrieves a list of certificate logs.`).option(`limit`,{type:`number`,description:`Limits the number of objects returned in the response.`}).option(`offset`,{type:`number`,description:`Skips the specified number of objects before fetching the results.`}).option(`format`,{type:`string`,description:`Format in which results will be returned.`,choices:[`JSON`,`CSV`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const vr={command:`list`,describe:`List certificate logs`,builder:_r,handler:async e=>a({command:`radar ct logs list`,classification:{safeFlags:[`format`,`dry-run`]}},e,async()=>{let a={limit:e.limit,offset:e.offset,format:e.format};if(e.dryRun){r({command:`cf radar ct logs list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/radar/ct/logs`,pathParams:{},query:a,bodyKind:`none`});return}let o=await t(e),s=await i(`Loading`,async()=>o.send(gr,a));n(s,{successLabel:`Loaded`})})},yr={command:`logs`,describe:`Operations for ct.logs`,builder:e=>e.command(hr).command(vr).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var br={method:`GET`,path:t=>e`/radar/ct/summary/${t.dimension}`,query:[`name`,`dateRange`,`dateStart`,`dateEnd`,`limitPerGroup`,`ca`,`caOwner`,`duration`,`entryType`,`expirationStatus`,`hasIps`,`hasWildcards`,`log`,`logApi`,`logOperator`,`publicKeyAlgorithm`,`signatureAlgorithm`,`tld`,`validationLevel`,`uniqueEntries`,`normalization`,`format`],errors:{400:`BadRequestError`}};function xr(e){return e.usage(`$0 radar ct summary <dimension>
|
|
127
|
-
|
|
128
|
-
Retrieves an aggregated summary of certificates grouped by the specified dimension.`).positional(`dimension`,{type:`string`,description:`Specifies the certificate attribute by which to group the results.`,demandOption:!0}).option(`name`,{type:`string`,description:`Array of names used to label the series in the response.`}).option(`date-range`,{type:`string`,description:"Filters results by relative date range ending at the current time, with each value producing a separate series. Use `<n>d` for days (up to `364d`) or `<n>w` for weeks (up to `52w`). Append `control` to request the equivalent previous period for comparison: the comparison window is shifted back by the current window's length rounded up to a whole number of weeks, so it keeps the same weekday alignment and does not overlap the current window (e.g. `7dcontrol` covers days -14 to -7, `10dcontrol` covers days -24 to -14). For example, pass `7d` and `7dcontrol` to compare this week with the previous week. All series must resolve to the same duration as the main series; relative ranges (including `control`) satisfy this automatically. Use this parameter or set specific start and end dates (`dateStart` and `dateEnd` parameters)."}).option(`date-start`,{type:`string`,description:"Start of the date range. Alternative to `dateRange`; provide together with `dateEnd`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`date-end`,{type:`string`,description:"End of the date range (inclusive). Alternative to `dateRange`; provide together with `dateStart`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`limit-per-group`,{type:`number`,description:`Limits the number of objects per group to the top items within the specified time range. When item count exceeds the limit, extra items appear grouped under an "other" category. Only supported on high-cardinality dimensions; otherwise the request is rejected. Minimum value is 2.`}).option(`ca`,{type:`string`,description:`Filters results by certificate authority.`}).option(`ca-owner`,{type:`string`,description:`Filters results by certificate authority owner.`}).option(`duration`,{type:`string`,description:`Filters results by certificate duration.`}).option(`entry-type`,{type:`string`,description:"Filters results by entry type (certificate vs. pre-certificate). Incompatible with the `tld` filter/dimension."}).option(`expiration-status`,{type:`string`,description:`Filters results by expiration status (expired vs. valid).`}).option(`has-ips`,{type:`string`,description:`Filters results based on whether the certificates are bound to specific IP addresses.`}).option(`has-wildcards`,{type:`string`,description:`Filters results based on whether the certificates contain wildcard domains.`}).option(`log`,{type:`string`,description:"Filters results by certificate log. Incompatible with the `tld` filter/dimension."}).option(`log-api`,{type:`string`,description:"Filters results by certificate log API (RFC6962 vs. static). Incompatible with the `tld` filter/dimension."}).option(`log-operator`,{type:`string`,description:"Filters results by certificate log operator. Incompatible with the `tld` filter/dimension."}).option(`public-key-algorithm`,{type:`string`,description:`Filters results by public key algorithm.`}).option(`signature-algorithm`,{type:`string`,description:`Filters results by signature algorithm.`}).option(`tld`,{type:`string`,description:"Filters results by top-level domain. Incompatible with the `log`, `logApi`, `logOperator`, and `entryType` filters/dimensions."}).option(`validation-level`,{type:`string`,description:`Filters results by validation level.`}).option(`unique-entries`,{type:`string`,description:`Specifies whether to filter out duplicate certificates and pre-certificates. Set to true for unique entries only.`}).option(`normalization`,{type:`string`,description:`Normalization method applied to the results. Refer to [Normalization methods](https://developers.cloudflare.com/radar/concepts/normalization/).`,choices:[`RAW_VALUES`,`PERCENTAGE`]}).option(`format`,{type:`string`,description:`Format in which results will be returned.`,choices:[`JSON`,`CSV`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const Sr={command:`summary <dimension>`,describe:`Get certificate distribution by dimension`,builder:xr,handler:async e=>a({command:`radar ct summary`,classification:{safeFlags:[`normalization`,`format`,`dry-run`]}},e,async()=>{let a={name:e.name,dateRange:e[`date-range`],dateStart:e[`date-start`],dateEnd:e[`date-end`],limitPerGroup:e[`limit-per-group`],ca:e.ca,caOwner:e[`ca-owner`],duration:e.duration,entryType:e[`entry-type`],expirationStatus:e[`expiration-status`],hasIps:e[`has-ips`],hasWildcards:e[`has-wildcards`],log:e.log,logApi:e[`log-api`],logOperator:e[`log-operator`],publicKeyAlgorithm:e[`public-key-algorithm`],signatureAlgorithm:e[`signature-algorithm`],tld:e.tld,validationLevel:e[`validation-level`],uniqueEntries:e[`unique-entries`],normalization:e.normalization,format:e.format};if(e.dryRun){r({command:`cf radar ct summary`,method:`GET`,url:`https://api.cloudflare.com/client/v4/radar/ct/summary/${e.dimension==null?`<dimension>`:encodeURIComponent(String(e.dimension))}`,pathParams:{dimension:String(e.dimension??``)},query:a,bodyKind:`none`});return}let o=await t(e),s=await i(`Loading`,async()=>o.send(br,{dimension:e.dimension,...a}));n(s,{successLabel:`Loaded`})})};var Cr={method:`GET`,path:t=>e`/radar/ct/timeseries_groups/${t.dimension}`,query:[`aggInterval`,`name`,`dateRange`,`dateStart`,`dateEnd`,`limitPerGroup`,`ca`,`caOwner`,`duration`,`entryType`,`expirationStatus`,`hasIps`,`hasWildcards`,`log`,`logApi`,`logOperator`,`publicKeyAlgorithm`,`signatureAlgorithm`,`validationLevel`,`tld`,`normalization`,`uniqueEntries`,`format`],errors:{400:`BadRequestError`}};function wr(e){return e.usage(`$0 radar ct timeseries-groups <dimension>
|
|
129
|
-
|
|
130
|
-
Retrieves the distribution of certificates grouped by the specified dimension over time.`).positional(`dimension`,{type:`string`,description:`Specifies the certificate attribute by which to group the results.`,demandOption:!0}).option(`agg-interval`,{type:`string`,description:`Aggregation interval of the results (e.g., in 15 minutes or 1 hour intervals). Refer to [Aggregation intervals](https://developers.cloudflare.com/radar/concepts/aggregation-intervals/). When omitted, the interval is auto-selected from the requested date range; finer intervals are only available for shorter ranges. If the requested interval is too granular for the date range, the request is rejected.`,choices:[`15m`,`1h`,`1d`,`1w`]}).option(`name`,{type:`string`,description:`Array of names used to label the series in the response.`}).option(`date-range`,{type:`string`,description:"Filters results by relative date range ending at the current time, with each value producing a separate series. Use `<n>d` for days (up to `364d`) or `<n>w` for weeks (up to `52w`). Append `control` to request the equivalent previous period for comparison: the comparison window is shifted back by the current window's length rounded up to a whole number of weeks, so it keeps the same weekday alignment and does not overlap the current window (e.g. `7dcontrol` covers days -14 to -7, `10dcontrol` covers days -24 to -14). For example, pass `7d` and `7dcontrol` to compare this week with the previous week. All series must resolve to the same duration as the main series; relative ranges (including `control`) satisfy this automatically. Use this parameter or set specific start and end dates (`dateStart` and `dateEnd` parameters)."}).option(`date-start`,{type:`string`,description:"Start of the date range. Alternative to `dateRange`; provide together with `dateEnd`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`date-end`,{type:`string`,description:"End of the date range (inclusive). Alternative to `dateRange`; provide together with `dateStart`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`limit-per-group`,{type:`number`,description:`Limits the number of objects per group to the top items within the specified time range. When item count exceeds the limit, extra items appear grouped under an "other" category. Only supported on high-cardinality dimensions; otherwise the request is rejected. Minimum value is 2.`}).option(`ca`,{type:`string`,description:`Filters results by certificate authority.`}).option(`ca-owner`,{type:`string`,description:`Filters results by certificate authority owner.`}).option(`duration`,{type:`string`,description:`Filters results by certificate duration.`}).option(`entry-type`,{type:`string`,description:"Filters results by entry type (certificate vs. pre-certificate). Incompatible with the `tld` filter/dimension."}).option(`expiration-status`,{type:`string`,description:`Filters results by expiration status (expired vs. valid).`}).option(`has-ips`,{type:`string`,description:`Filters results based on whether the certificates are bound to specific IP addresses.`}).option(`has-wildcards`,{type:`string`,description:`Filters results based on whether the certificates contain wildcard domains.`}).option(`log`,{type:`string`,description:"Filters results by certificate log. Incompatible with the `tld` filter/dimension."}).option(`log-api`,{type:`string`,description:"Filters results by certificate log API (RFC6962 vs. static). Incompatible with the `tld` filter/dimension."}).option(`log-operator`,{type:`string`,description:"Filters results by certificate log operator. Incompatible with the `tld` filter/dimension."}).option(`public-key-algorithm`,{type:`string`,description:`Filters results by public key algorithm.`}).option(`signature-algorithm`,{type:`string`,description:`Filters results by signature algorithm.`}).option(`validation-level`,{type:`string`,description:`Filters results by validation level.`}).option(`tld`,{type:`string`,description:"Filters results by top-level domain. Incompatible with the `log`, `logApi`, `logOperator`, and `entryType` filters/dimensions."}).option(`normalization`,{type:`string`,description:`Normalization method applied to the results. Refer to [Normalization methods](https://developers.cloudflare.com/radar/concepts/normalization/).`,choices:[`RAW_VALUES`,`PERCENTAGE`]}).option(`unique-entries`,{type:`string`,description:`Specifies whether to filter out duplicate certificates and pre-certificates. Set to true for unique entries only.`}).option(`format`,{type:`string`,description:`Format in which results will be returned.`,choices:[`JSON`,`CSV`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const Tr={command:`timeseries-groups <dimension>`,describe:`Get time series of certificate distribution by dimension`,builder:wr,handler:async e=>a({command:`radar ct timeseries-groups`,classification:{safeFlags:[`agg-interval`,`normalization`,`format`,`dry-run`]}},e,async()=>{let a={aggInterval:e[`agg-interval`],name:e.name,dateRange:e[`date-range`],dateStart:e[`date-start`],dateEnd:e[`date-end`],limitPerGroup:e[`limit-per-group`],ca:e.ca,caOwner:e[`ca-owner`],duration:e.duration,entryType:e[`entry-type`],expirationStatus:e[`expiration-status`],hasIps:e[`has-ips`],hasWildcards:e[`has-wildcards`],log:e.log,logApi:e[`log-api`],logOperator:e[`log-operator`],publicKeyAlgorithm:e[`public-key-algorithm`],signatureAlgorithm:e[`signature-algorithm`],validationLevel:e[`validation-level`],tld:e.tld,normalization:e.normalization,uniqueEntries:e[`unique-entries`],format:e.format};if(e.dryRun){r({command:`cf radar ct timeseries-groups`,method:`GET`,url:`https://api.cloudflare.com/client/v4/radar/ct/timeseries_groups/${e.dimension==null?`<dimension>`:encodeURIComponent(String(e.dimension))}`,pathParams:{dimension:String(e.dimension??``)},query:a,bodyKind:`none`});return}let o=await t(e),s=await i(`Loading`,async()=>o.send(Cr,{dimension:e.dimension,...a}));n(s,{successLabel:`Loaded`})})};var Er={method:`GET`,path:()=>`/radar/ct/timeseries`,query:[`aggInterval`,`name`,`dateRange`,`dateStart`,`dateEnd`,`ca`,`caOwner`,`duration`,`entryType`,`expirationStatus`,`hasIps`,`hasWildcards`,`log`,`logApi`,`logOperator`,`publicKeyAlgorithm`,`signatureAlgorithm`,`tld`,`validationLevel`,`uniqueEntries`,`format`],errors:{400:`BadRequestError`}};function Dr(e){return e.usage(`$0 radar ct timeseries
|
|
131
|
-
|
|
132
|
-
Retrieves certificate volume over time.`).option(`agg-interval`,{type:`string`,description:`Aggregation interval of the results (e.g., in 15 minutes or 1 hour intervals). Refer to [Aggregation intervals](https://developers.cloudflare.com/radar/concepts/aggregation-intervals/). When omitted, the interval is auto-selected from the requested date range; finer intervals are only available for shorter ranges. If the requested interval is too granular for the date range, the request is rejected.`,choices:[`15m`,`1h`,`1d`,`1w`]}).option(`name`,{type:`string`,description:`Array of names used to label the series in the response.`}).option(`date-range`,{type:`string`,description:"Filters results by relative date range ending at the current time, with each value producing a separate series. Use `<n>d` for days (up to `364d`) or `<n>w` for weeks (up to `52w`). Append `control` to request the equivalent previous period for comparison: the comparison window is shifted back by the current window's length rounded up to a whole number of weeks, so it keeps the same weekday alignment and does not overlap the current window (e.g. `7dcontrol` covers days -14 to -7, `10dcontrol` covers days -24 to -14). For example, pass `7d` and `7dcontrol` to compare this week with the previous week. All series must resolve to the same duration as the main series; relative ranges (including `control`) satisfy this automatically. Use this parameter or set specific start and end dates (`dateStart` and `dateEnd` parameters)."}).option(`date-start`,{type:`string`,description:"Start of the date range. Alternative to `dateRange`; provide together with `dateEnd`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`date-end`,{type:`string`,description:"End of the date range (inclusive). Alternative to `dateRange`; provide together with `dateStart`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`ca`,{type:`string`,description:`Filters results by certificate authority.`}).option(`ca-owner`,{type:`string`,description:`Filters results by certificate authority owner.`}).option(`duration`,{type:`string`,description:`Filters results by certificate duration.`}).option(`entry-type`,{type:`string`,description:"Filters results by entry type (certificate vs. pre-certificate). Incompatible with the `tld` filter/dimension."}).option(`expiration-status`,{type:`string`,description:`Filters results by expiration status (expired vs. valid).`}).option(`has-ips`,{type:`string`,description:`Filters results based on whether the certificates are bound to specific IP addresses.`}).option(`has-wildcards`,{type:`string`,description:`Filters results based on whether the certificates contain wildcard domains.`}).option(`log`,{type:`string`,description:"Filters results by certificate log. Incompatible with the `tld` filter/dimension."}).option(`log-api`,{type:`string`,description:"Filters results by certificate log API (RFC6962 vs. static). Incompatible with the `tld` filter/dimension."}).option(`log-operator`,{type:`string`,description:"Filters results by certificate log operator. Incompatible with the `tld` filter/dimension."}).option(`public-key-algorithm`,{type:`string`,description:`Filters results by public key algorithm.`}).option(`signature-algorithm`,{type:`string`,description:`Filters results by signature algorithm.`}).option(`tld`,{type:`string`,description:"Filters results by top-level domain. Incompatible with the `log`, `logApi`, `logOperator`, and `entryType` filters/dimensions."}).option(`validation-level`,{type:`string`,description:`Filters results by validation level.`}).option(`unique-entries`,{type:`string`,description:`Specifies whether to filter out duplicate certificates and pre-certificates. Set to true for unique entries only.`}).option(`format`,{type:`string`,description:`Format in which results will be returned.`,choices:[`JSON`,`CSV`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const Or={command:`timeseries`,describe:`Get certificates time series`,builder:Dr,handler:async e=>a({command:`radar ct timeseries`,classification:{safeFlags:[`agg-interval`,`format`,`dry-run`]}},e,async()=>{let a={aggInterval:e[`agg-interval`],name:e.name,dateRange:e[`date-range`],dateStart:e[`date-start`],dateEnd:e[`date-end`],ca:e.ca,caOwner:e[`ca-owner`],duration:e.duration,entryType:e[`entry-type`],expirationStatus:e[`expiration-status`],hasIps:e[`has-ips`],hasWildcards:e[`has-wildcards`],log:e.log,logApi:e[`log-api`],logOperator:e[`log-operator`],publicKeyAlgorithm:e[`public-key-algorithm`],signatureAlgorithm:e[`signature-algorithm`],tld:e.tld,validationLevel:e[`validation-level`],uniqueEntries:e[`unique-entries`],format:e.format};if(e.dryRun){r({command:`cf radar ct timeseries`,method:`GET`,url:`https://api.cloudflare.com/client/v4/radar/ct/timeseries`,pathParams:{},query:a,bodyKind:`none`});return}let o=await t(e),s=await i(`Loading`,async()=>o.send(Er,a));n(s,{successLabel:`Loaded`})})},kr={command:`ct`,describe:`Certificate Transparency log monitoring and newly-issued certificate discovery`,builder:e=>e.command(Sr).command(Or).command(Tr).command(fr).command(yr).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var Q={method:`POST`,path:()=>`/radar/datasets/download`,query:[`format`],body:`json`,errors:{400:`BadRequestError`}};function Ar(e){return e.usage(`$0 radar datasets download
|
|
133
|
-
|
|
134
|
-
Retrieves an URL to download a single dataset.`).option(`format`,{type:`string`,description:`Format in which results will be returned.`,choices:[`JSON`,`CSV`]}).option(`dataset-id`,{type:`number`,description:`The datasetId 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 jr={command:`download`,describe:`Get dataset download URL`,builder:Ar,handler:async e=>a({command:`radar datasets download`,classification:{safeFlags:[`format`,`dry-run`]}},e,async()=>{let a={format:e.format};if(e.dryRun){r({command:`cf radar datasets download`,method:`POST`,url:`https://api.cloudflare.com/client/v4/radar/datasets/download`,pathParams:{},query:a,bodyKind:`json`,body:e.body===void 0?s({datasetId:e[`dataset-id`]}):o(e.body)});return}let c=await t(e);if(e.body){let t=o(e.body);new URLSearchParams(Object.entries(a).filter(([,e])=>e!==void 0).map(([e,t])=>[e,String(t)])).toString();let r=await i(`Creating`,async()=>c.send(Q,{body:t,...a}));n(r,{successLabel:`Created`});return}if(e[`dataset-id`]===void 0)throw Error(`--dataset-id is required (or pass --body with this field set).`);let l=s({datasetId:e[`dataset-id`]});new URLSearchParams(Object.entries(a).filter(([,e])=>e!==void 0).map(([e,t])=>[e,String(t)])).toString();let u=await i(`Creating`,async()=>c.send(Q,{body:l,...a}));n(u,{successLabel:`Created`})})};function Mr(e){return e.usage(`$0 radar datasets get <alias>
|
|
135
|
-
|
|
136
|
-
Retrieves the CSV content of a given dataset by alias or ID. When getting the content by alias the latest dataset is returned, optionally filtered by the latest available at a given date.`).positional(`alias`,{type:`string`,description:`Dataset alias or ID.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const Nr={command:`get <alias>`,describe:`Get dataset CSV stream`,builder:Mr,handler:async e=>a({command:`radar datasets get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){r({command:`cf radar datasets get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/radar/datasets/${e.alias==null?`<alias>`:encodeURIComponent(String(e.alias))}`,pathParams:{alias:String(e.alias??``)},bodyKind:`none`});return}await t(e);let n=await i(`Loading`,async()=>l(`/radar/datasets/${encodeURIComponent(String(e.alias))}`,{method:`GET`,local:e.local===!0,persistTo:e.persistTo}));c(n.toString(`utf-8`))})};var Pr={method:`GET`,path:()=>`/radar/datasets`,query:[`limit`,`offset`,`datasetType`,`date`,`format`],errors:{400:`BadRequestError`}};function Fr(e){return e.usage(`$0 radar datasets list
|
|
137
|
-
|
|
138
|
-
Retrieves a list of datasets.`).option(`limit`,{type:`number`,description:`Limits the number of objects returned in the response.`}).option(`offset`,{type:`number`,description:`Skips the specified number of objects before fetching the results.`}).option(`dataset-type`,{type:`string`,description:`Filters results by dataset type.`,choices:[`RANKING_BUCKET`,`REPORT`]}).option(`date`,{type:`string`,description:`Filters results by the specified date.`}).option(`format`,{type:`string`,description:`Format in which results will be returned.`,choices:[`JSON`,`CSV`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const Ir={command:`list`,describe:`List datasets`,builder:Fr,handler:async e=>a({command:`radar datasets list`,classification:{safeFlags:[`dataset-type`,`format`,`dry-run`]}},e,async()=>{let a={limit:e.limit,offset:e.offset,datasetType:e[`dataset-type`],date:e.date,format:e.format};if(e.dryRun){r({command:`cf radar datasets list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/radar/datasets`,pathParams:{},query:a,bodyKind:`none`});return}let o=await t(e),s=await i(`Loading`,async()=>o.send(Pr,a));n(s,{successLabel:`Loaded`})})},Lr={command:`datasets`,describe:`Downloadable Radar datasets for offline analysis and research`,builder:e=>e.command(jr).command(Nr).command(Ir).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var Rr={method:`GET`,path:t=>e`/radar/dns/summary/${t.dimension}`,query:[`name`,`dateRange`,`dateStart`,`dateEnd`,`asn`,`location`,`continent`,`cacheHit`,`nodata`,`protocol`,`queryType`,`responseCode`,`responseTtl`,`dnssec`,`dnssecAware`,`dnssecE2e`,`ipVersion`,`limitPerGroup`,`matchingAnswer`,`tld`,`format`],errors:{400:`BadRequestError`}};function zr(e){return e.usage(`$0 radar dns summary-v2 <dimension>
|
|
139
|
-
|
|
140
|
-
Retrieves the distribution of DNS queries by the specified dimension.`).positional(`dimension`,{type:`string`,description:"Specifies the attribute by which to group the results. Grouping by `TLD_DNS_MAGNITUDE` does not support sub-daily aggregation intervals; `15m` and `1h` are raised to `1d`.",demandOption:!0}).option(`name`,{type:`string`,description:`Array of names used to label the series in the response.`}).option(`date-range`,{type:`string`,description:"Filters results by relative date range ending at the current time, with each value producing a separate series. Use `<n>d` for days (up to `364d`) or `<n>w` for weeks (up to `52w`). Append `control` to request the equivalent previous period for comparison: the comparison window is shifted back by the current window's length rounded up to a whole number of weeks, so it keeps the same weekday alignment and does not overlap the current window (e.g. `7dcontrol` covers days -14 to -7, `10dcontrol` covers days -24 to -14). For example, pass `7d` and `7dcontrol` to compare this week with the previous week. All series must resolve to the same duration as the main series; relative ranges (including `control`) satisfy this automatically. Use this parameter or set specific start and end dates (`dateStart` and `dateEnd` parameters)."}).option(`date-start`,{type:`string`,description:"Start of the date range. Alternative to `dateRange`; provide together with `dateEnd`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`date-end`,{type:`string`,description:"End of the date range (inclusive). Alternative to `dateRange`; provide together with `dateStart`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`asn`,{type:`string`,description:"Filters results by Autonomous System. Specify one or more Autonomous System Numbers (ASNs) as a comma-separated list. Prefix with `-` to exclude ASNs from results. For example, `-174, 3356` excludes results from AS174, but includes results from AS3356."}).option(`location`,{type:`string`,description:"Filters results by location. Specify a comma-separated list of alpha-2 codes. Prefix with `-` to exclude locations from results. For example, `-US,PT` excludes results from the US, but includes results from PT."}).option(`continent`,{type:`string`,description:"Filters results by continent. Specify a comma-separated list of alpha-2 codes. Prefix with `-` to exclude continents from results. For example, `-EU,NA` excludes results from EU, but includes results from NA."}).option(`cache-hit`,{type:`string`,description:`Filters results based on cache status.`}).option(`nodata`,{type:`string`,description:`Specifies whether the response includes empty DNS responses (NODATA).`}).option(`protocol`,{type:`string`,description:`Filters results by DNS transport protocol.`}).option(`query-type`,{type:`string`,description:`Filters results by DNS query type.`}).option(`response-code`,{type:`string`,description:`Filters results by DNS response code.`}).option(`response-ttl`,{type:`string`,description:`Filters results by DNS response TTL.`}).option(`dnssec`,{type:`string`,description:`Filters results based on DNSSEC (DNS Security Extensions) support.`}).option(`dnssec-aware`,{type:`string`,description:`Filters results based on DNSSEC (DNS Security Extensions) client awareness.`}).option(`dnssec-e2e`,{type:`string`,description:`Filters results based on DNSSEC-validated answers by end-to-end security status.`}).option(`ip-version`,{type:`string`,description:`Filters results by IP version (Ipv4 vs. IPv6).`}).option(`limit-per-group`,{type:`number`,description:`Limits the number of objects per group to the top items within the specified time range. When item count exceeds the limit, extra items appear grouped under an "other" category. Only supported on high-cardinality dimensions; otherwise the request is rejected. Minimum value is 2.`}).option(`matching-answer`,{type:`string`,description:`Filters results based on whether the queries have a matching answer.`}).option(`tld`,{type:`string`,description:"Filters results by top-level domain. Incompatible with the `ipVersion`, `protocol`, `dnssecE2e`, `dnssecAware`, `responseTtl`, and `cacheHit` filters/dimensions; this restriction does not apply to country-code TLDs (2-letter, e.g. `uk`)."}).option(`format`,{type:`string`,description:`Format in which results will be returned.`,choices:[`JSON`,`CSV`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const Br={command:`summary-v2 <dimension>`,describe:`Get DNS summary by dimension`,builder:zr,handler:async e=>a({command:`radar dns summary-v2`,classification:{safeFlags:[`format`,`dry-run`]}},e,async()=>{let a={name:e.name,dateRange:e[`date-range`],dateStart:e[`date-start`],dateEnd:e[`date-end`],asn:e.asn,location:e.location,continent:e.continent,cacheHit:e[`cache-hit`],nodata:e.nodata,protocol:e.protocol,queryType:e[`query-type`],responseCode:e[`response-code`],responseTtl:e[`response-ttl`],dnssec:e.dnssec,dnssecAware:e[`dnssec-aware`],dnssecE2e:e[`dnssec-e2e`],ipVersion:e[`ip-version`],limitPerGroup:e[`limit-per-group`],matchingAnswer:e[`matching-answer`],tld:e.tld,format:e.format};if(e.dryRun){r({command:`cf radar dns summary-v2`,method:`GET`,url:`https://api.cloudflare.com/client/v4/radar/dns/summary/${e.dimension==null?`<dimension>`:encodeURIComponent(String(e.dimension))}`,pathParams:{dimension:String(e.dimension??``)},query:a,bodyKind:`none`});return}let o=await t(e),s=await i(`Loading`,async()=>o.send(Rr,{dimension:e.dimension,...a}));n(s,{successLabel:`Loaded`})})};var Vr={method:`GET`,path:t=>e`/radar/dns/timeseries_groups/${t.dimension}`,query:[`aggInterval`,`name`,`dateRange`,`dateStart`,`dateEnd`,`asn`,`location`,`continent`,`cacheHit`,`nodata`,`protocol`,`queryType`,`responseCode`,`responseTtl`,`dnssec`,`dnssecAware`,`dnssecE2e`,`ipVersion`,`limitPerGroup`,`matchingAnswer`,`tld`,`normalization`,`format`],errors:{400:`BadRequestError`}};function Hr(e){return e.usage(`$0 radar dns timeseries-groups-v2 <dimension>
|
|
141
|
-
|
|
142
|
-
Retrieves the distribution of DNS queries grouped by dimension over time.`).positional(`dimension`,{type:`string`,description:"Specifies the attribute by which to group the results. Grouping by `TLD_DNS_MAGNITUDE` does not support sub-daily aggregation intervals; `15m` and `1h` are raised to `1d`.",demandOption:!0}).option(`agg-interval`,{type:`string`,description:`Aggregation interval of the results (e.g., in 15 minutes or 1 hour intervals). Refer to [Aggregation intervals](https://developers.cloudflare.com/radar/concepts/aggregation-intervals/). When omitted, the interval is auto-selected from the requested date range; finer intervals are only available for shorter ranges. If the requested interval is too granular for the date range, the request is rejected.`,choices:[`15m`,`1h`,`1d`,`1w`]}).option(`name`,{type:`string`,description:`Array of names used to label the series in the response.`}).option(`date-range`,{type:`string`,description:"Filters results by relative date range ending at the current time, with each value producing a separate series. Use `<n>d` for days (up to `364d`) or `<n>w` for weeks (up to `52w`). Append `control` to request the equivalent previous period for comparison: the comparison window is shifted back by the current window's length rounded up to a whole number of weeks, so it keeps the same weekday alignment and does not overlap the current window (e.g. `7dcontrol` covers days -14 to -7, `10dcontrol` covers days -24 to -14). For example, pass `7d` and `7dcontrol` to compare this week with the previous week. All series must resolve to the same duration as the main series; relative ranges (including `control`) satisfy this automatically. Use this parameter or set specific start and end dates (`dateStart` and `dateEnd` parameters)."}).option(`date-start`,{type:`string`,description:"Start of the date range. Alternative to `dateRange`; provide together with `dateEnd`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`date-end`,{type:`string`,description:"End of the date range (inclusive). Alternative to `dateRange`; provide together with `dateStart`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`asn`,{type:`string`,description:"Filters results by Autonomous System. Specify one or more Autonomous System Numbers (ASNs) as a comma-separated list. Prefix with `-` to exclude ASNs from results. For example, `-174, 3356` excludes results from AS174, but includes results from AS3356."}).option(`location`,{type:`string`,description:"Filters results by location. Specify a comma-separated list of alpha-2 codes. Prefix with `-` to exclude locations from results. For example, `-US,PT` excludes results from the US, but includes results from PT."}).option(`continent`,{type:`string`,description:"Filters results by continent. Specify a comma-separated list of alpha-2 codes. Prefix with `-` to exclude continents from results. For example, `-EU,NA` excludes results from EU, but includes results from NA."}).option(`cache-hit`,{type:`string`,description:`Filters results based on cache status.`}).option(`nodata`,{type:`string`,description:`Specifies whether the response includes empty DNS responses (NODATA).`}).option(`protocol`,{type:`string`,description:`Filters results by DNS transport protocol.`}).option(`query-type`,{type:`string`,description:`Filters results by DNS query type.`}).option(`response-code`,{type:`string`,description:`Filters results by DNS response code.`}).option(`response-ttl`,{type:`string`,description:`Filters results by DNS response TTL.`}).option(`dnssec`,{type:`string`,description:`Filters results based on DNSSEC (DNS Security Extensions) support.`}).option(`dnssec-aware`,{type:`string`,description:`Filters results based on DNSSEC (DNS Security Extensions) client awareness.`}).option(`dnssec-e2e`,{type:`string`,description:`Filters results based on DNSSEC-validated answers by end-to-end security status.`}).option(`ip-version`,{type:`string`,description:`Filters results by IP version (Ipv4 vs. IPv6).`}).option(`limit-per-group`,{type:`number`,description:`Limits the number of objects per group to the top items within the specified time range. When item count exceeds the limit, extra items appear grouped under an "other" category. Only supported on high-cardinality dimensions; otherwise the request is rejected. Minimum value is 2.`}).option(`matching-answer`,{type:`string`,description:`Filters results based on whether the queries have a matching answer.`}).option(`tld`,{type:`string`,description:"Filters results by top-level domain. Incompatible with the `ipVersion`, `protocol`, `dnssecE2e`, `dnssecAware`, `responseTtl`, and `cacheHit` filters/dimensions; this restriction does not apply to country-code TLDs (2-letter, e.g. `uk`)."}).option(`normalization`,{type:`string`,description:"Normalization method applied to the results. Refer to [Normalization methods](https://developers.cloudflare.com/radar/concepts/normalization/). `RANK` is only meaningful with the `TLD_DNS_MAGNITUDE` dimension, where it ranks TLDs by DNS query magnitude at each timestamp; for other dimensions it has no effect.",choices:[`PERCENTAGE`,`MIN0_MAX`,`RANK`]}).option(`format`,{type:`string`,description:`Format in which results will be returned.`,choices:[`JSON`,`CSV`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const Ur={command:`timeseries-groups-v2 <dimension>`,describe:`Get DNS time series grouped by dimension`,builder:Hr,handler:async e=>a({command:`radar dns timeseries-groups-v2`,classification:{safeFlags:[`agg-interval`,`normalization`,`format`,`dry-run`]}},e,async()=>{let a={aggInterval:e[`agg-interval`],name:e.name,dateRange:e[`date-range`],dateStart:e[`date-start`],dateEnd:e[`date-end`],asn:e.asn,location:e.location,continent:e.continent,cacheHit:e[`cache-hit`],nodata:e.nodata,protocol:e.protocol,queryType:e[`query-type`],responseCode:e[`response-code`],responseTtl:e[`response-ttl`],dnssec:e.dnssec,dnssecAware:e[`dnssec-aware`],dnssecE2e:e[`dnssec-e2e`],ipVersion:e[`ip-version`],limitPerGroup:e[`limit-per-group`],matchingAnswer:e[`matching-answer`],tld:e.tld,normalization:e.normalization,format:e.format};if(e.dryRun){r({command:`cf radar dns timeseries-groups-v2`,method:`GET`,url:`https://api.cloudflare.com/client/v4/radar/dns/timeseries_groups/${e.dimension==null?`<dimension>`:encodeURIComponent(String(e.dimension))}`,pathParams:{dimension:String(e.dimension??``)},query:a,bodyKind:`none`});return}let o=await t(e),s=await i(`Loading`,async()=>o.send(Vr,{dimension:e.dimension,...a}));n(s,{successLabel:`Loaded`})})};var Wr={method:`GET`,path:()=>`/radar/dns/timeseries`,query:[`aggInterval`,`name`,`dateRange`,`dateStart`,`dateEnd`,`asn`,`location`,`continent`,`cacheHit`,`nodata`,`protocol`,`queryType`,`responseCode`,`responseTtl`,`dnssec`,`dnssecAware`,`dnssecE2e`,`ipVersion`,`matchingAnswer`,`tld`,`format`],errors:{400:`BadRequestError`}};function Gr(e){return e.usage(`$0 radar dns timeseries
|
|
143
|
-
|
|
144
|
-
Retrieves normalized query volume to the 1.1.1.1 DNS resolver over time.`).option(`agg-interval`,{type:`string`,description:`Aggregation interval of the results (e.g., in 15 minutes or 1 hour intervals). Refer to [Aggregation intervals](https://developers.cloudflare.com/radar/concepts/aggregation-intervals/). When omitted, the interval is auto-selected from the requested date range; finer intervals are only available for shorter ranges. If the requested interval is too granular for the date range, the request is rejected.`,choices:[`15m`,`1h`,`1d`,`1w`]}).option(`name`,{type:`string`,description:`Array of names used to label the series in the response.`}).option(`date-range`,{type:`string`,description:"Filters results by relative date range ending at the current time, with each value producing a separate series. Use `<n>d` for days (up to `364d`) or `<n>w` for weeks (up to `52w`). Append `control` to request the equivalent previous period for comparison: the comparison window is shifted back by the current window's length rounded up to a whole number of weeks, so it keeps the same weekday alignment and does not overlap the current window (e.g. `7dcontrol` covers days -14 to -7, `10dcontrol` covers days -24 to -14). For example, pass `7d` and `7dcontrol` to compare this week with the previous week. All series must resolve to the same duration as the main series; relative ranges (including `control`) satisfy this automatically. Use this parameter or set specific start and end dates (`dateStart` and `dateEnd` parameters)."}).option(`date-start`,{type:`string`,description:"Start of the date range. Alternative to `dateRange`; provide together with `dateEnd`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`date-end`,{type:`string`,description:"End of the date range (inclusive). Alternative to `dateRange`; provide together with `dateStart`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`asn`,{type:`string`,description:"Filters results by Autonomous System. Specify one or more Autonomous System Numbers (ASNs) as a comma-separated list. Prefix with `-` to exclude ASNs from results. For example, `-174, 3356` excludes results from AS174, but includes results from AS3356."}).option(`location`,{type:`string`,description:"Filters results by location. Specify a comma-separated list of alpha-2 codes. Prefix with `-` to exclude locations from results. For example, `-US,PT` excludes results from the US, but includes results from PT."}).option(`continent`,{type:`string`,description:"Filters results by continent. Specify a comma-separated list of alpha-2 codes. Prefix with `-` to exclude continents from results. For example, `-EU,NA` excludes results from EU, but includes results from NA."}).option(`cache-hit`,{type:`string`,description:`Filters results based on cache status.`}).option(`nodata`,{type:`string`,description:`Specifies whether the response includes empty DNS responses (NODATA).`}).option(`protocol`,{type:`string`,description:`Filters results by DNS transport protocol.`}).option(`query-type`,{type:`string`,description:`Filters results by DNS query type.`}).option(`response-code`,{type:`string`,description:`Filters results by DNS response code.`}).option(`response-ttl`,{type:`string`,description:`Filters results by DNS response TTL.`}).option(`dnssec`,{type:`string`,description:`Filters results based on DNSSEC (DNS Security Extensions) support.`}).option(`dnssec-aware`,{type:`string`,description:`Filters results based on DNSSEC (DNS Security Extensions) client awareness.`}).option(`dnssec-e2e`,{type:`string`,description:`Filters results based on DNSSEC-validated answers by end-to-end security status.`}).option(`ip-version`,{type:`string`,description:`Filters results by IP version (Ipv4 vs. IPv6).`}).option(`matching-answer`,{type:`string`,description:`Filters results based on whether the queries have a matching answer.`}).option(`tld`,{type:`string`,description:"Filters results by top-level domain. Incompatible with the `ipVersion`, `protocol`, `dnssecE2e`, `dnssecAware`, `responseTtl`, and `cacheHit` filters/dimensions; this restriction does not apply to country-code TLDs (2-letter, e.g. `uk`)."}).option(`format`,{type:`string`,description:`Format in which results will be returned.`,choices:[`JSON`,`CSV`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const Kr={command:`timeseries`,describe:`Get DNS queries time series`,builder:Gr,handler:async e=>a({command:`radar dns timeseries`,classification:{safeFlags:[`agg-interval`,`format`,`dry-run`]}},e,async()=>{let a={aggInterval:e[`agg-interval`],name:e.name,dateRange:e[`date-range`],dateStart:e[`date-start`],dateEnd:e[`date-end`],asn:e.asn,location:e.location,continent:e.continent,cacheHit:e[`cache-hit`],nodata:e.nodata,protocol:e.protocol,queryType:e[`query-type`],responseCode:e[`response-code`],responseTtl:e[`response-ttl`],dnssec:e.dnssec,dnssecAware:e[`dnssec-aware`],dnssecE2e:e[`dnssec-e2e`],ipVersion:e[`ip-version`],matchingAnswer:e[`matching-answer`],tld:e.tld,format:e.format};if(e.dryRun){r({command:`cf radar dns timeseries`,method:`GET`,url:`https://api.cloudflare.com/client/v4/radar/dns/timeseries`,pathParams:{},query:a,bodyKind:`none`});return}let o=await t(e),s=await i(`Loading`,async()=>o.send(Wr,a));n(s,{successLabel:`Loaded`})})};var qr={method:`GET`,path:()=>`/radar/dns/top/ases`,query:[`limit`,`name`,`dateRange`,`dateStart`,`dateEnd`,`asn`,`location`,`continent`,`domain`,`cacheHit`,`nodata`,`protocol`,`queryType`,`responseCode`,`responseTtl`,`dnssec`,`dnssecAware`,`dnssecE2e`,`ipVersion`,`matchingAnswer`,`format`],errors:{404:`NotFoundError`}};function Jr(e){return e.usage(`$0 radar dns top ases
|
|
145
|
-
|
|
146
|
-
Retrieves the top autonomous systems by DNS queries made to 1.1.1.1 DNS resolver.`).option(`limit`,{type:`number`,description:`Limits the number of objects returned in the response.`}).option(`name`,{type:`string`,description:`Array of names used to label the series in the response.`}).option(`date-range`,{type:`string`,description:"Filters results by relative date range ending at the current time, with each value producing a separate series. Use `<n>d` for days (up to `364d`) or `<n>w` for weeks (up to `52w`). Append `control` to request the equivalent previous period for comparison: the comparison window is shifted back by the current window's length rounded up to a whole number of weeks, so it keeps the same weekday alignment and does not overlap the current window (e.g. `7dcontrol` covers days -14 to -7, `10dcontrol` covers days -24 to -14). For example, pass `7d` and `7dcontrol` to compare this week with the previous week. All series must resolve to the same duration as the main series; relative ranges (including `control`) satisfy this automatically. Use this parameter or set specific start and end dates (`dateStart` and `dateEnd` parameters)."}).option(`date-start`,{type:`string`,description:"Start of the date range. Alternative to `dateRange`; provide together with `dateEnd`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`date-end`,{type:`string`,description:"End of the date range (inclusive). Alternative to `dateRange`; provide together with `dateStart`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`asn`,{type:`string`,description:"Filters results by Autonomous System. Specify one or more Autonomous System Numbers (ASNs) as a comma-separated list. Prefix with `-` to exclude ASNs from results. For example, `-174, 3356` excludes results from AS174, but includes results from AS3356."}).option(`location`,{type:`string`,description:"Filters results by location. Specify a comma-separated list of alpha-2 codes. Prefix with `-` to exclude locations from results. For example, `-US,PT` excludes results from the US, but includes results from PT."}).option(`continent`,{type:`string`,description:"Filters results by continent. Specify a comma-separated list of alpha-2 codes. Prefix with `-` to exclude continents from results. For example, `-EU,NA` excludes results from EU, but includes results from NA."}).option(`domain`,{type:`string`,description:"Filters results by domain name. When set, no other DNS filter may be used — only date filtering (`dateRange`, or `dateStart`/`dateEnd`) is allowed — and the date range cannot exceed 31 days."}).option(`cache-hit`,{type:`string`,description:`Filters results based on cache status.`}).option(`nodata`,{type:`string`,description:`Specifies whether the response includes empty DNS responses (NODATA).`}).option(`protocol`,{type:`string`,description:`Filters results by DNS transport protocol.`}).option(`query-type`,{type:`string`,description:`Filters results by DNS query type.`}).option(`response-code`,{type:`string`,description:`Filters results by DNS response code.`}).option(`response-ttl`,{type:`string`,description:`Filters results by DNS response TTL.`}).option(`dnssec`,{type:`string`,description:`Filters results based on DNSSEC (DNS Security Extensions) support.`}).option(`dnssec-aware`,{type:`string`,description:`Filters results based on DNSSEC (DNS Security Extensions) client awareness.`}).option(`dnssec-e2e`,{type:`string`,description:`Filters results based on DNSSEC-validated answers by end-to-end security status.`}).option(`ip-version`,{type:`string`,description:`Filters results by IP version (Ipv4 vs. IPv6).`}).option(`matching-answer`,{type:`string`,description:`Filters results based on whether the queries have a matching answer.`}).option(`format`,{type:`string`,description:`Format in which results will be returned.`,choices:[`JSON`,`CSV`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const Yr={command:`ases`,describe:`Get top ASes by DNS queries`,builder:Jr,handler:async e=>a({command:`radar dns top ases`,classification:{safeFlags:[`format`,`dry-run`]}},e,async()=>{let a={limit:e.limit,name:e.name,dateRange:e[`date-range`],dateStart:e[`date-start`],dateEnd:e[`date-end`],asn:e.asn,location:e.location,continent:e.continent,domain:e.domain,cacheHit:e[`cache-hit`],nodata:e.nodata,protocol:e.protocol,queryType:e[`query-type`],responseCode:e[`response-code`],responseTtl:e[`response-ttl`],dnssec:e.dnssec,dnssecAware:e[`dnssec-aware`],dnssecE2e:e[`dnssec-e2e`],ipVersion:e[`ip-version`],matchingAnswer:e[`matching-answer`],format:e.format};if(e.dryRun){r({command:`cf radar dns top ases`,method:`GET`,url:`https://api.cloudflare.com/client/v4/radar/dns/top/ases`,pathParams:{},query:a,bodyKind:`none`});return}let o=await t(e),s=await i(`Loading`,async()=>o.send(qr,a));n(s,{successLabel:`Loaded`})})};var Xr={method:`GET`,path:()=>`/radar/dns/top/locations`,query:[`limit`,`name`,`dateRange`,`dateStart`,`dateEnd`,`asn`,`location`,`continent`,`domain`,`cacheHit`,`nodata`,`protocol`,`queryType`,`responseCode`,`responseTtl`,`dnssec`,`dnssecAware`,`dnssecE2e`,`ipVersion`,`matchingAnswer`,`tld`,`format`],errors:{404:`NotFoundError`}};function Zr(e){return e.usage(`$0 radar dns top locations
|
|
147
|
-
|
|
148
|
-
Retrieves the top locations by DNS queries made to 1.1.1.1 DNS resolver.`).option(`limit`,{type:`number`,description:`Limits the number of objects returned in the response.`}).option(`name`,{type:`string`,description:`Array of names used to label the series in the response.`}).option(`date-range`,{type:`string`,description:"Filters results by relative date range ending at the current time, with each value producing a separate series. Use `<n>d` for days (up to `364d`) or `<n>w` for weeks (up to `52w`). Append `control` to request the equivalent previous period for comparison: the comparison window is shifted back by the current window's length rounded up to a whole number of weeks, so it keeps the same weekday alignment and does not overlap the current window (e.g. `7dcontrol` covers days -14 to -7, `10dcontrol` covers days -24 to -14). For example, pass `7d` and `7dcontrol` to compare this week with the previous week. All series must resolve to the same duration as the main series; relative ranges (including `control`) satisfy this automatically. Use this parameter or set specific start and end dates (`dateStart` and `dateEnd` parameters)."}).option(`date-start`,{type:`string`,description:"Start of the date range. Alternative to `dateRange`; provide together with `dateEnd`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`date-end`,{type:`string`,description:"End of the date range (inclusive). Alternative to `dateRange`; provide together with `dateStart`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`asn`,{type:`string`,description:"Filters results by Autonomous System. Specify one or more Autonomous System Numbers (ASNs) as a comma-separated list. Prefix with `-` to exclude ASNs from results. For example, `-174, 3356` excludes results from AS174, but includes results from AS3356."}).option(`location`,{type:`string`,description:"Filters results by location. Specify a comma-separated list of alpha-2 codes. Prefix with `-` to exclude locations from results. For example, `-US,PT` excludes results from the US, but includes results from PT."}).option(`continent`,{type:`string`,description:"Filters results by continent. Specify a comma-separated list of alpha-2 codes. Prefix with `-` to exclude continents from results. For example, `-EU,NA` excludes results from EU, but includes results from NA."}).option(`domain`,{type:`string`,description:"Filters results by domain name. When set, no other DNS filter may be used — only date filtering (`dateRange`, or `dateStart`/`dateEnd`) is allowed — and the date range cannot exceed 31 days."}).option(`cache-hit`,{type:`string`,description:`Filters results based on cache status.`}).option(`nodata`,{type:`string`,description:`Specifies whether the response includes empty DNS responses (NODATA).`}).option(`protocol`,{type:`string`,description:`Filters results by DNS transport protocol.`}).option(`query-type`,{type:`string`,description:`Filters results by DNS query type.`}).option(`response-code`,{type:`string`,description:`Filters results by DNS response code.`}).option(`response-ttl`,{type:`string`,description:`Filters results by DNS response TTL.`}).option(`dnssec`,{type:`string`,description:`Filters results based on DNSSEC (DNS Security Extensions) support.`}).option(`dnssec-aware`,{type:`string`,description:`Filters results based on DNSSEC (DNS Security Extensions) client awareness.`}).option(`dnssec-e2e`,{type:`string`,description:`Filters results based on DNSSEC-validated answers by end-to-end security status.`}).option(`ip-version`,{type:`string`,description:`Filters results by IP version (Ipv4 vs. IPv6).`}).option(`matching-answer`,{type:`string`,description:`Filters results based on whether the queries have a matching answer.`}).option(`tld`,{type:`string`,description:"Filters results by top-level domain. Incompatible with the `ipVersion`, `protocol`, `dnssecE2e`, `dnssecAware`, `responseTtl`, and `cacheHit` filters/dimensions; this restriction does not apply to country-code TLDs (2-letter, e.g. `uk`)."}).option(`format`,{type:`string`,description:`Format in which results will be returned.`,choices:[`JSON`,`CSV`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const Qr={command:`locations`,describe:`Get top locations by DNS queries`,builder:Zr,handler:async e=>a({command:`radar dns top locations`,classification:{safeFlags:[`format`,`dry-run`]}},e,async()=>{let a={limit:e.limit,name:e.name,dateRange:e[`date-range`],dateStart:e[`date-start`],dateEnd:e[`date-end`],asn:e.asn,location:e.location,continent:e.continent,domain:e.domain,cacheHit:e[`cache-hit`],nodata:e.nodata,protocol:e.protocol,queryType:e[`query-type`],responseCode:e[`response-code`],responseTtl:e[`response-ttl`],dnssec:e.dnssec,dnssecAware:e[`dnssec-aware`],dnssecE2e:e[`dnssec-e2e`],ipVersion:e[`ip-version`],matchingAnswer:e[`matching-answer`],tld:e.tld,format:e.format};if(e.dryRun){r({command:`cf radar dns top locations`,method:`GET`,url:`https://api.cloudflare.com/client/v4/radar/dns/top/locations`,pathParams:{},query:a,bodyKind:`none`});return}let o=await t(e),s=await i(`Loading`,async()=>o.send(Xr,a));n(s,{successLabel:`Loaded`})})},$r={command:`top`,describe:`Operations for dns.top`,builder:e=>e.command(Yr).command(Qr).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},ei={command:`dns`,describe:`Global DNS query trends — top domains, resolver stats, and DNSSEC adoption`,builder:e=>e.command(Br).command(Kr).command(Ur).command($r).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var ti={method:`GET`,path:t=>e`/radar/email/routing/summary/${t.dimension}`,query:[`name`,`dateRange`,`dateStart`,`dateEnd`,`arc`,`dkim`,`dmarc`,`spf`,`ipVersion`,`encrypted`,`limitPerGroup`,`format`],errors:{400:`BadRequestError`}};function ni(e){return e.usage(`$0 radar email routing summary-v2 <dimension>
|
|
149
|
-
|
|
150
|
-
Retrieves the distribution of email routing metrics by the specified dimension.`).positional(`dimension`,{type:`string`,description:`Specifies the attribute by which to group the results.`,demandOption:!0}).option(`name`,{type:`string`,description:`Array of names used to label the series in the response.`}).option(`date-range`,{type:`string`,description:"Filters results by relative date range ending at the current time, with each value producing a separate series. Use `<n>d` for days (up to `364d`) or `<n>w` for weeks (up to `52w`). Append `control` to request the equivalent previous period for comparison: the comparison window is shifted back by the current window's length rounded up to a whole number of weeks, so it keeps the same weekday alignment and does not overlap the current window (e.g. `7dcontrol` covers days -14 to -7, `10dcontrol` covers days -24 to -14). For example, pass `7d` and `7dcontrol` to compare this week with the previous week. All series must resolve to the same duration as the main series; relative ranges (including `control`) satisfy this automatically. Use this parameter or set specific start and end dates (`dateStart` and `dateEnd` parameters)."}).option(`date-start`,{type:`string`,description:"Start of the date range. Alternative to `dateRange`; provide together with `dateEnd`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`date-end`,{type:`string`,description:"End of the date range (inclusive). Alternative to `dateRange`; provide together with `dateStart`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`arc`,{type:`string`,description:`Filters results by ARC (Authenticated Received Chain) validation.`}).option(`dkim`,{type:`string`,description:`Filters results by DKIM (DomainKeys Identified Mail) validation status.`}).option(`dmarc`,{type:`string`,description:`Filters results by DMARC (Domain-based Message Authentication, Reporting and Conformance) validation status.`}).option(`spf`,{type:`string`,description:`Filters results by SPF (Sender Policy Framework) validation status.`}).option(`ip-version`,{type:`string`,description:`Filters results by IP version (Ipv4 vs. IPv6).`}).option(`encrypted`,{type:`string`,description:`Filters results by encryption status (encrypted vs. not-encrypted).`}).option(`limit-per-group`,{type:`number`,description:`Limits the number of objects per group to the top items within the specified time range. When item count exceeds the limit, extra items appear grouped under an "other" category. Only supported on high-cardinality dimensions; otherwise the request is rejected. Minimum value is 2.`}).option(`format`,{type:`string`,description:`Format in which results will be returned.`,choices:[`JSON`,`CSV`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const ri={command:`summary-v2 <dimension>`,describe:`Get email routing summary by dimension`,builder:ni,handler:async e=>a({command:`radar email routing summary-v2`,classification:{safeFlags:[`format`,`dry-run`]}},e,async()=>{let a={name:e.name,dateRange:e[`date-range`],dateStart:e[`date-start`],dateEnd:e[`date-end`],arc:e.arc,dkim:e.dkim,dmarc:e.dmarc,spf:e.spf,ipVersion:e[`ip-version`],encrypted:e.encrypted,limitPerGroup:e[`limit-per-group`],format:e.format};if(e.dryRun){r({command:`cf radar email routing summary-v2`,method:`GET`,url:`https://api.cloudflare.com/client/v4/radar/email/routing/summary/${e.dimension==null?`<dimension>`:encodeURIComponent(String(e.dimension))}`,pathParams:{dimension:String(e.dimension??``)},query:a,bodyKind:`none`});return}let o=await t(e),s=await i(`Loading`,async()=>o.send(ti,{dimension:e.dimension,...a}));n(s,{successLabel:`Loaded`})})};var ii={method:`GET`,path:t=>e`/radar/email/routing/timeseries_groups/${t.dimension}`,query:[`aggInterval`,`name`,`dateRange`,`dateStart`,`dateEnd`,`arc`,`dkim`,`dmarc`,`spf`,`ipVersion`,`encrypted`,`limitPerGroup`,`format`],errors:{400:`BadRequestError`}};function ai(e){return e.usage(`$0 radar email routing timeseries-groups-v2 <dimension>
|
|
151
|
-
|
|
152
|
-
Retrieves the distribution of email routing metrics grouped by dimension over time.`).positional(`dimension`,{type:`string`,description:`Specifies the attribute by which to group the results.`,demandOption:!0}).option(`agg-interval`,{type:`string`,description:`Aggregation interval of the results (e.g., in 15 minutes or 1 hour intervals). Refer to [Aggregation intervals](https://developers.cloudflare.com/radar/concepts/aggregation-intervals/). When omitted, the interval is auto-selected from the requested date range; finer intervals are only available for shorter ranges. If the requested interval is too granular for the date range, the request is rejected.`,choices:[`15m`,`1h`,`1d`,`1w`]}).option(`name`,{type:`string`,description:`Array of names used to label the series in the response.`}).option(`date-range`,{type:`string`,description:"Filters results by relative date range ending at the current time, with each value producing a separate series. Use `<n>d` for days (up to `364d`) or `<n>w` for weeks (up to `52w`). Append `control` to request the equivalent previous period for comparison: the comparison window is shifted back by the current window's length rounded up to a whole number of weeks, so it keeps the same weekday alignment and does not overlap the current window (e.g. `7dcontrol` covers days -14 to -7, `10dcontrol` covers days -24 to -14). For example, pass `7d` and `7dcontrol` to compare this week with the previous week. All series must resolve to the same duration as the main series; relative ranges (including `control`) satisfy this automatically. Use this parameter or set specific start and end dates (`dateStart` and `dateEnd` parameters)."}).option(`date-start`,{type:`string`,description:"Start of the date range. Alternative to `dateRange`; provide together with `dateEnd`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`date-end`,{type:`string`,description:"End of the date range (inclusive). Alternative to `dateRange`; provide together with `dateStart`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`arc`,{type:`string`,description:`Filters results by ARC (Authenticated Received Chain) validation.`}).option(`dkim`,{type:`string`,description:`Filters results by DKIM (DomainKeys Identified Mail) validation status.`}).option(`dmarc`,{type:`string`,description:`Filters results by DMARC (Domain-based Message Authentication, Reporting and Conformance) validation status.`}).option(`spf`,{type:`string`,description:`Filters results by SPF (Sender Policy Framework) validation status.`}).option(`ip-version`,{type:`string`,description:`Filters results by IP version (Ipv4 vs. IPv6).`}).option(`encrypted`,{type:`string`,description:`Filters results by encryption status (encrypted vs. not-encrypted).`}).option(`limit-per-group`,{type:`number`,description:`Limits the number of objects per group to the top items within the specified time range. When item count exceeds the limit, extra items appear grouped under an "other" category. Only supported on high-cardinality dimensions; otherwise the request is rejected. Minimum value is 2.`}).option(`format`,{type:`string`,description:`Format in which results will be returned.`,choices:[`JSON`,`CSV`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const oi={command:`timeseries-groups-v2 <dimension>`,describe:`Get email routing time series grouped by dimension`,builder:ai,handler:async e=>a({command:`radar email routing timeseries-groups-v2`,classification:{safeFlags:[`agg-interval`,`format`,`dry-run`]}},e,async()=>{let a={aggInterval:e[`agg-interval`],name:e.name,dateRange:e[`date-range`],dateStart:e[`date-start`],dateEnd:e[`date-end`],arc:e.arc,dkim:e.dkim,dmarc:e.dmarc,spf:e.spf,ipVersion:e[`ip-version`],encrypted:e.encrypted,limitPerGroup:e[`limit-per-group`],format:e.format};if(e.dryRun){r({command:`cf radar email routing timeseries-groups-v2`,method:`GET`,url:`https://api.cloudflare.com/client/v4/radar/email/routing/timeseries_groups/${e.dimension==null?`<dimension>`:encodeURIComponent(String(e.dimension))}`,pathParams:{dimension:String(e.dimension??``)},query:a,bodyKind:`none`});return}let o=await t(e),s=await i(`Loading`,async()=>o.send(ii,{dimension:e.dimension,...a}));n(s,{successLabel:`Loaded`})})},si={command:`routing`,describe:`Operations for email.routing`,builder:e=>e.command(ri).command(oi).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var ci={method:`GET`,path:t=>e`/radar/email/security/summary/${t.dimension}`,query:[`name`,`dateRange`,`dateStart`,`dateEnd`,`arc`,`dkim`,`dmarc`,`spf`,`tlsVersion`,`limitPerGroup`,`format`],errors:{400:`BadRequestError`}};function li(e){return e.usage(`$0 radar email security summary-v2 <dimension>
|
|
153
|
-
|
|
154
|
-
Retrieves the distribution of email security metrics by the specified dimension.`).positional(`dimension`,{type:`string`,description:`Specifies the attribute by which to group the results.`,demandOption:!0}).option(`name`,{type:`string`,description:`Array of names used to label the series in the response.`}).option(`date-range`,{type:`string`,description:"Filters results by relative date range ending at the current time, with each value producing a separate series. Use `<n>d` for days (up to `364d`) or `<n>w` for weeks (up to `52w`). Append `control` to request the equivalent previous period for comparison: the comparison window is shifted back by the current window's length rounded up to a whole number of weeks, so it keeps the same weekday alignment and does not overlap the current window (e.g. `7dcontrol` covers days -14 to -7, `10dcontrol` covers days -24 to -14). For example, pass `7d` and `7dcontrol` to compare this week with the previous week. All series must resolve to the same duration as the main series; relative ranges (including `control`) satisfy this automatically. Use this parameter or set specific start and end dates (`dateStart` and `dateEnd` parameters)."}).option(`date-start`,{type:`string`,description:"Start of the date range. Alternative to `dateRange`; provide together with `dateEnd`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`date-end`,{type:`string`,description:"End of the date range (inclusive). Alternative to `dateRange`; provide together with `dateStart`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`arc`,{type:`string`,description:`Filters results by ARC (Authenticated Received Chain) validation.`}).option(`dkim`,{type:`string`,description:`Filters results by DKIM (DomainKeys Identified Mail) validation status.`}).option(`dmarc`,{type:`string`,description:`Filters results by DMARC (Domain-based Message Authentication, Reporting and Conformance) validation status.`}).option(`spf`,{type:`string`,description:`Filters results by SPF (Sender Policy Framework) validation status.`}).option(`tls-version`,{type:`string`,description:`Filters results by TLS version.`}).option(`limit-per-group`,{type:`number`,description:`Limits the number of objects per group to the top items within the specified time range. When item count exceeds the limit, extra items appear grouped under an "other" category. Only supported on high-cardinality dimensions; otherwise the request is rejected. Minimum value is 2.`}).option(`format`,{type:`string`,description:`Format in which results will be returned.`,choices:[`JSON`,`CSV`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const ui={command:`summary-v2 <dimension>`,describe:`Get email security summary by dimension`,builder:li,handler:async e=>a({command:`radar email security summary-v2`,classification:{safeFlags:[`format`,`dry-run`]}},e,async()=>{let a={name:e.name,dateRange:e[`date-range`],dateStart:e[`date-start`],dateEnd:e[`date-end`],arc:e.arc,dkim:e.dkim,dmarc:e.dmarc,spf:e.spf,tlsVersion:e[`tls-version`],limitPerGroup:e[`limit-per-group`],format:e.format};if(e.dryRun){r({command:`cf radar email security summary-v2`,method:`GET`,url:`https://api.cloudflare.com/client/v4/radar/email/security/summary/${e.dimension==null?`<dimension>`:encodeURIComponent(String(e.dimension))}`,pathParams:{dimension:String(e.dimension??``)},query:a,bodyKind:`none`});return}let o=await t(e),s=await i(`Loading`,async()=>o.send(ci,{dimension:e.dimension,...a}));n(s,{successLabel:`Loaded`})})};var di={method:`GET`,path:t=>e`/radar/email/security/timeseries_groups/${t.dimension}`,query:[`aggInterval`,`name`,`dateRange`,`dateStart`,`dateEnd`,`arc`,`dkim`,`dmarc`,`spf`,`tlsVersion`,`limitPerGroup`,`format`],errors:{400:`BadRequestError`}};function fi(e){return e.usage(`$0 radar email security timeseries-groups-v2 <dimension>
|
|
155
|
-
|
|
156
|
-
Retrieves the distribution of email security metrics grouped by dimension over time.`).positional(`dimension`,{type:`string`,description:`Specifies the attribute by which to group the results.`,demandOption:!0}).option(`agg-interval`,{type:`string`,description:`Aggregation interval of the results (e.g., in 15 minutes or 1 hour intervals). Refer to [Aggregation intervals](https://developers.cloudflare.com/radar/concepts/aggregation-intervals/). When omitted, the interval is auto-selected from the requested date range; finer intervals are only available for shorter ranges. If the requested interval is too granular for the date range, the request is rejected.`,choices:[`15m`,`1h`,`1d`,`1w`]}).option(`name`,{type:`string`,description:`Array of names used to label the series in the response.`}).option(`date-range`,{type:`string`,description:"Filters results by relative date range ending at the current time, with each value producing a separate series. Use `<n>d` for days (up to `364d`) or `<n>w` for weeks (up to `52w`). Append `control` to request the equivalent previous period for comparison: the comparison window is shifted back by the current window's length rounded up to a whole number of weeks, so it keeps the same weekday alignment and does not overlap the current window (e.g. `7dcontrol` covers days -14 to -7, `10dcontrol` covers days -24 to -14). For example, pass `7d` and `7dcontrol` to compare this week with the previous week. All series must resolve to the same duration as the main series; relative ranges (including `control`) satisfy this automatically. Use this parameter or set specific start and end dates (`dateStart` and `dateEnd` parameters)."}).option(`date-start`,{type:`string`,description:"Start of the date range. Alternative to `dateRange`; provide together with `dateEnd`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`date-end`,{type:`string`,description:"End of the date range (inclusive). Alternative to `dateRange`; provide together with `dateStart`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`arc`,{type:`string`,description:`Filters results by ARC (Authenticated Received Chain) validation.`}).option(`dkim`,{type:`string`,description:`Filters results by DKIM (DomainKeys Identified Mail) validation status.`}).option(`dmarc`,{type:`string`,description:`Filters results by DMARC (Domain-based Message Authentication, Reporting and Conformance) validation status.`}).option(`spf`,{type:`string`,description:`Filters results by SPF (Sender Policy Framework) validation status.`}).option(`tls-version`,{type:`string`,description:`Filters results by TLS version.`}).option(`limit-per-group`,{type:`number`,description:`Limits the number of objects per group to the top items within the specified time range. When item count exceeds the limit, extra items appear grouped under an "other" category. Only supported on high-cardinality dimensions; otherwise the request is rejected. Minimum value is 2.`}).option(`format`,{type:`string`,description:`Format in which results will be returned.`,choices:[`JSON`,`CSV`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const pi={command:`timeseries-groups-v2 <dimension>`,describe:`Get email security time series grouped by dimension`,builder:fi,handler:async e=>a({command:`radar email security timeseries-groups-v2`,classification:{safeFlags:[`agg-interval`,`format`,`dry-run`]}},e,async()=>{let a={aggInterval:e[`agg-interval`],name:e.name,dateRange:e[`date-range`],dateStart:e[`date-start`],dateEnd:e[`date-end`],arc:e.arc,dkim:e.dkim,dmarc:e.dmarc,spf:e.spf,tlsVersion:e[`tls-version`],limitPerGroup:e[`limit-per-group`],format:e.format};if(e.dryRun){r({command:`cf radar email security timeseries-groups-v2`,method:`GET`,url:`https://api.cloudflare.com/client/v4/radar/email/security/timeseries_groups/${e.dimension==null?`<dimension>`:encodeURIComponent(String(e.dimension))}`,pathParams:{dimension:String(e.dimension??``)},query:a,bodyKind:`none`});return}let o=await t(e),s=await i(`Loading`,async()=>o.send(di,{dimension:e.dimension,...a}));n(s,{successLabel:`Loaded`})})};var mi={method:`GET`,path:()=>`/radar/email/security/top/tlds`,query:[`limit`,`name`,`dateRange`,`dateStart`,`dateEnd`,`arc`,`dkim`,`dmarc`,`spf`,`tlsVersion`,`tldCategory`,`format`],errors:{404:`NotFoundError`}};function hi(e){return e.usage(`$0 radar email security top tlds get
|
|
157
|
-
|
|
158
|
-
Retrieves the top TLDs by number of email messages.`).option(`limit`,{type:`number`,description:`Limits the number of objects returned in the response.`}).option(`name`,{type:`string`,description:`Array of names used to label the series in the response.`}).option(`date-range`,{type:`string`,description:"Filters results by relative date range ending at the current time, with each value producing a separate series. Use `<n>d` for days (up to `364d`) or `<n>w` for weeks (up to `52w`). Append `control` to request the equivalent previous period for comparison: the comparison window is shifted back by the current window's length rounded up to a whole number of weeks, so it keeps the same weekday alignment and does not overlap the current window (e.g. `7dcontrol` covers days -14 to -7, `10dcontrol` covers days -24 to -14). For example, pass `7d` and `7dcontrol` to compare this week with the previous week. All series must resolve to the same duration as the main series; relative ranges (including `control`) satisfy this automatically. Use this parameter or set specific start and end dates (`dateStart` and `dateEnd` parameters)."}).option(`date-start`,{type:`string`,description:"Start of the date range. Alternative to `dateRange`; provide together with `dateEnd`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`date-end`,{type:`string`,description:"End of the date range (inclusive). Alternative to `dateRange`; provide together with `dateStart`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`arc`,{type:`string`,description:`Filters results by ARC (Authenticated Received Chain) validation.`}).option(`dkim`,{type:`string`,description:`Filters results by DKIM (DomainKeys Identified Mail) validation status.`}).option(`dmarc`,{type:`string`,description:`Filters results by DMARC (Domain-based Message Authentication, Reporting and Conformance) validation status.`}).option(`spf`,{type:`string`,description:`Filters results by SPF (Sender Policy Framework) validation status.`}).option(`tls-version`,{type:`string`,description:`Filters results by TLS version.`}).option(`tld-category`,{type:`string`,description:`Filters results by TLD category.`,choices:[`CLASSIC`,`COUNTRY`]}).option(`format`,{type:`string`,description:`Format in which results will be returned.`,choices:[`JSON`,`CSV`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const gi={command:`get`,describe:`Get top TLDs by email message volume`,builder:hi,handler:async e=>a({command:`radar email security top tlds get`,classification:{safeFlags:[`tld-category`,`format`,`dry-run`]}},e,async()=>{let a={limit:e.limit,name:e.name,dateRange:e[`date-range`],dateStart:e[`date-start`],dateEnd:e[`date-end`],arc:e.arc,dkim:e.dkim,dmarc:e.dmarc,spf:e.spf,tlsVersion:e[`tls-version`],tldCategory:e[`tld-category`],format:e.format};if(e.dryRun){r({command:`cf radar email security top tlds get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/radar/email/security/top/tlds`,pathParams:{},query:a,bodyKind:`none`});return}let o=await t(e),s=await i(`Loading`,async()=>o.send(mi,a));n(s,{successLabel:`Loaded`})})};var _i={method:`GET`,path:t=>e`/radar/email/security/top/tlds/malicious/${t.malicious}`,query:[`limit`,`name`,`dateRange`,`dateStart`,`dateEnd`,`arc`,`dkim`,`dmarc`,`spf`,`tlsVersion`,`tldCategory`,`format`],errors:{404:`NotFoundError`}};function vi(e){return e.usage(`$0 radar email security top tlds malicious get <malicious>
|
|
159
|
-
|
|
160
|
-
Retrieves the top TLDs by emails classified as malicious or not.`).positional(`malicious`,{type:`string`,description:`Malicious classification.`,demandOption:!0}).option(`limit`,{type:`number`,description:`Limits the number of objects returned in the response.`}).option(`name`,{type:`string`,description:`Array of names used to label the series in the response.`}).option(`date-range`,{type:`string`,description:"Filters results by relative date range ending at the current time, with each value producing a separate series. Use `<n>d` for days (up to `364d`) or `<n>w` for weeks (up to `52w`). Append `control` to request the equivalent previous period for comparison: the comparison window is shifted back by the current window's length rounded up to a whole number of weeks, so it keeps the same weekday alignment and does not overlap the current window (e.g. `7dcontrol` covers days -14 to -7, `10dcontrol` covers days -24 to -14). For example, pass `7d` and `7dcontrol` to compare this week with the previous week. All series must resolve to the same duration as the main series; relative ranges (including `control`) satisfy this automatically. Use this parameter or set specific start and end dates (`dateStart` and `dateEnd` parameters)."}).option(`date-start`,{type:`string`,description:"Start of the date range. Alternative to `dateRange`; provide together with `dateEnd`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`date-end`,{type:`string`,description:"End of the date range (inclusive). Alternative to `dateRange`; provide together with `dateStart`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`arc`,{type:`string`,description:`Filters results by ARC (Authenticated Received Chain) validation.`}).option(`dkim`,{type:`string`,description:`Filters results by DKIM (DomainKeys Identified Mail) validation status.`}).option(`dmarc`,{type:`string`,description:`Filters results by DMARC (Domain-based Message Authentication, Reporting and Conformance) validation status.`}).option(`spf`,{type:`string`,description:`Filters results by SPF (Sender Policy Framework) validation status.`}).option(`tls-version`,{type:`string`,description:`Filters results by TLS version.`}).option(`tld-category`,{type:`string`,description:`Filters results by TLD category.`,choices:[`CLASSIC`,`COUNTRY`]}).option(`format`,{type:`string`,description:`Format in which results will be returned.`,choices:[`JSON`,`CSV`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const yi={command:`get <malicious>`,describe:`Get top TLDs by email malicious classification`,builder:vi,handler:async e=>a({command:`radar email security top tlds malicious get`,classification:{safeFlags:[`tld-category`,`format`,`dry-run`]}},e,async()=>{let a={limit:e.limit,name:e.name,dateRange:e[`date-range`],dateStart:e[`date-start`],dateEnd:e[`date-end`],arc:e.arc,dkim:e.dkim,dmarc:e.dmarc,spf:e.spf,tlsVersion:e[`tls-version`],tldCategory:e[`tld-category`],format:e.format};if(e.dryRun){r({command:`cf radar email security top tlds malicious get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/radar/email/security/top/tlds/malicious/${e.malicious==null?`<malicious>`:encodeURIComponent(String(e.malicious))}`,pathParams:{malicious:String(e.malicious??``)},query:a,bodyKind:`none`});return}let o=await t(e),s=await i(`Loading`,async()=>o.send(_i,{malicious:e.malicious,...a}));n(s,{successLabel:`Loaded`})})},bi={command:`malicious`,describe:`Operations for email.security.top.tlds.malicious`,builder:e=>e.command(yi).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var xi={method:`GET`,path:t=>e`/radar/email/security/top/tlds/spam/${t.spam}`,query:[`limit`,`name`,`dateRange`,`dateStart`,`dateEnd`,`arc`,`dkim`,`dmarc`,`spf`,`tlsVersion`,`tldCategory`,`format`],errors:{404:`NotFoundError`}};function Si(e){return e.usage(`$0 radar email security top tlds spam get <spam>
|
|
161
|
-
|
|
162
|
-
Retrieves the top TLDs by emails classified as spam or not.`).positional(`spam`,{type:`string`,description:`Spam classification.`,demandOption:!0}).option(`limit`,{type:`number`,description:`Limits the number of objects returned in the response.`}).option(`name`,{type:`string`,description:`Array of names used to label the series in the response.`}).option(`date-range`,{type:`string`,description:"Filters results by relative date range ending at the current time, with each value producing a separate series. Use `<n>d` for days (up to `364d`) or `<n>w` for weeks (up to `52w`). Append `control` to request the equivalent previous period for comparison: the comparison window is shifted back by the current window's length rounded up to a whole number of weeks, so it keeps the same weekday alignment and does not overlap the current window (e.g. `7dcontrol` covers days -14 to -7, `10dcontrol` covers days -24 to -14). For example, pass `7d` and `7dcontrol` to compare this week with the previous week. All series must resolve to the same duration as the main series; relative ranges (including `control`) satisfy this automatically. Use this parameter or set specific start and end dates (`dateStart` and `dateEnd` parameters)."}).option(`date-start`,{type:`string`,description:"Start of the date range. Alternative to `dateRange`; provide together with `dateEnd`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`date-end`,{type:`string`,description:"End of the date range (inclusive). Alternative to `dateRange`; provide together with `dateStart`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`arc`,{type:`string`,description:`Filters results by ARC (Authenticated Received Chain) validation.`}).option(`dkim`,{type:`string`,description:`Filters results by DKIM (DomainKeys Identified Mail) validation status.`}).option(`dmarc`,{type:`string`,description:`Filters results by DMARC (Domain-based Message Authentication, Reporting and Conformance) validation status.`}).option(`spf`,{type:`string`,description:`Filters results by SPF (Sender Policy Framework) validation status.`}).option(`tls-version`,{type:`string`,description:`Filters results by TLS version.`}).option(`tld-category`,{type:`string`,description:`Filters results by TLD category.`,choices:[`CLASSIC`,`COUNTRY`]}).option(`format`,{type:`string`,description:`Format in which results will be returned.`,choices:[`JSON`,`CSV`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const Ci={command:`get <spam>`,describe:`Get top TLDs by email spam classification`,builder:Si,handler:async e=>a({command:`radar email security top tlds spam get`,classification:{safeFlags:[`tld-category`,`format`,`dry-run`]}},e,async()=>{let a={limit:e.limit,name:e.name,dateRange:e[`date-range`],dateStart:e[`date-start`],dateEnd:e[`date-end`],arc:e.arc,dkim:e.dkim,dmarc:e.dmarc,spf:e.spf,tlsVersion:e[`tls-version`],tldCategory:e[`tld-category`],format:e.format};if(e.dryRun){r({command:`cf radar email security top tlds spam get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/radar/email/security/top/tlds/spam/${e.spam==null?`<spam>`:encodeURIComponent(String(e.spam))}`,pathParams:{spam:String(e.spam??``)},query:a,bodyKind:`none`});return}let o=await t(e),s=await i(`Loading`,async()=>o.send(xi,{spam:e.spam,...a}));n(s,{successLabel:`Loaded`})})},wi={command:`spam`,describe:`Operations for email.security.top.tlds.spam`,builder:e=>e.command(Ci).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var Ti={method:`GET`,path:t=>e`/radar/email/security/top/tlds/spoof/${t.spoof}`,query:[`limit`,`name`,`dateRange`,`dateStart`,`dateEnd`,`arc`,`dkim`,`dmarc`,`spf`,`tlsVersion`,`tldCategory`,`format`],errors:{404:`NotFoundError`}};function Ei(e){return e.usage(`$0 radar email security top tlds spoof get <spoof>
|
|
163
|
-
|
|
164
|
-
Retrieves the top TLDs by emails classified as spoof or not.`).positional(`spoof`,{type:`string`,description:`Spoof classification.`,demandOption:!0}).option(`limit`,{type:`number`,description:`Limits the number of objects returned in the response.`}).option(`name`,{type:`string`,description:`Array of names used to label the series in the response.`}).option(`date-range`,{type:`string`,description:"Filters results by relative date range ending at the current time, with each value producing a separate series. Use `<n>d` for days (up to `364d`) or `<n>w` for weeks (up to `52w`). Append `control` to request the equivalent previous period for comparison: the comparison window is shifted back by the current window's length rounded up to a whole number of weeks, so it keeps the same weekday alignment and does not overlap the current window (e.g. `7dcontrol` covers days -14 to -7, `10dcontrol` covers days -24 to -14). For example, pass `7d` and `7dcontrol` to compare this week with the previous week. All series must resolve to the same duration as the main series; relative ranges (including `control`) satisfy this automatically. Use this parameter or set specific start and end dates (`dateStart` and `dateEnd` parameters)."}).option(`date-start`,{type:`string`,description:"Start of the date range. Alternative to `dateRange`; provide together with `dateEnd`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`date-end`,{type:`string`,description:"End of the date range (inclusive). Alternative to `dateRange`; provide together with `dateStart`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`arc`,{type:`string`,description:`Filters results by ARC (Authenticated Received Chain) validation.`}).option(`dkim`,{type:`string`,description:`Filters results by DKIM (DomainKeys Identified Mail) validation status.`}).option(`dmarc`,{type:`string`,description:`Filters results by DMARC (Domain-based Message Authentication, Reporting and Conformance) validation status.`}).option(`spf`,{type:`string`,description:`Filters results by SPF (Sender Policy Framework) validation status.`}).option(`tls-version`,{type:`string`,description:`Filters results by TLS version.`}).option(`tld-category`,{type:`string`,description:`Filters results by TLD category.`,choices:[`CLASSIC`,`COUNTRY`]}).option(`format`,{type:`string`,description:`Format in which results will be returned.`,choices:[`JSON`,`CSV`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const Di={command:`get <spoof>`,describe:`Get top TLDs by email spoof classification`,builder:Ei,handler:async e=>a({command:`radar email security top tlds spoof get`,classification:{safeFlags:[`tld-category`,`format`,`dry-run`]}},e,async()=>{let a={limit:e.limit,name:e.name,dateRange:e[`date-range`],dateStart:e[`date-start`],dateEnd:e[`date-end`],arc:e.arc,dkim:e.dkim,dmarc:e.dmarc,spf:e.spf,tlsVersion:e[`tls-version`],tldCategory:e[`tld-category`],format:e.format};if(e.dryRun){r({command:`cf radar email security top tlds spoof get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/radar/email/security/top/tlds/spoof/${e.spoof==null?`<spoof>`:encodeURIComponent(String(e.spoof))}`,pathParams:{spoof:String(e.spoof??``)},query:a,bodyKind:`none`});return}let o=await t(e),s=await i(`Loading`,async()=>o.send(Ti,{spoof:e.spoof,...a}));n(s,{successLabel:`Loaded`})})},Oi={command:`spoof`,describe:`Operations for email.security.top.tlds.spoof`,builder:e=>e.command(Di).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},ki={command:`tlds`,describe:`Operations for email.security.top.tlds`,builder:e=>e.command(gi).command(bi).command(wi).command(Oi).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},Ai={command:`top`,describe:`Operations for email.security.top`,builder:e=>e.command(ki).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},ji={command:`security`,describe:`Operations for email.security`,builder:e=>e.command(ui).command(pi).command(Ai).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},Mi={command:`email`,describe:`Email security trends — DMARC/SPF/DKIM adoption, spam, and phishing statistics`,builder:e=>e.command(si).command(ji).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var Ni={method:`GET`,path:t=>e`/radar/entities/asns/${t.asn}/as_set`,query:[`format`],errors:{400:`BadRequestError`}};function Pi(e){return e.usage(`$0 radar entities asns as-set <asn>
|
|
165
|
-
|
|
166
|
-
Retrieves Internet Routing Registry AS-SETs that an AS is a member of.`).positional(`asn`,{type:`string`,description:`Retrieves all AS-SETs that the given AS is a member of.`,demandOption:!0}).option(`format`,{type:`string`,description:`Format in which results will be returned.`,choices:[`JSON`,`CSV`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const Fi={command:`as-set <asn>`,describe:`Get IRR AS-SETs that an AS is a member of`,builder:Pi,handler:async e=>a({command:`radar entities asns as-set`,classification:{safeFlags:[`format`,`dry-run`]}},e,async()=>{let a={format:e.format};if(e.dryRun){r({command:`cf radar entities asns as-set`,method:`GET`,url:`https://api.cloudflare.com/client/v4/radar/entities/asns/${e.asn==null?`<asn>`:encodeURIComponent(String(e.asn))}/as_set`,pathParams:{asn:String(e.asn??``)},query:a,bodyKind:`none`});return}let o=await t(e),s=await i(`Loading`,async()=>o.send(Ni,{asn:e.asn,...a}));n(s,{successLabel:`Loaded`})})};var Ii={method:`GET`,path:()=>`/radar/entities/asns/botnet_threat_feed`,query:[`limit`,`offset`,`metric`,`date`,`compareDateRange`,`location`,`asn`,`sortOrder`,`format`],errors:{400:`BadRequestError`}};function Li(e){return e.usage(`$0 radar entities asns botnet-threat-feed
|
|
167
|
-
|
|
168
|
-
Retrieves a ranked list of Autonomous Systems based on their presence in the Cloudflare Botnet Threat Feed. Rankings can be sorted by offense count or number of bad IPs. Optionally compare to a previous date to see rank changes.`).option(`limit`,{type:`number`,description:`Limits the number of objects returned in the response.`}).option(`offset`,{type:`number`,description:`Skips the specified number of objects before fetching the results.`}).option(`metric`,{type:`string`,description:`Metric to rank ASNs by.`,choices:[`OFFENSE_COUNT`,`NUMBER_OF_OFFENDING_IPS`]}).option(`date`,{type:`string`,description:`The date to retrieve (YYYY-MM-DD format). If not specified, returns the most recent available data. Note: This is the date the report was generated. The report is generated from information collected from the previous day (e.g., the 2026-02-23 entry contains data from 2026-02-22).`}).option(`compare-date-range`,{type:`string`,description:`Relative date range for rank change comparison (e.g., "1d", "7d", "30d").`}).option(`location`,{type:`string`,description:`Filters results by location. Specify an alpha-2 location code.`}).option(`asn`,{type:`string`,description:"Filters results by Autonomous System. Specify one or more Autonomous System Numbers (ASNs) as a comma-separated list. Prefix with `-` to exclude ASNs from results. For example, `-174, 3356` excludes results from AS174, but includes results from AS3356."}).option(`sort-order`,{type:`string`,description:`Sort order.`,choices:[`ASC`,`DESC`]}).option(`format`,{type:`string`,description:`Format in which results will be returned.`,choices:[`JSON`,`CSV`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const Ri={command:`botnet-threat-feed`,describe:`Get AS rankings by botnet threat feed activity`,builder:Li,handler:async e=>a({command:`radar entities asns botnet-threat-feed`,classification:{safeFlags:[`metric`,`sort-order`,`format`,`dry-run`]}},e,async()=>{let a={limit:e.limit,offset:e.offset,metric:e.metric,date:e.date,compareDateRange:e[`compare-date-range`],location:e.location,asn:e.asn,sortOrder:e[`sort-order`],format:e.format};if(e.dryRun){r({command:`cf radar entities asns botnet-threat-feed`,method:`GET`,url:`https://api.cloudflare.com/client/v4/radar/entities/asns/botnet_threat_feed`,pathParams:{},query:a,bodyKind:`none`});return}let o=await t(e),s=await i(`Loading`,async()=>o.send(Ii,a));n(s,{successLabel:`Loaded`})})};var zi={method:`GET`,path:t=>e`/radar/entities/asns/${t.asn}`,query:[`format`],errors:{404:`NotFoundError`}};function Bi(e){return e.usage(`$0 radar entities asns get <asn>
|
|
169
|
-
|
|
170
|
-
Retrieves the requested autonomous system information. (A confidence level below \`5\` indicates a low level of confidence in the traffic data - normally this happens because Cloudflare has a small amount of traffic from/to this AS). Population estimates come from APNIC (refer to https://labs.apnic.net/?p=526).`).positional(`asn`,{type:`string`,description:`Single Autonomous System Number (ASN) as integer.`,demandOption:!0}).option(`format`,{type:`string`,description:`Format in which results will be returned.`,choices:[`JSON`,`CSV`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const Vi={command:`get <asn>`,describe:`Get AS details by ASN`,builder:Bi,handler:async e=>a({command:`radar entities asns get`,classification:{safeFlags:[`format`,`dry-run`]}},e,async()=>{let a={format:e.format};if(e.dryRun){r({command:`cf radar entities asns get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/radar/entities/asns/${e.asn==null?`<asn>`:encodeURIComponent(String(e.asn))}`,pathParams:{asn:String(e.asn??``)},query:a,bodyKind:`none`});return}let o=await t(e),s=await i(`Loading`,async()=>o.send(zi,{asn:e.asn,...a}));n(s,{successLabel:`Loaded`})})};var Hi={method:`GET`,path:()=>`/radar/entities/asns/ip`,query:[`ip`,`format`],errors:{404:`NotFoundError`}};function Ui(e){return e.usage(`$0 radar entities asns ip
|
|
171
|
-
|
|
172
|
-
Retrieves the requested autonomous system information based on IP address. Population estimates come from APNIC (refer to https://labs.apnic.net/?p=526).`).option(`ip`,{type:`string`,description:`IP address.`,demandOption:!0}).option(`format`,{type:`string`,description:`Format in which results will be returned.`,choices:[`JSON`,`CSV`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const Wi={command:`ip`,describe:`Get AS details by IP address`,builder:Ui,handler:async e=>a({command:`radar entities asns ip`,classification:{safeFlags:[`format`,`dry-run`]}},e,async()=>{let a={ip:e.ip,format:e.format};if(e.dryRun){r({command:`cf radar entities asns ip`,method:`GET`,url:`https://api.cloudflare.com/client/v4/radar/entities/asns/ip`,pathParams:{},query:a,bodyKind:`none`});return}let o=await t(e),s=await i(`Loading`,async()=>o.send(Hi,a));n(s,{successLabel:`Loaded`})})};var Gi={method:`GET`,path:()=>`/radar/entities/asns`,query:[`limit`,`offset`,`asn`,`location`,`orderBy`,`format`],errors:{400:`BadRequestError`}};function Ki(e){return e.usage(`$0 radar entities asns list
|
|
173
|
-
|
|
174
|
-
Retrieves a list of autonomous systems.`).option(`limit`,{type:`number`,description:`Limits the number of objects returned in the response.`}).option(`offset`,{type:`number`,description:`Skips the specified number of objects before fetching the results.`}).option(`asn`,{type:`string`,description:`Filters results by Autonomous System. Specify one or more Autonomous System Numbers (ASNs) as a comma-separated list.`}).option(`location`,{type:`string`,description:`Filters results by location. Specify an alpha-2 location code.`}).option(`order-by`,{type:`string`,description:`Specifies the metric to order the ASNs by.`,choices:[`ASN`,`POPULATION`]}).option(`format`,{type:`string`,description:`Format in which results will be returned.`,choices:[`JSON`,`CSV`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const qi={command:`list`,describe:`List autonomous systems`,builder:Ki,handler:async e=>a({command:`radar entities asns list`,classification:{safeFlags:[`order-by`,`format`,`dry-run`]}},e,async()=>{let a={limit:e.limit,offset:e.offset,asn:e.asn,location:e.location,orderBy:e[`order-by`],format:e.format};if(e.dryRun){r({command:`cf radar entities asns list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/radar/entities/asns`,pathParams:{},query:a,bodyKind:`none`});return}let o=await t(e),s=await i(`Loading`,async()=>o.send(Gi,a));n(s,{successLabel:`Loaded`})})};var $={method:`GET`,path:t=>e`/radar/entities/asns/${t.asn}/rel`,query:[`asn2`,`format`],errors:{400:`BadRequestError`}};function Ji(e){return e.usage(`$0 radar entities asns rel <asn>
|
|
175
|
-
|
|
176
|
-
Retrieves AS-level relationship for given networks.`).positional(`asn`,{type:`string`,description:`Retrieves all ASNs with provider-customer or peering relationships with the given ASN.`,demandOption:!0}).option(`asn2`,{type:`number`,description:`Retrieves the AS relationship of ASN2 with respect to the given ASN.`}).option(`format`,{type:`string`,description:`Format in which results will be returned.`,choices:[`JSON`,`CSV`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const Yi={command:`rel <asn>`,describe:`Get AS-level relationships by ASN`,builder:Ji,handler:async e=>a({command:`radar entities asns rel`,classification:{safeFlags:[`format`,`dry-run`]}},e,async()=>{let a={asn2:e.asn2,format:e.format};if(e.dryRun){r({command:`cf radar entities asns rel`,method:`GET`,url:`https://api.cloudflare.com/client/v4/radar/entities/asns/${e.asn==null?`<asn>`:encodeURIComponent(String(e.asn))}/rel`,pathParams:{asn:String(e.asn??``)},query:a,bodyKind:`none`});return}let o=await t(e),s=await i(`Loading`,async()=>o.send($,{asn:e.asn,...a}));n(s,{successLabel:`Loaded`})})},Xi={command:`asns`,describe:`Operations for entities.asns`,builder:e=>e.command(Fi).command(Ri).command(Vi).command(Wi).command(qi).command(Yi).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var Zi={method:`GET`,path:()=>`/radar/entities/ip`,query:[`ip`,`format`],errors:{404:`NotFoundError`}};function Qi(e){return e.usage(`$0 radar entities get
|
|
177
|
-
|
|
178
|
-
Retrieves IP address information.`).option(`ip`,{type:`string`,description:`IP address.`,demandOption:!0}).option(`format`,{type:`string`,description:`Format in which results will be returned.`,choices:[`JSON`,`CSV`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const $i={command:`get`,describe:`Get IP address details`,builder:Qi,handler:async e=>a({command:`radar entities get`,classification:{safeFlags:[`format`,`dry-run`]}},e,async()=>{let a={ip:e.ip,format:e.format};if(e.dryRun){r({command:`cf radar entities get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/radar/entities/ip`,pathParams:{},query:a,bodyKind:`none`});return}let o=await t(e),s=await i(`Loading`,async()=>o.send(Zi,a));n(s,{successLabel:`Loaded`})})};var ea={method:`GET`,path:t=>e`/radar/entities/locations/${t.location}`,query:[`format`],errors:{404:`NotFoundError`}};function ta(e){return e.usage(`$0 radar entities locations get <location>
|
|
179
|
-
|
|
180
|
-
Retrieves the requested location information. (A confidence level below \`5\` indicates a low level of confidence in the traffic data - normally this happens because Cloudflare has a small amount of traffic from/to this location).`).positional(`location`,{type:`string`,description:`Location alpha-2 code.`,demandOption:!0}).option(`format`,{type:`string`,description:`Format in which results will be returned.`,choices:[`JSON`,`CSV`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const na={command:`get <location>`,describe:`Get location details`,builder:ta,handler:async e=>a({command:`radar entities locations get`,classification:{safeFlags:[`format`,`dry-run`]}},e,async()=>{let a={format:e.format};if(e.dryRun){r({command:`cf radar entities locations get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/radar/entities/locations/${e.location==null?`<location>`:encodeURIComponent(String(e.location))}`,pathParams:{location:String(e.location??``)},query:a,bodyKind:`none`});return}let o=await t(e),s=await i(`Loading`,async()=>o.send(ea,{location:e.location,...a}));n(s,{successLabel:`Loaded`})})};var ra={method:`GET`,path:()=>`/radar/entities/locations`,query:[`limit`,`offset`,`location`,`region`,`subregion`,`continent`,`format`],errors:{400:`BadRequestError`}};function ia(e){return e.usage(`$0 radar entities locations list
|
|
181
|
-
|
|
182
|
-
Retrieves a list of locations.`).option(`limit`,{type:`number`,description:`Limits the number of objects returned in the response.`}).option(`offset`,{type:`number`,description:`Skips the specified number of objects before fetching the results.`}).option(`location`,{type:`string`,description:`Filters results by location. Specify a comma-separated list of alpha-2 location codes.`}).option(`region`,{type:`string`,description:`Filters results by region.`}).option(`subregion`,{type:`string`,description:`Filters results by subregion.`}).option(`continent`,{type:`string`,description:`Filters results by continent code.`,choices:[`AF`,`AS`,`EU`,`NA`,`OC`,`SA`]}).option(`format`,{type:`string`,description:`Format in which results will be returned.`,choices:[`JSON`,`CSV`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const aa={command:`list`,describe:`List locations`,builder:ia,handler:async e=>a({command:`radar entities locations list`,classification:{safeFlags:[`continent`,`format`,`dry-run`]}},e,async()=>{let a={limit:e.limit,offset:e.offset,location:e.location,region:e.region,subregion:e.subregion,continent:e.continent,format:e.format};if(e.dryRun){r({command:`cf radar entities locations list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/radar/entities/locations`,pathParams:{},query:a,bodyKind:`none`});return}let o=await t(e),s=await i(`Loading`,async()=>o.send(ra,a));n(s,{successLabel:`Loaded`})})},oa={command:`locations`,describe:`Operations for entities.locations`,builder:e=>e.command(na).command(aa).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},sa={command:`entities`,describe:`Look up ASNs, IPs, domains, and locations with metadata and traffic summaries`,builder:e=>e.command($i).command(Xi).command(oa).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var ca={method:`GET`,path:t=>e`/radar/geolocations/${t.geo_id}`,query:[`format`],errors:{404:`NotFoundError`}};function la(e){return e.usage("$0 radar geolocations get <geo-id>\n\nRetrieves the requested Geolocation information. Geolocation names can be localized by sending an `Accept-Language` HTTP header with a BCP 47 language tag (e.g., `Accept-Language: pt-PT`). The full quality-value chain is supported (e.g., `pt-PT,pt;q=0.9,en;q=0.8`).").positional(`geo-id`,{type:`string`,description:`Geolocation ID. Refer to [GeoNames](https://download.geonames.org/export/dump/readme.txt)`,demandOption:!0}).option(`format`,{type:`string`,description:`Format in which results will be returned.`,choices:[`JSON`,`CSV`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const ua={command:`get <geo-id>`,describe:`Get Geolocation details`,builder:la,handler:async e=>a({command:`radar geolocations get`,classification:{safeFlags:[`format`,`dry-run`]}},e,async()=>{let a={format:e.format};if(e.dryRun){r({command:`cf radar geolocations get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/radar/geolocations/${e[`geo-id`]==null?`<geo-id>`:encodeURIComponent(String(e[`geo-id`]))}`,pathParams:{"geo-id":String(e[`geo-id`]??``)},query:a,bodyKind:`none`});return}let o=await t(e),s=await i(`Loading`,async()=>o.send(ca,{geo_id:e[`geo-id`],...a}));n(s,{successLabel:`Loaded`})})};var da={method:`GET`,path:()=>`/radar/geolocations`,query:[`limit`,`offset`,`geoId`,`location`,`format`],errors:{400:`BadRequestError`}};function fa(e){return e.usage("$0 radar geolocations list\n\nRetrieves a list of geolocations. Geolocation names can be localized by sending an `Accept-Language` HTTP header with a BCP 47 language tag (e.g., `Accept-Language: pt-PT`). The full quality-value chain is supported (e.g., `pt-PT,pt;q=0.9,en;q=0.8`).").option(`limit`,{type:`number`,description:`Limits the number of objects returned in the response.`}).option(`offset`,{type:`number`,description:`Skips the specified number of objects before fetching the results.`}).option(`geo-id`,{type:`string`,description:`Filters results by geolocation. Specify a comma-separated list of GeoNames IDs.`}).option(`location`,{type:`string`,description:`Filters results by location. Specify a comma-separated list of alpha-2 location codes.`}).option(`format`,{type:`string`,description:`Format in which results will be returned.`,choices:[`JSON`,`CSV`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const pa={command:`list`,describe:`List Geolocations`,builder:fa,handler:async e=>a({command:`radar geolocations list`,classification:{safeFlags:[`format`,`dry-run`]}},e,async()=>{let a={limit:e.limit,offset:e.offset,geoId:e[`geo-id`],location:e.location,format:e.format};if(e.dryRun){r({command:`cf radar geolocations list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/radar/geolocations`,pathParams:{},query:a,bodyKind:`none`});return}let o=await t(e),s=await i(`Loading`,async()=>o.send(da,a));n(s,{successLabel:`Loaded`})})},ma={command:`geolocations`,describe:`Geographic location metadata used for regional traffic analysis`,builder:e=>e.command(ua).command(pa).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var ha={method:`GET`,path:t=>e`/radar/http/top/ases/bot_class/${t.bot_class}`,query:[`limit`,`name`,`dateRange`,`dateStart`,`dateEnd`,`asn`,`location`,`continent`,`geoId`,`deviceType`,`httpProtocol`,`httpVersion`,`ipVersion`,`os`,`tlsVersion`,`browserFamily`,`format`],errors:{404:`NotFoundError`}};function ga(e){return e.usage(`$0 radar http ases bot-class get <bot-class>
|
|
183
|
-
|
|
184
|
-
Retrieves the top autonomous systems, by HTTP requests, of the requested bot class.`).positional(`bot-class`,{type:`string`,description:`Bot class. Refer to [Bot classes](https://developers.cloudflare.com/radar/concepts/bot-classes/).`,demandOption:!0}).option(`limit`,{type:`number`,description:`Limits the number of objects returned in the response.`}).option(`name`,{type:`string`,description:`Array of names used to label the series in the response.`}).option(`date-range`,{type:`string`,description:"Filters results by relative date range ending at the current time, with each value producing a separate series. Use `<n>d` for days (up to `364d`) or `<n>w` for weeks (up to `52w`). Append `control` to request the equivalent previous period for comparison: the comparison window is shifted back by the current window's length rounded up to a whole number of weeks, so it keeps the same weekday alignment and does not overlap the current window (e.g. `7dcontrol` covers days -14 to -7, `10dcontrol` covers days -24 to -14). For example, pass `7d` and `7dcontrol` to compare this week with the previous week. All series must resolve to the same duration as the main series; relative ranges (including `control`) satisfy this automatically. Use this parameter or set specific start and end dates (`dateStart` and `dateEnd` parameters)."}).option(`date-start`,{type:`string`,description:"Start of the date range. Alternative to `dateRange`; provide together with `dateEnd`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`date-end`,{type:`string`,description:"End of the date range (inclusive). Alternative to `dateRange`; provide together with `dateStart`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`asn`,{type:`string`,description:"Filters results by Autonomous System. Specify one or more Autonomous System Numbers (ASNs) as a comma-separated list. Prefix with `-` to exclude ASNs from results. For example, `-174, 3356` excludes results from AS174, but includes results from AS3356."}).option(`location`,{type:`string`,description:"Filters results by location. Specify a comma-separated list of alpha-2 codes. Prefix with `-` to exclude locations from results. For example, `-US,PT` excludes results from the US, but includes results from PT."}).option(`continent`,{type:`string`,description:"Filters results by continent. Specify a comma-separated list of alpha-2 codes. Prefix with `-` to exclude continents from results. For example, `-EU,NA` excludes results from EU, but includes results from NA."}).option(`geo-id`,{type:`string`,description:"Filters results by Geolocation. Specify a comma-separated list of GeoNames IDs. Prefix with `-` to exclude geoIds from results. For example, `-2267056,360689` excludes results from the 2267056 (Lisbon), but includes results from 5128638 (New York)."}).option(`device-type`,{type:`string`,description:`Filters results by device type.`}).option(`http-protocol`,{type:`string`,description:`Filters results by HTTP protocol (HTTP vs. HTTPS).`}).option(`http-version`,{type:`string`,description:`Filters results by HTTP version.`}).option(`ip-version`,{type:`string`,description:`Filters results by IP version (Ipv4 vs. IPv6).`}).option(`os`,{type:`string`,description:`Filters results by operating system.`}).option(`tls-version`,{type:`string`,description:`Filters results by TLS version.`}).option(`browser-family`,{type:`string`,description:`Filters results by browser family.`}).option(`format`,{type:`string`,description:`Format in which results will be returned.`,choices:[`JSON`,`CSV`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const _a={command:`get <bot-class>`,describe:`Get top ASes by HTTP requests for a bot class`,builder:ga,handler:async e=>a({command:`radar http ases bot-class get`,classification:{safeFlags:[`format`,`dry-run`]}},e,async()=>{let a={limit:e.limit,name:e.name,dateRange:e[`date-range`],dateStart:e[`date-start`],dateEnd:e[`date-end`],asn:e.asn,location:e.location,continent:e.continent,geoId:e[`geo-id`],deviceType:e[`device-type`],httpProtocol:e[`http-protocol`],httpVersion:e[`http-version`],ipVersion:e[`ip-version`],os:e.os,tlsVersion:e[`tls-version`],browserFamily:e[`browser-family`],format:e.format};if(e.dryRun){r({command:`cf radar http ases bot-class get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/radar/http/top/ases/bot_class/${e[`bot-class`]==null?`<bot-class>`:encodeURIComponent(String(e[`bot-class`]))}`,pathParams:{"bot-class":String(e[`bot-class`]??``)},query:a,bodyKind:`none`});return}let o=await t(e),s=await i(`Loading`,async()=>o.send(ha,{bot_class:e[`bot-class`],...a}));n(s,{successLabel:`Loaded`})})},va={command:`bot-class`,describe:`Operations for http.ases.bot-class`,builder:e=>e.command(_a).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var ya={method:`GET`,path:t=>e`/radar/http/top/ases/browser_family/${t.browser_family}`,query:[`limit`,`name`,`dateRange`,`dateStart`,`dateEnd`,`asn`,`location`,`continent`,`geoId`,`botClass`,`deviceType`,`httpProtocol`,`httpVersion`,`ipVersion`,`os`,`tlsVersion`,`format`],errors:{404:`NotFoundError`}};function ba(e){return e.usage(`$0 radar http ases browser-family get <browser-family>
|
|
185
|
-
|
|
186
|
-
Retrieves the top autonomous systems, by HTTP requests, of the requested browser family.`).positional(`browser-family`,{type:`string`,description:`Browser family.`,demandOption:!0}).option(`limit`,{type:`number`,description:`Limits the number of objects returned in the response.`}).option(`name`,{type:`string`,description:`Array of names used to label the series in the response.`}).option(`date-range`,{type:`string`,description:"Filters results by relative date range ending at the current time, with each value producing a separate series. Use `<n>d` for days (up to `364d`) or `<n>w` for weeks (up to `52w`). Append `control` to request the equivalent previous period for comparison: the comparison window is shifted back by the current window's length rounded up to a whole number of weeks, so it keeps the same weekday alignment and does not overlap the current window (e.g. `7dcontrol` covers days -14 to -7, `10dcontrol` covers days -24 to -14). For example, pass `7d` and `7dcontrol` to compare this week with the previous week. All series must resolve to the same duration as the main series; relative ranges (including `control`) satisfy this automatically. Use this parameter or set specific start and end dates (`dateStart` and `dateEnd` parameters)."}).option(`date-start`,{type:`string`,description:"Start of the date range. Alternative to `dateRange`; provide together with `dateEnd`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`date-end`,{type:`string`,description:"End of the date range (inclusive). Alternative to `dateRange`; provide together with `dateStart`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`asn`,{type:`string`,description:"Filters results by Autonomous System. Specify one or more Autonomous System Numbers (ASNs) as a comma-separated list. Prefix with `-` to exclude ASNs from results. For example, `-174, 3356` excludes results from AS174, but includes results from AS3356."}).option(`location`,{type:`string`,description:"Filters results by location. Specify a comma-separated list of alpha-2 codes. Prefix with `-` to exclude locations from results. For example, `-US,PT` excludes results from the US, but includes results from PT."}).option(`continent`,{type:`string`,description:"Filters results by continent. Specify a comma-separated list of alpha-2 codes. Prefix with `-` to exclude continents from results. For example, `-EU,NA` excludes results from EU, but includes results from NA."}).option(`geo-id`,{type:`string`,description:"Filters results by Geolocation. Specify a comma-separated list of GeoNames IDs. Prefix with `-` to exclude geoIds from results. For example, `-2267056,360689` excludes results from the 2267056 (Lisbon), but includes results from 5128638 (New York)."}).option(`bot-class`,{type:`string`,description:`Filters results by bot class. Refer to [Bot classes](https://developers.cloudflare.com/radar/concepts/bot-classes/).`}).option(`device-type`,{type:`string`,description:`Filters results by device type.`}).option(`http-protocol`,{type:`string`,description:`Filters results by HTTP protocol (HTTP vs. HTTPS).`}).option(`http-version`,{type:`string`,description:`Filters results by HTTP version.`}).option(`ip-version`,{type:`string`,description:`Filters results by IP version (Ipv4 vs. IPv6).`}).option(`os`,{type:`string`,description:`Filters results by operating system.`}).option(`tls-version`,{type:`string`,description:`Filters results by TLS version.`}).option(`format`,{type:`string`,description:`Format in which results will be returned.`,choices:[`JSON`,`CSV`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const xa={command:`get <browser-family>`,describe:`Get top ASes by HTTP requests for a browser family`,builder:ba,handler:async e=>a({command:`radar http ases browser-family get`,classification:{safeFlags:[`format`,`dry-run`]}},e,async()=>{let a={limit:e.limit,name:e.name,dateRange:e[`date-range`],dateStart:e[`date-start`],dateEnd:e[`date-end`],asn:e.asn,location:e.location,continent:e.continent,geoId:e[`geo-id`],botClass:e[`bot-class`],deviceType:e[`device-type`],httpProtocol:e[`http-protocol`],httpVersion:e[`http-version`],ipVersion:e[`ip-version`],os:e.os,tlsVersion:e[`tls-version`],format:e.format};if(e.dryRun){r({command:`cf radar http ases browser-family get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/radar/http/top/ases/browser_family/${e[`browser-family`]==null?`<browser-family>`:encodeURIComponent(String(e[`browser-family`]))}`,pathParams:{"browser-family":String(e[`browser-family`]??``)},query:a,bodyKind:`none`});return}let o=await t(e),s=await i(`Loading`,async()=>o.send(ya,{browser_family:e[`browser-family`],...a}));n(s,{successLabel:`Loaded`})})},Sa={command:`browser-family`,describe:`Operations for http.ases.browser-family`,builder:e=>e.command(xa).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var Ca={method:`GET`,path:t=>e`/radar/http/top/ases/device_type/${t.device_type}`,query:[`limit`,`name`,`dateRange`,`dateStart`,`dateEnd`,`asn`,`location`,`continent`,`geoId`,`botClass`,`httpProtocol`,`httpVersion`,`ipVersion`,`os`,`tlsVersion`,`browserFamily`,`format`],errors:{404:`NotFoundError`}};function wa(e){return e.usage(`$0 radar http ases device-type get <device-type>
|
|
187
|
-
|
|
188
|
-
Retrieves the top autonomous systems, by HTTP requests, of the requested device type.`).positional(`device-type`,{type:`string`,description:`Device type.`,demandOption:!0}).option(`limit`,{type:`number`,description:`Limits the number of objects returned in the response.`}).option(`name`,{type:`string`,description:`Array of names used to label the series in the response.`}).option(`date-range`,{type:`string`,description:"Filters results by relative date range ending at the current time, with each value producing a separate series. Use `<n>d` for days (up to `364d`) or `<n>w` for weeks (up to `52w`). Append `control` to request the equivalent previous period for comparison: the comparison window is shifted back by the current window's length rounded up to a whole number of weeks, so it keeps the same weekday alignment and does not overlap the current window (e.g. `7dcontrol` covers days -14 to -7, `10dcontrol` covers days -24 to -14). For example, pass `7d` and `7dcontrol` to compare this week with the previous week. All series must resolve to the same duration as the main series; relative ranges (including `control`) satisfy this automatically. Use this parameter or set specific start and end dates (`dateStart` and `dateEnd` parameters)."}).option(`date-start`,{type:`string`,description:"Start of the date range. Alternative to `dateRange`; provide together with `dateEnd`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`date-end`,{type:`string`,description:"End of the date range (inclusive). Alternative to `dateRange`; provide together with `dateStart`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`asn`,{type:`string`,description:"Filters results by Autonomous System. Specify one or more Autonomous System Numbers (ASNs) as a comma-separated list. Prefix with `-` to exclude ASNs from results. For example, `-174, 3356` excludes results from AS174, but includes results from AS3356."}).option(`location`,{type:`string`,description:"Filters results by location. Specify a comma-separated list of alpha-2 codes. Prefix with `-` to exclude locations from results. For example, `-US,PT` excludes results from the US, but includes results from PT."}).option(`continent`,{type:`string`,description:"Filters results by continent. Specify a comma-separated list of alpha-2 codes. Prefix with `-` to exclude continents from results. For example, `-EU,NA` excludes results from EU, but includes results from NA."}).option(`geo-id`,{type:`string`,description:"Filters results by Geolocation. Specify a comma-separated list of GeoNames IDs. Prefix with `-` to exclude geoIds from results. For example, `-2267056,360689` excludes results from the 2267056 (Lisbon), but includes results from 5128638 (New York)."}).option(`bot-class`,{type:`string`,description:`Filters results by bot class. Refer to [Bot classes](https://developers.cloudflare.com/radar/concepts/bot-classes/).`}).option(`http-protocol`,{type:`string`,description:`Filters results by HTTP protocol (HTTP vs. HTTPS).`}).option(`http-version`,{type:`string`,description:`Filters results by HTTP version.`}).option(`ip-version`,{type:`string`,description:`Filters results by IP version (Ipv4 vs. IPv6).`}).option(`os`,{type:`string`,description:`Filters results by operating system.`}).option(`tls-version`,{type:`string`,description:`Filters results by TLS version.`}).option(`browser-family`,{type:`string`,description:`Filters results by browser family.`}).option(`format`,{type:`string`,description:`Format in which results will be returned.`,choices:[`JSON`,`CSV`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const Ta={command:`get <device-type>`,describe:`Get top ASes by HTTP requests for a device type`,builder:wa,handler:async e=>a({command:`radar http ases device-type get`,classification:{safeFlags:[`format`,`dry-run`]}},e,async()=>{let a={limit:e.limit,name:e.name,dateRange:e[`date-range`],dateStart:e[`date-start`],dateEnd:e[`date-end`],asn:e.asn,location:e.location,continent:e.continent,geoId:e[`geo-id`],botClass:e[`bot-class`],httpProtocol:e[`http-protocol`],httpVersion:e[`http-version`],ipVersion:e[`ip-version`],os:e.os,tlsVersion:e[`tls-version`],browserFamily:e[`browser-family`],format:e.format};if(e.dryRun){r({command:`cf radar http ases device-type get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/radar/http/top/ases/device_type/${e[`device-type`]==null?`<device-type>`:encodeURIComponent(String(e[`device-type`]))}`,pathParams:{"device-type":String(e[`device-type`]??``)},query:a,bodyKind:`none`});return}let o=await t(e),s=await i(`Loading`,async()=>o.send(Ca,{device_type:e[`device-type`],...a}));n(s,{successLabel:`Loaded`})})},Ea={command:`device-type`,describe:`Operations for http.ases.device-type`,builder:e=>e.command(Ta).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var Da={method:`GET`,path:()=>`/radar/http/top/ases`,query:[`limit`,`name`,`dateRange`,`dateStart`,`dateEnd`,`asn`,`location`,`continent`,`geoId`,`botClass`,`deviceType`,`httpProtocol`,`httpVersion`,`ipVersion`,`os`,`tlsVersion`,`browserFamily`,`format`],errors:{404:`NotFoundError`}};function Oa(e){return e.usage(`$0 radar http ases get
|
|
189
|
-
|
|
190
|
-
Retrieves the top autonomous systems by HTTP requests.`).option(`limit`,{type:`number`,description:`Limits the number of objects returned in the response.`}).option(`name`,{type:`string`,description:`Array of names used to label the series in the response.`}).option(`date-range`,{type:`string`,description:"Filters results by relative date range ending at the current time, with each value producing a separate series. Use `<n>d` for days (up to `364d`) or `<n>w` for weeks (up to `52w`). Append `control` to request the equivalent previous period for comparison: the comparison window is shifted back by the current window's length rounded up to a whole number of weeks, so it keeps the same weekday alignment and does not overlap the current window (e.g. `7dcontrol` covers days -14 to -7, `10dcontrol` covers days -24 to -14). For example, pass `7d` and `7dcontrol` to compare this week with the previous week. All series must resolve to the same duration as the main series; relative ranges (including `control`) satisfy this automatically. Use this parameter or set specific start and end dates (`dateStart` and `dateEnd` parameters)."}).option(`date-start`,{type:`string`,description:"Start of the date range. Alternative to `dateRange`; provide together with `dateEnd`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`date-end`,{type:`string`,description:"End of the date range (inclusive). Alternative to `dateRange`; provide together with `dateStart`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`asn`,{type:`string`,description:"Filters results by Autonomous System. Specify one or more Autonomous System Numbers (ASNs) as a comma-separated list. Prefix with `-` to exclude ASNs from results. For example, `-174, 3356` excludes results from AS174, but includes results from AS3356."}).option(`location`,{type:`string`,description:"Filters results by location. Specify a comma-separated list of alpha-2 codes. Prefix with `-` to exclude locations from results. For example, `-US,PT` excludes results from the US, but includes results from PT."}).option(`continent`,{type:`string`,description:"Filters results by continent. Specify a comma-separated list of alpha-2 codes. Prefix with `-` to exclude continents from results. For example, `-EU,NA` excludes results from EU, but includes results from NA."}).option(`geo-id`,{type:`string`,description:"Filters results by Geolocation. Specify a comma-separated list of GeoNames IDs. Prefix with `-` to exclude geoIds from results. For example, `-2267056,360689` excludes results from the 2267056 (Lisbon), but includes results from 5128638 (New York)."}).option(`bot-class`,{type:`string`,description:`Filters results by bot class. Refer to [Bot classes](https://developers.cloudflare.com/radar/concepts/bot-classes/).`}).option(`device-type`,{type:`string`,description:`Filters results by device type.`}).option(`http-protocol`,{type:`string`,description:`Filters results by HTTP protocol (HTTP vs. HTTPS).`}).option(`http-version`,{type:`string`,description:`Filters results by HTTP version.`}).option(`ip-version`,{type:`string`,description:`Filters results by IP version (Ipv4 vs. IPv6).`}).option(`os`,{type:`string`,description:`Filters results by operating system.`}).option(`tls-version`,{type:`string`,description:`Filters results by TLS version.`}).option(`browser-family`,{type:`string`,description:`Filters results by browser family.`}).option(`format`,{type:`string`,description:`Format in which results will be returned.`,choices:[`JSON`,`CSV`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const ka={command:`get`,describe:`Get top ASes by HTTP requests`,builder:Oa,handler:async e=>a({command:`radar http ases get`,classification:{safeFlags:[`format`,`dry-run`]}},e,async()=>{let a={limit:e.limit,name:e.name,dateRange:e[`date-range`],dateStart:e[`date-start`],dateEnd:e[`date-end`],asn:e.asn,location:e.location,continent:e.continent,geoId:e[`geo-id`],botClass:e[`bot-class`],deviceType:e[`device-type`],httpProtocol:e[`http-protocol`],httpVersion:e[`http-version`],ipVersion:e[`ip-version`],os:e.os,tlsVersion:e[`tls-version`],browserFamily:e[`browser-family`],format:e.format};if(e.dryRun){r({command:`cf radar http ases get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/radar/http/top/ases`,pathParams:{},query:a,bodyKind:`none`});return}let o=await t(e),s=await i(`Loading`,async()=>o.send(Da,a));n(s,{successLabel:`Loaded`})})};var Aa={method:`GET`,path:t=>e`/radar/http/top/ases/http_version/${t.http_version}`,query:[`limit`,`name`,`dateRange`,`dateStart`,`dateEnd`,`asn`,`location`,`continent`,`geoId`,`botClass`,`deviceType`,`httpProtocol`,`ipVersion`,`os`,`tlsVersion`,`browserFamily`,`format`],errors:{404:`NotFoundError`}};function ja(e){return e.usage(`$0 radar http ases http-method get <http-version>
|
|
191
|
-
|
|
192
|
-
Retrieves the top autonomous systems, by HTTP requests, of the requested HTTP version.`).positional(`http-version`,{type:`string`,description:`HTTP version.`,demandOption:!0}).option(`limit`,{type:`number`,description:`Limits the number of objects returned in the response.`}).option(`name`,{type:`string`,description:`Array of names used to label the series in the response.`}).option(`date-range`,{type:`string`,description:"Filters results by relative date range ending at the current time, with each value producing a separate series. Use `<n>d` for days (up to `364d`) or `<n>w` for weeks (up to `52w`). Append `control` to request the equivalent previous period for comparison: the comparison window is shifted back by the current window's length rounded up to a whole number of weeks, so it keeps the same weekday alignment and does not overlap the current window (e.g. `7dcontrol` covers days -14 to -7, `10dcontrol` covers days -24 to -14). For example, pass `7d` and `7dcontrol` to compare this week with the previous week. All series must resolve to the same duration as the main series; relative ranges (including `control`) satisfy this automatically. Use this parameter or set specific start and end dates (`dateStart` and `dateEnd` parameters)."}).option(`date-start`,{type:`string`,description:"Start of the date range. Alternative to `dateRange`; provide together with `dateEnd`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`date-end`,{type:`string`,description:"End of the date range (inclusive). Alternative to `dateRange`; provide together with `dateStart`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`asn`,{type:`string`,description:"Filters results by Autonomous System. Specify one or more Autonomous System Numbers (ASNs) as a comma-separated list. Prefix with `-` to exclude ASNs from results. For example, `-174, 3356` excludes results from AS174, but includes results from AS3356."}).option(`location`,{type:`string`,description:"Filters results by location. Specify a comma-separated list of alpha-2 codes. Prefix with `-` to exclude locations from results. For example, `-US,PT` excludes results from the US, but includes results from PT."}).option(`continent`,{type:`string`,description:"Filters results by continent. Specify a comma-separated list of alpha-2 codes. Prefix with `-` to exclude continents from results. For example, `-EU,NA` excludes results from EU, but includes results from NA."}).option(`geo-id`,{type:`string`,description:"Filters results by Geolocation. Specify a comma-separated list of GeoNames IDs. Prefix with `-` to exclude geoIds from results. For example, `-2267056,360689` excludes results from the 2267056 (Lisbon), but includes results from 5128638 (New York)."}).option(`bot-class`,{type:`string`,description:`Filters results by bot class. Refer to [Bot classes](https://developers.cloudflare.com/radar/concepts/bot-classes/).`}).option(`device-type`,{type:`string`,description:`Filters results by device type.`}).option(`http-protocol`,{type:`string`,description:`Filters results by HTTP protocol (HTTP vs. HTTPS).`}).option(`ip-version`,{type:`string`,description:`Filters results by IP version (Ipv4 vs. IPv6).`}).option(`os`,{type:`string`,description:`Filters results by operating system.`}).option(`tls-version`,{type:`string`,description:`Filters results by TLS version.`}).option(`browser-family`,{type:`string`,description:`Filters results by browser family.`}).option(`format`,{type:`string`,description:`Format in which results will be returned.`,choices:[`JSON`,`CSV`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const Ma={command:`get <http-version>`,describe:`Get top ASes by HTTP requests for an HTTP version`,builder:ja,handler:async e=>a({command:`radar http ases http-method get`,classification:{safeFlags:[`format`,`dry-run`]}},e,async()=>{let a={limit:e.limit,name:e.name,dateRange:e[`date-range`],dateStart:e[`date-start`],dateEnd:e[`date-end`],asn:e.asn,location:e.location,continent:e.continent,geoId:e[`geo-id`],botClass:e[`bot-class`],deviceType:e[`device-type`],httpProtocol:e[`http-protocol`],ipVersion:e[`ip-version`],os:e.os,tlsVersion:e[`tls-version`],browserFamily:e[`browser-family`],format:e.format};if(e.dryRun){r({command:`cf radar http ases http-method get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/radar/http/top/ases/http_version/${e[`http-version`]==null?`<http-version>`:encodeURIComponent(String(e[`http-version`]))}`,pathParams:{"http-version":String(e[`http-version`]??``)},query:a,bodyKind:`none`});return}let o=await t(e),s=await i(`Loading`,async()=>o.send(Aa,{http_version:e[`http-version`],...a}));n(s,{successLabel:`Loaded`})})},Na={command:`http-method`,describe:`Operations for http.ases.http-method`,builder:e=>e.command(Ma).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var Pa={method:`GET`,path:t=>e`/radar/http/top/ases/http_protocol/${t.http_protocol}`,query:[`limit`,`name`,`dateRange`,`dateStart`,`dateEnd`,`asn`,`location`,`continent`,`geoId`,`botClass`,`deviceType`,`httpVersion`,`ipVersion`,`os`,`tlsVersion`,`browserFamily`,`format`],errors:{404:`NotFoundError`}};function Fa(e){return e.usage(`$0 radar http ases http-protocol get <http-protocol>
|
|
193
|
-
|
|
194
|
-
Retrieves the top autonomous systems, by HTTP requests, of the requested HTTP protocol.`).positional(`http-protocol`,{type:`string`,description:`HTTP protocol (HTTP vs. HTTPS).`,demandOption:!0}).option(`limit`,{type:`number`,description:`Limits the number of objects returned in the response.`}).option(`name`,{type:`string`,description:`Array of names used to label the series in the response.`}).option(`date-range`,{type:`string`,description:"Filters results by relative date range ending at the current time, with each value producing a separate series. Use `<n>d` for days (up to `364d`) or `<n>w` for weeks (up to `52w`). Append `control` to request the equivalent previous period for comparison: the comparison window is shifted back by the current window's length rounded up to a whole number of weeks, so it keeps the same weekday alignment and does not overlap the current window (e.g. `7dcontrol` covers days -14 to -7, `10dcontrol` covers days -24 to -14). For example, pass `7d` and `7dcontrol` to compare this week with the previous week. All series must resolve to the same duration as the main series; relative ranges (including `control`) satisfy this automatically. Use this parameter or set specific start and end dates (`dateStart` and `dateEnd` parameters)."}).option(`date-start`,{type:`string`,description:"Start of the date range. Alternative to `dateRange`; provide together with `dateEnd`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`date-end`,{type:`string`,description:"End of the date range (inclusive). Alternative to `dateRange`; provide together with `dateStart`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`asn`,{type:`string`,description:"Filters results by Autonomous System. Specify one or more Autonomous System Numbers (ASNs) as a comma-separated list. Prefix with `-` to exclude ASNs from results. For example, `-174, 3356` excludes results from AS174, but includes results from AS3356."}).option(`location`,{type:`string`,description:"Filters results by location. Specify a comma-separated list of alpha-2 codes. Prefix with `-` to exclude locations from results. For example, `-US,PT` excludes results from the US, but includes results from PT."}).option(`continent`,{type:`string`,description:"Filters results by continent. Specify a comma-separated list of alpha-2 codes. Prefix with `-` to exclude continents from results. For example, `-EU,NA` excludes results from EU, but includes results from NA."}).option(`geo-id`,{type:`string`,description:"Filters results by Geolocation. Specify a comma-separated list of GeoNames IDs. Prefix with `-` to exclude geoIds from results. For example, `-2267056,360689` excludes results from the 2267056 (Lisbon), but includes results from 5128638 (New York)."}).option(`bot-class`,{type:`string`,description:`Filters results by bot class. Refer to [Bot classes](https://developers.cloudflare.com/radar/concepts/bot-classes/).`}).option(`device-type`,{type:`string`,description:`Filters results by device type.`}).option(`http-version`,{type:`string`,description:`Filters results by HTTP version.`}).option(`ip-version`,{type:`string`,description:`Filters results by IP version (Ipv4 vs. IPv6).`}).option(`os`,{type:`string`,description:`Filters results by operating system.`}).option(`tls-version`,{type:`string`,description:`Filters results by TLS version.`}).option(`browser-family`,{type:`string`,description:`Filters results by browser family.`}).option(`format`,{type:`string`,description:`Format in which results will be returned.`,choices:[`JSON`,`CSV`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const Ia={command:`get <http-protocol>`,describe:`Get top ASes by HTTP requests for an HTTP protocol`,builder:Fa,handler:async e=>a({command:`radar http ases http-protocol get`,classification:{safeFlags:[`format`,`dry-run`]}},e,async()=>{let a={limit:e.limit,name:e.name,dateRange:e[`date-range`],dateStart:e[`date-start`],dateEnd:e[`date-end`],asn:e.asn,location:e.location,continent:e.continent,geoId:e[`geo-id`],botClass:e[`bot-class`],deviceType:e[`device-type`],httpVersion:e[`http-version`],ipVersion:e[`ip-version`],os:e.os,tlsVersion:e[`tls-version`],browserFamily:e[`browser-family`],format:e.format};if(e.dryRun){r({command:`cf radar http ases http-protocol get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/radar/http/top/ases/http_protocol/${e[`http-protocol`]==null?`<http-protocol>`:encodeURIComponent(String(e[`http-protocol`]))}`,pathParams:{"http-protocol":String(e[`http-protocol`]??``)},query:a,bodyKind:`none`});return}let o=await t(e),s=await i(`Loading`,async()=>o.send(Pa,{http_protocol:e[`http-protocol`],...a}));n(s,{successLabel:`Loaded`})})},La={command:`http-protocol`,describe:`Operations for http.ases.http-protocol`,builder:e=>e.command(Ia).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var Ra={method:`GET`,path:t=>e`/radar/http/top/ases/ip_version/${t.ip_version}`,query:[`limit`,`name`,`dateRange`,`dateStart`,`dateEnd`,`asn`,`location`,`continent`,`geoId`,`botClass`,`deviceType`,`httpProtocol`,`httpVersion`,`os`,`tlsVersion`,`browserFamily`,`format`],errors:{404:`NotFoundError`}};function za(e){return e.usage(`$0 radar http ases ip-version get <ip-version>
|
|
195
|
-
|
|
196
|
-
Retrieves the top autonomous systems, by HTTP requests, of the requested IP version.`).positional(`ip-version`,{type:`string`,description:`IP version.`,demandOption:!0}).option(`limit`,{type:`number`,description:`Limits the number of objects returned in the response.`}).option(`name`,{type:`string`,description:`Array of names used to label the series in the response.`}).option(`date-range`,{type:`string`,description:"Filters results by relative date range ending at the current time, with each value producing a separate series. Use `<n>d` for days (up to `364d`) or `<n>w` for weeks (up to `52w`). Append `control` to request the equivalent previous period for comparison: the comparison window is shifted back by the current window's length rounded up to a whole number of weeks, so it keeps the same weekday alignment and does not overlap the current window (e.g. `7dcontrol` covers days -14 to -7, `10dcontrol` covers days -24 to -14). For example, pass `7d` and `7dcontrol` to compare this week with the previous week. All series must resolve to the same duration as the main series; relative ranges (including `control`) satisfy this automatically. Use this parameter or set specific start and end dates (`dateStart` and `dateEnd` parameters)."}).option(`date-start`,{type:`string`,description:"Start of the date range. Alternative to `dateRange`; provide together with `dateEnd`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`date-end`,{type:`string`,description:"End of the date range (inclusive). Alternative to `dateRange`; provide together with `dateStart`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`asn`,{type:`string`,description:"Filters results by Autonomous System. Specify one or more Autonomous System Numbers (ASNs) as a comma-separated list. Prefix with `-` to exclude ASNs from results. For example, `-174, 3356` excludes results from AS174, but includes results from AS3356."}).option(`location`,{type:`string`,description:"Filters results by location. Specify a comma-separated list of alpha-2 codes. Prefix with `-` to exclude locations from results. For example, `-US,PT` excludes results from the US, but includes results from PT."}).option(`continent`,{type:`string`,description:"Filters results by continent. Specify a comma-separated list of alpha-2 codes. Prefix with `-` to exclude continents from results. For example, `-EU,NA` excludes results from EU, but includes results from NA."}).option(`geo-id`,{type:`string`,description:"Filters results by Geolocation. Specify a comma-separated list of GeoNames IDs. Prefix with `-` to exclude geoIds from results. For example, `-2267056,360689` excludes results from the 2267056 (Lisbon), but includes results from 5128638 (New York)."}).option(`bot-class`,{type:`string`,description:`Filters results by bot class. Refer to [Bot classes](https://developers.cloudflare.com/radar/concepts/bot-classes/).`}).option(`device-type`,{type:`string`,description:`Filters results by device type.`}).option(`http-protocol`,{type:`string`,description:`Filters results by HTTP protocol (HTTP vs. HTTPS).`}).option(`http-version`,{type:`string`,description:`Filters results by HTTP version.`}).option(`os`,{type:`string`,description:`Filters results by operating system.`}).option(`tls-version`,{type:`string`,description:`Filters results by TLS version.`}).option(`browser-family`,{type:`string`,description:`Filters results by browser family.`}).option(`format`,{type:`string`,description:`Format in which results will be returned.`,choices:[`JSON`,`CSV`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const Ba={command:`get <ip-version>`,describe:`Get top ASes by HTTP requests for an IP version`,builder:za,handler:async e=>a({command:`radar http ases ip-version get`,classification:{safeFlags:[`format`,`dry-run`]}},e,async()=>{let a={limit:e.limit,name:e.name,dateRange:e[`date-range`],dateStart:e[`date-start`],dateEnd:e[`date-end`],asn:e.asn,location:e.location,continent:e.continent,geoId:e[`geo-id`],botClass:e[`bot-class`],deviceType:e[`device-type`],httpProtocol:e[`http-protocol`],httpVersion:e[`http-version`],os:e.os,tlsVersion:e[`tls-version`],browserFamily:e[`browser-family`],format:e.format};if(e.dryRun){r({command:`cf radar http ases ip-version get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/radar/http/top/ases/ip_version/${e[`ip-version`]==null?`<ip-version>`:encodeURIComponent(String(e[`ip-version`]))}`,pathParams:{"ip-version":String(e[`ip-version`]??``)},query:a,bodyKind:`none`});return}let o=await t(e),s=await i(`Loading`,async()=>o.send(Ra,{ip_version:e[`ip-version`],...a}));n(s,{successLabel:`Loaded`})})},Va={command:`ip-version`,describe:`Operations for http.ases.ip-version`,builder:e=>e.command(Ba).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var Ha={method:`GET`,path:t=>e`/radar/http/top/ases/os/${t.os}`,query:[`limit`,`name`,`dateRange`,`dateStart`,`dateEnd`,`asn`,`location`,`continent`,`geoId`,`botClass`,`deviceType`,`httpProtocol`,`httpVersion`,`ipVersion`,`tlsVersion`,`browserFamily`,`format`],errors:{404:`NotFoundError`}};function Ua(e){return e.usage(`$0 radar http ases os get <os>
|
|
197
|
-
|
|
198
|
-
Retrieves the top autonomous systems, by HTTP requests, of the requested operating system.`).positional(`os`,{type:`string`,description:`Operating system.`,demandOption:!0}).option(`limit`,{type:`number`,description:`Limits the number of objects returned in the response.`}).option(`name`,{type:`string`,description:`Array of names used to label the series in the response.`}).option(`date-range`,{type:`string`,description:"Filters results by relative date range ending at the current time, with each value producing a separate series. Use `<n>d` for days (up to `364d`) or `<n>w` for weeks (up to `52w`). Append `control` to request the equivalent previous period for comparison: the comparison window is shifted back by the current window's length rounded up to a whole number of weeks, so it keeps the same weekday alignment and does not overlap the current window (e.g. `7dcontrol` covers days -14 to -7, `10dcontrol` covers days -24 to -14). For example, pass `7d` and `7dcontrol` to compare this week with the previous week. All series must resolve to the same duration as the main series; relative ranges (including `control`) satisfy this automatically. Use this parameter or set specific start and end dates (`dateStart` and `dateEnd` parameters)."}).option(`date-start`,{type:`string`,description:"Start of the date range. Alternative to `dateRange`; provide together with `dateEnd`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`date-end`,{type:`string`,description:"End of the date range (inclusive). Alternative to `dateRange`; provide together with `dateStart`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`asn`,{type:`string`,description:"Filters results by Autonomous System. Specify one or more Autonomous System Numbers (ASNs) as a comma-separated list. Prefix with `-` to exclude ASNs from results. For example, `-174, 3356` excludes results from AS174, but includes results from AS3356."}).option(`location`,{type:`string`,description:"Filters results by location. Specify a comma-separated list of alpha-2 codes. Prefix with `-` to exclude locations from results. For example, `-US,PT` excludes results from the US, but includes results from PT."}).option(`continent`,{type:`string`,description:"Filters results by continent. Specify a comma-separated list of alpha-2 codes. Prefix with `-` to exclude continents from results. For example, `-EU,NA` excludes results from EU, but includes results from NA."}).option(`geo-id`,{type:`string`,description:"Filters results by Geolocation. Specify a comma-separated list of GeoNames IDs. Prefix with `-` to exclude geoIds from results. For example, `-2267056,360689` excludes results from the 2267056 (Lisbon), but includes results from 5128638 (New York)."}).option(`bot-class`,{type:`string`,description:`Filters results by bot class. Refer to [Bot classes](https://developers.cloudflare.com/radar/concepts/bot-classes/).`}).option(`device-type`,{type:`string`,description:`Filters results by device type.`}).option(`http-protocol`,{type:`string`,description:`Filters results by HTTP protocol (HTTP vs. HTTPS).`}).option(`http-version`,{type:`string`,description:`Filters results by HTTP version.`}).option(`ip-version`,{type:`string`,description:`Filters results by IP version (Ipv4 vs. IPv6).`}).option(`tls-version`,{type:`string`,description:`Filters results by TLS version.`}).option(`browser-family`,{type:`string`,description:`Filters results by browser family.`}).option(`format`,{type:`string`,description:`Format in which results will be returned.`,choices:[`JSON`,`CSV`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const Wa={command:`get <os>`,describe:`Get top ASes by HTTP requests for an OS`,builder:Ua,handler:async e=>a({command:`radar http ases os get`,classification:{safeFlags:[`format`,`dry-run`]}},e,async()=>{let a={limit:e.limit,name:e.name,dateRange:e[`date-range`],dateStart:e[`date-start`],dateEnd:e[`date-end`],asn:e.asn,location:e.location,continent:e.continent,geoId:e[`geo-id`],botClass:e[`bot-class`],deviceType:e[`device-type`],httpProtocol:e[`http-protocol`],httpVersion:e[`http-version`],ipVersion:e[`ip-version`],tlsVersion:e[`tls-version`],browserFamily:e[`browser-family`],format:e.format};if(e.dryRun){r({command:`cf radar http ases os get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/radar/http/top/ases/os/${e.os==null?`<os>`:encodeURIComponent(String(e.os))}`,pathParams:{os:String(e.os??``)},query:a,bodyKind:`none`});return}let o=await t(e),s=await i(`Loading`,async()=>o.send(Ha,{os:e.os,...a}));n(s,{successLabel:`Loaded`})})},Ga={command:`os`,describe:`Operations for http.ases.os`,builder:e=>e.command(Wa).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var Ka={method:`GET`,path:t=>e`/radar/http/top/ases/tls_version/${t.tls_version}`,query:[`limit`,`name`,`dateRange`,`dateStart`,`dateEnd`,`asn`,`location`,`continent`,`geoId`,`botClass`,`deviceType`,`httpProtocol`,`httpVersion`,`ipVersion`,`os`,`browserFamily`,`format`],errors:{404:`NotFoundError`}};function qa(e){return e.usage(`$0 radar http ases tls-version get <tls-version>
|
|
199
|
-
|
|
200
|
-
Retrieves the top autonomous systems, by HTTP requests, of the requested TLS protocol version.`).positional(`tls-version`,{type:`string`,description:`TLS version.`,demandOption:!0}).option(`limit`,{type:`number`,description:`Limits the number of objects returned in the response.`}).option(`name`,{type:`string`,description:`Array of names used to label the series in the response.`}).option(`date-range`,{type:`string`,description:"Filters results by relative date range ending at the current time, with each value producing a separate series. Use `<n>d` for days (up to `364d`) or `<n>w` for weeks (up to `52w`). Append `control` to request the equivalent previous period for comparison: the comparison window is shifted back by the current window's length rounded up to a whole number of weeks, so it keeps the same weekday alignment and does not overlap the current window (e.g. `7dcontrol` covers days -14 to -7, `10dcontrol` covers days -24 to -14). For example, pass `7d` and `7dcontrol` to compare this week with the previous week. All series must resolve to the same duration as the main series; relative ranges (including `control`) satisfy this automatically. Use this parameter or set specific start and end dates (`dateStart` and `dateEnd` parameters)."}).option(`date-start`,{type:`string`,description:"Start of the date range. Alternative to `dateRange`; provide together with `dateEnd`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`date-end`,{type:`string`,description:"End of the date range (inclusive). Alternative to `dateRange`; provide together with `dateStart`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`asn`,{type:`string`,description:"Filters results by Autonomous System. Specify one or more Autonomous System Numbers (ASNs) as a comma-separated list. Prefix with `-` to exclude ASNs from results. For example, `-174, 3356` excludes results from AS174, but includes results from AS3356."}).option(`location`,{type:`string`,description:"Filters results by location. Specify a comma-separated list of alpha-2 codes. Prefix with `-` to exclude locations from results. For example, `-US,PT` excludes results from the US, but includes results from PT."}).option(`continent`,{type:`string`,description:"Filters results by continent. Specify a comma-separated list of alpha-2 codes. Prefix with `-` to exclude continents from results. For example, `-EU,NA` excludes results from EU, but includes results from NA."}).option(`geo-id`,{type:`string`,description:"Filters results by Geolocation. Specify a comma-separated list of GeoNames IDs. Prefix with `-` to exclude geoIds from results. For example, `-2267056,360689` excludes results from the 2267056 (Lisbon), but includes results from 5128638 (New York)."}).option(`bot-class`,{type:`string`,description:`Filters results by bot class. Refer to [Bot classes](https://developers.cloudflare.com/radar/concepts/bot-classes/).`}).option(`device-type`,{type:`string`,description:`Filters results by device type.`}).option(`http-protocol`,{type:`string`,description:`Filters results by HTTP protocol (HTTP vs. HTTPS).`}).option(`http-version`,{type:`string`,description:`Filters results by HTTP version.`}).option(`ip-version`,{type:`string`,description:`Filters results by IP version (Ipv4 vs. IPv6).`}).option(`os`,{type:`string`,description:`Filters results by operating system.`}).option(`browser-family`,{type:`string`,description:`Filters results by browser family.`}).option(`format`,{type:`string`,description:`Format in which results will be returned.`,choices:[`JSON`,`CSV`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const Ja={command:`get <tls-version>`,describe:`Get top ASes by HTTP requests for a TLS version`,builder:qa,handler:async e=>a({command:`radar http ases tls-version get`,classification:{safeFlags:[`format`,`dry-run`]}},e,async()=>{let a={limit:e.limit,name:e.name,dateRange:e[`date-range`],dateStart:e[`date-start`],dateEnd:e[`date-end`],asn:e.asn,location:e.location,continent:e.continent,geoId:e[`geo-id`],botClass:e[`bot-class`],deviceType:e[`device-type`],httpProtocol:e[`http-protocol`],httpVersion:e[`http-version`],ipVersion:e[`ip-version`],os:e.os,browserFamily:e[`browser-family`],format:e.format};if(e.dryRun){r({command:`cf radar http ases tls-version get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/radar/http/top/ases/tls_version/${e[`tls-version`]==null?`<tls-version>`:encodeURIComponent(String(e[`tls-version`]))}`,pathParams:{"tls-version":String(e[`tls-version`]??``)},query:a,bodyKind:`none`});return}let o=await t(e),s=await i(`Loading`,async()=>o.send(Ka,{tls_version:e[`tls-version`],...a}));n(s,{successLabel:`Loaded`})})},Ya={command:`tls-version`,describe:`Operations for http.ases.tls-version`,builder:e=>e.command(Ja).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},Xa={command:`ases`,describe:`Operations for http.ases`,builder:e=>e.command(ka).command(va).command(Sa).command(Ea).command(Na).command(La).command(Va).command(Ga).command(Ya).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var Za={method:`GET`,path:t=>e`/radar/http/top/locations/bot_class/${t.bot_class}`,query:[`limit`,`name`,`dateRange`,`dateStart`,`dateEnd`,`asn`,`location`,`continent`,`geoId`,`deviceType`,`httpProtocol`,`httpVersion`,`ipVersion`,`os`,`tlsVersion`,`browserFamily`,`format`],errors:{404:`NotFoundError`}};function Qa(e){return e.usage(`$0 radar http locations bot-class get <bot-class>
|
|
201
|
-
|
|
202
|
-
Retrieves the top locations, by HTTP requests, of the requested bot class.`).positional(`bot-class`,{type:`string`,description:`Bot class. Refer to [Bot classes](https://developers.cloudflare.com/radar/concepts/bot-classes/).`,demandOption:!0}).option(`limit`,{type:`number`,description:`Limits the number of objects returned in the response.`}).option(`name`,{type:`string`,description:`Array of names used to label the series in the response.`}).option(`date-range`,{type:`string`,description:"Filters results by relative date range ending at the current time, with each value producing a separate series. Use `<n>d` for days (up to `364d`) or `<n>w` for weeks (up to `52w`). Append `control` to request the equivalent previous period for comparison: the comparison window is shifted back by the current window's length rounded up to a whole number of weeks, so it keeps the same weekday alignment and does not overlap the current window (e.g. `7dcontrol` covers days -14 to -7, `10dcontrol` covers days -24 to -14). For example, pass `7d` and `7dcontrol` to compare this week with the previous week. All series must resolve to the same duration as the main series; relative ranges (including `control`) satisfy this automatically. Use this parameter or set specific start and end dates (`dateStart` and `dateEnd` parameters)."}).option(`date-start`,{type:`string`,description:"Start of the date range. Alternative to `dateRange`; provide together with `dateEnd`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`date-end`,{type:`string`,description:"End of the date range (inclusive). Alternative to `dateRange`; provide together with `dateStart`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`asn`,{type:`string`,description:"Filters results by Autonomous System. Specify one or more Autonomous System Numbers (ASNs) as a comma-separated list. Prefix with `-` to exclude ASNs from results. For example, `-174, 3356` excludes results from AS174, but includes results from AS3356."}).option(`location`,{type:`string`,description:"Filters results by location. Specify a comma-separated list of alpha-2 codes. Prefix with `-` to exclude locations from results. For example, `-US,PT` excludes results from the US, but includes results from PT."}).option(`continent`,{type:`string`,description:"Filters results by continent. Specify a comma-separated list of alpha-2 codes. Prefix with `-` to exclude continents from results. For example, `-EU,NA` excludes results from EU, but includes results from NA."}).option(`geo-id`,{type:`string`,description:"Filters results by Geolocation. Specify a comma-separated list of GeoNames IDs. Prefix with `-` to exclude geoIds from results. For example, `-2267056,360689` excludes results from the 2267056 (Lisbon), but includes results from 5128638 (New York)."}).option(`device-type`,{type:`string`,description:`Filters results by device type.`}).option(`http-protocol`,{type:`string`,description:`Filters results by HTTP protocol (HTTP vs. HTTPS).`}).option(`http-version`,{type:`string`,description:`Filters results by HTTP version.`}).option(`ip-version`,{type:`string`,description:`Filters results by IP version (Ipv4 vs. IPv6).`}).option(`os`,{type:`string`,description:`Filters results by operating system.`}).option(`tls-version`,{type:`string`,description:`Filters results by TLS version.`}).option(`browser-family`,{type:`string`,description:`Filters results by browser family.`}).option(`format`,{type:`string`,description:`Format in which results will be returned.`,choices:[`JSON`,`CSV`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const $a={command:`get <bot-class>`,describe:`Get top locations by HTTP requests for a bot class`,builder:Qa,handler:async e=>a({command:`radar http locations bot-class get`,classification:{safeFlags:[`format`,`dry-run`]}},e,async()=>{let a={limit:e.limit,name:e.name,dateRange:e[`date-range`],dateStart:e[`date-start`],dateEnd:e[`date-end`],asn:e.asn,location:e.location,continent:e.continent,geoId:e[`geo-id`],deviceType:e[`device-type`],httpProtocol:e[`http-protocol`],httpVersion:e[`http-version`],ipVersion:e[`ip-version`],os:e.os,tlsVersion:e[`tls-version`],browserFamily:e[`browser-family`],format:e.format};if(e.dryRun){r({command:`cf radar http locations bot-class get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/radar/http/top/locations/bot_class/${e[`bot-class`]==null?`<bot-class>`:encodeURIComponent(String(e[`bot-class`]))}`,pathParams:{"bot-class":String(e[`bot-class`]??``)},query:a,bodyKind:`none`});return}let o=await t(e),s=await i(`Loading`,async()=>o.send(Za,{bot_class:e[`bot-class`],...a}));n(s,{successLabel:`Loaded`})})},eo={command:`bot-class`,describe:`Operations for http.locations.bot-class`,builder:e=>e.command($a).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var to={method:`GET`,path:t=>e`/radar/http/top/locations/browser_family/${t.browser_family}`,query:[`limit`,`name`,`dateRange`,`dateStart`,`dateEnd`,`asn`,`location`,`continent`,`geoId`,`botClass`,`deviceType`,`httpProtocol`,`httpVersion`,`ipVersion`,`os`,`tlsVersion`,`format`],errors:{404:`NotFoundError`}};function no(e){return e.usage(`$0 radar http locations browser-family get <browser-family>
|
|
203
|
-
|
|
204
|
-
Retrieves the top locations, by HTTP requests, of the requested browser family.`).positional(`browser-family`,{type:`string`,description:`Browser family.`,demandOption:!0}).option(`limit`,{type:`number`,description:`Limits the number of objects returned in the response.`}).option(`name`,{type:`string`,description:`Array of names used to label the series in the response.`}).option(`date-range`,{type:`string`,description:"Filters results by relative date range ending at the current time, with each value producing a separate series. Use `<n>d` for days (up to `364d`) or `<n>w` for weeks (up to `52w`). Append `control` to request the equivalent previous period for comparison: the comparison window is shifted back by the current window's length rounded up to a whole number of weeks, so it keeps the same weekday alignment and does not overlap the current window (e.g. `7dcontrol` covers days -14 to -7, `10dcontrol` covers days -24 to -14). For example, pass `7d` and `7dcontrol` to compare this week with the previous week. All series must resolve to the same duration as the main series; relative ranges (including `control`) satisfy this automatically. Use this parameter or set specific start and end dates (`dateStart` and `dateEnd` parameters)."}).option(`date-start`,{type:`string`,description:"Start of the date range. Alternative to `dateRange`; provide together with `dateEnd`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`date-end`,{type:`string`,description:"End of the date range (inclusive). Alternative to `dateRange`; provide together with `dateStart`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`asn`,{type:`string`,description:"Filters results by Autonomous System. Specify one or more Autonomous System Numbers (ASNs) as a comma-separated list. Prefix with `-` to exclude ASNs from results. For example, `-174, 3356` excludes results from AS174, but includes results from AS3356."}).option(`location`,{type:`string`,description:"Filters results by location. Specify a comma-separated list of alpha-2 codes. Prefix with `-` to exclude locations from results. For example, `-US,PT` excludes results from the US, but includes results from PT."}).option(`continent`,{type:`string`,description:"Filters results by continent. Specify a comma-separated list of alpha-2 codes. Prefix with `-` to exclude continents from results. For example, `-EU,NA` excludes results from EU, but includes results from NA."}).option(`geo-id`,{type:`string`,description:"Filters results by Geolocation. Specify a comma-separated list of GeoNames IDs. Prefix with `-` to exclude geoIds from results. For example, `-2267056,360689` excludes results from the 2267056 (Lisbon), but includes results from 5128638 (New York)."}).option(`bot-class`,{type:`string`,description:`Filters results by bot class. Refer to [Bot classes](https://developers.cloudflare.com/radar/concepts/bot-classes/).`}).option(`device-type`,{type:`string`,description:`Filters results by device type.`}).option(`http-protocol`,{type:`string`,description:`Filters results by HTTP protocol (HTTP vs. HTTPS).`}).option(`http-version`,{type:`string`,description:`Filters results by HTTP version.`}).option(`ip-version`,{type:`string`,description:`Filters results by IP version (Ipv4 vs. IPv6).`}).option(`os`,{type:`string`,description:`Filters results by operating system.`}).option(`tls-version`,{type:`string`,description:`Filters results by TLS version.`}).option(`format`,{type:`string`,description:`Format in which results will be returned.`,choices:[`JSON`,`CSV`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const ro={command:`get <browser-family>`,describe:`Get top locations by HTTP requests for a browser family`,builder:no,handler:async e=>a({command:`radar http locations browser-family get`,classification:{safeFlags:[`format`,`dry-run`]}},e,async()=>{let a={limit:e.limit,name:e.name,dateRange:e[`date-range`],dateStart:e[`date-start`],dateEnd:e[`date-end`],asn:e.asn,location:e.location,continent:e.continent,geoId:e[`geo-id`],botClass:e[`bot-class`],deviceType:e[`device-type`],httpProtocol:e[`http-protocol`],httpVersion:e[`http-version`],ipVersion:e[`ip-version`],os:e.os,tlsVersion:e[`tls-version`],format:e.format};if(e.dryRun){r({command:`cf radar http locations browser-family get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/radar/http/top/locations/browser_family/${e[`browser-family`]==null?`<browser-family>`:encodeURIComponent(String(e[`browser-family`]))}`,pathParams:{"browser-family":String(e[`browser-family`]??``)},query:a,bodyKind:`none`});return}let o=await t(e),s=await i(`Loading`,async()=>o.send(to,{browser_family:e[`browser-family`],...a}));n(s,{successLabel:`Loaded`})})},io={command:`browser-family`,describe:`Operations for http.locations.browser-family`,builder:e=>e.command(ro).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var ao={method:`GET`,path:t=>e`/radar/http/top/locations/device_type/${t.device_type}`,query:[`limit`,`name`,`dateRange`,`dateStart`,`dateEnd`,`asn`,`location`,`continent`,`geoId`,`botClass`,`httpProtocol`,`httpVersion`,`ipVersion`,`os`,`tlsVersion`,`browserFamily`,`format`],errors:{404:`NotFoundError`}};function oo(e){return e.usage(`$0 radar http locations device-type get <device-type>
|
|
205
|
-
|
|
206
|
-
Retrieves the top locations, by HTTP requests, of the requested device type.`).positional(`device-type`,{type:`string`,description:`Device type.`,demandOption:!0}).option(`limit`,{type:`number`,description:`Limits the number of objects returned in the response.`}).option(`name`,{type:`string`,description:`Array of names used to label the series in the response.`}).option(`date-range`,{type:`string`,description:"Filters results by relative date range ending at the current time, with each value producing a separate series. Use `<n>d` for days (up to `364d`) or `<n>w` for weeks (up to `52w`). Append `control` to request the equivalent previous period for comparison: the comparison window is shifted back by the current window's length rounded up to a whole number of weeks, so it keeps the same weekday alignment and does not overlap the current window (e.g. `7dcontrol` covers days -14 to -7, `10dcontrol` covers days -24 to -14). For example, pass `7d` and `7dcontrol` to compare this week with the previous week. All series must resolve to the same duration as the main series; relative ranges (including `control`) satisfy this automatically. Use this parameter or set specific start and end dates (`dateStart` and `dateEnd` parameters)."}).option(`date-start`,{type:`string`,description:"Start of the date range. Alternative to `dateRange`; provide together with `dateEnd`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`date-end`,{type:`string`,description:"End of the date range (inclusive). Alternative to `dateRange`; provide together with `dateStart`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`asn`,{type:`string`,description:"Filters results by Autonomous System. Specify one or more Autonomous System Numbers (ASNs) as a comma-separated list. Prefix with `-` to exclude ASNs from results. For example, `-174, 3356` excludes results from AS174, but includes results from AS3356."}).option(`location`,{type:`string`,description:"Filters results by location. Specify a comma-separated list of alpha-2 codes. Prefix with `-` to exclude locations from results. For example, `-US,PT` excludes results from the US, but includes results from PT."}).option(`continent`,{type:`string`,description:"Filters results by continent. Specify a comma-separated list of alpha-2 codes. Prefix with `-` to exclude continents from results. For example, `-EU,NA` excludes results from EU, but includes results from NA."}).option(`geo-id`,{type:`string`,description:"Filters results by Geolocation. Specify a comma-separated list of GeoNames IDs. Prefix with `-` to exclude geoIds from results. For example, `-2267056,360689` excludes results from the 2267056 (Lisbon), but includes results from 5128638 (New York)."}).option(`bot-class`,{type:`string`,description:`Filters results by bot class. Refer to [Bot classes](https://developers.cloudflare.com/radar/concepts/bot-classes/).`}).option(`http-protocol`,{type:`string`,description:`Filters results by HTTP protocol (HTTP vs. HTTPS).`}).option(`http-version`,{type:`string`,description:`Filters results by HTTP version.`}).option(`ip-version`,{type:`string`,description:`Filters results by IP version (Ipv4 vs. IPv6).`}).option(`os`,{type:`string`,description:`Filters results by operating system.`}).option(`tls-version`,{type:`string`,description:`Filters results by TLS version.`}).option(`browser-family`,{type:`string`,description:`Filters results by browser family.`}).option(`format`,{type:`string`,description:`Format in which results will be returned.`,choices:[`JSON`,`CSV`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const so={command:`get <device-type>`,describe:`Get top locations by HTTP requests for a device type`,builder:oo,handler:async e=>a({command:`radar http locations device-type get`,classification:{safeFlags:[`format`,`dry-run`]}},e,async()=>{let a={limit:e.limit,name:e.name,dateRange:e[`date-range`],dateStart:e[`date-start`],dateEnd:e[`date-end`],asn:e.asn,location:e.location,continent:e.continent,geoId:e[`geo-id`],botClass:e[`bot-class`],httpProtocol:e[`http-protocol`],httpVersion:e[`http-version`],ipVersion:e[`ip-version`],os:e.os,tlsVersion:e[`tls-version`],browserFamily:e[`browser-family`],format:e.format};if(e.dryRun){r({command:`cf radar http locations device-type get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/radar/http/top/locations/device_type/${e[`device-type`]==null?`<device-type>`:encodeURIComponent(String(e[`device-type`]))}`,pathParams:{"device-type":String(e[`device-type`]??``)},query:a,bodyKind:`none`});return}let o=await t(e),s=await i(`Loading`,async()=>o.send(ao,{device_type:e[`device-type`],...a}));n(s,{successLabel:`Loaded`})})},co={command:`device-type`,describe:`Operations for http.locations.device-type`,builder:e=>e.command(so).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var lo={method:`GET`,path:()=>`/radar/http/top/locations`,query:[`limit`,`name`,`dateRange`,`dateStart`,`dateEnd`,`asn`,`location`,`continent`,`geoId`,`botClass`,`deviceType`,`httpProtocol`,`httpVersion`,`ipVersion`,`os`,`tlsVersion`,`browserFamily`,`format`],errors:{404:`NotFoundError`}};function uo(e){return e.usage(`$0 radar http locations get
|
|
207
|
-
|
|
208
|
-
Retrieves the top locations by HTTP requests.`).option(`limit`,{type:`number`,description:`Limits the number of objects returned in the response.`}).option(`name`,{type:`string`,description:`Array of names used to label the series in the response.`}).option(`date-range`,{type:`string`,description:"Filters results by relative date range ending at the current time, with each value producing a separate series. Use `<n>d` for days (up to `364d`) or `<n>w` for weeks (up to `52w`). Append `control` to request the equivalent previous period for comparison: the comparison window is shifted back by the current window's length rounded up to a whole number of weeks, so it keeps the same weekday alignment and does not overlap the current window (e.g. `7dcontrol` covers days -14 to -7, `10dcontrol` covers days -24 to -14). For example, pass `7d` and `7dcontrol` to compare this week with the previous week. All series must resolve to the same duration as the main series; relative ranges (including `control`) satisfy this automatically. Use this parameter or set specific start and end dates (`dateStart` and `dateEnd` parameters)."}).option(`date-start`,{type:`string`,description:"Start of the date range. Alternative to `dateRange`; provide together with `dateEnd`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`date-end`,{type:`string`,description:"End of the date range (inclusive). Alternative to `dateRange`; provide together with `dateStart`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`asn`,{type:`string`,description:"Filters results by Autonomous System. Specify one or more Autonomous System Numbers (ASNs) as a comma-separated list. Prefix with `-` to exclude ASNs from results. For example, `-174, 3356` excludes results from AS174, but includes results from AS3356."}).option(`location`,{type:`string`,description:"Filters results by location. Specify a comma-separated list of alpha-2 codes. Prefix with `-` to exclude locations from results. For example, `-US,PT` excludes results from the US, but includes results from PT."}).option(`continent`,{type:`string`,description:"Filters results by continent. Specify a comma-separated list of alpha-2 codes. Prefix with `-` to exclude continents from results. For example, `-EU,NA` excludes results from EU, but includes results from NA."}).option(`geo-id`,{type:`string`,description:"Filters results by Geolocation. Specify a comma-separated list of GeoNames IDs. Prefix with `-` to exclude geoIds from results. For example, `-2267056,360689` excludes results from the 2267056 (Lisbon), but includes results from 5128638 (New York)."}).option(`bot-class`,{type:`string`,description:`Filters results by bot class. Refer to [Bot classes](https://developers.cloudflare.com/radar/concepts/bot-classes/).`}).option(`device-type`,{type:`string`,description:`Filters results by device type.`}).option(`http-protocol`,{type:`string`,description:`Filters results by HTTP protocol (HTTP vs. HTTPS).`}).option(`http-version`,{type:`string`,description:`Filters results by HTTP version.`}).option(`ip-version`,{type:`string`,description:`Filters results by IP version (Ipv4 vs. IPv6).`}).option(`os`,{type:`string`,description:`Filters results by operating system.`}).option(`tls-version`,{type:`string`,description:`Filters results by TLS version.`}).option(`browser-family`,{type:`string`,description:`Filters results by browser family.`}).option(`format`,{type:`string`,description:`Format in which results will be returned.`,choices:[`JSON`,`CSV`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const fo={command:`get`,describe:`Get top locations by HTTP requests`,builder:uo,handler:async e=>a({command:`radar http locations get`,classification:{safeFlags:[`format`,`dry-run`]}},e,async()=>{let a={limit:e.limit,name:e.name,dateRange:e[`date-range`],dateStart:e[`date-start`],dateEnd:e[`date-end`],asn:e.asn,location:e.location,continent:e.continent,geoId:e[`geo-id`],botClass:e[`bot-class`],deviceType:e[`device-type`],httpProtocol:e[`http-protocol`],httpVersion:e[`http-version`],ipVersion:e[`ip-version`],os:e.os,tlsVersion:e[`tls-version`],browserFamily:e[`browser-family`],format:e.format};if(e.dryRun){r({command:`cf radar http locations get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/radar/http/top/locations`,pathParams:{},query:a,bodyKind:`none`});return}let o=await t(e),s=await i(`Loading`,async()=>o.send(lo,a));n(s,{successLabel:`Loaded`})})};var po={method:`GET`,path:t=>e`/radar/http/top/locations/http_version/${t.http_version}`,query:[`limit`,`name`,`dateRange`,`dateStart`,`dateEnd`,`asn`,`location`,`continent`,`geoId`,`botClass`,`deviceType`,`httpProtocol`,`ipVersion`,`os`,`tlsVersion`,`browserFamily`,`format`],errors:{404:`NotFoundError`}};function mo(e){return e.usage(`$0 radar http locations http-method get <http-version>
|
|
209
|
-
|
|
210
|
-
Retrieves the top locations, by HTTP requests, of the requested HTTP version.`).positional(`http-version`,{type:`string`,description:`HTTP version.`,demandOption:!0}).option(`limit`,{type:`number`,description:`Limits the number of objects returned in the response.`}).option(`name`,{type:`string`,description:`Array of names used to label the series in the response.`}).option(`date-range`,{type:`string`,description:"Filters results by relative date range ending at the current time, with each value producing a separate series. Use `<n>d` for days (up to `364d`) or `<n>w` for weeks (up to `52w`). Append `control` to request the equivalent previous period for comparison: the comparison window is shifted back by the current window's length rounded up to a whole number of weeks, so it keeps the same weekday alignment and does not overlap the current window (e.g. `7dcontrol` covers days -14 to -7, `10dcontrol` covers days -24 to -14). For example, pass `7d` and `7dcontrol` to compare this week with the previous week. All series must resolve to the same duration as the main series; relative ranges (including `control`) satisfy this automatically. Use this parameter or set specific start and end dates (`dateStart` and `dateEnd` parameters)."}).option(`date-start`,{type:`string`,description:"Start of the date range. Alternative to `dateRange`; provide together with `dateEnd`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`date-end`,{type:`string`,description:"End of the date range (inclusive). Alternative to `dateRange`; provide together with `dateStart`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`asn`,{type:`string`,description:"Filters results by Autonomous System. Specify one or more Autonomous System Numbers (ASNs) as a comma-separated list. Prefix with `-` to exclude ASNs from results. For example, `-174, 3356` excludes results from AS174, but includes results from AS3356."}).option(`location`,{type:`string`,description:"Filters results by location. Specify a comma-separated list of alpha-2 codes. Prefix with `-` to exclude locations from results. For example, `-US,PT` excludes results from the US, but includes results from PT."}).option(`continent`,{type:`string`,description:"Filters results by continent. Specify a comma-separated list of alpha-2 codes. Prefix with `-` to exclude continents from results. For example, `-EU,NA` excludes results from EU, but includes results from NA."}).option(`geo-id`,{type:`string`,description:"Filters results by Geolocation. Specify a comma-separated list of GeoNames IDs. Prefix with `-` to exclude geoIds from results. For example, `-2267056,360689` excludes results from the 2267056 (Lisbon), but includes results from 5128638 (New York)."}).option(`bot-class`,{type:`string`,description:`Filters results by bot class. Refer to [Bot classes](https://developers.cloudflare.com/radar/concepts/bot-classes/).`}).option(`device-type`,{type:`string`,description:`Filters results by device type.`}).option(`http-protocol`,{type:`string`,description:`Filters results by HTTP protocol (HTTP vs. HTTPS).`}).option(`ip-version`,{type:`string`,description:`Filters results by IP version (Ipv4 vs. IPv6).`}).option(`os`,{type:`string`,description:`Filters results by operating system.`}).option(`tls-version`,{type:`string`,description:`Filters results by TLS version.`}).option(`browser-family`,{type:`string`,description:`Filters results by browser family.`}).option(`format`,{type:`string`,description:`Format in which results will be returned.`,choices:[`JSON`,`CSV`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const ho={command:`get <http-version>`,describe:`Get top locations by HTTP requests for an HTTP version`,builder:mo,handler:async e=>a({command:`radar http locations http-method get`,classification:{safeFlags:[`format`,`dry-run`]}},e,async()=>{let a={limit:e.limit,name:e.name,dateRange:e[`date-range`],dateStart:e[`date-start`],dateEnd:e[`date-end`],asn:e.asn,location:e.location,continent:e.continent,geoId:e[`geo-id`],botClass:e[`bot-class`],deviceType:e[`device-type`],httpProtocol:e[`http-protocol`],ipVersion:e[`ip-version`],os:e.os,tlsVersion:e[`tls-version`],browserFamily:e[`browser-family`],format:e.format};if(e.dryRun){r({command:`cf radar http locations http-method get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/radar/http/top/locations/http_version/${e[`http-version`]==null?`<http-version>`:encodeURIComponent(String(e[`http-version`]))}`,pathParams:{"http-version":String(e[`http-version`]??``)},query:a,bodyKind:`none`});return}let o=await t(e),s=await i(`Loading`,async()=>o.send(po,{http_version:e[`http-version`],...a}));n(s,{successLabel:`Loaded`})})},go={command:`http-method`,describe:`Operations for http.locations.http-method`,builder:e=>e.command(ho).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var _o={method:`GET`,path:t=>e`/radar/http/top/locations/http_protocol/${t.http_protocol}`,query:[`limit`,`name`,`dateRange`,`dateStart`,`dateEnd`,`asn`,`location`,`continent`,`geoId`,`botClass`,`deviceType`,`httpVersion`,`ipVersion`,`os`,`tlsVersion`,`browserFamily`,`format`],errors:{404:`NotFoundError`}};function vo(e){return e.usage(`$0 radar http locations http-protocol get <http-protocol>
|
|
211
|
-
|
|
212
|
-
Retrieves the top locations, by HTTP requests, of the requested HTTP protocol.`).positional(`http-protocol`,{type:`string`,description:`HTTP protocol (HTTP vs. HTTPS).`,demandOption:!0}).option(`limit`,{type:`number`,description:`Limits the number of objects returned in the response.`}).option(`name`,{type:`string`,description:`Array of names used to label the series in the response.`}).option(`date-range`,{type:`string`,description:"Filters results by relative date range ending at the current time, with each value producing a separate series. Use `<n>d` for days (up to `364d`) or `<n>w` for weeks (up to `52w`). Append `control` to request the equivalent previous period for comparison: the comparison window is shifted back by the current window's length rounded up to a whole number of weeks, so it keeps the same weekday alignment and does not overlap the current window (e.g. `7dcontrol` covers days -14 to -7, `10dcontrol` covers days -24 to -14). For example, pass `7d` and `7dcontrol` to compare this week with the previous week. All series must resolve to the same duration as the main series; relative ranges (including `control`) satisfy this automatically. Use this parameter or set specific start and end dates (`dateStart` and `dateEnd` parameters)."}).option(`date-start`,{type:`string`,description:"Start of the date range. Alternative to `dateRange`; provide together with `dateEnd`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`date-end`,{type:`string`,description:"End of the date range (inclusive). Alternative to `dateRange`; provide together with `dateStart`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`asn`,{type:`string`,description:"Filters results by Autonomous System. Specify one or more Autonomous System Numbers (ASNs) as a comma-separated list. Prefix with `-` to exclude ASNs from results. For example, `-174, 3356` excludes results from AS174, but includes results from AS3356."}).option(`location`,{type:`string`,description:"Filters results by location. Specify a comma-separated list of alpha-2 codes. Prefix with `-` to exclude locations from results. For example, `-US,PT` excludes results from the US, but includes results from PT."}).option(`continent`,{type:`string`,description:"Filters results by continent. Specify a comma-separated list of alpha-2 codes. Prefix with `-` to exclude continents from results. For example, `-EU,NA` excludes results from EU, but includes results from NA."}).option(`geo-id`,{type:`string`,description:"Filters results by Geolocation. Specify a comma-separated list of GeoNames IDs. Prefix with `-` to exclude geoIds from results. For example, `-2267056,360689` excludes results from the 2267056 (Lisbon), but includes results from 5128638 (New York)."}).option(`bot-class`,{type:`string`,description:`Filters results by bot class. Refer to [Bot classes](https://developers.cloudflare.com/radar/concepts/bot-classes/).`}).option(`device-type`,{type:`string`,description:`Filters results by device type.`}).option(`http-version`,{type:`string`,description:`Filters results by HTTP version.`}).option(`ip-version`,{type:`string`,description:`Filters results by IP version (Ipv4 vs. IPv6).`}).option(`os`,{type:`string`,description:`Filters results by operating system.`}).option(`tls-version`,{type:`string`,description:`Filters results by TLS version.`}).option(`browser-family`,{type:`string`,description:`Filters results by browser family.`}).option(`format`,{type:`string`,description:`Format in which results will be returned.`,choices:[`JSON`,`CSV`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const yo={command:`get <http-protocol>`,describe:`Get top locations by HTTP requests for an HTTP protocol`,builder:vo,handler:async e=>a({command:`radar http locations http-protocol get`,classification:{safeFlags:[`format`,`dry-run`]}},e,async()=>{let a={limit:e.limit,name:e.name,dateRange:e[`date-range`],dateStart:e[`date-start`],dateEnd:e[`date-end`],asn:e.asn,location:e.location,continent:e.continent,geoId:e[`geo-id`],botClass:e[`bot-class`],deviceType:e[`device-type`],httpVersion:e[`http-version`],ipVersion:e[`ip-version`],os:e.os,tlsVersion:e[`tls-version`],browserFamily:e[`browser-family`],format:e.format};if(e.dryRun){r({command:`cf radar http locations http-protocol get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/radar/http/top/locations/http_protocol/${e[`http-protocol`]==null?`<http-protocol>`:encodeURIComponent(String(e[`http-protocol`]))}`,pathParams:{"http-protocol":String(e[`http-protocol`]??``)},query:a,bodyKind:`none`});return}let o=await t(e),s=await i(`Loading`,async()=>o.send(_o,{http_protocol:e[`http-protocol`],...a}));n(s,{successLabel:`Loaded`})})},bo={command:`http-protocol`,describe:`Operations for http.locations.http-protocol`,builder:e=>e.command(yo).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var xo={method:`GET`,path:t=>e`/radar/http/top/locations/ip_version/${t.ip_version}`,query:[`limit`,`name`,`dateRange`,`dateStart`,`dateEnd`,`asn`,`location`,`continent`,`geoId`,`botClass`,`deviceType`,`httpProtocol`,`httpVersion`,`os`,`tlsVersion`,`browserFamily`,`format`],errors:{404:`NotFoundError`}};function So(e){return e.usage(`$0 radar http locations ip-version get <ip-version>
|
|
213
|
-
|
|
214
|
-
Retrieves the top locations, by HTTP requests, of the requested IP version.`).positional(`ip-version`,{type:`string`,description:`IP version.`,demandOption:!0}).option(`limit`,{type:`number`,description:`Limits the number of objects returned in the response.`}).option(`name`,{type:`string`,description:`Array of names used to label the series in the response.`}).option(`date-range`,{type:`string`,description:"Filters results by relative date range ending at the current time, with each value producing a separate series. Use `<n>d` for days (up to `364d`) or `<n>w` for weeks (up to `52w`). Append `control` to request the equivalent previous period for comparison: the comparison window is shifted back by the current window's length rounded up to a whole number of weeks, so it keeps the same weekday alignment and does not overlap the current window (e.g. `7dcontrol` covers days -14 to -7, `10dcontrol` covers days -24 to -14). For example, pass `7d` and `7dcontrol` to compare this week with the previous week. All series must resolve to the same duration as the main series; relative ranges (including `control`) satisfy this automatically. Use this parameter or set specific start and end dates (`dateStart` and `dateEnd` parameters)."}).option(`date-start`,{type:`string`,description:"Start of the date range. Alternative to `dateRange`; provide together with `dateEnd`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`date-end`,{type:`string`,description:"End of the date range (inclusive). Alternative to `dateRange`; provide together with `dateStart`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`asn`,{type:`string`,description:"Filters results by Autonomous System. Specify one or more Autonomous System Numbers (ASNs) as a comma-separated list. Prefix with `-` to exclude ASNs from results. For example, `-174, 3356` excludes results from AS174, but includes results from AS3356."}).option(`location`,{type:`string`,description:"Filters results by location. Specify a comma-separated list of alpha-2 codes. Prefix with `-` to exclude locations from results. For example, `-US,PT` excludes results from the US, but includes results from PT."}).option(`continent`,{type:`string`,description:"Filters results by continent. Specify a comma-separated list of alpha-2 codes. Prefix with `-` to exclude continents from results. For example, `-EU,NA` excludes results from EU, but includes results from NA."}).option(`geo-id`,{type:`string`,description:"Filters results by Geolocation. Specify a comma-separated list of GeoNames IDs. Prefix with `-` to exclude geoIds from results. For example, `-2267056,360689` excludes results from the 2267056 (Lisbon), but includes results from 5128638 (New York)."}).option(`bot-class`,{type:`string`,description:`Filters results by bot class. Refer to [Bot classes](https://developers.cloudflare.com/radar/concepts/bot-classes/).`}).option(`device-type`,{type:`string`,description:`Filters results by device type.`}).option(`http-protocol`,{type:`string`,description:`Filters results by HTTP protocol (HTTP vs. HTTPS).`}).option(`http-version`,{type:`string`,description:`Filters results by HTTP version.`}).option(`os`,{type:`string`,description:`Filters results by operating system.`}).option(`tls-version`,{type:`string`,description:`Filters results by TLS version.`}).option(`browser-family`,{type:`string`,description:`Filters results by browser family.`}).option(`format`,{type:`string`,description:`Format in which results will be returned.`,choices:[`JSON`,`CSV`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const Co={command:`get <ip-version>`,describe:`Get top locations by HTTP requests for an IP version`,builder:So,handler:async e=>a({command:`radar http locations ip-version get`,classification:{safeFlags:[`format`,`dry-run`]}},e,async()=>{let a={limit:e.limit,name:e.name,dateRange:e[`date-range`],dateStart:e[`date-start`],dateEnd:e[`date-end`],asn:e.asn,location:e.location,continent:e.continent,geoId:e[`geo-id`],botClass:e[`bot-class`],deviceType:e[`device-type`],httpProtocol:e[`http-protocol`],httpVersion:e[`http-version`],os:e.os,tlsVersion:e[`tls-version`],browserFamily:e[`browser-family`],format:e.format};if(e.dryRun){r({command:`cf radar http locations ip-version get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/radar/http/top/locations/ip_version/${e[`ip-version`]==null?`<ip-version>`:encodeURIComponent(String(e[`ip-version`]))}`,pathParams:{"ip-version":String(e[`ip-version`]??``)},query:a,bodyKind:`none`});return}let o=await t(e),s=await i(`Loading`,async()=>o.send(xo,{ip_version:e[`ip-version`],...a}));n(s,{successLabel:`Loaded`})})},wo={command:`ip-version`,describe:`Operations for http.locations.ip-version`,builder:e=>e.command(Co).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var To={method:`GET`,path:t=>e`/radar/http/top/locations/os/${t.os}`,query:[`limit`,`name`,`dateRange`,`dateStart`,`dateEnd`,`asn`,`location`,`continent`,`geoId`,`botClass`,`deviceType`,`httpProtocol`,`httpVersion`,`ipVersion`,`tlsVersion`,`browserFamily`,`format`],errors:{404:`NotFoundError`}};function Eo(e){return e.usage(`$0 radar http locations os get <os>
|
|
215
|
-
|
|
216
|
-
Retrieves the top locations, by HTTP requests, of the requested operating system.`).positional(`os`,{type:`string`,description:`Operating system.`,demandOption:!0}).option(`limit`,{type:`number`,description:`Limits the number of objects returned in the response.`}).option(`name`,{type:`string`,description:`Array of names used to label the series in the response.`}).option(`date-range`,{type:`string`,description:"Filters results by relative date range ending at the current time, with each value producing a separate series. Use `<n>d` for days (up to `364d`) or `<n>w` for weeks (up to `52w`). Append `control` to request the equivalent previous period for comparison: the comparison window is shifted back by the current window's length rounded up to a whole number of weeks, so it keeps the same weekday alignment and does not overlap the current window (e.g. `7dcontrol` covers days -14 to -7, `10dcontrol` covers days -24 to -14). For example, pass `7d` and `7dcontrol` to compare this week with the previous week. All series must resolve to the same duration as the main series; relative ranges (including `control`) satisfy this automatically. Use this parameter or set specific start and end dates (`dateStart` and `dateEnd` parameters)."}).option(`date-start`,{type:`string`,description:"Start of the date range. Alternative to `dateRange`; provide together with `dateEnd`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`date-end`,{type:`string`,description:"End of the date range (inclusive). Alternative to `dateRange`; provide together with `dateStart`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`asn`,{type:`string`,description:"Filters results by Autonomous System. Specify one or more Autonomous System Numbers (ASNs) as a comma-separated list. Prefix with `-` to exclude ASNs from results. For example, `-174, 3356` excludes results from AS174, but includes results from AS3356."}).option(`location`,{type:`string`,description:"Filters results by location. Specify a comma-separated list of alpha-2 codes. Prefix with `-` to exclude locations from results. For example, `-US,PT` excludes results from the US, but includes results from PT."}).option(`continent`,{type:`string`,description:"Filters results by continent. Specify a comma-separated list of alpha-2 codes. Prefix with `-` to exclude continents from results. For example, `-EU,NA` excludes results from EU, but includes results from NA."}).option(`geo-id`,{type:`string`,description:"Filters results by Geolocation. Specify a comma-separated list of GeoNames IDs. Prefix with `-` to exclude geoIds from results. For example, `-2267056,360689` excludes results from the 2267056 (Lisbon), but includes results from 5128638 (New York)."}).option(`bot-class`,{type:`string`,description:`Filters results by bot class. Refer to [Bot classes](https://developers.cloudflare.com/radar/concepts/bot-classes/).`}).option(`device-type`,{type:`string`,description:`Filters results by device type.`}).option(`http-protocol`,{type:`string`,description:`Filters results by HTTP protocol (HTTP vs. HTTPS).`}).option(`http-version`,{type:`string`,description:`Filters results by HTTP version.`}).option(`ip-version`,{type:`string`,description:`Filters results by IP version (Ipv4 vs. IPv6).`}).option(`tls-version`,{type:`string`,description:`Filters results by TLS version.`}).option(`browser-family`,{type:`string`,description:`Filters results by browser family.`}).option(`format`,{type:`string`,description:`Format in which results will be returned.`,choices:[`JSON`,`CSV`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const Do={command:`get <os>`,describe:`Get top locations by HTTP requests for an OS`,builder:Eo,handler:async e=>a({command:`radar http locations os get`,classification:{safeFlags:[`format`,`dry-run`]}},e,async()=>{let a={limit:e.limit,name:e.name,dateRange:e[`date-range`],dateStart:e[`date-start`],dateEnd:e[`date-end`],asn:e.asn,location:e.location,continent:e.continent,geoId:e[`geo-id`],botClass:e[`bot-class`],deviceType:e[`device-type`],httpProtocol:e[`http-protocol`],httpVersion:e[`http-version`],ipVersion:e[`ip-version`],tlsVersion:e[`tls-version`],browserFamily:e[`browser-family`],format:e.format};if(e.dryRun){r({command:`cf radar http locations os get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/radar/http/top/locations/os/${e.os==null?`<os>`:encodeURIComponent(String(e.os))}`,pathParams:{os:String(e.os??``)},query:a,bodyKind:`none`});return}let o=await t(e),s=await i(`Loading`,async()=>o.send(To,{os:e.os,...a}));n(s,{successLabel:`Loaded`})})},Oo={command:`os`,describe:`Operations for http.locations.os`,builder:e=>e.command(Do).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var ko={method:`GET`,path:t=>e`/radar/http/top/locations/tls_version/${t.tls_version}`,query:[`limit`,`name`,`dateRange`,`dateStart`,`dateEnd`,`asn`,`location`,`continent`,`geoId`,`botClass`,`deviceType`,`httpProtocol`,`httpVersion`,`ipVersion`,`os`,`browserFamily`,`format`],errors:{404:`NotFoundError`}};function Ao(e){return e.usage(`$0 radar http locations tls-version get <tls-version>
|
|
217
|
-
|
|
218
|
-
Retrieves the top locations, by HTTP requests, of the requested TLS protocol version.`).positional(`tls-version`,{type:`string`,description:`TLS version.`,demandOption:!0}).option(`limit`,{type:`number`,description:`Limits the number of objects returned in the response.`}).option(`name`,{type:`string`,description:`Array of names used to label the series in the response.`}).option(`date-range`,{type:`string`,description:"Filters results by relative date range ending at the current time, with each value producing a separate series. Use `<n>d` for days (up to `364d`) or `<n>w` for weeks (up to `52w`). Append `control` to request the equivalent previous period for comparison: the comparison window is shifted back by the current window's length rounded up to a whole number of weeks, so it keeps the same weekday alignment and does not overlap the current window (e.g. `7dcontrol` covers days -14 to -7, `10dcontrol` covers days -24 to -14). For example, pass `7d` and `7dcontrol` to compare this week with the previous week. All series must resolve to the same duration as the main series; relative ranges (including `control`) satisfy this automatically. Use this parameter or set specific start and end dates (`dateStart` and `dateEnd` parameters)."}).option(`date-start`,{type:`string`,description:"Start of the date range. Alternative to `dateRange`; provide together with `dateEnd`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`date-end`,{type:`string`,description:"End of the date range (inclusive). Alternative to `dateRange`; provide together with `dateStart`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`asn`,{type:`string`,description:"Filters results by Autonomous System. Specify one or more Autonomous System Numbers (ASNs) as a comma-separated list. Prefix with `-` to exclude ASNs from results. For example, `-174, 3356` excludes results from AS174, but includes results from AS3356."}).option(`location`,{type:`string`,description:"Filters results by location. Specify a comma-separated list of alpha-2 codes. Prefix with `-` to exclude locations from results. For example, `-US,PT` excludes results from the US, but includes results from PT."}).option(`continent`,{type:`string`,description:"Filters results by continent. Specify a comma-separated list of alpha-2 codes. Prefix with `-` to exclude continents from results. For example, `-EU,NA` excludes results from EU, but includes results from NA."}).option(`geo-id`,{type:`string`,description:"Filters results by Geolocation. Specify a comma-separated list of GeoNames IDs. Prefix with `-` to exclude geoIds from results. For example, `-2267056,360689` excludes results from the 2267056 (Lisbon), but includes results from 5128638 (New York)."}).option(`bot-class`,{type:`string`,description:`Filters results by bot class. Refer to [Bot classes](https://developers.cloudflare.com/radar/concepts/bot-classes/).`}).option(`device-type`,{type:`string`,description:`Filters results by device type.`}).option(`http-protocol`,{type:`string`,description:`Filters results by HTTP protocol (HTTP vs. HTTPS).`}).option(`http-version`,{type:`string`,description:`Filters results by HTTP version.`}).option(`ip-version`,{type:`string`,description:`Filters results by IP version (Ipv4 vs. IPv6).`}).option(`os`,{type:`string`,description:`Filters results by operating system.`}).option(`browser-family`,{type:`string`,description:`Filters results by browser family.`}).option(`format`,{type:`string`,description:`Format in which results will be returned.`,choices:[`JSON`,`CSV`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const jo={command:`get <tls-version>`,describe:`Get top locations by HTTP requests for a TLS version`,builder:Ao,handler:async e=>a({command:`radar http locations tls-version get`,classification:{safeFlags:[`format`,`dry-run`]}},e,async()=>{let a={limit:e.limit,name:e.name,dateRange:e[`date-range`],dateStart:e[`date-start`],dateEnd:e[`date-end`],asn:e.asn,location:e.location,continent:e.continent,geoId:e[`geo-id`],botClass:e[`bot-class`],deviceType:e[`device-type`],httpProtocol:e[`http-protocol`],httpVersion:e[`http-version`],ipVersion:e[`ip-version`],os:e.os,browserFamily:e[`browser-family`],format:e.format};if(e.dryRun){r({command:`cf radar http locations tls-version get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/radar/http/top/locations/tls_version/${e[`tls-version`]==null?`<tls-version>`:encodeURIComponent(String(e[`tls-version`]))}`,pathParams:{"tls-version":String(e[`tls-version`]??``)},query:a,bodyKind:`none`});return}let o=await t(e),s=await i(`Loading`,async()=>o.send(ko,{tls_version:e[`tls-version`],...a}));n(s,{successLabel:`Loaded`})})},Mo={command:`tls-version`,describe:`Operations for http.locations.tls-version`,builder:e=>e.command(jo).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},No={command:`locations`,describe:`Operations for http.locations`,builder:e=>e.command(fo).command(eo).command(io).command(co).command(go).command(bo).command(wo).command(Oo).command(Mo).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var Po={method:`GET`,path:t=>e`/radar/http/summary/${t.dimension}`,query:[`name`,`dateRange`,`dateStart`,`dateEnd`,`asn`,`location`,`continent`,`geoId`,`apiTraffic`,`botClass`,`contentType`,`deviceType`,`httpProtocol`,`httpVersion`,`ipVersion`,`os`,`tlsVersion`,`limitPerGroup`,`format`],errors:{400:`BadRequestError`}};function Fo(e){return e.usage(`$0 radar http summary-v2 <dimension>
|
|
219
|
-
|
|
220
|
-
Retrieves the distribution of HTTP requests by the specified dimension.`).positional(`dimension`,{type:`string`,description:`Specifies the HTTP attribute by which to group the results.`,demandOption:!0}).option(`name`,{type:`string`,description:`Array of names used to label the series in the response.`}).option(`date-range`,{type:`string`,description:"Filters results by relative date range ending at the current time, with each value producing a separate series. Use `<n>d` for days (up to `364d`) or `<n>w` for weeks (up to `52w`). Append `control` to request the equivalent previous period for comparison: the comparison window is shifted back by the current window's length rounded up to a whole number of weeks, so it keeps the same weekday alignment and does not overlap the current window (e.g. `7dcontrol` covers days -14 to -7, `10dcontrol` covers days -24 to -14). For example, pass `7d` and `7dcontrol` to compare this week with the previous week. All series must resolve to the same duration as the main series; relative ranges (including `control`) satisfy this automatically. Use this parameter or set specific start and end dates (`dateStart` and `dateEnd` parameters)."}).option(`date-start`,{type:`string`,description:"Start of the date range. Alternative to `dateRange`; provide together with `dateEnd`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`date-end`,{type:`string`,description:"End of the date range (inclusive). Alternative to `dateRange`; provide together with `dateStart`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`asn`,{type:`string`,description:"Filters results by Autonomous System. Specify one or more Autonomous System Numbers (ASNs) as a comma-separated list. Prefix with `-` to exclude ASNs from results. For example, `-174, 3356` excludes results from AS174, but includes results from AS3356."}).option(`location`,{type:`string`,description:"Filters results by location. Specify a comma-separated list of alpha-2 codes. Prefix with `-` to exclude locations from results. For example, `-US,PT` excludes results from the US, but includes results from PT."}).option(`continent`,{type:`string`,description:"Filters results by continent. Specify a comma-separated list of alpha-2 codes. Prefix with `-` to exclude continents from results. For example, `-EU,NA` excludes results from EU, but includes results from NA."}).option(`geo-id`,{type:`string`,description:"Filters results by Geolocation. Specify a comma-separated list of GeoNames IDs. Prefix with `-` to exclude geoIds from results. For example, `-2267056,360689` excludes results from the 2267056 (Lisbon), but includes results from 5128638 (New York)."}).option(`api-traffic`,{type:`string`,description:"Filters results by API traffic classification. API traffic is identified by JSON or XML response content types on dynamic (non-cacheable) HTTP requests. Incompatible with the `browserFamily`, `deviceType`, `httpProtocol`, `httpVersion`, `ipVersion`, `os`, and `tlsVersion` filters/dimensions. When set, results can only be further filtered by location, continent, or Autonomous System."}).option(`bot-class`,{type:`string`,description:`Filters results by bot class. Refer to [Bot classes](https://developers.cloudflare.com/radar/concepts/bot-classes/).`}).option(`content-type`,{type:`string`,description:`Filters results by content type category. When set, results can only be further filtered by location, continent, or Autonomous System.`}).option(`device-type`,{type:`string`,description:`Filters results by device type.`}).option(`http-protocol`,{type:`string`,description:`Filters results by HTTP protocol (HTTP vs. HTTPS).`}).option(`http-version`,{type:`string`,description:`Filters results by HTTP version.`}).option(`ip-version`,{type:`string`,description:`Filters results by IP version (Ipv4 vs. IPv6).`}).option(`os`,{type:`string`,description:`Filters results by operating system.`}).option(`tls-version`,{type:`string`,description:`Filters results by TLS version.`}).option(`limit-per-group`,{type:`number`,description:`Limits the number of objects per group to the top items within the specified time range. When item count exceeds the limit, extra items appear grouped under an "other" category. Only supported on high-cardinality dimensions; otherwise the request is rejected. Minimum value is 2.`}).option(`format`,{type:`string`,description:`Format in which results will be returned.`,choices:[`JSON`,`CSV`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const Io={command:`summary-v2 <dimension>`,describe:`Get HTTP requests summary by dimension`,builder:Fo,handler:async e=>a({command:`radar http summary-v2`,classification:{safeFlags:[`format`,`dry-run`]}},e,async()=>{let a={name:e.name,dateRange:e[`date-range`],dateStart:e[`date-start`],dateEnd:e[`date-end`],asn:e.asn,location:e.location,continent:e.continent,geoId:e[`geo-id`],apiTraffic:e[`api-traffic`],botClass:e[`bot-class`],contentType:e[`content-type`],deviceType:e[`device-type`],httpProtocol:e[`http-protocol`],httpVersion:e[`http-version`],ipVersion:e[`ip-version`],os:e.os,tlsVersion:e[`tls-version`],limitPerGroup:e[`limit-per-group`],format:e.format};if(e.dryRun){r({command:`cf radar http summary-v2`,method:`GET`,url:`https://api.cloudflare.com/client/v4/radar/http/summary/${e.dimension==null?`<dimension>`:encodeURIComponent(String(e.dimension))}`,pathParams:{dimension:String(e.dimension??``)},query:a,bodyKind:`none`});return}let o=await t(e),s=await i(`Loading`,async()=>o.send(Po,{dimension:e.dimension,...a}));n(s,{successLabel:`Loaded`})})};var Lo={method:`GET`,path:t=>e`/radar/http/timeseries_groups/${t.dimension}`,query:[`aggInterval`,`name`,`dateRange`,`dateStart`,`dateEnd`,`asn`,`location`,`continent`,`geoId`,`apiTraffic`,`botClass`,`contentType`,`limitPerGroup`,`deviceType`,`httpProtocol`,`httpVersion`,`normalization`,`ipVersion`,`os`,`tlsVersion`,`format`],errors:{400:`BadRequestError`}};function Ro(e){return e.usage(`$0 radar http timeseries-groups-v2 <dimension>
|
|
221
|
-
|
|
222
|
-
Retrieves the distribution of HTTP requests grouped by dimension.`).positional(`dimension`,{type:`string`,description:`Specifies the HTTP attribute by which to group the results.`,demandOption:!0}).option(`agg-interval`,{type:`string`,description:`Aggregation interval of the results (e.g., in 15 minutes or 1 hour intervals). Refer to [Aggregation intervals](https://developers.cloudflare.com/radar/concepts/aggregation-intervals/). When omitted, the interval is auto-selected from the requested date range; finer intervals are only available for shorter ranges. If the requested interval is too granular for the date range, the request is rejected.`,choices:[`15m`,`1h`,`1d`,`1w`]}).option(`name`,{type:`string`,description:`Array of names used to label the series in the response.`}).option(`date-range`,{type:`string`,description:"Filters results by relative date range ending at the current time, with each value producing a separate series. Use `<n>d` for days (up to `364d`) or `<n>w` for weeks (up to `52w`). Append `control` to request the equivalent previous period for comparison: the comparison window is shifted back by the current window's length rounded up to a whole number of weeks, so it keeps the same weekday alignment and does not overlap the current window (e.g. `7dcontrol` covers days -14 to -7, `10dcontrol` covers days -24 to -14). For example, pass `7d` and `7dcontrol` to compare this week with the previous week. All series must resolve to the same duration as the main series; relative ranges (including `control`) satisfy this automatically. Use this parameter or set specific start and end dates (`dateStart` and `dateEnd` parameters)."}).option(`date-start`,{type:`string`,description:"Start of the date range. Alternative to `dateRange`; provide together with `dateEnd`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`date-end`,{type:`string`,description:"End of the date range (inclusive). Alternative to `dateRange`; provide together with `dateStart`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`asn`,{type:`string`,description:"Filters results by Autonomous System. Specify one or more Autonomous System Numbers (ASNs) as a comma-separated list. Prefix with `-` to exclude ASNs from results. For example, `-174, 3356` excludes results from AS174, but includes results from AS3356."}).option(`location`,{type:`string`,description:"Filters results by location. Specify a comma-separated list of alpha-2 codes. Prefix with `-` to exclude locations from results. For example, `-US,PT` excludes results from the US, but includes results from PT."}).option(`continent`,{type:`string`,description:"Filters results by continent. Specify a comma-separated list of alpha-2 codes. Prefix with `-` to exclude continents from results. For example, `-EU,NA` excludes results from EU, but includes results from NA."}).option(`geo-id`,{type:`string`,description:"Filters results by Geolocation. Specify a comma-separated list of GeoNames IDs. Prefix with `-` to exclude geoIds from results. For example, `-2267056,360689` excludes results from the 2267056 (Lisbon), but includes results from 5128638 (New York)."}).option(`api-traffic`,{type:`string`,description:"Filters results by API traffic classification. API traffic is identified by JSON or XML response content types on dynamic (non-cacheable) HTTP requests. Incompatible with the `browserFamily`, `deviceType`, `httpProtocol`, `httpVersion`, `ipVersion`, `os`, and `tlsVersion` filters/dimensions. When set, results can only be further filtered by location, continent, or Autonomous System."}).option(`bot-class`,{type:`string`,description:`Filters results by bot class. Refer to [Bot classes](https://developers.cloudflare.com/radar/concepts/bot-classes/).`}).option(`content-type`,{type:`string`,description:`Filters results by content type category. When set, results can only be further filtered by location, continent, or Autonomous System.`}).option(`limit-per-group`,{type:`number`,description:`Limits the number of objects per group to the top items within the specified time range. When item count exceeds the limit, extra items appear grouped under an "other" category. Only supported on high-cardinality dimensions; otherwise the request is rejected. Minimum value is 2.`}).option(`device-type`,{type:`string`,description:`Filters results by device type.`}).option(`http-protocol`,{type:`string`,description:`Filters results by HTTP protocol (HTTP vs. HTTPS).`}).option(`http-version`,{type:`string`,description:`Filters results by HTTP version.`}).option(`normalization`,{type:`string`,description:`Normalization method applied to the results. Refer to [Normalization methods](https://developers.cloudflare.com/radar/concepts/normalization/).`,choices:[`PERCENTAGE`,`MIN0_MAX`]}).option(`ip-version`,{type:`string`,description:`Filters results by IP version (Ipv4 vs. IPv6).`}).option(`os`,{type:`string`,description:`Filters results by operating system.`}).option(`tls-version`,{type:`string`,description:`Filters results by TLS version.`}).option(`format`,{type:`string`,description:`Format in which results will be returned.`,choices:[`JSON`,`CSV`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const zo={command:`timeseries-groups-v2 <dimension>`,describe:`Get HTTP requests time series grouped by dimension`,builder:Ro,handler:async e=>a({command:`radar http timeseries-groups-v2`,classification:{safeFlags:[`agg-interval`,`normalization`,`format`,`dry-run`]}},e,async()=>{let a={aggInterval:e[`agg-interval`],name:e.name,dateRange:e[`date-range`],dateStart:e[`date-start`],dateEnd:e[`date-end`],asn:e.asn,location:e.location,continent:e.continent,geoId:e[`geo-id`],apiTraffic:e[`api-traffic`],botClass:e[`bot-class`],contentType:e[`content-type`],limitPerGroup:e[`limit-per-group`],deviceType:e[`device-type`],httpProtocol:e[`http-protocol`],httpVersion:e[`http-version`],normalization:e.normalization,ipVersion:e[`ip-version`],os:e.os,tlsVersion:e[`tls-version`],format:e.format};if(e.dryRun){r({command:`cf radar http timeseries-groups-v2`,method:`GET`,url:`https://api.cloudflare.com/client/v4/radar/http/timeseries_groups/${e.dimension==null?`<dimension>`:encodeURIComponent(String(e.dimension))}`,pathParams:{dimension:String(e.dimension??``)},query:a,bodyKind:`none`});return}let o=await t(e),s=await i(`Loading`,async()=>o.send(Lo,{dimension:e.dimension,...a}));n(s,{successLabel:`Loaded`})})};var Bo={method:`GET`,path:()=>`/radar/http/timeseries`,query:[`aggInterval`,`name`,`dateRange`,`dateStart`,`dateEnd`,`asn`,`location`,`continent`,`geoId`,`normalization`,`apiTraffic`,`botClass`,`contentType`,`deviceType`,`httpProtocol`,`httpVersion`,`ipVersion`,`os`,`tlsVersion`,`browserFamily`,`format`],errors:{400:`BadRequestError`}};function Vo(e){return e.usage(`$0 radar http timeseries
|
|
223
|
-
|
|
224
|
-
Retrieves the HTTP requests over time.`).option(`agg-interval`,{type:`string`,description:`Aggregation interval of the results (e.g., in 15 minutes or 1 hour intervals). Refer to [Aggregation intervals](https://developers.cloudflare.com/radar/concepts/aggregation-intervals/). When omitted, the interval is auto-selected from the requested date range; finer intervals are only available for shorter ranges. If the requested interval is too granular for the date range, the request is rejected.`,choices:[`15m`,`1h`,`1d`,`1w`]}).option(`name`,{type:`string`,description:`Array of names used to label the series in the response.`}).option(`date-range`,{type:`string`,description:"Filters results by relative date range ending at the current time, with each value producing a separate series. Use `<n>d` for days (up to `364d`) or `<n>w` for weeks (up to `52w`). Append `control` to request the equivalent previous period for comparison: the comparison window is shifted back by the current window's length rounded up to a whole number of weeks, so it keeps the same weekday alignment and does not overlap the current window (e.g. `7dcontrol` covers days -14 to -7, `10dcontrol` covers days -24 to -14). For example, pass `7d` and `7dcontrol` to compare this week with the previous week. All series must resolve to the same duration as the main series; relative ranges (including `control`) satisfy this automatically. Use this parameter or set specific start and end dates (`dateStart` and `dateEnd` parameters)."}).option(`date-start`,{type:`string`,description:"Start of the date range. Alternative to `dateRange`; provide together with `dateEnd`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`date-end`,{type:`string`,description:"End of the date range (inclusive). Alternative to `dateRange`; provide together with `dateStart`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`asn`,{type:`string`,description:"Filters results by Autonomous System. Specify one or more Autonomous System Numbers (ASNs) as a comma-separated list. Prefix with `-` to exclude ASNs from results. For example, `-174, 3356` excludes results from AS174, but includes results from AS3356."}).option(`location`,{type:`string`,description:"Filters results by location. Specify a comma-separated list of alpha-2 codes. Prefix with `-` to exclude locations from results. For example, `-US,PT` excludes results from the US, but includes results from PT."}).option(`continent`,{type:`string`,description:"Filters results by continent. Specify a comma-separated list of alpha-2 codes. Prefix with `-` to exclude continents from results. For example, `-EU,NA` excludes results from EU, but includes results from NA."}).option(`geo-id`,{type:`string`,description:"Filters results by Geolocation. Specify a comma-separated list of GeoNames IDs. Prefix with `-` to exclude geoIds from results. For example, `-2267056,360689` excludes results from the 2267056 (Lisbon), but includes results from 5128638 (New York)."}).option(`normalization`,{type:`string`,description:"Normalization method applied to the results. Refer to [Normalization methods](https://developers.cloudflare.com/radar/concepts/normalization/). `PERCENTAGE_CHANGE` requires exactly one comparison series (e.g. a `control` date range).",choices:[`PERCENTAGE_CHANGE`,`MIN0_MAX`]}).option(`api-traffic`,{type:`string`,description:"Filters results by API traffic classification. API traffic is identified by JSON or XML response content types on dynamic (non-cacheable) HTTP requests. Incompatible with the `browserFamily`, `deviceType`, `httpProtocol`, `httpVersion`, `ipVersion`, `os`, and `tlsVersion` filters/dimensions. When set, results can only be further filtered by location, continent, or Autonomous System."}).option(`bot-class`,{type:`string`,description:`Filters results by bot class. Refer to [Bot classes](https://developers.cloudflare.com/radar/concepts/bot-classes/).`}).option(`content-type`,{type:`string`,description:`Filters results by content type category. When set, results can only be further filtered by location, continent, or Autonomous System.`}).option(`device-type`,{type:`string`,description:`Filters results by device type.`}).option(`http-protocol`,{type:`string`,description:`Filters results by HTTP protocol (HTTP vs. HTTPS).`}).option(`http-version`,{type:`string`,description:`Filters results by HTTP version.`}).option(`ip-version`,{type:`string`,description:`Filters results by IP version (Ipv4 vs. IPv6).`}).option(`os`,{type:`string`,description:`Filters results by operating system.`}).option(`tls-version`,{type:`string`,description:`Filters results by TLS version.`}).option(`browser-family`,{type:`string`,description:`Filters results by browser family.`}).option(`format`,{type:`string`,description:`Format in which results will be returned.`,choices:[`JSON`,`CSV`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const Ho={command:`timeseries`,describe:`Get HTTP requests time series`,builder:Vo,handler:async e=>a({command:`radar http timeseries`,classification:{safeFlags:[`agg-interval`,`normalization`,`format`,`dry-run`]}},e,async()=>{let a={aggInterval:e[`agg-interval`],name:e.name,dateRange:e[`date-range`],dateStart:e[`date-start`],dateEnd:e[`date-end`],asn:e.asn,location:e.location,continent:e.continent,geoId:e[`geo-id`],normalization:e.normalization,apiTraffic:e[`api-traffic`],botClass:e[`bot-class`],contentType:e[`content-type`],deviceType:e[`device-type`],httpProtocol:e[`http-protocol`],httpVersion:e[`http-version`],ipVersion:e[`ip-version`],os:e.os,tlsVersion:e[`tls-version`],browserFamily:e[`browser-family`],format:e.format};if(e.dryRun){r({command:`cf radar http timeseries`,method:`GET`,url:`https://api.cloudflare.com/client/v4/radar/http/timeseries`,pathParams:{},query:a,bodyKind:`none`});return}let o=await t(e),s=await i(`Loading`,async()=>o.send(Bo,a));n(s,{successLabel:`Loaded`})})},Uo={command:`http`,describe:`HTTP protocol trends — TLS versions, HTTP versions, browser share, and OS distribution`,builder:e=>e.command(Io).command(Ho).command(zo).command(Xa).command(No).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var Wo={method:`GET`,path:t=>e`/radar/leaked_credential_checks/summary/${t.dimension}`,query:[`name`,`dateRange`,`dateStart`,`dateEnd`,`asn`,`location`,`continent`,`botClass`,`compromised`,`limitPerGroup`,`format`],errors:{400:`BadRequestError`}};function Go(e){return e.usage(`$0 radar leaked-credentials summary-v2 <dimension>
|
|
225
|
-
|
|
226
|
-
Retrieves an aggregated summary of HTTP authentication requests grouped by the specified dimension.`).positional(`dimension`,{type:`string`,description:`Specifies the attribute by which to group the results.`,demandOption:!0}).option(`name`,{type:`string`,description:`Array of names used to label the series in the response.`}).option(`date-range`,{type:`string`,description:"Filters results by relative date range ending at the current time, with each value producing a separate series. Use `<n>d` for days (up to `364d`) or `<n>w` for weeks (up to `52w`). Append `control` to request the equivalent previous period for comparison: the comparison window is shifted back by the current window's length rounded up to a whole number of weeks, so it keeps the same weekday alignment and does not overlap the current window (e.g. `7dcontrol` covers days -14 to -7, `10dcontrol` covers days -24 to -14). For example, pass `7d` and `7dcontrol` to compare this week with the previous week. All series must resolve to the same duration as the main series; relative ranges (including `control`) satisfy this automatically. Use this parameter or set specific start and end dates (`dateStart` and `dateEnd` parameters)."}).option(`date-start`,{type:`string`,description:"Start of the date range. Alternative to `dateRange`; provide together with `dateEnd`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`date-end`,{type:`string`,description:"End of the date range (inclusive). Alternative to `dateRange`; provide together with `dateStart`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`asn`,{type:`string`,description:"Filters results by Autonomous System. Specify one or more Autonomous System Numbers (ASNs) as a comma-separated list. Prefix with `-` to exclude ASNs from results. For example, `-174, 3356` excludes results from AS174, but includes results from AS3356."}).option(`location`,{type:`string`,description:"Filters results by location. Specify a comma-separated list of alpha-2 codes. Prefix with `-` to exclude locations from results. For example, `-US,PT` excludes results from the US, but includes results from PT."}).option(`continent`,{type:`string`,description:"Filters results by continent. Specify a comma-separated list of alpha-2 codes. Prefix with `-` to exclude continents from results. For example, `-EU,NA` excludes results from EU, but includes results from NA."}).option(`bot-class`,{type:`string`,description:`Filters results by bot class. Refer to [Bot classes](https://developers.cloudflare.com/radar/concepts/bot-classes/).`}).option(`compromised`,{type:`string`,description:`Filters results by compromised credential status (clean vs. compromised).`}).option(`limit-per-group`,{type:`number`,description:`Limits the number of objects per group to the top items within the specified time range. When item count exceeds the limit, extra items appear grouped under an "other" category. Only supported on high-cardinality dimensions; otherwise the request is rejected. Minimum value is 2.`}).option(`format`,{type:`string`,description:`Format in which results will be returned.`,choices:[`JSON`,`CSV`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const Ko={command:`summary-v2 <dimension>`,describe:`Get HTTP authentication requests distribution by dimension`,builder:Go,handler:async e=>a({command:`radar leaked-credentials summary-v2`,classification:{safeFlags:[`format`,`dry-run`]}},e,async()=>{let a={name:e.name,dateRange:e[`date-range`],dateStart:e[`date-start`],dateEnd:e[`date-end`],asn:e.asn,location:e.location,continent:e.continent,botClass:e[`bot-class`],compromised:e.compromised,limitPerGroup:e[`limit-per-group`],format:e.format};if(e.dryRun){r({command:`cf radar leaked-credentials summary-v2`,method:`GET`,url:`https://api.cloudflare.com/client/v4/radar/leaked_credential_checks/summary/${e.dimension==null?`<dimension>`:encodeURIComponent(String(e.dimension))}`,pathParams:{dimension:String(e.dimension??``)},query:a,bodyKind:`none`});return}let o=await t(e),s=await i(`Loading`,async()=>o.send(Wo,{dimension:e.dimension,...a}));n(s,{successLabel:`Loaded`})})};var qo={method:`GET`,path:t=>e`/radar/leaked_credential_checks/timeseries_groups/${t.dimension}`,query:[`aggInterval`,`name`,`dateRange`,`dateStart`,`dateEnd`,`asn`,`location`,`continent`,`botClass`,`compromised`,`checkResult`,`limitPerGroup`,`normalization`,`format`],errors:{400:`BadRequestError`}};function Jo(e){return e.usage(`$0 radar leaked-credentials timeseries-groups-v2 <dimension>
|
|
227
|
-
|
|
228
|
-
Retrieves the distribution of HTTP authentication requests, grouped by the specified dimension over time.`).positional(`dimension`,{type:`string`,description:`Specifies the attribute by which to group the results.`,demandOption:!0}).option(`agg-interval`,{type:`string`,description:`Aggregation interval of the results (e.g., in 15 minutes or 1 hour intervals). Refer to [Aggregation intervals](https://developers.cloudflare.com/radar/concepts/aggregation-intervals/). When omitted, the interval is auto-selected from the requested date range; finer intervals are only available for shorter ranges. If the requested interval is too granular for the date range, the request is rejected.`,choices:[`15m`,`1h`,`1d`,`1w`]}).option(`name`,{type:`string`,description:`Array of names used to label the series in the response.`}).option(`date-range`,{type:`string`,description:"Filters results by relative date range ending at the current time, with each value producing a separate series. Use `<n>d` for days (up to `364d`) or `<n>w` for weeks (up to `52w`). Append `control` to request the equivalent previous period for comparison: the comparison window is shifted back by the current window's length rounded up to a whole number of weeks, so it keeps the same weekday alignment and does not overlap the current window (e.g. `7dcontrol` covers days -14 to -7, `10dcontrol` covers days -24 to -14). For example, pass `7d` and `7dcontrol` to compare this week with the previous week. All series must resolve to the same duration as the main series; relative ranges (including `control`) satisfy this automatically. Use this parameter or set specific start and end dates (`dateStart` and `dateEnd` parameters)."}).option(`date-start`,{type:`string`,description:"Start of the date range. Alternative to `dateRange`; provide together with `dateEnd`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`date-end`,{type:`string`,description:"End of the date range (inclusive). Alternative to `dateRange`; provide together with `dateStart`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`asn`,{type:`string`,description:"Filters results by Autonomous System. Specify one or more Autonomous System Numbers (ASNs) as a comma-separated list. Prefix with `-` to exclude ASNs from results. For example, `-174, 3356` excludes results from AS174, but includes results from AS3356."}).option(`location`,{type:`string`,description:"Filters results by location. Specify a comma-separated list of alpha-2 codes. Prefix with `-` to exclude locations from results. For example, `-US,PT` excludes results from the US, but includes results from PT."}).option(`continent`,{type:`string`,description:"Filters results by continent. Specify a comma-separated list of alpha-2 codes. Prefix with `-` to exclude continents from results. For example, `-EU,NA` excludes results from EU, but includes results from NA."}).option(`bot-class`,{type:`string`,description:`Filters results by bot class. Refer to [Bot classes](https://developers.cloudflare.com/radar/concepts/bot-classes/).`}).option(`compromised`,{type:`string`,description:`Filters results by compromised credential status (clean vs. compromised).`}).option(`check-result`,{type:`string`,description:`Filters results by leaked credential check result.`}).option(`limit-per-group`,{type:`number`,description:`Limits the number of objects per group to the top items within the specified time range. When item count exceeds the limit, extra items appear grouped under an "other" category. Only supported on high-cardinality dimensions; otherwise the request is rejected. Minimum value is 2.`}).option(`normalization`,{type:`string`,description:"Normalization method applied to the results. Refer to [Normalization methods](https://developers.cloudflare.com/radar/concepts/normalization/). `PERCENTAGE_CHANGE` requires exactly one comparison series (e.g. a `control` date range).",choices:[`PERCENTAGE_CHANGE`,`MIN0_MAX`]}).option(`format`,{type:`string`,description:`Format in which results will be returned.`,choices:[`JSON`,`CSV`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const Yo={command:`timeseries-groups-v2 <dimension>`,describe:`Get time series distribution of HTTP authentication requests by dimension.`,builder:Jo,handler:async e=>a({command:`radar leaked-credentials timeseries-groups-v2`,classification:{safeFlags:[`agg-interval`,`normalization`,`format`,`dry-run`]}},e,async()=>{let a={aggInterval:e[`agg-interval`],name:e.name,dateRange:e[`date-range`],dateStart:e[`date-start`],dateEnd:e[`date-end`],asn:e.asn,location:e.location,continent:e.continent,botClass:e[`bot-class`],compromised:e.compromised,checkResult:e[`check-result`],limitPerGroup:e[`limit-per-group`],normalization:e.normalization,format:e.format};if(e.dryRun){r({command:`cf radar leaked-credentials timeseries-groups-v2`,method:`GET`,url:`https://api.cloudflare.com/client/v4/radar/leaked_credential_checks/timeseries_groups/${e.dimension==null?`<dimension>`:encodeURIComponent(String(e.dimension))}`,pathParams:{dimension:String(e.dimension??``)},query:a,bodyKind:`none`});return}let o=await t(e),s=await i(`Loading`,async()=>o.send(qo,{dimension:e.dimension,...a}));n(s,{successLabel:`Loaded`})})},Xo={command:`leaked-credentials`,describe:`Leaked credential detection trends and exposure statistics`,builder:e=>e.command(Ko).command(Yo).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var Zo={method:`GET`,path:t=>e`/radar/netflows/summary/${t.dimension}`,query:[`name`,`dateRange`,`dateStart`,`dateEnd`,`asn`,`location`,`continent`,`geoId`,`product`,`limitPerGroup`,`format`],errors:{400:`BadRequestError`}};function Qo(e){return e.usage(`$0 radar netflows summary-v2 <dimension>
|
|
229
|
-
|
|
230
|
-
Retrieves the distribution of network traffic (NetFlows) by the specified dimension.`).positional(`dimension`,{type:`string`,description:`Specifies the NetFlows attribute by which to group the results.`,demandOption:!0}).option(`name`,{type:`string`,description:`Array of names used to label the series in the response.`}).option(`date-range`,{type:`string`,description:"Filters results by relative date range ending at the current time, with each value producing a separate series. Use `<n>d` for days (up to `364d`) or `<n>w` for weeks (up to `52w`). Append `control` to request the equivalent previous period for comparison: the comparison window is shifted back by the current window's length rounded up to a whole number of weeks, so it keeps the same weekday alignment and does not overlap the current window (e.g. `7dcontrol` covers days -14 to -7, `10dcontrol` covers days -24 to -14). For example, pass `7d` and `7dcontrol` to compare this week with the previous week. All series must resolve to the same duration as the main series; relative ranges (including `control`) satisfy this automatically. Use this parameter or set specific start and end dates (`dateStart` and `dateEnd` parameters)."}).option(`date-start`,{type:`string`,description:"Start of the date range. Alternative to `dateRange`; provide together with `dateEnd`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`date-end`,{type:`string`,description:"End of the date range (inclusive). Alternative to `dateRange`; provide together with `dateStart`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`asn`,{type:`string`,description:"Filters results by Autonomous System. Specify one or more Autonomous System Numbers (ASNs) as a comma-separated list. Prefix with `-` to exclude ASNs from results. For example, `-174, 3356` excludes results from AS174, but includes results from AS3356."}).option(`location`,{type:`string`,description:"Filters results by location. Specify a comma-separated list of alpha-2 codes. Prefix with `-` to exclude locations from results. For example, `-US,PT` excludes results from the US, but includes results from PT."}).option(`continent`,{type:`string`,description:"Filters results by continent. Specify a comma-separated list of alpha-2 codes. Prefix with `-` to exclude continents from results. For example, `-EU,NA` excludes results from EU, but includes results from NA."}).option(`geo-id`,{type:`string`,description:"Filters results by Geolocation. Specify a comma-separated list of GeoNames IDs. Prefix with `-` to exclude geoIds from results. For example, `-2267056,360689` excludes results from the 2267056 (Lisbon), but includes results from 5128638 (New York)."}).option(`product`,{type:`string`,description:`Filters the results by network traffic product types.`}).option(`limit-per-group`,{type:`number`,description:`Limits the number of objects per group to the top items within the specified time range. When item count exceeds the limit, extra items appear grouped under an "other" category. Only supported on high-cardinality dimensions; otherwise the request is rejected. Minimum value is 2.`}).option(`format`,{type:`string`,description:`Format in which results will be returned.`,choices:[`JSON`,`CSV`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const $o={command:`summary-v2 <dimension>`,describe:`Get network traffic distribution by dimension`,builder:Qo,handler:async e=>a({command:`radar netflows summary-v2`,classification:{safeFlags:[`format`,`dry-run`]}},e,async()=>{let a={name:e.name,dateRange:e[`date-range`],dateStart:e[`date-start`],dateEnd:e[`date-end`],asn:e.asn,location:e.location,continent:e.continent,geoId:e[`geo-id`],product:e.product,limitPerGroup:e[`limit-per-group`],format:e.format};if(e.dryRun){r({command:`cf radar netflows summary-v2`,method:`GET`,url:`https://api.cloudflare.com/client/v4/radar/netflows/summary/${e.dimension==null?`<dimension>`:encodeURIComponent(String(e.dimension))}`,pathParams:{dimension:String(e.dimension??``)},query:a,bodyKind:`none`});return}let o=await t(e),s=await i(`Loading`,async()=>o.send(Zo,{dimension:e.dimension,...a}));n(s,{successLabel:`Loaded`})})};var es={method:`GET`,path:t=>e`/radar/netflows/timeseries_groups/${t.dimension}`,query:[`aggInterval`,`name`,`dateRange`,`dateStart`,`dateEnd`,`asn`,`location`,`continent`,`geoId`,`limitPerGroup`,`normalization`,`product`,`format`],errors:{400:`BadRequestError`}};function ts(e){return e.usage(`$0 radar netflows timeseries-groups <dimension>
|
|
231
|
-
|
|
232
|
-
Retrieves the distribution of NetFlows traffic, grouped by the specified dimension over time.`).positional(`dimension`,{type:`string`,description:`Specifies the NetFlows attribute by which to group the results.`,demandOption:!0}).option(`agg-interval`,{type:`string`,description:`Aggregation interval of the results (e.g., in 15 minutes or 1 hour intervals). Refer to [Aggregation intervals](https://developers.cloudflare.com/radar/concepts/aggregation-intervals/). When omitted, the interval is auto-selected from the requested date range; finer intervals are only available for shorter ranges. If the requested interval is too granular for the date range, the request is rejected.`,choices:[`15m`,`1h`,`1d`,`1w`]}).option(`name`,{type:`string`,description:`Array of names used to label the series in the response.`}).option(`date-range`,{type:`string`,description:"Filters results by relative date range ending at the current time, with each value producing a separate series. Use `<n>d` for days (up to `364d`) or `<n>w` for weeks (up to `52w`). Append `control` to request the equivalent previous period for comparison: the comparison window is shifted back by the current window's length rounded up to a whole number of weeks, so it keeps the same weekday alignment and does not overlap the current window (e.g. `7dcontrol` covers days -14 to -7, `10dcontrol` covers days -24 to -14). For example, pass `7d` and `7dcontrol` to compare this week with the previous week. All series must resolve to the same duration as the main series; relative ranges (including `control`) satisfy this automatically. Use this parameter or set specific start and end dates (`dateStart` and `dateEnd` parameters)."}).option(`date-start`,{type:`string`,description:"Start of the date range. Alternative to `dateRange`; provide together with `dateEnd`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`date-end`,{type:`string`,description:"End of the date range (inclusive). Alternative to `dateRange`; provide together with `dateStart`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`asn`,{type:`string`,description:"Filters results by Autonomous System. Specify one or more Autonomous System Numbers (ASNs) as a comma-separated list. Prefix with `-` to exclude ASNs from results. For example, `-174, 3356` excludes results from AS174, but includes results from AS3356."}).option(`location`,{type:`string`,description:"Filters results by location. Specify a comma-separated list of alpha-2 codes. Prefix with `-` to exclude locations from results. For example, `-US,PT` excludes results from the US, but includes results from PT."}).option(`continent`,{type:`string`,description:"Filters results by continent. Specify a comma-separated list of alpha-2 codes. Prefix with `-` to exclude continents from results. For example, `-EU,NA` excludes results from EU, but includes results from NA."}).option(`geo-id`,{type:`string`,description:"Filters results by Geolocation. Specify a comma-separated list of GeoNames IDs. Prefix with `-` to exclude geoIds from results. For example, `-2267056,360689` excludes results from the 2267056 (Lisbon), but includes results from 5128638 (New York)."}).option(`limit-per-group`,{type:`number`,description:`Limits the number of objects per group to the top items within the specified time range. When item count exceeds the limit, extra items appear grouped under an "other" category. Only supported on high-cardinality dimensions; otherwise the request is rejected. Minimum value is 2.`}).option(`normalization`,{type:`string`,description:"Normalization method applied to the results. Refer to [Normalization methods](https://developers.cloudflare.com/radar/concepts/normalization/). `PERCENTAGE_CHANGE` requires exactly one comparison series (e.g. a `control` date range).",choices:[`PERCENTAGE`,`MIN0_MAX`,`PERCENTAGE_CHANGE`]}).option(`product`,{type:`string`,description:`Filters the results by network traffic product types.`}).option(`format`,{type:`string`,description:`Format in which results will be returned.`,choices:[`JSON`,`CSV`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const ns={command:`timeseries-groups <dimension>`,describe:`Get time series distribution of network traffic by dimension`,builder:ts,handler:async e=>a({command:`radar netflows timeseries-groups`,classification:{safeFlags:[`agg-interval`,`normalization`,`format`,`dry-run`]}},e,async()=>{let a={aggInterval:e[`agg-interval`],name:e.name,dateRange:e[`date-range`],dateStart:e[`date-start`],dateEnd:e[`date-end`],asn:e.asn,location:e.location,continent:e.continent,geoId:e[`geo-id`],limitPerGroup:e[`limit-per-group`],normalization:e.normalization,product:e.product,format:e.format};if(e.dryRun){r({command:`cf radar netflows timeseries-groups`,method:`GET`,url:`https://api.cloudflare.com/client/v4/radar/netflows/timeseries_groups/${e.dimension==null?`<dimension>`:encodeURIComponent(String(e.dimension))}`,pathParams:{dimension:String(e.dimension??``)},query:a,bodyKind:`none`});return}let o=await t(e),s=await i(`Loading`,async()=>o.send(es,{dimension:e.dimension,...a}));n(s,{successLabel:`Loaded`})})};var rs={method:`GET`,path:()=>`/radar/netflows/timeseries`,query:[`aggInterval`,`name`,`dateRange`,`dateStart`,`dateEnd`,`product`,`asn`,`location`,`continent`,`geoId`,`normalization`,`format`],errors:{400:`BadRequestError`}};function is(e){return e.usage(`$0 radar netflows timeseries
|
|
233
|
-
|
|
234
|
-
Retrieves network traffic (NetFlows) over time.`).option(`agg-interval`,{type:`string`,description:`Aggregation interval of the results (e.g., in 15 minutes or 1 hour intervals). Refer to [Aggregation intervals](https://developers.cloudflare.com/radar/concepts/aggregation-intervals/). When omitted, the interval is auto-selected from the requested date range; finer intervals are only available for shorter ranges. If the requested interval is too granular for the date range, the request is rejected.`,choices:[`15m`,`1h`,`1d`,`1w`]}).option(`name`,{type:`string`,description:`Array of names used to label the series in the response.`}).option(`date-range`,{type:`string`,description:"Filters results by relative date range ending at the current time, with each value producing a separate series. Use `<n>d` for days (up to `364d`) or `<n>w` for weeks (up to `52w`). Append `control` to request the equivalent previous period for comparison: the comparison window is shifted back by the current window's length rounded up to a whole number of weeks, so it keeps the same weekday alignment and does not overlap the current window (e.g. `7dcontrol` covers days -14 to -7, `10dcontrol` covers days -24 to -14). For example, pass `7d` and `7dcontrol` to compare this week with the previous week. All series must resolve to the same duration as the main series; relative ranges (including `control`) satisfy this automatically. Use this parameter or set specific start and end dates (`dateStart` and `dateEnd` parameters)."}).option(`date-start`,{type:`string`,description:"Start of the date range. Alternative to `dateRange`; provide together with `dateEnd`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`date-end`,{type:`string`,description:"End of the date range (inclusive). Alternative to `dateRange`; provide together with `dateStart`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`product`,{type:`string`,description:`Filters the results by network traffic product types.`}).option(`asn`,{type:`string`,description:"Filters results by Autonomous System. Specify one or more Autonomous System Numbers (ASNs) as a comma-separated list. Prefix with `-` to exclude ASNs from results. For example, `-174, 3356` excludes results from AS174, but includes results from AS3356."}).option(`location`,{type:`string`,description:"Filters results by location. Specify a comma-separated list of alpha-2 codes. Prefix with `-` to exclude locations from results. For example, `-US,PT` excludes results from the US, but includes results from PT."}).option(`continent`,{type:`string`,description:"Filters results by continent. Specify a comma-separated list of alpha-2 codes. Prefix with `-` to exclude continents from results. For example, `-EU,NA` excludes results from EU, but includes results from NA."}).option(`geo-id`,{type:`string`,description:"Filters results by Geolocation. Specify a comma-separated list of GeoNames IDs. Prefix with `-` to exclude geoIds from results. For example, `-2267056,360689` excludes results from the 2267056 (Lisbon), but includes results from 5128638 (New York)."}).option(`normalization`,{type:`string`,description:"Normalization method applied to the results. Refer to [Normalization methods](https://developers.cloudflare.com/radar/concepts/normalization/). `PERCENTAGE_CHANGE` requires exactly one comparison series (e.g. a `control` date range).",choices:[`PERCENTAGE_CHANGE`,`MIN0_MAX`]}).option(`format`,{type:`string`,description:`Format in which results will be returned.`,choices:[`JSON`,`CSV`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const as={command:`timeseries`,describe:`Get network traffic time series`,builder:is,handler:async e=>a({command:`radar netflows timeseries`,classification:{safeFlags:[`agg-interval`,`normalization`,`format`,`dry-run`]}},e,async()=>{let a={aggInterval:e[`agg-interval`],name:e.name,dateRange:e[`date-range`],dateStart:e[`date-start`],dateEnd:e[`date-end`],product:e.product,asn:e.asn,location:e.location,continent:e.continent,geoId:e[`geo-id`],normalization:e.normalization,format:e.format};if(e.dryRun){r({command:`cf radar netflows timeseries`,method:`GET`,url:`https://api.cloudflare.com/client/v4/radar/netflows/timeseries`,pathParams:{},query:a,bodyKind:`none`});return}let o=await t(e),s=await i(`Loading`,async()=>o.send(rs,a));n(s,{successLabel:`Loaded`})})};var os={method:`GET`,path:()=>`/radar/netflows/top/ases`,query:[`limit`,`name`,`dateRange`,`dateStart`,`dateEnd`,`asn`,`location`,`continent`,`geoId`,`format`],errors:{404:`NotFoundError`}};function ss(e){return e.usage(`$0 radar netflows top ases
|
|
235
|
-
|
|
236
|
-
Retrieves the top autonomous systems by network traffic (NetFlows).`).option(`limit`,{type:`number`,description:`Limits the number of objects returned in the response.`}).option(`name`,{type:`string`,description:`Array of names used to label the series in the response.`}).option(`date-range`,{type:`string`,description:"Filters results by relative date range ending at the current time, with each value producing a separate series. Use `<n>d` for days (up to `364d`) or `<n>w` for weeks (up to `52w`). Append `control` to request the equivalent previous period for comparison: the comparison window is shifted back by the current window's length rounded up to a whole number of weeks, so it keeps the same weekday alignment and does not overlap the current window (e.g. `7dcontrol` covers days -14 to -7, `10dcontrol` covers days -24 to -14). For example, pass `7d` and `7dcontrol` to compare this week with the previous week. All series must resolve to the same duration as the main series; relative ranges (including `control`) satisfy this automatically. Use this parameter or set specific start and end dates (`dateStart` and `dateEnd` parameters)."}).option(`date-start`,{type:`string`,description:"Start of the date range. Alternative to `dateRange`; provide together with `dateEnd`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`date-end`,{type:`string`,description:"End of the date range (inclusive). Alternative to `dateRange`; provide together with `dateStart`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`asn`,{type:`string`,description:"Filters results by Autonomous System. Specify one or more Autonomous System Numbers (ASNs) as a comma-separated list. Prefix with `-` to exclude ASNs from results. For example, `-174, 3356` excludes results from AS174, but includes results from AS3356."}).option(`location`,{type:`string`,description:"Filters results by location. Specify a comma-separated list of alpha-2 codes. Prefix with `-` to exclude locations from results. For example, `-US,PT` excludes results from the US, but includes results from PT."}).option(`continent`,{type:`string`,description:"Filters results by continent. Specify a comma-separated list of alpha-2 codes. Prefix with `-` to exclude continents from results. For example, `-EU,NA` excludes results from EU, but includes results from NA."}).option(`geo-id`,{type:`string`,description:"Filters results by Geolocation. Specify a comma-separated list of GeoNames IDs. Prefix with `-` to exclude geoIds from results. For example, `-2267056,360689` excludes results from the 2267056 (Lisbon), but includes results from 5128638 (New York)."}).option(`format`,{type:`string`,description:`Format in which results will be returned.`,choices:[`JSON`,`CSV`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const cs={command:`ases`,describe:`Get top ASes by network traffic`,builder:ss,handler:async e=>a({command:`radar netflows top ases`,classification:{safeFlags:[`format`,`dry-run`]}},e,async()=>{let a={limit:e.limit,name:e.name,dateRange:e[`date-range`],dateStart:e[`date-start`],dateEnd:e[`date-end`],asn:e.asn,location:e.location,continent:e.continent,geoId:e[`geo-id`],format:e.format};if(e.dryRun){r({command:`cf radar netflows top ases`,method:`GET`,url:`https://api.cloudflare.com/client/v4/radar/netflows/top/ases`,pathParams:{},query:a,bodyKind:`none`});return}let o=await t(e),s=await i(`Loading`,async()=>o.send(os,a));n(s,{successLabel:`Loaded`})})};var ls={method:`GET`,path:()=>`/radar/netflows/top/locations`,query:[`limit`,`name`,`dateRange`,`dateStart`,`dateEnd`,`asn`,`location`,`continent`,`geoId`,`format`],errors:{404:`NotFoundError`}};function us(e){return e.usage(`$0 radar netflows top locations
|
|
237
|
-
|
|
238
|
-
Retrieves the top locations by network traffic (NetFlows).`).option(`limit`,{type:`number`,description:`Limits the number of objects returned in the response.`}).option(`name`,{type:`string`,description:`Array of names used to label the series in the response.`}).option(`date-range`,{type:`string`,description:"Filters results by relative date range ending at the current time, with each value producing a separate series. Use `<n>d` for days (up to `364d`) or `<n>w` for weeks (up to `52w`). Append `control` to request the equivalent previous period for comparison: the comparison window is shifted back by the current window's length rounded up to a whole number of weeks, so it keeps the same weekday alignment and does not overlap the current window (e.g. `7dcontrol` covers days -14 to -7, `10dcontrol` covers days -24 to -14). For example, pass `7d` and `7dcontrol` to compare this week with the previous week. All series must resolve to the same duration as the main series; relative ranges (including `control`) satisfy this automatically. Use this parameter or set specific start and end dates (`dateStart` and `dateEnd` parameters)."}).option(`date-start`,{type:`string`,description:"Start of the date range. Alternative to `dateRange`; provide together with `dateEnd`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`date-end`,{type:`string`,description:"End of the date range (inclusive). Alternative to `dateRange`; provide together with `dateStart`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`asn`,{type:`string`,description:"Filters results by Autonomous System. Specify one or more Autonomous System Numbers (ASNs) as a comma-separated list. Prefix with `-` to exclude ASNs from results. For example, `-174, 3356` excludes results from AS174, but includes results from AS3356."}).option(`location`,{type:`string`,description:"Filters results by location. Specify a comma-separated list of alpha-2 codes. Prefix with `-` to exclude locations from results. For example, `-US,PT` excludes results from the US, but includes results from PT."}).option(`continent`,{type:`string`,description:"Filters results by continent. Specify a comma-separated list of alpha-2 codes. Prefix with `-` to exclude continents from results. For example, `-EU,NA` excludes results from EU, but includes results from NA."}).option(`geo-id`,{type:`string`,description:"Filters results by Geolocation. Specify a comma-separated list of GeoNames IDs. Prefix with `-` to exclude geoIds from results. For example, `-2267056,360689` excludes results from the 2267056 (Lisbon), but includes results from 5128638 (New York)."}).option(`format`,{type:`string`,description:`Format in which results will be returned.`,choices:[`JSON`,`CSV`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const ds={command:`locations`,describe:`Get top locations by network traffic`,builder:us,handler:async e=>a({command:`radar netflows top locations`,classification:{safeFlags:[`format`,`dry-run`]}},e,async()=>{let a={limit:e.limit,name:e.name,dateRange:e[`date-range`],dateStart:e[`date-start`],dateEnd:e[`date-end`],asn:e.asn,location:e.location,continent:e.continent,geoId:e[`geo-id`],format:e.format};if(e.dryRun){r({command:`cf radar netflows top locations`,method:`GET`,url:`https://api.cloudflare.com/client/v4/radar/netflows/top/locations`,pathParams:{},query:a,bodyKind:`none`});return}let o=await t(e),s=await i(`Loading`,async()=>o.send(ls,a));n(s,{successLabel:`Loaded`})})},fs={command:`top`,describe:`Operations for netflows.top`,builder:e=>e.command(cs).command(ds).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},ps={command:`netflows`,describe:`Network-layer traffic flow data and volumetric trend analysis`,builder:e=>e.command($o).command(as).command(ns).command(fs).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var ms={method:`GET`,path:t=>e`/radar/origins/${t.slug}`,query:[`format`],errors:{404:`NotFoundError`}};function hs(e){return e.usage(`$0 radar origins get <slug>
|
|
239
|
-
|
|
240
|
-
Retrieves the requested origin information with its regions.`).positional(`slug`,{type:`string`,description:`Origin slug.`,demandOption:!0}).option(`format`,{type:`string`,description:`Format in which results will be returned.`,choices:[`JSON`,`CSV`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const gs={command:`get <slug>`,describe:`Get Origin details`,builder:hs,handler:async e=>a({command:`radar origins get`,classification:{safeFlags:[`format`,`dry-run`]}},e,async()=>{let a={format:e.format};if(e.dryRun){r({command:`cf radar origins get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/radar/origins/${e.slug==null?`<slug>`:encodeURIComponent(String(e.slug))}`,pathParams:{slug:String(e.slug??``)},query:a,bodyKind:`none`});return}let o=await t(e),s=await i(`Loading`,async()=>o.send(ms,{slug:e.slug,...a}));n(s,{successLabel:`Loaded`})})};var _s={method:`GET`,path:()=>`/radar/origins`,query:[`limit`,`offset`,`format`],errors:{400:`BadRequestError`}};function vs(e){return e.usage(`$0 radar origins list
|
|
241
|
-
|
|
242
|
-
Retrieves a list of origins with their regions.`).option(`limit`,{type:`number`,description:`Limits the number of objects returned in the response.`}).option(`offset`,{type:`number`,description:`Skips the specified number of objects before fetching the results.`}).option(`format`,{type:`string`,description:`Format in which results will be returned.`,choices:[`JSON`,`CSV`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const ys={command:`list`,describe:`List Origins`,builder:vs,handler:async e=>a({command:`radar origins list`,classification:{safeFlags:[`format`,`dry-run`]}},e,async()=>{let a={limit:e.limit,offset:e.offset,format:e.format};if(e.dryRun){r({command:`cf radar origins list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/radar/origins`,pathParams:{},query:a,bodyKind:`none`});return}let o=await t(e),s=await i(`Loading`,async()=>o.send(_s,a));n(s,{successLabel:`Loaded`})})};var bs={method:`GET`,path:t=>e`/radar/origins/summary/${t.dimension}`,query:[`name`,`dateRange`,`dateStart`,`dateEnd`,`limitPerGroup`,`origin`,`metric`,`region`,`format`],errors:{400:`BadRequestError`}};function xs(e){return e.usage(`$0 radar origins summary <dimension>
|
|
243
|
-
|
|
244
|
-
Retrieves an aggregated summary of origin metrics grouped by the specified dimension.`).positional(`dimension`,{type:`string`,description:"Specifies the origin attribute by which to group the results. `ORIGIN` groups across all providers and does not accept an `origin` or `region`. `REGION` requires an `origin`. `SUCCESS_RATE` and `PERCENTILE` require both an `origin` and a `region` and constrain the `metric` (`SUCCESS_RATE` supports only `REQUESTS`; `PERCENTILE` supports any metric except `REQUESTS`). `limitPerGroup` is only supported on the `REGION` dimension.",demandOption:!0}).option(`name`,{type:`string`,description:`Array of names used to label the series in the response.`}).option(`date-range`,{type:`string`,description:"Filters results by relative date range ending at the current time, with each value producing a separate series. Use `<n>d` for days (up to `364d`) or `<n>w` for weeks (up to `52w`). Append `control` to request the equivalent previous period for comparison: the comparison window is shifted back by the current window's length rounded up to a whole number of weeks, so it keeps the same weekday alignment and does not overlap the current window (e.g. `7dcontrol` covers days -14 to -7, `10dcontrol` covers days -24 to -14). For example, pass `7d` and `7dcontrol` to compare this week with the previous week. All series must resolve to the same duration as the main series; relative ranges (including `control`) satisfy this automatically. Use this parameter or set specific start and end dates (`dateStart` and `dateEnd` parameters)."}).option(`date-start`,{type:`string`,description:"Start of the date range. Alternative to `dateRange`; provide together with `dateEnd`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`date-end`,{type:`string`,description:"End of the date range (inclusive). Alternative to `dateRange`; provide together with `dateStart`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`limit-per-group`,{type:`number`,description:`Limits the number of objects per group to the top items within the specified time range. When item count exceeds the limit, extra items appear grouped under an "other" category. Only supported on high-cardinality dimensions; otherwise the request is rejected. Minimum value is 2.`}).option(`origin`,{type:`string`,description:"Filters results by origin. Required for every dimension except `ORIGIN`; must not be set on the `ORIGIN` dimension, which groups across all providers."}).option(`metric`,{type:`string`,description:"Specifies the metric to retrieve. Allowed metrics depend on the selected dimension (see the `dimension` path parameter).",choices:[`CONNECTION_FAILURES`,`REQUESTS`,`RESPONSE_HEADER_RECEIVE_DURATION`,`TCP_HANDSHAKE_DURATION`,`TCP_RTT`,`TLS_HANDSHAKE_DURATION`],demandOption:!0}).option(`region`,{type:`string`,description:"Filters results by origin region. Requires `origin` to be set and is validated against it."}).option(`format`,{type:`string`,description:`Format in which results will be returned.`,choices:[`JSON`,`CSV`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const Ss={command:`summary <dimension>`,describe:`Get origin metrics distribution by dimension`,builder:xs,handler:async e=>a({command:`radar origins summary`,classification:{safeFlags:[`metric`,`format`,`dry-run`]}},e,async()=>{let a={name:e.name,dateRange:e[`date-range`],dateStart:e[`date-start`],dateEnd:e[`date-end`],limitPerGroup:e[`limit-per-group`],origin:e.origin,metric:e.metric,region:e.region,format:e.format};if(e.dryRun){r({command:`cf radar origins summary`,method:`GET`,url:`https://api.cloudflare.com/client/v4/radar/origins/summary/${e.dimension==null?`<dimension>`:encodeURIComponent(String(e.dimension))}`,pathParams:{dimension:String(e.dimension??``)},query:a,bodyKind:`none`});return}let o=await t(e),s=await i(`Loading`,async()=>o.send(bs,{dimension:e.dimension,...a}));n(s,{successLabel:`Loaded`})})};var Cs={method:`GET`,path:t=>e`/radar/origins/timeseries_groups/${t.dimension}`,query:[`aggInterval`,`name`,`dateRange`,`dateStart`,`dateEnd`,`limitPerGroup`,`origin`,`metric`,`region`,`normalization`,`format`],errors:{400:`BadRequestError`}};function ws(e){return e.usage(`$0 radar origins timeseries-groups <dimension>
|
|
245
|
-
|
|
246
|
-
Retrieves the distribution of origin metrics grouped by the specified dimension over time.`).positional(`dimension`,{type:`string`,description:"Specifies the origin attribute by which to group the results. `ORIGIN` groups across all providers and does not accept an `origin` or `region`. `REGION` requires an `origin`. `SUCCESS_RATE` and `PERCENTILE` require both an `origin` and a `region` and constrain the `metric` (`SUCCESS_RATE` supports only `REQUESTS`; `PERCENTILE` supports any metric except `REQUESTS`). `limitPerGroup` is only supported on the `REGION` dimension.",demandOption:!0}).option(`agg-interval`,{type:`string`,description:`Aggregation interval of the results (e.g., in 15 minutes or 1 hour intervals). Refer to [Aggregation intervals](https://developers.cloudflare.com/radar/concepts/aggregation-intervals/). When omitted, the interval is auto-selected from the requested date range; finer intervals are only available for shorter ranges. If the requested interval is too granular for the date range, the request is rejected.`,choices:[`15m`,`1h`,`1d`,`1w`]}).option(`name`,{type:`string`,description:`Array of names used to label the series in the response.`}).option(`date-range`,{type:`string`,description:"Filters results by relative date range ending at the current time, with each value producing a separate series. Use `<n>d` for days (up to `364d`) or `<n>w` for weeks (up to `52w`). Append `control` to request the equivalent previous period for comparison: the comparison window is shifted back by the current window's length rounded up to a whole number of weeks, so it keeps the same weekday alignment and does not overlap the current window (e.g. `7dcontrol` covers days -14 to -7, `10dcontrol` covers days -24 to -14). For example, pass `7d` and `7dcontrol` to compare this week with the previous week. All series must resolve to the same duration as the main series; relative ranges (including `control`) satisfy this automatically. Use this parameter or set specific start and end dates (`dateStart` and `dateEnd` parameters)."}).option(`date-start`,{type:`string`,description:"Start of the date range. Alternative to `dateRange`; provide together with `dateEnd`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`date-end`,{type:`string`,description:"End of the date range (inclusive). Alternative to `dateRange`; provide together with `dateStart`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`limit-per-group`,{type:`number`,description:`Limits the number of objects per group to the top items within the specified time range. When item count exceeds the limit, extra items appear grouped under an "other" category. Only supported on high-cardinality dimensions; otherwise the request is rejected. Minimum value is 2.`}).option(`origin`,{type:`string`,description:"Filters results by origin. Required for every dimension except `ORIGIN`; must not be set on the `ORIGIN` dimension, which groups across all providers."}).option(`metric`,{type:`string`,description:"Specifies the metric to retrieve. Allowed metrics depend on the selected dimension (see the `dimension` path parameter).",choices:[`CONNECTION_FAILURES`,`REQUESTS`,`RESPONSE_HEADER_RECEIVE_DURATION`,`TCP_HANDSHAKE_DURATION`,`TCP_RTT`,`TLS_HANDSHAKE_DURATION`],demandOption:!0}).option(`region`,{type:`string`,description:"Filters results by origin region. Requires `origin` to be set and is validated against it."}).option(`normalization`,{type:`string`,description:`Normalization method applied to the results. Refer to [Normalization methods](https://developers.cloudflare.com/radar/concepts/normalization/).`,choices:[`PERCENTAGE`,`MIN0_MAX`]}).option(`format`,{type:`string`,description:`Format in which results will be returned.`,choices:[`JSON`,`CSV`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const Ts={command:`timeseries-groups <dimension>`,describe:`Get origin metrics time series grouped by dimension`,builder:ws,handler:async e=>a({command:`radar origins timeseries-groups`,classification:{safeFlags:[`agg-interval`,`metric`,`normalization`,`format`,`dry-run`]}},e,async()=>{let a={aggInterval:e[`agg-interval`],name:e.name,dateRange:e[`date-range`],dateStart:e[`date-start`],dateEnd:e[`date-end`],limitPerGroup:e[`limit-per-group`],origin:e.origin,metric:e.metric,region:e.region,normalization:e.normalization,format:e.format};if(e.dryRun){r({command:`cf radar origins timeseries-groups`,method:`GET`,url:`https://api.cloudflare.com/client/v4/radar/origins/timeseries_groups/${e.dimension==null?`<dimension>`:encodeURIComponent(String(e.dimension))}`,pathParams:{dimension:String(e.dimension??``)},query:a,bodyKind:`none`});return}let o=await t(e),s=await i(`Loading`,async()=>o.send(Cs,{dimension:e.dimension,...a}));n(s,{successLabel:`Loaded`})})};var Es={method:`GET`,path:()=>`/radar/origins/timeseries`,query:[`aggInterval`,`name`,`dateRange`,`dateStart`,`dateEnd`,`origin`,`metric`,`region`,`format`],errors:{400:`BadRequestError`}};function Ds(e){return e.usage(`$0 radar origins timeseries
|
|
247
|
-
|
|
248
|
-
Retrieves the time series of origin metrics for the specified origin.`).option(`agg-interval`,{type:`string`,description:`Aggregation interval of the results (e.g., in 15 minutes or 1 hour intervals). Refer to [Aggregation intervals](https://developers.cloudflare.com/radar/concepts/aggregation-intervals/). When omitted, the interval is auto-selected from the requested date range; finer intervals are only available for shorter ranges. If the requested interval is too granular for the date range, the request is rejected.`,choices:[`15m`,`1h`,`1d`,`1w`]}).option(`name`,{type:`string`,description:`Array of names used to label the series in the response.`}).option(`date-range`,{type:`string`,description:"Filters results by relative date range ending at the current time, with each value producing a separate series. Use `<n>d` for days (up to `364d`) or `<n>w` for weeks (up to `52w`). Append `control` to request the equivalent previous period for comparison: the comparison window is shifted back by the current window's length rounded up to a whole number of weeks, so it keeps the same weekday alignment and does not overlap the current window (e.g. `7dcontrol` covers days -14 to -7, `10dcontrol` covers days -24 to -14). For example, pass `7d` and `7dcontrol` to compare this week with the previous week. All series must resolve to the same duration as the main series; relative ranges (including `control`) satisfy this automatically. Use this parameter or set specific start and end dates (`dateStart` and `dateEnd` parameters)."}).option(`date-start`,{type:`string`,description:"Start of the date range. Alternative to `dateRange`; provide together with `dateEnd`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`date-end`,{type:`string`,description:"End of the date range (inclusive). Alternative to `dateRange`; provide together with `dateStart`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`origin`,{type:`string`,description:`Filters results by origin.`,demandOption:!0}).option(`metric`,{type:`string`,description:"Specifies the metric to retrieve. Without a `region`, only `REQUESTS` or `CONNECTION_FAILURES` are available; specify a `region` to use the latency metrics.",choices:[`CONNECTION_FAILURES`,`REQUESTS`,`RESPONSE_HEADER_RECEIVE_DURATION`,`TCP_HANDSHAKE_DURATION`,`TCP_RTT`,`TLS_HANDSHAKE_DURATION`],demandOption:!0}).option(`region`,{type:`string`,description:"Filters results by origin region. Requires `origin` to be set and is validated against it."}).option(`format`,{type:`string`,description:`Format in which results will be returned.`,choices:[`JSON`,`CSV`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const Os={command:`timeseries`,describe:`Get origin metrics time series`,builder:Ds,handler:async e=>a({command:`radar origins timeseries`,classification:{safeFlags:[`agg-interval`,`metric`,`format`,`dry-run`]}},e,async()=>{let a={aggInterval:e[`agg-interval`],name:e.name,dateRange:e[`date-range`],dateStart:e[`date-start`],dateEnd:e[`date-end`],origin:e.origin,metric:e.metric,region:e.region,format:e.format};if(e.dryRun){r({command:`cf radar origins timeseries`,method:`GET`,url:`https://api.cloudflare.com/client/v4/radar/origins/timeseries`,pathParams:{},query:a,bodyKind:`none`});return}let o=await t(e),s=await i(`Loading`,async()=>o.send(Es,a));n(s,{successLabel:`Loaded`})})},ks={command:`origins`,describe:`Cloud and hosting origin providers (e.g. Amazon, by region) and their traffic metrics`,builder:e=>e.command(gs).command(ys).command(Ss).command(Os).command(Ts).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var As={method:`GET`,path:t=>e`/radar/post_quantum/origin/summary/${t.dimension}`,query:[`name`,`dateRange`,`dateStart`,`dateEnd`,`format`],errors:{400:`BadRequestError`}};function js(e){return e.usage(`$0 radar post-quantum origin summary <dimension>
|
|
249
|
-
|
|
250
|
-
Returns a summary of origin post-quantum data grouped by the specified dimension.`).positional(`dimension`,{type:`string`,description:`Specifies the origin post-quantum data dimension by which to group the results.`,demandOption:!0}).option(`name`,{type:`string`,description:`Array of names used to label the series in the response.`}).option(`date-range`,{type:`string`,description:"Filters results by relative date range ending at the current time, with each value producing a separate series. Use `<n>d` for days (up to `364d`) or `<n>w` for weeks (up to `52w`). Append `control` to request the equivalent previous period for comparison: the comparison window is shifted back by the current window's length rounded up to a whole number of weeks, so it keeps the same weekday alignment and does not overlap the current window (e.g. `7dcontrol` covers days -14 to -7, `10dcontrol` covers days -24 to -14). For example, pass `7d` and `7dcontrol` to compare this week with the previous week. All series must resolve to the same duration as the main series; relative ranges (including `control`) satisfy this automatically. Use this parameter or set specific start and end dates (`dateStart` and `dateEnd` parameters)."}).option(`date-start`,{type:`string`,description:"Start of the date range. Alternative to `dateRange`; provide together with `dateEnd`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`date-end`,{type:`string`,description:"End of the date range (inclusive). Alternative to `dateRange`; provide together with `dateStart`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`format`,{type:`string`,description:`Format in which results will be returned.`,choices:[`JSON`,`CSV`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const Ms={command:`summary <dimension>`,describe:`Get Origin Post-Quantum Data Summary`,builder:js,handler:async e=>a({command:`radar post-quantum origin summary`,classification:{safeFlags:[`format`,`dry-run`]}},e,async()=>{let a={name:e.name,dateRange:e[`date-range`],dateStart:e[`date-start`],dateEnd:e[`date-end`],format:e.format};if(e.dryRun){r({command:`cf radar post-quantum origin summary`,method:`GET`,url:`https://api.cloudflare.com/client/v4/radar/post_quantum/origin/summary/${e.dimension==null?`<dimension>`:encodeURIComponent(String(e.dimension))}`,pathParams:{dimension:String(e.dimension??``)},query:a,bodyKind:`none`});return}let o=await t(e),s=await i(`Loading`,async()=>o.send(As,{dimension:e.dimension,...a}));n(s,{successLabel:`Loaded`})})};var Ns={method:`GET`,path:t=>e`/radar/post_quantum/origin/timeseries_groups/${t.dimension}`,query:[`name`,`dateRange`,`dateStart`,`dateEnd`,`format`],errors:{400:`BadRequestError`}};function Ps(e){return e.usage(`$0 radar post-quantum origin timeseries-groups <dimension>
|
|
251
|
-
|
|
252
|
-
Returns a timeseries of origin post-quantum data grouped by the specified dimension.`).positional(`dimension`,{type:`string`,description:`Specifies the origin post-quantum data dimension by which to group the results.`,demandOption:!0}).option(`name`,{type:`string`,description:`Array of names used to label the series in the response.`}).option(`date-range`,{type:`string`,description:"Filters results by relative date range ending at the current time, with each value producing a separate series. Use `<n>d` for days (up to `364d`) or `<n>w` for weeks (up to `52w`). Append `control` to request the equivalent previous period for comparison: the comparison window is shifted back by the current window's length rounded up to a whole number of weeks, so it keeps the same weekday alignment and does not overlap the current window (e.g. `7dcontrol` covers days -14 to -7, `10dcontrol` covers days -24 to -14). For example, pass `7d` and `7dcontrol` to compare this week with the previous week. All series must resolve to the same duration as the main series; relative ranges (including `control`) satisfy this automatically. Use this parameter or set specific start and end dates (`dateStart` and `dateEnd` parameters)."}).option(`date-start`,{type:`string`,description:"Start of the date range. Alternative to `dateRange`; provide together with `dateEnd`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`date-end`,{type:`string`,description:"End of the date range (inclusive). Alternative to `dateRange`; provide together with `dateStart`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`format`,{type:`string`,description:`Format in which results will be returned.`,choices:[`JSON`,`CSV`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const Fs={command:`timeseries-groups <dimension>`,describe:`Get Origin Post-Quantum Data Over Time`,builder:Ps,handler:async e=>a({command:`radar post-quantum origin timeseries-groups`,classification:{safeFlags:[`format`,`dry-run`]}},e,async()=>{let a={name:e.name,dateRange:e[`date-range`],dateStart:e[`date-start`],dateEnd:e[`date-end`],format:e.format};if(e.dryRun){r({command:`cf radar post-quantum origin timeseries-groups`,method:`GET`,url:`https://api.cloudflare.com/client/v4/radar/post_quantum/origin/timeseries_groups/${e.dimension==null?`<dimension>`:encodeURIComponent(String(e.dimension))}`,pathParams:{dimension:String(e.dimension??``)},query:a,bodyKind:`none`});return}let o=await t(e),s=await i(`Loading`,async()=>o.send(Ns,{dimension:e.dimension,...a}));n(s,{successLabel:`Loaded`})})},Is={command:`origin`,describe:`Operations for post-quantum.origin`,builder:e=>e.command(Ms).command(Fs).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var Ls={method:`GET`,path:()=>`/radar/post_quantum/tls/support`,query:[`host`],errors:{400:`BadRequestError`}};function Rs(e){return e.usage(`$0 radar post-quantum tls support
|
|
253
|
-
|
|
254
|
-
Tests whether a hostname or IP address supports Post-Quantum (PQ) TLS key exchange. Returns information about the negotiated key exchange algorithm, whether it uses PQ cryptography, and any detected TLS implementation bugs (Split ClientHello, HRR failure, etc.).`).option(`host`,{type:`string`,description:`Hostname or IP address to test for Post-Quantum TLS support, optionally with port (defaults to 443).`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const zs={command:`support`,describe:`Check Post-Quantum TLS support`,builder:Rs,handler:async e=>a({command:`radar post-quantum tls support`,classification:{safeFlags:[`dry-run`]}},e,async()=>{let a={host:e.host};if(e.dryRun){r({command:`cf radar post-quantum tls support`,method:`GET`,url:`https://api.cloudflare.com/client/v4/radar/post_quantum/tls/support`,pathParams:{},query:a,bodyKind:`none`});return}let o=await t(e),s=await i(`Loading`,async()=>o.send(Ls,a));n(s,{successLabel:`Loaded`})})},Bs={command:`tls`,describe:`Operations for post-quantum.tls`,builder:e=>e.command(zs).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},Vs={command:`post-quantum`,describe:`Post-quantum encryption adoption and deployment trends across the Internet`,builder:e=>e.command(Is).command(Bs).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var Hs={method:`GET`,path:()=>`/radar/quality/iqi/summary`,query:[`name`,`dateRange`,`dateStart`,`dateEnd`,`asn`,`location`,`continent`,`metric`,`format`],errors:{400:`BadRequestError`}};function Us(e){return e.usage(`$0 radar quality iqi summary
|
|
255
|
-
|
|
256
|
-
Retrieves a summary (percentiles) of bandwidth, latency, or DNS response time from the Radar Internet Quality Index (IQI).`).option(`name`,{type:`string`,description:`Array of names used to label the series in the response.`}).option(`date-range`,{type:`string`,description:"Filters results by relative date range ending at the current time, with each value producing a separate series. Use `<n>d` for days (up to `364d`) or `<n>w` for weeks (up to `52w`). Append `control` to request the equivalent previous period for comparison: the comparison window is shifted back by the current window's length rounded up to a whole number of weeks, so it keeps the same weekday alignment and does not overlap the current window (e.g. `7dcontrol` covers days -14 to -7, `10dcontrol` covers days -24 to -14). For example, pass `7d` and `7dcontrol` to compare this week with the previous week. All series must resolve to the same duration as the main series; relative ranges (including `control`) satisfy this automatically. Use this parameter or set specific start and end dates (`dateStart` and `dateEnd` parameters)."}).option(`date-start`,{type:`string`,description:"Start of the date range. Alternative to `dateRange`; provide together with `dateEnd`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`date-end`,{type:`string`,description:"End of the date range (inclusive). Alternative to `dateRange`; provide together with `dateStart`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`asn`,{type:`string`,description:"Filters results by Autonomous System. Specify one or more Autonomous System Numbers (ASNs) as a comma-separated list. Prefix with `-` to exclude ASNs from results. For example, `-174, 3356` excludes results from AS174, but includes results from AS3356."}).option(`location`,{type:`string`,description:"Filters results by location. Specify a comma-separated list of alpha-2 codes. Prefix with `-` to exclude locations from results. For example, `-US,PT` excludes results from the US, but includes results from PT."}).option(`continent`,{type:`string`,description:"Filters results by continent. Specify a comma-separated list of alpha-2 codes. Prefix with `-` to exclude continents from results. For example, `-EU,NA` excludes results from EU, but includes results from NA."}).option(`metric`,{type:`string`,description:`Defines which metric to return (bandwidth, latency, or DNS response time).`,choices:[`BANDWIDTH`,`DNS`,`LATENCY`],demandOption:!0}).option(`format`,{type:`string`,description:`Format in which results will be returned.`,choices:[`JSON`,`CSV`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const Ws={command:`summary`,describe:`Get Internet Quality Index (IQI) summary`,builder:Us,handler:async e=>a({command:`radar quality iqi summary`,classification:{safeFlags:[`metric`,`format`,`dry-run`]}},e,async()=>{let a={name:e.name,dateRange:e[`date-range`],dateStart:e[`date-start`],dateEnd:e[`date-end`],asn:e.asn,location:e.location,continent:e.continent,metric:e.metric,format:e.format};if(e.dryRun){r({command:`cf radar quality iqi summary`,method:`GET`,url:`https://api.cloudflare.com/client/v4/radar/quality/iqi/summary`,pathParams:{},query:a,bodyKind:`none`});return}let o=await t(e),s=await i(`Loading`,async()=>o.send(Hs,a));n(s,{successLabel:`Loaded`})})};var Gs={method:`GET`,path:()=>`/radar/quality/iqi/timeseries_groups`,query:[`aggInterval`,`name`,`dateRange`,`dateStart`,`dateEnd`,`asn`,`location`,`continent`,`interpolation`,`metric`,`format`],errors:{400:`BadRequestError`}};function Ks(e){return e.usage(`$0 radar quality iqi timeseries-groups
|
|
257
|
-
|
|
258
|
-
Retrieves a time series (percentiles) of bandwidth, latency, or DNS response time from the Radar Internet Quality Index (IQI).`).option(`agg-interval`,{type:`string`,description:`Aggregation interval of the results (e.g., in 15 minutes or 1 hour intervals). Refer to [Aggregation intervals](https://developers.cloudflare.com/radar/concepts/aggregation-intervals/). When omitted, the interval is auto-selected from the requested date range; finer intervals are only available for shorter ranges. If the requested interval is too granular for the date range, the request is rejected.`,choices:[`15m`,`1h`,`1d`,`1w`]}).option(`name`,{type:`string`,description:`Array of names used to label the series in the response.`}).option(`date-range`,{type:`string`,description:"Filters results by relative date range ending at the current time, with each value producing a separate series. Use `<n>d` for days (up to `364d`) or `<n>w` for weeks (up to `52w`). Append `control` to request the equivalent previous period for comparison: the comparison window is shifted back by the current window's length rounded up to a whole number of weeks, so it keeps the same weekday alignment and does not overlap the current window (e.g. `7dcontrol` covers days -14 to -7, `10dcontrol` covers days -24 to -14). For example, pass `7d` and `7dcontrol` to compare this week with the previous week. All series must resolve to the same duration as the main series; relative ranges (including `control`) satisfy this automatically. Use this parameter or set specific start and end dates (`dateStart` and `dateEnd` parameters)."}).option(`date-start`,{type:`string`,description:"Start of the date range. Alternative to `dateRange`; provide together with `dateEnd`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`date-end`,{type:`string`,description:"End of the date range (inclusive). Alternative to `dateRange`; provide together with `dateStart`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`asn`,{type:`string`,description:"Filters results by Autonomous System. Specify one or more Autonomous System Numbers (ASNs) as a comma-separated list. Prefix with `-` to exclude ASNs from results. For example, `-174, 3356` excludes results from AS174, but includes results from AS3356."}).option(`location`,{type:`string`,description:"Filters results by location. Specify a comma-separated list of alpha-2 codes. Prefix with `-` to exclude locations from results. For example, `-US,PT` excludes results from the US, but includes results from PT."}).option(`continent`,{type:`string`,description:"Filters results by continent. Specify a comma-separated list of alpha-2 codes. Prefix with `-` to exclude continents from results. For example, `-EU,NA` excludes results from EU, but includes results from NA."}).option(`interpolation`,{type:`boolean`,description:`Enables interpolation for all series (using the average).`}).option(`metric`,{type:`string`,description:`Defines which metric to return (bandwidth, latency, or DNS response time).`,choices:[`BANDWIDTH`,`DNS`,`LATENCY`],demandOption:!0}).option(`format`,{type:`string`,description:`Format in which results will be returned.`,choices:[`JSON`,`CSV`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const qs={command:`timeseries-groups`,describe:`Get Internet Quality Index (IQI) time series`,builder:Ks,handler:async e=>a({command:`radar quality iqi timeseries-groups`,classification:{safeFlags:[`agg-interval`,`interpolation`,`metric`,`format`,`dry-run`]}},e,async()=>{let a={aggInterval:e[`agg-interval`],name:e.name,dateRange:e[`date-range`],dateStart:e[`date-start`],dateEnd:e[`date-end`],asn:e.asn,location:e.location,continent:e.continent,interpolation:e.interpolation,metric:e.metric,format:e.format};if(e.dryRun){r({command:`cf radar quality iqi timeseries-groups`,method:`GET`,url:`https://api.cloudflare.com/client/v4/radar/quality/iqi/timeseries_groups`,pathParams:{},query:a,bodyKind:`none`});return}let o=await t(e),s=await i(`Loading`,async()=>o.send(Gs,a));n(s,{successLabel:`Loaded`})})},Js={command:`iqi`,describe:`Operations for quality.iqi`,builder:e=>e.command(Ws).command(qs).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var Ys={method:`GET`,path:()=>`/radar/quality/speed/histogram`,query:[`name`,`dateEnd`,`asn`,`location`,`continent`,`bucketSize`,`metricGroup`,`format`],errors:{400:`BadRequestError`}};function Xs(e){return e.usage(`$0 radar quality speed histogram
|
|
259
|
-
|
|
260
|
-
Retrieves a histogram from the previous 90 days of Cloudflare Speed Test data, split into fixed bandwidth (Mbps), latency (ms), or jitter (ms) buckets.`).option(`name`,{type:`string`,description:`Array of names used to label the series in the response.`}).option(`date-end`,{type:`string`,description:"End of the date range (inclusive). Alternative to `dateRange`; provide together with `dateStart`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`asn`,{type:`string`,description:"Filters results by Autonomous System. Specify one or more Autonomous System Numbers (ASNs) as a comma-separated list. Prefix with `-` to exclude ASNs from results. For example, `-174, 3356` excludes results from AS174, but includes results from AS3356."}).option(`location`,{type:`string`,description:"Filters results by location. Specify a comma-separated list of alpha-2 codes. Prefix with `-` to exclude locations from results. For example, `-US,PT` excludes results from the US, but includes results from PT."}).option(`continent`,{type:`string`,description:"Filters results by continent. Specify a comma-separated list of alpha-2 codes. Prefix with `-` to exclude continents from results. For example, `-EU,NA` excludes results from EU, but includes results from NA."}).option(`bucket-size`,{type:`number`,description:`Specifies the width for every bucket in the histogram.`}).option(`metric-group`,{type:`string`,description:`Metrics to be returned.`,choices:[`BANDWIDTH`,`LATENCY`,`JITTER`]}).option(`format`,{type:`string`,description:`Format in which results will be returned.`,choices:[`JSON`,`CSV`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const Zs={command:`histogram`,describe:`Get speed tests histogram`,builder:Xs,handler:async e=>a({command:`radar quality speed histogram`,classification:{safeFlags:[`metric-group`,`format`,`dry-run`]}},e,async()=>{let a={name:e.name,dateEnd:e[`date-end`],asn:e.asn,location:e.location,continent:e.continent,bucketSize:e[`bucket-size`],metricGroup:e[`metric-group`],format:e.format};if(e.dryRun){r({command:`cf radar quality speed histogram`,method:`GET`,url:`https://api.cloudflare.com/client/v4/radar/quality/speed/histogram`,pathParams:{},query:a,bodyKind:`none`});return}let o=await t(e),s=await i(`Loading`,async()=>o.send(Ys,a));n(s,{successLabel:`Loaded`})})};var Qs={method:`GET`,path:()=>`/radar/quality/speed/summary`,query:[`name`,`dateEnd`,`asn`,`location`,`continent`,`format`],errors:{400:`BadRequestError`}};function $s(e){return e.usage(`$0 radar quality speed summary
|
|
261
|
-
|
|
262
|
-
Retrieves a summary of bandwidth, latency, jitter, and packet loss, from the previous 90 days of Cloudflare Speed Test data.`).option(`name`,{type:`string`,description:`Array of names used to label the series in the response.`}).option(`date-end`,{type:`string`,description:"End of the date range (inclusive). Alternative to `dateRange`; provide together with `dateStart`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`asn`,{type:`string`,description:"Filters results by Autonomous System. Specify one or more Autonomous System Numbers (ASNs) as a comma-separated list. Prefix with `-` to exclude ASNs from results. For example, `-174, 3356` excludes results from AS174, but includes results from AS3356."}).option(`location`,{type:`string`,description:"Filters results by location. Specify a comma-separated list of alpha-2 codes. Prefix with `-` to exclude locations from results. For example, `-US,PT` excludes results from the US, but includes results from PT."}).option(`continent`,{type:`string`,description:"Filters results by continent. Specify a comma-separated list of alpha-2 codes. Prefix with `-` to exclude continents from results. For example, `-EU,NA` excludes results from EU, but includes results from NA."}).option(`format`,{type:`string`,description:`Format in which results will be returned.`,choices:[`JSON`,`CSV`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const ec={command:`summary`,describe:`Get speed tests summary`,builder:$s,handler:async e=>a({command:`radar quality speed summary`,classification:{safeFlags:[`format`,`dry-run`]}},e,async()=>{let a={name:e.name,dateEnd:e[`date-end`],asn:e.asn,location:e.location,continent:e.continent,format:e.format};if(e.dryRun){r({command:`cf radar quality speed summary`,method:`GET`,url:`https://api.cloudflare.com/client/v4/radar/quality/speed/summary`,pathParams:{},query:a,bodyKind:`none`});return}let o=await t(e),s=await i(`Loading`,async()=>o.send(Qs,a));n(s,{successLabel:`Loaded`})})};var tc={method:`GET`,path:()=>`/radar/quality/speed/top/ases`,query:[`limit`,`name`,`dateEnd`,`asn`,`location`,`continent`,`orderBy`,`reverse`,`format`],errors:{404:`NotFoundError`}};function nc(e){return e.usage(`$0 radar quality speed top ases
|
|
263
|
-
|
|
264
|
-
Retrieves the top autonomous systems by bandwidth, latency, jitter, or packet loss, from the previous 90 days of Cloudflare Speed Test data.`).option(`limit`,{type:`number`,description:`Limits the number of objects returned in the response.`}).option(`name`,{type:`string`,description:`Array of names used to label the series in the response.`}).option(`date-end`,{type:`string`,description:"End of the date range (inclusive). Alternative to `dateRange`; provide together with `dateStart`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`asn`,{type:`string`,description:"Filters results by Autonomous System. Specify one or more Autonomous System Numbers (ASNs) as a comma-separated list. Prefix with `-` to exclude ASNs from results. For example, `-174, 3356` excludes results from AS174, but includes results from AS3356."}).option(`location`,{type:`string`,description:"Filters results by location. Specify a comma-separated list of alpha-2 codes. Prefix with `-` to exclude locations from results. For example, `-US,PT` excludes results from the US, but includes results from PT."}).option(`continent`,{type:`string`,description:"Filters results by continent. Specify a comma-separated list of alpha-2 codes. Prefix with `-` to exclude continents from results. For example, `-EU,NA` excludes results from EU, but includes results from NA."}).option(`order-by`,{type:`string`,description:`Specifies the metric to order the results by.`,choices:[`BANDWIDTH_DOWNLOAD`,`BANDWIDTH_UPLOAD`,`LATENCY_IDLE`,`LATENCY_LOADED`,`JITTER_IDLE`,`JITTER_LOADED`]}).option(`reverse`,{type:`boolean`,description:`Reverses the order of results.`}).option(`format`,{type:`string`,description:`Format in which results will be returned.`,choices:[`JSON`,`CSV`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const rc={command:`ases`,describe:`Get top ASes by speed test results`,builder:nc,handler:async e=>a({command:`radar quality speed top ases`,classification:{safeFlags:[`order-by`,`reverse`,`format`,`dry-run`]}},e,async()=>{let a={limit:e.limit,name:e.name,dateEnd:e[`date-end`],asn:e.asn,location:e.location,continent:e.continent,orderBy:e[`order-by`],reverse:e.reverse,format:e.format};if(e.dryRun){r({command:`cf radar quality speed top ases`,method:`GET`,url:`https://api.cloudflare.com/client/v4/radar/quality/speed/top/ases`,pathParams:{},query:a,bodyKind:`none`});return}let o=await t(e),s=await i(`Loading`,async()=>o.send(tc,a));n(s,{successLabel:`Loaded`})})};var ic={method:`GET`,path:()=>`/radar/quality/speed/top/locations`,query:[`limit`,`name`,`dateEnd`,`asn`,`location`,`continent`,`orderBy`,`reverse`,`format`],errors:{404:`NotFoundError`}};function ac(e){return e.usage(`$0 radar quality speed top locations
|
|
265
|
-
|
|
266
|
-
Retrieves the top locations by bandwidth, latency, jitter, or packet loss, from the previous 90 days of Cloudflare Speed Test data.`).option(`limit`,{type:`number`,description:`Limits the number of objects returned in the response.`}).option(`name`,{type:`string`,description:`Array of names used to label the series in the response.`}).option(`date-end`,{type:`string`,description:"End of the date range (inclusive). Alternative to `dateRange`; provide together with `dateStart`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`asn`,{type:`string`,description:"Filters results by Autonomous System. Specify one or more Autonomous System Numbers (ASNs) as a comma-separated list. Prefix with `-` to exclude ASNs from results. For example, `-174, 3356` excludes results from AS174, but includes results from AS3356."}).option(`location`,{type:`string`,description:"Filters results by location. Specify a comma-separated list of alpha-2 codes. Prefix with `-` to exclude locations from results. For example, `-US,PT` excludes results from the US, but includes results from PT."}).option(`continent`,{type:`string`,description:"Filters results by continent. Specify a comma-separated list of alpha-2 codes. Prefix with `-` to exclude continents from results. For example, `-EU,NA` excludes results from EU, but includes results from NA."}).option(`order-by`,{type:`string`,description:`Specifies the metric to order the results by.`,choices:[`BANDWIDTH_DOWNLOAD`,`BANDWIDTH_UPLOAD`,`LATENCY_IDLE`,`LATENCY_LOADED`,`JITTER_IDLE`,`JITTER_LOADED`]}).option(`reverse`,{type:`boolean`,description:`Reverses the order of results.`}).option(`format`,{type:`string`,description:`Format in which results will be returned.`,choices:[`JSON`,`CSV`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const oc={command:`locations`,describe:`Get top locations by speed test results`,builder:ac,handler:async e=>a({command:`radar quality speed top locations`,classification:{safeFlags:[`order-by`,`reverse`,`format`,`dry-run`]}},e,async()=>{let a={limit:e.limit,name:e.name,dateEnd:e[`date-end`],asn:e.asn,location:e.location,continent:e.continent,orderBy:e[`order-by`],reverse:e.reverse,format:e.format};if(e.dryRun){r({command:`cf radar quality speed top locations`,method:`GET`,url:`https://api.cloudflare.com/client/v4/radar/quality/speed/top/locations`,pathParams:{},query:a,bodyKind:`none`});return}let o=await t(e),s=await i(`Loading`,async()=>o.send(ic,a));n(s,{successLabel:`Loaded`})})},sc={command:`top`,describe:`Operations for quality.speed.top`,builder:e=>e.command(rc).command(oc).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},cc={command:`speed`,describe:`Operations for quality.speed`,builder:e=>e.command(Zs).command(ec).command(sc).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},lc={command:`quality`,describe:`Internet connection quality metrics — speed, latency, and jitter by geography and ASN`,builder:e=>e.command(Js).command(cc).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var uc={method:`GET`,path:t=>e`/radar/ranking/domain/${t.domain}`,query:[`limit`,`rankingType`,`name`,`includeTopLocations`,`date`,`format`],errors:{400:`BadRequestError`}};function dc(e){return e.usage(`$0 radar ranking domain get <domain>
|
|
267
|
-
|
|
268
|
-
Retrieves domain rank details. Cloudflare provides an ordered rank for the top 100 domains, but for the remainder it only provides ranking buckets like top 200 thousand, top one million, etc.. These are available through Radar datasets endpoints.`).positional(`domain`,{type:`string`,description:`Domain name.`,demandOption:!0}).option(`limit`,{type:`number`,description:`Limits the number of objects returned in the response.`}).option(`ranking-type`,{type:`string`,description:`The ranking type.`,choices:[`POPULAR`,`TRENDING_RISE`,`TRENDING_STEADY`]}).option(`name`,{type:`string`,description:`Array of names used to label the series in the response.`}).option(`include-top-locations`,{type:`boolean`,description:`Includes top locations in the response.`}).option(`date`,{type:`string`,description:`Filters results by the specified array of dates.`}).option(`format`,{type:`string`,description:`Format in which results will be returned.`,choices:[`JSON`,`CSV`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const fc={command:`get <domain>`,describe:`Get domain rank details`,builder:dc,handler:async e=>a({command:`radar ranking domain get`,classification:{safeFlags:[`ranking-type`,`include-top-locations`,`format`,`dry-run`]}},e,async()=>{let a={limit:e.limit,rankingType:e[`ranking-type`],name:e.name,includeTopLocations:e[`include-top-locations`],date:e.date,format:e.format};if(e.dryRun){r({command:`cf radar ranking domain get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/radar/ranking/domain/${e.domain==null?`<domain>`:encodeURIComponent(String(e.domain))}`,pathParams:{domain:String(e.domain??``)},query:a,bodyKind:`none`});return}let o=await t(e),s=await i(`Loading`,async()=>o.send(uc,{domain:e.domain,...a}));n(s,{successLabel:`Loaded`})})},pc={command:`domain`,describe:`Operations for ranking.domain`,builder:e=>e.command(fc).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var mc={method:`GET`,path:()=>`/radar/ranking/internet_services/categories`,query:[`limit`,`name`,`date`,`format`],errors:{400:`BadRequestError`}};function hc(e){return e.usage(`$0 radar ranking internet-services categories
|
|
269
|
-
|
|
270
|
-
Retrieves the list of Internet services categories.`).option(`limit`,{type:`number`,description:`Limits the number of objects returned in the response.`}).option(`name`,{type:`string`,description:`Array of names used to label the series in the response.`}).option(`date`,{type:`string`,description:`Filters results by the specified array of dates.`}).option(`format`,{type:`string`,description:`Format in which results will be returned.`,choices:[`JSON`,`CSV`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const gc={command:`categories`,describe:`List Internet services categories`,builder:hc,handler:async e=>a({command:`radar ranking internet-services categories`,classification:{safeFlags:[`format`,`dry-run`]}},e,async()=>{let a={limit:e.limit,name:e.name,date:e.date,format:e.format};if(e.dryRun){r({command:`cf radar ranking internet-services categories`,method:`GET`,url:`https://api.cloudflare.com/client/v4/radar/ranking/internet_services/categories`,pathParams:{},query:a,bodyKind:`none`});return}let o=await t(e),s=await i(`Loading`,async()=>o.send(mc,a));n(s,{successLabel:`Loaded`})})};var _c={method:`GET`,path:()=>`/radar/ranking/internet_services/timeseries_groups`,query:[`serviceCategory`,`limit`,`name`,`dateRange`,`dateStart`,`dateEnd`,`format`],errors:{400:`BadRequestError`}};function vc(e){return e.usage(`$0 radar ranking internet-services timeseries-groups
|
|
271
|
-
|
|
272
|
-
Retrieves Internet Services rank update changes over time.`).option(`service-category`,{type:`string`,description:`Filters results by Internet service category.`}).option(`limit`,{type:`number`,description:`Limits the number of objects returned in the response.`}).option(`name`,{type:`string`,description:`Array of names used to label the series in the response.`}).option(`date-range`,{type:`string`,description:"Filters results by relative date range ending at the current time, with each value producing a separate series. Use `<n>d` for days (up to `364d`) or `<n>w` for weeks (up to `52w`). Append `control` to request the equivalent previous period for comparison: the comparison window is shifted back by the current window's length rounded up to a whole number of weeks, so it keeps the same weekday alignment and does not overlap the current window (e.g. `7dcontrol` covers days -14 to -7, `10dcontrol` covers days -24 to -14). For example, pass `7d` and `7dcontrol` to compare this week with the previous week. All series must resolve to the same duration as the main series; relative ranges (including `control`) satisfy this automatically. Use this parameter or set specific start and end dates (`dateStart` and `dateEnd` parameters)."}).option(`date-start`,{type:`string`,description:"Start of the date range. Alternative to `dateRange`; provide together with `dateEnd`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`date-end`,{type:`string`,description:"End of the date range (inclusive). Alternative to `dateRange`; provide together with `dateStart`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`format`,{type:`string`,description:`Format in which results will be returned.`,choices:[`JSON`,`CSV`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const yc={command:`timeseries-groups`,describe:`Get Internet services rank time series`,builder:vc,handler:async e=>a({command:`radar ranking internet-services timeseries-groups`,classification:{safeFlags:[`format`,`dry-run`]}},e,async()=>{let a={serviceCategory:e[`service-category`],limit:e.limit,name:e.name,dateRange:e[`date-range`],dateStart:e[`date-start`],dateEnd:e[`date-end`],format:e.format};if(e.dryRun){r({command:`cf radar ranking internet-services timeseries-groups`,method:`GET`,url:`https://api.cloudflare.com/client/v4/radar/ranking/internet_services/timeseries_groups`,pathParams:{},query:a,bodyKind:`none`});return}let o=await t(e),s=await i(`Loading`,async()=>o.send(_c,a));n(s,{successLabel:`Loaded`})})};var bc={method:`GET`,path:()=>`/radar/ranking/internet_services/top`,query:[`serviceCategory`,`limit`,`name`,`date`,`format`],errors:{400:`BadRequestError`}};function xc(e){return e.usage(`$0 radar ranking internet-services top
|
|
273
|
-
|
|
274
|
-
Retrieves top Internet services based on their rank.`).option(`service-category`,{type:`string`,description:`Filters results by Internet service category.`}).option(`limit`,{type:`number`,description:`Limits the number of objects returned in the response.`}).option(`name`,{type:`string`,description:`Array of names used to label the series in the response.`}).option(`date`,{type:`string`,description:`Filters results by the specified array of dates.`}).option(`format`,{type:`string`,description:`Format in which results will be returned.`,choices:[`JSON`,`CSV`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const Sc={command:`top`,describe:`Get top Internet services`,builder:xc,handler:async e=>a({command:`radar ranking internet-services top`,classification:{safeFlags:[`format`,`dry-run`]}},e,async()=>{let a={serviceCategory:e[`service-category`],limit:e.limit,name:e.name,date:e.date,format:e.format};if(e.dryRun){r({command:`cf radar ranking internet-services top`,method:`GET`,url:`https://api.cloudflare.com/client/v4/radar/ranking/internet_services/top`,pathParams:{},query:a,bodyKind:`none`});return}let o=await t(e),s=await i(`Loading`,async()=>o.send(bc,a));n(s,{successLabel:`Loaded`})})},Cc={command:`internet-services`,describe:`Operations for ranking.internet-services`,builder:e=>e.command(gc).command(yc).command(Sc).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var wc={method:`GET`,path:()=>`/radar/ranking/timeseries_groups`,query:[`limit`,`rankingType`,`name`,`location`,`domains`,`domainCategory`,`dateRange`,`dateStart`,`dateEnd`,`format`],errors:{400:`BadRequestError`}};function Tc(e){return e.usage(`$0 radar ranking timeseries-groups
|
|
275
|
-
|
|
276
|
-
Retrieves domains rank over time.`).option(`limit`,{type:`number`,description:`Limits the number of objects returned in the response.`}).option(`ranking-type`,{type:`string`,description:`The ranking type.`,choices:[`POPULAR`,`TRENDING_RISE`,`TRENDING_STEADY`]}).option(`name`,{type:`string`,description:`Array of names used to label the series in the response.`}).option(`location`,{type:`string`,description:`Filters results by location. Specify a comma-separated list of alpha-2 location codes.`}).option(`domains`,{type:`string`,description:`Filters results by domain name. Specify a comma-separated list of domain names.`}).option(`domain-category`,{type:`string`,description:`Filters results by domain category.`}).option(`date-range`,{type:`string`,description:"Filters results by relative date range ending at the current time, with each value producing a separate series. Use `<n>d` for days (up to `364d`) or `<n>w` for weeks (up to `52w`). Append `control` to request the equivalent previous period for comparison: the comparison window is shifted back by the current window's length rounded up to a whole number of weeks, so it keeps the same weekday alignment and does not overlap the current window (e.g. `7dcontrol` covers days -14 to -7, `10dcontrol` covers days -24 to -14). For example, pass `7d` and `7dcontrol` to compare this week with the previous week. All series must resolve to the same duration as the main series; relative ranges (including `control`) satisfy this automatically. Use this parameter or set specific start and end dates (`dateStart` and `dateEnd` parameters)."}).option(`date-start`,{type:`string`,description:"Start of the date range. Alternative to `dateRange`; provide together with `dateEnd`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`date-end`,{type:`string`,description:"End of the date range (inclusive). Alternative to `dateRange`; provide together with `dateStart`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`format`,{type:`string`,description:`Format in which results will be returned.`,choices:[`JSON`,`CSV`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const Ec={command:`timeseries-groups`,describe:`Get domains rank time series`,builder:Tc,handler:async e=>a({command:`radar ranking timeseries-groups`,classification:{safeFlags:[`ranking-type`,`format`,`dry-run`]}},e,async()=>{let a={limit:e.limit,rankingType:e[`ranking-type`],name:e.name,location:e.location,domains:e.domains,domainCategory:e[`domain-category`],dateRange:e[`date-range`],dateStart:e[`date-start`],dateEnd:e[`date-end`],format:e.format};if(e.dryRun){r({command:`cf radar ranking timeseries-groups`,method:`GET`,url:`https://api.cloudflare.com/client/v4/radar/ranking/timeseries_groups`,pathParams:{},query:a,bodyKind:`none`});return}let o=await t(e),s=await i(`Loading`,async()=>o.send(wc,a));n(s,{successLabel:`Loaded`})})};var Dc={method:`GET`,path:()=>`/radar/ranking/top`,query:[`limit`,`name`,`location`,`domainCategory`,`date`,`rankingType`,`format`],errors:{400:`BadRequestError`}};function Oc(e){return e.usage(`$0 radar ranking top
|
|
277
|
-
|
|
278
|
-
Retrieves the top or trending domains based on their rank. Popular domains are domains of broad appeal based on how people use the Internet. Trending domains are domains that are generating a surge in interest. For more information on top domains, see https://blog.cloudflare.com/radar-domain-rankings/.`).option(`limit`,{type:`number`,description:`Limits the number of objects returned in the response.`}).option(`name`,{type:`string`,description:`Array of names used to label the series in the response.`}).option(`location`,{type:`string`,description:`Filters results by location. Specify a comma-separated list of alpha-2 location codes.`}).option(`domain-category`,{type:`string`,description:`Filters results by domain category.`}).option(`date`,{type:`string`,description:`Filters results by the specified array of dates.`}).option(`ranking-type`,{type:`string`,description:`The ranking type.`,choices:[`POPULAR`,`TRENDING_RISE`,`TRENDING_STEADY`]}).option(`format`,{type:`string`,description:`Format in which results will be returned.`,choices:[`JSON`,`CSV`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const kc={command:`top`,describe:`Get top or trending domains`,builder:Oc,handler:async e=>a({command:`radar ranking top`,classification:{safeFlags:[`ranking-type`,`format`,`dry-run`]}},e,async()=>{let a={limit:e.limit,name:e.name,location:e.location,domainCategory:e[`domain-category`],date:e.date,rankingType:e[`ranking-type`],format:e.format};if(e.dryRun){r({command:`cf radar ranking top`,method:`GET`,url:`https://api.cloudflare.com/client/v4/radar/ranking/top`,pathParams:{},query:a,bodyKind:`none`});return}let o=await t(e),s=await i(`Loading`,async()=>o.send(Dc,a));n(s,{successLabel:`Loaded`})})},Ac={command:`ranking`,describe:`Top domain rankings based on DNS query popularity across the Cloudflare network`,builder:e=>e.command(Ec).command(kc).command(pc).command(Cc).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var jc={method:`GET`,path:()=>`/radar/robots_txt/top/domain_categories`,query:[`limit`,`name`,`userAgentCategory`,`date`,`format`],errors:{404:`NotFoundError`}};function Mc(e){return e.usage(`$0 radar robots-txt top domain-categories
|
|
279
|
-
|
|
280
|
-
Retrieves the top domain categories by the number of robots.txt files parsed.`).option(`limit`,{type:`number`,description:`Limits the number of objects returned in the response.`}).option(`name`,{type:`string`,description:`Array of names used to label the series in the response.`}).option(`user-agent-category`,{type:`string`,description:`Filters results by user agent category.`,choices:[`AI`]}).option(`date`,{type:`string`,description:`Filters results by the specified array of dates.`}).option(`format`,{type:`string`,description:`Format in which results will be returned.`,choices:[`JSON`,`CSV`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const Nc={command:`domain-categories`,describe:`Get top domain categories by robots.txt files parsed`,builder:Mc,handler:async e=>a({command:`radar robots-txt top domain-categories`,classification:{safeFlags:[`user-agent-category`,`format`,`dry-run`]}},e,async()=>{let a={limit:e.limit,name:e.name,userAgentCategory:e[`user-agent-category`],date:e.date,format:e.format};if(e.dryRun){r({command:`cf radar robots-txt top domain-categories`,method:`GET`,url:`https://api.cloudflare.com/client/v4/radar/robots_txt/top/domain_categories`,pathParams:{},query:a,bodyKind:`none`});return}let o=await t(e),s=await i(`Loading`,async()=>o.send(jc,a));n(s,{successLabel:`Loaded`})})};var Pc={method:`GET`,path:()=>`/radar/robots_txt/top/user_agents/directive`,query:[`limit`,`name`,`userAgentCategory`,`date`,`domainCategory`,`directive`,`format`],errors:{404:`NotFoundError`}};function Fc(e){return e.usage(`$0 radar robots-txt top user-agents directive
|
|
281
|
-
|
|
282
|
-
Retrieves the top user agents on robots.txt files.`).option(`limit`,{type:`number`,description:`Limits the number of objects returned in the response.`}).option(`name`,{type:`string`,description:`Array of names used to label the series in the response.`}).option(`user-agent-category`,{type:`string`,description:`Filters results by user agent category.`,choices:[`AI`]}).option(`date`,{type:`string`,description:`Filters results by the specified array of dates.`}).option(`domain-category`,{type:`string`,description:`Filters results by domain category.`}).option(`directive`,{type:`string`,description:`Filters results by robots.txt directive.`,choices:[`ALLOW`,`DISALLOW`]}).option(`format`,{type:`string`,description:`Format in which results will be returned.`,choices:[`JSON`,`CSV`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const Ic={command:`directive`,describe:`Get top user agents on robots.txt files`,builder:Fc,handler:async e=>a({command:`radar robots-txt top user-agents directive`,classification:{safeFlags:[`user-agent-category`,`directive`,`format`,`dry-run`]}},e,async()=>{let a={limit:e.limit,name:e.name,userAgentCategory:e[`user-agent-category`],date:e.date,domainCategory:e[`domain-category`],directive:e.directive,format:e.format};if(e.dryRun){r({command:`cf radar robots-txt top user-agents directive`,method:`GET`,url:`https://api.cloudflare.com/client/v4/radar/robots_txt/top/user_agents/directive`,pathParams:{},query:a,bodyKind:`none`});return}let o=await t(e),s=await i(`Loading`,async()=>o.send(Pc,a));n(s,{successLabel:`Loaded`})})},Lc={command:`user-agents`,describe:`Operations for robots-txt.top.user-agents`,builder:e=>e.command(Ic).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},Rc={command:`top`,describe:`Operations for robots-txt.top`,builder:e=>e.command(Nc).command(Lc).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},zc={command:`robots-txt`,describe:`Robots.txt adoption and crawler directive trends across the web`,builder:e=>e.command(Rc).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var Bc={method:`GET`,path:()=>`/radar/search/global`,query:[`limit`,`limitPerGroup`,`query`,`include`,`exclude`,`format`],errors:{400:`BadRequestError`}};function Vc(e){return e.usage("$0 radar search global\n\nSearches for locations, autonomous systems, reports, bots, certificate logs, certificate authorities, industries and verticals. Location names can be localized by sending an `Accept-Language` HTTP header with a BCP 47 language tag (e.g., `Accept-Language: pt-PT`). The full quality-value chain is supported (e.g., `pt-PT,pt;q=0.9,en;q=0.8`).").option(`limit`,{type:`number`,description:`Limits the number of objects returned in the response.`}).option(`limit-per-group`,{type:`number`,description:`Limits the number of objects per search category.`}).option(`query`,{type:`string`,description:`String used to perform the search operation.`,demandOption:!0}).option(`include`,{type:`string`,description:`Search types included in results.`}).option(`exclude`,{type:`string`,description:`Search types excluded from results.`}).option(`format`,{type:`string`,description:`Format in which results will be returned.`,choices:[`JSON`,`CSV`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const Hc={command:`global`,describe:`Search for locations, ASes, reports, and more`,builder:Vc,handler:async e=>a({command:`radar search global`,classification:{safeFlags:[`format`,`dry-run`]}},e,async()=>{let a={limit:e.limit,limitPerGroup:e[`limit-per-group`],query:e.query,include:e.include,exclude:e.exclude,format:e.format};if(e.dryRun){r({command:`cf radar search global`,method:`GET`,url:`https://api.cloudflare.com/client/v4/radar/search/global`,pathParams:{},query:a,bodyKind:`none`});return}let o=await t(e),s=await i(`Loading`,async()=>o.send(Bc,a));n(s,{successLabel:`Loaded`})})},Uc={command:`search`,describe:`Search Radar data across IPs, ASNs, domains, and locations`,builder:e=>e.command(Hc).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var Wc={method:`GET`,path:()=>`/radar/tcp_resets_timeouts/summary`,query:[`name`,`dateRange`,`dateStart`,`dateEnd`,`asn`,`location`,`continent`,`format`],errors:{400:`BadRequestError`}};function Gc(e){return e.usage(`$0 radar tcp-resets-timeouts summary
|
|
283
|
-
|
|
284
|
-
Retrieves the distribution of connection stage by TCP connections terminated within the first 10 packets by a reset or timeout.`).option(`name`,{type:`string`,description:`Array of names used to label the series in the response.`}).option(`date-range`,{type:`string`,description:"Filters results by relative date range ending at the current time, with each value producing a separate series. Use `<n>d` for days (up to `364d`) or `<n>w` for weeks (up to `52w`). Append `control` to request the equivalent previous period for comparison: the comparison window is shifted back by the current window's length rounded up to a whole number of weeks, so it keeps the same weekday alignment and does not overlap the current window (e.g. `7dcontrol` covers days -14 to -7, `10dcontrol` covers days -24 to -14). For example, pass `7d` and `7dcontrol` to compare this week with the previous week. All series must resolve to the same duration as the main series; relative ranges (including `control`) satisfy this automatically. Use this parameter or set specific start and end dates (`dateStart` and `dateEnd` parameters)."}).option(`date-start`,{type:`string`,description:"Start of the date range. Alternative to `dateRange`; provide together with `dateEnd`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`date-end`,{type:`string`,description:"End of the date range (inclusive). Alternative to `dateRange`; provide together with `dateStart`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`asn`,{type:`string`,description:"Filters results by Autonomous System. Specify one or more Autonomous System Numbers (ASNs) as a comma-separated list. Prefix with `-` to exclude ASNs from results. For example, `-174, 3356` excludes results from AS174, but includes results from AS3356."}).option(`location`,{type:`string`,description:"Filters results by location. Specify a comma-separated list of alpha-2 codes. Prefix with `-` to exclude locations from results. For example, `-US,PT` excludes results from the US, but includes results from PT."}).option(`continent`,{type:`string`,description:"Filters results by continent. Specify a comma-separated list of alpha-2 codes. Prefix with `-` to exclude continents from results. For example, `-EU,NA` excludes results from EU, but includes results from NA."}).option(`format`,{type:`string`,description:`Format in which results will be returned.`,choices:[`JSON`,`CSV`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const Kc={command:`summary`,describe:`Get TCP resets and timeouts summary`,builder:Gc,handler:async e=>a({command:`radar tcp-resets-timeouts summary`,classification:{safeFlags:[`format`,`dry-run`]}},e,async()=>{let a={name:e.name,dateRange:e[`date-range`],dateStart:e[`date-start`],dateEnd:e[`date-end`],asn:e.asn,location:e.location,continent:e.continent,format:e.format};if(e.dryRun){r({command:`cf radar tcp-resets-timeouts summary`,method:`GET`,url:`https://api.cloudflare.com/client/v4/radar/tcp_resets_timeouts/summary`,pathParams:{},query:a,bodyKind:`none`});return}let o=await t(e),s=await i(`Loading`,async()=>o.send(Wc,a));n(s,{successLabel:`Loaded`})})};var qc={method:`GET`,path:()=>`/radar/tcp_resets_timeouts/timeseries_groups`,query:[`aggInterval`,`name`,`dateRange`,`dateStart`,`dateEnd`,`asn`,`location`,`continent`,`format`],errors:{400:`BadRequestError`}};function Jc(e){return e.usage(`$0 radar tcp-resets-timeouts timeseries-groups
|
|
285
|
-
|
|
286
|
-
Retrieves the distribution of connection stage by TCP connections terminated within the first 10 packets by a reset or timeout over time.`).option(`agg-interval`,{type:`string`,description:`Aggregation interval of the results (e.g., in 15 minutes or 1 hour intervals). Refer to [Aggregation intervals](https://developers.cloudflare.com/radar/concepts/aggregation-intervals/). When omitted, the interval is auto-selected from the requested date range; finer intervals are only available for shorter ranges. If the requested interval is too granular for the date range, the request is rejected.`,choices:[`15m`,`1h`,`1d`,`1w`]}).option(`name`,{type:`string`,description:`Array of names used to label the series in the response.`}).option(`date-range`,{type:`string`,description:"Filters results by relative date range ending at the current time, with each value producing a separate series. Use `<n>d` for days (up to `364d`) or `<n>w` for weeks (up to `52w`). Append `control` to request the equivalent previous period for comparison: the comparison window is shifted back by the current window's length rounded up to a whole number of weeks, so it keeps the same weekday alignment and does not overlap the current window (e.g. `7dcontrol` covers days -14 to -7, `10dcontrol` covers days -24 to -14). For example, pass `7d` and `7dcontrol` to compare this week with the previous week. All series must resolve to the same duration as the main series; relative ranges (including `control`) satisfy this automatically. Use this parameter or set specific start and end dates (`dateStart` and `dateEnd` parameters)."}).option(`date-start`,{type:`string`,description:"Start of the date range. Alternative to `dateRange`; provide together with `dateEnd`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`date-end`,{type:`string`,description:"End of the date range (inclusive). Alternative to `dateRange`; provide together with `dateStart`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`asn`,{type:`string`,description:"Filters results by Autonomous System. Specify one or more Autonomous System Numbers (ASNs) as a comma-separated list. Prefix with `-` to exclude ASNs from results. For example, `-174, 3356` excludes results from AS174, but includes results from AS3356."}).option(`location`,{type:`string`,description:"Filters results by location. Specify a comma-separated list of alpha-2 codes. Prefix with `-` to exclude locations from results. For example, `-US,PT` excludes results from the US, but includes results from PT."}).option(`continent`,{type:`string`,description:"Filters results by continent. Specify a comma-separated list of alpha-2 codes. Prefix with `-` to exclude continents from results. For example, `-EU,NA` excludes results from EU, but includes results from NA."}).option(`format`,{type:`string`,description:`Format in which results will be returned.`,choices:[`JSON`,`CSV`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const Yc={command:`timeseries-groups`,describe:`Get TCP resets and timeouts time series`,builder:Jc,handler:async e=>a({command:`radar tcp-resets-timeouts timeseries-groups`,classification:{safeFlags:[`agg-interval`,`format`,`dry-run`]}},e,async()=>{let a={aggInterval:e[`agg-interval`],name:e.name,dateRange:e[`date-range`],dateStart:e[`date-start`],dateEnd:e[`date-end`],asn:e.asn,location:e.location,continent:e.continent,format:e.format};if(e.dryRun){r({command:`cf radar tcp-resets-timeouts timeseries-groups`,method:`GET`,url:`https://api.cloudflare.com/client/v4/radar/tcp_resets_timeouts/timeseries_groups`,pathParams:{},query:a,bodyKind:`none`});return}let o=await t(e),s=await i(`Loading`,async()=>o.send(qc,a));n(s,{successLabel:`Loaded`})})},Xc={command:`tcp-resets-timeouts`,describe:`TCP connection reset and timeout statistics indicating network health issues`,builder:e=>e.command(Kc).command(Yc).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var Zc={method:`GET`,path:t=>e`/radar/tlds/${t.tld}`,query:[`format`],errors:{404:`NotFoundError`}};function Qc(e){return e.usage(`$0 radar tlds get <tld>
|
|
287
|
-
|
|
288
|
-
Retrieves the requested TLD information.`).positional(`tld`,{type:`string`,description:`Top-level domain.`,demandOption:!0}).option(`format`,{type:`string`,description:`Format in which results will be returned.`,choices:[`JSON`,`CSV`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const $c={command:`get <tld>`,describe:`Get TLD details`,builder:Qc,handler:async e=>a({command:`radar tlds get`,classification:{safeFlags:[`format`,`dry-run`]}},e,async()=>{let a={format:e.format};if(e.dryRun){r({command:`cf radar tlds get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/radar/tlds/${e.tld==null?`<tld>`:encodeURIComponent(String(e.tld))}`,pathParams:{tld:String(e.tld??``)},query:a,bodyKind:`none`});return}let o=await t(e),s=await i(`Loading`,async()=>o.send(Zc,{tld:e.tld,...a}));n(s,{successLabel:`Loaded`})})};var el={method:`GET`,path:()=>`/radar/tlds`,query:[`limit`,`offset`,`tldManager`,`tldType`,`tld`,`format`],errors:{400:`BadRequestError`}};function tl(e){return e.usage(`$0 radar tlds list
|
|
289
|
-
|
|
290
|
-
Retrieves a list of TLDs.`).option(`limit`,{type:`number`,description:`Limits the number of objects returned in the response.`}).option(`offset`,{type:`number`,description:`Skips the specified number of objects before fetching the results.`}).option(`tld-manager`,{type:`string`,description:`Filters results by TLD manager.`}).option(`tld-type`,{type:`string`,description:`Filters results by TLD type.`,choices:[`GENERIC`,`COUNTRY_CODE`,`GENERIC_RESTRICTED`,`INFRASTRUCTURE`,`SPONSORED`]}).option(`tld`,{type:`string`,description:`Filters results by top-level domain. Specify a comma-separated list of TLDs.`}).option(`format`,{type:`string`,description:`Format in which results will be returned.`,choices:[`JSON`,`CSV`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const nl={command:`list`,describe:`List TLDs`,builder:tl,handler:async e=>a({command:`radar tlds list`,classification:{safeFlags:[`tld-type`,`format`,`dry-run`]}},e,async()=>{let a={limit:e.limit,offset:e.offset,tldManager:e[`tld-manager`],tldType:e[`tld-type`],tld:e.tld,format:e.format};if(e.dryRun){r({command:`cf radar tlds list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/radar/tlds`,pathParams:{},query:a,bodyKind:`none`});return}let o=await t(e),s=await i(`Loading`,async()=>o.send(el,a));n(s,{successLabel:`Loaded`})})};var rl={method:`GET`,path:t=>e`/radar/tlds/performance/summary/${t.dimension}`,query:[`name`,`dateRange`,`dateStart`,`dateEnd`,`location`,`continent`,`tld`,`nameserver`,`limitPerGroup`,`format`],errors:{400:`BadRequestError`}};function il(e){return e.usage(`$0 radar tlds performance summary <dimension>
|
|
291
|
-
|
|
292
|
-
Returns a summary of TLD authoritative nameserver performance grouped by the specified dimension.`).positional(`dimension`,{type:`string`,description:`Dimension to summarize TLD nameserver latency by.`,demandOption:!0}).option(`name`,{type:`string`,description:`Array of names used to label the series in the response.`}).option(`date-range`,{type:`string`,description:"Filters results by relative date range ending at the current time, with each value producing a separate series. Use `<n>d` for days (up to `364d`) or `<n>w` for weeks (up to `52w`). Append `control` to request the equivalent previous period for comparison: the comparison window is shifted back by the current window's length rounded up to a whole number of weeks, so it keeps the same weekday alignment and does not overlap the current window (e.g. `7dcontrol` covers days -14 to -7, `10dcontrol` covers days -24 to -14). For example, pass `7d` and `7dcontrol` to compare this week with the previous week. All series must resolve to the same duration as the main series; relative ranges (including `control`) satisfy this automatically. Use this parameter or set specific start and end dates (`dateStart` and `dateEnd` parameters)."}).option(`date-start`,{type:`string`,description:"Start of the date range. Alternative to `dateRange`; provide together with `dateEnd`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`date-end`,{type:`string`,description:"End of the date range (inclusive). Alternative to `dateRange`; provide together with `dateStart`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`location`,{type:`string`,description:"Filters results by location. Specify a comma-separated list of alpha-2 codes. Prefix with `-` to exclude locations from results. For example, `-US,PT` excludes results from the US, but includes results from PT."}).option(`continent`,{type:`string`,description:"Filters results by continent. Specify a comma-separated list of alpha-2 codes. Prefix with `-` to exclude continents from results. For example, `-EU,NA` excludes results from EU, but includes results from NA."}).option(`tld`,{type:`string`,description:`Filters results by top-level domain.`}).option(`nameserver`,{type:`string`,description:`Filters results by nameserver hostname.`}).option(`limit-per-group`,{type:`number`,description:`Limits the number of objects per group to the top items within the specified time range. When item count exceeds the limit, extra items appear grouped under an "other" category. Only supported on high-cardinality dimensions; otherwise the request is rejected. Minimum value is 2.`}).option(`format`,{type:`string`,description:`Format in which results will be returned.`,choices:[`JSON`,`CSV`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const al={command:`summary <dimension>`,describe:`Get TLD Performance Summary`,builder:il,handler:async e=>a({command:`radar tlds performance summary`,classification:{safeFlags:[`format`,`dry-run`]}},e,async()=>{let a={name:e.name,dateRange:e[`date-range`],dateStart:e[`date-start`],dateEnd:e[`date-end`],location:e.location,continent:e.continent,tld:e.tld,nameserver:e.nameserver,limitPerGroup:e[`limit-per-group`],format:e.format};if(e.dryRun){r({command:`cf radar tlds performance summary`,method:`GET`,url:`https://api.cloudflare.com/client/v4/radar/tlds/performance/summary/${e.dimension==null?`<dimension>`:encodeURIComponent(String(e.dimension))}`,pathParams:{dimension:String(e.dimension??``)},query:a,bodyKind:`none`});return}let o=await t(e),s=await i(`Loading`,async()=>o.send(rl,{dimension:e.dimension,...a}));n(s,{successLabel:`Loaded`})})};var ol={method:`GET`,path:t=>e`/radar/tlds/performance/timeseries_groups/${t.dimension}`,query:[`aggInterval`,`name`,`dateRange`,`dateStart`,`dateEnd`,`location`,`continent`,`tld`,`nameserver`,`limitPerGroup`,`format`],errors:{400:`BadRequestError`}};function sl(e){return e.usage(`$0 radar tlds performance timeseries-groups <dimension>
|
|
293
|
-
|
|
294
|
-
Returns a timeseries of TLD authoritative nameserver performance grouped by the specified dimension.`).positional(`dimension`,{type:`string`,description:`Dimension for the TLD nameserver latency timeseries.`,demandOption:!0}).option(`agg-interval`,{type:`string`,description:`Aggregation interval of the results (e.g., in 15 minutes or 1 hour intervals). Refer to [Aggregation intervals](https://developers.cloudflare.com/radar/concepts/aggregation-intervals/). When omitted, the interval is auto-selected from the requested date range; finer intervals are only available for shorter ranges. If the requested interval is too granular for the date range, the request is rejected.`,choices:[`15m`,`1h`,`1d`,`1w`]}).option(`name`,{type:`string`,description:`Array of names used to label the series in the response.`}).option(`date-range`,{type:`string`,description:"Filters results by relative date range ending at the current time, with each value producing a separate series. Use `<n>d` for days (up to `364d`) or `<n>w` for weeks (up to `52w`). Append `control` to request the equivalent previous period for comparison: the comparison window is shifted back by the current window's length rounded up to a whole number of weeks, so it keeps the same weekday alignment and does not overlap the current window (e.g. `7dcontrol` covers days -14 to -7, `10dcontrol` covers days -24 to -14). For example, pass `7d` and `7dcontrol` to compare this week with the previous week. All series must resolve to the same duration as the main series; relative ranges (including `control`) satisfy this automatically. Use this parameter or set specific start and end dates (`dateStart` and `dateEnd` parameters)."}).option(`date-start`,{type:`string`,description:"Start of the date range. Alternative to `dateRange`; provide together with `dateEnd`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`date-end`,{type:`string`,description:"End of the date range (inclusive). Alternative to `dateRange`; provide together with `dateStart`. When requesting comparison series, every series must resolve to the same duration as the main series. Each `dateStart`/`dateEnd` is floored to the nearest 15 minutes before evaluation, so windows whose durations match only before alignment may be rejected."}).option(`location`,{type:`string`,description:"Filters results by location. Specify a comma-separated list of alpha-2 codes. Prefix with `-` to exclude locations from results. For example, `-US,PT` excludes results from the US, but includes results from PT."}).option(`continent`,{type:`string`,description:"Filters results by continent. Specify a comma-separated list of alpha-2 codes. Prefix with `-` to exclude continents from results. For example, `-EU,NA` excludes results from EU, but includes results from NA."}).option(`tld`,{type:`string`,description:`Filters results by top-level domain.`}).option(`nameserver`,{type:`string`,description:`Filters results by nameserver hostname.`}).option(`limit-per-group`,{type:`number`,description:`Limits the number of objects per group to the top items within the specified time range. When item count exceeds the limit, extra items appear grouped under an "other" category. Only supported on high-cardinality dimensions; otherwise the request is rejected. Minimum value is 2.`}).option(`format`,{type:`string`,description:`Format in which results will be returned.`,choices:[`JSON`,`CSV`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const cl={command:`timeseries-groups <dimension>`,describe:`Get TLD Performance Over Time`,builder:sl,handler:async e=>a({command:`radar tlds performance timeseries-groups`,classification:{safeFlags:[`agg-interval`,`format`,`dry-run`]}},e,async()=>{let a={aggInterval:e[`agg-interval`],name:e.name,dateRange:e[`date-range`],dateStart:e[`date-start`],dateEnd:e[`date-end`],location:e.location,continent:e.continent,tld:e.tld,nameserver:e.nameserver,limitPerGroup:e[`limit-per-group`],format:e.format};if(e.dryRun){r({command:`cf radar tlds performance timeseries-groups`,method:`GET`,url:`https://api.cloudflare.com/client/v4/radar/tlds/performance/timeseries_groups/${e.dimension==null?`<dimension>`:encodeURIComponent(String(e.dimension))}`,pathParams:{dimension:String(e.dimension??``)},query:a,bodyKind:`none`});return}let o=await t(e),s=await i(`Loading`,async()=>o.send(ol,{dimension:e.dimension,...a}));n(s,{successLabel:`Loaded`})})},ll={command:`performance`,describe:`Operations for tlds.performance`,builder:e=>e.command(al).command(cl).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},ul={command:`tlds`,describe:`Top-level domain (TLD) metadata and performance trends`,builder:e=>e.command($c).command(nl).command(ll).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var dl={method:`GET`,path:t=>e`/radar/traffic_anomalies/${t.uuid}`,query:[`format`],errors:{404:`NotFoundError`}};function fl(e){return e.usage(`$0 radar traffic-anomalies get-by-id <uuid>
|
|
295
|
-
|
|
296
|
-
Retrieves a single Internet traffic anomaly by UUID.`).positional(`uuid`,{type:`string`,description:`Traffic anomaly UUID.`,demandOption:!0}).option(`format`,{type:`string`,description:`Format in which results will be returned.`,choices:[`JSON`,`CSV`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const pl={command:`get-by-id <uuid>`,describe:`Get traffic anomaly by UUID`,builder:fl,handler:async e=>a({command:`radar traffic-anomalies get-by-id`,classification:{safeFlags:[`format`,`dry-run`]}},e,async()=>{let a={format:e.format};if(e.dryRun){r({command:`cf radar traffic-anomalies get-by-id`,method:`GET`,url:`https://api.cloudflare.com/client/v4/radar/traffic_anomalies/${e.uuid==null?`<uuid>`:encodeURIComponent(String(e.uuid))}`,pathParams:{uuid:String(e.uuid??``)},query:a,bodyKind:`none`});return}let o=await t(e),s=await i(`Loading`,async()=>o.send(dl,{uuid:e.uuid,...a}));n(s,{successLabel:`Loaded`})})};var ml={method:`GET`,path:()=>`/radar/traffic_anomalies`,query:[`limit`,`offset`,`dateRange`,`dateStart`,`dateEnd`,`status`,`type`,`dataSource`,`asn`,`location`,`origin`,`format`],errors:{400:`BadRequestError`}};function hl(e){return e.usage(`$0 radar traffic-anomalies get
|
|
297
|
-
|
|
298
|
-
Retrieves the latest Internet traffic anomalies, which are signals that might indicate an outage. These alerts are automatically detected by Radar and manually verified by our team.`).option(`limit`,{type:`number`,description:`Limits the number of objects returned in the response.`}).option(`offset`,{type:`number`,description:`Skips the specified number of objects before fetching the results.`}).option(`date-range`,{type:`string`,description:"Filters results by a relative date range ending at the current time. Use `<n>d` for days (up to `364d`) or `<n>w` for weeks (up to `52w`), e.g. `7d`. Append `control` to request the equivalent previous period for comparison: the comparison window is shifted back by the current window's length rounded up to a whole number of weeks, so it keeps the same weekday alignment and does not overlap the current window (e.g. `3dcontrol` covers days -10 to -7, `7dcontrol` covers days -14 to -7, `28dcontrol` covers days -56 to -28, and `10dcontrol` covers days -24 to -14). Mutually exclusive with `dateStart`/`dateEnd`."}).option(`date-start`,{type:`string`,description:"Start of the date range (inclusive). Alternative to `dateRange`; provide together with `dateEnd`."}).option(`date-end`,{type:`string`,description:"End of the date range (inclusive). Alternative to `dateRange`; provide together with `dateStart`."}).option(`status`,{type:`string`,description:`Status`,choices:[`VERIFIED`,`UNVERIFIED`]}).option(`type`,{type:`string`,description:`Filters results by entity type (LOCATION, AS, or ORIGIN).`}).option(`data-source`,{type:`string`,description:`Filters results by data source.`,choices:[`ALL`,`AI_BOTS`,`AI_GATEWAY`,`BGP`,`BOTS`,`CONNECTION_ANOMALY`,`CT`,`DNS`,`DNS_MAGNITUDE`,`DNS_AS112`,`DOS`,`EMAIL_ROUTING`,`EMAIL_SECURITY`,`FW`,`FW_PG`,`HTTP`,`HTTP_CONTROL`,`HTTP_CRAWLER_REFERER`,`HTTP_ORIGINS`,`IQI`,`LEAKED_CREDENTIALS`,`NET`,`ROBOTS_TXT`,`SPEED`,`WORKERS_AI`]}).option(`asn`,{type:`number`,description:`Filters results by Autonomous System. Specify a single Autonomous System Number (ASN) as integer.`}).option(`location`,{type:`string`,description:`Filters results by location. Specify an alpha-2 location code.`}).option(`origin`,{type:`string`,description:`Filters results by origin.`}).option(`format`,{type:`string`,description:`Format in which results will be returned.`,choices:[`JSON`,`CSV`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const gl={command:`get`,describe:`Get latest Internet traffic anomalies`,builder:hl,handler:async e=>a({command:`radar traffic-anomalies get`,classification:{safeFlags:[`status`,`data-source`,`format`,`dry-run`]}},e,async()=>{let a={limit:e.limit,offset:e.offset,dateRange:e[`date-range`],dateStart:e[`date-start`],dateEnd:e[`date-end`],status:e.status,type:e.type,dataSource:e[`data-source`],asn:e.asn,location:e.location,origin:e.origin,format:e.format};if(e.dryRun){r({command:`cf radar traffic-anomalies get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/radar/traffic_anomalies`,pathParams:{},query:a,bodyKind:`none`});return}let o=await t(e),s=await i(`Loading`,async()=>o.send(ml,a));n(s,{successLabel:`Loaded`})})};var _l={method:`GET`,path:()=>`/radar/traffic_anomalies/locations`,query:[`limit`,`dateRange`,`dateStart`,`dateEnd`,`status`,`format`],errors:{400:`BadRequestError`}};function vl(e){return e.usage(`$0 radar traffic-anomalies locations get
|
|
299
|
-
|
|
300
|
-
Retrieves the sum of Internet traffic anomalies, grouped by location. These anomalies are signals that might indicate an outage, automatically detected by Radar and manually verified by our team.`).option(`limit`,{type:`number`,description:`Limits the number of objects returned in the response.`}).option(`date-range`,{type:`string`,description:"Filters results by a relative date range ending at the current time. Use `<n>d` for days (up to `364d`) or `<n>w` for weeks (up to `52w`), e.g. `7d`. Append `control` to request the equivalent previous period for comparison: the comparison window is shifted back by the current window's length rounded up to a whole number of weeks, so it keeps the same weekday alignment and does not overlap the current window (e.g. `3dcontrol` covers days -10 to -7, `7dcontrol` covers days -14 to -7, `28dcontrol` covers days -56 to -28, and `10dcontrol` covers days -24 to -14). Mutually exclusive with `dateStart`/`dateEnd`."}).option(`date-start`,{type:`string`,description:"Start of the date range (inclusive). Alternative to `dateRange`; provide together with `dateEnd`."}).option(`date-end`,{type:`string`,description:"End of the date range (inclusive). Alternative to `dateRange`; provide together with `dateStart`."}).option(`status`,{type:`string`,description:`Status`,choices:[`VERIFIED`,`UNVERIFIED`]}).option(`format`,{type:`string`,description:`Format in which results will be returned.`,choices:[`JSON`,`CSV`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const yl={command:`get`,describe:`Get top locations by total traffic anomalies`,builder:vl,handler:async e=>a({command:`radar traffic-anomalies locations get`,classification:{safeFlags:[`status`,`format`,`dry-run`]}},e,async()=>{let a={limit:e.limit,dateRange:e[`date-range`],dateStart:e[`date-start`],dateEnd:e[`date-end`],status:e.status,format:e.format};if(e.dryRun){r({command:`cf radar traffic-anomalies locations get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/radar/traffic_anomalies/locations`,pathParams:{},query:a,bodyKind:`none`});return}let o=await t(e),s=await i(`Loading`,async()=>o.send(_l,a));n(s,{successLabel:`Loaded`})})},bl={command:`locations`,describe:`Operations for traffic-anomalies.locations`,builder:e=>e.command(yl).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},xl={command:`traffic-anomalies`,describe:`Detected traffic anomalies and unusual patterns in Internet traffic flows`,builder:e=>e.command(gl).command(pl).command(bl).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},Sl={command:`radar`,describe:`Internet-wide traffic intelligence — BGP, DNS, HTTP trends, attack data, and network quality insights`,builder:e=>e.command(ne).command(I).command(X).command(we).command(_t).command(In).command(ar).command(kr).command(Lr).command(ei).command(Mi).command(sa).command(ma).command(Uo).command(Xo).command(ps).command(ks).command(Vs).command(lc).command(Ac).command(zc).command(Uc).command(Xc).command(ul).command(xl).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};export{Sl as default};
|