livekit-client 2.0.5 → 2.0.6

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