cf 1.0.0-beta.23 → 1.0.0-beta.24
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_meta/commands.json +70 -10
- package/dist/_meta/hand-written-commands.json +2 -2
- package/dist/_meta/schemas.json +23 -0
- package/dist/{abuse-reports-SaxhQy6n.mjs → abuse-reports-CTOO4FJ4.mjs} +1 -1
- package/dist/{access-BI_7K9ye.mjs → access-DFGLlXpy.mjs} +1 -1
- package/dist/{accounts-yCqYkAyG.mjs → accounts-C-wpV8Az.mjs} +1 -1
- package/dist/{acm-Cyvj0TLt.mjs → acm-thIt17mv.mjs} +1 -1
- package/dist/{addressing-CPjDXCGE.mjs → addressing-D7VI7-Oi.mjs} +1 -1
- package/dist/{agent-memory-EoP2Uwo7.mjs → agent-memory-duLTH8pl.mjs} +1 -1
- package/dist/{ai-audit-DVT8qGLn.mjs → ai-audit-CjhuS21p.mjs} +1 -1
- package/dist/{ai-DU5T7Rw7.mjs → ai-ctIjDCq0.mjs} +1 -1
- package/dist/{ai-gateway-BYtptiIM.mjs → ai-gateway-B1TIw7wl.mjs} +1 -1
- package/dist/{ai-search-CJJ5XZTd.mjs → ai-search-DUQBnOWH.mjs} +1 -1
- package/dist/{ai-security-CidIWQ2m.mjs → ai-security-bdABwEIR.mjs} +1 -1
- package/dist/{alerting-CVatzxaS.mjs → alerting-I_KErGZy.mjs} +1 -1
- package/dist/{analytics-BWJAOVxo.mjs → analytics-DGxcDAWu.mjs} +1 -1
- package/dist/{analytics-engine-CZgKAEo0.mjs → analytics-engine-DNNokw1O.mjs} +1 -1
- package/dist/{api-security-CAeFfkOp.mjs → api-security-CsPrJ-Xw.mjs} +1 -1
- package/dist/{argo-YKMl_X-Q.mjs → argo-BhNmRYk5.mjs} +1 -1
- package/dist/{artifacts-CrWK_jdk.mjs → artifacts-DRo8KadB.mjs} +1 -1
- package/dist/{audit-logs-C7Z4o6lL.mjs → audit-logs-CzxDyTbx.mjs} +1 -1
- package/dist/auth-B2V5gsm4.mjs +2 -0
- package/dist/{auth-0yg8UHy1.mjs → auth-CyF_s5ic.mjs} +1 -1
- package/dist/{auth-DkPhAgZv.mjs → auth-pbuzyz4C.mjs} +1 -1
- package/dist/{auth-token-C-ushV4K.mjs → auth-token-BcIV7k1B.mjs} +1 -1
- package/dist/{autoconfig-CwWsgTP2.mjs → autoconfig-CXcy-e1R.mjs} +1 -1
- package/dist/{basin-catalog-Df0BLUfb.mjs → basin-catalog-DoTn8zvi.mjs} +1 -1
- package/dist/{billing-C7qD2cBJ.mjs → billing-CMbLzZV0.mjs} +1 -1
- package/dist/{blocks-hVx18MUM.mjs → blocks-DmOx-xEv.mjs} +1 -1
- package/dist/{bot-management-Dv2tluEZ.mjs → bot-management-CJs5WwAW.mjs} +1 -1
- package/dist/{botnet-feed-DrIY4gpG.mjs → botnet-feed-DeF7P5lI.mjs} +1 -1
- package/dist/{brand-protection-of9uwStG.mjs → brand-protection-dx_B8OWa.mjs} +1 -1
- package/dist/{browser-run-CbMV-Pf5.mjs → browser-run-fRn9ItYu.mjs} +1 -1
- package/dist/{build-Yf5bvUk2.mjs → build-CCepbVuJ.mjs} +1 -1
- package/dist/build-CgpCJjPA.mjs +2 -0
- package/dist/{builds-DQrlz2-K.mjs → builds-5YhQ_zIm.mjs} +1 -1
- package/dist/{cache-suoMuQMh.mjs → cache-WQyxt7O5.mjs} +1 -1
- package/dist/{cli-BjAkPFKt.mjs → cli-CgkhNdjb.mjs} +1 -1
- package/dist/{client-side-security-lh4tvRH8.mjs → client-side-security-COuAb7BM.mjs} +1 -1
- package/dist/{cloud-connector-C65g5ddh.mjs → cloud-connector-D1gjX0Dx.mjs} +1 -1
- package/dist/{cloudforce-one-C2K8Sbji.mjs → cloudforce-one-BmXgL6kB.mjs} +4 -4
- package/dist/{command-DRBtP4R8.mjs → command-8hWrCCy6.mjs} +1 -1
- package/dist/{command-CKXrXY0q.mjs → command-BG9JYUHo.mjs} +1 -1
- package/dist/{command-Cby3gjqh.mjs → command-BJFKdqVc.mjs} +1 -1
- package/dist/{command-C2ZXXZI4.mjs → command-BXPssGfS.mjs} +1 -1
- package/dist/{command-C5465_vZ.mjs → command-B_Fxpr5v.mjs} +1 -1
- package/dist/{command-BHJu931_.mjs → command-CA6yIa17.mjs} +1 -1
- package/dist/{command-CBQp3Znu.mjs → command-Dsi4sM8D.mjs} +1 -1
- package/dist/{command-BqEoltQG.mjs → command-WyIFe__L.mjs} +1 -1
- package/dist/{command-CszTdUQV.mjs → command-hh8rEbH4.mjs} +1 -1
- package/dist/{command-DCJgoFz9.mjs → command-qhfkede5.mjs} +1 -1
- package/dist/{completions-DIIrktem.mjs → completions-BshG3sAO.mjs} +1 -1
- package/dist/{connector-interrupts-B4xZTu7K.mjs → connector-interrupts-pNU4QmsW.mjs} +1 -1
- package/dist/{connector-telemetry-events-DtTO6KCB.mjs → connector-telemetry-events-BpRPtTdD.mjs} +1 -1
- package/dist/{connector-telemetry-snapshots-BS1Cq8v_.mjs → connector-telemetry-snapshots-pNfynA2r.mjs} +1 -1
- package/dist/{connectors-CUywNbTu.mjs → connectors-CiWTAGHh.mjs} +1 -1
- package/dist/{containers-CQxEk5xO.mjs → containers-Dvq0NjQg.mjs} +2 -2
- package/dist/{containers-DCL31jYE.mjs → containers-IBtaInTL.mjs} +1 -1
- package/dist/{content-scan-6BGlT-em.mjs → content-scan-B69hOyhb.mjs} +1 -1
- package/dist/{context-DoGlohS-.mjs → context-BryBS1zQ.mjs} +1 -1
- package/dist/{cps-BoQ1alPM.mjs → cps-DLgWaZMT.mjs} +1 -1
- package/dist/{csam-scanner-OFnvPsqP.mjs → csam-scanner-D1928b81.mjs} +1 -1
- package/dist/{custom-csrs-BT-kjyPt.mjs → custom-csrs-DrxWBjmx.mjs} +1 -1
- package/dist/{custom-hostnames-ItOUZwKc.mjs → custom-hostnames-BP1pxK1F.mjs} +1 -1
- package/dist/{custom-nameservers-BZ1SzRQI.mjs → custom-nameservers-5DJLY479.mjs} +1 -1
- package/dist/{custom-pages-rIzNbxrh.mjs → custom-pages-CNAsOY9a.mjs} +1 -1
- package/dist/{d1-DtEeX2ua.mjs → d1-Dge80Qgq.mjs} +1 -1
- package/dist/{delegate-3IgxBeFH.mjs → delegate-CBKb0nov.mjs} +1 -1
- package/dist/delegate.mjs +1 -1
- package/dist/{deploy-CvIiOhGj.mjs → deploy-CR5b7uhB.mjs} +1 -1
- package/dist/{deploy-context-CCahKKFs.mjs → deploy-context-D51tgJGI.mjs} +1 -1
- package/dist/{deploy-input-BusFZFqu.mjs → deploy-input-em95cFc7.mjs} +1 -1
- package/dist/dev-BczBHbpj.mjs +4 -0
- package/dist/{diagnostics-Di6xJHuC.mjs → diagnostics-BKKinCge.mjs} +1 -1
- package/dist/{dls-CAlQiQv4.mjs → dls-DU4HnxED.mjs} +1 -1
- package/dist/{dns-BzxLC4D1.mjs → dns-BzdH3geY.mjs} +1 -1
- package/dist/{dns-firewall-CHVL95X_.mjs → dns-firewall-puq_86Wd.mjs} +1 -1
- package/dist/{docs-SWvG8lKe.mjs → docs-AWb7X2VX.mjs} +1 -1
- package/dist/{durable-objects-DZl4seSi.mjs → durable-objects-Dg6XPcsB.mjs} +1 -1
- package/dist/{email-auth-hHJQmtYR.mjs → email-auth-DXR0NU9R.mjs} +1 -1
- package/dist/{email-domains-BBFPOLQx.mjs → email-domains-B00mAtjT.mjs} +1 -1
- package/dist/{email-routing-Cimk4lg2.mjs → email-routing-Cm19q9hA.mjs} +1 -1
- package/dist/{email-security-DiNFIpmg.mjs → email-security-CFKcS-DM.mjs} +1 -1
- package/dist/{email-sending-yIqoikwn.mjs → email-sending-B3xSoKcC.mjs} +1 -1
- package/dist/{errors-d_Ld5w3d.mjs → errors-CIQDUrWg.mjs} +1 -1
- package/dist/{field-extractors-CiuZnMX2.mjs → field-extractors-Csz8QknP.mjs} +1 -1
- package/dist/{firewall-B8QK0M1Y.mjs → firewall-C8FW0Nb2.mjs} +1 -1
- package/dist/{flagship-Dh0-PZgv.mjs → flagship-v-bGZ_U-.mjs} +1 -1
- package/dist/{fraud-DDebasT8.mjs → fraud-VvfL2I5a.mjs} +1 -1
- package/dist/{google-tag-gateway-BPrh4DbT.mjs → google-tag-gateway-DF6fS2MQ.mjs} +1 -1
- package/dist/{healthchecks-CF8SJ-wN.mjs → healthchecks-D3p3E4WL.mjs} +1 -1
- package/dist/{hyperdrive-B9uPSMiW.mjs → hyperdrive-DopYL1dK.mjs} +1 -1
- package/dist/{iam-g9EBjHMK.mjs → iam-cIfyshlf.mjs} +1 -1
- package/dist/{images-BqSlZF88.mjs → images-BR5fP_6r.mjs} +1 -1
- package/dist/index.mjs +1 -1
- package/dist/{init-CIfT7Qx1.mjs → init-JXRQoqGP.mjs} +1 -1
- package/dist/{intel-D8nT11Y4.mjs → intel-BvNrrM7V.mjs} +1 -1
- package/dist/{internal-C7zUQ4fS.mjs → internal-DcnAVlpA.mjs} +1 -1
- package/dist/{ips-DwrIBecV.mjs → ips-BUEIuhhw.mjs} +1 -1
- package/dist/{k2-7r63P37v.mjs → k2-Dm4LvAhL.mjs} +1 -1
- package/dist/{kv-BQSq0aQ5.mjs → kv-7oD-JIak.mjs} +1 -1
- package/dist/{lazy-command-JgUZQW-c.mjs → lazy-command-CD1nuS38.mjs} +1 -1
- package/dist/{leaked-credential-checks-Bu2NYq31.mjs → leaked-credential-checks-B6s8hUYU.mjs} +1 -1
- package/dist/{live-ZSukf_dI.mjs → live-CHP4AXSN.mjs} +1 -1
- package/dist/{load-balancers-CthmhsmC.mjs → load-balancers-B_yvINGW.mjs} +1 -1
- package/dist/{local-Y4rIAAtA.mjs → local-CIeKNHSz.mjs} +1 -1
- package/dist/local-CTaqb1nl.mjs +2 -0
- package/dist/local-runtime-DOSBgJlo.mjs +2 -0
- package/dist/{login-lXb4Sqs9.mjs → login-h8vuvNN3.mjs} +1 -1
- package/dist/login-pt6gTX3x.mjs +2 -0
- package/dist/{logpush-Mw2VklWj.mjs → logpush-B70rNMOP.mjs} +1 -1
- package/dist/{logs-DQrNjo77.mjs → logs-DqmqCNqQ.mjs} +1 -1
- package/dist/{magic-cloud-networking-D8s1hN3K.mjs → magic-cloud-networking-CurtlBvl.mjs} +1 -1
- package/dist/{magic-network-monitoring-f0ccLJlt.mjs → magic-network-monitoring-OzpX7MfI.mjs} +1 -1
- package/dist/{magic-transit-7WpZJc0a.mjs → magic-transit-Ca_CROhr.mjs} +1 -1
- package/dist/{managed-defense-QLYmbNgC.mjs → managed-defense-BRxv0mgy.mjs} +1 -1
- package/dist/{managed-transforms-CkaQn7tC.mjs → managed-transforms-C7YLIPdN.mjs} +1 -1
- package/dist/{mcp-Di1X9Amj.mjs → mcp-B_StIx94.mjs} +1 -1
- package/dist/{mesh-CkvqQb6B.mjs → mesh-YW-p6Tkx.mjs} +1 -1
- package/dist/{migrate-KOhIz9fX.mjs → migrate-CrBgU7Xm.mjs} +1 -1
- package/dist/{monetization-C9c2OCag.mjs → monetization-rMP8HK_4.mjs} +1 -1
- package/dist/{network-0PlPsgfJ.mjs → network-D9Do7C-u.mjs} +1 -1
- package/dist/{network-interconnects-BeiuYp7F.mjs → network-interconnects-DYMhB3TR.mjs} +1 -1
- package/dist/{o11y-Ys4wGQJ8.mjs → o11y-HT9_9NUF.mjs} +1 -1
- package/dist/{oauth-BX5dMp7e.mjs → oauth-D6uh5ZdS.mjs} +1 -1
- package/dist/{oauth-BL039mqa.mjs → oauth-DetIFT59.mjs} +1 -1
- package/dist/{oauth-clients-DhVG_Upv.mjs → oauth-clients-B_BJco0Z.mjs} +1 -1
- package/dist/{oauth-scopes-B1n8hUMj.mjs → oauth-scopes-Cub2pl0Z.mjs} +1 -1
- package/dist/{organization-8ateLjgl.mjs → organization-DhxMPdqU.mjs} +1 -1
- package/dist/{organizations-DdQAC66Z.mjs → organizations-DIduPB74.mjs} +1 -1
- package/dist/{origin-post-quantum-encryption-D9qT0WUV.mjs → origin-post-quantum-encryption-CPZQGLmW.mjs} +1 -1
- package/dist/package-Bf2u3-yO.mjs +2 -0
- package/dist/{page-rules-DlOky6Zl.mjs → page-rules-0nDfdFWr.mjs} +1 -1
- package/dist/{pages-BcqYjzyx.mjs → pages-Br-w5HLL.mjs} +2 -2
- package/dist/{pay-per-crawl-DtYmYcHH.mjs → pay-per-crawl-Di6UpJoo.mjs} +1 -1
- package/dist/{pay-per-use-DOUCWPNy.mjs → pay-per-use-Bm7Nxf6s.mjs} +1 -1
- package/dist/{pipelines-8yHQduBt.mjs → pipelines-BRVI3bV9.mjs} +1 -1
- package/dist/{precursor-CX7gjIRG.mjs → precursor-DyrQWdO5.mjs} +1 -1
- package/dist/{previews-WL-CudUP.mjs → previews-rpfwcJzi.mjs} +1 -1
- package/dist/{progress-D2_AF54c.mjs → progress-C_yVLVcl.mjs} +1 -1
- package/dist/{prompt-BBR19lgj.mjs → prompt-kxvGZ6nF.mjs} +1 -1
- package/dist/{queues-BDNnjJ5M.mjs → queues-BGV3aC26.mjs} +1 -1
- package/dist/{r2-B9b18zom.mjs → r2-CWMqr3JJ.mjs} +1 -1
- package/dist/{radar-BCxOSIwx.mjs → radar-D8x_TUAi.mjs} +1 -1
- package/dist/{raw-fetch-BFcMz5hY.mjs → raw-fetch-C_hWBr7n.mjs} +1 -1
- package/dist/{ready-C8zZ63yB.mjs → ready-BXz5amSL.mjs} +1 -1
- package/dist/{realtime-C8z8iTs4.mjs → realtime-9jG5GaNK.mjs} +1 -1
- package/dist/{registrar-BTMp4ivm.mjs → registrar-C-2I1SJh.mjs} +1 -1
- package/dist/{registrar-sandbox-C2PG_Alv.mjs → registrar-sandbox-D9ldxGPo.mjs} +1 -1
- package/dist/{reporting-BQY6_uXf.mjs → reporting-Bk3dc6Gi.mjs} +1 -1
- package/dist/{request-headers-_yTB3kAw.mjs → request-headers-B5Rjq7Ic.mjs} +1 -1
- package/dist/{request-tracers-Dijdzs6y.mjs → request-tracers-H-iRAUdG.mjs} +1 -1
- package/dist/{resource-sharing-DYaOk_EC.mjs → resource-sharing-A6ITunsT.mjs} +1 -1
- package/dist/{rules-TsOBYamD.mjs → rules-BntvQdnS.mjs} +1 -1
- package/dist/{rulesets-BICRAp0v.mjs → rulesets-DKz_iYU_.mjs} +1 -1
- package/dist/{rum-wY_8vewy.mjs → rum-D9zpcNqT.mjs} +1 -1
- package/dist/{run-C2-1SFrS.mjs → run-BlSXngtI.mjs} +1 -1
- package/dist/run-DB1-Sj9a.mjs +2 -0
- package/dist/{schema-flags-DHP8ll5_.mjs → schema-flags-CoTAkrz8.mjs} +1 -1
- package/dist/{scim-BCB-RVUX.mjs → scim-DVhxKKpH.mjs} +1 -1
- package/dist/{secrets-store-BR-h9nxX.mjs → secrets-store-3mxJrDWJ.mjs} +1 -1
- package/dist/{security-insights-C3pM4_QG.mjs → security-insights-BDLWuG0E.mjs} +1 -1
- package/dist/{security-txt-BYeDQJyf.mjs → security-txt-COzdrpdW.mjs} +1 -1
- package/dist/{session-CG79ZLE9.mjs → session-X3xaW70I.mjs} +1 -1
- package/dist/shared-foRpbmSV.mjs +2 -0
- package/dist/{signed-url-BWwUnIl-.mjs → signed-url-Dgi1p-Qi.mjs} +1 -1
- package/dist/{smart-shield-Dlsh9Xdx.mjs → smart-shield-DSDA5bZt.mjs} +1 -1
- package/dist/{snippets-DWTJdzIF.mjs → snippets-myowgDLd.mjs} +1 -1
- package/dist/spawn-C8D5pzxJ.mjs +5 -0
- package/dist/{spectrum-RbNSnJya.mjs → spectrum-CB-NzbZ7.mjs} +1 -1
- package/dist/{speed-Bh18cP0e.mjs → speed-UqKG1WDl.mjs} +1 -1
- package/dist/{sql-BKjCDDS-.mjs → sql-BzikdIje.mjs} +1 -1
- package/dist/src-B9agxHh8.mjs +131 -0
- package/dist/{ssl-BHMbK4Be.mjs → ssl-BmWWsUX6.mjs} +1 -1
- package/dist/{stream-BFs1vbTA.mjs → stream-G87TzC9e.mjs} +1 -1
- package/dist/{tags-ACINMEUC.mjs → tags-Ctl4fLux.mjs} +1 -1
- package/dist/{telemetry-Da9TmAgm.mjs → telemetry-CA0_i9-l.mjs} +1 -1
- package/dist/telemetry-jl3s2-bN.mjs +2 -0
- package/dist/{tenant-custom-nameservers-CGcqESj5.mjs → tenant-custom-nameservers-B2ehXfQK.mjs} +1 -1
- package/dist/{tenant-Decq0ghq.mjs → tenant-t5yPFQOx.mjs} +1 -1
- package/dist/{tunnels-ff1a_ucB.mjs → tunnels-DL_VgV0P.mjs} +2 -2
- package/dist/{turnstile-BmJeENqH.mjs → turnstile-CEjw5vn6.mjs} +1 -1
- package/dist/ui-Dt1-eURh.mjs +2 -0
- package/dist/{update-check-BjlU_02g.mjs → update-check-2Mn4Z1ln.mjs} +1 -1
- package/dist/{update-check-imcniBzu.mjs → update-check-LF-JcHRF.mjs} +1 -1
- package/dist/update-check-worker.mjs +1 -1
- package/dist/{url-normalization-DPqqTNzy.mjs → url-normalization-BL_BkGvP.mjs} +1 -1
- package/dist/{url-scanner-SmzhVLS-.mjs → url-scanner-CVzV9Syq.mjs} +1 -1
- package/dist/{user-LDJcWt0X.mjs → user-YnQSmPNR.mjs} +1 -1
- package/dist/{vectorize-D57FE9YT.mjs → vectorize-C5ZwKQzI.mjs} +1 -1
- package/dist/version-Bz705iJe.mjs +2 -0
- package/dist/{waiting-rooms-Bp5glzYE.mjs → waiting-rooms-D9V1Fm16.mjs} +1 -1
- package/dist/{web-assets-BzSBU057.mjs → web-assets-yzPkWgLy.mjs} +1 -1
- package/dist/{web3-DmeS2XCY.mjs → web3-DbWNUhP4.mjs} +1 -1
- package/dist/{workers-builds-BRRyYyDr.mjs → workers-builds-DgIDPDhj.mjs} +1 -1
- package/dist/{workers-for-platforms-Bq5hpU-X.mjs → workers-for-platforms-CoPp1ez5.mjs} +1 -1
- package/dist/{workers-BUmSAYvI.mjs → workers-r9Aj68v1.mjs} +2 -2
- package/dist/{workers-vpc-Dn83sJ0S.mjs → workers-vpc-Cvjg15bk.mjs} +1 -1
- package/dist/{workflows-BI1Oqr1y.mjs → workflows-D4SIo58Q.mjs} +1 -1
- package/dist/{wrangler-migration-DHfxfsd8.mjs → wrangler-migration-D2HwxIG5.mjs} +1 -1
- package/dist/{zaraz-eWdwn_FV.mjs → zaraz-CkqpiZBH.mjs} +1 -1
- package/dist/{zero-trust-Dj_s_8u8.mjs → zero-trust-CEY-lohP.mjs} +5 -5
- package/dist/{zones-D7J5AMUO.mjs → zones-BWieAez1.mjs} +1 -1
- package/package.json +2 -2
- package/dist/auth-DCnxMUAZ.mjs +0 -2
- package/dist/build-DHPdqjpj.mjs +0 -2
- package/dist/dev-2hNwTy0s.mjs +0 -4
- package/dist/local-CxTyXQlK.mjs +0 -2
- package/dist/local-runtime-Crs0aOFO.mjs +0 -2
- package/dist/login-C_gOc9pk.mjs +0 -2
- package/dist/package-C4H_6MHV.mjs +0 -2
- package/dist/registry-DpNVjLuS.mjs +0 -2
- package/dist/run-C9r-Beel.mjs +0 -2
- package/dist/shared-Z4B68uro.mjs +0 -2
- package/dist/spawn-DdvGNWEs.mjs +0 -5
- package/dist/src-BZtxQa8v.mjs +0 -131
- package/dist/telemetry-Q7QghPwV.mjs +0 -2
- package/dist/ui-C1y5cXUM.mjs +0 -2
- package/dist/version-CbBZJTiB.mjs +0 -2
package/dist/_meta/commands.json
CHANGED
|
@@ -20717,7 +20717,7 @@
|
|
|
20717
20717
|
"httpMethod": "POST",
|
|
20718
20718
|
"apiPath": "/zones/{zone_id}/bot_management/feedback",
|
|
20719
20719
|
"operationId": "bot-management.feedback.create",
|
|
20720
|
-
"hideCommand":
|
|
20720
|
+
"hideCommand": false
|
|
20721
20721
|
},
|
|
20722
20722
|
{
|
|
20723
20723
|
"command": "cf bot-management feedback list",
|
|
@@ -20741,7 +20741,7 @@
|
|
|
20741
20741
|
"httpMethod": "GET",
|
|
20742
20742
|
"apiPath": "/zones/{zone_id}/bot_management/feedback",
|
|
20743
20743
|
"operationId": "bot-management.feedback.list",
|
|
20744
|
-
"hideCommand":
|
|
20744
|
+
"hideCommand": false
|
|
20745
20745
|
},
|
|
20746
20746
|
{
|
|
20747
20747
|
"command": "cf bot-management get",
|
|
@@ -20765,7 +20765,7 @@
|
|
|
20765
20765
|
"httpMethod": "GET",
|
|
20766
20766
|
"apiPath": "/zones/{zone_id}/bot_management",
|
|
20767
20767
|
"operationId": "bot-management.get",
|
|
20768
|
-
"hideCommand":
|
|
20768
|
+
"hideCommand": false
|
|
20769
20769
|
},
|
|
20770
20770
|
{
|
|
20771
20771
|
"command": "cf bot-management update",
|
|
@@ -20973,7 +20973,7 @@
|
|
|
20973
20973
|
"httpMethod": "PUT",
|
|
20974
20974
|
"apiPath": "/zones/{zone_id}/bot_management",
|
|
20975
20975
|
"operationId": "bot-management.update",
|
|
20976
|
-
"hideCommand":
|
|
20976
|
+
"hideCommand": false
|
|
20977
20977
|
},
|
|
20978
20978
|
{
|
|
20979
20979
|
"command": "cf botnet-feed asn day-report",
|
|
@@ -29766,6 +29766,12 @@
|
|
|
29766
29766
|
"type": "string",
|
|
29767
29767
|
"required": false,
|
|
29768
29768
|
"description": "Path to a file to upload as the request body"
|
|
29769
|
+
},
|
|
29770
|
+
{
|
|
29771
|
+
"name": "source",
|
|
29772
|
+
"type": "string",
|
|
29773
|
+
"required": false,
|
|
29774
|
+
"description": "Literal content or @path/to/file for the `source` form field. The file to upload (can also use 'file')"
|
|
29769
29775
|
}
|
|
29770
29776
|
],
|
|
29771
29777
|
"category": "action",
|
|
@@ -37311,7 +37317,7 @@
|
|
|
37311
37317
|
"articles",
|
|
37312
37318
|
"aggregate-severity"
|
|
37313
37319
|
],
|
|
37314
|
-
"description": "Beta. Counts the account's Threat Signals articles in each intrinsic severity band. An article's band is the severity level nearest its severity, from informational to critical. Articles without a severity are not counted. min_relevance counts only articles at or above a relevance band for any active
|
|
37320
|
+
"description": "Beta. Counts the account's Threat Signals articles in each intrinsic severity band. An article's band is the severity level nearest its severity, from informational to critical. Articles without a severity are not counted. Also counts, for each active Priority Intelligence Requirement, the articles scored against it. min_relevance counts only articles at or above a relevance band: overall, for any active PIR; per PIR, for that PIR, the same rule as the per-PIR relevance counts. pir_id counts for one active PIR only. Like the article severity field, severity is reported only while the account has an active Priority Intelligence Requirement, including one the matcher paused; otherwise every count is zero and priorities is empty. All counts are read together and are exact.",
|
|
37315
37321
|
"summary": "Count Threat Signals articles by severity band",
|
|
37316
37322
|
"usage": "cf cloudforce-one threat-signals articles aggregate-severity [options]",
|
|
37317
37323
|
"arguments": [],
|
|
@@ -37328,11 +37334,17 @@
|
|
|
37328
37334
|
"required": false,
|
|
37329
37335
|
"description": "Include articles published at or before this ISO 8601 date-time with Z or a numeric UTC offset; normalized to UTC."
|
|
37330
37336
|
},
|
|
37337
|
+
{
|
|
37338
|
+
"name": "pir-id",
|
|
37339
|
+
"type": "string",
|
|
37340
|
+
"required": false,
|
|
37341
|
+
"description": "Beta. Active Priority Intelligence Requirement to count for. articles then counts only articles scored against it, min_relevance applies to its score, and priorities lists only it. Returns a 400 error unless the PIR is active."
|
|
37342
|
+
},
|
|
37331
37343
|
{
|
|
37332
37344
|
"name": "min-relevance",
|
|
37333
37345
|
"type": "string",
|
|
37334
37346
|
"required": false,
|
|
37335
|
-
"description": "Beta. Count only articles at or above this relevance band for any active Priority Intelligence Requirement, as the article list's min_relevance does without pir_id. Excludes articles that have not been scored against an active PIR.",
|
|
37347
|
+
"description": "Beta. Count only articles at or above this relevance band: in articles, for any active Priority Intelligence Requirement, as the article list's min_relevance does without pir_id; in each priority, for that PIR. Excludes articles that have not been scored against an active PIR.",
|
|
37336
37348
|
"enum": ["low", "medium", "high"]
|
|
37337
37349
|
},
|
|
37338
37350
|
{
|
|
@@ -42881,7 +42893,7 @@
|
|
|
42881
42893
|
"name": "secrets-file",
|
|
42882
42894
|
"type": "string",
|
|
42883
42895
|
"required": false,
|
|
42884
|
-
"description": "Path to a file containing secrets to upload with the version (JSON or .env format)"
|
|
42896
|
+
"description": "Path to a file containing secrets to upload with the version (JSON or .env format). Dotenv values expand $VAR and ${VAR} using process environment values and earlier file values; process environment values override file values, including empty values. Only declared file keys are uploaded. Only use trusted dotenv secrets files: they can read and upload any process environment value. Escape literal dollar signs with \\$ or use JSON."
|
|
42885
42897
|
},
|
|
42886
42898
|
{
|
|
42887
42899
|
"name": "dry-run",
|
|
@@ -54349,7 +54361,7 @@
|
|
|
54349
54361
|
"httpMethod": "GET",
|
|
54350
54362
|
"apiPath": "/zones/{zone_id}/fraud_detection/settings",
|
|
54351
54363
|
"operationId": "fraud.get",
|
|
54352
|
-
"hideCommand":
|
|
54364
|
+
"hideCommand": false
|
|
54353
54365
|
},
|
|
54354
54366
|
{
|
|
54355
54367
|
"command": "cf fraud update",
|
|
@@ -54418,7 +54430,7 @@
|
|
|
54418
54430
|
"httpMethod": "PUT",
|
|
54419
54431
|
"apiPath": "/zones/{zone_id}/fraud_detection/settings",
|
|
54420
54432
|
"operationId": "fraud.update",
|
|
54421
|
-
"hideCommand":
|
|
54433
|
+
"hideCommand": false
|
|
54422
54434
|
},
|
|
54423
54435
|
{
|
|
54424
54436
|
"command": "cf google-tag-gateway config get",
|
|
@@ -83761,6 +83773,36 @@
|
|
|
83761
83773
|
"type": "string",
|
|
83762
83774
|
"required": false,
|
|
83763
83775
|
"description": "Path to a file to upload as the request body"
|
|
83776
|
+
},
|
|
83777
|
+
{
|
|
83778
|
+
"name": "redirects",
|
|
83779
|
+
"type": "string",
|
|
83780
|
+
"required": false,
|
|
83781
|
+
"description": "Literal content or @path/to/file for the `_redirects` form field. Redirects configuration file for the deployment."
|
|
83782
|
+
},
|
|
83783
|
+
{
|
|
83784
|
+
"name": "routes-json",
|
|
83785
|
+
"type": "string",
|
|
83786
|
+
"required": false,
|
|
83787
|
+
"description": "Literal content or @path/to/file for the `_routes.json` form field. Routes configuration file defining routing rules."
|
|
83788
|
+
},
|
|
83789
|
+
{
|
|
83790
|
+
"name": "worker-bundle",
|
|
83791
|
+
"type": "string",
|
|
83792
|
+
"required": false,
|
|
83793
|
+
"description": "Literal content or @path/to/file for the `_worker.bundle` form field. Worker bundle file in multipart/form-data format. Mutually exclusive with `_worker.js`.\nCannot specify both `_worker.js` and `_worker.bundle` in the same request.\nMaximum size: 25 MiB.\n"
|
|
83794
|
+
},
|
|
83795
|
+
{
|
|
83796
|
+
"name": "worker-js",
|
|
83797
|
+
"type": "string",
|
|
83798
|
+
"required": false,
|
|
83799
|
+
"description": "Literal content or @path/to/file for the `_worker.js` form field. Worker JavaScript file. Mutually exclusive with `_worker.bundle`.\nCannot specify both `_worker.js` and `_worker.bundle` in the same request.\n"
|
|
83800
|
+
},
|
|
83801
|
+
{
|
|
83802
|
+
"name": "functions-filepath-routing-config-json",
|
|
83803
|
+
"type": "string",
|
|
83804
|
+
"required": false,
|
|
83805
|
+
"description": "Literal content or @path/to/file for the `functions-filepath-routing-config.json` form field. Functions routing configuration file."
|
|
83764
83806
|
}
|
|
83765
83807
|
],
|
|
83766
83808
|
"category": "create",
|
|
@@ -134834,7 +134876,7 @@
|
|
|
134834
134876
|
"name": "secrets-file",
|
|
134835
134877
|
"type": "string",
|
|
134836
134878
|
"required": false,
|
|
134837
|
-
"description": "Path to a file containing secrets to upload with the version (JSON or .env format)"
|
|
134879
|
+
"description": "Path to a file containing secrets to upload with the version (JSON or .env format). Dotenv values expand $VAR and ${VAR} using process environment values and earlier file values; process environment values override file values, including empty values. Only declared file keys are uploaded. Only use trusted dotenv secrets files: they can read and upload any process environment value. Escape literal dollar signs with \\$ or use JSON."
|
|
134838
134880
|
},
|
|
134839
134881
|
{
|
|
134840
134882
|
"name": "dry-run",
|
|
@@ -151088,6 +151130,12 @@
|
|
|
151088
151130
|
"description": "Whether to add Microsoft IPs to Split Tunnel exclusions.",
|
|
151089
151131
|
"default": false
|
|
151090
151132
|
},
|
|
151133
|
+
{
|
|
151134
|
+
"name": "global-acceleration-allow-manual-override",
|
|
151135
|
+
"type": "boolean",
|
|
151136
|
+
"required": false,
|
|
151137
|
+
"description": "Whether WARP users may manually override the automatic Global Acceleration decision. Defaults to true when not provided."
|
|
151138
|
+
},
|
|
151091
151139
|
{
|
|
151092
151140
|
"name": "global-acceleration-api-endpoints",
|
|
151093
151141
|
"type": "string",
|
|
@@ -151452,6 +151500,12 @@
|
|
|
151452
151500
|
"required": false,
|
|
151453
151501
|
"description": "Whether to add Microsoft IPs to Split Tunnel exclusions."
|
|
151454
151502
|
},
|
|
151503
|
+
{
|
|
151504
|
+
"name": "global-acceleration-allow-manual-override",
|
|
151505
|
+
"type": "boolean",
|
|
151506
|
+
"required": false,
|
|
151507
|
+
"description": "Whether WARP users may manually override the automatic Global Acceleration decision. Defaults to true when not provided."
|
|
151508
|
+
},
|
|
151455
151509
|
{
|
|
151456
151510
|
"name": "global-acceleration-api-endpoints",
|
|
151457
151511
|
"type": "string",
|
|
@@ -151692,6 +151746,12 @@
|
|
|
151692
151746
|
"required": false,
|
|
151693
151747
|
"description": "Whether to add Microsoft IPs to Split Tunnel exclusions."
|
|
151694
151748
|
},
|
|
151749
|
+
{
|
|
151750
|
+
"name": "global-acceleration-allow-manual-override",
|
|
151751
|
+
"type": "boolean",
|
|
151752
|
+
"required": false,
|
|
151753
|
+
"description": "Whether WARP users may manually override the automatic Global Acceleration decision. Defaults to true when not provided."
|
|
151754
|
+
},
|
|
151695
151755
|
{
|
|
151696
151756
|
"name": "global-acceleration-api-endpoints",
|
|
151697
151757
|
"type": "string",
|
|
@@ -1108,7 +1108,7 @@
|
|
|
1108
1108
|
"name": "secrets-file",
|
|
1109
1109
|
"type": "string",
|
|
1110
1110
|
"required": false,
|
|
1111
|
-
"description": "Path to a file containing secrets to upload with the version (JSON or .env format)"
|
|
1111
|
+
"description": "Path to a file containing secrets to upload with the version (JSON or .env format). Dotenv values expand $VAR and ${VAR} using process environment values and earlier file values; process environment values override file values, including empty values. Only declared file keys are uploaded. Only use trusted dotenv secrets files: they can read and upload any process environment value. Escape literal dollar signs with \\$ or use JSON."
|
|
1112
1112
|
},
|
|
1113
1113
|
{
|
|
1114
1114
|
"name": "dry-run",
|
|
@@ -2006,7 +2006,7 @@
|
|
|
2006
2006
|
"name": "secrets-file",
|
|
2007
2007
|
"type": "string",
|
|
2008
2008
|
"required": false,
|
|
2009
|
-
"description": "Path to a file containing secrets to upload with the version (JSON or .env format)"
|
|
2009
|
+
"description": "Path to a file containing secrets to upload with the version (JSON or .env format). Dotenv values expand $VAR and ${VAR} using process environment values and earlier file values; process environment values override file values, including empty values. Only declared file keys are uploaded. Only use trusted dotenv secrets files: they can read and upload any process environment value. Escape literal dollar signs with \\$ or use JSON."
|
|
2010
2010
|
},
|
|
2011
2011
|
{
|
|
2012
2012
|
"name": "dry-run",
|
package/dist/_meta/schemas.json
CHANGED
|
@@ -26517,6 +26517,11 @@
|
|
|
26517
26517
|
"type": "string",
|
|
26518
26518
|
"required": false
|
|
26519
26519
|
},
|
|
26520
|
+
{
|
|
26521
|
+
"name": "pir_id",
|
|
26522
|
+
"type": "string",
|
|
26523
|
+
"required": false
|
|
26524
|
+
},
|
|
26520
26525
|
{
|
|
26521
26526
|
"name": "min_relevance",
|
|
26522
26527
|
"type": "string",
|
|
@@ -105321,6 +105326,12 @@
|
|
|
105321
105326
|
"required": false,
|
|
105322
105327
|
"description": "Whether to add Microsoft IPs to Split Tunnel exclusions."
|
|
105323
105328
|
},
|
|
105329
|
+
{
|
|
105330
|
+
"name": "global-acceleration-allow-manual-override",
|
|
105331
|
+
"type": "boolean",
|
|
105332
|
+
"required": false,
|
|
105333
|
+
"description": "Whether WARP users may manually override the automatic Global Acceleration decision. Defaults to true when not provided."
|
|
105334
|
+
},
|
|
105324
105335
|
{
|
|
105325
105336
|
"name": "global-acceleration-api-endpoints",
|
|
105326
105337
|
"type": "string",
|
|
@@ -105625,6 +105636,12 @@
|
|
|
105625
105636
|
"required": false,
|
|
105626
105637
|
"description": "Whether to add Microsoft IPs to Split Tunnel exclusions."
|
|
105627
105638
|
},
|
|
105639
|
+
{
|
|
105640
|
+
"name": "global-acceleration-allow-manual-override",
|
|
105641
|
+
"type": "boolean",
|
|
105642
|
+
"required": false,
|
|
105643
|
+
"description": "Whether WARP users may manually override the automatic Global Acceleration decision. Defaults to true when not provided."
|
|
105644
|
+
},
|
|
105628
105645
|
{
|
|
105629
105646
|
"name": "global-acceleration-api-endpoints",
|
|
105630
105647
|
"type": "string",
|
|
@@ -105842,6 +105859,12 @@
|
|
|
105842
105859
|
"required": false,
|
|
105843
105860
|
"description": "Whether to add Microsoft IPs to Split Tunnel exclusions."
|
|
105844
105861
|
},
|
|
105862
|
+
{
|
|
105863
|
+
"name": "global-acceleration-allow-manual-override",
|
|
105864
|
+
"type": "boolean",
|
|
105865
|
+
"required": false,
|
|
105866
|
+
"description": "Whether WARP users may manually override the automatic Global Acceleration decision. Defaults to true when not provided."
|
|
105867
|
+
},
|
|
105845
105868
|
{
|
|
105846
105869
|
"name": "global-acceleration-api-endpoints",
|
|
105847
105870
|
"type": "string",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import"./api-X3wKppsT.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{t}from"./local-
|
|
2
|
+
import"./api-X3wKppsT.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{t}from"./local-CIeKNHSz.mjs";import{i as n,n as r}from"./auth-pbuzyz4C.mjs";import{a as i,t as a}from"./context-BryBS1zQ.mjs";import{t as o}from"./output-BJEgbI0G.mjs";import{t as s}from"./dry-run-gy0Hl9xo.mjs";import{t as c}from"./progress-C_yVLVcl.mjs";import{t as l}from"./run-BlSXngtI.mjs";import"./telemetry-jl3s2-bN.mjs";import{a as u,n as d,s as f,t as p}from"./body-parser-BKcZS9iJ.mjs";import{n as m}from"./input-validation-D7z60HJH.mjs";import{a as h,i as g}from"./prompt-kxvGZ6nF.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();s({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 n=await r(e),l=e.local?t:await a();e.accountId=l;let u=await c(`Loading`,async()=>n.send(_,{account_id:l,report_id:e[`report-id`]}));o(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 works with 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. Comments are kept internal to Cloudflare and not shared with the host or customer as part of regular processing. For delegated reports, 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-CD1nuS38.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-BG9JYUHo.mjs`),{command:`access curl`,recordArgs:!1}),r=e(`login <url>`,`Authenticate with an Access application and store its JWT through cloudflared.`,()=>import(`./command-Dsi4sM8D.mjs`),{command:`access login`,recordArgs:!1}),i=e(`ssh-config`,`Print an example SSH configuration for an Access application.`,()=>import(`./command-8hWrCCy6.mjs`),{command:`access ssh-config`,recordArgs:!1}),a=e(`ssh-gen`,`Generate a short-lived certificate for an Access SSH application.`,()=>import(`./command-BXPssGfS.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-hh8rEbH4.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-WyIFe__L.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-X3wKppsT.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{t}from"./local-
|
|
2
|
+
import"./api-X3wKppsT.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{t}from"./local-CIeKNHSz.mjs";import{i as n,n as r,s as i}from"./auth-pbuzyz4C.mjs";import{a,i as o,t as s}from"./context-BryBS1zQ.mjs";import{t as c}from"./output-BJEgbI0G.mjs";import{t as l}from"./dry-run-gy0Hl9xo.mjs";import{t as u}from"./progress-C_yVLVcl.mjs";import{t as d}from"./run-BlSXngtI.mjs";import"./telemetry-jl3s2-bN.mjs";import{a as f,n as p,s as m,t as h}from"./body-parser-BKcZS9iJ.mjs";import{n as g}from"./input-validation-D7z60HJH.mjs";import{a as _,i as v,n as y}from"./prompt-kxvGZ6nF.mjs";import{n as ee,t as te}from"./raw-fetch-C_hWBr7n.mjs";var b={method:`POST`,path:t=>e`/accounts/${t.account_id}/resource-library/applications`,body:`json`};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=>d({command:`accounts applications create`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await a();l({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?h({category_id:e[`category-id`],hostnames:e.hostnames,human_id:g(e[`human-id`],`human-id`,`text`),ip_subnets:e[`ip-subnets`],name:g(e.name,`name`,`text`),port_protocols:e[`port-protocols`],support_domains:e[`support-domains`]}):p(e.body)});return}let n=await r(e),i=e.local?t:await s();if(e.accountId=i,e.body){let t=p(e.body),r=await u(`Creating`,async()=>n.send(b,{body:t,account_id:i}));c(r,{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 o=h({category_id:e[`category-id`],hostnames:e.hostnames,human_id:g(e[`human-id`],`human-id`,`text`),ip_subnets:e[`ip-subnets`],name:g(e.name,`name`,`text`),port_protocols:e[`port-protocols`],support_domains:e[`support-domains`]}),d=await u(`Creating`,async()=>n.send(b,{body:o,account_id:i}));c(d,{successLabel:`Created`})})};var ie={method:`DELETE`,path:t=>e`/accounts/${t.account_id}/resource-library/applications/${t.id}`,errors:{409:`ConflictError`,502:`BadGatewayError`}};function ae(e){return e.usage(`$0 accounts applications delete <id>
|
|
5
5
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import"./api-X3wKppsT.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{n as t}from"./auth-
|
|
2
|
+
import"./api-X3wKppsT.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{n as t}from"./auth-pbuzyz4C.mjs";import{i as n}from"./context-BryBS1zQ.mjs";import{t as r}from"./output-BJEgbI0G.mjs";import{t as i}from"./dry-run-gy0Hl9xo.mjs";import{t as a}from"./progress-C_yVLVcl.mjs";import{t as o}from"./run-BlSXngtI.mjs";import"./telemetry-jl3s2-bN.mjs";import{n as s,t as c}from"./body-parser-BKcZS9iJ.mjs";import{n as l}from"./input-validation-D7z60HJH.mjs";import{a as u,n as d}from"./prompt-kxvGZ6nF.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=>o({command:`acm custom-trust-store create`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){i({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?c({certificate:l(e.certificate,`certificate`,`text`)}):s(e.body)});return}let o=await t(e),d=await n({zone:e.zone},o,{quiet:e.quiet});if(e.zoneId=d,e.body){let t=s(e.body),n=await a(`Creating`,async()=>o.send(f,{body:t,zone_id:d}));r(n,{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 p=c({certificate:l(e.certificate,`certificate`,`text`)}),m=await a(`Creating`,async()=>o.send(f,{body:p,zone_id:d}));r(m,{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-X3wKppsT.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{t}from"./local-
|
|
2
|
+
import"./api-X3wKppsT.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{t}from"./local-CIeKNHSz.mjs";import{i as n,n as r}from"./auth-pbuzyz4C.mjs";import{a as i,i as a,t as o}from"./context-BryBS1zQ.mjs";import{t as s}from"./output-BJEgbI0G.mjs";import{t as c}from"./dry-run-gy0Hl9xo.mjs";import{t as l}from"./progress-C_yVLVcl.mjs";import{t as u}from"./run-BlSXngtI.mjs";import"./telemetry-jl3s2-bN.mjs";import{a as d,n as f,t as p}from"./body-parser-BKcZS9iJ.mjs";import{n as m,t as h}from"./input-validation-D7z60HJH.mjs";import{a as g,n as _}from"./prompt-kxvGZ6nF.mjs";import{n as ee,t as te}from"./raw-fetch-C_hWBr7n.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 y(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 ne={command:`delete <member-account-id>`,describe:`Remove an account membership from an Address Map`,builder:y,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();c({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 n=await r(e),a=e.local?t:await o();if(e.accountId=a,!await _({force:!!e.force}))return;let u=await l(`Deleting`,async()=>n.send(v,{account_id:a,address_map_id:e[`address-map-id`],member_account_id:e[`member-account-id`]}));s(u,{successLabel:`Deleted`})})};var re={method:`PUT`,path:t=>e`/accounts/${t.account_id}/addressing/address_maps/${t.address_map_id}/accounts/${t.member_account_id}`};function ie(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-X3wKppsT.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{t}from"./local-
|
|
2
|
+
import"./api-X3wKppsT.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{t}from"./local-CIeKNHSz.mjs";import{n}from"./auth-pbuzyz4C.mjs";import{a as r,t as i}from"./context-BryBS1zQ.mjs";import{t as a}from"./output-BJEgbI0G.mjs";import{t as o}from"./dry-run-gy0Hl9xo.mjs";import{t as s}from"./progress-C_yVLVcl.mjs";import{t as c}from"./run-BlSXngtI.mjs";import"./telemetry-jl3s2-bN.mjs";import{a as l,n as u,t as d}from"./body-parser-BKcZS9iJ.mjs";import{n as f}from"./input-validation-D7z60HJH.mjs";import{a as p,n as m}from"./prompt-kxvGZ6nF.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=>c({command:`agent-memory create-namespace`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await r();o({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?d({name:f(e.name,`name`,`text`)}):u(e.body)});return}let c=await n(e),l=e.local?t:await i();if(e.accountId=l,e.body){let t=u(e.body),n=await s(`Creating`,async()=>c.send(h,{body:t,account_id:l}));a(n,{successLabel:`Created`});return}e.name===void 0&&(e.name=await p(`name`,`Namespace name.`));let m=d({name:f(e.name,`name`,`text`)}),g=await s(`Creating`,async()=>c.send(h,{body:m,account_id:l}));a(g,{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-X3wKppsT.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{i as t,n}from"./auth-
|
|
2
|
+
import"./api-X3wKppsT.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{i as t,n}from"./auth-pbuzyz4C.mjs";import{i as r}from"./context-BryBS1zQ.mjs";import{t as i}from"./output-BJEgbI0G.mjs";import{t as a}from"./dry-run-gy0Hl9xo.mjs";import{t as o}from"./progress-C_yVLVcl.mjs";import{t as s}from"./run-BlSXngtI.mjs";import"./telemetry-jl3s2-bN.mjs";import{n as c}from"./body-parser-BKcZS9iJ.mjs";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=>s({command:`ai-audit robots bulk-get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){a({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:c(e.body)});return}let s=await n(e);if(e.zoneId=await r({zone:e.zone},s,{quiet:e.quiet}),e.body){let n=c(e.body);if(Array.isArray(n)&&n.length>25){let r=Math.ceil(n.length/25),a=null;for(let i=0;i<n.length;i+=25){let c=n.slice(i,i+25),l=Math.floor(i/25)+1;a=await o(`Loading: batch ${l}/${r}`,async()=>t(s,`POST`,`/zones/${e.zoneId}/ai-audit/robots/bulk`,{body:c}))}i(a,{successLabel:`Loaded`});return}let r=await o(`Loading`,async()=>t(s,`POST`,`/zones/${e.zoneId}/ai-audit/robots/bulk`,{body:n}));i(r,{successLabel:`Loaded`})}else if(e.body===void 0)throw Error(`--body is required for this command. Pass --body '<json>' or --body @path/to/file.json.`)})};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{r as e}from"./theme-BGHWSKCw.mjs";import"./api-X3wKppsT.mjs";import{t}from"./path-DRw6Y-nd.mjs";import{n,t as r}from"./local-
|
|
2
|
+
import{r as e}from"./theme-BGHWSKCw.mjs";import"./api-X3wKppsT.mjs";import{t}from"./path-DRw6Y-nd.mjs";import{n,t as r}from"./local-CIeKNHSz.mjs";import{a as i,i as a,n as o}from"./auth-pbuzyz4C.mjs";import{a as s,t as c}from"./context-BryBS1zQ.mjs";import{t as l}from"./output-BJEgbI0G.mjs";import{t as u}from"./dry-run-gy0Hl9xo.mjs";import{t as d}from"./progress-C_yVLVcl.mjs";import{n as f,t as p}from"./run-BlSXngtI.mjs";import"./telemetry-jl3s2-bN.mjs";import{n as m,t as h}from"./body-parser-BKcZS9iJ.mjs";import{n as g,t as _}from"./input-validation-D7z60HJH.mjs";import{a as v,i as ee,n as te}from"./prompt-kxvGZ6nF.mjs";import{n as ne}from"./raw-fetch-C_hWBr7n.mjs";import{_ as re,c as y,d as b,f as x,g as ie,h as ae,i as oe,l as S,m as se,n as ce,o as C,p as w,r as T,s as E,t as D}from"./schema-flags-CoTAkrz8.mjs";var O={method:`GET`,path:e=>t`/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=>p({command:`ai authors list`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let e=await s();u({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 o(e),n=e.local?r:await c();e.accountId=n;let i=await d(`Loading`,async()=>t.send(O,{account_id:n}));l(i,{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-X3wKppsT.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{t}from"./local-
|
|
2
|
+
import"./api-X3wKppsT.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{t}from"./local-CIeKNHSz.mjs";import{i as n,n as r}from"./auth-pbuzyz4C.mjs";import{a as i,t as a}from"./context-BryBS1zQ.mjs";import{t as o}from"./output-BJEgbI0G.mjs";import{t as s}from"./dry-run-gy0Hl9xo.mjs";import{t as c}from"./progress-C_yVLVcl.mjs";import{t as l}from"./run-BlSXngtI.mjs";import"./telemetry-jl3s2-bN.mjs";import{a as u,n as d,r as f,s as p,t as m}from"./body-parser-BKcZS9iJ.mjs";import{n as h}from"./input-validation-D7z60HJH.mjs";import{a as g,n as _}from"./prompt-kxvGZ6nF.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=>h(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=>l({command:`ai-gateway custom-domains create`,classification:{safeFlags:[`min-tls`,`dry-run`]}},e,async()=>{if(e.dryRun){let t=await i();s({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?m({domain:h(e.domain,`domain`,`text`),minTLS:e[`min-tls`],zone_id:h(e[`zone-id`],`zone-id`,`text`)}):d(e.body)});return}let n=await r(e),l=e.local?t:await a();if(e.accountId=l,e.body){let t=d(e.body),r=await c(`Creating`,async()=>n.send(v,{body:t,account_id:l,gateway_id:e[`gateway-id`]}));o(r,{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 u=m({domain:h(e.domain,`domain`,`text`),minTLS:e[`min-tls`],zone_id:h(e[`zone-id`],`zone-id`,`text`)}),f=await c(`Creating`,async()=>n.send(v,{body:u,account_id:l,gateway_id:e[`gateway-id`]}));o(f,{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"./api-X3wKppsT.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{t}from"./local-
|
|
2
|
+
import"./api-X3wKppsT.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{t}from"./local-CIeKNHSz.mjs";import{i as n,n as r}from"./auth-pbuzyz4C.mjs";import{a as i,t as a}from"./context-BryBS1zQ.mjs";import{t as o}from"./output-BJEgbI0G.mjs";import{t as s}from"./dry-run-gy0Hl9xo.mjs";import{t as c}from"./progress-C_yVLVcl.mjs";import{t as l}from"./run-BlSXngtI.mjs";import"./telemetry-jl3s2-bN.mjs";import{a as u,n as d,r as f,s as p,t as m}from"./body-parser-BKcZS9iJ.mjs";import{n as h,t as g}from"./input-validation-D7z60HJH.mjs";import{a as _,i as v,n as y}from"./prompt-kxvGZ6nF.mjs";import{n as ee,t as te}from"./raw-fetch-C_hWBr7n.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.`,demandOption:!0}).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=>h(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.`}).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:`The ai_search_options.reranking.match_threshold field`}).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.`}).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.`}).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=>h(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=>h(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=>h(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.`}).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 e=>l({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`]}},e,async()=>{if(e.dryRun){let t=await i();s({command:`cf ai-search chat-completions`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/ai-search/namespaces/${e.namespace==null?`<namespace>`:encodeURIComponent(String(e.namespace))}/instances/${e[`instance-id`]==null?`<instance-id>`:encodeURIComponent(String(e[`instance-id`]))}/chat/completions`,pathParams:{namespace:String(e.namespace??``),"instance-id":String(e[`instance-id`]??``)},bodyKind:`json`,body:e.body===void 0?m({ai_search_options:{cache:{cache_threshold:e[`ai-search-options-cache-cache-threshold`],enabled:e[`ai-search-options-cache-enabled`]},custom_metadata:f(e[`ai-search-options-custom-metadata`],`ai-search-options-custom-metadata`),query_rewrite:{enabled:e[`ai-search-options-query-rewrite-enabled`],model:h(e[`ai-search-options-query-rewrite-model`],`ai-search-options-query-rewrite-model`,`text`),rewrite_prompt:h(e[`ai-search-options-query-rewrite-rewrite-prompt`],`ai-search-options-query-rewrite-rewrite-prompt`,`text`)},reranking:{enabled:e[`ai-search-options-reranking-enabled`],match_threshold:e[`ai-search-options-reranking-match-threshold`],model:h(e[`ai-search-options-reranking-model`],`ai-search-options-reranking-model`,`text`)},retrieval:{boost_by:u(e[`ai-search-options-retrieval-boost-by`],`ai-search-options-retrieval-boost-by`),context_expansion:e[`ai-search-options-retrieval-context-expansion`],filters:f(e[`ai-search-options-retrieval-filters`],`ai-search-options-retrieval-filters`),fusion_method:e[`ai-search-options-retrieval-fusion-method`],keyword_match_mode:e[`ai-search-options-retrieval-keyword-match-mode`],match_threshold:e[`ai-search-options-retrieval-match-threshold`],max_num_results:e[`ai-search-options-retrieval-max-num-results`],retrieval_type:e[`ai-search-options-retrieval-retrieval-type`],return_on_failure:e[`ai-search-options-retrieval-return-on-failure`]}},messages:u(e.messages,`messages`),model:h(e.model,`model`,`text`),stream:e.stream},[[`ai_search_options`,`custom_metadata`],[`ai_search_options`,`retrieval`,`filters`]]):d(e.body)});return}let l=await r(e),g=e.local?t:await a();if(e.accountId=g,e.body){let t=d(e.body),r=await c(`Creating`,async()=>n(l,`POST`,`/accounts/${g}/ai-search/namespaces/${encodeURIComponent(String(e.namespace))}/instances/${encodeURIComponent(String(e[`instance-id`]))}/chat/completions`,{body:t}));o(r,{successLabel:`Created`});return}if(e.messages===void 0)throw Error(`--messages is required (or pass --body with this field set).`);let _={};e[`ai-search-options-cache-cache-threshold`]!==void 0&&p(_,[`ai_search_options`,`cache`,`cache_threshold`],e[`ai-search-options-cache-cache-threshold`]),e[`ai-search-options-cache-enabled`]!==void 0&&p(_,[`ai_search_options`,`cache`,`enabled`],e[`ai-search-options-cache-enabled`]),e[`ai-search-options-custom-metadata`]!==void 0&&p(_,[`ai_search_options`,`custom_metadata`],f(e[`ai-search-options-custom-metadata`],`ai-search-options-custom-metadata`)),e[`ai-search-options-query-rewrite-enabled`]!==void 0&&p(_,[`ai_search_options`,`query_rewrite`,`enabled`],e[`ai-search-options-query-rewrite-enabled`]),e[`ai-search-options-query-rewrite-model`]!==void 0&&p(_,[`ai_search_options`,`query_rewrite`,`model`],h(e[`ai-search-options-query-rewrite-model`],`ai-search-options-query-rewrite-model`,`text`)),e[`ai-search-options-query-rewrite-rewrite-prompt`]!==void 0&&p(_,[`ai_search_options`,`query_rewrite`,`rewrite_prompt`],h(e[`ai-search-options-query-rewrite-rewrite-prompt`],`ai-search-options-query-rewrite-rewrite-prompt`,`text`)),e[`ai-search-options-reranking-enabled`]!==void 0&&p(_,[`ai_search_options`,`reranking`,`enabled`],e[`ai-search-options-reranking-enabled`]),e[`ai-search-options-reranking-match-threshold`]!==void 0&&p(_,[`ai_search_options`,`reranking`,`match_threshold`],e[`ai-search-options-reranking-match-threshold`]),e[`ai-search-options-reranking-model`]!==void 0&&p(_,[`ai_search_options`,`reranking`,`model`],h(e[`ai-search-options-reranking-model`],`ai-search-options-reranking-model`,`text`)),e[`ai-search-options-retrieval-boost-by`]!==void 0&&p(_,[`ai_search_options`,`retrieval`,`boost_by`],u(e[`ai-search-options-retrieval-boost-by`],`ai-search-options-retrieval-boost-by`)),e[`ai-search-options-retrieval-context-expansion`]!==void 0&&p(_,[`ai_search_options`,`retrieval`,`context_expansion`],e[`ai-search-options-retrieval-context-expansion`]),e[`ai-search-options-retrieval-filters`]!==void 0&&p(_,[`ai_search_options`,`retrieval`,`filters`],f(e[`ai-search-options-retrieval-filters`],`ai-search-options-retrieval-filters`)),e[`ai-search-options-retrieval-fusion-method`]!==void 0&&p(_,[`ai_search_options`,`retrieval`,`fusion_method`],e[`ai-search-options-retrieval-fusion-method`]),e[`ai-search-options-retrieval-keyword-match-mode`]!==void 0&&p(_,[`ai_search_options`,`retrieval`,`keyword_match_mode`],e[`ai-search-options-retrieval-keyword-match-mode`]),e[`ai-search-options-retrieval-match-threshold`]!==void 0&&p(_,[`ai_search_options`,`retrieval`,`match_threshold`],e[`ai-search-options-retrieval-match-threshold`]),e[`ai-search-options-retrieval-max-num-results`]!==void 0&&p(_,[`ai_search_options`,`retrieval`,`max_num_results`],e[`ai-search-options-retrieval-max-num-results`]),e[`ai-search-options-retrieval-retrieval-type`]!==void 0&&p(_,[`ai_search_options`,`retrieval`,`retrieval_type`],e[`ai-search-options-retrieval-retrieval-type`]),e[`ai-search-options-retrieval-return-on-failure`]!==void 0&&p(_,[`ai_search_options`,`retrieval`,`return_on_failure`],e[`ai-search-options-retrieval-return-on-failure`]),e.messages!==void 0&&p(_,[`messages`],u(e.messages,`messages`)),e.model!==void 0&&p(_,[`model`],h(e.model,`model`,`text`)),e.stream!==void 0&&p(_,[`stream`],e.stream);let v=await c(`Creating`,async()=>n(l,`POST`,`/accounts/${g}/ai-search/namespaces/${encodeURIComponent(String(e.namespace))}/instances/${encodeURIComponent(String(e[`instance-id`]))}/chat/completions`,{body:_}));o(v,{successLabel:`Created`})})};var b={method:`POST`,path:t=>e`/accounts/${t.account_id}/ai-search/namespaces/${t.namespace}/instances`,body:`json`,errors:{400:`BadRequestError`,403:`ForbiddenError`,409:`ConflictError`,503:`ServiceUnavailableError`}};function x(e){return e.usage(`$0 ai-search create <namespace> <id>
|
|
5
5
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import"./api-X3wKppsT.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{n as t}from"./auth-
|
|
2
|
+
import"./api-X3wKppsT.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{n as t}from"./auth-pbuzyz4C.mjs";import{i as n}from"./context-BryBS1zQ.mjs";import{t as r}from"./output-BJEgbI0G.mjs";import{t as i}from"./dry-run-gy0Hl9xo.mjs";import{t as a}from"./progress-C_yVLVcl.mjs";import{t as o}from"./run-BlSXngtI.mjs";import"./telemetry-jl3s2-bN.mjs";import{a as s,n as c,t as l}from"./body-parser-BKcZS9iJ.mjs";import{n as u}from"./prompt-kxvGZ6nF.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){i({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}));r(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 printable ASCII characters. - 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.`}).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){i({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=await t(e),d=await n({zone:e.zone},o,{quiet:e.quiet});if(e.zoneId=d,!await u({force:!!e.force,message:`This operation overwrites the AI Security for Apps custom topics for a zone.`}))return;if(e.body){let t=c(e.body),n=await a(`Deleting`,async()=>o.send(m,{body:t,zone_id:d}));r(n,{successLabel:`Deleted`});return}let f=l({topics:s(e.topics,`topics`)}),p=await a(`Deleting`,async()=>o.send(m,{body:f,zone_id:d}));r(p,{successLabel:`Deleted`})})},_={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-X3wKppsT.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{t}from"./local-
|
|
2
|
+
import"./api-X3wKppsT.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{t}from"./local-CIeKNHSz.mjs";import{n}from"./auth-pbuzyz4C.mjs";import{a as r,t as i}from"./context-BryBS1zQ.mjs";import{t as a}from"./output-BJEgbI0G.mjs";import{t as o}from"./dry-run-gy0Hl9xo.mjs";import{t as s}from"./progress-C_yVLVcl.mjs";import{t as c}from"./run-BlSXngtI.mjs";import"./telemetry-jl3s2-bN.mjs";import{a as l,n as u,t as d}from"./body-parser-BKcZS9iJ.mjs";import{n as f}from"./input-validation-D7z60HJH.mjs";import{a as p,i as m,n as h}from"./prompt-kxvGZ6nF.mjs";import{n as g,t as _}from"./raw-fetch-C_hWBr7n.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 ee={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();o({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 n(e),l=e.local?t:await i();e.accountId=l;let u=await s(`Loading`,async()=>c.send(v,{account_id:l}));a(u,{successLabel:`Loaded`})})},te={command:`available-alerts`,describe:`Operations for available-alerts`,builder:e=>e.command(ee).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var ne={method:`GET`,path:t=>e`/accounts/${t.account_id}/alerting/v3/destinations/eligible`};function re(e){return e.usage(`$0 alerting destinations eligible get
|
|
5
5
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import"./api-X3wKppsT.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{t}from"./local-
|
|
2
|
+
import"./api-X3wKppsT.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{t}from"./local-CIeKNHSz.mjs";import{n}from"./auth-pbuzyz4C.mjs";import{a as r,i,t as a}from"./context-BryBS1zQ.mjs";import{t as o}from"./output-BJEgbI0G.mjs";import{t as s}from"./dry-run-gy0Hl9xo.mjs";import{t as c}from"./progress-C_yVLVcl.mjs";import{t as l}from"./run-BlSXngtI.mjs";import"./telemetry-jl3s2-bN.mjs";import{a as u,n as d,t as f}from"./body-parser-BKcZS9iJ.mjs";import{n as p}from"./input-validation-D7z60HJH.mjs";import{a as m}from"./prompt-kxvGZ6nF.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=>l({command:`analytics latency colos get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){s({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 t=await n(e),r=await i({zone:e.zone},t,{quiet:e.quiet});e.zoneId=r;let a=await c(`Loading`,async()=>t.send(h,{zone_id:r}));o(a,{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"./api-X3wKppsT.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{t}from"./local-
|
|
2
|
+
import"./api-X3wKppsT.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{t}from"./local-CIeKNHSz.mjs";import{i as n,n as r}from"./auth-pbuzyz4C.mjs";import{a as i,t as a}from"./context-BryBS1zQ.mjs";import{t as o}from"./output-BJEgbI0G.mjs";import{t as s}from"./dry-run-gy0Hl9xo.mjs";import{t as c}from"./progress-C_yVLVcl.mjs";import{t as l}from"./run-BlSXngtI.mjs";import"./telemetry-jl3s2-bN.mjs";import{n as u,t as d}from"./input-validation-D7z60HJH.mjs";var f={method:`POST`,path:t=>e`/accounts/${t.account_id}/analytics_engine/sql`,errors:{400:`BadRequestError`,403:`ForbiddenError`,422:`UnprocessableEntityError`,429:`TooManyRequestsError`,500:`InternalServerError`,503:`ServiceUnavailableError`,504:`GatewayTimeoutError`}};function p(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:`Raw JSON request body (bypasses individual flags)`}).option(`file`,{type:`string`,description:`Path to a file to upload as the request body`})}const m={command:`query`,describe:`Execute an Analytics Engine SQL query via request body`,builder:p,handler:async e=>l({command:`analytics-engine sql query`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await i();s({command:`cf analytics-engine sql query`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/analytics_engine/sql`,pathParams:{},bodyKind:`octet-stream`,body:e.body});return}let l=await r(e),p=e.local?t:await a();if(e.accountId=p,e.file){let t=d(e.file),r=await c(`Loading`,async()=>n(l,`POST`,`/accounts/${p}/analytics_engine/sql`,{body:t,headers:{"Content-Type":`text/plain`}}));o(r,{successLabel:`Loaded`});return}if(e.body){let t=u(e.body,`body`,`binary`),r=await c(`Loading`,async()=>n(l,`POST`,`/accounts/${p}/analytics_engine/sql`,{body:t,headers:{"Content-Type":`text/plain`}}));o(r,{successLabel:`Loaded`});return}let m=await c(`Loading`,async()=>l.send(f,{account_id:p}));o(m,{successLabel:`Loaded`})})},h={command:`sql`,describe:`Operations for sql`,builder:e=>e.command(m).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},g={command:`analytics-engine`,describe:`analytics-engine`,builder:e=>e.command(h).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};export{g as default};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import"./api-X3wKppsT.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{t}from"./local-
|
|
2
|
+
import"./api-X3wKppsT.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{t}from"./local-CIeKNHSz.mjs";import{i as n,n as r}from"./auth-pbuzyz4C.mjs";import{a as i,i as a,t as o}from"./context-BryBS1zQ.mjs";import{t as s}from"./output-BJEgbI0G.mjs";import{t as c}from"./dry-run-gy0Hl9xo.mjs";import{t as l}from"./progress-C_yVLVcl.mjs";import{t as u}from"./run-BlSXngtI.mjs";import"./telemetry-jl3s2-bN.mjs";import{a as d,n as f,t as p}from"./body-parser-BKcZS9iJ.mjs";import{n as m}from"./input-validation-D7z60HJH.mjs";import{a as h,i as g,n as _}from"./prompt-kxvGZ6nF.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=>m(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=>u({command:`api-security schema-validation schemas create`,classification:{safeFlags:[`kind`,`validation-enabled`,`dry-run`]}},e,async()=>{if(e.dryRun){c({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?p({kind:e.kind,name:m(e.name,`name`,`text`),source:m(e.source,`source`,`text`),validation_enabled:e[`validation-enabled`]}):f(e.body)});return}let t=await r(e),n=await a({zone:e.zone},t,{quiet:e.quiet});if(e.zoneId=n,e.body){let r=f(e.body),i=await l(`Creating`,async()=>t.send(v,{body:r,zone_id:n}));s(i,{successLabel:`Created`});return}if(e.kind===void 0&&(e.kind=await g(`kind`,`The kind of the schema`,[`openapi_v3`])),e.name===void 0&&(e.name=await h(`name`,`A human-readable name for the schema`)),e.source===void 0&&(e.source=await h(`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 i=p({kind:e.kind,name:m(e.name,`name`,`text`),source:m(e.source,`source`,`text`),validation_enabled:e[`validation-enabled`]}),o=await l(`Creating`,async()=>t.send(v,{body:i,zone_id:n}));s(o,{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-X3wKppsT.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{t}from"./local-
|
|
2
|
+
import"./api-X3wKppsT.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{t}from"./local-CIeKNHSz.mjs";import{n}from"./auth-pbuzyz4C.mjs";import{a as r,i,t as a}from"./context-BryBS1zQ.mjs";import{t as o}from"./output-BJEgbI0G.mjs";import{t as s}from"./dry-run-gy0Hl9xo.mjs";import{t as c}from"./progress-C_yVLVcl.mjs";import{t as l}from"./run-BlSXngtI.mjs";import"./telemetry-jl3s2-bN.mjs";import{n as u,t as d}from"./body-parser-BKcZS9iJ.mjs";import{n as f}from"./input-validation-D7z60HJH.mjs";import{i as p}from"./prompt-kxvGZ6nF.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();s({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 n(e),l=e.local?t:await a();e.accountId=l;let u=await c(`Loading`,async()=>i.send(m,{account_id:l}));o(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-X3wKppsT.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{t}from"./local-
|
|
2
|
+
import"./api-X3wKppsT.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{t}from"./local-CIeKNHSz.mjs";import{n}from"./auth-pbuzyz4C.mjs";import{a as r,t as i}from"./context-BryBS1zQ.mjs";import{t as a}from"./output-BJEgbI0G.mjs";import{t as o}from"./dry-run-gy0Hl9xo.mjs";import{t as s}from"./progress-C_yVLVcl.mjs";import{t as c}from"./run-BlSXngtI.mjs";import"./telemetry-jl3s2-bN.mjs";import{n as l,t as u}from"./body-parser-BKcZS9iJ.mjs";import{n as d}from"./input-validation-D7z60HJH.mjs";import{a as f,n as p}from"./prompt-kxvGZ6nF.mjs";import{n as m,t as h}from"./raw-fetch-C_hWBr7n.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=>d(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=>c({command:`artifacts namespaces create`,classification:{safeFlags:[`jurisdiction`,`dry-run`]}},e,async()=>{if(e.dryRun){let t=await r();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?u({jurisdiction:e.jurisdiction,namespace:d(e.namespace,`namespace`,`text`)}):l(e.body)});return}let c=await n(e),p=e.local?t:await i();if(e.accountId=p,e.body){let t=l(e.body),n=await s(`Creating`,async()=>c.send(g,{body:t,account_id:p}));a(n,{successLabel:`Created`});return}e.namespace===void 0&&(e.namespace=await f(`namespace`,`The namespace field`));let m=u({jurisdiction:e.jurisdiction,namespace:d(e.namespace,`namespace`,`text`)}),h=await s(`Creating`,async()=>c.send(g,{body:m,account_id:p}));a(h,{successLabel:`Created`})})};var ee={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 te(e){return e.usage(`$0 artifacts namespaces delete <namespace>
|
|
5
5
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import"./api-X3wKppsT.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{t}from"./local-
|
|
2
|
+
import"./api-X3wKppsT.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{t}from"./local-CIeKNHSz.mjs";import{n}from"./auth-pbuzyz4C.mjs";import{a as r,t as i}from"./context-BryBS1zQ.mjs";import{t as a}from"./output-BJEgbI0G.mjs";import{t as o}from"./dry-run-gy0Hl9xo.mjs";import{t as s}from"./progress-C_yVLVcl.mjs";import{t as c}from"./run-BlSXngtI.mjs";import"./telemetry-jl3s2-bN.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();o({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 n(e),d=e.local?t:await i();e.accountId=d;let f=await s(`Loading`,async()=>u.send(l,{account_id:d,...c}));a(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,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import{r as e}from"./theme-BGHWSKCw.mjs";import{t}from"./agent-context-Dtyy4aKL.mjs";import{i as n}from"./blocks-
|
|
2
|
+
import{r as e}from"./theme-BGHWSKCw.mjs";import{t}from"./agent-context-Dtyy4aKL.mjs";import{i as n}from"./blocks-DmOx-xEv.mjs";import"./ui-Dt1-eURh.mjs";import{t as r}from"./log-BWdaOGOW.mjs";import{d as i,f as a,i as o,r as s,t as c}from"./oauth-DetIFT59.mjs";import{t as l}from"./auth-token-BcIV7k1B.mjs";import{t as u}from"./output-BJEgbI0G.mjs";import{n as d}from"./run-BlSXngtI.mjs";import"./telemetry-jl3s2-bN.mjs";import{a as f,c as p,i as m,n as h,o as g,r as _,s as v,t as y}from"./login-h8vuvNN3.mjs";const b={command:`logout`,describe:`Log out and remove stored credentials`,handler:async t=>{m(t,`logout`,"Run `cf auth delete <name>` to remove a named profile.");let n=s();n!=="default"&&r.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 i(`default`)}},x={command:`whoami`,describe:`Show current user and authentication status`,handler:async e=>{if(e[`temporary-account`]||e[`event-code`]!==void 0)throw Error(`--temporary-account and --event-code are not supported by cf auth whoami.`);let r=process.env.CLOUDFLARE_API_TOKEN,i=a(),s;s=r?`CLOUDFLARE_API_TOKEN environment variable`:i?.oauth_token?`OAuth token from ${o()}`:`none`;let d;try{d=await l()}catch{u({authenticated:!1,error:`Not logged in`}),s===`none`&&t().isAgentic&&console.error(n('Ask the user: "I can put this online for 60 minutes without you signing in. To keep it, complete the temporary-account claim before it expires. Would you like me to deploy it that way?" (https://developers.cloudflare.com/workers/platform/claim-deployments/) If they agree, run `cf deploy --temporary-account`.'));return}let{createCloudflareClientWithToken:f}=await import(`./auth-B2V5gsm4.mjs`),{default:p}=await import(`./get-BTisquA3.mjs`),m=f({apiToken:d}),h,g=[],[_,v]=await Promise.allSettled([m.send(p),c()]);if(_.status===`fulfilled`){let e=_.value;e&&`email`in e&&typeof e.email==`string`&&(h=e.email)}else process.env.DEBUG&&console.error(`User lookup error:`,_.reason);v.status===`fulfilled`?g=v.value:process.env.DEBUG&&console.error(`Account lookup error:`,v.reason);let y=_.status===`fulfilled`||v.status===`fulfilled`,b={authenticated:!0,authSource:s,tokenValid:y,...h&&{email:h},accounts:g};i?.oauth_token&&(b.scopes=i.scopes,b.expiresAt=i.expiration_time),u(b)}},S={command:`auth`,describe:`Manage authentication and profiles`,builder:e=>e.command(d(y,{command:`auth login`,classification:h})).command(C(b,`auth logout`)).command(C(x,`auth whoami`)).command(C(f,`auth create`,[`browser`,`device`])).command(C(v,`auth delete`)).command(C(_,`auth activate`)).command(C(g,`auth deactivate`)).command(C(p,`auth list`)).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function C(e,t,n=[],r){return d(e,{command:t,classification:{safeFlags:n,shortFlagAliases:r}})}export{S as default};
|