livekit-server-sdk 2.1.0 → 2.1.2

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