livekit-client 2.0.4 → 2.0.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (99) hide show
  1. package/dist/livekit-client.e2ee.worker.js +1 -1
  2. package/dist/livekit-client.e2ee.worker.js.map +1 -1
  3. package/dist/livekit-client.e2ee.worker.mjs +10 -8
  4. package/dist/livekit-client.e2ee.worker.mjs.map +1 -1
  5. package/dist/livekit-client.esm.mjs +10400 -9929
  6. package/dist/livekit-client.esm.mjs.map +1 -1
  7. package/dist/livekit-client.umd.js +1 -1
  8. package/dist/livekit-client.umd.js.map +1 -1
  9. package/dist/src/api/SignalClient.d.ts +2 -3
  10. package/dist/src/api/SignalClient.d.ts.map +1 -1
  11. package/dist/src/e2ee/E2eeManager.d.ts.map +1 -1
  12. package/dist/src/e2ee/worker/FrameCryptor.d.ts +1 -0
  13. package/dist/src/e2ee/worker/FrameCryptor.d.ts.map +1 -1
  14. package/dist/src/index.d.ts +1 -1
  15. package/dist/src/index.d.ts.map +1 -1
  16. package/dist/src/logger.d.ts +2 -2
  17. package/dist/src/logger.d.ts.map +1 -1
  18. package/dist/src/room/PCTransportManager.d.ts +1 -1
  19. package/dist/src/room/PCTransportManager.d.ts.map +1 -1
  20. package/dist/src/room/RTCEngine.d.ts +4 -4
  21. package/dist/src/room/RTCEngine.d.ts.map +1 -1
  22. package/dist/src/room/RegionUrlProvider.d.ts +1 -1
  23. package/dist/src/room/RegionUrlProvider.d.ts.map +1 -1
  24. package/dist/src/room/Room.d.ts +1 -1
  25. package/dist/src/room/Room.d.ts.map +1 -1
  26. package/dist/src/room/participant/LocalParticipant.d.ts +1 -1
  27. package/dist/src/room/participant/LocalParticipant.d.ts.map +1 -1
  28. package/dist/src/room/participant/Participant.d.ts +2 -3
  29. package/dist/src/room/participant/Participant.d.ts.map +1 -1
  30. package/dist/src/room/participant/ParticipantTrackPermission.d.ts +1 -1
  31. package/dist/src/room/participant/ParticipantTrackPermission.d.ts.map +1 -1
  32. package/dist/src/room/participant/RemoteParticipant.d.ts +5 -1
  33. package/dist/src/room/participant/RemoteParticipant.d.ts.map +1 -1
  34. package/dist/src/room/track/LocalAudioTrack.d.ts.map +1 -1
  35. package/dist/src/room/track/LocalTrackPublication.d.ts +1 -1
  36. package/dist/src/room/track/LocalTrackPublication.d.ts.map +1 -1
  37. package/dist/src/room/track/LocalVideoTrack.d.ts +1 -2
  38. package/dist/src/room/track/LocalVideoTrack.d.ts.map +1 -1
  39. package/dist/src/room/track/RemoteTrackPublication.d.ts +1 -1
  40. package/dist/src/room/track/RemoteTrackPublication.d.ts.map +1 -1
  41. package/dist/src/room/track/Track.d.ts +1 -2
  42. package/dist/src/room/track/Track.d.ts.map +1 -1
  43. package/dist/src/room/track/TrackPublication.d.ts +2 -3
  44. package/dist/src/room/track/TrackPublication.d.ts.map +1 -1
  45. package/dist/src/room/track/utils.d.ts +1 -1
  46. package/dist/src/room/track/utils.d.ts.map +1 -1
  47. package/dist/src/room/utils.d.ts +1 -1
  48. package/dist/src/room/utils.d.ts.map +1 -1
  49. package/dist/ts4.2/src/api/SignalClient.d.ts +2 -3
  50. package/dist/ts4.2/src/e2ee/worker/FrameCryptor.d.ts +1 -0
  51. package/dist/ts4.2/src/index.d.ts +1 -1
  52. package/dist/ts4.2/src/logger.d.ts +2 -2
  53. package/dist/ts4.2/src/room/PCTransportManager.d.ts +1 -1
  54. package/dist/ts4.2/src/room/RTCEngine.d.ts +5 -5
  55. package/dist/ts4.2/src/room/RegionUrlProvider.d.ts +1 -1
  56. package/dist/ts4.2/src/room/Room.d.ts +1 -1
  57. package/dist/ts4.2/src/room/participant/LocalParticipant.d.ts +1 -1
  58. package/dist/ts4.2/src/room/participant/Participant.d.ts +2 -3
  59. package/dist/ts4.2/src/room/participant/ParticipantTrackPermission.d.ts +1 -1
  60. package/dist/ts4.2/src/room/participant/RemoteParticipant.d.ts +5 -1
  61. package/dist/ts4.2/src/room/track/LocalTrackPublication.d.ts +1 -1
  62. package/dist/ts4.2/src/room/track/LocalVideoTrack.d.ts +1 -2
  63. package/dist/ts4.2/src/room/track/RemoteTrackPublication.d.ts +1 -1
  64. package/dist/ts4.2/src/room/track/Track.d.ts +1 -2
  65. package/dist/ts4.2/src/room/track/TrackPublication.d.ts +2 -3
  66. package/dist/ts4.2/src/room/track/utils.d.ts +1 -1
  67. package/dist/ts4.2/src/room/utils.d.ts +1 -1
  68. package/package.json +2 -2
  69. package/src/api/SignalClient.ts +19 -17
  70. package/src/connectionHelper/checks/websocket.ts +1 -1
  71. package/src/e2ee/E2eeManager.ts +1 -1
  72. package/src/e2ee/worker/FrameCryptor.ts +12 -6
  73. package/src/index.ts +1 -1
  74. package/src/logger.ts +21 -18
  75. package/src/room/PCTransportManager.ts +1 -1
  76. package/src/room/RTCEngine.ts +33 -31
  77. package/src/room/RegionUrlProvider.ts +1 -1
  78. package/src/room/Room.ts +36 -25
  79. package/src/room/participant/LocalParticipant.ts +4 -6
  80. package/src/room/participant/Participant.ts +4 -6
  81. package/src/room/participant/ParticipantTrackPermission.ts +1 -1
  82. package/src/room/participant/RemoteParticipant.ts +14 -2
  83. package/src/room/track/LocalAudioTrack.ts +5 -2
  84. package/src/room/track/LocalTrackPublication.ts +1 -1
  85. package/src/room/track/LocalVideoTrack.ts +11 -3
  86. package/src/room/track/RemoteTrackPublication.ts +7 -2
  87. package/src/room/track/Track.ts +6 -6
  88. package/src/room/track/TrackPublication.ts +7 -3
  89. package/src/room/track/facingMode.ts +2 -2
  90. package/src/room/track/utils.ts +19 -12
  91. package/src/room/utils.ts +4 -1
  92. package/dist/src/proto/livekit_models_pb.d.ts +0 -1405
  93. package/dist/src/proto/livekit_models_pb.d.ts.map +0 -1
  94. package/dist/src/proto/livekit_rtc_pb.d.ts +0 -1423
  95. package/dist/src/proto/livekit_rtc_pb.d.ts.map +0 -1
  96. package/dist/ts4.2/src/proto/livekit_models_pb.d.ts +0 -1405
  97. package/dist/ts4.2/src/proto/livekit_rtc_pb.d.ts +0 -1423
  98. package/src/proto/livekit_models_pb.ts +0 -2327
  99. package/src/proto/livekit_rtc_pb.ts +0 -2411
@@ -1,2327 +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_models.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, Timestamp } from "@bufbuild/protobuf";
22
-
23
- /**
24
- * @generated from enum livekit.AudioCodec
25
- */
26
- export enum AudioCodec {
27
- /**
28
- * @generated from enum value: DEFAULT_AC = 0;
29
- */
30
- DEFAULT_AC = 0,
31
-
32
- /**
33
- * @generated from enum value: OPUS = 1;
34
- */
35
- OPUS = 1,
36
-
37
- /**
38
- * @generated from enum value: AAC = 2;
39
- */
40
- AAC = 2,
41
- }
42
- // Retrieve enum metadata with: proto3.getEnumType(AudioCodec)
43
- proto3.util.setEnumType(AudioCodec, "livekit.AudioCodec", [
44
- { no: 0, name: "DEFAULT_AC" },
45
- { no: 1, name: "OPUS" },
46
- { no: 2, name: "AAC" },
47
- ]);
48
-
49
- /**
50
- * @generated from enum livekit.VideoCodec
51
- */
52
- export enum VideoCodec {
53
- /**
54
- * @generated from enum value: DEFAULT_VC = 0;
55
- */
56
- DEFAULT_VC = 0,
57
-
58
- /**
59
- * @generated from enum value: H264_BASELINE = 1;
60
- */
61
- H264_BASELINE = 1,
62
-
63
- /**
64
- * @generated from enum value: H264_MAIN = 2;
65
- */
66
- H264_MAIN = 2,
67
-
68
- /**
69
- * @generated from enum value: H264_HIGH = 3;
70
- */
71
- H264_HIGH = 3,
72
-
73
- /**
74
- * @generated from enum value: VP8 = 4;
75
- */
76
- VP8 = 4,
77
- }
78
- // Retrieve enum metadata with: proto3.getEnumType(VideoCodec)
79
- proto3.util.setEnumType(VideoCodec, "livekit.VideoCodec", [
80
- { no: 0, name: "DEFAULT_VC" },
81
- { no: 1, name: "H264_BASELINE" },
82
- { no: 2, name: "H264_MAIN" },
83
- { no: 3, name: "H264_HIGH" },
84
- { no: 4, name: "VP8" },
85
- ]);
86
-
87
- /**
88
- * @generated from enum livekit.ImageCodec
89
- */
90
- export enum ImageCodec {
91
- /**
92
- * @generated from enum value: IC_DEFAULT = 0;
93
- */
94
- IC_DEFAULT = 0,
95
-
96
- /**
97
- * @generated from enum value: IC_JPEG = 1;
98
- */
99
- IC_JPEG = 1,
100
- }
101
- // Retrieve enum metadata with: proto3.getEnumType(ImageCodec)
102
- proto3.util.setEnumType(ImageCodec, "livekit.ImageCodec", [
103
- { no: 0, name: "IC_DEFAULT" },
104
- { no: 1, name: "IC_JPEG" },
105
- ]);
106
-
107
- /**
108
- * @generated from enum livekit.TrackType
109
- */
110
- export enum TrackType {
111
- /**
112
- * @generated from enum value: AUDIO = 0;
113
- */
114
- AUDIO = 0,
115
-
116
- /**
117
- * @generated from enum value: VIDEO = 1;
118
- */
119
- VIDEO = 1,
120
-
121
- /**
122
- * @generated from enum value: DATA = 2;
123
- */
124
- DATA = 2,
125
- }
126
- // Retrieve enum metadata with: proto3.getEnumType(TrackType)
127
- proto3.util.setEnumType(TrackType, "livekit.TrackType", [
128
- { no: 0, name: "AUDIO" },
129
- { no: 1, name: "VIDEO" },
130
- { no: 2, name: "DATA" },
131
- ]);
132
-
133
- /**
134
- * @generated from enum livekit.TrackSource
135
- */
136
- export enum TrackSource {
137
- /**
138
- * @generated from enum value: UNKNOWN = 0;
139
- */
140
- UNKNOWN = 0,
141
-
142
- /**
143
- * @generated from enum value: CAMERA = 1;
144
- */
145
- CAMERA = 1,
146
-
147
- /**
148
- * @generated from enum value: MICROPHONE = 2;
149
- */
150
- MICROPHONE = 2,
151
-
152
- /**
153
- * @generated from enum value: SCREEN_SHARE = 3;
154
- */
155
- SCREEN_SHARE = 3,
156
-
157
- /**
158
- * @generated from enum value: SCREEN_SHARE_AUDIO = 4;
159
- */
160
- SCREEN_SHARE_AUDIO = 4,
161
- }
162
- // Retrieve enum metadata with: proto3.getEnumType(TrackSource)
163
- proto3.util.setEnumType(TrackSource, "livekit.TrackSource", [
164
- { no: 0, name: "UNKNOWN" },
165
- { no: 1, name: "CAMERA" },
166
- { no: 2, name: "MICROPHONE" },
167
- { no: 3, name: "SCREEN_SHARE" },
168
- { no: 4, name: "SCREEN_SHARE_AUDIO" },
169
- ]);
170
-
171
- /**
172
- * @generated from enum livekit.VideoQuality
173
- */
174
- export enum VideoQuality {
175
- /**
176
- * @generated from enum value: LOW = 0;
177
- */
178
- LOW = 0,
179
-
180
- /**
181
- * @generated from enum value: MEDIUM = 1;
182
- */
183
- MEDIUM = 1,
184
-
185
- /**
186
- * @generated from enum value: HIGH = 2;
187
- */
188
- HIGH = 2,
189
-
190
- /**
191
- * @generated from enum value: OFF = 3;
192
- */
193
- OFF = 3,
194
- }
195
- // Retrieve enum metadata with: proto3.getEnumType(VideoQuality)
196
- proto3.util.setEnumType(VideoQuality, "livekit.VideoQuality", [
197
- { no: 0, name: "LOW" },
198
- { no: 1, name: "MEDIUM" },
199
- { no: 2, name: "HIGH" },
200
- { no: 3, name: "OFF" },
201
- ]);
202
-
203
- /**
204
- * @generated from enum livekit.ConnectionQuality
205
- */
206
- export enum ConnectionQuality {
207
- /**
208
- * @generated from enum value: POOR = 0;
209
- */
210
- POOR = 0,
211
-
212
- /**
213
- * @generated from enum value: GOOD = 1;
214
- */
215
- GOOD = 1,
216
-
217
- /**
218
- * @generated from enum value: EXCELLENT = 2;
219
- */
220
- EXCELLENT = 2,
221
-
222
- /**
223
- * @generated from enum value: LOST = 3;
224
- */
225
- LOST = 3,
226
- }
227
- // Retrieve enum metadata with: proto3.getEnumType(ConnectionQuality)
228
- proto3.util.setEnumType(ConnectionQuality, "livekit.ConnectionQuality", [
229
- { no: 0, name: "POOR" },
230
- { no: 1, name: "GOOD" },
231
- { no: 2, name: "EXCELLENT" },
232
- { no: 3, name: "LOST" },
233
- ]);
234
-
235
- /**
236
- * @generated from enum livekit.ClientConfigSetting
237
- */
238
- export enum ClientConfigSetting {
239
- /**
240
- * @generated from enum value: UNSET = 0;
241
- */
242
- UNSET = 0,
243
-
244
- /**
245
- * @generated from enum value: DISABLED = 1;
246
- */
247
- DISABLED = 1,
248
-
249
- /**
250
- * @generated from enum value: ENABLED = 2;
251
- */
252
- ENABLED = 2,
253
- }
254
- // Retrieve enum metadata with: proto3.getEnumType(ClientConfigSetting)
255
- proto3.util.setEnumType(ClientConfigSetting, "livekit.ClientConfigSetting", [
256
- { no: 0, name: "UNSET" },
257
- { no: 1, name: "DISABLED" },
258
- { no: 2, name: "ENABLED" },
259
- ]);
260
-
261
- /**
262
- * @generated from enum livekit.DisconnectReason
263
- */
264
- export enum DisconnectReason {
265
- /**
266
- * @generated from enum value: UNKNOWN_REASON = 0;
267
- */
268
- UNKNOWN_REASON = 0,
269
-
270
- /**
271
- * @generated from enum value: CLIENT_INITIATED = 1;
272
- */
273
- CLIENT_INITIATED = 1,
274
-
275
- /**
276
- * @generated from enum value: DUPLICATE_IDENTITY = 2;
277
- */
278
- DUPLICATE_IDENTITY = 2,
279
-
280
- /**
281
- * @generated from enum value: SERVER_SHUTDOWN = 3;
282
- */
283
- SERVER_SHUTDOWN = 3,
284
-
285
- /**
286
- * @generated from enum value: PARTICIPANT_REMOVED = 4;
287
- */
288
- PARTICIPANT_REMOVED = 4,
289
-
290
- /**
291
- * @generated from enum value: ROOM_DELETED = 5;
292
- */
293
- ROOM_DELETED = 5,
294
-
295
- /**
296
- * @generated from enum value: STATE_MISMATCH = 6;
297
- */
298
- STATE_MISMATCH = 6,
299
-
300
- /**
301
- * @generated from enum value: JOIN_FAILURE = 7;
302
- */
303
- JOIN_FAILURE = 7,
304
-
305
- /**
306
- * @generated from enum value: MIGRATION = 8;
307
- */
308
- MIGRATION = 8,
309
-
310
- /**
311
- * @generated from enum value: SIGNAL_CLOSE = 9;
312
- */
313
- SIGNAL_CLOSE = 9,
314
- }
315
- // Retrieve enum metadata with: proto3.getEnumType(DisconnectReason)
316
- proto3.util.setEnumType(DisconnectReason, "livekit.DisconnectReason", [
317
- { no: 0, name: "UNKNOWN_REASON" },
318
- { no: 1, name: "CLIENT_INITIATED" },
319
- { no: 2, name: "DUPLICATE_IDENTITY" },
320
- { no: 3, name: "SERVER_SHUTDOWN" },
321
- { no: 4, name: "PARTICIPANT_REMOVED" },
322
- { no: 5, name: "ROOM_DELETED" },
323
- { no: 6, name: "STATE_MISMATCH" },
324
- { no: 7, name: "JOIN_FAILURE" },
325
- { no: 8, name: "MIGRATION" },
326
- { no: 9, name: "SIGNAL_CLOSE" },
327
- ]);
328
-
329
- /**
330
- * @generated from enum livekit.ReconnectReason
331
- */
332
- export enum ReconnectReason {
333
- /**
334
- * @generated from enum value: RR_UNKNOWN = 0;
335
- */
336
- RR_UNKNOWN = 0,
337
-
338
- /**
339
- * @generated from enum value: RR_SIGNAL_DISCONNECTED = 1;
340
- */
341
- RR_SIGNAL_DISCONNECTED = 1,
342
-
343
- /**
344
- * @generated from enum value: RR_PUBLISHER_FAILED = 2;
345
- */
346
- RR_PUBLISHER_FAILED = 2,
347
-
348
- /**
349
- * @generated from enum value: RR_SUBSCRIBER_FAILED = 3;
350
- */
351
- RR_SUBSCRIBER_FAILED = 3,
352
-
353
- /**
354
- * @generated from enum value: RR_SWITCH_CANDIDATE = 4;
355
- */
356
- RR_SWITCH_CANDIDATE = 4,
357
- }
358
- // Retrieve enum metadata with: proto3.getEnumType(ReconnectReason)
359
- proto3.util.setEnumType(ReconnectReason, "livekit.ReconnectReason", [
360
- { no: 0, name: "RR_UNKNOWN" },
361
- { no: 1, name: "RR_SIGNAL_DISCONNECTED" },
362
- { no: 2, name: "RR_PUBLISHER_FAILED" },
363
- { no: 3, name: "RR_SUBSCRIBER_FAILED" },
364
- { no: 4, name: "RR_SWITCH_CANDIDATE" },
365
- ]);
366
-
367
- /**
368
- * @generated from enum livekit.SubscriptionError
369
- */
370
- export enum SubscriptionError {
371
- /**
372
- * @generated from enum value: SE_UNKNOWN = 0;
373
- */
374
- SE_UNKNOWN = 0,
375
-
376
- /**
377
- * @generated from enum value: SE_CODEC_UNSUPPORTED = 1;
378
- */
379
- SE_CODEC_UNSUPPORTED = 1,
380
-
381
- /**
382
- * @generated from enum value: SE_TRACK_NOTFOUND = 2;
383
- */
384
- SE_TRACK_NOTFOUND = 2,
385
- }
386
- // Retrieve enum metadata with: proto3.getEnumType(SubscriptionError)
387
- proto3.util.setEnumType(SubscriptionError, "livekit.SubscriptionError", [
388
- { no: 0, name: "SE_UNKNOWN" },
389
- { no: 1, name: "SE_CODEC_UNSUPPORTED" },
390
- { no: 2, name: "SE_TRACK_NOTFOUND" },
391
- ]);
392
-
393
- /**
394
- * @generated from message livekit.Room
395
- */
396
- export class Room extends Message<Room> {
397
- /**
398
- * @generated from field: string sid = 1;
399
- */
400
- sid = "";
401
-
402
- /**
403
- * @generated from field: string name = 2;
404
- */
405
- name = "";
406
-
407
- /**
408
- * @generated from field: uint32 empty_timeout = 3;
409
- */
410
- emptyTimeout = 0;
411
-
412
- /**
413
- * @generated from field: uint32 max_participants = 4;
414
- */
415
- maxParticipants = 0;
416
-
417
- /**
418
- * @generated from field: int64 creation_time = 5;
419
- */
420
- creationTime = protoInt64.zero;
421
-
422
- /**
423
- * @generated from field: string turn_password = 6;
424
- */
425
- turnPassword = "";
426
-
427
- /**
428
- * @generated from field: repeated livekit.Codec enabled_codecs = 7;
429
- */
430
- enabledCodecs: Codec[] = [];
431
-
432
- /**
433
- * @generated from field: string metadata = 8;
434
- */
435
- metadata = "";
436
-
437
- /**
438
- * @generated from field: uint32 num_participants = 9;
439
- */
440
- numParticipants = 0;
441
-
442
- /**
443
- * @generated from field: uint32 num_publishers = 11;
444
- */
445
- numPublishers = 0;
446
-
447
- /**
448
- * @generated from field: bool active_recording = 10;
449
- */
450
- activeRecording = false;
451
-
452
- /**
453
- * @generated from field: livekit.TimedVersion version = 13;
454
- */
455
- version?: TimedVersion;
456
-
457
- constructor(data?: PartialMessage<Room>) {
458
- super();
459
- proto3.util.initPartial(data, this);
460
- }
461
-
462
- static readonly runtime: typeof proto3 = proto3;
463
- static readonly typeName = "livekit.Room";
464
- static readonly fields: FieldList = proto3.util.newFieldList(() => [
465
- { no: 1, name: "sid", kind: "scalar", T: 9 /* ScalarType.STRING */ },
466
- { no: 2, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
467
- { no: 3, name: "empty_timeout", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
468
- { no: 4, name: "max_participants", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
469
- { no: 5, name: "creation_time", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
470
- { no: 6, name: "turn_password", kind: "scalar", T: 9 /* ScalarType.STRING */ },
471
- { no: 7, name: "enabled_codecs", kind: "message", T: Codec, repeated: true },
472
- { no: 8, name: "metadata", kind: "scalar", T: 9 /* ScalarType.STRING */ },
473
- { no: 9, name: "num_participants", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
474
- { no: 11, name: "num_publishers", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
475
- { no: 10, name: "active_recording", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
476
- { no: 13, name: "version", kind: "message", T: TimedVersion },
477
- ]);
478
-
479
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Room {
480
- return new Room().fromBinary(bytes, options);
481
- }
482
-
483
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Room {
484
- return new Room().fromJson(jsonValue, options);
485
- }
486
-
487
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Room {
488
- return new Room().fromJsonString(jsonString, options);
489
- }
490
-
491
- static equals(a: Room | PlainMessage<Room> | undefined, b: Room | PlainMessage<Room> | undefined): boolean {
492
- return proto3.util.equals(Room, a, b);
493
- }
494
- }
495
-
496
- /**
497
- * @generated from message livekit.Codec
498
- */
499
- export class Codec extends Message<Codec> {
500
- /**
501
- * @generated from field: string mime = 1;
502
- */
503
- mime = "";
504
-
505
- /**
506
- * @generated from field: string fmtp_line = 2;
507
- */
508
- fmtpLine = "";
509
-
510
- constructor(data?: PartialMessage<Codec>) {
511
- super();
512
- proto3.util.initPartial(data, this);
513
- }
514
-
515
- static readonly runtime: typeof proto3 = proto3;
516
- static readonly typeName = "livekit.Codec";
517
- static readonly fields: FieldList = proto3.util.newFieldList(() => [
518
- { no: 1, name: "mime", kind: "scalar", T: 9 /* ScalarType.STRING */ },
519
- { no: 2, name: "fmtp_line", kind: "scalar", T: 9 /* ScalarType.STRING */ },
520
- ]);
521
-
522
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Codec {
523
- return new Codec().fromBinary(bytes, options);
524
- }
525
-
526
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Codec {
527
- return new Codec().fromJson(jsonValue, options);
528
- }
529
-
530
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Codec {
531
- return new Codec().fromJsonString(jsonString, options);
532
- }
533
-
534
- static equals(a: Codec | PlainMessage<Codec> | undefined, b: Codec | PlainMessage<Codec> | undefined): boolean {
535
- return proto3.util.equals(Codec, a, b);
536
- }
537
- }
538
-
539
- /**
540
- * @generated from message livekit.PlayoutDelay
541
- */
542
- export class PlayoutDelay extends Message<PlayoutDelay> {
543
- /**
544
- * @generated from field: bool enabled = 1;
545
- */
546
- enabled = false;
547
-
548
- /**
549
- * @generated from field: uint32 min = 2;
550
- */
551
- min = 0;
552
-
553
- /**
554
- * @generated from field: uint32 max = 3;
555
- */
556
- max = 0;
557
-
558
- constructor(data?: PartialMessage<PlayoutDelay>) {
559
- super();
560
- proto3.util.initPartial(data, this);
561
- }
562
-
563
- static readonly runtime: typeof proto3 = proto3;
564
- static readonly typeName = "livekit.PlayoutDelay";
565
- static readonly fields: FieldList = proto3.util.newFieldList(() => [
566
- { no: 1, name: "enabled", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
567
- { no: 2, name: "min", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
568
- { no: 3, name: "max", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
569
- ]);
570
-
571
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): PlayoutDelay {
572
- return new PlayoutDelay().fromBinary(bytes, options);
573
- }
574
-
575
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): PlayoutDelay {
576
- return new PlayoutDelay().fromJson(jsonValue, options);
577
- }
578
-
579
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): PlayoutDelay {
580
- return new PlayoutDelay().fromJsonString(jsonString, options);
581
- }
582
-
583
- static equals(a: PlayoutDelay | PlainMessage<PlayoutDelay> | undefined, b: PlayoutDelay | PlainMessage<PlayoutDelay> | undefined): boolean {
584
- return proto3.util.equals(PlayoutDelay, a, b);
585
- }
586
- }
587
-
588
- /**
589
- * @generated from message livekit.ParticipantPermission
590
- */
591
- export class ParticipantPermission extends Message<ParticipantPermission> {
592
- /**
593
- * allow participant to subscribe to other tracks in the room
594
- *
595
- * @generated from field: bool can_subscribe = 1;
596
- */
597
- canSubscribe = false;
598
-
599
- /**
600
- * allow participant to publish new tracks to room
601
- *
602
- * @generated from field: bool can_publish = 2;
603
- */
604
- canPublish = false;
605
-
606
- /**
607
- * allow participant to publish data
608
- *
609
- * @generated from field: bool can_publish_data = 3;
610
- */
611
- canPublishData = false;
612
-
613
- /**
614
- * sources that are allowed to be published
615
- *
616
- * @generated from field: repeated livekit.TrackSource can_publish_sources = 9;
617
- */
618
- canPublishSources: TrackSource[] = [];
619
-
620
- /**
621
- * indicates that it's hidden to others
622
- *
623
- * @generated from field: bool hidden = 7;
624
- */
625
- hidden = false;
626
-
627
- /**
628
- * indicates it's a recorder instance
629
- *
630
- * @generated from field: bool recorder = 8;
631
- */
632
- recorder = false;
633
-
634
- /**
635
- * indicates that participant can update own metadata
636
- *
637
- * @generated from field: bool can_update_metadata = 10;
638
- */
639
- canUpdateMetadata = false;
640
-
641
- /**
642
- * indicates that participant is an agent
643
- *
644
- * @generated from field: bool agent = 11;
645
- */
646
- agent = false;
647
-
648
- constructor(data?: PartialMessage<ParticipantPermission>) {
649
- super();
650
- proto3.util.initPartial(data, this);
651
- }
652
-
653
- static readonly runtime: typeof proto3 = proto3;
654
- static readonly typeName = "livekit.ParticipantPermission";
655
- static readonly fields: FieldList = proto3.util.newFieldList(() => [
656
- { no: 1, name: "can_subscribe", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
657
- { no: 2, name: "can_publish", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
658
- { no: 3, name: "can_publish_data", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
659
- { no: 9, name: "can_publish_sources", kind: "enum", T: proto3.getEnumType(TrackSource), repeated: true },
660
- { no: 7, name: "hidden", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
661
- { no: 8, name: "recorder", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
662
- { no: 10, name: "can_update_metadata", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
663
- { no: 11, name: "agent", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
664
- ]);
665
-
666
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ParticipantPermission {
667
- return new ParticipantPermission().fromBinary(bytes, options);
668
- }
669
-
670
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ParticipantPermission {
671
- return new ParticipantPermission().fromJson(jsonValue, options);
672
- }
673
-
674
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ParticipantPermission {
675
- return new ParticipantPermission().fromJsonString(jsonString, options);
676
- }
677
-
678
- static equals(a: ParticipantPermission | PlainMessage<ParticipantPermission> | undefined, b: ParticipantPermission | PlainMessage<ParticipantPermission> | undefined): boolean {
679
- return proto3.util.equals(ParticipantPermission, a, b);
680
- }
681
- }
682
-
683
- /**
684
- * @generated from message livekit.ParticipantInfo
685
- */
686
- export class ParticipantInfo extends Message<ParticipantInfo> {
687
- /**
688
- * @generated from field: string sid = 1;
689
- */
690
- sid = "";
691
-
692
- /**
693
- * @generated from field: string identity = 2;
694
- */
695
- identity = "";
696
-
697
- /**
698
- * @generated from field: livekit.ParticipantInfo.State state = 3;
699
- */
700
- state = ParticipantInfo_State.JOINING;
701
-
702
- /**
703
- * @generated from field: repeated livekit.TrackInfo tracks = 4;
704
- */
705
- tracks: TrackInfo[] = [];
706
-
707
- /**
708
- * @generated from field: string metadata = 5;
709
- */
710
- metadata = "";
711
-
712
- /**
713
- * timestamp when participant joined room, in seconds
714
- *
715
- * @generated from field: int64 joined_at = 6;
716
- */
717
- joinedAt = protoInt64.zero;
718
-
719
- /**
720
- * @generated from field: string name = 9;
721
- */
722
- name = "";
723
-
724
- /**
725
- * @generated from field: uint32 version = 10;
726
- */
727
- version = 0;
728
-
729
- /**
730
- * @generated from field: livekit.ParticipantPermission permission = 11;
731
- */
732
- permission?: ParticipantPermission;
733
-
734
- /**
735
- * @generated from field: string region = 12;
736
- */
737
- region = "";
738
-
739
- /**
740
- * indicates the participant has an active publisher connection
741
- * and can publish to the server
742
- *
743
- * @generated from field: bool is_publisher = 13;
744
- */
745
- isPublisher = false;
746
-
747
- /**
748
- * @generated from field: livekit.ParticipantInfo.Kind kind = 14;
749
- */
750
- kind = ParticipantInfo_Kind.STANDARD;
751
-
752
- constructor(data?: PartialMessage<ParticipantInfo>) {
753
- super();
754
- proto3.util.initPartial(data, this);
755
- }
756
-
757
- static readonly runtime: typeof proto3 = proto3;
758
- static readonly typeName = "livekit.ParticipantInfo";
759
- static readonly fields: FieldList = proto3.util.newFieldList(() => [
760
- { no: 1, name: "sid", kind: "scalar", T: 9 /* ScalarType.STRING */ },
761
- { no: 2, name: "identity", kind: "scalar", T: 9 /* ScalarType.STRING */ },
762
- { no: 3, name: "state", kind: "enum", T: proto3.getEnumType(ParticipantInfo_State) },
763
- { no: 4, name: "tracks", kind: "message", T: TrackInfo, repeated: true },
764
- { no: 5, name: "metadata", kind: "scalar", T: 9 /* ScalarType.STRING */ },
765
- { no: 6, name: "joined_at", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
766
- { no: 9, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
767
- { no: 10, name: "version", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
768
- { no: 11, name: "permission", kind: "message", T: ParticipantPermission },
769
- { no: 12, name: "region", kind: "scalar", T: 9 /* ScalarType.STRING */ },
770
- { no: 13, name: "is_publisher", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
771
- { no: 14, name: "kind", kind: "enum", T: proto3.getEnumType(ParticipantInfo_Kind) },
772
- ]);
773
-
774
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ParticipantInfo {
775
- return new ParticipantInfo().fromBinary(bytes, options);
776
- }
777
-
778
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ParticipantInfo {
779
- return new ParticipantInfo().fromJson(jsonValue, options);
780
- }
781
-
782
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ParticipantInfo {
783
- return new ParticipantInfo().fromJsonString(jsonString, options);
784
- }
785
-
786
- static equals(a: ParticipantInfo | PlainMessage<ParticipantInfo> | undefined, b: ParticipantInfo | PlainMessage<ParticipantInfo> | undefined): boolean {
787
- return proto3.util.equals(ParticipantInfo, a, b);
788
- }
789
- }
790
-
791
- /**
792
- * @generated from enum livekit.ParticipantInfo.State
793
- */
794
- export enum ParticipantInfo_State {
795
- /**
796
- * websocket' connected, but not offered yet
797
- *
798
- * @generated from enum value: JOINING = 0;
799
- */
800
- JOINING = 0,
801
-
802
- /**
803
- * server received client offer
804
- *
805
- * @generated from enum value: JOINED = 1;
806
- */
807
- JOINED = 1,
808
-
809
- /**
810
- * ICE connectivity established
811
- *
812
- * @generated from enum value: ACTIVE = 2;
813
- */
814
- ACTIVE = 2,
815
-
816
- /**
817
- * WS disconnected
818
- *
819
- * @generated from enum value: DISCONNECTED = 3;
820
- */
821
- DISCONNECTED = 3,
822
- }
823
- // Retrieve enum metadata with: proto3.getEnumType(ParticipantInfo_State)
824
- proto3.util.setEnumType(ParticipantInfo_State, "livekit.ParticipantInfo.State", [
825
- { no: 0, name: "JOINING" },
826
- { no: 1, name: "JOINED" },
827
- { no: 2, name: "ACTIVE" },
828
- { no: 3, name: "DISCONNECTED" },
829
- ]);
830
-
831
- /**
832
- * @generated from enum livekit.ParticipantInfo.Kind
833
- */
834
- export enum ParticipantInfo_Kind {
835
- /**
836
- * standard participants, e.g. web clients
837
- *
838
- * @generated from enum value: STANDARD = 0;
839
- */
840
- STANDARD = 0,
841
-
842
- /**
843
- * only ingests streams
844
- *
845
- * @generated from enum value: INGRESS = 1;
846
- */
847
- INGRESS = 1,
848
-
849
- /**
850
- * only consumes streams
851
- *
852
- * @generated from enum value: EGRESS = 2;
853
- */
854
- EGRESS = 2,
855
-
856
- /**
857
- * SIP participants
858
- *
859
- * @generated from enum value: SIP = 3;
860
- */
861
- SIP = 3,
862
-
863
- /**
864
- * LiveKit agents
865
- *
866
- * @generated from enum value: AGENT = 4;
867
- */
868
- AGENT = 4,
869
- }
870
- // Retrieve enum metadata with: proto3.getEnumType(ParticipantInfo_Kind)
871
- proto3.util.setEnumType(ParticipantInfo_Kind, "livekit.ParticipantInfo.Kind", [
872
- { no: 0, name: "STANDARD" },
873
- { no: 1, name: "INGRESS" },
874
- { no: 2, name: "EGRESS" },
875
- { no: 3, name: "SIP" },
876
- { no: 4, name: "AGENT" },
877
- ]);
878
-
879
- /**
880
- * @generated from message livekit.Encryption
881
- */
882
- export class Encryption extends Message<Encryption> {
883
- constructor(data?: PartialMessage<Encryption>) {
884
- super();
885
- proto3.util.initPartial(data, this);
886
- }
887
-
888
- static readonly runtime: typeof proto3 = proto3;
889
- static readonly typeName = "livekit.Encryption";
890
- static readonly fields: FieldList = proto3.util.newFieldList(() => [
891
- ]);
892
-
893
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Encryption {
894
- return new Encryption().fromBinary(bytes, options);
895
- }
896
-
897
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Encryption {
898
- return new Encryption().fromJson(jsonValue, options);
899
- }
900
-
901
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Encryption {
902
- return new Encryption().fromJsonString(jsonString, options);
903
- }
904
-
905
- static equals(a: Encryption | PlainMessage<Encryption> | undefined, b: Encryption | PlainMessage<Encryption> | undefined): boolean {
906
- return proto3.util.equals(Encryption, a, b);
907
- }
908
- }
909
-
910
- /**
911
- * @generated from enum livekit.Encryption.Type
912
- */
913
- export enum Encryption_Type {
914
- /**
915
- * @generated from enum value: NONE = 0;
916
- */
917
- NONE = 0,
918
-
919
- /**
920
- * @generated from enum value: GCM = 1;
921
- */
922
- GCM = 1,
923
-
924
- /**
925
- * @generated from enum value: CUSTOM = 2;
926
- */
927
- CUSTOM = 2,
928
- }
929
- // Retrieve enum metadata with: proto3.getEnumType(Encryption_Type)
930
- proto3.util.setEnumType(Encryption_Type, "livekit.Encryption.Type", [
931
- { no: 0, name: "NONE" },
932
- { no: 1, name: "GCM" },
933
- { no: 2, name: "CUSTOM" },
934
- ]);
935
-
936
- /**
937
- * @generated from message livekit.SimulcastCodecInfo
938
- */
939
- export class SimulcastCodecInfo extends Message<SimulcastCodecInfo> {
940
- /**
941
- * @generated from field: string mime_type = 1;
942
- */
943
- mimeType = "";
944
-
945
- /**
946
- * @generated from field: string mid = 2;
947
- */
948
- mid = "";
949
-
950
- /**
951
- * @generated from field: string cid = 3;
952
- */
953
- cid = "";
954
-
955
- /**
956
- * @generated from field: repeated livekit.VideoLayer layers = 4;
957
- */
958
- layers: VideoLayer[] = [];
959
-
960
- constructor(data?: PartialMessage<SimulcastCodecInfo>) {
961
- super();
962
- proto3.util.initPartial(data, this);
963
- }
964
-
965
- static readonly runtime: typeof proto3 = proto3;
966
- static readonly typeName = "livekit.SimulcastCodecInfo";
967
- static readonly fields: FieldList = proto3.util.newFieldList(() => [
968
- { no: 1, name: "mime_type", kind: "scalar", T: 9 /* ScalarType.STRING */ },
969
- { no: 2, name: "mid", kind: "scalar", T: 9 /* ScalarType.STRING */ },
970
- { no: 3, name: "cid", kind: "scalar", T: 9 /* ScalarType.STRING */ },
971
- { no: 4, name: "layers", kind: "message", T: VideoLayer, repeated: true },
972
- ]);
973
-
974
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SimulcastCodecInfo {
975
- return new SimulcastCodecInfo().fromBinary(bytes, options);
976
- }
977
-
978
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SimulcastCodecInfo {
979
- return new SimulcastCodecInfo().fromJson(jsonValue, options);
980
- }
981
-
982
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SimulcastCodecInfo {
983
- return new SimulcastCodecInfo().fromJsonString(jsonString, options);
984
- }
985
-
986
- static equals(a: SimulcastCodecInfo | PlainMessage<SimulcastCodecInfo> | undefined, b: SimulcastCodecInfo | PlainMessage<SimulcastCodecInfo> | undefined): boolean {
987
- return proto3.util.equals(SimulcastCodecInfo, a, b);
988
- }
989
- }
990
-
991
- /**
992
- * @generated from message livekit.TrackInfo
993
- */
994
- export class TrackInfo extends Message<TrackInfo> {
995
- /**
996
- * @generated from field: string sid = 1;
997
- */
998
- sid = "";
999
-
1000
- /**
1001
- * @generated from field: livekit.TrackType type = 2;
1002
- */
1003
- type = TrackType.AUDIO;
1004
-
1005
- /**
1006
- * @generated from field: string name = 3;
1007
- */
1008
- name = "";
1009
-
1010
- /**
1011
- * @generated from field: bool muted = 4;
1012
- */
1013
- muted = false;
1014
-
1015
- /**
1016
- * original width of video (unset for audio)
1017
- * clients may receive a lower resolution version with simulcast
1018
- *
1019
- * @generated from field: uint32 width = 5;
1020
- */
1021
- width = 0;
1022
-
1023
- /**
1024
- * original height of video (unset for audio)
1025
- *
1026
- * @generated from field: uint32 height = 6;
1027
- */
1028
- height = 0;
1029
-
1030
- /**
1031
- * true if track is simulcasted
1032
- *
1033
- * @generated from field: bool simulcast = 7;
1034
- */
1035
- simulcast = false;
1036
-
1037
- /**
1038
- * true if DTX (Discontinuous Transmission) is disabled for audio
1039
- *
1040
- * @generated from field: bool disable_dtx = 8;
1041
- */
1042
- disableDtx = false;
1043
-
1044
- /**
1045
- * source of media
1046
- *
1047
- * @generated from field: livekit.TrackSource source = 9;
1048
- */
1049
- source = TrackSource.UNKNOWN;
1050
-
1051
- /**
1052
- * @generated from field: repeated livekit.VideoLayer layers = 10;
1053
- */
1054
- layers: VideoLayer[] = [];
1055
-
1056
- /**
1057
- * mime type of codec
1058
- *
1059
- * @generated from field: string mime_type = 11;
1060
- */
1061
- mimeType = "";
1062
-
1063
- /**
1064
- * @generated from field: string mid = 12;
1065
- */
1066
- mid = "";
1067
-
1068
- /**
1069
- * @generated from field: repeated livekit.SimulcastCodecInfo codecs = 13;
1070
- */
1071
- codecs: SimulcastCodecInfo[] = [];
1072
-
1073
- /**
1074
- * @generated from field: bool stereo = 14;
1075
- */
1076
- stereo = false;
1077
-
1078
- /**
1079
- * true if RED (Redundant Encoding) is disabled for audio
1080
- *
1081
- * @generated from field: bool disable_red = 15;
1082
- */
1083
- disableRed = false;
1084
-
1085
- /**
1086
- * @generated from field: livekit.Encryption.Type encryption = 16;
1087
- */
1088
- encryption = Encryption_Type.NONE;
1089
-
1090
- /**
1091
- * @generated from field: string stream = 17;
1092
- */
1093
- stream = "";
1094
-
1095
- /**
1096
- * @generated from field: livekit.TimedVersion version = 18;
1097
- */
1098
- version?: TimedVersion;
1099
-
1100
- constructor(data?: PartialMessage<TrackInfo>) {
1101
- super();
1102
- proto3.util.initPartial(data, this);
1103
- }
1104
-
1105
- static readonly runtime: typeof proto3 = proto3;
1106
- static readonly typeName = "livekit.TrackInfo";
1107
- static readonly fields: FieldList = proto3.util.newFieldList(() => [
1108
- { no: 1, name: "sid", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1109
- { no: 2, name: "type", kind: "enum", T: proto3.getEnumType(TrackType) },
1110
- { no: 3, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1111
- { no: 4, name: "muted", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
1112
- { no: 5, name: "width", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
1113
- { no: 6, name: "height", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
1114
- { no: 7, name: "simulcast", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
1115
- { no: 8, name: "disable_dtx", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
1116
- { no: 9, name: "source", kind: "enum", T: proto3.getEnumType(TrackSource) },
1117
- { no: 10, name: "layers", kind: "message", T: VideoLayer, repeated: true },
1118
- { no: 11, name: "mime_type", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1119
- { no: 12, name: "mid", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1120
- { no: 13, name: "codecs", kind: "message", T: SimulcastCodecInfo, repeated: true },
1121
- { no: 14, name: "stereo", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
1122
- { no: 15, name: "disable_red", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
1123
- { no: 16, name: "encryption", kind: "enum", T: proto3.getEnumType(Encryption_Type) },
1124
- { no: 17, name: "stream", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1125
- { no: 18, name: "version", kind: "message", T: TimedVersion },
1126
- ]);
1127
-
1128
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): TrackInfo {
1129
- return new TrackInfo().fromBinary(bytes, options);
1130
- }
1131
-
1132
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): TrackInfo {
1133
- return new TrackInfo().fromJson(jsonValue, options);
1134
- }
1135
-
1136
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): TrackInfo {
1137
- return new TrackInfo().fromJsonString(jsonString, options);
1138
- }
1139
-
1140
- static equals(a: TrackInfo | PlainMessage<TrackInfo> | undefined, b: TrackInfo | PlainMessage<TrackInfo> | undefined): boolean {
1141
- return proto3.util.equals(TrackInfo, a, b);
1142
- }
1143
- }
1144
-
1145
- /**
1146
- * provide information about available spatial layers
1147
- *
1148
- * @generated from message livekit.VideoLayer
1149
- */
1150
- export class VideoLayer extends Message<VideoLayer> {
1151
- /**
1152
- * for tracks with a single layer, this should be HIGH
1153
- *
1154
- * @generated from field: livekit.VideoQuality quality = 1;
1155
- */
1156
- quality = VideoQuality.LOW;
1157
-
1158
- /**
1159
- * @generated from field: uint32 width = 2;
1160
- */
1161
- width = 0;
1162
-
1163
- /**
1164
- * @generated from field: uint32 height = 3;
1165
- */
1166
- height = 0;
1167
-
1168
- /**
1169
- * target bitrate in bit per second (bps), server will measure actual
1170
- *
1171
- * @generated from field: uint32 bitrate = 4;
1172
- */
1173
- bitrate = 0;
1174
-
1175
- /**
1176
- * @generated from field: uint32 ssrc = 5;
1177
- */
1178
- ssrc = 0;
1179
-
1180
- constructor(data?: PartialMessage<VideoLayer>) {
1181
- super();
1182
- proto3.util.initPartial(data, this);
1183
- }
1184
-
1185
- static readonly runtime: typeof proto3 = proto3;
1186
- static readonly typeName = "livekit.VideoLayer";
1187
- static readonly fields: FieldList = proto3.util.newFieldList(() => [
1188
- { no: 1, name: "quality", kind: "enum", T: proto3.getEnumType(VideoQuality) },
1189
- { no: 2, name: "width", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
1190
- { no: 3, name: "height", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
1191
- { no: 4, name: "bitrate", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
1192
- { no: 5, name: "ssrc", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
1193
- ]);
1194
-
1195
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): VideoLayer {
1196
- return new VideoLayer().fromBinary(bytes, options);
1197
- }
1198
-
1199
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): VideoLayer {
1200
- return new VideoLayer().fromJson(jsonValue, options);
1201
- }
1202
-
1203
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): VideoLayer {
1204
- return new VideoLayer().fromJsonString(jsonString, options);
1205
- }
1206
-
1207
- static equals(a: VideoLayer | PlainMessage<VideoLayer> | undefined, b: VideoLayer | PlainMessage<VideoLayer> | undefined): boolean {
1208
- return proto3.util.equals(VideoLayer, a, b);
1209
- }
1210
- }
1211
-
1212
- /**
1213
- * new DataPacket API
1214
- *
1215
- * @generated from message livekit.DataPacket
1216
- */
1217
- export class DataPacket extends Message<DataPacket> {
1218
- /**
1219
- * @generated from field: livekit.DataPacket.Kind kind = 1;
1220
- */
1221
- kind = DataPacket_Kind.RELIABLE;
1222
-
1223
- /**
1224
- * @generated from oneof livekit.DataPacket.value
1225
- */
1226
- value: {
1227
- /**
1228
- * @generated from field: livekit.UserPacket user = 2;
1229
- */
1230
- value: UserPacket;
1231
- case: "user";
1232
- } | {
1233
- /**
1234
- * @generated from field: livekit.ActiveSpeakerUpdate speaker = 3;
1235
- */
1236
- value: ActiveSpeakerUpdate;
1237
- case: "speaker";
1238
- } | { case: undefined; value?: undefined } = { case: undefined };
1239
-
1240
- constructor(data?: PartialMessage<DataPacket>) {
1241
- super();
1242
- proto3.util.initPartial(data, this);
1243
- }
1244
-
1245
- static readonly runtime: typeof proto3 = proto3;
1246
- static readonly typeName = "livekit.DataPacket";
1247
- static readonly fields: FieldList = proto3.util.newFieldList(() => [
1248
- { no: 1, name: "kind", kind: "enum", T: proto3.getEnumType(DataPacket_Kind) },
1249
- { no: 2, name: "user", kind: "message", T: UserPacket, oneof: "value" },
1250
- { no: 3, name: "speaker", kind: "message", T: ActiveSpeakerUpdate, oneof: "value" },
1251
- ]);
1252
-
1253
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): DataPacket {
1254
- return new DataPacket().fromBinary(bytes, options);
1255
- }
1256
-
1257
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): DataPacket {
1258
- return new DataPacket().fromJson(jsonValue, options);
1259
- }
1260
-
1261
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): DataPacket {
1262
- return new DataPacket().fromJsonString(jsonString, options);
1263
- }
1264
-
1265
- static equals(a: DataPacket | PlainMessage<DataPacket> | undefined, b: DataPacket | PlainMessage<DataPacket> | undefined): boolean {
1266
- return proto3.util.equals(DataPacket, a, b);
1267
- }
1268
- }
1269
-
1270
- /**
1271
- * @generated from enum livekit.DataPacket.Kind
1272
- */
1273
- export enum DataPacket_Kind {
1274
- /**
1275
- * @generated from enum value: RELIABLE = 0;
1276
- */
1277
- RELIABLE = 0,
1278
-
1279
- /**
1280
- * @generated from enum value: LOSSY = 1;
1281
- */
1282
- LOSSY = 1,
1283
- }
1284
- // Retrieve enum metadata with: proto3.getEnumType(DataPacket_Kind)
1285
- proto3.util.setEnumType(DataPacket_Kind, "livekit.DataPacket.Kind", [
1286
- { no: 0, name: "RELIABLE" },
1287
- { no: 1, name: "LOSSY" },
1288
- ]);
1289
-
1290
- /**
1291
- * @generated from message livekit.ActiveSpeakerUpdate
1292
- */
1293
- export class ActiveSpeakerUpdate extends Message<ActiveSpeakerUpdate> {
1294
- /**
1295
- * @generated from field: repeated livekit.SpeakerInfo speakers = 1;
1296
- */
1297
- speakers: SpeakerInfo[] = [];
1298
-
1299
- constructor(data?: PartialMessage<ActiveSpeakerUpdate>) {
1300
- super();
1301
- proto3.util.initPartial(data, this);
1302
- }
1303
-
1304
- static readonly runtime: typeof proto3 = proto3;
1305
- static readonly typeName = "livekit.ActiveSpeakerUpdate";
1306
- static readonly fields: FieldList = proto3.util.newFieldList(() => [
1307
- { no: 1, name: "speakers", kind: "message", T: SpeakerInfo, repeated: true },
1308
- ]);
1309
-
1310
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ActiveSpeakerUpdate {
1311
- return new ActiveSpeakerUpdate().fromBinary(bytes, options);
1312
- }
1313
-
1314
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ActiveSpeakerUpdate {
1315
- return new ActiveSpeakerUpdate().fromJson(jsonValue, options);
1316
- }
1317
-
1318
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ActiveSpeakerUpdate {
1319
- return new ActiveSpeakerUpdate().fromJsonString(jsonString, options);
1320
- }
1321
-
1322
- static equals(a: ActiveSpeakerUpdate | PlainMessage<ActiveSpeakerUpdate> | undefined, b: ActiveSpeakerUpdate | PlainMessage<ActiveSpeakerUpdate> | undefined): boolean {
1323
- return proto3.util.equals(ActiveSpeakerUpdate, a, b);
1324
- }
1325
- }
1326
-
1327
- /**
1328
- * @generated from message livekit.SpeakerInfo
1329
- */
1330
- export class SpeakerInfo extends Message<SpeakerInfo> {
1331
- /**
1332
- * @generated from field: string sid = 1;
1333
- */
1334
- sid = "";
1335
-
1336
- /**
1337
- * audio level, 0-1.0, 1 is loudest
1338
- *
1339
- * @generated from field: float level = 2;
1340
- */
1341
- level = 0;
1342
-
1343
- /**
1344
- * true if speaker is currently active
1345
- *
1346
- * @generated from field: bool active = 3;
1347
- */
1348
- active = false;
1349
-
1350
- constructor(data?: PartialMessage<SpeakerInfo>) {
1351
- super();
1352
- proto3.util.initPartial(data, this);
1353
- }
1354
-
1355
- static readonly runtime: typeof proto3 = proto3;
1356
- static readonly typeName = "livekit.SpeakerInfo";
1357
- static readonly fields: FieldList = proto3.util.newFieldList(() => [
1358
- { no: 1, name: "sid", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1359
- { no: 2, name: "level", kind: "scalar", T: 2 /* ScalarType.FLOAT */ },
1360
- { no: 3, name: "active", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
1361
- ]);
1362
-
1363
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SpeakerInfo {
1364
- return new SpeakerInfo().fromBinary(bytes, options);
1365
- }
1366
-
1367
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SpeakerInfo {
1368
- return new SpeakerInfo().fromJson(jsonValue, options);
1369
- }
1370
-
1371
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SpeakerInfo {
1372
- return new SpeakerInfo().fromJsonString(jsonString, options);
1373
- }
1374
-
1375
- static equals(a: SpeakerInfo | PlainMessage<SpeakerInfo> | undefined, b: SpeakerInfo | PlainMessage<SpeakerInfo> | undefined): boolean {
1376
- return proto3.util.equals(SpeakerInfo, a, b);
1377
- }
1378
- }
1379
-
1380
- /**
1381
- * @generated from message livekit.UserPacket
1382
- */
1383
- export class UserPacket extends Message<UserPacket> {
1384
- /**
1385
- * participant ID of user that sent the message
1386
- *
1387
- * @generated from field: string participant_sid = 1;
1388
- */
1389
- participantSid = "";
1390
-
1391
- /**
1392
- * @generated from field: string participant_identity = 5;
1393
- */
1394
- participantIdentity = "";
1395
-
1396
- /**
1397
- * user defined payload
1398
- *
1399
- * @generated from field: bytes payload = 2;
1400
- */
1401
- payload = new Uint8Array(0);
1402
-
1403
- /**
1404
- * the ID of the participants who will receive the message (sent to all by default)
1405
- *
1406
- * @generated from field: repeated string destination_sids = 3;
1407
- */
1408
- destinationSids: string[] = [];
1409
-
1410
- /**
1411
- * identities of participants who will receive the message (sent to all by default)
1412
- *
1413
- * @generated from field: repeated string destination_identities = 6;
1414
- */
1415
- destinationIdentities: string[] = [];
1416
-
1417
- /**
1418
- * topic under which the message was published
1419
- *
1420
- * @generated from field: optional string topic = 4;
1421
- */
1422
- topic?: string;
1423
-
1424
- constructor(data?: PartialMessage<UserPacket>) {
1425
- super();
1426
- proto3.util.initPartial(data, this);
1427
- }
1428
-
1429
- static readonly runtime: typeof proto3 = proto3;
1430
- static readonly typeName = "livekit.UserPacket";
1431
- static readonly fields: FieldList = proto3.util.newFieldList(() => [
1432
- { no: 1, name: "participant_sid", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1433
- { no: 5, name: "participant_identity", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1434
- { no: 2, name: "payload", kind: "scalar", T: 12 /* ScalarType.BYTES */ },
1435
- { no: 3, name: "destination_sids", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
1436
- { no: 6, name: "destination_identities", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
1437
- { no: 4, name: "topic", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
1438
- ]);
1439
-
1440
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): UserPacket {
1441
- return new UserPacket().fromBinary(bytes, options);
1442
- }
1443
-
1444
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): UserPacket {
1445
- return new UserPacket().fromJson(jsonValue, options);
1446
- }
1447
-
1448
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): UserPacket {
1449
- return new UserPacket().fromJsonString(jsonString, options);
1450
- }
1451
-
1452
- static equals(a: UserPacket | PlainMessage<UserPacket> | undefined, b: UserPacket | PlainMessage<UserPacket> | undefined): boolean {
1453
- return proto3.util.equals(UserPacket, a, b);
1454
- }
1455
- }
1456
-
1457
- /**
1458
- * @generated from message livekit.ParticipantTracks
1459
- */
1460
- export class ParticipantTracks extends Message<ParticipantTracks> {
1461
- /**
1462
- * participant ID of participant to whom the tracks belong
1463
- *
1464
- * @generated from field: string participant_sid = 1;
1465
- */
1466
- participantSid = "";
1467
-
1468
- /**
1469
- * @generated from field: repeated string track_sids = 2;
1470
- */
1471
- trackSids: string[] = [];
1472
-
1473
- constructor(data?: PartialMessage<ParticipantTracks>) {
1474
- super();
1475
- proto3.util.initPartial(data, this);
1476
- }
1477
-
1478
- static readonly runtime: typeof proto3 = proto3;
1479
- static readonly typeName = "livekit.ParticipantTracks";
1480
- static readonly fields: FieldList = proto3.util.newFieldList(() => [
1481
- { no: 1, name: "participant_sid", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1482
- { no: 2, name: "track_sids", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
1483
- ]);
1484
-
1485
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ParticipantTracks {
1486
- return new ParticipantTracks().fromBinary(bytes, options);
1487
- }
1488
-
1489
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ParticipantTracks {
1490
- return new ParticipantTracks().fromJson(jsonValue, options);
1491
- }
1492
-
1493
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ParticipantTracks {
1494
- return new ParticipantTracks().fromJsonString(jsonString, options);
1495
- }
1496
-
1497
- static equals(a: ParticipantTracks | PlainMessage<ParticipantTracks> | undefined, b: ParticipantTracks | PlainMessage<ParticipantTracks> | undefined): boolean {
1498
- return proto3.util.equals(ParticipantTracks, a, b);
1499
- }
1500
- }
1501
-
1502
- /**
1503
- * details about the server
1504
- *
1505
- * @generated from message livekit.ServerInfo
1506
- */
1507
- export class ServerInfo extends Message<ServerInfo> {
1508
- /**
1509
- * @generated from field: livekit.ServerInfo.Edition edition = 1;
1510
- */
1511
- edition = ServerInfo_Edition.Standard;
1512
-
1513
- /**
1514
- * @generated from field: string version = 2;
1515
- */
1516
- version = "";
1517
-
1518
- /**
1519
- * @generated from field: int32 protocol = 3;
1520
- */
1521
- protocol = 0;
1522
-
1523
- /**
1524
- * @generated from field: string region = 4;
1525
- */
1526
- region = "";
1527
-
1528
- /**
1529
- * @generated from field: string node_id = 5;
1530
- */
1531
- nodeId = "";
1532
-
1533
- /**
1534
- * additional debugging information. sent only if server is in development mode
1535
- *
1536
- * @generated from field: string debug_info = 6;
1537
- */
1538
- debugInfo = "";
1539
-
1540
- constructor(data?: PartialMessage<ServerInfo>) {
1541
- super();
1542
- proto3.util.initPartial(data, this);
1543
- }
1544
-
1545
- static readonly runtime: typeof proto3 = proto3;
1546
- static readonly typeName = "livekit.ServerInfo";
1547
- static readonly fields: FieldList = proto3.util.newFieldList(() => [
1548
- { no: 1, name: "edition", kind: "enum", T: proto3.getEnumType(ServerInfo_Edition) },
1549
- { no: 2, name: "version", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1550
- { no: 3, name: "protocol", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
1551
- { no: 4, name: "region", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1552
- { no: 5, name: "node_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1553
- { no: 6, name: "debug_info", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1554
- ]);
1555
-
1556
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ServerInfo {
1557
- return new ServerInfo().fromBinary(bytes, options);
1558
- }
1559
-
1560
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ServerInfo {
1561
- return new ServerInfo().fromJson(jsonValue, options);
1562
- }
1563
-
1564
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ServerInfo {
1565
- return new ServerInfo().fromJsonString(jsonString, options);
1566
- }
1567
-
1568
- static equals(a: ServerInfo | PlainMessage<ServerInfo> | undefined, b: ServerInfo | PlainMessage<ServerInfo> | undefined): boolean {
1569
- return proto3.util.equals(ServerInfo, a, b);
1570
- }
1571
- }
1572
-
1573
- /**
1574
- * @generated from enum livekit.ServerInfo.Edition
1575
- */
1576
- export enum ServerInfo_Edition {
1577
- /**
1578
- * @generated from enum value: Standard = 0;
1579
- */
1580
- Standard = 0,
1581
-
1582
- /**
1583
- * @generated from enum value: Cloud = 1;
1584
- */
1585
- Cloud = 1,
1586
- }
1587
- // Retrieve enum metadata with: proto3.getEnumType(ServerInfo_Edition)
1588
- proto3.util.setEnumType(ServerInfo_Edition, "livekit.ServerInfo.Edition", [
1589
- { no: 0, name: "Standard" },
1590
- { no: 1, name: "Cloud" },
1591
- ]);
1592
-
1593
- /**
1594
- * details about the client
1595
- *
1596
- * @generated from message livekit.ClientInfo
1597
- */
1598
- export class ClientInfo extends Message<ClientInfo> {
1599
- /**
1600
- * @generated from field: livekit.ClientInfo.SDK sdk = 1;
1601
- */
1602
- sdk = ClientInfo_SDK.UNKNOWN;
1603
-
1604
- /**
1605
- * @generated from field: string version = 2;
1606
- */
1607
- version = "";
1608
-
1609
- /**
1610
- * @generated from field: int32 protocol = 3;
1611
- */
1612
- protocol = 0;
1613
-
1614
- /**
1615
- * @generated from field: string os = 4;
1616
- */
1617
- os = "";
1618
-
1619
- /**
1620
- * @generated from field: string os_version = 5;
1621
- */
1622
- osVersion = "";
1623
-
1624
- /**
1625
- * @generated from field: string device_model = 6;
1626
- */
1627
- deviceModel = "";
1628
-
1629
- /**
1630
- * @generated from field: string browser = 7;
1631
- */
1632
- browser = "";
1633
-
1634
- /**
1635
- * @generated from field: string browser_version = 8;
1636
- */
1637
- browserVersion = "";
1638
-
1639
- /**
1640
- * @generated from field: string address = 9;
1641
- */
1642
- address = "";
1643
-
1644
- /**
1645
- * wifi, wired, cellular, vpn, empty if not known
1646
- *
1647
- * @generated from field: string network = 10;
1648
- */
1649
- network = "";
1650
-
1651
- constructor(data?: PartialMessage<ClientInfo>) {
1652
- super();
1653
- proto3.util.initPartial(data, this);
1654
- }
1655
-
1656
- static readonly runtime: typeof proto3 = proto3;
1657
- static readonly typeName = "livekit.ClientInfo";
1658
- static readonly fields: FieldList = proto3.util.newFieldList(() => [
1659
- { no: 1, name: "sdk", kind: "enum", T: proto3.getEnumType(ClientInfo_SDK) },
1660
- { no: 2, name: "version", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1661
- { no: 3, name: "protocol", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
1662
- { no: 4, name: "os", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1663
- { no: 5, name: "os_version", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1664
- { no: 6, name: "device_model", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1665
- { no: 7, name: "browser", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1666
- { no: 8, name: "browser_version", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1667
- { no: 9, name: "address", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1668
- { no: 10, name: "network", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1669
- ]);
1670
-
1671
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ClientInfo {
1672
- return new ClientInfo().fromBinary(bytes, options);
1673
- }
1674
-
1675
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ClientInfo {
1676
- return new ClientInfo().fromJson(jsonValue, options);
1677
- }
1678
-
1679
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ClientInfo {
1680
- return new ClientInfo().fromJsonString(jsonString, options);
1681
- }
1682
-
1683
- static equals(a: ClientInfo | PlainMessage<ClientInfo> | undefined, b: ClientInfo | PlainMessage<ClientInfo> | undefined): boolean {
1684
- return proto3.util.equals(ClientInfo, a, b);
1685
- }
1686
- }
1687
-
1688
- /**
1689
- * @generated from enum livekit.ClientInfo.SDK
1690
- */
1691
- export enum ClientInfo_SDK {
1692
- /**
1693
- * @generated from enum value: UNKNOWN = 0;
1694
- */
1695
- UNKNOWN = 0,
1696
-
1697
- /**
1698
- * @generated from enum value: JS = 1;
1699
- */
1700
- JS = 1,
1701
-
1702
- /**
1703
- * @generated from enum value: SWIFT = 2;
1704
- */
1705
- SWIFT = 2,
1706
-
1707
- /**
1708
- * @generated from enum value: ANDROID = 3;
1709
- */
1710
- ANDROID = 3,
1711
-
1712
- /**
1713
- * @generated from enum value: FLUTTER = 4;
1714
- */
1715
- FLUTTER = 4,
1716
-
1717
- /**
1718
- * @generated from enum value: GO = 5;
1719
- */
1720
- GO = 5,
1721
-
1722
- /**
1723
- * @generated from enum value: UNITY = 6;
1724
- */
1725
- UNITY = 6,
1726
-
1727
- /**
1728
- * @generated from enum value: REACT_NATIVE = 7;
1729
- */
1730
- REACT_NATIVE = 7,
1731
-
1732
- /**
1733
- * @generated from enum value: RUST = 8;
1734
- */
1735
- RUST = 8,
1736
-
1737
- /**
1738
- * @generated from enum value: PYTHON = 9;
1739
- */
1740
- PYTHON = 9,
1741
-
1742
- /**
1743
- * @generated from enum value: CPP = 10;
1744
- */
1745
- CPP = 10,
1746
- }
1747
- // Retrieve enum metadata with: proto3.getEnumType(ClientInfo_SDK)
1748
- proto3.util.setEnumType(ClientInfo_SDK, "livekit.ClientInfo.SDK", [
1749
- { no: 0, name: "UNKNOWN" },
1750
- { no: 1, name: "JS" },
1751
- { no: 2, name: "SWIFT" },
1752
- { no: 3, name: "ANDROID" },
1753
- { no: 4, name: "FLUTTER" },
1754
- { no: 5, name: "GO" },
1755
- { no: 6, name: "UNITY" },
1756
- { no: 7, name: "REACT_NATIVE" },
1757
- { no: 8, name: "RUST" },
1758
- { no: 9, name: "PYTHON" },
1759
- { no: 10, name: "CPP" },
1760
- ]);
1761
-
1762
- /**
1763
- * server provided client configuration
1764
- *
1765
- * @generated from message livekit.ClientConfiguration
1766
- */
1767
- export class ClientConfiguration extends Message<ClientConfiguration> {
1768
- /**
1769
- * @generated from field: livekit.VideoConfiguration video = 1;
1770
- */
1771
- video?: VideoConfiguration;
1772
-
1773
- /**
1774
- * @generated from field: livekit.VideoConfiguration screen = 2;
1775
- */
1776
- screen?: VideoConfiguration;
1777
-
1778
- /**
1779
- * @generated from field: livekit.ClientConfigSetting resume_connection = 3;
1780
- */
1781
- resumeConnection = ClientConfigSetting.UNSET;
1782
-
1783
- /**
1784
- * @generated from field: livekit.DisabledCodecs disabled_codecs = 4;
1785
- */
1786
- disabledCodecs?: DisabledCodecs;
1787
-
1788
- /**
1789
- * @generated from field: livekit.ClientConfigSetting force_relay = 5;
1790
- */
1791
- forceRelay = ClientConfigSetting.UNSET;
1792
-
1793
- constructor(data?: PartialMessage<ClientConfiguration>) {
1794
- super();
1795
- proto3.util.initPartial(data, this);
1796
- }
1797
-
1798
- static readonly runtime: typeof proto3 = proto3;
1799
- static readonly typeName = "livekit.ClientConfiguration";
1800
- static readonly fields: FieldList = proto3.util.newFieldList(() => [
1801
- { no: 1, name: "video", kind: "message", T: VideoConfiguration },
1802
- { no: 2, name: "screen", kind: "message", T: VideoConfiguration },
1803
- { no: 3, name: "resume_connection", kind: "enum", T: proto3.getEnumType(ClientConfigSetting) },
1804
- { no: 4, name: "disabled_codecs", kind: "message", T: DisabledCodecs },
1805
- { no: 5, name: "force_relay", kind: "enum", T: proto3.getEnumType(ClientConfigSetting) },
1806
- ]);
1807
-
1808
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ClientConfiguration {
1809
- return new ClientConfiguration().fromBinary(bytes, options);
1810
- }
1811
-
1812
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ClientConfiguration {
1813
- return new ClientConfiguration().fromJson(jsonValue, options);
1814
- }
1815
-
1816
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ClientConfiguration {
1817
- return new ClientConfiguration().fromJsonString(jsonString, options);
1818
- }
1819
-
1820
- static equals(a: ClientConfiguration | PlainMessage<ClientConfiguration> | undefined, b: ClientConfiguration | PlainMessage<ClientConfiguration> | undefined): boolean {
1821
- return proto3.util.equals(ClientConfiguration, a, b);
1822
- }
1823
- }
1824
-
1825
- /**
1826
- * @generated from message livekit.VideoConfiguration
1827
- */
1828
- export class VideoConfiguration extends Message<VideoConfiguration> {
1829
- /**
1830
- * @generated from field: livekit.ClientConfigSetting hardware_encoder = 1;
1831
- */
1832
- hardwareEncoder = ClientConfigSetting.UNSET;
1833
-
1834
- constructor(data?: PartialMessage<VideoConfiguration>) {
1835
- super();
1836
- proto3.util.initPartial(data, this);
1837
- }
1838
-
1839
- static readonly runtime: typeof proto3 = proto3;
1840
- static readonly typeName = "livekit.VideoConfiguration";
1841
- static readonly fields: FieldList = proto3.util.newFieldList(() => [
1842
- { no: 1, name: "hardware_encoder", kind: "enum", T: proto3.getEnumType(ClientConfigSetting) },
1843
- ]);
1844
-
1845
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): VideoConfiguration {
1846
- return new VideoConfiguration().fromBinary(bytes, options);
1847
- }
1848
-
1849
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): VideoConfiguration {
1850
- return new VideoConfiguration().fromJson(jsonValue, options);
1851
- }
1852
-
1853
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): VideoConfiguration {
1854
- return new VideoConfiguration().fromJsonString(jsonString, options);
1855
- }
1856
-
1857
- static equals(a: VideoConfiguration | PlainMessage<VideoConfiguration> | undefined, b: VideoConfiguration | PlainMessage<VideoConfiguration> | undefined): boolean {
1858
- return proto3.util.equals(VideoConfiguration, a, b);
1859
- }
1860
- }
1861
-
1862
- /**
1863
- * @generated from message livekit.DisabledCodecs
1864
- */
1865
- export class DisabledCodecs extends Message<DisabledCodecs> {
1866
- /**
1867
- * disabled for both publish and subscribe
1868
- *
1869
- * @generated from field: repeated livekit.Codec codecs = 1;
1870
- */
1871
- codecs: Codec[] = [];
1872
-
1873
- /**
1874
- * only disable for publish
1875
- *
1876
- * @generated from field: repeated livekit.Codec publish = 2;
1877
- */
1878
- publish: Codec[] = [];
1879
-
1880
- constructor(data?: PartialMessage<DisabledCodecs>) {
1881
- super();
1882
- proto3.util.initPartial(data, this);
1883
- }
1884
-
1885
- static readonly runtime: typeof proto3 = proto3;
1886
- static readonly typeName = "livekit.DisabledCodecs";
1887
- static readonly fields: FieldList = proto3.util.newFieldList(() => [
1888
- { no: 1, name: "codecs", kind: "message", T: Codec, repeated: true },
1889
- { no: 2, name: "publish", kind: "message", T: Codec, repeated: true },
1890
- ]);
1891
-
1892
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): DisabledCodecs {
1893
- return new DisabledCodecs().fromBinary(bytes, options);
1894
- }
1895
-
1896
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): DisabledCodecs {
1897
- return new DisabledCodecs().fromJson(jsonValue, options);
1898
- }
1899
-
1900
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): DisabledCodecs {
1901
- return new DisabledCodecs().fromJsonString(jsonString, options);
1902
- }
1903
-
1904
- static equals(a: DisabledCodecs | PlainMessage<DisabledCodecs> | undefined, b: DisabledCodecs | PlainMessage<DisabledCodecs> | undefined): boolean {
1905
- return proto3.util.equals(DisabledCodecs, a, b);
1906
- }
1907
- }
1908
-
1909
- /**
1910
- * @generated from message livekit.RTPDrift
1911
- */
1912
- export class RTPDrift extends Message<RTPDrift> {
1913
- /**
1914
- * @generated from field: google.protobuf.Timestamp start_time = 1;
1915
- */
1916
- startTime?: Timestamp;
1917
-
1918
- /**
1919
- * @generated from field: google.protobuf.Timestamp end_time = 2;
1920
- */
1921
- endTime?: Timestamp;
1922
-
1923
- /**
1924
- * @generated from field: double duration = 3;
1925
- */
1926
- duration = 0;
1927
-
1928
- /**
1929
- * @generated from field: uint64 start_timestamp = 4;
1930
- */
1931
- startTimestamp = protoInt64.zero;
1932
-
1933
- /**
1934
- * @generated from field: uint64 end_timestamp = 5;
1935
- */
1936
- endTimestamp = protoInt64.zero;
1937
-
1938
- /**
1939
- * @generated from field: uint64 rtp_clock_ticks = 6;
1940
- */
1941
- rtpClockTicks = protoInt64.zero;
1942
-
1943
- /**
1944
- * @generated from field: int64 drift_samples = 7;
1945
- */
1946
- driftSamples = protoInt64.zero;
1947
-
1948
- /**
1949
- * @generated from field: double drift_ms = 8;
1950
- */
1951
- driftMs = 0;
1952
-
1953
- /**
1954
- * @generated from field: double clock_rate = 9;
1955
- */
1956
- clockRate = 0;
1957
-
1958
- constructor(data?: PartialMessage<RTPDrift>) {
1959
- super();
1960
- proto3.util.initPartial(data, this);
1961
- }
1962
-
1963
- static readonly runtime: typeof proto3 = proto3;
1964
- static readonly typeName = "livekit.RTPDrift";
1965
- static readonly fields: FieldList = proto3.util.newFieldList(() => [
1966
- { no: 1, name: "start_time", kind: "message", T: Timestamp },
1967
- { no: 2, name: "end_time", kind: "message", T: Timestamp },
1968
- { no: 3, name: "duration", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ },
1969
- { no: 4, name: "start_timestamp", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
1970
- { no: 5, name: "end_timestamp", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
1971
- { no: 6, name: "rtp_clock_ticks", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
1972
- { no: 7, name: "drift_samples", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
1973
- { no: 8, name: "drift_ms", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ },
1974
- { no: 9, name: "clock_rate", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ },
1975
- ]);
1976
-
1977
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): RTPDrift {
1978
- return new RTPDrift().fromBinary(bytes, options);
1979
- }
1980
-
1981
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): RTPDrift {
1982
- return new RTPDrift().fromJson(jsonValue, options);
1983
- }
1984
-
1985
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): RTPDrift {
1986
- return new RTPDrift().fromJsonString(jsonString, options);
1987
- }
1988
-
1989
- static equals(a: RTPDrift | PlainMessage<RTPDrift> | undefined, b: RTPDrift | PlainMessage<RTPDrift> | undefined): boolean {
1990
- return proto3.util.equals(RTPDrift, a, b);
1991
- }
1992
- }
1993
-
1994
- /**
1995
- * @generated from message livekit.RTPStats
1996
- */
1997
- export class RTPStats extends Message<RTPStats> {
1998
- /**
1999
- * @generated from field: google.protobuf.Timestamp start_time = 1;
2000
- */
2001
- startTime?: Timestamp;
2002
-
2003
- /**
2004
- * @generated from field: google.protobuf.Timestamp end_time = 2;
2005
- */
2006
- endTime?: Timestamp;
2007
-
2008
- /**
2009
- * @generated from field: double duration = 3;
2010
- */
2011
- duration = 0;
2012
-
2013
- /**
2014
- * @generated from field: uint32 packets = 4;
2015
- */
2016
- packets = 0;
2017
-
2018
- /**
2019
- * @generated from field: double packet_rate = 5;
2020
- */
2021
- packetRate = 0;
2022
-
2023
- /**
2024
- * @generated from field: uint64 bytes = 6;
2025
- */
2026
- bytes = protoInt64.zero;
2027
-
2028
- /**
2029
- * @generated from field: uint64 header_bytes = 39;
2030
- */
2031
- headerBytes = protoInt64.zero;
2032
-
2033
- /**
2034
- * @generated from field: double bitrate = 7;
2035
- */
2036
- bitrate = 0;
2037
-
2038
- /**
2039
- * @generated from field: uint32 packets_lost = 8;
2040
- */
2041
- packetsLost = 0;
2042
-
2043
- /**
2044
- * @generated from field: double packet_loss_rate = 9;
2045
- */
2046
- packetLossRate = 0;
2047
-
2048
- /**
2049
- * @generated from field: float packet_loss_percentage = 10;
2050
- */
2051
- packetLossPercentage = 0;
2052
-
2053
- /**
2054
- * @generated from field: uint32 packets_duplicate = 11;
2055
- */
2056
- packetsDuplicate = 0;
2057
-
2058
- /**
2059
- * @generated from field: double packet_duplicate_rate = 12;
2060
- */
2061
- packetDuplicateRate = 0;
2062
-
2063
- /**
2064
- * @generated from field: uint64 bytes_duplicate = 13;
2065
- */
2066
- bytesDuplicate = protoInt64.zero;
2067
-
2068
- /**
2069
- * @generated from field: uint64 header_bytes_duplicate = 40;
2070
- */
2071
- headerBytesDuplicate = protoInt64.zero;
2072
-
2073
- /**
2074
- * @generated from field: double bitrate_duplicate = 14;
2075
- */
2076
- bitrateDuplicate = 0;
2077
-
2078
- /**
2079
- * @generated from field: uint32 packets_padding = 15;
2080
- */
2081
- packetsPadding = 0;
2082
-
2083
- /**
2084
- * @generated from field: double packet_padding_rate = 16;
2085
- */
2086
- packetPaddingRate = 0;
2087
-
2088
- /**
2089
- * @generated from field: uint64 bytes_padding = 17;
2090
- */
2091
- bytesPadding = protoInt64.zero;
2092
-
2093
- /**
2094
- * @generated from field: uint64 header_bytes_padding = 41;
2095
- */
2096
- headerBytesPadding = protoInt64.zero;
2097
-
2098
- /**
2099
- * @generated from field: double bitrate_padding = 18;
2100
- */
2101
- bitratePadding = 0;
2102
-
2103
- /**
2104
- * @generated from field: uint32 packets_out_of_order = 19;
2105
- */
2106
- packetsOutOfOrder = 0;
2107
-
2108
- /**
2109
- * @generated from field: uint32 frames = 20;
2110
- */
2111
- frames = 0;
2112
-
2113
- /**
2114
- * @generated from field: double frame_rate = 21;
2115
- */
2116
- frameRate = 0;
2117
-
2118
- /**
2119
- * @generated from field: double jitter_current = 22;
2120
- */
2121
- jitterCurrent = 0;
2122
-
2123
- /**
2124
- * @generated from field: double jitter_max = 23;
2125
- */
2126
- jitterMax = 0;
2127
-
2128
- /**
2129
- * @generated from field: map<int32, uint32> gap_histogram = 24;
2130
- */
2131
- gapHistogram: { [key: number]: number } = {};
2132
-
2133
- /**
2134
- * @generated from field: uint32 nacks = 25;
2135
- */
2136
- nacks = 0;
2137
-
2138
- /**
2139
- * @generated from field: uint32 nack_acks = 37;
2140
- */
2141
- nackAcks = 0;
2142
-
2143
- /**
2144
- * @generated from field: uint32 nack_misses = 26;
2145
- */
2146
- nackMisses = 0;
2147
-
2148
- /**
2149
- * @generated from field: uint32 nack_repeated = 38;
2150
- */
2151
- nackRepeated = 0;
2152
-
2153
- /**
2154
- * @generated from field: uint32 plis = 27;
2155
- */
2156
- plis = 0;
2157
-
2158
- /**
2159
- * @generated from field: google.protobuf.Timestamp last_pli = 28;
2160
- */
2161
- lastPli?: Timestamp;
2162
-
2163
- /**
2164
- * @generated from field: uint32 firs = 29;
2165
- */
2166
- firs = 0;
2167
-
2168
- /**
2169
- * @generated from field: google.protobuf.Timestamp last_fir = 30;
2170
- */
2171
- lastFir?: Timestamp;
2172
-
2173
- /**
2174
- * @generated from field: uint32 rtt_current = 31;
2175
- */
2176
- rttCurrent = 0;
2177
-
2178
- /**
2179
- * @generated from field: uint32 rtt_max = 32;
2180
- */
2181
- rttMax = 0;
2182
-
2183
- /**
2184
- * @generated from field: uint32 key_frames = 33;
2185
- */
2186
- keyFrames = 0;
2187
-
2188
- /**
2189
- * @generated from field: google.protobuf.Timestamp last_key_frame = 34;
2190
- */
2191
- lastKeyFrame?: Timestamp;
2192
-
2193
- /**
2194
- * @generated from field: uint32 layer_lock_plis = 35;
2195
- */
2196
- layerLockPlis = 0;
2197
-
2198
- /**
2199
- * @generated from field: google.protobuf.Timestamp last_layer_lock_pli = 36;
2200
- */
2201
- lastLayerLockPli?: Timestamp;
2202
-
2203
- /**
2204
- * @generated from field: livekit.RTPDrift packet_drift = 44;
2205
- */
2206
- packetDrift?: RTPDrift;
2207
-
2208
- /**
2209
- * NEXT_ID: 46
2210
- *
2211
- * @generated from field: livekit.RTPDrift report_drift = 45;
2212
- */
2213
- reportDrift?: RTPDrift;
2214
-
2215
- constructor(data?: PartialMessage<RTPStats>) {
2216
- super();
2217
- proto3.util.initPartial(data, this);
2218
- }
2219
-
2220
- static readonly runtime: typeof proto3 = proto3;
2221
- static readonly typeName = "livekit.RTPStats";
2222
- static readonly fields: FieldList = proto3.util.newFieldList(() => [
2223
- { no: 1, name: "start_time", kind: "message", T: Timestamp },
2224
- { no: 2, name: "end_time", kind: "message", T: Timestamp },
2225
- { no: 3, name: "duration", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ },
2226
- { no: 4, name: "packets", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
2227
- { no: 5, name: "packet_rate", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ },
2228
- { no: 6, name: "bytes", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
2229
- { no: 39, name: "header_bytes", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
2230
- { no: 7, name: "bitrate", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ },
2231
- { no: 8, name: "packets_lost", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
2232
- { no: 9, name: "packet_loss_rate", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ },
2233
- { no: 10, name: "packet_loss_percentage", kind: "scalar", T: 2 /* ScalarType.FLOAT */ },
2234
- { no: 11, name: "packets_duplicate", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
2235
- { no: 12, name: "packet_duplicate_rate", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ },
2236
- { no: 13, name: "bytes_duplicate", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
2237
- { no: 40, name: "header_bytes_duplicate", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
2238
- { no: 14, name: "bitrate_duplicate", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ },
2239
- { no: 15, name: "packets_padding", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
2240
- { no: 16, name: "packet_padding_rate", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ },
2241
- { no: 17, name: "bytes_padding", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
2242
- { no: 41, name: "header_bytes_padding", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
2243
- { no: 18, name: "bitrate_padding", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ },
2244
- { no: 19, name: "packets_out_of_order", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
2245
- { no: 20, name: "frames", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
2246
- { no: 21, name: "frame_rate", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ },
2247
- { no: 22, name: "jitter_current", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ },
2248
- { no: 23, name: "jitter_max", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ },
2249
- { no: 24, name: "gap_histogram", kind: "map", K: 5 /* ScalarType.INT32 */, V: {kind: "scalar", T: 13 /* ScalarType.UINT32 */} },
2250
- { no: 25, name: "nacks", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
2251
- { no: 37, name: "nack_acks", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
2252
- { no: 26, name: "nack_misses", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
2253
- { no: 38, name: "nack_repeated", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
2254
- { no: 27, name: "plis", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
2255
- { no: 28, name: "last_pli", kind: "message", T: Timestamp },
2256
- { no: 29, name: "firs", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
2257
- { no: 30, name: "last_fir", kind: "message", T: Timestamp },
2258
- { no: 31, name: "rtt_current", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
2259
- { no: 32, name: "rtt_max", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
2260
- { no: 33, name: "key_frames", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
2261
- { no: 34, name: "last_key_frame", kind: "message", T: Timestamp },
2262
- { no: 35, name: "layer_lock_plis", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
2263
- { no: 36, name: "last_layer_lock_pli", kind: "message", T: Timestamp },
2264
- { no: 44, name: "packet_drift", kind: "message", T: RTPDrift },
2265
- { no: 45, name: "report_drift", kind: "message", T: RTPDrift },
2266
- ]);
2267
-
2268
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): RTPStats {
2269
- return new RTPStats().fromBinary(bytes, options);
2270
- }
2271
-
2272
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): RTPStats {
2273
- return new RTPStats().fromJson(jsonValue, options);
2274
- }
2275
-
2276
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): RTPStats {
2277
- return new RTPStats().fromJsonString(jsonString, options);
2278
- }
2279
-
2280
- static equals(a: RTPStats | PlainMessage<RTPStats> | undefined, b: RTPStats | PlainMessage<RTPStats> | undefined): boolean {
2281
- return proto3.util.equals(RTPStats, a, b);
2282
- }
2283
- }
2284
-
2285
- /**
2286
- * @generated from message livekit.TimedVersion
2287
- */
2288
- export class TimedVersion extends Message<TimedVersion> {
2289
- /**
2290
- * @generated from field: int64 unix_micro = 1;
2291
- */
2292
- unixMicro = protoInt64.zero;
2293
-
2294
- /**
2295
- * @generated from field: int32 ticks = 2;
2296
- */
2297
- ticks = 0;
2298
-
2299
- constructor(data?: PartialMessage<TimedVersion>) {
2300
- super();
2301
- proto3.util.initPartial(data, this);
2302
- }
2303
-
2304
- static readonly runtime: typeof proto3 = proto3;
2305
- static readonly typeName = "livekit.TimedVersion";
2306
- static readonly fields: FieldList = proto3.util.newFieldList(() => [
2307
- { no: 1, name: "unix_micro", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
2308
- { no: 2, name: "ticks", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
2309
- ]);
2310
-
2311
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): TimedVersion {
2312
- return new TimedVersion().fromBinary(bytes, options);
2313
- }
2314
-
2315
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): TimedVersion {
2316
- return new TimedVersion().fromJson(jsonValue, options);
2317
- }
2318
-
2319
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): TimedVersion {
2320
- return new TimedVersion().fromJsonString(jsonString, options);
2321
- }
2322
-
2323
- static equals(a: TimedVersion | PlainMessage<TimedVersion> | undefined, b: TimedVersion | PlainMessage<TimedVersion> | undefined): boolean {
2324
- return proto3.util.equals(TimedVersion, a, b);
2325
- }
2326
- }
2327
-