@livekit/rtc-node 0.10.4 → 0.11.1

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