@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,2134 @@
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_rtc.proto (package livekit, syntax proto3)
17
+ /* eslint-disable */
18
+ // @ts-nocheck
19
+
20
+ import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf";
21
+ import { Message, proto3 } from "@bufbuild/protobuf";
22
+ import type { TTCallRequest, TTCallResponse } from "./livekit_temptalk_pb.js";
23
+ import type { AudioTrackFeature, BackupCodecPolicy, ClientConfiguration, Codec, ConnectionQuality, DisconnectReason, Encryption_Type, ParticipantInfo, ParticipantTracks, Room, ServerInfo, SpeakerInfo, SubscriptionError, TrackInfo, TrackSource, TrackType, VideoLayer, VideoQuality } from "./livekit_models_pb.js";
24
+
25
+ /**
26
+ * @generated from enum livekit.SignalTarget
27
+ */
28
+ export declare enum SignalTarget {
29
+ /**
30
+ * @generated from enum value: PUBLISHER = 0;
31
+ */
32
+ PUBLISHER = 0,
33
+
34
+ /**
35
+ * @generated from enum value: SUBSCRIBER = 1;
36
+ */
37
+ SUBSCRIBER = 1,
38
+ }
39
+
40
+ /**
41
+ * @generated from enum livekit.StreamState
42
+ */
43
+ export declare enum StreamState {
44
+ /**
45
+ * @generated from enum value: ACTIVE = 0;
46
+ */
47
+ ACTIVE = 0,
48
+
49
+ /**
50
+ * @generated from enum value: PAUSED = 1;
51
+ */
52
+ PAUSED = 1,
53
+ }
54
+
55
+ /**
56
+ * @generated from enum livekit.CandidateProtocol
57
+ */
58
+ export declare enum CandidateProtocol {
59
+ /**
60
+ * @generated from enum value: UDP = 0;
61
+ */
62
+ UDP = 0,
63
+
64
+ /**
65
+ * @generated from enum value: TCP = 1;
66
+ */
67
+ TCP = 1,
68
+
69
+ /**
70
+ * @generated from enum value: TLS = 2;
71
+ */
72
+ TLS = 2,
73
+ }
74
+
75
+ /**
76
+ * @generated from message livekit.SignalRequest
77
+ */
78
+ export declare class SignalRequest extends Message<SignalRequest> {
79
+ /**
80
+ * @generated from oneof livekit.SignalRequest.message
81
+ */
82
+ message: {
83
+ /**
84
+ * initial join exchange, for publisher
85
+ *
86
+ * @generated from field: livekit.SessionDescription offer = 1;
87
+ */
88
+ value: SessionDescription;
89
+ case: "offer";
90
+ } | {
91
+ /**
92
+ * participant answering publisher offer
93
+ *
94
+ * @generated from field: livekit.SessionDescription answer = 2;
95
+ */
96
+ value: SessionDescription;
97
+ case: "answer";
98
+ } | {
99
+ /**
100
+ * @generated from field: livekit.TrickleRequest trickle = 3;
101
+ */
102
+ value: TrickleRequest;
103
+ case: "trickle";
104
+ } | {
105
+ /**
106
+ * @generated from field: livekit.AddTrackRequest add_track = 4;
107
+ */
108
+ value: AddTrackRequest;
109
+ case: "addTrack";
110
+ } | {
111
+ /**
112
+ * mute the participant's published tracks
113
+ *
114
+ * @generated from field: livekit.MuteTrackRequest mute = 5;
115
+ */
116
+ value: MuteTrackRequest;
117
+ case: "mute";
118
+ } | {
119
+ /**
120
+ * Subscribe or unsubscribe from tracks
121
+ *
122
+ * @generated from field: livekit.UpdateSubscription subscription = 6;
123
+ */
124
+ value: UpdateSubscription;
125
+ case: "subscription";
126
+ } | {
127
+ /**
128
+ * Update settings of subscribed tracks
129
+ *
130
+ * @generated from field: livekit.UpdateTrackSettings track_setting = 7;
131
+ */
132
+ value: UpdateTrackSettings;
133
+ case: "trackSetting";
134
+ } | {
135
+ /**
136
+ * Immediately terminate session
137
+ *
138
+ * @generated from field: livekit.LeaveRequest leave = 8;
139
+ */
140
+ value: LeaveRequest;
141
+ case: "leave";
142
+ } | {
143
+ /**
144
+ * Update published video layers
145
+ *
146
+ * @generated from field: livekit.UpdateVideoLayers update_layers = 10 [deprecated = true];
147
+ * @deprecated
148
+ */
149
+ value: UpdateVideoLayers;
150
+ case: "updateLayers";
151
+ } | {
152
+ /**
153
+ * Update subscriber permissions
154
+ *
155
+ * @generated from field: livekit.SubscriptionPermission subscription_permission = 11;
156
+ */
157
+ value: SubscriptionPermission;
158
+ case: "subscriptionPermission";
159
+ } | {
160
+ /**
161
+ * sync client's subscribe state to server during reconnect
162
+ *
163
+ * @generated from field: livekit.SyncState sync_state = 12;
164
+ */
165
+ value: SyncState;
166
+ case: "syncState";
167
+ } | {
168
+ /**
169
+ * Simulate conditions, for client validations
170
+ *
171
+ * @generated from field: livekit.SimulateScenario simulate = 13;
172
+ */
173
+ value: SimulateScenario;
174
+ case: "simulate";
175
+ } | {
176
+ /**
177
+ * client triggered ping to server
178
+ *
179
+ * deprecated by ping_req (message Ping)
180
+ *
181
+ * @generated from field: int64 ping = 14;
182
+ */
183
+ value: bigint;
184
+ case: "ping";
185
+ } | {
186
+ /**
187
+ * update a participant's own metadata, name, or attributes
188
+ * requires canUpdateOwnParticipantMetadata permission
189
+ *
190
+ * @generated from field: livekit.UpdateParticipantMetadata update_metadata = 15;
191
+ */
192
+ value: UpdateParticipantMetadata;
193
+ case: "updateMetadata";
194
+ } | {
195
+ /**
196
+ * @generated from field: livekit.Ping ping_req = 16;
197
+ */
198
+ value: Ping;
199
+ case: "pingReq";
200
+ } | {
201
+ /**
202
+ * Update local audio track settings
203
+ *
204
+ * @generated from field: livekit.UpdateLocalAudioTrack update_audio_track = 17;
205
+ */
206
+ value: UpdateLocalAudioTrack;
207
+ case: "updateAudioTrack";
208
+ } | {
209
+ /**
210
+ * Update local video track settings
211
+ *
212
+ * @generated from field: livekit.UpdateLocalVideoTrack update_video_track = 18;
213
+ */
214
+ value: UpdateLocalVideoTrack;
215
+ case: "updateVideoTrack";
216
+ } | {
217
+ /**
218
+ * @generated from field: livekit.TTCallRequest tt_call_request = 1001;
219
+ */
220
+ value: TTCallRequest;
221
+ case: "ttCallRequest";
222
+ } | { case: undefined; value?: undefined };
223
+
224
+ constructor(data?: PartialMessage<SignalRequest>);
225
+
226
+ static readonly runtime: typeof proto3;
227
+ static readonly typeName = "livekit.SignalRequest";
228
+ static readonly fields: FieldList;
229
+
230
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SignalRequest;
231
+
232
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SignalRequest;
233
+
234
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SignalRequest;
235
+
236
+ static equals(a: SignalRequest | PlainMessage<SignalRequest> | undefined, b: SignalRequest | PlainMessage<SignalRequest> | undefined): boolean;
237
+ }
238
+
239
+ /**
240
+ * @generated from message livekit.SignalResponse
241
+ */
242
+ export declare class SignalResponse extends Message<SignalResponse> {
243
+ /**
244
+ * @generated from oneof livekit.SignalResponse.message
245
+ */
246
+ message: {
247
+ /**
248
+ * sent when join is accepted
249
+ *
250
+ * @generated from field: livekit.JoinResponse join = 1;
251
+ */
252
+ value: JoinResponse;
253
+ case: "join";
254
+ } | {
255
+ /**
256
+ * sent when server answers publisher
257
+ *
258
+ * @generated from field: livekit.SessionDescription answer = 2;
259
+ */
260
+ value: SessionDescription;
261
+ case: "answer";
262
+ } | {
263
+ /**
264
+ * sent when server is sending subscriber an offer
265
+ *
266
+ * @generated from field: livekit.SessionDescription offer = 3;
267
+ */
268
+ value: SessionDescription;
269
+ case: "offer";
270
+ } | {
271
+ /**
272
+ * sent when an ICE candidate is available
273
+ *
274
+ * @generated from field: livekit.TrickleRequest trickle = 4;
275
+ */
276
+ value: TrickleRequest;
277
+ case: "trickle";
278
+ } | {
279
+ /**
280
+ * sent when participants in the room has changed
281
+ *
282
+ * @generated from field: livekit.ParticipantUpdate update = 5;
283
+ */
284
+ value: ParticipantUpdate;
285
+ case: "update";
286
+ } | {
287
+ /**
288
+ * sent to the participant when their track has been published
289
+ *
290
+ * @generated from field: livekit.TrackPublishedResponse track_published = 6;
291
+ */
292
+ value: TrackPublishedResponse;
293
+ case: "trackPublished";
294
+ } | {
295
+ /**
296
+ * Immediately terminate session
297
+ *
298
+ * @generated from field: livekit.LeaveRequest leave = 8;
299
+ */
300
+ value: LeaveRequest;
301
+ case: "leave";
302
+ } | {
303
+ /**
304
+ * server initiated mute
305
+ *
306
+ * @generated from field: livekit.MuteTrackRequest mute = 9;
307
+ */
308
+ value: MuteTrackRequest;
309
+ case: "mute";
310
+ } | {
311
+ /**
312
+ * indicates changes to speaker status, including when they've gone to not speaking
313
+ *
314
+ * @generated from field: livekit.SpeakersChanged speakers_changed = 10;
315
+ */
316
+ value: SpeakersChanged;
317
+ case: "speakersChanged";
318
+ } | {
319
+ /**
320
+ * sent when metadata of the room has changed
321
+ *
322
+ * @generated from field: livekit.RoomUpdate room_update = 11;
323
+ */
324
+ value: RoomUpdate;
325
+ case: "roomUpdate";
326
+ } | {
327
+ /**
328
+ * when connection quality changed
329
+ *
330
+ * @generated from field: livekit.ConnectionQualityUpdate connection_quality = 12;
331
+ */
332
+ value: ConnectionQualityUpdate;
333
+ case: "connectionQuality";
334
+ } | {
335
+ /**
336
+ * when streamed tracks state changed, used to notify when any of the streams were paused due to
337
+ * congestion
338
+ *
339
+ * @generated from field: livekit.StreamStateUpdate stream_state_update = 13;
340
+ */
341
+ value: StreamStateUpdate;
342
+ case: "streamStateUpdate";
343
+ } | {
344
+ /**
345
+ * when max subscribe quality changed, used by dynamic broadcasting to disable unused layers
346
+ *
347
+ * @generated from field: livekit.SubscribedQualityUpdate subscribed_quality_update = 14;
348
+ */
349
+ value: SubscribedQualityUpdate;
350
+ case: "subscribedQualityUpdate";
351
+ } | {
352
+ /**
353
+ * when subscription permission changed
354
+ *
355
+ * @generated from field: livekit.SubscriptionPermissionUpdate subscription_permission_update = 15;
356
+ */
357
+ value: SubscriptionPermissionUpdate;
358
+ case: "subscriptionPermissionUpdate";
359
+ } | {
360
+ /**
361
+ * update the token the client was using, to prevent an active client from using an expired token
362
+ *
363
+ * @generated from field: string refresh_token = 16;
364
+ */
365
+ value: string;
366
+ case: "refreshToken";
367
+ } | {
368
+ /**
369
+ * server initiated track unpublish
370
+ *
371
+ * @generated from field: livekit.TrackUnpublishedResponse track_unpublished = 17;
372
+ */
373
+ value: TrackUnpublishedResponse;
374
+ case: "trackUnpublished";
375
+ } | {
376
+ /**
377
+ * respond to ping
378
+ *
379
+ * deprecated by pong_resp (message Pong)
380
+ *
381
+ * @generated from field: int64 pong = 18;
382
+ */
383
+ value: bigint;
384
+ case: "pong";
385
+ } | {
386
+ /**
387
+ * sent when client reconnects
388
+ *
389
+ * @generated from field: livekit.ReconnectResponse reconnect = 19;
390
+ */
391
+ value: ReconnectResponse;
392
+ case: "reconnect";
393
+ } | {
394
+ /**
395
+ * respond to Ping
396
+ *
397
+ * @generated from field: livekit.Pong pong_resp = 20;
398
+ */
399
+ value: Pong;
400
+ case: "pongResp";
401
+ } | {
402
+ /**
403
+ * Subscription response, client should not expect any media from this subscription if it fails
404
+ *
405
+ * @generated from field: livekit.SubscriptionResponse subscription_response = 21;
406
+ */
407
+ value: SubscriptionResponse;
408
+ case: "subscriptionResponse";
409
+ } | {
410
+ /**
411
+ * Response relating to user inititated requests that carry a `request_id`
412
+ *
413
+ * @generated from field: livekit.RequestResponse request_response = 22;
414
+ */
415
+ value: RequestResponse;
416
+ case: "requestResponse";
417
+ } | {
418
+ /**
419
+ * notify to the publisher when a published track has been subscribed for the first time
420
+ *
421
+ * @generated from field: livekit.TrackSubscribed track_subscribed = 23;
422
+ */
423
+ value: TrackSubscribed;
424
+ case: "trackSubscribed";
425
+ } | {
426
+ /**
427
+ * notify to the participant when they have been moved to a new room
428
+ *
429
+ * @generated from field: livekit.RoomMovedResponse room_moved = 24;
430
+ */
431
+ value: RoomMovedResponse;
432
+ case: "roomMoved";
433
+ } | { case: undefined; value?: undefined };
434
+
435
+ constructor(data?: PartialMessage<SignalResponse>);
436
+
437
+ static readonly runtime: typeof proto3;
438
+ static readonly typeName = "livekit.SignalResponse";
439
+ static readonly fields: FieldList;
440
+
441
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SignalResponse;
442
+
443
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SignalResponse;
444
+
445
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SignalResponse;
446
+
447
+ static equals(a: SignalResponse | PlainMessage<SignalResponse> | undefined, b: SignalResponse | PlainMessage<SignalResponse> | undefined): boolean;
448
+ }
449
+
450
+ /**
451
+ * @generated from message livekit.SimulcastCodec
452
+ */
453
+ export declare class SimulcastCodec extends Message<SimulcastCodec> {
454
+ /**
455
+ * @generated from field: string codec = 1;
456
+ */
457
+ codec: string;
458
+
459
+ /**
460
+ * @generated from field: string cid = 2;
461
+ */
462
+ cid: string;
463
+
464
+ constructor(data?: PartialMessage<SimulcastCodec>);
465
+
466
+ static readonly runtime: typeof proto3;
467
+ static readonly typeName = "livekit.SimulcastCodec";
468
+ static readonly fields: FieldList;
469
+
470
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SimulcastCodec;
471
+
472
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SimulcastCodec;
473
+
474
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SimulcastCodec;
475
+
476
+ static equals(a: SimulcastCodec | PlainMessage<SimulcastCodec> | undefined, b: SimulcastCodec | PlainMessage<SimulcastCodec> | undefined): boolean;
477
+ }
478
+
479
+ /**
480
+ * @generated from message livekit.AddTrackRequest
481
+ */
482
+ export declare class AddTrackRequest extends Message<AddTrackRequest> {
483
+ /**
484
+ * client ID of track, to match it when RTC track is received
485
+ *
486
+ * @generated from field: string cid = 1;
487
+ */
488
+ cid: string;
489
+
490
+ /**
491
+ * @generated from field: string name = 2;
492
+ */
493
+ name: string;
494
+
495
+ /**
496
+ * @generated from field: livekit.TrackType type = 3;
497
+ */
498
+ type: TrackType;
499
+
500
+ /**
501
+ * to be deprecated in favor of layers
502
+ *
503
+ * @generated from field: uint32 width = 4;
504
+ */
505
+ width: number;
506
+
507
+ /**
508
+ * @generated from field: uint32 height = 5;
509
+ */
510
+ height: number;
511
+
512
+ /**
513
+ * true to add track and initialize to muted
514
+ *
515
+ * @generated from field: bool muted = 6;
516
+ */
517
+ muted: boolean;
518
+
519
+ /**
520
+ * true if DTX (Discontinuous Transmission) is disabled for audio
521
+ *
522
+ * deprecated in favor of audio_features
523
+ *
524
+ * @generated from field: bool disable_dtx = 7 [deprecated = true];
525
+ * @deprecated
526
+ */
527
+ disableDtx: boolean;
528
+
529
+ /**
530
+ * @generated from field: livekit.TrackSource source = 8;
531
+ */
532
+ source: TrackSource;
533
+
534
+ /**
535
+ * @generated from field: repeated livekit.VideoLayer layers = 9;
536
+ */
537
+ layers: VideoLayer[];
538
+
539
+ /**
540
+ * @generated from field: repeated livekit.SimulcastCodec simulcast_codecs = 10;
541
+ */
542
+ simulcastCodecs: SimulcastCodec[];
543
+
544
+ /**
545
+ * server ID of track, publish new codec to exist track
546
+ *
547
+ * @generated from field: string sid = 11;
548
+ */
549
+ sid: string;
550
+
551
+ /**
552
+ * deprecated in favor of audio_features
553
+ *
554
+ * @generated from field: bool stereo = 12 [deprecated = true];
555
+ * @deprecated
556
+ */
557
+ stereo: boolean;
558
+
559
+ /**
560
+ * true if RED (Redundant Encoding) is disabled for audio
561
+ *
562
+ * @generated from field: bool disable_red = 13;
563
+ */
564
+ disableRed: boolean;
565
+
566
+ /**
567
+ * @generated from field: livekit.Encryption.Type encryption = 14;
568
+ */
569
+ encryption: Encryption_Type;
570
+
571
+ /**
572
+ * which stream the track belongs to, used to group tracks together.
573
+ * if not specified, server will infer it from track source to bundle camera/microphone, screenshare/audio together
574
+ *
575
+ * @generated from field: string stream = 15;
576
+ */
577
+ stream: string;
578
+
579
+ /**
580
+ * @generated from field: livekit.BackupCodecPolicy backup_codec_policy = 16;
581
+ */
582
+ backupCodecPolicy: BackupCodecPolicy;
583
+
584
+ /**
585
+ * @generated from field: repeated livekit.AudioTrackFeature audio_features = 17;
586
+ */
587
+ audioFeatures: AudioTrackFeature[];
588
+
589
+ constructor(data?: PartialMessage<AddTrackRequest>);
590
+
591
+ static readonly runtime: typeof proto3;
592
+ static readonly typeName = "livekit.AddTrackRequest";
593
+ static readonly fields: FieldList;
594
+
595
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): AddTrackRequest;
596
+
597
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): AddTrackRequest;
598
+
599
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): AddTrackRequest;
600
+
601
+ static equals(a: AddTrackRequest | PlainMessage<AddTrackRequest> | undefined, b: AddTrackRequest | PlainMessage<AddTrackRequest> | undefined): boolean;
602
+ }
603
+
604
+ /**
605
+ * @generated from message livekit.TrickleRequest
606
+ */
607
+ export declare class TrickleRequest extends Message<TrickleRequest> {
608
+ /**
609
+ * @generated from field: string candidateInit = 1;
610
+ */
611
+ candidateInit: string;
612
+
613
+ /**
614
+ * @generated from field: livekit.SignalTarget target = 2;
615
+ */
616
+ target: SignalTarget;
617
+
618
+ /**
619
+ * @generated from field: bool final = 3;
620
+ */
621
+ final: boolean;
622
+
623
+ constructor(data?: PartialMessage<TrickleRequest>);
624
+
625
+ static readonly runtime: typeof proto3;
626
+ static readonly typeName = "livekit.TrickleRequest";
627
+ static readonly fields: FieldList;
628
+
629
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): TrickleRequest;
630
+
631
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): TrickleRequest;
632
+
633
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): TrickleRequest;
634
+
635
+ static equals(a: TrickleRequest | PlainMessage<TrickleRequest> | undefined, b: TrickleRequest | PlainMessage<TrickleRequest> | undefined): boolean;
636
+ }
637
+
638
+ /**
639
+ * @generated from message livekit.MuteTrackRequest
640
+ */
641
+ export declare class MuteTrackRequest extends Message<MuteTrackRequest> {
642
+ /**
643
+ * @generated from field: string sid = 1;
644
+ */
645
+ sid: string;
646
+
647
+ /**
648
+ * @generated from field: bool muted = 2;
649
+ */
650
+ muted: boolean;
651
+
652
+ constructor(data?: PartialMessage<MuteTrackRequest>);
653
+
654
+ static readonly runtime: typeof proto3;
655
+ static readonly typeName = "livekit.MuteTrackRequest";
656
+ static readonly fields: FieldList;
657
+
658
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): MuteTrackRequest;
659
+
660
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): MuteTrackRequest;
661
+
662
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): MuteTrackRequest;
663
+
664
+ static equals(a: MuteTrackRequest | PlainMessage<MuteTrackRequest> | undefined, b: MuteTrackRequest | PlainMessage<MuteTrackRequest> | undefined): boolean;
665
+ }
666
+
667
+ /**
668
+ * @generated from message livekit.JoinResponse
669
+ */
670
+ export declare class JoinResponse extends Message<JoinResponse> {
671
+ /**
672
+ * @generated from field: livekit.Room room = 1;
673
+ */
674
+ room?: Room;
675
+
676
+ /**
677
+ * @generated from field: livekit.ParticipantInfo participant = 2;
678
+ */
679
+ participant?: ParticipantInfo;
680
+
681
+ /**
682
+ * @generated from field: repeated livekit.ParticipantInfo other_participants = 3;
683
+ */
684
+ otherParticipants: ParticipantInfo[];
685
+
686
+ /**
687
+ * deprecated. use server_info.version instead.
688
+ *
689
+ * @generated from field: string server_version = 4;
690
+ */
691
+ serverVersion: string;
692
+
693
+ /**
694
+ * @generated from field: repeated livekit.ICEServer ice_servers = 5;
695
+ */
696
+ iceServers: ICEServer[];
697
+
698
+ /**
699
+ * use subscriber as the primary PeerConnection
700
+ *
701
+ * @generated from field: bool subscriber_primary = 6;
702
+ */
703
+ subscriberPrimary: boolean;
704
+
705
+ /**
706
+ * when the current server isn't available, return alternate url to retry connection
707
+ * when this is set, the other fields will be largely empty
708
+ *
709
+ * @generated from field: string alternative_url = 7;
710
+ */
711
+ alternativeUrl: string;
712
+
713
+ /**
714
+ * @generated from field: livekit.ClientConfiguration client_configuration = 8;
715
+ */
716
+ clientConfiguration?: ClientConfiguration;
717
+
718
+ /**
719
+ * deprecated. use server_info.region instead.
720
+ *
721
+ * @generated from field: string server_region = 9;
722
+ */
723
+ serverRegion: string;
724
+
725
+ /**
726
+ * @generated from field: int32 ping_timeout = 10;
727
+ */
728
+ pingTimeout: number;
729
+
730
+ /**
731
+ * @generated from field: int32 ping_interval = 11;
732
+ */
733
+ pingInterval: number;
734
+
735
+ /**
736
+ * @generated from field: livekit.ServerInfo server_info = 12;
737
+ */
738
+ serverInfo?: ServerInfo;
739
+
740
+ /**
741
+ * Server-Injected-Frame byte trailer, used to identify unencrypted frames when e2ee is enabled
742
+ *
743
+ * @generated from field: bytes sif_trailer = 13;
744
+ */
745
+ sifTrailer: Uint8Array;
746
+
747
+ /**
748
+ * @generated from field: repeated livekit.Codec enabled_publish_codecs = 14;
749
+ */
750
+ enabledPublishCodecs: Codec[];
751
+
752
+ /**
753
+ * when set, client should attempt to establish publish peer connection when joining room to speed up publishing
754
+ *
755
+ * @generated from field: bool fast_publish = 15;
756
+ */
757
+ fastPublish: boolean;
758
+
759
+ /**
760
+ * temptalk integration
761
+ *
762
+ * @generated from field: optional livekit.TTCallResponse tt_call_response = 1001;
763
+ */
764
+ ttCallResponse?: TTCallResponse;
765
+
766
+ constructor(data?: PartialMessage<JoinResponse>);
767
+
768
+ static readonly runtime: typeof proto3;
769
+ static readonly typeName = "livekit.JoinResponse";
770
+ static readonly fields: FieldList;
771
+
772
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): JoinResponse;
773
+
774
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): JoinResponse;
775
+
776
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): JoinResponse;
777
+
778
+ static equals(a: JoinResponse | PlainMessage<JoinResponse> | undefined, b: JoinResponse | PlainMessage<JoinResponse> | undefined): boolean;
779
+ }
780
+
781
+ /**
782
+ * @generated from message livekit.ReconnectResponse
783
+ */
784
+ export declare class ReconnectResponse extends Message<ReconnectResponse> {
785
+ /**
786
+ * @generated from field: repeated livekit.ICEServer ice_servers = 1;
787
+ */
788
+ iceServers: ICEServer[];
789
+
790
+ /**
791
+ * @generated from field: livekit.ClientConfiguration client_configuration = 2;
792
+ */
793
+ clientConfiguration?: ClientConfiguration;
794
+
795
+ /**
796
+ * @generated from field: livekit.ServerInfo server_info = 3;
797
+ */
798
+ serverInfo?: ServerInfo;
799
+
800
+ /**
801
+ * last sequence number of reliable message received before resuming
802
+ *
803
+ * @generated from field: uint32 last_message_seq = 4;
804
+ */
805
+ lastMessageSeq: number;
806
+
807
+ constructor(data?: PartialMessage<ReconnectResponse>);
808
+
809
+ static readonly runtime: typeof proto3;
810
+ static readonly typeName = "livekit.ReconnectResponse";
811
+ static readonly fields: FieldList;
812
+
813
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ReconnectResponse;
814
+
815
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ReconnectResponse;
816
+
817
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ReconnectResponse;
818
+
819
+ static equals(a: ReconnectResponse | PlainMessage<ReconnectResponse> | undefined, b: ReconnectResponse | PlainMessage<ReconnectResponse> | undefined): boolean;
820
+ }
821
+
822
+ /**
823
+ * @generated from message livekit.TrackPublishedResponse
824
+ */
825
+ export declare class TrackPublishedResponse extends Message<TrackPublishedResponse> {
826
+ /**
827
+ * @generated from field: string cid = 1;
828
+ */
829
+ cid: string;
830
+
831
+ /**
832
+ * @generated from field: livekit.TrackInfo track = 2;
833
+ */
834
+ track?: TrackInfo;
835
+
836
+ constructor(data?: PartialMessage<TrackPublishedResponse>);
837
+
838
+ static readonly runtime: typeof proto3;
839
+ static readonly typeName = "livekit.TrackPublishedResponse";
840
+ static readonly fields: FieldList;
841
+
842
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): TrackPublishedResponse;
843
+
844
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): TrackPublishedResponse;
845
+
846
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): TrackPublishedResponse;
847
+
848
+ static equals(a: TrackPublishedResponse | PlainMessage<TrackPublishedResponse> | undefined, b: TrackPublishedResponse | PlainMessage<TrackPublishedResponse> | undefined): boolean;
849
+ }
850
+
851
+ /**
852
+ * @generated from message livekit.TrackUnpublishedResponse
853
+ */
854
+ export declare class TrackUnpublishedResponse extends Message<TrackUnpublishedResponse> {
855
+ /**
856
+ * @generated from field: string track_sid = 1;
857
+ */
858
+ trackSid: string;
859
+
860
+ constructor(data?: PartialMessage<TrackUnpublishedResponse>);
861
+
862
+ static readonly runtime: typeof proto3;
863
+ static readonly typeName = "livekit.TrackUnpublishedResponse";
864
+ static readonly fields: FieldList;
865
+
866
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): TrackUnpublishedResponse;
867
+
868
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): TrackUnpublishedResponse;
869
+
870
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): TrackUnpublishedResponse;
871
+
872
+ static equals(a: TrackUnpublishedResponse | PlainMessage<TrackUnpublishedResponse> | undefined, b: TrackUnpublishedResponse | PlainMessage<TrackUnpublishedResponse> | undefined): boolean;
873
+ }
874
+
875
+ /**
876
+ * @generated from message livekit.SessionDescription
877
+ */
878
+ export declare class SessionDescription extends Message<SessionDescription> {
879
+ /**
880
+ * "answer" | "offer" | "pranswer" | "rollback"
881
+ *
882
+ * @generated from field: string type = 1;
883
+ */
884
+ type: string;
885
+
886
+ /**
887
+ * @generated from field: string sdp = 2;
888
+ */
889
+ sdp: string;
890
+
891
+ /**
892
+ * @generated from field: uint32 id = 3;
893
+ */
894
+ id: number;
895
+
896
+ constructor(data?: PartialMessage<SessionDescription>);
897
+
898
+ static readonly runtime: typeof proto3;
899
+ static readonly typeName = "livekit.SessionDescription";
900
+ static readonly fields: FieldList;
901
+
902
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SessionDescription;
903
+
904
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SessionDescription;
905
+
906
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SessionDescription;
907
+
908
+ static equals(a: SessionDescription | PlainMessage<SessionDescription> | undefined, b: SessionDescription | PlainMessage<SessionDescription> | undefined): boolean;
909
+ }
910
+
911
+ /**
912
+ * @generated from message livekit.ParticipantUpdate
913
+ */
914
+ export declare class ParticipantUpdate extends Message<ParticipantUpdate> {
915
+ /**
916
+ * @generated from field: repeated livekit.ParticipantInfo participants = 1;
917
+ */
918
+ participants: ParticipantInfo[];
919
+
920
+ constructor(data?: PartialMessage<ParticipantUpdate>);
921
+
922
+ static readonly runtime: typeof proto3;
923
+ static readonly typeName = "livekit.ParticipantUpdate";
924
+ static readonly fields: FieldList;
925
+
926
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ParticipantUpdate;
927
+
928
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ParticipantUpdate;
929
+
930
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ParticipantUpdate;
931
+
932
+ static equals(a: ParticipantUpdate | PlainMessage<ParticipantUpdate> | undefined, b: ParticipantUpdate | PlainMessage<ParticipantUpdate> | undefined): boolean;
933
+ }
934
+
935
+ /**
936
+ * @generated from message livekit.UpdateSubscription
937
+ */
938
+ export declare class UpdateSubscription extends Message<UpdateSubscription> {
939
+ /**
940
+ * @generated from field: repeated string track_sids = 1;
941
+ */
942
+ trackSids: string[];
943
+
944
+ /**
945
+ * @generated from field: bool subscribe = 2;
946
+ */
947
+ subscribe: boolean;
948
+
949
+ /**
950
+ * @generated from field: repeated livekit.ParticipantTracks participant_tracks = 3;
951
+ */
952
+ participantTracks: ParticipantTracks[];
953
+
954
+ constructor(data?: PartialMessage<UpdateSubscription>);
955
+
956
+ static readonly runtime: typeof proto3;
957
+ static readonly typeName = "livekit.UpdateSubscription";
958
+ static readonly fields: FieldList;
959
+
960
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): UpdateSubscription;
961
+
962
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): UpdateSubscription;
963
+
964
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): UpdateSubscription;
965
+
966
+ static equals(a: UpdateSubscription | PlainMessage<UpdateSubscription> | undefined, b: UpdateSubscription | PlainMessage<UpdateSubscription> | undefined): boolean;
967
+ }
968
+
969
+ /**
970
+ * @generated from message livekit.UpdateTrackSettings
971
+ */
972
+ export declare class UpdateTrackSettings extends Message<UpdateTrackSettings> {
973
+ /**
974
+ * @generated from field: repeated string track_sids = 1;
975
+ */
976
+ trackSids: string[];
977
+
978
+ /**
979
+ * when true, the track is placed in a paused state, with no new data returned
980
+ *
981
+ * @generated from field: bool disabled = 3;
982
+ */
983
+ disabled: boolean;
984
+
985
+ /**
986
+ * deprecated in favor of width & height
987
+ *
988
+ * @generated from field: livekit.VideoQuality quality = 4;
989
+ */
990
+ quality: VideoQuality;
991
+
992
+ /**
993
+ * for video, width to receive
994
+ *
995
+ * @generated from field: uint32 width = 5;
996
+ */
997
+ width: number;
998
+
999
+ /**
1000
+ * for video, height to receive
1001
+ *
1002
+ * @generated from field: uint32 height = 6;
1003
+ */
1004
+ height: number;
1005
+
1006
+ /**
1007
+ * @generated from field: uint32 fps = 7;
1008
+ */
1009
+ fps: number;
1010
+
1011
+ /**
1012
+ * subscription priority. 1 being the highest (0 is unset)
1013
+ * when unset, server sill assign priority based on the order of subscription
1014
+ * server will use priority in the following ways:
1015
+ * 1. when subscribed tracks exceed per-participant subscription limit, server will
1016
+ * pause the lowest priority tracks
1017
+ * 2. when the network is congested, server will assign available bandwidth to
1018
+ * higher priority tracks first. lowest priority tracks can be paused
1019
+ *
1020
+ * @generated from field: uint32 priority = 8;
1021
+ */
1022
+ priority: number;
1023
+
1024
+ constructor(data?: PartialMessage<UpdateTrackSettings>);
1025
+
1026
+ static readonly runtime: typeof proto3;
1027
+ static readonly typeName = "livekit.UpdateTrackSettings";
1028
+ static readonly fields: FieldList;
1029
+
1030
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): UpdateTrackSettings;
1031
+
1032
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): UpdateTrackSettings;
1033
+
1034
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): UpdateTrackSettings;
1035
+
1036
+ static equals(a: UpdateTrackSettings | PlainMessage<UpdateTrackSettings> | undefined, b: UpdateTrackSettings | PlainMessage<UpdateTrackSettings> | undefined): boolean;
1037
+ }
1038
+
1039
+ /**
1040
+ * @generated from message livekit.UpdateLocalAudioTrack
1041
+ */
1042
+ export declare class UpdateLocalAudioTrack extends Message<UpdateLocalAudioTrack> {
1043
+ /**
1044
+ * @generated from field: string track_sid = 1;
1045
+ */
1046
+ trackSid: string;
1047
+
1048
+ /**
1049
+ * @generated from field: repeated livekit.AudioTrackFeature features = 2;
1050
+ */
1051
+ features: AudioTrackFeature[];
1052
+
1053
+ constructor(data?: PartialMessage<UpdateLocalAudioTrack>);
1054
+
1055
+ static readonly runtime: typeof proto3;
1056
+ static readonly typeName = "livekit.UpdateLocalAudioTrack";
1057
+ static readonly fields: FieldList;
1058
+
1059
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): UpdateLocalAudioTrack;
1060
+
1061
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): UpdateLocalAudioTrack;
1062
+
1063
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): UpdateLocalAudioTrack;
1064
+
1065
+ static equals(a: UpdateLocalAudioTrack | PlainMessage<UpdateLocalAudioTrack> | undefined, b: UpdateLocalAudioTrack | PlainMessage<UpdateLocalAudioTrack> | undefined): boolean;
1066
+ }
1067
+
1068
+ /**
1069
+ * @generated from message livekit.UpdateLocalVideoTrack
1070
+ */
1071
+ export declare class UpdateLocalVideoTrack extends Message<UpdateLocalVideoTrack> {
1072
+ /**
1073
+ * @generated from field: string track_sid = 1;
1074
+ */
1075
+ trackSid: string;
1076
+
1077
+ /**
1078
+ * @generated from field: uint32 width = 2;
1079
+ */
1080
+ width: number;
1081
+
1082
+ /**
1083
+ * @generated from field: uint32 height = 3;
1084
+ */
1085
+ height: number;
1086
+
1087
+ constructor(data?: PartialMessage<UpdateLocalVideoTrack>);
1088
+
1089
+ static readonly runtime: typeof proto3;
1090
+ static readonly typeName = "livekit.UpdateLocalVideoTrack";
1091
+ static readonly fields: FieldList;
1092
+
1093
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): UpdateLocalVideoTrack;
1094
+
1095
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): UpdateLocalVideoTrack;
1096
+
1097
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): UpdateLocalVideoTrack;
1098
+
1099
+ static equals(a: UpdateLocalVideoTrack | PlainMessage<UpdateLocalVideoTrack> | undefined, b: UpdateLocalVideoTrack | PlainMessage<UpdateLocalVideoTrack> | undefined): boolean;
1100
+ }
1101
+
1102
+ /**
1103
+ * @generated from message livekit.LeaveRequest
1104
+ */
1105
+ export declare class LeaveRequest extends Message<LeaveRequest> {
1106
+ /**
1107
+ * sent when server initiates the disconnect due to server-restart
1108
+ * indicates clients should attempt full-reconnect sequence
1109
+ * NOTE: `can_reconnect` obsoleted by `action` starting in protocol version 13
1110
+ *
1111
+ * @generated from field: bool can_reconnect = 1;
1112
+ */
1113
+ canReconnect: boolean;
1114
+
1115
+ /**
1116
+ * @generated from field: livekit.DisconnectReason reason = 2;
1117
+ */
1118
+ reason: DisconnectReason;
1119
+
1120
+ /**
1121
+ * @generated from field: livekit.LeaveRequest.Action action = 3;
1122
+ */
1123
+ action: LeaveRequest_Action;
1124
+
1125
+ /**
1126
+ * @generated from field: livekit.RegionSettings regions = 4;
1127
+ */
1128
+ regions?: RegionSettings;
1129
+
1130
+ constructor(data?: PartialMessage<LeaveRequest>);
1131
+
1132
+ static readonly runtime: typeof proto3;
1133
+ static readonly typeName = "livekit.LeaveRequest";
1134
+ static readonly fields: FieldList;
1135
+
1136
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): LeaveRequest;
1137
+
1138
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): LeaveRequest;
1139
+
1140
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): LeaveRequest;
1141
+
1142
+ static equals(a: LeaveRequest | PlainMessage<LeaveRequest> | undefined, b: LeaveRequest | PlainMessage<LeaveRequest> | undefined): boolean;
1143
+ }
1144
+
1145
+ /**
1146
+ * indicates action clients should take on receiving this message
1147
+ *
1148
+ * @generated from enum livekit.LeaveRequest.Action
1149
+ */
1150
+ export declare enum LeaveRequest_Action {
1151
+ /**
1152
+ * should disconnect
1153
+ *
1154
+ * @generated from enum value: DISCONNECT = 0;
1155
+ */
1156
+ DISCONNECT = 0,
1157
+
1158
+ /**
1159
+ * should attempt a resume with `reconnect=1` in join URL
1160
+ *
1161
+ * @generated from enum value: RESUME = 1;
1162
+ */
1163
+ RESUME = 1,
1164
+
1165
+ /**
1166
+ * should attempt a reconnect, i. e. no `reconnect=1`
1167
+ *
1168
+ * @generated from enum value: RECONNECT = 2;
1169
+ */
1170
+ RECONNECT = 2,
1171
+ }
1172
+
1173
+ /**
1174
+ * message to indicate published video track dimensions are changing
1175
+ *
1176
+ * @generated from message livekit.UpdateVideoLayers
1177
+ * @deprecated
1178
+ */
1179
+ export declare class UpdateVideoLayers extends Message<UpdateVideoLayers> {
1180
+ /**
1181
+ * @generated from field: string track_sid = 1;
1182
+ */
1183
+ trackSid: string;
1184
+
1185
+ /**
1186
+ * @generated from field: repeated livekit.VideoLayer layers = 2;
1187
+ */
1188
+ layers: VideoLayer[];
1189
+
1190
+ constructor(data?: PartialMessage<UpdateVideoLayers>);
1191
+
1192
+ static readonly runtime: typeof proto3;
1193
+ static readonly typeName = "livekit.UpdateVideoLayers";
1194
+ static readonly fields: FieldList;
1195
+
1196
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): UpdateVideoLayers;
1197
+
1198
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): UpdateVideoLayers;
1199
+
1200
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): UpdateVideoLayers;
1201
+
1202
+ static equals(a: UpdateVideoLayers | PlainMessage<UpdateVideoLayers> | undefined, b: UpdateVideoLayers | PlainMessage<UpdateVideoLayers> | undefined): boolean;
1203
+ }
1204
+
1205
+ /**
1206
+ * @generated from message livekit.UpdateParticipantMetadata
1207
+ */
1208
+ export declare class UpdateParticipantMetadata extends Message<UpdateParticipantMetadata> {
1209
+ /**
1210
+ * @generated from field: string metadata = 1;
1211
+ */
1212
+ metadata: string;
1213
+
1214
+ /**
1215
+ * @generated from field: string name = 2;
1216
+ */
1217
+ name: string;
1218
+
1219
+ /**
1220
+ * attributes to update. it only updates attributes that have been set
1221
+ * to delete attributes, set the value to an empty string
1222
+ *
1223
+ * @generated from field: map<string, string> attributes = 3;
1224
+ */
1225
+ attributes: { [key: string]: string };
1226
+
1227
+ /**
1228
+ * @generated from field: uint32 request_id = 4;
1229
+ */
1230
+ requestId: number;
1231
+
1232
+ constructor(data?: PartialMessage<UpdateParticipantMetadata>);
1233
+
1234
+ static readonly runtime: typeof proto3;
1235
+ static readonly typeName = "livekit.UpdateParticipantMetadata";
1236
+ static readonly fields: FieldList;
1237
+
1238
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): UpdateParticipantMetadata;
1239
+
1240
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): UpdateParticipantMetadata;
1241
+
1242
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): UpdateParticipantMetadata;
1243
+
1244
+ static equals(a: UpdateParticipantMetadata | PlainMessage<UpdateParticipantMetadata> | undefined, b: UpdateParticipantMetadata | PlainMessage<UpdateParticipantMetadata> | undefined): boolean;
1245
+ }
1246
+
1247
+ /**
1248
+ * @generated from message livekit.ICEServer
1249
+ */
1250
+ export declare class ICEServer extends Message<ICEServer> {
1251
+ /**
1252
+ * @generated from field: repeated string urls = 1;
1253
+ */
1254
+ urls: string[];
1255
+
1256
+ /**
1257
+ * @generated from field: string username = 2;
1258
+ */
1259
+ username: string;
1260
+
1261
+ /**
1262
+ * @generated from field: string credential = 3;
1263
+ */
1264
+ credential: string;
1265
+
1266
+ constructor(data?: PartialMessage<ICEServer>);
1267
+
1268
+ static readonly runtime: typeof proto3;
1269
+ static readonly typeName = "livekit.ICEServer";
1270
+ static readonly fields: FieldList;
1271
+
1272
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ICEServer;
1273
+
1274
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ICEServer;
1275
+
1276
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ICEServer;
1277
+
1278
+ static equals(a: ICEServer | PlainMessage<ICEServer> | undefined, b: ICEServer | PlainMessage<ICEServer> | undefined): boolean;
1279
+ }
1280
+
1281
+ /**
1282
+ * @generated from message livekit.SpeakersChanged
1283
+ */
1284
+ export declare class SpeakersChanged extends Message<SpeakersChanged> {
1285
+ /**
1286
+ * @generated from field: repeated livekit.SpeakerInfo speakers = 1;
1287
+ */
1288
+ speakers: SpeakerInfo[];
1289
+
1290
+ constructor(data?: PartialMessage<SpeakersChanged>);
1291
+
1292
+ static readonly runtime: typeof proto3;
1293
+ static readonly typeName = "livekit.SpeakersChanged";
1294
+ static readonly fields: FieldList;
1295
+
1296
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SpeakersChanged;
1297
+
1298
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SpeakersChanged;
1299
+
1300
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SpeakersChanged;
1301
+
1302
+ static equals(a: SpeakersChanged | PlainMessage<SpeakersChanged> | undefined, b: SpeakersChanged | PlainMessage<SpeakersChanged> | undefined): boolean;
1303
+ }
1304
+
1305
+ /**
1306
+ * @generated from message livekit.RoomUpdate
1307
+ */
1308
+ export declare class RoomUpdate extends Message<RoomUpdate> {
1309
+ /**
1310
+ * @generated from field: livekit.Room room = 1;
1311
+ */
1312
+ room?: Room;
1313
+
1314
+ constructor(data?: PartialMessage<RoomUpdate>);
1315
+
1316
+ static readonly runtime: typeof proto3;
1317
+ static readonly typeName = "livekit.RoomUpdate";
1318
+ static readonly fields: FieldList;
1319
+
1320
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): RoomUpdate;
1321
+
1322
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): RoomUpdate;
1323
+
1324
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): RoomUpdate;
1325
+
1326
+ static equals(a: RoomUpdate | PlainMessage<RoomUpdate> | undefined, b: RoomUpdate | PlainMessage<RoomUpdate> | undefined): boolean;
1327
+ }
1328
+
1329
+ /**
1330
+ * @generated from message livekit.ConnectionQualityInfo
1331
+ */
1332
+ export declare class ConnectionQualityInfo extends Message<ConnectionQualityInfo> {
1333
+ /**
1334
+ * @generated from field: string participant_sid = 1;
1335
+ */
1336
+ participantSid: string;
1337
+
1338
+ /**
1339
+ * @generated from field: livekit.ConnectionQuality quality = 2;
1340
+ */
1341
+ quality: ConnectionQuality;
1342
+
1343
+ /**
1344
+ * @generated from field: float score = 3;
1345
+ */
1346
+ score: number;
1347
+
1348
+ constructor(data?: PartialMessage<ConnectionQualityInfo>);
1349
+
1350
+ static readonly runtime: typeof proto3;
1351
+ static readonly typeName = "livekit.ConnectionQualityInfo";
1352
+ static readonly fields: FieldList;
1353
+
1354
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ConnectionQualityInfo;
1355
+
1356
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ConnectionQualityInfo;
1357
+
1358
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ConnectionQualityInfo;
1359
+
1360
+ static equals(a: ConnectionQualityInfo | PlainMessage<ConnectionQualityInfo> | undefined, b: ConnectionQualityInfo | PlainMessage<ConnectionQualityInfo> | undefined): boolean;
1361
+ }
1362
+
1363
+ /**
1364
+ * @generated from message livekit.ConnectionQualityUpdate
1365
+ */
1366
+ export declare class ConnectionQualityUpdate extends Message<ConnectionQualityUpdate> {
1367
+ /**
1368
+ * @generated from field: repeated livekit.ConnectionQualityInfo updates = 1;
1369
+ */
1370
+ updates: ConnectionQualityInfo[];
1371
+
1372
+ constructor(data?: PartialMessage<ConnectionQualityUpdate>);
1373
+
1374
+ static readonly runtime: typeof proto3;
1375
+ static readonly typeName = "livekit.ConnectionQualityUpdate";
1376
+ static readonly fields: FieldList;
1377
+
1378
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ConnectionQualityUpdate;
1379
+
1380
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ConnectionQualityUpdate;
1381
+
1382
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ConnectionQualityUpdate;
1383
+
1384
+ static equals(a: ConnectionQualityUpdate | PlainMessage<ConnectionQualityUpdate> | undefined, b: ConnectionQualityUpdate | PlainMessage<ConnectionQualityUpdate> | undefined): boolean;
1385
+ }
1386
+
1387
+ /**
1388
+ * @generated from message livekit.StreamStateInfo
1389
+ */
1390
+ export declare class StreamStateInfo extends Message<StreamStateInfo> {
1391
+ /**
1392
+ * @generated from field: string participant_sid = 1;
1393
+ */
1394
+ participantSid: string;
1395
+
1396
+ /**
1397
+ * @generated from field: string track_sid = 2;
1398
+ */
1399
+ trackSid: string;
1400
+
1401
+ /**
1402
+ * @generated from field: livekit.StreamState state = 3;
1403
+ */
1404
+ state: StreamState;
1405
+
1406
+ constructor(data?: PartialMessage<StreamStateInfo>);
1407
+
1408
+ static readonly runtime: typeof proto3;
1409
+ static readonly typeName = "livekit.StreamStateInfo";
1410
+ static readonly fields: FieldList;
1411
+
1412
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): StreamStateInfo;
1413
+
1414
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): StreamStateInfo;
1415
+
1416
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): StreamStateInfo;
1417
+
1418
+ static equals(a: StreamStateInfo | PlainMessage<StreamStateInfo> | undefined, b: StreamStateInfo | PlainMessage<StreamStateInfo> | undefined): boolean;
1419
+ }
1420
+
1421
+ /**
1422
+ * @generated from message livekit.StreamStateUpdate
1423
+ */
1424
+ export declare class StreamStateUpdate extends Message<StreamStateUpdate> {
1425
+ /**
1426
+ * @generated from field: repeated livekit.StreamStateInfo stream_states = 1;
1427
+ */
1428
+ streamStates: StreamStateInfo[];
1429
+
1430
+ constructor(data?: PartialMessage<StreamStateUpdate>);
1431
+
1432
+ static readonly runtime: typeof proto3;
1433
+ static readonly typeName = "livekit.StreamStateUpdate";
1434
+ static readonly fields: FieldList;
1435
+
1436
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): StreamStateUpdate;
1437
+
1438
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): StreamStateUpdate;
1439
+
1440
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): StreamStateUpdate;
1441
+
1442
+ static equals(a: StreamStateUpdate | PlainMessage<StreamStateUpdate> | undefined, b: StreamStateUpdate | PlainMessage<StreamStateUpdate> | undefined): boolean;
1443
+ }
1444
+
1445
+ /**
1446
+ * @generated from message livekit.SubscribedQuality
1447
+ */
1448
+ export declare class SubscribedQuality extends Message<SubscribedQuality> {
1449
+ /**
1450
+ * @generated from field: livekit.VideoQuality quality = 1;
1451
+ */
1452
+ quality: VideoQuality;
1453
+
1454
+ /**
1455
+ * @generated from field: bool enabled = 2;
1456
+ */
1457
+ enabled: boolean;
1458
+
1459
+ constructor(data?: PartialMessage<SubscribedQuality>);
1460
+
1461
+ static readonly runtime: typeof proto3;
1462
+ static readonly typeName = "livekit.SubscribedQuality";
1463
+ static readonly fields: FieldList;
1464
+
1465
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SubscribedQuality;
1466
+
1467
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SubscribedQuality;
1468
+
1469
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SubscribedQuality;
1470
+
1471
+ static equals(a: SubscribedQuality | PlainMessage<SubscribedQuality> | undefined, b: SubscribedQuality | PlainMessage<SubscribedQuality> | undefined): boolean;
1472
+ }
1473
+
1474
+ /**
1475
+ * @generated from message livekit.SubscribedCodec
1476
+ */
1477
+ export declare class SubscribedCodec extends Message<SubscribedCodec> {
1478
+ /**
1479
+ * @generated from field: string codec = 1;
1480
+ */
1481
+ codec: string;
1482
+
1483
+ /**
1484
+ * @generated from field: repeated livekit.SubscribedQuality qualities = 2;
1485
+ */
1486
+ qualities: SubscribedQuality[];
1487
+
1488
+ constructor(data?: PartialMessage<SubscribedCodec>);
1489
+
1490
+ static readonly runtime: typeof proto3;
1491
+ static readonly typeName = "livekit.SubscribedCodec";
1492
+ static readonly fields: FieldList;
1493
+
1494
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SubscribedCodec;
1495
+
1496
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SubscribedCodec;
1497
+
1498
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SubscribedCodec;
1499
+
1500
+ static equals(a: SubscribedCodec | PlainMessage<SubscribedCodec> | undefined, b: SubscribedCodec | PlainMessage<SubscribedCodec> | undefined): boolean;
1501
+ }
1502
+
1503
+ /**
1504
+ * @generated from message livekit.SubscribedQualityUpdate
1505
+ */
1506
+ export declare class SubscribedQualityUpdate extends Message<SubscribedQualityUpdate> {
1507
+ /**
1508
+ * @generated from field: string track_sid = 1;
1509
+ */
1510
+ trackSid: string;
1511
+
1512
+ /**
1513
+ * @generated from field: repeated livekit.SubscribedQuality subscribed_qualities = 2 [deprecated = true];
1514
+ * @deprecated
1515
+ */
1516
+ subscribedQualities: SubscribedQuality[];
1517
+
1518
+ /**
1519
+ * @generated from field: repeated livekit.SubscribedCodec subscribed_codecs = 3;
1520
+ */
1521
+ subscribedCodecs: SubscribedCodec[];
1522
+
1523
+ constructor(data?: PartialMessage<SubscribedQualityUpdate>);
1524
+
1525
+ static readonly runtime: typeof proto3;
1526
+ static readonly typeName = "livekit.SubscribedQualityUpdate";
1527
+ static readonly fields: FieldList;
1528
+
1529
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SubscribedQualityUpdate;
1530
+
1531
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SubscribedQualityUpdate;
1532
+
1533
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SubscribedQualityUpdate;
1534
+
1535
+ static equals(a: SubscribedQualityUpdate | PlainMessage<SubscribedQualityUpdate> | undefined, b: SubscribedQualityUpdate | PlainMessage<SubscribedQualityUpdate> | undefined): boolean;
1536
+ }
1537
+
1538
+ /**
1539
+ * @generated from message livekit.TrackPermission
1540
+ */
1541
+ export declare class TrackPermission extends Message<TrackPermission> {
1542
+ /**
1543
+ * permission could be granted either by participant sid or identity
1544
+ *
1545
+ * @generated from field: string participant_sid = 1;
1546
+ */
1547
+ participantSid: string;
1548
+
1549
+ /**
1550
+ * @generated from field: bool all_tracks = 2;
1551
+ */
1552
+ allTracks: boolean;
1553
+
1554
+ /**
1555
+ * @generated from field: repeated string track_sids = 3;
1556
+ */
1557
+ trackSids: string[];
1558
+
1559
+ /**
1560
+ * @generated from field: string participant_identity = 4;
1561
+ */
1562
+ participantIdentity: string;
1563
+
1564
+ constructor(data?: PartialMessage<TrackPermission>);
1565
+
1566
+ static readonly runtime: typeof proto3;
1567
+ static readonly typeName = "livekit.TrackPermission";
1568
+ static readonly fields: FieldList;
1569
+
1570
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): TrackPermission;
1571
+
1572
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): TrackPermission;
1573
+
1574
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): TrackPermission;
1575
+
1576
+ static equals(a: TrackPermission | PlainMessage<TrackPermission> | undefined, b: TrackPermission | PlainMessage<TrackPermission> | undefined): boolean;
1577
+ }
1578
+
1579
+ /**
1580
+ * @generated from message livekit.SubscriptionPermission
1581
+ */
1582
+ export declare class SubscriptionPermission extends Message<SubscriptionPermission> {
1583
+ /**
1584
+ * @generated from field: bool all_participants = 1;
1585
+ */
1586
+ allParticipants: boolean;
1587
+
1588
+ /**
1589
+ * @generated from field: repeated livekit.TrackPermission track_permissions = 2;
1590
+ */
1591
+ trackPermissions: TrackPermission[];
1592
+
1593
+ constructor(data?: PartialMessage<SubscriptionPermission>);
1594
+
1595
+ static readonly runtime: typeof proto3;
1596
+ static readonly typeName = "livekit.SubscriptionPermission";
1597
+ static readonly fields: FieldList;
1598
+
1599
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SubscriptionPermission;
1600
+
1601
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SubscriptionPermission;
1602
+
1603
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SubscriptionPermission;
1604
+
1605
+ static equals(a: SubscriptionPermission | PlainMessage<SubscriptionPermission> | undefined, b: SubscriptionPermission | PlainMessage<SubscriptionPermission> | undefined): boolean;
1606
+ }
1607
+
1608
+ /**
1609
+ * @generated from message livekit.SubscriptionPermissionUpdate
1610
+ */
1611
+ export declare class SubscriptionPermissionUpdate extends Message<SubscriptionPermissionUpdate> {
1612
+ /**
1613
+ * @generated from field: string participant_sid = 1;
1614
+ */
1615
+ participantSid: string;
1616
+
1617
+ /**
1618
+ * @generated from field: string track_sid = 2;
1619
+ */
1620
+ trackSid: string;
1621
+
1622
+ /**
1623
+ * @generated from field: bool allowed = 3;
1624
+ */
1625
+ allowed: boolean;
1626
+
1627
+ constructor(data?: PartialMessage<SubscriptionPermissionUpdate>);
1628
+
1629
+ static readonly runtime: typeof proto3;
1630
+ static readonly typeName = "livekit.SubscriptionPermissionUpdate";
1631
+ static readonly fields: FieldList;
1632
+
1633
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SubscriptionPermissionUpdate;
1634
+
1635
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SubscriptionPermissionUpdate;
1636
+
1637
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SubscriptionPermissionUpdate;
1638
+
1639
+ static equals(a: SubscriptionPermissionUpdate | PlainMessage<SubscriptionPermissionUpdate> | undefined, b: SubscriptionPermissionUpdate | PlainMessage<SubscriptionPermissionUpdate> | undefined): boolean;
1640
+ }
1641
+
1642
+ /**
1643
+ * @generated from message livekit.RoomMovedResponse
1644
+ */
1645
+ export declare class RoomMovedResponse extends Message<RoomMovedResponse> {
1646
+ /**
1647
+ * information about the new room
1648
+ *
1649
+ * @generated from field: livekit.Room room = 1;
1650
+ */
1651
+ room?: Room;
1652
+
1653
+ /**
1654
+ * new reconnect token that can be used to reconnect to the new room
1655
+ *
1656
+ * @generated from field: string token = 2;
1657
+ */
1658
+ token: string;
1659
+
1660
+ /**
1661
+ * @generated from field: livekit.ParticipantInfo participant = 3;
1662
+ */
1663
+ participant?: ParticipantInfo;
1664
+
1665
+ /**
1666
+ * @generated from field: repeated livekit.ParticipantInfo other_participants = 4;
1667
+ */
1668
+ otherParticipants: ParticipantInfo[];
1669
+
1670
+ constructor(data?: PartialMessage<RoomMovedResponse>);
1671
+
1672
+ static readonly runtime: typeof proto3;
1673
+ static readonly typeName = "livekit.RoomMovedResponse";
1674
+ static readonly fields: FieldList;
1675
+
1676
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): RoomMovedResponse;
1677
+
1678
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): RoomMovedResponse;
1679
+
1680
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): RoomMovedResponse;
1681
+
1682
+ static equals(a: RoomMovedResponse | PlainMessage<RoomMovedResponse> | undefined, b: RoomMovedResponse | PlainMessage<RoomMovedResponse> | undefined): boolean;
1683
+ }
1684
+
1685
+ /**
1686
+ * @generated from message livekit.SyncState
1687
+ */
1688
+ export declare class SyncState extends Message<SyncState> {
1689
+ /**
1690
+ * last subscribe answer before reconnecting
1691
+ *
1692
+ * @generated from field: livekit.SessionDescription answer = 1;
1693
+ */
1694
+ answer?: SessionDescription;
1695
+
1696
+ /**
1697
+ * @generated from field: livekit.UpdateSubscription subscription = 2;
1698
+ */
1699
+ subscription?: UpdateSubscription;
1700
+
1701
+ /**
1702
+ * @generated from field: repeated livekit.TrackPublishedResponse publish_tracks = 3;
1703
+ */
1704
+ publishTracks: TrackPublishedResponse[];
1705
+
1706
+ /**
1707
+ * @generated from field: repeated livekit.DataChannelInfo data_channels = 4;
1708
+ */
1709
+ dataChannels: DataChannelInfo[];
1710
+
1711
+ /**
1712
+ * last received server side offer before reconnecting
1713
+ *
1714
+ * @generated from field: livekit.SessionDescription offer = 5;
1715
+ */
1716
+ offer?: SessionDescription;
1717
+
1718
+ /**
1719
+ * @generated from field: repeated string track_sids_disabled = 6;
1720
+ */
1721
+ trackSidsDisabled: string[];
1722
+
1723
+ /**
1724
+ * @generated from field: repeated livekit.DataChannelReceiveState datachannel_receive_states = 7;
1725
+ */
1726
+ datachannelReceiveStates: DataChannelReceiveState[];
1727
+
1728
+ constructor(data?: PartialMessage<SyncState>);
1729
+
1730
+ static readonly runtime: typeof proto3;
1731
+ static readonly typeName = "livekit.SyncState";
1732
+ static readonly fields: FieldList;
1733
+
1734
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SyncState;
1735
+
1736
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SyncState;
1737
+
1738
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SyncState;
1739
+
1740
+ static equals(a: SyncState | PlainMessage<SyncState> | undefined, b: SyncState | PlainMessage<SyncState> | undefined): boolean;
1741
+ }
1742
+
1743
+ /**
1744
+ * @generated from message livekit.DataChannelReceiveState
1745
+ */
1746
+ export declare class DataChannelReceiveState extends Message<DataChannelReceiveState> {
1747
+ /**
1748
+ * @generated from field: string publisher_sid = 1;
1749
+ */
1750
+ publisherSid: string;
1751
+
1752
+ /**
1753
+ * @generated from field: uint32 last_seq = 2;
1754
+ */
1755
+ lastSeq: number;
1756
+
1757
+ constructor(data?: PartialMessage<DataChannelReceiveState>);
1758
+
1759
+ static readonly runtime: typeof proto3;
1760
+ static readonly typeName = "livekit.DataChannelReceiveState";
1761
+ static readonly fields: FieldList;
1762
+
1763
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): DataChannelReceiveState;
1764
+
1765
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): DataChannelReceiveState;
1766
+
1767
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): DataChannelReceiveState;
1768
+
1769
+ static equals(a: DataChannelReceiveState | PlainMessage<DataChannelReceiveState> | undefined, b: DataChannelReceiveState | PlainMessage<DataChannelReceiveState> | undefined): boolean;
1770
+ }
1771
+
1772
+ /**
1773
+ * @generated from message livekit.DataChannelInfo
1774
+ */
1775
+ export declare class DataChannelInfo extends Message<DataChannelInfo> {
1776
+ /**
1777
+ * @generated from field: string label = 1;
1778
+ */
1779
+ label: string;
1780
+
1781
+ /**
1782
+ * @generated from field: uint32 id = 2;
1783
+ */
1784
+ id: number;
1785
+
1786
+ /**
1787
+ * @generated from field: livekit.SignalTarget target = 3;
1788
+ */
1789
+ target: SignalTarget;
1790
+
1791
+ constructor(data?: PartialMessage<DataChannelInfo>);
1792
+
1793
+ static readonly runtime: typeof proto3;
1794
+ static readonly typeName = "livekit.DataChannelInfo";
1795
+ static readonly fields: FieldList;
1796
+
1797
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): DataChannelInfo;
1798
+
1799
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): DataChannelInfo;
1800
+
1801
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): DataChannelInfo;
1802
+
1803
+ static equals(a: DataChannelInfo | PlainMessage<DataChannelInfo> | undefined, b: DataChannelInfo | PlainMessage<DataChannelInfo> | undefined): boolean;
1804
+ }
1805
+
1806
+ /**
1807
+ * @generated from message livekit.SimulateScenario
1808
+ */
1809
+ export declare class SimulateScenario extends Message<SimulateScenario> {
1810
+ /**
1811
+ * @generated from oneof livekit.SimulateScenario.scenario
1812
+ */
1813
+ scenario: {
1814
+ /**
1815
+ * simulate N seconds of speaker activity
1816
+ *
1817
+ * @generated from field: int32 speaker_update = 1;
1818
+ */
1819
+ value: number;
1820
+ case: "speakerUpdate";
1821
+ } | {
1822
+ /**
1823
+ * simulate local node failure
1824
+ *
1825
+ * @generated from field: bool node_failure = 2;
1826
+ */
1827
+ value: boolean;
1828
+ case: "nodeFailure";
1829
+ } | {
1830
+ /**
1831
+ * simulate migration
1832
+ *
1833
+ * @generated from field: bool migration = 3;
1834
+ */
1835
+ value: boolean;
1836
+ case: "migration";
1837
+ } | {
1838
+ /**
1839
+ * server to send leave
1840
+ *
1841
+ * @generated from field: bool server_leave = 4;
1842
+ */
1843
+ value: boolean;
1844
+ case: "serverLeave";
1845
+ } | {
1846
+ /**
1847
+ * switch candidate protocol to tcp
1848
+ *
1849
+ * @generated from field: livekit.CandidateProtocol switch_candidate_protocol = 5;
1850
+ */
1851
+ value: CandidateProtocol;
1852
+ case: "switchCandidateProtocol";
1853
+ } | {
1854
+ /**
1855
+ * maximum bandwidth for subscribers, in bps
1856
+ * when zero, clears artificial bandwidth limit
1857
+ *
1858
+ * @generated from field: int64 subscriber_bandwidth = 6;
1859
+ */
1860
+ value: bigint;
1861
+ case: "subscriberBandwidth";
1862
+ } | {
1863
+ /**
1864
+ * disconnect signal on resume
1865
+ *
1866
+ * @generated from field: bool disconnect_signal_on_resume = 7;
1867
+ */
1868
+ value: boolean;
1869
+ case: "disconnectSignalOnResume";
1870
+ } | {
1871
+ /**
1872
+ * disconnect signal on resume before sending any messages from server
1873
+ *
1874
+ * @generated from field: bool disconnect_signal_on_resume_no_messages = 8;
1875
+ */
1876
+ value: boolean;
1877
+ case: "disconnectSignalOnResumeNoMessages";
1878
+ } | {
1879
+ /**
1880
+ * full reconnect leave request
1881
+ *
1882
+ * @generated from field: bool leave_request_full_reconnect = 9;
1883
+ */
1884
+ value: boolean;
1885
+ case: "leaveRequestFullReconnect";
1886
+ } | { case: undefined; value?: undefined };
1887
+
1888
+ constructor(data?: PartialMessage<SimulateScenario>);
1889
+
1890
+ static readonly runtime: typeof proto3;
1891
+ static readonly typeName = "livekit.SimulateScenario";
1892
+ static readonly fields: FieldList;
1893
+
1894
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SimulateScenario;
1895
+
1896
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SimulateScenario;
1897
+
1898
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SimulateScenario;
1899
+
1900
+ static equals(a: SimulateScenario | PlainMessage<SimulateScenario> | undefined, b: SimulateScenario | PlainMessage<SimulateScenario> | undefined): boolean;
1901
+ }
1902
+
1903
+ /**
1904
+ * @generated from message livekit.Ping
1905
+ */
1906
+ export declare class Ping extends Message<Ping> {
1907
+ /**
1908
+ * @generated from field: int64 timestamp = 1;
1909
+ */
1910
+ timestamp: bigint;
1911
+
1912
+ /**
1913
+ * rtt in milliseconds calculated by client
1914
+ *
1915
+ * @generated from field: int64 rtt = 2;
1916
+ */
1917
+ rtt: bigint;
1918
+
1919
+ constructor(data?: PartialMessage<Ping>);
1920
+
1921
+ static readonly runtime: typeof proto3;
1922
+ static readonly typeName = "livekit.Ping";
1923
+ static readonly fields: FieldList;
1924
+
1925
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Ping;
1926
+
1927
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Ping;
1928
+
1929
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Ping;
1930
+
1931
+ static equals(a: Ping | PlainMessage<Ping> | undefined, b: Ping | PlainMessage<Ping> | undefined): boolean;
1932
+ }
1933
+
1934
+ /**
1935
+ * @generated from message livekit.Pong
1936
+ */
1937
+ export declare class Pong extends Message<Pong> {
1938
+ /**
1939
+ * timestamp field of last received ping request
1940
+ *
1941
+ * @generated from field: int64 last_ping_timestamp = 1;
1942
+ */
1943
+ lastPingTimestamp: bigint;
1944
+
1945
+ /**
1946
+ * @generated from field: int64 timestamp = 2;
1947
+ */
1948
+ timestamp: bigint;
1949
+
1950
+ constructor(data?: PartialMessage<Pong>);
1951
+
1952
+ static readonly runtime: typeof proto3;
1953
+ static readonly typeName = "livekit.Pong";
1954
+ static readonly fields: FieldList;
1955
+
1956
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Pong;
1957
+
1958
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Pong;
1959
+
1960
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Pong;
1961
+
1962
+ static equals(a: Pong | PlainMessage<Pong> | undefined, b: Pong | PlainMessage<Pong> | undefined): boolean;
1963
+ }
1964
+
1965
+ /**
1966
+ * @generated from message livekit.RegionSettings
1967
+ */
1968
+ export declare class RegionSettings extends Message<RegionSettings> {
1969
+ /**
1970
+ * @generated from field: repeated livekit.RegionInfo regions = 1;
1971
+ */
1972
+ regions: RegionInfo[];
1973
+
1974
+ constructor(data?: PartialMessage<RegionSettings>);
1975
+
1976
+ static readonly runtime: typeof proto3;
1977
+ static readonly typeName = "livekit.RegionSettings";
1978
+ static readonly fields: FieldList;
1979
+
1980
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): RegionSettings;
1981
+
1982
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): RegionSettings;
1983
+
1984
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): RegionSettings;
1985
+
1986
+ static equals(a: RegionSettings | PlainMessage<RegionSettings> | undefined, b: RegionSettings | PlainMessage<RegionSettings> | undefined): boolean;
1987
+ }
1988
+
1989
+ /**
1990
+ * @generated from message livekit.RegionInfo
1991
+ */
1992
+ export declare class RegionInfo extends Message<RegionInfo> {
1993
+ /**
1994
+ * @generated from field: string region = 1;
1995
+ */
1996
+ region: string;
1997
+
1998
+ /**
1999
+ * @generated from field: string url = 2;
2000
+ */
2001
+ url: string;
2002
+
2003
+ /**
2004
+ * @generated from field: int64 distance = 3;
2005
+ */
2006
+ distance: bigint;
2007
+
2008
+ constructor(data?: PartialMessage<RegionInfo>);
2009
+
2010
+ static readonly runtime: typeof proto3;
2011
+ static readonly typeName = "livekit.RegionInfo";
2012
+ static readonly fields: FieldList;
2013
+
2014
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): RegionInfo;
2015
+
2016
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): RegionInfo;
2017
+
2018
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): RegionInfo;
2019
+
2020
+ static equals(a: RegionInfo | PlainMessage<RegionInfo> | undefined, b: RegionInfo | PlainMessage<RegionInfo> | undefined): boolean;
2021
+ }
2022
+
2023
+ /**
2024
+ * @generated from message livekit.SubscriptionResponse
2025
+ */
2026
+ export declare class SubscriptionResponse extends Message<SubscriptionResponse> {
2027
+ /**
2028
+ * @generated from field: string track_sid = 1;
2029
+ */
2030
+ trackSid: string;
2031
+
2032
+ /**
2033
+ * @generated from field: livekit.SubscriptionError err = 2;
2034
+ */
2035
+ err: SubscriptionError;
2036
+
2037
+ constructor(data?: PartialMessage<SubscriptionResponse>);
2038
+
2039
+ static readonly runtime: typeof proto3;
2040
+ static readonly typeName = "livekit.SubscriptionResponse";
2041
+ static readonly fields: FieldList;
2042
+
2043
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SubscriptionResponse;
2044
+
2045
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SubscriptionResponse;
2046
+
2047
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SubscriptionResponse;
2048
+
2049
+ static equals(a: SubscriptionResponse | PlainMessage<SubscriptionResponse> | undefined, b: SubscriptionResponse | PlainMessage<SubscriptionResponse> | undefined): boolean;
2050
+ }
2051
+
2052
+ /**
2053
+ * @generated from message livekit.RequestResponse
2054
+ */
2055
+ export declare class RequestResponse extends Message<RequestResponse> {
2056
+ /**
2057
+ * @generated from field: uint32 request_id = 1;
2058
+ */
2059
+ requestId: number;
2060
+
2061
+ /**
2062
+ * @generated from field: livekit.RequestResponse.Reason reason = 2;
2063
+ */
2064
+ reason: RequestResponse_Reason;
2065
+
2066
+ /**
2067
+ * @generated from field: string message = 3;
2068
+ */
2069
+ message: string;
2070
+
2071
+ constructor(data?: PartialMessage<RequestResponse>);
2072
+
2073
+ static readonly runtime: typeof proto3;
2074
+ static readonly typeName = "livekit.RequestResponse";
2075
+ static readonly fields: FieldList;
2076
+
2077
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): RequestResponse;
2078
+
2079
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): RequestResponse;
2080
+
2081
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): RequestResponse;
2082
+
2083
+ static equals(a: RequestResponse | PlainMessage<RequestResponse> | undefined, b: RequestResponse | PlainMessage<RequestResponse> | undefined): boolean;
2084
+ }
2085
+
2086
+ /**
2087
+ * @generated from enum livekit.RequestResponse.Reason
2088
+ */
2089
+ export declare enum RequestResponse_Reason {
2090
+ /**
2091
+ * @generated from enum value: OK = 0;
2092
+ */
2093
+ OK = 0,
2094
+
2095
+ /**
2096
+ * @generated from enum value: NOT_FOUND = 1;
2097
+ */
2098
+ NOT_FOUND = 1,
2099
+
2100
+ /**
2101
+ * @generated from enum value: NOT_ALLOWED = 2;
2102
+ */
2103
+ NOT_ALLOWED = 2,
2104
+
2105
+ /**
2106
+ * @generated from enum value: LIMIT_EXCEEDED = 3;
2107
+ */
2108
+ LIMIT_EXCEEDED = 3,
2109
+ }
2110
+
2111
+ /**
2112
+ * @generated from message livekit.TrackSubscribed
2113
+ */
2114
+ export declare class TrackSubscribed extends Message<TrackSubscribed> {
2115
+ /**
2116
+ * @generated from field: string track_sid = 1;
2117
+ */
2118
+ trackSid: string;
2119
+
2120
+ constructor(data?: PartialMessage<TrackSubscribed>);
2121
+
2122
+ static readonly runtime: typeof proto3;
2123
+ static readonly typeName = "livekit.TrackSubscribed";
2124
+ static readonly fields: FieldList;
2125
+
2126
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): TrackSubscribed;
2127
+
2128
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): TrackSubscribed;
2129
+
2130
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): TrackSubscribed;
2131
+
2132
+ static equals(a: TrackSubscribed | PlainMessage<TrackSubscribed> | undefined, b: TrackSubscribed | PlainMessage<TrackSubscribed> | undefined): boolean;
2133
+ }
2134
+