cf 1.0.0-beta.1 → 1.0.0-beta.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +12 -0
- package/dist/_meta/commands.json +11448 -13819
- package/dist/_meta/hand-written-commands.json +579 -41
- package/dist/_meta/schemas.json +14496 -16450
- package/dist/abuse-reports-BhSTEz7h.mjs +24 -0
- package/dist/access-D4DN4XZF.mjs +2 -0
- package/dist/{account-tags-DAf-hq1m.mjs → account-tags-BWEIZLID.mjs} +5 -5
- package/dist/{accounts-BDIKjiG2.mjs → accounts-ZQvIqGJz.mjs} +66 -60
- package/dist/{acm-D-q1FVWJ.mjs → acm-OQqE8FMc.mjs} +3 -3
- package/dist/{addressing-0w2U1NEy.mjs → addressing-DCFm17JQ.mjs} +50 -50
- package/dist/agent-context-GRiQ4zRU.mjs +2 -0
- package/dist/{agent-memory-Drumm4qd.mjs → agent-memory-BtfPt2me.mjs} +15 -15
- package/dist/ai-B0_sZbmy.mjs +29 -0
- package/dist/{ai-audit-CPrmohqf.mjs → ai-audit-DaubuhYF.mjs} +1 -1
- package/dist/ai-gateway-CJ-1Dzzr.mjs +82 -0
- package/dist/{ai-search-B5l4IDSR.mjs → ai-search-Dywa1kqX.mjs} +37 -37
- package/dist/{ai-security-C7_IGDDl.mjs → ai-security-2wxMPqKS.mjs} +1 -1
- package/dist/{alerting-B6m1Rhf4.mjs → alerting-yad9DYRv.mjs} +26 -26
- package/dist/analytics-DKNw2fVc.mjs +20 -0
- package/dist/{analytics_engine-BvjKCwn1.mjs → analytics_engine-BA3kF46s.mjs} +2 -2
- package/dist/{api-security-B9IozS2a.mjs → api-security-CSuYMpMO.mjs} +61 -61
- package/dist/{argo-C_QcqR6P.mjs → argo-DMfNmOV4.mjs} +1 -1
- package/dist/args-CXgkQKK7.mjs +2 -0
- package/dist/{artifacts-DDFNpYBz.mjs → artifacts-Cb3hwClm.mjs} +20 -20
- package/dist/{audit-logs-cTzNV0DV.mjs → audit-logs-BrjNuiLx.mjs} +2 -2
- package/dist/auth-BBlAI8HG.mjs +2 -0
- package/dist/auth-BIr56Mbx.mjs +8 -0
- package/dist/autoconfig-DPUztTL2.mjs +511 -0
- package/dist/banner-ClclgnBn.mjs +2 -0
- package/dist/basin-catalog-BLsQhJP4.mjs +46 -0
- package/dist/{billing-DU2X-q-x.mjs → billing-CRwD7oQS.mjs} +10 -10
- package/dist/{bot-management-BHAAoZOh.mjs → bot-management-CyW8F8Wm.mjs} +1 -1
- package/dist/{botnet-feed-DOOnGVVY.mjs → botnet-feed-BBKsxf3Y.mjs} +5 -5
- package/dist/{brand-protection-C_DYa7IK.mjs → brand-protection-DSeD8LXl.mjs} +13 -13
- package/dist/browser-extension-C1zmKFDG.mjs +2 -0
- package/dist/{browser-run-Dw-vgWGR.mjs → browser-run-BAcUTwB4.mjs} +23 -23
- package/dist/build-B5UYMEQH.mjs +2 -0
- package/dist/build-DLZ9gBNA.mjs +2 -0
- package/dist/{builds-CO0MmSd3.mjs → builds-W1HEG7Bv.mjs} +31 -31
- package/dist/{cache-XxusQxXe.mjs → cache-B7E_PXUp.mjs} +27 -27
- package/dist/{certificate-authorities-Dmxh7w-Z.mjs → certificate-authorities-D_uAJH9B.mjs} +1 -1
- package/dist/cf-Bh_fTFIj.mjs +18 -0
- package/dist/chunk-FT2NMTJB-1VFYM1Ro.mjs +97 -0
- package/dist/chunk-KKDV4JPS-DdzLLtnl.mjs +2 -0
- package/dist/chunk-U6NEESU5-BhF4rnpx.mjs +2 -0
- package/dist/chunk-WMOON6TZ-D_ToS88f.mjs +2 -0
- package/dist/cli-BeXSqJAj.mjs +6 -0
- package/dist/cli-exit-Dqoo6Jgb.mjs +2 -0
- package/dist/client-certificates-DqFcK_s1.mjs +13 -0
- package/dist/{client-side-security-D7NWV0YH.mjs → client-side-security-DJXZ1XAu.mjs} +1 -1
- package/dist/{cloud-connector-XMFOTNqT.mjs → cloud-connector-Czg1GdQi.mjs} +1 -1
- package/dist/{cloudflared-DhItYrCq.mjs → cloudflared-DGuau-lC.mjs} +1 -1
- package/dist/{cloudforce-one-Cew4MHvA.mjs → cloudforce-one-B1IhIZcp.mjs} +213 -222
- package/dist/command-6YTtWltE.mjs +2 -0
- package/dist/command-B6DqnUwt.mjs +2 -0
- package/dist/command-BCag-xjk.mjs +2 -0
- package/dist/command-BOLlvEan.mjs +2 -0
- package/dist/command-BrHTpaji.mjs +2 -0
- package/dist/command-CAtsHc1V.mjs +2 -0
- package/dist/command-C__qB2mo.mjs +2 -0
- package/dist/command-DUafPVUr.mjs +2 -0
- package/dist/command-DZookrfw.mjs +2 -0
- package/dist/command-DfffeX-k.mjs +2 -0
- package/dist/command-DxSJy_ym.mjs +2 -0
- package/dist/command-DzHL5LKI.mjs +2 -0
- package/dist/command-K1-DZFJS.mjs +2 -0
- package/dist/command-TCklVvOY.mjs +2 -0
- package/dist/command-xU78ACNA.mjs +2 -0
- package/dist/{completions-xPLd1cvL.mjs → completions-Cm9brGAI.mjs} +26 -26
- package/dist/{connector-interrupts-BfQN_pm6.mjs → connector-interrupts-D93KTMkw.mjs} +3 -3
- package/dist/{connector-telemetry-events-B7qLZsZJ.mjs → connector-telemetry-events-D6CmKR14.mjs} +3 -3
- package/dist/{connector-telemetry-snapshots-Ckvg9BPc.mjs → connector-telemetry-snapshots-WO9IUk0e.mjs} +3 -3
- package/dist/{connectors-BhvAP5fb.mjs → connectors-DNT6GTW3.mjs} +7 -7
- package/dist/{containers-Bl3EY-cy.mjs → containers-Btx7vCDP.mjs} +17 -17
- package/dist/{containers-Cq1gtnq6.mjs → containers-Ce7IO-Ia.mjs} +70 -72
- package/dist/{content-scan-BYGe9fFj.mjs → content-scan-C_ROsbTJ.mjs} +1 -1
- package/dist/context-CEOHpZgd.mjs +7 -0
- package/dist/{cps-BWMDWeVq.mjs → cps-BPQqyL2E.mjs} +1 -1
- package/dist/{csamScanner-DMYGzLNi.mjs → csamScanner-D-oO5cxT.mjs} +1 -1
- package/dist/{ct-alerting-Vq4l2s7n.mjs → ct-alerting-CnTRE1Fb.mjs} +1 -1
- package/dist/{custom-certificates-BDEHH0Ym.mjs → custom-certificates-DvnFBZdJ.mjs} +4 -4
- package/dist/{custom-csrs-CHSkZNdX.mjs → custom-csrs-BZ8TXbuQ.mjs} +5 -5
- package/dist/{custom-hostnames-Bch3iQZC.mjs → custom-hostnames-CTqf-KlT.mjs} +6 -6
- package/dist/{custom-nameservers-Tdvu1-vr.mjs → custom-nameservers-B0CpnUVg.mjs} +5 -5
- package/dist/{custom-pages-rFsiIXlr.mjs → custom-pages-DcoSGN56.mjs} +10 -10
- package/dist/{d1-C1GK7DsW.mjs → d1-m7UfzBzl.mjs} +16 -20
- package/dist/{dcv-delegation-D6xiYj2l.mjs → dcv-delegation-yOtz90qE.mjs} +1 -1
- package/dist/{delegate-GctF_lrq.mjs → delegate-B6LetRpZ.mjs} +1 -1
- package/dist/delegate.mjs +1 -1
- package/dist/{deploy-D04Xvm0m.mjs → deploy-C4p6SzLH.mjs} +1 -1
- package/dist/{deploy-input-COEKxOA1.mjs → deploy-input-DTjBGloL.mjs} +1 -1
- package/dist/dev-BML-bpNU.mjs +4 -0
- package/dist/{diagnostics-BZVAAguV.mjs → diagnostics-hOvnx5DT.mjs} +7 -7
- package/dist/dialog-BlUXJKbA.mjs +2 -0
- package/dist/discover-C5aiI6u0.mjs +2 -0
- package/dist/discover-DwczTkRX.mjs +2 -0
- package/dist/dist-BuCJ_55d.mjs +366 -0
- package/dist/dist-C3s9SXTd.mjs +48 -0
- package/dist/{dist-BpadEMNY.mjs → dist-DW47TUGh.mjs} +35 -35
- package/dist/{dls-BsnURYja.mjs → dls-v6DyEWTd.mjs} +8 -8
- package/dist/{dns-B_nTXhuM.mjs → dns-C9sUPsNt.mjs} +72 -63
- package/dist/{dns-firewall-DDsrdulo.mjs → dns-firewall-EDiT-Zli.mjs} +8 -8
- package/dist/dot-prop-IITUZ2XW-BilKo4kO.mjs +2 -0
- package/dist/dotenv-CcQjGlV0.mjs +4 -0
- package/dist/dry-run-Bq0JAsbX.mjs +2 -0
- package/dist/durable-objects-C01phVwL.mjs +6 -0
- package/dist/{email-auth-CzjtGH6g.mjs → email-auth-BgvoEHJk.mjs} +1 -1
- package/dist/{email-routing-B92fty1-.mjs → email-routing-Bggn219w.mjs} +24 -24
- package/dist/email-security-_t7rzrzd.mjs +158 -0
- package/dist/{email-sending-B7f95epu.mjs → email-sending-_dKCs2VF.mjs} +23 -23
- package/dist/error-sanitization-CJ5OLJrh.mjs +2 -0
- package/dist/error-sanitization-hmi1CqE5.mjs +2 -0
- package/dist/{fieldExtractors-DL_H1m7E.mjs → fieldExtractors-Cm5QnkE0.mjs} +4 -4
- package/dist/firewall-CZEN8iA_.mjs +36 -0
- package/dist/flagship-B_SAI_ZL.mjs +28 -0
- package/dist/{fraud-DU_YCLC5.mjs → fraud-9_9hobAh.mjs} +1 -1
- package/dist/generate-BPqoDbck.mjs +2 -0
- package/dist/generate-CLqGOlOx.mjs +3 -0
- package/dist/{google-tag-gateway-xqN-QudN.mjs → google-tag-gateway-O_N0vHRY.mjs} +1 -1
- package/dist/gt-DmcMNPX6.mjs +2 -0
- package/dist/{healthchecks-COnq1YOx.mjs → healthchecks-Bt3Gw_JZ.mjs} +1 -1
- package/dist/{hostnames-CxRAY_Pp.mjs → hostnames-DdOube3R.mjs} +1 -1
- package/dist/hyperdrive-C14NAh9l.mjs +37 -0
- package/dist/{iam-CtX9NPCy.mjs → iam-DUW7neMx.mjs} +24 -24
- package/dist/{images-CuWFOsGw.mjs → images-B9dnr1z0.mjs} +38 -38
- package/dist/index.mjs +1 -1
- package/dist/init-BGcAIvV7.mjs +39 -0
- package/dist/{intel-BeGV3VXt.mjs → intel-BQpZMck3.mjs} +38 -38
- package/dist/interactive-C-o16XQs.mjs +32 -0
- package/dist/interactive-SgAjen2z.mjs +2 -0
- package/dist/{ips-d6aoKAI4.mjs → ips-PT_uQKAf.mjs} +1 -1
- package/dist/k2-nPYti7Y0.mjs +13 -0
- package/dist/keyless-certificates-BHvas2q1.mjs +13 -0
- package/dist/{keys-Fyf3vWcA.mjs → keys-O5kAW9ox.mjs} +2 -2
- package/dist/kv-BUP_ZLM_.mjs +15 -0
- package/dist/lazy-command-glNW3jzf.mjs +2 -0
- package/dist/{leaked-credential-checks-B7ewx3W-.mjs → leaked-credential-checks-De9hI1rl.mjs} +1 -1
- package/dist/{load-balancers-DHD4f2CT.mjs → load-balancers-Cs6bUHS1.mjs} +39 -39
- package/dist/{local-B6b2OIBW.mjs → local-B5oRPTEN.mjs} +1 -1
- package/dist/local-Bj-l0TP6.mjs +2 -0
- package/dist/{local-runtime-DD8DAIlm.mjs → local-runtime-CZnegFEM.mjs} +1 -1
- package/dist/login-C5nSIS-T.mjs +2 -0
- package/dist/login-CUup7w0e.mjs +5 -0
- package/dist/{logo-matches-BAX8v3iL.mjs → logo-matches-BkQKdu4Z.mjs} +3 -3
- package/dist/{logos-BWBVGwU6.mjs → logos-C_sv-boo.mjs} +3 -3
- package/dist/{logpush-CZKR8DHO.mjs → logpush-NUcyMKHi.mjs} +23 -23
- package/dist/logs-BZT4PlqZ.mjs +36 -0
- package/dist/{magic-cloud-networking-DttrBXqd.mjs → magic-cloud-networking-DQnSdmgA.mjs} +34 -34
- package/dist/{magic-network-monitoring-9VXDSYuL.mjs → magic-network-monitoring-pHTU6aS8.mjs} +17 -17
- package/dist/{magic-transit-Dsu_cSGM.mjs → magic-transit-5302bQNh.mjs} +154 -158
- package/dist/{managed-defense-SYreve4W.mjs → managed-defense-8OEfDzuO.mjs} +9 -9
- package/dist/{managed-transforms-CzSy_xPw.mjs → managed-transforms-CCpUz4TY.mjs} +1 -1
- package/dist/{matches-qf7GReyu.mjs → matches-BSiYXs99.mjs} +3 -3
- package/dist/{mcp-DYSk5_gc.mjs → mcp-CCMiS75R.mjs} +15 -15
- package/dist/{mesh-DdY07OYt.mjs → mesh-DKBGTlCD.mjs} +12 -12
- package/dist/migrate-BJ9Go_wP.mjs +2 -0
- package/dist/monetization-CFf_lb6x.mjs +20 -0
- package/dist/mtls-certificates-DsF3NFNs.mjs +13 -0
- package/dist/{network-DpaZ5LJL.mjs → network-Bm0qYRqY.mjs} +24 -24
- package/dist/{network-interconnects-C4uUoeNa.mjs → network-interconnects-YiRUBbjx.mjs} +17 -17
- package/dist/{oauth-nsTDJ0dF.mjs → oauth-DxGgIwFc.mjs} +1 -1
- package/dist/oauth-cNZUky3h.mjs +9 -0
- package/dist/{oauth-clients-D7Ou7oAS.mjs → oauth-clients-CP6alY0_.mjs} +7 -7
- package/dist/{oauth-scopes-BFoE82Mv.mjs → oauth-scopes-xl-pcWdg.mjs} +1 -1
- package/dist/{observability-smcOFbC1.mjs → observability-Bp71PtlD.mjs} +44 -44
- package/dist/open-PCXX3ZDZ-BKRik1gi.mjs +4 -0
- package/dist/{organization-Dyf_0mq4.mjs → organization-Dbom1gTR.mjs} +7 -7
- package/dist/{organizations-D7zGPLVm.mjs → organizations-OUMVsuen.mjs} +1 -1
- package/dist/{origin-ca-certificates-DJrp29gv.mjs → origin-ca-certificates-B3-T0-Nn.mjs} +3 -3
- package/dist/{origin-post-quantum-encryption-BYj3kJiq.mjs → origin-post-quantum-encryption-CGB6AfPa.mjs} +1 -1
- package/dist/{origin-tls-client-auth-j0tGh6Fy.mjs → origin-tls-client-auth-CgzzfAWr.mjs} +5 -5
- package/dist/output-CvQFJkvi.mjs +2 -0
- package/dist/{page-rules-CLzba_nr.mjs → page-rules-B9BQKU4_.mjs} +1 -1
- package/dist/pages-DZPdyuT4.mjs +54 -0
- package/dist/{pay-per-crawl-DbaTVI8V.mjs → pay-per-crawl-CnveMVDi.mjs} +32 -32
- package/dist/{pay-per-use-BEvtoppJ.mjs → pay-per-use-Bpxe8PHv.mjs} +3 -3
- package/dist/{pipelines-lps71uoA.mjs → pipelines-CHev3o5G.mjs} +20 -20
- package/dist/precursor-C9PK9Bue.mjs +4 -0
- package/dist/previews-BIMI1dTz.mjs +4 -0
- package/dist/progress-A61dRbXl.mjs +2 -0
- package/dist/prompt-CGUzvBgY.mjs +3 -0
- package/dist/{queries-EJYlFw8m.mjs → queries-f-btyefs.mjs} +4 -4
- package/dist/{queues-CozKGaA4.mjs → queues-kLNdeb3q.mjs} +29 -35
- package/dist/r2-D_awYx2p.mjs +125 -0
- package/dist/r2-data-catalog-2jQrdAdo.mjs +2 -0
- package/dist/{radar-NmpdyMo5.mjs → radar-CU4T02Ag.mjs} +1 -1
- package/dist/raw-fetch-CvkmFO23.mjs +2 -0
- package/dist/{realtime-iWTz8WbH.mjs → realtime-C0dvcBBM.mjs} +78 -78
- package/dist/{registrar-Cza1L8i_.mjs → registrar-CHc-4vcf.mjs} +8 -8
- package/dist/{registrar-sandbox-BP4GQg5s.mjs → registrar-sandbox-Dq8LV2AI.mjs} +6 -6
- package/dist/{registry-vreNkX6u.mjs → registry-Cg5lP8oo.mjs} +1 -1
- package/dist/{reporting-gvXX2MxY.mjs → reporting-4u21g6Dk.mjs} +7 -7
- package/dist/request-headers-D31kdxrQ.mjs +2 -0
- package/dist/{request-tracers-F8a_aj32.mjs → request-tracers-CupJ_83j.mjs} +2 -2
- package/dist/resolve-PZuJ878-.mjs +2 -0
- package/dist/{resource-sharing-D6XWIDmb.mjs → resource-sharing-CO-Lh-u7.mjs} +14 -14
- package/dist/{resource-tagging-c_z4VZt0.mjs → resource-tagging-D0R5SzR6.mjs} +2 -2
- package/dist/{rules-_QDaG3U5.mjs → rules-BsmKzB9H.mjs} +8 -8
- package/dist/{rulesets-Bc4ZuPG_.mjs → rulesets-HOOnxHZZ.mjs} +20 -20
- package/dist/{rum-ChPyfpM2.mjs → rum-wcLEvVJl.mjs} +14 -14
- package/dist/run-CIJTelJL.mjs +2 -0
- package/dist/run-quhbAvQi.mjs +2 -0
- package/dist/schema-GdBsV4P7.mjs +2 -0
- package/dist/{schema-flags-C9lbLgE-.mjs → schema-flags-D8vL2oiF.mjs} +2 -2
- package/dist/{scim-BjiswXbC.mjs → scim-BkdJmAS8.mjs} +10 -10
- package/dist/{sdk-CsWOex96.mjs → sdk-BCzcRJCi.mjs} +2 -2
- package/dist/{secrets-store-Cn3D5a0d.mjs → secrets-store-CHs0oYA0.mjs} +11 -11
- package/dist/security-insights-vsl-4xFa.mjs +40 -0
- package/dist/{security-txt-CaR5Idmz.mjs → security-txt-Fnl3LdSn.mjs} +1 -1
- package/dist/session-CZTuHcbm.mjs +2 -0
- package/dist/shared-BS30oCf8.mjs +2 -0
- package/dist/{smart-shield-CphSzoh4.mjs → smart-shield-DB0E7cZI.mjs} +1 -1
- package/dist/{snippets-r-Mre0cE.mjs → snippets-CFaF_NyG.mjs} +1 -1
- package/dist/source-38bULAR8.mjs +6 -0
- package/dist/spawn-B0Sl8lUu.mjs +10 -0
- package/dist/{spectrum-BhjCVFZk.mjs → spectrum-DtG0jYjE.mjs} +1 -1
- package/dist/{speed-CPgypY7n.mjs → speed-B-RiNHGK.mjs} +1 -1
- package/dist/src-CM3XaB4p.mjs +109 -0
- package/dist/{ssl-DsMrXyqK.mjs → ssl-DBVpCZAM.mjs} +4 -4
- package/dist/startup-profile-CLmojOrn.mjs +2 -0
- package/dist/startup-profile-CR7GMuLx.mjs +17 -0
- package/dist/{state-BxCejn42.mjs → state-BaGRaYow.mjs} +1 -1
- package/dist/state-CpXhcMdX.mjs +2 -0
- package/dist/{stream-L2NmGPby.mjs → stream-cAdBvpS1.mjs} +45 -45
- package/dist/{submit-KN0Ul5fV.mjs → submit-Bkd7l2rK.mjs} +2 -2
- package/dist/{tags-CZMFKGdP.mjs → tags--eph7JbN.mjs} +2 -2
- package/dist/telemetry-51etasAu.mjs +2 -0
- package/dist/telemetry-Q3_UmwHj.mjs +2 -0
- package/dist/tenant-Bj-He2xO.mjs +10 -0
- package/dist/{tenant-custom-nameservers-Nx59Buv0.mjs → tenant-custom-nameservers-B5IIIwbz.mjs} +1 -1
- package/dist/{theme-BiIYWOed.mjs → theme-BIWQFmZ0.mjs} +2 -2
- package/dist/tools-BJZ0DDlL.mjs +2 -0
- package/dist/{tunnels-C-mMZy4v.mjs → tunnels-CgtuRpcD.mjs} +15 -15
- package/dist/turnstile-Bmcnrzw7.mjs +33 -0
- package/dist/ui-BQxRjahW.mjs +5 -0
- package/dist/update-check-BqSpgzHk.mjs +2 -0
- package/dist/update-check-DC0qP_8z.mjs +2 -0
- package/dist/update-check-worker.mjs +1 -1
- package/dist/{url-info-7ikewAnp.mjs → url-info-DhVehaT8.mjs} +2 -2
- package/dist/{url-normalization-B0D7Fhf3.mjs → url-normalization-BpGDUUQc.mjs} +1 -1
- package/dist/{url-scanner-DpKIqkin.mjs → url-scanner-DiLdqsQk.mjs} +8 -8
- package/dist/{user-BFq8UM1s.mjs → user-B6P5_OjP.mjs} +1 -1
- package/dist/{values-DnBYV1ZD.mjs → values-Cxx4Lxrd.mjs} +2 -2
- package/dist/{vectorize-BpZ4UsUj.mjs → vectorize-YyxVpql-.mjs} +15 -15
- package/dist/version-C0pInAZ9.mjs +2 -0
- package/dist/{waiting-rooms-DJfqehy9.mjs → waiting-rooms-BdahlCdD.mjs} +25 -25
- package/dist/{web-assets-CCSSW_JH.mjs → web-assets-yaKxN4w_.mjs} +1 -1
- package/dist/{web3-bbT1REPc.mjs → web3-Bu9c_QAt.mjs} +1 -1
- package/dist/workers-5GgoGA2e.mjs +38 -0
- package/dist/{workers-builds-TRF3K416.mjs → workers-builds-h-1FJjE1.mjs} +7 -7
- package/dist/workers-for-platforms-CV9iRrp9.mjs +42 -0
- package/dist/{workers-vpc-kgryQ48l.mjs → workers-vpc-C1oUHHqk.mjs} +6 -6
- package/dist/{workflows-CKdPlIkK.mjs → workflows-dtMlkj1-.mjs} +20 -20
- package/dist/wrangler-migration-CJEb9hY3.mjs +2 -0
- package/dist/{zaraz-BXFlEWSx.mjs → zaraz-838AbMEX.mjs} +1 -1
- package/dist/{zero-trust-M08mBsYd.mjs → zero-trust-CYt-eELJ.mjs} +460 -434
- package/dist/{zone-DHmrotGW.mjs → zone-uJwRLSnn.mjs} +1 -1
- package/dist/{zones-C0eKBTqG.mjs → zones-Dpofsnth.mjs} +1 -1
- package/package.json +15 -12
- package/dist/abuse-reports-Dd6kJM7r.mjs +0 -26
- package/dist/access-C_2rEi0H.mjs +0 -27
- package/dist/account-CZ9SPVdz.mjs +0 -12
- package/dist/ai-ARwLeQ1O.mjs +0 -31
- package/dist/ai-gateway-DNY4FPF2.mjs +0 -147
- package/dist/analytics-nnzFBB_7.mjs +0 -21
- package/dist/auth-DJhSjNNL.mjs +0 -8
- package/dist/auth-sAorfdWU.mjs +0 -2
- package/dist/browser-extension-C48pKh3t.mjs +0 -15
- package/dist/build-1a8CiNIT.mjs +0 -2
- package/dist/build-Ca_drQY2.mjs +0 -2
- package/dist/cf-oadujOtC.mjs +0 -18
- package/dist/chunk-6EUZQHAF-QVTL_mC-.mjs +0 -2
- package/dist/chunk-DL5FNmn1.mjs +0 -2
- package/dist/chunk-Q72B4Q5Z-Cr1H_iK6.mjs +0 -2
- package/dist/chunk-Q72B4Q5Z-DKhx_4ok.mjs +0 -2
- package/dist/chunk-QBZBEHZB-Byagrlop.mjs +0 -2
- package/dist/chunk-XLADBZ7F-BXKOjWbx.mjs +0 -374
- package/dist/client-certificates-CgaIc3zN.mjs +0 -13
- package/dist/command-CF0giIIc.mjs +0 -3
- package/dist/command-CsZFRm3P.mjs +0 -2
- package/dist/command-DBz8QiFk.mjs +0 -2
- package/dist/command-RiZ_LYcm.mjs +0 -2
- package/dist/config-B4vIa0zp.mjs +0 -2
- package/dist/data-security-DDhPnX8Z.mjs +0 -71
- package/dist/dev-CVD3BVUG.mjs +0 -4
- package/dist/dialog--iw0F2s-.mjs +0 -2
- package/dist/dist-CUUGKvjh.mjs +0 -48
- package/dist/dist-dc4E1u01.mjs +0 -272
- package/dist/dot-prop-6SRZBKHT-Dj7YOlwR.mjs +0 -2
- package/dist/dry-run-CLX6Pbtq.mjs +0 -2
- package/dist/durable-objects-8U8DpF9q.mjs +0 -8
- package/dist/email-security-keTqF0nJ.mjs +0 -160
- package/dist/error-sanitization-Cbd_oegl.mjs +0 -2
- package/dist/error-sanitization-DwOlM3R7.mjs +0 -2
- package/dist/firewall-67qoXiqD.mjs +0 -56
- package/dist/flagship-CjC3dF7L.mjs +0 -28
- package/dist/hyperdrive-DPWyiXpj.mjs +0 -37
- package/dist/interactive-B6woOLo-.mjs +0 -32
- package/dist/interactive-DnUvQHjc.mjs +0 -2
- package/dist/keyless-certificates-Dvib4jhw.mjs +0 -13
- package/dist/kv-CA4J7cCq.mjs +0 -21
- package/dist/local-BrfySqnx.mjs +0 -2
- package/dist/login-CLW108XX.mjs +0 -5
- package/dist/login-xgRjiyJa.mjs +0 -2
- package/dist/logs-CiDyrqEu.mjs +0 -48
- package/dist/mtls-certificates-LXlgdkf1.mjs +0 -13
- package/dist/oauth-Dzk6Gy-6.mjs +0 -14
- package/dist/open-PBXRGS4R-C4CKEADM.mjs +0 -4
- package/dist/open-PBXRGS4R-C_-G_4DC.mjs +0 -4
- package/dist/output-Bia1u2k5.mjs +0 -2
- package/dist/pages-pah6dZBJ.mjs +0 -60
- package/dist/precursor-DTTYLDEa.mjs +0 -4
- package/dist/previews-B89cUmpr.mjs +0 -4
- package/dist/progress-D_mL-Kcy.mjs +0 -2
- package/dist/prompt-sL_yMZbI.mjs +0 -3
- package/dist/r2-Chn_JQUM.mjs +0 -127
- package/dist/r2-data-catalog-Bfn3AWzn.mjs +0 -44
- package/dist/raw-fetch-lSVttVJF.mjs +0 -2
- package/dist/request-headers-POBKmu93.mjs +0 -2
- package/dist/resolve-BXemCSyA.mjs +0 -2
- package/dist/run-DtN51G2A.mjs +0 -2
- package/dist/run-oACgYK8I.mjs +0 -2
- package/dist/schema-DZSSJaY0.mjs +0 -2
- package/dist/security-center-DP4GC1cG.mjs +0 -30
- package/dist/shared-W9uoX1-W.mjs +0 -2
- package/dist/source-BR4_k2ad.mjs +0 -6
- package/dist/spawn-BWEuIO-w.mjs +0 -523
- package/dist/src-Hw-TlVAO.mjs +0 -108
- package/dist/startup-profile-CYEokTVe.mjs +0 -2
- package/dist/startup-profile-CgWHy4rE.mjs +0 -17
- package/dist/state-DSzkxXML.mjs +0 -2
- package/dist/telemetry-CSj_ezpk.mjs +0 -2
- package/dist/telemetry-DAf9gLyH.mjs +0 -2
- package/dist/telemetry-Dk1GcQ0u.mjs +0 -5
- package/dist/tenant-Cu4P-foo.mjs +0 -12
- package/dist/tools-BMKpYraQ.mjs +0 -2
- package/dist/turnstile-39JL9tMt.mjs +0 -33
- package/dist/ui-DH95w1Qk.mjs +0 -5
- package/dist/undici-DTSBJHNS.mjs +0 -96
- package/dist/update-check-BKQBD4MQ.mjs +0 -2
- package/dist/update-check-CE9XB6gf.mjs +0 -2
- package/dist/version-Bh3b9vTa.mjs +0 -2
- package/dist/workers-CXuyjZB8.mjs +0 -36
- package/dist/workers-for-platforms-B57iKiSN.mjs +0 -25
- /package/dist/{Page-C-JHZnIy.mjs → Page-CjJht2qT.mjs} +0 -0
- /package/dist/{alerts-CstOk8n0.mjs → alerts-DY_7Nknx.mjs} +0 -0
- /package/dist/{autorag-PRTwXGgn.mjs → autorag-K396-M2S.mjs} +0 -0
- /package/dist/{body-parser-CUWbw_Tq.mjs → body-parser-hh2avzkz.mjs} +0 -0
- /package/dist/{brands-BHRXlWDm.mjs → brands-DeLbFxSt.mjs} +0 -0
- /package/dist/{clear-UvKESVx3.mjs → clear-CRfI7WS7.mjs} +0 -0
- /package/dist/{cli-types-tt_LZMbn.mjs → cli-types-DoVT5q_M.mjs} +0 -0
- /package/dist/{connector-telemetry-events-latest-DwnFeZg0.mjs → connector-telemetry-events-latest-D8p_dR8s.mjs} +0 -0
- /package/dist/{connector-telemetry-snapshots-latest-Dv6rZlxs.mjs → connector-telemetry-snapshots-latest-COFmzmlk.mjs} +0 -0
- /package/dist/{domain-info-BqTDXNBo.mjs → domain-info-aiwP60Fo.mjs} +0 -0
- /package/dist/{health-CwPzzrV6.mjs → health-Bz33n-_F.mjs} +0 -0
- /package/dist/{input-validation-Ch4Vllrm.mjs → input-validation-Dk52b0me.mjs} +0 -0
- /package/dist/{internal-WLHfxX64.mjs → internal-BHrJbbdA.mjs} +0 -0
- /package/dist/{lifecycle-Ichnb2x1.mjs → lifecycle-C7tAC1Mn.mjs} +0 -0
- /package/dist/{live-D_k7eHdv.mjs → live-MeJQXIei.mjs} +0 -0
- /package/dist/{metadata-APBiectA.mjs → metadata-C33s4rc-.mjs} +0 -0
- /package/dist/{project-settings-DSXevRvj.mjs → project-settings-DO6njFg_.mjs} +0 -0
- /package/dist/{rate-limit-analytics-CDTPxSET.mjs → rate-limit-analytics-CU55zqCU.mjs} +0 -0
- /package/dist/{rate-limits-C3K9smdl.mjs → rate-limits-CZ-qHDPK.mjs} +0 -0
- /package/dist/{ready-CvwvbdTX.mjs → ready-BOpbZ1pN.mjs} +0 -0
- /package/dist/{recent-submissions-CjzcT-iH.mjs → recent-submissions-KDqD2HyS.mjs} +0 -0
- /package/dist/{refute-CIAFMj00.mjs → refute-DkF4XIMw.mjs} +0 -0
- /package/dist/{resolve-CUDKxUrW.mjs → resolve-BCTrtcx7.mjs} +0 -0
- /package/dist/{scan-logo-zFkphtQ3.mjs → scan-logo-DQkf6glG.mjs} +0 -0
- /package/dist/{scan-page-CLl2MAkZ.mjs → scan-page-CMOJ_E0n.mjs} +0 -0
- /package/dist/{search-12jA1b4l.mjs → search-Bre1Zwn3.mjs} +0 -0
- /package/dist/{signed-url-U0T_PEMR.mjs → signed-url-24ZbX4yV.mjs} +0 -0
- /package/dist/{submission-info-CZ84a3Nb.mjs → submission-info-BmkbZVqM.mjs} +0 -0
- /package/dist/{total-queries-CJTc9Pde.mjs → total-queries-j8OAF_cE.mjs} +0 -0
- /package/dist/{tracked-domains-BKLxnnSv.mjs → tracked-domains-fe3EWYmF.mjs} +0 -0
- /package/dist/{verify-CZW5Fo1q.mjs → verify-CKgZYvln.mjs} +0 -0
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
import{_ as e}from"./oauth-Dzk6Gy-6.mjs";import{r as t}from"./auth-DJhSjNNL.mjs";import{t as n}from"./output-Bia1u2k5.mjs";import{t as r}from"./dry-run-CLX6Pbtq.mjs";import{t as i}from"./progress-D_mL-Kcy.mjs";import{t as a}from"./run-DtN51G2A.mjs";import"./telemetry-DAf9gLyH.mjs";import{n as o,t as s}from"./body-parser-CUWbw_Tq.mjs";import{n as c}from"./input-validation-Ch4Vllrm.mjs";import{a as l,n as u}from"./prompt-sL_yMZbI.mjs";import{t as d}from"./cli-types-tt_LZMbn.mjs";function f(e){return e.usage(`$0 client-certificates create
|
|
3
|
-
|
|
4
|
-
Create a new API Shield mTLS Client Certificate.`).option(`csr`,{type:`string`,description:`The Certificate Signing Request (CSR). Must be newline-encoded.`}).option(`validity-days`,{type:`number`,description:`The number of days the Client Certificate will be valid after the issued_on date.`}).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 p={command:`create`,describe:`Create Client Certificate`,builder:f,handler:async u=>a({command:`client-certificates create`,classification:{safeFlags:[`dry-run`]}},u,async()=>{if(u.dryRun){r({command:`cf client-certificates create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/zones/${u.zone??u.zoneId??`<zone>`}/client_certificates`,pathParams:{"zone-id":String(u.zone??u[`zone-id`]??``)},bodyKind:`json`,body:u.body===void 0?s({csr:c(u.csr,`csr`,`text`),validity_days:u[`validity-days`]}):o(u.body)});return}let a=await t(u),d=await e({zone:u.zone},a,{quiet:u.quiet});if(u.zoneId=d,u.body){let e=o(u.body);n(await i(`Creating`,async()=>a.clientCertificates.create({...e,zone_id:d})),{successLabel:`Created`});return}if(u.csr===void 0&&(u.csr=await l(`csr`,`The Certificate Signing Request (CSR). Must be newline-encoded.`)),u[`validity-days`]===void 0)throw Error(`--validity-days is required (or pass --body with this field set).`);let f=s({csr:c(u.csr,`csr`,`text`),validity_days:u[`validity-days`]});n(await i(`Creating`,async()=>a.clientCertificates.create({...f,zone_id:d})),{successLabel:`Created`})})};function m(e){return e.usage(`$0 client-certificates delete <client-certificate-id>
|
|
5
|
-
|
|
6
|
-
Set a API Shield mTLS Client Certificate to pending_revocation status for processing to revoked status.`).positional(`client-certificate-id`,{type:`string`,description:`Identifier.`,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 h={command:`delete <client-certificate-id>`,describe:`Revoke Client Certificate`,builder:m,handler:async o=>a({command:`client-certificates delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},o,async()=>{if(o.dryRun){r({command:`cf client-certificates delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/zones/${o.zone??o.zoneId??`<zone>`}/client_certificates/${o[`client-certificate-id`]==null?`<client-certificate-id>`:encodeURIComponent(String(o[`client-certificate-id`]))}`,pathParams:{"zone-id":String(o.zone??o[`zone-id`]??``),"client-certificate-id":String(o[`client-certificate-id`]??``)},bodyKind:`none`});return}let a=await t(o),s=await e({zone:o.zone},a,{quiet:o.quiet});if(o.zoneId=s,!await u({force:!!o.force})){process.stderr.write(`Aborted.
|
|
7
|
-
`);return}n(await i(`Deleting`,async()=>a.clientCertificates.delete({zone_id:s,client_certificate_id:o[`client-certificate-id`]})),{successLabel:`Deleted`})})};function g(e){return e.usage(`$0 client-certificates edit <client-certificate-id>
|
|
8
|
-
|
|
9
|
-
If a API Shield mTLS Client Certificate is in a pending_revocation state, you may reactivate it with this endpoint.`).positional(`client-certificate-id`,{type:`string`,description:`Identifier.`,demandOption:!0}).option(`reactivate`,{type:`boolean`,description:`The reactivate field`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const _={command:`edit <client-certificate-id>`,describe:`Reactivate Client Certificate`,builder:g,handler:async c=>a({command:`client-certificates edit`,classification:{safeFlags:[`reactivate`,`dry-run`]}},c,async()=>{if(c.dryRun){r({command:`cf client-certificates edit`,method:`PATCH`,url:`https://api.cloudflare.com/client/v4/zones/${c.zone??c.zoneId??`<zone>`}/client_certificates/${c[`client-certificate-id`]==null?`<client-certificate-id>`:encodeURIComponent(String(c[`client-certificate-id`]))}`,pathParams:{"zone-id":String(c.zone??c[`zone-id`]??``),"client-certificate-id":String(c[`client-certificate-id`]??``)},bodyKind:`json`,body:c.body===void 0?s({reactivate:c.reactivate}):o(c.body)});return}let a=await t(c),l=await e({zone:c.zone},a,{quiet:c.quiet});if(c.zoneId=l,c.body){let e=o(c.body);n(await i(`Updating`,async()=>a.clientCertificates.edit({...e,zone_id:l,client_certificate_id:c[`client-certificate-id`]})),{successLabel:`Updated`});return}let u=s({reactivate:c.reactivate});n(await i(`Updating`,async()=>a.clientCertificates.edit({...u,zone_id:l,client_certificate_id:c[`client-certificate-id`]})),{successLabel:`Updated`})})};function v(e){return e.usage(`$0 client-certificates get <client-certificate-id>
|
|
10
|
-
|
|
11
|
-
Get Details for a single mTLS API Shield Client Certificate.`).positional(`client-certificate-id`,{type:`string`,description:`Identifier.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const y={command:`get <client-certificate-id>`,describe:`Client Certificate Details`,builder:v,handler:async o=>a({command:`client-certificates get`,classification:{safeFlags:[`dry-run`]}},o,async()=>{if(o.dryRun){r({command:`cf client-certificates get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/zones/${o.zone??o.zoneId??`<zone>`}/client_certificates/${o[`client-certificate-id`]==null?`<client-certificate-id>`:encodeURIComponent(String(o[`client-certificate-id`]))}`,pathParams:{"zone-id":String(o.zone??o[`zone-id`]??``),"client-certificate-id":String(o[`client-certificate-id`]??``)},bodyKind:`none`});return}let a=await t(o),s=await e({zone:o.zone},a,{quiet:o.quiet});o.zoneId=s,n(await i(`Loading`,async()=>a.clientCertificates.get({zone_id:s,client_certificate_id:o[`client-certificate-id`]})),{successLabel:`Loaded`})})};function b(e){return e.usage(`$0 client-certificates list
|
|
12
|
-
|
|
13
|
-
List all of your Zone's API Shield mTLS Client Certificates by Status and/or using Pagination.`).option(`status`,{type:`string`,description:`Client Certitifcate Status to filter results by.`,choices:[`all`,`active`,`pending_reactivation`,`pending_revocation`,`revoked`]}).option(`page`,{type:`number`,description:`Page number of paginated results.`}).option(`per-page`,{type:`number`,description:`Number of records per page.`}).option(`limit`,{type:`number`,description:`Limit to the number of records returned.`}).option(`offset`,{type:`number`,description:`Offset the results.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const x={command:`list`,describe:`List Client Certificates`,builder:d(b),handler:async o=>a({command:`client-certificates list`,classification:{safeFlags:[`status`,`dry-run`]}},o,async()=>{let a={status:o.status,page:o.page,per_page:o[`per-page`],limit:o.limit,offset:o.offset};if(o.dryRun){r({command:`cf client-certificates list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/zones/${o.zone??o.zoneId??`<zone>`}/client_certificates`,pathParams:{"zone-id":String(o.zone??o[`zone-id`]??``)},query:a,bodyKind:`none`});return}let s=await t(o),c=await e({zone:o.zone},s,{quiet:o.quiet});o.zoneId=c,n(await i(`Loading`,async()=>s.clientCertificates.list({zone_id:c,...a})),{successLabel:`Loaded`})})},S={command:`client-certificates`,describe:`client-certificates`,builder:e=>e.command(p).command(h).command(_).command(y).command(x).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};export{S as default};
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
import{n as e,t}from"./project-settings-DSXevRvj.mjs";import{t as n}from"./output-Bia1u2k5.mjs";import*as r from"node:path";import*as i from"node:fs/promises";import{generateTypes as a,loadAndParseConfig as o}from"@cloudflare/config";import{RUNTIME_TYPES_MARKER as s,generateRuntimeTypes as c}from"@cloudflare/runtime-types";const l=r.join(`.cloudflare`,`types`,`index.d.ts`);function u(e){return e.option(`include-runtime`,{type:`boolean`,description:`Include Cloudflare Workers runtime types`,default:!0})}function d(e){return e.map(e=>{let t=e.path.filter(e=>typeof e!=`symbol`).join(`.`);return` - ${t?`${t}: `:``}${e.message}`}).join(`
|
|
3
|
-
`)}function f(e,t){let n=r.relative(e,t).split(r.sep).join(`/`);return n.startsWith(`.`)?n:`./${n}`}const p={command:`types`,describe:`Generate types from cloudflare.config.ts`,builder:u,handler:async u=>{if(u.local)throw Error(`--local is not supported by cf workers types.`);let p=e();if(p===null)throw Error(`${t} is required by cf workers types.`);let m=await o(p,{isPreview:!1,mode:u.mode});if(!m.result.success)throw Error(`Invalid ${t}:\n${d(m.result.error.issues)}`);let h=m.result.data.worker;if(h===void 0)throw Error(`${t} must define a Worker to generate types.`);let g=r.dirname(p),_=r.join(g,l),v;try{v=await i.readFile(_,`utf8`)}catch{}let y=a({configPath:f(r.dirname(_),p),packageName:`cf/config`});if(u.includeRuntime){let{runtimeHeader:e,runtimeTypes:t}=await c({compatibilityDate:h.compatibilityDate,compatibilityFlags:h.compatibilityFlags??[],existingContent:v});y+=`\n${e}\n${s}\n${t}`}v!==y&&(await i.mkdir(r.dirname(_),{recursive:!0}),await i.writeFile(_,y)),n({path:r.relative(process.cwd(),_)},{quiet:u.quiet})}};export{p as default};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
import{t as e}from"./src-Hw-TlVAO.mjs";import{n as t,t as n}from"./cloudflared-DhItYrCq.mjs";const r={command:`quick-start <url>`,describe:`Expose a local URL with a temporary trycloudflare.com tunnel. The tunnel remains active until cf exits.`,builder:e=>e.positional(`url`,{type:`string`,description:`Local URL to expose (for example, http://localhost:3000)`,demandOption:!0}).option(`log-level`,{type:`string`,choices:n,default:`info`,description:`cloudflared log level`}),handler:async n=>{throw n.local?Error(`--local is not supported by cf tunnels quick-start.`):new e(await t([`tunnel`,`--url`,n.url,`--loglevel`,n[`log-level`]]))}};export{r as default};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
import{t as e}from"./src-Hw-TlVAO.mjs";import{r as t}from"./resolve-CUDKxUrW.mjs";import{m as n}from"./oauth-Dzk6Gy-6.mjs";import{r}from"./auth-DJhSjNNL.mjs";import{t as i}from"./progress-D_mL-Kcy.mjs";import{n as a,t as o}from"./cloudflared-DhItYrCq.mjs";const s=1e3;async function c(e,n,r){if(t(r))return r;let i=0,a;for(let t=1;;t++){let o=await e.tunnel.list({account_id:n,name:r,is_deleted:!1,page:t,per_page:s}),c=o.result??[];for(let e of c)e.name===r&&(i++,a=e.id);let l=o.result_info?.per_page||s;if(c.length<l)break}if(i===0)throw Error(`"${r}" is neither the ID nor the name of any tunnel. Run \`cf tunnels list\` to see available tunnels.`);if(i>1)throw Error(`Found multiple tunnels named "${r}". Pass the tunnel UUID instead.`);if(!a)throw Error(`Tunnel "${r}" was found but has no ID. Pass the tunnel UUID instead.`);return a}async function l(e,t,n){let r=await e.tunnels.token.get({account_id:t,tunnel_id:n});if(typeof r!=`string`||r.length===0)throw Error(`The API returned an empty token for tunnel ${n}.`);return r}function u(e){return e.positional(`tunnel`,{type:`string`,description:`Tunnel name or UUID; required unless --token is provided`}).option(`token`,{type:`string`,description:`Tunnel token supplied directly to cloudflared`}).option(`log-level`,{type:`string`,choices:o,default:`info`,description:`cloudflared log level`})}const d={command:`run [tunnel]`,describe:`Run a named Cloudflare Tunnel using the cf-managed cloudflared binary.`,builder:u,handler:async t=>{if(t.local)throw Error(`--local is not supported by cf tunnels run.`);let o=t.token,s=t.tunnel;if(!o){if(!s)throw Error(`Either a tunnel name/UUID or --token must be provided.`);let e=await r(t),a=await n();o=await i(`Fetching tunnel token`,async()=>l(e,a,await c(e,a,s)))}let u=[`tunnel`,`--loglevel`,t[`log-level`]];throw u.push(`run`),new e(await a(u,{env:{TUNNEL_TOKEN:o}}))}};export{d as default};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
import{d as e}from"./dist-dc4E1u01.mjs";import{t}from"./chunk-QBZBEHZB-Byagrlop.mjs";import{i as n,n as r,t as i}from"./startup-profile-CgWHy4rE.mjs";import{t as a}from"./output-Bia1u2k5.mjs";import{t as o}from"./progress-D_mL-Kcy.mjs";import{a as s,i as c,n as l,o as u,r as d,s as f}from"./build-1a8CiNIT.mjs";import{t as p}from"./deploy-input-COEKxOA1.mjs";import m from"node:path";import{writeFile as h}from"node:fs/promises";import{readBuildOutput as g}from"@cloudflare/build-output-utils";function _(e){return e.option(`outfile`,{type:`string`,description:`Output file for the startup CPU profile`,default:`worker-startup.cpuprofile`,requiresArg:!0}).option(`prebuilt`,{type:`boolean`,description:`Use existing Build Output Specification files without building`,default:!1}).option(`worker`,d)}const v={command:`check`,describe:`Profile a Worker's startup performance`,builder:_,handler:async d=>{if(d.local)throw Error(`--local is not supported by cf workers check.`);d.prebuilt||await l(d.mode,{output:d.quiet?`silent`:`stderr`,worker:d.worker});let{workers:_,rootConfig:v}=await g(process.cwd());u(d.mode,v.buildContext.mode,{requireRequestedMode:d.prebuilt});let y=s(_,d.worker),{wranglerConfig:b,builtConfig:x}=c(y,v),S=p(y,x);if(!S.resolvedEntryPointPath)throw new f(`Startup profiling requires a Worker entrypoint; assets-only projects cannot be profiled.`);if(S.bundleType===`commonjs`)throw new f(`Startup profiling does not support service-worker format Workers. Refer to https://developers.cloudflare.com/workers/reference/migrate-to-module-workers/ for migration guidance.`);let C=t({name:b.name??y.config.name??`worker`,main:{name:x.manifest?.mainModule??m.basename(S.resolvedEntryPointPath),filePath:S.resolvedEntryPointPath,content:S.content,type:S.bundleType},modules:S.modules,sourceMaps:S.sourceMaps,compatibility_date:b.compatibility_date,compatibility_flags:b.compatibility_flags??[],assets:void 0,containers:void 0,migrations:void 0,exports:void 0,keepVars:void 0,keepSecrets:void 0,logpush:void 0,placement:void 0,tail_consumers:void 0,streaming_tail_consumers:void 0,limits:void 0,annotations:void 0,observability:void 0,cache:void 0,package_dependencies:void 0},e(b),{dryRun:!0,unsafe:b.unsafe}),w=await r(C),T=d.quiet?await i(C):await o(`Profiling Worker startup`,()=>i(C)),E=n(T);await h(d.outfile,JSON.stringify(T)),a({bundle:{sizeBytes:w.size,gzipSizeBytes:w.gzipSize},startup:{profileWindowMs:E.profileWindow/1e3,sampledTimeMs:E.sampledTime/1e3,activeTimeMs:E.activeTime/1e3,garbageCollectionTimeMs:E.garbageCollectionTime/1e3,idleTimeMs:E.idleTime/1e3,sampleCount:E.sampleCount},profile:d.outfile,note:`This profile was measured locally. Use it to understand where startup time is spent, not to predict startup time on Cloudflare.`},{quiet:d.quiet})}};export{v as default};
|
package/dist/config-B4vIa0zp.mjs
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
import{n as e,t}from"./state-BxCejn42.mjs";import{randomUUID as n}from"node:crypto";const r=new Date(`2026-01-01T00:00:00.000Z`),i=`CF_SEND_TELEMETRY`,a=/^[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i;function o(){let e=process.env[i];if(e===void 0)return;let t=e.trim().toLowerCase();if(t===`true`||t===`1`)return!0;if(t===`false`||t===`0`)return!1}function s(){let r=t();if(typeof r.deviceId==`string`&&a.test(r.deviceId))return r.deviceId;let i=n();return e({deviceId:i}),i}function c(){return t().deviceId===void 0}function l(){let e=o();if(e!==void 0)return{enabled:e,source:`env`};let n=t().telemetry?.preference;return n?.enabled===!1?{enabled:!1,source:`config`}:n?.enabled===!0?{enabled:!0,source:typeof n.date==`string`&&new Date(n.date)>=r?`config`:`default`}:{enabled:!0,source:`default`}}function u(t){e({telemetry:{preference:{enabled:t,date:new Date().toISOString()}}})}function d(){return t().telemetry?.bannerLastShown}function f(t){e({telemetry:{bannerLastShown:t}})}export{o as a,f as c,s as i,u as l,r as n,c as o,d as r,l as s,i as t};
|
|
@@ -1,71 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
import{t as e}from"./local-B6b2OIBW.mjs";import{m as t,v as n}from"./oauth-Dzk6Gy-6.mjs";import{r}from"./auth-DJhSjNNL.mjs";import{t as i}from"./output-Bia1u2k5.mjs";import{t as a}from"./dry-run-CLX6Pbtq.mjs";import{t as o}from"./progress-D_mL-Kcy.mjs";import{t as s}from"./run-DtN51G2A.mjs";import"./telemetry-DAf9gLyH.mjs";import{n as c,r as l,t as u}from"./body-parser-CUWbw_Tq.mjs";import{n as d}from"./input-validation-Ch4Vllrm.mjs";import{a as f,i as p,n as m}from"./prompt-sL_yMZbI.mjs";import{t as h}from"./cli-types-tt_LZMbn.mjs";function g(e){return e.usage(`$0 data-security posture archive-finding-instance <finding-id>
|
|
3
|
-
|
|
4
|
-
Archive one or more finding instances.`).positional(`finding-id`,{type:`string`,description:`A base64-encoded ID identifying this Finding.`,demandOption:!0}).option(`check-instances`,{type:`string`,array:!0,description:`A list of finding instance IDs to pass along.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Request body for bulk actions on finding instances.`})}const ee={command:`archive-finding-instance <finding-id>`,describe:`Archive a finding`,builder:g,handler:async l=>s({command:`data-security posture archive-finding-instance`,classification:{safeFlags:[`dry-run`]}},l,async()=>{if(l.dryRun){a({command:`cf data-security posture archive-finding-instance`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${await n()??`<account-id>`}/data-security/posture/findings/${l[`finding-id`]==null?`<finding-id>`:encodeURIComponent(String(l[`finding-id`]))}/instances/archive`,pathParams:{"finding-id":String(l[`finding-id`]??``)},bodyKind:`json`,body:l.body===void 0?u({check_instances:l[`check-instances`]}):c(l.body)});return}let s=await r(l),d=l.local?e:await t();if(l.accountId=d,l.body){let e=c(l.body);i(await o(`Creating`,async()=>s.dataSecurity.posture.archiveFindingInstance({body:e,account_id:d,finding_id:l[`finding-id`]})),{successLabel:`Created`});return}if(l[`check-instances`]===void 0)throw Error(`--check-instances is required (or pass --body with this field set).`);let f=u({check_instances:l[`check-instances`]});i(await o(`Creating`,async()=>s.dataSecurity.posture.archiveFindingInstance({body:f,account_id:d,finding_id:l[`finding-id`]})),{successLabel:`Created`})})};function te(e){return e.usage(`$0 data-security posture change-finding-severity <finding-id>
|
|
5
|
-
|
|
6
|
-
Update the severity of a Finding. This will update the \`severity_override\` field on the Finding payload with the new severity value.`).positional(`finding-id`,{type:`string`,description:`A base64-encoded ID identifying this Finding.`,demandOption:!0}).option(`new-severity`,{type:`number`,description:`The numeric severity value to apply to the finding.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Request body for updating a finding's severity.`})}const _={command:`change-finding-severity <finding-id>`,describe:`Update the severity for a finding`,builder:te,handler:async l=>s({command:`data-security posture change-finding-severity`,classification:{safeFlags:[`dry-run`]}},l,async()=>{if(l.dryRun){a({command:`cf data-security posture change-finding-severity`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${await n()??`<account-id>`}/data-security/posture/findings/${l[`finding-id`]==null?`<finding-id>`:encodeURIComponent(String(l[`finding-id`]))}/tune_finding_severity`,pathParams:{"finding-id":String(l[`finding-id`]??``)},bodyKind:`json`,body:l.body===void 0?u({new_severity:l[`new-severity`]}):c(l.body)});return}let s=await r(l),d=l.local?e:await t();if(l.accountId=d,l.body){let e=c(l.body);i(await o(`Creating`,async()=>s.dataSecurity.posture.changeFindingSeverity({...e,account_id:d,finding_id:l[`finding-id`]})),{successLabel:`Created`});return}if(l[`new-severity`]===void 0)throw Error(`--new-severity is required (or pass --body with this field set).`);let f=u({new_severity:l[`new-severity`]});i(await o(`Creating`,async()=>s.dataSecurity.posture.changeFindingSeverity({...f,account_id:d,finding_id:l[`finding-id`]})),{successLabel:`Created`})})};function v(e){return e.usage(`$0 data-security posture content export create
|
|
7
|
-
|
|
8
|
-
Creates a CSV export for content and accepts optional filters in the payload.`).option(`dlp-profile-id`,{type:`string`,array:!0,description:`Filter by DLP profile IDs.`}).option(`dlp-profile-information`,{type:`string`,description:`DLP profile metadata for the export. Provide as a JSON array of objects or @path/to/file.json.`}).option(`integration-id`,{type:`string`,array:!0,description:`Filter by integration IDs.`}).option(`max-affliction-date`,{type:`string`,description:`Filter to view content flagged on or before this date.`}).option(`min-affliction-date`,{type:`string`,description:`Filter to view content flagged on or after this date.`}).option(`orders`,{type:`string`,description:`Ordering specifications for the export. Provide as a JSON array of objects or @path/to/file.json.`}).option(`search`,{type:`string`,description:`Search term to filter content.`}).option(`vendors`,{type:`string`,array:!0,description:`Filter by vendor types.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Request body for creating content exports.`})}const y={command:`create`,describe:`Create a content export`,builder:v,handler:async f=>s({command:`data-security posture content export create`,classification:{safeFlags:[`dry-run`]}},f,async()=>{if(f.dryRun){a({command:`cf data-security posture content export create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${await n()??`<account-id>`}/data-security/posture/content/export`,pathParams:{},bodyKind:`json`,body:f.body===void 0?u({dlp_profile_id:f[`dlp-profile-id`],dlp_profile_information:l(f[`dlp-profile-information`],`dlp-profile-information`),integration_id:f[`integration-id`],max_affliction_date:d(f[`max-affliction-date`],`max-affliction-date`,`text`),min_affliction_date:d(f[`min-affliction-date`],`min-affliction-date`,`text`),orders:l(f.orders,`orders`),search:d(f.search,`search`,`text`),vendors:f.vendors}):c(f.body)});return}let s=await r(f),p=f.local?e:await t();if(f.accountId=p,f.body){let e=c(f.body);i(await o(`Creating`,async()=>s.dataSecurity.posture.content.export.create({...e,account_id:p})),{successLabel:`Created`});return}if(f[`dlp-profile-information`]===void 0)throw Error(`--dlp-profile-information is required (or pass --body with this field set).`);let m=u({dlp_profile_id:f[`dlp-profile-id`],dlp_profile_information:l(f[`dlp-profile-information`],`dlp-profile-information`),integration_id:f[`integration-id`],max_affliction_date:d(f[`max-affliction-date`],`max-affliction-date`,`text`),min_affliction_date:d(f[`min-affliction-date`],`min-affliction-date`,`text`),orders:l(f.orders,`orders`),search:d(f.search,`search`,`text`),vendors:f.vendors});i(await o(`Creating`,async()=>s.dataSecurity.posture.content.export.create({...m,account_id:p})),{successLabel:`Created`})})},b={command:`export`,describe:`Operations for posture.content.export`,builder:e=>e.command(y).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function x(e){return e.usage(`$0 data-security posture content list
|
|
9
|
-
|
|
10
|
-
List DLP content findings`).option(`direction`,{type:`string`,description:`Direction to order results.`,choices:[`asc`,`desc`]}).option(`dlp-profile-id`,{type:`string`,description:`Filter by an DLP profile ID`}).option(`integration-id`,{type:`string`,description:`Filter by an integration ID`}).option(`max-affliction-date`,{type:`string`,description:`Filter to view findings that occurred on or before the affliction date. Can be a date-time in ISO 8601 format or an epoch timestamp.`}).option(`min-affliction-date`,{type:`string`,description:`Filter to view findings that occurred on or after the affliction date. Can be a date-time in ISO 8601 format or an epoch timestamp.`}).option(`order`,{type:`string`,description:`Which field to use when ordering content assets.`,choices:[`asset_name`,`dlp_profile_count`,`integration_name`,`latest_affliction_date`]}).option(`page`,{type:`number`,description:`A page number within the paginated result set.`}).option(`per-page`,{type:`number`,description:`Number of results to return per page.`}).option(`search`,{type:`string`,description:`A search term.`}).option(`vendor`,{type:`string`,description:`Filter by vendor`,choices:[`ANTHROPIC`,`AWS`,`BITBUCKET`,`BOX`,`CONFLUENCE`,`DROPBOX`,`GITHUB`,`GOOGLE_CLOUD_PLATFORM`,`GOOGLE_WORKSPACE`,`JIRA`,`MICROSOFT`,`MICROSOFT_INTERNAL`,`OPENAI`,`SALESFORCE`,`SERVICENOW`,`SLACK`,`ZOOM`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const S={command:`list`,describe:`List DLP content findings`,builder:h(x),handler:async c=>s({command:`data-security posture content list`,classification:{safeFlags:[`direction`,`order`,`vendor`,`dry-run`]}},c,async()=>{let s={direction:c.direction,dlp_profile_id:c[`dlp-profile-id`],integration_id:c[`integration-id`],max_affliction_date:c[`max-affliction-date`],min_affliction_date:c[`min-affliction-date`],order:c.order,page:c.page,per_page:c[`per-page`],search:c.search,vendor:c.vendor};if(c.dryRun){a({command:`cf data-security posture content list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await n()??`<account-id>`}/data-security/posture/content`,pathParams:{},query:s,bodyKind:`none`});return}let l=await r(c),u=c.local?e:await t();c.accountId=u,i(await o(`Loading`,async()=>l.dataSecurity.posture.content.list({account_id:u,...s})),{successLabel:`Loaded`})})},C={command:`content`,describe:`Operations for posture.content`,builder:e=>e.command(S).command(b).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function w(e){return e.usage(`$0 data-security posture create-finding-export-csv
|
|
11
|
-
|
|
12
|
-
Creates a CSV export for findings and accepts optional filters in the payload.`).option(`ignored`,{type:`boolean`,description:`Filter for only the ignored findings. Set to false to only see active items.`}).option(`integration-id`,{type:`string`,array:!0,description:`Filter by multiple integration IDs.`}).option(`max-affliction-date`,{type:`string`,description:`Filter to view findings that occurred on or before the affliction date. Can be a date-time in ISO 8601 format or an epoch timestamp.`}).option(`min-affliction-date`,{type:`string`,description:`Filter to view findings that occurred on or after the affliction date. Can be a date-time in ISO 8601 format or an epoch timestamp.`}).option(`orders`,{type:`string`,description:`Which fields to use when ordering the findings. Provide as a JSON array of objects or @path/to/file.json.`}).option(`search`,{type:`string`,description:`A search term.`}).option(`severities`,{type:`string`,array:!0,description:`Filter by severity levels.`}).option(`vendors`,{type:`string`,array:!0,description:`Filter by vendor types.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Filter specification for findings export jobs.`})}const T={command:`create-finding-export-csv`,describe:`Create new findings export request`,builder:w,handler:async f=>s({command:`data-security posture create-finding-export-csv`,classification:{safeFlags:[`ignored`,`dry-run`]}},f,async()=>{if(f.dryRun){a({command:`cf data-security posture create-finding-export-csv`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${await n()??`<account-id>`}/data-security/posture/findings/export`,pathParams:{},bodyKind:`json`,body:f.body===void 0?u({ignored:f.ignored,integration_id:f[`integration-id`],max_affliction_date:d(f[`max-affliction-date`],`max-affliction-date`,`text`),min_affliction_date:d(f[`min-affliction-date`],`min-affliction-date`,`text`),orders:l(f.orders,`orders`),search:d(f.search,`search`,`text`),severities:f.severities,vendors:f.vendors}):c(f.body)});return}let s=await r(f),p=f.local?e:await t();if(f.accountId=p,f.body){let e=c(f.body);i(await o(`Creating`,async()=>s.dataSecurity.posture.createFindingExportCsv({...e,account_id:p})),{successLabel:`Created`});return}let m=u({ignored:f.ignored,integration_id:f[`integration-id`],max_affliction_date:d(f[`max-affliction-date`],`max-affliction-date`,`text`),min_affliction_date:d(f[`min-affliction-date`],`min-affliction-date`,`text`),orders:l(f.orders,`orders`),search:d(f.search,`search`,`text`),severities:f.severities,vendors:f.vendors});i(await o(`Creating`,async()=>s.dataSecurity.posture.createFindingExportCsv({...m,account_id:p})),{successLabel:`Created`})})};function E(e){return e.usage("$0 data-security posture create-finding-instances-export-csv <storage-namespace-id>\n\nCreates a CSV export for Finding instances and accepts optional filters in the payload. The `storage_namespace_id` path parameter is derived from the finding ID by base64-decoding it (which yields `integration_id:finding_type_id`) and replacing the colon with a hyphen.").positional(`storage-namespace-id`,{type:`string`,description:"A storage namespace identifier for the finding, used to scope finding instance exports. Constructed by base64-decoding the finding ID (which encodes `integration_id:finding_type_id`) and replacing the colon separator with a hyphen. For example, a finding ID that decodes to `00000000-0000-0000-0000-000000000001:00000000-0000-0000-0000-000000000002` becomes `00000000-0000-0000-0000-000000000001-00000000-0000-0000-0000-000000000002`.",demandOption:!0}).option(`archived`,{type:`boolean`,description:`Filter for archived status.`}).option(`max-affliction-date`,{type:`string`,description:`Filter to view findings that occurred on or before the affliction date. Can be a date-time in ISO 8601 format or an epoch timestamp.`}).option(`min-affliction-date`,{type:`string`,description:`Filter to view findings that occurred on or after the affliction date. Can be a date-time in ISO 8601 format or an epoch timestamp.`}).option(`orders`,{type:`string`,description:`Ordering specifications for the export. Provide as a JSON array of objects or @path/to/file.json.`}).option(`search`,{type:`string`,description:`A search term.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Filter specification for finding instance exports.`})}const D={command:`create-finding-instances-export-csv <storage-namespace-id>`,describe:`Create a finding instances export`,builder:E,handler:async f=>s({command:`data-security posture create-finding-instances-export-csv`,classification:{safeFlags:[`archived`,`dry-run`]}},f,async()=>{if(f.dryRun){a({command:`cf data-security posture create-finding-instances-export-csv`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${await n()??`<account-id>`}/data-security/posture/findings/${f[`storage-namespace-id`]==null?`<storage-namespace-id>`:encodeURIComponent(String(f[`storage-namespace-id`]))}/instances/export`,pathParams:{"storage-namespace-id":String(f[`storage-namespace-id`]??``)},bodyKind:`json`,body:f.body===void 0?u({archived:f.archived,max_affliction_date:d(f[`max-affliction-date`],`max-affliction-date`,`text`),min_affliction_date:d(f[`min-affliction-date`],`min-affliction-date`,`text`),orders:l(f.orders,`orders`),search:d(f.search,`search`,`text`)}):c(f.body)});return}let s=await r(f),p=f.local?e:await t();if(f.accountId=p,f.body){let e=c(f.body);i(await o(`Creating`,async()=>s.dataSecurity.posture.createFindingInstancesExportCsv({...e,account_id:p,storage_namespace_id:f[`storage-namespace-id`]})),{successLabel:`Created`});return}let m=u({archived:f.archived,max_affliction_date:d(f[`max-affliction-date`],`max-affliction-date`,`text`),min_affliction_date:d(f[`min-affliction-date`],`min-affliction-date`,`text`),orders:l(f.orders,`orders`),search:d(f.search,`search`,`text`)});i(await o(`Creating`,async()=>s.dataSecurity.posture.createFindingInstancesExportCsv({...m,account_id:p,storage_namespace_id:f[`storage-namespace-id`]})),{successLabel:`Created`})})};function O(e){return e.usage(`$0 data-security posture create-remediation-jobs-export-csv
|
|
13
|
-
|
|
14
|
-
Creates a CSV export for remediation jobs and accepts optional filters in the payload.`).option(`integration-id`,{type:`string`,array:!0,description:`Filter by multiple integration IDs.`}).option(`max-updated-at`,{type:`string`,description:`Filter to view remediation jobs updated on or before this datetime. Can be a date-time in ISO 8601 format or an epoch timestamp.`}).option(`min-updated-at`,{type:`string`,description:`Filter to view remediation jobs updated on or after this datetime. Can be a date-time in ISO 8601 format or an epoch timestamp.`}).option(`orders`,{type:`string`,description:`Ordering specifications for the export. Provide as a JSON array of objects or @path/to/file.json.`}).option(`search`,{type:`string`,description:`A search term.`}).option(`status`,{type:`string`,array:!0,description:`Filter by remediation job status.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Filter specification for remediation jobs export.`})}const k={command:`create-remediation-jobs-export-csv`,describe:`Create a remediation jobs export`,builder:O,handler:async f=>s({command:`data-security posture create-remediation-jobs-export-csv`,classification:{safeFlags:[`dry-run`]}},f,async()=>{if(f.dryRun){a({command:`cf data-security posture create-remediation-jobs-export-csv`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${await n()??`<account-id>`}/data-security/posture/remediations/jobs/export`,pathParams:{},bodyKind:`json`,body:f.body===void 0?u({integration_id:f[`integration-id`],max_updated_at:d(f[`max-updated-at`],`max-updated-at`,`text`),min_updated_at:d(f[`min-updated-at`],`min-updated-at`,`text`),orders:l(f.orders,`orders`),search:d(f.search,`search`,`text`),status:f.status}):c(f.body)});return}let s=await r(f),p=f.local?e:await t();if(f.accountId=p,f.body){let e=c(f.body);i(await o(`Creating`,async()=>s.dataSecurity.posture.createRemediationJobsExportCsv({...e,account_id:p})),{successLabel:`Created`});return}let m=u({integration_id:f[`integration-id`],max_updated_at:d(f[`max-updated-at`],`max-updated-at`,`text`),min_updated_at:d(f[`min-updated-at`],`min-updated-at`,`text`),orders:l(f.orders,`orders`),search:d(f.search,`search`,`text`),status:f.status});i(await o(`Creating`,async()=>s.dataSecurity.posture.createRemediationJobsExportCsv({...m,account_id:p})),{successLabel:`Created`})})};function A(e){return e.usage(`$0 data-security posture create-remediation-jobs
|
|
15
|
-
|
|
16
|
-
Create one or more remediation jobs tied to a specific Cloudflare Account.`).option(`finding-instance-ids`,{type:`string`,array:!0,description:`UUIDs identifying Finding Instances.`}).option(`remediation-type-id`,{type:`string`,description:`A UUID identifying this Remediation Type.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Request body for creating remediation jobs.`})}const j={command:`create-remediation-jobs`,describe:`Creates remediation jobs`,builder:A,handler:async l=>s({command:`data-security posture create-remediation-jobs`,classification:{safeFlags:[`dry-run`]}},l,async()=>{if(l.dryRun){a({command:`cf data-security posture create-remediation-jobs`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${await n()??`<account-id>`}/data-security/posture/remediations/jobs`,pathParams:{},bodyKind:`json`,body:l.body===void 0?u({finding_instance_ids:l[`finding-instance-ids`],remediation_type_id:d(l[`remediation-type-id`],`remediation-type-id`,`text`)}):c(l.body)});return}let s=await r(l),p=l.local?e:await t();if(l.accountId=p,l.body){let e=c(l.body);i(await o(`Creating`,async()=>s.dataSecurity.posture.createRemediationJobs({...e,account_id:p})),{successLabel:`Created`});return}if(l[`finding-instance-ids`]===void 0)throw Error(`--finding-instance-ids is required (or pass --body with this field set).`);l[`remediation-type-id`]===void 0&&(l[`remediation-type-id`]=await f(`remediation-type-id`,`A UUID identifying this Remediation Type.`));let m=u({finding_instance_ids:l[`finding-instance-ids`],remediation_type_id:d(l[`remediation-type-id`],`remediation-type-id`,`text`)});i(await o(`Creating`,async()=>s.dataSecurity.posture.createRemediationJobs({...m,account_id:p})),{successLabel:`Created`})})};function M(e){return e.usage(`$0 data-security posture create-webhook-jobs
|
|
17
|
-
|
|
18
|
-
Creates webhook jobs to send a finding instance to one or more configured webhooks.`).option(`finding-instance-ids`,{type:`string`,array:!0,description:`Array of finding instance IDs to send to the webhooks.`}).option(`webhook-ids`,{type:`string`,array:!0,description:`Array of webhook IDs to trigger jobs for.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Request body for creating up to 100 webhook jobs. The number of jobs is the product of webhook_ids and finding_instance_ids.`})}const N={command:`create-webhook-jobs`,describe:`Create webhook jobs`,builder:M,handler:async l=>s({command:`data-security posture create-webhook-jobs`,classification:{safeFlags:[`dry-run`]}},l,async()=>{if(l.dryRun){a({command:`cf data-security posture create-webhook-jobs`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${await n()??`<account-id>`}/data-security/posture/webhooks/jobs`,pathParams:{},bodyKind:`json`,body:l.body===void 0?u({finding_instance_ids:l[`finding-instance-ids`],webhook_ids:l[`webhook-ids`]}):c(l.body)});return}let s=await r(l),d=l.local?e:await t();if(l.accountId=d,l.body){let e=c(l.body);i(await o(`Creating`,async()=>s.dataSecurity.posture.createWebhookJobs({...e,account_id:d})),{successLabel:`Created`});return}if(l[`finding-instance-ids`]===void 0)throw Error(`--finding-instance-ids is required (or pass --body with this field set).`);if(l[`webhook-ids`]===void 0)throw Error(`--webhook-ids is required (or pass --body with this field set).`);let f=u({finding_instance_ids:l[`finding-instance-ids`],webhook_ids:l[`webhook-ids`]});i(await o(`Creating`,async()=>s.dataSecurity.posture.createWebhookJobs({...f,account_id:d})),{successLabel:`Created`})})};function P(e){return e.usage(`$0 data-security posture create-webhook
|
|
19
|
-
|
|
20
|
-
Creates a new webhook configuration for sending finding notifications to external endpoints.`).option(`authentication-type`,{type:`string`,description:`Type of authentication used for the webhook.`,choices:[`Basic Auth`,`None`,`Bearer Auth`,`Static Headers`,`HMAC-Signing`]}).option(`destination-url`,{type:`string`,description:`Target URL for the webhook configuration. Where resulting data will be sent.`}).option(`headers`,{type:`string`,description:`List of custom headers to include in webhook requests. Provide as a JSON array of objects or @path/to/file.json.`}).option(`label`,{type:`string`,description:`Account-specified display label for the webhook configuration.`}).option(`signing-secret`,{type:`string`,description:`Secret key used for HMAC signing when authentication_type is "HMAC-Signing".`}).option(`status`,{type:`string`,description:`Status of the webhook configuration. Defaults to enabled when omitted.`,choices:[`enabled`,`disabled`],default:`enabled`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Request body for creating a new webhook configuration.`})}const F={command:`create-webhook`,describe:`Create a new webhook configuration`,builder:P,handler:async m=>s({command:`data-security posture create-webhook`,classification:{safeFlags:[`authentication-type`,`status`,`dry-run`]}},m,async()=>{if(m.dryRun){a({command:`cf data-security posture create-webhook`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${await n()??`<account-id>`}/data-security/posture/webhooks`,pathParams:{},bodyKind:`json`,body:m.body===void 0?u({authentication_type:d(m[`authentication-type`],`authentication-type`,`text`),destination_url:d(m[`destination-url`],`destination-url`,`text`),headers:l(m.headers,`headers`),label:d(m.label,`label`,`text`),signing_secret:d(m[`signing-secret`],`signing-secret`,`text`),status:d(m.status,`status`,`text`)}):c(m.body)});return}let s=await r(m),h=m.local?e:await t();if(m.accountId=h,m.body){let e=c(m.body);i(await o(`Creating`,async()=>s.dataSecurity.posture.createWebhook({...e,account_id:h})),{successLabel:`Created`});return}m[`authentication-type`]===void 0&&(m[`authentication-type`]=await p(`authentication-type`,`Type of authentication used for the webhook.`,[`Basic Auth`,`None`,`Bearer Auth`,`Static Headers`,`HMAC-Signing`])),m[`destination-url`]===void 0&&(m[`destination-url`]=await f(`destination-url`,`Target URL for the webhook configuration. Where resulting data will be sent.`)),m.label===void 0&&(m.label=await f(`label`,`Account-specified display label for the webhook configuration.`));let g=u({authentication_type:d(m[`authentication-type`],`authentication-type`,`text`),destination_url:d(m[`destination-url`],`destination-url`,`text`),headers:l(m.headers,`headers`),label:d(m.label,`label`,`text`),signing_secret:d(m[`signing-secret`],`signing-secret`,`text`),status:d(m.status,`status`,`text`)});i(await o(`Creating`,async()=>s.dataSecurity.posture.createWebhook({...g,account_id:h})),{successLabel:`Created`})})};function I(e){return e.usage(`$0 data-security posture evaluate-existing-webhook <webhook-id>
|
|
21
|
-
|
|
22
|
-
Sends a test webhook event using an existing webhook configuration. This allows customers to verify their webhook endpoint is still reachable and properly configured after creating the webhook resource. The test payload includes: - event_type: "webhook.test" - timestamp: Current UTC timestamp - message: Test message indicating this is from Cloudflare CASB - data: Object with test: true`).positional(`webhook-id`,{type:`string`,description:`A UUID identifying the webhook configuration.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const L={command:`evaluate-existing-webhook <webhook-id>`,describe:`Test an existing webhook configuration`,builder:I,handler:async c=>s({command:`data-security posture evaluate-existing-webhook`,classification:{safeFlags:[`dry-run`]}},c,async()=>{if(c.dryRun){a({command:`cf data-security posture evaluate-existing-webhook`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${await n()??`<account-id>`}/data-security/posture/webhooks/${c[`webhook-id`]==null?`<webhook-id>`:encodeURIComponent(String(c[`webhook-id`]))}/evaluate`,pathParams:{"webhook-id":String(c[`webhook-id`]??``)},bodyKind:`none`});return}let s=await r(c),l=c.local?e:await t();c.accountId=l,i(await o(`Creating`,async()=>s.dataSecurity.posture.evaluateExistingWebhook({account_id:l,webhook_id:c[`webhook-id`]})),{successLabel:`Created`})})};function R(e){return e.usage(`$0 data-security posture evaluate-new-webhook
|
|
23
|
-
|
|
24
|
-
Sends a test webhook event to the specified destination URL to verify the webhook endpoint is reachable and properly configured. This allows customers to validate their webhook configuration before creating the actual webhook resource. The test payload includes: - event_type: "webhook.test" - timestamp: Current UTC timestamp - message: Test message indicating this is from Cloudflare CASB - data: Object with test: true`).option(`authentication-type`,{type:`string`,description:`Type of authentication to use for the test webhook request.`,choices:[`Basic Auth`,`None`,`Bearer Auth`,`Static Headers`,`HMAC-Signing`]}).option(`destination-url`,{type:`string`,description:`Target URL to send the test webhook event to.`}).option(`headers`,{type:`string`,description:`List of custom headers to include in the test webhook request. Provide as a JSON array of objects or @path/to/file.json.`}).option(`signing-secret`,{type:`string`,description:`Secret key used for HMAC signing when authentication_type is "HMAC-Signing".`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Request body for testing a webhook configuration before creating it.`})}const z={command:`evaluate-new-webhook`,describe:`Test a webhook configuration before creating it`,builder:R,handler:async m=>s({command:`data-security posture evaluate-new-webhook`,classification:{safeFlags:[`authentication-type`,`dry-run`]}},m,async()=>{if(m.dryRun){a({command:`cf data-security posture evaluate-new-webhook`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${await n()??`<account-id>`}/data-security/posture/webhooks/evaluate`,pathParams:{},bodyKind:`json`,body:m.body===void 0?u({authentication_type:d(m[`authentication-type`],`authentication-type`,`text`),destination_url:d(m[`destination-url`],`destination-url`,`text`),headers:l(m.headers,`headers`),signing_secret:d(m[`signing-secret`],`signing-secret`,`text`)}):c(m.body)});return}let s=await r(m),h=m.local?e:await t();if(m.accountId=h,m.body){let e=c(m.body);i(await o(`Creating`,async()=>s.dataSecurity.posture.evaluateNewWebhook({...e,account_id:h})),{successLabel:`Created`});return}m[`authentication-type`]===void 0&&(m[`authentication-type`]=await p(`authentication-type`,`Type of authentication to use for the test webhook request.`,[`Basic Auth`,`None`,`Bearer Auth`,`Static Headers`,`HMAC-Signing`])),m[`destination-url`]===void 0&&(m[`destination-url`]=await f(`destination-url`,`Target URL to send the test webhook event to.`));let g=u({authentication_type:d(m[`authentication-type`],`authentication-type`,`text`),destination_url:d(m[`destination-url`],`destination-url`,`text`),headers:l(m.headers,`headers`),signing_secret:d(m[`signing-secret`],`signing-secret`,`text`)});i(await o(`Creating`,async()=>s.dataSecurity.posture.evaluateNewWebhook({...g,account_id:h})),{successLabel:`Created`})})};function B(e){return e.usage(`$0 data-security posture exports list
|
|
25
|
-
|
|
26
|
-
List all export jobs for a given requestor's organization`).option(`page`,{type:`number`,description:`A page number within the paginated result set.`}).option(`per-page`,{type:`number`,description:`Number of results to return per page.`}).option(`status`,{type:`string`,description:`Filter on export job's status`,choices:[`Pending`,`Success`,`Failure`,`Rescheduled`,`In-Progress`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const V={command:`list`,describe:`List all export jobs`,builder:h(B),handler:async c=>s({command:`data-security posture exports list`,classification:{safeFlags:[`status`,`dry-run`]}},c,async()=>{let s={page:c.page,per_page:c[`per-page`],status:c.status};if(c.dryRun){a({command:`cf data-security posture exports list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await n()??`<account-id>`}/data-security/posture/exports`,pathParams:{},query:s,bodyKind:`none`});return}let l=await r(c),u=c.local?e:await t();c.accountId=u,i(await o(`Loading`,async()=>l.dataSecurity.posture.exports.list({account_id:u,...s})),{successLabel:`Loaded`})})},H={command:`exports`,describe:`Operations for posture.exports`,builder:e=>e.command(V).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function U(e){return e.usage(`$0 data-security posture get-export-job <id>
|
|
27
|
-
|
|
28
|
-
Retrieves a single export job by its unique identifier`).positional(`id`,{type:`string`,description:`Unique identifier for the export job`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const W={command:`get-export-job <id>`,describe:`Get a single export job`,builder:U,handler:async c=>s({command:`data-security posture get-export-job`,classification:{safeFlags:[`dry-run`]}},c,async()=>{if(c.dryRun){a({command:`cf data-security posture get-export-job`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await n()??`<account-id>`}/data-security/posture/exports/${c.id==null?`<id>`:encodeURIComponent(String(c.id))}`,pathParams:{id:String(c.id??``)},bodyKind:`none`});return}let s=await r(c),l=c.local?e:await t();c.accountId=l,i(await o(`Loading`,async()=>s.dataSecurity.posture.getExportJob({account_id:l,id:c.id})),{successLabel:`Loaded`})})};function G(e){return e.usage(`$0 data-security posture get-finding-instance <instance-id>
|
|
29
|
-
|
|
30
|
-
Gets a security Finding instance by id.`).positional(`instance-id`,{type:`string`,description:`A uuid ID identifying this Finding instance.`,demandOption:!0}).option(`finding-id`,{type:`string`,description:`A base64-encoded ID identifying this Finding.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const K={command:`get-finding-instance <instance-id>`,describe:`Get a finding instance using an instance ID`,builder:G,handler:async c=>s({command:`data-security posture get-finding-instance`,classification:{safeFlags:[`dry-run`]}},c,async()=>{if(c.dryRun){a({command:`cf data-security posture get-finding-instance`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await n()??`<account-id>`}/data-security/posture/findings/${c[`finding-id`]==null?`<finding-id>`:encodeURIComponent(String(c[`finding-id`]))}/instances/${c[`instance-id`]==null?`<instance-id>`:encodeURIComponent(String(c[`instance-id`]))}`,pathParams:{"finding-id":String(c[`finding-id`]??``),"instance-id":String(c[`instance-id`]??``)},bodyKind:`none`});return}let s=await r(c),l=c.local?e:await t();c.accountId=l,i(await o(`Loading`,async()=>s.dataSecurity.posture.getFindingInstance({account_id:l,finding_id:c[`finding-id`],instance_id:c[`instance-id`]})),{successLabel:`Loaded`})})};function q(e){return e.usage(`$0 data-security posture get-finding-type <finding-type-id>
|
|
31
|
-
|
|
32
|
-
Retrieve a specific finding type by its unique identifier.`).positional(`finding-type-id`,{type:`string`,description:`A UUID string identifying the finding type.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const J={command:`get-finding-type <finding-type-id>`,describe:`Get finding by ID`,builder:q,handler:async c=>s({command:`data-security posture get-finding-type`,classification:{safeFlags:[`dry-run`]}},c,async()=>{if(c.dryRun){a({command:`cf data-security posture get-finding-type`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await n()??`<account-id>`}/data-security/posture/finding_types/${c[`finding-type-id`]==null?`<finding-type-id>`:encodeURIComponent(String(c[`finding-type-id`]))}`,pathParams:{"finding-type-id":String(c[`finding-type-id`]??``)},bodyKind:`none`});return}let s=await r(c),l=c.local?e:await t();c.accountId=l,i(await o(`Loading`,async()=>s.dataSecurity.posture.getFindingType({account_id:l,finding_type_id:c[`finding-type-id`]})),{successLabel:`Loaded`})})};function Y(e){return e.usage(`$0 data-security posture get-finding <finding-id>
|
|
33
|
-
|
|
34
|
-
Gets a security Finding that has been identified as being problematic.`).positional(`finding-id`,{type:`string`,description:`A base64-encoded ID identifying this Finding.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const X={command:`get-finding <finding-id>`,describe:`Get a finding type`,builder:Y,handler:async c=>s({command:`data-security posture get-finding`,classification:{safeFlags:[`dry-run`]}},c,async()=>{if(c.dryRun){a({command:`cf data-security posture get-finding`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await n()??`<account-id>`}/data-security/posture/findings/${c[`finding-id`]==null?`<finding-id>`:encodeURIComponent(String(c[`finding-id`]))}`,pathParams:{"finding-id":String(c[`finding-id`]??``)},bodyKind:`none`});return}let s=await r(c),l=c.local?e:await t();c.accountId=l,i(await o(`Loading`,async()=>s.dataSecurity.posture.getFinding({account_id:l,finding_id:c[`finding-id`]})),{successLabel:`Loaded`})})};function Z(e){return e.usage("$0 data-security posture get-remediation-types-for-finding-type <finding-type-id>\n\nList all remediation types for a given finding type. This endpoint supports both cursor and offset pagination. Note that `cursor` and `page` are mutually exclusive.").positional(`finding-type-id`,{type:`string`,description:`A UUID string identifying the finding type.`,demandOption:!0}).option(`integration-id`,{type:`string`,description:`Filter by an integration ID`}).option(`cursor`,{type:`string`,description:`A cursor for pagination.`}).option(`page`,{type:`number`,description:`A page number within the paginated result set.`}).option(`per-page`,{type:`number`,description:`Number of results to return per page.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const Q={command:`get-remediation-types-for-finding-type <finding-type-id>`,describe:`List remediation types for a finding type`,builder:Z,handler:async c=>s({command:`data-security posture get-remediation-types-for-finding-type`,classification:{safeFlags:[`dry-run`]}},c,async()=>{let s={integration_id:c[`integration-id`],cursor:c.cursor,page:c.page,per_page:c[`per-page`]};if(c.dryRun){a({command:`cf data-security posture get-remediation-types-for-finding-type`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await n()??`<account-id>`}/data-security/posture/finding_types/${c[`finding-type-id`]==null?`<finding-type-id>`:encodeURIComponent(String(c[`finding-type-id`]))}/remediation_types`,pathParams:{"finding-type-id":String(c[`finding-type-id`]??``)},query:s,bodyKind:`none`});return}let l=await r(c),u=c.local?e:await t();c.accountId=u,i(await o(`Loading`,async()=>l.dataSecurity.posture.getRemediationTypesForFindingType({account_id:u,finding_type_id:c[`finding-type-id`],...s})),{successLabel:`Loaded`})})};function ne(e){return e.usage(`$0 data-security posture get-webhook-config-by-id <webhook-id>
|
|
35
|
-
|
|
36
|
-
Retrieves a specific webhook configuration by its unique identifier.`).positional(`webhook-id`,{type:`string`,description:`A UUID identifying the webhook configuration.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const re={command:`get-webhook-config-by-id <webhook-id>`,describe:`Get webhook configuration by ID`,builder:ne,handler:async c=>s({command:`data-security posture get-webhook-config-by-id`,classification:{safeFlags:[`dry-run`]}},c,async()=>{if(c.dryRun){a({command:`cf data-security posture get-webhook-config-by-id`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await n()??`<account-id>`}/data-security/posture/webhooks/${c[`webhook-id`]==null?`<webhook-id>`:encodeURIComponent(String(c[`webhook-id`]))}`,pathParams:{"webhook-id":String(c[`webhook-id`]??``)},bodyKind:`none`});return}let s=await r(c),l=c.local?e:await t();c.accountId=l,i(await o(`Loading`,async()=>s.dataSecurity.posture.getWebhookConfigById({account_id:l,webhook_id:c[`webhook-id`]})),{successLabel:`Loaded`})})};function ie(e){return e.usage(`$0 data-security posture ignore-finding
|
|
37
|
-
|
|
38
|
-
Given a list of findings, mark as ignored. Does nothing if Finding is already ignored.`).option(`checks`,{type:`string`,array:!0,description:`A list of finding IDs to pass along.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Request body for bulk actions on findings.`})}const ae={command:`ignore-finding`,describe:`Mark a finding as ignored`,builder:ie,handler:async l=>s({command:`data-security posture ignore-finding`,classification:{safeFlags:[`dry-run`]}},l,async()=>{if(l.dryRun){a({command:`cf data-security posture ignore-finding`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${await n()??`<account-id>`}/data-security/posture/findings/ignore`,pathParams:{},bodyKind:`json`,body:l.body===void 0?u({checks:l.checks}):c(l.body)});return}let s=await r(l),d=l.local?e:await t();if(l.accountId=d,l.body){let e=c(l.body);i(await o(`Creating`,async()=>s.dataSecurity.posture.ignoreFinding({body:e,account_id:d})),{successLabel:`Created`});return}if(l.checks===void 0)throw Error(`--checks is required (or pass --body with this field set).`);let f=u({checks:l.checks});i(await o(`Creating`,async()=>s.dataSecurity.posture.ignoreFinding({body:f,account_id:d})),{successLabel:`Created`})})};function oe(e){return e.usage(`$0 data-security posture list-finding-instances <finding-id>
|
|
39
|
-
|
|
40
|
-
Lists all security finding instances for a given security finding.`).positional(`finding-id`,{type:`string`,description:`A base64-encoded ID identifying this Finding.`,demandOption:!0}).option(`archived`,{type:`boolean`,description:`Archived`}).option(`cursor`,{type:`string`,description:"A cursor for pagination. Obtained from the `result_info.cursor` field of a previous response."}).option(`direction`,{type:`string`,description:`Direction to order results.`,choices:[`asc`,`desc`]}).option(`max-affliction-date`,{type:`string`,description:`Filter to view findings that occurred on or before the affliction date. Can be a date-time in ISO 8601 format or an epoch timestamp.`}).option(`min-affliction-date`,{type:`string`,description:`Filter to view findings that occurred on or after the affliction date. Can be a date-time in ISO 8601 format or an epoch timestamp.`}).option(`order`,{type:`string`,description:`Which field to use when ordering the Finding's instances.
|
|
41
|
-
When ordering by 'remediation.status', only the most recent non-stale remediation job is considered. Stale jobs (created before the instance's affliction_date) are treated as having no status for ordering purposes.`,choices:[`affliction_date`,`asset.name`,`remediation.status`]}).option(`page`,{type:`number`,description:`A page number within the paginated result set.`}).option(`per-page`,{type:`number`,description:`Number of results to return per page.`}).option(`search`,{type:`string`,description:`A search term.`}).option(`remediation-statuses`,{type:`string`,description:`Filter finding instances by most recent remediation job status. Supports multiple comma-separated values.
|
|
42
|
-
Use 'none' to filter instances with no remediation jobs or instances where the most recent job is stale.
|
|
43
|
-
Note: Stale jobs (created before the instance's affliction_date) are ignored for filtering purposes, but are still included in the 'remediations' array with stale=true.`}).option(`finding-instance-ids`,{type:`string`,description:`Filter finding instances by an array of finding instance IDs. Supports multiple comma-separated values.`}).option(`asset-ids`,{type:`string`,description:`Filter finding instances by an array of asset IDs. Supports multiple comma-separated values.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const se={command:`list-finding-instances <finding-id>`,describe:`List instances of a finding`,builder:h(oe),handler:async c=>s({command:`data-security posture list-finding-instances`,classification:{safeFlags:[`archived`,`direction`,`order`,`dry-run`]}},c,async()=>{let s={archived:c.archived,cursor:c.cursor,direction:c.direction,max_affliction_date:c[`max-affliction-date`],min_affliction_date:c[`min-affliction-date`],order:c.order,page:c.page,per_page:c[`per-page`],search:c.search,remediation_statuses:c[`remediation-statuses`],finding_instance_ids:c[`finding-instance-ids`],asset_ids:c[`asset-ids`]};if(c.dryRun){a({command:`cf data-security posture list-finding-instances`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await n()??`<account-id>`}/data-security/posture/findings/${c[`finding-id`]==null?`<finding-id>`:encodeURIComponent(String(c[`finding-id`]))}/instances`,pathParams:{"finding-id":String(c[`finding-id`]??``)},query:s,bodyKind:`none`});return}let l=await r(c),u=c.local?e:await t();c.accountId=u,i(await o(`Loading`,async()=>l.dataSecurity.posture.listFindingInstances({account_id:u,finding_id:c[`finding-id`],...s})),{successLabel:`Loaded`})})};function ce(e){return e.usage(`$0 data-security posture list-finding-types
|
|
44
|
-
|
|
45
|
-
List all available finding types with pagination support.`).option(`page`,{type:`number`,description:`A page number within the paginated result set.`}).option(`per-page`,{type:`number`,description:`Number of results to return per page.`}).option(`vendors`,{type:`string`,description:`Filter finding types by vendor. Supports multiple comma-separated values. Each value may be either the vendor enum (GOOGLE_WORKSPACE) or the friendly name returned by the read routes (Google Workspace).`}).option(`search`,{type:`string`,description:`Filter finding types by name or ID (case-insensitive substring match).`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const le={command:`list-finding-types`,describe:`List all finding types`,builder:h(ce),handler:async c=>s({command:`data-security posture list-finding-types`,classification:{safeFlags:[`dry-run`]}},c,async()=>{let s={page:c.page,per_page:c[`per-page`],vendors:c.vendors,search:c.search};if(c.dryRun){a({command:`cf data-security posture list-finding-types`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await n()??`<account-id>`}/data-security/posture/finding_types`,pathParams:{},query:s,bodyKind:`none`});return}let l=await r(c),u=c.local?e:await t();c.accountId=u,i(await o(`Loading`,async()=>l.dataSecurity.posture.listFindingTypes({account_id:u,...s})),{successLabel:`Loaded`})})};function ue(e){return e.usage(`$0 data-security posture list-findings
|
|
46
|
-
|
|
47
|
-
List all security findings that have been identified as being problematic. This will return a list of findings regardless if they have been ignored or not.`).option(`cursor`,{type:`string`,description:"A cursor for pagination. Obtained from the `result_info.cursor` field of a previous response."}).option(`direction`,{type:`string`,description:`Direction to order results.`,choices:[`asc`,`desc`]}).option(`ignored`,{type:`boolean`,description:`Filter for only the ignored findings. Set to false to only see "active" items`}).option(`integration-id`,{type:`string`,description:`Filter by an integration ID`}).option(`max-affliction-date`,{type:`string`,description:`Filter to view findings that occurred on or before the affliction date. Can be a date-time in ISO 8601 format or an epoch timestamp.`}).option(`min-affliction-date`,{type:`string`,description:`Filter to view findings that occurred on or after the affliction date. Can be a date-time in ISO 8601 format or an epoch timestamp.`}).option(`observation`,{type:`string`,description:`Filter by observation type of the finding`,choices:[`Activity`,`Insight`,`Issue`]}).option(`order`,{type:`string`,description:`Which field to use when ordering the findings.`,choices:[`finding.name`,`instance_count`,`integration.name`,`latest_affliction_date`,`severity`]}).option(`page`,{type:`number`,description:`A page number within the paginated result set.`}).option(`per-page`,{type:`number`,description:`Number of results to return per page.`}).option(`product`,{type:`string`,description:`Filter by product category of the finding`,choices:[`Cloud`,`Saas`]}).option(`search`,{type:`string`,description:`A search term.`}).option(`severity`,{type:`string`,description:`Filter by severity`,choices:[`Critical`,`High`,`Medium`,`Low`]}).option(`type`,{type:`string`,description:`Filter by type of the finding`,choices:[`Content`,`Posture`]}).option(`vendor`,{type:`string`,description:`Filter by vendor`,choices:[`ANTHROPIC`,`AWS`,`BITBUCKET`,`BOX`,`CONFLUENCE`,`DROPBOX`,`GITHUB`,`GOOGLE_CLOUD_PLATFORM`,`GOOGLE_WORKSPACE`,`JIRA`,`MICROSOFT`,`MICROSOFT_INTERNAL`,`OPENAI`,`SALESFORCE`,`SERVICENOW`,`SLACK`,`ZOOM`]}).option(`finding-type-ids`,{type:`string`,description:`A comma separated list of UUIDs identifying the finding type(s).`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const de={command:`list-findings`,describe:`List posture findings`,builder:h(ue),handler:async c=>s({command:`data-security posture list-findings`,classification:{safeFlags:[`direction`,`ignored`,`observation`,`order`,`product`,`severity`,`type`,`vendor`,`dry-run`]}},c,async()=>{let s={cursor:c.cursor,direction:c.direction,ignored:c.ignored,integration_id:c[`integration-id`],max_affliction_date:c[`max-affliction-date`],min_affliction_date:c[`min-affliction-date`],observation:c.observation,order:c.order,page:c.page,per_page:c[`per-page`],product:c.product,search:c.search,severity:c.severity,type:c.type,vendor:c.vendor,finding_type_ids:c[`finding-type-ids`]};if(c.dryRun){a({command:`cf data-security posture list-findings`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await n()??`<account-id>`}/data-security/posture/findings`,pathParams:{},query:s,bodyKind:`none`});return}let l=await r(c),u=c.local?e:await t();c.accountId=u,i(await o(`Loading`,async()=>l.dataSecurity.posture.listFindings({account_id:u,...s})),{successLabel:`Loaded`})})};function fe(e){return e.usage("$0 data-security posture list-remediation-jobs\n\nList all remediation jobs tied to a specific Cloudflare Account. Note that `cursor` and `page` are mutually exclusive.").option(`cursor`,{type:`string`,description:`A cursor for pagination.`}).option(`page`,{type:`number`,description:`A page number within the paginated result set.`}).option(`per-page`,{type:`number`,description:`Number of results to return per page.`}).option(`search`,{type:`string`,description:`A search term.`}).option(`min-updated-at`,{type:`string`,description:`Filter to view remediations updated on or after the min updated datetime. Can be a date-time in ISO 8601 format or an epoch timestamp.`}).option(`max-updated-at`,{type:`string`,description:`Filter to view remediations updated on or before the max updated datetime. Can be a date-time in ISO 8601 format or an epoch timestamp.`}).option(`status`,{type:`string`,description:`Filter to view remediations with the given status.`,choices:[`pending`,`processing`,`completed`,`failed`,`validating`]}).option(`triggered-by-actor`,{type:`string`,description:`Filter remediations by what kind of actor triggered them. Supports multiple comma-separated values.`}).option(`integration-id`,{type:`string`,description:`Filter by an integration ID`}).option(`order`,{type:`string`,description:`An optional param to sort the results by the given field.`,choices:[`created_at`,`affliction_date`,`integration_name`,`status`,`last_updated_at`,`asset_name`,`finding_type_name`]}).option(`direction`,{type:`string`,description:`Direction to order results.`,choices:[`asc`,`desc`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const pe={command:`list-remediation-jobs`,describe:`List remediation jobs`,builder:h(fe),handler:async c=>s({command:`data-security posture list-remediation-jobs`,classification:{safeFlags:[`status`,`order`,`direction`,`dry-run`]}},c,async()=>{let s={cursor:c.cursor,page:c.page,per_page:c[`per-page`],search:c.search,min_updated_at:c[`min-updated-at`],max_updated_at:c[`max-updated-at`],status:c.status,triggered_by_actor:c[`triggered-by-actor`],integration_id:c[`integration-id`],order:c.order,direction:c.direction};if(c.dryRun){a({command:`cf data-security posture list-remediation-jobs`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await n()??`<account-id>`}/data-security/posture/remediations/jobs`,pathParams:{},query:s,bodyKind:`none`});return}let l=await r(c),u=c.local?e:await t();c.accountId=u,i(await o(`Loading`,async()=>l.dataSecurity.posture.listRemediationJobs({account_id:u,...s})),{successLabel:`Loaded`})})};function me(e){return e.usage(`$0 data-security posture list-webhooks
|
|
48
|
-
|
|
49
|
-
Retrieves all webhook configurations for the authenticated account. Returns an array of webhook configurations that can be used to send finding notifications.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const he={command:`list-webhooks`,describe:`List webhook configurations`,builder:me,handler:async c=>s({command:`data-security posture list-webhooks`,classification:{safeFlags:[`dry-run`]}},c,async()=>{if(c.dryRun){a({command:`cf data-security posture list-webhooks`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await n()??`<account-id>`}/data-security/posture/webhooks`,pathParams:{},bodyKind:`none`});return}let s=await r(c),l=c.local?e:await t();c.accountId=l,i(await o(`Loading`,async()=>s.dataSecurity.posture.listWebhooks({account_id:l})),{successLabel:`Loaded`})})};function ge(e){return e.usage(`$0 data-security posture policies create
|
|
50
|
-
|
|
51
|
-
Creates a new policy configuration that defines automated actions to be executed when security findings are detected. A policy can include multiple remediation and/or webhook actions that will be triggered automatically.`).option(`applies-to-all-integrations`,{type:`boolean`,description:`When true, the policy applies to all integrations for the account. When false, integration_ids must be provided.`}).option(`description`,{type:`string`,description:`Optional description of what this policy does.`}).option(`display-name`,{type:`string`,description:`Display name for the policy configuration.`}).option(`enabled`,{type:`boolean`,description:`Boolean specifying if the policy is enabled or disabled.`}).option(`finding-type-id`,{type:`string`,description:`The finding type this policy is associated with. All remediation actions must match this finding type.`}).option(`integration-ids`,{type:`string`,array:!0,description:`The integrations this policy applies to. Required when applies_to_all_integrations is false.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Request body for creating a new policy configuration.`})}const _e={command:`create`,describe:`Create a new policy configuration`,builder:ge,handler:async l=>s({command:`data-security posture policies create`,classification:{safeFlags:[`applies-to-all-integrations`,`enabled`,`dry-run`]}},l,async()=>{if(l.dryRun){a({command:`cf data-security posture policies create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${await n()??`<account-id>`}/data-security/posture/policies`,pathParams:{},bodyKind:`json`,body:l.body===void 0?u({applies_to_all_integrations:l[`applies-to-all-integrations`],description:d(l.description,`description`,`text`),display_name:d(l[`display-name`],`display-name`,`text`),enabled:l.enabled,finding_type_id:d(l[`finding-type-id`],`finding-type-id`,`text`),integration_ids:l[`integration-ids`]}):c(l.body)});return}let s=await r(l),p=l.local?e:await t();if(l.accountId=p,l.body){let e=c(l.body);i(await o(`Creating`,async()=>s.dataSecurity.posture.policies.create({...e,account_id:p})),{successLabel:`Created`});return}if(l[`applies-to-all-integrations`]===void 0)throw Error(`--applies-to-all-integrations is required (or pass --body with this field set).`);if(l[`display-name`]===void 0&&(l[`display-name`]=await f(`display-name`,`Display name for the policy configuration.`)),l.enabled===void 0)throw Error(`--enabled is required (or pass --body with this field set).`);l[`finding-type-id`]===void 0&&(l[`finding-type-id`]=await f(`finding-type-id`,`The finding type this policy is associated with. All remediation actions must match this finding type.`));let m=u({applies_to_all_integrations:l[`applies-to-all-integrations`],description:d(l.description,`description`,`text`),display_name:d(l[`display-name`],`display-name`,`text`),enabled:l.enabled,finding_type_id:d(l[`finding-type-id`],`finding-type-id`,`text`),integration_ids:l[`integration-ids`]});i(await o(`Creating`,async()=>s.dataSecurity.posture.policies.create({...m,account_id:p})),{successLabel:`Created`})})};function ve(e){return e.usage(`$0 data-security posture policies delete <policy-id>
|
|
52
|
-
|
|
53
|
-
Deletes a policy configuration.`).positional(`policy-id`,{type:`string`,description:`A UUID identifying the 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 ye={command:`delete <policy-id>`,describe:`Delete a policy configuration`,builder:ve,handler:async c=>s({command:`data-security posture policies delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},c,async()=>{if(c.dryRun){a({command:`cf data-security posture policies delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${await n()??`<account-id>`}/data-security/posture/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 r(c),l=c.local?e:await t();if(c.accountId=l,!await m({force:!!c.force})){process.stderr.write(`Aborted.
|
|
54
|
-
`);return}i(await o(`Deleting`,async()=>s.dataSecurity.posture.policies.delete({account_id:l,policy_id:c[`policy-id`]})),{successLabel:`Deleted`})})};function be(e){return e.usage(`$0 data-security posture policies get <policy-id>
|
|
55
|
-
|
|
56
|
-
Retrieves the details of a specific policy configuration, including its associated remediation and webhook actions.`).positional(`policy-id`,{type:`string`,description:`The UUID of the policy configuration to retrieve.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const xe={command:`get <policy-id>`,describe:`Get a policy configuration by ID`,builder:be,handler:async c=>s({command:`data-security posture policies get`,classification:{safeFlags:[`dry-run`]}},c,async()=>{if(c.dryRun){a({command:`cf data-security posture policies get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await n()??`<account-id>`}/data-security/posture/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 r(c),l=c.local?e:await t();c.accountId=l,i(await o(`Loading`,async()=>s.dataSecurity.posture.policies.get({account_id:l,policy_id:c[`policy-id`]})),{successLabel:`Loaded`})})};function Se(e){return e.usage(`$0 data-security posture policies list
|
|
57
|
-
|
|
58
|
-
Returns a list of integration-scoped policy configurations for the given account. This endpoint supports cursor based pagination. By default, results are returned in sorted order based on created_at.`).option(`cursor`,{type:`string`,description:"Cursor for pagination. Obtained from the `result_info.cursor` field of a previous response."}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const Ce={command:`list`,describe:`List policy configurations`,builder:Se,handler:async c=>s({command:`data-security posture policies list`,classification:{safeFlags:[`dry-run`]}},c,async()=>{let s={cursor:c.cursor};if(c.dryRun){a({command:`cf data-security posture policies list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await n()??`<account-id>`}/data-security/posture/policies`,pathParams:{},query:s,bodyKind:`none`});return}let l=await r(c),u=c.local?e:await t();c.accountId=u,i(await o(`Loading`,async()=>l.dataSecurity.posture.policies.list({account_id:u,...s})),{successLabel:`Loaded`})})};function we(e){return e.usage("$0 data-security posture policies logs list\n\nReturns a list of policy invocation logs for the given account, sourced from ClickHouse via Ready Analytics. Each entry represents one execution of a policy against a finding instance, including the actions (remediation jobs and webhooks) it dispatched. Results are scoped to the requesting account's CASB integrations. The `integration_id` query parameter, when supplied, is intersected against the account's integration allowlist; values outside the allowlist are silently dropped. Pagination is offset-based. The response does not include a total row count; clients should treat a result with fewer than `per_page` entries as the end of the list.").option(`since`,{type:`string`,description:"Lower bound on the log entry timestamp. Accepts ISO 8601 / RFC3339 or epoch seconds. Defaults to 7 days before `until`. The window between `since` and `until` cannot exceed 180 days."}).option(`until`,{type:`string`,description:"Upper bound on the log entry timestamp. Accepts ISO 8601 / RFC3339 or epoch seconds. Defaults to the current time. Must be greater than or equal to `since`."}).option(`integration-id`,{type:`string`,description:`Comma-separated list of CASB integration IDs to filter by. At most 100 values, each at most 128 characters. Values outside the account's tenancy allowlist are silently ignored. When omitted, results are scoped to the full allowlist.`}).option(`policy-name`,{type:`string`,description:`Comma-separated list of policy display names to filter by. At most 100 values, each at most 255 characters.`}).option(`page`,{type:`number`,description:`A page number within the paginated result set.`}).option(`per-page`,{type:`number`,description:`Number of results to return per page.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const Te={command:`list`,describe:`List policy invocation logs`,builder:we,handler:async c=>s({command:`data-security posture policies logs list`,classification:{safeFlags:[`dry-run`]}},c,async()=>{let s={since:c.since,until:c.until,integration_id:c[`integration-id`],policy_name:c[`policy-name`],page:c.page,per_page:c[`per-page`]};if(c.dryRun){a({command:`cf data-security posture policies logs list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await n()??`<account-id>`}/data-security/posture/policies/logs`,pathParams:{},query:s,bodyKind:`none`});return}let l=await r(c),u=c.local?e:await t();c.accountId=u,i(await o(`Loading`,async()=>l.dataSecurity.posture.policies.logs.list({account_id:u,...s})),{successLabel:`Loaded`})})},Ee={command:`logs`,describe:`Operations for posture.policies.logs`,builder:e=>e.command(Te).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function De(e){return e.usage(`$0 data-security posture policies update <policy-id>
|
|
59
|
-
|
|
60
|
-
Updates an existing policy configuration and replaces its actions.`).positional(`policy-id`,{type:`string`,description:`Policy configuration ID`,demandOption:!0}).option(`applies-to-all-integrations`,{type:`boolean`,description:`When true, the policy applies to all integrations for the account. When false, integration_ids must be provided.`}).option(`description`,{type:`string`,description:`Optional description of what this policy does.`}).option(`display-name`,{type:`string`,description:`Display name for the policy configuration.`}).option(`enabled`,{type:`boolean`,description:`Boolean specifying if the policy is enabled or disabled.`}).option(`integration-ids`,{type:`string`,array:!0,description:`The integrations this policy applies to. Required when applies_to_all_integrations is false.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Request body for updating an existing policy configuration.`})}const Oe={command:`update <policy-id>`,describe:`Update a policy configuration`,builder:De,handler:async l=>s({command:`data-security posture policies update`,classification:{safeFlags:[`applies-to-all-integrations`,`enabled`,`dry-run`]}},l,async()=>{if(l.dryRun){a({command:`cf data-security posture policies update`,method:`PUT`,url:`https://api.cloudflare.com/client/v4/accounts/${await n()??`<account-id>`}/data-security/posture/policies/${l[`policy-id`]==null?`<policy-id>`:encodeURIComponent(String(l[`policy-id`]))}`,pathParams:{"policy-id":String(l[`policy-id`]??``)},bodyKind:`json`,body:l.body===void 0?u({applies_to_all_integrations:l[`applies-to-all-integrations`],description:d(l.description,`description`,`text`),display_name:d(l[`display-name`],`display-name`,`text`),enabled:l.enabled,integration_ids:l[`integration-ids`]}):c(l.body)});return}let s=await r(l),p=l.local?e:await t();if(l.accountId=p,l.body){let e=c(l.body);i(await o(`Updating`,async()=>s.dataSecurity.posture.policies.update({...e,account_id:p,policy_id:l[`policy-id`]})),{successLabel:`Updated`});return}if(l[`applies-to-all-integrations`]===void 0)throw Error(`--applies-to-all-integrations is required (or pass --body with this field set).`);if(l[`display-name`]===void 0&&(l[`display-name`]=await f(`display-name`,`Display name for the policy configuration.`)),l.enabled===void 0)throw Error(`--enabled is required (or pass --body with this field set).`);let m=u({applies_to_all_integrations:l[`applies-to-all-integrations`],description:d(l.description,`description`,`text`),display_name:d(l[`display-name`],`display-name`,`text`),enabled:l.enabled,integration_ids:l[`integration-ids`]});i(await o(`Updating`,async()=>s.dataSecurity.posture.policies.update({...m,account_id:p,policy_id:l[`policy-id`]})),{successLabel:`Updated`})})},ke={command:`policies`,describe:`Operations for posture.policies`,builder:e=>e.command(_e).command(ye).command(xe).command(Ce).command(Oe).command(Ee).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function Ae(e){return e.usage(`$0 data-security posture reset-finding-severity <finding-id>
|
|
61
|
-
|
|
62
|
-
If a Finding's severity has been changed, reset it back to default value. Does nothing if no override exists.`).positional(`finding-id`,{type:`string`,description:`A base64-encoded ID identifying this Finding.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const je={command:`reset-finding-severity <finding-id>`,describe:`Reset severity for a finding back to the default`,builder:Ae,handler:async c=>s({command:`data-security posture reset-finding-severity`,classification:{safeFlags:[`dry-run`]}},c,async()=>{if(c.dryRun){a({command:`cf data-security posture reset-finding-severity`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${await n()??`<account-id>`}/data-security/posture/findings/${c[`finding-id`]==null?`<finding-id>`:encodeURIComponent(String(c[`finding-id`]))}/reset_finding_severity`,pathParams:{"finding-id":String(c[`finding-id`]??``)},bodyKind:`none`});return}let s=await r(c),l=c.local?e:await t();c.accountId=l,i(await o(`Creating`,async()=>s.dataSecurity.posture.resetFindingSeverity({account_id:l,finding_id:c[`finding-id`]})),{successLabel:`Created`})})};function Me(e){return e.usage(`$0 data-security posture unarchive-finding-instance <finding-id>
|
|
63
|
-
|
|
64
|
-
Remove the archive marking from one or more finding instances.`).positional(`finding-id`,{type:`string`,description:`A base64-encoded ID identifying this Finding.`,demandOption:!0}).option(`check-instances`,{type:`string`,array:!0,description:`A list of finding instance IDs to pass along.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Request body for bulk actions on finding instances.`})}const Ne={command:`unarchive-finding-instance <finding-id>`,describe:`Remove the archive marking from a finding instance`,builder:Me,handler:async l=>s({command:`data-security posture unarchive-finding-instance`,classification:{safeFlags:[`dry-run`]}},l,async()=>{if(l.dryRun){a({command:`cf data-security posture unarchive-finding-instance`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${await n()??`<account-id>`}/data-security/posture/findings/${l[`finding-id`]==null?`<finding-id>`:encodeURIComponent(String(l[`finding-id`]))}/instances/unarchive`,pathParams:{"finding-id":String(l[`finding-id`]??``)},bodyKind:`json`,body:l.body===void 0?u({check_instances:l[`check-instances`]}):c(l.body)});return}let s=await r(l),d=l.local?e:await t();if(l.accountId=d,l.body){let e=c(l.body);i(await o(`Creating`,async()=>s.dataSecurity.posture.unarchiveFindingInstance({body:e,account_id:d,finding_id:l[`finding-id`]})),{successLabel:`Created`});return}if(l[`check-instances`]===void 0)throw Error(`--check-instances is required (or pass --body with this field set).`);let f=u({check_instances:l[`check-instances`]});i(await o(`Creating`,async()=>s.dataSecurity.posture.unarchiveFindingInstance({body:f,account_id:d,finding_id:l[`finding-id`]})),{successLabel:`Created`})})};function Pe(e){return e.usage(`$0 data-security posture unignore-finding
|
|
65
|
-
|
|
66
|
-
Ability to un-ignore a Finding if it's previously been ignored. Does nothing if the Finding is not ignored.`).option(`checks`,{type:`string`,array:!0,description:`A list of finding IDs to pass along.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Request body for bulk actions on findings.`})}const $={command:`unignore-finding`,describe:`Remove ignore marker from a finding`,builder:Pe,handler:async l=>s({command:`data-security posture unignore-finding`,classification:{safeFlags:[`dry-run`]}},l,async()=>{if(l.dryRun){a({command:`cf data-security posture unignore-finding`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${await n()??`<account-id>`}/data-security/posture/findings/unignore`,pathParams:{},bodyKind:`json`,body:l.body===void 0?u({checks:l.checks}):c(l.body)});return}let s=await r(l),d=l.local?e:await t();if(l.accountId=d,l.body){let e=c(l.body);i(await o(`Creating`,async()=>s.dataSecurity.posture.unignoreFinding({body:e,account_id:d})),{successLabel:`Created`});return}if(l.checks===void 0)throw Error(`--checks is required (or pass --body with this field set).`);let f=u({checks:l.checks});i(await o(`Creating`,async()=>s.dataSecurity.posture.unignoreFinding({body:f,account_id:d})),{successLabel:`Created`})})};function Fe(e){return e.usage(`$0 data-security posture webhooks delete <webhook-id>
|
|
67
|
-
|
|
68
|
-
Soft deletes a webhook configuration by its unique identifier. The webhook will be marked as deleted and will no longer be available for use.`).positional(`webhook-id`,{type:`string`,description:`A UUID identifying the webhook configuration.`,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 Ie={command:`delete <webhook-id>`,describe:`Delete a webhook configuration`,builder:Fe,handler:async c=>s({command:`data-security posture webhooks delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},c,async()=>{if(c.dryRun){a({command:`cf data-security posture webhooks delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${await n()??`<account-id>`}/data-security/posture/webhooks/${c[`webhook-id`]==null?`<webhook-id>`:encodeURIComponent(String(c[`webhook-id`]))}`,pathParams:{"webhook-id":String(c[`webhook-id`]??``)},bodyKind:`none`});return}let s=await r(c),l=c.local?e:await t();if(c.accountId=l,!await m({force:!!c.force})){process.stderr.write(`Aborted.
|
|
69
|
-
`);return}i(await o(`Deleting`,async()=>s.dataSecurity.posture.webhooks.delete({account_id:l,webhook_id:c[`webhook-id`]})),{successLabel:`Deleted`})})};function Le(e){return e.usage(`$0 data-security posture webhooks update <webhook-id>
|
|
70
|
-
|
|
71
|
-
Updates an existing webhook configuration with new settings.`).positional(`webhook-id`,{type:`string`,description:`A UUID identifying the webhook configuration.`,demandOption:!0}).option(`authentication-type`,{type:`string`,description:`Type of authentication used for the webhook.`,choices:[`Basic Auth`,`None`,`Bearer Auth`,`Static Headers`,`HMAC-Signing`]}).option(`destination-url`,{type:`string`,description:`Target URL for the webhook configuration. Where resulting data will be sent.`}).option(`headers`,{type:`string`,description:`List of custom headers to include in webhook requests. Provide as a JSON array of objects or @path/to/file.json.`}).option(`label`,{type:`string`,description:`Account-specified display label for the webhook configuration.`}).option(`signing-secret`,{type:`string`,description:`Secret key used for HMAC signing when authentication_type is "HMAC-Signing".`}).option(`status`,{type:`string`,description:`Status of the webhook configuration.`,choices:[`enabled`,`disabled`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Request body for updating an existing webhook configuration.`})}const Re={command:`update <webhook-id>`,describe:`Update an existing webhook configuration`,builder:Le,handler:async m=>s({command:`data-security posture webhooks update`,classification:{safeFlags:[`authentication-type`,`status`,`dry-run`]}},m,async()=>{if(m.dryRun){a({command:`cf data-security posture webhooks update`,method:`PUT`,url:`https://api.cloudflare.com/client/v4/accounts/${await n()??`<account-id>`}/data-security/posture/webhooks/${m[`webhook-id`]==null?`<webhook-id>`:encodeURIComponent(String(m[`webhook-id`]))}`,pathParams:{"webhook-id":String(m[`webhook-id`]??``)},bodyKind:`json`,body:m.body===void 0?u({authentication_type:d(m[`authentication-type`],`authentication-type`,`text`),destination_url:d(m[`destination-url`],`destination-url`,`text`),headers:l(m.headers,`headers`),label:d(m.label,`label`,`text`),signing_secret:d(m[`signing-secret`],`signing-secret`,`text`),status:d(m.status,`status`,`text`)}):c(m.body)});return}let s=await r(m),h=m.local?e:await t();if(m.accountId=h,m.body){let e=c(m.body);i(await o(`Updating`,async()=>s.dataSecurity.posture.webhooks.update({...e,account_id:h,webhook_id:m[`webhook-id`]})),{successLabel:`Updated`});return}m[`authentication-type`]===void 0&&(m[`authentication-type`]=await p(`authentication-type`,`Type of authentication used for the webhook.`,[`Basic Auth`,`None`,`Bearer Auth`,`Static Headers`,`HMAC-Signing`])),m[`destination-url`]===void 0&&(m[`destination-url`]=await f(`destination-url`,`Target URL for the webhook configuration. Where resulting data will be sent.`)),m.label===void 0&&(m.label=await f(`label`,`Account-specified display label for the webhook configuration.`)),m.status===void 0&&(m.status=await p(`status`,`Status of the webhook configuration.`,[`enabled`,`disabled`]));let g=u({authentication_type:d(m[`authentication-type`],`authentication-type`,`text`),destination_url:d(m[`destination-url`],`destination-url`,`text`),headers:l(m.headers,`headers`),label:d(m.label,`label`,`text`),signing_secret:d(m[`signing-secret`],`signing-secret`,`text`),status:d(m.status,`status`,`text`)});i(await o(`Updating`,async()=>s.dataSecurity.posture.webhooks.update({...g,account_id:h,webhook_id:m[`webhook-id`]})),{successLabel:`Updated`})})},ze={command:`webhooks`,describe:`Operations for posture.webhooks`,builder:e=>e.command(Ie).command(Re).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},Be={command:`posture`,describe:`Operations for posture`,builder:e=>e.command(ee).command(_).command(T).command(D).command(j).command(k).command(F).command(N).command(L).command(z).command(W).command(X).command(K).command(J).command(Q).command(re).command(ae).command(se).command(le).command(de).command(pe).command(he).command(je).command(Ne).command($).command(C).command(H).command(ke).command(ze).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},Ve={command:`data-security`,describe:`data-security`,builder:e=>e.command(Be).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};export{Ve as default};
|
package/dist/dev-CVD3BVUG.mjs
DELETED
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
import{t as e}from"./src-Hw-TlVAO.mjs";import{a as t}from"./theme-BiIYWOed.mjs";import"./ui-DH95w1Qk.mjs";import{a as n,i as r,n as i,r as a,t as o}from"./spawn-BWEuIO-w.mjs";import{t as s}from"./registry-vreNkX6u.mjs";const c={command:`dev [implArgs..]`,describe:`Run the project's Cloudflare dev server`,builder:e=>e.positional(`implArgs`,{type:`string`,array:!0,describe:`Arguments forwarded to the dev-server implementation`}).parserConfiguration({"unknown-options-as-args":!0,"camel-case-expansion":!1}).epilogue(`cf dev starts the appropriate development server for your project. It runs your framework's dev command when available, falling back to an installed Cloudflare dev server.
|
|
3
|
-
|
|
4
|
-
Only ${t.brand(`--mode`)} is forwarded to supported framework development servers. Other arguments are forwarded only to Cloudflare dev-server implementations.`),handler:async t=>{let c=process.cwd(),l=await a(c);l&&!l.configured&&await r(l);let u=(t.implArgs??[]).map(String),d=t.mode?[`--mode`,t.mode]:[];if(l?.devCommand){if(u.length>0)throw Error(`Arguments cannot currently be forwarded to the detected dev command \`${l.devCommand}\`. Run that command directly with the required arguments.`);if(t.mode&&!l.framework?.supportsMode)throw Error(`The detected command \`${l.devCommand}\` does not currently support \`--mode\`.`);let r=await n(l.devCommand,c,{env:{...l.env,...s()},args:d});throw new e(r.exitCode,{signal:r.signal})}let f=await o(i(c),`dev`,[...d,...u]);throw new e(f.exitCode,{signal:f.signal})}};export{c as default};
|
package/dist/dialog--iw0F2s-.mjs
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
import{t as e}from"./src-Hw-TlVAO.mjs";import{M as t,n}from"./interactive-B6woOLo-.mjs";import{i as r,o as i,t as a}from"./dist-BpadEMNY.mjs";async function o(r,i){if(n())return i.fallbackValue??!1;let o=await a({message:r,initialValue:i.defaultValue,output:i.output});if(t(o))throw new e(130,{cancelled:!0});return o}async function s(r,a={}){if(n()){if(a.fallbackValue===void 0)throw Error(a.fallbackError);return a.fallbackValue}for(;;){let n=await i({message:r,defaultValue:a.defaultValue,initialValue:a.initialValue,output:a.output});if(t(n))throw new e(130,{cancelled:!0});let o=await a.validate?.(n);if(o===void 0||o===!0)return n;console.error(o===!1?`Invalid value`:o)}}async function c(i,a){if(n()){let e=a.fallbackOption??a.defaultOption??0,t=a.choices[e]??a.choices[0];if(!t)throw Error(a.fallbackError??`select() called with no choices`);return t.value}let o=await r({message:i,options:a.choices.map(e=>({label:e.title,value:e.value,hint:e.description})),initialValue:a.choices[a.defaultOption??0]?.value,output:a.output});if(t(o))throw new e(130,{cancelled:!0});return o}export{s as n,c as r,o as t};
|