cf 1.0.0-beta.1 → 1.0.0-beta.10

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.
Files changed (375) hide show
  1. package/README.md +12 -0
  2. package/dist/_meta/commands.json +11448 -13819
  3. package/dist/_meta/hand-written-commands.json +579 -41
  4. package/dist/_meta/schemas.json +14496 -16450
  5. package/dist/abuse-reports-BhSTEz7h.mjs +24 -0
  6. package/dist/access-D4DN4XZF.mjs +2 -0
  7. package/dist/{account-tags-DAf-hq1m.mjs → account-tags-BWEIZLID.mjs} +5 -5
  8. package/dist/{accounts-BDIKjiG2.mjs → accounts-ZQvIqGJz.mjs} +66 -60
  9. package/dist/{acm-D-q1FVWJ.mjs → acm-OQqE8FMc.mjs} +3 -3
  10. package/dist/{addressing-0w2U1NEy.mjs → addressing-DCFm17JQ.mjs} +50 -50
  11. package/dist/agent-context-GRiQ4zRU.mjs +2 -0
  12. package/dist/{agent-memory-Drumm4qd.mjs → agent-memory-BtfPt2me.mjs} +15 -15
  13. package/dist/ai-B0_sZbmy.mjs +29 -0
  14. package/dist/{ai-audit-CPrmohqf.mjs → ai-audit-DaubuhYF.mjs} +1 -1
  15. package/dist/ai-gateway-CJ-1Dzzr.mjs +82 -0
  16. package/dist/{ai-search-B5l4IDSR.mjs → ai-search-Dywa1kqX.mjs} +37 -37
  17. package/dist/{ai-security-C7_IGDDl.mjs → ai-security-2wxMPqKS.mjs} +1 -1
  18. package/dist/{alerting-B6m1Rhf4.mjs → alerting-yad9DYRv.mjs} +26 -26
  19. package/dist/analytics-DKNw2fVc.mjs +20 -0
  20. package/dist/{analytics_engine-BvjKCwn1.mjs → analytics_engine-BA3kF46s.mjs} +2 -2
  21. package/dist/{api-security-B9IozS2a.mjs → api-security-CSuYMpMO.mjs} +61 -61
  22. package/dist/{argo-C_QcqR6P.mjs → argo-DMfNmOV4.mjs} +1 -1
  23. package/dist/args-CXgkQKK7.mjs +2 -0
  24. package/dist/{artifacts-DDFNpYBz.mjs → artifacts-Cb3hwClm.mjs} +20 -20
  25. package/dist/{audit-logs-cTzNV0DV.mjs → audit-logs-BrjNuiLx.mjs} +2 -2
  26. package/dist/auth-BBlAI8HG.mjs +2 -0
  27. package/dist/auth-BIr56Mbx.mjs +8 -0
  28. package/dist/autoconfig-DPUztTL2.mjs +511 -0
  29. package/dist/banner-ClclgnBn.mjs +2 -0
  30. package/dist/basin-catalog-BLsQhJP4.mjs +46 -0
  31. package/dist/{billing-DU2X-q-x.mjs → billing-CRwD7oQS.mjs} +10 -10
  32. package/dist/{bot-management-BHAAoZOh.mjs → bot-management-CyW8F8Wm.mjs} +1 -1
  33. package/dist/{botnet-feed-DOOnGVVY.mjs → botnet-feed-BBKsxf3Y.mjs} +5 -5
  34. package/dist/{brand-protection-C_DYa7IK.mjs → brand-protection-DSeD8LXl.mjs} +13 -13
  35. package/dist/browser-extension-C1zmKFDG.mjs +2 -0
  36. package/dist/{browser-run-Dw-vgWGR.mjs → browser-run-BAcUTwB4.mjs} +23 -23
  37. package/dist/build-B5UYMEQH.mjs +2 -0
  38. package/dist/build-DLZ9gBNA.mjs +2 -0
  39. package/dist/{builds-CO0MmSd3.mjs → builds-W1HEG7Bv.mjs} +31 -31
  40. package/dist/{cache-XxusQxXe.mjs → cache-B7E_PXUp.mjs} +27 -27
  41. package/dist/{certificate-authorities-Dmxh7w-Z.mjs → certificate-authorities-D_uAJH9B.mjs} +1 -1
  42. package/dist/cf-Bh_fTFIj.mjs +18 -0
  43. package/dist/chunk-FT2NMTJB-1VFYM1Ro.mjs +97 -0
  44. package/dist/chunk-KKDV4JPS-DdzLLtnl.mjs +2 -0
  45. package/dist/chunk-U6NEESU5-BhF4rnpx.mjs +2 -0
  46. package/dist/chunk-WMOON6TZ-D_ToS88f.mjs +2 -0
  47. package/dist/cli-BeXSqJAj.mjs +6 -0
  48. package/dist/cli-exit-Dqoo6Jgb.mjs +2 -0
  49. package/dist/client-certificates-DqFcK_s1.mjs +13 -0
  50. package/dist/{client-side-security-D7NWV0YH.mjs → client-side-security-DJXZ1XAu.mjs} +1 -1
  51. package/dist/{cloud-connector-XMFOTNqT.mjs → cloud-connector-Czg1GdQi.mjs} +1 -1
  52. package/dist/{cloudflared-DhItYrCq.mjs → cloudflared-DGuau-lC.mjs} +1 -1
  53. package/dist/{cloudforce-one-Cew4MHvA.mjs → cloudforce-one-B1IhIZcp.mjs} +213 -222
  54. package/dist/command-6YTtWltE.mjs +2 -0
  55. package/dist/command-B6DqnUwt.mjs +2 -0
  56. package/dist/command-BCag-xjk.mjs +2 -0
  57. package/dist/command-BOLlvEan.mjs +2 -0
  58. package/dist/command-BrHTpaji.mjs +2 -0
  59. package/dist/command-CAtsHc1V.mjs +2 -0
  60. package/dist/command-C__qB2mo.mjs +2 -0
  61. package/dist/command-DUafPVUr.mjs +2 -0
  62. package/dist/command-DZookrfw.mjs +2 -0
  63. package/dist/command-DfffeX-k.mjs +2 -0
  64. package/dist/command-DxSJy_ym.mjs +2 -0
  65. package/dist/command-DzHL5LKI.mjs +2 -0
  66. package/dist/command-K1-DZFJS.mjs +2 -0
  67. package/dist/command-TCklVvOY.mjs +2 -0
  68. package/dist/command-xU78ACNA.mjs +2 -0
  69. package/dist/{completions-xPLd1cvL.mjs → completions-Cm9brGAI.mjs} +26 -26
  70. package/dist/{connector-interrupts-BfQN_pm6.mjs → connector-interrupts-D93KTMkw.mjs} +3 -3
  71. package/dist/{connector-telemetry-events-B7qLZsZJ.mjs → connector-telemetry-events-D6CmKR14.mjs} +3 -3
  72. package/dist/{connector-telemetry-snapshots-Ckvg9BPc.mjs → connector-telemetry-snapshots-WO9IUk0e.mjs} +3 -3
  73. package/dist/{connectors-BhvAP5fb.mjs → connectors-DNT6GTW3.mjs} +7 -7
  74. package/dist/{containers-Bl3EY-cy.mjs → containers-Btx7vCDP.mjs} +17 -17
  75. package/dist/{containers-Cq1gtnq6.mjs → containers-Ce7IO-Ia.mjs} +70 -72
  76. package/dist/{content-scan-BYGe9fFj.mjs → content-scan-C_ROsbTJ.mjs} +1 -1
  77. package/dist/context-CEOHpZgd.mjs +7 -0
  78. package/dist/{cps-BWMDWeVq.mjs → cps-BPQqyL2E.mjs} +1 -1
  79. package/dist/{csamScanner-DMYGzLNi.mjs → csamScanner-D-oO5cxT.mjs} +1 -1
  80. package/dist/{ct-alerting-Vq4l2s7n.mjs → ct-alerting-CnTRE1Fb.mjs} +1 -1
  81. package/dist/{custom-certificates-BDEHH0Ym.mjs → custom-certificates-DvnFBZdJ.mjs} +4 -4
  82. package/dist/{custom-csrs-CHSkZNdX.mjs → custom-csrs-BZ8TXbuQ.mjs} +5 -5
  83. package/dist/{custom-hostnames-Bch3iQZC.mjs → custom-hostnames-CTqf-KlT.mjs} +6 -6
  84. package/dist/{custom-nameservers-Tdvu1-vr.mjs → custom-nameservers-B0CpnUVg.mjs} +5 -5
  85. package/dist/{custom-pages-rFsiIXlr.mjs → custom-pages-DcoSGN56.mjs} +10 -10
  86. package/dist/{d1-C1GK7DsW.mjs → d1-m7UfzBzl.mjs} +16 -20
  87. package/dist/{dcv-delegation-D6xiYj2l.mjs → dcv-delegation-yOtz90qE.mjs} +1 -1
  88. package/dist/{delegate-GctF_lrq.mjs → delegate-B6LetRpZ.mjs} +1 -1
  89. package/dist/delegate.mjs +1 -1
  90. package/dist/{deploy-D04Xvm0m.mjs → deploy-C4p6SzLH.mjs} +1 -1
  91. package/dist/{deploy-input-COEKxOA1.mjs → deploy-input-DTjBGloL.mjs} +1 -1
  92. package/dist/dev-BML-bpNU.mjs +4 -0
  93. package/dist/{diagnostics-BZVAAguV.mjs → diagnostics-hOvnx5DT.mjs} +7 -7
  94. package/dist/dialog-BlUXJKbA.mjs +2 -0
  95. package/dist/discover-C5aiI6u0.mjs +2 -0
  96. package/dist/discover-DwczTkRX.mjs +2 -0
  97. package/dist/dist-BuCJ_55d.mjs +366 -0
  98. package/dist/dist-C3s9SXTd.mjs +48 -0
  99. package/dist/{dist-BpadEMNY.mjs → dist-DW47TUGh.mjs} +35 -35
  100. package/dist/{dls-BsnURYja.mjs → dls-v6DyEWTd.mjs} +8 -8
  101. package/dist/{dns-B_nTXhuM.mjs → dns-C9sUPsNt.mjs} +72 -63
  102. package/dist/{dns-firewall-DDsrdulo.mjs → dns-firewall-EDiT-Zli.mjs} +8 -8
  103. package/dist/dot-prop-IITUZ2XW-BilKo4kO.mjs +2 -0
  104. package/dist/dotenv-CcQjGlV0.mjs +4 -0
  105. package/dist/dry-run-Bq0JAsbX.mjs +2 -0
  106. package/dist/durable-objects-C01phVwL.mjs +6 -0
  107. package/dist/{email-auth-CzjtGH6g.mjs → email-auth-BgvoEHJk.mjs} +1 -1
  108. package/dist/{email-routing-B92fty1-.mjs → email-routing-Bggn219w.mjs} +24 -24
  109. package/dist/email-security-_t7rzrzd.mjs +158 -0
  110. package/dist/{email-sending-B7f95epu.mjs → email-sending-_dKCs2VF.mjs} +23 -23
  111. package/dist/error-sanitization-CJ5OLJrh.mjs +2 -0
  112. package/dist/error-sanitization-hmi1CqE5.mjs +2 -0
  113. package/dist/{fieldExtractors-DL_H1m7E.mjs → fieldExtractors-Cm5QnkE0.mjs} +4 -4
  114. package/dist/firewall-CZEN8iA_.mjs +36 -0
  115. package/dist/flagship-B_SAI_ZL.mjs +28 -0
  116. package/dist/{fraud-DU_YCLC5.mjs → fraud-9_9hobAh.mjs} +1 -1
  117. package/dist/generate-BPqoDbck.mjs +2 -0
  118. package/dist/generate-CLqGOlOx.mjs +3 -0
  119. package/dist/{google-tag-gateway-xqN-QudN.mjs → google-tag-gateway-O_N0vHRY.mjs} +1 -1
  120. package/dist/gt-DmcMNPX6.mjs +2 -0
  121. package/dist/{healthchecks-COnq1YOx.mjs → healthchecks-Bt3Gw_JZ.mjs} +1 -1
  122. package/dist/{hostnames-CxRAY_Pp.mjs → hostnames-DdOube3R.mjs} +1 -1
  123. package/dist/hyperdrive-C14NAh9l.mjs +37 -0
  124. package/dist/{iam-CtX9NPCy.mjs → iam-DUW7neMx.mjs} +24 -24
  125. package/dist/{images-CuWFOsGw.mjs → images-B9dnr1z0.mjs} +38 -38
  126. package/dist/index.mjs +1 -1
  127. package/dist/init-BGcAIvV7.mjs +39 -0
  128. package/dist/{intel-BeGV3VXt.mjs → intel-BQpZMck3.mjs} +38 -38
  129. package/dist/interactive-C-o16XQs.mjs +32 -0
  130. package/dist/interactive-SgAjen2z.mjs +2 -0
  131. package/dist/{ips-d6aoKAI4.mjs → ips-PT_uQKAf.mjs} +1 -1
  132. package/dist/k2-nPYti7Y0.mjs +13 -0
  133. package/dist/keyless-certificates-BHvas2q1.mjs +13 -0
  134. package/dist/{keys-Fyf3vWcA.mjs → keys-O5kAW9ox.mjs} +2 -2
  135. package/dist/kv-BUP_ZLM_.mjs +15 -0
  136. package/dist/lazy-command-glNW3jzf.mjs +2 -0
  137. package/dist/{leaked-credential-checks-B7ewx3W-.mjs → leaked-credential-checks-De9hI1rl.mjs} +1 -1
  138. package/dist/{load-balancers-DHD4f2CT.mjs → load-balancers-Cs6bUHS1.mjs} +39 -39
  139. package/dist/{local-B6b2OIBW.mjs → local-B5oRPTEN.mjs} +1 -1
  140. package/dist/local-Bj-l0TP6.mjs +2 -0
  141. package/dist/{local-runtime-DD8DAIlm.mjs → local-runtime-CZnegFEM.mjs} +1 -1
  142. package/dist/login-C5nSIS-T.mjs +2 -0
  143. package/dist/login-CUup7w0e.mjs +5 -0
  144. package/dist/{logo-matches-BAX8v3iL.mjs → logo-matches-BkQKdu4Z.mjs} +3 -3
  145. package/dist/{logos-BWBVGwU6.mjs → logos-C_sv-boo.mjs} +3 -3
  146. package/dist/{logpush-CZKR8DHO.mjs → logpush-NUcyMKHi.mjs} +23 -23
  147. package/dist/logs-BZT4PlqZ.mjs +36 -0
  148. package/dist/{magic-cloud-networking-DttrBXqd.mjs → magic-cloud-networking-DQnSdmgA.mjs} +34 -34
  149. package/dist/{magic-network-monitoring-9VXDSYuL.mjs → magic-network-monitoring-pHTU6aS8.mjs} +17 -17
  150. package/dist/{magic-transit-Dsu_cSGM.mjs → magic-transit-5302bQNh.mjs} +154 -158
  151. package/dist/{managed-defense-SYreve4W.mjs → managed-defense-8OEfDzuO.mjs} +9 -9
  152. package/dist/{managed-transforms-CzSy_xPw.mjs → managed-transforms-CCpUz4TY.mjs} +1 -1
  153. package/dist/{matches-qf7GReyu.mjs → matches-BSiYXs99.mjs} +3 -3
  154. package/dist/{mcp-DYSk5_gc.mjs → mcp-CCMiS75R.mjs} +15 -15
  155. package/dist/{mesh-DdY07OYt.mjs → mesh-DKBGTlCD.mjs} +12 -12
  156. package/dist/migrate-BJ9Go_wP.mjs +2 -0
  157. package/dist/monetization-CFf_lb6x.mjs +20 -0
  158. package/dist/mtls-certificates-DsF3NFNs.mjs +13 -0
  159. package/dist/{network-DpaZ5LJL.mjs → network-Bm0qYRqY.mjs} +24 -24
  160. package/dist/{network-interconnects-C4uUoeNa.mjs → network-interconnects-YiRUBbjx.mjs} +17 -17
  161. package/dist/{oauth-nsTDJ0dF.mjs → oauth-DxGgIwFc.mjs} +1 -1
  162. package/dist/oauth-cNZUky3h.mjs +9 -0
  163. package/dist/{oauth-clients-D7Ou7oAS.mjs → oauth-clients-CP6alY0_.mjs} +7 -7
  164. package/dist/{oauth-scopes-BFoE82Mv.mjs → oauth-scopes-xl-pcWdg.mjs} +1 -1
  165. package/dist/{observability-smcOFbC1.mjs → observability-Bp71PtlD.mjs} +44 -44
  166. package/dist/open-PCXX3ZDZ-BKRik1gi.mjs +4 -0
  167. package/dist/{organization-Dyf_0mq4.mjs → organization-Dbom1gTR.mjs} +7 -7
  168. package/dist/{organizations-D7zGPLVm.mjs → organizations-OUMVsuen.mjs} +1 -1
  169. package/dist/{origin-ca-certificates-DJrp29gv.mjs → origin-ca-certificates-B3-T0-Nn.mjs} +3 -3
  170. package/dist/{origin-post-quantum-encryption-BYj3kJiq.mjs → origin-post-quantum-encryption-CGB6AfPa.mjs} +1 -1
  171. package/dist/{origin-tls-client-auth-j0tGh6Fy.mjs → origin-tls-client-auth-CgzzfAWr.mjs} +5 -5
  172. package/dist/output-CvQFJkvi.mjs +2 -0
  173. package/dist/{page-rules-CLzba_nr.mjs → page-rules-B9BQKU4_.mjs} +1 -1
  174. package/dist/pages-DZPdyuT4.mjs +54 -0
  175. package/dist/{pay-per-crawl-DbaTVI8V.mjs → pay-per-crawl-CnveMVDi.mjs} +32 -32
  176. package/dist/{pay-per-use-BEvtoppJ.mjs → pay-per-use-Bpxe8PHv.mjs} +3 -3
  177. package/dist/{pipelines-lps71uoA.mjs → pipelines-CHev3o5G.mjs} +20 -20
  178. package/dist/precursor-C9PK9Bue.mjs +4 -0
  179. package/dist/previews-BIMI1dTz.mjs +4 -0
  180. package/dist/progress-A61dRbXl.mjs +2 -0
  181. package/dist/prompt-CGUzvBgY.mjs +3 -0
  182. package/dist/{queries-EJYlFw8m.mjs → queries-f-btyefs.mjs} +4 -4
  183. package/dist/{queues-CozKGaA4.mjs → queues-kLNdeb3q.mjs} +29 -35
  184. package/dist/r2-D_awYx2p.mjs +125 -0
  185. package/dist/r2-data-catalog-2jQrdAdo.mjs +2 -0
  186. package/dist/{radar-NmpdyMo5.mjs → radar-CU4T02Ag.mjs} +1 -1
  187. package/dist/raw-fetch-CvkmFO23.mjs +2 -0
  188. package/dist/{realtime-iWTz8WbH.mjs → realtime-C0dvcBBM.mjs} +78 -78
  189. package/dist/{registrar-Cza1L8i_.mjs → registrar-CHc-4vcf.mjs} +8 -8
  190. package/dist/{registrar-sandbox-BP4GQg5s.mjs → registrar-sandbox-Dq8LV2AI.mjs} +6 -6
  191. package/dist/{registry-vreNkX6u.mjs → registry-Cg5lP8oo.mjs} +1 -1
  192. package/dist/{reporting-gvXX2MxY.mjs → reporting-4u21g6Dk.mjs} +7 -7
  193. package/dist/request-headers-D31kdxrQ.mjs +2 -0
  194. package/dist/{request-tracers-F8a_aj32.mjs → request-tracers-CupJ_83j.mjs} +2 -2
  195. package/dist/resolve-PZuJ878-.mjs +2 -0
  196. package/dist/{resource-sharing-D6XWIDmb.mjs → resource-sharing-CO-Lh-u7.mjs} +14 -14
  197. package/dist/{resource-tagging-c_z4VZt0.mjs → resource-tagging-D0R5SzR6.mjs} +2 -2
  198. package/dist/{rules-_QDaG3U5.mjs → rules-BsmKzB9H.mjs} +8 -8
  199. package/dist/{rulesets-Bc4ZuPG_.mjs → rulesets-HOOnxHZZ.mjs} +20 -20
  200. package/dist/{rum-ChPyfpM2.mjs → rum-wcLEvVJl.mjs} +14 -14
  201. package/dist/run-CIJTelJL.mjs +2 -0
  202. package/dist/run-quhbAvQi.mjs +2 -0
  203. package/dist/schema-GdBsV4P7.mjs +2 -0
  204. package/dist/{schema-flags-C9lbLgE-.mjs → schema-flags-D8vL2oiF.mjs} +2 -2
  205. package/dist/{scim-BjiswXbC.mjs → scim-BkdJmAS8.mjs} +10 -10
  206. package/dist/{sdk-CsWOex96.mjs → sdk-BCzcRJCi.mjs} +2 -2
  207. package/dist/{secrets-store-Cn3D5a0d.mjs → secrets-store-CHs0oYA0.mjs} +11 -11
  208. package/dist/security-insights-vsl-4xFa.mjs +40 -0
  209. package/dist/{security-txt-CaR5Idmz.mjs → security-txt-Fnl3LdSn.mjs} +1 -1
  210. package/dist/session-CZTuHcbm.mjs +2 -0
  211. package/dist/shared-BS30oCf8.mjs +2 -0
  212. package/dist/{smart-shield-CphSzoh4.mjs → smart-shield-DB0E7cZI.mjs} +1 -1
  213. package/dist/{snippets-r-Mre0cE.mjs → snippets-CFaF_NyG.mjs} +1 -1
  214. package/dist/source-38bULAR8.mjs +6 -0
  215. package/dist/spawn-B0Sl8lUu.mjs +10 -0
  216. package/dist/{spectrum-BhjCVFZk.mjs → spectrum-DtG0jYjE.mjs} +1 -1
  217. package/dist/{speed-CPgypY7n.mjs → speed-B-RiNHGK.mjs} +1 -1
  218. package/dist/src-CM3XaB4p.mjs +109 -0
  219. package/dist/{ssl-DsMrXyqK.mjs → ssl-DBVpCZAM.mjs} +4 -4
  220. package/dist/startup-profile-CLmojOrn.mjs +2 -0
  221. package/dist/startup-profile-CR7GMuLx.mjs +17 -0
  222. package/dist/{state-BxCejn42.mjs → state-BaGRaYow.mjs} +1 -1
  223. package/dist/state-CpXhcMdX.mjs +2 -0
  224. package/dist/{stream-L2NmGPby.mjs → stream-cAdBvpS1.mjs} +45 -45
  225. package/dist/{submit-KN0Ul5fV.mjs → submit-Bkd7l2rK.mjs} +2 -2
  226. package/dist/{tags-CZMFKGdP.mjs → tags--eph7JbN.mjs} +2 -2
  227. package/dist/telemetry-51etasAu.mjs +2 -0
  228. package/dist/telemetry-Q3_UmwHj.mjs +2 -0
  229. package/dist/tenant-Bj-He2xO.mjs +10 -0
  230. package/dist/{tenant-custom-nameservers-Nx59Buv0.mjs → tenant-custom-nameservers-B5IIIwbz.mjs} +1 -1
  231. package/dist/{theme-BiIYWOed.mjs → theme-BIWQFmZ0.mjs} +2 -2
  232. package/dist/tools-BJZ0DDlL.mjs +2 -0
  233. package/dist/{tunnels-C-mMZy4v.mjs → tunnels-CgtuRpcD.mjs} +15 -15
  234. package/dist/turnstile-Bmcnrzw7.mjs +33 -0
  235. package/dist/ui-BQxRjahW.mjs +5 -0
  236. package/dist/update-check-BqSpgzHk.mjs +2 -0
  237. package/dist/update-check-DC0qP_8z.mjs +2 -0
  238. package/dist/update-check-worker.mjs +1 -1
  239. package/dist/{url-info-7ikewAnp.mjs → url-info-DhVehaT8.mjs} +2 -2
  240. package/dist/{url-normalization-B0D7Fhf3.mjs → url-normalization-BpGDUUQc.mjs} +1 -1
  241. package/dist/{url-scanner-DpKIqkin.mjs → url-scanner-DiLdqsQk.mjs} +8 -8
  242. package/dist/{user-BFq8UM1s.mjs → user-B6P5_OjP.mjs} +1 -1
  243. package/dist/{values-DnBYV1ZD.mjs → values-Cxx4Lxrd.mjs} +2 -2
  244. package/dist/{vectorize-BpZ4UsUj.mjs → vectorize-YyxVpql-.mjs} +15 -15
  245. package/dist/version-C0pInAZ9.mjs +2 -0
  246. package/dist/{waiting-rooms-DJfqehy9.mjs → waiting-rooms-BdahlCdD.mjs} +25 -25
  247. package/dist/{web-assets-CCSSW_JH.mjs → web-assets-yaKxN4w_.mjs} +1 -1
  248. package/dist/{web3-bbT1REPc.mjs → web3-Bu9c_QAt.mjs} +1 -1
  249. package/dist/workers-5GgoGA2e.mjs +38 -0
  250. package/dist/{workers-builds-TRF3K416.mjs → workers-builds-h-1FJjE1.mjs} +7 -7
  251. package/dist/workers-for-platforms-CV9iRrp9.mjs +42 -0
  252. package/dist/{workers-vpc-kgryQ48l.mjs → workers-vpc-C1oUHHqk.mjs} +6 -6
  253. package/dist/{workflows-CKdPlIkK.mjs → workflows-dtMlkj1-.mjs} +20 -20
  254. package/dist/wrangler-migration-CJEb9hY3.mjs +2 -0
  255. package/dist/{zaraz-BXFlEWSx.mjs → zaraz-838AbMEX.mjs} +1 -1
  256. package/dist/{zero-trust-M08mBsYd.mjs → zero-trust-CYt-eELJ.mjs} +460 -434
  257. package/dist/{zone-DHmrotGW.mjs → zone-uJwRLSnn.mjs} +1 -1
  258. package/dist/{zones-C0eKBTqG.mjs → zones-Dpofsnth.mjs} +1 -1
  259. package/package.json +15 -12
  260. package/dist/abuse-reports-Dd6kJM7r.mjs +0 -26
  261. package/dist/access-C_2rEi0H.mjs +0 -27
  262. package/dist/account-CZ9SPVdz.mjs +0 -12
  263. package/dist/ai-ARwLeQ1O.mjs +0 -31
  264. package/dist/ai-gateway-DNY4FPF2.mjs +0 -147
  265. package/dist/analytics-nnzFBB_7.mjs +0 -21
  266. package/dist/auth-DJhSjNNL.mjs +0 -8
  267. package/dist/auth-sAorfdWU.mjs +0 -2
  268. package/dist/browser-extension-C48pKh3t.mjs +0 -15
  269. package/dist/build-1a8CiNIT.mjs +0 -2
  270. package/dist/build-Ca_drQY2.mjs +0 -2
  271. package/dist/cf-oadujOtC.mjs +0 -18
  272. package/dist/chunk-6EUZQHAF-QVTL_mC-.mjs +0 -2
  273. package/dist/chunk-DL5FNmn1.mjs +0 -2
  274. package/dist/chunk-Q72B4Q5Z-Cr1H_iK6.mjs +0 -2
  275. package/dist/chunk-Q72B4Q5Z-DKhx_4ok.mjs +0 -2
  276. package/dist/chunk-QBZBEHZB-Byagrlop.mjs +0 -2
  277. package/dist/chunk-XLADBZ7F-BXKOjWbx.mjs +0 -374
  278. package/dist/client-certificates-CgaIc3zN.mjs +0 -13
  279. package/dist/command-CF0giIIc.mjs +0 -3
  280. package/dist/command-CsZFRm3P.mjs +0 -2
  281. package/dist/command-DBz8QiFk.mjs +0 -2
  282. package/dist/command-RiZ_LYcm.mjs +0 -2
  283. package/dist/config-B4vIa0zp.mjs +0 -2
  284. package/dist/data-security-DDhPnX8Z.mjs +0 -71
  285. package/dist/dev-CVD3BVUG.mjs +0 -4
  286. package/dist/dialog--iw0F2s-.mjs +0 -2
  287. package/dist/dist-CUUGKvjh.mjs +0 -48
  288. package/dist/dist-dc4E1u01.mjs +0 -272
  289. package/dist/dot-prop-6SRZBKHT-Dj7YOlwR.mjs +0 -2
  290. package/dist/dry-run-CLX6Pbtq.mjs +0 -2
  291. package/dist/durable-objects-8U8DpF9q.mjs +0 -8
  292. package/dist/email-security-keTqF0nJ.mjs +0 -160
  293. package/dist/error-sanitization-Cbd_oegl.mjs +0 -2
  294. package/dist/error-sanitization-DwOlM3R7.mjs +0 -2
  295. package/dist/firewall-67qoXiqD.mjs +0 -56
  296. package/dist/flagship-CjC3dF7L.mjs +0 -28
  297. package/dist/hyperdrive-DPWyiXpj.mjs +0 -37
  298. package/dist/interactive-B6woOLo-.mjs +0 -32
  299. package/dist/interactive-DnUvQHjc.mjs +0 -2
  300. package/dist/keyless-certificates-Dvib4jhw.mjs +0 -13
  301. package/dist/kv-CA4J7cCq.mjs +0 -21
  302. package/dist/local-BrfySqnx.mjs +0 -2
  303. package/dist/login-CLW108XX.mjs +0 -5
  304. package/dist/login-xgRjiyJa.mjs +0 -2
  305. package/dist/logs-CiDyrqEu.mjs +0 -48
  306. package/dist/mtls-certificates-LXlgdkf1.mjs +0 -13
  307. package/dist/oauth-Dzk6Gy-6.mjs +0 -14
  308. package/dist/open-PBXRGS4R-C4CKEADM.mjs +0 -4
  309. package/dist/open-PBXRGS4R-C_-G_4DC.mjs +0 -4
  310. package/dist/output-Bia1u2k5.mjs +0 -2
  311. package/dist/pages-pah6dZBJ.mjs +0 -60
  312. package/dist/precursor-DTTYLDEa.mjs +0 -4
  313. package/dist/previews-B89cUmpr.mjs +0 -4
  314. package/dist/progress-D_mL-Kcy.mjs +0 -2
  315. package/dist/prompt-sL_yMZbI.mjs +0 -3
  316. package/dist/r2-Chn_JQUM.mjs +0 -127
  317. package/dist/r2-data-catalog-Bfn3AWzn.mjs +0 -44
  318. package/dist/raw-fetch-lSVttVJF.mjs +0 -2
  319. package/dist/request-headers-POBKmu93.mjs +0 -2
  320. package/dist/resolve-BXemCSyA.mjs +0 -2
  321. package/dist/run-DtN51G2A.mjs +0 -2
  322. package/dist/run-oACgYK8I.mjs +0 -2
  323. package/dist/schema-DZSSJaY0.mjs +0 -2
  324. package/dist/security-center-DP4GC1cG.mjs +0 -30
  325. package/dist/shared-W9uoX1-W.mjs +0 -2
  326. package/dist/source-BR4_k2ad.mjs +0 -6
  327. package/dist/spawn-BWEuIO-w.mjs +0 -523
  328. package/dist/src-Hw-TlVAO.mjs +0 -108
  329. package/dist/startup-profile-CYEokTVe.mjs +0 -2
  330. package/dist/startup-profile-CgWHy4rE.mjs +0 -17
  331. package/dist/state-DSzkxXML.mjs +0 -2
  332. package/dist/telemetry-CSj_ezpk.mjs +0 -2
  333. package/dist/telemetry-DAf9gLyH.mjs +0 -2
  334. package/dist/telemetry-Dk1GcQ0u.mjs +0 -5
  335. package/dist/tenant-Cu4P-foo.mjs +0 -12
  336. package/dist/tools-BMKpYraQ.mjs +0 -2
  337. package/dist/turnstile-39JL9tMt.mjs +0 -33
  338. package/dist/ui-DH95w1Qk.mjs +0 -5
  339. package/dist/undici-DTSBJHNS.mjs +0 -96
  340. package/dist/update-check-BKQBD4MQ.mjs +0 -2
  341. package/dist/update-check-CE9XB6gf.mjs +0 -2
  342. package/dist/version-Bh3b9vTa.mjs +0 -2
  343. package/dist/workers-CXuyjZB8.mjs +0 -36
  344. package/dist/workers-for-platforms-B57iKiSN.mjs +0 -25
  345. /package/dist/{Page-C-JHZnIy.mjs → Page-CjJht2qT.mjs} +0 -0
  346. /package/dist/{alerts-CstOk8n0.mjs → alerts-DY_7Nknx.mjs} +0 -0
  347. /package/dist/{autorag-PRTwXGgn.mjs → autorag-K396-M2S.mjs} +0 -0
  348. /package/dist/{body-parser-CUWbw_Tq.mjs → body-parser-hh2avzkz.mjs} +0 -0
  349. /package/dist/{brands-BHRXlWDm.mjs → brands-DeLbFxSt.mjs} +0 -0
  350. /package/dist/{clear-UvKESVx3.mjs → clear-CRfI7WS7.mjs} +0 -0
  351. /package/dist/{cli-types-tt_LZMbn.mjs → cli-types-DoVT5q_M.mjs} +0 -0
  352. /package/dist/{connector-telemetry-events-latest-DwnFeZg0.mjs → connector-telemetry-events-latest-D8p_dR8s.mjs} +0 -0
  353. /package/dist/{connector-telemetry-snapshots-latest-Dv6rZlxs.mjs → connector-telemetry-snapshots-latest-COFmzmlk.mjs} +0 -0
  354. /package/dist/{domain-info-BqTDXNBo.mjs → domain-info-aiwP60Fo.mjs} +0 -0
  355. /package/dist/{health-CwPzzrV6.mjs → health-Bz33n-_F.mjs} +0 -0
  356. /package/dist/{input-validation-Ch4Vllrm.mjs → input-validation-Dk52b0me.mjs} +0 -0
  357. /package/dist/{internal-WLHfxX64.mjs → internal-BHrJbbdA.mjs} +0 -0
  358. /package/dist/{lifecycle-Ichnb2x1.mjs → lifecycle-C7tAC1Mn.mjs} +0 -0
  359. /package/dist/{live-D_k7eHdv.mjs → live-MeJQXIei.mjs} +0 -0
  360. /package/dist/{metadata-APBiectA.mjs → metadata-C33s4rc-.mjs} +0 -0
  361. /package/dist/{project-settings-DSXevRvj.mjs → project-settings-DO6njFg_.mjs} +0 -0
  362. /package/dist/{rate-limit-analytics-CDTPxSET.mjs → rate-limit-analytics-CU55zqCU.mjs} +0 -0
  363. /package/dist/{rate-limits-C3K9smdl.mjs → rate-limits-CZ-qHDPK.mjs} +0 -0
  364. /package/dist/{ready-CvwvbdTX.mjs → ready-BOpbZ1pN.mjs} +0 -0
  365. /package/dist/{recent-submissions-CjzcT-iH.mjs → recent-submissions-KDqD2HyS.mjs} +0 -0
  366. /package/dist/{refute-CIAFMj00.mjs → refute-DkF4XIMw.mjs} +0 -0
  367. /package/dist/{resolve-CUDKxUrW.mjs → resolve-BCTrtcx7.mjs} +0 -0
  368. /package/dist/{scan-logo-zFkphtQ3.mjs → scan-logo-DQkf6glG.mjs} +0 -0
  369. /package/dist/{scan-page-CLl2MAkZ.mjs → scan-page-CMOJ_E0n.mjs} +0 -0
  370. /package/dist/{search-12jA1b4l.mjs → search-Bre1Zwn3.mjs} +0 -0
  371. /package/dist/{signed-url-U0T_PEMR.mjs → signed-url-24ZbX4yV.mjs} +0 -0
  372. /package/dist/{submission-info-CZ84a3Nb.mjs → submission-info-BmkbZVqM.mjs} +0 -0
  373. /package/dist/{total-queries-CJTc9Pde.mjs → total-queries-j8OAF_cE.mjs} +0 -0
  374. /package/dist/{tracked-domains-BKLxnnSv.mjs → tracked-domains-fe3EWYmF.mjs} +0 -0
  375. /package/dist/{verify-CZW5Fo1q.mjs → verify-CKgZYvln.mjs} +0 -0
@@ -0,0 +1,125 @@
1
+ #!/usr/bin/env node
2
+ import{t as e}from"./local-B5oRPTEN.mjs";import{a as t,t as n}from"./context-CEOHpZgd.mjs";import{a as r,r as i}from"./auth-BIr56Mbx.mjs";import{t as a}from"./output-CvQFJkvi.mjs";import{t as o}from"./dry-run-Bq0JAsbX.mjs";import{t as s}from"./progress-A61dRbXl.mjs";import{t as c}from"./run-CIJTelJL.mjs";import"./telemetry-Q3_UmwHj.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-CGUzvBgY.mjs";import{n as ee,t as te}from"./raw-fetch-CvkmFO23.mjs";function v(e){return e.usage(`$0 r2 buckets cors delete <bucket-name>
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: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
+ `);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
+
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>
8
+
9
+ Replaces the Cross-Origin Resource Sharing (CORS) rules for an R2 bucket. Rules specify which origins, methods, and headers are allowed for browser requests to objects in the 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(`rules`,{type:`string`,description:`The rules field. Provide as a JSON array of objects or @path/to/file.json.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`force`,{type:`boolean`,alias:`f`,description:`Skip confirmation (useful in scripts and CI)`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const C={command:`update <bucket-name>`,describe:`Set Bucket CORS Policy`,builder:S,handler:async p=>c({command:`r2 buckets cors update`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},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 cors update`,method:`PUT`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/r2/buckets/${p[`bucket-name`]==null?`<bucket-name>`:encodeURIComponent(String(p[`bucket-name`]))}/cors`,pathParams:{"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,!await _({force:!!p.force,message:`This replaces the R2 bucket's CORS policy. Browser requests that relied on the previous rules may fail.`})){process.stderr.write(`Aborted.
10
+ `);return}if(p.body){let e=u(p.body);a(await s(`Deleting`,async()=>r(m,`PUT`,`/accounts/${h}/r2/buckets/${encodeURIComponent(String(p[`bucket-name`]))}/cors`,{body:e,headers:Object.keys(c).length>0?c:void 0})),{successLabel:`Deleted`});return}let g={};p.rules!==void 0&&l(g,[`rules`],d(p.rules,`rules`)),a(await s(`Deleting`,async()=>r(m,`PUT`,`/accounts/${h}/r2/buckets/${encodeURIComponent(String(p[`bucket-name`]))}/cors`,{body:Object.keys(g).length>0?g:void 0,headers:Object.keys(c).length>0?c:void 0})),{successLabel:`Deleted`})})},w={command:`cors`,describe:`Operations for buckets.cors`,builder:e=>e.command(y).command(x).command(C).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function T(e){return e.usage("$0 r2 buckets create-by-name <bucket-name>\n\nCreates a new R2 bucket using the name from the URL path. Similar to `r2-create-bucket` (POST), but the bucket name comes from the path and the optional storage class is supplied via the `cf-r2-storage-class` header. There is no request body. Unlike the POST variant, this endpoint does not accept a location hint — the bucket is placed in the R2 region for the caller's edge colo. Use the POST variant if you need to set a `locationHint`.").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(`cf-r2-storage-class`,{type:`string`,description:`Storage class for newly uploaded objects, unless specified otherwise.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const E={command:`create-by-name <bucket-name>`,describe:`Create Bucket (by name)`,builder:T,handler:async l=>c({command:`r2 buckets create-by-name`,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[`cf-r2-storage-class`]!==void 0&&(c[`cf-r2-storage-class`]=String(l[`cf-r2-storage-class`])),l.dryRun){o({command:`cf r2 buckets create-by-name`,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`]))}`,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(`Updating`,async()=>r(u,`PUT`,`/accounts/${d}/r2/buckets/${encodeURIComponent(String(l[`bucket-name`]))}`,{headers:Object.keys(c).length>0?c:void 0})),{successLabel:`Updated`})})};function D(e){return e.usage(`$0 r2 buckets create
11
+
12
+ Creates an R2 bucket in the account and selected jurisdiction, with an optional location hint and default storage class.`).option(`cf-r2-jurisdiction`,{type:`string`,description:`Jurisdiction where objects in this bucket are guaranteed to be stored.`}).option(`location-hint`,{type:`string`,description:`Location of the bucket.`,choices:[`apac`,`eeur`,`enam`,`weur`,`wnam`,`oc`]}).option(`name`,{type:`string`,description:`Name of the bucket.`}).option(`storage-class`,{type:`string`,description:`Storage class for newly uploaded objects, unless specified otherwise.`,choices:[`Standard`,`InfrequentAccess`],default:`Standard`}).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 O={command:`create`,describe:`Create Bucket`,builder:D,handler:async d=>c({command:`r2 buckets create`,classification:{safeFlags:[`location-hint`,`storage-class`,`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 create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/r2/buckets`,pathParams:{},bodyKind:`json`,body:d.body===void 0?f({locationHint:p(d[`location-hint`],`location-hint`,`text`),name:p(d.name,`name`,`text`),storageClass:p(d[`storage-class`],`storage-class`,`text`)}):u(d.body)});return}let m=await i(d),g=d.local?e:await n();if(d.accountId=g,d.body){let e=u(d.body);a(await s(`Creating`,async()=>r(m,`POST`,`/accounts/${g}/r2/buckets`,{body:e,headers:Object.keys(c).length>0?c:void 0})),{successLabel:`Created`});return}d.name===void 0&&(d.name=await h(`name`,`Name of the bucket.`));let _={};d[`location-hint`]!==void 0&&l(_,[`locationHint`],p(d[`location-hint`],`location-hint`,`text`)),d.name!==void 0&&l(_,[`name`],p(d.name,`name`,`text`)),d[`storage-class`]!==void 0&&l(_,[`storageClass`],p(d[`storage-class`],`storage-class`,`text`)),a(await s(`Creating`,async()=>r(m,`POST`,`/accounts/${g}/r2/buckets`,{body:Object.keys(_).length>0?_:void 0,headers:Object.keys(c).length>0?c:void 0})),{successLabel:`Created`})})};function k(e){return e.usage(`$0 r2 buckets delete <bucket-name>
13
+
14
+ Deletes an empty R2 bucket and its configuration. The bucket must have no objects, no in-progress multipart uploads, and no event notification rules; otherwise the request fails.`).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 A={command:`delete <bucket-name>`,describe:`Delete Bucket`,builder:k,handler:async l=>c({command:`r2 buckets 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 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`]))}`,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 permanently deletes the empty R2 bucket and its configuration.`})){process.stderr.write(`Aborted.
15
+ `);return}a(await s(`Deleting`,async()=>r(u,`DELETE`,`/accounts/${d}/r2/buckets/${encodeURIComponent(String(l[`bucket-name`]))}`,{headers:Object.keys(c).length>0?c:void 0})),{successLabel:`Deleted`})})};function j(e){return e.usage(`$0 r2 buckets domains custom create <bucket-name>
16
+
17
+ Register a new custom domain for 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(`ciphers`,{type:`string`,array:!0,description:`An allowlist of ciphers for TLS termination. These ciphers must be in the BoringSSL format.`}).option(`domain`,{type:`string`,description:`Name of the custom domain to be added.`}).option(`enabled`,{type:`boolean`,description:`Whether to enable public bucket access at the custom domain. If undefined, the domain will be enabled.`}).option(`min-tls`,{type:`string`,description:`Minimum TLS Version the custom domain will accept for incoming connections. If not set, defaults to 1.0.`,choices:[`1.0`,`1.1`,`1.2`,`1.3`]}).option(`zone-id`,{type:`string`,description:`Zone ID of the custom domain.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const M={command:`create <bucket-name>`,describe:`Attach Custom Domain To Bucket`,builder:j,handler:async d=>c({command:`r2 buckets domains custom create`,classification:{safeFlags:[`enabled`,`min-tls`,`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 domains custom create`,method:`POST`,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`]))}/domains/custom`,pathParams:{"bucket-name":String(d[`bucket-name`]??``)},bodyKind:`json`,body:d.body===void 0?f({ciphers:d.ciphers,domain:p(d.domain,`domain`,`text`),enabled:d.enabled,minTLS:p(d[`min-tls`],`min-tls`,`text`),zoneId:p(d[`zone-id`],`zone-id`,`text`)}):u(d.body)});return}let m=await i(d),g=d.local?e:await n();if(d.accountId=g,d.body){let e=u(d.body);a(await s(`Creating`,async()=>r(m,`POST`,`/accounts/${g}/r2/buckets/${encodeURIComponent(String(d[`bucket-name`]))}/domains/custom`,{body:e,headers:Object.keys(c).length>0?c:void 0})),{successLabel:`Created`});return}if(d.domain===void 0&&(d.domain=await h(`domain`,`Name of the custom domain to be added.`)),d.enabled===void 0)throw Error(`--enabled is required (or pass --body with this field set).`);d[`zone-id`]===void 0&&(d[`zone-id`]=await h(`zone-id`,`Zone ID of the custom domain.`));let _={};d.ciphers!==void 0&&l(_,[`ciphers`],d.ciphers),d.domain!==void 0&&l(_,[`domain`],p(d.domain,`domain`,`text`)),d.enabled!==void 0&&l(_,[`enabled`],d.enabled),d[`min-tls`]!==void 0&&l(_,[`minTLS`],p(d[`min-tls`],`min-tls`,`text`)),d[`zone-id`]!==void 0&&l(_,[`zoneId`],p(d[`zone-id`],`zone-id`,`text`)),a(await s(`Creating`,async()=>r(m,`POST`,`/accounts/${g}/r2/buckets/${encodeURIComponent(String(d[`bucket-name`]))}/domains/custom`,{body:Object.keys(_).length>0?_:void 0,headers:Object.keys(c).length>0?c:void 0})),{successLabel:`Created`})})};function N(e){return e.usage(`$0 r2 buckets domains custom delete <domain>
18
+
19
+ Disconnects a custom domain from an R2 bucket and removes its configuration. Access through other enabled custom domains or the bucket's r2.dev domain is unaffected.`).positional(`domain`,{type:`string`,description:`Name of the custom domain.`,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 P={command:`delete <domain>`,describe:`Remove Custom Domain From Bucket`,builder:N,handler:async l=>c({command:`r2 buckets domains custom 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 domains custom 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`]))}/domains/custom/${l.domain==null?`<domain>`:encodeURIComponent(String(l.domain))}`,pathParams:{"bucket-name":String(l[`bucket-name`]??``),domain:String(l.domain??``)},bodyKind:`none`});return}let u=await i(l),d=l.local?e:await n();if(l.accountId=d,!await _({force:!!l.force,message:`This disconnects the custom domain from the R2 bucket. Access through other enabled domains remains available.`})){process.stderr.write(`Aborted.
20
+ `);return}a(await s(`Deleting`,async()=>r(u,`DELETE`,`/accounts/${d}/r2/buckets/${encodeURIComponent(String(l[`bucket-name`]))}/domains/custom/${encodeURIComponent(String(l.domain))}`,{headers:Object.keys(c).length>0?c:void 0})),{successLabel:`Deleted`})})};function F(e){return e.usage(`$0 r2 buckets domains custom get <domain>
21
+
22
+ Get the configuration for a custom domain on an existing R2 bucket.`).positional(`domain`,{type:`string`,description:`Name of the custom domain.`,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 I={command:`get <domain>`,describe:`Get Custom Domain Settings`,builder:F,handler:async l=>c({command:`r2 buckets domains custom 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 domains custom 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`]))}/domains/custom/${l.domain==null?`<domain>`:encodeURIComponent(String(l.domain))}`,pathParams:{"bucket-name":String(l[`bucket-name`]??``),domain:String(l.domain??``)},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`]))}/domains/custom/${encodeURIComponent(String(l.domain))}`,{headers:Object.keys(c).length>0?c:void 0})),{successLabel:`Loaded`})})};function L(e){return e.usage(`$0 r2 buckets domains custom list
23
+
24
+ Gets a list of all custom domains registered with an existing R2 bucket.`).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 R={command:`list`,describe:`List Custom Domains of Bucket`,builder:L,handler:async l=>c({command:`r2 buckets domains custom list`,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 domains custom 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`]))}/domains/custom`,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`]))}/domains/custom`,{headers:Object.keys(c).length>0?c:void 0})),{successLabel:`Loaded`})})};function z(e){return e.usage(`$0 r2 buckets domains custom update <domain>
25
+
26
+ Edit the configuration for a custom domain on an existing R2 bucket.`).positional(`domain`,{type:`string`,description:`Name of the custom domain.`,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(`ciphers`,{type:`string`,array:!0,description:`An allowlist of ciphers for TLS termination. These ciphers must be in the BoringSSL format.`}).option(`enabled`,{type:`boolean`,description:`Whether to enable public bucket access at the specified custom domain.`}).option(`min-tls`,{type:`string`,description:`Minimum TLS Version the custom domain will accept for incoming connections. If not set, defaults to previous value.`,choices:[`1.0`,`1.1`,`1.2`,`1.3`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const B={command:`update <domain>`,describe:`Configure Custom Domain Settings`,builder:z,handler:async d=>c({command:`r2 buckets domains custom update`,classification:{safeFlags:[`enabled`,`min-tls`,`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 domains custom 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`]))}/domains/custom/${d.domain==null?`<domain>`:encodeURIComponent(String(d.domain))}`,pathParams:{"bucket-name":String(d[`bucket-name`]??``),domain:String(d.domain??``)},bodyKind:`json`,body:d.body===void 0?f({ciphers:d.ciphers,enabled:d.enabled,minTLS:p(d[`min-tls`],`min-tls`,`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`]))}/domains/custom/${encodeURIComponent(String(d.domain))}`,{body:e,headers:Object.keys(c).length>0?c:void 0})),{successLabel:`Updated`});return}let g={};d.ciphers!==void 0&&l(g,[`ciphers`],d.ciphers),d.enabled!==void 0&&l(g,[`enabled`],d.enabled),d[`min-tls`]!==void 0&&l(g,[`minTLS`],p(d[`min-tls`],`min-tls`,`text`)),a(await s(`Updating`,async()=>r(m,`PUT`,`/accounts/${h}/r2/buckets/${encodeURIComponent(String(d[`bucket-name`]))}/domains/custom/${encodeURIComponent(String(d.domain))}`,{body:Object.keys(g).length>0?g:void 0,headers:Object.keys(c).length>0?c:void 0})),{successLabel:`Updated`})})},V={command:`custom`,describe:`Operations for buckets.domains.custom`,builder:e=>e.command(M).command(P).command(I).command(R).command(B).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function H(e){return e.usage(`$0 r2 buckets domains managed list
27
+
28
+ Gets the R2 bucket's managed r2.dev domain and whether public access is enabled. The r2.dev domain is rate-limited and intended for development use.`).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 U={command:`list`,describe:`Get r2.dev Domain of Bucket`,builder:H,handler:async l=>c({command:`r2 buckets domains managed list`,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 domains managed 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`]))}/domains/managed`,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`]))}/domains/managed`,{headers:Object.keys(c).length>0?c:void 0})),{successLabel:`Loaded`})})};function W(e){return e.usage(`$0 r2 buckets domains managed update <bucket-name>
29
+
30
+ Enables or disables public access to the R2 bucket through its managed r2.dev domain. Custom domain access is unaffected. The r2.dev domain is rate-limited and intended for development use.`).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(`enabled`,{type:`boolean`,description:`Whether to enable public bucket access at the r2.dev domain.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`force`,{type:`boolean`,alias:`f`,description:`Skip confirmation (useful in scripts and CI)`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const G={command:`update <bucket-name>`,describe:`Update r2.dev Domain of Bucket`,builder:W,handler:async d=>c({command:`r2 buckets domains managed update`,classification:{safeFlags:[`enabled`,`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},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 domains managed 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`]))}/domains/managed`,pathParams:{"bucket-name":String(d[`bucket-name`]??``)},bodyKind:`json`,body:d.body===void 0?f({enabled:d.enabled}):u(d.body)});return}let p=await i(d),m=d.local?e:await n();if(d.accountId=m,!await _({force:!!d.force,message:`This changes public access to the R2 bucket through its r2.dev domain.`})){process.stderr.write(`Aborted.
31
+ `);return}if(d.body){let e=u(d.body);a(await s(`Deleting`,async()=>r(p,`PUT`,`/accounts/${m}/r2/buckets/${encodeURIComponent(String(d[`bucket-name`]))}/domains/managed`,{body:e,headers:Object.keys(c).length>0?c:void 0})),{successLabel:`Deleted`});return}if(d.enabled===void 0)throw Error(`--enabled is required (or pass --body with this field set).`);let h={};d.enabled!==void 0&&l(h,[`enabled`],d.enabled),a(await s(`Deleting`,async()=>r(p,`PUT`,`/accounts/${m}/r2/buckets/${encodeURIComponent(String(d[`bucket-name`]))}/domains/managed`,{body:Object.keys(h).length>0?h:void 0,headers:Object.keys(c).length>0?c:void 0})),{successLabel:`Deleted`})})},K={command:`managed`,describe:`Operations for buckets.domains.managed`,builder:e=>e.command(U).command(G).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},q={command:`domains`,describe:`Operations for buckets.domains`,builder:e=>e.command(V).command(K).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function J(e){return e.usage(`$0 r2 buckets edit <bucket-name>
32
+
33
+ Changes the default storage class for newly uploaded objects in an existing R2 bucket. Existing objects retain their storage class, and individual uploads can override the bucket default.`).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(`cf-r2-storage-class`,{type:`string`,description:`Storage class for newly uploaded objects, unless specified otherwise.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const Y={command:`edit <bucket-name>`,describe:`Patch Bucket`,builder:J,handler:async l=>c({command:`r2 buckets edit`,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[`cf-r2-storage-class`]!==void 0&&(c[`cf-r2-storage-class`]=String(l[`cf-r2-storage-class`])),l.dryRun){o({command:`cf r2 buckets edit`,method:`PATCH`,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(`Updating`,async()=>r(u,`PATCH`,`/accounts/${d}/r2/buckets/${encodeURIComponent(String(l[`bucket-name`]))}`,{headers:Object.keys(c).length>0?c:void 0})),{successLabel:`Updated`})})};function X(e){return e.usage(`$0 r2 buckets event-notifications delete <queue-id>
34
+
35
+ Deletes the specified event notification rules for an R2 bucket and Cloudflare Queue. Provide ruleIds in the request body to select rules. If no body is provided, all rules for that bucket and queue are deleted.`).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(`rule-ids`,{type:`string`,array:!0,description:`Array of rule ids to delete.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`force`,{type:`boolean`,alias:`f`,description:`Skip confirmation (useful in scripts and CI)`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const Z={command:`delete <queue-id>`,describe:`Delete Event Notification Rules`,builder:X,handler:async d=>c({command:`r2 buckets event-notifications delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},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 event-notifications delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/event_notifications/r2/${d[`bucket-name`]==null?`<bucket-name>`:encodeURIComponent(String(d[`bucket-name`]))}/configuration/queues/${d[`queue-id`]==null?`<queue-id>`:encodeURIComponent(String(d[`queue-id`]))}`,pathParams:{"queue-id":String(d[`queue-id`]??``),"bucket-name":String(d[`bucket-name`]??``)},bodyKind:`json`,body:d.body===void 0?f({ruleIds:d[`rule-ids`]}):u(d.body)});return}let p=await i(d),m=d.local?e:await n();if(d.accountId=m,!await _({force:!!d.force,message:`This deletes event notification rules for the selected R2 bucket and queue. Without a request body, all rules for that bucket and queue are deleted.`})){process.stderr.write(`Aborted.
36
+ `);return}if(d.body){let e=u(d.body);a(await s(`Deleting`,async()=>r(p,`DELETE`,`/accounts/${m}/event_notifications/r2/${encodeURIComponent(String(d[`bucket-name`]))}/configuration/queues/${encodeURIComponent(String(d[`queue-id`]))}`,{body:e,headers:Object.keys(c).length>0?c:void 0})),{successLabel:`Deleted`});return}let h={};d[`rule-ids`]!==void 0&&l(h,[`ruleIds`],d[`rule-ids`]),a(await s(`Deleting`,async()=>r(p,`DELETE`,`/accounts/${m}/event_notifications/r2/${encodeURIComponent(String(d[`bucket-name`]))}/configuration/queues/${encodeURIComponent(String(d[`queue-id`]))}`,{body:Object.keys(h).length>0?h:void 0,headers:Object.keys(c).length>0?c:void 0})),{successLabel:`Deleted`})})};function Q(e){return e.usage(`$0 r2 buckets event-notifications get <queue-id>
37
+
38
+ Gets the event notification rules for the specified R2 bucket and Cloudflare Queue. The response includes the queue's configuration and its array of rules.`).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(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const ne={command:`get <queue-id>`,describe:`Get Event Notification Rules for a Queue`,builder:Q,handler:async l=>c({command:`r2 buckets event-notifications 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 event-notifications get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/event_notifications/r2/${l[`bucket-name`]==null?`<bucket-name>`:encodeURIComponent(String(l[`bucket-name`]))}/configuration/queues/${l[`queue-id`]==null?`<queue-id>`:encodeURIComponent(String(l[`queue-id`]))}`,pathParams:{"queue-id":String(l[`queue-id`]??``),"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}/event_notifications/r2/${encodeURIComponent(String(l[`bucket-name`]))}/configuration/queues/${encodeURIComponent(String(l[`queue-id`]))}`,{headers:Object.keys(c).length>0?c:void 0})),{successLabel:`Loaded`})})};function re(e){return e.usage(`$0 r2 buckets event-notifications list
39
+
40
+ Lists event notification rules for an R2 bucket, grouped by the Cloudflare Queue that receives matching object events.`).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 ie={command:`list`,describe:`List Event Notification Rules`,builder:re,handler:async l=>c({command:`r2 buckets event-notifications list`,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 event-notifications list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/event_notifications/r2/${l[`bucket-name`]==null?`<bucket-name>`:encodeURIComponent(String(l[`bucket-name`]))}/configuration`,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}/event_notifications/r2/${encodeURIComponent(String(l[`bucket-name`]))}/configuration`,{headers:Object.keys(c).length>0?c:void 0})),{successLabel:`Loaded`})})};function ae(e){return e.usage(`$0 r2 buckets event-notifications update <queue-id>
41
+
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
+
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
+
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
+
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
+
50
+ Replaces the object lifecycle rules for an R2 bucket. Rules match object-key prefixes and can expire objects, abort incomplete multipart uploads, or transition objects to Infrequent Access storage.`).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(`rules`,{type:`string`,description:`The rules field. Provide as a JSON array of objects or @path/to/file.json.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`force`,{type:`boolean`,alias:`f`,description:`Skip confirmation (useful in scripts and CI)`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const ve={command:`update <bucket-name>`,describe:`Set Object Lifecycle Rules`,builder:_e,handler:async p=>c({command:`r2 buckets lifecycle update`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},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 lifecycle update`,method:`PUT`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/r2/buckets/${p[`bucket-name`]==null?`<bucket-name>`:encodeURIComponent(String(p[`bucket-name`]))}/lifecycle`,pathParams:{"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,!await _({force:!!p.force,message:`This replaces the R2 bucket's object lifecycle rules and can schedule object deletion or abort multipart uploads.`})){process.stderr.write(`Aborted.
51
+ `);return}if(p.body){let e=u(p.body);a(await s(`Deleting`,async()=>r(m,`PUT`,`/accounts/${h}/r2/buckets/${encodeURIComponent(String(p[`bucket-name`]))}/lifecycle`,{body:e,headers:Object.keys(c).length>0?c:void 0})),{successLabel:`Deleted`});return}let g={};p.rules!==void 0&&l(g,[`rules`],d(p.rules,`rules`)),a(await s(`Deleting`,async()=>r(m,`PUT`,`/accounts/${h}/r2/buckets/${encodeURIComponent(String(p[`bucket-name`]))}/lifecycle`,{body:Object.keys(g).length>0?g:void 0,headers:Object.keys(c).length>0?c:void 0})),{successLabel:`Deleted`})})},ye={command:`lifecycle`,describe:`Operations for buckets.lifecycle`,builder:e=>e.command(ge).command(ve).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function be(e){return e.usage(`$0 r2 buckets list
52
+
53
+ Lists a page of R2 buckets in the account and selected jurisdiction. Use the returned cursor to retrieve the next page.`).option(`name-contains`,{type:`string`,description:`Bucket names to filter by. Only buckets with this phrase in their name will be returned.`}).option(`start-after`,{type:`string`,description:`Bucket name to start searching after. Buckets are ordered lexicographically.`}).option(`per-page`,{type:`number`,description:`Maximum number of buckets to return in a single call.`}).option(`order`,{type:`string`,description:`Field to order buckets by.`,choices:[`name`]}).option(`direction`,{type:`string`,description:`Direction to order buckets.`,choices:[`asc`,`desc`]}).option(`cursor`,{type:`string`,description:`Pagination cursor received during the last List Buckets call. R2 buckets are paginated using cursors instead of page numbers.`}).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 xe={command:`list`,describe:`List Buckets`,builder:be,handler:async l=>c({command:`r2 buckets list`,classification:{safeFlags:[`order`,`direction`,`dry-run`]}},l,async()=>{let c={name_contains:l[`name-contains`],start_after:l[`start-after`],per_page:l[`per-page`],order:l.order,direction:l.direction,cursor:l.cursor},u={};if(l[`cf-r2-jurisdiction`]!==void 0&&(u[`cf-r2-jurisdiction`]=String(l[`cf-r2-jurisdiction`])),l.dryRun){o({command:`cf r2 buckets list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/r2/buckets`,pathParams:{},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`,{query:c,headers:Object.keys(u).length>0?u:void 0})),{successLabel:`Loaded`})})};function Se(e){return e.usage(`$0 r2 buckets local-uploads get <bucket-name>
54
+
55
+ Gets the Local Uploads configuration for an R2 bucket. When enabled, object data is written near the client before being asynchronously copied to the bucket's primary region. Local Uploads is only supported in the default jurisdiction.`).positional(`bucket-name`,{type:`string`,description:`Name of the bucket.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const Ce={command:`get <bucket-name>`,describe:`Get Local Uploads Configuration`,builder:Se,handler:async r=>c({command:`r2 buckets local-uploads get`,classification:{safeFlags:[`dry-run`]}},r,async()=>{if(r.dryRun){o({command:`cf r2 buckets local-uploads 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`]))}/local-uploads`,pathParams:{"bucket-name":String(r[`bucket-name`]??``)},bodyKind:`none`});return}let c=await i(r),l=r.local?e:await n();r.accountId=l,a(await s(`Loading`,async()=>c.r2.buckets.localUploads.get({account_id:l,bucket_name:r[`bucket-name`]})),{successLabel:`Loaded`})})};function we(e){return e.usage(`$0 r2 buckets local-uploads update <bucket-name>
56
+
57
+ Enables or disables Local Uploads for an R2 bucket in the default jurisdiction. When enabled, object data is written near the client before being asynchronously copied to the bucket's primary region. Disabling Local Uploads allows existing replication to finish.`).positional(`bucket-name`,{type:`string`,description:`Name of the bucket.`,demandOption:!0}).option(`enabled`,{type:`boolean`,description:`Whether to enable local uploads for this bucket.`}).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 Te={command:`update <bucket-name>`,describe:`Set Local Uploads Configuration`,builder:we,handler:async r=>c({command:`r2 buckets local-uploads update`,classification:{safeFlags:[`enabled`,`dry-run`]}},r,async()=>{if(r.dryRun){o({command:`cf r2 buckets local-uploads update`,method:`PUT`,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`]))}/local-uploads`,pathParams:{"bucket-name":String(r[`bucket-name`]??``)},bodyKind:`json`,body:r.body===void 0?f({enabled:r.enabled}):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.buckets.localUploads.update({...e,account_id:l,bucket_name:r[`bucket-name`]})),{successLabel:`Updated`});return}if(r.enabled===void 0)throw Error(`--enabled is required (or pass --body with this field set).`);let d=f({enabled:r.enabled});a(await s(`Updating`,async()=>c.r2.buckets.localUploads.update({...d,account_id:l,bucket_name:r[`bucket-name`]})),{successLabel:`Updated`})})},Ee={command:`local-uploads`,describe:`R2 bucket local upload configuration`,builder:e=>e.command(Ce).command(Te).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function De(e){return e.usage(`$0 r2 buckets locks delete <bucket-name>
58
+
59
+ Delete all lock 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}).option(`force`,{type:`boolean`,alias:`f`,description:`Skip confirmation (useful in scripts and CI)`,default:!1})}const Oe={command:`delete <bucket-name>`,describe:`Delete Bucket Lock Rules`,builder:De,handler:async l=>c({command:`r2 buckets locks 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 locks 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`]))}/lock`,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 all lock rules from the R2 bucket, removing their protection against object deletion and overwriting.`})){process.stderr.write(`Aborted.
60
+ `);return}a(await s(`Deleting`,async()=>r(u,`DELETE`,`/accounts/${d}/r2/buckets/${encodeURIComponent(String(l[`bucket-name`]))}/lock`,{headers:Object.keys(c).length>0?c:void 0})),{successLabel:`Deleted`})})};function ke(e){return e.usage(`$0 r2 buckets locks get <bucket-name>
61
+
62
+ Get lock 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 Ae={command:`get <bucket-name>`,describe:`Get Bucket Lock Rules`,builder:ke,handler:async l=>c({command:`r2 buckets locks 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 locks 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`]))}/lock`,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`]))}/lock`,{headers:Object.keys(c).length>0?c:void 0})),{successLabel:`Loaded`})})};function je(e){return e.usage(`$0 r2 buckets locks update <bucket-name>
63
+
64
+ Replaces the lock rules for an R2 bucket. Enabled rules prevent matching objects from being overwritten or deleted for a duration, until a date, or indefinitely. Rules apply to existing and newly uploaded objects.`).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(`rules`,{type:`string`,description:`The rules field. Provide as a JSON array of objects or @path/to/file.json.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`force`,{type:`boolean`,alias:`f`,description:`Skip confirmation (useful in scripts and CI)`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const Me={command:`update <bucket-name>`,describe:`Set Bucket Lock Rules`,builder:je,handler:async p=>c({command:`r2 buckets locks update`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},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 locks update`,method:`PUT`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/r2/buckets/${p[`bucket-name`]==null?`<bucket-name>`:encodeURIComponent(String(p[`bucket-name`]))}/lock`,pathParams:{"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,!await _({force:!!p.force,message:`This replaces the R2 bucket's lock rules. Removing or shortening retention can allow objects to be overwritten or deleted.`})){process.stderr.write(`Aborted.
65
+ `);return}if(p.body){let e=u(p.body);a(await s(`Deleting`,async()=>r(m,`PUT`,`/accounts/${h}/r2/buckets/${encodeURIComponent(String(p[`bucket-name`]))}/lock`,{body:e,headers:Object.keys(c).length>0?c:void 0})),{successLabel:`Deleted`});return}let g={};p.rules!==void 0&&l(g,[`rules`],d(p.rules,`rules`)),a(await s(`Deleting`,async()=>r(m,`PUT`,`/accounts/${h}/r2/buckets/${encodeURIComponent(String(p[`bucket-name`]))}/lock`,{body:Object.keys(g).length>0?g:void 0,headers:Object.keys(c).length>0?c:void 0})),{successLabel:`Deleted`})})},Ne={command:`locks`,describe:`Operations for buckets.locks`,builder:e=>e.command(Oe).command(Ae).command(Me).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function Pe(e){return e.usage(`$0 r2 buckets metrics list
66
+
67
+ Get Storage/Object Count Metrics across all buckets in your account. Note that Account-Level Metrics may not immediately reflect the latest data.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const Fe={command:`list`,describe:`Get Account-Level Metrics`,builder:Pe,handler:async r=>c({command:`r2 buckets metrics list`,classification:{safeFlags:[`dry-run`]}},r,async()=>{if(r.dryRun){o({command:`cf r2 buckets metrics list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/r2/metrics`,pathParams:{},bodyKind:`none`});return}let c=await i(r),l=r.local?e:await n();r.accountId=l,a(await s(`Loading`,async()=>c.r2.buckets.metrics.list({account_id:l})),{successLabel:`Loaded`})})},Ie={command:`metrics`,describe:`Operations for buckets.metrics`,builder:e=>e.command(Fe).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function Le(e){return e.usage(`$0 r2 buckets sippy delete <bucket-name>
68
+
69
+ Disables Sippy on-demand migration for an R2 bucket. Requests no longer fetch missing objects from the source storage provider. Objects already copied to R2 remain in the 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 Re={command:`delete <bucket-name>`,describe:`Disable Sippy`,builder:Le,handler:async l=>c({command:`r2 buckets sippy 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 sippy 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`]))}/sippy`,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 disables Sippy on-demand migration for the R2 bucket. Objects already copied to R2 remain in the bucket.`})){process.stderr.write(`Aborted.
70
+ `);return}a(await s(`Deleting`,async()=>r(u,`DELETE`,`/accounts/${d}/r2/buckets/${encodeURIComponent(String(l[`bucket-name`]))}/sippy`,{headers:Object.keys(c).length>0?c:void 0})),{successLabel:`Deleted`})})};function ze(e){return e.usage(`$0 r2 buckets sippy get <bucket-name>
71
+
72
+ Gets configuration for Sippy for 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 Be={command:`get <bucket-name>`,describe:`Get Sippy Configuration`,builder:ze,handler:async l=>c({command:`r2 buckets sippy 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 sippy 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`]))}/sippy`,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`]))}/sippy`,{headers:Object.keys(c).length>0?c:void 0})),{successLabel:`Loaded`})})};function Ve(e){return e.usage(`$0 r2 buckets sippy update <bucket-name>
73
+
74
+ Configures and enables Sippy on-demand migration for an R2 bucket. When a requested object is missing from R2, Sippy serves it from the configured source storage provider and copies it to R2.`).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(`destination-access-key-id`,{type:`string`,description:`ID of a Cloudflare API token.
75
+ This is the value labelled "Access Key ID" when creating an API.
76
+ token from the [R2 dashboard](https://dash.cloudflare.com/?to=/:account/r2/api-tokens).
77
+
78
+ Sippy will use this token when writing objects to R2, so it is
79
+ best to scope this token to the bucket you're enabling Sippy for.
80
+ `}).option(`destination-provider`,{type:`string`,description:`The destination.provider field`,choices:[`r2`]}).option(`destination-secret-access-key`,{type:`string`,description:`Value of a Cloudflare API token.
81
+ This is the value labelled "Secret Access Key" when creating an API.
82
+ token from the [R2 dashboard](https://dash.cloudflare.com/?to=/:account/r2/api-tokens).
83
+
84
+ Sippy will use this token when writing objects to R2, so it is
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:()=>{}},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>
88
+
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>
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
93
+
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
+
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
97
+
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
99
+
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
101
+
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
+
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
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>
109
+
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>
112
+
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
+
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
+
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>
118
+
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>
120
+
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>
122
+
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
124
+
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};
@@ -0,0 +1,2 @@
1
+ #!/usr/bin/env node
2
+ const e={command:`r2-data-catalog`,describe:`Iceberg-compatible data catalog for R2 — organize objects into tables and namespaces for SQL query engines`,builder:e=>e.demandCommand(1,`Please specify a subcommand`),handler:()=>{}};export{e as default};
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import{r as e}from"./auth-DJhSjNNL.mjs";import{t}from"./output-Bia1u2k5.mjs";import{t as n}from"./dry-run-CLX6Pbtq.mjs";import{t as r}from"./progress-D_mL-Kcy.mjs";import{t as i}from"./run-DtN51G2A.mjs";import"./telemetry-DAf9gLyH.mjs";import{n as a,t as o}from"./body-parser-CUWbw_Tq.mjs";import{t as s}from"./cli-types-tt_LZMbn.mjs";import{n as c,t as l}from"./raw-fetch-lSVttVJF.mjs";function ee(e){return e.usage(`$0 radar agent-readiness summary <dimension>
2
+ import{r as e}from"./auth-BIr56Mbx.mjs";import{t}from"./output-CvQFJkvi.mjs";import{t as n}from"./dry-run-Bq0JAsbX.mjs";import{t as r}from"./progress-A61dRbXl.mjs";import{t as i}from"./run-CIJTelJL.mjs";import"./telemetry-Q3_UmwHj.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-CvkmFO23.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
 
@@ -0,0 +1,2 @@
1
+ #!/usr/bin/env node
2
+ import{r as e}from"./sdk-BCzcRJCi.mjs";import{G as t}from"./dist-BuCJ_55d.mjs";import{r as n}from"./local-B5oRPTEN.mjs";import{n as r}from"./context-CEOHpZgd.mjs";import{n as i}from"./request-headers-D31kdxrQ.mjs";import{i as a,t as o}from"./auth-BIr56Mbx.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};