@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
@@ -0,0 +1,660 @@
1
+ import { Message, PartialMessage, proto2, FieldList, BinaryReadOptions, JsonValue, JsonReadOptions, PlainMessage } from '@bufbuild/protobuf';
2
+ import { TrackSource } from './track_pb.cjs';
3
+ import { FfiOwnedHandle } from './handle_pb.cjs';
4
+ import './stats_pb.cjs';
5
+ import './e2ee_pb.cjs';
6
+
7
+ /**
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
100
+ */
101
+ declare enum VideoStreamType {
102
+ /**
103
+ * @generated from enum value: VIDEO_STREAM_NATIVE = 0;
104
+ */
105
+ VIDEO_STREAM_NATIVE = 0,
106
+ /**
107
+ * @generated from enum value: VIDEO_STREAM_WEBGL = 1;
108
+ */
109
+ VIDEO_STREAM_WEBGL = 1,
110
+ /**
111
+ * @generated from enum value: VIDEO_STREAM_HTML = 2;
112
+ */
113
+ VIDEO_STREAM_HTML = 2
114
+ }
115
+ /**
116
+ * @generated from enum livekit.proto.VideoSourceType
117
+ */
118
+ declare enum VideoSourceType {
119
+ /**
120
+ * @generated from enum value: VIDEO_SOURCE_NATIVE = 0;
121
+ */
122
+ VIDEO_SOURCE_NATIVE = 0
123
+ }
124
+ /**
125
+ * Create a new VideoStream
126
+ * VideoStream is used to receive video frames from a track
127
+ *
128
+ * @generated from message livekit.proto.NewVideoStreamRequest
129
+ */
130
+ declare class NewVideoStreamRequest extends Message<NewVideoStreamRequest> {
131
+ /**
132
+ * @generated from field: required uint64 track_handle = 1;
133
+ */
134
+ trackHandle?: bigint;
135
+ /**
136
+ * @generated from field: required livekit.proto.VideoStreamType type = 2;
137
+ */
138
+ type?: VideoStreamType;
139
+ /**
140
+ * Get the frame on a specific format
141
+ *
142
+ * @generated from field: optional livekit.proto.VideoBufferType format = 3;
143
+ */
144
+ format?: VideoBufferType;
145
+ /**
146
+ * if true, stride will be set to width/chroma_width
147
+ *
148
+ * @generated from field: optional bool normalize_stride = 4;
149
+ */
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
+ }
160
+ /**
161
+ * @generated from message livekit.proto.NewVideoStreamResponse
162
+ */
163
+ declare class NewVideoStreamResponse extends Message<NewVideoStreamResponse> {
164
+ /**
165
+ * @generated from field: required livekit.proto.OwnedVideoStream stream = 1;
166
+ */
167
+ stream?: OwnedVideoStream;
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
+ }
177
+ /**
178
+ * Request a video stream from a participant
179
+ *
180
+ * @generated from message livekit.proto.VideoStreamFromParticipantRequest
181
+ */
182
+ declare class VideoStreamFromParticipantRequest extends Message<VideoStreamFromParticipantRequest> {
183
+ /**
184
+ * @generated from field: required uint64 participant_handle = 1;
185
+ */
186
+ participantHandle?: bigint;
187
+ /**
188
+ * @generated from field: required livekit.proto.VideoStreamType type = 2;
189
+ */
190
+ type?: VideoStreamType;
191
+ /**
192
+ * @generated from field: required livekit.proto.TrackSource track_source = 3;
193
+ */
194
+ trackSource?: TrackSource;
195
+ /**
196
+ * @generated from field: optional livekit.proto.VideoBufferType format = 4;
197
+ */
198
+ format?: VideoBufferType;
199
+ /**
200
+ * @generated from field: optional bool normalize_stride = 5;
201
+ */
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
+ }
212
+ /**
213
+ * @generated from message livekit.proto.VideoStreamFromParticipantResponse
214
+ */
215
+ declare class VideoStreamFromParticipantResponse extends Message<VideoStreamFromParticipantResponse> {
216
+ /**
217
+ * @generated from field: required livekit.proto.OwnedVideoStream stream = 1;
218
+ */
219
+ stream?: OwnedVideoStream;
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
+ }
229
+ /**
230
+ * Create a new VideoSource
231
+ * VideoSource is used to send video frame to a track
232
+ *
233
+ * @generated from message livekit.proto.NewVideoSourceRequest
234
+ */
235
+ declare class NewVideoSourceRequest extends Message<NewVideoSourceRequest> {
236
+ /**
237
+ * @generated from field: required livekit.proto.VideoSourceType type = 1;
238
+ */
239
+ type?: VideoSourceType;
240
+ /**
241
+ * Used to determine which encodings to use + simulcast layers
242
+ * Most of the time it corresponds to the source resolution
243
+ *
244
+ * @generated from field: required livekit.proto.VideoSourceResolution resolution = 2;
245
+ */
246
+ resolution?: VideoSourceResolution;
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
+ }
256
+ /**
257
+ * @generated from message livekit.proto.NewVideoSourceResponse
258
+ */
259
+ declare class NewVideoSourceResponse extends Message<NewVideoSourceResponse> {
260
+ /**
261
+ * @generated from field: required livekit.proto.OwnedVideoSource source = 1;
262
+ */
263
+ source?: OwnedVideoSource;
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
+ }
273
+ /**
274
+ * Push a frame to a VideoSource
275
+ *
276
+ * @generated from message livekit.proto.CaptureVideoFrameRequest
277
+ */
278
+ declare class CaptureVideoFrameRequest extends Message<CaptureVideoFrameRequest> {
279
+ /**
280
+ * @generated from field: required uint64 source_handle = 1;
281
+ */
282
+ sourceHandle?: bigint;
283
+ /**
284
+ * @generated from field: required livekit.proto.VideoBufferInfo buffer = 2;
285
+ */
286
+ buffer?: VideoBufferInfo;
287
+ /**
288
+ * In microseconds
289
+ *
290
+ * @generated from field: required int64 timestamp_us = 3;
291
+ */
292
+ timestampUs?: bigint;
293
+ /**
294
+ * @generated from field: required livekit.proto.VideoRotation rotation = 4;
295
+ */
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
+ }
306
+ /**
307
+ * @generated from message livekit.proto.CaptureVideoFrameResponse
308
+ */
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
+ }
319
+ /**
320
+ * @generated from message livekit.proto.VideoConvertRequest
321
+ */
322
+ declare class VideoConvertRequest extends Message<VideoConvertRequest> {
323
+ /**
324
+ * @generated from field: optional bool flip_y = 1;
325
+ */
326
+ flipY?: boolean;
327
+ /**
328
+ * @generated from field: required livekit.proto.VideoBufferInfo buffer = 2;
329
+ */
330
+ buffer?: VideoBufferInfo;
331
+ /**
332
+ * @generated from field: required livekit.proto.VideoBufferType dst_type = 3;
333
+ */
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
+ }
344
+ /**
345
+ * @generated from message livekit.proto.VideoConvertResponse
346
+ */
347
+ declare class VideoConvertResponse extends Message<VideoConvertResponse> {
348
+ /**
349
+ * @generated from oneof livekit.proto.VideoConvertResponse.message
350
+ */
351
+ message: {
352
+ /**
353
+ * @generated from field: string error = 1;
354
+ */
355
+ value: string;
356
+ case: "error";
357
+ } | {
358
+ /**
359
+ * @generated from field: livekit.proto.OwnedVideoBuffer buffer = 2;
360
+ */
361
+ value: OwnedVideoBuffer;
362
+ case: "buffer";
363
+ } | {
364
+ case: undefined;
365
+ value?: undefined;
366
+ };
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
+ }
376
+ /**
377
+ * @generated from message livekit.proto.VideoResolution
378
+ */
379
+ declare class VideoResolution extends Message<VideoResolution> {
380
+ /**
381
+ * @generated from field: required uint32 width = 1;
382
+ */
383
+ width?: number;
384
+ /**
385
+ * @generated from field: required uint32 height = 2;
386
+ */
387
+ height?: number;
388
+ /**
389
+ * @generated from field: required double frame_rate = 3;
390
+ */
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
+ }
401
+ /**
402
+ * @generated from message livekit.proto.VideoBufferInfo
403
+ */
404
+ declare class VideoBufferInfo extends Message<VideoBufferInfo> {
405
+ /**
406
+ * @generated from field: required livekit.proto.VideoBufferType type = 1;
407
+ */
408
+ type?: VideoBufferType;
409
+ /**
410
+ * @generated from field: required uint32 width = 2;
411
+ */
412
+ width?: number;
413
+ /**
414
+ * @generated from field: required uint32 height = 3;
415
+ */
416
+ height?: number;
417
+ /**
418
+ * @generated from field: required uint64 data_ptr = 4;
419
+ */
420
+ dataPtr?: bigint;
421
+ /**
422
+ * only for packed formats
423
+ *
424
+ * @generated from field: required uint32 stride = 6;
425
+ */
426
+ stride?: number;
427
+ /**
428
+ * @generated from field: repeated livekit.proto.VideoBufferInfo.ComponentInfo components = 7;
429
+ */
430
+ components: VideoBufferInfo_ComponentInfo[];
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
+ }
440
+ /**
441
+ * @generated from message livekit.proto.VideoBufferInfo.ComponentInfo
442
+ */
443
+ declare class VideoBufferInfo_ComponentInfo extends Message<VideoBufferInfo_ComponentInfo> {
444
+ /**
445
+ * @generated from field: required uint64 data_ptr = 1;
446
+ */
447
+ dataPtr?: bigint;
448
+ /**
449
+ * @generated from field: required uint32 stride = 2;
450
+ */
451
+ stride?: number;
452
+ /**
453
+ * @generated from field: required uint32 size = 3;
454
+ */
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
+ }
465
+ /**
466
+ * @generated from message livekit.proto.OwnedVideoBuffer
467
+ */
468
+ declare class OwnedVideoBuffer extends Message<OwnedVideoBuffer> {
469
+ /**
470
+ * @generated from field: required livekit.proto.FfiOwnedHandle handle = 1;
471
+ */
472
+ handle?: FfiOwnedHandle;
473
+ /**
474
+ * @generated from field: required livekit.proto.VideoBufferInfo info = 2;
475
+ */
476
+ info?: VideoBufferInfo;
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
+ }
486
+ /**
487
+ * @generated from message livekit.proto.VideoStreamInfo
488
+ */
489
+ declare class VideoStreamInfo extends Message<VideoStreamInfo> {
490
+ /**
491
+ * @generated from field: required livekit.proto.VideoStreamType type = 1;
492
+ */
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
+ }
503
+ /**
504
+ * @generated from message livekit.proto.OwnedVideoStream
505
+ */
506
+ declare class OwnedVideoStream extends Message<OwnedVideoStream> {
507
+ /**
508
+ * @generated from field: required livekit.proto.FfiOwnedHandle handle = 1;
509
+ */
510
+ handle?: FfiOwnedHandle;
511
+ /**
512
+ * @generated from field: required livekit.proto.VideoStreamInfo info = 2;
513
+ */
514
+ info?: VideoStreamInfo;
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
+ }
524
+ /**
525
+ * @generated from message livekit.proto.VideoStreamEvent
526
+ */
527
+ declare class VideoStreamEvent extends Message<VideoStreamEvent> {
528
+ /**
529
+ * @generated from field: required uint64 stream_handle = 1;
530
+ */
531
+ streamHandle?: bigint;
532
+ /**
533
+ * @generated from oneof livekit.proto.VideoStreamEvent.message
534
+ */
535
+ message: {
536
+ /**
537
+ * @generated from field: livekit.proto.VideoFrameReceived frame_received = 2;
538
+ */
539
+ value: VideoFrameReceived;
540
+ case: "frameReceived";
541
+ } | {
542
+ /**
543
+ * @generated from field: livekit.proto.VideoStreamEOS eos = 3;
544
+ */
545
+ value: VideoStreamEOS;
546
+ case: "eos";
547
+ } | {
548
+ case: undefined;
549
+ value?: undefined;
550
+ };
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
+ }
560
+ /**
561
+ * @generated from message livekit.proto.VideoFrameReceived
562
+ */
563
+ declare class VideoFrameReceived extends Message<VideoFrameReceived> {
564
+ /**
565
+ * @generated from field: required livekit.proto.OwnedVideoBuffer buffer = 1;
566
+ */
567
+ buffer?: OwnedVideoBuffer;
568
+ /**
569
+ * In microseconds
570
+ *
571
+ * @generated from field: required int64 timestamp_us = 2;
572
+ */
573
+ timestampUs?: bigint;
574
+ /**
575
+ * @generated from field: required livekit.proto.VideoRotation rotation = 3;
576
+ */
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
+ }
587
+ /**
588
+ * @generated from message livekit.proto.VideoStreamEOS
589
+ */
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
+ }
600
+ /**
601
+ * @generated from message livekit.proto.VideoSourceResolution
602
+ */
603
+ declare class VideoSourceResolution extends Message<VideoSourceResolution> {
604
+ /**
605
+ * @generated from field: required uint32 width = 1;
606
+ */
607
+ width?: number;
608
+ /**
609
+ * @generated from field: required uint32 height = 2;
610
+ */
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
+ }
621
+ /**
622
+ * @generated from message livekit.proto.VideoSourceInfo
623
+ */
624
+ declare class VideoSourceInfo extends Message<VideoSourceInfo> {
625
+ /**
626
+ * @generated from field: required livekit.proto.VideoSourceType type = 1;
627
+ */
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
+ }
638
+ /**
639
+ * @generated from message livekit.proto.OwnedVideoSource
640
+ */
641
+ declare class OwnedVideoSource extends Message<OwnedVideoSource> {
642
+ /**
643
+ * @generated from field: required livekit.proto.FfiOwnedHandle handle = 1;
644
+ */
645
+ handle?: FfiOwnedHandle;
646
+ /**
647
+ * @generated from field: required livekit.proto.VideoSourceInfo info = 2;
648
+ */
649
+ info?: VideoSourceInfo;
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;
658
+ }
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 };