@livekit/rtc-node 0.12.2 → 0.13.1

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 (217) hide show
  1. package/dist/audio_frame.cjs +2 -2
  2. package/dist/audio_frame.cjs.map +1 -1
  3. package/dist/audio_frame.d.cts +2 -3
  4. package/dist/audio_frame.d.ts +2 -3
  5. package/dist/audio_frame.d.ts.map +1 -1
  6. package/dist/audio_frame.js +3 -3
  7. package/dist/audio_frame.js.map +1 -1
  8. package/dist/audio_resampler.cjs +10 -7
  9. package/dist/audio_resampler.cjs.map +1 -1
  10. package/dist/audio_resampler.d.cts +2 -3
  11. package/dist/audio_resampler.d.ts +2 -3
  12. package/dist/audio_resampler.d.ts.map +1 -1
  13. package/dist/audio_resampler.js +13 -10
  14. package/dist/audio_resampler.js.map +1 -1
  15. package/dist/audio_source.cjs +6 -4
  16. package/dist/audio_source.cjs.map +1 -1
  17. package/dist/audio_source.d.cts +3 -3
  18. package/dist/audio_source.d.ts +3 -3
  19. package/dist/audio_source.d.ts.map +1 -1
  20. package/dist/audio_source.js +9 -7
  21. package/dist/audio_source.js.map +1 -1
  22. package/dist/audio_stream.cjs +1 -2
  23. package/dist/audio_stream.cjs.map +1 -1
  24. package/dist/audio_stream.d.cts +2 -3
  25. package/dist/audio_stream.d.ts +2 -3
  26. package/dist/audio_stream.d.ts.map +1 -1
  27. package/dist/audio_stream.js +2 -3
  28. package/dist/audio_stream.js.map +1 -1
  29. package/dist/e2ee.cjs +19 -20
  30. package/dist/e2ee.cjs.map +1 -1
  31. package/dist/e2ee.d.cts +5 -6
  32. package/dist/e2ee.d.ts +5 -6
  33. package/dist/e2ee.d.ts.map +1 -1
  34. package/dist/e2ee.js +29 -30
  35. package/dist/e2ee.js.map +1 -1
  36. package/dist/ffi_client.cjs +6 -5
  37. package/dist/ffi_client.cjs.map +1 -1
  38. package/dist/ffi_client.d.cts +10 -10
  39. package/dist/ffi_client.d.ts +10 -10
  40. package/dist/ffi_client.d.ts.map +1 -1
  41. package/dist/ffi_client.js +6 -10
  42. package/dist/ffi_client.js.map +1 -1
  43. package/dist/index.cjs +16 -49
  44. package/dist/index.cjs.map +1 -1
  45. package/dist/index.d.cts +6 -35
  46. package/dist/index.d.ts +6 -35
  47. package/dist/index.d.ts.map +1 -1
  48. package/dist/index.js +7 -46
  49. package/dist/index.js.map +1 -1
  50. package/dist/napi/native.d.cjs.map +1 -1
  51. package/dist/napi/native.d.ts +5 -5
  52. package/dist/native.d.ts +5 -5
  53. package/dist/participant.cjs +60 -36
  54. package/dist/participant.cjs.map +1 -1
  55. package/dist/participant.d.cts +11 -11
  56. package/dist/participant.d.ts +11 -11
  57. package/dist/participant.d.ts.map +1 -1
  58. package/dist/participant.js +78 -52
  59. package/dist/participant.js.map +1 -1
  60. package/dist/proto/audio_frame_pb.cjs +977 -125
  61. package/dist/proto/audio_frame_pb.cjs.map +1 -1
  62. package/dist/proto/audio_frame_pb.d.cts +502 -417
  63. package/dist/proto/audio_frame_pb.d.ts +502 -417
  64. package/dist/proto/audio_frame_pb.d.ts.map +1 -1
  65. package/dist/proto/audio_frame_pb.js +943 -85
  66. package/dist/proto/audio_frame_pb.js.map +1 -1
  67. package/dist/proto/e2ee_pb.cjs +700 -85
  68. package/dist/proto/e2ee_pb.cjs.map +1 -1
  69. package/dist/proto/e2ee_pb.d.cts +331 -263
  70. package/dist/proto/e2ee_pb.d.ts +331 -263
  71. package/dist/proto/e2ee_pb.d.ts.map +1 -1
  72. package/dist/proto/e2ee_pb.js +675 -57
  73. package/dist/proto/e2ee_pb.js.map +1 -1
  74. package/dist/proto/ffi_pb.cjs +369 -36
  75. package/dist/proto/ffi_pb.cjs.map +1 -1
  76. package/dist/proto/ffi_pb.d.cts +156 -109
  77. package/dist/proto/ffi_pb.d.ts +156 -109
  78. package/dist/proto/ffi_pb.d.ts.map +1 -1
  79. package/dist/proto/ffi_pb.js +364 -29
  80. package/dist/proto/ffi_pb.js.map +1 -1
  81. package/dist/proto/handle_pb.cjs +27 -7
  82. package/dist/proto/handle_pb.cjs.map +1 -1
  83. package/dist/proto/handle_pb.d.cts +13 -15
  84. package/dist/proto/handle_pb.d.ts +13 -15
  85. package/dist/proto/handle_pb.d.ts.map +1 -1
  86. package/dist/proto/handle_pb.js +26 -5
  87. package/dist/proto/handle_pb.js.map +1 -1
  88. package/dist/proto/participant_pb.cjs +112 -15
  89. package/dist/proto/participant_pb.cjs.map +1 -1
  90. package/dist/proto/participant_pb.d.cts +140 -52
  91. package/dist/proto/participant_pb.d.ts +140 -52
  92. package/dist/proto/participant_pb.d.ts.map +1 -1
  93. package/dist/proto/participant_pb.js +109 -11
  94. package/dist/proto/participant_pb.js.map +1 -1
  95. package/dist/proto/room_pb.cjs +2693 -302
  96. package/dist/proto/room_pb.cjs.map +1 -1
  97. package/dist/proto/room_pb.d.cts +1265 -862
  98. package/dist/proto/room_pb.d.ts +1265 -862
  99. package/dist/proto/room_pb.d.ts.map +1 -1
  100. package/dist/proto/room_pb.js +2603 -210
  101. package/dist/proto/room_pb.js.map +1 -1
  102. package/dist/proto/rpc_pb.cjs +302 -37
  103. package/dist/proto/rpc_pb.cjs.map +1 -1
  104. package/dist/proto/rpc_pb.d.cts +138 -108
  105. package/dist/proto/rpc_pb.d.ts +138 -108
  106. package/dist/proto/rpc_pb.d.ts.map +1 -1
  107. package/dist/proto/rpc_pb.js +291 -25
  108. package/dist/proto/rpc_pb.js.map +1 -1
  109. package/dist/proto/stats_pb.cjs +1253 -139
  110. package/dist/proto/stats_pb.cjs.map +1 -1
  111. package/dist/proto/stats_pb.d.cts +803 -692
  112. package/dist/proto/stats_pb.d.ts +803 -692
  113. package/dist/proto/stats_pb.d.ts.map +1 -1
  114. package/dist/proto/stats_pb.js +1216 -93
  115. package/dist/proto/stats_pb.js.map +1 -1
  116. package/dist/proto/track_pb.cjs +462 -64
  117. package/dist/proto/track_pb.cjs.map +1 -1
  118. package/dist/proto/track_pb.d.cts +250 -218
  119. package/dist/proto/track_pb.d.ts +250 -218
  120. package/dist/proto/track_pb.d.ts.map +1 -1
  121. package/dist/proto/track_pb.js +447 -45
  122. package/dist/proto/track_pb.js.map +1 -1
  123. package/dist/proto/track_publication_pb.cjs +130 -0
  124. package/dist/proto/track_publication_pb.cjs.map +1 -0
  125. package/dist/proto/track_publication_pb.d.cts +80 -0
  126. package/dist/proto/track_publication_pb.d.ts +80 -0
  127. package/dist/proto/track_publication_pb.d.ts.map +1 -0
  128. package/dist/proto/track_publication_pb.js +103 -0
  129. package/dist/proto/track_publication_pb.js.map +1 -0
  130. package/dist/proto/video_frame_pb.cjs +648 -88
  131. package/dist/proto/video_frame_pb.cjs.map +1 -1
  132. package/dist/proto/video_frame_pb.d.cts +371 -328
  133. package/dist/proto/video_frame_pb.d.ts +371 -328
  134. package/dist/proto/video_frame_pb.d.ts.map +1 -1
  135. package/dist/proto/video_frame_pb.js +626 -60
  136. package/dist/proto/video_frame_pb.js.map +1 -1
  137. package/dist/room.cjs +85 -125
  138. package/dist/room.cjs.map +1 -1
  139. package/dist/room.d.cts +6 -17
  140. package/dist/room.d.ts +6 -17
  141. package/dist/room.d.ts.map +1 -1
  142. package/dist/room.js +85 -123
  143. package/dist/room.js.map +1 -1
  144. package/dist/rpc.cjs.map +1 -1
  145. package/dist/rpc.d.cts +0 -1
  146. package/dist/rpc.d.ts +0 -1
  147. package/dist/rpc.js.map +1 -1
  148. package/dist/track.cjs +12 -8
  149. package/dist/track.cjs.map +1 -1
  150. package/dist/track.d.cts +8 -9
  151. package/dist/track.d.ts +8 -9
  152. package/dist/track.d.ts.map +1 -1
  153. package/dist/track.js +13 -9
  154. package/dist/track.js.map +1 -1
  155. package/dist/track_publication.cjs +21 -12
  156. package/dist/track_publication.cjs.map +1 -1
  157. package/dist/track_publication.d.cts +12 -13
  158. package/dist/track_publication.d.ts +12 -13
  159. package/dist/track_publication.d.ts.map +1 -1
  160. package/dist/track_publication.js +22 -13
  161. package/dist/track_publication.js.map +1 -1
  162. package/dist/version.cjs +1 -1
  163. package/dist/version.cjs.map +1 -1
  164. package/dist/version.d.cts +1 -1
  165. package/dist/version.d.ts +1 -1
  166. package/dist/version.js +1 -1
  167. package/dist/version.js.map +1 -1
  168. package/dist/video_frame.cjs +26 -45
  169. package/dist/video_frame.cjs.map +1 -1
  170. package/dist/video_frame.d.cts +2 -3
  171. package/dist/video_frame.d.ts +2 -3
  172. package/dist/video_frame.d.ts.map +1 -1
  173. package/dist/video_frame.js +29 -48
  174. package/dist/video_frame.js.map +1 -1
  175. package/dist/video_source.cjs +7 -4
  176. package/dist/video_source.cjs.map +1 -1
  177. package/dist/video_source.d.cts +4 -4
  178. package/dist/video_source.d.ts +4 -4
  179. package/dist/video_source.d.ts.map +1 -1
  180. package/dist/video_source.js +9 -6
  181. package/dist/video_source.js.map +1 -1
  182. package/dist/video_stream.cjs +16 -5
  183. package/dist/video_stream.cjs.map +1 -1
  184. package/dist/video_stream.d.cts +3 -4
  185. package/dist/video_stream.d.ts +3 -4
  186. package/dist/video_stream.d.ts.map +1 -1
  187. package/dist/video_stream.js +17 -6
  188. package/dist/video_stream.js.map +1 -1
  189. package/package.json +9 -9
  190. package/src/audio_frame.ts +10 -10
  191. package/src/audio_resampler.ts +15 -13
  192. package/src/audio_source.ts +11 -8
  193. package/src/audio_stream.ts +3 -4
  194. package/src/e2ee.ts +41 -42
  195. package/src/ffi_client.ts +8 -16
  196. package/src/index.ts +5 -68
  197. package/src/napi/native.d.ts +5 -5
  198. package/src/participant.ts +102 -73
  199. package/src/proto/audio_frame_pb.ts +1220 -496
  200. package/src/proto/e2ee_pb.ts +858 -337
  201. package/src/proto/ffi_pb.ts +442 -135
  202. package/src/proto/handle_pb.ts +33 -19
  203. package/src/proto/participant_pb.ts +225 -60
  204. package/src/proto/room_pb.ts +3149 -1013
  205. package/src/proto/rpc_pb.ts +358 -129
  206. package/src/proto/stats_pb.ts +1891 -877
  207. package/src/proto/track_pb.ts +587 -253
  208. package/src/proto/track_publication_pb.ts +180 -0
  209. package/src/proto/video_frame_pb.ts +861 -394
  210. package/src/room.ts +137 -189
  211. package/src/rpc.ts +1 -1
  212. package/src/track.ts +16 -17
  213. package/src/track_publication.ts +25 -26
  214. package/src/version.ts +1 -1
  215. package/src/video_frame.ts +48 -72
  216. package/src/video_source.ts +11 -8
  217. package/src/video_stream.ts +18 -8
@@ -12,23 +12,193 @@
12
12
  // See the License for the specific language governing permissions and
13
13
  // limitations under the License.
14
14
 
15
- // @generated by protoc-gen-es v2.2.0 with parameter "target=ts,import_extension=js"
15
+ // @generated by protoc-gen-es v1.10.0 with parameter "target=ts,import_extension=.js"
16
16
  // @generated from file video_frame.proto (package livekit.proto, syntax proto2)
17
17
  /* eslint-disable */
18
+ // @ts-nocheck
18
19
 
19
- import type { GenEnum, GenFile, GenMessage } from "@bufbuild/protobuf/codegenv1";
20
- import { enumDesc, fileDesc, messageDesc } from "@bufbuild/protobuf/codegenv1";
21
- import type { FfiOwnedHandle } from "./handle_pb.js";
22
- import { file_handle } from "./handle_pb.js";
23
- import type { TrackSource } from "./track_pb.js";
24
- import { file_track } from "./track_pb.js";
25
- import type { Message } from "@bufbuild/protobuf";
20
+ import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf";
21
+ import { Message, proto2 } from "@bufbuild/protobuf";
22
+ import { TrackSource } from "./track_pb.js";
23
+ import { FfiOwnedHandle } from "./handle_pb.js";
26
24
 
27
25
  /**
28
- * Describes the file video_frame.proto.
26
+ * @generated from enum livekit.proto.VideoCodec
29
27
  */
30
- export const file_video_frame: GenFile = /*@__PURE__*/
31
- fileDesc("ChF2aWRlb19mcmFtZS5wcm90bxINbGl2ZWtpdC5wcm90byKlAQoVTmV3VmlkZW9TdHJlYW1SZXF1ZXN0EhQKDHRyYWNrX2hhbmRsZRgBIAIoBBIsCgR0eXBlGAIgAigOMh4ubGl2ZWtpdC5wcm90by5WaWRlb1N0cmVhbVR5cGUSLgoGZm9ybWF0GAMgASgOMh4ubGl2ZWtpdC5wcm90by5WaWRlb0J1ZmZlclR5cGUSGAoQbm9ybWFsaXplX3N0cmlkZRgEIAEoCCJJChZOZXdWaWRlb1N0cmVhbVJlc3BvbnNlEi8KBnN0cmVhbRgBIAIoCzIfLmxpdmVraXQucHJvdG8uT3duZWRWaWRlb1N0cmVhbSLpAQohVmlkZW9TdHJlYW1Gcm9tUGFydGljaXBhbnRSZXF1ZXN0EhoKEnBhcnRpY2lwYW50X2hhbmRsZRgBIAIoBBIsCgR0eXBlGAIgAigOMh4ubGl2ZWtpdC5wcm90by5WaWRlb1N0cmVhbVR5cGUSMAoMdHJhY2tfc291cmNlGAMgAigOMhoubGl2ZWtpdC5wcm90by5UcmFja1NvdXJjZRIuCgZmb3JtYXQYBCABKA4yHi5saXZla2l0LnByb3RvLlZpZGVvQnVmZmVyVHlwZRIYChBub3JtYWxpemVfc3RyaWRlGAUgASgIIlUKIlZpZGVvU3RyZWFtRnJvbVBhcnRpY2lwYW50UmVzcG9uc2USLwoGc3RyZWFtGAEgAigLMh8ubGl2ZWtpdC5wcm90by5Pd25lZFZpZGVvU3RyZWFtIn8KFU5ld1ZpZGVvU291cmNlUmVxdWVzdBIsCgR0eXBlGAEgAigOMh4ubGl2ZWtpdC5wcm90by5WaWRlb1NvdXJjZVR5cGUSOAoKcmVzb2x1dGlvbhgCIAIoCzIkLmxpdmVraXQucHJvdG8uVmlkZW9Tb3VyY2VSZXNvbHV0aW9uIkkKFk5ld1ZpZGVvU291cmNlUmVzcG9uc2USLwoGc291cmNlGAEgAigLMh8ubGl2ZWtpdC5wcm90by5Pd25lZFZpZGVvU291cmNlIqcBChhDYXB0dXJlVmlkZW9GcmFtZVJlcXVlc3QSFQoNc291cmNlX2hhbmRsZRgBIAIoBBIuCgZidWZmZXIYAiACKAsyHi5saXZla2l0LnByb3RvLlZpZGVvQnVmZmVySW5mbxIUCgx0aW1lc3RhbXBfdXMYAyACKAMSLgoIcm90YXRpb24YBCACKA4yHC5saXZla2l0LnByb3RvLlZpZGVvUm90YXRpb24iGwoZQ2FwdHVyZVZpZGVvRnJhbWVSZXNwb25zZSKHAQoTVmlkZW9Db252ZXJ0UmVxdWVzdBIOCgZmbGlwX3kYASABKAgSLgoGYnVmZmVyGAIgAigLMh4ubGl2ZWtpdC5wcm90by5WaWRlb0J1ZmZlckluZm8SMAoIZHN0X3R5cGUYAyACKA4yHi5saXZla2l0LnByb3RvLlZpZGVvQnVmZmVyVHlwZSJlChRWaWRlb0NvbnZlcnRSZXNwb25zZRIPCgVlcnJvchgBIAEoCUgAEjEKBmJ1ZmZlchgCIAEoCzIfLmxpdmVraXQucHJvdG8uT3duZWRWaWRlb0J1ZmZlckgAQgkKB21lc3NhZ2UiRAoPVmlkZW9SZXNvbHV0aW9uEg0KBXdpZHRoGAEgAigNEg4KBmhlaWdodBgCIAIoDRISCgpmcmFtZV9yYXRlGAMgAigBIoMCCg9WaWRlb0J1ZmZlckluZm8SLAoEdHlwZRgBIAIoDjIeLmxpdmVraXQucHJvdG8uVmlkZW9CdWZmZXJUeXBlEg0KBXdpZHRoGAIgAigNEg4KBmhlaWdodBgDIAIoDRIQCghkYXRhX3B0chgEIAIoBBIOCgZzdHJpZGUYBiACKA0SQAoKY29tcG9uZW50cxgHIAMoCzIsLmxpdmVraXQucHJvdG8uVmlkZW9CdWZmZXJJbmZvLkNvbXBvbmVudEluZm8aPwoNQ29tcG9uZW50SW5mbxIQCghkYXRhX3B0chgBIAIoBBIOCgZzdHJpZGUYAiACKA0SDAoEc2l6ZRgDIAIoDSJvChBPd25lZFZpZGVvQnVmZmVyEi0KBmhhbmRsZRgBIAIoCzIdLmxpdmVraXQucHJvdG8uRmZpT3duZWRIYW5kbGUSLAoEaW5mbxgCIAIoCzIeLmxpdmVraXQucHJvdG8uVmlkZW9CdWZmZXJJbmZvIj8KD1ZpZGVvU3RyZWFtSW5mbxIsCgR0eXBlGAEgAigOMh4ubGl2ZWtpdC5wcm90by5WaWRlb1N0cmVhbVR5cGUibwoQT3duZWRWaWRlb1N0cmVhbRItCgZoYW5kbGUYASACKAsyHS5saXZla2l0LnByb3RvLkZmaU93bmVkSGFuZGxlEiwKBGluZm8YAiACKAsyHi5saXZla2l0LnByb3RvLlZpZGVvU3RyZWFtSW5mbyKfAQoQVmlkZW9TdHJlYW1FdmVudBIVCg1zdHJlYW1faGFuZGxlGAEgAigEEjsKDmZyYW1lX3JlY2VpdmVkGAIgASgLMiEubGl2ZWtpdC5wcm90by5WaWRlb0ZyYW1lUmVjZWl2ZWRIABIsCgNlb3MYAyABKAsyHS5saXZla2l0LnByb3RvLlZpZGVvU3RyZWFtRU9TSABCCQoHbWVzc2FnZSKLAQoSVmlkZW9GcmFtZVJlY2VpdmVkEi8KBmJ1ZmZlchgBIAIoCzIfLmxpdmVraXQucHJvdG8uT3duZWRWaWRlb0J1ZmZlchIUCgx0aW1lc3RhbXBfdXMYAiACKAMSLgoIcm90YXRpb24YAyACKA4yHC5saXZla2l0LnByb3RvLlZpZGVvUm90YXRpb24iEAoOVmlkZW9TdHJlYW1FT1MiNgoVVmlkZW9Tb3VyY2VSZXNvbHV0aW9uEg0KBXdpZHRoGAEgAigNEg4KBmhlaWdodBgCIAIoDSI/Cg9WaWRlb1NvdXJjZUluZm8SLAoEdHlwZRgBIAIoDjIeLmxpdmVraXQucHJvdG8uVmlkZW9Tb3VyY2VUeXBlIm8KEE93bmVkVmlkZW9Tb3VyY2USLQoGaGFuZGxlGAEgAigLMh0ubGl2ZWtpdC5wcm90by5GZmlPd25lZEhhbmRsZRIsCgRpbmZvGAIgAigLMh4ubGl2ZWtpdC5wcm90by5WaWRlb1NvdXJjZUluZm8qMQoKVmlkZW9Db2RlYxIHCgNWUDgQABIICgRIMjY0EAESBwoDQVYxEAISBwoDVlA5EAMqbAoNVmlkZW9Sb3RhdGlvbhIUChBWSURFT19ST1RBVElPTl8wEAASFQoRVklERU9fUk9UQVRJT05fOTAQARIWChJWSURFT19ST1RBVElPTl8xODAQAhIWChJWSURFT19ST1RBVElPTl8yNzAQAyqBAQoPVmlkZW9CdWZmZXJUeXBlEggKBFJHQkEQABIICgRBQkdSEAESCAoEQVJHQhACEggKBEJHUkEQAxIJCgVSR0IyNBAEEggKBEk0MjAQBRIJCgVJNDIwQRAGEggKBEk0MjIQBxIICgRJNDQ0EAgSCAoESTAxMBAJEggKBE5WMTIQCipZCg9WaWRlb1N0cmVhbVR5cGUSFwoTVklERU9fU1RSRUFNX05BVElWRRAAEhYKElZJREVPX1NUUkVBTV9XRUJHTBABEhUKEVZJREVPX1NUUkVBTV9IVE1MEAIqKgoPVmlkZW9Tb3VyY2VUeXBlEhcKE1ZJREVPX1NPVVJDRV9OQVRJVkUQAEIQqgINTGl2ZUtpdC5Qcm90bw", [file_handle, file_track]);
28
+ export enum VideoCodec {
29
+ /**
30
+ * @generated from enum value: VP8 = 0;
31
+ */
32
+ VP8 = 0,
33
+
34
+ /**
35
+ * @generated from enum value: H264 = 1;
36
+ */
37
+ H264 = 1,
38
+
39
+ /**
40
+ * @generated from enum value: AV1 = 2;
41
+ */
42
+ AV1 = 2,
43
+
44
+ /**
45
+ * @generated from enum value: VP9 = 3;
46
+ */
47
+ VP9 = 3,
48
+ }
49
+ // Retrieve enum metadata with: proto2.getEnumType(VideoCodec)
50
+ proto2.util.setEnumType(VideoCodec, "livekit.proto.VideoCodec", [
51
+ { no: 0, name: "VP8" },
52
+ { no: 1, name: "H264" },
53
+ { no: 2, name: "AV1" },
54
+ { no: 3, name: "VP9" },
55
+ ]);
56
+
57
+ /**
58
+ * @generated from enum livekit.proto.VideoRotation
59
+ */
60
+ export enum VideoRotation {
61
+ /**
62
+ * @generated from enum value: VIDEO_ROTATION_0 = 0;
63
+ */
64
+ VIDEO_ROTATION_0 = 0,
65
+
66
+ /**
67
+ * @generated from enum value: VIDEO_ROTATION_90 = 1;
68
+ */
69
+ VIDEO_ROTATION_90 = 1,
70
+
71
+ /**
72
+ * @generated from enum value: VIDEO_ROTATION_180 = 2;
73
+ */
74
+ VIDEO_ROTATION_180 = 2,
75
+
76
+ /**
77
+ * @generated from enum value: VIDEO_ROTATION_270 = 3;
78
+ */
79
+ VIDEO_ROTATION_270 = 3,
80
+ }
81
+ // Retrieve enum metadata with: proto2.getEnumType(VideoRotation)
82
+ proto2.util.setEnumType(VideoRotation, "livekit.proto.VideoRotation", [
83
+ { no: 0, name: "VIDEO_ROTATION_0" },
84
+ { no: 1, name: "VIDEO_ROTATION_90" },
85
+ { no: 2, name: "VIDEO_ROTATION_180" },
86
+ { no: 3, name: "VIDEO_ROTATION_270" },
87
+ ]);
88
+
89
+ /**
90
+ * @generated from enum livekit.proto.VideoBufferType
91
+ */
92
+ export enum VideoBufferType {
93
+ /**
94
+ * @generated from enum value: RGBA = 0;
95
+ */
96
+ RGBA = 0,
97
+
98
+ /**
99
+ * @generated from enum value: ABGR = 1;
100
+ */
101
+ ABGR = 1,
102
+
103
+ /**
104
+ * @generated from enum value: ARGB = 2;
105
+ */
106
+ ARGB = 2,
107
+
108
+ /**
109
+ * @generated from enum value: BGRA = 3;
110
+ */
111
+ BGRA = 3,
112
+
113
+ /**
114
+ * @generated from enum value: RGB24 = 4;
115
+ */
116
+ RGB24 = 4,
117
+
118
+ /**
119
+ * @generated from enum value: I420 = 5;
120
+ */
121
+ I420 = 5,
122
+
123
+ /**
124
+ * @generated from enum value: I420A = 6;
125
+ */
126
+ I420A = 6,
127
+
128
+ /**
129
+ * @generated from enum value: I422 = 7;
130
+ */
131
+ I422 = 7,
132
+
133
+ /**
134
+ * @generated from enum value: I444 = 8;
135
+ */
136
+ I444 = 8,
137
+
138
+ /**
139
+ * @generated from enum value: I010 = 9;
140
+ */
141
+ I010 = 9,
142
+
143
+ /**
144
+ * @generated from enum value: NV12 = 10;
145
+ */
146
+ NV12 = 10,
147
+ }
148
+ // Retrieve enum metadata with: proto2.getEnumType(VideoBufferType)
149
+ proto2.util.setEnumType(VideoBufferType, "livekit.proto.VideoBufferType", [
150
+ { no: 0, name: "RGBA" },
151
+ { no: 1, name: "ABGR" },
152
+ { no: 2, name: "ARGB" },
153
+ { no: 3, name: "BGRA" },
154
+ { no: 4, name: "RGB24" },
155
+ { no: 5, name: "I420" },
156
+ { no: 6, name: "I420A" },
157
+ { no: 7, name: "I422" },
158
+ { no: 8, name: "I444" },
159
+ { no: 9, name: "I010" },
160
+ { no: 10, name: "NV12" },
161
+ ]);
162
+
163
+ /**
164
+ * @generated from enum livekit.proto.VideoStreamType
165
+ */
166
+ export enum VideoStreamType {
167
+ /**
168
+ * @generated from enum value: VIDEO_STREAM_NATIVE = 0;
169
+ */
170
+ VIDEO_STREAM_NATIVE = 0,
171
+
172
+ /**
173
+ * @generated from enum value: VIDEO_STREAM_WEBGL = 1;
174
+ */
175
+ VIDEO_STREAM_WEBGL = 1,
176
+
177
+ /**
178
+ * @generated from enum value: VIDEO_STREAM_HTML = 2;
179
+ */
180
+ VIDEO_STREAM_HTML = 2,
181
+ }
182
+ // Retrieve enum metadata with: proto2.getEnumType(VideoStreamType)
183
+ proto2.util.setEnumType(VideoStreamType, "livekit.proto.VideoStreamType", [
184
+ { no: 0, name: "VIDEO_STREAM_NATIVE" },
185
+ { no: 1, name: "VIDEO_STREAM_WEBGL" },
186
+ { no: 2, name: "VIDEO_STREAM_HTML" },
187
+ ]);
188
+
189
+ /**
190
+ * @generated from enum livekit.proto.VideoSourceType
191
+ */
192
+ export enum VideoSourceType {
193
+ /**
194
+ * @generated from enum value: VIDEO_SOURCE_NATIVE = 0;
195
+ */
196
+ VIDEO_SOURCE_NATIVE = 0,
197
+ }
198
+ // Retrieve enum metadata with: proto2.getEnumType(VideoSourceType)
199
+ proto2.util.setEnumType(VideoSourceType, "livekit.proto.VideoSourceType", [
200
+ { no: 0, name: "VIDEO_SOURCE_NATIVE" },
201
+ ]);
32
202
 
33
203
  /**
34
204
  * Create a new VideoStream
@@ -36,111 +206,198 @@ export const file_video_frame: GenFile = /*@__PURE__*/
36
206
  *
37
207
  * @generated from message livekit.proto.NewVideoStreamRequest
38
208
  */
39
- export type NewVideoStreamRequest = Message<"livekit.proto.NewVideoStreamRequest"> & {
209
+ export class NewVideoStreamRequest extends Message<NewVideoStreamRequest> {
40
210
  /**
41
211
  * @generated from field: required uint64 track_handle = 1;
42
212
  */
43
- trackHandle: bigint;
213
+ trackHandle?: bigint;
44
214
 
45
215
  /**
46
216
  * @generated from field: required livekit.proto.VideoStreamType type = 2;
47
217
  */
48
- type: VideoStreamType;
218
+ type?: VideoStreamType;
49
219
 
50
220
  /**
51
221
  * Get the frame on a specific format
52
222
  *
53
223
  * @generated from field: optional livekit.proto.VideoBufferType format = 3;
54
224
  */
55
- format: VideoBufferType;
225
+ format?: VideoBufferType;
56
226
 
57
227
  /**
58
228
  * if true, stride will be set to width/chroma_width
59
229
  *
60
230
  * @generated from field: optional bool normalize_stride = 4;
61
231
  */
62
- normalizeStride: boolean;
63
- };
64
-
65
- /**
66
- * Describes the message livekit.proto.NewVideoStreamRequest.
67
- * Use `create(NewVideoStreamRequestSchema)` to create a new message.
68
- */
69
- export const NewVideoStreamRequestSchema: GenMessage<NewVideoStreamRequest> = /*@__PURE__*/
70
- messageDesc(file_video_frame, 0);
232
+ normalizeStride?: boolean;
233
+
234
+ constructor(data?: PartialMessage<NewVideoStreamRequest>) {
235
+ super();
236
+ proto2.util.initPartial(data, this);
237
+ }
238
+
239
+ static readonly runtime: typeof proto2 = proto2;
240
+ static readonly typeName = "livekit.proto.NewVideoStreamRequest";
241
+ static readonly fields: FieldList = proto2.util.newFieldList(() => [
242
+ { no: 1, name: "track_handle", kind: "scalar", T: 4 /* ScalarType.UINT64 */, req: true },
243
+ { no: 2, name: "type", kind: "enum", T: proto2.getEnumType(VideoStreamType), req: true },
244
+ { no: 3, name: "format", kind: "enum", T: proto2.getEnumType(VideoBufferType), opt: true },
245
+ { no: 4, name: "normalize_stride", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true },
246
+ ]);
247
+
248
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): NewVideoStreamRequest {
249
+ return new NewVideoStreamRequest().fromBinary(bytes, options);
250
+ }
251
+
252
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): NewVideoStreamRequest {
253
+ return new NewVideoStreamRequest().fromJson(jsonValue, options);
254
+ }
255
+
256
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): NewVideoStreamRequest {
257
+ return new NewVideoStreamRequest().fromJsonString(jsonString, options);
258
+ }
259
+
260
+ static equals(a: NewVideoStreamRequest | PlainMessage<NewVideoStreamRequest> | undefined, b: NewVideoStreamRequest | PlainMessage<NewVideoStreamRequest> | undefined): boolean {
261
+ return proto2.util.equals(NewVideoStreamRequest, a, b);
262
+ }
263
+ }
71
264
 
72
265
  /**
73
266
  * @generated from message livekit.proto.NewVideoStreamResponse
74
267
  */
75
- export type NewVideoStreamResponse = Message<"livekit.proto.NewVideoStreamResponse"> & {
268
+ export class NewVideoStreamResponse extends Message<NewVideoStreamResponse> {
76
269
  /**
77
270
  * @generated from field: required livekit.proto.OwnedVideoStream stream = 1;
78
271
  */
79
272
  stream?: OwnedVideoStream;
80
- };
81
273
 
82
- /**
83
- * Describes the message livekit.proto.NewVideoStreamResponse.
84
- * Use `create(NewVideoStreamResponseSchema)` to create a new message.
85
- */
86
- export const NewVideoStreamResponseSchema: GenMessage<NewVideoStreamResponse> = /*@__PURE__*/
87
- messageDesc(file_video_frame, 1);
274
+ constructor(data?: PartialMessage<NewVideoStreamResponse>) {
275
+ super();
276
+ proto2.util.initPartial(data, this);
277
+ }
278
+
279
+ static readonly runtime: typeof proto2 = proto2;
280
+ static readonly typeName = "livekit.proto.NewVideoStreamResponse";
281
+ static readonly fields: FieldList = proto2.util.newFieldList(() => [
282
+ { no: 1, name: "stream", kind: "message", T: OwnedVideoStream, req: true },
283
+ ]);
284
+
285
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): NewVideoStreamResponse {
286
+ return new NewVideoStreamResponse().fromBinary(bytes, options);
287
+ }
288
+
289
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): NewVideoStreamResponse {
290
+ return new NewVideoStreamResponse().fromJson(jsonValue, options);
291
+ }
292
+
293
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): NewVideoStreamResponse {
294
+ return new NewVideoStreamResponse().fromJsonString(jsonString, options);
295
+ }
296
+
297
+ static equals(a: NewVideoStreamResponse | PlainMessage<NewVideoStreamResponse> | undefined, b: NewVideoStreamResponse | PlainMessage<NewVideoStreamResponse> | undefined): boolean {
298
+ return proto2.util.equals(NewVideoStreamResponse, a, b);
299
+ }
300
+ }
88
301
 
89
302
  /**
90
303
  * Request a video stream from a participant
91
304
  *
92
305
  * @generated from message livekit.proto.VideoStreamFromParticipantRequest
93
306
  */
94
- export type VideoStreamFromParticipantRequest = Message<"livekit.proto.VideoStreamFromParticipantRequest"> & {
307
+ export class VideoStreamFromParticipantRequest extends Message<VideoStreamFromParticipantRequest> {
95
308
  /**
96
309
  * @generated from field: required uint64 participant_handle = 1;
97
310
  */
98
- participantHandle: bigint;
311
+ participantHandle?: bigint;
99
312
 
100
313
  /**
101
314
  * @generated from field: required livekit.proto.VideoStreamType type = 2;
102
315
  */
103
- type: VideoStreamType;
316
+ type?: VideoStreamType;
104
317
 
105
318
  /**
106
319
  * @generated from field: required livekit.proto.TrackSource track_source = 3;
107
320
  */
108
- trackSource: TrackSource;
321
+ trackSource?: TrackSource;
109
322
 
110
323
  /**
111
324
  * @generated from field: optional livekit.proto.VideoBufferType format = 4;
112
325
  */
113
- format: VideoBufferType;
326
+ format?: VideoBufferType;
114
327
 
115
328
  /**
116
329
  * @generated from field: optional bool normalize_stride = 5;
117
330
  */
118
- normalizeStride: boolean;
119
- };
120
-
121
- /**
122
- * Describes the message livekit.proto.VideoStreamFromParticipantRequest.
123
- * Use `create(VideoStreamFromParticipantRequestSchema)` to create a new message.
124
- */
125
- export const VideoStreamFromParticipantRequestSchema: GenMessage<VideoStreamFromParticipantRequest> = /*@__PURE__*/
126
- messageDesc(file_video_frame, 2);
331
+ normalizeStride?: boolean;
332
+
333
+ constructor(data?: PartialMessage<VideoStreamFromParticipantRequest>) {
334
+ super();
335
+ proto2.util.initPartial(data, this);
336
+ }
337
+
338
+ static readonly runtime: typeof proto2 = proto2;
339
+ static readonly typeName = "livekit.proto.VideoStreamFromParticipantRequest";
340
+ static readonly fields: FieldList = proto2.util.newFieldList(() => [
341
+ { no: 1, name: "participant_handle", kind: "scalar", T: 4 /* ScalarType.UINT64 */, req: true },
342
+ { no: 2, name: "type", kind: "enum", T: proto2.getEnumType(VideoStreamType), req: true },
343
+ { no: 3, name: "track_source", kind: "enum", T: proto2.getEnumType(TrackSource), req: true },
344
+ { no: 4, name: "format", kind: "enum", T: proto2.getEnumType(VideoBufferType), opt: true },
345
+ { no: 5, name: "normalize_stride", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true },
346
+ ]);
347
+
348
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): VideoStreamFromParticipantRequest {
349
+ return new VideoStreamFromParticipantRequest().fromBinary(bytes, options);
350
+ }
351
+
352
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): VideoStreamFromParticipantRequest {
353
+ return new VideoStreamFromParticipantRequest().fromJson(jsonValue, options);
354
+ }
355
+
356
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): VideoStreamFromParticipantRequest {
357
+ return new VideoStreamFromParticipantRequest().fromJsonString(jsonString, options);
358
+ }
359
+
360
+ static equals(a: VideoStreamFromParticipantRequest | PlainMessage<VideoStreamFromParticipantRequest> | undefined, b: VideoStreamFromParticipantRequest | PlainMessage<VideoStreamFromParticipantRequest> | undefined): boolean {
361
+ return proto2.util.equals(VideoStreamFromParticipantRequest, a, b);
362
+ }
363
+ }
127
364
 
128
365
  /**
129
366
  * @generated from message livekit.proto.VideoStreamFromParticipantResponse
130
367
  */
131
- export type VideoStreamFromParticipantResponse = Message<"livekit.proto.VideoStreamFromParticipantResponse"> & {
368
+ export class VideoStreamFromParticipantResponse extends Message<VideoStreamFromParticipantResponse> {
132
369
  /**
133
370
  * @generated from field: required livekit.proto.OwnedVideoStream stream = 1;
134
371
  */
135
372
  stream?: OwnedVideoStream;
136
- };
137
373
 
138
- /**
139
- * Describes the message livekit.proto.VideoStreamFromParticipantResponse.
140
- * Use `create(VideoStreamFromParticipantResponseSchema)` to create a new message.
141
- */
142
- export const VideoStreamFromParticipantResponseSchema: GenMessage<VideoStreamFromParticipantResponse> = /*@__PURE__*/
143
- messageDesc(file_video_frame, 3);
374
+ constructor(data?: PartialMessage<VideoStreamFromParticipantResponse>) {
375
+ super();
376
+ proto2.util.initPartial(data, this);
377
+ }
378
+
379
+ static readonly runtime: typeof proto2 = proto2;
380
+ static readonly typeName = "livekit.proto.VideoStreamFromParticipantResponse";
381
+ static readonly fields: FieldList = proto2.util.newFieldList(() => [
382
+ { no: 1, name: "stream", kind: "message", T: OwnedVideoStream, req: true },
383
+ ]);
384
+
385
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): VideoStreamFromParticipantResponse {
386
+ return new VideoStreamFromParticipantResponse().fromBinary(bytes, options);
387
+ }
388
+
389
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): VideoStreamFromParticipantResponse {
390
+ return new VideoStreamFromParticipantResponse().fromJson(jsonValue, options);
391
+ }
392
+
393
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): VideoStreamFromParticipantResponse {
394
+ return new VideoStreamFromParticipantResponse().fromJsonString(jsonString, options);
395
+ }
396
+
397
+ static equals(a: VideoStreamFromParticipantResponse | PlainMessage<VideoStreamFromParticipantResponse> | undefined, b: VideoStreamFromParticipantResponse | PlainMessage<VideoStreamFromParticipantResponse> | undefined): boolean {
398
+ return proto2.util.equals(VideoStreamFromParticipantResponse, a, b);
399
+ }
400
+ }
144
401
 
145
402
  /**
146
403
  * Create a new VideoSource
@@ -148,11 +405,11 @@ export const VideoStreamFromParticipantResponseSchema: GenMessage<VideoStreamFro
148
405
  *
149
406
  * @generated from message livekit.proto.NewVideoSourceRequest
150
407
  */
151
- export type NewVideoSourceRequest = Message<"livekit.proto.NewVideoSourceRequest"> & {
408
+ export class NewVideoSourceRequest extends Message<NewVideoSourceRequest> {
152
409
  /**
153
410
  * @generated from field: required livekit.proto.VideoSourceType type = 1;
154
411
  */
155
- type: VideoSourceType;
412
+ type?: VideoSourceType;
156
413
 
157
414
  /**
158
415
  * Used to determine which encodings to use + simulcast layers
@@ -161,42 +418,83 @@ export type NewVideoSourceRequest = Message<"livekit.proto.NewVideoSourceRequest
161
418
  * @generated from field: required livekit.proto.VideoSourceResolution resolution = 2;
162
419
  */
163
420
  resolution?: VideoSourceResolution;
164
- };
165
421
 
166
- /**
167
- * Describes the message livekit.proto.NewVideoSourceRequest.
168
- * Use `create(NewVideoSourceRequestSchema)` to create a new message.
169
- */
170
- export const NewVideoSourceRequestSchema: GenMessage<NewVideoSourceRequest> = /*@__PURE__*/
171
- messageDesc(file_video_frame, 4);
422
+ constructor(data?: PartialMessage<NewVideoSourceRequest>) {
423
+ super();
424
+ proto2.util.initPartial(data, this);
425
+ }
426
+
427
+ static readonly runtime: typeof proto2 = proto2;
428
+ static readonly typeName = "livekit.proto.NewVideoSourceRequest";
429
+ static readonly fields: FieldList = proto2.util.newFieldList(() => [
430
+ { no: 1, name: "type", kind: "enum", T: proto2.getEnumType(VideoSourceType), req: true },
431
+ { no: 2, name: "resolution", kind: "message", T: VideoSourceResolution, req: true },
432
+ ]);
433
+
434
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): NewVideoSourceRequest {
435
+ return new NewVideoSourceRequest().fromBinary(bytes, options);
436
+ }
437
+
438
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): NewVideoSourceRequest {
439
+ return new NewVideoSourceRequest().fromJson(jsonValue, options);
440
+ }
441
+
442
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): NewVideoSourceRequest {
443
+ return new NewVideoSourceRequest().fromJsonString(jsonString, options);
444
+ }
445
+
446
+ static equals(a: NewVideoSourceRequest | PlainMessage<NewVideoSourceRequest> | undefined, b: NewVideoSourceRequest | PlainMessage<NewVideoSourceRequest> | undefined): boolean {
447
+ return proto2.util.equals(NewVideoSourceRequest, a, b);
448
+ }
449
+ }
172
450
 
173
451
  /**
174
452
  * @generated from message livekit.proto.NewVideoSourceResponse
175
453
  */
176
- export type NewVideoSourceResponse = Message<"livekit.proto.NewVideoSourceResponse"> & {
454
+ export class NewVideoSourceResponse extends Message<NewVideoSourceResponse> {
177
455
  /**
178
456
  * @generated from field: required livekit.proto.OwnedVideoSource source = 1;
179
457
  */
180
458
  source?: OwnedVideoSource;
181
- };
182
459
 
183
- /**
184
- * Describes the message livekit.proto.NewVideoSourceResponse.
185
- * Use `create(NewVideoSourceResponseSchema)` to create a new message.
186
- */
187
- export const NewVideoSourceResponseSchema: GenMessage<NewVideoSourceResponse> = /*@__PURE__*/
188
- messageDesc(file_video_frame, 5);
460
+ constructor(data?: PartialMessage<NewVideoSourceResponse>) {
461
+ super();
462
+ proto2.util.initPartial(data, this);
463
+ }
464
+
465
+ static readonly runtime: typeof proto2 = proto2;
466
+ static readonly typeName = "livekit.proto.NewVideoSourceResponse";
467
+ static readonly fields: FieldList = proto2.util.newFieldList(() => [
468
+ { no: 1, name: "source", kind: "message", T: OwnedVideoSource, req: true },
469
+ ]);
470
+
471
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): NewVideoSourceResponse {
472
+ return new NewVideoSourceResponse().fromBinary(bytes, options);
473
+ }
474
+
475
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): NewVideoSourceResponse {
476
+ return new NewVideoSourceResponse().fromJson(jsonValue, options);
477
+ }
478
+
479
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): NewVideoSourceResponse {
480
+ return new NewVideoSourceResponse().fromJsonString(jsonString, options);
481
+ }
482
+
483
+ static equals(a: NewVideoSourceResponse | PlainMessage<NewVideoSourceResponse> | undefined, b: NewVideoSourceResponse | PlainMessage<NewVideoSourceResponse> | undefined): boolean {
484
+ return proto2.util.equals(NewVideoSourceResponse, a, b);
485
+ }
486
+ }
189
487
 
190
488
  /**
191
489
  * Push a frame to a VideoSource
192
490
  *
193
491
  * @generated from message livekit.proto.CaptureVideoFrameRequest
194
492
  */
195
- export type CaptureVideoFrameRequest = Message<"livekit.proto.CaptureVideoFrameRequest"> & {
493
+ export class CaptureVideoFrameRequest extends Message<CaptureVideoFrameRequest> {
196
494
  /**
197
495
  * @generated from field: required uint64 source_handle = 1;
198
496
  */
199
- sourceHandle: bigint;
497
+ sourceHandle?: bigint;
200
498
 
201
499
  /**
202
500
  * @generated from field: required livekit.proto.VideoBufferInfo buffer = 2;
@@ -208,42 +506,83 @@ export type CaptureVideoFrameRequest = Message<"livekit.proto.CaptureVideoFrameR
208
506
  *
209
507
  * @generated from field: required int64 timestamp_us = 3;
210
508
  */
211
- timestampUs: bigint;
509
+ timestampUs?: bigint;
212
510
 
213
511
  /**
214
512
  * @generated from field: required livekit.proto.VideoRotation rotation = 4;
215
513
  */
216
- rotation: VideoRotation;
217
- };
218
-
219
- /**
220
- * Describes the message livekit.proto.CaptureVideoFrameRequest.
221
- * Use `create(CaptureVideoFrameRequestSchema)` to create a new message.
222
- */
223
- export const CaptureVideoFrameRequestSchema: GenMessage<CaptureVideoFrameRequest> = /*@__PURE__*/
224
- messageDesc(file_video_frame, 6);
514
+ rotation?: VideoRotation;
515
+
516
+ constructor(data?: PartialMessage<CaptureVideoFrameRequest>) {
517
+ super();
518
+ proto2.util.initPartial(data, this);
519
+ }
520
+
521
+ static readonly runtime: typeof proto2 = proto2;
522
+ static readonly typeName = "livekit.proto.CaptureVideoFrameRequest";
523
+ static readonly fields: FieldList = proto2.util.newFieldList(() => [
524
+ { no: 1, name: "source_handle", kind: "scalar", T: 4 /* ScalarType.UINT64 */, req: true },
525
+ { no: 2, name: "buffer", kind: "message", T: VideoBufferInfo, req: true },
526
+ { no: 3, name: "timestamp_us", kind: "scalar", T: 3 /* ScalarType.INT64 */, req: true },
527
+ { no: 4, name: "rotation", kind: "enum", T: proto2.getEnumType(VideoRotation), req: true },
528
+ ]);
529
+
530
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): CaptureVideoFrameRequest {
531
+ return new CaptureVideoFrameRequest().fromBinary(bytes, options);
532
+ }
533
+
534
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): CaptureVideoFrameRequest {
535
+ return new CaptureVideoFrameRequest().fromJson(jsonValue, options);
536
+ }
537
+
538
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): CaptureVideoFrameRequest {
539
+ return new CaptureVideoFrameRequest().fromJsonString(jsonString, options);
540
+ }
541
+
542
+ static equals(a: CaptureVideoFrameRequest | PlainMessage<CaptureVideoFrameRequest> | undefined, b: CaptureVideoFrameRequest | PlainMessage<CaptureVideoFrameRequest> | undefined): boolean {
543
+ return proto2.util.equals(CaptureVideoFrameRequest, a, b);
544
+ }
545
+ }
225
546
 
226
547
  /**
227
548
  * @generated from message livekit.proto.CaptureVideoFrameResponse
228
549
  */
229
- export type CaptureVideoFrameResponse = Message<"livekit.proto.CaptureVideoFrameResponse"> & {
230
- };
231
-
232
- /**
233
- * Describes the message livekit.proto.CaptureVideoFrameResponse.
234
- * Use `create(CaptureVideoFrameResponseSchema)` to create a new message.
235
- */
236
- export const CaptureVideoFrameResponseSchema: GenMessage<CaptureVideoFrameResponse> = /*@__PURE__*/
237
- messageDesc(file_video_frame, 7);
550
+ export class CaptureVideoFrameResponse extends Message<CaptureVideoFrameResponse> {
551
+ constructor(data?: PartialMessage<CaptureVideoFrameResponse>) {
552
+ super();
553
+ proto2.util.initPartial(data, this);
554
+ }
555
+
556
+ static readonly runtime: typeof proto2 = proto2;
557
+ static readonly typeName = "livekit.proto.CaptureVideoFrameResponse";
558
+ static readonly fields: FieldList = proto2.util.newFieldList(() => [
559
+ ]);
560
+
561
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): CaptureVideoFrameResponse {
562
+ return new CaptureVideoFrameResponse().fromBinary(bytes, options);
563
+ }
564
+
565
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): CaptureVideoFrameResponse {
566
+ return new CaptureVideoFrameResponse().fromJson(jsonValue, options);
567
+ }
568
+
569
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): CaptureVideoFrameResponse {
570
+ return new CaptureVideoFrameResponse().fromJsonString(jsonString, options);
571
+ }
572
+
573
+ static equals(a: CaptureVideoFrameResponse | PlainMessage<CaptureVideoFrameResponse> | undefined, b: CaptureVideoFrameResponse | PlainMessage<CaptureVideoFrameResponse> | undefined): boolean {
574
+ return proto2.util.equals(CaptureVideoFrameResponse, a, b);
575
+ }
576
+ }
238
577
 
239
578
  /**
240
579
  * @generated from message livekit.proto.VideoConvertRequest
241
580
  */
242
- export type VideoConvertRequest = Message<"livekit.proto.VideoConvertRequest"> & {
581
+ export class VideoConvertRequest extends Message<VideoConvertRequest> {
243
582
  /**
244
583
  * @generated from field: optional bool flip_y = 1;
245
584
  */
246
- flipY: boolean;
585
+ flipY?: boolean;
247
586
 
248
587
  /**
249
588
  * @generated from field: required livekit.proto.VideoBufferInfo buffer = 2;
@@ -253,20 +592,42 @@ export type VideoConvertRequest = Message<"livekit.proto.VideoConvertRequest"> &
253
592
  /**
254
593
  * @generated from field: required livekit.proto.VideoBufferType dst_type = 3;
255
594
  */
256
- dstType: VideoBufferType;
257
- };
595
+ dstType?: VideoBufferType;
258
596
 
259
- /**
260
- * Describes the message livekit.proto.VideoConvertRequest.
261
- * Use `create(VideoConvertRequestSchema)` to create a new message.
262
- */
263
- export const VideoConvertRequestSchema: GenMessage<VideoConvertRequest> = /*@__PURE__*/
264
- messageDesc(file_video_frame, 8);
597
+ constructor(data?: PartialMessage<VideoConvertRequest>) {
598
+ super();
599
+ proto2.util.initPartial(data, this);
600
+ }
601
+
602
+ static readonly runtime: typeof proto2 = proto2;
603
+ static readonly typeName = "livekit.proto.VideoConvertRequest";
604
+ static readonly fields: FieldList = proto2.util.newFieldList(() => [
605
+ { no: 1, name: "flip_y", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true },
606
+ { no: 2, name: "buffer", kind: "message", T: VideoBufferInfo, req: true },
607
+ { no: 3, name: "dst_type", kind: "enum", T: proto2.getEnumType(VideoBufferType), req: true },
608
+ ]);
609
+
610
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): VideoConvertRequest {
611
+ return new VideoConvertRequest().fromBinary(bytes, options);
612
+ }
613
+
614
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): VideoConvertRequest {
615
+ return new VideoConvertRequest().fromJson(jsonValue, options);
616
+ }
617
+
618
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): VideoConvertRequest {
619
+ return new VideoConvertRequest().fromJsonString(jsonString, options);
620
+ }
621
+
622
+ static equals(a: VideoConvertRequest | PlainMessage<VideoConvertRequest> | undefined, b: VideoConvertRequest | PlainMessage<VideoConvertRequest> | undefined): boolean {
623
+ return proto2.util.equals(VideoConvertRequest, a, b);
624
+ }
625
+ }
265
626
 
266
627
  /**
267
628
  * @generated from message livekit.proto.VideoConvertResponse
268
629
  */
269
- export type VideoConvertResponse = Message<"livekit.proto.VideoConvertResponse"> & {
630
+ export class VideoConvertResponse extends Message<VideoConvertResponse> {
270
631
  /**
271
632
  * @generated from oneof livekit.proto.VideoConvertResponse.message
272
633
  */
@@ -282,118 +643,208 @@ export type VideoConvertResponse = Message<"livekit.proto.VideoConvertResponse">
282
643
  */
283
644
  value: OwnedVideoBuffer;
284
645
  case: "buffer";
285
- } | { case: undefined; value?: undefined };
286
- };
287
-
288
- /**
289
- * Describes the message livekit.proto.VideoConvertResponse.
290
- * Use `create(VideoConvertResponseSchema)` to create a new message.
291
- */
292
- export const VideoConvertResponseSchema: GenMessage<VideoConvertResponse> = /*@__PURE__*/
293
- messageDesc(file_video_frame, 9);
646
+ } | { case: undefined; value?: undefined } = { case: undefined };
647
+
648
+ constructor(data?: PartialMessage<VideoConvertResponse>) {
649
+ super();
650
+ proto2.util.initPartial(data, this);
651
+ }
652
+
653
+ static readonly runtime: typeof proto2 = proto2;
654
+ static readonly typeName = "livekit.proto.VideoConvertResponse";
655
+ static readonly fields: FieldList = proto2.util.newFieldList(() => [
656
+ { no: 1, name: "error", kind: "scalar", T: 9 /* ScalarType.STRING */, oneof: "message" },
657
+ { no: 2, name: "buffer", kind: "message", T: OwnedVideoBuffer, oneof: "message" },
658
+ ]);
659
+
660
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): VideoConvertResponse {
661
+ return new VideoConvertResponse().fromBinary(bytes, options);
662
+ }
663
+
664
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): VideoConvertResponse {
665
+ return new VideoConvertResponse().fromJson(jsonValue, options);
666
+ }
667
+
668
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): VideoConvertResponse {
669
+ return new VideoConvertResponse().fromJsonString(jsonString, options);
670
+ }
671
+
672
+ static equals(a: VideoConvertResponse | PlainMessage<VideoConvertResponse> | undefined, b: VideoConvertResponse | PlainMessage<VideoConvertResponse> | undefined): boolean {
673
+ return proto2.util.equals(VideoConvertResponse, a, b);
674
+ }
675
+ }
294
676
 
295
677
  /**
296
678
  * @generated from message livekit.proto.VideoResolution
297
679
  */
298
- export type VideoResolution = Message<"livekit.proto.VideoResolution"> & {
680
+ export class VideoResolution extends Message<VideoResolution> {
299
681
  /**
300
682
  * @generated from field: required uint32 width = 1;
301
683
  */
302
- width: number;
684
+ width?: number;
303
685
 
304
686
  /**
305
687
  * @generated from field: required uint32 height = 2;
306
688
  */
307
- height: number;
689
+ height?: number;
308
690
 
309
691
  /**
310
692
  * @generated from field: required double frame_rate = 3;
311
693
  */
312
- frameRate: number;
313
- };
694
+ frameRate?: number;
314
695
 
315
- /**
316
- * Describes the message livekit.proto.VideoResolution.
317
- * Use `create(VideoResolutionSchema)` to create a new message.
318
- */
319
- export const VideoResolutionSchema: GenMessage<VideoResolution> = /*@__PURE__*/
320
- messageDesc(file_video_frame, 10);
696
+ constructor(data?: PartialMessage<VideoResolution>) {
697
+ super();
698
+ proto2.util.initPartial(data, this);
699
+ }
700
+
701
+ static readonly runtime: typeof proto2 = proto2;
702
+ static readonly typeName = "livekit.proto.VideoResolution";
703
+ static readonly fields: FieldList = proto2.util.newFieldList(() => [
704
+ { no: 1, name: "width", kind: "scalar", T: 13 /* ScalarType.UINT32 */, req: true },
705
+ { no: 2, name: "height", kind: "scalar", T: 13 /* ScalarType.UINT32 */, req: true },
706
+ { no: 3, name: "frame_rate", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, req: true },
707
+ ]);
708
+
709
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): VideoResolution {
710
+ return new VideoResolution().fromBinary(bytes, options);
711
+ }
712
+
713
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): VideoResolution {
714
+ return new VideoResolution().fromJson(jsonValue, options);
715
+ }
716
+
717
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): VideoResolution {
718
+ return new VideoResolution().fromJsonString(jsonString, options);
719
+ }
720
+
721
+ static equals(a: VideoResolution | PlainMessage<VideoResolution> | undefined, b: VideoResolution | PlainMessage<VideoResolution> | undefined): boolean {
722
+ return proto2.util.equals(VideoResolution, a, b);
723
+ }
724
+ }
321
725
 
322
726
  /**
323
727
  * @generated from message livekit.proto.VideoBufferInfo
324
728
  */
325
- export type VideoBufferInfo = Message<"livekit.proto.VideoBufferInfo"> & {
729
+ export class VideoBufferInfo extends Message<VideoBufferInfo> {
326
730
  /**
327
731
  * @generated from field: required livekit.proto.VideoBufferType type = 1;
328
732
  */
329
- type: VideoBufferType;
733
+ type?: VideoBufferType;
330
734
 
331
735
  /**
332
736
  * @generated from field: required uint32 width = 2;
333
737
  */
334
- width: number;
738
+ width?: number;
335
739
 
336
740
  /**
337
741
  * @generated from field: required uint32 height = 3;
338
742
  */
339
- height: number;
743
+ height?: number;
340
744
 
341
745
  /**
342
746
  * @generated from field: required uint64 data_ptr = 4;
343
747
  */
344
- dataPtr: bigint;
748
+ dataPtr?: bigint;
345
749
 
346
750
  /**
347
751
  * only for packed formats
348
752
  *
349
753
  * @generated from field: required uint32 stride = 6;
350
754
  */
351
- stride: number;
755
+ stride?: number;
352
756
 
353
757
  /**
354
758
  * @generated from field: repeated livekit.proto.VideoBufferInfo.ComponentInfo components = 7;
355
759
  */
356
- components: VideoBufferInfo_ComponentInfo[];
357
- };
358
-
359
- /**
360
- * Describes the message livekit.proto.VideoBufferInfo.
361
- * Use `create(VideoBufferInfoSchema)` to create a new message.
362
- */
363
- export const VideoBufferInfoSchema: GenMessage<VideoBufferInfo> = /*@__PURE__*/
364
- messageDesc(file_video_frame, 11);
760
+ components: VideoBufferInfo_ComponentInfo[] = [];
761
+
762
+ constructor(data?: PartialMessage<VideoBufferInfo>) {
763
+ super();
764
+ proto2.util.initPartial(data, this);
765
+ }
766
+
767
+ static readonly runtime: typeof proto2 = proto2;
768
+ static readonly typeName = "livekit.proto.VideoBufferInfo";
769
+ static readonly fields: FieldList = proto2.util.newFieldList(() => [
770
+ { no: 1, name: "type", kind: "enum", T: proto2.getEnumType(VideoBufferType), req: true },
771
+ { no: 2, name: "width", kind: "scalar", T: 13 /* ScalarType.UINT32 */, req: true },
772
+ { no: 3, name: "height", kind: "scalar", T: 13 /* ScalarType.UINT32 */, req: true },
773
+ { no: 4, name: "data_ptr", kind: "scalar", T: 4 /* ScalarType.UINT64 */, req: true },
774
+ { no: 6, name: "stride", kind: "scalar", T: 13 /* ScalarType.UINT32 */, req: true },
775
+ { no: 7, name: "components", kind: "message", T: VideoBufferInfo_ComponentInfo, repeated: true },
776
+ ]);
777
+
778
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): VideoBufferInfo {
779
+ return new VideoBufferInfo().fromBinary(bytes, options);
780
+ }
781
+
782
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): VideoBufferInfo {
783
+ return new VideoBufferInfo().fromJson(jsonValue, options);
784
+ }
785
+
786
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): VideoBufferInfo {
787
+ return new VideoBufferInfo().fromJsonString(jsonString, options);
788
+ }
789
+
790
+ static equals(a: VideoBufferInfo | PlainMessage<VideoBufferInfo> | undefined, b: VideoBufferInfo | PlainMessage<VideoBufferInfo> | undefined): boolean {
791
+ return proto2.util.equals(VideoBufferInfo, a, b);
792
+ }
793
+ }
365
794
 
366
795
  /**
367
796
  * @generated from message livekit.proto.VideoBufferInfo.ComponentInfo
368
797
  */
369
- export type VideoBufferInfo_ComponentInfo = Message<"livekit.proto.VideoBufferInfo.ComponentInfo"> & {
798
+ export class VideoBufferInfo_ComponentInfo extends Message<VideoBufferInfo_ComponentInfo> {
370
799
  /**
371
800
  * @generated from field: required uint64 data_ptr = 1;
372
801
  */
373
- dataPtr: bigint;
802
+ dataPtr?: bigint;
374
803
 
375
804
  /**
376
805
  * @generated from field: required uint32 stride = 2;
377
806
  */
378
- stride: number;
807
+ stride?: number;
379
808
 
380
809
  /**
381
810
  * @generated from field: required uint32 size = 3;
382
811
  */
383
- size: number;
384
- };
812
+ size?: number;
385
813
 
386
- /**
387
- * Describes the message livekit.proto.VideoBufferInfo.ComponentInfo.
388
- * Use `create(VideoBufferInfo_ComponentInfoSchema)` to create a new message.
389
- */
390
- export const VideoBufferInfo_ComponentInfoSchema: GenMessage<VideoBufferInfo_ComponentInfo> = /*@__PURE__*/
391
- messageDesc(file_video_frame, 11, 0);
814
+ constructor(data?: PartialMessage<VideoBufferInfo_ComponentInfo>) {
815
+ super();
816
+ proto2.util.initPartial(data, this);
817
+ }
818
+
819
+ static readonly runtime: typeof proto2 = proto2;
820
+ static readonly typeName = "livekit.proto.VideoBufferInfo.ComponentInfo";
821
+ static readonly fields: FieldList = proto2.util.newFieldList(() => [
822
+ { no: 1, name: "data_ptr", kind: "scalar", T: 4 /* ScalarType.UINT64 */, req: true },
823
+ { no: 2, name: "stride", kind: "scalar", T: 13 /* ScalarType.UINT32 */, req: true },
824
+ { no: 3, name: "size", kind: "scalar", T: 13 /* ScalarType.UINT32 */, req: true },
825
+ ]);
826
+
827
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): VideoBufferInfo_ComponentInfo {
828
+ return new VideoBufferInfo_ComponentInfo().fromBinary(bytes, options);
829
+ }
830
+
831
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): VideoBufferInfo_ComponentInfo {
832
+ return new VideoBufferInfo_ComponentInfo().fromJson(jsonValue, options);
833
+ }
834
+
835
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): VideoBufferInfo_ComponentInfo {
836
+ return new VideoBufferInfo_ComponentInfo().fromJsonString(jsonString, options);
837
+ }
838
+
839
+ static equals(a: VideoBufferInfo_ComponentInfo | PlainMessage<VideoBufferInfo_ComponentInfo> | undefined, b: VideoBufferInfo_ComponentInfo | PlainMessage<VideoBufferInfo_ComponentInfo> | undefined): boolean {
840
+ return proto2.util.equals(VideoBufferInfo_ComponentInfo, a, b);
841
+ }
842
+ }
392
843
 
393
844
  /**
394
845
  * @generated from message livekit.proto.OwnedVideoBuffer
395
846
  */
396
- export type OwnedVideoBuffer = Message<"livekit.proto.OwnedVideoBuffer"> & {
847
+ export class OwnedVideoBuffer extends Message<OwnedVideoBuffer> {
397
848
  /**
398
849
  * @generated from field: required livekit.proto.FfiOwnedHandle handle = 1;
399
850
  */
@@ -403,36 +854,77 @@ export type OwnedVideoBuffer = Message<"livekit.proto.OwnedVideoBuffer"> & {
403
854
  * @generated from field: required livekit.proto.VideoBufferInfo info = 2;
404
855
  */
405
856
  info?: VideoBufferInfo;
406
- };
407
857
 
408
- /**
409
- * Describes the message livekit.proto.OwnedVideoBuffer.
410
- * Use `create(OwnedVideoBufferSchema)` to create a new message.
411
- */
412
- export const OwnedVideoBufferSchema: GenMessage<OwnedVideoBuffer> = /*@__PURE__*/
413
- messageDesc(file_video_frame, 12);
858
+ constructor(data?: PartialMessage<OwnedVideoBuffer>) {
859
+ super();
860
+ proto2.util.initPartial(data, this);
861
+ }
862
+
863
+ static readonly runtime: typeof proto2 = proto2;
864
+ static readonly typeName = "livekit.proto.OwnedVideoBuffer";
865
+ static readonly fields: FieldList = proto2.util.newFieldList(() => [
866
+ { no: 1, name: "handle", kind: "message", T: FfiOwnedHandle, req: true },
867
+ { no: 2, name: "info", kind: "message", T: VideoBufferInfo, req: true },
868
+ ]);
869
+
870
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): OwnedVideoBuffer {
871
+ return new OwnedVideoBuffer().fromBinary(bytes, options);
872
+ }
873
+
874
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): OwnedVideoBuffer {
875
+ return new OwnedVideoBuffer().fromJson(jsonValue, options);
876
+ }
877
+
878
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): OwnedVideoBuffer {
879
+ return new OwnedVideoBuffer().fromJsonString(jsonString, options);
880
+ }
881
+
882
+ static equals(a: OwnedVideoBuffer | PlainMessage<OwnedVideoBuffer> | undefined, b: OwnedVideoBuffer | PlainMessage<OwnedVideoBuffer> | undefined): boolean {
883
+ return proto2.util.equals(OwnedVideoBuffer, a, b);
884
+ }
885
+ }
414
886
 
415
887
  /**
416
888
  * @generated from message livekit.proto.VideoStreamInfo
417
889
  */
418
- export type VideoStreamInfo = Message<"livekit.proto.VideoStreamInfo"> & {
890
+ export class VideoStreamInfo extends Message<VideoStreamInfo> {
419
891
  /**
420
892
  * @generated from field: required livekit.proto.VideoStreamType type = 1;
421
893
  */
422
- type: VideoStreamType;
423
- };
894
+ type?: VideoStreamType;
424
895
 
425
- /**
426
- * Describes the message livekit.proto.VideoStreamInfo.
427
- * Use `create(VideoStreamInfoSchema)` to create a new message.
428
- */
429
- export const VideoStreamInfoSchema: GenMessage<VideoStreamInfo> = /*@__PURE__*/
430
- messageDesc(file_video_frame, 13);
896
+ constructor(data?: PartialMessage<VideoStreamInfo>) {
897
+ super();
898
+ proto2.util.initPartial(data, this);
899
+ }
900
+
901
+ static readonly runtime: typeof proto2 = proto2;
902
+ static readonly typeName = "livekit.proto.VideoStreamInfo";
903
+ static readonly fields: FieldList = proto2.util.newFieldList(() => [
904
+ { no: 1, name: "type", kind: "enum", T: proto2.getEnumType(VideoStreamType), req: true },
905
+ ]);
906
+
907
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): VideoStreamInfo {
908
+ return new VideoStreamInfo().fromBinary(bytes, options);
909
+ }
910
+
911
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): VideoStreamInfo {
912
+ return new VideoStreamInfo().fromJson(jsonValue, options);
913
+ }
914
+
915
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): VideoStreamInfo {
916
+ return new VideoStreamInfo().fromJsonString(jsonString, options);
917
+ }
918
+
919
+ static equals(a: VideoStreamInfo | PlainMessage<VideoStreamInfo> | undefined, b: VideoStreamInfo | PlainMessage<VideoStreamInfo> | undefined): boolean {
920
+ return proto2.util.equals(VideoStreamInfo, a, b);
921
+ }
922
+ }
431
923
 
432
924
  /**
433
925
  * @generated from message livekit.proto.OwnedVideoStream
434
926
  */
435
- export type OwnedVideoStream = Message<"livekit.proto.OwnedVideoStream"> & {
927
+ export class OwnedVideoStream extends Message<OwnedVideoStream> {
436
928
  /**
437
929
  * @generated from field: required livekit.proto.FfiOwnedHandle handle = 1;
438
930
  */
@@ -442,23 +934,44 @@ export type OwnedVideoStream = Message<"livekit.proto.OwnedVideoStream"> & {
442
934
  * @generated from field: required livekit.proto.VideoStreamInfo info = 2;
443
935
  */
444
936
  info?: VideoStreamInfo;
445
- };
446
937
 
447
- /**
448
- * Describes the message livekit.proto.OwnedVideoStream.
449
- * Use `create(OwnedVideoStreamSchema)` to create a new message.
450
- */
451
- export const OwnedVideoStreamSchema: GenMessage<OwnedVideoStream> = /*@__PURE__*/
452
- messageDesc(file_video_frame, 14);
938
+ constructor(data?: PartialMessage<OwnedVideoStream>) {
939
+ super();
940
+ proto2.util.initPartial(data, this);
941
+ }
942
+
943
+ static readonly runtime: typeof proto2 = proto2;
944
+ static readonly typeName = "livekit.proto.OwnedVideoStream";
945
+ static readonly fields: FieldList = proto2.util.newFieldList(() => [
946
+ { no: 1, name: "handle", kind: "message", T: FfiOwnedHandle, req: true },
947
+ { no: 2, name: "info", kind: "message", T: VideoStreamInfo, req: true },
948
+ ]);
949
+
950
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): OwnedVideoStream {
951
+ return new OwnedVideoStream().fromBinary(bytes, options);
952
+ }
953
+
954
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): OwnedVideoStream {
955
+ return new OwnedVideoStream().fromJson(jsonValue, options);
956
+ }
957
+
958
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): OwnedVideoStream {
959
+ return new OwnedVideoStream().fromJsonString(jsonString, options);
960
+ }
961
+
962
+ static equals(a: OwnedVideoStream | PlainMessage<OwnedVideoStream> | undefined, b: OwnedVideoStream | PlainMessage<OwnedVideoStream> | undefined): boolean {
963
+ return proto2.util.equals(OwnedVideoStream, a, b);
964
+ }
965
+ }
453
966
 
454
967
  /**
455
968
  * @generated from message livekit.proto.VideoStreamEvent
456
969
  */
457
- export type VideoStreamEvent = Message<"livekit.proto.VideoStreamEvent"> & {
970
+ export class VideoStreamEvent extends Message<VideoStreamEvent> {
458
971
  /**
459
972
  * @generated from field: required uint64 stream_handle = 1;
460
973
  */
461
- streamHandle: bigint;
974
+ streamHandle?: bigint;
462
975
 
463
976
  /**
464
977
  * @generated from oneof livekit.proto.VideoStreamEvent.message
@@ -475,20 +988,42 @@ export type VideoStreamEvent = Message<"livekit.proto.VideoStreamEvent"> & {
475
988
  */
476
989
  value: VideoStreamEOS;
477
990
  case: "eos";
478
- } | { case: undefined; value?: undefined };
479
- };
480
-
481
- /**
482
- * Describes the message livekit.proto.VideoStreamEvent.
483
- * Use `create(VideoStreamEventSchema)` to create a new message.
484
- */
485
- export const VideoStreamEventSchema: GenMessage<VideoStreamEvent> = /*@__PURE__*/
486
- messageDesc(file_video_frame, 15);
991
+ } | { case: undefined; value?: undefined } = { case: undefined };
992
+
993
+ constructor(data?: PartialMessage<VideoStreamEvent>) {
994
+ super();
995
+ proto2.util.initPartial(data, this);
996
+ }
997
+
998
+ static readonly runtime: typeof proto2 = proto2;
999
+ static readonly typeName = "livekit.proto.VideoStreamEvent";
1000
+ static readonly fields: FieldList = proto2.util.newFieldList(() => [
1001
+ { no: 1, name: "stream_handle", kind: "scalar", T: 4 /* ScalarType.UINT64 */, req: true },
1002
+ { no: 2, name: "frame_received", kind: "message", T: VideoFrameReceived, oneof: "message" },
1003
+ { no: 3, name: "eos", kind: "message", T: VideoStreamEOS, oneof: "message" },
1004
+ ]);
1005
+
1006
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): VideoStreamEvent {
1007
+ return new VideoStreamEvent().fromBinary(bytes, options);
1008
+ }
1009
+
1010
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): VideoStreamEvent {
1011
+ return new VideoStreamEvent().fromJson(jsonValue, options);
1012
+ }
1013
+
1014
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): VideoStreamEvent {
1015
+ return new VideoStreamEvent().fromJsonString(jsonString, options);
1016
+ }
1017
+
1018
+ static equals(a: VideoStreamEvent | PlainMessage<VideoStreamEvent> | undefined, b: VideoStreamEvent | PlainMessage<VideoStreamEvent> | undefined): boolean {
1019
+ return proto2.util.equals(VideoStreamEvent, a, b);
1020
+ }
1021
+ }
487
1022
 
488
1023
  /**
489
1024
  * @generated from message livekit.proto.VideoFrameReceived
490
1025
  */
491
- export type VideoFrameReceived = Message<"livekit.proto.VideoFrameReceived"> & {
1026
+ export class VideoFrameReceived extends Message<VideoFrameReceived> {
492
1027
  /**
493
1028
  * @generated from field: required livekit.proto.OwnedVideoBuffer buffer = 1;
494
1029
  */
@@ -499,262 +1034,194 @@ export type VideoFrameReceived = Message<"livekit.proto.VideoFrameReceived"> & {
499
1034
  *
500
1035
  * @generated from field: required int64 timestamp_us = 2;
501
1036
  */
502
- timestampUs: bigint;
1037
+ timestampUs?: bigint;
503
1038
 
504
1039
  /**
505
1040
  * @generated from field: required livekit.proto.VideoRotation rotation = 3;
506
1041
  */
507
- rotation: VideoRotation;
508
- };
1042
+ rotation?: VideoRotation;
509
1043
 
510
- /**
511
- * Describes the message livekit.proto.VideoFrameReceived.
512
- * Use `create(VideoFrameReceivedSchema)` to create a new message.
513
- */
514
- export const VideoFrameReceivedSchema: GenMessage<VideoFrameReceived> = /*@__PURE__*/
515
- messageDesc(file_video_frame, 16);
1044
+ constructor(data?: PartialMessage<VideoFrameReceived>) {
1045
+ super();
1046
+ proto2.util.initPartial(data, this);
1047
+ }
516
1048
 
517
- /**
518
- * @generated from message livekit.proto.VideoStreamEOS
519
- */
520
- export type VideoStreamEOS = Message<"livekit.proto.VideoStreamEOS"> & {
521
- };
1049
+ static readonly runtime: typeof proto2 = proto2;
1050
+ static readonly typeName = "livekit.proto.VideoFrameReceived";
1051
+ static readonly fields: FieldList = proto2.util.newFieldList(() => [
1052
+ { no: 1, name: "buffer", kind: "message", T: OwnedVideoBuffer, req: true },
1053
+ { no: 2, name: "timestamp_us", kind: "scalar", T: 3 /* ScalarType.INT64 */, req: true },
1054
+ { no: 3, name: "rotation", kind: "enum", T: proto2.getEnumType(VideoRotation), req: true },
1055
+ ]);
522
1056
 
523
- /**
524
- * Describes the message livekit.proto.VideoStreamEOS.
525
- * Use `create(VideoStreamEOSSchema)` to create a new message.
526
- */
527
- export const VideoStreamEOSSchema: GenMessage<VideoStreamEOS> = /*@__PURE__*/
528
- messageDesc(file_video_frame, 17);
1057
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): VideoFrameReceived {
1058
+ return new VideoFrameReceived().fromBinary(bytes, options);
1059
+ }
529
1060
 
530
- /**
531
- * @generated from message livekit.proto.VideoSourceResolution
532
- */
533
- export type VideoSourceResolution = Message<"livekit.proto.VideoSourceResolution"> & {
534
- /**
535
- * @generated from field: required uint32 width = 1;
536
- */
537
- width: number;
538
-
539
- /**
540
- * @generated from field: required uint32 height = 2;
541
- */
542
- height: number;
543
- };
1061
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): VideoFrameReceived {
1062
+ return new VideoFrameReceived().fromJson(jsonValue, options);
1063
+ }
544
1064
 
545
- /**
546
- * Describes the message livekit.proto.VideoSourceResolution.
547
- * Use `create(VideoSourceResolutionSchema)` to create a new message.
548
- */
549
- export const VideoSourceResolutionSchema: GenMessage<VideoSourceResolution> = /*@__PURE__*/
550
- messageDesc(file_video_frame, 18);
1065
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): VideoFrameReceived {
1066
+ return new VideoFrameReceived().fromJsonString(jsonString, options);
1067
+ }
551
1068
 
552
- /**
553
- * @generated from message livekit.proto.VideoSourceInfo
554
- */
555
- export type VideoSourceInfo = Message<"livekit.proto.VideoSourceInfo"> & {
556
- /**
557
- * @generated from field: required livekit.proto.VideoSourceType type = 1;
558
- */
559
- type: VideoSourceType;
560
- };
1069
+ static equals(a: VideoFrameReceived | PlainMessage<VideoFrameReceived> | undefined, b: VideoFrameReceived | PlainMessage<VideoFrameReceived> | undefined): boolean {
1070
+ return proto2.util.equals(VideoFrameReceived, a, b);
1071
+ }
1072
+ }
561
1073
 
562
1074
  /**
563
- * Describes the message livekit.proto.VideoSourceInfo.
564
- * Use `create(VideoSourceInfoSchema)` to create a new message.
1075
+ * @generated from message livekit.proto.VideoStreamEOS
565
1076
  */
566
- export const VideoSourceInfoSchema: GenMessage<VideoSourceInfo> = /*@__PURE__*/
567
- messageDesc(file_video_frame, 19);
1077
+ export class VideoStreamEOS extends Message<VideoStreamEOS> {
1078
+ constructor(data?: PartialMessage<VideoStreamEOS>) {
1079
+ super();
1080
+ proto2.util.initPartial(data, this);
1081
+ }
1082
+
1083
+ static readonly runtime: typeof proto2 = proto2;
1084
+ static readonly typeName = "livekit.proto.VideoStreamEOS";
1085
+ static readonly fields: FieldList = proto2.util.newFieldList(() => [
1086
+ ]);
1087
+
1088
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): VideoStreamEOS {
1089
+ return new VideoStreamEOS().fromBinary(bytes, options);
1090
+ }
1091
+
1092
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): VideoStreamEOS {
1093
+ return new VideoStreamEOS().fromJson(jsonValue, options);
1094
+ }
1095
+
1096
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): VideoStreamEOS {
1097
+ return new VideoStreamEOS().fromJsonString(jsonString, options);
1098
+ }
1099
+
1100
+ static equals(a: VideoStreamEOS | PlainMessage<VideoStreamEOS> | undefined, b: VideoStreamEOS | PlainMessage<VideoStreamEOS> | undefined): boolean {
1101
+ return proto2.util.equals(VideoStreamEOS, a, b);
1102
+ }
1103
+ }
568
1104
 
569
1105
  /**
570
- * @generated from message livekit.proto.OwnedVideoSource
1106
+ * @generated from message livekit.proto.VideoSourceResolution
571
1107
  */
572
- export type OwnedVideoSource = Message<"livekit.proto.OwnedVideoSource"> & {
573
- /**
574
- * @generated from field: required livekit.proto.FfiOwnedHandle handle = 1;
575
- */
576
- handle?: FfiOwnedHandle;
577
-
1108
+ export class VideoSourceResolution extends Message<VideoSourceResolution> {
578
1109
  /**
579
- * @generated from field: required livekit.proto.VideoSourceInfo info = 2;
1110
+ * @generated from field: required uint32 width = 1;
580
1111
  */
581
- info?: VideoSourceInfo;
582
- };
583
-
584
- /**
585
- * Describes the message livekit.proto.OwnedVideoSource.
586
- * Use `create(OwnedVideoSourceSchema)` to create a new message.
587
- */
588
- export const OwnedVideoSourceSchema: GenMessage<OwnedVideoSource> = /*@__PURE__*/
589
- messageDesc(file_video_frame, 20);
1112
+ width?: number;
590
1113
 
591
- /**
592
- * @generated from enum livekit.proto.VideoCodec
593
- */
594
- export enum VideoCodec {
595
1114
  /**
596
- * @generated from enum value: VP8 = 0;
1115
+ * @generated from field: required uint32 height = 2;
597
1116
  */
598
- VP8 = 0,
1117
+ height?: number;
599
1118
 
600
- /**
601
- * @generated from enum value: H264 = 1;
602
- */
603
- H264 = 1,
1119
+ constructor(data?: PartialMessage<VideoSourceResolution>) {
1120
+ super();
1121
+ proto2.util.initPartial(data, this);
1122
+ }
604
1123
 
605
- /**
606
- * @generated from enum value: AV1 = 2;
607
- */
608
- AV1 = 2,
1124
+ static readonly runtime: typeof proto2 = proto2;
1125
+ static readonly typeName = "livekit.proto.VideoSourceResolution";
1126
+ static readonly fields: FieldList = proto2.util.newFieldList(() => [
1127
+ { no: 1, name: "width", kind: "scalar", T: 13 /* ScalarType.UINT32 */, req: true },
1128
+ { no: 2, name: "height", kind: "scalar", T: 13 /* ScalarType.UINT32 */, req: true },
1129
+ ]);
609
1130
 
610
- /**
611
- * @generated from enum value: VP9 = 3;
612
- */
613
- VP9 = 3,
614
- }
1131
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): VideoSourceResolution {
1132
+ return new VideoSourceResolution().fromBinary(bytes, options);
1133
+ }
615
1134
 
616
- /**
617
- * Describes the enum livekit.proto.VideoCodec.
618
- */
619
- export const VideoCodecSchema: GenEnum<VideoCodec> = /*@__PURE__*/
620
- enumDesc(file_video_frame, 0);
1135
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): VideoSourceResolution {
1136
+ return new VideoSourceResolution().fromJson(jsonValue, options);
1137
+ }
621
1138
 
622
- /**
623
- * @generated from enum livekit.proto.VideoRotation
624
- */
625
- export enum VideoRotation {
626
- /**
627
- * @generated from enum value: VIDEO_ROTATION_0 = 0;
628
- */
629
- VIDEO_ROTATION_0 = 0,
1139
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): VideoSourceResolution {
1140
+ return new VideoSourceResolution().fromJsonString(jsonString, options);
1141
+ }
630
1142
 
631
- /**
632
- * @generated from enum value: VIDEO_ROTATION_90 = 1;
633
- */
634
- VIDEO_ROTATION_90 = 1,
635
-
636
- /**
637
- * @generated from enum value: VIDEO_ROTATION_180 = 2;
638
- */
639
- VIDEO_ROTATION_180 = 2,
640
-
641
- /**
642
- * @generated from enum value: VIDEO_ROTATION_270 = 3;
643
- */
644
- VIDEO_ROTATION_270 = 3,
1143
+ static equals(a: VideoSourceResolution | PlainMessage<VideoSourceResolution> | undefined, b: VideoSourceResolution | PlainMessage<VideoSourceResolution> | undefined): boolean {
1144
+ return proto2.util.equals(VideoSourceResolution, a, b);
1145
+ }
645
1146
  }
646
1147
 
647
1148
  /**
648
- * Describes the enum livekit.proto.VideoRotation.
649
- */
650
- export const VideoRotationSchema: GenEnum<VideoRotation> = /*@__PURE__*/
651
- enumDesc(file_video_frame, 1);
652
-
653
- /**
654
- * @generated from enum livekit.proto.VideoBufferType
1149
+ * @generated from message livekit.proto.VideoSourceInfo
655
1150
  */
656
- export enum VideoBufferType {
657
- /**
658
- * @generated from enum value: RGBA = 0;
659
- */
660
- RGBA = 0,
661
-
662
- /**
663
- * @generated from enum value: ABGR = 1;
664
- */
665
- ABGR = 1,
666
-
1151
+ export class VideoSourceInfo extends Message<VideoSourceInfo> {
667
1152
  /**
668
- * @generated from enum value: ARGB = 2;
669
- */
670
- ARGB = 2,
671
-
672
- /**
673
- * @generated from enum value: BGRA = 3;
674
- */
675
- BGRA = 3,
676
-
677
- /**
678
- * @generated from enum value: RGB24 = 4;
1153
+ * @generated from field: required livekit.proto.VideoSourceType type = 1;
679
1154
  */
680
- RGB24 = 4,
1155
+ type?: VideoSourceType;
681
1156
 
682
- /**
683
- * @generated from enum value: I420 = 5;
684
- */
685
- I420 = 5,
1157
+ constructor(data?: PartialMessage<VideoSourceInfo>) {
1158
+ super();
1159
+ proto2.util.initPartial(data, this);
1160
+ }
686
1161
 
687
- /**
688
- * @generated from enum value: I420A = 6;
689
- */
690
- I420A = 6,
1162
+ static readonly runtime: typeof proto2 = proto2;
1163
+ static readonly typeName = "livekit.proto.VideoSourceInfo";
1164
+ static readonly fields: FieldList = proto2.util.newFieldList(() => [
1165
+ { no: 1, name: "type", kind: "enum", T: proto2.getEnumType(VideoSourceType), req: true },
1166
+ ]);
691
1167
 
692
- /**
693
- * @generated from enum value: I422 = 7;
694
- */
695
- I422 = 7,
1168
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): VideoSourceInfo {
1169
+ return new VideoSourceInfo().fromBinary(bytes, options);
1170
+ }
696
1171
 
697
- /**
698
- * @generated from enum value: I444 = 8;
699
- */
700
- I444 = 8,
1172
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): VideoSourceInfo {
1173
+ return new VideoSourceInfo().fromJson(jsonValue, options);
1174
+ }
701
1175
 
702
- /**
703
- * @generated from enum value: I010 = 9;
704
- */
705
- I010 = 9,
1176
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): VideoSourceInfo {
1177
+ return new VideoSourceInfo().fromJsonString(jsonString, options);
1178
+ }
706
1179
 
707
- /**
708
- * @generated from enum value: NV12 = 10;
709
- */
710
- NV12 = 10,
1180
+ static equals(a: VideoSourceInfo | PlainMessage<VideoSourceInfo> | undefined, b: VideoSourceInfo | PlainMessage<VideoSourceInfo> | undefined): boolean {
1181
+ return proto2.util.equals(VideoSourceInfo, a, b);
1182
+ }
711
1183
  }
712
1184
 
713
1185
  /**
714
- * Describes the enum livekit.proto.VideoBufferType.
715
- */
716
- export const VideoBufferTypeSchema: GenEnum<VideoBufferType> = /*@__PURE__*/
717
- enumDesc(file_video_frame, 2);
718
-
719
- /**
720
- * @generated from enum livekit.proto.VideoStreamType
1186
+ * @generated from message livekit.proto.OwnedVideoSource
721
1187
  */
722
- export enum VideoStreamType {
723
- /**
724
- * @generated from enum value: VIDEO_STREAM_NATIVE = 0;
725
- */
726
- VIDEO_STREAM_NATIVE = 0,
727
-
1188
+ export class OwnedVideoSource extends Message<OwnedVideoSource> {
728
1189
  /**
729
- * @generated from enum value: VIDEO_STREAM_WEBGL = 1;
1190
+ * @generated from field: required livekit.proto.FfiOwnedHandle handle = 1;
730
1191
  */
731
- VIDEO_STREAM_WEBGL = 1,
1192
+ handle?: FfiOwnedHandle;
732
1193
 
733
1194
  /**
734
- * @generated from enum value: VIDEO_STREAM_HTML = 2;
1195
+ * @generated from field: required livekit.proto.VideoSourceInfo info = 2;
735
1196
  */
736
- VIDEO_STREAM_HTML = 2,
737
- }
738
-
739
- /**
740
- * Describes the enum livekit.proto.VideoStreamType.
741
- */
742
- export const VideoStreamTypeSchema: GenEnum<VideoStreamType> = /*@__PURE__*/
743
- enumDesc(file_video_frame, 3);
1197
+ info?: VideoSourceInfo;
744
1198
 
745
- /**
746
- * @generated from enum livekit.proto.VideoSourceType
747
- */
748
- export enum VideoSourceType {
749
- /**
750
- * @generated from enum value: VIDEO_SOURCE_NATIVE = 0;
751
- */
752
- VIDEO_SOURCE_NATIVE = 0,
1199
+ constructor(data?: PartialMessage<OwnedVideoSource>) {
1200
+ super();
1201
+ proto2.util.initPartial(data, this);
1202
+ }
1203
+
1204
+ static readonly runtime: typeof proto2 = proto2;
1205
+ static readonly typeName = "livekit.proto.OwnedVideoSource";
1206
+ static readonly fields: FieldList = proto2.util.newFieldList(() => [
1207
+ { no: 1, name: "handle", kind: "message", T: FfiOwnedHandle, req: true },
1208
+ { no: 2, name: "info", kind: "message", T: VideoSourceInfo, req: true },
1209
+ ]);
1210
+
1211
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): OwnedVideoSource {
1212
+ return new OwnedVideoSource().fromBinary(bytes, options);
1213
+ }
1214
+
1215
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): OwnedVideoSource {
1216
+ return new OwnedVideoSource().fromJson(jsonValue, options);
1217
+ }
1218
+
1219
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): OwnedVideoSource {
1220
+ return new OwnedVideoSource().fromJsonString(jsonString, options);
1221
+ }
1222
+
1223
+ static equals(a: OwnedVideoSource | PlainMessage<OwnedVideoSource> | undefined, b: OwnedVideoSource | PlainMessage<OwnedVideoSource> | undefined): boolean {
1224
+ return proto2.util.equals(OwnedVideoSource, a, b);
1225
+ }
753
1226
  }
754
1227
 
755
- /**
756
- * Describes the enum livekit.proto.VideoSourceType.
757
- */
758
- export const VideoSourceTypeSchema: GenEnum<VideoSourceType> = /*@__PURE__*/
759
- enumDesc(file_video_frame, 4);
760
-