livekit-client 2.0.5 → 2.0.7

Sign up to get free protection for your applications and to get access to all the features.
Files changed (93) hide show
  1. package/dist/livekit-client.esm.mjs +10343 -9885
  2. package/dist/livekit-client.esm.mjs.map +1 -1
  3. package/dist/livekit-client.umd.js +1 -1
  4. package/dist/livekit-client.umd.js.map +1 -1
  5. package/dist/src/api/SignalClient.d.ts +1 -2
  6. package/dist/src/api/SignalClient.d.ts.map +1 -1
  7. package/dist/src/e2ee/E2eeManager.d.ts.map +1 -1
  8. package/dist/src/index.d.ts +1 -1
  9. package/dist/src/index.d.ts.map +1 -1
  10. package/dist/src/room/PCTransportManager.d.ts +1 -1
  11. package/dist/src/room/PCTransportManager.d.ts.map +1 -1
  12. package/dist/src/room/RTCEngine.d.ts +1 -2
  13. package/dist/src/room/RTCEngine.d.ts.map +1 -1
  14. package/dist/src/room/RegionUrlProvider.d.ts +1 -1
  15. package/dist/src/room/RegionUrlProvider.d.ts.map +1 -1
  16. package/dist/src/room/Room.d.ts +1 -1
  17. package/dist/src/room/Room.d.ts.map +1 -1
  18. package/dist/src/room/participant/LocalParticipant.d.ts +1 -1
  19. package/dist/src/room/participant/LocalParticipant.d.ts.map +1 -1
  20. package/dist/src/room/participant/Participant.d.ts +1 -1
  21. package/dist/src/room/participant/Participant.d.ts.map +1 -1
  22. package/dist/src/room/participant/ParticipantTrackPermission.d.ts +1 -1
  23. package/dist/src/room/participant/ParticipantTrackPermission.d.ts.map +1 -1
  24. package/dist/src/room/participant/RemoteParticipant.d.ts +1 -1
  25. package/dist/src/room/participant/RemoteParticipant.d.ts.map +1 -1
  26. package/dist/src/room/track/LocalAudioTrack.d.ts.map +1 -1
  27. package/dist/src/room/track/LocalTrackPublication.d.ts +1 -1
  28. package/dist/src/room/track/LocalTrackPublication.d.ts.map +1 -1
  29. package/dist/src/room/track/LocalVideoTrack.d.ts +1 -2
  30. package/dist/src/room/track/LocalVideoTrack.d.ts.map +1 -1
  31. package/dist/src/room/track/RemoteAudioTrack.d.ts.map +1 -1
  32. package/dist/src/room/track/RemoteTrackPublication.d.ts +1 -1
  33. package/dist/src/room/track/RemoteTrackPublication.d.ts.map +1 -1
  34. package/dist/src/room/track/Track.d.ts +1 -2
  35. package/dist/src/room/track/Track.d.ts.map +1 -1
  36. package/dist/src/room/track/TrackPublication.d.ts +2 -3
  37. package/dist/src/room/track/TrackPublication.d.ts.map +1 -1
  38. package/dist/src/room/track/options.d.ts +6 -0
  39. package/dist/src/room/track/options.d.ts.map +1 -1
  40. package/dist/src/room/track/utils.d.ts +1 -1
  41. package/dist/src/room/track/utils.d.ts.map +1 -1
  42. package/dist/src/room/utils.d.ts +1 -1
  43. package/dist/src/room/utils.d.ts.map +1 -1
  44. package/dist/ts4.2/src/api/SignalClient.d.ts +1 -2
  45. package/dist/ts4.2/src/index.d.ts +1 -1
  46. package/dist/ts4.2/src/room/PCTransportManager.d.ts +1 -1
  47. package/dist/ts4.2/src/room/RTCEngine.d.ts +2 -3
  48. package/dist/ts4.2/src/room/RegionUrlProvider.d.ts +1 -1
  49. package/dist/ts4.2/src/room/Room.d.ts +1 -1
  50. package/dist/ts4.2/src/room/participant/LocalParticipant.d.ts +1 -1
  51. package/dist/ts4.2/src/room/participant/Participant.d.ts +1 -1
  52. package/dist/ts4.2/src/room/participant/ParticipantTrackPermission.d.ts +1 -1
  53. package/dist/ts4.2/src/room/participant/RemoteParticipant.d.ts +1 -1
  54. package/dist/ts4.2/src/room/track/LocalTrackPublication.d.ts +1 -1
  55. package/dist/ts4.2/src/room/track/LocalVideoTrack.d.ts +1 -2
  56. package/dist/ts4.2/src/room/track/RemoteTrackPublication.d.ts +1 -1
  57. package/dist/ts4.2/src/room/track/Track.d.ts +1 -2
  58. package/dist/ts4.2/src/room/track/TrackPublication.d.ts +2 -3
  59. package/dist/ts4.2/src/room/track/options.d.ts +6 -0
  60. package/dist/ts4.2/src/room/track/utils.d.ts +1 -1
  61. package/dist/ts4.2/src/room/utils.d.ts +1 -1
  62. package/package.json +2 -2
  63. package/src/api/SignalClient.ts +10 -12
  64. package/src/connectionHelper/checks/websocket.ts +1 -1
  65. package/src/e2ee/E2eeManager.ts +1 -1
  66. package/src/index.ts +1 -1
  67. package/src/room/PCTransportManager.ts +1 -1
  68. package/src/room/RTCEngine.ts +21 -23
  69. package/src/room/RegionUrlProvider.ts +1 -1
  70. package/src/room/Room.ts +22 -23
  71. package/src/room/participant/LocalParticipant.ts +18 -7
  72. package/src/room/participant/Participant.ts +4 -4
  73. package/src/room/participant/ParticipantTrackPermission.ts +1 -1
  74. package/src/room/participant/RemoteParticipant.ts +6 -2
  75. package/src/room/track/LocalAudioTrack.ts +5 -2
  76. package/src/room/track/LocalTrackPublication.ts +1 -1
  77. package/src/room/track/LocalVideoTrack.ts +6 -2
  78. package/src/room/track/RemoteAudioTrack.ts +1 -1
  79. package/src/room/track/RemoteTrackPublication.ts +7 -2
  80. package/src/room/track/Track.ts +6 -6
  81. package/src/room/track/TrackPublication.ts +7 -3
  82. package/src/room/track/facingMode.ts +2 -2
  83. package/src/room/track/options.ts +7 -0
  84. package/src/room/track/utils.ts +2 -1
  85. package/src/room/utils.ts +1 -1
  86. package/dist/src/proto/livekit_models_pb.d.ts +0 -1405
  87. package/dist/src/proto/livekit_models_pb.d.ts.map +0 -1
  88. package/dist/src/proto/livekit_rtc_pb.d.ts +0 -1423
  89. package/dist/src/proto/livekit_rtc_pb.d.ts.map +0 -1
  90. package/dist/ts4.2/src/proto/livekit_models_pb.d.ts +0 -1405
  91. package/dist/ts4.2/src/proto/livekit_rtc_pb.d.ts +0 -1423
  92. package/src/proto/livekit_models_pb.ts +0 -2327
  93. package/src/proto/livekit_rtc_pb.ts +0 -2411
@@ -1,1423 +0,0 @@
1
- import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf";
2
- import { Message, proto3 } from "@bufbuild/protobuf";
3
- import { ClientConfiguration, ConnectionQuality, DisconnectReason, Encryption_Type, ParticipantInfo, ParticipantTracks, Room, ServerInfo, SpeakerInfo, SubscriptionError, TrackInfo, TrackSource, TrackType, VideoLayer, VideoQuality } from "./livekit_models_pb.js";
4
- /**
5
- * @generated from enum livekit.SignalTarget
6
- */
7
- export declare enum SignalTarget {
8
- /**
9
- * @generated from enum value: PUBLISHER = 0;
10
- */
11
- PUBLISHER = 0,
12
- /**
13
- * @generated from enum value: SUBSCRIBER = 1;
14
- */
15
- SUBSCRIBER = 1
16
- }
17
- /**
18
- * @generated from enum livekit.StreamState
19
- */
20
- export declare enum StreamState {
21
- /**
22
- * @generated from enum value: ACTIVE = 0;
23
- */
24
- ACTIVE = 0,
25
- /**
26
- * @generated from enum value: PAUSED = 1;
27
- */
28
- PAUSED = 1
29
- }
30
- /**
31
- * @generated from enum livekit.CandidateProtocol
32
- */
33
- export declare enum CandidateProtocol {
34
- /**
35
- * @generated from enum value: UDP = 0;
36
- */
37
- UDP = 0,
38
- /**
39
- * @generated from enum value: TCP = 1;
40
- */
41
- TCP = 1,
42
- /**
43
- * @generated from enum value: TLS = 2;
44
- */
45
- TLS = 2
46
- }
47
- /**
48
- * @generated from message livekit.SignalRequest
49
- */
50
- export declare class SignalRequest extends Message<SignalRequest> {
51
- /**
52
- * @generated from oneof livekit.SignalRequest.message
53
- */
54
- message: {
55
- /**
56
- * initial join exchange, for publisher
57
- *
58
- * @generated from field: livekit.SessionDescription offer = 1;
59
- */
60
- value: SessionDescription;
61
- case: "offer";
62
- } | {
63
- /**
64
- * participant answering publisher offer
65
- *
66
- * @generated from field: livekit.SessionDescription answer = 2;
67
- */
68
- value: SessionDescription;
69
- case: "answer";
70
- } | {
71
- /**
72
- * @generated from field: livekit.TrickleRequest trickle = 3;
73
- */
74
- value: TrickleRequest;
75
- case: "trickle";
76
- } | {
77
- /**
78
- * @generated from field: livekit.AddTrackRequest add_track = 4;
79
- */
80
- value: AddTrackRequest;
81
- case: "addTrack";
82
- } | {
83
- /**
84
- * mute the participant's published tracks
85
- *
86
- * @generated from field: livekit.MuteTrackRequest mute = 5;
87
- */
88
- value: MuteTrackRequest;
89
- case: "mute";
90
- } | {
91
- /**
92
- * Subscribe or unsubscribe from tracks
93
- *
94
- * @generated from field: livekit.UpdateSubscription subscription = 6;
95
- */
96
- value: UpdateSubscription;
97
- case: "subscription";
98
- } | {
99
- /**
100
- * Update settings of subscribed tracks
101
- *
102
- * @generated from field: livekit.UpdateTrackSettings track_setting = 7;
103
- */
104
- value: UpdateTrackSettings;
105
- case: "trackSetting";
106
- } | {
107
- /**
108
- * Immediately terminate session
109
- *
110
- * @generated from field: livekit.LeaveRequest leave = 8;
111
- */
112
- value: LeaveRequest;
113
- case: "leave";
114
- } | {
115
- /**
116
- * Update published video layers
117
- *
118
- * @generated from field: livekit.UpdateVideoLayers update_layers = 10;
119
- */
120
- value: UpdateVideoLayers;
121
- case: "updateLayers";
122
- } | {
123
- /**
124
- * Update subscriber permissions
125
- *
126
- * @generated from field: livekit.SubscriptionPermission subscription_permission = 11;
127
- */
128
- value: SubscriptionPermission;
129
- case: "subscriptionPermission";
130
- } | {
131
- /**
132
- * sync client's subscribe state to server during reconnect
133
- *
134
- * @generated from field: livekit.SyncState sync_state = 12;
135
- */
136
- value: SyncState;
137
- case: "syncState";
138
- } | {
139
- /**
140
- * Simulate conditions, for client validations
141
- *
142
- * @generated from field: livekit.SimulateScenario simulate = 13;
143
- */
144
- value: SimulateScenario;
145
- case: "simulate";
146
- } | {
147
- /**
148
- * client triggered ping to server
149
- *
150
- * deprecated by ping_req (message Ping)
151
- *
152
- * @generated from field: int64 ping = 14;
153
- */
154
- value: bigint;
155
- case: "ping";
156
- } | {
157
- /**
158
- * update a participant's own metadata and/or name
159
- *
160
- * @generated from field: livekit.UpdateParticipantMetadata update_metadata = 15;
161
- */
162
- value: UpdateParticipantMetadata;
163
- case: "updateMetadata";
164
- } | {
165
- /**
166
- * @generated from field: livekit.Ping ping_req = 16;
167
- */
168
- value: Ping;
169
- case: "pingReq";
170
- } | {
171
- case: undefined;
172
- value?: undefined;
173
- };
174
- constructor(data?: PartialMessage<SignalRequest>);
175
- static readonly runtime: typeof proto3;
176
- static readonly typeName = "livekit.SignalRequest";
177
- static readonly fields: FieldList;
178
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SignalRequest;
179
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SignalRequest;
180
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SignalRequest;
181
- static equals(a: SignalRequest | PlainMessage<SignalRequest> | undefined, b: SignalRequest | PlainMessage<SignalRequest> | undefined): boolean;
182
- }
183
- /**
184
- * @generated from message livekit.SignalResponse
185
- */
186
- export declare class SignalResponse extends Message<SignalResponse> {
187
- /**
188
- * @generated from oneof livekit.SignalResponse.message
189
- */
190
- message: {
191
- /**
192
- * sent when join is accepted
193
- *
194
- * @generated from field: livekit.JoinResponse join = 1;
195
- */
196
- value: JoinResponse;
197
- case: "join";
198
- } | {
199
- /**
200
- * sent when server answers publisher
201
- *
202
- * @generated from field: livekit.SessionDescription answer = 2;
203
- */
204
- value: SessionDescription;
205
- case: "answer";
206
- } | {
207
- /**
208
- * sent when server is sending subscriber an offer
209
- *
210
- * @generated from field: livekit.SessionDescription offer = 3;
211
- */
212
- value: SessionDescription;
213
- case: "offer";
214
- } | {
215
- /**
216
- * sent when an ICE candidate is available
217
- *
218
- * @generated from field: livekit.TrickleRequest trickle = 4;
219
- */
220
- value: TrickleRequest;
221
- case: "trickle";
222
- } | {
223
- /**
224
- * sent when participants in the room has changed
225
- *
226
- * @generated from field: livekit.ParticipantUpdate update = 5;
227
- */
228
- value: ParticipantUpdate;
229
- case: "update";
230
- } | {
231
- /**
232
- * sent to the participant when their track has been published
233
- *
234
- * @generated from field: livekit.TrackPublishedResponse track_published = 6;
235
- */
236
- value: TrackPublishedResponse;
237
- case: "trackPublished";
238
- } | {
239
- /**
240
- * Immediately terminate session
241
- *
242
- * @generated from field: livekit.LeaveRequest leave = 8;
243
- */
244
- value: LeaveRequest;
245
- case: "leave";
246
- } | {
247
- /**
248
- * server initiated mute
249
- *
250
- * @generated from field: livekit.MuteTrackRequest mute = 9;
251
- */
252
- value: MuteTrackRequest;
253
- case: "mute";
254
- } | {
255
- /**
256
- * indicates changes to speaker status, including when they've gone to not speaking
257
- *
258
- * @generated from field: livekit.SpeakersChanged speakers_changed = 10;
259
- */
260
- value: SpeakersChanged;
261
- case: "speakersChanged";
262
- } | {
263
- /**
264
- * sent when metadata of the room has changed
265
- *
266
- * @generated from field: livekit.RoomUpdate room_update = 11;
267
- */
268
- value: RoomUpdate;
269
- case: "roomUpdate";
270
- } | {
271
- /**
272
- * when connection quality changed
273
- *
274
- * @generated from field: livekit.ConnectionQualityUpdate connection_quality = 12;
275
- */
276
- value: ConnectionQualityUpdate;
277
- case: "connectionQuality";
278
- } | {
279
- /**
280
- * when streamed tracks state changed, used to notify when any of the streams were paused due to
281
- * congestion
282
- *
283
- * @generated from field: livekit.StreamStateUpdate stream_state_update = 13;
284
- */
285
- value: StreamStateUpdate;
286
- case: "streamStateUpdate";
287
- } | {
288
- /**
289
- * when max subscribe quality changed, used by dynamic broadcasting to disable unused layers
290
- *
291
- * @generated from field: livekit.SubscribedQualityUpdate subscribed_quality_update = 14;
292
- */
293
- value: SubscribedQualityUpdate;
294
- case: "subscribedQualityUpdate";
295
- } | {
296
- /**
297
- * when subscription permission changed
298
- *
299
- * @generated from field: livekit.SubscriptionPermissionUpdate subscription_permission_update = 15;
300
- */
301
- value: SubscriptionPermissionUpdate;
302
- case: "subscriptionPermissionUpdate";
303
- } | {
304
- /**
305
- * update the token the client was using, to prevent an active client from using an expired token
306
- *
307
- * @generated from field: string refresh_token = 16;
308
- */
309
- value: string;
310
- case: "refreshToken";
311
- } | {
312
- /**
313
- * server initiated track unpublish
314
- *
315
- * @generated from field: livekit.TrackUnpublishedResponse track_unpublished = 17;
316
- */
317
- value: TrackUnpublishedResponse;
318
- case: "trackUnpublished";
319
- } | {
320
- /**
321
- * respond to ping
322
- *
323
- * deprecated by pong_resp (message Pong)
324
- *
325
- * @generated from field: int64 pong = 18;
326
- */
327
- value: bigint;
328
- case: "pong";
329
- } | {
330
- /**
331
- * sent when client reconnects
332
- *
333
- * @generated from field: livekit.ReconnectResponse reconnect = 19;
334
- */
335
- value: ReconnectResponse;
336
- case: "reconnect";
337
- } | {
338
- /**
339
- * respond to Ping
340
- *
341
- * @generated from field: livekit.Pong pong_resp = 20;
342
- */
343
- value: Pong;
344
- case: "pongResp";
345
- } | {
346
- /**
347
- * Subscription response, client should not expect any media from this subscription if it fails
348
- *
349
- * @generated from field: livekit.SubscriptionResponse subscription_response = 21;
350
- */
351
- value: SubscriptionResponse;
352
- case: "subscriptionResponse";
353
- } | {
354
- case: undefined;
355
- value?: undefined;
356
- };
357
- constructor(data?: PartialMessage<SignalResponse>);
358
- static readonly runtime: typeof proto3;
359
- static readonly typeName = "livekit.SignalResponse";
360
- static readonly fields: FieldList;
361
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SignalResponse;
362
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SignalResponse;
363
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SignalResponse;
364
- static equals(a: SignalResponse | PlainMessage<SignalResponse> | undefined, b: SignalResponse | PlainMessage<SignalResponse> | undefined): boolean;
365
- }
366
- /**
367
- * @generated from message livekit.SimulcastCodec
368
- */
369
- export declare class SimulcastCodec extends Message<SimulcastCodec> {
370
- /**
371
- * @generated from field: string codec = 1;
372
- */
373
- codec: string;
374
- /**
375
- * @generated from field: string cid = 2;
376
- */
377
- cid: string;
378
- constructor(data?: PartialMessage<SimulcastCodec>);
379
- static readonly runtime: typeof proto3;
380
- static readonly typeName = "livekit.SimulcastCodec";
381
- static readonly fields: FieldList;
382
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SimulcastCodec;
383
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SimulcastCodec;
384
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SimulcastCodec;
385
- static equals(a: SimulcastCodec | PlainMessage<SimulcastCodec> | undefined, b: SimulcastCodec | PlainMessage<SimulcastCodec> | undefined): boolean;
386
- }
387
- /**
388
- * @generated from message livekit.AddTrackRequest
389
- */
390
- export declare class AddTrackRequest extends Message<AddTrackRequest> {
391
- /**
392
- * client ID of track, to match it when RTC track is received
393
- *
394
- * @generated from field: string cid = 1;
395
- */
396
- cid: string;
397
- /**
398
- * @generated from field: string name = 2;
399
- */
400
- name: string;
401
- /**
402
- * @generated from field: livekit.TrackType type = 3;
403
- */
404
- type: TrackType;
405
- /**
406
- * to be deprecated in favor of layers
407
- *
408
- * @generated from field: uint32 width = 4;
409
- */
410
- width: number;
411
- /**
412
- * @generated from field: uint32 height = 5;
413
- */
414
- height: number;
415
- /**
416
- * true to add track and initialize to muted
417
- *
418
- * @generated from field: bool muted = 6;
419
- */
420
- muted: boolean;
421
- /**
422
- * true if DTX (Discontinuous Transmission) is disabled for audio
423
- *
424
- * @generated from field: bool disable_dtx = 7;
425
- */
426
- disableDtx: boolean;
427
- /**
428
- * @generated from field: livekit.TrackSource source = 8;
429
- */
430
- source: TrackSource;
431
- /**
432
- * @generated from field: repeated livekit.VideoLayer layers = 9;
433
- */
434
- layers: VideoLayer[];
435
- /**
436
- * @generated from field: repeated livekit.SimulcastCodec simulcast_codecs = 10;
437
- */
438
- simulcastCodecs: SimulcastCodec[];
439
- /**
440
- * server ID of track, publish new codec to exist track
441
- *
442
- * @generated from field: string sid = 11;
443
- */
444
- sid: string;
445
- /**
446
- * @generated from field: bool stereo = 12;
447
- */
448
- stereo: boolean;
449
- /**
450
- * true if RED (Redundant Encoding) is disabled for audio
451
- *
452
- * @generated from field: bool disable_red = 13;
453
- */
454
- disableRed: boolean;
455
- /**
456
- * @generated from field: livekit.Encryption.Type encryption = 14;
457
- */
458
- encryption: Encryption_Type;
459
- /**
460
- * which stream the track belongs to, used to group tracks together.
461
- * if not specified, server will infer it from track source to bundle camera/microphone, screenshare/audio together
462
- *
463
- * @generated from field: string stream = 15;
464
- */
465
- stream: string;
466
- constructor(data?: PartialMessage<AddTrackRequest>);
467
- static readonly runtime: typeof proto3;
468
- static readonly typeName = "livekit.AddTrackRequest";
469
- static readonly fields: FieldList;
470
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): AddTrackRequest;
471
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): AddTrackRequest;
472
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): AddTrackRequest;
473
- static equals(a: AddTrackRequest | PlainMessage<AddTrackRequest> | undefined, b: AddTrackRequest | PlainMessage<AddTrackRequest> | undefined): boolean;
474
- }
475
- /**
476
- * @generated from message livekit.TrickleRequest
477
- */
478
- export declare class TrickleRequest extends Message<TrickleRequest> {
479
- /**
480
- * @generated from field: string candidateInit = 1;
481
- */
482
- candidateInit: string;
483
- /**
484
- * @generated from field: livekit.SignalTarget target = 2;
485
- */
486
- target: SignalTarget;
487
- constructor(data?: PartialMessage<TrickleRequest>);
488
- static readonly runtime: typeof proto3;
489
- static readonly typeName = "livekit.TrickleRequest";
490
- static readonly fields: FieldList;
491
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): TrickleRequest;
492
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): TrickleRequest;
493
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): TrickleRequest;
494
- static equals(a: TrickleRequest | PlainMessage<TrickleRequest> | undefined, b: TrickleRequest | PlainMessage<TrickleRequest> | undefined): boolean;
495
- }
496
- /**
497
- * @generated from message livekit.MuteTrackRequest
498
- */
499
- export declare class MuteTrackRequest extends Message<MuteTrackRequest> {
500
- /**
501
- * @generated from field: string sid = 1;
502
- */
503
- sid: string;
504
- /**
505
- * @generated from field: bool muted = 2;
506
- */
507
- muted: boolean;
508
- constructor(data?: PartialMessage<MuteTrackRequest>);
509
- static readonly runtime: typeof proto3;
510
- static readonly typeName = "livekit.MuteTrackRequest";
511
- static readonly fields: FieldList;
512
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): MuteTrackRequest;
513
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): MuteTrackRequest;
514
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): MuteTrackRequest;
515
- static equals(a: MuteTrackRequest | PlainMessage<MuteTrackRequest> | undefined, b: MuteTrackRequest | PlainMessage<MuteTrackRequest> | undefined): boolean;
516
- }
517
- /**
518
- * @generated from message livekit.JoinResponse
519
- */
520
- export declare class JoinResponse extends Message<JoinResponse> {
521
- /**
522
- * @generated from field: livekit.Room room = 1;
523
- */
524
- room?: Room;
525
- /**
526
- * @generated from field: livekit.ParticipantInfo participant = 2;
527
- */
528
- participant?: ParticipantInfo;
529
- /**
530
- * @generated from field: repeated livekit.ParticipantInfo other_participants = 3;
531
- */
532
- otherParticipants: ParticipantInfo[];
533
- /**
534
- * deprecated. use server_info.version instead.
535
- *
536
- * @generated from field: string server_version = 4;
537
- */
538
- serverVersion: string;
539
- /**
540
- * @generated from field: repeated livekit.ICEServer ice_servers = 5;
541
- */
542
- iceServers: ICEServer[];
543
- /**
544
- * use subscriber as the primary PeerConnection
545
- *
546
- * @generated from field: bool subscriber_primary = 6;
547
- */
548
- subscriberPrimary: boolean;
549
- /**
550
- * when the current server isn't available, return alternate url to retry connection
551
- * when this is set, the other fields will be largely empty
552
- *
553
- * @generated from field: string alternative_url = 7;
554
- */
555
- alternativeUrl: string;
556
- /**
557
- * @generated from field: livekit.ClientConfiguration client_configuration = 8;
558
- */
559
- clientConfiguration?: ClientConfiguration;
560
- /**
561
- * deprecated. use server_info.region instead.
562
- *
563
- * @generated from field: string server_region = 9;
564
- */
565
- serverRegion: string;
566
- /**
567
- * @generated from field: int32 ping_timeout = 10;
568
- */
569
- pingTimeout: number;
570
- /**
571
- * @generated from field: int32 ping_interval = 11;
572
- */
573
- pingInterval: number;
574
- /**
575
- * @generated from field: livekit.ServerInfo server_info = 12;
576
- */
577
- serverInfo?: ServerInfo;
578
- /**
579
- * Server-Injected-Frame byte trailer, used to identify unencrypted frames when e2ee is enabled
580
- *
581
- * @generated from field: bytes sif_trailer = 13;
582
- */
583
- sifTrailer: Uint8Array;
584
- constructor(data?: PartialMessage<JoinResponse>);
585
- static readonly runtime: typeof proto3;
586
- static readonly typeName = "livekit.JoinResponse";
587
- static readonly fields: FieldList;
588
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): JoinResponse;
589
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): JoinResponse;
590
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): JoinResponse;
591
- static equals(a: JoinResponse | PlainMessage<JoinResponse> | undefined, b: JoinResponse | PlainMessage<JoinResponse> | undefined): boolean;
592
- }
593
- /**
594
- * @generated from message livekit.ReconnectResponse
595
- */
596
- export declare class ReconnectResponse extends Message<ReconnectResponse> {
597
- /**
598
- * @generated from field: repeated livekit.ICEServer ice_servers = 1;
599
- */
600
- iceServers: ICEServer[];
601
- /**
602
- * @generated from field: livekit.ClientConfiguration client_configuration = 2;
603
- */
604
- clientConfiguration?: ClientConfiguration;
605
- constructor(data?: PartialMessage<ReconnectResponse>);
606
- static readonly runtime: typeof proto3;
607
- static readonly typeName = "livekit.ReconnectResponse";
608
- static readonly fields: FieldList;
609
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ReconnectResponse;
610
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ReconnectResponse;
611
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ReconnectResponse;
612
- static equals(a: ReconnectResponse | PlainMessage<ReconnectResponse> | undefined, b: ReconnectResponse | PlainMessage<ReconnectResponse> | undefined): boolean;
613
- }
614
- /**
615
- * @generated from message livekit.TrackPublishedResponse
616
- */
617
- export declare class TrackPublishedResponse extends Message<TrackPublishedResponse> {
618
- /**
619
- * @generated from field: string cid = 1;
620
- */
621
- cid: string;
622
- /**
623
- * @generated from field: livekit.TrackInfo track = 2;
624
- */
625
- track?: TrackInfo;
626
- constructor(data?: PartialMessage<TrackPublishedResponse>);
627
- static readonly runtime: typeof proto3;
628
- static readonly typeName = "livekit.TrackPublishedResponse";
629
- static readonly fields: FieldList;
630
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): TrackPublishedResponse;
631
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): TrackPublishedResponse;
632
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): TrackPublishedResponse;
633
- static equals(a: TrackPublishedResponse | PlainMessage<TrackPublishedResponse> | undefined, b: TrackPublishedResponse | PlainMessage<TrackPublishedResponse> | undefined): boolean;
634
- }
635
- /**
636
- * @generated from message livekit.TrackUnpublishedResponse
637
- */
638
- export declare class TrackUnpublishedResponse extends Message<TrackUnpublishedResponse> {
639
- /**
640
- * @generated from field: string track_sid = 1;
641
- */
642
- trackSid: string;
643
- constructor(data?: PartialMessage<TrackUnpublishedResponse>);
644
- static readonly runtime: typeof proto3;
645
- static readonly typeName = "livekit.TrackUnpublishedResponse";
646
- static readonly fields: FieldList;
647
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): TrackUnpublishedResponse;
648
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): TrackUnpublishedResponse;
649
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): TrackUnpublishedResponse;
650
- static equals(a: TrackUnpublishedResponse | PlainMessage<TrackUnpublishedResponse> | undefined, b: TrackUnpublishedResponse | PlainMessage<TrackUnpublishedResponse> | undefined): boolean;
651
- }
652
- /**
653
- * @generated from message livekit.SessionDescription
654
- */
655
- export declare class SessionDescription extends Message<SessionDescription> {
656
- /**
657
- * "answer" | "offer" | "pranswer" | "rollback"
658
- *
659
- * @generated from field: string type = 1;
660
- */
661
- type: string;
662
- /**
663
- * @generated from field: string sdp = 2;
664
- */
665
- sdp: string;
666
- constructor(data?: PartialMessage<SessionDescription>);
667
- static readonly runtime: typeof proto3;
668
- static readonly typeName = "livekit.SessionDescription";
669
- static readonly fields: FieldList;
670
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SessionDescription;
671
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SessionDescription;
672
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SessionDescription;
673
- static equals(a: SessionDescription | PlainMessage<SessionDescription> | undefined, b: SessionDescription | PlainMessage<SessionDescription> | undefined): boolean;
674
- }
675
- /**
676
- * @generated from message livekit.ParticipantUpdate
677
- */
678
- export declare class ParticipantUpdate extends Message<ParticipantUpdate> {
679
- /**
680
- * @generated from field: repeated livekit.ParticipantInfo participants = 1;
681
- */
682
- participants: ParticipantInfo[];
683
- constructor(data?: PartialMessage<ParticipantUpdate>);
684
- static readonly runtime: typeof proto3;
685
- static readonly typeName = "livekit.ParticipantUpdate";
686
- static readonly fields: FieldList;
687
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ParticipantUpdate;
688
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ParticipantUpdate;
689
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ParticipantUpdate;
690
- static equals(a: ParticipantUpdate | PlainMessage<ParticipantUpdate> | undefined, b: ParticipantUpdate | PlainMessage<ParticipantUpdate> | undefined): boolean;
691
- }
692
- /**
693
- * @generated from message livekit.UpdateSubscription
694
- */
695
- export declare class UpdateSubscription extends Message<UpdateSubscription> {
696
- /**
697
- * @generated from field: repeated string track_sids = 1;
698
- */
699
- trackSids: string[];
700
- /**
701
- * @generated from field: bool subscribe = 2;
702
- */
703
- subscribe: boolean;
704
- /**
705
- * @generated from field: repeated livekit.ParticipantTracks participant_tracks = 3;
706
- */
707
- participantTracks: ParticipantTracks[];
708
- constructor(data?: PartialMessage<UpdateSubscription>);
709
- static readonly runtime: typeof proto3;
710
- static readonly typeName = "livekit.UpdateSubscription";
711
- static readonly fields: FieldList;
712
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): UpdateSubscription;
713
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): UpdateSubscription;
714
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): UpdateSubscription;
715
- static equals(a: UpdateSubscription | PlainMessage<UpdateSubscription> | undefined, b: UpdateSubscription | PlainMessage<UpdateSubscription> | undefined): boolean;
716
- }
717
- /**
718
- * @generated from message livekit.UpdateTrackSettings
719
- */
720
- export declare class UpdateTrackSettings extends Message<UpdateTrackSettings> {
721
- /**
722
- * @generated from field: repeated string track_sids = 1;
723
- */
724
- trackSids: string[];
725
- /**
726
- * when true, the track is placed in a paused state, with no new data returned
727
- *
728
- * @generated from field: bool disabled = 3;
729
- */
730
- disabled: boolean;
731
- /**
732
- * deprecated in favor of width & height
733
- *
734
- * @generated from field: livekit.VideoQuality quality = 4;
735
- */
736
- quality: VideoQuality;
737
- /**
738
- * for video, width to receive
739
- *
740
- * @generated from field: uint32 width = 5;
741
- */
742
- width: number;
743
- /**
744
- * for video, height to receive
745
- *
746
- * @generated from field: uint32 height = 6;
747
- */
748
- height: number;
749
- /**
750
- * @generated from field: uint32 fps = 7;
751
- */
752
- fps: number;
753
- /**
754
- * subscription priority. 1 being the highest (0 is unset)
755
- * when unset, server sill assign priority based on the order of subscription
756
- * server will use priority in the following ways:
757
- * 1. when subscribed tracks exceed per-participant subscription limit, server will
758
- * pause the lowest priority tracks
759
- * 2. when the network is congested, server will assign available bandwidth to
760
- * higher priority tracks first. lowest priority tracks can be paused
761
- *
762
- * @generated from field: uint32 priority = 8;
763
- */
764
- priority: number;
765
- constructor(data?: PartialMessage<UpdateTrackSettings>);
766
- static readonly runtime: typeof proto3;
767
- static readonly typeName = "livekit.UpdateTrackSettings";
768
- static readonly fields: FieldList;
769
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): UpdateTrackSettings;
770
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): UpdateTrackSettings;
771
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): UpdateTrackSettings;
772
- static equals(a: UpdateTrackSettings | PlainMessage<UpdateTrackSettings> | undefined, b: UpdateTrackSettings | PlainMessage<UpdateTrackSettings> | undefined): boolean;
773
- }
774
- /**
775
- * @generated from message livekit.LeaveRequest
776
- */
777
- export declare class LeaveRequest extends Message<LeaveRequest> {
778
- /**
779
- * sent when server initiates the disconnect due to server-restart
780
- * indicates clients should attempt full-reconnect sequence
781
- * NOTE: `can_reconnect` obsoleted by `action` starting in protocol version 13
782
- *
783
- * @generated from field: bool can_reconnect = 1;
784
- */
785
- canReconnect: boolean;
786
- /**
787
- * @generated from field: livekit.DisconnectReason reason = 2;
788
- */
789
- reason: DisconnectReason;
790
- /**
791
- * @generated from field: livekit.LeaveRequest.Action action = 3;
792
- */
793
- action: LeaveRequest_Action;
794
- /**
795
- * @generated from field: livekit.RegionSettings regions = 4;
796
- */
797
- regions?: RegionSettings;
798
- constructor(data?: PartialMessage<LeaveRequest>);
799
- static readonly runtime: typeof proto3;
800
- static readonly typeName = "livekit.LeaveRequest";
801
- static readonly fields: FieldList;
802
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): LeaveRequest;
803
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): LeaveRequest;
804
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): LeaveRequest;
805
- static equals(a: LeaveRequest | PlainMessage<LeaveRequest> | undefined, b: LeaveRequest | PlainMessage<LeaveRequest> | undefined): boolean;
806
- }
807
- /**
808
- * indicates action clients should take on receiving this message
809
- *
810
- * @generated from enum livekit.LeaveRequest.Action
811
- */
812
- export declare enum LeaveRequest_Action {
813
- /**
814
- * should disconnect
815
- *
816
- * @generated from enum value: DISCONNECT = 0;
817
- */
818
- DISCONNECT = 0,
819
- /**
820
- * should attempt a resume with `reconnect=1` in join URL
821
- *
822
- * @generated from enum value: RESUME = 1;
823
- */
824
- RESUME = 1,
825
- /**
826
- * should attempt a reconnect, i. e. no `reconnect=1`
827
- *
828
- * @generated from enum value: RECONNECT = 2;
829
- */
830
- RECONNECT = 2
831
- }
832
- /**
833
- * message to indicate published video track dimensions are changing
834
- *
835
- * @generated from message livekit.UpdateVideoLayers
836
- */
837
- export declare class UpdateVideoLayers extends Message<UpdateVideoLayers> {
838
- /**
839
- * @generated from field: string track_sid = 1;
840
- */
841
- trackSid: string;
842
- /**
843
- * @generated from field: repeated livekit.VideoLayer layers = 2;
844
- */
845
- layers: VideoLayer[];
846
- constructor(data?: PartialMessage<UpdateVideoLayers>);
847
- static readonly runtime: typeof proto3;
848
- static readonly typeName = "livekit.UpdateVideoLayers";
849
- static readonly fields: FieldList;
850
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): UpdateVideoLayers;
851
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): UpdateVideoLayers;
852
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): UpdateVideoLayers;
853
- static equals(a: UpdateVideoLayers | PlainMessage<UpdateVideoLayers> | undefined, b: UpdateVideoLayers | PlainMessage<UpdateVideoLayers> | undefined): boolean;
854
- }
855
- /**
856
- * @generated from message livekit.UpdateParticipantMetadata
857
- */
858
- export declare class UpdateParticipantMetadata extends Message<UpdateParticipantMetadata> {
859
- /**
860
- * @generated from field: string metadata = 1;
861
- */
862
- metadata: string;
863
- /**
864
- * @generated from field: string name = 2;
865
- */
866
- name: string;
867
- constructor(data?: PartialMessage<UpdateParticipantMetadata>);
868
- static readonly runtime: typeof proto3;
869
- static readonly typeName = "livekit.UpdateParticipantMetadata";
870
- static readonly fields: FieldList;
871
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): UpdateParticipantMetadata;
872
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): UpdateParticipantMetadata;
873
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): UpdateParticipantMetadata;
874
- static equals(a: UpdateParticipantMetadata | PlainMessage<UpdateParticipantMetadata> | undefined, b: UpdateParticipantMetadata | PlainMessage<UpdateParticipantMetadata> | undefined): boolean;
875
- }
876
- /**
877
- * @generated from message livekit.ICEServer
878
- */
879
- export declare class ICEServer extends Message<ICEServer> {
880
- /**
881
- * @generated from field: repeated string urls = 1;
882
- */
883
- urls: string[];
884
- /**
885
- * @generated from field: string username = 2;
886
- */
887
- username: string;
888
- /**
889
- * @generated from field: string credential = 3;
890
- */
891
- credential: string;
892
- constructor(data?: PartialMessage<ICEServer>);
893
- static readonly runtime: typeof proto3;
894
- static readonly typeName = "livekit.ICEServer";
895
- static readonly fields: FieldList;
896
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ICEServer;
897
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ICEServer;
898
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ICEServer;
899
- static equals(a: ICEServer | PlainMessage<ICEServer> | undefined, b: ICEServer | PlainMessage<ICEServer> | undefined): boolean;
900
- }
901
- /**
902
- * @generated from message livekit.SpeakersChanged
903
- */
904
- export declare class SpeakersChanged extends Message<SpeakersChanged> {
905
- /**
906
- * @generated from field: repeated livekit.SpeakerInfo speakers = 1;
907
- */
908
- speakers: SpeakerInfo[];
909
- constructor(data?: PartialMessage<SpeakersChanged>);
910
- static readonly runtime: typeof proto3;
911
- static readonly typeName = "livekit.SpeakersChanged";
912
- static readonly fields: FieldList;
913
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SpeakersChanged;
914
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SpeakersChanged;
915
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SpeakersChanged;
916
- static equals(a: SpeakersChanged | PlainMessage<SpeakersChanged> | undefined, b: SpeakersChanged | PlainMessage<SpeakersChanged> | undefined): boolean;
917
- }
918
- /**
919
- * @generated from message livekit.RoomUpdate
920
- */
921
- export declare class RoomUpdate extends Message<RoomUpdate> {
922
- /**
923
- * @generated from field: livekit.Room room = 1;
924
- */
925
- room?: Room;
926
- constructor(data?: PartialMessage<RoomUpdate>);
927
- static readonly runtime: typeof proto3;
928
- static readonly typeName = "livekit.RoomUpdate";
929
- static readonly fields: FieldList;
930
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): RoomUpdate;
931
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): RoomUpdate;
932
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): RoomUpdate;
933
- static equals(a: RoomUpdate | PlainMessage<RoomUpdate> | undefined, b: RoomUpdate | PlainMessage<RoomUpdate> | undefined): boolean;
934
- }
935
- /**
936
- * @generated from message livekit.ConnectionQualityInfo
937
- */
938
- export declare class ConnectionQualityInfo extends Message<ConnectionQualityInfo> {
939
- /**
940
- * @generated from field: string participant_sid = 1;
941
- */
942
- participantSid: string;
943
- /**
944
- * @generated from field: livekit.ConnectionQuality quality = 2;
945
- */
946
- quality: ConnectionQuality;
947
- /**
948
- * @generated from field: float score = 3;
949
- */
950
- score: number;
951
- constructor(data?: PartialMessage<ConnectionQualityInfo>);
952
- static readonly runtime: typeof proto3;
953
- static readonly typeName = "livekit.ConnectionQualityInfo";
954
- static readonly fields: FieldList;
955
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ConnectionQualityInfo;
956
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ConnectionQualityInfo;
957
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ConnectionQualityInfo;
958
- static equals(a: ConnectionQualityInfo | PlainMessage<ConnectionQualityInfo> | undefined, b: ConnectionQualityInfo | PlainMessage<ConnectionQualityInfo> | undefined): boolean;
959
- }
960
- /**
961
- * @generated from message livekit.ConnectionQualityUpdate
962
- */
963
- export declare class ConnectionQualityUpdate extends Message<ConnectionQualityUpdate> {
964
- /**
965
- * @generated from field: repeated livekit.ConnectionQualityInfo updates = 1;
966
- */
967
- updates: ConnectionQualityInfo[];
968
- constructor(data?: PartialMessage<ConnectionQualityUpdate>);
969
- static readonly runtime: typeof proto3;
970
- static readonly typeName = "livekit.ConnectionQualityUpdate";
971
- static readonly fields: FieldList;
972
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ConnectionQualityUpdate;
973
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ConnectionQualityUpdate;
974
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ConnectionQualityUpdate;
975
- static equals(a: ConnectionQualityUpdate | PlainMessage<ConnectionQualityUpdate> | undefined, b: ConnectionQualityUpdate | PlainMessage<ConnectionQualityUpdate> | undefined): boolean;
976
- }
977
- /**
978
- * @generated from message livekit.StreamStateInfo
979
- */
980
- export declare class StreamStateInfo extends Message<StreamStateInfo> {
981
- /**
982
- * @generated from field: string participant_sid = 1;
983
- */
984
- participantSid: string;
985
- /**
986
- * @generated from field: string track_sid = 2;
987
- */
988
- trackSid: string;
989
- /**
990
- * @generated from field: livekit.StreamState state = 3;
991
- */
992
- state: StreamState;
993
- constructor(data?: PartialMessage<StreamStateInfo>);
994
- static readonly runtime: typeof proto3;
995
- static readonly typeName = "livekit.StreamStateInfo";
996
- static readonly fields: FieldList;
997
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): StreamStateInfo;
998
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): StreamStateInfo;
999
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): StreamStateInfo;
1000
- static equals(a: StreamStateInfo | PlainMessage<StreamStateInfo> | undefined, b: StreamStateInfo | PlainMessage<StreamStateInfo> | undefined): boolean;
1001
- }
1002
- /**
1003
- * @generated from message livekit.StreamStateUpdate
1004
- */
1005
- export declare class StreamStateUpdate extends Message<StreamStateUpdate> {
1006
- /**
1007
- * @generated from field: repeated livekit.StreamStateInfo stream_states = 1;
1008
- */
1009
- streamStates: StreamStateInfo[];
1010
- constructor(data?: PartialMessage<StreamStateUpdate>);
1011
- static readonly runtime: typeof proto3;
1012
- static readonly typeName = "livekit.StreamStateUpdate";
1013
- static readonly fields: FieldList;
1014
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): StreamStateUpdate;
1015
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): StreamStateUpdate;
1016
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): StreamStateUpdate;
1017
- static equals(a: StreamStateUpdate | PlainMessage<StreamStateUpdate> | undefined, b: StreamStateUpdate | PlainMessage<StreamStateUpdate> | undefined): boolean;
1018
- }
1019
- /**
1020
- * @generated from message livekit.SubscribedQuality
1021
- */
1022
- export declare class SubscribedQuality extends Message<SubscribedQuality> {
1023
- /**
1024
- * @generated from field: livekit.VideoQuality quality = 1;
1025
- */
1026
- quality: VideoQuality;
1027
- /**
1028
- * @generated from field: bool enabled = 2;
1029
- */
1030
- enabled: boolean;
1031
- constructor(data?: PartialMessage<SubscribedQuality>);
1032
- static readonly runtime: typeof proto3;
1033
- static readonly typeName = "livekit.SubscribedQuality";
1034
- static readonly fields: FieldList;
1035
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SubscribedQuality;
1036
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SubscribedQuality;
1037
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SubscribedQuality;
1038
- static equals(a: SubscribedQuality | PlainMessage<SubscribedQuality> | undefined, b: SubscribedQuality | PlainMessage<SubscribedQuality> | undefined): boolean;
1039
- }
1040
- /**
1041
- * @generated from message livekit.SubscribedCodec
1042
- */
1043
- export declare class SubscribedCodec extends Message<SubscribedCodec> {
1044
- /**
1045
- * @generated from field: string codec = 1;
1046
- */
1047
- codec: string;
1048
- /**
1049
- * @generated from field: repeated livekit.SubscribedQuality qualities = 2;
1050
- */
1051
- qualities: SubscribedQuality[];
1052
- constructor(data?: PartialMessage<SubscribedCodec>);
1053
- static readonly runtime: typeof proto3;
1054
- static readonly typeName = "livekit.SubscribedCodec";
1055
- static readonly fields: FieldList;
1056
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SubscribedCodec;
1057
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SubscribedCodec;
1058
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SubscribedCodec;
1059
- static equals(a: SubscribedCodec | PlainMessage<SubscribedCodec> | undefined, b: SubscribedCodec | PlainMessage<SubscribedCodec> | undefined): boolean;
1060
- }
1061
- /**
1062
- * @generated from message livekit.SubscribedQualityUpdate
1063
- */
1064
- export declare class SubscribedQualityUpdate extends Message<SubscribedQualityUpdate> {
1065
- /**
1066
- * @generated from field: string track_sid = 1;
1067
- */
1068
- trackSid: string;
1069
- /**
1070
- * @generated from field: repeated livekit.SubscribedQuality subscribed_qualities = 2;
1071
- */
1072
- subscribedQualities: SubscribedQuality[];
1073
- /**
1074
- * @generated from field: repeated livekit.SubscribedCodec subscribed_codecs = 3;
1075
- */
1076
- subscribedCodecs: SubscribedCodec[];
1077
- constructor(data?: PartialMessage<SubscribedQualityUpdate>);
1078
- static readonly runtime: typeof proto3;
1079
- static readonly typeName = "livekit.SubscribedQualityUpdate";
1080
- static readonly fields: FieldList;
1081
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SubscribedQualityUpdate;
1082
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SubscribedQualityUpdate;
1083
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SubscribedQualityUpdate;
1084
- static equals(a: SubscribedQualityUpdate | PlainMessage<SubscribedQualityUpdate> | undefined, b: SubscribedQualityUpdate | PlainMessage<SubscribedQualityUpdate> | undefined): boolean;
1085
- }
1086
- /**
1087
- * @generated from message livekit.TrackPermission
1088
- */
1089
- export declare class TrackPermission extends Message<TrackPermission> {
1090
- /**
1091
- * permission could be granted either by participant sid or identity
1092
- *
1093
- * @generated from field: string participant_sid = 1;
1094
- */
1095
- participantSid: string;
1096
- /**
1097
- * @generated from field: bool all_tracks = 2;
1098
- */
1099
- allTracks: boolean;
1100
- /**
1101
- * @generated from field: repeated string track_sids = 3;
1102
- */
1103
- trackSids: string[];
1104
- /**
1105
- * @generated from field: string participant_identity = 4;
1106
- */
1107
- participantIdentity: string;
1108
- constructor(data?: PartialMessage<TrackPermission>);
1109
- static readonly runtime: typeof proto3;
1110
- static readonly typeName = "livekit.TrackPermission";
1111
- static readonly fields: FieldList;
1112
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): TrackPermission;
1113
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): TrackPermission;
1114
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): TrackPermission;
1115
- static equals(a: TrackPermission | PlainMessage<TrackPermission> | undefined, b: TrackPermission | PlainMessage<TrackPermission> | undefined): boolean;
1116
- }
1117
- /**
1118
- * @generated from message livekit.SubscriptionPermission
1119
- */
1120
- export declare class SubscriptionPermission extends Message<SubscriptionPermission> {
1121
- /**
1122
- * @generated from field: bool all_participants = 1;
1123
- */
1124
- allParticipants: boolean;
1125
- /**
1126
- * @generated from field: repeated livekit.TrackPermission track_permissions = 2;
1127
- */
1128
- trackPermissions: TrackPermission[];
1129
- constructor(data?: PartialMessage<SubscriptionPermission>);
1130
- static readonly runtime: typeof proto3;
1131
- static readonly typeName = "livekit.SubscriptionPermission";
1132
- static readonly fields: FieldList;
1133
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SubscriptionPermission;
1134
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SubscriptionPermission;
1135
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SubscriptionPermission;
1136
- static equals(a: SubscriptionPermission | PlainMessage<SubscriptionPermission> | undefined, b: SubscriptionPermission | PlainMessage<SubscriptionPermission> | undefined): boolean;
1137
- }
1138
- /**
1139
- * @generated from message livekit.SubscriptionPermissionUpdate
1140
- */
1141
- export declare class SubscriptionPermissionUpdate extends Message<SubscriptionPermissionUpdate> {
1142
- /**
1143
- * @generated from field: string participant_sid = 1;
1144
- */
1145
- participantSid: string;
1146
- /**
1147
- * @generated from field: string track_sid = 2;
1148
- */
1149
- trackSid: string;
1150
- /**
1151
- * @generated from field: bool allowed = 3;
1152
- */
1153
- allowed: boolean;
1154
- constructor(data?: PartialMessage<SubscriptionPermissionUpdate>);
1155
- static readonly runtime: typeof proto3;
1156
- static readonly typeName = "livekit.SubscriptionPermissionUpdate";
1157
- static readonly fields: FieldList;
1158
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SubscriptionPermissionUpdate;
1159
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SubscriptionPermissionUpdate;
1160
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SubscriptionPermissionUpdate;
1161
- static equals(a: SubscriptionPermissionUpdate | PlainMessage<SubscriptionPermissionUpdate> | undefined, b: SubscriptionPermissionUpdate | PlainMessage<SubscriptionPermissionUpdate> | undefined): boolean;
1162
- }
1163
- /**
1164
- * @generated from message livekit.SyncState
1165
- */
1166
- export declare class SyncState extends Message<SyncState> {
1167
- /**
1168
- * last subscribe answer before reconnecting
1169
- *
1170
- * @generated from field: livekit.SessionDescription answer = 1;
1171
- */
1172
- answer?: SessionDescription;
1173
- /**
1174
- * @generated from field: livekit.UpdateSubscription subscription = 2;
1175
- */
1176
- subscription?: UpdateSubscription;
1177
- /**
1178
- * @generated from field: repeated livekit.TrackPublishedResponse publish_tracks = 3;
1179
- */
1180
- publishTracks: TrackPublishedResponse[];
1181
- /**
1182
- * @generated from field: repeated livekit.DataChannelInfo data_channels = 4;
1183
- */
1184
- dataChannels: DataChannelInfo[];
1185
- /**
1186
- * last received server side offer before reconnecting
1187
- *
1188
- * @generated from field: livekit.SessionDescription offer = 5;
1189
- */
1190
- offer?: SessionDescription;
1191
- /**
1192
- * @generated from field: repeated string track_sids_disabled = 6;
1193
- */
1194
- trackSidsDisabled: string[];
1195
- constructor(data?: PartialMessage<SyncState>);
1196
- static readonly runtime: typeof proto3;
1197
- static readonly typeName = "livekit.SyncState";
1198
- static readonly fields: FieldList;
1199
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SyncState;
1200
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SyncState;
1201
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SyncState;
1202
- static equals(a: SyncState | PlainMessage<SyncState> | undefined, b: SyncState | PlainMessage<SyncState> | undefined): boolean;
1203
- }
1204
- /**
1205
- * @generated from message livekit.DataChannelInfo
1206
- */
1207
- export declare class DataChannelInfo extends Message<DataChannelInfo> {
1208
- /**
1209
- * @generated from field: string label = 1;
1210
- */
1211
- label: string;
1212
- /**
1213
- * @generated from field: uint32 id = 2;
1214
- */
1215
- id: number;
1216
- /**
1217
- * @generated from field: livekit.SignalTarget target = 3;
1218
- */
1219
- target: SignalTarget;
1220
- constructor(data?: PartialMessage<DataChannelInfo>);
1221
- static readonly runtime: typeof proto3;
1222
- static readonly typeName = "livekit.DataChannelInfo";
1223
- static readonly fields: FieldList;
1224
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): DataChannelInfo;
1225
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): DataChannelInfo;
1226
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): DataChannelInfo;
1227
- static equals(a: DataChannelInfo | PlainMessage<DataChannelInfo> | undefined, b: DataChannelInfo | PlainMessage<DataChannelInfo> | undefined): boolean;
1228
- }
1229
- /**
1230
- * @generated from message livekit.SimulateScenario
1231
- */
1232
- export declare class SimulateScenario extends Message<SimulateScenario> {
1233
- /**
1234
- * @generated from oneof livekit.SimulateScenario.scenario
1235
- */
1236
- scenario: {
1237
- /**
1238
- * simulate N seconds of speaker activity
1239
- *
1240
- * @generated from field: int32 speaker_update = 1;
1241
- */
1242
- value: number;
1243
- case: "speakerUpdate";
1244
- } | {
1245
- /**
1246
- * simulate local node failure
1247
- *
1248
- * @generated from field: bool node_failure = 2;
1249
- */
1250
- value: boolean;
1251
- case: "nodeFailure";
1252
- } | {
1253
- /**
1254
- * simulate migration
1255
- *
1256
- * @generated from field: bool migration = 3;
1257
- */
1258
- value: boolean;
1259
- case: "migration";
1260
- } | {
1261
- /**
1262
- * server to send leave
1263
- *
1264
- * @generated from field: bool server_leave = 4;
1265
- */
1266
- value: boolean;
1267
- case: "serverLeave";
1268
- } | {
1269
- /**
1270
- * switch candidate protocol to tcp
1271
- *
1272
- * @generated from field: livekit.CandidateProtocol switch_candidate_protocol = 5;
1273
- */
1274
- value: CandidateProtocol;
1275
- case: "switchCandidateProtocol";
1276
- } | {
1277
- /**
1278
- * maximum bandwidth for subscribers, in bps
1279
- * when zero, clears artificial bandwidth limit
1280
- *
1281
- * @generated from field: int64 subscriber_bandwidth = 6;
1282
- */
1283
- value: bigint;
1284
- case: "subscriberBandwidth";
1285
- } | {
1286
- /**
1287
- * disconnect signal on resume
1288
- *
1289
- * @generated from field: bool disconnect_signal_on_resume = 7;
1290
- */
1291
- value: boolean;
1292
- case: "disconnectSignalOnResume";
1293
- } | {
1294
- /**
1295
- * disconnect signal on resume before sending any messages from server
1296
- *
1297
- * @generated from field: bool disconnect_signal_on_resume_no_messages = 8;
1298
- */
1299
- value: boolean;
1300
- case: "disconnectSignalOnResumeNoMessages";
1301
- } | {
1302
- case: undefined;
1303
- value?: undefined;
1304
- };
1305
- constructor(data?: PartialMessage<SimulateScenario>);
1306
- static readonly runtime: typeof proto3;
1307
- static readonly typeName = "livekit.SimulateScenario";
1308
- static readonly fields: FieldList;
1309
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SimulateScenario;
1310
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SimulateScenario;
1311
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SimulateScenario;
1312
- static equals(a: SimulateScenario | PlainMessage<SimulateScenario> | undefined, b: SimulateScenario | PlainMessage<SimulateScenario> | undefined): boolean;
1313
- }
1314
- /**
1315
- * @generated from message livekit.Ping
1316
- */
1317
- export declare class Ping extends Message<Ping> {
1318
- /**
1319
- * @generated from field: int64 timestamp = 1;
1320
- */
1321
- timestamp: bigint;
1322
- /**
1323
- * rtt in milliseconds calculated by client
1324
- *
1325
- * @generated from field: int64 rtt = 2;
1326
- */
1327
- rtt: bigint;
1328
- constructor(data?: PartialMessage<Ping>);
1329
- static readonly runtime: typeof proto3;
1330
- static readonly typeName = "livekit.Ping";
1331
- static readonly fields: FieldList;
1332
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Ping;
1333
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Ping;
1334
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Ping;
1335
- static equals(a: Ping | PlainMessage<Ping> | undefined, b: Ping | PlainMessage<Ping> | undefined): boolean;
1336
- }
1337
- /**
1338
- * @generated from message livekit.Pong
1339
- */
1340
- export declare class Pong extends Message<Pong> {
1341
- /**
1342
- * timestamp field of last received ping request
1343
- *
1344
- * @generated from field: int64 last_ping_timestamp = 1;
1345
- */
1346
- lastPingTimestamp: bigint;
1347
- /**
1348
- * @generated from field: int64 timestamp = 2;
1349
- */
1350
- timestamp: bigint;
1351
- constructor(data?: PartialMessage<Pong>);
1352
- static readonly runtime: typeof proto3;
1353
- static readonly typeName = "livekit.Pong";
1354
- static readonly fields: FieldList;
1355
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Pong;
1356
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Pong;
1357
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Pong;
1358
- static equals(a: Pong | PlainMessage<Pong> | undefined, b: Pong | PlainMessage<Pong> | undefined): boolean;
1359
- }
1360
- /**
1361
- * @generated from message livekit.RegionSettings
1362
- */
1363
- export declare class RegionSettings extends Message<RegionSettings> {
1364
- /**
1365
- * @generated from field: repeated livekit.RegionInfo regions = 1;
1366
- */
1367
- regions: RegionInfo[];
1368
- constructor(data?: PartialMessage<RegionSettings>);
1369
- static readonly runtime: typeof proto3;
1370
- static readonly typeName = "livekit.RegionSettings";
1371
- static readonly fields: FieldList;
1372
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): RegionSettings;
1373
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): RegionSettings;
1374
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): RegionSettings;
1375
- static equals(a: RegionSettings | PlainMessage<RegionSettings> | undefined, b: RegionSettings | PlainMessage<RegionSettings> | undefined): boolean;
1376
- }
1377
- /**
1378
- * @generated from message livekit.RegionInfo
1379
- */
1380
- export declare class RegionInfo extends Message<RegionInfo> {
1381
- /**
1382
- * @generated from field: string region = 1;
1383
- */
1384
- region: string;
1385
- /**
1386
- * @generated from field: string url = 2;
1387
- */
1388
- url: string;
1389
- /**
1390
- * @generated from field: int64 distance = 3;
1391
- */
1392
- distance: bigint;
1393
- constructor(data?: PartialMessage<RegionInfo>);
1394
- static readonly runtime: typeof proto3;
1395
- static readonly typeName = "livekit.RegionInfo";
1396
- static readonly fields: FieldList;
1397
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): RegionInfo;
1398
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): RegionInfo;
1399
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): RegionInfo;
1400
- static equals(a: RegionInfo | PlainMessage<RegionInfo> | undefined, b: RegionInfo | PlainMessage<RegionInfo> | undefined): boolean;
1401
- }
1402
- /**
1403
- * @generated from message livekit.SubscriptionResponse
1404
- */
1405
- export declare class SubscriptionResponse extends Message<SubscriptionResponse> {
1406
- /**
1407
- * @generated from field: string track_sid = 1;
1408
- */
1409
- trackSid: string;
1410
- /**
1411
- * @generated from field: livekit.SubscriptionError err = 2;
1412
- */
1413
- err: SubscriptionError;
1414
- constructor(data?: PartialMessage<SubscriptionResponse>);
1415
- static readonly runtime: typeof proto3;
1416
- static readonly typeName = "livekit.SubscriptionResponse";
1417
- static readonly fields: FieldList;
1418
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SubscriptionResponse;
1419
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SubscriptionResponse;
1420
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SubscriptionResponse;
1421
- static equals(a: SubscriptionResponse | PlainMessage<SubscriptionResponse> | undefined, b: SubscriptionResponse | PlainMessage<SubscriptionResponse> | undefined): boolean;
1422
- }
1423
- //# sourceMappingURL=livekit_rtc_pb.d.ts.map