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