cf 1.0.0-beta.4 → 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-DUQisFsH.mjs → access-CqOyTHw4.mjs} +1 -1
- package/dist/{account-tags-DMmTopgx.mjs → account-tags-7I77Dwsd.mjs} +1 -1
- package/dist/{accounts-DbZdpH5e.mjs → accounts-Cq-eOPzL.mjs} +32 -26
- package/dist/{acm-BtXPdUqH.mjs → acm-CSXnlN6o.mjs} +1 -1
- package/dist/{addressing-Bc_ZSmrK.mjs → addressing-C5XvjNhk.mjs} +1 -1
- package/dist/{agent-memory-CEUI1wKI.mjs → agent-memory-CSzr9gty.mjs} +1 -1
- package/dist/{ai-CFHaVQcc.mjs → ai-C0xWIvsG.mjs} +7 -9
- package/dist/{ai-audit-guygqmOl.mjs → ai-audit-B43vm1KJ.mjs} +1 -1
- package/dist/{ai-gateway-BcKOL4WQ.mjs → ai-gateway-BK3MbIzT.mjs} +1 -1
- package/dist/{ai-search-DJvNkX2o.mjs → ai-search-TrFTxBbn.mjs} +1 -1
- package/dist/{ai-security-CVaHbGzn.mjs → ai-security-JrYa27qd.mjs} +1 -1
- package/dist/{alerting-wy4IuGs7.mjs → alerting-B1-ZwfVT.mjs} +1 -1
- package/dist/{analytics-Do4VMrPX.mjs → analytics-B-wlVtDV.mjs} +1 -1
- package/dist/{analytics_engine-Cv7IF8ex.mjs → analytics_engine-DWzzQzOs.mjs} +1 -1
- package/dist/{api-security-fuzV322d.mjs → api-security-BWFWWmXl.mjs} +1 -1
- package/dist/{argo-BBf-Jw0O.mjs → argo-DHPGTvCT.mjs} +1 -1
- package/dist/{artifacts-B7_OhBxW.mjs → artifacts-mmBDk3wO.mjs} +1 -1
- package/dist/{audit-logs-DyARgcxN.mjs → audit-logs-CCF5e500.mjs} +1 -1
- package/dist/{auth-CiOv7s9F.mjs → auth-Dnp10uLy.mjs} +1 -1
- package/dist/{auth-BYFcxn1F.mjs → auth-gOCL6Pm0.mjs} +2 -2
- package/dist/{autoconfig-DbL_FL5k.mjs → autoconfig-DqEPKpj0.mjs} +2 -2
- package/dist/basin-catalog-hRY01t_Z.mjs +44 -0
- package/dist/{billing-07_VIO4X.mjs → billing-C_ev-9nh.mjs} +1 -1
- package/dist/{bot-management-CmkPUu2I.mjs → bot-management-CyYsXkZt.mjs} +1 -1
- package/dist/{botnet-feed-Bn5pE_rx.mjs → botnet-feed-Dj5R5v2o.mjs} +1 -1
- package/dist/{brand-protection-CWDqPOXe.mjs → brand-protection-CmQ6Iu0I.mjs} +1 -1
- package/dist/{browser-run-CfEIfpnQ.mjs → browser-run-sWHTsCSB.mjs} +1 -1
- package/dist/build-Dyt1M_Ib.mjs +2 -0
- package/dist/{build-DEbkHHVh.mjs → build-_qqitpn0.mjs} +1 -1
- package/dist/{builds-mgouQLUs.mjs → builds-c21rTfcg.mjs} +1 -1
- package/dist/{cache-DXLofz5T.mjs → cache-CuNjJl6m.mjs} +27 -27
- package/dist/{certificate-authorities-BfW-rEpf.mjs → certificate-authorities-DRUUzvI3.mjs} +1 -1
- package/dist/{cli-Dgk9bd8j.mjs → cli-Caa776EB.mjs} +1 -1
- package/dist/{client-certificates-By2A46a2.mjs → client-certificates-BSi1CEGk.mjs} +1 -1
- package/dist/{client-side-security-Bo6ZwJOS.mjs → client-side-security-BdxUX3Y8.mjs} +1 -1
- package/dist/{cloud-connector-DYb_3u-M.mjs → cloud-connector-B46ajuAj.mjs} +1 -1
- package/dist/{cloudforce-one-D8l0I5PL.mjs → cloudforce-one-adbVR2Ah.mjs} +47 -56
- package/dist/{command-DaAGN9uP.mjs → command-B47VlNBp.mjs} +1 -1
- package/dist/{command-BPfW-yE4.mjs → command-B5Itp2BM.mjs} +1 -1
- package/dist/{command-DjNcY4cf.mjs → command-BDCTd8Ra.mjs} +1 -1
- package/dist/{command-CJR1CUK_.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-DJJN9xaA.mjs → command-CHcCSvVz.mjs} +1 -1
- package/dist/{command-C7cOrHdI.mjs → command-CRgQ0dM3.mjs} +1 -1
- package/dist/{command-DH67hNLj.mjs → command-CVg0qT13.mjs} +1 -1
- package/dist/{command-DRlUj6lW.mjs → command-CkJvjkfK.mjs} +1 -1
- package/dist/{command-C_lQtSPg.mjs → command-DV196MKR.mjs} +1 -1
- package/dist/{command-gSmdvn_d.mjs → command-Du3MiYA7.mjs} +1 -1
- package/dist/{command-CGD1oByJ.mjs → command-eBmGBTA7.mjs} +1 -1
- package/dist/{command-DYeBZ5mA.mjs → command-eqgT8zz4.mjs} +1 -1
- package/dist/{completions-DUDx3DwX.mjs → completions-DbT6O2ol.mjs} +1 -1
- package/dist/{connector-interrupts-DIMvaZhN.mjs → connector-interrupts-BhfMiPcq.mjs} +1 -1
- package/dist/{connector-telemetry-events-TWQvm-cj.mjs → connector-telemetry-events-CxKECRgO.mjs} +1 -1
- package/dist/{connector-telemetry-snapshots-Dyoe-_R3.mjs → connector-telemetry-snapshots-BHi-jHE5.mjs} +1 -1
- package/dist/{connectors-D7ZFg3hB.mjs → connectors-gkP2aNSN.mjs} +1 -1
- package/dist/{containers-CduXjFBJ.mjs → containers-BY8pinEV.mjs} +1 -1
- package/dist/{containers-Bu3tLjU1.mjs → containers-DUvBpnRo.mjs} +1 -1
- package/dist/{content-scan-CVBD6mUI.mjs → content-scan-BCPhAjMZ.mjs} +1 -1
- package/dist/{context-BsGrhAqB.mjs → context-CE7QFX-z.mjs} +1 -1
- package/dist/{cps-CgiRKmTe.mjs → cps-B35EPUAk.mjs} +1 -1
- package/dist/{csamScanner-BlXIOFFe.mjs → csamScanner-DcTA9oLR.mjs} +1 -1
- package/dist/{ct-alerting-CJZK0uSQ.mjs → ct-alerting-B3CS-CPk.mjs} +1 -1
- package/dist/{custom-certificates-DFaj_czg.mjs → custom-certificates-IjJJhl7_.mjs} +1 -1
- package/dist/{custom-csrs-BnFQpjOo.mjs → custom-csrs-ChYOaEQg.mjs} +1 -1
- package/dist/{custom-hostnames-DSnE6xOT.mjs → custom-hostnames-Bai3cqAD.mjs} +1 -1
- package/dist/{custom-nameservers-CdQOt_qU.mjs → custom-nameservers-DsukmLNZ.mjs} +1 -1
- package/dist/{custom-pages-TWGlS6Ms.mjs → custom-pages-CiboX-9D.mjs} +1 -1
- package/dist/d1-s293SFAJ.mjs +41 -0
- package/dist/{dcv-delegation-DM3oGGio.mjs → dcv-delegation-BfgvmpQT.mjs} +1 -1
- package/dist/{deploy-BZUWZ888.mjs → deploy-CvxNMDbS.mjs} +1 -1
- package/dist/{deploy-input-ChEbf2Kp.mjs → deploy-input-CNrImP7B.mjs} +1 -1
- package/dist/{dev-OsbQIdD8.mjs → dev-Z6vYszaT.mjs} +1 -1
- package/dist/{diagnostics-8bbleTmW.mjs → diagnostics-Ops0RjxG.mjs} +1 -1
- package/dist/discover-CcGReXr0.mjs +2 -0
- package/dist/{dist-DTN-pqSs.mjs → dist-Dgnf_i4w.mjs} +1 -1
- package/dist/{dls-TzQpry2j.mjs → dls-uo7NYEqE.mjs} +1 -1
- package/dist/{dns-Bzv4YLeg.mjs → dns-B-NwBOpQ.mjs} +52 -43
- package/dist/{dns-firewall-BjWwOmDR.mjs → dns-firewall-LTIP13nb.mjs} +1 -1
- package/dist/durable-objects-o7uB3YYg.mjs +6 -0
- package/dist/{email-auth-Bth4_FHy.mjs → email-auth-BUdBDCaE.mjs} +1 -1
- package/dist/{email-routing-CkTh4F5j.mjs → email-routing-BPRliM3z.mjs} +1 -1
- package/dist/{email-security-C-2jADxE.mjs → email-security-dbLE3I5c.mjs} +50 -50
- package/dist/{email-sending-B_sd4ouE.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-z92V55-Y.mjs → fieldExtractors-M-KfLOGw.mjs} +1 -1
- package/dist/{firewall-0yKpxdjj.mjs → firewall-DzbLwqo3.mjs} +1 -1
- package/dist/flagship-DcXWEywy.mjs +28 -0
- package/dist/{fraud-BpJ_aoIE.mjs → fraud-CGXRWANi.mjs} +1 -1
- package/dist/generate-t4dFfFRV.mjs +2 -0
- package/dist/{google-tag-gateway-DA_7SCC3.mjs → google-tag-gateway-B3Z3Puwl.mjs} +1 -1
- package/dist/{healthchecks-C-GthoQz.mjs → healthchecks-BIiV29q7.mjs} +1 -1
- package/dist/{hostnames-CH6utzVv.mjs → hostnames-ueWsZFwv.mjs} +1 -1
- package/dist/{hyperdrive-_rIC33bB.mjs → hyperdrive-Bxk9LZf5.mjs} +1 -1
- package/dist/{iam-sseKl99z.mjs → iam-kA9gcv79.mjs} +1 -1
- package/dist/{images-CvIOwtg0.mjs → images-CK4J5as7.mjs} +1 -1
- package/dist/index.mjs +1 -1
- package/dist/{init-DEIhItNF.mjs → init-COcG8sp5.mjs} +2 -2
- package/dist/{intel-Da84oZMO.mjs → intel-z7DkM9Xc.mjs} +1 -1
- package/dist/{ips-zTTd_3jg.mjs → ips-BXdBK4Co.mjs} +1 -1
- package/dist/{keyless-certificates-BGOUKdJc.mjs → keyless-certificates-Dp9xTYtD.mjs} +1 -1
- package/dist/{keys-CDnrfmiS.mjs → keys-DrVlj4VI.mjs} +1 -1
- package/dist/{kv-C5jR7vjM.mjs → kv-WX-dlUT1.mjs} +1 -1
- package/dist/{lazy-command-DZtpMsVB.mjs → lazy-command-g04RHlS2.mjs} +1 -1
- package/dist/{leaked-credential-checks-B7WSzVG3.mjs → leaked-credential-checks-BMQ0VhCd.mjs} +1 -1
- package/dist/{load-balancers-DG9wMQUM.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-k3QLVysD.mjs → login-CyU_ZTNI.mjs} +1 -1
- package/dist/{login-rJanUgdL.mjs → login-DYQ8UgJQ.mjs} +1 -1
- package/dist/{logo-matches-5nijgkg7.mjs → logo-matches-HFmD2hK6.mjs} +1 -1
- package/dist/{logos-BRRqg8_2.mjs → logos-Di2PABE_.mjs} +1 -1
- package/dist/{logpush-Br7H8sRD.mjs → logpush-DEqdt0I0.mjs} +1 -1
- package/dist/logs-Ckfw-3Q_.mjs +37 -0
- package/dist/{magic-cloud-networking-Bu7O7wKz.mjs → magic-cloud-networking-C0yBJKMb.mjs} +1 -1
- package/dist/{magic-network-monitoring-Bnc--4Jr.mjs → magic-network-monitoring-CLvaiI7s.mjs} +1 -1
- package/dist/{magic-transit-Dxr86HKN.mjs → magic-transit-Bhb1kxYj.mjs} +108 -112
- package/dist/{managed-defense-Bm_jKFTN.mjs → managed-defense-COL3aqXw.mjs} +1 -1
- package/dist/{managed-transforms-D5mvHv_N.mjs → managed-transforms-cK0strTK.mjs} +1 -1
- package/dist/{matches-Dhc1eSWw.mjs → matches-Df4WEz0x.mjs} +1 -1
- package/dist/{mcp-B-PBoBl5.mjs → mcp-DK_5OUVl.mjs} +1 -1
- package/dist/{mesh-CW8B4naI.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-swvfPqA2.mjs → mtls-certificates-8pzdxzOX.mjs} +1 -1
- package/dist/{network-iwRBn0i7.mjs → network-ClNeXTvG.mjs} +1 -1
- package/dist/{network-interconnects-CjXYZC4g.mjs → network-interconnects-t3jSoV7o.mjs} +1 -1
- package/dist/{oauth-CrTr-mRe.mjs → oauth-CJamdfrC.mjs} +1 -1
- package/dist/{oauth-DJW_HyaL.mjs → oauth-CNSirGUu.mjs} +1 -1
- package/dist/{oauth-clients-DGUJzFFu.mjs → oauth-clients-DBxdvlJC.mjs} +1 -1
- package/dist/{oauth-scopes-Bl0YUOHt.mjs → oauth-scopes-D39GYkt6.mjs} +1 -1
- package/dist/{observability-DRHiMrLy.mjs → observability-ZV1yPflB.mjs} +1 -1
- package/dist/{organization-BoMJzks7.mjs → organization-Bk-TkQlB.mjs} +7 -7
- package/dist/{organizations-UGtCHzSq.mjs → organizations-hXITNpPl.mjs} +1 -1
- package/dist/{origin-ca-certificates-CdByaOCe.mjs → origin-ca-certificates-DsLR_Z2e.mjs} +1 -1
- package/dist/{origin-post-quantum-encryption-GjmifGkF.mjs → origin-post-quantum-encryption-C_egsVQu.mjs} +1 -1
- package/dist/{origin-tls-client-auth-CCIqSj_C.mjs → origin-tls-client-auth-DPG6A6kz.mjs} +1 -1
- package/dist/{page-rules-Btn-r3QF.mjs → page-rules-B8lrkiiF.mjs} +1 -1
- package/dist/pages-Cx4doLvQ.mjs +54 -0
- package/dist/{pay-per-crawl-DcAZuk9T.mjs → pay-per-crawl-BUVHqPPA.mjs} +1 -1
- package/dist/{pay-per-use-z0Iwy9rN.mjs → pay-per-use-CzYgryid.mjs} +1 -1
- package/dist/{pipelines-YRPwntqo.mjs → pipelines-CGHmwc4a.mjs} +1 -1
- package/dist/{precursor-Bcww14RH.mjs → precursor--Jim5u4y.mjs} +1 -1
- package/dist/{previews-BBn-IiQu.mjs → previews-BKO1pZyG.mjs} +1 -1
- package/dist/{progress-5nsUpQL6.mjs → progress-CRjK46r1.mjs} +1 -1
- package/dist/{prompt-Ba_bys2F.mjs → prompt-C_90YsVE.mjs} +1 -1
- package/dist/{queries-lxdncISw.mjs → queries-z2pjzXlA.mjs} +1 -1
- package/dist/{queues-Egb0KXYK.mjs → queues-D0IXxSa7.mjs} +1 -1
- package/dist/{r2-BD4NOkR7.mjs → r2-DQ7w9dCM.mjs} +1 -1
- package/dist/r2-data-catalog-DpktRU5y.mjs +2 -0
- package/dist/{radar-B4dtfeBP.mjs → radar-DyLO7Zg1.mjs} +1 -1
- package/dist/{raw-fetch-AX_Gz3c3.mjs → raw-fetch-C8SdmQBp.mjs} +1 -1
- package/dist/{realtime-CtLXkW8l.mjs → realtime-mQzLbDxe.mjs} +1 -1
- package/dist/{registrar-I9XClUOe.mjs → registrar-ClbtM5Dy.mjs} +2 -2
- package/dist/{registrar-sandbox-DAqK58QS.mjs → registrar-sandbox-BIEHm_Jp.mjs} +2 -2
- package/dist/{reporting-BYsEUCIE.mjs → reporting-CjkMzSsZ.mjs} +1 -1
- package/dist/{request-headers-sc4CaZX0.mjs → request-headers-jr2VznA9.mjs} +1 -1
- package/dist/{request-tracers-DXr9Dr2z.mjs → request-tracers-BoSXOTox.mjs} +1 -1
- package/dist/{resource-sharing-DgbnNgCQ.mjs → resource-sharing-CFS39nJq.mjs} +1 -1
- package/dist/{resource-tagging-CjPU8PpX.mjs → resource-tagging-CZ5mvMhE.mjs} +1 -1
- package/dist/{rules-BrshTdy1.mjs → rules-CfqumI45.mjs} +4 -4
- package/dist/{rulesets-BZulblVp.mjs → rulesets-o3jsPv4U.mjs} +20 -20
- package/dist/{rum-B4IRlWgy.mjs → rum-BZ0rYlun.mjs} +1 -1
- package/dist/run-D0_7wBp2.mjs +2 -0
- package/dist/{run-UHTbUldP.mjs → run-huwFFwXd.mjs} +1 -1
- package/dist/{schema-flags-C4KmiKur.mjs → schema-flags-nL7pHvaE.mjs} +1 -1
- package/dist/{scim-BL2TVEZM.mjs → scim-0-eR9pvC.mjs} +1 -1
- package/dist/{sdk-Bx29ZKK3.mjs → sdk-Bmz7t_CD.mjs} +1 -1
- package/dist/{secrets-store-BcyhU7Kj.mjs → secrets-store-Duc29Zs-.mjs} +1 -1
- package/dist/security-insights-5CuLC-Yo.mjs +40 -0
- package/dist/{security-txt-BGIj4nU3.mjs → security-txt-qm2PqCPz.mjs} +1 -1
- package/dist/{shared-jqlTaG5K.mjs → shared-BDIrEKWt.mjs} +1 -1
- package/dist/{smart-shield-C8mGSzyE.mjs → smart-shield-BXLH9OM0.mjs} +1 -1
- package/dist/{snippets-BmHMaKEZ.mjs → snippets-DZG6UWeH.mjs} +1 -1
- package/dist/{spawn-IM_tQldH.mjs → spawn-KZqyx6KK.mjs} +1 -1
- package/dist/{spectrum-CrGKTMx-.mjs → spectrum-Be4ImAIY.mjs} +1 -1
- package/dist/{speed-yyPLwj5X.mjs → speed-CNWujfIC.mjs} +1 -1
- package/dist/{src-DFnlH5Tg.mjs → src-CW6py11z.mjs} +5 -5
- package/dist/{ssl-DZ6G7pP_.mjs → ssl-BIlS4Qs8.mjs} +1 -1
- package/dist/{stream-hoBmKs9X.mjs → stream-C5RvTAKF.mjs} +1 -1
- package/dist/{submit-Lfebq3yj.mjs → submit-Bpru4P79.mjs} +1 -1
- package/dist/{tags-CnHv__u_.mjs → tags-Rv7X1rU9.mjs} +1 -1
- package/dist/{telemetry-DbAo3nvk.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-CZL9_D8w.mjs → tenant-custom-nameservers-BbHaaEhv.mjs} +1 -1
- package/dist/{tunnels-DuO8F5_h.mjs → tunnels-CLWPaIIF.mjs} +1 -1
- package/dist/{turnstile-B-6k-bKa.mjs → turnstile-C5ezKSoz.mjs} +1 -1
- package/dist/update-check-CebyUyqG.mjs +2 -0
- package/dist/{update-check-g9Jcn6YJ.mjs → update-check-aOpHVlzB.mjs} +1 -1
- package/dist/update-check-worker.mjs +1 -1
- package/dist/{url-info-C6-jj9nl.mjs → url-info-Gcf8-MyB.mjs} +1 -1
- package/dist/{url-normalization-BRSTQe20.mjs → url-normalization-Dvg8mZRk.mjs} +1 -1
- package/dist/{url-scanner-DER5YAdW.mjs → url-scanner-BZCsgh0O.mjs} +1 -1
- package/dist/{user-foSeF-0m.mjs → user-BnkvXmjc.mjs} +1 -1
- package/dist/{values-DgBNckq9.mjs → values-yUGls__L.mjs} +1 -1
- package/dist/{vectorize-9AZMN3fN.mjs → vectorize-BiXngTuI.mjs} +3 -3
- package/dist/version-C3q1GMTe.mjs +2 -0
- package/dist/{waiting-rooms-CUc0Xqp0.mjs → waiting-rooms-BoLWF74U.mjs} +1 -1
- package/dist/{web-assets-D5LUB5UO.mjs → web-assets-CEJ9Zne1.mjs} +1 -1
- package/dist/{web3-BvOpojFR.mjs → web3-CIjm7EuJ.mjs} +1 -1
- package/dist/workers-DdtWb7Ws.mjs +38 -0
- package/dist/{workers-builds-BFqiT0GR.mjs → workers-builds-DT4tA-KT.mjs} +1 -1
- package/dist/workers-for-platforms-CaCr8ApU.mjs +42 -0
- package/dist/{workers-vpc-9xBzFjiF.mjs → workers-vpc-DRtjG39D.mjs} +1 -1
- package/dist/{workflows-BS0EGixd.mjs → workflows-DRme6yrC.mjs} +2 -2
- package/dist/{wrangler-migration-BDkh1_IV.mjs → wrangler-migration-BDnS1puc.mjs} +1 -1
- package/dist/{zaraz-DBccJ-ZM.mjs → zaraz-DmjDEnUJ.mjs} +1 -1
- package/dist/{zero-trust-DGagti-V.mjs → zero-trust-BRAHExxa.mjs} +427 -441
- package/dist/{zone-B4OniptR.mjs → zone-CclLvb-g.mjs} +1 -1
- package/dist/{zones-DYuGVoTH.mjs → zones-C6tc2OOV.mjs} +1 -1
- package/package.json +5 -4
- package/dist/abuse-reports-L4L7sC0F.mjs +0 -26
- package/dist/account-J7N4Ukse.mjs +0 -12
- package/dist/build-BmLpTw4w.mjs +0 -2
- package/dist/d1-Cbqx2kAz.mjs +0 -45
- package/dist/discover-DgHRf-qo.mjs +0 -2
- package/dist/durable-objects-CRhSGkpc.mjs +0 -8
- package/dist/error-sanitization-Cu-8OKRA.mjs +0 -2
- package/dist/flagship-IRVq23te.mjs +0 -28
- package/dist/generate-qMU-2MgC.mjs +0 -2
- package/dist/local-qOpZjDed.mjs +0 -2
- package/dist/logs-CBU44LT8.mjs +0 -48
- package/dist/pages-iil93G96.mjs +0 -60
- package/dist/r2-data-catalog-CI-oHtKe.mjs +0 -44
- package/dist/run-BQGVl3vg.mjs +0 -2
- package/dist/security-center-D1LSkhL_.mjs +0 -30
- package/dist/telemetry-C3hmM9Q9.mjs +0 -2
- package/dist/tenant-7CL844dh.mjs +0 -12
- package/dist/update-check-BDMPumcv.mjs +0 -2
- package/dist/version-DLvRzH-I.mjs +0 -2
- package/dist/workers-Cko7OnFE.mjs +0 -40
- package/dist/workers-for-platforms-EVE01qsM.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
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import{t as e}from"./local-Cyk8fPvL.mjs";import{a as t,t as n}from"./context-CE7QFX-z.mjs";import{a as r,r as i}from"./auth-gOCL6Pm0.mjs";import{t as a}from"./output-CvQFJkvi.mjs";import{t as o}from"./dry-run-Bq0JAsbX.mjs";import{t as s}from"./progress-CRjK46r1.mjs";import{t as c}from"./run-huwFFwXd.mjs";import"./telemetry-B4_YhD82.mjs";import{i as l,n as u,r as d,t as f}from"./body-parser-hh2avzkz.mjs";import{n as p}from"./input-validation-Dk52b0me.mjs";import{a as m,i as h}from"./prompt-C_90YsVE.mjs";import{t as g}from"./cli-types-DoVT5q_M.mjs";function _(e){return e.usage(`$0 abuse-reports appeals eligibility <report-id>
|
|
3
|
+
|
|
4
|
+
Returns whether the report is currently appealable, along with the signals behind that decision: whether it already has an open appeal, how many appeals have been submitted against it, and whether it has at least one mitigation that an appeal could reverse. Report-level appeals are currently available only for DMCA (copyright) reports. For other report types this operation returns the same \`404 Report not found\` response as a report that does not exist for the account.`).positional(`report-id`,{type:`string`,description:`Abuse Report ID`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const v={command:`eligibility <report-id>`,describe:`Check whether a report can be appealed`,builder:_,handler:async r=>c({command:`abuse-reports appeals eligibility`,classification:{safeFlags:[`dry-run`]}},r,async()=>{if(r.dryRun){o({command:`cf abuse-reports appeals eligibility`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/abuse-reports/${r[`report-id`]==null?`<report-id>`:encodeURIComponent(String(r[`report-id`]))}/appeals/eligibility`,pathParams:{"report-id":String(r[`report-id`]??``)},bodyKind:`none`});return}let c=await i(r),l=r.local?e:await n();r.accountId=l,a(await s(`Loading`,async()=>c.abuseReports.appeals.eligibility({account_id:l,report_id:r[`report-id`]})),{successLabel:`Loaded`})})},y={command:`appeals`,describe:`Appeal eligibility for abuse reports`,builder:e=>e.command(v).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function b(e){return e.usage("$0 abuse-reports create <report-type>\n\nSubmit an abuse report of a particular type. Requires the abuse-reports entitlement on the account (Enterprise accounts have it by default; other accounts must request access) and an API token with the `Trust and Safety Write` permission. If the account is not entitled, the request is rejected with an HTTP `401` response (see below).").positional(`report-type`,{type:`string`,description:`The report type to be submitted. Example: abuse_general`,demandOption:!0}).option(`act`,{type:`string`,description:`The act field`,choices:[`abuse_dmca`,`abuse_trademark`,`abuse_general`,`abuse_phishing`,`abuse_children`,`abuse_threat`,`abuse_registrar_whois`,`abuse_ncsei`]}).option(`comments`,{type:`string`,description:`Any additional comments about the infringement not exceeding 2000 characters`}).option(`company`,{type:`string`,description:`Text not exceeding 100 characters. This field may be released by Cloudflare to third parties such as the Lumen Database (https://lumendatabase.org/).`}).option(`email`,{type:`string`,description:`A valid email of the abuse reporter. This field may be released by Cloudflare to third parties such as the Lumen Database (https://lumendatabase.org/).`}).option(`email2`,{type:`string`,description:"Should match the value provided in `email`"}).option(`name`,{type:`string`,description:`Text not exceeding 255 characters. This field may be released by Cloudflare to third parties such as the Lumen Database (https://lumendatabase.org/).`}).option(`reported-country`,{type:`string`,description:`Text containing 2 characters`}).option(`reported-user-agent`,{type:`string`,description:`Text not exceeding 255 characters`}).option(`tele`,{type:`string`,description:`Text not exceeding 20 characters. This field may be released by Cloudflare to third parties such as the Lumen Database (https://lumendatabase.org/).`}).option(`title`,{type:`string`,description:`Text not exceeding 255 characters`}).option(`urls`,{type:`string`,description:`A list of valid URLs separated by ‘\\n’ (new line character). The list of the URLs should not exceed 250 URLs. All URLs should have the same hostname. Each URL should be unique. This field may be released by Cloudflare to third parties such as the Lumen Database (https://lumendatabase.org/).`}).option(`address1`,{type:`string`,description:`Text not exceeding 100 characters. This field may be released by Cloudflare to third parties such as the Lumen Database (https://lumendatabase.org/).`}).option(`agent-name`,{type:`string`,description:`The name of the copyright holder. Text not exceeding 60 characters. This field may be released by Cloudflare to third parties such as the Lumen Database (https://lumendatabase.org/).`}).option(`agree`,{type:`number`,description:"Can be `0` for false or `1` for true. Must be value: 1 for DMCA reports"}).option(`city`,{type:`string`,description:`Text not exceeding 255 characters. This field may be released by Cloudflare to third parties such as the Lumen Database (https://lumendatabase.org/).`}).option(`country`,{type:`string`,description:`Text not exceeding 255 characters. This field may be released by Cloudflare to third parties such as the Lumen Database (https://lumendatabase.org/).
|
|
5
|
+
`}).option(`host-notification`,{type:`string`,description:`Notification type based on the abuse type. NOTE: Copyright (DMCA) and Trademark reports cannot be anonymous.
|
|
6
|
+
`,choices:[`send`,`send-anon`]}).option(`original-work`,{type:`string`,description:`Text not exceeding 255 characters. This field may be released by Cloudflare to third parties such as the Lumen Database (https://lumendatabase.org/).
|
|
7
|
+
`}).option(`owner-notification`,{type:`string`,description:`Notification type based on the abuse type. NOTE: Copyright (DMCA) and Trademark reports cannot be anonymous.
|
|
8
|
+
`,choices:[`send`,`send-anon`,`none`]}).option(`signature`,{type:`string`,description:`Required for DMCA reports, should be same as Name. An affirmation that all information in the report is true and accurate while agreeing to the policies of Cloudflare's abuse reports`}).option(`state`,{type:`string`,description:`Text not exceeding 255 characters. This field may be released by Cloudflare to third parties such as the Lumen Database (https://lumendatabase.org/).`}).option(`justification`,{type:`string`,description:`A detailed description of the infringement, including any necessary access details and the exact steps needed to view the content, not exceeding 5000 characters.
|
|
9
|
+
`}).option(`trademark-number`,{type:`string`,description:`Text not exceeding 1000 characters`}).option(`trademark-office`,{type:`string`,description:`Text not exceeding 1000 characters`}).option(`trademark-symbol`,{type:`string`,description:`Text not exceeding 1000 characters`}).option(`destination-ips`,{type:`string`,description:`A list of IP addresses separated by ‘\\n’ (new line character). The list of destination IPs should not exceed 30 IP addresses. Each one of the IP addresses ought to be unique.`}).option(`ports-protocols`,{type:`string`,description:`A comma separated list of ports and protocols e.g. 80/TCP, 22/UDP. The total size of the field should not exceed 2000 characters. Each individual port/protocol should not exceed 100 characters. The list should not have more than 30 unique ports and protocols.`}).option(`source-ips`,{type:`string`,description:`A list of IP addresses separated by ‘\\n’ (new line character). The list of source IPs should not exceed 30 IP addresses. Each one of the IP addresses ought to be unique.`}).option(`ncmec-notification`,{type:`string`,description:`Notification type based on the abuse type. NOTE: Copyright (DMCA) and Trademark reports cannot be anonymous.
|
|
10
|
+
`,choices:[`send`,`send-anon`]}).option(`reg-who-request-reg-who-authorization-statement`,{type:`string`,description:`Optional authorization statement or power of attorney per RDP 10.2.1.3.`}).option(`reg-who-request-reg-who-good-faith-affirmation`,{type:`boolean`,description:`Affirmation that the request is made in good faith per RDP 10.2.4. Must be true.`}).option(`reg-who-request-reg-who-lawful-processing-agreement`,{type:`boolean`,description:`Agreement to process data lawfully per RDP 10.2.5. Must be true.`}).option(`reg-who-request-reg-who-legal-basis`,{type:`string`,description:`Legal rights and rationale for the request per RDP 10.2.3. Required for all WHOIS requests.`}).option(`reg-who-request-reg-who-request-type`,{type:`string`,description:`The type of WHOIS data request per RDP procedure.`,choices:[`disclosure`,`invalid_whois`]}).option(`reg-who-request-reg-who-requested-data-elements`,{type:`string`,array:!0,description:`The specific WHOIS data elements being requested per RDP 10.2.2. Required for all WHOIS requests.`}).option(`reg-who-request-reg-who-requestor-type`,{type:`string`,description:`The nature of the requestor per RDP 10.2.1.2.`,choices:[`government`,`corporation`,`individual`]}).option(`ncsei-subject-representation`,{type:`boolean`,description:`If the submitter is the target of NCSEI in the URLs of the abuse report.`}).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)`}).conflicts(`address1`,[`justification`,`trademark-number`,`trademark-office`,`trademark-symbol`,`destination-ips`,`ports-protocols`,`source-ips`,`ncmec-notification`,`reg-who-request-reg-who-authorization-statement`,`reg-who-request-reg-who-good-faith-affirmation`,`reg-who-request-reg-who-lawful-processing-agreement`,`reg-who-request-reg-who-legal-basis`,`reg-who-request-reg-who-request-type`,`reg-who-request-reg-who-requested-data-elements`,`reg-who-request-reg-who-requestor-type`,`ncsei-subject-representation`]).implies(`address1`,[`agent-name`,`agree`,`city`,`country`,`host-notification`,`original-work`,`signature`,`state`]).conflicts(`agent-name`,[`justification`,`trademark-number`,`trademark-office`,`trademark-symbol`,`destination-ips`,`ports-protocols`,`source-ips`,`ncmec-notification`,`reg-who-request-reg-who-authorization-statement`,`reg-who-request-reg-who-good-faith-affirmation`,`reg-who-request-reg-who-lawful-processing-agreement`,`reg-who-request-reg-who-legal-basis`,`reg-who-request-reg-who-request-type`,`reg-who-request-reg-who-requested-data-elements`,`reg-who-request-reg-who-requestor-type`,`ncsei-subject-representation`]).implies(`agent-name`,[`address1`,`agree`,`city`,`country`,`host-notification`,`original-work`,`signature`,`state`]).conflicts(`agree`,[`justification`,`trademark-number`,`trademark-office`,`trademark-symbol`,`destination-ips`,`ports-protocols`,`source-ips`,`ncmec-notification`,`reg-who-request-reg-who-authorization-statement`,`reg-who-request-reg-who-good-faith-affirmation`,`reg-who-request-reg-who-lawful-processing-agreement`,`reg-who-request-reg-who-legal-basis`,`reg-who-request-reg-who-request-type`,`reg-who-request-reg-who-requested-data-elements`,`reg-who-request-reg-who-requestor-type`,`ncsei-subject-representation`]).implies(`agree`,[`address1`,`agent-name`,`city`,`country`,`host-notification`,`original-work`,`signature`,`state`]).conflicts(`city`,[`justification`,`trademark-number`,`trademark-office`,`trademark-symbol`,`destination-ips`,`ports-protocols`,`source-ips`,`ncmec-notification`,`reg-who-request-reg-who-authorization-statement`,`reg-who-request-reg-who-good-faith-affirmation`,`reg-who-request-reg-who-lawful-processing-agreement`,`reg-who-request-reg-who-legal-basis`,`reg-who-request-reg-who-request-type`,`reg-who-request-reg-who-requested-data-elements`,`reg-who-request-reg-who-requestor-type`,`ncsei-subject-representation`]).implies(`city`,[`address1`,`agent-name`,`agree`,`country`,`host-notification`,`original-work`,`signature`,`state`]).conflicts(`country`,[`justification`,`trademark-number`,`trademark-office`,`trademark-symbol`,`destination-ips`,`ports-protocols`,`source-ips`,`reg-who-request-reg-who-authorization-statement`,`reg-who-request-reg-who-good-faith-affirmation`,`reg-who-request-reg-who-lawful-processing-agreement`,`reg-who-request-reg-who-legal-basis`,`reg-who-request-reg-who-request-type`,`reg-who-request-reg-who-requested-data-elements`,`reg-who-request-reg-who-requestor-type`,`original-work`]).implies(`country`,[`address1`,`agent-name`,`agree`,`city`,`host-notification`,`original-work`,`signature`,`state`]).conflicts(`host-notification`,[`reg-who-request-reg-who-authorization-statement`,`reg-who-request-reg-who-good-faith-affirmation`,`reg-who-request-reg-who-lawful-processing-agreement`,`reg-who-request-reg-who-legal-basis`,`reg-who-request-reg-who-request-type`,`reg-who-request-reg-who-requested-data-elements`,`reg-who-request-reg-who-requestor-type`]).conflicts(`original-work`,[`justification`,`trademark-number`,`trademark-office`,`trademark-symbol`,`destination-ips`,`ports-protocols`,`source-ips`,`ncmec-notification`,`reg-who-request-reg-who-authorization-statement`,`reg-who-request-reg-who-good-faith-affirmation`,`reg-who-request-reg-who-lawful-processing-agreement`,`reg-who-request-reg-who-legal-basis`,`reg-who-request-reg-who-request-type`,`reg-who-request-reg-who-requested-data-elements`,`reg-who-request-reg-who-requestor-type`,`ncsei-subject-representation`,`country`]).implies(`original-work`,[`address1`,`agent-name`,`agree`,`city`,`country`,`host-notification`,`signature`,`state`]).conflicts(`signature`,[`justification`,`trademark-number`,`trademark-office`,`trademark-symbol`,`destination-ips`,`ports-protocols`,`source-ips`,`ncmec-notification`,`reg-who-request-reg-who-authorization-statement`,`reg-who-request-reg-who-good-faith-affirmation`,`reg-who-request-reg-who-lawful-processing-agreement`,`reg-who-request-reg-who-legal-basis`,`reg-who-request-reg-who-request-type`,`reg-who-request-reg-who-requested-data-elements`,`reg-who-request-reg-who-requestor-type`,`ncsei-subject-representation`]).implies(`signature`,[`address1`,`agent-name`,`agree`,`city`,`country`,`host-notification`,`original-work`,`state`]).conflicts(`state`,[`justification`,`trademark-number`,`trademark-office`,`trademark-symbol`,`destination-ips`,`ports-protocols`,`source-ips`,`ncmec-notification`,`reg-who-request-reg-who-authorization-statement`,`reg-who-request-reg-who-good-faith-affirmation`,`reg-who-request-reg-who-lawful-processing-agreement`,`reg-who-request-reg-who-legal-basis`,`reg-who-request-reg-who-request-type`,`reg-who-request-reg-who-requested-data-elements`,`reg-who-request-reg-who-requestor-type`,`ncsei-subject-representation`]).implies(`state`,[`address1`,`agent-name`,`agree`,`city`,`country`,`host-notification`,`original-work`,`signature`]).conflicts(`justification`,[`address1`,`agent-name`,`agree`,`city`,`country`,`original-work`,`signature`,`state`,`reg-who-request-reg-who-authorization-statement`,`reg-who-request-reg-who-good-faith-affirmation`,`reg-who-request-reg-who-lawful-processing-agreement`,`reg-who-request-reg-who-legal-basis`,`reg-who-request-reg-who-request-type`,`reg-who-request-reg-who-requested-data-elements`,`reg-who-request-reg-who-requestor-type`,`ncsei-subject-representation`]).conflicts(`trademark-number`,[`address1`,`agent-name`,`agree`,`city`,`country`,`original-work`,`signature`,`state`,`destination-ips`,`ports-protocols`,`source-ips`,`ncmec-notification`,`reg-who-request-reg-who-authorization-statement`,`reg-who-request-reg-who-good-faith-affirmation`,`reg-who-request-reg-who-lawful-processing-agreement`,`reg-who-request-reg-who-legal-basis`,`reg-who-request-reg-who-request-type`,`reg-who-request-reg-who-requested-data-elements`,`reg-who-request-reg-who-requestor-type`,`ncsei-subject-representation`]).implies(`trademark-number`,[`host-notification`,`justification`,`trademark-office`,`trademark-symbol`]).conflicts(`trademark-office`,[`address1`,`agent-name`,`agree`,`city`,`country`,`original-work`,`signature`,`state`,`destination-ips`,`ports-protocols`,`source-ips`,`ncmec-notification`,`reg-who-request-reg-who-authorization-statement`,`reg-who-request-reg-who-good-faith-affirmation`,`reg-who-request-reg-who-lawful-processing-agreement`,`reg-who-request-reg-who-legal-basis`,`reg-who-request-reg-who-request-type`,`reg-who-request-reg-who-requested-data-elements`,`reg-who-request-reg-who-requestor-type`,`ncsei-subject-representation`]).implies(`trademark-office`,[`host-notification`,`justification`,`trademark-number`,`trademark-symbol`]).conflicts(`trademark-symbol`,[`address1`,`agent-name`,`agree`,`city`,`country`,`original-work`,`signature`,`state`,`destination-ips`,`ports-protocols`,`source-ips`,`ncmec-notification`,`reg-who-request-reg-who-authorization-statement`,`reg-who-request-reg-who-good-faith-affirmation`,`reg-who-request-reg-who-lawful-processing-agreement`,`reg-who-request-reg-who-legal-basis`,`reg-who-request-reg-who-request-type`,`reg-who-request-reg-who-requested-data-elements`,`reg-who-request-reg-who-requestor-type`,`ncsei-subject-representation`]).implies(`trademark-symbol`,[`host-notification`,`justification`,`trademark-number`,`trademark-office`]).conflicts(`destination-ips`,[`address1`,`agent-name`,`agree`,`city`,`country`,`original-work`,`signature`,`state`,`trademark-number`,`trademark-office`,`trademark-symbol`,`ncmec-notification`,`reg-who-request-reg-who-authorization-statement`,`reg-who-request-reg-who-good-faith-affirmation`,`reg-who-request-reg-who-lawful-processing-agreement`,`reg-who-request-reg-who-legal-basis`,`reg-who-request-reg-who-request-type`,`reg-who-request-reg-who-requested-data-elements`,`reg-who-request-reg-who-requestor-type`,`ncsei-subject-representation`]).conflicts(`ports-protocols`,[`address1`,`agent-name`,`agree`,`city`,`country`,`original-work`,`signature`,`state`,`trademark-number`,`trademark-office`,`trademark-symbol`,`ncmec-notification`,`reg-who-request-reg-who-authorization-statement`,`reg-who-request-reg-who-good-faith-affirmation`,`reg-who-request-reg-who-lawful-processing-agreement`,`reg-who-request-reg-who-legal-basis`,`reg-who-request-reg-who-request-type`,`reg-who-request-reg-who-requested-data-elements`,`reg-who-request-reg-who-requestor-type`,`ncsei-subject-representation`]).conflicts(`source-ips`,[`address1`,`agent-name`,`agree`,`city`,`country`,`original-work`,`signature`,`state`,`trademark-number`,`trademark-office`,`trademark-symbol`,`ncmec-notification`,`reg-who-request-reg-who-authorization-statement`,`reg-who-request-reg-who-good-faith-affirmation`,`reg-who-request-reg-who-lawful-processing-agreement`,`reg-who-request-reg-who-legal-basis`,`reg-who-request-reg-who-request-type`,`reg-who-request-reg-who-requested-data-elements`,`reg-who-request-reg-who-requestor-type`,`ncsei-subject-representation`]).conflicts(`ncmec-notification`,[`address1`,`agent-name`,`agree`,`city`,`original-work`,`signature`,`state`,`trademark-number`,`trademark-office`,`trademark-symbol`,`destination-ips`,`ports-protocols`,`source-ips`,`reg-who-request-reg-who-authorization-statement`,`reg-who-request-reg-who-good-faith-affirmation`,`reg-who-request-reg-who-lawful-processing-agreement`,`reg-who-request-reg-who-legal-basis`,`reg-who-request-reg-who-request-type`,`reg-who-request-reg-who-requested-data-elements`,`reg-who-request-reg-who-requestor-type`,`ncsei-subject-representation`]).implies(`ncmec-notification`,[`host-notification`,`justification`]).conflicts(`reg-who-request-reg-who-authorization-statement`,[`address1`,`agent-name`,`agree`,`city`,`country`,`host-notification`,`original-work`,`signature`,`state`,`justification`,`trademark-number`,`trademark-office`,`trademark-symbol`,`destination-ips`,`ports-protocols`,`source-ips`,`ncmec-notification`,`ncsei-subject-representation`]).conflicts(`reg-who-request-reg-who-good-faith-affirmation`,[`address1`,`agent-name`,`agree`,`city`,`country`,`host-notification`,`original-work`,`signature`,`state`,`justification`,`trademark-number`,`trademark-office`,`trademark-symbol`,`destination-ips`,`ports-protocols`,`source-ips`,`ncmec-notification`,`ncsei-subject-representation`]).conflicts(`reg-who-request-reg-who-lawful-processing-agreement`,[`address1`,`agent-name`,`agree`,`city`,`country`,`host-notification`,`original-work`,`signature`,`state`,`justification`,`trademark-number`,`trademark-office`,`trademark-symbol`,`destination-ips`,`ports-protocols`,`source-ips`,`ncmec-notification`,`ncsei-subject-representation`]).conflicts(`reg-who-request-reg-who-legal-basis`,[`address1`,`agent-name`,`agree`,`city`,`country`,`host-notification`,`original-work`,`signature`,`state`,`justification`,`trademark-number`,`trademark-office`,`trademark-symbol`,`destination-ips`,`ports-protocols`,`source-ips`,`ncmec-notification`,`ncsei-subject-representation`]).conflicts(`reg-who-request-reg-who-request-type`,[`address1`,`agent-name`,`agree`,`city`,`country`,`host-notification`,`original-work`,`signature`,`state`,`justification`,`trademark-number`,`trademark-office`,`trademark-symbol`,`destination-ips`,`ports-protocols`,`source-ips`,`ncmec-notification`,`ncsei-subject-representation`]).conflicts(`reg-who-request-reg-who-requested-data-elements`,[`address1`,`agent-name`,`agree`,`city`,`country`,`host-notification`,`original-work`,`signature`,`state`,`justification`,`trademark-number`,`trademark-office`,`trademark-symbol`,`destination-ips`,`ports-protocols`,`source-ips`,`ncmec-notification`,`ncsei-subject-representation`]).conflicts(`reg-who-request-reg-who-requestor-type`,[`address1`,`agent-name`,`agree`,`city`,`country`,`host-notification`,`original-work`,`signature`,`state`,`justification`,`trademark-number`,`trademark-office`,`trademark-symbol`,`destination-ips`,`ports-protocols`,`source-ips`,`ncmec-notification`,`ncsei-subject-representation`]).conflicts(`ncsei-subject-representation`,[`address1`,`agent-name`,`agree`,`city`,`original-work`,`signature`,`state`,`justification`,`trademark-number`,`trademark-office`,`trademark-symbol`,`destination-ips`,`ports-protocols`,`source-ips`,`ncmec-notification`,`reg-who-request-reg-who-authorization-statement`,`reg-who-request-reg-who-good-faith-affirmation`,`reg-who-request-reg-who-lawful-processing-agreement`,`reg-who-request-reg-who-legal-basis`,`reg-who-request-reg-who-request-type`,`reg-who-request-reg-who-requested-data-elements`,`reg-who-request-reg-who-requestor-type`]).implies(`ncsei-subject-representation`,[`host-notification`]).check(e=>{if([`reg-who-request-reg-who-authorization-statement`,`reg-who-request-reg-who-good-faith-affirmation`,`reg-who-request-reg-who-lawful-processing-agreement`,`reg-who-request-reg-who-legal-basis`,`reg-who-request-reg-who-request-type`,`reg-who-request-reg-who-requested-data-elements`,`reg-who-request-reg-who-requestor-type`].some(t=>e[t]!==void 0)){let t={"reg-who-request-reg-who-good-faith-affirmation":[`address1`,`agent-name`,`agree`,`city`,`country`,`host-notification`,`original-work`,`signature`,`state`,`justification`,`trademark-number`,`trademark-office`,`trademark-symbol`,`destination-ips`,`ports-protocols`,`source-ips`,`ncmec-notification`,`ncsei-subject-representation`],"reg-who-request-reg-who-lawful-processing-agreement":[`address1`,`agent-name`,`agree`,`city`,`country`,`host-notification`,`original-work`,`signature`,`state`,`justification`,`trademark-number`,`trademark-office`,`trademark-symbol`,`destination-ips`,`ports-protocols`,`source-ips`,`ncmec-notification`,`ncsei-subject-representation`],"reg-who-request-reg-who-legal-basis":[`address1`,`agent-name`,`agree`,`city`,`country`,`host-notification`,`original-work`,`signature`,`state`,`justification`,`trademark-number`,`trademark-office`,`trademark-symbol`,`destination-ips`,`ports-protocols`,`source-ips`,`ncmec-notification`,`ncsei-subject-representation`],"reg-who-request-reg-who-request-type":[`address1`,`agent-name`,`agree`,`city`,`country`,`host-notification`,`original-work`,`signature`,`state`,`justification`,`trademark-number`,`trademark-office`,`trademark-symbol`,`destination-ips`,`ports-protocols`,`source-ips`,`ncmec-notification`,`ncsei-subject-representation`],"reg-who-request-reg-who-requested-data-elements":[`address1`,`agent-name`,`agree`,`city`,`country`,`host-notification`,`original-work`,`signature`,`state`,`justification`,`trademark-number`,`trademark-office`,`trademark-symbol`,`destination-ips`,`ports-protocols`,`source-ips`,`ncmec-notification`,`ncsei-subject-representation`]},n=[`reg-who-request-reg-who-good-faith-affirmation`,`reg-who-request-reg-who-lawful-processing-agreement`,`reg-who-request-reg-who-legal-basis`,`reg-who-request-reg-who-request-type`,`reg-who-request-reg-who-requested-data-elements`].filter(n=>e[n]===void 0&&!(t[n]??[]).some(t=>e[t]!==void 0));if(n.length>0)throw Error(`${n.map(e=>`--`+e).join(`, `)} ${n.length===1?`is`:`are`} required when any --reg_who_request-* flag is set`)}return!0})}const x={command:`create <report-type>`,describe:`Submit an abuse report`,builder:b,handler:async d=>c({command:`abuse-reports create`,classification:{safeFlags:[`act`,`host-notification`,`owner-notification`,`ncmec-notification`,`reg-who-request-reg-who-good-faith-affirmation`,`reg-who-request-reg-who-lawful-processing-agreement`,`reg-who-request-reg-who-request-type`,`reg-who-request-reg-who-requestor-type`,`ncsei-subject-representation`,`dry-run`]}},d,async()=>{if(d.dryRun){o({command:`cf abuse-reports create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/abuse-reports/${d[`report-type`]==null?`<report-type>`:encodeURIComponent(String(d[`report-type`]))}`,pathParams:{"report-type":String(d[`report-type`]??``)},bodyKind:`json`,body:d.body===void 0?f({act:p(d.act,`act`,`text`),comments:p(d.comments,`comments`,`text`),company:p(d.company,`company`,`text`),email:p(d.email,`email`,`text`),email2:p(d.email2,`email2`,`text`),name:p(d.name,`name`,`text`),reported_country:p(d[`reported-country`],`reported-country`,`text`),reported_user_agent:p(d[`reported-user-agent`],`reported-user-agent`,`text`),tele:p(d.tele,`tele`,`text`),title:p(d.title,`title`,`text`),urls:p(d.urls,`urls`,`text`),address1:p(d.address1,`address1`,`text`),agent_name:p(d[`agent-name`],`agent-name`,`text`),agree:d.agree,city:p(d.city,`city`,`text`),country:p(d.country,`country`,`text`),host_notification:p(d[`host-notification`],`host-notification`,`text`),original_work:p(d[`original-work`],`original-work`,`text`),owner_notification:p(d[`owner-notification`],`owner-notification`,`text`),signature:p(d.signature,`signature`,`text`),state:p(d.state,`state`,`text`),justification:p(d.justification,`justification`,`text`),trademark_number:p(d[`trademark-number`],`trademark-number`,`text`),trademark_office:p(d[`trademark-office`],`trademark-office`,`text`),trademark_symbol:p(d[`trademark-symbol`],`trademark-symbol`,`text`),destination_ips:p(d[`destination-ips`],`destination-ips`,`text`),ports_protocols:p(d[`ports-protocols`],`ports-protocols`,`text`),source_ips:p(d[`source-ips`],`source-ips`,`text`),ncmec_notification:p(d[`ncmec-notification`],`ncmec-notification`,`text`),reg_who_request:{reg_who_authorization_statement:p(d[`reg-who-request-reg-who-authorization-statement`],`reg-who-request-reg-who-authorization-statement`,`text`),reg_who_good_faith_affirmation:d[`reg-who-request-reg-who-good-faith-affirmation`],reg_who_lawful_processing_agreement:d[`reg-who-request-reg-who-lawful-processing-agreement`],reg_who_legal_basis:p(d[`reg-who-request-reg-who-legal-basis`],`reg-who-request-reg-who-legal-basis`,`text`),reg_who_request_type:p(d[`reg-who-request-reg-who-request-type`],`reg-who-request-reg-who-request-type`,`text`),reg_who_requested_data_elements:d[`reg-who-request-reg-who-requested-data-elements`],reg_who_requestor_type:p(d[`reg-who-request-reg-who-requestor-type`],`reg-who-request-reg-who-requestor-type`,`text`)},ncsei_subject_representation:d[`ncsei-subject-representation`]}):u(d.body)});return}let c=await i(d),g=d.local?e:await n();if(d.accountId=g,d.body){let e=u(d.body);a(await s(`Creating`,async()=>r(c,`POST`,`/accounts/${g}/abuse-reports/${encodeURIComponent(String(d[`report-type`]))}`,{body:e})),{successLabel:`Created`});return}if(d.act===void 0&&(d.act=await h(`act`,`The act field`,[`abuse_dmca`,`abuse_trademark`,`abuse_general`,`abuse_phishing`,`abuse_children`,`abuse_threat`,`abuse_registrar_whois`,`abuse_ncsei`])),d.email===void 0&&(d.email=await m(`email`,`A valid email of the abuse reporter. This field may be released by Cloudflare to third parties such as the Lumen Database (https://lumendatabase.org/).`)),d.email2===void 0&&(d.email2=await m(`email2`,"Should match the value provided in `email`")),d.name===void 0&&(d.name=await m(`name`,`Text not exceeding 255 characters. This field may be released by Cloudflare to third parties such as the Lumen Database (https://lumendatabase.org/).`)),d.urls===void 0&&(d.urls=await m(`urls`,`A list of valid URLs separated by ‘\\n’ (new line character). The list of the URLs should not exceed 250 URLs. All URLs should have the same hostname. Each URL should be unique. This field may be released by Cloudflare to third parties such as the Lumen Database (https://lumendatabase.org/).`)),d[`owner-notification`]===void 0&&(d[`owner-notification`]=await h(`owner-notification`,`Notification type based on the abuse type. NOTE: Copyright (DMCA) and Trademark reports cannot be anonymous. `,[`send`,`send-anon`,`none`])),d.act===`abuse_dmca`&&d.address1===void 0&&(d.address1=await m(`address1`,`Text not exceeding 100 characters. This field may be released by Cloudflare to third parties such as the Lumen Database (https://lumendatabase.org/).`,{question:`Enter value for --address1`})),d.act===`abuse_dmca`&&d[`agent-name`]===void 0&&(d[`agent-name`]=await m(`agent-name`,`The name of the copyright holder. Text not exceeding 60 characters. This field may be released by Cloudflare to third parties such as the Lumen Database (https://lumendatabase.org/).`,{question:`Enter value for --agent-name`})),d.act===`abuse_dmca`&&d.agree===void 0)throw Error(`--agree is required (or pass --body with this field set).`);if(d.act===`abuse_dmca`&&d.city===void 0&&(d.city=await m(`city`,`Text not exceeding 255 characters. This field may be released by Cloudflare to third parties such as the Lumen Database (https://lumendatabase.org/).`,{question:`Enter value for --city`})),d.act===`abuse_dmca`&&d.country===void 0&&(d.country=await m(`country`,`Text not exceeding 255 characters. This field may be released by Cloudflare to third parties such as the Lumen Database (https://lumendatabase.org/). `,{question:`Enter value for --country`})),d.act===`abuse_dmca`&&d[`host-notification`]===void 0&&(d[`host-notification`]=await m(`host-notification`,`Notification type based on the abuse type. NOTE: Copyright (DMCA) and Trademark reports cannot be anonymous. `,{question:`Enter value for --host-notification`})),d.act===`abuse_dmca`&&d[`original-work`]===void 0&&(d[`original-work`]=await m(`original-work`,`Text not exceeding 255 characters. This field may be released by Cloudflare to third parties such as the Lumen Database (https://lumendatabase.org/). `,{question:`Enter value for --original-work`})),d.act===`abuse_dmca`&&d.signature===void 0&&(d.signature=await m(`signature`,`Required for DMCA reports, should be same as Name. An affirmation that all information in the report is true and accurate while agreeing to the policies of Cloudflare's abuse reports`,{question:`Enter value for --signature`})),d.act===`abuse_dmca`&&d.state===void 0&&(d.state=await m(`state`,`Text not exceeding 255 characters. This field may be released by Cloudflare to third parties such as the Lumen Database (https://lumendatabase.org/).`,{question:`Enter value for --state`})),d.act===`abuse_trademark`&&d[`host-notification`]===void 0&&(d[`host-notification`]=await m(`host-notification`,`Notification type based on the abuse type. NOTE: Copyright (DMCA) and Trademark reports cannot be anonymous. `,{question:`Enter value for --host-notification`})),d.act===`abuse_trademark`&&d.justification===void 0&&(d.justification=await m(`justification`,`A detailed description of the infringement, including any necessary access details and the exact steps needed to view the content, not exceeding 5000 characters. `,{question:`Enter value for --justification`})),d.act===`abuse_trademark`&&d[`trademark-number`]===void 0&&(d[`trademark-number`]=await m(`trademark-number`,`Text not exceeding 1000 characters`,{question:`Enter value for --trademark-number`})),d.act===`abuse_trademark`&&d[`trademark-office`]===void 0&&(d[`trademark-office`]=await m(`trademark-office`,`Text not exceeding 1000 characters`,{question:`Enter value for --trademark-office`})),d.act===`abuse_trademark`&&d[`trademark-symbol`]===void 0&&(d[`trademark-symbol`]=await m(`trademark-symbol`,`Text not exceeding 1000 characters`,{question:`Enter value for --trademark-symbol`})),d.act===`abuse_general`&&d[`host-notification`]===void 0&&(d[`host-notification`]=await m(`host-notification`,`Notification type based on the abuse type. NOTE: Copyright (DMCA) and Trademark reports cannot be anonymous. `,{question:`Enter value for --host-notification`})),d.act===`abuse_general`&&d.justification===void 0&&(d.justification=await m(`justification`,`A detailed description of the infringement, including any necessary access details and the exact steps needed to view the content, not exceeding 5000 characters. `,{question:`Enter value for --justification`})),d.act===`abuse_phishing`&&d[`host-notification`]===void 0&&(d[`host-notification`]=await m(`host-notification`,`Notification type based on the abuse type. NOTE: Copyright (DMCA) and Trademark reports cannot be anonymous. `,{question:`Enter value for --host-notification`})),d.act===`abuse_phishing`&&d.justification===void 0&&(d.justification=await m(`justification`,`A detailed description of the infringement, including any necessary access details and the exact steps needed to view the content, not exceeding 5000 characters. `,{question:`Enter value for --justification`})),d.act===`abuse_children`&&d[`host-notification`]===void 0&&(d[`host-notification`]=await m(`host-notification`,`Notification type based on the abuse type. NOTE: Copyright (DMCA) and Trademark reports cannot be anonymous. `,{question:`Enter value for --host-notification`})),d.act===`abuse_children`&&d.justification===void 0&&(d.justification=await m(`justification`,`A detailed description of the infringement, including any necessary access details and the exact steps needed to view the content, not exceeding 5000 characters. `,{question:`Enter value for --justification`})),d.act===`abuse_children`&&d[`ncmec-notification`]===void 0&&(d[`ncmec-notification`]=await m(`ncmec-notification`,`Notification type based on the abuse type. NOTE: Copyright (DMCA) and Trademark reports cannot be anonymous. `,{question:`Enter value for --ncmec-notification`})),d.act===`abuse_threat`&&d[`host-notification`]===void 0&&(d[`host-notification`]=await m(`host-notification`,`Notification type based on the abuse type. NOTE: Copyright (DMCA) and Trademark reports cannot be anonymous. `,{question:`Enter value for --host-notification`})),d.act===`abuse_threat`&&d.justification===void 0&&(d.justification=await m(`justification`,`A detailed description of the infringement, including any necessary access details and the exact steps needed to view the content, not exceeding 5000 characters. `,{question:`Enter value for --justification`})),d.act===`abuse_ncsei`&&d[`host-notification`]===void 0&&(d[`host-notification`]=await m(`host-notification`,`Notification type based on the abuse type. NOTE: Copyright (DMCA) and Trademark reports cannot be anonymous. `,{question:`Enter value for --host-notification`})),d.act===`abuse_ncsei`&&d[`ncsei-subject-representation`]===void 0)throw Error(`--ncsei-subject-representation is required (or pass --body with this field set).`);let _={};d.act!==void 0&&l(_,[`act`],p(d.act,`act`,`text`)),d.comments!==void 0&&l(_,[`comments`],p(d.comments,`comments`,`text`)),d.company!==void 0&&l(_,[`company`],p(d.company,`company`,`text`)),d.email!==void 0&&l(_,[`email`],p(d.email,`email`,`text`)),d.email2!==void 0&&l(_,[`email2`],p(d.email2,`email2`,`text`)),d.name!==void 0&&l(_,[`name`],p(d.name,`name`,`text`)),d[`reported-country`]!==void 0&&l(_,[`reported_country`],p(d[`reported-country`],`reported-country`,`text`)),d[`reported-user-agent`]!==void 0&&l(_,[`reported_user_agent`],p(d[`reported-user-agent`],`reported-user-agent`,`text`)),d.tele!==void 0&&l(_,[`tele`],p(d.tele,`tele`,`text`)),d.title!==void 0&&l(_,[`title`],p(d.title,`title`,`text`)),d.urls!==void 0&&l(_,[`urls`],p(d.urls,`urls`,`text`)),d.address1!==void 0&&l(_,[`address1`],p(d.address1,`address1`,`text`)),d[`agent-name`]!==void 0&&l(_,[`agent_name`],p(d[`agent-name`],`agent-name`,`text`)),d.agree!==void 0&&l(_,[`agree`],d.agree),d.city!==void 0&&l(_,[`city`],p(d.city,`city`,`text`)),d.country!==void 0&&l(_,[`country`],p(d.country,`country`,`text`)),d[`host-notification`]!==void 0&&l(_,[`host_notification`],p(d[`host-notification`],`host-notification`,`text`)),d[`original-work`]!==void 0&&l(_,[`original_work`],p(d[`original-work`],`original-work`,`text`)),d[`owner-notification`]!==void 0&&l(_,[`owner_notification`],p(d[`owner-notification`],`owner-notification`,`text`)),d.signature!==void 0&&l(_,[`signature`],p(d.signature,`signature`,`text`)),d.state!==void 0&&l(_,[`state`],p(d.state,`state`,`text`)),d.justification!==void 0&&l(_,[`justification`],p(d.justification,`justification`,`text`)),d[`trademark-number`]!==void 0&&l(_,[`trademark_number`],p(d[`trademark-number`],`trademark-number`,`text`)),d[`trademark-office`]!==void 0&&l(_,[`trademark_office`],p(d[`trademark-office`],`trademark-office`,`text`)),d[`trademark-symbol`]!==void 0&&l(_,[`trademark_symbol`],p(d[`trademark-symbol`],`trademark-symbol`,`text`)),d[`destination-ips`]!==void 0&&l(_,[`destination_ips`],p(d[`destination-ips`],`destination-ips`,`text`)),d[`ports-protocols`]!==void 0&&l(_,[`ports_protocols`],p(d[`ports-protocols`],`ports-protocols`,`text`)),d[`source-ips`]!==void 0&&l(_,[`source_ips`],p(d[`source-ips`],`source-ips`,`text`)),d[`ncmec-notification`]!==void 0&&l(_,[`ncmec_notification`],p(d[`ncmec-notification`],`ncmec-notification`,`text`)),d[`reg-who-request-reg-who-authorization-statement`]!==void 0&&l(_,[`reg_who_request`,`reg_who_authorization_statement`],p(d[`reg-who-request-reg-who-authorization-statement`],`reg-who-request-reg-who-authorization-statement`,`text`)),d[`reg-who-request-reg-who-good-faith-affirmation`]!==void 0&&l(_,[`reg_who_request`,`reg_who_good_faith_affirmation`],d[`reg-who-request-reg-who-good-faith-affirmation`]),d[`reg-who-request-reg-who-lawful-processing-agreement`]!==void 0&&l(_,[`reg_who_request`,`reg_who_lawful_processing_agreement`],d[`reg-who-request-reg-who-lawful-processing-agreement`]),d[`reg-who-request-reg-who-legal-basis`]!==void 0&&l(_,[`reg_who_request`,`reg_who_legal_basis`],p(d[`reg-who-request-reg-who-legal-basis`],`reg-who-request-reg-who-legal-basis`,`text`)),d[`reg-who-request-reg-who-request-type`]!==void 0&&l(_,[`reg_who_request`,`reg_who_request_type`],p(d[`reg-who-request-reg-who-request-type`],`reg-who-request-reg-who-request-type`,`text`)),d[`reg-who-request-reg-who-requested-data-elements`]!==void 0&&l(_,[`reg_who_request`,`reg_who_requested_data_elements`],d[`reg-who-request-reg-who-requested-data-elements`]),d[`reg-who-request-reg-who-requestor-type`]!==void 0&&l(_,[`reg_who_request`,`reg_who_requestor_type`],p(d[`reg-who-request-reg-who-requestor-type`],`reg-who-request-reg-who-requestor-type`,`text`)),d[`ncsei-subject-representation`]!==void 0&&l(_,[`ncsei_subject_representation`],d[`ncsei-subject-representation`]),a(await s(`Creating`,async()=>r(c,`POST`,`/accounts/${g}/abuse-reports/${encodeURIComponent(String(d[`report-type`]))}`,{body:Object.keys(_).length>0?_:void 0})),{successLabel:`Created`})})};function S(e){return e.usage(`$0 abuse-reports emails list-submitted <report-id>
|
|
11
|
+
|
|
12
|
+
List successful emails sent to the submitter of a report submitted by the account. Does not include emails sent to customers or hosts.`).positional(`report-id`,{type:`string`,description:`Public report code.`,demandOption:!0}).option(`page`,{type:`number`,description:`Page number to retrieve (default 1).`}).option(`per-page`,{type:`number`,description:`Number of emails per page (default 20, max 100).`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const C={command:`list-submitted <report-id>`,describe:`List emails sent to an abuse report submitter`,builder:S,handler:async r=>c({command:`abuse-reports emails list-submitted`,classification:{safeFlags:[`dry-run`]}},r,async()=>{let c={page:r.page,per_page:r[`per-page`]};if(r.dryRun){o({command:`cf abuse-reports emails list-submitted`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/abuse-reports/submitted/${r[`report-id`]==null?`<report-id>`:encodeURIComponent(String(r[`report-id`]))}/emails`,pathParams:{"report-id":String(r[`report-id`]??``)},query:c,bodyKind:`none`});return}let l=await i(r),u=r.local?e:await n();r.accountId=u,a(await s(`Loading`,async()=>l.abuseReports.emails.listSubmitted({account_id:u,report_id:r[`report-id`],...c})),{successLabel:`Loaded`})})};function w(e){return e.usage(`$0 abuse-reports emails list
|
|
13
|
+
|
|
14
|
+
List emails sent to the customer for an abuse report. Returns all successful customer emails sent for the specified abuse report. Does not include emails sent to hosts or submitters.`).option(`report-id`,{type:`string`,description:`Abuse Report ID`,demandOption:!0}).option(`page`,{type:`number`,description:`Page number to retrieve (default 1)`}).option(`per-page`,{type:`number`,description:`Number of emails per page (default 20, max 100)`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const T={command:`list`,describe:`List abuse report emails`,builder:w,handler:async r=>c({command:`abuse-reports emails list`,classification:{safeFlags:[`dry-run`]}},r,async()=>{let c={page:r.page,per_page:r[`per-page`]};if(r.dryRun){o({command:`cf abuse-reports emails list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/abuse-reports/${r[`report-id`]==null?`<report-id>`:encodeURIComponent(String(r[`report-id`]))}/emails`,pathParams:{"report-id":String(r[`report-id`]??``)},query:c,bodyKind:`none`});return}let l=await i(r),u=r.local?e:await n();r.accountId=u,a(await s(`Loading`,async()=>l.abuseReports.emails.list({account_id:u,report_id:r[`report-id`],...c})),{successLabel:`Loaded`})})},E={command:`emails`,describe:`Emails sent for abuse reports`,builder:e=>e.command(T).command(C).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function D(e){return e.usage(`$0 abuse-reports get-submitted <report-id>
|
|
15
|
+
|
|
16
|
+
Retrieve a report submitted by the account.`).positional(`report-id`,{type:`string`,description:`Public report code.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const O={command:`get-submitted <report-id>`,describe:`Get a submitted abuse report`,builder:D,handler:async r=>c({command:`abuse-reports get-submitted`,classification:{safeFlags:[`dry-run`]}},r,async()=>{if(r.dryRun){o({command:`cf abuse-reports get-submitted`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/abuse-reports/submitted/${r[`report-id`]==null?`<report-id>`:encodeURIComponent(String(r[`report-id`]))}`,pathParams:{"report-id":String(r[`report-id`]??``)},bodyKind:`none`});return}let c=await i(r),l=r.local?e:await n();r.accountId=l,a(await s(`Loading`,async()=>c.abuseReports.getSubmitted({account_id:l,report_id:r[`report-id`]})),{successLabel:`Loaded`})})};function k(e){return e.usage(`$0 abuse-reports get <report-id>
|
|
17
|
+
|
|
18
|
+
Retrieve the details of an abuse report made against a domain or other content associated with the account. To retrieve a report that the account submitted, use the submitted abuse report endpoint instead.`).positional(`report-id`,{type:`string`,description:`Public report ID.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const A={command:`get <report-id>`,describe:`Get an abuse report against the account`,builder:k,handler:async l=>c({command:`abuse-reports get`,classification:{safeFlags:[`dry-run`]}},l,async()=>{if(l.dryRun){o({command:`cf abuse-reports get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/abuse-reports/${l[`report-id`]==null?`<report-id>`:encodeURIComponent(String(l[`report-id`]))}`,pathParams:{"report-id":String(l[`report-id`]??``)},bodyKind:`none`});return}let c=await i(l),u=l.local?e:await n();l.accountId=u,a(await s(`Loading`,async()=>r(c,`GET`,`/accounts/${u}/abuse-reports/${encodeURIComponent(String(l[`report-id`]))}`)),{successLabel:`Loaded`})})};function j(e){return e.usage(`$0 abuse-reports list-submitted
|
|
19
|
+
|
|
20
|
+
List abuse reports submitted by the account.`).option(`page`,{type:`number`,description:`Page of submitted reports to return.`}).option(`per-page`,{type:`number`,description:`Number of submitted reports per page.`}).option(`sort`,{type:`string`,description:`A property and direction to sort by (id, cdate, domain, type, status).`}).option(`id`,{type:`string`,description:`Filter by report code.`}).option(`domain`,{type:`string`,description:`Filter by reported domain. This parameter can be specified multiple times.`}).option(`created-before`,{type:`string`,description:`Return reports submitted before this time.`}).option(`created-after`,{type:`string`,description:`Return reports submitted after this time.`}).option(`status`,{type:`string`,description:`Filter by submitter-facing status. This parameter can be specified multiple times.`}).option(`type`,{type:`string`,description:`Filter by report type. This parameter can be specified multiple times.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const M={command:`list-submitted`,describe:`List submitted abuse reports`,builder:g(j),handler:async r=>c({command:`abuse-reports list-submitted`,classification:{safeFlags:[`dry-run`]}},r,async()=>{let c={page:r.page,per_page:r[`per-page`],sort:r.sort,id:r.id,domain:r.domain,created_before:r[`created-before`],created_after:r[`created-after`],status:r.status,type:r.type};if(r.dryRun){o({command:`cf abuse-reports list-submitted`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/abuse-reports/submitted`,pathParams:{},query:c,bodyKind:`none`});return}let l=await i(r),u=r.local?e:await n();r.accountId=u,a(await s(`Loading`,async()=>l.abuseReports.listSubmitted({account_id:u,...c})),{successLabel:`Loaded`})})};function N(e){return e.usage(`$0 abuse-reports list
|
|
21
|
+
|
|
22
|
+
List abuse reports made against domains or other content associated with the account. To list reports that the account submitted, use the submitted abuse reports endpoint instead.`).option(`page`,{type:`number`,description:`Where in pagination to start listing abuse reports`}).option(`per-page`,{type:`number`,description:`How many abuse reports per page to list`}).option(`sort`,{type:`string`,description:`A property to sort by, followed by the order (id, cdate, domain, type, status)`}).option(`domain`,{type:`string`,description:`Filter by domain name related to the abuse report`}).option(`created-before`,{type:`string`,description:`Returns reports created before the specified date`}).option(`created-after`,{type:`string`,description:`Returns reports created after the specified date`}).option(`status`,{type:`string`,description:`Filter by the status of the report.`,choices:[`accepted`,`in_review`]}).option(`type`,{type:`string`,description:`Filter by the type of the report.`,choices:[`PHISH`,`GEN`,`THREAT`,`DMCA`,`EMER`,`TM`,`REG_WHO`,`NCSEI`,`NETWORK`]}).option(`mitigation-status`,{type:`string`,description:`Filter reports that have any mitigations in the given status.`,choices:[`pending`,`active`,`in_review`,`cancelled`,`removed`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const P={command:`list`,describe:`List abuse reports against the account`,builder:g(N),handler:async r=>c({command:`abuse-reports list`,classification:{safeFlags:[`status`,`type`,`mitigation-status`,`dry-run`]}},r,async()=>{let c={page:r.page,per_page:r[`per-page`],sort:r.sort,domain:r.domain,created_before:r[`created-before`],created_after:r[`created-after`],status:r.status,type:r.type,mitigation_status:r[`mitigation-status`]};if(r.dryRun){o({command:`cf abuse-reports list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/abuse-reports`,pathParams:{},query:c,bodyKind:`none`});return}let l=await i(r),u=r.local?e:await n();r.accountId=u,a(await s(`Loading`,async()=>l.abuseReports.list({account_id:u,...c})),{successLabel:`Loaded`})})};function F(e){return e.usage(`$0 abuse-reports mitigations list
|
|
23
|
+
|
|
24
|
+
List mitigations done to remediate the abuse report.`).option(`report-id`,{type:`string`,description:`Abuse Report ID`,demandOption:!0}).option(`page`,{type:`number`,description:`Where in pagination to start listing abuse reports`}).option(`per-page`,{type:`number`,description:`How many abuse reports per page to list`}).option(`sort`,{type:`string`,description:`A property to sort by, followed by the order`,choices:[`type,asc`,`type,desc`,`effective_date,asc`,`effective_date,desc`,`status,asc`,`status,desc`,`entity_type,asc`,`entity_type,desc`]}).option(`type`,{type:`string`,description:`Filter by the type of mitigation. This filter parameter can be specified multiple times to include multiple types of mitigations in the result set.`}).option(`effective-before`,{type:`string`,description:`Returns mitigations that were dispatched before the given date`}).option(`effective-after`,{type:`string`,description:`Returns mitigation that were dispatched after the given date`}).option(`status`,{type:`string`,description:`Filter by the status of the mitigation.`,choices:[`pending`,`active`,`in_review`,`cancelled`,`removed`]}).option(`entity-type`,{type:`string`,description:`Filter by the type of entity the mitigation impacts.`,choices:[`url_pattern`,`account`,`zone`,`custom_expression`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const I={command:`list`,describe:`List abuse report mitigations`,builder:g(F),handler:async r=>c({command:`abuse-reports mitigations list`,classification:{safeFlags:[`sort`,`status`,`entity-type`,`dry-run`]}},r,async()=>{let c={page:r.page,per_page:r[`per-page`],sort:r.sort,type:r.type,effective_before:r[`effective-before`],effective_after:r[`effective-after`],status:r.status,entity_type:r[`entity-type`]};if(r.dryRun){o({command:`cf abuse-reports mitigations list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/abuse-reports/${r[`report-id`]==null?`<report-id>`:encodeURIComponent(String(r[`report-id`]))}/mitigations`,pathParams:{"report-id":String(r[`report-id`]??``)},query:c,bodyKind:`none`});return}let l=await i(r),u=r.local?e:await n();r.accountId=u,a(await s(`Loading`,async()=>l.abuseReports.mitigations.list({account_id:u,report_id:r[`report-id`],...c})),{successLabel:`Loaded`})})};function L(e){return e.usage("$0 abuse-reports mitigations review <report-id>\n\nRequest a review of mitigations applied because of an abuse report, or submit a report-level appeal. - To request a review of specific mitigations, send `appeals` with the mitigation IDs and reasons. Repeating a request for a mitigation with an unresolved appeal is idempotent and returns that mitigation in the in-review state. - To submit a report-level appeal, send `type` and, for a `counter_notice`, the counter-notice details in `data`. Report-level appeals are currently available only for DMCA (copyright) reports.").positional(`report-id`,{type:`string`,description:`Abuse Report ID`,demandOption:!0}).option(`appeals`,{type:`string`,description:`List of mitigations to appeal. Provide as a JSON array of objects or @path/to/file.json.`}).option(`data-city`,{type:`string`,description:`The data.city field`}).option(`data-company`,{type:`string`,description:`The data.company field`}).option(`data-counter-notice-response`,{type:`string`,description:`The data.counter_notice_response field`}).option(`data-country`,{type:`string`,description:`The data.country field`}).option(`data-email`,{type:`string`,description:`The data.email field`}).option(`data-full-name`,{type:`string`,description:`The data.full_name field`}).option(`data-jurisdiction-consent`,{type:`boolean`,description:`The data.jurisdiction_consent field`}).option(`data-perjury-attestation`,{type:`boolean`,description:`The data.perjury_attestation field`}).option(`data-phone-number`,{type:`string`,description:`The data.phone_number field`}).option(`data-signature`,{type:`string`,description:`The data.signature field`}).option(`data-state`,{type:`string`,description:`The data.state field`}).option(`data-street-address`,{type:`string`,description:`The data.street_address field`}).option(`data-urls`,{type:`string`,array:!0,description:`The data.urls field`}).option(`data-zip-code`,{type:`string`,description:`The data.zip_code field`}).option(`type`,{type:`string`,description:`The type of appeal being submitted.`,choices:[`counter_notice`,`content_removed`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Submit an appeal for a report. Provide either a list of mitigations to appeal, or an appeal type with its supporting details, but not both. When type is "counter_notice", the counter-notice details are required.`}).check(e=>{if([`data-city`,`data-company`,`data-counter-notice-response`,`data-country`,`data-email`,`data-full-name`,`data-jurisdiction-consent`,`data-perjury-attestation`,`data-phone-number`,`data-signature`,`data-state`,`data-street-address`,`data-urls`,`data-zip-code`].some(t=>e[t]!==void 0)){let t=[`data-city`,`data-country`,`data-email`,`data-full-name`,`data-jurisdiction-consent`,`data-perjury-attestation`,`data-phone-number`,`data-signature`,`data-state`,`data-street-address`,`data-urls`,`data-zip-code`].filter(t=>e[t]===void 0);if(t.length>0)throw Error(`${t.map(e=>`--`+e).join(`, `)} ${t.length===1?`is`:`are`} required when any --data-* flag is set`)}return!0})}const R={command:`review <report-id>`,describe:`Request review on mitigations`,builder:L,handler:async r=>c({command:`abuse-reports mitigations review`,classification:{safeFlags:[`data-jurisdiction-consent`,`data-perjury-attestation`,`type`,`dry-run`]}},r,async()=>{if(r.dryRun){o({command:`cf abuse-reports mitigations review`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/abuse-reports/${r[`report-id`]==null?`<report-id>`:encodeURIComponent(String(r[`report-id`]))}/mitigations/appeal`,pathParams:{"report-id":String(r[`report-id`]??``)},bodyKind:`json`,body:r.body===void 0?f({appeals:d(r.appeals,`appeals`),data:{city:p(r[`data-city`],`data-city`,`text`),company:p(r[`data-company`],`data-company`,`text`),counter_notice_response:p(r[`data-counter-notice-response`],`data-counter-notice-response`,`text`),country:p(r[`data-country`],`data-country`,`text`),email:p(r[`data-email`],`data-email`,`text`),full_name:p(r[`data-full-name`],`data-full-name`,`text`),jurisdiction_consent:r[`data-jurisdiction-consent`],perjury_attestation:r[`data-perjury-attestation`],phone_number:p(r[`data-phone-number`],`data-phone-number`,`text`),signature:p(r[`data-signature`],`data-signature`,`text`),state:p(r[`data-state`],`data-state`,`text`),street_address:p(r[`data-street-address`],`data-street-address`,`text`),urls:r[`data-urls`],zip_code:p(r[`data-zip-code`],`data-zip-code`,`text`)},type:p(r.type,`type`,`text`)}):u(r.body)});return}let c=await i(r),l=r.local?e:await n();if(r.accountId=l,r.body){let e=u(r.body);a(await s(`Creating`,async()=>c.abuseReports.mitigations.review({body:e,account_id:l,report_id:r[`report-id`]})),{successLabel:`Created`});return}let m=f({appeals:d(r.appeals,`appeals`),data:{city:p(r[`data-city`],`data-city`,`text`),company:p(r[`data-company`],`data-company`,`text`),counter_notice_response:p(r[`data-counter-notice-response`],`data-counter-notice-response`,`text`),country:p(r[`data-country`],`data-country`,`text`),email:p(r[`data-email`],`data-email`,`text`),full_name:p(r[`data-full-name`],`data-full-name`,`text`),jurisdiction_consent:r[`data-jurisdiction-consent`],perjury_attestation:r[`data-perjury-attestation`],phone_number:p(r[`data-phone-number`],`data-phone-number`,`text`),signature:p(r[`data-signature`],`data-signature`,`text`),state:p(r[`data-state`],`data-state`,`text`),street_address:p(r[`data-street-address`],`data-street-address`,`text`),urls:r[`data-urls`],zip_code:p(r[`data-zip-code`],`data-zip-code`,`text`)},type:p(r.type,`type`,`text`)});a(await s(`Creating`,async()=>c.abuseReports.mitigations.review({body:m,account_id:l,report_id:r[`report-id`]})),{successLabel:`Created`})})},z={command:`mitigations`,describe:`Mitigation actions taken in response to abuse reports`,builder:e=>e.command(I).command(R).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},B={command:`abuse-reports`,describe:`Submit and track abuse reports for phishing, malware, and other policy violations on Cloudflare-proxied sites`,builder:e=>e.command(x).command(A).command(O).command(P).command(M).command(y).command(E).command(z).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};export{B as default};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import{t as e}from"./lazy-command-
|
|
2
|
+
import{t as e}from"./lazy-command-g04RHlS2.mjs";var t=e(`curl <url>`,`Run curl against an Access-protected application with its JWT injected by cloudflared.`,()=>import(`./command-B5Itp2BM.mjs`),{command:`access curl`,recordArgs:!1}),n=e(`login <url>`,`Authenticate with an Access application and store its JWT through cloudflared.`,()=>import(`./command-eqgT8zz4.mjs`),{command:`access login`,recordArgs:!1}),r=e(`ssh-config`,`Print an example SSH configuration for an Access application.`,()=>import(`./command-BmXnByw9.mjs`),{command:`access ssh-config`,recordArgs:!1}),i=e(`ssh-gen`,`Generate a short-lived certificate for an Access SSH application.`,()=>import(`./command-Du3MiYA7.mjs`),{command:`access ssh-gen`,recordArgs:!1}),a={...e(`tcp`,`Proxy a TCP connection through Access. The command is also available as ssh, rdp, and smb.`,()=>import(`./command-CkJvjkfK.mjs`),{command:`access tcp`,recordArgs:!1}),aliases:[`ssh`,`rdp`,`smb`]},o=e(`token <url>`,`Print a JWT for authenticating with an Access application.`,()=>import(`./command-CHcCSvVz.mjs`),{command:`access token`,recordArgs:!1});const s={command:`access`,describe:`Access protected applications and services`,builder:e=>e.command(t).command(n).command(r).command(i).command(a).command(o).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};export{s as default};
|
|
@@ -1,5 +1,5 @@
|
|
|
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,i as n,t as r}from"./context-CE7QFX-z.mjs";import{a as i,r as a}from"./auth-gOCL6Pm0.mjs";import{t as o}from"./output-CvQFJkvi.mjs";import{t as s}from"./dry-run-Bq0JAsbX.mjs";import{t as c}from"./progress-CRjK46r1.mjs";import{t as l}from"./run-huwFFwXd.mjs";import"./telemetry-B4_YhD82.mjs";import{i as u,n as d,t as f}from"./body-parser-hh2avzkz.mjs";import{n as p}from"./input-validation-Dk52b0me.mjs";import{a as m,i as h,n as g}from"./prompt-C_90YsVE.mjs";import{t as _}from"./cli-types-DoVT5q_M.mjs";function v(e){return e.usage(`$0 account-tags delete
|
|
3
3
|
|
|
4
4
|
Removes all tags from a specific account or zone-level resource.`).option(`if-match`,{type:`string`,description:`ETag value for optimistic concurrency control. When provided, the server will
|
|
5
5
|
verify the current resource ETag matches before applying the write. Returns
|
|
@@ -1,5 +1,5 @@
|
|
|
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,i as n,t as r}from"./context-CE7QFX-z.mjs";import{a as i,r as a}from"./auth-gOCL6Pm0.mjs";import{t as o}from"./output-CvQFJkvi.mjs";import{t as s}from"./dry-run-Bq0JAsbX.mjs";import{t as c}from"./progress-CRjK46r1.mjs";import{t as l}from"./run-huwFFwXd.mjs";import"./telemetry-B4_YhD82.mjs";import{i as u,n as d,r as f,t as p}from"./body-parser-hh2avzkz.mjs";import{n as m}from"./input-validation-Dk52b0me.mjs";import{a as h,i as g,n as _}from"./prompt-C_90YsVE.mjs";import{t as v}from"./cli-types-DoVT5q_M.mjs";import{n as ee,t as te}from"./raw-fetch-C8SdmQBp.mjs";function y(e){return e.usage(`$0 accounts applications create
|
|
3
3
|
|
|
4
4
|
Create a custom application for an account.`).option(`category-id`,{type:`number`,description:`Returns the category ID.`}).option(`hostnames`,{type:`string`,array:!0,description:`Hostnames matched by the application.`}).option(`human-id`,{type:`string`,description:`Returns the human readable ID.`}).option(`ip-subnets`,{type:`string`,array:!0,description:`IP subnets for this application. Custom application create and update requests accept IPv4 prefix lengths /8 through /32 and IPv6 prefix lengths /32 through /128.`}).option(`name`,{type:`string`,description:`Returns the application name.`}).option(`port-protocols`,{type:`string`,array:!0,description:`Port and protocol pairs matched by the application.`}).option(`support-domains`,{type:`string`,array:!0,description:`Support domains matched by the application.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Defines a custom application. At least one hostname or IP subnet is required. Support domains and port/protocol pairs do not satisfy this requirement. `})}const b={command:`create`,describe:`Create application`,builder:y,handler:async n=>l({command:`accounts applications create`,classification:{safeFlags:[`dry-run`]}},n,async()=>{if(n.dryRun){s({command:`cf accounts applications create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/resource-library/applications`,pathParams:{},bodyKind:`json`,body:n.body===void 0?p({category_id:n[`category-id`],hostnames:n.hostnames,human_id:m(n[`human-id`],`human-id`,`text`),ip_subnets:n[`ip-subnets`],name:m(n.name,`name`,`text`),port_protocols:n[`port-protocols`],support_domains:n[`support-domains`]}):d(n.body)});return}let i=await a(n),l=n.local?e:await r();if(n.accountId=l,n.body){let e=d(n.body);o(await c(`Creating`,async()=>i.accounts.applications.create({body:e,account_id:l})),{successLabel:`Created`});return}if(n[`category-id`]===void 0)throw Error(`--category-id is required (or pass --body with this field set).`);n[`human-id`]===void 0&&(n[`human-id`]=await h(`human-id`,`Returns the human readable ID.`)),n.name===void 0&&(n.name=await h(`name`,`Returns the application name.`));let u=p({category_id:n[`category-id`],hostnames:n.hostnames,human_id:m(n[`human-id`],`human-id`,`text`),ip_subnets:n[`ip-subnets`],name:m(n.name,`name`,`text`),port_protocols:n[`port-protocols`],support_domains:n[`support-domains`]});o(await c(`Creating`,async()=>i.accounts.applications.create({body:u,account_id:l})),{successLabel:`Created`})})};function x(e){return e.usage(`$0 accounts applications delete <id>
|
|
5
5
|
|
|
@@ -81,52 +81,58 @@ Get information about a specific member of an account.`).positional(`member-id`,
|
|
|
81
81
|
|
|
82
82
|
List all members of an account.`).option(`order`,{type:`string`,description:`Field to order results by.`,choices:[`user.first_name`,`user.last_name`,`user.email`,`status`]}).option(`status`,{type:`string`,description:`A member's status in the account.`,choices:[`accepted`,`pending`,`rejected`]}).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:`Direction to order results.`,choices:[`asc`,`desc`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const We={command:`list`,describe:`List Members`,builder:v(Ue),handler:async n=>l({command:`accounts members list`,classification:{safeFlags:[`order`,`status`,`direction`,`dry-run`]}},n,async()=>{let i={order:n.order,status:n.status,page:n.page,per_page:n[`per-page`],direction:n.direction};if(n.dryRun){s({command:`cf accounts members list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/members`,pathParams:{},query:i,bodyKind:`none`});return}let l=await a(n),u=n.local?e:await r();n.accountId=u,o(await c(`Loading`,async()=>l.accounts.members.list({account_id:u,...i})),{successLabel:`Loaded`})})};function Ge(e){return e.usage(`$0 accounts members update <member-id>
|
|
83
83
|
|
|
84
|
-
Modify an account member.`).positional(`member-id`,{type:`string`,description:`Membership identifier tag.`,demandOption:!0}).option(`roles`,{type:`string`,description:`Roles assigned to this member. Provide as a JSON array of objects or @path/to/file.json.`}).option(`policies`,{type:`string`,description:`Array of policies associated with this member. 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)`}).conflicts(`roles`,[`policies`]).conflicts(`policies`,[`roles`])}const Ke={command:`update <member-id>`,describe:`Update Member`,builder:Ge,handler:async n=>l({command:`accounts members update`,classification:{safeFlags:[`dry-run`]}},n,async()=>{if(n.dryRun){s({command:`cf accounts members update`,method:`PUT`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/members/${n[`member-id`]==null?`<member-id>`:encodeURIComponent(String(n[`member-id`]))}`,pathParams:{"member-id":String(n[`member-id`]??``)},bodyKind:`json`,body:n.body===void 0?p({roles:f(n.roles,`roles`),policies:f(n.policies,`policies`)}):d(n.body)});return}let i=await a(n),l=n.local?e:await r();if(n.accountId=l,n.body){let e=d(n.body);o(await c(`Updating`,async()=>i.accounts.members.update({body:e,account_id:l,member_id:n[`member-id`]})),{successLabel:`Updated`});return}let u=p({roles:f(n.roles,`roles`),policies:f(n.policies,`policies`)});o(await c(`Updating`,async()=>i.accounts.members.update({body:u,account_id:l,member_id:n[`member-id`]})),{successLabel:`Updated`})})},qe={command:`members`,describe:`Operations for members`,builder:e=>e.command(Re).command(Be).command(He).command(We).command(Ke).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function Je(e){return e.usage(`$0 accounts
|
|
84
|
+
Modify an account member.`).positional(`member-id`,{type:`string`,description:`Membership identifier tag.`,demandOption:!0}).option(`roles`,{type:`string`,description:`Roles assigned to this member. Provide as a JSON array of objects or @path/to/file.json.`}).option(`policies`,{type:`string`,description:`Array of policies associated with this member. 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)`}).conflicts(`roles`,[`policies`]).conflicts(`policies`,[`roles`])}const Ke={command:`update <member-id>`,describe:`Update Member`,builder:Ge,handler:async n=>l({command:`accounts members update`,classification:{safeFlags:[`dry-run`]}},n,async()=>{if(n.dryRun){s({command:`cf accounts members update`,method:`PUT`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/members/${n[`member-id`]==null?`<member-id>`:encodeURIComponent(String(n[`member-id`]))}`,pathParams:{"member-id":String(n[`member-id`]??``)},bodyKind:`json`,body:n.body===void 0?p({roles:f(n.roles,`roles`),policies:f(n.policies,`policies`)}):d(n.body)});return}let i=await a(n),l=n.local?e:await r();if(n.accountId=l,n.body){let e=d(n.body);o(await c(`Updating`,async()=>i.accounts.members.update({body:e,account_id:l,member_id:n[`member-id`]})),{successLabel:`Updated`});return}let u=p({roles:f(n.roles,`roles`),policies:f(n.policies,`policies`)});o(await c(`Updating`,async()=>i.accounts.members.update({body:u,account_id:l,member_id:n[`member-id`]})),{successLabel:`Updated`})})},qe={command:`members`,describe:`Operations for members`,builder:e=>e.command(Re).command(Be).command(He).command(We).command(Ke).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function Je(e){return e.usage(`$0 accounts move
|
|
85
85
|
|
|
86
|
-
|
|
86
|
+
Move an account into a destination organization, either assigning a standalone account to an organization or moving it between organizations in the same hierarchy. Availability depends on the organization's capabilities. (Currently in Public Beta - see https://developers.cloudflare.com/fundamentals/organizations/)`).option(`destination-organization-id`,{type:`string`,description:`The ID of the organization to move the account into.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`The destination organization ID is where the account is to be moved.`})}const Ye={command:`move`,describe:`Move account to organization`,builder:Je,handler:async n=>l({command:`accounts move`,classification:{safeFlags:[`dry-run`]}},n,async()=>{if(n.dryRun){s({command:`cf accounts move`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/move`,pathParams:{},bodyKind:`json`,body:n.body===void 0?p({destination_organization_id:m(n[`destination-organization-id`],`destination-organization-id`,`text`)}):d(n.body)});return}let i=await a(n),l=n.local?e:await r();if(n.accountId=l,n.body){let e=d(n.body);o(await c(`Creating`,async()=>i.accounts.move({...e,account_id:l})),{successLabel:`Created`});return}n[`destination-organization-id`]===void 0&&(n[`destination-organization-id`]=await h(`destination-organization-id`,`The ID of the organization to move the account into.`));let u=p({destination_organization_id:m(n[`destination-organization-id`],`destination-organization-id`,`text`)});o(await c(`Creating`,async()=>i.accounts.move({...u,account_id:l})),{successLabel:`Created`})})};function Xe(e){return e.usage(`$0 accounts organization list
|
|
87
87
|
|
|
88
|
-
|
|
88
|
+
Retrieve a list of the organizations that "contain" this account or are managing it. The returned list will be in order from "root" to "leaf", where the "leaf" will be the organization that _immediately_ contains the specified account.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const Ze={command:`list`,describe:`List account organizations`,builder:Xe,handler:async n=>l({command:`accounts organization list`,classification:{safeFlags:[`dry-run`]}},n,async()=>{if(n.dryRun){s({command:`cf accounts organization list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/organizations`,pathParams:{},bodyKind:`none`});return}let i=await a(n),l=n.local?e:await r();n.accountId=l,o(await c(`Loading`,async()=>i.accounts.organization.list({account_id:l})),{successLabel:`Loaded`})})},Qe={command:`organization`,describe:`Operations for organization`,builder:e=>e.command(Ze).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function $e(e){return e.usage(`$0 accounts profile get
|
|
89
89
|
|
|
90
|
-
|
|
90
|
+
Retrieves the business profile (name, email, phone, address, and external metadata) associated with this account's parent organization customer record. Profiles can be shared across accounts and organizations. Only available to members of an organization that contains the account.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const et={command:`get`,describe:`Get account profile`,builder:$e,handler:async n=>l({command:`accounts profile get`,classification:{safeFlags:[`dry-run`]}},n,async()=>{if(n.dryRun){s({command:`cf accounts profile get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/profile`,pathParams:{},bodyKind:`none`});return}let i=await a(n),l=n.local?e:await r();n.accountId=l,o(await c(`Loading`,async()=>i.accounts.profile.get({account_id:l})),{successLabel:`Loaded`})})};function tt(e){return e.usage(`$0 accounts profile update
|
|
91
91
|
|
|
92
|
-
|
|
93
|
-
`);return}o(await c(`Deleting`,async()=>i.accounts.subscriptions.delete({account_id:l,subscription_identifier:n[`subscription-identifier`]})),{successLabel:`Deleted`})})};function nt(e){return e.usage(`$0 accounts subscriptions get
|
|
92
|
+
Updates the business profile (name, email, phone, address, and external metadata) associated with this account's parent organization customer record. Changes apply to every account and organization sharing that profile. Omitted or empty fields are left unchanged. Only available to members of an organization that contains the account. Requires Account Settings Write permission.`).option(`business-address`,{type:`string`,description:`The business_address field`}).option(`business-email`,{type:`string`,description:`The business_email field`}).option(`business-name`,{type:`string`,description:`The business_name field`}).option(`business-phone`,{type:`string`,description:`The business_phone field`}).option(`external-metadata`,{type:`string`,description:`The external_metadata field`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const nt={command:`update`,describe:`Update account profile`,builder:tt,handler:async n=>l({command:`accounts profile update`,classification:{safeFlags:[`dry-run`]}},n,async()=>{if(n.dryRun){s({command:`cf accounts profile update`,method:`PUT`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/profile`,pathParams:{},bodyKind:`json`,body:n.body===void 0?p({business_address:m(n[`business-address`],`business-address`,`text`),business_email:m(n[`business-email`],`business-email`,`text`),business_name:m(n[`business-name`],`business-name`,`text`),business_phone:m(n[`business-phone`],`business-phone`,`text`),external_metadata:m(n[`external-metadata`],`external-metadata`,`text`)}):d(n.body)});return}let i=await a(n),l=n.local?e:await r();if(n.accountId=l,n.body){let e=d(n.body);o(await c(`Updating`,async()=>i.accounts.profile.update({body:e,account_id:l})),{successLabel:`Updated`});return}n[`business-address`]===void 0&&(n[`business-address`]=await h(`business-address`,`The business_address field`)),n[`business-email`]===void 0&&(n[`business-email`]=await h(`business-email`,`The business_email field`)),n[`business-name`]===void 0&&(n[`business-name`]=await h(`business-name`,`The business_name field`)),n[`business-phone`]===void 0&&(n[`business-phone`]=await h(`business-phone`,`The business_phone field`)),n[`external-metadata`]===void 0&&(n[`external-metadata`]=await h(`external-metadata`,`The external_metadata field`));let u=p({business_address:m(n[`business-address`],`business-address`,`text`),business_email:m(n[`business-email`],`business-email`,`text`),business_name:m(n[`business-name`],`business-name`,`text`),business_phone:m(n[`business-phone`],`business-phone`,`text`),external_metadata:m(n[`external-metadata`],`external-metadata`,`text`)});o(await c(`Updating`,async()=>i.accounts.profile.update({body:u,account_id:l})),{successLabel:`Updated`})})},rt={command:`profile`,describe:`View and manage the profile for a Cloudflare account`,builder:e=>e.command(et).command(nt).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function it(e){return e.usage(`$0 accounts subscriptions cancelDelayedDowngrade
|
|
94
93
|
|
|
95
|
-
|
|
94
|
+
Cancels pending delayed downgrades for the specified subscriptions.`).option(`subscription-ids`,{type:`string`,array:!0,description:`List of subscription identifiers to cancel downgrades for.`}).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 at={command:`cancelDelayedDowngrade`,describe:`Cancel Delayed Downgrade`,builder:it,handler:async n=>l({command:`accounts subscriptions cancelDelayedDowngrade`,classification:{safeFlags:[`dry-run`]}},n,async()=>{if(n.dryRun){s({command:`cf accounts subscriptions cancelDelayedDowngrade`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/subscriptions/cancel-downgrade`,pathParams:{},bodyKind:`json`,body:n.body===void 0?p({subscription_ids:n[`subscription-ids`]}):d(n.body)});return}let i=await a(n),l=n.local?e:await r();if(n.accountId=l,n.body){let e=d(n.body);o(await c(`Creating`,async()=>i.accounts.subscriptions.cancelDelayedDowngrade({...e,account_id:l})),{successLabel:`Created`});return}let u=p({subscription_ids:n[`subscription-ids`]});o(await c(`Creating`,async()=>i.accounts.subscriptions.cancelDelayedDowngrade({...u,account_id:l})),{successLabel:`Created`})})};function ot(e){return e.usage(`$0 accounts subscriptions create
|
|
96
95
|
|
|
97
|
-
|
|
96
|
+
Creates an account or zone subscription.`).option(`app-install-id`,{type:`string`,description:`app install id.`}).option(`component-values`,{type:`string`,description:`Configurable component values for the subscription. Provide as a JSON array of objects or @path/to/file.json.`}).option(`frequency`,{type:`string`,description:`How often the subscription is renewed automatically.`,choices:[`weekly`,`monthly`,`quarterly`,`yearly`]}).option(`rate-plan-currency`,{type:`string`,description:`The currency applied to the rate plan subscription.`}).option(`rate-plan-externally-managed`,{type:`boolean`,description:`Whether this rate plan is managed externally from Cloudflare.`}).option(`rate-plan-id`,{type:`string`,description:`The ID of the rate plan.`}).option(`rate-plan-is-contract`,{type:`boolean`,description:`Whether a rate plan is enterprise-based (or newly adopted term contract).`}).option(`rate-plan-public-name`,{type:`string`,description:`The full name of the rate plan.`}).option(`rate-plan-scope`,{type:`string`,description:`The scope that this rate plan applies to.`}).option(`rate-plan-sets`,{type:`string`,array:!0,description:`The list of sets this rate plan applies to. Returns array of strings.`}).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 st={command:`create`,describe:`Create Subscription`,builder:ot,handler:async i=>l({command:`accounts subscriptions create`,classification:{safeFlags:[`frequency`,`rate-plan-externally-managed`,`rate-plan-is-contract`,`dry-run`]}},i,async()=>{if(i.dryRun){let e=i.zone===void 0?await t():void 0,n=i.zone===void 0?`accounts`:`zones`,r=i.zone??e??`<account-id>`;s({command:`cf accounts subscriptions create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/${n}/${r}/subscriptions`,pathParams:{"account-or-zone":String(n),"account-or-zone-id":String(r)},bodyKind:`json`,body:i.body===void 0?p({app:{install_id:m(i[`app-install-id`],`app-install-id`,`text`)},component_values:f(i[`component-values`],`component-values`),frequency:m(i.frequency,`frequency`,`text`),rate_plan:{currency:m(i[`rate-plan-currency`],`rate-plan-currency`,`text`),externally_managed:i[`rate-plan-externally-managed`],id:m(i[`rate-plan-id`],`rate-plan-id`,`text`),is_contract:i[`rate-plan-is-contract`],public_name:m(i[`rate-plan-public-name`],`rate-plan-public-name`,`text`),scope:m(i[`rate-plan-scope`],`rate-plan-scope`,`text`),sets:i[`rate-plan-sets`]}}):d(i.body)});return}let l=await a(i),u=i.zone===void 0?`accounts`:`zones`,h=u===`zones`?await n({zone:i.zone},l,{quiet:i.quiet}):i.local?e:await r();if(u===`zones`?i.zoneId=h:i.accountId=h,i.body){let e=d(i.body);o(await c(`Creating`,async()=>l.accounts.subscriptions.create({body:e,account_or_zone:u,account_or_zone_id:h})),{successLabel:`Created`});return}let g=p({app:{install_id:m(i[`app-install-id`],`app-install-id`,`text`)},component_values:f(i[`component-values`],`component-values`),frequency:m(i.frequency,`frequency`,`text`),rate_plan:{currency:m(i[`rate-plan-currency`],`rate-plan-currency`,`text`),externally_managed:i[`rate-plan-externally-managed`],id:m(i[`rate-plan-id`],`rate-plan-id`,`text`),is_contract:i[`rate-plan-is-contract`],public_name:m(i[`rate-plan-public-name`],`rate-plan-public-name`,`text`),scope:m(i[`rate-plan-scope`],`rate-plan-scope`,`text`),sets:i[`rate-plan-sets`]}});o(await c(`Creating`,async()=>l.accounts.subscriptions.create({body:g,account_or_zone:u,account_or_zone_id:h})),{successLabel:`Created`})})};function ct(e){return e.usage(`$0 accounts subscriptions createCancelReason <subscription-identifier>
|
|
98
97
|
|
|
99
|
-
|
|
98
|
+
Records a cancellation reason for an account subscription.`).positional(`subscription-identifier`,{type:`string`,description:`Subscription identifier tag.`,demandOption:!0}).option(`other`,{type:`string`,description:`Additional cancellation details.`}).option(`reason-code`,{type:`string`,array:!0,description:`The cancellation reason codes.`}).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 lt={command:`createCancelReason <subscription-identifier>`,describe:`Create Cancel Reason`,builder:ct,handler:async n=>l({command:`accounts subscriptions createCancelReason`,classification:{safeFlags:[`dry-run`]}},n,async()=>{if(n.dryRun){s({command:`cf accounts subscriptions createCancelReason`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/subscriptions/${n[`subscription-identifier`]==null?`<subscription-identifier>`:encodeURIComponent(String(n[`subscription-identifier`]))}/cancel-reason`,pathParams:{"subscription-identifier":String(n[`subscription-identifier`]??``)},bodyKind:`json`,body:n.body===void 0?p({other:m(n.other,`other`,`text`),reason_code:n[`reason-code`]}):d(n.body)});return}let i=await a(n),l=n.local?e:await r();if(n.accountId=l,n.body){let e=d(n.body);o(await c(`Creating`,async()=>i.accounts.subscriptions.createCancelReason({...e,account_id:l,subscription_identifier:n[`subscription-identifier`]})),{successLabel:`Created`});return}let u=p({other:m(n.other,`other`,`text`),reason_code:n[`reason-code`]});o(await c(`Creating`,async()=>i.accounts.subscriptions.createCancelReason({...u,account_id:l,subscription_identifier:n[`subscription-identifier`]})),{successLabel:`Created`})})};function ut(e){return e.usage(`$0 accounts subscriptions delete <subscription-identifier>
|
|
100
99
|
|
|
101
|
-
|
|
100
|
+
Deletes an account's subscription.`).positional(`subscription-identifier`,{type:`string`,description:`Subscription identifier tag.`,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 dt={command:`delete <subscription-identifier>`,describe:`Delete Subscription`,builder:ut,handler:async n=>l({command:`accounts subscriptions delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},n,async()=>{if(n.dryRun){s({command:`cf accounts subscriptions delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/subscriptions/${n[`subscription-identifier`]==null?`<subscription-identifier>`:encodeURIComponent(String(n[`subscription-identifier`]))}`,pathParams:{"subscription-identifier":String(n[`subscription-identifier`]??``)},bodyKind:`none`});return}let i=await a(n),l=n.local?e:await r();if(n.accountId=l,!await _({force:!!n.force})){process.stderr.write(`Aborted.
|
|
101
|
+
`);return}o(await c(`Deleting`,async()=>i.accounts.subscriptions.delete({account_id:l,subscription_identifier:n[`subscription-identifier`]})),{successLabel:`Deleted`})})};function ft(e){return e.usage(`$0 accounts subscriptions get
|
|
102
102
|
|
|
103
|
-
|
|
103
|
+
Lists all of an account or zone's subscriptions.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const pt={command:`get`,describe:`List Subscriptions`,builder:ft,handler:async i=>l({command:`accounts subscriptions get`,classification:{safeFlags:[`dry-run`]}},i,async()=>{if(i.dryRun){let e=i.zone===void 0?await t():void 0,n=i.zone===void 0?`accounts`:`zones`,r=i.zone??e??`<account-id>`;s({command:`cf accounts subscriptions get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/${n}/${r}/subscriptions`,pathParams:{"account-or-zone":String(n),"account-or-zone-id":String(r)},bodyKind:`none`});return}let l=await a(i),u=i.zone===void 0?`accounts`:`zones`,d=u===`zones`?await n({zone:i.zone},l,{quiet:i.quiet}):i.local?e:await r();u===`zones`?i.zoneId=d:i.accountId=d,o(await c(`Loading`,async()=>l.accounts.subscriptions.get({account_or_zone:u,account_or_zone_id:d})),{successLabel:`Loaded`})})};function mt(e){return e.usage(`$0 accounts subscriptions getByIdentifier <subscription-identifier>
|
|
104
104
|
|
|
105
|
-
|
|
106
|
-
`);return}o(await c(`Deleting`,async()=>i.accounts.tokens.delete({account_id:l,token_id:n[`token-id`]})),{successLabel:`Deleted`})})};function ht(e){return e.usage(`$0 accounts tokens get <token-id>
|
|
105
|
+
Gets an account subscription by identifier.`).positional(`subscription-identifier`,{type:`string`,description:`Subscription identifier tag.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const ht={command:`getByIdentifier <subscription-identifier>`,describe:`Get Subscription`,builder:mt,handler:async n=>l({command:`accounts subscriptions getByIdentifier`,classification:{safeFlags:[`dry-run`]}},n,async()=>{if(n.dryRun){s({command:`cf accounts subscriptions getByIdentifier`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/subscriptions/${n[`subscription-identifier`]==null?`<subscription-identifier>`:encodeURIComponent(String(n[`subscription-identifier`]))}`,pathParams:{"subscription-identifier":String(n[`subscription-identifier`]??``)},bodyKind:`none`});return}let i=await a(n),l=n.local?e:await r();n.accountId=l,o(await c(`Loading`,async()=>i.accounts.subscriptions.getByIdentifier({account_id:l,subscription_identifier:n[`subscription-identifier`]})),{successLabel:`Loaded`})})};function gt(e){return e.usage(`$0 accounts subscriptions getCancelReason <subscription-identifier>
|
|
107
106
|
|
|
108
|
-
|
|
107
|
+
Gets the cancellation reason for an account subscription.`).positional(`subscription-identifier`,{type:`string`,description:`Subscription identifier tag.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const _t={command:`getCancelReason <subscription-identifier>`,describe:`Get Cancel Reason`,builder:gt,handler:async n=>l({command:`accounts subscriptions getCancelReason`,classification:{safeFlags:[`dry-run`]}},n,async()=>{if(n.dryRun){s({command:`cf accounts subscriptions getCancelReason`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/subscriptions/${n[`subscription-identifier`]==null?`<subscription-identifier>`:encodeURIComponent(String(n[`subscription-identifier`]))}/cancel-reason`,pathParams:{"subscription-identifier":String(n[`subscription-identifier`]??``)},bodyKind:`none`});return}let i=await a(n),l=n.local?e:await r();n.accountId=l,o(await c(`Loading`,async()=>i.accounts.subscriptions.getCancelReason({account_id:l,subscription_identifier:n[`subscription-identifier`]})),{successLabel:`Loaded`})})};function vt(e){return e.usage(`$0 accounts subscriptions update <subscription-identifier>
|
|
109
108
|
|
|
110
|
-
|
|
109
|
+
Updates an account subscription.`).positional(`subscription-identifier`,{type:`string`,description:`Subscription identifier tag.`,demandOption:!0}).option(`app-install-id`,{type:`string`,description:`app install id.`}).option(`component-values`,{type:`string`,description:`Configurable component values for the subscription. Provide as a JSON array of objects or @path/to/file.json.`}).option(`frequency`,{type:`string`,description:`How often the subscription is renewed automatically.`,choices:[`weekly`,`monthly`,`quarterly`,`yearly`]}).option(`rate-plan-currency`,{type:`string`,description:`The currency applied to the rate plan subscription.`}).option(`rate-plan-externally-managed`,{type:`boolean`,description:`Whether this rate plan is managed externally from Cloudflare.`}).option(`rate-plan-id`,{type:`string`,description:`The ID of the rate plan.`}).option(`rate-plan-is-contract`,{type:`boolean`,description:`Whether a rate plan is enterprise-based (or newly adopted term contract).`}).option(`rate-plan-public-name`,{type:`string`,description:`The full name of the rate plan.`}).option(`rate-plan-scope`,{type:`string`,description:`The scope that this rate plan applies to.`}).option(`rate-plan-sets`,{type:`string`,array:!0,description:`The list of sets this rate plan applies to. Returns array of strings.`}).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 yt={command:`update <subscription-identifier>`,describe:`Update Subscription`,builder:vt,handler:async n=>l({command:`accounts subscriptions update`,classification:{safeFlags:[`frequency`,`rate-plan-externally-managed`,`rate-plan-is-contract`,`dry-run`]}},n,async()=>{if(n.dryRun){s({command:`cf accounts subscriptions update`,method:`PUT`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/subscriptions/${n[`subscription-identifier`]==null?`<subscription-identifier>`:encodeURIComponent(String(n[`subscription-identifier`]))}`,pathParams:{"subscription-identifier":String(n[`subscription-identifier`]??``)},bodyKind:`json`,body:n.body===void 0?p({app:{install_id:m(n[`app-install-id`],`app-install-id`,`text`)},component_values:f(n[`component-values`],`component-values`),frequency:m(n.frequency,`frequency`,`text`),rate_plan:{currency:m(n[`rate-plan-currency`],`rate-plan-currency`,`text`),externally_managed:n[`rate-plan-externally-managed`],id:m(n[`rate-plan-id`],`rate-plan-id`,`text`),is_contract:n[`rate-plan-is-contract`],public_name:m(n[`rate-plan-public-name`],`rate-plan-public-name`,`text`),scope:m(n[`rate-plan-scope`],`rate-plan-scope`,`text`),sets:n[`rate-plan-sets`]}}):d(n.body)});return}let i=await a(n),l=n.local?e:await r();if(n.accountId=l,n.body){let e=d(n.body);o(await c(`Updating`,async()=>i.accounts.subscriptions.update({body:e,account_id:l,subscription_identifier:n[`subscription-identifier`]})),{successLabel:`Updated`});return}let u=p({app:{install_id:m(n[`app-install-id`],`app-install-id`,`text`)},component_values:f(n[`component-values`],`component-values`),frequency:m(n.frequency,`frequency`,`text`),rate_plan:{currency:m(n[`rate-plan-currency`],`rate-plan-currency`,`text`),externally_managed:n[`rate-plan-externally-managed`],id:m(n[`rate-plan-id`],`rate-plan-id`,`text`),is_contract:n[`rate-plan-is-contract`],public_name:m(n[`rate-plan-public-name`],`rate-plan-public-name`,`text`),scope:m(n[`rate-plan-scope`],`rate-plan-scope`,`text`),sets:n[`rate-plan-sets`]}});o(await c(`Updating`,async()=>i.accounts.subscriptions.update({body:u,account_id:l,subscription_identifier:n[`subscription-identifier`]})),{successLabel:`Updated`})})},bt={command:`subscriptions`,describe:`View and manage plan subscriptions attached to this account`,builder:e=>e.command(at).command(st).command(lt).command(dt).command(pt).command(ht).command(_t).command(yt).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function xt(e){return e.usage(`$0 accounts tokens create
|
|
111
110
|
|
|
112
|
-
|
|
111
|
+
Create a new Account Owned API token.`).option(`condition-request-ip-in`,{type:`string`,array:!0,description:`List of IPv4/IPv6 CIDR addresses.`}).option(`condition-request-ip-not-in`,{type:`string`,array:!0,description:`List of IPv4/IPv6 CIDR addresses.`}).option(`expires-on`,{type:`string`,description:`The expiration time on or after which the JWT MUST NOT be accepted for processing.`}).option(`name`,{type:`string`,description:`Token name.`}).option(`not-before`,{type:`string`,description:`The time before which the token MUST NOT be accepted for processing.`}).option(`policies`,{type:`string`,description:`List of access policies assigned to the token. 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 St={command:`create`,describe:`Create Token`,builder:xt,handler:async n=>l({command:`accounts tokens create`,classification:{safeFlags:[`dry-run`]}},n,async()=>{if(n.dryRun){s({command:`cf accounts tokens create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/tokens`,pathParams:{},bodyKind:`json`,body:n.body===void 0?p({condition:{request_ip:{in:n[`condition-request-ip-in`],not_in:n[`condition-request-ip-not-in`]}},expires_on:m(n[`expires-on`],`expires-on`,`text`),name:m(n.name,`name`,`text`),not_before:m(n[`not-before`],`not-before`,`text`),policies:f(n.policies,`policies`)}):d(n.body)});return}let i=await a(n),l=n.local?e:await r();if(n.accountId=l,n.body){let e=d(n.body);o(await c(`Creating`,async()=>i.accounts.tokens.create({body:e,account_id:l})),{successLabel:`Created`});return}if(n.name===void 0&&(n.name=await h(`name`,`Token name.`)),n.policies===void 0)throw Error(`--policies is required (or pass --body with this field set).`);let u=p({condition:{request_ip:{in:n[`condition-request-ip-in`],not_in:n[`condition-request-ip-not-in`]}},expires_on:m(n[`expires-on`],`expires-on`,`text`),name:m(n.name,`name`,`text`),not_before:m(n[`not-before`],`not-before`,`text`),policies:f(n.policies,`policies`)});o(await c(`Creating`,async()=>i.accounts.tokens.create({body:u,account_id:l})),{successLabel:`Created`})})};function Ct(e){return e.usage(`$0 accounts tokens delete <token-id>
|
|
112
|
+
|
|
113
|
+
Destroy an Account Owned API token.`).positional(`token-id`,{type:`string`,description:`Token identifier tag.`,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 wt={command:`delete <token-id>`,describe:`Delete Token`,builder:Ct,handler:async n=>l({command:`accounts tokens delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},n,async()=>{if(n.dryRun){s({command:`cf accounts tokens delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/tokens/${n[`token-id`]==null?`<token-id>`:encodeURIComponent(String(n[`token-id`]))}`,pathParams:{"token-id":String(n[`token-id`]??``)},bodyKind:`none`});return}let i=await a(n),l=n.local?e:await r();if(n.accountId=l,!await _({force:!!n.force,message:`Are you sure? This action cannot be undone.`})){process.stderr.write(`Aborted.
|
|
114
|
+
`);return}o(await c(`Deleting`,async()=>i.accounts.tokens.delete({account_id:l,token_id:n[`token-id`]})),{successLabel:`Deleted`})})};function Tt(e){return e.usage(`$0 accounts tokens get <token-id>
|
|
115
|
+
|
|
116
|
+
Get information about a specific Account Owned API token.`).positional(`token-id`,{type:`string`,description:`Token identifier tag.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const Et={command:`get <token-id>`,describe:`Token Details`,builder:Tt,handler:async n=>l({command:`accounts tokens get`,classification:{safeFlags:[`dry-run`]}},n,async()=>{if(n.dryRun){s({command:`cf accounts tokens get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/tokens/${n[`token-id`]==null?`<token-id>`:encodeURIComponent(String(n[`token-id`]))}`,pathParams:{"token-id":String(n[`token-id`]??``)},bodyKind:`none`});return}let i=await a(n),l=n.local?e:await r();n.accountId=l,o(await c(`Loading`,async()=>i.accounts.tokens.get({account_id:l,token_id:n[`token-id`]})),{successLabel:`Loaded`})})};function Dt(e){return e.usage("$0 accounts tokens list\n\nList Account Owned API tokens created for this account. Callers with `com.cloudflare.api.account.token.list_self` permission only receive tokens they created. Results include active, disabled, and recently-expired tokens when `include_expired` is set to true.").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:`Direction to order results.`,choices:[`asc`,`desc`]}).option(`include-expired`,{type:`boolean`,description:`When true, includes recently-expired tokens in the response.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const Ot={command:`list`,describe:`List Tokens`,builder:v(Dt),handler:async n=>l({command:`accounts tokens list`,classification:{safeFlags:[`direction`,`include-expired`,`dry-run`]}},n,async()=>{let i={page:n.page,per_page:n[`per-page`],direction:n.direction,include_expired:n[`include-expired`]};if(n.dryRun){s({command:`cf accounts tokens list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/tokens`,pathParams:{},query:i,bodyKind:`none`});return}let l=await a(n),u=n.local?e:await r();n.accountId=u,o(await c(`Loading`,async()=>l.accounts.tokens.list({account_id:u,...i})),{successLabel:`Loaded`})})};function kt(e){return e.usage(`$0 accounts tokens permission-groups list
|
|
117
|
+
|
|
118
|
+
Find all available permission groups for Account Owned API Tokens. Each permission group indicates whether the caller can select it when creating a token. Token creation performs the authoritative permission check.`).option(`name`,{type:`string`,description:`Filter by the name of the permission group.
|
|
113
119
|
The value must be URL-encoded.`}).option(`scope`,{type:`string`,description:`Filter by the scope of the permission group.
|
|
114
|
-
The value must be URL-encoded.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const
|
|
120
|
+
The value must be URL-encoded.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const At={command:`list`,describe:`List Permission Groups`,builder:kt,handler:async n=>l({command:`accounts tokens permission-groups list`,classification:{safeFlags:[`dry-run`]}},n,async()=>{let i={name:n.name,scope:n.scope};if(n.dryRun){s({command:`cf accounts tokens permission-groups list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/tokens/permission_groups`,pathParams:{},query:i,bodyKind:`none`});return}let l=await a(n),u=n.local?e:await r();n.accountId=u,o(await c(`Loading`,async()=>l.accounts.tokens.permissionGroups.list({account_id:u,...i})),{successLabel:`Loaded`})})},jt={command:`permission-groups`,describe:`Operations for tokens.permission-groups`,builder:e=>e.command(At).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function Mt(e){return e.usage(`$0 accounts tokens roll <token-id>
|
|
115
121
|
|
|
116
|
-
Roll the Account Owned API token secret.`).positional(`token-id`,{type:`string`,description:`Token identifier tag.`,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
|
|
117
|
-
`);return}o(await c(`Deleting`,async()=>i.accounts.tokens.roll({account_id:l,token_id:n[`token-id`]})),{successLabel:`Deleted`})})};function
|
|
122
|
+
Roll the Account Owned API token secret.`).positional(`token-id`,{type:`string`,description:`Token identifier tag.`,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 Nt={command:`roll <token-id>`,describe:`Roll Token`,builder:Mt,handler:async n=>l({command:`accounts tokens roll`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},n,async()=>{if(n.dryRun){s({command:`cf accounts tokens roll`,method:`PUT`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/tokens/${n[`token-id`]==null?`<token-id>`:encodeURIComponent(String(n[`token-id`]))}/value`,pathParams:{"token-id":String(n[`token-id`]??``)},bodyKind:`none`});return}let i=await a(n),l=n.local?e:await r();if(n.accountId=l,!await _({force:!!n.force,message:`Rolling this token will invalidate the current secret and generate a new one. Any integrations using the current secret will stop working.`})){process.stderr.write(`Aborted.
|
|
123
|
+
`);return}o(await c(`Deleting`,async()=>i.accounts.tokens.roll({account_id:l,token_id:n[`token-id`]})),{successLabel:`Deleted`})})};function $(e){return e.usage(`$0 accounts tokens update <token-id>
|
|
118
124
|
|
|
119
|
-
Update an existing token.`).positional(`token-id`,{type:`string`,description:`Token identifier tag.`,demandOption:!0}).option(`condition-request-ip-in`,{type:`string`,array:!0,description:`List of IPv4/IPv6 CIDR addresses.`}).option(`condition-request-ip-not-in`,{type:`string`,array:!0,description:`List of IPv4/IPv6 CIDR addresses.`}).option(`expires-on`,{type:`string`,description:`The expiration time on or after which the JWT MUST NOT be accepted for processing.`}).option(`name`,{type:`string`,description:`Token name.`}).option(`not-before`,{type:`string`,description:`The time before which the token MUST NOT be accepted for processing.`}).option(`policies`,{type:`string`,description:`List of access policies assigned to the token. Provide as a JSON array of objects or @path/to/file.json.`}).option(`status`,{type:`string`,description:`Status of the token.`,choices:[`active`,`disabled`,`expired`]}).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
|
|
125
|
+
Update an existing token.`).positional(`token-id`,{type:`string`,description:`Token identifier tag.`,demandOption:!0}).option(`condition-request-ip-in`,{type:`string`,array:!0,description:`List of IPv4/IPv6 CIDR addresses.`}).option(`condition-request-ip-not-in`,{type:`string`,array:!0,description:`List of IPv4/IPv6 CIDR addresses.`}).option(`expires-on`,{type:`string`,description:`The expiration time on or after which the JWT MUST NOT be accepted for processing.`}).option(`name`,{type:`string`,description:`Token name.`}).option(`not-before`,{type:`string`,description:`The time before which the token MUST NOT be accepted for processing.`}).option(`policies`,{type:`string`,description:`List of access policies assigned to the token. Provide as a JSON array of objects or @path/to/file.json.`}).option(`status`,{type:`string`,description:`Status of the token.`,choices:[`active`,`disabled`,`expired`]}).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 Pt={command:`update <token-id>`,describe:`Update Token`,builder:$,handler:async n=>l({command:`accounts tokens update`,classification:{safeFlags:[`status`,`dry-run`]}},n,async()=>{if(n.dryRun){s({command:`cf accounts tokens update`,method:`PUT`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/tokens/${n[`token-id`]==null?`<token-id>`:encodeURIComponent(String(n[`token-id`]))}`,pathParams:{"token-id":String(n[`token-id`]??``)},bodyKind:`json`,body:n.body===void 0?p({condition:{request_ip:{in:n[`condition-request-ip-in`],not_in:n[`condition-request-ip-not-in`]}},expires_on:m(n[`expires-on`],`expires-on`,`text`),name:m(n.name,`name`,`text`),not_before:m(n[`not-before`],`not-before`,`text`),policies:f(n.policies,`policies`),status:m(n.status,`status`,`text`)}):d(n.body)});return}let i=await a(n),l=n.local?e:await r();if(n.accountId=l,n.body){let e=d(n.body);o(await c(`Updating`,async()=>i.accounts.tokens.update({body:e,account_id:l,token_id:n[`token-id`]})),{successLabel:`Updated`});return}if(n.name===void 0&&(n.name=await h(`name`,`Token name.`)),n.policies===void 0)throw Error(`--policies is required (or pass --body with this field set).`);let u=p({condition:{request_ip:{in:n[`condition-request-ip-in`],not_in:n[`condition-request-ip-not-in`]}},expires_on:m(n[`expires-on`],`expires-on`,`text`),name:m(n.name,`name`,`text`),not_before:m(n[`not-before`],`not-before`,`text`),policies:f(n.policies,`policies`),status:m(n.status,`status`,`text`)});o(await c(`Updating`,async()=>i.accounts.tokens.update({body:u,account_id:l,token_id:n[`token-id`]})),{successLabel:`Updated`})})};function Ft(e){return e.usage(`$0 accounts tokens verify
|
|
120
126
|
|
|
121
|
-
Test whether a token works.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const
|
|
127
|
+
Test whether a token works.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const It={command:`verify`,describe:`Verify Token`,builder:Ft,handler:async n=>l({command:`accounts tokens verify`,classification:{safeFlags:[`dry-run`]}},n,async()=>{if(n.dryRun){s({command:`cf accounts tokens verify`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/tokens/verify`,pathParams:{},bodyKind:`none`});return}let i=await a(n),l=n.local?e:await r();n.accountId=l,o(await c(`Loading`,async()=>i.accounts.tokens.verify({account_id:l})),{successLabel:`Loaded`})})},Lt={command:`tokens`,describe:`Create and manage scoped API tokens for programmatic access to the Cloudflare API`,builder:e=>e.command(St).command(wt).command(Et).command(Ot).command(Nt).command(Pt).command(It).command(jt).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function Rt(e){return e.usage(`$0 accounts transformations list
|
|
122
128
|
|
|
123
|
-
Returns a list of Image Resizing configurations across all zones for the account. This endpoint is useful for retrieving the transformations (image_resizing) state for all zones belonging to an account.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const
|
|
129
|
+
Returns a list of Image Resizing configurations across all zones for the account. This endpoint is useful for retrieving the transformations (image_resizing) state for all zones belonging to an account.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const zt={command:`list`,describe:`List Image Resizing configurations for account`,builder:Rt,handler:async n=>l({command:`accounts transformations list`,classification:{safeFlags:[`dry-run`]}},n,async()=>{if(n.dryRun){s({command:`cf accounts transformations list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/settings/transformations`,pathParams:{},bodyKind:`none`});return}let i=await a(n),l=n.local?e:await r();n.accountId=l,o(await c(`Loading`,async()=>i.accounts.transformations.list({account_id:l})),{successLabel:`Loaded`})})},Bt={command:`transformations`,describe:`Operations for transformations`,builder:e=>e.command(zt).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function Vt(e){return e.usage(`$0 accounts update
|
|
124
130
|
|
|
125
131
|
Update an existing account.`).option(`id`,{type:`string`,description:`Identifier`}).option(`name`,{type:`string`,description:`Account name`}).option(`settings-abuse-contact-email`,{type:`string`,description:`Sets an abuse contact email to notify for abuse reports.`}).option(`settings-enforce-twofactor`,{type:`boolean`,description:`Indicates whether membership in this account requires that
|
|
126
|
-
Two-Factor Authentication is enabled`}).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
|
|
132
|
+
Two-Factor Authentication is enabled`}).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 Ht={command:`update`,describe:`Update Account`,builder:Vt,handler:async n=>l({command:`accounts update`,classification:{safeFlags:[`settings-enforce-twofactor`,`dry-run`]}},n,async()=>{if(n.dryRun){s({command:`cf accounts update`,method:`PUT`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}`,pathParams:{},bodyKind:`json`,body:n.body===void 0?p({id:m(n.id,`id`,`text`),name:m(n.name,`name`,`text`),settings:{abuse_contact_email:m(n[`settings-abuse-contact-email`],`settings-abuse-contact-email`,`text`),enforce_twofactor:n[`settings-enforce-twofactor`]}}):d(n.body)});return}let i=await a(n),l=n.local?e:await r();if(n.accountId=l,n.body){let e=d(n.body);o(await c(`Updating`,async()=>i.accounts.update({body:e,account_id:l})),{successLabel:`Updated`});return}n.id===void 0&&(n.id=await h(`id`,`Identifier`)),n.name===void 0&&(n.name=await h(`name`,`Account name`));let u=p({id:m(n.id,`id`,`text`),name:m(n.name,`name`,`text`),settings:{abuse_contact_email:m(n[`settings-abuse-contact-email`],`settings-abuse-contact-email`,`text`),enforce_twofactor:n[`settings-enforce-twofactor`]}});o(await c(`Updating`,async()=>i.accounts.update({body:u,account_id:l})),{successLabel:`Updated`})})};function Ut(e){return e.usage(`$0 accounts ut-billing edit
|
|
127
133
|
|
|
128
134
|
Updates the Unique Transformations billing configuration for an account. When enabled, billing data is directed to the Transformations pipeline. Note: setting the value to "off" is not permitted once enabled.`).option(`value`,{type:`string`,description:`Enables Unique Transformations billing for the account.
|
|
129
135
|
Note: once enabled, this setting cannot be set back to "off".
|
|
130
|
-
`,choices:[`on`]}).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
|
|
136
|
+
`,choices:[`on`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const Wt={command:`edit`,describe:`Change Unique Transformations billing setting`,builder:Ut,handler:async n=>l({command:`accounts ut-billing edit`,classification:{safeFlags:[`value`,`dry-run`]}},n,async()=>{if(n.dryRun){s({command:`cf accounts ut-billing edit`,method:`PATCH`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/settings/ut-billing`,pathParams:{},bodyKind:`json`,body:n.body===void 0?p({value:m(n.value,`value`,`text`)}):d(n.body)});return}let i=await a(n),l=n.local?e:await r();if(n.accountId=l,n.body){let e=d(n.body);o(await c(`Updating`,async()=>i.accounts.utBilling.edit({...e,account_id:l})),{successLabel:`Updated`});return}n.value===void 0&&(n.value=await g(`value`,`Enables Unique Transformations billing for the account. Note: once enabled, this setting cannot be set back to "off". `,[`on`]));let u=p({value:m(n.value,`value`,`text`)});o(await c(`Updating`,async()=>i.accounts.utBilling.edit({...u,account_id:l})),{successLabel:`Updated`})})};function Gt(e){return e.usage(`$0 accounts ut-billing get
|
|
131
137
|
|
|
132
|
-
Retrieves the Unique Transformations billing configuration for an account. When enabled, billing data is directed to the Transformations pipeline.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const
|
|
138
|
+
Retrieves the Unique Transformations billing configuration for an account. When enabled, billing data is directed to the Transformations pipeline.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const Kt={command:`get`,describe:`Get Unique Transformations billing setting`,builder:Gt,handler:async n=>l({command:`accounts ut-billing get`,classification:{safeFlags:[`dry-run`]}},n,async()=>{if(n.dryRun){s({command:`cf accounts ut-billing get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/settings/ut-billing`,pathParams:{},bodyKind:`none`});return}let i=await a(n),l=n.local?e:await r();n.accountId=l,o(await c(`Loading`,async()=>i.accounts.utBilling.get({account_id:l})),{successLabel:`Loaded`})})},qt={command:`ut-billing`,describe:`Operations for ut-billing`,builder:e=>e.command(Wt).command(Kt).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},Jt={command:`accounts`,describe:`Account settings, members, roles, subscriptions, and API tokens for your Cloudflare account`,builder:e=>e.command(Se).command(we).command(Ee).command(Oe).command(Ye).command(Ht).command(j).command(pe).command(be).command(Ie).command(qe).command(Qe).command(rt).command(bt).command(Lt).command(Bt).command(qt).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};export{Jt as default};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import{i as e}from"./context-
|
|
2
|
+
import{i as e}from"./context-CE7QFX-z.mjs";import{r as t}from"./auth-gOCL6Pm0.mjs";import{t as n}from"./output-CvQFJkvi.mjs";import{t as r}from"./dry-run-Bq0JAsbX.mjs";import{t as i}from"./progress-CRjK46r1.mjs";import{t as a}from"./run-huwFFwXd.mjs";import"./telemetry-B4_YhD82.mjs";import{n as o,t as s}from"./body-parser-hh2avzkz.mjs";import{n as c}from"./input-validation-Dk52b0me.mjs";import{a as l,n as u}from"./prompt-C_90YsVE.mjs";function d(e){return e.usage(`$0 acm custom-trust-store create
|
|
3
3
|
|
|
4
4
|
Upload a root CA certificate to the Custom Origin Trust Store for a Zone. Only root CA certificates are accepted.`).option(`certificate`,{type:`string`,description:`The root CA certificate in PEM format. Only root CA certificates are accepted; intermediate and leaf certificates are not supported.`}).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:`create`,describe:`Upload Custom Origin Trust Store`,builder:d,handler:async u=>a({command:`acm custom-trust-store create`,classification:{safeFlags:[`dry-run`]}},u,async()=>{if(u.dryRun){r({command:`cf acm custom-trust-store create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/zones/${u.zone??u.zoneId??`<zone>`}/acm/custom_trust_store`,pathParams:{"zone-id":String(u.zone??u[`zone-id`]??``)},bodyKind:`json`,body:u.body===void 0?s({certificate:c(u.certificate,`certificate`,`text`)}):o(u.body)});return}let a=await t(u),d=await e({zone:u.zone},a,{quiet:u.quiet});if(u.zoneId=d,u.body){let e=o(u.body);n(await i(`Creating`,async()=>a.acm.customTrustStore.create({...e,zone_id:d})),{successLabel:`Created`});return}u.certificate===void 0&&(u.certificate=await l(`certificate`,`The root CA certificate in PEM format. Only root CA certificates are accepted; intermediate and leaf certificates are not supported.`));let f=s({certificate:c(u.certificate,`certificate`,`text`)});n(await i(`Creating`,async()=>a.acm.customTrustStore.create({...f,zone_id:d})),{successLabel:`Created`})})};function p(e){return e.usage(`$0 acm custom-trust-store delete <custom-origin-trust-store-id>
|
|
5
5
|
|
|
@@ -1,5 +1,5 @@
|
|
|
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,i as n,t as r}from"./context-CE7QFX-z.mjs";import{a as i,r as a}from"./auth-gOCL6Pm0.mjs";import{t as o}from"./output-CvQFJkvi.mjs";import{t as s}from"./dry-run-Bq0JAsbX.mjs";import{t as c}from"./progress-CRjK46r1.mjs";import{t as l}from"./run-huwFFwXd.mjs";import"./telemetry-B4_YhD82.mjs";import{n as u,r as d,t as f}from"./body-parser-hh2avzkz.mjs";import{n as p,t as m}from"./input-validation-Dk52b0me.mjs";import{a as h,n as g}from"./prompt-C_90YsVE.mjs";import{n as ee,t as te}from"./raw-fetch-C8SdmQBp.mjs";function _(e){return e.usage(`$0 addressing address-maps accounts delete <member-account-id>
|
|
3
3
|
|
|
4
4
|
Remove an account as a member of a particular address map.`).positional(`member-account-id`,{type:`string`,description:`Identifier of a Cloudflare account.`,demandOption:!0}).option(`address-map-id`,{type:`string`,description:`Identifier of an Address Map.`,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 v={command:`delete <member-account-id>`,describe:`Remove an account membership from an Address Map`,builder:_,handler:async n=>l({command:`addressing address-maps accounts delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},n,async()=>{if(n.dryRun){s({command:`cf addressing address-maps accounts delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/addressing/address_maps/${n[`address-map-id`]==null?`<address-map-id>`:encodeURIComponent(String(n[`address-map-id`]))}/accounts/${n[`member-account-id`]==null?`<member-account-id>`:encodeURIComponent(String(n[`member-account-id`]))}`,pathParams:{"address-map-id":String(n[`address-map-id`]??``),"member-account-id":String(n[`member-account-id`]??``)},bodyKind:`none`});return}let i=await a(n),l=n.local?e:await r();if(n.accountId=l,!await g({force:!!n.force})){process.stderr.write(`Aborted.
|
|
5
5
|
`);return}o(await c(`Deleting`,async()=>i.addressing.addressMaps.accounts.delete({account_id:l,address_map_id:n[`address-map-id`],member_account_id:n[`member-account-id`]})),{successLabel:`Deleted`})})};function y(e){return e.usage(`$0 addressing address-maps accounts update <member-account-id>
|
|
@@ -1,5 +1,5 @@
|
|
|
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,n as p}from"./prompt-C_90YsVE.mjs";import{t as m}from"./cli-types-DoVT5q_M.mjs";function h(e){return e.usage(`$0 agent-memory create-namespace
|
|
3
3
|
|
|
4
4
|
Creates a new memory namespace owned by the account.`).option(`name`,{type:`string`,description:`Namespace name.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const g={command:`create-namespace`,describe:`Create a namespace`,builder:h,handler:async l=>s({command:`agent-memory create-namespace`,classification:{safeFlags:[`dry-run`]}},l,async()=>{if(l.dryRun){a({command:`cf agent-memory create-namespace`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/agent-memory/namespaces`,pathParams:{},bodyKind:`json`,body:l.body===void 0?u({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.agentMemory.createNamespace({...e,account_id:p})),{successLabel:`Created`});return}l.name===void 0&&(l.name=await f(`name`,`Namespace name.`));let m=u({name:d(l.name,`name`,`text`)});i(await o(`Creating`,async()=>s.agentMemory.createNamespace({...m,account_id:p})),{successLabel:`Created`})})};function _(e){return e.usage(`$0 agent-memory delete-memory <memory-id>
|
|
5
5
|
|