cf 1.0.0-beta.5 → 1.0.0-beta.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_meta/commands.json +5047 -5068
- package/dist/_meta/hand-written-commands.json +1 -1
- package/dist/_meta/schemas.json +3026 -3123
- package/dist/abuse-reports-BtI6fvRl.mjs +24 -0
- package/dist/{access-DRlrq_cq.mjs → access-CqOyTHw4.mjs} +1 -1
- package/dist/{account-tags-DMCYk5rR.mjs → account-tags-7I77Dwsd.mjs} +1 -1
- package/dist/{accounts-BlVDzIWc.mjs → accounts-Cq-eOPzL.mjs} +32 -26
- package/dist/{acm-CCc33e4l.mjs → acm-CSXnlN6o.mjs} +1 -1
- package/dist/{addressing-BA-5A3jQ.mjs → addressing-C5XvjNhk.mjs} +1 -1
- package/dist/{agent-memory-Csgs8W5u.mjs → agent-memory-CSzr9gty.mjs} +1 -1
- package/dist/{ai-BN_pzw7p.mjs → ai-C0xWIvsG.mjs} +7 -9
- package/dist/{ai-audit-Dbln3Ai6.mjs → ai-audit-B43vm1KJ.mjs} +1 -1
- package/dist/{ai-gateway-BhASWwdp.mjs → ai-gateway-BK3MbIzT.mjs} +1 -1
- package/dist/{ai-search-DvA8g4xr.mjs → ai-search-TrFTxBbn.mjs} +1 -1
- package/dist/{ai-security-nualpneg.mjs → ai-security-JrYa27qd.mjs} +1 -1
- package/dist/{alerting-HUbVuQMl.mjs → alerting-B1-ZwfVT.mjs} +1 -1
- package/dist/{analytics-ClKN9YnQ.mjs → analytics-B-wlVtDV.mjs} +1 -1
- package/dist/{analytics_engine-DP_O5HIq.mjs → analytics_engine-DWzzQzOs.mjs} +1 -1
- package/dist/{api-security-Ce_9nFH9.mjs → api-security-BWFWWmXl.mjs} +1 -1
- package/dist/{argo-CLLBrtiV.mjs → argo-DHPGTvCT.mjs} +1 -1
- package/dist/{artifacts-CIxZX3VM.mjs → artifacts-mmBDk3wO.mjs} +1 -1
- package/dist/{audit-logs-DjzIj9T4.mjs → audit-logs-CCF5e500.mjs} +1 -1
- package/dist/{auth-CgPQplnD.mjs → auth-Dnp10uLy.mjs} +1 -1
- package/dist/{auth-B_Utev-x.mjs → auth-gOCL6Pm0.mjs} +2 -2
- package/dist/{autoconfig-BunaOShS.mjs → autoconfig-DqEPKpj0.mjs} +1 -1
- package/dist/basin-catalog-hRY01t_Z.mjs +44 -0
- package/dist/{billing-tHlHhEVf.mjs → billing-C_ev-9nh.mjs} +1 -1
- package/dist/{bot-management-ChV-gaXh.mjs → bot-management-CyYsXkZt.mjs} +1 -1
- package/dist/{botnet-feed-DQWBOEqC.mjs → botnet-feed-Dj5R5v2o.mjs} +1 -1
- package/dist/{brand-protection-B3afeuOj.mjs → brand-protection-CmQ6Iu0I.mjs} +1 -1
- package/dist/{browser-run-eQMomr1x.mjs → browser-run-sWHTsCSB.mjs} +1 -1
- package/dist/build-Dyt1M_Ib.mjs +2 -0
- package/dist/{build-VUz0URCV.mjs → build-_qqitpn0.mjs} +1 -1
- package/dist/{builds-wTOvlp0S.mjs → builds-c21rTfcg.mjs} +1 -1
- package/dist/{cache-s4HK0we7.mjs → cache-CuNjJl6m.mjs} +27 -27
- package/dist/{certificate-authorities-CaPUfYzA.mjs → certificate-authorities-DRUUzvI3.mjs} +1 -1
- package/dist/{cli-CT-QJu7q.mjs → cli-Caa776EB.mjs} +1 -1
- package/dist/{client-certificates-BfNDnT8H.mjs → client-certificates-BSi1CEGk.mjs} +1 -1
- package/dist/{client-side-security-BV7iORbb.mjs → client-side-security-BdxUX3Y8.mjs} +1 -1
- package/dist/{cloud-connector-CGT8ezvv.mjs → cloud-connector-B46ajuAj.mjs} +1 -1
- package/dist/{cloudforce-one-BDhbXtA_.mjs → cloudforce-one-adbVR2Ah.mjs} +47 -56
- package/dist/{command-DJF4wdrM.mjs → command-B47VlNBp.mjs} +1 -1
- package/dist/{command-ozwmaY7n.mjs → command-B5Itp2BM.mjs} +1 -1
- package/dist/{command-DjNcY4cf.mjs → command-BDCTd8Ra.mjs} +1 -1
- package/dist/{command-Cox9Wh1i.mjs → command-BmXnByw9.mjs} +1 -1
- package/dist/{command-C3Qhz4kU.mjs → command-Bw-M_qxb.mjs} +1 -1
- package/dist/{command-BgBsFEYv.mjs → command-C2bU5Etc.mjs} +1 -1
- package/dist/{command-DQcG8PK-.mjs → command-CHcCSvVz.mjs} +1 -1
- package/dist/{command-C8gLcKlB.mjs → command-CRgQ0dM3.mjs} +1 -1
- package/dist/{command-DH67hNLj.mjs → command-CVg0qT13.mjs} +1 -1
- package/dist/{command-DpEQ07Xe.mjs → command-CkJvjkfK.mjs} +1 -1
- package/dist/{command-C_l69o2b.mjs → command-DV196MKR.mjs} +1 -1
- package/dist/{command-lYaHS62l.mjs → command-Du3MiYA7.mjs} +1 -1
- package/dist/{command-SgtzgQrs.mjs → command-eBmGBTA7.mjs} +1 -1
- package/dist/{command-G_VL3Jf8.mjs → command-eqgT8zz4.mjs} +1 -1
- package/dist/{completions-VR53Fiec.mjs → completions-DbT6O2ol.mjs} +1 -1
- package/dist/{connector-interrupts-hfttjm-b.mjs → connector-interrupts-BhfMiPcq.mjs} +1 -1
- package/dist/{connector-telemetry-events-5nVvivYA.mjs → connector-telemetry-events-CxKECRgO.mjs} +1 -1
- package/dist/{connector-telemetry-snapshots-DKk_7VQa.mjs → connector-telemetry-snapshots-BHi-jHE5.mjs} +1 -1
- package/dist/{connectors-CvX4Z3cg.mjs → connectors-gkP2aNSN.mjs} +1 -1
- package/dist/{containers-BU9RquYh.mjs → containers-BY8pinEV.mjs} +1 -1
- package/dist/{containers-BQxj87na.mjs → containers-DUvBpnRo.mjs} +1 -1
- package/dist/{content-scan-hWh-aGbO.mjs → content-scan-BCPhAjMZ.mjs} +1 -1
- package/dist/{context-CPVzoKbN.mjs → context-CE7QFX-z.mjs} +1 -1
- package/dist/{cps-o8QQFfnF.mjs → cps-B35EPUAk.mjs} +1 -1
- package/dist/{csamScanner-DHod3Hak.mjs → csamScanner-DcTA9oLR.mjs} +1 -1
- package/dist/{ct-alerting-D-_YsE1x.mjs → ct-alerting-B3CS-CPk.mjs} +1 -1
- package/dist/{custom-certificates-UnaVRb3W.mjs → custom-certificates-IjJJhl7_.mjs} +1 -1
- package/dist/{custom-csrs-BCJ7LOUe.mjs → custom-csrs-ChYOaEQg.mjs} +1 -1
- package/dist/{custom-hostnames-DOluVIfa.mjs → custom-hostnames-Bai3cqAD.mjs} +1 -1
- package/dist/{custom-nameservers-CvIucaA2.mjs → custom-nameservers-DsukmLNZ.mjs} +1 -1
- package/dist/{custom-pages-DzrXSeCR.mjs → custom-pages-CiboX-9D.mjs} +1 -1
- package/dist/d1-s293SFAJ.mjs +41 -0
- package/dist/{dcv-delegation-9bMHPSoc.mjs → dcv-delegation-BfgvmpQT.mjs} +1 -1
- package/dist/{deploy-BT_EVz0K.mjs → deploy-CvxNMDbS.mjs} +1 -1
- package/dist/{deploy-input-YW632ysz.mjs → deploy-input-CNrImP7B.mjs} +1 -1
- package/dist/{dev-jRnP9IIJ.mjs → dev-Z6vYszaT.mjs} +1 -1
- package/dist/{diagnostics-BIe-XR-P.mjs → diagnostics-Ops0RjxG.mjs} +1 -1
- package/dist/discover-CcGReXr0.mjs +2 -0
- package/dist/{dist-COohnEBL.mjs → dist-Dgnf_i4w.mjs} +1 -1
- package/dist/{dls-BuKO5QWL.mjs → dls-uo7NYEqE.mjs} +1 -1
- package/dist/{dns-DzVN-WA4.mjs → dns-B-NwBOpQ.mjs} +52 -43
- package/dist/{dns-firewall-Dx_XvWKJ.mjs → dns-firewall-LTIP13nb.mjs} +1 -1
- package/dist/durable-objects-o7uB3YYg.mjs +6 -0
- package/dist/{email-auth-DqIyzEcR.mjs → email-auth-BUdBDCaE.mjs} +1 -1
- package/dist/{email-routing-8rhAmzOY.mjs → email-routing-BPRliM3z.mjs} +1 -1
- package/dist/{email-security-BRq5J31C.mjs → email-security-dbLE3I5c.mjs} +50 -50
- package/dist/{email-sending-Bsfk4Jia.mjs → email-sending-BLlGy5Mn.mjs} +1 -1
- package/dist/error-sanitization-CEf4JTNN.mjs +2 -0
- package/dist/{error-sanitization-Dc4bLj8k.mjs → error-sanitization-CcNUzN1f.mjs} +1 -1
- package/dist/{fieldExtractors-COaK02vB.mjs → fieldExtractors-M-KfLOGw.mjs} +1 -1
- package/dist/{firewall-Dar706zc.mjs → firewall-DzbLwqo3.mjs} +1 -1
- package/dist/flagship-DcXWEywy.mjs +28 -0
- package/dist/{fraud-H-mdJfRU.mjs → fraud-CGXRWANi.mjs} +1 -1
- package/dist/generate-t4dFfFRV.mjs +2 -0
- package/dist/{google-tag-gateway-zqXS_12f.mjs → google-tag-gateway-B3Z3Puwl.mjs} +1 -1
- package/dist/{healthchecks-x889sT8g.mjs → healthchecks-BIiV29q7.mjs} +1 -1
- package/dist/{hostnames-DqB5I-_U.mjs → hostnames-ueWsZFwv.mjs} +1 -1
- package/dist/{hyperdrive-sR7Mwif9.mjs → hyperdrive-Bxk9LZf5.mjs} +1 -1
- package/dist/{iam-CKt7U41p.mjs → iam-kA9gcv79.mjs} +1 -1
- package/dist/{images-CakdBcMc.mjs → images-CK4J5as7.mjs} +1 -1
- package/dist/index.mjs +1 -1
- package/dist/{init-CVyWV_Ow.mjs → init-COcG8sp5.mjs} +2 -2
- package/dist/{intel-Dcv1vMsK.mjs → intel-z7DkM9Xc.mjs} +1 -1
- package/dist/{ips-Ce9_k1Vh.mjs → ips-BXdBK4Co.mjs} +1 -1
- package/dist/{keyless-certificates-Cf_6sc7K.mjs → keyless-certificates-Dp9xTYtD.mjs} +1 -1
- package/dist/{keys-DW2A43fL.mjs → keys-DrVlj4VI.mjs} +1 -1
- package/dist/{kv-BKBWXf8s.mjs → kv-WX-dlUT1.mjs} +1 -1
- package/dist/{lazy-command-BOjQB_U7.mjs → lazy-command-g04RHlS2.mjs} +1 -1
- package/dist/{leaked-credential-checks-D-gwxxaF.mjs → leaked-credential-checks-BMQ0VhCd.mjs} +1 -1
- package/dist/{load-balancers-DHUVei95.mjs → load-balancers-BbkSL89c.mjs} +1 -1
- package/dist/local-BWhuu9TH.mjs +2 -0
- package/dist/{local-B3OyWKkW.mjs → local-Cyk8fPvL.mjs} +1 -1
- package/dist/{local-runtime-Co5vVDlI.mjs → local-runtime-CWWJJB2E.mjs} +1 -1
- package/dist/{login-CptngugC.mjs → login-CyU_ZTNI.mjs} +1 -1
- package/dist/{login-D37fy09s.mjs → login-DYQ8UgJQ.mjs} +1 -1
- package/dist/{logo-matches-D1aNSBnZ.mjs → logo-matches-HFmD2hK6.mjs} +1 -1
- package/dist/{logos-SyEjq15s.mjs → logos-Di2PABE_.mjs} +1 -1
- package/dist/{logpush-l9tVWnua.mjs → logpush-DEqdt0I0.mjs} +1 -1
- package/dist/logs-Ckfw-3Q_.mjs +37 -0
- package/dist/{magic-cloud-networking-CN2Qd2Lx.mjs → magic-cloud-networking-C0yBJKMb.mjs} +1 -1
- package/dist/{magic-network-monitoring-8jxG-tPc.mjs → magic-network-monitoring-CLvaiI7s.mjs} +1 -1
- package/dist/{magic-transit-DLhIQz2l.mjs → magic-transit-Bhb1kxYj.mjs} +108 -112
- package/dist/{managed-defense-CgKdTd9J.mjs → managed-defense-COL3aqXw.mjs} +1 -1
- package/dist/{managed-transforms-BASi4j_s.mjs → managed-transforms-cK0strTK.mjs} +1 -1
- package/dist/{matches-BCV6x948.mjs → matches-Df4WEz0x.mjs} +1 -1
- package/dist/{mcp-DQODvLQm.mjs → mcp-DK_5OUVl.mjs} +1 -1
- package/dist/{mesh-S_yYh-w3.mjs → mesh-CVXpTYED.mjs} +1 -1
- package/dist/{migrate-B4kBnkpV.mjs → migrate-CipwWhJE.mjs} +1 -1
- package/dist/monetization-BHk0S5BF.mjs +20 -0
- package/dist/{mtls-certificates-XJXK21J_.mjs → mtls-certificates-8pzdxzOX.mjs} +1 -1
- package/dist/{network-DA81Mcdh.mjs → network-ClNeXTvG.mjs} +1 -1
- package/dist/{network-interconnects-OttR92s7.mjs → network-interconnects-t3jSoV7o.mjs} +1 -1
- package/dist/{oauth-ChXrM0q9.mjs → oauth-CJamdfrC.mjs} +1 -1
- package/dist/{oauth-CKeW8CqE.mjs → oauth-CNSirGUu.mjs} +1 -1
- package/dist/{oauth-clients-Ba-YZsxB.mjs → oauth-clients-DBxdvlJC.mjs} +1 -1
- package/dist/{oauth-scopes-XqOk2zCQ.mjs → oauth-scopes-D39GYkt6.mjs} +1 -1
- package/dist/{observability-BdIbZ1D8.mjs → observability-ZV1yPflB.mjs} +1 -1
- package/dist/{organization-DnQ2_txo.mjs → organization-Bk-TkQlB.mjs} +7 -7
- package/dist/{organizations-BkI0IhEg.mjs → organizations-hXITNpPl.mjs} +1 -1
- package/dist/{origin-ca-certificates-Br91H1EG.mjs → origin-ca-certificates-DsLR_Z2e.mjs} +1 -1
- package/dist/{origin-post-quantum-encryption-BcpK8DaG.mjs → origin-post-quantum-encryption-C_egsVQu.mjs} +1 -1
- package/dist/{origin-tls-client-auth-CYK6YnzK.mjs → origin-tls-client-auth-DPG6A6kz.mjs} +1 -1
- package/dist/{page-rules-DpOcNsJr.mjs → page-rules-B8lrkiiF.mjs} +1 -1
- package/dist/pages-Cx4doLvQ.mjs +54 -0
- package/dist/{pay-per-crawl-BORpCGxC.mjs → pay-per-crawl-BUVHqPPA.mjs} +1 -1
- package/dist/{pay-per-use-CZw-KHEz.mjs → pay-per-use-CzYgryid.mjs} +1 -1
- package/dist/{pipelines-DDDyJ6Oe.mjs → pipelines-CGHmwc4a.mjs} +1 -1
- package/dist/{precursor-DrH1i64o.mjs → precursor--Jim5u4y.mjs} +1 -1
- package/dist/{previews-CiYBBKj8.mjs → previews-BKO1pZyG.mjs} +1 -1
- package/dist/{progress-DS2fwfNP.mjs → progress-CRjK46r1.mjs} +1 -1
- package/dist/{prompt-doX80PCd.mjs → prompt-C_90YsVE.mjs} +1 -1
- package/dist/{queries-CD6h6iEP.mjs → queries-z2pjzXlA.mjs} +1 -1
- package/dist/{queues-3TpjE349.mjs → queues-D0IXxSa7.mjs} +1 -1
- package/dist/{r2-CV_hSFkM.mjs → r2-DQ7w9dCM.mjs} +1 -1
- package/dist/r2-data-catalog-DpktRU5y.mjs +2 -0
- package/dist/{radar-6-4_LoQ1.mjs → radar-DyLO7Zg1.mjs} +1 -1
- package/dist/{raw-fetch-_Z55VEDY.mjs → raw-fetch-C8SdmQBp.mjs} +1 -1
- package/dist/{realtime-B5ce977I.mjs → realtime-mQzLbDxe.mjs} +1 -1
- package/dist/{registrar-CF-3h2dN.mjs → registrar-ClbtM5Dy.mjs} +2 -2
- package/dist/{registrar-sandbox-BDRZbyAV.mjs → registrar-sandbox-BIEHm_Jp.mjs} +2 -2
- package/dist/{reporting-CiS-RBNJ.mjs → reporting-CjkMzSsZ.mjs} +1 -1
- package/dist/{request-headers-DPbWytRv.mjs → request-headers-jr2VznA9.mjs} +1 -1
- package/dist/{request-tracers-Drcpv8ha.mjs → request-tracers-BoSXOTox.mjs} +1 -1
- package/dist/{resource-sharing-BI3CoOjl.mjs → resource-sharing-CFS39nJq.mjs} +1 -1
- package/dist/{resource-tagging-D4i_-E0W.mjs → resource-tagging-CZ5mvMhE.mjs} +1 -1
- package/dist/{rules-C4I4CLoq.mjs → rules-CfqumI45.mjs} +4 -4
- package/dist/{rulesets-c2efesdy.mjs → rulesets-o3jsPv4U.mjs} +20 -20
- package/dist/{rum-DT58nW8a.mjs → rum-BZ0rYlun.mjs} +1 -1
- package/dist/run-D0_7wBp2.mjs +2 -0
- package/dist/{run-CJ-6owN3.mjs → run-huwFFwXd.mjs} +1 -1
- package/dist/{schema-flags-DDW79Tda.mjs → schema-flags-nL7pHvaE.mjs} +1 -1
- package/dist/{scim-PfJWMuRu.mjs → scim-0-eR9pvC.mjs} +1 -1
- package/dist/{sdk-Bx29ZKK3.mjs → sdk-Bmz7t_CD.mjs} +1 -1
- package/dist/{secrets-store-7jrgww1J.mjs → secrets-store-Duc29Zs-.mjs} +1 -1
- package/dist/security-insights-5CuLC-Yo.mjs +40 -0
- package/dist/{security-txt-ButEG3qy.mjs → security-txt-qm2PqCPz.mjs} +1 -1
- package/dist/{shared-JNtE--kh.mjs → shared-BDIrEKWt.mjs} +1 -1
- package/dist/{smart-shield-DgbYuUFC.mjs → smart-shield-BXLH9OM0.mjs} +1 -1
- package/dist/{snippets-De-xVTIb.mjs → snippets-DZG6UWeH.mjs} +1 -1
- package/dist/{spawn-IM_tQldH.mjs → spawn-KZqyx6KK.mjs} +1 -1
- package/dist/{spectrum-DcknX0jS.mjs → spectrum-Be4ImAIY.mjs} +1 -1
- package/dist/{speed-Cn_p-ieT.mjs → speed-CNWujfIC.mjs} +1 -1
- package/dist/{src-BYjublVL.mjs → src-CW6py11z.mjs} +5 -5
- package/dist/{ssl-Bkn4ke9Q.mjs → ssl-BIlS4Qs8.mjs} +1 -1
- package/dist/{stream-Cx78uNm_.mjs → stream-C5RvTAKF.mjs} +1 -1
- package/dist/{submit-Gu34n1a6.mjs → submit-Bpru4P79.mjs} +1 -1
- package/dist/{tags-BQqO7TLX.mjs → tags-Rv7X1rU9.mjs} +1 -1
- package/dist/{telemetry-Qc-g_0fL.mjs → telemetry-0npQCuKc.mjs} +1 -1
- package/dist/telemetry-B4_YhD82.mjs +2 -0
- package/dist/tenant-CjYf6OPN.mjs +10 -0
- package/dist/{tenant-custom-nameservers-B5Nf5hLr.mjs → tenant-custom-nameservers-BbHaaEhv.mjs} +1 -1
- package/dist/{tunnels-ndJtol-f.mjs → tunnels-CLWPaIIF.mjs} +1 -1
- package/dist/{turnstile-Cd65N6jD.mjs → turnstile-C5ezKSoz.mjs} +1 -1
- package/dist/update-check-CebyUyqG.mjs +2 -0
- package/dist/{update-check-AraGlAQf.mjs → update-check-aOpHVlzB.mjs} +1 -1
- package/dist/update-check-worker.mjs +1 -1
- package/dist/{url-info-CQKJ5A-x.mjs → url-info-Gcf8-MyB.mjs} +1 -1
- package/dist/{url-normalization-BPXZwYu0.mjs → url-normalization-Dvg8mZRk.mjs} +1 -1
- package/dist/{url-scanner-Bq43LJ98.mjs → url-scanner-BZCsgh0O.mjs} +1 -1
- package/dist/{user-D4InwQxA.mjs → user-BnkvXmjc.mjs} +1 -1
- package/dist/{values-C3YLablc.mjs → values-yUGls__L.mjs} +1 -1
- package/dist/{vectorize-CYt0qXQ5.mjs → vectorize-BiXngTuI.mjs} +3 -3
- package/dist/version-C3q1GMTe.mjs +2 -0
- package/dist/{waiting-rooms-B3ksWao9.mjs → waiting-rooms-BoLWF74U.mjs} +1 -1
- package/dist/{web-assets-DNiElHgV.mjs → web-assets-CEJ9Zne1.mjs} +1 -1
- package/dist/{web3-DfMKMDix.mjs → web3-CIjm7EuJ.mjs} +1 -1
- package/dist/workers-DdtWb7Ws.mjs +38 -0
- package/dist/{workers-builds-DbEy311-.mjs → workers-builds-DT4tA-KT.mjs} +1 -1
- package/dist/workers-for-platforms-CaCr8ApU.mjs +42 -0
- package/dist/{workers-vpc-BEnB6e_3.mjs → workers-vpc-DRtjG39D.mjs} +1 -1
- package/dist/{workflows-CX3Zer8w.mjs → workflows-DRme6yrC.mjs} +2 -2
- package/dist/{wrangler-migration-BDkh1_IV.mjs → wrangler-migration-BDnS1puc.mjs} +1 -1
- package/dist/{zaraz-DR1KbYY-.mjs → zaraz-DmjDEnUJ.mjs} +1 -1
- package/dist/{zero-trust-CLoXVq1e.mjs → zero-trust-BRAHExxa.mjs} +427 -441
- package/dist/{zone-B9qejq6W.mjs → zone-CclLvb-g.mjs} +1 -1
- package/dist/{zones-BxU08wO0.mjs → zones-C6tc2OOV.mjs} +1 -1
- package/package.json +3 -2
- package/dist/abuse-reports-DoqL_52r.mjs +0 -26
- package/dist/account-DfC3gRTf.mjs +0 -12
- package/dist/build-DFa0ngeO.mjs +0 -2
- package/dist/d1-BCg7BhWi.mjs +0 -45
- package/dist/discover-DgHRf-qo.mjs +0 -2
- package/dist/durable-objects-DnU6OsEb.mjs +0 -8
- package/dist/error-sanitization-Cu-8OKRA.mjs +0 -2
- package/dist/flagship-CTchDpyw.mjs +0 -28
- package/dist/generate-qMU-2MgC.mjs +0 -2
- package/dist/local-qOpZjDed.mjs +0 -2
- package/dist/logs-EW0Pq-gf.mjs +0 -48
- package/dist/pages-Cw4DM-1N.mjs +0 -60
- package/dist/r2-data-catalog-D_YHTMFG.mjs +0 -44
- package/dist/run-D0esoYSn.mjs +0 -2
- package/dist/security-center-BhUM_Flh.mjs +0 -30
- package/dist/telemetry-D2UwfCd1.mjs +0 -2
- package/dist/tenant-Dr0hGlhU.mjs +0 -12
- package/dist/update-check-D5-zqJoN.mjs +0 -2
- package/dist/version-DyZwKU6l.mjs +0 -2
- package/dist/workers-C8uiRedD.mjs +0 -40
- package/dist/workers-for-platforms-BjvcY5A1.mjs +0 -25
- /package/dist/{alerts-DqZgVSCT.mjs → alerts-DY_7Nknx.mjs} +0 -0
- /package/dist/{autorag-Cq9k9Ye6.mjs → autorag-K396-M2S.mjs} +0 -0
- /package/dist/{cloudflared-91JvyShh.mjs → cloudflared-Ciq4L97v.mjs} +0 -0
- /package/dist/{command-C72KLHMc.mjs → command-D1Z5uf_S.mjs} +0 -0
- /package/dist/{discover-VRFBjse7.mjs → discover-B_3A4a_t.mjs} +0 -0
- /package/dist/{generate-iV6OVNin.mjs → generate-QUDsysBJ.mjs} +0 -0
- /package/dist/{rate-limit-analytics-Bw9qmxMx.mjs → rate-limit-analytics-YsGha5pH.mjs} +0 -0
- /package/dist/{rate-limits-CDm_xzKt.mjs → rate-limits-kH13NRdf.mjs} +0 -0
- /package/dist/{ready-BXGqY1Wi.mjs → ready-DYun4Fpn.mjs} +0 -0
- /package/dist/{recent-submissions-AhGZD3a3.mjs → recent-submissions-18NaOGOo.mjs} +0 -0
- /package/dist/{refute-D_w5Gw20.mjs → refute-BhMiJcE1.mjs} +0 -0
- /package/dist/{registry-DBMUTYqf.mjs → registry-CSv7HR1J.mjs} +0 -0
- /package/dist/{scan-logo-BZzFam-Q.mjs → scan-logo-7y0pqFMk.mjs} +0 -0
- /package/dist/{scan-page-BPA8nSPM.mjs → scan-page-B6jnK3QI.mjs} +0 -0
- /package/dist/{schema-CueLBLXC.mjs → schema-JVvksQ1J.mjs} +0 -0
- /package/dist/{search-De0UlXYN.mjs → search-Rn3Eefv8.mjs} +0 -0
- /package/dist/{signed-url-ziDz9frX.mjs → signed-url-Dzwy9Xiw.mjs} +0 -0
- /package/dist/{submission-info-83D2DCCG.mjs → submission-info-SNhkDRRZ.mjs} +0 -0
- /package/dist/{tools-BJbI_f35.mjs → tools-CFEubTr4.mjs} +0 -0
- /package/dist/{total-queries-Dhol31Kn.mjs → total-queries-B20xslrH.mjs} +0 -0
- /package/dist/{tracked-domains-DoOPs6Vd.mjs → tracked-domains-BCvIOZOK.mjs} +0 -0
- /package/dist/{verify-CxpGEnJb.mjs → verify-DOeBG4PL.mjs} +0 -0
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import{t as e}from"./local-
|
|
2
|
+
import{t as e}from"./local-Cyk8fPvL.mjs";import{a as t,t as n}from"./context-CE7QFX-z.mjs";import{a as r,r as i}from"./auth-gOCL6Pm0.mjs";import{t as a}from"./output-CvQFJkvi.mjs";import{t as o}from"./dry-run-Bq0JAsbX.mjs";import{t as s}from"./progress-CRjK46r1.mjs";import{t as c}from"./run-huwFFwXd.mjs";import"./telemetry-B4_YhD82.mjs";import{i as l,n as u,r as d,t as f}from"./body-parser-hh2avzkz.mjs";import{n as p,t as m}from"./input-validation-Dk52b0me.mjs";import{a as h,i as g,n as _}from"./prompt-C_90YsVE.mjs";import{t as v}from"./cli-types-DoVT5q_M.mjs";import{n as y,t as b}from"./raw-fetch-C8SdmQBp.mjs";function ee(e){return e.usage(`$0 cloudforce-one binary-storage create
|
|
3
3
|
|
|
4
|
-
Uploads a binary file to Cloudforce One's binary database for malware analysis and threat intelligence correlation.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Binary file to be uploaded to the database.`}).option(`file`,{type:`string`,description:`Path to a file to upload as the request body`})}const
|
|
4
|
+
Uploads a binary file to Cloudforce One's binary database for malware analysis and threat intelligence correlation.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Binary file to be uploaded to the database.`}).option(`file`,{type:`string`,description:`Path to a file to upload as the request body`})}const te={command:`create`,describe:`Posts a file to Binary Storage`,builder:ee,handler:async l=>c({command:`cloudforce-one binary-storage create`,classification:{safeFlags:[`dry-run`]}},l,async()=>{if(l.dryRun){o({command:`cf cloudforce-one binary-storage create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/cloudforce-one/binary`,pathParams:{},bodyKind:`multipart`,body:{body:l.body,file:l.file}});return}let c=await i(l),u=l.local?e:await n();if(l.accountId=u,l.file!==void 0||l.body!==void 0){let e=new FormData;if(l.file){let t=m(l.file);e.append(`file`,new Blob([t]),l.file.split(/[\\/]/).filter(Boolean).pop())}else l.body!==void 0&&e.append(`file`,l.body);a(await s(`Creating`,async()=>r(c,`POST`,`/accounts/${u}/cloudforce-one/binary`,{body:e})),{successLabel:`Created`});return}if(l.body){let e=p(l.body,`body`,`binary`);a(await s(`Creating`,async()=>r(c,`POST`,`/accounts/${u}/cloudforce-one/binary`,{body:e,headers:{"Content-Type":`multipart/form-data`}})),{successLabel:`Created`});return}if(l.body===void 0)throw Error(`--body is required for this command. Pass --body '<json>' or --body @path/to/file.json.`)})};function x(e){return e.usage(`$0 cloudforce-one binary-storage get <hash>
|
|
5
5
|
|
|
6
|
-
Retrieves a binary file from the Cloudforce One binary storage for analysis.`).positional(`hash`,{type:`string`,description:`hash of the binary`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const S={command:`get <hash>`,describe:`Retrieves a file from Binary Storage`,builder:x,handler:async r=>c({command:`cloudforce-one binary-storage get`,classification:{safeFlags:[`dry-run`]}},r,async()=>{if(r.dryRun){o({command:`cf cloudforce-one binary-storage get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/cloudforce-one/binary/${r.hash==null?`<hash>`:encodeURIComponent(String(r.hash))}`,pathParams:{hash:String(r.hash??``)},bodyKind:`none`});return}let c=await i(r),l=r.local?e:await n();r.accountId=l,a(await s(`Loading`,async()=>c.cloudforceOne.binaryStorage.get({account_id:l,hash:r.hash})),{successLabel:`Loaded`})})},C={command:`binary-storage`,describe:`Upload and retrieve malware samples and suspicious binaries for analysis`,builder:e=>e.command(
|
|
6
|
+
Retrieves a binary file from the Cloudforce One binary storage for analysis.`).positional(`hash`,{type:`string`,description:`hash of the binary`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const S={command:`get <hash>`,describe:`Retrieves a file from Binary Storage`,builder:x,handler:async r=>c({command:`cloudforce-one binary-storage get`,classification:{safeFlags:[`dry-run`]}},r,async()=>{if(r.dryRun){o({command:`cf cloudforce-one binary-storage get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/cloudforce-one/binary/${r.hash==null?`<hash>`:encodeURIComponent(String(r.hash))}`,pathParams:{hash:String(r.hash??``)},bodyKind:`none`});return}let c=await i(r),l=r.local?e:await n();r.accountId=l,a(await s(`Loading`,async()=>c.cloudforceOne.binaryStorage.get({account_id:l,hash:r.hash})),{successLabel:`Loaded`})})},C={command:`binary-storage`,describe:`Upload and retrieve malware samples and suspicious binaries for analysis`,builder:e=>e.command(te).command(S).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function w(e){return e.usage(`$0 cloudforce-one credential-monitor domains create
|
|
7
7
|
|
|
8
8
|
Register a domain for credential monitoring.`).option(`domain`,{type:`string`,description:`Domain to monitor (e.g. my-company.com)`}).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 T={command:`create`,describe:`Create monitored domain`,builder:w,handler:async r=>c({command:`cloudforce-one credential-monitor domains create`,classification:{safeFlags:[`dry-run`]}},r,async()=>{if(r.dryRun){o({command:`cf cloudforce-one credential-monitor domains create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/cloudforce-one/v2/credential-monitor/domains`,pathParams:{},bodyKind:`json`,body:r.body===void 0?f({domain:p(r.domain,`domain`,`text`)}):u(r.body)});return}let c=await i(r),l=r.local?e:await n();if(r.accountId=l,r.body){let e=u(r.body);a(await s(`Creating`,async()=>c.cloudforceOne.credentialMonitor.domains.create({...e,account_id:l})),{successLabel:`Created`});return}r.domain===void 0&&(r.domain=await h(`domain`,`Domain to monitor (e.g. my-company.com)`));let d=f({domain:p(r.domain,`domain`,`text`)});a(await s(`Creating`,async()=>c.cloudforceOne.credentialMonitor.domains.create({...d,account_id:l})),{successLabel:`Created`})})};function E(e){return e.usage(`$0 cloudforce-one credential-monitor domains delete <id>
|
|
9
9
|
|
|
@@ -99,7 +99,7 @@ Execute GraphQL aggregations over threat events. Supports multi-dimensional grou
|
|
|
99
99
|
|
|
100
100
|
Lists indicator types across multiple datasets`).option(`dataset-ids`,{type:`string`,description:`Dataset UUIDs to query, or one standalone scope value: 'all'/'*', 'analytics' for isAnalytics=true datasets, or 'operational' for isAnalytics=false datasets. If not provided, queries all accessible datasets.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const Lt={command:`get`,describe:`Lists indicator types across multiple datasets`,builder:It,handler:async r=>c({command:`cloudforce-one events indicator types get`,classification:{safeFlags:[`dry-run`]}},r,async()=>{let c={datasetIds:r[`dataset-ids`]};if(r.dryRun){o({command:`cf cloudforce-one events indicator types get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/cloudforce-one/events/indicator-types`,pathParams:{},query:c,bodyKind:`none`});return}let l=await i(r),u=r.local?e:await n();r.accountId=u,a(await s(`Loading`,async()=>l.cloudforceOne.events.indicator.types.get({account_id:u,...c})),{successLabel:`Loaded`})})},Rt={command:`types`,describe:`Operations for events.indicator.types`,builder:e=>e.command(Lt).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},zt={command:`indicator`,describe:`Operations for events.indicator`,builder:e=>e.command(Rt).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function Bt(e){return e.usage(`$0 cloudforce-one events indicators get
|
|
101
101
|
|
|
102
|
-
Retrieves indicators across specified datasets, ordered by createdAt descending then UUID, dataset ID, and shard ID ascending. Use the standalone datasetIds value 'all'/'*' for legacy all-datasets behavior, 'analytics' for isAnalytics=true datasets, or 'operational' for isAnalytics=false datasets. If no datasetIds are provided, uses the default dataset.`).option(`dataset-ids`,{type:`string`,description:`Dataset UUIDs to query, or one standalone scope value: 'all'/'*' for legacy all-datasets behavior, 'analytics' for isAnalytics=true datasets, or 'operational' for isAnalytics=false datasets. If not provided, uses the default dataset.`}).option(`page`,{type:`number`,description:`Page`}).option(`page-size`,{type:`number`,description:`PageSize`}).option(`search`,{type:`string`,description:`Structured search as a JSON array of {field, op, value} objects. Searchable fields: value, indicatorType, uuid. Supports operators: equals, not, contains, startsWith, endsWith, gt, lt, gte, lte, like, in, find. Use the 'in' operator with an array value to bulk-check up to 100 indicators in a single request, e.g. search=[{"field":"value","op":"in","value":["evil.com","bad.org"]}]. Multiple conditions are AND'd together. Max 10 conditions per request.`}).option(`name`,{type:`string`,description:`Filter indicators by value using substring match (LIKE). Legacy alternative to structured search.`}).option(`indicator-type`,{type:`string`,description:`IndicatorType`}).option(`related-events`,{type:`string`,description:`Filter by related event IDs`}).option(`tags`,{type:`string`,description:`Filter by tag values or UUIDs. Indicators must have at least one of the specified tags (OR logic). Supports both tag UUID and tag value.`}).option(`tag-search`,{type:`string`,description:'Structured tag-metadata filter as a JSON array of {field, op, value} objects. Operates against the per-dataset IndicatorTag mirror so you can find indicators by tag attributes (origin country, motive, sophistication, priority, etc.) without a separate Tags lookup. Common dashboard usage: drill from a country into indicators, e.g. tagSearch=[{"field":"originCountryISO","op":"in","value":["IR","CN"]}]. Country values may be passed as alpha-2, alpha-3, name, or alias (e.g. "iran"). Operators: equals, not, gt/gte/lt/lte (numeric only), contains/like/find/startsWith/endsWith (string only), in. AND-joined across entries; combined with `tags`, a matching tag must satisfy both. Max 10 entries per request, max 100 values per \'in\'. Performance notes: `originCountryISO` uses its B-tree index for equals/not/in. `priority` uses its B-tree index for numeric comparisons. Other string columns (`actorCategory`, `motive`, etc.) are case-insensitive and unindexed; current catalog size makes this a non-issue. `endsWith` and `aliasGroupNames` contains/like are leading-wildcard scans and slow on large result sets. `aliasGroupNames` matches on the JSON-encoded text, so substrings can cross alias boundaries ("apt28" also matches "apt280" when both appear in the same tag\'s alias list).'}).option(`created-after`,{type:`string`,description:`Filter indicators created on or after this date. Must use ISO 8601 format (e.g., '2024-01-15T00:00:00Z').`}).option(`created-before`,{type:`string`,description:`Filter indicators created on or before this date. Must use ISO 8601 format (e.g., '2024-12-31T23:59:59Z').`}).option(`related-events-limit`,{type:`number`,description
|
|
102
|
+
Retrieves indicators across specified datasets, ordered by createdAt descending then UUID, dataset ID, and shard ID ascending. Use the standalone datasetIds value 'all'/'*' for legacy all-datasets behavior, 'analytics' for isAnalytics=true datasets, or 'operational' for isAnalytics=false datasets. If no datasetIds are provided, uses the default dataset.`).option(`dataset-ids`,{type:`string`,description:`Dataset UUIDs to query, or one standalone scope value: 'all'/'*' for legacy all-datasets behavior, 'analytics' for isAnalytics=true datasets, or 'operational' for isAnalytics=false datasets. If not provided, uses the default dataset.`}).option(`page`,{type:`number`,description:`Page`}).option(`page-size`,{type:`number`,description:`PageSize`}).option(`search`,{type:`string`,description:`Structured search as a JSON array of {field, op, value} objects. Searchable fields: value, indicatorType, uuid. Supports operators: equals, not, contains, startsWith, endsWith, gt, lt, gte, lte, like, in, find. Use the 'in' operator with an array value to bulk-check up to 100 indicators in a single request, e.g. search=[{"field":"value","op":"in","value":["evil.com","bad.org"]}]. Multiple conditions are AND'd together. Max 10 conditions per request.`}).option(`name`,{type:`string`,description:`Filter indicators by value using substring match (LIKE). Legacy alternative to structured search.`}).option(`indicator-type`,{type:`string`,description:`IndicatorType`}).option(`related-events`,{type:`string`,description:`Filter by related event IDs`}).option(`tags`,{type:`string`,description:`Filter by tag values or UUIDs. Indicators must have at least one of the specified tags (OR logic). Supports both tag UUID and tag value.`}).option(`tag-search`,{type:`string`,description:'Structured tag-metadata filter as a JSON array of {field, op, value} objects. Operates against the per-dataset IndicatorTag mirror so you can find indicators by tag attributes (origin country, motive, sophistication, priority, etc.) without a separate Tags lookup. Common dashboard usage: drill from a country into indicators, e.g. tagSearch=[{"field":"originCountryISO","op":"in","value":["IR","CN"]}]. Country values may be passed as alpha-2, alpha-3, name, or alias (e.g. "iran"). Operators: equals, not, gt/gte/lt/lte (numeric only), contains/like/find/startsWith/endsWith (string only), in. AND-joined across entries; combined with `tags`, a matching tag must satisfy both. Max 10 entries per request, max 100 values per \'in\'. Performance notes: `originCountryISO` uses its B-tree index for equals/not/in. `priority` uses its B-tree index for numeric comparisons. Other string columns (`actorCategory`, `motive`, etc.) are case-insensitive and unindexed; current catalog size makes this a non-issue. `endsWith` and `aliasGroupNames` contains/like are leading-wildcard scans and slow on large result sets. `aliasGroupNames` matches on the JSON-encoded text, so substrings can cross alias boundaries ("apt28" also matches "apt280" when both appear in the same tag\'s alias list).'}).option(`created-after`,{type:`string`,description:`Filter indicators created on or after this date. Must use ISO 8601 format (e.g., '2024-01-15T00:00:00Z').`}).option(`created-before`,{type:`string`,description:`Filter indicators created on or before this date. Must use ISO 8601 format (e.g., '2024-12-31T23:59:59Z').`}).option(`related-events-limit`,{type:`number`,description:"Limit the number of related events returned per indicator. Default: 2. Set to 0 for none, -1 for all events. For JSON responses, when the limit hides events, the indicator carries `relatedEventsHasMore: true` and the response includes an advisory message — the cap is never applied silently. STIX and TAXII representations do not include related-event data."}).option(`include-tags`,{type:`boolean`,description:`Whether to include full tag details for each indicator. Defaults to true.`}).option(`include-total-count`,{type:`boolean`,description:`Whether to compute total count via COUNT(*). Defaults to false for performance. total_count is null unless this is true and the complete fan-out succeeds.`}).option(`format`,{type:`string`,description:`Output format for indicator data. 'json' returns the default format, 'stix2' returns STIX 2.1 Indicator SDOs, 'taxii' returns a TAXII 2.1 Envelope with Content-Type application/taxii+json;version=2.1.`,choices:[`json`,`stix2`,`taxii`]}).option(`cache`,{type:`string`,description:"Cache strategy. 'from-graph' serves results from the graph-node KV cache when all requested UUIDs are cached; falls back to normal path on partial/zero hit. Cannot be combined with `cursor`.",choices:[`from-graph`]}).option(`cursor`,{type:`string`,description:"Opaque cursor from a previous response's `pagination.cursor`. When provided, all filters, datasetIds, page, `pageSize`, `includeTags` and `relatedEventsLimit` come from the cursor — do not resend them. Sending any filter, `page`, `pageSize`, `includeTags`, `relatedEventsLimit`, `includeTotalCount=true`, or `cache=from-graph` alongside a cursor yields a 400 `CursorFilterConflictError`. A cursor issued for a different entity, an unsupported version, or a dataset that has since been reconfigured as analytics-only yields a 400 `InvalidCursorError`."}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const Vt={command:`get`,describe:`Lists indicators across multiple datasets`,builder:v(Bt),handler:async r=>c({command:`cloudforce-one events indicators get`,classification:{safeFlags:[`include-tags`,`include-total-count`,`format`,`cache`,`dry-run`]}},r,async()=>{let c={datasetIds:r[`dataset-ids`],page:r.page,pageSize:r[`page-size`],search:r.search,name:r.name,indicatorType:r[`indicator-type`],relatedEvents:r[`related-events`],tags:r.tags,tagSearch:r[`tag-search`],createdAfter:r[`created-after`],createdBefore:r[`created-before`],relatedEventsLimit:r[`related-events-limit`],includeTags:r[`include-tags`],includeTotalCount:r[`include-total-count`],format:r.format,cache:r.cache,cursor:r.cursor};if(r.dryRun){o({command:`cf cloudforce-one events indicators get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/cloudforce-one/events/indicators`,pathParams:{},query:c,bodyKind:`none`});return}let l=await i(r),u=r.local?e:await n();r.accountId=u,a(await s(`Loading`,async()=>l.cloudforceOne.events.indicators.get({account_id:u,...c})),{successLabel:`Loaded`})})},Ht={command:`indicators`,describe:`Operations for events.indicators`,builder:e=>e.command(Vt).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function Ut(e){return e.usage(`$0 cloudforce-one events queries create-create
|
|
103
103
|
|
|
104
104
|
Create a new saved event query for the account`).option(`alert-enabled`,{type:`boolean`,description:`Enable alerts for this query`}).option(`alert-rollup-enabled`,{type:`boolean`,description:`Enable alert rollup for this query`}).option(`name`,{type:`string`,description:`Unique name for the saved query`}).option(`query-json`,{type:`string`,description:`JSON string containing the query parameters`}).option(`rule-enabled`,{type:`boolean`,description:`Enable rule for this query`}).option(`rule-scope`,{type:`string`,description:`Scope for the rule`}).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 Wt={command:`create-create`,describe:`Create a saved event query`,builder:Ut,handler:async r=>c({command:`cloudforce-one events queries create-create`,classification:{safeFlags:[`alert-enabled`,`alert-rollup-enabled`,`rule-enabled`,`dry-run`]}},r,async()=>{if(r.dryRun){o({command:`cf cloudforce-one events queries create-create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/cloudforce-one/events/queries/create`,pathParams:{},bodyKind:`json`,body:r.body===void 0?f({alert_enabled:r[`alert-enabled`],alert_rollup_enabled:r[`alert-rollup-enabled`],name:p(r.name,`name`,`text`),query_json:p(r[`query-json`],`query-json`,`text`),rule_enabled:r[`rule-enabled`],rule_scope:p(r[`rule-scope`],`rule-scope`,`text`)}):u(r.body)});return}let c=await i(r),l=r.local?e:await n();if(r.accountId=l,r.body){let e=u(r.body);a(await s(`Creating`,async()=>c.cloudforceOne.events.queries.createCreate({...e,account_id:l})),{successLabel:`Created`});return}if(r[`alert-enabled`]===void 0)throw Error(`--alert-enabled is required (or pass --body with this field set).`);if(r[`alert-rollup-enabled`]===void 0)throw Error(`--alert-rollup-enabled is required (or pass --body with this field set).`);if(r.name===void 0&&(r.name=await h(`name`,`Unique name for the saved query`)),r[`query-json`]===void 0&&(r[`query-json`]=await h(`query-json`,`JSON string containing the query parameters`)),r[`rule-enabled`]===void 0)throw Error(`--rule-enabled is required (or pass --body with this field set).`);let d=f({alert_enabled:r[`alert-enabled`],alert_rollup_enabled:r[`alert-rollup-enabled`],name:p(r.name,`name`,`text`),query_json:p(r[`query-json`],`query-json`,`text`),rule_enabled:r[`rule-enabled`],rule_scope:p(r[`rule-scope`],`rule-scope`,`text`)});a(await s(`Creating`,async()=>c.cloudforceOne.events.queries.createCreate({...d,account_id:l})),{successLabel:`Created`})})};function Gt(e){return e.usage(`$0 cloudforce-one events queries create <query-id>
|
|
105
105
|
|
|
@@ -118,7 +118,7 @@ Updates a raw event`).positional(`raw-id`,{type:`string`,description:`Raw Event
|
|
|
118
118
|
|
|
119
119
|
Creates event references for a event`).positional(`event-id`,{type:`string`,description:`Event UUID.`,demandOption:!0}).option(`events`,{type:`string`,array:!0,description:`The events 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 cn={command:`create <event-id>`,describe:`Creates event references for a event`,builder:sn,handler:async r=>c({command:`cloudforce-one events relate create create`,classification:{safeFlags:[`dry-run`]}},r,async()=>{if(r.dryRun){o({command:`cf cloudforce-one events relate create create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/cloudforce-one/events/relate/${r[`event-id`]==null?`<event-id>`:encodeURIComponent(String(r[`event-id`]))}/create`,pathParams:{"event-id":String(r[`event-id`]??``)},bodyKind:`json`,body:r.body===void 0?f({events:r.events}):u(r.body)});return}let c=await i(r),l=r.local?e:await n();if(r.accountId=l,r.body){let e=u(r.body);a(await s(`Creating`,async()=>c.cloudforceOne.events.relate.create.create({...e,account_id:l,event_id:r[`event-id`]})),{successLabel:`Created`});return}if(r.events===void 0)throw Error(`--events is required (or pass --body with this field set).`);let d=f({events:r.events});a(await s(`Creating`,async()=>c.cloudforceOne.events.relate.create.create({...d,account_id:l,event_id:r[`event-id`]})),{successLabel:`Created`})})},ln={command:`create`,describe:`Operations for events.relate.create`,builder:e=>e.command(cn).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},un={command:`relate`,describe:`Operations for events.relate`,builder:e=>e.command(ln).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function dn(e){return e.usage(`$0 cloudforce-one events relationships create create
|
|
120
120
|
|
|
121
|
-
Creates a directed relationship between two events. The relationship is from parent to child with a specified type.`).option(`child-ids`,{type:`string`,array:!0,description:`Array of UUIDs for child events. Single child = 1:1 relationship, multiple = 1:many relationships`}).option(`dataset-id`,{type:`string`,description:`Dataset identifier where the events are stored`}).option(`parent-id`,{type:`string`,description:`UUID of the parent event that will be the source of the relationship`}).option(`relationship-type`,{type:`string`,description:`Type of relationship to create between parent and child events`,choices:[`related_to`,`caused_by`,`attributed_to`]}).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 fn={command:`create`,describe:`Create a relationship between two events`,builder:dn,handler:async r=>c({command:`cloudforce-one events relationships create create`,classification:{safeFlags:[`relationship-type`,`dry-run`]}},r,async()=>{if(r.dryRun){o({command:`cf cloudforce-one events relationships create create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/cloudforce-one/events/relationships/create`,pathParams:{},bodyKind:`json`,body:r.body===void 0?f({childIds:r[`child-ids`],datasetId:p(r[`dataset-id`],`dataset-id`,`text`),parentId:p(r[`parent-id`],`parent-id`,`text`),relationshipType:p(r[`relationship-type`],`relationship-type`,`text`)}):u(r.body)});return}let c=await i(r),l=r.local?e:await n();if(r.accountId=l,r.body){let e=u(r.body);a(await s(`Creating`,async()=>c.cloudforceOne.events.relationships.create.create({...e,account_id:l})),{successLabel:`Created`});return}if(r[`child-ids`]===void 0)throw Error(`--child-ids is required (or pass --body with this field set).`);r[`dataset-id`]===void 0&&(r[`dataset-id`]=await h(`dataset-id`,`Dataset identifier where the events are stored`)),r[`parent-id`]===void 0&&(r[`parent-id`]=await h(`parent-id`,`UUID of the parent event that will be the source of the relationship`)),r[`relationship-type`]===void 0&&(r[`relationship-type`]=await g(`relationship-type`,`Type of relationship to create between parent and child events`,[`related_to`,`caused_by`,`attributed_to`]));let d=f({childIds:r[`child-ids`],datasetId:p(r[`dataset-id`],`dataset-id`,`text`),parentId:p(r[`parent-id`],`parent-id`,`text`),relationshipType:p(r[`relationship-type`],`relationship-type`,`text`)});a(await s(`Creating`,async()=>c.cloudforceOne.events.relationships.create.create({...d,account_id:l})),{successLabel:`Created`})})},pn={command:`create`,describe:`Operations for events.relationships.create`,builder:e=>e.command(fn).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function mn(e){return e.usage("$0 cloudforce-one events relationships get <event-id>\n\nThe `event_id` must be defined (to list existing events (and their IDs), use the [`Filter and List Events`](https://developers.cloudflare.com/api/resources/cloudforce_one/subresources/threat_events/methods/list/) endpoint). Also, must provide query parameters.").positional(`event-id`,{type:`string`,description:`Event UUID.`,demandOption:!0}).option(`direction`,{type:`string`,description:`The direction to traverse the graph. Defaults to 'both' to search all.`,choices:[`ancestors`,`descendants`,`both`]}).option(`max-depth`,{type:`number`,description:`The maximum depth to traverse. Defaults to 5.`}).option(`relationship-types`,{type:`string`,description:`An optional array of relationship types to filter by.`}).option(`indicator-type-ids`,{type:`string`,description:`An optional array of indicator type IDs to filter the results by.`}).option(`dataset-id`,{type:`string`,description:`The dataset ID to search within.`,demandOption:!0}).option(`include-parent`,{type:`boolean`,description:`Whether to include the starting event in the results. Defaults to true.`}).option(`page`,{type:`number`,description:`Page`}).option(`page-size`,{type:`number`,description:`PageSize`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const hn={command:`get <event-id>`,describe:`Filter and list events related to specific event`,builder:v(mn),handler:async r=>c({command:`cloudforce-one events relationships get`,classification:{safeFlags:[`direction`,`include-parent`,`dry-run`]}},r,async()=>{let c={direction:r.direction,maxDepth:r[`max-depth`],relationshipTypes:r[`relationship-types`],indicatorTypeIds:r[`indicator-type-ids`],datasetId:r[`dataset-id`],includeParent:r[`include-parent`],page:r.page,pageSize:r[`page-size`]};if(r.dryRun){o({command:`cf cloudforce-one events relationships get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/cloudforce-one/events/by-id/${r[`event-id`]==null?`<event-id>`:encodeURIComponent(String(r[`event-id`]))}/relationships`,pathParams:{"event-id":String(r[`event-id`]??``)},query:c,bodyKind:`none`});return}let l=await i(r),u=r.local?e:await n();r.accountId=u,a(await s(`Loading`,async()=>l.cloudforceOne.events.relationships.get({account_id:u,event_id:r[`event-id`],...c})),{successLabel:`Loaded`})})},gn={command:`relationships`,describe:`Operations for events.relationships`,builder:e=>e.command(hn).command(pn).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function _n(e){return e.usage("$0 cloudforce-one events tags categories actors list\n\nReturns all known Actors from the shared CFONE catalog.
|
|
121
|
+
Creates a directed relationship between two events. The relationship is from parent to child with a specified type.`).option(`child-ids`,{type:`string`,array:!0,description:`Array of UUIDs for child events. Single child = 1:1 relationship, multiple = 1:many relationships`}).option(`dataset-id`,{type:`string`,description:`Dataset identifier where the events are stored`}).option(`parent-id`,{type:`string`,description:`UUID of the parent event that will be the source of the relationship`}).option(`relationship-type`,{type:`string`,description:`Type of relationship to create between parent and child events`,choices:[`related_to`,`caused_by`,`attributed_to`]}).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 fn={command:`create`,describe:`Create a relationship between two events`,builder:dn,handler:async r=>c({command:`cloudforce-one events relationships create create`,classification:{safeFlags:[`relationship-type`,`dry-run`]}},r,async()=>{if(r.dryRun){o({command:`cf cloudforce-one events relationships create create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/cloudforce-one/events/relationships/create`,pathParams:{},bodyKind:`json`,body:r.body===void 0?f({childIds:r[`child-ids`],datasetId:p(r[`dataset-id`],`dataset-id`,`text`),parentId:p(r[`parent-id`],`parent-id`,`text`),relationshipType:p(r[`relationship-type`],`relationship-type`,`text`)}):u(r.body)});return}let c=await i(r),l=r.local?e:await n();if(r.accountId=l,r.body){let e=u(r.body);a(await s(`Creating`,async()=>c.cloudforceOne.events.relationships.create.create({...e,account_id:l})),{successLabel:`Created`});return}if(r[`child-ids`]===void 0)throw Error(`--child-ids is required (or pass --body with this field set).`);r[`dataset-id`]===void 0&&(r[`dataset-id`]=await h(`dataset-id`,`Dataset identifier where the events are stored`)),r[`parent-id`]===void 0&&(r[`parent-id`]=await h(`parent-id`,`UUID of the parent event that will be the source of the relationship`)),r[`relationship-type`]===void 0&&(r[`relationship-type`]=await g(`relationship-type`,`Type of relationship to create between parent and child events`,[`related_to`,`caused_by`,`attributed_to`]));let d=f({childIds:r[`child-ids`],datasetId:p(r[`dataset-id`],`dataset-id`,`text`),parentId:p(r[`parent-id`],`parent-id`,`text`),relationshipType:p(r[`relationship-type`],`relationship-type`,`text`)});a(await s(`Creating`,async()=>c.cloudforceOne.events.relationships.create.create({...d,account_id:l})),{successLabel:`Created`})})},pn={command:`create`,describe:`Operations for events.relationships.create`,builder:e=>e.command(fn).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function mn(e){return e.usage("$0 cloudforce-one events relationships get <event-id>\n\nThe `event_id` must be defined (to list existing events (and their IDs), use the [`Filter and List Events`](https://developers.cloudflare.com/api/resources/cloudforce_one/subresources/threat_events/methods/list/) endpoint). Also, must provide query parameters.").positional(`event-id`,{type:`string`,description:`Event UUID.`,demandOption:!0}).option(`direction`,{type:`string`,description:`The direction to traverse the graph. Defaults to 'both' to search all.`,choices:[`ancestors`,`descendants`,`both`]}).option(`max-depth`,{type:`number`,description:`The maximum depth to traverse. Defaults to 5.`}).option(`relationship-types`,{type:`string`,description:`An optional array of relationship types to filter by.`}).option(`indicator-type-ids`,{type:`string`,description:`An optional array of indicator type IDs to filter the results by.`}).option(`dataset-id`,{type:`string`,description:`The dataset ID to search within.`,demandOption:!0}).option(`include-parent`,{type:`boolean`,description:`Whether to include the starting event in the results. Defaults to true.`}).option(`page`,{type:`number`,description:`Page`}).option(`page-size`,{type:`number`,description:`PageSize`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const hn={command:`get <event-id>`,describe:`Filter and list events related to specific event`,builder:v(mn),handler:async r=>c({command:`cloudforce-one events relationships get`,classification:{safeFlags:[`direction`,`include-parent`,`dry-run`]}},r,async()=>{let c={direction:r.direction,maxDepth:r[`max-depth`],relationshipTypes:r[`relationship-types`],indicatorTypeIds:r[`indicator-type-ids`],datasetId:r[`dataset-id`],includeParent:r[`include-parent`],page:r.page,pageSize:r[`page-size`]};if(r.dryRun){o({command:`cf cloudforce-one events relationships get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/cloudforce-one/events/by-id/${r[`event-id`]==null?`<event-id>`:encodeURIComponent(String(r[`event-id`]))}/relationships`,pathParams:{"event-id":String(r[`event-id`]??``)},query:c,bodyKind:`none`});return}let l=await i(r),u=r.local?e:await n();r.accountId=u,a(await s(`Loading`,async()=>l.cloudforceOne.events.relationships.get({account_id:u,event_id:r[`event-id`],...c})),{successLabel:`Loaded`})})},gn={command:`relationships`,describe:`Operations for events.relationships`,builder:e=>e.command(hn).command(pn).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function _n(e){return e.usage("$0 cloudforce-one events tags categories actors list\n\nReturns all known Actors from the shared CFONE-owned catalog. Accounts other than the catalog owner receive a redacted public projection: identity (`uuid`, `value`, `categoryUuid`, `categoryName`), metadata (`description`, `dateOfDiscovery`, `tlp`, `confidence`, `properties`), origin (`originCountryISO`, `originCountryISO_annotated`), and public aliases/references (`aliasGroupNames`, `aliases`, `externalReferences`, `externalReferences_annotated`). Owner-private fields (internal aliases, attribution, motive, opsec level, etc.) are stripped from non-owner responses.").option(`page`,{type:`number`,description:`Page`}).option(`page-size`,{type:`number`,description:`PageSize`}).option(`value`,{type:`string`,description:`Free-text substring match on actor name (Tag.value).`}).option(`filters`,{type:`string`,description:'Structured filters as a JSON array of {field, op, value} objects. Same shape as the events search API. Common use: filter actors by country with filters=[{"field":"originCountryISO","op":"in","value":["IR","CN"]}]. Country values may be passed as alpha-2, alpha-3, name, or alias (e.g. "iran"). Max 10 entries per request, max 100 values per \'in\'. Accounts other than the catalog owner may only filter on fields that are also public-readable (`value`, `categoryName`, `aliasGroupNames`, `originCountryISO`); filtering on a redacted field returns 400. Performance notes: `originCountryISO` uses its B-tree index for equals/in. `endsWith` and `aliasGroupNames` contains/like are leading-wildcard scans and slow on large result sets. `aliasGroupNames` matches on JSON-encoded text, so substrings can cross alias boundaries ("apt28" also matches "apt280" when both appear in the same tag\'s alias list).'}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const vn={command:`list`,describe:`Lists all Actors`,builder:v(_n),handler:async r=>c({command:`cloudforce-one events tags categories actors list`,classification:{safeFlags:[`dry-run`]}},r,async()=>{let c={page:r.page,pageSize:r[`page-size`],value:r.value,filters:r.filters};if(r.dryRun){o({command:`cf cloudforce-one events tags categories actors list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/cloudforce-one/events/tags/categories/actors`,pathParams:{},query:c,bodyKind:`none`});return}let l=await i(r),u=r.local?e:await n();r.accountId=u,a(await s(`Loading`,async()=>l.cloudforceOne.events.tags.categories.actors.list({account_id:u,...c})),{successLabel:`Loaded`})})},yn={command:`actors`,describe:`Operations for events.tags.categories.actors`,builder:e=>e.command(vn).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function bn(e){return e.usage(`$0 cloudforce-one events tags categories create create
|
|
122
122
|
|
|
123
123
|
Creates a new Source-of-Truth tag category for an account.`).option(`description`,{type:`string`,description:`The description field`}).option(`name`,{type:`string`,description:`The name field`}).option(`schema`,{type:`string`,description:`Optional array of FieldDefinition objects defining custom fields for tags in this category. Persisted as JSON; returned as a parsed array. Provide as a JSON array of objects or @path/to/file.json.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const xn={command:`create`,describe:`Creates a new tag category (SoT)`,builder:bn,handler:async r=>c({command:`cloudforce-one events tags categories create create`,classification:{safeFlags:[`dry-run`]}},r,async()=>{if(r.dryRun){o({command:`cf cloudforce-one events tags categories create create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/cloudforce-one/events/tags/categories/create`,pathParams:{},bodyKind:`json`,body:r.body===void 0?f({description:p(r.description,`description`,`text`),name:p(r.name,`name`,`text`),schema:d(r.schema,`schema`)}):u(r.body)});return}let c=await i(r),l=r.local?e:await n();if(r.accountId=l,r.body){let e=u(r.body);a(await s(`Creating`,async()=>c.cloudforceOne.events.tags.categories.create.create({...e,account_id:l})),{successLabel:`Created`});return}r.name===void 0&&(r.name=await h(`name`,`The name field`));let m=f({description:p(r.description,`description`,`text`),name:p(r.name,`name`,`text`),schema:d(r.schema,`schema`)});a(await s(`Creating`,async()=>c.cloudforceOne.events.tags.categories.create.create({...m,account_id:l})),{successLabel:`Created`})})},Sn={command:`create`,describe:`Operations for events.tags.categories.create`,builder:e=>e.command(xn).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function Cn(e){return e.usage(`$0 cloudforce-one events tags categories delete <category-uuid>
|
|
124
124
|
|
|
@@ -134,9 +134,9 @@ Updates a Source-of-Truth tag category by UUID.`).positional(`category-uuid`,{ty
|
|
|
134
134
|
Deletes a Source-of-Truth tag by UUID.`).positional(`tag-uuid`,{type:`string`,description:`Tag UUID.`,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 Nn={command:`delete <tag-uuid>`,describe:`Deletes a tag (SoT)`,builder:Mn,handler:async r=>c({command:`cloudforce-one events tags delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},r,async()=>{if(r.dryRun){o({command:`cf cloudforce-one events tags delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/cloudforce-one/events/tags/${r[`tag-uuid`]==null?`<tag-uuid>`:encodeURIComponent(String(r[`tag-uuid`]))}`,pathParams:{"tag-uuid":String(r[`tag-uuid`]??``)},bodyKind:`none`});return}let c=await i(r),l=r.local?e:await n();if(r.accountId=l,!await _({force:!!r.force})){process.stderr.write(`Aborted.
|
|
135
135
|
`);return}a(await s(`Deleting`,async()=>c.cloudforceOne.events.tags.delete({account_id:l,tag_uuid:r[`tag-uuid`]})),{successLabel:`Deleted`})})};function Pn(e){return e.usage(`$0 cloudforce-one events tags get-by-id <tag-uuid>
|
|
136
136
|
|
|
137
|
-
Returns
|
|
137
|
+
Returns the complete owner projection of an account-scoped Source-of-Truth tag by UUID, including custom fields (properties). Purple TLP remains CFONE-only.`).positional(`tag-uuid`,{type:`string`,description:`Tag UUID.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const Fn={command:`get-by-id <tag-uuid>`,describe:`Gets a tag by UUID (SoT)`,builder:Pn,handler:async r=>c({command:`cloudforce-one events tags get-by-id`,classification:{safeFlags:[`dry-run`]}},r,async()=>{if(r.dryRun){o({command:`cf cloudforce-one events tags get-by-id`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/cloudforce-one/events/tags/${r[`tag-uuid`]==null?`<tag-uuid>`:encodeURIComponent(String(r[`tag-uuid`]))}`,pathParams:{"tag-uuid":String(r[`tag-uuid`]??``)},bodyKind:`none`});return}let c=await i(r),l=r.local?e:await n();r.accountId=l,a(await s(`Loading`,async()=>c.cloudforceOne.events.tags.getById({account_id:l,tag_uuid:r[`tag-uuid`]})),{successLabel:`Loaded`})})};function In(e){return e.usage("$0 cloudforce-one events tags get\n\nReturns all Source-of-Truth tags for an account. Supports legacy free-text `search` on tag value and `categoryUuid` exact match, plus a structured `filters` JSON array for filtering by metadata fields (originCountryISO, actorCategory, motive, priority, etc.). The authenticated account owns these account-scoped tags and receives their complete owner projection. Country values may be passed as alpha-2, alpha-3, name, or common alias. Purple TLP remains CFONE-only.").option(`page`,{type:`number`,description:`Page`}).option(`page-size`,{type:`number`,description:`PageSize`}).option(`search`,{type:`string`,description:"Free-text substring match on tag value AND custom-field properties. Searches case-insensitively inside both `Tag.value` and the serialized `Tag.properties` JSON blob (keys, values, and annotation metadata like confidence/tlp are all searchable). Same serialized-text tradeoff as `aliasGroupNames` — substrings can cross JSON boundaries."}).option(`category-uuid`,{type:`string`,description:`CategoryUuid`}).option(`filters`,{type:`string`,description:'Structured filters as a JSON array of {field, op, value} objects. Searchable fields: uuid, value, categoryName, description, dateOfDiscovery, tlp, confidence, actorCategory, motive, attributionOrganization, originCountryISO, aliases, externalReferences, opsecLevel, sophisticationLevel, activeDuration, priority, lastSeen, aliasGroupNames. Operators: equals, not, contains, startsWith, endsWith, gt, lt, gte, lte, like, in, find. Use \'in\' for bulk OR within a single field, e.g. filters=[{"field":"originCountryISO","op":"in","value":["IR","CN"]}]. Multiple entries are AND-joined. Max 10 entries per request, max 100 values per \'in\'. Per-field notes: `uuid` accepts only \'equals\' and \'in\' (other operators throw ValidationError) — matched against the canonical lowercase storage but callers may pass either case (the server lowercases before comparison); index-backed by the column\'s UNIQUE constraint and intended for batched UUID → tag resolution. `originCountryISO` uses its B-tree index for equals/not/in. `priority` uses its B-tree index for numeric comparisons. Other string columns (`actorCategory`, `motive`, etc.) are case-insensitive and unindexed; current catalog size makes this a non-issue. `endsWith` and `aliasGroupNames` contains/like are leading-wildcard scans and slow on large result sets. `aliasGroupNames` matches on the JSON-encoded text, so substrings can cross alias boundaries (a search for "apt28" will also match "apt280" if both appear in the same tag\'s alias list).'}).option(`cache`,{type:`string`,description:`Cache strategy. 'from-graph' serves results from the graph-node KV cache when all requested UUIDs are cached; falls back to normal path on partial/zero hit.`,choices:[`from-graph`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const Ln={command:`get`,describe:`Lists all tags (SoT)`,builder:v(In),handler:async r=>c({command:`cloudforce-one events tags get`,classification:{safeFlags:[`cache`,`dry-run`]}},r,async()=>{let c={page:r.page,pageSize:r[`page-size`],search:r.search,categoryUuid:r[`category-uuid`],filters:r.filters,cache:r.cache};if(r.dryRun){o({command:`cf cloudforce-one events tags get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/cloudforce-one/events/tags`,pathParams:{},query:c,bodyKind:`none`});return}let l=await i(r),u=r.local?e:await n();r.accountId=u,a(await s(`Loading`,async()=>l.cloudforceOne.events.tags.get({account_id:u,...c})),{successLabel:`Loaded`})})};function Rn(e){return e.usage(`$0 cloudforce-one events tags patch <tag-uuid>
|
|
138
138
|
|
|
139
|
-
Updates
|
|
139
|
+
Updates an account-owned Source-of-Truth tag by UUID and returns its complete owner projection.`).positional(`tag-uuid`,{type:`string`,description:`Tag UUID.`,demandOption:!0}).option(`alias-group-names`,{type:`string`,array:!0,description:`The aliasGroupNames field`}).option(`alias-group-names-internal`,{type:`string`,array:!0,description:`The aliasGroupNamesInternal field`}).option(`aliases`,{type:`string`,description:`Structured aliases ({ value, confidence 1-10, tlp }). Public: returned to all accounts with per-entry TLP filtering (entries with tlp: purple are removed for non-CFONE accounts). Provide as a JSON array of objects or @path/to/file.json.`}).option(`category-uuid`,{type:`string`,description:"Tag type (category) UUID. When changed, existing `properties` are re-validated against the new category's schema (400 on mismatch). Set to null to unlink (typeless; properties stop being validated)."}).option(`confidence`,{type:`number`,description:`Overall tag confidence (1-10). Omit to preserve existing.`}).option(`date-of-discovery`,{type:`string`,description:`Date of discovery (ISO YYYY-MM-DD). Omit to preserve existing.`}).option(`description`,{type:`string`,description:`The description field`}).option(`external-reference-links`,{type:`string`,array:!0,description:`The externalReferenceLinks field`}).option(`external-references`,{type:`string`,description:`Structured external references ({ url, description }). Public: returned to all accounts. Provide as a JSON array of objects or @path/to/file.json.`}).option(`internal-aliases`,{type:`string`,description:`Owner-private structured aliases ({ value, confidence 1-10, tlp }). Returned to the owning account and omitted from shared-catalog non-owner responses. Provide as a JSON array of objects or @path/to/file.json.`}).option(`internal-description`,{type:`string`,description:`The internalDescription field`}).option(`last-seen`,{type:`string`,description:`The lastSeen field`}).option(`tlp`,{type:`string`,description:`Tag-level TLP marking. Omit to preserve existing. Cannot be cleared to null.`,choices:[`red`,`amber`,`amber-strict`,`green`,`clear`,`purple`,`amber+strict`]}).option(`value`,{type:`string`,description:`The value 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 zn={command:`patch <tag-uuid>`,describe:`Updates a tag (SoT)`,builder:Rn,handler:async r=>c({command:`cloudforce-one events tags patch`,classification:{safeFlags:[`tlp`,`dry-run`]}},r,async()=>{if(r.dryRun){o({command:`cf cloudforce-one events tags patch`,method:`PATCH`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/cloudforce-one/events/tags/${r[`tag-uuid`]==null?`<tag-uuid>`:encodeURIComponent(String(r[`tag-uuid`]))}`,pathParams:{"tag-uuid":String(r[`tag-uuid`]??``)},bodyKind:`json`,body:r.body===void 0?f({aliasGroupNames:r[`alias-group-names`],aliasGroupNamesInternal:r[`alias-group-names-internal`],aliases:d(r.aliases,`aliases`),categoryUuid:p(r[`category-uuid`],`category-uuid`,`text`),confidence:r.confidence,dateOfDiscovery:p(r[`date-of-discovery`],`date-of-discovery`,`text`),description:p(r.description,`description`,`text`),externalReferenceLinks:r[`external-reference-links`],externalReferences:d(r[`external-references`],`external-references`),internalAliases:d(r[`internal-aliases`],`internal-aliases`),internalDescription:p(r[`internal-description`],`internal-description`,`text`),lastSeen:p(r[`last-seen`],`last-seen`,`text`),tlp:p(r.tlp,`tlp`,`text`),value:p(r.value,`value`,`text`)}):u(r.body)});return}let c=await i(r),l=r.local?e:await n();if(r.accountId=l,r.body){let e=u(r.body);a(await s(`Updating`,async()=>c.cloudforceOne.events.tags.patch({...e,account_id:l,tag_uuid:r[`tag-uuid`]})),{successLabel:`Updated`});return}let m=f({aliasGroupNames:r[`alias-group-names`],aliasGroupNamesInternal:r[`alias-group-names-internal`],aliases:d(r.aliases,`aliases`),categoryUuid:p(r[`category-uuid`],`category-uuid`,`text`),confidence:r.confidence,dateOfDiscovery:p(r[`date-of-discovery`],`date-of-discovery`,`text`),description:p(r.description,`description`,`text`),externalReferenceLinks:r[`external-reference-links`],externalReferences:d(r[`external-references`],`external-references`),internalAliases:d(r[`internal-aliases`],`internal-aliases`),internalDescription:p(r[`internal-description`],`internal-description`,`text`),lastSeen:p(r[`last-seen`],`last-seen`,`text`),tlp:p(r.tlp,`tlp`,`text`),value:p(r.value,`value`,`text`)});a(await s(`Updating`,async()=>c.cloudforceOne.events.tags.patch({...m,account_id:l,tag_uuid:r[`tag-uuid`]})),{successLabel:`Updated`})})};function Bn(e){return e.usage(`$0 cloudforce-one events tags relationships create <tag-uuid>
|
|
140
140
|
|
|
141
141
|
Creates a new relationship with the tag as the source entity. Requires a datasetId to locate the Indicators DO.`).positional(`tag-uuid`,{type:`string`,description:`Tag UUID.`,demandOption:!0}).option(`confidence`,{type:`number`,description:`Confidence score 0–100.`}).option(`dataset-id`,{type:`string`,description:`Dataset UUID where the relationship row will be stored (locates the Indicators DO).`}).option(`target-id`,{type:`string`,description:`UUID of the target entity.`}).option(`target-type`,{type:`string`,description:`Target type. "tag" is not allowed (tag↔tag relationships are not supported).`,choices:[`event`,`indicator`]}).option(`type`,{type:`string`,description:`Relationship type.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const Vn={command:`create <tag-uuid>`,describe:`Create a relationship for a tag`,builder:Bn,handler:async r=>c({command:`cloudforce-one events tags relationships create`,classification:{safeFlags:[`target-type`,`dry-run`]}},r,async()=>{if(r.dryRun){o({command:`cf cloudforce-one events tags relationships create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/cloudforce-one/events/tags/${r[`tag-uuid`]==null?`<tag-uuid>`:encodeURIComponent(String(r[`tag-uuid`]))}/relationships`,pathParams:{"tag-uuid":String(r[`tag-uuid`]??``)},bodyKind:`json`,body:r.body===void 0?f({confidence:r.confidence,datasetId:p(r[`dataset-id`],`dataset-id`,`text`),targetId:p(r[`target-id`],`target-id`,`text`),targetType:p(r[`target-type`],`target-type`,`text`),type:p(r.type,`type`,`text`)}):u(r.body)});return}let c=await i(r),l=r.local?e:await n();if(r.accountId=l,r.body){let e=u(r.body);a(await s(`Creating`,async()=>c.cloudforceOne.events.tags.relationships.create({...e,account_id:l,tag_uuid:r[`tag-uuid`]})),{successLabel:`Created`});return}r[`dataset-id`]===void 0&&(r[`dataset-id`]=await h(`dataset-id`,`Dataset UUID where the relationship row will be stored (locates the Indicators DO).`)),r[`target-id`]===void 0&&(r[`target-id`]=await h(`target-id`,`UUID of the target entity.`)),r[`target-type`]===void 0&&(r[`target-type`]=await g(`target-type`,`Target type. "tag" is not allowed (tag↔tag relationships are not supported).`,[`event`,`indicator`])),r.type===void 0&&(r.type=await h(`type`,`Relationship type.`));let d=f({confidence:r.confidence,datasetId:p(r[`dataset-id`],`dataset-id`,`text`),targetId:p(r[`target-id`],`target-id`,`text`),targetType:p(r[`target-type`],`target-type`,`text`),type:p(r.type,`type`,`text`)});a(await s(`Creating`,async()=>c.cloudforceOne.events.tags.relationships.create({...d,account_id:l,tag_uuid:r[`tag-uuid`]})),{successLabel:`Created`})})};function Hn(e){return e.usage(`$0 cloudforce-one events tags relationships delete <rel-uuid>
|
|
142
142
|
|
|
@@ -190,7 +190,7 @@ Lists assets attached to a Cloudforce One intelligence request.`).positional(`re
|
|
|
190
190
|
Removes an asset from a Cloudforce One intelligence request.`).positional(`asset-id`,{type:`string`,description:`UUID.`,demandOption:!0}).option(`request-id`,{type:`string`,description:`UUID.`,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 Jr={command:`delete <asset-id>`,describe:`Delete a Request Asset`,builder:qr,handler:async r=>c({command:`cloudforce-one requests assets delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},r,async()=>{if(r.dryRun){o({command:`cf cloudforce-one requests assets delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/cloudforce-one/requests/${r[`request-id`]==null?`<request-id>`:encodeURIComponent(String(r[`request-id`]))}/asset/${r[`asset-id`]==null?`<asset-id>`:encodeURIComponent(String(r[`asset-id`]))}`,pathParams:{"request-id":String(r[`request-id`]??``),"asset-id":String(r[`asset-id`]??``)},bodyKind:`none`});return}let c=await i(r),l=r.local?e:await n();if(r.accountId=l,!await _({force:!!r.force})){process.stderr.write(`Aborted.
|
|
191
191
|
`);return}a(await s(`Deleting`,async()=>c.cloudforceOne.requests.assets.delete({account_id:l,request_id:r[`request-id`],asset_id:r[`asset-id`]})),{successLabel:`Deleted`})})};function Yr(e){return e.usage(`$0 cloudforce-one requests assets download <asset-id>
|
|
192
192
|
|
|
193
|
-
Download a file asset from R2 storage. Customer can only download from their own account.`).positional(`asset-id`,{type:`string`,description:`Asset UUID`,demandOption:!0}).option(`project-type`,{type:`string`,description:`RFI project type. Valid values: threat-intelligence, incident-response, ir-emergency-response, table-top, pentest, irp, threat-hunting, cybersecurity-assessment, react-general, legal-response, soc-alerts, demo`,demandOption:!0}).option(`request-id`,{type:`string`,description:`RFI UUID`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`text`,{type:`boolean`,description:`Decode the response body as UTF-8 text instead of writing raw bytes`,default:!1})}const Xr={command:`download <asset-id>`,describe:`Download asset (Customer)`,builder:Yr,handler:async r=>c({command:`cloudforce-one requests assets download`,classification:{safeFlags:[`dry-run`,`text`]}},r,async()=>{if(r.dryRun){o({command:`cf cloudforce-one requests assets download`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/cloudforce-one/v2/requests/${r[`project-type`]==null?`<project-type>`:encodeURIComponent(String(r[`project-type`]))}/${r[`request-id`]==null?`<request-id>`:encodeURIComponent(String(r[`request-id`]))}/assets/${r[`asset-id`]==null?`<asset-id>`:encodeURIComponent(String(r[`asset-id`]))}/download`,pathParams:{"project-type":String(r[`project-type`]??``),"request-id":String(r[`request-id`]??``),"asset-id":String(r[`asset-id`]??``)},bodyKind:`none`});return}await i(r);let a=r.local?e:await n();r.accountId=a;let c=await s(`Loading`,async()=>
|
|
193
|
+
Download a file asset from R2 storage. Customer can only download from their own account.`).positional(`asset-id`,{type:`string`,description:`Asset UUID`,demandOption:!0}).option(`project-type`,{type:`string`,description:`RFI project type. Valid values: threat-intelligence, incident-response, ir-emergency-response, table-top, pentest, irp, threat-hunting, cybersecurity-assessment, react-general, legal-response, soc-alerts, demo`,demandOption:!0}).option(`request-id`,{type:`string`,description:`RFI UUID`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`text`,{type:`boolean`,description:`Decode the response body as UTF-8 text instead of writing raw bytes`,default:!1})}const Xr={command:`download <asset-id>`,describe:`Download asset (Customer)`,builder:Yr,handler:async r=>c({command:`cloudforce-one requests assets download`,classification:{safeFlags:[`dry-run`,`text`]}},r,async()=>{if(r.dryRun){o({command:`cf cloudforce-one requests assets download`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/cloudforce-one/v2/requests/${r[`project-type`]==null?`<project-type>`:encodeURIComponent(String(r[`project-type`]))}/${r[`request-id`]==null?`<request-id>`:encodeURIComponent(String(r[`request-id`]))}/assets/${r[`asset-id`]==null?`<asset-id>`:encodeURIComponent(String(r[`asset-id`]))}/download`,pathParams:{"project-type":String(r[`project-type`]??``),"request-id":String(r[`request-id`]??``),"asset-id":String(r[`asset-id`]??``)},bodyKind:`none`});return}await i(r);let a=r.local?e:await n();r.accountId=a;let c=await s(`Loading`,async()=>b(`/accounts/${a}/cloudforce-one/v2/requests/${encodeURIComponent(String(r[`project-type`]))}/${encodeURIComponent(String(r[`request-id`]))}/assets/${encodeURIComponent(String(r[`asset-id`]))}/download`,{method:`GET`,local:r.local===!0,persistTo:r.persistTo}));y(r.text===!0?c.toString(`utf-8`):c)})};function Zr(e){return e.usage(`$0 cloudforce-one requests assets get <asset-id>
|
|
194
194
|
|
|
195
195
|
Retrieves an asset attached to a Cloudforce One intelligence request.`).positional(`asset-id`,{type:`string`,description:`UUID.`,demandOption:!0}).option(`request-id`,{type:`string`,description:`UUID.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const Qr={command:`get <asset-id>`,describe:`Get a Request Asset`,builder:Zr,handler:async r=>c({command:`cloudforce-one requests assets get`,classification:{safeFlags:[`dry-run`]}},r,async()=>{if(r.dryRun){o({command:`cf cloudforce-one requests assets get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/cloudforce-one/requests/${r[`request-id`]==null?`<request-id>`:encodeURIComponent(String(r[`request-id`]))}/asset/${r[`asset-id`]==null?`<asset-id>`:encodeURIComponent(String(r[`asset-id`]))}`,pathParams:{"request-id":String(r[`request-id`]??``),"asset-id":String(r[`asset-id`]??``)},bodyKind:`none`});return}let c=await i(r),l=r.local?e:await n();r.accountId=l,a(await s(`Loading`,async()=>c.cloudforceOne.requests.assets.get({account_id:l,request_id:r[`request-id`],asset_id:r[`asset-id`]})),{successLabel:`Loaded`})})};function $r(e){return e.usage(`$0 cloudforce-one requests assets list
|
|
196
196
|
|
|
@@ -213,7 +213,7 @@ Retrieves constant values used in Cloudforce One requests, including valid statu
|
|
|
213
213
|
Deletes a Cloudforce One intelligence request and all associated data.`).positional(`request-id`,{type:`string`,description:`UUID.`,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 _i={command:`delete <request-id>`,describe:`Delete a Request`,builder:gi,handler:async r=>c({command:`cloudforce-one requests delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},r,async()=>{if(r.dryRun){o({command:`cf cloudforce-one requests delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/cloudforce-one/requests/${r[`request-id`]==null?`<request-id>`:encodeURIComponent(String(r[`request-id`]))}`,pathParams:{"request-id":String(r[`request-id`]??``)},bodyKind:`none`});return}let c=await i(r),l=r.local?e:await n();if(r.accountId=l,!await _({force:!!r.force})){process.stderr.write(`Aborted.
|
|
214
214
|
`);return}a(await s(`Deleting`,async()=>c.cloudforceOne.requests.delete({account_id:l,request_id:r[`request-id`]})),{successLabel:`Deleted`})})};function vi(e){return e.usage(`$0 cloudforce-one requests getRequestList <project-type>
|
|
215
215
|
|
|
216
|
-
Retrieves a paginated list of RFIs with filtering and sorting options.`).positional(`project-type`,{type:`string`,description:`RFI project type`,demandOption:!0}).option(`page`,{type:`number`,description:`Page`}).option(`page-size`,{type:`number`,description:`PageSize`}).option(`status`,{type:`string`,description:`Status filter. Projects with a narrowed dashboard vocabulary accept only their customer-facing values.`}).option(`search`,{type:`string`,description:`Search`}).option(`created-by`,{type:`string`,description:"Filter by creator email. NOTE: For the `legal-response` project type this query parameter is **rejected with HTTP 400** — the server derives the filter from the authenticated user's JWT automatically and does not accept a client-supplied value. Requests to `legal-response` with no valid JWT identity are rejected with HTTP 401."}).option(`assignee`,{type:`string`,description:`Assignee`}).option(`request-type`,{type:`string`,description:`RequestType`}).option(`priority`,{type:`string`,description:`Priority`}).option(`tlp`,{type:`string`,description:`Tlp`}).option(`id`,{type:`string`,description:`ID`}).option(`readable-id`,{type:`string`,description:`ReadableId`}).option(`summary`,{type:`string`,description:`Summary`}).option(`filter-account-id`,{type:`string`,description:`AccountId`}).option(`metadata`,{type:`string`,description:`JSON string object of metadata filters. Supports two formats: 1) Simple values for exact match (backward compatible): {"status": "open"} 2) Operator objects for advanced filtering: {"identifiers": {"operator": "contains_line", "value": "blah.com"}}. Available operators: 'eq' (exact match, default), 'contains' (substring match), 'contains_line' (match complete line in newline-separated text). Date fields are automatically normalized to YYYY-MM-DD format.`}).option(`order-by`,{type:`string`,description:`
|
|
216
|
+
Retrieves a paginated list of RFIs with filtering and sorting options.`).positional(`project-type`,{type:`string`,description:`RFI project type`,demandOption:!0}).option(`page`,{type:`number`,description:`Page`}).option(`page-size`,{type:`number`,description:`PageSize`}).option(`status`,{type:`string`,description:`Status filter. Projects with a narrowed dashboard vocabulary accept only their customer-facing values.`}).option(`search`,{type:`string`,description:`Search`}).option(`created-by`,{type:`string`,description:"Filter by creator email. NOTE: For the `legal-response` project type this query parameter is **rejected with HTTP 400** — the server derives the filter from the authenticated user's JWT automatically and does not accept a client-supplied value. Requests to `legal-response` with no valid JWT identity are rejected with HTTP 401."}).option(`assignee`,{type:`string`,description:`Assignee`}).option(`request-type`,{type:`string`,description:`RequestType`}).option(`priority`,{type:`string`,description:`Priority`}).option(`tlp`,{type:`string`,description:`Tlp`}).option(`id`,{type:`string`,description:`ID`}).option(`readable-id`,{type:`string`,description:`ReadableId`}).option(`summary`,{type:`string`,description:`Summary`}).option(`filter-account-id`,{type:`string`,description:`AccountId`}).option(`metadata`,{type:`string`,description:`JSON string object of metadata filters. Supports two formats: 1) Simple values for exact match (backward compatible): {"status": "open"} 2) Operator objects for advanced filtering: {"identifiers": {"operator": "contains_line", "value": "blah.com"}}. Available operators: 'eq' (exact match, default), 'contains' (substring match), 'contains_line' (match complete line in newline-separated text). Date fields are automatically normalized to YYYY-MM-DD format.`}).option(`order-by`,{type:`string`,description:`Sort field. SOC Communications support customer-safe latest_activity ordering.`}).option(`order`,{type:`string`,description:`Order`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const yi={command:`getRequestList <project-type>`,describe:`List RFIs`,builder:v(vi),handler:async r=>c({command:`cloudforce-one requests getRequestList`,classification:{safeFlags:[`dry-run`]}},r,async()=>{let c={page:r.page,pageSize:r[`page-size`],status:r.status,search:r.search,createdBy:r[`created-by`],assignee:r.assignee,requestType:r[`request-type`],priority:r.priority,tlp:r.tlp,id:r.id,readableId:r[`readable-id`],summary:r.summary,accountId:r[`filter-account-id`],metadata:r.metadata,orderBy:r[`order-by`],order:r.order};if(r.dryRun){o({command:`cf cloudforce-one requests getRequestList`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/cloudforce-one/v2/requests/${r[`project-type`]==null?`<project-type>`:encodeURIComponent(String(r[`project-type`]))}`,pathParams:{"project-type":String(r[`project-type`]??``)},query:c,bodyKind:`none`});return}let l=await i(r),u=r.local?e:await n();r.accountId=u,a(await s(`Loading`,async()=>l.cloudforceOne.requests.getRequestList({account_id:u,project_type:r[`project-type`],...c})),{successLabel:`Loaded`})})};function bi(e){return e.usage(`$0 cloudforce-one requests getRequestRead <request-id>
|
|
217
217
|
|
|
218
218
|
Retrieves a specific RFI by its UUID with related data.`).positional(`request-id`,{type:`string`,description:`RFI UUID`,demandOption:!0}).option(`project-type`,{type:`string`,description:`RFI project type. Valid values: threat-intelligence, incident-response, ir-emergency-response, table-top, pentest, irp, threat-hunting, cybersecurity-assessment, react-general, legal-response, soc-alerts, demo`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const xi={command:`getRequestRead <request-id>`,describe:`Get an RFI by ID`,builder:v(bi),handler:async r=>c({command:`cloudforce-one requests getRequestRead`,classification:{safeFlags:[`dry-run`]}},r,async()=>{if(r.dryRun){o({command:`cf cloudforce-one requests getRequestRead`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/cloudforce-one/v2/requests/${r[`project-type`]==null?`<project-type>`:encodeURIComponent(String(r[`project-type`]))}/${r[`request-id`]==null?`<request-id>`:encodeURIComponent(String(r[`request-id`]))}`,pathParams:{"project-type":String(r[`project-type`]??``),"request-id":String(r[`request-id`]??``)},bodyKind:`none`});return}let c=await i(r),l=r.local?e:await n();r.accountId=l,a(await s(`Loading`,async()=>c.cloudforceOne.requests.getRequestRead({account_id:l,project_type:r[`project-type`],request_id:r[`request-id`]})),{successLabel:`Loaded`})})};function Si(e){return e.usage(`$0 cloudforce-one requests legal-response access-check
|
|
219
219
|
|
|
@@ -236,11 +236,11 @@ Retrieves the published, non-deleted messages visible to the agent for an RFI re
|
|
|
236
236
|
|
|
237
237
|
Updates an existing message, typically to publish a draft by setting publish=true. Workflow-enabled publication requires Idempotency-Key and atomically records message activity and any policy transition.`).positional(`message-id`,{type:`string`,description:`Message ID`,demandOption:!0}).option(`project-type`,{type:`string`,description:`Project type`,demandOption:!0}).option(`request-id`,{type:`string`,description:`Request ID`,demandOption:!0}).option(`idempotency-key`,{type:`string`,description:`Client command key. Required when publishing a message for a workflow-enabled project; trimmed and limited to 255 characters.`}).option(`attachment-asset-ids`,{type:`string`,array:!0,description:`The attachment_asset_ids field`}).option(`content`,{type:`string`,description:`The content field`}).option(`publish`,{type:`boolean`,description:`The publish field`}).option(`tlp`,{type:`string`,description:`The tlp field`,choices:[`clear`,`green`,`amber`,`amber-strict`,`red`,`white`]}).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 Vi={command:`update <message-id>`,describe:`Update/publish a message for an RFI request`,builder:Bi,handler:async d=>c({command:`cloudforce-one requests messages update`,classification:{safeFlags:[`publish`,`tlp`,`dry-run`]}},d,async()=>{let c={};if(d[`idempotency-key`]!==void 0&&(c[`Idempotency-Key`]=String(d[`idempotency-key`])),d.dryRun){o({command:`cf cloudforce-one requests messages update`,method:`PUT`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/cloudforce-one/v2/requests/${d[`project-type`]==null?`<project-type>`:encodeURIComponent(String(d[`project-type`]))}/${d[`request-id`]==null?`<request-id>`:encodeURIComponent(String(d[`request-id`]))}/messages/${d[`message-id`]==null?`<message-id>`:encodeURIComponent(String(d[`message-id`]))}`,pathParams:{"project-type":String(d[`project-type`]??``),"request-id":String(d[`request-id`]??``),"message-id":String(d[`message-id`]??``)},bodyKind:`json`,body:d.body===void 0?f({attachment_asset_ids:d[`attachment-asset-ids`],content:p(d.content,`content`,`text`),publish:d.publish,tlp:p(d.tlp,`tlp`,`text`)}):u(d.body)});return}let m=await i(d),_=d.local?e:await n();if(d.accountId=_,d.body){let e=u(d.body);a(await s(`Updating`,async()=>r(m,`PUT`,`/accounts/${_}/cloudforce-one/v2/requests/${encodeURIComponent(String(d[`project-type`]))}/${encodeURIComponent(String(d[`request-id`]))}/messages/${encodeURIComponent(String(d[`message-id`]))}`,{body:e,headers:Object.keys(c).length>0?c:void 0})),{successLabel:`Updated`});return}if(d.content===void 0&&(d.content=await h(`content`,`The content field`)),d.publish===void 0)throw Error(`--publish is required (or pass --body with this field set).`);d.tlp===void 0&&(d.tlp=await g(`tlp`,`The tlp field`,[`clear`,`green`,`amber`,`amber-strict`,`red`,`white`]));let v={};d[`attachment-asset-ids`]!==void 0&&l(v,[`attachment_asset_ids`],d[`attachment-asset-ids`]),d.content!==void 0&&l(v,[`content`],p(d.content,`content`,`text`)),d.publish!==void 0&&l(v,[`publish`],d.publish),d.tlp!==void 0&&l(v,[`tlp`],p(d.tlp,`tlp`,`text`)),a(await s(`Updating`,async()=>r(m,`PUT`,`/accounts/${_}/cloudforce-one/v2/requests/${encodeURIComponent(String(d[`project-type`]))}/${encodeURIComponent(String(d[`request-id`]))}/messages/${encodeURIComponent(String(d[`message-id`]))}`,{body:Object.keys(v).length>0?v:void 0,headers:Object.keys(c).length>0?c:void 0})),{successLabel:`Updated`})})},Hi={command:`messages`,describe:`Operations for requests.messages`,builder:e=>e.command(Fi).command(Li).command(zi).command(Vi).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function Ui(e){return e.usage(`$0 cloudforce-one requests metadata list
|
|
238
238
|
|
|
239
|
-
Get custom metadata fields available for the specified project type`).option(`project-type`,{type:`string`,description:`Project type`,demandOption:!0}).option(`request-type`,{type:`string`,description:`Filter fields to those applicable to this request type. Fields without request type restrictions are always included.`}).option(`country`,{type:`string`,description:`Exclude fields restricted for this alpha-2 country code`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const
|
|
239
|
+
Get custom metadata fields available for the specified project type`).option(`project-type`,{type:`string`,description:`Project type`,demandOption:!0}).option(`request-type`,{type:`string`,description:`Filter fields to those applicable to this request type. Fields without request type restrictions are always included.`}).option(`country`,{type:`string`,description:`Exclude fields restricted for this alpha-2 country code`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const $={command:`list`,describe:`List metadata fields for an RFI type`,builder:v(Ui),handler:async r=>c({command:`cloudforce-one requests metadata list`,classification:{safeFlags:[`dry-run`]}},r,async()=>{let c={request_type:r[`request-type`],country:r.country};if(r.dryRun){o({command:`cf cloudforce-one requests metadata list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/cloudforce-one/v2/requests/${r[`project-type`]==null?`<project-type>`:encodeURIComponent(String(r[`project-type`]))}/metadata`,pathParams:{"project-type":String(r[`project-type`]??``)},query:c,bodyKind:`none`});return}let l=await i(r),u=r.local?e:await n();r.accountId=u,a(await s(`Loading`,async()=>l.cloudforceOne.requests.metadata.list({account_id:u,project_type:r[`project-type`],...c})),{successLabel:`Loaded`})})},Wi={command:`metadata`,describe:`Operations for requests.metadata`,builder:e=>e.command($).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function Gi(e){return e.usage(`$0 cloudforce-one requests postRequestCreate <project-type>
|
|
240
240
|
|
|
241
|
-
Creates a new Request for Information with the specified project type and details.`).positional(`project-type`,{type:`string`,description:`RFI project type`,demandOption:!0}).option(`description`,{type:`string`,description:`RFI description (optional). Defaults to an empty string when omitted.`}).option(`event-id`,{type:`string`,description:`Optional related event ID`}).option(`priority`,{type:`string`,description:"RFI priority. Four-level projects use `low`, `routine`, `high`, `urgent`; existing projects retain legacy `low`->routine compatibility. `medium`, `critical`, and `unknown` remain accepted legacy aliases. Defaults to `routine`.",choices:[`low`,`routine`,`high`,`urgent`,`unknown`,`medium`,`critical`]}).option(`request-type`,{type:`string`,description:`Optional request type for the request`}).option(`subtype-id`,{type:`string`,description:`Optional subtype ID`}).option(`title`,{type:`string`,description:`RFI title (optional). When omitted, the server generates a summary from the request type and readable ID.`}).option(`tlp`,{type:`string`,description:"Traffic Light Protocol level. Canonical values are `clear`, `green`, `amber`, `amber-strict`, `red`, `purple`. `white` and `amber+strict` are accepted input aliases; responses always use the canonical spelling.",choices:[`clear`,`green`,`amber`,`amber-strict`,`red`,`purple`,`white`,`amber+strict`]}).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
|
|
241
|
+
Creates a new Request for Information with the specified project type and details.`).positional(`project-type`,{type:`string`,description:`RFI project type`,demandOption:!0}).option(`description`,{type:`string`,description:`RFI description (optional). Defaults to an empty string when omitted.`}).option(`event-id`,{type:`string`,description:`Optional related event ID`}).option(`priority`,{type:`string`,description:"RFI priority. Four-level projects use `low`, `routine`, `high`, `urgent`; existing projects retain legacy `low`->routine compatibility. `medium`, `critical`, and `unknown` remain accepted legacy aliases. Defaults to `routine`.",choices:[`low`,`routine`,`high`,`urgent`,`unknown`,`medium`,`critical`]}).option(`request-type`,{type:`string`,description:`Optional request type for the request`}).option(`subtype-id`,{type:`string`,description:`Optional subtype ID`}).option(`title`,{type:`string`,description:`RFI title (optional). When omitted, the server generates a summary from the request type and readable ID.`}).option(`tlp`,{type:`string`,description:"Traffic Light Protocol level. Canonical values are `clear`, `green`, `amber`, `amber-strict`, `red`, `purple`. `white` and `amber+strict` are accepted input aliases; responses always use the canonical spelling.",choices:[`clear`,`green`,`amber`,`amber-strict`,`red`,`purple`,`white`,`amber+strict`]}).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 Ki={command:`postRequestCreate <project-type>`,describe:`Creates a new RFI`,builder:v(Gi),handler:async r=>c({command:`cloudforce-one requests postRequestCreate`,classification:{safeFlags:[`priority`,`tlp`,`dry-run`]}},r,async()=>{if(r.dryRun){o({command:`cf cloudforce-one requests postRequestCreate`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/cloudforce-one/v2/requests/${r[`project-type`]==null?`<project-type>`:encodeURIComponent(String(r[`project-type`]))}`,pathParams:{"project-type":String(r[`project-type`]??``)},bodyKind:`json`,body:r.body===void 0?f({description:p(r.description,`description`,`text`),eventId:p(r[`event-id`],`event-id`,`text`),priority:p(r.priority,`priority`,`text`),request_type:p(r[`request-type`],`request-type`,`text`),subtypeId:p(r[`subtype-id`],`subtype-id`,`text`),title:p(r.title,`title`,`text`),tlp:p(r.tlp,`tlp`,`text`)}):u(r.body)});return}let c=await i(r),l=r.local?e:await n();if(r.accountId=l,r.body){let e=u(r.body);a(await s(`Creating`,async()=>c.cloudforceOne.requests.postRequestCreate({...e,account_id:l,project_type:r[`project-type`]})),{successLabel:`Created`});return}let d=f({description:p(r.description,`description`,`text`),eventId:p(r[`event-id`],`event-id`,`text`),priority:p(r.priority,`priority`,`text`),request_type:p(r[`request-type`],`request-type`,`text`),subtypeId:p(r[`subtype-id`],`subtype-id`,`text`),title:p(r.title,`title`,`text`),tlp:p(r.tlp,`tlp`,`text`)});a(await s(`Creating`,async()=>c.cloudforceOne.requests.postRequestCreate({...d,account_id:l,project_type:r[`project-type`]})),{successLabel:`Created`})})};function qi(e){return e.usage(`$0 cloudforce-one requests priority create
|
|
242
242
|
|
|
243
|
-
Creates a new priority intelligence request in Cloudforce One.`).option(`labels`,{type:`string`,array:!0,description:`List of labels.`}).option(`priority`,{type:`number`,description:`Priority.`}).option(`requirement`,{type:`string`,description:`Requirement.`}).option(`tlp`,{type:`string`,description:`The CISA defined Traffic Light Protocol (TLP).`,choices:[`clear`,`amber`,`amber-strict`,`green`,`red`]}).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 Ji={command:`create`,describe:`Create a New Priority Intelligence Requirement`,builder
|
|
243
|
+
Creates a new priority intelligence request in Cloudforce One.`).option(`labels`,{type:`string`,array:!0,description:`List of labels.`}).option(`priority`,{type:`number`,description:`Priority.`}).option(`requirement`,{type:`string`,description:`Requirement.`}).option(`tlp`,{type:`string`,description:`The CISA defined Traffic Light Protocol (TLP).`,choices:[`clear`,`amber`,`amber-strict`,`green`,`red`]}).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 Ji={command:`create`,describe:`Create a New Priority Intelligence Requirement`,builder:qi,handler:async r=>c({command:`cloudforce-one requests priority create`,classification:{safeFlags:[`tlp`,`dry-run`]}},r,async()=>{if(r.dryRun){o({command:`cf cloudforce-one requests priority create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/cloudforce-one/requests/priority/new`,pathParams:{},bodyKind:`json`,body:r.body===void 0?f({labels:r.labels,priority:r.priority,requirement:p(r.requirement,`requirement`,`text`),tlp:p(r.tlp,`tlp`,`text`)}):u(r.body)});return}let c=await i(r),l=r.local?e:await n();if(r.accountId=l,r.body){let e=u(r.body);a(await s(`Creating`,async()=>c.cloudforceOne.requests.priority.create({body:e,account_id:l})),{successLabel:`Created`});return}if(r.labels===void 0)throw Error(`--labels is required (or pass --body with this field set).`);if(r.priority===void 0)throw Error(`--priority is required (or pass --body with this field set).`);r.requirement===void 0&&(r.requirement=await h(`requirement`,`Requirement.`)),r.tlp===void 0&&(r.tlp=await g(`tlp`,`The CISA defined Traffic Light Protocol (TLP).`,[`clear`,`amber`,`amber-strict`,`green`,`red`]));let d=f({labels:r.labels,priority:r.priority,requirement:p(r.requirement,`requirement`,`text`),tlp:p(r.tlp,`tlp`,`text`)});a(await s(`Creating`,async()=>c.cloudforceOne.requests.priority.create({body:d,account_id:l})),{successLabel:`Created`})})};function Yi(e){return e.usage(`$0 cloudforce-one requests priority delete <priority-id>
|
|
244
244
|
|
|
245
245
|
Deletes a priority intelligence request from Cloudforce One.`).positional(`priority-id`,{type:`string`,description:`UUID.`,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 Xi={command:`delete <priority-id>`,describe:`Delete a Priority Intelligence Requirement`,builder:Yi,handler:async r=>c({command:`cloudforce-one requests priority delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},r,async()=>{if(r.dryRun){o({command:`cf cloudforce-one requests priority delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/cloudforce-one/requests/priority/${r[`priority-id`]==null?`<priority-id>`:encodeURIComponent(String(r[`priority-id`]))}`,pathParams:{"priority-id":String(r[`priority-id`]??``)},bodyKind:`none`});return}let c=await i(r),l=r.local?e:await n();if(r.accountId=l,!await _({force:!!r.force})){process.stderr.write(`Aborted.
|
|
246
246
|
`);return}a(await s(`Deleting`,async()=>c.cloudforceOne.requests.priority.delete({account_id:l,priority_id:r[`priority-id`]})),{successLabel:`Deleted`})})};function Zi(e){return e.usage(`$0 cloudforce-one requests priority get <priority-id>
|
|
@@ -259,7 +259,7 @@ Retrieves quota usage for Cloudforce One standard requests.`).option(`dry-run`,{
|
|
|
259
259
|
|
|
260
260
|
Lists available request types for Cloudforce One intelligence requests.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const da={command:`types`,describe:`Get Request Types`,builder:ua,handler:async r=>c({command:`cloudforce-one requests types`,classification:{safeFlags:[`dry-run`]}},r,async()=>{if(r.dryRun){o({command:`cf cloudforce-one requests types`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/cloudforce-one/requests/types`,pathParams:{},bodyKind:`none`});return}let c=await i(r),l=r.local?e:await n();r.accountId=l,a(await s(`Loading`,async()=>c.cloudforceOne.requests.types({account_id:l})),{successLabel:`Loaded`})})};function fa(e){return e.usage(`$0 cloudforce-one requests user get <project-type>
|
|
261
261
|
|
|
262
|
-
Get the current user's profile in a specific RFI project.`).positional(`project-type`,{type:`string`,description:`RFI project type`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const pa={command:`get <project-type>`,describe:`Get current user profile`,builder:fa,handler:async r=>c({command:`cloudforce-one requests user get`,classification:{safeFlags:[`dry-run`]}},r,async()=>{if(r.dryRun){o({command:`cf cloudforce-one requests user get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/cloudforce-one/v2/requests/${r[`project-type`]==null?`<project-type>`:encodeURIComponent(String(r[`project-type`]))}/user/me`,pathParams:{"project-type":String(r[`project-type`]??``)},bodyKind:`none`});return}let c=await i(r),l=r.local?e:await n();r.accountId=l,a(await s(`Loading`,async()=>c.cloudforceOne.requests.user.get({account_id:l,project_type:r[`project-type`]})),{successLabel:`Loaded`})})},ma={command:`user`,describe:`Operations for requests.user`,builder:e=>e.command(pa).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},ha={command:`requests`,describe:`Additional request operations — priority listing and asset creation`,builder:e=>e.command(si).command(li).command(di).command(pi).command(hi).command(_i).command(yi).command(xi).command(
|
|
262
|
+
Get the current user's profile in a specific RFI project.`).positional(`project-type`,{type:`string`,description:`RFI project type`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const pa={command:`get <project-type>`,describe:`Get current user profile`,builder:fa,handler:async r=>c({command:`cloudforce-one requests user get`,classification:{safeFlags:[`dry-run`]}},r,async()=>{if(r.dryRun){o({command:`cf cloudforce-one requests user get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/cloudforce-one/v2/requests/${r[`project-type`]==null?`<project-type>`:encodeURIComponent(String(r[`project-type`]))}/user/me`,pathParams:{"project-type":String(r[`project-type`]??``)},bodyKind:`none`});return}let c=await i(r),l=r.local?e:await n();r.accountId=l,a(await s(`Loading`,async()=>c.cloudforceOne.requests.user.get({account_id:l,project_type:r[`project-type`]})),{successLabel:`Loaded`})})},ma={command:`user`,describe:`Operations for requests.user`,builder:e=>e.command(pa).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},ha={command:`requests`,describe:`Additional request operations — priority listing and asset creation`,builder:e=>e.command(si).command(li).command(di).command(pi).command(hi).command(_i).command(yi).command(xi).command(Ki).command(sa).command(la).command(da).command(Wr).command(ai).command(wi).command(Ni).command(Hi).command(Wi).command(aa).command(ma).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function ga(e){return e.usage(`$0 cloudforce-one rules approvals cancel <id>
|
|
263
263
|
|
|
264
264
|
Cancel a pending rule approval. Only its original requester may cancel it.`).positional(`id`,{type:`string`,description:`The unique identifier for the approval.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const _a={command:`cancel <id>`,describe:`Cancel a pending approval`,builder:ga,handler:async r=>c({command:`cloudforce-one rules approvals cancel`,classification:{safeFlags:[`dry-run`]}},r,async()=>{if(r.dryRun){o({command:`cf cloudforce-one rules approvals cancel`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/cloudforce-one/rules/approvals/${r.id==null?`<id>`:encodeURIComponent(String(r.id))}/cancel`,pathParams:{id:String(r.id??``)},bodyKind:`none`});return}let c=await i(r),l=r.local?e:await n();r.accountId=l,a(await s(`Creating`,async()=>c.cloudforceOne.rules.approvals.cancel({account_id:l,id:r.id})),{successLabel:`Created`})})};function va(e){return e.usage(`$0 cloudforce-one rules approvals get <id>
|
|
265
265
|
|
|
@@ -379,78 +379,69 @@ Retrieves raw threat event data for a specific event in Cloudforce One.`).positi
|
|
|
379
379
|
Removes a reference link between related threat events in Cloudforce One.`).positional(`event-id`,{type:`string`,description:`Event UUID.`,demandOption:!0}).option(`events`,{type:`string`,array:!0,description:`The events field`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`force`,{type:`boolean`,alias:`f`,description:`Skip confirmation (useful in scripts and CI)`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const Us={command:`delete <event-id>`,describe:`Removes an event reference`,builder:Hs,handler:async r=>c({command:`cloudforce-one threat-events relate delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},r,async()=>{if(r.dryRun){o({command:`cf cloudforce-one threat-events relate delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/cloudforce-one/events/relate/${r[`event-id`]==null?`<event-id>`:encodeURIComponent(String(r[`event-id`]))}`,pathParams:{"event-id":String(r[`event-id`]??``)},bodyKind:`json`,body:r.body===void 0?f({events:r.events}):u(r.body)});return}let c=await i(r),l=r.local?e:await n();if(r.accountId=l,!await _({force:!!r.force})){process.stderr.write(`Aborted.
|
|
380
380
|
`);return}if(r.body){let e=u(r.body);a(await s(`Deleting`,async()=>c.cloudforceOne.threatEvents.relate.delete({...e,account_id:l,event_id:r[`event-id`]})),{successLabel:`Deleted`});return}if(r.events===void 0)throw Error(`--events is required (or pass --body with this field set).`);let d=f({events:r.events});a(await s(`Deleting`,async()=>c.cloudforceOne.threatEvents.relate.delete({...d,account_id:l,event_id:r[`event-id`]})),{successLabel:`Deleted`})})},Ws={command:`relate`,describe:`Operations for threat-events.relate`,builder:e=>e.command(Us).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function Gs(e){return e.usage('$0 cloudforce-one threat-events search\n\nUse `datasetId: ["all"]` or `datasetId: ["*"]` for the legacy all-datasets scope, `datasetId: ["analytics"]` for datasets with `isAnalytics=true`, or `datasetId: ["operational"]` for datasets with `isAnalytics=false` (limited to 50). Scope values must be used alone. When `datasetId` is unspecified, events are listed from the default Cloudforce One Threat Events dataset. To list existing datasets, use the [`List Datasets`](https://developers.cloudflare.com/api/resources/cloudforce_one/subresources/threat_events/subresources/datasets/methods/list/) endpoint.').option(`force-refresh`,{type:`boolean`,description:`ForceRefresh`}).option(`format`,{type:`string`,description:`Output format for event data. 'json' returns the default format, 'stix2' returns STIX 2.1 Sighting SROs with linked Indicator SDOs, Observed Data SDOs, and SCOs, 'taxii' returns a TAXII 2.1 Envelope with Content-Type application/taxii+json;version=2.1.`,choices:[`json`,`stix2`,`taxii`]}).option(`cache`,{type:`string`,description:`Cache strategy. 'from-graph' serves results from the graph-node KV cache when all requested UUIDs are cached; falls back to normal path on partial/zero hit.`,choices:[`from-graph`]}).option(`cursor`,{type:`string`,description:`Cursor for pagination. When provided, filters are embedded in the cursor so you only need to pass cursor and pageSize.`}).option(`dataset-id`,{type:`string`,array:!0,description:`Dataset UUIDs to query, or one standalone scope value: 'all'/'*' for the legacy all-datasets behavior, 'analytics' for isAnalytics=true datasets, or 'operational' for isAnalytics=false datasets. If not provided, uses the default dataset.`}).option(`order`,{type:`string`,description:`The order field`,choices:[`asc`,`desc`]}).option(`order-by`,{type:`string`,description:`The orderBy field`}).option(`page`,{type:`number`,description:`The page field`}).option(`page-size`,{type:`number`,description:`The pageSize field`}).option(`search`,{type:`string`,description:`Structured search as a JSON array of {field, op, value} objects. Use the 'in' operator with an array value to bulk-check up to 100 values. Multiple conditions are AND'd together. Max 10 conditions per request. Provide as a JSON array of objects or @path/to/file.json.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const Ks={command:`search`,describe:`Filter and list events`,builder:v(Gs),handler:async r=>c({command:`cloudforce-one threat-events search`,classification:{safeFlags:[`force-refresh`,`format`,`cache`,`order`,`dry-run`]}},r,async()=>{let c={forceRefresh:r[`force-refresh`],format:r.format,cache:r.cache};if(r.dryRun){o({command:`cf cloudforce-one threat-events search`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/cloudforce-one/events`,pathParams:{},query:c,bodyKind:`json`,body:r.body===void 0?f({cursor:p(r.cursor,`cursor`,`text`),datasetId:r[`dataset-id`],order:p(r.order,`order`,`text`),orderBy:p(r[`order-by`],`order-by`,`text`),page:r.page,pageSize:r[`page-size`],search:d(r.search,`search`)}):u(r.body)});return}let l=await i(r),m=r.local?e:await n();if(r.accountId=m,r.body){let e=u(r.body);new URLSearchParams(Object.entries(c).filter(([,e])=>e!==void 0).map(([e,t])=>[e,String(t)])).toString(),a(await s(`Loading`,async()=>l.cloudforceOne.threatEvents.search({...e,account_id:m,...c})),{successLabel:`Loaded`});return}let h=f({cursor:p(r.cursor,`cursor`,`text`),datasetId:r[`dataset-id`],order:p(r.order,`order`,`text`),orderBy:p(r[`order-by`],`order-by`,`text`),page:r.page,pageSize:r[`page-size`],search:d(r.search,`search`)});new URLSearchParams(Object.entries(c).filter(([,e])=>e!==void 0).map(([e,t])=>[e,String(t)])).toString(),a(await s(`Loading`,async()=>l.cloudforceOne.threatEvents.search({...h,account_id:m,...c})),{successLabel:`Loaded`})})};function qs(e){return e.usage(`$0 cloudforce-one threat-events tags create
|
|
381
381
|
|
|
382
|
-
Creates
|
|
382
|
+
Creates an account-owned tag for threat events and returns its complete owner projection.`).option(`alias-group-names`,{type:`string`,array:!0,description:`The aliasGroupNames field`}).option(`alias-group-names-internal`,{type:`string`,array:!0,description:`The aliasGroupNamesInternal field`}).option(`aliases`,{type:`string`,description:`Structured aliases ({ value, confidence 1-10, tlp }). Public: returned to all accounts with per-entry TLP filtering (entries with tlp: purple are removed for non-CFONE accounts). Provide as a JSON array of objects or @path/to/file.json.`}).option(`category-uuid`,{type:`string`,description:"Tag type (category) UUID. Optional — when present, `properties` is validated against this category's schema. When absent, the tag is typeless and properties are accepted free-form."}).option(`confidence`,{type:`number`,description:`Overall tag confidence (1-10). Optional.`}).option(`date-of-discovery`,{type:`string`,description:`Date of discovery (ISO YYYY-MM-DD). Optional.`}).option(`description`,{type:`string`,description:`The description field`}).option(`external-reference-links`,{type:`string`,array:!0,description:`The externalReferenceLinks field`}).option(`external-references`,{type:`string`,description:`Structured external references ({ url, description }). Public: returned to all accounts. Provide as a JSON array of objects or @path/to/file.json.`}).option(`internal-aliases`,{type:`string`,description:`Owner-private structured aliases ({ value, confidence 1-10, tlp }). Returned to the owning account and omitted from shared-catalog non-owner responses. Provide as a JSON array of objects or @path/to/file.json.`}).option(`internal-description`,{type:`string`,description:`The internalDescription field`}).option(`last-seen`,{type:`string`,description:`The lastSeen field`}).option(`tlp`,{type:`string`,description:`Tag-level TLP handling marking. Optional. Allowed values: red, amber, amber-strict, green, clear, purple, amber+strict.`,choices:[`red`,`amber`,`amber-strict`,`green`,`clear`,`purple`,`amber+strict`]}).option(`value`,{type:`string`,description:`The value 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 Js={command:`create`,describe:`Creates a new tag`,builder:qs,handler:async r=>c({command:`cloudforce-one threat-events tags create`,classification:{safeFlags:[`tlp`,`dry-run`]}},r,async()=>{if(r.dryRun){o({command:`cf cloudforce-one threat-events tags create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/cloudforce-one/events/tags/create`,pathParams:{},bodyKind:`json`,body:r.body===void 0?f({aliasGroupNames:r[`alias-group-names`],aliasGroupNamesInternal:r[`alias-group-names-internal`],aliases:d(r.aliases,`aliases`),categoryUuid:p(r[`category-uuid`],`category-uuid`,`text`),confidence:r.confidence,dateOfDiscovery:p(r[`date-of-discovery`],`date-of-discovery`,`text`),description:p(r.description,`description`,`text`),externalReferenceLinks:r[`external-reference-links`],externalReferences:d(r[`external-references`],`external-references`),internalAliases:d(r[`internal-aliases`],`internal-aliases`),internalDescription:p(r[`internal-description`],`internal-description`,`text`),lastSeen:p(r[`last-seen`],`last-seen`,`text`),tlp:p(r.tlp,`tlp`,`text`),value:p(r.value,`value`,`text`)}):u(r.body)});return}let c=await i(r),l=r.local?e:await n();if(r.accountId=l,r.body){let e=u(r.body);a(await s(`Creating`,async()=>c.cloudforceOne.threatEvents.tags.create({...e,account_id:l})),{successLabel:`Created`});return}r.value===void 0&&(r.value=await h(`value`,`The value field`));let m=f({aliasGroupNames:r[`alias-group-names`],aliasGroupNamesInternal:r[`alias-group-names-internal`],aliases:d(r.aliases,`aliases`),categoryUuid:p(r[`category-uuid`],`category-uuid`,`text`),confidence:r.confidence,dateOfDiscovery:p(r[`date-of-discovery`],`date-of-discovery`,`text`),description:p(r.description,`description`,`text`),externalReferenceLinks:r[`external-reference-links`],externalReferences:d(r[`external-references`],`external-references`),internalAliases:d(r[`internal-aliases`],`internal-aliases`),internalDescription:p(r[`internal-description`],`internal-description`,`text`),lastSeen:p(r[`last-seen`],`last-seen`,`text`),tlp:p(r.tlp,`tlp`,`text`),value:p(r.value,`value`,`text`)});a(await s(`Creating`,async()=>c.cloudforceOne.threatEvents.tags.create({...m,account_id:l})),{successLabel:`Created`})})},Ys={command:`tags`,describe:`Operations for threat-events.tags`,builder:e=>e.command(Js).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function Xs(e){return e.usage(`$0 cloudforce-one threat-events target-industries list
|
|
383
383
|
|
|
384
384
|
Retrieves the catalog of industry classifications used in Cloudforce One threat intelligence.`).option(`dataset-ids`,{type:`string`,description:`Array of dataset IDs to query target industries from. If not provided, uses the default dataset.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const Zs={command:`list`,describe:`Lists target industries across multiple datasets`,builder:Xs,handler:async r=>c({command:`cloudforce-one threat-events target-industries list`,classification:{safeFlags:[`dry-run`]}},r,async()=>{let c={datasetIds:r[`dataset-ids`]};if(r.dryRun){o({command:`cf cloudforce-one threat-events target-industries list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/cloudforce-one/events/targetIndustries`,pathParams:{},query:c,bodyKind:`none`});return}let l=await i(r),u=r.local?e:await n();r.accountId=u,a(await s(`Loading`,async()=>l.cloudforceOne.threatEvents.targetIndustries.list({account_id:u,...c})),{successLabel:`Loaded`})})},Qs={command:`target-industries`,describe:`Operations for threat-events.target-industries`,builder:e=>e.command(Zs).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},$s={command:`threat-events`,describe:`Operations for threat-events`,builder:e=>e.command(Yo).command(ds).command(ws).command(js).command(Is).command(Ks).command(qo).command(os).command(ls).command(Ss).command(ks).command(Ps).command(Vs).command(Ws).command(Ys).command(Qs).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function ec(e){return e.usage(`$0 cloudforce-one threat-signals articles bulk-mark-read
|
|
385
385
|
|
|
386
|
-
|
|
386
|
+
Marks up to 50 Threat Signals articles as read or unread.`).option(`article-ids`,{type:`string`,array:!0,description:`The article_ids field`}).option(`read`,{type:`boolean`,description:`The read 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 tc={command:`bulk-mark-read`,describe:`Bulk update Threat Signals article read status`,builder:ec,handler:async r=>c({command:`cloudforce-one threat-signals articles bulk-mark-read`,classification:{safeFlags:[`read`,`dry-run`]}},r,async()=>{if(r.dryRun){o({command:`cf cloudforce-one threat-signals articles bulk-mark-read`,method:`PATCH`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/cloudforce-one/v2/threat-signals/articles`,pathParams:{},bodyKind:`json`,body:r.body===void 0?f({article_ids:r[`article-ids`],read:r.read}):u(r.body)});return}let c=await i(r),l=r.local?e:await n();if(r.accountId=l,r.body){let e=u(r.body);a(await s(`Updating`,async()=>c.cloudforceOne.threatSignals.articles.bulkMarkRead({...e,account_id:l})),{successLabel:`Updated`});return}if(r[`article-ids`]===void 0)throw Error(`--article-ids is required (or pass --body with this field set).`);if(r.read===void 0)throw Error(`--read is required (or pass --body with this field set).`);let d=f({article_ids:r[`article-ids`],read:r.read});a(await s(`Updating`,async()=>c.cloudforceOne.threatSignals.articles.bulkMarkRead({...d,account_id:l})),{successLabel:`Updated`})})};function nc(e){return e.usage(`$0 cloudforce-one threat-signals articles get-content <article-id>
|
|
387
387
|
|
|
388
|
-
|
|
388
|
+
Retrieves the stored body of a Threat Signals article as plain text or HTML.`).positional(`article-id`,{type:`string`,description:`Article ID`,demandOption:!0}).option(`format`,{type:`string`,description:`Format`,choices:[`text`,`html`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const rc={command:`get-content <article-id>`,describe:`Get Threat Signals article content`,builder:nc,handler:async r=>c({command:`cloudforce-one threat-signals articles get-content`,classification:{safeFlags:[`format`,`dry-run`]}},r,async()=>{let a={format:r.format};if(r.dryRun){o({command:`cf cloudforce-one threat-signals articles get-content`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/cloudforce-one/v2/threat-signals/articles/${r[`article-id`]==null?`<article-id>`:encodeURIComponent(String(r[`article-id`]))}/content`,pathParams:{"article-id":String(r[`article-id`]??``)},query:a,bodyKind:`none`});return}await i(r);let c=r.local?e:await n();r.accountId=c;let l=new URLSearchParams(Object.entries(a).filter(([,e])=>e!==void 0).map(([e,t])=>[e,String(t)])).toString();y((await s(`Loading`,async()=>b(`/accounts/${c}/cloudforce-one/v2/threat-signals/articles/${encodeURIComponent(String(r[`article-id`]))}/content${l?`?`+l:``}`,{method:`GET`,local:r.local===!0,persistTo:r.persistTo}))).toString(`utf-8`))})};function ic(e){return e.usage(`$0 cloudforce-one threat-signals articles get <article-id>
|
|
389
389
|
|
|
390
|
-
|
|
390
|
+
Retrieves a Threat Signals article with its summary, tags and indicator status.`).positional(`article-id`,{type:`string`,description:`Article ID`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const ac={command:`get <article-id>`,describe:`Get Threat Signals article`,builder:ic,handler:async r=>c({command:`cloudforce-one threat-signals articles get`,classification:{safeFlags:[`dry-run`]}},r,async()=>{if(r.dryRun){o({command:`cf cloudforce-one threat-signals articles get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/cloudforce-one/v2/threat-signals/articles/${r[`article-id`]==null?`<article-id>`:encodeURIComponent(String(r[`article-id`]))}`,pathParams:{"article-id":String(r[`article-id`]??``)},bodyKind:`none`});return}let c=await i(r),l=r.local?e:await n();r.accountId=l,a(await s(`Loading`,async()=>c.cloudforceOne.threatSignals.articles.get({account_id:l,article_id:r[`article-id`]})),{successLabel:`Loaded`})})};function oc(e){return e.usage(`$0 cloudforce-one threat-signals articles list
|
|
391
391
|
|
|
392
|
-
|
|
392
|
+
Lists articles from the account's Threat Signals feeds.`).option(`cursor`,{type:`string`,description:"Opaque cursor from a previous response's `next_cursor`. When provided, pagination, ordering, totals, and article filters come from the cursor. Sending `per_page`, `sort`, `include_total`, or any article filter alongside it returns a 400 `CursorFilterConflictError`."}).option(`per-page`,{type:`number`,description:`Per page`}).option(`feed-id`,{type:`string`,description:`Feed ID`}).option(`article-id`,{type:`string`,description:`Repeatable article UUID filter. Returns the union of matching account-owned articles; use this to list every Threat Signals article referenced by an indicator's sources.`}).option(`read`,{type:`boolean`,description:`Read`}).option(`tag-id`,{type:`string`,description:`Repeatable tag UUID filter. An article matches any selected tag.`}).option(`tag-category-id`,{type:`string`,description:`Repeatable tag-category UUID filter. An article matches any selected category; when tag_id is also present, the tag and category groups are ANDed.`}).option(`tag`,{type:`string`,description:`Legacy human-readable tag-value filter. Ignored when tag_id is supplied; prefer tag_id.`}).option(`tag-category`,{type:`string`,description:`Legacy category-name disambiguator for tag. It has no effect without tag; prefer tag_category_id.`}).option(`include-total`,{type:`boolean`,description:`Include total`}).option(`search`,{type:`string`,description:`Search`}).option(`published-after`,{type:`string`,description:`Published after`}).option(`published-before`,{type:`string`,description:`Published before`}).option(`fetched-after`,{type:`string`,description:`Fetched after`}).option(`fetched-before`,{type:`string`,description:`Fetched before`}).option(`feed-category`,{type:`string`,description:`Feed category`}).option(`source-type`,{type:`string`,description:`Source type`,choices:[`curated`,`custom`]}).option(`tag-applied-by`,{type:`string`,description:`Assignment provenance filter. When combined with tag_id or tag_category_id, the matching assignment must have this provenance.`,choices:[`ai`,`analyst`,`system`]}).option(`sort`,{type:`string`,description:`Sort`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const sc={command:`list`,describe:`List Threat Signals articles`,builder:v(oc),handler:async r=>c({command:`cloudforce-one threat-signals articles list`,classification:{safeFlags:[`read`,`include-total`,`source-type`,`tag-applied-by`,`dry-run`]}},r,async()=>{let c={cursor:r.cursor,per_page:r[`per-page`],feed_id:r[`feed-id`],article_id:r[`article-id`],read:r.read,tag_id:r[`tag-id`],tag_category_id:r[`tag-category-id`],tag:r.tag,tag_category:r[`tag-category`],include_total:r[`include-total`],search:r.search,published_after:r[`published-after`],published_before:r[`published-before`],fetched_after:r[`fetched-after`],fetched_before:r[`fetched-before`],feed_category:r[`feed-category`],source_type:r[`source-type`],tag_applied_by:r[`tag-applied-by`],sort:r.sort};if(r.dryRun){o({command:`cf cloudforce-one threat-signals articles list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/cloudforce-one/v2/threat-signals/articles`,pathParams:{},query:c,bodyKind:`none`});return}let l=await i(r),u=r.local?e:await n();r.accountId=u,a(await s(`Loading`,async()=>l.cloudforceOne.threatSignals.articles.list({account_id:u,...c})),{successLabel:`Loaded`})})};function cc(e){return e.usage(`$0 cloudforce-one threat-signals articles mark-read <article-id>
|
|
393
393
|
|
|
394
|
-
|
|
394
|
+
Marks a Threat Signals article as read or unread.`).positional(`article-id`,{type:`string`,description:`Article ID`,demandOption:!0}).option(`read`,{type:`boolean`,description:`The read 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 lc={command:`mark-read <article-id>`,describe:`Update Threat Signals article read status`,builder:cc,handler:async r=>c({command:`cloudforce-one threat-signals articles mark-read`,classification:{safeFlags:[`read`,`dry-run`]}},r,async()=>{if(r.dryRun){o({command:`cf cloudforce-one threat-signals articles mark-read`,method:`PATCH`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/cloudforce-one/v2/threat-signals/articles/${r[`article-id`]==null?`<article-id>`:encodeURIComponent(String(r[`article-id`]))}`,pathParams:{"article-id":String(r[`article-id`]??``)},bodyKind:`json`,body:r.body===void 0?f({read:r.read}):u(r.body)});return}let c=await i(r),l=r.local?e:await n();if(r.accountId=l,r.body){let e=u(r.body);a(await s(`Updating`,async()=>c.cloudforceOne.threatSignals.articles.markRead({...e,account_id:l,article_id:r[`article-id`]})),{successLabel:`Updated`});return}if(r.read===void 0)throw Error(`--read is required (or pass --body with this field set).`);let d=f({read:r.read});a(await s(`Updating`,async()=>c.cloudforceOne.threatSignals.articles.markRead({...d,account_id:l,article_id:r[`article-id`]})),{successLabel:`Updated`})})};function uc(e){return e.usage(`$0 cloudforce-one threat-signals articles skills get-output <skill-id>
|
|
395
395
|
|
|
396
|
-
|
|
396
|
+
Retrieves the stored output of a skill for a Threat Signals article.`).positional(`skill-id`,{type:`string`,description:`Skill ID`,demandOption:!0}).option(`article-id`,{type:`string`,description:`Article ID`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const dc={command:`get-output <skill-id>`,describe:`Get Threat Signals article skill output`,builder:uc,handler:async r=>c({command:`cloudforce-one threat-signals articles skills get-output`,classification:{safeFlags:[`dry-run`]}},r,async()=>{if(r.dryRun){o({command:`cf cloudforce-one threat-signals articles skills get-output`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/cloudforce-one/v2/threat-signals/articles/${r[`article-id`]==null?`<article-id>`:encodeURIComponent(String(r[`article-id`]))}/skills/${r[`skill-id`]==null?`<skill-id>`:encodeURIComponent(String(r[`skill-id`]))}/output`,pathParams:{"article-id":String(r[`article-id`]??``),"skill-id":String(r[`skill-id`]??``)},bodyKind:`none`});return}let c=await i(r),l=r.local?e:await n();r.accountId=l,a(await s(`Loading`,async()=>c.cloudforceOne.threatSignals.articles.skills.getOutput({account_id:l,article_id:r[`article-id`],skill_id:r[`skill-id`]})),{successLabel:`Loaded`})})},fc={command:`skills`,describe:`Operations for threat-signals.articles.skills`,builder:e=>e.command(dc).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function pc(e){return e.usage(`$0 cloudforce-one threat-signals articles tags add <article-id>
|
|
397
397
|
|
|
398
|
-
|
|
398
|
+
Applies a tag from the account's tag catalog to a Threat Signals article.`).positional(`article-id`,{type:`string`,description:`Article ID`,demandOption:!0}).option(`tag-id`,{type:`string`,description:`The tag_id 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 mc={command:`add <article-id>`,describe:`Add tag to Threat Signals article`,builder:pc,handler:async r=>c({command:`cloudforce-one threat-signals articles tags add`,classification:{safeFlags:[`dry-run`]}},r,async()=>{if(r.dryRun){o({command:`cf cloudforce-one threat-signals articles tags add`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/cloudforce-one/v2/threat-signals/articles/${r[`article-id`]==null?`<article-id>`:encodeURIComponent(String(r[`article-id`]))}/tags`,pathParams:{"article-id":String(r[`article-id`]??``)},bodyKind:`json`,body:r.body===void 0?f({tag_id:p(r[`tag-id`],`tag-id`,`text`)}):u(r.body)});return}let c=await i(r),l=r.local?e:await n();if(r.accountId=l,r.body){let e=u(r.body);a(await s(`Creating`,async()=>c.cloudforceOne.threatSignals.articles.tags.add({...e,account_id:l,article_id:r[`article-id`]})),{successLabel:`Created`});return}r[`tag-id`]===void 0&&(r[`tag-id`]=await h(`tag-id`,`The tag_id field`));let d=f({tag_id:p(r[`tag-id`],`tag-id`,`text`)});a(await s(`Creating`,async()=>c.cloudforceOne.threatSignals.articles.tags.add({...d,account_id:l,article_id:r[`article-id`]})),{successLabel:`Created`})})};function hc(e){return e.usage(`$0 cloudforce-one threat-signals articles tags generate <article-id>
|
|
399
399
|
|
|
400
|
-
|
|
400
|
+
Runs the default AI tagging skill on an article and replaces its AI-applied tags.`).positional(`article-id`,{type:`string`,description:`Article ID`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const gc={command:`generate <article-id>`,describe:`Generate Threat Signals article AI tags`,builder:hc,handler:async r=>c({command:`cloudforce-one threat-signals articles tags generate`,classification:{safeFlags:[`dry-run`]}},r,async()=>{if(r.dryRun){o({command:`cf cloudforce-one threat-signals articles tags generate`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/cloudforce-one/v2/threat-signals/articles/${r[`article-id`]==null?`<article-id>`:encodeURIComponent(String(r[`article-id`]))}/tag`,pathParams:{"article-id":String(r[`article-id`]??``)},bodyKind:`none`});return}let c=await i(r),l=r.local?e:await n();r.accountId=l,a(await s(`Creating`,async()=>c.cloudforceOne.threatSignals.articles.tags.generate({account_id:l,article_id:r[`article-id`]})),{successLabel:`Created`})})};function _c(e){return e.usage(`$0 cloudforce-one threat-signals articles tags remove <tag-id>
|
|
401
401
|
|
|
402
|
-
|
|
402
|
+
Removes a tag from a Threat Signals article.`).positional(`tag-id`,{type:`string`,description:`Tag ID`,demandOption:!0}).option(`article-id`,{type:`string`,description:`Article ID`,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 vc={command:`remove <tag-id>`,describe:`Remove tag from Threat Signals article`,builder:_c,handler:async r=>c({command:`cloudforce-one threat-signals articles tags remove`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},r,async()=>{if(r.dryRun){o({command:`cf cloudforce-one threat-signals articles tags remove`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/cloudforce-one/v2/threat-signals/articles/${r[`article-id`]==null?`<article-id>`:encodeURIComponent(String(r[`article-id`]))}/tags/${r[`tag-id`]==null?`<tag-id>`:encodeURIComponent(String(r[`tag-id`]))}`,pathParams:{"article-id":String(r[`article-id`]??``),"tag-id":String(r[`tag-id`]??``)},bodyKind:`none`});return}let c=await i(r),l=r.local?e:await n();if(r.accountId=l,!await _({force:!!r.force})){process.stderr.write(`Aborted.
|
|
403
|
+
`);return}a(await s(`Deleting`,async()=>c.cloudforceOne.threatSignals.articles.tags.remove({account_id:l,article_id:r[`article-id`],tag_id:r[`tag-id`]})),{successLabel:`Deleted`})})},yc={command:`tags`,describe:`Operations for threat-signals.articles.tags`,builder:e=>e.command(mc).command(gc).command(vc).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},bc={command:`articles`,describe:`Operations for threat-signals.articles`,builder:e=>e.command(tc).command(ac).command(rc).command(sc).command(lc).command(fc).command(yc).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function xc(e){return e.usage(`$0 cloudforce-one threat-signals categories list
|
|
403
404
|
|
|
404
|
-
|
|
405
|
-
`);return}a(await s(`Deleting`,async()=>c.cloudforceOne.threatSignals.articles.tags.remove({account_id:l,article_id:r[`article-id`],tag_id:r[`tag-id`]})),{successLabel:`Deleted`})})},xc={command:`tags`,describe:`Operations for threat-signals.articles.tags`,builder:e=>e.command(gc).command(vc).command(bc).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},Sc={command:`articles`,describe:`Operations for threat-signals.articles`,builder:e=>e.command(tc).command(ac).command(rc).command(sc).command(lc).command(mc).command(xc).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function Cc(e){return e.usage(`$0 cloudforce-one threat-signals categories list
|
|
405
|
+
Lists the predefined categories that can be assigned to feeds.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const Sc={command:`list`,describe:`List Threat Signals feed categories`,builder:xc,handler:async r=>c({command:`cloudforce-one threat-signals categories list`,classification:{safeFlags:[`dry-run`]}},r,async()=>{if(r.dryRun){o({command:`cf cloudforce-one threat-signals categories list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/cloudforce-one/v2/threat-signals/categories`,pathParams:{},bodyKind:`none`});return}let c=await i(r),l=r.local?e:await n();r.accountId=l,a(await s(`Loading`,async()=>c.cloudforceOne.threatSignals.categories.list({account_id:l})),{successLabel:`Loaded`})})},Cc={command:`categories`,describe:`Operations for threat-signals.categories`,builder:e=>e.command(Sc).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function wc(e){return e.usage(`$0 cloudforce-one threat-signals curated-feeds list
|
|
406
406
|
|
|
407
|
-
|
|
407
|
+
Lists the curated feeds the account can subscribe to.`).option(`category`,{type:`string`,description:`Category`}).option(`include-inactive`,{type:`boolean`,description:`Include inactive`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const Tc={command:`list`,describe:`List curated Threat Signals feeds`,builder:wc,handler:async r=>c({command:`cloudforce-one threat-signals curated-feeds list`,classification:{safeFlags:[`include-inactive`,`dry-run`]}},r,async()=>{let c={category:r.category,include_inactive:r[`include-inactive`]};if(r.dryRun){o({command:`cf cloudforce-one threat-signals curated-feeds list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/cloudforce-one/v2/threat-signals/curated-feeds`,pathParams:{},query:c,bodyKind:`none`});return}let l=await i(r),u=r.local?e:await n();r.accountId=u,a(await s(`Loading`,async()=>l.cloudforceOne.threatSignals.curatedFeeds.list({account_id:u,...c})),{successLabel:`Loaded`})})};function Ec(e){return e.usage(`$0 cloudforce-one threat-signals curated-feeds opt-out
|
|
408
408
|
|
|
409
|
-
|
|
409
|
+
Opts the account out of, or back into, the curated feed catalog.`).option(`opted-out`,{type:`boolean`,description:`The opted_out 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 Dc={command:`opt-out`,describe:`Opt out of curated Threat Signals feeds`,builder:Ec,handler:async r=>c({command:`cloudforce-one threat-signals curated-feeds opt-out`,classification:{safeFlags:[`opted-out`,`dry-run`]}},r,async()=>{if(r.dryRun){o({command:`cf cloudforce-one threat-signals curated-feeds opt-out`,method:`PATCH`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/cloudforce-one/v2/threat-signals/curated-feeds/opt-out`,pathParams:{},bodyKind:`json`,body:r.body===void 0?f({opted_out:r[`opted-out`]}):u(r.body)});return}let c=await i(r),l=r.local?e:await n();if(r.accountId=l,r.body){let e=u(r.body);a(await s(`Updating`,async()=>c.cloudforceOne.threatSignals.curatedFeeds.optOut({...e,account_id:l})),{successLabel:`Updated`});return}if(r[`opted-out`]===void 0)throw Error(`--opted-out is required (or pass --body with this field set).`);let d=f({opted_out:r[`opted-out`]});a(await s(`Updating`,async()=>c.cloudforceOne.threatSignals.curatedFeeds.optOut({...d,account_id:l})),{successLabel:`Updated`})})},Oc={command:`curated-feeds`,describe:`Operations for threat-signals.curated-feeds`,builder:e=>e.command(Tc).command(Dc).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function kc(e){return e.usage(`$0 cloudforce-one threat-signals feeds create
|
|
410
410
|
|
|
411
|
-
|
|
411
|
+
Subscribes the account to a custom or curated Threat Signals feed.`).option(`category-id`,{type:`string`,description:`One of the predefined Threat Signals feed categories; see GET /:account_id/v2/threat-signals/categories.`,choices:[`b12a0fd6-f7b9-5393-9ef3-f888d506c550`,`d5b70eaa-626f-5761-b55b-6d9590df49fb`,`3b572d2b-890d-5286-9433-f18c85079030`,`17f90d3b-37d3-5241-8ad4-7d6abbc2006c`,`c68f28e9-7e8f-5d4b-853b-f3076893a9ee`,`bb0e4a94-38ab-5c14-80a7-28cee9f4b139`,`b1ef66d9-a73c-58dc-b269-22d34dfd11f4`,`ab02a976-0a20-5c76-a553-7f6325afacfe`]}).option(`curated-feed-id`,{type:`string`,description:`The curated_feed_id field`}).option(`display-name`,{type:`string`,description:`The display_name field`}).option(`enabled`,{type:`boolean`,description:`The enabled field`,default:!0}).option(`poll-interval-s`,{type:`number`,description:`The poll_interval_s field`,default:300}).option(`title`,{type:`string`,description:`The title field`}).option(`url`,{type:`string`,description:`The url 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 Ac={command:`create`,describe:`Create Threat Signals feed`,builder:kc,handler:async r=>c({command:`cloudforce-one threat-signals feeds create`,classification:{safeFlags:[`category-id`,`enabled`,`dry-run`]}},r,async()=>{if(r.dryRun){o({command:`cf cloudforce-one threat-signals feeds create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/cloudforce-one/v2/threat-signals/feeds`,pathParams:{},bodyKind:`json`,body:r.body===void 0?f({category_id:p(r[`category-id`],`category-id`,`text`),curated_feed_id:p(r[`curated-feed-id`],`curated-feed-id`,`text`),display_name:p(r[`display-name`],`display-name`,`text`),enabled:r.enabled,poll_interval_s:r[`poll-interval-s`],title:p(r.title,`title`,`text`),url:p(r.url,`url`,`text`)}):u(r.body)});return}let c=await i(r),l=r.local?e:await n();if(r.accountId=l,r.body){let e=u(r.body);a(await s(`Creating`,async()=>c.cloudforceOne.threatSignals.feeds.create({...e,account_id:l})),{successLabel:`Created`});return}let d=f({category_id:p(r[`category-id`],`category-id`,`text`),curated_feed_id:p(r[`curated-feed-id`],`curated-feed-id`,`text`),display_name:p(r[`display-name`],`display-name`,`text`),enabled:r.enabled,poll_interval_s:r[`poll-interval-s`],title:p(r.title,`title`,`text`),url:p(r.url,`url`,`text`)});a(await s(`Creating`,async()=>c.cloudforceOne.threatSignals.feeds.create({...d,account_id:l})),{successLabel:`Created`})})};function jc(e){return e.usage(`$0 cloudforce-one threat-signals feeds delete <feed-id>
|
|
412
412
|
|
|
413
|
-
|
|
414
|
-
`);return}a(await s(`Deleting`,async()=>c.cloudforceOne.threatSignals.
|
|
413
|
+
Unsubscribes the account from a Threat Signals feed and deletes its articles.`).positional(`feed-id`,{type:`string`,description:`Feed ID`,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 Mc={command:`delete <feed-id>`,describe:`Delete Threat Signals feed`,builder:jc,handler:async r=>c({command:`cloudforce-one threat-signals feeds delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},r,async()=>{if(r.dryRun){o({command:`cf cloudforce-one threat-signals feeds delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/cloudforce-one/v2/threat-signals/feeds/${r[`feed-id`]==null?`<feed-id>`:encodeURIComponent(String(r[`feed-id`]))}`,pathParams:{"feed-id":String(r[`feed-id`]??``)},bodyKind:`none`});return}let c=await i(r),l=r.local?e:await n();if(r.accountId=l,!await _({force:!!r.force})){process.stderr.write(`Aborted.
|
|
414
|
+
`);return}a(await s(`Deleting`,async()=>c.cloudforceOne.threatSignals.feeds.delete({account_id:l,feed_id:r[`feed-id`]})),{successLabel:`Deleted`})})};function Nc(e){return e.usage(`$0 cloudforce-one threat-signals feeds get-raw <feed-id>
|
|
415
415
|
|
|
416
|
-
|
|
416
|
+
Retrieves the feed document fetched by the most recent poll.`).positional(`feed-id`,{type:`string`,description:`Feed ID`,demandOption:!0}).option(`format`,{type:`string`,description:`Format`,choices:[`xml`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const Pc={command:`get-raw <feed-id>`,describe:`Get Threat Signals feed XML`,builder:Nc,handler:async r=>c({command:`cloudforce-one threat-signals feeds get-raw`,classification:{safeFlags:[`format`,`dry-run`]}},r,async()=>{let a={format:r.format};if(r.dryRun){o({command:`cf cloudforce-one threat-signals feeds get-raw`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/cloudforce-one/v2/threat-signals/feeds/${r[`feed-id`]==null?`<feed-id>`:encodeURIComponent(String(r[`feed-id`]))}/raw`,pathParams:{"feed-id":String(r[`feed-id`]??``)},query:a,bodyKind:`none`});return}await i(r);let c=r.local?e:await n();r.accountId=c;let l=new URLSearchParams(Object.entries(a).filter(([,e])=>e!==void 0).map(([e,t])=>[e,String(t)])).toString();y((await s(`Loading`,async()=>b(`/accounts/${c}/cloudforce-one/v2/threat-signals/feeds/${encodeURIComponent(String(r[`feed-id`]))}/raw${l?`?`+l:``}`,{method:`GET`,local:r.local===!0,persistTo:r.persistTo}))).toString(`utf-8`))})};function Fc(e){return e.usage(`$0 cloudforce-one threat-signals feeds list
|
|
417
417
|
|
|
418
|
-
|
|
418
|
+
Lists the account's Threat Signals feed subscriptions.`).option(`page`,{type:`number`,description:`Page`}).option(`per-page`,{type:`number`,description:`Per page`}).option(`limit`,{type:`number`,description:`Limit`}).option(`sort`,{type:`string`,description:`Sort`}).option(`category`,{type:`string`,description:`Category`}).option(`source-type`,{type:`string`,description:`Source type`,choices:[`curated`,`custom`]}).option(`enabled`,{type:`boolean`,description:`Enabled`}).option(`status`,{type:`string`,description:`Status`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const Ic={command:`list`,describe:`List Threat Signals feeds`,builder:v(Fc),handler:async r=>c({command:`cloudforce-one threat-signals feeds list`,classification:{safeFlags:[`source-type`,`enabled`,`dry-run`]}},r,async()=>{let c={page:r.page,per_page:r[`per-page`],limit:r.limit,sort:r.sort,category:r.category,source_type:r[`source-type`],enabled:r.enabled,status:r.status};if(r.dryRun){o({command:`cf cloudforce-one threat-signals feeds list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/cloudforce-one/v2/threat-signals/feeds`,pathParams:{},query:c,bodyKind:`none`});return}let l=await i(r),u=r.local?e:await n();r.accountId=u,a(await s(`Loading`,async()=>l.cloudforceOne.threatSignals.feeds.list({account_id:u,...c})),{successLabel:`Loaded`})})};function Lc(e){return e.usage(`$0 cloudforce-one threat-signals feeds poll
|
|
419
419
|
|
|
420
|
-
|
|
420
|
+
Starts an immediate poll of one or all Threat Signals feeds.`).option(`feed-id`,{type:`string`,description:`Feed ID`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const Rc={command:`poll`,describe:`Trigger Threat Signals feed poll`,builder:v(Lc),handler:async r=>c({command:`cloudforce-one threat-signals feeds poll`,classification:{safeFlags:[`dry-run`]}},r,async()=>{let c={feed_id:r[`feed-id`]};if(r.dryRun){o({command:`cf cloudforce-one threat-signals feeds poll`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/cloudforce-one/v2/threat-signals/feeds/poll`,pathParams:{},query:c,bodyKind:`none`});return}let l=await i(r),u=r.local?e:await n();r.accountId=u,a(await s(`Creating`,async()=>l.cloudforceOne.threatSignals.feeds.poll({account_id:u,...c})),{successLabel:`Created`})})};function zc(e){return e.usage(`$0 cloudforce-one threat-signals feeds skills get <feed-id>
|
|
421
421
|
|
|
422
|
-
|
|
422
|
+
Retrieves the effective skill pipeline for a Threat Signals feed.`).positional(`feed-id`,{type:`string`,description:`Feed ID`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const Bc={command:`get <feed-id>`,describe:`Get Threat Signals feed skills`,builder:zc,handler:async r=>c({command:`cloudforce-one threat-signals feeds skills get`,classification:{safeFlags:[`dry-run`]}},r,async()=>{if(r.dryRun){o({command:`cf cloudforce-one threat-signals feeds skills get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/cloudforce-one/v2/threat-signals/feeds/${r[`feed-id`]==null?`<feed-id>`:encodeURIComponent(String(r[`feed-id`]))}/skills`,pathParams:{"feed-id":String(r[`feed-id`]??``)},bodyKind:`none`});return}let c=await i(r),l=r.local?e:await n();r.accountId=l,a(await s(`Loading`,async()=>c.cloudforceOne.threatSignals.feeds.skills.get({account_id:l,feed_id:r[`feed-id`]})),{successLabel:`Loaded`})})};function Vc(e){return e.usage(`$0 cloudforce-one threat-signals feeds skills update <feed-id>
|
|
423
423
|
|
|
424
|
-
|
|
425
|
-
`);return}a(await s(`Deleting`,async()=>c.cloudforceOne.threatSignals.feeds.delete({account_id:l,feed_id:r[`feed-id`]})),{successLabel:`Deleted`})})};function Uc(e){return e.usage(`$0 cloudforce-one threat-signals feeds get-raw <feed-id>
|
|
424
|
+
Replaces the ordered custom skills assigned to a Threat Signals feed.`).positional(`feed-id`,{type:`string`,description:`Feed ID`,demandOption:!0}).option(`skill-ids`,{type:`string`,array:!0,description:`The skill_ids 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 Hc={command:`update <feed-id>`,describe:`Set Threat Signals feed skills`,builder:Vc,handler:async r=>c({command:`cloudforce-one threat-signals feeds skills update`,classification:{safeFlags:[`dry-run`]}},r,async()=>{if(r.dryRun){o({command:`cf cloudforce-one threat-signals feeds skills update`,method:`PUT`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/cloudforce-one/v2/threat-signals/feeds/${r[`feed-id`]==null?`<feed-id>`:encodeURIComponent(String(r[`feed-id`]))}/skills`,pathParams:{"feed-id":String(r[`feed-id`]??``)},bodyKind:`json`,body:r.body===void 0?f({skill_ids:r[`skill-ids`]}):u(r.body)});return}let c=await i(r),l=r.local?e:await n();if(r.accountId=l,r.body){let e=u(r.body);a(await s(`Updating`,async()=>c.cloudforceOne.threatSignals.feeds.skills.update({...e,account_id:l,feed_id:r[`feed-id`]})),{successLabel:`Updated`});return}if(r[`skill-ids`]===void 0)throw Error(`--skill-ids is required (or pass --body with this field set).`);let d=f({skill_ids:r[`skill-ids`]});a(await s(`Updating`,async()=>c.cloudforceOne.threatSignals.feeds.skills.update({...d,account_id:l,feed_id:r[`feed-id`]})),{successLabel:`Updated`})})},Uc={command:`skills`,describe:`Operations for threat-signals.feeds.skills`,builder:e=>e.command(Bc).command(Hc).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function Wc(e){return e.usage(`$0 cloudforce-one threat-signals feeds update <feed-id>
|
|
426
425
|
|
|
427
|
-
|
|
426
|
+
Updates a Threat Signals feed subscription.`).positional(`feed-id`,{type:`string`,description:`Feed ID`,demandOption:!0}).option(`category-id`,{type:`string`,description:`One of the predefined Threat Signals feed categories; see GET /:account_id/v2/threat-signals/categories.`,choices:[`b12a0fd6-f7b9-5393-9ef3-f888d506c550`,`d5b70eaa-626f-5761-b55b-6d9590df49fb`,`3b572d2b-890d-5286-9433-f18c85079030`,`17f90d3b-37d3-5241-8ad4-7d6abbc2006c`,`c68f28e9-7e8f-5d4b-853b-f3076893a9ee`,`bb0e4a94-38ab-5c14-80a7-28cee9f4b139`,`b1ef66d9-a73c-58dc-b269-22d34dfd11f4`,`ab02a976-0a20-5c76-a553-7f6325afacfe`]}).option(`display-name`,{type:`string`,description:`The display_name field`}).option(`enabled`,{type:`boolean`,description:`The enabled field`}).option(`poll-interval-s`,{type:`number`,description:`The poll_interval_s field`}).option(`title`,{type:`string`,description:`The title 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 Gc={command:`update <feed-id>`,describe:`Update Threat Signals feed`,builder:Wc,handler:async r=>c({command:`cloudforce-one threat-signals feeds update`,classification:{safeFlags:[`category-id`,`enabled`,`dry-run`]}},r,async()=>{if(r.dryRun){o({command:`cf cloudforce-one threat-signals feeds update`,method:`PATCH`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/cloudforce-one/v2/threat-signals/feeds/${r[`feed-id`]==null?`<feed-id>`:encodeURIComponent(String(r[`feed-id`]))}`,pathParams:{"feed-id":String(r[`feed-id`]??``)},bodyKind:`json`,body:r.body===void 0?f({category_id:p(r[`category-id`],`category-id`,`text`),display_name:p(r[`display-name`],`display-name`,`text`),enabled:r.enabled,poll_interval_s:r[`poll-interval-s`],title:p(r.title,`title`,`text`)}):u(r.body)});return}let c=await i(r),l=r.local?e:await n();if(r.accountId=l,r.body){let e=u(r.body);a(await s(`Updating`,async()=>c.cloudforceOne.threatSignals.feeds.update({...e,account_id:l,feed_id:r[`feed-id`]})),{successLabel:`Updated`});return}let d=f({category_id:p(r[`category-id`],`category-id`,`text`),display_name:p(r[`display-name`],`display-name`,`text`),enabled:r.enabled,poll_interval_s:r[`poll-interval-s`],title:p(r.title,`title`,`text`)});a(await s(`Updating`,async()=>c.cloudforceOne.threatSignals.feeds.update({...d,account_id:l,feed_id:r[`feed-id`]})),{successLabel:`Updated`})})},Kc={command:`feeds`,describe:`Operations for threat-signals.feeds`,builder:e=>e.command(Ac).command(Mc).command(Pc).command(Ic).command(Rc).command(Gc).command(Uc).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function qc(e){return e.usage(`$0 cloudforce-one threat-signals health
|
|
428
427
|
|
|
429
|
-
|
|
428
|
+
Checks that the Threat Signals API is reachable.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const Jc={command:`health`,describe:`Check Threat Signals service health`,builder:qc,handler:async r=>c({command:`cloudforce-one threat-signals health`,classification:{safeFlags:[`dry-run`]}},r,async()=>{if(r.dryRun){o({command:`cf cloudforce-one threat-signals health`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/cloudforce-one/v2/threat-signals/health`,pathParams:{},bodyKind:`none`});return}let c=await i(r),l=r.local?e:await n();r.accountId=l,a(await s(`Loading`,async()=>c.cloudforceOne.threatSignals.health({account_id:l})),{successLabel:`Loaded`})})};function Yc(e){return e.usage(`$0 cloudforce-one threat-signals indicators list
|
|
430
429
|
|
|
431
|
-
|
|
430
|
+
Lists indicators of compromise extracted from the account's Threat Signals articles.`).option(`feed-id`,{type:`string`,description:`Feed ID`}).option(`article-id`,{type:`string`,description:`Article ID`}).option(`search`,{type:`string`,description:`NFC-normalized and trimmed, case-insensitive literal substring search of indicator values. Requires 3–500 Unicode code points; the upper code-point bound is described here because OpenAPI string length cannot precisely express it without imposing UTF-16 semantics.`}).option(`per-page`,{type:`number`,description:`Per page`}).option(`sort`,{type:`string`,description:`Sort`}).option(`include-total`,{type:`boolean`,description:`Include total`}).option(`cursor`,{type:`string`,description:`Cursor`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const Xc={command:`list`,describe:`List Threat Signals article indicators`,builder:Yc,handler:async r=>c({command:`cloudforce-one threat-signals indicators list`,classification:{safeFlags:[`include-total`,`dry-run`]}},r,async()=>{let c={feed_id:r[`feed-id`],article_id:r[`article-id`],search:r.search,per_page:r[`per-page`],sort:r.sort,include_total:r[`include-total`],cursor:r.cursor};if(r.dryRun){o({command:`cf cloudforce-one threat-signals indicators list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/cloudforce-one/v2/threat-signals/indicators`,pathParams:{},query:c,bodyKind:`none`});return}let l=await i(r),u=r.local?e:await n();r.accountId=u,a(await s(`Loading`,async()=>l.cloudforceOne.threatSignals.indicators.list({account_id:u,...c})),{successLabel:`Loaded`})})},Zc={command:`indicators`,describe:`Operations for threat-signals.indicators`,builder:e=>e.command(Xc).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function Qc(e){return e.usage(`$0 cloudforce-one threat-signals search
|
|
432
431
|
|
|
433
|
-
|
|
432
|
+
Searches the account's Threat Signals articles using keyword and semantic retrieval.`).option(`query`,{type:`string`,description:`Query`,demandOption:!0}).option(`max-results`,{type:`string`,description:`Max results`}).option(`feed-id`,{type:`string`,description:`Feed ID`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const $c={command:`search`,describe:`Search Threat Signals articles using AI Search`,builder:v(Qc),handler:async r=>c({command:`cloudforce-one threat-signals search`,classification:{safeFlags:[`dry-run`]}},r,async()=>{let c={query:r.query,max_results:r[`max-results`],feed_id:r[`feed-id`]};if(r.dryRun){o({command:`cf cloudforce-one threat-signals search`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/cloudforce-one/v2/threat-signals/search`,pathParams:{},query:c,bodyKind:`none`});return}let l=await i(r),u=r.local?e:await n();r.accountId=u,a(await s(`Loading`,async()=>l.cloudforceOne.threatSignals.search({account_id:u,...c})),{successLabel:`Loaded`})})};function el(e){return e.usage(`$0 cloudforce-one threat-signals skills create
|
|
434
433
|
|
|
435
|
-
|
|
434
|
+
Creates a custom AI skill for the account.`).option(`name`,{type:`string`,description:`The name field`}).option(`output-schema`,{type:`string`,description:`The output_schema field`}).option(`prompt`,{type:`string`,description:`The prompt field`}).option(`type`,{type:`string`,description:`The type field`,choices:[`summary`,`tags`]}).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 tl={command:`create`,describe:`Create Threat Signals skill`,builder:el,handler:async r=>c({command:`cloudforce-one threat-signals skills create`,classification:{safeFlags:[`type`,`dry-run`]}},r,async()=>{if(r.dryRun){o({command:`cf cloudforce-one threat-signals skills create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/cloudforce-one/v2/threat-signals/skills`,pathParams:{},bodyKind:`json`,body:r.body===void 0?f({name:p(r.name,`name`,`text`),output_schema:p(r[`output-schema`],`output-schema`,`text`),prompt:p(r.prompt,`prompt`,`text`),type:p(r.type,`type`,`text`)}):u(r.body)});return}let c=await i(r),l=r.local?e:await n();if(r.accountId=l,r.body){let e=u(r.body);a(await s(`Creating`,async()=>c.cloudforceOne.threatSignals.skills.create({...e,account_id:l})),{successLabel:`Created`});return}r.name===void 0&&(r.name=await h(`name`,`The name field`)),r[`output-schema`]===void 0&&(r[`output-schema`]=await h(`output-schema`,`The output_schema field`)),r.prompt===void 0&&(r.prompt=await h(`prompt`,`The prompt field`)),r.type===void 0&&(r.type=await g(`type`,`The type field`,[`summary`,`tags`]));let d=f({name:p(r.name,`name`,`text`),output_schema:p(r[`output-schema`],`output-schema`,`text`),prompt:p(r.prompt,`prompt`,`text`),type:p(r.type,`type`,`text`)});a(await s(`Creating`,async()=>c.cloudforceOne.threatSignals.skills.create({...d,account_id:l})),{successLabel:`Created`})})};function nl(e){return e.usage(`$0 cloudforce-one threat-signals skills delete <skill-id>
|
|
436
435
|
|
|
437
|
-
|
|
436
|
+
Deletes a custom skill. Default skills cannot be deleted.`).positional(`skill-id`,{type:`string`,description:`Skill ID`,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 rl={command:`delete <skill-id>`,describe:`Delete Threat Signals skill`,builder:nl,handler:async r=>c({command:`cloudforce-one threat-signals skills delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},r,async()=>{if(r.dryRun){o({command:`cf cloudforce-one threat-signals skills delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/cloudforce-one/v2/threat-signals/skills/${r[`skill-id`]==null?`<skill-id>`:encodeURIComponent(String(r[`skill-id`]))}`,pathParams:{"skill-id":String(r[`skill-id`]??``)},bodyKind:`none`});return}let c=await i(r),l=r.local?e:await n();if(r.accountId=l,!await _({force:!!r.force})){process.stderr.write(`Aborted.
|
|
437
|
+
`);return}a(await s(`Deleting`,async()=>c.cloudforceOne.threatSignals.skills.delete({account_id:l,skill_id:r[`skill-id`]})),{successLabel:`Deleted`})})};function il(e){return e.usage(`$0 cloudforce-one threat-signals skills get <skill-id>
|
|
438
438
|
|
|
439
|
-
|
|
439
|
+
Retrieves a default or custom skill by ID.`).positional(`skill-id`,{type:`string`,description:`Skill ID`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const al={command:`get <skill-id>`,describe:`Get Threat Signals skill`,builder:il,handler:async r=>c({command:`cloudforce-one threat-signals skills get`,classification:{safeFlags:[`dry-run`]}},r,async()=>{if(r.dryRun){o({command:`cf cloudforce-one threat-signals skills get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/cloudforce-one/v2/threat-signals/skills/${r[`skill-id`]==null?`<skill-id>`:encodeURIComponent(String(r[`skill-id`]))}`,pathParams:{"skill-id":String(r[`skill-id`]??``)},bodyKind:`none`});return}let c=await i(r),l=r.local?e:await n();r.accountId=l,a(await s(`Loading`,async()=>c.cloudforceOne.threatSignals.skills.get({account_id:l,skill_id:r[`skill-id`]})),{successLabel:`Loaded`})})};function ol(e){return e.usage(`$0 cloudforce-one threat-signals skills list
|
|
440
440
|
|
|
441
|
-
|
|
441
|
+
Lists the default and custom skills available to the account.`).option(`page`,{type:`number`,description:`Page`}).option(`per-page`,{type:`number`,description:`Per page`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const sl={command:`list`,describe:`List Threat Signals skills`,builder:ol,handler:async r=>c({command:`cloudforce-one threat-signals skills list`,classification:{safeFlags:[`dry-run`]}},r,async()=>{let c={page:r.page,per_page:r[`per-page`]};if(r.dryRun){o({command:`cf cloudforce-one threat-signals skills list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/cloudforce-one/v2/threat-signals/skills`,pathParams:{},query:c,bodyKind:`none`});return}let l=await i(r),u=r.local?e:await n();r.accountId=u,a(await s(`Loading`,async()=>l.cloudforceOne.threatSignals.skills.list({account_id:u,...c})),{successLabel:`Loaded`})})};function cl(e){return e.usage(`$0 cloudforce-one threat-signals skills tag-categories get <skill-id>
|
|
442
442
|
|
|
443
|
-
|
|
443
|
+
Retrieves the tag categories the default tagging skill may choose tags from.`).positional(`skill-id`,{type:`string`,description:`Skill ID`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const ll={command:`get <skill-id>`,describe:`Get Threat Signals skill tag categories`,builder:v(cl),handler:async r=>c({command:`cloudforce-one threat-signals skills tag-categories get`,classification:{safeFlags:[`dry-run`]}},r,async()=>{if(r.dryRun){o({command:`cf cloudforce-one threat-signals skills tag-categories get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/cloudforce-one/v2/threat-signals/skills/${r[`skill-id`]==null?`<skill-id>`:encodeURIComponent(String(r[`skill-id`]))}/tag-categories`,pathParams:{"skill-id":String(r[`skill-id`]??``)},bodyKind:`none`});return}let c=await i(r),l=r.local?e:await n();r.accountId=l,a(await s(`Loading`,async()=>c.cloudforceOne.threatSignals.skills.tagCategories.get({account_id:l,skill_id:r[`skill-id`]})),{successLabel:`Loaded`})})};function ul(e){return e.usage(`$0 cloudforce-one threat-signals skills tag-categories update <skill-id>
|
|
444
444
|
|
|
445
|
-
|
|
446
|
-
`);return}a(await s(`Deleting`,async()=>c.cloudforceOne.threatSignals.skills.delete({account_id:l,skill_id:r[`skill-id`]})),{successLabel:`Deleted`})})};function fl(e){return e.usage(`$0 cloudforce-one threat-signals skills get <skill-id>
|
|
445
|
+
Replaces the tag categories the default tagging skill may choose tags from.`).positional(`skill-id`,{type:`string`,description:`Skill ID`,demandOption:!0}).option(`category-uuids`,{type:`string`,array:!0,description:`The category_uuids 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 dl={command:`update <skill-id>`,describe:`Replace Threat Signals skill tag categories`,builder:v(ul),handler:async r=>c({command:`cloudforce-one threat-signals skills tag-categories update`,classification:{safeFlags:[`dry-run`]}},r,async()=>{if(r.dryRun){o({command:`cf cloudforce-one threat-signals skills tag-categories update`,method:`PUT`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/cloudforce-one/v2/threat-signals/skills/${r[`skill-id`]==null?`<skill-id>`:encodeURIComponent(String(r[`skill-id`]))}/tag-categories`,pathParams:{"skill-id":String(r[`skill-id`]??``)},bodyKind:`json`,body:r.body===void 0?f({category_uuids:r[`category-uuids`]}):u(r.body)});return}let c=await i(r),l=r.local?e:await n();if(r.accountId=l,r.body){let e=u(r.body);a(await s(`Updating`,async()=>c.cloudforceOne.threatSignals.skills.tagCategories.update({...e,account_id:l,skill_id:r[`skill-id`]})),{successLabel:`Updated`});return}if(r[`category-uuids`]===void 0)throw Error(`--category-uuids is required (or pass --body with this field set).`);let d=f({category_uuids:r[`category-uuids`]});a(await s(`Updating`,async()=>c.cloudforceOne.threatSignals.skills.tagCategories.update({...d,account_id:l,skill_id:r[`skill-id`]})),{successLabel:`Updated`})})},fl={command:`tag-categories`,describe:`Operations for threat-signals.skills.tag-categories`,builder:e=>e.command(ll).command(dl).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function pl(e){return e.usage(`$0 cloudforce-one threat-signals skills update <skill-id>
|
|
447
446
|
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
List Threat Signals skills.`).option(`page`,{type:`number`,description:`Page`}).option(`per-page`,{type:`number`,description:`Per page`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const hl={command:`list`,describe:`List Threat Signals skills`,builder:ml,handler:async r=>c({command:`cloudforce-one threat-signals skills list`,classification:{safeFlags:[`dry-run`]}},r,async()=>{let c={page:r.page,per_page:r[`per-page`]};if(r.dryRun){o({command:`cf cloudforce-one threat-signals skills list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/cloudforce-one/v2/threat-signals/skills`,pathParams:{},query:c,bodyKind:`none`});return}let l=await i(r),u=r.local?e:await n();r.accountId=u,a(await s(`Loading`,async()=>l.cloudforceOne.threatSignals.skills.list({account_id:u,...c})),{successLabel:`Loaded`})})};function gl(e){return e.usage(`$0 cloudforce-one threat-signals skills tag-categories get <skill-id>
|
|
451
|
-
|
|
452
|
-
Get Threat Signals skill tag categories.`).positional(`skill-id`,{type:`string`,description:`Skill ID`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const _l={command:`get <skill-id>`,describe:`Get Threat Signals skill tag categories`,builder:v(gl),handler:async r=>c({command:`cloudforce-one threat-signals skills tag-categories get`,classification:{safeFlags:[`dry-run`]}},r,async()=>{if(r.dryRun){o({command:`cf cloudforce-one threat-signals skills tag-categories get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/cloudforce-one/v2/threat-signals/skills/${r[`skill-id`]==null?`<skill-id>`:encodeURIComponent(String(r[`skill-id`]))}/tag-categories`,pathParams:{"skill-id":String(r[`skill-id`]??``)},bodyKind:`none`});return}let c=await i(r),l=r.local?e:await n();r.accountId=l,a(await s(`Loading`,async()=>c.cloudforceOne.threatSignals.skills.tagCategories.get({account_id:l,skill_id:r[`skill-id`]})),{successLabel:`Loaded`})})};function vl(e){return e.usage(`$0 cloudforce-one threat-signals skills tag-categories update <skill-id>
|
|
453
|
-
|
|
454
|
-
Replace Threat Signals skill tag categories.`).positional(`skill-id`,{type:`string`,description:`Skill ID`,demandOption:!0}).option(`category-uuids`,{type:`string`,array:!0,description:`The category_uuids 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 yl={command:`update <skill-id>`,describe:`Replace Threat Signals skill tag categories`,builder:v(vl),handler:async r=>c({command:`cloudforce-one threat-signals skills tag-categories update`,classification:{safeFlags:[`dry-run`]}},r,async()=>{if(r.dryRun){o({command:`cf cloudforce-one threat-signals skills tag-categories update`,method:`PUT`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/cloudforce-one/v2/threat-signals/skills/${r[`skill-id`]==null?`<skill-id>`:encodeURIComponent(String(r[`skill-id`]))}/tag-categories`,pathParams:{"skill-id":String(r[`skill-id`]??``)},bodyKind:`json`,body:r.body===void 0?f({category_uuids:r[`category-uuids`]}):u(r.body)});return}let c=await i(r),l=r.local?e:await n();if(r.accountId=l,r.body){let e=u(r.body);a(await s(`Updating`,async()=>c.cloudforceOne.threatSignals.skills.tagCategories.update({...e,account_id:l,skill_id:r[`skill-id`]})),{successLabel:`Updated`});return}if(r[`category-uuids`]===void 0)throw Error(`--category-uuids is required (or pass --body with this field set).`);let d=f({category_uuids:r[`category-uuids`]});a(await s(`Updating`,async()=>c.cloudforceOne.threatSignals.skills.tagCategories.update({...d,account_id:l,skill_id:r[`skill-id`]})),{successLabel:`Updated`})})},bl={command:`tag-categories`,describe:`Operations for threat-signals.skills.tag-categories`,builder:e=>e.command(_l).command(yl).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function xl(e){return e.usage(`$0 cloudforce-one threat-signals skills update <skill-id>
|
|
455
|
-
|
|
456
|
-
Update Threat Signals skill.`).positional(`skill-id`,{type:`string`,description:`Skill ID`,demandOption:!0}).option(`config`,{type:`string`,description:`The config field`}).option(`is-active`,{type:`boolean`,description:`The is_active field`}).option(`name`,{type:`string`,description:`The name field`}).option(`output-schema`,{type:`string`,description:`The output_schema field`}).option(`prompt`,{type:`string`,description:`The prompt 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 Sl={command:`update <skill-id>`,describe:`Update Threat Signals skill`,builder:xl,handler:async r=>c({command:`cloudforce-one threat-signals skills update`,classification:{safeFlags:[`is-active`,`dry-run`]}},r,async()=>{if(r.dryRun){o({command:`cf cloudforce-one threat-signals skills update`,method:`PATCH`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/cloudforce-one/v2/threat-signals/skills/${r[`skill-id`]==null?`<skill-id>`:encodeURIComponent(String(r[`skill-id`]))}`,pathParams:{"skill-id":String(r[`skill-id`]??``)},bodyKind:`json`,body:r.body===void 0?f({config:p(r.config,`config`,`text`),is_active:r[`is-active`],name:p(r.name,`name`,`text`),output_schema:p(r[`output-schema`],`output-schema`,`text`),prompt:p(r.prompt,`prompt`,`text`)}):u(r.body)});return}let c=await i(r),l=r.local?e:await n();if(r.accountId=l,r.body){let e=u(r.body);a(await s(`Updating`,async()=>c.cloudforceOne.threatSignals.skills.update({...e,account_id:l,skill_id:r[`skill-id`]})),{successLabel:`Updated`});return}let d=f({config:p(r.config,`config`,`text`),is_active:r[`is-active`],name:p(r.name,`name`,`text`),output_schema:p(r[`output-schema`],`output-schema`,`text`),prompt:p(r.prompt,`prompt`,`text`)});a(await s(`Updating`,async()=>c.cloudforceOne.threatSignals.skills.update({...d,account_id:l,skill_id:r[`skill-id`]})),{successLabel:`Updated`})})},Cl={command:`skills`,describe:`Operations for threat-signals.skills`,builder:e=>e.command(ll).command(dl).command(pl).command(hl).command(Sl).command(bl).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},wl={command:`threat-signals`,describe:`Operations for threat-signals`,builder:e=>e.command(il).command(Sc).command(Tc).command(Rc).command(nl).command(sl).command(Cl).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},Tl={command:`cloudforce-one`,describe:`Detection rule management APIs`,builder:e=>e.command(C).command(P).command(ar).command(Vr).command(ha).command(ko).command(Wo).command($s).command(wl).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};export{Tl as default};
|
|
447
|
+
Updates a custom skill. Default skills are read-only.`).positional(`skill-id`,{type:`string`,description:`Skill ID`,demandOption:!0}).option(`skill-config`,{type:`string`,description:`The config field`}).option(`is-active`,{type:`boolean`,description:`The is_active field`}).option(`name`,{type:`string`,description:`The name field`}).option(`output-schema`,{type:`string`,description:`The output_schema field`}).option(`prompt`,{type:`string`,description:`The prompt 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 ml={command:`update <skill-id>`,describe:`Update Threat Signals skill`,builder:pl,handler:async r=>c({command:`cloudforce-one threat-signals skills update`,classification:{safeFlags:[`is-active`,`dry-run`]}},r,async()=>{if(r.dryRun){o({command:`cf cloudforce-one threat-signals skills update`,method:`PATCH`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/cloudforce-one/v2/threat-signals/skills/${r[`skill-id`]==null?`<skill-id>`:encodeURIComponent(String(r[`skill-id`]))}`,pathParams:{"skill-id":String(r[`skill-id`]??``)},bodyKind:`json`,body:r.body===void 0?f({config:p(r[`skill-config`],`skill-config`,`text`),is_active:r[`is-active`],name:p(r.name,`name`,`text`),output_schema:p(r[`output-schema`],`output-schema`,`text`),prompt:p(r.prompt,`prompt`,`text`)}):u(r.body)});return}let c=await i(r),l=r.local?e:await n();if(r.accountId=l,r.body){let e=u(r.body);a(await s(`Updating`,async()=>c.cloudforceOne.threatSignals.skills.update({...e,account_id:l,skill_id:r[`skill-id`]})),{successLabel:`Updated`});return}let d=f({config:p(r[`skill-config`],`skill-config`,`text`),is_active:r[`is-active`],name:p(r.name,`name`,`text`),output_schema:p(r[`output-schema`],`output-schema`,`text`),prompt:p(r.prompt,`prompt`,`text`)});a(await s(`Updating`,async()=>c.cloudforceOne.threatSignals.skills.update({...d,account_id:l,skill_id:r[`skill-id`]})),{successLabel:`Updated`})})},hl={command:`skills`,describe:`Operations for threat-signals.skills`,builder:e=>e.command(tl).command(rl).command(al).command(sl).command(ml).command(fl).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},gl={command:`threat-signals`,describe:`Operations for threat-signals`,builder:e=>e.command(Jc).command($c).command(bc).command(Cc).command(Oc).command(Kc).command(Zc).command(hl).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},_l={command:`cloudforce-one`,describe:`Detection rule management APIs`,builder:e=>e.command(C).command(P).command(ar).command(Vr).command(ha).command(ko).command(Wo).command($s).command(gl).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};export{_l as default};
|