@livekit/rtc-node 0.12.2 → 0.13.0

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 +0 -1
  32. package/dist/e2ee.d.ts +0 -1
  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 +57 -34
  54. package/dist/participant.cjs.map +1 -1
  55. package/dist/participant.d.cts +10 -10
  56. package/dist/participant.d.ts +10 -10
  57. package/dist/participant.d.ts.map +1 -1
  58. package/dist/participant.js +75 -50
  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 +93 -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 +92 -122
  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 +36 -37
  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 +100 -72
  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 +143 -188
  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
@@ -1,118 +1,242 @@
1
- import { GenFile, GenMessage, GenEnum } from '@bufbuild/protobuf/codegenv1';
2
- import { FfiOwnedHandle } from './handle_pb.js';
1
+ import { Message, PartialMessage, proto2, FieldList, BinaryReadOptions, JsonValue, JsonReadOptions, PlainMessage } from '@bufbuild/protobuf';
3
2
  import { TrackSource } from './track_pb.js';
4
- import { Message } from '@bufbuild/protobuf';
5
- import './e2ee_pb.js';
3
+ import { FfiOwnedHandle } from './handle_pb.js';
6
4
  import './stats_pb.js';
5
+ import './e2ee_pb.js';
7
6
 
8
7
  /**
9
- * Describes the file video_frame.proto.
8
+ * @generated from enum livekit.proto.VideoCodec
10
9
  */
11
- declare const file_video_frame: GenFile;
10
+ declare enum VideoCodec {
11
+ /**
12
+ * @generated from enum value: VP8 = 0;
13
+ */
14
+ VP8 = 0,
15
+ /**
16
+ * @generated from enum value: H264 = 1;
17
+ */
18
+ H264 = 1,
19
+ /**
20
+ * @generated from enum value: AV1 = 2;
21
+ */
22
+ AV1 = 2,
23
+ /**
24
+ * @generated from enum value: VP9 = 3;
25
+ */
26
+ VP9 = 3
27
+ }
28
+ /**
29
+ * @generated from enum livekit.proto.VideoRotation
30
+ */
31
+ declare enum VideoRotation {
32
+ /**
33
+ * @generated from enum value: VIDEO_ROTATION_0 = 0;
34
+ */
35
+ VIDEO_ROTATION_0 = 0,
36
+ /**
37
+ * @generated from enum value: VIDEO_ROTATION_90 = 1;
38
+ */
39
+ VIDEO_ROTATION_90 = 1,
40
+ /**
41
+ * @generated from enum value: VIDEO_ROTATION_180 = 2;
42
+ */
43
+ VIDEO_ROTATION_180 = 2,
44
+ /**
45
+ * @generated from enum value: VIDEO_ROTATION_270 = 3;
46
+ */
47
+ VIDEO_ROTATION_270 = 3
48
+ }
49
+ /**
50
+ * @generated from enum livekit.proto.VideoBufferType
51
+ */
52
+ declare enum VideoBufferType {
53
+ /**
54
+ * @generated from enum value: RGBA = 0;
55
+ */
56
+ RGBA = 0,
57
+ /**
58
+ * @generated from enum value: ABGR = 1;
59
+ */
60
+ ABGR = 1,
61
+ /**
62
+ * @generated from enum value: ARGB = 2;
63
+ */
64
+ ARGB = 2,
65
+ /**
66
+ * @generated from enum value: BGRA = 3;
67
+ */
68
+ BGRA = 3,
69
+ /**
70
+ * @generated from enum value: RGB24 = 4;
71
+ */
72
+ RGB24 = 4,
73
+ /**
74
+ * @generated from enum value: I420 = 5;
75
+ */
76
+ I420 = 5,
77
+ /**
78
+ * @generated from enum value: I420A = 6;
79
+ */
80
+ I420A = 6,
81
+ /**
82
+ * @generated from enum value: I422 = 7;
83
+ */
84
+ I422 = 7,
85
+ /**
86
+ * @generated from enum value: I444 = 8;
87
+ */
88
+ I444 = 8,
89
+ /**
90
+ * @generated from enum value: I010 = 9;
91
+ */
92
+ I010 = 9,
93
+ /**
94
+ * @generated from enum value: NV12 = 10;
95
+ */
96
+ NV12 = 10
97
+ }
98
+ /**
99
+ * @generated from enum livekit.proto.VideoStreamType
100
+ */
101
+ declare enum VideoStreamType {
102
+ /**
103
+ * @generated from enum value: VIDEO_STREAM_NATIVE = 0;
104
+ */
105
+ VIDEO_STREAM_NATIVE = 0,
106
+ /**
107
+ * @generated from enum value: VIDEO_STREAM_WEBGL = 1;
108
+ */
109
+ VIDEO_STREAM_WEBGL = 1,
110
+ /**
111
+ * @generated from enum value: VIDEO_STREAM_HTML = 2;
112
+ */
113
+ VIDEO_STREAM_HTML = 2
114
+ }
115
+ /**
116
+ * @generated from enum livekit.proto.VideoSourceType
117
+ */
118
+ declare enum VideoSourceType {
119
+ /**
120
+ * @generated from enum value: VIDEO_SOURCE_NATIVE = 0;
121
+ */
122
+ VIDEO_SOURCE_NATIVE = 0
123
+ }
12
124
  /**
13
125
  * Create a new VideoStream
14
126
  * VideoStream is used to receive video frames from a track
15
127
  *
16
128
  * @generated from message livekit.proto.NewVideoStreamRequest
17
129
  */
18
- type NewVideoStreamRequest = Message<"livekit.proto.NewVideoStreamRequest"> & {
130
+ declare class NewVideoStreamRequest extends Message<NewVideoStreamRequest> {
19
131
  /**
20
132
  * @generated from field: required uint64 track_handle = 1;
21
133
  */
22
- trackHandle: bigint;
134
+ trackHandle?: bigint;
23
135
  /**
24
136
  * @generated from field: required livekit.proto.VideoStreamType type = 2;
25
137
  */
26
- type: VideoStreamType;
138
+ type?: VideoStreamType;
27
139
  /**
28
140
  * Get the frame on a specific format
29
141
  *
30
142
  * @generated from field: optional livekit.proto.VideoBufferType format = 3;
31
143
  */
32
- format: VideoBufferType;
144
+ format?: VideoBufferType;
33
145
  /**
34
146
  * if true, stride will be set to width/chroma_width
35
147
  *
36
148
  * @generated from field: optional bool normalize_stride = 4;
37
149
  */
38
- normalizeStride: boolean;
39
- };
40
- /**
41
- * Describes the message livekit.proto.NewVideoStreamRequest.
42
- * Use `create(NewVideoStreamRequestSchema)` to create a new message.
43
- */
44
- declare const NewVideoStreamRequestSchema: GenMessage<NewVideoStreamRequest>;
150
+ normalizeStride?: boolean;
151
+ constructor(data?: PartialMessage<NewVideoStreamRequest>);
152
+ static readonly runtime: typeof proto2;
153
+ static readonly typeName = "livekit.proto.NewVideoStreamRequest";
154
+ static readonly fields: FieldList;
155
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): NewVideoStreamRequest;
156
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): NewVideoStreamRequest;
157
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): NewVideoStreamRequest;
158
+ static equals(a: NewVideoStreamRequest | PlainMessage<NewVideoStreamRequest> | undefined, b: NewVideoStreamRequest | PlainMessage<NewVideoStreamRequest> | undefined): boolean;
159
+ }
45
160
  /**
46
161
  * @generated from message livekit.proto.NewVideoStreamResponse
47
162
  */
48
- type NewVideoStreamResponse = Message<"livekit.proto.NewVideoStreamResponse"> & {
163
+ declare class NewVideoStreamResponse extends Message<NewVideoStreamResponse> {
49
164
  /**
50
165
  * @generated from field: required livekit.proto.OwnedVideoStream stream = 1;
51
166
  */
52
167
  stream?: OwnedVideoStream;
53
- };
54
- /**
55
- * Describes the message livekit.proto.NewVideoStreamResponse.
56
- * Use `create(NewVideoStreamResponseSchema)` to create a new message.
57
- */
58
- declare const NewVideoStreamResponseSchema: GenMessage<NewVideoStreamResponse>;
168
+ constructor(data?: PartialMessage<NewVideoStreamResponse>);
169
+ static readonly runtime: typeof proto2;
170
+ static readonly typeName = "livekit.proto.NewVideoStreamResponse";
171
+ static readonly fields: FieldList;
172
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): NewVideoStreamResponse;
173
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): NewVideoStreamResponse;
174
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): NewVideoStreamResponse;
175
+ static equals(a: NewVideoStreamResponse | PlainMessage<NewVideoStreamResponse> | undefined, b: NewVideoStreamResponse | PlainMessage<NewVideoStreamResponse> | undefined): boolean;
176
+ }
59
177
  /**
60
178
  * Request a video stream from a participant
61
179
  *
62
180
  * @generated from message livekit.proto.VideoStreamFromParticipantRequest
63
181
  */
64
- type VideoStreamFromParticipantRequest = Message<"livekit.proto.VideoStreamFromParticipantRequest"> & {
182
+ declare class VideoStreamFromParticipantRequest extends Message<VideoStreamFromParticipantRequest> {
65
183
  /**
66
184
  * @generated from field: required uint64 participant_handle = 1;
67
185
  */
68
- participantHandle: bigint;
186
+ participantHandle?: bigint;
69
187
  /**
70
188
  * @generated from field: required livekit.proto.VideoStreamType type = 2;
71
189
  */
72
- type: VideoStreamType;
190
+ type?: VideoStreamType;
73
191
  /**
74
192
  * @generated from field: required livekit.proto.TrackSource track_source = 3;
75
193
  */
76
- trackSource: TrackSource;
194
+ trackSource?: TrackSource;
77
195
  /**
78
196
  * @generated from field: optional livekit.proto.VideoBufferType format = 4;
79
197
  */
80
- format: VideoBufferType;
198
+ format?: VideoBufferType;
81
199
  /**
82
200
  * @generated from field: optional bool normalize_stride = 5;
83
201
  */
84
- normalizeStride: boolean;
85
- };
86
- /**
87
- * Describes the message livekit.proto.VideoStreamFromParticipantRequest.
88
- * Use `create(VideoStreamFromParticipantRequestSchema)` to create a new message.
89
- */
90
- declare const VideoStreamFromParticipantRequestSchema: GenMessage<VideoStreamFromParticipantRequest>;
202
+ normalizeStride?: boolean;
203
+ constructor(data?: PartialMessage<VideoStreamFromParticipantRequest>);
204
+ static readonly runtime: typeof proto2;
205
+ static readonly typeName = "livekit.proto.VideoStreamFromParticipantRequest";
206
+ static readonly fields: FieldList;
207
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): VideoStreamFromParticipantRequest;
208
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): VideoStreamFromParticipantRequest;
209
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): VideoStreamFromParticipantRequest;
210
+ static equals(a: VideoStreamFromParticipantRequest | PlainMessage<VideoStreamFromParticipantRequest> | undefined, b: VideoStreamFromParticipantRequest | PlainMessage<VideoStreamFromParticipantRequest> | undefined): boolean;
211
+ }
91
212
  /**
92
213
  * @generated from message livekit.proto.VideoStreamFromParticipantResponse
93
214
  */
94
- type VideoStreamFromParticipantResponse = Message<"livekit.proto.VideoStreamFromParticipantResponse"> & {
215
+ declare class VideoStreamFromParticipantResponse extends Message<VideoStreamFromParticipantResponse> {
95
216
  /**
96
217
  * @generated from field: required livekit.proto.OwnedVideoStream stream = 1;
97
218
  */
98
219
  stream?: OwnedVideoStream;
99
- };
100
- /**
101
- * Describes the message livekit.proto.VideoStreamFromParticipantResponse.
102
- * Use `create(VideoStreamFromParticipantResponseSchema)` to create a new message.
103
- */
104
- declare const VideoStreamFromParticipantResponseSchema: GenMessage<VideoStreamFromParticipantResponse>;
220
+ constructor(data?: PartialMessage<VideoStreamFromParticipantResponse>);
221
+ static readonly runtime: typeof proto2;
222
+ static readonly typeName = "livekit.proto.VideoStreamFromParticipantResponse";
223
+ static readonly fields: FieldList;
224
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): VideoStreamFromParticipantResponse;
225
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): VideoStreamFromParticipantResponse;
226
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): VideoStreamFromParticipantResponse;
227
+ static equals(a: VideoStreamFromParticipantResponse | PlainMessage<VideoStreamFromParticipantResponse> | undefined, b: VideoStreamFromParticipantResponse | PlainMessage<VideoStreamFromParticipantResponse> | undefined): boolean;
228
+ }
105
229
  /**
106
230
  * Create a new VideoSource
107
231
  * VideoSource is used to send video frame to a track
108
232
  *
109
233
  * @generated from message livekit.proto.NewVideoSourceRequest
110
234
  */
111
- type NewVideoSourceRequest = Message<"livekit.proto.NewVideoSourceRequest"> & {
235
+ declare class NewVideoSourceRequest extends Message<NewVideoSourceRequest> {
112
236
  /**
113
237
  * @generated from field: required livekit.proto.VideoSourceType type = 1;
114
238
  */
115
- type: VideoSourceType;
239
+ type?: VideoSourceType;
116
240
  /**
117
241
  * Used to determine which encodings to use + simulcast layers
118
242
  * Most of the time it corresponds to the source resolution
@@ -120,36 +244,42 @@ type NewVideoSourceRequest = Message<"livekit.proto.NewVideoSourceRequest"> & {
120
244
  * @generated from field: required livekit.proto.VideoSourceResolution resolution = 2;
121
245
  */
122
246
  resolution?: VideoSourceResolution;
123
- };
124
- /**
125
- * Describes the message livekit.proto.NewVideoSourceRequest.
126
- * Use `create(NewVideoSourceRequestSchema)` to create a new message.
127
- */
128
- declare const NewVideoSourceRequestSchema: GenMessage<NewVideoSourceRequest>;
247
+ constructor(data?: PartialMessage<NewVideoSourceRequest>);
248
+ static readonly runtime: typeof proto2;
249
+ static readonly typeName = "livekit.proto.NewVideoSourceRequest";
250
+ static readonly fields: FieldList;
251
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): NewVideoSourceRequest;
252
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): NewVideoSourceRequest;
253
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): NewVideoSourceRequest;
254
+ static equals(a: NewVideoSourceRequest | PlainMessage<NewVideoSourceRequest> | undefined, b: NewVideoSourceRequest | PlainMessage<NewVideoSourceRequest> | undefined): boolean;
255
+ }
129
256
  /**
130
257
  * @generated from message livekit.proto.NewVideoSourceResponse
131
258
  */
132
- type NewVideoSourceResponse = Message<"livekit.proto.NewVideoSourceResponse"> & {
259
+ declare class NewVideoSourceResponse extends Message<NewVideoSourceResponse> {
133
260
  /**
134
261
  * @generated from field: required livekit.proto.OwnedVideoSource source = 1;
135
262
  */
136
263
  source?: OwnedVideoSource;
137
- };
138
- /**
139
- * Describes the message livekit.proto.NewVideoSourceResponse.
140
- * Use `create(NewVideoSourceResponseSchema)` to create a new message.
141
- */
142
- declare const NewVideoSourceResponseSchema: GenMessage<NewVideoSourceResponse>;
264
+ constructor(data?: PartialMessage<NewVideoSourceResponse>);
265
+ static readonly runtime: typeof proto2;
266
+ static readonly typeName = "livekit.proto.NewVideoSourceResponse";
267
+ static readonly fields: FieldList;
268
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): NewVideoSourceResponse;
269
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): NewVideoSourceResponse;
270
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): NewVideoSourceResponse;
271
+ static equals(a: NewVideoSourceResponse | PlainMessage<NewVideoSourceResponse> | undefined, b: NewVideoSourceResponse | PlainMessage<NewVideoSourceResponse> | undefined): boolean;
272
+ }
143
273
  /**
144
274
  * Push a frame to a VideoSource
145
275
  *
146
276
  * @generated from message livekit.proto.CaptureVideoFrameRequest
147
277
  */
148
- type CaptureVideoFrameRequest = Message<"livekit.proto.CaptureVideoFrameRequest"> & {
278
+ declare class CaptureVideoFrameRequest extends Message<CaptureVideoFrameRequest> {
149
279
  /**
150
280
  * @generated from field: required uint64 source_handle = 1;
151
281
  */
152
- sourceHandle: bigint;
282
+ sourceHandle?: bigint;
153
283
  /**
154
284
  * @generated from field: required livekit.proto.VideoBufferInfo buffer = 2;
155
285
  */
@@ -159,34 +289,41 @@ type CaptureVideoFrameRequest = Message<"livekit.proto.CaptureVideoFrameRequest"
159
289
  *
160
290
  * @generated from field: required int64 timestamp_us = 3;
161
291
  */
162
- timestampUs: bigint;
292
+ timestampUs?: bigint;
163
293
  /**
164
294
  * @generated from field: required livekit.proto.VideoRotation rotation = 4;
165
295
  */
166
- rotation: VideoRotation;
167
- };
168
- /**
169
- * Describes the message livekit.proto.CaptureVideoFrameRequest.
170
- * Use `create(CaptureVideoFrameRequestSchema)` to create a new message.
171
- */
172
- declare const CaptureVideoFrameRequestSchema: GenMessage<CaptureVideoFrameRequest>;
296
+ rotation?: VideoRotation;
297
+ constructor(data?: PartialMessage<CaptureVideoFrameRequest>);
298
+ static readonly runtime: typeof proto2;
299
+ static readonly typeName = "livekit.proto.CaptureVideoFrameRequest";
300
+ static readonly fields: FieldList;
301
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): CaptureVideoFrameRequest;
302
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): CaptureVideoFrameRequest;
303
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): CaptureVideoFrameRequest;
304
+ static equals(a: CaptureVideoFrameRequest | PlainMessage<CaptureVideoFrameRequest> | undefined, b: CaptureVideoFrameRequest | PlainMessage<CaptureVideoFrameRequest> | undefined): boolean;
305
+ }
173
306
  /**
174
307
  * @generated from message livekit.proto.CaptureVideoFrameResponse
175
308
  */
176
- type CaptureVideoFrameResponse = Message<"livekit.proto.CaptureVideoFrameResponse"> & {};
177
- /**
178
- * Describes the message livekit.proto.CaptureVideoFrameResponse.
179
- * Use `create(CaptureVideoFrameResponseSchema)` to create a new message.
180
- */
181
- declare const CaptureVideoFrameResponseSchema: GenMessage<CaptureVideoFrameResponse>;
309
+ declare class CaptureVideoFrameResponse extends Message<CaptureVideoFrameResponse> {
310
+ constructor(data?: PartialMessage<CaptureVideoFrameResponse>);
311
+ static readonly runtime: typeof proto2;
312
+ static readonly typeName = "livekit.proto.CaptureVideoFrameResponse";
313
+ static readonly fields: FieldList;
314
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): CaptureVideoFrameResponse;
315
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): CaptureVideoFrameResponse;
316
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): CaptureVideoFrameResponse;
317
+ static equals(a: CaptureVideoFrameResponse | PlainMessage<CaptureVideoFrameResponse> | undefined, b: CaptureVideoFrameResponse | PlainMessage<CaptureVideoFrameResponse> | undefined): boolean;
318
+ }
182
319
  /**
183
320
  * @generated from message livekit.proto.VideoConvertRequest
184
321
  */
185
- type VideoConvertRequest = Message<"livekit.proto.VideoConvertRequest"> & {
322
+ declare class VideoConvertRequest extends Message<VideoConvertRequest> {
186
323
  /**
187
324
  * @generated from field: optional bool flip_y = 1;
188
325
  */
189
- flipY: boolean;
326
+ flipY?: boolean;
190
327
  /**
191
328
  * @generated from field: required livekit.proto.VideoBufferInfo buffer = 2;
192
329
  */
@@ -194,17 +331,20 @@ type VideoConvertRequest = Message<"livekit.proto.VideoConvertRequest"> & {
194
331
  /**
195
332
  * @generated from field: required livekit.proto.VideoBufferType dst_type = 3;
196
333
  */
197
- dstType: VideoBufferType;
198
- };
199
- /**
200
- * Describes the message livekit.proto.VideoConvertRequest.
201
- * Use `create(VideoConvertRequestSchema)` to create a new message.
202
- */
203
- declare const VideoConvertRequestSchema: GenMessage<VideoConvertRequest>;
334
+ dstType?: VideoBufferType;
335
+ constructor(data?: PartialMessage<VideoConvertRequest>);
336
+ static readonly runtime: typeof proto2;
337
+ static readonly typeName = "livekit.proto.VideoConvertRequest";
338
+ static readonly fields: FieldList;
339
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): VideoConvertRequest;
340
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): VideoConvertRequest;
341
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): VideoConvertRequest;
342
+ static equals(a: VideoConvertRequest | PlainMessage<VideoConvertRequest> | undefined, b: VideoConvertRequest | PlainMessage<VideoConvertRequest> | undefined): boolean;
343
+ }
204
344
  /**
205
345
  * @generated from message livekit.proto.VideoConvertResponse
206
346
  */
207
- type VideoConvertResponse = Message<"livekit.proto.VideoConvertResponse"> & {
347
+ declare class VideoConvertResponse extends Message<VideoConvertResponse> {
208
348
  /**
209
349
  * @generated from oneof livekit.proto.VideoConvertResponse.message
210
350
  */
@@ -224,96 +364,108 @@ type VideoConvertResponse = Message<"livekit.proto.VideoConvertResponse"> & {
224
364
  case: undefined;
225
365
  value?: undefined;
226
366
  };
227
- };
228
- /**
229
- * Describes the message livekit.proto.VideoConvertResponse.
230
- * Use `create(VideoConvertResponseSchema)` to create a new message.
231
- */
232
- declare const VideoConvertResponseSchema: GenMessage<VideoConvertResponse>;
367
+ constructor(data?: PartialMessage<VideoConvertResponse>);
368
+ static readonly runtime: typeof proto2;
369
+ static readonly typeName = "livekit.proto.VideoConvertResponse";
370
+ static readonly fields: FieldList;
371
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): VideoConvertResponse;
372
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): VideoConvertResponse;
373
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): VideoConvertResponse;
374
+ static equals(a: VideoConvertResponse | PlainMessage<VideoConvertResponse> | undefined, b: VideoConvertResponse | PlainMessage<VideoConvertResponse> | undefined): boolean;
375
+ }
233
376
  /**
234
377
  * @generated from message livekit.proto.VideoResolution
235
378
  */
236
- type VideoResolution = Message<"livekit.proto.VideoResolution"> & {
379
+ declare class VideoResolution extends Message<VideoResolution> {
237
380
  /**
238
381
  * @generated from field: required uint32 width = 1;
239
382
  */
240
- width: number;
383
+ width?: number;
241
384
  /**
242
385
  * @generated from field: required uint32 height = 2;
243
386
  */
244
- height: number;
387
+ height?: number;
245
388
  /**
246
389
  * @generated from field: required double frame_rate = 3;
247
390
  */
248
- frameRate: number;
249
- };
250
- /**
251
- * Describes the message livekit.proto.VideoResolution.
252
- * Use `create(VideoResolutionSchema)` to create a new message.
253
- */
254
- declare const VideoResolutionSchema: GenMessage<VideoResolution>;
391
+ frameRate?: number;
392
+ constructor(data?: PartialMessage<VideoResolution>);
393
+ static readonly runtime: typeof proto2;
394
+ static readonly typeName = "livekit.proto.VideoResolution";
395
+ static readonly fields: FieldList;
396
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): VideoResolution;
397
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): VideoResolution;
398
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): VideoResolution;
399
+ static equals(a: VideoResolution | PlainMessage<VideoResolution> | undefined, b: VideoResolution | PlainMessage<VideoResolution> | undefined): boolean;
400
+ }
255
401
  /**
256
402
  * @generated from message livekit.proto.VideoBufferInfo
257
403
  */
258
- type VideoBufferInfo = Message<"livekit.proto.VideoBufferInfo"> & {
404
+ declare class VideoBufferInfo extends Message<VideoBufferInfo> {
259
405
  /**
260
406
  * @generated from field: required livekit.proto.VideoBufferType type = 1;
261
407
  */
262
- type: VideoBufferType;
408
+ type?: VideoBufferType;
263
409
  /**
264
410
  * @generated from field: required uint32 width = 2;
265
411
  */
266
- width: number;
412
+ width?: number;
267
413
  /**
268
414
  * @generated from field: required uint32 height = 3;
269
415
  */
270
- height: number;
416
+ height?: number;
271
417
  /**
272
418
  * @generated from field: required uint64 data_ptr = 4;
273
419
  */
274
- dataPtr: bigint;
420
+ dataPtr?: bigint;
275
421
  /**
276
422
  * only for packed formats
277
423
  *
278
424
  * @generated from field: required uint32 stride = 6;
279
425
  */
280
- stride: number;
426
+ stride?: number;
281
427
  /**
282
428
  * @generated from field: repeated livekit.proto.VideoBufferInfo.ComponentInfo components = 7;
283
429
  */
284
430
  components: VideoBufferInfo_ComponentInfo[];
285
- };
286
- /**
287
- * Describes the message livekit.proto.VideoBufferInfo.
288
- * Use `create(VideoBufferInfoSchema)` to create a new message.
289
- */
290
- declare const VideoBufferInfoSchema: GenMessage<VideoBufferInfo>;
431
+ constructor(data?: PartialMessage<VideoBufferInfo>);
432
+ static readonly runtime: typeof proto2;
433
+ static readonly typeName = "livekit.proto.VideoBufferInfo";
434
+ static readonly fields: FieldList;
435
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): VideoBufferInfo;
436
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): VideoBufferInfo;
437
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): VideoBufferInfo;
438
+ static equals(a: VideoBufferInfo | PlainMessage<VideoBufferInfo> | undefined, b: VideoBufferInfo | PlainMessage<VideoBufferInfo> | undefined): boolean;
439
+ }
291
440
  /**
292
441
  * @generated from message livekit.proto.VideoBufferInfo.ComponentInfo
293
442
  */
294
- type VideoBufferInfo_ComponentInfo = Message<"livekit.proto.VideoBufferInfo.ComponentInfo"> & {
443
+ declare class VideoBufferInfo_ComponentInfo extends Message<VideoBufferInfo_ComponentInfo> {
295
444
  /**
296
445
  * @generated from field: required uint64 data_ptr = 1;
297
446
  */
298
- dataPtr: bigint;
447
+ dataPtr?: bigint;
299
448
  /**
300
449
  * @generated from field: required uint32 stride = 2;
301
450
  */
302
- stride: number;
451
+ stride?: number;
303
452
  /**
304
453
  * @generated from field: required uint32 size = 3;
305
454
  */
306
- size: number;
307
- };
308
- /**
309
- * Describes the message livekit.proto.VideoBufferInfo.ComponentInfo.
310
- * Use `create(VideoBufferInfo_ComponentInfoSchema)` to create a new message.
311
- */
312
- declare const VideoBufferInfo_ComponentInfoSchema: GenMessage<VideoBufferInfo_ComponentInfo>;
455
+ size?: number;
456
+ constructor(data?: PartialMessage<VideoBufferInfo_ComponentInfo>);
457
+ static readonly runtime: typeof proto2;
458
+ static readonly typeName = "livekit.proto.VideoBufferInfo.ComponentInfo";
459
+ static readonly fields: FieldList;
460
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): VideoBufferInfo_ComponentInfo;
461
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): VideoBufferInfo_ComponentInfo;
462
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): VideoBufferInfo_ComponentInfo;
463
+ static equals(a: VideoBufferInfo_ComponentInfo | PlainMessage<VideoBufferInfo_ComponentInfo> | undefined, b: VideoBufferInfo_ComponentInfo | PlainMessage<VideoBufferInfo_ComponentInfo> | undefined): boolean;
464
+ }
313
465
  /**
314
466
  * @generated from message livekit.proto.OwnedVideoBuffer
315
467
  */
316
- type OwnedVideoBuffer = Message<"livekit.proto.OwnedVideoBuffer"> & {
468
+ declare class OwnedVideoBuffer extends Message<OwnedVideoBuffer> {
317
469
  /**
318
470
  * @generated from field: required livekit.proto.FfiOwnedHandle handle = 1;
319
471
  */
@@ -322,30 +474,36 @@ type OwnedVideoBuffer = Message<"livekit.proto.OwnedVideoBuffer"> & {
322
474
  * @generated from field: required livekit.proto.VideoBufferInfo info = 2;
323
475
  */
324
476
  info?: VideoBufferInfo;
325
- };
326
- /**
327
- * Describes the message livekit.proto.OwnedVideoBuffer.
328
- * Use `create(OwnedVideoBufferSchema)` to create a new message.
329
- */
330
- declare const OwnedVideoBufferSchema: GenMessage<OwnedVideoBuffer>;
477
+ constructor(data?: PartialMessage<OwnedVideoBuffer>);
478
+ static readonly runtime: typeof proto2;
479
+ static readonly typeName = "livekit.proto.OwnedVideoBuffer";
480
+ static readonly fields: FieldList;
481
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): OwnedVideoBuffer;
482
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): OwnedVideoBuffer;
483
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): OwnedVideoBuffer;
484
+ static equals(a: OwnedVideoBuffer | PlainMessage<OwnedVideoBuffer> | undefined, b: OwnedVideoBuffer | PlainMessage<OwnedVideoBuffer> | undefined): boolean;
485
+ }
331
486
  /**
332
487
  * @generated from message livekit.proto.VideoStreamInfo
333
488
  */
334
- type VideoStreamInfo = Message<"livekit.proto.VideoStreamInfo"> & {
489
+ declare class VideoStreamInfo extends Message<VideoStreamInfo> {
335
490
  /**
336
491
  * @generated from field: required livekit.proto.VideoStreamType type = 1;
337
492
  */
338
- type: VideoStreamType;
339
- };
340
- /**
341
- * Describes the message livekit.proto.VideoStreamInfo.
342
- * Use `create(VideoStreamInfoSchema)` to create a new message.
343
- */
344
- declare const VideoStreamInfoSchema: GenMessage<VideoStreamInfo>;
493
+ type?: VideoStreamType;
494
+ constructor(data?: PartialMessage<VideoStreamInfo>);
495
+ static readonly runtime: typeof proto2;
496
+ static readonly typeName = "livekit.proto.VideoStreamInfo";
497
+ static readonly fields: FieldList;
498
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): VideoStreamInfo;
499
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): VideoStreamInfo;
500
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): VideoStreamInfo;
501
+ static equals(a: VideoStreamInfo | PlainMessage<VideoStreamInfo> | undefined, b: VideoStreamInfo | PlainMessage<VideoStreamInfo> | undefined): boolean;
502
+ }
345
503
  /**
346
504
  * @generated from message livekit.proto.OwnedVideoStream
347
505
  */
348
- type OwnedVideoStream = Message<"livekit.proto.OwnedVideoStream"> & {
506
+ declare class OwnedVideoStream extends Message<OwnedVideoStream> {
349
507
  /**
350
508
  * @generated from field: required livekit.proto.FfiOwnedHandle handle = 1;
351
509
  */
@@ -354,20 +512,23 @@ type OwnedVideoStream = Message<"livekit.proto.OwnedVideoStream"> & {
354
512
  * @generated from field: required livekit.proto.VideoStreamInfo info = 2;
355
513
  */
356
514
  info?: VideoStreamInfo;
357
- };
358
- /**
359
- * Describes the message livekit.proto.OwnedVideoStream.
360
- * Use `create(OwnedVideoStreamSchema)` to create a new message.
361
- */
362
- declare const OwnedVideoStreamSchema: GenMessage<OwnedVideoStream>;
515
+ constructor(data?: PartialMessage<OwnedVideoStream>);
516
+ static readonly runtime: typeof proto2;
517
+ static readonly typeName = "livekit.proto.OwnedVideoStream";
518
+ static readonly fields: FieldList;
519
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): OwnedVideoStream;
520
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): OwnedVideoStream;
521
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): OwnedVideoStream;
522
+ static equals(a: OwnedVideoStream | PlainMessage<OwnedVideoStream> | undefined, b: OwnedVideoStream | PlainMessage<OwnedVideoStream> | undefined): boolean;
523
+ }
363
524
  /**
364
525
  * @generated from message livekit.proto.VideoStreamEvent
365
526
  */
366
- type VideoStreamEvent = Message<"livekit.proto.VideoStreamEvent"> & {
527
+ declare class VideoStreamEvent extends Message<VideoStreamEvent> {
367
528
  /**
368
529
  * @generated from field: required uint64 stream_handle = 1;
369
530
  */
370
- streamHandle: bigint;
531
+ streamHandle?: bigint;
371
532
  /**
372
533
  * @generated from oneof livekit.proto.VideoStreamEvent.message
373
534
  */
@@ -387,16 +548,19 @@ type VideoStreamEvent = Message<"livekit.proto.VideoStreamEvent"> & {
387
548
  case: undefined;
388
549
  value?: undefined;
389
550
  };
390
- };
391
- /**
392
- * Describes the message livekit.proto.VideoStreamEvent.
393
- * Use `create(VideoStreamEventSchema)` to create a new message.
394
- */
395
- declare const VideoStreamEventSchema: GenMessage<VideoStreamEvent>;
551
+ constructor(data?: PartialMessage<VideoStreamEvent>);
552
+ static readonly runtime: typeof proto2;
553
+ static readonly typeName = "livekit.proto.VideoStreamEvent";
554
+ static readonly fields: FieldList;
555
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): VideoStreamEvent;
556
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): VideoStreamEvent;
557
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): VideoStreamEvent;
558
+ static equals(a: VideoStreamEvent | PlainMessage<VideoStreamEvent> | undefined, b: VideoStreamEvent | PlainMessage<VideoStreamEvent> | undefined): boolean;
559
+ }
396
560
  /**
397
561
  * @generated from message livekit.proto.VideoFrameReceived
398
562
  */
399
- type VideoFrameReceived = Message<"livekit.proto.VideoFrameReceived"> & {
563
+ declare class VideoFrameReceived extends Message<VideoFrameReceived> {
400
564
  /**
401
565
  * @generated from field: required livekit.proto.OwnedVideoBuffer buffer = 1;
402
566
  */
@@ -406,62 +570,75 @@ type VideoFrameReceived = Message<"livekit.proto.VideoFrameReceived"> & {
406
570
  *
407
571
  * @generated from field: required int64 timestamp_us = 2;
408
572
  */
409
- timestampUs: bigint;
573
+ timestampUs?: bigint;
410
574
  /**
411
575
  * @generated from field: required livekit.proto.VideoRotation rotation = 3;
412
576
  */
413
- rotation: VideoRotation;
414
- };
415
- /**
416
- * Describes the message livekit.proto.VideoFrameReceived.
417
- * Use `create(VideoFrameReceivedSchema)` to create a new message.
418
- */
419
- declare const VideoFrameReceivedSchema: GenMessage<VideoFrameReceived>;
577
+ rotation?: VideoRotation;
578
+ constructor(data?: PartialMessage<VideoFrameReceived>);
579
+ static readonly runtime: typeof proto2;
580
+ static readonly typeName = "livekit.proto.VideoFrameReceived";
581
+ static readonly fields: FieldList;
582
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): VideoFrameReceived;
583
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): VideoFrameReceived;
584
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): VideoFrameReceived;
585
+ static equals(a: VideoFrameReceived | PlainMessage<VideoFrameReceived> | undefined, b: VideoFrameReceived | PlainMessage<VideoFrameReceived> | undefined): boolean;
586
+ }
420
587
  /**
421
588
  * @generated from message livekit.proto.VideoStreamEOS
422
589
  */
423
- type VideoStreamEOS = Message<"livekit.proto.VideoStreamEOS"> & {};
424
- /**
425
- * Describes the message livekit.proto.VideoStreamEOS.
426
- * Use `create(VideoStreamEOSSchema)` to create a new message.
427
- */
428
- declare const VideoStreamEOSSchema: GenMessage<VideoStreamEOS>;
590
+ declare class VideoStreamEOS extends Message<VideoStreamEOS> {
591
+ constructor(data?: PartialMessage<VideoStreamEOS>);
592
+ static readonly runtime: typeof proto2;
593
+ static readonly typeName = "livekit.proto.VideoStreamEOS";
594
+ static readonly fields: FieldList;
595
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): VideoStreamEOS;
596
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): VideoStreamEOS;
597
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): VideoStreamEOS;
598
+ static equals(a: VideoStreamEOS | PlainMessage<VideoStreamEOS> | undefined, b: VideoStreamEOS | PlainMessage<VideoStreamEOS> | undefined): boolean;
599
+ }
429
600
  /**
430
601
  * @generated from message livekit.proto.VideoSourceResolution
431
602
  */
432
- type VideoSourceResolution = Message<"livekit.proto.VideoSourceResolution"> & {
603
+ declare class VideoSourceResolution extends Message<VideoSourceResolution> {
433
604
  /**
434
605
  * @generated from field: required uint32 width = 1;
435
606
  */
436
- width: number;
607
+ width?: number;
437
608
  /**
438
609
  * @generated from field: required uint32 height = 2;
439
610
  */
440
- height: number;
441
- };
442
- /**
443
- * Describes the message livekit.proto.VideoSourceResolution.
444
- * Use `create(VideoSourceResolutionSchema)` to create a new message.
445
- */
446
- declare const VideoSourceResolutionSchema: GenMessage<VideoSourceResolution>;
611
+ height?: number;
612
+ constructor(data?: PartialMessage<VideoSourceResolution>);
613
+ static readonly runtime: typeof proto2;
614
+ static readonly typeName = "livekit.proto.VideoSourceResolution";
615
+ static readonly fields: FieldList;
616
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): VideoSourceResolution;
617
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): VideoSourceResolution;
618
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): VideoSourceResolution;
619
+ static equals(a: VideoSourceResolution | PlainMessage<VideoSourceResolution> | undefined, b: VideoSourceResolution | PlainMessage<VideoSourceResolution> | undefined): boolean;
620
+ }
447
621
  /**
448
622
  * @generated from message livekit.proto.VideoSourceInfo
449
623
  */
450
- type VideoSourceInfo = Message<"livekit.proto.VideoSourceInfo"> & {
624
+ declare class VideoSourceInfo extends Message<VideoSourceInfo> {
451
625
  /**
452
626
  * @generated from field: required livekit.proto.VideoSourceType type = 1;
453
627
  */
454
- type: VideoSourceType;
455
- };
456
- /**
457
- * Describes the message livekit.proto.VideoSourceInfo.
458
- * Use `create(VideoSourceInfoSchema)` to create a new message.
459
- */
460
- declare const VideoSourceInfoSchema: GenMessage<VideoSourceInfo>;
628
+ type?: VideoSourceType;
629
+ constructor(data?: PartialMessage<VideoSourceInfo>);
630
+ static readonly runtime: typeof proto2;
631
+ static readonly typeName = "livekit.proto.VideoSourceInfo";
632
+ static readonly fields: FieldList;
633
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): VideoSourceInfo;
634
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): VideoSourceInfo;
635
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): VideoSourceInfo;
636
+ static equals(a: VideoSourceInfo | PlainMessage<VideoSourceInfo> | undefined, b: VideoSourceInfo | PlainMessage<VideoSourceInfo> | undefined): boolean;
637
+ }
461
638
  /**
462
639
  * @generated from message livekit.proto.OwnedVideoSource
463
640
  */
464
- type OwnedVideoSource = Message<"livekit.proto.OwnedVideoSource"> & {
641
+ declare class OwnedVideoSource extends Message<OwnedVideoSource> {
465
642
  /**
466
643
  * @generated from field: required livekit.proto.FfiOwnedHandle handle = 1;
467
644
  */
@@ -470,148 +647,14 @@ type OwnedVideoSource = Message<"livekit.proto.OwnedVideoSource"> & {
470
647
  * @generated from field: required livekit.proto.VideoSourceInfo info = 2;
471
648
  */
472
649
  info?: VideoSourceInfo;
473
- };
474
- /**
475
- * Describes the message livekit.proto.OwnedVideoSource.
476
- * Use `create(OwnedVideoSourceSchema)` to create a new message.
477
- */
478
- declare const OwnedVideoSourceSchema: GenMessage<OwnedVideoSource>;
479
- /**
480
- * @generated from enum livekit.proto.VideoCodec
481
- */
482
- declare enum VideoCodec {
483
- /**
484
- * @generated from enum value: VP8 = 0;
485
- */
486
- VP8 = 0,
487
- /**
488
- * @generated from enum value: H264 = 1;
489
- */
490
- H264 = 1,
491
- /**
492
- * @generated from enum value: AV1 = 2;
493
- */
494
- AV1 = 2,
495
- /**
496
- * @generated from enum value: VP9 = 3;
497
- */
498
- VP9 = 3
650
+ constructor(data?: PartialMessage<OwnedVideoSource>);
651
+ static readonly runtime: typeof proto2;
652
+ static readonly typeName = "livekit.proto.OwnedVideoSource";
653
+ static readonly fields: FieldList;
654
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): OwnedVideoSource;
655
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): OwnedVideoSource;
656
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): OwnedVideoSource;
657
+ static equals(a: OwnedVideoSource | PlainMessage<OwnedVideoSource> | undefined, b: OwnedVideoSource | PlainMessage<OwnedVideoSource> | undefined): boolean;
499
658
  }
500
- /**
501
- * Describes the enum livekit.proto.VideoCodec.
502
- */
503
- declare const VideoCodecSchema: GenEnum<VideoCodec>;
504
- /**
505
- * @generated from enum livekit.proto.VideoRotation
506
- */
507
- declare enum VideoRotation {
508
- /**
509
- * @generated from enum value: VIDEO_ROTATION_0 = 0;
510
- */
511
- VIDEO_ROTATION_0 = 0,
512
- /**
513
- * @generated from enum value: VIDEO_ROTATION_90 = 1;
514
- */
515
- VIDEO_ROTATION_90 = 1,
516
- /**
517
- * @generated from enum value: VIDEO_ROTATION_180 = 2;
518
- */
519
- VIDEO_ROTATION_180 = 2,
520
- /**
521
- * @generated from enum value: VIDEO_ROTATION_270 = 3;
522
- */
523
- VIDEO_ROTATION_270 = 3
524
- }
525
- /**
526
- * Describes the enum livekit.proto.VideoRotation.
527
- */
528
- declare const VideoRotationSchema: GenEnum<VideoRotation>;
529
- /**
530
- * @generated from enum livekit.proto.VideoBufferType
531
- */
532
- declare enum VideoBufferType {
533
- /**
534
- * @generated from enum value: RGBA = 0;
535
- */
536
- RGBA = 0,
537
- /**
538
- * @generated from enum value: ABGR = 1;
539
- */
540
- ABGR = 1,
541
- /**
542
- * @generated from enum value: ARGB = 2;
543
- */
544
- ARGB = 2,
545
- /**
546
- * @generated from enum value: BGRA = 3;
547
- */
548
- BGRA = 3,
549
- /**
550
- * @generated from enum value: RGB24 = 4;
551
- */
552
- RGB24 = 4,
553
- /**
554
- * @generated from enum value: I420 = 5;
555
- */
556
- I420 = 5,
557
- /**
558
- * @generated from enum value: I420A = 6;
559
- */
560
- I420A = 6,
561
- /**
562
- * @generated from enum value: I422 = 7;
563
- */
564
- I422 = 7,
565
- /**
566
- * @generated from enum value: I444 = 8;
567
- */
568
- I444 = 8,
569
- /**
570
- * @generated from enum value: I010 = 9;
571
- */
572
- I010 = 9,
573
- /**
574
- * @generated from enum value: NV12 = 10;
575
- */
576
- NV12 = 10
577
- }
578
- /**
579
- * Describes the enum livekit.proto.VideoBufferType.
580
- */
581
- declare const VideoBufferTypeSchema: GenEnum<VideoBufferType>;
582
- /**
583
- * @generated from enum livekit.proto.VideoStreamType
584
- */
585
- declare enum VideoStreamType {
586
- /**
587
- * @generated from enum value: VIDEO_STREAM_NATIVE = 0;
588
- */
589
- VIDEO_STREAM_NATIVE = 0,
590
- /**
591
- * @generated from enum value: VIDEO_STREAM_WEBGL = 1;
592
- */
593
- VIDEO_STREAM_WEBGL = 1,
594
- /**
595
- * @generated from enum value: VIDEO_STREAM_HTML = 2;
596
- */
597
- VIDEO_STREAM_HTML = 2
598
- }
599
- /**
600
- * Describes the enum livekit.proto.VideoStreamType.
601
- */
602
- declare const VideoStreamTypeSchema: GenEnum<VideoStreamType>;
603
- /**
604
- * @generated from enum livekit.proto.VideoSourceType
605
- */
606
- declare enum VideoSourceType {
607
- /**
608
- * @generated from enum value: VIDEO_SOURCE_NATIVE = 0;
609
- */
610
- VIDEO_SOURCE_NATIVE = 0
611
- }
612
- /**
613
- * Describes the enum livekit.proto.VideoSourceType.
614
- */
615
- declare const VideoSourceTypeSchema: GenEnum<VideoSourceType>;
616
659
 
617
- export { type CaptureVideoFrameRequest, CaptureVideoFrameRequestSchema, type CaptureVideoFrameResponse, CaptureVideoFrameResponseSchema, type NewVideoSourceRequest, NewVideoSourceRequestSchema, type NewVideoSourceResponse, NewVideoSourceResponseSchema, type NewVideoStreamRequest, NewVideoStreamRequestSchema, type NewVideoStreamResponse, NewVideoStreamResponseSchema, type OwnedVideoBuffer, OwnedVideoBufferSchema, type OwnedVideoSource, OwnedVideoSourceSchema, type OwnedVideoStream, OwnedVideoStreamSchema, type VideoBufferInfo, VideoBufferInfoSchema, type VideoBufferInfo_ComponentInfo, VideoBufferInfo_ComponentInfoSchema, VideoBufferType, VideoBufferTypeSchema, VideoCodec, VideoCodecSchema, type VideoConvertRequest, VideoConvertRequestSchema, type VideoConvertResponse, VideoConvertResponseSchema, type VideoFrameReceived, VideoFrameReceivedSchema, type VideoResolution, VideoResolutionSchema, VideoRotation, VideoRotationSchema, type VideoSourceInfo, VideoSourceInfoSchema, type VideoSourceResolution, VideoSourceResolutionSchema, VideoSourceType, VideoSourceTypeSchema, type VideoStreamEOS, VideoStreamEOSSchema, type VideoStreamEvent, VideoStreamEventSchema, type VideoStreamFromParticipantRequest, VideoStreamFromParticipantRequestSchema, type VideoStreamFromParticipantResponse, VideoStreamFromParticipantResponseSchema, type VideoStreamInfo, VideoStreamInfoSchema, VideoStreamType, VideoStreamTypeSchema, file_video_frame };
660
+ export { CaptureVideoFrameRequest, CaptureVideoFrameResponse, NewVideoSourceRequest, NewVideoSourceResponse, NewVideoStreamRequest, NewVideoStreamResponse, OwnedVideoBuffer, OwnedVideoSource, OwnedVideoStream, VideoBufferInfo, VideoBufferInfo_ComponentInfo, VideoBufferType, VideoCodec, VideoConvertRequest, VideoConvertResponse, VideoFrameReceived, VideoResolution, VideoRotation, VideoSourceInfo, VideoSourceResolution, VideoSourceType, VideoStreamEOS, VideoStreamEvent, VideoStreamFromParticipantRequest, VideoStreamFromParticipantResponse, VideoStreamInfo, VideoStreamType };