cf 1.0.0-beta.10 → 1.0.0-beta.11

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 (305) hide show
  1. package/dist/{abuse-reports-BhSTEz7h.mjs → abuse-reports-DX5xgeka.mjs} +10 -10
  2. package/dist/{access-D4DN4XZF.mjs → access-DuHs0Mii.mjs} +1 -1
  3. package/dist/{account-tags-BWEIZLID.mjs → account-tags-CiKwgOWd.mjs} +5 -5
  4. package/dist/{accounts-ZQvIqGJz.mjs → accounts-DfXSHrkF.mjs} +62 -62
  5. package/dist/{acm-OQqE8FMc.mjs → acm-BgSr3Ig4.mjs} +7 -7
  6. package/dist/{addressing-DCFm17JQ.mjs → addressing-B70NFnrX.mjs} +49 -49
  7. package/dist/{agent-memory-BtfPt2me.mjs → agent-memory-DJRquHeq.mjs} +15 -15
  8. package/dist/{ai-B0_sZbmy.mjs → ai-CP2oIS-I.mjs} +16 -16
  9. package/dist/{ai-audit-DaubuhYF.mjs → ai-audit-Bn_BfMFS.mjs} +3 -3
  10. package/dist/{ai-gateway-CJ-1Dzzr.mjs → ai-gateway-CrrEtzUP.mjs} +44 -44
  11. package/dist/{ai-search-Dywa1kqX.mjs → ai-search-C4YWVTCa.mjs} +42 -42
  12. package/dist/{ai-security-2wxMPqKS.mjs → ai-security-Bt_fG65f.mjs} +4 -4
  13. package/dist/{alerting-yad9DYRv.mjs → alerting-CRr88fVR.mjs} +26 -26
  14. package/dist/{analytics-DKNw2fVc.mjs → analytics-XqS9OP5B.mjs} +10 -10
  15. package/dist/{analytics_engine-BA3kF46s.mjs → analytics_engine-CzmYem4f.mjs} +2 -2
  16. package/dist/{api-security-CSuYMpMO.mjs → api-security-gB1FHrHq.mjs} +57 -57
  17. package/dist/{argo-DMfNmOV4.mjs → argo-wFCAsYx7.mjs} +5 -5
  18. package/dist/{artifacts-Cb3hwClm.mjs → artifacts-qFjlNRqb.mjs} +20 -20
  19. package/dist/{audit-logs-BrjNuiLx.mjs → audit-logs-CpPUjMUP.mjs} +2 -2
  20. package/dist/auth-7Fk7PVIC.mjs +2 -0
  21. package/dist/auth-BmJ946bE.mjs +2 -0
  22. package/dist/auth-Br-t8vL_.mjs +2 -0
  23. package/dist/auth-token-DeG33BMQ.mjs +8 -0
  24. package/dist/{autoconfig-DPUztTL2.mjs → autoconfig-D-copdZG.mjs} +2 -2
  25. package/dist/{banner-ClclgnBn.mjs → banner-Xk4xBN8U.mjs} +1 -1
  26. package/dist/{basin-catalog-BLsQhJP4.mjs → basin-catalog-CshcpsAH.mjs} +17 -17
  27. package/dist/{billing-CRwD7oQS.mjs → billing-B-xNxxiP.mjs} +11 -11
  28. package/dist/{bot-management-CyW8F8Wm.mjs → bot-management-DhafeA2J.mjs} +4 -4
  29. package/dist/{botnet-feed-BBKsxf3Y.mjs → botnet-feed-D6uCLE_D.mjs} +5 -5
  30. package/dist/{brand-protection-DSeD8LXl.mjs → brand-protection-c3WiHbYn.mjs} +13 -13
  31. package/dist/{browser-run-BAcUTwB4.mjs → browser-run-D9_cwaSD.mjs} +24 -24
  32. package/dist/build-9ihDp-Gy.mjs +2 -0
  33. package/dist/{build-B5UYMEQH.mjs → build-DrG6TqMw.mjs} +1 -1
  34. package/dist/{builds-W1HEG7Bv.mjs → builds-Dl8if-2k.mjs} +32 -32
  35. package/dist/{cache-B7E_PXUp.mjs → cache-CIZokBjd.mjs} +24 -24
  36. package/dist/{certificate-authorities-D_uAJH9B.mjs → certificate-authorities-NUQzCDK8.mjs} +3 -3
  37. package/dist/{cf-Bh_fTFIj.mjs → cf-DfQfIu3q.mjs} +1 -1
  38. package/dist/{chunk-FT2NMTJB-1VFYM1Ro.mjs → chunk-FT2NMTJB-BFqlGcem.mjs} +1 -1
  39. package/dist/{chunk-KKDV4JPS-DdzLLtnl.mjs → chunk-KKDV4JPS-B_t8sDTz.mjs} +1 -1
  40. package/dist/{cli-BeXSqJAj.mjs → cli-aChy8ou_.mjs} +1 -1
  41. package/dist/{client-certificates-DqFcK_s1.mjs → client-certificates-qgLpBn8t.mjs} +6 -6
  42. package/dist/{client-side-security-DJXZ1XAu.mjs → client-side-security-DZO6Xw14.mjs} +14 -14
  43. package/dist/{cloud-connector-Czg1GdQi.mjs → cloud-connector-C7vGDCzX.mjs} +3 -3
  44. package/dist/{cloudflared-DGuau-lC.mjs → cloudflared-CEfZhSQH.mjs} +1 -1
  45. package/dist/{cloudforce-one-B1IhIZcp.mjs → cloudforce-one-CE7y5UkF.mjs} +237 -237
  46. package/dist/{command-xU78ACNA.mjs → command-07vhr56i.mjs} +1 -1
  47. package/dist/{command-DxSJy_ym.mjs → command-B6TpINoN.mjs} +1 -1
  48. package/dist/{command-BCag-xjk.mjs → command-BWC9CbE7.mjs} +1 -1
  49. package/dist/{command-B6DqnUwt.mjs → command-BsmF3J_l.mjs} +1 -1
  50. package/dist/command-C2pNxAeL.mjs +2 -0
  51. package/dist/{command-TCklVvOY.mjs → command-C65Ed0o9.mjs} +1 -1
  52. package/dist/{command-DUafPVUr.mjs → command-Cdx___59.mjs} +1 -1
  53. package/dist/{command-BOLlvEan.mjs → command-CrtDkZNs.mjs} +1 -1
  54. package/dist/{command-C__qB2mo.mjs → command-D0MKPucK.mjs} +1 -1
  55. package/dist/{command-DfffeX-k.mjs → command-DHdWKtqx.mjs} +1 -1
  56. package/dist/{command-DZookrfw.mjs → command-Ds5OVat3.mjs} +1 -1
  57. package/dist/{command-BrHTpaji.mjs → command-Dv6YavZa.mjs} +1 -1
  58. package/dist/{command-DzHL5LKI.mjs → command-dAYWrB5y.mjs} +1 -1
  59. package/dist/{command-K1-DZFJS.mjs → command-eM48o0J6.mjs} +1 -1
  60. package/dist/{command-6YTtWltE.mjs → command-maDJWJgu.mjs} +1 -1
  61. package/dist/{completions-Cm9brGAI.mjs → completions-D0280hul.mjs} +1 -1
  62. package/dist/{connector-interrupts-D93KTMkw.mjs → connector-interrupts-CVjFhU-C.mjs} +3 -3
  63. package/dist/{connector-telemetry-events-D6CmKR14.mjs → connector-telemetry-events-Bu3LKP6T.mjs} +3 -3
  64. package/dist/{connector-telemetry-snapshots-WO9IUk0e.mjs → connector-telemetry-snapshots-BbDTIc06.mjs} +3 -3
  65. package/dist/{connectors-DNT6GTW3.mjs → connectors-DGtx-rPI.mjs} +7 -7
  66. package/dist/{containers-Ce7IO-Ia.mjs → containers-CzNbBrYE.mjs} +2 -2
  67. package/dist/{containers-Btx7vCDP.mjs → containers-DEFrbNgO.mjs} +16 -16
  68. package/dist/{content-scan-C_ROsbTJ.mjs → content-scan-BCtWBCqd.mjs} +6 -6
  69. package/dist/{context-CEOHpZgd.mjs → context-CquYYyS3.mjs} +2 -2
  70. package/dist/{cps-BPQqyL2E.mjs → cps-C8BbnbuD.mjs} +1 -1
  71. package/dist/{csamScanner-D-oO5cxT.mjs → csamScanner-CsJ9H2fA.mjs} +3 -3
  72. package/dist/{ct-alerting-CnTRE1Fb.mjs → ct-alerting-CYsQZO2H.mjs} +3 -3
  73. package/dist/{custom-certificates-DvnFBZdJ.mjs → custom-certificates-CA8HqolM.mjs} +7 -7
  74. package/dist/{custom-csrs-BZ8TXbuQ.mjs → custom-csrs-D0P2vWJE.mjs} +5 -5
  75. package/dist/{custom-hostnames-CTqf-KlT.mjs → custom-hostnames-CzYMChbh.mjs} +12 -12
  76. package/dist/{custom-nameservers-B0CpnUVg.mjs → custom-nameservers-Cet3oF56.mjs} +5 -5
  77. package/dist/{custom-pages-DcoSGN56.mjs → custom-pages-DUkHIaTP.mjs} +10 -10
  78. package/dist/d1-B2duXfH2.mjs +41 -0
  79. package/dist/{dcv-delegation-yOtz90qE.mjs → dcv-delegation-BkdRVEAH.mjs} +2 -2
  80. package/dist/delegate.mjs +1 -1
  81. package/dist/{deploy-C4p6SzLH.mjs → deploy-BdWBEbLj.mjs} +1 -1
  82. package/dist/{deploy-input-DTjBGloL.mjs → deploy-input-LmLfj6kI.mjs} +1 -1
  83. package/dist/{dev-BML-bpNU.mjs → dev-BHkVwAea.mjs} +1 -1
  84. package/dist/{diagnostics-hOvnx5DT.mjs → diagnostics-9Wj5UWBL.mjs} +7 -7
  85. package/dist/{dialog-BlUXJKbA.mjs → dialog-Dpi-UVbz.mjs} +1 -1
  86. package/dist/discover-BYkHr5Ja.mjs +2 -0
  87. package/dist/{dist-DW47TUGh.mjs → dist-Cpb7_h4N.mjs} +1 -1
  88. package/dist/{dist-BuCJ_55d.mjs → dist-D1iG7guo.mjs} +1 -1
  89. package/dist/{dist-C3s9SXTd.mjs → dist-zep5OXGt.mjs} +1 -1
  90. package/dist/{dls-v6DyEWTd.mjs → dls-Caya7FZc.mjs} +8 -8
  91. package/dist/{dns-C9sUPsNt.mjs → dns-BLNa0GrP.mjs} +63 -63
  92. package/dist/{dns-firewall-EDiT-Zli.mjs → dns-firewall-ChCvC5rT.mjs} +8 -8
  93. package/dist/{dot-prop-IITUZ2XW-BilKo4kO.mjs → dot-prop-IITUZ2XW-BsZYdILY.mjs} +1 -1
  94. package/dist/dry-run-p9Q7nMZ5.mjs +2 -0
  95. package/dist/{durable-objects-C01phVwL.mjs → durable-objects-DuRbdp7N.mjs} +3 -3
  96. package/dist/{email-auth-BgvoEHJk.mjs → email-auth-C28s03aI.mjs} +3 -3
  97. package/dist/{email-routing-Bggn219w.mjs → email-routing-Ci-xjXIN.mjs} +24 -24
  98. package/dist/{email-security-_t7rzrzd.mjs → email-security-DPU6xvI9.mjs} +71 -71
  99. package/dist/{email-sending-_dKCs2VF.mjs → email-sending-kTVAlVKO.mjs} +23 -23
  100. package/dist/error-sanitization-BbEw--0B.mjs +2 -0
  101. package/dist/error-sanitization-p5rmb53x.mjs +2 -0
  102. package/dist/errors-cuuW88wR.mjs +3 -0
  103. package/dist/{fieldExtractors-Cm5QnkE0.mjs → fieldExtractors-ceaXu4zD.mjs} +4 -4
  104. package/dist/{firewall-CZEN8iA_.mjs → firewall-BND3qSY2.mjs} +18 -18
  105. package/dist/{flagship-B_SAI_ZL.mjs → flagship-DfxbNzgx.mjs} +15 -15
  106. package/dist/{fraud-9_9hobAh.mjs → fraud-DgyYv_CC.mjs} +3 -3
  107. package/dist/generate-9P8Q_RiO.mjs +2 -0
  108. package/dist/{generate-CLqGOlOx.mjs → generate-VxmGG8BF.mjs} +1 -1
  109. package/dist/{google-tag-gateway-O_N0vHRY.mjs → google-tag-gateway-v3p7murv.mjs} +3 -3
  110. package/dist/{healthchecks-Bt3Gw_JZ.mjs → healthchecks-CByb4qYA.mjs} +10 -10
  111. package/dist/{hostnames-DdOube3R.mjs → hostnames-3CqeMF5g.mjs} +6 -6
  112. package/dist/{hyperdrive-C14NAh9l.mjs → hyperdrive-CmyYTE-K.mjs} +9 -9
  113. package/dist/{iam-DUW7neMx.mjs → iam-CV_M681j.mjs} +24 -24
  114. package/dist/{images-B9dnr1z0.mjs → images-DaLPjskW.mjs} +38 -38
  115. package/dist/index.mjs +1 -1
  116. package/dist/{init-BGcAIvV7.mjs → init-CBKifk5L.mjs} +2 -2
  117. package/dist/{intel-BQpZMck3.mjs → intel-MpftjuPB.mjs} +37 -37
  118. package/dist/interactive-mJQ_IrGd.mjs +2 -0
  119. package/dist/{ips-PT_uQKAf.mjs → ips-WWvPwSBc.mjs} +1 -1
  120. package/dist/{k2-nPYti7Y0.mjs → k2-D0QYUFqT.mjs} +6 -6
  121. package/dist/{keyless-certificates-BHvas2q1.mjs → keyless-certificates-DqILy3t9.mjs} +6 -6
  122. package/dist/{keys-O5kAW9ox.mjs → keys-DhX4AcqF.mjs} +2 -2
  123. package/dist/{kv-BUP_ZLM_.mjs → kv-DLUfUL0_.mjs} +9 -9
  124. package/dist/{lazy-command-glNW3jzf.mjs → lazy-command--5YpWUVY.mjs} +1 -1
  125. package/dist/{leaked-credential-checks-De9hI1rl.mjs → leaked-credential-checks-C0U1oYM5.mjs} +8 -8
  126. package/dist/{load-balancers-Cs6bUHS1.mjs → load-balancers-BJKI9lm7.mjs} +39 -39
  127. package/dist/local-DkYQiSQQ.mjs +2 -0
  128. package/dist/{local-B5oRPTEN.mjs → local-rYpzEQb-.mjs} +1 -1
  129. package/dist/{local-runtime-CZnegFEM.mjs → local-runtime-DZTTIe6x.mjs} +1 -1
  130. package/dist/{login-C5nSIS-T.mjs → login-CnE2Ii_F.mjs} +1 -1
  131. package/dist/login-bnylLTit.mjs +5 -0
  132. package/dist/{logo-matches-BkQKdu4Z.mjs → logo-matches-DFZybI0C.mjs} +3 -3
  133. package/dist/{logos-C_sv-boo.mjs → logos-Da2YtqSN.mjs} +4 -4
  134. package/dist/{logpush-NUcyMKHi.mjs → logpush-Q7WIEHS1.mjs} +23 -23
  135. package/dist/{logs-BZT4PlqZ.mjs → logs-c3b3USyS.mjs} +12 -12
  136. package/dist/{magic-cloud-networking-DQnSdmgA.mjs → magic-cloud-networking-BoyDmFq3.mjs} +37 -37
  137. package/dist/{magic-network-monitoring-pHTU6aS8.mjs → magic-network-monitoring-BkUbpMUp.mjs} +18 -18
  138. package/dist/{magic-transit-5302bQNh.mjs → magic-transit-4-THD45G.mjs} +161 -161
  139. package/dist/{managed-defense-8OEfDzuO.mjs → managed-defense-CTMqSp6z.mjs} +9 -9
  140. package/dist/{managed-transforms-CCpUz4TY.mjs → managed-transforms-DcYAvqTe.mjs} +4 -4
  141. package/dist/{matches-BSiYXs99.mjs → matches-hnU16rSJ.mjs} +3 -3
  142. package/dist/{mcp-CCMiS75R.mjs → mcp-kZX4irfN.mjs} +15 -15
  143. package/dist/{mesh-DKBGTlCD.mjs → mesh-Dxzvvso6.mjs} +12 -12
  144. package/dist/{migrate-BJ9Go_wP.mjs → migrate-BNvUWrjy.mjs} +1 -1
  145. package/dist/{monetization-CFf_lb6x.mjs → monetization-Dsqj9DCA.mjs} +11 -11
  146. package/dist/{mtls-certificates-DsF3NFNs.mjs → mtls-certificates-BSbMwIna.mjs} +6 -6
  147. package/dist/{network-interconnects-YiRUBbjx.mjs → network-interconnects-osO_vAPu.mjs} +17 -17
  148. package/dist/{network-Bm0qYRqY.mjs → network-mEnXTEiG.mjs} +24 -24
  149. package/dist/{oauth-cNZUky3h.mjs → oauth-CeZ3d_dB.mjs} +2 -2
  150. package/dist/{oauth-clients-CP6alY0_.mjs → oauth-clients-CWPHi-Yn.mjs} +7 -7
  151. package/dist/{oauth-scopes-xl-pcWdg.mjs → oauth-scopes-CxpRD6d7.mjs} +1 -1
  152. package/dist/{oauth-DxGgIwFc.mjs → oauth-w0fWmrwU.mjs} +1 -1
  153. package/dist/{observability-Bp71PtlD.mjs → observability-BxL2RqWZ.mjs} +44 -44
  154. package/dist/{organization-Dbom1gTR.mjs → organization-DNieJ1xJ.mjs} +1 -1
  155. package/dist/{organizations-OUMVsuen.mjs → organizations-BIXPmTy5.mjs} +1 -1
  156. package/dist/{origin-ca-certificates-B3-T0-Nn.mjs → origin-ca-certificates-dVJvSIH8.mjs} +1 -1
  157. package/dist/{origin-post-quantum-encryption-CGB6AfPa.mjs → origin-post-quantum-encryption-CO6tDW1t.mjs} +3 -3
  158. package/dist/{origin-tls-client-auth-CgzzfAWr.mjs → origin-tls-client-auth-DeTY8aN2.mjs} +14 -14
  159. package/dist/output-ClYel9WX.mjs +2 -0
  160. package/dist/{page-rules-B9BQKU4_.mjs → page-rules-DA552Ra4.mjs} +7 -7
  161. package/dist/{pages-DZPdyuT4.mjs → pages-B0x7tidm.mjs} +27 -27
  162. package/dist/{pay-per-crawl-CnveMVDi.mjs → pay-per-crawl-DoTg9VP7.mjs} +32 -32
  163. package/dist/{pay-per-use-Bpxe8PHv.mjs → pay-per-use-yRO2QBfe.mjs} +3 -3
  164. package/dist/{pipelines-CHev3o5G.mjs → pipelines-CQxrm9ao.mjs} +20 -20
  165. package/dist/{precursor-C9PK9Bue.mjs → precursor-FiGYDRV9.mjs} +2 -2
  166. package/dist/previews-BthBa50j.mjs +4 -0
  167. package/dist/{progress-A61dRbXl.mjs → progress-TLUEIYE6.mjs} +1 -1
  168. package/dist/{prompt-CGUzvBgY.mjs → prompt-Ck_1PCHm.mjs} +1 -1
  169. package/dist/{queries-f-btyefs.mjs → queries-C0RRdol7.mjs} +4 -4
  170. package/dist/{queues-kLNdeb3q.mjs → queues-sLgvjsRP.mjs} +26 -26
  171. package/dist/{r2-D_awYx2p.mjs → r2-C2PllL6i.mjs} +63 -63
  172. package/dist/{radar-CU4T02Ag.mjs → radar-Bez6k9Dw.mjs} +1 -1
  173. package/dist/raw-fetch-DNxNCoeP.mjs +2 -0
  174. package/dist/{realtime-C0dvcBBM.mjs → realtime-D-HSXznX.mjs} +78 -78
  175. package/dist/{registrar-CHc-4vcf.mjs → registrar-DwHrG9QR.mjs} +9 -9
  176. package/dist/{registrar-sandbox-Dq8LV2AI.mjs → registrar-sandbox-jNukmzQP.mjs} +6 -6
  177. package/dist/{registry-Cg5lP8oo.mjs → registry-CsSLAAOE.mjs} +1 -1
  178. package/dist/{reporting-4u21g6Dk.mjs → reporting-DolhAb10.mjs} +7 -7
  179. package/dist/{request-headers-D31kdxrQ.mjs → request-headers-Lhj314mk.mjs} +1 -1
  180. package/dist/{request-tracers-CupJ_83j.mjs → request-tracers-w72hKc33.mjs} +2 -2
  181. package/dist/resolve-Djf2xgBx.mjs +2 -0
  182. package/dist/{resource-sharing-CO-Lh-u7.mjs → resource-sharing-DTrSkqI4.mjs} +18 -18
  183. package/dist/{resource-tagging-D0R5SzR6.mjs → resource-tagging-aURR4fIJ.mjs} +2 -2
  184. package/dist/{rules-BsmKzB9H.mjs → rules-C8a7cV-W.mjs} +8 -8
  185. package/dist/{rulesets-HOOnxHZZ.mjs → rulesets-RJ6yBefy.mjs} +17 -17
  186. package/dist/{rum-wcLEvVJl.mjs → rum-Bk1dPW4p.mjs} +14 -14
  187. package/dist/run-BJOAPmsz.mjs +2 -0
  188. package/dist/{run-CIJTelJL.mjs → run-iFM5TxtQ.mjs} +1 -1
  189. package/dist/{schema-flags-D8vL2oiF.mjs → schema-flags-PagOq-G2.mjs} +1 -1
  190. package/dist/{schema-GdBsV4P7.mjs → schema-v7mOxMdx.mjs} +1 -1
  191. package/dist/{scim-BkdJmAS8.mjs → scim-C0FmjkkV.mjs} +10 -10
  192. package/dist/{secrets-store-CHs0oYA0.mjs → secrets-store-cG_5RMzK.mjs} +11 -11
  193. package/dist/{security-insights-vsl-4xFa.mjs → security-insights-DVAqroY5.mjs} +20 -20
  194. package/dist/{security-txt-Fnl3LdSn.mjs → security-txt-rfrrdiZV.mjs} +4 -4
  195. package/dist/{session-CZTuHcbm.mjs → session-B6mFkaVZ.mjs} +1 -1
  196. package/dist/shared-BqsWoApw.mjs +2 -0
  197. package/dist/{smart-shield-DB0E7cZI.mjs → smart-shield-_HA814Im.mjs} +11 -11
  198. package/dist/{snippets-CFaF_NyG.mjs → snippets-mRelEw0p.mjs} +10 -10
  199. package/dist/{spawn-B0Sl8lUu.mjs → spawn-BzPhcLJI.mjs} +1 -1
  200. package/dist/{spectrum-DtG0jYjE.mjs → spectrum-BwtOiaDw.mjs} +11 -11
  201. package/dist/{speed-B-RiNHGK.mjs → speed-DmqsZtiJ.mjs} +11 -11
  202. package/dist/{src-CM3XaB4p.mjs → src--KDGqL5N.mjs} +5 -5
  203. package/dist/{ssl-DBVpCZAM.mjs → ssl-DCvfveJB.mjs} +16 -16
  204. package/dist/{startup-profile-CR7GMuLx.mjs → startup-profile-BCe9k9sR.mjs} +1 -1
  205. package/dist/startup-profile-WrwRyMwH.mjs +2 -0
  206. package/dist/{state-BaGRaYow.mjs → state-BPwdiNO_.mjs} +1 -1
  207. package/dist/state-a1tTOGjm.mjs +2 -0
  208. package/dist/{stream-cAdBvpS1.mjs → stream-aroClJeD.mjs} +56 -56
  209. package/dist/{submit-Bkd7l2rK.mjs → submit-BBKhoKT8.mjs} +2 -2
  210. package/dist/{tags--eph7JbN.mjs → tags-Djw0e-4j.mjs} +2 -2
  211. package/dist/telemetry-DoBQOGRk.mjs +2 -0
  212. package/dist/{telemetry-51etasAu.mjs → telemetry-DrFNujdx.mjs} +1 -1
  213. package/dist/{tenant-custom-nameservers-B5IIIwbz.mjs → tenant-custom-nameservers-XCbXryBZ.mjs} +1 -1
  214. package/dist/{tenant-Bj-He2xO.mjs → tenant-tc1wb_ym.mjs} +1 -1
  215. package/dist/{tools-BJZ0DDlL.mjs → tools-CB4NleeJ.mjs} +1 -1
  216. package/dist/{tunnels-CgtuRpcD.mjs → tunnels-C2FTswb6.mjs} +13 -13
  217. package/dist/{turnstile-Bmcnrzw7.mjs → turnstile-BV4Mdd-j.mjs} +6 -6
  218. package/dist/{ui-BQxRjahW.mjs → ui-D1hhIDIs.mjs} +1 -1
  219. package/dist/update-check-CFt6cMOi.mjs +2 -0
  220. package/dist/{update-check-DC0qP_8z.mjs → update-check-Dtj9fzNe.mjs} +1 -1
  221. package/dist/update-check-worker.mjs +1 -1
  222. package/dist/{url-info-DhVehaT8.mjs → url-info-CeegsDK7.mjs} +2 -2
  223. package/dist/{url-normalization-BpGDUUQc.mjs → url-normalization-Dbypc9wz.mjs} +4 -4
  224. package/dist/{url-scanner-DiLdqsQk.mjs → url-scanner-BFXMrpJF.mjs} +8 -8
  225. package/dist/{user-B6P5_OjP.mjs → user-3uwLMH78.mjs} +1 -1
  226. package/dist/{values-Cxx4Lxrd.mjs → values-BTncDc3U.mjs} +2 -2
  227. package/dist/{vectorize-YyxVpql-.mjs → vectorize-CtMAtx8r.mjs} +17 -17
  228. package/dist/version-oN1bmOgM.mjs +2 -0
  229. package/dist/{waiting-rooms-BdahlCdD.mjs → waiting-rooms-1xDvjF13.mjs} +25 -25
  230. package/dist/{web-assets-yaKxN4w_.mjs → web-assets-BfEprX1S.mjs} +29 -29
  231. package/dist/{web3-Bu9c_QAt.mjs → web3-DNbp5sZw.mjs} +13 -13
  232. package/dist/{workers-5GgoGA2e.mjs → workers-DK_JgS4Y.mjs} +18 -18
  233. package/dist/{workers-builds-h-1FJjE1.mjs → workers-builds-CdhwmmsQ.mjs} +7 -7
  234. package/dist/{workers-for-platforms-CV9iRrp9.mjs → workers-for-platforms-CP6IqxrK.mjs} +23 -23
  235. package/dist/{workers-vpc-C1oUHHqk.mjs → workers-vpc-LVfayM2-.mjs} +6 -6
  236. package/dist/{workflows-dtMlkj1-.mjs → workflows-CA5K8FFb.mjs} +23 -23
  237. package/dist/{wrangler-migration-CJEb9hY3.mjs → wrangler-migration-B0mKHqGd.mjs} +1 -1
  238. package/dist/{zaraz-838AbMEX.mjs → zaraz-BY60ZUQ4.mjs} +11 -11
  239. package/dist/{zero-trust-CYt-eELJ.mjs → zero-trust-CQNohO7_.mjs} +416 -416
  240. package/dist/{zone-uJwRLSnn.mjs → zone-BVDW2UGd.mjs} +2 -2
  241. package/dist/{zones-Dpofsnth.mjs → zones-CcZL0YQp.mjs} +44 -44
  242. package/package.json +9 -4
  243. package/dist/auth-BBlAI8HG.mjs +0 -2
  244. package/dist/auth-BIr56Mbx.mjs +0 -8
  245. package/dist/build-DLZ9gBNA.mjs +0 -2
  246. package/dist/command-CAtsHc1V.mjs +0 -2
  247. package/dist/d1-m7UfzBzl.mjs +0 -41
  248. package/dist/discover-DwczTkRX.mjs +0 -2
  249. package/dist/dry-run-Bq0JAsbX.mjs +0 -2
  250. package/dist/error-sanitization-CJ5OLJrh.mjs +0 -2
  251. package/dist/error-sanitization-hmi1CqE5.mjs +0 -2
  252. package/dist/generate-BPqoDbck.mjs +0 -2
  253. package/dist/interactive-SgAjen2z.mjs +0 -2
  254. package/dist/local-Bj-l0TP6.mjs +0 -2
  255. package/dist/login-CUup7w0e.mjs +0 -5
  256. package/dist/output-CvQFJkvi.mjs +0 -2
  257. package/dist/previews-BIMI1dTz.mjs +0 -4
  258. package/dist/raw-fetch-CvkmFO23.mjs +0 -2
  259. package/dist/resolve-PZuJ878-.mjs +0 -2
  260. package/dist/run-quhbAvQi.mjs +0 -2
  261. package/dist/sdk-BCzcRJCi.mjs +0 -3
  262. package/dist/shared-BS30oCf8.mjs +0 -2
  263. package/dist/startup-profile-CLmojOrn.mjs +0 -2
  264. package/dist/state-CpXhcMdX.mjs +0 -2
  265. package/dist/telemetry-Q3_UmwHj.mjs +0 -2
  266. package/dist/update-check-BqSpgzHk.mjs +0 -2
  267. package/dist/version-C0pInAZ9.mjs +0 -2
  268. /package/dist/{Page-CjJht2qT.mjs → Page-DAgOEX17.mjs} +0 -0
  269. /package/dist/{alerts-DY_7Nknx.mjs → alerts-D3iKtzoN.mjs} +0 -0
  270. /package/dist/{autorag-K396-M2S.mjs → autorag-pvRfDwne.mjs} +0 -0
  271. /package/dist/{body-parser-hh2avzkz.mjs → body-parser-NjzJZMOV.mjs} +0 -0
  272. /package/dist/{brands-DeLbFxSt.mjs → brands-DP5Ndir1.mjs} +0 -0
  273. /package/dist/{browser-extension-C1zmKFDG.mjs → browser-extension-Dee2Y1qn.mjs} +0 -0
  274. /package/dist/{chunk-WMOON6TZ-D_ToS88f.mjs → chunk-WMOON6TZ-B8xCqjB1.mjs} +0 -0
  275. /package/dist/{clear-CRfI7WS7.mjs → clear-qLKPlJqb.mjs} +0 -0
  276. /package/dist/{cli-types-DoVT5q_M.mjs → cli-types-_Kmwfpnp.mjs} +0 -0
  277. /package/dist/{connector-telemetry-events-latest-D8p_dR8s.mjs → connector-telemetry-events-latest-_aCmWeZx.mjs} +0 -0
  278. /package/dist/{connector-telemetry-snapshots-latest-COFmzmlk.mjs → connector-telemetry-snapshots-latest-CffEplpV.mjs} +0 -0
  279. /package/dist/{delegate-B6LetRpZ.mjs → delegate-CCGgla7X.mjs} +0 -0
  280. /package/dist/{discover-C5aiI6u0.mjs → discover-t6E9lpf3.mjs} +0 -0
  281. /package/dist/{domain-info-aiwP60Fo.mjs → domain-info-BQh9XapD.mjs} +0 -0
  282. /package/dist/{gt-DmcMNPX6.mjs → gt-KlYHH-UC.mjs} +0 -0
  283. /package/dist/{health-Bz33n-_F.mjs → health--10IShMi.mjs} +0 -0
  284. /package/dist/{input-validation-Dk52b0me.mjs → input-validation-0CeePPHp.mjs} +0 -0
  285. /package/dist/{interactive-C-o16XQs.mjs → interactive-D80kbTap.mjs} +0 -0
  286. /package/dist/{internal-BHrJbbdA.mjs → internal-BUs583vv.mjs} +0 -0
  287. /package/dist/{lifecycle-C7tAC1Mn.mjs → lifecycle-Cyc3fmyN.mjs} +0 -0
  288. /package/dist/{live-MeJQXIei.mjs → live-VCSxA0N9.mjs} +0 -0
  289. /package/dist/{open-PCXX3ZDZ-BKRik1gi.mjs → open-PCXX3ZDZ-C7gpxSsl.mjs} +0 -0
  290. /package/dist/{project-settings-DO6njFg_.mjs → project-settings-Bf6rReo1.mjs} +0 -0
  291. /package/dist/{r2-data-catalog-2jQrdAdo.mjs → r2-data-catalog-Bg7zq1IB.mjs} +0 -0
  292. /package/dist/{rate-limit-analytics-CU55zqCU.mjs → rate-limit-analytics-D3q0mGv2.mjs} +0 -0
  293. /package/dist/{rate-limits-CZ-qHDPK.mjs → rate-limits-BIxlBuMn.mjs} +0 -0
  294. /package/dist/{ready-BOpbZ1pN.mjs → ready-CAgelFmC.mjs} +0 -0
  295. /package/dist/{recent-submissions-KDqD2HyS.mjs → recent-submissions-B3TOjNmk.mjs} +0 -0
  296. /package/dist/{refute-DkF4XIMw.mjs → refute-BZNkFpBB.mjs} +0 -0
  297. /package/dist/{resolve-BCTrtcx7.mjs → resolve-CGKqk7q8.mjs} +0 -0
  298. /package/dist/{scan-logo-DQkf6glG.mjs → scan-logo-StecHiaf.mjs} +0 -0
  299. /package/dist/{scan-page-CMOJ_E0n.mjs → scan-page-B4adr-vD.mjs} +0 -0
  300. /package/dist/{search-Bre1Zwn3.mjs → search-Devngw4M.mjs} +0 -0
  301. /package/dist/{signed-url-24ZbX4yV.mjs → signed-url-ChR5eXXd.mjs} +0 -0
  302. /package/dist/{submission-info-BmkbZVqM.mjs → submission-info-BGb81HZN.mjs} +0 -0
  303. /package/dist/{total-queries-j8OAF_cE.mjs → total-queries-_wa6KxEl.mjs} +0 -0
  304. /package/dist/{tracked-domains-fe3EWYmF.mjs → tracked-domains-BesKGqfI.mjs} +0 -0
  305. /package/dist/{verify-CKgZYvln.mjs → verify-CYM5GlPu.mjs} +0 -0
@@ -1,102 +1,102 @@
1
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,n as g}from"./prompt-CGUzvBgY.mjs";import{t as ee}from"./cli-types-DoVT5q_M.mjs";import{n as te,t as _}from"./raw-fetch-CvkmFO23.mjs";function v(e){return e.usage(`$0 stream keys create
2
+ import{t as e}from"./local-rYpzEQb-.mjs";import{i as t,n}from"./auth-Br-t8vL_.mjs";import{a as r,t as i}from"./context-CquYYyS3.mjs";import{t as a}from"./output-ClYel9WX.mjs";import{t as o}from"./dry-run-p9Q7nMZ5.mjs";import{t as s}from"./progress-TLUEIYE6.mjs";import{t as c}from"./run-iFM5TxtQ.mjs";import"./telemetry-DoBQOGRk.mjs";import{i as l,n as u,r as d,t as f}from"./body-parser-NjzJZMOV.mjs";import{n as p,t as m}from"./input-validation-0CeePPHp.mjs";import{a as h,n as g}from"./prompt-Ck_1PCHm.mjs";import{t as ee}from"./cli-types-_Kmwfpnp.mjs";import{n as te,t as _}from"./raw-fetch-DNxNCoeP.mjs";function v(e){return e.usage(`$0 stream keys create
3
3
 
4
- Creates an RSA private key in PEM and JWK formats. Key files are only displayed once after creation. Keys are created, used, and deleted independently of videos, and every key can sign any video.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const y={command:`create`,describe:`Create signing keys`,builder:v,handler:async r=>c({command:`stream keys create`,classification:{safeFlags:[`dry-run`]}},r,async()=>{if(r.dryRun){o({command:`cf stream keys create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/stream/keys`,pathParams:{},bodyKind:`none`});return}let c=await i(r),l=r.local?e:await n();r.accountId=l,a(await s(`Creating`,async()=>c.stream.keys.create({account_id:l})),{successLabel:`Created`})})};function b(e){return e.usage(`$0 stream keys delete <identifier>
4
+ Creates an RSA private key in PEM and JWK formats. Key files are only displayed once after creation. Keys are created, used, and deleted independently of videos, and every key can sign any video.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const y={command:`create`,describe:`Create signing keys`,builder:v,handler:async t=>c({command:`stream keys create`,classification:{safeFlags:[`dry-run`]}},t,async()=>{if(t.dryRun){o({command:`cf stream keys create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${await r()??`<account-id>`}/stream/keys`,pathParams:{},bodyKind:`none`});return}let c=await n(t),l=t.local?e:await i();t.accountId=l,a(await s(`Creating`,async()=>c.stream.keys.create({account_id:l})),{successLabel:`Created`})})};function b(e){return e.usage(`$0 stream keys delete <identifier>
5
5
 
6
- Deletes signing keys and revokes all signed URLs generated with the key.`).positional(`identifier`,{type:`string`,description:`Identifier.`,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 x={command:`delete <identifier>`,describe:`Delete signing keys`,builder:b,handler:async r=>c({command:`stream keys delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},r,async()=>{if(r.dryRun){o({command:`cf stream keys delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/stream/keys/${r.identifier==null?`<identifier>`:encodeURIComponent(String(r.identifier))}`,pathParams:{identifier:String(r.identifier??``)},bodyKind:`none`});return}let c=await i(r),l=r.local?e:await n();if(r.accountId=l,!await g({force:!!r.force,message:`Permanently delete signing key? All tokens created with this key will become unauthorized!`})){process.stderr.write(`Aborted.
7
- `);return}a(await s(`Deleting`,async()=>c.stream.keys.delete({account_id:l,identifier:r.identifier})),{successLabel:`Deleted`})})};function S(e){return e.usage(`$0 stream keys list
6
+ Deletes signing keys and revokes all signed URLs generated with the key.`).positional(`identifier`,{type:`string`,description:`Identifier.`,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 x={command:`delete <identifier>`,describe:`Delete signing keys`,builder:b,handler:async t=>c({command:`stream keys delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},t,async()=>{if(t.dryRun){o({command:`cf stream keys delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${await r()??`<account-id>`}/stream/keys/${t.identifier==null?`<identifier>`:encodeURIComponent(String(t.identifier))}`,pathParams:{identifier:String(t.identifier??``)},bodyKind:`none`});return}let c=await n(t),l=t.local?e:await i();if(t.accountId=l,!await g({force:!!t.force,message:`Permanently delete signing key? All tokens created with this key will become unauthorized!`})){process.stderr.write(`Aborted.
7
+ `);return}a(await s(`Deleting`,async()=>c.stream.keys.delete({account_id:l,identifier:t.identifier})),{successLabel:`Deleted`})})};function S(e){return e.usage(`$0 stream keys list
8
8
 
9
- Lists the video ID and creation date and time when a signing key was created.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const C={command:`list`,describe:`List signing keys`,builder:S,handler:async r=>c({command:`stream keys list`,classification:{safeFlags:[`dry-run`]}},r,async()=>{if(r.dryRun){o({command:`cf stream keys list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/stream/keys`,pathParams:{},bodyKind:`none`});return}let c=await i(r),l=r.local?e:await n();r.accountId=l,a(await s(`Loading`,async()=>c.stream.keys.list({account_id:l})),{successLabel:`Loaded`})})},w={command:`keys`,describe:`Signing keys used to generate short-lived signed URLs for private video playback`,builder:e=>e.command(y).command(x).command(C).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function T(e){return e.usage(`$0 stream live-inputs create
9
+ Lists the video ID and creation date and time when a signing key was created.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const C={command:`list`,describe:`List signing keys`,builder:S,handler:async t=>c({command:`stream keys list`,classification:{safeFlags:[`dry-run`]}},t,async()=>{if(t.dryRun){o({command:`cf stream keys list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await r()??`<account-id>`}/stream/keys`,pathParams:{},bodyKind:`none`});return}let c=await n(t),l=t.local?e:await i();t.accountId=l,a(await s(`Loading`,async()=>c.stream.keys.list({account_id:l})),{successLabel:`Loaded`})})},w={command:`keys`,describe:`Signing keys used to generate short-lived signed URLs for private video playback`,builder:e=>e.command(y).command(x).command(C).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function T(e){return e.usage(`$0 stream live-inputs create
10
10
 
11
- Creates a live input, and returns credentials that you or your users can use to stream live video to Cloudflare Stream.`).option(`idempotency-key`,{type:`string`,description:`Prevents duplicate live inputs from being created when retrying this request. The key is scoped to the account, may contain up to 255 bytes, and expires six hours after the live input is created. Reusing a key for a deleted input before expiry returns a 409 Conflict response.`}).option(`default-creator`,{type:`string`,description:`Sets the creator ID asssociated with this live input.`}).option(`delete-recording-after-days`,{type:`number`,description:"Indicates the number of days after which the live inputs recordings will be deleted. When a stream completes and the recording is ready, the value is used to calculate a scheduled deletion date for that recording. Omit the field to indicate no change, or include with a `null` value to remove an existing scheduled deletion."}).option(`enabled`,{type:`boolean`,description:`Indicates whether the live input is enabled and can accept streams.`,default:!0}).option(`prefer-low-latency`,{type:`boolean`,description:`When enabled, the live stream is delivered using Low-Latency HLS (LL-HLS), reducing glass-to-glass latency for viewers at the cost of reduced player compatibility.`,default:!1}).option(`recording-allowed-origins`,{type:`string`,array:!0,description:"Lists the origins allowed to display videos created with this input. Enter allowed origin domains in an array and use `*` for wildcard subdomains. An empty array allows videos to be viewed on any origin."}).option(`recording-hide-live-viewer-count`,{type:`boolean`,description:"Disables reporting the number of live viewers when this property is set to `true`."}).option(`recording-mode`,{type:`string`,description:"Specifies the recording behavior for the live input. Set this value to `off` to prevent a recording. Set the value to `automatic` to begin a recording and transition to on-demand after Stream Live stops receiving input.",choices:[`off`,`automatic`]}).option(`recording-require-signed-urls`,{type:`boolean`,description:"Indicates if a video using the live input has the `requireSignedURLs` property set. Also enforces access controls on any video recording of the livestream with the live input."}).option(`recording-timeout-seconds`,{type:`number`,description:"Determines the amount of time a live input configured in `automatic` mode should wait before a recording transitions from live to on-demand. `0` is recommended for most use cases and indicates the platform default should be used."}).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 E={command:`create`,describe:`Create a live input`,builder:T,handler:async d=>c({command:`stream live-inputs create`,classification:{safeFlags:[`enabled`,`prefer-low-latency`,`recording-hide-live-viewer-count`,`recording-mode`,`recording-require-signed-urls`,`dry-run`]}},d,async()=>{let c={};if(d[`idempotency-key`]!==void 0&&(c[`Idempotency-Key`]=String(d[`idempotency-key`])),d.dryRun){o({command:`cf stream live-inputs create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/stream/live_inputs`,pathParams:{},bodyKind:`json`,body:d.body===void 0?f({defaultCreator:p(d[`default-creator`],`default-creator`,`text`),deleteRecordingAfterDays:d[`delete-recording-after-days`],enabled:d.enabled,preferLowLatency:d[`prefer-low-latency`],recording:{allowedOrigins:d[`recording-allowed-origins`],hideLiveViewerCount:d[`recording-hide-live-viewer-count`],mode:p(d[`recording-mode`],`recording-mode`,`text`),requireSignedURLs:d[`recording-require-signed-urls`],timeoutSeconds:d[`recording-timeout-seconds`]}}):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(`Creating`,async()=>r(m,`POST`,`/accounts/${h}/stream/live_inputs`,{body:e,headers:Object.keys(c).length>0?c:void 0})),{successLabel:`Created`});return}let g={};d[`default-creator`]!==void 0&&l(g,[`defaultCreator`],p(d[`default-creator`],`default-creator`,`text`)),d[`delete-recording-after-days`]!==void 0&&l(g,[`deleteRecordingAfterDays`],d[`delete-recording-after-days`]),d.enabled!==void 0&&l(g,[`enabled`],d.enabled),d[`prefer-low-latency`]!==void 0&&l(g,[`preferLowLatency`],d[`prefer-low-latency`]),d[`recording-allowed-origins`]!==void 0&&l(g,[`recording`,`allowedOrigins`],d[`recording-allowed-origins`]),d[`recording-hide-live-viewer-count`]!==void 0&&l(g,[`recording`,`hideLiveViewerCount`],d[`recording-hide-live-viewer-count`]),d[`recording-mode`]!==void 0&&l(g,[`recording`,`mode`],p(d[`recording-mode`],`recording-mode`,`text`)),d[`recording-require-signed-urls`]!==void 0&&l(g,[`recording`,`requireSignedURLs`],d[`recording-require-signed-urls`]),d[`recording-timeout-seconds`]!==void 0&&l(g,[`recording`,`timeoutSeconds`],d[`recording-timeout-seconds`]),a(await s(`Creating`,async()=>r(m,`POST`,`/accounts/${h}/stream/live_inputs`,{body:Object.keys(g).length>0?g:void 0,headers:Object.keys(c).length>0?c:void 0})),{successLabel:`Created`})})};function D(e){return e.usage(`$0 stream live-inputs delete <live-input-identifier>
11
+ Creates a live input, and returns credentials that you or your users can use to stream live video to Cloudflare Stream.`).option(`idempotency-key`,{type:`string`,description:`Prevents duplicate live inputs from being created when retrying this request. The key is scoped to the account, may contain up to 255 bytes, and expires six hours after the live input is created. Reusing a key for a deleted input before expiry returns a 409 Conflict response.`}).option(`default-creator`,{type:`string`,description:`Sets the creator ID asssociated with this live input.`}).option(`delete-recording-after-days`,{type:`number`,description:"Indicates the number of days after which the live inputs recordings will be deleted. When a stream completes and the recording is ready, the value is used to calculate a scheduled deletion date for that recording. Omit the field to indicate no change, or include with a `null` value to remove an existing scheduled deletion."}).option(`enabled`,{type:`boolean`,description:`Indicates whether the live input is enabled and can accept streams.`,default:!0}).option(`prefer-low-latency`,{type:`boolean`,description:`When enabled, the live stream is delivered using Low-Latency HLS (LL-HLS), reducing glass-to-glass latency for viewers at the cost of reduced player compatibility.`,default:!1}).option(`recording-allowed-origins`,{type:`string`,array:!0,description:"Lists the origins allowed to display videos created with this input. Enter allowed origin domains in an array and use `*` for wildcard subdomains. An empty array allows videos to be viewed on any origin."}).option(`recording-hide-live-viewer-count`,{type:`boolean`,description:"Disables reporting the number of live viewers when this property is set to `true`."}).option(`recording-mode`,{type:`string`,description:"Specifies the recording behavior for the live input. Set this value to `off` to prevent a recording. Set the value to `automatic` to begin a recording and transition to on-demand after Stream Live stops receiving input.",choices:[`off`,`automatic`]}).option(`recording-require-signed-urls`,{type:`boolean`,description:"Indicates if a video using the live input has the `requireSignedURLs` property set. Also enforces access controls on any video recording of the livestream with the live input."}).option(`recording-timeout-seconds`,{type:`number`,description:"Determines the amount of time a live input configured in `automatic` mode should wait before a recording transitions from live to on-demand. `0` is recommended for most use cases and indicates the platform default should be used."}).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 E={command:`create`,describe:`Create a live input`,builder:T,handler:async d=>c({command:`stream live-inputs create`,classification:{safeFlags:[`enabled`,`prefer-low-latency`,`recording-hide-live-viewer-count`,`recording-mode`,`recording-require-signed-urls`,`dry-run`]}},d,async()=>{let c={};if(d[`idempotency-key`]!==void 0&&(c[`Idempotency-Key`]=String(d[`idempotency-key`])),d.dryRun){o({command:`cf stream live-inputs create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${await r()??`<account-id>`}/stream/live_inputs`,pathParams:{},bodyKind:`json`,body:d.body===void 0?f({defaultCreator:p(d[`default-creator`],`default-creator`,`text`),deleteRecordingAfterDays:d[`delete-recording-after-days`],enabled:d.enabled,preferLowLatency:d[`prefer-low-latency`],recording:{allowedOrigins:d[`recording-allowed-origins`],hideLiveViewerCount:d[`recording-hide-live-viewer-count`],mode:p(d[`recording-mode`],`recording-mode`,`text`),requireSignedURLs:d[`recording-require-signed-urls`],timeoutSeconds:d[`recording-timeout-seconds`]}}):u(d.body)});return}let m=await n(d),h=d.local?e:await i();if(d.accountId=h,d.body){let e=u(d.body);a(await s(`Creating`,async()=>t(m,`POST`,`/accounts/${h}/stream/live_inputs`,{body:e,headers:Object.keys(c).length>0?c:void 0})),{successLabel:`Created`});return}let g={};d[`default-creator`]!==void 0&&l(g,[`defaultCreator`],p(d[`default-creator`],`default-creator`,`text`)),d[`delete-recording-after-days`]!==void 0&&l(g,[`deleteRecordingAfterDays`],d[`delete-recording-after-days`]),d.enabled!==void 0&&l(g,[`enabled`],d.enabled),d[`prefer-low-latency`]!==void 0&&l(g,[`preferLowLatency`],d[`prefer-low-latency`]),d[`recording-allowed-origins`]!==void 0&&l(g,[`recording`,`allowedOrigins`],d[`recording-allowed-origins`]),d[`recording-hide-live-viewer-count`]!==void 0&&l(g,[`recording`,`hideLiveViewerCount`],d[`recording-hide-live-viewer-count`]),d[`recording-mode`]!==void 0&&l(g,[`recording`,`mode`],p(d[`recording-mode`],`recording-mode`,`text`)),d[`recording-require-signed-urls`]!==void 0&&l(g,[`recording`,`requireSignedURLs`],d[`recording-require-signed-urls`]),d[`recording-timeout-seconds`]!==void 0&&l(g,[`recording`,`timeoutSeconds`],d[`recording-timeout-seconds`]),a(await s(`Creating`,async()=>t(m,`POST`,`/accounts/${h}/stream/live_inputs`,{body:Object.keys(g).length>0?g:void 0,headers:Object.keys(c).length>0?c:void 0})),{successLabel:`Created`})})};function D(e){return e.usage(`$0 stream live-inputs delete <live-input-identifier>
12
12
 
13
- Permanently delete a live input, making it inaccessible and blocking current and future broadcasts to it. Existing recordings will be retained.`).positional(`live-input-identifier`,{type:`string`,description:`A unique identifier for a live input.`,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 O={command:`delete <live-input-identifier>`,describe:`Delete a live input`,builder:D,handler:async r=>c({command:`stream live-inputs delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},r,async()=>{if(r.dryRun){o({command:`cf stream live-inputs delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/stream/live_inputs/${r[`live-input-identifier`]==null?`<live-input-identifier>`:encodeURIComponent(String(r[`live-input-identifier`]))}`,pathParams:{"live-input-identifier":String(r[`live-input-identifier`]??``)},bodyKind:`none`});return}let c=await i(r),l=r.local?e:await n();if(r.accountId=l,!await g({force:!!r.force,message:`Permanently delete this live input? It cannot be recreated.`})){process.stderr.write(`Aborted.
14
- `);return}a(await s(`Deleting`,async()=>c.stream.liveInputs.delete({account_id:l,live_input_identifier:r[`live-input-identifier`]})),{successLabel:`Deleted`})})};function k(e){return e.usage(`$0 stream live-inputs disable <live-input-identifier>
13
+ Permanently delete a live input, making it inaccessible and blocking current and future broadcasts to it. Existing recordings will be retained.`).positional(`live-input-identifier`,{type:`string`,description:`A unique identifier for a live input.`,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 O={command:`delete <live-input-identifier>`,describe:`Delete a live input`,builder:D,handler:async t=>c({command:`stream live-inputs delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},t,async()=>{if(t.dryRun){o({command:`cf stream live-inputs delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${await r()??`<account-id>`}/stream/live_inputs/${t[`live-input-identifier`]==null?`<live-input-identifier>`:encodeURIComponent(String(t[`live-input-identifier`]))}`,pathParams:{"live-input-identifier":String(t[`live-input-identifier`]??``)},bodyKind:`none`});return}let c=await n(t),l=t.local?e:await i();if(t.accountId=l,!await g({force:!!t.force,message:`Permanently delete this live input? It cannot be recreated.`})){process.stderr.write(`Aborted.
14
+ `);return}a(await s(`Deleting`,async()=>c.stream.liveInputs.delete({account_id:l,live_input_identifier:t[`live-input-identifier`]})),{successLabel:`Deleted`})})};function k(e){return e.usage(`$0 stream live-inputs disable <live-input-identifier>
15
15
 
16
- Prevents a live input from being streamed to and terminates any active broadcasts until re-enabled.`).positional(`live-input-identifier`,{type:`string`,description:`A unique identifier for a live input.`,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 A={command:`disable <live-input-identifier>`,describe:`Disable a live input`,builder:k,handler:async r=>c({command:`stream live-inputs disable`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},r,async()=>{if(r.dryRun){o({command:`cf stream live-inputs disable`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/stream/live_inputs/${r[`live-input-identifier`]==null?`<live-input-identifier>`:encodeURIComponent(String(r[`live-input-identifier`]))}/disable`,pathParams:{"live-input-identifier":String(r[`live-input-identifier`]??``)},bodyKind:`none`});return}let c=await i(r),l=r.local?e:await n();if(r.accountId=l,!await g({force:!!r.force,message:`Disable this live input? Active broadcasts will be terminated and future connections will be blocked until it is re-enabled.`})){process.stderr.write(`Aborted.
17
- `);return}a(await s(`Deleting`,async()=>c.stream.liveInputs.disable({account_id:l,live_input_identifier:r[`live-input-identifier`]})),{successLabel:`Deleted`})})};function j(e){return e.usage(`$0 stream live-inputs enable <live-input-identifier>
16
+ Prevents a live input from being streamed to and terminates any active broadcasts until re-enabled.`).positional(`live-input-identifier`,{type:`string`,description:`A unique identifier for a live input.`,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 A={command:`disable <live-input-identifier>`,describe:`Disable a live input`,builder:k,handler:async t=>c({command:`stream live-inputs disable`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},t,async()=>{if(t.dryRun){o({command:`cf stream live-inputs disable`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${await r()??`<account-id>`}/stream/live_inputs/${t[`live-input-identifier`]==null?`<live-input-identifier>`:encodeURIComponent(String(t[`live-input-identifier`]))}/disable`,pathParams:{"live-input-identifier":String(t[`live-input-identifier`]??``)},bodyKind:`none`});return}let c=await n(t),l=t.local?e:await i();if(t.accountId=l,!await g({force:!!t.force,message:`Disable this live input? Active broadcasts will be terminated and future connections will be blocked until it is re-enabled.`})){process.stderr.write(`Aborted.
17
+ `);return}a(await s(`Deleting`,async()=>c.stream.liveInputs.disable({account_id:l,live_input_identifier:t[`live-input-identifier`]})),{successLabel:`Deleted`})})};function j(e){return e.usage(`$0 stream live-inputs enable <live-input-identifier>
18
18
 
19
- Allows a disabled live input to start receiving broadcasts again.`).positional(`live-input-identifier`,{type:`string`,description:`A unique identifier for a live input.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const M={command:`enable <live-input-identifier>`,describe:`Enable a live input`,builder:j,handler:async r=>c({command:`stream live-inputs enable`,classification:{safeFlags:[`dry-run`]}},r,async()=>{if(r.dryRun){o({command:`cf stream live-inputs enable`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/stream/live_inputs/${r[`live-input-identifier`]==null?`<live-input-identifier>`:encodeURIComponent(String(r[`live-input-identifier`]))}/enable`,pathParams:{"live-input-identifier":String(r[`live-input-identifier`]??``)},bodyKind:`none`});return}let c=await i(r),l=r.local?e:await n();r.accountId=l,a(await s(`Creating`,async()=>c.stream.liveInputs.enable({account_id:l,live_input_identifier:r[`live-input-identifier`]})),{successLabel:`Created`})})};function N(e){return e.usage(`$0 stream live-inputs get <live-input-identifier>
19
+ Allows a disabled live input to start receiving broadcasts again.`).positional(`live-input-identifier`,{type:`string`,description:`A unique identifier for a live input.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const M={command:`enable <live-input-identifier>`,describe:`Enable a live input`,builder:j,handler:async t=>c({command:`stream live-inputs enable`,classification:{safeFlags:[`dry-run`]}},t,async()=>{if(t.dryRun){o({command:`cf stream live-inputs enable`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${await r()??`<account-id>`}/stream/live_inputs/${t[`live-input-identifier`]==null?`<live-input-identifier>`:encodeURIComponent(String(t[`live-input-identifier`]))}/enable`,pathParams:{"live-input-identifier":String(t[`live-input-identifier`]??``)},bodyKind:`none`});return}let c=await n(t),l=t.local?e:await i();t.accountId=l,a(await s(`Creating`,async()=>c.stream.liveInputs.enable({account_id:l,live_input_identifier:t[`live-input-identifier`]})),{successLabel:`Created`})})};function N(e){return e.usage(`$0 stream live-inputs get <live-input-identifier>
20
20
 
21
- Retrieves details of an existing live input.`).positional(`live-input-identifier`,{type:`string`,description:`A unique identifier for a live input.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const P={command:`get <live-input-identifier>`,describe:`Retrieve a live input`,builder:N,handler:async r=>c({command:`stream live-inputs get`,classification:{safeFlags:[`dry-run`]}},r,async()=>{if(r.dryRun){o({command:`cf stream live-inputs get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/stream/live_inputs/${r[`live-input-identifier`]==null?`<live-input-identifier>`:encodeURIComponent(String(r[`live-input-identifier`]))}`,pathParams:{"live-input-identifier":String(r[`live-input-identifier`]??``)},bodyKind:`none`});return}let c=await i(r),l=r.local?e:await n();r.accountId=l,a(await s(`Loading`,async()=>c.stream.liveInputs.get({account_id:l,live_input_identifier:r[`live-input-identifier`]})),{successLabel:`Loaded`})})};function F(e){return e.usage(`$0 stream live-inputs list
21
+ Retrieves details of an existing live input.`).positional(`live-input-identifier`,{type:`string`,description:`A unique identifier for a live input.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const P={command:`get <live-input-identifier>`,describe:`Retrieve a live input`,builder:N,handler:async t=>c({command:`stream live-inputs get`,classification:{safeFlags:[`dry-run`]}},t,async()=>{if(t.dryRun){o({command:`cf stream live-inputs get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await r()??`<account-id>`}/stream/live_inputs/${t[`live-input-identifier`]==null?`<live-input-identifier>`:encodeURIComponent(String(t[`live-input-identifier`]))}`,pathParams:{"live-input-identifier":String(t[`live-input-identifier`]??``)},bodyKind:`none`});return}let c=await n(t),l=t.local?e:await i();t.accountId=l,a(await s(`Loading`,async()=>c.stream.liveInputs.get({account_id:l,live_input_identifier:t[`live-input-identifier`]})),{successLabel:`Loaded`})})};function F(e){return e.usage(`$0 stream live-inputs list
22
22
 
23
- Lists the live inputs created for an account. To get the credentials needed to stream to a specific live input, request a single live input.`).option(`include-counts`,{type:`boolean`,description:`Includes the total number of videos associated with the submitted query parameters.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const I={command:`list`,describe:`List live inputs`,builder:F,handler:async r=>c({command:`stream live-inputs list`,classification:{safeFlags:[`include-counts`,`dry-run`]}},r,async()=>{let c={include_counts:r[`include-counts`]};if(r.dryRun){o({command:`cf stream live-inputs list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/stream/live_inputs`,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.stream.liveInputs.list({account_id:u,...c})),{successLabel:`Loaded`})})};function L(e){return e.usage(`$0 stream live-inputs outputs create <live-input-identifier>
23
+ Lists the live inputs created for an account. To get the credentials needed to stream to a specific live input, request a single live input.`).option(`include-counts`,{type:`boolean`,description:`Includes the total number of videos associated with the submitted query parameters.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const I={command:`list`,describe:`List live inputs`,builder:F,handler:async t=>c({command:`stream live-inputs list`,classification:{safeFlags:[`include-counts`,`dry-run`]}},t,async()=>{let c={include_counts:t[`include-counts`]};if(t.dryRun){o({command:`cf stream live-inputs list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await r()??`<account-id>`}/stream/live_inputs`,pathParams:{},query:c,bodyKind:`none`});return}let l=await n(t),u=t.local?e:await i();t.accountId=u,a(await s(`Loading`,async()=>l.stream.liveInputs.list({account_id:u,...c})),{successLabel:`Loaded`})})};function L(e){return e.usage(`$0 stream live-inputs outputs create <live-input-identifier>
24
24
 
25
- Creates a new output that can be used to simulcast or restream live video to other RTMP or SRT destinations. Outputs are always linked to a specific live input — one live input can have many outputs.`).positional(`live-input-identifier`,{type:`string`,description:`A unique identifier for a live input.`,demandOption:!0}).option(`enabled`,{type:`boolean`,description:`When enabled, live video streamed to the associated live input will be sent to the output URL. When disabled, live video will not be sent to the output URL, even when streaming to the associated live input. Use this to control precisely when you start and stop simulcasting to specific destinations like YouTube and Twitch.`,default:!0}).option(`stream-key`,{type:`string`,description:`The streamKey used to authenticate against an output's target.`}).option(`url`,{type:`string`,description:`The URL an output uses to restream.`}).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 R={command:`create <live-input-identifier>`,describe:`Create a new output, connected to a live input`,builder:L,handler:async r=>c({command:`stream live-inputs outputs create`,classification:{safeFlags:[`enabled`,`dry-run`]}},r,async()=>{if(r.dryRun){o({command:`cf stream live-inputs outputs create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/stream/live_inputs/${r[`live-input-identifier`]==null?`<live-input-identifier>`:encodeURIComponent(String(r[`live-input-identifier`]))}/outputs`,pathParams:{"live-input-identifier":String(r[`live-input-identifier`]??``)},bodyKind:`json`,body:r.body===void 0?f({enabled:r.enabled,streamKey:p(r[`stream-key`],`stream-key`,`text`),url:p(r.url,`url`,`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.stream.liveInputs.outputs.create({...e,account_id:l,live_input_identifier:r[`live-input-identifier`]})),{successLabel:`Created`});return}r[`stream-key`]===void 0&&(r[`stream-key`]=await h(`stream-key`,`The streamKey used to authenticate against an output's target.`,{kind:`secret`})),r.url===void 0&&(r.url=await h(`url`,`The URL an output uses to restream.`,{kind:`secret`}));let d=f({enabled:r.enabled,streamKey:p(r[`stream-key`],`stream-key`,`text`),url:p(r.url,`url`,`text`)});a(await s(`Creating`,async()=>c.stream.liveInputs.outputs.create({...d,account_id:l,live_input_identifier:r[`live-input-identifier`]})),{successLabel:`Created`})})};function z(e){return e.usage(`$0 stream live-inputs outputs delete <output-identifier>
25
+ Creates a new output that can be used to simulcast or restream live video to other RTMP or SRT destinations. Outputs are always linked to a specific live input — one live input can have many outputs.`).positional(`live-input-identifier`,{type:`string`,description:`A unique identifier for a live input.`,demandOption:!0}).option(`enabled`,{type:`boolean`,description:`When enabled, live video streamed to the associated live input will be sent to the output URL. When disabled, live video will not be sent to the output URL, even when streaming to the associated live input. Use this to control precisely when you start and stop simulcasting to specific destinations like YouTube and Twitch.`,default:!0}).option(`stream-key`,{type:`string`,description:`The streamKey used to authenticate against an output's target.`}).option(`url`,{type:`string`,description:`The URL an output uses to restream.`}).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 R={command:`create <live-input-identifier>`,describe:`Create a new output, connected to a live input`,builder:L,handler:async t=>c({command:`stream live-inputs outputs create`,classification:{safeFlags:[`enabled`,`dry-run`]}},t,async()=>{if(t.dryRun){o({command:`cf stream live-inputs outputs create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${await r()??`<account-id>`}/stream/live_inputs/${t[`live-input-identifier`]==null?`<live-input-identifier>`:encodeURIComponent(String(t[`live-input-identifier`]))}/outputs`,pathParams:{"live-input-identifier":String(t[`live-input-identifier`]??``)},bodyKind:`json`,body:t.body===void 0?f({enabled:t.enabled,streamKey:p(t[`stream-key`],`stream-key`,`text`),url:p(t.url,`url`,`text`)}):u(t.body)});return}let c=await n(t),l=t.local?e:await i();if(t.accountId=l,t.body){let e=u(t.body);a(await s(`Creating`,async()=>c.stream.liveInputs.outputs.create({...e,account_id:l,live_input_identifier:t[`live-input-identifier`]})),{successLabel:`Created`});return}t[`stream-key`]===void 0&&(t[`stream-key`]=await h(`stream-key`,`The streamKey used to authenticate against an output's target.`,{kind:`secret`})),t.url===void 0&&(t.url=await h(`url`,`The URL an output uses to restream.`,{kind:`secret`}));let d=f({enabled:t.enabled,streamKey:p(t[`stream-key`],`stream-key`,`text`),url:p(t.url,`url`,`text`)});a(await s(`Creating`,async()=>c.stream.liveInputs.outputs.create({...d,account_id:l,live_input_identifier:t[`live-input-identifier`]})),{successLabel:`Created`})})};function z(e){return e.usage(`$0 stream live-inputs outputs delete <output-identifier>
26
26
 
27
- Deletes an output and removes it from the associated live input.`).positional(`output-identifier`,{type:`string`,description:`A unique identifier for the output.`,demandOption:!0}).option(`live-input-identifier`,{type:`string`,description:`A unique identifier for a live input.`,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 B={command:`delete <output-identifier>`,describe:`Delete an output`,builder:z,handler:async r=>c({command:`stream live-inputs outputs delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},r,async()=>{if(r.dryRun){o({command:`cf stream live-inputs outputs delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/stream/live_inputs/${r[`live-input-identifier`]==null?`<live-input-identifier>`:encodeURIComponent(String(r[`live-input-identifier`]))}/outputs/${r[`output-identifier`]==null?`<output-identifier>`:encodeURIComponent(String(r[`output-identifier`]))}`,pathParams:{"output-identifier":String(r[`output-identifier`]??``),"live-input-identifier":String(r[`live-input-identifier`]??``)},bodyKind:`none`});return}let c=await i(r),l=r.local?e:await n();if(r.accountId=l,!await g({force:!!r.force,message:`Delete this output? Any active broadcast to this target will be terminated.`})){process.stderr.write(`Aborted.
28
- `);return}a(await s(`Deleting`,async()=>c.stream.liveInputs.outputs.delete({account_id:l,live_input_identifier:r[`live-input-identifier`],output_identifier:r[`output-identifier`]})),{successLabel:`Deleted`})})};function V(e){return e.usage(`$0 stream live-inputs outputs list
27
+ Deletes an output and removes it from the associated live input.`).positional(`output-identifier`,{type:`string`,description:`A unique identifier for the output.`,demandOption:!0}).option(`live-input-identifier`,{type:`string`,description:`A unique identifier for a live input.`,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 B={command:`delete <output-identifier>`,describe:`Delete an output`,builder:z,handler:async t=>c({command:`stream live-inputs outputs delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},t,async()=>{if(t.dryRun){o({command:`cf stream live-inputs outputs delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${await r()??`<account-id>`}/stream/live_inputs/${t[`live-input-identifier`]==null?`<live-input-identifier>`:encodeURIComponent(String(t[`live-input-identifier`]))}/outputs/${t[`output-identifier`]==null?`<output-identifier>`:encodeURIComponent(String(t[`output-identifier`]))}`,pathParams:{"output-identifier":String(t[`output-identifier`]??``),"live-input-identifier":String(t[`live-input-identifier`]??``)},bodyKind:`none`});return}let c=await n(t),l=t.local?e:await i();if(t.accountId=l,!await g({force:!!t.force,message:`Delete this output? Any active broadcast to this target will be terminated.`})){process.stderr.write(`Aborted.
28
+ `);return}a(await s(`Deleting`,async()=>c.stream.liveInputs.outputs.delete({account_id:l,live_input_identifier:t[`live-input-identifier`],output_identifier:t[`output-identifier`]})),{successLabel:`Deleted`})})};function V(e){return e.usage(`$0 stream live-inputs outputs list
29
29
 
30
- Retrieves all outputs associated with a specified live input.`).option(`live-input-identifier`,{type:`string`,description:`A unique identifier for a live input.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const H={command:`list`,describe:`List all outputs associated with a specified live input`,builder:V,handler:async r=>c({command:`stream live-inputs outputs list`,classification:{safeFlags:[`dry-run`]}},r,async()=>{if(r.dryRun){o({command:`cf stream live-inputs outputs list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/stream/live_inputs/${r[`live-input-identifier`]==null?`<live-input-identifier>`:encodeURIComponent(String(r[`live-input-identifier`]))}/outputs`,pathParams:{"live-input-identifier":String(r[`live-input-identifier`]??``)},bodyKind:`none`});return}let c=await i(r),l=r.local?e:await n();r.accountId=l,a(await s(`Loading`,async()=>c.stream.liveInputs.outputs.list({account_id:l,live_input_identifier:r[`live-input-identifier`]})),{successLabel:`Loaded`})})};function U(e){return e.usage(`$0 stream live-inputs outputs update <output-identifier>
30
+ Retrieves all outputs associated with a specified live input.`).option(`live-input-identifier`,{type:`string`,description:`A unique identifier for a live input.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const H={command:`list`,describe:`List all outputs associated with a specified live input`,builder:V,handler:async t=>c({command:`stream live-inputs outputs list`,classification:{safeFlags:[`dry-run`]}},t,async()=>{if(t.dryRun){o({command:`cf stream live-inputs outputs list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await r()??`<account-id>`}/stream/live_inputs/${t[`live-input-identifier`]==null?`<live-input-identifier>`:encodeURIComponent(String(t[`live-input-identifier`]))}/outputs`,pathParams:{"live-input-identifier":String(t[`live-input-identifier`]??``)},bodyKind:`none`});return}let c=await n(t),l=t.local?e:await i();t.accountId=l,a(await s(`Loading`,async()=>c.stream.liveInputs.outputs.list({account_id:l,live_input_identifier:t[`live-input-identifier`]})),{successLabel:`Loaded`})})};function U(e){return e.usage(`$0 stream live-inputs outputs update <output-identifier>
31
31
 
32
- Updates the state of an output.`).positional(`output-identifier`,{type:`string`,description:`A unique identifier for the output.`,demandOption:!0}).option(`live-input-identifier`,{type:`string`,description:`A unique identifier for a live input.`,demandOption:!0}).option(`enabled`,{type:`boolean`,description:`When enabled, live video streamed to the associated live input will be sent to the output URL. When disabled, live video will not be sent to the output URL, even when streaming to the associated live input. Use this to control precisely when you start and stop simulcasting to specific destinations like YouTube and Twitch.`}).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 W={command:`update <output-identifier>`,describe:`Update an output`,builder:U,handler:async r=>c({command:`stream live-inputs outputs update`,classification:{safeFlags:[`enabled`,`dry-run`]}},r,async()=>{if(r.dryRun){o({command:`cf stream live-inputs outputs update`,method:`PUT`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/stream/live_inputs/${r[`live-input-identifier`]==null?`<live-input-identifier>`:encodeURIComponent(String(r[`live-input-identifier`]))}/outputs/${r[`output-identifier`]==null?`<output-identifier>`:encodeURIComponent(String(r[`output-identifier`]))}`,pathParams:{"output-identifier":String(r[`output-identifier`]??``),"live-input-identifier":String(r[`live-input-identifier`]??``)},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.stream.liveInputs.outputs.update({...e,account_id:l,live_input_identifier:r[`live-input-identifier`],output_identifier:r[`output-identifier`]})),{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.stream.liveInputs.outputs.update({...d,account_id:l,live_input_identifier:r[`live-input-identifier`],output_identifier:r[`output-identifier`]})),{successLabel:`Updated`})})},G={command:`outputs`,describe:`Operations for live-inputs.outputs`,builder:e=>e.command(R).command(B).command(H).command(W).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function K(e){return e.usage(`$0 stream live-inputs rotate-keys <live-input-identifier>
32
+ Updates the state of an output.`).positional(`output-identifier`,{type:`string`,description:`A unique identifier for the output.`,demandOption:!0}).option(`live-input-identifier`,{type:`string`,description:`A unique identifier for a live input.`,demandOption:!0}).option(`enabled`,{type:`boolean`,description:`When enabled, live video streamed to the associated live input will be sent to the output URL. When disabled, live video will not be sent to the output URL, even when streaming to the associated live input. Use this to control precisely when you start and stop simulcasting to specific destinations like YouTube and Twitch.`}).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 W={command:`update <output-identifier>`,describe:`Update an output`,builder:U,handler:async t=>c({command:`stream live-inputs outputs update`,classification:{safeFlags:[`enabled`,`dry-run`]}},t,async()=>{if(t.dryRun){o({command:`cf stream live-inputs outputs update`,method:`PUT`,url:`https://api.cloudflare.com/client/v4/accounts/${await r()??`<account-id>`}/stream/live_inputs/${t[`live-input-identifier`]==null?`<live-input-identifier>`:encodeURIComponent(String(t[`live-input-identifier`]))}/outputs/${t[`output-identifier`]==null?`<output-identifier>`:encodeURIComponent(String(t[`output-identifier`]))}`,pathParams:{"output-identifier":String(t[`output-identifier`]??``),"live-input-identifier":String(t[`live-input-identifier`]??``)},bodyKind:`json`,body:t.body===void 0?f({enabled:t.enabled}):u(t.body)});return}let c=await n(t),l=t.local?e:await i();if(t.accountId=l,t.body){let e=u(t.body);a(await s(`Updating`,async()=>c.stream.liveInputs.outputs.update({...e,account_id:l,live_input_identifier:t[`live-input-identifier`],output_identifier:t[`output-identifier`]})),{successLabel:`Updated`});return}if(t.enabled===void 0)throw Error(`--enabled is required (or pass --body with this field set).`);let d=f({enabled:t.enabled});a(await s(`Updating`,async()=>c.stream.liveInputs.outputs.update({...d,account_id:l,live_input_identifier:t[`live-input-identifier`],output_identifier:t[`output-identifier`]})),{successLabel:`Updated`})})},G={command:`outputs`,describe:`Operations for live-inputs.outputs`,builder:e=>e.command(R).command(B).command(H).command(W).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function K(e){return e.usage(`$0 stream live-inputs rotate-keys <live-input-identifier>
33
33
 
34
- Rotates the credentials for a live input without changing its identifier. Old credentials are revoked, broadcasts using stale credentials are automatically disconnected shortly after rotation, and the response returns refreshed credentials.`).positional(`live-input-identifier`,{type:`string`,description:`A unique identifier for a live input.`,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 q={command:`rotate-keys <live-input-identifier>`,describe:`Rotate keys for a live input`,builder:K,handler:async r=>c({command:`stream live-inputs rotate-keys`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},r,async()=>{if(r.dryRun){o({command:`cf stream live-inputs rotate-keys`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/stream/live_inputs/${r[`live-input-identifier`]==null?`<live-input-identifier>`:encodeURIComponent(String(r[`live-input-identifier`]))}/rotate_keys`,pathParams:{"live-input-identifier":String(r[`live-input-identifier`]??``)},bodyKind:`none`});return}let c=await i(r),l=r.local?e:await n();if(r.accountId=l,!await g({force:!!r.force,message:`Rotate keys for this live input? Active broadcasts will be terminated. New broadcasts cannot start with outdated credentials.`})){process.stderr.write(`Aborted.
35
- `);return}a(await s(`Deleting`,async()=>c.stream.liveInputs.rotateKeys({account_id:l,live_input_identifier:r[`live-input-identifier`]})),{successLabel:`Deleted`})})};function J(e){return e.usage(`$0 stream live-inputs update <live-input-identifier>
34
+ Rotates the credentials for a live input without changing its identifier. Old credentials are revoked, broadcasts using stale credentials are automatically disconnected shortly after rotation, and the response returns refreshed credentials.`).positional(`live-input-identifier`,{type:`string`,description:`A unique identifier for a live input.`,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 q={command:`rotate-keys <live-input-identifier>`,describe:`Rotate keys for a live input`,builder:K,handler:async t=>c({command:`stream live-inputs rotate-keys`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},t,async()=>{if(t.dryRun){o({command:`cf stream live-inputs rotate-keys`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${await r()??`<account-id>`}/stream/live_inputs/${t[`live-input-identifier`]==null?`<live-input-identifier>`:encodeURIComponent(String(t[`live-input-identifier`]))}/rotate_keys`,pathParams:{"live-input-identifier":String(t[`live-input-identifier`]??``)},bodyKind:`none`});return}let c=await n(t),l=t.local?e:await i();if(t.accountId=l,!await g({force:!!t.force,message:`Rotate keys for this live input? Active broadcasts will be terminated. New broadcasts cannot start with outdated credentials.`})){process.stderr.write(`Aborted.
35
+ `);return}a(await s(`Deleting`,async()=>c.stream.liveInputs.rotateKeys({account_id:l,live_input_identifier:t[`live-input-identifier`]})),{successLabel:`Deleted`})})};function J(e){return e.usage(`$0 stream live-inputs update <live-input-identifier>
36
36
 
37
- Updates a specified live input.`).positional(`live-input-identifier`,{type:`string`,description:`A unique identifier for a live input.`,demandOption:!0}).option(`default-creator`,{type:`string`,description:`Sets the creator ID asssociated with this live input.`}).option(`delete-recording-after-days`,{type:`number`,description:"Indicates the number of days after which the live inputs recordings will be deleted. When a stream completes and the recording is ready, the value is used to calculate a scheduled deletion date for that recording. Omit the field to indicate no change, or include with a `null` value to remove an existing scheduled deletion."}).option(`enabled`,{type:`boolean`,description:`Indicates whether the live input is enabled and can accept streams.`}).option(`prefer-low-latency`,{type:`boolean`,description:`When enabled, the live stream is delivered using Low-Latency HLS (LL-HLS), reducing glass-to-glass latency for viewers at the cost of reduced player compatibility.`}).option(`recording-allowed-origins`,{type:`string`,array:!0,description:"Lists the origins allowed to display videos created with this input. Enter allowed origin domains in an array and use `*` for wildcard subdomains. An empty array allows videos to be viewed on any origin."}).option(`recording-hide-live-viewer-count`,{type:`boolean`,description:"Disables reporting the number of live viewers when this property is set to `true`."}).option(`recording-mode`,{type:`string`,description:"Specifies the recording behavior for the live input. Set this value to `off` to prevent a recording. Set the value to `automatic` to begin a recording and transition to on-demand after Stream Live stops receiving input.",choices:[`off`,`automatic`]}).option(`recording-require-signed-urls`,{type:`boolean`,description:"Indicates if a video using the live input has the `requireSignedURLs` property set. Also enforces access controls on any video recording of the livestream with the live input."}).option(`recording-timeout-seconds`,{type:`number`,description:"Determines the amount of time a live input configured in `automatic` mode should wait before a recording transitions from live to on-demand. `0` is recommended for most use cases and indicates the platform default should be used."}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const Y={command:`update <live-input-identifier>`,describe:`Update a live input`,builder:J,handler:async r=>c({command:`stream live-inputs update`,classification:{safeFlags:[`enabled`,`prefer-low-latency`,`recording-hide-live-viewer-count`,`recording-mode`,`recording-require-signed-urls`,`dry-run`]}},r,async()=>{if(r.dryRun){o({command:`cf stream live-inputs update`,method:`PUT`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/stream/live_inputs/${r[`live-input-identifier`]==null?`<live-input-identifier>`:encodeURIComponent(String(r[`live-input-identifier`]))}`,pathParams:{"live-input-identifier":String(r[`live-input-identifier`]??``)},bodyKind:`json`,body:r.body===void 0?f({defaultCreator:p(r[`default-creator`],`default-creator`,`text`),deleteRecordingAfterDays:r[`delete-recording-after-days`],enabled:r.enabled,preferLowLatency:r[`prefer-low-latency`],recording:{allowedOrigins:r[`recording-allowed-origins`],hideLiveViewerCount:r[`recording-hide-live-viewer-count`],mode:p(r[`recording-mode`],`recording-mode`,`text`),requireSignedURLs:r[`recording-require-signed-urls`],timeoutSeconds:r[`recording-timeout-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(`Updating`,async()=>c.stream.liveInputs.update({...e,account_id:l,live_input_identifier:r[`live-input-identifier`]})),{successLabel:`Updated`});return}let d=f({defaultCreator:p(r[`default-creator`],`default-creator`,`text`),deleteRecordingAfterDays:r[`delete-recording-after-days`],enabled:r.enabled,preferLowLatency:r[`prefer-low-latency`],recording:{allowedOrigins:r[`recording-allowed-origins`],hideLiveViewerCount:r[`recording-hide-live-viewer-count`],mode:p(r[`recording-mode`],`recording-mode`,`text`),requireSignedURLs:r[`recording-require-signed-urls`],timeoutSeconds:r[`recording-timeout-seconds`]}});a(await s(`Updating`,async()=>c.stream.liveInputs.update({...d,account_id:l,live_input_identifier:r[`live-input-identifier`]})),{successLabel:`Updated`})})},X={command:`live-inputs`,describe:`Enable and disable live input streams`,builder:e=>e.command(E).command(O).command(A).command(M).command(P).command(I).command(q).command(Y).command(G).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function Z(e){return e.usage(`$0 stream storage-usage
37
+ Updates a specified live input.`).positional(`live-input-identifier`,{type:`string`,description:`A unique identifier for a live input.`,demandOption:!0}).option(`default-creator`,{type:`string`,description:`Sets the creator ID asssociated with this live input.`}).option(`delete-recording-after-days`,{type:`number`,description:"Indicates the number of days after which the live inputs recordings will be deleted. When a stream completes and the recording is ready, the value is used to calculate a scheduled deletion date for that recording. Omit the field to indicate no change, or include with a `null` value to remove an existing scheduled deletion."}).option(`enabled`,{type:`boolean`,description:`Indicates whether the live input is enabled and can accept streams.`}).option(`prefer-low-latency`,{type:`boolean`,description:`When enabled, the live stream is delivered using Low-Latency HLS (LL-HLS), reducing glass-to-glass latency for viewers at the cost of reduced player compatibility.`}).option(`recording-allowed-origins`,{type:`string`,array:!0,description:"Lists the origins allowed to display videos created with this input. Enter allowed origin domains in an array and use `*` for wildcard subdomains. An empty array allows videos to be viewed on any origin."}).option(`recording-hide-live-viewer-count`,{type:`boolean`,description:"Disables reporting the number of live viewers when this property is set to `true`."}).option(`recording-mode`,{type:`string`,description:"Specifies the recording behavior for the live input. Set this value to `off` to prevent a recording. Set the value to `automatic` to begin a recording and transition to on-demand after Stream Live stops receiving input.",choices:[`off`,`automatic`]}).option(`recording-require-signed-urls`,{type:`boolean`,description:"Indicates if a video using the live input has the `requireSignedURLs` property set. Also enforces access controls on any video recording of the livestream with the live input."}).option(`recording-timeout-seconds`,{type:`number`,description:"Determines the amount of time a live input configured in `automatic` mode should wait before a recording transitions from live to on-demand. `0` is recommended for most use cases and indicates the platform default should be used."}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const Y={command:`update <live-input-identifier>`,describe:`Update a live input`,builder:J,handler:async t=>c({command:`stream live-inputs update`,classification:{safeFlags:[`enabled`,`prefer-low-latency`,`recording-hide-live-viewer-count`,`recording-mode`,`recording-require-signed-urls`,`dry-run`]}},t,async()=>{if(t.dryRun){o({command:`cf stream live-inputs update`,method:`PUT`,url:`https://api.cloudflare.com/client/v4/accounts/${await r()??`<account-id>`}/stream/live_inputs/${t[`live-input-identifier`]==null?`<live-input-identifier>`:encodeURIComponent(String(t[`live-input-identifier`]))}`,pathParams:{"live-input-identifier":String(t[`live-input-identifier`]??``)},bodyKind:`json`,body:t.body===void 0?f({defaultCreator:p(t[`default-creator`],`default-creator`,`text`),deleteRecordingAfterDays:t[`delete-recording-after-days`],enabled:t.enabled,preferLowLatency:t[`prefer-low-latency`],recording:{allowedOrigins:t[`recording-allowed-origins`],hideLiveViewerCount:t[`recording-hide-live-viewer-count`],mode:p(t[`recording-mode`],`recording-mode`,`text`),requireSignedURLs:t[`recording-require-signed-urls`],timeoutSeconds:t[`recording-timeout-seconds`]}}):u(t.body)});return}let c=await n(t),l=t.local?e:await i();if(t.accountId=l,t.body){let e=u(t.body);a(await s(`Updating`,async()=>c.stream.liveInputs.update({...e,account_id:l,live_input_identifier:t[`live-input-identifier`]})),{successLabel:`Updated`});return}let d=f({defaultCreator:p(t[`default-creator`],`default-creator`,`text`),deleteRecordingAfterDays:t[`delete-recording-after-days`],enabled:t.enabled,preferLowLatency:t[`prefer-low-latency`],recording:{allowedOrigins:t[`recording-allowed-origins`],hideLiveViewerCount:t[`recording-hide-live-viewer-count`],mode:p(t[`recording-mode`],`recording-mode`,`text`),requireSignedURLs:t[`recording-require-signed-urls`],timeoutSeconds:t[`recording-timeout-seconds`]}});a(await s(`Updating`,async()=>c.stream.liveInputs.update({...d,account_id:l,live_input_identifier:t[`live-input-identifier`]})),{successLabel:`Updated`})})},X={command:`live-inputs`,describe:`Enable and disable live input streams`,builder:e=>e.command(E).command(O).command(A).command(M).command(P).command(I).command(q).command(Y).command(G).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function Z(e){return e.usage(`$0 stream storage-usage
38
38
 
39
- Returns information about an account's storage use.`).option(`creator`,{type:`string`,description:`A user-defined identifier for the media creator.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const Q={command:`storage-usage`,describe:`Storage use`,builder:Z,handler:async r=>c({command:`stream storage-usage`,classification:{safeFlags:[`dry-run`]}},r,async()=>{let c={creator:r.creator};if(r.dryRun){o({command:`cf stream storage-usage`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/stream/storage-usage`,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.stream.storageUsage({account_id:u,...c})),{successLabel:`Loaded`})})};function ne(e){return e.usage(`$0 stream videos audio-tracks copy <identifier>
39
+ Returns information about an account's storage use.`).option(`creator`,{type:`string`,description:`A user-defined identifier for the media creator.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const Q={command:`storage-usage`,describe:`Storage use`,builder:Z,handler:async t=>c({command:`stream storage-usage`,classification:{safeFlags:[`dry-run`]}},t,async()=>{let c={creator:t.creator};if(t.dryRun){o({command:`cf stream storage-usage`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await r()??`<account-id>`}/stream/storage-usage`,pathParams:{},query:c,bodyKind:`none`});return}let l=await n(t),u=t.local?e:await i();t.accountId=u,a(await s(`Loading`,async()=>l.stream.storageUsage({account_id:u,...c})),{successLabel:`Loaded`})})};function ne(e){return e.usage(`$0 stream videos audio-tracks copy <identifier>
40
40
 
41
- Adds an additional audio track to a video using the provided audio track URL.`).positional(`identifier`,{type:`string`,description:`A Cloudflare-generated unique identifier for a media item.`,demandOption:!0}).option(`label`,{type:`string`,description:`A string to uniquely identify the track amongst other audio track labels for the specified video.`}).option(`url`,{type:`string`,description:"An audio track URL. The server must be publicly routable and support `HTTP HEAD` requests and `HTTP GET` range requests. The server should respond to `HTTP HEAD` requests with a `content-range` header that includes the size of the file."}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const re={command:`copy <identifier>`,describe:`Add audio tracks to a video`,builder:ne,handler:async r=>c({command:`stream videos audio-tracks copy`,classification:{safeFlags:[`dry-run`]}},r,async()=>{if(r.dryRun){o({command:`cf stream videos audio-tracks copy`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/stream/${r.identifier==null?`<identifier>`:encodeURIComponent(String(r.identifier))}/audio/copy`,pathParams:{identifier:String(r.identifier??``)},bodyKind:`json`,body:r.body===void 0?f({label:p(r.label,`label`,`text`),url:p(r.url,`url`,`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.stream.videos.audioTracks.copy({...e,account_id:l,identifier:r.identifier})),{successLabel:`Created`});return}r.label===void 0&&(r.label=await h(`label`,`A string to uniquely identify the track amongst other audio track labels for the specified video.`));let d=f({label:p(r.label,`label`,`text`),url:p(r.url,`url`,`text`)});a(await s(`Creating`,async()=>c.stream.videos.audioTracks.copy({...d,account_id:l,identifier:r.identifier})),{successLabel:`Created`})})};function ie(e){return e.usage(`$0 stream videos audio-tracks delete <audio-identifier>
41
+ Adds an additional audio track to a video using the provided audio track URL.`).positional(`identifier`,{type:`string`,description:`A Cloudflare-generated unique identifier for a media item.`,demandOption:!0}).option(`label`,{type:`string`,description:`A string to uniquely identify the track amongst other audio track labels for the specified video.`}).option(`url`,{type:`string`,description:"An audio track URL. The server must be publicly routable and support `HTTP HEAD` requests and `HTTP GET` range requests. The server should respond to `HTTP HEAD` requests with a `content-range` header that includes the size of the file."}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const re={command:`copy <identifier>`,describe:`Add audio tracks to a video`,builder:ne,handler:async t=>c({command:`stream videos audio-tracks copy`,classification:{safeFlags:[`dry-run`]}},t,async()=>{if(t.dryRun){o({command:`cf stream videos audio-tracks copy`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${await r()??`<account-id>`}/stream/${t.identifier==null?`<identifier>`:encodeURIComponent(String(t.identifier))}/audio/copy`,pathParams:{identifier:String(t.identifier??``)},bodyKind:`json`,body:t.body===void 0?f({label:p(t.label,`label`,`text`),url:p(t.url,`url`,`text`)}):u(t.body)});return}let c=await n(t),l=t.local?e:await i();if(t.accountId=l,t.body){let e=u(t.body);a(await s(`Creating`,async()=>c.stream.videos.audioTracks.copy({...e,account_id:l,identifier:t.identifier})),{successLabel:`Created`});return}t.label===void 0&&(t.label=await h(`label`,`A string to uniquely identify the track amongst other audio track labels for the specified video.`));let d=f({label:p(t.label,`label`,`text`),url:p(t.url,`url`,`text`)});a(await s(`Creating`,async()=>c.stream.videos.audioTracks.copy({...d,account_id:l,identifier:t.identifier})),{successLabel:`Created`})})};function ie(e){return e.usage(`$0 stream videos audio-tracks delete <audio-identifier>
42
42
 
43
- Deletes additional audio tracks on a video. Deleting a default audio track is not allowed. You must assign another audio track as default prior to deletion.`).positional(`audio-identifier`,{type:`string`,description:`The unique identifier for an additional audio track.`,demandOption:!0}).option(`identifier`,{type:`string`,description:`A Cloudflare-generated unique identifier for a media item.`,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 ae={command:`delete <audio-identifier>`,describe:`Delete additional audio tracks on a video`,builder:ie,handler:async r=>c({command:`stream videos audio-tracks delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},r,async()=>{if(r.dryRun){o({command:`cf stream videos audio-tracks delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/stream/${r.identifier==null?`<identifier>`:encodeURIComponent(String(r.identifier))}/audio/${r[`audio-identifier`]==null?`<audio-identifier>`:encodeURIComponent(String(r[`audio-identifier`]))}`,pathParams:{identifier:String(r.identifier??``),"audio-identifier":String(r[`audio-identifier`]??``)},bodyKind:`none`});return}let c=await i(r),l=r.local?e:await n();if(r.accountId=l,!await g({force:!!r.force,message:`Permanently delete this audio track?`})){process.stderr.write(`Aborted.
44
- `);return}a(await s(`Deleting`,async()=>c.stream.videos.audioTracks.delete({account_id:l,identifier:r.identifier,audio_identifier:r[`audio-identifier`]})),{successLabel:`Deleted`})})};function oe(e){return e.usage("$0 stream videos audio-tracks edit <audio-identifier>\n\nEdits additional audio tracks on a video. Editing the default status of an audio track to `true` will mark all other audio tracks on the video default status to `false`.").positional(`audio-identifier`,{type:`string`,description:`The unique identifier for an additional audio track.`,demandOption:!0}).option(`identifier`,{type:`string`,description:`A Cloudflare-generated unique identifier for a media item.`,demandOption:!0}).option(`default`,{type:`boolean`,description:`Denotes whether the audio track will be played by default in a player.`}).option(`label`,{type:`string`,description:`A string to uniquely identify the track amongst other audio track labels for the specified video.`}).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 se={command:`edit <audio-identifier>`,describe:`Edit additional audio tracks on a video`,builder:oe,handler:async r=>c({command:`stream videos audio-tracks edit`,classification:{safeFlags:[`default`,`dry-run`]}},r,async()=>{if(r.dryRun){o({command:`cf stream videos audio-tracks edit`,method:`PATCH`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/stream/${r.identifier==null?`<identifier>`:encodeURIComponent(String(r.identifier))}/audio/${r[`audio-identifier`]==null?`<audio-identifier>`:encodeURIComponent(String(r[`audio-identifier`]))}`,pathParams:{identifier:String(r.identifier??``),"audio-identifier":String(r[`audio-identifier`]??``)},bodyKind:`json`,body:r.body===void 0?f({default:r.default,label:p(r.label,`label`,`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.stream.videos.audioTracks.edit({...e,account_id:l,identifier:r.identifier,audio_identifier:r[`audio-identifier`]})),{successLabel:`Updated`});return}let d=f({default:r.default,label:p(r.label,`label`,`text`)});a(await s(`Updating`,async()=>c.stream.videos.audioTracks.edit({...d,account_id:l,identifier:r.identifier,audio_identifier:r[`audio-identifier`]})),{successLabel:`Updated`})})};function ce(e){return e.usage(`$0 stream videos audio-tracks list
43
+ Deletes additional audio tracks on a video. Deleting a default audio track is not allowed. You must assign another audio track as default prior to deletion.`).positional(`audio-identifier`,{type:`string`,description:`The unique identifier for an additional audio track.`,demandOption:!0}).option(`identifier`,{type:`string`,description:`A Cloudflare-generated unique identifier for a media item.`,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 ae={command:`delete <audio-identifier>`,describe:`Delete additional audio tracks on a video`,builder:ie,handler:async t=>c({command:`stream videos audio-tracks delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},t,async()=>{if(t.dryRun){o({command:`cf stream videos audio-tracks delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${await r()??`<account-id>`}/stream/${t.identifier==null?`<identifier>`:encodeURIComponent(String(t.identifier))}/audio/${t[`audio-identifier`]==null?`<audio-identifier>`:encodeURIComponent(String(t[`audio-identifier`]))}`,pathParams:{identifier:String(t.identifier??``),"audio-identifier":String(t[`audio-identifier`]??``)},bodyKind:`none`});return}let c=await n(t),l=t.local?e:await i();if(t.accountId=l,!await g({force:!!t.force,message:`Permanently delete this audio track?`})){process.stderr.write(`Aborted.
44
+ `);return}a(await s(`Deleting`,async()=>c.stream.videos.audioTracks.delete({account_id:l,identifier:t.identifier,audio_identifier:t[`audio-identifier`]})),{successLabel:`Deleted`})})};function oe(e){return e.usage("$0 stream videos audio-tracks edit <audio-identifier>\n\nEdits additional audio tracks on a video. Editing the default status of an audio track to `true` will mark all other audio tracks on the video default status to `false`.").positional(`audio-identifier`,{type:`string`,description:`The unique identifier for an additional audio track.`,demandOption:!0}).option(`identifier`,{type:`string`,description:`A Cloudflare-generated unique identifier for a media item.`,demandOption:!0}).option(`default`,{type:`boolean`,description:`Denotes whether the audio track will be played by default in a player.`}).option(`label`,{type:`string`,description:`A string to uniquely identify the track amongst other audio track labels for the specified video.`}).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 se={command:`edit <audio-identifier>`,describe:`Edit additional audio tracks on a video`,builder:oe,handler:async t=>c({command:`stream videos audio-tracks edit`,classification:{safeFlags:[`default`,`dry-run`]}},t,async()=>{if(t.dryRun){o({command:`cf stream videos audio-tracks edit`,method:`PATCH`,url:`https://api.cloudflare.com/client/v4/accounts/${await r()??`<account-id>`}/stream/${t.identifier==null?`<identifier>`:encodeURIComponent(String(t.identifier))}/audio/${t[`audio-identifier`]==null?`<audio-identifier>`:encodeURIComponent(String(t[`audio-identifier`]))}`,pathParams:{identifier:String(t.identifier??``),"audio-identifier":String(t[`audio-identifier`]??``)},bodyKind:`json`,body:t.body===void 0?f({default:t.default,label:p(t.label,`label`,`text`)}):u(t.body)});return}let c=await n(t),l=t.local?e:await i();if(t.accountId=l,t.body){let e=u(t.body);a(await s(`Updating`,async()=>c.stream.videos.audioTracks.edit({...e,account_id:l,identifier:t.identifier,audio_identifier:t[`audio-identifier`]})),{successLabel:`Updated`});return}let d=f({default:t.default,label:p(t.label,`label`,`text`)});a(await s(`Updating`,async()=>c.stream.videos.audioTracks.edit({...d,account_id:l,identifier:t.identifier,audio_identifier:t[`audio-identifier`]})),{successLabel:`Updated`})})};function ce(e){return e.usage(`$0 stream videos audio-tracks list
45
45
 
46
- Lists additional audio tracks on a video. Note this API will not return information for audio attached to the video upload.`).option(`identifier`,{type:`string`,description:`A Cloudflare-generated unique identifier for a media item.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const le={command:`list`,describe:`List additional audio tracks on a video`,builder:ce,handler:async r=>c({command:`stream videos audio-tracks list`,classification:{safeFlags:[`dry-run`]}},r,async()=>{if(r.dryRun){o({command:`cf stream videos audio-tracks list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/stream/${r.identifier==null?`<identifier>`:encodeURIComponent(String(r.identifier))}/audio`,pathParams:{identifier:String(r.identifier??``)},bodyKind:`none`});return}let c=await i(r),l=r.local?e:await n();r.accountId=l,a(await s(`Loading`,async()=>c.stream.videos.audioTracks.list({account_id:l,identifier:r.identifier})),{successLabel:`Loaded`})})},ue={command:`audio-tracks`,describe:`Operations for videos.audio-tracks`,builder:e=>e.command(re).command(ae).command(se).command(le).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function de(e){return e.usage(`$0 stream videos captions language delete <language>
46
+ Lists additional audio tracks on a video. Note this API will not return information for audio attached to the video upload.`).option(`identifier`,{type:`string`,description:`A Cloudflare-generated unique identifier for a media item.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const le={command:`list`,describe:`List additional audio tracks on a video`,builder:ce,handler:async t=>c({command:`stream videos audio-tracks list`,classification:{safeFlags:[`dry-run`]}},t,async()=>{if(t.dryRun){o({command:`cf stream videos audio-tracks list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await r()??`<account-id>`}/stream/${t.identifier==null?`<identifier>`:encodeURIComponent(String(t.identifier))}/audio`,pathParams:{identifier:String(t.identifier??``)},bodyKind:`none`});return}let c=await n(t),l=t.local?e:await i();t.accountId=l,a(await s(`Loading`,async()=>c.stream.videos.audioTracks.list({account_id:l,identifier:t.identifier})),{successLabel:`Loaded`})})},ue={command:`audio-tracks`,describe:`Operations for videos.audio-tracks`,builder:e=>e.command(re).command(ae).command(se).command(le).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function de(e){return e.usage(`$0 stream videos captions language delete <language>
47
47
 
48
- Removes the captions or subtitles from a video.`).positional(`language`,{type:`string`,description:`The language tag in BCP 47 format.`,demandOption:!0}).option(`identifier`,{type:`string`,description:`A Cloudflare-generated unique identifier for a media item.`,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 fe={command:`delete <language>`,describe:`Delete captions or subtitles`,builder:de,handler:async r=>c({command:`stream videos captions language delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},r,async()=>{if(r.dryRun){o({command:`cf stream videos captions language delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/stream/${r.identifier==null?`<identifier>`:encodeURIComponent(String(r.identifier))}/captions/${r.language==null?`<language>`:encodeURIComponent(String(r.language))}`,pathParams:{language:String(r.language??``),identifier:String(r.identifier??``)},bodyKind:`none`});return}let c=await i(r),l=r.local?e:await n();if(r.accountId=l,!await g({force:!!r.force,message:`Remove this caption?`})){process.stderr.write(`Aborted.
49
- `);return}a(await s(`Deleting`,async()=>c.stream.videos.captions.language.delete({account_id:l,identifier:r.identifier,language:r.language})),{successLabel:`Deleted`})})};function pe(e){return e.usage(`$0 stream videos captions language generate <language>
48
+ Removes the captions or subtitles from a video.`).positional(`language`,{type:`string`,description:`The language tag in BCP 47 format.`,demandOption:!0}).option(`identifier`,{type:`string`,description:`A Cloudflare-generated unique identifier for a media item.`,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 fe={command:`delete <language>`,describe:`Delete captions or subtitles`,builder:de,handler:async t=>c({command:`stream videos captions language delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},t,async()=>{if(t.dryRun){o({command:`cf stream videos captions language delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${await r()??`<account-id>`}/stream/${t.identifier==null?`<identifier>`:encodeURIComponent(String(t.identifier))}/captions/${t.language==null?`<language>`:encodeURIComponent(String(t.language))}`,pathParams:{language:String(t.language??``),identifier:String(t.identifier??``)},bodyKind:`none`});return}let c=await n(t),l=t.local?e:await i();if(t.accountId=l,!await g({force:!!t.force,message:`Remove this caption?`})){process.stderr.write(`Aborted.
49
+ `);return}a(await s(`Deleting`,async()=>c.stream.videos.captions.language.delete({account_id:l,identifier:t.identifier,language:t.language})),{successLabel:`Deleted`})})};function pe(e){return e.usage(`$0 stream videos captions language generate <language>
50
50
 
51
- Generate captions or subtitles for provided language via AI.`).positional(`language`,{type:`string`,description:`The language tag in BCP 47 format.`,demandOption:!0}).option(`identifier`,{type:`string`,description:`A Cloudflare-generated unique identifier for a media item.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const me={command:`generate <language>`,describe:`Generate captions or subtitles for a provided language via AI`,builder:pe,handler:async r=>c({command:`stream videos captions language generate`,classification:{safeFlags:[`dry-run`]}},r,async()=>{if(r.dryRun){o({command:`cf stream videos captions language generate`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/stream/${r.identifier==null?`<identifier>`:encodeURIComponent(String(r.identifier))}/captions/${r.language==null?`<language>`:encodeURIComponent(String(r.language))}/generate`,pathParams:{language:String(r.language??``),identifier:String(r.identifier??``)},bodyKind:`none`});return}let c=await i(r),l=r.local?e:await n();r.accountId=l,a(await s(`Creating`,async()=>c.stream.videos.captions.language.generate({account_id:l,identifier:r.identifier,language:r.language})),{successLabel:`Created`})})};function he(e){return e.usage(`$0 stream videos captions language get <language>
51
+ Generate captions or subtitles for provided language via AI.`).positional(`language`,{type:`string`,description:`The language tag in BCP 47 format.`,demandOption:!0}).option(`identifier`,{type:`string`,description:`A Cloudflare-generated unique identifier for a media item.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const me={command:`generate <language>`,describe:`Generate captions or subtitles for a provided language via AI`,builder:pe,handler:async t=>c({command:`stream videos captions language generate`,classification:{safeFlags:[`dry-run`]}},t,async()=>{if(t.dryRun){o({command:`cf stream videos captions language generate`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${await r()??`<account-id>`}/stream/${t.identifier==null?`<identifier>`:encodeURIComponent(String(t.identifier))}/captions/${t.language==null?`<language>`:encodeURIComponent(String(t.language))}/generate`,pathParams:{language:String(t.language??``),identifier:String(t.identifier??``)},bodyKind:`none`});return}let c=await n(t),l=t.local?e:await i();t.accountId=l,a(await s(`Creating`,async()=>c.stream.videos.captions.language.generate({account_id:l,identifier:t.identifier,language:t.language})),{successLabel:`Created`})})};function he(e){return e.usage(`$0 stream videos captions language get <language>
52
52
 
53
- Lists the captions or subtitles for provided language.`).positional(`language`,{type:`string`,description:`The language tag in BCP 47 format.`,demandOption:!0}).option(`identifier`,{type:`string`,description:`A Cloudflare-generated unique identifier for a media item.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const ge={command:`get <language>`,describe:`List captions or subtitles for a provided language`,builder:he,handler:async r=>c({command:`stream videos captions language get`,classification:{safeFlags:[`dry-run`]}},r,async()=>{if(r.dryRun){o({command:`cf stream videos captions language get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/stream/${r.identifier==null?`<identifier>`:encodeURIComponent(String(r.identifier))}/captions/${r.language==null?`<language>`:encodeURIComponent(String(r.language))}`,pathParams:{language:String(r.language??``),identifier:String(r.identifier??``)},bodyKind:`none`});return}let c=await i(r),l=r.local?e:await n();r.accountId=l,a(await s(`Loading`,async()=>c.stream.videos.captions.language.get({account_id:l,identifier:r.identifier,language:r.language})),{successLabel:`Loaded`})})};function _e(e){return e.usage(`$0 stream videos captions language upload <language>
53
+ Lists the captions or subtitles for provided language.`).positional(`language`,{type:`string`,description:`The language tag in BCP 47 format.`,demandOption:!0}).option(`identifier`,{type:`string`,description:`A Cloudflare-generated unique identifier for a media item.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const ge={command:`get <language>`,describe:`List captions or subtitles for a provided language`,builder:he,handler:async t=>c({command:`stream videos captions language get`,classification:{safeFlags:[`dry-run`]}},t,async()=>{if(t.dryRun){o({command:`cf stream videos captions language get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await r()??`<account-id>`}/stream/${t.identifier==null?`<identifier>`:encodeURIComponent(String(t.identifier))}/captions/${t.language==null?`<language>`:encodeURIComponent(String(t.language))}`,pathParams:{language:String(t.language??``),identifier:String(t.identifier??``)},bodyKind:`none`});return}let c=await n(t),l=t.local?e:await i();t.accountId=l,a(await s(`Loading`,async()=>c.stream.videos.captions.language.get({account_id:l,identifier:t.identifier,language:t.language})),{successLabel:`Loaded`})})};function _e(e){return e.usage(`$0 stream videos captions language upload <language>
54
54
 
55
- Uploads the caption or subtitle file to the endpoint for a specific BCP47 language. One caption or subtitle file per language is allowed.`).positional(`language`,{type:`string`,description:`The language tag in BCP 47 format.`,demandOption:!0}).option(`identifier`,{type:`string`,description:`A Cloudflare-generated unique identifier for a media item.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`}).option(`file`,{type:`string`,description:`Path to a file to upload as the request body`})}const ve={command:`upload <language>`,describe:`Upload captions or subtitles`,builder:_e,handler:async l=>c({command:`stream videos captions language upload`,classification:{safeFlags:[`dry-run`]}},l,async()=>{if(l.dryRun){o({command:`cf stream videos captions language upload`,method:`PUT`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/stream/${l.identifier==null?`<identifier>`:encodeURIComponent(String(l.identifier))}/captions/${l.language==null?`<language>`:encodeURIComponent(String(l.language))}`,pathParams:{language:String(l.language??``),identifier:String(l.identifier??``)},bodyKind:`multipart`,body:{body:l.body,file:l.file}});return}let c=await i(l),u=l.local?e:await n();if(l.accountId=u,l.file!==void 0||l.body!==void 0){let e=new FormData;if(l.file){let t=m(l.file);e.append(`file`,new Blob([t]),l.file.split(/[\\/]/).filter(Boolean).pop())}else l.body!==void 0&&e.append(`file`,l.body);a(await s(`Updating`,async()=>r(c,`PUT`,`/accounts/${u}/stream/${encodeURIComponent(String(l.identifier))}/captions/${encodeURIComponent(String(l.language))}`,{body:e})),{successLabel:`Updated`});return}if(l.body){let e=p(l.body,`body`,`binary`);a(await s(`Updating`,async()=>r(c,`PUT`,`/accounts/${u}/stream/${encodeURIComponent(String(l.identifier))}/captions/${encodeURIComponent(String(l.language))}`,{body:e,headers:{"Content-Type":`multipart/form-data`}})),{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.`)})};function ye(e){return e.usage(`$0 stream videos captions language vtt get <language>
55
+ Uploads the caption or subtitle file to the endpoint for a specific BCP47 language. One caption or subtitle file per language is allowed.`).positional(`language`,{type:`string`,description:`The language tag in BCP 47 format.`,demandOption:!0}).option(`identifier`,{type:`string`,description:`A Cloudflare-generated unique identifier for a media item.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`}).option(`file`,{type:`string`,description:`Path to a file to upload as the request body`})}const ve={command:`upload <language>`,describe:`Upload captions or subtitles`,builder:_e,handler:async l=>c({command:`stream videos captions language upload`,classification:{safeFlags:[`dry-run`]}},l,async()=>{if(l.dryRun){o({command:`cf stream videos captions language upload`,method:`PUT`,url:`https://api.cloudflare.com/client/v4/accounts/${await r()??`<account-id>`}/stream/${l.identifier==null?`<identifier>`:encodeURIComponent(String(l.identifier))}/captions/${l.language==null?`<language>`:encodeURIComponent(String(l.language))}`,pathParams:{language:String(l.language??``),identifier:String(l.identifier??``)},bodyKind:`multipart`,body:{body:l.body,file:l.file}});return}let c=await n(l),u=l.local?e:await i();if(l.accountId=u,l.file!==void 0||l.body!==void 0){let e=new FormData;if(l.file){let t=m(l.file);e.append(`file`,new Blob([t]),l.file.split(/[\\/]/).filter(Boolean).pop())}else l.body!==void 0&&e.append(`file`,l.body);a(await s(`Updating`,async()=>t(c,`PUT`,`/accounts/${u}/stream/${encodeURIComponent(String(l.identifier))}/captions/${encodeURIComponent(String(l.language))}`,{body:e})),{successLabel:`Updated`});return}if(l.body){let e=p(l.body,`body`,`binary`);a(await s(`Updating`,async()=>t(c,`PUT`,`/accounts/${u}/stream/${encodeURIComponent(String(l.identifier))}/captions/${encodeURIComponent(String(l.language))}`,{body:e,headers:{"Content-Type":`multipart/form-data`}})),{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.`)})};function ye(e){return e.usage(`$0 stream videos captions language vtt get <language>
56
56
 
57
- Return WebVTT captions for a provided language.`).positional(`language`,{type:`string`,description:`The language tag in BCP 47 format.`,demandOption:!0}).option(`identifier`,{type:`string`,description:`A Cloudflare-generated unique identifier for a media item.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const be={command:`get <language>`,describe:`Return WebVTT captions for a provided language`,builder:ye,handler:async r=>c({command:`stream videos captions language vtt get`,classification:{safeFlags:[`dry-run`]}},r,async()=>{if(r.dryRun){o({command:`cf stream videos captions language vtt get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/stream/${r.identifier==null?`<identifier>`:encodeURIComponent(String(r.identifier))}/captions/${r.language==null?`<language>`:encodeURIComponent(String(r.language))}/vtt`,pathParams:{language:String(r.language??``),identifier:String(r.identifier??``)},bodyKind:`none`});return}await i(r);let a=r.local?e:await n();r.accountId=a,te((await s(`Loading`,async()=>_(`/accounts/${a}/stream/${encodeURIComponent(String(r.identifier))}/captions/${encodeURIComponent(String(r.language))}/vtt`,{method:`GET`,local:r.local===!0,persistTo:r.persistTo}))).toString(`utf-8`))})},xe={command:`vtt`,describe:`Operations for videos.captions.language.vtt`,builder:e=>e.command(be).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},Se={command:`language`,describe:`Operations for videos.captions.language`,builder:e=>e.command(fe).command(me).command(ge).command(ve).command(xe).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function Ce(e){return e.usage(`$0 stream videos captions list
57
+ Return WebVTT captions for a provided language.`).positional(`language`,{type:`string`,description:`The language tag in BCP 47 format.`,demandOption:!0}).option(`identifier`,{type:`string`,description:`A Cloudflare-generated unique identifier for a media item.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const be={command:`get <language>`,describe:`Return WebVTT captions for a provided language`,builder:ye,handler:async t=>c({command:`stream videos captions language vtt get`,classification:{safeFlags:[`dry-run`]}},t,async()=>{if(t.dryRun){o({command:`cf stream videos captions language vtt get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await r()??`<account-id>`}/stream/${t.identifier==null?`<identifier>`:encodeURIComponent(String(t.identifier))}/captions/${t.language==null?`<language>`:encodeURIComponent(String(t.language))}/vtt`,pathParams:{language:String(t.language??``),identifier:String(t.identifier??``)},bodyKind:`none`});return}await n(t);let a=t.local?e:await i();t.accountId=a,te((await s(`Loading`,async()=>_(`/accounts/${a}/stream/${encodeURIComponent(String(t.identifier))}/captions/${encodeURIComponent(String(t.language))}/vtt`,{method:`GET`,local:t.local===!0,persistTo:t.persistTo}))).toString(`utf-8`))})},xe={command:`vtt`,describe:`Operations for videos.captions.language.vtt`,builder:e=>e.command(be).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},Se={command:`language`,describe:`Operations for videos.captions.language`,builder:e=>e.command(fe).command(me).command(ge).command(ve).command(xe).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function Ce(e){return e.usage(`$0 stream videos captions list
58
58
 
59
- Lists the available captions or subtitles for a specific video.`).option(`identifier`,{type:`string`,description:`A Cloudflare-generated unique identifier for a media item.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const we={command:`list`,describe:`List captions or subtitles`,builder:Ce,handler:async r=>c({command:`stream videos captions list`,classification:{safeFlags:[`dry-run`]}},r,async()=>{if(r.dryRun){o({command:`cf stream videos captions list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/stream/${r.identifier==null?`<identifier>`:encodeURIComponent(String(r.identifier))}/captions`,pathParams:{identifier:String(r.identifier??``)},bodyKind:`none`});return}let c=await i(r),l=r.local?e:await n();r.accountId=l,a(await s(`Loading`,async()=>c.stream.videos.captions.list({account_id:l,identifier:r.identifier})),{successLabel:`Loaded`})})},Te={command:`captions`,describe:`Operations for videos.captions`,builder:e=>e.command(we).command(Se).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function Ee(e){return e.usage(`$0 stream videos clip
59
+ Lists the available captions or subtitles for a specific video.`).option(`identifier`,{type:`string`,description:`A Cloudflare-generated unique identifier for a media item.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const we={command:`list`,describe:`List captions or subtitles`,builder:Ce,handler:async t=>c({command:`stream videos captions list`,classification:{safeFlags:[`dry-run`]}},t,async()=>{if(t.dryRun){o({command:`cf stream videos captions list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await r()??`<account-id>`}/stream/${t.identifier==null?`<identifier>`:encodeURIComponent(String(t.identifier))}/captions`,pathParams:{identifier:String(t.identifier??``)},bodyKind:`none`});return}let c=await n(t),l=t.local?e:await i();t.accountId=l,a(await s(`Loading`,async()=>c.stream.videos.captions.list({account_id:l,identifier:t.identifier})),{successLabel:`Loaded`})})},Te={command:`captions`,describe:`Operations for videos.captions`,builder:e=>e.command(we).command(Se).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function Ee(e){return e.usage(`$0 stream videos clip
60
60
 
61
- Clips a video based on the specified start and end times provided in seconds.`).option(`allowed-origins`,{type:`string`,array:!0,description:"Lists the origins allowed to display the video. Enter allowed origin domains in an array and use `*` for wildcard subdomains. Empty arrays allow the video to be viewed on any origin."}).option(`clipped-from-video-uid`,{type:`string`,description:`The unique video identifier (UID).`}).option(`creator`,{type:`string`,description:`A user-defined identifier for the media creator.`}).option(`end-time-seconds`,{type:`number`,description:`Specifies the end time for the video clip in seconds.`}).option(`input`,{type:`string`,description:`A video's URL. Preferred over 'url'.`}).option(`name`,{type:`string`,description:`A name for the video.`}).option(`require-signed-urls`,{type:`boolean`,description:"Indicates whether the video can be a accessed using the UID. When set to `true`, a signed token must be generated with a signing key to view the video.",default:!1}).option(`scheduled-deletion`,{type:`string`,description:"Indicates the date and time at which the video will be deleted. Omit the field to indicate no change, or include with a `null` value to remove an existing scheduled deletion. If specified, must be at least 30 days from upload time."}).option(`start-time-seconds`,{type:`number`,description:`Specifies the start time for the video clip in seconds.`}).option(`thumbnail-timestamp-pct`,{type:`number`,description:`The timestamp for a thumbnail image calculated as a percentage value of the video's duration. To convert from a second-wise timestamp to a percentage, divide the desired timestamp by the total duration of the video. If this value is not set, the default thumbnail image is taken from 0s of the video.`,default:0}).option(`url`,{type:`string`,description:`A video's URL (legacy field, use 'input' instead).`}).option(`watermark-uid`,{type:`string`,description:`The unique identifier for the watermark profile.`}).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 De={command:`clip`,describe:`Clip videos given a start and end time`,builder:Ee,handler:async r=>c({command:`stream videos clip`,classification:{safeFlags:[`require-signed-urls`,`dry-run`]}},r,async()=>{if(r.dryRun){o({command:`cf stream videos clip`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/stream/clip`,pathParams:{},bodyKind:`json`,body:r.body===void 0?f({allowedOrigins:r[`allowed-origins`],clippedFromVideoUID:p(r[`clipped-from-video-uid`],`clipped-from-video-uid`,`text`),creator:p(r.creator,`creator`,`text`),endTimeSeconds:r[`end-time-seconds`],input:p(r.input,`input`,`text`),name:p(r.name,`name`,`text`),requireSignedURLs:r[`require-signed-urls`],scheduledDeletion:p(r[`scheduled-deletion`],`scheduled-deletion`,`text`),startTimeSeconds:r[`start-time-seconds`],thumbnailTimestampPct:r[`thumbnail-timestamp-pct`],url:p(r.url,`url`,`text`),watermark:{uid:p(r[`watermark-uid`],`watermark-uid`,`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.stream.videos.clip({...e,account_id:l})),{successLabel:`Created`});return}if(r[`clipped-from-video-uid`]===void 0&&(r[`clipped-from-video-uid`]=await h(`clipped-from-video-uid`,`The unique video identifier (UID).`)),r[`end-time-seconds`]===void 0)throw Error(`--end-time-seconds is required (or pass --body with this field set).`);if(r[`start-time-seconds`]===void 0)throw Error(`--start-time-seconds is required (or pass --body with this field set).`);let d=f({allowedOrigins:r[`allowed-origins`],clippedFromVideoUID:p(r[`clipped-from-video-uid`],`clipped-from-video-uid`,`text`),creator:p(r.creator,`creator`,`text`),endTimeSeconds:r[`end-time-seconds`],input:p(r.input,`input`,`text`),name:p(r.name,`name`,`text`),requireSignedURLs:r[`require-signed-urls`],scheduledDeletion:p(r[`scheduled-deletion`],`scheduled-deletion`,`text`),startTimeSeconds:r[`start-time-seconds`],thumbnailTimestampPct:r[`thumbnail-timestamp-pct`],url:p(r.url,`url`,`text`),watermark:{uid:p(r[`watermark-uid`],`watermark-uid`,`text`)}});a(await s(`Creating`,async()=>c.stream.videos.clip({...d,account_id:l})),{successLabel:`Created`})})};function Oe(e){return e.usage(`$0 stream videos copy
61
+ Clips a video based on the specified start and end times provided in seconds.`).option(`allowed-origins`,{type:`string`,array:!0,description:"Lists the origins allowed to display the video. Enter allowed origin domains in an array and use `*` for wildcard subdomains. Empty arrays allow the video to be viewed on any origin."}).option(`clipped-from-video-uid`,{type:`string`,description:`The unique video identifier (UID).`}).option(`creator`,{type:`string`,description:`A user-defined identifier for the media creator.`}).option(`end-time-seconds`,{type:`number`,description:`Specifies the end time for the video clip in seconds.`}).option(`input`,{type:`string`,description:`A video's URL. Preferred over 'url'.`}).option(`name`,{type:`string`,description:`A name for the video.`}).option(`require-signed-urls`,{type:`boolean`,description:"Indicates whether the video can be a accessed using the UID. When set to `true`, a signed token must be generated with a signing key to view the video.",default:!1}).option(`scheduled-deletion`,{type:`string`,description:"Indicates the date and time at which the video will be deleted. Omit the field to indicate no change, or include with a `null` value to remove an existing scheduled deletion. If specified, must be at least 30 days from upload time."}).option(`start-time-seconds`,{type:`number`,description:`Specifies the start time for the video clip in seconds.`}).option(`thumbnail-timestamp-pct`,{type:`number`,description:`The timestamp for a thumbnail image calculated as a percentage value of the video's duration. To convert from a second-wise timestamp to a percentage, divide the desired timestamp by the total duration of the video. If this value is not set, the default thumbnail image is taken from 0s of the video.`,default:0}).option(`url`,{type:`string`,description:`A video's URL (legacy field, use 'input' instead).`}).option(`watermark-uid`,{type:`string`,description:`The unique identifier for the watermark profile.`}).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 De={command:`clip`,describe:`Clip videos given a start and end time`,builder:Ee,handler:async t=>c({command:`stream videos clip`,classification:{safeFlags:[`require-signed-urls`,`dry-run`]}},t,async()=>{if(t.dryRun){o({command:`cf stream videos clip`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${await r()??`<account-id>`}/stream/clip`,pathParams:{},bodyKind:`json`,body:t.body===void 0?f({allowedOrigins:t[`allowed-origins`],clippedFromVideoUID:p(t[`clipped-from-video-uid`],`clipped-from-video-uid`,`text`),creator:p(t.creator,`creator`,`text`),endTimeSeconds:t[`end-time-seconds`],input:p(t.input,`input`,`text`),name:p(t.name,`name`,`text`),requireSignedURLs:t[`require-signed-urls`],scheduledDeletion:p(t[`scheduled-deletion`],`scheduled-deletion`,`text`),startTimeSeconds:t[`start-time-seconds`],thumbnailTimestampPct:t[`thumbnail-timestamp-pct`],url:p(t.url,`url`,`text`),watermark:{uid:p(t[`watermark-uid`],`watermark-uid`,`text`)}}):u(t.body)});return}let c=await n(t),l=t.local?e:await i();if(t.accountId=l,t.body){let e=u(t.body);a(await s(`Creating`,async()=>c.stream.videos.clip({...e,account_id:l})),{successLabel:`Created`});return}if(t[`clipped-from-video-uid`]===void 0&&(t[`clipped-from-video-uid`]=await h(`clipped-from-video-uid`,`The unique video identifier (UID).`)),t[`end-time-seconds`]===void 0)throw Error(`--end-time-seconds is required (or pass --body with this field set).`);if(t[`start-time-seconds`]===void 0)throw Error(`--start-time-seconds is required (or pass --body with this field set).`);let d=f({allowedOrigins:t[`allowed-origins`],clippedFromVideoUID:p(t[`clipped-from-video-uid`],`clipped-from-video-uid`,`text`),creator:p(t.creator,`creator`,`text`),endTimeSeconds:t[`end-time-seconds`],input:p(t.input,`input`,`text`),name:p(t.name,`name`,`text`),requireSignedURLs:t[`require-signed-urls`],scheduledDeletion:p(t[`scheduled-deletion`],`scheduled-deletion`,`text`),startTimeSeconds:t[`start-time-seconds`],thumbnailTimestampPct:t[`thumbnail-timestamp-pct`],url:p(t.url,`url`,`text`),watermark:{uid:p(t[`watermark-uid`],`watermark-uid`,`text`)}});a(await s(`Creating`,async()=>c.stream.videos.clip({...d,account_id:l})),{successLabel:`Created`})})};function Oe(e){return e.usage(`$0 stream videos copy
62
62
 
63
- Uploads a video to Stream from a provided URL.`).option(`upload-creator`,{type:`string`,description:`A user-defined identifier for the media creator.`}).option(`allowed-origins`,{type:`string`,array:!0,description:"Lists the origins allowed to display the video. Enter allowed origin domains in an array and use `*` for wildcard subdomains. Empty arrays allow the video to be viewed on any origin."}).option(`creator`,{type:`string`,description:`A user-defined identifier for the media creator.`}).option(`input`,{type:`string`,description:"A video's URL. The server must be publicly routable and support `HTTP HEAD` requests and `HTTP GET` range requests. The server should respond to `HTTP HEAD` requests with a `content-range` header that includes the size of the file. This is the preferred field over `url`."}).option(`name`,{type:`string`,description:`A video's name. Used for legacy compatibility.`}).option(`require-signed-urls`,{type:`boolean`,description:"Indicates whether the video can be a accessed using the UID. When set to `true`, a signed token must be generated with a signing key to view the video.",default:!1}).option(`scheduled-deletion`,{type:`string`,description:"Indicates the date and time at which the video will be deleted. Omit the field to indicate no change, or include with a `null` value to remove an existing scheduled deletion. If specified, must be at least 30 days from upload time."}).option(`thumbnail-timestamp-pct`,{type:`number`,description:`The timestamp for a thumbnail image calculated as a percentage value of the video's duration. To convert from a second-wise timestamp to a percentage, divide the desired timestamp by the total duration of the video. If this value is not set, the default thumbnail image is taken from 0s of the video.`,default:0}).option(`url`,{type:`string`,description:"A video's URL. The server must be publicly routable and support `HTTP HEAD` requests and `HTTP GET` range requests. The server should respond to `HTTP HEAD` requests with a `content-range` header that includes the size of the file. This field is deprecated in favor of `input`."}).option(`watermark-uid`,{type:`string`,description:`The unique identifier for the watermark profile.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:"Copy upload request. Provide `input` (preferred) or `url` (deprecated)."})}const ke={command:`copy`,describe:`Upload videos from a URL`,builder:Oe,handler:async d=>c({command:`stream videos copy`,classification:{safeFlags:[`require-signed-urls`,`dry-run`]}},d,async()=>{let c={};if(d[`upload-creator`]!==void 0&&(c[`Upload-Creator`]=String(d[`upload-creator`])),d.dryRun){o({command:`cf stream videos copy`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/stream/copy`,pathParams:{},bodyKind:`json`,body:d.body===void 0?f({allowedOrigins:d[`allowed-origins`],creator:p(d.creator,`creator`,`text`),input:p(d.input,`input`,`text`),name:p(d.name,`name`,`text`),requireSignedURLs:d[`require-signed-urls`],scheduledDeletion:p(d[`scheduled-deletion`],`scheduled-deletion`,`text`),thumbnailTimestampPct:d[`thumbnail-timestamp-pct`],url:p(d.url,`url`,`text`),watermark:{uid:p(d[`watermark-uid`],`watermark-uid`,`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(`Creating`,async()=>r(m,`POST`,`/accounts/${h}/stream/copy`,{body:e,headers:Object.keys(c).length>0?c:void 0})),{successLabel:`Created`});return}let g={};d[`allowed-origins`]!==void 0&&l(g,[`allowedOrigins`],d[`allowed-origins`]),d.creator!==void 0&&l(g,[`creator`],p(d.creator,`creator`,`text`)),d.input!==void 0&&l(g,[`input`],p(d.input,`input`,`text`)),d.name!==void 0&&l(g,[`name`],p(d.name,`name`,`text`)),d[`require-signed-urls`]!==void 0&&l(g,[`requireSignedURLs`],d[`require-signed-urls`]),d[`scheduled-deletion`]!==void 0&&l(g,[`scheduledDeletion`],p(d[`scheduled-deletion`],`scheduled-deletion`,`text`)),d[`thumbnail-timestamp-pct`]!==void 0&&l(g,[`thumbnailTimestampPct`],d[`thumbnail-timestamp-pct`]),d.url!==void 0&&l(g,[`url`],p(d.url,`url`,`text`)),d[`watermark-uid`]!==void 0&&l(g,[`watermark`,`uid`],p(d[`watermark-uid`],`watermark-uid`,`text`)),a(await s(`Creating`,async()=>r(m,`POST`,`/accounts/${h}/stream/copy`,{body:Object.keys(g).length>0?g:void 0,headers:Object.keys(c).length>0?c:void 0})),{successLabel:`Created`})})};function Ae(e){return e.usage(`$0 stream videos create
63
+ Uploads a video to Stream from a provided URL.`).option(`upload-creator`,{type:`string`,description:`A user-defined identifier for the media creator.`}).option(`allowed-origins`,{type:`string`,array:!0,description:"Lists the origins allowed to display the video. Enter allowed origin domains in an array and use `*` for wildcard subdomains. Empty arrays allow the video to be viewed on any origin."}).option(`creator`,{type:`string`,description:`A user-defined identifier for the media creator.`}).option(`input`,{type:`string`,description:"A video's URL. The server must be publicly routable and support `HTTP HEAD` requests and `HTTP GET` range requests. The server should respond to `HTTP HEAD` requests with a `content-range` header that includes the size of the file. This is the preferred field over `url`."}).option(`name`,{type:`string`,description:`A video's name. Used for legacy compatibility.`}).option(`require-signed-urls`,{type:`boolean`,description:"Indicates whether the video can be a accessed using the UID. When set to `true`, a signed token must be generated with a signing key to view the video.",default:!1}).option(`scheduled-deletion`,{type:`string`,description:"Indicates the date and time at which the video will be deleted. Omit the field to indicate no change, or include with a `null` value to remove an existing scheduled deletion. If specified, must be at least 30 days from upload time."}).option(`thumbnail-timestamp-pct`,{type:`number`,description:`The timestamp for a thumbnail image calculated as a percentage value of the video's duration. To convert from a second-wise timestamp to a percentage, divide the desired timestamp by the total duration of the video. If this value is not set, the default thumbnail image is taken from 0s of the video.`,default:0}).option(`url`,{type:`string`,description:"A video's URL. The server must be publicly routable and support `HTTP HEAD` requests and `HTTP GET` range requests. The server should respond to `HTTP HEAD` requests with a `content-range` header that includes the size of the file. This field is deprecated in favor of `input`."}).option(`watermark-uid`,{type:`string`,description:`The unique identifier for the watermark profile.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:"Copy upload request. Provide `input` (preferred) or `url` (deprecated)."})}const ke={command:`copy`,describe:`Upload videos from a URL`,builder:Oe,handler:async d=>c({command:`stream videos copy`,classification:{safeFlags:[`require-signed-urls`,`dry-run`]}},d,async()=>{let c={};if(d[`upload-creator`]!==void 0&&(c[`Upload-Creator`]=String(d[`upload-creator`])),d.dryRun){o({command:`cf stream videos copy`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${await r()??`<account-id>`}/stream/copy`,pathParams:{},bodyKind:`json`,body:d.body===void 0?f({allowedOrigins:d[`allowed-origins`],creator:p(d.creator,`creator`,`text`),input:p(d.input,`input`,`text`),name:p(d.name,`name`,`text`),requireSignedURLs:d[`require-signed-urls`],scheduledDeletion:p(d[`scheduled-deletion`],`scheduled-deletion`,`text`),thumbnailTimestampPct:d[`thumbnail-timestamp-pct`],url:p(d.url,`url`,`text`),watermark:{uid:p(d[`watermark-uid`],`watermark-uid`,`text`)}}):u(d.body)});return}let m=await n(d),h=d.local?e:await i();if(d.accountId=h,d.body){let e=u(d.body);a(await s(`Creating`,async()=>t(m,`POST`,`/accounts/${h}/stream/copy`,{body:e,headers:Object.keys(c).length>0?c:void 0})),{successLabel:`Created`});return}let g={};d[`allowed-origins`]!==void 0&&l(g,[`allowedOrigins`],d[`allowed-origins`]),d.creator!==void 0&&l(g,[`creator`],p(d.creator,`creator`,`text`)),d.input!==void 0&&l(g,[`input`],p(d.input,`input`,`text`)),d.name!==void 0&&l(g,[`name`],p(d.name,`name`,`text`)),d[`require-signed-urls`]!==void 0&&l(g,[`requireSignedURLs`],d[`require-signed-urls`]),d[`scheduled-deletion`]!==void 0&&l(g,[`scheduledDeletion`],p(d[`scheduled-deletion`],`scheduled-deletion`,`text`)),d[`thumbnail-timestamp-pct`]!==void 0&&l(g,[`thumbnailTimestampPct`],d[`thumbnail-timestamp-pct`]),d.url!==void 0&&l(g,[`url`],p(d.url,`url`,`text`)),d[`watermark-uid`]!==void 0&&l(g,[`watermark`,`uid`],p(d[`watermark-uid`],`watermark-uid`,`text`)),a(await s(`Creating`,async()=>t(m,`POST`,`/accounts/${h}/stream/copy`,{body:Object.keys(g).length>0?g:void 0,headers:Object.keys(c).length>0?c:void 0})),{successLabel:`Created`})})};function Ae(e){return e.usage(`$0 stream videos create
64
64
 
65
65
  Initiates a video upload using the TUS protocol. On success, the server responds with a status code 201 (created) and includes a \`location\` header to indicate where the content should be uploaded. Refer to https://tus.io for protocol details.`).option(`direct-user`,{type:`boolean`,description:`Provisions a URL to let your end users upload videos directly to Cloudflare Stream without exposing your API token to clients.`}).option(`tus-resumable`,{type:`string`,description:`Specifies the TUS protocol version. This value must be included in every upload request.
66
- Notes: The only supported version of TUS protocol is 1.0.0.`,demandOption:!0}).option(`upload-creator`,{type:`string`,description:`A user-defined identifier for the media creator.`}).option(`upload-length`,{type:`string`,description:`Indicates the size of the entire upload in bytes. The value must be a non-negative integer.`,demandOption:!0}).option(`upload-metadata`,{type:`string`,description:"Comma-separated key-value pairs following the TUS protocol specification. Values are Base-64 encoded.\nSupported keys: `name`, `requiresignedurls`, `allowedorigins`, `thumbnailtimestamppct`, `watermark`, `scheduleddeletion`, `maxdurationseconds`."}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const je={command:`create`,describe:`Initiate video uploads using TUS`,builder:Ae,handler:async l=>c({command:`stream videos create`,classification:{safeFlags:[`direct-user`,`dry-run`]}},l,async()=>{let c={direct_user:l[`direct-user`]},u={};if(l[`tus-resumable`]!==void 0&&(u[`Tus-Resumable`]=String(l[`tus-resumable`])),l[`upload-creator`]!==void 0&&(u[`Upload-Creator`]=String(l[`upload-creator`])),l[`upload-length`]!==void 0&&(u[`Upload-Length`]=String(l[`upload-length`])),l[`upload-metadata`]!==void 0&&(u[`Upload-Metadata`]=String(l[`upload-metadata`])),l.dryRun){o({command:`cf stream videos create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/stream`,pathParams:{},query:c,bodyKind:`none`});return}let d=await i(l),f=l.local?e:await n();l.accountId=f,a(await s(`Creating`,async()=>r(d,`POST`,`/accounts/${f}/stream`,{query:c,headers:Object.keys(u).length>0?u:void 0})),{successLabel:`Created`})})};function Me(e){return e.usage(`$0 stream videos delete <identifier>
66
+ Notes: The only supported version of TUS protocol is 1.0.0.`,demandOption:!0}).option(`upload-creator`,{type:`string`,description:`A user-defined identifier for the media creator.`}).option(`upload-length`,{type:`string`,description:`Indicates the size of the entire upload in bytes. The value must be a non-negative integer.`,demandOption:!0}).option(`upload-metadata`,{type:`string`,description:"Comma-separated key-value pairs following the TUS protocol specification. Values are Base-64 encoded.\nSupported keys: `name`, `requiresignedurls`, `allowedorigins`, `thumbnailtimestamppct`, `watermark`, `scheduleddeletion`, `maxdurationseconds`."}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const je={command:`create`,describe:`Initiate video uploads using TUS`,builder:Ae,handler:async l=>c({command:`stream videos create`,classification:{safeFlags:[`direct-user`,`dry-run`]}},l,async()=>{let c={direct_user:l[`direct-user`]},u={};if(l[`tus-resumable`]!==void 0&&(u[`Tus-Resumable`]=String(l[`tus-resumable`])),l[`upload-creator`]!==void 0&&(u[`Upload-Creator`]=String(l[`upload-creator`])),l[`upload-length`]!==void 0&&(u[`Upload-Length`]=String(l[`upload-length`])),l[`upload-metadata`]!==void 0&&(u[`Upload-Metadata`]=String(l[`upload-metadata`])),l.dryRun){o({command:`cf stream videos create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${await r()??`<account-id>`}/stream`,pathParams:{},query:c,bodyKind:`none`});return}let d=await n(l),f=l.local?e:await i();l.accountId=f,a(await s(`Creating`,async()=>t(d,`POST`,`/accounts/${f}/stream`,{query:c,headers:Object.keys(u).length>0?u:void 0})),{successLabel:`Created`})})};function Me(e){return e.usage(`$0 stream videos delete <identifier>
67
67
 
68
- Deletes a video and its copies from Cloudflare Stream.`).positional(`identifier`,{type:`string`,description:`A Cloudflare-generated unique identifier for a media item.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`force`,{type:`boolean`,alias:`f`,description:`Skip confirmation (useful in scripts and CI)`,default:!1})}const Ne={command:`delete <identifier>`,describe:`Delete video`,builder:Me,handler:async r=>c({command:`stream videos delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},r,async()=>{if(r.dryRun){o({command:`cf stream videos delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/stream/${r.identifier==null?`<identifier>`:encodeURIComponent(String(r.identifier))}`,pathParams:{identifier:String(r.identifier??``)},bodyKind:`none`});return}let c=await i(r),l=r.local?e:await n();if(r.accountId=l,!await g({force:!!r.force,message:`Permanently delete this video?`})){process.stderr.write(`Aborted.
69
- `);return}a(await s(`Deleting`,async()=>c.stream.videos.delete({account_id:l,identifier:r.identifier})),{successLabel:`Deleted`})})};function Pe(e){return e.usage(`$0 stream videos direct-upload create
68
+ Deletes a video and its copies from Cloudflare Stream.`).positional(`identifier`,{type:`string`,description:`A Cloudflare-generated unique identifier for a media item.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`force`,{type:`boolean`,alias:`f`,description:`Skip confirmation (useful in scripts and CI)`,default:!1})}const Ne={command:`delete <identifier>`,describe:`Delete video`,builder:Me,handler:async t=>c({command:`stream videos delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},t,async()=>{if(t.dryRun){o({command:`cf stream videos delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${await r()??`<account-id>`}/stream/${t.identifier==null?`<identifier>`:encodeURIComponent(String(t.identifier))}`,pathParams:{identifier:String(t.identifier??``)},bodyKind:`none`});return}let c=await n(t),l=t.local?e:await i();if(t.accountId=l,!await g({force:!!t.force,message:`Permanently delete this video?`})){process.stderr.write(`Aborted.
69
+ `);return}a(await s(`Deleting`,async()=>c.stream.videos.delete({account_id:l,identifier:t.identifier})),{successLabel:`Deleted`})})};function Pe(e){return e.usage(`$0 stream videos direct-upload create
70
70
 
71
- Creates a direct upload endpoint that allows an end-user to upload a video without an API key.`).option(`upload-creator`,{type:`string`,description:`A user-defined identifier for the media creator.`}).option(`allowed-origins`,{type:`string`,array:!0,description:"Lists the origins allowed to display the video. Enter allowed origin domains in an array and use `*` for wildcard subdomains. Empty arrays allow the video to be viewed on any origin."}).option(`creator`,{type:`string`,description:`A user-defined identifier for the media creator.`}).option(`expiry`,{type:`string`,description:`The date and time after upload when videos will not be accepted.`,default:`Now + 30 minutes`}).option(`max-duration-seconds`,{type:`number`,description:"The maximum duration in seconds for a video upload. Can be set for a video that is not yet uploaded to limit its duration. Uploads that exceed the specified duration will fail during processing. A value of `-1` means the value is unknown."}).option(`require-signed-urls`,{type:`boolean`,description:"Indicates whether the video can be a accessed using the UID. When set to `true`, a signed token must be generated with a signing key to view the video.",default:!1}).option(`scheduled-deletion`,{type:`string`,description:"Indicates the date and time at which the video will be deleted. Omit the field to indicate no change, or include with a `null` value to remove an existing scheduled deletion. If specified, must be at least 30 days from upload time."}).option(`thumbnail-timestamp-pct`,{type:`number`,description:`The timestamp for a thumbnail image calculated as a percentage value of the video's duration. To convert from a second-wise timestamp to a percentage, divide the desired timestamp by the total duration of the video. If this value is not set, the default thumbnail image is taken from 0s of the video.`,default:0}).option(`watermark-uid`,{type:`string`,description:`The unique identifier for the watermark profile.`}).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 Fe={command:`create`,describe:`Upload videos via direct upload URLs`,builder:Pe,handler:async d=>c({command:`stream videos direct-upload create`,classification:{safeFlags:[`require-signed-urls`,`dry-run`]}},d,async()=>{let c={};if(d[`upload-creator`]!==void 0&&(c[`Upload-Creator`]=String(d[`upload-creator`])),d.dryRun){o({command:`cf stream videos direct-upload create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/stream/direct_upload`,pathParams:{},bodyKind:`json`,body:d.body===void 0?f({allowedOrigins:d[`allowed-origins`],creator:p(d.creator,`creator`,`text`),expiry:p(d.expiry,`expiry`,`text`),maxDurationSeconds:d[`max-duration-seconds`],requireSignedURLs:d[`require-signed-urls`],scheduledDeletion:p(d[`scheduled-deletion`],`scheduled-deletion`,`text`),thumbnailTimestampPct:d[`thumbnail-timestamp-pct`],watermark:{uid:p(d[`watermark-uid`],`watermark-uid`,`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(`Creating`,async()=>r(m,`POST`,`/accounts/${h}/stream/direct_upload`,{body:e,headers:Object.keys(c).length>0?c:void 0})),{successLabel:`Created`});return}if(d[`max-duration-seconds`]===void 0)throw Error(`--max-duration-seconds is required (or pass --body with this field set).`);let g={};d[`allowed-origins`]!==void 0&&l(g,[`allowedOrigins`],d[`allowed-origins`]),d.creator!==void 0&&l(g,[`creator`],p(d.creator,`creator`,`text`)),d.expiry!==void 0&&l(g,[`expiry`],p(d.expiry,`expiry`,`text`)),d[`max-duration-seconds`]!==void 0&&l(g,[`maxDurationSeconds`],d[`max-duration-seconds`]),d[`require-signed-urls`]!==void 0&&l(g,[`requireSignedURLs`],d[`require-signed-urls`]),d[`scheduled-deletion`]!==void 0&&l(g,[`scheduledDeletion`],p(d[`scheduled-deletion`],`scheduled-deletion`,`text`)),d[`thumbnail-timestamp-pct`]!==void 0&&l(g,[`thumbnailTimestampPct`],d[`thumbnail-timestamp-pct`]),d[`watermark-uid`]!==void 0&&l(g,[`watermark`,`uid`],p(d[`watermark-uid`],`watermark-uid`,`text`)),a(await s(`Creating`,async()=>r(m,`POST`,`/accounts/${h}/stream/direct_upload`,{body:Object.keys(g).length>0?g:void 0,headers:Object.keys(c).length>0?c:void 0})),{successLabel:`Created`})})},Ie={command:`direct-upload`,describe:`Operations for videos.direct-upload`,builder:e=>e.command(Fe).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function Le(e){return e.usage(`$0 stream videos downloads create <download-type>
71
+ Creates a direct upload endpoint that allows an end-user to upload a video without an API key.`).option(`upload-creator`,{type:`string`,description:`A user-defined identifier for the media creator.`}).option(`allowed-origins`,{type:`string`,array:!0,description:"Lists the origins allowed to display the video. Enter allowed origin domains in an array and use `*` for wildcard subdomains. Empty arrays allow the video to be viewed on any origin."}).option(`creator`,{type:`string`,description:`A user-defined identifier for the media creator.`}).option(`expiry`,{type:`string`,description:`The date and time after upload when videos will not be accepted.`,default:`Now + 30 minutes`}).option(`max-duration-seconds`,{type:`number`,description:"The maximum duration in seconds for a video upload. Can be set for a video that is not yet uploaded to limit its duration. Uploads that exceed the specified duration will fail during processing. A value of `-1` means the value is unknown."}).option(`require-signed-urls`,{type:`boolean`,description:"Indicates whether the video can be a accessed using the UID. When set to `true`, a signed token must be generated with a signing key to view the video.",default:!1}).option(`scheduled-deletion`,{type:`string`,description:"Indicates the date and time at which the video will be deleted. Omit the field to indicate no change, or include with a `null` value to remove an existing scheduled deletion. If specified, must be at least 30 days from upload time."}).option(`thumbnail-timestamp-pct`,{type:`number`,description:`The timestamp for a thumbnail image calculated as a percentage value of the video's duration. To convert from a second-wise timestamp to a percentage, divide the desired timestamp by the total duration of the video. If this value is not set, the default thumbnail image is taken from 0s of the video.`,default:0}).option(`watermark-uid`,{type:`string`,description:`The unique identifier for the watermark profile.`}).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 Fe={command:`create`,describe:`Upload videos via direct upload URLs`,builder:Pe,handler:async d=>c({command:`stream videos direct-upload create`,classification:{safeFlags:[`require-signed-urls`,`dry-run`]}},d,async()=>{let c={};if(d[`upload-creator`]!==void 0&&(c[`Upload-Creator`]=String(d[`upload-creator`])),d.dryRun){o({command:`cf stream videos direct-upload create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${await r()??`<account-id>`}/stream/direct_upload`,pathParams:{},bodyKind:`json`,body:d.body===void 0?f({allowedOrigins:d[`allowed-origins`],creator:p(d.creator,`creator`,`text`),expiry:p(d.expiry,`expiry`,`text`),maxDurationSeconds:d[`max-duration-seconds`],requireSignedURLs:d[`require-signed-urls`],scheduledDeletion:p(d[`scheduled-deletion`],`scheduled-deletion`,`text`),thumbnailTimestampPct:d[`thumbnail-timestamp-pct`],watermark:{uid:p(d[`watermark-uid`],`watermark-uid`,`text`)}}):u(d.body)});return}let m=await n(d),h=d.local?e:await i();if(d.accountId=h,d.body){let e=u(d.body);a(await s(`Creating`,async()=>t(m,`POST`,`/accounts/${h}/stream/direct_upload`,{body:e,headers:Object.keys(c).length>0?c:void 0})),{successLabel:`Created`});return}if(d[`max-duration-seconds`]===void 0)throw Error(`--max-duration-seconds is required (or pass --body with this field set).`);let g={};d[`allowed-origins`]!==void 0&&l(g,[`allowedOrigins`],d[`allowed-origins`]),d.creator!==void 0&&l(g,[`creator`],p(d.creator,`creator`,`text`)),d.expiry!==void 0&&l(g,[`expiry`],p(d.expiry,`expiry`,`text`)),d[`max-duration-seconds`]!==void 0&&l(g,[`maxDurationSeconds`],d[`max-duration-seconds`]),d[`require-signed-urls`]!==void 0&&l(g,[`requireSignedURLs`],d[`require-signed-urls`]),d[`scheduled-deletion`]!==void 0&&l(g,[`scheduledDeletion`],p(d[`scheduled-deletion`],`scheduled-deletion`,`text`)),d[`thumbnail-timestamp-pct`]!==void 0&&l(g,[`thumbnailTimestampPct`],d[`thumbnail-timestamp-pct`]),d[`watermark-uid`]!==void 0&&l(g,[`watermark`,`uid`],p(d[`watermark-uid`],`watermark-uid`,`text`)),a(await s(`Creating`,async()=>t(m,`POST`,`/accounts/${h}/stream/direct_upload`,{body:Object.keys(g).length>0?g:void 0,headers:Object.keys(c).length>0?c:void 0})),{successLabel:`Created`})})},Ie={command:`direct-upload`,describe:`Operations for videos.direct-upload`,builder:e=>e.command(Fe).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function Le(e){return e.usage(`$0 stream videos downloads create <download-type>
72
72
 
73
- Creates a download for a video of specified type. For backwards-compatibility, POST requests to /downloads will enable the default download.`).positional(`download-type`,{type:`string`,description:"The type of downloads available are: `default`, `audio`.",demandOption:!0}).option(`identifier`,{type:`string`,description:`A Cloudflare-generated unique identifier for a media item.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const Re={command:`create <download-type>`,describe:`Create download`,builder:Le,handler:async r=>c({command:`stream videos downloads create`,classification:{safeFlags:[`dry-run`]}},r,async()=>{if(r.dryRun){o({command:`cf stream videos downloads create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/stream/${r.identifier==null?`<identifier>`:encodeURIComponent(String(r.identifier))}/downloads/${r[`download-type`]==null?`<download-type>`:encodeURIComponent(String(r[`download-type`]))}`,pathParams:{identifier:String(r.identifier??``),"download-type":String(r[`download-type`]??``)},bodyKind:`none`});return}let c=await i(r),l=r.local?e:await n();r.accountId=l,a(await s(`Creating`,async()=>c.stream.videos.downloads.create({account_id:l,identifier:r.identifier,download_type:r[`download-type`]})),{successLabel:`Created`})})};function ze(e){return e.usage(`$0 stream videos downloads delete <download-type>
73
+ Creates a download for a video of specified type. For backwards-compatibility, POST requests to /downloads will enable the default download.`).positional(`download-type`,{type:`string`,description:"The type of downloads available are: `default`, `audio`.",demandOption:!0}).option(`identifier`,{type:`string`,description:`A Cloudflare-generated unique identifier for a media item.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const Re={command:`create <download-type>`,describe:`Create download`,builder:Le,handler:async t=>c({command:`stream videos downloads create`,classification:{safeFlags:[`dry-run`]}},t,async()=>{if(t.dryRun){o({command:`cf stream videos downloads create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${await r()??`<account-id>`}/stream/${t.identifier==null?`<identifier>`:encodeURIComponent(String(t.identifier))}/downloads/${t[`download-type`]==null?`<download-type>`:encodeURIComponent(String(t[`download-type`]))}`,pathParams:{identifier:String(t.identifier??``),"download-type":String(t[`download-type`]??``)},bodyKind:`none`});return}let c=await n(t),l=t.local?e:await i();t.accountId=l,a(await s(`Creating`,async()=>c.stream.videos.downloads.create({account_id:l,identifier:t.identifier,download_type:t[`download-type`]})),{successLabel:`Created`})})};function ze(e){return e.usage(`$0 stream videos downloads delete <download-type>
74
74
 
75
- Delete specific type of download. For backwards-compatibility, DELETE requests to /downloads will delete the default download.`).positional(`download-type`,{type:`string`,description:"The type of downloads available are: `default`, `audio`.",demandOption:!0}).option(`identifier`,{type:`string`,description:`A Cloudflare-generated unique identifier for a media item.`,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 Be={command:`delete <download-type>`,describe:`Delete download`,builder:ze,handler:async r=>c({command:`stream videos downloads delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},r,async()=>{if(r.dryRun){o({command:`cf stream videos downloads delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/stream/${r.identifier==null?`<identifier>`:encodeURIComponent(String(r.identifier))}/downloads/${r[`download-type`]==null?`<download-type>`:encodeURIComponent(String(r[`download-type`]))}`,pathParams:{identifier:String(r.identifier??``),"download-type":String(r[`download-type`]??``)},bodyKind:`none`});return}let c=await i(r),l=r.local?e:await n();if(r.accountId=l,!await g({force:!!r.force,message:`Remove this download? It will need to be regenerated for future use.`})){process.stderr.write(`Aborted.
76
- `);return}a(await s(`Deleting`,async()=>c.stream.videos.downloads.delete({account_id:l,identifier:r.identifier,download_type:r[`download-type`]})),{successLabel:`Deleted`})})},Ve={command:`downloads`,describe:`Operations for videos.downloads`,builder:e=>e.command(Re).command(Be).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function He(e){return e.usage(`$0 stream videos edit <identifier>
75
+ Delete specific type of download. For backwards-compatibility, DELETE requests to /downloads will delete the default download.`).positional(`download-type`,{type:`string`,description:"The type of downloads available are: `default`, `audio`.",demandOption:!0}).option(`identifier`,{type:`string`,description:`A Cloudflare-generated unique identifier for a media item.`,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 Be={command:`delete <download-type>`,describe:`Delete download`,builder:ze,handler:async t=>c({command:`stream videos downloads delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},t,async()=>{if(t.dryRun){o({command:`cf stream videos downloads delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${await r()??`<account-id>`}/stream/${t.identifier==null?`<identifier>`:encodeURIComponent(String(t.identifier))}/downloads/${t[`download-type`]==null?`<download-type>`:encodeURIComponent(String(t[`download-type`]))}`,pathParams:{identifier:String(t.identifier??``),"download-type":String(t[`download-type`]??``)},bodyKind:`none`});return}let c=await n(t),l=t.local?e:await i();if(t.accountId=l,!await g({force:!!t.force,message:`Remove this download? It will need to be regenerated for future use.`})){process.stderr.write(`Aborted.
76
+ `);return}a(await s(`Deleting`,async()=>c.stream.videos.downloads.delete({account_id:l,identifier:t.identifier,download_type:t[`download-type`]})),{successLabel:`Deleted`})})},Ve={command:`downloads`,describe:`Operations for videos.downloads`,builder:e=>e.command(Re).command(Be).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function He(e){return e.usage(`$0 stream videos edit <identifier>
77
77
 
78
- Edit details for a single video.`).positional(`identifier`,{type:`string`,description:`A Cloudflare-generated unique identifier for a media item.`,demandOption:!0}).option(`allowed-origins`,{type:`string`,array:!0,description:"Lists the origins allowed to display the video. Enter allowed origin domains in an array and use `*` for wildcard subdomains. Empty arrays allow the video to be viewed on any origin."}).option(`creator`,{type:`string`,description:`A user-defined identifier for the media creator.`}).option(`max-duration-seconds`,{type:`number`,description:"The maximum duration in seconds for a video upload. Can be set for a video that is not yet uploaded to limit its duration. Uploads that exceed the specified duration will fail during processing. A value of `-1` means the value is unknown."}).option(`public-details-channel-link`,{type:`string`,description:`The publicDetails.channel_link field`}).option(`public-details-logo`,{type:`string`,description:`The publicDetails.logo field`}).option(`public-details-share-link`,{type:`string`,description:`The publicDetails.share_link field`}).option(`public-details-title`,{type:`string`,description:`The publicDetails.title field`}).option(`require-signed-urls`,{type:`boolean`,description:"Indicates whether the video can be a accessed using the UID. When set to `true`, a signed token must be generated with a signing key to view the video.",default:!1}).option(`scheduled-deletion`,{type:`string`,description:"Indicates the date and time at which the video will be deleted. Omit the field to indicate no change, or include with a `null` value to remove an existing scheduled deletion. If specified, must be at least 30 days from upload time."}).option(`thumbnail-timestamp-pct`,{type:`number`,description:`The timestamp for a thumbnail image calculated as a percentage value of the video's duration. To convert from a second-wise timestamp to a percentage, divide the desired timestamp by the total duration of the video. If this value is not set, the default thumbnail image is taken from 0s of the video.`,default:0}).option(`uid`,{type:`string`,description:`The unique identifier for the video. Can be used to verify the video being updated.`}).option(`upload-expiry`,{type:`string`,description:`The date and time when the video upload URL is no longer valid for direct user uploads.`}).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 Ue={command:`edit <identifier>`,describe:`Edit video details`,builder:He,handler:async r=>c({command:`stream videos edit`,classification:{safeFlags:[`require-signed-urls`,`dry-run`]}},r,async()=>{if(r.dryRun){o({command:`cf stream videos edit`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/stream/${r.identifier==null?`<identifier>`:encodeURIComponent(String(r.identifier))}`,pathParams:{identifier:String(r.identifier??``)},bodyKind:`json`,body:r.body===void 0?f({allowedOrigins:r[`allowed-origins`],creator:p(r.creator,`creator`,`text`),maxDurationSeconds:r[`max-duration-seconds`],publicDetails:{channel_link:p(r[`public-details-channel-link`],`public-details-channel-link`,`text`),logo:p(r[`public-details-logo`],`public-details-logo`,`text`),share_link:p(r[`public-details-share-link`],`public-details-share-link`,`text`),title:p(r[`public-details-title`],`public-details-title`,`text`)},requireSignedURLs:r[`require-signed-urls`],scheduledDeletion:p(r[`scheduled-deletion`],`scheduled-deletion`,`text`),thumbnailTimestampPct:r[`thumbnail-timestamp-pct`],uid:p(r.uid,`uid`,`text`),uploadExpiry:p(r[`upload-expiry`],`upload-expiry`,`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.stream.videos.edit({...e,account_id:l,identifier:r.identifier})),{successLabel:`Created`});return}let d=f({allowedOrigins:r[`allowed-origins`],creator:p(r.creator,`creator`,`text`),maxDurationSeconds:r[`max-duration-seconds`],publicDetails:{channel_link:p(r[`public-details-channel-link`],`public-details-channel-link`,`text`),logo:p(r[`public-details-logo`],`public-details-logo`,`text`),share_link:p(r[`public-details-share-link`],`public-details-share-link`,`text`),title:p(r[`public-details-title`],`public-details-title`,`text`)},requireSignedURLs:r[`require-signed-urls`],scheduledDeletion:p(r[`scheduled-deletion`],`scheduled-deletion`,`text`),thumbnailTimestampPct:r[`thumbnail-timestamp-pct`],uid:p(r.uid,`uid`,`text`),uploadExpiry:p(r[`upload-expiry`],`upload-expiry`,`text`)});a(await s(`Creating`,async()=>c.stream.videos.edit({...d,account_id:l,identifier:r.identifier})),{successLabel:`Created`})})};function We(e){return e.usage(`$0 stream videos get <identifier>
78
+ Edit details for a single video.`).positional(`identifier`,{type:`string`,description:`A Cloudflare-generated unique identifier for a media item.`,demandOption:!0}).option(`allowed-origins`,{type:`string`,array:!0,description:"Lists the origins allowed to display the video. Enter allowed origin domains in an array and use `*` for wildcard subdomains. Empty arrays allow the video to be viewed on any origin."}).option(`creator`,{type:`string`,description:`A user-defined identifier for the media creator.`}).option(`max-duration-seconds`,{type:`number`,description:"The maximum duration in seconds for a video upload. Can be set for a video that is not yet uploaded to limit its duration. Uploads that exceed the specified duration will fail during processing. A value of `-1` means the value is unknown."}).option(`public-details-channel-link`,{type:`string`,description:`The publicDetails.channel_link field`}).option(`public-details-logo`,{type:`string`,description:`The publicDetails.logo field`}).option(`public-details-share-link`,{type:`string`,description:`The publicDetails.share_link field`}).option(`public-details-title`,{type:`string`,description:`The publicDetails.title field`}).option(`require-signed-urls`,{type:`boolean`,description:"Indicates whether the video can be a accessed using the UID. When set to `true`, a signed token must be generated with a signing key to view the video.",default:!1}).option(`scheduled-deletion`,{type:`string`,description:"Indicates the date and time at which the video will be deleted. Omit the field to indicate no change, or include with a `null` value to remove an existing scheduled deletion. If specified, must be at least 30 days from upload time."}).option(`thumbnail-timestamp-pct`,{type:`number`,description:`The timestamp for a thumbnail image calculated as a percentage value of the video's duration. To convert from a second-wise timestamp to a percentage, divide the desired timestamp by the total duration of the video. If this value is not set, the default thumbnail image is taken from 0s of the video.`,default:0}).option(`uid`,{type:`string`,description:`The unique identifier for the video. Can be used to verify the video being updated.`}).option(`upload-expiry`,{type:`string`,description:`The date and time when the video upload URL is no longer valid for direct user uploads.`}).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 Ue={command:`edit <identifier>`,describe:`Edit video details`,builder:He,handler:async t=>c({command:`stream videos edit`,classification:{safeFlags:[`require-signed-urls`,`dry-run`]}},t,async()=>{if(t.dryRun){o({command:`cf stream videos edit`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${await r()??`<account-id>`}/stream/${t.identifier==null?`<identifier>`:encodeURIComponent(String(t.identifier))}`,pathParams:{identifier:String(t.identifier??``)},bodyKind:`json`,body:t.body===void 0?f({allowedOrigins:t[`allowed-origins`],creator:p(t.creator,`creator`,`text`),maxDurationSeconds:t[`max-duration-seconds`],publicDetails:{channel_link:p(t[`public-details-channel-link`],`public-details-channel-link`,`text`),logo:p(t[`public-details-logo`],`public-details-logo`,`text`),share_link:p(t[`public-details-share-link`],`public-details-share-link`,`text`),title:p(t[`public-details-title`],`public-details-title`,`text`)},requireSignedURLs:t[`require-signed-urls`],scheduledDeletion:p(t[`scheduled-deletion`],`scheduled-deletion`,`text`),thumbnailTimestampPct:t[`thumbnail-timestamp-pct`],uid:p(t.uid,`uid`,`text`),uploadExpiry:p(t[`upload-expiry`],`upload-expiry`,`text`)}):u(t.body)});return}let c=await n(t),l=t.local?e:await i();if(t.accountId=l,t.body){let e=u(t.body);a(await s(`Creating`,async()=>c.stream.videos.edit({...e,account_id:l,identifier:t.identifier})),{successLabel:`Created`});return}let d=f({allowedOrigins:t[`allowed-origins`],creator:p(t.creator,`creator`,`text`),maxDurationSeconds:t[`max-duration-seconds`],publicDetails:{channel_link:p(t[`public-details-channel-link`],`public-details-channel-link`,`text`),logo:p(t[`public-details-logo`],`public-details-logo`,`text`),share_link:p(t[`public-details-share-link`],`public-details-share-link`,`text`),title:p(t[`public-details-title`],`public-details-title`,`text`)},requireSignedURLs:t[`require-signed-urls`],scheduledDeletion:p(t[`scheduled-deletion`],`scheduled-deletion`,`text`),thumbnailTimestampPct:t[`thumbnail-timestamp-pct`],uid:p(t.uid,`uid`,`text`),uploadExpiry:p(t[`upload-expiry`],`upload-expiry`,`text`)});a(await s(`Creating`,async()=>c.stream.videos.edit({...d,account_id:l,identifier:t.identifier})),{successLabel:`Created`})})};function We(e){return e.usage(`$0 stream videos get <identifier>
79
79
 
80
- Fetches details for a single video.`).positional(`identifier`,{type:`string`,description:`A Cloudflare-generated unique identifier for a media item.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const Ge={command:`get <identifier>`,describe:`Retrieve video details`,builder:We,handler:async r=>c({command:`stream videos get`,classification:{safeFlags:[`dry-run`]}},r,async()=>{if(r.dryRun){o({command:`cf stream videos get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/stream/${r.identifier==null?`<identifier>`:encodeURIComponent(String(r.identifier))}`,pathParams:{identifier:String(r.identifier??``)},bodyKind:`none`});return}let c=await i(r),l=r.local?e:await n();r.accountId=l,a(await s(`Loading`,async()=>c.stream.videos.get({account_id:l,identifier:r.identifier})),{successLabel:`Loaded`})})};function Ke(e){return e.usage(`$0 stream videos list
80
+ Fetches details for a single video.`).positional(`identifier`,{type:`string`,description:`A Cloudflare-generated unique identifier for a media item.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const Ge={command:`get <identifier>`,describe:`Retrieve video details`,builder:We,handler:async t=>c({command:`stream videos get`,classification:{safeFlags:[`dry-run`]}},t,async()=>{if(t.dryRun){o({command:`cf stream videos get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await r()??`<account-id>`}/stream/${t.identifier==null?`<identifier>`:encodeURIComponent(String(t.identifier))}`,pathParams:{identifier:String(t.identifier??``)},bodyKind:`none`});return}let c=await n(t),l=t.local?e:await i();t.accountId=l,a(await s(`Loading`,async()=>c.stream.videos.get({account_id:l,identifier:t.identifier})),{successLabel:`Loaded`})})};function Ke(e){return e.usage(`$0 stream videos list
81
81
 
82
- Lists up to 1000 videos from a single request. For a specific range, refer to the optional parameters.`).option(`status`,{type:`string`,description:`Specifies the processing status for all quality levels for a video.`,choices:[`pendingupload`,`downloading`,`queued`,`inprogress`,`ready`,`error`,`live-inprogress`]}).option(`creator`,{type:`string`,description:`A user-defined identifier for the media creator.`}).option(`type`,{type:`string`,description:"Specifies whether the video is `vod` or `live`."}).option(`asc`,{type:`boolean`,description:`Lists videos in ascending order of creation.`}).option(`video-name`,{type:`string`,description:"Provides a fast, exact string match on the `name` key in the `meta` field."}).option(`search`,{type:`string`,description:"Provides a partial word match of the `name` key in the `meta` field. Slow for medium to large video libraries. May be unavailable for very large libraries."}).option(`start`,{type:`string`,description:`Lists videos created after the specified date.`}).option(`end`,{type:`string`,description:`Lists videos created before the specified date.`}).option(`include-counts`,{type:`boolean`,description:`Includes the total number of videos associated with the submitted query parameters.`}).option(`id`,{type:`string`,description:`Filter by video ID(s). Can be a single ID or a comma-separated list of IDs.`}).option(`name`,{type:`string`,description:`Filter by video name/UID(s). Can be a single name or a comma-separated list.`}).option(`live-input-id`,{type:`string`,description:`Filter by live input ID to find videos associated with a specific live stream.`}).option(`before`,{type:`string`,description:`Alias for 'end'. Returns videos created before this date/time (RFC 3339 format).`}).option(`after`,{type:`string`,description:`Alias for 'start'. Returns videos created after this date/time (RFC 3339 format).`}).option(`limit`,{type:`number`,description:`Maximum number of videos to return (default 1000, max 1000).`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const qe={command:`list`,describe:`List videos`,builder:ee(Ke),handler:async r=>c({command:`stream videos list`,classification:{safeFlags:[`status`,`asc`,`include-counts`,`dry-run`]}},r,async()=>{let c={status:r.status,creator:r.creator,type:r.type,asc:r.asc,video_name:r[`video-name`],search:r.search,start:r.start,end:r.end,include_counts:r[`include-counts`],id:r.id,name:r.name,live_input_id:r[`live-input-id`],before:r.before,after:r.after,limit:r.limit};if(r.dryRun){o({command:`cf stream videos list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/stream`,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.stream.videos.list({account_id:u,...c})),{successLabel:`Loaded`})})};function Je(e){return e.usage(`$0 stream videos token create <identifier>
82
+ Lists up to 1000 videos from a single request. For a specific range, refer to the optional parameters.`).option(`status`,{type:`string`,description:`Specifies the processing status for all quality levels for a video.`,choices:[`pendingupload`,`downloading`,`queued`,`inprogress`,`ready`,`error`,`live-inprogress`]}).option(`creator`,{type:`string`,description:`A user-defined identifier for the media creator.`}).option(`type`,{type:`string`,description:"Specifies whether the video is `vod` or `live`."}).option(`asc`,{type:`boolean`,description:`Lists videos in ascending order of creation.`}).option(`video-name`,{type:`string`,description:"Provides a fast, exact string match on the `name` key in the `meta` field."}).option(`search`,{type:`string`,description:"Provides a partial word match of the `name` key in the `meta` field. Slow for medium to large video libraries. May be unavailable for very large libraries."}).option(`start`,{type:`string`,description:`Lists videos created after the specified date.`}).option(`end`,{type:`string`,description:`Lists videos created before the specified date.`}).option(`include-counts`,{type:`boolean`,description:`Includes the total number of videos associated with the submitted query parameters.`}).option(`id`,{type:`string`,description:`Filter by video ID(s). Can be a single ID or a comma-separated list of IDs.`}).option(`name`,{type:`string`,description:`Filter by video name/UID(s). Can be a single name or a comma-separated list.`}).option(`live-input-id`,{type:`string`,description:`Filter by live input ID to find videos associated with a specific live stream.`}).option(`before`,{type:`string`,description:`Alias for 'end'. Returns videos created before this date/time (RFC 3339 format).`}).option(`after`,{type:`string`,description:`Alias for 'start'. Returns videos created after this date/time (RFC 3339 format).`}).option(`limit`,{type:`number`,description:`Maximum number of videos to return (default 1000, max 1000).`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const qe={command:`list`,describe:`List videos`,builder:ee(Ke),handler:async t=>c({command:`stream videos list`,classification:{safeFlags:[`status`,`asc`,`include-counts`,`dry-run`]}},t,async()=>{let c={status:t.status,creator:t.creator,type:t.type,asc:t.asc,video_name:t[`video-name`],search:t.search,start:t.start,end:t.end,include_counts:t[`include-counts`],id:t.id,name:t.name,live_input_id:t[`live-input-id`],before:t.before,after:t.after,limit:t.limit};if(t.dryRun){o({command:`cf stream videos list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await r()??`<account-id>`}/stream`,pathParams:{},query:c,bodyKind:`none`});return}let l=await n(t),u=t.local?e:await i();t.accountId=u,a(await s(`Loading`,async()=>l.stream.videos.list({account_id:u,...c})),{successLabel:`Loaded`})})};function Je(e){return e.usage(`$0 stream videos token create <identifier>
83
83
 
84
- Creates a signed URL token for a video. If a body is not provided in the request, a token is created with default values.`).positional(`identifier`,{type:`string`,description:`A Cloudflare-generated unique identifier for a media item.`,demandOption:!0}).option(`access-rules`,{type:`string`,description:`The optional list of access rule constraints on the token. Access can be blocked or allowed based on an IP, IP range, or by country. Access rules are evaluated from first to last. If a rule matches, the associated action is applied and no further rules are evaluated. Provide as a JSON array of objects or @path/to/file.json.`}).option(`downloadable`,{type:`boolean`,description:`The optional boolean value that enables using signed tokens to access MP4 download links for a video.`,default:!1}).option(`exp`,{type:`number`,description:`The optional unix epoch timestamp that specficies the time after a token is not accepted. The maximum time specification is 24 hours from issuing time. If this field is not set, the default is one hour after issuing.`}).option(`flags-original`,{type:`boolean`,description:`Whether to return the original video without transformations.`}).option(`id`,{type:`string`,description:"The optional ID of a Stream signing key. If present, the `pem` field is also required."}).option(`nbf`,{type:`number`,description:`The optional unix epoch timestamp that specifies the time before a the token is not accepted. If this field is not set, the default is one hour before issuing.`}).option(`pem`,{type:`string`,description:"The optional base64 encoded private key in PEM format associated with a Stream signing key. If present, the `id` field is also required."}).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 Ye={command:`create <identifier>`,describe:`Create signed URL tokens for videos`,builder:Je,handler:async r=>c({command:`stream videos token create`,classification:{safeFlags:[`downloadable`,`flags-original`,`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},r,async()=>{if(r.dryRun){o({command:`cf stream videos token create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/stream/${r.identifier==null?`<identifier>`:encodeURIComponent(String(r.identifier))}/token`,pathParams:{identifier:String(r.identifier??``)},bodyKind:`json`,body:r.body===void 0?f({accessRules:d(r[`access-rules`],`access-rules`),downloadable:r.downloadable,exp:r.exp,flags:{original:r[`flags-original`]},id:p(r.id,`id`,`text`),nbf:r.nbf,pem:p(r.pem,`pem`,`text`)}):u(r.body)});return}let c=await i(r),l=r.local?e:await n();if(r.accountId=l,!await g({force:!!r.force,message:`Provision temporary token? For use at scale, consider creating a signing key instead.`})){process.stderr.write(`Aborted.
85
- `);return}if(r.body){let e=u(r.body);a(await s(`Deleting`,async()=>c.stream.videos.token.create({...e,account_id:l,identifier:r.identifier})),{successLabel:`Deleted`});return}let m=f({accessRules:d(r[`access-rules`],`access-rules`),downloadable:r.downloadable,exp:r.exp,flags:{original:r[`flags-original`]},id:p(r.id,`id`,`text`),nbf:r.nbf,pem:p(r.pem,`pem`,`text`)});a(await s(`Deleting`,async()=>c.stream.videos.token.create({...m,account_id:l,identifier:r.identifier})),{successLabel:`Deleted`})})},Xe={command:`token`,describe:`Operations for videos.token`,builder:e=>e.command(Ye).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},Ze={command:`videos`,describe:`Aggregate video storage usage statistics for the account`,builder:e=>e.command(De).command(ke).command(je).command(Ne).command(Ue).command(Ge).command(qe).command(ue).command(Te).command(Ie).command(Ve).command(Xe).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function Qe(e){return e.usage(`$0 stream watermarks create
84
+ Creates a signed URL token for a video. If a body is not provided in the request, a token is created with default values.`).positional(`identifier`,{type:`string`,description:`A Cloudflare-generated unique identifier for a media item.`,demandOption:!0}).option(`access-rules`,{type:`string`,description:`The optional list of access rule constraints on the token. Access can be blocked or allowed based on an IP, IP range, or by country. Access rules are evaluated from first to last. If a rule matches, the associated action is applied and no further rules are evaluated. Provide as a JSON array of objects or @path/to/file.json.`}).option(`downloadable`,{type:`boolean`,description:`The optional boolean value that enables using signed tokens to access MP4 download links for a video.`,default:!1}).option(`exp`,{type:`number`,description:`The optional unix epoch timestamp that specficies the time after a token is not accepted. The maximum time specification is 24 hours from issuing time. If this field is not set, the default is one hour after issuing.`}).option(`flags-original`,{type:`boolean`,description:`Whether to return the original video without transformations.`}).option(`id`,{type:`string`,description:"The optional ID of a Stream signing key. If present, the `pem` field is also required."}).option(`nbf`,{type:`number`,description:`The optional unix epoch timestamp that specifies the time before a the token is not accepted. If this field is not set, the default is one hour before issuing.`}).option(`pem`,{type:`string`,description:"The optional base64 encoded private key in PEM format associated with a Stream signing key. If present, the `id` field is also required."}).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 Ye={command:`create <identifier>`,describe:`Create signed URL tokens for videos`,builder:Je,handler:async t=>c({command:`stream videos token create`,classification:{safeFlags:[`downloadable`,`flags-original`,`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},t,async()=>{if(t.dryRun){o({command:`cf stream videos token create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${await r()??`<account-id>`}/stream/${t.identifier==null?`<identifier>`:encodeURIComponent(String(t.identifier))}/token`,pathParams:{identifier:String(t.identifier??``)},bodyKind:`json`,body:t.body===void 0?f({accessRules:d(t[`access-rules`],`access-rules`),downloadable:t.downloadable,exp:t.exp,flags:{original:t[`flags-original`]},id:p(t.id,`id`,`text`),nbf:t.nbf,pem:p(t.pem,`pem`,`text`)}):u(t.body)});return}let c=await n(t),l=t.local?e:await i();if(t.accountId=l,!await g({force:!!t.force,message:`Provision temporary token? For use at scale, consider creating a signing key instead.`})){process.stderr.write(`Aborted.
85
+ `);return}if(t.body){let e=u(t.body);a(await s(`Deleting`,async()=>c.stream.videos.token.create({...e,account_id:l,identifier:t.identifier})),{successLabel:`Deleted`});return}let m=f({accessRules:d(t[`access-rules`],`access-rules`),downloadable:t.downloadable,exp:t.exp,flags:{original:t[`flags-original`]},id:p(t.id,`id`,`text`),nbf:t.nbf,pem:p(t.pem,`pem`,`text`)});a(await s(`Deleting`,async()=>c.stream.videos.token.create({...m,account_id:l,identifier:t.identifier})),{successLabel:`Deleted`})})},Xe={command:`token`,describe:`Operations for videos.token`,builder:e=>e.command(Ye).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},Ze={command:`videos`,describe:`Aggregate video storage usage statistics for the account`,builder:e=>e.command(De).command(ke).command(je).command(Ne).command(Ue).command(Ge).command(qe).command(ue).command(Te).command(Ie).command(Ve).command(Xe).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function Qe(e){return e.usage(`$0 stream watermarks create
86
86
 
87
- Creates watermark profiles using a single \`HTTP POST multipart/form-data\` request.`).option(`name`,{type:`string`,description:`A short description of the watermark profile.`,default:``}).option(`opacity`,{type:`number`,description:"The translucency of the image. A value of `0.0` makes the image completely transparent, and `1.0` makes the image completely opaque. Note that if the image is already semi-transparent, setting this to `1.0` will not make the image completely opaque.",default:1}).option(`padding`,{type:`number`,description:"The whitespace between the adjacent edges (determined by position) of the video and the image. `0.0` indicates no padding, and `1.0` indicates a fully padded video width or length, as determined by the algorithm.",default:.05}).option(`position`,{type:`string`,description:"The location of the image. Valid positions are: `upperRight`, `upperLeft`, `lowerLeft`, `lowerRight`, and `center`. Note that `center` ignores the `padding` parameter.",default:`upperRight`}).option(`scale`,{type:`number`,description:"The size of the image relative to the overall size of the video. This parameter will adapt to horizontal and vertical videos automatically. `0.0` indicates no scaling (use the size of the image as-is), and `1.0 `fills the entire video.",default:.15}).option(`url`,{type:`string`,description:`URL of the watermark image to copy.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`}).option(`file`,{type:`string`,description:`Path to a file to upload as the request body`})}const $e={command:`create`,describe:`Create watermark profiles via basic upload`,builder:Qe,handler:async d=>c({command:`stream watermarks create`,classification:{safeFlags:[`dry-run`]}},d,async()=>{if(d.dryRun){o({command:`cf stream watermarks create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/stream/watermarks`,pathParams:{},bodyKind:`multipart`,body:{name:d.name,opacity:d.opacity,padding:d.padding,position:d.position,scale:d.scale,url:d.url,body:d.body,file:d.file}});return}let c=await i(d),f=d.local?e:await n();if(d.accountId=f,d.file!==void 0||d.body!==void 0||d.name!==void 0||d.opacity!==void 0||d.padding!==void 0||d.position!==void 0||d.scale!==void 0){let e=new FormData;if(d.file){let t=m(d.file);e.append(`file`,new Blob([t]),d.file.split(/[\\/]/).filter(Boolean).pop())}else d.body!==void 0&&e.append(`file`,d.body);d.name!==void 0&&e.append(`name`,String(p(d.name,`name`,`text`)??``)),d.opacity!==void 0&&e.append(`opacity`,String(d.opacity)),d.padding!==void 0&&e.append(`padding`,String(d.padding)),d.position!==void 0&&e.append(`position`,String(p(d.position,`position`,`text`)??``)),d.scale!==void 0&&e.append(`scale`,String(d.scale)),a(await s(`Creating`,async()=>r(c,`POST`,`/accounts/${f}/stream/watermarks`,{body:e})),{successLabel:`Created`});return}if(d.body){let e=u(d.body);a(await s(`Creating`,async()=>r(c,`POST`,`/accounts/${f}/stream/watermarks`,{body:e})),{successLabel:`Created`});return}let h={};d.name!==void 0&&l(h,[`name`],p(d.name,`name`,`text`)),d.opacity!==void 0&&l(h,[`opacity`],d.opacity),d.padding!==void 0&&l(h,[`padding`],d.padding),d.position!==void 0&&l(h,[`position`],p(d.position,`position`,`text`)),d.scale!==void 0&&l(h,[`scale`],d.scale),d.url!==void 0&&l(h,[`url`],p(d.url,`url`,`text`)),a(await s(`Creating`,async()=>r(c,`POST`,`/accounts/${f}/stream/watermarks`,{body:Object.keys(h).length>0?h:void 0})),{successLabel:`Created`})})};function et(e){return e.usage(`$0 stream watermarks delete <identifier>
87
+ Creates watermark profiles using a single \`HTTP POST multipart/form-data\` request.`).option(`name`,{type:`string`,description:`A short description of the watermark profile.`,default:``}).option(`opacity`,{type:`number`,description:"The translucency of the image. A value of `0.0` makes the image completely transparent, and `1.0` makes the image completely opaque. Note that if the image is already semi-transparent, setting this to `1.0` will not make the image completely opaque.",default:1}).option(`padding`,{type:`number`,description:"The whitespace between the adjacent edges (determined by position) of the video and the image. `0.0` indicates no padding, and `1.0` indicates a fully padded video width or length, as determined by the algorithm.",default:.05}).option(`position`,{type:`string`,description:"The location of the image. Valid positions are: `upperRight`, `upperLeft`, `lowerLeft`, `lowerRight`, and `center`. Note that `center` ignores the `padding` parameter.",default:`upperRight`}).option(`scale`,{type:`number`,description:"The size of the image relative to the overall size of the video. This parameter will adapt to horizontal and vertical videos automatically. `0.0` indicates no scaling (use the size of the image as-is), and `1.0 `fills the entire video.",default:.15}).option(`url`,{type:`string`,description:`URL of the watermark image to copy.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`}).option(`file`,{type:`string`,description:`Path to a file to upload as the request body`})}const $e={command:`create`,describe:`Create watermark profiles via basic upload`,builder:Qe,handler:async d=>c({command:`stream watermarks create`,classification:{safeFlags:[`dry-run`]}},d,async()=>{if(d.dryRun){o({command:`cf stream watermarks create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${await r()??`<account-id>`}/stream/watermarks`,pathParams:{},bodyKind:`multipart`,body:{name:d.name,opacity:d.opacity,padding:d.padding,position:d.position,scale:d.scale,url:d.url,body:d.body,file:d.file}});return}let c=await n(d),f=d.local?e:await i();if(d.accountId=f,d.file!==void 0||d.body!==void 0||d.name!==void 0||d.opacity!==void 0||d.padding!==void 0||d.position!==void 0||d.scale!==void 0){let e=new FormData;if(d.file){let t=m(d.file);e.append(`file`,new Blob([t]),d.file.split(/[\\/]/).filter(Boolean).pop())}else d.body!==void 0&&e.append(`file`,d.body);d.name!==void 0&&e.append(`name`,String(p(d.name,`name`,`text`)??``)),d.opacity!==void 0&&e.append(`opacity`,String(d.opacity)),d.padding!==void 0&&e.append(`padding`,String(d.padding)),d.position!==void 0&&e.append(`position`,String(p(d.position,`position`,`text`)??``)),d.scale!==void 0&&e.append(`scale`,String(d.scale)),a(await s(`Creating`,async()=>t(c,`POST`,`/accounts/${f}/stream/watermarks`,{body:e})),{successLabel:`Created`});return}if(d.body){let e=u(d.body);a(await s(`Creating`,async()=>t(c,`POST`,`/accounts/${f}/stream/watermarks`,{body:e})),{successLabel:`Created`});return}let h={};d.name!==void 0&&l(h,[`name`],p(d.name,`name`,`text`)),d.opacity!==void 0&&l(h,[`opacity`],d.opacity),d.padding!==void 0&&l(h,[`padding`],d.padding),d.position!==void 0&&l(h,[`position`],p(d.position,`position`,`text`)),d.scale!==void 0&&l(h,[`scale`],d.scale),d.url!==void 0&&l(h,[`url`],p(d.url,`url`,`text`)),a(await s(`Creating`,async()=>t(c,`POST`,`/accounts/${f}/stream/watermarks`,{body:Object.keys(h).length>0?h:void 0})),{successLabel:`Created`})})};function et(e){return e.usage(`$0 stream watermarks delete <identifier>
88
88
 
89
- Deletes a watermark profile.`).positional(`identifier`,{type:`string`,description:`The unique identifier for a watermark profile.`,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 tt={command:`delete <identifier>`,describe:`Delete watermark profiles`,builder:et,handler:async r=>c({command:`stream watermarks delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},r,async()=>{if(r.dryRun){o({command:`cf stream watermarks delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/stream/watermarks/${r.identifier==null?`<identifier>`:encodeURIComponent(String(r.identifier))}`,pathParams:{identifier:String(r.identifier??``)},bodyKind:`none`});return}let c=await i(r),l=r.local?e:await n();if(r.accountId=l,!await g({force:!!r.force,message:`Remove this watermark profile? New upload requests referencing this profile will fail.`})){process.stderr.write(`Aborted.
90
- `);return}a(await s(`Deleting`,async()=>c.stream.watermarks.delete({account_id:l,identifier:r.identifier})),{successLabel:`Deleted`})})};function $(e){return e.usage(`$0 stream watermarks get <identifier>
89
+ Deletes a watermark profile.`).positional(`identifier`,{type:`string`,description:`The unique identifier for a watermark profile.`,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 tt={command:`delete <identifier>`,describe:`Delete watermark profiles`,builder:et,handler:async t=>c({command:`stream watermarks delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},t,async()=>{if(t.dryRun){o({command:`cf stream watermarks delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${await r()??`<account-id>`}/stream/watermarks/${t.identifier==null?`<identifier>`:encodeURIComponent(String(t.identifier))}`,pathParams:{identifier:String(t.identifier??``)},bodyKind:`none`});return}let c=await n(t),l=t.local?e:await i();if(t.accountId=l,!await g({force:!!t.force,message:`Remove this watermark profile? New upload requests referencing this profile will fail.`})){process.stderr.write(`Aborted.
90
+ `);return}a(await s(`Deleting`,async()=>c.stream.watermarks.delete({account_id:l,identifier:t.identifier})),{successLabel:`Deleted`})})};function $(e){return e.usage(`$0 stream watermarks get <identifier>
91
91
 
92
- Retrieves details for a single watermark profile.`).positional(`identifier`,{type:`string`,description:`The unique identifier for a watermark profile.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const nt={command:`get <identifier>`,describe:`Watermark profile details`,builder:$,handler:async r=>c({command:`stream watermarks get`,classification:{safeFlags:[`dry-run`]}},r,async()=>{if(r.dryRun){o({command:`cf stream watermarks get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/stream/watermarks/${r.identifier==null?`<identifier>`:encodeURIComponent(String(r.identifier))}`,pathParams:{identifier:String(r.identifier??``)},bodyKind:`none`});return}let c=await i(r),l=r.local?e:await n();r.accountId=l,a(await s(`Loading`,async()=>c.stream.watermarks.get({account_id:l,identifier:r.identifier})),{successLabel:`Loaded`})})};function rt(e){return e.usage(`$0 stream watermarks list
92
+ Retrieves details for a single watermark profile.`).positional(`identifier`,{type:`string`,description:`The unique identifier for a watermark profile.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const nt={command:`get <identifier>`,describe:`Watermark profile details`,builder:$,handler:async t=>c({command:`stream watermarks get`,classification:{safeFlags:[`dry-run`]}},t,async()=>{if(t.dryRun){o({command:`cf stream watermarks get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await r()??`<account-id>`}/stream/watermarks/${t.identifier==null?`<identifier>`:encodeURIComponent(String(t.identifier))}`,pathParams:{identifier:String(t.identifier??``)},bodyKind:`none`});return}let c=await n(t),l=t.local?e:await i();t.accountId=l,a(await s(`Loading`,async()=>c.stream.watermarks.get({account_id:l,identifier:t.identifier})),{successLabel:`Loaded`})})};function rt(e){return e.usage(`$0 stream watermarks list
93
93
 
94
- Lists all watermark profiles for an account.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const it={command:`list`,describe:`List watermark profiles`,builder:rt,handler:async r=>c({command:`stream watermarks list`,classification:{safeFlags:[`dry-run`]}},r,async()=>{if(r.dryRun){o({command:`cf stream watermarks list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/stream/watermarks`,pathParams:{},bodyKind:`none`});return}let c=await i(r),l=r.local?e:await n();r.accountId=l,a(await s(`Loading`,async()=>c.stream.watermarks.list({account_id:l})),{successLabel:`Loaded`})})},at={command:`watermarks`,describe:`Watermark profiles that overlay an image on every video in the account`,builder:e=>e.command($e).command(tt).command(nt).command(it).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function ot(e){return e.usage(`$0 stream webhooks delete
94
+ Lists all watermark profiles for an account.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const it={command:`list`,describe:`List watermark profiles`,builder:rt,handler:async t=>c({command:`stream watermarks list`,classification:{safeFlags:[`dry-run`]}},t,async()=>{if(t.dryRun){o({command:`cf stream watermarks list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await r()??`<account-id>`}/stream/watermarks`,pathParams:{},bodyKind:`none`});return}let c=await n(t),l=t.local?e:await i();t.accountId=l,a(await s(`Loading`,async()=>c.stream.watermarks.list({account_id:l})),{successLabel:`Loaded`})})},at={command:`watermarks`,describe:`Watermark profiles that overlay an image on every video in the account`,builder:e=>e.command($e).command(tt).command(nt).command(it).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function ot(e){return e.usage(`$0 stream webhooks delete
95
95
 
96
- Deletes the on-demand video webhook.`).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 st={command:`delete`,describe:`Delete webhooks`,builder:ot,handler:async r=>c({command:`stream webhooks delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},r,async()=>{if(r.dryRun){o({command:`cf stream webhooks delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/stream/webhook`,pathParams:{},bodyKind:`none`});return}let c=await i(r),l=r.local?e:await n();if(r.accountId=l,!await g({force:!!r.force,message:`Delete this webhook? If recreated, the secret will change.`})){process.stderr.write(`Aborted.
96
+ Deletes the on-demand video webhook.`).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 st={command:`delete`,describe:`Delete webhooks`,builder:ot,handler:async t=>c({command:`stream webhooks delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},t,async()=>{if(t.dryRun){o({command:`cf stream webhooks delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${await r()??`<account-id>`}/stream/webhook`,pathParams:{},bodyKind:`none`});return}let c=await n(t),l=t.local?e:await i();if(t.accountId=l,!await g({force:!!t.force,message:`Delete this webhook? If recreated, the secret will change.`})){process.stderr.write(`Aborted.
97
97
  `);return}a(await s(`Deleting`,async()=>c.stream.webhooks.delete({account_id:l})),{successLabel:`Deleted`})})};function ct(e){return e.usage(`$0 stream webhooks get
98
98
 
99
- Retrieve current on-demand webhook information.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const lt={command:`get`,describe:`View webhook`,builder:ct,handler:async r=>c({command:`stream webhooks get`,classification:{safeFlags:[`dry-run`]}},r,async()=>{if(r.dryRun){o({command:`cf stream webhooks get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/stream/webhook`,pathParams:{},bodyKind:`none`});return}let c=await i(r),l=r.local?e:await n();r.accountId=l,a(await s(`Loading`,async()=>c.stream.webhooks.get({account_id:l})),{successLabel:`Loaded`})})};function ut(e){return e.usage(`$0 stream webhooks update
99
+ Retrieve current on-demand webhook information.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const lt={command:`get`,describe:`View webhook`,builder:ct,handler:async t=>c({command:`stream webhooks get`,classification:{safeFlags:[`dry-run`]}},t,async()=>{if(t.dryRun){o({command:`cf stream webhooks get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await r()??`<account-id>`}/stream/webhook`,pathParams:{},bodyKind:`none`});return}let c=await n(t),l=t.local?e:await i();t.accountId=l,a(await s(`Loading`,async()=>c.stream.webhooks.get({account_id:l})),{successLabel:`Loaded`})})};function ut(e){return e.usage(`$0 stream webhooks update
100
100
 
101
- Create a webhook for notifications about on-demand video uploads.`).option(`notification-url`,{type:`string`,description:`The URL where webhooks will be sent.`}).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 dt={command:`update`,describe:`Create VOD webhooks`,builder:ut,handler:async r=>c({command:`stream webhooks update`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},r,async()=>{if(r.dryRun){o({command:`cf stream webhooks update`,method:`PUT`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/stream/webhook`,pathParams:{},bodyKind:`json`,body:r.body===void 0?f({notification_url:p(r[`notification-url`],`notification-url`,`text`)}):u(r.body)});return}let c=await i(r),l=r.local?e:await n();if(r.accountId=l,!await g({force:!!r.force,message:`Create a webhook for on-demand operations? Will replace previously configured webhook. Live input webhooks are handled via Notifications Service.`})){process.stderr.write(`Aborted.
102
- `);return}if(r.body){let e=u(r.body);a(await s(`Deleting`,async()=>c.stream.webhooks.update({body:e,account_id:l})),{successLabel:`Deleted`});return}let d=f({notification_url:p(r[`notification-url`],`notification-url`,`text`)});a(await s(`Deleting`,async()=>c.stream.webhooks.update({body:d,account_id:l})),{successLabel:`Deleted`})})},ft={command:`webhooks`,describe:`Webhook notifications for video lifecycle events (ready, error, etc.)`,builder:e=>e.command(st).command(lt).command(dt).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},pt={command:`stream`,describe:`Video encoding, storage, and delivery — upload, live-stream, clip, caption, and embed video at scale`,builder:e=>e.command(Q).command(w).command(X).command(Ze).command(at).command(ft).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};export{pt as default};
101
+ Create a webhook for notifications about on-demand video uploads.`).option(`notification-url`,{type:`string`,description:`The URL where webhooks will be sent.`}).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 dt={command:`update`,describe:`Create VOD webhooks`,builder:ut,handler:async t=>c({command:`stream webhooks update`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},t,async()=>{if(t.dryRun){o({command:`cf stream webhooks update`,method:`PUT`,url:`https://api.cloudflare.com/client/v4/accounts/${await r()??`<account-id>`}/stream/webhook`,pathParams:{},bodyKind:`json`,body:t.body===void 0?f({notification_url:p(t[`notification-url`],`notification-url`,`text`)}):u(t.body)});return}let c=await n(t),l=t.local?e:await i();if(t.accountId=l,!await g({force:!!t.force,message:`Create a webhook for on-demand operations? Will replace previously configured webhook. Live input webhooks are handled via Notifications Service.`})){process.stderr.write(`Aborted.
102
+ `);return}if(t.body){let e=u(t.body);a(await s(`Deleting`,async()=>c.stream.webhooks.update({body:e,account_id:l})),{successLabel:`Deleted`});return}let d=f({notification_url:p(t[`notification-url`],`notification-url`,`text`)});a(await s(`Deleting`,async()=>c.stream.webhooks.update({body:d,account_id:l})),{successLabel:`Deleted`})})},ft={command:`webhooks`,describe:`Webhook notifications for video lifecycle events (ready, error, etc.)`,builder:e=>e.command(st).command(lt).command(dt).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},pt={command:`stream`,describe:`Video encoding, storage, and delivery — upload, live-stream, clip, caption, and embed video at scale`,builder:e=>e.command(Q).command(w).command(X).command(Ze).command(at).command(ft).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};export{pt as default};