cf 1.0.0-beta.13 → 1.0.0-beta.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +10 -0
- package/dist/_meta/commands.json +5039 -2465
- package/dist/_meta/hand-written-commands.json +375 -22
- package/dist/_meta/schemas.json +2607 -1038
- package/dist/abuse-reports-CnQBtN1G.mjs +24 -0
- package/dist/access-BzmXSwzj.mjs +2 -0
- package/dist/account-tags-2qPWbW17.mjs +15 -0
- package/dist/accounts-B0Byg-AV.mjs +132 -0
- package/dist/acm-DgAu0cnk.mjs +15 -0
- package/dist/addressing-J1oa0ML2.mjs +105 -0
- package/dist/agent-memory-4KGou-tm.mjs +34 -0
- package/dist/ai-WY7wVQfA.mjs +31 -0
- package/dist/ai-audit-D38HaEoZ.mjs +6 -0
- package/dist/ai-gateway-C0gIipT8.mjs +80 -0
- package/dist/ai-search-ClwnPU-9.mjs +79 -0
- package/dist/ai-security-BIsvFPYV.mjs +10 -0
- package/dist/alerting-MHhv28oO.mjs +56 -0
- package/dist/analytics-BfBz7bqB.mjs +17 -0
- package/dist/analytics_engine-CXVdBF1n.mjs +4 -0
- package/dist/api-eMuS5GI1.mjs +3 -0
- package/dist/api-security-DUCfcdC1.mjs +154 -0
- package/dist/argo-CUlzI4v3.mjs +14 -0
- package/dist/artifacts-BLfWGzBg.mjs +43 -0
- package/dist/audit-logs-CsfIm2QS.mjs +4 -0
- package/dist/auth-8Sm4uLGM.mjs +2 -0
- package/dist/auth-C6u9qIGO.mjs +2 -0
- package/dist/auth-CGRemu5W.mjs +2 -0
- package/dist/{auth-token-pNQrX_9O.mjs → auth-token-DkkYg4DP.mjs} +1 -1
- package/dist/{autoconfig-sD7Frryg.mjs → autoconfig-B0ESZ8DJ.mjs} +2 -2
- package/dist/basin-catalog-CrKRYJ0b.mjs +46 -0
- package/dist/billing-NxehgXrR.mjs +23 -0
- package/dist/blocks-Bat9A8V_.mjs +5 -0
- package/dist/bot-management-C993iQKL.mjs +9 -0
- package/dist/botnet-feed-CZ4vYk5y.mjs +11 -0
- package/dist/brand-protection-ADVgIi0l.mjs +27 -0
- package/dist/browser-run-CEptKZYl.mjs +42 -0
- package/dist/build-Bm6kGyzo.mjs +2 -0
- package/dist/{build-HmSXqjGn.mjs → build-sBpqm9ga.mjs} +1 -1
- package/dist/builds-DqtiTH7p.mjs +71 -0
- package/dist/cache-hX5QxmI0.mjs +45 -0
- package/dist/certificate-authorities-BOcybjc1.mjs +6 -0
- package/dist/cf-Bq4pA4n6.mjs +18 -0
- package/dist/{chunk-TAK63GWY-DdMktrgc.mjs → chunk-2HLTAS5V-D7COzUOd.mjs} +2 -2
- package/dist/chunk-2K52M2W5-CYxfQXUq.mjs +363 -0
- package/dist/{chunk-DSGVRFIS-C1_SEtRK.mjs → chunk-DSGVRFIS-C5SqiTOz.mjs} +1 -1
- package/dist/{cli-DeJc9U8z.mjs → cli-R8h3OKZI.mjs} +1 -1
- package/dist/client-certificates-Bez_ArKE.mjs +13 -0
- package/dist/client-side-security-CSmA50Bv.mjs +63 -0
- package/dist/cloud-connector-0Wivqi7S.mjs +6 -0
- package/dist/{cloudflared--1Ws1RJy.mjs → cloudflared-By8BzYXc.mjs} +1 -1
- package/dist/cloudforce-one-J-rU6k1U.mjs +405 -0
- package/dist/{command-Dh7RmjFu.mjs → command-0BOb1pgV.mjs} +1 -1
- package/dist/{command-DUhX8Dcr.mjs → command-BCJN-ZM2.mjs} +1 -1
- package/dist/{command-BvfKhMl7.mjs → command-BG-kLOnS.mjs} +1 -1
- package/dist/{command-Cu7dcaHT.mjs → command-BIsI-mMX.mjs} +1 -1
- package/dist/{command-83uVfXh9.mjs → command-BKDbbA-L.mjs} +1 -1
- package/dist/command-BWQIKu6I.mjs +2 -0
- package/dist/{command-D3fyhdy-.mjs → command-Bdy69UFU.mjs} +1 -1
- package/dist/{command-BDe67N_n.mjs → command-Bgb-3yPg.mjs} +1 -1
- package/dist/{command-_rqD0hXF.mjs → command-C6w1OdoC.mjs} +1 -1
- package/dist/{command-oNVwyjGB.mjs → command-CKW6UhTh.mjs} +1 -1
- package/dist/{command-Bpzp8Mz2.mjs → command-DCQgsd2U.mjs} +1 -1
- package/dist/{command-CcuLC6CJ.mjs → command-DIs-Nqtl.mjs} +1 -1
- package/dist/command-DPn5ANHs.mjs +2 -0
- package/dist/{command-CG6RvZs0.mjs → command-DZfKHiru.mjs} +1 -1
- package/dist/{command-BlIb6RR2.mjs → command-DppVezAB.mjs} +1 -1
- package/dist/{completions-D06AO7A8.mjs → completions-CpNGTlUX.mjs} +1 -1
- package/dist/config.mjs +0 -0
- package/dist/connector-interrupts-CH-DaLuo.mjs +6 -0
- package/dist/connector-telemetry-events-X3Fod9nl.mjs +6 -0
- package/dist/connector-telemetry-snapshots-D-WR4npQ.mjs +6 -0
- package/dist/connectors-CORKD31m.mjs +15 -0
- package/dist/containers-BboUbx3k.mjs +78 -0
- package/dist/containers-Di3_Vopq.mjs +376 -0
- package/dist/content-scan-DXGREAXa.mjs +14 -0
- package/dist/{context-q7UaYK69.mjs → context-A6T-NKPI.mjs} +2 -2
- package/dist/cps-1BoOLtTq.mjs +6 -0
- package/dist/create-OXylMu6m.mjs +2 -0
- package/dist/csamScanner-CHfbfeup.mjs +10 -0
- package/dist/ct-alerting-DlH4ILQo.mjs +5 -0
- package/dist/custom-certificates-zJqJZ2Th.mjs +17 -0
- package/dist/custom-csrs-DoLIGqYL.mjs +11 -0
- package/dist/custom-hostnames-YfV-aoAK.mjs +27 -0
- package/dist/custom-nameservers-BV43gmgt.mjs +9 -0
- package/dist/custom-pages-CoOU1Cdx.mjs +21 -0
- package/dist/d1-DujBmzLa.mjs +94 -0
- package/dist/dcv-delegation-CPLsVYOl.mjs +4 -0
- package/dist/delegate.mjs +0 -0
- package/dist/deploy-context-tEhwEXnA.mjs +56 -0
- package/dist/{deploy-input-Cc0_2QlW.mjs → deploy-input-BqJ7GVZ-.mjs} +1 -1
- package/dist/{deploy-CWNm1-5v.mjs → deploy-wNujfGUJ.mjs} +1 -1
- package/dist/{dev-ZA8itQE7.mjs → dev-EtnMYA7K.mjs} +1 -1
- package/dist/diagnostics-B3TYPVRi.mjs +15 -0
- package/dist/dist-DZRTPMMA.mjs +449 -0
- package/dist/dls-CWm1HRF0.mjs +17 -0
- package/dist/dns-CjAFU7Z9.mjs +144 -0
- package/dist/dns-firewall-BooBP9ap.mjs +71 -0
- package/dist/docs-C5XB7HdG.mjs +3 -0
- package/dist/{dotenv-DpXaxfho.mjs → dotenv-usOKkeW7.mjs} +3 -3
- package/dist/{dry-run-DRj2_uV3.mjs → dry-run-C2KjGX10.mjs} +1 -1
- package/dist/durable-objects-CSrMQDCE.mjs +6 -0
- package/dist/email-auth-Bp1Mui-n.mjs +6 -0
- package/dist/email-routing-CVF6SwQt.mjs +45 -0
- package/dist/email-security-mYZtazae.mjs +158 -0
- package/dist/email-sending-BqaKU_Xu.mjs +47 -0
- package/dist/error-sanitization-CIQOep3I.mjs +2 -0
- package/dist/error-sanitization-pOyzm2F1.mjs +2 -0
- package/dist/fieldExtractors-CAGZVmYg.mjs +9 -0
- package/dist/firewall-DgTDsYOt.mjs +36 -0
- package/dist/flagship-Db3PxxyZ.mjs +28 -0
- package/dist/fraud-BEOQczy8.mjs +22 -0
- package/dist/get-By1q8YlI.mjs +2 -0
- package/dist/get-CRKvqCu6.mjs +2 -0
- package/dist/get-iPUHxD1r.mjs +2 -0
- package/dist/google-tag-gateway-DjLQ9wo0.mjs +6 -0
- package/dist/hand-written-dry-run-B82fRl2N.mjs +2 -0
- package/dist/healthchecks-C3ScnKss.mjs +22 -0
- package/dist/{hostnames-sF999-6H.mjs → hostnames-DU0k-xO9.mjs} +6 -6
- package/dist/hyperdrive-IpCCLCRd.mjs +37 -0
- package/dist/iam-96CYM8Vw.mjs +52 -0
- package/dist/images-AB9EgZgT.mjs +71 -0
- package/dist/index.mjs +1 -1
- package/dist/{init-1w_mcgk3.mjs → init-D2nPoW4f.mjs} +2 -2
- package/dist/intel-BKb4RLvS.mjs +76 -0
- package/dist/ips-z9APCV_b.mjs +4 -0
- package/dist/k2-Bv-HiJ29.mjs +11 -0
- package/dist/keyless-certificates-ChgSGHq4.mjs +13 -0
- package/dist/keys-BhngDsDa.mjs +4 -0
- package/dist/kv-CB5MQVGP.mjs +15 -0
- package/dist/{lazy-command-BDiIwpss.mjs → lazy-command-CaZ1kdlW.mjs} +1 -1
- package/dist/leaked-credential-checks-Bsi2WpSU.mjs +18 -0
- package/dist/load-balancers-0gXZNCeI.mjs +76 -0
- package/dist/{local-DlT72Xpn.mjs → local-Dil4fTWX.mjs} +1 -1
- package/dist/local-DxWDQDnG.mjs +2 -0
- package/dist/{local-runtime-CokO6qaX.mjs → local-runtime-B7TKFu6E.mjs} +1 -1
- package/dist/login-CiQGR8ha.mjs +5 -0
- package/dist/login-Ik98G4K6.mjs +2 -0
- package/dist/logo-matches-DmoF5Otu.mjs +6 -0
- package/dist/logos-BL6ohIMH.mjs +7 -0
- package/dist/logpush-UVopW68t.mjs +46 -0
- package/dist/logs-BVfxiEiM.mjs +36 -0
- package/dist/magic-cloud-networking-B5S3aM6f.mjs +71 -0
- package/dist/magic-network-monitoring-CDSJPP47.mjs +36 -0
- package/dist/magic-transit-TcDTKM43.mjs +386 -0
- package/dist/managed-defense-C88HL0pg.mjs +18 -0
- package/dist/managed-transforms-Ja41Tahl.mjs +9 -0
- package/dist/matches-BL_Y-9Yq.mjs +6 -0
- package/dist/mcp-BWp5Q09R.mjs +32 -0
- package/dist/mesh-lFPLRWhV.mjs +26 -0
- package/dist/{migrate-CZNq63Uj.mjs → migrate-6e5mJ79R.mjs} +1 -1
- package/dist/monetization-BIc4Bwo2.mjs +20 -0
- package/dist/mtls-certificates-CVBw-Jli.mjs +13 -0
- package/dist/network-Wig0qbaC.mjs +50 -0
- package/dist/network-interconnects-C16z1HuQ.mjs +72 -0
- package/dist/o11y-Bhy4qDRm.mjs +93 -0
- package/dist/oauth-CfEedDZi.mjs +4 -0
- package/dist/oauth-clients-eXjmK5yf.mjs +16 -0
- package/dist/{oauth-mspHHU5U.mjs → oauth-oWaW7ICv.mjs} +1 -1
- package/dist/oauth-scopes-DZWn50EA.mjs +4 -0
- package/dist/organization-QdAQTrKa.mjs +71 -0
- package/dist/organizations-CgAQYdK5.mjs +4 -0
- package/dist/origin-ca-certificates-BklXqp8X.mjs +11 -0
- package/dist/origin-post-quantum-encryption-Dg16ueT4.mjs +6 -0
- package/dist/origin-tls-client-auth-d8bDU5zU.mjs +30 -0
- package/dist/output-Co4xdFf6.mjs +2 -0
- package/dist/page-rules-CgMkC6YR.mjs +39 -0
- package/dist/pages-CkBtOOf8.mjs +54 -0
- package/dist/path-DRw6Y-nd.mjs +2 -0
- package/dist/pay-per-crawl-CnGXOWyz.mjs +38 -0
- package/dist/pay-per-use-HbfxpATr.mjs +33 -0
- package/dist/pipelines-CnO9CCs0.mjs +44 -0
- package/dist/precursor-Bc55XJdQ.mjs +4 -0
- package/dist/previews-C7vZrajd.mjs +7 -0
- package/dist/progress-D5po7ScB.mjs +2 -0
- package/dist/prompt-BAJpE3jV.mjs +4 -0
- package/dist/queries-BJAH4B74.mjs +9 -0
- package/dist/queues-D4G8vvwi.mjs +57 -0
- package/dist/r2-CJ8rD6Jb.mjs +128 -0
- package/dist/{radar-DrQLcbkq.mjs → radar-DgaxOdcd.mjs} +150 -150
- package/dist/raw-fetch-yY-wX5Xx.mjs +2 -0
- package/dist/realtime-DU09m7L7.mjs +172 -0
- package/dist/registrar-Cj7OfvGs.mjs +43 -0
- package/dist/registrar-sandbox-CA0Mua-j.mjs +56 -0
- package/dist/{registry-CHowrQsZ.mjs → registry-CRnk93ur.mjs} +1 -1
- package/dist/reporting-3kDVF5c8.mjs +14 -0
- package/dist/{request-headers-DiJeDAn1.mjs → request-headers-D_eQn93b.mjs} +1 -1
- package/dist/request-tracers-VBD4R3s3.mjs +4 -0
- package/dist/resolve-BpgXeklt.mjs +2 -0
- package/dist/resolve-C3FmNlSO.mjs +2 -0
- package/dist/resource-sharing-BtUF3psS.mjs +40 -0
- package/dist/resource-tagging--90INP8_.mjs +4 -0
- package/dist/rules-CcwPngVo.mjs +18 -0
- package/dist/rulesets-CfdruY82.mjs +37 -0
- package/dist/rum-RLkdfSL7.mjs +30 -0
- package/dist/run-CUNhH5CQ.mjs +2 -0
- package/dist/{run-BvHwWWUX.mjs → run-DASYqJsY.mjs} +1 -1
- package/dist/{schema-elj12WOx.mjs → schema-S3pUZwpI.mjs} +1 -1
- package/dist/{schema-flags-BzoBGPWk.mjs → schema-flags-CShtn7ya.mjs} +1 -1
- package/dist/scim-BZYsTPIL.mjs +18 -0
- package/dist/secrets-store-C_-FkSH_.mjs +24 -0
- package/dist/security-insights-BVBEaZmD.mjs +40 -0
- package/dist/security-txt--IoHrHee.mjs +9 -0
- package/dist/session-Cq3YNLoI.mjs +2 -0
- package/dist/shared-zNQNv1im.mjs +2 -0
- package/dist/smart-shield-CByC4_60.mjs +24 -0
- package/dist/snippets-DB-jiZAV.mjs +20 -0
- package/dist/{spawn-IysxuTNW.mjs → spawn-DQttFH05.mjs} +1 -1
- package/dist/spectrum-Bs2g1BmK.mjs +83 -0
- package/dist/speed-Bq4evEnJ.mjs +24 -0
- package/dist/sql-XGci7hZC.mjs +4 -0
- package/dist/src-GiuwAT55.mjs +125 -0
- package/dist/ssl-KJTLW1NR.mjs +45 -0
- package/dist/{startup-profile-CdJWgNjd.mjs → startup-profile-BOaseXnO.mjs} +1 -1
- package/dist/startup-profile-BwEZFVGS.mjs +2 -0
- package/dist/{state-BDSvdSdP.mjs → state-Boubf1X6.mjs} +1 -1
- package/dist/state-CODDG9Nx.mjs +2 -0
- package/dist/stream-BotgYspF.mjs +102 -0
- package/dist/submit-C5VytaHP.mjs +4 -0
- package/dist/{tags-CA1xMM96.mjs → tags-3Hq-B9qp.mjs} +2 -2
- package/dist/{telemetry-Cm39QJ-M.mjs → telemetry-3FJOXl_C.mjs} +1 -1
- package/dist/telemetry-BhKfwxyh.mjs +2 -0
- package/dist/tenant-BgX5onPc.mjs +10 -0
- package/dist/tenant-custom-nameservers-BVG8v1Xo.mjs +9 -0
- package/dist/theme-BGHWSKCw.mjs +6 -0
- package/dist/{tools-CSc5DmFi.mjs → tools-BCCRUENY.mjs} +1 -1
- package/dist/tunnels-CThOI3qH.mjs +29 -0
- package/dist/turnstile-BgZaUx-g.mjs +33 -0
- package/dist/ui-BtIBQeaG.mjs +2 -0
- package/dist/update-check-Yy7Ivq2V.mjs +2 -0
- package/dist/{update-check-CMXSdres.mjs → update-check-jb89ih_g.mjs} +1 -1
- package/dist/update-check-worker.mjs +1 -1
- package/dist/url-info-DQERN0Xq.mjs +4 -0
- package/dist/url-normalization-Cb1hofqv.mjs +9 -0
- package/dist/url-scanner-gHgx1bW7.mjs +16 -0
- package/dist/user-CdKzIuSi.mjs +112 -0
- package/dist/values-EwA8Sx0w.mjs +4 -0
- package/dist/vectorize-DejgIJIv.mjs +32 -0
- package/dist/version-B6MnUIqV.mjs +2 -0
- package/dist/waiting-rooms-BNR1HvAP.mjs +53 -0
- package/dist/web-assets-iglnzkTV.mjs +64 -0
- package/dist/web3-JBUU6IVt.mjs +28 -0
- package/dist/workers-CDp4kLTJ.mjs +40 -0
- package/dist/workers-builds-CSb9Dglt.mjs +14 -0
- package/dist/workers-for-platforms-D4srNZvt.mjs +40 -0
- package/dist/workers-vpc-LPC8TadH.mjs +13 -0
- package/dist/workflows-DN_VqWJC.mjs +52 -0
- package/dist/{wrangler-migration-C6FKHER1.mjs → wrangler-migration-DxTB5yPT.mjs} +1 -1
- package/dist/zaraz-DDErl5yc.mjs +22 -0
- package/dist/zero-trust-M88XX3uD.mjs +957 -0
- package/dist/zone-BsGvedmN.mjs +4 -0
- package/dist/zones-l_sRKrVl.mjs +124 -0
- package/package.json +17 -20
- package/dist/Page-BShsqCXr.mjs +0 -2
- package/dist/abuse-reports-BjU1s8cf.mjs +0 -24
- package/dist/access-C_G2MZnA.mjs +0 -2
- package/dist/account-tags-CaXDDeZ4.mjs +0 -15
- package/dist/accounts-BALwxDQY.mjs +0 -131
- package/dist/acm-CP9EaXQN.mjs +0 -15
- package/dist/addressing-DRlaxqrI.mjs +0 -93
- package/dist/agent-memory-vGhlfZBx.mjs +0 -34
- package/dist/ai-CJtbWfB9.mjs +0 -31
- package/dist/ai-audit-C0BJNqZZ.mjs +0 -6
- package/dist/ai-gateway-BQtv3U3x.mjs +0 -80
- package/dist/ai-search-DGU1Y5By.mjs +0 -79
- package/dist/ai-security-CFTaYk_X.mjs +0 -10
- package/dist/alerting-1hun27JC.mjs +0 -56
- package/dist/analytics-DXUSjvzT.mjs +0 -17
- package/dist/analytics_engine-CQsnL09C.mjs +0 -4
- package/dist/api-security-BXhrfR6-.mjs +0 -154
- package/dist/argo-LPUCTnee.mjs +0 -14
- package/dist/args-CfbYkeXd.mjs +0 -2
- package/dist/artifacts-Dt6easua.mjs +0 -43
- package/dist/audit-logs-CVznAM2Z.mjs +0 -4
- package/dist/auth-CGLsxbc6.mjs +0 -2
- package/dist/auth-CrmVwfpJ.mjs +0 -2
- package/dist/auth-eQr-kQCH.mjs +0 -2
- package/dist/banner-D03JEqRs.mjs +0 -2
- package/dist/basin-catalog-ZQICw-zF.mjs +0 -46
- package/dist/billing-Dy1-dV_B.mjs +0 -23
- package/dist/bot-management-DTgPwL7O.mjs +0 -9
- package/dist/botnet-feed-xb98Cj3Y.mjs +0 -11
- package/dist/brand-protection-Ck3okE2k.mjs +0 -27
- package/dist/browser-run-DJGJSzFX.mjs +0 -42
- package/dist/build-B1L6xrgC.mjs +0 -2
- package/dist/builds-CYxcZtkG.mjs +0 -71
- package/dist/cache-D9tSfovH.mjs +0 -45
- package/dist/certificate-authorities-CpiveTFC.mjs +0 -6
- package/dist/cf-BxsXrVeh.mjs +0 -18
- package/dist/chunk-NDZDTP46-Bjx_wtJe.mjs +0 -361
- package/dist/cli-types-9oYmRTHJ.mjs +0 -2
- package/dist/client-certificates-CF6YZyvP.mjs +0 -13
- package/dist/client-side-security-BLoe9kS5.mjs +0 -63
- package/dist/cloud-connector-DXRUHsjt.mjs +0 -6
- package/dist/cloudforce-one-CBLxXi6v.mjs +0 -447
- package/dist/command-DwXiDOeH.mjs +0 -2
- package/dist/command-UiHLJ8Ji.mjs +0 -2
- package/dist/connector-interrupts-DelTmNyw.mjs +0 -6
- package/dist/connector-telemetry-events-BwxR3G8d.mjs +0 -6
- package/dist/connector-telemetry-snapshots-Bqq-hrpJ.mjs +0 -6
- package/dist/connectors-D-m3rEpk.mjs +0 -15
- package/dist/containers-CVNfEjJs.mjs +0 -78
- package/dist/containers-DeoZyeQe.mjs +0 -375
- package/dist/content-scan-W0BNzbQp.mjs +0 -14
- package/dist/cps-BZ6hqRb5.mjs +0 -6
- package/dist/csamScanner-Bo1t3CLh.mjs +0 -10
- package/dist/ct-alerting-E03faC7p.mjs +0 -5
- package/dist/custom-certificates-CUySSPzi.mjs +0 -17
- package/dist/custom-csrs-gNpWkJPQ.mjs +0 -11
- package/dist/custom-hostnames-abGBAbx7.mjs +0 -27
- package/dist/custom-nameservers-BgNXol1P.mjs +0 -9
- package/dist/custom-pages-DMKX3aoD.mjs +0 -21
- package/dist/d1-CE08YqYk.mjs +0 -93
- package/dist/dcv-delegation-B5YUEWu0.mjs +0 -4
- package/dist/deploy-context-Dr6bxNcB.mjs +0 -56
- package/dist/diagnostics-UMbG6m4n.mjs +0 -15
- package/dist/dist-BHEmAAHr.mjs +0 -487
- package/dist/dls-DIl16mLp.mjs +0 -17
- package/dist/dns-QUpgljRG.mjs +0 -144
- package/dist/dns-firewall-BZwJXHLj.mjs +0 -71
- package/dist/durable-objects-BCj4ykpU.mjs +0 -6
- package/dist/email-auth-DlHIYhCk.mjs +0 -6
- package/dist/email-routing-UKVS4DYy.mjs +0 -45
- package/dist/email-security-CZjfRIg0.mjs +0 -158
- package/dist/email-sending-Dquc880C.mjs +0 -47
- package/dist/error-sanitization-DE_zSrXw.mjs +0 -2
- package/dist/error-sanitization-DOCQ9Ykh.mjs +0 -2
- package/dist/errors-_sob7Ihu.mjs +0 -3
- package/dist/fieldExtractors-BbwDRquU.mjs +0 -9
- package/dist/firewall--mTfDnCJ.mjs +0 -36
- package/dist/flagship-cfoSwwM9.mjs +0 -28
- package/dist/fraud-Dcsq3EYK.mjs +0 -22
- package/dist/google-tag-gateway-DPKSkZQi.mjs +0 -6
- package/dist/healthchecks-D78hIIBC.mjs +0 -22
- package/dist/hyperdrive-qWACKfA4.mjs +0 -37
- package/dist/iam-Bvg_PayW.mjs +0 -52
- package/dist/images-DI_lEZ4L.mjs +0 -71
- package/dist/intel-BxElBUMP.mjs +0 -76
- package/dist/ips-DWoaKxi7.mjs +0 -4
- package/dist/k2-tFjaftl-.mjs +0 -11
- package/dist/keyless-certificates-BrvxHU4J.mjs +0 -13
- package/dist/keys-DcwTYKRf.mjs +0 -4
- package/dist/kv-htXS-7uP.mjs +0 -15
- package/dist/leaked-credential-checks-bvGrLOmQ.mjs +0 -18
- package/dist/load-balancers-BNTUt4yG.mjs +0 -76
- package/dist/local-DlDumOSC.mjs +0 -2
- package/dist/login-BGF_I_LT.mjs +0 -5
- package/dist/login-Ccw-mYwT.mjs +0 -2
- package/dist/logo-matches-tE8LTKgg.mjs +0 -6
- package/dist/logos-Bj845Mcw.mjs +0 -7
- package/dist/logpush-Cs8JdvKi.mjs +0 -46
- package/dist/logs-C92XZvNu.mjs +0 -36
- package/dist/magic-cloud-networking-hNp5MMw-.mjs +0 -71
- package/dist/magic-network-monitoring-68GuWAnv.mjs +0 -36
- package/dist/magic-transit-DNd7gu4j.mjs +0 -383
- package/dist/managed-defense-B_wCAuFD.mjs +0 -18
- package/dist/managed-transforms-DZdxHPOh.mjs +0 -9
- package/dist/matches-B65CkflD.mjs +0 -6
- package/dist/mcp-DrJW5ayK.mjs +0 -32
- package/dist/mesh-DfVzYTn1.mjs +0 -26
- package/dist/monetization-BGaI8CMO.mjs +0 -20
- package/dist/mtls-certificates-BsU2emDD.mjs +0 -13
- package/dist/network-BEMD8P0U.mjs +0 -50
- package/dist/network-interconnects-DMu_fcbo.mjs +0 -68
- package/dist/o11y-C1a4gDGF.mjs +0 -93
- package/dist/oauth-Bj5Ne1o8.mjs +0 -9
- package/dist/oauth-clients-p4Etdqy_.mjs +0 -16
- package/dist/oauth-scopes-B2IabFza.mjs +0 -4
- package/dist/organization-CdXt7AVZ.mjs +0 -75
- package/dist/organizations-5S6xEp7T.mjs +0 -4
- package/dist/origin-ca-certificates-_VJAoK1D.mjs +0 -11
- package/dist/origin-post-quantum-encryption-GcldDsT2.mjs +0 -6
- package/dist/origin-tls-client-auth-DZHld9fA.mjs +0 -30
- package/dist/output-BOe-3AQG.mjs +0 -2
- package/dist/page-rules-o1tAMMsD.mjs +0 -39
- package/dist/pages-CmiOhjSl.mjs +0 -54
- package/dist/pay-per-crawl-BsnOxGYU.mjs +0 -38
- package/dist/pay-per-use-BXWMCSyE.mjs +0 -33
- package/dist/pipelines-DWLQC0F6.mjs +0 -44
- package/dist/precursor-B6DjBib6.mjs +0 -4
- package/dist/previews-dUKEBGSM.mjs +0 -4
- package/dist/progress-BtkTVcHI.mjs +0 -2
- package/dist/prompt-RlgRrmbm.mjs +0 -3
- package/dist/queries-yLwoJRHV.mjs +0 -9
- package/dist/queues-CnJRaE1o.mjs +0 -57
- package/dist/r2-CuC6-zQX.mjs +0 -128
- package/dist/raw-fetch-B4NvWuZD.mjs +0 -2
- package/dist/realtime-CjsnzHxD.mjs +0 -172
- package/dist/registrar-BgOsxTnX.mjs +0 -43
- package/dist/registrar-sandbox-3ikBD9fB.mjs +0 -56
- package/dist/reporting-hE127s5r.mjs +0 -14
- package/dist/request-tracers-BCwLxmPN.mjs +0 -4
- package/dist/resolve-CaTBV-c6.mjs +0 -2
- package/dist/resolve-DCGSzUDQ.mjs +0 -2
- package/dist/resource-sharing-2qvWUuMa.mjs +0 -40
- package/dist/resource-tagging-Dwx7iL3v.mjs +0 -4
- package/dist/rules-DxVQ6jIg.mjs +0 -18
- package/dist/rulesets-Cdh8YjI9.mjs +0 -37
- package/dist/rum-a4CMq4Qu.mjs +0 -30
- package/dist/run-CkbrPJPx.mjs +0 -2
- package/dist/scim-B8XlXl8v.mjs +0 -18
- package/dist/secrets-store-Cqhedh_i.mjs +0 -24
- package/dist/security-insights-le2-DteL.mjs +0 -40
- package/dist/security-txt-cCArWXur.mjs +0 -9
- package/dist/session-C1BhT1ZJ.mjs +0 -2
- package/dist/shared-BPjcpXuA.mjs +0 -2
- package/dist/smart-shield-Csyh8hwB.mjs +0 -24
- package/dist/snippets-DUWx25q6.mjs +0 -20
- package/dist/spectrum-Da3UYSOR.mjs +0 -83
- package/dist/speed-NxlMnB2e.mjs +0 -24
- package/dist/sql-CNdHAlQ8.mjs +0 -4
- package/dist/src-JfLDUxFr.mjs +0 -125
- package/dist/ssl-BtaX2WEJ.mjs +0 -45
- package/dist/startup-profile-B2l0ChVu.mjs +0 -2
- package/dist/state-JB4_BU1o.mjs +0 -2
- package/dist/stream-C1Ijjzn4.mjs +0 -102
- package/dist/submit-MdkuU_Pt.mjs +0 -4
- package/dist/telemetry-BsYO3nxG.mjs +0 -2
- package/dist/tenant-BB6Oszcl.mjs +0 -10
- package/dist/tenant-custom-nameservers-BsbgYAEo.mjs +0 -9
- package/dist/theme-CQ_TYifs.mjs +0 -6
- package/dist/tunnels-CRFtyHWz.mjs +0 -29
- package/dist/turnstile-DBXWo_Xe.mjs +0 -33
- package/dist/ui-YmjF66Ct.mjs +0 -5
- package/dist/update-check-C2oVEbXx.mjs +0 -2
- package/dist/url-info-t-XAs0Mk.mjs +0 -4
- package/dist/url-normalization-Cs4F8e0a.mjs +0 -9
- package/dist/url-scanner-CBIoDbTx.mjs +0 -16
- package/dist/user-CevdOMoa.mjs +0 -112
- package/dist/values-CjNlkbIh.mjs +0 -4
- package/dist/vectorize-9d9tPmg5.mjs +0 -32
- package/dist/version-BdVUXLnK.mjs +0 -2
- package/dist/waiting-rooms--5WmrWb3.mjs +0 -53
- package/dist/web-assets-BHot_MU8.mjs +0 -64
- package/dist/web3-CYfWAF6b.mjs +0 -28
- package/dist/workers-S17M0n3h.mjs +0 -40
- package/dist/workers-builds-Dw7ho3So.mjs +0 -14
- package/dist/workers-for-platforms-A3yjyLh3.mjs +0 -40
- package/dist/workers-vpc-BZ2xXtC3.mjs +0 -13
- package/dist/workflows-BgGrVpSR.mjs +0 -43
- package/dist/zaraz-BsD2dMI3.mjs +0 -22
- package/dist/zero-trust-CA3iGQbG.mjs +0 -837
- package/dist/zone-D2M4EZD0.mjs +0 -4
- package/dist/zones-BoOC_JzC.mjs +0 -124
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import"./api-eMuS5GI1.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{n as t}from"./auth-C6u9qIGO.mjs";import{i as n}from"./context-A6T-NKPI.mjs";import{t as r}from"./output-Co4xdFf6.mjs";import{t as i}from"./dry-run-C2KjGX10.mjs";import{t as a}from"./progress-D5po7ScB.mjs";import{t as o}from"./run-DASYqJsY.mjs";import"./telemetry-BhKfwxyh.mjs";import{n as s,t as c}from"./body-parser-DkHKPkJ7.mjs";var l={method:`PATCH`,path:t=>e`/zones/${t.zone_id}/email/auth/dmarc-reports`,body:`json`};function u(e){return e.usage("$0 email-auth dmarc-reports edit\n\nUpdates the DMARC report configuration for a zone. At least one of `enabled` or `skip_wizard` must be provided. When enabling, the handler will ensure the DMARC RUA record exists in DNS.").option(`enabled`,{type:`boolean`,description:`Enable or disable DMARC reports for this zone`}).option(`skip-wizard`,{type:`boolean`,description:`Skip the DMARC setup wizard`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Request body for PATCH /dmarc-reports`})}const d={command:`edit`,describe:`Configure DMARC Reports`,builder:u,handler:async e=>o({command:`email-auth dmarc-reports edit`,classification:{safeFlags:[`enabled`,`skip-wizard`,`dry-run`]}},e,async()=>{if(e.dryRun){i({command:`cf email-auth dmarc-reports edit`,method:`PATCH`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/email/auth/dmarc-reports`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``)},bodyKind:`json`,body:e.body===void 0?c({enabled:e.enabled,skip_wizard:e[`skip-wizard`]}):s(e.body)});return}let o=await t(e),u=await n({zone:e.zone},o,{quiet:e.quiet});if(e.zoneId=u,e.body){let t=s(e.body),n=await a(`Updating`,async()=>o.send(l,{body:t,zone_id:u}));r(n,{successLabel:`Updated`});return}let d=c({enabled:e.enabled,skip_wizard:e[`skip-wizard`]}),f=await a(`Updating`,async()=>o.send(l,{body:d,zone_id:u}));r(f,{successLabel:`Updated`})})};var f={method:`GET`,path:t=>e`/zones/${t.zone_id}/email/auth/dmarc-reports`};function p(e){return e.usage(`$0 email-auth dmarc-reports get
|
|
3
|
+
|
|
4
|
+
Retrieves the current DMARC report configuration and status for a zone. Returns the RUA prefix, enabled status, approved sources, and DNS records.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const m={command:`get`,describe:`Get DMARC Report Status`,builder:p,handler:async e=>o({command:`email-auth dmarc-reports get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){i({command:`cf email-auth dmarc-reports get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/email/auth/dmarc-reports`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``)},bodyKind:`none`});return}let o=await t(e),s=await n({zone:e.zone},o,{quiet:e.quiet});e.zoneId=s;let c=await a(`Loading`,async()=>o.send(f,{zone_id:s}));r(c,{successLabel:`Loaded`})})},h={command:`dmarc-reports`,describe:`Operations for dmarc-reports`,builder:e=>e.command(d).command(m).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var g={method:`GET`,path:t=>e`/zones/${t.zone_id}/email/auth/spf/inspect`,query:[`id`]};function _(e){return e.usage(`$0 email-auth spf inspect
|
|
5
|
+
|
|
6
|
+
Inspects a specific SPF TXT record and returns a parsed tree structure in the spflimit-worker format. The record ID must be provided via the \`id\` query parameter. Returns a recursive tree showing: - Parsed components with their qualifiers and types - Nested includes recursively resolved within components - Per-component and total lookup counts - Detailed error information with context`).option(`id`,{type:`string`,description:`DNS record ID (rec_tag) to inspect`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const v={command:`inspect`,describe:`Inspect SPF Record`,builder:_,handler:async e=>o({command:`email-auth spf inspect`,classification:{safeFlags:[`dry-run`]}},e,async()=>{let o={id:e.id};if(e.dryRun){i({command:`cf email-auth spf inspect`,method:`GET`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/email/auth/spf/inspect`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``)},query:o,bodyKind:`none`});return}let s=await t(e),c=await n({zone:e.zone},s,{quiet:e.quiet});e.zoneId=c;let l=await a(`Loading`,async()=>s.send(g,{zone_id:c,...o}));r(l,{successLabel:`Loaded`})})},y={command:`spf`,describe:`Operations for spf`,builder:e=>e.command(v).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},b={command:`email-auth`,describe:`email-auth`,builder:e=>e.command(h).command(y).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};export{b as default};
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import"./api-eMuS5GI1.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{t}from"./local-Dil4fTWX.mjs";import{n}from"./auth-C6u9qIGO.mjs";import{a as r,i,t as a}from"./context-A6T-NKPI.mjs";import{t as o}from"./output-Co4xdFf6.mjs";import{t as s}from"./dry-run-C2KjGX10.mjs";import{t as c}from"./progress-D5po7ScB.mjs";import{t as l}from"./run-DASYqJsY.mjs";import"./telemetry-BhKfwxyh.mjs";import{n as u,r as d,t as f}from"./body-parser-DkHKPkJ7.mjs";import{n as p}from"./input-validation-D7z60HJH.mjs";import{a as m,i as h,n as g}from"./prompt-BAJpE3jV.mjs";var _={method:`POST`,path:t=>e`/accounts/${t.account_id}/email/routing/addresses`,body:`json`,errors:{422:`UnprocessableEntityError`}};function v(e){return e.usage(`$0 email-routing addresses create
|
|
3
|
+
|
|
4
|
+
Create a destination address to forward your emails to. Destination addresses need to be verified before they can be used.`).option(`email`,{type:`string`,description:`The contact email address of the user.`}).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 y={command:`create`,describe:`Create a destination address`,builder:v,handler:async e=>l({command:`email-routing addresses create`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await r();s({command:`cf email-routing addresses create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/email/routing/addresses`,pathParams:{},bodyKind:`json`,body:e.body===void 0?f({email:p(e.email,`email`,`text`)}):u(e.body)});return}let i=await n(e),l=e.local?t:await a();if(e.accountId=l,e.body){let t=u(e.body),n=await c(`Creating`,async()=>i.send(_,{body:t,account_id:l}));o(n,{successLabel:`Created`});return}e.email===void 0&&(e.email=await m(`email`,`The contact email address of the user.`));let d=f({email:p(e.email,`email`,`text`)}),h=await c(`Creating`,async()=>i.send(_,{body:d,account_id:l}));o(h,{successLabel:`Created`})})};var b={method:`DELETE`,path:t=>e`/accounts/${t.account_id}/email/routing/addresses/${t.destination_address_identifier}`,errors:{404:`NotFoundError`}};function x(e){return e.usage(`$0 email-routing addresses delete <destination-address-identifier>
|
|
5
|
+
|
|
6
|
+
Deletes a specific destination address.`).positional(`destination-address-identifier`,{type:`string`,description:`Destination address 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 S={command:`delete <destination-address-identifier>`,describe:`Delete destination address`,builder:x,handler:async e=>l({command:`email-routing addresses delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{if(e.dryRun){let t=await r();s({command:`cf email-routing addresses delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/email/routing/addresses/${e[`destination-address-identifier`]==null?`<destination-address-identifier>`:encodeURIComponent(String(e[`destination-address-identifier`]))}`,pathParams:{"destination-address-identifier":String(e[`destination-address-identifier`]??``)},bodyKind:`none`});return}let i=await n(e),l=e.local?t:await a();if(e.accountId=l,!await g({force:!!e.force,message:`This operation permanently deletes a destination address.`})){process.stderr.write(`Aborted.
|
|
7
|
+
`);return}let u=await c(`Deleting`,async()=>i.send(b,{account_id:l,destination_address_identifier:e[`destination-address-identifier`]}));o(u,{successLabel:`Deleted`})})};var ee={method:`GET`,path:t=>e`/accounts/${t.account_id}/email/routing/addresses/${t.destination_address_identifier}`,errors:{404:`NotFoundError`}};function te(e){return e.usage(`$0 email-routing addresses get <destination-address-identifier>
|
|
8
|
+
|
|
9
|
+
Gets information for a specific destination email already created.`).positional(`destination-address-identifier`,{type:`string`,description:`Destination address identifier.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const ne={command:`get <destination-address-identifier>`,describe:`Get a destination address`,builder:te,handler:async e=>l({command:`email-routing addresses get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await r();s({command:`cf email-routing addresses get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/email/routing/addresses/${e[`destination-address-identifier`]==null?`<destination-address-identifier>`:encodeURIComponent(String(e[`destination-address-identifier`]))}`,pathParams:{"destination-address-identifier":String(e[`destination-address-identifier`]??``)},bodyKind:`none`});return}let i=await n(e),l=e.local?t:await a();e.accountId=l;let u=await c(`Loading`,async()=>i.send(ee,{account_id:l,destination_address_identifier:e[`destination-address-identifier`]}));o(u,{successLabel:`Loaded`})})};var re={method:`GET`,path:t=>e`/accounts/${t.account_id}/email/routing/addresses`,query:[`page`,`per_page`,`direction`,`verified`],errors:{403:`ForbiddenError`}};function ie(e){return e.usage(`$0 email-routing addresses list
|
|
10
|
+
|
|
11
|
+
Lists destination addresses configured for Email Routing in an account.`).option(`page`,{type:`number`,description:`Page number of paginated results.`}).option(`per-page`,{type:`number`,description:`Maximum number of results per page.`}).option(`direction`,{type:`string`,description:`Sorts results in an ascending or descending order.`,choices:[`asc`,`desc`]}).option(`verified`,{type:`string`,description:`Filter by verified destination addresses.`,choices:[`true`,`false`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const ae={command:`list`,describe:`List destination addresses`,builder:ie,handler:async e=>l({command:`email-routing addresses list`,classification:{safeFlags:[`direction`,`verified`,`dry-run`]}},e,async()=>{let i={page:e.page,per_page:e[`per-page`],direction:e.direction,verified:e.verified};if(e.dryRun){let e=await r();s({command:`cf email-routing addresses list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}/email/routing/addresses`,pathParams:{},query:i,bodyKind:`none`});return}let l=await n(e),u=e.local?t:await a();e.accountId=u;let d=await c(`Loading`,async()=>l.send(re,{account_id:u,...i}));o(d,{successLabel:`Loaded`})})};var C={method:`PATCH`,path:t=>e`/accounts/${t.account_id}/email/routing/addresses/${t.destination_address_identifier}`,body:`json`,errors:{404:`NotFoundError`}};function w(e){return e.usage(`$0 email-routing addresses update <destination-address-identifier>
|
|
12
|
+
|
|
13
|
+
Updates the status of a specific destination address.`).positional(`destination-address-identifier`,{type:`string`,description:`Destination address identifier.`,demandOption:!0}).option(`status`,{type:`string`,description:`Destination address status. Non-admin callers may only set verified addresses back to unverified; setting to verified requires admin privileges.`,choices:[`unverified`,`verified`]}).coerce(`status`,e=>p(e,`status`,`text`)).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const T={command:`update <destination-address-identifier>`,describe:`Update destination address`,builder:w,handler:async e=>l({command:`email-routing addresses update`,classification:{safeFlags:[`status`,`dry-run`]}},e,async()=>{if(e.dryRun){let t=await r();s({command:`cf email-routing addresses update`,method:`PATCH`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/email/routing/addresses/${e[`destination-address-identifier`]==null?`<destination-address-identifier>`:encodeURIComponent(String(e[`destination-address-identifier`]))}`,pathParams:{"destination-address-identifier":String(e[`destination-address-identifier`]??``)},bodyKind:`json`,body:e.body===void 0?f({status:e.status}):u(e.body)});return}let i=await n(e),l=e.local?t:await a();if(e.accountId=l,e.body){let t=u(e.body),n=await c(`Updating`,async()=>i.send(C,{body:t,account_id:l,destination_address_identifier:e[`destination-address-identifier`]}));o(n,{successLabel:`Updated`});return}e.status===void 0&&(e.status=await h(`status`,`Destination address status. Non-admin callers may only set verified addresses back to unverified; setting to verified requires admin privileges.`,[`unverified`,`verified`]));let d=f({status:e.status}),p=await c(`Updating`,async()=>i.send(C,{body:d,account_id:l,destination_address_identifier:e[`destination-address-identifier`]}));o(p,{successLabel:`Updated`})})},E={command:`addresses`,describe:`Verified destination email addresses that can receive forwarded mail`,builder:e=>e.command(y).command(S).command(ne).command(ae).command(T).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var D={method:`DELETE`,path:t=>e`/zones/${t.zone_id}/email/routing/dns`,body:`json`,errors:{403:`ForbiddenError`}};function O(e){return e.usage(`$0 email-routing disable
|
|
14
|
+
|
|
15
|
+
Disable your Email Routing zone. Also removes additional MX records previously required for Email Routing to work.`).option(`name`,{type:`string`,description:`Domain of your zone.`}).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 k={command:`disable`,describe:`Disable Email Routing`,builder:O,handler:async e=>l({command:`email-routing disable`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{if(e.dryRun){s({command:`cf email-routing disable`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/email/routing/dns`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``)},bodyKind:`json`,body:e.body===void 0?f({name:p(e.name,`name`,`text`)}):u(e.body)});return}let t=await n(e),r=await i({zone:e.zone},t,{quiet:e.quiet});if(e.zoneId=r,!await g({force:!!e.force,message:`This operation disables Email Routing and removes its DNS records.`})){process.stderr.write(`Aborted.
|
|
16
|
+
`);return}if(e.body){let n=u(e.body),i=await c(`Deleting`,async()=>t.send(D,{body:n,zone_id:r}));o(i,{successLabel:`Deleted`});return}let a=f({name:p(e.name,`name`,`text`)}),l=await c(`Deleting`,async()=>t.send(D,{body:a,zone_id:r}));o(l,{successLabel:`Deleted`})})};var A={method:`GET`,path:t=>e`/zones/${t.zone_id}/email/routing/dns`,query:[`subdomain`],errors:{403:`ForbiddenError`}};function j(e){return e.usage(`$0 email-routing dns get
|
|
17
|
+
|
|
18
|
+
Show the DNS records needed to configure your Email Routing zone.`).option(`subdomain`,{type:`string`,description:`Deprecated. When supplied, the response shape differs from the documented default and is not modeled in generated SDKs. Do not rely on this parameter.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const M={command:`get`,describe:`Email Routing - DNS settings`,builder:j,handler:async e=>l({command:`email-routing dns get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{let t={subdomain:e.subdomain};if(e.dryRun){s({command:`cf email-routing dns get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/email/routing/dns`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``)},query:t,bodyKind:`none`});return}let r=await n(e),a=await i({zone:e.zone},r,{quiet:e.quiet});e.zoneId=a;let l=await c(`Loading`,async()=>r.send(A,{zone_id:a,...t}));o(l,{successLabel:`Loaded`})})};var N={method:`PATCH`,path:t=>e`/zones/${t.zone_id}/email/routing/dns`,body:`json`,errors:{403:`ForbiddenError`}};function P(e){return e.usage(`$0 email-routing dns unlock
|
|
19
|
+
|
|
20
|
+
Unlock MX Records previously locked by Email Routing.`).option(`name`,{type:`string`,description:`Domain of your zone.`}).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 F={command:`unlock`,describe:`Unlock Email Routing DNS records`,builder:P,handler:async e=>l({command:`email-routing dns unlock`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){s({command:`cf email-routing dns unlock`,method:`PATCH`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/email/routing/dns`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``)},bodyKind:`json`,body:e.body===void 0?f({name:p(e.name,`name`,`text`)}):u(e.body)});return}let t=await n(e),r=await i({zone:e.zone},t,{quiet:e.quiet});if(e.zoneId=r,e.body){let n=u(e.body),i=await c(`Updating`,async()=>t.send(N,{body:n,zone_id:r}));o(i,{successLabel:`Updated`});return}let a=f({name:p(e.name,`name`,`text`)}),l=await c(`Updating`,async()=>t.send(N,{body:a,zone_id:r}));o(l,{successLabel:`Updated`})})},I={command:`dns`,describe:`Inspect or unlock the DNS records required by Email Routing`,builder:e=>e.command(M).command(F).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var L={method:`POST`,path:t=>e`/zones/${t.zone_id}/email/routing/dns`,body:`json`,errors:{403:`ForbiddenError`}};function R(e){return e.usage(`$0 email-routing enable
|
|
21
|
+
|
|
22
|
+
Enable your Email Routing zone. Add and lock the necessary MX and SPF records.`).option(`name`,{type:`string`,description:`Domain of your zone.`}).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:`enable`,describe:`Enable Email Routing`,builder:R,handler:async e=>l({command:`email-routing enable`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){s({command:`cf email-routing enable`,method:`POST`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/email/routing/dns`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``)},bodyKind:`json`,body:e.body===void 0?f({name:p(e.name,`name`,`text`)}):u(e.body)});return}let t=await n(e),r=await i({zone:e.zone},t,{quiet:e.quiet});if(e.zoneId=r,e.body){let n=u(e.body),i=await c(`Creating`,async()=>t.send(L,{body:n,zone_id:r}));o(i,{successLabel:`Created`});return}let a=f({name:p(e.name,`name`,`text`)}),l=await c(`Creating`,async()=>t.send(L,{body:a,zone_id:r}));o(l,{successLabel:`Created`})})};var B={method:`GET`,path:t=>e`/zones/${t.zone_id}/email/routing/rules/catch_all`,errors:{403:`ForbiddenError`}};function V(e){return e.usage(`$0 email-routing rules catch-all get
|
|
23
|
+
|
|
24
|
+
Get information on the default catch-all routing rule.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const H={command:`get`,describe:`Get catch-all rule`,builder:V,handler:async e=>l({command:`email-routing rules catch-all get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){s({command:`cf email-routing rules catch-all get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/email/routing/rules/catch_all`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``)},bodyKind:`none`});return}let t=await n(e),r=await i({zone:e.zone},t,{quiet:e.quiet});e.zoneId=r;let a=await c(`Loading`,async()=>t.send(B,{zone_id:r}));o(a,{successLabel:`Loaded`})})};var U={method:`PUT`,path:t=>e`/zones/${t.zone_id}/email/routing/rules/catch_all`,body:`json`,errors:{400:`BadRequestError`,422:`UnprocessableEntityError`}};function W(e){return e.usage(`$0 email-routing rules catch-all update
|
|
25
|
+
|
|
26
|
+
Enable or disable catch-all routing rule, or change action to forward to a specific destination address. Forward actions require exactly one verified destination address.`).option(`actions`,{type:`string`,description:`List actions for the catch-all routing rule. Provide as a JSON array of objects or @path/to/file.json.`}).option(`enabled`,{type:`boolean`,description:`Routing rule status.`}).option(`matchers`,{type:`string`,description:`List of matchers for the catch-all routing rule. Provide as a JSON array of objects or @path/to/file.json.`}).option(`name`,{type:`string`,description:`Routing rule name.`}).option(`owner-worker-tag`,{type:`string`,description:"Public tag (script_tag) of the Worker that owns this rule. Required when\n`source` is `wrangler`.\n"}).option(`source`,{type:`string`,description:"Who manages the rule. `api` covers dashboard, generic API, and Terraform;\n`wrangler` means the rule is managed by a Worker's wrangler.jsonc. Defaults\nto `api` when omitted on write.\n",choices:[`api`,`wrangler`]}).coerce(`source`,e=>p(e,`source`,`text`)).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const G={command:`update`,describe:`Update catch-all rule`,builder:W,handler:async e=>l({command:`email-routing rules catch-all update`,classification:{safeFlags:[`enabled`,`source`,`dry-run`]}},e,async()=>{if(e.dryRun){s({command:`cf email-routing rules catch-all update`,method:`PUT`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/email/routing/rules/catch_all`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``)},bodyKind:`json`,body:e.body===void 0?f({actions:d(e.actions,`actions`),enabled:e.enabled,matchers:d(e.matchers,`matchers`),name:p(e.name,`name`,`text`),owner_worker_tag:p(e[`owner-worker-tag`],`owner-worker-tag`,`text`),source:e.source}):u(e.body)});return}let t=await n(e),r=await i({zone:e.zone},t,{quiet:e.quiet});if(e.zoneId=r,e.body){let n=u(e.body),i=await c(`Updating`,async()=>t.send(U,{body:n,zone_id:r}));o(i,{successLabel:`Updated`});return}if(e.actions===void 0)throw Error(`--actions is required (or pass --body with this field set).`);if(e.matchers===void 0)throw Error(`--matchers is required (or pass --body with this field set).`);let a=f({actions:d(e.actions,`actions`),enabled:e.enabled,matchers:d(e.matchers,`matchers`),name:p(e.name,`name`,`text`),owner_worker_tag:p(e[`owner-worker-tag`],`owner-worker-tag`,`text`),source:e.source}),l=await c(`Updating`,async()=>t.send(U,{body:a,zone_id:r}));o(l,{successLabel:`Updated`})})},K={command:`catch-all`,describe:`Operations for rules.catch-all`,builder:e=>e.command(H).command(G).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var q={method:`POST`,path:t=>e`/zones/${t.zone_id}/email/routing/rules`,body:`json`,errors:{400:`BadRequestError`,422:`UnprocessableEntityError`}};function J(e){return e.usage(`$0 email-routing rules create
|
|
27
|
+
|
|
28
|
+
Rules consist of a set of criteria for matching emails (such as an email being sent to a specific custom email address) plus a set of actions to take on the email (like forwarding it to a specific destination address). Forward actions require exactly one verified destination address.`).option(`actions`,{type:`string`,description:`List actions patterns. Provide as a JSON array of objects or @path/to/file.json.`}).option(`enabled`,{type:`boolean`,description:`Routing rule status.`,default:!0}).option(`matchers`,{type:`string`,description:`Matching patterns to forward to your actions. Provide as a JSON array of objects or @path/to/file.json.`}).option(`name`,{type:`string`,description:`Routing rule name.`}).option(`owner-worker-tag`,{type:`string`,description:"Public tag (script_tag) of the Worker that owns this rule. Required when\n`source` is `wrangler`.\n"}).option(`priority`,{type:`number`,description:`Priority of the routing rule.`,default:0}).option(`source`,{type:`string`,description:"Who manages the rule. `api` covers dashboard, generic API, and Terraform;\n`wrangler` means the rule is managed by a Worker's wrangler.jsonc. Defaults\nto `api` when omitted on write.\n",choices:[`api`,`wrangler`],default:`api`}).coerce(`source`,e=>p(e,`source`,`text`)).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const oe={command:`create`,describe:`Create routing rule`,builder:J,handler:async e=>l({command:`email-routing rules create`,classification:{safeFlags:[`enabled`,`source`,`dry-run`]}},e,async()=>{if(e.dryRun){s({command:`cf email-routing rules create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/email/routing/rules`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``)},bodyKind:`json`,body:e.body===void 0?f({actions:d(e.actions,`actions`),enabled:e.enabled,matchers:d(e.matchers,`matchers`),name:p(e.name,`name`,`text`),owner_worker_tag:p(e[`owner-worker-tag`],`owner-worker-tag`,`text`),priority:e.priority,source:e.source}):u(e.body)});return}let t=await n(e),r=await i({zone:e.zone},t,{quiet:e.quiet});if(e.zoneId=r,e.body){let n=u(e.body),i=await c(`Creating`,async()=>t.send(q,{body:n,zone_id:r}));o(i,{successLabel:`Created`});return}if(e.actions===void 0)throw Error(`--actions is required (or pass --body with this field set).`);if(e.matchers===void 0)throw Error(`--matchers is required (or pass --body with this field set).`);let a=f({actions:d(e.actions,`actions`),enabled:e.enabled,matchers:d(e.matchers,`matchers`),name:p(e.name,`name`,`text`),owner_worker_tag:p(e[`owner-worker-tag`],`owner-worker-tag`,`text`),priority:e.priority,source:e.source}),l=await c(`Creating`,async()=>t.send(q,{body:a,zone_id:r}));o(l,{successLabel:`Created`})})};var se={method:`DELETE`,path:t=>e`/zones/${t.zone_id}/email/routing/rules/${t.rule_identifier}`,errors:{404:`NotFoundError`}};function ce(e){return e.usage(`$0 email-routing rules delete <rule-identifier>
|
|
29
|
+
|
|
30
|
+
Deletes a routing rule so matching incoming messages are no longer forwarded by it.`).positional(`rule-identifier`,{type:`string`,description:`Routing rule 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 le={command:`delete <rule-identifier>`,describe:`Delete routing rule`,builder:ce,handler:async e=>l({command:`email-routing rules delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{if(e.dryRun){s({command:`cf email-routing rules delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/email/routing/rules/${e[`rule-identifier`]==null?`<rule-identifier>`:encodeURIComponent(String(e[`rule-identifier`]))}`,pathParams:{"rule-identifier":String(e[`rule-identifier`]??``),"zone-id":String(e.zone??e[`zone-id`]??``)},bodyKind:`none`});return}let t=await n(e),r=await i({zone:e.zone},t,{quiet:e.quiet});if(e.zoneId=r,!await g({force:!!e.force,message:`This operation permanently deletes an Email Routing rule.`})){process.stderr.write(`Aborted.
|
|
31
|
+
`);return}let a=await c(`Deleting`,async()=>t.send(se,{zone_id:r,rule_identifier:e[`rule-identifier`]}));o(a,{successLabel:`Deleted`})})};var ue={method:`GET`,path:t=>e`/zones/${t.zone_id}/email/routing/rules/${t.rule_identifier}`,errors:{404:`NotFoundError`}};function de(e){return e.usage(`$0 email-routing rules get <rule-identifier>
|
|
32
|
+
|
|
33
|
+
Get information for a specific routing rule already created.`).positional(`rule-identifier`,{type:`string`,description:`Routing rule identifier.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const fe={command:`get <rule-identifier>`,describe:`Get routing rule`,builder:de,handler:async e=>l({command:`email-routing rules get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){s({command:`cf email-routing rules get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/email/routing/rules/${e[`rule-identifier`]==null?`<rule-identifier>`:encodeURIComponent(String(e[`rule-identifier`]))}`,pathParams:{"rule-identifier":String(e[`rule-identifier`]??``),"zone-id":String(e.zone??e[`zone-id`]??``)},bodyKind:`none`});return}let t=await n(e),r=await i({zone:e.zone},t,{quiet:e.quiet});e.zoneId=r;let a=await c(`Loading`,async()=>t.send(ue,{zone_id:r,rule_identifier:e[`rule-identifier`]}));o(a,{successLabel:`Loaded`})})};var pe={method:`GET`,path:t=>e`/${t.account_or_zone}/${t.account_or_zone_id}/email/routing/rules`,query:[`page`,`per_page`,`enabled`],errors:{403:`ForbiddenError`}};function me(e){return e.usage(`$0 email-routing rules list-account
|
|
34
|
+
|
|
35
|
+
Lists existing routing rules across all zones in the account or zone.`).option(`page`,{type:`number`,description:`Page number of paginated results.`}).option(`per-page`,{type:`number`,description:`Maximum number of results per page.`}).option(`enabled`,{type:`string`,description:`Filter by enabled routing rules.`,choices:[`true`,`false`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const he={command:`list-account`,describe:`List account or zone routing rules`,builder:me,handler:async e=>l({command:`email-routing rules list-account`,classification:{safeFlags:[`enabled`,`dry-run`]}},e,async()=>{let l={page:e.page,per_page:e[`per-page`],enabled:e.enabled};if(e.dryRun){let t=e.zone===void 0?await r():void 0,n=e.zone===void 0?`accounts`:`zones`,i=e.zone??t??`<account-id>`;s({command:`cf email-routing rules list-account`,method:`GET`,url:`https://api.cloudflare.com/client/v4/${n}/${i}/email/routing/rules`,pathParams:{"account-or-zone":String(n),"account-or-zone-id":String(i)},query:l,bodyKind:`none`});return}let u=await n(e),d=e.zone===void 0?`accounts`:`zones`,f=d===`zones`?await i({zone:e.zone},u,{quiet:e.quiet}):e.local?t:await a();d===`zones`?e.zoneId=f:e.accountId=f;let p=await c(`Loading`,async()=>u.send(pe,{account_or_zone:d,account_or_zone_id:f,...l}));o(p,{successLabel:`Loaded`})})};var Y={method:`POST`,path:t=>e`/accounts/${t.account_id}/email/routing/rules/plan`,body:`json`,errors:{400:`BadRequestError`,403:`ForbiddenError`,422:`UnprocessableEntityError`}};function ge(e){return e.usage(`$0 email-routing rules plan
|
|
36
|
+
|
|
37
|
+
Computes the Email Routing rule changes that would be needed to reconcile a Wrangler-managed desired ruleset. This endpoint is read-only and does not create, update, or delete rules.`).option(`catch-all-rules`,{type:`string`,description:`Desired catch-all Email Routing rules managed by the deploying Worker. Provide as a JSON array of objects or @path/to/file.json.`}).option(`owner-worker-tag`,{type:`string`,description:"Public tag (script_tag) of the Worker that owns this rule. Required when\n`source` is `wrangler`.\n"}).option(`rules`,{type:`string`,description:`Desired normal Email Routing rules managed by the deploying Worker. Provide as a JSON array of objects or @path/to/file.json.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const _e={command:`plan`,describe:`Plan account routing rule changes`,builder:ge,handler:async e=>l({command:`email-routing rules plan`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await r();s({command:`cf email-routing rules plan`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/email/routing/rules/plan`,pathParams:{},bodyKind:`json`,body:e.body===void 0?f({catch_all_rules:d(e[`catch-all-rules`],`catch-all-rules`),owner_worker_tag:p(e[`owner-worker-tag`],`owner-worker-tag`,`text`),rules:d(e.rules,`rules`)}):u(e.body)});return}let i=await n(e),l=e.local?t:await a();if(e.accountId=l,e.body){let t=u(e.body),n=await c(`Creating`,async()=>i.send(Y,{body:t,account_id:l}));o(n,{successLabel:`Created`});return}e[`owner-worker-tag`]===void 0&&(e[`owner-worker-tag`]=await m(`owner-worker-tag`,"Public tag (script_tag) of the Worker that owns this rule. Required when `source` is `wrangler`. "));let h=f({catch_all_rules:d(e[`catch-all-rules`],`catch-all-rules`),owner_worker_tag:p(e[`owner-worker-tag`],`owner-worker-tag`,`text`),rules:d(e.rules,`rules`)}),g=await c(`Creating`,async()=>i.send(Y,{body:h,account_id:l}));o(g,{successLabel:`Created`})})};var X={method:`PUT`,path:t=>e`/zones/${t.zone_id}/email/routing/rules/${t.rule_identifier}`,body:`json`,errors:{400:`BadRequestError`,422:`UnprocessableEntityError`}};function ve(e){return e.usage(`$0 email-routing rules update <rule-identifier>
|
|
38
|
+
|
|
39
|
+
Update actions and matches, or enable/disable specific routing rules. Forward actions require exactly one verified destination address.`).positional(`rule-identifier`,{type:`string`,description:`Routing rule identifier.`,demandOption:!0}).option(`actions`,{type:`string`,description:`List actions patterns. Provide as a JSON array of objects or @path/to/file.json.`}).option(`enabled`,{type:`boolean`,description:`Routing rule status.`}).option(`matchers`,{type:`string`,description:`Matching patterns to forward to your actions. Provide as a JSON array of objects or @path/to/file.json.`}).option(`name`,{type:`string`,description:`Routing rule name.`}).option(`owner-worker-tag`,{type:`string`,description:"Public tag (script_tag) of the Worker that owns this rule. Required when\n`source` is `wrangler`.\n"}).option(`priority`,{type:`number`,description:`Priority of the routing rule.`}).option(`source`,{type:`string`,description:"Who manages the rule. `api` covers dashboard, generic API, and Terraform;\n`wrangler` means the rule is managed by a Worker's wrangler.jsonc. Defaults\nto `api` when omitted on write.\n",choices:[`api`,`wrangler`]}).coerce(`source`,e=>p(e,`source`,`text`)).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 ye={command:`update <rule-identifier>`,describe:`Update routing rule`,builder:ve,handler:async e=>l({command:`email-routing rules update`,classification:{safeFlags:[`enabled`,`source`,`dry-run`]}},e,async()=>{if(e.dryRun){s({command:`cf email-routing rules update`,method:`PUT`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/email/routing/rules/${e[`rule-identifier`]==null?`<rule-identifier>`:encodeURIComponent(String(e[`rule-identifier`]))}`,pathParams:{"rule-identifier":String(e[`rule-identifier`]??``),"zone-id":String(e.zone??e[`zone-id`]??``)},bodyKind:`json`,body:e.body===void 0?f({actions:d(e.actions,`actions`),enabled:e.enabled,matchers:d(e.matchers,`matchers`),name:p(e.name,`name`,`text`),owner_worker_tag:p(e[`owner-worker-tag`],`owner-worker-tag`,`text`),priority:e.priority,source:e.source}):u(e.body)});return}let t=await n(e),r=await i({zone:e.zone},t,{quiet:e.quiet});if(e.zoneId=r,e.body){let n=u(e.body),i=await c(`Updating`,async()=>t.send(X,{body:n,zone_id:r,rule_identifier:e[`rule-identifier`]}));o(i,{successLabel:`Updated`});return}if(e.actions===void 0)throw Error(`--actions is required (or pass --body with this field set).`);if(e.matchers===void 0)throw Error(`--matchers is required (or pass --body with this field set).`);let a=f({actions:d(e.actions,`actions`),enabled:e.enabled,matchers:d(e.matchers,`matchers`),name:p(e.name,`name`,`text`),owner_worker_tag:p(e[`owner-worker-tag`],`owner-worker-tag`,`text`),priority:e.priority,source:e.source}),l=await c(`Updating`,async()=>t.send(X,{body:a,zone_id:r,rule_identifier:e[`rule-identifier`]}));o(l,{successLabel:`Updated`})})},be={command:`rules`,describe:`Match incoming email addresses and forward messages to destination mailboxes or Workers`,builder:e=>e.command(oe).command(le).command(fe).command(he).command(_e).command(ye).command(K).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var Z={method:`PUT`,path:t=>e`/zones/${t.zone_id}/email/routing`,body:`json`,errors:{403:`ForbiddenError`}};function xe(e){return e.usage(`$0 email-routing settings apply
|
|
40
|
+
|
|
41
|
+
Apply the provided settings to your Email Routing zone. Omitted settings retain their current values, as with PATCH.`).option(`enabled`,{type:`boolean`,description:"State of your zone Email Routing settings. No-op on this endpoint - use `POST`/`DELETE /zones/{zone_id}/email/routing/dns`."}).option(`skip-wizard`,{type:`boolean`,description:`Flag to check if the user skipped the configuration wizard.`}).option(`support-subaddress`,{type:`boolean`,description:`Whether subaddressing (plus-addressing) is honored when matching incoming mail against routing rules.`}).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 Q={command:`apply`,describe:`Apply Email Routing settings`,builder:xe,handler:async e=>l({command:`email-routing settings apply`,classification:{safeFlags:[`enabled`,`skip-wizard`,`support-subaddress`,`dry-run`]}},e,async()=>{if(e.dryRun){s({command:`cf email-routing settings apply`,method:`PUT`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/email/routing`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``)},bodyKind:`json`,body:e.body===void 0?f({enabled:e.enabled,skip_wizard:e[`skip-wizard`],support_subaddress:e[`support-subaddress`]}):u(e.body)});return}let t=await n(e),r=await i({zone:e.zone},t,{quiet:e.quiet});if(e.zoneId=r,e.body){let n=u(e.body),i=await c(`Updating`,async()=>t.send(Z,{body:n,zone_id:r}));o(i,{successLabel:`Updated`});return}let a=f({enabled:e.enabled,skip_wizard:e[`skip-wizard`],support_subaddress:e[`support-subaddress`]}),l=await c(`Updating`,async()=>t.send(Z,{body:a,zone_id:r}));o(l,{successLabel:`Updated`})})};var Se={method:`GET`,path:t=>e`/zones/${t.zone_id}/email/routing`,errors:{403:`ForbiddenError`}};function Ce(e){return e.usage(`$0 email-routing settings get
|
|
42
|
+
|
|
43
|
+
Get information about the settings for your Email Routing zone.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const we={command:`get`,describe:`Get Email Routing settings`,builder:Ce,handler:async e=>l({command:`email-routing settings get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){s({command:`cf email-routing settings get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/email/routing`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``)},bodyKind:`none`});return}let t=await n(e),r=await i({zone:e.zone},t,{quiet:e.quiet});e.zoneId=r;let a=await c(`Loading`,async()=>t.send(Se,{zone_id:r}));o(a,{successLabel:`Loaded`})})};var $={method:`PATCH`,path:t=>e`/zones/${t.zone_id}/email/routing`,body:`json`,errors:{403:`ForbiddenError`}};function Te(e){return e.usage(`$0 email-routing settings update
|
|
44
|
+
|
|
45
|
+
Update the settings for your Email Routing zone.`).option(`enabled`,{type:`boolean`,description:"State of your zone Email Routing settings. No-op on this endpoint - use `POST`/`DELETE /zones/{zone_id}/email/routing/dns`."}).option(`skip-wizard`,{type:`boolean`,description:`Flag to check if the user skipped the configuration wizard.`}).option(`support-subaddress`,{type:`boolean`,description:`Whether subaddressing (plus-addressing) is honored when matching incoming mail against routing rules.`}).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 Ee={command:`update`,describe:`Update Email Routing settings`,builder:Te,handler:async e=>l({command:`email-routing settings update`,classification:{safeFlags:[`enabled`,`skip-wizard`,`support-subaddress`,`dry-run`]}},e,async()=>{if(e.dryRun){s({command:`cf email-routing settings update`,method:`PATCH`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/email/routing`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``)},bodyKind:`json`,body:e.body===void 0?f({enabled:e.enabled,skip_wizard:e[`skip-wizard`],support_subaddress:e[`support-subaddress`]}):u(e.body)});return}let t=await n(e),r=await i({zone:e.zone},t,{quiet:e.quiet});if(e.zoneId=r,e.body){let n=u(e.body),i=await c(`Updating`,async()=>t.send($,{body:n,zone_id:r}));o(i,{successLabel:`Updated`});return}let a=f({enabled:e.enabled,skip_wizard:e[`skip-wizard`],support_subaddress:e[`support-subaddress`]}),l=await c(`Updating`,async()=>t.send($,{body:a,zone_id:r}));o(l,{successLabel:`Updated`})})},De={command:`settings`,describe:`Inspect and update Email Routing settings`,builder:e=>e.command(Q).command(we).command(Ee).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},Oe={command:`email-routing`,describe:`Route incoming email to verified destination addresses or Workers with routing rules, catch-all behavior, and managed DNS records`,builder:e=>e.command(k).command(z).command(E).command(I).command(be).command(De).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};export{Oe as default};
|