@livekit/rtc-node 0.12.0 → 0.12.2

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 (80) hide show
  1. package/dist/audio_frame.d.cts +32 -0
  2. package/dist/audio_frame.d.ts +12 -5
  3. package/dist/audio_resampler.d.cts +60 -0
  4. package/dist/audio_resampler.d.ts +12 -3
  5. package/dist/audio_source.d.cts +37 -0
  6. package/dist/audio_source.d.ts +13 -5
  7. package/dist/audio_stream.d.cts +38 -0
  8. package/dist/audio_stream.d.ts +17 -5
  9. package/dist/e2ee.d.cts +48 -0
  10. package/dist/e2ee.d.ts +12 -8
  11. package/dist/ffi_client.cjs +0 -6
  12. package/dist/ffi_client.cjs.map +1 -1
  13. package/dist/ffi_client.d.cts +35 -0
  14. package/dist/ffi_client.d.ts +22 -10
  15. package/dist/ffi_client.d.ts.map +1 -1
  16. package/dist/ffi_client.js +0 -6
  17. package/dist/ffi_client.js.map +1 -1
  18. package/dist/index.cjs +0 -22
  19. package/dist/index.cjs.map +1 -1
  20. package/dist/index.d.cts +57 -0
  21. package/dist/index.d.ts +27 -19
  22. package/dist/index.d.ts.map +1 -1
  23. package/dist/index.js +9 -20
  24. package/dist/index.js.map +1 -1
  25. package/dist/napi/native.d.cjs.map +1 -1
  26. package/dist/napi/native.d.d.cts +21 -0
  27. package/dist/napi/native.d.d.ts +21 -0
  28. package/dist/napi/native.d.ts +5 -5
  29. package/dist/native.d.ts +5 -5
  30. package/dist/participant.d.cts +126 -0
  31. package/dist/participant.d.ts +28 -14
  32. package/dist/proto/audio_frame_pb.d.cts +813 -0
  33. package/dist/proto/audio_frame_pb.d.ts +90 -86
  34. package/dist/proto/e2ee_pb.d.cts +585 -0
  35. package/dist/proto/e2ee_pb.d.ts +60 -58
  36. package/dist/proto/ffi_pb.d.cts +851 -0
  37. package/dist/proto/ffi_pb.d.ts +35 -30
  38. package/dist/proto/handle_pb.d.cts +33 -0
  39. package/dist/proto/handle_pb.d.ts +8 -6
  40. package/dist/proto/participant_pb.d.cts +93 -0
  41. package/dist/proto/participant_pb.d.ts +13 -11
  42. package/dist/proto/room_pb.d.cts +2072 -0
  43. package/dist/proto/room_pb.d.ts +198 -196
  44. package/dist/proto/rpc_pb.d.cts +237 -0
  45. package/dist/proto/rpc_pb.d.ts +28 -26
  46. package/dist/proto/stats_pb.d.cts +1653 -0
  47. package/dist/proto/stats_pb.d.ts +96 -94
  48. package/dist/proto/track_pb.d.cts +402 -0
  49. package/dist/proto/track_pb.d.ts +47 -45
  50. package/dist/proto/video_frame_pb.d.cts +617 -0
  51. package/dist/proto/video_frame_pb.d.ts +64 -60
  52. package/dist/room.d.cts +134 -0
  53. package/dist/room.d.ts +36 -22
  54. package/dist/rpc.d.cts +82 -0
  55. package/dist/rpc.d.ts +11 -7
  56. package/dist/track.d.cts +46 -0
  57. package/dist/track.d.ts +25 -14
  58. package/dist/track_publication.d.cts +48 -0
  59. package/dist/track_publication.d.ts +20 -8
  60. package/dist/transcription.d.cts +15 -0
  61. package/dist/transcription.d.ts +4 -3
  62. package/dist/types.d.cts +9 -0
  63. package/dist/types.d.ts +3 -2
  64. package/dist/version.cjs +1 -1
  65. package/dist/version.cjs.map +1 -1
  66. package/dist/version.d.cts +3 -0
  67. package/dist/version.d.ts +3 -2
  68. package/dist/version.js +1 -1
  69. package/dist/version.js.map +1 -1
  70. package/dist/video_frame.d.cts +25 -0
  71. package/dist/video_frame.d.ts +11 -4
  72. package/dist/video_source.d.cts +22 -0
  73. package/dist/video_source.d.ts +13 -6
  74. package/dist/video_stream.d.cts +41 -0
  75. package/dist/video_stream.d.ts +18 -6
  76. package/package.json +14 -9
  77. package/src/ffi_client.ts +4 -4
  78. package/src/index.ts +14 -8
  79. package/src/napi/native.d.ts +5 -5
  80. package/src/version.ts +1 -1
@@ -1,18 +1,21 @@
1
- import type { GenEnum, GenFile, GenMessage } from "@bufbuild/protobuf/codegenv1";
2
- import type { FfiOwnedHandle } from "./handle_pb.js";
3
- import type { TrackSource } from "./track_pb.js";
4
- import type { Message } from "@bufbuild/protobuf";
1
+ import { GenFile, GenMessage, GenEnum } from '@bufbuild/protobuf/codegenv1';
2
+ import { FfiOwnedHandle } from './handle_pb.js';
3
+ import { TrackSource } from './track_pb.js';
4
+ import { Message } from '@bufbuild/protobuf';
5
+ import './e2ee_pb.js';
6
+ import './stats_pb.js';
7
+
5
8
  /**
6
9
  * Describes the file video_frame.proto.
7
10
  */
8
- export declare const file_video_frame: GenFile;
11
+ declare const file_video_frame: GenFile;
9
12
  /**
10
13
  * Create a new VideoStream
11
14
  * VideoStream is used to receive video frames from a track
12
15
  *
13
16
  * @generated from message livekit.proto.NewVideoStreamRequest
14
17
  */
15
- export type NewVideoStreamRequest = Message<"livekit.proto.NewVideoStreamRequest"> & {
18
+ type NewVideoStreamRequest = Message<"livekit.proto.NewVideoStreamRequest"> & {
16
19
  /**
17
20
  * @generated from field: required uint64 track_handle = 1;
18
21
  */
@@ -38,11 +41,11 @@ export type NewVideoStreamRequest = Message<"livekit.proto.NewVideoStreamRequest
38
41
  * Describes the message livekit.proto.NewVideoStreamRequest.
39
42
  * Use `create(NewVideoStreamRequestSchema)` to create a new message.
40
43
  */
41
- export declare const NewVideoStreamRequestSchema: GenMessage<NewVideoStreamRequest>;
44
+ declare const NewVideoStreamRequestSchema: GenMessage<NewVideoStreamRequest>;
42
45
  /**
43
46
  * @generated from message livekit.proto.NewVideoStreamResponse
44
47
  */
45
- export type NewVideoStreamResponse = Message<"livekit.proto.NewVideoStreamResponse"> & {
48
+ type NewVideoStreamResponse = Message<"livekit.proto.NewVideoStreamResponse"> & {
46
49
  /**
47
50
  * @generated from field: required livekit.proto.OwnedVideoStream stream = 1;
48
51
  */
@@ -52,13 +55,13 @@ export type NewVideoStreamResponse = Message<"livekit.proto.NewVideoStreamRespon
52
55
  * Describes the message livekit.proto.NewVideoStreamResponse.
53
56
  * Use `create(NewVideoStreamResponseSchema)` to create a new message.
54
57
  */
55
- export declare const NewVideoStreamResponseSchema: GenMessage<NewVideoStreamResponse>;
58
+ declare const NewVideoStreamResponseSchema: GenMessage<NewVideoStreamResponse>;
56
59
  /**
57
60
  * Request a video stream from a participant
58
61
  *
59
62
  * @generated from message livekit.proto.VideoStreamFromParticipantRequest
60
63
  */
61
- export type VideoStreamFromParticipantRequest = Message<"livekit.proto.VideoStreamFromParticipantRequest"> & {
64
+ type VideoStreamFromParticipantRequest = Message<"livekit.proto.VideoStreamFromParticipantRequest"> & {
62
65
  /**
63
66
  * @generated from field: required uint64 participant_handle = 1;
64
67
  */
@@ -84,11 +87,11 @@ export type VideoStreamFromParticipantRequest = Message<"livekit.proto.VideoStre
84
87
  * Describes the message livekit.proto.VideoStreamFromParticipantRequest.
85
88
  * Use `create(VideoStreamFromParticipantRequestSchema)` to create a new message.
86
89
  */
87
- export declare const VideoStreamFromParticipantRequestSchema: GenMessage<VideoStreamFromParticipantRequest>;
90
+ declare const VideoStreamFromParticipantRequestSchema: GenMessage<VideoStreamFromParticipantRequest>;
88
91
  /**
89
92
  * @generated from message livekit.proto.VideoStreamFromParticipantResponse
90
93
  */
91
- export type VideoStreamFromParticipantResponse = Message<"livekit.proto.VideoStreamFromParticipantResponse"> & {
94
+ type VideoStreamFromParticipantResponse = Message<"livekit.proto.VideoStreamFromParticipantResponse"> & {
92
95
  /**
93
96
  * @generated from field: required livekit.proto.OwnedVideoStream stream = 1;
94
97
  */
@@ -98,14 +101,14 @@ export type VideoStreamFromParticipantResponse = Message<"livekit.proto.VideoStr
98
101
  * Describes the message livekit.proto.VideoStreamFromParticipantResponse.
99
102
  * Use `create(VideoStreamFromParticipantResponseSchema)` to create a new message.
100
103
  */
101
- export declare const VideoStreamFromParticipantResponseSchema: GenMessage<VideoStreamFromParticipantResponse>;
104
+ declare const VideoStreamFromParticipantResponseSchema: GenMessage<VideoStreamFromParticipantResponse>;
102
105
  /**
103
106
  * Create a new VideoSource
104
107
  * VideoSource is used to send video frame to a track
105
108
  *
106
109
  * @generated from message livekit.proto.NewVideoSourceRequest
107
110
  */
108
- export type NewVideoSourceRequest = Message<"livekit.proto.NewVideoSourceRequest"> & {
111
+ type NewVideoSourceRequest = Message<"livekit.proto.NewVideoSourceRequest"> & {
109
112
  /**
110
113
  * @generated from field: required livekit.proto.VideoSourceType type = 1;
111
114
  */
@@ -122,11 +125,11 @@ export type NewVideoSourceRequest = Message<"livekit.proto.NewVideoSourceRequest
122
125
  * Describes the message livekit.proto.NewVideoSourceRequest.
123
126
  * Use `create(NewVideoSourceRequestSchema)` to create a new message.
124
127
  */
125
- export declare const NewVideoSourceRequestSchema: GenMessage<NewVideoSourceRequest>;
128
+ declare const NewVideoSourceRequestSchema: GenMessage<NewVideoSourceRequest>;
126
129
  /**
127
130
  * @generated from message livekit.proto.NewVideoSourceResponse
128
131
  */
129
- export type NewVideoSourceResponse = Message<"livekit.proto.NewVideoSourceResponse"> & {
132
+ type NewVideoSourceResponse = Message<"livekit.proto.NewVideoSourceResponse"> & {
130
133
  /**
131
134
  * @generated from field: required livekit.proto.OwnedVideoSource source = 1;
132
135
  */
@@ -136,13 +139,13 @@ export type NewVideoSourceResponse = Message<"livekit.proto.NewVideoSourceRespon
136
139
  * Describes the message livekit.proto.NewVideoSourceResponse.
137
140
  * Use `create(NewVideoSourceResponseSchema)` to create a new message.
138
141
  */
139
- export declare const NewVideoSourceResponseSchema: GenMessage<NewVideoSourceResponse>;
142
+ declare const NewVideoSourceResponseSchema: GenMessage<NewVideoSourceResponse>;
140
143
  /**
141
144
  * Push a frame to a VideoSource
142
145
  *
143
146
  * @generated from message livekit.proto.CaptureVideoFrameRequest
144
147
  */
145
- export type CaptureVideoFrameRequest = Message<"livekit.proto.CaptureVideoFrameRequest"> & {
148
+ type CaptureVideoFrameRequest = Message<"livekit.proto.CaptureVideoFrameRequest"> & {
146
149
  /**
147
150
  * @generated from field: required uint64 source_handle = 1;
148
151
  */
@@ -166,20 +169,20 @@ export type CaptureVideoFrameRequest = Message<"livekit.proto.CaptureVideoFrameR
166
169
  * Describes the message livekit.proto.CaptureVideoFrameRequest.
167
170
  * Use `create(CaptureVideoFrameRequestSchema)` to create a new message.
168
171
  */
169
- export declare const CaptureVideoFrameRequestSchema: GenMessage<CaptureVideoFrameRequest>;
172
+ declare const CaptureVideoFrameRequestSchema: GenMessage<CaptureVideoFrameRequest>;
170
173
  /**
171
174
  * @generated from message livekit.proto.CaptureVideoFrameResponse
172
175
  */
173
- export type CaptureVideoFrameResponse = Message<"livekit.proto.CaptureVideoFrameResponse"> & {};
176
+ type CaptureVideoFrameResponse = Message<"livekit.proto.CaptureVideoFrameResponse"> & {};
174
177
  /**
175
178
  * Describes the message livekit.proto.CaptureVideoFrameResponse.
176
179
  * Use `create(CaptureVideoFrameResponseSchema)` to create a new message.
177
180
  */
178
- export declare const CaptureVideoFrameResponseSchema: GenMessage<CaptureVideoFrameResponse>;
181
+ declare const CaptureVideoFrameResponseSchema: GenMessage<CaptureVideoFrameResponse>;
179
182
  /**
180
183
  * @generated from message livekit.proto.VideoConvertRequest
181
184
  */
182
- export type VideoConvertRequest = Message<"livekit.proto.VideoConvertRequest"> & {
185
+ type VideoConvertRequest = Message<"livekit.proto.VideoConvertRequest"> & {
183
186
  /**
184
187
  * @generated from field: optional bool flip_y = 1;
185
188
  */
@@ -197,11 +200,11 @@ export type VideoConvertRequest = Message<"livekit.proto.VideoConvertRequest"> &
197
200
  * Describes the message livekit.proto.VideoConvertRequest.
198
201
  * Use `create(VideoConvertRequestSchema)` to create a new message.
199
202
  */
200
- export declare const VideoConvertRequestSchema: GenMessage<VideoConvertRequest>;
203
+ declare const VideoConvertRequestSchema: GenMessage<VideoConvertRequest>;
201
204
  /**
202
205
  * @generated from message livekit.proto.VideoConvertResponse
203
206
  */
204
- export type VideoConvertResponse = Message<"livekit.proto.VideoConvertResponse"> & {
207
+ type VideoConvertResponse = Message<"livekit.proto.VideoConvertResponse"> & {
205
208
  /**
206
209
  * @generated from oneof livekit.proto.VideoConvertResponse.message
207
210
  */
@@ -226,11 +229,11 @@ export type VideoConvertResponse = Message<"livekit.proto.VideoConvertResponse">
226
229
  * Describes the message livekit.proto.VideoConvertResponse.
227
230
  * Use `create(VideoConvertResponseSchema)` to create a new message.
228
231
  */
229
- export declare const VideoConvertResponseSchema: GenMessage<VideoConvertResponse>;
232
+ declare const VideoConvertResponseSchema: GenMessage<VideoConvertResponse>;
230
233
  /**
231
234
  * @generated from message livekit.proto.VideoResolution
232
235
  */
233
- export type VideoResolution = Message<"livekit.proto.VideoResolution"> & {
236
+ type VideoResolution = Message<"livekit.proto.VideoResolution"> & {
234
237
  /**
235
238
  * @generated from field: required uint32 width = 1;
236
239
  */
@@ -248,11 +251,11 @@ export type VideoResolution = Message<"livekit.proto.VideoResolution"> & {
248
251
  * Describes the message livekit.proto.VideoResolution.
249
252
  * Use `create(VideoResolutionSchema)` to create a new message.
250
253
  */
251
- export declare const VideoResolutionSchema: GenMessage<VideoResolution>;
254
+ declare const VideoResolutionSchema: GenMessage<VideoResolution>;
252
255
  /**
253
256
  * @generated from message livekit.proto.VideoBufferInfo
254
257
  */
255
- export type VideoBufferInfo = Message<"livekit.proto.VideoBufferInfo"> & {
258
+ type VideoBufferInfo = Message<"livekit.proto.VideoBufferInfo"> & {
256
259
  /**
257
260
  * @generated from field: required livekit.proto.VideoBufferType type = 1;
258
261
  */
@@ -284,11 +287,11 @@ export type VideoBufferInfo = Message<"livekit.proto.VideoBufferInfo"> & {
284
287
  * Describes the message livekit.proto.VideoBufferInfo.
285
288
  * Use `create(VideoBufferInfoSchema)` to create a new message.
286
289
  */
287
- export declare const VideoBufferInfoSchema: GenMessage<VideoBufferInfo>;
290
+ declare const VideoBufferInfoSchema: GenMessage<VideoBufferInfo>;
288
291
  /**
289
292
  * @generated from message livekit.proto.VideoBufferInfo.ComponentInfo
290
293
  */
291
- export type VideoBufferInfo_ComponentInfo = Message<"livekit.proto.VideoBufferInfo.ComponentInfo"> & {
294
+ type VideoBufferInfo_ComponentInfo = Message<"livekit.proto.VideoBufferInfo.ComponentInfo"> & {
292
295
  /**
293
296
  * @generated from field: required uint64 data_ptr = 1;
294
297
  */
@@ -306,11 +309,11 @@ export type VideoBufferInfo_ComponentInfo = Message<"livekit.proto.VideoBufferIn
306
309
  * Describes the message livekit.proto.VideoBufferInfo.ComponentInfo.
307
310
  * Use `create(VideoBufferInfo_ComponentInfoSchema)` to create a new message.
308
311
  */
309
- export declare const VideoBufferInfo_ComponentInfoSchema: GenMessage<VideoBufferInfo_ComponentInfo>;
312
+ declare const VideoBufferInfo_ComponentInfoSchema: GenMessage<VideoBufferInfo_ComponentInfo>;
310
313
  /**
311
314
  * @generated from message livekit.proto.OwnedVideoBuffer
312
315
  */
313
- export type OwnedVideoBuffer = Message<"livekit.proto.OwnedVideoBuffer"> & {
316
+ type OwnedVideoBuffer = Message<"livekit.proto.OwnedVideoBuffer"> & {
314
317
  /**
315
318
  * @generated from field: required livekit.proto.FfiOwnedHandle handle = 1;
316
319
  */
@@ -324,11 +327,11 @@ export type OwnedVideoBuffer = Message<"livekit.proto.OwnedVideoBuffer"> & {
324
327
  * Describes the message livekit.proto.OwnedVideoBuffer.
325
328
  * Use `create(OwnedVideoBufferSchema)` to create a new message.
326
329
  */
327
- export declare const OwnedVideoBufferSchema: GenMessage<OwnedVideoBuffer>;
330
+ declare const OwnedVideoBufferSchema: GenMessage<OwnedVideoBuffer>;
328
331
  /**
329
332
  * @generated from message livekit.proto.VideoStreamInfo
330
333
  */
331
- export type VideoStreamInfo = Message<"livekit.proto.VideoStreamInfo"> & {
334
+ type VideoStreamInfo = Message<"livekit.proto.VideoStreamInfo"> & {
332
335
  /**
333
336
  * @generated from field: required livekit.proto.VideoStreamType type = 1;
334
337
  */
@@ -338,11 +341,11 @@ export type VideoStreamInfo = Message<"livekit.proto.VideoStreamInfo"> & {
338
341
  * Describes the message livekit.proto.VideoStreamInfo.
339
342
  * Use `create(VideoStreamInfoSchema)` to create a new message.
340
343
  */
341
- export declare const VideoStreamInfoSchema: GenMessage<VideoStreamInfo>;
344
+ declare const VideoStreamInfoSchema: GenMessage<VideoStreamInfo>;
342
345
  /**
343
346
  * @generated from message livekit.proto.OwnedVideoStream
344
347
  */
345
- export type OwnedVideoStream = Message<"livekit.proto.OwnedVideoStream"> & {
348
+ type OwnedVideoStream = Message<"livekit.proto.OwnedVideoStream"> & {
346
349
  /**
347
350
  * @generated from field: required livekit.proto.FfiOwnedHandle handle = 1;
348
351
  */
@@ -356,11 +359,11 @@ export type OwnedVideoStream = Message<"livekit.proto.OwnedVideoStream"> & {
356
359
  * Describes the message livekit.proto.OwnedVideoStream.
357
360
  * Use `create(OwnedVideoStreamSchema)` to create a new message.
358
361
  */
359
- export declare const OwnedVideoStreamSchema: GenMessage<OwnedVideoStream>;
362
+ declare const OwnedVideoStreamSchema: GenMessage<OwnedVideoStream>;
360
363
  /**
361
364
  * @generated from message livekit.proto.VideoStreamEvent
362
365
  */
363
- export type VideoStreamEvent = Message<"livekit.proto.VideoStreamEvent"> & {
366
+ type VideoStreamEvent = Message<"livekit.proto.VideoStreamEvent"> & {
364
367
  /**
365
368
  * @generated from field: required uint64 stream_handle = 1;
366
369
  */
@@ -389,11 +392,11 @@ export type VideoStreamEvent = Message<"livekit.proto.VideoStreamEvent"> & {
389
392
  * Describes the message livekit.proto.VideoStreamEvent.
390
393
  * Use `create(VideoStreamEventSchema)` to create a new message.
391
394
  */
392
- export declare const VideoStreamEventSchema: GenMessage<VideoStreamEvent>;
395
+ declare const VideoStreamEventSchema: GenMessage<VideoStreamEvent>;
393
396
  /**
394
397
  * @generated from message livekit.proto.VideoFrameReceived
395
398
  */
396
- export type VideoFrameReceived = Message<"livekit.proto.VideoFrameReceived"> & {
399
+ type VideoFrameReceived = Message<"livekit.proto.VideoFrameReceived"> & {
397
400
  /**
398
401
  * @generated from field: required livekit.proto.OwnedVideoBuffer buffer = 1;
399
402
  */
@@ -413,20 +416,20 @@ export type VideoFrameReceived = Message<"livekit.proto.VideoFrameReceived"> & {
413
416
  * Describes the message livekit.proto.VideoFrameReceived.
414
417
  * Use `create(VideoFrameReceivedSchema)` to create a new message.
415
418
  */
416
- export declare const VideoFrameReceivedSchema: GenMessage<VideoFrameReceived>;
419
+ declare const VideoFrameReceivedSchema: GenMessage<VideoFrameReceived>;
417
420
  /**
418
421
  * @generated from message livekit.proto.VideoStreamEOS
419
422
  */
420
- export type VideoStreamEOS = Message<"livekit.proto.VideoStreamEOS"> & {};
423
+ type VideoStreamEOS = Message<"livekit.proto.VideoStreamEOS"> & {};
421
424
  /**
422
425
  * Describes the message livekit.proto.VideoStreamEOS.
423
426
  * Use `create(VideoStreamEOSSchema)` to create a new message.
424
427
  */
425
- export declare const VideoStreamEOSSchema: GenMessage<VideoStreamEOS>;
428
+ declare const VideoStreamEOSSchema: GenMessage<VideoStreamEOS>;
426
429
  /**
427
430
  * @generated from message livekit.proto.VideoSourceResolution
428
431
  */
429
- export type VideoSourceResolution = Message<"livekit.proto.VideoSourceResolution"> & {
432
+ type VideoSourceResolution = Message<"livekit.proto.VideoSourceResolution"> & {
430
433
  /**
431
434
  * @generated from field: required uint32 width = 1;
432
435
  */
@@ -440,11 +443,11 @@ export type VideoSourceResolution = Message<"livekit.proto.VideoSourceResolution
440
443
  * Describes the message livekit.proto.VideoSourceResolution.
441
444
  * Use `create(VideoSourceResolutionSchema)` to create a new message.
442
445
  */
443
- export declare const VideoSourceResolutionSchema: GenMessage<VideoSourceResolution>;
446
+ declare const VideoSourceResolutionSchema: GenMessage<VideoSourceResolution>;
444
447
  /**
445
448
  * @generated from message livekit.proto.VideoSourceInfo
446
449
  */
447
- export type VideoSourceInfo = Message<"livekit.proto.VideoSourceInfo"> & {
450
+ type VideoSourceInfo = Message<"livekit.proto.VideoSourceInfo"> & {
448
451
  /**
449
452
  * @generated from field: required livekit.proto.VideoSourceType type = 1;
450
453
  */
@@ -454,11 +457,11 @@ export type VideoSourceInfo = Message<"livekit.proto.VideoSourceInfo"> & {
454
457
  * Describes the message livekit.proto.VideoSourceInfo.
455
458
  * Use `create(VideoSourceInfoSchema)` to create a new message.
456
459
  */
457
- export declare const VideoSourceInfoSchema: GenMessage<VideoSourceInfo>;
460
+ declare const VideoSourceInfoSchema: GenMessage<VideoSourceInfo>;
458
461
  /**
459
462
  * @generated from message livekit.proto.OwnedVideoSource
460
463
  */
461
- export type OwnedVideoSource = Message<"livekit.proto.OwnedVideoSource"> & {
464
+ type OwnedVideoSource = Message<"livekit.proto.OwnedVideoSource"> & {
462
465
  /**
463
466
  * @generated from field: required livekit.proto.FfiOwnedHandle handle = 1;
464
467
  */
@@ -472,11 +475,11 @@ export type OwnedVideoSource = Message<"livekit.proto.OwnedVideoSource"> & {
472
475
  * Describes the message livekit.proto.OwnedVideoSource.
473
476
  * Use `create(OwnedVideoSourceSchema)` to create a new message.
474
477
  */
475
- export declare const OwnedVideoSourceSchema: GenMessage<OwnedVideoSource>;
478
+ declare const OwnedVideoSourceSchema: GenMessage<OwnedVideoSource>;
476
479
  /**
477
480
  * @generated from enum livekit.proto.VideoCodec
478
481
  */
479
- export declare enum VideoCodec {
482
+ declare enum VideoCodec {
480
483
  /**
481
484
  * @generated from enum value: VP8 = 0;
482
485
  */
@@ -497,11 +500,11 @@ export declare enum VideoCodec {
497
500
  /**
498
501
  * Describes the enum livekit.proto.VideoCodec.
499
502
  */
500
- export declare const VideoCodecSchema: GenEnum<VideoCodec>;
503
+ declare const VideoCodecSchema: GenEnum<VideoCodec>;
501
504
  /**
502
505
  * @generated from enum livekit.proto.VideoRotation
503
506
  */
504
- export declare enum VideoRotation {
507
+ declare enum VideoRotation {
505
508
  /**
506
509
  * @generated from enum value: VIDEO_ROTATION_0 = 0;
507
510
  */
@@ -522,11 +525,11 @@ export declare enum VideoRotation {
522
525
  /**
523
526
  * Describes the enum livekit.proto.VideoRotation.
524
527
  */
525
- export declare const VideoRotationSchema: GenEnum<VideoRotation>;
528
+ declare const VideoRotationSchema: GenEnum<VideoRotation>;
526
529
  /**
527
530
  * @generated from enum livekit.proto.VideoBufferType
528
531
  */
529
- export declare enum VideoBufferType {
532
+ declare enum VideoBufferType {
530
533
  /**
531
534
  * @generated from enum value: RGBA = 0;
532
535
  */
@@ -575,11 +578,11 @@ export declare enum VideoBufferType {
575
578
  /**
576
579
  * Describes the enum livekit.proto.VideoBufferType.
577
580
  */
578
- export declare const VideoBufferTypeSchema: GenEnum<VideoBufferType>;
581
+ declare const VideoBufferTypeSchema: GenEnum<VideoBufferType>;
579
582
  /**
580
583
  * @generated from enum livekit.proto.VideoStreamType
581
584
  */
582
- export declare enum VideoStreamType {
585
+ declare enum VideoStreamType {
583
586
  /**
584
587
  * @generated from enum value: VIDEO_STREAM_NATIVE = 0;
585
588
  */
@@ -596,11 +599,11 @@ export declare enum VideoStreamType {
596
599
  /**
597
600
  * Describes the enum livekit.proto.VideoStreamType.
598
601
  */
599
- export declare const VideoStreamTypeSchema: GenEnum<VideoStreamType>;
602
+ declare const VideoStreamTypeSchema: GenEnum<VideoStreamType>;
600
603
  /**
601
604
  * @generated from enum livekit.proto.VideoSourceType
602
605
  */
603
- export declare enum VideoSourceType {
606
+ declare enum VideoSourceType {
604
607
  /**
605
608
  * @generated from enum value: VIDEO_SOURCE_NATIVE = 0;
606
609
  */
@@ -609,5 +612,6 @@ export declare enum VideoSourceType {
609
612
  /**
610
613
  * Describes the enum livekit.proto.VideoSourceType.
611
614
  */
612
- export declare const VideoSourceTypeSchema: GenEnum<VideoSourceType>;
613
- //# sourceMappingURL=video_frame_pb.d.ts.map
615
+ declare const VideoSourceTypeSchema: GenEnum<VideoSourceType>;
616
+
617
+ export { type CaptureVideoFrameRequest, CaptureVideoFrameRequestSchema, type CaptureVideoFrameResponse, CaptureVideoFrameResponseSchema, type NewVideoSourceRequest, NewVideoSourceRequestSchema, type NewVideoSourceResponse, NewVideoSourceResponseSchema, type NewVideoStreamRequest, NewVideoStreamRequestSchema, type NewVideoStreamResponse, NewVideoStreamResponseSchema, type OwnedVideoBuffer, OwnedVideoBufferSchema, type OwnedVideoSource, OwnedVideoSourceSchema, type OwnedVideoStream, OwnedVideoStreamSchema, type VideoBufferInfo, VideoBufferInfoSchema, type VideoBufferInfo_ComponentInfo, VideoBufferInfo_ComponentInfoSchema, VideoBufferType, VideoBufferTypeSchema, VideoCodec, VideoCodecSchema, type VideoConvertRequest, VideoConvertRequestSchema, type VideoConvertResponse, VideoConvertResponseSchema, type VideoFrameReceived, VideoFrameReceivedSchema, type VideoResolution, VideoResolutionSchema, VideoRotation, VideoRotationSchema, type VideoSourceInfo, VideoSourceInfoSchema, type VideoSourceResolution, VideoSourceResolutionSchema, VideoSourceType, VideoSourceTypeSchema, type VideoStreamEOS, VideoStreamEOSSchema, type VideoStreamEvent, VideoStreamEventSchema, type VideoStreamFromParticipantRequest, VideoStreamFromParticipantRequestSchema, type VideoStreamFromParticipantResponse, VideoStreamFromParticipantResponseSchema, type VideoStreamInfo, VideoStreamInfoSchema, VideoStreamType, VideoStreamTypeSchema, file_video_frame };
@@ -0,0 +1,134 @@
1
+ import { TypedEventEmitter } from '@livekit/typed-emitter';
2
+ import { E2EEOptions, E2EEManager } from './e2ee.cjs';
3
+ import { RemoteParticipant, LocalParticipant, Participant } from './participant.cjs';
4
+ import { IceTransportType, ContinualGatheringPolicy, IceServer, ConnectionState, RoomInfo, ConnectionQuality, DataPacketKind, DisconnectReason } from './proto/room_pb.cjs';
5
+ import { LocalTrack, RemoteTrack } from './track.cjs';
6
+ import { LocalTrackPublication, RemoteTrackPublication, TrackPublication } from './track_publication.cjs';
7
+ import { ChatMessage } from './types.cjs';
8
+ import './proto/e2ee_pb.cjs';
9
+ import '@bufbuild/protobuf/codegenv1';
10
+ import '@bufbuild/protobuf';
11
+ import './napi/native.d.cjs';
12
+ import './proto/participant_pb.cjs';
13
+ import './proto/handle_pb.cjs';
14
+ import './rpc.cjs';
15
+ import './proto/rpc_pb.cjs';
16
+ import './transcription.cjs';
17
+ import './proto/track_pb.cjs';
18
+ import './proto/stats_pb.cjs';
19
+ import './proto/video_frame_pb.cjs';
20
+ import './audio_source.cjs';
21
+ import './audio_frame.cjs';
22
+ import './proto/audio_frame_pb.cjs';
23
+ import './video_source.cjs';
24
+ import './video_frame.cjs';
25
+
26
+ interface RtcConfiguration {
27
+ iceTransportType: IceTransportType;
28
+ continualGatheringPolicy: ContinualGatheringPolicy;
29
+ iceServers: IceServer[];
30
+ }
31
+ declare const defaultRtcConfiguration: RtcConfiguration;
32
+ interface RoomOptions {
33
+ autoSubscribe: boolean;
34
+ dynacast: boolean;
35
+ e2ee?: E2EEOptions;
36
+ rtcConfig?: RtcConfiguration;
37
+ }
38
+ declare const defaultRoomOptions: {
39
+ autoSubscribe: true;
40
+ dynacast: false;
41
+ e2ee: undefined;
42
+ rtcConfig: undefined;
43
+ adaptiveStream: false;
44
+ joinRetries: number;
45
+ };
46
+ declare const Room_base: new () => TypedEventEmitter<RoomCallbacks>;
47
+ declare class Room extends Room_base {
48
+ private info?;
49
+ private ffiHandle?;
50
+ e2eeManager?: E2EEManager;
51
+ connectionState: ConnectionState;
52
+ remoteParticipants: Map<string, RemoteParticipant>;
53
+ localParticipant?: LocalParticipant;
54
+ constructor();
55
+ get name(): string | undefined;
56
+ get metadata(): string | undefined;
57
+ get isConnected(): boolean;
58
+ getSid(): Promise<string>;
59
+ connect(url: string, token: string, opts?: RoomOptions): Promise<void>;
60
+ disconnect(): Promise<void>;
61
+ private onFfiEvent;
62
+ private retrieveParticipantByIdentity;
63
+ private requireParticipantByIdentity;
64
+ private requireRemoteParticipant;
65
+ private requirePublicationOfParticipant;
66
+ private requirePublicationOfRemoteParticipant;
67
+ private createRemoteParticipant;
68
+ }
69
+ declare class ConnectError extends Error {
70
+ constructor(message: string);
71
+ }
72
+ type RoomCallbacks = {
73
+ participantConnected: (participant: RemoteParticipant) => void;
74
+ participantDisconnected: (participant: RemoteParticipant) => void;
75
+ localTrackPublished: (publication: LocalTrackPublication, participant: LocalParticipant) => void;
76
+ localTrackUnpublished: (publication: LocalTrackPublication, participant: LocalParticipant) => void;
77
+ localTrackSubscribed: (track: LocalTrack) => void;
78
+ trackPublished: (publication: RemoteTrackPublication, participant: RemoteParticipant) => void;
79
+ trackUnpublished: (publication: RemoteTrackPublication, participant: RemoteParticipant) => void;
80
+ trackSubscribed: (track: RemoteTrack, publication: RemoteTrackPublication, participant: RemoteParticipant) => void;
81
+ trackUnsubscribed: (track: RemoteTrack, publication: RemoteTrackPublication, participant: RemoteParticipant) => void;
82
+ trackSubscriptionFailed: (trackSid: string, participant: RemoteParticipant, reason?: string) => void;
83
+ trackMuted: (publication: TrackPublication, participant: Participant) => void;
84
+ trackUnmuted: (publication: TrackPublication, participant: Participant) => void;
85
+ activeSpeakersChanged: (speakers: Participant[]) => void;
86
+ roomMetadataChanged: (metadata: string) => void;
87
+ roomInfoUpdated: (info: RoomInfo) => void;
88
+ participantMetadataChanged: (metadata: string | undefined, participant: Participant) => void;
89
+ participantNameChanged: (name: string, participant: Participant) => void;
90
+ participantAttributesChanged: (changedAttributes: Record<string, string>, participant: Participant) => void;
91
+ connectionQualityChanged: (quality: ConnectionQuality, participant: Participant) => void;
92
+ dataReceived: (payload: Uint8Array, participant?: RemoteParticipant, kind?: DataPacketKind, topic?: string) => void;
93
+ chatMessage: (message: ChatMessage, participant?: Participant) => void;
94
+ dtmfReceived: (code: number, digit: string, participant?: RemoteParticipant) => void;
95
+ encryptionError: (error: Error) => void;
96
+ connectionStateChanged: (state: ConnectionState) => void;
97
+ connected: () => void;
98
+ disconnected: (reason: DisconnectReason) => void;
99
+ reconnecting: () => void;
100
+ reconnected: () => void;
101
+ roomSidChanged: (sid: string) => void;
102
+ };
103
+ declare enum RoomEvent {
104
+ ParticipantConnected = "participantConnected",
105
+ ParticipantDisconnected = "participantDisconnected",
106
+ LocalTrackPublished = "localTrackPublished",
107
+ LocalTrackUnpublished = "localTrackUnpublished",
108
+ LocalTrackSubscribed = "localTrackSubscribed",
109
+ TrackPublished = "trackPublished",
110
+ TrackUnpublished = "trackUnpublished",
111
+ TrackSubscribed = "trackSubscribed",
112
+ TrackUnsubscribed = "trackUnsubscribed",
113
+ TrackSubscriptionFailed = "trackSubscriptionFailed",
114
+ TrackMuted = "trackMuted",
115
+ TrackUnmuted = "trackUnmuted",
116
+ ActiveSpeakersChanged = "activeSpeakersChanged",
117
+ RoomMetadataChanged = "roomMetadataChanged",
118
+ RoomSidChanged = "roomSidChanged",
119
+ ParticipantMetadataChanged = "participantMetadataChanged",
120
+ ParticipantNameChanged = "participantNameChanged",
121
+ ParticipantAttributesChanged = "participantAttributesChanged",
122
+ ConnectionQualityChanged = "connectionQualityChanged",
123
+ DataReceived = "dataReceived",
124
+ ChatMessage = "chatMessage",
125
+ DtmfReceived = "dtmfReceived",
126
+ EncryptionError = "encryptionError",
127
+ ConnectionStateChanged = "connectionStateChanged",
128
+ Connected = "connected",
129
+ Disconnected = "disconnected",
130
+ Reconnecting = "reconnecting",
131
+ Reconnected = "reconnected"
132
+ }
133
+
134
+ export { ConnectError, Room, type RoomCallbacks, RoomEvent, type RoomOptions, type RtcConfiguration, defaultRoomOptions, defaultRtcConfiguration };
package/dist/room.d.ts CHANGED
@@ -1,27 +1,41 @@
1
- import type { TypedEventEmitter as TypedEmitter } from '@livekit/typed-emitter';
2
- import type { E2EEOptions } from './e2ee.js';
3
- import { E2EEManager } from './e2ee.js';
4
- import type { Participant } from './participant.js';
5
- import { LocalParticipant, RemoteParticipant } from './participant.js';
6
- import type { ConnectionQuality, DataPacketKind, DisconnectReason, IceServer, RoomInfo } from './proto/room_pb.js';
7
- import { ConnectionState, ContinualGatheringPolicy, IceTransportType } from './proto/room_pb.js';
8
- import type { LocalTrack, RemoteTrack } from './track.js';
9
- import type { LocalTrackPublication, TrackPublication } from './track_publication.js';
10
- import { RemoteTrackPublication } from './track_publication.js';
11
- import type { ChatMessage } from './types.js';
12
- export interface RtcConfiguration {
1
+ import { TypedEventEmitter } from '@livekit/typed-emitter';
2
+ import { E2EEOptions, E2EEManager } from './e2ee.js';
3
+ import { RemoteParticipant, LocalParticipant, Participant } from './participant.js';
4
+ import { IceTransportType, ContinualGatheringPolicy, IceServer, ConnectionState, RoomInfo, ConnectionQuality, DataPacketKind, DisconnectReason } from './proto/room_pb.js';
5
+ import { LocalTrack, RemoteTrack } from './track.js';
6
+ import { LocalTrackPublication, RemoteTrackPublication, TrackPublication } from './track_publication.js';
7
+ import { ChatMessage } from './types.js';
8
+ import './proto/e2ee_pb.js';
9
+ import '@bufbuild/protobuf/codegenv1';
10
+ import '@bufbuild/protobuf';
11
+ import './napi/native.d.js';
12
+ import './proto/participant_pb.js';
13
+ import './proto/handle_pb.js';
14
+ import './rpc.js';
15
+ import './proto/rpc_pb.js';
16
+ import './transcription.js';
17
+ import './proto/track_pb.js';
18
+ import './proto/stats_pb.js';
19
+ import './proto/video_frame_pb.js';
20
+ import './audio_source.js';
21
+ import './audio_frame.js';
22
+ import './proto/audio_frame_pb.js';
23
+ import './video_source.js';
24
+ import './video_frame.js';
25
+
26
+ interface RtcConfiguration {
13
27
  iceTransportType: IceTransportType;
14
28
  continualGatheringPolicy: ContinualGatheringPolicy;
15
29
  iceServers: IceServer[];
16
30
  }
17
- export declare const defaultRtcConfiguration: RtcConfiguration;
18
- export interface RoomOptions {
31
+ declare const defaultRtcConfiguration: RtcConfiguration;
32
+ interface RoomOptions {
19
33
  autoSubscribe: boolean;
20
34
  dynacast: boolean;
21
35
  e2ee?: E2EEOptions;
22
36
  rtcConfig?: RtcConfiguration;
23
37
  }
24
- export declare const defaultRoomOptions: {
38
+ declare const defaultRoomOptions: {
25
39
  autoSubscribe: true;
26
40
  dynacast: false;
27
41
  e2ee: undefined;
@@ -29,8 +43,8 @@ export declare const defaultRoomOptions: {
29
43
  adaptiveStream: false;
30
44
  joinRetries: number;
31
45
  };
32
- declare const Room_base: new () => TypedEmitter<RoomCallbacks>;
33
- export declare class Room extends Room_base {
46
+ declare const Room_base: new () => TypedEventEmitter<RoomCallbacks>;
47
+ declare class Room extends Room_base {
34
48
  private info?;
35
49
  private ffiHandle?;
36
50
  e2eeManager?: E2EEManager;
@@ -52,10 +66,10 @@ export declare class Room extends Room_base {
52
66
  private requirePublicationOfRemoteParticipant;
53
67
  private createRemoteParticipant;
54
68
  }
55
- export declare class ConnectError extends Error {
69
+ declare class ConnectError extends Error {
56
70
  constructor(message: string);
57
71
  }
58
- export type RoomCallbacks = {
72
+ type RoomCallbacks = {
59
73
  participantConnected: (participant: RemoteParticipant) => void;
60
74
  participantDisconnected: (participant: RemoteParticipant) => void;
61
75
  localTrackPublished: (publication: LocalTrackPublication, participant: LocalParticipant) => void;
@@ -86,7 +100,7 @@ export type RoomCallbacks = {
86
100
  reconnected: () => void;
87
101
  roomSidChanged: (sid: string) => void;
88
102
  };
89
- export declare enum RoomEvent {
103
+ declare enum RoomEvent {
90
104
  ParticipantConnected = "participantConnected",
91
105
  ParticipantDisconnected = "participantDisconnected",
92
106
  LocalTrackPublished = "localTrackPublished",
@@ -116,5 +130,5 @@ export declare enum RoomEvent {
116
130
  Reconnecting = "reconnecting",
117
131
  Reconnected = "reconnected"
118
132
  }
119
- export {};
120
- //# sourceMappingURL=room.d.ts.map
133
+
134
+ export { ConnectError, Room, type RoomCallbacks, RoomEvent, type RoomOptions, type RtcConfiguration, defaultRoomOptions, defaultRtcConfiguration };