cf 1.0.0-beta.15 → 1.0.0-beta.17

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 (250) hide show
  1. package/dist/_meta/commands.json +3797 -3220
  2. package/dist/_meta/hand-written-commands.json +2 -2
  3. package/dist/_meta/schemas.json +4768 -4250
  4. package/dist/{abuse-reports-CnQBtN1G.mjs → abuse-reports-C4LxDvUM.mjs} +1 -1
  5. package/dist/{access-BzmXSwzj.mjs → access-DnWW2AAT.mjs} +1 -1
  6. package/dist/{account-tags-2qPWbW17.mjs → account-tags-zvHRQZxb.mjs} +1 -1
  7. package/dist/{accounts-B0Byg-AV.mjs → accounts-8UcHNm3S.mjs} +39 -39
  8. package/dist/{acm-DgAu0cnk.mjs → acm-qRM3iy4Z.mjs} +3 -3
  9. package/dist/{addressing-J1oa0ML2.mjs → addressing-CAb8z2Dq.mjs} +14 -14
  10. package/dist/{agent-memory-4KGou-tm.mjs → agent-memory-oIUP4ZV5.mjs} +1 -1
  11. package/dist/{ai-WY7wVQfA.mjs → ai-DnhytGdc.mjs} +1 -1
  12. package/dist/{ai-audit-D38HaEoZ.mjs → ai-audit-B7_5EOcN.mjs} +1 -1
  13. package/dist/{ai-gateway-C0gIipT8.mjs → ai-gateway-b3FFu6UV.mjs} +6 -6
  14. package/dist/{ai-search-ClwnPU-9.mjs → ai-search-CtfW5fzl.mjs} +25 -25
  15. package/dist/{ai-security-BIsvFPYV.mjs → ai-security-KUs94UW-.mjs} +1 -1
  16. package/dist/{alerting-MHhv28oO.mjs → alerting-CCmyEPzN.mjs} +1 -1
  17. package/dist/{analytics-BfBz7bqB.mjs → analytics-BAvBj6qx.mjs} +1 -1
  18. package/dist/{analytics_engine-CXVdBF1n.mjs → analytics-engine-DAJp89gM.mjs} +2 -2
  19. package/dist/{api-security-DUCfcdC1.mjs → api-security-BItVQymb.mjs} +2 -2
  20. package/dist/{argo-CUlzI4v3.mjs → argo-DsJCvfml.mjs} +1 -1
  21. package/dist/{artifacts-BLfWGzBg.mjs → artifacts-DzHXeah6.mjs} +1 -1
  22. package/dist/audit-logs-D9XxsVZm.mjs +4 -0
  23. package/dist/{auth-CGRemu5W.mjs → auth-C530fHKQ.mjs} +1 -1
  24. package/dist/auth-Ccm5viK_.mjs +2 -0
  25. package/dist/{auth-C6u9qIGO.mjs → auth-MNz2D-PD.mjs} +1 -1
  26. package/dist/{auth-token-DkkYg4DP.mjs → auth-token-Cw4c0y89.mjs} +1 -1
  27. package/dist/{autoconfig-B0ESZ8DJ.mjs → autoconfig-9po_tqsS.mjs} +1 -1
  28. package/dist/{basin-catalog-CrKRYJ0b.mjs → basin-catalog-DcMiZV9J.mjs} +1 -1
  29. package/dist/{billing-NxehgXrR.mjs → billing-COgAWTYh.mjs} +7 -7
  30. package/dist/{bot-management-C993iQKL.mjs → bot-management-Dx3lh9Fi.mjs} +1 -1
  31. package/dist/{botnet-feed-CZ4vYk5y.mjs → botnet-feed-C8496Nhl.mjs} +1 -1
  32. package/dist/{brand-protection-ADVgIi0l.mjs → brand-protection-B0p8Sv6s.mjs} +1 -1
  33. package/dist/browser-run-ChXohmNG.mjs +42 -0
  34. package/dist/build-BRJnyeu8.mjs +2 -0
  35. package/dist/{build-sBpqm9ga.mjs → build-i8l2qGVZ.mjs} +1 -1
  36. package/dist/{builds-DqtiTH7p.mjs → builds-DmEFTQTa.mjs} +1 -1
  37. package/dist/{cache-hX5QxmI0.mjs → cache-BUh85NRr.mjs} +1 -1
  38. package/dist/{certificate-authorities-BOcybjc1.mjs → certificate-authorities-BTLdA7EQ.mjs} +1 -1
  39. package/dist/chunk-JP6R7L72-C0kFUelb.mjs +2 -0
  40. package/dist/cli-DJhpXf38.mjs +6 -0
  41. package/dist/{client-certificates-Bez_ArKE.mjs → client-certificates-B3UxH_Au.mjs} +1 -1
  42. package/dist/{client-side-security-CSmA50Bv.mjs → client-side-security-km3-4L_4.mjs} +1 -1
  43. package/dist/{cloud-connector-0Wivqi7S.mjs → cloud-connector-BoKFprDD.mjs} +1 -1
  44. package/dist/{cloudforce-one-J-rU6k1U.mjs → cloudforce-one-DN5N3C3w.mjs} +21 -21
  45. package/dist/{command-BCJN-ZM2.mjs → command-B694oLDo.mjs} +1 -1
  46. package/dist/{command-BG-kLOnS.mjs → command-Bmee6uwe.mjs} +1 -1
  47. package/dist/{command-BKDbbA-L.mjs → command-CAs3SxlI.mjs} +1 -1
  48. package/dist/{command-DIs-Nqtl.mjs → command-CCq-Z2Ua.mjs} +1 -1
  49. package/dist/{command-Bdy69UFU.mjs → command-CbQFbfps.mjs} +1 -1
  50. package/dist/{command-0BOb1pgV.mjs → command-CiApsRql.mjs} +1 -1
  51. package/dist/{command-CKW6UhTh.mjs → command-D1JR8Fb7.mjs} +1 -1
  52. package/dist/{command-DPn5ANHs.mjs → command-DerHAjQL.mjs} +1 -1
  53. package/dist/{command-BIsI-mMX.mjs → command-RC9WM5jq.mjs} +1 -1
  54. package/dist/{command-BWQIKu6I.mjs → command-rx0Kb5pn.mjs} +1 -1
  55. package/dist/{completions-CpNGTlUX.mjs → completions-11latun5.mjs} +1 -1
  56. package/dist/{connector-interrupts-CH-DaLuo.mjs → connector-interrupts-wvQcZsO1.mjs} +1 -1
  57. package/dist/{connector-telemetry-events-X3Fod9nl.mjs → connector-telemetry-events-C0GGCIQk.mjs} +1 -1
  58. package/dist/{connector-telemetry-snapshots-D-WR4npQ.mjs → connector-telemetry-snapshots-ZXzsFgea.mjs} +1 -1
  59. package/dist/{connectors-CORKD31m.mjs → connectors-DXIUG4Zi.mjs} +1 -1
  60. package/dist/{containers-BboUbx3k.mjs → containers-DCH6MFjY.mjs} +5 -5
  61. package/dist/{containers-Di3_Vopq.mjs → containers-WMWKhLkp.mjs} +1 -1
  62. package/dist/{content-scan-DXGREAXa.mjs → content-scan-CRDmR7rD.mjs} +1 -1
  63. package/dist/{context-A6T-NKPI.mjs → context-q-6bMSL-.mjs} +1 -1
  64. package/dist/{cps-1BoOLtTq.mjs → cps-Due0P5IW.mjs} +1 -1
  65. package/dist/csam-scanner-DvLrPw45.mjs +10 -0
  66. package/dist/{ct-alerting-DlH4ILQo.mjs → ct-alerting-BtEGkRJi.mjs} +1 -1
  67. package/dist/{custom-certificates-zJqJZ2Th.mjs → custom-certificates-CMLXTTEc.mjs} +4 -4
  68. package/dist/{custom-csrs-DoLIGqYL.mjs → custom-csrs-BV017SqE.mjs} +3 -3
  69. package/dist/{custom-hostnames-YfV-aoAK.mjs → custom-hostnames-DI_dFaof.mjs} +6 -6
  70. package/dist/{custom-nameservers-BV43gmgt.mjs → custom-nameservers-BLoE8VGG.mjs} +1 -1
  71. package/dist/{custom-pages-CoOU1Cdx.mjs → custom-pages-ubava9Qm.mjs} +6 -6
  72. package/dist/{d1-DujBmzLa.mjs → d1-Dbs8HItA.mjs} +1 -1
  73. package/dist/{dcv-delegation-CPLsVYOl.mjs → dcv-delegation-sGGt6UU_.mjs} +1 -1
  74. package/dist/{deploy-wNujfGUJ.mjs → deploy-5utIiOMN.mjs} +1 -1
  75. package/dist/{deploy-context-tEhwEXnA.mjs → deploy-context-C0iVbWRG.mjs} +1 -1
  76. package/dist/{deploy-input-BqJ7GVZ-.mjs → deploy-input-KK6yyBN_.mjs} +1 -1
  77. package/dist/{dev-EtnMYA7K.mjs → dev-CnoMHxf4.mjs} +1 -1
  78. package/dist/{diagnostics-B3TYPVRi.mjs → diagnostics-C9B07eJY.mjs} +1 -1
  79. package/dist/{dls-CWm1HRF0.mjs → dls-lbM3i4x-.mjs} +7 -7
  80. package/dist/{dns-CjAFU7Z9.mjs → dns-QTMPGYMa.mjs} +5 -5
  81. package/dist/{dns-firewall-BooBP9ap.mjs → dns-firewall-Bfv0S44I.mjs} +1 -1
  82. package/dist/{docs-C5XB7HdG.mjs → docs-bV3hPwQL.mjs} +1 -1
  83. package/dist/{durable-objects-CSrMQDCE.mjs → durable-objects-0JvGTV27.mjs} +1 -1
  84. package/dist/{email-auth-Bp1Mui-n.mjs → email-auth-PzRqG0ex.mjs} +1 -1
  85. package/dist/{email-routing-CVF6SwQt.mjs → email-routing-BgHL0Rbz.mjs} +4 -4
  86. package/dist/{email-security-mYZtazae.mjs → email-security-CSTKIecn.mjs} +1 -1
  87. package/dist/{email-sending-BqaKU_Xu.mjs → email-sending-BSwuAir8.mjs} +14 -14
  88. package/dist/field-extractors-B_lFnwaL.mjs +9 -0
  89. package/dist/{firewall-DgTDsYOt.mjs → firewall-BsZxVitA.mjs} +11 -11
  90. package/dist/{flagship-Db3PxxyZ.mjs → flagship-qBohOZaM.mjs} +1 -1
  91. package/dist/{fraud-BEOQczy8.mjs → fraud-vGNdrSm-.mjs} +1 -1
  92. package/dist/{google-tag-gateway-DjLQ9wo0.mjs → google-tag-gateway-BHdOg4VW.mjs} +1 -1
  93. package/dist/{healthchecks-C3ScnKss.mjs → healthchecks-DAYYLZ6u.mjs} +7 -7
  94. package/dist/{hostnames-DU0k-xO9.mjs → hostnames-CLlaMqHu.mjs} +1 -1
  95. package/dist/{hyperdrive-IpCCLCRd.mjs → hyperdrive-CXTqaIqk.mjs} +3 -3
  96. package/dist/{iam-96CYM8Vw.mjs → iam-Dl_n_Lqq.mjs} +1 -1
  97. package/dist/{images-AB9EgZgT.mjs → images-vMtXk2Rf.mjs} +1 -1
  98. package/dist/index.mjs +1 -1
  99. package/dist/{init-D2nPoW4f.mjs → init-_7djeBVw.mjs} +1 -1
  100. package/dist/{intel-BKb4RLvS.mjs → intel-Bq4GGXv-.mjs} +1 -1
  101. package/dist/{ips-z9APCV_b.mjs → ips-BcvZS46g.mjs} +1 -1
  102. package/dist/{k2-Bv-HiJ29.mjs → k2-DL4hrVTj.mjs} +1 -1
  103. package/dist/{keyless-certificates-ChgSGHq4.mjs → keyless-certificates-0pzjkZb6.mjs} +4 -4
  104. package/dist/{keys-BhngDsDa.mjs → keys-BSV5IXdU.mjs} +1 -1
  105. package/dist/{kv-CB5MQVGP.mjs → kv-BLo9wMgb.mjs} +3 -3
  106. package/dist/{lazy-command-CaZ1kdlW.mjs → lazy-command-CRcT6Dx-.mjs} +1 -1
  107. package/dist/{leaked-credential-checks-Bsi2WpSU.mjs → leaked-credential-checks-Dx4RXMyN.mjs} +3 -3
  108. package/dist/{load-balancers-0gXZNCeI.mjs → load-balancers-CCCWoQXv.mjs} +40 -40
  109. package/dist/{login-CiQGR8ha.mjs → login-DT6Q1UJw.mjs} +1 -1
  110. package/dist/{login-Ik98G4K6.mjs → login-Du_W6b9o.mjs} +1 -1
  111. package/dist/{logo-matches-DmoF5Otu.mjs → logo-matches-C-1J0Oc3.mjs} +1 -1
  112. package/dist/{logos-BL6ohIMH.mjs → logos-BuhvSu_H.mjs} +1 -1
  113. package/dist/{logpush-UVopW68t.mjs → logpush-DgZtF9vG.mjs} +6 -6
  114. package/dist/{logs-BVfxiEiM.mjs → logs-CaKOk-1v.mjs} +1 -1
  115. package/dist/{magic-cloud-networking-B5S3aM6f.mjs → magic-cloud-networking-CKxXYT8r.mjs} +1 -1
  116. package/dist/{magic-network-monitoring-CDSJPP47.mjs → magic-network-monitoring-BykFGQCz.mjs} +1 -1
  117. package/dist/{magic-transit-TcDTKM43.mjs → magic-transit-DYULsrUP.mjs} +1 -1
  118. package/dist/{managed-defense-C88HL0pg.mjs → managed-defense-DIb_uN25.mjs} +5 -5
  119. package/dist/{managed-transforms-Ja41Tahl.mjs → managed-transforms-an3wQ0DW.mjs} +1 -1
  120. package/dist/{matches-BL_Y-9Yq.mjs → matches-DkLSWb5X.mjs} +1 -1
  121. package/dist/{mcp-BWp5Q09R.mjs → mcp-BcV1XqE8.mjs} +1 -1
  122. package/dist/{mesh-lFPLRWhV.mjs → mesh-CSSlZ-0F.mjs} +1 -1
  123. package/dist/{migrate-6e5mJ79R.mjs → migrate-DerOyuv2.mjs} +1 -1
  124. package/dist/{monetization-BIc4Bwo2.mjs → monetization-B-nJ0SyI.mjs} +1 -1
  125. package/dist/{mtls-certificates-CVBw-Jli.mjs → mtls-certificates-ukwDz6Lc.mjs} +1 -1
  126. package/dist/{network-Wig0qbaC.mjs → network-ZzxQ_Dcz.mjs} +1 -1
  127. package/dist/{network-interconnects-C16z1HuQ.mjs → network-interconnects-CI9NXQpe.mjs} +1 -1
  128. package/dist/{o11y-Bhy4qDRm.mjs → o11y-LG6Y9LUZ.mjs} +2 -2
  129. package/dist/{oauth-oWaW7ICv.mjs → oauth-Bx693Af5.mjs} +1 -1
  130. package/dist/{oauth-CfEedDZi.mjs → oauth-CP82E1_0.mjs} +1 -1
  131. package/dist/{oauth-clients-eXjmK5yf.mjs → oauth-clients-BA30rTEl.mjs} +1 -1
  132. package/dist/{oauth-scopes-DZWn50EA.mjs → oauth-scopes-hseWES1v.mjs} +1 -1
  133. package/dist/open-PCXX3ZDZ-5J5IU2MX-CKla-jDt.mjs +4 -0
  134. package/dist/{organization-QdAQTrKa.mjs → organization-DMr_z6n4.mjs} +3 -3
  135. package/dist/{organizations-CgAQYdK5.mjs → organizations-CcgZPmFl.mjs} +1 -1
  136. package/dist/{origin-ca-certificates-BklXqp8X.mjs → origin-ca-certificates-BZxUbB5N.mjs} +1 -1
  137. package/dist/{origin-post-quantum-encryption-Dg16ueT4.mjs → origin-post-quantum-encryption-BhdlaolV.mjs} +1 -1
  138. package/dist/{origin-tls-client-auth-d8bDU5zU.mjs → origin-tls-client-auth-DzbZvtmi.mjs} +6 -6
  139. package/dist/{page-rules-CgMkC6YR.mjs → page-rules-DFfqfllI.mjs} +5 -5
  140. package/dist/{pages-CkBtOOf8.mjs → pages-BkcL5rC4.mjs} +9 -9
  141. package/dist/{pay-per-crawl-CnGXOWyz.mjs → pay-per-crawl-Dulm7Xy5.mjs} +1 -1
  142. package/dist/{pay-per-use-HbfxpATr.mjs → pay-per-use-C_HxhpM4.mjs} +1 -1
  143. package/dist/{pipelines-CnO9CCs0.mjs → pipelines-DUMIVwof.mjs} +1 -1
  144. package/dist/{precursor-Bc55XJdQ.mjs → precursor-DsGbA_YJ.mjs} +1 -1
  145. package/dist/{previews-C7vZrajd.mjs → previews-Cma3-M7K.mjs} +1 -1
  146. package/dist/{progress-D5po7ScB.mjs → progress-DaQ4MzBI.mjs} +1 -1
  147. package/dist/{prompt-BAJpE3jV.mjs → prompt-KWYZvJWM.mjs} +1 -1
  148. package/dist/{queries-BJAH4B74.mjs → queries-DoyhspQf.mjs} +1 -1
  149. package/dist/{queues-D4G8vvwi.mjs → queues-BPxTU2rU.mjs} +4 -4
  150. package/dist/{r2-CJ8rD6Jb.mjs → r2-CQt4S7o7.mjs} +4 -4
  151. package/dist/{radar-DgaxOdcd.mjs → radar-CALpR1vq.mjs} +1 -1
  152. package/dist/{raw-fetch-yY-wX5Xx.mjs → raw-fetch-Cy09TjHc.mjs} +1 -1
  153. package/dist/{realtime-DU09m7L7.mjs → realtime-BiHKBoI4.mjs} +6 -6
  154. package/dist/{registrar-Cj7OfvGs.mjs → registrar-gERQ3b85.mjs} +1 -1
  155. package/dist/{registrar-sandbox-CA0Mua-j.mjs → registrar-sandbox-BttFwYqE.mjs} +1 -1
  156. package/dist/reporting-8aRJD5HX.mjs +14 -0
  157. package/dist/{request-headers-D_eQn93b.mjs → request-headers-CqfJOkpO.mjs} +1 -1
  158. package/dist/{request-tracers-VBD4R3s3.mjs → request-tracers-DcnwQg3K.mjs} +1 -1
  159. package/dist/{resource-sharing-BtUF3psS.mjs → resource-sharing-uVVpMW0w.mjs} +1 -1
  160. package/dist/{resource-tagging--90INP8_.mjs → resource-tagging-SlsUtLsq.mjs} +1 -1
  161. package/dist/{rules-CcwPngVo.mjs → rules-CFOuN3t2.mjs} +10 -10
  162. package/dist/{rulesets-CfdruY82.mjs → rulesets-DkhV2Hny.mjs} +15 -15
  163. package/dist/{rum-RLkdfSL7.mjs → rum-BnMW0Tlb.mjs} +1 -1
  164. package/dist/run-CHNyLZLG.mjs +2 -0
  165. package/dist/{run-DASYqJsY.mjs → run-Clc3P2u7.mjs} +1 -1
  166. package/dist/{schema-flags-CShtn7ya.mjs → schema-flags-b096XMpt.mjs} +1 -1
  167. package/dist/{scim-BZYsTPIL.mjs → scim-tvZm6A-r.mjs} +1 -1
  168. package/dist/{secrets-store-C_-FkSH_.mjs → secrets-store-DuNxSh1_.mjs} +1 -1
  169. package/dist/{security-insights-BVBEaZmD.mjs → security-insights-C17c9ZYZ.mjs} +1 -1
  170. package/dist/{security-txt--IoHrHee.mjs → security-txt-D4pRk7-w.mjs} +1 -1
  171. package/dist/{shared-zNQNv1im.mjs → shared-zePemxHi.mjs} +1 -1
  172. package/dist/{smart-shield-CByC4_60.mjs → smart-shield-2egm1Vaw.mjs} +5 -5
  173. package/dist/{snippets-DB-jiZAV.mjs → snippets-BIcZ6vSW.mjs} +1 -1
  174. package/dist/{spawn-DQttFH05.mjs → spawn-BW2bJmKO.mjs} +1 -1
  175. package/dist/{spectrum-Bs2g1BmK.mjs → spectrum-DjDX0geK.mjs} +9 -9
  176. package/dist/{speed-Bq4evEnJ.mjs → speed-DiPoFJMm.mjs} +1 -1
  177. package/dist/{sql-XGci7hZC.mjs → sql-DLjCt_R3.mjs} +1 -1
  178. package/dist/{src-GiuwAT55.mjs → src-CutrsNl4.mjs} +7 -7
  179. package/dist/{ssl-KJTLW1NR.mjs → ssl-vNzK0c9S.mjs} +5 -5
  180. package/dist/{stream-BotgYspF.mjs → stream-uhn_Zsni.mjs} +8 -8
  181. package/dist/{submit-C5VytaHP.mjs → submit-C3suIDBX.mjs} +1 -1
  182. package/dist/{tags-3Hq-B9qp.mjs → tags-Dy2jG-Dt.mjs} +1 -1
  183. package/dist/telemetry-Bdv5LZZs.mjs +2 -0
  184. package/dist/{telemetry-3FJOXl_C.mjs → telemetry-DYjsavEr.mjs} +1 -1
  185. package/dist/{tenant-BgX5onPc.mjs → tenant-DK88yQM4.mjs} +1 -1
  186. package/dist/{tenant-custom-nameservers-BVG8v1Xo.mjs → tenant-custom-nameservers-BZ1JD1Yf.mjs} +2 -2
  187. package/dist/{tunnels-CThOI3qH.mjs → tunnels-DjbomhCa.mjs} +3 -3
  188. package/dist/{turnstile-BgZaUx-g.mjs → turnstile-DXrbEy2A.mjs} +1 -1
  189. package/dist/{update-check-jb89ih_g.mjs → update-check-BhhtSXVZ.mjs} +1 -1
  190. package/dist/update-check-Dld7rbLd.mjs +2 -0
  191. package/dist/update-check-worker.mjs +1 -1
  192. package/dist/{url-info-DQERN0Xq.mjs → url-info-a0mY4UsC.mjs} +1 -1
  193. package/dist/{url-normalization-Cb1hofqv.mjs → url-normalization-DiwpDIhc.mjs} +1 -1
  194. package/dist/{url-scanner-gHgx1bW7.mjs → url-scanner-D0egjBe5.mjs} +1 -1
  195. package/dist/{user-CdKzIuSi.mjs → user-DDH9lxf5.mjs} +58 -58
  196. package/dist/{values-EwA8Sx0w.mjs → values-Bfr5-bL6.mjs} +1 -1
  197. package/dist/{vectorize-DejgIJIv.mjs → vectorize-DaT3amFV.mjs} +1 -1
  198. package/dist/version-CAuKDZAG.mjs +2 -0
  199. package/dist/{waiting-rooms-BNR1HvAP.mjs → waiting-rooms-BGMpu9gS.mjs} +18 -18
  200. package/dist/{web-assets-iglnzkTV.mjs → web-assets-NqNglLSI.mjs} +1 -1
  201. package/dist/{web3-JBUU6IVt.mjs → web3-UnCUuIfB.mjs} +11 -11
  202. package/dist/{workers-CDp4kLTJ.mjs → workers-DfA9ugmb.mjs} +2 -2
  203. package/dist/{workers-builds-CSb9Dglt.mjs → workers-builds-Cy6fdtm5.mjs} +1 -1
  204. package/dist/{workers-for-platforms-D4srNZvt.mjs → workers-for-platforms-JscCHivQ.mjs} +1 -1
  205. package/dist/{workers-vpc-LPC8TadH.mjs → workers-vpc-FDZQBqOu.mjs} +1 -1
  206. package/dist/{workflows-DN_VqWJC.mjs → workflows-Dq-k81hU.mjs} +1 -1
  207. package/dist/wrangler-migration-R9TQ_4Qd.mjs +946 -0
  208. package/dist/{zaraz-DDErl5yc.mjs → zaraz-Dpr1pLDx.mjs} +1 -1
  209. package/dist/{zero-trust-M88XX3uD.mjs → zero-trust-CZ685QhO.mjs} +27 -27
  210. package/dist/{zone-BsGvedmN.mjs → zone-DcZIUTWt.mjs} +1 -1
  211. package/dist/{zones-l_sRKrVl.mjs → zones-BVdvYUCv.mjs} +3 -3
  212. package/package.json +11 -10
  213. package/dist/alerts-BSON-vFh.mjs +0 -2
  214. package/dist/audit-logs-CsfIm2QS.mjs +0 -4
  215. package/dist/auth-8Sm4uLGM.mjs +0 -2
  216. package/dist/autorag-kNrLiqDX.mjs +0 -2
  217. package/dist/brands-bBJgbbOH.mjs +0 -2
  218. package/dist/browser-extension-C1_fcw7h.mjs +0 -2
  219. package/dist/browser-run-CEptKZYl.mjs +0 -42
  220. package/dist/build-Bm6kGyzo.mjs +0 -2
  221. package/dist/clear-BW9vLgI3.mjs +0 -2
  222. package/dist/cli-R8h3OKZI.mjs +0 -6
  223. package/dist/connector-telemetry-events-latest-BQdOvbWh.mjs +0 -2
  224. package/dist/connector-telemetry-snapshots-latest-CtdN_dGu.mjs +0 -2
  225. package/dist/csamScanner-CHfbfeup.mjs +0 -10
  226. package/dist/domain-info-BkcBcyfF.mjs +0 -2
  227. package/dist/fieldExtractors-CAGZVmYg.mjs +0 -9
  228. package/dist/health-CTaCeVyC.mjs +0 -2
  229. package/dist/internal-BYS7hO8c.mjs +0 -2
  230. package/dist/live-BJE_YWE1.mjs +0 -2
  231. package/dist/r2-data-catalog-BRo-Rx2I.mjs +0 -2
  232. package/dist/rate-limit-analytics-BiRyU0Xd.mjs +0 -2
  233. package/dist/rate-limits-Cr2zpncO.mjs +0 -2
  234. package/dist/ready-B3pLxnjc.mjs +0 -2
  235. package/dist/recent-submissions-JLOvuZq-.mjs +0 -2
  236. package/dist/refute-Dp3VodMn.mjs +0 -2
  237. package/dist/reporting-3kDVF5c8.mjs +0 -14
  238. package/dist/run-CUNhH5CQ.mjs +0 -2
  239. package/dist/scan-logo-3Zr6CDJB.mjs +0 -2
  240. package/dist/scan-page-CxeudOzj.mjs +0 -2
  241. package/dist/search-B_P5ZTQj.mjs +0 -2
  242. package/dist/signed-url-D5RwvrQq.mjs +0 -2
  243. package/dist/submission-info-_t78q2OE.mjs +0 -2
  244. package/dist/telemetry-BhKfwxyh.mjs +0 -2
  245. package/dist/total-queries-CPrKEciQ.mjs +0 -2
  246. package/dist/tracked-domains-CTRItgFT.mjs +0 -2
  247. package/dist/update-check-Yy7Ivq2V.mjs +0 -2
  248. package/dist/verify-5KcvRk-q.mjs +0 -2
  249. package/dist/version-B6MnUIqV.mjs +0 -2
  250. package/dist/wrangler-migration-DxTB5yPT.mjs +0 -2
@@ -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-Dil4fTWX.mjs";import{n}from"./auth-C6u9qIGO.mjs";import{a as r,t as i}from"./context-A6T-NKPI.mjs";import{t as a}from"./output-Co4xdFf6.mjs";import{t as o}from"./dry-run-C2KjGX10.mjs";import{t as s}from"./progress-D5po7ScB.mjs";import{t as c}from"./run-DASYqJsY.mjs";import"./telemetry-BhKfwxyh.mjs";import{n as l,t as u}from"./body-parser-DkHKPkJ7.mjs";import{n as d}from"./input-validation-D7z60HJH.mjs";import{a as f,i as p,n as m}from"./prompt-BAJpE3jV.mjs";var h={method:`GET`,path:t=>e`/accounts/${t.account_id}/realtime/kit/${t.app_id}/analytics/livestreams/daywise`,query:[`start_time`,`end_time`,`filters`]};function g(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-Dil4fTWX.mjs";import{n}from"./auth-MNz2D-PD.mjs";import{a as r,t as i}from"./context-q-6bMSL-.mjs";import{t as a}from"./output-Co4xdFf6.mjs";import{t as o}from"./dry-run-C2KjGX10.mjs";import{t as s}from"./progress-DaQ4MzBI.mjs";import{t as c}from"./run-Clc3P2u7.mjs";import"./telemetry-Bdv5LZZs.mjs";import{n as l,t as u}from"./body-parser-DkHKPkJ7.mjs";import{n as d}from"./input-validation-D7z60HJH.mjs";import{a as f,i as p,n as m}from"./prompt-KWYZvJWM.mjs";var h={method:`GET`,path:t=>e`/accounts/${t.account_id}/realtime/kit/${t.app_id}/analytics/livestreams/daywise`,query:[`start_time`,`end_time`,`filters`]};function g(e){return e.usage(`$0 realtime kit analytics livestreams daily get <app-id>
3
3
 
4
4
  Returns day-wise livestream analytics for the specified time range.`).positional(`app-id`,{type:`string`,description:`The app identifier tag.`,demandOption:!0}).option(`start-time`,{type:`number`,description:`Specify the start time as a Unix timestamp in seconds to access the livestream analytics.`}).option(`end-time`,{type:`number`,description:`Specify the end time as a Unix timestamp in seconds to access the livestream analytics.`}).option(`filters`,{type:`string`,description:`Optional filters for livestream analytics.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const ee={command:`get <app-id>`,describe:`Fetch day-wise analytics data for your livestreams`,builder:g,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(h,{account_id:u,app_id:e[`app-id`],...c}));a(d,{successLabel:`Loaded`})})},_={command:`daily`,describe:`Daily livestream analytics for RealtimeKit applications`,builder:e=>e.command(ee).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var te={method:`GET`,path:t=>e`/accounts/${t.account_id}/realtime/kit/${t.app_id}/analytics/livestreams/overall`,query:[`start_time`,`end_time`,`filters`]};function ne(e){return e.usage(`$0 realtime kit analytics livestreams get <app-id>
5
5
 
@@ -37,7 +37,7 @@ Mutes one or more participants from an active session using user ID or custom pa
37
37
 
38
38
  Creates a new poll in 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(`anonymous`,{type:`boolean`,description:`if voters on a poll are anonymous`}).option(`hide-votes`,{type:`boolean`,description:`if votes on an option are visible before a person votes`}).option(`options`,{type:`string`,array:!0,description:`Different options for the question`}).option(`question`,{type:`string`,description:`Question of the poll`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Request body for creating a new poll`})}const We={command:`create <meeting-id>`,describe:`Create a poll`,builder:Ue,handler:async e=>c({command:`realtime kit meetings active polls create`,classification:{safeFlags:[`anonymous`,`hide-votes`,`dry-run`]}},e,async()=>{if(e.dryRun){let t=await r();o({command:`cf realtime kit meetings active polls 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`]))}/active-session/poll`,pathParams:{"app-id":String(e[`app-id`]??``),"meeting-id":String(e[`meeting-id`]??``)},bodyKind:`json`,body:e.body===void 0?u({anonymous:e.anonymous,hide_votes:e[`hide-votes`],options:e.options,question:d(e.question,`question`,`text`)}):l(e.body)});return}let c=await n(e),p=e.local?t:await i();if(e.accountId=p,e.body){let t=l(e.body),n=await s(`Creating`,async()=>c.send(A,{body:t,account_id:p,app_id:e[`app-id`],meeting_id:e[`meeting-id`]}));a(n,{successLabel:`Created`});return}if(e.options===void 0)throw Error(`--options is required (or pass --body with this field set).`);e.question===void 0&&(e.question=await f(`question`,`Question of the poll`));let m=u({anonymous:e.anonymous,hide_votes:e[`hide-votes`],options:e.options,question:d(e.question,`question`,`text`)}),h=await s(`Creating`,async()=>c.send(A,{body:m,account_id:p,app_id:e[`app-id`],meeting_id:e[`meeting-id`]}));a(h,{successLabel:`Created`})})},Ge={command:`polls`,describe:`Polls for active meeting sessions`,builder:e=>e.command(We).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},Ke={command:`active`,describe:`Live meeting state and participant controls`,builder:e=>e.command(Ne).command(Re).command(Ie).command(He).command(Be).command(Ge).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var j={method:`POST`,path:t=>e`/accounts/${t.account_id}/realtime/kit/${t.app_id}/meetings`,body:`json`};function qe(e){return e.usage(`$0 realtime kit meetings create <app-id>
39
39
 
40
- Create a meeting for the given App ID.`).positional(`app-id`,{type:`string`,description:`The app identifier tag.`,demandOption:!0}).option(`ai-config-summarization-summary-type`,{type:`string`,description:`Defines the style of the summary, such as general, team meeting, or sales call.`,choices:[`general`,`team_meeting`,`sales_call`,`client_check_in`,`interview`,`daily_standup`,`one_on_one_meeting`,`lecture`,`code_review`]}).coerce(`ai-config-summarization-summary-type`,e=>d(e,`ai-config-summarization-summary-type`,`text`)).option(`ai-config-summarization-text-format`,{type:`string`,description:`Determines the text format of the summary, such as plain text or markdown.`,choices:[`plain_text`,`markdown`]}).coerce(`ai-config-summarization-text-format`,e=>d(e,`ai-config-summarization-text-format`,`text`)).option(`ai-config-summarization-word-limit`,{type:`number`,description:`Sets the maximum number of words in the meeting summary.`}).option(`ai-config-transcription-keywords`,{type:`string`,array:!0,description:`Adds specific terms to improve accurate detection during transcription.`}).option(`ai-config-transcription-language`,{type:`string`,description:`Specifies the language code for transcription to ensure accurate results. If omitted, the language is auto-detected for post-meeting (Whisper) transcription.`,choices:[`en-US`,`en-IN`,`de`,`hi`,`sv`,`ru`,`pl`,`el`,`fr`,`nl`]}).coerce(`ai-config-transcription-language`,e=>d(e,`ai-config-transcription-language`,`text`)).option(`ai-config-transcription-profanity-filter`,{type:`boolean`,description:`Control the inclusion of offensive language in transcriptions.`}).option(`live-stream-on-start`,{type:`boolean`,description:`Specifies if the meeting should start getting livestreamed on start.`,default:!1}).option(`persist-chat`,{type:`boolean`,description:`If a meeting is set to persist_chat, meeting chat would remain for a week within the meeting space.`,default:!1}).option(`record-on-start`,{type:`boolean`,description:`Specifies if the meeting should start getting recorded as soon as someone joins the meeting.`,default:!1}).option(`recording-config-audio-config-channel`,{type:`string`,description:`Audio signal pathway within an audio file that carries a specific sound source.`,choices:[`mono`,`stereo`]}).coerce(`recording-config-audio-config-channel`,e=>d(e,`recording-config-audio-config-channel`,`text`)).option(`recording-config-audio-config-codec`,{type:`string`,description:`Codec using which the recording will be encoded. If VP8/VP9 is selected for videoConfig, changing audioConfig is not allowed. In this case, the codec in the audioConfig is automatically set to vorbis.`,choices:[`MP3`,`AAC`]}).coerce(`recording-config-audio-config-codec`,e=>d(e,`recording-config-audio-config-codec`,`text`)).option(`recording-config-audio-config-export-file`,{type:`boolean`,description:`Controls whether to export audio file seperately`}).option(`recording-config-file-name-prefix`,{type:`string`,description:`Adds a prefix to the beginning of the file name of the recording.`}).option(`recording-config-live-streaming-config-rtmp-url`,{type:`string`,description:`RTMP URL to stream to`}).option(`recording-config-max-seconds`,{type:`number`,description:`Specifies the maximum duration for recording in seconds, ranging from a minimum of 60 seconds to a maximum of 24 hours.`}).option(`recording-config-realtimekit-bucket-config-enabled`,{type:`boolean`,description:"Controls whether recordings are uploaded to RealtimeKit's bucket. If set to false, `download_url`, `audio_download_url`, `download_url_expiry` won't be generated for a recording."}).option(`recording-config-video-config-codec`,{type:`string`,description:`Codec using which the recording will be encoded.`,choices:[`H264`,`VP8`,`VP9`]}).coerce(`recording-config-video-config-codec`,e=>d(e,`recording-config-video-config-codec`,`text`)).option(`recording-config-video-config-export-file`,{type:`boolean`,description:`Controls whether to export video file seperately`}).option(`recording-config-video-config-height`,{type:`number`,description:`Height of the recording video in pixels`}).option(`recording-config-video-config-watermark-position`,{type:`string`,description:`Position of the watermark`,choices:[`left top`,`right top`,`left bottom`,`right bottom`]}).coerce(`recording-config-video-config-watermark-position`,e=>d(e,`recording-config-video-config-watermark-position`,`text`)).option(`recording-config-video-config-watermark-url`,{type:`string`,description:`URL of the watermark image`}).option(`recording-config-video-config-width`,{type:`number`,description:`Width of the recording video in pixels`}).option(`session-keep-alive-time-in-secs`,{type:`number`,description:`Time in seconds, for which a session remains active, after the last participant has left the meeting.`,default:60}).option(`summarize-on-end`,{type:`boolean`,description:`Automatically generate summary of meetings using transcripts. Requires Transcriptions to be enabled, and can be retrieved via Webhooks or summary API.`,default:!1}).option(`title`,{type:`string`,description:`Title of the meeting`}).option(`transcribe-on-end`,{type:`boolean`,description:`Automatically generate transcripts when the meeting ends.`,default:!1}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Create meeting body`}).check(e=>{if([`recording-config-audio-config-channel`,`recording-config-audio-config-codec`,`recording-config-audio-config-export-file`,`recording-config-file-name-prefix`,`recording-config-live-streaming-config-rtmp-url`,`recording-config-max-seconds`,`recording-config-realtimekit-bucket-config-enabled`,`recording-config-video-config-codec`,`recording-config-video-config-export-file`,`recording-config-video-config-height`,`recording-config-video-config-watermark-position`,`recording-config-video-config-watermark-url`,`recording-config-video-config-width`].some(t=>e[t]!==void 0)){let t=[`recording-config-realtimekit-bucket-config-enabled`].filter(t=>e[t]===void 0);if(t.length>0)throw Error(`${t.map(e=>`--`+e).join(`, `)} ${t.length===1?`is`:`are`} required when any --recording_config-* flag is set`)}return!0})}const Je={command:`create <app-id>`,describe:`Create a meeting`,builder:qe,handler:async e=>c({command:`realtime kit meetings create`,classification:{safeFlags:[`ai-config-summarization-summary-type`,`ai-config-summarization-text-format`,`ai-config-transcription-language`,`ai-config-transcription-profanity-filter`,`live-stream-on-start`,`persist-chat`,`record-on-start`,`recording-config-audio-config-channel`,`recording-config-audio-config-codec`,`recording-config-audio-config-export-file`,`recording-config-realtimekit-bucket-config-enabled`,`recording-config-video-config-codec`,`recording-config-video-config-export-file`,`recording-config-video-config-watermark-position`,`summarize-on-end`,`transcribe-on-end`,`dry-run`]}},e,async()=>{if(e.dryRun){let t=await r();o({command:`cf realtime kit meetings 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`,pathParams:{"app-id":String(e[`app-id`]??``)},bodyKind:`json`,body:e.body===void 0?u({ai_config:{summarization:{summary_type:e[`ai-config-summarization-summary-type`],text_format:e[`ai-config-summarization-text-format`],word_limit:e[`ai-config-summarization-word-limit`]},transcription:{keywords:e[`ai-config-transcription-keywords`],language:e[`ai-config-transcription-language`],profanity_filter:e[`ai-config-transcription-profanity-filter`]}},live_stream_on_start:e[`live-stream-on-start`],persist_chat:e[`persist-chat`],record_on_start:e[`record-on-start`],recording_config:{audio_config:{channel:e[`recording-config-audio-config-channel`],codec:e[`recording-config-audio-config-codec`],export_file:e[`recording-config-audio-config-export-file`]},file_name_prefix:d(e[`recording-config-file-name-prefix`],`recording-config-file-name-prefix`,`text`),live_streaming_config:{rtmp_url:d(e[`recording-config-live-streaming-config-rtmp-url`],`recording-config-live-streaming-config-rtmp-url`,`text`)},max_seconds:e[`recording-config-max-seconds`],realtimekit_bucket_config:{enabled:e[`recording-config-realtimekit-bucket-config-enabled`]},video_config:{codec:e[`recording-config-video-config-codec`],export_file:e[`recording-config-video-config-export-file`],height:e[`recording-config-video-config-height`],watermark:{position:e[`recording-config-video-config-watermark-position`],url:d(e[`recording-config-video-config-watermark-url`],`recording-config-video-config-watermark-url`,`text`)},width:e[`recording-config-video-config-width`]}},session_keep_alive_time_in_secs:e[`session-keep-alive-time-in-secs`],summarize_on_end:e[`summarize-on-end`],title:d(e.title,`title`,`text`),transcribe_on_end:e[`transcribe-on-end`]}):l(e.body)});return}let c=await n(e),f=e.local?t:await i();if(e.accountId=f,e.body){let t=l(e.body),n=await s(`Creating`,async()=>c.send(j,{body:t,account_id:f,app_id:e[`app-id`]}));a(n,{successLabel:`Created`});return}let p=u({ai_config:{summarization:{summary_type:e[`ai-config-summarization-summary-type`],text_format:e[`ai-config-summarization-text-format`],word_limit:e[`ai-config-summarization-word-limit`]},transcription:{keywords:e[`ai-config-transcription-keywords`],language:e[`ai-config-transcription-language`],profanity_filter:e[`ai-config-transcription-profanity-filter`]}},live_stream_on_start:e[`live-stream-on-start`],persist_chat:e[`persist-chat`],record_on_start:e[`record-on-start`],recording_config:{audio_config:{channel:e[`recording-config-audio-config-channel`],codec:e[`recording-config-audio-config-codec`],export_file:e[`recording-config-audio-config-export-file`]},file_name_prefix:d(e[`recording-config-file-name-prefix`],`recording-config-file-name-prefix`,`text`),live_streaming_config:{rtmp_url:d(e[`recording-config-live-streaming-config-rtmp-url`],`recording-config-live-streaming-config-rtmp-url`,`text`)},max_seconds:e[`recording-config-max-seconds`],realtimekit_bucket_config:{enabled:e[`recording-config-realtimekit-bucket-config-enabled`]},video_config:{codec:e[`recording-config-video-config-codec`],export_file:e[`recording-config-video-config-export-file`],height:e[`recording-config-video-config-height`],watermark:{position:e[`recording-config-video-config-watermark-position`],url:d(e[`recording-config-video-config-watermark-url`],`recording-config-video-config-watermark-url`,`text`)},width:e[`recording-config-video-config-width`]}},session_keep_alive_time_in_secs:e[`session-keep-alive-time-in-secs`],summarize_on_end:e[`summarize-on-end`],title:d(e.title,`title`,`text`),transcribe_on_end:e[`transcribe-on-end`]}),m=await s(`Creating`,async()=>c.send(j,{body:p,account_id:f,app_id:e[`app-id`]}));a(m,{successLabel:`Created`})})};var Ye={method:`GET`,path:t=>e`/accounts/${t.account_id}/realtime/kit/${t.app_id}/meetings/${t.meeting_id}`,query:[`name`],errors:{500:`InternalServerError`}};function Xe(e){return e.usage(`$0 realtime kit meetings get <meeting-id>
40
+ Create a meeting for the given App ID.`).positional(`app-id`,{type:`string`,description:`The app identifier tag.`,demandOption:!0}).option(`ai-config-summarization-summary-type`,{type:`string`,description:`Defines the style of the summary, such as general, team meeting, or sales call.`,choices:[`general`,`team_meeting`,`sales_call`,`client_check_in`,`interview`,`daily_standup`,`one_on_one_meeting`,`lecture`,`code_review`]}).coerce(`ai-config-summarization-summary-type`,e=>d(e,`ai-config-summarization-summary-type`,`text`)).option(`ai-config-summarization-text-format`,{type:`string`,description:`Determines the text format of the summary, such as plain text or markdown.`,choices:[`plain_text`,`markdown`]}).coerce(`ai-config-summarization-text-format`,e=>d(e,`ai-config-summarization-text-format`,`text`)).option(`ai-config-summarization-word-limit`,{type:`number`,description:`Sets the maximum number of words in the meeting summary.`}).option(`ai-config-transcription-keywords`,{type:`string`,array:!0,description:`Adds specific terms to improve accurate detection during transcription.`}).option(`ai-config-transcription-language`,{type:`string`,description:`Specifies the language code for transcription to ensure accurate results. If omitted, the language is auto-detected for post-meeting (Whisper) transcription.`,choices:[`en-US`,`en-IN`,`de`,`hi`,`sv`,`ru`,`pl`,`el`,`fr`,`nl`]}).coerce(`ai-config-transcription-language`,e=>d(e,`ai-config-transcription-language`,`text`)).option(`ai-config-transcription-profanity-filter`,{type:`boolean`,description:`Control the inclusion of offensive language in transcriptions.`}).option(`live-stream-on-start`,{type:`boolean`,description:`Specifies if the meeting should start getting livestreamed on start.`,default:!1}).option(`persist-chat`,{type:`boolean`,description:`If a meeting is set to persist_chat, meeting chat would remain for a week within the meeting space.`,default:!1}).option(`record-on-start`,{type:`boolean`,description:`Specifies if the meeting should start getting recorded as soon as someone joins the meeting.`,default:!1}).option(`recording-config-audio-config-channel`,{type:`string`,description:`Audio signal pathway within an audio file that carries a specific sound source.`,choices:[`mono`,`stereo`]}).coerce(`recording-config-audio-config-channel`,e=>d(e,`recording-config-audio-config-channel`,`text`)).option(`recording-config-audio-config-codec`,{type:`string`,description:`Codec using which the recording will be encoded. If VP8/VP9 is selected for videoConfig, changing audioConfig is not allowed. In this case, the codec in the audioConfig is automatically set to vorbis.`,choices:[`MP3`,`AAC`]}).coerce(`recording-config-audio-config-codec`,e=>d(e,`recording-config-audio-config-codec`,`text`)).option(`recording-config-audio-config-export-file`,{type:`boolean`,description:`Controls whether to export audio file seperately`}).option(`recording-config-file-name-prefix`,{type:`string`,description:`Adds a prefix to the beginning of the file name of the recording.`}).option(`recording-config-live-streaming-config-rtmp-url`,{type:`string`,description:`RTMP URL to stream to`}).option(`recording-config-max-seconds`,{type:`number`,description:`Specifies the maximum duration for recording in seconds, ranging from a minimum of 60 seconds to a maximum of 24 hours.`}).option(`recording-config-realtimekit-bucket-config-enabled`,{type:`boolean`,description:"Controls whether recordings are uploaded to RealtimeKit's bucket. If set to false, `download_url`, `audio_download_url`, `download_url_expiry` won't be generated for a recording."}).option(`recording-config-storage-config-type`,{type:`string`,description:`The recording_config.storage_config.type field`,choices:[`gcs`,`aws`,`azure`,`digitalocean`,`sftp`]}).coerce(`recording-config-storage-config-type`,e=>d(e,`recording-config-storage-config-type`,`text`)).option(`recording-config-video-config-codec`,{type:`string`,description:`Codec using which the recording will be encoded.`,choices:[`H264`,`VP8`,`VP9`]}).coerce(`recording-config-video-config-codec`,e=>d(e,`recording-config-video-config-codec`,`text`)).option(`recording-config-video-config-export-file`,{type:`boolean`,description:`Controls whether to export video file seperately`}).option(`recording-config-video-config-height`,{type:`number`,description:`Height of the recording video in pixels`}).option(`recording-config-video-config-watermark-position`,{type:`string`,description:`Position of the watermark`,choices:[`left top`,`right top`,`left bottom`,`right bottom`]}).coerce(`recording-config-video-config-watermark-position`,e=>d(e,`recording-config-video-config-watermark-position`,`text`)).option(`recording-config-video-config-watermark-url`,{type:`string`,description:`URL of the watermark image`}).option(`recording-config-video-config-width`,{type:`number`,description:`Width of the recording video in pixels`}).option(`session-keep-alive-time-in-secs`,{type:`number`,description:`Time in seconds, for which a session remains active, after the last participant has left the meeting.`,default:60}).option(`summarize-on-end`,{type:`boolean`,description:`Automatically generate summary of meetings using transcripts. Requires Transcriptions to be enabled, and can be retrieved via Webhooks or summary API.`,default:!1}).option(`title`,{type:`string`,description:`Title of the meeting`}).option(`transcribe-on-end`,{type:`boolean`,description:`Automatically generate transcripts when the meeting ends.`,default:!1}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Create meeting body`}).check(e=>{if([`recording-config-audio-config-channel`,`recording-config-audio-config-codec`,`recording-config-audio-config-export-file`,`recording-config-file-name-prefix`,`recording-config-live-streaming-config-rtmp-url`,`recording-config-max-seconds`,`recording-config-realtimekit-bucket-config-enabled`,`recording-config-storage-config-type`,`recording-config-video-config-codec`,`recording-config-video-config-export-file`,`recording-config-video-config-height`,`recording-config-video-config-watermark-position`,`recording-config-video-config-watermark-url`,`recording-config-video-config-width`].some(t=>e[t]!==void 0)){let t=[`recording-config-realtimekit-bucket-config-enabled`].filter(t=>e[t]===void 0);if(t.length>0)throw Error(`${t.map(e=>`--`+e).join(`, `)} ${t.length===1?`is`:`are`} required when any --recording_config-* flag is set`)}return!0})}const Je={command:`create <app-id>`,describe:`Create a meeting`,builder:qe,handler:async e=>c({command:`realtime kit meetings create`,classification:{safeFlags:[`ai-config-summarization-summary-type`,`ai-config-summarization-text-format`,`ai-config-transcription-language`,`ai-config-transcription-profanity-filter`,`live-stream-on-start`,`persist-chat`,`record-on-start`,`recording-config-audio-config-channel`,`recording-config-audio-config-codec`,`recording-config-audio-config-export-file`,`recording-config-realtimekit-bucket-config-enabled`,`recording-config-storage-config-type`,`recording-config-video-config-codec`,`recording-config-video-config-export-file`,`recording-config-video-config-watermark-position`,`summarize-on-end`,`transcribe-on-end`,`dry-run`]}},e,async()=>{if(e.dryRun){let t=await r();o({command:`cf realtime kit meetings 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`,pathParams:{"app-id":String(e[`app-id`]??``)},bodyKind:`json`,body:e.body===void 0?u({ai_config:{summarization:{summary_type:e[`ai-config-summarization-summary-type`],text_format:e[`ai-config-summarization-text-format`],word_limit:e[`ai-config-summarization-word-limit`]},transcription:{keywords:e[`ai-config-transcription-keywords`],language:e[`ai-config-transcription-language`],profanity_filter:e[`ai-config-transcription-profanity-filter`]}},live_stream_on_start:e[`live-stream-on-start`],persist_chat:e[`persist-chat`],record_on_start:e[`record-on-start`],recording_config:{audio_config:{channel:e[`recording-config-audio-config-channel`],codec:e[`recording-config-audio-config-codec`],export_file:e[`recording-config-audio-config-export-file`]},file_name_prefix:d(e[`recording-config-file-name-prefix`],`recording-config-file-name-prefix`,`text`),live_streaming_config:{rtmp_url:d(e[`recording-config-live-streaming-config-rtmp-url`],`recording-config-live-streaming-config-rtmp-url`,`text`)},max_seconds:e[`recording-config-max-seconds`],realtimekit_bucket_config:{enabled:e[`recording-config-realtimekit-bucket-config-enabled`]},storage_config:{type:e[`recording-config-storage-config-type`]},video_config:{codec:e[`recording-config-video-config-codec`],export_file:e[`recording-config-video-config-export-file`],height:e[`recording-config-video-config-height`],watermark:{position:e[`recording-config-video-config-watermark-position`],url:d(e[`recording-config-video-config-watermark-url`],`recording-config-video-config-watermark-url`,`text`)},width:e[`recording-config-video-config-width`]}},session_keep_alive_time_in_secs:e[`session-keep-alive-time-in-secs`],summarize_on_end:e[`summarize-on-end`],title:d(e.title,`title`,`text`),transcribe_on_end:e[`transcribe-on-end`]}):l(e.body)});return}let c=await n(e),f=e.local?t:await i();if(e.accountId=f,e.body){let t=l(e.body),n=await s(`Creating`,async()=>c.send(j,{body:t,account_id:f,app_id:e[`app-id`]}));a(n,{successLabel:`Created`});return}let p=u({ai_config:{summarization:{summary_type:e[`ai-config-summarization-summary-type`],text_format:e[`ai-config-summarization-text-format`],word_limit:e[`ai-config-summarization-word-limit`]},transcription:{keywords:e[`ai-config-transcription-keywords`],language:e[`ai-config-transcription-language`],profanity_filter:e[`ai-config-transcription-profanity-filter`]}},live_stream_on_start:e[`live-stream-on-start`],persist_chat:e[`persist-chat`],record_on_start:e[`record-on-start`],recording_config:{audio_config:{channel:e[`recording-config-audio-config-channel`],codec:e[`recording-config-audio-config-codec`],export_file:e[`recording-config-audio-config-export-file`]},file_name_prefix:d(e[`recording-config-file-name-prefix`],`recording-config-file-name-prefix`,`text`),live_streaming_config:{rtmp_url:d(e[`recording-config-live-streaming-config-rtmp-url`],`recording-config-live-streaming-config-rtmp-url`,`text`)},max_seconds:e[`recording-config-max-seconds`],realtimekit_bucket_config:{enabled:e[`recording-config-realtimekit-bucket-config-enabled`]},storage_config:{type:e[`recording-config-storage-config-type`]},video_config:{codec:e[`recording-config-video-config-codec`],export_file:e[`recording-config-video-config-export-file`],height:e[`recording-config-video-config-height`],watermark:{position:e[`recording-config-video-config-watermark-position`],url:d(e[`recording-config-video-config-watermark-url`],`recording-config-video-config-watermark-url`,`text`)},width:e[`recording-config-video-config-width`]}},session_keep_alive_time_in_secs:e[`session-keep-alive-time-in-secs`],summarize_on_end:e[`summarize-on-end`],title:d(e.title,`title`,`text`),transcribe_on_end:e[`transcribe-on-end`]}),m=await s(`Creating`,async()=>c.send(j,{body:p,account_id:f,app_id:e[`app-id`]}));a(m,{successLabel:`Created`})})};var Ye={method:`GET`,path:t=>e`/accounts/${t.account_id}/realtime/kit/${t.app_id}/meetings/${t.meeting_id}`,query:[`name`],errors:{500:`InternalServerError`}};function Xe(e){return e.usage(`$0 realtime kit meetings get <meeting-id>
41
41
 
42
42
  Returns a meeting details in an App for 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(`name`,{type:`string`,description:`Name`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const Ze={command:`get <meeting-id>`,describe:`Fetch a meeting for an App`,builder:Xe,handler:async e=>c({command:`realtime kit meetings get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{let c={name:e.name};if(e.dryRun){let t=await r();o({command:`cf realtime kit meetings 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`]))}`,pathParams:{"app-id":String(e[`app-id`]??``),"meeting-id":String(e[`meeting-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(Ye,{account_id:u,app_id:e[`app-id`],meeting_id:e[`meeting-id`],...c}));a(d,{successLabel:`Loaded`})})};var Qe={method:`GET`,path:t=>e`/accounts/${t.account_id}/realtime/kit/${t.app_id}/meetings`,query:[`page_no`,`per_page`,`start_time`,`end_time`,`search`,`status`]};function $e(e){return e.usage(`$0 realtime kit meetings list
43
43
 
@@ -62,9 +62,9 @@ Regenerates participant's authentication token for the given meeting and partici
62
62
 
63
63
  Updates a participant's 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(`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:`(Optional) Name of the preset to apply to this participant.`}).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 Et={command:`update <participant-id>`,describe:`Edit a participant's detail`,builder:Tt,handler:async e=>c({command:`realtime kit meetings participants update`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await r();o({command:`cf realtime kit meetings participants 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`]))}/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:`json`,body:e.body===void 0?u({name:d(e.name,`name`,`text`),picture:d(e.picture,`picture`,`text`),preset_name:d(e[`preset-name`],`preset-name`,`text`)}):l(e.body)});return}let c=await n(e),f=e.local?t:await i();if(e.accountId=f,e.body){let t=l(e.body),n=await s(`Updating`,async()=>c.send(P,{body:t,account_id:f,app_id:e[`app-id`],meeting_id:e[`meeting-id`],participant_id:e[`participant-id`]}));a(n,{successLabel:`Updated`});return}let p=u({name:d(e.name,`name`,`text`),picture:d(e.picture,`picture`,`text`),preset_name:d(e[`preset-name`],`preset-name`,`text`)}),m=await s(`Updating`,async()=>c.send(P,{body:p,account_id:f,app_id:e[`app-id`],meeting_id:e[`meeting-id`],participant_id:e[`participant-id`]}));a(m,{successLabel:`Updated`})})},Dt={command:`participants`,describe:`Participants in RealtimeKit meetings`,builder:e=>e.command(lt).command(ft).command(ht).command(vt).command(bt).command(Et).command(wt).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var F={method:`PUT`,path:t=>e`/accounts/${t.account_id}/realtime/kit/${t.app_id}/meetings/${t.meeting_id}`,body:`json`};function Ot(e){return e.usage(`$0 realtime kit meetings replace <meeting-id>
64
64
 
65
- Replaces all the details for 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(`ai-config-summarization-summary-type`,{type:`string`,description:`Defines the style of the summary, such as general, team meeting, or sales call.`,choices:[`general`,`team_meeting`,`sales_call`,`client_check_in`,`interview`,`daily_standup`,`one_on_one_meeting`,`lecture`,`code_review`]}).coerce(`ai-config-summarization-summary-type`,e=>d(e,`ai-config-summarization-summary-type`,`text`)).option(`ai-config-summarization-text-format`,{type:`string`,description:`Determines the text format of the summary, such as plain text or markdown.`,choices:[`plain_text`,`markdown`]}).coerce(`ai-config-summarization-text-format`,e=>d(e,`ai-config-summarization-text-format`,`text`)).option(`ai-config-summarization-word-limit`,{type:`number`,description:`Sets the maximum number of words in the meeting summary.`}).option(`ai-config-transcription-keywords`,{type:`string`,array:!0,description:`Adds specific terms to improve accurate detection during transcription.`}).option(`ai-config-transcription-language`,{type:`string`,description:`Specifies the language code for transcription to ensure accurate results. If omitted, the language is auto-detected for post-meeting (Whisper) transcription.`,choices:[`en-US`,`en-IN`,`de`,`hi`,`sv`,`ru`,`pl`,`el`,`fr`,`nl`]}).coerce(`ai-config-transcription-language`,e=>d(e,`ai-config-transcription-language`,`text`)).option(`ai-config-transcription-profanity-filter`,{type:`boolean`,description:`Control the inclusion of offensive language in transcriptions.`}).option(`live-stream-on-start`,{type:`boolean`,description:`Specifies if the meeting should start getting livestreamed on start.`}).option(`persist-chat`,{type:`boolean`,description:`If a meeting is set to persist_chat, meeting chat would remain for a week within the meeting space.`}).option(`record-on-start`,{type:`boolean`,description:`Specifies if the meeting should start getting recorded as soon as someone joins the meeting.`}).option(`recording-config-audio-config-channel`,{type:`string`,description:`Audio signal pathway within an audio file that carries a specific sound source.`,choices:[`mono`,`stereo`]}).coerce(`recording-config-audio-config-channel`,e=>d(e,`recording-config-audio-config-channel`,`text`)).option(`recording-config-audio-config-codec`,{type:`string`,description:`Codec using which the recording will be encoded. If VP8/VP9 is selected for videoConfig, changing audioConfig is not allowed. In this case, the codec in the audioConfig is automatically set to vorbis.`,choices:[`MP3`,`AAC`]}).coerce(`recording-config-audio-config-codec`,e=>d(e,`recording-config-audio-config-codec`,`text`)).option(`recording-config-audio-config-export-file`,{type:`boolean`,description:`Controls whether to export audio file seperately`}).option(`recording-config-file-name-prefix`,{type:`string`,description:`Adds a prefix to the beginning of the file name of the recording.`}).option(`recording-config-live-streaming-config-rtmp-url`,{type:`string`,description:`RTMP URL to stream to`}).option(`recording-config-max-seconds`,{type:`number`,description:`Specifies the maximum duration for recording in seconds, ranging from a minimum of 60 seconds to a maximum of 24 hours.`}).option(`recording-config-realtimekit-bucket-config-enabled`,{type:`boolean`,description:"Controls whether recordings are uploaded to RealtimeKit's bucket. If set to false, `download_url`, `audio_download_url`, `download_url_expiry` won't be generated for a recording."}).option(`recording-config-video-config-codec`,{type:`string`,description:`Codec using which the recording will be encoded.`,choices:[`H264`,`VP8`,`VP9`]}).coerce(`recording-config-video-config-codec`,e=>d(e,`recording-config-video-config-codec`,`text`)).option(`recording-config-video-config-export-file`,{type:`boolean`,description:`Controls whether to export video file seperately`}).option(`recording-config-video-config-height`,{type:`number`,description:`Height of the recording video in pixels`}).option(`recording-config-video-config-watermark-position`,{type:`string`,description:`Position of the watermark`,choices:[`left top`,`right top`,`left bottom`,`right bottom`]}).coerce(`recording-config-video-config-watermark-position`,e=>d(e,`recording-config-video-config-watermark-position`,`text`)).option(`recording-config-video-config-watermark-url`,{type:`string`,description:`URL of the watermark image`}).option(`recording-config-video-config-width`,{type:`number`,description:`Width of the recording video in pixels`}).option(`session-keep-alive-time-in-secs`,{type:`number`,description:`Time in seconds, for which a session remains active, after the last participant has left the meeting.`}).option(`summarize-on-end`,{type:`boolean`,description:`Automatically generate summary of meetings using transcripts. Requires Transcriptions to be enabled, and can be retrieved via Webhooks or summary API.`}).option(`title`,{type:`string`,description:`Title of the meeting`}).option(`transcribe-on-end`,{type:`boolean`,description:`Automatically generate transcripts when the meeting ends.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Create meeting body`}).check(e=>{if([`recording-config-audio-config-channel`,`recording-config-audio-config-codec`,`recording-config-audio-config-export-file`,`recording-config-file-name-prefix`,`recording-config-live-streaming-config-rtmp-url`,`recording-config-max-seconds`,`recording-config-realtimekit-bucket-config-enabled`,`recording-config-video-config-codec`,`recording-config-video-config-export-file`,`recording-config-video-config-height`,`recording-config-video-config-watermark-position`,`recording-config-video-config-watermark-url`,`recording-config-video-config-width`].some(t=>e[t]!==void 0)){let t=[`recording-config-realtimekit-bucket-config-enabled`].filter(t=>e[t]===void 0);if(t.length>0)throw Error(`${t.map(e=>`--`+e).join(`, `)} ${t.length===1?`is`:`are`} required when any --recording_config-* flag is set`)}return!0})}const kt={command:`replace <meeting-id>`,describe:`Replace a meeting`,builder:Ot,handler:async e=>c({command:`realtime kit meetings replace`,classification:{safeFlags:[`ai-config-summarization-summary-type`,`ai-config-summarization-text-format`,`ai-config-transcription-language`,`ai-config-transcription-profanity-filter`,`live-stream-on-start`,`persist-chat`,`record-on-start`,`recording-config-audio-config-channel`,`recording-config-audio-config-codec`,`recording-config-audio-config-export-file`,`recording-config-realtimekit-bucket-config-enabled`,`recording-config-video-config-codec`,`recording-config-video-config-export-file`,`recording-config-video-config-watermark-position`,`summarize-on-end`,`transcribe-on-end`,`dry-run`]}},e,async()=>{if(e.dryRun){let t=await r();o({command:`cf realtime kit meetings replace`,method:`PUT`,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`]))}`,pathParams:{"app-id":String(e[`app-id`]??``),"meeting-id":String(e[`meeting-id`]??``)},bodyKind:`json`,body:e.body===void 0?u({ai_config:{summarization:{summary_type:e[`ai-config-summarization-summary-type`],text_format:e[`ai-config-summarization-text-format`],word_limit:e[`ai-config-summarization-word-limit`]},transcription:{keywords:e[`ai-config-transcription-keywords`],language:e[`ai-config-transcription-language`],profanity_filter:e[`ai-config-transcription-profanity-filter`]}},live_stream_on_start:e[`live-stream-on-start`],persist_chat:e[`persist-chat`],record_on_start:e[`record-on-start`],recording_config:{audio_config:{channel:e[`recording-config-audio-config-channel`],codec:e[`recording-config-audio-config-codec`],export_file:e[`recording-config-audio-config-export-file`]},file_name_prefix:d(e[`recording-config-file-name-prefix`],`recording-config-file-name-prefix`,`text`),live_streaming_config:{rtmp_url:d(e[`recording-config-live-streaming-config-rtmp-url`],`recording-config-live-streaming-config-rtmp-url`,`text`)},max_seconds:e[`recording-config-max-seconds`],realtimekit_bucket_config:{enabled:e[`recording-config-realtimekit-bucket-config-enabled`]},video_config:{codec:e[`recording-config-video-config-codec`],export_file:e[`recording-config-video-config-export-file`],height:e[`recording-config-video-config-height`],watermark:{position:e[`recording-config-video-config-watermark-position`],url:d(e[`recording-config-video-config-watermark-url`],`recording-config-video-config-watermark-url`,`text`)},width:e[`recording-config-video-config-width`]}},session_keep_alive_time_in_secs:e[`session-keep-alive-time-in-secs`],summarize_on_end:e[`summarize-on-end`],title:d(e.title,`title`,`text`),transcribe_on_end:e[`transcribe-on-end`]}):l(e.body)});return}let c=await n(e),f=e.local?t:await i();if(e.accountId=f,e.body){let t=l(e.body),n=await s(`Updating`,async()=>c.send(F,{body:t,account_id:f,app_id:e[`app-id`],meeting_id:e[`meeting-id`]}));a(n,{successLabel:`Updated`});return}let p=u({ai_config:{summarization:{summary_type:e[`ai-config-summarization-summary-type`],text_format:e[`ai-config-summarization-text-format`],word_limit:e[`ai-config-summarization-word-limit`]},transcription:{keywords:e[`ai-config-transcription-keywords`],language:e[`ai-config-transcription-language`],profanity_filter:e[`ai-config-transcription-profanity-filter`]}},live_stream_on_start:e[`live-stream-on-start`],persist_chat:e[`persist-chat`],record_on_start:e[`record-on-start`],recording_config:{audio_config:{channel:e[`recording-config-audio-config-channel`],codec:e[`recording-config-audio-config-codec`],export_file:e[`recording-config-audio-config-export-file`]},file_name_prefix:d(e[`recording-config-file-name-prefix`],`recording-config-file-name-prefix`,`text`),live_streaming_config:{rtmp_url:d(e[`recording-config-live-streaming-config-rtmp-url`],`recording-config-live-streaming-config-rtmp-url`,`text`)},max_seconds:e[`recording-config-max-seconds`],realtimekit_bucket_config:{enabled:e[`recording-config-realtimekit-bucket-config-enabled`]},video_config:{codec:e[`recording-config-video-config-codec`],export_file:e[`recording-config-video-config-export-file`],height:e[`recording-config-video-config-height`],watermark:{position:e[`recording-config-video-config-watermark-position`],url:d(e[`recording-config-video-config-watermark-url`],`recording-config-video-config-watermark-url`,`text`)},width:e[`recording-config-video-config-width`]}},session_keep_alive_time_in_secs:e[`session-keep-alive-time-in-secs`],summarize_on_end:e[`summarize-on-end`],title:d(e.title,`title`,`text`),transcribe_on_end:e[`transcribe-on-end`]}),m=await s(`Updating`,async()=>c.send(F,{body:p,account_id:f,app_id:e[`app-id`],meeting_id:e[`meeting-id`]}));a(m,{successLabel:`Updated`})})};var I={method:`PATCH`,path:t=>e`/accounts/${t.account_id}/realtime/kit/${t.app_id}/meetings/${t.meeting_id}`,body:`json`,errors:{500:`InternalServerError`}};function At(e){return e.usage(`$0 realtime kit meetings update <meeting-id>
65
+ Replaces all the details for 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(`ai-config-summarization-summary-type`,{type:`string`,description:`Defines the style of the summary, such as general, team meeting, or sales call.`,choices:[`general`,`team_meeting`,`sales_call`,`client_check_in`,`interview`,`daily_standup`,`one_on_one_meeting`,`lecture`,`code_review`]}).coerce(`ai-config-summarization-summary-type`,e=>d(e,`ai-config-summarization-summary-type`,`text`)).option(`ai-config-summarization-text-format`,{type:`string`,description:`Determines the text format of the summary, such as plain text or markdown.`,choices:[`plain_text`,`markdown`]}).coerce(`ai-config-summarization-text-format`,e=>d(e,`ai-config-summarization-text-format`,`text`)).option(`ai-config-summarization-word-limit`,{type:`number`,description:`Sets the maximum number of words in the meeting summary.`}).option(`ai-config-transcription-keywords`,{type:`string`,array:!0,description:`Adds specific terms to improve accurate detection during transcription.`}).option(`ai-config-transcription-language`,{type:`string`,description:`Specifies the language code for transcription to ensure accurate results. If omitted, the language is auto-detected for post-meeting (Whisper) transcription.`,choices:[`en-US`,`en-IN`,`de`,`hi`,`sv`,`ru`,`pl`,`el`,`fr`,`nl`]}).coerce(`ai-config-transcription-language`,e=>d(e,`ai-config-transcription-language`,`text`)).option(`ai-config-transcription-profanity-filter`,{type:`boolean`,description:`Control the inclusion of offensive language in transcriptions.`}).option(`live-stream-on-start`,{type:`boolean`,description:`Specifies if the meeting should start getting livestreamed on start.`}).option(`persist-chat`,{type:`boolean`,description:`If a meeting is set to persist_chat, meeting chat would remain for a week within the meeting space.`}).option(`record-on-start`,{type:`boolean`,description:`Specifies if the meeting should start getting recorded as soon as someone joins the meeting.`}).option(`recording-config-audio-config-channel`,{type:`string`,description:`Audio signal pathway within an audio file that carries a specific sound source.`,choices:[`mono`,`stereo`]}).coerce(`recording-config-audio-config-channel`,e=>d(e,`recording-config-audio-config-channel`,`text`)).option(`recording-config-audio-config-codec`,{type:`string`,description:`Codec using which the recording will be encoded. If VP8/VP9 is selected for videoConfig, changing audioConfig is not allowed. In this case, the codec in the audioConfig is automatically set to vorbis.`,choices:[`MP3`,`AAC`]}).coerce(`recording-config-audio-config-codec`,e=>d(e,`recording-config-audio-config-codec`,`text`)).option(`recording-config-audio-config-export-file`,{type:`boolean`,description:`Controls whether to export audio file seperately`}).option(`recording-config-file-name-prefix`,{type:`string`,description:`Adds a prefix to the beginning of the file name of the recording.`}).option(`recording-config-live-streaming-config-rtmp-url`,{type:`string`,description:`RTMP URL to stream to`}).option(`recording-config-max-seconds`,{type:`number`,description:`Specifies the maximum duration for recording in seconds, ranging from a minimum of 60 seconds to a maximum of 24 hours.`}).option(`recording-config-realtimekit-bucket-config-enabled`,{type:`boolean`,description:"Controls whether recordings are uploaded to RealtimeKit's bucket. If set to false, `download_url`, `audio_download_url`, `download_url_expiry` won't be generated for a recording."}).option(`recording-config-storage-config-type`,{type:`string`,description:`The recording_config.storage_config.type field`,choices:[`gcs`,`aws`,`azure`,`digitalocean`,`sftp`]}).coerce(`recording-config-storage-config-type`,e=>d(e,`recording-config-storage-config-type`,`text`)).option(`recording-config-video-config-codec`,{type:`string`,description:`Codec using which the recording will be encoded.`,choices:[`H264`,`VP8`,`VP9`]}).coerce(`recording-config-video-config-codec`,e=>d(e,`recording-config-video-config-codec`,`text`)).option(`recording-config-video-config-export-file`,{type:`boolean`,description:`Controls whether to export video file seperately`}).option(`recording-config-video-config-height`,{type:`number`,description:`Height of the recording video in pixels`}).option(`recording-config-video-config-watermark-position`,{type:`string`,description:`Position of the watermark`,choices:[`left top`,`right top`,`left bottom`,`right bottom`]}).coerce(`recording-config-video-config-watermark-position`,e=>d(e,`recording-config-video-config-watermark-position`,`text`)).option(`recording-config-video-config-watermark-url`,{type:`string`,description:`URL of the watermark image`}).option(`recording-config-video-config-width`,{type:`number`,description:`Width of the recording video in pixels`}).option(`session-keep-alive-time-in-secs`,{type:`number`,description:`Time in seconds, for which a session remains active, after the last participant has left the meeting.`}).option(`summarize-on-end`,{type:`boolean`,description:`Automatically generate summary of meetings using transcripts. Requires Transcriptions to be enabled, and can be retrieved via Webhooks or summary API.`}).option(`title`,{type:`string`,description:`Title of the meeting`}).option(`transcribe-on-end`,{type:`boolean`,description:`Automatically generate transcripts when the meeting ends.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Create meeting body`}).check(e=>{if([`recording-config-audio-config-channel`,`recording-config-audio-config-codec`,`recording-config-audio-config-export-file`,`recording-config-file-name-prefix`,`recording-config-live-streaming-config-rtmp-url`,`recording-config-max-seconds`,`recording-config-realtimekit-bucket-config-enabled`,`recording-config-storage-config-type`,`recording-config-video-config-codec`,`recording-config-video-config-export-file`,`recording-config-video-config-height`,`recording-config-video-config-watermark-position`,`recording-config-video-config-watermark-url`,`recording-config-video-config-width`].some(t=>e[t]!==void 0)){let t=[`recording-config-realtimekit-bucket-config-enabled`].filter(t=>e[t]===void 0);if(t.length>0)throw Error(`${t.map(e=>`--`+e).join(`, `)} ${t.length===1?`is`:`are`} required when any --recording_config-* flag is set`)}return!0})}const kt={command:`replace <meeting-id>`,describe:`Replace a meeting`,builder:Ot,handler:async e=>c({command:`realtime kit meetings replace`,classification:{safeFlags:[`ai-config-summarization-summary-type`,`ai-config-summarization-text-format`,`ai-config-transcription-language`,`ai-config-transcription-profanity-filter`,`live-stream-on-start`,`persist-chat`,`record-on-start`,`recording-config-audio-config-channel`,`recording-config-audio-config-codec`,`recording-config-audio-config-export-file`,`recording-config-realtimekit-bucket-config-enabled`,`recording-config-storage-config-type`,`recording-config-video-config-codec`,`recording-config-video-config-export-file`,`recording-config-video-config-watermark-position`,`summarize-on-end`,`transcribe-on-end`,`dry-run`]}},e,async()=>{if(e.dryRun){let t=await r();o({command:`cf realtime kit meetings replace`,method:`PUT`,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`]))}`,pathParams:{"app-id":String(e[`app-id`]??``),"meeting-id":String(e[`meeting-id`]??``)},bodyKind:`json`,body:e.body===void 0?u({ai_config:{summarization:{summary_type:e[`ai-config-summarization-summary-type`],text_format:e[`ai-config-summarization-text-format`],word_limit:e[`ai-config-summarization-word-limit`]},transcription:{keywords:e[`ai-config-transcription-keywords`],language:e[`ai-config-transcription-language`],profanity_filter:e[`ai-config-transcription-profanity-filter`]}},live_stream_on_start:e[`live-stream-on-start`],persist_chat:e[`persist-chat`],record_on_start:e[`record-on-start`],recording_config:{audio_config:{channel:e[`recording-config-audio-config-channel`],codec:e[`recording-config-audio-config-codec`],export_file:e[`recording-config-audio-config-export-file`]},file_name_prefix:d(e[`recording-config-file-name-prefix`],`recording-config-file-name-prefix`,`text`),live_streaming_config:{rtmp_url:d(e[`recording-config-live-streaming-config-rtmp-url`],`recording-config-live-streaming-config-rtmp-url`,`text`)},max_seconds:e[`recording-config-max-seconds`],realtimekit_bucket_config:{enabled:e[`recording-config-realtimekit-bucket-config-enabled`]},storage_config:{type:e[`recording-config-storage-config-type`]},video_config:{codec:e[`recording-config-video-config-codec`],export_file:e[`recording-config-video-config-export-file`],height:e[`recording-config-video-config-height`],watermark:{position:e[`recording-config-video-config-watermark-position`],url:d(e[`recording-config-video-config-watermark-url`],`recording-config-video-config-watermark-url`,`text`)},width:e[`recording-config-video-config-width`]}},session_keep_alive_time_in_secs:e[`session-keep-alive-time-in-secs`],summarize_on_end:e[`summarize-on-end`],title:d(e.title,`title`,`text`),transcribe_on_end:e[`transcribe-on-end`]}):l(e.body)});return}let c=await n(e),f=e.local?t:await i();if(e.accountId=f,e.body){let t=l(e.body),n=await s(`Updating`,async()=>c.send(F,{body:t,account_id:f,app_id:e[`app-id`],meeting_id:e[`meeting-id`]}));a(n,{successLabel:`Updated`});return}let p=u({ai_config:{summarization:{summary_type:e[`ai-config-summarization-summary-type`],text_format:e[`ai-config-summarization-text-format`],word_limit:e[`ai-config-summarization-word-limit`]},transcription:{keywords:e[`ai-config-transcription-keywords`],language:e[`ai-config-transcription-language`],profanity_filter:e[`ai-config-transcription-profanity-filter`]}},live_stream_on_start:e[`live-stream-on-start`],persist_chat:e[`persist-chat`],record_on_start:e[`record-on-start`],recording_config:{audio_config:{channel:e[`recording-config-audio-config-channel`],codec:e[`recording-config-audio-config-codec`],export_file:e[`recording-config-audio-config-export-file`]},file_name_prefix:d(e[`recording-config-file-name-prefix`],`recording-config-file-name-prefix`,`text`),live_streaming_config:{rtmp_url:d(e[`recording-config-live-streaming-config-rtmp-url`],`recording-config-live-streaming-config-rtmp-url`,`text`)},max_seconds:e[`recording-config-max-seconds`],realtimekit_bucket_config:{enabled:e[`recording-config-realtimekit-bucket-config-enabled`]},storage_config:{type:e[`recording-config-storage-config-type`]},video_config:{codec:e[`recording-config-video-config-codec`],export_file:e[`recording-config-video-config-export-file`],height:e[`recording-config-video-config-height`],watermark:{position:e[`recording-config-video-config-watermark-position`],url:d(e[`recording-config-video-config-watermark-url`],`recording-config-video-config-watermark-url`,`text`)},width:e[`recording-config-video-config-width`]}},session_keep_alive_time_in_secs:e[`session-keep-alive-time-in-secs`],summarize_on_end:e[`summarize-on-end`],title:d(e.title,`title`,`text`),transcribe_on_end:e[`transcribe-on-end`]}),m=await s(`Updating`,async()=>c.send(F,{body:p,account_id:f,app_id:e[`app-id`],meeting_id:e[`meeting-id`]}));a(m,{successLabel:`Updated`})})};var I={method:`PATCH`,path:t=>e`/accounts/${t.account_id}/realtime/kit/${t.app_id}/meetings/${t.meeting_id}`,body:`json`,errors:{500:`InternalServerError`}};function At(e){return e.usage(`$0 realtime kit meetings update <meeting-id>
66
66
 
67
- Updates a meeting in an App for 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(`ai-config-summarization-summary-type`,{type:`string`,description:`Defines the style of the summary, such as general, team meeting, or sales call.`,choices:[`general`,`team_meeting`,`sales_call`,`client_check_in`,`interview`,`daily_standup`,`one_on_one_meeting`,`lecture`,`code_review`]}).coerce(`ai-config-summarization-summary-type`,e=>d(e,`ai-config-summarization-summary-type`,`text`)).option(`ai-config-summarization-text-format`,{type:`string`,description:`Determines the text format of the summary, such as plain text or markdown.`,choices:[`plain_text`,`markdown`]}).coerce(`ai-config-summarization-text-format`,e=>d(e,`ai-config-summarization-text-format`,`text`)).option(`ai-config-summarization-word-limit`,{type:`number`,description:`Sets the maximum number of words in the meeting summary.`}).option(`ai-config-transcription-keywords`,{type:`string`,array:!0,description:`Adds specific terms to improve accurate detection during transcription.`}).option(`ai-config-transcription-language`,{type:`string`,description:`Specifies the language code for transcription to ensure accurate results. If omitted, the language is auto-detected for post-meeting (Whisper) transcription.`,choices:[`en-US`,`en-IN`,`de`,`hi`,`sv`,`ru`,`pl`,`el`,`fr`,`nl`]}).coerce(`ai-config-transcription-language`,e=>d(e,`ai-config-transcription-language`,`text`)).option(`ai-config-transcription-profanity-filter`,{type:`boolean`,description:`Control the inclusion of offensive language in transcriptions.`}).option(`live-stream-on-start`,{type:`boolean`,description:`Specifies if the meeting should start getting livestreamed on start.`}).option(`persist-chat`,{type:`boolean`,description:`If a meeting is updated to persist_chat, meeting chat would remain for a week within the meeting space.`}).option(`record-on-start`,{type:`boolean`,description:`Specifies if the meeting should start getting recorded as soon as someone joins the meeting.`}).option(`recording-config-audio-config-channel`,{type:`string`,description:`Audio signal pathway within an audio file that carries a specific sound source.`,choices:[`mono`,`stereo`]}).coerce(`recording-config-audio-config-channel`,e=>d(e,`recording-config-audio-config-channel`,`text`)).option(`recording-config-audio-config-codec`,{type:`string`,description:`Codec using which the recording will be encoded. If VP8/VP9 is selected for videoConfig, changing audioConfig is not allowed. In this case, the codec in the audioConfig is automatically set to vorbis.`,choices:[`MP3`,`AAC`]}).coerce(`recording-config-audio-config-codec`,e=>d(e,`recording-config-audio-config-codec`,`text`)).option(`recording-config-audio-config-export-file`,{type:`boolean`,description:`Controls whether to export audio file seperately`}).option(`recording-config-file-name-prefix`,{type:`string`,description:`Adds a prefix to the beginning of the file name of the recording.`}).option(`recording-config-live-streaming-config-rtmp-url`,{type:`string`,description:`RTMP URL to stream to`}).option(`recording-config-max-seconds`,{type:`number`,description:`Specifies the maximum duration for recording in seconds, ranging from a minimum of 60 seconds to a maximum of 24 hours.`}).option(`recording-config-realtimekit-bucket-config-enabled`,{type:`boolean`,description:"Controls whether recordings are uploaded to RealtimeKit's bucket. If set to false, `download_url`, `audio_download_url`, `download_url_expiry` won't be generated for a recording."}).option(`recording-config-video-config-codec`,{type:`string`,description:`Codec using which the recording will be encoded.`,choices:[`H264`,`VP8`,`VP9`]}).coerce(`recording-config-video-config-codec`,e=>d(e,`recording-config-video-config-codec`,`text`)).option(`recording-config-video-config-export-file`,{type:`boolean`,description:`Controls whether to export video file seperately`}).option(`recording-config-video-config-height`,{type:`number`,description:`Height of the recording video in pixels`}).option(`recording-config-video-config-watermark-position`,{type:`string`,description:`Position of the watermark`,choices:[`left top`,`right top`,`left bottom`,`right bottom`]}).coerce(`recording-config-video-config-watermark-position`,e=>d(e,`recording-config-video-config-watermark-position`,`text`)).option(`recording-config-video-config-watermark-url`,{type:`string`,description:`URL of the watermark image`}).option(`recording-config-video-config-width`,{type:`number`,description:`Width of the recording video in pixels`}).option(`session-keep-alive-time-in-secs`,{type:`number`,description:`Time in seconds, for which a session remains active, after the last participant has left the meeting.`}).option(`status`,{type:`string`,description:"Whether the meeting is `ACTIVE` or `INACTIVE`. Users will not be able to join an `INACTIVE` meeting.",choices:[`ACTIVE`,`INACTIVE`]}).coerce(`status`,e=>d(e,`status`,`text`)).option(`summarize-on-end`,{type:`boolean`,description:`Automatically generate summary of meetings using transcripts. Requires Transcriptions to be enabled, and can be retrieved via Webhooks or summary API.`}).option(`title`,{type:`string`,description:`Title of the meeting`}).option(`transcribe-on-end`,{type:`boolean`,description:`Automatically generate transcripts when the meeting ends.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Update meeting body`}).check(e=>{if([`recording-config-audio-config-channel`,`recording-config-audio-config-codec`,`recording-config-audio-config-export-file`,`recording-config-file-name-prefix`,`recording-config-live-streaming-config-rtmp-url`,`recording-config-max-seconds`,`recording-config-realtimekit-bucket-config-enabled`,`recording-config-video-config-codec`,`recording-config-video-config-export-file`,`recording-config-video-config-height`,`recording-config-video-config-watermark-position`,`recording-config-video-config-watermark-url`,`recording-config-video-config-width`].some(t=>e[t]!==void 0)){let t=[`recording-config-realtimekit-bucket-config-enabled`].filter(t=>e[t]===void 0);if(t.length>0)throw Error(`${t.map(e=>`--`+e).join(`, `)} ${t.length===1?`is`:`are`} required when any --recording_config-* flag is set`)}return!0})}const jt={command:`update <meeting-id>`,describe:`Update a meeting`,builder:At,handler:async e=>c({command:`realtime kit meetings update`,classification:{safeFlags:[`ai-config-summarization-summary-type`,`ai-config-summarization-text-format`,`ai-config-transcription-language`,`ai-config-transcription-profanity-filter`,`live-stream-on-start`,`persist-chat`,`record-on-start`,`recording-config-audio-config-channel`,`recording-config-audio-config-codec`,`recording-config-audio-config-export-file`,`recording-config-realtimekit-bucket-config-enabled`,`recording-config-video-config-codec`,`recording-config-video-config-export-file`,`recording-config-video-config-watermark-position`,`status`,`summarize-on-end`,`transcribe-on-end`,`dry-run`]}},e,async()=>{if(e.dryRun){let t=await r();o({command:`cf realtime kit meetings 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`]))}/meetings/${e[`meeting-id`]==null?`<meeting-id>`:encodeURIComponent(String(e[`meeting-id`]))}`,pathParams:{"app-id":String(e[`app-id`]??``),"meeting-id":String(e[`meeting-id`]??``)},bodyKind:`json`,body:e.body===void 0?u({ai_config:{summarization:{summary_type:e[`ai-config-summarization-summary-type`],text_format:e[`ai-config-summarization-text-format`],word_limit:e[`ai-config-summarization-word-limit`]},transcription:{keywords:e[`ai-config-transcription-keywords`],language:e[`ai-config-transcription-language`],profanity_filter:e[`ai-config-transcription-profanity-filter`]}},live_stream_on_start:e[`live-stream-on-start`],persist_chat:e[`persist-chat`],record_on_start:e[`record-on-start`],recording_config:{audio_config:{channel:e[`recording-config-audio-config-channel`],codec:e[`recording-config-audio-config-codec`],export_file:e[`recording-config-audio-config-export-file`]},file_name_prefix:d(e[`recording-config-file-name-prefix`],`recording-config-file-name-prefix`,`text`),live_streaming_config:{rtmp_url:d(e[`recording-config-live-streaming-config-rtmp-url`],`recording-config-live-streaming-config-rtmp-url`,`text`)},max_seconds:e[`recording-config-max-seconds`],realtimekit_bucket_config:{enabled:e[`recording-config-realtimekit-bucket-config-enabled`]},video_config:{codec:e[`recording-config-video-config-codec`],export_file:e[`recording-config-video-config-export-file`],height:e[`recording-config-video-config-height`],watermark:{position:e[`recording-config-video-config-watermark-position`],url:d(e[`recording-config-video-config-watermark-url`],`recording-config-video-config-watermark-url`,`text`)},width:e[`recording-config-video-config-width`]}},session_keep_alive_time_in_secs:e[`session-keep-alive-time-in-secs`],status:e.status,summarize_on_end:e[`summarize-on-end`],title:d(e.title,`title`,`text`),transcribe_on_end:e[`transcribe-on-end`]}):l(e.body)});return}let c=await n(e),f=e.local?t:await i();if(e.accountId=f,e.body){let t=l(e.body),n=await s(`Updating`,async()=>c.send(I,{body:t,account_id:f,app_id:e[`app-id`],meeting_id:e[`meeting-id`]}));a(n,{successLabel:`Updated`});return}let p=u({ai_config:{summarization:{summary_type:e[`ai-config-summarization-summary-type`],text_format:e[`ai-config-summarization-text-format`],word_limit:e[`ai-config-summarization-word-limit`]},transcription:{keywords:e[`ai-config-transcription-keywords`],language:e[`ai-config-transcription-language`],profanity_filter:e[`ai-config-transcription-profanity-filter`]}},live_stream_on_start:e[`live-stream-on-start`],persist_chat:e[`persist-chat`],record_on_start:e[`record-on-start`],recording_config:{audio_config:{channel:e[`recording-config-audio-config-channel`],codec:e[`recording-config-audio-config-codec`],export_file:e[`recording-config-audio-config-export-file`]},file_name_prefix:d(e[`recording-config-file-name-prefix`],`recording-config-file-name-prefix`,`text`),live_streaming_config:{rtmp_url:d(e[`recording-config-live-streaming-config-rtmp-url`],`recording-config-live-streaming-config-rtmp-url`,`text`)},max_seconds:e[`recording-config-max-seconds`],realtimekit_bucket_config:{enabled:e[`recording-config-realtimekit-bucket-config-enabled`]},video_config:{codec:e[`recording-config-video-config-codec`],export_file:e[`recording-config-video-config-export-file`],height:e[`recording-config-video-config-height`],watermark:{position:e[`recording-config-video-config-watermark-position`],url:d(e[`recording-config-video-config-watermark-url`],`recording-config-video-config-watermark-url`,`text`)},width:e[`recording-config-video-config-width`]}},session_keep_alive_time_in_secs:e[`session-keep-alive-time-in-secs`],status:e.status,summarize_on_end:e[`summarize-on-end`],title:d(e.title,`title`,`text`),transcribe_on_end:e[`transcribe-on-end`]}),m=await s(`Updating`,async()=>c.send(I,{body:p,account_id:f,app_id:e[`app-id`],meeting_id:e[`meeting-id`]}));a(m,{successLabel:`Updated`})})},Mt={command:`meetings`,describe:`Meetings, participants, access tokens, and meeting livestreams`,builder:e=>e.command(Je).command(Ze).command(et).command(kt).command(jt).command(Ke).command(st).command(Dt).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var L={method:`POST`,path:t=>e`/accounts/${t.account_id}/realtime/kit/${t.app_id}/presets`,body:`json`};function Nt(e){return e.usage(`$0 realtime kit presets create <app-id>
67
+ Updates a meeting in an App for 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(`ai-config-summarization-summary-type`,{type:`string`,description:`Defines the style of the summary, such as general, team meeting, or sales call.`,choices:[`general`,`team_meeting`,`sales_call`,`client_check_in`,`interview`,`daily_standup`,`one_on_one_meeting`,`lecture`,`code_review`]}).coerce(`ai-config-summarization-summary-type`,e=>d(e,`ai-config-summarization-summary-type`,`text`)).option(`ai-config-summarization-text-format`,{type:`string`,description:`Determines the text format of the summary, such as plain text or markdown.`,choices:[`plain_text`,`markdown`]}).coerce(`ai-config-summarization-text-format`,e=>d(e,`ai-config-summarization-text-format`,`text`)).option(`ai-config-summarization-word-limit`,{type:`number`,description:`Sets the maximum number of words in the meeting summary.`}).option(`ai-config-transcription-keywords`,{type:`string`,array:!0,description:`Adds specific terms to improve accurate detection during transcription.`}).option(`ai-config-transcription-language`,{type:`string`,description:`Specifies the language code for transcription to ensure accurate results. If omitted, the language is auto-detected for post-meeting (Whisper) transcription.`,choices:[`en-US`,`en-IN`,`de`,`hi`,`sv`,`ru`,`pl`,`el`,`fr`,`nl`]}).coerce(`ai-config-transcription-language`,e=>d(e,`ai-config-transcription-language`,`text`)).option(`ai-config-transcription-profanity-filter`,{type:`boolean`,description:`Control the inclusion of offensive language in transcriptions.`}).option(`live-stream-on-start`,{type:`boolean`,description:`Specifies if the meeting should start getting livestreamed on start.`}).option(`persist-chat`,{type:`boolean`,description:`If a meeting is updated to persist_chat, meeting chat would remain for a week within the meeting space.`}).option(`record-on-start`,{type:`boolean`,description:`Specifies if the meeting should start getting recorded as soon as someone joins the meeting.`}).option(`recording-config-audio-config-channel`,{type:`string`,description:`Audio signal pathway within an audio file that carries a specific sound source.`,choices:[`mono`,`stereo`]}).coerce(`recording-config-audio-config-channel`,e=>d(e,`recording-config-audio-config-channel`,`text`)).option(`recording-config-audio-config-codec`,{type:`string`,description:`Codec using which the recording will be encoded. If VP8/VP9 is selected for videoConfig, changing audioConfig is not allowed. In this case, the codec in the audioConfig is automatically set to vorbis.`,choices:[`MP3`,`AAC`]}).coerce(`recording-config-audio-config-codec`,e=>d(e,`recording-config-audio-config-codec`,`text`)).option(`recording-config-audio-config-export-file`,{type:`boolean`,description:`Controls whether to export audio file seperately`}).option(`recording-config-file-name-prefix`,{type:`string`,description:`Adds a prefix to the beginning of the file name of the recording.`}).option(`recording-config-live-streaming-config-rtmp-url`,{type:`string`,description:`RTMP URL to stream to`}).option(`recording-config-max-seconds`,{type:`number`,description:`Specifies the maximum duration for recording in seconds, ranging from a minimum of 60 seconds to a maximum of 24 hours.`}).option(`recording-config-realtimekit-bucket-config-enabled`,{type:`boolean`,description:"Controls whether recordings are uploaded to RealtimeKit's bucket. If set to false, `download_url`, `audio_download_url`, `download_url_expiry` won't be generated for a recording."}).option(`recording-config-storage-config-type`,{type:`string`,description:`The recording_config.storage_config.type field`,choices:[`gcs`,`aws`,`azure`,`digitalocean`,`sftp`]}).coerce(`recording-config-storage-config-type`,e=>d(e,`recording-config-storage-config-type`,`text`)).option(`recording-config-video-config-codec`,{type:`string`,description:`Codec using which the recording will be encoded.`,choices:[`H264`,`VP8`,`VP9`]}).coerce(`recording-config-video-config-codec`,e=>d(e,`recording-config-video-config-codec`,`text`)).option(`recording-config-video-config-export-file`,{type:`boolean`,description:`Controls whether to export video file seperately`}).option(`recording-config-video-config-height`,{type:`number`,description:`Height of the recording video in pixels`}).option(`recording-config-video-config-watermark-position`,{type:`string`,description:`Position of the watermark`,choices:[`left top`,`right top`,`left bottom`,`right bottom`]}).coerce(`recording-config-video-config-watermark-position`,e=>d(e,`recording-config-video-config-watermark-position`,`text`)).option(`recording-config-video-config-watermark-url`,{type:`string`,description:`URL of the watermark image`}).option(`recording-config-video-config-width`,{type:`number`,description:`Width of the recording video in pixels`}).option(`session-keep-alive-time-in-secs`,{type:`number`,description:`Time in seconds, for which a session remains active, after the last participant has left the meeting.`}).option(`status`,{type:`string`,description:"Whether the meeting is `ACTIVE` or `INACTIVE`. Users will not be able to join an `INACTIVE` meeting.",choices:[`ACTIVE`,`INACTIVE`]}).coerce(`status`,e=>d(e,`status`,`text`)).option(`summarize-on-end`,{type:`boolean`,description:`Automatically generate summary of meetings using transcripts. Requires Transcriptions to be enabled, and can be retrieved via Webhooks or summary API.`}).option(`title`,{type:`string`,description:`Title of the meeting`}).option(`transcribe-on-end`,{type:`boolean`,description:`Automatically generate transcripts when the meeting ends.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Update meeting body`}).check(e=>{if([`recording-config-audio-config-channel`,`recording-config-audio-config-codec`,`recording-config-audio-config-export-file`,`recording-config-file-name-prefix`,`recording-config-live-streaming-config-rtmp-url`,`recording-config-max-seconds`,`recording-config-realtimekit-bucket-config-enabled`,`recording-config-storage-config-type`,`recording-config-video-config-codec`,`recording-config-video-config-export-file`,`recording-config-video-config-height`,`recording-config-video-config-watermark-position`,`recording-config-video-config-watermark-url`,`recording-config-video-config-width`].some(t=>e[t]!==void 0)){let t=[`recording-config-realtimekit-bucket-config-enabled`].filter(t=>e[t]===void 0);if(t.length>0)throw Error(`${t.map(e=>`--`+e).join(`, `)} ${t.length===1?`is`:`are`} required when any --recording_config-* flag is set`)}return!0})}const jt={command:`update <meeting-id>`,describe:`Update a meeting`,builder:At,handler:async e=>c({command:`realtime kit meetings update`,classification:{safeFlags:[`ai-config-summarization-summary-type`,`ai-config-summarization-text-format`,`ai-config-transcription-language`,`ai-config-transcription-profanity-filter`,`live-stream-on-start`,`persist-chat`,`record-on-start`,`recording-config-audio-config-channel`,`recording-config-audio-config-codec`,`recording-config-audio-config-export-file`,`recording-config-realtimekit-bucket-config-enabled`,`recording-config-storage-config-type`,`recording-config-video-config-codec`,`recording-config-video-config-export-file`,`recording-config-video-config-watermark-position`,`status`,`summarize-on-end`,`transcribe-on-end`,`dry-run`]}},e,async()=>{if(e.dryRun){let t=await r();o({command:`cf realtime kit meetings 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`]))}/meetings/${e[`meeting-id`]==null?`<meeting-id>`:encodeURIComponent(String(e[`meeting-id`]))}`,pathParams:{"app-id":String(e[`app-id`]??``),"meeting-id":String(e[`meeting-id`]??``)},bodyKind:`json`,body:e.body===void 0?u({ai_config:{summarization:{summary_type:e[`ai-config-summarization-summary-type`],text_format:e[`ai-config-summarization-text-format`],word_limit:e[`ai-config-summarization-word-limit`]},transcription:{keywords:e[`ai-config-transcription-keywords`],language:e[`ai-config-transcription-language`],profanity_filter:e[`ai-config-transcription-profanity-filter`]}},live_stream_on_start:e[`live-stream-on-start`],persist_chat:e[`persist-chat`],record_on_start:e[`record-on-start`],recording_config:{audio_config:{channel:e[`recording-config-audio-config-channel`],codec:e[`recording-config-audio-config-codec`],export_file:e[`recording-config-audio-config-export-file`]},file_name_prefix:d(e[`recording-config-file-name-prefix`],`recording-config-file-name-prefix`,`text`),live_streaming_config:{rtmp_url:d(e[`recording-config-live-streaming-config-rtmp-url`],`recording-config-live-streaming-config-rtmp-url`,`text`)},max_seconds:e[`recording-config-max-seconds`],realtimekit_bucket_config:{enabled:e[`recording-config-realtimekit-bucket-config-enabled`]},storage_config:{type:e[`recording-config-storage-config-type`]},video_config:{codec:e[`recording-config-video-config-codec`],export_file:e[`recording-config-video-config-export-file`],height:e[`recording-config-video-config-height`],watermark:{position:e[`recording-config-video-config-watermark-position`],url:d(e[`recording-config-video-config-watermark-url`],`recording-config-video-config-watermark-url`,`text`)},width:e[`recording-config-video-config-width`]}},session_keep_alive_time_in_secs:e[`session-keep-alive-time-in-secs`],status:e.status,summarize_on_end:e[`summarize-on-end`],title:d(e.title,`title`,`text`),transcribe_on_end:e[`transcribe-on-end`]}):l(e.body)});return}let c=await n(e),f=e.local?t:await i();if(e.accountId=f,e.body){let t=l(e.body),n=await s(`Updating`,async()=>c.send(I,{body:t,account_id:f,app_id:e[`app-id`],meeting_id:e[`meeting-id`]}));a(n,{successLabel:`Updated`});return}let p=u({ai_config:{summarization:{summary_type:e[`ai-config-summarization-summary-type`],text_format:e[`ai-config-summarization-text-format`],word_limit:e[`ai-config-summarization-word-limit`]},transcription:{keywords:e[`ai-config-transcription-keywords`],language:e[`ai-config-transcription-language`],profanity_filter:e[`ai-config-transcription-profanity-filter`]}},live_stream_on_start:e[`live-stream-on-start`],persist_chat:e[`persist-chat`],record_on_start:e[`record-on-start`],recording_config:{audio_config:{channel:e[`recording-config-audio-config-channel`],codec:e[`recording-config-audio-config-codec`],export_file:e[`recording-config-audio-config-export-file`]},file_name_prefix:d(e[`recording-config-file-name-prefix`],`recording-config-file-name-prefix`,`text`),live_streaming_config:{rtmp_url:d(e[`recording-config-live-streaming-config-rtmp-url`],`recording-config-live-streaming-config-rtmp-url`,`text`)},max_seconds:e[`recording-config-max-seconds`],realtimekit_bucket_config:{enabled:e[`recording-config-realtimekit-bucket-config-enabled`]},storage_config:{type:e[`recording-config-storage-config-type`]},video_config:{codec:e[`recording-config-video-config-codec`],export_file:e[`recording-config-video-config-export-file`],height:e[`recording-config-video-config-height`],watermark:{position:e[`recording-config-video-config-watermark-position`],url:d(e[`recording-config-video-config-watermark-url`],`recording-config-video-config-watermark-url`,`text`)},width:e[`recording-config-video-config-width`]}},session_keep_alive_time_in_secs:e[`session-keep-alive-time-in-secs`],status:e.status,summarize_on_end:e[`summarize-on-end`],title:d(e.title,`title`,`text`),transcribe_on_end:e[`transcribe-on-end`]}),m=await s(`Updating`,async()=>c.send(I,{body:p,account_id:f,app_id:e[`app-id`],meeting_id:e[`meeting-id`]}));a(m,{successLabel:`Updated`})})},Mt={command:`meetings`,describe:`Meetings, participants, access tokens, and meeting livestreams`,builder:e=>e.command(Je).command(Ze).command(et).command(kt).command(jt).command(Ke).command(st).command(Dt).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var L={method:`POST`,path:t=>e`/accounts/${t.account_id}/realtime/kit/${t.app_id}/presets`,body:`json`};function Nt(e){return e.usage(`$0 realtime kit presets create <app-id>
68
68
 
69
69
  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=>d(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=>d(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=>d(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=>d(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=>d(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=>d(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-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=>d(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=>d(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=>d(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=>d(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=>d(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=>d(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 Pt={command:`create <app-id>`,describe:`Create a preset`,builder:Nt,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?u({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:d(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`]},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:d(e[`ui-design-tokens-colors-danger`],`ui-design-tokens-colors-danger`,`text`),success:d(e[`ui-design-tokens-colors-success`],`ui-design-tokens-colors-success`,`text`),text:d(e[`ui-design-tokens-colors-text`],`ui-design-tokens-colors-text`,`text`),text_on_brand:d(e[`ui-design-tokens-colors-text-on-brand`],`ui-design-tokens-colors-text-on-brand`,`text`),video_bg:d(e[`ui-design-tokens-colors-video-bg`],`ui-design-tokens-colors-video-bg`,`text`),warning:d(e[`ui-design-tokens-colors-warning`],`ui-design-tokens-colors-warning`,`text`)},font_family:d(e[`ui-design-tokens-font-family`],`ui-design-tokens-font-family`,`text`),google_font:d(e[`ui-design-tokens-google-font`],`ui-design-tokens-google-font`,`text`),logo:d(e[`ui-design-tokens-logo`],`ui-design-tokens-logo`,`text`),spacing_base:e[`ui-design-tokens-spacing-base`],theme:e[`ui-design-tokens-theme`]}}}):l(e.body)});return}let c=await n(e),m=e.local?t:await i();if(e.accountId=m,e.body){let t=l(e.body),n=await s(`Creating`,async()=>c.send(L,{body:t,account_id:m,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 p(`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 p(`config-media-video-quality`,`Video quality of participants`,[`hd`,`vga`,`qvga`,`fhd`,`uhd`])),e[`config-view-type`]===void 0&&(e[`config-view-type`]=await p(`config-view-type`,`Type of the meeting`,[`GROUP_CALL`,`WEBINAR`,`AUDIO_ROOM`,`LIVESTREAM`])),e.name===void 0&&(e.name=await f(`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 p(`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 p(`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 p(`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-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 p(`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 p(`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 p(`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 p(`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 f(`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 f(`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 f(`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 f(`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 f(`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 f(`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 p(`ui-design-tokens-theme`,`The ui.design_tokens.theme field`,[`darkest`,`dark`,`light`]));let h=u({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:d(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`]},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:d(e[`ui-design-tokens-colors-danger`],`ui-design-tokens-colors-danger`,`text`),success:d(e[`ui-design-tokens-colors-success`],`ui-design-tokens-colors-success`,`text`),text:d(e[`ui-design-tokens-colors-text`],`ui-design-tokens-colors-text`,`text`),text_on_brand:d(e[`ui-design-tokens-colors-text-on-brand`],`ui-design-tokens-colors-text-on-brand`,`text`),video_bg:d(e[`ui-design-tokens-colors-video-bg`],`ui-design-tokens-colors-video-bg`,`text`),warning:d(e[`ui-design-tokens-colors-warning`],`ui-design-tokens-colors-warning`,`text`)},font_family:d(e[`ui-design-tokens-font-family`],`ui-design-tokens-font-family`,`text`),google_font:d(e[`ui-design-tokens-google-font`],`ui-design-tokens-google-font`,`text`),logo:d(e[`ui-design-tokens-logo`],`ui-design-tokens-logo`,`text`),spacing_base:e[`ui-design-tokens-spacing-base`],theme:e[`ui-design-tokens-theme`]}}}),g=await s(`Creating`,async()=>c.send(L,{body:h,account_id:m,app_id:e[`app-id`]}));a(g,{successLabel:`Created`})})};var Ft={method:`DELETE`,path:t=>e`/accounts/${t.account_id}/realtime/kit/${t.app_id}/presets/${t.preset_id}`};function It(e){return e.usage(`$0 realtime kit presets delete <preset-id>
70
70
 
@@ -87,7 +87,7 @@ Returns details of a recording for the given recording ID.`).positional(`recordi
87
87
 
88
88
  Returns all recordings for an App. If the \`meeting_id\` parameter is passed, returns all recordings for the given meeting ID.`).option(`app-id`,{type:`string`,description:`The app identifier tag.`,demandOption:!0}).option(`meeting-id`,{type:`string`,description:`ID of a meeting. Optional. Will limit results to only this meeting if passed.`}).option(`page-no`,{type:`number`,description:`The page number from which you want your page search results to be displayed.`}).option(`per-page`,{type:`number`,description:`Number of results per page`}).option(`expired`,{type:`boolean`,description:`If passed, only shows expired/non-expired recordings on RealtimeKit's bucket`}).option(`search`,{type:`string`,description:`The search query string. You can search using the meeting ID or title.`}).option(`sort-by`,{type:`string`,description:`Sort by`,choices:[`invokedTime`]}).option(`sort-order`,{type:`string`,description:`Sort order`,choices:[`ASC`,`DESC`]}).option(`start-time`,{type:`string`,description:`The start time range for which you want to retrieve the meetings. The time must be specified in ISO format.`}).option(`end-time`,{type:`string`,description:`The end time range for which you want to retrieve the meetings. The time must be specified in ISO format.`}).option(`status`,{type:`string`,description:`Filter by one or more recording status`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const sn={command:`list`,describe:`Fetch all recordings for an App`,builder:on,handler:async e=>c({command:`realtime kit recordings list`,classification:{safeFlags:[`expired`,`sort-by`,`sort-order`,`dry-run`]}},e,async()=>{let c={meeting_id:e[`meeting-id`],page_no:e[`page-no`],per_page:e[`per-page`],expired:e.expired,search:e.search,sort_by:e[`sort-by`],sort_order:e[`sort-order`],start_time:e[`start-time`],end_time:e[`end-time`],status:e.status};if(e.dryRun){let t=await r();o({command:`cf realtime kit recordings 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`]))}/recordings`,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(an,{account_id:u,app_id:e[`app-id`],...c}));a(d,{successLabel:`Loaded`})})};var V={method:`POST`,path:t=>e`/accounts/${t.account_id}/realtime/kit/${t.app_id}/recordings`,body:`json`};function cn(e){return e.usage(`$0 realtime kit recordings start <app-id>
89
89
 
90
- Starts recording a meeting. The meeting can be started by an App admin directly, or a participant with permissions to start a recording, based on the type of authorization used.`).positional(`app-id`,{type:`string`,description:`The app identifier tag.`,demandOption:!0}).option(`allow-multiple-recordings`,{type:`boolean`,description:"By default, a meeting allows only one recording to run at a time. Enabling the `allow_multiple_recordings` parameter to true allows you to initiate multiple recordings concurrently in the same meeting. This allows you to record separate videos of the same meeting with different configurations, such as portrait mode or landscape mode.",default:!1}).option(`audio-config-channel`,{type:`string`,description:`Audio signal pathway within an audio file that carries a specific sound source.`,choices:[`mono`,`stereo`]}).coerce(`audio-config-channel`,e=>d(e,`audio-config-channel`,`text`)).option(`audio-config-codec`,{type:`string`,description:`Codec using which the recording will be encoded. If VP8/VP9 is selected for videoConfig, changing audioConfig is not allowed. In this case, the codec in the audioConfig is automatically set to vorbis.`,choices:[`MP3`,`AAC`]}).coerce(`audio-config-codec`,e=>d(e,`audio-config-codec`,`text`)).option(`audio-config-export-file`,{type:`boolean`,description:`Controls whether to export audio file seperately`}).option(`file-name-prefix`,{type:`string`,description:`Update the recording file name.`}).option(`interactive-config-type`,{type:`string`,description:`The metadata is presented in the form of ID3 tags.`,choices:[`ID3`]}).coerce(`interactive-config-type`,e=>d(e,`interactive-config-type`,`text`)).option(`max-seconds`,{type:`number`,description:`Specifies the maximum duration for recording in seconds, ranging from a minimum of 60 seconds to a maximum of 24 hours.`}).option(`meeting-id`,{type:`string`,description:`ID of the meeting to record.`}).option(`realtimekit-bucket-config-enabled`,{type:`boolean`,description:"Controls whether recordings are uploaded to RealtimeKit's bucket. If set to false, `download_url`, `audio_download_url`, `download_url_expiry` won't be generated for a recording."}).option(`rtmp-out-config-rtmp-url`,{type:`string`,description:`RTMP URL to stream to`}).option(`url`,{type:`string`,description:`Pass a custom url to record arbitary screen`}).option(`video-config-codec`,{type:`string`,description:`Codec using which the recording will be encoded.`,choices:[`H264`,`VP8`,`VP9`]}).coerce(`video-config-codec`,e=>d(e,`video-config-codec`,`text`)).option(`video-config-export-file`,{type:`boolean`,description:`Controls whether to export video file seperately`}).option(`video-config-height`,{type:`number`,description:`Height of the recording video in pixels`}).option(`video-config-watermark-position`,{type:`string`,description:`Position of the watermark`,choices:[`left top`,`right top`,`left bottom`,`right bottom`]}).coerce(`video-config-watermark-position`,e=>d(e,`video-config-watermark-position`,`text`)).option(`video-config-watermark-size-height`,{type:`number`,description:`Height of the watermark in px`}).option(`video-config-watermark-size-width`,{type:`number`,description:`Width of the watermark in px`}).option(`video-config-watermark-url`,{type:`string`,description:`URL of the watermark image`}).option(`video-config-width`,{type:`number`,description:`Width of the recording 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)`}).check(e=>{if([`realtimekit-bucket-config-enabled`].some(t=>e[t]!==void 0)){let t=[`realtimekit-bucket-config-enabled`].filter(t=>e[t]===void 0);if(t.length>0)throw Error(`${t.map(e=>`--`+e).join(`, `)} ${t.length===1?`is`:`are`} required when any --realtimekit_bucket_config-* flag is set`)}return!0})}const ln={command:`start <app-id>`,describe:`Start recording a meeting`,builder:cn,handler:async e=>c({command:`realtime kit recordings start`,classification:{safeFlags:[`allow-multiple-recordings`,`audio-config-channel`,`audio-config-codec`,`audio-config-export-file`,`interactive-config-type`,`realtimekit-bucket-config-enabled`,`video-config-codec`,`video-config-export-file`,`video-config-watermark-position`,`dry-run`]}},e,async()=>{if(e.dryRun){let t=await r();o({command:`cf realtime kit recordings 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`]))}/recordings`,pathParams:{"app-id":String(e[`app-id`]??``)},bodyKind:`json`,body:e.body===void 0?u({allow_multiple_recordings:e[`allow-multiple-recordings`],audio_config:{channel:e[`audio-config-channel`],codec:e[`audio-config-codec`],export_file:e[`audio-config-export-file`]},file_name_prefix:d(e[`file-name-prefix`],`file-name-prefix`,`text`),interactive_config:{type:e[`interactive-config-type`]},max_seconds:e[`max-seconds`],meeting_id:d(e[`meeting-id`],`meeting-id`,`text`),realtimekit_bucket_config:{enabled:e[`realtimekit-bucket-config-enabled`]},rtmp_out_config:{rtmp_url:d(e[`rtmp-out-config-rtmp-url`],`rtmp-out-config-rtmp-url`,`text`)},url:d(e.url,`url`,`text`),video_config:{codec:e[`video-config-codec`],export_file:e[`video-config-export-file`],height:e[`video-config-height`],watermark:{position:e[`video-config-watermark-position`],size:{height:e[`video-config-watermark-size-height`],width:e[`video-config-watermark-size-width`]},url:d(e[`video-config-watermark-url`],`video-config-watermark-url`,`text`)},width:e[`video-config-width`]}}):l(e.body)});return}let c=await n(e),p=e.local?t:await i();if(e.accountId=p,e.body){let t=l(e.body),n=await s(`Creating`,async()=>c.send(V,{body:t,account_id:p,app_id:e[`app-id`]}));a(n,{successLabel:`Created`});return}e[`meeting-id`]===void 0&&(e[`meeting-id`]=await f(`meeting-id`,`ID of the meeting to record.`));let m=u({allow_multiple_recordings:e[`allow-multiple-recordings`],audio_config:{channel:e[`audio-config-channel`],codec:e[`audio-config-codec`],export_file:e[`audio-config-export-file`]},file_name_prefix:d(e[`file-name-prefix`],`file-name-prefix`,`text`),interactive_config:{type:e[`interactive-config-type`]},max_seconds:e[`max-seconds`],meeting_id:d(e[`meeting-id`],`meeting-id`,`text`),realtimekit_bucket_config:{enabled:e[`realtimekit-bucket-config-enabled`]},rtmp_out_config:{rtmp_url:d(e[`rtmp-out-config-rtmp-url`],`rtmp-out-config-rtmp-url`,`text`)},url:d(e.url,`url`,`text`),video_config:{codec:e[`video-config-codec`],export_file:e[`video-config-export-file`],height:e[`video-config-height`],watermark:{position:e[`video-config-watermark-position`],size:{height:e[`video-config-watermark-size-height`],width:e[`video-config-watermark-size-width`]},url:d(e[`video-config-watermark-url`],`video-config-watermark-url`,`text`)},width:e[`video-config-width`]}}),h=await s(`Creating`,async()=>c.send(V,{body:m,account_id:p,app_id:e[`app-id`]}));a(h,{successLabel:`Created`})})};var H={method:`POST`,path:t=>e`/accounts/${t.account_id}/realtime/kit/${t.app_id}/recordings/track`,body:`json`};function un(e){return e.usage(`$0 realtime kit recordings tracks start <app-id>
90
+ Starts recording a meeting. The meeting can be started by an App admin directly, or a participant with permissions to start a recording, based on the type of authorization used.`).positional(`app-id`,{type:`string`,description:`The app identifier tag.`,demandOption:!0}).option(`allow-multiple-recordings`,{type:`boolean`,description:"By default, a meeting allows only one recording to run at a time. Enabling the `allow_multiple_recordings` parameter to true allows you to initiate multiple recordings concurrently in the same meeting. This allows you to record separate videos of the same meeting with different configurations, such as portrait mode or landscape mode.",default:!1}).option(`audio-config-channel`,{type:`string`,description:`Audio signal pathway within an audio file that carries a specific sound source.`,choices:[`mono`,`stereo`]}).coerce(`audio-config-channel`,e=>d(e,`audio-config-channel`,`text`)).option(`audio-config-codec`,{type:`string`,description:`Codec using which the recording will be encoded. If VP8/VP9 is selected for videoConfig, changing audioConfig is not allowed. In this case, the codec in the audioConfig is automatically set to vorbis.`,choices:[`MP3`,`AAC`]}).coerce(`audio-config-codec`,e=>d(e,`audio-config-codec`,`text`)).option(`audio-config-export-file`,{type:`boolean`,description:`Controls whether to export audio file seperately`}).option(`file-name-prefix`,{type:`string`,description:`Update the recording file name.`}).option(`interactive-config-type`,{type:`string`,description:`The metadata is presented in the form of ID3 tags.`,choices:[`ID3`]}).coerce(`interactive-config-type`,e=>d(e,`interactive-config-type`,`text`)).option(`max-seconds`,{type:`number`,description:`Specifies the maximum duration for recording in seconds, ranging from a minimum of 60 seconds to a maximum of 24 hours.`}).option(`meeting-id`,{type:`string`,description:`ID of the meeting to record.`}).option(`realtimekit-bucket-config-enabled`,{type:`boolean`,description:"Controls whether recordings are uploaded to RealtimeKit's bucket. If set to false, `download_url`, `audio_download_url`, `download_url_expiry` won't be generated for a recording."}).option(`rtmp-out-config-rtmp-url`,{type:`string`,description:`RTMP URL to stream to`}).option(`storage-config-type`,{type:`string`,description:`The storage_config.type field`,choices:[`gcs`,`aws`,`azure`,`digitalocean`,`sftp`]}).coerce(`storage-config-type`,e=>d(e,`storage-config-type`,`text`)).option(`url`,{type:`string`,description:`Pass a custom url to record arbitary screen`}).option(`video-config-codec`,{type:`string`,description:`Codec using which the recording will be encoded.`,choices:[`H264`,`VP8`,`VP9`]}).coerce(`video-config-codec`,e=>d(e,`video-config-codec`,`text`)).option(`video-config-export-file`,{type:`boolean`,description:`Controls whether to export video file seperately`}).option(`video-config-height`,{type:`number`,description:`Height of the recording video in pixels`}).option(`video-config-watermark-position`,{type:`string`,description:`Position of the watermark`,choices:[`left top`,`right top`,`left bottom`,`right bottom`]}).coerce(`video-config-watermark-position`,e=>d(e,`video-config-watermark-position`,`text`)).option(`video-config-watermark-size-height`,{type:`number`,description:`Height of the watermark in px`}).option(`video-config-watermark-size-width`,{type:`number`,description:`Width of the watermark in px`}).option(`video-config-watermark-url`,{type:`string`,description:`URL of the watermark image`}).option(`video-config-width`,{type:`number`,description:`Width of the recording 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)`}).check(e=>{if([`realtimekit-bucket-config-enabled`].some(t=>e[t]!==void 0)){let t=[`realtimekit-bucket-config-enabled`].filter(t=>e[t]===void 0);if(t.length>0)throw Error(`${t.map(e=>`--`+e).join(`, `)} ${t.length===1?`is`:`are`} required when any --realtimekit_bucket_config-* flag is set`)}return!0})}const ln={command:`start <app-id>`,describe:`Start recording a meeting`,builder:cn,handler:async e=>c({command:`realtime kit recordings start`,classification:{safeFlags:[`allow-multiple-recordings`,`audio-config-channel`,`audio-config-codec`,`audio-config-export-file`,`interactive-config-type`,`realtimekit-bucket-config-enabled`,`storage-config-type`,`video-config-codec`,`video-config-export-file`,`video-config-watermark-position`,`dry-run`]}},e,async()=>{if(e.dryRun){let t=await r();o({command:`cf realtime kit recordings 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`]))}/recordings`,pathParams:{"app-id":String(e[`app-id`]??``)},bodyKind:`json`,body:e.body===void 0?u({allow_multiple_recordings:e[`allow-multiple-recordings`],audio_config:{channel:e[`audio-config-channel`],codec:e[`audio-config-codec`],export_file:e[`audio-config-export-file`]},file_name_prefix:d(e[`file-name-prefix`],`file-name-prefix`,`text`),interactive_config:{type:e[`interactive-config-type`]},max_seconds:e[`max-seconds`],meeting_id:d(e[`meeting-id`],`meeting-id`,`text`),realtimekit_bucket_config:{enabled:e[`realtimekit-bucket-config-enabled`]},rtmp_out_config:{rtmp_url:d(e[`rtmp-out-config-rtmp-url`],`rtmp-out-config-rtmp-url`,`text`)},storage_config:{type:e[`storage-config-type`]},url:d(e.url,`url`,`text`),video_config:{codec:e[`video-config-codec`],export_file:e[`video-config-export-file`],height:e[`video-config-height`],watermark:{position:e[`video-config-watermark-position`],size:{height:e[`video-config-watermark-size-height`],width:e[`video-config-watermark-size-width`]},url:d(e[`video-config-watermark-url`],`video-config-watermark-url`,`text`)},width:e[`video-config-width`]}}):l(e.body)});return}let c=await n(e),p=e.local?t:await i();if(e.accountId=p,e.body){let t=l(e.body),n=await s(`Creating`,async()=>c.send(V,{body:t,account_id:p,app_id:e[`app-id`]}));a(n,{successLabel:`Created`});return}e[`meeting-id`]===void 0&&(e[`meeting-id`]=await f(`meeting-id`,`ID of the meeting to record.`));let m=u({allow_multiple_recordings:e[`allow-multiple-recordings`],audio_config:{channel:e[`audio-config-channel`],codec:e[`audio-config-codec`],export_file:e[`audio-config-export-file`]},file_name_prefix:d(e[`file-name-prefix`],`file-name-prefix`,`text`),interactive_config:{type:e[`interactive-config-type`]},max_seconds:e[`max-seconds`],meeting_id:d(e[`meeting-id`],`meeting-id`,`text`),realtimekit_bucket_config:{enabled:e[`realtimekit-bucket-config-enabled`]},rtmp_out_config:{rtmp_url:d(e[`rtmp-out-config-rtmp-url`],`rtmp-out-config-rtmp-url`,`text`)},storage_config:{type:e[`storage-config-type`]},url:d(e.url,`url`,`text`),video_config:{codec:e[`video-config-codec`],export_file:e[`video-config-export-file`],height:e[`video-config-height`],watermark:{position:e[`video-config-watermark-position`],size:{height:e[`video-config-watermark-size-height`],width:e[`video-config-watermark-size-width`]},url:d(e[`video-config-watermark-url`],`video-config-watermark-url`,`text`)},width:e[`video-config-width`]}}),h=await s(`Creating`,async()=>c.send(V,{body:m,account_id:p,app_id:e[`app-id`]}));a(h,{successLabel:`Created`})})};var H={method:`POST`,path:t=>e`/accounts/${t.account_id}/realtime/kit/${t.app_id}/recordings/track`,body:`json`};function un(e){return e.usage(`$0 realtime kit recordings tracks start <app-id>
91
91
 
92
92
  Starts track recording for a meeting. Track recording currently records separate participant audio tracks as WebM files in the RealtimeKit bucket. Video track recording is in development. For more information, refer to [Track recording](/realtime/realtimekit/recording-guide/track-recording/).`).positional(`app-id`,{type:`string`,description:`The app identifier tag.`,demandOption:!0}).option(`meeting-id`,{type:`string`,description:`ID of the meeting to record.`}).option(`user-ids`,{type:`string`,array:!0,description:"Optional list of participant user IDs to record. Selective track recording (`user_ids`) is in early beta contact support to use this feature."}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:"Starts audio track recording for an active meeting. Use `layers` only when you need to set a file name prefix. Selective track recording (`user_ids`) is in early beta contact support to use this feature."})}const dn={command:`start <app-id>`,describe:`Start recording participant audio tracks`,builder:un,handler:async e=>c({command:`realtime kit recordings tracks start`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await r();o({command:`cf realtime kit recordings tracks 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`]))}/recordings/track`,pathParams:{"app-id":String(e[`app-id`]??``)},bodyKind:`json`,body:e.body===void 0?u({meeting_id:d(e[`meeting-id`],`meeting-id`,`text`),user_ids:e[`user-ids`]}):l(e.body)});return}let c=await n(e),p=e.local?t:await i();if(e.accountId=p,e.body){let t=l(e.body),n=await s(`Creating`,async()=>c.send(H,{body:t,account_id:p,app_id:e[`app-id`]}));a(n,{successLabel:`Created`});return}e[`meeting-id`]===void 0&&(e[`meeting-id`]=await f(`meeting-id`,`ID of the meeting to record.`));let m=u({meeting_id:d(e[`meeting-id`],`meeting-id`,`text`),user_ids:e[`user-ids`]}),h=await s(`Creating`,async()=>c.send(H,{body:m,account_id:p,app_id:e[`app-id`]}));a(h,{successLabel:`Created`})})},fn={command:`tracks`,describe:`Participant-track recordings for RealtimeKit meetings`,builder:e=>e.command(dn).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},pn={command:`recordings`,describe:`Meeting and participant-track recordings and recording controls`,builder:e=>e.command(en).command(rn).command(sn).command(ln).command(Qt).command(fn).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var mn={method:`GET`,path:t=>e`/accounts/${t.account_id}/realtime/kit/${t.app_id}/sessions/${t.session_id}/chat`};function hn(e){return e.usage(`$0 realtime kit sessions chat export <session-id>
93
93
 
@@ -99,7 +99,7 @@ Returns details of all sessions of an App.`).option(`app-id`,{type:`string`,desc
99
99
 
100
100
  Returns livestream session details for the given session ID. Retreive the session ID using the \`Fetch all sessions of an App\` API.`).positional(`session-id`,{type:`string`,description:`Session ID`,demandOption:!0}).option(`app-id`,{type:`string`,description:`The app identifier tag.`,demandOption:!0}).option(`per-page`,{type:`number`,description:`Number of results per page.`}).option(`page-no`,{type:`number`,description:`The page number from which you want your page search results to be displayed.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const En={command:`get <session-id>`,describe:`Fetch livestream session details using a session ID`,builder:Tn,handler:async e=>c({command:`realtime kit sessions livestreams get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{let c={per_page:e[`per-page`],page_no:e[`page-no`]};if(e.dryRun){let t=await r();o({command:`cf realtime kit sessions livestreams 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`]))}/sessions/${e[`session-id`]==null?`<session-id>`:encodeURIComponent(String(e[`session-id`]))}/livestream-sessions`,pathParams:{"app-id":String(e[`app-id`]??``),"session-id":String(e[`session-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(wn,{account_id:u,app_id:e[`app-id`],session_id:e[`session-id`],...c}));a(d,{successLabel:`Loaded`})})},Dn={command:`livestreams`,describe:`Livestreams associated with historical RealtimeKit sessions`,builder:e=>e.command(En).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var On={method:`GET`,path:t=>e`/accounts/${t.account_id}/realtime/kit/${t.app_id}/sessions/${t.session_id}/participants/${t.participant_id}`,query:[`include_peer_events`]};function kn(e){return e.usage(`$0 realtime kit sessions participants get <participant-id>
101
101
 
102
- Returns details of the given participant ID for the given session ID. Use the peer report endpoint to retrieve call statistics.`).positional(`participant-id`,{type:`string`,description:`ID of the participant`,demandOption:!0}).option(`app-id`,{type:`string`,description:`The app identifier tag.`,demandOption:!0}).option(`session-id`,{type:`string`,description:`ID of the session`,demandOption:!0}).option(`include-peer-events`,{type:`boolean`,description:`if true, response includes all the peer events of participant.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const An={command:`get <participant-id>`,describe:`Fetch details of a participant`,builder:kn,handler:async e=>c({command:`realtime kit sessions participants get`,classification:{safeFlags:[`include-peer-events`,`dry-run`]}},e,async()=>{let c={include_peer_events:e[`include-peer-events`]};if(e.dryRun){let t=await r();o({command:`cf realtime kit sessions 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`]))}/sessions/${e[`session-id`]==null?`<session-id>`:encodeURIComponent(String(e[`session-id`]))}/participants/${e[`participant-id`]==null?`<participant-id>`:encodeURIComponent(String(e[`participant-id`]))}`,pathParams:{"app-id":String(e[`app-id`]??``),"participant-id":String(e[`participant-id`]??``),"session-id":String(e[`session-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(On,{account_id:u,app_id:e[`app-id`],session_id:e[`session-id`],participant_id:e[`participant-id`],...c}));a(d,{successLabel:`Loaded`})})};var jn={method:`GET`,path:t=>e`/accounts/${t.account_id}/realtime/kit/${t.app_id}/sessions/${t.session_id}/participants`,query:[`search`,`page_no`,`per_page`,`sort_order`,`sort_by`,`include_peer_events`,`view`]};function Mn(e){return e.usage(`$0 realtime kit sessions participants list
102
+ Returns details of the given participant ID for the given session ID. Use the peer report endpoint to retrieve call statistics.`).positional(`participant-id`,{type:`string`,description:`ID of the participant`,demandOption:!0}).option(`app-id`,{type:`string`,description:`The app identifier tag.`,demandOption:!0}).option(`session-id`,{type:`string`,description:`ID of the session`,demandOption:!0}).option(`include-peer-events`,{type:`boolean`,description:`if true, response includes all the peer events of participant.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const An={command:`get <participant-id>`,describe:`Fetch details of a participant`,builder:kn,handler:async e=>c({command:`realtime kit sessions participants get`,classification:{safeFlags:[`include-peer-events`,`dry-run`]}},e,async()=>{let c={include_peer_events:e[`include-peer-events`]};if(e.dryRun){let t=await r();o({command:`cf realtime kit sessions 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`]))}/sessions/${e[`session-id`]==null?`<session-id>`:encodeURIComponent(String(e[`session-id`]))}/participants/${e[`participant-id`]==null?`<participant-id>`:encodeURIComponent(String(e[`participant-id`]))}`,pathParams:{"app-id":String(e[`app-id`]??``),"session-id":String(e[`session-id`]??``),"participant-id":String(e[`participant-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(On,{account_id:u,app_id:e[`app-id`],session_id:e[`session-id`],participant_id:e[`participant-id`],...c}));a(d,{successLabel:`Loaded`})})};var jn={method:`GET`,path:t=>e`/accounts/${t.account_id}/realtime/kit/${t.app_id}/sessions/${t.session_id}/participants`,query:[`search`,`page_no`,`per_page`,`sort_order`,`sort_by`,`include_peer_events`,`view`]};function Mn(e){return e.usage(`$0 realtime kit sessions participants list
103
103
 
104
104
  Returns a list of participants for the given session ID.`).option(`app-id`,{type:`string`,description:`The app identifier tag.`,demandOption:!0}).option(`session-id`,{type:`string`,description:`ID of the session`,demandOption:!0}).option(`search`,{type:`string`,description:`The search query string. You can search using participant ID, custom participant ID, or display name.`}).option(`page-no`,{type:`number`,description:`The page number from which you want your page search results to be displayed.`}).option(`per-page`,{type:`number`,description:`Number of results per page.`}).option(`sort-order`,{type:`string`,description:`Sort order`,choices:[`ASC`,`DESC`]}).option(`sort-by`,{type:`string`,description:`Sort by`,choices:[`joinedAt`,`duration`]}).option(`include-peer-events`,{type:`boolean`,description:`if true, response includes all the peer events of participants.`}).option(`view`,{type:`string`,description:"In breakout room sessions, the view parameter can be set to `raw` for session specific duration for participants or `consolidated` to accumulate breakout room durations.",choices:[`raw`,`consolidated`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const Nn={command:`list`,describe:`Fetch participants list of a session`,builder:Mn,handler:async e=>c({command:`realtime kit sessions participants list`,classification:{safeFlags:[`sort-order`,`sort-by`,`include-peer-events`,`view`,`dry-run`]}},e,async()=>{let c={search:e.search,page_no:e[`page-no`],per_page:e[`per-page`],sort_order:e[`sort-order`],sort_by:e[`sort-by`],include_peer_events:e[`include-peer-events`],view:e.view};if(e.dryRun){let t=await r();o({command:`cf realtime kit sessions participants 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`]))}/sessions/${e[`session-id`]==null?`<session-id>`:encodeURIComponent(String(e[`session-id`]))}/participants`,pathParams:{"app-id":String(e[`app-id`]??``),"session-id":String(e[`session-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(jn,{account_id:u,app_id:e[`app-id`],session_id:e[`session-id`],...c}));a(d,{successLabel:`Loaded`})})},Pn={command:`participants`,describe:`Participants in historical RealtimeKit sessions`,builder:e=>e.command(An).command(Nn).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var Fn={method:`GET`,path:t=>e`/accounts/${t.account_id}/realtime/kit/${t.app_id}/sessions/peer-report/${t.peer_id}`,query:[`filters`,`include_peer_events`]};function In(e){return e.usage(`$0 realtime kit sessions peers get <peer-id>
105
105
 
@@ -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-Dil4fTWX.mjs";import{a as i,i as a,n as o}from"./auth-C6u9qIGO.mjs";import{a as s,t as c}from"./context-A6T-NKPI.mjs";import{t as l}from"./output-Co4xdFf6.mjs";import{t as u}from"./dry-run-C2KjGX10.mjs";import{t as d}from"./progress-D5po7ScB.mjs";import{n as f,t as p}from"./run-DASYqJsY.mjs";import"./telemetry-BhKfwxyh.mjs";import{i as m,n as h,r as g,t as _}from"./body-parser-DkHKPkJ7.mjs";import{n as v}from"./input-validation-D7z60HJH.mjs";import{a as ee,i as y,n as te,o as b,r as ne}from"./prompt-BAJpE3jV.mjs";import{_ as x,a as S,c as re,d as C,g as w,h as T,i as E,m as D,o as O,p as k,r as A,s as ie,t as j,u as ae}from"./schema-flags-CShtn7ya.mjs";import{domainToASCII as oe}from"node:url";import{isDeepStrictEqual as se}from"node:util";var M={method:`GET`,path:e=>t`/accounts/${e.account_id}/registrar/extensions/${e.extension}`};function ce(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 le={command:`get <extension>`,describe:`Get extension`,builder:ce,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 ue={method:`GET`,path:e=>t`/accounts/${e.account_id}/registrar/extensions`,query:[`name`,`cursor`,`per_page`,`direction`,`sort_by`]};function de(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-Dil4fTWX.mjs";import{a as i,i as a,n as o}from"./auth-MNz2D-PD.mjs";import{a as s,t as c}from"./context-q-6bMSL-.mjs";import{t as l}from"./output-Co4xdFf6.mjs";import{t as u}from"./dry-run-C2KjGX10.mjs";import{t as d}from"./progress-DaQ4MzBI.mjs";import{n as f,t as p}from"./run-Clc3P2u7.mjs";import"./telemetry-Bdv5LZZs.mjs";import{i as m,n as h,r as g,t as _}from"./body-parser-DkHKPkJ7.mjs";import{n as v}from"./input-validation-D7z60HJH.mjs";import{a as ee,i as y,n as te,o as b,r as ne}from"./prompt-KWYZvJWM.mjs";import{_ as x,a as S,c as re,d as C,g as w,h as T,i as E,m as D,o as O,p as k,r as A,s as ie,t as j,u as ae}from"./schema-flags-b096XMpt.mjs";import{domainToASCII as oe}from"node:url";import{isDeepStrictEqual as se}from"node:util";var M={method:`GET`,path:e=>t`/accounts/${e.account_id}/registrar/extensions/${e.extension}`};function ce(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 le={command:`get <extension>`,describe:`Get extension`,builder:ce,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 ue={method:`GET`,path:e=>t`/accounts/${e.account_id}/registrar/extensions`,query:[`name`,`cursor`,`per_page`,`direction`,`sort_by`]};function de(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 fe={command:`list`,describe:`List extensions`,builder:de,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(ue,{account_id:i,...t}));l(a,{successLabel:`Loaded`})})},pe={command:`extensions`,describe:`Operations for extensions`,builder:e=>e.command(le).command(fe).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 me(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 he={command:`check <domains...>`,describe:`Check domain availability`,builder:me,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?_({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=_({domains:e.domains}),a=await d(`Creating`,async()=>t.send(N,{body:i,account_id:n}));l(a,{successLabel:`Created`})})};var ge={method:`GET`,path:e=>t`/accounts/${e.account_id}/registrar/registrations/${e.domain_name}/registration-status`};function _e(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 ve={command:`get-registration-status <domain-name>`,describe:`Get Registration Status`,builder:_e,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(ge,{account_id:n,domain_name:e[`domain-name`]}));l(i,{successLabel:`Loaded`})})};var ye={method:`GET`,path:e=>t`/accounts/${e.account_id}/registrar/registrations/${e.domain_name}/transfer-in-status`};function be(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 xe={command:`get-transfer-status <domain-name>`,describe:`Get Transfer Status`,builder:be,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(ye,{account_id:n,domain_name:e[`domain-name`]}));l(i,{successLabel:`Loaded`})})};var Se={method:`GET`,path:e=>t`/accounts/${e.account_id}/registrar/registrations/${e.domain_name}/update-status`};function Ce(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 we={command:`get-update-status <domain-name>`,describe:`Get Update Status`,builder:Ce,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(Se,{account_id:n,domain_name:e[`domain-name`]}));l(i,{successLabel:`Loaded`})})};var Te={method:`GET`,path:e=>t`/accounts/${e.account_id}/registrar/registrations/${e.domain_name}`};function Ee(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 De={command:`get <domain-name>`,describe:`Get Registration`,builder:Ee,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(Te,{account_id:n,domain_name:e[`domain-name`]}));l(i,{successLabel:`Loaded`})})};var Oe={method:`GET`,path:e=>t`/accounts/${e.account_id}/registrar/registrations`,query:[`cursor`,`per_page`,`direction`,`sort_by`]};function ke(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-Dil4fTWX.mjs";import{i as n,n as r}from"./auth-C6u9qIGO.mjs";import{a as i,t as a}from"./context-A6T-NKPI.mjs";import{t as o}from"./output-Co4xdFf6.mjs";import{t as s}from"./dry-run-C2KjGX10.mjs";import{t as c}from"./progress-D5po7ScB.mjs";import{t as l}from"./run-DASYqJsY.mjs";import"./telemetry-BhKfwxyh.mjs";import{i as u,n as d,t as f}from"./body-parser-DkHKPkJ7.mjs";import{n as p}from"./input-validation-D7z60HJH.mjs";import{a as m}from"./prompt-BAJpE3jV.mjs";var h={method:`GET`,path:t=>e`/accounts/${t.account_id}/registrar-sandbox/extensions/${t.extension}`};function g(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 _={command:`get <extension>`,describe:`Get extension`,builder:g,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(h,{account_id:l,extension:e.extension}));o(u,{successLabel:`Loaded`})})};var v={method:`GET`,path:t=>e`/accounts/${t.account_id}/registrar-sandbox/extensions`,query:[`name`,`cursor`,`per_page`,`direction`,`sort_by`]};function y(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-Dil4fTWX.mjs";import{i as n,n as r}from"./auth-MNz2D-PD.mjs";import{a as i,t as a}from"./context-q-6bMSL-.mjs";import{t as o}from"./output-Co4xdFf6.mjs";import{t as s}from"./dry-run-C2KjGX10.mjs";import{t as c}from"./progress-DaQ4MzBI.mjs";import{t as l}from"./run-Clc3P2u7.mjs";import"./telemetry-Bdv5LZZs.mjs";import{i as u,n as d,t as f}from"./body-parser-DkHKPkJ7.mjs";import{n as p}from"./input-validation-D7z60HJH.mjs";import{a as m}from"./prompt-KWYZvJWM.mjs";var h={method:`GET`,path:t=>e`/accounts/${t.account_id}/registrar-sandbox/extensions/${t.extension}`};function g(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 _={command:`get <extension>`,describe:`Get extension`,builder:g,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(h,{account_id:l,extension:e.extension}));o(u,{successLabel:`Loaded`})})};var v={method:`GET`,path:t=>e`/accounts/${t.account_id}/registrar-sandbox/extensions`,query:[`name`,`cursor`,`per_page`,`direction`,`sort_by`]};function y(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 b={command:`list`,describe:`List extensions`,builder:y,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(v,{account_id:u,...n}));o(d,{successLabel:`Loaded`})})},x={command:`extensions`,describe:`Operations for extensions`,builder:e=>e.command(_).command(b).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var S={method:`POST`,path:t=>e`/accounts/${t.account_id}/registrar-sandbox/domain-check`,body:`json`,errors:{400:`BadRequestError`}};function C(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 w={command:`check <domains...>`,describe:`Check domain availability`,builder:C,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?f({domains:e.domains}):d(e.body)});return}let n=await r(e),l=e.local?t:await a();if(e.accountId=l,e.body){let t=d(e.body),r=await c(`Creating`,async()=>n.send(S,{body:t,account_id:l}));o(r,{successLabel:`Created`});return}let u=f({domains:e.domains}),p=await c(`Creating`,async()=>n.send(S,{body:u,account_id:l}));o(p,{successLabel:`Created`})})};function T(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).
@@ -0,0 +1,14 @@
1
+ #!/usr/bin/env node
2
+ import"./api-eMuS5GI1.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{t}from"./local-Dil4fTWX.mjs";import{n}from"./auth-MNz2D-PD.mjs";import{a as r,t as i}from"./context-q-6bMSL-.mjs";import{t as a}from"./output-Co4xdFf6.mjs";import{t as o}from"./dry-run-C2KjGX10.mjs";import{t as s}from"./progress-DaQ4MzBI.mjs";import{t as c}from"./run-Clc3P2u7.mjs";import"./telemetry-Bdv5LZZs.mjs";import{n as l,t as u}from"./body-parser-DkHKPkJ7.mjs";import{n as d}from"./input-validation-D7z60HJH.mjs";import{i as f}from"./prompt-KWYZvJWM.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
+
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
+
6
+ Updates the industry classification for an account.`).option(`industry`,{type:`string`,description:`The industry of the account`,choices:/* @__PURE__ */ `accounting.adult_entertainment.agriculture.airlines_aviation_aerospace.animation_design.apparel_fashion.architecture_planning.automotive.banking_financial_services.broadcast_media.building_materials_construction.business_services_supplies_equipment.computer_hardware.computer_software.construction_civil_engineering.consumer_electronics.consumer_goods.consumer_services.cosmetics.cryptocurrency.cyber_security.defense_space.e_learning.education_academia.education_management.entertainment.environmental_services.events_services.facilities_services.fine_art_luxury_goods_jewelry.food_beverage.furniture.gambling_casinos.gaming.government.health_wellness_fitness.holding_companies_conglomerates.human_resources_staffing_recruiting.information_technology_services.insurance.international_public_affairs.international_trade_development.internet.investment_management.law_firms_legal_services.leisure_travel_tourism.logistics_supply_chain_import_export.management_consulting.manufacturing_machinery_technology_engineering.maritime.market_research.marketing_advertising.media_production_publishing.medical_devices_healthcare_software_services.medical_practices_clinics_hospitals_health_care.military_law_enforcement.mining_minerals_metals.motion_pictures_and_film.museums_libraries.music_art.newspapers.nonprofit.oil_energy_utilities_waste.organizations_local_business.outsourcing_offshoring.pharmaceuticals_biotechnology_alternative_medicine.photographic_optical_equipment.political_organization.print_digital_media.professional_training_coaching.real_estate.religious_institutions.renewables_environment.research_think_tanks.restaurants.retail.security_services_investigations.social_impact_and_community_services.sporting_goods.supermarkets_groceries.telecommunications_service_providers_and_carriers.transportation_shipping_packaging_delivery.travel_lodging_hospitality.wholesale`.split(`.`)}).coerce(`industry`,e=>d(e,`industry`,`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 v={command:`update`,describe:`Update an account industry`,builder:_,handler:async e=>c({command:`reporting industry update`,classification:{safeFlags:[`industry`,`dry-run`]}},e,async()=>{if(e.dryRun){let t=await r();o({command:`cf reporting industry update`,method:`PATCH`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/reporting/industry`,pathParams:{},bodyKind:`json`,body:e.body===void 0?u({industry:e.industry}):l(e.body)});return}let c=await n(e),d=e.local?t:await i();if(e.accountId=d,e.body){let t=l(e.body),n=await s(`Updating`,async()=>c.send(g,{body:t,account_id:d}));a(n,{successLabel:`Updated`});return}e.industry===void 0&&(e.industry=await f(`industry`,`The industry of the account`,/* @__PURE__ */ `accounting.adult_entertainment.agriculture.airlines_aviation_aerospace.animation_design.apparel_fashion.architecture_planning.automotive.banking_financial_services.broadcast_media.building_materials_construction.business_services_supplies_equipment.computer_hardware.computer_software.construction_civil_engineering.consumer_electronics.consumer_goods.consumer_services.cosmetics.cryptocurrency.cyber_security.defense_space.e_learning.education_academia.education_management.entertainment.environmental_services.events_services.facilities_services.fine_art_luxury_goods_jewelry.food_beverage.furniture.gambling_casinos.gaming.government.health_wellness_fitness.holding_companies_conglomerates.human_resources_staffing_recruiting.information_technology_services.insurance.international_public_affairs.international_trade_development.internet.investment_management.law_firms_legal_services.leisure_travel_tourism.logistics_supply_chain_import_export.management_consulting.manufacturing_machinery_technology_engineering.maritime.market_research.marketing_advertising.media_production_publishing.medical_devices_healthcare_software_services.medical_practices_clinics_hospitals_health_care.military_law_enforcement.mining_minerals_metals.motion_pictures_and_film.museums_libraries.music_art.newspapers.nonprofit.oil_energy_utilities_waste.organizations_local_business.outsourcing_offshoring.pharmaceuticals_biotechnology_alternative_medicine.photographic_optical_equipment.political_organization.print_digital_media.professional_training_coaching.real_estate.religious_institutions.renewables_environment.research_think_tanks.restaurants.retail.security_services_investigations.social_impact_and_community_services.sporting_goods.supermarkets_groceries.telecommunications_service_providers_and_carriers.transportation_shipping_packaging_delivery.travel_lodging_hospitality.wholesale`.split(`.`)));let p=u({industry:e.industry}),m=await s(`Updating`,async()=>c.send(g,{body:p,account_id:d}));a(m,{successLabel:`Updated`})})},y={command:`industry`,describe:`Operations for industry`,builder:e=>e.command(h).command(v).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var b={method:`GET`,path:t=>e`/accounts/${t.account_id}/reporting/policies/${t.policy_id}`,errors:{404:`NotFoundError`}};function x(e){return e.usage(`$0 reporting policies get <policy-id>
7
+
8
+ Gets a reporting policy by identifier.`).positional(`policy-id`,{type:`string`,description:`Unique identifier for the policy (UUID format)`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const S={command:`get <policy-id>`,describe:`Get a reporting policy`,builder:x,handler:async e=>c({command:`reporting policies get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await r();o({command:`cf reporting policies get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/reporting/policies/${e[`policy-id`]==null?`<policy-id>`:encodeURIComponent(String(e[`policy-id`]))}`,pathParams:{"policy-id":String(e[`policy-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(b,{account_id:l,policy_id:e[`policy-id`]}));a(u,{successLabel:`Loaded`})})};var C={method:`GET`,path:t=>e`/accounts/${t.account_id}/reporting/policies`,errors:{400:`BadRequestError`}};function w(e){return e.usage(`$0 reporting policies list
9
+
10
+ Lists all reporting policies for an account.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const T={command:`list`,describe:`List reporting policies`,builder:w,handler:async e=>c({command:`reporting policies list`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let e=await r();o({command:`cf reporting policies list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}/reporting/policies`,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(C,{account_id:l}));a(u,{successLabel:`Loaded`})})},E={command:`policies`,describe:`Operations for policies`,builder:e=>e.command(S).command(T).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var D={method:`GET`,path:t=>e`/accounts/${t.account_id}/reporting/reports/${t.report_id}`,errors:{404:`NotFoundError`}};function O(e){return e.usage(`$0 reporting reports get <report-id>
11
+
12
+ Gets a generated report by identifier.`).positional(`report-id`,{type:`string`,description:`Unique report identifier`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const k={command:`get <report-id>`,describe:`Get a generated report`,builder:O,handler:async e=>c({command:`reporting reports get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await r();o({command:`cf reporting reports get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/reporting/reports/${e[`report-id`]==null?`<report-id>`:encodeURIComponent(String(e[`report-id`]))}`,pathParams:{"report-id":String(e[`report-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(D,{account_id:l,report_id:e[`report-id`]}));a(u,{successLabel:`Loaded`})})};var A={method:`GET`,path:t=>e`/accounts/${t.account_id}/reporting/reports`,errors:{400:`BadRequestError`}};function j(e){return e.usage(`$0 reporting reports list
13
+
14
+ Lists all generated reports for an account.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const M={command:`list`,describe:`List generated reports`,builder:j,handler:async e=>c({command:`reporting reports list`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let e=await r();o({command:`cf reporting reports list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}/reporting/reports`,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(A,{account_id:l}));a(u,{successLabel:`Loaded`})})},N={command:`reports`,describe:`Operations for reports`,builder:e=>e.command(k).command(M).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},P={command:`reporting`,describe:`reporting`,builder:e=>e.command(y).command(E).command(N).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};export{P as default};
@@ -1,2 +1,2 @@
1
1
  #!/usr/bin/env node
2
- import{t as e}from"./agent-context-DFEgYjEQ.mjs";import{t}from"./version-B6MnUIqV.mjs";import{i as n,t as r}from"./interactive-BW9T1D1q.mjs";function i(){return r?`ci`:n()?`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};
2
+ import{t as e}from"./agent-context-DFEgYjEQ.mjs";import{t}from"./version-CAuKDZAG.mjs";import{i as n,t as r}from"./interactive-BW9T1D1q.mjs";function i(){return r?`ci`:n()?`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-Dil4fTWX.mjs";import{n}from"./auth-C6u9qIGO.mjs";import{a as r,t as i}from"./context-A6T-NKPI.mjs";import{t as a}from"./output-Co4xdFf6.mjs";import{t as o}from"./dry-run-C2KjGX10.mjs";import{t as s}from"./progress-D5po7ScB.mjs";import{t as c}from"./run-DASYqJsY.mjs";import"./telemetry-BhKfwxyh.mjs";import{n as l,t as u}from"./body-parser-DkHKPkJ7.mjs";import{n as d}from"./input-validation-D7z60HJH.mjs";import{a as f}from"./prompt-BAJpE3jV.mjs";var p={method:`POST`,path:t=>e`/accounts/${t.account_id}/request-tracer/trace`,body:`json`};function m(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-Dil4fTWX.mjs";import{n}from"./auth-MNz2D-PD.mjs";import{a as r,t as i}from"./context-q-6bMSL-.mjs";import{t as a}from"./output-Co4xdFf6.mjs";import{t as o}from"./dry-run-C2KjGX10.mjs";import{t as s}from"./progress-DaQ4MzBI.mjs";import{t as c}from"./run-Clc3P2u7.mjs";import"./telemetry-Bdv5LZZs.mjs";import{n as l,t as u}from"./body-parser-DkHKPkJ7.mjs";import{n as d}from"./input-validation-D7z60HJH.mjs";import{a as f}from"./prompt-KWYZvJWM.mjs";var p={method:`POST`,path:t=>e`/accounts/${t.account_id}/request-tracer/trace`,body:`json`};function m(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-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(`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 h={command:`create`,describe:`Request Trace`,builder:m,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?u({body:{base64:d(e[`body-base64`],`body-base64`,`text`),plain_text:d(e[`body-plain-text`],`body-plain-text`,`text`)},context:{bot_score:e[`context-bot-score`],geoloc:{city:d(e[`context-geoloc-city`],`context-geoloc-city`,`text`),continent:d(e[`context-geoloc-continent`],`context-geoloc-continent`,`text`),is_eu_country:e[`context-geoloc-is-eu-country`],iso_code:d(e[`context-geoloc-iso-code`],`context-geoloc-iso-code`,`text`),latitude:e[`context-geoloc-latitude`],longitude:e[`context-geoloc-longitude`],postal_code:d(e[`context-geoloc-postal-code`],`context-geoloc-postal-code`,`text`),region_code:d(e[`context-geoloc-region-code`],`context-geoloc-region-code`,`text`),subdivision_2_iso_code:d(e[`context-geoloc-subdivision-2-iso-code`],`context-geoloc-subdivision-2-iso-code`,`text`),timezone:d(e[`context-geoloc-timezone`],`context-geoloc-timezone`,`text`)},skip_challenge:e[`context-skip-challenge`],threat_score:e[`context-threat-score`]},method:d(e.method,`method`,`text`),protocol:d(e.protocol,`protocol`,`text`),skip_response:e[`skip-response`],url:d(e.url,`url`,`text`)}):l(e.body)});return}let c=await n(e),m=e.local?t:await i();if(e.accountId=m,e.body){let t=l(e.body),n=await s(`Creating`,async()=>c.send(p,{body:t,account_id:m}));a(n,{successLabel:`Created`});return}e.method===void 0&&(e.method=await f(`method`,`HTTP Method of tracing request`)),e.url===void 0&&(e.url=await f(`url`,`URL to which perform tracing request`));let h=u({body:{base64:d(e[`body-base64`],`body-base64`,`text`),plain_text:d(e[`body-plain-text`],`body-plain-text`,`text`)},context:{bot_score:e[`context-bot-score`],geoloc:{city:d(e[`context-geoloc-city`],`context-geoloc-city`,`text`),continent:d(e[`context-geoloc-continent`],`context-geoloc-continent`,`text`),is_eu_country:e[`context-geoloc-is-eu-country`],iso_code:d(e[`context-geoloc-iso-code`],`context-geoloc-iso-code`,`text`),latitude:e[`context-geoloc-latitude`],longitude:e[`context-geoloc-longitude`],postal_code:d(e[`context-geoloc-postal-code`],`context-geoloc-postal-code`,`text`),region_code:d(e[`context-geoloc-region-code`],`context-geoloc-region-code`,`text`),subdivision_2_iso_code:d(e[`context-geoloc-subdivision-2-iso-code`],`context-geoloc-subdivision-2-iso-code`,`text`),timezone:d(e[`context-geoloc-timezone`],`context-geoloc-timezone`,`text`)},skip_challenge:e[`context-skip-challenge`],threat_score:e[`context-threat-score`]},method:d(e.method,`method`,`text`),protocol:d(e.protocol,`protocol`,`text`),skip_response:e[`skip-response`],url:d(e.url,`url`,`text`)}),g=await s(`Creating`,async()=>c.send(p,{body:h,account_id:m}));a(g,{successLabel:`Created`})})},g={command:`traces`,describe:`Simulate request processing to debug rule matches, transforms, and routing decisions`,builder:e=>e.command(h).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},_={command:`request-tracers`,describe:`Trace how a request would be processed through Cloudflare's rules and configuration pipeline`,builder:e=>e.command(g).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};export{_ 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-Dil4fTWX.mjs";import{n}from"./auth-C6u9qIGO.mjs";import{a as r,t as i}from"./context-A6T-NKPI.mjs";import{t as a}from"./output-Co4xdFf6.mjs";import{t as o}from"./dry-run-C2KjGX10.mjs";import{t as s}from"./progress-D5po7ScB.mjs";import{t as c}from"./run-DASYqJsY.mjs";import"./telemetry-BhKfwxyh.mjs";import{n as l,r as u,t as d}from"./body-parser-DkHKPkJ7.mjs";import{n as f}from"./input-validation-D7z60HJH.mjs";import{a as p,i as m,n as h}from"./prompt-BAJpE3jV.mjs";var g={method:`POST`,path:t=>e`/accounts/${t.account_id}/shares`,body:`json`};function _(e){return e.usage(`$0 resource-sharing create
2
+ import"./api-eMuS5GI1.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{t}from"./local-Dil4fTWX.mjs";import{n}from"./auth-MNz2D-PD.mjs";import{a as r,t as i}from"./context-q-6bMSL-.mjs";import{t as a}from"./output-Co4xdFf6.mjs";import{t as o}from"./dry-run-C2KjGX10.mjs";import{t as s}from"./progress-DaQ4MzBI.mjs";import{t as c}from"./run-Clc3P2u7.mjs";import"./telemetry-Bdv5LZZs.mjs";import{n as l,r as u,t as d}from"./body-parser-DkHKPkJ7.mjs";import{n as f}from"./input-validation-D7z60HJH.mjs";import{a as p,i as m,n as h}from"./prompt-KWYZvJWM.mjs";var g={method:`POST`,path:t=>e`/accounts/${t.account_id}/shares`,body:`json`};function _(e){return e.usage(`$0 resource-sharing create
3
3
 
4
4
  Creates a new resource share for sharing Cloudflare resources with other accounts or organizations.`).option(`name`,{type:`string`,description:`The name of the share.`}).option(`recipients`,{type:`string`,description:`The recipients field. Provide as a JSON array of objects or @path/to/file.json.`}).option(`resources`,{type:`string`,description:`The resources field. Provide as a JSON array of objects or @path/to/file.json.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const ee={command:`create`,describe:`Trigger a share creation`,builder:_,handler:async e=>c({command:`resource-sharing create`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await r();o({command:`cf resource-sharing create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/shares`,pathParams:{},bodyKind:`json`,body:e.body===void 0?d({name:f(e.name,`name`,`text`),recipients:u(e.recipients,`recipients`),resources:u(e.resources,`resources`)}):l(e.body)});return}let c=await n(e),m=e.local?t:await i();if(e.accountId=m,e.body){let t=l(e.body),n=await s(`Creating`,async()=>c.send(g,{body:t,account_id:m}));a(n,{successLabel:`Created`});return}if(e.name===void 0&&(e.name=await p(`name`,`The name of the share.`)),e.recipients===void 0)throw Error(`--recipients is required (or pass --body with this field set).`);if(e.resources===void 0)throw Error(`--resources is required (or pass --body with this field set).`);let h=d({name:f(e.name,`name`,`text`),recipients:u(e.recipients,`recipients`),resources:u(e.resources,`resources`)}),_=await s(`Creating`,async()=>c.send(g,{body:h,account_id:m}));a(_,{successLabel:`Created`})})};var v={method:`DELETE`,path:t=>e`/accounts/${t.account_id}/shares/${t.share_id}`};function te(e){return e.usage(`$0 resource-sharing delete <share-id>
5
5
 
@@ -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-Dil4fTWX.mjs";import{n}from"./auth-C6u9qIGO.mjs";import{a as r,t as i}from"./context-A6T-NKPI.mjs";import{t as a}from"./output-Co4xdFf6.mjs";import{t as o}from"./dry-run-C2KjGX10.mjs";import{t as s}from"./progress-D5po7ScB.mjs";import{t as c}from"./run-DASYqJsY.mjs";import"./telemetry-BhKfwxyh.mjs";var l={method:`GET`,path:t=>e`/accounts/${t.account_id}/tags/summary`,query:[`cursor`]};function u(e){return e.usage(`$0 resource-tagging summary get
2
+ import"./api-eMuS5GI1.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{t}from"./local-Dil4fTWX.mjs";import{n}from"./auth-MNz2D-PD.mjs";import{a as r,t as i}from"./context-q-6bMSL-.mjs";import{t as a}from"./output-Co4xdFf6.mjs";import{t as o}from"./dry-run-C2KjGX10.mjs";import{t as s}from"./progress-DaQ4MzBI.mjs";import{t as c}from"./run-Clc3P2u7.mjs";import"./telemetry-Bdv5LZZs.mjs";var l={method:`GET`,path:t=>e`/accounts/${t.account_id}/tags/summary`,query:[`cursor`]};function u(e){return e.usage(`$0 resource-tagging summary get
3
3
 
4
4
  Lists all distinct tag keys and their distinct values across resources in an account.`).option(`cursor`,{type:`string`,description:`Cursor for pagination.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const d={command:`get`,describe:`List tag key summary`,builder:u,handler:async e=>c({command:`resource-tagging summary get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{let c={cursor:e.cursor};if(e.dryRun){let e=await r();o({command:`cf resource-tagging summary get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}/tags/summary`,pathParams:{},query:c,bodyKind:`none`});return}let u=await n(e),d=e.local?t:await i();e.accountId=d;let f=await s(`Loading`,async()=>u.send(l,{account_id:d,...c}));a(f,{successLabel:`Loaded`})})},f={command:`summary`,describe:`Operations for summary`,builder:e=>e.command(d).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},p={command:`resource-tagging`,describe:`resource-tagging`,builder:e=>e.command(f).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};export{p as default};