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,7 +1,7 @@
|
|
|
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{r}from"./auth-gOCL6Pm0.mjs";import{t as i}from"./output-CvQFJkvi.mjs";import{t as a}from"./dry-run-Bq0JAsbX.mjs";import{t as o}from"./progress-CRjK46r1.mjs";import{t as s}from"./run-huwFFwXd.mjs";import"./telemetry-B4_YhD82.mjs";import{n as c,r as l,t as u}from"./body-parser-hh2avzkz.mjs";import{n as d}from"./input-validation-Dk52b0me.mjs";import{a as f,i as p,n as m}from"./prompt-C_90YsVE.mjs";import{t as h}from"./cli-types-DoVT5q_M.mjs";function ee(e){return e.usage(`$0 email-security allow-policies batch
|
|
3
3
|
|
|
4
|
-
Executes multiple operations atomically. All four operation arrays (deletes, patches, puts, posts) are required and executed in order. Send empty arrays for unused operations.`).option(`deletes`,{type:`string`,description:`
|
|
4
|
+
Executes multiple allow policy operations atomically: delete, partially update, replace, and create allow policies in a single request. All four operation arrays (deletes, patches, puts, posts) are required and executed in order. Send empty arrays for unused operations.`).option(`deletes`,{type:`string`,description:`IDs of the allow policies to delete. Provide as a JSON array of objects or @path/to/file.json.`}).option(`patches`,{type:`string`,description:`Partial updates to apply — each entry carries the policy's ID and only the fields to change. Provide as a JSON array of objects or @path/to/file.json.`}).option(`posts`,{type:`string`,description:`Allow policies to create. Provide as a JSON array of objects or @path/to/file.json.`}).option(`puts`,{type:`string`,description:`Full replacements to apply — each entry carries the policy's ID and every field of its new value. Provide as a JSON array of objects or @path/to/file.json.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`force`,{type:`boolean`,alias:`f`,description:`Skip confirmation (useful in scripts and CI)`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const te={command:`batch`,describe:`Batch allow policy operations`,builder:ee,handler:async d=>s({command:`email-security allow-policies batch`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},d,async()=>{if(d.dryRun){a({command:`cf email-security allow-policies batch`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/email-security/settings/allow_policies/batch`,pathParams:{},bodyKind:`json`,body:d.body===void 0?u({deletes:l(d.deletes,`deletes`),patches:l(d.patches,`patches`),posts:l(d.posts,`posts`),puts:l(d.puts,`puts`)}):c(d.body)});return}let s=await r(d),f=d.local?e:await n();if(d.accountId=f,!await m({force:!!d.force,message:`This operation may delete the selected allow policies and restore normal security scanning and disposition actions for matching emails.`})){process.stderr.write(`Aborted.
|
|
5
5
|
`);return}if(d.body){let e=c(d.body);i(await o(`Deleting`,async()=>s.emailSecurity.allowPolicies.batch({...e,account_id:f})),{successLabel:`Deleted`});return}if(d.deletes===void 0)throw Error(`--deletes is required (or pass --body with this field set).`);if(d.patches===void 0)throw Error(`--patches is required (or pass --body with this field set).`);if(d.posts===void 0)throw Error(`--posts is required (or pass --body with this field set).`);if(d.puts===void 0)throw Error(`--puts is required (or pass --body with this field set).`);let p=u({deletes:l(d.deletes,`deletes`),patches:l(d.patches,`patches`),posts:l(d.posts,`posts`),puts:l(d.puts,`puts`)});i(await o(`Deleting`,async()=>s.emailSecurity.allowPolicies.batch({...p,account_id:f})),{successLabel:`Deleted`})})};function g(e){return e.usage(`$0 email-security allow-policies create
|
|
6
6
|
|
|
7
7
|
Creates a new allow policy that exempts matching emails from security detections. Use with caution as this bypasses email security scanning. Policies can match on sender patterns and apply to specific detections or all detections.`).option(`comments`,{type:`string`,description:`The comments field`}).option(`is-acceptable-sender`,{type:`boolean`,description:`Exempts messages from this sender from Spam, Spoof and Bulk dispositions only; Malicious and Suspicious dispositions still apply.`}).option(`is-exempt-recipient`,{type:`boolean`,description:`Bypasses all detections for messages to this recipient.`}).option(`is-recipient`,{type:`boolean`,description:"Deprecated as of July 1, 2025. Use `is_exempt_recipient` instead. End of life: July 1, 2026."}).option(`is-regex`,{type:`boolean`,description:`The is_regex field`}).option(`is-sender`,{type:`boolean`,description:"Deprecated as of July 1, 2025. Use `is_trusted_sender` instead. End of life: July 1, 2026."}).option(`is-spoof`,{type:`boolean`,description:"Deprecated as of July 1, 2025. Use `is_acceptable_sender` instead. End of life: July 1, 2026."}).option(`is-trusted-sender`,{type:`boolean`,description:`Bypasses all detections and link following for messages from this sender.`}).option(`pattern`,{type:`string`,description:"The pattern value to match. The format depends on `pattern_type`: a valid email address for EMAIL (e.g. `user@example.com`), a valid domain name for DOMAIN (e.g. `example.com`), or a plain IPv4 or IPv6 address or CIDR block for IP (e.g. `1.2.3.4`, `1.2.3.0/24`, `2606:4700:4700::1111`, or `2606:4700:4700::/48`); the API rejects private or unique-local, loopback, link-local, unspecified, and IPv4 broadcast addresses, including their IPv4-mapped IPv6 equivalents."}).option(`pattern-type`,{type:`string`,description:"Type of pattern matching.\n- EMAIL: matches a full email address (e.g. `user@example.com`)\n- DOMAIN: matches a domain name (e.g. `example.com`)\n- IP: matches a plain IPv4 or IPv6 address (e.g. `1.2.3.4` or `2606:4700:4700::1111`) or CIDR block (e.g. `1.2.3.0/24` or `2606:4700:4700::/48`). The API rejects private or unique-local, loopback, link-local, unspecified, and IPv4 broadcast addresses, including their IPv4-mapped IPv6 equivalents.\n- UNKNOWN: deprecated; you cannot use this when creating or updating policies, but it may appear on existing entries.\n",choices:[`EMAIL`,`DOMAIN`,`IP`,`UNKNOWN`]}).option(`verify-sender`,{type:`boolean`,description:`Enforce DMARC, SPF or DKIM authentication. When on, Email Security only honors policies that pass authentication.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Create an allow policy.`})}const _={command:`create`,describe:`Create email allow policy`,builder:g,handler:async l=>s({command:`email-security allow-policies create`,classification:{safeFlags:[`is-acceptable-sender`,`is-exempt-recipient`,`is-recipient`,`is-regex`,`is-sender`,`is-spoof`,`is-trusted-sender`,`pattern-type`,`verify-sender`,`dry-run`]}},l,async()=>{if(l.dryRun){a({command:`cf email-security allow-policies create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/email-security/settings/allow_policies`,pathParams:{},bodyKind:`json`,body:l.body===void 0?u({comments:d(l.comments,`comments`,`text`),is_acceptable_sender:l[`is-acceptable-sender`],is_exempt_recipient:l[`is-exempt-recipient`],is_recipient:l[`is-recipient`],is_regex:l[`is-regex`],is_sender:l[`is-sender`],is_spoof:l[`is-spoof`],is_trusted_sender:l[`is-trusted-sender`],pattern:d(l.pattern,`pattern`,`text`),pattern_type:d(l[`pattern-type`],`pattern-type`,`text`),verify_sender:l[`verify-sender`]}):c(l.body)});return}let s=await r(l),m=l.local?e:await n();if(l.accountId=m,l.body){let e=c(l.body);i(await o(`Creating`,async()=>s.emailSecurity.allowPolicies.create({body:e,account_id:m})),{successLabel:`Created`});return}if(l[`is-acceptable-sender`]===void 0)throw Error(`--is-acceptable-sender is required (or pass --body with this field set).`);if(l[`is-exempt-recipient`]===void 0)throw Error(`--is-exempt-recipient is required (or pass --body with this field set).`);if(l[`is-regex`]===void 0)throw Error(`--is-regex is required (or pass --body with this field set).`);if(l[`is-trusted-sender`]===void 0)throw Error(`--is-trusted-sender is required (or pass --body with this field set).`);if(l.pattern===void 0&&(l.pattern=await f(`pattern`,"The pattern value to match. The format depends on `pattern_type`: a valid email address for EMAIL (e.g. `user@example.com`), a valid domain name for DOMAIN (e.g. `example.com`), or a plain IPv4 or IPv6 address or CIDR block for IP (e.g. `1.2.3.4`, `1.2.3.0/24`, `2606:4700:4700::1111`, or `2606:4700:4700::/48`); the API rejects private or unique-local, loopback, link-local, unspecified, and IPv4 broadcast addresses, including their IPv4-mapped IPv6 equivalents.")),l[`pattern-type`]===void 0&&(l[`pattern-type`]=await p(`pattern-type`,"Type of pattern matching. - EMAIL: matches a full email address (e.g. `user@example.com`) - DOMAIN: matches a domain name (e.g. `example.com`) - IP: matches a plain IPv4 or IPv6 address (e.g. `1.2.3.4` or `2606:4700:4700::1111`) or CIDR block (e.g. `1.2.3.0/24` or `2606:4700:4700::/48`). The API rejects private or unique-local, loopback, link-local, unspecified, and IPv4 broadcast addresses, including their IPv4-mapped IPv6 equivalents. - UNKNOWN: deprecated; you cannot use this when creating or updating policies, but it may appear on existing entries. ",[`EMAIL`,`DOMAIN`,`IP`,`UNKNOWN`])),l[`verify-sender`]===void 0)throw Error(`--verify-sender is required (or pass --body with this field set).`);let h=u({comments:d(l.comments,`comments`,`text`),is_acceptable_sender:l[`is-acceptable-sender`],is_exempt_recipient:l[`is-exempt-recipient`],is_recipient:l[`is-recipient`],is_regex:l[`is-regex`],is_sender:l[`is-sender`],is_spoof:l[`is-spoof`],is_trusted_sender:l[`is-trusted-sender`],pattern:d(l.pattern,`pattern`,`text`),pattern_type:d(l[`pattern-type`],`pattern-type`,`text`),verify_sender:l[`verify-sender`]});i(await o(`Creating`,async()=>s.emailSecurity.allowPolicies.create({body:h,account_id:m})),{successLabel:`Created`})})};function v(e){return e.usage(`$0 email-security allow-policies delete <policy-id>
|
|
@@ -17,88 +17,88 @@ Returns a paginated list of email allow policies. These policies exempt matching
|
|
|
17
17
|
|
|
18
18
|
Replaces an existing allow policy in full. Unlike PATCH, every field is taken from the request body, so optional fields that are omitted are reset rather than left untouched. Use this when managing policies declaratively.`).positional(`policy-id`,{type:`string`,description:`Allow policy identifier.`,demandOption:!0}).option(`comments`,{type:`string`,description:`The comments field`}).option(`is-acceptable-sender`,{type:`boolean`,description:`Exempts messages from this sender from Spam, Spoof and Bulk dispositions only; Malicious and Suspicious dispositions still apply.`}).option(`is-exempt-recipient`,{type:`boolean`,description:`Bypasses all detections for messages to this recipient.`}).option(`is-recipient`,{type:`boolean`,description:"Deprecated as of July 1, 2025. Use `is_exempt_recipient` instead. End of life: July 1, 2026."}).option(`is-regex`,{type:`boolean`,description:`The is_regex field`}).option(`is-sender`,{type:`boolean`,description:"Deprecated as of July 1, 2025. Use `is_trusted_sender` instead. End of life: July 1, 2026."}).option(`is-spoof`,{type:`boolean`,description:"Deprecated as of July 1, 2025. Use `is_acceptable_sender` instead. End of life: July 1, 2026."}).option(`is-trusted-sender`,{type:`boolean`,description:`Bypasses all detections and link following for messages from this sender.`}).option(`pattern`,{type:`string`,description:"The pattern value to match. The format depends on `pattern_type`: a valid email address for EMAIL (e.g. `user@example.com`), a valid domain name for DOMAIN (e.g. `example.com`), or a plain IPv4 or IPv6 address or CIDR block for IP (e.g. `1.2.3.4`, `1.2.3.0/24`, `2606:4700:4700::1111`, or `2606:4700:4700::/48`); the API rejects private or unique-local, loopback, link-local, unspecified, and IPv4 broadcast addresses, including their IPv4-mapped IPv6 equivalents."}).option(`pattern-type`,{type:`string`,description:"Type of pattern matching.\n- EMAIL: matches a full email address (e.g. `user@example.com`)\n- DOMAIN: matches a domain name (e.g. `example.com`)\n- IP: matches a plain IPv4 or IPv6 address (e.g. `1.2.3.4` or `2606:4700:4700::1111`) or CIDR block (e.g. `1.2.3.0/24` or `2606:4700:4700::/48`). The API rejects private or unique-local, loopback, link-local, unspecified, and IPv4 broadcast addresses, including their IPv4-mapped IPv6 equivalents.\n- UNKNOWN: deprecated; you cannot use this when creating or updating policies, but it may appear on existing entries.\n",choices:[`EMAIL`,`DOMAIN`,`IP`,`UNKNOWN`]}).option(`verify-sender`,{type:`boolean`,description:`Enforce DMARC, SPF or DKIM authentication. When on, Email Security only honors policies that pass authentication.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Create an allow policy.`})}const D={command:`update <policy-id>`,describe:`Replace an email allow policy`,builder:E,handler:async l=>s({command:`email-security allow-policies update`,classification:{safeFlags:[`is-acceptable-sender`,`is-exempt-recipient`,`is-recipient`,`is-regex`,`is-sender`,`is-spoof`,`is-trusted-sender`,`pattern-type`,`verify-sender`,`dry-run`]}},l,async()=>{if(l.dryRun){a({command:`cf email-security allow-policies update`,method:`PUT`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/email-security/settings/allow_policies/${l[`policy-id`]==null?`<policy-id>`:encodeURIComponent(String(l[`policy-id`]))}`,pathParams:{"policy-id":String(l[`policy-id`]??``)},bodyKind:`json`,body:l.body===void 0?u({comments:d(l.comments,`comments`,`text`),is_acceptable_sender:l[`is-acceptable-sender`],is_exempt_recipient:l[`is-exempt-recipient`],is_recipient:l[`is-recipient`],is_regex:l[`is-regex`],is_sender:l[`is-sender`],is_spoof:l[`is-spoof`],is_trusted_sender:l[`is-trusted-sender`],pattern:d(l.pattern,`pattern`,`text`),pattern_type:d(l[`pattern-type`],`pattern-type`,`text`),verify_sender:l[`verify-sender`]}):c(l.body)});return}let s=await r(l),m=l.local?e:await n();if(l.accountId=m,l.body){let e=c(l.body);i(await o(`Updating`,async()=>s.emailSecurity.allowPolicies.update({body:e,account_id:m,policy_id:l[`policy-id`]})),{successLabel:`Updated`});return}if(l[`is-acceptable-sender`]===void 0)throw Error(`--is-acceptable-sender is required (or pass --body with this field set).`);if(l[`is-exempt-recipient`]===void 0)throw Error(`--is-exempt-recipient is required (or pass --body with this field set).`);if(l[`is-regex`]===void 0)throw Error(`--is-regex is required (or pass --body with this field set).`);if(l[`is-trusted-sender`]===void 0)throw Error(`--is-trusted-sender is required (or pass --body with this field set).`);if(l.pattern===void 0&&(l.pattern=await f(`pattern`,"The pattern value to match. The format depends on `pattern_type`: a valid email address for EMAIL (e.g. `user@example.com`), a valid domain name for DOMAIN (e.g. `example.com`), or a plain IPv4 or IPv6 address or CIDR block for IP (e.g. `1.2.3.4`, `1.2.3.0/24`, `2606:4700:4700::1111`, or `2606:4700:4700::/48`); the API rejects private or unique-local, loopback, link-local, unspecified, and IPv4 broadcast addresses, including their IPv4-mapped IPv6 equivalents.")),l[`pattern-type`]===void 0&&(l[`pattern-type`]=await p(`pattern-type`,"Type of pattern matching. - EMAIL: matches a full email address (e.g. `user@example.com`) - DOMAIN: matches a domain name (e.g. `example.com`) - IP: matches a plain IPv4 or IPv6 address (e.g. `1.2.3.4` or `2606:4700:4700::1111`) or CIDR block (e.g. `1.2.3.0/24` or `2606:4700:4700::/48`). The API rejects private or unique-local, loopback, link-local, unspecified, and IPv4 broadcast addresses, including their IPv4-mapped IPv6 equivalents. - UNKNOWN: deprecated; you cannot use this when creating or updating policies, but it may appear on existing entries. ",[`EMAIL`,`DOMAIN`,`IP`,`UNKNOWN`])),l[`verify-sender`]===void 0)throw Error(`--verify-sender is required (or pass --body with this field set).`);let h=u({comments:d(l.comments,`comments`,`text`),is_acceptable_sender:l[`is-acceptable-sender`],is_exempt_recipient:l[`is-exempt-recipient`],is_recipient:l[`is-recipient`],is_regex:l[`is-regex`],is_sender:l[`is-sender`],is_spoof:l[`is-spoof`],is_trusted_sender:l[`is-trusted-sender`],pattern:d(l.pattern,`pattern`,`text`),pattern_type:d(l[`pattern-type`],`pattern-type`,`text`),verify_sender:l[`verify-sender`]});i(await o(`Updating`,async()=>s.emailSecurity.allowPolicies.update({body:h,account_id:m,policy_id:l[`policy-id`]})),{successLabel:`Updated`})})},O={command:`allow-policies`,describe:`Operations for allow-policies`,builder:e=>e.command(te).command(_).command(y).command(x).command(C).command(T).command(D).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function k(e){return e.usage(`$0 email-security analytics monthly-report get
|
|
19
19
|
|
|
20
|
-
Returns an aggregated monthly email security report including detections, dispositions, and policy activity for the trailing 12 months.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const A={command:`get`,describe:`Get monthly report`,builder:k,handler:async c=>s({command:`email-security analytics monthly-report get`,classification:{safeFlags:[`dry-run`]}},c,async()=>{if(c.dryRun){a({command:`cf email-security analytics monthly-report get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/email-security/analytics/monthly_report`,pathParams:{},bodyKind:`none`});return}let s=await r(c),l=c.local?e:await n();c.accountId=l,i(await o(`Loading`,async()=>s.emailSecurity.analytics.monthlyReport.get({account_id:l})),{successLabel:`Loaded`})})},j={command:`monthly-report`,describe:`Operations for analytics.monthly-report`,builder:e=>e.command(A).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},M={command:`analytics`,describe:`
|
|
20
|
+
Returns an aggregated monthly email security report including detections, dispositions, and policy activity for the trailing 12 months.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const A={command:`get`,describe:`Get monthly report`,builder:k,handler:async c=>s({command:`email-security analytics monthly-report get`,classification:{safeFlags:[`dry-run`]}},c,async()=>{if(c.dryRun){a({command:`cf email-security analytics monthly-report get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/email-security/analytics/monthly_report`,pathParams:{},bodyKind:`none`});return}let s=await r(c),l=c.local?e:await n();c.accountId=l,i(await o(`Loading`,async()=>s.emailSecurity.analytics.monthlyReport.get({account_id:l})),{successLabel:`Loaded`})})},j={command:`monthly-report`,describe:`Operations for analytics.monthly-report`,builder:e=>e.command(A).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},M={command:`analytics`,describe:`Analytics and reporting — monthly report and per-day breakdowns of threat activity`,builder:e=>e.command(j).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function N(e){return e.usage(`$0 email-security block-senders batch
|
|
21
21
|
|
|
22
|
-
Executes multiple operations atomically. All four operation arrays (deletes, patches, puts, posts) are required and executed in order. Send empty arrays for unused operations.`).option(`deletes`,{type:`string`,description:`
|
|
22
|
+
Executes multiple blocked sender operations atomically: delete, partially update, replace, and create blocked sender patterns in a single request. All four operation arrays (deletes, patches, puts, posts) are required and executed in order. Send empty arrays for unused operations.`).option(`deletes`,{type:`string`,description:`IDs of the blocked sender patterns to delete. Provide as a JSON array of objects or @path/to/file.json.`}).option(`patches`,{type:`string`,description:`Partial updates to apply — each entry carries the pattern's ID and only the fields to change. Provide as a JSON array of objects or @path/to/file.json.`}).option(`posts`,{type:`string`,description:`Blocked sender patterns to create. Provide as a JSON array of objects or @path/to/file.json.`}).option(`puts`,{type:`string`,description:`Full replacements to apply — each entry carries the pattern's ID and every field of its new value. Provide as a JSON array of objects or @path/to/file.json.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`force`,{type:`boolean`,alias:`f`,description:`Skip confirmation (useful in scripts and CI)`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const P={command:`batch`,describe:`Batch blocked sender operations`,builder:N,handler:async d=>s({command:`email-security block-senders batch`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},d,async()=>{if(d.dryRun){a({command:`cf email-security block-senders batch`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/email-security/settings/block_senders/batch`,pathParams:{},bodyKind:`json`,body:d.body===void 0?u({deletes:l(d.deletes,`deletes`),patches:l(d.patches,`patches`),posts:l(d.posts,`posts`),puts:l(d.puts,`puts`)}):c(d.body)});return}let s=await r(d),f=d.local?e:await n();if(d.accountId=f,!await m({force:!!d.force,message:`This operation may delete the selected blocked sender patterns and stop automatically blocking matching emails based on those rules.`})){process.stderr.write(`Aborted.
|
|
23
23
|
`);return}if(d.body){let e=c(d.body);i(await o(`Deleting`,async()=>s.emailSecurity.blockSenders.batch({...e,account_id:f})),{successLabel:`Deleted`});return}if(d.deletes===void 0)throw Error(`--deletes is required (or pass --body with this field set).`);if(d.patches===void 0)throw Error(`--patches is required (or pass --body with this field set).`);if(d.posts===void 0)throw Error(`--posts is required (or pass --body with this field set).`);if(d.puts===void 0)throw Error(`--puts is required (or pass --body with this field set).`);let p=u({deletes:l(d.deletes,`deletes`),patches:l(d.patches,`patches`),posts:l(d.posts,`posts`),puts:l(d.puts,`puts`)});i(await o(`Deleting`,async()=>s.emailSecurity.blockSenders.batch({...p,account_id:f})),{successLabel:`Deleted`})})};function F(e){return e.usage(`$0 email-security block-senders create
|
|
24
24
|
|
|
25
|
-
Creates a new blocked sender pattern. Emails matching this pattern will be blocked from delivery. Patterns can be email addresses, domains, or IP addresses, and support regular expressions.`).option(`comments`,{type:`string`,description:`The comments field`}).option(`is-regex`,{type:`boolean`,description
|
|
25
|
+
Creates a new blocked sender pattern. Emails matching this pattern will be blocked from delivery. Patterns can be email addresses, domains, or IP addresses, and support regular expressions.`).option(`comments`,{type:`string`,description:`The comments field`}).option(`is-regex`,{type:`boolean`,description:"Whether `pattern` is a regular expression instead of a literal value."}).option(`pattern`,{type:`string`,description:"The pattern value to match. The format depends on `pattern_type`: a valid email address for EMAIL (e.g. `user@example.com`), a valid domain name for DOMAIN (e.g. `example.com`), or a plain IPv4 or IPv6 address or CIDR block for IP (e.g. `1.2.3.4`, `1.2.3.0/24`, `2606:4700:4700::1111`, or `2606:4700:4700::/48`); the API rejects private or unique-local, loopback, link-local, unspecified, and IPv4 broadcast addresses, including their IPv4-mapped IPv6 equivalents."}).option(`pattern-type`,{type:`string`,description:"Type of pattern matching.\n- EMAIL: matches a full email address (e.g. `user@example.com`)\n- DOMAIN: matches a domain name (e.g. `example.com`)\n- IP: matches a plain IPv4 or IPv6 address (e.g. `1.2.3.4` or `2606:4700:4700::1111`) or CIDR block (e.g. `1.2.3.0/24` or `2606:4700:4700::/48`). The API rejects private or unique-local, loopback, link-local, unspecified, and IPv4 broadcast addresses, including their IPv4-mapped IPv6 equivalents.\n- UNKNOWN: deprecated; you cannot use this when creating or updating policies, but it may appear on existing entries.\n",choices:[`EMAIL`,`DOMAIN`,`IP`,`UNKNOWN`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Create a blocked sender pattern.`})}const I={command:`create`,describe:`Create blocked email sender`,builder:F,handler:async l=>s({command:`email-security block-senders create`,classification:{safeFlags:[`is-regex`,`pattern-type`,`dry-run`]}},l,async()=>{if(l.dryRun){a({command:`cf email-security block-senders create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/email-security/settings/block_senders`,pathParams:{},bodyKind:`json`,body:l.body===void 0?u({comments:d(l.comments,`comments`,`text`),is_regex:l[`is-regex`],pattern:d(l.pattern,`pattern`,`text`),pattern_type:d(l[`pattern-type`],`pattern-type`,`text`)}):c(l.body)});return}let s=await r(l),m=l.local?e:await n();if(l.accountId=m,l.body){let e=c(l.body);i(await o(`Creating`,async()=>s.emailSecurity.blockSenders.create({body:e,account_id:m})),{successLabel:`Created`});return}if(l[`is-regex`]===void 0)throw Error(`--is-regex is required (or pass --body with this field set).`);l.pattern===void 0&&(l.pattern=await f(`pattern`,"The pattern value to match. The format depends on `pattern_type`: a valid email address for EMAIL (e.g. `user@example.com`), a valid domain name for DOMAIN (e.g. `example.com`), or a plain IPv4 or IPv6 address or CIDR block for IP (e.g. `1.2.3.4`, `1.2.3.0/24`, `2606:4700:4700::1111`, or `2606:4700:4700::/48`); the API rejects private or unique-local, loopback, link-local, unspecified, and IPv4 broadcast addresses, including their IPv4-mapped IPv6 equivalents.")),l[`pattern-type`]===void 0&&(l[`pattern-type`]=await p(`pattern-type`,"Type of pattern matching. - EMAIL: matches a full email address (e.g. `user@example.com`) - DOMAIN: matches a domain name (e.g. `example.com`) - IP: matches a plain IPv4 or IPv6 address (e.g. `1.2.3.4` or `2606:4700:4700::1111`) or CIDR block (e.g. `1.2.3.0/24` or `2606:4700:4700::/48`). The API rejects private or unique-local, loopback, link-local, unspecified, and IPv4 broadcast addresses, including their IPv4-mapped IPv6 equivalents. - UNKNOWN: deprecated; you cannot use this when creating or updating policies, but it may appear on existing entries. ",[`EMAIL`,`DOMAIN`,`IP`,`UNKNOWN`]));let h=u({comments:d(l.comments,`comments`,`text`),is_regex:l[`is-regex`],pattern:d(l.pattern,`pattern`,`text`),pattern_type:d(l[`pattern-type`],`pattern-type`,`text`)});i(await o(`Creating`,async()=>s.emailSecurity.blockSenders.create({body:h,account_id:m})),{successLabel:`Created`})})};function L(e){return e.usage(`$0 email-security block-senders delete <pattern-id>
|
|
26
26
|
|
|
27
27
|
Removes a blocked sender pattern. After deletion, emails from this sender will no longer be automatically blocked based on this rule.`).positional(`pattern-id`,{type:`string`,description:`Blocked sender pattern identifier.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`force`,{type:`boolean`,alias:`f`,description:`Skip confirmation (useful in scripts and CI)`,default:!1})}const R={command:`delete <pattern-id>`,describe:`Delete a blocked email sender`,builder:L,handler:async c=>s({command:`email-security block-senders delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},c,async()=>{if(c.dryRun){a({command:`cf email-security block-senders delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/email-security/settings/block_senders/${c[`pattern-id`]==null?`<pattern-id>`:encodeURIComponent(String(c[`pattern-id`]))}`,pathParams:{"pattern-id":String(c[`pattern-id`]??``)},bodyKind:`none`});return}let s=await r(c),l=c.local?e:await n();if(c.accountId=l,!await m({force:!!c.force,message:`This operation deletes the blocked sender pattern and stops automatically blocking matching emails based on this rule.`})){process.stderr.write(`Aborted.
|
|
28
28
|
`);return}i(await o(`Deleting`,async()=>s.emailSecurity.blockSenders.delete({account_id:l,pattern_id:c[`pattern-id`]})),{successLabel:`Deleted`})})};function z(e){return e.usage(`$0 email-security block-senders edit <pattern-id>
|
|
29
29
|
|
|
30
|
-
Updates an existing blocked sender pattern. Only provided fields will be modified. The pattern will continue blocking emails until deleted.`).positional(`pattern-id`,{type:`string`,description:`Blocked sender pattern identifier.`,demandOption:!0}).option(`comments`,{type:`string`,description:`The comments field`}).option(`is-regex`,{type:`boolean`,description
|
|
30
|
+
Updates an existing blocked sender pattern. Only provided fields will be modified. The pattern will continue blocking emails until deleted.`).positional(`pattern-id`,{type:`string`,description:`Blocked sender pattern identifier.`,demandOption:!0}).option(`comments`,{type:`string`,description:`The comments field`}).option(`is-regex`,{type:`boolean`,description:"Whether `pattern` is a regular expression instead of a literal value."}).option(`pattern`,{type:`string`,description:"The pattern value to match. The format depends on `pattern_type`: a valid email address for EMAIL (e.g. `user@example.com`), a valid domain name for DOMAIN (e.g. `example.com`), or a plain IPv4 or IPv6 address or CIDR block for IP (e.g. `1.2.3.4`, `1.2.3.0/24`, `2606:4700:4700::1111`, or `2606:4700:4700::/48`); the API rejects private or unique-local, loopback, link-local, unspecified, and IPv4 broadcast addresses, including their IPv4-mapped IPv6 equivalents."}).option(`pattern-type`,{type:`string`,description:"Type of pattern matching.\n- EMAIL: matches a full email address (e.g. `user@example.com`)\n- DOMAIN: matches a domain name (e.g. `example.com`)\n- IP: matches a plain IPv4 or IPv6 address (e.g. `1.2.3.4` or `2606:4700:4700::1111`) or CIDR block (e.g. `1.2.3.0/24` or `2606:4700:4700::/48`). The API rejects private or unique-local, loopback, link-local, unspecified, and IPv4 broadcast addresses, including their IPv4-mapped IPv6 equivalents.\n- UNKNOWN: deprecated; you cannot use this when creating or updating policies, but it may appear on existing entries.\n",choices:[`EMAIL`,`DOMAIN`,`IP`,`UNKNOWN`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Update a blocked sender pattern.`})}const B={command:`edit <pattern-id>`,describe:`Update a blocked email sender`,builder:z,handler:async l=>s({command:`email-security block-senders edit`,classification:{safeFlags:[`is-regex`,`pattern-type`,`dry-run`]}},l,async()=>{if(l.dryRun){a({command:`cf email-security block-senders edit`,method:`PATCH`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/email-security/settings/block_senders/${l[`pattern-id`]==null?`<pattern-id>`:encodeURIComponent(String(l[`pattern-id`]))}`,pathParams:{"pattern-id":String(l[`pattern-id`]??``)},bodyKind:`json`,body:l.body===void 0?u({comments:d(l.comments,`comments`,`text`),is_regex:l[`is-regex`],pattern:d(l.pattern,`pattern`,`text`),pattern_type:d(l[`pattern-type`],`pattern-type`,`text`)}):c(l.body)});return}let s=await r(l),f=l.local?e:await n();if(l.accountId=f,l.body){let e=c(l.body);i(await o(`Updating`,async()=>s.emailSecurity.blockSenders.edit({body:e,account_id:f,pattern_id:l[`pattern-id`]})),{successLabel:`Updated`});return}let p=u({comments:d(l.comments,`comments`,`text`),is_regex:l[`is-regex`],pattern:d(l.pattern,`pattern`,`text`),pattern_type:d(l[`pattern-type`],`pattern-type`,`text`)});i(await o(`Updating`,async()=>s.emailSecurity.blockSenders.edit({body:p,account_id:f,pattern_id:l[`pattern-id`]})),{successLabel:`Updated`})})};function V(e){return e.usage(`$0 email-security block-senders get <pattern-id>
|
|
31
31
|
|
|
32
32
|
Retrieves details for a specific blocked sender pattern including its pattern type, value, and metadata.`).positional(`pattern-id`,{type:`string`,description:`Blocked sender pattern identifier.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const H={command:`get <pattern-id>`,describe:`Get a blocked email sender`,builder:V,handler:async c=>s({command:`email-security block-senders get`,classification:{safeFlags:[`dry-run`]}},c,async()=>{if(c.dryRun){a({command:`cf email-security block-senders get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/email-security/settings/block_senders/${c[`pattern-id`]==null?`<pattern-id>`:encodeURIComponent(String(c[`pattern-id`]))}`,pathParams:{"pattern-id":String(c[`pattern-id`]??``)},bodyKind:`none`});return}let s=await r(c),l=c.local?e:await n();c.accountId=l,i(await o(`Loading`,async()=>s.emailSecurity.blockSenders.get({account_id:l,pattern_id:c[`pattern-id`]})),{successLabel:`Loaded`})})};function U(e){return e.usage(`$0 email-security block-senders list
|
|
33
33
|
|
|
34
34
|
Returns a paginated list of blocked email sender patterns. These patterns prevent emails from matching senders from being delivered. Supports filtering by pattern type and searching across patterns.`).option(`page`,{type:`number`,description:`Current page within paginated list of results.`}).option(`per-page`,{type:`number`,description:`The number of results per page. Maximum value is 1000.`}).option(`search`,{type:`string`,description:`Search term for filtering records. Behavior may change.`}).option(`order`,{type:`string`,description:`Field to sort by.`,choices:[`pattern`,`created_at`]}).option(`direction`,{type:`string`,description:`The sorting direction.`,choices:[`asc`,`desc`]}).option(`pattern-type`,{type:`string`,description:`Filter by pattern type.`,choices:[`EMAIL`,`DOMAIN`,`IP`,`UNKNOWN`]}).option(`pattern`,{type:`string`,description:`Filter by pattern value.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const W={command:`list`,describe:`List blocked email senders`,builder:h(U),handler:async c=>s({command:`email-security block-senders list`,classification:{safeFlags:[`order`,`direction`,`pattern-type`,`dry-run`]}},c,async()=>{let s={page:c.page,per_page:c[`per-page`],search:c.search,order:c.order,direction:c.direction,pattern_type:c[`pattern-type`],pattern:c.pattern};if(c.dryRun){a({command:`cf email-security block-senders list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/email-security/settings/block_senders`,pathParams:{},query:s,bodyKind:`none`});return}let l=await r(c),u=c.local?e:await n();c.accountId=u,i(await o(`Loading`,async()=>l.emailSecurity.blockSenders.list({account_id:u,...s})),{successLabel:`Loaded`})})};function G(e){return e.usage(`$0 email-security block-senders update <pattern-id>
|
|
35
35
|
|
|
36
|
-
Replaces an existing blocked sender pattern in full. Unlike PATCH, every field is taken from the request body, so optional fields that are omitted are reset rather than left untouched. Use this when managing blocked senders declaratively.`).positional(`pattern-id`,{type:`string`,description:`Blocked sender pattern identifier.`,demandOption:!0}).option(`comments`,{type:`string`,description:`The comments field`}).option(`is-regex`,{type:`boolean`,description
|
|
36
|
+
Replaces an existing blocked sender pattern in full. Unlike PATCH, every field is taken from the request body, so optional fields that are omitted are reset rather than left untouched. Use this when managing blocked senders declaratively.`).positional(`pattern-id`,{type:`string`,description:`Blocked sender pattern identifier.`,demandOption:!0}).option(`comments`,{type:`string`,description:`The comments field`}).option(`is-regex`,{type:`boolean`,description:"Whether `pattern` is a regular expression instead of a literal value."}).option(`pattern`,{type:`string`,description:"The pattern value to match. The format depends on `pattern_type`: a valid email address for EMAIL (e.g. `user@example.com`), a valid domain name for DOMAIN (e.g. `example.com`), or a plain IPv4 or IPv6 address or CIDR block for IP (e.g. `1.2.3.4`, `1.2.3.0/24`, `2606:4700:4700::1111`, or `2606:4700:4700::/48`); the API rejects private or unique-local, loopback, link-local, unspecified, and IPv4 broadcast addresses, including their IPv4-mapped IPv6 equivalents."}).option(`pattern-type`,{type:`string`,description:"Type of pattern matching.\n- EMAIL: matches a full email address (e.g. `user@example.com`)\n- DOMAIN: matches a domain name (e.g. `example.com`)\n- IP: matches a plain IPv4 or IPv6 address (e.g. `1.2.3.4` or `2606:4700:4700::1111`) or CIDR block (e.g. `1.2.3.0/24` or `2606:4700:4700::/48`). The API rejects private or unique-local, loopback, link-local, unspecified, and IPv4 broadcast addresses, including their IPv4-mapped IPv6 equivalents.\n- UNKNOWN: deprecated; you cannot use this when creating or updating policies, but it may appear on existing entries.\n",choices:[`EMAIL`,`DOMAIN`,`IP`,`UNKNOWN`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Create a blocked sender pattern.`})}const K={command:`update <pattern-id>`,describe:`Replace a blocked email sender`,builder:G,handler:async l=>s({command:`email-security block-senders update`,classification:{safeFlags:[`is-regex`,`pattern-type`,`dry-run`]}},l,async()=>{if(l.dryRun){a({command:`cf email-security block-senders update`,method:`PUT`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/email-security/settings/block_senders/${l[`pattern-id`]==null?`<pattern-id>`:encodeURIComponent(String(l[`pattern-id`]))}`,pathParams:{"pattern-id":String(l[`pattern-id`]??``)},bodyKind:`json`,body:l.body===void 0?u({comments:d(l.comments,`comments`,`text`),is_regex:l[`is-regex`],pattern:d(l.pattern,`pattern`,`text`),pattern_type:d(l[`pattern-type`],`pattern-type`,`text`)}):c(l.body)});return}let s=await r(l),m=l.local?e:await n();if(l.accountId=m,l.body){let e=c(l.body);i(await o(`Updating`,async()=>s.emailSecurity.blockSenders.update({body:e,account_id:m,pattern_id:l[`pattern-id`]})),{successLabel:`Updated`});return}if(l[`is-regex`]===void 0)throw Error(`--is-regex is required (or pass --body with this field set).`);l.pattern===void 0&&(l.pattern=await f(`pattern`,"The pattern value to match. The format depends on `pattern_type`: a valid email address for EMAIL (e.g. `user@example.com`), a valid domain name for DOMAIN (e.g. `example.com`), or a plain IPv4 or IPv6 address or CIDR block for IP (e.g. `1.2.3.4`, `1.2.3.0/24`, `2606:4700:4700::1111`, or `2606:4700:4700::/48`); the API rejects private or unique-local, loopback, link-local, unspecified, and IPv4 broadcast addresses, including their IPv4-mapped IPv6 equivalents.")),l[`pattern-type`]===void 0&&(l[`pattern-type`]=await p(`pattern-type`,"Type of pattern matching. - EMAIL: matches a full email address (e.g. `user@example.com`) - DOMAIN: matches a domain name (e.g. `example.com`) - IP: matches a plain IPv4 or IPv6 address (e.g. `1.2.3.4` or `2606:4700:4700::1111`) or CIDR block (e.g. `1.2.3.0/24` or `2606:4700:4700::/48`). The API rejects private or unique-local, loopback, link-local, unspecified, and IPv4 broadcast addresses, including their IPv4-mapped IPv6 equivalents. - UNKNOWN: deprecated; you cannot use this when creating or updating policies, but it may appear on existing entries. ",[`EMAIL`,`DOMAIN`,`IP`,`UNKNOWN`]));let h=u({comments:d(l.comments,`comments`,`text`),is_regex:l[`is-regex`],pattern:d(l.pattern,`pattern`,`text`),pattern_type:d(l[`pattern-type`],`pattern-type`,`text`)});i(await o(`Updating`,async()=>s.emailSecurity.blockSenders.update({body:h,account_id:m,pattern_id:l[`pattern-id`]})),{successLabel:`Updated`})})},q={command:`block-senders`,describe:`Operations for block-senders`,builder:e=>e.command(P).command(I).command(R).command(B).command(H).command(W).command(K).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function J(e){return e.usage(`$0 email-security bulk-actions cancel <job-id>
|
|
37
37
|
|
|
38
|
-
|
|
39
|
-
`);return}if(d.body){let e=c(d.body);i(await o(`Deleting`,async()=>s.emailSecurity.contentPolicies.batch({...e,account_id:f})),{successLabel:`Deleted`});return}if(d.deletes===void 0)throw Error(`--deletes is required (or pass --body with this field set).`);if(d.patches===void 0)throw Error(`--patches is required (or pass --body with this field set).`);if(d.posts===void 0)throw Error(`--posts is required (or pass --body with this field set).`);if(d.puts===void 0)throw Error(`--puts is required (or pass --body with this field set).`);let p=u({deletes:l(d.deletes,`deletes`),patches:l(d.patches,`patches`),posts:l(d.posts,`posts`),puts:l(d.puts,`puts`)});i(await o(`Deleting`,async()=>s.emailSecurity.contentPolicies.batch({...p,account_id:f})),{successLabel:`Deleted`})})};function X(e){return e.usage(`$0 email-security content-policies create
|
|
38
|
+
Cancels the job, marking it as cancelled and stopping any pending message processing. The job record remains visible in list and detail endpoints.`).positional(`job-id`,{type:`string`,description:`Identifier of the bulk action job to cancel.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const Y={command:`cancel <job-id>`,describe:`Cancel a bulk action job`,builder:J,handler:async c=>s({command:`email-security bulk-actions cancel`,classification:{safeFlags:[`dry-run`]}},c,async()=>{if(c.dryRun){a({command:`cf email-security bulk-actions cancel`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/email-security/investigate/bulk/${c[`job-id`]==null?`<job-id>`:encodeURIComponent(String(c[`job-id`]))}/cancel`,pathParams:{"job-id":String(c[`job-id`]??``)},bodyKind:`none`});return}let s=await r(c),l=c.local?e:await n();c.accountId=l,i(await o(`Creating`,async()=>s.emailSecurity.bulkActions.cancel({account_id:l,job_id:c[`job-id`]})),{successLabel:`Created`})})};function X(e){return e.usage(`$0 email-security bulk-actions create
|
|
40
39
|
|
|
41
|
-
Creates a new
|
|
40
|
+
Creates a new bulk action job to move or release messages that match the provided search parameters. To move or release an explicit list of known messages instead of a search, use the move or release endpoints.`).option(`action`,{type:`string`,description:`The action the job performs on every message matching the search parameters.`,choices:[`MOVE`,`RELEASE`]}).option(`comment`,{type:`string`,description:`Optional note describing the job.`}).option(`search-params-action-log`,{type:`boolean`,description:"Deprecated, use `GET /investigate/{investigate_id}/action_log` instead. End of life: November 1, 2026.",default:!1}).option(`search-params-alert-id`,{type:`string`,description:`Alert ID of the detection to filter by.`}).option(`search-params-detections-only`,{type:`boolean`,description:`Whether to include only detections in search results.`,default:!0}).option(`search-params-domain`,{type:`string`,description:`Match messages that mention this domain — sender domain, recipient domain, or a domain in a link.`}).option(`search-params-end`,{type:`string`,description:`End of search date range.`}).option(`search-params-exact-subject`,{type:`string`,description:`Match messages whose subject line equals this value exactly.`}).option(`search-params-message-action`,{type:`string`,description:`Message actions to filter by.`,choices:[`PREVIEW`,`QUARANTINE_RELEASED`,`MOVED`]}).option(`search-params-message-id`,{type:`string`,description:`Message-ID header value to filter by.`}).option(`search-params-metric`,{type:`string`,description:`Metric name to filter the search by.`}).option(`search-params-query`,{type:`string`,description:`Space-delimited search term. Case-insensitive.`}).option(`search-params-recipient`,{type:`string`,description:`Match messages whose recipient is this email address or domain.`}).option(`search-params-sender`,{type:`string`,description:`Match messages whose sender is this email address or domain.`}).option(`search-params-smtp-helo-ip`,{type:`string`,description:`Matches messages whose SMTP HELO server IP address equals this value.`}).option(`search-params-start`,{type:`string`,description:`Beginning of search date range.`}).option(`search-params-subject`,{type:`string`,description:`Match messages whose subject contains these keywords, in any order.`}).option(`search-params-submissions`,{type:`boolean`,description:`Whether to search reclassification submissions instead of original messages.`,default:!1}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const Z={command:`create`,describe:`Create a bulk action job`,builder:X,handler:async l=>s({command:`email-security bulk-actions create`,classification:{safeFlags:[`action`,`search-params-action-log`,`search-params-detections-only`,`search-params-message-action`,`search-params-submissions`,`dry-run`]}},l,async()=>{if(l.dryRun){a({command:`cf email-security bulk-actions create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/email-security/investigate/bulk`,pathParams:{},bodyKind:`json`,body:l.body===void 0?u({action:d(l.action,`action`,`text`),comment:d(l.comment,`comment`,`text`),search_params:{action_log:l[`search-params-action-log`],alert_id:d(l[`search-params-alert-id`],`search-params-alert-id`,`text`),detections_only:l[`search-params-detections-only`],domain:d(l[`search-params-domain`],`search-params-domain`,`text`),end:d(l[`search-params-end`],`search-params-end`,`text`),exact_subject:d(l[`search-params-exact-subject`],`search-params-exact-subject`,`text`),message_action:d(l[`search-params-message-action`],`search-params-message-action`,`text`),message_id:d(l[`search-params-message-id`],`search-params-message-id`,`text`),metric:d(l[`search-params-metric`],`search-params-metric`,`text`),query:d(l[`search-params-query`],`search-params-query`,`text`),recipient:d(l[`search-params-recipient`],`search-params-recipient`,`text`),sender:d(l[`search-params-sender`],`search-params-sender`,`text`),smtp_helo_ip:d(l[`search-params-smtp-helo-ip`],`search-params-smtp-helo-ip`,`text`),start:d(l[`search-params-start`],`search-params-start`,`text`),subject:d(l[`search-params-subject`],`search-params-subject`,`text`),submissions:l[`search-params-submissions`]}}):c(l.body)});return}let s=await r(l),f=l.local?e:await n();if(l.accountId=f,l.body){let e=c(l.body);i(await o(`Creating`,async()=>s.emailSecurity.bulkActions.create({...e,account_id:f})),{successLabel:`Created`});return}l.action===void 0&&(l.action=await p(`action`,`The action the job performs on every message matching the search parameters.`,[`MOVE`,`RELEASE`]));let m=u({action:d(l.action,`action`,`text`),comment:d(l.comment,`comment`,`text`),search_params:{action_log:l[`search-params-action-log`],alert_id:d(l[`search-params-alert-id`],`search-params-alert-id`,`text`),detections_only:l[`search-params-detections-only`],domain:d(l[`search-params-domain`],`search-params-domain`,`text`),end:d(l[`search-params-end`],`search-params-end`,`text`),exact_subject:d(l[`search-params-exact-subject`],`search-params-exact-subject`,`text`),message_action:d(l[`search-params-message-action`],`search-params-message-action`,`text`),message_id:d(l[`search-params-message-id`],`search-params-message-id`,`text`),metric:d(l[`search-params-metric`],`search-params-metric`,`text`),query:d(l[`search-params-query`],`search-params-query`,`text`),recipient:d(l[`search-params-recipient`],`search-params-recipient`,`text`),sender:d(l[`search-params-sender`],`search-params-sender`,`text`),smtp_helo_ip:d(l[`search-params-smtp-helo-ip`],`search-params-smtp-helo-ip`,`text`),start:d(l[`search-params-start`],`search-params-start`,`text`),subject:d(l[`search-params-subject`],`search-params-subject`,`text`),submissions:l[`search-params-submissions`]}});i(await o(`Creating`,async()=>s.emailSecurity.bulkActions.create({...m,account_id:f})),{successLabel:`Created`})})};function Q(e){return e.usage("$0 email-security bulk-actions delete <job-id>\n\nDeletes the job, removing it from all list and detail endpoints. Only jobs in a terminal state (`COMPLETED`, `CANCELLED`, or `FAILED`) can be deleted. To stop an in-progress job without removing it, use the cancel endpoint instead.").positional(`job-id`,{type:`string`,description:`Identifier of the bulk action job.`,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 ne={command:`delete <job-id>`,describe:`Delete a bulk action job`,builder:Q,handler:async c=>s({command:`email-security bulk-actions delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},c,async()=>{if(c.dryRun){a({command:`cf email-security bulk-actions delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/email-security/investigate/bulk/${c[`job-id`]==null?`<job-id>`:encodeURIComponent(String(c[`job-id`]))}`,pathParams:{"job-id":String(c[`job-id`]??``)},bodyKind:`none`});return}let s=await r(c),l=c.local?e:await n();if(c.accountId=l,!await m({force:!!c.force,message:`This operation permanently deletes the completed, cancelled, or failed bulk action job from all list and detail endpoints.`})){process.stderr.write(`Aborted.
|
|
41
|
+
`);return}i(await o(`Deleting`,async()=>s.emailSecurity.bulkActions.delete({account_id:l,job_id:c[`job-id`]})),{successLabel:`Deleted`})})};function re(e){return e.usage(`$0 email-security bulk-actions get <job-id>
|
|
42
42
|
|
|
43
|
-
|
|
44
|
-
`);return}i(await o(`Deleting`,async()=>s.emailSecurity.contentPolicies.delete({account_id:l,policy_id:c[`policy-id`]})),{successLabel:`Deleted`})})};function re(e){return e.usage(`$0 email-security content-policies edit <policy-id>
|
|
43
|
+
Returns the status and details of a specific bulk action job.`).positional(`job-id`,{type:`string`,description:`Identifier of the bulk action job.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const ie={command:`get <job-id>`,describe:`Get bulk action job details`,builder:re,handler:async c=>s({command:`email-security bulk-actions get`,classification:{safeFlags:[`dry-run`]}},c,async()=>{if(c.dryRun){a({command:`cf email-security bulk-actions get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/email-security/investigate/bulk/${c[`job-id`]==null?`<job-id>`:encodeURIComponent(String(c[`job-id`]))}`,pathParams:{"job-id":String(c[`job-id`]??``)},bodyKind:`none`});return}let s=await r(c),l=c.local?e:await n();c.accountId=l,i(await o(`Loading`,async()=>s.emailSecurity.bulkActions.get({account_id:l,job_id:c[`job-id`]})),{successLabel:`Loaded`})})};function ae(e){return e.usage(`$0 email-security bulk-actions list
|
|
45
44
|
|
|
46
|
-
|
|
45
|
+
Returns a paginated list of bulk action jobs for the account.`).option(`page`,{type:`number`,description:`Current page within paginated list of results.`}).option(`per-page`,{type:`number`,description:`The number of results per page. Maximum value is 1000.`}).option(`action-type`,{type:`string`,description:`Filter jobs by the action they perform.`,choices:[`MOVE`,`RELEASE`]}).option(`status`,{type:`string`,description:`Filter jobs by their processing status.`,choices:[`PENDING`,`DISCOVERING`,`PROCESSING`,`COMPLETED`,`FAILED`,`CANCELLED`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const oe={command:`list`,describe:`List bulk action jobs`,builder:h(ae),handler:async c=>s({command:`email-security bulk-actions list`,classification:{safeFlags:[`action-type`,`status`,`dry-run`]}},c,async()=>{let s={page:c.page,per_page:c[`per-page`],action_type:c[`action-type`],status:c.status};if(c.dryRun){a({command:`cf email-security bulk-actions list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/email-security/investigate/bulk`,pathParams:{},query:s,bodyKind:`none`});return}let l=await r(c),u=c.local?e:await n();c.accountId=u,i(await o(`Loading`,async()=>l.emailSecurity.bulkActions.list({account_id:u,...s})),{successLabel:`Loaded`})})};function se(e){return e.usage(`$0 email-security bulk-actions messages list
|
|
47
46
|
|
|
48
|
-
|
|
47
|
+
Returns the individual messages associated with a bulk action job, including their processing status.`).option(`job-id`,{type:`string`,description:`Identifier of the bulk action job whose messages to list.`,demandOption:!0}).option(`page`,{type:`number`,description:`Current page within paginated list of results.`}).option(`per-page`,{type:`number`,description:`The number of results per page. Maximum value is 1000.`}).option(`status`,{type:`string`,description:`Filter the job's messages by their processing status.`,choices:[`PENDING`,`PROCESSING`,`COMPLETED`,`FAILED`,`CANCELLED`,`SKIPPED`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const ce={command:`list`,describe:`List messages for a bulk action job`,builder:h(se),handler:async c=>s({command:`email-security bulk-actions messages list`,classification:{safeFlags:[`status`,`dry-run`]}},c,async()=>{let s={page:c.page,per_page:c[`per-page`],status:c.status};if(c.dryRun){a({command:`cf email-security bulk-actions messages list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/email-security/investigate/bulk/${c[`job-id`]==null?`<job-id>`:encodeURIComponent(String(c[`job-id`]))}/messages`,pathParams:{"job-id":String(c[`job-id`]??``)},query:s,bodyKind:`none`});return}let l=await r(c),u=c.local?e:await n();c.accountId=u,i(await o(`Loading`,async()=>l.emailSecurity.bulkActions.messages.list({account_id:u,job_id:c[`job-id`],...s})),{successLabel:`Loaded`})})},le={command:`messages`,describe:`Operations for bulk-actions.messages`,builder:e=>e.command(ce).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},ue={command:`bulk-actions`,describe:`Asynchronous jobs that move or release every message matching a search — create, monitor, and manage bulk jobs`,builder:e=>e.command(Y).command(Z).command(ne).command(ie).command(oe).command(le).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function de(e){return e.usage(`$0 email-security content-policies batch
|
|
49
48
|
|
|
50
|
-
|
|
49
|
+
Executes multiple content policy operations atomically: delete, partially update, replace, and create content policies in a single request. All four operation arrays (deletes, patches, puts, posts) are required and executed in order. Send empty arrays for unused operations.`).option(`deletes`,{type:`string`,description:`IDs of the content policies to delete. Provide as a JSON array of objects or @path/to/file.json.`}).option(`patches`,{type:`string`,description:`Partial updates to apply — each entry carries the policy's ID and only the fields to change. Provide as a JSON array of objects or @path/to/file.json.`}).option(`posts`,{type:`string`,description:`Content policies to create. Provide as a JSON array of objects or @path/to/file.json.`}).option(`puts`,{type:`string`,description:`Full replacements to apply — each entry carries the policy's ID and every field of its new value. Provide as a JSON array of objects or @path/to/file.json.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`force`,{type:`boolean`,alias:`f`,description:`Skip confirmation (useful in scripts and CI)`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const fe={command:`batch`,describe:`Batch content policy operations`,builder:de,handler:async d=>s({command:`email-security content-policies batch`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},d,async()=>{if(d.dryRun){a({command:`cf email-security content-policies batch`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/email-security/settings/content_policies/batch`,pathParams:{},bodyKind:`json`,body:d.body===void 0?u({deletes:l(d.deletes,`deletes`),patches:l(d.patches,`patches`),posts:l(d.posts,`posts`),puts:l(d.puts,`puts`)}):c(d.body)});return}let s=await r(d),f=d.local?e:await n();if(d.accountId=f,!await m({force:!!d.force,message:`This operation may delete the selected content policies and stop evaluating emails against their patterns.`})){process.stderr.write(`Aborted.
|
|
50
|
+
`);return}if(d.body){let e=c(d.body);i(await o(`Deleting`,async()=>s.emailSecurity.contentPolicies.batch({...e,account_id:f})),{successLabel:`Deleted`});return}if(d.deletes===void 0)throw Error(`--deletes is required (or pass --body with this field set).`);if(d.patches===void 0)throw Error(`--patches is required (or pass --body with this field set).`);if(d.posts===void 0)throw Error(`--posts is required (or pass --body with this field set).`);if(d.puts===void 0)throw Error(`--puts is required (or pass --body with this field set).`);let p=u({deletes:l(d.deletes,`deletes`),patches:l(d.patches,`patches`),posts:l(d.posts,`posts`),puts:l(d.puts,`puts`)});i(await o(`Deleting`,async()=>s.emailSecurity.contentPolicies.batch({...p,account_id:f})),{successLabel:`Deleted`})})};function pe(e){return e.usage(`$0 email-security content-policies create
|
|
51
51
|
|
|
52
|
-
|
|
53
|
-
`);return}if(d.body){let e=c(d.body);i(await o(`Deleting`,async()=>s.emailSecurity.domains.batch({...e,account_id:f})),{successLabel:`Deleted`});return}if(d.deletes===void 0)throw Error(`--deletes is required (or pass --body with this field set).`);if(d.patches===void 0)throw Error(`--patches is required (or pass --body with this field set).`);if(d.posts===void 0)throw Error(`--posts is required (or pass --body with this field set).`);if(d.puts===void 0)throw Error(`--puts is required (or pass --body with this field set).`);let p=u({deletes:l(d.deletes,`deletes`),patches:l(d.patches,`patches`),posts:l(d.posts,`posts`),puts:l(d.puts,`puts`)});i(await o(`Deleting`,async()=>s.emailSecurity.domains.batch({...p,account_id:f})),{successLabel:`Deleted`})})};function fe(e){return e.usage(`$0 email-security domains create
|
|
52
|
+
Creates a new content policy. Emails whose subject or body matches the pattern will be subject to the configured action.`).option(`enabled`,{type:`boolean`,description:`Whether the policy is active.`}).option(`name`,{type:`string`,description:`Human-readable name of the policy.`}).option(`notes`,{type:`string`,description:`Optional note describing the purpose of the policy.`}).option(`pattern`,{type:`string`,description:`Regular expression the policy matches against.`}).option(`targets`,{type:`string`,array:!0,description:`Parts of the email the pattern is matched against.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Create a content policy.`})}const me={command:`create`,describe:`Create a content policy`,builder:pe,handler:async l=>s({command:`email-security content-policies create`,classification:{safeFlags:[`enabled`,`dry-run`]}},l,async()=>{if(l.dryRun){a({command:`cf email-security content-policies create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/email-security/settings/content_policies`,pathParams:{},bodyKind:`json`,body:l.body===void 0?u({enabled:l.enabled,name:d(l.name,`name`,`text`),notes:d(l.notes,`notes`,`text`),pattern:d(l.pattern,`pattern`,`text`),targets:l.targets}):c(l.body)});return}let s=await r(l),p=l.local?e:await n();if(l.accountId=p,l.body){let e=c(l.body);i(await o(`Creating`,async()=>s.emailSecurity.contentPolicies.create({body:e,account_id:p})),{successLabel:`Created`});return}if(l.enabled===void 0)throw Error(`--enabled is required (or pass --body with this field set).`);if(l.name===void 0&&(l.name=await f(`name`,`Human-readable name of the policy.`)),l.pattern===void 0&&(l.pattern=await f(`pattern`,`Regular expression the policy matches against.`)),l.targets===void 0)throw Error(`--targets is required (or pass --body with this field set).`);let m=u({enabled:l.enabled,name:d(l.name,`name`,`text`),notes:d(l.notes,`notes`,`text`),pattern:d(l.pattern,`pattern`,`text`),targets:l.targets});i(await o(`Creating`,async()=>s.emailSecurity.contentPolicies.create({body:m,account_id:p})),{successLabel:`Created`})})};function he(e){return e.usage(`$0 email-security content-policies delete <policy-id>
|
|
54
53
|
|
|
55
|
-
|
|
54
|
+
Removes a content policy. After deletion, emails will no longer be evaluated against this pattern.`).positional(`policy-id`,{type:`string`,description:`Content policy identifier.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`force`,{type:`boolean`,alias:`f`,description:`Skip confirmation (useful in scripts and CI)`,default:!1})}const ge={command:`delete <policy-id>`,describe:`Delete a content policy`,builder:he,handler:async c=>s({command:`email-security content-policies delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},c,async()=>{if(c.dryRun){a({command:`cf email-security content-policies delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/email-security/settings/content_policies/${c[`policy-id`]==null?`<policy-id>`:encodeURIComponent(String(c[`policy-id`]))}`,pathParams:{"policy-id":String(c[`policy-id`]??``)},bodyKind:`none`});return}let s=await r(c),l=c.local?e:await n();if(c.accountId=l,!await m({force:!!c.force,message:`This operation deletes the content policy and stops evaluating emails against its pattern.`})){process.stderr.write(`Aborted.
|
|
55
|
+
`);return}i(await o(`Deleting`,async()=>s.emailSecurity.contentPolicies.delete({account_id:l,policy_id:c[`policy-id`]})),{successLabel:`Deleted`})})};function _e(e){return e.usage(`$0 email-security content-policies edit <policy-id>
|
|
56
56
|
|
|
57
|
-
|
|
58
|
-
`);return}i(await o(`Deleting`,async()=>s.emailSecurity.domains.delete({account_id:l,domain_id:c[`domain-id`]})),{successLabel:`Deleted`})})};function ge(e){return e.usage(`$0 email-security domains edit <domain-id>
|
|
57
|
+
Updates an existing content policy. Only provided fields will be modified.`).positional(`policy-id`,{type:`string`,description:`Content policy identifier.`,demandOption:!0}).option(`enabled`,{type:`boolean`,description:`Whether the policy is active.`}).option(`name`,{type:`string`,description:`Human-readable name of the policy.`}).option(`notes`,{type:`string`,description:`Optional note describing the purpose of the policy.`}).option(`pattern`,{type:`string`,description:`Regular expression the policy matches against.`}).option(`targets`,{type:`string`,array:!0,description:`Parts of the email the pattern is matched against.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Update a content policy.`})}const ve={command:`edit <policy-id>`,describe:`Update a content policy`,builder:_e,handler:async l=>s({command:`email-security content-policies edit`,classification:{safeFlags:[`enabled`,`dry-run`]}},l,async()=>{if(l.dryRun){a({command:`cf email-security content-policies edit`,method:`PATCH`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/email-security/settings/content_policies/${l[`policy-id`]==null?`<policy-id>`:encodeURIComponent(String(l[`policy-id`]))}`,pathParams:{"policy-id":String(l[`policy-id`]??``)},bodyKind:`json`,body:l.body===void 0?u({enabled:l.enabled,name:d(l.name,`name`,`text`),notes:d(l.notes,`notes`,`text`),pattern:d(l.pattern,`pattern`,`text`),targets:l.targets}):c(l.body)});return}let s=await r(l),f=l.local?e:await n();if(l.accountId=f,l.body){let e=c(l.body);i(await o(`Updating`,async()=>s.emailSecurity.contentPolicies.edit({body:e,account_id:f,policy_id:l[`policy-id`]})),{successLabel:`Updated`});return}let p=u({enabled:l.enabled,name:d(l.name,`name`,`text`),notes:d(l.notes,`notes`,`text`),pattern:d(l.pattern,`pattern`,`text`),targets:l.targets});i(await o(`Updating`,async()=>s.emailSecurity.contentPolicies.edit({body:p,account_id:f,policy_id:l[`policy-id`]})),{successLabel:`Updated`})})};function ye(e){return e.usage(`$0 email-security content-policies get <policy-id>
|
|
59
58
|
|
|
60
|
-
|
|
59
|
+
Retrieves details for a specific content policy including its pattern, targets, and metadata.`).positional(`policy-id`,{type:`string`,description:`Content policy identifier.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const be={command:`get <policy-id>`,describe:`Get a content policy`,builder:ye,handler:async c=>s({command:`email-security content-policies get`,classification:{safeFlags:[`dry-run`]}},c,async()=>{if(c.dryRun){a({command:`cf email-security content-policies get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/email-security/settings/content_policies/${c[`policy-id`]==null?`<policy-id>`:encodeURIComponent(String(c[`policy-id`]))}`,pathParams:{"policy-id":String(c[`policy-id`]??``)},bodyKind:`none`});return}let s=await r(c),l=c.local?e:await n();c.accountId=l,i(await o(`Loading`,async()=>s.emailSecurity.contentPolicies.get({account_id:l,policy_id:c[`policy-id`]})),{successLabel:`Loaded`})})};function xe(e){return e.usage(`$0 email-security content-policies list
|
|
61
60
|
|
|
62
|
-
|
|
61
|
+
Returns a paginated list of content policies. These policies match against the subject or body of emails using a pattern. Supports filtering by name or enabled status, and searching across name and pattern fields.`).option(`page`,{type:`number`,description:`Current page within paginated list of results.`}).option(`per-page`,{type:`number`,description:`The number of results per page. Maximum value is 1000.`}).option(`search`,{type:`string`,description:`Search term for filtering records. Behavior may change.`}).option(`order`,{type:`string`,description:`Field to sort by.`,choices:[`name`,`created_at`]}).option(`direction`,{type:`string`,description:`The sorting direction.`,choices:[`asc`,`desc`]}).option(`enabled`,{type:`boolean`,description:`Filter by enabled status.`}).option(`name`,{type:`string`,description:`Filter by exact policy name.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const Se={command:`list`,describe:`List content policies`,builder:h(xe),handler:async c=>s({command:`email-security content-policies list`,classification:{safeFlags:[`order`,`direction`,`enabled`,`dry-run`]}},c,async()=>{let s={page:c.page,per_page:c[`per-page`],search:c.search,order:c.order,direction:c.direction,enabled:c.enabled,name:c.name};if(c.dryRun){a({command:`cf email-security content-policies list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/email-security/settings/content_policies`,pathParams:{},query:s,bodyKind:`none`});return}let l=await r(c),u=c.local?e:await n();c.accountId=u,i(await o(`Loading`,async()=>l.emailSecurity.contentPolicies.list({account_id:u,...s})),{successLabel:`Loaded`})})},Ce={command:`content-policies`,describe:`Operations for content-policies`,builder:e=>e.command(fe).command(me).command(ge).command(ve).command(be).command(Se).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function we(e){return e.usage(`$0 email-security domains batch
|
|
63
62
|
|
|
64
|
-
|
|
63
|
+
Executes multiple domain operations in a single request. All four operation arrays (deletes, patches, puts, posts) are required and executed in order. Send empty arrays for unused operations.`).option(`deletes`,{type:`string`,description:`IDs of the domains to remove protection from. Provide as a JSON array of objects or @path/to/file.json.`}).option(`patches`,{type:`string`,description:`Partial updates to apply — each entry carries the domain's ID and only the fields to change. Provide as a JSON array of objects or @path/to/file.json.`}).option(`posts`,{type:`string`,description:`Domains to add protection for. Provide as a JSON array of objects or @path/to/file.json.`}).option(`puts`,{type:`string`,description:`Full replacements to apply — each entry carries the domain's ID and every field of its new value. Provide as a JSON array of objects or @path/to/file.json.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`force`,{type:`boolean`,alias:`f`,description:`Skip confirmation (useful in scripts and CI)`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const Te={command:`batch`,describe:`Batch domain operations`,builder:we,handler:async d=>s({command:`email-security domains batch`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},d,async()=>{if(d.dryRun){a({command:`cf email-security domains batch`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/email-security/settings/domains/batch`,pathParams:{},bodyKind:`json`,body:d.body===void 0?u({deletes:l(d.deletes,`deletes`),patches:l(d.patches,`patches`),posts:l(d.posts,`posts`),puts:l(d.puts,`puts`)}):c(d.body)});return}let s=await r(d),f=d.local?e:await n();if(d.accountId=f,!await m({force:!!d.force,message:`This operation may permanently delete protection for the selected email domains. Emails for those domains will no longer be processed by Email Security.`})){process.stderr.write(`Aborted.
|
|
64
|
+
`);return}if(d.body){let e=c(d.body);i(await o(`Deleting`,async()=>s.emailSecurity.domains.batch({...e,account_id:f})),{successLabel:`Deleted`});return}if(d.deletes===void 0)throw Error(`--deletes is required (or pass --body with this field set).`);if(d.patches===void 0)throw Error(`--patches is required (or pass --body with this field set).`);if(d.posts===void 0)throw Error(`--posts is required (or pass --body with this field set).`);if(d.puts===void 0)throw Error(`--puts is required (or pass --body with this field set).`);let p=u({deletes:l(d.deletes,`deletes`),patches:l(d.patches,`patches`),posts:l(d.posts,`posts`),puts:l(d.puts,`puts`)});i(await o(`Deleting`,async()=>s.emailSecurity.domains.batch({...p,account_id:f})),{successLabel:`Deleted`})})};function Ee(e){return e.usage(`$0 email-security domains create
|
|
65
65
|
|
|
66
|
-
|
|
66
|
+
Protects a new email domain by adding it to Email Security. Accepts a flat configuration object covering all delivery modes. Returns the newly created domain configuration.`).option(`allowed-delivery-modes`,{type:`string`,array:!0,description:`Delivery modes to onboard the domain through.`}).option(`domain`,{type:`string`,description:`The email domain to protect.`}).option(`drop-dispositions`,{type:`string`,array:!0,description:'Dispositions to drop instead of delivering, e.g. `["MALICIOUS", "SPAM"]`.'}).option(`integration-id`,{type:`string`,description:`Identifier of the CASB integration that authorizes this domain. The integration also enables API scanning, post-delivery actions, and directory sync.`}).option(`ip-restrictions`,{type:`string`,array:!0,description:`Source IP ranges mail is accepted from. Any other source is rejected.`}).option(`lookback-hops`,{type:`number`,description:`Number of hops to trace back through received headers when reconstructing the original message (1-20).`}).option(`regions`,{type:`string`,array:!0,description:'Regions that process messages for this domain, e.g. `["GLOBAL"]` or `["US"]`.'}).option(`require-tls-inbound`,{type:`boolean`,description:`Require TLS on inbound connections.`}).option(`require-tls-outbound`,{type:`boolean`,description:`Require TLS on outbound connections.`}).option(`transport`,{type:`string`,description:"The mail transport hostname for MX/Inline delivery — the MX record Cloudflare delivers email to (e.g. `mx.example.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 De={command:`create`,describe:`Add a new email domain`,builder:Ee,handler:async l=>s({command:`email-security domains create`,classification:{safeFlags:[`require-tls-inbound`,`require-tls-outbound`,`dry-run`]}},l,async()=>{if(l.dryRun){a({command:`cf email-security domains create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/email-security/settings/domains`,pathParams:{},bodyKind:`json`,body:l.body===void 0?u({allowed_delivery_modes:l[`allowed-delivery-modes`],domain:d(l.domain,`domain`,`text`),drop_dispositions:l[`drop-dispositions`],integration_id:d(l[`integration-id`],`integration-id`,`text`),ip_restrictions:l[`ip-restrictions`],lookback_hops:l[`lookback-hops`],regions:l.regions,require_tls_inbound:l[`require-tls-inbound`],require_tls_outbound:l[`require-tls-outbound`],transport:d(l.transport,`transport`,`text`)}):c(l.body)});return}let s=await r(l),p=l.local?e:await n();if(l.accountId=p,l.body){let e=c(l.body);i(await o(`Creating`,async()=>s.emailSecurity.domains.create({body:e,account_id:p})),{successLabel:`Created`});return}if(l[`allowed-delivery-modes`]===void 0)throw Error(`--allowed-delivery-modes is required (or pass --body with this field set).`);if(l.domain===void 0&&(l.domain=await f(`domain`,`The email domain to protect.`)),l[`drop-dispositions`]===void 0)throw Error(`--drop-dispositions is required (or pass --body with this field set).`);if(l[`ip-restrictions`]===void 0)throw Error(`--ip-restrictions is required (or pass --body with this field set).`);if(l.regions===void 0)throw Error(`--regions is required (or pass --body with this field set).`);let m=u({allowed_delivery_modes:l[`allowed-delivery-modes`],domain:d(l.domain,`domain`,`text`),drop_dispositions:l[`drop-dispositions`],integration_id:d(l[`integration-id`],`integration-id`,`text`),ip_restrictions:l[`ip-restrictions`],lookback_hops:l[`lookback-hops`],regions:l.regions,require_tls_inbound:l[`require-tls-inbound`],require_tls_outbound:l[`require-tls-outbound`],transport:d(l.transport,`transport`,`text`)});i(await o(`Creating`,async()=>s.emailSecurity.domains.create({body:m,account_id:p})),{successLabel:`Created`})})};function Oe(e){return e.usage(`$0 email-security domains delete <domain-id>
|
|
67
67
|
|
|
68
|
-
|
|
68
|
+
Removes email security protection from a domain. After deletion, emails for this domain will no longer be processed by Email Security. This action cannot be undone.`).positional(`domain-id`,{type:`string`,description:`Domain identifier.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`force`,{type:`boolean`,alias:`f`,description:`Skip confirmation (useful in scripts and CI)`,default:!1})}const ke={command:`delete <domain-id>`,describe:`Unprotect an email domain`,builder:Oe,handler:async c=>s({command:`email-security domains delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},c,async()=>{if(c.dryRun){a({command:`cf email-security domains delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/email-security/settings/domains/${c[`domain-id`]==null?`<domain-id>`:encodeURIComponent(String(c[`domain-id`]))}`,pathParams:{"domain-id":String(c[`domain-id`]??``)},bodyKind:`none`});return}let s=await r(c),l=c.local?e:await n();if(c.accountId=l,!await m({force:!!c.force,message:`This operation permanently deletes protection for the email domain. Emails for this domain will no longer be processed by Email Security.`})){process.stderr.write(`Aborted.
|
|
69
|
+
`);return}i(await o(`Deleting`,async()=>s.emailSecurity.domains.delete({account_id:l,domain_id:c[`domain-id`]})),{successLabel:`Deleted`})})};function Ae(e){return e.usage(`$0 email-security domains edit <domain-id>
|
|
69
70
|
|
|
70
|
-
|
|
71
|
+
Updates configuration for a protected email domain. Only provided fields will be modified. Changes affect delivery mode, security settings, and regional processing.`).positional(`domain-id`,{type:`string`,description:`Domain identifier.`,demandOption:!0}).option(`allowed-delivery-modes`,{type:`string`,array:!0,description:`Delivery modes to onboard the domain through.`}).option(`drop-dispositions`,{type:`string`,array:!0,description:'Dispositions to drop instead of delivering, e.g. `["MALICIOUS", "SPAM"]`.'}).option(`integration-id`,{type:`string`,description:`Identifier of the CASB integration that authorizes this domain. The integration also enables API scanning, post-delivery actions, and directory sync.`}).option(`ip-restrictions`,{type:`string`,array:!0,description:`Source IP ranges mail is accepted from. Any other source is rejected.`}).option(`lookback-hops`,{type:`number`,description:`Number of hops to trace back through received headers when reconstructing the original message (1-20).`}).option(`regions`,{type:`string`,array:!0,description:'Regions that process messages for this domain, e.g. `["GLOBAL"]` or `["US"]`.'}).option(`require-tls-inbound`,{type:`boolean`,description:`Require TLS on inbound connections.`}).option(`require-tls-outbound`,{type:`boolean`,description:`Require TLS on outbound connections.`}).option(`transport`,{type:`string`,description:"The mail transport hostname for MX/Inline delivery — the MX record Cloudflare delivers email to (e.g. `mx.example.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 je={command:`edit <domain-id>`,describe:`Update an email domain`,builder:Ae,handler:async l=>s({command:`email-security domains edit`,classification:{safeFlags:[`require-tls-inbound`,`require-tls-outbound`,`dry-run`]}},l,async()=>{if(l.dryRun){a({command:`cf email-security domains edit`,method:`PATCH`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/email-security/settings/domains/${l[`domain-id`]==null?`<domain-id>`:encodeURIComponent(String(l[`domain-id`]))}`,pathParams:{"domain-id":String(l[`domain-id`]??``)},bodyKind:`json`,body:l.body===void 0?u({allowed_delivery_modes:l[`allowed-delivery-modes`],drop_dispositions:l[`drop-dispositions`],integration_id:d(l[`integration-id`],`integration-id`,`text`),ip_restrictions:l[`ip-restrictions`],lookback_hops:l[`lookback-hops`],regions:l.regions,require_tls_inbound:l[`require-tls-inbound`],require_tls_outbound:l[`require-tls-outbound`],transport:d(l.transport,`transport`,`text`)}):c(l.body)});return}let s=await r(l),f=l.local?e:await n();if(l.accountId=f,l.body){let e=c(l.body);i(await o(`Updating`,async()=>s.emailSecurity.domains.edit({body:e,account_id:f,domain_id:l[`domain-id`]})),{successLabel:`Updated`});return}let p=u({allowed_delivery_modes:l[`allowed-delivery-modes`],drop_dispositions:l[`drop-dispositions`],integration_id:d(l[`integration-id`],`integration-id`,`text`),ip_restrictions:l[`ip-restrictions`],lookback_hops:l[`lookback-hops`],regions:l.regions,require_tls_inbound:l[`require-tls-inbound`],require_tls_outbound:l[`require-tls-outbound`],transport:d(l.transport,`transport`,`text`)});i(await o(`Updating`,async()=>s.emailSecurity.domains.edit({body:p,account_id:f,domain_id:l[`domain-id`]})),{successLabel:`Updated`})})};function Me(e){return e.usage(`$0 email-security domains get <domain-id>
|
|
71
72
|
|
|
72
|
-
|
|
73
|
-
`);return}i(await o(`Deleting`,async()=>s.emailSecurity.impersonationRegistry.delete({account_id:l,impersonation_registry_id:c[`impersonation-registry-id`]})),{successLabel:`Deleted`})})};function Me(e){return e.usage(`$0 email-security impersonation-registry edit <impersonation-registry-id>
|
|
73
|
+
Retrieves detailed information for a specific protected email domain including its delivery configuration, SPF/DMARC status, and authorization state.`).positional(`domain-id`,{type:`string`,description:`Domain identifier.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const Ne={command:`get <domain-id>`,describe:`Get an email domain`,builder:Me,handler:async c=>s({command:`email-security domains get`,classification:{safeFlags:[`dry-run`]}},c,async()=>{if(c.dryRun){a({command:`cf email-security domains get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/email-security/settings/domains/${c[`domain-id`]==null?`<domain-id>`:encodeURIComponent(String(c[`domain-id`]))}`,pathParams:{"domain-id":String(c[`domain-id`]??``)},bodyKind:`none`});return}let s=await r(c),l=c.local?e:await n();c.accountId=l,i(await o(`Loading`,async()=>s.emailSecurity.domains.get({account_id:l,domain_id:c[`domain-id`]})),{successLabel:`Loaded`})})};function Pe(e){return e.usage(`$0 email-security domains list
|
|
74
74
|
|
|
75
|
-
|
|
75
|
+
Returns a paginated list of email domains protected by Email Security. Includes domain configuration, delivery modes, and authorization status. Supports filtering by delivery mode and integration ID.`).option(`page`,{type:`number`,description:`Current page within paginated list of results.`}).option(`per-page`,{type:`number`,description:`The number of results per page. Maximum value is 1000.`}).option(`search`,{type:`string`,description:`Search term for filtering records. Behavior may change.`}).option(`order`,{type:`string`,description:`Field to sort by.`,choices:[`domain`,`created_at`]}).option(`direction`,{type:`string`,description:`The sorting direction.`,choices:[`asc`,`desc`]}).option(`allowed-delivery-mode`,{type:`string`,description:`Delivery mode to filter by.`,choices:[`DIRECT`,`BCC`,`JOURNAL`,`API`,`RETRO_SCAN`]}).option(`domain`,{type:`string`,description:`Domain names to filter by.`}).option(`active-delivery-mode`,{type:`string`,description:`Currently active delivery mode to filter by.`,choices:[`DIRECT`,`BCC`,`JOURNAL`,`API`,`RETRO_SCAN`]}).option(`integration-id`,{type:`string`,description:`Integration ID to filter by.`}).option(`status`,{type:`string`,description:`Filters response to domains with the provided status.`,choices:[`PENDING`,`ACTIVE`,`FAILED`,`TIMEOUT`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const Fe={command:`list`,describe:`List protected email domains`,builder:h(Pe),handler:async c=>s({command:`email-security domains list`,classification:{safeFlags:[`order`,`direction`,`allowed-delivery-mode`,`active-delivery-mode`,`status`,`dry-run`]}},c,async()=>{let s={page:c.page,per_page:c[`per-page`],search:c.search,order:c.order,direction:c.direction,allowed_delivery_mode:c[`allowed-delivery-mode`],domain:c.domain,active_delivery_mode:c[`active-delivery-mode`],integration_id:c[`integration-id`],status:c.status};if(c.dryRun){a({command:`cf email-security domains list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/email-security/settings/domains`,pathParams:{},query:s,bodyKind:`none`});return}let l=await r(c),u=c.local?e:await n();c.accountId=u,i(await o(`Loading`,async()=>l.emailSecurity.domains.list({account_id:u,...s})),{successLabel:`Loaded`})})};function Ie(e){return e.usage(`$0 email-security domains update <domain-id>
|
|
76
76
|
|
|
77
|
-
|
|
77
|
+
Replaces all mutable fields of a protected email domain in a single atomic operation. Unlike PATCH, all non-computed fields are required.`).positional(`domain-id`,{type:`string`,description:`Domain identifier.`,demandOption:!0}).option(`allowed-delivery-modes`,{type:`string`,array:!0,description:`Delivery modes to onboard the domain through.`}).option(`drop-dispositions`,{type:`string`,array:!0,description:'Dispositions to drop instead of delivering, e.g. `["MALICIOUS", "SPAM"]`.'}).option(`integration-id`,{type:`string`,description:`Identifier of the CASB integration that authorizes this domain. The integration also enables API scanning, post-delivery actions, and directory sync.`}).option(`ip-restrictions`,{type:`string`,array:!0,description:`Source IP ranges mail is accepted from. Any other source is rejected.`}).option(`lookback-hops`,{type:`number`,description:`Number of hops to trace back through received headers when reconstructing the original message (1-20).`}).option(`regions`,{type:`string`,array:!0,description:'Regions that process messages for this domain, e.g. `["GLOBAL"]` or `["US"]`.'}).option(`require-tls-inbound`,{type:`boolean`,description:`Require TLS on inbound connections.`}).option(`require-tls-outbound`,{type:`boolean`,description:`Require TLS on outbound connections.`}).option(`transport`,{type:`string`,description:"The mail transport hostname for MX/Inline delivery — the MX record Cloudflare delivers email to (e.g. `mx.example.com`)."}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:"Request body for replacing an email domain. The `domain` field is intentionally absent — the domain name is immutable after creation. "})}const Le={command:`update <domain-id>`,describe:`Replace an email domain`,builder:Ie,handler:async l=>s({command:`email-security domains update`,classification:{safeFlags:[`require-tls-inbound`,`require-tls-outbound`,`dry-run`]}},l,async()=>{if(l.dryRun){a({command:`cf email-security domains update`,method:`PUT`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/email-security/settings/domains/${l[`domain-id`]==null?`<domain-id>`:encodeURIComponent(String(l[`domain-id`]))}`,pathParams:{"domain-id":String(l[`domain-id`]??``)},bodyKind:`json`,body:l.body===void 0?u({allowed_delivery_modes:l[`allowed-delivery-modes`],drop_dispositions:l[`drop-dispositions`],integration_id:d(l[`integration-id`],`integration-id`,`text`),ip_restrictions:l[`ip-restrictions`],lookback_hops:l[`lookback-hops`],regions:l.regions,require_tls_inbound:l[`require-tls-inbound`],require_tls_outbound:l[`require-tls-outbound`],transport:d(l.transport,`transport`,`text`)}):c(l.body)});return}let s=await r(l),f=l.local?e:await n();if(l.accountId=f,l.body){let e=c(l.body);i(await o(`Updating`,async()=>s.emailSecurity.domains.update({body:e,account_id:f,domain_id:l[`domain-id`]})),{successLabel:`Updated`});return}if(l[`allowed-delivery-modes`]===void 0)throw Error(`--allowed-delivery-modes is required (or pass --body with this field set).`);if(l[`drop-dispositions`]===void 0)throw Error(`--drop-dispositions is required (or pass --body with this field set).`);if(l[`ip-restrictions`]===void 0)throw Error(`--ip-restrictions is required (or pass --body with this field set).`);if(l.regions===void 0)throw Error(`--regions is required (or pass --body with this field set).`);let p=u({allowed_delivery_modes:l[`allowed-delivery-modes`],drop_dispositions:l[`drop-dispositions`],integration_id:d(l[`integration-id`],`integration-id`,`text`),ip_restrictions:l[`ip-restrictions`],lookback_hops:l[`lookback-hops`],regions:l.regions,require_tls_inbound:l[`require-tls-inbound`],require_tls_outbound:l[`require-tls-outbound`],transport:d(l.transport,`transport`,`text`)});i(await o(`Updating`,async()=>s.emailSecurity.domains.update({body:p,account_id:f,domain_id:l[`domain-id`]})),{successLabel:`Updated`})})};function Re(e){return e.usage(`$0 email-security domains verification get <domain-id>
|
|
78
78
|
|
|
79
|
-
Returns
|
|
79
|
+
Returns the DNS TXT record information when the domain ownership isn't verified through Cloudflare zone ownership or CASB integration.`).positional(`domain-id`,{type:`string`,description:`Domain identifier.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const ze={command:`get <domain-id>`,describe:`Get domain verification details`,builder:Re,handler:async c=>s({command:`email-security domains verification get`,classification:{safeFlags:[`dry-run`]}},c,async()=>{if(c.dryRun){a({command:`cf email-security domains verification get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/email-security/settings/domains/${c[`domain-id`]==null?`<domain-id>`:encodeURIComponent(String(c[`domain-id`]))}/verification`,pathParams:{"domain-id":String(c[`domain-id`]??``)},bodyKind:`none`});return}let s=await r(c),l=c.local?e:await n();c.accountId=l,i(await o(`Loading`,async()=>s.emailSecurity.domains.verification.get({account_id:l,domain_id:c[`domain-id`]})),{successLabel:`Loaded`})})},Be={command:`verification`,describe:`Operations for domains.verification`,builder:e=>e.command(ze).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},Ve={command:`domains`,describe:`Operations for domains`,builder:e=>e.command(Te).command(De).command(ke).command(je).command(Ne).command(Fe).command(Le).command(Be).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function He(e){return e.usage(`$0 email-security impersonation-registry create
|
|
80
80
|
|
|
81
|
-
|
|
81
|
+
Creates a new entry in the impersonation registry to protect against impersonation. Emails attempting to impersonate this identity will be flagged. Supports regex patterns for flexible email matching.`).option(`comments`,{type:`string`,description:`Optional note describing the entry.`}).option(`directory-id`,{type:`number`,description:`Identifier of the directory the entry was synced from, when directory-synced.`}).option(`directory-node-id`,{type:`number`,description:`Identifier of the directory node the entry was synced from, when directory-synced.`}).option(`email`,{type:`string`,description:`Email address (or pattern) of the protected identity.`}).option(`external-directory-node-id`,{type:`string`,description:`Deprecated. External identifier of the directory node.`}).option(`is-email-regex`,{type:`boolean`,description:"Whether `email` is a regular expression instead of a literal address."}).option(`name`,{type:`string`,description:`Display name of the protected identity.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Create an impersonation registry entry.`})}const Ue={command:`create`,describe:`Create impersonation registry entry`,builder:He,handler:async l=>s({command:`email-security impersonation-registry create`,classification:{safeFlags:[`is-email-regex`,`dry-run`]}},l,async()=>{if(l.dryRun){a({command:`cf email-security impersonation-registry create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/email-security/settings/impersonation_registry`,pathParams:{},bodyKind:`json`,body:l.body===void 0?u({comments:d(l.comments,`comments`,`text`),directory_id:l[`directory-id`],directory_node_id:l[`directory-node-id`],email:d(l.email,`email`,`text`),external_directory_node_id:d(l[`external-directory-node-id`],`external-directory-node-id`,`text`),is_email_regex:l[`is-email-regex`],name:d(l.name,`name`,`text`)}):c(l.body)});return}let s=await r(l),p=l.local?e:await n();if(l.accountId=p,l.body){let e=c(l.body);i(await o(`Creating`,async()=>s.emailSecurity.impersonationRegistry.create({...e,account_id:p})),{successLabel:`Created`});return}if(l.email===void 0&&(l.email=await f(`email`,`Email address (or pattern) of the protected identity.`)),l[`is-email-regex`]===void 0)throw Error(`--is-email-regex is required (or pass --body with this field set).`);l.name===void 0&&(l.name=await f(`name`,`Display name of the protected identity.`));let m=u({comments:d(l.comments,`comments`,`text`),directory_id:l[`directory-id`],directory_node_id:l[`directory-node-id`],email:d(l.email,`email`,`text`),external_directory_node_id:d(l[`external-directory-node-id`],`external-directory-node-id`,`text`),is_email_regex:l[`is-email-regex`],name:d(l.name,`name`,`text`)});i(await o(`Creating`,async()=>s.emailSecurity.impersonationRegistry.create({...m,account_id:p})),{successLabel:`Created`})})};function We(e){return e.usage(`$0 email-security impersonation-registry delete <impersonation-registry-id>
|
|
82
82
|
|
|
83
|
-
|
|
83
|
+
Removes an entry from the impersonation registry. After deletion, this identity will no longer be protected from impersonation.`).positional(`impersonation-registry-id`,{type:`string`,description:`Impersonation registry entry identifier.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`force`,{type:`boolean`,alias:`f`,description:`Skip confirmation (useful in scripts and CI)`,default:!1})}const Ge={command:`delete <impersonation-registry-id>`,describe:`Delete an impersonation registry entry`,builder:We,handler:async c=>s({command:`email-security impersonation-registry delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},c,async()=>{if(c.dryRun){a({command:`cf email-security impersonation-registry delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/email-security/settings/impersonation_registry/${c[`impersonation-registry-id`]==null?`<impersonation-registry-id>`:encodeURIComponent(String(c[`impersonation-registry-id`]))}`,pathParams:{"impersonation-registry-id":String(c[`impersonation-registry-id`]??``)},bodyKind:`none`});return}let s=await r(c),l=c.local?e:await n();if(c.accountId=l,!await m({force:!!c.force,message:`This operation deletes the impersonation registry entry and stops protecting the identity from impersonation.`})){process.stderr.write(`Aborted.
|
|
84
|
+
`);return}i(await o(`Deleting`,async()=>s.emailSecurity.impersonationRegistry.delete({account_id:l,impersonation_registry_id:c[`impersonation-registry-id`]})),{successLabel:`Deleted`})})};function Ke(e){return e.usage(`$0 email-security impersonation-registry edit <impersonation-registry-id>
|
|
84
85
|
|
|
85
|
-
|
|
86
|
-
`);return}i(await o(`Deleting`,async()=>s.emailSecurity.investigate.bulk.delete({account_id:l,job_id:c[`job-id`]})),{successLabel:`Deleted`})})};function Je(e){return e.usage(`$0 email-security investigate bulk get <job-id>
|
|
86
|
+
Updates an existing impersonation registry entry. Only provided fields will be modified. Directory-synced entries can't be updated.`).positional(`impersonation-registry-id`,{type:`string`,description:`Impersonation registry entry identifier.`,demandOption:!0}).option(`comments`,{type:`string`,description:`Optional note describing the entry.`}).option(`directory-id`,{type:`number`,description:`Identifier of the directory the entry was synced from, when directory-synced.`}).option(`directory-node-id`,{type:`number`,description:`Identifier of the directory node the entry was synced from, when directory-synced.`}).option(`email`,{type:`string`,description:`Email address (or pattern) of the protected identity.`}).option(`external-directory-node-id`,{type:`string`,description:`Deprecated. External identifier of the directory node.`}).option(`is-email-regex`,{type:`boolean`,description:"Whether `email` is a regular expression instead of a literal address."}).option(`name`,{type:`string`,description:`Display name of the protected identity.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Update an impersonation registry entry.`})}const qe={command:`edit <impersonation-registry-id>`,describe:`Update an impersonation registry entry`,builder:Ke,handler:async l=>s({command:`email-security impersonation-registry edit`,classification:{safeFlags:[`is-email-regex`,`dry-run`]}},l,async()=>{if(l.dryRun){a({command:`cf email-security impersonation-registry edit`,method:`PATCH`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/email-security/settings/impersonation_registry/${l[`impersonation-registry-id`]==null?`<impersonation-registry-id>`:encodeURIComponent(String(l[`impersonation-registry-id`]))}`,pathParams:{"impersonation-registry-id":String(l[`impersonation-registry-id`]??``)},bodyKind:`json`,body:l.body===void 0?u({comments:d(l.comments,`comments`,`text`),directory_id:l[`directory-id`],directory_node_id:l[`directory-node-id`],email:d(l.email,`email`,`text`),external_directory_node_id:d(l[`external-directory-node-id`],`external-directory-node-id`,`text`),is_email_regex:l[`is-email-regex`],name:d(l.name,`name`,`text`)}):c(l.body)});return}let s=await r(l),f=l.local?e:await n();if(l.accountId=f,l.body){let e=c(l.body);i(await o(`Updating`,async()=>s.emailSecurity.impersonationRegistry.edit({...e,account_id:f,impersonation_registry_id:l[`impersonation-registry-id`]})),{successLabel:`Updated`});return}let p=u({comments:d(l.comments,`comments`,`text`),directory_id:l[`directory-id`],directory_node_id:l[`directory-node-id`],email:d(l.email,`email`,`text`),external_directory_node_id:d(l[`external-directory-node-id`],`external-directory-node-id`,`text`),is_email_regex:l[`is-email-regex`],name:d(l.name,`name`,`text`)});i(await o(`Updating`,async()=>s.emailSecurity.impersonationRegistry.edit({...p,account_id:f,impersonation_registry_id:l[`impersonation-registry-id`]})),{successLabel:`Updated`})})};function Je(e){return e.usage(`$0 email-security impersonation-registry get <impersonation-registry-id>
|
|
87
87
|
|
|
88
|
-
|
|
88
|
+
Retrieves details for a specific impersonation registry entry including the protected identity, email pattern, and synchronization source if directory-synced.`).positional(`impersonation-registry-id`,{type:`string`,description:`Impersonation registry entry identifier.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const Ye={command:`get <impersonation-registry-id>`,describe:`Get an impersonation registry entry`,builder:Je,handler:async c=>s({command:`email-security impersonation-registry get`,classification:{safeFlags:[`dry-run`]}},c,async()=>{if(c.dryRun){a({command:`cf email-security impersonation-registry get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/email-security/settings/impersonation_registry/${c[`impersonation-registry-id`]==null?`<impersonation-registry-id>`:encodeURIComponent(String(c[`impersonation-registry-id`]))}`,pathParams:{"impersonation-registry-id":String(c[`impersonation-registry-id`]??``)},bodyKind:`none`});return}let s=await r(c),l=c.local?e:await n();c.accountId=l,i(await o(`Loading`,async()=>s.emailSecurity.impersonationRegistry.get({account_id:l,impersonation_registry_id:c[`impersonation-registry-id`]})),{successLabel:`Loaded`})})};function Xe(e){return e.usage(`$0 email-security impersonation-registry list
|
|
89
89
|
|
|
90
|
-
Returns a paginated list of
|
|
90
|
+
Returns a paginated list of protected identities in the impersonation registry. These entries define identities and email addresses to protect from impersonation attacks. Can be manually added or automatically synced from directory integrations.`).option(`page`,{type:`number`,description:`Current page within paginated list of results.`}).option(`per-page`,{type:`number`,description:`The number of results per page. Maximum value is 1000.`}).option(`search`,{type:`string`,description:`Search term for filtering records. Behavior may change.`}).option(`order`,{type:`string`,description:`Field to sort by.`,choices:[`name`,`email`,`created_at`]}).option(`direction`,{type:`string`,description:`The sorting direction.`,choices:[`asc`,`desc`]}).option(`provenance`,{type:`string`,description:`Provenance`,choices:[`A1S_INTERNAL`,`SNOOPY-CASB_OFFICE_365`,`SNOOPY-OFFICE_365`,`SNOOPY-GOOGLE_DIRECTORY`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const Ze={command:`list`,describe:`List impersonation registry entries`,builder:h(Xe),handler:async c=>s({command:`email-security impersonation-registry list`,classification:{safeFlags:[`order`,`direction`,`provenance`,`dry-run`]}},c,async()=>{let s={page:c.page,per_page:c[`per-page`],search:c.search,order:c.order,direction:c.direction,provenance:c.provenance};if(c.dryRun){a({command:`cf email-security impersonation-registry list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/email-security/settings/impersonation_registry`,pathParams:{},query:s,bodyKind:`none`});return}let l=await r(c),u=c.local?e:await n();c.accountId=u,i(await o(`Loading`,async()=>l.emailSecurity.impersonationRegistry.list({account_id:u,...s})),{successLabel:`Loaded`})})},Qe={command:`impersonation-registry`,describe:`Operations for impersonation-registry`,builder:e=>e.command(Ue).command(Ge).command(qe).command(Ye).command(Ze).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function $e(e){return e.usage(`$0 email-security investigate action-log list
|
|
91
91
|
|
|
92
|
-
Returns the
|
|
92
|
+
Returns the list of post-delivery actions (moves, quarantine releases, previews, etc.) that have been applied to a specific email message.`).option(`investigate-id`,{type:`string`,description:`Unique identifier for a message retrieved from investigation.`,demandOption:!0}).option(`page`,{type:`number`,description:`Current page within paginated list of results.`}).option(`per-page`,{type:`number`,description:`The number of results per page. Maximum value is 1000.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const et={command:`list`,describe:`List post-delivery actions for a message`,builder:$e,handler:async c=>s({command:`email-security investigate action-log list`,classification:{safeFlags:[`dry-run`]}},c,async()=>{let s={page:c.page,per_page:c[`per-page`]};if(c.dryRun){a({command:`cf email-security investigate action-log list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/email-security/investigate/${c[`investigate-id`]==null?`<investigate-id>`:encodeURIComponent(String(c[`investigate-id`]))}/action_log`,pathParams:{"investigate-id":String(c[`investigate-id`]??``)},query:s,bodyKind:`none`});return}let l=await r(c),u=c.local?e:await n();c.accountId=u,i(await o(`Loading`,async()=>l.emailSecurity.investigate.actionLog.list({account_id:u,investigate_id:c[`investigate-id`],...s})),{successLabel:`Loaded`})})},tt={command:`action-log`,describe:`Operations for investigate.action-log`,builder:e=>e.command(et).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function nt(e){return e.usage(`$0 email-security investigate detections get <investigate-id>
|
|
93
93
|
|
|
94
94
|
Returns detection details such as threat categories and sender information for messages with a detection.`).positional(`investigate-id`,{type:`string`,description:`Unique identifier for a message retrieved from investigation.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const rt={command:`get <investigate-id>`,describe:`Get message detection details`,builder:nt,handler:async c=>s({command:`email-security investigate detections get`,classification:{safeFlags:[`dry-run`]}},c,async()=>{if(c.dryRun){a({command:`cf email-security investigate detections get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/email-security/investigate/${c[`investigate-id`]==null?`<investigate-id>`:encodeURIComponent(String(c[`investigate-id`]))}/detections`,pathParams:{"investigate-id":String(c[`investigate-id`]??``)},bodyKind:`none`});return}let s=await r(c),l=c.local?e:await n();c.accountId=l,i(await o(`Loading`,async()=>s.emailSecurity.investigate.detections.get({account_id:l,investigate_id:c[`investigate-id`]})),{successLabel:`Loaded`})})},it={command:`detections`,describe:`Operations for investigate.detections`,builder:e=>e.command(rt).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function at(e){return e.usage(`$0 email-security investigate get <investigate-id>
|
|
95
95
|
|
|
96
96
|
Retrieves comprehensive details for a specific email message including headers, recipients, sender information, and current quarantine status. Use the investigate_id from search results to fetch detailed information.`).positional(`investigate-id`,{type:`string`,description:`Unique identifier for a message retrieved from investigation.`,demandOption:!0}).option(`submission`,{type:`boolean`,description:`When true, search the submissions datastore only. When false or omitted, search the
|
|
97
97
|
regular datastore only.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const ot={command:`get <investigate-id>`,describe:`Get message details`,builder:at,handler:async c=>s({command:`email-security investigate get`,classification:{safeFlags:[`submission`,`dry-run`]}},c,async()=>{let s={submission:c.submission};if(c.dryRun){a({command:`cf email-security investigate get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/email-security/investigate/${c[`investigate-id`]==null?`<investigate-id>`:encodeURIComponent(String(c[`investigate-id`]))}`,pathParams:{"investigate-id":String(c[`investigate-id`]??``)},query:s,bodyKind:`none`});return}let l=await r(c),u=c.local?e:await n();c.accountId=u,i(await o(`Loading`,async()=>l.emailSecurity.investigate.get({account_id:u,investigate_id:c[`investigate-id`],...s})),{successLabel:`Loaded`})})};function st(e){return e.usage(`$0 email-security investigate list
|
|
98
98
|
|
|
99
|
-
Returns information for each email that matches the provided search parameters.`).option(`start`,{type:`string`,description:"The beginning of the search date range. Defaults to `now - 30 days`. Must not be in the future."}).option(`end`,{type:`string`,description:"The end of the search date range. Defaults to `now`."}).option(`query`,{type:`string`,description:`Space-delimited term matched case-insensitively against message metadata — sender, recipient, subject, attachment names and hashes, and message ID.`}).option(`detections-only`,{type:`boolean`,description:`Whether to include only detections in search results.`}).option(`final-disposition`,{type:`string`,description:`Dispositions to filter by.`,choices:[`MALICIOUS`,`SUSPICIOUS`,`SPOOF`,`SPAM`,`BULK`,`NONE`]}).option(`metric`,{type:`string`,description:`Metric to aggregate the results by
|
|
99
|
+
Returns information for each email that matches the provided search parameters.`).option(`start`,{type:`string`,description:"The beginning of the search date range. Defaults to `now - 30 days`. Must not be in the future."}).option(`end`,{type:`string`,description:"The end of the search date range. Defaults to `now`."}).option(`query`,{type:`string`,description:`Space-delimited term matched case-insensitively against message metadata — sender, recipient, subject, attachment names and hashes, and message ID.`}).option(`detections-only`,{type:`boolean`,description:`Whether to include only detections in search results.`}).option(`final-disposition`,{type:`string`,description:`Dispositions to filter by.`,choices:[`MALICIOUS`,`SUSPICIOUS`,`SPOOF`,`SPAM`,`BULK`,`NONE`]}).option(`metric`,{type:`string`,description:`Metric to aggregate the results by.`}).option(`message-action`,{type:`string`,description:`Message actions to filter by.`,choices:[`PREVIEW`,`QUARANTINE_RELEASED`,`MOVED`]}).option(`recipient`,{type:`string`,description:`Filter by recipient. Matches an email address or a domain.`}).option(`sender`,{type:`string`,description:`Filter by sender. Matches an email address or a domain.`}).option(`smtp-helo-ip`,{type:`string`,description:`Matches messages whose SMTP HELO server IP address equals this value.`}).option(`alert-id`,{type:`string`,description:`Filter by alert ID.`}).option(`domain`,{type:`string`,description:`Filter by a domain found in the email — sender domain, recipient domain, or a domain in a link.`}).option(`message-id`,{type:`string`,description:`Filter by the RFC 5322 Message-ID header.`}).option(`subject`,{type:`string`,description:`Search for messages containing individual keywords in any order within the subject.`}).option(`delivery-status`,{type:`string`,description:`Delivery status to filter by.`,choices:[`delivered`,`moved`,`quarantined`,`rejected`,`deferred`,`bounced`,`queued`,`move_failed`]}).option(`cursor`,{type:`string`,description:"Pagination cursor from the previous response's `result_info`."}).option(`per-page`,{type:`number`,description:`The number of results per page. Maximum value is 1000.`}).option(`page`,{type:`number`,description:`Deprecated: Use cursor pagination instead. End of life: November 1, 2026.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const ct={command:`list`,describe:`Search email messages`,builder:h(st),handler:async c=>s({command:`email-security investigate list`,classification:{safeFlags:[`detections-only`,`final-disposition`,`message-action`,`delivery-status`,`dry-run`]}},c,async()=>{let s={start:c.start,end:c.end,query:c.query,detections_only:c[`detections-only`],final_disposition:c[`final-disposition`],metric:c.metric,message_action:c[`message-action`],recipient:c.recipient,sender:c.sender,smtp_helo_ip:c[`smtp-helo-ip`],alert_id:c[`alert-id`],domain:c.domain,message_id:c[`message-id`],subject:c.subject,delivery_status:c[`delivery-status`],cursor:c.cursor,per_page:c[`per-page`],page:c.page};if(c.dryRun){a({command:`cf email-security investigate list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/email-security/investigate`,pathParams:{},query:s,bodyKind:`none`});return}let l=await r(c),u=c.local?e:await n();c.accountId=u,i(await o(`Loading`,async()=>l.emailSecurity.investigate.list({account_id:u,...s})),{successLabel:`Loaded`})})};function lt(e){return e.usage(`$0 email-security investigate move
|
|
100
100
|
|
|
101
|
-
Moves one or more messages to a specified mailbox folder (Inbox, JunkEmail, DeletedItems, RecoverableItemsDeletions, or RecoverableItemsPurges). Requires active integration. Operates on an explicit list of messages; to move all messages matching a search, create a bulk action job instead.`).option(`destination`,{type:`string`,description:`The
|
|
101
|
+
Moves one or more messages to a specified mailbox folder (Inbox, JunkEmail, DeletedItems, RecoverableItemsDeletions, or RecoverableItemsPurges). Requires active integration. Operates on an explicit list of messages; to move all messages matching a search, create a bulk action job instead.`).option(`destination`,{type:`string`,description:`The mailbox folder to move messages to.`,choices:[`Inbox`,`JunkEmail`,`DeletedItems`,`RecoverableItemsDeletions`,`RecoverableItemsPurges`]}).option(`ids`,{type:`string`,array:!0,description:`List of message IDs to move.`}).option(`postfix-ids`,{type:`string`,array:!0,description:"Deprecated, use `ids` instead. End of life: November 1, 2026."}).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 ut={command:`move`,describe:`Move messages`,builder:lt,handler:async l=>s({command:`email-security investigate move`,classification:{safeFlags:[`destination`,`dry-run`]}},l,async()=>{if(l.dryRun){a({command:`cf email-security investigate move`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/email-security/investigate/move`,pathParams:{},bodyKind:`json`,body:l.body===void 0?u({destination:d(l.destination,`destination`,`text`),ids:l.ids,postfix_ids:l[`postfix-ids`]}):c(l.body)});return}let s=await r(l),f=l.local?e:await n();if(l.accountId=f,l.body){let e=c(l.body);i(await o(`Creating`,async()=>s.emailSecurity.investigate.move({...e,account_id:f})),{successLabel:`Created`});return}if(l.destination===void 0&&(l.destination=await p(`destination`,`The mailbox folder to move messages to.`,[`Inbox`,`JunkEmail`,`DeletedItems`,`RecoverableItemsDeletions`,`RecoverableItemsPurges`])),l.ids===void 0)throw Error(`--ids is required (or pass --body with this field set).`);let m=u({destination:d(l.destination,`destination`,`text`),ids:l.ids,postfix_ids:l[`postfix-ids`]});i(await o(`Creating`,async()=>s.emailSecurity.investigate.move({...m,account_id:f})),{successLabel:`Created`})})};function dt(e){return e.usage(`$0 email-security investigate preview generate
|
|
102
102
|
|
|
103
103
|
Generates a preview image for a message that was not flagged as a detection. The message is rendered from the copy in the recipient's mailbox, so this requires an active integration and only works while the message is still in the recipient's inbox. Returns a base64-encoded PNG screenshot of the email body. For messages with a detection, use the detection preview endpoint instead.`).option(`id`,{type:`string`,description:`Unique identifier for a message retrieved from investigation.`}).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 ft={command:`generate`,describe:`Generate preview for a non-detection message`,builder:dt,handler:async l=>s({command:`email-security investigate preview generate`,classification:{safeFlags:[`dry-run`]}},l,async()=>{if(l.dryRun){a({command:`cf email-security investigate preview generate`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/email-security/investigate/preview`,pathParams:{},bodyKind:`json`,body:l.body===void 0?u({id:d(l.id,`id`,`text`)}):c(l.body)});return}let s=await r(l),p=l.local?e:await n();if(l.accountId=p,l.body){let e=c(l.body);i(await o(`Creating`,async()=>s.emailSecurity.investigate.preview.generate({...e,account_id:p})),{successLabel:`Created`});return}l.id===void 0&&(l.id=await f(`id`,`Unique identifier for a message retrieved from investigation.`));let m=u({id:d(l.id,`id`,`text`)});i(await o(`Creating`,async()=>s.emailSecurity.investigate.preview.generate({...m,account_id:p})),{successLabel:`Created`})})};function pt(e){return e.usage(`$0 email-security investigate preview get <investigate-id>
|
|
104
104
|
|
|
@@ -106,11 +106,11 @@ Returns a preview of the message body as a base64-encoded PNG image for any mess
|
|
|
106
106
|
|
|
107
107
|
Returns the raw EML content of any message with a detection.`).positional(`investigate-id`,{type:`string`,description:`Unique identifier for a message retrieved from investigation.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const _t={command:`get <investigate-id>`,describe:`Get raw email content`,builder:gt,handler:async c=>s({command:`email-security investigate raw get`,classification:{safeFlags:[`dry-run`]}},c,async()=>{if(c.dryRun){a({command:`cf email-security investigate raw get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/email-security/investigate/${c[`investigate-id`]==null?`<investigate-id>`:encodeURIComponent(String(c[`investigate-id`]))}/raw`,pathParams:{"investigate-id":String(c[`investigate-id`]??``)},bodyKind:`none`});return}let s=await r(c),l=c.local?e:await n();c.accountId=l,i(await o(`Loading`,async()=>s.emailSecurity.investigate.raw.get({account_id:l,investigate_id:c[`investigate-id`]})),{successLabel:`Loaded`})})},vt={command:`raw`,describe:`Operations for investigate.raw`,builder:e=>e.command(_t).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function yt(e){return e.usage(`$0 email-security investigate release
|
|
108
108
|
|
|
109
|
-
Delivers one or more quarantined messages to their intended recipients, for cases where a message was incorrectly quarantined. Operates on an explicit list of messages; to release all messages matching a search, create a bulk action job instead. The response includes delivery status for each recipient.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`
|
|
109
|
+
Delivers one or more quarantined messages to their intended recipients, for cases where a message was incorrectly quarantined. Operates on an explicit list of messages; to release all messages matching a search, create a bulk action job instead. The response includes delivery status for each recipient.`).option(`ids`,{type:`string`,array:!0,description:`Investigate IDs of the messages to release.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`The messages to release, identified by their investigate IDs.`})}const bt={command:`release`,describe:`Release messages from quarantine`,builder:yt,handler:async l=>s({command:`email-security investigate release`,classification:{safeFlags:[`dry-run`]}},l,async()=>{if(l.dryRun){a({command:`cf email-security investigate release`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/email-security/investigate/release`,pathParams:{},bodyKind:`json`,body:l.body===void 0?u({ids:l.ids}):c(l.body)});return}let s=await r(l),d=l.local?e:await n();if(l.accountId=d,l.body){let e=c(l.body);i(await o(`Creating`,async()=>s.emailSecurity.investigate.release({...e,account_id:d})),{successLabel:`Created`});return}if(l.ids===void 0)throw Error(`--ids is required (or pass --body with this field set).`);let f=u({ids:l.ids});i(await o(`Creating`,async()=>s.emailSecurity.investigate.release({...f,account_id:d})),{successLabel:`Created`})})};function xt(e){return e.usage(`$0 email-security investigate trace get <investigate-id>
|
|
110
110
|
|
|
111
|
-
Retrieves delivery and processing trace information for an email message. Shows the delivery path, retraction history, and move operations performed on the message. Useful for debugging delivery issues.`).positional(`investigate-id`,{type:`string`,description:`Unique identifier for a message retrieved from investigation.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const St={command:`get <investigate-id>`,describe:`Get email trace`,builder:xt,handler:async c=>s({command:`email-security investigate trace get`,classification:{safeFlags:[`dry-run`]}},c,async()=>{if(c.dryRun){a({command:`cf email-security investigate trace get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/email-security/investigate/${c[`investigate-id`]==null?`<investigate-id>`:encodeURIComponent(String(c[`investigate-id`]))}/trace`,pathParams:{"investigate-id":String(c[`investigate-id`]??``)},bodyKind:`none`});return}let s=await r(c),l=c.local?e:await n();c.accountId=l,i(await o(`Loading`,async()=>s.emailSecurity.investigate.trace.get({account_id:l,investigate_id:c[`investigate-id`]})),{successLabel:`Loaded`})})},Ct={command:`trace`,describe:`Operations for investigate.trace`,builder:e=>e.command(St).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},wt={command:`investigate`,describe:`Search and investigate email messages — view detections, traces, raw content, and take remediation actions`,builder:e=>e.command(ot).command(ct).command(ut).command(bt).command(
|
|
111
|
+
Retrieves delivery and processing trace information for an email message. Shows the delivery path, retraction history, and move operations performed on the message. Useful for debugging delivery issues.`).positional(`investigate-id`,{type:`string`,description:`Unique identifier for a message retrieved from investigation.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const St={command:`get <investigate-id>`,describe:`Get email trace`,builder:xt,handler:async c=>s({command:`email-security investigate trace get`,classification:{safeFlags:[`dry-run`]}},c,async()=>{if(c.dryRun){a({command:`cf email-security investigate trace get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/email-security/investigate/${c[`investigate-id`]==null?`<investigate-id>`:encodeURIComponent(String(c[`investigate-id`]))}/trace`,pathParams:{"investigate-id":String(c[`investigate-id`]??``)},bodyKind:`none`});return}let s=await r(c),l=c.local?e:await n();c.accountId=l,i(await o(`Loading`,async()=>s.emailSecurity.investigate.trace.get({account_id:l,investigate_id:c[`investigate-id`]})),{successLabel:`Loaded`})})},Ct={command:`trace`,describe:`Operations for investigate.trace`,builder:e=>e.command(St).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},wt={command:`investigate`,describe:`Search and investigate email messages — view detections, traces, raw content, and take remediation actions`,builder:e=>e.command(ot).command(ct).command(ut).command(bt).command(tt).command(it).command(ht).command(vt).command(Ct).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function Tt(e){return e.usage(`$0 email-security phishguard reports list
|
|
112
112
|
|
|
113
|
-
Retrieves PhishGuard security alert reports for a specified date range. Reports include detected threats, dispositions, and contextual information. Use for security monitoring and threat analysis.`).option(`start`,{type:`string`,description:`Start of the time range (RFC3339). Takes precedence over from_date.`}).option(`end`,{type:`string`,description:`End of the time range (RFC3339). Takes precedence over to_date.`}).option(`from-date`,{type:`string`,description:"Deprecated, use `start` instead. Start date in YYYY-MM-DD format."}).option(`to-date`,{type:`string`,description:"Deprecated, use `end` instead. End date in YYYY-MM-DD format."}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const Et={command:`list`,describe:`List PhishGuard reports`,builder:Tt,handler:async c=>s({command:`email-security phishguard reports list`,classification:{safeFlags:[`dry-run`]}},c,async()=>{let s={start:c.start,end:c.end,from_date:c[`from-date`],to_date:c[`to-date`]};if(c.dryRun){a({command:`cf email-security phishguard reports list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/email-security/phishguard/reports`,pathParams:{},query:s,bodyKind:`none`});return}let l=await r(c),u=c.local?e:await n();c.accountId=u,i(await o(`Loading`,async()=>l.emailSecurity.phishguard.reports.list({account_id:u,...s})),{successLabel:`Loaded`})})},Dt={command:`reports`,describe:`Operations for phishguard.reports`,builder:e=>e.command(Et).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},Ot={command:`phishguard`,describe:`PhishGuard user-reported phishing reports — view detected threats for a date range`,builder:e=>e.command(Dt).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function kt(e){return e.usage(`$0 email-security sending-domain-restrictions create
|
|
113
|
+
Retrieves PhishGuard security alert reports for a specified date range. Reports include detected threats, dispositions, and contextual information. Use for security monitoring and threat analysis.`).option(`start`,{type:`string`,description:`Start of the time range (RFC3339). Takes precedence over from_date.`}).option(`end`,{type:`string`,description:`End of the time range (RFC3339). Takes precedence over to_date.`}).option(`from-date`,{type:`string`,description:"Deprecated, use `start` instead. Start date in YYYY-MM-DD format."}).option(`to-date`,{type:`string`,description:"Deprecated, use `end` instead. End date in YYYY-MM-DD format."}).option(`page`,{type:`number`,description:`Current page within paginated list of results.`}).option(`per-page`,{type:`number`,description:`The number of results per page. Maximum value is 1000.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const Et={command:`list`,describe:`List PhishGuard reports`,builder:Tt,handler:async c=>s({command:`email-security phishguard reports list`,classification:{safeFlags:[`dry-run`]}},c,async()=>{let s={start:c.start,end:c.end,from_date:c[`from-date`],to_date:c[`to-date`],page:c.page,per_page:c[`per-page`]};if(c.dryRun){a({command:`cf email-security phishguard reports list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/email-security/phishguard/reports`,pathParams:{},query:s,bodyKind:`none`});return}let l=await r(c),u=c.local?e:await n();c.accountId=u,i(await o(`Loading`,async()=>l.emailSecurity.phishguard.reports.list({account_id:u,...s})),{successLabel:`Loaded`})})},Dt={command:`reports`,describe:`Operations for phishguard.reports`,builder:e=>e.command(Et).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},Ot={command:`phishguard`,describe:`PhishGuard user-reported phishing reports — view detected threats for a date range`,builder:e=>e.command(Dt).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function kt(e){return e.usage(`$0 email-security sending-domain-restrictions create
|
|
114
114
|
|
|
115
115
|
Creates a new sending domain restriction to enforce TLS requirements for a domain. Emails without TLS from this domain will be dropped unless the subdomain is in the exclude list.`).option(`comments`,{type:`string`,description:`The comments field`}).option(`domain`,{type:`string`,description:`Domain that requires TLS enforcement.`}).option(`exclude`,{type:`string`,array:!0,description:`Subdomains to exempt from TLS requirements.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Create a sending domain restriction.`})}const At={command:`create`,describe:`Create a sending domain restriction`,builder:kt,handler:async l=>s({command:`email-security sending-domain-restrictions create`,classification:{safeFlags:[`dry-run`]}},l,async()=>{if(l.dryRun){a({command:`cf email-security sending-domain-restrictions create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/email-security/settings/sending_domain_restrictions`,pathParams:{},bodyKind:`json`,body:l.body===void 0?u({comments:d(l.comments,`comments`,`text`),domain:d(l.domain,`domain`,`text`),exclude:l.exclude}):c(l.body)});return}let s=await r(l),p=l.local?e:await n();if(l.accountId=p,l.body){let e=c(l.body);i(await o(`Creating`,async()=>s.emailSecurity.sendingDomainRestrictions.create({...e,account_id:p})),{successLabel:`Created`});return}if(l.domain===void 0&&(l.domain=await f(`domain`,`Domain that requires TLS enforcement.`)),l.exclude===void 0)throw Error(`--exclude is required (or pass --body with this field set).`);let m=u({comments:d(l.comments,`comments`,`text`),domain:d(l.domain,`domain`,`text`),exclude:l.exclude});i(await o(`Creating`,async()=>s.emailSecurity.sendingDomainRestrictions.create({...m,account_id:p})),{successLabel:`Created`})})};function jt(e){return e.usage(`$0 email-security sending-domain-restrictions delete <sending-domain-restriction-id>
|
|
116
116
|
|
|
@@ -125,25 +125,25 @@ Returns a paginated list of sending domain restrictions. These restrictions enfo
|
|
|
125
125
|
|
|
126
126
|
Submits messages for reclassification or to report missed detections.`).option(`messages`,{type:`string`,description:`The messages field. Provide as a JSON array of objects or @path/to/file.json.`}).option(`type`,{type:`string`,description:`The type field`,choices:[`reclassification`,`missed_detection`]}).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 Vt={command:`create`,describe:`Create new submissions`,builder:Bt,handler:async f=>s({command:`email-security submissions create`,classification:{safeFlags:[`type`,`dry-run`]}},f,async()=>{if(f.dryRun){a({command:`cf email-security submissions create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/email-security/submissions`,pathParams:{},bodyKind:`json`,body:f.body===void 0?u({messages:l(f.messages,`messages`),type:d(f.type,`type`,`text`)}):c(f.body)});return}let s=await r(f),m=f.local?e:await n();if(f.accountId=m,f.body){let e=c(f.body);i(await o(`Creating`,async()=>s.emailSecurity.submissions.create({body:e,account_id:m})),{successLabel:`Created`});return}if(f.messages===void 0)throw Error(`--messages is required (or pass --body with this field set).`);f.type===void 0&&(f.type=await p(`type`,`The type field`,[`reclassification`,`missed_detection`]));let h=u({messages:l(f.messages,`messages`),type:d(f.type,`type`,`text`)});i(await o(`Creating`,async()=>s.emailSecurity.submissions.create({body:h,account_id:m})),{successLabel:`Created`})})};function Ht(e){return e.usage(`$0 email-security submissions list
|
|
127
127
|
|
|
128
|
-
Returns information for submissions made to reclassify emails. Shows the status, outcome, and disposition changes for reclassification requests made by users or the security team. Useful for tracking false positive/negative reports.`).option(`start`,{type:`string`,description:"The beginning of the search date range. Defaults to `now - 30 days`."}).option(`end`,{type:`string`,description:"The end of the search date range. Defaults to `now`."}).option(`type`,{type:`string`,description:"Filter by who created the submission — `TEAM` for security team members or `USER` for end users.",choices:[`TEAM`,`USER`]}).option(`submission-id`,{type:`string`,description:`Filter by a specific submission ID.`}).option(`original-disposition`,{type:`string`,description:`
|
|
128
|
+
Returns information for submissions made to reclassify emails. Shows the status, outcome, and disposition changes for reclassification requests made by users or the security team. Useful for tracking false positive/negative reports.`).option(`start`,{type:`string`,description:"The beginning of the search date range. Defaults to `now - 30 days`."}).option(`end`,{type:`string`,description:"The end of the search date range. Defaults to `now`."}).option(`type`,{type:`string`,description:"Filter by who created the submission — `TEAM` for security team members or `USER` for end users.",choices:[`TEAM`,`USER`]}).option(`submission-id`,{type:`string`,description:`Filter by a specific submission ID.`}).option(`original-disposition`,{type:`string`,description:`The disposition a message is submitted to have.`,choices:[`MALICIOUS`,`SUSPICIOUS`,`SPOOF`,`SPAM`,`BULK`,`NONE`]}).option(`requested-disposition`,{type:`string`,description:`The disposition a message is submitted to have.`,choices:[`MALICIOUS`,`SUSPICIOUS`,`SPOOF`,`SPAM`,`BULK`,`NONE`]}).option(`outcome-disposition`,{type:`string`,description:`The disposition a message is submitted to have.`,choices:[`MALICIOUS`,`SUSPICIOUS`,`SPOOF`,`SPAM`,`BULK`,`NONE`]}).option(`status`,{type:`string`,description:"Filter by review status — `escalated`, `reviewed`, or `unreviewed`."}).option(`query`,{type:`string`,description:`Search term for filtering submissions.`}).option(`escalated-from-user`,{type:`boolean`,description:`When true, return only submissions that were escalated by an end user (vs. by the security team). When false, return only submissions that were not escalated by an end user. When omitted, no filter is applied.`}).option(`order`,{type:`string`,description:`Field to sort by.`,choices:[`submission_id`,`subject`,`original_disposition`,`requested_disposition`,`outcome_disposition`,`requested_at`]}).option(`direction`,{type:`string`,description:`The sorting direction.`,choices:[`asc`,`desc`]}).option(`page`,{type:`number`,description:`Current page within paginated list of results.`}).option(`per-page`,{type:`number`,description:`The number of results per page. Maximum value is 1000.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const Ut={command:`list`,describe:`List reclassify submissions`,builder:h(Ht),handler:async c=>s({command:`email-security submissions list`,classification:{safeFlags:[`type`,`original-disposition`,`requested-disposition`,`outcome-disposition`,`escalated-from-user`,`order`,`direction`,`dry-run`]}},c,async()=>{let s={start:c.start,end:c.end,type:c.type,submission_id:c[`submission-id`],original_disposition:c[`original-disposition`],requested_disposition:c[`requested-disposition`],outcome_disposition:c[`outcome-disposition`],status:c.status,query:c.query,escalated_from_user:c[`escalated-from-user`],order:c.order,direction:c.direction,page:c.page,per_page:c[`per-page`]};if(c.dryRun){a({command:`cf email-security submissions list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/email-security/submissions`,pathParams:{},query:s,bodyKind:`none`});return}let l=await r(c),u=c.local?e:await n();c.accountId=u,i(await o(`Loading`,async()=>l.emailSecurity.submissions.list({account_id:u,...s})),{successLabel:`Loaded`})})},Wt={command:`submissions`,describe:`Reclassify submissions — track user and team reports of false positives and missed detections`,builder:e=>e.command(Vt).command(Ut).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function Gt(e){return e.usage(`$0 email-security trusted-domains batch
|
|
129
129
|
|
|
130
|
-
Executes multiple operations atomically. All four operation arrays (deletes, patches, puts, posts) are required and executed in order. Send empty arrays for unused operations.`).option(`deletes`,{type:`string`,description:`
|
|
130
|
+
Executes multiple trusted domain operations atomically: delete, partially update, replace, and create trusted domain patterns in a single request. All four operation arrays (deletes, patches, puts, posts) are required and executed in order. Send empty arrays for unused operations.`).option(`deletes`,{type:`string`,description:`IDs of the trusted domain patterns to delete. Provide as a JSON array of objects or @path/to/file.json.`}).option(`patches`,{type:`string`,description:`Partial updates to apply — each entry carries the pattern's ID and only the fields to change. Provide as a JSON array of objects or @path/to/file.json.`}).option(`posts`,{type:`string`,description:`Trusted domain patterns to create. Provide as a JSON array of objects or @path/to/file.json.`}).option(`puts`,{type:`string`,description:`Full replacements to apply — each entry carries the pattern's ID and every field of its new value. Provide as a JSON array of objects or @path/to/file.json.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`force`,{type:`boolean`,alias:`f`,description:`Skip confirmation (useful in scripts and CI)`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const Kt={command:`batch`,describe:`Batch trusted domain operations`,builder:Gt,handler:async d=>s({command:`email-security trusted-domains batch`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},d,async()=>{if(d.dryRun){a({command:`cf email-security trusted-domains batch`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/email-security/settings/trusted_domains/batch`,pathParams:{},bodyKind:`json`,body:d.body===void 0?u({deletes:l(d.deletes,`deletes`),patches:l(d.patches,`patches`),posts:l(d.posts,`posts`),puts:l(d.puts,`puts`)}):c(d.body)});return}let s=await r(d),f=d.local?e:await n();if(d.accountId=f,!await m({force:!!d.force,message:`This operation may delete the selected trusted domain patterns and restore normal recent domain and similarity checks for matching emails.`})){process.stderr.write(`Aborted.
|
|
131
131
|
`);return}if(d.body){let e=c(d.body);i(await o(`Deleting`,async()=>s.emailSecurity.trustedDomains.batch({...e,account_id:f})),{successLabel:`Deleted`});return}if(d.deletes===void 0)throw Error(`--deletes is required (or pass --body with this field set).`);if(d.patches===void 0)throw Error(`--patches is required (or pass --body with this field set).`);if(d.posts===void 0)throw Error(`--posts is required (or pass --body with this field set).`);if(d.puts===void 0)throw Error(`--puts is required (or pass --body with this field set).`);let p=u({deletes:l(d.deletes,`deletes`),patches:l(d.patches,`patches`),posts:l(d.posts,`posts`),puts:l(d.puts,`puts`)});i(await o(`Deleting`,async()=>s.emailSecurity.trustedDomains.batch({...p,account_id:f})),{successLabel:`Deleted`})})};function qt(e){return e.usage(`$0 email-security trusted-domains create
|
|
132
132
|
|
|
133
|
-
Creates a new trusted domain pattern. Use for partner domains or approved senders that should bypass recent domain registration and similarity checks. Configure whether it prevents recent domain or spoof dispositions.`).option(`comments`,{type:`string`,description:`The comments field`}).option(`is-recent`,{type:`boolean`,description:`Select to prevent recently registered domains from triggering a Suspicious or Malicious disposition.`}).option(`is-regex`,{type:`boolean`,description
|
|
133
|
+
Creates a new trusted domain pattern. Use for partner domains or approved senders that should bypass recent domain registration and similarity checks. Configure whether it prevents recent domain or spoof dispositions.`).option(`comments`,{type:`string`,description:`The comments field`}).option(`is-recent`,{type:`boolean`,description:`Select to prevent recently registered domains from triggering a Suspicious or Malicious disposition.`}).option(`is-regex`,{type:`boolean`,description:"Whether `pattern` is a regular expression instead of a literal domain."}).option(`is-similarity`,{type:`boolean`,description:`Select for partner or other approved domains that have similar spelling to your connected domains. Prevents listed domains from triggering a Spoof disposition.`}).option(`pattern`,{type:`string`,description:"The domain pattern to trust, e.g. `example.com`."}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Create a trusted domain.`})}const Jt={command:`create`,describe:`Create trusted email domain`,builder:qt,handler:async l=>s({command:`email-security trusted-domains create`,classification:{safeFlags:[`is-recent`,`is-regex`,`is-similarity`,`dry-run`]}},l,async()=>{if(l.dryRun){a({command:`cf email-security trusted-domains create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/email-security/settings/trusted_domains`,pathParams:{},bodyKind:`json`,body:l.body===void 0?u({comments:d(l.comments,`comments`,`text`),is_recent:l[`is-recent`],is_regex:l[`is-regex`],is_similarity:l[`is-similarity`],pattern:d(l.pattern,`pattern`,`text`)}):c(l.body)});return}let s=await r(l),p=l.local?e:await n();if(l.accountId=p,l.body){let e=c(l.body);i(await o(`Creating`,async()=>s.emailSecurity.trustedDomains.create({body:e,account_id:p})),{successLabel:`Created`});return}if(l[`is-recent`]===void 0)throw Error(`--is-recent is required (or pass --body with this field set).`);if(l[`is-regex`]===void 0)throw Error(`--is-regex is required (or pass --body with this field set).`);if(l[`is-similarity`]===void 0)throw Error(`--is-similarity is required (or pass --body with this field set).`);l.pattern===void 0&&(l.pattern=await f(`pattern`,"The domain pattern to trust, e.g. `example.com`."));let m=u({comments:d(l.comments,`comments`,`text`),is_recent:l[`is-recent`],is_regex:l[`is-regex`],is_similarity:l[`is-similarity`],pattern:d(l.pattern,`pattern`,`text`)});i(await o(`Creating`,async()=>s.emailSecurity.trustedDomains.create({body:m,account_id:p})),{successLabel:`Created`})})};function Yt(e){return e.usage(`$0 email-security trusted-domains delete <trusted-domain-id>
|
|
134
134
|
|
|
135
135
|
Removes a trusted domain pattern. After deletion, emails from this domain will be subject to normal recent domain and similarity checks.`).positional(`trusted-domain-id`,{type:`string`,description:`Trusted domain identifier.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`force`,{type:`boolean`,alias:`f`,description:`Skip confirmation (useful in scripts and CI)`,default:!1})}const Xt={command:`delete <trusted-domain-id>`,describe:`Delete a trusted email domain`,builder:Yt,handler:async c=>s({command:`email-security trusted-domains delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},c,async()=>{if(c.dryRun){a({command:`cf email-security trusted-domains delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/email-security/settings/trusted_domains/${c[`trusted-domain-id`]==null?`<trusted-domain-id>`:encodeURIComponent(String(c[`trusted-domain-id`]))}`,pathParams:{"trusted-domain-id":String(c[`trusted-domain-id`]??``)},bodyKind:`none`});return}let s=await r(c),l=c.local?e:await n();if(c.accountId=l,!await m({force:!!c.force,message:`This operation deletes the trusted domain pattern and restores normal recent domain and similarity checks for matching emails.`})){process.stderr.write(`Aborted.
|
|
136
136
|
`);return}i(await o(`Deleting`,async()=>s.emailSecurity.trustedDomains.delete({account_id:l,trusted_domain_id:c[`trusted-domain-id`]})),{successLabel:`Deleted`})})};function Zt(e){return e.usage(`$0 email-security trusted-domains edit <trusted-domain-id>
|
|
137
137
|
|
|
138
|
-
Updates an existing trusted domain pattern. Only provided fields will be modified. Changes take effect for new emails matching the pattern.`).positional(`trusted-domain-id`,{type:`string`,description:`Trusted domain identifier.`,demandOption:!0}).option(`comments`,{type:`string`,description:`The comments field`}).option(`is-recent`,{type:`boolean`,description:`Select to prevent recently registered domains from triggering a Suspicious or Malicious disposition.`}).option(`is-regex`,{type:`boolean`,description
|
|
138
|
+
Updates an existing trusted domain pattern. Only provided fields will be modified. Changes take effect for new emails matching the pattern.`).positional(`trusted-domain-id`,{type:`string`,description:`Trusted domain identifier.`,demandOption:!0}).option(`comments`,{type:`string`,description:`The comments field`}).option(`is-recent`,{type:`boolean`,description:`Select to prevent recently registered domains from triggering a Suspicious or Malicious disposition.`}).option(`is-regex`,{type:`boolean`,description:"Whether `pattern` is a regular expression instead of a literal domain."}).option(`is-similarity`,{type:`boolean`,description:`Select for partner or other approved domains that have similar spelling to your connected domains. Prevents listed domains from triggering a Spoof disposition.`}).option(`pattern`,{type:`string`,description:"The domain pattern to trust, e.g. `example.com`."}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Update a trusted domain.`})}const Qt={command:`edit <trusted-domain-id>`,describe:`Update a trusted email domain`,builder:Zt,handler:async l=>s({command:`email-security trusted-domains edit`,classification:{safeFlags:[`is-recent`,`is-regex`,`is-similarity`,`dry-run`]}},l,async()=>{if(l.dryRun){a({command:`cf email-security trusted-domains edit`,method:`PATCH`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/email-security/settings/trusted_domains/${l[`trusted-domain-id`]==null?`<trusted-domain-id>`:encodeURIComponent(String(l[`trusted-domain-id`]))}`,pathParams:{"trusted-domain-id":String(l[`trusted-domain-id`]??``)},bodyKind:`json`,body:l.body===void 0?u({comments:d(l.comments,`comments`,`text`),is_recent:l[`is-recent`],is_regex:l[`is-regex`],is_similarity:l[`is-similarity`],pattern:d(l.pattern,`pattern`,`text`)}):c(l.body)});return}let s=await r(l),f=l.local?e:await n();if(l.accountId=f,l.body){let e=c(l.body);i(await o(`Updating`,async()=>s.emailSecurity.trustedDomains.edit({body:e,account_id:f,trusted_domain_id:l[`trusted-domain-id`]})),{successLabel:`Updated`});return}let p=u({comments:d(l.comments,`comments`,`text`),is_recent:l[`is-recent`],is_regex:l[`is-regex`],is_similarity:l[`is-similarity`],pattern:d(l.pattern,`pattern`,`text`)});i(await o(`Updating`,async()=>s.emailSecurity.trustedDomains.edit({body:p,account_id:f,trusted_domain_id:l[`trusted-domain-id`]})),{successLabel:`Updated`})})};function $t(e){return e.usage(`$0 email-security trusted-domains get <trusted-domain-id>
|
|
139
139
|
|
|
140
140
|
Retrieves details for a specific trusted domain pattern including its pattern value, whether it uses regex matching, and which detection types it affects.`).positional(`trusted-domain-id`,{type:`string`,description:`Trusted domain identifier.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const en={command:`get <trusted-domain-id>`,describe:`Get a trusted email domain`,builder:$t,handler:async c=>s({command:`email-security trusted-domains get`,classification:{safeFlags:[`dry-run`]}},c,async()=>{if(c.dryRun){a({command:`cf email-security trusted-domains get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/email-security/settings/trusted_domains/${c[`trusted-domain-id`]==null?`<trusted-domain-id>`:encodeURIComponent(String(c[`trusted-domain-id`]))}`,pathParams:{"trusted-domain-id":String(c[`trusted-domain-id`]??``)},bodyKind:`none`});return}let s=await r(c),l=c.local?e:await n();c.accountId=l,i(await o(`Loading`,async()=>s.emailSecurity.trustedDomains.get({account_id:l,trusted_domain_id:c[`trusted-domain-id`]})),{successLabel:`Loaded`})})};function $(e){return e.usage(`$0 email-security trusted-domains list
|
|
141
141
|
|
|
142
142
|
Returns a paginated list of trusted domain patterns. Trusted domains prevent false positives for recently registered domains and lookalike domain detections. Patterns can use regular expressions for flexible matching.`).option(`page`,{type:`number`,description:`Current page within paginated list of results.`}).option(`per-page`,{type:`number`,description:`The number of results per page. Maximum value is 1000.`}).option(`search`,{type:`string`,description:`Search term for filtering records. Behavior may change.`}).option(`order`,{type:`string`,description:`Field to sort by.`,choices:[`pattern`,`created_at`]}).option(`direction`,{type:`string`,description:`The sorting direction.`,choices:[`asc`,`desc`]}).option(`is-recent`,{type:`boolean`,description:`Filter to show only recently registered domains that are trusted to prevent triggering Suspicious or Malicious dispositions.`}).option(`is-similarity`,{type:`boolean`,description:`Filter to show only proximity domains (partner or approved domains with similar spelling to connected domains) that prevent Spoof dispositions.`}).option(`pattern`,{type:`string`,description:`Pattern`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const tn={command:`list`,describe:`List trusted email domains`,builder:h($),handler:async c=>s({command:`email-security trusted-domains list`,classification:{safeFlags:[`order`,`direction`,`is-recent`,`is-similarity`,`dry-run`]}},c,async()=>{let s={page:c.page,per_page:c[`per-page`],search:c.search,order:c.order,direction:c.direction,is_recent:c[`is-recent`],is_similarity:c[`is-similarity`],pattern:c.pattern};if(c.dryRun){a({command:`cf email-security trusted-domains list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/email-security/settings/trusted_domains`,pathParams:{},query:s,bodyKind:`none`});return}let l=await r(c),u=c.local?e:await n();c.accountId=u,i(await o(`Loading`,async()=>l.emailSecurity.trustedDomains.list({account_id:u,...s})),{successLabel:`Loaded`})})};function nn(e){return e.usage(`$0 email-security trusted-domains update <trusted-domain-id>
|
|
143
143
|
|
|
144
|
-
Replaces an existing trusted domain in full. Unlike PATCH, every field is taken from the request body, so optional fields that are omitted are reset rather than left untouched. Use this when managing trusted domains declaratively.`).positional(`trusted-domain-id`,{type:`string`,description:`Trusted domain identifier.`,demandOption:!0}).option(`comments`,{type:`string`,description:`The comments field`}).option(`is-recent`,{type:`boolean`,description:`Select to prevent recently registered domains from triggering a Suspicious or Malicious disposition.`}).option(`is-regex`,{type:`boolean`,description
|
|
144
|
+
Replaces an existing trusted domain in full. Unlike PATCH, every field is taken from the request body, so optional fields that are omitted are reset rather than left untouched. Use this when managing trusted domains declaratively.`).positional(`trusted-domain-id`,{type:`string`,description:`Trusted domain identifier.`,demandOption:!0}).option(`comments`,{type:`string`,description:`The comments field`}).option(`is-recent`,{type:`boolean`,description:`Select to prevent recently registered domains from triggering a Suspicious or Malicious disposition.`}).option(`is-regex`,{type:`boolean`,description:"Whether `pattern` is a regular expression instead of a literal domain."}).option(`is-similarity`,{type:`boolean`,description:`Select for partner or other approved domains that have similar spelling to your connected domains. Prevents listed domains from triggering a Spoof disposition.`}).option(`pattern`,{type:`string`,description:"The domain pattern to trust, e.g. `example.com`."}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Create a trusted domain.`})}const rn={command:`update <trusted-domain-id>`,describe:`Replace a trusted email domain`,builder:nn,handler:async l=>s({command:`email-security trusted-domains update`,classification:{safeFlags:[`is-recent`,`is-regex`,`is-similarity`,`dry-run`]}},l,async()=>{if(l.dryRun){a({command:`cf email-security trusted-domains update`,method:`PUT`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/email-security/settings/trusted_domains/${l[`trusted-domain-id`]==null?`<trusted-domain-id>`:encodeURIComponent(String(l[`trusted-domain-id`]))}`,pathParams:{"trusted-domain-id":String(l[`trusted-domain-id`]??``)},bodyKind:`json`,body:l.body===void 0?u({comments:d(l.comments,`comments`,`text`),is_recent:l[`is-recent`],is_regex:l[`is-regex`],is_similarity:l[`is-similarity`],pattern:d(l.pattern,`pattern`,`text`)}):c(l.body)});return}let s=await r(l),p=l.local?e:await n();if(l.accountId=p,l.body){let e=c(l.body);i(await o(`Updating`,async()=>s.emailSecurity.trustedDomains.update({body:e,account_id:p,trusted_domain_id:l[`trusted-domain-id`]})),{successLabel:`Updated`});return}if(l[`is-recent`]===void 0)throw Error(`--is-recent is required (or pass --body with this field set).`);if(l[`is-regex`]===void 0)throw Error(`--is-regex is required (or pass --body with this field set).`);if(l[`is-similarity`]===void 0)throw Error(`--is-similarity is required (or pass --body with this field set).`);l.pattern===void 0&&(l.pattern=await f(`pattern`,"The domain pattern to trust, e.g. `example.com`."));let m=u({comments:d(l.comments,`comments`,`text`),is_recent:l[`is-recent`],is_regex:l[`is-regex`],is_similarity:l[`is-similarity`],pattern:d(l.pattern,`pattern`,`text`)});i(await o(`Updating`,async()=>s.emailSecurity.trustedDomains.update({body:m,account_id:p,trusted_domain_id:l[`trusted-domain-id`]})),{successLabel:`Updated`})})},an={command:`trusted-domains`,describe:`Operations for trusted-domains`,builder:e=>e.command(Kt).command(Jt).command(Xt).command(Qt).command(en).command(tn).command(rn).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function on(e){return e.usage(`$0 email-security url-ignore-patterns batch
|
|
145
145
|
|
|
146
|
-
Executes multiple operations atomically. All four operation arrays (deletes, patches, puts, posts) are required and executed in order. Send empty arrays for unused operations.`).option(`deletes`,{type:`string`,description:`
|
|
146
|
+
Executes multiple operations atomically. All four operation arrays (deletes, patches, puts, posts) are required and executed in order. Send empty arrays for unused operations.`).option(`deletes`,{type:`string`,description:`IDs of the URL ignore patterns to delete. Provide as a JSON array of objects or @path/to/file.json.`}).option(`patches`,{type:`string`,description:`Partial updates to apply — each entry carries the pattern's ID and only the fields to change. Provide as a JSON array of objects or @path/to/file.json.`}).option(`posts`,{type:`string`,description:`URL ignore patterns to create. Provide as a JSON array of objects or @path/to/file.json.`}).option(`puts`,{type:`string`,description:`Full replacements to apply — each entry carries the pattern's ID and every field of its new value. Provide as a JSON array of objects or @path/to/file.json.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`force`,{type:`boolean`,alias:`f`,description:`Skip confirmation (useful in scripts and CI)`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const sn={command:`batch`,describe:`Batch URL ignore pattern operations`,builder:on,handler:async d=>s({command:`email-security url-ignore-patterns batch`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},d,async()=>{if(d.dryRun){a({command:`cf email-security url-ignore-patterns batch`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/email-security/settings/url_ignore_patterns/batch`,pathParams:{},bodyKind:`json`,body:d.body===void 0?u({deletes:l(d.deletes,`deletes`),patches:l(d.patches,`patches`),posts:l(d.posts,`posts`),puts:l(d.puts,`puts`)}):c(d.body)});return}let s=await r(d),f=d.local?e:await n();if(d.accountId=f,!await m({force:!!d.force,message:`This operation may delete the selected URL rewrite ignore patterns and cause matching URLs to be rewritten again.`})){process.stderr.write(`Aborted.
|
|
147
147
|
`);return}if(d.body){let e=c(d.body);i(await o(`Deleting`,async()=>s.emailSecurity.urlIgnorePatterns.batch({...e,account_id:f})),{successLabel:`Deleted`});return}if(d.deletes===void 0)throw Error(`--deletes is required (or pass --body with this field set).`);if(d.patches===void 0)throw Error(`--patches is required (or pass --body with this field set).`);if(d.posts===void 0)throw Error(`--posts is required (or pass --body with this field set).`);if(d.puts===void 0)throw Error(`--puts is required (or pass --body with this field set).`);let p=u({deletes:l(d.deletes,`deletes`),patches:l(d.patches,`patches`),posts:l(d.posts,`posts`),puts:l(d.puts,`puts`)});i(await o(`Deleting`,async()=>s.emailSecurity.urlIgnorePatterns.batch({...p,account_id:f})),{successLabel:`Deleted`})})};function cn(e){return e.usage(`$0 email-security url-ignore-patterns create
|
|
148
148
|
|
|
149
149
|
Creates a new URL rewrite ignore pattern. URLs matching this pattern will not be rewritten.`).option(`comments`,{type:`string`,description:`Optional note describing the reason for the ignore pattern.`}).option(`pattern`,{type:`string`,description:`Regular expression identifying URLs to exempt from rewriting.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Creates a URL ignore pattern that exempts matching URLs from rewriting.`})}const ln={command:`create`,describe:`Create a URL ignore pattern`,builder:cn,handler:async l=>s({command:`email-security url-ignore-patterns create`,classification:{safeFlags:[`dry-run`]}},l,async()=>{if(l.dryRun){a({command:`cf email-security url-ignore-patterns create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/email-security/settings/url_ignore_patterns`,pathParams:{},bodyKind:`json`,body:l.body===void 0?u({comments:d(l.comments,`comments`,`text`),pattern:d(l.pattern,`pattern`,`text`)}):c(l.body)});return}let s=await r(l),p=l.local?e:await n();if(l.accountId=p,l.body){let e=c(l.body);i(await o(`Creating`,async()=>s.emailSecurity.urlIgnorePatterns.create({body:e,account_id:p})),{successLabel:`Created`});return}l.pattern===void 0&&(l.pattern=await f(`pattern`,`Regular expression identifying URLs to exempt from rewriting.`));let m=u({comments:d(l.comments,`comments`,`text`),pattern:d(l.pattern,`pattern`,`text`)});i(await o(`Creating`,async()=>s.emailSecurity.urlIgnorePatterns.create({body:m,account_id:p})),{successLabel:`Created`})})};function un(e){return e.usage(`$0 email-security url-ignore-patterns delete <pattern-id>
|
|
@@ -155,4 +155,4 @@ Updates an existing URL rewrite ignore pattern. Only provided fields will be mod
|
|
|
155
155
|
|
|
156
156
|
Returns a single URL rewrite ignore pattern by its identifier.`).positional(`pattern-id`,{type:`string`,description:`URL ignore pattern identifier.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const hn={command:`get <pattern-id>`,describe:`Get a URL ignore pattern`,builder:mn,handler:async c=>s({command:`email-security url-ignore-patterns get`,classification:{safeFlags:[`dry-run`]}},c,async()=>{if(c.dryRun){a({command:`cf email-security url-ignore-patterns get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/email-security/settings/url_ignore_patterns/${c[`pattern-id`]==null?`<pattern-id>`:encodeURIComponent(String(c[`pattern-id`]))}`,pathParams:{"pattern-id":String(c[`pattern-id`]??``)},bodyKind:`none`});return}let s=await r(c),l=c.local?e:await n();c.accountId=l,i(await o(`Loading`,async()=>s.emailSecurity.urlIgnorePatterns.get({account_id:l,pattern_id:c[`pattern-id`]})),{successLabel:`Loaded`})})};function gn(e){return e.usage(`$0 email-security url-ignore-patterns list
|
|
157
157
|
|
|
158
|
-
Returns a paginated list of URL rewrite ignore patterns for the account. URLs matching these patterns will not be rewritten.`).option(`page`,{type:`number`,description:`Current page within paginated list of results.`}).option(`per-page`,{type:`number`,description:`The number of results per page. Maximum value is 1000.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const _n={command:`list`,describe:`List URL ignore patterns`,builder:gn,handler:async c=>s({command:`email-security url-ignore-patterns list`,classification:{safeFlags:[`dry-run`]}},c,async()=>{let s={page:c.page,per_page:c[`per-page`]};if(c.dryRun){a({command:`cf email-security url-ignore-patterns list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/email-security/settings/url_ignore_patterns`,pathParams:{},query:s,bodyKind:`none`});return}let l=await r(c),u=c.local?e:await n();c.accountId=u,i(await o(`Loading`,async()=>l.emailSecurity.urlIgnorePatterns.list({account_id:u,...s})),{successLabel:`Loaded`})})},vn={command:`url-ignore-patterns`,describe:`Operations for url-ignore-patterns`,builder:e=>e.command(sn).command(ln).command(dn).command(pn).command(hn).command(_n).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},yn={command:`email-security`,describe:`Cloud email security — investigate threats, manage allow/block policies, and detect phishing`,builder:e=>e.command(O).command(M).command(q).command(
|
|
158
|
+
Returns a paginated list of URL rewrite ignore patterns for the account. URLs matching these patterns will not be rewritten.`).option(`page`,{type:`number`,description:`Current page within paginated list of results.`}).option(`per-page`,{type:`number`,description:`The number of results per page. Maximum value is 1000.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const _n={command:`list`,describe:`List URL ignore patterns`,builder:gn,handler:async c=>s({command:`email-security url-ignore-patterns list`,classification:{safeFlags:[`dry-run`]}},c,async()=>{let s={page:c.page,per_page:c[`per-page`]};if(c.dryRun){a({command:`cf email-security url-ignore-patterns list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/email-security/settings/url_ignore_patterns`,pathParams:{},query:s,bodyKind:`none`});return}let l=await r(c),u=c.local?e:await n();c.accountId=u,i(await o(`Loading`,async()=>l.emailSecurity.urlIgnorePatterns.list({account_id:u,...s})),{successLabel:`Loaded`})})},vn={command:`url-ignore-patterns`,describe:`Operations for url-ignore-patterns`,builder:e=>e.command(sn).command(ln).command(dn).command(pn).command(hn).command(_n).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},yn={command:`email-security`,describe:`Cloud email security — investigate threats, manage allow/block policies, and detect phishing`,builder:e=>e.command(O).command(M).command(q).command(ue).command(Ce).command(Ve).command(Qe).command(wt).command(Ot).command(zt).command(Wt).command(an).command(vn).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};export{yn as default};
|