cf 1.0.0-beta.20 → 1.0.0-beta.21

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 (290) hide show
  1. package/README.md +1 -1
  2. package/dist/_meta/commands.json +911 -751
  3. package/dist/_meta/schemas.json +401 -382
  4. package/dist/{abuse-reports-mKv00yPh.mjs → abuse-reports-CbUAnJxd.mjs} +1 -1
  5. package/dist/{access-CyRjTbhh.mjs → access-C-78DlxL.mjs} +1 -1
  6. package/dist/{accounts-BmF_YKvG.mjs → accounts-DEqQPxCz.mjs} +8 -15
  7. package/dist/{acm-BcIFiAb8.mjs → acm-jmhCq3Yh.mjs} +2 -3
  8. package/dist/{addressing-D6xVD7MM.mjs → addressing-BeYFpQvC.mjs} +12 -23
  9. package/dist/{agent-memory-Blldunhv.mjs → agent-memory-Chlovb7j.mjs} +5 -9
  10. package/dist/{ai-CU8tdTfC.mjs → ai-BndH3HYN.mjs} +2 -3
  11. package/dist/{ai-audit-Id3hq5pV.mjs → ai-audit-BUJ-70O_.mjs} +1 -1
  12. package/dist/{ai-gateway-BKeZ28CQ.mjs → ai-gateway-CCk7VKhL.mjs} +9 -15
  13. package/dist/{ai-search-DOiZEmn7.mjs → ai-search-BexET_wp.mjs} +6 -11
  14. package/dist/{ai-security-CioADDZi.mjs → ai-security-D4MxRlxX.mjs} +3 -5
  15. package/dist/{alerting-BzN1N3Se.mjs → alerting-rw8Oi3x7.mjs} +5 -9
  16. package/dist/{analytics-engine-CugCQfDe.mjs → analytics-engine-Bk7dQLcm.mjs} +1 -1
  17. package/dist/{analytics-Cte-DrzH.mjs → analytics-q-guNEOK.mjs} +1 -1
  18. package/dist/{api-security-CCs0g510.mjs → api-security-BDc6gkf1.mjs} +9 -17
  19. package/dist/{argo-BHBFZnmO.mjs → argo-CnLIqm0i.mjs} +1 -1
  20. package/dist/args-BAOHroBC.mjs +2 -0
  21. package/dist/{artifacts-BzAwvrCD.mjs → artifacts-Cil33dzV.mjs} +4 -7
  22. package/dist/{audit-logs-jWivEKCy.mjs → audit-logs--E2Eclb7.mjs} +1 -1
  23. package/dist/auth-B0lEsD_1.mjs +2 -0
  24. package/dist/{auth-BUQscD5b.mjs → auth-BcNLQji1.mjs} +1 -1
  25. package/dist/auth-BtZmY6sE.mjs +2 -0
  26. package/dist/{auth-token-T0aqYgl9.mjs → auth-token-aF5AVLlH.mjs} +1 -1
  27. package/dist/{autoconfig-CBdcYYf4.mjs → autoconfig-Dbp6J25P.mjs} +88 -88
  28. package/dist/{basin-catalog-_8w_4599.mjs → basin-catalog-dnVyzopm.mjs} +3 -5
  29. package/dist/{billing-Ce0WN0yw.mjs → billing-Fqp3jB2V.mjs} +2 -3
  30. package/dist/{blocks-CFAm0Ma3.mjs → blocks-BOQH-Won.mjs} +1 -1
  31. package/dist/{bot-management-DskcSr4B.mjs → bot-management-SEDgo1Xg.mjs} +1 -1
  32. package/dist/{botnet-feed-CmBm13-D.mjs → botnet-feed-DPqR4M0Y.mjs} +2 -3
  33. package/dist/{brand-protection-DTuFrsN0.mjs → brand-protection-B8vwKfM9.mjs} +2 -3
  34. package/dist/{browser-run-CXdzSOHa.mjs → browser-run-BybYDq3I.mjs} +3 -5
  35. package/dist/build-BqGmiORA.mjs +2 -0
  36. package/dist/build-CWlpWVBf.mjs +2 -0
  37. package/dist/{builds-_1u5Nx6f.mjs → builds-CvtOG-Gk.mjs} +8 -15
  38. package/dist/cache-Bme_d2Wx.mjs +36 -0
  39. package/dist/cf-fIBhEAxU.mjs +18 -0
  40. package/dist/chunk-DSGVRFIS-DHC6NOIj.mjs +2 -0
  41. package/dist/{chunk-2K52M2W5-iYNzknM1.mjs → chunk-XVBBSNW2-DfMyGS-l.mjs} +8 -8
  42. package/dist/{cli-DyhOdzMo.mjs → cli-CIKDqm-u.mjs} +3 -3
  43. package/dist/{client-side-security-DnnYaRsd.mjs → client-side-security-ZQeRoo1t.mjs} +2 -3
  44. package/dist/{cloud-connector-Ct6b6pz8.mjs → cloud-connector-BeunZlNV.mjs} +1 -1
  45. package/dist/{cloudflared-CHLpWU35.mjs → cloudflared-DbzoIouQ.mjs} +1 -1
  46. package/dist/{cloudforce-one-Rl6nCCm0.mjs → cloudforce-one-D20t9ojD.mjs} +26 -51
  47. package/dist/{command-BwgvUpNx.mjs → command-B3uWlw57.mjs} +1 -1
  48. package/dist/{command-DuLxEkGq.mjs → command-BGRucANI.mjs} +1 -1
  49. package/dist/{command-BONLLcyz.mjs → command-C6kE7BU0.mjs} +1 -1
  50. package/dist/{command-DOpykk8X.mjs → command-C9CNvZi_.mjs} +1 -1
  51. package/dist/{command-BRpBIju7.mjs → command-CQ5qHE7n.mjs} +1 -1
  52. package/dist/{command-CHGc-KZ7.mjs → command-CkZkTjIj.mjs} +1 -1
  53. package/dist/{command-BRXOUAGD.mjs → command-CqKRlHGv.mjs} +1 -1
  54. package/dist/{command-BwlIi3Bv.mjs → command-CtlD6MEi.mjs} +1 -1
  55. package/dist/{command-CXzje7qc.mjs → command-CzWWQv8j.mjs} +1 -1
  56. package/dist/{command-BMYi_gS-.mjs → command-DWWuXQV8.mjs} +1 -1
  57. package/dist/{command-CPDQPdss.mjs → command-DkwmylF2.mjs} +1 -1
  58. package/dist/{command-CMa807gY.mjs → command-MxFFWqMg.mjs} +1 -1
  59. package/dist/{command-BVO9UOuU.mjs → command-orlUsdgf.mjs} +1 -1
  60. package/dist/{command-CVoDyQnL.mjs → command-prWMAJbg.mjs} +1 -1
  61. package/dist/{command-0WS5I_JW.mjs → command-rUCxlpQI.mjs} +1 -1
  62. package/dist/command-resolution-DAQ4PWUt.mjs +2 -0
  63. package/dist/{completions-DMwrvK_S.mjs → completions-2Otv0HMd.mjs} +1 -1
  64. package/dist/{connector-interrupts-DyWilINb.mjs → connector-interrupts-Dfhxupmg.mjs} +1 -1
  65. package/dist/{connector-telemetry-events-BUW9qTOs.mjs → connector-telemetry-events-CLVpDTIa.mjs} +1 -1
  66. package/dist/{connector-telemetry-snapshots-Djs5QssR.mjs → connector-telemetry-snapshots-E_1tmNmQ.mjs} +1 -1
  67. package/dist/{connectors-e_cpzDEm.mjs → connectors-ChJpQFSl.mjs} +2 -3
  68. package/dist/{containers-CEH15JUu.mjs → containers-Cj5-9nUg.mjs} +6 -9
  69. package/dist/containers-CzAZfmnj.mjs +380 -0
  70. package/dist/{content-scan-B6Ahw9JA.mjs → content-scan-CIA_9PV8.mjs} +3 -5
  71. package/dist/{context-Sgba0fZP.mjs → context-DVh8Wyfs.mjs} +2 -2
  72. package/dist/{cps-uDD0SSJ-.mjs → cps-hJkqdsHx.mjs} +1 -1
  73. package/dist/{csam-scanner-BSUl7jGn.mjs → csam-scanner-cCVO3lNF.mjs} +1 -1
  74. package/dist/{custom-csrs-BDcXggph.mjs → custom-csrs-BrTWUZ0c.mjs} +2 -3
  75. package/dist/{custom-hostnames-UmIlwkwt.mjs → custom-hostnames-C4ft77oC.mjs} +4 -7
  76. package/dist/{custom-nameservers-D7kU6d--.mjs → custom-nameservers-BWfrZhD1.mjs} +2 -3
  77. package/dist/{custom-pages-CkhIQCfM.mjs → custom-pages-DqTMKtRc.mjs} +2 -3
  78. package/dist/{d1-myRLEAGs.mjs → d1-B58AA9PA.mjs} +3 -6
  79. package/dist/delegate-D7yYckA4.mjs +2 -0
  80. package/dist/delegate.mjs +1 -1
  81. package/dist/{deploy-BJqCpycz.mjs → deploy-CEROLAdh.mjs} +1 -1
  82. package/dist/deploy-context-Do89WayB.mjs +56 -0
  83. package/dist/{deploy-input-v2DryyLP.mjs → deploy-input-DyMuMsi5.mjs} +1 -1
  84. package/dist/{dev-S1PJi83q.mjs → dev-BaFS7kOM.mjs} +2 -2
  85. package/dist/{diagnostics-q65rcNIk.mjs → diagnostics-4gfYj7Pf.mjs} +2 -3
  86. package/dist/dialog-D5lus4M4.mjs +2 -0
  87. package/dist/discover-6kAmVMPp.mjs +2 -0
  88. package/dist/discover-C06Syc2B.mjs +2 -0
  89. package/dist/dist-BtzWfAjU.mjs +453 -0
  90. package/dist/dls-ClWVxTBg.mjs +16 -0
  91. package/dist/{dns-DhARjFQs.mjs → dns-CML-wxIt.mjs} +68 -68
  92. package/dist/{dns-firewall-BP6r9QG6.mjs → dns-firewall-CL0b3dJ1.mjs} +2 -3
  93. package/dist/{docs-CReGWDrw.mjs → docs-BeYBHwUN.mjs} +1 -1
  94. package/dist/{dotenv-Ck-6V1hm.mjs → dotenv-CmPRiXmU.mjs} +1 -1
  95. package/dist/{dry-run-BBjUQUhR.mjs → dry-run-gy0Hl9xo.mjs} +1 -1
  96. package/dist/{durable-objects-tOJy-5te.mjs → durable-objects-uZECeq_f.mjs} +1 -1
  97. package/dist/{email-auth-Bq9sq_2j.mjs → email-auth-CCNW798I.mjs} +1 -1
  98. package/dist/email-domains-1rD1d84O.mjs +12 -0
  99. package/dist/{email-routing-CYo4dp50.mjs → email-routing-CYv-LrbV.mjs} +4 -7
  100. package/dist/{email-security-CNtWET2d.mjs → email-security-CWEUYPYo.mjs} +16 -31
  101. package/dist/{email-sending-BvagNLRr.mjs → email-sending-DHSzCfJx.mjs} +3 -5
  102. package/dist/{errors-DpbAQQv8.mjs → errors-ol9sMqSe.mjs} +8 -8
  103. package/dist/{field-extractors-C9R3Qivh.mjs → field-extractors-CuBM_uO4.mjs} +2 -3
  104. package/dist/{firewall-DsgUY-Qv.mjs → firewall-SMIUSypF.mjs} +4 -7
  105. package/dist/flagship-D3v6iDdw.mjs +24 -0
  106. package/dist/{fraud-24l8dKyk.mjs → fraud-B2f7O15X.mjs} +1 -1
  107. package/dist/{google-tag-gateway-CAkudP5W.mjs → google-tag-gateway-BwOc62Gy.mjs} +1 -1
  108. package/dist/{gt-D6YemCLh.mjs → gt-BQkaDQDq.mjs} +1 -1
  109. package/dist/{healthchecks-CEGMe3lO.mjs → healthchecks-BQXHnihB.mjs} +3 -5
  110. package/dist/{hyperdrive-DLDaOU2O.mjs → hyperdrive-Bd6Yfje3.mjs} +2 -3
  111. package/dist/{iam-ChldOMSL.mjs → iam-qJPI1_aZ.mjs} +5 -9
  112. package/dist/{images-Ba9tS5wT.mjs → images-goHZJOxy.mjs} +6 -11
  113. package/dist/index.mjs +1 -1
  114. package/dist/init-CVx0Ya1E.mjs +43 -0
  115. package/dist/{intel-DbLRah4Y.mjs → intel-CwiqwJI9.mjs} +18 -21
  116. package/dist/interactive-CHcvofEp.mjs +2 -0
  117. package/dist/{interactive-d_lFnSev.mjs → interactive-D4E8PdaW.mjs} +31 -31
  118. package/dist/interactive-wQM7Blhm.mjs +2 -0
  119. package/dist/internal-5cnlw9mH.mjs +4 -0
  120. package/dist/{ips-BGyzyQLL.mjs → ips-KBxmXhvO.mjs} +1 -1
  121. package/dist/{k2-BVQ3MqEl.mjs → k2-KhIP5NFT.mjs} +2 -3
  122. package/dist/kv-CCem2sEY.mjs +12 -0
  123. package/dist/{lazy-command-D0I6itZs.mjs → lazy-command-BMhD5ffF.mjs} +1 -1
  124. package/dist/{leaked-credential-checks-Dga83Qy3.mjs → leaked-credential-checks-BkPZiwE2.mjs} +3 -5
  125. package/dist/live-BhHzxFna.mjs +4 -0
  126. package/dist/{load-balancers-D9cB6of8.mjs → load-balancers-17GBXdju.mjs} +5 -9
  127. package/dist/local-CAs8RWYW.mjs +2 -0
  128. package/dist/{local-B7ZJ78al.mjs → local-CSH3UMpD.mjs} +1 -1
  129. package/dist/{local-runtime-DB545Gqq.mjs → local-runtime-KOFLRZeZ.mjs} +1 -1
  130. package/dist/log-BWdaOGOW.mjs +66 -0
  131. package/dist/log-DZfik9Jk.mjs +2 -0
  132. package/dist/login-BTiflOun.mjs +2 -0
  133. package/dist/login-Buhvx6Fi.mjs +5 -0
  134. package/dist/{logpush-Ccmr0Y_I.mjs → logpush-BCCUxa4J.mjs} +3 -5
  135. package/dist/{logs-CZBMuuBC.mjs → logs-4CwupKRG.mjs} +2 -3
  136. package/dist/{magic-cloud-networking-BwOxZVql.mjs → magic-cloud-networking-Xy6SC-V-.mjs} +4 -7
  137. package/dist/{magic-network-monitoring-Cx5kKdbk.mjs → magic-network-monitoring-B8pRZp2g.mjs} +3 -5
  138. package/dist/{magic-transit-BJwg3sVK.mjs → magic-transit-CwfO3OOX.mjs} +36 -67
  139. package/dist/managed-defense-CtFLuvuB.mjs +18 -0
  140. package/dist/{managed-transforms-C-HMtesC.mjs → managed-transforms-Hto8OCBS.mjs} +2 -3
  141. package/dist/{mcp-bGKgzz6F.mjs → mcp-SQ0MAVUJ.mjs} +3 -5
  142. package/dist/{mesh-DeQIll19.mjs → mesh-C8A6tVqA.mjs} +3 -5
  143. package/dist/{migrate-B6HsPeFh.mjs → migrate-Dufxsb_F.mjs} +1 -1
  144. package/dist/{monetization-B-TIrpA5.mjs → monetization-CYVaCAe9.mjs} +3 -5
  145. package/dist/{network-BrjykU-I.mjs → network-CJBTdEM3.mjs} +5 -9
  146. package/dist/{network-interconnects-I06kbxIl.mjs → network-interconnects-CKlNFj3i.mjs} +3 -5
  147. package/dist/{o11y-Ba0Fa98_.mjs → o11y-5x2Q8CWm.mjs} +8 -15
  148. package/dist/{oauth-BH-uQd3C.mjs → oauth-BN6_FpYp.mjs} +1 -1
  149. package/dist/oauth-D_A8AcIS.mjs +4 -0
  150. package/dist/{oauth-clients-Dd5gvDqf.mjs → oauth-clients-qKXg8ZH3.mjs} +3 -5
  151. package/dist/{oauth-scopes-CXpH3Syj.mjs → oauth-scopes-Ct1jDyC5.mjs} +1 -1
  152. package/dist/{organization-DKPqwe3j.mjs → organization-lBQSeqS1.mjs} +3 -5
  153. package/dist/{organizations-Cq4iy-Yr.mjs → organizations-DEX8Er3g.mjs} +1 -1
  154. package/dist/{origin-post-quantum-encryption-DSB1sbYV.mjs → origin-post-quantum-encryption-DUsxVGCs.mjs} +1 -1
  155. package/dist/output-BJEgbI0G.mjs +2 -0
  156. package/dist/package-BqSbnt6u.mjs +2 -0
  157. package/dist/{page-rules-CDWTYaf7.mjs → page-rules-BMt6nt03.mjs} +2 -3
  158. package/dist/{pages-Dgtm51Uj.mjs → pages-Jxa92ECz.mjs} +7 -13
  159. package/dist/{pay-per-crawl-CHenxdhv.mjs → pay-per-crawl-Cv0044CZ.mjs} +3 -5
  160. package/dist/{pay-per-use-Bd5l0hBi.mjs → pay-per-use-DGEeG-dC.mjs} +2 -3
  161. package/dist/{pipelines-GsyD6nUM.mjs → pipelines-CEC78A3w.mjs} +5 -9
  162. package/dist/{precursor-mO-Zua09.mjs → precursor-Ba0Ejhzt.mjs} +1 -1
  163. package/dist/previews-DnZbUTym.mjs +6 -0
  164. package/dist/progress-CtGsPOpV.mjs +2 -0
  165. package/dist/prompt-YrI7ltMa.mjs +4 -0
  166. package/dist/{queues-D8cAr2lB.mjs → queues-Chq997uj.mjs} +6 -11
  167. package/dist/{r2-CJiJbG6b.mjs → r2-BFgZDs-F.mjs} +17 -33
  168. package/dist/{radar-PUZ_PCZ8.mjs → radar-DJdDzLJw.mjs} +1 -1
  169. package/dist/{raw-fetch-DSdFjojI.mjs → raw-fetch-BE3QgdTE.mjs} +1 -1
  170. package/dist/ready-Cok0aqke.mjs +4 -0
  171. package/dist/{realtime-X6uQsldp.mjs → realtime-BHWWCiKp.mjs} +10 -19
  172. package/dist/{registrar-BqZdUTss.mjs → registrar-9Y-1IQ0n.mjs} +1 -1
  173. package/dist/{registrar-sandbox-CmM3e1QN.mjs → registrar-sandbox-DTS1kRnb.mjs} +1 -1
  174. package/dist/{registry-D0tMkLv6.mjs → registry-Bm-GgDC3.mjs} +1 -1
  175. package/dist/{reporting-DFVz98Xg.mjs → reporting-D5RbKQJf.mjs} +1 -1
  176. package/dist/request-headers-KhW_hy36.mjs +2 -0
  177. package/dist/{request-tracers-BC1u2WDU.mjs → request-tracers-wxWCjmHo.mjs} +1 -1
  178. package/dist/{resource-sharing-CdEn5Iex.mjs → resource-sharing-BGoaVvJa.mjs} +5 -9
  179. package/dist/rolldown-runtime-BNtqjh-B.mjs +2 -0
  180. package/dist/{rules-B663VetJ.mjs → rules-Cd3EjhdF.mjs} +3 -5
  181. package/dist/{rulesets-p4EijVr6.mjs → rulesets-Bnz3rSBT.mjs} +4 -7
  182. package/dist/{rum-CHHXe4KK.mjs → rum-CK9HEe3O.mjs} +3 -5
  183. package/dist/run-Be6Js7D6.mjs +2 -0
  184. package/dist/run-DnZGQbq_.mjs +2 -0
  185. package/dist/sanitization-DkVWMHkc.mjs +2 -0
  186. package/dist/{schema-B38ojvsS.mjs → schema-DuLIZRhA.mjs} +1 -1
  187. package/dist/{schema-flags-z7yn0JZ_.mjs → schema-flags-BrDlFwLv.mjs} +1 -1
  188. package/dist/{scim-BMnUa4Oz.mjs → scim-UdqaWnOu.mjs} +3 -5
  189. package/dist/{secrets-store-EYrhEzVG.mjs → secrets-store-Bf5v96LC.mjs} +3 -5
  190. package/dist/{security-insights-C-AwDwXb.mjs → security-insights-BAGySlGu.mjs} +1 -1
  191. package/dist/{security-txt-CQMe8TD3.mjs → security-txt-D0fMmjHs.mjs} +2 -3
  192. package/dist/session-6xqrJWXy.mjs +2 -0
  193. package/dist/shared-DYRRG9A-.mjs +2 -0
  194. package/dist/signed-url-Ce0muRem.mjs +4 -0
  195. package/dist/{smart-shield-CHSuitaH.mjs → smart-shield-CCy7_M3j.mjs} +3 -5
  196. package/dist/{snippets-DGSBz4lg.mjs → snippets-Bc8m3HSV.mjs} +3 -5
  197. package/dist/spawn-BAEdy9kS.mjs +5 -0
  198. package/dist/{spectrum-59LhYG1t.mjs → spectrum-DtNX8WBX.mjs} +2 -3
  199. package/dist/{speed-CMCfoG3s.mjs → speed-TbkeWV_x.mjs} +3 -5
  200. package/dist/{sql-MxWaTDdj.mjs → sql-DI319y25.mjs} +1 -1
  201. package/dist/src-COwxoocl.mjs +2 -0
  202. package/dist/{src-J3Yss3VM.mjs → src-Dc6ojwUW.mjs} +5 -5
  203. package/dist/{ssl-DTTFZR9x.mjs → ssl-D0MIzFl2.mjs} +9 -17
  204. package/dist/startup-profile-CZYtQziF.mjs +2 -0
  205. package/dist/{startup-profile-bp348qmf.mjs → startup-profile-DlWrt4Fm.mjs} +5 -5
  206. package/dist/state-B3Uy1jPX.mjs +2 -0
  207. package/dist/{state-CqAtTENS.mjs → state-DazGSbRx.mjs} +1 -1
  208. package/dist/{stream-gVG_7si-.mjs → stream-4Mrb8HEo.mjs} +14 -27
  209. package/dist/tags-BP25qydR.mjs +22 -0
  210. package/dist/telemetry-CvZean4s.mjs +2 -0
  211. package/dist/telemetry-DKSJSLtq.mjs +2 -0
  212. package/dist/{tenant-custom-nameservers-DBmmUcxn.mjs → tenant-custom-nameservers-BzVP85Tq.mjs} +2 -3
  213. package/dist/{tenant-Qv_PC8gW.mjs → tenant-jmfZqEZ4.mjs} +1 -1
  214. package/dist/{tools-B1ajcUAF.mjs → tools-C-vmgYSv.mjs} +1 -1
  215. package/dist/{tunnels-CHNKPYRV.mjs → tunnels-BNswR1Dj.mjs} +4 -6
  216. package/dist/{turnstile-C60RxPo2.mjs → turnstile-BgsTP2fz.mjs} +2 -3
  217. package/dist/ui-Bo6DCvbS.mjs +2 -0
  218. package/dist/{update-check-BHarE3V9.mjs → update-check-BOF1hn_I.mjs} +1 -1
  219. package/dist/update-check-C7mfEeQ7.mjs +2 -0
  220. package/dist/update-check-worker.mjs +1 -1
  221. package/dist/{url-normalization-3t6Xpafi.mjs → url-normalization-Bqrs4-2F.mjs} +2 -3
  222. package/dist/{url-scanner-DNG__DiK.mjs → url-scanner-Dm4Fps5T.mjs} +1 -1
  223. package/dist/{user-B4i7OIFK.mjs → user-u_LxzLM4.mjs} +8 -15
  224. package/dist/{vectorize-y3PCQDDf.mjs → vectorize-DLGiOyd4.mjs} +3 -5
  225. package/dist/version-DmTuWNZ5.mjs +2 -0
  226. package/dist/{waiting-rooms-xkZLvPkT.mjs → waiting-rooms-DmgJgJXb.mjs} +4 -7
  227. package/dist/{web-assets-BlqHZywy.mjs → web-assets-rNhZWP-6.mjs} +7 -13
  228. package/dist/{web3-DGAJMcLv.mjs → web3-BVBdFt8E.mjs} +3 -5
  229. package/dist/{workers-cCNBx0Bc.mjs → workers-CjUKJvH8.mjs} +18 -22
  230. package/dist/{workers-builds-COKp3NfU.mjs → workers-builds-D3Q97l7X.mjs} +1 -1
  231. package/dist/{workers-for-platforms-CAtiWI_G.mjs → workers-for-platforms-C_fcw30y.mjs} +5 -9
  232. package/dist/{workers-vpc-ChBfXwPy.mjs → workers-vpc-CnRO3Stc.mjs} +2 -3
  233. package/dist/{workflows-BYhgJvyR.mjs → workflows-cpHFe5v6.mjs} +5 -9
  234. package/dist/{wrangler-migration-B12OR2bu.mjs → wrangler-migration-DQehjmoh.mjs} +74 -74
  235. package/dist/{zaraz-BW0kvRCK.mjs → zaraz-BRj0J7vK.mjs} +1 -1
  236. package/dist/{zero-trust-DSeWXkNV.mjs → zero-trust-CVZKDLCB.mjs} +75 -149
  237. package/dist/{zone-B-YJG2UA.mjs → zone-N6ccK70C.mjs} +1 -1
  238. package/dist/{zones-B8pqPHu8.mjs → zones-C4S_kpGz.mjs} +49 -52
  239. package/package.json +12 -12
  240. package/dist/auth-CdEGiJ5Y.mjs +0 -2
  241. package/dist/auth-DF_ml7rE.mjs +0 -2
  242. package/dist/build-BJHRK6qE.mjs +0 -2
  243. package/dist/build-D7s3a8zW.mjs +0 -2
  244. package/dist/cache-CDPUUv_O.mjs +0 -45
  245. package/dist/cf-3vj8dGYz.mjs +0 -18
  246. package/dist/chunk-DSGVRFIS-RUG6Dtqz.mjs +0 -2
  247. package/dist/containers-CcZHRM9g.mjs +0 -376
  248. package/dist/delegate-Tgfxa-MZ.mjs +0 -2
  249. package/dist/deploy-context-DIAl408H.mjs +0 -56
  250. package/dist/dialog-BnIgdgWi.mjs +0 -2
  251. package/dist/discover-DEjUARkU.mjs +0 -2
  252. package/dist/discover-P20XeGBF.mjs +0 -2
  253. package/dist/dist-CX6dDtzj.mjs +0 -449
  254. package/dist/dist-DAeCUX-u.mjs +0 -60
  255. package/dist/dls-CMTrCDjZ.mjs +0 -17
  256. package/dist/flagship-geGDHp9H.mjs +0 -28
  257. package/dist/init-C08hBFYn.mjs +0 -43
  258. package/dist/interactive-pjVqirHx.mjs +0 -2
  259. package/dist/kv-Cd8vbPWK.mjs +0 -15
  260. package/dist/local-CFZtOOxg.mjs +0 -2
  261. package/dist/log-CRbgNbDp.mjs +0 -3
  262. package/dist/login-C3Bahro9.mjs +0 -5
  263. package/dist/login-DvsRxI3E.mjs +0 -2
  264. package/dist/logo-matches-jeNkUxAq.mjs +0 -6
  265. package/dist/logos-pxN5aumY.mjs +0 -7
  266. package/dist/managed-defense-C_KLy4oB.mjs +0 -18
  267. package/dist/matches-DnjBnG-Y.mjs +0 -6
  268. package/dist/oauth-Cf3-g-kk.mjs +0 -4
  269. package/dist/output-CpiIVa7Q.mjs +0 -2
  270. package/dist/previews-oHUiD54J.mjs +0 -7
  271. package/dist/progress-B1dpmxCT.mjs +0 -2
  272. package/dist/prompt-Y5OBwDVE.mjs +0 -4
  273. package/dist/queries-CS0sYfte.mjs +0 -9
  274. package/dist/request-headers-Bg8_Idw3.mjs +0 -2
  275. package/dist/run-0EozpORq.mjs +0 -2
  276. package/dist/run-DKg70Sqf.mjs +0 -2
  277. package/dist/session-3DgztoAI.mjs +0 -2
  278. package/dist/shared-o8saqcSK.mjs +0 -2
  279. package/dist/source-AlTrHNem.mjs +0 -6
  280. package/dist/spawn-BZd__5sj.mjs +0 -10
  281. package/dist/startup-profile-DJsOtbVN.mjs +0 -2
  282. package/dist/state-Dvzl3aSj.mjs +0 -2
  283. package/dist/submit-wJYcQB8d.mjs +0 -4
  284. package/dist/tags-BwFKjaOr.mjs +0 -23
  285. package/dist/telemetry-BczXOpQn.mjs +0 -2
  286. package/dist/telemetry-CE15pfOU.mjs +0 -2
  287. package/dist/ui-CBhKUPys.mjs +0 -2
  288. package/dist/update-check-C3RhhXja.mjs +0 -2
  289. package/dist/url-info-By6VD20A.mjs +0 -4
  290. package/dist/version-izjB0Yrl.mjs +0 -2
@@ -1,2 +1,2 @@
1
1
  #!/usr/bin/env node
2
- import{G as e}from"./dist-CX6dDtzj.mjs";import{n as t}from"./api-eMuS5GI1.mjs";import{r as n}from"./local-B7ZJ78al.mjs";import{c as r,l as i}from"./auth-BUQscD5b.mjs";import{n as a}from"./context-Sgba0fZP.mjs";import{t as o}from"./auth-token-T0aqYgl9.mjs";import{n as s}from"./request-headers-Bg8_Idw3.mjs";async function c(c,l={}){let{method:u=`GET`,local:d=!1}=l,f=e({compliance_region:await a()}),p=`${f.replace(/\/+$/,``)}${c}`,m={...s()};l.headers&&Object.assign(m,l.headers);let h=globalThis.fetch;d?h=n({persistTo:l.persistTo,apiBaseUrl:f}):m.Authorization=`Bearer ${await o()}`;let g,_=l.body;_!=null&&(_ instanceof FormData?g=_:Buffer.isBuffer(_)||_ instanceof Uint8Array||_ instanceof ArrayBuffer?(g=_,m[`Content-Type`]??=l.contentType??`application/octet-stream`):typeof _==`string`?(g=_,l.contentType&&(m[`Content-Type`]??=l.contentType)):(g=JSON.stringify(_),m[`Content-Type`]??=l.contentType??`application/json`));let v=await h(p,{method:u,headers:m,...g===void 0?{}:{body:g},...r(g)?{}:{signal:AbortSignal.timeout(i)}});if(!v.ok){let e=v.headers.get(`content-type`)??``,n;try{n=e.includes(`application/json`)?await v.json():await v.text()}catch{n=null}throw new t({statusCode:v.status,body:n,rawResponse:{status:v.status,statusText:v.statusText,url:v.url||p,headers:v.headers,redirected:v.redirected,type:v.type}})}let y=await v.arrayBuffer();return Buffer.from(y)}function l(e){process.stdout.write(e)}export{l as n,c as t};
2
+ import{K as e}from"./dist-BtzWfAjU.mjs";import{n as t}from"./api-eMuS5GI1.mjs";import{r as n}from"./local-CSH3UMpD.mjs";import{c as r,l as i}from"./auth-BcNLQji1.mjs";import{n as a}from"./context-DVh8Wyfs.mjs";import{t as o}from"./auth-token-aF5AVLlH.mjs";import{n as s}from"./request-headers-KhW_hy36.mjs";async function c(c,l={}){let{method:u=`GET`,local:d=!1}=l,f=e({compliance_region:await a()}),p=`${f.replace(/\/+$/,``)}${c}`,m={...s()};l.headers&&Object.assign(m,l.headers);let h=globalThis.fetch;d?h=n({persistTo:l.persistTo,apiBaseUrl:f}):m.Authorization=`Bearer ${await o()}`;let g,_=l.body;_!=null&&(_ instanceof FormData?g=_:Buffer.isBuffer(_)||_ instanceof Uint8Array||_ instanceof ArrayBuffer?(g=_,m[`Content-Type`]??=l.contentType??`application/octet-stream`):typeof _==`string`?(g=_,l.contentType&&(m[`Content-Type`]??=l.contentType)):(g=JSON.stringify(_),m[`Content-Type`]??=l.contentType??`application/json`));let v=await h(p,{method:u,headers:m,...g===void 0?{}:{body:g},...r(g)?{}:{signal:AbortSignal.timeout(i)}});if(!v.ok){let e=v.headers.get(`content-type`)??``,n;try{n=e.includes(`application/json`)?await v.json():await v.text()}catch{n=null}throw new t({statusCode:v.status,body:n,rawResponse:{status:v.status,statusText:v.statusText,url:v.url||p,headers:v.headers,redirected:v.redirected,type:v.type}})}let y=await v.arrayBuffer();return Buffer.from(y)}function l(e){process.stdout.write(e)}export{l as n,c as t};
@@ -0,0 +1,4 @@
1
+ #!/usr/bin/env node
2
+ import{n as e}from"./auth-BcNLQji1.mjs";import{t}from"./output-BJEgbI0G.mjs";import{t as n}from"./dry-run-gy0Hl9xo.mjs";import{t as r}from"./progress-CtGsPOpV.mjs";import{t as i}from"./run-DnZGQbq_.mjs";import"./telemetry-CvZean4s.mjs";var a={method:`GET`,path:()=>`/ready`,response:!1,errors:{400:`BadRequestError`,403:`ForbiddenError`,404:`NotFoundError`,429:`TooManyRequestsError`,500:`InternalServerError`}};function o(e){return e.usage(`$0 ready get
3
+
4
+ Return a success message after running readiness checks.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const s={command:`get`,describe:`Run readiness checks`,builder:o,handler:async o=>i({command:`ready get`,classification:{safeFlags:[`dry-run`]}},o,async()=>{if(o.dryRun){n({command:`cf ready get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/ready`,pathParams:{},bodyKind:`none`});return}let i=await e(o),s=await r(`Loading`,async()=>i.send(a));t(s,{successLabel:`Loaded`})})},c={command:`ready`,describe:`ready`,builder:e=>e.command(s).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};export{c as default};
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import"./api-eMuS5GI1.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{t}from"./local-B7ZJ78al.mjs";import{n}from"./auth-BUQscD5b.mjs";import{a as r,t as i}from"./context-Sgba0fZP.mjs";import{t as a}from"./output-CpiIVa7Q.mjs";import{t as o}from"./dry-run-BBjUQUhR.mjs";import{t as s}from"./progress-B1dpmxCT.mjs";import{t as c}from"./run-0EozpORq.mjs";import"./telemetry-BczXOpQn.mjs";import{a as l,n as u,r as d,t as f}from"./body-parser-ChnyBsfm.mjs";import{n as p}from"./input-validation-D7z60HJH.mjs";import{a as m,i as h,n as g}from"./prompt-Y5OBwDVE.mjs";var _={method:`GET`,path:t=>e`/accounts/${t.account_id}/realtime/kit/${t.app_id}/analytics/livestreams/daywise`,query:[`start_time`,`end_time`,`filters`]};function ee(e){return e.usage(`$0 realtime kit analytics livestreams daily get <app-id>
2
+ import"./api-eMuS5GI1.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{t}from"./local-CSH3UMpD.mjs";import{n}from"./auth-BcNLQji1.mjs";import{a as r,t as i}from"./context-DVh8Wyfs.mjs";import{t as a}from"./output-BJEgbI0G.mjs";import{t as o}from"./dry-run-gy0Hl9xo.mjs";import{t as s}from"./progress-CtGsPOpV.mjs";import{t as c}from"./run-DnZGQbq_.mjs";import"./telemetry-CvZean4s.mjs";import{a as l,n as u,r as d,t as f}from"./body-parser-ChnyBsfm.mjs";import{n as p}from"./input-validation-D7z60HJH.mjs";import{a as m,i as h,n as g}from"./prompt-YrI7ltMa.mjs";var _={method:`GET`,path:t=>e`/accounts/${t.account_id}/realtime/kit/${t.app_id}/analytics/livestreams/daywise`,query:[`start_time`,`end_time`,`filters`]};function ee(e){return e.usage(`$0 realtime kit analytics livestreams daily get <app-id>
3
3
 
4
4
  Returns day-wise livestream analytics for the specified time range.`).positional(`app-id`,{type:`string`,description:`The app identifier tag.`,demandOption:!0}).option(`start-time`,{type:`number`,description:`Specify the start time as a Unix timestamp in seconds to access the livestream analytics.`}).option(`end-time`,{type:`number`,description:`Specify the end time as a Unix timestamp in seconds to access the livestream analytics.`}).option(`filters`,{type:`string`,description:`Optional filters for livestream analytics.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const v={command:`get <app-id>`,describe:`Fetch day-wise analytics data for your livestreams`,builder:ee,handler:async e=>c({command:`realtime kit analytics livestreams daily get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{let c={start_time:e[`start-time`],end_time:e[`end-time`],filters:e.filters};if(e.dryRun){let t=await r();o({command:`cf realtime kit analytics livestreams daily get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/realtime/kit/${e[`app-id`]==null?`<app-id>`:encodeURIComponent(String(e[`app-id`]))}/analytics/livestreams/daywise`,pathParams:{"app-id":String(e[`app-id`]??``)},query:c,bodyKind:`none`});return}let l=await n(e),u=e.local?t:await i();e.accountId=u;let d=await s(`Loading`,async()=>l.send(_,{account_id:u,app_id:e[`app-id`],...c}));a(d,{successLabel:`Loaded`})})},te={command:`daily`,describe:`Daily livestream analytics for RealtimeKit applications`,builder:e=>e.command(v).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var ne={method:`GET`,path:t=>e`/accounts/${t.account_id}/realtime/kit/${t.app_id}/analytics/livestreams/overall`,query:[`start_time`,`end_time`,`filters`]};function re(e){return e.usage(`$0 realtime kit analytics livestreams get <app-id>
5
5
 
@@ -21,13 +21,11 @@ Returns details of all active livestreams for the given livestream ID. Retreive
21
21
 
22
22
  Starts livestream of a meeting associated with the given meeting ID. Retreive the meeting ID using the \`Create a meeting\` API.`).positional(`meeting-id`,{type:`string`,description:`ID of the meeting`,demandOption:!0}).option(`app-id`,{type:`string`,description:`The app identifier tag.`,demandOption:!0}).option(`name`,{type:`string`,description:`The name field`}).option(`video-config-height`,{type:`number`,description:`Height of the livestreaming video in pixels`}).option(`video-config-width`,{type:`number`,description:`Width of the livestreaming video in pixels`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const Oe={command:`start <meeting-id>`,describe:`Start livestreaming a meeting`,builder:E,handler:async e=>c({command:`realtime kit livestreams start`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await r();o({command:`cf realtime kit livestreams start`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/realtime/kit/${e[`app-id`]==null?`<app-id>`:encodeURIComponent(String(e[`app-id`]))}/meetings/${e[`meeting-id`]==null?`<meeting-id>`:encodeURIComponent(String(e[`meeting-id`]))}/livestreams`,pathParams:{"app-id":String(e[`app-id`]??``),"meeting-id":String(e[`meeting-id`]??``)},bodyKind:`json`,body:e.body===void 0?f({name:p(e.name,`name`,`text`),video_config:{height:e[`video-config-height`],width:e[`video-config-width`]}}):u(e.body)});return}let c=await n(e),l=e.local?t:await i();if(e.accountId=l,e.body){let t=u(e.body),n=await s(`Creating`,async()=>c.send(T,{body:t,account_id:l,app_id:e[`app-id`],meeting_id:e[`meeting-id`]}));a(n,{successLabel:`Created`});return}let d=f({name:p(e.name,`name`,`text`),video_config:{height:e[`video-config-height`],width:e[`video-config-width`]}}),m=await s(`Creating`,async()=>c.send(T,{body:d,account_id:l,app_id:e[`app-id`],meeting_id:e[`meeting-id`]}));a(m,{successLabel:`Created`})})};var ke={method:`POST`,path:t=>e`/accounts/${t.account_id}/realtime/kit/${t.app_id}/meetings/${t.meeting_id}/active-livestream/stop`};function Ae(e){return e.usage(`$0 realtime kit livestreams stop <meeting-id>
23
23
 
24
- Stops the active livestream of a meeting associated with the given meeting ID. Retreive the meeting ID using the \`Create a meeting\` API.`).positional(`meeting-id`,{type:`string`,description:`ID of the meeting`,demandOption:!0}).option(`app-id`,{type:`string`,description:`The app identifier tag.`,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 je={command:`stop <meeting-id>`,describe:`Stop livestreaming a meeting`,builder:Ae,handler:async e=>c({command:`realtime kit livestreams stop`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{if(e.dryRun){let t=await r();o({command:`cf realtime kit livestreams stop`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/realtime/kit/${e[`app-id`]==null?`<app-id>`:encodeURIComponent(String(e[`app-id`]))}/meetings/${e[`meeting-id`]==null?`<meeting-id>`:encodeURIComponent(String(e[`meeting-id`]))}/active-livestream/stop`,pathParams:{"app-id":String(e[`app-id`]??``),"meeting-id":String(e[`meeting-id`]??``)},bodyKind:`none`});return}let c=await n(e),l=e.local?t:await i();if(e.accountId=l,!await g({force:!!e.force,message:`This operation stops the active livestream. Viewers lose the broadcast immediately.`})){process.stderr.write(`Aborted.
25
- `);return}let u=await s(`Deleting`,async()=>c.send(ke,{account_id:l,app_id:e[`app-id`],meeting_id:e[`meeting-id`]}));a(u,{successLabel:`Deleted`})})},Me={command:`livestreams`,describe:`Independent and meeting-based livestreams and their sessions`,builder:e=>e.command(Se).command(Te).command(Oe).command(je).command(w).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var Ne={method:`GET`,path:t=>e`/accounts/${t.account_id}/realtime/kit/${t.app_id}/meetings/${t.meeting_id}/active-session`,errors:{404:`NotFoundError`}};function Pe(e){return e.usage(`$0 realtime kit meetings active get <meeting-id>
24
+ Stops the active livestream of a meeting associated with the given meeting ID. Retreive the meeting ID using the \`Create a meeting\` API.`).positional(`meeting-id`,{type:`string`,description:`ID of the meeting`,demandOption:!0}).option(`app-id`,{type:`string`,description:`The app identifier tag.`,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 je={command:`stop <meeting-id>`,describe:`Stop livestreaming a meeting`,builder:Ae,handler:async e=>c({command:`realtime kit livestreams stop`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{if(e.dryRun){let t=await r();o({command:`cf realtime kit livestreams stop`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/realtime/kit/${e[`app-id`]==null?`<app-id>`:encodeURIComponent(String(e[`app-id`]))}/meetings/${e[`meeting-id`]==null?`<meeting-id>`:encodeURIComponent(String(e[`meeting-id`]))}/active-livestream/stop`,pathParams:{"app-id":String(e[`app-id`]??``),"meeting-id":String(e[`meeting-id`]??``)},bodyKind:`none`});return}let c=await n(e),l=e.local?t:await i();if(e.accountId=l,!await g({force:!!e.force,message:`This operation stops the active livestream. Viewers lose the broadcast immediately.`}))return;let u=await s(`Deleting`,async()=>c.send(ke,{account_id:l,app_id:e[`app-id`],meeting_id:e[`meeting-id`]}));a(u,{successLabel:`Deleted`})})},Me={command:`livestreams`,describe:`Independent and meeting-based livestreams and their sessions`,builder:e=>e.command(Se).command(Te).command(Oe).command(je).command(w).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var Ne={method:`GET`,path:t=>e`/accounts/${t.account_id}/realtime/kit/${t.app_id}/meetings/${t.meeting_id}/active-session`,errors:{404:`NotFoundError`}};function Pe(e){return e.usage(`$0 realtime kit meetings active get <meeting-id>
26
25
 
27
26
  Returns details of an ongoing active session for the given meeting ID.`).positional(`meeting-id`,{type:`string`,description:`ID of the meeting`,demandOption:!0}).option(`app-id`,{type:`string`,description:`The app identifier tag.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const Fe={command:`get <meeting-id>`,describe:`Fetch details of an active session`,builder:Pe,handler:async e=>c({command:`realtime kit meetings active get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await r();o({command:`cf realtime kit meetings active get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/realtime/kit/${e[`app-id`]==null?`<app-id>`:encodeURIComponent(String(e[`app-id`]))}/meetings/${e[`meeting-id`]==null?`<meeting-id>`:encodeURIComponent(String(e[`meeting-id`]))}/active-session`,pathParams:{"app-id":String(e[`app-id`]??``),"meeting-id":String(e[`meeting-id`]??``)},bodyKind:`none`});return}let c=await n(e),l=e.local?t:await i();e.accountId=l;let u=await s(`Loading`,async()=>c.send(Ne,{account_id:l,app_id:e[`app-id`],meeting_id:e[`meeting-id`]}));a(u,{successLabel:`Loaded`})})};var Ie={method:`POST`,path:t=>e`/accounts/${t.account_id}/realtime/kit/${t.app_id}/meetings/${t.meeting_id}/active-session/kick-all`};function Le(e){return e.usage(`$0 realtime kit meetings active kick-all <meeting-id>
28
27
 
29
- Kicks all participants from an active session for the given meeting ID.`).positional(`meeting-id`,{type:`string`,description:`ID of the meeting`,demandOption:!0}).option(`app-id`,{type:`string`,description:`The app identifier tag.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`force`,{type:`boolean`,alias:`f`,description:`Skip confirmation (useful in scripts and CI)`,default:!1})}const Re={command:`kick-all <meeting-id>`,describe:`Kick all participants`,builder:Le,handler:async e=>c({command:`realtime kit meetings active kick-all`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{if(e.dryRun){let t=await r();o({command:`cf realtime kit meetings active kick-all`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/realtime/kit/${e[`app-id`]==null?`<app-id>`:encodeURIComponent(String(e[`app-id`]))}/meetings/${e[`meeting-id`]==null?`<meeting-id>`:encodeURIComponent(String(e[`meeting-id`]))}/active-session/kick-all`,pathParams:{"app-id":String(e[`app-id`]??``),"meeting-id":String(e[`meeting-id`]??``)},bodyKind:`none`});return}let c=await n(e),l=e.local?t:await i();if(e.accountId=l,!await g({force:!!e.force,message:`This operation disconnects every active participant immediately.`})){process.stderr.write(`Aborted.
30
- `);return}let u=await s(`Deleting`,async()=>c.send(Ie,{account_id:l,app_id:e[`app-id`],meeting_id:e[`meeting-id`]}));a(u,{successLabel:`Deleted`})})};var D={method:`POST`,path:t=>e`/accounts/${t.account_id}/realtime/kit/${t.app_id}/meetings/${t.meeting_id}/active-session/kick`,body:`json`,errors:{404:`NotFoundError`}};function ze(e){return e.usage(`$0 realtime kit meetings active kick <meeting-id>
28
+ Kicks all participants from an active session for the given meeting ID.`).positional(`meeting-id`,{type:`string`,description:`ID of the meeting`,demandOption:!0}).option(`app-id`,{type:`string`,description:`The app identifier tag.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`force`,{type:`boolean`,alias:`f`,description:`Skip confirmation (useful in scripts and CI)`,default:!1})}const Re={command:`kick-all <meeting-id>`,describe:`Kick all participants`,builder:Le,handler:async e=>c({command:`realtime kit meetings active kick-all`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{if(e.dryRun){let t=await r();o({command:`cf realtime kit meetings active kick-all`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/realtime/kit/${e[`app-id`]==null?`<app-id>`:encodeURIComponent(String(e[`app-id`]))}/meetings/${e[`meeting-id`]==null?`<meeting-id>`:encodeURIComponent(String(e[`meeting-id`]))}/active-session/kick-all`,pathParams:{"app-id":String(e[`app-id`]??``),"meeting-id":String(e[`meeting-id`]??``)},bodyKind:`none`});return}let c=await n(e),l=e.local?t:await i();if(e.accountId=l,!await g({force:!!e.force,message:`This operation disconnects every active participant immediately.`}))return;let u=await s(`Deleting`,async()=>c.send(Ie,{account_id:l,app_id:e[`app-id`],meeting_id:e[`meeting-id`]}));a(u,{successLabel:`Deleted`})})};var D={method:`POST`,path:t=>e`/accounts/${t.account_id}/realtime/kit/${t.app_id}/meetings/${t.meeting_id}/active-session/kick`,body:`json`,errors:{404:`NotFoundError`}};function ze(e){return e.usage(`$0 realtime kit meetings active kick <meeting-id>
31
29
 
32
30
  Kicks one or more participants from an active session using user ID or custom participant ID.`).positional(`meeting-id`,{type:`string`,description:`ID of the meeting`,demandOption:!0}).option(`app-id`,{type:`string`,description:`The app identifier tag.`,demandOption:!0}).option(`custom-participant-ids`,{type:`string`,array:!0,description:`The custom_participant_ids field`}).option(`participant-ids`,{type:`string`,array:!0,description:`The participant_ids field`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:"Request body for kicking participants from an active session. At least one of `participant_ids` or `custom_participant_ids` must contain a value."})}const Be={command:`kick <meeting-id>`,describe:`Kick participants from an active session`,builder:ze,handler:async e=>c({command:`realtime kit meetings active kick`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await r();o({command:`cf realtime kit meetings active kick`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/realtime/kit/${e[`app-id`]==null?`<app-id>`:encodeURIComponent(String(e[`app-id`]))}/meetings/${e[`meeting-id`]==null?`<meeting-id>`:encodeURIComponent(String(e[`meeting-id`]))}/active-session/kick`,pathParams:{"app-id":String(e[`app-id`]??``),"meeting-id":String(e[`meeting-id`]??``)},bodyKind:`json`,body:e.body===void 0?f({custom_participant_ids:e[`custom-participant-ids`],participant_ids:e[`participant-ids`]}):u(e.body)});return}let c=await n(e),l=e.local?t:await i();if(e.accountId=l,e.body){let t=u(e.body),n=await s(`Creating`,async()=>c.send(D,{body:t,account_id:l,app_id:e[`app-id`],meeting_id:e[`meeting-id`]}));a(n,{successLabel:`Created`});return}let d=f({custom_participant_ids:e[`custom-participant-ids`],participant_ids:e[`participant-ids`]}),p=await s(`Creating`,async()=>c.send(D,{body:d,account_id:l,app_id:e[`app-id`],meeting_id:e[`meeting-id`]}));a(p,{successLabel:`Created`})})};var O={method:`POST`,path:t=>e`/accounts/${t.account_id}/realtime/kit/${t.app_id}/meetings/${t.meeting_id}/active-session/mute-all`,body:`json`};function Ve(e){return e.usage(`$0 realtime kit meetings active mute-all <meeting-id>
33
31
 
@@ -49,8 +47,7 @@ Returns details of all active livestreams for the given meeting ID.`).positional
49
47
 
50
48
  Adds a participant to the given meeting ID.`).positional(`meeting-id`,{type:`string`,description:`ID of the meeting. Fetch the meeting ID using the create a meeting API.`,demandOption:!0}).option(`app-id`,{type:`string`,description:`The app identifier tag.`,demandOption:!0}).option(`custom-participant-id`,{type:`string`,description:`A unique participant ID. You must specify a unique ID for the participant, for example, UUID, email address, and so on. `}).option(`name`,{type:`string`,description:`(Optional) Name of the participant. `}).option(`picture`,{type:`string`,description:`(Optional) A URL to a picture to be used for the participant. `}).option(`preset-name`,{type:`string`,description:`Name of the preset to apply to this participant.`,default:`group_call_host`}).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 dt={command:`create <meeting-id>`,describe:`Add a participant`,builder:ut,handler:async e=>c({command:`realtime kit meetings participants create`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await r();o({command:`cf realtime kit meetings participants create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/realtime/kit/${e[`app-id`]==null?`<app-id>`:encodeURIComponent(String(e[`app-id`]))}/meetings/${e[`meeting-id`]==null?`<meeting-id>`:encodeURIComponent(String(e[`meeting-id`]))}/participants`,pathParams:{"app-id":String(e[`app-id`]??``),"meeting-id":String(e[`meeting-id`]??``)},bodyKind:`json`,body:e.body===void 0?f({custom_participant_id:p(e[`custom-participant-id`],`custom-participant-id`,`text`),name:p(e.name,`name`,`text`),picture:p(e.picture,`picture`,`text`),preset_name:p(e[`preset-name`],`preset-name`,`text`)}):u(e.body)});return}let c=await n(e),l=e.local?t:await i();if(e.accountId=l,e.body){let t=u(e.body),n=await s(`Creating`,async()=>c.send(M,{body:t,account_id:l,app_id:e[`app-id`],meeting_id:e[`meeting-id`]}));a(n,{successLabel:`Created`});return}e[`custom-participant-id`]===void 0&&(e[`custom-participant-id`]=await m(`custom-participant-id`,`A unique participant ID. You must specify a unique ID for the participant, for example, UUID, email address, and so on. `)),e[`preset-name`]===void 0&&(e[`preset-name`]=await m(`preset-name`,`Name of the preset to apply to this participant.`));let d=f({custom_participant_id:p(e[`custom-participant-id`],`custom-participant-id`,`text`),name:p(e.name,`name`,`text`),picture:p(e.picture,`picture`,`text`),preset_name:p(e[`preset-name`],`preset-name`,`text`)}),h=await s(`Creating`,async()=>c.send(M,{body:d,account_id:l,app_id:e[`app-id`],meeting_id:e[`meeting-id`]}));a(h,{successLabel:`Created`})})};var ft={method:`DELETE`,path:t=>e`/accounts/${t.account_id}/realtime/kit/${t.app_id}/meetings/${t.meeting_id}/participants/${t.participant_id}`,errors:{500:`InternalServerError`}};function pt(e){return e.usage(`$0 realtime kit meetings participants delete <participant-id>
51
49
 
52
- Deletes a participant for the given meeting and participant ID.`).positional(`participant-id`,{type:`string`,description:`ID of the participant. You can fetch the participant ID using the add a participant API.`,demandOption:!0}).option(`app-id`,{type:`string`,description:`The app identifier tag.`,demandOption:!0}).option(`meeting-id`,{type:`string`,description:`ID of the meeting. You can fetch the meeting ID using the create a meeting API.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`force`,{type:`boolean`,alias:`f`,description:`Skip confirmation (useful in scripts and CI)`,default:!1})}const mt={command:`delete <participant-id>`,describe:`Delete a participant`,builder:pt,handler:async e=>c({command:`realtime kit meetings participants delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{if(e.dryRun){let t=await r();o({command:`cf realtime kit meetings participants delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/realtime/kit/${e[`app-id`]==null?`<app-id>`:encodeURIComponent(String(e[`app-id`]))}/meetings/${e[`meeting-id`]==null?`<meeting-id>`:encodeURIComponent(String(e[`meeting-id`]))}/participants/${e[`participant-id`]==null?`<participant-id>`:encodeURIComponent(String(e[`participant-id`]))}`,pathParams:{"app-id":String(e[`app-id`]??``),"meeting-id":String(e[`meeting-id`]??``),"participant-id":String(e[`participant-id`]??``)},bodyKind:`none`});return}let c=await n(e),l=e.local?t:await i();if(e.accountId=l,!await g({force:!!e.force,message:`This operation removes the participant from the meeting and revokes their authentication token.`})){process.stderr.write(`Aborted.
53
- `);return}let u=await s(`Deleting`,async()=>c.send(ft,{account_id:l,app_id:e[`app-id`],meeting_id:e[`meeting-id`],participant_id:e[`participant-id`]}));a(u,{successLabel:`Deleted`})})};var ht={method:`GET`,path:t=>e`/accounts/${t.account_id}/realtime/kit/${t.app_id}/meetings/${t.meeting_id}/participants/${t.participant_id}`,errors:{500:`InternalServerError`}};function gt(e){return e.usage(`$0 realtime kit meetings participants get <participant-id>
50
+ Deletes a participant for the given meeting and participant ID.`).positional(`participant-id`,{type:`string`,description:`ID of the participant. You can fetch the participant ID using the add a participant API.`,demandOption:!0}).option(`app-id`,{type:`string`,description:`The app identifier tag.`,demandOption:!0}).option(`meeting-id`,{type:`string`,description:`ID of the meeting. You can fetch the meeting ID using the create a meeting API.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`force`,{type:`boolean`,alias:`f`,description:`Skip confirmation (useful in scripts and CI)`,default:!1})}const mt={command:`delete <participant-id>`,describe:`Delete a participant`,builder:pt,handler:async e=>c({command:`realtime kit meetings participants delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{if(e.dryRun){let t=await r();o({command:`cf realtime kit meetings participants delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/realtime/kit/${e[`app-id`]==null?`<app-id>`:encodeURIComponent(String(e[`app-id`]))}/meetings/${e[`meeting-id`]==null?`<meeting-id>`:encodeURIComponent(String(e[`meeting-id`]))}/participants/${e[`participant-id`]==null?`<participant-id>`:encodeURIComponent(String(e[`participant-id`]))}`,pathParams:{"app-id":String(e[`app-id`]??``),"meeting-id":String(e[`meeting-id`]??``),"participant-id":String(e[`participant-id`]??``)},bodyKind:`none`});return}let c=await n(e),l=e.local?t:await i();if(e.accountId=l,!await g({force:!!e.force,message:`This operation removes the participant from the meeting and revokes their authentication token.`}))return;let u=await s(`Deleting`,async()=>c.send(ft,{account_id:l,app_id:e[`app-id`],meeting_id:e[`meeting-id`],participant_id:e[`participant-id`]}));a(u,{successLabel:`Deleted`})})};var ht={method:`GET`,path:t=>e`/accounts/${t.account_id}/realtime/kit/${t.app_id}/meetings/${t.meeting_id}/participants/${t.participant_id}`,errors:{500:`InternalServerError`}};function gt(e){return e.usage(`$0 realtime kit meetings participants get <participant-id>
54
51
 
55
52
  Returns a participant details for the given meeting and participant ID.`).positional(`participant-id`,{type:`string`,description:`ID of the participant. You can fetch the participant ID using the add a participant API.`,demandOption:!0}).option(`app-id`,{type:`string`,description:`The app identifier tag.`,demandOption:!0}).option(`meeting-id`,{type:`string`,description:`ID of the meeting. You can fetch the meeting ID using the create a meeting API.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const _t={command:`get <participant-id>`,describe:`Fetch a participant's detail`,builder:gt,handler:async e=>c({command:`realtime kit meetings participants get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await r();o({command:`cf realtime kit meetings participants get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/realtime/kit/${e[`app-id`]==null?`<app-id>`:encodeURIComponent(String(e[`app-id`]))}/meetings/${e[`meeting-id`]==null?`<meeting-id>`:encodeURIComponent(String(e[`meeting-id`]))}/participants/${e[`participant-id`]==null?`<participant-id>`:encodeURIComponent(String(e[`participant-id`]))}`,pathParams:{"app-id":String(e[`app-id`]??``),"meeting-id":String(e[`meeting-id`]??``),"participant-id":String(e[`participant-id`]??``)},bodyKind:`none`});return}let c=await n(e),l=e.local?t:await i();e.accountId=l;let u=await s(`Loading`,async()=>c.send(ht,{account_id:l,app_id:e[`app-id`],meeting_id:e[`meeting-id`],participant_id:e[`participant-id`]}));a(u,{successLabel:`Loaded`})})};var vt={method:`GET`,path:t=>e`/accounts/${t.account_id}/realtime/kit/${t.app_id}/meetings/${t.meeting_id}/participants`,query:[`page_no`,`per_page`],errors:{500:`InternalServerError`}};function yt(e){return e.usage(`$0 realtime kit meetings participants list
56
53
 
@@ -68,8 +65,7 @@ Updates a meeting in an App for the given meeting ID.`).positional(`meeting-id`,
68
65
 
69
66
  Creates a preset belonging to the current App`).positional(`app-id`,{type:`string`,description:`The app identifier tag.`,demandOption:!0}).option(`config-livestream-viewer-qualities`,{type:`string`,array:!0,description:`Livestream viewer quality levels.`}).option(`config-max-screenshare-count`,{type:`number`,description:`Maximum number of screen shares that can be active at a given time`}).option(`config-max-video-streams-desktop`,{type:`number`,description:`Maximum number of video streams visible on desktop devices`}).option(`config-max-video-streams-mobile`,{type:`number`,description:`Maximum number of streams visible on mobile devices`}).option(`config-media-audio-enable-high-bitrate`,{type:`boolean`,description:`Enable High Quality Audio for your meetings`}).option(`config-media-audio-enable-stereo`,{type:`boolean`,description:`Enable Stereo for your meetings`}).option(`config-media-screenshare-frame-rate`,{type:`number`,description:`Frame rate of screen share`}).option(`config-media-screenshare-quality`,{type:`string`,description:`Quality of screen share `,choices:[`hd`,`vga`,`qvga`,`fhd`,`uhd`]}).coerce(`config-media-screenshare-quality`,e=>p(e,`config-media-screenshare-quality`,`text`)).option(`config-media-video-frame-rate`,{type:`number`,description:`Frame rate of participants' video`}).option(`config-media-video-quality`,{type:`string`,description:`Video quality of participants`,choices:[`hd`,`vga`,`qvga`,`fhd`,`uhd`]}).coerce(`config-media-video-quality`,e=>p(e,`config-media-video-quality`,`text`)).option(`config-media-video-simulcast`,{type:`boolean`,description:`Enable simulcast for participant videos.`,default:!1}).option(`config-view-type`,{type:`string`,description:`Type of the meeting`,choices:[`GROUP_CALL`,`WEBINAR`,`AUDIO_ROOM`,`LIVESTREAM`]}).coerce(`config-view-type`,e=>p(e,`config-view-type`,`text`)).option(`name`,{type:`string`,description:`Name of the preset`}).option(`permissions-accept-stage-requests`,{type:`boolean`,description:`The permissions.accept_stage_requests field`}).option(`permissions-accept-waiting-requests`,{type:`boolean`,description:`Whether this participant can accept waiting requests`}).option(`permissions-can-accept-production-requests`,{type:`boolean`,description:`The permissions.can_accept_production_requests field`}).option(`permissions-can-change-participant-permissions`,{type:`boolean`,description:`The permissions.can_change_participant_permissions field`}).option(`permissions-can-edit-display-name`,{type:`boolean`,description:`The permissions.can_edit_display_name field`}).option(`permissions-can-livestream`,{type:`boolean`,description:`The permissions.can_livestream field`}).option(`permissions-can-record`,{type:`boolean`,description:`The permissions.can_record field`}).option(`permissions-can-spotlight`,{type:`boolean`,description:`The permissions.can_spotlight field`}).option(`permissions-chat-private-can-receive`,{type:`boolean`,description:`The permissions.chat.private.can_receive field`}).option(`permissions-chat-private-can-send`,{type:`boolean`,description:`The permissions.chat.private.can_send field`}).option(`permissions-chat-private-files`,{type:`boolean`,description:`The permissions.chat.private.files field`}).option(`permissions-chat-private-text`,{type:`boolean`,description:`The permissions.chat.private.text field`}).option(`permissions-chat-public-can-send`,{type:`boolean`,description:`Can send messages in general`}).option(`permissions-chat-public-files`,{type:`boolean`,description:`Can send file messages`}).option(`permissions-chat-public-text`,{type:`boolean`,description:`Can send text messages`}).option(`permissions-connected-meetings-can-alter-connected-meetings`,{type:`boolean`,description:`The permissions.connected_meetings.can_alter_connected_meetings field`}).option(`permissions-connected-meetings-can-switch-connected-meetings`,{type:`boolean`,description:`The permissions.connected_meetings.can_switch_connected_meetings field`}).option(`permissions-connected-meetings-can-switch-to-parent-meeting`,{type:`boolean`,description:`The permissions.connected_meetings.can_switch_to_parent_meeting field`}).option(`permissions-disable-participant-audio`,{type:`boolean`,description:`The permissions.disable_participant_audio field`}).option(`permissions-disable-participant-screensharing`,{type:`boolean`,description:`The permissions.disable_participant_screensharing field`}).option(`permissions-disable-participant-video`,{type:`boolean`,description:`The permissions.disable_participant_video field`}).option(`permissions-hidden-participant`,{type:`boolean`,description:`Whether this participant is visible to others or not`}).option(`permissions-is-recorder`,{type:`boolean`,description:`The permissions.is_recorder field`}).option(`permissions-kick-participant`,{type:`boolean`,description:`The permissions.kick_participant field`}).option(`permissions-media-audio-can-produce`,{type:`string`,description:`Can produce audio`,choices:[`ALLOWED`,`NOT_ALLOWED`,`CAN_REQUEST`]}).coerce(`permissions-media-audio-can-produce`,e=>p(e,`permissions-media-audio-can-produce`,`text`)).option(`permissions-media-screenshare-can-produce`,{type:`string`,description:`Can produce screen share video`,choices:[`ALLOWED`,`NOT_ALLOWED`,`CAN_REQUEST`]}).coerce(`permissions-media-screenshare-can-produce`,e=>p(e,`permissions-media-screenshare-can-produce`,`text`)).option(`permissions-media-video-can-produce`,{type:`string`,description:`Can produce video`,choices:[`ALLOWED`,`NOT_ALLOWED`,`CAN_REQUEST`]}).coerce(`permissions-media-video-can-produce`,e=>p(e,`permissions-media-video-can-produce`,`text`)).option(`permissions-pin-participant`,{type:`boolean`,description:`The permissions.pin_participant field`}).option(`permissions-plugins-can-close`,{type:`boolean`,description:`Can close plugins that are already open`}).option(`permissions-plugins-can-edit-config`,{type:`boolean`,description:`Can edit plugin config`}).option(`permissions-plugins-can-start`,{type:`boolean`,description:`Can start plugins`}).option(`permissions-plugins-config`,{type:`string`,description:`Plugin configuration keyed by plugin UUID. Provide as a JSON object or @path/to/file.json.`}).option(`permissions-polls-can-create`,{type:`boolean`,description:`Can create polls`}).option(`permissions-polls-can-view`,{type:`boolean`,description:`Can view polls`}).option(`permissions-polls-can-vote`,{type:`boolean`,description:`Can vote on polls`}).option(`permissions-recorder-type`,{type:`string`,description:`Type of the recording peer`,choices:[`RECORDER`,`LIVESTREAMER`,`NONE`]}).coerce(`permissions-recorder-type`,e=>p(e,`permissions-recorder-type`,`text`)).option(`permissions-show-participant-list`,{type:`boolean`,description:`The permissions.show_participant_list field`}).option(`permissions-stage-access`,{type:`string`,description:`The permissions.stage_access field`,choices:[`ALLOWED`,`NOT_ALLOWED`,`CAN_REQUEST`]}).coerce(`permissions-stage-access`,e=>p(e,`permissions-stage-access`,`text`)).option(`permissions-stage-enabled`,{type:`boolean`,description:`The permissions.stage_enabled field`}).option(`permissions-transcription-enabled`,{type:`boolean`,description:`The permissions.transcription_enabled field`}).option(`permissions-waiting-room-type`,{type:`string`,description:`Waiting room type`,choices:[`SKIP`,`ON_PRIVILEGED_USER_ENTRY`,`SKIP_ON_ACCEPT`]}).coerce(`permissions-waiting-room-type`,e=>p(e,`permissions-waiting-room-type`,`text`)).option(`ui-design-tokens-border-radius`,{type:`string`,description:`The ui.design_tokens.border_radius field`,choices:[`sharp`,`rounded`,`extra-rounded`,`circular`]}).coerce(`ui-design-tokens-border-radius`,e=>p(e,`ui-design-tokens-border-radius`,`text`)).option(`ui-design-tokens-border-width`,{type:`string`,description:`The ui.design_tokens.border_width field`,choices:[`none`,`thin`,`fat`]}).coerce(`ui-design-tokens-border-width`,e=>p(e,`ui-design-tokens-border-width`,`text`)).option(`ui-design-tokens-colors-danger`,{type:`string`,description:`The ui.design_tokens.colors.danger field`}).option(`ui-design-tokens-colors-success`,{type:`string`,description:`The ui.design_tokens.colors.success field`}).option(`ui-design-tokens-colors-text`,{type:`string`,description:`The ui.design_tokens.colors.text field`}).option(`ui-design-tokens-colors-text-on-brand`,{type:`string`,description:`The ui.design_tokens.colors.text_on_brand field`}).option(`ui-design-tokens-colors-video-bg`,{type:`string`,description:`The ui.design_tokens.colors.video_bg field`}).option(`ui-design-tokens-colors-warning`,{type:`string`,description:`The ui.design_tokens.colors.warning field`}).option(`ui-design-tokens-font-family`,{type:`string`,description:`The ui.design_tokens.font_family field`}).option(`ui-design-tokens-google-font`,{type:`string`,description:`The ui.design_tokens.google_font field`}).option(`ui-design-tokens-logo`,{type:`string`,description:`The ui.design_tokens.logo field`}).option(`ui-design-tokens-spacing-base`,{type:`number`,description:`The ui.design_tokens.spacing_base field`}).option(`ui-design-tokens-theme`,{type:`string`,description:`The ui.design_tokens.theme field`,choices:[`darkest`,`dark`,`light`]}).coerce(`ui-design-tokens-theme`,e=>p(e,`ui-design-tokens-theme`,`text`)).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 It={command:`create <app-id>`,describe:`Create a preset`,builder:Ft,handler:async e=>c({command:`realtime kit presets create`,classification:{safeFlags:/* @__PURE__ */ `config-media-audio-enable-high-bitrate.config-media-audio-enable-stereo.config-media-screenshare-quality.config-media-video-quality.config-media-video-simulcast.config-view-type.permissions-accept-stage-requests.permissions-accept-waiting-requests.permissions-can-accept-production-requests.permissions-can-change-participant-permissions.permissions-can-edit-display-name.permissions-can-livestream.permissions-can-record.permissions-can-spotlight.permissions-chat-private-can-receive.permissions-chat-private-can-send.permissions-chat-private-files.permissions-chat-private-text.permissions-chat-public-can-send.permissions-chat-public-files.permissions-chat-public-text.permissions-connected-meetings-can-alter-connected-meetings.permissions-connected-meetings-can-switch-connected-meetings.permissions-connected-meetings-can-switch-to-parent-meeting.permissions-disable-participant-audio.permissions-disable-participant-screensharing.permissions-disable-participant-video.permissions-hidden-participant.permissions-is-recorder.permissions-kick-participant.permissions-media-audio-can-produce.permissions-media-screenshare-can-produce.permissions-media-video-can-produce.permissions-pin-participant.permissions-plugins-can-close.permissions-plugins-can-edit-config.permissions-plugins-can-start.permissions-polls-can-create.permissions-polls-can-view.permissions-polls-can-vote.permissions-recorder-type.permissions-show-participant-list.permissions-stage-access.permissions-stage-enabled.permissions-transcription-enabled.permissions-waiting-room-type.ui-design-tokens-border-radius.ui-design-tokens-border-width.ui-design-tokens-theme.dry-run`.split(`.`)}},e,async()=>{if(e.dryRun){let t=await r();o({command:`cf realtime kit presets create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/realtime/kit/${e[`app-id`]==null?`<app-id>`:encodeURIComponent(String(e[`app-id`]))}/presets`,pathParams:{"app-id":String(e[`app-id`]??``)},bodyKind:`json`,body:e.body===void 0?f({config:{livestream_viewer_qualities:e[`config-livestream-viewer-qualities`],max_screenshare_count:e[`config-max-screenshare-count`],max_video_streams:{desktop:e[`config-max-video-streams-desktop`],mobile:e[`config-max-video-streams-mobile`]},media:{audio:{enable_high_bitrate:e[`config-media-audio-enable-high-bitrate`],enable_stereo:e[`config-media-audio-enable-stereo`]},screenshare:{frame_rate:e[`config-media-screenshare-frame-rate`],quality:e[`config-media-screenshare-quality`]},video:{frame_rate:e[`config-media-video-frame-rate`],quality:e[`config-media-video-quality`],simulcast:e[`config-media-video-simulcast`]}},view_type:e[`config-view-type`]},name:p(e.name,`name`,`text`),permissions:{accept_stage_requests:e[`permissions-accept-stage-requests`],accept_waiting_requests:e[`permissions-accept-waiting-requests`],can_accept_production_requests:e[`permissions-can-accept-production-requests`],can_change_participant_permissions:e[`permissions-can-change-participant-permissions`],can_edit_display_name:e[`permissions-can-edit-display-name`],can_livestream:e[`permissions-can-livestream`],can_record:e[`permissions-can-record`],can_spotlight:e[`permissions-can-spotlight`],chat:{private:{can_receive:e[`permissions-chat-private-can-receive`],can_send:e[`permissions-chat-private-can-send`],files:e[`permissions-chat-private-files`],text:e[`permissions-chat-private-text`]},public:{can_send:e[`permissions-chat-public-can-send`],files:e[`permissions-chat-public-files`],text:e[`permissions-chat-public-text`]}},connected_meetings:{can_alter_connected_meetings:e[`permissions-connected-meetings-can-alter-connected-meetings`],can_switch_connected_meetings:e[`permissions-connected-meetings-can-switch-connected-meetings`],can_switch_to_parent_meeting:e[`permissions-connected-meetings-can-switch-to-parent-meeting`]},disable_participant_audio:e[`permissions-disable-participant-audio`],disable_participant_screensharing:e[`permissions-disable-participant-screensharing`],disable_participant_video:e[`permissions-disable-participant-video`],hidden_participant:e[`permissions-hidden-participant`],is_recorder:e[`permissions-is-recorder`],kick_participant:e[`permissions-kick-participant`],media:{audio:{can_produce:e[`permissions-media-audio-can-produce`]},screenshare:{can_produce:e[`permissions-media-screenshare-can-produce`]},video:{can_produce:e[`permissions-media-video-can-produce`]}},pin_participant:e[`permissions-pin-participant`],plugins:{can_close:e[`permissions-plugins-can-close`],can_edit_config:e[`permissions-plugins-can-edit-config`],can_start:e[`permissions-plugins-can-start`],config:d(e[`permissions-plugins-config`],`permissions-plugins-config`,!0)},polls:{can_create:e[`permissions-polls-can-create`],can_view:e[`permissions-polls-can-view`],can_vote:e[`permissions-polls-can-vote`]},recorder_type:e[`permissions-recorder-type`],show_participant_list:e[`permissions-show-participant-list`],stage_access:e[`permissions-stage-access`],stage_enabled:e[`permissions-stage-enabled`],transcription_enabled:e[`permissions-transcription-enabled`],waiting_room_type:e[`permissions-waiting-room-type`]},ui:{design_tokens:{border_radius:e[`ui-design-tokens-border-radius`],border_width:e[`ui-design-tokens-border-width`],colors:{danger:p(e[`ui-design-tokens-colors-danger`],`ui-design-tokens-colors-danger`,`text`),success:p(e[`ui-design-tokens-colors-success`],`ui-design-tokens-colors-success`,`text`),text:p(e[`ui-design-tokens-colors-text`],`ui-design-tokens-colors-text`,`text`),text_on_brand:p(e[`ui-design-tokens-colors-text-on-brand`],`ui-design-tokens-colors-text-on-brand`,`text`),video_bg:p(e[`ui-design-tokens-colors-video-bg`],`ui-design-tokens-colors-video-bg`,`text`),warning:p(e[`ui-design-tokens-colors-warning`],`ui-design-tokens-colors-warning`,`text`)},font_family:p(e[`ui-design-tokens-font-family`],`ui-design-tokens-font-family`,`text`),google_font:p(e[`ui-design-tokens-google-font`],`ui-design-tokens-google-font`,`text`),logo:p(e[`ui-design-tokens-logo`],`ui-design-tokens-logo`,`text`),spacing_base:e[`ui-design-tokens-spacing-base`],theme:e[`ui-design-tokens-theme`]}}},[[`permissions`,`plugins`,`config`]]):u(e.body,[{path:[`permissions`,`plugins`,`config`],flag:`permissions-plugins-config`}])});return}let c=await n(e),l=e.local?t:await i();if(e.accountId=l,e.body){let t=u(e.body,[{path:[`permissions`,`plugins`,`config`],flag:`permissions-plugins-config`}]),n=await s(`Creating`,async()=>c.send(L,{body:t,account_id:l,app_id:e[`app-id`]}));a(n,{successLabel:`Created`});return}if(e[`config-max-screenshare-count`]===void 0)throw Error(`--config-max-screenshare-count is required (or pass --body with this field set).`);if(e[`config-max-video-streams-desktop`]===void 0)throw Error(`--config-max-video-streams-desktop is required (or pass --body with this field set).`);if(e[`config-max-video-streams-mobile`]===void 0)throw Error(`--config-max-video-streams-mobile is required (or pass --body with this field set).`);if(e[`config-media-screenshare-frame-rate`]===void 0)throw Error(`--config-media-screenshare-frame-rate is required (or pass --body with this field set).`);if(e[`config-media-screenshare-quality`]===void 0&&(e[`config-media-screenshare-quality`]=await h(`config-media-screenshare-quality`,`Quality of screen share `,[`hd`,`vga`,`qvga`,`fhd`,`uhd`])),e[`config-media-video-frame-rate`]===void 0)throw Error(`--config-media-video-frame-rate is required (or pass --body with this field set).`);if(e[`config-media-video-quality`]===void 0&&(e[`config-media-video-quality`]=await h(`config-media-video-quality`,`Video quality of participants`,[`hd`,`vga`,`qvga`,`fhd`,`uhd`])),e[`config-view-type`]===void 0&&(e[`config-view-type`]=await h(`config-view-type`,`Type of the meeting`,[`GROUP_CALL`,`WEBINAR`,`AUDIO_ROOM`,`LIVESTREAM`])),e.name===void 0&&(e.name=await m(`name`,`Name of the preset`)),e[`permissions-accept-waiting-requests`]===void 0)throw Error(`--permissions-accept-waiting-requests is required (or pass --body with this field set).`);if(e[`permissions-can-accept-production-requests`]===void 0)throw Error(`--permissions-can-accept-production-requests is required (or pass --body with this field set).`);if(e[`permissions-can-change-participant-permissions`]===void 0)throw Error(`--permissions-can-change-participant-permissions is required (or pass --body with this field set).`);if(e[`permissions-can-edit-display-name`]===void 0)throw Error(`--permissions-can-edit-display-name is required (or pass --body with this field set).`);if(e[`permissions-can-livestream`]===void 0)throw Error(`--permissions-can-livestream is required (or pass --body with this field set).`);if(e[`permissions-can-record`]===void 0)throw Error(`--permissions-can-record is required (or pass --body with this field set).`);if(e[`permissions-can-spotlight`]===void 0)throw Error(`--permissions-can-spotlight is required (or pass --body with this field set).`);if(e[`permissions-chat-private-can-receive`]===void 0)throw Error(`--permissions-chat-private-can-receive is required (or pass --body with this field set).`);if(e[`permissions-chat-private-can-send`]===void 0)throw Error(`--permissions-chat-private-can-send is required (or pass --body with this field set).`);if(e[`permissions-chat-private-files`]===void 0)throw Error(`--permissions-chat-private-files is required (or pass --body with this field set).`);if(e[`permissions-chat-private-text`]===void 0)throw Error(`--permissions-chat-private-text is required (or pass --body with this field set).`);if(e[`permissions-chat-public-can-send`]===void 0)throw Error(`--permissions-chat-public-can-send is required (or pass --body with this field set).`);if(e[`permissions-chat-public-files`]===void 0)throw Error(`--permissions-chat-public-files is required (or pass --body with this field set).`);if(e[`permissions-chat-public-text`]===void 0)throw Error(`--permissions-chat-public-text is required (or pass --body with this field set).`);if(e[`permissions-connected-meetings-can-alter-connected-meetings`]===void 0)throw Error(`--permissions-connected-meetings-can-alter-connected-meetings is required (or pass --body with this field set).`);if(e[`permissions-connected-meetings-can-switch-connected-meetings`]===void 0)throw Error(`--permissions-connected-meetings-can-switch-connected-meetings is required (or pass --body with this field set).`);if(e[`permissions-connected-meetings-can-switch-to-parent-meeting`]===void 0)throw Error(`--permissions-connected-meetings-can-switch-to-parent-meeting is required (or pass --body with this field set).`);if(e[`permissions-disable-participant-audio`]===void 0)throw Error(`--permissions-disable-participant-audio is required (or pass --body with this field set).`);if(e[`permissions-disable-participant-screensharing`]===void 0)throw Error(`--permissions-disable-participant-screensharing is required (or pass --body with this field set).`);if(e[`permissions-disable-participant-video`]===void 0)throw Error(`--permissions-disable-participant-video is required (or pass --body with this field set).`);if(e[`permissions-hidden-participant`]===void 0)throw Error(`--permissions-hidden-participant is required (or pass --body with this field set).`);if(e[`permissions-kick-participant`]===void 0)throw Error(`--permissions-kick-participant is required (or pass --body with this field set).`);if(e[`permissions-media-audio-can-produce`]===void 0&&(e[`permissions-media-audio-can-produce`]=await h(`permissions-media-audio-can-produce`,`Can produce audio`,[`ALLOWED`,`NOT_ALLOWED`,`CAN_REQUEST`])),e[`permissions-media-screenshare-can-produce`]===void 0&&(e[`permissions-media-screenshare-can-produce`]=await h(`permissions-media-screenshare-can-produce`,`Can produce screen share video`,[`ALLOWED`,`NOT_ALLOWED`,`CAN_REQUEST`])),e[`permissions-media-video-can-produce`]===void 0&&(e[`permissions-media-video-can-produce`]=await h(`permissions-media-video-can-produce`,`Can produce video`,[`ALLOWED`,`NOT_ALLOWED`,`CAN_REQUEST`])),e[`permissions-pin-participant`]===void 0)throw Error(`--permissions-pin-participant is required (or pass --body with this field set).`);if(e[`permissions-plugins-can-close`]===void 0)throw Error(`--permissions-plugins-can-close is required (or pass --body with this field set).`);if(e[`permissions-plugins-can-edit-config`]===void 0)throw Error(`--permissions-plugins-can-edit-config is required (or pass --body with this field set).`);if(e[`permissions-plugins-can-start`]===void 0)throw Error(`--permissions-plugins-can-start is required (or pass --body with this field set).`);if(e[`permissions-plugins-config`]===void 0)throw Error(`--permissions-plugins-config is required (or pass --body with this field set).`);if(e[`permissions-polls-can-create`]===void 0)throw Error(`--permissions-polls-can-create is required (or pass --body with this field set).`);if(e[`permissions-polls-can-view`]===void 0)throw Error(`--permissions-polls-can-view is required (or pass --body with this field set).`);if(e[`permissions-polls-can-vote`]===void 0)throw Error(`--permissions-polls-can-vote is required (or pass --body with this field set).`);if(e[`permissions-recorder-type`]===void 0&&(e[`permissions-recorder-type`]=await h(`permissions-recorder-type`,`Type of the recording peer`,[`RECORDER`,`LIVESTREAMER`,`NONE`])),e[`permissions-show-participant-list`]===void 0)throw Error(`--permissions-show-participant-list is required (or pass --body with this field set).`);if(e[`permissions-waiting-room-type`]===void 0&&(e[`permissions-waiting-room-type`]=await h(`permissions-waiting-room-type`,`Waiting room type`,[`SKIP`,`ON_PRIVILEGED_USER_ENTRY`,`SKIP_ON_ACCEPT`])),e[`ui-design-tokens-border-radius`]===void 0&&(e[`ui-design-tokens-border-radius`]=await h(`ui-design-tokens-border-radius`,`The ui.design_tokens.border_radius field`,[`sharp`,`rounded`,`extra-rounded`,`circular`])),e[`ui-design-tokens-border-width`]===void 0&&(e[`ui-design-tokens-border-width`]=await h(`ui-design-tokens-border-width`,`The ui.design_tokens.border_width field`,[`none`,`thin`,`fat`])),e[`ui-design-tokens-colors-danger`]===void 0&&(e[`ui-design-tokens-colors-danger`]=await m(`ui-design-tokens-colors-danger`,`The ui.design_tokens.colors.danger field`)),e[`ui-design-tokens-colors-success`]===void 0&&(e[`ui-design-tokens-colors-success`]=await m(`ui-design-tokens-colors-success`,`The ui.design_tokens.colors.success field`)),e[`ui-design-tokens-colors-text`]===void 0&&(e[`ui-design-tokens-colors-text`]=await m(`ui-design-tokens-colors-text`,`The ui.design_tokens.colors.text field`)),e[`ui-design-tokens-colors-text-on-brand`]===void 0&&(e[`ui-design-tokens-colors-text-on-brand`]=await m(`ui-design-tokens-colors-text-on-brand`,`The ui.design_tokens.colors.text_on_brand field`)),e[`ui-design-tokens-colors-video-bg`]===void 0&&(e[`ui-design-tokens-colors-video-bg`]=await m(`ui-design-tokens-colors-video-bg`,`The ui.design_tokens.colors.video_bg field`)),e[`ui-design-tokens-colors-warning`]===void 0&&(e[`ui-design-tokens-colors-warning`]=await m(`ui-design-tokens-colors-warning`,`The ui.design_tokens.colors.warning field`)),e[`ui-design-tokens-spacing-base`]===void 0)throw Error(`--ui-design-tokens-spacing-base is required (or pass --body with this field set).`);e[`ui-design-tokens-theme`]===void 0&&(e[`ui-design-tokens-theme`]=await h(`ui-design-tokens-theme`,`The ui.design_tokens.theme field`,[`darkest`,`dark`,`light`]));let g=f({config:{livestream_viewer_qualities:e[`config-livestream-viewer-qualities`],max_screenshare_count:e[`config-max-screenshare-count`],max_video_streams:{desktop:e[`config-max-video-streams-desktop`],mobile:e[`config-max-video-streams-mobile`]},media:{audio:{enable_high_bitrate:e[`config-media-audio-enable-high-bitrate`],enable_stereo:e[`config-media-audio-enable-stereo`]},screenshare:{frame_rate:e[`config-media-screenshare-frame-rate`],quality:e[`config-media-screenshare-quality`]},video:{frame_rate:e[`config-media-video-frame-rate`],quality:e[`config-media-video-quality`],simulcast:e[`config-media-video-simulcast`]}},view_type:e[`config-view-type`]},name:p(e.name,`name`,`text`),permissions:{accept_stage_requests:e[`permissions-accept-stage-requests`],accept_waiting_requests:e[`permissions-accept-waiting-requests`],can_accept_production_requests:e[`permissions-can-accept-production-requests`],can_change_participant_permissions:e[`permissions-can-change-participant-permissions`],can_edit_display_name:e[`permissions-can-edit-display-name`],can_livestream:e[`permissions-can-livestream`],can_record:e[`permissions-can-record`],can_spotlight:e[`permissions-can-spotlight`],chat:{private:{can_receive:e[`permissions-chat-private-can-receive`],can_send:e[`permissions-chat-private-can-send`],files:e[`permissions-chat-private-files`],text:e[`permissions-chat-private-text`]},public:{can_send:e[`permissions-chat-public-can-send`],files:e[`permissions-chat-public-files`],text:e[`permissions-chat-public-text`]}},connected_meetings:{can_alter_connected_meetings:e[`permissions-connected-meetings-can-alter-connected-meetings`],can_switch_connected_meetings:e[`permissions-connected-meetings-can-switch-connected-meetings`],can_switch_to_parent_meeting:e[`permissions-connected-meetings-can-switch-to-parent-meeting`]},disable_participant_audio:e[`permissions-disable-participant-audio`],disable_participant_screensharing:e[`permissions-disable-participant-screensharing`],disable_participant_video:e[`permissions-disable-participant-video`],hidden_participant:e[`permissions-hidden-participant`],is_recorder:e[`permissions-is-recorder`],kick_participant:e[`permissions-kick-participant`],media:{audio:{can_produce:e[`permissions-media-audio-can-produce`]},screenshare:{can_produce:e[`permissions-media-screenshare-can-produce`]},video:{can_produce:e[`permissions-media-video-can-produce`]}},pin_participant:e[`permissions-pin-participant`],plugins:{can_close:e[`permissions-plugins-can-close`],can_edit_config:e[`permissions-plugins-can-edit-config`],can_start:e[`permissions-plugins-can-start`],config:d(e[`permissions-plugins-config`],`permissions-plugins-config`,!0)},polls:{can_create:e[`permissions-polls-can-create`],can_view:e[`permissions-polls-can-view`],can_vote:e[`permissions-polls-can-vote`]},recorder_type:e[`permissions-recorder-type`],show_participant_list:e[`permissions-show-participant-list`],stage_access:e[`permissions-stage-access`],stage_enabled:e[`permissions-stage-enabled`],transcription_enabled:e[`permissions-transcription-enabled`],waiting_room_type:e[`permissions-waiting-room-type`]},ui:{design_tokens:{border_radius:e[`ui-design-tokens-border-radius`],border_width:e[`ui-design-tokens-border-width`],colors:{danger:p(e[`ui-design-tokens-colors-danger`],`ui-design-tokens-colors-danger`,`text`),success:p(e[`ui-design-tokens-colors-success`],`ui-design-tokens-colors-success`,`text`),text:p(e[`ui-design-tokens-colors-text`],`ui-design-tokens-colors-text`,`text`),text_on_brand:p(e[`ui-design-tokens-colors-text-on-brand`],`ui-design-tokens-colors-text-on-brand`,`text`),video_bg:p(e[`ui-design-tokens-colors-video-bg`],`ui-design-tokens-colors-video-bg`,`text`),warning:p(e[`ui-design-tokens-colors-warning`],`ui-design-tokens-colors-warning`,`text`)},font_family:p(e[`ui-design-tokens-font-family`],`ui-design-tokens-font-family`,`text`),google_font:p(e[`ui-design-tokens-google-font`],`ui-design-tokens-google-font`,`text`),logo:p(e[`ui-design-tokens-logo`],`ui-design-tokens-logo`,`text`),spacing_base:e[`ui-design-tokens-spacing-base`],theme:e[`ui-design-tokens-theme`]}}},[[`permissions`,`plugins`,`config`]]),_=await s(`Creating`,async()=>c.send(L,{body:g,account_id:l,app_id:e[`app-id`]}));a(_,{successLabel:`Created`})})};var Lt={method:`DELETE`,path:t=>e`/accounts/${t.account_id}/realtime/kit/${t.app_id}/presets/${t.preset_id}`};function Rt(e){return e.usage(`$0 realtime kit presets delete <preset-id>
70
67
 
71
- Deletes a preset using the provided preset ID`).positional(`preset-id`,{type:`string`,description:`ID of the preset to fetch`,demandOption:!0}).option(`app-id`,{type:`string`,description:`The app identifier tag.`,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 zt={command:`delete <preset-id>`,describe:`Delete a preset`,builder:Rt,handler:async e=>c({command:`realtime kit presets delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{if(e.dryRun){let t=await r();o({command:`cf realtime kit presets delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/realtime/kit/${e[`app-id`]==null?`<app-id>`:encodeURIComponent(String(e[`app-id`]))}/presets/${e[`preset-id`]==null?`<preset-id>`:encodeURIComponent(String(e[`preset-id`]))}`,pathParams:{"app-id":String(e[`app-id`]??``),"preset-id":String(e[`preset-id`]??``)},bodyKind:`none`});return}let c=await n(e),l=e.local?t:await i();if(e.accountId=l,!await g({force:!!e.force,message:`This operation permanently deletes the preset.`})){process.stderr.write(`Aborted.
72
- `);return}let u=await s(`Deleting`,async()=>c.send(Lt,{account_id:l,app_id:e[`app-id`],preset_id:e[`preset-id`]}));a(u,{successLabel:`Deleted`})})};var Bt={method:`GET`,path:t=>e`/accounts/${t.account_id}/realtime/kit/${t.app_id}/presets/${t.preset_id}`};function Vt(e){return e.usage(`$0 realtime kit presets get <preset-id>
68
+ Deletes a preset using the provided preset ID`).positional(`preset-id`,{type:`string`,description:`ID of the preset to fetch`,demandOption:!0}).option(`app-id`,{type:`string`,description:`The app identifier tag.`,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 zt={command:`delete <preset-id>`,describe:`Delete a preset`,builder:Rt,handler:async e=>c({command:`realtime kit presets delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{if(e.dryRun){let t=await r();o({command:`cf realtime kit presets delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/realtime/kit/${e[`app-id`]==null?`<app-id>`:encodeURIComponent(String(e[`app-id`]))}/presets/${e[`preset-id`]==null?`<preset-id>`:encodeURIComponent(String(e[`preset-id`]))}`,pathParams:{"app-id":String(e[`app-id`]??``),"preset-id":String(e[`preset-id`]??``)},bodyKind:`none`});return}let c=await n(e),l=e.local?t:await i();if(e.accountId=l,!await g({force:!!e.force,message:`This operation permanently deletes the preset.`}))return;let u=await s(`Deleting`,async()=>c.send(Lt,{account_id:l,app_id:e[`app-id`],preset_id:e[`preset-id`]}));a(u,{successLabel:`Deleted`})})};var Bt={method:`GET`,path:t=>e`/accounts/${t.account_id}/realtime/kit/${t.app_id}/presets/${t.preset_id}`};function Vt(e){return e.usage(`$0 realtime kit presets get <preset-id>
73
69
 
74
70
  Fetches details of a preset using the provided preset ID`).positional(`preset-id`,{type:`string`,description:`ID of the preset to fetch`,demandOption:!0}).option(`app-id`,{type:`string`,description:`The app identifier tag.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const Ht={command:`get <preset-id>`,describe:`Fetch details of a preset`,builder:Vt,handler:async e=>c({command:`realtime kit presets get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await r();o({command:`cf realtime kit presets get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/realtime/kit/${e[`app-id`]==null?`<app-id>`:encodeURIComponent(String(e[`app-id`]))}/presets/${e[`preset-id`]==null?`<preset-id>`:encodeURIComponent(String(e[`preset-id`]))}`,pathParams:{"app-id":String(e[`app-id`]??``),"preset-id":String(e[`preset-id`]??``)},bodyKind:`none`});return}let c=await n(e),l=e.local?t:await i();e.accountId=l;let u=await s(`Loading`,async()=>c.send(Bt,{account_id:l,app_id:e[`app-id`],preset_id:e[`preset-id`]}));a(u,{successLabel:`Loaded`})})};var Ut={method:`GET`,path:t=>e`/accounts/${t.account_id}/realtime/kit/${t.app_id}/presets`,query:[`per_page`,`page_no`,`search`]};function Wt(e){return e.usage(`$0 realtime kit presets list
75
71
 
@@ -113,8 +109,7 @@ Returns a URL to download the transcript for the session ID in CSV format.`).pos
113
109
 
114
110
  Adds a new webhook to an App.`).positional(`app-id`,{type:`string`,description:`The app identifier tag.`,demandOption:!0}).option(`enabled`,{type:`boolean`,description:`Set whether or not the webhook should be active when created`,default:!0}).option(`events`,{type:`string`,array:!0,description:`Events that this webhook will get triggered by`}).option(`name`,{type:`string`,description:`Name of the webhook`}).option(`url`,{type:`string`,description:`URL this webhook will send events to`}).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 er={command:`create <app-id>`,describe:`Add a webhook`,builder:$n,handler:async e=>c({command:`realtime kit webhooks create`,classification:{safeFlags:[`enabled`,`dry-run`]}},e,async()=>{if(e.dryRun){let t=await r();o({command:`cf realtime kit webhooks create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/realtime/kit/${e[`app-id`]==null?`<app-id>`:encodeURIComponent(String(e[`app-id`]))}/webhooks`,pathParams:{"app-id":String(e[`app-id`]??``)},bodyKind:`json`,body:e.body===void 0?f({enabled:e.enabled,events:e.events,name:p(e.name,`name`,`text`),url:p(e.url,`url`,`text`)}):u(e.body)});return}let c=await n(e),l=e.local?t:await i();if(e.accountId=l,e.body){let t=u(e.body),n=await s(`Creating`,async()=>c.send(U,{body:t,account_id:l,app_id:e[`app-id`]}));a(n,{successLabel:`Created`});return}if(e.events===void 0)throw Error(`--events is required (or pass --body with this field set).`);e.name===void 0&&(e.name=await m(`name`,`Name of the webhook`)),e.url===void 0&&(e.url=await m(`url`,`URL this webhook will send events to`));let d=f({enabled:e.enabled,events:e.events,name:p(e.name,`name`,`text`),url:p(e.url,`url`,`text`)}),h=await s(`Creating`,async()=>c.send(U,{body:d,account_id:l,app_id:e[`app-id`]}));a(h,{successLabel:`Created`})})};var tr={method:`DELETE`,path:t=>e`/accounts/${t.account_id}/realtime/kit/${t.app_id}/webhooks/${t.webhook_id}`,errors:{400:`BadRequestError`,401:`UnauthorizedError`}};function nr(e){return e.usage(`$0 realtime kit webhooks delete <webhook-id>
115
111
 
116
- Removes a webhook for the given webhook ID.`).positional(`webhook-id`,{type:`string`,description:`ID of the webhook`,demandOption:!0}).option(`app-id`,{type:`string`,description:`The app identifier tag.`,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 rr={command:`delete <webhook-id>`,describe:`Delete a webhook`,builder:nr,handler:async e=>c({command:`realtime kit webhooks delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{if(e.dryRun){let t=await r();o({command:`cf realtime kit webhooks delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/realtime/kit/${e[`app-id`]==null?`<app-id>`:encodeURIComponent(String(e[`app-id`]))}/webhooks/${e[`webhook-id`]==null?`<webhook-id>`:encodeURIComponent(String(e[`webhook-id`]))}`,pathParams:{"app-id":String(e[`app-id`]??``),"webhook-id":String(e[`webhook-id`]??``)},bodyKind:`none`});return}let c=await n(e),l=e.local?t:await i();if(e.accountId=l,!await g({force:!!e.force,message:`This operation deletes the webhook. Event delivery to it will stop.`})){process.stderr.write(`Aborted.
117
- `);return}let u=await s(`Deleting`,async()=>c.send(tr,{account_id:l,app_id:e[`app-id`],webhook_id:e[`webhook-id`]}));a(u,{successLabel:`Deleted`})})};var ir={method:`GET`,path:t=>e`/accounts/${t.account_id}/realtime/kit/${t.app_id}/webhooks/all`};function ar(e){return e.usage(`$0 realtime kit webhooks events list
112
+ Removes a webhook for the given webhook ID.`).positional(`webhook-id`,{type:`string`,description:`ID of the webhook`,demandOption:!0}).option(`app-id`,{type:`string`,description:`The app identifier tag.`,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 rr={command:`delete <webhook-id>`,describe:`Delete a webhook`,builder:nr,handler:async e=>c({command:`realtime kit webhooks delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{if(e.dryRun){let t=await r();o({command:`cf realtime kit webhooks delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/realtime/kit/${e[`app-id`]==null?`<app-id>`:encodeURIComponent(String(e[`app-id`]))}/webhooks/${e[`webhook-id`]==null?`<webhook-id>`:encodeURIComponent(String(e[`webhook-id`]))}`,pathParams:{"app-id":String(e[`app-id`]??``),"webhook-id":String(e[`webhook-id`]??``)},bodyKind:`none`});return}let c=await n(e),l=e.local?t:await i();if(e.accountId=l,!await g({force:!!e.force,message:`This operation deletes the webhook. Event delivery to it will stop.`}))return;let u=await s(`Deleting`,async()=>c.send(tr,{account_id:l,app_id:e[`app-id`],webhook_id:e[`webhook-id`]}));a(u,{successLabel:`Deleted`})})};var ir={method:`GET`,path:t=>e`/accounts/${t.account_id}/realtime/kit/${t.app_id}/webhooks/all`};function ar(e){return e.usage(`$0 realtime kit webhooks events list
118
113
 
119
114
  Returns the list of webhook event names supported by RealtimeKit.`).option(`app-id`,{type:`string`,description:`The app identifier tag.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const or={command:`list`,describe:`Fetch all supported webhook events`,builder:ar,handler:async e=>c({command:`realtime kit webhooks events list`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await r();o({command:`cf realtime kit webhooks events list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/realtime/kit/${e[`app-id`]==null?`<app-id>`:encodeURIComponent(String(e[`app-id`]))}/webhooks/all`,pathParams:{"app-id":String(e[`app-id`]??``)},bodyKind:`none`});return}let c=await n(e),l=e.local?t:await i();e.accountId=l;let u=await s(`Loading`,async()=>c.send(ir,{account_id:l,app_id:e[`app-id`]}));a(u,{successLabel:`Loaded`})})},sr={command:`events`,describe:`Supported events for RealtimeKit webhooks`,builder:e=>e.command(or).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var cr={method:`GET`,path:t=>e`/accounts/${t.account_id}/realtime/kit/${t.app_id}/webhooks/${t.webhook_id}`,errors:{400:`BadRequestError`,401:`UnauthorizedError`}};function lr(e){return e.usage(`$0 realtime kit webhooks get <webhook-id>
120
115
 
@@ -126,8 +121,7 @@ Replace all details for the given webhook ID.`).positional(`webhook-id`,{type:`s
126
121
 
127
122
  Edits the webhook details for the given webhook ID.`).positional(`webhook-id`,{type:`string`,description:`ID of the webhook`,demandOption:!0}).option(`app-id`,{type:`string`,description:`The app identifier tag.`,demandOption:!0}).option(`enabled`,{type:`boolean`,description:`The enabled field`}).option(`events`,{type:`string`,array:!0,description:`Events that the webhook will get triggered by`}).option(`name`,{type:`string`,description:`Name of the webhook`}).option(`url`,{type:`string`,description:`URL the webhook will send events to`}).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:`update <webhook-id>`,describe:`Edit a webhook`,builder:gr,handler:async e=>c({command:`realtime kit webhooks update`,classification:{safeFlags:[`enabled`,`dry-run`]}},e,async()=>{if(e.dryRun){let t=await r();o({command:`cf realtime kit webhooks update`,method:`PATCH`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/realtime/kit/${e[`app-id`]==null?`<app-id>`:encodeURIComponent(String(e[`app-id`]))}/webhooks/${e[`webhook-id`]==null?`<webhook-id>`:encodeURIComponent(String(e[`webhook-id`]))}`,pathParams:{"app-id":String(e[`app-id`]??``),"webhook-id":String(e[`webhook-id`]??``)},bodyKind:`json`,body:e.body===void 0?f({enabled:e.enabled,events:e.events,name:p(e.name,`name`,`text`),url:p(e.url,`url`,`text`)}):u(e.body)});return}let c=await n(e),l=e.local?t:await i();if(e.accountId=l,e.body){let t=u(e.body),n=await s(`Updating`,async()=>c.send(G,{body:t,account_id:l,app_id:e[`app-id`],webhook_id:e[`webhook-id`]}));a(n,{successLabel:`Updated`});return}let d=f({enabled:e.enabled,events:e.events,name:p(e.name,`name`,`text`),url:p(e.url,`url`,`text`)}),m=await s(`Updating`,async()=>c.send(G,{body:d,account_id:l,app_id:e[`app-id`],webhook_id:e[`webhook-id`]}));a(m,{successLabel:`Updated`})})},vr={command:`webhooks`,describe:`Webhook endpoints and supported events for RealtimeKit notifications`,builder:e=>e.command(er).command(rr).command(ur).command(pr).command(hr).command(_r).command(sr).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},yr={command:`kit`,describe:`SDK-backed meetings, participants, recordings, livestreams, and webhooks`,builder:e=>e.command(ue).command(ye).command(Me).command(Pt).command(Xt).command(hn).command(Qn).command(vr).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var K={method:`POST`,path:t=>e`/accounts/${t.account_id}/moq/relays`,body:`json`,errors:{400:`BadRequestError`,409:`ConflictError`,413:`ContentTooLargeError`,500:`InternalServerError`}};function br(e){return e.usage("$0 realtime moq relays create\n\nProvisions a new MoQ relay instance. Auto-creates a publish+subscribe token and a subscribe-only token. Token values are included in the response (shown once). Config is always set to defaults (upstreams off) and cannot be supplied here — sending a non-empty `config` is rejected (21014); `null` or `{}` is accepted as absent. Use PUT to configure the relay after it exists.").option(`name`,{type:`string`,description:`Human-readable name for the relay.`}).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 xr={command:`create`,describe:`Create a relay`,builder:br,handler:async e=>c({command:`realtime moq relays create`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await r();o({command:`cf realtime moq relays create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/moq/relays`,pathParams:{},bodyKind:`json`,body:e.body===void 0?f({name:p(e.name,`name`,`text`)}):u(e.body)});return}let c=await n(e),l=e.local?t:await i();if(e.accountId=l,e.body){let t=u(e.body),n=await s(`Creating`,async()=>c.send(K,{body:t,account_id:l}));a(n,{successLabel:`Created`});return}e.name===void 0&&(e.name=await m(`name`,`Human-readable name for the relay.`));let d=f({name:p(e.name,`name`,`text`)}),h=await s(`Creating`,async()=>c.send(K,{body:d,account_id:l}));a(h,{successLabel:`Created`})})};var Sr={method:`DELETE`,path:t=>e`/accounts/${t.account_id}/moq/relays/${t.relay_id}`,errors:{400:`BadRequestError`,404:`NotFoundError`,500:`InternalServerError`}};function Cr(e){return e.usage(`$0 realtime moq relays delete <relay-id>
128
123
 
129
- Soft-deletes a MoQ relay. The relay ID goes in the URL path — \`DELETE /accounts/{account_id}/moq/relays/{relay_id}\` — not the request body; there is no collection-level delete endpoint.`).positional(`relay-id`,{type:`string`,description:`Relay unique identifier (32 hex characters).`,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 wr={command:`delete <relay-id>`,describe:`Delete a relay`,builder:Cr,handler:async e=>c({command:`realtime moq relays delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{if(e.dryRun){let t=await r();o({command:`cf realtime moq relays delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/moq/relays/${e[`relay-id`]==null?`<relay-id>`:encodeURIComponent(String(e[`relay-id`]))}`,pathParams:{"relay-id":String(e[`relay-id`]??``)},bodyKind:`none`});return}let c=await n(e),l=e.local?t:await i();if(e.accountId=l,!await g({force:!!e.force,message:`Deleting this relay revokes every token issued for it, so publishers and subscribers can no longer connect. This cannot be undone.`})){process.stderr.write(`Aborted.
130
- `);return}let u=await s(`Deleting`,async()=>c.send(Sr,{account_id:l,relay_id:e[`relay-id`]}));a(u,{successLabel:`Deleted`})})};var Tr={method:`GET`,path:t=>e`/accounts/${t.account_id}/moq/relays/${t.relay_id}`,errors:{400:`BadRequestError`,404:`NotFoundError`,500:`InternalServerError`}};function Er(e){return e.usage(`$0 realtime moq relays get <relay-id>
124
+ Soft-deletes a MoQ relay. The relay ID goes in the URL path — \`DELETE /accounts/{account_id}/moq/relays/{relay_id}\` — not the request body; there is no collection-level delete endpoint.`).positional(`relay-id`,{type:`string`,description:`Relay unique identifier (32 hex characters).`,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 wr={command:`delete <relay-id>`,describe:`Delete a relay`,builder:Cr,handler:async e=>c({command:`realtime moq relays delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{if(e.dryRun){let t=await r();o({command:`cf realtime moq relays delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/moq/relays/${e[`relay-id`]==null?`<relay-id>`:encodeURIComponent(String(e[`relay-id`]))}`,pathParams:{"relay-id":String(e[`relay-id`]??``)},bodyKind:`none`});return}let c=await n(e),l=e.local?t:await i();if(e.accountId=l,!await g({force:!!e.force,message:`Deleting this relay revokes every token issued for it, so publishers and subscribers can no longer connect. This cannot be undone.`}))return;let u=await s(`Deleting`,async()=>c.send(Sr,{account_id:l,relay_id:e[`relay-id`]}));a(u,{successLabel:`Deleted`})})};var Tr={method:`GET`,path:t=>e`/accounts/${t.account_id}/moq/relays/${t.relay_id}`,errors:{400:`BadRequestError`,404:`NotFoundError`,500:`InternalServerError`}};function Er(e){return e.usage(`$0 realtime moq relays get <relay-id>
131
125
 
132
126
  Retrieves a single MoQ relay including config and status. Tokens are NOT included.`).positional(`relay-id`,{type:`string`,description:`Relay unique identifier (32 hex characters).`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const Dr={command:`get <relay-id>`,describe:`Get a relay`,builder:Er,handler:async e=>c({command:`realtime moq relays get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await r();o({command:`cf realtime moq relays get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/moq/relays/${e[`relay-id`]==null?`<relay-id>`:encodeURIComponent(String(e[`relay-id`]))}`,pathParams:{"relay-id":String(e[`relay-id`]??``)},bodyKind:`none`});return}let c=await n(e),l=e.local?t:await i();e.accountId=l;let u=await s(`Loading`,async()=>c.send(Tr,{account_id:l,relay_id:e[`relay-id`]}));a(u,{successLabel:`Loaded`})})};var Or={method:`GET`,path:t=>e`/accounts/${t.account_id}/moq/relays`,query:[`created_before`,`created_after`,`per_page`,`asc`],errors:{400:`BadRequestError`,500:`InternalServerError`}};function kr(e){return e.usage("$0 realtime moq relays list\n\nLists all MoQ relays for the account. Returns only metadata. Config, status, and tokens are omitted. Results are cursor-paginated (keyset on the `created` timestamp). Use `created_before` / `created_after` with the `created` value of the first/last item in a page to fetch the adjacent page. `result_info` reports the page `count` and the `total` matching the cursor filters.").option(`created-before`,{type:`string`,description:`Cursor for pagination. Returns relays created strictly before this
133
127
  RFC 3339 timestamp (typically the \`created\` value of the first item
@@ -142,8 +136,7 @@ rejected if more than 1 year in the future.
142
136
  perform. Signed into the token.
143
137
  `}).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 Mr={command:`create <relay-id>`,describe:`Create a token`,builder:jr,handler:async e=>c({command:`realtime moq relays tokens create`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await r();o({command:`cf realtime moq relays tokens create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/moq/relays/${e[`relay-id`]==null?`<relay-id>`:encodeURIComponent(String(e[`relay-id`]))}/tokens`,pathParams:{"relay-id":String(e[`relay-id`]??``)},bodyKind:`json`,body:e.body===void 0?f({expires:p(e.expires,`expires`,`text`),label:p(e.label,`label`,`text`),operations:e.operations}):u(e.body)});return}let c=await n(e),l=e.local?t:await i();if(e.accountId=l,e.body){let t=u(e.body),n=await s(`Creating`,async()=>c.send(q,{body:t,account_id:l,relay_id:e[`relay-id`]}));a(n,{successLabel:`Created`});return}if(e.operations===void 0)throw Error(`--operations is required (or pass --body with this field set).`);let d=f({expires:p(e.expires,`expires`,`text`),label:p(e.label,`label`,`text`),operations:e.operations}),m=await s(`Creating`,async()=>c.send(q,{body:d,account_id:l,relay_id:e[`relay-id`]}));a(m,{successLabel:`Created`})})};var Nr={method:`DELETE`,path:t=>e`/accounts/${t.account_id}/moq/relays/${t.relay_id}/tokens/${t.jti}`,errors:{400:`BadRequestError`,404:`NotFoundError`,500:`InternalServerError`}};function Pr(e){return e.usage(`$0 realtime moq relays tokens delete <jti>
144
138
 
145
- Revokes a token by removing it from the set the relay accepts. Relays cache that set, so revocation takes effect within seconds rather than instantly, and connections already established with the token are not closed. Revoking an unknown token succeeds, so the call is idempotent.`).positional(`jti`,{type:`string`,description:`Token identifier (jti — 32 hex characters).`,demandOption:!0}).option(`relay-id`,{type:`string`,description:`Relay unique identifier (32 hex characters).`,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 Fr={command:`delete <jti>`,describe:`Revoke a token`,builder:Pr,handler:async e=>c({command:`realtime moq relays tokens delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{if(e.dryRun){let t=await r();o({command:`cf realtime moq relays tokens delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/moq/relays/${e[`relay-id`]==null?`<relay-id>`:encodeURIComponent(String(e[`relay-id`]))}/tokens/${e.jti==null?`<jti>`:encodeURIComponent(String(e.jti))}`,pathParams:{"relay-id":String(e[`relay-id`]??``),jti:String(e.jti??``)},bodyKind:`none`});return}let c=await n(e),l=e.local?t:await i();if(e.accountId=l,!await g({force:!!e.force,message:`Revoking this token blocks new connections that present it. Sessions already connected with it stay up.`})){process.stderr.write(`Aborted.
146
- `);return}let u=await s(`Deleting`,async()=>c.send(Nr,{account_id:l,relay_id:e[`relay-id`],jti:e.jti}));a(u,{successLabel:`Deleted`})})};var Ir={method:`GET`,path:t=>e`/accounts/${t.account_id}/moq/relays/${t.relay_id}/tokens`,errors:{400:`BadRequestError`,404:`NotFoundError`,500:`InternalServerError`}};function Lr(e){return e.usage(`$0 realtime moq relays tokens list
139
+ Revokes a token by removing it from the set the relay accepts. Relays cache that set, so revocation takes effect within seconds rather than instantly, and connections already established with the token are not closed. Revoking an unknown token succeeds, so the call is idempotent.`).positional(`jti`,{type:`string`,description:`Token identifier (jti — 32 hex characters).`,demandOption:!0}).option(`relay-id`,{type:`string`,description:`Relay unique identifier (32 hex characters).`,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 Fr={command:`delete <jti>`,describe:`Revoke a token`,builder:Pr,handler:async e=>c({command:`realtime moq relays tokens delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{if(e.dryRun){let t=await r();o({command:`cf realtime moq relays tokens delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/moq/relays/${e[`relay-id`]==null?`<relay-id>`:encodeURIComponent(String(e[`relay-id`]))}/tokens/${e.jti==null?`<jti>`:encodeURIComponent(String(e.jti))}`,pathParams:{"relay-id":String(e[`relay-id`]??``),jti:String(e.jti??``)},bodyKind:`none`});return}let c=await n(e),l=e.local?t:await i();if(e.accountId=l,!await g({force:!!e.force,message:`Revoking this token blocks new connections that present it. Sessions already connected with it stay up.`}))return;let u=await s(`Deleting`,async()=>c.send(Nr,{account_id:l,relay_id:e[`relay-id`],jti:e.jti}));a(u,{successLabel:`Deleted`})})};var Ir={method:`GET`,path:t=>e`/accounts/${t.account_id}/moq/relays/${t.relay_id}/tokens`,errors:{400:`BadRequestError`,404:`NotFoundError`,500:`InternalServerError`}};function Lr(e){return e.usage(`$0 realtime moq relays tokens list
147
140
 
148
141
  Returns metadata for every token the relay accepts. Secrets are never returned, so a token that has been lost cannot be recovered here. There is no expiry filter: compare each token's \`expires\` to the current time to tell which ones have lapsed.`).option(`relay-id`,{type:`string`,description:`Relay unique identifier (32 hex characters).`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const Rr={command:`list`,describe:`List tokens`,builder:Lr,handler:async e=>c({command:`realtime moq relays tokens list`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await r();o({command:`cf realtime moq relays tokens list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/moq/relays/${e[`relay-id`]==null?`<relay-id>`:encodeURIComponent(String(e[`relay-id`]))}/tokens`,pathParams:{"relay-id":String(e[`relay-id`]??``)},bodyKind:`none`});return}let c=await n(e),l=e.local?t:await i();e.accountId=l;let u=await s(`Loading`,async()=>c.send(Ir,{account_id:l,relay_id:e[`relay-id`]}));a(u,{successLabel:`Loaded`})})},zr={command:`tokens`,describe:`Tokens that authorize publishers and subscribers to connect to a relay`,builder:e=>e.command(Mr).command(Fr).command(Rr).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var J={method:`PUT`,path:t=>e`/accounts/${t.account_id}/moq/relays/${t.relay_id}`,body:`json`,errors:{400:`BadRequestError`,404:`NotFoundError`,500:`InternalServerError`}};function Br(e){return e.usage(`$0 realtime moq relays update <relay-id>
149
142
 
@@ -154,8 +147,7 @@ added in the future without another breaking change.
154
147
 
155
148
  Creates a Realtime SFU app. An app is an isolated namespace in which sessions can access the app's tracks.`).option(`name`,{type:`string`,description:`A short description of a Realtime SFU app, not shown to end users.`,default:``}).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 Gr={command:`create`,describe:`Create an SFU app`,builder:Wr,handler:async e=>c({command:`realtime sfu apps create`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await r();o({command:`cf realtime sfu apps create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/calls/apps`,pathParams:{},bodyKind:`json`,body:e.body===void 0?f({name:p(e.name,`name`,`text`)}):u(e.body)});return}let c=await n(e),l=e.local?t:await i();if(e.accountId=l,e.body){let t=u(e.body),n=await s(`Creating`,async()=>c.send(Y,{body:t,account_id:l}));a(n,{successLabel:`Created`});return}let d=f({name:p(e.name,`name`,`text`)}),m=await s(`Creating`,async()=>c.send(Y,{body:d,account_id:l}));a(m,{successLabel:`Created`})})};var Kr={method:`DELETE`,path:t=>e`/accounts/${t.account_id}/calls/apps/${t.app_id}`};function qr(e){return e.usage(`$0 realtime sfu apps delete <app-id>
156
149
 
157
- Deletes a Realtime SFU app.`).positional(`app-id`,{type:`string`,description:`A Cloudflare-generated unique identifier for a 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 Jr={command:`delete <app-id>`,describe:`Delete an SFU app`,builder:qr,handler:async e=>c({command:`realtime sfu apps delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{if(e.dryRun){let t=await r();o({command:`cf realtime sfu apps delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/calls/apps/${e[`app-id`]==null?`<app-id>`:encodeURIComponent(String(e[`app-id`]))}`,pathParams:{"app-id":String(e[`app-id`]??``)},bodyKind:`none`});return}let c=await n(e),l=e.local?t:await i();if(e.accountId=l,!await g({force:!!e.force,message:`This operation permanently deletes the SFU app.`})){process.stderr.write(`Aborted.
158
- `);return}let u=await s(`Deleting`,async()=>c.send(Kr,{account_id:l,app_id:e[`app-id`]}));a(u,{successLabel:`Deleted`})})};var Yr={method:`GET`,path:t=>e`/accounts/${t.account_id}/calls/apps/${t.app_id}`};function Xr(e){return e.usage(`$0 realtime sfu apps get <app-id>
150
+ Deletes a Realtime SFU app.`).positional(`app-id`,{type:`string`,description:`A Cloudflare-generated unique identifier for a 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 Jr={command:`delete <app-id>`,describe:`Delete an SFU app`,builder:qr,handler:async e=>c({command:`realtime sfu apps delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{if(e.dryRun){let t=await r();o({command:`cf realtime sfu apps delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/calls/apps/${e[`app-id`]==null?`<app-id>`:encodeURIComponent(String(e[`app-id`]))}`,pathParams:{"app-id":String(e[`app-id`]??``)},bodyKind:`none`});return}let c=await n(e),l=e.local?t:await i();if(e.accountId=l,!await g({force:!!e.force,message:`This operation permanently deletes the SFU app.`}))return;let u=await s(`Deleting`,async()=>c.send(Kr,{account_id:l,app_id:e[`app-id`]}));a(u,{successLabel:`Deleted`})})};var Yr={method:`GET`,path:t=>e`/accounts/${t.account_id}/calls/apps/${t.app_id}`};function Xr(e){return e.usage(`$0 realtime sfu apps get <app-id>
159
151
 
160
152
  Fetches details for a single Realtime SFU app.`).positional(`app-id`,{type:`string`,description:`A Cloudflare-generated unique identifier for a item.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const Zr={command:`get <app-id>`,describe:`Retrieve SFU app details`,builder:Xr,handler:async e=>c({command:`realtime sfu apps get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await r();o({command:`cf realtime sfu apps get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/calls/apps/${e[`app-id`]==null?`<app-id>`:encodeURIComponent(String(e[`app-id`]))}`,pathParams:{"app-id":String(e[`app-id`]??``)},bodyKind:`none`});return}let c=await n(e),l=e.local?t:await i();e.accountId=l;let u=await s(`Loading`,async()=>c.send(Yr,{account_id:l,app_id:e[`app-id`]}));a(u,{successLabel:`Loaded`})})};var Qr={method:`GET`,path:t=>e`/accounts/${t.account_id}/calls/apps`};function $r(e){return e.usage(`$0 realtime sfu apps list
161
153
 
@@ -165,8 +157,7 @@ Updates details for a single Realtime SFU app.`).positional(`app-id`,{type:`stri
165
157
 
166
158
  Creates a new Realtime TURN key.`).option(`name`,{type:`string`,description:`A short description of a TURN key, not shown to end users.`,default:``}).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 ai={command:`create`,describe:`Create a TURN key`,builder:ii,handler:async e=>c({command:`realtime turn keys create`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await r();o({command:`cf realtime turn keys create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/calls/turn_keys`,pathParams:{},bodyKind:`json`,body:e.body===void 0?f({name:p(e.name,`name`,`text`)}):u(e.body)});return}let c=await n(e),l=e.local?t:await i();if(e.accountId=l,e.body){let t=u(e.body),n=await s(`Creating`,async()=>c.send(Q,{body:t,account_id:l}));a(n,{successLabel:`Created`});return}let d=f({name:p(e.name,`name`,`text`)}),m=await s(`Creating`,async()=>c.send(Q,{body:d,account_id:l}));a(m,{successLabel:`Created`})})};var oi={method:`DELETE`,path:t=>e`/accounts/${t.account_id}/calls/turn_keys/${t.key_id}`};function si(e){return e.usage(`$0 realtime turn keys delete <key-id>
167
159
 
168
- Deletes a Realtime TURN key.`).positional(`key-id`,{type:`string`,description:`A Cloudflare-generated unique identifier for a 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 ci={command:`delete <key-id>`,describe:`Delete TURN key`,builder:si,handler:async e=>c({command:`realtime turn keys delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{if(e.dryRun){let t=await r();o({command:`cf realtime turn keys delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/calls/turn_keys/${e[`key-id`]==null?`<key-id>`:encodeURIComponent(String(e[`key-id`]))}`,pathParams:{"key-id":String(e[`key-id`]??``)},bodyKind:`none`});return}let c=await n(e),l=e.local?t:await i();if(e.accountId=l,!await g({force:!!e.force,message:`This operation permanently deletes the TURN key. Clients using it can no longer generate credentials.`})){process.stderr.write(`Aborted.
169
- `);return}let u=await s(`Deleting`,async()=>c.send(oi,{account_id:l,key_id:e[`key-id`]}));a(u,{successLabel:`Deleted`})})};var li={method:`GET`,path:t=>e`/accounts/${t.account_id}/calls/turn_keys/${t.key_id}`};function ui(e){return e.usage(`$0 realtime turn keys get <key-id>
160
+ Deletes a Realtime TURN key.`).positional(`key-id`,{type:`string`,description:`A Cloudflare-generated unique identifier for a 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 ci={command:`delete <key-id>`,describe:`Delete TURN key`,builder:si,handler:async e=>c({command:`realtime turn keys delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{if(e.dryRun){let t=await r();o({command:`cf realtime turn keys delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/calls/turn_keys/${e[`key-id`]==null?`<key-id>`:encodeURIComponent(String(e[`key-id`]))}`,pathParams:{"key-id":String(e[`key-id`]??``)},bodyKind:`none`});return}let c=await n(e),l=e.local?t:await i();if(e.accountId=l,!await g({force:!!e.force,message:`This operation permanently deletes the TURN key. Clients using it can no longer generate credentials.`}))return;let u=await s(`Deleting`,async()=>c.send(oi,{account_id:l,key_id:e[`key-id`]}));a(u,{successLabel:`Deleted`})})};var li={method:`GET`,path:t=>e`/accounts/${t.account_id}/calls/turn_keys/${t.key_id}`};function ui(e){return e.usage(`$0 realtime turn keys get <key-id>
170
161
 
171
162
  Fetches details for a single TURN key.`).positional(`key-id`,{type:`string`,description:`A Cloudflare-generated unique identifier for a item.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const di={command:`get <key-id>`,describe:`Retrieve TURN key details`,builder:ui,handler:async e=>c({command:`realtime turn keys get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await r();o({command:`cf realtime turn keys get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/calls/turn_keys/${e[`key-id`]==null?`<key-id>`:encodeURIComponent(String(e[`key-id`]))}`,pathParams:{"key-id":String(e[`key-id`]??``)},bodyKind:`none`});return}let c=await n(e),l=e.local?t:await i();e.accountId=l;let u=await s(`Loading`,async()=>c.send(li,{account_id:l,key_id:e[`key-id`]}));a(u,{successLabel:`Loaded`})})};var fi={method:`GET`,path:t=>e`/accounts/${t.account_id}/calls/turn_keys`};function pi(e){return e.usage(`$0 realtime turn keys list
172
163
 
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import{r as e}from"./theme-BGHWSKCw.mjs";import"./api-eMuS5GI1.mjs";import{t}from"./path-DRw6Y-nd.mjs";import{n,t as r}from"./local-B7ZJ78al.mjs";import{a as i,i as a,n as o}from"./auth-BUQscD5b.mjs";import{a as s,t as c}from"./context-Sgba0fZP.mjs";import{t as l}from"./output-CpiIVa7Q.mjs";import{t as u}from"./dry-run-BBjUQUhR.mjs";import{t as d}from"./progress-B1dpmxCT.mjs";import{n as f,t as p}from"./run-0EozpORq.mjs";import"./telemetry-BczXOpQn.mjs";import{a as m,n as h,r as g,s as _,t as v}from"./body-parser-ChnyBsfm.mjs";import{n as y}from"./input-validation-D7z60HJH.mjs";import{a as ee,i as b,n as te,o as x,r as S}from"./prompt-Y5OBwDVE.mjs";import{_ as C,a as w,c as ne,d as T,g as E,h as D,i as O,m as k,o as re,p as ie,r as A,s as j,t as ae,u as oe}from"./schema-flags-z7yn0JZ_.mjs";import{domainToASCII as se}from"node:url";import{isDeepStrictEqual as ce}from"node:util";var M={method:`GET`,path:e=>t`/accounts/${e.account_id}/registrar/extensions/${e.extension}`};function le(e){return e.usage("$0 registrar extensions get <extension>\n\nReturns metadata and JSON Schema documents describing the expected input structure for registration and transfer operations on a specific extension (TLD). Supports HTTP conditional GET via `ETag`. Include the `ETag` value from a previous response in an `If-None-Match` header to receive a `304 Not Modified` when the data has not changed.").positional(`extension`,{type:`string`,description:"The extension name (e.g., `com`, `co.uk`).",demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const ue={command:`get <extension>`,describe:`Get extension`,builder:le,handler:async e=>p({command:`registrar extensions get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await s();u({command:`cf registrar extensions get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/registrar/extensions/${e.extension==null?`<extension>`:encodeURIComponent(String(e.extension))}`,pathParams:{extension:String(e.extension??``)},bodyKind:`none`});return}let t=await o(e),n=e.local?r:await c();e.accountId=n;let i=await d(`Loading`,async()=>t.send(M,{account_id:n,extension:e.extension}));l(i,{successLabel:`Loaded`})})};var de={method:`GET`,path:e=>t`/accounts/${e.account_id}/registrar/extensions`,query:[`name`,`cursor`,`per_page`,`direction`,`sort_by`]};function fe(e){return e.usage("$0 registrar extensions list\n\nReturns metadata and JSON Schema documents describing the expected input structure for registration and transfer operations on each supported extension (TLD). This endpoint uses cursor-based pagination. Results are ordered by extension name by default. To fetch the next page, pass the `cursor` value from the `result_info` object in the response as the `cursor` query parameter in your next request. An empty `cursor` string indicates there are no more pages. Supports HTTP conditional GET via `ETag`. Include the `ETag` value from a previous response in an `If-None-Match` header to receive a `304 Not Modified` when the data has not changed.").option(`name`,{type:`string`,description:"Filter extensions by exact name match.\nFor example, `name=com` returns only the `com` extension."}).option(`cursor`,{type:`string`,description:`Opaque token from a previous response's \`result_info.cursor\`.
2
+ import{r as e}from"./theme-BGHWSKCw.mjs";import"./api-eMuS5GI1.mjs";import{t}from"./path-DRw6Y-nd.mjs";import{n,t as r}from"./local-CSH3UMpD.mjs";import{a as i,i as a,n as o}from"./auth-BcNLQji1.mjs";import{a as s,t as c}from"./context-DVh8Wyfs.mjs";import{t as l}from"./output-BJEgbI0G.mjs";import{t as u}from"./dry-run-gy0Hl9xo.mjs";import{t as d}from"./progress-CtGsPOpV.mjs";import{n as f,t as p}from"./run-DnZGQbq_.mjs";import"./telemetry-CvZean4s.mjs";import{a as m,n as h,r as g,s as _,t as v}from"./body-parser-ChnyBsfm.mjs";import{n as y}from"./input-validation-D7z60HJH.mjs";import{a as ee,i as b,n as te,o as x,r as S}from"./prompt-YrI7ltMa.mjs";import{_ as C,a as w,c as ne,d as T,g as E,h as D,i as O,m as k,o as re,p as ie,r as A,s as j,t as ae,u as oe}from"./schema-flags-BrDlFwLv.mjs";import{domainToASCII as se}from"node:url";import{isDeepStrictEqual as ce}from"node:util";var M={method:`GET`,path:e=>t`/accounts/${e.account_id}/registrar/extensions/${e.extension}`};function le(e){return e.usage("$0 registrar extensions get <extension>\n\nReturns metadata and JSON Schema documents describing the expected input structure for registration and transfer operations on a specific extension (TLD). Supports HTTP conditional GET via `ETag`. Include the `ETag` value from a previous response in an `If-None-Match` header to receive a `304 Not Modified` when the data has not changed.").positional(`extension`,{type:`string`,description:"The extension name (e.g., `com`, `co.uk`).",demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const ue={command:`get <extension>`,describe:`Get extension`,builder:le,handler:async e=>p({command:`registrar extensions get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await s();u({command:`cf registrar extensions get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/registrar/extensions/${e.extension==null?`<extension>`:encodeURIComponent(String(e.extension))}`,pathParams:{extension:String(e.extension??``)},bodyKind:`none`});return}let t=await o(e),n=e.local?r:await c();e.accountId=n;let i=await d(`Loading`,async()=>t.send(M,{account_id:n,extension:e.extension}));l(i,{successLabel:`Loaded`})})};var de={method:`GET`,path:e=>t`/accounts/${e.account_id}/registrar/extensions`,query:[`name`,`cursor`,`per_page`,`direction`,`sort_by`]};function fe(e){return e.usage("$0 registrar extensions list\n\nReturns metadata and JSON Schema documents describing the expected input structure for registration and transfer operations on each supported extension (TLD). This endpoint uses cursor-based pagination. Results are ordered by extension name by default. To fetch the next page, pass the `cursor` value from the `result_info` object in the response as the `cursor` query parameter in your next request. An empty `cursor` string indicates there are no more pages. Supports HTTP conditional GET via `ETag`. Include the `ETag` value from a previous response in an `If-None-Match` header to receive a `304 Not Modified` when the data has not changed.").option(`name`,{type:`string`,description:"Filter extensions by exact name match.\nFor example, `name=com` returns only the `com` extension."}).option(`cursor`,{type:`string`,description:`Opaque token from a previous response's \`result_info.cursor\`.
3
3
  Pass this value to fetch the next page of results. Omit (or
4
4
  pass an empty string) for the first page.`}).option(`per-page`,{type:`number`,description:`Number of items to return per page.`}).option(`direction`,{type:`string`,description:`Sort direction for results. Defaults to ascending order.`,choices:[`asc`,`desc`]}).option(`sort-by`,{type:`string`,description:"Column to sort results by. Defaults to `name` when omitted.",choices:[`name`,`created_at`,`updated_at`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const pe={command:`list`,describe:`List extensions`,builder:fe,handler:async e=>p({command:`registrar extensions list`,classification:{safeFlags:[`direction`,`sort-by`,`dry-run`]}},e,async()=>{let t={name:e.name,cursor:e.cursor,per_page:e[`per-page`],direction:e.direction,sort_by:e[`sort-by`]};if(e.dryRun){let e=await s();u({command:`cf registrar extensions list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}/registrar/extensions`,pathParams:{},query:t,bodyKind:`none`});return}let n=await o(e),i=e.local?r:await c();e.accountId=i;let a=await d(`Loading`,async()=>n.send(de,{account_id:i,...t}));l(a,{successLabel:`Loaded`})})},me={command:`extensions`,describe:`Operations for extensions`,builder:e=>e.command(ue).command(pe).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var N={method:`POST`,path:e=>t`/accounts/${e.account_id}/registrar/domain-check`,body:`json`,errors:{400:`BadRequestError`}};function he(e){return e.usage("$0 registrar registrations check <domains...>\n\nPerforms real-time, authoritative availability checks directly against domain registries. Use this endpoint to verify a domain is available before attempting registration via `POST /registrations`. **Important:** Unlike the Search endpoint, these results are authoritative and reflect current registry status. Always check availability immediately before registration as domain status can change rapidly. **Note:** This endpoint uses POST to accept a list of domains in the request body. It is a read-only operation — it does not create, modify, or reserve any domains. ### Extension support Only domains on extensions supported for programmatic registration by this API can be registered. If you check a domain on an unsupported extension, the response will include `registrable: false` with a `reason` field explaining why: - `extension_not_supported_via_api` — Cloudflare Registrar supports this extension in the dashboard, but it is not yet available for programmatic registration via this API. Register via `https://dash.cloudflare.com/{account_id}/domains/registrations` instead. - `extension_not_supported` — This extension is not supported by Cloudflare Registrar. - `extension_disallows_registration` — The extension's registry has temporarily or permanently frozen new registrations. No registrar can register domains on this extension at this time. - `domain_premium` — The domain is premium priced. Premium registration is not currently supported by this API. - `domain_unavailable` — The domain is already registered, reserved, or otherwise not available for registration on a supported extension. The `reason` field is only present when `registrable` is `false`. ### Behavior - Maximum 20 domains per request - Pricing is only returned for domains where `registrable: true` - Results are not cached; each request queries the registry ### Workflow 1. Call this endpoint with domains the user wants to register. 2. For each domain where `registrable: true`, present pricing to the user. 3. If `tier: premium`, note that premium registration is not currently supported by this API and do not proceed to `POST /registrations`. 4. Proceed to `POST /registrations` only for supported non-premium domains.").positional(`domains`,{type:`string`,array:!0,description:"List of fully qualified domain names (FQDNs) to check for availability. Each domain must include the extension. - Minimum: 1 domain. - Maximum: 20 domains per request. - The response returns domains on unsupported extensions with `registrable: false` and a `reason` field. - The response may omit malformed domain names (e.g., names missing an extension). ",demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`List of fully qualified domain names (FQDNs) to check. Each domain must include the extension (e.g., "example.com", not "example").`})}const ge={command:`check <domains...>`,describe:`Check domain availability`,builder:he,handler:async e=>p({command:`registrar registrations check`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await s();u({command:`cf registrar registrations check`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/registrar/domain-check`,pathParams:{},bodyKind:`json`,body:e.body===void 0?v({domains:e.domains}):h(e.body)});return}let t=await o(e),n=e.local?r:await c();if(e.accountId=n,e.body){let r=h(e.body),i=await d(`Creating`,async()=>t.send(N,{body:r,account_id:n}));l(i,{successLabel:`Created`});return}let i=v({domains:e.domains}),a=await d(`Creating`,async()=>t.send(N,{body:i,account_id:n}));l(a,{successLabel:`Created`})})};var _e={method:`GET`,path:e=>t`/accounts/${e.account_id}/registrar/registrations/${e.domain_name}/registration-status`};function ve(e){return e.usage("$0 registrar registrations get-registration-status <domain-name>\n\nReturns the current status of a domain registration workflow. Use this endpoint to poll for completion when the POST response returned `202 Accepted`. The URL is provided in the `links.self` field of the workflow status response. Poll this endpoint until the workflow reaches a terminal state or a state that requires user attention. **Terminal states:** `succeeded` and `failed` are terminal and always have `completed: true`. **Non-terminal states:** - `action_required` has `completed: false` and will not resolve on its own. The workflow is paused pending user intervention. - `blocked` has `completed: false` and indicates the workflow is waiting on a third party such as the extension registry or losing registrar. Continue polling while informing the user of the delay. Use increasing backoff between polls. When `state: blocked`, use a longer polling interval and do not poll indefinitely. A naive polling loop that only checks `completed` can run indefinitely when `state: action_required`. Break explicitly on `action_required`: ```js let status; do { await new Promise(r => setTimeout(r, 2000)); status = await cloudflare.request({ method: 'GET', path: reg.result.links.self, }); } while ( !status.result.completed && status.result.state !== 'action_required' ); if (status.result.state === 'action_required') { // Surface context.action and context.confirmation_sent_to to the user. // Do not re-submit the registration request. } ```").positional(`domain-name`,{type:`string`,description:"Provides a fully qualified domain name (FQDN), including the extension (e.g., `example.com`, `mybrand.app`). The domain name uniquely identifies a registration. Cloudflare permits only one registration per domain, making the domain name a natural idempotency key for registration requests.",demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const ye={command:`get-registration-status <domain-name>`,describe:`Get Registration Status`,builder:ve,handler:async e=>p({command:`registrar registrations get-registration-status`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await s();u({command:`cf registrar registrations get-registration-status`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/registrar/registrations/${e[`domain-name`]==null?`<domain-name>`:encodeURIComponent(String(e[`domain-name`]))}/registration-status`,pathParams:{"domain-name":String(e[`domain-name`]??``)},bodyKind:`none`});return}let t=await o(e),n=e.local?r:await c();e.accountId=n;let i=await d(`Loading`,async()=>t.send(_e,{account_id:n,domain_name:e[`domain-name`]}));l(i,{successLabel:`Loaded`})})};var be={method:`GET`,path:e=>t`/accounts/${e.account_id}/registrar/registrations/${e.domain_name}/transfer-in-status`};function xe(e){return e.usage("$0 registrar registrations get-transfer-status <domain-name>\n\nReturns the current status of a domain transfer workflow. Use this endpoint to poll transfer progress after initiating a transfer with `POST /accounts/{account_id}/registrar/registrations/{domain_name}/transfer-in`. The URL is provided in the `links.self` field of the transfer response. ### Transfer timelines Transfers typically take 1–10 days due to ICANN-mandated approval windows. ### Workflow states **Terminal states:** `succeeded` and `failed` are terminal and always have `completed: true`. **Non-terminal states:** - `in_progress`: Transfer has been submitted to the registry and is being processed. Continue polling. - `blocked`: The workflow is waiting on the losing registrar or registry to release the domain. This is the **most common state** for transfers and is entirely normal — it means the ICANN transfer approval window is in effect. The losing registrar has up to 5 days to approve or reject. Continue polling with longer intervals (e.g., every 30–60 minutes). - `action_required`: The user needs to take action (e.g., the FOA email needs to be accepted). See `context` for details on what is needed. - `pending`: Transfer workflow created but not yet started processing. ### Polling guidance Adjust your polling interval based on the current workflow state: - `pending` or `in_progress`: Poll every 30 seconds. - `blocked`: The transfer is waiting on a third party (e.g., losing registrar approval). Poll every 30–60 minutes. - `action_required`: Stop polling. The workflow will not advance until the user takes action. Check `context` for details on what is needed. - `succeeded` or `failed`: Terminal — stop polling.").positional(`domain-name`,{type:`string`,description:"Provides a fully qualified domain name (FQDN), including the extension (e.g., `example.com`, `mybrand.app`). The domain name uniquely identifies a registration. Cloudflare permits only one registration per domain, making the domain name a natural idempotency key for registration requests.",demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const Se={command:`get-transfer-status <domain-name>`,describe:`Get Transfer Status`,builder:xe,handler:async e=>p({command:`registrar registrations get-transfer-status`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await s();u({command:`cf registrar registrations get-transfer-status`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/registrar/registrations/${e[`domain-name`]==null?`<domain-name>`:encodeURIComponent(String(e[`domain-name`]))}/transfer-in-status`,pathParams:{"domain-name":String(e[`domain-name`]??``)},bodyKind:`none`});return}let t=await o(e),n=e.local?r:await c();e.accountId=n;let i=await d(`Loading`,async()=>t.send(be,{account_id:n,domain_name:e[`domain-name`]}));l(i,{successLabel:`Loaded`})})};var Ce={method:`GET`,path:e=>t`/accounts/${e.account_id}/registrar/registrations/${e.domain_name}/update-status`};function we(e){return e.usage("$0 registrar registrations get-update-status <domain-name>\n\nReturns the current status of a domain update workflow. Use this endpoint to poll for completion when the PATCH response returned `202 Accepted`. The URL is provided in the `links.self` field of the workflow status response. Poll this endpoint until the workflow reaches a terminal state or a state that requires user attention. Use increasing backoff between polls. When the workflow remains blocked on a third party, use a longer polling interval and do not poll indefinitely.").positional(`domain-name`,{type:`string`,description:"Provides a fully qualified domain name (FQDN), including the extension (e.g., `example.com`, `mybrand.app`). The domain name uniquely identifies a registration. Cloudflare permits only one registration per domain, making the domain name a natural idempotency key for registration requests.",demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const Te={command:`get-update-status <domain-name>`,describe:`Get Update Status`,builder:we,handler:async e=>p({command:`registrar registrations get-update-status`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await s();u({command:`cf registrar registrations get-update-status`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/registrar/registrations/${e[`domain-name`]==null?`<domain-name>`:encodeURIComponent(String(e[`domain-name`]))}/update-status`,pathParams:{"domain-name":String(e[`domain-name`]??``)},bodyKind:`none`});return}let t=await o(e),n=e.local?r:await c();e.accountId=n;let i=await d(`Loading`,async()=>t.send(Ce,{account_id:n,domain_name:e[`domain-name`]}));l(i,{successLabel:`Loaded`})})};var Ee={method:`GET`,path:e=>t`/accounts/${e.account_id}/registrar/registrations/${e.domain_name}`};function De(e){return e.usage("$0 registrar registrations get <domain-name>\n\nReturns the current state of a domain registration. This is the canonical read endpoint for a domain you own. It returns the full registration resource including current settings and expiration. When the registration resource is ready, both `created_at` and `expires_at` are present in the response.").positional(`domain-name`,{type:`string`,description:`Domain name to retrieve.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const Oe={command:`get <domain-name>`,describe:`Get Registration`,builder:De,handler:async e=>p({command:`registrar registrations get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await s();u({command:`cf registrar registrations get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/registrar/registrations/${e[`domain-name`]==null?`<domain-name>`:encodeURIComponent(String(e[`domain-name`]))}`,pathParams:{"domain-name":String(e[`domain-name`]??``)},bodyKind:`none`});return}let t=await o(e),n=e.local?r:await c();e.accountId=n;let i=await d(`Loading`,async()=>t.send(Ee,{account_id:n,domain_name:e[`domain-name`]}));l(i,{successLabel:`Loaded`})})};var ke={method:`GET`,path:e=>t`/accounts/${e.account_id}/registrar/registrations`,query:[`cursor`,`per_page`,`direction`,`sort_by`]};function Ae(e){return e.usage("$0 registrar registrations list\n\nReturns a paginated list of domain registrations owned by the account. This endpoint uses cursor-based pagination. Results are ordered by registration date by default. To fetch the next page, pass the `cursor` value from the `result_info` object in the response as the `cursor` query parameter in your next request. An empty `cursor` string indicates there are no more pages.").option(`cursor`,{type:`string`,description:`Opaque token from a previous response's \`result_info.cursor\`.
5
5
  Pass this value to fetch the next page of results. Omit (or
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import"./api-eMuS5GI1.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{t}from"./local-B7ZJ78al.mjs";import{i as n,n as r}from"./auth-BUQscD5b.mjs";import{a as i,t as a}from"./context-Sgba0fZP.mjs";import{t as o}from"./output-CpiIVa7Q.mjs";import{t as s}from"./dry-run-BBjUQUhR.mjs";import{t as c}from"./progress-B1dpmxCT.mjs";import{t as l}from"./run-0EozpORq.mjs";import"./telemetry-BczXOpQn.mjs";import{n as u,r as d,s as f,t as p}from"./body-parser-ChnyBsfm.mjs";import{n as m}from"./input-validation-D7z60HJH.mjs";import{a as h}from"./prompt-Y5OBwDVE.mjs";var g={method:`GET`,path:t=>e`/accounts/${t.account_id}/registrar-sandbox/extensions/${t.extension}`};function _(e){return e.usage("$0 registrar-sandbox extensions get <extension>\n\nReturns metadata and JSON Schema documents describing the expected input structure for registration and transfer operations on a specific extension (TLD). Supports HTTP conditional GET via `ETag`. Include the `ETag` value from a previous response in an `If-None-Match` header to receive a `304 Not Modified` when the data has not changed.").positional(`extension`,{type:`string`,description:"The extension name (e.g., `com`, `co.uk`).",demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const v={command:`get <extension>`,describe:`Get extension`,builder:_,handler:async e=>l({command:`registrar-sandbox extensions get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await i();s({command:`cf registrar-sandbox extensions get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/registrar-sandbox/extensions/${e.extension==null?`<extension>`:encodeURIComponent(String(e.extension))}`,pathParams:{extension:String(e.extension??``)},bodyKind:`none`});return}let n=await r(e),l=e.local?t:await a();e.accountId=l;let u=await c(`Loading`,async()=>n.send(g,{account_id:l,extension:e.extension}));o(u,{successLabel:`Loaded`})})};var y={method:`GET`,path:t=>e`/accounts/${t.account_id}/registrar-sandbox/extensions`,query:[`name`,`cursor`,`per_page`,`direction`,`sort_by`]};function b(e){return e.usage("$0 registrar-sandbox extensions list\n\nReturns metadata and JSON Schema documents describing the expected input structure for registration and transfer operations on each supported extension (TLD). This endpoint uses cursor-based pagination. Results are ordered by extension name by default. To fetch the next page, pass the `cursor` value from the `result_info` object in the response as the `cursor` query parameter in your next request. An empty `cursor` string indicates there are no more pages. Supports HTTP conditional GET via `ETag`. Include the `ETag` value from a previous response in an `If-None-Match` header to receive a `304 Not Modified` when the data has not changed.").option(`name`,{type:`string`,description:"Filter extensions by exact name match.\nFor example, `name=com` returns only the `com` extension."}).option(`cursor`,{type:`string`,description:`Opaque token from a previous response's \`result_info.cursor\`.
2
+ import"./api-eMuS5GI1.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{t}from"./local-CSH3UMpD.mjs";import{i as n,n as r}from"./auth-BcNLQji1.mjs";import{a as i,t as a}from"./context-DVh8Wyfs.mjs";import{t as o}from"./output-BJEgbI0G.mjs";import{t as s}from"./dry-run-gy0Hl9xo.mjs";import{t as c}from"./progress-CtGsPOpV.mjs";import{t as l}from"./run-DnZGQbq_.mjs";import"./telemetry-CvZean4s.mjs";import{n as u,r as d,s as f,t as p}from"./body-parser-ChnyBsfm.mjs";import{n as m}from"./input-validation-D7z60HJH.mjs";import{a as h}from"./prompt-YrI7ltMa.mjs";var g={method:`GET`,path:t=>e`/accounts/${t.account_id}/registrar-sandbox/extensions/${t.extension}`};function _(e){return e.usage("$0 registrar-sandbox extensions get <extension>\n\nReturns metadata and JSON Schema documents describing the expected input structure for registration and transfer operations on a specific extension (TLD). Supports HTTP conditional GET via `ETag`. Include the `ETag` value from a previous response in an `If-None-Match` header to receive a `304 Not Modified` when the data has not changed.").positional(`extension`,{type:`string`,description:"The extension name (e.g., `com`, `co.uk`).",demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const v={command:`get <extension>`,describe:`Get extension`,builder:_,handler:async e=>l({command:`registrar-sandbox extensions get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await i();s({command:`cf registrar-sandbox extensions get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/registrar-sandbox/extensions/${e.extension==null?`<extension>`:encodeURIComponent(String(e.extension))}`,pathParams:{extension:String(e.extension??``)},bodyKind:`none`});return}let n=await r(e),l=e.local?t:await a();e.accountId=l;let u=await c(`Loading`,async()=>n.send(g,{account_id:l,extension:e.extension}));o(u,{successLabel:`Loaded`})})};var y={method:`GET`,path:t=>e`/accounts/${t.account_id}/registrar-sandbox/extensions`,query:[`name`,`cursor`,`per_page`,`direction`,`sort_by`]};function b(e){return e.usage("$0 registrar-sandbox extensions list\n\nReturns metadata and JSON Schema documents describing the expected input structure for registration and transfer operations on each supported extension (TLD). This endpoint uses cursor-based pagination. Results are ordered by extension name by default. To fetch the next page, pass the `cursor` value from the `result_info` object in the response as the `cursor` query parameter in your next request. An empty `cursor` string indicates there are no more pages. Supports HTTP conditional GET via `ETag`. Include the `ETag` value from a previous response in an `If-None-Match` header to receive a `304 Not Modified` when the data has not changed.").option(`name`,{type:`string`,description:"Filter extensions by exact name match.\nFor example, `name=com` returns only the `com` extension."}).option(`cursor`,{type:`string`,description:`Opaque token from a previous response's \`result_info.cursor\`.
3
3
  Pass this value to fetch the next page of results. Omit (or
4
4
  pass an empty string) for the first page.`}).option(`per-page`,{type:`number`,description:`Number of items to return per page.`}).option(`direction`,{type:`string`,description:`Sort direction for results. Defaults to ascending order.`,choices:[`asc`,`desc`]}).option(`sort-by`,{type:`string`,description:"Column to sort results by. Defaults to `name` when omitted.",choices:[`name`,`created_at`,`updated_at`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const x={command:`list`,describe:`List extensions`,builder:b,handler:async e=>l({command:`registrar-sandbox extensions list`,classification:{safeFlags:[`direction`,`sort-by`,`dry-run`]}},e,async()=>{let n={name:e.name,cursor:e.cursor,per_page:e[`per-page`],direction:e.direction,sort_by:e[`sort-by`]};if(e.dryRun){let e=await i();s({command:`cf registrar-sandbox extensions list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}/registrar-sandbox/extensions`,pathParams:{},query:n,bodyKind:`none`});return}let l=await r(e),u=e.local?t:await a();e.accountId=u;let d=await c(`Loading`,async()=>l.send(y,{account_id:u,...n}));o(d,{successLabel:`Loaded`})})},S={command:`extensions`,describe:`Operations for extensions`,builder:e=>e.command(v).command(x).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var C={method:`POST`,path:t=>e`/accounts/${t.account_id}/registrar-sandbox/domain-check`,body:`json`,errors:{400:`BadRequestError`}};function w(e){return e.usage("$0 registrar-sandbox registrations check <domains...>\n\nPerforms real-time, authoritative availability checks directly against domain registries. Use this endpoint to verify a domain is available before attempting registration via `POST /registrations`. **Important:** Unlike the Search endpoint, these results are authoritative and reflect current registry status. Always check availability immediately before registration as domain status can change rapidly. **Note:** This endpoint uses POST to accept a list of domains in the request body. It is a read-only operation — it does not create, modify, or reserve any domains. ### Extension support Only domains on extensions supported for programmatic registration by this API can be registered. If you check a domain on an unsupported extension, the response will include `registrable: false` with a `reason` field explaining why: - `extension_not_supported_via_api` — Cloudflare Registrar supports this extension in the dashboard, but it is not yet available for programmatic registration via this API. Register via `https://dash.cloudflare.com/{account_id}/domains/registrations` instead. - `extension_not_supported` — This extension is not supported by Cloudflare Registrar. - `extension_disallows_registration` — The extension's registry has temporarily or permanently frozen new registrations. No registrar can register domains on this extension at this time. - `domain_premium` — The domain is premium priced. Premium registration is not currently supported by this API. - `domain_unavailable` — The domain is already registered, reserved, or otherwise not available for registration on a supported extension. The `reason` field is only present when `registrable` is `false`. ### Behavior - Maximum 20 domains per request - Pricing is only returned for domains where `registrable: true` - Results are not cached; each request queries the registry ### Workflow 1. Call this endpoint with domains the user wants to register. 2. For each domain where `registrable: true`, present pricing to the user. 3. If `tier: premium`, note that premium registration is not currently supported by this API and do not proceed to `POST /registrations`. 4. Proceed to `POST /registrations` only for supported non-premium domains.").positional(`domains`,{type:`string`,array:!0,description:"List of fully qualified domain names (FQDNs) to check for availability. Each domain must include the extension. - Minimum: 1 domain. - Maximum: 20 domains per request. - The response returns domains on unsupported extensions with `registrable: false` and a `reason` field. - The response may omit malformed domain names (e.g., names missing an extension). ",demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`List of fully qualified domain names (FQDNs) to check. Each domain must include the extension (e.g., "example.com", not "example").`})}const T={command:`check <domains...>`,describe:`Check domain availability`,builder:w,handler:async e=>l({command:`registrar-sandbox registrations check`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await i();s({command:`cf registrar-sandbox registrations check`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/registrar-sandbox/domain-check`,pathParams:{},bodyKind:`json`,body:e.body===void 0?p({domains:e.domains}):u(e.body)});return}let n=await r(e),l=e.local?t:await a();if(e.accountId=l,e.body){let t=u(e.body),r=await c(`Creating`,async()=>n.send(C,{body:t,account_id:l}));o(r,{successLabel:`Created`});return}let d=p({domains:e.domains}),f=await c(`Creating`,async()=>n.send(C,{body:d,account_id:l}));o(f,{successLabel:`Created`})})};function E(e){return e.usage("$0 registrar-sandbox registrations create\n\nStarts a domain registration workflow. ### Prerequisites - The account must not already be at the maximum supported domain limit. A single account may own up to 500 domains in total across registrations created through either the dashboard or this API. - The domain must be on a supported extension for programmatic registration. - Use `POST /domain-check` immediately before calling this endpoint to confirm real-time availability and pricing. ### Defaults - `years`: defaults to the extension's minimum registration period (1 year for most extensions, but varies — for example, `.ai` (if supported) requires a minimum of 2 years). - `auto_renew`: defaults to `false`. Setting it to `true` is an explicit opt-in authorizing Cloudflare to charge the account's default payment method up to 30 days before domain expiry to renew the registration. Renewal pricing may change over time based on registry pricing. - `privacy_mode`: defaults to `redaction`. ### Premium domains Premium domain registration is not currently supported by this API. If `POST /domain-check` returns `tier: premium`, do not call this endpoint for that domain. ### Response behavior By default, the server holds the connection for a bounded, server-defined amount of time while the registration completes. Most registrations finish within this window and return `201 Created` with a completed workflow status. If the registration is still processing after this synchronous wait window, the server returns `202 Accepted`. Poll the URL in `links.self` to track progress. To skip the wait and receive an immediate `202`, send `Prefer: respond-async`.").option(`prefer`,{type:`string`,description:`Set to \`respond-async\` to receive an immediate \`202 Accepted\` without
5
5
  waiting for the operation to complete (RFC 7240).
@@ -1,2 +1,2 @@
1
1
  #!/usr/bin/env node
2
- import{i as e}from"./cf-3vj8dGYz.mjs";import{resolve as t}from"node:path";const n=`CLOUDFLARE_REGISTRY_PATH`;function r(r=process.env){let i=r[n];return i===void 0||i===``?t(e(),`registry`):t(i)}function i(e=process.env){let t=r(e);return{[n]:t,WRANGLER_REGISTRY_PATH:t,MINIFLARE_REGISTRY_PATH:t}}export{r as n,i as t};
2
+ import{i as e}from"./cf-fIBhEAxU.mjs";import{resolve as t}from"node:path";const n=`CLOUDFLARE_REGISTRY_PATH`;function r(r=process.env){let i=r[n];return i===void 0||i===``?t(e(),`registry`):t(i)}function i(e=process.env){let t=r(e);return{[n]:t,WRANGLER_REGISTRY_PATH:t,MINIFLARE_REGISTRY_PATH:t}}export{r as n,i as t};
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import"./api-eMuS5GI1.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{t}from"./local-B7ZJ78al.mjs";import{n}from"./auth-BUQscD5b.mjs";import{a as r,t as i}from"./context-Sgba0fZP.mjs";import{t as a}from"./output-CpiIVa7Q.mjs";import{t as o}from"./dry-run-BBjUQUhR.mjs";import{t as s}from"./progress-B1dpmxCT.mjs";import{t as c}from"./run-0EozpORq.mjs";import"./telemetry-BczXOpQn.mjs";import{n as l,t as u}from"./body-parser-ChnyBsfm.mjs";import{n as d}from"./input-validation-D7z60HJH.mjs";import{i as f}from"./prompt-Y5OBwDVE.mjs";var p={method:`GET`,path:t=>e`/accounts/${t.account_id}/reporting/industry`};function m(e){return e.usage(`$0 reporting industry get
2
+ import"./api-eMuS5GI1.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{t}from"./local-CSH3UMpD.mjs";import{n}from"./auth-BcNLQji1.mjs";import{a as r,t as i}from"./context-DVh8Wyfs.mjs";import{t as a}from"./output-BJEgbI0G.mjs";import{t as o}from"./dry-run-gy0Hl9xo.mjs";import{t as s}from"./progress-CtGsPOpV.mjs";import{t as c}from"./run-DnZGQbq_.mjs";import"./telemetry-CvZean4s.mjs";import{n as l,t as u}from"./body-parser-ChnyBsfm.mjs";import{n as d}from"./input-validation-D7z60HJH.mjs";import{i as f}from"./prompt-YrI7ltMa.mjs";var p={method:`GET`,path:t=>e`/accounts/${t.account_id}/reporting/industry`};function m(e){return e.usage(`$0 reporting industry get
3
3
 
4
4
  Gets the industry classification for an account.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const h={command:`get`,describe:`Get an account industry`,builder:m,handler:async e=>c({command:`reporting industry get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let e=await r();o({command:`cf reporting industry get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}/reporting/industry`,pathParams:{},bodyKind:`none`});return}let c=await n(e),l=e.local?t:await i();e.accountId=l;let u=await s(`Loading`,async()=>c.send(p,{account_id:l}));a(u,{successLabel:`Loaded`})})};var g={method:`PATCH`,path:t=>e`/accounts/${t.account_id}/reporting/industry`,body:`json`,errors:{400:`BadRequestError`,423:`LockedError`,500:`InternalServerError`}};function _(e){return e.usage(`$0 reporting industry update
5
5
 
@@ -0,0 +1,2 @@
1
+ #!/usr/bin/env node
2
+ import{t as e}from"./agent-context-DFEgYjEQ.mjs";import{t}from"./version-DmTuWNZ5.mjs";import{t as n}from"./interactive-wQM7Blhm.mjs";import{n as r}from"./interactive-D4E8PdaW.mjs";function i(){return n?`ci`:r()?`interactive`:`non-interactive`}function a(){let n=e(),r=n.isAgentic&&n.harness!==null?{"X-CF-CLI-Agent":n.harness.id}:{};return{"User-Agent":t,"X-CF-CLI-Mode":i(),...r}}export{a as n,i as t};
@@ -1,4 +1,4 @@
1
1
  #!/usr/bin/env node
2
- import"./api-eMuS5GI1.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{t}from"./local-B7ZJ78al.mjs";import{n}from"./auth-BUQscD5b.mjs";import{a as r,t as i}from"./context-Sgba0fZP.mjs";import{t as a}from"./output-CpiIVa7Q.mjs";import{t as o}from"./dry-run-BBjUQUhR.mjs";import{t as s}from"./progress-B1dpmxCT.mjs";import{t as c}from"./run-0EozpORq.mjs";import"./telemetry-BczXOpQn.mjs";import{n as l,r as u,t as d}from"./body-parser-ChnyBsfm.mjs";import{n as f}from"./input-validation-D7z60HJH.mjs";import{a as p}from"./prompt-Y5OBwDVE.mjs";var m={method:`POST`,path:t=>e`/accounts/${t.account_id}/request-tracer/trace`,body:`json`};function h(e){return e.usage(`$0 request-tracers traces create
2
+ import"./api-eMuS5GI1.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{t}from"./local-CSH3UMpD.mjs";import{n}from"./auth-BcNLQji1.mjs";import{a as r,t as i}from"./context-DVh8Wyfs.mjs";import{t as a}from"./output-BJEgbI0G.mjs";import{t as o}from"./dry-run-gy0Hl9xo.mjs";import{t as s}from"./progress-CtGsPOpV.mjs";import{t as c}from"./run-DnZGQbq_.mjs";import"./telemetry-CvZean4s.mjs";import{n as l,r as u,t as d}from"./body-parser-ChnyBsfm.mjs";import{n as f}from"./input-validation-D7z60HJH.mjs";import{a as p}from"./prompt-YrI7ltMa.mjs";var m={method:`POST`,path:t=>e`/accounts/${t.account_id}/request-tracer/trace`,body:`json`};function h(e){return e.usage(`$0 request-tracers traces create
3
3
 
4
4
  Traces a simulated HTTP request through Cloudflare's edge to analyze how rules, settings, and configurations would process the request. Useful for debugging firewall rules, page rules, and other request transformations without sending actual traffic. Supports custom headers, cookies, body content, and geolocation context.`).option(`body-base64`,{type:`string`,description:`Base64 encoded request body`}).option(`body-json`,{type:`string`,description:`Arbitrary json as request body. Provide as a JSON object or @path/to/file.json.`}).option(`body-plain-text`,{type:`string`,description:`Request body as plain text`}).option(`context-bot-score`,{type:`number`,description:`Bot score used for evaluating tracing request processing`}).option(`context-geoloc-city`,{type:`string`,description:`The context.geoloc.city field`}).option(`context-geoloc-continent`,{type:`string`,description:`The context.geoloc.continent field`}).option(`context-geoloc-is-eu-country`,{type:`boolean`,description:`The context.geoloc.is_eu_country field`}).option(`context-geoloc-iso-code`,{type:`string`,description:`The context.geoloc.iso_code field`}).option(`context-geoloc-latitude`,{type:`number`,description:`The context.geoloc.latitude field`}).option(`context-geoloc-longitude`,{type:`number`,description:`The context.geoloc.longitude field`}).option(`context-geoloc-postal-code`,{type:`string`,description:`The context.geoloc.postal_code field`}).option(`context-geoloc-region-code`,{type:`string`,description:`The context.geoloc.region_code field`}).option(`context-geoloc-subdivision-2-iso-code`,{type:`string`,description:`The context.geoloc.subdivision_2_iso_code field`}).option(`context-geoloc-timezone`,{type:`string`,description:`The context.geoloc.timezone field`}).option(`context-skip-challenge`,{type:`boolean`,description:`Whether to skip any challenges for tracing request (e.g.: captcha)`}).option(`context-threat-score`,{type:`number`,description:`Threat score used for evaluating tracing request processing`}).option(`cookies`,{type:`string`,description:`Cookies added to tracing request. Provide as a JSON object or @path/to/file.json.`}).option(`headers`,{type:`string`,description:`Headers added to tracing request. Provide as a JSON object or @path/to/file.json.`}).option(`method`,{type:`string`,description:`HTTP Method of tracing request`}).option(`protocol`,{type:`string`,description:`HTTP Protocol of tracing request`}).option(`skip-response`,{type:`boolean`,description:`Skip sending the request to the Origin server after all rules evaluation`}).option(`url`,{type:`string`,description:`URL to which perform tracing request`}).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 g={command:`create`,describe:`Request Trace`,builder:h,handler:async e=>c({command:`request-tracers traces create`,classification:{safeFlags:[`context-geoloc-is-eu-country`,`context-skip-challenge`,`skip-response`,`dry-run`]}},e,async()=>{if(e.dryRun){let t=await r();o({command:`cf request-tracers traces create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/request-tracer/trace`,pathParams:{},bodyKind:`json`,body:e.body===void 0?d({body:{base64:f(e[`body-base64`],`body-base64`,`text`),json:u(e[`body-json`],`body-json`),plain_text:f(e[`body-plain-text`],`body-plain-text`,`text`)},context:{bot_score:e[`context-bot-score`],geoloc:{city:f(e[`context-geoloc-city`],`context-geoloc-city`,`text`),continent:f(e[`context-geoloc-continent`],`context-geoloc-continent`,`text`),is_eu_country:e[`context-geoloc-is-eu-country`],iso_code:f(e[`context-geoloc-iso-code`],`context-geoloc-iso-code`,`text`),latitude:e[`context-geoloc-latitude`],longitude:e[`context-geoloc-longitude`],postal_code:f(e[`context-geoloc-postal-code`],`context-geoloc-postal-code`,`text`),region_code:f(e[`context-geoloc-region-code`],`context-geoloc-region-code`,`text`),subdivision_2_iso_code:f(e[`context-geoloc-subdivision-2-iso-code`],`context-geoloc-subdivision-2-iso-code`,`text`),timezone:f(e[`context-geoloc-timezone`],`context-geoloc-timezone`,`text`)},skip_challenge:e[`context-skip-challenge`],threat_score:e[`context-threat-score`]},cookies:u(e.cookies,`cookies`),headers:u(e.headers,`headers`),method:f(e.method,`method`,`text`),protocol:f(e.protocol,`protocol`,`text`),skip_response:e[`skip-response`],url:f(e.url,`url`,`text`)},[[`body`,`json`],[`cookies`],[`headers`]]):l(e.body)});return}let c=await n(e),h=e.local?t:await i();if(e.accountId=h,e.body){let t=l(e.body),n=await s(`Creating`,async()=>c.send(m,{body:t,account_id:h}));a(n,{successLabel:`Created`});return}e.method===void 0&&(e.method=await p(`method`,`HTTP Method of tracing request`)),e.url===void 0&&(e.url=await p(`url`,`URL to which perform tracing request`));let g=d({body:{base64:f(e[`body-base64`],`body-base64`,`text`),json:u(e[`body-json`],`body-json`),plain_text:f(e[`body-plain-text`],`body-plain-text`,`text`)},context:{bot_score:e[`context-bot-score`],geoloc:{city:f(e[`context-geoloc-city`],`context-geoloc-city`,`text`),continent:f(e[`context-geoloc-continent`],`context-geoloc-continent`,`text`),is_eu_country:e[`context-geoloc-is-eu-country`],iso_code:f(e[`context-geoloc-iso-code`],`context-geoloc-iso-code`,`text`),latitude:e[`context-geoloc-latitude`],longitude:e[`context-geoloc-longitude`],postal_code:f(e[`context-geoloc-postal-code`],`context-geoloc-postal-code`,`text`),region_code:f(e[`context-geoloc-region-code`],`context-geoloc-region-code`,`text`),subdivision_2_iso_code:f(e[`context-geoloc-subdivision-2-iso-code`],`context-geoloc-subdivision-2-iso-code`,`text`),timezone:f(e[`context-geoloc-timezone`],`context-geoloc-timezone`,`text`)},skip_challenge:e[`context-skip-challenge`],threat_score:e[`context-threat-score`]},cookies:u(e.cookies,`cookies`),headers:u(e.headers,`headers`),method:f(e.method,`method`,`text`),protocol:f(e.protocol,`protocol`,`text`),skip_response:e[`skip-response`],url:f(e.url,`url`,`text`)},[[`body`,`json`],[`cookies`],[`headers`]]),_=await s(`Creating`,async()=>c.send(m,{body:g,account_id:h}));a(_,{successLabel:`Created`})})},_={command:`traces`,describe:`Simulate request processing to debug rule matches, transforms, and routing decisions`,builder:e=>e.command(g).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},v={command:`request-tracers`,describe:`Trace how a request would be processed through Cloudflare's rules and configuration pipeline`,builder:e=>e.command(_).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};export{v as default};