cf 1.0.0-beta.5 → 1.0.0-beta.7
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 +5362 -5482
- package/dist/_meta/hand-written-commands.json +1 -1
- package/dist/_meta/schemas.json +3014 -3160
- package/dist/abuse-reports-D7Hrm0MV.mjs +24 -0
- package/dist/{access-DRlrq_cq.mjs → access-_upGyV1N.mjs} +1 -1
- package/dist/{account-tags-DMCYk5rR.mjs → account-tags-CrijxKW6.mjs} +2 -2
- package/dist/{accounts-BlVDzIWc.mjs → accounts-Db5SMjh2.mjs} +32 -26
- package/dist/{acm-CCc33e4l.mjs → acm-9cXKVj2C.mjs} +1 -1
- package/dist/{addressing-BA-5A3jQ.mjs → addressing-D_FtdMEM.mjs} +1 -1
- package/dist/{agent-memory-Csgs8W5u.mjs → agent-memory-BygNv4aJ.mjs} +1 -1
- package/dist/{ai-BN_pzw7p.mjs → ai-D-55e3UD.mjs} +7 -9
- package/dist/{ai-audit-Dbln3Ai6.mjs → ai-audit-DDQ68vrA.mjs} +1 -1
- package/dist/{ai-gateway-BhASWwdp.mjs → ai-gateway-sP2B_8Ef.mjs} +1 -1
- package/dist/{ai-search-DvA8g4xr.mjs → ai-search-DvMUOhub.mjs} +1 -1
- package/dist/{ai-security-nualpneg.mjs → ai-security-BVWVxZmP.mjs} +1 -1
- package/dist/{alerting-HUbVuQMl.mjs → alerting-DZ9gxuKS.mjs} +1 -1
- package/dist/{analytics-ClKN9YnQ.mjs → analytics-Y2xckwX1.mjs} +1 -1
- package/dist/{analytics_engine-DP_O5HIq.mjs → analytics_engine-A8gMyUty.mjs} +1 -1
- package/dist/{api-security-Ce_9nFH9.mjs → api-security-CNMyTBs-.mjs} +1 -1
- package/dist/{argo-CLLBrtiV.mjs → argo-Be_3wk6n.mjs} +1 -1
- package/dist/{artifacts-CIxZX3VM.mjs → artifacts-B8roQjRg.mjs} +1 -1
- package/dist/{audit-logs-DjzIj9T4.mjs → audit-logs-DgkSAyTu.mjs} +1 -1
- package/dist/{auth-CgPQplnD.mjs → auth-B74oTm3b.mjs} +1 -1
- package/dist/{auth-B_Utev-x.mjs → auth-CHTMVVW3.mjs} +2 -2
- package/dist/{autoconfig-BunaOShS.mjs → autoconfig-DXXV-Xyz.mjs} +1 -1
- package/dist/basin-catalog-85ubk7YB.mjs +46 -0
- package/dist/{billing-tHlHhEVf.mjs → billing-Cc6_LzwM.mjs} +1 -1
- package/dist/{bot-management-ChV-gaXh.mjs → bot-management-DSJtyyh_.mjs} +1 -1
- package/dist/{botnet-feed-DQWBOEqC.mjs → botnet-feed-BkhLL1Oz.mjs} +1 -1
- package/dist/{brand-protection-B3afeuOj.mjs → brand-protection-Bldu6Tvz.mjs} +1 -1
- package/dist/{browser-run-eQMomr1x.mjs → browser-run-B_0Fh5Cg.mjs} +1 -1
- package/dist/{build-VUz0URCV.mjs → build-SxtWgMkQ.mjs} +1 -1
- package/dist/build-VB6btUkb.mjs +2 -0
- package/dist/{builds-wTOvlp0S.mjs → builds-BwP-UvyR.mjs} +1 -1
- package/dist/{cache-s4HK0we7.mjs → cache-DQDer_pF.mjs} +27 -27
- package/dist/{certificate-authorities-CaPUfYzA.mjs → certificate-authorities-Dfc0QVyT.mjs} +1 -1
- package/dist/{cf-O3gEaXYZ.mjs → cf-Dw3HK_Qy.mjs} +2 -2
- package/dist/chunk-FT2NMTJB-1VFYM1Ro.mjs +97 -0
- package/dist/chunk-KKDV4JPS-DdzLLtnl.mjs +2 -0
- package/dist/{cli-CT-QJu7q.mjs → cli-B0_EbPK6.mjs} +1 -1
- package/dist/{client-certificates-BfNDnT8H.mjs → client-certificates-BVfmuFsa.mjs} +1 -1
- package/dist/{client-side-security-BV7iORbb.mjs → client-side-security-DiaSjw1y.mjs} +1 -1
- package/dist/{cloud-connector-CGT8ezvv.mjs → cloud-connector-B6iUAIzF.mjs} +1 -1
- package/dist/{cloudflared-91JvyShh.mjs → cloudflared-C4KjWoEY.mjs} +1 -1
- package/dist/{cloudforce-one-BDhbXtA_.mjs → cloudforce-one-B2PweUyv.mjs} +47 -56
- package/dist/{command-BgBsFEYv.mjs → command-8lsstsSi.mjs} +1 -1
- package/dist/{command-Cox9Wh1i.mjs → command-BC7oCgWp.mjs} +1 -1
- package/dist/{command-DjNcY4cf.mjs → command-BDCTd8Ra.mjs} +1 -1
- package/dist/{command-C_l69o2b.mjs → command-BOktUlKN.mjs} +1 -1
- package/dist/{command-SgtzgQrs.mjs → command-Bi0InjEd.mjs} +1 -1
- package/dist/{command-C3Qhz4kU.mjs → command-BtmIP6e1.mjs} +1 -1
- package/dist/{command-DpEQ07Xe.mjs → command-CNfYJjg7.mjs} +1 -1
- package/dist/{command-ozwmaY7n.mjs → command-CnEF-7o0.mjs} +1 -1
- package/dist/{command-DJF4wdrM.mjs → command-CrS8Q6U3.mjs} +1 -1
- package/dist/{command-DH67hNLj.mjs → command-CvzUv83h.mjs} +1 -1
- package/dist/{command-C8gLcKlB.mjs → command-CzzAaOGK.mjs} +1 -1
- package/dist/{command-lYaHS62l.mjs → command-D1S9Z0gV.mjs} +1 -1
- package/dist/{command-G_VL3Jf8.mjs → command-DVSwnnMJ.mjs} +1 -1
- package/dist/{command-C72KLHMc.mjs → command-WCtue6i1.mjs} +1 -1
- package/dist/{command-DQcG8PK-.mjs → command-WrVIhg73.mjs} +1 -1
- package/dist/{completions-VR53Fiec.mjs → completions-UDpzduKn.mjs} +1 -1
- package/dist/{connector-interrupts-hfttjm-b.mjs → connector-interrupts-47IuSZFG.mjs} +1 -1
- package/dist/{connector-telemetry-events-5nVvivYA.mjs → connector-telemetry-events-BQb3Hsnt.mjs} +1 -1
- package/dist/{connector-telemetry-snapshots-DKk_7VQa.mjs → connector-telemetry-snapshots-CeFJqT4_.mjs} +1 -1
- package/dist/{connectors-CvX4Z3cg.mjs → connectors-CF9n8yHv.mjs} +1 -1
- package/dist/{containers-BU9RquYh.mjs → containers-D4pJisp-.mjs} +7 -7
- package/dist/{containers-BQxj87na.mjs → containers-DBs5P8vO.mjs} +1 -1
- package/dist/{content-scan-hWh-aGbO.mjs → content-scan-DLdl9ZpM.mjs} +1 -1
- package/dist/{context-CPVzoKbN.mjs → context-C71TA0Yp.mjs} +1 -1
- package/dist/{cps-o8QQFfnF.mjs → cps-X4HFj7Qw.mjs} +1 -1
- package/dist/{csamScanner-DHod3Hak.mjs → csamScanner-tkB73Sgi.mjs} +1 -1
- package/dist/{ct-alerting-D-_YsE1x.mjs → ct-alerting-HDZJVnZS.mjs} +1 -1
- package/dist/{custom-certificates-UnaVRb3W.mjs → custom-certificates-ClGBR4Oo.mjs} +1 -1
- package/dist/{custom-csrs-BCJ7LOUe.mjs → custom-csrs-D3b2bNiX.mjs} +1 -1
- package/dist/{custom-hostnames-DOluVIfa.mjs → custom-hostnames-CWyObX98.mjs} +1 -1
- package/dist/{custom-nameservers-CvIucaA2.mjs → custom-nameservers-Di8z6ioQ.mjs} +1 -1
- package/dist/{custom-pages-DzrXSeCR.mjs → custom-pages-D2l1rZfJ.mjs} +1 -1
- package/dist/d1-aDiX5BdB.mjs +41 -0
- package/dist/{dcv-delegation-9bMHPSoc.mjs → dcv-delegation-D-vyZC0M.mjs} +1 -1
- package/dist/{deploy-BT_EVz0K.mjs → deploy-DBmw0fiq.mjs} +1 -1
- package/dist/{deploy-input-YW632ysz.mjs → deploy-input-DxuYgPps.mjs} +1 -1
- package/dist/{dev-jRnP9IIJ.mjs → dev-SpCmvb4M.mjs} +1 -1
- package/dist/{diagnostics-BIe-XR-P.mjs → diagnostics-nRYcfs30.mjs} +1 -1
- package/dist/discover-CcGReXr0.mjs +2 -0
- package/dist/dist-BuCJ_55d.mjs +366 -0
- package/dist/{dist-COohnEBL.mjs → dist-Du72beRE.mjs} +3 -3
- package/dist/{dls-BuKO5QWL.mjs → dls-CANrS9Ke.mjs} +1 -1
- package/dist/{dns-DzVN-WA4.mjs → dns-Vt3Dc_Vu.mjs} +52 -43
- package/dist/{dns-firewall-Dx_XvWKJ.mjs → dns-firewall-CVSEaJZY.mjs} +1 -1
- package/dist/durable-objects-B-e7xqhL.mjs +6 -0
- package/dist/{email-auth-DqIyzEcR.mjs → email-auth-hUz_5D2H.mjs} +1 -1
- package/dist/{email-routing-8rhAmzOY.mjs → email-routing-By5Q7zP0.mjs} +1 -1
- package/dist/{email-security-BRq5J31C.mjs → email-security-C9VhlZkz.mjs} +50 -50
- package/dist/{email-sending-Bsfk4Jia.mjs → email-sending-C7cVl025.mjs} +1 -1
- package/dist/{error-sanitization-Dc4bLj8k.mjs → error-sanitization-BXqhvJsR.mjs} +1 -1
- package/dist/error-sanitization-CSlapZbU.mjs +2 -0
- package/dist/{fieldExtractors-COaK02vB.mjs → fieldExtractors-DMdnj9KA.mjs} +1 -1
- package/dist/{firewall-Dar706zc.mjs → firewall-C93JnCsO.mjs} +1 -1
- package/dist/flagship-CVZWzLTv.mjs +28 -0
- package/dist/{fraud-H-mdJfRU.mjs → fraud-DJ3jnp3_.mjs} +1 -1
- package/dist/generate-t4dFfFRV.mjs +2 -0
- package/dist/{google-tag-gateway-zqXS_12f.mjs → google-tag-gateway-DbE_3TkF.mjs} +1 -1
- package/dist/{healthchecks-x889sT8g.mjs → healthchecks-DKWTVerg.mjs} +1 -1
- package/dist/{hostnames-DqB5I-_U.mjs → hostnames-VNPfazJd.mjs} +1 -1
- package/dist/hyperdrive-BKtLQf8J.mjs +37 -0
- package/dist/{iam-CKt7U41p.mjs → iam-BsZ7ORd5.mjs} +1 -1
- package/dist/{images-CakdBcMc.mjs → images-Bd3lRkGK.mjs} +1 -1
- package/dist/index.mjs +1 -1
- package/dist/{init-CVyWV_Ow.mjs → init-D9pazuYJ.mjs} +2 -2
- package/dist/{intel-Dcv1vMsK.mjs → intel-ropzhmya.mjs} +1 -1
- package/dist/{ips-Ce9_k1Vh.mjs → ips-85Mq1qXg.mjs} +1 -1
- package/dist/{keyless-certificates-Cf_6sc7K.mjs → keyless-certificates-CRzCJ82O.mjs} +1 -1
- package/dist/{keys-DW2A43fL.mjs → keys-CWUCTmsD.mjs} +1 -1
- package/dist/{kv-BKBWXf8s.mjs → kv-BT2uSv-y.mjs} +1 -1
- package/dist/{lazy-command-BOjQB_U7.mjs → lazy-command-DjCioGYx.mjs} +1 -1
- package/dist/{leaked-credential-checks-D-gwxxaF.mjs → leaked-credential-checks-DjDq1Toq.mjs} +1 -1
- package/dist/{load-balancers-DHUVei95.mjs → load-balancers--4Ouz99G.mjs} +1 -1
- package/dist/{local-B3OyWKkW.mjs → local-C9i1d0ma.mjs} +1 -1
- package/dist/local-j2uOZ8Uq.mjs +2 -0
- package/dist/{local-runtime-Co5vVDlI.mjs → local-runtime-WQyZe3ed.mjs} +1 -1
- package/dist/{login-D37fy09s.mjs → login-BDFpobb3.mjs} +1 -1
- package/dist/{login-CptngugC.mjs → login-CHjklzf2.mjs} +1 -1
- package/dist/{logo-matches-D1aNSBnZ.mjs → logo-matches-DVQfRSCD.mjs} +1 -1
- package/dist/{logos-SyEjq15s.mjs → logos-BUEuiGuz.mjs} +1 -1
- package/dist/{logpush-l9tVWnua.mjs → logpush-cKUA9fBU.mjs} +1 -1
- package/dist/logs-2OJeMqWG.mjs +36 -0
- package/dist/{magic-cloud-networking-CN2Qd2Lx.mjs → magic-cloud-networking-D29ITjYQ.mjs} +1 -1
- package/dist/{magic-network-monitoring-8jxG-tPc.mjs → magic-network-monitoring-Bva_tF2u.mjs} +1 -1
- package/dist/{magic-transit-DLhIQz2l.mjs → magic-transit-DG_ZmEzW.mjs} +108 -112
- package/dist/{managed-defense-CgKdTd9J.mjs → managed-defense-xGCISaB_.mjs} +1 -1
- package/dist/{managed-transforms-BASi4j_s.mjs → managed-transforms-DDgqNWVJ.mjs} +1 -1
- package/dist/{matches-BCV6x948.mjs → matches-CxWA1zUN.mjs} +1 -1
- package/dist/{mcp-DQODvLQm.mjs → mcp-DVoYs5z5.mjs} +1 -1
- package/dist/{mesh-S_yYh-w3.mjs → mesh-qenm6AM4.mjs} +1 -1
- package/dist/{migrate-B4kBnkpV.mjs → migrate-CipwWhJE.mjs} +1 -1
- package/dist/monetization-CUWtxI_y.mjs +20 -0
- package/dist/{mtls-certificates-XJXK21J_.mjs → mtls-certificates-xUIkGtmX.mjs} +1 -1
- package/dist/{network-DA81Mcdh.mjs → network-Y8kCdzJC.mjs} +1 -1
- package/dist/{network-interconnects-OttR92s7.mjs → network-interconnects-CEvvsGwX.mjs} +1 -1
- package/dist/{oauth-CKeW8CqE.mjs → oauth-J2zz9fHk.mjs} +1 -1
- package/dist/{oauth-clients-Ba-YZsxB.mjs → oauth-clients-B7qfaBLY.mjs} +1 -1
- package/dist/{oauth-scopes-XqOk2zCQ.mjs → oauth-scopes-D7_xDwvo.mjs} +1 -1
- package/dist/{oauth-ChXrM0q9.mjs → oauth-vj6qkLCC.mjs} +1 -1
- package/dist/{observability-BdIbZ1D8.mjs → observability-_aI_XF0M.mjs} +1 -1
- package/dist/{organization-DnQ2_txo.mjs → organization-C41nlZcO.mjs} +7 -7
- package/dist/{organizations-BkI0IhEg.mjs → organizations-D15_q5u6.mjs} +1 -1
- package/dist/{origin-ca-certificates-Br91H1EG.mjs → origin-ca-certificates-DGSGDaNw.mjs} +1 -1
- package/dist/{origin-post-quantum-encryption-BcpK8DaG.mjs → origin-post-quantum-encryption-C_9NBBkG.mjs} +1 -1
- package/dist/{origin-tls-client-auth-CYK6YnzK.mjs → origin-tls-client-auth-Dh9vTi_F.mjs} +1 -1
- package/dist/{page-rules-DpOcNsJr.mjs → page-rules-CWZJaKuz.mjs} +1 -1
- package/dist/pages-CVlGF6mj.mjs +54 -0
- package/dist/{pay-per-crawl-BORpCGxC.mjs → pay-per-crawl-BJ10CSH9.mjs} +1 -1
- package/dist/{pay-per-use-CZw-KHEz.mjs → pay-per-use-B3eQmzWv.mjs} +1 -1
- package/dist/{pipelines-DDDyJ6Oe.mjs → pipelines-VhDz1fDL.mjs} +1 -1
- package/dist/{precursor-DrH1i64o.mjs → precursor-CvYpYouB.mjs} +1 -1
- package/dist/{previews-CiYBBKj8.mjs → previews-CJHqRKPF.mjs} +1 -1
- package/dist/{progress-DS2fwfNP.mjs → progress-BlxgG8Ss.mjs} +1 -1
- package/dist/{prompt-doX80PCd.mjs → prompt-ClEoR47s.mjs} +1 -1
- package/dist/{queries-CD6h6iEP.mjs → queries-8m5UOv21.mjs} +1 -1
- package/dist/{queues-3TpjE349.mjs → queues-C8P3RI-3.mjs} +1 -1
- package/dist/{r2-CV_hSFkM.mjs → r2-ChQ_GZA7.mjs} +27 -34
- package/dist/r2-data-catalog-DpktRU5y.mjs +2 -0
- package/dist/{radar-6-4_LoQ1.mjs → radar-B9PnH7nW.mjs} +1 -1
- package/dist/{raw-fetch-_Z55VEDY.mjs → raw-fetch-CWRDTVMr.mjs} +1 -1
- package/dist/{realtime-B5ce977I.mjs → realtime-31GZpgm5.mjs} +1 -1
- package/dist/{registrar-CF-3h2dN.mjs → registrar-fBw5wh-I.mjs} +2 -2
- package/dist/{registrar-sandbox-BDRZbyAV.mjs → registrar-sandbox-Bcr5l7Js.mjs} +2 -2
- package/dist/{registry-DBMUTYqf.mjs → registry-rtPfnFht.mjs} +1 -1
- package/dist/{reporting-CiS-RBNJ.mjs → reporting-BfpNLeGh.mjs} +1 -1
- package/dist/{request-headers-DPbWytRv.mjs → request-headers-DmiSqfLo.mjs} +1 -1
- package/dist/{request-tracers-Drcpv8ha.mjs → request-tracers-DCpDftuC.mjs} +1 -1
- package/dist/{resource-sharing-BI3CoOjl.mjs → resource-sharing-D-OCBlIj.mjs} +1 -1
- package/dist/{resource-tagging-D4i_-E0W.mjs → resource-tagging-DCn8TwS0.mjs} +1 -1
- package/dist/{rules-C4I4CLoq.mjs → rules-DHeYlXlI.mjs} +4 -4
- package/dist/{rulesets-c2efesdy.mjs → rulesets-BMv5GVEt.mjs} +20 -20
- package/dist/{rum-DT58nW8a.mjs → rum-CaTeqDsB.mjs} +1 -1
- package/dist/run-BJmOnVJI.mjs +2 -0
- package/dist/run-l2pCxS-W.mjs +2 -0
- package/dist/{schema-flags-DDW79Tda.mjs → schema-flags-DBujG5kJ.mjs} +1 -1
- package/dist/{scim-PfJWMuRu.mjs → scim-DHwWD1nA.mjs} +1 -1
- package/dist/{sdk-Bx29ZKK3.mjs → sdk-DzVznUuv.mjs} +1 -1
- package/dist/{secrets-store-7jrgww1J.mjs → secrets-store-DoH9JnqC.mjs} +1 -1
- package/dist/security-insights-oqJuf8MY.mjs +40 -0
- package/dist/{security-txt-ButEG3qy.mjs → security-txt-BY07I5Bx.mjs} +1 -1
- package/dist/{session-CjQFm10R.mjs → session-CZTuHcbm.mjs} +1 -1
- package/dist/{shared-JNtE--kh.mjs → shared-D0PR8DbO.mjs} +1 -1
- package/dist/{smart-shield-DgbYuUFC.mjs → smart-shield-g5UHGdCQ.mjs} +1 -1
- package/dist/{snippets-De-xVTIb.mjs → snippets-Bgn7ZKJo.mjs} +1 -1
- package/dist/{spawn-IM_tQldH.mjs → spawn-BSnyZB0W.mjs} +1 -1
- package/dist/{spectrum-DcknX0jS.mjs → spectrum-BmLwQKib.mjs} +1 -1
- package/dist/{speed-Cn_p-ieT.mjs → speed-CesLeufR.mjs} +1 -1
- package/dist/{src-BYjublVL.mjs → src-wDWeXeJp.mjs} +5 -5
- package/dist/{ssl-Bkn4ke9Q.mjs → ssl-DrYK9KX-.mjs} +1 -1
- package/dist/startup-profile-CLmojOrn.mjs +2 -0
- package/dist/{startup-profile-DrV846S5.mjs → startup-profile-CR7GMuLx.mjs} +2 -2
- package/dist/state-50FyMVTz.mjs +2 -0
- package/dist/{state-DhHOAdTo.mjs → state-BDkCKOju.mjs} +1 -1
- package/dist/{stream-Cx78uNm_.mjs → stream-D0sXaEj7.mjs} +1 -1
- package/dist/{submit-Gu34n1a6.mjs → submit-CpjZiCN9.mjs} +1 -1
- package/dist/{tags-BQqO7TLX.mjs → tags-B17h1YBS.mjs} +1 -1
- package/dist/telemetry-BqtdHwmi.mjs +2 -0
- package/dist/{telemetry-Qc-g_0fL.mjs → telemetry-D84K-X2j.mjs} +1 -1
- package/dist/tenant-S7-Cb54D.mjs +10 -0
- package/dist/{tenant-custom-nameservers-B5Nf5hLr.mjs → tenant-custom-nameservers-CZ8qgnt_.mjs} +1 -1
- package/dist/{tunnels-ndJtol-f.mjs → tunnels-DzSFv0qt.mjs} +1 -1
- package/dist/{turnstile-Cd65N6jD.mjs → turnstile-C5tc9QGH.mjs} +1 -1
- package/dist/update-check-7q-e6UWW.mjs +2 -0
- package/dist/{update-check-AraGlAQf.mjs → update-check-CpGj0g5l.mjs} +1 -1
- package/dist/update-check-worker.mjs +1 -1
- package/dist/{url-info-CQKJ5A-x.mjs → url-info-lY7WbQzK.mjs} +1 -1
- package/dist/{url-normalization-BPXZwYu0.mjs → url-normalization-BHVZ4ULQ.mjs} +1 -1
- package/dist/{url-scanner-Bq43LJ98.mjs → url-scanner-DRnPOsj9.mjs} +1 -1
- package/dist/{user-D4InwQxA.mjs → user-DyT-q94n.mjs} +1 -1
- package/dist/{values-C3YLablc.mjs → values-BE3pRW6M.mjs} +1 -1
- package/dist/{vectorize-CYt0qXQ5.mjs → vectorize-CGl0BOXJ.mjs} +3 -3
- package/dist/version-DOZrLErk.mjs +2 -0
- package/dist/{waiting-rooms-B3ksWao9.mjs → waiting-rooms-DbhiDyp_.mjs} +1 -1
- package/dist/{web-assets-DNiElHgV.mjs → web-assets-noQwig7x.mjs} +1 -1
- package/dist/{web3-DfMKMDix.mjs → web3-Dts8-Peq.mjs} +1 -1
- package/dist/workers-DtZRm0HJ.mjs +38 -0
- package/dist/{workers-builds-DbEy311-.mjs → workers-builds-ean9unEX.mjs} +1 -1
- package/dist/workers-for-platforms-jdC-4D-X.mjs +42 -0
- package/dist/{workers-vpc-BEnB6e_3.mjs → workers-vpc-D2PZCegg.mjs} +1 -1
- package/dist/{workflows-CX3Zer8w.mjs → workflows-C9QBOzZz.mjs} +2 -2
- package/dist/{wrangler-migration-BDkh1_IV.mjs → wrangler-migration-BDnS1puc.mjs} +1 -1
- package/dist/{zaraz-DR1KbYY-.mjs → zaraz-DVLkn3fF.mjs} +1 -1
- package/dist/{zero-trust-CLoXVq1e.mjs → zero-trust-DfwISsW4.mjs} +427 -441
- package/dist/{zone-B9qejq6W.mjs → zone-DQV-hfHN.mjs} +1 -1
- package/dist/{zones-BxU08wO0.mjs → zones-By8IT3CV.mjs} +1 -1
- package/package.json +14 -13
- package/dist/abuse-reports-DoqL_52r.mjs +0 -26
- package/dist/account-DfC3gRTf.mjs +0 -12
- package/dist/build-DFa0ngeO.mjs +0 -2
- package/dist/chunk-M77HNR46-DPbhuhiy.mjs +0 -2
- package/dist/chunk-RV27PEH3-Cws_30ln.mjs +0 -97
- package/dist/d1-BCg7BhWi.mjs +0 -45
- package/dist/discover-DgHRf-qo.mjs +0 -2
- package/dist/dist-DfMipWKR.mjs +0 -366
- package/dist/durable-objects-DnU6OsEb.mjs +0 -8
- package/dist/error-sanitization-Cu-8OKRA.mjs +0 -2
- package/dist/flagship-CTchDpyw.mjs +0 -28
- package/dist/generate-qMU-2MgC.mjs +0 -2
- package/dist/hyperdrive-sR7Mwif9.mjs +0 -37
- package/dist/local-qOpZjDed.mjs +0 -2
- package/dist/logs-EW0Pq-gf.mjs +0 -48
- package/dist/pages-Cw4DM-1N.mjs +0 -60
- package/dist/r2-data-catalog-D_YHTMFG.mjs +0 -44
- package/dist/run-CJ-6owN3.mjs +0 -2
- package/dist/run-D0esoYSn.mjs +0 -2
- package/dist/security-center-BhUM_Flh.mjs +0 -30
- package/dist/startup-profile-B0UCc9_J.mjs +0 -2
- package/dist/state-Dyo8DcW7.mjs +0 -2
- package/dist/telemetry-D2UwfCd1.mjs +0 -2
- package/dist/tenant-Dr0hGlhU.mjs +0 -12
- package/dist/update-check-D5-zqJoN.mjs +0 -2
- package/dist/version-DyZwKU6l.mjs +0 -2
- package/dist/workers-C8uiRedD.mjs +0 -40
- package/dist/workers-for-platforms-BjvcY5A1.mjs +0 -25
- /package/dist/{alerts-DqZgVSCT.mjs → alerts-DY_7Nknx.mjs} +0 -0
- /package/dist/{autorag-Cq9k9Ye6.mjs → autorag-K396-M2S.mjs} +0 -0
- /package/dist/{discover-VRFBjse7.mjs → discover-B_3A4a_t.mjs} +0 -0
- /package/dist/{generate-iV6OVNin.mjs → generate-QUDsysBJ.mjs} +0 -0
- /package/dist/{rate-limit-analytics-Bw9qmxMx.mjs → rate-limit-analytics-YsGha5pH.mjs} +0 -0
- /package/dist/{rate-limits-CDm_xzKt.mjs → rate-limits-kH13NRdf.mjs} +0 -0
- /package/dist/{ready-BXGqY1Wi.mjs → ready-DYun4Fpn.mjs} +0 -0
- /package/dist/{recent-submissions-AhGZD3a3.mjs → recent-submissions-18NaOGOo.mjs} +0 -0
- /package/dist/{refute-D_w5Gw20.mjs → refute-BhMiJcE1.mjs} +0 -0
- /package/dist/{scan-logo-BZzFam-Q.mjs → scan-logo-7y0pqFMk.mjs} +0 -0
- /package/dist/{scan-page-BPA8nSPM.mjs → scan-page-B6jnK3QI.mjs} +0 -0
- /package/dist/{schema-CueLBLXC.mjs → schema-JVvksQ1J.mjs} +0 -0
- /package/dist/{search-De0UlXYN.mjs → search-Rn3Eefv8.mjs} +0 -0
- /package/dist/{signed-url-ziDz9frX.mjs → signed-url-Dzwy9Xiw.mjs} +0 -0
- /package/dist/{submission-info-83D2DCCG.mjs → submission-info-SNhkDRRZ.mjs} +0 -0
- /package/dist/{tools-BJbI_f35.mjs → tools-CFEubTr4.mjs} +0 -0
- /package/dist/{total-queries-Dhol31Kn.mjs → total-queries-B20xslrH.mjs} +0 -0
- /package/dist/{tracked-domains-DoOPs6Vd.mjs → tracked-domains-BCvIOZOK.mjs} +0 -0
- /package/dist/{verify-CxpGEnJb.mjs → verify-DOeBG4PL.mjs} +0 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import{t as e}from"./local-
|
|
2
|
+
import{t as e}from"./local-C9i1d0ma.mjs";import{a as t,t as n}from"./context-C71TA0Yp.mjs";import{a as r,r as i}from"./auth-CHTMVVW3.mjs";import{t as a}from"./output-CvQFJkvi.mjs";import{t as o}from"./dry-run-Bq0JAsbX.mjs";import{t as s}from"./progress-BlxgG8Ss.mjs";import{t as c}from"./run-l2pCxS-W.mjs";import"./telemetry-BqtdHwmi.mjs";import{i as l,n as u,r as d,t as f}from"./body-parser-hh2avzkz.mjs";import{n as p,t as m}from"./input-validation-Dk52b0me.mjs";import{a as h,i as g,n as _}from"./prompt-ClEoR47s.mjs";import{n as ee,t as te}from"./raw-fetch-CWRDTVMr.mjs";function v(e){return e.usage(`$0 r2 buckets cors delete <bucket-name>
|
|
3
3
|
|
|
4
|
-
Delete the CORS policy for a bucket.`).positional(`bucket-name`,{type:`string`,description:`Name of the bucket.`,demandOption:!0}).option(`cf-r2-jurisdiction`,{type:`string`,description:`Jurisdiction where objects in this bucket are guaranteed to be stored.`}).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 y={command:`delete <bucket-name>`,describe:`Delete Bucket CORS Policy`,builder:
|
|
4
|
+
Delete the CORS policy for a bucket.`).positional(`bucket-name`,{type:`string`,description:`Name of the bucket.`,demandOption:!0}).option(`cf-r2-jurisdiction`,{type:`string`,description:`Jurisdiction where objects in this bucket are guaranteed to be stored.`}).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 y={command:`delete <bucket-name>`,describe:`Delete Bucket CORS Policy`,builder:v,handler:async l=>c({command:`r2 buckets cors delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},l,async()=>{let c={};if(l[`cf-r2-jurisdiction`]!==void 0&&(c[`cf-r2-jurisdiction`]=String(l[`cf-r2-jurisdiction`])),l.dryRun){o({command:`cf r2 buckets cors delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/r2/buckets/${l[`bucket-name`]==null?`<bucket-name>`:encodeURIComponent(String(l[`bucket-name`]))}/cors`,pathParams:{"bucket-name":String(l[`bucket-name`]??``)},bodyKind:`none`});return}let u=await i(l),d=l.local?e:await n();if(l.accountId=d,!await _({force:!!l.force,message:`This removes the R2 bucket's CORS policy. Browser requests that depend on these cross-origin permissions may fail.`})){process.stderr.write(`Aborted.
|
|
5
5
|
`);return}a(await s(`Deleting`,async()=>r(u,`DELETE`,`/accounts/${d}/r2/buckets/${encodeURIComponent(String(l[`bucket-name`]))}/cors`,{headers:Object.keys(c).length>0?c:void 0})),{successLabel:`Deleted`})})};function b(e){return e.usage(`$0 r2 buckets cors get <bucket-name>
|
|
6
6
|
|
|
7
7
|
Get the CORS policy for a bucket.`).positional(`bucket-name`,{type:`string`,description:`Name of the bucket.`,demandOption:!0}).option(`cf-r2-jurisdiction`,{type:`string`,description:`Jurisdiction where objects in this bucket are guaranteed to be stored.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const x={command:`get <bucket-name>`,describe:`Get Bucket CORS Policy`,builder:b,handler:async l=>c({command:`r2 buckets cors get`,classification:{safeFlags:[`dry-run`]}},l,async()=>{let c={};if(l[`cf-r2-jurisdiction`]!==void 0&&(c[`cf-r2-jurisdiction`]=String(l[`cf-r2-jurisdiction`])),l.dryRun){o({command:`cf r2 buckets cors get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/r2/buckets/${l[`bucket-name`]==null?`<bucket-name>`:encodeURIComponent(String(l[`bucket-name`]))}/cors`,pathParams:{"bucket-name":String(l[`bucket-name`]??``)},bodyKind:`none`});return}let u=await i(l),d=l.local?e:await n();l.accountId=d,a(await s(`Loading`,async()=>r(u,`GET`,`/accounts/${d}/r2/buckets/${encodeURIComponent(String(l[`bucket-name`]))}/cors`,{headers:Object.keys(c).length>0?c:void 0})),{successLabel:`Loaded`})})};function S(e){return e.usage(`$0 r2 buckets cors update <bucket-name>
|
|
@@ -41,9 +41,9 @@ Lists event notification rules for an R2 bucket, grouped by the Cloudflare Queue
|
|
|
41
41
|
|
|
42
42
|
Creates rules that send notifications for matching R2 object events to the specified Cloudflare Queue. Rules can filter objects by key prefix and suffix. New rules are added to any existing rules for the queue; a rule that overlaps an existing rule is rejected.`).positional(`queue-id`,{type:`string`,description:`ID of the Cloudflare Queue that receives notifications for matching R2 object events.`,demandOption:!0}).option(`bucket-name`,{type:`string`,description:`Name of the bucket.`,demandOption:!0}).option(`cf-r2-jurisdiction`,{type:`string`,description:`Jurisdiction where objects in this bucket are guaranteed to be stored.`}).option(`rules`,{type:`string`,description:`Array of rules to drive notifications. Provide as a JSON array of objects or @path/to/file.json.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const oe={command:`update <queue-id>`,describe:`Create Event Notification Rules`,builder:ae,handler:async p=>c({command:`r2 buckets event-notifications update`,classification:{safeFlags:[`dry-run`]}},p,async()=>{let c={};if(p[`cf-r2-jurisdiction`]!==void 0&&(c[`cf-r2-jurisdiction`]=String(p[`cf-r2-jurisdiction`])),p.dryRun){o({command:`cf r2 buckets event-notifications update`,method:`PUT`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/event_notifications/r2/${p[`bucket-name`]==null?`<bucket-name>`:encodeURIComponent(String(p[`bucket-name`]))}/configuration/queues/${p[`queue-id`]==null?`<queue-id>`:encodeURIComponent(String(p[`queue-id`]))}`,pathParams:{"queue-id":String(p[`queue-id`]??``),"bucket-name":String(p[`bucket-name`]??``)},bodyKind:`json`,body:p.body===void 0?f({rules:d(p.rules,`rules`)}):u(p.body)});return}let m=await i(p),h=p.local?e:await n();if(p.accountId=h,p.body){let e=u(p.body);a(await s(`Updating`,async()=>r(m,`PUT`,`/accounts/${h}/event_notifications/r2/${encodeURIComponent(String(p[`bucket-name`]))}/configuration/queues/${encodeURIComponent(String(p[`queue-id`]))}`,{body:e,headers:Object.keys(c).length>0?c:void 0})),{successLabel:`Updated`});return}if(p.rules===void 0)throw Error(`--rules is required (or pass --body with this field set).`);let g={};p.rules!==void 0&&l(g,[`rules`],d(p.rules,`rules`)),a(await s(`Updating`,async()=>r(m,`PUT`,`/accounts/${h}/event_notifications/r2/${encodeURIComponent(String(p[`bucket-name`]))}/configuration/queues/${encodeURIComponent(String(p[`queue-id`]))}`,{body:Object.keys(g).length>0?g:void 0,headers:Object.keys(c).length>0?c:void 0})),{successLabel:`Updated`})})},se={command:`event-notifications`,describe:`Operations for buckets.event-notifications`,builder:e=>e.command(Z).command(ne).command(ie).command(oe).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function ce(e){return e.usage(`$0 r2 buckets get <bucket-name>
|
|
43
43
|
|
|
44
|
-
Gets properties of an existing R2 bucket.`).positional(`bucket-name`,{type:`string`,description:`Name of the bucket.`,demandOption:!0}).option(`cf-r2-jurisdiction`,{type:`string`,description:`Jurisdiction where objects in this bucket are guaranteed to be stored.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const le={command:`get <bucket-name>`,describe:`Get Bucket`,builder:ce,handler:async l=>c({command:`r2 buckets get`,classification:{safeFlags:[`dry-run`]}},l,async()=>{let c={};if(l[`cf-r2-jurisdiction`]!==void 0&&(c[`cf-r2-jurisdiction`]=String(l[`cf-r2-jurisdiction`])),l.dryRun){o({command:`cf r2 buckets get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/r2/buckets/${l[`bucket-name`]==null?`<bucket-name>`:encodeURIComponent(String(l[`bucket-name`]))}`,pathParams:{"bucket-name":String(l[`bucket-name`]??``)},bodyKind:`none`});return}let u=await i(l),d=l.local?e:await n();l.accountId=d,a(await s(`Loading`,async()=>r(u,`GET`,`/accounts/${d}/r2/buckets/${encodeURIComponent(String(l[`bucket-name`]))}`,{headers:Object.keys(c).length>0?c:void 0})),{successLabel:`Loaded`})})};function ue(e){return e.usage("$0 r2 buckets jobs get <job-id>\n\nGets the current status of a
|
|
44
|
+
Gets properties of an existing R2 bucket.`).positional(`bucket-name`,{type:`string`,description:`Name of the bucket.`,demandOption:!0}).option(`cf-r2-jurisdiction`,{type:`string`,description:`Jurisdiction where objects in this bucket are guaranteed to be stored.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const le={command:`get <bucket-name>`,describe:`Get Bucket`,builder:ce,handler:async l=>c({command:`r2 buckets get`,classification:{safeFlags:[`dry-run`]}},l,async()=>{let c={};if(l[`cf-r2-jurisdiction`]!==void 0&&(c[`cf-r2-jurisdiction`]=String(l[`cf-r2-jurisdiction`])),l.dryRun){o({command:`cf r2 buckets get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/r2/buckets/${l[`bucket-name`]==null?`<bucket-name>`:encodeURIComponent(String(l[`bucket-name`]))}`,pathParams:{"bucket-name":String(l[`bucket-name`]??``)},bodyKind:`none`});return}let u=await i(l),d=l.local?e:await n();l.accountId=d,a(await s(`Loading`,async()=>r(u,`GET`,`/accounts/${d}/r2/buckets/${encodeURIComponent(String(l[`bucket-name`]))}`,{headers:Object.keys(c).length>0?c:void 0})),{successLabel:`Loaded`})})};function ue(e){return e.usage("$0 r2 buckets jobs get <job-id>\n\nGets the current status of a background job of any type for an R2 bucket. Poll this endpoint with the job identifier returned when the operation was submitted until the status is `COMPLETED`, `FAILED`, or `CANCELLED`.").positional(`job-id`,{type:`string`,description:`Identifier returned when the background job was submitted.`,demandOption:!0}).option(`bucket-name`,{type:`string`,description:`Name of the bucket.`,demandOption:!0}).option(`cf-r2-jurisdiction`,{type:`string`,description:`Jurisdiction where objects in this bucket are guaranteed to be stored.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const de={command:`get <job-id>`,describe:`Get Bucket Job`,builder:ue,handler:async l=>c({command:`r2 buckets jobs get`,classification:{safeFlags:[`dry-run`]}},l,async()=>{let c={};if(l[`cf-r2-jurisdiction`]!==void 0&&(c[`cf-r2-jurisdiction`]=String(l[`cf-r2-jurisdiction`])),l.dryRun){o({command:`cf r2 buckets jobs get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/r2/buckets/${l[`bucket-name`]==null?`<bucket-name>`:encodeURIComponent(String(l[`bucket-name`]))}/jobs/${l[`job-id`]==null?`<job-id>`:encodeURIComponent(String(l[`job-id`]))}`,pathParams:{"bucket-name":String(l[`bucket-name`]??``),"job-id":String(l[`job-id`]??``)},bodyKind:`none`});return}let u=await i(l),d=l.local?e:await n();l.accountId=d,a(await s(`Loading`,async()=>r(u,`GET`,`/accounts/${d}/r2/buckets/${encodeURIComponent(String(l[`bucket-name`]))}/jobs/${encodeURIComponent(String(l[`job-id`]))}`,{headers:Object.keys(c).length>0?c:void 0})),{successLabel:`Loaded`})})};function fe(e){return e.usage(`$0 r2 buckets jobs list
|
|
45
45
|
|
|
46
|
-
Lists
|
|
46
|
+
Lists background jobs for an R2 bucket, including prefix-delete (and bucket-emptying) jobs and storage-class migration jobs. Jobs of every type are returned unless \`jobType\` is provided.`).option(`bucket-name`,{type:`string`,description:`Name of the bucket.`,demandOption:!0}).option(`job-type`,{type:`string`,description:`Restricts results to jobs of the specified type.`,choices:[`prefixDelete`,`storageClassMigration`]}).option(`status`,{type:`string`,description:"Restricts results to jobs with the specified status. `jobType` is required when this parameter is provided.",choices:[`ENQUEUED`,`RUNNING`,`COMPLETED`,`FAILED`,`CANCELLED`]}).option(`max-keys`,{type:`number`,description:`Maximum number of jobs to return.`}).option(`continuation-token`,{type:`string`,description:"Pagination token received as `nextContinuationToken` in the previous response."}).option(`cf-r2-jurisdiction`,{type:`string`,description:`Jurisdiction where objects in this bucket are guaranteed to be stored.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const pe={command:`list`,describe:`List Bucket Jobs`,builder:fe,handler:async l=>c({command:`r2 buckets jobs list`,classification:{safeFlags:[`job-type`,`status`,`dry-run`]}},l,async()=>{let c={jobType:l[`job-type`],status:l.status,maxKeys:l[`max-keys`],continuationToken:l[`continuation-token`]},u={};if(l[`cf-r2-jurisdiction`]!==void 0&&(u[`cf-r2-jurisdiction`]=String(l[`cf-r2-jurisdiction`])),l.dryRun){o({command:`cf r2 buckets jobs list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/r2/buckets/${l[`bucket-name`]==null?`<bucket-name>`:encodeURIComponent(String(l[`bucket-name`]))}/jobs`,pathParams:{"bucket-name":String(l[`bucket-name`]??``)},query:c,bodyKind:`none`});return}let d=await i(l),f=l.local?e:await n();l.accountId=f,a(await s(`Loading`,async()=>r(d,`GET`,`/accounts/${f}/r2/buckets/${encodeURIComponent(String(l[`bucket-name`]))}/jobs`,{query:c,headers:Object.keys(u).length>0?u:void 0})),{successLabel:`Loaded`})})},me={command:`jobs`,describe:`Inspect background jobs for an R2 bucket`,builder:e=>e.command(de).command(pe).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function he(e){return e.usage(`$0 r2 buckets lifecycle get <bucket-name>
|
|
47
47
|
|
|
48
48
|
Get object lifecycle rules for a bucket.`).positional(`bucket-name`,{type:`string`,description:`Name of the bucket.`,demandOption:!0}).option(`cf-r2-jurisdiction`,{type:`string`,description:`Jurisdiction where objects in this bucket are guaranteed to be stored.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const ge={command:`get <bucket-name>`,describe:`Get Object Lifecycle Rules`,builder:he,handler:async l=>c({command:`r2 buckets lifecycle get`,classification:{safeFlags:[`dry-run`]}},l,async()=>{let c={};if(l[`cf-r2-jurisdiction`]!==void 0&&(c[`cf-r2-jurisdiction`]=String(l[`cf-r2-jurisdiction`])),l.dryRun){o({command:`cf r2 buckets lifecycle get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/r2/buckets/${l[`bucket-name`]==null?`<bucket-name>`:encodeURIComponent(String(l[`bucket-name`]))}/lifecycle`,pathParams:{"bucket-name":String(l[`bucket-name`]??``)},bodyKind:`none`});return}let u=await i(l),d=l.local?e:await n();l.accountId=d,a(await s(`Loading`,async()=>r(u,`GET`,`/accounts/${d}/r2/buckets/${encodeURIComponent(String(l[`bucket-name`]))}/lifecycle`,{headers:Object.keys(c).length>0?c:void 0})),{successLabel:`Loaded`})})};function _e(e){return e.usage(`$0 r2 buckets lifecycle update <bucket-name>
|
|
49
49
|
|
|
@@ -83,50 +83,43 @@ token from the [R2 dashboard](https://dash.cloudflare.com/?to=/:account/r2/api-t
|
|
|
83
83
|
|
|
84
84
|
Sippy will use this token when writing objects to R2, so it is
|
|
85
85
|
best to scope this token to the bucket you're enabling Sippy for.
|
|
86
|
-
`}).option(`source-access-key-id`,{type:`string`,description:`Access Key ID of an IAM credential (ideally scoped to a single S3 bucket).`}).option(`source-bucket`,{type:`string`,description:`Name of the AWS S3 bucket.`}).option(`source-provider`,{type:`string`,description:`The source.provider field`,choices:[`aws`,`gcs`,`s3`,`azure`]}).option(`source-region`,{type:`string`,description:`AWS region containing the source S3 bucket.`}).option(`source-secret-access-key`,{type:`string`,description:`Secret Access Key of an IAM credential (ideally scoped to a single S3 bucket).`}).option(`source-client-email`,{type:`string`,description:`Client email of an IAM credential (ideally scoped to a single GCS bucket).`}).option(`source-private-key`,{type:`string`,description:`Private Key of an IAM credential (ideally scoped to a single GCS bucket).`}).option(`source-bucket-url`,{type:`string`,description:`URL to the S3-compatible API of the bucket.`}).option(`source-account-key`,{type:`string`,description:`Access key for the Azure Storage account. Mutually exclusive with sasToken.`}).option(`source-account-name`,{type:`string`,description:`Name of the Azure Storage account.`}).option(`source-container`,{type:`string`,description:`Name of the Azure Blob Storage container.`}).option(`source-sas-token`,{type:`string`,description:`Shared Access Signature token for the Azure Storage account. Mutually exclusive with accountKey.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`}).conflicts(`source-bucket`,[`source-bucket-url`,`source-account-key`,`source-account-name`,`source-container`,`source-sas-token`]).conflicts(`source-region`,[`source-client-email`,`source-private-key`,`source-bucket-url`,`source-account-key`,`source-account-name`,`source-container`,`source-sas-token`]).conflicts(`source-client-email`,[`source-region`,`source-bucket-url`,`source-account-key`,`source-account-name`,`source-container`,`source-sas-token`]).conflicts(`source-private-key`,[`source-region`,`source-bucket-url`,`source-account-key`,`source-account-name`,`source-container`,`source-sas-token`]).conflicts(`source-bucket-url`,[`source-bucket`,`source-region`,`source-client-email`,`source-private-key`,`source-account-key`,`source-account-name`,`source-container`,`source-sas-token`]).conflicts(`source-account-key`,[`source-bucket`,`source-region`,`source-client-email`,`source-private-key`,`source-bucket-url`]).conflicts(`source-account-name`,[`source-bucket`,`source-region`,`source-client-email`,`source-private-key`,`source-bucket-url`]).conflicts(`source-container`,[`source-bucket`,`source-region`,`source-client-email`,`source-private-key`,`source-bucket-url`]).conflicts(`source-sas-token`,[`source-bucket`,`source-region`,`source-client-email`,`source-private-key`,`source-bucket-url`])}const He={command:`update <bucket-name>`,describe:`Enable Sippy`,builder:Ve,handler:async d=>c({command:`r2 buckets sippy update`,classification:{safeFlags:[`destination-provider`,`source-provider`,`dry-run`]}},d,async()=>{let c={};if(d[`cf-r2-jurisdiction`]!==void 0&&(c[`cf-r2-jurisdiction`]=String(d[`cf-r2-jurisdiction`])),d.dryRun){o({command:`cf r2 buckets sippy update`,method:`PUT`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/r2/buckets/${d[`bucket-name`]==null?`<bucket-name>`:encodeURIComponent(String(d[`bucket-name`]))}/sippy`,pathParams:{"bucket-name":String(d[`bucket-name`]??``)},bodyKind:`json`,body:d.body===void 0?f({destination:{accessKeyId:p(d[`destination-access-key-id`],`destination-access-key-id`,`text`),provider:p(d[`destination-provider`],`destination-provider`,`text`),secretAccessKey:p(d[`destination-secret-access-key`],`destination-secret-access-key`,`text`)},source:{accessKeyId:p(d[`source-access-key-id`],`source-access-key-id`,`text`),bucket:p(d[`source-bucket`],`source-bucket`,`text`),provider:p(d[`source-provider`],`source-provider`,`text`),region:p(d[`source-region`],`source-region`,`text`),secretAccessKey:p(d[`source-secret-access-key`],`source-secret-access-key`,`text`),clientEmail:p(d[`source-client-email`],`source-client-email`,`text`),privateKey:p(d[`source-private-key`],`source-private-key`,`text`),bucketUrl:p(d[`source-bucket-url`],`source-bucket-url`,`text`),accountKey:p(d[`source-account-key`],`source-account-key`,`text`),accountName:p(d[`source-account-name`],`source-account-name`,`text`),container:p(d[`source-container`],`source-container`,`text`),sasToken:p(d[`source-sas-token`],`source-sas-token`,`text`)}}):u(d.body)});return}let m=await i(d),h=d.local?e:await n();if(d.accountId=h,d.body){let e=u(d.body);a(await s(`Updating`,async()=>r(m,`PUT`,`/accounts/${h}/r2/buckets/${encodeURIComponent(String(d[`bucket-name`]))}/sippy`,{body:e,headers:Object.keys(c).length>0?c:void 0})),{successLabel:`Updated`});return}let g={};d[`destination-access-key-id`]!==void 0&&l(g,[`destination`,`accessKeyId`],p(d[`destination-access-key-id`],`destination-access-key-id`,`text`)),d[`destination-provider`]!==void 0&&l(g,[`destination`,`provider`],p(d[`destination-provider`],`destination-provider`,`text`)),d[`destination-secret-access-key`]!==void 0&&l(g,[`destination`,`secretAccessKey`],p(d[`destination-secret-access-key`],`destination-secret-access-key`,`text`)),d[`source-access-key-id`]!==void 0&&l(g,[`source`,`accessKeyId`],p(d[`source-access-key-id`],`source-access-key-id`,`text`)),d[`source-bucket`]!==void 0&&l(g,[`source`,`bucket`],p(d[`source-bucket`],`source-bucket`,`text`)),d[`source-provider`]!==void 0&&l(g,[`source`,`provider`],p(d[`source-provider`],`source-provider`,`text`)),d[`source-region`]!==void 0&&l(g,[`source`,`region`],p(d[`source-region`],`source-region`,`text`)),d[`source-secret-access-key`]!==void 0&&l(g,[`source`,`secretAccessKey`],p(d[`source-secret-access-key`],`source-secret-access-key`,`text`)),d[`source-client-email`]!==void 0&&l(g,[`source`,`clientEmail`],p(d[`source-client-email`],`source-client-email`,`text`)),d[`source-private-key`]!==void 0&&l(g,[`source`,`privateKey`],p(d[`source-private-key`],`source-private-key`,`text`)),d[`source-bucket-url`]!==void 0&&l(g,[`source`,`bucketUrl`],p(d[`source-bucket-url`],`source-bucket-url`,`text`)),d[`source-account-key`]!==void 0&&l(g,[`source`,`accountKey`],p(d[`source-account-key`],`source-account-key`,`text`)),d[`source-account-name`]!==void 0&&l(g,[`source`,`accountName`],p(d[`source-account-name`],`source-account-name`,`text`)),d[`source-container`]!==void 0&&l(g,[`source`,`container`],p(d[`source-container`],`source-container`,`text`)),d[`source-sas-token`]!==void 0&&l(g,[`source`,`sasToken`],p(d[`source-sas-token`],`source-sas-token`,`text`)),a(await s(`Updating`,async()=>r(m,`PUT`,`/accounts/${h}/r2/buckets/${encodeURIComponent(String(d[`bucket-name`]))}/sippy`,{body:Object.keys(g).length>0?g:void 0,headers:Object.keys(c).length>0?c:void 0})),{successLabel:`Updated`})})},Ue={command:`sippy`,describe:`Operations for buckets.sippy`,builder:e=>e.command(Re).command(Be).command(He).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function We(e){return e.usage(`$0 r2 buckets storage-class-migration-jobs create <bucket-name>
|
|
86
|
+
`}).option(`source-access-key-id`,{type:`string`,description:`Access Key ID of an IAM credential (ideally scoped to a single S3 bucket).`}).option(`source-bucket`,{type:`string`,description:`Name of the AWS S3 bucket.`}).option(`source-provider`,{type:`string`,description:`The source.provider field`,choices:[`aws`,`gcs`,`s3`,`azure`]}).option(`source-region`,{type:`string`,description:`AWS region containing the source S3 bucket.`}).option(`source-secret-access-key`,{type:`string`,description:`Secret Access Key of an IAM credential (ideally scoped to a single S3 bucket).`}).option(`source-client-email`,{type:`string`,description:`Client email of an IAM credential (ideally scoped to a single GCS bucket).`}).option(`source-private-key`,{type:`string`,description:`Private Key of an IAM credential (ideally scoped to a single GCS bucket).`}).option(`source-bucket-url`,{type:`string`,description:`URL to the S3-compatible API of the bucket.`}).option(`source-account-key`,{type:`string`,description:`Access key for the Azure Storage account. Mutually exclusive with sasToken.`}).option(`source-account-name`,{type:`string`,description:`Name of the Azure Storage account.`}).option(`source-container`,{type:`string`,description:`Name of the Azure Blob Storage container.`}).option(`source-sas-token`,{type:`string`,description:`Shared Access Signature token for the Azure Storage account. Mutually exclusive with accountKey.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`}).conflicts(`source-bucket`,[`source-bucket-url`,`source-account-key`,`source-account-name`,`source-container`,`source-sas-token`]).conflicts(`source-region`,[`source-client-email`,`source-private-key`,`source-bucket-url`,`source-account-key`,`source-account-name`,`source-container`,`source-sas-token`]).conflicts(`source-client-email`,[`source-region`,`source-bucket-url`,`source-account-key`,`source-account-name`,`source-container`,`source-sas-token`]).conflicts(`source-private-key`,[`source-region`,`source-bucket-url`,`source-account-key`,`source-account-name`,`source-container`,`source-sas-token`]).conflicts(`source-bucket-url`,[`source-bucket`,`source-region`,`source-client-email`,`source-private-key`,`source-account-key`,`source-account-name`,`source-container`,`source-sas-token`]).conflicts(`source-account-key`,[`source-bucket`,`source-region`,`source-client-email`,`source-private-key`,`source-bucket-url`]).conflicts(`source-account-name`,[`source-bucket`,`source-region`,`source-client-email`,`source-private-key`,`source-bucket-url`]).conflicts(`source-container`,[`source-bucket`,`source-region`,`source-client-email`,`source-private-key`,`source-bucket-url`]).conflicts(`source-sas-token`,[`source-bucket`,`source-region`,`source-client-email`,`source-private-key`,`source-bucket-url`])}const He={command:`update <bucket-name>`,describe:`Enable Sippy`,builder:Ve,handler:async d=>c({command:`r2 buckets sippy update`,classification:{safeFlags:[`destination-provider`,`source-provider`,`dry-run`]}},d,async()=>{let c={};if(d[`cf-r2-jurisdiction`]!==void 0&&(c[`cf-r2-jurisdiction`]=String(d[`cf-r2-jurisdiction`])),d.dryRun){o({command:`cf r2 buckets sippy update`,method:`PUT`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/r2/buckets/${d[`bucket-name`]==null?`<bucket-name>`:encodeURIComponent(String(d[`bucket-name`]))}/sippy`,pathParams:{"bucket-name":String(d[`bucket-name`]??``)},bodyKind:`json`,body:d.body===void 0?f({destination:{accessKeyId:p(d[`destination-access-key-id`],`destination-access-key-id`,`text`),provider:p(d[`destination-provider`],`destination-provider`,`text`),secretAccessKey:p(d[`destination-secret-access-key`],`destination-secret-access-key`,`text`)},source:{accessKeyId:p(d[`source-access-key-id`],`source-access-key-id`,`text`),bucket:p(d[`source-bucket`],`source-bucket`,`text`),provider:p(d[`source-provider`],`source-provider`,`text`),region:p(d[`source-region`],`source-region`,`text`),secretAccessKey:p(d[`source-secret-access-key`],`source-secret-access-key`,`text`),clientEmail:p(d[`source-client-email`],`source-client-email`,`text`),privateKey:p(d[`source-private-key`],`source-private-key`,`text`),bucketUrl:p(d[`source-bucket-url`],`source-bucket-url`,`text`),accountKey:p(d[`source-account-key`],`source-account-key`,`text`),accountName:p(d[`source-account-name`],`source-account-name`,`text`),container:p(d[`source-container`],`source-container`,`text`),sasToken:p(d[`source-sas-token`],`source-sas-token`,`text`)}}):u(d.body)});return}let m=await i(d),h=d.local?e:await n();if(d.accountId=h,d.body){let e=u(d.body);a(await s(`Updating`,async()=>r(m,`PUT`,`/accounts/${h}/r2/buckets/${encodeURIComponent(String(d[`bucket-name`]))}/sippy`,{body:e,headers:Object.keys(c).length>0?c:void 0})),{successLabel:`Updated`});return}let g={};d[`destination-access-key-id`]!==void 0&&l(g,[`destination`,`accessKeyId`],p(d[`destination-access-key-id`],`destination-access-key-id`,`text`)),d[`destination-provider`]!==void 0&&l(g,[`destination`,`provider`],p(d[`destination-provider`],`destination-provider`,`text`)),d[`destination-secret-access-key`]!==void 0&&l(g,[`destination`,`secretAccessKey`],p(d[`destination-secret-access-key`],`destination-secret-access-key`,`text`)),d[`source-access-key-id`]!==void 0&&l(g,[`source`,`accessKeyId`],p(d[`source-access-key-id`],`source-access-key-id`,`text`)),d[`source-bucket`]!==void 0&&l(g,[`source`,`bucket`],p(d[`source-bucket`],`source-bucket`,`text`)),d[`source-provider`]!==void 0&&l(g,[`source`,`provider`],p(d[`source-provider`],`source-provider`,`text`)),d[`source-region`]!==void 0&&l(g,[`source`,`region`],p(d[`source-region`],`source-region`,`text`)),d[`source-secret-access-key`]!==void 0&&l(g,[`source`,`secretAccessKey`],p(d[`source-secret-access-key`],`source-secret-access-key`,`text`)),d[`source-client-email`]!==void 0&&l(g,[`source`,`clientEmail`],p(d[`source-client-email`],`source-client-email`,`text`)),d[`source-private-key`]!==void 0&&l(g,[`source`,`privateKey`],p(d[`source-private-key`],`source-private-key`,`text`)),d[`source-bucket-url`]!==void 0&&l(g,[`source`,`bucketUrl`],p(d[`source-bucket-url`],`source-bucket-url`,`text`)),d[`source-account-key`]!==void 0&&l(g,[`source`,`accountKey`],p(d[`source-account-key`],`source-account-key`,`text`)),d[`source-account-name`]!==void 0&&l(g,[`source`,`accountName`],p(d[`source-account-name`],`source-account-name`,`text`)),d[`source-container`]!==void 0&&l(g,[`source`,`container`],p(d[`source-container`],`source-container`,`text`)),d[`source-sas-token`]!==void 0&&l(g,[`source`,`sasToken`],p(d[`source-sas-token`],`source-sas-token`,`text`)),a(await s(`Updating`,async()=>r(m,`PUT`,`/accounts/${h}/r2/buckets/${encodeURIComponent(String(d[`bucket-name`]))}/sippy`,{body:Object.keys(g).length>0?g:void 0,headers:Object.keys(c).length>0?c:void 0})),{successLabel:`Updated`})})},Ue={command:`sippy`,describe:`Operations for buckets.sippy`,builder:e=>e.command(Re).command(Be).command(He).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},We={command:`buckets`,describe:`Create and configure R2 buckets including CORS, lifecycle, custom domains, event notifications, and object locks`,builder:e=>e.command(O).command(E).command(A).command(Y).command(le).command(xe).command(w).command(q).command(se).command(me).command(ye).command(Ee).command(Ne).command(Ie).command(Ue).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function Ge(e){return e.usage("$0 r2 objects bulk-delete\n\nDeletes objects from an R2 bucket. Three modes are supported: 1. **Delete by list** (default): Provide a JSON array of object keys in the request body. All listed objects are deleted; per-key errors are reported in the response. 2. **Delete by prefix**: Provide a non-empty `prefix` query parameter and no request body to delete every object whose key begins with that prefix. 3. **Empty bucket**: Provide the `prefix` query parameter with an empty value (`?prefix=`) and no request body to delete all objects in the bucket. Prefix and empty-bucket requests return a job descriptor. Small jobs can finish synchronously and return `COMPLETED`; larger jobs continue in the background. Poll the returned `id` with the Get Bucket Job endpoint. Objects uploaded after a background job starts are not deleted by that job. Abort active multipart uploads before submitting the request; a synchronously completed job does not abort them. Avoid writing objects or starting multipart uploads while a bucket-emptying job is in progress. Each repeated or concurrent request creates a distinct job. The number of active jobs is limited per bucket; wait for an existing job to finish before retrying a request rejected with HTTP 429. A bucket cannot be emptied while event notifications are configured. Remove the event notification rules and retry requests rejected with HTTP 409 / error code 10034. To protect a bucket with R2 Data Catalog enabled, send the `cf-r2-data-catalog-check` header; a conflict is returned with HTTP 409 / error code 10081. For most workloads, we recommend using R2's [S3-compatible API](https://developers.cloudflare.com/r2/api/s3/api/) or a [Worker with an R2 binding](https://developers.cloudflare.com/r2/api/workers/workers-api-reference/) instead.").option(`bucket-name`,{type:`string`,description:`Name of the bucket.`,demandOption:!0}).option(`prefix`,{type:`string`,description:"When present, switches the operation to prefix-delete mode. A non-empty value must\nend in `/` and deletes keys beginning with that prefix. Preserve an empty value\n(`?prefix=`) to empty the entire bucket. Omitting this parameter instead selects\ndelete-by-list mode and requires a JSON request body."}).option(`cf-r2-jurisdiction`,{type:`string`,description:`Jurisdiction where objects in this bucket are guaranteed to be stored.`}).option(`cf-r2-data-catalog-check`,{type:`string`,description:`Set this header to reject the operation when R2 Data Catalog is enabled for the bucket.`}).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:'Required for "delete by list" mode (when `prefix` query parameter is omitted). A JSON array of object keys to delete. Ignored when `prefix` is provided. '})}const Ke={command:`bulk-delete`,describe:`Delete Objects or Empty a Bucket`,builder:Ge,handler:async l=>c({command:`r2 objects bulk-delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},l,async()=>{let c={prefix:l.prefix},d={};if(l[`cf-r2-jurisdiction`]!==void 0&&(d[`cf-r2-jurisdiction`]=String(l[`cf-r2-jurisdiction`])),l[`cf-r2-data-catalog-check`]!==void 0&&(d[`cf-r2-data-catalog-check`]=String(l[`cf-r2-data-catalog-check`])),l.dryRun){o({command:`cf r2 objects bulk-delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/r2/buckets/${l[`bucket-name`]==null?`<bucket-name>`:encodeURIComponent(String(l[`bucket-name`]))}/objects`,pathParams:{"bucket-name":String(l[`bucket-name`]??``)},query:c,bodyKind:`json`,body:l.body===void 0?void 0:u(l.body)});return}let f=await i(l),p=l.local?e:await n();if(l.accountId=p,!await _({force:!!l.force,message:`This permanently deletes the selected R2 objects. An explicitly empty prefix deletes every object in the bucket while retaining the bucket itself.`})){process.stderr.write(`Aborted.
|
|
87
|
+
`);return}if(l.body){let e=u(l.body),t=new URLSearchParams(Object.entries(c).filter(([,e])=>e!==void 0).map(([e,t])=>[e,String(t)])).toString();a(await s(`Deleting`,async()=>r(f,`DELETE`,`/accounts/${p}/r2/buckets/${encodeURIComponent(String(l[`bucket-name`]))}/objects${t?`?`+t:``}`,{body:e,headers:Object.keys(d).length>0?d:void 0})),{successLabel:`Deleted`});return}if(l.body===void 0)throw Error(`--body is required for this command. Pass --body '<json>' or --body @path/to/file.json.`)})};function qe(e){return e.usage(`$0 r2 objects delete <object-key>
|
|
87
88
|
|
|
88
|
-
|
|
89
|
-
`);return}
|
|
89
|
+
Deletes an object from an R2 bucket. For most workloads, we recommend using R2's [S3-compatible API](https://developers.cloudflare.com/r2/api/s3/api/) or a [Worker with an R2 binding](https://developers.cloudflare.com/r2/api/workers/workers-api-reference/) instead.`).positional(`object-key`,{type:`string`,description:"The key (name) of the object to delete. May contain slashes for path-like keys. Slashes (`/`) within the key MUST be sent literally and MUST NOT be percent-encoded (i.e. `%2F`); other reserved characters should be percent-encoded as usual.",demandOption:!0}).option(`bucket-name`,{type:`string`,description:`Name of the bucket.`,demandOption:!0}).option(`cf-r2-jurisdiction`,{type:`string`,description:`Jurisdiction where objects in this bucket are guaranteed to be stored.`}).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 Je={command:`delete <object-key>`,describe:`Delete Object`,builder:qe,handler:async l=>c({command:`r2 objects delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},l,async()=>{let c={};if(l[`cf-r2-jurisdiction`]!==void 0&&(c[`cf-r2-jurisdiction`]=String(l[`cf-r2-jurisdiction`])),l.dryRun){o({command:`cf r2 objects delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/r2/buckets/${l[`bucket-name`]==null?`<bucket-name>`:encodeURIComponent(String(l[`bucket-name`]))}/objects/${l[`object-key`]==null?`<object-key>`:encodeURIComponent(String(l[`object-key`]))}`,pathParams:{"bucket-name":String(l[`bucket-name`]??``),"object-key":String(l[`object-key`]??``)},bodyKind:`none`});return}let u=await i(l),d=l.local?e:await n();if(l.accountId=d,!await _({force:!!l.force,message:`This permanently deletes the specified object from the R2 bucket.`})){process.stderr.write(`Aborted.
|
|
90
|
+
`);return}a(await s(`Deleting`,async()=>r(u,`DELETE`,`/accounts/${d}/r2/buckets/${encodeURIComponent(String(l[`bucket-name`]))}/objects/${encodeURIComponent(String(l[`object-key`]))}`,{headers:Object.keys(c).length>0?c:void 0})),{successLabel:`Deleted`})})};function Ye(e){return e.usage(`$0 r2 objects get <object-key>
|
|
90
91
|
|
|
91
|
-
|
|
92
|
+
Retrieves an object from an R2 bucket. Returns the object body along with metadata headers. For most workloads, we recommend using R2's [S3-compatible API](https://developers.cloudflare.com/r2/api/s3/api/) or a [Worker with an R2 binding](https://developers.cloudflare.com/r2/api/workers/workers-api-reference/) instead.`).positional(`object-key`,{type:`string`,description:"The key (name) of the object to retrieve. May contain slashes for path-like keys. Slashes (`/`) within the key MUST be sent literally and MUST NOT be percent-encoded (i.e. `%2F`); other reserved characters should be percent-encoded as usual.",demandOption:!0}).option(`bucket-name`,{type:`string`,description:`Name of the bucket.`,demandOption:!0}).option(`cf-r2-jurisdiction`,{type:`string`,description:`Jurisdiction where objects in this bucket are guaranteed to be stored.`}).option(`if-none-match`,{type:`string`,description:`Returns the object only if its ETag does not match the given value.`}).option(`if-modified-since`,{type:`string`,description:"Returns the object only if it has been modified since the specified time.\nMust be formatted as an HTTP-date (RFC 7231), e.g. `Tue, 15 Jan 2024 10:30:00 GMT`."}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`text`,{type:`boolean`,description:`Decode the response body as UTF-8 text instead of writing raw bytes`,default:!1})}const Xe={command:`get <object-key>`,describe:`Get Object`,builder:Ye,handler:async r=>c({command:`r2 objects get`,classification:{safeFlags:[`dry-run`,`text`]}},r,async()=>{let a={};if(r[`cf-r2-jurisdiction`]!==void 0&&(a[`cf-r2-jurisdiction`]=String(r[`cf-r2-jurisdiction`])),r[`if-none-match`]!==void 0&&(a[`If-None-Match`]=String(r[`if-none-match`])),r[`if-modified-since`]!==void 0&&(a[`If-Modified-Since`]=String(r[`if-modified-since`])),r.dryRun){o({command:`cf r2 objects get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/r2/buckets/${r[`bucket-name`]==null?`<bucket-name>`:encodeURIComponent(String(r[`bucket-name`]))}/objects/${r[`object-key`]==null?`<object-key>`:encodeURIComponent(String(r[`object-key`]))}`,pathParams:{"bucket-name":String(r[`bucket-name`]??``),"object-key":String(r[`object-key`]??``)},bodyKind:`none`});return}await i(r);let c=r.local?e:await n();r.accountId=c;let l=await s(`Loading`,async()=>te(`/accounts/${c}/r2/buckets/${encodeURIComponent(String(r[`bucket-name`]))}/objects/${encodeURIComponent(String(r[`object-key`]))}`,{method:`GET`,local:r.local===!0,persistTo:r.persistTo}));ee(r.text===!0?l.toString(`utf-8`):l)})};function Ze(e){return e.usage(`$0 r2 objects list
|
|
92
93
|
|
|
93
|
-
Lists
|
|
94
|
-
`);return}if(l.body){let e=u(l.body),t=new URLSearchParams(Object.entries(c).filter(([,e])=>e!==void 0).map(([e,t])=>[e,String(t)])).toString();a(await s(`Deleting`,async()=>r(f,`DELETE`,`/accounts/${p}/r2/buckets/${encodeURIComponent(String(l[`bucket-name`]))}/objects${t?`?`+t:``}`,{body:e,headers:Object.keys(d).length>0?d:void 0})),{successLabel:`Deleted`});return}if(l.body===void 0)throw Error(`--body is required for this command. Pass --body '<json>' or --body @path/to/file.json.`)})};function et(e){return e.usage(`$0 r2 objects delete <object-key>
|
|
94
|
+
Lists objects in an R2 bucket. Returns object metadata including key, size, etag, last modified date, HTTP metadata, and custom metadata. For most workloads, we recommend using R2's [S3-compatible API](https://developers.cloudflare.com/r2/api/s3/api/) or a [Worker with an R2 binding](https://developers.cloudflare.com/r2/api/workers/workers-api-reference/) instead.`).option(`bucket-name`,{type:`string`,description:`Name of the bucket.`,demandOption:!0}).option(`per-page`,{type:`number`,description:`Maximum number of objects to return per page.`}).option(`prefix`,{type:`string`,description:`Restricts results to only those objects whose keys begin with the specified prefix.`}).option(`delimiter`,{type:`string`,description:`A single character used to group keys. All keys that contain the delimiter between the prefix and the first occurrence of the delimiter after the prefix are grouped under a single result element.`}).option(`cursor`,{type:`string`,description:`Pagination cursor received from a previous List Objects call. Used to retrieve the next page of results.`}).option(`start-after`,{type:`string`,description:`Returns objects with keys that come after the specified key in lexicographic order.`}).option(`cf-r2-jurisdiction`,{type:`string`,description:`Jurisdiction where objects in this bucket are guaranteed to be stored.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const Qe={command:`list`,describe:`List Objects`,builder:Ze,handler:async l=>c({command:`r2 objects list`,classification:{safeFlags:[`dry-run`]}},l,async()=>{let c={per_page:l[`per-page`],prefix:l.prefix,delimiter:l.delimiter,cursor:l.cursor,start_after:l[`start-after`]},u={};if(l[`cf-r2-jurisdiction`]!==void 0&&(u[`cf-r2-jurisdiction`]=String(l[`cf-r2-jurisdiction`])),l.dryRun){o({command:`cf r2 objects list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/r2/buckets/${l[`bucket-name`]==null?`<bucket-name>`:encodeURIComponent(String(l[`bucket-name`]))}/objects`,pathParams:{"bucket-name":String(l[`bucket-name`]??``)},query:c,bodyKind:`none`});return}let d=await i(l),f=l.local?e:await n();l.accountId=f,a(await s(`Loading`,async()=>r(d,`GET`,`/accounts/${f}/r2/buckets/${encodeURIComponent(String(l[`bucket-name`]))}/objects`,{query:c,headers:Object.keys(u).length>0?u:void 0})),{successLabel:`Loaded`})})};function $e(e){return e.usage(`$0 r2 objects put <object-key>
|
|
95
95
|
|
|
96
|
-
|
|
97
|
-
`);return}a(await s(`Deleting`,async()=>r(u,`DELETE`,`/accounts/${d}/r2/buckets/${encodeURIComponent(String(l[`bucket-name`]))}/objects/${encodeURIComponent(String(l[`object-key`]))}`,{headers:Object.keys(c).length>0?c:void 0})),{successLabel:`Deleted`})})};function nt(e){return e.usage(`$0 r2 objects get <object-key>
|
|
96
|
+
Uploads an object to an R2 bucket. The object body is provided as the request body. Returns metadata about the uploaded object. The maximum upload size for this endpoint is 300 MB. For most workloads, we recommend using R2's [S3-compatible API](https://developers.cloudflare.com/r2/api/s3/api/) or a [Worker with an R2 binding](https://developers.cloudflare.com/r2/api/workers/workers-api-reference/) instead.`).positional(`object-key`,{type:`string`,description:"The key (name) to assign to the object. May contain slashes for path-like keys. Slashes (`/`) within the key MUST be sent literally and MUST NOT be percent-encoded (i.e. `%2F`); other reserved characters should be percent-encoded as usual.",demandOption:!0}).option(`bucket-name`,{type:`string`,description:`Name of the bucket.`,demandOption:!0}).option(`cf-r2-jurisdiction`,{type:`string`,description:`Jurisdiction where objects in this bucket are guaranteed to be stored.`}).option(`content-type`,{type:`string`,description:`The MIME type of the object being uploaded.`}).option(`content-length`,{type:`string`,description:`The size of the object body in bytes.`}).option(`cf-r2-storage-class`,{type:`string`,description:`Storage class for this object. Overrides the bucket default.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`The object body to upload.`}).option(`file`,{type:`string`,description:`Path to a file to upload as the request body`})}const et={command:`put <object-key>`,describe:`Upload Object`,builder:$e,handler:async l=>c({command:`r2 objects put`,classification:{safeFlags:[`dry-run`]}},l,async()=>{let c={};if(l[`cf-r2-jurisdiction`]!==void 0&&(c[`cf-r2-jurisdiction`]=String(l[`cf-r2-jurisdiction`])),l[`content-type`]!==void 0&&(c[`Content-Type`]=String(l[`content-type`])),l[`content-length`]!==void 0&&(c[`Content-Length`]=String(l[`content-length`])),l[`cf-r2-storage-class`]!==void 0&&(c[`cf-r2-storage-class`]=String(l[`cf-r2-storage-class`])),l.dryRun){o({command:`cf r2 objects put`,method:`PUT`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/r2/buckets/${l[`bucket-name`]==null?`<bucket-name>`:encodeURIComponent(String(l[`bucket-name`]))}/objects/${l[`object-key`]==null?`<object-key>`:encodeURIComponent(String(l[`object-key`]))}`,pathParams:{"bucket-name":String(l[`bucket-name`]??``),"object-key":String(l[`object-key`]??``)},bodyKind:`octet-stream`,body:l.body});return}let u=await i(l),d=l.local?e:await n();if(l.accountId=d,l.file){let e=m(l.file);a(await s(`Updating`,async()=>r(u,`PUT`,`/accounts/${d}/r2/buckets/${encodeURIComponent(String(l[`bucket-name`]))}/objects/${encodeURIComponent(String(l[`object-key`]))}`,{body:e,headers:{"Content-Type":`application/octet-stream`,...Object.keys(c).length>0?c:void 0}})),{successLabel:`Updated`});return}if(l.body){let e=p(l.body,`body`,`binary`);a(await s(`Updating`,async()=>r(u,`PUT`,`/accounts/${d}/r2/buckets/${encodeURIComponent(String(l[`bucket-name`]))}/objects/${encodeURIComponent(String(l[`object-key`]))}`,{body:e,headers:{"Content-Type":`application/octet-stream`,...c}})),{successLabel:`Updated`});return}if(l.body===void 0)throw Error(`--body is required for this command. Pass --body '<json>' or --body @path/to/file.json.`)})},tt={command:`objects`,describe:`Operations for objects`,builder:e=>e.command(Ke).command(Je).command(Xe).command(Qe).command(et).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function nt(e){return e.usage(`$0 r2 super-slurper connectivity-precheck source
|
|
98
97
|
|
|
99
|
-
|
|
98
|
+
Check whether tokens are valid against the source bucket`).option(`bucket`,{type:`string`,description:`The bucket field`}).option(`endpoint`,{type:`string`,description:`Custom S3-compatible endpoint that must use https://.`}).option(`keys`,{type:`string`,array:!0,description:`The keys field`}).option(`path-prefix`,{type:`string`,description:`The pathPrefix field`}).option(`region`,{type:`string`,description:`The region field`}).option(`secret-access-key-id`,{type:`string`,description:`The secret.accessKeyId field`}).option(`secret-secret-access-key`,{type:`string`,description:`The secret.secretAccessKey field`}).option(`secret-client-email`,{type:`string`,description:`The secret.clientEmail field`}).option(`secret-private-key`,{type:`string`,description:`The secret.privateKey field`}).option(`vendor`,{type:`string`,description:`The vendor field`,choices:[`s3`,`gcs`,`r2`]}).option(`jurisdiction`,{type:`string`,description:`The jurisdiction field`,choices:[`default`,`eu`,`us`,`fedramp`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`}).conflicts(`endpoint`,[`secret-client-email`,`secret-private-key`,`jurisdiction`]).conflicts(`region`,[`secret-client-email`,`secret-private-key`,`jurisdiction`]).conflicts(`secret-access-key-id`,[`secret-client-email`,`secret-private-key`]).conflicts(`secret-secret-access-key`,[`secret-client-email`,`secret-private-key`]).conflicts(`secret-client-email`,[`endpoint`,`region`,`secret-access-key-id`,`secret-secret-access-key`,`jurisdiction`]).conflicts(`secret-private-key`,[`endpoint`,`region`,`secret-access-key-id`,`secret-secret-access-key`,`jurisdiction`]).conflicts(`jurisdiction`,[`endpoint`,`region`,`secret-client-email`,`secret-private-key`])}const rt={command:`source`,describe:`Check source connectivity`,builder:nt,handler:async r=>c({command:`r2 super-slurper connectivity-precheck source`,classification:{safeFlags:[`vendor`,`jurisdiction`,`dry-run`]}},r,async()=>{if(r.dryRun){o({command:`cf r2 super-slurper connectivity-precheck source`,method:`PUT`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/slurper/source/connectivity-precheck`,pathParams:{},bodyKind:`json`,body:r.body===void 0?f({bucket:p(r.bucket,`bucket`,`text`),endpoint:p(r.endpoint,`endpoint`,`text`),keys:r.keys,pathPrefix:p(r[`path-prefix`],`path-prefix`,`text`),region:p(r.region,`region`,`text`),secret:{accessKeyId:p(r[`secret-access-key-id`],`secret-access-key-id`,`text`),secretAccessKey:p(r[`secret-secret-access-key`],`secret-secret-access-key`,`text`),clientEmail:p(r[`secret-client-email`],`secret-client-email`,`text`),privateKey:p(r[`secret-private-key`],`secret-private-key`,`text`)},vendor:p(r.vendor,`vendor`,`text`),jurisdiction:p(r.jurisdiction,`jurisdiction`,`text`)}):u(r.body)});return}let c=await i(r),l=r.local?e:await n();if(r.accountId=l,r.body){let e=u(r.body);a(await s(`Updating`,async()=>c.r2.superSlurper.connectivityPrecheck.source({body:e,account_id:l})),{successLabel:`Updated`});return}r.bucket===void 0&&(r.bucket=await h(`bucket`,`The bucket field`)),r.vendor===void 0&&(r.vendor=await g(`vendor`,`The vendor field`,[`s3`,`gcs`,`r2`]));let d=f({bucket:p(r.bucket,`bucket`,`text`),endpoint:p(r.endpoint,`endpoint`,`text`),keys:r.keys,pathPrefix:p(r[`path-prefix`],`path-prefix`,`text`),region:p(r.region,`region`,`text`),secret:{accessKeyId:p(r[`secret-access-key-id`],`secret-access-key-id`,`text`),secretAccessKey:p(r[`secret-secret-access-key`],`secret-secret-access-key`,`text`),clientEmail:p(r[`secret-client-email`],`secret-client-email`,`text`),privateKey:p(r[`secret-private-key`],`secret-private-key`,`text`)},vendor:p(r.vendor,`vendor`,`text`),jurisdiction:p(r.jurisdiction,`jurisdiction`,`text`)});a(await s(`Updating`,async()=>c.r2.superSlurper.connectivityPrecheck.source({body:d,account_id:l})),{successLabel:`Updated`})})};function it(e){return e.usage(`$0 r2 super-slurper connectivity-precheck target
|
|
100
99
|
|
|
101
|
-
|
|
100
|
+
Check whether tokens are valid against the target bucket`).option(`bucket`,{type:`string`,description:`The bucket field`}).option(`jurisdiction`,{type:`string`,description:`The jurisdiction field`,choices:[`default`,`eu`,`us`,`fedramp`]}).option(`secret-access-key-id`,{type:`string`,description:`The secret.accessKeyId field`}).option(`secret-secret-access-key`,{type:`string`,description:`The secret.secretAccessKey field`}).option(`vendor`,{type:`string`,description:`The vendor field`,choices:[`r2`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const at={command:`target`,describe:`Check target connectivity`,builder:it,handler:async r=>c({command:`r2 super-slurper connectivity-precheck target`,classification:{safeFlags:[`jurisdiction`,`vendor`,`dry-run`]}},r,async()=>{if(r.dryRun){o({command:`cf r2 super-slurper connectivity-precheck target`,method:`PUT`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/slurper/target/connectivity-precheck`,pathParams:{},bodyKind:`json`,body:r.body===void 0?f({bucket:p(r.bucket,`bucket`,`text`),jurisdiction:p(r.jurisdiction,`jurisdiction`,`text`),secret:{accessKeyId:p(r[`secret-access-key-id`],`secret-access-key-id`,`text`),secretAccessKey:p(r[`secret-secret-access-key`],`secret-secret-access-key`,`text`)},vendor:p(r.vendor,`vendor`,`text`)}):u(r.body)});return}let c=await i(r),l=r.local?e:await n();if(r.accountId=l,r.body){let e=u(r.body);a(await s(`Updating`,async()=>c.r2.superSlurper.connectivityPrecheck.target({body:e,account_id:l})),{successLabel:`Updated`});return}r.bucket===void 0&&(r.bucket=await h(`bucket`,`The bucket field`)),r[`secret-access-key-id`]===void 0&&(r[`secret-access-key-id`]=await h(`secret-access-key-id`,`The secret.accessKeyId field`)),r[`secret-secret-access-key`]===void 0&&(r[`secret-secret-access-key`]=await h(`secret-secret-access-key`,`The secret.secretAccessKey field`,{kind:`secret`})),r.vendor===void 0&&(r.vendor=await g(`vendor`,`The vendor field`,[`r2`]));let d=f({bucket:p(r.bucket,`bucket`,`text`),jurisdiction:p(r.jurisdiction,`jurisdiction`,`text`),secret:{accessKeyId:p(r[`secret-access-key-id`],`secret-access-key-id`,`text`),secretAccessKey:p(r[`secret-secret-access-key`],`secret-secret-access-key`,`text`)},vendor:p(r.vendor,`vendor`,`text`)});a(await s(`Updating`,async()=>c.r2.superSlurper.connectivityPrecheck.target({body:d,account_id:l})),{successLabel:`Updated`})})},ot={command:`connectivity-precheck`,describe:`Operations for super-slurper.connectivity-precheck`,builder:e=>e.command(rt).command(at).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function st(e){return e.usage(`$0 r2 super-slurper jobs abort-all
|
|
102
101
|
|
|
103
|
-
|
|
102
|
+
Cancels all running R2 Super Slurper migration jobs for the account. Any objects in the middle of a transfer will finish, but no new objects will start transferring.`).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 ct={command:`abort-all`,describe:`Abort all jobs`,builder:st,handler:async r=>c({command:`r2 super-slurper jobs abort-all`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},r,async()=>{if(r.dryRun){o({command:`cf r2 super-slurper jobs abort-all`,method:`PUT`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/slurper/jobs/abortAll`,pathParams:{},bodyKind:`none`});return}let c=await i(r),l=r.local?e:await n();if(r.accountId=l,!await _({force:!!r.force,message:`This operation stops every running migration job.`})){process.stderr.write(`Aborted.
|
|
103
|
+
`);return}a(await s(`Deleting`,async()=>c.r2.superSlurper.jobs.abortAll({account_id:l})),{successLabel:`Deleted`})})};function lt(e){return e.usage(`$0 r2 super-slurper jobs abort <job-id>
|
|
104
104
|
|
|
105
|
-
|
|
105
|
+
Cancels a specific R2 Super Slurper migration job. Any objects in the middle of a transfer will finish, but no new objects will start transferring.`).positional(`job-id`,{type:`string`,description:`Job ID`,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 ut={command:`abort <job-id>`,describe:`Abort a job`,builder:lt,handler:async r=>c({command:`r2 super-slurper jobs abort`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},r,async()=>{if(r.dryRun){o({command:`cf r2 super-slurper jobs abort`,method:`PUT`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/slurper/jobs/${r[`job-id`]==null?`<job-id>`:encodeURIComponent(String(r[`job-id`]))}/abort`,pathParams:{"job-id":String(r[`job-id`]??``)},bodyKind:`none`});return}let c=await i(r),l=r.local?e:await n();if(r.accountId=l,!await _({force:!!r.force,message:`This operation stops a running migration job.`})){process.stderr.write(`Aborted.
|
|
106
|
+
`);return}a(await s(`Deleting`,async()=>c.r2.superSlurper.jobs.abort({account_id:l,job_id:r[`job-id`]})),{successLabel:`Deleted`})})};function dt(e){return e.usage(`$0 r2 super-slurper jobs create
|
|
106
107
|
|
|
107
|
-
|
|
108
|
+
Creates a new R2 Super Slurper migration job to transfer objects from a source bucket (e.g. S3, GCS, R2) to R2.`).option(`overwrite`,{type:`boolean`,description:`The overwrite field`,default:!0}).option(`source-bucket`,{type:`string`,description:`The source.bucket field`}).option(`source-endpoint`,{type:`string`,description:`Custom S3-compatible endpoint that must use https://.`}).option(`source-keys`,{type:`string`,array:!0,description:`The source.keys field`}).option(`source-path-prefix`,{type:`string`,description:`The source.pathPrefix field`}).option(`source-region`,{type:`string`,description:`The source.region field`}).option(`source-secret-access-key-id`,{type:`string`,description:`The source.secret.accessKeyId field`}).option(`source-secret-secret-access-key`,{type:`string`,description:`The source.secret.secretAccessKey field`}).option(`source-secret-client-email`,{type:`string`,description:`The source.secret.clientEmail field`}).option(`source-secret-private-key`,{type:`string`,description:`The source.secret.privateKey field`}).option(`source-vendor`,{type:`string`,description:`The source.vendor field`,choices:[`s3`,`gcs`,`r2`]}).option(`source-jurisdiction`,{type:`string`,description:`The source.jurisdiction field`,choices:[`default`,`eu`,`us`,`fedramp`]}).option(`target-bucket`,{type:`string`,description:`The target.bucket field`}).option(`target-jurisdiction`,{type:`string`,description:`The target.jurisdiction field`,choices:[`default`,`eu`,`us`,`fedramp`]}).option(`target-secret-access-key-id`,{type:`string`,description:`The target.secret.accessKeyId field`}).option(`target-secret-secret-access-key`,{type:`string`,description:`The target.secret.secretAccessKey field`}).option(`target-vendor`,{type:`string`,description:`The target.vendor field`,choices:[`r2`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`}).conflicts(`source-endpoint`,[`source-secret-client-email`,`source-secret-private-key`,`source-jurisdiction`]).conflicts(`source-region`,[`source-secret-client-email`,`source-secret-private-key`,`source-jurisdiction`]).conflicts(`source-secret-access-key-id`,[`source-secret-client-email`,`source-secret-private-key`]).conflicts(`source-secret-secret-access-key`,[`source-secret-client-email`,`source-secret-private-key`]).conflicts(`source-secret-client-email`,[`source-endpoint`,`source-region`,`source-secret-access-key-id`,`source-secret-secret-access-key`,`source-jurisdiction`]).conflicts(`source-secret-private-key`,[`source-endpoint`,`source-region`,`source-secret-access-key-id`,`source-secret-secret-access-key`,`source-jurisdiction`]).conflicts(`source-jurisdiction`,[`source-endpoint`,`source-region`,`source-secret-client-email`,`source-secret-private-key`]).check(e=>{if([`source-bucket`,`source-endpoint`,`source-keys`,`source-path-prefix`,`source-region`,`source-secret-access-key-id`,`source-secret-secret-access-key`,`source-secret-client-email`,`source-secret-private-key`,`source-vendor`,`source-jurisdiction`].some(t=>e[t]!==void 0)){let t=[`source-bucket`,`source-vendor`].filter(t=>e[t]===void 0);if(t.length>0)throw Error(`${t.map(e=>`--`+e).join(`, `)} ${t.length===1?`is`:`are`} required when any --source-* flag is set`)}return!0}).check(e=>{if([`target-bucket`,`target-jurisdiction`,`target-secret-access-key-id`,`target-secret-secret-access-key`,`target-vendor`].some(t=>e[t]!==void 0)){let t=[`target-bucket`,`target-secret-access-key-id`,`target-secret-secret-access-key`,`target-vendor`].filter(t=>e[t]===void 0);if(t.length>0)throw Error(`${t.map(e=>`--`+e).join(`, `)} ${t.length===1?`is`:`are`} required when any --target-* flag is set`)}return!0})}const ft={command:`create`,describe:`Create a job`,builder:dt,handler:async r=>c({command:`r2 super-slurper jobs create`,classification:{safeFlags:[`overwrite`,`source-vendor`,`source-jurisdiction`,`target-jurisdiction`,`target-vendor`,`dry-run`]}},r,async()=>{if(r.dryRun){o({command:`cf r2 super-slurper jobs create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/slurper/jobs`,pathParams:{},bodyKind:`json`,body:r.body===void 0?f({overwrite:r.overwrite,source:{bucket:p(r[`source-bucket`],`source-bucket`,`text`),endpoint:p(r[`source-endpoint`],`source-endpoint`,`text`),keys:r[`source-keys`],pathPrefix:p(r[`source-path-prefix`],`source-path-prefix`,`text`),region:p(r[`source-region`],`source-region`,`text`),secret:{accessKeyId:p(r[`source-secret-access-key-id`],`source-secret-access-key-id`,`text`),secretAccessKey:p(r[`source-secret-secret-access-key`],`source-secret-secret-access-key`,`text`),clientEmail:p(r[`source-secret-client-email`],`source-secret-client-email`,`text`),privateKey:p(r[`source-secret-private-key`],`source-secret-private-key`,`text`)},vendor:p(r[`source-vendor`],`source-vendor`,`text`),jurisdiction:p(r[`source-jurisdiction`],`source-jurisdiction`,`text`)},target:{bucket:p(r[`target-bucket`],`target-bucket`,`text`),jurisdiction:p(r[`target-jurisdiction`],`target-jurisdiction`,`text`),secret:{accessKeyId:p(r[`target-secret-access-key-id`],`target-secret-access-key-id`,`text`),secretAccessKey:p(r[`target-secret-secret-access-key`],`target-secret-secret-access-key`,`text`)},vendor:p(r[`target-vendor`],`target-vendor`,`text`)}}):u(r.body)});return}let c=await i(r),l=r.local?e:await n();if(r.accountId=l,r.body){let e=u(r.body);a(await s(`Creating`,async()=>c.r2.superSlurper.jobs.create({...e,account_id:l})),{successLabel:`Created`});return}let d=f({overwrite:r.overwrite,source:{bucket:p(r[`source-bucket`],`source-bucket`,`text`),endpoint:p(r[`source-endpoint`],`source-endpoint`,`text`),keys:r[`source-keys`],pathPrefix:p(r[`source-path-prefix`],`source-path-prefix`,`text`),region:p(r[`source-region`],`source-region`,`text`),secret:{accessKeyId:p(r[`source-secret-access-key-id`],`source-secret-access-key-id`,`text`),secretAccessKey:p(r[`source-secret-secret-access-key`],`source-secret-secret-access-key`,`text`),clientEmail:p(r[`source-secret-client-email`],`source-secret-client-email`,`text`),privateKey:p(r[`source-secret-private-key`],`source-secret-private-key`,`text`)},vendor:p(r[`source-vendor`],`source-vendor`,`text`),jurisdiction:p(r[`source-jurisdiction`],`source-jurisdiction`,`text`)},target:{bucket:p(r[`target-bucket`],`target-bucket`,`text`),jurisdiction:p(r[`target-jurisdiction`],`target-jurisdiction`,`text`),secret:{accessKeyId:p(r[`target-secret-access-key-id`],`target-secret-access-key-id`,`text`),secretAccessKey:p(r[`target-secret-secret-access-key`],`target-secret-secret-access-key`,`text`)},vendor:p(r[`target-vendor`],`target-vendor`,`text`)}});a(await s(`Creating`,async()=>c.r2.superSlurper.jobs.create({...d,account_id:l})),{successLabel:`Created`})})};function pt(e){return e.usage(`$0 r2 super-slurper jobs delete <job-id>
|
|
108
109
|
|
|
109
|
-
|
|
110
|
-
`);return}a(await s(`Deleting`,async()=>c.r2.superSlurper.jobs.
|
|
110
|
+
Deletes a completed, aborted, or errored R2 Super Slurper migration job. Active jobs cannot be deleted.`).positional(`job-id`,{type:`string`,description:`Job ID`,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 mt={command:`delete <job-id>`,describe:`Delete a job`,builder:pt,handler:async r=>c({command:`r2 super-slurper jobs delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},r,async()=>{if(r.dryRun){o({command:`cf r2 super-slurper jobs delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/slurper/jobs/${r[`job-id`]==null?`<job-id>`:encodeURIComponent(String(r[`job-id`]))}`,pathParams:{"job-id":String(r[`job-id`]??``)},bodyKind:`none`});return}let c=await i(r),l=r.local?e:await n();if(r.accountId=l,!await _({force:!!r.force})){process.stderr.write(`Aborted.
|
|
111
|
+
`);return}a(await s(`Deleting`,async()=>c.r2.superSlurper.jobs.delete({account_id:l,job_id:r[`job-id`]})),{successLabel:`Deleted`})})};function ht(e){return e.usage(`$0 r2 super-slurper jobs get <job-id>
|
|
111
112
|
|
|
112
|
-
|
|
113
|
-
`);return}a(await s(`Deleting`,async()=>c.r2.superSlurper.jobs.abort({account_id:l,job_id:r[`job-id`]})),{successLabel:`Deleted`})})};function vt(e){return e.usage(`$0 r2 super-slurper jobs create
|
|
113
|
+
Retrieves detailed status and configuration for a specific R2 Super Slurper migration job.`).positional(`job-id`,{type:`string`,description:`Job ID`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const gt={command:`get <job-id>`,describe:`Get job details`,builder:ht,handler:async r=>c({command:`r2 super-slurper jobs get`,classification:{safeFlags:[`dry-run`]}},r,async()=>{if(r.dryRun){o({command:`cf r2 super-slurper jobs get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/slurper/jobs/${r[`job-id`]==null?`<job-id>`:encodeURIComponent(String(r[`job-id`]))}`,pathParams:{"job-id":String(r[`job-id`]??``)},bodyKind:`none`});return}let c=await i(r),l=r.local?e:await n();r.accountId=l,a(await s(`Loading`,async()=>c.r2.superSlurper.jobs.get({account_id:l,job_id:r[`job-id`]})),{successLabel:`Loaded`})})};function _t(e){return e.usage(`$0 r2 super-slurper jobs list
|
|
114
114
|
|
|
115
|
-
|
|
115
|
+
Lists all R2 Super Slurper migration jobs for the account with their status.`).option(`limit`,{type:`number`,description:`Limit`}).option(`offset`,{type:`number`,description:`Offset`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const vt={command:`list`,describe:`List jobs`,builder:_t,handler:async r=>c({command:`r2 super-slurper jobs list`,classification:{safeFlags:[`dry-run`]}},r,async()=>{let c={limit:r.limit,offset:r.offset};if(r.dryRun){o({command:`cf r2 super-slurper jobs list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/slurper/jobs`,pathParams:{},query:c,bodyKind:`none`});return}let l=await i(r),u=r.local?e:await n();r.accountId=u,a(await s(`Loading`,async()=>l.r2.superSlurper.jobs.list({account_id:u,...c})),{successLabel:`Loaded`})})};function yt(e){return e.usage(`$0 r2 super-slurper jobs logs list
|
|
116
116
|
|
|
117
|
-
|
|
118
|
-
`);return}a(await s(`Deleting`,async()=>c.r2.superSlurper.jobs.delete({account_id:l,job_id:r[`job-id`]})),{successLabel:`Deleted`})})};function St(e){return e.usage(`$0 r2 super-slurper jobs get <job-id>
|
|
117
|
+
Gets log entries for an R2 Super Slurper migration job, showing migration status changes, errors, etc.`).option(`job-id`,{type:`string`,description:`Job ID`,demandOption:!0}).option(`limit`,{type:`number`,description:`Limit`}).option(`offset`,{type:`number`,description:`Offset`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const $={command:`list`,describe:`Get job logs`,builder:yt,handler:async r=>c({command:`r2 super-slurper jobs logs list`,classification:{safeFlags:[`dry-run`]}},r,async()=>{let c={limit:r.limit,offset:r.offset};if(r.dryRun){o({command:`cf r2 super-slurper jobs logs list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/slurper/jobs/${r[`job-id`]==null?`<job-id>`:encodeURIComponent(String(r[`job-id`]))}/logs`,pathParams:{"job-id":String(r[`job-id`]??``)},query:c,bodyKind:`none`});return}let l=await i(r),u=r.local?e:await n();r.accountId=u,a(await s(`Loading`,async()=>l.r2.superSlurper.jobs.logs.list({account_id:u,job_id:r[`job-id`],...c})),{successLabel:`Loaded`})})},bt={command:`logs`,describe:`Operations for super-slurper.jobs.logs`,builder:e=>e.command($).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function xt(e){return e.usage(`$0 r2 super-slurper jobs pause <job-id>
|
|
119
118
|
|
|
120
|
-
|
|
119
|
+
Pauses a running R2 Super Slurper migration job. The job can be resumed later to continue transferring.`).positional(`job-id`,{type:`string`,description:`Job ID`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const St={command:`pause <job-id>`,describe:`Pause a job`,builder:xt,handler:async r=>c({command:`r2 super-slurper jobs pause`,classification:{safeFlags:[`dry-run`]}},r,async()=>{if(r.dryRun){o({command:`cf r2 super-slurper jobs pause`,method:`PUT`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/slurper/jobs/${r[`job-id`]==null?`<job-id>`:encodeURIComponent(String(r[`job-id`]))}/pause`,pathParams:{"job-id":String(r[`job-id`]??``)},bodyKind:`none`});return}let c=await i(r),l=r.local?e:await n();r.accountId=l,a(await s(`Updating`,async()=>c.r2.superSlurper.jobs.pause({account_id:l,job_id:r[`job-id`]})),{successLabel:`Updated`})})};function Ct(e){return e.usage(`$0 r2 super-slurper jobs progress <job-id>
|
|
121
120
|
|
|
122
|
-
|
|
121
|
+
Retrieves current progress metrics for an R2 Super Slurper migration job`).positional(`job-id`,{type:`string`,description:`Job ID`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const wt={command:`progress <job-id>`,describe:`Get job progress`,builder:Ct,handler:async r=>c({command:`r2 super-slurper jobs progress`,classification:{safeFlags:[`dry-run`]}},r,async()=>{if(r.dryRun){o({command:`cf r2 super-slurper jobs progress`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/slurper/jobs/${r[`job-id`]==null?`<job-id>`:encodeURIComponent(String(r[`job-id`]))}/progress`,pathParams:{"job-id":String(r[`job-id`]??``)},bodyKind:`none`});return}let c=await i(r),l=r.local?e:await n();r.accountId=l,a(await s(`Loading`,async()=>c.r2.superSlurper.jobs.progress({account_id:l,job_id:r[`job-id`]})),{successLabel:`Loaded`})})};function Tt(e){return e.usage(`$0 r2 super-slurper jobs resume <job-id>
|
|
123
122
|
|
|
124
|
-
|
|
123
|
+
Resumes a paused R2 Super Slurper migration job, continuing the transfer from where it stopped.`).positional(`job-id`,{type:`string`,description:`Job ID`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const Et={command:`resume <job-id>`,describe:`Resume a job`,builder:Tt,handler:async r=>c({command:`r2 super-slurper jobs resume`,classification:{safeFlags:[`dry-run`]}},r,async()=>{if(r.dryRun){o({command:`cf r2 super-slurper jobs resume`,method:`PUT`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/slurper/jobs/${r[`job-id`]==null?`<job-id>`:encodeURIComponent(String(r[`job-id`]))}/resume`,pathParams:{"job-id":String(r[`job-id`]??``)},bodyKind:`none`});return}let c=await i(r),l=r.local?e:await n();r.accountId=l,a(await s(`Updating`,async()=>c.r2.superSlurper.jobs.resume({account_id:l,job_id:r[`job-id`]})),{successLabel:`Updated`})})},Dt={command:`jobs`,describe:`Operations for super-slurper.jobs`,builder:e=>e.command(ut).command(ct).command(ft).command(mt).command(gt).command(vt).command(St).command(wt).command(Et).command(bt).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},Ot={command:`super-slurper`,describe:`Migrate data from external S3-compatible storage into R2 buckets with resumable transfer jobs`,builder:e=>e.command(ot).command(Dt).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function kt(e){return e.usage(`$0 r2 temporary-credentials create
|
|
125
124
|
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
Retrieves current progress metrics for an R2 Super Slurper migration job`).positional(`job-id`,{type:`string`,description:`Job ID`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const jt={command:`progress <job-id>`,describe:`Get job progress`,builder:At,handler:async r=>c({command:`r2 super-slurper jobs progress`,classification:{safeFlags:[`dry-run`]}},r,async()=>{if(r.dryRun){o({command:`cf r2 super-slurper jobs progress`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/slurper/jobs/${r[`job-id`]==null?`<job-id>`:encodeURIComponent(String(r[`job-id`]))}/progress`,pathParams:{"job-id":String(r[`job-id`]??``)},bodyKind:`none`});return}let c=await i(r),l=r.local?e:await n();r.accountId=l,a(await s(`Loading`,async()=>c.r2.superSlurper.jobs.progress({account_id:l,job_id:r[`job-id`]})),{successLabel:`Loaded`})})};function Mt(e){return e.usage(`$0 r2 super-slurper jobs resume <job-id>
|
|
129
|
-
|
|
130
|
-
Resumes a paused R2 Super Slurper migration job, continuing the transfer from where it stopped.`).positional(`job-id`,{type:`string`,description:`Job ID`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const Nt={command:`resume <job-id>`,describe:`Resume a job`,builder:Mt,handler:async r=>c({command:`r2 super-slurper jobs resume`,classification:{safeFlags:[`dry-run`]}},r,async()=>{if(r.dryRun){o({command:`cf r2 super-slurper jobs resume`,method:`PUT`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/slurper/jobs/${r[`job-id`]==null?`<job-id>`:encodeURIComponent(String(r[`job-id`]))}/resume`,pathParams:{"job-id":String(r[`job-id`]??``)},bodyKind:`none`});return}let c=await i(r),l=r.local?e:await n();r.accountId=l,a(await s(`Updating`,async()=>c.r2.superSlurper.jobs.resume({account_id:l,job_id:r[`job-id`]})),{successLabel:`Updated`})})},Pt={command:`jobs`,describe:`Operations for super-slurper.jobs`,builder:e=>e.command(_t).command(ht).command(yt).command(xt).command(Ct).command(Tt).command(kt).command(jt).command(Nt).command(Dt).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},Ft={command:`super-slurper`,describe:`Migrate data from external S3-compatible storage into R2 buckets with resumable transfer jobs`,builder:e=>e.command(pt).command(Pt).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function It(e){return e.usage(`$0 r2 temporary-credentials create
|
|
131
|
-
|
|
132
|
-
Creates temporary access credentials on a bucket that can be optionally scoped to prefixes or objects.`).option(`bucket`,{type:`string`,description:`Name of the R2 bucket.`}).option(`objects`,{type:`string`,array:!0,description:`Optional object paths to scope the credentials to.`}).option(`parent-access-key-id`,{type:`string`,description:`Access key ID of the parent R2 API token. The temporary credentials cannot exceed this token's permissions.`}).option(`permission`,{type:`string`,description:`Permissions allowed on the credentials.`,choices:[`admin-read-write`,`admin-read-only`,`object-read-write`,`object-read-only`]}).option(`prefixes`,{type:`string`,array:!0,description:`Optional prefix paths to scope the credentials to.`}).option(`ttl-seconds`,{type:`number`,description:`Lifetime of the temporary credentials in seconds, up to 604800 seconds (7 days).`,default:900}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const Lt={command:`create`,describe:`Create Temporary Access Credentials`,builder:It,handler:async r=>c({command:`r2 temporary-credentials create`,classification:{safeFlags:[`permission`,`dry-run`]}},r,async()=>{if(r.dryRun){o({command:`cf r2 temporary-credentials create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/r2/temp-access-credentials`,pathParams:{},bodyKind:`json`,body:r.body===void 0?f({bucket:p(r.bucket,`bucket`,`text`),objects:r.objects,parentAccessKeyId:p(r[`parent-access-key-id`],`parent-access-key-id`,`text`),permission:p(r.permission,`permission`,`text`),prefixes:r.prefixes,ttlSeconds:r[`ttl-seconds`]}):u(r.body)});return}let c=await i(r),l=r.local?e:await n();if(r.accountId=l,r.body){let e=u(r.body);a(await s(`Creating`,async()=>c.r2.temporaryCredentials.create({...e,account_id:l})),{successLabel:`Created`});return}if(r.bucket===void 0&&(r.bucket=await h(`bucket`,`Name of the R2 bucket.`)),r[`parent-access-key-id`]===void 0&&(r[`parent-access-key-id`]=await h(`parent-access-key-id`,`Access key ID of the parent R2 API token. The temporary credentials cannot exceed this token's permissions.`)),r.permission===void 0&&(r.permission=await g(`permission`,`Permissions allowed on the credentials.`,[`admin-read-write`,`admin-read-only`,`object-read-write`,`object-read-only`])),r[`ttl-seconds`]===void 0)throw Error(`--ttl-seconds is required (or pass --body with this field set).`);let d=f({bucket:p(r.bucket,`bucket`,`text`),objects:r.objects,parentAccessKeyId:p(r[`parent-access-key-id`],`parent-access-key-id`,`text`),permission:p(r.permission,`permission`,`text`),prefixes:r.prefixes,ttlSeconds:r[`ttl-seconds`]});a(await s(`Creating`,async()=>c.r2.temporaryCredentials.create({...d,account_id:l})),{successLabel:`Created`})})},Rt={command:`temporary-credentials`,describe:`Generate short-lived S3-compatible credentials scoped to specific buckets and operations`,builder:e=>e.command(Lt).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},zt={command:`r2`,describe:`S3-compatible object storage with zero egress fees — buckets, lifecycle rules, event notifications, and data migration`,builder:e=>e.command(Ze).command(ct).command(Ft).command(Rt).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};export{zt as default};
|
|
125
|
+
Creates temporary access credentials on a bucket that can be optionally scoped to prefixes or objects.`).option(`bucket`,{type:`string`,description:`Name of the R2 bucket.`}).option(`objects`,{type:`string`,array:!0,description:`Optional object paths to scope the credentials to.`}).option(`parent-access-key-id`,{type:`string`,description:`Access key ID of the parent R2 API token. The temporary credentials cannot exceed this token's permissions.`}).option(`permission`,{type:`string`,description:`Permissions allowed on the credentials.`,choices:[`admin-read-write`,`admin-read-only`,`object-read-write`,`object-read-only`]}).option(`prefixes`,{type:`string`,array:!0,description:`Optional prefix paths to scope the credentials to.`}).option(`ttl-seconds`,{type:`number`,description:`Lifetime of the temporary credentials in seconds, up to 604800 seconds (7 days).`,default:900}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const At={command:`create`,describe:`Create Temporary Access Credentials`,builder:kt,handler:async r=>c({command:`r2 temporary-credentials create`,classification:{safeFlags:[`permission`,`dry-run`]}},r,async()=>{if(r.dryRun){o({command:`cf r2 temporary-credentials create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/r2/temp-access-credentials`,pathParams:{},bodyKind:`json`,body:r.body===void 0?f({bucket:p(r.bucket,`bucket`,`text`),objects:r.objects,parentAccessKeyId:p(r[`parent-access-key-id`],`parent-access-key-id`,`text`),permission:p(r.permission,`permission`,`text`),prefixes:r.prefixes,ttlSeconds:r[`ttl-seconds`]}):u(r.body)});return}let c=await i(r),l=r.local?e:await n();if(r.accountId=l,r.body){let e=u(r.body);a(await s(`Creating`,async()=>c.r2.temporaryCredentials.create({...e,account_id:l})),{successLabel:`Created`});return}if(r.bucket===void 0&&(r.bucket=await h(`bucket`,`Name of the R2 bucket.`)),r[`parent-access-key-id`]===void 0&&(r[`parent-access-key-id`]=await h(`parent-access-key-id`,`Access key ID of the parent R2 API token. The temporary credentials cannot exceed this token's permissions.`)),r.permission===void 0&&(r.permission=await g(`permission`,`Permissions allowed on the credentials.`,[`admin-read-write`,`admin-read-only`,`object-read-write`,`object-read-only`])),r[`ttl-seconds`]===void 0)throw Error(`--ttl-seconds is required (or pass --body with this field set).`);let d=f({bucket:p(r.bucket,`bucket`,`text`),objects:r.objects,parentAccessKeyId:p(r[`parent-access-key-id`],`parent-access-key-id`,`text`),permission:p(r.permission,`permission`,`text`),prefixes:r.prefixes,ttlSeconds:r[`ttl-seconds`]});a(await s(`Creating`,async()=>c.r2.temporaryCredentials.create({...d,account_id:l})),{successLabel:`Created`})})},jt={command:`temporary-credentials`,describe:`Generate short-lived S3-compatible credentials scoped to specific buckets and operations`,builder:e=>e.command(At).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},Mt={command:`r2`,describe:`S3-compatible object storage with zero egress fees — buckets, lifecycle rules, event notifications, and data migration`,builder:e=>e.command(We).command(tt).command(Ot).command(jt).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};export{Mt as default};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import{r as e}from"./auth-
|
|
2
|
+
import{r as e}from"./auth-CHTMVVW3.mjs";import{t}from"./output-CvQFJkvi.mjs";import{t as n}from"./dry-run-Bq0JAsbX.mjs";import{t as r}from"./progress-BlxgG8Ss.mjs";import{t as i}from"./run-l2pCxS-W.mjs";import"./telemetry-BqtdHwmi.mjs";import{n as a,t as o}from"./body-parser-hh2avzkz.mjs";import{t as s}from"./cli-types-DoVT5q_M.mjs";import{n as c,t as l}from"./raw-fetch-CWRDTVMr.mjs";function ee(e){return e.usage(`$0 radar agent-readiness summary <dimension>
|
|
3
3
|
|
|
4
4
|
Returns a summary of AI agent readiness scores across scanned domains, grouped by the specified dimension. Data is sourced from weekly bulk scans. All values are raw domain counts.`).positional(`dimension`,{type:`string`,description:`Specifies the agent readiness data dimension by which to group the results.`,demandOption:!0}).option(`date`,{type:`string`,description:`Filters results by the specified date.`}).option(`domain-category`,{type:`string`,description:`Filters results by domain category.`}).option(`name`,{type:`string`,description:`Array of names used to label the series in the response.`}).option(`format`,{type:`string`,description:`Format in which results will be returned.`,choices:[`JSON`,`CSV`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const te={command:`summary <dimension>`,describe:`Get agent readiness summary`,builder:s(ee),handler:async a=>i({command:`radar agent-readiness summary`,classification:{safeFlags:[`format`,`dry-run`]}},a,async()=>{let i={date:a.date,domainCategory:a[`domain-category`],name:a.name,format:a.format};if(a.dryRun){n({command:`cf radar agent-readiness summary`,method:`GET`,url:`https://api.cloudflare.com/client/v4/radar/agent_readiness/summary/${a.dimension==null?`<dimension>`:encodeURIComponent(String(a.dimension))}`,pathParams:{dimension:String(a.dimension??``)},query:i,bodyKind:`none`});return}let o=await e(a);t(await r(`Loading`,async()=>o.radar.agentReadiness.summary({dimension:a.dimension,...i})),{successLabel:`Loaded`})})},u={command:`agent-readiness`,describe:`Agent readiness summary statistics across the Cloudflare network`,builder:e=>e.command(te).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function d(e){return e.usage(`$0 radar ai bots timeseries-groups <dimension>
|
|
5
5
|
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import{r as e}from"./sdk-
|
|
2
|
+
import{r as e}from"./sdk-DzVznUuv.mjs";import{G as t}from"./dist-BuCJ_55d.mjs";import{r as n}from"./local-C9i1d0ma.mjs";import{n as r}from"./context-C71TA0Yp.mjs";import{n as i}from"./request-headers-DmiSqfLo.mjs";import{i as a,t as o}from"./auth-CHTMVVW3.mjs";async function s(s,c={}){let{method:l=`GET`,local:u=!1}=c,d=t({compliance_region:await r()}),f=`${d.replace(/\/+$/,``)}${s}`,p={...i()};c.headers&&Object.assign(p,c.headers);let m=globalThis.fetch;u?m=n({persistTo:c.persistTo,apiBaseUrl:d}):p.Authorization=`Bearer ${await a()}`;let h,g=c.body;g!=null&&(g instanceof FormData?h=g:Buffer.isBuffer(g)||g instanceof Uint8Array||g instanceof ArrayBuffer?(h=g,p[`Content-Type`]??=c.contentType??`application/octet-stream`):typeof g==`string`?(h=g,c.contentType&&(p[`Content-Type`]??=c.contentType)):(h=JSON.stringify(g),p[`Content-Type`]??=c.contentType??`application/json`));let _=await m(f,{method:l,headers:p,...h===void 0?{}:{body:h},signal:AbortSignal.timeout(o)});if(!_.ok){let t=_.headers.get(`content-type`)??``,n;try{n=t.includes(`application/json`)?await _.json():await _.text()}catch{n=null}throw new e({statusCode:_.status,body:n,rawResponse:{status:_.status,statusText:_.statusText,url:_.url||f,headers:_.headers,redirected:_.redirected,type:_.type}})}let v=await _.arrayBuffer();return Buffer.from(v)}function c(e){process.stdout.write(e)}export{c as n,s as t};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import{t as e}from"./local-
|
|
2
|
+
import{t as e}from"./local-C9i1d0ma.mjs";import{a as t,t as n}from"./context-C71TA0Yp.mjs";import{r}from"./auth-CHTMVVW3.mjs";import{t as i}from"./output-CvQFJkvi.mjs";import{t as a}from"./dry-run-Bq0JAsbX.mjs";import{t as o}from"./progress-BlxgG8Ss.mjs";import{t as s}from"./run-l2pCxS-W.mjs";import"./telemetry-BqtdHwmi.mjs";import{n as c,t as l}from"./body-parser-hh2avzkz.mjs";import{n as u}from"./input-validation-Dk52b0me.mjs";import{a as d,i as f,n as p}from"./prompt-ClEoR47s.mjs";import{t as m}from"./cli-types-DoVT5q_M.mjs";function h(e){return e.usage(`$0 realtime kit analytics livestreams daily get <app-id>
|
|
3
3
|
|
|
4
4
|
Returns day-wise livestream analytics for the specified time range.`).positional(`app-id`,{type:`string`,description:`The app identifier tag.`,demandOption:!0}).option(`start-time`,{type:`number`,description:`Specify the start time as a Unix timestamp in seconds to access the livestream analytics.`}).option(`end-time`,{type:`number`,description:`Specify the end time as a Unix timestamp in seconds to access the livestream analytics.`}).option(`filters`,{type:`string`,description:`Optional filters for livestream analytics.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const ee={command:`get <app-id>`,describe:`Fetch day-wise analytics data for your livestreams`,builder:h,handler:async c=>s({command:`realtime kit analytics livestreams daily get`,classification:{safeFlags:[`dry-run`]}},c,async()=>{let s={start_time:c[`start-time`],end_time:c[`end-time`],filters:c.filters};if(c.dryRun){a({command:`cf realtime kit analytics livestreams daily get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/realtime/kit/${c[`app-id`]==null?`<app-id>`:encodeURIComponent(String(c[`app-id`]))}/analytics/livestreams/daywise`,pathParams:{"app-id":String(c[`app-id`]??``)},query:s,bodyKind:`none`});return}let l=await r(c),u=c.local?e:await n();c.accountId=u,i(await o(`Loading`,async()=>l.realtime.kit.analytics.livestreams.daily.get({account_id:u,app_id:c[`app-id`],...s})),{successLabel:`Loaded`})})},te={command:`daily`,describe:`Daily livestream analytics for RealtimeKit applications`,builder:e=>e.command(ee).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function g(e){return e.usage(`$0 realtime kit analytics livestreams get <app-id>
|
|
5
5
|
|