@cc-livekit/protocol 1.39.3

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 (40) hide show
  1. package/dist/index.cjs +7285 -0
  2. package/dist/index.cjs.map +1 -0
  3. package/dist/index.d.cts +13646 -0
  4. package/dist/index.d.mts +13646 -0
  5. package/dist/index.d.ts +13646 -0
  6. package/dist/index.mjs +7009 -0
  7. package/dist/index.mjs.map +1 -0
  8. package/package.json +42 -0
  9. package/src/gen/livekit_agent_dispatch_pb.d.ts +253 -0
  10. package/src/gen/livekit_agent_dispatch_pb.js +103 -0
  11. package/src/gen/livekit_agent_pb.d.ts +758 -0
  12. package/src/gen/livekit_agent_pb.js +269 -0
  13. package/src/gen/livekit_analytics_pb.d.ts +1379 -0
  14. package/src/gen/livekit_analytics_pb.js +397 -0
  15. package/src/gen/livekit_cloud_agent_pb.d.ts +919 -0
  16. package/src/gen/livekit_cloud_agent_pb.js +327 -0
  17. package/src/gen/livekit_egress_pb.d.ts +2151 -0
  18. package/src/gen/livekit_egress_pb.js +625 -0
  19. package/src/gen/livekit_ingress_pb.d.ts +864 -0
  20. package/src/gen/livekit_ingress_pb.js +272 -0
  21. package/src/gen/livekit_internal_pb.d.ts +786 -0
  22. package/src/gen/livekit_internal_pb.js +227 -0
  23. package/src/gen/livekit_metrics_pb.d.ts +376 -0
  24. package/src/gen/livekit_metrics_pb.js +97 -0
  25. package/src/gen/livekit_models_pb.d.ts +3083 -0
  26. package/src/gen/livekit_models_pb.js +998 -0
  27. package/src/gen/livekit_room_pb.d.ts +899 -0
  28. package/src/gen/livekit_room_pb.js +300 -0
  29. package/src/gen/livekit_rtc_pb.d.ts +2134 -0
  30. package/src/gen/livekit_rtc_pb.js +668 -0
  31. package/src/gen/livekit_sip_pb.d.ts +2619 -0
  32. package/src/gen/livekit_sip_pb.js +771 -0
  33. package/src/gen/livekit_temptalk_pb.d.ts +473 -0
  34. package/src/gen/livekit_temptalk_pb.js +167 -0
  35. package/src/gen/livekit_webhook_pb.d.ts +106 -0
  36. package/src/gen/livekit_webhook_pb.js +42 -0
  37. package/src/gen/version.d.ts +1 -0
  38. package/src/gen/version.js +2 -0
  39. package/src/index.d.ts +12 -0
  40. package/src/index.js +13 -0
@@ -0,0 +1,3083 @@
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.10.1 with parameter "target=dts+js"
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
+ import type { MetricsBatch } from "./livekit_metrics_pb.js";
23
+
24
+ /**
25
+ * @generated from enum livekit.AudioCodec
26
+ */
27
+ export declare enum AudioCodec {
28
+ /**
29
+ * @generated from enum value: DEFAULT_AC = 0;
30
+ */
31
+ DEFAULT_AC = 0,
32
+
33
+ /**
34
+ * @generated from enum value: OPUS = 1;
35
+ */
36
+ OPUS = 1,
37
+
38
+ /**
39
+ * @generated from enum value: AAC = 2;
40
+ */
41
+ AAC = 2,
42
+ }
43
+
44
+ /**
45
+ * @generated from enum livekit.VideoCodec
46
+ */
47
+ export declare enum VideoCodec {
48
+ /**
49
+ * @generated from enum value: DEFAULT_VC = 0;
50
+ */
51
+ DEFAULT_VC = 0,
52
+
53
+ /**
54
+ * @generated from enum value: H264_BASELINE = 1;
55
+ */
56
+ H264_BASELINE = 1,
57
+
58
+ /**
59
+ * @generated from enum value: H264_MAIN = 2;
60
+ */
61
+ H264_MAIN = 2,
62
+
63
+ /**
64
+ * @generated from enum value: H264_HIGH = 3;
65
+ */
66
+ H264_HIGH = 3,
67
+
68
+ /**
69
+ * @generated from enum value: VP8 = 4;
70
+ */
71
+ VP8 = 4,
72
+ }
73
+
74
+ /**
75
+ * @generated from enum livekit.ImageCodec
76
+ */
77
+ export declare enum ImageCodec {
78
+ /**
79
+ * @generated from enum value: IC_DEFAULT = 0;
80
+ */
81
+ IC_DEFAULT = 0,
82
+
83
+ /**
84
+ * @generated from enum value: IC_JPEG = 1;
85
+ */
86
+ IC_JPEG = 1,
87
+ }
88
+
89
+ /**
90
+ * Policy for publisher to handle subscribers that are unable to support the primary codec of a track
91
+ *
92
+ * @generated from enum livekit.BackupCodecPolicy
93
+ */
94
+ export declare enum BackupCodecPolicy {
95
+ /**
96
+ * default behavior, the track prefer to regress to backup codec and all subscribers will receive the backup codec,
97
+ * the sfu will try to regress codec if possible but not assured.
98
+ *
99
+ * @generated from enum value: PREFER_REGRESSION = 0;
100
+ */
101
+ PREFER_REGRESSION = 0,
102
+
103
+ /**
104
+ * encoding/send the primary and backup codec simultaneously
105
+ *
106
+ * @generated from enum value: SIMULCAST = 1;
107
+ */
108
+ SIMULCAST = 1,
109
+
110
+ /**
111
+ * force the track to regress to backup codec, this option can be used in video conference or the publisher has limited bandwidth/encoding power
112
+ *
113
+ * @generated from enum value: REGRESSION = 2;
114
+ */
115
+ REGRESSION = 2,
116
+ }
117
+
118
+ /**
119
+ * @generated from enum livekit.TrackType
120
+ */
121
+ export declare enum TrackType {
122
+ /**
123
+ * @generated from enum value: AUDIO = 0;
124
+ */
125
+ AUDIO = 0,
126
+
127
+ /**
128
+ * @generated from enum value: VIDEO = 1;
129
+ */
130
+ VIDEO = 1,
131
+
132
+ /**
133
+ * @generated from enum value: DATA = 2;
134
+ */
135
+ DATA = 2,
136
+ }
137
+
138
+ /**
139
+ * @generated from enum livekit.TrackSource
140
+ */
141
+ export declare enum TrackSource {
142
+ /**
143
+ * @generated from enum value: UNKNOWN = 0;
144
+ */
145
+ UNKNOWN = 0,
146
+
147
+ /**
148
+ * @generated from enum value: CAMERA = 1;
149
+ */
150
+ CAMERA = 1,
151
+
152
+ /**
153
+ * @generated from enum value: MICROPHONE = 2;
154
+ */
155
+ MICROPHONE = 2,
156
+
157
+ /**
158
+ * @generated from enum value: SCREEN_SHARE = 3;
159
+ */
160
+ SCREEN_SHARE = 3,
161
+
162
+ /**
163
+ * @generated from enum value: SCREEN_SHARE_AUDIO = 4;
164
+ */
165
+ SCREEN_SHARE_AUDIO = 4,
166
+ }
167
+
168
+ /**
169
+ * @generated from enum livekit.VideoQuality
170
+ */
171
+ export declare enum VideoQuality {
172
+ /**
173
+ * @generated from enum value: LOW = 0;
174
+ */
175
+ LOW = 0,
176
+
177
+ /**
178
+ * @generated from enum value: MEDIUM = 1;
179
+ */
180
+ MEDIUM = 1,
181
+
182
+ /**
183
+ * @generated from enum value: HIGH = 2;
184
+ */
185
+ HIGH = 2,
186
+
187
+ /**
188
+ * @generated from enum value: OFF = 3;
189
+ */
190
+ OFF = 3,
191
+ }
192
+
193
+ /**
194
+ * @generated from enum livekit.ConnectionQuality
195
+ */
196
+ export declare enum ConnectionQuality {
197
+ /**
198
+ * @generated from enum value: POOR = 0;
199
+ */
200
+ POOR = 0,
201
+
202
+ /**
203
+ * @generated from enum value: GOOD = 1;
204
+ */
205
+ GOOD = 1,
206
+
207
+ /**
208
+ * @generated from enum value: EXCELLENT = 2;
209
+ */
210
+ EXCELLENT = 2,
211
+
212
+ /**
213
+ * @generated from enum value: LOST = 3;
214
+ */
215
+ LOST = 3,
216
+ }
217
+
218
+ /**
219
+ * @generated from enum livekit.ClientConfigSetting
220
+ */
221
+ export declare enum ClientConfigSetting {
222
+ /**
223
+ * @generated from enum value: UNSET = 0;
224
+ */
225
+ UNSET = 0,
226
+
227
+ /**
228
+ * @generated from enum value: DISABLED = 1;
229
+ */
230
+ DISABLED = 1,
231
+
232
+ /**
233
+ * @generated from enum value: ENABLED = 2;
234
+ */
235
+ ENABLED = 2,
236
+ }
237
+
238
+ /**
239
+ * @generated from enum livekit.DisconnectReason
240
+ */
241
+ export declare enum DisconnectReason {
242
+ /**
243
+ * @generated from enum value: UNKNOWN_REASON = 0;
244
+ */
245
+ UNKNOWN_REASON = 0,
246
+
247
+ /**
248
+ * the client initiated the disconnect
249
+ *
250
+ * @generated from enum value: CLIENT_INITIATED = 1;
251
+ */
252
+ CLIENT_INITIATED = 1,
253
+
254
+ /**
255
+ * another participant with the same identity has joined the room
256
+ *
257
+ * @generated from enum value: DUPLICATE_IDENTITY = 2;
258
+ */
259
+ DUPLICATE_IDENTITY = 2,
260
+
261
+ /**
262
+ * the server instance is shutting down
263
+ *
264
+ * @generated from enum value: SERVER_SHUTDOWN = 3;
265
+ */
266
+ SERVER_SHUTDOWN = 3,
267
+
268
+ /**
269
+ * RoomService.RemoveParticipant was called
270
+ *
271
+ * @generated from enum value: PARTICIPANT_REMOVED = 4;
272
+ */
273
+ PARTICIPANT_REMOVED = 4,
274
+
275
+ /**
276
+ * RoomService.DeleteRoom was called
277
+ *
278
+ * @generated from enum value: ROOM_DELETED = 5;
279
+ */
280
+ ROOM_DELETED = 5,
281
+
282
+ /**
283
+ * the client is attempting to resume a session, but server is not aware of it
284
+ *
285
+ * @generated from enum value: STATE_MISMATCH = 6;
286
+ */
287
+ STATE_MISMATCH = 6,
288
+
289
+ /**
290
+ * client was unable to connect fully
291
+ *
292
+ * @generated from enum value: JOIN_FAILURE = 7;
293
+ */
294
+ JOIN_FAILURE = 7,
295
+
296
+ /**
297
+ * Cloud-only, the server requested Participant to migrate the connection elsewhere
298
+ *
299
+ * @generated from enum value: MIGRATION = 8;
300
+ */
301
+ MIGRATION = 8,
302
+
303
+ /**
304
+ * the signal websocket was closed unexpectedly
305
+ *
306
+ * @generated from enum value: SIGNAL_CLOSE = 9;
307
+ */
308
+ SIGNAL_CLOSE = 9,
309
+
310
+ /**
311
+ * the room was closed, due to all Standard and Ingress participants having left
312
+ *
313
+ * @generated from enum value: ROOM_CLOSED = 10;
314
+ */
315
+ ROOM_CLOSED = 10,
316
+
317
+ /**
318
+ * SIP callee did not respond in time
319
+ *
320
+ * @generated from enum value: USER_UNAVAILABLE = 11;
321
+ */
322
+ USER_UNAVAILABLE = 11,
323
+
324
+ /**
325
+ * SIP callee rejected the call (busy)
326
+ *
327
+ * @generated from enum value: USER_REJECTED = 12;
328
+ */
329
+ USER_REJECTED = 12,
330
+
331
+ /**
332
+ * SIP protocol failure or unexpected response
333
+ *
334
+ * @generated from enum value: SIP_TRUNK_FAILURE = 13;
335
+ */
336
+ SIP_TRUNK_FAILURE = 13,
337
+
338
+ /**
339
+ * server timed out a participant session
340
+ *
341
+ * @generated from enum value: CONNECTION_TIMEOUT = 14;
342
+ */
343
+ CONNECTION_TIMEOUT = 14,
344
+
345
+ /**
346
+ * media stream failure or media timeout
347
+ *
348
+ * @generated from enum value: MEDIA_FAILURE = 15;
349
+ */
350
+ MEDIA_FAILURE = 15,
351
+ }
352
+
353
+ /**
354
+ * @generated from enum livekit.ReconnectReason
355
+ */
356
+ export declare enum ReconnectReason {
357
+ /**
358
+ * @generated from enum value: RR_UNKNOWN = 0;
359
+ */
360
+ RR_UNKNOWN = 0,
361
+
362
+ /**
363
+ * @generated from enum value: RR_SIGNAL_DISCONNECTED = 1;
364
+ */
365
+ RR_SIGNAL_DISCONNECTED = 1,
366
+
367
+ /**
368
+ * @generated from enum value: RR_PUBLISHER_FAILED = 2;
369
+ */
370
+ RR_PUBLISHER_FAILED = 2,
371
+
372
+ /**
373
+ * @generated from enum value: RR_SUBSCRIBER_FAILED = 3;
374
+ */
375
+ RR_SUBSCRIBER_FAILED = 3,
376
+
377
+ /**
378
+ * @generated from enum value: RR_SWITCH_CANDIDATE = 4;
379
+ */
380
+ RR_SWITCH_CANDIDATE = 4,
381
+ }
382
+
383
+ /**
384
+ * @generated from enum livekit.SubscriptionError
385
+ */
386
+ export declare enum SubscriptionError {
387
+ /**
388
+ * @generated from enum value: SE_UNKNOWN = 0;
389
+ */
390
+ SE_UNKNOWN = 0,
391
+
392
+ /**
393
+ * @generated from enum value: SE_CODEC_UNSUPPORTED = 1;
394
+ */
395
+ SE_CODEC_UNSUPPORTED = 1,
396
+
397
+ /**
398
+ * @generated from enum value: SE_TRACK_NOTFOUND = 2;
399
+ */
400
+ SE_TRACK_NOTFOUND = 2,
401
+ }
402
+
403
+ /**
404
+ * @generated from enum livekit.AudioTrackFeature
405
+ */
406
+ export declare enum AudioTrackFeature {
407
+ /**
408
+ * @generated from enum value: TF_STEREO = 0;
409
+ */
410
+ TF_STEREO = 0,
411
+
412
+ /**
413
+ * @generated from enum value: TF_NO_DTX = 1;
414
+ */
415
+ TF_NO_DTX = 1,
416
+
417
+ /**
418
+ * @generated from enum value: TF_AUTO_GAIN_CONTROL = 2;
419
+ */
420
+ TF_AUTO_GAIN_CONTROL = 2,
421
+
422
+ /**
423
+ * @generated from enum value: TF_ECHO_CANCELLATION = 3;
424
+ */
425
+ TF_ECHO_CANCELLATION = 3,
426
+
427
+ /**
428
+ * @generated from enum value: TF_NOISE_SUPPRESSION = 4;
429
+ */
430
+ TF_NOISE_SUPPRESSION = 4,
431
+
432
+ /**
433
+ * @generated from enum value: TF_ENHANCED_NOISE_CANCELLATION = 5;
434
+ */
435
+ TF_ENHANCED_NOISE_CANCELLATION = 5,
436
+
437
+ /**
438
+ * client will buffer audio once available and send it to the server via bytes stream once connected
439
+ *
440
+ * @generated from enum value: TF_PRECONNECT_BUFFER = 6;
441
+ */
442
+ TF_PRECONNECT_BUFFER = 6,
443
+ }
444
+
445
+ /**
446
+ * @generated from message livekit.Pagination
447
+ */
448
+ export declare class Pagination extends Message<Pagination> {
449
+ /**
450
+ * list entities which IDs are greater
451
+ *
452
+ * @generated from field: string after_id = 1;
453
+ */
454
+ afterId: string;
455
+
456
+ /**
457
+ * @generated from field: int32 limit = 2;
458
+ */
459
+ limit: number;
460
+
461
+ constructor(data?: PartialMessage<Pagination>);
462
+
463
+ static readonly runtime: typeof proto3;
464
+ static readonly typeName = "livekit.Pagination";
465
+ static readonly fields: FieldList;
466
+
467
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Pagination;
468
+
469
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Pagination;
470
+
471
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Pagination;
472
+
473
+ static equals(a: Pagination | PlainMessage<Pagination> | undefined, b: Pagination | PlainMessage<Pagination> | undefined): boolean;
474
+ }
475
+
476
+ /**
477
+ * ListUpdate is used for updated APIs where 'repeated string' field is modified.
478
+ *
479
+ * @generated from message livekit.ListUpdate
480
+ */
481
+ export declare class ListUpdate extends Message<ListUpdate> {
482
+ /**
483
+ * set the field to a new list
484
+ *
485
+ * @generated from field: repeated string set = 1;
486
+ */
487
+ set: string[];
488
+
489
+ constructor(data?: PartialMessage<ListUpdate>);
490
+
491
+ static readonly runtime: typeof proto3;
492
+ static readonly typeName = "livekit.ListUpdate";
493
+ static readonly fields: FieldList;
494
+
495
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ListUpdate;
496
+
497
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ListUpdate;
498
+
499
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ListUpdate;
500
+
501
+ static equals(a: ListUpdate | PlainMessage<ListUpdate> | undefined, b: ListUpdate | PlainMessage<ListUpdate> | undefined): boolean;
502
+ }
503
+
504
+ /**
505
+ * @generated from message livekit.Room
506
+ */
507
+ export declare class Room extends Message<Room> {
508
+ /**
509
+ * @generated from field: string sid = 1;
510
+ */
511
+ sid: string;
512
+
513
+ /**
514
+ * @generated from field: string name = 2;
515
+ */
516
+ name: string;
517
+
518
+ /**
519
+ * @generated from field: uint32 empty_timeout = 3;
520
+ */
521
+ emptyTimeout: number;
522
+
523
+ /**
524
+ * @generated from field: uint32 departure_timeout = 14;
525
+ */
526
+ departureTimeout: number;
527
+
528
+ /**
529
+ * @generated from field: uint32 max_participants = 4;
530
+ */
531
+ maxParticipants: number;
532
+
533
+ /**
534
+ * @generated from field: int64 creation_time = 5;
535
+ */
536
+ creationTime: bigint;
537
+
538
+ /**
539
+ * @generated from field: int64 creation_time_ms = 15;
540
+ */
541
+ creationTimeMs: bigint;
542
+
543
+ /**
544
+ * @generated from field: string turn_password = 6;
545
+ */
546
+ turnPassword: string;
547
+
548
+ /**
549
+ * @generated from field: repeated livekit.Codec enabled_codecs = 7;
550
+ */
551
+ enabledCodecs: Codec[];
552
+
553
+ /**
554
+ * @generated from field: string metadata = 8;
555
+ */
556
+ metadata: string;
557
+
558
+ /**
559
+ * @generated from field: uint32 num_participants = 9;
560
+ */
561
+ numParticipants: number;
562
+
563
+ /**
564
+ * @generated from field: uint32 num_publishers = 11;
565
+ */
566
+ numPublishers: number;
567
+
568
+ /**
569
+ * @generated from field: bool active_recording = 10;
570
+ */
571
+ activeRecording: boolean;
572
+
573
+ /**
574
+ * @generated from field: livekit.TimedVersion version = 13;
575
+ */
576
+ version?: TimedVersion;
577
+
578
+ constructor(data?: PartialMessage<Room>);
579
+
580
+ static readonly runtime: typeof proto3;
581
+ static readonly typeName = "livekit.Room";
582
+ static readonly fields: FieldList;
583
+
584
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Room;
585
+
586
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Room;
587
+
588
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Room;
589
+
590
+ static equals(a: Room | PlainMessage<Room> | undefined, b: Room | PlainMessage<Room> | undefined): boolean;
591
+ }
592
+
593
+ /**
594
+ * @generated from message livekit.Codec
595
+ */
596
+ export declare class Codec extends Message<Codec> {
597
+ /**
598
+ * @generated from field: string mime = 1;
599
+ */
600
+ mime: string;
601
+
602
+ /**
603
+ * @generated from field: string fmtp_line = 2;
604
+ */
605
+ fmtpLine: string;
606
+
607
+ constructor(data?: PartialMessage<Codec>);
608
+
609
+ static readonly runtime: typeof proto3;
610
+ static readonly typeName = "livekit.Codec";
611
+ static readonly fields: FieldList;
612
+
613
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Codec;
614
+
615
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Codec;
616
+
617
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Codec;
618
+
619
+ static equals(a: Codec | PlainMessage<Codec> | undefined, b: Codec | PlainMessage<Codec> | undefined): boolean;
620
+ }
621
+
622
+ /**
623
+ * @generated from message livekit.PlayoutDelay
624
+ */
625
+ export declare class PlayoutDelay extends Message<PlayoutDelay> {
626
+ /**
627
+ * @generated from field: bool enabled = 1;
628
+ */
629
+ enabled: boolean;
630
+
631
+ /**
632
+ * @generated from field: uint32 min = 2;
633
+ */
634
+ min: number;
635
+
636
+ /**
637
+ * @generated from field: uint32 max = 3;
638
+ */
639
+ max: number;
640
+
641
+ constructor(data?: PartialMessage<PlayoutDelay>);
642
+
643
+ static readonly runtime: typeof proto3;
644
+ static readonly typeName = "livekit.PlayoutDelay";
645
+ static readonly fields: FieldList;
646
+
647
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): PlayoutDelay;
648
+
649
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): PlayoutDelay;
650
+
651
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): PlayoutDelay;
652
+
653
+ static equals(a: PlayoutDelay | PlainMessage<PlayoutDelay> | undefined, b: PlayoutDelay | PlainMessage<PlayoutDelay> | undefined): boolean;
654
+ }
655
+
656
+ /**
657
+ * @generated from message livekit.ParticipantPermission
658
+ */
659
+ export declare class ParticipantPermission extends Message<ParticipantPermission> {
660
+ /**
661
+ * allow participant to subscribe to other tracks in the room
662
+ *
663
+ * @generated from field: bool can_subscribe = 1;
664
+ */
665
+ canSubscribe: boolean;
666
+
667
+ /**
668
+ * allow participant to publish new tracks to room
669
+ *
670
+ * @generated from field: bool can_publish = 2;
671
+ */
672
+ canPublish: boolean;
673
+
674
+ /**
675
+ * allow participant to publish data
676
+ *
677
+ * @generated from field: bool can_publish_data = 3;
678
+ */
679
+ canPublishData: boolean;
680
+
681
+ /**
682
+ * sources that are allowed to be published
683
+ *
684
+ * @generated from field: repeated livekit.TrackSource can_publish_sources = 9;
685
+ */
686
+ canPublishSources: TrackSource[];
687
+
688
+ /**
689
+ * indicates that it's hidden to others
690
+ *
691
+ * @generated from field: bool hidden = 7;
692
+ */
693
+ hidden: boolean;
694
+
695
+ /**
696
+ * indicates it's a recorder instance
697
+ * deprecated: use ParticipantInfo.kind instead
698
+ *
699
+ * @generated from field: bool recorder = 8 [deprecated = true];
700
+ * @deprecated
701
+ */
702
+ recorder: boolean;
703
+
704
+ /**
705
+ * indicates that participant can update own metadata and attributes
706
+ *
707
+ * @generated from field: bool can_update_metadata = 10;
708
+ */
709
+ canUpdateMetadata: boolean;
710
+
711
+ /**
712
+ * indicates that participant is an agent
713
+ * deprecated: use ParticipantInfo.kind instead
714
+ *
715
+ * @generated from field: bool agent = 11 [deprecated = true];
716
+ * @deprecated
717
+ */
718
+ agent: boolean;
719
+
720
+ /**
721
+ * if a participant can subscribe to metrics
722
+ *
723
+ * @generated from field: bool can_subscribe_metrics = 12;
724
+ */
725
+ canSubscribeMetrics: boolean;
726
+
727
+ constructor(data?: PartialMessage<ParticipantPermission>);
728
+
729
+ static readonly runtime: typeof proto3;
730
+ static readonly typeName = "livekit.ParticipantPermission";
731
+ static readonly fields: FieldList;
732
+
733
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ParticipantPermission;
734
+
735
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ParticipantPermission;
736
+
737
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ParticipantPermission;
738
+
739
+ static equals(a: ParticipantPermission | PlainMessage<ParticipantPermission> | undefined, b: ParticipantPermission | PlainMessage<ParticipantPermission> | undefined): boolean;
740
+ }
741
+
742
+ /**
743
+ * @generated from message livekit.ParticipantInfo
744
+ */
745
+ export declare class ParticipantInfo extends Message<ParticipantInfo> {
746
+ /**
747
+ * @generated from field: string sid = 1;
748
+ */
749
+ sid: string;
750
+
751
+ /**
752
+ * @generated from field: string identity = 2;
753
+ */
754
+ identity: string;
755
+
756
+ /**
757
+ * @generated from field: livekit.ParticipantInfo.State state = 3;
758
+ */
759
+ state: ParticipantInfo_State;
760
+
761
+ /**
762
+ * @generated from field: repeated livekit.TrackInfo tracks = 4;
763
+ */
764
+ tracks: TrackInfo[];
765
+
766
+ /**
767
+ * @generated from field: string metadata = 5;
768
+ */
769
+ metadata: string;
770
+
771
+ /**
772
+ * timestamp when participant joined room, in seconds
773
+ *
774
+ * @generated from field: int64 joined_at = 6;
775
+ */
776
+ joinedAt: bigint;
777
+
778
+ /**
779
+ * timestamp when participant joined room, in milliseconds
780
+ *
781
+ * @generated from field: int64 joined_at_ms = 17;
782
+ */
783
+ joinedAtMs: bigint;
784
+
785
+ /**
786
+ * @generated from field: string name = 9;
787
+ */
788
+ name: string;
789
+
790
+ /**
791
+ * @generated from field: uint32 version = 10;
792
+ */
793
+ version: number;
794
+
795
+ /**
796
+ * @generated from field: livekit.ParticipantPermission permission = 11;
797
+ */
798
+ permission?: ParticipantPermission;
799
+
800
+ /**
801
+ * @generated from field: string region = 12;
802
+ */
803
+ region: string;
804
+
805
+ /**
806
+ * indicates the participant has an active publisher connection
807
+ * and can publish to the server
808
+ *
809
+ * @generated from field: bool is_publisher = 13;
810
+ */
811
+ isPublisher: boolean;
812
+
813
+ /**
814
+ * @generated from field: livekit.ParticipantInfo.Kind kind = 14;
815
+ */
816
+ kind: ParticipantInfo_Kind;
817
+
818
+ /**
819
+ * @generated from field: map<string, string> attributes = 15;
820
+ */
821
+ attributes: { [key: string]: string };
822
+
823
+ /**
824
+ * @generated from field: livekit.DisconnectReason disconnect_reason = 16;
825
+ */
826
+ disconnectReason: DisconnectReason;
827
+
828
+ /**
829
+ * @generated from field: repeated livekit.ParticipantInfo.KindDetail kind_details = 18;
830
+ */
831
+ kindDetails: ParticipantInfo_KindDetail[];
832
+
833
+ constructor(data?: PartialMessage<ParticipantInfo>);
834
+
835
+ static readonly runtime: typeof proto3;
836
+ static readonly typeName = "livekit.ParticipantInfo";
837
+ static readonly fields: FieldList;
838
+
839
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ParticipantInfo;
840
+
841
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ParticipantInfo;
842
+
843
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ParticipantInfo;
844
+
845
+ static equals(a: ParticipantInfo | PlainMessage<ParticipantInfo> | undefined, b: ParticipantInfo | PlainMessage<ParticipantInfo> | undefined): boolean;
846
+ }
847
+
848
+ /**
849
+ * @generated from enum livekit.ParticipantInfo.State
850
+ */
851
+ export declare enum ParticipantInfo_State {
852
+ /**
853
+ * websocket' connected, but not offered yet
854
+ *
855
+ * @generated from enum value: JOINING = 0;
856
+ */
857
+ JOINING = 0,
858
+
859
+ /**
860
+ * server received client offer
861
+ *
862
+ * @generated from enum value: JOINED = 1;
863
+ */
864
+ JOINED = 1,
865
+
866
+ /**
867
+ * ICE connectivity established
868
+ *
869
+ * @generated from enum value: ACTIVE = 2;
870
+ */
871
+ ACTIVE = 2,
872
+
873
+ /**
874
+ * WS disconnected
875
+ *
876
+ * @generated from enum value: DISCONNECTED = 3;
877
+ */
878
+ DISCONNECTED = 3,
879
+ }
880
+
881
+ /**
882
+ * @generated from enum livekit.ParticipantInfo.Kind
883
+ */
884
+ export declare enum ParticipantInfo_Kind {
885
+ /**
886
+ * standard participants, e.g. web clients
887
+ *
888
+ * @generated from enum value: STANDARD = 0;
889
+ */
890
+ STANDARD = 0,
891
+
892
+ /**
893
+ * only ingests streams
894
+ *
895
+ * @generated from enum value: INGRESS = 1;
896
+ */
897
+ INGRESS = 1,
898
+
899
+ /**
900
+ * only consumes streams
901
+ *
902
+ * @generated from enum value: EGRESS = 2;
903
+ */
904
+ EGRESS = 2,
905
+
906
+ /**
907
+ * SIP participants
908
+ *
909
+ * @generated from enum value: SIP = 3;
910
+ */
911
+ SIP = 3,
912
+
913
+ /**
914
+ * LiveKit agents
915
+ *
916
+ * @generated from enum value: AGENT = 4;
917
+ */
918
+ AGENT = 4,
919
+ }
920
+
921
+ /**
922
+ * @generated from enum livekit.ParticipantInfo.KindDetail
923
+ */
924
+ export declare enum ParticipantInfo_KindDetail {
925
+ /**
926
+ * @generated from enum value: CLOUD_AGENT = 0;
927
+ */
928
+ CLOUD_AGENT = 0,
929
+
930
+ /**
931
+ * @generated from enum value: FORWARDED = 1;
932
+ */
933
+ FORWARDED = 1,
934
+ }
935
+
936
+ /**
937
+ * @generated from message livekit.Encryption
938
+ */
939
+ export declare class Encryption extends Message<Encryption> {
940
+ constructor(data?: PartialMessage<Encryption>);
941
+
942
+ static readonly runtime: typeof proto3;
943
+ static readonly typeName = "livekit.Encryption";
944
+ static readonly fields: FieldList;
945
+
946
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Encryption;
947
+
948
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Encryption;
949
+
950
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Encryption;
951
+
952
+ static equals(a: Encryption | PlainMessage<Encryption> | undefined, b: Encryption | PlainMessage<Encryption> | undefined): boolean;
953
+ }
954
+
955
+ /**
956
+ * @generated from enum livekit.Encryption.Type
957
+ */
958
+ export declare enum Encryption_Type {
959
+ /**
960
+ * @generated from enum value: NONE = 0;
961
+ */
962
+ NONE = 0,
963
+
964
+ /**
965
+ * @generated from enum value: GCM = 1;
966
+ */
967
+ GCM = 1,
968
+
969
+ /**
970
+ * @generated from enum value: CUSTOM = 2;
971
+ */
972
+ CUSTOM = 2,
973
+ }
974
+
975
+ /**
976
+ * @generated from message livekit.SimulcastCodecInfo
977
+ */
978
+ export declare class SimulcastCodecInfo extends Message<SimulcastCodecInfo> {
979
+ /**
980
+ * @generated from field: string mime_type = 1;
981
+ */
982
+ mimeType: string;
983
+
984
+ /**
985
+ * @generated from field: string mid = 2;
986
+ */
987
+ mid: string;
988
+
989
+ /**
990
+ * @generated from field: string cid = 3;
991
+ */
992
+ cid: string;
993
+
994
+ /**
995
+ * @generated from field: repeated livekit.VideoLayer layers = 4;
996
+ */
997
+ layers: VideoLayer[];
998
+
999
+ constructor(data?: PartialMessage<SimulcastCodecInfo>);
1000
+
1001
+ static readonly runtime: typeof proto3;
1002
+ static readonly typeName = "livekit.SimulcastCodecInfo";
1003
+ static readonly fields: FieldList;
1004
+
1005
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SimulcastCodecInfo;
1006
+
1007
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SimulcastCodecInfo;
1008
+
1009
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SimulcastCodecInfo;
1010
+
1011
+ static equals(a: SimulcastCodecInfo | PlainMessage<SimulcastCodecInfo> | undefined, b: SimulcastCodecInfo | PlainMessage<SimulcastCodecInfo> | undefined): boolean;
1012
+ }
1013
+
1014
+ /**
1015
+ * @generated from message livekit.TrackInfo
1016
+ */
1017
+ export declare class TrackInfo extends Message<TrackInfo> {
1018
+ /**
1019
+ * @generated from field: string sid = 1;
1020
+ */
1021
+ sid: string;
1022
+
1023
+ /**
1024
+ * @generated from field: livekit.TrackType type = 2;
1025
+ */
1026
+ type: TrackType;
1027
+
1028
+ /**
1029
+ * @generated from field: string name = 3;
1030
+ */
1031
+ name: string;
1032
+
1033
+ /**
1034
+ * @generated from field: bool muted = 4;
1035
+ */
1036
+ muted: boolean;
1037
+
1038
+ /**
1039
+ * original width of video (unset for audio)
1040
+ * clients may receive a lower resolution version with simulcast
1041
+ *
1042
+ * @generated from field: uint32 width = 5;
1043
+ */
1044
+ width: number;
1045
+
1046
+ /**
1047
+ * original height of video (unset for audio)
1048
+ *
1049
+ * @generated from field: uint32 height = 6;
1050
+ */
1051
+ height: number;
1052
+
1053
+ /**
1054
+ * true if track is simulcasted
1055
+ *
1056
+ * @generated from field: bool simulcast = 7;
1057
+ */
1058
+ simulcast: boolean;
1059
+
1060
+ /**
1061
+ * true if DTX (Discontinuous Transmission) is disabled for audio
1062
+ *
1063
+ * @generated from field: bool disable_dtx = 8;
1064
+ */
1065
+ disableDtx: boolean;
1066
+
1067
+ /**
1068
+ * source of media
1069
+ *
1070
+ * @generated from field: livekit.TrackSource source = 9;
1071
+ */
1072
+ source: TrackSource;
1073
+
1074
+ /**
1075
+ * @generated from field: repeated livekit.VideoLayer layers = 10;
1076
+ */
1077
+ layers: VideoLayer[];
1078
+
1079
+ /**
1080
+ * mime type of codec
1081
+ *
1082
+ * @generated from field: string mime_type = 11;
1083
+ */
1084
+ mimeType: string;
1085
+
1086
+ /**
1087
+ * @generated from field: string mid = 12;
1088
+ */
1089
+ mid: string;
1090
+
1091
+ /**
1092
+ * @generated from field: repeated livekit.SimulcastCodecInfo codecs = 13;
1093
+ */
1094
+ codecs: SimulcastCodecInfo[];
1095
+
1096
+ /**
1097
+ * @generated from field: bool stereo = 14;
1098
+ */
1099
+ stereo: boolean;
1100
+
1101
+ /**
1102
+ * true if RED (Redundant Encoding) is disabled for audio
1103
+ *
1104
+ * @generated from field: bool disable_red = 15;
1105
+ */
1106
+ disableRed: boolean;
1107
+
1108
+ /**
1109
+ * @generated from field: livekit.Encryption.Type encryption = 16;
1110
+ */
1111
+ encryption: Encryption_Type;
1112
+
1113
+ /**
1114
+ * @generated from field: string stream = 17;
1115
+ */
1116
+ stream: string;
1117
+
1118
+ /**
1119
+ * @generated from field: livekit.TimedVersion version = 18;
1120
+ */
1121
+ version?: TimedVersion;
1122
+
1123
+ /**
1124
+ * @generated from field: repeated livekit.AudioTrackFeature audio_features = 19;
1125
+ */
1126
+ audioFeatures: AudioTrackFeature[];
1127
+
1128
+ /**
1129
+ * @generated from field: livekit.BackupCodecPolicy backup_codec_policy = 20;
1130
+ */
1131
+ backupCodecPolicy: BackupCodecPolicy;
1132
+
1133
+ constructor(data?: PartialMessage<TrackInfo>);
1134
+
1135
+ static readonly runtime: typeof proto3;
1136
+ static readonly typeName = "livekit.TrackInfo";
1137
+ static readonly fields: FieldList;
1138
+
1139
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): TrackInfo;
1140
+
1141
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): TrackInfo;
1142
+
1143
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): TrackInfo;
1144
+
1145
+ static equals(a: TrackInfo | PlainMessage<TrackInfo> | undefined, b: TrackInfo | PlainMessage<TrackInfo> | undefined): boolean;
1146
+ }
1147
+
1148
+ /**
1149
+ * provide information about available spatial layers
1150
+ *
1151
+ * @generated from message livekit.VideoLayer
1152
+ */
1153
+ export declare class VideoLayer extends Message<VideoLayer> {
1154
+ /**
1155
+ * for tracks with a single layer, this should be HIGH
1156
+ *
1157
+ * @generated from field: livekit.VideoQuality quality = 1;
1158
+ */
1159
+ quality: VideoQuality;
1160
+
1161
+ /**
1162
+ * @generated from field: uint32 width = 2;
1163
+ */
1164
+ width: number;
1165
+
1166
+ /**
1167
+ * @generated from field: uint32 height = 3;
1168
+ */
1169
+ height: number;
1170
+
1171
+ /**
1172
+ * target bitrate in bit per second (bps), server will measure actual
1173
+ *
1174
+ * @generated from field: uint32 bitrate = 4;
1175
+ */
1176
+ bitrate: number;
1177
+
1178
+ /**
1179
+ * @generated from field: uint32 ssrc = 5;
1180
+ */
1181
+ ssrc: number;
1182
+
1183
+ /**
1184
+ * @generated from field: int32 spatial_layer = 6;
1185
+ */
1186
+ spatialLayer: number;
1187
+
1188
+ /**
1189
+ * @generated from field: string rid = 7;
1190
+ */
1191
+ rid: string;
1192
+
1193
+ constructor(data?: PartialMessage<VideoLayer>);
1194
+
1195
+ static readonly runtime: typeof proto3;
1196
+ static readonly typeName = "livekit.VideoLayer";
1197
+ static readonly fields: FieldList;
1198
+
1199
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): VideoLayer;
1200
+
1201
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): VideoLayer;
1202
+
1203
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): VideoLayer;
1204
+
1205
+ static equals(a: VideoLayer | PlainMessage<VideoLayer> | undefined, b: VideoLayer | PlainMessage<VideoLayer> | undefined): boolean;
1206
+ }
1207
+
1208
+ /**
1209
+ * new DataPacket API
1210
+ *
1211
+ * @generated from message livekit.DataPacket
1212
+ */
1213
+ export declare class DataPacket extends Message<DataPacket> {
1214
+ /**
1215
+ * @generated from field: livekit.DataPacket.Kind kind = 1 [deprecated = true];
1216
+ * @deprecated
1217
+ */
1218
+ kind: DataPacket_Kind;
1219
+
1220
+ /**
1221
+ * participant identity of user that sent the message
1222
+ *
1223
+ * @generated from field: string participant_identity = 4;
1224
+ */
1225
+ participantIdentity: string;
1226
+
1227
+ /**
1228
+ * identities of participants who will receive the message (sent to all by default)
1229
+ *
1230
+ * @generated from field: repeated string destination_identities = 5;
1231
+ */
1232
+ destinationIdentities: string[];
1233
+
1234
+ /**
1235
+ * @generated from oneof livekit.DataPacket.value
1236
+ */
1237
+ value: {
1238
+ /**
1239
+ * @generated from field: livekit.UserPacket user = 2;
1240
+ */
1241
+ value: UserPacket;
1242
+ case: "user";
1243
+ } | {
1244
+ /**
1245
+ * @generated from field: livekit.ActiveSpeakerUpdate speaker = 3 [deprecated = true];
1246
+ * @deprecated
1247
+ */
1248
+ value: ActiveSpeakerUpdate;
1249
+ case: "speaker";
1250
+ } | {
1251
+ /**
1252
+ * @generated from field: livekit.SipDTMF sip_dtmf = 6;
1253
+ */
1254
+ value: SipDTMF;
1255
+ case: "sipDtmf";
1256
+ } | {
1257
+ /**
1258
+ * @generated from field: livekit.Transcription transcription = 7;
1259
+ */
1260
+ value: Transcription;
1261
+ case: "transcription";
1262
+ } | {
1263
+ /**
1264
+ * @generated from field: livekit.MetricsBatch metrics = 8;
1265
+ */
1266
+ value: MetricsBatch;
1267
+ case: "metrics";
1268
+ } | {
1269
+ /**
1270
+ * @generated from field: livekit.ChatMessage chat_message = 9;
1271
+ */
1272
+ value: ChatMessage;
1273
+ case: "chatMessage";
1274
+ } | {
1275
+ /**
1276
+ * @generated from field: livekit.RpcRequest rpc_request = 10;
1277
+ */
1278
+ value: RpcRequest;
1279
+ case: "rpcRequest";
1280
+ } | {
1281
+ /**
1282
+ * @generated from field: livekit.RpcAck rpc_ack = 11;
1283
+ */
1284
+ value: RpcAck;
1285
+ case: "rpcAck";
1286
+ } | {
1287
+ /**
1288
+ * @generated from field: livekit.RpcResponse rpc_response = 12;
1289
+ */
1290
+ value: RpcResponse;
1291
+ case: "rpcResponse";
1292
+ } | {
1293
+ /**
1294
+ * @generated from field: livekit.DataStream.Header stream_header = 13;
1295
+ */
1296
+ value: DataStream_Header;
1297
+ case: "streamHeader";
1298
+ } | {
1299
+ /**
1300
+ * @generated from field: livekit.DataStream.Chunk stream_chunk = 14;
1301
+ */
1302
+ value: DataStream_Chunk;
1303
+ case: "streamChunk";
1304
+ } | {
1305
+ /**
1306
+ * @generated from field: livekit.DataStream.Trailer stream_trailer = 15;
1307
+ */
1308
+ value: DataStream_Trailer;
1309
+ case: "streamTrailer";
1310
+ } | { case: undefined; value?: undefined };
1311
+
1312
+ /**
1313
+ * sequence number of reliable packet
1314
+ *
1315
+ * @generated from field: uint32 sequence = 16;
1316
+ */
1317
+ sequence: number;
1318
+
1319
+ /**
1320
+ * sid of the user that sent the message
1321
+ *
1322
+ * @generated from field: string participant_sid = 17;
1323
+ */
1324
+ participantSid: string;
1325
+
1326
+ constructor(data?: PartialMessage<DataPacket>);
1327
+
1328
+ static readonly runtime: typeof proto3;
1329
+ static readonly typeName = "livekit.DataPacket";
1330
+ static readonly fields: FieldList;
1331
+
1332
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): DataPacket;
1333
+
1334
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): DataPacket;
1335
+
1336
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): DataPacket;
1337
+
1338
+ static equals(a: DataPacket | PlainMessage<DataPacket> | undefined, b: DataPacket | PlainMessage<DataPacket> | undefined): boolean;
1339
+ }
1340
+
1341
+ /**
1342
+ * @generated from enum livekit.DataPacket.Kind
1343
+ */
1344
+ export declare enum DataPacket_Kind {
1345
+ /**
1346
+ * @generated from enum value: RELIABLE = 0;
1347
+ */
1348
+ RELIABLE = 0,
1349
+
1350
+ /**
1351
+ * @generated from enum value: LOSSY = 1;
1352
+ */
1353
+ LOSSY = 1,
1354
+ }
1355
+
1356
+ /**
1357
+ * @generated from message livekit.ActiveSpeakerUpdate
1358
+ */
1359
+ export declare class ActiveSpeakerUpdate extends Message<ActiveSpeakerUpdate> {
1360
+ /**
1361
+ * @generated from field: repeated livekit.SpeakerInfo speakers = 1;
1362
+ */
1363
+ speakers: SpeakerInfo[];
1364
+
1365
+ constructor(data?: PartialMessage<ActiveSpeakerUpdate>);
1366
+
1367
+ static readonly runtime: typeof proto3;
1368
+ static readonly typeName = "livekit.ActiveSpeakerUpdate";
1369
+ static readonly fields: FieldList;
1370
+
1371
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ActiveSpeakerUpdate;
1372
+
1373
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ActiveSpeakerUpdate;
1374
+
1375
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ActiveSpeakerUpdate;
1376
+
1377
+ static equals(a: ActiveSpeakerUpdate | PlainMessage<ActiveSpeakerUpdate> | undefined, b: ActiveSpeakerUpdate | PlainMessage<ActiveSpeakerUpdate> | undefined): boolean;
1378
+ }
1379
+
1380
+ /**
1381
+ * @generated from message livekit.SpeakerInfo
1382
+ */
1383
+ export declare class SpeakerInfo extends Message<SpeakerInfo> {
1384
+ /**
1385
+ * @generated from field: string sid = 1;
1386
+ */
1387
+ sid: string;
1388
+
1389
+ /**
1390
+ * audio level, 0-1.0, 1 is loudest
1391
+ *
1392
+ * @generated from field: float level = 2;
1393
+ */
1394
+ level: number;
1395
+
1396
+ /**
1397
+ * true if speaker is currently active
1398
+ *
1399
+ * @generated from field: bool active = 3;
1400
+ */
1401
+ active: boolean;
1402
+
1403
+ constructor(data?: PartialMessage<SpeakerInfo>);
1404
+
1405
+ static readonly runtime: typeof proto3;
1406
+ static readonly typeName = "livekit.SpeakerInfo";
1407
+ static readonly fields: FieldList;
1408
+
1409
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SpeakerInfo;
1410
+
1411
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SpeakerInfo;
1412
+
1413
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SpeakerInfo;
1414
+
1415
+ static equals(a: SpeakerInfo | PlainMessage<SpeakerInfo> | undefined, b: SpeakerInfo | PlainMessage<SpeakerInfo> | undefined): boolean;
1416
+ }
1417
+
1418
+ /**
1419
+ * @generated from message livekit.UserPacket
1420
+ */
1421
+ export declare class UserPacket extends Message<UserPacket> {
1422
+ /**
1423
+ * participant ID of user that sent the message
1424
+ *
1425
+ * @generated from field: string participant_sid = 1 [deprecated = true];
1426
+ * @deprecated
1427
+ */
1428
+ participantSid: string;
1429
+
1430
+ /**
1431
+ * @generated from field: string participant_identity = 5 [deprecated = true];
1432
+ * @deprecated
1433
+ */
1434
+ participantIdentity: string;
1435
+
1436
+ /**
1437
+ * user defined payload
1438
+ *
1439
+ * @generated from field: bytes payload = 2;
1440
+ */
1441
+ payload: Uint8Array;
1442
+
1443
+ /**
1444
+ * the ID of the participants who will receive the message (sent to all by default)
1445
+ *
1446
+ * @generated from field: repeated string destination_sids = 3 [deprecated = true];
1447
+ * @deprecated
1448
+ */
1449
+ destinationSids: string[];
1450
+
1451
+ /**
1452
+ * identities of participants who will receive the message (sent to all by default)
1453
+ *
1454
+ * @generated from field: repeated string destination_identities = 6 [deprecated = true];
1455
+ * @deprecated
1456
+ */
1457
+ destinationIdentities: string[];
1458
+
1459
+ /**
1460
+ * topic under which the message was published
1461
+ *
1462
+ * @generated from field: optional string topic = 4;
1463
+ */
1464
+ topic?: string;
1465
+
1466
+ /**
1467
+ * Unique ID to indentify the message
1468
+ *
1469
+ * @generated from field: optional string id = 8;
1470
+ */
1471
+ id?: string;
1472
+
1473
+ /**
1474
+ * start and end time allow relating the message to specific media time
1475
+ *
1476
+ * @generated from field: optional uint64 start_time = 9;
1477
+ */
1478
+ startTime?: bigint;
1479
+
1480
+ /**
1481
+ * @generated from field: optional uint64 end_time = 10;
1482
+ */
1483
+ endTime?: bigint;
1484
+
1485
+ /**
1486
+ * added by SDK to enable de-duping of messages, for INTERNAL USE ONLY
1487
+ *
1488
+ * @generated from field: bytes nonce = 11;
1489
+ */
1490
+ nonce: Uint8Array;
1491
+
1492
+ constructor(data?: PartialMessage<UserPacket>);
1493
+
1494
+ static readonly runtime: typeof proto3;
1495
+ static readonly typeName = "livekit.UserPacket";
1496
+ static readonly fields: FieldList;
1497
+
1498
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): UserPacket;
1499
+
1500
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): UserPacket;
1501
+
1502
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): UserPacket;
1503
+
1504
+ static equals(a: UserPacket | PlainMessage<UserPacket> | undefined, b: UserPacket | PlainMessage<UserPacket> | undefined): boolean;
1505
+ }
1506
+
1507
+ /**
1508
+ * @generated from message livekit.SipDTMF
1509
+ */
1510
+ export declare class SipDTMF extends Message<SipDTMF> {
1511
+ /**
1512
+ * @generated from field: uint32 code = 3;
1513
+ */
1514
+ code: number;
1515
+
1516
+ /**
1517
+ * @generated from field: string digit = 4;
1518
+ */
1519
+ digit: string;
1520
+
1521
+ constructor(data?: PartialMessage<SipDTMF>);
1522
+
1523
+ static readonly runtime: typeof proto3;
1524
+ static readonly typeName = "livekit.SipDTMF";
1525
+ static readonly fields: FieldList;
1526
+
1527
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SipDTMF;
1528
+
1529
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SipDTMF;
1530
+
1531
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SipDTMF;
1532
+
1533
+ static equals(a: SipDTMF | PlainMessage<SipDTMF> | undefined, b: SipDTMF | PlainMessage<SipDTMF> | undefined): boolean;
1534
+ }
1535
+
1536
+ /**
1537
+ * @generated from message livekit.Transcription
1538
+ */
1539
+ export declare class Transcription extends Message<Transcription> {
1540
+ /**
1541
+ * Participant that got its speech transcribed
1542
+ *
1543
+ * @generated from field: string transcribed_participant_identity = 2;
1544
+ */
1545
+ transcribedParticipantIdentity: string;
1546
+
1547
+ /**
1548
+ * @generated from field: string track_id = 3;
1549
+ */
1550
+ trackId: string;
1551
+
1552
+ /**
1553
+ * @generated from field: repeated livekit.TranscriptionSegment segments = 4;
1554
+ */
1555
+ segments: TranscriptionSegment[];
1556
+
1557
+ constructor(data?: PartialMessage<Transcription>);
1558
+
1559
+ static readonly runtime: typeof proto3;
1560
+ static readonly typeName = "livekit.Transcription";
1561
+ static readonly fields: FieldList;
1562
+
1563
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Transcription;
1564
+
1565
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Transcription;
1566
+
1567
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Transcription;
1568
+
1569
+ static equals(a: Transcription | PlainMessage<Transcription> | undefined, b: Transcription | PlainMessage<Transcription> | undefined): boolean;
1570
+ }
1571
+
1572
+ /**
1573
+ * @generated from message livekit.TranscriptionSegment
1574
+ */
1575
+ export declare class TranscriptionSegment extends Message<TranscriptionSegment> {
1576
+ /**
1577
+ * @generated from field: string id = 1;
1578
+ */
1579
+ id: string;
1580
+
1581
+ /**
1582
+ * @generated from field: string text = 2;
1583
+ */
1584
+ text: string;
1585
+
1586
+ /**
1587
+ * @generated from field: uint64 start_time = 3;
1588
+ */
1589
+ startTime: bigint;
1590
+
1591
+ /**
1592
+ * @generated from field: uint64 end_time = 4;
1593
+ */
1594
+ endTime: bigint;
1595
+
1596
+ /**
1597
+ * @generated from field: bool final = 5;
1598
+ */
1599
+ final: boolean;
1600
+
1601
+ /**
1602
+ * @generated from field: string language = 6;
1603
+ */
1604
+ language: string;
1605
+
1606
+ constructor(data?: PartialMessage<TranscriptionSegment>);
1607
+
1608
+ static readonly runtime: typeof proto3;
1609
+ static readonly typeName = "livekit.TranscriptionSegment";
1610
+ static readonly fields: FieldList;
1611
+
1612
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): TranscriptionSegment;
1613
+
1614
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): TranscriptionSegment;
1615
+
1616
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): TranscriptionSegment;
1617
+
1618
+ static equals(a: TranscriptionSegment | PlainMessage<TranscriptionSegment> | undefined, b: TranscriptionSegment | PlainMessage<TranscriptionSegment> | undefined): boolean;
1619
+ }
1620
+
1621
+ /**
1622
+ * @generated from message livekit.ChatMessage
1623
+ */
1624
+ export declare class ChatMessage extends Message<ChatMessage> {
1625
+ /**
1626
+ * uuid
1627
+ *
1628
+ * @generated from field: string id = 1;
1629
+ */
1630
+ id: string;
1631
+
1632
+ /**
1633
+ * @generated from field: int64 timestamp = 2;
1634
+ */
1635
+ timestamp: bigint;
1636
+
1637
+ /**
1638
+ * populated only if the intent is to edit/update an existing message
1639
+ *
1640
+ * @generated from field: optional int64 edit_timestamp = 3;
1641
+ */
1642
+ editTimestamp?: bigint;
1643
+
1644
+ /**
1645
+ * @generated from field: string message = 4;
1646
+ */
1647
+ message: string;
1648
+
1649
+ /**
1650
+ * true to remove message
1651
+ *
1652
+ * @generated from field: bool deleted = 5;
1653
+ */
1654
+ deleted: boolean;
1655
+
1656
+ /**
1657
+ * true if the chat message has been generated by an agent from a participant's audio transcription
1658
+ *
1659
+ * @generated from field: bool generated = 6;
1660
+ */
1661
+ generated: boolean;
1662
+
1663
+ constructor(data?: PartialMessage<ChatMessage>);
1664
+
1665
+ static readonly runtime: typeof proto3;
1666
+ static readonly typeName = "livekit.ChatMessage";
1667
+ static readonly fields: FieldList;
1668
+
1669
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ChatMessage;
1670
+
1671
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ChatMessage;
1672
+
1673
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ChatMessage;
1674
+
1675
+ static equals(a: ChatMessage | PlainMessage<ChatMessage> | undefined, b: ChatMessage | PlainMessage<ChatMessage> | undefined): boolean;
1676
+ }
1677
+
1678
+ /**
1679
+ * @generated from message livekit.RpcRequest
1680
+ */
1681
+ export declare class RpcRequest extends Message<RpcRequest> {
1682
+ /**
1683
+ * @generated from field: string id = 1;
1684
+ */
1685
+ id: string;
1686
+
1687
+ /**
1688
+ * @generated from field: string method = 2;
1689
+ */
1690
+ method: string;
1691
+
1692
+ /**
1693
+ * @generated from field: string payload = 3;
1694
+ */
1695
+ payload: string;
1696
+
1697
+ /**
1698
+ * @generated from field: uint32 response_timeout_ms = 4;
1699
+ */
1700
+ responseTimeoutMs: number;
1701
+
1702
+ /**
1703
+ * @generated from field: uint32 version = 5;
1704
+ */
1705
+ version: number;
1706
+
1707
+ constructor(data?: PartialMessage<RpcRequest>);
1708
+
1709
+ static readonly runtime: typeof proto3;
1710
+ static readonly typeName = "livekit.RpcRequest";
1711
+ static readonly fields: FieldList;
1712
+
1713
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): RpcRequest;
1714
+
1715
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): RpcRequest;
1716
+
1717
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): RpcRequest;
1718
+
1719
+ static equals(a: RpcRequest | PlainMessage<RpcRequest> | undefined, b: RpcRequest | PlainMessage<RpcRequest> | undefined): boolean;
1720
+ }
1721
+
1722
+ /**
1723
+ * @generated from message livekit.RpcAck
1724
+ */
1725
+ export declare class RpcAck extends Message<RpcAck> {
1726
+ /**
1727
+ * @generated from field: string request_id = 1;
1728
+ */
1729
+ requestId: string;
1730
+
1731
+ constructor(data?: PartialMessage<RpcAck>);
1732
+
1733
+ static readonly runtime: typeof proto3;
1734
+ static readonly typeName = "livekit.RpcAck";
1735
+ static readonly fields: FieldList;
1736
+
1737
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): RpcAck;
1738
+
1739
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): RpcAck;
1740
+
1741
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): RpcAck;
1742
+
1743
+ static equals(a: RpcAck | PlainMessage<RpcAck> | undefined, b: RpcAck | PlainMessage<RpcAck> | undefined): boolean;
1744
+ }
1745
+
1746
+ /**
1747
+ * @generated from message livekit.RpcResponse
1748
+ */
1749
+ export declare class RpcResponse extends Message<RpcResponse> {
1750
+ /**
1751
+ * @generated from field: string request_id = 1;
1752
+ */
1753
+ requestId: string;
1754
+
1755
+ /**
1756
+ * @generated from oneof livekit.RpcResponse.value
1757
+ */
1758
+ value: {
1759
+ /**
1760
+ * @generated from field: string payload = 2;
1761
+ */
1762
+ value: string;
1763
+ case: "payload";
1764
+ } | {
1765
+ /**
1766
+ * @generated from field: livekit.RpcError error = 3;
1767
+ */
1768
+ value: RpcError;
1769
+ case: "error";
1770
+ } | { case: undefined; value?: undefined };
1771
+
1772
+ constructor(data?: PartialMessage<RpcResponse>);
1773
+
1774
+ static readonly runtime: typeof proto3;
1775
+ static readonly typeName = "livekit.RpcResponse";
1776
+ static readonly fields: FieldList;
1777
+
1778
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): RpcResponse;
1779
+
1780
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): RpcResponse;
1781
+
1782
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): RpcResponse;
1783
+
1784
+ static equals(a: RpcResponse | PlainMessage<RpcResponse> | undefined, b: RpcResponse | PlainMessage<RpcResponse> | undefined): boolean;
1785
+ }
1786
+
1787
+ /**
1788
+ * @generated from message livekit.RpcError
1789
+ */
1790
+ export declare class RpcError extends Message<RpcError> {
1791
+ /**
1792
+ * @generated from field: uint32 code = 1;
1793
+ */
1794
+ code: number;
1795
+
1796
+ /**
1797
+ * @generated from field: string message = 2;
1798
+ */
1799
+ message: string;
1800
+
1801
+ /**
1802
+ * @generated from field: string data = 3;
1803
+ */
1804
+ data: string;
1805
+
1806
+ constructor(data?: PartialMessage<RpcError>);
1807
+
1808
+ static readonly runtime: typeof proto3;
1809
+ static readonly typeName = "livekit.RpcError";
1810
+ static readonly fields: FieldList;
1811
+
1812
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): RpcError;
1813
+
1814
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): RpcError;
1815
+
1816
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): RpcError;
1817
+
1818
+ static equals(a: RpcError | PlainMessage<RpcError> | undefined, b: RpcError | PlainMessage<RpcError> | undefined): boolean;
1819
+ }
1820
+
1821
+ /**
1822
+ * @generated from message livekit.ParticipantTracks
1823
+ */
1824
+ export declare class ParticipantTracks extends Message<ParticipantTracks> {
1825
+ /**
1826
+ * participant ID of participant to whom the tracks belong
1827
+ *
1828
+ * @generated from field: string participant_sid = 1;
1829
+ */
1830
+ participantSid: string;
1831
+
1832
+ /**
1833
+ * @generated from field: repeated string track_sids = 2;
1834
+ */
1835
+ trackSids: string[];
1836
+
1837
+ constructor(data?: PartialMessage<ParticipantTracks>);
1838
+
1839
+ static readonly runtime: typeof proto3;
1840
+ static readonly typeName = "livekit.ParticipantTracks";
1841
+ static readonly fields: FieldList;
1842
+
1843
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ParticipantTracks;
1844
+
1845
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ParticipantTracks;
1846
+
1847
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ParticipantTracks;
1848
+
1849
+ static equals(a: ParticipantTracks | PlainMessage<ParticipantTracks> | undefined, b: ParticipantTracks | PlainMessage<ParticipantTracks> | undefined): boolean;
1850
+ }
1851
+
1852
+ /**
1853
+ * details about the server
1854
+ *
1855
+ * @generated from message livekit.ServerInfo
1856
+ */
1857
+ export declare class ServerInfo extends Message<ServerInfo> {
1858
+ /**
1859
+ * @generated from field: livekit.ServerInfo.Edition edition = 1;
1860
+ */
1861
+ edition: ServerInfo_Edition;
1862
+
1863
+ /**
1864
+ * @generated from field: string version = 2;
1865
+ */
1866
+ version: string;
1867
+
1868
+ /**
1869
+ * @generated from field: int32 protocol = 3;
1870
+ */
1871
+ protocol: number;
1872
+
1873
+ /**
1874
+ * @generated from field: string region = 4;
1875
+ */
1876
+ region: string;
1877
+
1878
+ /**
1879
+ * @generated from field: string node_id = 5;
1880
+ */
1881
+ nodeId: string;
1882
+
1883
+ /**
1884
+ * additional debugging information. sent only if server is in development mode
1885
+ *
1886
+ * @generated from field: string debug_info = 6;
1887
+ */
1888
+ debugInfo: string;
1889
+
1890
+ /**
1891
+ * @generated from field: int32 agent_protocol = 7;
1892
+ */
1893
+ agentProtocol: number;
1894
+
1895
+ constructor(data?: PartialMessage<ServerInfo>);
1896
+
1897
+ static readonly runtime: typeof proto3;
1898
+ static readonly typeName = "livekit.ServerInfo";
1899
+ static readonly fields: FieldList;
1900
+
1901
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ServerInfo;
1902
+
1903
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ServerInfo;
1904
+
1905
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ServerInfo;
1906
+
1907
+ static equals(a: ServerInfo | PlainMessage<ServerInfo> | undefined, b: ServerInfo | PlainMessage<ServerInfo> | undefined): boolean;
1908
+ }
1909
+
1910
+ /**
1911
+ * @generated from enum livekit.ServerInfo.Edition
1912
+ */
1913
+ export declare enum ServerInfo_Edition {
1914
+ /**
1915
+ * @generated from enum value: Standard = 0;
1916
+ */
1917
+ Standard = 0,
1918
+
1919
+ /**
1920
+ * @generated from enum value: Cloud = 1;
1921
+ */
1922
+ Cloud = 1,
1923
+ }
1924
+
1925
+ /**
1926
+ * details about the client
1927
+ *
1928
+ * @generated from message livekit.ClientInfo
1929
+ */
1930
+ export declare class ClientInfo extends Message<ClientInfo> {
1931
+ /**
1932
+ * @generated from field: livekit.ClientInfo.SDK sdk = 1;
1933
+ */
1934
+ sdk: ClientInfo_SDK;
1935
+
1936
+ /**
1937
+ * @generated from field: string version = 2;
1938
+ */
1939
+ version: string;
1940
+
1941
+ /**
1942
+ * @generated from field: int32 protocol = 3;
1943
+ */
1944
+ protocol: number;
1945
+
1946
+ /**
1947
+ * @generated from field: string os = 4;
1948
+ */
1949
+ os: string;
1950
+
1951
+ /**
1952
+ * @generated from field: string os_version = 5;
1953
+ */
1954
+ osVersion: string;
1955
+
1956
+ /**
1957
+ * @generated from field: string device_model = 6;
1958
+ */
1959
+ deviceModel: string;
1960
+
1961
+ /**
1962
+ * @generated from field: string browser = 7;
1963
+ */
1964
+ browser: string;
1965
+
1966
+ /**
1967
+ * @generated from field: string browser_version = 8;
1968
+ */
1969
+ browserVersion: string;
1970
+
1971
+ /**
1972
+ * @generated from field: string address = 9;
1973
+ */
1974
+ address: string;
1975
+
1976
+ /**
1977
+ * wifi, wired, cellular, vpn, empty if not known
1978
+ *
1979
+ * @generated from field: string network = 10;
1980
+ */
1981
+ network: string;
1982
+
1983
+ /**
1984
+ * comma separated list of additional LiveKit SDKs in use of this client, with versions
1985
+ * e.g. "components-js:1.2.3,track-processors-js:1.2.3"
1986
+ *
1987
+ * @generated from field: string other_sdks = 11;
1988
+ */
1989
+ otherSdks: string;
1990
+
1991
+ constructor(data?: PartialMessage<ClientInfo>);
1992
+
1993
+ static readonly runtime: typeof proto3;
1994
+ static readonly typeName = "livekit.ClientInfo";
1995
+ static readonly fields: FieldList;
1996
+
1997
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ClientInfo;
1998
+
1999
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ClientInfo;
2000
+
2001
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ClientInfo;
2002
+
2003
+ static equals(a: ClientInfo | PlainMessage<ClientInfo> | undefined, b: ClientInfo | PlainMessage<ClientInfo> | undefined): boolean;
2004
+ }
2005
+
2006
+ /**
2007
+ * @generated from enum livekit.ClientInfo.SDK
2008
+ */
2009
+ export declare enum ClientInfo_SDK {
2010
+ /**
2011
+ * @generated from enum value: UNKNOWN = 0;
2012
+ */
2013
+ UNKNOWN = 0,
2014
+
2015
+ /**
2016
+ * @generated from enum value: JS = 1;
2017
+ */
2018
+ JS = 1,
2019
+
2020
+ /**
2021
+ * @generated from enum value: SWIFT = 2;
2022
+ */
2023
+ SWIFT = 2,
2024
+
2025
+ /**
2026
+ * @generated from enum value: ANDROID = 3;
2027
+ */
2028
+ ANDROID = 3,
2029
+
2030
+ /**
2031
+ * @generated from enum value: FLUTTER = 4;
2032
+ */
2033
+ FLUTTER = 4,
2034
+
2035
+ /**
2036
+ * @generated from enum value: GO = 5;
2037
+ */
2038
+ GO = 5,
2039
+
2040
+ /**
2041
+ * @generated from enum value: UNITY = 6;
2042
+ */
2043
+ UNITY = 6,
2044
+
2045
+ /**
2046
+ * @generated from enum value: REACT_NATIVE = 7;
2047
+ */
2048
+ REACT_NATIVE = 7,
2049
+
2050
+ /**
2051
+ * @generated from enum value: RUST = 8;
2052
+ */
2053
+ RUST = 8,
2054
+
2055
+ /**
2056
+ * @generated from enum value: PYTHON = 9;
2057
+ */
2058
+ PYTHON = 9,
2059
+
2060
+ /**
2061
+ * @generated from enum value: CPP = 10;
2062
+ */
2063
+ CPP = 10,
2064
+
2065
+ /**
2066
+ * @generated from enum value: UNITY_WEB = 11;
2067
+ */
2068
+ UNITY_WEB = 11,
2069
+
2070
+ /**
2071
+ * @generated from enum value: NODE = 12;
2072
+ */
2073
+ NODE = 12,
2074
+
2075
+ /**
2076
+ * @generated from enum value: UNREAL = 13;
2077
+ */
2078
+ UNREAL = 13,
2079
+
2080
+ /**
2081
+ * @generated from enum value: ESP32 = 14;
2082
+ */
2083
+ ESP32 = 14,
2084
+ }
2085
+
2086
+ /**
2087
+ * server provided client configuration
2088
+ *
2089
+ * @generated from message livekit.ClientConfiguration
2090
+ */
2091
+ export declare class ClientConfiguration extends Message<ClientConfiguration> {
2092
+ /**
2093
+ * @generated from field: livekit.VideoConfiguration video = 1;
2094
+ */
2095
+ video?: VideoConfiguration;
2096
+
2097
+ /**
2098
+ * @generated from field: livekit.VideoConfiguration screen = 2;
2099
+ */
2100
+ screen?: VideoConfiguration;
2101
+
2102
+ /**
2103
+ * @generated from field: livekit.ClientConfigSetting resume_connection = 3;
2104
+ */
2105
+ resumeConnection: ClientConfigSetting;
2106
+
2107
+ /**
2108
+ * @generated from field: livekit.DisabledCodecs disabled_codecs = 4;
2109
+ */
2110
+ disabledCodecs?: DisabledCodecs;
2111
+
2112
+ /**
2113
+ * @generated from field: livekit.ClientConfigSetting force_relay = 5;
2114
+ */
2115
+ forceRelay: ClientConfigSetting;
2116
+
2117
+ constructor(data?: PartialMessage<ClientConfiguration>);
2118
+
2119
+ static readonly runtime: typeof proto3;
2120
+ static readonly typeName = "livekit.ClientConfiguration";
2121
+ static readonly fields: FieldList;
2122
+
2123
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ClientConfiguration;
2124
+
2125
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ClientConfiguration;
2126
+
2127
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ClientConfiguration;
2128
+
2129
+ static equals(a: ClientConfiguration | PlainMessage<ClientConfiguration> | undefined, b: ClientConfiguration | PlainMessage<ClientConfiguration> | undefined): boolean;
2130
+ }
2131
+
2132
+ /**
2133
+ * @generated from message livekit.VideoConfiguration
2134
+ */
2135
+ export declare class VideoConfiguration extends Message<VideoConfiguration> {
2136
+ /**
2137
+ * @generated from field: livekit.ClientConfigSetting hardware_encoder = 1;
2138
+ */
2139
+ hardwareEncoder: ClientConfigSetting;
2140
+
2141
+ constructor(data?: PartialMessage<VideoConfiguration>);
2142
+
2143
+ static readonly runtime: typeof proto3;
2144
+ static readonly typeName = "livekit.VideoConfiguration";
2145
+ static readonly fields: FieldList;
2146
+
2147
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): VideoConfiguration;
2148
+
2149
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): VideoConfiguration;
2150
+
2151
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): VideoConfiguration;
2152
+
2153
+ static equals(a: VideoConfiguration | PlainMessage<VideoConfiguration> | undefined, b: VideoConfiguration | PlainMessage<VideoConfiguration> | undefined): boolean;
2154
+ }
2155
+
2156
+ /**
2157
+ * @generated from message livekit.DisabledCodecs
2158
+ */
2159
+ export declare class DisabledCodecs extends Message<DisabledCodecs> {
2160
+ /**
2161
+ * disabled for both publish and subscribe
2162
+ *
2163
+ * @generated from field: repeated livekit.Codec codecs = 1;
2164
+ */
2165
+ codecs: Codec[];
2166
+
2167
+ /**
2168
+ * only disable for publish
2169
+ *
2170
+ * @generated from field: repeated livekit.Codec publish = 2;
2171
+ */
2172
+ publish: Codec[];
2173
+
2174
+ constructor(data?: PartialMessage<DisabledCodecs>);
2175
+
2176
+ static readonly runtime: typeof proto3;
2177
+ static readonly typeName = "livekit.DisabledCodecs";
2178
+ static readonly fields: FieldList;
2179
+
2180
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): DisabledCodecs;
2181
+
2182
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): DisabledCodecs;
2183
+
2184
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): DisabledCodecs;
2185
+
2186
+ static equals(a: DisabledCodecs | PlainMessage<DisabledCodecs> | undefined, b: DisabledCodecs | PlainMessage<DisabledCodecs> | undefined): boolean;
2187
+ }
2188
+
2189
+ /**
2190
+ * @generated from message livekit.RTPDrift
2191
+ */
2192
+ export declare class RTPDrift extends Message<RTPDrift> {
2193
+ /**
2194
+ * @generated from field: google.protobuf.Timestamp start_time = 1;
2195
+ */
2196
+ startTime?: Timestamp;
2197
+
2198
+ /**
2199
+ * @generated from field: google.protobuf.Timestamp end_time = 2;
2200
+ */
2201
+ endTime?: Timestamp;
2202
+
2203
+ /**
2204
+ * @generated from field: double duration = 3;
2205
+ */
2206
+ duration: number;
2207
+
2208
+ /**
2209
+ * @generated from field: uint64 start_timestamp = 4;
2210
+ */
2211
+ startTimestamp: bigint;
2212
+
2213
+ /**
2214
+ * @generated from field: uint64 end_timestamp = 5;
2215
+ */
2216
+ endTimestamp: bigint;
2217
+
2218
+ /**
2219
+ * @generated from field: uint64 rtp_clock_ticks = 6;
2220
+ */
2221
+ rtpClockTicks: bigint;
2222
+
2223
+ /**
2224
+ * @generated from field: int64 drift_samples = 7;
2225
+ */
2226
+ driftSamples: bigint;
2227
+
2228
+ /**
2229
+ * @generated from field: double drift_ms = 8;
2230
+ */
2231
+ driftMs: number;
2232
+
2233
+ /**
2234
+ * @generated from field: double clock_rate = 9;
2235
+ */
2236
+ clockRate: number;
2237
+
2238
+ constructor(data?: PartialMessage<RTPDrift>);
2239
+
2240
+ static readonly runtime: typeof proto3;
2241
+ static readonly typeName = "livekit.RTPDrift";
2242
+ static readonly fields: FieldList;
2243
+
2244
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): RTPDrift;
2245
+
2246
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): RTPDrift;
2247
+
2248
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): RTPDrift;
2249
+
2250
+ static equals(a: RTPDrift | PlainMessage<RTPDrift> | undefined, b: RTPDrift | PlainMessage<RTPDrift> | undefined): boolean;
2251
+ }
2252
+
2253
+ /**
2254
+ * @generated from message livekit.RTPStats
2255
+ */
2256
+ export declare class RTPStats extends Message<RTPStats> {
2257
+ /**
2258
+ * @generated from field: google.protobuf.Timestamp start_time = 1;
2259
+ */
2260
+ startTime?: Timestamp;
2261
+
2262
+ /**
2263
+ * @generated from field: google.protobuf.Timestamp end_time = 2;
2264
+ */
2265
+ endTime?: Timestamp;
2266
+
2267
+ /**
2268
+ * @generated from field: double duration = 3;
2269
+ */
2270
+ duration: number;
2271
+
2272
+ /**
2273
+ * @generated from field: uint32 packets = 4;
2274
+ */
2275
+ packets: number;
2276
+
2277
+ /**
2278
+ * @generated from field: double packet_rate = 5;
2279
+ */
2280
+ packetRate: number;
2281
+
2282
+ /**
2283
+ * @generated from field: uint64 bytes = 6;
2284
+ */
2285
+ bytes: bigint;
2286
+
2287
+ /**
2288
+ * @generated from field: uint64 header_bytes = 39;
2289
+ */
2290
+ headerBytes: bigint;
2291
+
2292
+ /**
2293
+ * @generated from field: double bitrate = 7;
2294
+ */
2295
+ bitrate: number;
2296
+
2297
+ /**
2298
+ * @generated from field: uint32 packets_lost = 8;
2299
+ */
2300
+ packetsLost: number;
2301
+
2302
+ /**
2303
+ * @generated from field: double packet_loss_rate = 9;
2304
+ */
2305
+ packetLossRate: number;
2306
+
2307
+ /**
2308
+ * @generated from field: float packet_loss_percentage = 10;
2309
+ */
2310
+ packetLossPercentage: number;
2311
+
2312
+ /**
2313
+ * @generated from field: uint32 packets_duplicate = 11;
2314
+ */
2315
+ packetsDuplicate: number;
2316
+
2317
+ /**
2318
+ * @generated from field: double packet_duplicate_rate = 12;
2319
+ */
2320
+ packetDuplicateRate: number;
2321
+
2322
+ /**
2323
+ * @generated from field: uint64 bytes_duplicate = 13;
2324
+ */
2325
+ bytesDuplicate: bigint;
2326
+
2327
+ /**
2328
+ * @generated from field: uint64 header_bytes_duplicate = 40;
2329
+ */
2330
+ headerBytesDuplicate: bigint;
2331
+
2332
+ /**
2333
+ * @generated from field: double bitrate_duplicate = 14;
2334
+ */
2335
+ bitrateDuplicate: number;
2336
+
2337
+ /**
2338
+ * @generated from field: uint32 packets_padding = 15;
2339
+ */
2340
+ packetsPadding: number;
2341
+
2342
+ /**
2343
+ * @generated from field: double packet_padding_rate = 16;
2344
+ */
2345
+ packetPaddingRate: number;
2346
+
2347
+ /**
2348
+ * @generated from field: uint64 bytes_padding = 17;
2349
+ */
2350
+ bytesPadding: bigint;
2351
+
2352
+ /**
2353
+ * @generated from field: uint64 header_bytes_padding = 41;
2354
+ */
2355
+ headerBytesPadding: bigint;
2356
+
2357
+ /**
2358
+ * @generated from field: double bitrate_padding = 18;
2359
+ */
2360
+ bitratePadding: number;
2361
+
2362
+ /**
2363
+ * @generated from field: uint32 packets_out_of_order = 19;
2364
+ */
2365
+ packetsOutOfOrder: number;
2366
+
2367
+ /**
2368
+ * @generated from field: uint32 frames = 20;
2369
+ */
2370
+ frames: number;
2371
+
2372
+ /**
2373
+ * @generated from field: double frame_rate = 21;
2374
+ */
2375
+ frameRate: number;
2376
+
2377
+ /**
2378
+ * @generated from field: double jitter_current = 22;
2379
+ */
2380
+ jitterCurrent: number;
2381
+
2382
+ /**
2383
+ * @generated from field: double jitter_max = 23;
2384
+ */
2385
+ jitterMax: number;
2386
+
2387
+ /**
2388
+ * @generated from field: map<int32, uint32> gap_histogram = 24;
2389
+ */
2390
+ gapHistogram: { [key: number]: number };
2391
+
2392
+ /**
2393
+ * @generated from field: uint32 nacks = 25;
2394
+ */
2395
+ nacks: number;
2396
+
2397
+ /**
2398
+ * @generated from field: uint32 nack_acks = 37;
2399
+ */
2400
+ nackAcks: number;
2401
+
2402
+ /**
2403
+ * @generated from field: uint32 nack_misses = 26;
2404
+ */
2405
+ nackMisses: number;
2406
+
2407
+ /**
2408
+ * @generated from field: uint32 nack_repeated = 38;
2409
+ */
2410
+ nackRepeated: number;
2411
+
2412
+ /**
2413
+ * @generated from field: uint32 plis = 27;
2414
+ */
2415
+ plis: number;
2416
+
2417
+ /**
2418
+ * @generated from field: google.protobuf.Timestamp last_pli = 28;
2419
+ */
2420
+ lastPli?: Timestamp;
2421
+
2422
+ /**
2423
+ * @generated from field: uint32 firs = 29;
2424
+ */
2425
+ firs: number;
2426
+
2427
+ /**
2428
+ * @generated from field: google.protobuf.Timestamp last_fir = 30;
2429
+ */
2430
+ lastFir?: Timestamp;
2431
+
2432
+ /**
2433
+ * @generated from field: uint32 rtt_current = 31;
2434
+ */
2435
+ rttCurrent: number;
2436
+
2437
+ /**
2438
+ * @generated from field: uint32 rtt_max = 32;
2439
+ */
2440
+ rttMax: number;
2441
+
2442
+ /**
2443
+ * @generated from field: uint32 key_frames = 33;
2444
+ */
2445
+ keyFrames: number;
2446
+
2447
+ /**
2448
+ * @generated from field: google.protobuf.Timestamp last_key_frame = 34;
2449
+ */
2450
+ lastKeyFrame?: Timestamp;
2451
+
2452
+ /**
2453
+ * @generated from field: uint32 layer_lock_plis = 35;
2454
+ */
2455
+ layerLockPlis: number;
2456
+
2457
+ /**
2458
+ * @generated from field: google.protobuf.Timestamp last_layer_lock_pli = 36;
2459
+ */
2460
+ lastLayerLockPli?: Timestamp;
2461
+
2462
+ /**
2463
+ * @generated from field: livekit.RTPDrift packet_drift = 44;
2464
+ */
2465
+ packetDrift?: RTPDrift;
2466
+
2467
+ /**
2468
+ * @generated from field: livekit.RTPDrift ntp_report_drift = 45;
2469
+ */
2470
+ ntpReportDrift?: RTPDrift;
2471
+
2472
+ /**
2473
+ * @generated from field: livekit.RTPDrift rebased_report_drift = 46;
2474
+ */
2475
+ rebasedReportDrift?: RTPDrift;
2476
+
2477
+ /**
2478
+ * NEXT_ID: 48
2479
+ *
2480
+ * @generated from field: livekit.RTPDrift received_report_drift = 47;
2481
+ */
2482
+ receivedReportDrift?: RTPDrift;
2483
+
2484
+ constructor(data?: PartialMessage<RTPStats>);
2485
+
2486
+ static readonly runtime: typeof proto3;
2487
+ static readonly typeName = "livekit.RTPStats";
2488
+ static readonly fields: FieldList;
2489
+
2490
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): RTPStats;
2491
+
2492
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): RTPStats;
2493
+
2494
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): RTPStats;
2495
+
2496
+ static equals(a: RTPStats | PlainMessage<RTPStats> | undefined, b: RTPStats | PlainMessage<RTPStats> | undefined): boolean;
2497
+ }
2498
+
2499
+ /**
2500
+ * @generated from message livekit.RTCPSenderReportState
2501
+ */
2502
+ export declare class RTCPSenderReportState extends Message<RTCPSenderReportState> {
2503
+ /**
2504
+ * @generated from field: uint32 rtp_timestamp = 1;
2505
+ */
2506
+ rtpTimestamp: number;
2507
+
2508
+ /**
2509
+ * @generated from field: uint64 rtp_timestamp_ext = 2;
2510
+ */
2511
+ rtpTimestampExt: bigint;
2512
+
2513
+ /**
2514
+ * @generated from field: uint64 ntp_timestamp = 3;
2515
+ */
2516
+ ntpTimestamp: bigint;
2517
+
2518
+ /**
2519
+ * time at which this happened
2520
+ *
2521
+ * @generated from field: int64 at = 4;
2522
+ */
2523
+ at: bigint;
2524
+
2525
+ /**
2526
+ * @generated from field: int64 at_adjusted = 5;
2527
+ */
2528
+ atAdjusted: bigint;
2529
+
2530
+ /**
2531
+ * @generated from field: uint32 packets = 6;
2532
+ */
2533
+ packets: number;
2534
+
2535
+ /**
2536
+ * @generated from field: uint64 octets = 7;
2537
+ */
2538
+ octets: bigint;
2539
+
2540
+ constructor(data?: PartialMessage<RTCPSenderReportState>);
2541
+
2542
+ static readonly runtime: typeof proto3;
2543
+ static readonly typeName = "livekit.RTCPSenderReportState";
2544
+ static readonly fields: FieldList;
2545
+
2546
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): RTCPSenderReportState;
2547
+
2548
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): RTCPSenderReportState;
2549
+
2550
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): RTCPSenderReportState;
2551
+
2552
+ static equals(a: RTCPSenderReportState | PlainMessage<RTCPSenderReportState> | undefined, b: RTCPSenderReportState | PlainMessage<RTCPSenderReportState> | undefined): boolean;
2553
+ }
2554
+
2555
+ /**
2556
+ * @generated from message livekit.RTPForwarderState
2557
+ */
2558
+ export declare class RTPForwarderState extends Message<RTPForwarderState> {
2559
+ /**
2560
+ * @generated from field: bool started = 1;
2561
+ */
2562
+ started: boolean;
2563
+
2564
+ /**
2565
+ * @generated from field: int32 reference_layer_spatial = 2;
2566
+ */
2567
+ referenceLayerSpatial: number;
2568
+
2569
+ /**
2570
+ * @generated from field: int64 pre_start_time = 3;
2571
+ */
2572
+ preStartTime: bigint;
2573
+
2574
+ /**
2575
+ * @generated from field: uint64 ext_first_timestamp = 4;
2576
+ */
2577
+ extFirstTimestamp: bigint;
2578
+
2579
+ /**
2580
+ * @generated from field: uint64 dummy_start_timestamp_offset = 5;
2581
+ */
2582
+ dummyStartTimestampOffset: bigint;
2583
+
2584
+ /**
2585
+ * @generated from field: livekit.RTPMungerState rtp_munger = 6;
2586
+ */
2587
+ rtpMunger?: RTPMungerState;
2588
+
2589
+ /**
2590
+ * @generated from oneof livekit.RTPForwarderState.codec_munger
2591
+ */
2592
+ codecMunger: {
2593
+ /**
2594
+ * @generated from field: livekit.VP8MungerState vp8_munger = 7;
2595
+ */
2596
+ value: VP8MungerState;
2597
+ case: "vp8Munger";
2598
+ } | { case: undefined; value?: undefined };
2599
+
2600
+ /**
2601
+ * @generated from field: repeated livekit.RTCPSenderReportState sender_report_state = 8;
2602
+ */
2603
+ senderReportState: RTCPSenderReportState[];
2604
+
2605
+ constructor(data?: PartialMessage<RTPForwarderState>);
2606
+
2607
+ static readonly runtime: typeof proto3;
2608
+ static readonly typeName = "livekit.RTPForwarderState";
2609
+ static readonly fields: FieldList;
2610
+
2611
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): RTPForwarderState;
2612
+
2613
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): RTPForwarderState;
2614
+
2615
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): RTPForwarderState;
2616
+
2617
+ static equals(a: RTPForwarderState | PlainMessage<RTPForwarderState> | undefined, b: RTPForwarderState | PlainMessage<RTPForwarderState> | undefined): boolean;
2618
+ }
2619
+
2620
+ /**
2621
+ * @generated from message livekit.RTPMungerState
2622
+ */
2623
+ export declare class RTPMungerState extends Message<RTPMungerState> {
2624
+ /**
2625
+ * @generated from field: uint64 ext_last_sequence_number = 1;
2626
+ */
2627
+ extLastSequenceNumber: bigint;
2628
+
2629
+ /**
2630
+ * @generated from field: uint64 ext_second_last_sequence_number = 2;
2631
+ */
2632
+ extSecondLastSequenceNumber: bigint;
2633
+
2634
+ /**
2635
+ * @generated from field: uint64 ext_last_timestamp = 3;
2636
+ */
2637
+ extLastTimestamp: bigint;
2638
+
2639
+ /**
2640
+ * @generated from field: uint64 ext_second_last_timestamp = 4;
2641
+ */
2642
+ extSecondLastTimestamp: bigint;
2643
+
2644
+ /**
2645
+ * @generated from field: bool last_marker = 5;
2646
+ */
2647
+ lastMarker: boolean;
2648
+
2649
+ /**
2650
+ * @generated from field: bool second_last_marker = 6;
2651
+ */
2652
+ secondLastMarker: boolean;
2653
+
2654
+ constructor(data?: PartialMessage<RTPMungerState>);
2655
+
2656
+ static readonly runtime: typeof proto3;
2657
+ static readonly typeName = "livekit.RTPMungerState";
2658
+ static readonly fields: FieldList;
2659
+
2660
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): RTPMungerState;
2661
+
2662
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): RTPMungerState;
2663
+
2664
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): RTPMungerState;
2665
+
2666
+ static equals(a: RTPMungerState | PlainMessage<RTPMungerState> | undefined, b: RTPMungerState | PlainMessage<RTPMungerState> | undefined): boolean;
2667
+ }
2668
+
2669
+ /**
2670
+ * @generated from message livekit.VP8MungerState
2671
+ */
2672
+ export declare class VP8MungerState extends Message<VP8MungerState> {
2673
+ /**
2674
+ * @generated from field: int32 ext_last_picture_id = 1;
2675
+ */
2676
+ extLastPictureId: number;
2677
+
2678
+ /**
2679
+ * @generated from field: bool picture_id_used = 2;
2680
+ */
2681
+ pictureIdUsed: boolean;
2682
+
2683
+ /**
2684
+ * @generated from field: uint32 last_tl0_pic_idx = 3;
2685
+ */
2686
+ lastTl0PicIdx: number;
2687
+
2688
+ /**
2689
+ * @generated from field: bool tl0_pic_idx_used = 4;
2690
+ */
2691
+ tl0PicIdxUsed: boolean;
2692
+
2693
+ /**
2694
+ * @generated from field: bool tid_used = 5;
2695
+ */
2696
+ tidUsed: boolean;
2697
+
2698
+ /**
2699
+ * @generated from field: uint32 last_key_idx = 6;
2700
+ */
2701
+ lastKeyIdx: number;
2702
+
2703
+ /**
2704
+ * @generated from field: bool key_idx_used = 7;
2705
+ */
2706
+ keyIdxUsed: boolean;
2707
+
2708
+ constructor(data?: PartialMessage<VP8MungerState>);
2709
+
2710
+ static readonly runtime: typeof proto3;
2711
+ static readonly typeName = "livekit.VP8MungerState";
2712
+ static readonly fields: FieldList;
2713
+
2714
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): VP8MungerState;
2715
+
2716
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): VP8MungerState;
2717
+
2718
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): VP8MungerState;
2719
+
2720
+ static equals(a: VP8MungerState | PlainMessage<VP8MungerState> | undefined, b: VP8MungerState | PlainMessage<VP8MungerState> | undefined): boolean;
2721
+ }
2722
+
2723
+ /**
2724
+ * @generated from message livekit.TimedVersion
2725
+ */
2726
+ export declare class TimedVersion extends Message<TimedVersion> {
2727
+ /**
2728
+ * @generated from field: int64 unix_micro = 1;
2729
+ */
2730
+ unixMicro: bigint;
2731
+
2732
+ /**
2733
+ * @generated from field: int32 ticks = 2;
2734
+ */
2735
+ ticks: number;
2736
+
2737
+ constructor(data?: PartialMessage<TimedVersion>);
2738
+
2739
+ static readonly runtime: typeof proto3;
2740
+ static readonly typeName = "livekit.TimedVersion";
2741
+ static readonly fields: FieldList;
2742
+
2743
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): TimedVersion;
2744
+
2745
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): TimedVersion;
2746
+
2747
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): TimedVersion;
2748
+
2749
+ static equals(a: TimedVersion | PlainMessage<TimedVersion> | undefined, b: TimedVersion | PlainMessage<TimedVersion> | undefined): boolean;
2750
+ }
2751
+
2752
+ /**
2753
+ * @generated from message livekit.DataStream
2754
+ */
2755
+ export declare class DataStream extends Message<DataStream> {
2756
+ constructor(data?: PartialMessage<DataStream>);
2757
+
2758
+ static readonly runtime: typeof proto3;
2759
+ static readonly typeName = "livekit.DataStream";
2760
+ static readonly fields: FieldList;
2761
+
2762
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): DataStream;
2763
+
2764
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): DataStream;
2765
+
2766
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): DataStream;
2767
+
2768
+ static equals(a: DataStream | PlainMessage<DataStream> | undefined, b: DataStream | PlainMessage<DataStream> | undefined): boolean;
2769
+ }
2770
+
2771
+ /**
2772
+ * enum for operation types (specific to TextHeader)
2773
+ *
2774
+ * @generated from enum livekit.DataStream.OperationType
2775
+ */
2776
+ export declare enum DataStream_OperationType {
2777
+ /**
2778
+ * @generated from enum value: CREATE = 0;
2779
+ */
2780
+ CREATE = 0,
2781
+
2782
+ /**
2783
+ * @generated from enum value: UPDATE = 1;
2784
+ */
2785
+ UPDATE = 1,
2786
+
2787
+ /**
2788
+ * @generated from enum value: DELETE = 2;
2789
+ */
2790
+ DELETE = 2,
2791
+
2792
+ /**
2793
+ * @generated from enum value: REACTION = 3;
2794
+ */
2795
+ REACTION = 3,
2796
+ }
2797
+
2798
+ /**
2799
+ * header properties specific to text streams
2800
+ *
2801
+ * @generated from message livekit.DataStream.TextHeader
2802
+ */
2803
+ export declare class DataStream_TextHeader extends Message<DataStream_TextHeader> {
2804
+ /**
2805
+ * @generated from field: livekit.DataStream.OperationType operation_type = 1;
2806
+ */
2807
+ operationType: DataStream_OperationType;
2808
+
2809
+ /**
2810
+ * Optional: Version for updates/edits
2811
+ *
2812
+ * @generated from field: int32 version = 2;
2813
+ */
2814
+ version: number;
2815
+
2816
+ /**
2817
+ * Optional: Reply to specific message
2818
+ *
2819
+ * @generated from field: string reply_to_stream_id = 3;
2820
+ */
2821
+ replyToStreamId: string;
2822
+
2823
+ /**
2824
+ * file attachments for text streams
2825
+ *
2826
+ * @generated from field: repeated string attached_stream_ids = 4;
2827
+ */
2828
+ attachedStreamIds: string[];
2829
+
2830
+ /**
2831
+ * true if the text has been generated by an agent from a participant's audio transcription
2832
+ *
2833
+ * @generated from field: bool generated = 5;
2834
+ */
2835
+ generated: boolean;
2836
+
2837
+ constructor(data?: PartialMessage<DataStream_TextHeader>);
2838
+
2839
+ static readonly runtime: typeof proto3;
2840
+ static readonly typeName = "livekit.DataStream.TextHeader";
2841
+ static readonly fields: FieldList;
2842
+
2843
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): DataStream_TextHeader;
2844
+
2845
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): DataStream_TextHeader;
2846
+
2847
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): DataStream_TextHeader;
2848
+
2849
+ static equals(a: DataStream_TextHeader | PlainMessage<DataStream_TextHeader> | undefined, b: DataStream_TextHeader | PlainMessage<DataStream_TextHeader> | undefined): boolean;
2850
+ }
2851
+
2852
+ /**
2853
+ * header properties specific to byte or file streams
2854
+ *
2855
+ * @generated from message livekit.DataStream.ByteHeader
2856
+ */
2857
+ export declare class DataStream_ByteHeader extends Message<DataStream_ByteHeader> {
2858
+ /**
2859
+ * @generated from field: string name = 1;
2860
+ */
2861
+ name: string;
2862
+
2863
+ constructor(data?: PartialMessage<DataStream_ByteHeader>);
2864
+
2865
+ static readonly runtime: typeof proto3;
2866
+ static readonly typeName = "livekit.DataStream.ByteHeader";
2867
+ static readonly fields: FieldList;
2868
+
2869
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): DataStream_ByteHeader;
2870
+
2871
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): DataStream_ByteHeader;
2872
+
2873
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): DataStream_ByteHeader;
2874
+
2875
+ static equals(a: DataStream_ByteHeader | PlainMessage<DataStream_ByteHeader> | undefined, b: DataStream_ByteHeader | PlainMessage<DataStream_ByteHeader> | undefined): boolean;
2876
+ }
2877
+
2878
+ /**
2879
+ * main DataStream.Header that contains a oneof for specific headers
2880
+ *
2881
+ * @generated from message livekit.DataStream.Header
2882
+ */
2883
+ export declare class DataStream_Header extends Message<DataStream_Header> {
2884
+ /**
2885
+ * unique identifier for this data stream
2886
+ *
2887
+ * @generated from field: string stream_id = 1;
2888
+ */
2889
+ streamId: string;
2890
+
2891
+ /**
2892
+ * using int64 for Unix timestamp
2893
+ *
2894
+ * @generated from field: int64 timestamp = 2;
2895
+ */
2896
+ timestamp: bigint;
2897
+
2898
+ /**
2899
+ * @generated from field: string topic = 3;
2900
+ */
2901
+ topic: string;
2902
+
2903
+ /**
2904
+ * @generated from field: string mime_type = 4;
2905
+ */
2906
+ mimeType: string;
2907
+
2908
+ /**
2909
+ * only populated for finite streams, if it's a stream of unknown size this stays empty
2910
+ *
2911
+ * @generated from field: optional uint64 total_length = 5;
2912
+ */
2913
+ totalLength?: bigint;
2914
+
2915
+ /**
2916
+ * defaults to NONE
2917
+ *
2918
+ * @generated from field: livekit.Encryption.Type encryption_type = 7;
2919
+ */
2920
+ encryptionType: Encryption_Type;
2921
+
2922
+ /**
2923
+ * user defined attributes map that can carry additional info
2924
+ *
2925
+ * @generated from field: map<string, string> attributes = 8;
2926
+ */
2927
+ attributes: { [key: string]: string };
2928
+
2929
+ /**
2930
+ * oneof to choose between specific header types
2931
+ *
2932
+ * @generated from oneof livekit.DataStream.Header.content_header
2933
+ */
2934
+ contentHeader: {
2935
+ /**
2936
+ * @generated from field: livekit.DataStream.TextHeader text_header = 9;
2937
+ */
2938
+ value: DataStream_TextHeader;
2939
+ case: "textHeader";
2940
+ } | {
2941
+ /**
2942
+ * @generated from field: livekit.DataStream.ByteHeader byte_header = 10;
2943
+ */
2944
+ value: DataStream_ByteHeader;
2945
+ case: "byteHeader";
2946
+ } | { case: undefined; value?: undefined };
2947
+
2948
+ constructor(data?: PartialMessage<DataStream_Header>);
2949
+
2950
+ static readonly runtime: typeof proto3;
2951
+ static readonly typeName = "livekit.DataStream.Header";
2952
+ static readonly fields: FieldList;
2953
+
2954
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): DataStream_Header;
2955
+
2956
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): DataStream_Header;
2957
+
2958
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): DataStream_Header;
2959
+
2960
+ static equals(a: DataStream_Header | PlainMessage<DataStream_Header> | undefined, b: DataStream_Header | PlainMessage<DataStream_Header> | undefined): boolean;
2961
+ }
2962
+
2963
+ /**
2964
+ * @generated from message livekit.DataStream.Chunk
2965
+ */
2966
+ export declare class DataStream_Chunk extends Message<DataStream_Chunk> {
2967
+ /**
2968
+ * unique identifier for this data stream to map it to the correct header
2969
+ *
2970
+ * @generated from field: string stream_id = 1;
2971
+ */
2972
+ streamId: string;
2973
+
2974
+ /**
2975
+ * @generated from field: uint64 chunk_index = 2;
2976
+ */
2977
+ chunkIndex: bigint;
2978
+
2979
+ /**
2980
+ * content as binary (bytes)
2981
+ *
2982
+ * @generated from field: bytes content = 3;
2983
+ */
2984
+ content: Uint8Array;
2985
+
2986
+ /**
2987
+ * a version indicating that this chunk_index has been retroactively modified and the original one needs to be replaced
2988
+ *
2989
+ * @generated from field: int32 version = 4;
2990
+ */
2991
+ version: number;
2992
+
2993
+ /**
2994
+ * optional, initialization vector for AES-GCM encryption
2995
+ *
2996
+ * @generated from field: optional bytes iv = 5;
2997
+ */
2998
+ iv?: Uint8Array;
2999
+
3000
+ constructor(data?: PartialMessage<DataStream_Chunk>);
3001
+
3002
+ static readonly runtime: typeof proto3;
3003
+ static readonly typeName = "livekit.DataStream.Chunk";
3004
+ static readonly fields: FieldList;
3005
+
3006
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): DataStream_Chunk;
3007
+
3008
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): DataStream_Chunk;
3009
+
3010
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): DataStream_Chunk;
3011
+
3012
+ static equals(a: DataStream_Chunk | PlainMessage<DataStream_Chunk> | undefined, b: DataStream_Chunk | PlainMessage<DataStream_Chunk> | undefined): boolean;
3013
+ }
3014
+
3015
+ /**
3016
+ * @generated from message livekit.DataStream.Trailer
3017
+ */
3018
+ export declare class DataStream_Trailer extends Message<DataStream_Trailer> {
3019
+ /**
3020
+ * unique identifier for this data stream
3021
+ *
3022
+ * @generated from field: string stream_id = 1;
3023
+ */
3024
+ streamId: string;
3025
+
3026
+ /**
3027
+ * reason why the stream was closed (could contain "error" / "interrupted" / empty for expected end)
3028
+ *
3029
+ * @generated from field: string reason = 2;
3030
+ */
3031
+ reason: string;
3032
+
3033
+ /**
3034
+ * finalizing updates for the stream, can also include additional insights for errors or endTime for transcription
3035
+ *
3036
+ * @generated from field: map<string, string> attributes = 3;
3037
+ */
3038
+ attributes: { [key: string]: string };
3039
+
3040
+ constructor(data?: PartialMessage<DataStream_Trailer>);
3041
+
3042
+ static readonly runtime: typeof proto3;
3043
+ static readonly typeName = "livekit.DataStream.Trailer";
3044
+ static readonly fields: FieldList;
3045
+
3046
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): DataStream_Trailer;
3047
+
3048
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): DataStream_Trailer;
3049
+
3050
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): DataStream_Trailer;
3051
+
3052
+ static equals(a: DataStream_Trailer | PlainMessage<DataStream_Trailer> | undefined, b: DataStream_Trailer | PlainMessage<DataStream_Trailer> | undefined): boolean;
3053
+ }
3054
+
3055
+ /**
3056
+ * @generated from message livekit.WebhookConfig
3057
+ */
3058
+ export declare class WebhookConfig extends Message<WebhookConfig> {
3059
+ /**
3060
+ * @generated from field: string url = 1;
3061
+ */
3062
+ url: string;
3063
+
3064
+ /**
3065
+ * @generated from field: string signing_key = 2;
3066
+ */
3067
+ signingKey: string;
3068
+
3069
+ constructor(data?: PartialMessage<WebhookConfig>);
3070
+
3071
+ static readonly runtime: typeof proto3;
3072
+ static readonly typeName = "livekit.WebhookConfig";
3073
+ static readonly fields: FieldList;
3074
+
3075
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): WebhookConfig;
3076
+
3077
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): WebhookConfig;
3078
+
3079
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): WebhookConfig;
3080
+
3081
+ static equals(a: WebhookConfig | PlainMessage<WebhookConfig> | undefined, b: WebhookConfig | PlainMessage<WebhookConfig> | undefined): boolean;
3082
+ }
3083
+