@livekit/protocol 1.10.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.
@@ -0,0 +1,1841 @@
1
+ // Copyright 2023 LiveKit, Inc.
2
+ //
3
+ // Licensed under the Apache License, Version 2.0 (the "License");
4
+ // you may not use this file except in compliance with the License.
5
+ // You may obtain a copy of the License at
6
+ //
7
+ // http://www.apache.org/licenses/LICENSE-2.0
8
+ //
9
+ // Unless required by applicable law or agreed to in writing, software
10
+ // distributed under the License is distributed on an "AS IS" BASIS,
11
+ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ // See the License for the specific language governing permissions and
13
+ // limitations under the License.
14
+
15
+ // @generated by protoc-gen-es v1.7.2 with parameter "target=js+dts"
16
+ // @generated from file livekit_models.proto (package livekit, syntax proto3)
17
+ /* eslint-disable */
18
+ // @ts-nocheck
19
+
20
+ import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage, Timestamp } from "@bufbuild/protobuf";
21
+ import { Message, proto3 } from "@bufbuild/protobuf";
22
+
23
+ /**
24
+ * @generated from enum livekit.AudioCodec
25
+ */
26
+ export declare enum AudioCodec {
27
+ /**
28
+ * @generated from enum value: DEFAULT_AC = 0;
29
+ */
30
+ DEFAULT_AC = 0,
31
+
32
+ /**
33
+ * @generated from enum value: OPUS = 1;
34
+ */
35
+ OPUS = 1,
36
+
37
+ /**
38
+ * @generated from enum value: AAC = 2;
39
+ */
40
+ AAC = 2,
41
+ }
42
+
43
+ /**
44
+ * @generated from enum livekit.VideoCodec
45
+ */
46
+ export declare enum VideoCodec {
47
+ /**
48
+ * @generated from enum value: DEFAULT_VC = 0;
49
+ */
50
+ DEFAULT_VC = 0,
51
+
52
+ /**
53
+ * @generated from enum value: H264_BASELINE = 1;
54
+ */
55
+ H264_BASELINE = 1,
56
+
57
+ /**
58
+ * @generated from enum value: H264_MAIN = 2;
59
+ */
60
+ H264_MAIN = 2,
61
+
62
+ /**
63
+ * @generated from enum value: H264_HIGH = 3;
64
+ */
65
+ H264_HIGH = 3,
66
+
67
+ /**
68
+ * @generated from enum value: VP8 = 4;
69
+ */
70
+ VP8 = 4,
71
+ }
72
+
73
+ /**
74
+ * @generated from enum livekit.ImageCodec
75
+ */
76
+ export declare enum ImageCodec {
77
+ /**
78
+ * @generated from enum value: IC_DEFAULT = 0;
79
+ */
80
+ IC_DEFAULT = 0,
81
+
82
+ /**
83
+ * @generated from enum value: IC_JPEG = 1;
84
+ */
85
+ IC_JPEG = 1,
86
+ }
87
+
88
+ /**
89
+ * @generated from enum livekit.TrackType
90
+ */
91
+ export declare enum TrackType {
92
+ /**
93
+ * @generated from enum value: AUDIO = 0;
94
+ */
95
+ AUDIO = 0,
96
+
97
+ /**
98
+ * @generated from enum value: VIDEO = 1;
99
+ */
100
+ VIDEO = 1,
101
+
102
+ /**
103
+ * @generated from enum value: DATA = 2;
104
+ */
105
+ DATA = 2,
106
+ }
107
+
108
+ /**
109
+ * @generated from enum livekit.TrackSource
110
+ */
111
+ export declare enum TrackSource {
112
+ /**
113
+ * @generated from enum value: UNKNOWN = 0;
114
+ */
115
+ UNKNOWN = 0,
116
+
117
+ /**
118
+ * @generated from enum value: CAMERA = 1;
119
+ */
120
+ CAMERA = 1,
121
+
122
+ /**
123
+ * @generated from enum value: MICROPHONE = 2;
124
+ */
125
+ MICROPHONE = 2,
126
+
127
+ /**
128
+ * @generated from enum value: SCREEN_SHARE = 3;
129
+ */
130
+ SCREEN_SHARE = 3,
131
+
132
+ /**
133
+ * @generated from enum value: SCREEN_SHARE_AUDIO = 4;
134
+ */
135
+ SCREEN_SHARE_AUDIO = 4,
136
+ }
137
+
138
+ /**
139
+ * @generated from enum livekit.VideoQuality
140
+ */
141
+ export declare enum VideoQuality {
142
+ /**
143
+ * @generated from enum value: LOW = 0;
144
+ */
145
+ LOW = 0,
146
+
147
+ /**
148
+ * @generated from enum value: MEDIUM = 1;
149
+ */
150
+ MEDIUM = 1,
151
+
152
+ /**
153
+ * @generated from enum value: HIGH = 2;
154
+ */
155
+ HIGH = 2,
156
+
157
+ /**
158
+ * @generated from enum value: OFF = 3;
159
+ */
160
+ OFF = 3,
161
+ }
162
+
163
+ /**
164
+ * @generated from enum livekit.ConnectionQuality
165
+ */
166
+ export declare enum ConnectionQuality {
167
+ /**
168
+ * @generated from enum value: POOR = 0;
169
+ */
170
+ POOR = 0,
171
+
172
+ /**
173
+ * @generated from enum value: GOOD = 1;
174
+ */
175
+ GOOD = 1,
176
+
177
+ /**
178
+ * @generated from enum value: EXCELLENT = 2;
179
+ */
180
+ EXCELLENT = 2,
181
+
182
+ /**
183
+ * @generated from enum value: LOST = 3;
184
+ */
185
+ LOST = 3,
186
+ }
187
+
188
+ /**
189
+ * @generated from enum livekit.ClientConfigSetting
190
+ */
191
+ export declare enum ClientConfigSetting {
192
+ /**
193
+ * @generated from enum value: UNSET = 0;
194
+ */
195
+ UNSET = 0,
196
+
197
+ /**
198
+ * @generated from enum value: DISABLED = 1;
199
+ */
200
+ DISABLED = 1,
201
+
202
+ /**
203
+ * @generated from enum value: ENABLED = 2;
204
+ */
205
+ ENABLED = 2,
206
+ }
207
+
208
+ /**
209
+ * @generated from enum livekit.DisconnectReason
210
+ */
211
+ export declare enum DisconnectReason {
212
+ /**
213
+ * @generated from enum value: UNKNOWN_REASON = 0;
214
+ */
215
+ UNKNOWN_REASON = 0,
216
+
217
+ /**
218
+ * @generated from enum value: CLIENT_INITIATED = 1;
219
+ */
220
+ CLIENT_INITIATED = 1,
221
+
222
+ /**
223
+ * @generated from enum value: DUPLICATE_IDENTITY = 2;
224
+ */
225
+ DUPLICATE_IDENTITY = 2,
226
+
227
+ /**
228
+ * @generated from enum value: SERVER_SHUTDOWN = 3;
229
+ */
230
+ SERVER_SHUTDOWN = 3,
231
+
232
+ /**
233
+ * @generated from enum value: PARTICIPANT_REMOVED = 4;
234
+ */
235
+ PARTICIPANT_REMOVED = 4,
236
+
237
+ /**
238
+ * @generated from enum value: ROOM_DELETED = 5;
239
+ */
240
+ ROOM_DELETED = 5,
241
+
242
+ /**
243
+ * @generated from enum value: STATE_MISMATCH = 6;
244
+ */
245
+ STATE_MISMATCH = 6,
246
+
247
+ /**
248
+ * @generated from enum value: JOIN_FAILURE = 7;
249
+ */
250
+ JOIN_FAILURE = 7,
251
+
252
+ /**
253
+ * @generated from enum value: MIGRATION = 8;
254
+ */
255
+ MIGRATION = 8,
256
+
257
+ /**
258
+ * @generated from enum value: SIGNAL_CLOSE = 9;
259
+ */
260
+ SIGNAL_CLOSE = 9,
261
+ }
262
+
263
+ /**
264
+ * @generated from enum livekit.ReconnectReason
265
+ */
266
+ export declare enum ReconnectReason {
267
+ /**
268
+ * @generated from enum value: RR_UNKNOWN = 0;
269
+ */
270
+ RR_UNKNOWN = 0,
271
+
272
+ /**
273
+ * @generated from enum value: RR_SIGNAL_DISCONNECTED = 1;
274
+ */
275
+ RR_SIGNAL_DISCONNECTED = 1,
276
+
277
+ /**
278
+ * @generated from enum value: RR_PUBLISHER_FAILED = 2;
279
+ */
280
+ RR_PUBLISHER_FAILED = 2,
281
+
282
+ /**
283
+ * @generated from enum value: RR_SUBSCRIBER_FAILED = 3;
284
+ */
285
+ RR_SUBSCRIBER_FAILED = 3,
286
+
287
+ /**
288
+ * @generated from enum value: RR_SWITCH_CANDIDATE = 4;
289
+ */
290
+ RR_SWITCH_CANDIDATE = 4,
291
+ }
292
+
293
+ /**
294
+ * @generated from enum livekit.SubscriptionError
295
+ */
296
+ export declare enum SubscriptionError {
297
+ /**
298
+ * @generated from enum value: SE_UNKNOWN = 0;
299
+ */
300
+ SE_UNKNOWN = 0,
301
+
302
+ /**
303
+ * @generated from enum value: SE_CODEC_UNSUPPORTED = 1;
304
+ */
305
+ SE_CODEC_UNSUPPORTED = 1,
306
+
307
+ /**
308
+ * @generated from enum value: SE_TRACK_NOTFOUND = 2;
309
+ */
310
+ SE_TRACK_NOTFOUND = 2,
311
+ }
312
+
313
+ /**
314
+ * @generated from message livekit.Room
315
+ */
316
+ export declare class Room extends Message<Room> {
317
+ /**
318
+ * @generated from field: string sid = 1;
319
+ */
320
+ sid: string;
321
+
322
+ /**
323
+ * @generated from field: string name = 2;
324
+ */
325
+ name: string;
326
+
327
+ /**
328
+ * @generated from field: uint32 empty_timeout = 3;
329
+ */
330
+ emptyTimeout: number;
331
+
332
+ /**
333
+ * @generated from field: uint32 departure_timeout = 14;
334
+ */
335
+ departureTimeout: number;
336
+
337
+ /**
338
+ * @generated from field: uint32 max_participants = 4;
339
+ */
340
+ maxParticipants: number;
341
+
342
+ /**
343
+ * @generated from field: int64 creation_time = 5;
344
+ */
345
+ creationTime: bigint;
346
+
347
+ /**
348
+ * @generated from field: string turn_password = 6;
349
+ */
350
+ turnPassword: string;
351
+
352
+ /**
353
+ * @generated from field: repeated livekit.Codec enabled_codecs = 7;
354
+ */
355
+ enabledCodecs: Codec[];
356
+
357
+ /**
358
+ * @generated from field: string metadata = 8;
359
+ */
360
+ metadata: string;
361
+
362
+ /**
363
+ * @generated from field: uint32 num_participants = 9;
364
+ */
365
+ numParticipants: number;
366
+
367
+ /**
368
+ * @generated from field: uint32 num_publishers = 11;
369
+ */
370
+ numPublishers: number;
371
+
372
+ /**
373
+ * @generated from field: bool active_recording = 10;
374
+ */
375
+ activeRecording: boolean;
376
+
377
+ /**
378
+ * @generated from field: livekit.TimedVersion version = 13;
379
+ */
380
+ version?: TimedVersion;
381
+
382
+ constructor(data?: PartialMessage<Room>);
383
+
384
+ static readonly runtime: typeof proto3;
385
+ static readonly typeName = "livekit.Room";
386
+ static readonly fields: FieldList;
387
+
388
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Room;
389
+
390
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Room;
391
+
392
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Room;
393
+
394
+ static equals(a: Room | PlainMessage<Room> | undefined, b: Room | PlainMessage<Room> | undefined): boolean;
395
+ }
396
+
397
+ /**
398
+ * @generated from message livekit.Codec
399
+ */
400
+ export declare class Codec extends Message<Codec> {
401
+ /**
402
+ * @generated from field: string mime = 1;
403
+ */
404
+ mime: string;
405
+
406
+ /**
407
+ * @generated from field: string fmtp_line = 2;
408
+ */
409
+ fmtpLine: string;
410
+
411
+ constructor(data?: PartialMessage<Codec>);
412
+
413
+ static readonly runtime: typeof proto3;
414
+ static readonly typeName = "livekit.Codec";
415
+ static readonly fields: FieldList;
416
+
417
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Codec;
418
+
419
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Codec;
420
+
421
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Codec;
422
+
423
+ static equals(a: Codec | PlainMessage<Codec> | undefined, b: Codec | PlainMessage<Codec> | undefined): boolean;
424
+ }
425
+
426
+ /**
427
+ * @generated from message livekit.PlayoutDelay
428
+ */
429
+ export declare class PlayoutDelay extends Message<PlayoutDelay> {
430
+ /**
431
+ * @generated from field: bool enabled = 1;
432
+ */
433
+ enabled: boolean;
434
+
435
+ /**
436
+ * @generated from field: uint32 min = 2;
437
+ */
438
+ min: number;
439
+
440
+ /**
441
+ * @generated from field: uint32 max = 3;
442
+ */
443
+ max: number;
444
+
445
+ constructor(data?: PartialMessage<PlayoutDelay>);
446
+
447
+ static readonly runtime: typeof proto3;
448
+ static readonly typeName = "livekit.PlayoutDelay";
449
+ static readonly fields: FieldList;
450
+
451
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): PlayoutDelay;
452
+
453
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): PlayoutDelay;
454
+
455
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): PlayoutDelay;
456
+
457
+ static equals(a: PlayoutDelay | PlainMessage<PlayoutDelay> | undefined, b: PlayoutDelay | PlainMessage<PlayoutDelay> | undefined): boolean;
458
+ }
459
+
460
+ /**
461
+ * @generated from message livekit.ParticipantPermission
462
+ */
463
+ export declare class ParticipantPermission extends Message<ParticipantPermission> {
464
+ /**
465
+ * allow participant to subscribe to other tracks in the room
466
+ *
467
+ * @generated from field: bool can_subscribe = 1;
468
+ */
469
+ canSubscribe: boolean;
470
+
471
+ /**
472
+ * allow participant to publish new tracks to room
473
+ *
474
+ * @generated from field: bool can_publish = 2;
475
+ */
476
+ canPublish: boolean;
477
+
478
+ /**
479
+ * allow participant to publish data
480
+ *
481
+ * @generated from field: bool can_publish_data = 3;
482
+ */
483
+ canPublishData: boolean;
484
+
485
+ /**
486
+ * sources that are allowed to be published
487
+ *
488
+ * @generated from field: repeated livekit.TrackSource can_publish_sources = 9;
489
+ */
490
+ canPublishSources: TrackSource[];
491
+
492
+ /**
493
+ * indicates that it's hidden to others
494
+ *
495
+ * @generated from field: bool hidden = 7;
496
+ */
497
+ hidden: boolean;
498
+
499
+ /**
500
+ * indicates it's a recorder instance
501
+ *
502
+ * @generated from field: bool recorder = 8;
503
+ */
504
+ recorder: boolean;
505
+
506
+ /**
507
+ * indicates that participant can update own metadata
508
+ *
509
+ * @generated from field: bool can_update_metadata = 10;
510
+ */
511
+ canUpdateMetadata: boolean;
512
+
513
+ /**
514
+ * indicates that participant is an agent
515
+ *
516
+ * @generated from field: bool agent = 11;
517
+ */
518
+ agent: boolean;
519
+
520
+ constructor(data?: PartialMessage<ParticipantPermission>);
521
+
522
+ static readonly runtime: typeof proto3;
523
+ static readonly typeName = "livekit.ParticipantPermission";
524
+ static readonly fields: FieldList;
525
+
526
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ParticipantPermission;
527
+
528
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ParticipantPermission;
529
+
530
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ParticipantPermission;
531
+
532
+ static equals(a: ParticipantPermission | PlainMessage<ParticipantPermission> | undefined, b: ParticipantPermission | PlainMessage<ParticipantPermission> | undefined): boolean;
533
+ }
534
+
535
+ /**
536
+ * @generated from message livekit.ParticipantInfo
537
+ */
538
+ export declare class ParticipantInfo extends Message<ParticipantInfo> {
539
+ /**
540
+ * @generated from field: string sid = 1;
541
+ */
542
+ sid: string;
543
+
544
+ /**
545
+ * @generated from field: string identity = 2;
546
+ */
547
+ identity: string;
548
+
549
+ /**
550
+ * @generated from field: livekit.ParticipantInfo.State state = 3;
551
+ */
552
+ state: ParticipantInfo_State;
553
+
554
+ /**
555
+ * @generated from field: repeated livekit.TrackInfo tracks = 4;
556
+ */
557
+ tracks: TrackInfo[];
558
+
559
+ /**
560
+ * @generated from field: string metadata = 5;
561
+ */
562
+ metadata: string;
563
+
564
+ /**
565
+ * timestamp when participant joined room, in seconds
566
+ *
567
+ * @generated from field: int64 joined_at = 6;
568
+ */
569
+ joinedAt: bigint;
570
+
571
+ /**
572
+ * @generated from field: string name = 9;
573
+ */
574
+ name: string;
575
+
576
+ /**
577
+ * @generated from field: uint32 version = 10;
578
+ */
579
+ version: number;
580
+
581
+ /**
582
+ * @generated from field: livekit.ParticipantPermission permission = 11;
583
+ */
584
+ permission?: ParticipantPermission;
585
+
586
+ /**
587
+ * @generated from field: string region = 12;
588
+ */
589
+ region: string;
590
+
591
+ /**
592
+ * indicates the participant has an active publisher connection
593
+ * and can publish to the server
594
+ *
595
+ * @generated from field: bool is_publisher = 13;
596
+ */
597
+ isPublisher: boolean;
598
+
599
+ /**
600
+ * @generated from field: livekit.ParticipantInfo.Kind kind = 14;
601
+ */
602
+ kind: ParticipantInfo_Kind;
603
+
604
+ constructor(data?: PartialMessage<ParticipantInfo>);
605
+
606
+ static readonly runtime: typeof proto3;
607
+ static readonly typeName = "livekit.ParticipantInfo";
608
+ static readonly fields: FieldList;
609
+
610
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ParticipantInfo;
611
+
612
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ParticipantInfo;
613
+
614
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ParticipantInfo;
615
+
616
+ static equals(a: ParticipantInfo | PlainMessage<ParticipantInfo> | undefined, b: ParticipantInfo | PlainMessage<ParticipantInfo> | undefined): boolean;
617
+ }
618
+
619
+ /**
620
+ * @generated from enum livekit.ParticipantInfo.State
621
+ */
622
+ export declare enum ParticipantInfo_State {
623
+ /**
624
+ * websocket' connected, but not offered yet
625
+ *
626
+ * @generated from enum value: JOINING = 0;
627
+ */
628
+ JOINING = 0,
629
+
630
+ /**
631
+ * server received client offer
632
+ *
633
+ * @generated from enum value: JOINED = 1;
634
+ */
635
+ JOINED = 1,
636
+
637
+ /**
638
+ * ICE connectivity established
639
+ *
640
+ * @generated from enum value: ACTIVE = 2;
641
+ */
642
+ ACTIVE = 2,
643
+
644
+ /**
645
+ * WS disconnected
646
+ *
647
+ * @generated from enum value: DISCONNECTED = 3;
648
+ */
649
+ DISCONNECTED = 3,
650
+ }
651
+
652
+ /**
653
+ * @generated from enum livekit.ParticipantInfo.Kind
654
+ */
655
+ export declare enum ParticipantInfo_Kind {
656
+ /**
657
+ * standard participants, e.g. web clients
658
+ *
659
+ * @generated from enum value: STANDARD = 0;
660
+ */
661
+ STANDARD = 0,
662
+
663
+ /**
664
+ * only ingests streams
665
+ *
666
+ * @generated from enum value: INGRESS = 1;
667
+ */
668
+ INGRESS = 1,
669
+
670
+ /**
671
+ * only consumes streams
672
+ *
673
+ * @generated from enum value: EGRESS = 2;
674
+ */
675
+ EGRESS = 2,
676
+
677
+ /**
678
+ * SIP participants
679
+ *
680
+ * @generated from enum value: SIP = 3;
681
+ */
682
+ SIP = 3,
683
+
684
+ /**
685
+ * LiveKit agents
686
+ *
687
+ * @generated from enum value: AGENT = 4;
688
+ */
689
+ AGENT = 4,
690
+ }
691
+
692
+ /**
693
+ * @generated from message livekit.Encryption
694
+ */
695
+ export declare class Encryption extends Message<Encryption> {
696
+ constructor(data?: PartialMessage<Encryption>);
697
+
698
+ static readonly runtime: typeof proto3;
699
+ static readonly typeName = "livekit.Encryption";
700
+ static readonly fields: FieldList;
701
+
702
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Encryption;
703
+
704
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Encryption;
705
+
706
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Encryption;
707
+
708
+ static equals(a: Encryption | PlainMessage<Encryption> | undefined, b: Encryption | PlainMessage<Encryption> | undefined): boolean;
709
+ }
710
+
711
+ /**
712
+ * @generated from enum livekit.Encryption.Type
713
+ */
714
+ export declare enum Encryption_Type {
715
+ /**
716
+ * @generated from enum value: NONE = 0;
717
+ */
718
+ NONE = 0,
719
+
720
+ /**
721
+ * @generated from enum value: GCM = 1;
722
+ */
723
+ GCM = 1,
724
+
725
+ /**
726
+ * @generated from enum value: CUSTOM = 2;
727
+ */
728
+ CUSTOM = 2,
729
+ }
730
+
731
+ /**
732
+ * @generated from message livekit.SimulcastCodecInfo
733
+ */
734
+ export declare class SimulcastCodecInfo extends Message<SimulcastCodecInfo> {
735
+ /**
736
+ * @generated from field: string mime_type = 1;
737
+ */
738
+ mimeType: string;
739
+
740
+ /**
741
+ * @generated from field: string mid = 2;
742
+ */
743
+ mid: string;
744
+
745
+ /**
746
+ * @generated from field: string cid = 3;
747
+ */
748
+ cid: string;
749
+
750
+ /**
751
+ * @generated from field: repeated livekit.VideoLayer layers = 4;
752
+ */
753
+ layers: VideoLayer[];
754
+
755
+ constructor(data?: PartialMessage<SimulcastCodecInfo>);
756
+
757
+ static readonly runtime: typeof proto3;
758
+ static readonly typeName = "livekit.SimulcastCodecInfo";
759
+ static readonly fields: FieldList;
760
+
761
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SimulcastCodecInfo;
762
+
763
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SimulcastCodecInfo;
764
+
765
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SimulcastCodecInfo;
766
+
767
+ static equals(a: SimulcastCodecInfo | PlainMessage<SimulcastCodecInfo> | undefined, b: SimulcastCodecInfo | PlainMessage<SimulcastCodecInfo> | undefined): boolean;
768
+ }
769
+
770
+ /**
771
+ * @generated from message livekit.TrackInfo
772
+ */
773
+ export declare class TrackInfo extends Message<TrackInfo> {
774
+ /**
775
+ * @generated from field: string sid = 1;
776
+ */
777
+ sid: string;
778
+
779
+ /**
780
+ * @generated from field: livekit.TrackType type = 2;
781
+ */
782
+ type: TrackType;
783
+
784
+ /**
785
+ * @generated from field: string name = 3;
786
+ */
787
+ name: string;
788
+
789
+ /**
790
+ * @generated from field: bool muted = 4;
791
+ */
792
+ muted: boolean;
793
+
794
+ /**
795
+ * original width of video (unset for audio)
796
+ * clients may receive a lower resolution version with simulcast
797
+ *
798
+ * @generated from field: uint32 width = 5;
799
+ */
800
+ width: number;
801
+
802
+ /**
803
+ * original height of video (unset for audio)
804
+ *
805
+ * @generated from field: uint32 height = 6;
806
+ */
807
+ height: number;
808
+
809
+ /**
810
+ * true if track is simulcasted
811
+ *
812
+ * @generated from field: bool simulcast = 7;
813
+ */
814
+ simulcast: boolean;
815
+
816
+ /**
817
+ * true if DTX (Discontinuous Transmission) is disabled for audio
818
+ *
819
+ * @generated from field: bool disable_dtx = 8;
820
+ */
821
+ disableDtx: boolean;
822
+
823
+ /**
824
+ * source of media
825
+ *
826
+ * @generated from field: livekit.TrackSource source = 9;
827
+ */
828
+ source: TrackSource;
829
+
830
+ /**
831
+ * @generated from field: repeated livekit.VideoLayer layers = 10;
832
+ */
833
+ layers: VideoLayer[];
834
+
835
+ /**
836
+ * mime type of codec
837
+ *
838
+ * @generated from field: string mime_type = 11;
839
+ */
840
+ mimeType: string;
841
+
842
+ /**
843
+ * @generated from field: string mid = 12;
844
+ */
845
+ mid: string;
846
+
847
+ /**
848
+ * @generated from field: repeated livekit.SimulcastCodecInfo codecs = 13;
849
+ */
850
+ codecs: SimulcastCodecInfo[];
851
+
852
+ /**
853
+ * @generated from field: bool stereo = 14;
854
+ */
855
+ stereo: boolean;
856
+
857
+ /**
858
+ * true if RED (Redundant Encoding) is disabled for audio
859
+ *
860
+ * @generated from field: bool disable_red = 15;
861
+ */
862
+ disableRed: boolean;
863
+
864
+ /**
865
+ * @generated from field: livekit.Encryption.Type encryption = 16;
866
+ */
867
+ encryption: Encryption_Type;
868
+
869
+ /**
870
+ * @generated from field: string stream = 17;
871
+ */
872
+ stream: string;
873
+
874
+ /**
875
+ * @generated from field: livekit.TimedVersion version = 18;
876
+ */
877
+ version?: TimedVersion;
878
+
879
+ constructor(data?: PartialMessage<TrackInfo>);
880
+
881
+ static readonly runtime: typeof proto3;
882
+ static readonly typeName = "livekit.TrackInfo";
883
+ static readonly fields: FieldList;
884
+
885
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): TrackInfo;
886
+
887
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): TrackInfo;
888
+
889
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): TrackInfo;
890
+
891
+ static equals(a: TrackInfo | PlainMessage<TrackInfo> | undefined, b: TrackInfo | PlainMessage<TrackInfo> | undefined): boolean;
892
+ }
893
+
894
+ /**
895
+ * provide information about available spatial layers
896
+ *
897
+ * @generated from message livekit.VideoLayer
898
+ */
899
+ export declare class VideoLayer extends Message<VideoLayer> {
900
+ /**
901
+ * for tracks with a single layer, this should be HIGH
902
+ *
903
+ * @generated from field: livekit.VideoQuality quality = 1;
904
+ */
905
+ quality: VideoQuality;
906
+
907
+ /**
908
+ * @generated from field: uint32 width = 2;
909
+ */
910
+ width: number;
911
+
912
+ /**
913
+ * @generated from field: uint32 height = 3;
914
+ */
915
+ height: number;
916
+
917
+ /**
918
+ * target bitrate in bit per second (bps), server will measure actual
919
+ *
920
+ * @generated from field: uint32 bitrate = 4;
921
+ */
922
+ bitrate: number;
923
+
924
+ /**
925
+ * @generated from field: uint32 ssrc = 5;
926
+ */
927
+ ssrc: number;
928
+
929
+ constructor(data?: PartialMessage<VideoLayer>);
930
+
931
+ static readonly runtime: typeof proto3;
932
+ static readonly typeName = "livekit.VideoLayer";
933
+ static readonly fields: FieldList;
934
+
935
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): VideoLayer;
936
+
937
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): VideoLayer;
938
+
939
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): VideoLayer;
940
+
941
+ static equals(a: VideoLayer | PlainMessage<VideoLayer> | undefined, b: VideoLayer | PlainMessage<VideoLayer> | undefined): boolean;
942
+ }
943
+
944
+ /**
945
+ * new DataPacket API
946
+ *
947
+ * @generated from message livekit.DataPacket
948
+ */
949
+ export declare class DataPacket extends Message<DataPacket> {
950
+ /**
951
+ * @generated from field: livekit.DataPacket.Kind kind = 1 [deprecated = true];
952
+ * @deprecated
953
+ */
954
+ kind: DataPacket_Kind;
955
+
956
+ /**
957
+ * participant identity of user that sent the message
958
+ *
959
+ * @generated from field: string participant_identity = 4;
960
+ */
961
+ participantIdentity: string;
962
+
963
+ /**
964
+ * identities of participants who will receive the message (sent to all by default)
965
+ *
966
+ * @generated from field: repeated string destination_identities = 5;
967
+ */
968
+ destinationIdentities: string[];
969
+
970
+ /**
971
+ * @generated from oneof livekit.DataPacket.value
972
+ */
973
+ value: {
974
+ /**
975
+ * @generated from field: livekit.UserPacket user = 2;
976
+ */
977
+ value: UserPacket;
978
+ case: "user";
979
+ } | {
980
+ /**
981
+ * @generated from field: livekit.ActiveSpeakerUpdate speaker = 3 [deprecated = true];
982
+ * @deprecated
983
+ */
984
+ value: ActiveSpeakerUpdate;
985
+ case: "speaker";
986
+ } | {
987
+ /**
988
+ * @generated from field: livekit.SipDTMF sip_dtmf = 6;
989
+ */
990
+ value: SipDTMF;
991
+ case: "sipDtmf";
992
+ } | { case: undefined; value?: undefined };
993
+
994
+ constructor(data?: PartialMessage<DataPacket>);
995
+
996
+ static readonly runtime: typeof proto3;
997
+ static readonly typeName = "livekit.DataPacket";
998
+ static readonly fields: FieldList;
999
+
1000
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): DataPacket;
1001
+
1002
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): DataPacket;
1003
+
1004
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): DataPacket;
1005
+
1006
+ static equals(a: DataPacket | PlainMessage<DataPacket> | undefined, b: DataPacket | PlainMessage<DataPacket> | undefined): boolean;
1007
+ }
1008
+
1009
+ /**
1010
+ * @generated from enum livekit.DataPacket.Kind
1011
+ */
1012
+ export declare enum DataPacket_Kind {
1013
+ /**
1014
+ * @generated from enum value: RELIABLE = 0;
1015
+ */
1016
+ RELIABLE = 0,
1017
+
1018
+ /**
1019
+ * @generated from enum value: LOSSY = 1;
1020
+ */
1021
+ LOSSY = 1,
1022
+ }
1023
+
1024
+ /**
1025
+ * @generated from message livekit.ActiveSpeakerUpdate
1026
+ */
1027
+ export declare class ActiveSpeakerUpdate extends Message<ActiveSpeakerUpdate> {
1028
+ /**
1029
+ * @generated from field: repeated livekit.SpeakerInfo speakers = 1;
1030
+ */
1031
+ speakers: SpeakerInfo[];
1032
+
1033
+ constructor(data?: PartialMessage<ActiveSpeakerUpdate>);
1034
+
1035
+ static readonly runtime: typeof proto3;
1036
+ static readonly typeName = "livekit.ActiveSpeakerUpdate";
1037
+ static readonly fields: FieldList;
1038
+
1039
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ActiveSpeakerUpdate;
1040
+
1041
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ActiveSpeakerUpdate;
1042
+
1043
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ActiveSpeakerUpdate;
1044
+
1045
+ static equals(a: ActiveSpeakerUpdate | PlainMessage<ActiveSpeakerUpdate> | undefined, b: ActiveSpeakerUpdate | PlainMessage<ActiveSpeakerUpdate> | undefined): boolean;
1046
+ }
1047
+
1048
+ /**
1049
+ * @generated from message livekit.SpeakerInfo
1050
+ */
1051
+ export declare class SpeakerInfo extends Message<SpeakerInfo> {
1052
+ /**
1053
+ * @generated from field: string sid = 1;
1054
+ */
1055
+ sid: string;
1056
+
1057
+ /**
1058
+ * audio level, 0-1.0, 1 is loudest
1059
+ *
1060
+ * @generated from field: float level = 2;
1061
+ */
1062
+ level: number;
1063
+
1064
+ /**
1065
+ * true if speaker is currently active
1066
+ *
1067
+ * @generated from field: bool active = 3;
1068
+ */
1069
+ active: boolean;
1070
+
1071
+ constructor(data?: PartialMessage<SpeakerInfo>);
1072
+
1073
+ static readonly runtime: typeof proto3;
1074
+ static readonly typeName = "livekit.SpeakerInfo";
1075
+ static readonly fields: FieldList;
1076
+
1077
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SpeakerInfo;
1078
+
1079
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SpeakerInfo;
1080
+
1081
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SpeakerInfo;
1082
+
1083
+ static equals(a: SpeakerInfo | PlainMessage<SpeakerInfo> | undefined, b: SpeakerInfo | PlainMessage<SpeakerInfo> | undefined): boolean;
1084
+ }
1085
+
1086
+ /**
1087
+ * @generated from message livekit.UserPacket
1088
+ */
1089
+ export declare class UserPacket extends Message<UserPacket> {
1090
+ /**
1091
+ * participant ID of user that sent the message
1092
+ *
1093
+ * @generated from field: string participant_sid = 1 [deprecated = true];
1094
+ * @deprecated
1095
+ */
1096
+ participantSid: string;
1097
+
1098
+ /**
1099
+ * @generated from field: string participant_identity = 5 [deprecated = true];
1100
+ * @deprecated
1101
+ */
1102
+ participantIdentity: string;
1103
+
1104
+ /**
1105
+ * user defined payload
1106
+ *
1107
+ * @generated from field: bytes payload = 2;
1108
+ */
1109
+ payload: Uint8Array;
1110
+
1111
+ /**
1112
+ * the ID of the participants who will receive the message (sent to all by default)
1113
+ *
1114
+ * @generated from field: repeated string destination_sids = 3 [deprecated = true];
1115
+ * @deprecated
1116
+ */
1117
+ destinationSids: string[];
1118
+
1119
+ /**
1120
+ * identities of participants who will receive the message (sent to all by default)
1121
+ *
1122
+ * @generated from field: repeated string destination_identities = 6 [deprecated = true];
1123
+ * @deprecated
1124
+ */
1125
+ destinationIdentities: string[];
1126
+
1127
+ /**
1128
+ * topic under which the message was published
1129
+ *
1130
+ * @generated from field: optional string topic = 4;
1131
+ */
1132
+ topic?: string;
1133
+
1134
+ constructor(data?: PartialMessage<UserPacket>);
1135
+
1136
+ static readonly runtime: typeof proto3;
1137
+ static readonly typeName = "livekit.UserPacket";
1138
+ static readonly fields: FieldList;
1139
+
1140
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): UserPacket;
1141
+
1142
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): UserPacket;
1143
+
1144
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): UserPacket;
1145
+
1146
+ static equals(a: UserPacket | PlainMessage<UserPacket> | undefined, b: UserPacket | PlainMessage<UserPacket> | undefined): boolean;
1147
+ }
1148
+
1149
+ /**
1150
+ * @generated from message livekit.SipDTMF
1151
+ */
1152
+ export declare class SipDTMF extends Message<SipDTMF> {
1153
+ /**
1154
+ * @generated from field: uint32 code = 3;
1155
+ */
1156
+ code: number;
1157
+
1158
+ /**
1159
+ * @generated from field: string digit = 4;
1160
+ */
1161
+ digit: string;
1162
+
1163
+ constructor(data?: PartialMessage<SipDTMF>);
1164
+
1165
+ static readonly runtime: typeof proto3;
1166
+ static readonly typeName = "livekit.SipDTMF";
1167
+ static readonly fields: FieldList;
1168
+
1169
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SipDTMF;
1170
+
1171
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SipDTMF;
1172
+
1173
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SipDTMF;
1174
+
1175
+ static equals(a: SipDTMF | PlainMessage<SipDTMF> | undefined, b: SipDTMF | PlainMessage<SipDTMF> | undefined): boolean;
1176
+ }
1177
+
1178
+ /**
1179
+ * @generated from message livekit.ParticipantTracks
1180
+ */
1181
+ export declare class ParticipantTracks extends Message<ParticipantTracks> {
1182
+ /**
1183
+ * participant ID of participant to whom the tracks belong
1184
+ *
1185
+ * @generated from field: string participant_sid = 1;
1186
+ */
1187
+ participantSid: string;
1188
+
1189
+ /**
1190
+ * @generated from field: repeated string track_sids = 2;
1191
+ */
1192
+ trackSids: string[];
1193
+
1194
+ constructor(data?: PartialMessage<ParticipantTracks>);
1195
+
1196
+ static readonly runtime: typeof proto3;
1197
+ static readonly typeName = "livekit.ParticipantTracks";
1198
+ static readonly fields: FieldList;
1199
+
1200
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ParticipantTracks;
1201
+
1202
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ParticipantTracks;
1203
+
1204
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ParticipantTracks;
1205
+
1206
+ static equals(a: ParticipantTracks | PlainMessage<ParticipantTracks> | undefined, b: ParticipantTracks | PlainMessage<ParticipantTracks> | undefined): boolean;
1207
+ }
1208
+
1209
+ /**
1210
+ * details about the server
1211
+ *
1212
+ * @generated from message livekit.ServerInfo
1213
+ */
1214
+ export declare class ServerInfo extends Message<ServerInfo> {
1215
+ /**
1216
+ * @generated from field: livekit.ServerInfo.Edition edition = 1;
1217
+ */
1218
+ edition: ServerInfo_Edition;
1219
+
1220
+ /**
1221
+ * @generated from field: string version = 2;
1222
+ */
1223
+ version: string;
1224
+
1225
+ /**
1226
+ * @generated from field: int32 protocol = 3;
1227
+ */
1228
+ protocol: number;
1229
+
1230
+ /**
1231
+ * @generated from field: string region = 4;
1232
+ */
1233
+ region: string;
1234
+
1235
+ /**
1236
+ * @generated from field: string node_id = 5;
1237
+ */
1238
+ nodeId: string;
1239
+
1240
+ /**
1241
+ * additional debugging information. sent only if server is in development mode
1242
+ *
1243
+ * @generated from field: string debug_info = 6;
1244
+ */
1245
+ debugInfo: string;
1246
+
1247
+ constructor(data?: PartialMessage<ServerInfo>);
1248
+
1249
+ static readonly runtime: typeof proto3;
1250
+ static readonly typeName = "livekit.ServerInfo";
1251
+ static readonly fields: FieldList;
1252
+
1253
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ServerInfo;
1254
+
1255
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ServerInfo;
1256
+
1257
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ServerInfo;
1258
+
1259
+ static equals(a: ServerInfo | PlainMessage<ServerInfo> | undefined, b: ServerInfo | PlainMessage<ServerInfo> | undefined): boolean;
1260
+ }
1261
+
1262
+ /**
1263
+ * @generated from enum livekit.ServerInfo.Edition
1264
+ */
1265
+ export declare enum ServerInfo_Edition {
1266
+ /**
1267
+ * @generated from enum value: Standard = 0;
1268
+ */
1269
+ Standard = 0,
1270
+
1271
+ /**
1272
+ * @generated from enum value: Cloud = 1;
1273
+ */
1274
+ Cloud = 1,
1275
+ }
1276
+
1277
+ /**
1278
+ * details about the client
1279
+ *
1280
+ * @generated from message livekit.ClientInfo
1281
+ */
1282
+ export declare class ClientInfo extends Message<ClientInfo> {
1283
+ /**
1284
+ * @generated from field: livekit.ClientInfo.SDK sdk = 1;
1285
+ */
1286
+ sdk: ClientInfo_SDK;
1287
+
1288
+ /**
1289
+ * @generated from field: string version = 2;
1290
+ */
1291
+ version: string;
1292
+
1293
+ /**
1294
+ * @generated from field: int32 protocol = 3;
1295
+ */
1296
+ protocol: number;
1297
+
1298
+ /**
1299
+ * @generated from field: string os = 4;
1300
+ */
1301
+ os: string;
1302
+
1303
+ /**
1304
+ * @generated from field: string os_version = 5;
1305
+ */
1306
+ osVersion: string;
1307
+
1308
+ /**
1309
+ * @generated from field: string device_model = 6;
1310
+ */
1311
+ deviceModel: string;
1312
+
1313
+ /**
1314
+ * @generated from field: string browser = 7;
1315
+ */
1316
+ browser: string;
1317
+
1318
+ /**
1319
+ * @generated from field: string browser_version = 8;
1320
+ */
1321
+ browserVersion: string;
1322
+
1323
+ /**
1324
+ * @generated from field: string address = 9;
1325
+ */
1326
+ address: string;
1327
+
1328
+ /**
1329
+ * wifi, wired, cellular, vpn, empty if not known
1330
+ *
1331
+ * @generated from field: string network = 10;
1332
+ */
1333
+ network: string;
1334
+
1335
+ constructor(data?: PartialMessage<ClientInfo>);
1336
+
1337
+ static readonly runtime: typeof proto3;
1338
+ static readonly typeName = "livekit.ClientInfo";
1339
+ static readonly fields: FieldList;
1340
+
1341
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ClientInfo;
1342
+
1343
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ClientInfo;
1344
+
1345
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ClientInfo;
1346
+
1347
+ static equals(a: ClientInfo | PlainMessage<ClientInfo> | undefined, b: ClientInfo | PlainMessage<ClientInfo> | undefined): boolean;
1348
+ }
1349
+
1350
+ /**
1351
+ * @generated from enum livekit.ClientInfo.SDK
1352
+ */
1353
+ export declare enum ClientInfo_SDK {
1354
+ /**
1355
+ * @generated from enum value: UNKNOWN = 0;
1356
+ */
1357
+ UNKNOWN = 0,
1358
+
1359
+ /**
1360
+ * @generated from enum value: JS = 1;
1361
+ */
1362
+ JS = 1,
1363
+
1364
+ /**
1365
+ * @generated from enum value: SWIFT = 2;
1366
+ */
1367
+ SWIFT = 2,
1368
+
1369
+ /**
1370
+ * @generated from enum value: ANDROID = 3;
1371
+ */
1372
+ ANDROID = 3,
1373
+
1374
+ /**
1375
+ * @generated from enum value: FLUTTER = 4;
1376
+ */
1377
+ FLUTTER = 4,
1378
+
1379
+ /**
1380
+ * @generated from enum value: GO = 5;
1381
+ */
1382
+ GO = 5,
1383
+
1384
+ /**
1385
+ * @generated from enum value: UNITY = 6;
1386
+ */
1387
+ UNITY = 6,
1388
+
1389
+ /**
1390
+ * @generated from enum value: REACT_NATIVE = 7;
1391
+ */
1392
+ REACT_NATIVE = 7,
1393
+
1394
+ /**
1395
+ * @generated from enum value: RUST = 8;
1396
+ */
1397
+ RUST = 8,
1398
+
1399
+ /**
1400
+ * @generated from enum value: PYTHON = 9;
1401
+ */
1402
+ PYTHON = 9,
1403
+
1404
+ /**
1405
+ * @generated from enum value: CPP = 10;
1406
+ */
1407
+ CPP = 10,
1408
+ }
1409
+
1410
+ /**
1411
+ * server provided client configuration
1412
+ *
1413
+ * @generated from message livekit.ClientConfiguration
1414
+ */
1415
+ export declare class ClientConfiguration extends Message<ClientConfiguration> {
1416
+ /**
1417
+ * @generated from field: livekit.VideoConfiguration video = 1;
1418
+ */
1419
+ video?: VideoConfiguration;
1420
+
1421
+ /**
1422
+ * @generated from field: livekit.VideoConfiguration screen = 2;
1423
+ */
1424
+ screen?: VideoConfiguration;
1425
+
1426
+ /**
1427
+ * @generated from field: livekit.ClientConfigSetting resume_connection = 3;
1428
+ */
1429
+ resumeConnection: ClientConfigSetting;
1430
+
1431
+ /**
1432
+ * @generated from field: livekit.DisabledCodecs disabled_codecs = 4;
1433
+ */
1434
+ disabledCodecs?: DisabledCodecs;
1435
+
1436
+ /**
1437
+ * @generated from field: livekit.ClientConfigSetting force_relay = 5;
1438
+ */
1439
+ forceRelay: ClientConfigSetting;
1440
+
1441
+ constructor(data?: PartialMessage<ClientConfiguration>);
1442
+
1443
+ static readonly runtime: typeof proto3;
1444
+ static readonly typeName = "livekit.ClientConfiguration";
1445
+ static readonly fields: FieldList;
1446
+
1447
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ClientConfiguration;
1448
+
1449
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ClientConfiguration;
1450
+
1451
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ClientConfiguration;
1452
+
1453
+ static equals(a: ClientConfiguration | PlainMessage<ClientConfiguration> | undefined, b: ClientConfiguration | PlainMessage<ClientConfiguration> | undefined): boolean;
1454
+ }
1455
+
1456
+ /**
1457
+ * @generated from message livekit.VideoConfiguration
1458
+ */
1459
+ export declare class VideoConfiguration extends Message<VideoConfiguration> {
1460
+ /**
1461
+ * @generated from field: livekit.ClientConfigSetting hardware_encoder = 1;
1462
+ */
1463
+ hardwareEncoder: ClientConfigSetting;
1464
+
1465
+ constructor(data?: PartialMessage<VideoConfiguration>);
1466
+
1467
+ static readonly runtime: typeof proto3;
1468
+ static readonly typeName = "livekit.VideoConfiguration";
1469
+ static readonly fields: FieldList;
1470
+
1471
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): VideoConfiguration;
1472
+
1473
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): VideoConfiguration;
1474
+
1475
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): VideoConfiguration;
1476
+
1477
+ static equals(a: VideoConfiguration | PlainMessage<VideoConfiguration> | undefined, b: VideoConfiguration | PlainMessage<VideoConfiguration> | undefined): boolean;
1478
+ }
1479
+
1480
+ /**
1481
+ * @generated from message livekit.DisabledCodecs
1482
+ */
1483
+ export declare class DisabledCodecs extends Message<DisabledCodecs> {
1484
+ /**
1485
+ * disabled for both publish and subscribe
1486
+ *
1487
+ * @generated from field: repeated livekit.Codec codecs = 1;
1488
+ */
1489
+ codecs: Codec[];
1490
+
1491
+ /**
1492
+ * only disable for publish
1493
+ *
1494
+ * @generated from field: repeated livekit.Codec publish = 2;
1495
+ */
1496
+ publish: Codec[];
1497
+
1498
+ constructor(data?: PartialMessage<DisabledCodecs>);
1499
+
1500
+ static readonly runtime: typeof proto3;
1501
+ static readonly typeName = "livekit.DisabledCodecs";
1502
+ static readonly fields: FieldList;
1503
+
1504
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): DisabledCodecs;
1505
+
1506
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): DisabledCodecs;
1507
+
1508
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): DisabledCodecs;
1509
+
1510
+ static equals(a: DisabledCodecs | PlainMessage<DisabledCodecs> | undefined, b: DisabledCodecs | PlainMessage<DisabledCodecs> | undefined): boolean;
1511
+ }
1512
+
1513
+ /**
1514
+ * @generated from message livekit.RTPDrift
1515
+ */
1516
+ export declare class RTPDrift extends Message<RTPDrift> {
1517
+ /**
1518
+ * @generated from field: google.protobuf.Timestamp start_time = 1;
1519
+ */
1520
+ startTime?: Timestamp;
1521
+
1522
+ /**
1523
+ * @generated from field: google.protobuf.Timestamp end_time = 2;
1524
+ */
1525
+ endTime?: Timestamp;
1526
+
1527
+ /**
1528
+ * @generated from field: double duration = 3;
1529
+ */
1530
+ duration: number;
1531
+
1532
+ /**
1533
+ * @generated from field: uint64 start_timestamp = 4;
1534
+ */
1535
+ startTimestamp: bigint;
1536
+
1537
+ /**
1538
+ * @generated from field: uint64 end_timestamp = 5;
1539
+ */
1540
+ endTimestamp: bigint;
1541
+
1542
+ /**
1543
+ * @generated from field: uint64 rtp_clock_ticks = 6;
1544
+ */
1545
+ rtpClockTicks: bigint;
1546
+
1547
+ /**
1548
+ * @generated from field: int64 drift_samples = 7;
1549
+ */
1550
+ driftSamples: bigint;
1551
+
1552
+ /**
1553
+ * @generated from field: double drift_ms = 8;
1554
+ */
1555
+ driftMs: number;
1556
+
1557
+ /**
1558
+ * @generated from field: double clock_rate = 9;
1559
+ */
1560
+ clockRate: number;
1561
+
1562
+ constructor(data?: PartialMessage<RTPDrift>);
1563
+
1564
+ static readonly runtime: typeof proto3;
1565
+ static readonly typeName = "livekit.RTPDrift";
1566
+ static readonly fields: FieldList;
1567
+
1568
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): RTPDrift;
1569
+
1570
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): RTPDrift;
1571
+
1572
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): RTPDrift;
1573
+
1574
+ static equals(a: RTPDrift | PlainMessage<RTPDrift> | undefined, b: RTPDrift | PlainMessage<RTPDrift> | undefined): boolean;
1575
+ }
1576
+
1577
+ /**
1578
+ * @generated from message livekit.RTPStats
1579
+ */
1580
+ export declare class RTPStats extends Message<RTPStats> {
1581
+ /**
1582
+ * @generated from field: google.protobuf.Timestamp start_time = 1;
1583
+ */
1584
+ startTime?: Timestamp;
1585
+
1586
+ /**
1587
+ * @generated from field: google.protobuf.Timestamp end_time = 2;
1588
+ */
1589
+ endTime?: Timestamp;
1590
+
1591
+ /**
1592
+ * @generated from field: double duration = 3;
1593
+ */
1594
+ duration: number;
1595
+
1596
+ /**
1597
+ * @generated from field: uint32 packets = 4;
1598
+ */
1599
+ packets: number;
1600
+
1601
+ /**
1602
+ * @generated from field: double packet_rate = 5;
1603
+ */
1604
+ packetRate: number;
1605
+
1606
+ /**
1607
+ * @generated from field: uint64 bytes = 6;
1608
+ */
1609
+ bytes: bigint;
1610
+
1611
+ /**
1612
+ * @generated from field: uint64 header_bytes = 39;
1613
+ */
1614
+ headerBytes: bigint;
1615
+
1616
+ /**
1617
+ * @generated from field: double bitrate = 7;
1618
+ */
1619
+ bitrate: number;
1620
+
1621
+ /**
1622
+ * @generated from field: uint32 packets_lost = 8;
1623
+ */
1624
+ packetsLost: number;
1625
+
1626
+ /**
1627
+ * @generated from field: double packet_loss_rate = 9;
1628
+ */
1629
+ packetLossRate: number;
1630
+
1631
+ /**
1632
+ * @generated from field: float packet_loss_percentage = 10;
1633
+ */
1634
+ packetLossPercentage: number;
1635
+
1636
+ /**
1637
+ * @generated from field: uint32 packets_duplicate = 11;
1638
+ */
1639
+ packetsDuplicate: number;
1640
+
1641
+ /**
1642
+ * @generated from field: double packet_duplicate_rate = 12;
1643
+ */
1644
+ packetDuplicateRate: number;
1645
+
1646
+ /**
1647
+ * @generated from field: uint64 bytes_duplicate = 13;
1648
+ */
1649
+ bytesDuplicate: bigint;
1650
+
1651
+ /**
1652
+ * @generated from field: uint64 header_bytes_duplicate = 40;
1653
+ */
1654
+ headerBytesDuplicate: bigint;
1655
+
1656
+ /**
1657
+ * @generated from field: double bitrate_duplicate = 14;
1658
+ */
1659
+ bitrateDuplicate: number;
1660
+
1661
+ /**
1662
+ * @generated from field: uint32 packets_padding = 15;
1663
+ */
1664
+ packetsPadding: number;
1665
+
1666
+ /**
1667
+ * @generated from field: double packet_padding_rate = 16;
1668
+ */
1669
+ packetPaddingRate: number;
1670
+
1671
+ /**
1672
+ * @generated from field: uint64 bytes_padding = 17;
1673
+ */
1674
+ bytesPadding: bigint;
1675
+
1676
+ /**
1677
+ * @generated from field: uint64 header_bytes_padding = 41;
1678
+ */
1679
+ headerBytesPadding: bigint;
1680
+
1681
+ /**
1682
+ * @generated from field: double bitrate_padding = 18;
1683
+ */
1684
+ bitratePadding: number;
1685
+
1686
+ /**
1687
+ * @generated from field: uint32 packets_out_of_order = 19;
1688
+ */
1689
+ packetsOutOfOrder: number;
1690
+
1691
+ /**
1692
+ * @generated from field: uint32 frames = 20;
1693
+ */
1694
+ frames: number;
1695
+
1696
+ /**
1697
+ * @generated from field: double frame_rate = 21;
1698
+ */
1699
+ frameRate: number;
1700
+
1701
+ /**
1702
+ * @generated from field: double jitter_current = 22;
1703
+ */
1704
+ jitterCurrent: number;
1705
+
1706
+ /**
1707
+ * @generated from field: double jitter_max = 23;
1708
+ */
1709
+ jitterMax: number;
1710
+
1711
+ /**
1712
+ * @generated from field: map<int32, uint32> gap_histogram = 24;
1713
+ */
1714
+ gapHistogram: { [key: number]: number };
1715
+
1716
+ /**
1717
+ * @generated from field: uint32 nacks = 25;
1718
+ */
1719
+ nacks: number;
1720
+
1721
+ /**
1722
+ * @generated from field: uint32 nack_acks = 37;
1723
+ */
1724
+ nackAcks: number;
1725
+
1726
+ /**
1727
+ * @generated from field: uint32 nack_misses = 26;
1728
+ */
1729
+ nackMisses: number;
1730
+
1731
+ /**
1732
+ * @generated from field: uint32 nack_repeated = 38;
1733
+ */
1734
+ nackRepeated: number;
1735
+
1736
+ /**
1737
+ * @generated from field: uint32 plis = 27;
1738
+ */
1739
+ plis: number;
1740
+
1741
+ /**
1742
+ * @generated from field: google.protobuf.Timestamp last_pli = 28;
1743
+ */
1744
+ lastPli?: Timestamp;
1745
+
1746
+ /**
1747
+ * @generated from field: uint32 firs = 29;
1748
+ */
1749
+ firs: number;
1750
+
1751
+ /**
1752
+ * @generated from field: google.protobuf.Timestamp last_fir = 30;
1753
+ */
1754
+ lastFir?: Timestamp;
1755
+
1756
+ /**
1757
+ * @generated from field: uint32 rtt_current = 31;
1758
+ */
1759
+ rttCurrent: number;
1760
+
1761
+ /**
1762
+ * @generated from field: uint32 rtt_max = 32;
1763
+ */
1764
+ rttMax: number;
1765
+
1766
+ /**
1767
+ * @generated from field: uint32 key_frames = 33;
1768
+ */
1769
+ keyFrames: number;
1770
+
1771
+ /**
1772
+ * @generated from field: google.protobuf.Timestamp last_key_frame = 34;
1773
+ */
1774
+ lastKeyFrame?: Timestamp;
1775
+
1776
+ /**
1777
+ * @generated from field: uint32 layer_lock_plis = 35;
1778
+ */
1779
+ layerLockPlis: number;
1780
+
1781
+ /**
1782
+ * @generated from field: google.protobuf.Timestamp last_layer_lock_pli = 36;
1783
+ */
1784
+ lastLayerLockPli?: Timestamp;
1785
+
1786
+ /**
1787
+ * @generated from field: livekit.RTPDrift packet_drift = 44;
1788
+ */
1789
+ packetDrift?: RTPDrift;
1790
+
1791
+ /**
1792
+ * NEXT_ID: 46
1793
+ *
1794
+ * @generated from field: livekit.RTPDrift report_drift = 45;
1795
+ */
1796
+ reportDrift?: RTPDrift;
1797
+
1798
+ constructor(data?: PartialMessage<RTPStats>);
1799
+
1800
+ static readonly runtime: typeof proto3;
1801
+ static readonly typeName = "livekit.RTPStats";
1802
+ static readonly fields: FieldList;
1803
+
1804
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): RTPStats;
1805
+
1806
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): RTPStats;
1807
+
1808
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): RTPStats;
1809
+
1810
+ static equals(a: RTPStats | PlainMessage<RTPStats> | undefined, b: RTPStats | PlainMessage<RTPStats> | undefined): boolean;
1811
+ }
1812
+
1813
+ /**
1814
+ * @generated from message livekit.TimedVersion
1815
+ */
1816
+ export declare class TimedVersion extends Message<TimedVersion> {
1817
+ /**
1818
+ * @generated from field: int64 unix_micro = 1;
1819
+ */
1820
+ unixMicro: bigint;
1821
+
1822
+ /**
1823
+ * @generated from field: int32 ticks = 2;
1824
+ */
1825
+ ticks: number;
1826
+
1827
+ constructor(data?: PartialMessage<TimedVersion>);
1828
+
1829
+ static readonly runtime: typeof proto3;
1830
+ static readonly typeName = "livekit.TimedVersion";
1831
+ static readonly fields: FieldList;
1832
+
1833
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): TimedVersion;
1834
+
1835
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): TimedVersion;
1836
+
1837
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): TimedVersion;
1838
+
1839
+ static equals(a: TimedVersion | PlainMessage<TimedVersion> | undefined, b: TimedVersion | PlainMessage<TimedVersion> | undefined): boolean;
1840
+ }
1841
+