cf 1.0.0-beta.13 → 1.0.0-beta.14
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 +1562 -1776
- package/dist/_meta/hand-written-commands.json +342 -22
- package/dist/_meta/schemas.json +611 -956
- package/dist/abuse-reports-CVv52Q2w.mjs +24 -0
- package/dist/access-k1QjF5rE.mjs +2 -0
- package/dist/{account-tags-CaXDDeZ4.mjs → account-tags-RhvWOkOf.mjs} +4 -4
- package/dist/{accounts-BALwxDQY.mjs → accounts--3lrEkmu.mjs} +9 -15
- package/dist/{acm-CP9EaXQN.mjs → acm-BJxINEcu.mjs} +2 -2
- package/dist/{addressing-DRlaxqrI.mjs → addressing-BqByG9JW.mjs} +55 -43
- package/dist/{agent-memory-vGhlfZBx.mjs → agent-memory-D4dQMGbh.mjs} +2 -2
- package/dist/{ai-CJtbWfB9.mjs → ai-CRkQ4pjC.mjs} +1 -1
- package/dist/{ai-audit-C0BJNqZZ.mjs → ai-audit-fMSn4c5L.mjs} +1 -1
- package/dist/{ai-gateway-BQtv3U3x.mjs → ai-gateway-CbhvQK4L.mjs} +4 -4
- package/dist/ai-search-CvVSnOA0.mjs +79 -0
- package/dist/{ai-security-CFTaYk_X.mjs → ai-security-Z_qpI92I.mjs} +1 -1
- package/dist/{alerting-1hun27JC.mjs → alerting-CpbCB8br.mjs} +3 -3
- package/dist/{analytics-DXUSjvzT.mjs → analytics-DkY9dOP1.mjs} +3 -3
- package/dist/{analytics_engine-CQsnL09C.mjs → analytics_engine-DE_jvlx_.mjs} +1 -1
- package/dist/{api-security-BXhrfR6-.mjs → api-security-BHnOU5MM.mjs} +25 -25
- package/dist/{argo-LPUCTnee.mjs → argo-DhC5L_aN.mjs} +3 -3
- package/dist/{artifacts-Dt6easua.mjs → artifacts-CrIupY7P.mjs} +3 -3
- package/dist/{audit-logs-CVznAM2Z.mjs → audit-logs-BjeBxTox.mjs} +1 -1
- package/dist/{auth-eQr-kQCH.mjs → auth-BNYfOMl0.mjs} +1 -1
- package/dist/{auth-CGLsxbc6.mjs → auth-CAWalgW0.mjs} +1 -1
- package/dist/auth-DOwC01PW.mjs +2 -0
- package/dist/{auth-token-pNQrX_9O.mjs → auth-token-Dop0wLCw.mjs} +1 -1
- package/dist/{autoconfig-sD7Frryg.mjs → autoconfig-RQ3HS4m1.mjs} +1 -1
- package/dist/{basin-catalog-ZQICw-zF.mjs → basin-catalog-DZ7QV-_N.mjs} +3 -3
- package/dist/{billing-Dy1-dV_B.mjs → billing-BFyte9fL.mjs} +3 -3
- package/dist/bot-management-DXcbV3am.mjs +9 -0
- package/dist/{botnet-feed-xb98Cj3Y.mjs → botnet-feed-bGGp_cwX.mjs} +1 -1
- package/dist/{brand-protection-Ck3okE2k.mjs → brand-protection-DN36XkxH.mjs} +2 -2
- package/dist/{browser-run-DJGJSzFX.mjs → browser-run-hHD1RT43.mjs} +3 -3
- package/dist/build-BhpWYgNm.mjs +2 -0
- package/dist/{build-HmSXqjGn.mjs → build-CCe7IrWT.mjs} +1 -1
- package/dist/{builds-CYxcZtkG.mjs → builds-6aO61R9R.mjs} +4 -4
- package/dist/{cache-D9tSfovH.mjs → cache-C5YJpMqi.mjs} +6 -6
- package/dist/{certificate-authorities-CpiveTFC.mjs → certificate-authorities-CbqDAktQ.mjs} +1 -1
- package/dist/{cf-BxsXrVeh.mjs → cf-oRSQKirD.mjs} +1 -1
- package/dist/{chunk-DSGVRFIS-C1_SEtRK.mjs → chunk-DSGVRFIS-CPI5cYtB.mjs} +1 -1
- package/dist/{chunk-NDZDTP46-Bjx_wtJe.mjs → chunk-NDZDTP46-Civns3WA.mjs} +1 -1
- package/dist/{cli-DeJc9U8z.mjs → cli-ht4q6i2y.mjs} +1 -1
- package/dist/{client-certificates-CF6YZyvP.mjs → client-certificates-balaN_my.mjs} +1 -1
- package/dist/{client-side-security-BLoe9kS5.mjs → client-side-security-3_4Ermmg.mjs} +3 -3
- package/dist/{cloud-connector-DXRUHsjt.mjs → cloud-connector-avx27sLw.mjs} +1 -1
- package/dist/{cloudflared--1Ws1RJy.mjs → cloudflared-D83U8Yn3.mjs} +1 -1
- package/dist/{cloudforce-one-CBLxXi6v.mjs → cloudforce-one-CXdeqJ9l.mjs} +126 -168
- package/dist/{command-Dh7RmjFu.mjs → command-9VAc7b30.mjs} +1 -1
- package/dist/{command-Cu7dcaHT.mjs → command-B_Ixlz8Q.mjs} +1 -1
- package/dist/{command-oNVwyjGB.mjs → command-BtDY_MKv.mjs} +1 -1
- package/dist/{command-CG6RvZs0.mjs → command-CUNMrMou.mjs} +1 -1
- package/dist/{command-D3fyhdy-.mjs → command-Ckb9FufU.mjs} +1 -1
- package/dist/{command-BDe67N_n.mjs → command-CtVUNm__.mjs} +1 -1
- package/dist/{command-DUhX8Dcr.mjs → command-CyJQ40fc.mjs} +1 -1
- package/dist/{command-UiHLJ8Ji.mjs → command-DPX9sJVi.mjs} +1 -1
- package/dist/{command-BlIb6RR2.mjs → command-DXaRn1ls.mjs} +1 -1
- package/dist/{command-CcuLC6CJ.mjs → command-DjEJaOwV.mjs} +1 -1
- package/dist/{command-_rqD0hXF.mjs → command-DtgJilOK.mjs} +1 -1
- package/dist/{command-BvfKhMl7.mjs → command-OHov3PEc.mjs} +1 -1
- package/dist/{command-DwXiDOeH.mjs → command-OWe3v69l.mjs} +1 -1
- package/dist/{command-83uVfXh9.mjs → command-SmWD-MeI.mjs} +1 -1
- package/dist/{completions-D06AO7A8.mjs → completions-CuqAO3N_.mjs} +1 -1
- package/dist/{connector-interrupts-DelTmNyw.mjs → connector-interrupts-ftd10Du-.mjs} +1 -1
- package/dist/{connector-telemetry-events-BwxR3G8d.mjs → connector-telemetry-events-TwDZYdEM.mjs} +1 -1
- package/dist/{connector-telemetry-snapshots-Bqq-hrpJ.mjs → connector-telemetry-snapshots-CZxkOuC3.mjs} +1 -1
- package/dist/{connectors-D-m3rEpk.mjs → connectors-6lVSr-fd.mjs} +1 -1
- package/dist/containers-Dqs_ZnO2.mjs +78 -0
- package/dist/containers-ncw3bd3a.mjs +376 -0
- package/dist/{content-scan-W0BNzbQp.mjs → content-scan-BWFbqfQ0.mjs} +3 -3
- package/dist/{context-q7UaYK69.mjs → context-BBLtgdR1.mjs} +1 -1
- package/dist/{cps-BZ6hqRb5.mjs → cps-C5phNoVU.mjs} +2 -2
- package/dist/{csamScanner-Bo1t3CLh.mjs → csamScanner-BwZNZu0A.mjs} +3 -3
- package/dist/{ct-alerting-E03faC7p.mjs → ct-alerting-DPp3qLqO.mjs} +1 -1
- package/dist/{custom-certificates-CUySSPzi.mjs → custom-certificates-pfpZcr06.mjs} +5 -5
- package/dist/{custom-csrs-gNpWkJPQ.mjs → custom-csrs-DrvGRAkl.mjs} +2 -2
- package/dist/{custom-hostnames-abGBAbx7.mjs → custom-hostnames-wGtmFbz1.mjs} +3 -3
- package/dist/{custom-nameservers-BgNXol1P.mjs → custom-nameservers-HTG6MPKv.mjs} +1 -1
- package/dist/{custom-pages-DMKX3aoD.mjs → custom-pages-DqEHBSVt.mjs} +2 -2
- package/dist/d1-EQMUlHTJ.mjs +94 -0
- package/dist/{dcv-delegation-B5YUEWu0.mjs → dcv-delegation-D6nj0Z5N.mjs} +1 -1
- package/dist/{deploy-CWNm1-5v.mjs → deploy-B22sEVHd.mjs} +1 -1
- package/dist/{deploy-context-Dr6bxNcB.mjs → deploy-context-DmG9rgPO.mjs} +1 -1
- package/dist/{deploy-input-Cc0_2QlW.mjs → deploy-input-BCjcuP6u.mjs} +1 -1
- package/dist/{dev-ZA8itQE7.mjs → dev-ClhhXuNU.mjs} +1 -1
- package/dist/diagnostics-tqHjq-Pl.mjs +15 -0
- package/dist/dist-DmRM6WSZ.mjs +449 -0
- package/dist/{dls-DIl16mLp.mjs → dls-BEHj4X9T.mjs} +1 -1
- package/dist/{dns-firewall-BZwJXHLj.mjs → dns-firewall-zwbkutyf.mjs} +1 -1
- package/dist/{dns-QUpgljRG.mjs → dns-n4mfYBZg.mjs} +3 -3
- package/dist/{durable-objects-BCj4ykpU.mjs → durable-objects-CQ2dHhho.mjs} +1 -1
- package/dist/{email-auth-DlHIYhCk.mjs → email-auth-DOi6yOt3.mjs} +1 -1
- package/dist/{email-routing-UKVS4DYy.mjs → email-routing-WcSPt22u.mjs} +5 -5
- package/dist/{email-security-CZjfRIg0.mjs → email-security-BXu3OGay.mjs} +15 -15
- package/dist/{email-sending-Dquc880C.mjs → email-sending-B9zTlIjt.mjs} +2 -2
- package/dist/{fieldExtractors-BbwDRquU.mjs → fieldExtractors-B37m2lKW.mjs} +1 -1
- package/dist/{firewall--mTfDnCJ.mjs → firewall-CRtYO0Ha.mjs} +5 -5
- package/dist/{flagship-cfoSwwM9.mjs → flagship-DvTFZSay.mjs} +3 -3
- package/dist/{fraud-Dcsq3EYK.mjs → fraud-uSyibsit.mjs} +5 -5
- package/dist/{google-tag-gateway-DPKSkZQi.mjs → google-tag-gateway-BFXiiokq.mjs} +1 -1
- package/dist/hand-written-dry-run-B82fRl2N.mjs +2 -0
- package/dist/{healthchecks-D78hIIBC.mjs → healthchecks-27u7b7Jb.mjs} +5 -5
- package/dist/{hostnames-sF999-6H.mjs → hostnames-DvaUSzsj.mjs} +1 -1
- package/dist/hyperdrive-BzJvPdu6.mjs +37 -0
- package/dist/{iam-Bvg_PayW.mjs → iam-Dl3cU9GI.mjs} +1 -1
- package/dist/{images-DI_lEZ4L.mjs → images-C2OkI1j7.mjs} +6 -6
- package/dist/index.mjs +1 -1
- package/dist/{init-1w_mcgk3.mjs → init-Da8pe296.mjs} +1 -1
- package/dist/{intel-BxElBUMP.mjs → intel-DoB1g_K7.mjs} +2 -2
- package/dist/{ips-DWoaKxi7.mjs → ips-BRt68epr.mjs} +1 -1
- package/dist/{k2-tFjaftl-.mjs → k2-_eq5ZY2t.mjs} +1 -1
- package/dist/{keyless-certificates-BrvxHU4J.mjs → keyless-certificates-DaO2yqYu.mjs} +2 -2
- package/dist/{keys-DcwTYKRf.mjs → keys-7BQ3Zq6Y.mjs} +1 -1
- package/dist/{kv-htXS-7uP.mjs → kv-BTYCXKML.mjs} +4 -4
- package/dist/{lazy-command-BDiIwpss.mjs → lazy-command-CDWwCsD2.mjs} +1 -1
- package/dist/{leaked-credential-checks-bvGrLOmQ.mjs → leaked-credential-checks-CPHOK_dE.mjs} +1 -1
- package/dist/load-balancers-Bu9pd2SV.mjs +76 -0
- package/dist/{local-DlT72Xpn.mjs → local-BcPM4I0s.mjs} +1 -1
- package/dist/local-BundUuDT.mjs +2 -0
- package/dist/{local-runtime-CokO6qaX.mjs → local-runtime-BHKyRlCP.mjs} +1 -1
- package/dist/{login-Ccw-mYwT.mjs → login-BBYC_BtH.mjs} +1 -1
- package/dist/{login-BGF_I_LT.mjs → login-D2uoWhWh.mjs} +1 -1
- package/dist/{logo-matches-tE8LTKgg.mjs → logo-matches-Bc1DQ4-g.mjs} +1 -1
- package/dist/{logos-Bj845Mcw.mjs → logos-X5B8z7Iv.mjs} +1 -1
- package/dist/{logpush-Cs8JdvKi.mjs → logpush-C2ENi1et.mjs} +3 -3
- package/dist/{logs-C92XZvNu.mjs → logs-BKDz7kBW.mjs} +1 -1
- package/dist/{magic-cloud-networking-hNp5MMw-.mjs → magic-cloud-networking-B60Gld8A.mjs} +6 -6
- package/dist/{magic-network-monitoring-68GuWAnv.mjs → magic-network-monitoring-CxXI3Y-H.mjs} +4 -4
- package/dist/{magic-transit-DNd7gu4j.mjs → magic-transit-ZCSaCbl8.mjs} +171 -168
- package/dist/{managed-defense-B_wCAuFD.mjs → managed-defense-DrxMb7xi.mjs} +1 -1
- package/dist/{managed-transforms-DZdxHPOh.mjs → managed-transforms-AI7KrRU1.mjs} +1 -1
- package/dist/{matches-B65CkflD.mjs → matches-rPMLS3Ip.mjs} +1 -1
- package/dist/{mcp-DrJW5ayK.mjs → mcp-DXUMvEWt.mjs} +4 -4
- package/dist/{mesh-DfVzYTn1.mjs → mesh-MmBCQ37q.mjs} +2 -2
- package/dist/{monetization-BGaI8CMO.mjs → monetization-DQE5VtUO.mjs} +2 -2
- package/dist/{mtls-certificates-BsU2emDD.mjs → mtls-certificates-DwkEb-Hy.mjs} +1 -1
- package/dist/{network-BEMD8P0U.mjs → network-BcfobxQY.mjs} +1 -1
- package/dist/{network-interconnects-DMu_fcbo.mjs → network-interconnects-BU3tN_Ab.mjs} +10 -6
- package/dist/{o11y-C1a4gDGF.mjs → o11y-BBv7nedp.mjs} +13 -13
- package/dist/{oauth-Bj5Ne1o8.mjs → oauth-BUr8bPwo.mjs} +1 -1
- package/dist/{oauth-clients-p4Etdqy_.mjs → oauth-clients-qWVImhHE.mjs} +3 -3
- package/dist/{oauth-mspHHU5U.mjs → oauth-n8um6MFk.mjs} +1 -1
- package/dist/{oauth-scopes-B2IabFza.mjs → oauth-scopes-CdeIgJIx.mjs} +1 -1
- package/dist/organization-CJeOVWH7.mjs +71 -0
- package/dist/{organizations-5S6xEp7T.mjs → organizations-BpfoqZcG.mjs} +1 -1
- package/dist/{origin-ca-certificates-_VJAoK1D.mjs → origin-ca-certificates-Bimf07RF.mjs} +2 -2
- package/dist/{origin-post-quantum-encryption-GcldDsT2.mjs → origin-post-quantum-encryption-CM-If38w.mjs} +2 -2
- package/dist/{origin-tls-client-auth-DZHld9fA.mjs → origin-tls-client-auth-BPwYPhc9.mjs} +1 -1
- package/dist/{page-rules-o1tAMMsD.mjs → page-rules-DOeekMrj.mjs} +4 -4
- package/dist/pages-Bn0Sg1ay.mjs +54 -0
- package/dist/{pay-per-crawl-BsnOxGYU.mjs → pay-per-crawl-qJpseNNx.mjs} +1 -1
- package/dist/{pay-per-use-BXWMCSyE.mjs → pay-per-use-C1MWKJ4O.mjs} +3 -3
- package/dist/pipelines-rCwXQw6S.mjs +44 -0
- package/dist/{precursor-B6DjBib6.mjs → precursor-Bk8Pp6jT.mjs} +2 -2
- package/dist/previews-BEheHO3T.mjs +4 -0
- package/dist/{progress-BtkTVcHI.mjs → progress-CQqDtgmF.mjs} +1 -1
- package/dist/{prompt-RlgRrmbm.mjs → prompt-C8FyienX.mjs} +1 -1
- package/dist/{queries-yLwoJRHV.mjs → queries-DJ8looyq.mjs} +1 -1
- package/dist/{queues-CnJRaE1o.mjs → queues-BBH9Q-Tt.mjs} +7 -7
- package/dist/{r2-CuC6-zQX.mjs → r2-CdJKpP2w.mjs} +13 -13
- package/dist/{radar-DrQLcbkq.mjs → radar-CdvQL4xm.mjs} +1 -1
- package/dist/raw-fetch-DbXN3SlE.mjs +2 -0
- package/dist/{realtime-CjsnzHxD.mjs → realtime-onrXppzh.mjs} +9 -9
- package/dist/{registrar-BgOsxTnX.mjs → registrar-CbEBc5IE.mjs} +2 -2
- package/dist/{registrar-sandbox-3ikBD9fB.mjs → registrar-sandbox-BJhn1HFT.mjs} +3 -3
- package/dist/{registry-CHowrQsZ.mjs → registry-PI6sO95I.mjs} +1 -1
- package/dist/{reporting-hE127s5r.mjs → reporting-bXZY6obP.mjs} +1 -1
- package/dist/{request-headers-DiJeDAn1.mjs → request-headers-D8L95bEQ.mjs} +1 -1
- package/dist/{request-tracers-BCwLxmPN.mjs → request-tracers-CihskC2A.mjs} +1 -1
- package/dist/{resource-sharing-2qvWUuMa.mjs → resource-sharing-DDqcCHVs.mjs} +2 -2
- package/dist/{resource-tagging-Dwx7iL3v.mjs → resource-tagging-D63RpBce.mjs} +1 -1
- package/dist/{rules-DxVQ6jIg.mjs → rules-CAW0-Wde.mjs} +1 -1
- package/dist/{rulesets-Cdh8YjI9.mjs → rulesets-CPir63Qc.mjs} +3 -3
- package/dist/{rum-a4CMq4Qu.mjs → rum-BfwTcuup.mjs} +1 -1
- package/dist/{run-BvHwWWUX.mjs → run-CW2Cgi0S.mjs} +1 -1
- package/dist/run-DEynXvCc.mjs +2 -0
- package/dist/{schema-flags-BzoBGPWk.mjs → schema-flags-BTItUu1K.mjs} +1 -1
- package/dist/{scim-B8XlXl8v.mjs → scim-CtZ1FeQE.mjs} +1 -1
- package/dist/{secrets-store-Cqhedh_i.mjs → secrets-store-BIuBYUJT.mjs} +1 -1
- package/dist/{security-insights-le2-DteL.mjs → security-insights-DfUus0bs.mjs} +3 -3
- package/dist/{security-txt-cCArWXur.mjs → security-txt-CgZOsAIZ.mjs} +1 -1
- package/dist/{session-C1BhT1ZJ.mjs → session-BcM8Vyyx.mjs} +1 -1
- package/dist/{shared-BPjcpXuA.mjs → shared-CpS23WwR.mjs} +1 -1
- package/dist/{smart-shield-Csyh8hwB.mjs → smart-shield-ClgB7r-9.mjs} +5 -5
- package/dist/{snippets-DUWx25q6.mjs → snippets-DLO3iFAg.mjs} +1 -1
- package/dist/{spawn-IysxuTNW.mjs → spawn-D07wH-MH.mjs} +1 -1
- package/dist/{spectrum-Da3UYSOR.mjs → spectrum-B6qkjR_Z.mjs} +5 -5
- package/dist/{speed-NxlMnB2e.mjs → speed-DX5X2EIR.mjs} +1 -1
- package/dist/sql-CF044HDW.mjs +4 -0
- package/dist/src-BMATTZU_.mjs +125 -0
- package/dist/{ssl-BtaX2WEJ.mjs → ssl-CM-rChEC.mjs} +5 -5
- package/dist/{startup-profile-CdJWgNjd.mjs → startup-profile-CrtCP-6-.mjs} +1 -1
- package/dist/startup-profile-D662WI9s.mjs +2 -0
- package/dist/state-D7uNYnoi.mjs +2 -0
- package/dist/{state-BDSvdSdP.mjs → state-DIiIGEtR.mjs} +1 -1
- package/dist/{stream-C1Ijjzn4.mjs → stream-5EmUOQvy.mjs} +3 -3
- package/dist/{submit-MdkuU_Pt.mjs → submit-lEAaRSMR.mjs} +1 -1
- package/dist/{tags-CA1xMM96.mjs → tags-CX23P4jg.mjs} +1 -1
- package/dist/telemetry-0Y5hAtCX.mjs +2 -0
- package/dist/{telemetry-Cm39QJ-M.mjs → telemetry-ZlCi5Xhc.mjs} +1 -1
- package/dist/{tenant-BB6Oszcl.mjs → tenant-DnI7QziH.mjs} +1 -1
- package/dist/{tenant-custom-nameservers-BsbgYAEo.mjs → tenant-custom-nameservers-MR0dlcGm.mjs} +1 -1
- package/dist/{tunnels-CRFtyHWz.mjs → tunnels-NzYpsfi_.mjs} +15 -15
- package/dist/{turnstile-DBXWo_Xe.mjs → turnstile-M7sKCEz3.mjs} +11 -11
- package/dist/{update-check-CMXSdres.mjs → update-check-HFkPml6x.mjs} +1 -1
- package/dist/update-check-aTutXNRd.mjs +2 -0
- package/dist/update-check-worker.mjs +1 -1
- package/dist/{url-info-t-XAs0Mk.mjs → url-info-Dos9VOXV.mjs} +1 -1
- package/dist/{url-normalization-Cs4F8e0a.mjs → url-normalization-CZbFOq_v.mjs} +2 -2
- package/dist/{url-scanner-CBIoDbTx.mjs → url-scanner-B7quLPGW.mjs} +2 -2
- package/dist/{user-CevdOMoa.mjs → user-rXca0J9M.mjs} +12 -12
- package/dist/{values-CjNlkbIh.mjs → values-D-rrZrDa.mjs} +1 -1
- package/dist/{vectorize-9d9tPmg5.mjs → vectorize-D2tf_oA8.mjs} +4 -4
- package/dist/version-BGnqDvNR.mjs +2 -0
- package/dist/waiting-rooms-DrA3-0bw.mjs +53 -0
- package/dist/{web-assets-BHot_MU8.mjs → web-assets-DQAfvPT9.mjs} +3 -3
- package/dist/{web3-CYfWAF6b.mjs → web3-MI0GQDnu.mjs} +5 -5
- package/dist/workers-By6Pf8fv.mjs +40 -0
- package/dist/{workers-builds-Dw7ho3So.mjs → workers-builds-6YsWsCmC.mjs} +2 -2
- package/dist/{workers-for-platforms-A3yjyLh3.mjs → workers-for-platforms-DL8fC1qR.mjs} +2 -2
- package/dist/workers-vpc-BYx6sbgd.mjs +13 -0
- package/dist/workflows-ByQLnV0E.mjs +52 -0
- package/dist/{zaraz-BsD2dMI3.mjs → zaraz-CgbpmA85.mjs} +1 -1
- package/dist/{zero-trust-CA3iGQbG.mjs → zero-trust-CpjTkkWt.mjs} +42 -42
- package/dist/{zone-D2M4EZD0.mjs → zone-DnKIe6po.mjs} +1 -1
- package/dist/{zones-BoOC_JzC.mjs → zones--5ZzsDmQ.mjs} +15 -15
- package/package.json +12 -12
- package/dist/abuse-reports-BjU1s8cf.mjs +0 -24
- package/dist/access-C_G2MZnA.mjs +0 -2
- package/dist/ai-search-DGU1Y5By.mjs +0 -79
- package/dist/auth-CrmVwfpJ.mjs +0 -2
- package/dist/bot-management-DTgPwL7O.mjs +0 -9
- package/dist/build-B1L6xrgC.mjs +0 -2
- package/dist/containers-CVNfEjJs.mjs +0 -78
- package/dist/containers-DeoZyeQe.mjs +0 -375
- package/dist/d1-CE08YqYk.mjs +0 -93
- package/dist/diagnostics-UMbG6m4n.mjs +0 -15
- package/dist/dist-BHEmAAHr.mjs +0 -487
- package/dist/hyperdrive-qWACKfA4.mjs +0 -37
- package/dist/load-balancers-BNTUt4yG.mjs +0 -76
- package/dist/local-DlDumOSC.mjs +0 -2
- package/dist/organization-CdXt7AVZ.mjs +0 -75
- package/dist/pages-CmiOhjSl.mjs +0 -54
- package/dist/pipelines-DWLQC0F6.mjs +0 -44
- package/dist/previews-dUKEBGSM.mjs +0 -4
- package/dist/raw-fetch-B4NvWuZD.mjs +0 -2
- package/dist/run-CkbrPJPx.mjs +0 -2
- package/dist/sql-CNdHAlQ8.mjs +0 -4
- package/dist/src-JfLDUxFr.mjs +0 -125
- package/dist/startup-profile-B2l0ChVu.mjs +0 -2
- package/dist/state-JB4_BU1o.mjs +0 -2
- package/dist/telemetry-BsYO3nxG.mjs +0 -2
- package/dist/update-check-C2oVEbXx.mjs +0 -2
- package/dist/version-BdVUXLnK.mjs +0 -2
- package/dist/waiting-rooms--5WmrWb3.mjs +0 -53
- package/dist/workers-S17M0n3h.mjs +0 -40
- package/dist/workers-vpc-BZ2xXtC3.mjs +0 -13
- package/dist/workflows-BgGrVpSR.mjs +0 -43
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import{n as e}from"./auth-
|
|
2
|
+
import{n as e}from"./auth-CAWalgW0.mjs";import{i as t}from"./context-BBLtgdR1.mjs";import{t as n}from"./output-BOe-3AQG.mjs";import{t as r}from"./dry-run-DRj2_uV3.mjs";import{t as i}from"./progress-CQqDtgmF.mjs";import{t as a}from"./run-CW2Cgi0S.mjs";import"./telemetry-0Y5hAtCX.mjs";import{n as o,r as s,t as c}from"./body-parser-DkHKPkJ7.mjs";import{n as l}from"./prompt-C8FyienX.mjs";function u(e){return e.usage(`$0 ai-security custom-topics get
|
|
3
3
|
|
|
4
4
|
Get the custom topic categories defined for the zone. While AI Security for Apps is enabled, it scores every incoming prompt against these topics and writes the scores to the \`cf.llm.prompt.custom_topic_categories\` field, keyed by topic label. Topics can be configured while the detection is disabled, but no prompt is scored until you enable it.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const d={command:`get`,describe:`Get the AI Security for Apps custom topics of a zone.`,builder:u,handler:async o=>a({command:`ai-security custom-topics get`,classification:{safeFlags:[`dry-run`]}},o,async()=>{if(o.dryRun){r({command:`cf ai-security custom-topics get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/zones/${o.zone??o.zoneId??`<zone>`}/ai-security/custom-topics`,pathParams:{"zone-id":String(o.zone??o[`zone-id`]??``)},bodyKind:`none`});return}let a=await e(o),s=await t({zone:o.zone},a,{quiet:o.quiet});o.zoneId=s;let c=await i(`Loading`,async()=>a.aiSecurity.customTopics.get({zone_id:s}));n(c,{successLabel:`Loaded`})})};function f(e){return e.usage("$0 ai-security custom-topics update\n\nUpdate the custom topic list of the zone, overwriting it entirely with the topics in the request, so include every topic you want to keep. Changes can take up to a minute to propagate. Each entry has a `label`, used to reference the topic in rule expressions and analytics, and a `topic` description, which the classifier scores prompts against while AI Security for Apps is enabled. The following rules apply: - A zone can hold at most 20 topics. - `label` must be 2–20 characters, using only lowercase letters (a–z), digits (0–9), and hyphens. - `topic` must be 2–50 printable ASCII characters. - Labels must be unique within the zone, and so must topic descriptions.").option(`topics`,{type:`string`,description:`Custom topic categories for AI Security for Apps content detection. Provide as a JSON array of objects or @path/to/file.json.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`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 p={command:`update`,describe:`Update the AI Security for Apps custom topics of a zone.`,builder:f,handler:async u=>a({command:`ai-security custom-topics update`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},u,async()=>{if(u.dryRun){r({command:`cf ai-security custom-topics update`,method:`PUT`,url:`https://api.cloudflare.com/client/v4/zones/${u.zone??u.zoneId??`<zone>`}/ai-security/custom-topics`,pathParams:{"zone-id":String(u.zone??u[`zone-id`]??``)},bodyKind:`json`,body:u.body===void 0?c({topics:s(u.topics,`topics`)}):o(u.body)});return}let a=await e(u),d=await t({zone:u.zone},a,{quiet:u.quiet});if(u.zoneId=d,!await l({force:!!u.force,message:`This operation overwrites the AI Security for Apps custom topics for a zone.`})){process.stderr.write(`Aborted.
|
|
5
5
|
`);return}if(u.body){let e=o(u.body),t=await i(`Deleting`,async()=>a.aiSecurity.customTopics.update({body:e,zone_id:d}));n(t,{successLabel:`Deleted`});return}let f=c({topics:s(u.topics,`topics`)}),p=await i(`Deleting`,async()=>a.aiSecurity.customTopics.update({body:f,zone_id:d}));n(p,{successLabel:`Deleted`})})},m={command:`custom-topics`,describe:`Organization-specific topic categories used by AI Security for Apps content detection`,builder:e=>e.command(d).command(p).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function h(e){return e.usage(`$0 ai-security get
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import{t as e}from"./local-
|
|
2
|
+
import{t as e}from"./local-BcPM4I0s.mjs";import{n as t}from"./auth-CAWalgW0.mjs";import{a as n,t as r}from"./context-BBLtgdR1.mjs";import{t as i}from"./output-BOe-3AQG.mjs";import{t as a}from"./dry-run-DRj2_uV3.mjs";import{t as o}from"./progress-CQqDtgmF.mjs";import{t as s}from"./run-CW2Cgi0S.mjs";import"./telemetry-0Y5hAtCX.mjs";import{n as c,t as l}from"./body-parser-DkHKPkJ7.mjs";import{n as u}from"./input-validation-D7z60HJH.mjs";import{a as d,i as f,n as p}from"./prompt-C8FyienX.mjs";import{n as m,t as h}from"./raw-fetch-DbXN3SlE.mjs";function g(e){return e.usage(`$0 alerting available-alerts list
|
|
3
3
|
|
|
4
4
|
Gets a list of all alert types for which an account is eligible.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const ee={command:`list`,describe:`Get Alert Types`,builder:g,handler:async c=>s({command:`alerting available-alerts list`,classification:{safeFlags:[`dry-run`]}},c,async()=>{if(c.dryRun){let e=await n();a({command:`cf alerting available-alerts list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}/alerting/v3/available_alerts`,pathParams:{},bodyKind:`none`});return}let s=await t(c),l=c.local?e:await r();c.accountId=l;let u=await o(`Loading`,async()=>s.alerting.availableAlerts.list({account_id:l}));i(u,{successLabel:`Loaded`})})},_={command:`available-alerts`,describe:`Operations for available-alerts`,builder:e=>e.command(ee).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function v(e){return e.usage(`$0 alerting destinations eligible get
|
|
5
5
|
|
|
@@ -27,7 +27,7 @@ Update a webhook destination.`).positional(`webhook-id`,{type:`string`,descripti
|
|
|
27
27
|
|
|
28
28
|
Gets a list of history records for notifications sent to an account. The records are displayed for last \`x\` number of days based on the zone plan (free = 30, pro = 30, biz = 30, ent = 90).`).option(`per-page`,{type:`number`,description:`Number of items per page.`}).option(`before`,{type:`string`,description:`Limit the returned results to history records older than the specified date. This must be a timestamp that conforms to RFC3339.`}).option(`page`,{type:`number`,description:`Page number of paginated results.`}).option(`since`,{type:`string`,description:`Limit the returned results to history records newer than the specified date. This must be a timestamp that conforms to RFC3339.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const U={command:`list`,describe:`List History`,builder:H,handler:async c=>s({command:`alerting history list`,classification:{safeFlags:[`dry-run`]}},c,async()=>{let s={per_page:c[`per-page`],before:c.before,page:c.page,since:c.since};if(c.dryRun){let e=await n();a({command:`cf alerting history list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}/alerting/v3/history`,pathParams:{},query:s,bodyKind:`none`});return}let l=await t(c),u=c.local?e:await r();c.accountId=u;let d=await o(`Loading`,async()=>l.alerting.history.list({account_id:u,...s}));i(d,{successLabel:`Loaded`})})},W={command:`history`,describe:`Operations for history`,builder:e=>e.command(U).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function te(e){return e.usage(`$0 alerting policies create
|
|
29
29
|
|
|
30
|
-
Creates a new Notification policy.`).option(`alert-interval`,{type:`string`,description:`Optional specification of how often to re-alert from the same incident, not support on all alert types.`}).option(`alert-type`,{type:`string`,description:`Refers to which event will trigger a Notification dispatch. You can use the endpoint to get available alert types which then will give you a list of possible values.`,choices:/* @__PURE__ */ `abuse_report_alert.access_custom_certificate_expiration_type.advanced_ddos_attack_l4_alert.advanced_ddos_attack_l7_alert.advanced_http_alert_error.bgp_hijack_notification.billing_usage_alert.block_notification_block_removed.block_notification_new_block.block_notification_review_rejected.bot_traffic_basic_alert.brand_protection_alert.brand_protection_digest.clickhouse_alert_fw_anomaly.clickhouse_alert_fw_ent_anomaly.cloudforce_one_request_notification.cni_maintenance_notification.custom_analytics.custom_bot_detection_alert.custom_ssl_certificate_event_type.dedicated_ssl_certificate_event_type.device_connectivity_anomaly_alert.dos_attack_l4.dos_attack_l7.expiring_service_token_alert.failing_logpush_job_disabled_alert.fbm_auto_advertisement.fbm_dosd_attack.fbm_volumetric_attack.health_check_status_notification.hostname_aop_custom_certificate_expiration_type.http_alert_edge_error.http_alert_origin_error.image_notification.image_resizing_notification.incident_alert.load_balancing_health_alert.load_balancing_pool_enablement_alert.logo_match_alert.magic_tunnel_health_check_event.magic_wan_tunnel_health.maintenance_event_notification.mtls_certificate_store_certificate_expiration_type.pages_event_alert.radar_notification.real_origin_monitoring.scriptmonitor_alert_new_code_change_detections.scriptmonitor_alert_new_hosts.scriptmonitor_alert_new_malicious_hosts.scriptmonitor_alert_new_malicious_scripts.scriptmonitor_alert_new_malicious_url.scriptmonitor_alert_new_max_length_resource_url.scriptmonitor_alert_new_resources.secondary_dns_all_primaries_failing.secondary_dns_primaries_failing.secondary_dns_warning.secondary_dns_zone_successfully_updated.secondary_dns_zone_validation_warning.security_insights_alert.sentinel_alert.stream_live_notifications.synthetic_test_latency_alert.synthetic_test_low_availability_alert.traffic_anomalies_alert.tunnel_health_event.tunnel_update_event.universal_ssl_event_type.web_analytics_metrics_update.zone_aop_custom_certificate_expiration_type`.split(`.`)}).option(`description`,{type:`string`,description:`Optional description for the Notification policy.`}).option(`enabled`,{type:`boolean`,description:`Whether or not the Notification policy is enabled.`,default:!0}).option(`filters-actions`,{type:`string`,array:!0,description:`Usage depends on specific alert type`}).option(`filters-affected-asns`,{type:`string`,array:!0,description:`Used for configuring radar_notification`}).option(`filters-affected-components`,{type:`string`,array:!0,description:`Used for configuring incident_alert`}).option(`filters-affected-locations`,{type:`string`,array:!0,description:`Used for configuring radar_notification`}).option(`filters-airport-code`,{type:`string`,array:!0,description:`Used for configuring maintenance_event_notification`}).option(`filters-alert-trigger-preferences`,{type:`string`,array:!0,description:`Usage depends on specific alert type`}).option(`filters-alert-trigger-preferences-value`,{type:`string`,array:!0,description:`Usage depends on specific alert type`}).option(`filters-enabled`,{type:`string`,array:!0,description:`Used for configuring load_balancing_pool_enablement_alert`}).option(`filters-environment`,{type:`string`,array:!0,description:`Used for configuring pages_event_alert`}).option(`filters-event`,{type:`string`,array:!0,description:`Used for configuring pages_event_alert`}).option(`filters-event-source`,{type:`string`,array:!0,description:`Used for configuring load_balancing_health_alert`}).option(`filters-event-type`,{type:`string`,array:!0,description:`Usage depends on specific alert type`}).option(`filters-group-by`,{type:`string`,array:!0,description:`Usage depends on specific alert type`}).option(`filters-health-check-id`,{type:`string`,array:!0,description:`Used for configuring health_check_status_notification`}).option(`filters-incident-impact`,{type:`string`,array:!0,description:`Used for configuring incident_alert`}).option(`filters-input-id`,{type:`string`,array:!0,description:`Used for configuring stream_live_notifications`}).option(`filters-insight-class`,{type:`string`,array:!0,description:`Used for configuring security_insights_alert`}).option(`filters-limit`,{type:`string`,array:!0,description:`Used for configuring billing_usage_alert`}).option(`filters-logo-tag`,{type:`string`,array:!0,description:`Used for configuring logo_match_alert`}).option(`filters-megabits-per-second`,{type:`string`,array:!0,description:`Used for configuring advanced_ddos_attack_l4_alert`}).option(`filters-new-health`,{type:`string`,array:!0,description:`Used for configuring load_balancing_health_alert`}).option(`filters-new-status`,{type:`string`,array:!0,description:`Used for configuring tunnel_health_event`}).option(`filters-packets-per-second`,{type:`string`,array:!0,description:`Used for configuring advanced_ddos_attack_l4_alert`}).option(`filters-pool-id`,{type:`string`,array:!0,description:`Usage depends on specific alert type`}).option(`filters-pop-names`,{type:`string`,array:!0,description:`Usage depends on specific alert type`}).option(`filters-product`,{type:`string`,array:!0,description:`Used for configuring billing_usage_alert`}).option(`filters-project-id`,{type:`string`,array:!0,description:`Used for configuring pages_event_alert`}).option(`filters-protocol`,{type:`string`,array:!0,description:`Used for configuring advanced_ddos_attack_l4_alert`}).option(`filters-query-tag`,{type:`string`,array:!0,description:`Usage depends on specific alert type`}).option(`filters-requests-per-second`,{type:`string`,array:!0,description:`Used for configuring advanced_ddos_attack_l7_alert`}).option(`filters-selectors`,{type:`string`,array:!0,description:`Usage depends on specific alert type`}).option(`filters-services`,{type:`string`,array:!0,description:`Used for configuring clickhouse_alert_fw_ent_anomaly`}).option(`filters-slo`,{type:`string`,array:!0,description:`Usage depends on specific alert type`}).option(`filters-status`,{type:`string`,array:!0,description:`Used for configuring health_check_status_notification`}).option(`filters-target-hostname`,{type:`string`,array:!0,description:`Used for configuring advanced_ddos_attack_l7_alert`}).option(`filters-target-ip`,{type:`string`,array:!0,description:`Used for configuring advanced_ddos_attack_l4_alert`}).option(`filters-target-zone-name`,{type:`string`,array:!0,description:`Used for configuring advanced_ddos_attack_l7_alert`}).option(`filters-token-id`,{type:`string`,array:!0,description:`Access service token IDs to include for expiring_service_token_alert. Omit this property to include all current and future service tokens.`}).option(`filters-traffic-exclusions`,{type:`string`,array:!0,description:`Used for configuring traffic_anomalies_alert`}).option(`filters-tunnel-id`,{type:`string`,array:!0,description:`Used for configuring tunnel_health_event`}).option(`filters-tunnel-name`,{type:`string`,array:!0,description:`Usage depends on specific alert type`}).option(`filters-type`,{type:`string`,array:!0,description:`Usage depends on specific alert type`}).option(`filters-where`,{type:`string`,array:!0,description:`Usage depends on specific alert type`}).option(`filters-zones`,{type:`string`,array:!0,description:`Usage depends on specific alert type`}).option(`name`,{type:`string`,description:`Name of the policy.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const G={command:`create`,describe:`Create a Notification policy`,builder:te,handler:async p=>s({command:`alerting policies create`,classification:{safeFlags:[`alert-type`,`enabled`,`dry-run`]}},p,async()=>{if(p.dryRun){let e=await n();a({command:`cf alerting policies create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}/alerting/v3/policies`,pathParams:{},bodyKind:`json`,body:p.body===void 0?l({alert_interval:u(p[`alert-interval`],`alert-interval`,`text`),alert_type:u(p[`alert-type`],`alert-type`,`text`),description:u(p.description,`description`,`text`),enabled:p.enabled,filters:{actions:p[`filters-actions`],affected_asns:p[`filters-affected-asns`],affected_components:p[`filters-affected-components`],affected_locations:p[`filters-affected-locations`],airport_code:p[`filters-airport-code`],alert_trigger_preferences:p[`filters-alert-trigger-preferences`],alert_trigger_preferences_value:p[`filters-alert-trigger-preferences-value`],enabled:p[`filters-enabled`],environment:p[`filters-environment`],event:p[`filters-event`],event_source:p[`filters-event-source`],event_type:p[`filters-event-type`],group_by:p[`filters-group-by`],health_check_id:p[`filters-health-check-id`],incident_impact:p[`filters-incident-impact`],input_id:p[`filters-input-id`],insight_class:p[`filters-insight-class`],limit:p[`filters-limit`],logo_tag:p[`filters-logo-tag`],megabits_per_second:p[`filters-megabits-per-second`],new_health:p[`filters-new-health`],new_status:p[`filters-new-status`],packets_per_second:p[`filters-packets-per-second`],pool_id:p[`filters-pool-id`],pop_names:p[`filters-pop-names`],product:p[`filters-product`],project_id:p[`filters-project-id`],protocol:p[`filters-protocol`],query_tag:p[`filters-query-tag`],requests_per_second:p[`filters-requests-per-second`],selectors:p[`filters-selectors`],services:p[`filters-services`],slo:p[`filters-slo`],status:p[`filters-status`],target_hostname:p[`filters-target-hostname`],target_ip:p[`filters-target-ip`],target_zone_name:p[`filters-target-zone-name`],token_id:p[`filters-token-id`],traffic_exclusions:p[`filters-traffic-exclusions`],tunnel_id:p[`filters-tunnel-id`],tunnel_name:p[`filters-tunnel-name`],type:p[`filters-type`],where:p[`filters-where`],zones:p[`filters-zones`]},name:u(p.name,`name`,`text`)}):c(p.body)});return}let s=await t(p),m=p.local?e:await r();if(p.accountId=m,p.body){let e=c(p.body),t=await o(`Creating`,async()=>s.alerting.policies.create({...e,account_id:m}));i(t,{successLabel:`Created`});return}if(p[`alert-type`]===void 0&&(p[`alert-type`]=await f(`alert-type`,`Refers to which event will trigger a Notification dispatch. You can use the endpoint to get available alert types which then will give you a list of possible values.`,/* @__PURE__ */ `abuse_report_alert.access_custom_certificate_expiration_type.advanced_ddos_attack_l4_alert.advanced_ddos_attack_l7_alert.advanced_http_alert_error.bgp_hijack_notification.billing_usage_alert.block_notification_block_removed.block_notification_new_block.block_notification_review_rejected.bot_traffic_basic_alert.brand_protection_alert.brand_protection_digest.clickhouse_alert_fw_anomaly.clickhouse_alert_fw_ent_anomaly.cloudforce_one_request_notification.cni_maintenance_notification.custom_analytics.custom_bot_detection_alert.custom_ssl_certificate_event_type.dedicated_ssl_certificate_event_type.device_connectivity_anomaly_alert.dos_attack_l4.dos_attack_l7.expiring_service_token_alert.failing_logpush_job_disabled_alert.fbm_auto_advertisement.fbm_dosd_attack.fbm_volumetric_attack.health_check_status_notification.hostname_aop_custom_certificate_expiration_type.http_alert_edge_error.http_alert_origin_error.image_notification.image_resizing_notification.incident_alert.load_balancing_health_alert.load_balancing_pool_enablement_alert.logo_match_alert.magic_tunnel_health_check_event.magic_wan_tunnel_health.maintenance_event_notification.mtls_certificate_store_certificate_expiration_type.pages_event_alert.radar_notification.real_origin_monitoring.scriptmonitor_alert_new_code_change_detections.scriptmonitor_alert_new_hosts.scriptmonitor_alert_new_malicious_hosts.scriptmonitor_alert_new_malicious_scripts.scriptmonitor_alert_new_malicious_url.scriptmonitor_alert_new_max_length_resource_url.scriptmonitor_alert_new_resources.secondary_dns_all_primaries_failing.secondary_dns_primaries_failing.secondary_dns_warning.secondary_dns_zone_successfully_updated.secondary_dns_zone_validation_warning.security_insights_alert.sentinel_alert.stream_live_notifications.synthetic_test_latency_alert.synthetic_test_low_availability_alert.traffic_anomalies_alert.tunnel_health_event.tunnel_update_event.universal_ssl_event_type.web_analytics_metrics_update.zone_aop_custom_certificate_expiration_type`.split(`.`))),p.enabled===void 0)throw Error(`--enabled is required (or pass --body with this field set).`);p.name===void 0&&(p.name=await d(`name`,`Name of the policy.`));let h=l({alert_interval:u(p[`alert-interval`],`alert-interval`,`text`),alert_type:u(p[`alert-type`],`alert-type`,`text`),description:u(p.description,`description`,`text`),enabled:p.enabled,filters:{actions:p[`filters-actions`],affected_asns:p[`filters-affected-asns`],affected_components:p[`filters-affected-components`],affected_locations:p[`filters-affected-locations`],airport_code:p[`filters-airport-code`],alert_trigger_preferences:p[`filters-alert-trigger-preferences`],alert_trigger_preferences_value:p[`filters-alert-trigger-preferences-value`],enabled:p[`filters-enabled`],environment:p[`filters-environment`],event:p[`filters-event`],event_source:p[`filters-event-source`],event_type:p[`filters-event-type`],group_by:p[`filters-group-by`],health_check_id:p[`filters-health-check-id`],incident_impact:p[`filters-incident-impact`],input_id:p[`filters-input-id`],insight_class:p[`filters-insight-class`],limit:p[`filters-limit`],logo_tag:p[`filters-logo-tag`],megabits_per_second:p[`filters-megabits-per-second`],new_health:p[`filters-new-health`],new_status:p[`filters-new-status`],packets_per_second:p[`filters-packets-per-second`],pool_id:p[`filters-pool-id`],pop_names:p[`filters-pop-names`],product:p[`filters-product`],project_id:p[`filters-project-id`],protocol:p[`filters-protocol`],query_tag:p[`filters-query-tag`],requests_per_second:p[`filters-requests-per-second`],selectors:p[`filters-selectors`],services:p[`filters-services`],slo:p[`filters-slo`],status:p[`filters-status`],target_hostname:p[`filters-target-hostname`],target_ip:p[`filters-target-ip`],target_zone_name:p[`filters-target-zone-name`],token_id:p[`filters-token-id`],traffic_exclusions:p[`filters-traffic-exclusions`],tunnel_id:p[`filters-tunnel-id`],tunnel_name:p[`filters-tunnel-name`],type:p[`filters-type`],where:p[`filters-where`],zones:p[`filters-zones`]},name:u(p.name,`name`,`text`)}),g=await o(`Creating`,async()=>s.alerting.policies.create({...h,account_id:m}));i(g,{successLabel:`Created`})})};function K(e){return e.usage(`$0 alerting policies delete <policy-id>
|
|
30
|
+
Creates a new Notification policy.`).option(`alert-interval`,{type:`string`,description:`Optional specification of how often to re-alert from the same incident, not support on all alert types.`}).option(`alert-type`,{type:`string`,description:`Refers to which event will trigger a Notification dispatch. You can use the endpoint to get available alert types which then will give you a list of possible values.`,choices:/* @__PURE__ */ `abuse_report_alert.access_custom_certificate_expiration_type.advanced_ddos_attack_l4_alert.advanced_ddos_attack_l7_alert.advanced_http_alert_error.bgp_hijack_notification.billing_usage_alert.block_notification_block_removed.block_notification_new_block.block_notification_review_rejected.bot_traffic_basic_alert.brand_protection_alert.brand_protection_digest.clickhouse_alert_fw_anomaly.clickhouse_alert_fw_ent_anomaly.cloudforce_one_request_notification.cni_maintenance_notification.custom_analytics.custom_bot_detection_alert.custom_ssl_certificate_event_type.dedicated_ssl_certificate_event_type.device_connectivity_anomaly_alert.dos_attack_l4.dos_attack_l7.expiring_service_token_alert.failing_logpush_job_disabled_alert.fbm_auto_advertisement.fbm_dosd_attack.fbm_volumetric_attack.health_check_status_notification.hostname_aop_custom_certificate_expiration_type.http_alert_edge_error.http_alert_origin_error.image_notification.image_resizing_notification.incident_alert.load_balancing_health_alert.load_balancing_pool_enablement_alert.logo_match_alert.magic_tunnel_health_check_event.magic_wan_tunnel_health.maintenance_event_notification.mtls_certificate_store_certificate_expiration_type.pages_event_alert.radar_notification.real_origin_monitoring.scriptmonitor_alert_new_code_change_detections.scriptmonitor_alert_new_hosts.scriptmonitor_alert_new_malicious_hosts.scriptmonitor_alert_new_malicious_scripts.scriptmonitor_alert_new_malicious_url.scriptmonitor_alert_new_max_length_resource_url.scriptmonitor_alert_new_resources.secondary_dns_all_primaries_failing.secondary_dns_primaries_failing.secondary_dns_warning.secondary_dns_zone_successfully_updated.secondary_dns_zone_validation_warning.security_insights_alert.sentinel_alert.stream_live_notifications.synthetic_test_latency_alert.synthetic_test_low_availability_alert.traffic_anomalies_alert.tunnel_health_event.tunnel_update_event.universal_ssl_event_type.web_analytics_metrics_update.zone_aop_custom_certificate_expiration_type`.split(`.`)}).coerce(`alert-type`,e=>u(e,`alert-type`,`text`)).option(`description`,{type:`string`,description:`Optional description for the Notification policy.`}).option(`enabled`,{type:`boolean`,description:`Whether or not the Notification policy is enabled.`,default:!0}).option(`filters-actions`,{type:`string`,array:!0,description:`Usage depends on specific alert type`}).option(`filters-affected-asns`,{type:`string`,array:!0,description:`Used for configuring radar_notification`}).option(`filters-affected-components`,{type:`string`,array:!0,description:`Used for configuring incident_alert`}).option(`filters-affected-locations`,{type:`string`,array:!0,description:`Used for configuring radar_notification`}).option(`filters-airport-code`,{type:`string`,array:!0,description:`Used for configuring maintenance_event_notification`}).option(`filters-alert-trigger-preferences`,{type:`string`,array:!0,description:`Usage depends on specific alert type`}).option(`filters-alert-trigger-preferences-value`,{type:`string`,array:!0,description:`Usage depends on specific alert type`}).option(`filters-enabled`,{type:`string`,array:!0,description:`Used for configuring load_balancing_pool_enablement_alert`}).option(`filters-environment`,{type:`string`,array:!0,description:`Used for configuring pages_event_alert`}).option(`filters-event`,{type:`string`,array:!0,description:`Used for configuring pages_event_alert`}).option(`filters-event-source`,{type:`string`,array:!0,description:`Used for configuring load_balancing_health_alert`}).option(`filters-event-type`,{type:`string`,array:!0,description:`Usage depends on specific alert type`}).option(`filters-group-by`,{type:`string`,array:!0,description:`Usage depends on specific alert type`}).option(`filters-health-check-id`,{type:`string`,array:!0,description:`Used for configuring health_check_status_notification`}).option(`filters-incident-impact`,{type:`string`,array:!0,description:`Used for configuring incident_alert`}).option(`filters-input-id`,{type:`string`,array:!0,description:`Used for configuring stream_live_notifications`}).option(`filters-insight-class`,{type:`string`,array:!0,description:`Used for configuring security_insights_alert`}).option(`filters-limit`,{type:`string`,array:!0,description:`Used for configuring billing_usage_alert`}).option(`filters-logo-tag`,{type:`string`,array:!0,description:`Used for configuring logo_match_alert`}).option(`filters-megabits-per-second`,{type:`string`,array:!0,description:`Used for configuring advanced_ddos_attack_l4_alert`}).option(`filters-new-health`,{type:`string`,array:!0,description:`Used for configuring load_balancing_health_alert`}).option(`filters-new-status`,{type:`string`,array:!0,description:`Used for configuring tunnel_health_event`}).option(`filters-packets-per-second`,{type:`string`,array:!0,description:`Used for configuring advanced_ddos_attack_l4_alert`}).option(`filters-pool-id`,{type:`string`,array:!0,description:`Usage depends on specific alert type`}).option(`filters-pop-names`,{type:`string`,array:!0,description:`Usage depends on specific alert type`}).option(`filters-product`,{type:`string`,array:!0,description:`Used for configuring billing_usage_alert`}).option(`filters-project-id`,{type:`string`,array:!0,description:`Used for configuring pages_event_alert`}).option(`filters-protocol`,{type:`string`,array:!0,description:`Used for configuring advanced_ddos_attack_l4_alert`}).option(`filters-query-tag`,{type:`string`,array:!0,description:`Usage depends on specific alert type`}).option(`filters-requests-per-second`,{type:`string`,array:!0,description:`Used for configuring advanced_ddos_attack_l7_alert`}).option(`filters-selectors`,{type:`string`,array:!0,description:`Usage depends on specific alert type`}).option(`filters-services`,{type:`string`,array:!0,description:`Used for configuring clickhouse_alert_fw_ent_anomaly`}).option(`filters-slo`,{type:`string`,array:!0,description:`Usage depends on specific alert type`}).option(`filters-status`,{type:`string`,array:!0,description:`Used for configuring health_check_status_notification`}).option(`filters-target-hostname`,{type:`string`,array:!0,description:`Used for configuring advanced_ddos_attack_l7_alert`}).option(`filters-target-ip`,{type:`string`,array:!0,description:`Used for configuring advanced_ddos_attack_l4_alert`}).option(`filters-target-zone-name`,{type:`string`,array:!0,description:`Used for configuring advanced_ddos_attack_l7_alert`}).option(`filters-token-id`,{type:`string`,array:!0,description:`Access service token IDs to include for expiring_service_token_alert. Omit this property to include all current and future service tokens.`}).option(`filters-traffic-exclusions`,{type:`string`,array:!0,description:`Used for configuring traffic_anomalies_alert`}).option(`filters-tunnel-id`,{type:`string`,array:!0,description:`Used for configuring tunnel_health_event`}).option(`filters-tunnel-name`,{type:`string`,array:!0,description:`Usage depends on specific alert type`}).option(`filters-type`,{type:`string`,array:!0,description:`Usage depends on specific alert type`}).option(`filters-where`,{type:`string`,array:!0,description:`Usage depends on specific alert type`}).option(`filters-zones`,{type:`string`,array:!0,description:`Usage depends on specific alert type`}).option(`name`,{type:`string`,description:`Name of the policy.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const G={command:`create`,describe:`Create a Notification policy`,builder:te,handler:async p=>s({command:`alerting policies create`,classification:{safeFlags:[`alert-type`,`enabled`,`dry-run`]}},p,async()=>{if(p.dryRun){let e=await n();a({command:`cf alerting policies create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}/alerting/v3/policies`,pathParams:{},bodyKind:`json`,body:p.body===void 0?l({alert_interval:u(p[`alert-interval`],`alert-interval`,`text`),alert_type:p[`alert-type`],description:u(p.description,`description`,`text`),enabled:p.enabled,filters:{actions:p[`filters-actions`],affected_asns:p[`filters-affected-asns`],affected_components:p[`filters-affected-components`],affected_locations:p[`filters-affected-locations`],airport_code:p[`filters-airport-code`],alert_trigger_preferences:p[`filters-alert-trigger-preferences`],alert_trigger_preferences_value:p[`filters-alert-trigger-preferences-value`],enabled:p[`filters-enabled`],environment:p[`filters-environment`],event:p[`filters-event`],event_source:p[`filters-event-source`],event_type:p[`filters-event-type`],group_by:p[`filters-group-by`],health_check_id:p[`filters-health-check-id`],incident_impact:p[`filters-incident-impact`],input_id:p[`filters-input-id`],insight_class:p[`filters-insight-class`],limit:p[`filters-limit`],logo_tag:p[`filters-logo-tag`],megabits_per_second:p[`filters-megabits-per-second`],new_health:p[`filters-new-health`],new_status:p[`filters-new-status`],packets_per_second:p[`filters-packets-per-second`],pool_id:p[`filters-pool-id`],pop_names:p[`filters-pop-names`],product:p[`filters-product`],project_id:p[`filters-project-id`],protocol:p[`filters-protocol`],query_tag:p[`filters-query-tag`],requests_per_second:p[`filters-requests-per-second`],selectors:p[`filters-selectors`],services:p[`filters-services`],slo:p[`filters-slo`],status:p[`filters-status`],target_hostname:p[`filters-target-hostname`],target_ip:p[`filters-target-ip`],target_zone_name:p[`filters-target-zone-name`],token_id:p[`filters-token-id`],traffic_exclusions:p[`filters-traffic-exclusions`],tunnel_id:p[`filters-tunnel-id`],tunnel_name:p[`filters-tunnel-name`],type:p[`filters-type`],where:p[`filters-where`],zones:p[`filters-zones`]},name:u(p.name,`name`,`text`)}):c(p.body)});return}let s=await t(p),m=p.local?e:await r();if(p.accountId=m,p.body){let e=c(p.body),t=await o(`Creating`,async()=>s.alerting.policies.create({...e,account_id:m}));i(t,{successLabel:`Created`});return}if(p[`alert-type`]===void 0&&(p[`alert-type`]=await f(`alert-type`,`Refers to which event will trigger a Notification dispatch. You can use the endpoint to get available alert types which then will give you a list of possible values.`,/* @__PURE__ */ `abuse_report_alert.access_custom_certificate_expiration_type.advanced_ddos_attack_l4_alert.advanced_ddos_attack_l7_alert.advanced_http_alert_error.bgp_hijack_notification.billing_usage_alert.block_notification_block_removed.block_notification_new_block.block_notification_review_rejected.bot_traffic_basic_alert.brand_protection_alert.brand_protection_digest.clickhouse_alert_fw_anomaly.clickhouse_alert_fw_ent_anomaly.cloudforce_one_request_notification.cni_maintenance_notification.custom_analytics.custom_bot_detection_alert.custom_ssl_certificate_event_type.dedicated_ssl_certificate_event_type.device_connectivity_anomaly_alert.dos_attack_l4.dos_attack_l7.expiring_service_token_alert.failing_logpush_job_disabled_alert.fbm_auto_advertisement.fbm_dosd_attack.fbm_volumetric_attack.health_check_status_notification.hostname_aop_custom_certificate_expiration_type.http_alert_edge_error.http_alert_origin_error.image_notification.image_resizing_notification.incident_alert.load_balancing_health_alert.load_balancing_pool_enablement_alert.logo_match_alert.magic_tunnel_health_check_event.magic_wan_tunnel_health.maintenance_event_notification.mtls_certificate_store_certificate_expiration_type.pages_event_alert.radar_notification.real_origin_monitoring.scriptmonitor_alert_new_code_change_detections.scriptmonitor_alert_new_hosts.scriptmonitor_alert_new_malicious_hosts.scriptmonitor_alert_new_malicious_scripts.scriptmonitor_alert_new_malicious_url.scriptmonitor_alert_new_max_length_resource_url.scriptmonitor_alert_new_resources.secondary_dns_all_primaries_failing.secondary_dns_primaries_failing.secondary_dns_warning.secondary_dns_zone_successfully_updated.secondary_dns_zone_validation_warning.security_insights_alert.sentinel_alert.stream_live_notifications.synthetic_test_latency_alert.synthetic_test_low_availability_alert.traffic_anomalies_alert.tunnel_health_event.tunnel_update_event.universal_ssl_event_type.web_analytics_metrics_update.zone_aop_custom_certificate_expiration_type`.split(`.`))),p.enabled===void 0)throw Error(`--enabled is required (or pass --body with this field set).`);p.name===void 0&&(p.name=await d(`name`,`Name of the policy.`));let h=l({alert_interval:u(p[`alert-interval`],`alert-interval`,`text`),alert_type:p[`alert-type`],description:u(p.description,`description`,`text`),enabled:p.enabled,filters:{actions:p[`filters-actions`],affected_asns:p[`filters-affected-asns`],affected_components:p[`filters-affected-components`],affected_locations:p[`filters-affected-locations`],airport_code:p[`filters-airport-code`],alert_trigger_preferences:p[`filters-alert-trigger-preferences`],alert_trigger_preferences_value:p[`filters-alert-trigger-preferences-value`],enabled:p[`filters-enabled`],environment:p[`filters-environment`],event:p[`filters-event`],event_source:p[`filters-event-source`],event_type:p[`filters-event-type`],group_by:p[`filters-group-by`],health_check_id:p[`filters-health-check-id`],incident_impact:p[`filters-incident-impact`],input_id:p[`filters-input-id`],insight_class:p[`filters-insight-class`],limit:p[`filters-limit`],logo_tag:p[`filters-logo-tag`],megabits_per_second:p[`filters-megabits-per-second`],new_health:p[`filters-new-health`],new_status:p[`filters-new-status`],packets_per_second:p[`filters-packets-per-second`],pool_id:p[`filters-pool-id`],pop_names:p[`filters-pop-names`],product:p[`filters-product`],project_id:p[`filters-project-id`],protocol:p[`filters-protocol`],query_tag:p[`filters-query-tag`],requests_per_second:p[`filters-requests-per-second`],selectors:p[`filters-selectors`],services:p[`filters-services`],slo:p[`filters-slo`],status:p[`filters-status`],target_hostname:p[`filters-target-hostname`],target_ip:p[`filters-target-ip`],target_zone_name:p[`filters-target-zone-name`],token_id:p[`filters-token-id`],traffic_exclusions:p[`filters-traffic-exclusions`],tunnel_id:p[`filters-tunnel-id`],tunnel_name:p[`filters-tunnel-name`],type:p[`filters-type`],where:p[`filters-where`],zones:p[`filters-zones`]},name:u(p.name,`name`,`text`)}),g=await o(`Creating`,async()=>s.alerting.policies.create({...h,account_id:m}));i(g,{successLabel:`Created`})})};function K(e){return e.usage(`$0 alerting policies delete <policy-id>
|
|
31
31
|
|
|
32
32
|
Delete a Notification policy.`).positional(`policy-id`,{type:`string`,description:`The unique identifier of a notification policy`,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 q={command:`delete <policy-id>`,describe:`Delete a Notification policy`,builder:K,handler:async c=>s({command:`alerting policies delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},c,async()=>{if(c.dryRun){let e=await n();a({command:`cf alerting policies delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}/alerting/v3/policies/${c[`policy-id`]==null?`<policy-id>`:encodeURIComponent(String(c[`policy-id`]))}`,pathParams:{"policy-id":String(c[`policy-id`]??``)},bodyKind:`none`});return}let s=await t(c),l=c.local?e:await r();if(c.accountId=l,!await p({force:!!c.force,message:`This operation deletes the notification policy.`})){process.stderr.write(`Aborted.
|
|
33
33
|
`);return}let u=await o(`Deleting`,async()=>s.alerting.policies.delete({account_id:l,policy_id:c[`policy-id`]}));i(u,{successLabel:`Deleted`})})};function J(e){return e.usage(`$0 alerting policies email details <policy-id>
|
|
@@ -42,7 +42,7 @@ Get a list of all Notification policies.`).option(`dry-run`,{type:`boolean`,desc
|
|
|
42
42
|
|
|
43
43
|
Send a test notification for a policy to verify delivery mechanisms are working as expected.`).positional(`policy-id`,{type:`string`,description:`The unique identifier of a notification policy`,demandOption:!0}).option(`severity`,{type:`number`,description:`Severity level for the test alert. Defaults to INFO (1) if omitted.`}).option(`source`,{type:`string`,description:`Source identifier for the test alert.`}).option(`state-correlation-id`,{type:`string`,description:`Correlation ID for stateful test alerts. Required when state_event is set.`}).option(`state-event`,{type:`number`,description:`State event type for stateful test alerts. Use with state_correlation_id.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Optional configuration for the test notification. When omitted, a default INFO-severity test alert is sent.`})}const se={command:`test <policy-id>`,describe:`Test a Notification policy`,builder:oe,handler:async d=>s({command:`alerting policies test`,classification:{safeFlags:[`dry-run`]}},d,async()=>{if(d.dryRun){let e=await n();a({command:`cf alerting policies test`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}/alerting/v3/policies/${d[`policy-id`]==null?`<policy-id>`:encodeURIComponent(String(d[`policy-id`]))}/test`,pathParams:{"policy-id":String(d[`policy-id`]??``)},bodyKind:`json`,body:d.body===void 0?l({severity:d.severity,source:u(d.source,`source`,`text`),state_correlation_id:u(d[`state-correlation-id`],`state-correlation-id`,`text`),state_event:d[`state-event`]}):c(d.body)});return}let s=await t(d),f=d.local?e:await r();if(d.accountId=f,d.body){let e=c(d.body),t=await o(`Creating`,async()=>s.alerting.policies.test({...e,account_id:f,policy_id:d[`policy-id`]}));i(t,{successLabel:`Created`});return}let p=l({severity:d.severity,source:u(d.source,`source`,`text`),state_correlation_id:u(d[`state-correlation-id`],`state-correlation-id`,`text`),state_event:d[`state-event`]}),m=await o(`Creating`,async()=>s.alerting.policies.test({...p,account_id:f,policy_id:d[`policy-id`]}));i(m,{successLabel:`Created`})})};function ce(e){return e.usage(`$0 alerting policies update <policy-id>
|
|
44
44
|
|
|
45
|
-
Update a Notification policy.`).positional(`policy-id`,{type:`string`,description:`The unique identifier of a notification policy`,demandOption:!0}).option(`alert-interval`,{type:`string`,description:`Optional specification of how often to re-alert from the same incident, not support on all alert types.`}).option(`alert-type`,{type:`string`,description:`Refers to which event will trigger a Notification dispatch. You can use the endpoint to get available alert types which then will give you a list of possible values.`,choices:/* @__PURE__ */ `abuse_report_alert.access_custom_certificate_expiration_type.advanced_ddos_attack_l4_alert.advanced_ddos_attack_l7_alert.advanced_http_alert_error.bgp_hijack_notification.billing_usage_alert.block_notification_block_removed.block_notification_new_block.block_notification_review_rejected.bot_traffic_basic_alert.brand_protection_alert.brand_protection_digest.clickhouse_alert_fw_anomaly.clickhouse_alert_fw_ent_anomaly.cloudforce_one_request_notification.cni_maintenance_notification.custom_analytics.custom_bot_detection_alert.custom_ssl_certificate_event_type.dedicated_ssl_certificate_event_type.device_connectivity_anomaly_alert.dos_attack_l4.dos_attack_l7.expiring_service_token_alert.failing_logpush_job_disabled_alert.fbm_auto_advertisement.fbm_dosd_attack.fbm_volumetric_attack.health_check_status_notification.hostname_aop_custom_certificate_expiration_type.http_alert_edge_error.http_alert_origin_error.image_notification.image_resizing_notification.incident_alert.load_balancing_health_alert.load_balancing_pool_enablement_alert.logo_match_alert.magic_tunnel_health_check_event.magic_wan_tunnel_health.maintenance_event_notification.mtls_certificate_store_certificate_expiration_type.pages_event_alert.radar_notification.real_origin_monitoring.scriptmonitor_alert_new_code_change_detections.scriptmonitor_alert_new_hosts.scriptmonitor_alert_new_malicious_hosts.scriptmonitor_alert_new_malicious_scripts.scriptmonitor_alert_new_malicious_url.scriptmonitor_alert_new_max_length_resource_url.scriptmonitor_alert_new_resources.secondary_dns_all_primaries_failing.secondary_dns_primaries_failing.secondary_dns_warning.secondary_dns_zone_successfully_updated.secondary_dns_zone_validation_warning.security_insights_alert.sentinel_alert.stream_live_notifications.synthetic_test_latency_alert.synthetic_test_low_availability_alert.traffic_anomalies_alert.tunnel_health_event.tunnel_update_event.universal_ssl_event_type.web_analytics_metrics_update.zone_aop_custom_certificate_expiration_type`.split(`.`)}).option(`description`,{type:`string`,description:`Optional description for the Notification policy.`}).option(`enabled`,{type:`boolean`,description:`Whether or not the Notification policy is enabled.`}).option(`filters-actions`,{type:`string`,array:!0,description:`Usage depends on specific alert type`}).option(`filters-affected-asns`,{type:`string`,array:!0,description:`Used for configuring radar_notification`}).option(`filters-affected-components`,{type:`string`,array:!0,description:`Used for configuring incident_alert`}).option(`filters-affected-locations`,{type:`string`,array:!0,description:`Used for configuring radar_notification`}).option(`filters-airport-code`,{type:`string`,array:!0,description:`Used for configuring maintenance_event_notification`}).option(`filters-alert-trigger-preferences`,{type:`string`,array:!0,description:`Usage depends on specific alert type`}).option(`filters-alert-trigger-preferences-value`,{type:`string`,array:!0,description:`Usage depends on specific alert type`}).option(`filters-enabled`,{type:`string`,array:!0,description:`Used for configuring load_balancing_pool_enablement_alert`}).option(`filters-environment`,{type:`string`,array:!0,description:`Used for configuring pages_event_alert`}).option(`filters-event`,{type:`string`,array:!0,description:`Used for configuring pages_event_alert`}).option(`filters-event-source`,{type:`string`,array:!0,description:`Used for configuring load_balancing_health_alert`}).option(`filters-event-type`,{type:`string`,array:!0,description:`Usage depends on specific alert type`}).option(`filters-group-by`,{type:`string`,array:!0,description:`Usage depends on specific alert type`}).option(`filters-health-check-id`,{type:`string`,array:!0,description:`Used for configuring health_check_status_notification`}).option(`filters-incident-impact`,{type:`string`,array:!0,description:`Used for configuring incident_alert`}).option(`filters-input-id`,{type:`string`,array:!0,description:`Used for configuring stream_live_notifications`}).option(`filters-insight-class`,{type:`string`,array:!0,description:`Used for configuring security_insights_alert`}).option(`filters-limit`,{type:`string`,array:!0,description:`Used for configuring billing_usage_alert`}).option(`filters-logo-tag`,{type:`string`,array:!0,description:`Used for configuring logo_match_alert`}).option(`filters-megabits-per-second`,{type:`string`,array:!0,description:`Used for configuring advanced_ddos_attack_l4_alert`}).option(`filters-new-health`,{type:`string`,array:!0,description:`Used for configuring load_balancing_health_alert`}).option(`filters-new-status`,{type:`string`,array:!0,description:`Used for configuring tunnel_health_event`}).option(`filters-packets-per-second`,{type:`string`,array:!0,description:`Used for configuring advanced_ddos_attack_l4_alert`}).option(`filters-pool-id`,{type:`string`,array:!0,description:`Usage depends on specific alert type`}).option(`filters-pop-names`,{type:`string`,array:!0,description:`Usage depends on specific alert type`}).option(`filters-product`,{type:`string`,array:!0,description:`Used for configuring billing_usage_alert`}).option(`filters-project-id`,{type:`string`,array:!0,description:`Used for configuring pages_event_alert`}).option(`filters-protocol`,{type:`string`,array:!0,description:`Used for configuring advanced_ddos_attack_l4_alert`}).option(`filters-query-tag`,{type:`string`,array:!0,description:`Usage depends on specific alert type`}).option(`filters-requests-per-second`,{type:`string`,array:!0,description:`Used for configuring advanced_ddos_attack_l7_alert`}).option(`filters-selectors`,{type:`string`,array:!0,description:`Usage depends on specific alert type`}).option(`filters-services`,{type:`string`,array:!0,description:`Used for configuring clickhouse_alert_fw_ent_anomaly`}).option(`filters-slo`,{type:`string`,array:!0,description:`Usage depends on specific alert type`}).option(`filters-status`,{type:`string`,array:!0,description:`Used for configuring health_check_status_notification`}).option(`filters-target-hostname`,{type:`string`,array:!0,description:`Used for configuring advanced_ddos_attack_l7_alert`}).option(`filters-target-ip`,{type:`string`,array:!0,description:`Used for configuring advanced_ddos_attack_l4_alert`}).option(`filters-target-zone-name`,{type:`string`,array:!0,description:`Used for configuring advanced_ddos_attack_l7_alert`}).option(`filters-token-id`,{type:`string`,array:!0,description:`Access service token IDs to include for expiring_service_token_alert. Omit this property to include all current and future service tokens.`}).option(`filters-traffic-exclusions`,{type:`string`,array:!0,description:`Used for configuring traffic_anomalies_alert`}).option(`filters-tunnel-id`,{type:`string`,array:!0,description:`Used for configuring tunnel_health_event`}).option(`filters-tunnel-name`,{type:`string`,array:!0,description:`Usage depends on specific alert type`}).option(`filters-type`,{type:`string`,array:!0,description:`Usage depends on specific alert type`}).option(`filters-where`,{type:`string`,array:!0,description:`Usage depends on specific alert type`}).option(`filters-zones`,{type:`string`,array:!0,description:`Usage depends on specific alert type`}).option(`name`,{type:`string`,description:`Name of the policy.`}).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 le={command:`update <policy-id>`,describe:`Update a Notification policy`,builder:ce,handler:async d=>s({command:`alerting policies update`,classification:{safeFlags:[`alert-type`,`enabled`,`dry-run`]}},d,async()=>{if(d.dryRun){let e=await n();a({command:`cf alerting policies update`,method:`PUT`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}/alerting/v3/policies/${d[`policy-id`]==null?`<policy-id>`:encodeURIComponent(String(d[`policy-id`]))}`,pathParams:{"policy-id":String(d[`policy-id`]??``)},bodyKind:`json`,body:d.body===void 0?l({alert_interval:u(d[`alert-interval`],`alert-interval`,`text`),alert_type:u(d[`alert-type`],`alert-type`,`text`),description:u(d.description,`description`,`text`),enabled:d.enabled,filters:{actions:d[`filters-actions`],affected_asns:d[`filters-affected-asns`],affected_components:d[`filters-affected-components`],affected_locations:d[`filters-affected-locations`],airport_code:d[`filters-airport-code`],alert_trigger_preferences:d[`filters-alert-trigger-preferences`],alert_trigger_preferences_value:d[`filters-alert-trigger-preferences-value`],enabled:d[`filters-enabled`],environment:d[`filters-environment`],event:d[`filters-event`],event_source:d[`filters-event-source`],event_type:d[`filters-event-type`],group_by:d[`filters-group-by`],health_check_id:d[`filters-health-check-id`],incident_impact:d[`filters-incident-impact`],input_id:d[`filters-input-id`],insight_class:d[`filters-insight-class`],limit:d[`filters-limit`],logo_tag:d[`filters-logo-tag`],megabits_per_second:d[`filters-megabits-per-second`],new_health:d[`filters-new-health`],new_status:d[`filters-new-status`],packets_per_second:d[`filters-packets-per-second`],pool_id:d[`filters-pool-id`],pop_names:d[`filters-pop-names`],product:d[`filters-product`],project_id:d[`filters-project-id`],protocol:d[`filters-protocol`],query_tag:d[`filters-query-tag`],requests_per_second:d[`filters-requests-per-second`],selectors:d[`filters-selectors`],services:d[`filters-services`],slo:d[`filters-slo`],status:d[`filters-status`],target_hostname:d[`filters-target-hostname`],target_ip:d[`filters-target-ip`],target_zone_name:d[`filters-target-zone-name`],token_id:d[`filters-token-id`],traffic_exclusions:d[`filters-traffic-exclusions`],tunnel_id:d[`filters-tunnel-id`],tunnel_name:d[`filters-tunnel-name`],type:d[`filters-type`],where:d[`filters-where`],zones:d[`filters-zones`]},name:u(d.name,`name`,`text`)}):c(d.body)});return}let s=await t(d),f=d.local?e:await r();if(d.accountId=f,d.body){let e=c(d.body),t=await o(`Updating`,async()=>s.alerting.policies.update({...e,account_id:f,policy_id:d[`policy-id`]}));i(t,{successLabel:`Updated`});return}let p=l({alert_interval:u(d[`alert-interval`],`alert-interval`,`text`),alert_type:u(d[`alert-type`],`alert-type`,`text`),description:u(d.description,`description`,`text`),enabled:d.enabled,filters:{actions:d[`filters-actions`],affected_asns:d[`filters-affected-asns`],affected_components:d[`filters-affected-components`],affected_locations:d[`filters-affected-locations`],airport_code:d[`filters-airport-code`],alert_trigger_preferences:d[`filters-alert-trigger-preferences`],alert_trigger_preferences_value:d[`filters-alert-trigger-preferences-value`],enabled:d[`filters-enabled`],environment:d[`filters-environment`],event:d[`filters-event`],event_source:d[`filters-event-source`],event_type:d[`filters-event-type`],group_by:d[`filters-group-by`],health_check_id:d[`filters-health-check-id`],incident_impact:d[`filters-incident-impact`],input_id:d[`filters-input-id`],insight_class:d[`filters-insight-class`],limit:d[`filters-limit`],logo_tag:d[`filters-logo-tag`],megabits_per_second:d[`filters-megabits-per-second`],new_health:d[`filters-new-health`],new_status:d[`filters-new-status`],packets_per_second:d[`filters-packets-per-second`],pool_id:d[`filters-pool-id`],pop_names:d[`filters-pop-names`],product:d[`filters-product`],project_id:d[`filters-project-id`],protocol:d[`filters-protocol`],query_tag:d[`filters-query-tag`],requests_per_second:d[`filters-requests-per-second`],selectors:d[`filters-selectors`],services:d[`filters-services`],slo:d[`filters-slo`],status:d[`filters-status`],target_hostname:d[`filters-target-hostname`],target_ip:d[`filters-target-ip`],target_zone_name:d[`filters-target-zone-name`],token_id:d[`filters-token-id`],traffic_exclusions:d[`filters-traffic-exclusions`],tunnel_id:d[`filters-tunnel-id`],tunnel_name:d[`filters-tunnel-name`],type:d[`filters-type`],where:d[`filters-where`],zones:d[`filters-zones`]},name:u(d.name,`name`,`text`)}),m=await o(`Updating`,async()=>s.alerting.policies.update({...p,account_id:f,policy_id:d[`policy-id`]}));i(m,{successLabel:`Updated`})})},ue={command:`policies`,describe:`Operations for policies`,builder:e=>e.command(G).command(q).command(re).command(ae).command(se).command(le).command(Q).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function de(e){return e.usage(`$0 alerting silences create
|
|
45
|
+
Update a Notification policy.`).positional(`policy-id`,{type:`string`,description:`The unique identifier of a notification policy`,demandOption:!0}).option(`alert-interval`,{type:`string`,description:`Optional specification of how often to re-alert from the same incident, not support on all alert types.`}).option(`alert-type`,{type:`string`,description:`Refers to which event will trigger a Notification dispatch. You can use the endpoint to get available alert types which then will give you a list of possible values.`,choices:/* @__PURE__ */ `abuse_report_alert.access_custom_certificate_expiration_type.advanced_ddos_attack_l4_alert.advanced_ddos_attack_l7_alert.advanced_http_alert_error.bgp_hijack_notification.billing_usage_alert.block_notification_block_removed.block_notification_new_block.block_notification_review_rejected.bot_traffic_basic_alert.brand_protection_alert.brand_protection_digest.clickhouse_alert_fw_anomaly.clickhouse_alert_fw_ent_anomaly.cloudforce_one_request_notification.cni_maintenance_notification.custom_analytics.custom_bot_detection_alert.custom_ssl_certificate_event_type.dedicated_ssl_certificate_event_type.device_connectivity_anomaly_alert.dos_attack_l4.dos_attack_l7.expiring_service_token_alert.failing_logpush_job_disabled_alert.fbm_auto_advertisement.fbm_dosd_attack.fbm_volumetric_attack.health_check_status_notification.hostname_aop_custom_certificate_expiration_type.http_alert_edge_error.http_alert_origin_error.image_notification.image_resizing_notification.incident_alert.load_balancing_health_alert.load_balancing_pool_enablement_alert.logo_match_alert.magic_tunnel_health_check_event.magic_wan_tunnel_health.maintenance_event_notification.mtls_certificate_store_certificate_expiration_type.pages_event_alert.radar_notification.real_origin_monitoring.scriptmonitor_alert_new_code_change_detections.scriptmonitor_alert_new_hosts.scriptmonitor_alert_new_malicious_hosts.scriptmonitor_alert_new_malicious_scripts.scriptmonitor_alert_new_malicious_url.scriptmonitor_alert_new_max_length_resource_url.scriptmonitor_alert_new_resources.secondary_dns_all_primaries_failing.secondary_dns_primaries_failing.secondary_dns_warning.secondary_dns_zone_successfully_updated.secondary_dns_zone_validation_warning.security_insights_alert.sentinel_alert.stream_live_notifications.synthetic_test_latency_alert.synthetic_test_low_availability_alert.traffic_anomalies_alert.tunnel_health_event.tunnel_update_event.universal_ssl_event_type.web_analytics_metrics_update.zone_aop_custom_certificate_expiration_type`.split(`.`)}).coerce(`alert-type`,e=>u(e,`alert-type`,`text`)).option(`description`,{type:`string`,description:`Optional description for the Notification policy.`}).option(`enabled`,{type:`boolean`,description:`Whether or not the Notification policy is enabled.`}).option(`filters-actions`,{type:`string`,array:!0,description:`Usage depends on specific alert type`}).option(`filters-affected-asns`,{type:`string`,array:!0,description:`Used for configuring radar_notification`}).option(`filters-affected-components`,{type:`string`,array:!0,description:`Used for configuring incident_alert`}).option(`filters-affected-locations`,{type:`string`,array:!0,description:`Used for configuring radar_notification`}).option(`filters-airport-code`,{type:`string`,array:!0,description:`Used for configuring maintenance_event_notification`}).option(`filters-alert-trigger-preferences`,{type:`string`,array:!0,description:`Usage depends on specific alert type`}).option(`filters-alert-trigger-preferences-value`,{type:`string`,array:!0,description:`Usage depends on specific alert type`}).option(`filters-enabled`,{type:`string`,array:!0,description:`Used for configuring load_balancing_pool_enablement_alert`}).option(`filters-environment`,{type:`string`,array:!0,description:`Used for configuring pages_event_alert`}).option(`filters-event`,{type:`string`,array:!0,description:`Used for configuring pages_event_alert`}).option(`filters-event-source`,{type:`string`,array:!0,description:`Used for configuring load_balancing_health_alert`}).option(`filters-event-type`,{type:`string`,array:!0,description:`Usage depends on specific alert type`}).option(`filters-group-by`,{type:`string`,array:!0,description:`Usage depends on specific alert type`}).option(`filters-health-check-id`,{type:`string`,array:!0,description:`Used for configuring health_check_status_notification`}).option(`filters-incident-impact`,{type:`string`,array:!0,description:`Used for configuring incident_alert`}).option(`filters-input-id`,{type:`string`,array:!0,description:`Used for configuring stream_live_notifications`}).option(`filters-insight-class`,{type:`string`,array:!0,description:`Used for configuring security_insights_alert`}).option(`filters-limit`,{type:`string`,array:!0,description:`Used for configuring billing_usage_alert`}).option(`filters-logo-tag`,{type:`string`,array:!0,description:`Used for configuring logo_match_alert`}).option(`filters-megabits-per-second`,{type:`string`,array:!0,description:`Used for configuring advanced_ddos_attack_l4_alert`}).option(`filters-new-health`,{type:`string`,array:!0,description:`Used for configuring load_balancing_health_alert`}).option(`filters-new-status`,{type:`string`,array:!0,description:`Used for configuring tunnel_health_event`}).option(`filters-packets-per-second`,{type:`string`,array:!0,description:`Used for configuring advanced_ddos_attack_l4_alert`}).option(`filters-pool-id`,{type:`string`,array:!0,description:`Usage depends on specific alert type`}).option(`filters-pop-names`,{type:`string`,array:!0,description:`Usage depends on specific alert type`}).option(`filters-product`,{type:`string`,array:!0,description:`Used for configuring billing_usage_alert`}).option(`filters-project-id`,{type:`string`,array:!0,description:`Used for configuring pages_event_alert`}).option(`filters-protocol`,{type:`string`,array:!0,description:`Used for configuring advanced_ddos_attack_l4_alert`}).option(`filters-query-tag`,{type:`string`,array:!0,description:`Usage depends on specific alert type`}).option(`filters-requests-per-second`,{type:`string`,array:!0,description:`Used for configuring advanced_ddos_attack_l7_alert`}).option(`filters-selectors`,{type:`string`,array:!0,description:`Usage depends on specific alert type`}).option(`filters-services`,{type:`string`,array:!0,description:`Used for configuring clickhouse_alert_fw_ent_anomaly`}).option(`filters-slo`,{type:`string`,array:!0,description:`Usage depends on specific alert type`}).option(`filters-status`,{type:`string`,array:!0,description:`Used for configuring health_check_status_notification`}).option(`filters-target-hostname`,{type:`string`,array:!0,description:`Used for configuring advanced_ddos_attack_l7_alert`}).option(`filters-target-ip`,{type:`string`,array:!0,description:`Used for configuring advanced_ddos_attack_l4_alert`}).option(`filters-target-zone-name`,{type:`string`,array:!0,description:`Used for configuring advanced_ddos_attack_l7_alert`}).option(`filters-token-id`,{type:`string`,array:!0,description:`Access service token IDs to include for expiring_service_token_alert. Omit this property to include all current and future service tokens.`}).option(`filters-traffic-exclusions`,{type:`string`,array:!0,description:`Used for configuring traffic_anomalies_alert`}).option(`filters-tunnel-id`,{type:`string`,array:!0,description:`Used for configuring tunnel_health_event`}).option(`filters-tunnel-name`,{type:`string`,array:!0,description:`Usage depends on specific alert type`}).option(`filters-type`,{type:`string`,array:!0,description:`Usage depends on specific alert type`}).option(`filters-where`,{type:`string`,array:!0,description:`Usage depends on specific alert type`}).option(`filters-zones`,{type:`string`,array:!0,description:`Usage depends on specific alert type`}).option(`name`,{type:`string`,description:`Name of the policy.`}).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 le={command:`update <policy-id>`,describe:`Update a Notification policy`,builder:ce,handler:async d=>s({command:`alerting policies update`,classification:{safeFlags:[`alert-type`,`enabled`,`dry-run`]}},d,async()=>{if(d.dryRun){let e=await n();a({command:`cf alerting policies update`,method:`PUT`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}/alerting/v3/policies/${d[`policy-id`]==null?`<policy-id>`:encodeURIComponent(String(d[`policy-id`]))}`,pathParams:{"policy-id":String(d[`policy-id`]??``)},bodyKind:`json`,body:d.body===void 0?l({alert_interval:u(d[`alert-interval`],`alert-interval`,`text`),alert_type:d[`alert-type`],description:u(d.description,`description`,`text`),enabled:d.enabled,filters:{actions:d[`filters-actions`],affected_asns:d[`filters-affected-asns`],affected_components:d[`filters-affected-components`],affected_locations:d[`filters-affected-locations`],airport_code:d[`filters-airport-code`],alert_trigger_preferences:d[`filters-alert-trigger-preferences`],alert_trigger_preferences_value:d[`filters-alert-trigger-preferences-value`],enabled:d[`filters-enabled`],environment:d[`filters-environment`],event:d[`filters-event`],event_source:d[`filters-event-source`],event_type:d[`filters-event-type`],group_by:d[`filters-group-by`],health_check_id:d[`filters-health-check-id`],incident_impact:d[`filters-incident-impact`],input_id:d[`filters-input-id`],insight_class:d[`filters-insight-class`],limit:d[`filters-limit`],logo_tag:d[`filters-logo-tag`],megabits_per_second:d[`filters-megabits-per-second`],new_health:d[`filters-new-health`],new_status:d[`filters-new-status`],packets_per_second:d[`filters-packets-per-second`],pool_id:d[`filters-pool-id`],pop_names:d[`filters-pop-names`],product:d[`filters-product`],project_id:d[`filters-project-id`],protocol:d[`filters-protocol`],query_tag:d[`filters-query-tag`],requests_per_second:d[`filters-requests-per-second`],selectors:d[`filters-selectors`],services:d[`filters-services`],slo:d[`filters-slo`],status:d[`filters-status`],target_hostname:d[`filters-target-hostname`],target_ip:d[`filters-target-ip`],target_zone_name:d[`filters-target-zone-name`],token_id:d[`filters-token-id`],traffic_exclusions:d[`filters-traffic-exclusions`],tunnel_id:d[`filters-tunnel-id`],tunnel_name:d[`filters-tunnel-name`],type:d[`filters-type`],where:d[`filters-where`],zones:d[`filters-zones`]},name:u(d.name,`name`,`text`)}):c(d.body)});return}let s=await t(d),f=d.local?e:await r();if(d.accountId=f,d.body){let e=c(d.body),t=await o(`Updating`,async()=>s.alerting.policies.update({...e,account_id:f,policy_id:d[`policy-id`]}));i(t,{successLabel:`Updated`});return}let p=l({alert_interval:u(d[`alert-interval`],`alert-interval`,`text`),alert_type:d[`alert-type`],description:u(d.description,`description`,`text`),enabled:d.enabled,filters:{actions:d[`filters-actions`],affected_asns:d[`filters-affected-asns`],affected_components:d[`filters-affected-components`],affected_locations:d[`filters-affected-locations`],airport_code:d[`filters-airport-code`],alert_trigger_preferences:d[`filters-alert-trigger-preferences`],alert_trigger_preferences_value:d[`filters-alert-trigger-preferences-value`],enabled:d[`filters-enabled`],environment:d[`filters-environment`],event:d[`filters-event`],event_source:d[`filters-event-source`],event_type:d[`filters-event-type`],group_by:d[`filters-group-by`],health_check_id:d[`filters-health-check-id`],incident_impact:d[`filters-incident-impact`],input_id:d[`filters-input-id`],insight_class:d[`filters-insight-class`],limit:d[`filters-limit`],logo_tag:d[`filters-logo-tag`],megabits_per_second:d[`filters-megabits-per-second`],new_health:d[`filters-new-health`],new_status:d[`filters-new-status`],packets_per_second:d[`filters-packets-per-second`],pool_id:d[`filters-pool-id`],pop_names:d[`filters-pop-names`],product:d[`filters-product`],project_id:d[`filters-project-id`],protocol:d[`filters-protocol`],query_tag:d[`filters-query-tag`],requests_per_second:d[`filters-requests-per-second`],selectors:d[`filters-selectors`],services:d[`filters-services`],slo:d[`filters-slo`],status:d[`filters-status`],target_hostname:d[`filters-target-hostname`],target_ip:d[`filters-target-ip`],target_zone_name:d[`filters-target-zone-name`],token_id:d[`filters-token-id`],traffic_exclusions:d[`filters-traffic-exclusions`],tunnel_id:d[`filters-tunnel-id`],tunnel_name:d[`filters-tunnel-name`],type:d[`filters-type`],where:d[`filters-where`],zones:d[`filters-zones`]},name:u(d.name,`name`,`text`)}),m=await o(`Updating`,async()=>s.alerting.policies.update({...p,account_id:f,policy_id:d[`policy-id`]}));i(m,{successLabel:`Updated`})})},ue={command:`policies`,describe:`Operations for policies`,builder:e=>e.command(G).command(q).command(re).command(ae).command(se).command(le).command(Q).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function de(e){return e.usage(`$0 alerting silences create
|
|
46
46
|
|
|
47
47
|
Creates a new silence for an account.`).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 fe={command:`create`,describe:`Create Silences`,builder:de,handler:async l=>s({command:`alerting silences create`,classification:{safeFlags:[`dry-run`]}},l,async()=>{if(l.dryRun){let e=await n();a({command:`cf alerting silences create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}/alerting/v3/silences`,pathParams:{},bodyKind:`json`,body:l.body===void 0?void 0:c(l.body)});return}let s=await t(l),u=l.local?e:await r();if(l.accountId=u,l.body){let e=c(l.body),t=await o(`Creating`,async()=>s.alerting.silences.create({body:e,account_id:u}));i(t,{successLabel:`Created`});return}if(l.body===void 0)throw Error(`--body is required for this command. Pass --body '<json>' or --body @path/to/file.json.`)})};function pe(e){return e.usage(`$0 alerting silences delete <silence-id>
|
|
48
48
|
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import{t as e}from"./local-
|
|
2
|
+
import{t as e}from"./local-BcPM4I0s.mjs";import{n as t}from"./auth-CAWalgW0.mjs";import{a as n,i as r,t as i}from"./context-BBLtgdR1.mjs";import{t as a}from"./output-BOe-3AQG.mjs";import{t as o}from"./dry-run-DRj2_uV3.mjs";import{t as s}from"./progress-CQqDtgmF.mjs";import{t as c}from"./run-CW2Cgi0S.mjs";import"./telemetry-0Y5hAtCX.mjs";import{n as l,r as u,t as d}from"./body-parser-DkHKPkJ7.mjs";import{n as f}from"./input-validation-D7z60HJH.mjs";import{a as p}from"./prompt-C8FyienX.mjs";function m(e){return e.usage(`$0 analytics latency colos get
|
|
3
3
|
|
|
4
4
|
Retrieves Argo Smart Routing analytics broken down by geographic points of presence (PoPs). Shows latency improvements and routing efficiency per location.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const h={command:`get`,describe:`Argo Analytics for a zone at different PoPs`,builder:m,handler:async e=>c({command:`analytics latency colos get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){o({command:`cf analytics latency colos get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/analytics/latency/colos`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``)},bodyKind:`none`});return}let n=await t(e),i=await r({zone:e.zone},n,{quiet:e.quiet});e.zoneId=i;let c=await s(`Loading`,async()=>n.analytics.latency.colos.get({zone_id:i}));a(c,{successLabel:`Loaded`})})},g={command:`colos`,describe:`Operations for latency.colos`,builder:e=>e.command(h).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function _(e){return e.usage(`$0 analytics latency get
|
|
5
5
|
|
|
6
6
|
Retrieves aggregate Argo Smart Routing analytics for a zone, including latency improvements, bandwidth savings, and routing statistics.`).option(`bins`,{type:`string`,description:`Bins`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const v={command:`get`,describe:`Argo Analytics for a zone`,builder:_,handler:async e=>c({command:`analytics latency get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{let n={bins:e.bins};if(e.dryRun){o({command:`cf analytics latency get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/analytics/latency`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``)},query:n,bodyKind:`none`});return}let i=await t(e),c=await r({zone:e.zone},i,{quiet:e.quiet});e.zoneId=c;let l=await s(`Loading`,async()=>i.analytics.latency.get({zone_id:c,...n}));a(l,{successLabel:`Loaded`})})},y={command:`latency`,describe:`Argo Smart Routing latency analytics showing time-to-first-byte improvements`,builder:e=>e.command(v).command(g).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function b(e){return e.usage(`$0 analytics query data-security content-findings top-n
|
|
7
7
|
|
|
8
|
-
Returns the top N integrations ranked by total content findings.`).option(`filters`,{type:`string`,description:"Filters to apply. `findingType = content` is applied automatically for CASB data. Provide as a JSON array of objects or @path/to/file.json."}).option(`from`,{type:`string`,description:`Start of the query time range (inclusive). RFC3339.`}).option(`
|
|
8
|
+
Returns the top N integrations ranked by total content findings.`).option(`filters`,{type:`string`,description:"Filters to apply. `findingType = content` is applied automatically for CASB data. Provide as a JSON array of objects or @path/to/file.json."}).option(`from`,{type:`string`,description:`Start of the query time range (inclusive). RFC3339.`}).option(`limit`,{type:`number`,description:`Maximum number of integrations to return.`}).option(`to`,{type:`string`,description:`End of the query time range (exclusive). RFC3339.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Returns the top N integrations for content findings.`})}const x={command:`top-n`,describe:`Top integrations by content findings`,builder:b,handler:async r=>c({command:`analytics query data-security content-findings top-n`,classification:{safeFlags:[`dry-run`]}},r,async()=>{if(r.dryRun){let e=await n();o({command:`cf analytics query data-security content-findings top-n`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}/analytics/query/data-security/content-findings/top-n`,pathParams:{},bodyKind:`json`,body:r.body===void 0?d({filters:u(r.filters,`filters`),from:f(r.from,`from`,`text`),n:r.limit,to:f(r.to,`to`,`text`)}):l(r.body)});return}let c=await t(r),m=r.local?e:await i();if(r.accountId=m,r.body){let e=l(r.body),t=await s(`Creating`,async()=>c.analytics.query.dataSecurity.contentFindings.topN({...e,account_id:m}));a(t,{successLabel:`Created`});return}if(r.filters===void 0)throw Error(`--filters is required (or pass --body with this field set).`);if(r.from===void 0&&(r.from=await p(`from`,`Start of the query time range (inclusive). RFC3339.`)),r.limit===void 0)throw Error(`--limit is required (or pass --body with this field set).`);r.to===void 0&&(r.to=await p(`to`,`End of the query time range (exclusive). RFC3339.`));let h=d({filters:u(r.filters,`filters`),from:f(r.from,`from`,`text`),n:r.limit,to:f(r.to,`to`,`text`)}),g=await s(`Creating`,async()=>c.analytics.query.dataSecurity.contentFindings.topN({...h,account_id:m}));a(g,{successLabel:`Created`})})},S={command:`content-findings`,describe:`Operations for query.data-security.content-findings`,builder:e=>e.command(x).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function C(e){return e.usage(`$0 analytics query data-security findings summary
|
|
9
9
|
|
|
10
10
|
Returns aggregate current-period and previous-period totals for CASB findings.`).option(`filters`,{type:`string`,description:`Filters to apply. Provide as a JSON array of objects or @path/to/file.json.`}).option(`from`,{type:`string`,description:`Start of the query time range (inclusive). RFC3339.`}).option(`to`,{type:`string`,description:`End of the query time range (exclusive). RFC3339.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Query for aggregate findings summary.`})}const w={command:`summary`,describe:`Data security findings summary`,builder:C,handler:async r=>c({command:`analytics query data-security findings summary`,classification:{safeFlags:[`dry-run`]}},r,async()=>{if(r.dryRun){let e=await n();o({command:`cf analytics query data-security findings summary`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}/analytics/query/data-security/findings/summary`,pathParams:{},bodyKind:`json`,body:r.body===void 0?d({filters:u(r.filters,`filters`),from:f(r.from,`from`,`text`),to:f(r.to,`to`,`text`)}):l(r.body)});return}let c=await t(r),m=r.local?e:await i();if(r.accountId=m,r.body){let e=l(r.body),t=await s(`Creating`,async()=>c.analytics.query.dataSecurity.findings.summary({...e,account_id:m}));a(t,{successLabel:`Created`});return}if(r.filters===void 0)throw Error(`--filters is required (or pass --body with this field set).`);r.from===void 0&&(r.from=await p(`from`,`Start of the query time range (inclusive). RFC3339.`)),r.to===void 0&&(r.to=await p(`to`,`End of the query time range (exclusive). RFC3339.`));let h=d({filters:u(r.filters,`filters`),from:f(r.from,`from`,`text`),to:f(r.to,`to`,`text`)}),g=await s(`Creating`,async()=>c.analytics.query.dataSecurity.findings.summary({...h,account_id:m}));a(g,{successLabel:`Created`})})};function T(e){return e.usage(`$0 analytics query data-security findings timeseries
|
|
11
11
|
|
|
@@ -14,4 +14,4 @@ Returns merged time-bucketed CASB findings.`).option(`filters`,{type:`string`,de
|
|
|
14
14
|
Returns aggregate summary stats for a dataset. Includes current-period and previous-period totals for trend comparison.`).positional(`dataset`,{type:`string`,description:"Dataset name to query. Examples: `access-logins`, `gateway-http`, `gateway-dns`, `gateway-http`, `shadow-it`.",demandOption:!0}).option(`filters`,{type:`string`,description:`Filters to apply before aggregating results. Provide as a JSON array of objects or @path/to/file.json.`}).option(`from`,{type:`string`,description:"The start of the query time range (inclusive). RFC3339 format with timezone is required (e.g. `2024-11-05T00:00:00Z`)."}).option(`group-by`,{type:`string`,array:!0,description:`Specifies the column names to group results by. Requires valid columns for the target dataset.`}).option(`stats`,{type:`string`,array:!0,description:"Specifies the stat names to include in results. Requires valid stats for the target dataset (e.g. `attemptsTotal`, `bytesTotal`)."}).option(`to`,{type:`string`,description:`Specifies the end of the query time range (exclusive). Requires RFC3339 format with timezone.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Defines fields that all query types share.`})}const A={command:`summary <dataset>`,describe:`Query analytics summary`,builder:k,handler:async r=>c({command:`analytics query summary`,classification:{safeFlags:[`dry-run`]}},r,async()=>{if(r.dryRun){let e=await n();o({command:`cf analytics query summary`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}/analytics/query/${r.dataset==null?`<dataset>`:encodeURIComponent(String(r.dataset))}/summary`,pathParams:{dataset:String(r.dataset??``)},bodyKind:`json`,body:r.body===void 0?d({filters:u(r.filters,`filters`),from:f(r.from,`from`,`text`),groupBy:r[`group-by`],stats:r.stats,to:f(r.to,`to`,`text`)}):l(r.body)});return}let c=await t(r),m=r.local?e:await i();if(r.accountId=m,r.body){let e=l(r.body),t=await s(`Creating`,async()=>c.analytics.query.summary({...e,account_id:m,dataset:r.dataset}));a(t,{successLabel:`Created`});return}if(r.filters===void 0)throw Error(`--filters is required (or pass --body with this field set).`);if(r.from===void 0&&(r.from=await p(`from`,"The start of the query time range (inclusive). RFC3339 format with timezone is required (e.g. `2024-11-05T00:00:00Z`).")),r[`group-by`]===void 0)throw Error(`--group-by is required (or pass --body with this field set).`);if(r.stats===void 0)throw Error(`--stats is required (or pass --body with this field set).`);r.to===void 0&&(r.to=await p(`to`,`Specifies the end of the query time range (exclusive). Requires RFC3339 format with timezone.`));let h=d({filters:u(r.filters,`filters`),from:f(r.from,`from`,`text`),groupBy:r[`group-by`],stats:r.stats,to:f(r.to,`to`,`text`)}),g=await s(`Creating`,async()=>c.analytics.query.summary({...h,account_id:m,dataset:r.dataset}));a(g,{successLabel:`Created`})})};function j(e){return e.usage("$0 analytics query timeseries <dataset>\n\nReturns time-bucketed analytics data for a dataset. Includes time slots, each containing the requested stats, group-by dimensions, and resolution-controlled bucket size (e.g. `hour`, `day`).").positional(`dataset`,{type:`string`,description:"Dataset name to query. Examples: `access-logins`, `gateway-http`, `gateway-dns`, `gateway-http`, `shadow-it`.",demandOption:!0}).option(`filters`,{type:`string`,description:`Filters to apply before aggregating results. Provide as a JSON array of objects or @path/to/file.json.`}).option(`from`,{type:`string`,description:"The start of the query time range (inclusive). RFC3339 format with timezone is required (e.g. `2024-11-05T00:00:00Z`)."}).option(`group-by`,{type:`string`,array:!0,description:`Specifies the column names to group results by. Requires valid columns for the target dataset.`}).option(`stats`,{type:`string`,array:!0,description:"Specifies the stat names to include in results. Requires valid stats for the target dataset (e.g. `attemptsTotal`, `bytesTotal`)."}).option(`to`,{type:`string`,description:`Specifies the end of the query time range (exclusive). Requires RFC3339 format with timezone.`}).option(`resolution`,{type:`string`,description:`Time bucket size for grouping results. Controls the granularity of the returned time slots.
|
|
15
15
|
`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Defines fields that all query types share.`})}const M={command:`timeseries <dataset>`,describe:`Query analytics timeseries`,builder:j,handler:async r=>c({command:`analytics query timeseries`,classification:{safeFlags:[`dry-run`]}},r,async()=>{if(r.dryRun){let e=await n();o({command:`cf analytics query timeseries`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}/analytics/query/${r.dataset==null?`<dataset>`:encodeURIComponent(String(r.dataset))}/timeseries`,pathParams:{dataset:String(r.dataset??``)},bodyKind:`json`,body:r.body===void 0?d({filters:u(r.filters,`filters`),from:f(r.from,`from`,`text`),groupBy:r[`group-by`],stats:r.stats,to:f(r.to,`to`,`text`),resolution:f(r.resolution,`resolution`,`text`)}):l(r.body)});return}let c=await t(r),m=r.local?e:await i();if(r.accountId=m,r.body){let e=l(r.body),t=await s(`Creating`,async()=>c.analytics.query.timeseries({...e,account_id:m,dataset:r.dataset}));a(t,{successLabel:`Created`});return}if(r.filters===void 0)throw Error(`--filters is required (or pass --body with this field set).`);if(r.from===void 0&&(r.from=await p(`from`,"The start of the query time range (inclusive). RFC3339 format with timezone is required (e.g. `2024-11-05T00:00:00Z`).")),r[`group-by`]===void 0)throw Error(`--group-by is required (or pass --body with this field set).`);if(r.stats===void 0)throw Error(`--stats is required (or pass --body with this field set).`);r.to===void 0&&(r.to=await p(`to`,`Specifies the end of the query time range (exclusive). Requires RFC3339 format with timezone.`)),r.resolution===void 0&&(r.resolution=await p(`resolution`,`Time bucket size for grouping results. Controls the granularity of the returned time slots. `));let h=d({filters:u(r.filters,`filters`),from:f(r.from,`from`,`text`),groupBy:r[`group-by`],stats:r.stats,to:f(r.to,`to`,`text`),resolution:f(r.resolution,`resolution`,`text`)}),g=await s(`Creating`,async()=>c.analytics.query.timeseries({...h,account_id:m,dataset:r.dataset}));a(g,{successLabel:`Created`})})};function N(e){return e.usage(`$0 analytics query top-n <dataset>
|
|
16
16
|
|
|
17
|
-
Returns the top N results for a dataset by a specified stat. Includes an array of result rows, each containing the requested stats and group-by dimensions.`).positional(`dataset`,{type:`string`,description:"Dataset name to query. Examples: `access-logins`, `gateway-http`, `gateway-dns`, `gateway-http`, `shadow-it`.",demandOption:!0}).option(`filters`,{type:`string`,description:`Filters to apply before aggregating results. Provide as a JSON array of objects or @path/to/file.json.`}).option(`from`,{type:`string`,description:"The start of the query time range (inclusive). RFC3339 format with timezone is required (e.g. `2024-11-05T00:00:00Z`)."}).option(`group-by`,{type:`string`,array:!0,description:`Specifies the column names to group results by. Requires valid columns for the target dataset.`}).option(`stats`,{type:`string`,array:!0,description:"Specifies the stat names to include in results. Requires valid stats for the target dataset (e.g. `attemptsTotal`, `bytesTotal`)."}).option(`to`,{type:`string`,description:`Specifies the end of the query time range (exclusive). Requires RFC3339 format with timezone.`}).option(`
|
|
17
|
+
Returns the top N results for a dataset by a specified stat. Includes an array of result rows, each containing the requested stats and group-by dimensions.`).positional(`dataset`,{type:`string`,description:"Dataset name to query. Examples: `access-logins`, `gateway-http`, `gateway-dns`, `gateway-http`, `shadow-it`.",demandOption:!0}).option(`filters`,{type:`string`,description:`Filters to apply before aggregating results. Provide as a JSON array of objects or @path/to/file.json.`}).option(`from`,{type:`string`,description:"The start of the query time range (inclusive). RFC3339 format with timezone is required (e.g. `2024-11-05T00:00:00Z`)."}).option(`group-by`,{type:`string`,array:!0,description:`Specifies the column names to group results by. Requires valid columns for the target dataset.`}).option(`stats`,{type:`string`,array:!0,description:"Specifies the stat names to include in results. Requires valid stats for the target dataset (e.g. `attemptsTotal`, `bytesTotal`)."}).option(`to`,{type:`string`,description:`Specifies the end of the query time range (exclusive). Requires RFC3339 format with timezone.`}).option(`limit`,{type:`number`,description:`Maximum number of results to return.`}).option(`order-by`,{type:`string`,description:`Specifies the stat name for sorting results in descending order. Requires a valid stat for the target dataset.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Defines fields that all query types share.`})}const P={command:`top-n <dataset>`,describe:`Query analytics top-N`,builder:N,handler:async r=>c({command:`analytics query top-n`,classification:{safeFlags:[`dry-run`]}},r,async()=>{if(r.dryRun){let e=await n();o({command:`cf analytics query top-n`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}/analytics/query/${r.dataset==null?`<dataset>`:encodeURIComponent(String(r.dataset))}/top-n`,pathParams:{dataset:String(r.dataset??``)},bodyKind:`json`,body:r.body===void 0?d({filters:u(r.filters,`filters`),from:f(r.from,`from`,`text`),groupBy:r[`group-by`],stats:r.stats,to:f(r.to,`to`,`text`),n:r.limit,orderBy:f(r[`order-by`],`order-by`,`text`)}):l(r.body)});return}let c=await t(r),m=r.local?e:await i();if(r.accountId=m,r.body){let e=l(r.body),t=await s(`Creating`,async()=>c.analytics.query.topN({...e,account_id:m,dataset:r.dataset}));a(t,{successLabel:`Created`});return}if(r.filters===void 0)throw Error(`--filters is required (or pass --body with this field set).`);if(r.from===void 0&&(r.from=await p(`from`,"The start of the query time range (inclusive). RFC3339 format with timezone is required (e.g. `2024-11-05T00:00:00Z`).")),r[`group-by`]===void 0)throw Error(`--group-by is required (or pass --body with this field set).`);if(r.stats===void 0)throw Error(`--stats is required (or pass --body with this field set).`);if(r.to===void 0&&(r.to=await p(`to`,`Specifies the end of the query time range (exclusive). Requires RFC3339 format with timezone.`)),r.limit===void 0)throw Error(`--limit is required (or pass --body with this field set).`);r[`order-by`]===void 0&&(r[`order-by`]=await p(`order-by`,`Specifies the stat name for sorting results in descending order. Requires a valid stat for the target dataset.`));let h=d({filters:u(r.filters,`filters`),from:f(r.from,`from`,`text`),groupBy:r[`group-by`],stats:r.stats,to:f(r.to,`to`,`text`),n:r.limit,orderBy:f(r[`order-by`],`order-by`,`text`)}),g=await s(`Creating`,async()=>c.analytics.query.topN({...h,account_id:m,dataset:r.dataset}));a(g,{successLabel:`Created`})})},F={command:`query`,describe:`Operations for query`,builder:e=>e.command(A).command(M).command(P).command(O).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},I={command:`analytics`,describe:`Zone-level traffic analytics — dashboard summaries, per-colo breakdowns, and Argo latency metrics`,builder:e=>e.command(y).command(F).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};export{I as default};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import{t as e}from"./local-
|
|
2
|
+
import{t as e}from"./local-BcPM4I0s.mjs";import{i as t,n}from"./auth-CAWalgW0.mjs";import{a as r,t as i}from"./context-BBLtgdR1.mjs";import{t as a}from"./output-BOe-3AQG.mjs";import{t as o}from"./dry-run-DRj2_uV3.mjs";import{t as s}from"./progress-CQqDtgmF.mjs";import{t as c}from"./run-CW2Cgi0S.mjs";import"./telemetry-0Y5hAtCX.mjs";import{n as l,t as u}from"./input-validation-D7z60HJH.mjs";function d(e){return e.usage(`$0 analytics_engine sql query
|
|
3
3
|
|
|
4
4
|
Executes a SQL query against Workers Analytics Engine data. Pass the SQL query in the request body as plain text. The response uses newline-delimited JSON (NDJSON) by default, or a single JSON object when the query includes a FORMAT JSON clause. Prefer this method for longer queries that may exceed URL length limits.`).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`})}const f={command:`query`,describe:`Execute an Analytics Engine SQL query via request body`,builder:d,handler:async d=>c({command:`analytics_engine sql query`,classification:{safeFlags:[`dry-run`]}},d,async()=>{if(d.dryRun){let e=await r();o({command:`cf analytics_engine sql query`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}/analytics_engine/sql`,pathParams:{},bodyKind:`octet-stream`,body:d.body});return}let c=await n(d),f=d.local?e:await i();if(d.accountId=f,d.file){let e=u(d.file),n=await s(`Loading`,async()=>t(c,`POST`,`/accounts/${f}/analytics_engine/sql`,{body:e,headers:{"Content-Type":`text/plain`}}));a(n,{successLabel:`Loaded`});return}if(d.body){let e=l(d.body,`body`,`binary`),n=await s(`Loading`,async()=>t(c,`POST`,`/accounts/${f}/analytics_engine/sql`,{body:e,headers:{"Content-Type":`text/plain`}}));a(n,{successLabel:`Loaded`});return}let p=await s(`Loading`,async()=>c.analyticsEngine.sql.query({account_id:f}));a(p,{successLabel:`Loaded`})})},p={command:`sql`,describe:`Operations for sql`,builder:e=>e.command(f).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},m={command:`analytics_engine`,describe:`analytics_engine`,builder:e=>e.command(p).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};export{m as default};
|