livekit-server-sdk 1.2.6 → 2.0.0

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 (80) hide show
  1. package/.changeset/README.md +8 -0
  2. package/.changeset/config.json +11 -0
  3. package/.github/workflows/release.yaml +46 -0
  4. package/.github/workflows/test.yaml +21 -21
  5. package/.prettierignore +1 -0
  6. package/CHANGELOG.md +23 -0
  7. package/NOTICE +13 -0
  8. package/README.md +47 -13
  9. package/dist/AccessToken.d.ts +4 -4
  10. package/dist/AccessToken.js +23 -42
  11. package/dist/AccessToken.js.map +1 -1
  12. package/dist/EgressClient.d.ts +21 -2
  13. package/dist/EgressClient.js +183 -170
  14. package/dist/EgressClient.js.map +1 -1
  15. package/dist/IngressClient.d.ts +17 -2
  16. package/dist/IngressClient.js +68 -89
  17. package/dist/IngressClient.js.map +1 -1
  18. package/dist/RoomServiceClient.d.ts +22 -5
  19. package/dist/RoomServiceClient.js +70 -105
  20. package/dist/RoomServiceClient.js.map +1 -1
  21. package/dist/ServiceBase.d.ts +2 -2
  22. package/dist/ServiceBase.js +5 -8
  23. package/dist/ServiceBase.js.map +1 -1
  24. package/dist/TwirpRPC.d.ts +2 -3
  25. package/dist/TwirpRPC.js +15 -23
  26. package/dist/TwirpRPC.js.map +1 -1
  27. package/dist/WebhookReceiver.d.ts +15 -2
  28. package/dist/WebhookReceiver.js +29 -19
  29. package/dist/WebhookReceiver.js.map +1 -1
  30. package/dist/grants.d.ts +2 -1
  31. package/dist/grants.js +2 -5
  32. package/dist/grants.js.map +1 -1
  33. package/dist/index.d.ts +9 -10
  34. package/dist/index.js +9 -48
  35. package/dist/index.js.map +1 -1
  36. package/dist/proto/livekit_egress_pb.d.ts +1650 -0
  37. package/dist/proto/livekit_egress_pb.js +1878 -0
  38. package/dist/proto/livekit_egress_pb.js.map +1 -0
  39. package/dist/proto/livekit_ingress_pb.d.ts +624 -0
  40. package/dist/proto/livekit_ingress_pb.js +824 -0
  41. package/dist/proto/livekit_ingress_pb.js.map +1 -0
  42. package/dist/proto/livekit_models_pb.d.ts +1349 -0
  43. package/dist/proto/livekit_models_pb.js +1829 -0
  44. package/dist/proto/livekit_models_pb.js.map +1 -0
  45. package/dist/proto/livekit_room_pb.d.ts +460 -0
  46. package/dist/proto/livekit_room_pb.js +695 -0
  47. package/dist/proto/livekit_room_pb.js.map +1 -0
  48. package/dist/proto/livekit_webhook_pb.d.ts +70 -0
  49. package/dist/proto/livekit_webhook_pb.js +76 -0
  50. package/dist/proto/livekit_webhook_pb.js.map +1 -0
  51. package/generate-proto.sh +1 -18
  52. package/package.json +32 -28
  53. package/tsconfig.eslint.json +2 -1
  54. package/vite.config.js +8 -0
  55. package/.github/workflows/publish.yaml +0 -57
  56. package/dist/AccessToken.test.d.ts +0 -1
  57. package/dist/AccessToken.test.js +0 -72
  58. package/dist/AccessToken.test.js.map +0 -1
  59. package/dist/WebhookReceiver.test.d.ts +0 -1
  60. package/dist/WebhookReceiver.test.js +0 -39
  61. package/dist/WebhookReceiver.test.js.map +0 -1
  62. package/dist/proto/google/protobuf/timestamp.d.ts +0 -132
  63. package/dist/proto/google/protobuf/timestamp.js +0 -92
  64. package/dist/proto/google/protobuf/timestamp.js.map +0 -1
  65. package/dist/proto/livekit_egress.d.ts +0 -11286
  66. package/dist/proto/livekit_egress.js +0 -2889
  67. package/dist/proto/livekit_egress.js.map +0 -1
  68. package/dist/proto/livekit_ingress.d.ts +0 -2249
  69. package/dist/proto/livekit_ingress.js +0 -1360
  70. package/dist/proto/livekit_ingress.js.map +0 -1
  71. package/dist/proto/livekit_models.d.ts +0 -1454
  72. package/dist/proto/livekit_models.js +0 -3066
  73. package/dist/proto/livekit_models.js.map +0 -1
  74. package/dist/proto/livekit_room.d.ts +0 -3316
  75. package/dist/proto/livekit_room.js +0 -1074
  76. package/dist/proto/livekit_room.js.map +0 -1
  77. package/dist/proto/livekit_webhook.d.ts +0 -4899
  78. package/dist/proto/livekit_webhook.js +0 -179
  79. package/dist/proto/livekit_webhook.js.map +0 -1
  80. /package/{.eslintrc.js → .eslintrc.cjs} +0 -0
@@ -0,0 +1,1349 @@
1
+ import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf";
2
+ import { Message, proto3, Timestamp } from "@bufbuild/protobuf";
3
+ /**
4
+ * @generated from enum livekit.AudioCodec
5
+ */
6
+ export declare enum AudioCodec {
7
+ /**
8
+ * @generated from enum value: DEFAULT_AC = 0;
9
+ */
10
+ DEFAULT_AC = 0,
11
+ /**
12
+ * @generated from enum value: OPUS = 1;
13
+ */
14
+ OPUS = 1,
15
+ /**
16
+ * @generated from enum value: AAC = 2;
17
+ */
18
+ AAC = 2
19
+ }
20
+ /**
21
+ * @generated from enum livekit.VideoCodec
22
+ */
23
+ export declare enum VideoCodec {
24
+ /**
25
+ * @generated from enum value: DEFAULT_VC = 0;
26
+ */
27
+ DEFAULT_VC = 0,
28
+ /**
29
+ * @generated from enum value: H264_BASELINE = 1;
30
+ */
31
+ H264_BASELINE = 1,
32
+ /**
33
+ * @generated from enum value: H264_MAIN = 2;
34
+ */
35
+ H264_MAIN = 2,
36
+ /**
37
+ * @generated from enum value: H264_HIGH = 3;
38
+ */
39
+ H264_HIGH = 3,
40
+ /**
41
+ * @generated from enum value: VP8 = 4;
42
+ */
43
+ VP8 = 4
44
+ }
45
+ /**
46
+ * @generated from enum livekit.ImageCodec
47
+ */
48
+ export declare enum ImageCodec {
49
+ /**
50
+ * @generated from enum value: IC_DEFAULT = 0;
51
+ */
52
+ IC_DEFAULT = 0,
53
+ /**
54
+ * @generated from enum value: IC_JPEG = 1;
55
+ */
56
+ IC_JPEG = 1
57
+ }
58
+ /**
59
+ * @generated from enum livekit.TrackType
60
+ */
61
+ export declare enum TrackType {
62
+ /**
63
+ * @generated from enum value: AUDIO = 0;
64
+ */
65
+ AUDIO = 0,
66
+ /**
67
+ * @generated from enum value: VIDEO = 1;
68
+ */
69
+ VIDEO = 1,
70
+ /**
71
+ * @generated from enum value: DATA = 2;
72
+ */
73
+ DATA = 2
74
+ }
75
+ /**
76
+ * @generated from enum livekit.TrackSource
77
+ */
78
+ export declare enum TrackSource {
79
+ /**
80
+ * @generated from enum value: UNKNOWN = 0;
81
+ */
82
+ UNKNOWN = 0,
83
+ /**
84
+ * @generated from enum value: CAMERA = 1;
85
+ */
86
+ CAMERA = 1,
87
+ /**
88
+ * @generated from enum value: MICROPHONE = 2;
89
+ */
90
+ MICROPHONE = 2,
91
+ /**
92
+ * @generated from enum value: SCREEN_SHARE = 3;
93
+ */
94
+ SCREEN_SHARE = 3,
95
+ /**
96
+ * @generated from enum value: SCREEN_SHARE_AUDIO = 4;
97
+ */
98
+ SCREEN_SHARE_AUDIO = 4
99
+ }
100
+ /**
101
+ * @generated from enum livekit.VideoQuality
102
+ */
103
+ export declare enum VideoQuality {
104
+ /**
105
+ * @generated from enum value: LOW = 0;
106
+ */
107
+ LOW = 0,
108
+ /**
109
+ * @generated from enum value: MEDIUM = 1;
110
+ */
111
+ MEDIUM = 1,
112
+ /**
113
+ * @generated from enum value: HIGH = 2;
114
+ */
115
+ HIGH = 2,
116
+ /**
117
+ * @generated from enum value: OFF = 3;
118
+ */
119
+ OFF = 3
120
+ }
121
+ /**
122
+ * @generated from enum livekit.ConnectionQuality
123
+ */
124
+ export declare enum ConnectionQuality {
125
+ /**
126
+ * @generated from enum value: POOR = 0;
127
+ */
128
+ POOR = 0,
129
+ /**
130
+ * @generated from enum value: GOOD = 1;
131
+ */
132
+ GOOD = 1,
133
+ /**
134
+ * @generated from enum value: EXCELLENT = 2;
135
+ */
136
+ EXCELLENT = 2,
137
+ /**
138
+ * @generated from enum value: LOST = 3;
139
+ */
140
+ LOST = 3
141
+ }
142
+ /**
143
+ * @generated from enum livekit.ClientConfigSetting
144
+ */
145
+ export declare enum ClientConfigSetting {
146
+ /**
147
+ * @generated from enum value: UNSET = 0;
148
+ */
149
+ UNSET = 0,
150
+ /**
151
+ * @generated from enum value: DISABLED = 1;
152
+ */
153
+ DISABLED = 1,
154
+ /**
155
+ * @generated from enum value: ENABLED = 2;
156
+ */
157
+ ENABLED = 2
158
+ }
159
+ /**
160
+ * @generated from enum livekit.DisconnectReason
161
+ */
162
+ export declare enum DisconnectReason {
163
+ /**
164
+ * @generated from enum value: UNKNOWN_REASON = 0;
165
+ */
166
+ UNKNOWN_REASON = 0,
167
+ /**
168
+ * @generated from enum value: CLIENT_INITIATED = 1;
169
+ */
170
+ CLIENT_INITIATED = 1,
171
+ /**
172
+ * @generated from enum value: DUPLICATE_IDENTITY = 2;
173
+ */
174
+ DUPLICATE_IDENTITY = 2,
175
+ /**
176
+ * @generated from enum value: SERVER_SHUTDOWN = 3;
177
+ */
178
+ SERVER_SHUTDOWN = 3,
179
+ /**
180
+ * @generated from enum value: PARTICIPANT_REMOVED = 4;
181
+ */
182
+ PARTICIPANT_REMOVED = 4,
183
+ /**
184
+ * @generated from enum value: ROOM_DELETED = 5;
185
+ */
186
+ ROOM_DELETED = 5,
187
+ /**
188
+ * @generated from enum value: STATE_MISMATCH = 6;
189
+ */
190
+ STATE_MISMATCH = 6,
191
+ /**
192
+ * @generated from enum value: JOIN_FAILURE = 7;
193
+ */
194
+ JOIN_FAILURE = 7
195
+ }
196
+ /**
197
+ * @generated from enum livekit.ReconnectReason
198
+ */
199
+ export declare enum ReconnectReason {
200
+ /**
201
+ * @generated from enum value: RR_UNKNOWN = 0;
202
+ */
203
+ RR_UNKNOWN = 0,
204
+ /**
205
+ * @generated from enum value: RR_SIGNAL_DISCONNECTED = 1;
206
+ */
207
+ RR_SIGNAL_DISCONNECTED = 1,
208
+ /**
209
+ * @generated from enum value: RR_PUBLISHER_FAILED = 2;
210
+ */
211
+ RR_PUBLISHER_FAILED = 2,
212
+ /**
213
+ * @generated from enum value: RR_SUBSCRIBER_FAILED = 3;
214
+ */
215
+ RR_SUBSCRIBER_FAILED = 3,
216
+ /**
217
+ * @generated from enum value: RR_SWITCH_CANDIDATE = 4;
218
+ */
219
+ RR_SWITCH_CANDIDATE = 4
220
+ }
221
+ /**
222
+ * @generated from enum livekit.SubscriptionError
223
+ */
224
+ export declare enum SubscriptionError {
225
+ /**
226
+ * @generated from enum value: SE_UNKNOWN = 0;
227
+ */
228
+ SE_UNKNOWN = 0,
229
+ /**
230
+ * @generated from enum value: SE_CODEC_UNSUPPORTED = 1;
231
+ */
232
+ SE_CODEC_UNSUPPORTED = 1,
233
+ /**
234
+ * @generated from enum value: SE_TRACK_NOTFOUND = 2;
235
+ */
236
+ SE_TRACK_NOTFOUND = 2
237
+ }
238
+ /**
239
+ * @generated from message livekit.Room
240
+ */
241
+ export declare class Room extends Message<Room> {
242
+ /**
243
+ * @generated from field: string sid = 1;
244
+ */
245
+ sid: string;
246
+ /**
247
+ * @generated from field: string name = 2;
248
+ */
249
+ name: string;
250
+ /**
251
+ * @generated from field: uint32 empty_timeout = 3;
252
+ */
253
+ emptyTimeout: number;
254
+ /**
255
+ * @generated from field: uint32 max_participants = 4;
256
+ */
257
+ maxParticipants: number;
258
+ /**
259
+ * @generated from field: int64 creation_time = 5;
260
+ */
261
+ creationTime: bigint;
262
+ /**
263
+ * @generated from field: string turn_password = 6;
264
+ */
265
+ turnPassword: string;
266
+ /**
267
+ * @generated from field: repeated livekit.Codec enabled_codecs = 7;
268
+ */
269
+ enabledCodecs: Codec[];
270
+ /**
271
+ * @generated from field: string metadata = 8;
272
+ */
273
+ metadata: string;
274
+ /**
275
+ * @generated from field: uint32 num_participants = 9;
276
+ */
277
+ numParticipants: number;
278
+ /**
279
+ * @generated from field: uint32 num_publishers = 11;
280
+ */
281
+ numPublishers: number;
282
+ /**
283
+ * @generated from field: bool active_recording = 10;
284
+ */
285
+ activeRecording: boolean;
286
+ constructor(data?: PartialMessage<Room>);
287
+ static readonly runtime: typeof proto3;
288
+ static readonly typeName = "livekit.Room";
289
+ static readonly fields: FieldList;
290
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Room;
291
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Room;
292
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Room;
293
+ static equals(a: Room | PlainMessage<Room> | undefined, b: Room | PlainMessage<Room> | undefined): boolean;
294
+ }
295
+ /**
296
+ * @generated from message livekit.Codec
297
+ */
298
+ export declare class Codec extends Message<Codec> {
299
+ /**
300
+ * @generated from field: string mime = 1;
301
+ */
302
+ mime: string;
303
+ /**
304
+ * @generated from field: string fmtp_line = 2;
305
+ */
306
+ fmtpLine: string;
307
+ constructor(data?: PartialMessage<Codec>);
308
+ static readonly runtime: typeof proto3;
309
+ static readonly typeName = "livekit.Codec";
310
+ static readonly fields: FieldList;
311
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Codec;
312
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Codec;
313
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Codec;
314
+ static equals(a: Codec | PlainMessage<Codec> | undefined, b: Codec | PlainMessage<Codec> | undefined): boolean;
315
+ }
316
+ /**
317
+ * @generated from message livekit.PlayoutDelay
318
+ */
319
+ export declare class PlayoutDelay extends Message<PlayoutDelay> {
320
+ /**
321
+ * @generated from field: bool enabled = 1;
322
+ */
323
+ enabled: boolean;
324
+ /**
325
+ * @generated from field: uint32 min = 2;
326
+ */
327
+ min: number;
328
+ /**
329
+ * @generated from field: uint32 max = 3;
330
+ */
331
+ max: number;
332
+ constructor(data?: PartialMessage<PlayoutDelay>);
333
+ static readonly runtime: typeof proto3;
334
+ static readonly typeName = "livekit.PlayoutDelay";
335
+ static readonly fields: FieldList;
336
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): PlayoutDelay;
337
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): PlayoutDelay;
338
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): PlayoutDelay;
339
+ static equals(a: PlayoutDelay | PlainMessage<PlayoutDelay> | undefined, b: PlayoutDelay | PlainMessage<PlayoutDelay> | undefined): boolean;
340
+ }
341
+ /**
342
+ * @generated from message livekit.ParticipantPermission
343
+ */
344
+ export declare class ParticipantPermission extends Message<ParticipantPermission> {
345
+ /**
346
+ * allow participant to subscribe to other tracks in the room
347
+ *
348
+ * @generated from field: bool can_subscribe = 1;
349
+ */
350
+ canSubscribe: boolean;
351
+ /**
352
+ * allow participant to publish new tracks to room
353
+ *
354
+ * @generated from field: bool can_publish = 2;
355
+ */
356
+ canPublish: boolean;
357
+ /**
358
+ * allow participant to publish data
359
+ *
360
+ * @generated from field: bool can_publish_data = 3;
361
+ */
362
+ canPublishData: boolean;
363
+ /**
364
+ * sources that are allowed to be published
365
+ *
366
+ * @generated from field: repeated livekit.TrackSource can_publish_sources = 9;
367
+ */
368
+ canPublishSources: TrackSource[];
369
+ /**
370
+ * indicates that it's hidden to others
371
+ *
372
+ * @generated from field: bool hidden = 7;
373
+ */
374
+ hidden: boolean;
375
+ /**
376
+ * indicates it's a recorder instance
377
+ *
378
+ * @generated from field: bool recorder = 8;
379
+ */
380
+ recorder: boolean;
381
+ /**
382
+ * indicates that participant can update own metadata
383
+ *
384
+ * @generated from field: bool can_update_metadata = 10;
385
+ */
386
+ canUpdateMetadata: boolean;
387
+ /**
388
+ * indicates that participant is an agent
389
+ *
390
+ * @generated from field: bool agent = 11;
391
+ */
392
+ agent: boolean;
393
+ constructor(data?: PartialMessage<ParticipantPermission>);
394
+ static readonly runtime: typeof proto3;
395
+ static readonly typeName = "livekit.ParticipantPermission";
396
+ static readonly fields: FieldList;
397
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ParticipantPermission;
398
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ParticipantPermission;
399
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ParticipantPermission;
400
+ static equals(a: ParticipantPermission | PlainMessage<ParticipantPermission> | undefined, b: ParticipantPermission | PlainMessage<ParticipantPermission> | undefined): boolean;
401
+ }
402
+ /**
403
+ * @generated from message livekit.ParticipantInfo
404
+ */
405
+ export declare class ParticipantInfo extends Message<ParticipantInfo> {
406
+ /**
407
+ * @generated from field: string sid = 1;
408
+ */
409
+ sid: string;
410
+ /**
411
+ * @generated from field: string identity = 2;
412
+ */
413
+ identity: string;
414
+ /**
415
+ * @generated from field: livekit.ParticipantInfo.State state = 3;
416
+ */
417
+ state: ParticipantInfo_State;
418
+ /**
419
+ * @generated from field: repeated livekit.TrackInfo tracks = 4;
420
+ */
421
+ tracks: TrackInfo[];
422
+ /**
423
+ * @generated from field: string metadata = 5;
424
+ */
425
+ metadata: string;
426
+ /**
427
+ * timestamp when participant joined room, in seconds
428
+ *
429
+ * @generated from field: int64 joined_at = 6;
430
+ */
431
+ joinedAt: bigint;
432
+ /**
433
+ * @generated from field: string name = 9;
434
+ */
435
+ name: string;
436
+ /**
437
+ * @generated from field: uint32 version = 10;
438
+ */
439
+ version: number;
440
+ /**
441
+ * @generated from field: livekit.ParticipantPermission permission = 11;
442
+ */
443
+ permission?: ParticipantPermission;
444
+ /**
445
+ * @generated from field: string region = 12;
446
+ */
447
+ region: string;
448
+ /**
449
+ * indicates the participant has an active publisher connection
450
+ * and can publish to the server
451
+ *
452
+ * @generated from field: bool is_publisher = 13;
453
+ */
454
+ isPublisher: boolean;
455
+ constructor(data?: PartialMessage<ParticipantInfo>);
456
+ static readonly runtime: typeof proto3;
457
+ static readonly typeName = "livekit.ParticipantInfo";
458
+ static readonly fields: FieldList;
459
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ParticipantInfo;
460
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ParticipantInfo;
461
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ParticipantInfo;
462
+ static equals(a: ParticipantInfo | PlainMessage<ParticipantInfo> | undefined, b: ParticipantInfo | PlainMessage<ParticipantInfo> | undefined): boolean;
463
+ }
464
+ /**
465
+ * @generated from enum livekit.ParticipantInfo.State
466
+ */
467
+ export declare enum ParticipantInfo_State {
468
+ /**
469
+ * websocket' connected, but not offered yet
470
+ *
471
+ * @generated from enum value: JOINING = 0;
472
+ */
473
+ JOINING = 0,
474
+ /**
475
+ * server received client offer
476
+ *
477
+ * @generated from enum value: JOINED = 1;
478
+ */
479
+ JOINED = 1,
480
+ /**
481
+ * ICE connectivity established
482
+ *
483
+ * @generated from enum value: ACTIVE = 2;
484
+ */
485
+ ACTIVE = 2,
486
+ /**
487
+ * WS disconnected
488
+ *
489
+ * @generated from enum value: DISCONNECTED = 3;
490
+ */
491
+ DISCONNECTED = 3
492
+ }
493
+ /**
494
+ * @generated from message livekit.Encryption
495
+ */
496
+ export declare class Encryption extends Message<Encryption> {
497
+ constructor(data?: PartialMessage<Encryption>);
498
+ static readonly runtime: typeof proto3;
499
+ static readonly typeName = "livekit.Encryption";
500
+ static readonly fields: FieldList;
501
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Encryption;
502
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Encryption;
503
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Encryption;
504
+ static equals(a: Encryption | PlainMessage<Encryption> | undefined, b: Encryption | PlainMessage<Encryption> | undefined): boolean;
505
+ }
506
+ /**
507
+ * @generated from enum livekit.Encryption.Type
508
+ */
509
+ export declare enum Encryption_Type {
510
+ /**
511
+ * @generated from enum value: NONE = 0;
512
+ */
513
+ NONE = 0,
514
+ /**
515
+ * @generated from enum value: GCM = 1;
516
+ */
517
+ GCM = 1,
518
+ /**
519
+ * @generated from enum value: CUSTOM = 2;
520
+ */
521
+ CUSTOM = 2
522
+ }
523
+ /**
524
+ * @generated from message livekit.SimulcastCodecInfo
525
+ */
526
+ export declare class SimulcastCodecInfo extends Message<SimulcastCodecInfo> {
527
+ /**
528
+ * @generated from field: string mime_type = 1;
529
+ */
530
+ mimeType: string;
531
+ /**
532
+ * @generated from field: string mid = 2;
533
+ */
534
+ mid: string;
535
+ /**
536
+ * @generated from field: string cid = 3;
537
+ */
538
+ cid: string;
539
+ /**
540
+ * @generated from field: repeated livekit.VideoLayer layers = 4;
541
+ */
542
+ layers: VideoLayer[];
543
+ constructor(data?: PartialMessage<SimulcastCodecInfo>);
544
+ static readonly runtime: typeof proto3;
545
+ static readonly typeName = "livekit.SimulcastCodecInfo";
546
+ static readonly fields: FieldList;
547
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SimulcastCodecInfo;
548
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SimulcastCodecInfo;
549
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SimulcastCodecInfo;
550
+ static equals(a: SimulcastCodecInfo | PlainMessage<SimulcastCodecInfo> | undefined, b: SimulcastCodecInfo | PlainMessage<SimulcastCodecInfo> | undefined): boolean;
551
+ }
552
+ /**
553
+ * @generated from message livekit.TrackInfo
554
+ */
555
+ export declare class TrackInfo extends Message<TrackInfo> {
556
+ /**
557
+ * @generated from field: string sid = 1;
558
+ */
559
+ sid: string;
560
+ /**
561
+ * @generated from field: livekit.TrackType type = 2;
562
+ */
563
+ type: TrackType;
564
+ /**
565
+ * @generated from field: string name = 3;
566
+ */
567
+ name: string;
568
+ /**
569
+ * @generated from field: bool muted = 4;
570
+ */
571
+ muted: boolean;
572
+ /**
573
+ * original width of video (unset for audio)
574
+ * clients may receive a lower resolution version with simulcast
575
+ *
576
+ * @generated from field: uint32 width = 5;
577
+ */
578
+ width: number;
579
+ /**
580
+ * original height of video (unset for audio)
581
+ *
582
+ * @generated from field: uint32 height = 6;
583
+ */
584
+ height: number;
585
+ /**
586
+ * true if track is simulcasted
587
+ *
588
+ * @generated from field: bool simulcast = 7;
589
+ */
590
+ simulcast: boolean;
591
+ /**
592
+ * true if DTX (Discontinuous Transmission) is disabled for audio
593
+ *
594
+ * @generated from field: bool disable_dtx = 8;
595
+ */
596
+ disableDtx: boolean;
597
+ /**
598
+ * source of media
599
+ *
600
+ * @generated from field: livekit.TrackSource source = 9;
601
+ */
602
+ source: TrackSource;
603
+ /**
604
+ * @generated from field: repeated livekit.VideoLayer layers = 10;
605
+ */
606
+ layers: VideoLayer[];
607
+ /**
608
+ * mime type of codec
609
+ *
610
+ * @generated from field: string mime_type = 11;
611
+ */
612
+ mimeType: string;
613
+ /**
614
+ * @generated from field: string mid = 12;
615
+ */
616
+ mid: string;
617
+ /**
618
+ * @generated from field: repeated livekit.SimulcastCodecInfo codecs = 13;
619
+ */
620
+ codecs: SimulcastCodecInfo[];
621
+ /**
622
+ * @generated from field: bool stereo = 14;
623
+ */
624
+ stereo: boolean;
625
+ /**
626
+ * true if RED (Redundant Encoding) is disabled for audio
627
+ *
628
+ * @generated from field: bool disable_red = 15;
629
+ */
630
+ disableRed: boolean;
631
+ /**
632
+ * @generated from field: livekit.Encryption.Type encryption = 16;
633
+ */
634
+ encryption: Encryption_Type;
635
+ /**
636
+ * @generated from field: string stream = 17;
637
+ */
638
+ stream: string;
639
+ constructor(data?: PartialMessage<TrackInfo>);
640
+ static readonly runtime: typeof proto3;
641
+ static readonly typeName = "livekit.TrackInfo";
642
+ static readonly fields: FieldList;
643
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): TrackInfo;
644
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): TrackInfo;
645
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): TrackInfo;
646
+ static equals(a: TrackInfo | PlainMessage<TrackInfo> | undefined, b: TrackInfo | PlainMessage<TrackInfo> | undefined): boolean;
647
+ }
648
+ /**
649
+ * provide information about available spatial layers
650
+ *
651
+ * @generated from message livekit.VideoLayer
652
+ */
653
+ export declare class VideoLayer extends Message<VideoLayer> {
654
+ /**
655
+ * for tracks with a single layer, this should be HIGH
656
+ *
657
+ * @generated from field: livekit.VideoQuality quality = 1;
658
+ */
659
+ quality: VideoQuality;
660
+ /**
661
+ * @generated from field: uint32 width = 2;
662
+ */
663
+ width: number;
664
+ /**
665
+ * @generated from field: uint32 height = 3;
666
+ */
667
+ height: number;
668
+ /**
669
+ * target bitrate in bit per second (bps), server will measure actual
670
+ *
671
+ * @generated from field: uint32 bitrate = 4;
672
+ */
673
+ bitrate: number;
674
+ /**
675
+ * @generated from field: uint32 ssrc = 5;
676
+ */
677
+ ssrc: number;
678
+ constructor(data?: PartialMessage<VideoLayer>);
679
+ static readonly runtime: typeof proto3;
680
+ static readonly typeName = "livekit.VideoLayer";
681
+ static readonly fields: FieldList;
682
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): VideoLayer;
683
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): VideoLayer;
684
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): VideoLayer;
685
+ static equals(a: VideoLayer | PlainMessage<VideoLayer> | undefined, b: VideoLayer | PlainMessage<VideoLayer> | undefined): boolean;
686
+ }
687
+ /**
688
+ * new DataPacket API
689
+ *
690
+ * @generated from message livekit.DataPacket
691
+ */
692
+ export declare class DataPacket extends Message<DataPacket> {
693
+ /**
694
+ * @generated from field: livekit.DataPacket.Kind kind = 1;
695
+ */
696
+ kind: DataPacket_Kind;
697
+ /**
698
+ * @generated from oneof livekit.DataPacket.value
699
+ */
700
+ value: {
701
+ /**
702
+ * @generated from field: livekit.UserPacket user = 2;
703
+ */
704
+ value: UserPacket;
705
+ case: "user";
706
+ } | {
707
+ /**
708
+ * @generated from field: livekit.ActiveSpeakerUpdate speaker = 3;
709
+ */
710
+ value: ActiveSpeakerUpdate;
711
+ case: "speaker";
712
+ } | {
713
+ case: undefined;
714
+ value?: undefined;
715
+ };
716
+ constructor(data?: PartialMessage<DataPacket>);
717
+ static readonly runtime: typeof proto3;
718
+ static readonly typeName = "livekit.DataPacket";
719
+ static readonly fields: FieldList;
720
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): DataPacket;
721
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): DataPacket;
722
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): DataPacket;
723
+ static equals(a: DataPacket | PlainMessage<DataPacket> | undefined, b: DataPacket | PlainMessage<DataPacket> | undefined): boolean;
724
+ }
725
+ /**
726
+ * @generated from enum livekit.DataPacket.Kind
727
+ */
728
+ export declare enum DataPacket_Kind {
729
+ /**
730
+ * @generated from enum value: RELIABLE = 0;
731
+ */
732
+ RELIABLE = 0,
733
+ /**
734
+ * @generated from enum value: LOSSY = 1;
735
+ */
736
+ LOSSY = 1
737
+ }
738
+ /**
739
+ * @generated from message livekit.ActiveSpeakerUpdate
740
+ */
741
+ export declare class ActiveSpeakerUpdate extends Message<ActiveSpeakerUpdate> {
742
+ /**
743
+ * @generated from field: repeated livekit.SpeakerInfo speakers = 1;
744
+ */
745
+ speakers: SpeakerInfo[];
746
+ constructor(data?: PartialMessage<ActiveSpeakerUpdate>);
747
+ static readonly runtime: typeof proto3;
748
+ static readonly typeName = "livekit.ActiveSpeakerUpdate";
749
+ static readonly fields: FieldList;
750
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ActiveSpeakerUpdate;
751
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ActiveSpeakerUpdate;
752
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ActiveSpeakerUpdate;
753
+ static equals(a: ActiveSpeakerUpdate | PlainMessage<ActiveSpeakerUpdate> | undefined, b: ActiveSpeakerUpdate | PlainMessage<ActiveSpeakerUpdate> | undefined): boolean;
754
+ }
755
+ /**
756
+ * @generated from message livekit.SpeakerInfo
757
+ */
758
+ export declare class SpeakerInfo extends Message<SpeakerInfo> {
759
+ /**
760
+ * @generated from field: string sid = 1;
761
+ */
762
+ sid: string;
763
+ /**
764
+ * audio level, 0-1.0, 1 is loudest
765
+ *
766
+ * @generated from field: float level = 2;
767
+ */
768
+ level: number;
769
+ /**
770
+ * true if speaker is currently active
771
+ *
772
+ * @generated from field: bool active = 3;
773
+ */
774
+ active: boolean;
775
+ constructor(data?: PartialMessage<SpeakerInfo>);
776
+ static readonly runtime: typeof proto3;
777
+ static readonly typeName = "livekit.SpeakerInfo";
778
+ static readonly fields: FieldList;
779
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SpeakerInfo;
780
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SpeakerInfo;
781
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SpeakerInfo;
782
+ static equals(a: SpeakerInfo | PlainMessage<SpeakerInfo> | undefined, b: SpeakerInfo | PlainMessage<SpeakerInfo> | undefined): boolean;
783
+ }
784
+ /**
785
+ * @generated from message livekit.UserPacket
786
+ */
787
+ export declare class UserPacket extends Message<UserPacket> {
788
+ /**
789
+ * participant ID of user that sent the message
790
+ *
791
+ * @generated from field: string participant_sid = 1;
792
+ */
793
+ participantSid: string;
794
+ /**
795
+ * @generated from field: string participant_identity = 5;
796
+ */
797
+ participantIdentity: string;
798
+ /**
799
+ * user defined payload
800
+ *
801
+ * @generated from field: bytes payload = 2;
802
+ */
803
+ payload: Uint8Array;
804
+ /**
805
+ * the ID of the participants who will receive the message (sent to all by default)
806
+ *
807
+ * @generated from field: repeated string destination_sids = 3;
808
+ */
809
+ destinationSids: string[];
810
+ /**
811
+ * identities of participants who will receive the message (sent to all by default)
812
+ *
813
+ * @generated from field: repeated string destination_identities = 6;
814
+ */
815
+ destinationIdentities: string[];
816
+ /**
817
+ * topic under which the message was published
818
+ *
819
+ * @generated from field: optional string topic = 4;
820
+ */
821
+ topic?: string;
822
+ constructor(data?: PartialMessage<UserPacket>);
823
+ static readonly runtime: typeof proto3;
824
+ static readonly typeName = "livekit.UserPacket";
825
+ static readonly fields: FieldList;
826
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): UserPacket;
827
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): UserPacket;
828
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): UserPacket;
829
+ static equals(a: UserPacket | PlainMessage<UserPacket> | undefined, b: UserPacket | PlainMessage<UserPacket> | undefined): boolean;
830
+ }
831
+ /**
832
+ * @generated from message livekit.ParticipantTracks
833
+ */
834
+ export declare class ParticipantTracks extends Message<ParticipantTracks> {
835
+ /**
836
+ * participant ID of participant to whom the tracks belong
837
+ *
838
+ * @generated from field: string participant_sid = 1;
839
+ */
840
+ participantSid: string;
841
+ /**
842
+ * @generated from field: repeated string track_sids = 2;
843
+ */
844
+ trackSids: string[];
845
+ constructor(data?: PartialMessage<ParticipantTracks>);
846
+ static readonly runtime: typeof proto3;
847
+ static readonly typeName = "livekit.ParticipantTracks";
848
+ static readonly fields: FieldList;
849
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ParticipantTracks;
850
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ParticipantTracks;
851
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ParticipantTracks;
852
+ static equals(a: ParticipantTracks | PlainMessage<ParticipantTracks> | undefined, b: ParticipantTracks | PlainMessage<ParticipantTracks> | undefined): boolean;
853
+ }
854
+ /**
855
+ * details about the server
856
+ *
857
+ * @generated from message livekit.ServerInfo
858
+ */
859
+ export declare class ServerInfo extends Message<ServerInfo> {
860
+ /**
861
+ * @generated from field: livekit.ServerInfo.Edition edition = 1;
862
+ */
863
+ edition: ServerInfo_Edition;
864
+ /**
865
+ * @generated from field: string version = 2;
866
+ */
867
+ version: string;
868
+ /**
869
+ * @generated from field: int32 protocol = 3;
870
+ */
871
+ protocol: number;
872
+ /**
873
+ * @generated from field: string region = 4;
874
+ */
875
+ region: string;
876
+ /**
877
+ * @generated from field: string node_id = 5;
878
+ */
879
+ nodeId: string;
880
+ /**
881
+ * additional debugging information. sent only if server is in development mode
882
+ *
883
+ * @generated from field: string debug_info = 6;
884
+ */
885
+ debugInfo: string;
886
+ constructor(data?: PartialMessage<ServerInfo>);
887
+ static readonly runtime: typeof proto3;
888
+ static readonly typeName = "livekit.ServerInfo";
889
+ static readonly fields: FieldList;
890
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ServerInfo;
891
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ServerInfo;
892
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ServerInfo;
893
+ static equals(a: ServerInfo | PlainMessage<ServerInfo> | undefined, b: ServerInfo | PlainMessage<ServerInfo> | undefined): boolean;
894
+ }
895
+ /**
896
+ * @generated from enum livekit.ServerInfo.Edition
897
+ */
898
+ export declare enum ServerInfo_Edition {
899
+ /**
900
+ * @generated from enum value: Standard = 0;
901
+ */
902
+ Standard = 0,
903
+ /**
904
+ * @generated from enum value: Cloud = 1;
905
+ */
906
+ Cloud = 1
907
+ }
908
+ /**
909
+ * details about the client
910
+ *
911
+ * @generated from message livekit.ClientInfo
912
+ */
913
+ export declare class ClientInfo extends Message<ClientInfo> {
914
+ /**
915
+ * @generated from field: livekit.ClientInfo.SDK sdk = 1;
916
+ */
917
+ sdk: ClientInfo_SDK;
918
+ /**
919
+ * @generated from field: string version = 2;
920
+ */
921
+ version: string;
922
+ /**
923
+ * @generated from field: int32 protocol = 3;
924
+ */
925
+ protocol: number;
926
+ /**
927
+ * @generated from field: string os = 4;
928
+ */
929
+ os: string;
930
+ /**
931
+ * @generated from field: string os_version = 5;
932
+ */
933
+ osVersion: string;
934
+ /**
935
+ * @generated from field: string device_model = 6;
936
+ */
937
+ deviceModel: string;
938
+ /**
939
+ * @generated from field: string browser = 7;
940
+ */
941
+ browser: string;
942
+ /**
943
+ * @generated from field: string browser_version = 8;
944
+ */
945
+ browserVersion: string;
946
+ /**
947
+ * @generated from field: string address = 9;
948
+ */
949
+ address: string;
950
+ /**
951
+ * wifi, wired, cellular, vpn, empty if not known
952
+ *
953
+ * @generated from field: string network = 10;
954
+ */
955
+ network: string;
956
+ constructor(data?: PartialMessage<ClientInfo>);
957
+ static readonly runtime: typeof proto3;
958
+ static readonly typeName = "livekit.ClientInfo";
959
+ static readonly fields: FieldList;
960
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ClientInfo;
961
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ClientInfo;
962
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ClientInfo;
963
+ static equals(a: ClientInfo | PlainMessage<ClientInfo> | undefined, b: ClientInfo | PlainMessage<ClientInfo> | undefined): boolean;
964
+ }
965
+ /**
966
+ * @generated from enum livekit.ClientInfo.SDK
967
+ */
968
+ export declare enum ClientInfo_SDK {
969
+ /**
970
+ * @generated from enum value: UNKNOWN = 0;
971
+ */
972
+ UNKNOWN = 0,
973
+ /**
974
+ * @generated from enum value: JS = 1;
975
+ */
976
+ JS = 1,
977
+ /**
978
+ * @generated from enum value: SWIFT = 2;
979
+ */
980
+ SWIFT = 2,
981
+ /**
982
+ * @generated from enum value: ANDROID = 3;
983
+ */
984
+ ANDROID = 3,
985
+ /**
986
+ * @generated from enum value: FLUTTER = 4;
987
+ */
988
+ FLUTTER = 4,
989
+ /**
990
+ * @generated from enum value: GO = 5;
991
+ */
992
+ GO = 5,
993
+ /**
994
+ * @generated from enum value: UNITY = 6;
995
+ */
996
+ UNITY = 6,
997
+ /**
998
+ * @generated from enum value: REACT_NATIVE = 7;
999
+ */
1000
+ REACT_NATIVE = 7,
1001
+ /**
1002
+ * @generated from enum value: RUST = 8;
1003
+ */
1004
+ RUST = 8,
1005
+ /**
1006
+ * @generated from enum value: PYTHON = 9;
1007
+ */
1008
+ PYTHON = 9,
1009
+ /**
1010
+ * @generated from enum value: CPP = 10;
1011
+ */
1012
+ CPP = 10
1013
+ }
1014
+ /**
1015
+ * server provided client configuration
1016
+ *
1017
+ * @generated from message livekit.ClientConfiguration
1018
+ */
1019
+ export declare class ClientConfiguration extends Message<ClientConfiguration> {
1020
+ /**
1021
+ * @generated from field: livekit.VideoConfiguration video = 1;
1022
+ */
1023
+ video?: VideoConfiguration;
1024
+ /**
1025
+ * @generated from field: livekit.VideoConfiguration screen = 2;
1026
+ */
1027
+ screen?: VideoConfiguration;
1028
+ /**
1029
+ * @generated from field: livekit.ClientConfigSetting resume_connection = 3;
1030
+ */
1031
+ resumeConnection: ClientConfigSetting;
1032
+ /**
1033
+ * @generated from field: livekit.DisabledCodecs disabled_codecs = 4;
1034
+ */
1035
+ disabledCodecs?: DisabledCodecs;
1036
+ /**
1037
+ * @generated from field: livekit.ClientConfigSetting force_relay = 5;
1038
+ */
1039
+ forceRelay: ClientConfigSetting;
1040
+ constructor(data?: PartialMessage<ClientConfiguration>);
1041
+ static readonly runtime: typeof proto3;
1042
+ static readonly typeName = "livekit.ClientConfiguration";
1043
+ static readonly fields: FieldList;
1044
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ClientConfiguration;
1045
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ClientConfiguration;
1046
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ClientConfiguration;
1047
+ static equals(a: ClientConfiguration | PlainMessage<ClientConfiguration> | undefined, b: ClientConfiguration | PlainMessage<ClientConfiguration> | undefined): boolean;
1048
+ }
1049
+ /**
1050
+ * @generated from message livekit.VideoConfiguration
1051
+ */
1052
+ export declare class VideoConfiguration extends Message<VideoConfiguration> {
1053
+ /**
1054
+ * @generated from field: livekit.ClientConfigSetting hardware_encoder = 1;
1055
+ */
1056
+ hardwareEncoder: ClientConfigSetting;
1057
+ constructor(data?: PartialMessage<VideoConfiguration>);
1058
+ static readonly runtime: typeof proto3;
1059
+ static readonly typeName = "livekit.VideoConfiguration";
1060
+ static readonly fields: FieldList;
1061
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): VideoConfiguration;
1062
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): VideoConfiguration;
1063
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): VideoConfiguration;
1064
+ static equals(a: VideoConfiguration | PlainMessage<VideoConfiguration> | undefined, b: VideoConfiguration | PlainMessage<VideoConfiguration> | undefined): boolean;
1065
+ }
1066
+ /**
1067
+ * @generated from message livekit.DisabledCodecs
1068
+ */
1069
+ export declare class DisabledCodecs extends Message<DisabledCodecs> {
1070
+ /**
1071
+ * disabled for both publish and subscribe
1072
+ *
1073
+ * @generated from field: repeated livekit.Codec codecs = 1;
1074
+ */
1075
+ codecs: Codec[];
1076
+ /**
1077
+ * only disable for publish
1078
+ *
1079
+ * @generated from field: repeated livekit.Codec publish = 2;
1080
+ */
1081
+ publish: Codec[];
1082
+ constructor(data?: PartialMessage<DisabledCodecs>);
1083
+ static readonly runtime: typeof proto3;
1084
+ static readonly typeName = "livekit.DisabledCodecs";
1085
+ static readonly fields: FieldList;
1086
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): DisabledCodecs;
1087
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): DisabledCodecs;
1088
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): DisabledCodecs;
1089
+ static equals(a: DisabledCodecs | PlainMessage<DisabledCodecs> | undefined, b: DisabledCodecs | PlainMessage<DisabledCodecs> | undefined): boolean;
1090
+ }
1091
+ /**
1092
+ * @generated from message livekit.RTPDrift
1093
+ */
1094
+ export declare class RTPDrift extends Message<RTPDrift> {
1095
+ /**
1096
+ * @generated from field: google.protobuf.Timestamp start_time = 1;
1097
+ */
1098
+ startTime?: Timestamp;
1099
+ /**
1100
+ * @generated from field: google.protobuf.Timestamp end_time = 2;
1101
+ */
1102
+ endTime?: Timestamp;
1103
+ /**
1104
+ * @generated from field: double duration = 3;
1105
+ */
1106
+ duration: number;
1107
+ /**
1108
+ * @generated from field: uint64 start_timestamp = 4;
1109
+ */
1110
+ startTimestamp: bigint;
1111
+ /**
1112
+ * @generated from field: uint64 end_timestamp = 5;
1113
+ */
1114
+ endTimestamp: bigint;
1115
+ /**
1116
+ * @generated from field: uint64 rtp_clock_ticks = 6;
1117
+ */
1118
+ rtpClockTicks: bigint;
1119
+ /**
1120
+ * @generated from field: int64 drift_samples = 7;
1121
+ */
1122
+ driftSamples: bigint;
1123
+ /**
1124
+ * @generated from field: double drift_ms = 8;
1125
+ */
1126
+ driftMs: number;
1127
+ /**
1128
+ * @generated from field: double clock_rate = 9;
1129
+ */
1130
+ clockRate: number;
1131
+ constructor(data?: PartialMessage<RTPDrift>);
1132
+ static readonly runtime: typeof proto3;
1133
+ static readonly typeName = "livekit.RTPDrift";
1134
+ static readonly fields: FieldList;
1135
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): RTPDrift;
1136
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): RTPDrift;
1137
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): RTPDrift;
1138
+ static equals(a: RTPDrift | PlainMessage<RTPDrift> | undefined, b: RTPDrift | PlainMessage<RTPDrift> | undefined): boolean;
1139
+ }
1140
+ /**
1141
+ * @generated from message livekit.RTPStats
1142
+ */
1143
+ export declare class RTPStats extends Message<RTPStats> {
1144
+ /**
1145
+ * @generated from field: google.protobuf.Timestamp start_time = 1;
1146
+ */
1147
+ startTime?: Timestamp;
1148
+ /**
1149
+ * @generated from field: google.protobuf.Timestamp end_time = 2;
1150
+ */
1151
+ endTime?: Timestamp;
1152
+ /**
1153
+ * @generated from field: double duration = 3;
1154
+ */
1155
+ duration: number;
1156
+ /**
1157
+ * @generated from field: uint32 packets = 4;
1158
+ */
1159
+ packets: number;
1160
+ /**
1161
+ * @generated from field: double packet_rate = 5;
1162
+ */
1163
+ packetRate: number;
1164
+ /**
1165
+ * @generated from field: uint64 bytes = 6;
1166
+ */
1167
+ bytes: bigint;
1168
+ /**
1169
+ * @generated from field: uint64 header_bytes = 39;
1170
+ */
1171
+ headerBytes: bigint;
1172
+ /**
1173
+ * @generated from field: double bitrate = 7;
1174
+ */
1175
+ bitrate: number;
1176
+ /**
1177
+ * @generated from field: uint32 packets_lost = 8;
1178
+ */
1179
+ packetsLost: number;
1180
+ /**
1181
+ * @generated from field: double packet_loss_rate = 9;
1182
+ */
1183
+ packetLossRate: number;
1184
+ /**
1185
+ * @generated from field: float packet_loss_percentage = 10;
1186
+ */
1187
+ packetLossPercentage: number;
1188
+ /**
1189
+ * @generated from field: uint32 packets_duplicate = 11;
1190
+ */
1191
+ packetsDuplicate: number;
1192
+ /**
1193
+ * @generated from field: double packet_duplicate_rate = 12;
1194
+ */
1195
+ packetDuplicateRate: number;
1196
+ /**
1197
+ * @generated from field: uint64 bytes_duplicate = 13;
1198
+ */
1199
+ bytesDuplicate: bigint;
1200
+ /**
1201
+ * @generated from field: uint64 header_bytes_duplicate = 40;
1202
+ */
1203
+ headerBytesDuplicate: bigint;
1204
+ /**
1205
+ * @generated from field: double bitrate_duplicate = 14;
1206
+ */
1207
+ bitrateDuplicate: number;
1208
+ /**
1209
+ * @generated from field: uint32 packets_padding = 15;
1210
+ */
1211
+ packetsPadding: number;
1212
+ /**
1213
+ * @generated from field: double packet_padding_rate = 16;
1214
+ */
1215
+ packetPaddingRate: number;
1216
+ /**
1217
+ * @generated from field: uint64 bytes_padding = 17;
1218
+ */
1219
+ bytesPadding: bigint;
1220
+ /**
1221
+ * @generated from field: uint64 header_bytes_padding = 41;
1222
+ */
1223
+ headerBytesPadding: bigint;
1224
+ /**
1225
+ * @generated from field: double bitrate_padding = 18;
1226
+ */
1227
+ bitratePadding: number;
1228
+ /**
1229
+ * @generated from field: uint32 packets_out_of_order = 19;
1230
+ */
1231
+ packetsOutOfOrder: number;
1232
+ /**
1233
+ * @generated from field: uint32 frames = 20;
1234
+ */
1235
+ frames: number;
1236
+ /**
1237
+ * @generated from field: double frame_rate = 21;
1238
+ */
1239
+ frameRate: number;
1240
+ /**
1241
+ * @generated from field: double jitter_current = 22;
1242
+ */
1243
+ jitterCurrent: number;
1244
+ /**
1245
+ * @generated from field: double jitter_max = 23;
1246
+ */
1247
+ jitterMax: number;
1248
+ /**
1249
+ * @generated from field: map<int32, uint32> gap_histogram = 24;
1250
+ */
1251
+ gapHistogram: {
1252
+ [key: number]: number;
1253
+ };
1254
+ /**
1255
+ * @generated from field: uint32 nacks = 25;
1256
+ */
1257
+ nacks: number;
1258
+ /**
1259
+ * @generated from field: uint32 nack_acks = 37;
1260
+ */
1261
+ nackAcks: number;
1262
+ /**
1263
+ * @generated from field: uint32 nack_misses = 26;
1264
+ */
1265
+ nackMisses: number;
1266
+ /**
1267
+ * @generated from field: uint32 nack_repeated = 38;
1268
+ */
1269
+ nackRepeated: number;
1270
+ /**
1271
+ * @generated from field: uint32 plis = 27;
1272
+ */
1273
+ plis: number;
1274
+ /**
1275
+ * @generated from field: google.protobuf.Timestamp last_pli = 28;
1276
+ */
1277
+ lastPli?: Timestamp;
1278
+ /**
1279
+ * @generated from field: uint32 firs = 29;
1280
+ */
1281
+ firs: number;
1282
+ /**
1283
+ * @generated from field: google.protobuf.Timestamp last_fir = 30;
1284
+ */
1285
+ lastFir?: Timestamp;
1286
+ /**
1287
+ * @generated from field: uint32 rtt_current = 31;
1288
+ */
1289
+ rttCurrent: number;
1290
+ /**
1291
+ * @generated from field: uint32 rtt_max = 32;
1292
+ */
1293
+ rttMax: number;
1294
+ /**
1295
+ * @generated from field: uint32 key_frames = 33;
1296
+ */
1297
+ keyFrames: number;
1298
+ /**
1299
+ * @generated from field: google.protobuf.Timestamp last_key_frame = 34;
1300
+ */
1301
+ lastKeyFrame?: Timestamp;
1302
+ /**
1303
+ * @generated from field: uint32 layer_lock_plis = 35;
1304
+ */
1305
+ layerLockPlis: number;
1306
+ /**
1307
+ * @generated from field: google.protobuf.Timestamp last_layer_lock_pli = 36;
1308
+ */
1309
+ lastLayerLockPli?: Timestamp;
1310
+ /**
1311
+ * @generated from field: livekit.RTPDrift packet_drift = 44;
1312
+ */
1313
+ packetDrift?: RTPDrift;
1314
+ /**
1315
+ * NEXT_ID: 46
1316
+ *
1317
+ * @generated from field: livekit.RTPDrift report_drift = 45;
1318
+ */
1319
+ reportDrift?: RTPDrift;
1320
+ constructor(data?: PartialMessage<RTPStats>);
1321
+ static readonly runtime: typeof proto3;
1322
+ static readonly typeName = "livekit.RTPStats";
1323
+ static readonly fields: FieldList;
1324
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): RTPStats;
1325
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): RTPStats;
1326
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): RTPStats;
1327
+ static equals(a: RTPStats | PlainMessage<RTPStats> | undefined, b: RTPStats | PlainMessage<RTPStats> | undefined): boolean;
1328
+ }
1329
+ /**
1330
+ * @generated from message livekit.TimedVersion
1331
+ */
1332
+ export declare class TimedVersion extends Message<TimedVersion> {
1333
+ /**
1334
+ * @generated from field: int64 unix_micro = 1;
1335
+ */
1336
+ unixMicro: bigint;
1337
+ /**
1338
+ * @generated from field: int32 ticks = 2;
1339
+ */
1340
+ ticks: number;
1341
+ constructor(data?: PartialMessage<TimedVersion>);
1342
+ static readonly runtime: typeof proto3;
1343
+ static readonly typeName = "livekit.TimedVersion";
1344
+ static readonly fields: FieldList;
1345
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): TimedVersion;
1346
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): TimedVersion;
1347
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): TimedVersion;
1348
+ static equals(a: TimedVersion | PlainMessage<TimedVersion> | undefined, b: TimedVersion | PlainMessage<TimedVersion> | undefined): boolean;
1349
+ }