cf 1.0.0-beta.30 → 1.0.0-beta.31
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/_meta/commands.json +1029 -1113
- package/dist/_meta/schemas.json +672 -702
- package/dist/{abuse-reports-Dzop8iDe.mjs → abuse-reports-B8vD22yf.mjs} +1 -1
- package/dist/{access-2NeD3Gu8.mjs → access-BkZlZPER.mjs} +1 -1
- package/dist/{accounts-CeJbhhX4.mjs → accounts-CG6_1Bfa.mjs} +3 -3
- package/dist/{acm-Dub0B14J.mjs → acm-B5VvmBfE.mjs} +1 -1
- package/dist/{addressing-BzWJU8m6.mjs → addressing-Db9Z1P-r.mjs} +1 -1
- package/dist/{agent-memory-2l9zyQFA.mjs → agent-memory-nzAUPSmC.mjs} +1 -1
- package/dist/{ai-laLv3daG.mjs → ai-RTQ-iZFq.mjs} +1 -1
- package/dist/{ai-audit-rgNePq5W.mjs → ai-audit-BGipueRC.mjs} +1 -1
- package/dist/{ai-gateway-e9b8CcL6.mjs → ai-gateway-F2pW8d5j.mjs} +1 -1
- package/dist/{ai-search-DZ0AqoPe.mjs → ai-search-CKM-K1Hm.mjs} +1 -1
- package/dist/{ai-security-CQuBTtmw.mjs → ai-security-CS2VJd4V.mjs} +1 -1
- package/dist/{alerting-_4ra-f_v.mjs → alerting-DNqXDY_7.mjs} +1 -1
- package/dist/{analytics-DLNn4bJ4.mjs → analytics-DM85HHka.mjs} +1 -1
- package/dist/{analytics-engine-CY45yWuL.mjs → analytics-engine-CxnuZwEx.mjs} +1 -1
- package/dist/{api-security-BSvJAjJV.mjs → api-security-BwLSP_5v.mjs} +1 -1
- package/dist/{argo-xzl0p--1.mjs → argo-DZM2SJFd.mjs} +1 -1
- package/dist/{artifacts-DAS14gcM.mjs → artifacts-CKbQsn4H.mjs} +1 -1
- package/dist/{audit-logs-3nYyCGQA.mjs → audit-logs-CG76HATH.mjs} +1 -1
- package/dist/auth-BBUZyJJx.mjs +2 -0
- package/dist/{auth-B0mFB6nU.mjs → auth-DBM4EcdJ.mjs} +1 -1
- package/dist/{auth-cj71dGxS.mjs → auth-NIRm11Ab.mjs} +1 -1
- package/dist/{auth-token-D9MnaZ-L.mjs → auth-token-Cp_u44cF.mjs} +1 -1
- package/dist/{autoconfig-DoLQ5ct8.mjs → autoconfig-CQjvJ8Rp.mjs} +386 -120
- package/dist/{basin-catalog-BbCsAKyZ.mjs → basin-catalog-BMKr8hFw.mjs} +1 -1
- package/dist/{billing-BsiLsjWJ.mjs → billing-LiyUCn9n.mjs} +1 -1
- package/dist/{blocks-DK5qAzLe.mjs → blocks-DdIA5quB.mjs} +1 -1
- package/dist/{bot-management-DkErOsIO.mjs → bot-management-ATqDTT08.mjs} +1 -1
- package/dist/{botnet-feed-CK4_PKrf.mjs → botnet-feed-Dk3eMSZo.mjs} +1 -1
- package/dist/{brand-protection-Czt-2Ei5.mjs → brand-protection-B82xx9X5.mjs} +2 -2
- package/dist/{browser-run-DLMdEaSJ.mjs → browser-run-DEVs2X54.mjs} +1 -1
- package/dist/build-CjqOmQjC.mjs +2 -0
- package/dist/{build-DiEXOgHH.mjs → build-D18S0p87.mjs} +1 -1
- package/dist/{builds-D--zUbR2.mjs → builds-kZaYZiQn.mjs} +1 -1
- package/dist/{cache-C8PQmkjD.mjs → cache-BSkT4mhb.mjs} +1 -1
- package/dist/{cli-BBv5YMan.mjs → cli-dk6sJFtN.mjs} +1 -1
- package/dist/{client-side-security-CFxePUL9.mjs → client-side-security-90cX3xFX.mjs} +1 -1
- package/dist/{cloud-connector-BitfLQ3s.mjs → cloud-connector-CtJhvxoD.mjs} +1 -1
- package/dist/{cloudforce-one-D2dzA7VD.mjs → cloudforce-one-DOf-Y51V.mjs} +2 -2
- package/dist/{command-iwrZ2Sb1.mjs → command-B2dfzTXs.mjs} +1 -1
- package/dist/{command-Xqidhyr_.mjs → command-BAzptjLF.mjs} +1 -1
- package/dist/{command-n7QausoH.mjs → command-BUYlzx4J.mjs} +1 -1
- package/dist/{command-BwcAuPBr.mjs → command-BUbUtS1f.mjs} +1 -1
- package/dist/{command-CQhD3Q1t.mjs → command-CTpn87uz.mjs} +1 -1
- package/dist/{command-BC_nezLE.mjs → command-DPo7r1PT.mjs} +1 -1
- package/dist/command-DuCT0YaL.mjs +2 -0
- package/dist/{command-DoXuskBZ.mjs → command-MWbvYsQH.mjs} +1 -1
- package/dist/{command-D5FrTb2N.mjs → command-QInwUVT5.mjs} +1 -1
- package/dist/{command-s15KaL-x.mjs → command-V0dODmT-.mjs} +1 -1
- package/dist/{completions-BAUSggys.mjs → completions-4aAl8vcF.mjs} +1 -1
- package/dist/{connector-interrupts-D9tI84Fk.mjs → connector-interrupts-qEMhlWeV.mjs} +1 -1
- package/dist/{connector-telemetry-events-Bs9wLYwc.mjs → connector-telemetry-events-CdqnrxRp.mjs} +1 -1
- package/dist/{connector-telemetry-snapshots-CbwE4lrE.mjs → connector-telemetry-snapshots-BRvmHAEM.mjs} +1 -1
- package/dist/{connectors-LyJN1htu.mjs → connectors-BqShaonQ.mjs} +1 -1
- package/dist/{containers-CKs7ZyZq.mjs → containers-BNuGwLRK.mjs} +2 -2
- package/dist/{content-scan-BQRz7C7Z.mjs → content-scan-02SOIW_1.mjs} +1 -1
- package/dist/{context-DlFhI9cN.mjs → context-CroqTqbk.mjs} +1 -1
- package/dist/{cps-DYlXx89C.mjs → cps-DvEG2eZl.mjs} +1 -1
- package/dist/{csam-scanner-BFANxGD-.mjs → csam-scanner-Bvklah8m.mjs} +1 -1
- package/dist/{custom-csrs-BX4aCeof.mjs → custom-csrs-BVcDWpY-.mjs} +1 -1
- package/dist/{custom-hostnames-BRYABKN3.mjs → custom-hostnames-IgjZmeJc.mjs} +1 -1
- package/dist/{custom-nameservers-CP1Vf1TD.mjs → custom-nameservers-0EYFPBz2.mjs} +1 -1
- package/dist/{custom-pages-BNL69ToU.mjs → custom-pages-W2weASNg.mjs} +1 -1
- package/dist/{d1-D4AZsUKn.mjs → d1-Df4t1noM.mjs} +1 -1
- package/dist/{delegate-BKlomUk6.mjs → delegate-CEaYc4br.mjs} +1 -1
- package/dist/delegate.mjs +1 -1
- package/dist/{deploy-LbXgSfAd.mjs → deploy-CGx9aUuj.mjs} +1 -1
- package/dist/{deploy-context-BYw6gbl-.mjs → deploy-context-DzSmuU32.mjs} +1 -1
- package/dist/deploy-input-DA70GC4o.mjs +2 -0
- package/dist/{dev-DaFSd8WC.mjs → dev-BDls_bK6.mjs} +1 -1
- package/dist/{diagnostics-Dk3pyWx_.mjs → diagnostics-C8V1G64d.mjs} +1 -1
- package/dist/{discover-DGsMj9ZN.mjs → discover-DtcZCeSh.mjs} +1 -1
- package/dist/discover-Dxb5yh9L.mjs +2 -0
- package/dist/{disk-cache-nbuwH1Dh.mjs → disk-cache-D6xHBTAA.mjs} +1 -1
- package/dist/{dls-DU6EdhQK.mjs → dls-BpU_jtuh.mjs} +1 -1
- package/dist/{dns-3QDtCu6f.mjs → dns-BlgfnRkG.mjs} +25 -25
- package/dist/{dns-firewall-Bbrr_0_a.mjs → dns-firewall-DtkcaFQ0.mjs} +1 -1
- package/dist/{docs-lLLKcLr_.mjs → docs-BI2ZoYmm.mjs} +1 -1
- package/dist/{durable-objects-DPf1DMeq.mjs → durable-objects-BPTzK6Xh.mjs} +1 -1
- package/dist/{email-auth-DOlEoi8q.mjs → email-auth-BSoYwLs1.mjs} +1 -1
- package/dist/{email-routing-D56SPGty.mjs → email-routing-3AIhCb7w.mjs} +1 -1
- package/dist/{email-security-CSawx0kD.mjs → email-security-INhnV4tT.mjs} +1 -1
- package/dist/{email-sending-CgFi0cLA.mjs → email-sending-BJ3OLfN3.mjs} +1 -1
- package/dist/{errors-CilNjDVk.mjs → errors-CBngn9n1.mjs} +1 -1
- package/dist/{field-extractors-FvIgySB4.mjs → field-extractors-lSqk5ySb.mjs} +1 -1
- package/dist/{firewall-BrTvywhW.mjs → firewall-CdXsS4Cc.mjs} +1 -1
- package/dist/{flagship-BGFN1Epo.mjs → flagship-CtnQ4Emf.mjs} +1 -1
- package/dist/{fraud-DzK6OIO3.mjs → fraud-CAZdLc_4.mjs} +1 -1
- package/dist/{google-tag-gateway-Cd9v8A7Z.mjs → google-tag-gateway-CBMNbgeM.mjs} +1 -1
- package/dist/{healthchecks-Cm7EHaBA.mjs → healthchecks-DdPEo0GC.mjs} +1 -1
- package/dist/{hyperdrive-CVaSt0qX.mjs → hyperdrive-DxHbVnyO.mjs} +1 -1
- package/dist/{iam-CWN62Mi4.mjs → iam-CISZzLLr.mjs} +1 -1
- package/dist/{images-Bo_pdvQC.mjs → images-DeMHqQHl.mjs} +1 -1
- package/dist/index.mjs +1 -1
- package/dist/{init-Dwmpc_S-.mjs → init-DKADNnPy.mjs} +1 -1
- package/dist/{intel-CQFYeGEA.mjs → intel-BYvnwlXr.mjs} +1 -1
- package/dist/{ips-jTSzoqMU.mjs → ips-CS5SkxUL.mjs} +1 -1
- package/dist/{k2-utE2lCYd.mjs → k2-isJz0-93.mjs} +1 -1
- package/dist/{kv-Cdh5hHte.mjs → kv-Beih-nj_.mjs} +1 -1
- package/dist/{lazy-command-QoHlmXHW.mjs → lazy-command-Dfv2jIGz.mjs} +1 -1
- package/dist/{leaked-credential-checks-CqApscD3.mjs → leaked-credential-checks-CP_8DWAX.mjs} +1 -1
- package/dist/{load-balancers-w_4Uz9Gi.mjs → load-balancers-fhAs7LaH.mjs} +1 -1
- package/dist/{login-CS3KxVbk.mjs → login-BdTYP5Xw.mjs} +1 -1
- package/dist/login-Bux329zM.mjs +2 -0
- package/dist/{logpush-C76I5dgN.mjs → logpush-fHQiJ9eI.mjs} +1 -1
- package/dist/{logs-B5aCYVCv.mjs → logs-Bquc4oxR.mjs} +1 -1
- package/dist/{magic-network-monitoring-CGf7cVQ9.mjs → magic-network-monitoring-DqQUEtPW.mjs} +1 -1
- package/dist/{magic-transit-CN5noqOR.mjs → magic-transit-py-CXbOl.mjs} +1 -1
- package/dist/{managed-defense-DAGr0UGm.mjs → managed-defense-nFm4rVCR.mjs} +1 -1
- package/dist/{managed-transforms-_SuwzZ-5.mjs → managed-transforms-2k6tV3U-.mjs} +1 -1
- package/dist/{mcp-CzedsjOf.mjs → mcp-BCtJ76cJ.mjs} +1 -1
- package/dist/{mesh-DXX1S3pX.mjs → mesh-D2V3ITA7.mjs} +1 -1
- package/dist/{migrate-CvRQ4x3_.mjs → migrate-CqUzEP9-.mjs} +1 -1
- package/dist/{monetization-8nt9PYln.mjs → monetization-CQL4WEtz.mjs} +1 -1
- package/dist/{network-CaiRDY2e.mjs → network-1oR1_5Ak.mjs} +1 -1
- package/dist/{network-interconnects-Ad6JbAVd.mjs → network-interconnects-BKRa6OaY.mjs} +1 -1
- package/dist/{o11y-DD2Hfnzi.mjs → o11y-B2hny1eT.mjs} +4 -4
- package/dist/{oauth-BUcV_xbm.mjs → oauth-CQiiWvag.mjs} +1 -1
- package/dist/{oauth-CQRlNgt5.mjs → oauth-Dp9VNyOf.mjs} +1 -1
- package/dist/{observability-BzKBUUSf.mjs → observability-ByzMkD8L.mjs} +1 -1
- package/dist/{ohttp-gateway-Sej9-GCm.mjs → ohttp-gateway-B67P-f_M.mjs} +1 -1
- package/dist/{organizations-DwYsCbYD.mjs → organizations-Dk5cbMB5.mjs} +1 -1
- package/dist/package-CcmyQJFT.mjs +2 -0
- package/dist/{page-rules-CjufEmIt.mjs → page-rules-hRzoq6WZ.mjs} +1 -1
- package/dist/{pages-Dj0Cdf3G.mjs → pages-D_0y5Pbg.mjs} +1 -1
- package/dist/{pay-per-crawl-DPVlluRA.mjs → pay-per-crawl-C0ZDkVH8.mjs} +1 -1
- package/dist/{pay-per-use-DhuLjaoo.mjs → pay-per-use-Z_LlZyxh.mjs} +1 -1
- package/dist/{pipelines-D2pM69oq.mjs → pipelines-B8-zUXTD.mjs} +1 -1
- package/dist/{precursor-DzuA1m8D.mjs → precursor-vlW9-fma.mjs} +1 -1
- package/dist/{previews-CHHd5Rx7.mjs → previews-DZX0vwDU.mjs} +3 -3
- package/dist/{progress-AML-AVs4.mjs → progress-DQfZZwit.mjs} +1 -1
- package/dist/{prompt-Bnon9lfK.mjs → prompt-e6K5lhdE.mjs} +1 -1
- package/dist/{queues-GDwznw0o.mjs → queues-6WHCb5qi.mjs} +1 -1
- package/dist/{r2-B3Xkb0S4.mjs → r2-C9xL1Rcg.mjs} +2 -2
- package/dist/{radar-fBT7VIO2.mjs → radar-DN1PIWRf.mjs} +150 -150
- package/dist/{raw-fetch-0T1SwPa1.mjs → raw-fetch-DXSBORQI.mjs} +1 -1
- package/dist/{realtime-B7mR3XtY.mjs → realtime-CcOSBEFJ.mjs} +1 -1
- package/dist/{registrar-DOoxlZc7.mjs → registrar-BjBA2lbF.mjs} +1 -1
- package/dist/{registrar-sandbox-DC7xAqqc.mjs → registrar-sandbox-DVeWO8gt.mjs} +1 -1
- package/dist/{reporting-DlD7J6Pq.mjs → reporting-cOY97XSy.mjs} +1 -1
- package/dist/{request-headers-BEYXy4JN.mjs → request-headers-xtY5gOlq.mjs} +1 -1
- package/dist/{request-tracers-DYCGkszp.mjs → request-tracers-bHnQoIpS.mjs} +1 -1
- package/dist/{resource-sharing-D_bUv7E8.mjs → resource-sharing-CQMP1o3F.mjs} +1 -1
- package/dist/{rules-C4cu3_jr.mjs → rules-CrevxzXm.mjs} +1 -1
- package/dist/{rulesets-Bl4mLnXA.mjs → rulesets-DzGcmiGs.mjs} +1 -1
- package/dist/{rum-DE_uJb09.mjs → rum-edoW7i0P.mjs} +1 -1
- package/dist/run-B6k0nZU4.mjs +2 -0
- package/dist/{run-DAg7dfIW.mjs → run-DhU17ztU.mjs} +1 -1
- package/dist/{schema-cache-CTVUtkAl.mjs → schema-cache-BFMBra5w.mjs} +1 -1
- package/dist/{scim-Dz4r0fnH.mjs → scim-BC31cTiV.mjs} +1 -1
- package/dist/{secrets-store-C2GwCUKs.mjs → secrets-store-DJlRawQ0.mjs} +1 -1
- package/dist/{security-insights-DZCm5D3U.mjs → security-insights-jHGuq15c.mjs} +1 -1
- package/dist/{security-txt-Dbi9KxNc.mjs → security-txt-D1vV2ySL.mjs} +1 -1
- package/dist/{session-BEsQIuwP.mjs → session-Py5R3Tdx.mjs} +1 -1
- package/dist/shared-C50J5uEm.mjs +2 -0
- package/dist/{smart-shield-C2uSFcGN.mjs → smart-shield-YI9Y6xhz.mjs} +1 -1
- package/dist/{snippets-BoaGEAC6.mjs → snippets-SKlEbP3W.mjs} +1 -1
- package/dist/{spawn-B4y5Urjv.mjs → spawn-BXaiweDp.mjs} +1 -1
- package/dist/{spectrum-Bb0KXA8R.mjs → spectrum-CFl8kTtP.mjs} +1 -1
- package/dist/{speed-zKYgLTHA.mjs → speed-DekTJTgw.mjs} +1 -1
- package/dist/{sql-pjWozuvl.mjs → sql-tkIoPSbE.mjs} +1 -1
- package/dist/{src-B8i6_XGg.mjs → src-COKSSJwa.mjs} +5 -5
- package/dist/{ssl-C5bg1X0i.mjs → ssl-DRGNVUlP.mjs} +1 -1
- package/dist/{static-assets-CTv7XwIQ.mjs → static-assets-pAj1uSDU.mjs} +1 -1
- package/dist/{stream-C_FiNrLV.mjs → stream-WHdFw1o1.mjs} +1 -1
- package/dist/{tags-CXlivF3y.mjs → tags-CNEWjoac.mjs} +1 -1
- package/dist/{telemetry-CtQWhsmy.mjs → telemetry-BCQMv5dO.mjs} +1 -1
- package/dist/telemetry-CruYXv5e.mjs +2 -0
- package/dist/{tenant-custom-nameservers-DBg9Hzvn.mjs → tenant-custom-nameservers-BCJoh-yz.mjs} +1 -1
- package/dist/{tenants-89Q0u5_Q.mjs → tenants-Coo3-wTg.mjs} +1 -1
- package/dist/{tunnels-CL2fIINH.mjs → tunnels-Cy3byznJ.mjs} +2 -2
- package/dist/{turnstile-D6GtQULo.mjs → turnstile-DvkuMuTq.mjs} +1 -1
- package/dist/ui-CA_2sliN.mjs +2 -0
- package/dist/{update-check-0kpbTLvy.mjs → update-check-Buyg_Zyb.mjs} +1 -1
- package/dist/{update-check-D3axIoUi.mjs → update-check-CV30Z3FO.mjs} +1 -1
- package/dist/update-check-worker.mjs +1 -1
- package/dist/{url-normalization--iS57OT_.mjs → url-normalization-DJzp3oJN.mjs} +1 -1
- package/dist/{url-scanner-C6AtXGc2.mjs → url-scanner-C28ADWWB.mjs} +1 -1
- package/dist/{user-C5vRYIta.mjs → user-CiFGo-51.mjs} +1 -1
- package/dist/{vectorize-C1Kxb1Ou.mjs → vectorize-DZ-VBQjl.mjs} +1 -1
- package/dist/version--BAAeBma.mjs +2 -0
- package/dist/{waiting-rooms-BCVZY9vI.mjs → waiting-rooms-mLG31NWt.mjs} +1 -1
- package/dist/{web-assets-D2gXqKZS.mjs → web-assets-Caubyaqz.mjs} +1 -1
- package/dist/{web3-CJDZQCOk.mjs → web3-Ctcb6rxj.mjs} +1 -1
- package/dist/{whoami-BEad9QUB.mjs → whoami-DBZfITBb.mjs} +3 -3
- package/dist/whoami-rfo2jx0r.mjs +2 -0
- package/dist/{workers-DzXSJMv9.mjs → workers-ClK3WFQg.mjs} +18 -18
- package/dist/{workers-for-platforms-CvazgrqD.mjs → workers-for-platforms-D6fknsnw.mjs} +1 -1
- package/dist/{workers-vpc-DP4QC6UC.mjs → workers-vpc-B7wRAn-K.mjs} +1 -1
- package/dist/{workflows-BSOj56io.mjs → workflows-B0UzguVf.mjs} +1 -1
- package/dist/{wrangler-migration-DZ9Oelof.mjs → wrangler-migration-u2oXOk-L.mjs} +2 -2
- package/dist/{zaraz-BnQvKXFy.mjs → zaraz-p9rNptt3.mjs} +1 -1
- package/dist/{zero-trust-DsslXRub.mjs → zero-trust-Dw5CvLQD.mjs} +1 -1
- package/dist/{zones-DQ3SjGsZ.mjs → zones-DzPc0thm.mjs} +1 -1
- package/package.json +6 -6
- package/dist/auth-CXR2vsII.mjs +0 -2
- package/dist/build-ByjJ6yIB.mjs +0 -2
- package/dist/command-ycXauMSv.mjs +0 -2
- package/dist/deploy-input-BFWpjDVr.mjs +0 -2
- package/dist/discover-D9FNaCDK.mjs +0 -2
- package/dist/internal-CYrPZ9IX.mjs +0 -4
- package/dist/live-hZgMkXJf.mjs +0 -4
- package/dist/login-BBSJytOt.mjs +0 -2
- package/dist/package-DXaRIx2f.mjs +0 -2
- package/dist/ready-BkXNDNTd.mjs +0 -4
- package/dist/run-Cg9utScS.mjs +0 -2
- package/dist/shared-DqW2vICA.mjs +0 -2
- package/dist/signed-url-BhHSAUam.mjs +0 -4
- package/dist/telemetry-DDs3zhdw.mjs +0 -2
- package/dist/ui-CY75N4Tm.mjs +0 -2
- package/dist/version-pcpa_kv3.mjs +0 -2
- package/dist/whoami-2eFTt0-Y.mjs +0 -2
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import"./api-Dnt6lRJG.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{i as t,n}from"./auth-
|
|
2
|
+
import"./api-Dnt6lRJG.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{i as t,n}from"./auth-NIRm11Ab.mjs";import{t as r}from"./dry-run-mrA7FFLR.mjs";import{a as i,t as a}from"./context-CroqTqbk.mjs";import{t as o}from"./local-B3zt9PXR.mjs";import{t as s}from"./output-PRKYaJuo.mjs";import{t as c}from"./progress-DQfZZwit.mjs";import{t as l}from"./run-DhU17ztU.mjs";import"./telemetry-CruYXv5e.mjs";import{c as u,o as d,r as f,t as p}from"./body-parser-HN91kAf0.mjs";import{n as m}from"./input-validation-D7z60HJH.mjs";import{a as h,i as g}from"./prompt-e6K5lhdE.mjs";var _={method:`GET`,path:t=>e`/accounts/${t.account_id}/abuse-reports/${t.report_id}/appeals/eligibility`,errors:{401:`UnauthorizedError`,403:`ForbiddenError`,404:`NotFoundError`,500:`InternalServerError`}};function v(e){return e.usage(`$0 abuse-reports appeals eligibility <report-id>
|
|
3
3
|
|
|
4
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 y={command:`eligibility <report-id>`,describe:`Check whether a report can be appealed`,builder:v,handler:async e=>l({command:`abuse-reports appeals eligibility`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await i();r({command:`cf abuse-reports appeals eligibility`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/abuse-reports/${e[`report-id`]==null?`<report-id>`:encodeURIComponent(String(e[`report-id`]))}/appeals/eligibility`,pathParams:{"report-id":String(e[`report-id`]??``)},bodyKind:`none`});return}let t=await n(e),l=e.local?o:await a();e.accountId=l;let u=await c(`Loading`,async()=>t.send(_,{account_id:l,report_id:e[`report-id`]}));s(u,{successLabel:`Loaded`})})},b={command:`appeals`,describe:`Appeal eligibility for abuse reports`,builder:e=>e.command(y).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function x(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). Delegated reports: In limited circumstances, Cloudflare delegates processing of abuse reports to select customers who have established abuse-handling programs. For these customers, Cloudflare may forward abuse reports directly and in full—including reporter contact information, comments, and supporting evidence—without redaction or preprocessing by Cloudflare. This allows the customer to investigate and respond using their own policies and processes. For delegated reports, the report—including contact information and comments—will be forwarded to the customer in full regardless of the `host_notification` and `owner_notification` values.").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`]}).coerce(`act`,e=>m(e,`act`,`text`)).option(`comments`,{type:`string`,description:`Any additional comments about the infringement not exceeding 2000 characters. With the exception of delegated reports, comments are kept internal to Cloudflare and not shared with the host or customer as part of regular processing. For the limited circumstances where we delegate reports to customers with established abuse-handling programs, comments may be shared in full.`}).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
5
|
`}).option(`host-notification`,{type:`string`,description:`Notification type based on the abuse type. For delegated reports, the report—including contact information and comments—will be forwarded to the customer in full regardless of this value. NOTE: Copyright (DMCA) and Trademark reports cannot be anonymous.
|
|
@@ -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-Dfv2jIGz.mjs";import{t}from"./hand-written-dry-run-B82fRl2N.mjs";var n=e(`curl <url>`,`Run curl against an Access-protected application with its JWT injected by cloudflared.`,()=>import(`./command-B2dfzTXs.mjs`),{command:`access curl`,recordArgs:!1}),r=e(`login <url>`,`Authenticate with an Access application and store its JWT through cloudflared.`,()=>import(`./command-BUYlzx4J.mjs`),{command:`access login`,recordArgs:!1}),i=e(`ssh-config`,`Print an example SSH configuration for an Access application.`,()=>import(`./command-BUbUtS1f.mjs`),{command:`access ssh-config`,recordArgs:!1}),a=e(`ssh-gen`,`Generate a short-lived certificate for an Access SSH application.`,()=>import(`./command-DPo7r1PT.mjs`),{command:`access ssh-gen`,recordArgs:!1}),o={...e(`tcp`,`Proxy a TCP connection through Access. The command is also available as ssh, rdp, and smb.`,()=>import(`./command-QInwUVT5.mjs`),{command:`access tcp`,recordArgs:!1}),aliases:[`ssh`,`rdp`,`smb`]},s=e(`token <url>`,`Print a JWT for authenticating with an Access application.`,()=>import(`./command-CTpn87uz.mjs`),{command:`access token`,recordArgs:!1});const c={command:`access`,describe:`Access protected applications and services`,builder:e=>e.command(t(n,`preview`)).command(t(r,`preview`)).command(t(i,`preview`)).command(t(a,`preview`)).command(t(o,`preview`)).command(t(s,`preview`)).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};export{c as default};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import"./api-Dnt6lRJG.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{i as t,n,s as r}from"./auth-
|
|
2
|
+
import"./api-Dnt6lRJG.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{i as t,n,s as r}from"./auth-NIRm11Ab.mjs";import{c as i,o as a,r as o,t as s}from"./body-parser-HN91kAf0.mjs";import{a as c,i as l,t as u}from"./context-CroqTqbk.mjs";import{t as d}from"./dry-run-mrA7FFLR.mjs";import{n as f}from"./input-validation-D7z60HJH.mjs";import{t as p}from"./local-B3zt9PXR.mjs";import{t as m}from"./run-DhU17ztU.mjs";import{t as h}from"./output-PRKYaJuo.mjs";import{t as g}from"./progress-DQfZZwit.mjs";import{a as _,i as v,n as y}from"./prompt-e6K5lhdE.mjs";import"./telemetry-CruYXv5e.mjs";import{n as ee,t as te}from"./raw-fetch-DXSBORQI.mjs";var b={method:`POST`,path:t=>e`/accounts/${t.account_id}/resource-library/applications`,body:`json`,errors:{403:`ForbiddenError`,429:`TooManyRequestsError`}};function ne(e){return e.usage(`$0 accounts applications create
|
|
3
3
|
|
|
4
4
|
Create a custom application for an account from a name, category, and optional network matchers.`).option(`category-id`,{type:`number`,description:`Numeric identifier for an application category.`}).option(`hostnames`,{type:`string`,array:!0,description:`Hostnames matched by the application.`}).option(`human-id`,{type:`string`,description:`Human-readable identifier for the application.`}).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:`Application name.`}).option(`port-protocols`,{type:`string`,array:!0,description:"Ports matched by the application, in `protocol/port` or inclusive `protocol/start-end` format (for example, `tcp/443` or `udp/10000-20000`). TCP and UDP ports must be between 0 and 65535."}).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. A NUL character (U+0000) in any string value returns `400`. "})}const re={command:`create`,describe:`Create application`,builder:ne,handler:async e=>m({command:`accounts applications create`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await c();d({command:`cf accounts applications create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/resource-library/applications`,pathParams:{},bodyKind:`json`,body:e.body===void 0?s({category_id:e[`category-id`],hostnames:e.hostnames,human_id:f(e[`human-id`],`human-id`,`text`),ip_subnets:e[`ip-subnets`],name:f(e.name,`name`,`text`),port_protocols:e[`port-protocols`],support_domains:e[`support-domains`]}):o(e.body)});return}let t=e.body===void 0?void 0:o(e.body),r=await n(e),i=e.local?p:await u();if(e.accountId=i,e.body!==void 0){let e=t,n=await g(`Creating`,async()=>r.send(b,{body:e,account_id:i}));h(n,{successLabel:`Created`});return}if(e[`category-id`]===void 0)throw Error(`--category-id is required (or pass --body with this field set).`);e[`human-id`]===void 0&&(e[`human-id`]=await _(`human-id`,`Human-readable identifier for the application.`)),e.name===void 0&&(e.name=await _(`name`,`Application name.`));let a=s({category_id:e[`category-id`],hostnames:e.hostnames,human_id:f(e[`human-id`],`human-id`,`text`),ip_subnets:e[`ip-subnets`],name:f(e.name,`name`,`text`),port_protocols:e[`port-protocols`],support_domains:e[`support-domains`]}),l=await g(`Creating`,async()=>r.send(b,{body:a,account_id:i}));h(l,{successLabel:`Created`})})};var ie={method:`DELETE`,path:t=>e`/accounts/${t.account_id}/resource-library/applications/${t.id}`,errors:{403:`ForbiddenError`,409:`ConflictError`,429:`TooManyRequestsError`,502:`BadGatewayError`}};function ae(e){return e.usage(`$0 accounts applications delete <id>
|
|
5
5
|
|
|
@@ -126,8 +126,8 @@ Test whether a token works.`).option(`dry-run`,{type:`boolean`,description:`Vali
|
|
|
126
126
|
|
|
127
127
|
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 Vn={command:`list`,describe:`List Image Resizing configurations for account`,builder:Bn,handler:async e=>m({command:`accounts transformations list`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let e=await c();d({command:`cf accounts transformations list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}/settings/transformations`,pathParams:{},bodyKind:`none`});return}let t=await n(e),r=e.local?p:await u();e.accountId=r;let i=await g(`Loading`,async()=>t.send(zn,{account_id:r}));h(i,{successLabel:`Loaded`})})},Hn={command:`transformations`,describe:`Operations for transformations`,builder:e=>e.command(Vn).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var Q={method:`PUT`,path:t=>e`/accounts/${t.account_id}`,body:`json`};function Un(e){return e.usage(`$0 accounts update
|
|
128
128
|
|
|
129
|
-
Update an existing account. Account names are limited to 65 UTF-8 bytes.`).option(`id`,{type:`string`,description:`Identifier`}).option(`name`,{type:`string`,description:`Account name, limited to 65 UTF-8 bytes.`}).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
|
|
130
|
-
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 Wn={command:`update`,describe:`Update Account`,builder:Un,handler:async e=>m({command:`accounts update`,classification:{safeFlags:[`settings-enforce-twofactor`,`dry-run`]}},e,async()=>{if(e.dryRun){let t=await c();d({command:`cf accounts update`,method:`PUT`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}`,pathParams:{},bodyKind:`json`,body:e.body===void 0?s({id:f(e.id,`id`,`text`),name:f(e.name,`name`,`text`),settings:{abuse_contact_email:f(e[`settings-abuse-contact-email`],`settings-abuse-contact-email`,`text`),enforce_twofactor:e[`settings-enforce-twofactor`]}}):o(e.body)});return}let t=e.body===void 0?void 0:o(e.body),r=await n(e),i=e.local?p:await u();if(e.accountId=i,e.body!==void 0){let e=t,n=await g(`Updating`,async()=>r.send(Q,{body:e,account_id:i}));h(n,{successLabel:`Updated`});return}e.id===void 0&&(e.id=await _(`id`,`Identifier`)),e.name===void 0&&(e.name=await _(`name`,`Account name, limited to 65 UTF-8 bytes.`));let a=s({id:f(e.id,`id`,`text`),name:f(e.name,`name`,`text`),settings:{abuse_contact_email:f(e[`settings-abuse-contact-email`],`settings-abuse-contact-email`,`text`),enforce_twofactor:e[`settings-enforce-twofactor`]}}),l=await g(`Updating`,async()=>r.send(Q,{body:a,account_id:i}));h(l,{successLabel:`Updated`})})};var $={method:`PATCH`,path:t=>e`/accounts/${t.account_id}/settings/ut-billing`,body:`json`,constants:{value:`on`}};function Gn(e){return e.usage(`$0 accounts ut-billing edit
|
|
129
|
+
Update an existing account. Account names are limited to 65 UTF-8 bytes.`).option(`id`,{type:`string`,description:`Identifier`}).option(`name`,{type:`string`,description:`Account name. When creating or updating an account, the name is limited to 65 UTF-8 bytes.`}).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
|
|
130
|
+
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 Wn={command:`update`,describe:`Update Account`,builder:Un,handler:async e=>m({command:`accounts update`,classification:{safeFlags:[`settings-enforce-twofactor`,`dry-run`]}},e,async()=>{if(e.dryRun){let t=await c();d({command:`cf accounts update`,method:`PUT`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}`,pathParams:{},bodyKind:`json`,body:e.body===void 0?s({id:f(e.id,`id`,`text`),name:f(e.name,`name`,`text`),settings:{abuse_contact_email:f(e[`settings-abuse-contact-email`],`settings-abuse-contact-email`,`text`),enforce_twofactor:e[`settings-enforce-twofactor`]}}):o(e.body)});return}let t=e.body===void 0?void 0:o(e.body),r=await n(e),i=e.local?p:await u();if(e.accountId=i,e.body!==void 0){let e=t,n=await g(`Updating`,async()=>r.send(Q,{body:e,account_id:i}));h(n,{successLabel:`Updated`});return}e.id===void 0&&(e.id=await _(`id`,`Identifier`)),e.name===void 0&&(e.name=await _(`name`,`Account name. When creating or updating an account, the name is limited to 65 UTF-8 bytes.`));let a=s({id:f(e.id,`id`,`text`),name:f(e.name,`name`,`text`),settings:{abuse_contact_email:f(e[`settings-abuse-contact-email`],`settings-abuse-contact-email`,`text`),enforce_twofactor:e[`settings-enforce-twofactor`]}}),l=await g(`Updating`,async()=>r.send(Q,{body:a,account_id:i}));h(l,{successLabel:`Updated`})})};var $={method:`PATCH`,path:t=>e`/accounts/${t.account_id}/settings/ut-billing`,body:`json`,constants:{value:`on`}};function Gn(e){return e.usage(`$0 accounts ut-billing edit
|
|
131
131
|
|
|
132
132
|
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.
|
|
133
133
|
Note: once enabled, this setting cannot be set back to "off".
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import"./api-Dnt6lRJG.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{n as t}from"./auth-
|
|
2
|
+
import"./api-Dnt6lRJG.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{n as t}from"./auth-NIRm11Ab.mjs";import{i as n}from"./context-CroqTqbk.mjs";import{r,t as i}from"./body-parser-HN91kAf0.mjs";import{t as a}from"./dry-run-mrA7FFLR.mjs";import{n as o}from"./input-validation-D7z60HJH.mjs";import{t as s}from"./run-DhU17ztU.mjs";import{t as c}from"./output-PRKYaJuo.mjs";import{t as l}from"./progress-DQfZZwit.mjs";import{a as u,n as d}from"./prompt-e6K5lhdE.mjs";import"./telemetry-CruYXv5e.mjs";var f={method:`POST`,path:t=>e`/zones/${t.zone_id}/acm/custom_trust_store`,body:`json`};function p(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 m={command:`create`,describe:`Upload Custom Origin Trust Store`,builder:p,handler:async e=>s({command:`acm custom-trust-store create`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){a({command:`cf acm custom-trust-store create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/acm/custom_trust_store`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``)},bodyKind:`json`,body:e.body===void 0?i({certificate:o(e.certificate,`certificate`,`text`)}):r(e.body)});return}let s=e.body===void 0?void 0:r(e.body),d=await t(e),p=await n({zone:e.zone},d,{quiet:e.quiet});if(e.zoneId=p,e.body!==void 0){let e=s,t=await l(`Creating`,async()=>d.send(f,{body:e,zone_id:p}));c(t,{successLabel:`Created`});return}e.certificate===void 0&&(e.certificate=await u(`certificate`,`The root CA certificate in PEM format. Only root CA certificates are accepted; intermediate and leaf certificates are not supported.`));let m=i({certificate:o(e.certificate,`certificate`,`text`)}),h=await l(`Creating`,async()=>d.send(f,{body:m,zone_id:p}));c(h,{successLabel:`Created`})})};var h={method:`DELETE`,path:t=>e`/zones/${t.zone_id}/acm/custom_trust_store/${t.custom_origin_trust_store_id}`};function g(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"./api-Dnt6lRJG.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{i as t,n}from"./auth-
|
|
2
|
+
import"./api-Dnt6lRJG.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{i as t,n}from"./auth-NIRm11Ab.mjs";import{t as r}from"./dry-run-mrA7FFLR.mjs";import{a as i,i as a,t as o}from"./context-CroqTqbk.mjs";import{t as s}from"./local-B3zt9PXR.mjs";import{t as c}from"./output-PRKYaJuo.mjs";import{t as l}from"./progress-DQfZZwit.mjs";import{t as u}from"./run-DhU17ztU.mjs";import{a as d,n as f}from"./prompt-e6K5lhdE.mjs";import"./telemetry-CruYXv5e.mjs";import{o as p,r as m,t as h}from"./body-parser-HN91kAf0.mjs";import{n as g,t as ee}from"./input-validation-D7z60HJH.mjs";import{n as te,t as _}from"./raw-fetch-DXSBORQI.mjs";var v={method:`DELETE`,path:t=>e`/accounts/${t.account_id}/addressing/address_maps/${t.address_map_id}/accounts/${t.member_account_id}`};function ne(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 re={command:`delete <member-account-id>`,describe:`Remove an account membership from an Address Map`,builder:ne,handler:async e=>u({command:`addressing address-maps accounts delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{if(e.dryRun){let t=await i();r({command:`cf addressing address-maps accounts delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/addressing/address_maps/${e[`address-map-id`]==null?`<address-map-id>`:encodeURIComponent(String(e[`address-map-id`]))}/accounts/${e[`member-account-id`]==null?`<member-account-id>`:encodeURIComponent(String(e[`member-account-id`]))}`,pathParams:{"address-map-id":String(e[`address-map-id`]??``),"member-account-id":String(e[`member-account-id`]??``)},bodyKind:`none`});return}let t=await n(e),a=e.local?s:await o();if(e.accountId=a,!await f({force:!!e.force}))return;let u=await l(`Deleting`,async()=>t.send(v,{account_id:a,address_map_id:e[`address-map-id`],member_account_id:e[`member-account-id`]}));c(u,{successLabel:`Deleted`})})};var ie={method:`PUT`,path:t=>e`/accounts/${t.account_id}/addressing/address_maps/${t.address_map_id}/accounts/${t.member_account_id}`};function ae(e){return e.usage(`$0 addressing address-maps accounts update <member-account-id>
|
|
5
5
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import"./api-Dnt6lRJG.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{n as t}from"./auth-
|
|
2
|
+
import"./api-Dnt6lRJG.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{n as t}from"./auth-NIRm11Ab.mjs";import{o as n,r,t as i}from"./body-parser-HN91kAf0.mjs";import{a,t as o}from"./context-CroqTqbk.mjs";import{t as s}from"./dry-run-mrA7FFLR.mjs";import{n as c}from"./input-validation-D7z60HJH.mjs";import{t as l}from"./local-B3zt9PXR.mjs";import{t as u}from"./run-DhU17ztU.mjs";import{t as d}from"./output-PRKYaJuo.mjs";import{t as f}from"./progress-DQfZZwit.mjs";import{a as p,n as m}from"./prompt-e6K5lhdE.mjs";import"./telemetry-CruYXv5e.mjs";var h={method:`POST`,path:t=>e`/accounts/${t.account_id}/agent-memory/namespaces`,body:`json`};function g(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 _={command:`create-namespace`,describe:`Create a namespace`,builder:g,handler:async e=>u({command:`agent-memory create-namespace`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await a();s({command:`cf agent-memory create-namespace`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/agent-memory/namespaces`,pathParams:{},bodyKind:`json`,body:e.body===void 0?i({name:c(e.name,`name`,`text`)}):r(e.body)});return}let n=e.body===void 0?void 0:r(e.body),u=await t(e),m=e.local?l:await o();if(e.accountId=m,e.body!==void 0){let e=n,t=await f(`Creating`,async()=>u.send(h,{body:e,account_id:m}));d(t,{successLabel:`Created`});return}e.name===void 0&&(e.name=await p(`name`,`Namespace name.`));let g=i({name:c(e.name,`name`,`text`)}),_=await f(`Creating`,async()=>u.send(h,{body:g,account_id:m}));d(_,{successLabel:`Created`})})};var v={method:`DELETE`,path:t=>e`/accounts/${t.account_id}/agent-memory/namespaces/${t.namespace_name}/profiles/${t.profile_name}/memories/${t.memory_id}`};function y(e){return e.usage(`$0 agent-memory delete-memory <memory-id>
|
|
5
5
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import"./api-Dnt6lRJG.mjs";import{a as e,i as t,n}from"./auth-
|
|
2
|
+
import"./api-Dnt6lRJG.mjs";import{a as e,i as t,n}from"./auth-NIRm11Ab.mjs";import{t as r}from"./path-DRw6Y-nd.mjs";import{t as i}from"./dry-run-mrA7FFLR.mjs";import{n as a,t as o}from"./local-B3zt9PXR.mjs";import{a as s,t as c}from"./context-CroqTqbk.mjs";import{t as l}from"./output-PRKYaJuo.mjs";import{t as u}from"./progress-DQfZZwit.mjs";import"./telemetry-CruYXv5e.mjs";import{n as d,t as f}from"./run-DhU17ztU.mjs";import{n as p,t as m}from"./input-validation-D7z60HJH.mjs";import{r as h,t as g}from"./body-parser-HN91kAf0.mjs";import{a as _,i as ee,n as te}from"./prompt-e6K5lhdE.mjs";import{a as ne,i as re,n as v,r as ie,t as y}from"./schema-cache-BFMBra5w.mjs";import{n as b}from"./raw-fetch-DXSBORQI.mjs";import{c as x,f as ae,i as oe,l as S,n as se,p as ce,r as C,s as w,t as T,u as E}from"./schema-flags-YgeJ6Bey.mjs";import{r as D}from"./theme-BGHWSKCw.mjs";var O={method:`GET`,path:e=>r`/accounts/${e.account_id}/ai/authors/search`,errors:{400:`BadRequestError`}};function k(e){return e.usage(`$0 ai authors list
|
|
3
3
|
|
|
4
4
|
Searches Workers AI models by author or organization name.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const A={command:`list`,describe:`Author Search`,builder:k,handler:async e=>f({command:`ai authors list`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let e=await s();i({command:`cf ai authors list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}/ai/authors/search`,pathParams:{},bodyKind:`none`});return}let t=await n(e),r=e.local?o:await c();e.accountId=r;let a=await u(`Loading`,async()=>t.send(O,{account_id:r}));l(a,{successLabel:`Loaded`})})},j={command:`authors`,describe:`Operations for authors`,builder:e=>e.command(A).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function M(e){return e.usage(`$0 ai finetunes assets create <finetune-id>
|
|
5
5
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import"./api-Dnt6lRJG.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{n as t}from"./auth-
|
|
2
|
+
import"./api-Dnt6lRJG.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{n as t}from"./auth-NIRm11Ab.mjs";import{i as n}from"./context-CroqTqbk.mjs";import{r}from"./body-parser-HN91kAf0.mjs";import{t as i}from"./dry-run-mrA7FFLR.mjs";import{t as a}from"./output-PRKYaJuo.mjs";import{t as o}from"./run-DhU17ztU.mjs";import{t as s}from"./progress-DQfZZwit.mjs";import"./telemetry-CruYXv5e.mjs";var c={method:`POST`,path:t=>e`/zones/${t.zone_id}/ai-audit/robots/bulk`,body:`json`,errors:{400:`BadRequestError`,401:`UnauthorizedError`,403:`ForbiddenError`,404:`NotFoundError`,408:`RequestTimeoutError`,500:`InternalServerError`,503:`ServiceUnavailableError`}};function l(e){return e.usage(`$0 ai-audit robots bulk-get
|
|
3
3
|
|
|
4
4
|
Fetches and parses robots.txt files for multiple domains within a zone in a single request. Each domain must belong to the specified zone. Results are keyed by hostname.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Array of domain hostnames to fetch robots.txt for. Each domain must end with the zone name. Maximum 25 domains per request.`})}const u={command:`bulk-get`,describe:`Bulk get robots.txt rules`,builder:l,handler:async e=>o({command:`ai-audit robots bulk-get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){i({command:`cf ai-audit robots bulk-get`,method:`POST`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/ai-audit/robots/bulk`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``)},bodyKind:`json`,body:e.body===void 0?void 0:r(e.body,[],25)});return}if(e.body===void 0)throw Error(`--body is required for this command. Pass --body '<json>' or --body @path/to/file.json.`);let o=e.body===void 0?void 0:r(e.body,[],25),l=await t(e),u=await n({zone:e.zone},l,{quiet:e.quiet});if(e.zoneId=u,e.body!==void 0){let e=o,t=await s(`Loading`,async()=>l.send(c,{body:e,zone_id:u}));a(t,{successLabel:`Loaded`})}})};var d={method:`GET`,path:t=>e`/zones/${t.zone_id}/ai-audit/robots`,query:[`subdomain`],errors:{400:`BadRequestError`,401:`UnauthorizedError`,403:`ForbiddenError`,404:`NotFoundError`,500:`InternalServerError`,503:`ServiceUnavailableError`}};function f(e){return e.usage(`$0 ai-audit robots get
|
|
5
5
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import"./api-Dnt6lRJG.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{i as t,n}from"./auth-
|
|
2
|
+
import"./api-Dnt6lRJG.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{i as t,n}from"./auth-NIRm11Ab.mjs";import{c as r,i,o as a,r as o,t as s}from"./body-parser-HN91kAf0.mjs";import{a as c,t as l}from"./context-CroqTqbk.mjs";import{t as u}from"./dry-run-mrA7FFLR.mjs";import{n as d}from"./input-validation-D7z60HJH.mjs";import{t as f}from"./local-B3zt9PXR.mjs";import{t as p}from"./run-DhU17ztU.mjs";import{t as m}from"./output-PRKYaJuo.mjs";import{t as h}from"./progress-DQfZZwit.mjs";import{a as g,n as _}from"./prompt-e6K5lhdE.mjs";import"./telemetry-CruYXv5e.mjs";var v={method:`POST`,path:t=>e`/accounts/${t.account_id}/ai-gateway/gateways/${t.gateway_id}/custom-domains`,body:`json`,errors:{400:`BadRequestError`}};function y(e){return e.usage(`$0 ai-gateway custom-domains create <gateway-id>
|
|
3
3
|
|
|
4
4
|
Provisions a Cloudflare-for-SaaS custom hostname and returns the CNAME target to point DNS at.`).positional(`gateway-id`,{type:`string`,description:`Unique identifier of the AI Gateway within the account.`,demandOption:!0}).option(`domain`,{type:`string`,description:"Custom hostname that you own, such as `ai.example.com`."}).option(`min-tls`,{type:`string`,description:`The minTLS field`,choices:[`1.0`,`1.1`,`1.2`,`1.3`]}).coerce(`min-tls`,e=>d(e,`min-tls`,`text`)).option(`zone-id`,{type:`string`,description:`ID of the Cloudflare zone that contains the custom hostname.`}).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 b={command:`create <gateway-id>`,describe:`Create a custom domain for a gateway`,builder:y,handler:async e=>p({command:`ai-gateway custom-domains create`,classification:{safeFlags:[`min-tls`,`dry-run`]}},e,async()=>{if(e.dryRun){let t=await c();u({command:`cf ai-gateway custom-domains create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/ai-gateway/gateways/${e[`gateway-id`]==null?`<gateway-id>`:encodeURIComponent(String(e[`gateway-id`]))}/custom-domains`,pathParams:{"gateway-id":String(e[`gateway-id`]??``)},bodyKind:`json`,body:e.body===void 0?s({domain:d(e.domain,`domain`,`text`),minTLS:e[`min-tls`],zone_id:d(e[`zone-id`],`zone-id`,`text`)}):o(e.body)});return}let t=e.body===void 0?void 0:o(e.body),r=await n(e),i=e.local?f:await l();if(e.accountId=i,e.body!==void 0){let n=t,a=await h(`Creating`,async()=>r.send(v,{body:n,account_id:i,gateway_id:e[`gateway-id`]}));m(a,{successLabel:`Created`});return}e.domain===void 0&&(e.domain=await g(`domain`,"Custom hostname that you own, such as `ai.example.com`.")),e[`zone-id`]===void 0&&(e[`zone-id`]=await g(`zone-id`,`ID of the Cloudflare zone that contains the custom hostname.`));let a=s({domain:d(e.domain,`domain`,`text`),minTLS:e[`min-tls`],zone_id:d(e[`zone-id`],`zone-id`,`text`)}),p=await h(`Creating`,async()=>r.send(v,{body:a,account_id:i,gateway_id:e[`gateway-id`]}));m(p,{successLabel:`Created`})})};var x={method:`DELETE`,path:t=>e`/accounts/${t.account_id}/ai-gateway/gateways/${t.gateway_id}/custom-domains/${t.hostname}`,errors:{404:`NotFoundError`}};function S(e){return e.usage(`$0 ai-gateway custom-domains delete <hostname>
|
|
5
5
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import{i as e,n as t}from"./auth-
|
|
2
|
+
import{i as e,n as t}from"./auth-NIRm11Ab.mjs";import{t as n}from"./path-DRw6Y-nd.mjs";import{c as r,i,n as a,o,r as s,t as c}from"./body-parser-HN91kAf0.mjs";import{t as l}from"./dry-run-mrA7FFLR.mjs";import{a as u,t as d}from"./context-CroqTqbk.mjs";import{n as f,t as p}from"./input-validation-D7z60HJH.mjs";import{t as m}from"./local-B3zt9PXR.mjs";import{t as h}from"./output-PRKYaJuo.mjs";import{t as g}from"./run-DhU17ztU.mjs";import{t as _}from"./progress-DQfZZwit.mjs";import"./telemetry-CruYXv5e.mjs";import"./api-Dnt6lRJG.mjs";import{a as v,i as y,n as b}from"./prompt-e6K5lhdE.mjs";import{n as ee,t as te}from"./raw-fetch-DXSBORQI.mjs";function ne(e){return e.usage(`$0 ai-search chat-completions <instance-id>
|
|
3
3
|
|
|
4
4
|
Performs a chat completion request against an AI Search instance, using indexed content as context for generating responses.`).positional(`instance-id`,{type:`string`,description:`AI Search instance ID.`,demandOption:!0}).option(`namespace`,{type:`string`,description:`Namespace to use for this operation.`,default:`default`}).option(`ai-search-options-cache-cache-threshold`,{type:`string`,description:`The ai_search_options.cache.cache_threshold field`,choices:[`super_strict_match`,`close_enough`,`flexible_friend`,`anything_goes`]}).coerce(`ai-search-options-cache-cache-threshold`,e=>f(e,`ai-search-options-cache-cache-threshold`,`text`)).option(`ai-search-options-cache-enabled`,{type:`boolean`,description:`The ai_search_options.cache.enabled field`}).option(`ai-search-options-custom-metadata`,{type:`string`,description:`Metadata added to AI Gateway logs for requests this operation triggers. Accepts up to 2 string, number, or boolean entries. Reserved keys: 'ai-search', 'task', 'origin', and any key beginning with 'cf.'. Provide as a JSON object or @path/to/file.json. Shape: {"<key>": (string | number | boolean)}.`}).option(`ai-search-options-query-rewrite-enabled`,{type:`boolean`,description:`The ai_search_options.query_rewrite.enabled field`}).option(`ai-search-options-query-rewrite-model`,{type:`string`,description:`A Workers AI model ID or an AI Gateway model ID compatible with the OpenAI Chat Completions API. An empty string uses the configured or default model.`}).option(`ai-search-options-query-rewrite-rewrite-prompt`,{type:`string`,description:`The ai_search_options.query_rewrite.rewrite_prompt field`}).option(`ai-search-options-reranking-enabled`,{type:`boolean`,description:`The ai_search_options.reranking.enabled field`}).option(`ai-search-options-reranking-match-threshold`,{type:`number`,description:`Minimum reranker relevance score a chunk must reach to be returned. When omitted, falls back to the instance-level score_threshold, then to 0.4.`}).option(`ai-search-options-reranking-model`,{type:`string`,description:`The ai_search_options.reranking.model field`}).option(`ai-search-options-retrieval-boost-by`,{type:`string`,description:`Metadata fields to boost search results by. Overrides the instance-level boost_by config. Direction defaults to 'asc' for numeric/datetime fields, 'exists' for text/boolean fields. Fields must match 'timestamp' or a defined custom_metadata field. Provide as a JSON array of objects or @path/to/file.json. Shape: [{"field": string, "direction"?: "asc" | "desc" | "exists" | ...more}]. ? marks optional keys.`}).option(`ai-search-options-retrieval-context-expansion`,{type:`number`,description:`The ai_search_options.retrieval.context_expansion field`}).option(`ai-search-options-retrieval-filters`,{type:`string`,description:`The ai_search_options.retrieval.filters field. Provide as a JSON object or @path/to/file.json. Shape: {"<key>": unknown}.`}).option(`ai-search-options-retrieval-fusion-method`,{type:`string`,description:`The ai_search_options.retrieval.fusion_method field`,choices:[`max`,`rrf`]}).coerce(`ai-search-options-retrieval-fusion-method`,e=>f(e,`ai-search-options-retrieval-fusion-method`,`text`)).option(`ai-search-options-retrieval-keyword-match-mode`,{type:`string`,description:`Controls which documents become candidates for BM25 scoring. 'and' restricts candidates to documents containing all query terms; 'or' includes any document containing at least one term and ranks results according to BM25 relevance. When omitted, falls back to the instance-level retrieval_options.keyword_match_mode, then to 'and'.`,choices:[`and`,`or`]}).coerce(`ai-search-options-retrieval-keyword-match-mode`,e=>f(e,`ai-search-options-retrieval-keyword-match-mode`,`text`)).option(`ai-search-options-retrieval-match-threshold`,{type:`number`,description:`Minimum similarity score a chunk must reach to be returned. When omitted, falls back to the instance-level score_threshold, then to 0.4.`}).option(`ai-search-options-retrieval-max-num-results`,{type:`number`,description:`Maximum number of results to return. When omitted, falls back to the instance-level max_num_results, then to 10.`}).option(`ai-search-options-retrieval-retrieval-type`,{type:`string`,description:`The ai_search_options.retrieval.retrieval_type field`,choices:[`vector`,`keyword`,`hybrid`]}).coerce(`ai-search-options-retrieval-retrieval-type`,e=>f(e,`ai-search-options-retrieval-retrieval-type`,`text`)).option(`ai-search-options-retrieval-return-on-failure`,{type:`boolean`,description:`The ai_search_options.retrieval.return_on_failure field`}).option(`messages`,{type:`string`,description:`The messages field. Provide as a JSON array of objects or @path/to/file.json. Shape: [{"content": (string | [{...}] | null), "role": "system" | "developer" | "user" | ...more, "<key>": unknown}].`}).option(`model`,{type:`string`,description:`A Workers AI model ID or an AI Gateway model ID compatible with the OpenAI Chat Completions API. An empty string uses the configured or default model.`}).option(`stream`,{type:`boolean`,description:`The stream 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 re={command:`chat-completions <instance-id>`,describe:`Chat Completions`,builder:ne,handler:async n=>g({command:`ai-search chat-completions`,classification:{safeFlags:[`ai-search-options-cache-cache-threshold`,`ai-search-options-cache-enabled`,`ai-search-options-query-rewrite-enabled`,`ai-search-options-reranking-enabled`,`ai-search-options-retrieval-fusion-method`,`ai-search-options-retrieval-keyword-match-mode`,`ai-search-options-retrieval-retrieval-type`,`ai-search-options-retrieval-return-on-failure`,`stream`,`dry-run`]}},n,async()=>{if(n.dryRun){let e=await u();l({command:`cf ai-search chat-completions`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}/ai-search/namespaces/${n.namespace==null?`<namespace>`:encodeURIComponent(String(n.namespace))}/instances/${n[`instance-id`]==null?`<instance-id>`:encodeURIComponent(String(n[`instance-id`]))}/chat/completions`,pathParams:{namespace:String(n.namespace??``),"instance-id":String(n[`instance-id`]??``)},bodyKind:`json`,body:n.body===void 0?c({ai_search_options:{cache:{cache_threshold:n[`ai-search-options-cache-cache-threshold`],enabled:n[`ai-search-options-cache-enabled`]},custom_metadata:i(n[`ai-search-options-custom-metadata`],`ai-search-options-custom-metadata`),query_rewrite:{enabled:n[`ai-search-options-query-rewrite-enabled`],model:f(n[`ai-search-options-query-rewrite-model`],`ai-search-options-query-rewrite-model`,`text`),rewrite_prompt:f(n[`ai-search-options-query-rewrite-rewrite-prompt`],`ai-search-options-query-rewrite-rewrite-prompt`,`text`)},reranking:{enabled:n[`ai-search-options-reranking-enabled`],match_threshold:n[`ai-search-options-reranking-match-threshold`],model:f(n[`ai-search-options-reranking-model`],`ai-search-options-reranking-model`,`text`)},retrieval:{boost_by:o(n[`ai-search-options-retrieval-boost-by`],`ai-search-options-retrieval-boost-by`),context_expansion:n[`ai-search-options-retrieval-context-expansion`],filters:i(n[`ai-search-options-retrieval-filters`],`ai-search-options-retrieval-filters`),fusion_method:n[`ai-search-options-retrieval-fusion-method`],keyword_match_mode:n[`ai-search-options-retrieval-keyword-match-mode`],match_threshold:n[`ai-search-options-retrieval-match-threshold`],max_num_results:n[`ai-search-options-retrieval-max-num-results`],retrieval_type:n[`ai-search-options-retrieval-retrieval-type`],return_on_failure:n[`ai-search-options-retrieval-return-on-failure`]}},messages:o(n.messages,`messages`),model:f(n.model,`model`,`text`),stream:n.stream},[[`ai_search_options`,`custom_metadata`],[`ai_search_options`,`retrieval`,`filters`]]):s(n.body)});return}let a=n.body===void 0?void 0:s(n.body),p=await t(n),g=n.local?m:await d();if(n.accountId=g,n.body!==void 0){let t=a,r=await _(`Creating`,async()=>e(p,`POST`,`/accounts/${g}/ai-search/namespaces/${encodeURIComponent(String(n.namespace))}/instances/${encodeURIComponent(String(n[`instance-id`]))}/chat/completions`,{body:t}));h(r,{successLabel:`Created`});return}if(n.messages===void 0)throw Error(`--messages is required (or pass --body with this field set).`);let v={};n[`ai-search-options-cache-cache-threshold`]!==void 0&&r(v,[`ai_search_options`,`cache`,`cache_threshold`],n[`ai-search-options-cache-cache-threshold`]),n[`ai-search-options-cache-enabled`]!==void 0&&r(v,[`ai_search_options`,`cache`,`enabled`],n[`ai-search-options-cache-enabled`]),n[`ai-search-options-custom-metadata`]!==void 0&&r(v,[`ai_search_options`,`custom_metadata`],i(n[`ai-search-options-custom-metadata`],`ai-search-options-custom-metadata`)),n[`ai-search-options-query-rewrite-enabled`]!==void 0&&r(v,[`ai_search_options`,`query_rewrite`,`enabled`],n[`ai-search-options-query-rewrite-enabled`]),n[`ai-search-options-query-rewrite-model`]!==void 0&&r(v,[`ai_search_options`,`query_rewrite`,`model`],f(n[`ai-search-options-query-rewrite-model`],`ai-search-options-query-rewrite-model`,`text`)),n[`ai-search-options-query-rewrite-rewrite-prompt`]!==void 0&&r(v,[`ai_search_options`,`query_rewrite`,`rewrite_prompt`],f(n[`ai-search-options-query-rewrite-rewrite-prompt`],`ai-search-options-query-rewrite-rewrite-prompt`,`text`)),n[`ai-search-options-reranking-enabled`]!==void 0&&r(v,[`ai_search_options`,`reranking`,`enabled`],n[`ai-search-options-reranking-enabled`]),n[`ai-search-options-reranking-match-threshold`]!==void 0&&r(v,[`ai_search_options`,`reranking`,`match_threshold`],n[`ai-search-options-reranking-match-threshold`]),n[`ai-search-options-reranking-model`]!==void 0&&r(v,[`ai_search_options`,`reranking`,`model`],f(n[`ai-search-options-reranking-model`],`ai-search-options-reranking-model`,`text`)),n[`ai-search-options-retrieval-boost-by`]!==void 0&&r(v,[`ai_search_options`,`retrieval`,`boost_by`],o(n[`ai-search-options-retrieval-boost-by`],`ai-search-options-retrieval-boost-by`)),n[`ai-search-options-retrieval-context-expansion`]!==void 0&&r(v,[`ai_search_options`,`retrieval`,`context_expansion`],n[`ai-search-options-retrieval-context-expansion`]),n[`ai-search-options-retrieval-filters`]!==void 0&&r(v,[`ai_search_options`,`retrieval`,`filters`],i(n[`ai-search-options-retrieval-filters`],`ai-search-options-retrieval-filters`)),n[`ai-search-options-retrieval-fusion-method`]!==void 0&&r(v,[`ai_search_options`,`retrieval`,`fusion_method`],n[`ai-search-options-retrieval-fusion-method`]),n[`ai-search-options-retrieval-keyword-match-mode`]!==void 0&&r(v,[`ai_search_options`,`retrieval`,`keyword_match_mode`],n[`ai-search-options-retrieval-keyword-match-mode`]),n[`ai-search-options-retrieval-match-threshold`]!==void 0&&r(v,[`ai_search_options`,`retrieval`,`match_threshold`],n[`ai-search-options-retrieval-match-threshold`]),n[`ai-search-options-retrieval-max-num-results`]!==void 0&&r(v,[`ai_search_options`,`retrieval`,`max_num_results`],n[`ai-search-options-retrieval-max-num-results`]),n[`ai-search-options-retrieval-retrieval-type`]!==void 0&&r(v,[`ai_search_options`,`retrieval`,`retrieval_type`],n[`ai-search-options-retrieval-retrieval-type`]),n[`ai-search-options-retrieval-return-on-failure`]!==void 0&&r(v,[`ai_search_options`,`retrieval`,`return_on_failure`],n[`ai-search-options-retrieval-return-on-failure`]),n.messages!==void 0&&r(v,[`messages`],o(n.messages,`messages`)),n.model!==void 0&&r(v,[`model`],f(n.model,`model`,`text`)),n.stream!==void 0&&r(v,[`stream`],n.stream);let y=await _(`Creating`,async()=>e(p,`POST`,`/accounts/${g}/ai-search/namespaces/${encodeURIComponent(String(n.namespace))}/instances/${encodeURIComponent(String(n[`instance-id`]))}/chat/completions`,{body:v}));h(y,{successLabel:`Created`})})};var x={method:`POST`,path:e=>n`/accounts/${e.account_id}/ai-search/namespaces/${e.namespace}/instances`,body:`json`,errors:{400:`BadRequestError`,403:`ForbiddenError`,409:`ConflictError`,503:`ServiceUnavailableError`}};function S(e){return e.usage(`$0 ai-search create <id>
|
|
5
5
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import"./api-Dnt6lRJG.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{n as t}from"./auth-
|
|
2
|
+
import"./api-Dnt6lRJG.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{n as t}from"./auth-NIRm11Ab.mjs";import{i as n}from"./context-CroqTqbk.mjs";import{t as r}from"./dry-run-mrA7FFLR.mjs";import{t as i}from"./output-PRKYaJuo.mjs";import{t as a}from"./progress-DQfZZwit.mjs";import{t as o}from"./run-DhU17ztU.mjs";import"./telemetry-CruYXv5e.mjs";import{o as s,r as c,t as l}from"./body-parser-HN91kAf0.mjs";import{n as u}from"./prompt-e6K5lhdE.mjs";var d={method:`GET`,path:t=>e`/zones/${t.zone_id}/ai-security/custom-topics`};function f(e){return e.usage(`$0 ai-security custom-topics get
|
|
3
3
|
|
|
4
4
|
Get the custom topic categories defined for the zone. While AI Security for Apps is enabled, it scores every incoming prompt against these topics and writes the scores to the \`cf.llm.prompt.custom_topic_categories\` field, keyed by topic label. Topics can be configured while the detection is disabled, but no prompt is scored until you enable it.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const p={command:`get`,describe:`Get the AI Security for Apps custom topics of a zone.`,builder:f,handler:async e=>o({command:`ai-security custom-topics get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){r({command:`cf ai-security custom-topics get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/ai-security/custom-topics`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``)},bodyKind:`none`});return}let o=await t(e),s=await n({zone:e.zone},o,{quiet:e.quiet});e.zoneId=s;let c=await a(`Loading`,async()=>o.send(d,{zone_id:s}));i(c,{successLabel:`Loaded`})})};var m={method:`PUT`,path:t=>e`/zones/${t.zone_id}/ai-security/custom-topics`,body:`json`};function h(e){return e.usage("$0 ai-security custom-topics update\n\nUpdate the custom topic list of the zone, overwriting it entirely with the topics in the request, so include every topic you want to keep. Changes can take up to a minute to propagate. Each entry has a `label`, used to reference the topic in rule expressions and analytics, and a `topic` description, which the classifier scores prompts against while AI Security for Apps is enabled. The following rules apply: - A zone can hold at most 20 topics. - `label` must be 2–20 characters, using only lowercase letters (a–z), digits (0–9), and hyphens. - `topic` must be 2–50 UTF-8 bytes. Text in any language is supported, including spaces, numbers, punctuation, and symbols. Tabs, line breaks, invalid text, and invisible formatting characters are not allowed. - Labels must be unique within the zone, and so must topic descriptions.").option(`topics`,{type:`string`,description:`Custom topic categories for AI Security for Apps content detection. Provide as a JSON array of objects or @path/to/file.json. Shape: [{"label": string, "topic": string}].`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`force`,{type:`boolean`,alias:`f`,description:`Skip confirmation (useful in scripts and CI)`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const g={command:`update`,describe:`Update the AI Security for Apps custom topics of a zone.`,builder:h,handler:async e=>o({command:`ai-security custom-topics update`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{if(e.dryRun){r({command:`cf ai-security custom-topics update`,method:`PUT`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/ai-security/custom-topics`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``)},bodyKind:`json`,body:e.body===void 0?l({topics:s(e.topics,`topics`)}):c(e.body)});return}let o=e.body===void 0?void 0:c(e.body),d=await t(e),f=await n({zone:e.zone},d,{quiet:e.quiet});if(e.zoneId=f,!await u({force:!!e.force,message:`This operation overwrites the AI Security for Apps custom topics for a zone.`}))return;if(e.body!==void 0){let e=o,t=await a(`Updating`,async()=>d.send(m,{body:e,zone_id:f}));i(t,{successLabel:`Updated`});return}let p=l({topics:s(e.topics,`topics`)}),h=await a(`Updating`,async()=>d.send(m,{body:p,zone_id:f}));i(h,{successLabel:`Updated`})})},_={command:`custom-topics`,describe:`Organization-specific topic categories used by AI Security for Apps content detection`,builder:e=>e.command(p).command(g).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var v={method:`GET`,path:t=>e`/zones/${t.zone_id}/ai-security/settings`};function y(e){return e.usage(`$0 ai-security get
|
|
5
5
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import"./api-Dnt6lRJG.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{n as t}from"./auth-
|
|
2
|
+
import"./api-Dnt6lRJG.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{n as t}from"./auth-NIRm11Ab.mjs";import{t as n}from"./dry-run-mrA7FFLR.mjs";import{a as r,t as i}from"./context-CroqTqbk.mjs";import{t as a}from"./local-B3zt9PXR.mjs";import{t as o}from"./output-PRKYaJuo.mjs";import{t as s}from"./progress-DQfZZwit.mjs";import{t as c}from"./run-DhU17ztU.mjs";import"./telemetry-CruYXv5e.mjs";import{a as l,i as u,n as d}from"./prompt-e6K5lhdE.mjs";import{o as f,r as p,t as m}from"./body-parser-HN91kAf0.mjs";import{n as h}from"./input-validation-D7z60HJH.mjs";import{n as g,t as _}from"./raw-fetch-DXSBORQI.mjs";var v={method:`GET`,path:t=>e`/accounts/${t.account_id}/alerting/v3/available_alerts`};function y(e){return e.usage(`$0 alerting available-alerts list
|
|
3
3
|
|
|
4
4
|
Gets a list of all alert types for which an account is eligible.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const b={command:`list`,describe:`Get Alert Types`,builder:y,handler:async e=>c({command:`alerting available-alerts list`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let e=await r();n({command:`cf alerting available-alerts list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}/alerting/v3/available_alerts`,pathParams:{},bodyKind:`none`});return}let c=await t(e),l=e.local?a:await i();e.accountId=l;let u=await s(`Loading`,async()=>c.send(v,{account_id:l}));o(u,{successLabel:`Loaded`})})},ee={command:`available-alerts`,describe:`Operations for available-alerts`,builder:e=>e.command(b).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var te={method:`GET`,path:t=>e`/accounts/${t.account_id}/alerting/v3/destinations/eligible`};function ne(e){return e.usage(`$0 alerting destinations eligible get
|
|
5
5
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import"./api-Dnt6lRJG.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{n as t}from"./auth-
|
|
2
|
+
import"./api-Dnt6lRJG.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{n as t}from"./auth-NIRm11Ab.mjs";import{t as n}from"./dry-run-mrA7FFLR.mjs";import{a as r,i,t as a}from"./context-CroqTqbk.mjs";import{t as o}from"./output-PRKYaJuo.mjs";import{t as s}from"./progress-DQfZZwit.mjs";import"./telemetry-CruYXv5e.mjs";import{t as c}from"./run-DhU17ztU.mjs";import{o as l,r as u,t as d}from"./body-parser-HN91kAf0.mjs";import{n as f}from"./input-validation-D7z60HJH.mjs";import{t as p}from"./local-B3zt9PXR.mjs";import{a as m}from"./prompt-e6K5lhdE.mjs";var h={method:`GET`,path:t=>e`/zones/${t.zone_id}/analytics/latency/colos`};function g(e){return e.usage(`$0 analytics latency colos get
|
|
3
3
|
|
|
4
4
|
Retrieves Argo Smart Routing analytics broken down by geographic points of presence (PoPs). Shows latency improvements and routing efficiency per location.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const _={command:`get`,describe:`Argo Analytics for a zone at different PoPs`,builder:g,handler:async e=>c({command:`analytics latency colos get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){n({command:`cf analytics latency colos get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/analytics/latency/colos`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``)},bodyKind:`none`});return}let r=await t(e),a=await i({zone:e.zone},r,{quiet:e.quiet});e.zoneId=a;let c=await s(`Loading`,async()=>r.send(h,{zone_id:a}));o(c,{successLabel:`Loaded`})})},v={command:`colos`,describe:`Operations for latency.colos`,builder:e=>e.command(_).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var y={method:`GET`,path:t=>e`/zones/${t.zone_id}/analytics/latency`,query:[`bins`]};function b(e){return e.usage(`$0 analytics latency get
|
|
5
5
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import{i as e,n as t}from"./auth-
|
|
2
|
+
import{i as e,n as t}from"./auth-NIRm11Ab.mjs";import{t as n}from"./dry-run-mrA7FFLR.mjs";import{a as r,t as i}from"./context-CroqTqbk.mjs";import{n as a,t as o}from"./input-validation-D7z60HJH.mjs";import{t as s}from"./local-B3zt9PXR.mjs";import{t as c}from"./output-PRKYaJuo.mjs";import{t as l}from"./run-DhU17ztU.mjs";import{t as u}from"./progress-DQfZZwit.mjs";import"./telemetry-CruYXv5e.mjs";function d(e){return e.usage(`$0 analytics-engine sql query
|
|
3
3
|
|
|
4
4
|
Executes a SQL query against Workers Analytics Engine data. Pass the SQL query in the request body as plain text. The response uses newline-delimited JSON (NDJSON) by default, or a single JSON object when the query includes a FORMAT JSON clause. Prefer this method for longer queries that may exceed URL length limits.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Plain-text request body (without JSON quotes)`}).option(`file`,{type:`string`,description:`Path to a file to upload as the request body`})}const f={command:`query`,describe:`Execute an Analytics Engine SQL query via request body`,builder:d,handler:async d=>l({command:`analytics-engine sql query`,classification:{safeFlags:[`dry-run`]}},d,async()=>{if(d.dryRun){let e=await r();n({command:`cf analytics-engine sql query`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}/analytics_engine/sql`,pathParams:{},bodyKind:`octet-stream`,body:d.file===void 0?d.body:{file:d.file}});return}if(d.body===void 0&&d.file===void 0)throw Error(`--body or --file is required for this command. Pass --body '<value>' or --file path/to/file.`);let l=d.file===void 0?a(d.body,`body`,`binary`):void 0,f=await t(d),p=d.local?s:await i();if(d.accountId=p,d.file!==void 0){let t=o(d.file),n=await u(`Loading`,async()=>e(f,`POST`,`/accounts/${p}/analytics_engine/sql`,{body:t,headers:{"Content-Type":`text/plain`}}));c(n,{successLabel:`Loaded`})}else if(d.body!==void 0){let t=l,n=await u(`Loading`,async()=>e(f,`POST`,`/accounts/${p}/analytics_engine/sql`,{body:t,headers:{"Content-Type":`text/plain`}}));c(n,{successLabel:`Loaded`})}})},p={command:`sql`,describe:`Operations for sql`,builder:e=>e.command(f).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},m={command:`analytics-engine`,describe:`analytics-engine`,builder:e=>e.command(p).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};export{m as default};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import"./api-Dnt6lRJG.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{i as t,n}from"./auth-
|
|
2
|
+
import"./api-Dnt6lRJG.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{i as t,n}from"./auth-NIRm11Ab.mjs";import{o as r,r as i,t as a}from"./body-parser-HN91kAf0.mjs";import{a as o,i as s,t as c}from"./context-CroqTqbk.mjs";import{t as l}from"./dry-run-mrA7FFLR.mjs";import{n as u}from"./input-validation-D7z60HJH.mjs";import{t as d}from"./output-PRKYaJuo.mjs";import{t as f}from"./run-DhU17ztU.mjs";import{t as p}from"./progress-DQfZZwit.mjs";import{a as m,i as h,n as g}from"./prompt-e6K5lhdE.mjs";import"./telemetry-CruYXv5e.mjs";import{t as _}from"./local-B3zt9PXR.mjs";var v={method:`POST`,path:t=>e`/zones/${t.zone_id}/schema_validation/schemas`,body:`json`,constants:{kind:`openapi_v3`}};function ee(e){return e.usage(`$0 api-security schema-validation schemas create
|
|
3
3
|
|
|
4
4
|
Uploads an OpenAPI schema that defines expected request formats for API operations.`).option(`kind`,{type:`string`,description:`The kind of the schema`,choices:[`openapi_v3`]}).coerce(`kind`,e=>u(e,`kind`,`text`)).option(`name`,{type:`string`,description:`A human-readable name for the schema`}).option(`source`,{type:`string`,description:`The raw schema, e.g., the OpenAPI schema, either as JSON or YAML`}).option(`validation-enabled`,{type:`boolean`,description:`An indicator if this schema 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 y={command:`create`,describe:`Upload a schema`,builder:ee,handler:async e=>f({command:`api-security schema-validation schemas create`,classification:{safeFlags:[`kind`,`validation-enabled`,`dry-run`]}},e,async()=>{if(e.dryRun){l({command:`cf api-security schema-validation schemas create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/schema_validation/schemas`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``)},bodyKind:`json`,body:e.body===void 0?a({kind:e.kind,name:u(e.name,`name`,`text`),source:u(e.source,`source`,`text`),validation_enabled:e[`validation-enabled`]}):i(e.body)});return}let t=e.body===void 0?void 0:i(e.body),r=await n(e),o=await s({zone:e.zone},r,{quiet:e.quiet});if(e.zoneId=o,e.body!==void 0){let e=t,n=await p(`Creating`,async()=>r.send(v,{body:e,zone_id:o}));d(n,{successLabel:`Created`});return}if(e.kind===void 0&&(e.kind=await h(`kind`,`The kind of the schema`,[`openapi_v3`])),e.name===void 0&&(e.name=await m(`name`,`A human-readable name for the schema`)),e.source===void 0&&(e.source=await m(`source`,`The raw schema, e.g., the OpenAPI schema, either as JSON or YAML`)),e[`validation-enabled`]===void 0)throw Error(`--validation-enabled is required (or pass --body with this field set).`);let c=a({kind:e.kind,name:u(e.name,`name`,`text`),source:u(e.source,`source`,`text`),validation_enabled:e[`validation-enabled`]}),f=await p(`Creating`,async()=>r.send(v,{body:c,zone_id:o}));d(f,{successLabel:`Created`})})};var te={method:`DELETE`,path:t=>e`/zones/${t.zone_id}/schema_validation/schemas/${t.schema_id}`};function ne(e){return e.usage(`$0 api-security schema-validation schemas delete <schema-id>
|
|
5
5
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import"./api-Dnt6lRJG.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{n as t}from"./auth-
|
|
2
|
+
import"./api-Dnt6lRJG.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{n as t}from"./auth-NIRm11Ab.mjs";import{t as n}from"./dry-run-mrA7FFLR.mjs";import{a as r,i,t as a}from"./context-CroqTqbk.mjs";import{t as o}from"./local-B3zt9PXR.mjs";import{t as s}from"./output-PRKYaJuo.mjs";import{t as c}from"./progress-DQfZZwit.mjs";import{t as l}from"./run-DhU17ztU.mjs";import"./telemetry-CruYXv5e.mjs";import{r as u,t as d}from"./body-parser-HN91kAf0.mjs";import{n as f}from"./input-validation-D7z60HJH.mjs";import{i as p}from"./prompt-e6K5lhdE.mjs";var m={method:`GET`,path:t=>e`/accounts/${t.account_id}/argo/count_zones_enabled`};function h(e){return e.usage(`$0 argo smart-routing count-zones-enabled-for-account
|
|
3
3
|
|
|
4
4
|
Returns the number of zones that have Argo Smart Routing enabled for the specified account.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const g={command:`count-zones-enabled-for-account`,describe:`Get count of zones with Argo Smart Routing enabled for account`,builder:h,handler:async e=>l({command:`argo smart-routing count-zones-enabled-for-account`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let e=await r();n({command:`cf argo smart-routing count-zones-enabled-for-account`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}/argo/count_zones_enabled`,pathParams:{},bodyKind:`none`});return}let i=await t(e),l=e.local?o:await a();e.accountId=l;let u=await c(`Loading`,async()=>i.send(m,{account_id:l}));s(u,{successLabel:`Loaded`})})};var _={method:`GET`,path:()=>`/user/argo/count_zones_enabled`};function v(e){return e.usage(`$0 argo smart-routing count-zones-enabled-for-user
|
|
5
5
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import"./api-Dnt6lRJG.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{n as t}from"./auth-
|
|
2
|
+
import"./api-Dnt6lRJG.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{n as t}from"./auth-NIRm11Ab.mjs";import{r as n,t as r}from"./body-parser-HN91kAf0.mjs";import{a as i,t as a}from"./context-CroqTqbk.mjs";import{t as o}from"./dry-run-mrA7FFLR.mjs";import{n as s}from"./input-validation-D7z60HJH.mjs";import{t as c}from"./local-B3zt9PXR.mjs";import{t as l}from"./run-DhU17ztU.mjs";import{t as u}from"./output-PRKYaJuo.mjs";import{t as d}from"./progress-DQfZZwit.mjs";import{a as f,n as p}from"./prompt-e6K5lhdE.mjs";import"./telemetry-CruYXv5e.mjs";import{n as m,t as h}from"./raw-fetch-DXSBORQI.mjs";var g={method:`POST`,path:t=>e`/accounts/${t.account_id}/artifacts/namespaces`,body:`json`,errors:{400:`BadRequestError`,401:`UnauthorizedError`,403:`ForbiddenError`,409:`ConflictError`,500:`InternalServerError`}};function _(e){return e.usage(`$0 artifacts namespaces create
|
|
3
3
|
|
|
4
4
|
Creates an empty Artifacts namespace for an account.`).option(`jurisdiction`,{type:`string`,description:`The jurisdiction field`,choices:[`unrestricted`,`us`,`eu`,`fedramp`],default:`unrestricted`}).coerce(`jurisdiction`,e=>s(e,`jurisdiction`,`text`)).option(`namespace`,{type:`string`,description:`The namespace 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 v={command:`create`,describe:`Create a namespace`,builder:_,handler:async e=>l({command:`artifacts namespaces create`,classification:{safeFlags:[`jurisdiction`,`dry-run`]}},e,async()=>{if(e.dryRun){let t=await i();o({command:`cf artifacts namespaces create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/artifacts/namespaces`,pathParams:{},bodyKind:`json`,body:e.body===void 0?r({jurisdiction:e.jurisdiction,namespace:s(e.namespace,`namespace`,`text`)}):n(e.body)});return}let l=e.body===void 0?void 0:n(e.body),p=await t(e),m=e.local?c:await a();if(e.accountId=m,e.body!==void 0){let e=l,t=await d(`Creating`,async()=>p.send(g,{body:e,account_id:m}));u(t,{successLabel:`Created`});return}e.namespace===void 0&&(e.namespace=await f(`namespace`,`The namespace field`));let h=r({jurisdiction:e.jurisdiction,namespace:s(e.namespace,`namespace`,`text`)}),_=await d(`Creating`,async()=>p.send(g,{body:h,account_id:m}));u(_,{successLabel:`Created`})})};var y={method:`DELETE`,path:t=>e`/accounts/${t.account_id}/artifacts/namespaces/${t.namespace}`,response:!1,errors:{400:`BadRequestError`,401:`UnauthorizedError`,403:`ForbiddenError`,404:`NotFoundError`,409:`ConflictError`,500:`InternalServerError`}};function b(e){return e.usage(`$0 artifacts namespaces delete <namespace>
|
|
5
5
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import"./api-Dnt6lRJG.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{n as t}from"./auth-
|
|
2
|
+
import"./api-Dnt6lRJG.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{n as t}from"./auth-NIRm11Ab.mjs";import{t as n}from"./dry-run-mrA7FFLR.mjs";import{a as r,t as i}from"./context-CroqTqbk.mjs";import{t as a}from"./local-B3zt9PXR.mjs";import{t as o}from"./output-PRKYaJuo.mjs";import{t as s}from"./progress-DQfZZwit.mjs";import{t as c}from"./run-DhU17ztU.mjs";import"./telemetry-CruYXv5e.mjs";var l={method:`GET`,path:t=>e`/accounts/${t.account_id}/audit_logs`,query:[`id`,`export`,`action.type`,`actor.ip`,`actor.email`,`since`,`before`,`zone.name`,`direction`,`per_page`,`page`,`hide_user_logs`]};function u(e){return e.usage(`$0 audit-logs list
|
|
3
3
|
|
|
4
4
|
Gets a list of audit logs for an account. Can be filtered by who made the change, on which zone, and the timeframe of the change.`).option(`id`,{type:`string`,description:`Finds a specific log by its ID.`}).option(`export`,{type:`boolean`,description:`Indicates that this request is an export of logs in CSV format.`}).option(`action-type`,{type:`string`,description:`Filters by the action type.`}).option(`actor-ip`,{type:`string`,description:`Filters by the IP address of the request that made the change by specific IP address or valid CIDR Range.`}).option(`actor-email`,{type:`string`,description:`Filters by the email address of the actor that made the change.`}).option(`since`,{type:`string`,description:`Since`}).option(`before`,{type:`string`,description:`Before`}).option(`zone-name`,{type:`string`,description:`Filters by the name of the zone associated to the change.`}).option(`direction`,{type:`string`,description:`Changes the direction of the chronological sorting.`,choices:[`desc`,`asc`]}).option(`per-page`,{type:`number`,description:`Sets the number of results to return per page.`}).option(`page`,{type:`number`,description:`Defines which page of results to return.`}).option(`hide-user-logs`,{type:`boolean`,description:`Indicates whether or not to hide user level audit logs.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const d={command:`list`,describe:`Get account audit logs`,builder:u,handler:async e=>c({command:`audit-logs list`,classification:{safeFlags:[`export`,`direction`,`hide-user-logs`,`dry-run`]}},e,async()=>{let c={id:e.id,export:e.export,"action.type":e[`action-type`],"actor.ip":e[`actor-ip`],"actor.email":e[`actor-email`],since:e.since,before:e.before,"zone.name":e[`zone-name`],direction:e.direction,per_page:e[`per-page`],page:e.page,hide_user_logs:e[`hide-user-logs`]};if(e.dryRun){let e=await r();n({command:`cf audit-logs list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}/audit_logs`,pathParams:{},query:c,bodyKind:`none`});return}let u=await t(e),d=e.local?a:await i();e.accountId=d;let f=await s(`Loading`,async()=>u.send(l,{account_id:d,...c}));o(f,{successLabel:`Loaded`})})},f={command:`audit-logs`,describe:`audit-logs`,builder:e=>e.command(d).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};export{f as default};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import{r as e}from"./theme-BGHWSKCw.mjs";import"./telemetry-
|
|
2
|
+
import{r as e}from"./theme-BGHWSKCw.mjs";import"./telemetry-CruYXv5e.mjs";import{a as t,c as n,i as r,n as i,o as a,r as o,s,t as c}from"./login-BdTYP5Xw.mjs";import{d as l,f as u,r as d}from"./oauth-CQiiWvag.mjs";import"./ui-CA_2sliN.mjs";import{n as f}from"./run-DhU17ztU.mjs";import{t as p}from"./log-Brx-wjJW.mjs";import{c as m}from"./chunk-Q5KVZMHK-Bjvrcihk.mjs";import{n as h}from"./schema-cache-BFMBra5w.mjs";import{a as g,i as _,n as v,o as y,r as b,s as x,t as S}from"./whoami-DBZfITBb.mjs";const C={command:`logout`,describe:`Log out and remove stored credentials`,handler:async t=>{r(t,`logout`,"Run `cf auth delete <name>` to remove a named profile.");let n=d();n!=="default"&&p.warn(`This directory has profile "${n}" active. ${e.code(`cf auth logout`)} removes the default profile's token, not "${n}". To delete "${n}", run:`,`cf auth delete ${n}`),await l(`default`)}};function w(e){let t=d();return t==="default"?e?`cf auth login --force`:`cf auth login`:`cf auth create ${t}`}function T(t){let n=t?.statusCode;return n===401||n===403?`your login was rejected; run ${e.code(w(!0))} to log in again`:h(t)}const E={command:`scopes [product]`,describe:`Show the OAuth scopes granted to the current login, by product`,builder:e=>e.positional(`product`,{type:`string`,description:`Show the granted permissions in product areas matching this name, such as dns or developer`}).option(`all`,{type:`boolean`,description:`Show every granted permission, grouped by product`,default:!1}).option(`filter`,{type:`string`,description:`Show the granted permissions whose scope contains this term`}),handler:async t=>{if(t[`temporary-account`]||t[`event-code`]!==void 0)throw Error(`--temporary-account and --event-code are not supported by cf auth scopes.`);if(m({allowGlobalAuthKey:!1})!==void 0){p.warn(`${e.code(`CLOUDFLARE_API_TOKEN`)} is set, so its own permissions apply rather than OAuth scopes.`);return}let n=u();if(n?.oauth_token===void 0){p.info(`Not logged in. Run ${e.code(w(!1))} to log in.`);return}let{scopes:r}=n;if(!r){p.info(`This login didn't record its scopes. Run ${e.code(w(!0))} to log in again.`);return}if(!g(r)){p.info(`No product scopes granted. Run ${e.code(w(!0))} to log in with the default scopes.`);return}let i;try{i=await x(async()=>{let{createCommandClient:e}=await import(`./auth-BBUZyJJx.mjs`);return e(t)})}catch(e){p.warn(`Couldn't load Cloudflare's scope catalogue (${T(e)}), so scopes are listed without product groups.`),console.log(r.join(`
|
|
3
3
|
`));return}if(t.product===void 0&&!t.all&&t.filter===void 0){console.log(_(r,i)),p.info(`Run ${e.code(`cf auth scopes <product>`)} to see a product's permissions, or ${e.code(`cf auth scopes --all`)} for every granted product.`);return}let{product:a}=t;a!==void 0&&!v(i).some(e=>y(e,a))?p.info(`No product area matches "${a}". Run ${e.code(`cf auth scopes --filter ${a}`)} to search scope names instead.`):console.log(b(r,i,{product:t.product,filter:t.filter})||e.muted(`No granted scopes match.`))}},D={command:`auth`,describe:`Manage authentication and profiles`,builder:e=>e.command(f(c,{command:`auth login`,classification:i})).command(O(C,`auth logout`)).command(O(S,`auth whoami`,[`json`])).command(O(E,`auth scopes`,[`all`])).command(O(t,`auth create`,[`browser`,`device`])).command(O(s,`auth delete`)).command(O(o,`auth activate`)).command(O(a,`auth deactivate`)).command(O(n,`auth list`)).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function O(e,t,n=[],r){return f(e,{command:t,classification:{safeFlags:n,shortFlagAliases:r}})}export{D as default};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import{J as e,U as t}from"./dist-DwxlJ9Ms.mjs";import{t as n}from"./auth-token-
|
|
2
|
+
import{J as e,U as t}from"./dist-DwxlJ9Ms.mjs";import{t as n}from"./auth-token-Cp_u44cF.mjs";import{a as r,n as i}from"./context-CroqTqbk.mjs";import{l as a}from"./oauth-CQiiWvag.mjs";import{n as o}from"./request-headers-xtY5gOlq.mjs";import{i as s,r as c,t as l}from"./api-Dnt6lRJG.mjs";const u=6e4;function d(e){return(n,r)=>{if(!process.env.CLOUDFLARE_API_HEADERS)return e(n,r);let i={...r,duplex:`half`},a=new Request(n,i);return t(a.headers),e(a)}}function f(e){return e instanceof FormData||e instanceof Blob||e instanceof ArrayBuffer||ArrayBuffer.isView(e)||e instanceof ReadableStream}var p={method:`GET`,path:()=>`/accounts`,query:[`name`,`page`,`per_page`,`direction`]},m={method:`GET`,path:()=>`/memberships`,query:[`account.name`,`page`,`per_page`,`order`,`direction`,`name`,`status`]};function h(e){return e instanceof FormData||e instanceof Blob||e instanceof ArrayBuffer||ArrayBuffer.isView(e)||e instanceof ReadableStream||e instanceof URLSearchParams}function g(e){return Object.keys(e).some(e=>e.toLowerCase()===`content-type`)}async function _(e){let t=e.headers.get(`content-type`)??``;try{return t.includes(`application/json`)?await e.json():await e.text()}catch{return null}}function v(e,t,n){if(n!=null&&n!==``){if(Array.isArray(n))for(let r of n)v(e,t,r);else e.append(t,String(n))}}function y(e){let t=new URLSearchParams;for(let[n,r]of Object.entries(e))v(t,n,r);return t.toString()}function b(e,t,n){let r=new URL(t.endsWith(`/`)?t:`${t}/`),i=new URL(e.startsWith(`/`)?e.slice(1):e,r);if(i.origin!==r.origin)throw Error(`Refusing to send an authenticated request to ${i.origin} (expected ${r.origin})`);let a=y(n??{});return a&&(i.search=a),i.toString()}const x=/* @__PURE__ */ new WeakMap,S=/* @__PURE__ */ new WeakMap;async function C(e,t,n,r={}){let i=e.baseUrl,a=b(n,i,r.query),o={...r.headers},l;r.body!==void 0&&(h(r.body)||typeof r.body==`string`&&g(o)?l=r.body:(o[`Content-Type`]??=`application/json`,l=JSON.stringify(r.body)));let u=r.timeout===void 0&&f(l)?S.get(e):void 0,d=r.timeout??x.get(e)??6e4,p;try{p=await(u??e).fetch(a,{method:t,headers:o,body:l,signal:r.signal},{timeoutInSeconds:r.timeout===void 0?void 0:r.timeout/1e3,abortSignal:r.signal})}catch(e){throw r.signal?.aborted?Error(`Request aborted`):e===`timeout`||e instanceof Error&&e.name===`AbortError`?Error(u?`Request timed out`:`Request timed out after ${d}ms`):e instanceof Error?Error(`Request failed: ${e.message}`):e}if(!p.ok)throw new s({statusCode:p.status,body:await _(p),rawResponse:{status:p.status,statusText:p.statusText,url:p.url||a,headers:p.headers,redirected:p.redirected,type:p.type}});if(p.status===204)return null;let m=p.headers.get(`content-type`)??``;if(!m.includes(`application/json`)&&r.preserveNonJsonBytes)return Buffer.from(await p.arrayBuffer());let v=await p.text();if(v===``)return null;if(!m.includes(`application/json`))return v;let y=JSON.parse(v);if(y.success===!1){let e=y.errors?.map(e=>e.message).filter(Boolean).join(`, `)||`unknown error`;throw new s({message:`API error: ${e}`,statusCode:p.status,body:y})}return`result`in y?c(y.result,y.result_info):y}function w(e){let t={baseUrl:e.baseURL??`https://api.cloudflare.com/client/v4`,auth:async()=>({headers:{Authorization:`Bearer ${e.apiToken}`}}),headers:e.defaultHeaders,timeoutInSeconds:(e.timeout??6e4)/1e3,maxRetries:0,fetch:e.customApiHeaders===!1?e.fetch??globalThis.fetch:d(e.fetch??globalThis.fetch)},n=new l(t);return x.set(n,e.timeout??6e4),e.timeout===void 0&&S.set(n,new l({...t,timeoutInSeconds:void 0})),n}async function T(t){if(a())return;let s=await r();if(s)return s;try{let r=await n(),a=e({compliance_region:await i()}),s=t-Date.now();if(s<=0)return;let c=w({apiToken:r,baseURL:a,defaultHeaders:o()}),l={timeoutInSeconds:s/1e3,maxRetries:0},[u,d]=await Promise.allSettled([c.send(p,{per_page:50},l),c.send(m,{per_page:50},l)]);if(u.status===`rejected`)return;let f=u.value;if((f.result_info?.total_count??f.result.length)>f.result.length)return;let h=f.result;if(d.status===`fulfilled`){let e=d.value.result??[];if((d.value.result_info?.total_count??e.length)>e.length)return;let t=new Set(e.map(e=>e.account?.id).filter(e=>e!==void 0));h=h.filter(e=>t.has(e.id))}return h.length===1?h[0]?.id:void 0}catch{return}}async function E(t){if(t.dryRun&&a())throw Error(`This command's dry run cannot be used with --temporary-account. Remove --dry-run to run the command for real.`);let r=e({compliance_region:await i()});if(t.local){let{createLocalFetch:e}=await import(`./local-DRxctCh9.mjs`);return w({apiToken:`cf-local-mode-no-auth`,customApiHeaders:!1,baseURL:r,defaultHeaders:o(),fetch:e({persistTo:t.persistTo,apiBaseUrl:r})})}return w({apiToken:await n(),baseURL:r,defaultHeaders:o()})}export{T as a,f as c,C as i,d as l,E as n,m as o,y as r,p as s,w as t,u};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import{c as e}from"./chunk-Q5KVZMHK-Bjvrcihk.mjs";import{t}from"./errors-
|
|
2
|
+
import{c as e}from"./chunk-Q5KVZMHK-Bjvrcihk.mjs";import{t}from"./errors-CBngn9n1.mjs";import{c as n,l as r,p as i,s as a}from"./oauth-CQiiWvag.mjs";async function o(o){if(r())return(await i(o)).apiToken;let s=e({allowGlobalAuthKey:!1});if(s&&`apiToken`in s)return s.apiToken;let c=await a();if(c)return c;throw n()?Error(`Could not refresh your stored OAuth token. Check your connection and retry, or run 'cf auth login' to authenticate again.`):new t(`No authentication token found.
|
|
3
3
|
|
|
4
4
|
Please set one of the following:
|
|
5
5
|
1. Set the CLOUDFLARE_API_TOKEN environment variable
|