cf 1.0.0-beta.18 → 1.0.0-beta.19
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +7 -0
- package/dist/_meta/commands.json +3003 -1544
- package/dist/_meta/hand-written-commands.json +6 -0
- package/dist/_meta/schemas.json +2127 -1070
- package/dist/{abuse-reports-Ce-g5uZP.mjs → abuse-reports-DhgunVFo.mjs} +3 -3
- package/dist/{access-BtsMwesh.mjs → access-BDoDq_WZ.mjs} +1 -1
- package/dist/{accounts-X5QVzEUW.mjs → accounts-DLTCzZJg.mjs} +24 -26
- package/dist/{acm-C_NepMi6.mjs → acm-DS1CosYq.mjs} +1 -1
- package/dist/{addressing-BkQY1hoA.mjs → addressing-DFeYj8TY.mjs} +2 -2
- package/dist/{agent-memory-1OPgC3lK.mjs → agent-memory-DXjQ8N0g.mjs} +1 -1
- package/dist/{ai-Bb0_Zknm.mjs → ai-V5YopMkS.mjs} +4 -4
- package/dist/{ai-audit-DuEjVdML.mjs → ai-audit-yg8D0azz.mjs} +2 -2
- package/dist/{ai-gateway-Cm2vWMSI.mjs → ai-gateway--dkH9qGz.mjs} +13 -13
- package/dist/ai-search-BRtsUaUI.mjs +79 -0
- package/dist/{ai-security-A2STvE1b.mjs → ai-security-DRJCcLpF.mjs} +1 -1
- package/dist/{alerting-CIwSk-Ks.mjs → alerting-8DsyMKGG.mjs} +30 -30
- package/dist/{analytics-H--uM3DA.mjs → analytics-BpYUZTtQ.mjs} +1 -1
- package/dist/{analytics-engine-Alu7cllT.mjs → analytics-engine-CT2E0Dkw.mjs} +1 -1
- package/dist/{api-security-D-pcnhUL.mjs → api-security-CBhWZE8z.mjs} +6 -6
- package/dist/{argo-Lvmcx3am.mjs → argo-B0u2N3Dh.mjs} +1 -1
- package/dist/{artifacts-xT5S-mVa.mjs → artifacts-B6XzjMiM.mjs} +1 -1
- package/dist/{audit-logs-DEoRBLkU.mjs → audit-logs-59fCc1aw.mjs} +1 -1
- package/dist/auth-5cgi8ePZ.mjs +2 -0
- package/dist/auth-BaUNb1Ed.mjs +2 -0
- package/dist/auth-ChYOc_rS.mjs +2 -0
- package/dist/{auth-token-D9XIPlwf.mjs → auth-token-B1pP2jaK.mjs} +1 -1
- package/dist/{autoconfig-9po_tqsS.mjs → autoconfig-Cdm2IFLM.mjs} +20 -20
- package/dist/{basin-catalog-DFHt3cWi.mjs → basin-catalog-CV05WlA4.mjs} +1 -1
- package/dist/{billing-Bm2JNSGa.mjs → billing-Ad-rK-JH.mjs} +3 -3
- package/dist/{blocks-Bat9A8V_.mjs → blocks-CKb_aLWN.mjs} +1 -1
- package/dist/body-parser-ChnyBsfm.mjs +2 -0
- package/dist/{bot-management-CSr38g-O.mjs → bot-management-CGpfjQ4w.mjs} +1 -1
- package/dist/{botnet-feed-ebeWWSJj.mjs → botnet-feed-CMrF6ZGq.mjs} +1 -1
- package/dist/{brand-protection-BCn9Mv-d.mjs → brand-protection-CP73_yX8.mjs} +1 -1
- package/dist/{browser-run-BcWxzhAn.mjs → browser-run-OpUfawh_.mjs} +21 -21
- package/dist/{build-i8l2qGVZ.mjs → build-CMPlf8mh.mjs} +1 -1
- package/dist/build-DQZ2w_dQ.mjs +2 -0
- package/dist/{builds-BMwDzi7G.mjs → builds-DsRNlILV.mjs} +39 -39
- package/dist/{cache-_VaTLC5T.mjs → cache-RppXjxXA.mjs} +3 -3
- package/dist/{cf-Bq4pA4n6.mjs → cf-PISMdEje.mjs} +11 -11
- package/dist/{chunk-2HLTAS5V-D7COzUOd.mjs → chunk-2HLTAS5V-B92NbX1j.mjs} +1 -1
- package/dist/{chunk-2K52M2W5-CYxfQXUq.mjs → chunk-2K52M2W5-c__08AOB.mjs} +7 -7
- package/dist/chunk-DSGVRFIS-DfQO1boa.mjs +2 -0
- package/dist/{cli-P3q5DG3W.mjs → cli-Dd1n2YAJ.mjs} +1 -1
- package/dist/{client-side-security-CjSXrpa9.mjs → client-side-security-BYfwOkUo.mjs} +1 -1
- package/dist/{cloud-connector-BPJBeP06.mjs → cloud-connector-CQZUqAMQ.mjs} +2 -2
- package/dist/{cloudflared-By8BzYXc.mjs → cloudflared-C1SdXpYv.mjs} +1 -1
- package/dist/{cloudforce-one-DXX31GMi.mjs → cloudforce-one-C1xdpspb.mjs} +200 -210
- package/dist/{command-Bkc04OyY.mjs → command-BioiZMm9.mjs} +1 -1
- package/dist/{command-BbsPxJBT.mjs → command-C0nJ2LRd.mjs} +1 -1
- package/dist/{command-DDcBC4px.mjs → command-C5ARgURy.mjs} +1 -1
- package/dist/{command-CL7LLXM7.mjs → command-C7NIRU-u.mjs} +1 -1
- package/dist/{command-BXiA79DP.mjs → command-C8DV-x_C.mjs} +1 -1
- package/dist/{command-BtTc28ql.mjs → command-CFV1cqfR.mjs} +1 -1
- package/dist/{command-NoxvOARP.mjs → command-ChQXv0jP.mjs} +1 -1
- package/dist/{command-DCQgsd2U.mjs → command-D203VrTG.mjs} +1 -1
- package/dist/{command-DZfKHiru.mjs → command-D5BUzDX8.mjs} +1 -1
- package/dist/{command-CBZhxmKD.mjs → command-DWE7YdeC.mjs} +1 -1
- package/dist/{command-C6w1OdoC.mjs → command-DlB10kIb.mjs} +1 -1
- package/dist/{command-CxWLFv5Y.mjs → command-DmPQXNRg.mjs} +1 -1
- package/dist/{command-Bgb-3yPg.mjs → command-F0jlqvKr.mjs} +1 -1
- package/dist/{command-DppVezAB.mjs → command-FOQNhNqP.mjs} +1 -1
- package/dist/{command-CYyfigfC.mjs → command-yAXk5NXh.mjs} +1 -1
- package/dist/{completions-CrDmwKnK.mjs → completions-Bh0Hz-hA.mjs} +3 -3
- package/dist/{connector-interrupts-V4HGULCM.mjs → connector-interrupts-Bd949WX0.mjs} +1 -1
- package/dist/{connector-telemetry-events-D9mTcfbJ.mjs → connector-telemetry-events-Dw8iIg5Q.mjs} +1 -1
- package/dist/{connector-telemetry-snapshots-COrPVKol.mjs → connector-telemetry-snapshots-DqEIaz99.mjs} +1 -1
- package/dist/{connectors-DvVlxGDx.mjs → connectors-RUEU1QDB.mjs} +1 -1
- package/dist/containers-xU-0EhLO.mjs +78 -0
- package/dist/{containers-BtcOgwm5.mjs → containers-yUOvm-4V.mjs} +211 -211
- package/dist/{content-scan-DldLmTjy.mjs → content-scan-Cm2-Xhqo.mjs} +2 -2
- package/dist/{context-C_a8oSY9.mjs → context-BQ6KeMgq.mjs} +2 -2
- package/dist/{cps-REo1OWP1.mjs → cps-CgPduy0H.mjs} +1 -1
- package/dist/{csam-scanner-CIbbdoJK.mjs → csam-scanner-B0Ra6fXL.mjs} +1 -1
- package/dist/{custom-csrs-iGNc3rSZ.mjs → custom-csrs-6lfu1-RR.mjs} +1 -1
- package/dist/{custom-hostnames-BNxYbTyu.mjs → custom-hostnames-Dzov_CPw.mjs} +15 -15
- package/dist/{custom-nameservers-BMJoTSlQ.mjs → custom-nameservers-Bfhv_9_k.mjs} +1 -1
- package/dist/{custom-pages-Qdemt1Fm.mjs → custom-pages-DxVD_f10.mjs} +1 -1
- package/dist/{d1-DvCiQibO.mjs → d1-D7p4uJ-e.mjs} +10 -12
- package/dist/delegate.mjs +1 -1
- package/dist/{deploy-K664XPOb.mjs → deploy-BjWvVZol.mjs} +1 -1
- package/dist/deploy-context-C-ZdGP0Z.mjs +56 -0
- package/dist/{deploy-input-KK6yyBN_.mjs → deploy-input-B8Nq6Eh6.mjs} +1 -1
- package/dist/{dev-CnoMHxf4.mjs → dev-D20UkcYT.mjs} +1 -1
- package/dist/{diagnostics-Cw0mtcep.mjs → diagnostics-DdhTemYB.mjs} +1 -1
- package/dist/{dialog-D4Y9ocuF.mjs → dialog-BnIgdgWi.mjs} +1 -1
- package/dist/discover-DEjUARkU.mjs +2 -0
- package/dist/{dist-DZRTPMMA.mjs → dist-CnKd5XoR.mjs} +19 -19
- package/dist/{dist-uRuGmkMB.mjs → dist-DAeCUX-u.mjs} +3 -3
- package/dist/{dls-DoqfqutH.mjs → dls-BBODA9Rk.mjs} +1 -1
- package/dist/{dns-DC6WcO3m.mjs → dns-CK_hyn5q.mjs} +5 -5
- package/dist/{dns-firewall-DpQH9BCE.mjs → dns-firewall-DbvX9R-7.mjs} +1 -1
- package/dist/{docs-CqNRBHab.mjs → docs-BDTijwM3.mjs} +1 -1
- package/dist/{dot-prop-IITUZ2XW-BnPfnQkb.mjs → dot-prop-IITUZ2XW-C4pkmT-K.mjs} +1 -1
- package/dist/{dotenv-usOKkeW7.mjs → dotenv-Ck-6V1hm.mjs} +1 -1
- package/dist/{dry-run-C2KjGX10.mjs → dry-run-DQmFkNK_.mjs} +1 -1
- package/dist/{durable-objects-CJDDy3CC.mjs → durable-objects-DcFbd1Ka.mjs} +1 -1
- package/dist/{email-auth--NHg1TjG.mjs → email-auth-BEgDxU-g.mjs} +1 -1
- package/dist/{email-routing-COjENK55.mjs → email-routing-DKWmPOVo.mjs} +1 -1
- package/dist/{email-security-rdjH95T2.mjs → email-security-RWbAp8qa.mjs} +15 -15
- package/dist/{email-sending-26VJhR6Q.mjs → email-sending-BbJy_vl8.mjs} +1 -1
- package/dist/error-sanitization-Byb-_IS9.mjs +2 -0
- package/dist/{error-sanitization-pOyzm2F1.mjs → error-sanitization-DWJ5ka7h.mjs} +1 -1
- package/dist/{field-extractors-DBOvGOwz.mjs → field-extractors-Bob6udAc.mjs} +1 -1
- package/dist/{firewall-D8K93ffF.mjs → firewall-DziiEsR8.mjs} +1 -1
- package/dist/{flagship-CHdmCmvQ.mjs → flagship-xOtgddUK.mjs} +1 -1
- package/dist/{fraud-CY4TV5Vc.mjs → fraud-BUS7i5Yh.mjs} +1 -1
- package/dist/generate-D6V4Q58z.mjs +2 -0
- package/dist/get-BTisquA3.mjs +2 -0
- package/dist/{google-tag-gateway-DzSt4wlz.mjs → google-tag-gateway-DgSzyeK-.mjs} +1 -1
- package/dist/{gt-3bcLGJ7V.mjs → gt-D6YemCLh.mjs} +1 -1
- package/dist/{healthchecks-B52Mf3uL.mjs → healthchecks-CbD2PsnM.mjs} +1 -1
- package/dist/{hyperdrive-CHsW0r6Z.mjs → hyperdrive-Cs_cfSXU.mjs} +1 -1
- package/dist/{iam-o1n9eUXf.mjs → iam-DvsCztqU.mjs} +5 -5
- package/dist/{images-CJHAGxX6.mjs → images-BipVjHNw.mjs} +1 -1
- package/dist/index.mjs +1 -1
- package/dist/init-LvFgCsNX.mjs +43 -0
- package/dist/{intel-B3S1gxUg.mjs → intel-D1LPkkBM.mjs} +31 -41
- package/dist/{interactive-BW9T1D1q.mjs → interactive-d_lFnSev.mjs} +3 -3
- package/dist/interactive-pjVqirHx.mjs +2 -0
- package/dist/{ips-q_UJMiy8.mjs → ips-2iUGs8ws.mjs} +1 -1
- package/dist/{k2-BNqVZnDN.mjs → k2-DGzRm3NJ.mjs} +1 -1
- package/dist/{kv-B0nXSOcW.mjs → kv-BW-s9MJY.mjs} +4 -4
- package/dist/{lazy-command-4ccdBqrc.mjs → lazy-command-Bq-rWPQe.mjs} +1 -1
- package/dist/{leaked-credential-checks-BXwIjlTs.mjs → leaked-credential-checks-CnY6ih6p.mjs} +1 -1
- package/dist/{load-balancers-DJtMztJ0.mjs → load-balancers-CtnusAzP.mjs} +1 -1
- package/dist/{local-Dil4fTWX.mjs → local-B4sZZTRA.mjs} +1 -1
- package/dist/local-DCnFIgLJ.mjs +2 -0
- package/dist/{local-runtime-B7TKFu6E.mjs → local-runtime-DoBuyriC.mjs} +1 -1
- package/dist/login-CqZJgUF1.mjs +5 -0
- package/dist/{login-D-1FiBNv.mjs → login-DR60WiAY.mjs} +1 -1
- package/dist/{logo-matches-qVYq8tWL.mjs → logo-matches-C1-6KOkZ.mjs} +1 -1
- package/dist/{logos-tnIahhcu.mjs → logos-Yzhd-VKb.mjs} +2 -2
- package/dist/{logpush-D4s3pJRw.mjs → logpush-JYG4gXZ-.mjs} +3 -3
- package/dist/{logs-cw7UL5V2.mjs → logs-DLblEjK0.mjs} +1 -1
- package/dist/{magic-cloud-networking-CLEHztNY.mjs → magic-cloud-networking-CblQwsQr.mjs} +13 -13
- package/dist/{magic-network-monitoring-DRwygeVq.mjs → magic-network-monitoring-D2px4Ep4.mjs} +3 -3
- package/dist/{magic-transit-BFopRdPs.mjs → magic-transit-Bnwsi0UQ.mjs} +61 -61
- package/dist/{managed-defense-D5kpmq0T.mjs → managed-defense-CTtNoxzW.mjs} +3 -3
- package/dist/{managed-transforms-CT4jjnzJ.mjs → managed-transforms-B92mJi5i.mjs} +1 -1
- package/dist/{matches-ClJ_24EY.mjs → matches-CzbL1XD-.mjs} +1 -1
- package/dist/{mcp-50os3IRG.mjs → mcp-Cic_aMer.mjs} +1 -1
- package/dist/{mesh-jxtQP8sS.mjs → mesh-DZTgD16C.mjs} +14 -14
- package/dist/{migrate-DerOyuv2.mjs → migrate-DtNDRcAI.mjs} +1 -1
- package/dist/{monetization-D6cCDi-h.mjs → monetization-DCQ2_niU.mjs} +1 -1
- package/dist/{network-dnWHB2uY.mjs → network-BqMqD2qn.mjs} +1 -1
- package/dist/{network-interconnects-Cf8qSVdt.mjs → network-interconnects-BFQ1yARl.mjs} +2 -2
- package/dist/{o11y-oMSg1pG4.mjs → o11y-CS5q1vSh.mjs} +5 -5
- package/dist/oauth-DPLYUvRl.mjs +2 -0
- package/dist/oauth-DdYSPYoE.mjs +4 -0
- package/dist/{oauth-clients-XDmoe-b4.mjs → oauth-clients-9BPswYm_.mjs} +1 -1
- package/dist/{oauth-scopes-D9VYGuTs.mjs → oauth-scopes-CLOKfQi2.mjs} +1 -1
- package/dist/{open-PCXX3ZDZ-5J5IU2MX-CKla-jDt.mjs → open-PCXX3ZDZ-5J5IU2MX-DFe2CQkm.mjs} +1 -1
- package/dist/{open-PCXX3ZDZ-D55O2jpQ.mjs → open-PCXX3ZDZ-BD2iNJqn.mjs} +1 -1
- package/dist/{organization-94lHeeOs.mjs → organization-DFRN2g6z.mjs} +1 -1
- package/dist/{organizations-BJf3UTFi.mjs → organizations-yiGopnKf.mjs} +1 -1
- package/dist/{origin-post-quantum-encryption-DMytVSUZ.mjs → origin-post-quantum-encryption-n9gsxikn.mjs} +1 -1
- package/dist/output-O6b9MR9R.mjs +2 -0
- package/dist/{page-rules-BUI-50oz.mjs → page-rules-F1Jdxx6A.mjs} +1 -1
- package/dist/{pages-CcdpCzHs.mjs → pages-CezC0YrR.mjs} +2 -2
- package/dist/{pay-per-crawl-B1uHZn9j.mjs → pay-per-crawl-fZ-kTBbN.mjs} +2 -2
- package/dist/{pay-per-use-t066I5wm.mjs → pay-per-use-B14BTKVI.mjs} +2 -2
- package/dist/{pipelines-Co6S044l.mjs → pipelines-BN7ydBHl.mjs} +5 -5
- package/dist/{precursor-BftyvS86.mjs → precursor-B88RDDZT.mjs} +2 -2
- package/dist/previews-CiqRIq_k.mjs +7 -0
- package/dist/process-DiXf4VPi.mjs +2 -0
- package/dist/{progress-Q5w9PNTT.mjs → progress-CdlDthXA.mjs} +1 -1
- package/dist/{prompt-C0hKSr-R.mjs → prompt-1AC-qwxS.mjs} +1 -1
- package/dist/{queries-4MubO6Sz.mjs → queries-C2sgUI9j.mjs} +1 -1
- package/dist/{queues-CteS5M92.mjs → queues-DCP5x-PZ.mjs} +1 -1
- package/dist/{r2-2QpT_Gso.mjs → r2-D7UhzWR7.mjs} +26 -26
- package/dist/{radar-ODKaK4FJ.mjs → radar-osOiFeY_.mjs} +1 -1
- package/dist/{raw-fetch-CEOuoKl9.mjs → raw-fetch-1VlXDwwX.mjs} +1 -1
- package/dist/{realtime-DkfU8uEX.mjs → realtime-DCnqxiWo.mjs} +90 -87
- package/dist/{registrar-DM6JTVPS.mjs → registrar-DAFYjjRa.mjs} +8 -8
- package/dist/{registrar-sandbox-BPNGf65G.mjs → registrar-sandbox-zeNHABZ0.mjs} +4 -4
- package/dist/{registry-CRnk93ur.mjs → registry-DG4ZiuN9.mjs} +1 -1
- package/dist/{reporting-5yFNXbJg.mjs → reporting-KehV_PXm.mjs} +1 -1
- package/dist/{request-headers-DXvswze2.mjs → request-headers-ojAw3pQO.mjs} +1 -1
- package/dist/{request-tracers-BarLZY95.mjs → request-tracers-BStCgh6m.mjs} +1 -1
- package/dist/resolve-BGNMAcGR.mjs +2 -0
- package/dist/{resource-sharing-BVEwBPs8.mjs → resource-sharing-3xtSgWG7.mjs} +3 -3
- package/dist/{rules-_C31X4Jz.mjs → rules-7F-G2Bg_.mjs} +3 -3
- package/dist/{rulesets-8RwxoFhG.mjs → rulesets-B0YtS2br.mjs} +20 -20
- package/dist/{rum-CAUcpXpM.mjs → rum-B3V6tqS-.mjs} +1 -1
- package/dist/{run-DtFLvOHB.mjs → run-B_07PrkW.mjs} +1 -1
- package/dist/run-D6AJfZT-.mjs +2 -0
- package/dist/{schema-S3pUZwpI.mjs → schema-C-tyhSnb.mjs} +1 -1
- package/dist/{schema-flags-DibfxEF6.mjs → schema-flags-DY3OKCvr.mjs} +4 -4
- package/dist/{scim-DX5XrQ4w.mjs → scim-CQ9TdajH.mjs} +6 -6
- package/dist/{secrets-store-DSqqrr25.mjs → secrets-store-Dl2hDxXu.mjs} +2 -2
- package/dist/{security-insights-FSktO04S.mjs → security-insights-BsLMdo1r.mjs} +2 -2
- package/dist/{security-txt-D2g3lQdg.mjs → security-txt-pCAiHvys.mjs} +1 -1
- package/dist/session-BsNzFtPi.mjs +2 -0
- package/dist/shared-CWBjMZDR.mjs +2 -0
- package/dist/{smart-shield-IVb2sR0C.mjs → smart-shield-BTXQsVxz.mjs} +1 -1
- package/dist/{snippets-cWwWficN.mjs → snippets-CYVieyc3.mjs} +2 -2
- package/dist/source-AlTrHNem.mjs +6 -0
- package/dist/{spawn-BW2bJmKO.mjs → spawn-Bdznd0EB.mjs} +2 -2
- package/dist/{spectrum-DYiIBYRB.mjs → spectrum-DLRr4Q03.mjs} +14 -14
- package/dist/{speed-C7uiW2Wf.mjs → speed-BJfaDYxz.mjs} +13 -13
- package/dist/sql-DQ4xrdc2.mjs +4 -0
- package/dist/src-BnMvFE3q.mjs +125 -0
- package/dist/{ssl-xQP_HbWN.mjs → ssl-CL1B69Pw.mjs} +1 -1
- package/dist/startup-profile-DuaJFX1y.mjs +2 -0
- package/dist/startup-profile-HMblAiBi.mjs +29 -0
- package/dist/{state-Boubf1X6.mjs → state-DN9yfd2C.mjs} +1 -1
- package/dist/state-DePlO0Kv.mjs +2 -0
- package/dist/{stream-CfWgj8Cr.mjs → stream-DrMZOO5u.mjs} +17 -17
- package/dist/{submit-DxGr1T40.mjs → submit-DjlLoVk2.mjs} +1 -1
- package/dist/{tags-LEJ2VYhQ.mjs → tags-DY7Ur1k-.mjs} +4 -4
- package/dist/{telemetry-BHne10Yy.mjs → telemetry-BG3kcYsV.mjs} +1 -1
- package/dist/telemetry-Dpm6GfZD.mjs +2 -0
- package/dist/{tenant-7d5vwc6K.mjs → tenant-BEMfNMjO.mjs} +1 -1
- package/dist/{tenant-custom-nameservers-BkxlPr5O.mjs → tenant-custom-nameservers-CCRbb0ch.mjs} +1 -1
- package/dist/{tools-BCCRUENY.mjs → tools-ZffhHUDd.mjs} +1 -1
- package/dist/tunnels-_JXe-UgM.mjs +29 -0
- package/dist/{turnstile-DhLkdhij.mjs → turnstile-DXEfneQq.mjs} +1 -1
- package/dist/ui-CY79jlGZ.mjs +2 -0
- package/dist/update-check-DfbYVefm.mjs +2 -0
- package/dist/{update-check-wvjOsnGK.mjs → update-check-atcehhBC.mjs} +1 -1
- package/dist/update-check-worker.mjs +1 -1
- package/dist/{url-info-CeoV5dBc.mjs → url-info-B1kL9asc.mjs} +1 -1
- package/dist/{url-normalization-9NoaoRNh.mjs → url-normalization-CUHKRKJh.mjs} +1 -1
- package/dist/{url-scanner-w_-Sumz-.mjs → url-scanner-OnZP_-jm.mjs} +2 -2
- package/dist/{user-D33B3alX.mjs → user-BBBuFNj4.mjs} +1 -1
- package/dist/{vectorize-Wp9De13y.mjs → vectorize-DcctB8bw.mjs} +3 -3
- package/dist/version-CLgSHoNm.mjs +2 -0
- package/dist/{waiting-rooms-BE8FloRd.mjs → waiting-rooms-JaFE5wP1.mjs} +2 -2
- package/dist/{web-assets-ew0iaP7c.mjs → web-assets-Cu0swUPe.mjs} +10 -10
- package/dist/{web3-BUyXBaqq.mjs → web3-C67z4OtQ.mjs} +1 -1
- package/dist/{workers-pP5tsDbD.mjs → workers-ClTP0Ysl.mjs} +5 -5
- package/dist/{workers-builds-DzU9NGno.mjs → workers-builds-C5wKhvKe.mjs} +7 -7
- package/dist/{workers-for-platforms-B4xzFNxJ.mjs → workers-for-platforms-rxwkYyb3.mjs} +5 -5
- package/dist/{workers-vpc-Bre_t9Al.mjs → workers-vpc-B4vyvr1W.mjs} +1 -1
- package/dist/{workflows-DXYGKtqq.mjs → workflows-COJ5jwvk.mjs} +24 -24
- package/dist/wrangler-migration-Cp546RDG.mjs +946 -0
- package/dist/{zaraz-DoH4QD0u.mjs → zaraz-BkZ7yW05.mjs} +2 -2
- package/dist/{zero-trust-DKt20rzE.mjs → zero-trust-lUFLYuL1.mjs} +496 -444
- package/dist/{zone-BXM3p0JR.mjs → zone-CC1_qxt-.mjs} +1 -1
- package/dist/{zones-CJdtqEBx.mjs → zones-BRiLlTmW.mjs} +37 -28
- package/package.json +11 -11
- package/dist/ai-search-DDRpxyOM.mjs +0 -79
- package/dist/auth-B73lQS2h.mjs +0 -2
- package/dist/auth-DMzEmOhG.mjs +0 -2
- package/dist/auth-Db1KT0vm.mjs +0 -2
- package/dist/body-parser-DnBfDdx3.mjs +0 -2
- package/dist/build-BRJnyeu8.mjs +0 -2
- package/dist/chunk-DSGVRFIS-C5SqiTOz.mjs +0 -2
- package/dist/containers-Bt2zFsFd.mjs +0 -78
- package/dist/deploy-context-ClNVJYlR.mjs +0 -56
- package/dist/discover-DIDEGKo3.mjs +0 -2
- package/dist/error-sanitization-CIQOep3I.mjs +0 -2
- package/dist/generate-D80-1GnZ.mjs +0 -2
- package/dist/get-By1q8YlI.mjs +0 -2
- package/dist/hostnames-BMITIM8P.mjs +0 -11
- package/dist/init-CqQDL6i3.mjs +0 -43
- package/dist/interactive-DGUWZ2Gk.mjs +0 -2
- package/dist/local-DxWDQDnG.mjs +0 -2
- package/dist/login-chQP8825.mjs +0 -5
- package/dist/oauth-BfBdHhPS.mjs +0 -4
- package/dist/oauth-DDOiiH7h.mjs +0 -2
- package/dist/output-Co4xdFf6.mjs +0 -2
- package/dist/previews-BLhnhElx.mjs +0 -7
- package/dist/process-2wmDCy17.mjs +0 -2
- package/dist/resolve-BpgXeklt.mjs +0 -2
- package/dist/run-LcOb9rhI.mjs +0 -2
- package/dist/session-Cq3YNLoI.mjs +0 -2
- package/dist/shared-eefMO8R4.mjs +0 -2
- package/dist/source-mXUcrTVw.mjs +0 -6
- package/dist/sql-TGV8qQMj.mjs +0 -4
- package/dist/src-BUH-P_zd.mjs +0 -125
- package/dist/startup-profile-BOaseXnO.mjs +0 -29
- package/dist/startup-profile-BwEZFVGS.mjs +0 -2
- package/dist/state-CODDG9Nx.mjs +0 -2
- package/dist/telemetry-BavSU4ku.mjs +0 -2
- package/dist/tunnels-DlGODvwT.mjs +0 -29
- package/dist/ui-BtIBQeaG.mjs +0 -2
- package/dist/update-check-nLfkSfdz.mjs +0 -2
- package/dist/version-B2RUUqGT.mjs +0 -2
- package/dist/wrangler-migration-R9TQ_4Qd.mjs +0 -946
|
@@ -1,76 +1,66 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import"./api-eMuS5GI1.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{t}from"./local-
|
|
2
|
+
import"./api-eMuS5GI1.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{t}from"./local-B4sZZTRA.mjs";import{i as n,n as r}from"./auth-BaUNb1Ed.mjs";import{a as i,i as a,t as o}from"./context-BQ6KeMgq.mjs";import{t as s}from"./output-O6b9MR9R.mjs";import{t as c}from"./dry-run-DQmFkNK_.mjs";import{t as l}from"./progress-CdlDthXA.mjs";import{t as u}from"./run-B_07PrkW.mjs";import"./telemetry-Dpm6GfZD.mjs";import{n as d,t as f}from"./body-parser-ChnyBsfm.mjs";import{n as p,t as m}from"./input-validation-D7z60HJH.mjs";import{a as h,n as g}from"./prompt-1AC-qwxS.mjs";import{n as _,t as ee}from"./raw-fetch-1VlXDwwX.mjs";var te={method:`GET`,path:t=>e`/accounts/${t.account_id}/intel/asn/${t.asn}`};function ne(e){return e.usage(`$0 intel asn get <asn>
|
|
3
3
|
|
|
4
4
|
Gets an overview of the Autonomous System Number (ASN) and a list of subnets for it.`).positional(`asn`,{type:`string`,description:`Asn`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const re={command:`get <asn>`,describe:`Get ASN Overview.`,builder:ne,handler:async e=>u({command:`intel asn get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await i();c({command:`cf intel asn get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/intel/asn/${e.asn==null?`<asn>`:encodeURIComponent(String(e.asn))}`,pathParams:{asn:String(e.asn??``)},bodyKind:`none`});return}let n=await r(e),a=e.local?t:await o();e.accountId=a;let u=await l(`Loading`,async()=>n.send(te,{account_id:a,asn:e.asn}));s(u,{successLabel:`Loaded`})})};var ie={method:`GET`,path:t=>e`/accounts/${t.account_id}/intel/asn/${t.asn}/subnets`};function ae(e){return e.usage(`$0 intel asn subnets get <asn>
|
|
5
5
|
|
|
6
6
|
Get ASN Subnets.`).positional(`asn`,{type:`string`,description:`Asn`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const oe={command:`get <asn>`,describe:`Get ASN Subnets`,builder:ae,handler:async e=>u({command:`intel asn subnets get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await i();c({command:`cf intel asn subnets get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/intel/asn/${e.asn==null?`<asn>`:encodeURIComponent(String(e.asn))}/subnets`,pathParams:{asn:String(e.asn??``)},bodyKind:`none`});return}let n=await r(e),a=e.local?t:await o();e.accountId=a;let u=await l(`Loading`,async()=>n.send(ie,{account_id:a,asn:e.asn}));s(u,{successLabel:`Loaded`})})},se={command:`subnets`,describe:`Operations for asn.subnets`,builder:e=>e.command(oe).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},ce={command:`asn`,describe:`ASN intelligence — ownership, geolocation, and subnet details for autonomous systems`,builder:e=>e.command(re).command(se).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var le={method:`GET`,path:t=>e`/accounts/${t.account_id}/intel/attack-surface-report/issue-types`};function ue(e){return e.usage(`$0 intel attack-surface-report issue-types get
|
|
7
7
|
|
|
8
|
-
Lists all available issue types in Security Center, describing categories of security issues.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const
|
|
8
|
+
Lists all available issue types in Security Center, describing categories of security issues.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const v={command:`get`,describe:`Retrieves Security Center Issues Types`,builder:ue,handler:async e=>u({command:`intel attack-surface-report issue-types get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let e=await i();c({command:`cf intel attack-surface-report issue-types get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}/intel/attack-surface-report/issue-types`,pathParams:{},bodyKind:`none`});return}let n=await r(e),a=e.local?t:await o();e.accountId=a;let u=await l(`Loading`,async()=>n.send(le,{account_id:a}));s(u,{successLabel:`Loaded`})})},y={command:`issue-types`,describe:`Operations for attack-surface-report.issue-types`,builder:e=>e.command(v).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},b={command:`attack-surface-report`,describe:`Attack surface intelligence — exposed assets, vulnerabilities, and infrastructure mapping`,builder:e=>e.command(y).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var x={method:`GET`,path:t=>e`/accounts/${t.account_id}/intel/dns`,query:[`start_end_params`,`ipv4`,`page`,`per_page`]};function S(e){return e.usage(`$0 intel dns list
|
|
9
9
|
|
|
10
|
-
|
|
10
|
+
Gets a list of all the domains that have resolved to a specific IP address.`).option(`start-end-params`,{type:`string`,description:`Start end params`}).option(`ipv4`,{type:`string`,description:`Ipv4`}).option(`page`,{type:`number`,description:`Requested page within paginated list of results.`}).option(`per-page`,{type:`number`,description:`Maximum number of results requested.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const C={command:`list`,describe:`Get Passive DNS by IP`,builder:S,handler:async e=>u({command:`intel dns list`,classification:{safeFlags:[`dry-run`]}},e,async()=>{let n={start_end_params:e[`start-end-params`],ipv4:e.ipv4,page:e.page,per_page:e[`per-page`]};if(e.dryRun){let e=await i();c({command:`cf intel dns list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}/intel/dns`,pathParams:{},query:n,bodyKind:`none`});return}let a=await r(e),u=e.local?t:await o();e.accountId=u;let d=await l(`Loading`,async()=>a.send(x,{account_id:u,...n}));s(d,{successLabel:`Loaded`})})},w={command:`dns`,describe:`Passive DNS data showing historical DNS resolution records for domains`,builder:e=>e.command(C).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var T={method:`GET`,path:t=>e`/accounts/${t.account_id}/intel/domain-history`,query:[`domain`]};function E(e){return e.usage(`$0 intel domain-history get
|
|
11
11
|
|
|
12
|
-
|
|
12
|
+
Gets historical security threat and content categories currently and previously assigned to a domain.`).option(`domain`,{type:`string`,description:`Domain`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const D={command:`get`,describe:`Get Domain History`,builder:E,handler:async e=>u({command:`intel domain-history get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{let n={domain:e.domain};if(e.dryRun){let e=await i();c({command:`cf intel domain-history get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}/intel/domain-history`,pathParams:{},query:n,bodyKind:`none`});return}let a=await r(e),u=e.local?t:await o();e.accountId=u;let d=await l(`Loading`,async()=>a.send(T,{account_id:u,...n}));s(d,{successLabel:`Loaded`})})},O={command:`domain-history`,describe:`Historical domain registration and categorization changes over time`,builder:e=>e.command(D).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var k={method:`GET`,path:t=>e`/accounts/${t.account_id}/intel/domain/bulk`,query:[`domain`,`include_ranking`,`skip_ranking`]};function A(e){return e.usage("$0 intel domains bulks get\n\nReturns security details and statistics about multiple domains in a single request. **Behavior change — domain ranking is becoming opt-in.** This endpoint previously included domain ranking data in every response and accepted a `skip_ranking=true` query parameter to opt out. That parameter is being deprecated and ranking will no longer be returned by default. Callers that want ranking data must pass `include_ranking=true`. The `skip_ranking` parameter will be silently ignored once the change ships.").option(`domain`,{type:`string`,description:"Accepts multiple values like `?domain=cloudflare.com&domain=example.com`."}).option(`include-ranking`,{type:`boolean`,description:"Whether to include domain ranking data in the response. Defaults to\n`false` — ranking lookups are expensive at bulk scale and most\ncallers do not need them. Set to `true` to opt in. This parameter\nreplaces the deprecated `skip_ranking` (see below)."}).option(`skip-ranking`,{type:`boolean`,description:"**Deprecated.** Previously controlled whether the ranking lookup\nwas skipped (defaulted to `false`, meaning ranking ran). The\nendpoint's default behavior is being flipped — ranking is now\nopt-in via `include_ranking=true` — and this parameter will be\nsilently ignored. Remove it from your callers and use\n`include_ranking` instead."}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const j={command:`get`,describe:`Get Multiple Domain Details`,builder:A,handler:async e=>u({command:`intel domains bulks get`,classification:{safeFlags:[`include-ranking`,`skip-ranking`,`dry-run`]}},e,async()=>{let n={domain:e.domain,include_ranking:e[`include-ranking`],skip_ranking:e[`skip-ranking`]};if(e.dryRun){let e=await i();c({command:`cf intel domains bulks get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}/intel/domain/bulk`,pathParams:{},query:n,bodyKind:`none`});return}let a=await r(e),u=e.local?t:await o();e.accountId=u;let d=await l(`Loading`,async()=>a.send(k,{account_id:u,...n}));s(d,{successLabel:`Loaded`})})},M={command:`bulks`,describe:`Operations for domains.bulks`,builder:e=>e.command(j).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var N={method:`GET`,path:t=>e`/accounts/${t.account_id}/intel/domain`,query:[`domain`,`skip_dns`,`skip_ranking`]};function P(e){return e.usage(`$0 intel domains get
|
|
13
13
|
|
|
14
|
-
|
|
14
|
+
Gets security details and statistics about a domain.`).option(`domain`,{type:`string`,description:`Domain`}).option(`skip-dns`,{type:`boolean`,description:`Skip DNS resolution lookups for faster response.`}).option(`skip-ranking`,{type:`boolean`,description:"Skip the domain ranking lookup for faster responses. Defaults to\n`false` (ranking is included). Set to `true` to opt out — primarily\nused by callers like Cloudflare Radar that need to avoid a\ncircular dependency when building the domain details page.\nNote: the bulk endpoint (`/intel/domain/bulk`) uses opposite\ndefaults — see `include_ranking` there."}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const F={command:`get`,describe:`Get Domain Details`,builder:P,handler:async e=>u({command:`intel domains get`,classification:{safeFlags:[`skip-dns`,`skip-ranking`,`dry-run`]}},e,async()=>{let n={domain:e.domain,skip_dns:e[`skip-dns`],skip_ranking:e[`skip-ranking`]};if(e.dryRun){let e=await i();c({command:`cf intel domains get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}/intel/domain`,pathParams:{},query:n,bodyKind:`none`});return}let a=await r(e),u=e.local?t:await o();e.accountId=u;let d=await l(`Loading`,async()=>a.send(N,{account_id:u,...n}));s(d,{successLabel:`Loaded`})})},I={command:`domains`,describe:`Domain intelligence — risk scores, categories, and associated infrastructure`,builder:e=>e.command(F).command(M).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var L={method:`POST`,path:t=>e`/accounts/${t.account_id}/intel/indicator-feeds`,body:`json`};function R(e){return e.usage(`$0 intel indicator-feeds create
|
|
15
15
|
|
|
16
|
-
|
|
16
|
+
Creates a new custom threat indicator feed for sharing threat intelligence data.`).option(`description`,{type:`string`,description:`The description of the example test`}).option(`name`,{type:`string`,description:`The name of the indicator feed`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const z={command:`create`,describe:`Create new indicator feed`,builder:R,handler:async e=>u({command:`intel indicator-feeds create`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await i();c({command:`cf intel indicator-feeds create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/intel/indicator-feeds`,pathParams:{},bodyKind:`json`,body:e.body===void 0?f({description:p(e.description,`description`,`text`),name:p(e.name,`name`,`text`)}):d(e.body)});return}let n=await r(e),a=e.local?t:await o();if(e.accountId=a,e.body){let t=d(e.body),r=await l(`Creating`,async()=>n.send(L,{body:t,account_id:a}));s(r,{successLabel:`Created`});return}let u=f({description:p(e.description,`description`,`text`),name:p(e.name,`name`,`text`)}),m=await l(`Creating`,async()=>n.send(L,{body:u,account_id:a}));s(m,{successLabel:`Created`})})};function B(e){return e.usage(`$0 intel indicator-feeds data <feed-id>
|
|
17
17
|
|
|
18
|
-
Retrieves
|
|
18
|
+
Retrieves the raw data entries in a custom threat indicator feed.`).positional(`feed-id`,{type:`string`,description:`Indicator feed ID`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const V={command:`data <feed-id>`,describe:`Get indicator feed data`,builder:B,handler:async e=>u({command:`intel indicator-feeds data`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await i();c({command:`cf intel indicator-feeds data`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/intel/indicator-feeds/${e[`feed-id`]==null?`<feed-id>`:encodeURIComponent(String(e[`feed-id`]))}/data`,pathParams:{"feed-id":String(e[`feed-id`]??``)},bodyKind:`none`});return}await r(e);let n=e.local?t:await o();e.accountId=n;let a=await l(`Loading`,async()=>ee(`/accounts/${n}/intel/indicator-feeds/${encodeURIComponent(String(e[`feed-id`]))}/data`,{method:`GET`,local:e.local===!0,persistTo:e.persistTo}));_(a.toString(`utf-8`))})};var H={method:`GET`,path:t=>e`/accounts/${t.account_id}/intel/indicator-feeds/${t.feed_id}/download`};function U(e){return e.usage(`$0 intel indicator-feeds downloads get <feed-id>
|
|
19
19
|
|
|
20
|
-
|
|
20
|
+
Downloads the content of a custom threat indicator feed.`).positional(`feed-id`,{type:`string`,description:`Indicator feed ID`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const de={command:`get <feed-id>`,describe:`Download indicator feed data`,builder:U,handler:async e=>u({command:`intel indicator-feeds downloads get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await i();c({command:`cf intel indicator-feeds downloads get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/intel/indicator-feeds/${e[`feed-id`]==null?`<feed-id>`:encodeURIComponent(String(e[`feed-id`]))}/download`,pathParams:{"feed-id":String(e[`feed-id`]??``)},bodyKind:`none`});return}let n=await r(e),a=e.local?t:await o();e.accountId=a;let u=await l(`Loading`,async()=>n.send(H,{account_id:a,feed_id:e[`feed-id`]}));s(u,{successLabel:`Loaded`})})},fe={command:`downloads`,describe:`Operations for indicator-feeds.downloads`,builder:e=>e.command(de).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var pe={method:`GET`,path:t=>e`/accounts/${t.account_id}/intel/indicator-feeds/${t.feed_id}`};function me(e){return e.usage(`$0 intel indicator-feeds get <feed-id>
|
|
21
21
|
|
|
22
|
-
|
|
22
|
+
Retrieves details for a specific custom threat indicator feed.`).positional(`feed-id`,{type:`string`,description:`Indicator feed ID`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const he={command:`get <feed-id>`,describe:`Get indicator feed metadata`,builder:me,handler:async e=>u({command:`intel indicator-feeds get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await i();c({command:`cf intel indicator-feeds get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/intel/indicator-feeds/${e[`feed-id`]==null?`<feed-id>`:encodeURIComponent(String(e[`feed-id`]))}`,pathParams:{"feed-id":String(e[`feed-id`]??``)},bodyKind:`none`});return}let n=await r(e),a=e.local?t:await o();e.accountId=a;let u=await l(`Loading`,async()=>n.send(pe,{account_id:a,feed_id:e[`feed-id`]}));s(u,{successLabel:`Loaded`})})};var ge={method:`GET`,path:t=>e`/accounts/${t.account_id}/intel/indicator-feeds`};function _e(e){return e.usage(`$0 intel indicator-feeds list
|
|
23
23
|
|
|
24
|
-
|
|
24
|
+
Retrieves details for all accessible custom threat indicator feeds.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const ve={command:`list`,describe:`Get indicator feeds owned by this account`,builder:_e,handler:async e=>u({command:`intel indicator-feeds list`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let e=await i();c({command:`cf intel indicator-feeds list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}/intel/indicator-feeds`,pathParams:{},bodyKind:`none`});return}let n=await r(e),a=e.local?t:await o();e.accountId=a;let u=await l(`Loading`,async()=>n.send(ge,{account_id:a}));s(u,{successLabel:`Loaded`})})};var W={method:`PUT`,path:t=>e`/accounts/${t.account_id}/intel/indicator-feeds/permissions/add`,body:`json`};function ye(e){return e.usage(`$0 intel indicator-feeds permissions create
|
|
25
25
|
|
|
26
|
-
|
|
26
|
+
Grants access permissions for a custom threat indicator feed to other accounts.`).option(`account-tag`,{type:`string`,description:`The Cloudflare account tag of the account to change permissions on`}).option(`feed-id`,{type:`number`,description:`The ID of the feed to add/remove permissions on`}).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 be={command:`create`,describe:`Grant permission to indicator feed`,builder:ye,handler:async e=>u({command:`intel indicator-feeds permissions create`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await i();c({command:`cf intel indicator-feeds permissions create`,method:`PUT`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/intel/indicator-feeds/permissions/add`,pathParams:{},bodyKind:`json`,body:e.body===void 0?f({account_tag:p(e[`account-tag`],`account-tag`,`text`),feed_id:e[`feed-id`]}):d(e.body)});return}let n=await r(e),a=e.local?t:await o();if(e.accountId=a,e.body){let t=d(e.body),r=await l(`Updating`,async()=>n.send(W,{body:t,account_id:a}));s(r,{successLabel:`Updated`});return}let u=f({account_tag:p(e[`account-tag`],`account-tag`,`text`),feed_id:e[`feed-id`]}),m=await l(`Updating`,async()=>n.send(W,{body:u,account_id:a}));s(m,{successLabel:`Updated`})})};var G={method:`PUT`,path:t=>e`/accounts/${t.account_id}/intel/indicator-feeds/permissions/remove`,body:`json`};function xe(e){return e.usage(`$0 intel indicator-feeds permissions delete
|
|
27
27
|
|
|
28
|
-
|
|
28
|
+
Revokes access permissions for a custom threat indicator feed.`).option(`account-tag`,{type:`string`,description:`The Cloudflare account tag of the account to change permissions on`}).option(`feed-id`,{type:`number`,description:`The ID of the feed to add/remove permissions on`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`force`,{type:`boolean`,alias:`f`,description:`Skip confirmation (useful in scripts and CI)`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const Se={command:`delete`,describe:`Revoke permission to indicator feed`,builder:xe,handler:async e=>u({command:`intel indicator-feeds permissions delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{if(e.dryRun){let t=await i();c({command:`cf intel indicator-feeds permissions delete`,method:`PUT`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/intel/indicator-feeds/permissions/remove`,pathParams:{},bodyKind:`json`,body:e.body===void 0?f({account_tag:p(e[`account-tag`],`account-tag`,`text`),feed_id:e[`feed-id`]}):d(e.body)});return}let n=await r(e),a=e.local?t:await o();if(e.accountId=a,!await g({force:!!e.force,message:`This operation destructively removes a permission entry.`})){process.stderr.write(`Aborted.
|
|
29
|
+
`);return}if(e.body){let t=d(e.body),r=await l(`Deleting`,async()=>n.send(G,{body:t,account_id:a}));s(r,{successLabel:`Deleted`});return}let u=f({account_tag:p(e[`account-tag`],`account-tag`,`text`),feed_id:e[`feed-id`]}),m=await l(`Deleting`,async()=>n.send(G,{body:u,account_id:a}));s(m,{successLabel:`Deleted`})})};var Ce={method:`GET`,path:t=>e`/accounts/${t.account_id}/intel/indicator-feeds/permissions/view`};function we(e){return e.usage(`$0 intel indicator-feeds permissions list
|
|
29
30
|
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
Retrieves details for a specific custom threat indicator feed.`).positional(`feed-id`,{type:`string`,description:`Indicator feed ID`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const je={command:`get <feed-id>`,describe:`Get indicator feed metadata`,builder:Ae,handler:async e=>u({command:`intel indicator-feeds get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await i();c({command:`cf intel indicator-feeds get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/intel/indicator-feeds/${e[`feed-id`]==null?`<feed-id>`:encodeURIComponent(String(e[`feed-id`]))}`,pathParams:{"feed-id":String(e[`feed-id`]??``)},bodyKind:`none`});return}let n=await r(e),a=e.local?t:await o();e.accountId=a;let u=await l(`Loading`,async()=>n.send(ke,{account_id:a,feed_id:e[`feed-id`]}));s(u,{successLabel:`Loaded`})})};var Me={method:`GET`,path:t=>e`/accounts/${t.account_id}/intel/indicator-feeds`};function Ne(e){return e.usage(`$0 intel indicator-feeds list
|
|
33
|
-
|
|
34
|
-
Retrieves details for all accessible custom threat indicator feeds.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const Pe={command:`list`,describe:`Get indicator feeds owned by this account`,builder:Ne,handler:async e=>u({command:`intel indicator-feeds list`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let e=await i();c({command:`cf intel indicator-feeds list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}/intel/indicator-feeds`,pathParams:{},bodyKind:`none`});return}let n=await r(e),a=e.local?t:await o();e.accountId=a;let u=await l(`Loading`,async()=>n.send(Me,{account_id:a}));s(u,{successLabel:`Loaded`})})};var W={method:`PUT`,path:t=>e`/accounts/${t.account_id}/intel/indicator-feeds/permissions/add`,body:`json`};function Fe(e){return e.usage(`$0 intel indicator-feeds permissions create
|
|
35
|
-
|
|
36
|
-
Grants access permissions for a custom threat indicator feed to other accounts.`).option(`account-tag`,{type:`string`,description:`The Cloudflare account tag of the account to change permissions on`}).option(`feed-id`,{type:`number`,description:`The ID of the feed to add/remove permissions on`}).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 Ie={command:`create`,describe:`Grant permission to indicator feed`,builder:Fe,handler:async e=>u({command:`intel indicator-feeds permissions create`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await i();c({command:`cf intel indicator-feeds permissions create`,method:`PUT`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/intel/indicator-feeds/permissions/add`,pathParams:{},bodyKind:`json`,body:e.body===void 0?f({account_tag:p(e[`account-tag`],`account-tag`,`text`),feed_id:e[`feed-id`]}):d(e.body)});return}let n=await r(e),a=e.local?t:await o();if(e.accountId=a,e.body){let t=d(e.body),r=await l(`Updating`,async()=>n.send(W,{body:t,account_id:a}));s(r,{successLabel:`Updated`});return}let u=f({account_tag:p(e[`account-tag`],`account-tag`,`text`),feed_id:e[`feed-id`]}),m=await l(`Updating`,async()=>n.send(W,{body:u,account_id:a}));s(m,{successLabel:`Updated`})})};var G={method:`PUT`,path:t=>e`/accounts/${t.account_id}/intel/indicator-feeds/permissions/remove`,body:`json`};function Le(e){return e.usage(`$0 intel indicator-feeds permissions delete
|
|
37
|
-
|
|
38
|
-
Revokes access permissions for a custom threat indicator feed.`).option(`account-tag`,{type:`string`,description:`The Cloudflare account tag of the account to change permissions on`}).option(`feed-id`,{type:`number`,description:`The ID of the feed to add/remove permissions on`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`force`,{type:`boolean`,alias:`f`,description:`Skip confirmation (useful in scripts and CI)`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const Re={command:`delete`,describe:`Revoke permission to indicator feed`,builder:Le,handler:async e=>u({command:`intel indicator-feeds permissions delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{if(e.dryRun){let t=await i();c({command:`cf intel indicator-feeds permissions delete`,method:`PUT`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/intel/indicator-feeds/permissions/remove`,pathParams:{},bodyKind:`json`,body:e.body===void 0?f({account_tag:p(e[`account-tag`],`account-tag`,`text`),feed_id:e[`feed-id`]}):d(e.body)});return}let n=await r(e),a=e.local?t:await o();if(e.accountId=a,!await g({force:!!e.force,message:`This operation destructively removes a permission entry.`})){process.stderr.write(`Aborted.
|
|
39
|
-
`);return}if(e.body){let t=d(e.body),r=await l(`Deleting`,async()=>n.send(G,{body:t,account_id:a}));s(r,{successLabel:`Deleted`});return}let u=f({account_tag:p(e[`account-tag`],`account-tag`,`text`),feed_id:e[`feed-id`]}),m=await l(`Deleting`,async()=>n.send(G,{body:u,account_id:a}));s(m,{successLabel:`Deleted`})})};var ze={method:`GET`,path:t=>e`/accounts/${t.account_id}/intel/indicator-feeds/permissions/view`};function Be(e){return e.usage(`$0 intel indicator-feeds permissions list
|
|
40
|
-
|
|
41
|
-
Lists current access permissions for custom threat indicator feeds.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const Ve={command:`list`,describe:`List indicator feed permissions`,builder:Be,handler:async e=>u({command:`intel indicator-feeds permissions list`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let e=await i();c({command:`cf intel indicator-feeds permissions list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}/intel/indicator-feeds/permissions/view`,pathParams:{},bodyKind:`none`});return}let n=await r(e),a=e.local?t:await o();e.accountId=a;let u=await l(`Loading`,async()=>n.send(ze,{account_id:a}));s(u,{successLabel:`Loaded`})})},He={command:`permissions`,describe:`Operations for indicator-feeds.permissions`,builder:e=>e.command(Ie).command(Re).command(Ve).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var K={method:`PUT`,path:t=>e`/accounts/${t.account_id_path}/intel/indicator-feeds/permissions/createProvider`,body:`json`};function Ue(e){return e.usage(`$0 intel indicator-feeds providers create <account-id-path>
|
|
31
|
+
Lists current access permissions for custom threat indicator feeds.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const Te={command:`list`,describe:`List indicator feed permissions`,builder:we,handler:async e=>u({command:`intel indicator-feeds permissions list`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let e=await i();c({command:`cf intel indicator-feeds permissions list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}/intel/indicator-feeds/permissions/view`,pathParams:{},bodyKind:`none`});return}let n=await r(e),a=e.local?t:await o();e.accountId=a;let u=await l(`Loading`,async()=>n.send(Ce,{account_id:a}));s(u,{successLabel:`Loaded`})})},Ee={command:`permissions`,describe:`Operations for indicator-feeds.permissions`,builder:e=>e.command(be).command(Se).command(Te).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var K={method:`PUT`,path:t=>e`/accounts/${t.account_id_path}/intel/indicator-feeds/permissions/createProvider`,body:`json`};function De(e){return e.usage(`$0 intel indicator-feeds providers create <account-id-path>
|
|
42
32
|
|
|
43
33
|
Creates a new indicator feed provider for an account. Only available to Intel accounts.`).positional(`account-id-path`,{type:`string`,description:`Identifier`,demandOption:!0}).option(`account-id`,{type:`number`,description:`The numeric account ID to create the provider for. Distinct from the
|
|
44
34
|
path \`account_id\` parameter, which carries the account identifier
|
|
45
35
|
string used for routing.
|
|
46
|
-
`}).option(`name`,{type:`string`,description:`The name of the provider`}).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
|
|
36
|
+
`}).option(`name`,{type:`string`,description:`The name of the provider`}).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 Oe={command:`create <account-id-path>`,describe:`Create indicator feed provider`,builder:De,handler:async e=>u({command:`intel indicator-feeds providers create`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){c({command:`cf intel indicator-feeds providers create`,method:`PUT`,url:`https://api.cloudflare.com/client/v4/accounts/${e[`account-id-path`]==null?`<account-id-path>`:encodeURIComponent(String(e[`account-id-path`]))}/intel/indicator-feeds/permissions/createProvider`,pathParams:{"account-id-path":String(e[`account-id-path`]??``)},bodyKind:`json`,body:e.body===void 0?f({account_id:e[`account-id`],name:p(e.name,`name`,`text`)}):d(e.body)});return}let t=await r(e);if(e.body){let n=d(e.body),r=await l(`Updating`,async()=>t.send(K,{body:n,account_id_path:e[`account-id-path`]}));s(r,{successLabel:`Updated`});return}if(e[`account-id`]===void 0)throw Error(`--account-id is required (or pass --body with this field set).`);e.name===void 0&&(e.name=await h(`name`,`The name of the provider`));let n=f({account_id:e[`account-id`],name:p(e.name,`name`,`text`)}),i=await l(`Updating`,async()=>t.send(K,{body:n,account_id_path:e[`account-id-path`]}));s(i,{successLabel:`Updated`})})},ke={command:`providers`,describe:`Operations for indicator-feeds.providers`,builder:e=>e.command(Oe).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function Ae(e){return e.usage("$0 intel indicator-feeds snapshots update <feed-id>\n\nRevises the raw data entries in a custom threat indicator feed. Accepts both plain and gzipped STIX2/CRDF bodies. Gzip is detected by RFC 1952 magic bytes (`0x1f 0x8b`) and/or a `.gz` filename suffix (case-insensitive) — either signal alone is sufficient to trigger the gzip path; if the body is not valid gzip, the upload fails fast. Customers are encouraged to gzip larger uploads — the api-gateway 500 MB body cap applies to the on-the-wire (compressed) size, so gzip lets a single upload carry several GiB of decompressed STIX.").positional(`feed-id`,{type:`string`,description:`Indicator feed ID`,demandOption:!0}).option(`cf-async-upload`,{type:`string`,description:"Set to the literal value `1` to enqueue the upload and receive a\n`202` response with a polling URL. Any other value uses the legacy\nsynchronous response."}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`}).option(`file`,{type:`string`,description:`Path to a file to upload as the request body`}).option(`source`,{type:`string`,description:"The file to upload. Either a plain STIX2/CRDF body or a gzipped one (recognised by `0x1f 0x8b` magic bytes or a `.gz` filename suffix). "})}const je={command:`update <feed-id>`,describe:`Update indicator feed data`,builder:Ae,handler:async e=>u({command:`intel indicator-feeds snapshots update`,classification:{safeFlags:[`dry-run`]}},e,async()=>{let a={};if(e[`cf-async-upload`]!==void 0&&(a[`Cf-Async-Upload`]=String(e[`cf-async-upload`])),e.dryRun){let t=await i();c({command:`cf intel indicator-feeds snapshots update`,method:`PUT`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/intel/indicator-feeds/${e[`feed-id`]==null?`<feed-id>`:encodeURIComponent(String(e[`feed-id`]))}/snapshot`,pathParams:{"feed-id":String(e[`feed-id`]??``)},bodyKind:`multipart`,body:{body:e.body,file:e.file,source:e.source}});return}let u=await r(e),d=e.local?t:await o();if(e.accountId=d,e.file!==void 0||e.body!==void 0||e.source!==void 0){let t=new FormData;if(e.file){let n=m(e.file);t.append(`file`,new Blob([n]),e.file.split(/[\\/]/).filter(Boolean).pop())}else e.body!==void 0&&t.append(`file`,e.body);e.source!==void 0&&t.append(`source`,String(p(e.source,`source`,`text`)??``));let r=await l(`Updating`,async()=>n(u,`PUT`,`/accounts/${d}/intel/indicator-feeds/${encodeURIComponent(String(e[`feed-id`]))}/snapshot`,{body:t,headers:Object.keys(a).length>0?a:void 0}));s(r,{successLabel:`Updated`})}else if(e.body){let t=p(e.body,`body`,`binary`),r=await l(`Updating`,async()=>n(u,`PUT`,`/accounts/${d}/intel/indicator-feeds/${encodeURIComponent(String(e[`feed-id`]))}/snapshot`,{body:t,headers:{"Content-Type":`multipart/form-data`,...a}}));s(r,{successLabel:`Updated`})}else if(e.body===void 0)throw Error(`--body is required for this command. Pass --body '<json>' or --body @path/to/file.json.`)})},Me={command:`snapshots`,describe:`Operations for indicator-feeds.snapshots`,builder:e=>e.command(je).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var q={method:`PUT`,path:t=>e`/accounts/${t.account_id}/intel/indicator-feeds/${t.feed_id}`,body:`json`};function Ne(e){return e.usage(`$0 intel indicator-feeds update <feed-id>
|
|
47
37
|
|
|
48
|
-
Revises details for a specific custom threat indicator feed.`).positional(`feed-id`,{type:`string`,description:`Indicator feed ID`,demandOption:!0}).option(`description`,{type:`string`,description:`The new description of the feed`}).option(`is-attributable`,{type:`boolean`,description:`The new is_attributable value of the feed`}).option(`is-downloadable`,{type:`boolean`,description:`The new is_downloadable value of the feed`}).option(`is-public`,{type:`boolean`,description:`The new is_public value of the feed`}).option(`name`,{type:`string`,description:`The new name of the feed`}).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
|
|
38
|
+
Revises details for a specific custom threat indicator feed.`).positional(`feed-id`,{type:`string`,description:`Indicator feed ID`,demandOption:!0}).option(`description`,{type:`string`,description:`The new description of the feed`}).option(`is-attributable`,{type:`boolean`,description:`The new is_attributable value of the feed`}).option(`is-downloadable`,{type:`boolean`,description:`The new is_downloadable value of the feed`}).option(`is-public`,{type:`boolean`,description:`The new is_public value of the feed`}).option(`name`,{type:`string`,description:`The new name of the feed`}).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 Pe={command:`update <feed-id>`,describe:`Update indicator feed metadata`,builder:Ne,handler:async e=>u({command:`intel indicator-feeds update`,classification:{safeFlags:[`is-attributable`,`is-downloadable`,`is-public`,`dry-run`]}},e,async()=>{if(e.dryRun){let t=await i();c({command:`cf intel indicator-feeds update`,method:`PUT`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/intel/indicator-feeds/${e[`feed-id`]==null?`<feed-id>`:encodeURIComponent(String(e[`feed-id`]))}`,pathParams:{"feed-id":String(e[`feed-id`]??``)},bodyKind:`json`,body:e.body===void 0?f({description:p(e.description,`description`,`text`),is_attributable:e[`is-attributable`],is_downloadable:e[`is-downloadable`],is_public:e[`is-public`],name:p(e.name,`name`,`text`)}):d(e.body)});return}let n=await r(e),a=e.local?t:await o();if(e.accountId=a,e.body){let t=d(e.body),r=await l(`Updating`,async()=>n.send(q,{body:t,account_id:a,feed_id:e[`feed-id`]}));s(r,{successLabel:`Updated`});return}let u=f({description:p(e.description,`description`,`text`),is_attributable:e[`is-attributable`],is_downloadable:e[`is-downloadable`],is_public:e[`is-public`],name:p(e.name,`name`,`text`)}),m=await l(`Updating`,async()=>n.send(q,{body:u,account_id:a,feed_id:e[`feed-id`]}));s(m,{successLabel:`Updated`})})},Fe={command:`indicator-feeds`,describe:`Threat indicator feeds — subscribe to and manage curated lists of malicious IPs, domains, and URLs`,builder:e=>e.command(z).command(V).command(he).command(ve).command(Pe).command(fe).command(Ee).command(ke).command(Me).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var Ie={method:`GET`,path:t=>e`/accounts/${t.account_id}/intel/ip-lists`};function Le(e){return e.usage(`$0 intel ip-lists get
|
|
49
39
|
|
|
50
|
-
Returns a list of available IP list categories (e.g., anonymizer, botnetcc, malware, tor, vpn, open_proxies). This endpoint provides metadata about which IP lists are available in the system.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const
|
|
40
|
+
Returns a list of available IP list categories (e.g., anonymizer, botnetcc, malware, tor, vpn, open_proxies). This endpoint provides metadata about which IP lists are available in the system.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const Re={command:`get`,describe:`Get Available IP Lists`,builder:Le,handler:async e=>u({command:`intel ip-lists get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let e=await i();c({command:`cf intel ip-lists get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}/intel/ip-lists`,pathParams:{},bodyKind:`none`});return}let n=await r(e),a=e.local?t:await o();e.accountId=a;let u=await l(`Loading`,async()=>n.send(Ie,{account_id:a}));s(u,{successLabel:`Loaded`})})},ze={command:`ip-lists`,describe:`Curated IP lists used for threat detection and policy enforcement`,builder:e=>e.command(Re).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var Be={method:`GET`,path:t=>e`/accounts/${t.account_id}/intel/ip`,query:[`ipv4`,`ipv6`]};function Ve(e){return e.usage("$0 intel ips get\n\nGets the geolocation, ASN, infrastructure type of the ASN, and any security threat categories of an IP address. **Must provide ip query parameters.** For example, `/intel/ip?ipv4=1.1.1.1` or `/intel/ip?ipv6=2001:db8::1`.").option(`ipv4`,{type:`string`,description:`Ipv4`}).option(`ipv6`,{type:`string`,description:`Ipv6`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const He={command:`get`,describe:`Get IP Overview`,builder:Ve,handler:async e=>u({command:`intel ips get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{let n={ipv4:e.ipv4,ipv6:e.ipv6};if(e.dryRun){let e=await i();c({command:`cf intel ips get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}/intel/ip`,pathParams:{},query:n,bodyKind:`none`});return}let a=await r(e),u=e.local?t:await o();e.accountId=u;let d=await l(`Loading`,async()=>a.send(Be,{account_id:u,...n}));s(d,{successLabel:`Loaded`})})},Ue={command:`ips`,describe:`IP address intelligence — geolocation, risk assessment, and hosting provider details`,builder:e=>e.command(He).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var J={method:`POST`,path:t=>e`/accounts/${t.account_id}/intel/miscategorization`,body:`json`};function We(e){return e.usage("$0 intel miscategorizations create\n\nAllows you to submit requests to change a domain’s category. Requests that include category `169` (New Domains) or category `177` (Newly Seen) in any of `content_adds`, `content_removes`, `security_adds`, or `security_removes` will be rejected with a `400 Bad Request`. These categories are automatically managed and fall off 30 days after they are applied.").option(`content-adds`,{type:`string`,array:!0,description:`Content category IDs to add.`}).option(`content-removes`,{type:`string`,array:!0,description:`Content category IDs to remove.`}).option(`indicator-type`,{type:`string`,description:`The indicator_type field`,choices:[`domain`,`ipv4`,`ipv6`,`url`]}).coerce(`indicator-type`,e=>p(e,`indicator-type`,`text`)).option(`ip`,{type:`string`,description:"Provide only if indicator_type is `ipv4` or `ipv6`."}).option(`security-adds`,{type:`string`,array:!0,description:`Security category IDs to add.`}).option(`security-removes`,{type:`string`,array:!0,description:`Security category IDs to remove.`}).option(`url`,{type:`string`,description:"Provide only if indicator_type is `domain` or `url`. Example if indicator_type is `domain`: `example.com`. Example if indicator_type is `url`: `https://example.com/news/`."}).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 Ge={command:`create`,describe:`Create Miscategorization`,builder:We,handler:async e=>u({command:`intel miscategorizations create`,classification:{safeFlags:[`indicator-type`,`dry-run`]}},e,async()=>{if(e.dryRun){let t=await i();c({command:`cf intel miscategorizations create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/intel/miscategorization`,pathParams:{},bodyKind:`json`,body:e.body===void 0?f({content_adds:e[`content-adds`],content_removes:e[`content-removes`],indicator_type:e[`indicator-type`],ip:p(e.ip,`ip`,`text`),security_adds:e[`security-adds`],security_removes:e[`security-removes`],url:p(e.url,`url`,`text`)}):d(e.body)});return}let n=await r(e),a=e.local?t:await o();if(e.accountId=a,e.body){let t=d(e.body),r=await l(`Creating`,async()=>n.send(J,{body:t,account_id:a}));s(r,{successLabel:`Created`});return}let u=f({content_adds:e[`content-adds`],content_removes:e[`content-removes`],indicator_type:e[`indicator-type`],ip:p(e.ip,`ip`,`text`),security_adds:e[`security-adds`],security_removes:e[`security-removes`],url:p(e.url,`url`,`text`)}),m=await l(`Creating`,async()=>n.send(J,{body:u,account_id:a}));s(m,{successLabel:`Created`})})},Ke={command:`miscategorizations`,describe:`Report and track domain miscategorization corrections`,builder:e=>e.command(Ge).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var Y={method:`POST`,path:t=>e`/accounts/${t.account_id}/intel/sinkholes`,body:`json`};function qe(e){return e.usage(`$0 intel sinkholes create
|
|
51
41
|
|
|
52
|
-
Create a new sinkhole. Logs of large request bodies will be truncated, but the full request body can be recorded in R2. If you wish to record large request bodies in R2, include the R2 key ID, key secret, and bucket name in the request body.`).option(`name`,{type:`string`,description:`The name of the sinkhole.`}).option(`r2-bucket`,{type:`string`,description:`The name of the R2 bucket to store results. Required if you want to store large request bodies in R2.`}).option(`r2-id`,{type:`string`,description:`The id of the R2 instance. Required if you want to store large request bodies in R2.`}).option(`r2-secret`,{type:`string`,description:`The secret key for the R2 API token. Required if you want to store large request bodies in R2.`}).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
|
|
42
|
+
Create a new sinkhole. Logs of large request bodies will be truncated, but the full request body can be recorded in R2. If you wish to record large request bodies in R2, include the R2 key ID, key secret, and bucket name in the request body.`).option(`name`,{type:`string`,description:`The name of the sinkhole.`}).option(`r2-bucket`,{type:`string`,description:`The name of the R2 bucket to store results. Required if you want to store large request bodies in R2.`}).option(`r2-id`,{type:`string`,description:`The id of the R2 instance. Required if you want to store large request bodies in R2.`}).option(`r2-secret`,{type:`string`,description:`The secret key for the R2 API token. Required if you want to store large request bodies in R2.`}).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 Je={command:`create`,describe:`Create a new sinkhole for your account`,builder:qe,handler:async e=>u({command:`intel sinkholes create`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await i();c({command:`cf intel sinkholes create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/intel/sinkholes`,pathParams:{},bodyKind:`json`,body:e.body===void 0?f({name:p(e.name,`name`,`text`),r2_bucket:p(e[`r2-bucket`],`r2-bucket`,`text`),r2_id:p(e[`r2-id`],`r2-id`,`text`),r2_secret:p(e[`r2-secret`],`r2-secret`,`text`)}):d(e.body)});return}let n=await r(e),a=e.local?t:await o();if(e.accountId=a,e.body){let t=d(e.body),r=await l(`Creating`,async()=>n.send(Y,{body:t,account_id:a}));s(r,{successLabel:`Created`});return}e.name===void 0&&(e.name=await h(`name`,`The name of the sinkhole.`));let u=f({name:p(e.name,`name`,`text`),r2_bucket:p(e[`r2-bucket`],`r2-bucket`,`text`),r2_id:p(e[`r2-id`],`r2-id`,`text`),r2_secret:p(e[`r2-secret`],`r2-secret`,`text`)}),m=await l(`Creating`,async()=>n.send(Y,{body:u,account_id:a}));s(m,{successLabel:`Created`})})};var Ye={method:`DELETE`,path:t=>e`/accounts/${t.account_id}/intel/sinkholes/${t.sinkhole_id}`,errors:{409:`ConflictError`}};function Xe(e){return e.usage(`$0 intel sinkholes delete <sinkhole-id>
|
|
53
43
|
|
|
54
|
-
Delete the specified sinkhole. The sinkhole must not have any active ingress rules defined. A 409 response code indicates that this condition is not met.`).positional(`sinkhole-id`,{type:`string`,description:`The unique identifier for the sinkhole.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`force`,{type:`boolean`,alias:`f`,description:`Skip confirmation (useful in scripts and CI)`,default:!1})}const
|
|
55
|
-
`);return}let u=await l(`Deleting`,async()=>n.send(
|
|
44
|
+
Delete the specified sinkhole. The sinkhole must not have any active ingress rules defined. A 409 response code indicates that this condition is not met.`).positional(`sinkhole-id`,{type:`string`,description:`The unique identifier for the sinkhole.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`force`,{type:`boolean`,alias:`f`,description:`Skip confirmation (useful in scripts and CI)`,default:!1})}const Ze={command:`delete <sinkhole-id>`,describe:`Delete a sinkhole`,builder:Xe,handler:async e=>u({command:`intel sinkholes delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{if(e.dryRun){let t=await i();c({command:`cf intel sinkholes delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/intel/sinkholes/${e[`sinkhole-id`]==null?`<sinkhole-id>`:encodeURIComponent(String(e[`sinkhole-id`]))}`,pathParams:{"sinkhole-id":String(e[`sinkhole-id`]??``)},bodyKind:`none`});return}let n=await r(e),a=e.local?t:await o();if(e.accountId=a,!await g({force:!!e.force})){process.stderr.write(`Aborted.
|
|
45
|
+
`);return}let u=await l(`Deleting`,async()=>n.send(Ye,{account_id:a,sinkhole_id:e[`sinkhole-id`]}));s(u,{successLabel:`Deleted`})})};var Qe={method:`GET`,path:t=>e`/accounts/${t.account_id}/intel/sinkholes/${t.sinkhole_id}`};function $e(e){return e.usage(`$0 intel sinkholes get <sinkhole-id>
|
|
56
46
|
|
|
57
|
-
Get the specified sinkhole by its unique identifier.`).positional(`sinkhole-id`,{type:`string`,description:`The unique identifier for the sinkhole.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const
|
|
47
|
+
Get the specified sinkhole by its unique identifier.`).positional(`sinkhole-id`,{type:`string`,description:`The unique identifier for the sinkhole.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const et={command:`get <sinkhole-id>`,describe:`Get a sinkhole`,builder:$e,handler:async e=>u({command:`intel sinkholes get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await i();c({command:`cf intel sinkholes get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/intel/sinkholes/${e[`sinkhole-id`]==null?`<sinkhole-id>`:encodeURIComponent(String(e[`sinkhole-id`]))}`,pathParams:{"sinkhole-id":String(e[`sinkhole-id`]??``)},bodyKind:`none`});return}let n=await r(e),a=e.local?t:await o();e.accountId=a;let u=await l(`Loading`,async()=>n.send(Qe,{account_id:a,sinkhole_id:e[`sinkhole-id`]}));s(u,{successLabel:`Loaded`})})};var X={method:`POST`,path:t=>e`/zones/${t.zone_id}/intel/sinkholes/${t.sinkhole_id}/ingresses`,body:`json`};function tt(e){return e.usage(`$0 intel sinkholes ingresses create <sinkhole-id>
|
|
58
48
|
|
|
59
|
-
Create a new ingress rule for the specified sinkhole. The CIDR block must be a Cloudflare BYOIP associated with your account. The zone_id must be a zone with the ability to create Spectrum Apps. The sinkhole must belong to the same account as the zone.`).positional(`sinkhole-id`,{type:`string`,description:`The unique identifier for the sinkhole.`,demandOption:!0}).option(`cidr`,{type:`string`,description:`The CIDR block for the ingress rule in IPv4 or IPv6 notation (e.g., 192.0.2.0/24). Provide a Cloudflare BYOIP CIDR that your account owns.`}).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
|
|
49
|
+
Create a new ingress rule for the specified sinkhole. The CIDR block must be a Cloudflare BYOIP associated with your account. The zone_id must be a zone with the ability to create Spectrum Apps. The sinkhole must belong to the same account as the zone.`).positional(`sinkhole-id`,{type:`string`,description:`The unique identifier for the sinkhole.`,demandOption:!0}).option(`cidr`,{type:`string`,description:`The CIDR block for the ingress rule in IPv4 or IPv6 notation (e.g., 192.0.2.0/24). Provide a Cloudflare BYOIP CIDR that your account owns.`}).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 nt={command:`create <sinkhole-id>`,describe:`Create an ingress rule`,builder:tt,handler:async e=>u({command:`intel sinkholes ingresses create`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){c({command:`cf intel sinkholes ingresses create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/intel/sinkholes/${e[`sinkhole-id`]==null?`<sinkhole-id>`:encodeURIComponent(String(e[`sinkhole-id`]))}/ingresses`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``),"sinkhole-id":String(e[`sinkhole-id`]??``)},bodyKind:`json`,body:e.body===void 0?f({cidr:p(e.cidr,`cidr`,`text`)}):d(e.body)});return}let t=await r(e),n=await a({zone:e.zone},t,{quiet:e.quiet});if(e.zoneId=n,e.body){let r=d(e.body),i=await l(`Creating`,async()=>t.send(X,{body:r,zone_id:n,sinkhole_id:e[`sinkhole-id`]}));s(i,{successLabel:`Created`});return}e.cidr===void 0&&(e.cidr=await h(`cidr`,`The CIDR block for the ingress rule in IPv4 or IPv6 notation (e.g., 192.0.2.0/24). Provide a Cloudflare BYOIP CIDR that your account owns.`));let i=f({cidr:p(e.cidr,`cidr`,`text`)}),o=await l(`Creating`,async()=>t.send(X,{body:i,zone_id:n,sinkhole_id:e[`sinkhole-id`]}));s(o,{successLabel:`Created`})})};var rt={method:`DELETE`,path:t=>e`/zones/${t.zone_id}/intel/sinkholes/${t.sinkhole_id}/ingresses/${t.ingress_id}`};function it(e){return e.usage(`$0 intel sinkholes ingresses delete <ingress-id>
|
|
60
50
|
|
|
61
|
-
Delete the specified ingress rule. The sinkhole must belong to the same account as the zone.`).positional(`ingress-id`,{type:`string`,description:`The unique identifier for the ingress rule.`,demandOption:!0}).option(`sinkhole-id`,{type:`string`,description:`The unique identifier for the sinkhole.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`force`,{type:`boolean`,alias:`f`,description:`Skip confirmation (useful in scripts and CI)`,default:!1})}const
|
|
62
|
-
`);return}let i=await l(`Deleting`,async()=>t.send(
|
|
51
|
+
Delete the specified ingress rule. The sinkhole must belong to the same account as the zone.`).positional(`ingress-id`,{type:`string`,description:`The unique identifier for the ingress rule.`,demandOption:!0}).option(`sinkhole-id`,{type:`string`,description:`The unique identifier for the sinkhole.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`force`,{type:`boolean`,alias:`f`,description:`Skip confirmation (useful in scripts and CI)`,default:!1})}const at={command:`delete <ingress-id>`,describe:`Delete an ingress rule`,builder:it,handler:async e=>u({command:`intel sinkholes ingresses delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{if(e.dryRun){c({command:`cf intel sinkholes ingresses delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/intel/sinkholes/${e[`sinkhole-id`]==null?`<sinkhole-id>`:encodeURIComponent(String(e[`sinkhole-id`]))}/ingresses/${e[`ingress-id`]==null?`<ingress-id>`:encodeURIComponent(String(e[`ingress-id`]))}`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``),"sinkhole-id":String(e[`sinkhole-id`]??``),"ingress-id":String(e[`ingress-id`]??``)},bodyKind:`none`});return}let t=await r(e),n=await a({zone:e.zone},t,{quiet:e.quiet});if(e.zoneId=n,!await g({force:!!e.force})){process.stderr.write(`Aborted.
|
|
52
|
+
`);return}let i=await l(`Deleting`,async()=>t.send(rt,{zone_id:n,sinkhole_id:e[`sinkhole-id`],ingress_id:e[`ingress-id`]}));s(i,{successLabel:`Deleted`})})};var ot={method:`GET`,path:t=>e`/zones/${t.zone_id}/intel/sinkholes/${t.sinkhole_id}/ingresses/${t.ingress_id}`};function st(e){return e.usage(`$0 intel sinkholes ingresses get <ingress-id>
|
|
63
53
|
|
|
64
|
-
Get the specified ingress rule associated with a sinkhole. The sinkhole must belong to the same account as the zone.`).positional(`ingress-id`,{type:`string`,description:`The unique identifier for the ingress rule.`,demandOption:!0}).option(`sinkhole-id`,{type:`string`,description:`The unique identifier for the sinkhole.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const
|
|
54
|
+
Get the specified ingress rule associated with a sinkhole. The sinkhole must belong to the same account as the zone.`).positional(`ingress-id`,{type:`string`,description:`The unique identifier for the ingress rule.`,demandOption:!0}).option(`sinkhole-id`,{type:`string`,description:`The unique identifier for the sinkhole.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const ct={command:`get <ingress-id>`,describe:`Get an ingress rule`,builder:st,handler:async e=>u({command:`intel sinkholes ingresses get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){c({command:`cf intel sinkholes ingresses get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/intel/sinkholes/${e[`sinkhole-id`]==null?`<sinkhole-id>`:encodeURIComponent(String(e[`sinkhole-id`]))}/ingresses/${e[`ingress-id`]==null?`<ingress-id>`:encodeURIComponent(String(e[`ingress-id`]))}`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``),"sinkhole-id":String(e[`sinkhole-id`]??``),"ingress-id":String(e[`ingress-id`]??``)},bodyKind:`none`});return}let t=await r(e),n=await a({zone:e.zone},t,{quiet:e.quiet});e.zoneId=n;let i=await l(`Loading`,async()=>t.send(ot,{zone_id:n,sinkhole_id:e[`sinkhole-id`],ingress_id:e[`ingress-id`]}));s(i,{successLabel:`Loaded`})})};var lt={method:`GET`,path:t=>e`/${t.account_or_zone}/${t.account_or_zone_id}/intel/sinkholes/${t.sinkhole_id}/ingresses`};function ut(e){return e.usage(`$0 intel sinkholes ingresses list
|
|
65
55
|
|
|
66
|
-
Returns all ingress rules associated with the specified sinkhole.`).option(`sinkhole-id`,{type:`string`,description:`The unique identifier for the sinkhole.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const
|
|
56
|
+
Returns all ingress rules associated with the specified sinkhole.`).option(`sinkhole-id`,{type:`string`,description:`The unique identifier for the sinkhole.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const dt={command:`list`,describe:`List ingresses for a sinkhole`,builder:ut,handler:async e=>u({command:`intel sinkholes ingresses list`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=e.zone===void 0?await i():void 0,n=e.zone===void 0?`accounts`:`zones`,r=e.zone??t??`<account-id>`;c({command:`cf intel sinkholes ingresses list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/${n}/${r}/intel/sinkholes/${e[`sinkhole-id`]==null?`<sinkhole-id>`:encodeURIComponent(String(e[`sinkhole-id`]))}/ingresses`,pathParams:{"account-or-zone":String(n),"account-or-zone-id":String(r),"sinkhole-id":String(e[`sinkhole-id`]??``)},bodyKind:`none`});return}let n=await r(e),u=e.zone===void 0?`accounts`:`zones`,d=u===`zones`?await a({zone:e.zone},n,{quiet:e.quiet}):e.local?t:await o();u===`zones`?e.zoneId=d:e.accountId=d;let f=await l(`Loading`,async()=>n.send(lt,{account_or_zone:u,account_or_zone_id:d,sinkhole_id:e[`sinkhole-id`]}));s(f,{successLabel:`Loaded`})})};var Z={method:`PUT`,path:t=>e`/zones/${t.zone_id}/intel/sinkholes/${t.sinkhole_id}/ingresses/${t.ingress_id}`,body:`json`};function ft(e){return e.usage(`$0 intel sinkholes ingresses update <ingress-id>
|
|
67
57
|
|
|
68
|
-
Replaces the specified ingress rule. The sinkhole must belong to the same account as the zone.`).positional(`ingress-id`,{type:`string`,description:`The unique identifier for the ingress rule.`,demandOption:!0}).option(`sinkhole-id`,{type:`string`,description:`The unique identifier for the sinkhole.`,demandOption:!0}).option(`cidr`,{type:`string`,description:`The CIDR block for the ingress rule in IPv4 or IPv6 notation (e.g., 192.0.2.0/24). Provide a Cloudflare BYOIP CIDR that your account owns.`}).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
|
|
58
|
+
Replaces the specified ingress rule. The sinkhole must belong to the same account as the zone.`).positional(`ingress-id`,{type:`string`,description:`The unique identifier for the ingress rule.`,demandOption:!0}).option(`sinkhole-id`,{type:`string`,description:`The unique identifier for the sinkhole.`,demandOption:!0}).option(`cidr`,{type:`string`,description:`The CIDR block for the ingress rule in IPv4 or IPv6 notation (e.g., 192.0.2.0/24). Provide a Cloudflare BYOIP CIDR that your account owns.`}).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 pt={command:`update <ingress-id>`,describe:`Update an ingress rule`,builder:ft,handler:async e=>u({command:`intel sinkholes ingresses update`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){c({command:`cf intel sinkholes ingresses update`,method:`PUT`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/intel/sinkholes/${e[`sinkhole-id`]==null?`<sinkhole-id>`:encodeURIComponent(String(e[`sinkhole-id`]))}/ingresses/${e[`ingress-id`]==null?`<ingress-id>`:encodeURIComponent(String(e[`ingress-id`]))}`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``),"sinkhole-id":String(e[`sinkhole-id`]??``),"ingress-id":String(e[`ingress-id`]??``)},bodyKind:`json`,body:e.body===void 0?f({cidr:p(e.cidr,`cidr`,`text`)}):d(e.body)});return}let t=await r(e),n=await a({zone:e.zone},t,{quiet:e.quiet});if(e.zoneId=n,e.body){let r=d(e.body),i=await l(`Updating`,async()=>t.send(Z,{body:r,zone_id:n,sinkhole_id:e[`sinkhole-id`],ingress_id:e[`ingress-id`]}));s(i,{successLabel:`Updated`});return}e.cidr===void 0&&(e.cidr=await h(`cidr`,`The CIDR block for the ingress rule in IPv4 or IPv6 notation (e.g., 192.0.2.0/24). Provide a Cloudflare BYOIP CIDR that your account owns.`));let i=f({cidr:p(e.cidr,`cidr`,`text`)}),o=await l(`Updating`,async()=>t.send(Z,{body:i,zone_id:n,sinkhole_id:e[`sinkhole-id`],ingress_id:e[`ingress-id`]}));s(o,{successLabel:`Updated`})})},mt={command:`ingresses`,describe:`Operations for sinkholes.ingresses`,builder:e=>e.command(nt).command(at).command(ct).command(dt).command(pt).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var ht={method:`GET`,path:t=>e`/accounts/${t.account_id}/intel/sinkholes`};function gt(e){return e.usage(`$0 intel sinkholes list
|
|
69
59
|
|
|
70
|
-
Lists sinkholes owned by the account for redirecting malicious traffic.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const
|
|
60
|
+
Lists sinkholes owned by the account for redirecting malicious traffic.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const _t={command:`list`,describe:`List sinkholes owned by this account`,builder:gt,handler:async e=>u({command:`intel sinkholes list`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let e=await i();c({command:`cf intel sinkholes list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}/intel/sinkholes`,pathParams:{},bodyKind:`none`});return}let n=await r(e),a=e.local?t:await o();e.accountId=a;let u=await l(`Loading`,async()=>n.send(ht,{account_id:a}));s(u,{successLabel:`Loaded`})})};var Q={method:`PUT`,path:t=>e`/accounts/${t.account_id}/intel/sinkholes/${t.sinkhole_id}`,body:`json`};function vt(e){return e.usage(`$0 intel sinkholes update <sinkhole-id>
|
|
71
61
|
|
|
72
|
-
Replaces the name or R2 configuration of the specified sinkhole. This is a full replacement. All fields, including r2_secret, must be re-supplied. Omitting r2_secret overwrites the stored value with an empty string.`).positional(`sinkhole-id`,{type:`string`,description:`The unique identifier for the sinkhole.`,demandOption:!0}).option(`name`,{type:`string`,description:`The name of the sinkhole.`}).option(`r2-bucket`,{type:`string`,description:`The name of the R2 bucket to store results. Required if you want to store large request bodies in R2.`}).option(`r2-id`,{type:`string`,description:`The id of the R2 instance. Required if you want to store large request bodies in R2.`}).option(`r2-secret`,{type:`string`,description:`The secret key for the R2 API token. Required if you want to store large request bodies in R2.`}).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
|
|
62
|
+
Replaces the name or R2 configuration of the specified sinkhole. This is a full replacement. All fields, including r2_secret, must be re-supplied. Omitting r2_secret overwrites the stored value with an empty string.`).positional(`sinkhole-id`,{type:`string`,description:`The unique identifier for the sinkhole.`,demandOption:!0}).option(`name`,{type:`string`,description:`The name of the sinkhole.`}).option(`r2-bucket`,{type:`string`,description:`The name of the R2 bucket to store results. Required if you want to store large request bodies in R2.`}).option(`r2-id`,{type:`string`,description:`The id of the R2 instance. Required if you want to store large request bodies in R2.`}).option(`r2-secret`,{type:`string`,description:`The secret key for the R2 API token. Required if you want to store large request bodies in R2.`}).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 yt={command:`update <sinkhole-id>`,describe:`Update a sinkhole`,builder:vt,handler:async e=>u({command:`intel sinkholes update`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await i();c({command:`cf intel sinkholes update`,method:`PUT`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/intel/sinkholes/${e[`sinkhole-id`]==null?`<sinkhole-id>`:encodeURIComponent(String(e[`sinkhole-id`]))}`,pathParams:{"sinkhole-id":String(e[`sinkhole-id`]??``)},bodyKind:`json`,body:e.body===void 0?f({name:p(e.name,`name`,`text`),r2_bucket:p(e[`r2-bucket`],`r2-bucket`,`text`),r2_id:p(e[`r2-id`],`r2-id`,`text`),r2_secret:p(e[`r2-secret`],`r2-secret`,`text`)}):d(e.body)});return}let n=await r(e),a=e.local?t:await o();if(e.accountId=a,e.body){let t=d(e.body),r=await l(`Updating`,async()=>n.send(Q,{body:t,account_id:a,sinkhole_id:e[`sinkhole-id`]}));s(r,{successLabel:`Updated`});return}e.name===void 0&&(e.name=await h(`name`,`The name of the sinkhole.`));let u=f({name:p(e.name,`name`,`text`),r2_bucket:p(e[`r2-bucket`],`r2-bucket`,`text`),r2_id:p(e[`r2-id`],`r2-id`,`text`),r2_secret:p(e[`r2-secret`],`r2-secret`,`text`)}),m=await l(`Updating`,async()=>n.send(Q,{body:u,account_id:a,sinkhole_id:e[`sinkhole-id`]}));s(m,{successLabel:`Updated`})})},$={command:`sinkholes`,describe:`Operations for sinkholes`,builder:e=>e.command(Je).command(Ze).command(et).command(_t).command(yt).command(mt).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var bt={method:`GET`,path:t=>e`/accounts/${t.account_id}/intel/url`,query:[`url`]};function xt(e){return e.usage(`$0 intel urls get
|
|
73
63
|
|
|
74
|
-
Gets security information about a URL, including content categories and risk types. The URL must be provided as a query parameter.`).option(`url`,{type:`string`,description:`The URL to look up.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const
|
|
64
|
+
Gets security information about a URL, including content categories and risk types. The URL must be provided as a query parameter.`).option(`url`,{type:`string`,description:`The URL to look up.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const St={command:`get`,describe:`Get URL Intelligence`,builder:xt,handler:async e=>u({command:`intel urls get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{let n={url:e.url};if(e.dryRun){let e=await i();c({command:`cf intel urls get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}/intel/url`,pathParams:{},query:n,bodyKind:`none`});return}let a=await r(e),u=e.local?t:await o();e.accountId=u;let d=await l(`Loading`,async()=>a.send(bt,{account_id:u,...n}));s(d,{successLabel:`Loaded`})})},Ct={command:`urls`,describe:`Operations for urls`,builder:e=>e.command(St).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var wt={method:`GET`,path:t=>e`/accounts/${t.account_id}/intel/whois`,query:[`domain`]};function Tt(e){return e.usage(`$0 intel whois get
|
|
75
65
|
|
|
76
|
-
Retrieves WHOIS registration data for a domain, including registrant and nameserver information.`).option(`domain`,{type:`string`,description:`Domain`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const
|
|
66
|
+
Retrieves WHOIS registration data for a domain, including registrant and nameserver information.`).option(`domain`,{type:`string`,description:`Domain`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const Et={command:`get`,describe:`Get WHOIS Record`,builder:Tt,handler:async e=>u({command:`intel whois get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{let n={domain:e.domain};if(e.dryRun){let e=await i();c({command:`cf intel whois get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}/intel/whois`,pathParams:{},query:n,bodyKind:`none`});return}let a=await r(e),u=e.local?t:await o();e.accountId=u;let d=await l(`Loading`,async()=>a.send(wt,{account_id:u,...n}));s(d,{successLabel:`Loaded`})})},Dt={command:`whois`,describe:`WHOIS registration data for domains including registrant, registrar, and nameservers`,builder:e=>e.command(Et).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},Ot={command:`intel`,describe:`Threat intelligence lookups — IP reputation, domain info, ASN details, WHOIS, and indicator feeds`,builder:e=>e.command(ce).command(b).command(w).command(O).command(I).command(Fe).command(ze).command(Ue).command(Ke).command($).command(Ct).command(Dt).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};export{Ot as default};
|