@livekit/protocol 1.29.2 → 1.29.4

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 (116) hide show
  1. package/dist/index.cjs +6261 -51
  2. package/dist/index.cjs.map +1 -1
  3. package/dist/index.d.cts +11475 -0
  4. package/dist/index.d.mts +11475 -0
  5. package/dist/index.d.ts +11475 -13
  6. package/dist/index.mjs +6013 -0
  7. package/dist/index.mjs.map +1 -0
  8. package/package.json +18 -18
  9. package/src/gen/livekit_agent_dispatch_pb.d.ts +253 -0
  10. package/src/gen/livekit_agent_dispatch_pb.js +103 -0
  11. package/src/gen/livekit_agent_pb.d.ts +741 -0
  12. package/src/gen/livekit_agent_pb.js +266 -0
  13. package/src/gen/livekit_analytics_pb.d.ts +889 -0
  14. package/src/gen/livekit_analytics_pb.js +264 -0
  15. package/src/gen/livekit_egress_pb.d.ts +2056 -0
  16. package/src/gen/livekit_egress_pb.js +594 -0
  17. package/src/gen/livekit_ingress_pb.d.ts +843 -0
  18. package/src/gen/livekit_ingress_pb.js +269 -0
  19. package/src/gen/livekit_internal_pb.d.ts +622 -0
  20. package/src/gen/livekit_internal_pb.js +191 -0
  21. package/src/gen/livekit_metrics_pb.d.ts +376 -0
  22. package/src/gen/livekit_metrics_pb.js +97 -0
  23. package/src/gen/livekit_models_pb.d.ts +2837 -0
  24. package/src/gen/livekit_models_pb.js +913 -0
  25. package/src/gen/livekit_room_pb.d.ts +774 -0
  26. package/src/gen/livekit_room_pb.js +259 -0
  27. package/src/gen/livekit_rtc_pb.d.ts +2001 -0
  28. package/src/gen/livekit_rtc_pb.js +634 -0
  29. package/src/gen/livekit_sip_pb.d.ts +1551 -0
  30. package/src/gen/livekit_sip_pb.js +483 -0
  31. package/src/gen/livekit_webhook_pb.d.ts +105 -0
  32. package/src/gen/livekit_webhook_pb.js +42 -0
  33. package/src/gen/version.d.ts +1 -0
  34. package/src/gen/version.js +2 -0
  35. package/src/index.d.ts +12 -0
  36. package/{dist → src}/index.js +2 -5
  37. package/dist/gen/livekit_agent_dispatch_pb.cjs +0 -385
  38. package/dist/gen/livekit_agent_dispatch_pb.cjs.map +0 -1
  39. package/dist/gen/livekit_agent_dispatch_pb.d.ts +0 -174
  40. package/dist/gen/livekit_agent_dispatch_pb.d.ts.map +0 -1
  41. package/dist/gen/livekit_agent_dispatch_pb.js +0 -356
  42. package/dist/gen/livekit_agent_dispatch_pb.js.map +0 -1
  43. package/dist/gen/livekit_agent_pb.cjs +0 -881
  44. package/dist/gen/livekit_agent_pb.cjs.map +0 -1
  45. package/dist/gen/livekit_agent_pb.d.ts +0 -575
  46. package/dist/gen/livekit_agent_pb.d.ts.map +0 -1
  47. package/dist/gen/livekit_agent_pb.js +0 -840
  48. package/dist/gen/livekit_agent_pb.js.map +0 -1
  49. package/dist/gen/livekit_analytics_pb.cjs +0 -1087
  50. package/dist/gen/livekit_analytics_pb.cjs.map +0 -1
  51. package/dist/gen/livekit_analytics_pb.d.ts +0 -679
  52. package/dist/gen/livekit_analytics_pb.d.ts.map +0 -1
  53. package/dist/gen/livekit_analytics_pb.js +0 -1053
  54. package/dist/gen/livekit_analytics_pb.js.map +0 -1
  55. package/dist/gen/livekit_egress_pb.cjs +0 -2476
  56. package/dist/gen/livekit_egress_pb.cjs.map +0 -1
  57. package/dist/gen/livekit_egress_pb.d.ts +0 -1720
  58. package/dist/gen/livekit_egress_pb.d.ts.map +0 -1
  59. package/dist/gen/livekit_egress_pb.js +0 -2417
  60. package/dist/gen/livekit_egress_pb.js.map +0 -1
  61. package/dist/gen/livekit_ingress_pb.cjs +0 -1050
  62. package/dist/gen/livekit_ingress_pb.cjs.map +0 -1
  63. package/dist/gen/livekit_ingress_pb.d.ts +0 -660
  64. package/dist/gen/livekit_ingress_pb.d.ts.map +0 -1
  65. package/dist/gen/livekit_ingress_pb.js +0 -1011
  66. package/dist/gen/livekit_ingress_pb.js.map +0 -1
  67. package/dist/gen/livekit_internal_pb.cjs +0 -998
  68. package/dist/gen/livekit_internal_pb.cjs.map +0 -1
  69. package/dist/gen/livekit_internal_pb.d.ts +0 -481
  70. package/dist/gen/livekit_internal_pb.d.ts.map +0 -1
  71. package/dist/gen/livekit_internal_pb.js +0 -968
  72. package/dist/gen/livekit_internal_pb.js.map +0 -1
  73. package/dist/gen/livekit_metrics_pb.cjs +0 -371
  74. package/dist/gen/livekit_metrics_pb.cjs.map +0 -1
  75. package/dist/gen/livekit_metrics_pb.d.ts +0 -304
  76. package/dist/gen/livekit_metrics_pb.d.ts.map +0 -1
  77. package/dist/gen/livekit_metrics_pb.js +0 -344
  78. package/dist/gen/livekit_metrics_pb.js.map +0 -1
  79. package/dist/gen/livekit_models_pb.cjs +0 -3668
  80. package/dist/gen/livekit_models_pb.cjs.map +0 -1
  81. package/dist/gen/livekit_models_pb.d.ts +0 -2265
  82. package/dist/gen/livekit_models_pb.d.ts.map +0 -1
  83. package/dist/gen/livekit_models_pb.js +0 -3588
  84. package/dist/gen/livekit_models_pb.js.map +0 -1
  85. package/dist/gen/livekit_room_pb.cjs +0 -1080
  86. package/dist/gen/livekit_room_pb.cjs.map +0 -1
  87. package/dist/gen/livekit_room_pb.d.ts +0 -580
  88. package/dist/gen/livekit_room_pb.d.ts.map +0 -1
  89. package/dist/gen/livekit_room_pb.js +0 -1038
  90. package/dist/gen/livekit_room_pb.js.map +0 -1
  91. package/dist/gen/livekit_rtc_pb.cjs +0 -2261
  92. package/dist/gen/livekit_rtc_pb.cjs.map +0 -1
  93. package/dist/gen/livekit_rtc_pb.d.ts +0 -1602
  94. package/dist/gen/livekit_rtc_pb.d.ts.map +0 -1
  95. package/dist/gen/livekit_rtc_pb.js +0 -2192
  96. package/dist/gen/livekit_rtc_pb.js.map +0 -1
  97. package/dist/gen/livekit_sip_pb.cjs +0 -2118
  98. package/dist/gen/livekit_sip_pb.cjs.map +0 -1
  99. package/dist/gen/livekit_sip_pb.d.ts +0 -1226
  100. package/dist/gen/livekit_sip_pb.d.ts.map +0 -1
  101. package/dist/gen/livekit_sip_pb.js +0 -2061
  102. package/dist/gen/livekit_sip_pb.js.map +0 -1
  103. package/dist/gen/livekit_webhook_pb.cjs +0 -111
  104. package/dist/gen/livekit_webhook_pb.cjs.map +0 -1
  105. package/dist/gen/livekit_webhook_pb.d.ts +0 -71
  106. package/dist/gen/livekit_webhook_pb.d.ts.map +0 -1
  107. package/dist/gen/livekit_webhook_pb.js +0 -88
  108. package/dist/gen/livekit_webhook_pb.js.map +0 -1
  109. package/dist/gen/version.cjs +0 -28
  110. package/dist/gen/version.cjs.map +0 -1
  111. package/dist/gen/version.d.ts +0 -2
  112. package/dist/gen/version.d.ts.map +0 -1
  113. package/dist/gen/version.js +0 -5
  114. package/dist/gen/version.js.map +0 -1
  115. package/dist/index.d.ts.map +0 -1
  116. package/dist/index.js.map +0 -1
@@ -0,0 +1,2837 @@
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.10.0 with parameter "target=dts+js"
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, Timestamp } from "@bufbuild/protobuf";
21
+ import { Message, proto3 } from "@bufbuild/protobuf";
22
+ import type { MetricsBatch } from "./livekit_metrics_pb.js";
23
+
24
+ /**
25
+ * @generated from enum livekit.AudioCodec
26
+ */
27
+ export declare enum AudioCodec {
28
+ /**
29
+ * @generated from enum value: DEFAULT_AC = 0;
30
+ */
31
+ DEFAULT_AC = 0,
32
+
33
+ /**
34
+ * @generated from enum value: OPUS = 1;
35
+ */
36
+ OPUS = 1,
37
+
38
+ /**
39
+ * @generated from enum value: AAC = 2;
40
+ */
41
+ AAC = 2,
42
+ }
43
+
44
+ /**
45
+ * @generated from enum livekit.VideoCodec
46
+ */
47
+ export declare enum VideoCodec {
48
+ /**
49
+ * @generated from enum value: DEFAULT_VC = 0;
50
+ */
51
+ DEFAULT_VC = 0,
52
+
53
+ /**
54
+ * @generated from enum value: H264_BASELINE = 1;
55
+ */
56
+ H264_BASELINE = 1,
57
+
58
+ /**
59
+ * @generated from enum value: H264_MAIN = 2;
60
+ */
61
+ H264_MAIN = 2,
62
+
63
+ /**
64
+ * @generated from enum value: H264_HIGH = 3;
65
+ */
66
+ H264_HIGH = 3,
67
+
68
+ /**
69
+ * @generated from enum value: VP8 = 4;
70
+ */
71
+ VP8 = 4,
72
+ }
73
+
74
+ /**
75
+ * @generated from enum livekit.ImageCodec
76
+ */
77
+ export declare enum ImageCodec {
78
+ /**
79
+ * @generated from enum value: IC_DEFAULT = 0;
80
+ */
81
+ IC_DEFAULT = 0,
82
+
83
+ /**
84
+ * @generated from enum value: IC_JPEG = 1;
85
+ */
86
+ IC_JPEG = 1,
87
+ }
88
+
89
+ /**
90
+ * @generated from enum livekit.TrackType
91
+ */
92
+ export declare enum TrackType {
93
+ /**
94
+ * @generated from enum value: AUDIO = 0;
95
+ */
96
+ AUDIO = 0,
97
+
98
+ /**
99
+ * @generated from enum value: VIDEO = 1;
100
+ */
101
+ VIDEO = 1,
102
+
103
+ /**
104
+ * @generated from enum value: DATA = 2;
105
+ */
106
+ DATA = 2,
107
+ }
108
+
109
+ /**
110
+ * @generated from enum livekit.TrackSource
111
+ */
112
+ export declare enum TrackSource {
113
+ /**
114
+ * @generated from enum value: UNKNOWN = 0;
115
+ */
116
+ UNKNOWN = 0,
117
+
118
+ /**
119
+ * @generated from enum value: CAMERA = 1;
120
+ */
121
+ CAMERA = 1,
122
+
123
+ /**
124
+ * @generated from enum value: MICROPHONE = 2;
125
+ */
126
+ MICROPHONE = 2,
127
+
128
+ /**
129
+ * @generated from enum value: SCREEN_SHARE = 3;
130
+ */
131
+ SCREEN_SHARE = 3,
132
+
133
+ /**
134
+ * @generated from enum value: SCREEN_SHARE_AUDIO = 4;
135
+ */
136
+ SCREEN_SHARE_AUDIO = 4,
137
+ }
138
+
139
+ /**
140
+ * @generated from enum livekit.VideoQuality
141
+ */
142
+ export declare enum VideoQuality {
143
+ /**
144
+ * @generated from enum value: LOW = 0;
145
+ */
146
+ LOW = 0,
147
+
148
+ /**
149
+ * @generated from enum value: MEDIUM = 1;
150
+ */
151
+ MEDIUM = 1,
152
+
153
+ /**
154
+ * @generated from enum value: HIGH = 2;
155
+ */
156
+ HIGH = 2,
157
+
158
+ /**
159
+ * @generated from enum value: OFF = 3;
160
+ */
161
+ OFF = 3,
162
+ }
163
+
164
+ /**
165
+ * @generated from enum livekit.ConnectionQuality
166
+ */
167
+ export declare enum ConnectionQuality {
168
+ /**
169
+ * @generated from enum value: POOR = 0;
170
+ */
171
+ POOR = 0,
172
+
173
+ /**
174
+ * @generated from enum value: GOOD = 1;
175
+ */
176
+ GOOD = 1,
177
+
178
+ /**
179
+ * @generated from enum value: EXCELLENT = 2;
180
+ */
181
+ EXCELLENT = 2,
182
+
183
+ /**
184
+ * @generated from enum value: LOST = 3;
185
+ */
186
+ LOST = 3,
187
+ }
188
+
189
+ /**
190
+ * @generated from enum livekit.ClientConfigSetting
191
+ */
192
+ export declare enum ClientConfigSetting {
193
+ /**
194
+ * @generated from enum value: UNSET = 0;
195
+ */
196
+ UNSET = 0,
197
+
198
+ /**
199
+ * @generated from enum value: DISABLED = 1;
200
+ */
201
+ DISABLED = 1,
202
+
203
+ /**
204
+ * @generated from enum value: ENABLED = 2;
205
+ */
206
+ ENABLED = 2,
207
+ }
208
+
209
+ /**
210
+ * @generated from enum livekit.DisconnectReason
211
+ */
212
+ export declare enum DisconnectReason {
213
+ /**
214
+ * @generated from enum value: UNKNOWN_REASON = 0;
215
+ */
216
+ UNKNOWN_REASON = 0,
217
+
218
+ /**
219
+ * the client initiated the disconnect
220
+ *
221
+ * @generated from enum value: CLIENT_INITIATED = 1;
222
+ */
223
+ CLIENT_INITIATED = 1,
224
+
225
+ /**
226
+ * another participant with the same identity has joined the room
227
+ *
228
+ * @generated from enum value: DUPLICATE_IDENTITY = 2;
229
+ */
230
+ DUPLICATE_IDENTITY = 2,
231
+
232
+ /**
233
+ * the server instance is shutting down
234
+ *
235
+ * @generated from enum value: SERVER_SHUTDOWN = 3;
236
+ */
237
+ SERVER_SHUTDOWN = 3,
238
+
239
+ /**
240
+ * RoomService.RemoveParticipant was called
241
+ *
242
+ * @generated from enum value: PARTICIPANT_REMOVED = 4;
243
+ */
244
+ PARTICIPANT_REMOVED = 4,
245
+
246
+ /**
247
+ * RoomService.DeleteRoom was called
248
+ *
249
+ * @generated from enum value: ROOM_DELETED = 5;
250
+ */
251
+ ROOM_DELETED = 5,
252
+
253
+ /**
254
+ * the client is attempting to resume a session, but server is not aware of it
255
+ *
256
+ * @generated from enum value: STATE_MISMATCH = 6;
257
+ */
258
+ STATE_MISMATCH = 6,
259
+
260
+ /**
261
+ * client was unable to connect fully
262
+ *
263
+ * @generated from enum value: JOIN_FAILURE = 7;
264
+ */
265
+ JOIN_FAILURE = 7,
266
+
267
+ /**
268
+ * Cloud-only, the server requested Participant to migrate the connection elsewhere
269
+ *
270
+ * @generated from enum value: MIGRATION = 8;
271
+ */
272
+ MIGRATION = 8,
273
+
274
+ /**
275
+ * the signal websocket was closed unexpectedly
276
+ *
277
+ * @generated from enum value: SIGNAL_CLOSE = 9;
278
+ */
279
+ SIGNAL_CLOSE = 9,
280
+
281
+ /**
282
+ * the room was closed, due to all Standard and Ingress participants having left
283
+ *
284
+ * @generated from enum value: ROOM_CLOSED = 10;
285
+ */
286
+ ROOM_CLOSED = 10,
287
+
288
+ /**
289
+ * SIP callee did not respond in time
290
+ *
291
+ * @generated from enum value: USER_UNAVAILABLE = 11;
292
+ */
293
+ USER_UNAVAILABLE = 11,
294
+
295
+ /**
296
+ * SIP callee rejected the call (busy)
297
+ *
298
+ * @generated from enum value: USER_REJECTED = 12;
299
+ */
300
+ USER_REJECTED = 12,
301
+
302
+ /**
303
+ * SIP protocol failure or unexpected response
304
+ *
305
+ * @generated from enum value: SIP_TRUNK_FAILURE = 13;
306
+ */
307
+ SIP_TRUNK_FAILURE = 13,
308
+ }
309
+
310
+ /**
311
+ * @generated from enum livekit.ReconnectReason
312
+ */
313
+ export declare enum ReconnectReason {
314
+ /**
315
+ * @generated from enum value: RR_UNKNOWN = 0;
316
+ */
317
+ RR_UNKNOWN = 0,
318
+
319
+ /**
320
+ * @generated from enum value: RR_SIGNAL_DISCONNECTED = 1;
321
+ */
322
+ RR_SIGNAL_DISCONNECTED = 1,
323
+
324
+ /**
325
+ * @generated from enum value: RR_PUBLISHER_FAILED = 2;
326
+ */
327
+ RR_PUBLISHER_FAILED = 2,
328
+
329
+ /**
330
+ * @generated from enum value: RR_SUBSCRIBER_FAILED = 3;
331
+ */
332
+ RR_SUBSCRIBER_FAILED = 3,
333
+
334
+ /**
335
+ * @generated from enum value: RR_SWITCH_CANDIDATE = 4;
336
+ */
337
+ RR_SWITCH_CANDIDATE = 4,
338
+ }
339
+
340
+ /**
341
+ * @generated from enum livekit.SubscriptionError
342
+ */
343
+ export declare enum SubscriptionError {
344
+ /**
345
+ * @generated from enum value: SE_UNKNOWN = 0;
346
+ */
347
+ SE_UNKNOWN = 0,
348
+
349
+ /**
350
+ * @generated from enum value: SE_CODEC_UNSUPPORTED = 1;
351
+ */
352
+ SE_CODEC_UNSUPPORTED = 1,
353
+
354
+ /**
355
+ * @generated from enum value: SE_TRACK_NOTFOUND = 2;
356
+ */
357
+ SE_TRACK_NOTFOUND = 2,
358
+ }
359
+
360
+ /**
361
+ * @generated from enum livekit.AudioTrackFeature
362
+ */
363
+ export declare enum AudioTrackFeature {
364
+ /**
365
+ * @generated from enum value: TF_STEREO = 0;
366
+ */
367
+ TF_STEREO = 0,
368
+
369
+ /**
370
+ * @generated from enum value: TF_NO_DTX = 1;
371
+ */
372
+ TF_NO_DTX = 1,
373
+
374
+ /**
375
+ * @generated from enum value: TF_AUTO_GAIN_CONTROL = 2;
376
+ */
377
+ TF_AUTO_GAIN_CONTROL = 2,
378
+
379
+ /**
380
+ * @generated from enum value: TF_ECHO_CANCELLATION = 3;
381
+ */
382
+ TF_ECHO_CANCELLATION = 3,
383
+
384
+ /**
385
+ * @generated from enum value: TF_NOISE_SUPPRESSION = 4;
386
+ */
387
+ TF_NOISE_SUPPRESSION = 4,
388
+
389
+ /**
390
+ * @generated from enum value: TF_ENHANCED_NOISE_CANCELLATION = 5;
391
+ */
392
+ TF_ENHANCED_NOISE_CANCELLATION = 5,
393
+ }
394
+
395
+ /**
396
+ * @generated from message livekit.Room
397
+ */
398
+ export declare class Room extends Message<Room> {
399
+ /**
400
+ * @generated from field: string sid = 1;
401
+ */
402
+ sid: string;
403
+
404
+ /**
405
+ * @generated from field: string name = 2;
406
+ */
407
+ name: string;
408
+
409
+ /**
410
+ * @generated from field: uint32 empty_timeout = 3;
411
+ */
412
+ emptyTimeout: number;
413
+
414
+ /**
415
+ * @generated from field: uint32 departure_timeout = 14;
416
+ */
417
+ departureTimeout: number;
418
+
419
+ /**
420
+ * @generated from field: uint32 max_participants = 4;
421
+ */
422
+ maxParticipants: number;
423
+
424
+ /**
425
+ * @generated from field: int64 creation_time = 5;
426
+ */
427
+ creationTime: bigint;
428
+
429
+ /**
430
+ * @generated from field: string turn_password = 6;
431
+ */
432
+ turnPassword: string;
433
+
434
+ /**
435
+ * @generated from field: repeated livekit.Codec enabled_codecs = 7;
436
+ */
437
+ enabledCodecs: Codec[];
438
+
439
+ /**
440
+ * @generated from field: string metadata = 8;
441
+ */
442
+ metadata: string;
443
+
444
+ /**
445
+ * @generated from field: uint32 num_participants = 9;
446
+ */
447
+ numParticipants: number;
448
+
449
+ /**
450
+ * @generated from field: uint32 num_publishers = 11;
451
+ */
452
+ numPublishers: number;
453
+
454
+ /**
455
+ * @generated from field: bool active_recording = 10;
456
+ */
457
+ activeRecording: boolean;
458
+
459
+ /**
460
+ * @generated from field: livekit.TimedVersion version = 13;
461
+ */
462
+ version?: TimedVersion;
463
+
464
+ constructor(data?: PartialMessage<Room>);
465
+
466
+ static readonly runtime: typeof proto3;
467
+ static readonly typeName = "livekit.Room";
468
+ static readonly fields: FieldList;
469
+
470
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Room;
471
+
472
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Room;
473
+
474
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Room;
475
+
476
+ static equals(a: Room | PlainMessage<Room> | undefined, b: Room | PlainMessage<Room> | undefined): boolean;
477
+ }
478
+
479
+ /**
480
+ * @generated from message livekit.Codec
481
+ */
482
+ export declare class Codec extends Message<Codec> {
483
+ /**
484
+ * @generated from field: string mime = 1;
485
+ */
486
+ mime: string;
487
+
488
+ /**
489
+ * @generated from field: string fmtp_line = 2;
490
+ */
491
+ fmtpLine: string;
492
+
493
+ constructor(data?: PartialMessage<Codec>);
494
+
495
+ static readonly runtime: typeof proto3;
496
+ static readonly typeName = "livekit.Codec";
497
+ static readonly fields: FieldList;
498
+
499
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Codec;
500
+
501
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Codec;
502
+
503
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Codec;
504
+
505
+ static equals(a: Codec | PlainMessage<Codec> | undefined, b: Codec | PlainMessage<Codec> | undefined): boolean;
506
+ }
507
+
508
+ /**
509
+ * @generated from message livekit.PlayoutDelay
510
+ */
511
+ export declare class PlayoutDelay extends Message<PlayoutDelay> {
512
+ /**
513
+ * @generated from field: bool enabled = 1;
514
+ */
515
+ enabled: boolean;
516
+
517
+ /**
518
+ * @generated from field: uint32 min = 2;
519
+ */
520
+ min: number;
521
+
522
+ /**
523
+ * @generated from field: uint32 max = 3;
524
+ */
525
+ max: number;
526
+
527
+ constructor(data?: PartialMessage<PlayoutDelay>);
528
+
529
+ static readonly runtime: typeof proto3;
530
+ static readonly typeName = "livekit.PlayoutDelay";
531
+ static readonly fields: FieldList;
532
+
533
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): PlayoutDelay;
534
+
535
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): PlayoutDelay;
536
+
537
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): PlayoutDelay;
538
+
539
+ static equals(a: PlayoutDelay | PlainMessage<PlayoutDelay> | undefined, b: PlayoutDelay | PlainMessage<PlayoutDelay> | undefined): boolean;
540
+ }
541
+
542
+ /**
543
+ * @generated from message livekit.ParticipantPermission
544
+ */
545
+ export declare class ParticipantPermission extends Message<ParticipantPermission> {
546
+ /**
547
+ * allow participant to subscribe to other tracks in the room
548
+ *
549
+ * @generated from field: bool can_subscribe = 1;
550
+ */
551
+ canSubscribe: boolean;
552
+
553
+ /**
554
+ * allow participant to publish new tracks to room
555
+ *
556
+ * @generated from field: bool can_publish = 2;
557
+ */
558
+ canPublish: boolean;
559
+
560
+ /**
561
+ * allow participant to publish data
562
+ *
563
+ * @generated from field: bool can_publish_data = 3;
564
+ */
565
+ canPublishData: boolean;
566
+
567
+ /**
568
+ * sources that are allowed to be published
569
+ *
570
+ * @generated from field: repeated livekit.TrackSource can_publish_sources = 9;
571
+ */
572
+ canPublishSources: TrackSource[];
573
+
574
+ /**
575
+ * indicates that it's hidden to others
576
+ *
577
+ * @generated from field: bool hidden = 7;
578
+ */
579
+ hidden: boolean;
580
+
581
+ /**
582
+ * indicates it's a recorder instance
583
+ * deprecated: use ParticipantInfo.kind instead
584
+ *
585
+ * @generated from field: bool recorder = 8 [deprecated = true];
586
+ * @deprecated
587
+ */
588
+ recorder: boolean;
589
+
590
+ /**
591
+ * indicates that participant can update own metadata and attributes
592
+ *
593
+ * @generated from field: bool can_update_metadata = 10;
594
+ */
595
+ canUpdateMetadata: boolean;
596
+
597
+ /**
598
+ * indicates that participant is an agent
599
+ * deprecated: use ParticipantInfo.kind instead
600
+ *
601
+ * @generated from field: bool agent = 11 [deprecated = true];
602
+ * @deprecated
603
+ */
604
+ agent: boolean;
605
+
606
+ /**
607
+ * if a participant can subscribe to metrics
608
+ *
609
+ * @generated from field: bool can_subscribe_metrics = 12;
610
+ */
611
+ canSubscribeMetrics: boolean;
612
+
613
+ constructor(data?: PartialMessage<ParticipantPermission>);
614
+
615
+ static readonly runtime: typeof proto3;
616
+ static readonly typeName = "livekit.ParticipantPermission";
617
+ static readonly fields: FieldList;
618
+
619
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ParticipantPermission;
620
+
621
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ParticipantPermission;
622
+
623
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ParticipantPermission;
624
+
625
+ static equals(a: ParticipantPermission | PlainMessage<ParticipantPermission> | undefined, b: ParticipantPermission | PlainMessage<ParticipantPermission> | undefined): boolean;
626
+ }
627
+
628
+ /**
629
+ * @generated from message livekit.ParticipantInfo
630
+ */
631
+ export declare class ParticipantInfo extends Message<ParticipantInfo> {
632
+ /**
633
+ * @generated from field: string sid = 1;
634
+ */
635
+ sid: string;
636
+
637
+ /**
638
+ * @generated from field: string identity = 2;
639
+ */
640
+ identity: string;
641
+
642
+ /**
643
+ * @generated from field: livekit.ParticipantInfo.State state = 3;
644
+ */
645
+ state: ParticipantInfo_State;
646
+
647
+ /**
648
+ * @generated from field: repeated livekit.TrackInfo tracks = 4;
649
+ */
650
+ tracks: TrackInfo[];
651
+
652
+ /**
653
+ * @generated from field: string metadata = 5;
654
+ */
655
+ metadata: string;
656
+
657
+ /**
658
+ * timestamp when participant joined room, in seconds
659
+ *
660
+ * @generated from field: int64 joined_at = 6;
661
+ */
662
+ joinedAt: bigint;
663
+
664
+ /**
665
+ * @generated from field: string name = 9;
666
+ */
667
+ name: string;
668
+
669
+ /**
670
+ * @generated from field: uint32 version = 10;
671
+ */
672
+ version: number;
673
+
674
+ /**
675
+ * @generated from field: livekit.ParticipantPermission permission = 11;
676
+ */
677
+ permission?: ParticipantPermission;
678
+
679
+ /**
680
+ * @generated from field: string region = 12;
681
+ */
682
+ region: string;
683
+
684
+ /**
685
+ * indicates the participant has an active publisher connection
686
+ * and can publish to the server
687
+ *
688
+ * @generated from field: bool is_publisher = 13;
689
+ */
690
+ isPublisher: boolean;
691
+
692
+ /**
693
+ * @generated from field: livekit.ParticipantInfo.Kind kind = 14;
694
+ */
695
+ kind: ParticipantInfo_Kind;
696
+
697
+ /**
698
+ * @generated from field: map<string, string> attributes = 15;
699
+ */
700
+ attributes: { [key: string]: string };
701
+
702
+ /**
703
+ * @generated from field: livekit.DisconnectReason disconnect_reason = 16;
704
+ */
705
+ disconnectReason: DisconnectReason;
706
+
707
+ constructor(data?: PartialMessage<ParticipantInfo>);
708
+
709
+ static readonly runtime: typeof proto3;
710
+ static readonly typeName = "livekit.ParticipantInfo";
711
+ static readonly fields: FieldList;
712
+
713
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ParticipantInfo;
714
+
715
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ParticipantInfo;
716
+
717
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ParticipantInfo;
718
+
719
+ static equals(a: ParticipantInfo | PlainMessage<ParticipantInfo> | undefined, b: ParticipantInfo | PlainMessage<ParticipantInfo> | undefined): boolean;
720
+ }
721
+
722
+ /**
723
+ * @generated from enum livekit.ParticipantInfo.State
724
+ */
725
+ export declare enum ParticipantInfo_State {
726
+ /**
727
+ * websocket' connected, but not offered yet
728
+ *
729
+ * @generated from enum value: JOINING = 0;
730
+ */
731
+ JOINING = 0,
732
+
733
+ /**
734
+ * server received client offer
735
+ *
736
+ * @generated from enum value: JOINED = 1;
737
+ */
738
+ JOINED = 1,
739
+
740
+ /**
741
+ * ICE connectivity established
742
+ *
743
+ * @generated from enum value: ACTIVE = 2;
744
+ */
745
+ ACTIVE = 2,
746
+
747
+ /**
748
+ * WS disconnected
749
+ *
750
+ * @generated from enum value: DISCONNECTED = 3;
751
+ */
752
+ DISCONNECTED = 3,
753
+ }
754
+
755
+ /**
756
+ * @generated from enum livekit.ParticipantInfo.Kind
757
+ */
758
+ export declare enum ParticipantInfo_Kind {
759
+ /**
760
+ * standard participants, e.g. web clients
761
+ *
762
+ * @generated from enum value: STANDARD = 0;
763
+ */
764
+ STANDARD = 0,
765
+
766
+ /**
767
+ * only ingests streams
768
+ *
769
+ * @generated from enum value: INGRESS = 1;
770
+ */
771
+ INGRESS = 1,
772
+
773
+ /**
774
+ * only consumes streams
775
+ *
776
+ * @generated from enum value: EGRESS = 2;
777
+ */
778
+ EGRESS = 2,
779
+
780
+ /**
781
+ * SIP participants
782
+ *
783
+ * @generated from enum value: SIP = 3;
784
+ */
785
+ SIP = 3,
786
+
787
+ /**
788
+ * LiveKit agents
789
+ *
790
+ * @generated from enum value: AGENT = 4;
791
+ */
792
+ AGENT = 4,
793
+ }
794
+
795
+ /**
796
+ * @generated from message livekit.Encryption
797
+ */
798
+ export declare class Encryption extends Message<Encryption> {
799
+ constructor(data?: PartialMessage<Encryption>);
800
+
801
+ static readonly runtime: typeof proto3;
802
+ static readonly typeName = "livekit.Encryption";
803
+ static readonly fields: FieldList;
804
+
805
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Encryption;
806
+
807
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Encryption;
808
+
809
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Encryption;
810
+
811
+ static equals(a: Encryption | PlainMessage<Encryption> | undefined, b: Encryption | PlainMessage<Encryption> | undefined): boolean;
812
+ }
813
+
814
+ /**
815
+ * @generated from enum livekit.Encryption.Type
816
+ */
817
+ export declare enum Encryption_Type {
818
+ /**
819
+ * @generated from enum value: NONE = 0;
820
+ */
821
+ NONE = 0,
822
+
823
+ /**
824
+ * @generated from enum value: GCM = 1;
825
+ */
826
+ GCM = 1,
827
+
828
+ /**
829
+ * @generated from enum value: CUSTOM = 2;
830
+ */
831
+ CUSTOM = 2,
832
+ }
833
+
834
+ /**
835
+ * @generated from message livekit.SimulcastCodecInfo
836
+ */
837
+ export declare class SimulcastCodecInfo extends Message<SimulcastCodecInfo> {
838
+ /**
839
+ * @generated from field: string mime_type = 1;
840
+ */
841
+ mimeType: string;
842
+
843
+ /**
844
+ * @generated from field: string mid = 2;
845
+ */
846
+ mid: string;
847
+
848
+ /**
849
+ * @generated from field: string cid = 3;
850
+ */
851
+ cid: string;
852
+
853
+ /**
854
+ * @generated from field: repeated livekit.VideoLayer layers = 4;
855
+ */
856
+ layers: VideoLayer[];
857
+
858
+ constructor(data?: PartialMessage<SimulcastCodecInfo>);
859
+
860
+ static readonly runtime: typeof proto3;
861
+ static readonly typeName = "livekit.SimulcastCodecInfo";
862
+ static readonly fields: FieldList;
863
+
864
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SimulcastCodecInfo;
865
+
866
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SimulcastCodecInfo;
867
+
868
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SimulcastCodecInfo;
869
+
870
+ static equals(a: SimulcastCodecInfo | PlainMessage<SimulcastCodecInfo> | undefined, b: SimulcastCodecInfo | PlainMessage<SimulcastCodecInfo> | undefined): boolean;
871
+ }
872
+
873
+ /**
874
+ * @generated from message livekit.TrackInfo
875
+ */
876
+ export declare class TrackInfo extends Message<TrackInfo> {
877
+ /**
878
+ * @generated from field: string sid = 1;
879
+ */
880
+ sid: string;
881
+
882
+ /**
883
+ * @generated from field: livekit.TrackType type = 2;
884
+ */
885
+ type: TrackType;
886
+
887
+ /**
888
+ * @generated from field: string name = 3;
889
+ */
890
+ name: string;
891
+
892
+ /**
893
+ * @generated from field: bool muted = 4;
894
+ */
895
+ muted: boolean;
896
+
897
+ /**
898
+ * original width of video (unset for audio)
899
+ * clients may receive a lower resolution version with simulcast
900
+ *
901
+ * @generated from field: uint32 width = 5;
902
+ */
903
+ width: number;
904
+
905
+ /**
906
+ * original height of video (unset for audio)
907
+ *
908
+ * @generated from field: uint32 height = 6;
909
+ */
910
+ height: number;
911
+
912
+ /**
913
+ * true if track is simulcasted
914
+ *
915
+ * @generated from field: bool simulcast = 7;
916
+ */
917
+ simulcast: boolean;
918
+
919
+ /**
920
+ * true if DTX (Discontinuous Transmission) is disabled for audio
921
+ *
922
+ * @generated from field: bool disable_dtx = 8;
923
+ */
924
+ disableDtx: boolean;
925
+
926
+ /**
927
+ * source of media
928
+ *
929
+ * @generated from field: livekit.TrackSource source = 9;
930
+ */
931
+ source: TrackSource;
932
+
933
+ /**
934
+ * @generated from field: repeated livekit.VideoLayer layers = 10;
935
+ */
936
+ layers: VideoLayer[];
937
+
938
+ /**
939
+ * mime type of codec
940
+ *
941
+ * @generated from field: string mime_type = 11;
942
+ */
943
+ mimeType: string;
944
+
945
+ /**
946
+ * @generated from field: string mid = 12;
947
+ */
948
+ mid: string;
949
+
950
+ /**
951
+ * @generated from field: repeated livekit.SimulcastCodecInfo codecs = 13;
952
+ */
953
+ codecs: SimulcastCodecInfo[];
954
+
955
+ /**
956
+ * @generated from field: bool stereo = 14;
957
+ */
958
+ stereo: boolean;
959
+
960
+ /**
961
+ * true if RED (Redundant Encoding) is disabled for audio
962
+ *
963
+ * @generated from field: bool disable_red = 15;
964
+ */
965
+ disableRed: boolean;
966
+
967
+ /**
968
+ * @generated from field: livekit.Encryption.Type encryption = 16;
969
+ */
970
+ encryption: Encryption_Type;
971
+
972
+ /**
973
+ * @generated from field: string stream = 17;
974
+ */
975
+ stream: string;
976
+
977
+ /**
978
+ * @generated from field: livekit.TimedVersion version = 18;
979
+ */
980
+ version?: TimedVersion;
981
+
982
+ /**
983
+ * @generated from field: repeated livekit.AudioTrackFeature audio_features = 19;
984
+ */
985
+ audioFeatures: AudioTrackFeature[];
986
+
987
+ constructor(data?: PartialMessage<TrackInfo>);
988
+
989
+ static readonly runtime: typeof proto3;
990
+ static readonly typeName = "livekit.TrackInfo";
991
+ static readonly fields: FieldList;
992
+
993
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): TrackInfo;
994
+
995
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): TrackInfo;
996
+
997
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): TrackInfo;
998
+
999
+ static equals(a: TrackInfo | PlainMessage<TrackInfo> | undefined, b: TrackInfo | PlainMessage<TrackInfo> | undefined): boolean;
1000
+ }
1001
+
1002
+ /**
1003
+ * provide information about available spatial layers
1004
+ *
1005
+ * @generated from message livekit.VideoLayer
1006
+ */
1007
+ export declare class VideoLayer extends Message<VideoLayer> {
1008
+ /**
1009
+ * for tracks with a single layer, this should be HIGH
1010
+ *
1011
+ * @generated from field: livekit.VideoQuality quality = 1;
1012
+ */
1013
+ quality: VideoQuality;
1014
+
1015
+ /**
1016
+ * @generated from field: uint32 width = 2;
1017
+ */
1018
+ width: number;
1019
+
1020
+ /**
1021
+ * @generated from field: uint32 height = 3;
1022
+ */
1023
+ height: number;
1024
+
1025
+ /**
1026
+ * target bitrate in bit per second (bps), server will measure actual
1027
+ *
1028
+ * @generated from field: uint32 bitrate = 4;
1029
+ */
1030
+ bitrate: number;
1031
+
1032
+ /**
1033
+ * @generated from field: uint32 ssrc = 5;
1034
+ */
1035
+ ssrc: number;
1036
+
1037
+ constructor(data?: PartialMessage<VideoLayer>);
1038
+
1039
+ static readonly runtime: typeof proto3;
1040
+ static readonly typeName = "livekit.VideoLayer";
1041
+ static readonly fields: FieldList;
1042
+
1043
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): VideoLayer;
1044
+
1045
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): VideoLayer;
1046
+
1047
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): VideoLayer;
1048
+
1049
+ static equals(a: VideoLayer | PlainMessage<VideoLayer> | undefined, b: VideoLayer | PlainMessage<VideoLayer> | undefined): boolean;
1050
+ }
1051
+
1052
+ /**
1053
+ * new DataPacket API
1054
+ *
1055
+ * @generated from message livekit.DataPacket
1056
+ */
1057
+ export declare class DataPacket extends Message<DataPacket> {
1058
+ /**
1059
+ * @generated from field: livekit.DataPacket.Kind kind = 1 [deprecated = true];
1060
+ * @deprecated
1061
+ */
1062
+ kind: DataPacket_Kind;
1063
+
1064
+ /**
1065
+ * participant identity of user that sent the message
1066
+ *
1067
+ * @generated from field: string participant_identity = 4;
1068
+ */
1069
+ participantIdentity: string;
1070
+
1071
+ /**
1072
+ * identities of participants who will receive the message (sent to all by default)
1073
+ *
1074
+ * @generated from field: repeated string destination_identities = 5;
1075
+ */
1076
+ destinationIdentities: string[];
1077
+
1078
+ /**
1079
+ * @generated from oneof livekit.DataPacket.value
1080
+ */
1081
+ value: {
1082
+ /**
1083
+ * @generated from field: livekit.UserPacket user = 2;
1084
+ */
1085
+ value: UserPacket;
1086
+ case: "user";
1087
+ } | {
1088
+ /**
1089
+ * @generated from field: livekit.ActiveSpeakerUpdate speaker = 3 [deprecated = true];
1090
+ * @deprecated
1091
+ */
1092
+ value: ActiveSpeakerUpdate;
1093
+ case: "speaker";
1094
+ } | {
1095
+ /**
1096
+ * @generated from field: livekit.SipDTMF sip_dtmf = 6;
1097
+ */
1098
+ value: SipDTMF;
1099
+ case: "sipDtmf";
1100
+ } | {
1101
+ /**
1102
+ * @generated from field: livekit.Transcription transcription = 7;
1103
+ */
1104
+ value: Transcription;
1105
+ case: "transcription";
1106
+ } | {
1107
+ /**
1108
+ * @generated from field: livekit.MetricsBatch metrics = 8;
1109
+ */
1110
+ value: MetricsBatch;
1111
+ case: "metrics";
1112
+ } | {
1113
+ /**
1114
+ * @generated from field: livekit.ChatMessage chat_message = 9;
1115
+ */
1116
+ value: ChatMessage;
1117
+ case: "chatMessage";
1118
+ } | {
1119
+ /**
1120
+ * @generated from field: livekit.RpcRequest rpc_request = 10;
1121
+ */
1122
+ value: RpcRequest;
1123
+ case: "rpcRequest";
1124
+ } | {
1125
+ /**
1126
+ * @generated from field: livekit.RpcAck rpc_ack = 11;
1127
+ */
1128
+ value: RpcAck;
1129
+ case: "rpcAck";
1130
+ } | {
1131
+ /**
1132
+ * @generated from field: livekit.RpcResponse rpc_response = 12;
1133
+ */
1134
+ value: RpcResponse;
1135
+ case: "rpcResponse";
1136
+ } | {
1137
+ /**
1138
+ * @generated from field: livekit.DataStream.Header stream_header = 13;
1139
+ */
1140
+ value: DataStream_Header;
1141
+ case: "streamHeader";
1142
+ } | {
1143
+ /**
1144
+ * @generated from field: livekit.DataStream.Chunk stream_chunk = 14;
1145
+ */
1146
+ value: DataStream_Chunk;
1147
+ case: "streamChunk";
1148
+ } | { case: undefined; value?: undefined };
1149
+
1150
+ constructor(data?: PartialMessage<DataPacket>);
1151
+
1152
+ static readonly runtime: typeof proto3;
1153
+ static readonly typeName = "livekit.DataPacket";
1154
+ static readonly fields: FieldList;
1155
+
1156
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): DataPacket;
1157
+
1158
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): DataPacket;
1159
+
1160
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): DataPacket;
1161
+
1162
+ static equals(a: DataPacket | PlainMessage<DataPacket> | undefined, b: DataPacket | PlainMessage<DataPacket> | undefined): boolean;
1163
+ }
1164
+
1165
+ /**
1166
+ * @generated from enum livekit.DataPacket.Kind
1167
+ */
1168
+ export declare enum DataPacket_Kind {
1169
+ /**
1170
+ * @generated from enum value: RELIABLE = 0;
1171
+ */
1172
+ RELIABLE = 0,
1173
+
1174
+ /**
1175
+ * @generated from enum value: LOSSY = 1;
1176
+ */
1177
+ LOSSY = 1,
1178
+ }
1179
+
1180
+ /**
1181
+ * @generated from message livekit.ActiveSpeakerUpdate
1182
+ */
1183
+ export declare class ActiveSpeakerUpdate extends Message<ActiveSpeakerUpdate> {
1184
+ /**
1185
+ * @generated from field: repeated livekit.SpeakerInfo speakers = 1;
1186
+ */
1187
+ speakers: SpeakerInfo[];
1188
+
1189
+ constructor(data?: PartialMessage<ActiveSpeakerUpdate>);
1190
+
1191
+ static readonly runtime: typeof proto3;
1192
+ static readonly typeName = "livekit.ActiveSpeakerUpdate";
1193
+ static readonly fields: FieldList;
1194
+
1195
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ActiveSpeakerUpdate;
1196
+
1197
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ActiveSpeakerUpdate;
1198
+
1199
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ActiveSpeakerUpdate;
1200
+
1201
+ static equals(a: ActiveSpeakerUpdate | PlainMessage<ActiveSpeakerUpdate> | undefined, b: ActiveSpeakerUpdate | PlainMessage<ActiveSpeakerUpdate> | undefined): boolean;
1202
+ }
1203
+
1204
+ /**
1205
+ * @generated from message livekit.SpeakerInfo
1206
+ */
1207
+ export declare class SpeakerInfo extends Message<SpeakerInfo> {
1208
+ /**
1209
+ * @generated from field: string sid = 1;
1210
+ */
1211
+ sid: string;
1212
+
1213
+ /**
1214
+ * audio level, 0-1.0, 1 is loudest
1215
+ *
1216
+ * @generated from field: float level = 2;
1217
+ */
1218
+ level: number;
1219
+
1220
+ /**
1221
+ * true if speaker is currently active
1222
+ *
1223
+ * @generated from field: bool active = 3;
1224
+ */
1225
+ active: boolean;
1226
+
1227
+ constructor(data?: PartialMessage<SpeakerInfo>);
1228
+
1229
+ static readonly runtime: typeof proto3;
1230
+ static readonly typeName = "livekit.SpeakerInfo";
1231
+ static readonly fields: FieldList;
1232
+
1233
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SpeakerInfo;
1234
+
1235
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SpeakerInfo;
1236
+
1237
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SpeakerInfo;
1238
+
1239
+ static equals(a: SpeakerInfo | PlainMessage<SpeakerInfo> | undefined, b: SpeakerInfo | PlainMessage<SpeakerInfo> | undefined): boolean;
1240
+ }
1241
+
1242
+ /**
1243
+ * @generated from message livekit.UserPacket
1244
+ */
1245
+ export declare class UserPacket extends Message<UserPacket> {
1246
+ /**
1247
+ * participant ID of user that sent the message
1248
+ *
1249
+ * @generated from field: string participant_sid = 1 [deprecated = true];
1250
+ * @deprecated
1251
+ */
1252
+ participantSid: string;
1253
+
1254
+ /**
1255
+ * @generated from field: string participant_identity = 5 [deprecated = true];
1256
+ * @deprecated
1257
+ */
1258
+ participantIdentity: string;
1259
+
1260
+ /**
1261
+ * user defined payload
1262
+ *
1263
+ * @generated from field: bytes payload = 2;
1264
+ */
1265
+ payload: Uint8Array;
1266
+
1267
+ /**
1268
+ * the ID of the participants who will receive the message (sent to all by default)
1269
+ *
1270
+ * @generated from field: repeated string destination_sids = 3 [deprecated = true];
1271
+ * @deprecated
1272
+ */
1273
+ destinationSids: string[];
1274
+
1275
+ /**
1276
+ * identities of participants who will receive the message (sent to all by default)
1277
+ *
1278
+ * @generated from field: repeated string destination_identities = 6 [deprecated = true];
1279
+ * @deprecated
1280
+ */
1281
+ destinationIdentities: string[];
1282
+
1283
+ /**
1284
+ * topic under which the message was published
1285
+ *
1286
+ * @generated from field: optional string topic = 4;
1287
+ */
1288
+ topic?: string;
1289
+
1290
+ /**
1291
+ * Unique ID to indentify the message
1292
+ *
1293
+ * @generated from field: optional string id = 8;
1294
+ */
1295
+ id?: string;
1296
+
1297
+ /**
1298
+ * start and end time allow relating the message to specific media time
1299
+ *
1300
+ * @generated from field: optional uint64 start_time = 9;
1301
+ */
1302
+ startTime?: bigint;
1303
+
1304
+ /**
1305
+ * @generated from field: optional uint64 end_time = 10;
1306
+ */
1307
+ endTime?: bigint;
1308
+
1309
+ constructor(data?: PartialMessage<UserPacket>);
1310
+
1311
+ static readonly runtime: typeof proto3;
1312
+ static readonly typeName = "livekit.UserPacket";
1313
+ static readonly fields: FieldList;
1314
+
1315
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): UserPacket;
1316
+
1317
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): UserPacket;
1318
+
1319
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): UserPacket;
1320
+
1321
+ static equals(a: UserPacket | PlainMessage<UserPacket> | undefined, b: UserPacket | PlainMessage<UserPacket> | undefined): boolean;
1322
+ }
1323
+
1324
+ /**
1325
+ * @generated from message livekit.SipDTMF
1326
+ */
1327
+ export declare class SipDTMF extends Message<SipDTMF> {
1328
+ /**
1329
+ * @generated from field: uint32 code = 3;
1330
+ */
1331
+ code: number;
1332
+
1333
+ /**
1334
+ * @generated from field: string digit = 4;
1335
+ */
1336
+ digit: string;
1337
+
1338
+ constructor(data?: PartialMessage<SipDTMF>);
1339
+
1340
+ static readonly runtime: typeof proto3;
1341
+ static readonly typeName = "livekit.SipDTMF";
1342
+ static readonly fields: FieldList;
1343
+
1344
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SipDTMF;
1345
+
1346
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SipDTMF;
1347
+
1348
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SipDTMF;
1349
+
1350
+ static equals(a: SipDTMF | PlainMessage<SipDTMF> | undefined, b: SipDTMF | PlainMessage<SipDTMF> | undefined): boolean;
1351
+ }
1352
+
1353
+ /**
1354
+ * @generated from message livekit.Transcription
1355
+ */
1356
+ export declare class Transcription extends Message<Transcription> {
1357
+ /**
1358
+ * Participant that got its speech transcribed
1359
+ *
1360
+ * @generated from field: string transcribed_participant_identity = 2;
1361
+ */
1362
+ transcribedParticipantIdentity: string;
1363
+
1364
+ /**
1365
+ * @generated from field: string track_id = 3;
1366
+ */
1367
+ trackId: string;
1368
+
1369
+ /**
1370
+ * @generated from field: repeated livekit.TranscriptionSegment segments = 4;
1371
+ */
1372
+ segments: TranscriptionSegment[];
1373
+
1374
+ constructor(data?: PartialMessage<Transcription>);
1375
+
1376
+ static readonly runtime: typeof proto3;
1377
+ static readonly typeName = "livekit.Transcription";
1378
+ static readonly fields: FieldList;
1379
+
1380
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Transcription;
1381
+
1382
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Transcription;
1383
+
1384
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Transcription;
1385
+
1386
+ static equals(a: Transcription | PlainMessage<Transcription> | undefined, b: Transcription | PlainMessage<Transcription> | undefined): boolean;
1387
+ }
1388
+
1389
+ /**
1390
+ * @generated from message livekit.TranscriptionSegment
1391
+ */
1392
+ export declare class TranscriptionSegment extends Message<TranscriptionSegment> {
1393
+ /**
1394
+ * @generated from field: string id = 1;
1395
+ */
1396
+ id: string;
1397
+
1398
+ /**
1399
+ * @generated from field: string text = 2;
1400
+ */
1401
+ text: string;
1402
+
1403
+ /**
1404
+ * @generated from field: uint64 start_time = 3;
1405
+ */
1406
+ startTime: bigint;
1407
+
1408
+ /**
1409
+ * @generated from field: uint64 end_time = 4;
1410
+ */
1411
+ endTime: bigint;
1412
+
1413
+ /**
1414
+ * @generated from field: bool final = 5;
1415
+ */
1416
+ final: boolean;
1417
+
1418
+ /**
1419
+ * @generated from field: string language = 6;
1420
+ */
1421
+ language: string;
1422
+
1423
+ constructor(data?: PartialMessage<TranscriptionSegment>);
1424
+
1425
+ static readonly runtime: typeof proto3;
1426
+ static readonly typeName = "livekit.TranscriptionSegment";
1427
+ static readonly fields: FieldList;
1428
+
1429
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): TranscriptionSegment;
1430
+
1431
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): TranscriptionSegment;
1432
+
1433
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): TranscriptionSegment;
1434
+
1435
+ static equals(a: TranscriptionSegment | PlainMessage<TranscriptionSegment> | undefined, b: TranscriptionSegment | PlainMessage<TranscriptionSegment> | undefined): boolean;
1436
+ }
1437
+
1438
+ /**
1439
+ * @generated from message livekit.ChatMessage
1440
+ */
1441
+ export declare class ChatMessage extends Message<ChatMessage> {
1442
+ /**
1443
+ * uuid
1444
+ *
1445
+ * @generated from field: string id = 1;
1446
+ */
1447
+ id: string;
1448
+
1449
+ /**
1450
+ * @generated from field: int64 timestamp = 2;
1451
+ */
1452
+ timestamp: bigint;
1453
+
1454
+ /**
1455
+ * populated only if the intent is to edit/update an existing message
1456
+ *
1457
+ * @generated from field: optional int64 edit_timestamp = 3;
1458
+ */
1459
+ editTimestamp?: bigint;
1460
+
1461
+ /**
1462
+ * @generated from field: string message = 4;
1463
+ */
1464
+ message: string;
1465
+
1466
+ /**
1467
+ * true to remove message
1468
+ *
1469
+ * @generated from field: bool deleted = 5;
1470
+ */
1471
+ deleted: boolean;
1472
+
1473
+ /**
1474
+ * true if the chat message has been generated by an agent from a participant's audio transcription
1475
+ *
1476
+ * @generated from field: bool generated = 6;
1477
+ */
1478
+ generated: boolean;
1479
+
1480
+ constructor(data?: PartialMessage<ChatMessage>);
1481
+
1482
+ static readonly runtime: typeof proto3;
1483
+ static readonly typeName = "livekit.ChatMessage";
1484
+ static readonly fields: FieldList;
1485
+
1486
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ChatMessage;
1487
+
1488
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ChatMessage;
1489
+
1490
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ChatMessage;
1491
+
1492
+ static equals(a: ChatMessage | PlainMessage<ChatMessage> | undefined, b: ChatMessage | PlainMessage<ChatMessage> | undefined): boolean;
1493
+ }
1494
+
1495
+ /**
1496
+ * @generated from message livekit.RpcRequest
1497
+ */
1498
+ export declare class RpcRequest extends Message<RpcRequest> {
1499
+ /**
1500
+ * @generated from field: string id = 1;
1501
+ */
1502
+ id: string;
1503
+
1504
+ /**
1505
+ * @generated from field: string method = 2;
1506
+ */
1507
+ method: string;
1508
+
1509
+ /**
1510
+ * @generated from field: string payload = 3;
1511
+ */
1512
+ payload: string;
1513
+
1514
+ /**
1515
+ * @generated from field: uint32 response_timeout_ms = 4;
1516
+ */
1517
+ responseTimeoutMs: number;
1518
+
1519
+ /**
1520
+ * @generated from field: uint32 version = 5;
1521
+ */
1522
+ version: number;
1523
+
1524
+ constructor(data?: PartialMessage<RpcRequest>);
1525
+
1526
+ static readonly runtime: typeof proto3;
1527
+ static readonly typeName = "livekit.RpcRequest";
1528
+ static readonly fields: FieldList;
1529
+
1530
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): RpcRequest;
1531
+
1532
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): RpcRequest;
1533
+
1534
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): RpcRequest;
1535
+
1536
+ static equals(a: RpcRequest | PlainMessage<RpcRequest> | undefined, b: RpcRequest | PlainMessage<RpcRequest> | undefined): boolean;
1537
+ }
1538
+
1539
+ /**
1540
+ * @generated from message livekit.RpcAck
1541
+ */
1542
+ export declare class RpcAck extends Message<RpcAck> {
1543
+ /**
1544
+ * @generated from field: string request_id = 1;
1545
+ */
1546
+ requestId: string;
1547
+
1548
+ constructor(data?: PartialMessage<RpcAck>);
1549
+
1550
+ static readonly runtime: typeof proto3;
1551
+ static readonly typeName = "livekit.RpcAck";
1552
+ static readonly fields: FieldList;
1553
+
1554
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): RpcAck;
1555
+
1556
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): RpcAck;
1557
+
1558
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): RpcAck;
1559
+
1560
+ static equals(a: RpcAck | PlainMessage<RpcAck> | undefined, b: RpcAck | PlainMessage<RpcAck> | undefined): boolean;
1561
+ }
1562
+
1563
+ /**
1564
+ * @generated from message livekit.RpcResponse
1565
+ */
1566
+ export declare class RpcResponse extends Message<RpcResponse> {
1567
+ /**
1568
+ * @generated from field: string request_id = 1;
1569
+ */
1570
+ requestId: string;
1571
+
1572
+ /**
1573
+ * @generated from oneof livekit.RpcResponse.value
1574
+ */
1575
+ value: {
1576
+ /**
1577
+ * @generated from field: string payload = 2;
1578
+ */
1579
+ value: string;
1580
+ case: "payload";
1581
+ } | {
1582
+ /**
1583
+ * @generated from field: livekit.RpcError error = 3;
1584
+ */
1585
+ value: RpcError;
1586
+ case: "error";
1587
+ } | { case: undefined; value?: undefined };
1588
+
1589
+ constructor(data?: PartialMessage<RpcResponse>);
1590
+
1591
+ static readonly runtime: typeof proto3;
1592
+ static readonly typeName = "livekit.RpcResponse";
1593
+ static readonly fields: FieldList;
1594
+
1595
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): RpcResponse;
1596
+
1597
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): RpcResponse;
1598
+
1599
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): RpcResponse;
1600
+
1601
+ static equals(a: RpcResponse | PlainMessage<RpcResponse> | undefined, b: RpcResponse | PlainMessage<RpcResponse> | undefined): boolean;
1602
+ }
1603
+
1604
+ /**
1605
+ * @generated from message livekit.RpcError
1606
+ */
1607
+ export declare class RpcError extends Message<RpcError> {
1608
+ /**
1609
+ * @generated from field: uint32 code = 1;
1610
+ */
1611
+ code: number;
1612
+
1613
+ /**
1614
+ * @generated from field: string message = 2;
1615
+ */
1616
+ message: string;
1617
+
1618
+ /**
1619
+ * @generated from field: string data = 3;
1620
+ */
1621
+ data: string;
1622
+
1623
+ constructor(data?: PartialMessage<RpcError>);
1624
+
1625
+ static readonly runtime: typeof proto3;
1626
+ static readonly typeName = "livekit.RpcError";
1627
+ static readonly fields: FieldList;
1628
+
1629
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): RpcError;
1630
+
1631
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): RpcError;
1632
+
1633
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): RpcError;
1634
+
1635
+ static equals(a: RpcError | PlainMessage<RpcError> | undefined, b: RpcError | PlainMessage<RpcError> | undefined): boolean;
1636
+ }
1637
+
1638
+ /**
1639
+ * @generated from message livekit.ParticipantTracks
1640
+ */
1641
+ export declare class ParticipantTracks extends Message<ParticipantTracks> {
1642
+ /**
1643
+ * participant ID of participant to whom the tracks belong
1644
+ *
1645
+ * @generated from field: string participant_sid = 1;
1646
+ */
1647
+ participantSid: string;
1648
+
1649
+ /**
1650
+ * @generated from field: repeated string track_sids = 2;
1651
+ */
1652
+ trackSids: string[];
1653
+
1654
+ constructor(data?: PartialMessage<ParticipantTracks>);
1655
+
1656
+ static readonly runtime: typeof proto3;
1657
+ static readonly typeName = "livekit.ParticipantTracks";
1658
+ static readonly fields: FieldList;
1659
+
1660
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ParticipantTracks;
1661
+
1662
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ParticipantTracks;
1663
+
1664
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ParticipantTracks;
1665
+
1666
+ static equals(a: ParticipantTracks | PlainMessage<ParticipantTracks> | undefined, b: ParticipantTracks | PlainMessage<ParticipantTracks> | undefined): boolean;
1667
+ }
1668
+
1669
+ /**
1670
+ * details about the server
1671
+ *
1672
+ * @generated from message livekit.ServerInfo
1673
+ */
1674
+ export declare class ServerInfo extends Message<ServerInfo> {
1675
+ /**
1676
+ * @generated from field: livekit.ServerInfo.Edition edition = 1;
1677
+ */
1678
+ edition: ServerInfo_Edition;
1679
+
1680
+ /**
1681
+ * @generated from field: string version = 2;
1682
+ */
1683
+ version: string;
1684
+
1685
+ /**
1686
+ * @generated from field: int32 protocol = 3;
1687
+ */
1688
+ protocol: number;
1689
+
1690
+ /**
1691
+ * @generated from field: string region = 4;
1692
+ */
1693
+ region: string;
1694
+
1695
+ /**
1696
+ * @generated from field: string node_id = 5;
1697
+ */
1698
+ nodeId: string;
1699
+
1700
+ /**
1701
+ * additional debugging information. sent only if server is in development mode
1702
+ *
1703
+ * @generated from field: string debug_info = 6;
1704
+ */
1705
+ debugInfo: string;
1706
+
1707
+ /**
1708
+ * @generated from field: int32 agent_protocol = 7;
1709
+ */
1710
+ agentProtocol: number;
1711
+
1712
+ constructor(data?: PartialMessage<ServerInfo>);
1713
+
1714
+ static readonly runtime: typeof proto3;
1715
+ static readonly typeName = "livekit.ServerInfo";
1716
+ static readonly fields: FieldList;
1717
+
1718
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ServerInfo;
1719
+
1720
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ServerInfo;
1721
+
1722
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ServerInfo;
1723
+
1724
+ static equals(a: ServerInfo | PlainMessage<ServerInfo> | undefined, b: ServerInfo | PlainMessage<ServerInfo> | undefined): boolean;
1725
+ }
1726
+
1727
+ /**
1728
+ * @generated from enum livekit.ServerInfo.Edition
1729
+ */
1730
+ export declare enum ServerInfo_Edition {
1731
+ /**
1732
+ * @generated from enum value: Standard = 0;
1733
+ */
1734
+ Standard = 0,
1735
+
1736
+ /**
1737
+ * @generated from enum value: Cloud = 1;
1738
+ */
1739
+ Cloud = 1,
1740
+ }
1741
+
1742
+ /**
1743
+ * details about the client
1744
+ *
1745
+ * @generated from message livekit.ClientInfo
1746
+ */
1747
+ export declare class ClientInfo extends Message<ClientInfo> {
1748
+ /**
1749
+ * @generated from field: livekit.ClientInfo.SDK sdk = 1;
1750
+ */
1751
+ sdk: ClientInfo_SDK;
1752
+
1753
+ /**
1754
+ * @generated from field: string version = 2;
1755
+ */
1756
+ version: string;
1757
+
1758
+ /**
1759
+ * @generated from field: int32 protocol = 3;
1760
+ */
1761
+ protocol: number;
1762
+
1763
+ /**
1764
+ * @generated from field: string os = 4;
1765
+ */
1766
+ os: string;
1767
+
1768
+ /**
1769
+ * @generated from field: string os_version = 5;
1770
+ */
1771
+ osVersion: string;
1772
+
1773
+ /**
1774
+ * @generated from field: string device_model = 6;
1775
+ */
1776
+ deviceModel: string;
1777
+
1778
+ /**
1779
+ * @generated from field: string browser = 7;
1780
+ */
1781
+ browser: string;
1782
+
1783
+ /**
1784
+ * @generated from field: string browser_version = 8;
1785
+ */
1786
+ browserVersion: string;
1787
+
1788
+ /**
1789
+ * @generated from field: string address = 9;
1790
+ */
1791
+ address: string;
1792
+
1793
+ /**
1794
+ * wifi, wired, cellular, vpn, empty if not known
1795
+ *
1796
+ * @generated from field: string network = 10;
1797
+ */
1798
+ network: string;
1799
+
1800
+ /**
1801
+ * comma separated list of additional LiveKit SDKs in use of this client, with versions
1802
+ * e.g. "components-js:1.2.3,track-processors-js:1.2.3"
1803
+ *
1804
+ * @generated from field: string other_sdks = 11;
1805
+ */
1806
+ otherSdks: string;
1807
+
1808
+ constructor(data?: PartialMessage<ClientInfo>);
1809
+
1810
+ static readonly runtime: typeof proto3;
1811
+ static readonly typeName = "livekit.ClientInfo";
1812
+ static readonly fields: FieldList;
1813
+
1814
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ClientInfo;
1815
+
1816
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ClientInfo;
1817
+
1818
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ClientInfo;
1819
+
1820
+ static equals(a: ClientInfo | PlainMessage<ClientInfo> | undefined, b: ClientInfo | PlainMessage<ClientInfo> | undefined): boolean;
1821
+ }
1822
+
1823
+ /**
1824
+ * @generated from enum livekit.ClientInfo.SDK
1825
+ */
1826
+ export declare enum ClientInfo_SDK {
1827
+ /**
1828
+ * @generated from enum value: UNKNOWN = 0;
1829
+ */
1830
+ UNKNOWN = 0,
1831
+
1832
+ /**
1833
+ * @generated from enum value: JS = 1;
1834
+ */
1835
+ JS = 1,
1836
+
1837
+ /**
1838
+ * @generated from enum value: SWIFT = 2;
1839
+ */
1840
+ SWIFT = 2,
1841
+
1842
+ /**
1843
+ * @generated from enum value: ANDROID = 3;
1844
+ */
1845
+ ANDROID = 3,
1846
+
1847
+ /**
1848
+ * @generated from enum value: FLUTTER = 4;
1849
+ */
1850
+ FLUTTER = 4,
1851
+
1852
+ /**
1853
+ * @generated from enum value: GO = 5;
1854
+ */
1855
+ GO = 5,
1856
+
1857
+ /**
1858
+ * @generated from enum value: UNITY = 6;
1859
+ */
1860
+ UNITY = 6,
1861
+
1862
+ /**
1863
+ * @generated from enum value: REACT_NATIVE = 7;
1864
+ */
1865
+ REACT_NATIVE = 7,
1866
+
1867
+ /**
1868
+ * @generated from enum value: RUST = 8;
1869
+ */
1870
+ RUST = 8,
1871
+
1872
+ /**
1873
+ * @generated from enum value: PYTHON = 9;
1874
+ */
1875
+ PYTHON = 9,
1876
+
1877
+ /**
1878
+ * @generated from enum value: CPP = 10;
1879
+ */
1880
+ CPP = 10,
1881
+
1882
+ /**
1883
+ * @generated from enum value: UNITY_WEB = 11;
1884
+ */
1885
+ UNITY_WEB = 11,
1886
+
1887
+ /**
1888
+ * @generated from enum value: NODE = 12;
1889
+ */
1890
+ NODE = 12,
1891
+ }
1892
+
1893
+ /**
1894
+ * server provided client configuration
1895
+ *
1896
+ * @generated from message livekit.ClientConfiguration
1897
+ */
1898
+ export declare class ClientConfiguration extends Message<ClientConfiguration> {
1899
+ /**
1900
+ * @generated from field: livekit.VideoConfiguration video = 1;
1901
+ */
1902
+ video?: VideoConfiguration;
1903
+
1904
+ /**
1905
+ * @generated from field: livekit.VideoConfiguration screen = 2;
1906
+ */
1907
+ screen?: VideoConfiguration;
1908
+
1909
+ /**
1910
+ * @generated from field: livekit.ClientConfigSetting resume_connection = 3;
1911
+ */
1912
+ resumeConnection: ClientConfigSetting;
1913
+
1914
+ /**
1915
+ * @generated from field: livekit.DisabledCodecs disabled_codecs = 4;
1916
+ */
1917
+ disabledCodecs?: DisabledCodecs;
1918
+
1919
+ /**
1920
+ * @generated from field: livekit.ClientConfigSetting force_relay = 5;
1921
+ */
1922
+ forceRelay: ClientConfigSetting;
1923
+
1924
+ constructor(data?: PartialMessage<ClientConfiguration>);
1925
+
1926
+ static readonly runtime: typeof proto3;
1927
+ static readonly typeName = "livekit.ClientConfiguration";
1928
+ static readonly fields: FieldList;
1929
+
1930
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ClientConfiguration;
1931
+
1932
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ClientConfiguration;
1933
+
1934
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ClientConfiguration;
1935
+
1936
+ static equals(a: ClientConfiguration | PlainMessage<ClientConfiguration> | undefined, b: ClientConfiguration | PlainMessage<ClientConfiguration> | undefined): boolean;
1937
+ }
1938
+
1939
+ /**
1940
+ * @generated from message livekit.VideoConfiguration
1941
+ */
1942
+ export declare class VideoConfiguration extends Message<VideoConfiguration> {
1943
+ /**
1944
+ * @generated from field: livekit.ClientConfigSetting hardware_encoder = 1;
1945
+ */
1946
+ hardwareEncoder: ClientConfigSetting;
1947
+
1948
+ constructor(data?: PartialMessage<VideoConfiguration>);
1949
+
1950
+ static readonly runtime: typeof proto3;
1951
+ static readonly typeName = "livekit.VideoConfiguration";
1952
+ static readonly fields: FieldList;
1953
+
1954
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): VideoConfiguration;
1955
+
1956
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): VideoConfiguration;
1957
+
1958
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): VideoConfiguration;
1959
+
1960
+ static equals(a: VideoConfiguration | PlainMessage<VideoConfiguration> | undefined, b: VideoConfiguration | PlainMessage<VideoConfiguration> | undefined): boolean;
1961
+ }
1962
+
1963
+ /**
1964
+ * @generated from message livekit.DisabledCodecs
1965
+ */
1966
+ export declare class DisabledCodecs extends Message<DisabledCodecs> {
1967
+ /**
1968
+ * disabled for both publish and subscribe
1969
+ *
1970
+ * @generated from field: repeated livekit.Codec codecs = 1;
1971
+ */
1972
+ codecs: Codec[];
1973
+
1974
+ /**
1975
+ * only disable for publish
1976
+ *
1977
+ * @generated from field: repeated livekit.Codec publish = 2;
1978
+ */
1979
+ publish: Codec[];
1980
+
1981
+ constructor(data?: PartialMessage<DisabledCodecs>);
1982
+
1983
+ static readonly runtime: typeof proto3;
1984
+ static readonly typeName = "livekit.DisabledCodecs";
1985
+ static readonly fields: FieldList;
1986
+
1987
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): DisabledCodecs;
1988
+
1989
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): DisabledCodecs;
1990
+
1991
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): DisabledCodecs;
1992
+
1993
+ static equals(a: DisabledCodecs | PlainMessage<DisabledCodecs> | undefined, b: DisabledCodecs | PlainMessage<DisabledCodecs> | undefined): boolean;
1994
+ }
1995
+
1996
+ /**
1997
+ * @generated from message livekit.RTPDrift
1998
+ */
1999
+ export declare class RTPDrift extends Message<RTPDrift> {
2000
+ /**
2001
+ * @generated from field: google.protobuf.Timestamp start_time = 1;
2002
+ */
2003
+ startTime?: Timestamp;
2004
+
2005
+ /**
2006
+ * @generated from field: google.protobuf.Timestamp end_time = 2;
2007
+ */
2008
+ endTime?: Timestamp;
2009
+
2010
+ /**
2011
+ * @generated from field: double duration = 3;
2012
+ */
2013
+ duration: number;
2014
+
2015
+ /**
2016
+ * @generated from field: uint64 start_timestamp = 4;
2017
+ */
2018
+ startTimestamp: bigint;
2019
+
2020
+ /**
2021
+ * @generated from field: uint64 end_timestamp = 5;
2022
+ */
2023
+ endTimestamp: bigint;
2024
+
2025
+ /**
2026
+ * @generated from field: uint64 rtp_clock_ticks = 6;
2027
+ */
2028
+ rtpClockTicks: bigint;
2029
+
2030
+ /**
2031
+ * @generated from field: int64 drift_samples = 7;
2032
+ */
2033
+ driftSamples: bigint;
2034
+
2035
+ /**
2036
+ * @generated from field: double drift_ms = 8;
2037
+ */
2038
+ driftMs: number;
2039
+
2040
+ /**
2041
+ * @generated from field: double clock_rate = 9;
2042
+ */
2043
+ clockRate: number;
2044
+
2045
+ constructor(data?: PartialMessage<RTPDrift>);
2046
+
2047
+ static readonly runtime: typeof proto3;
2048
+ static readonly typeName = "livekit.RTPDrift";
2049
+ static readonly fields: FieldList;
2050
+
2051
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): RTPDrift;
2052
+
2053
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): RTPDrift;
2054
+
2055
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): RTPDrift;
2056
+
2057
+ static equals(a: RTPDrift | PlainMessage<RTPDrift> | undefined, b: RTPDrift | PlainMessage<RTPDrift> | undefined): boolean;
2058
+ }
2059
+
2060
+ /**
2061
+ * @generated from message livekit.RTPStats
2062
+ */
2063
+ export declare class RTPStats extends Message<RTPStats> {
2064
+ /**
2065
+ * @generated from field: google.protobuf.Timestamp start_time = 1;
2066
+ */
2067
+ startTime?: Timestamp;
2068
+
2069
+ /**
2070
+ * @generated from field: google.protobuf.Timestamp end_time = 2;
2071
+ */
2072
+ endTime?: Timestamp;
2073
+
2074
+ /**
2075
+ * @generated from field: double duration = 3;
2076
+ */
2077
+ duration: number;
2078
+
2079
+ /**
2080
+ * @generated from field: uint32 packets = 4;
2081
+ */
2082
+ packets: number;
2083
+
2084
+ /**
2085
+ * @generated from field: double packet_rate = 5;
2086
+ */
2087
+ packetRate: number;
2088
+
2089
+ /**
2090
+ * @generated from field: uint64 bytes = 6;
2091
+ */
2092
+ bytes: bigint;
2093
+
2094
+ /**
2095
+ * @generated from field: uint64 header_bytes = 39;
2096
+ */
2097
+ headerBytes: bigint;
2098
+
2099
+ /**
2100
+ * @generated from field: double bitrate = 7;
2101
+ */
2102
+ bitrate: number;
2103
+
2104
+ /**
2105
+ * @generated from field: uint32 packets_lost = 8;
2106
+ */
2107
+ packetsLost: number;
2108
+
2109
+ /**
2110
+ * @generated from field: double packet_loss_rate = 9;
2111
+ */
2112
+ packetLossRate: number;
2113
+
2114
+ /**
2115
+ * @generated from field: float packet_loss_percentage = 10;
2116
+ */
2117
+ packetLossPercentage: number;
2118
+
2119
+ /**
2120
+ * @generated from field: uint32 packets_duplicate = 11;
2121
+ */
2122
+ packetsDuplicate: number;
2123
+
2124
+ /**
2125
+ * @generated from field: double packet_duplicate_rate = 12;
2126
+ */
2127
+ packetDuplicateRate: number;
2128
+
2129
+ /**
2130
+ * @generated from field: uint64 bytes_duplicate = 13;
2131
+ */
2132
+ bytesDuplicate: bigint;
2133
+
2134
+ /**
2135
+ * @generated from field: uint64 header_bytes_duplicate = 40;
2136
+ */
2137
+ headerBytesDuplicate: bigint;
2138
+
2139
+ /**
2140
+ * @generated from field: double bitrate_duplicate = 14;
2141
+ */
2142
+ bitrateDuplicate: number;
2143
+
2144
+ /**
2145
+ * @generated from field: uint32 packets_padding = 15;
2146
+ */
2147
+ packetsPadding: number;
2148
+
2149
+ /**
2150
+ * @generated from field: double packet_padding_rate = 16;
2151
+ */
2152
+ packetPaddingRate: number;
2153
+
2154
+ /**
2155
+ * @generated from field: uint64 bytes_padding = 17;
2156
+ */
2157
+ bytesPadding: bigint;
2158
+
2159
+ /**
2160
+ * @generated from field: uint64 header_bytes_padding = 41;
2161
+ */
2162
+ headerBytesPadding: bigint;
2163
+
2164
+ /**
2165
+ * @generated from field: double bitrate_padding = 18;
2166
+ */
2167
+ bitratePadding: number;
2168
+
2169
+ /**
2170
+ * @generated from field: uint32 packets_out_of_order = 19;
2171
+ */
2172
+ packetsOutOfOrder: number;
2173
+
2174
+ /**
2175
+ * @generated from field: uint32 frames = 20;
2176
+ */
2177
+ frames: number;
2178
+
2179
+ /**
2180
+ * @generated from field: double frame_rate = 21;
2181
+ */
2182
+ frameRate: number;
2183
+
2184
+ /**
2185
+ * @generated from field: double jitter_current = 22;
2186
+ */
2187
+ jitterCurrent: number;
2188
+
2189
+ /**
2190
+ * @generated from field: double jitter_max = 23;
2191
+ */
2192
+ jitterMax: number;
2193
+
2194
+ /**
2195
+ * @generated from field: map<int32, uint32> gap_histogram = 24;
2196
+ */
2197
+ gapHistogram: { [key: number]: number };
2198
+
2199
+ /**
2200
+ * @generated from field: uint32 nacks = 25;
2201
+ */
2202
+ nacks: number;
2203
+
2204
+ /**
2205
+ * @generated from field: uint32 nack_acks = 37;
2206
+ */
2207
+ nackAcks: number;
2208
+
2209
+ /**
2210
+ * @generated from field: uint32 nack_misses = 26;
2211
+ */
2212
+ nackMisses: number;
2213
+
2214
+ /**
2215
+ * @generated from field: uint32 nack_repeated = 38;
2216
+ */
2217
+ nackRepeated: number;
2218
+
2219
+ /**
2220
+ * @generated from field: uint32 plis = 27;
2221
+ */
2222
+ plis: number;
2223
+
2224
+ /**
2225
+ * @generated from field: google.protobuf.Timestamp last_pli = 28;
2226
+ */
2227
+ lastPli?: Timestamp;
2228
+
2229
+ /**
2230
+ * @generated from field: uint32 firs = 29;
2231
+ */
2232
+ firs: number;
2233
+
2234
+ /**
2235
+ * @generated from field: google.protobuf.Timestamp last_fir = 30;
2236
+ */
2237
+ lastFir?: Timestamp;
2238
+
2239
+ /**
2240
+ * @generated from field: uint32 rtt_current = 31;
2241
+ */
2242
+ rttCurrent: number;
2243
+
2244
+ /**
2245
+ * @generated from field: uint32 rtt_max = 32;
2246
+ */
2247
+ rttMax: number;
2248
+
2249
+ /**
2250
+ * @generated from field: uint32 key_frames = 33;
2251
+ */
2252
+ keyFrames: number;
2253
+
2254
+ /**
2255
+ * @generated from field: google.protobuf.Timestamp last_key_frame = 34;
2256
+ */
2257
+ lastKeyFrame?: Timestamp;
2258
+
2259
+ /**
2260
+ * @generated from field: uint32 layer_lock_plis = 35;
2261
+ */
2262
+ layerLockPlis: number;
2263
+
2264
+ /**
2265
+ * @generated from field: google.protobuf.Timestamp last_layer_lock_pli = 36;
2266
+ */
2267
+ lastLayerLockPli?: Timestamp;
2268
+
2269
+ /**
2270
+ * @generated from field: livekit.RTPDrift packet_drift = 44;
2271
+ */
2272
+ packetDrift?: RTPDrift;
2273
+
2274
+ /**
2275
+ * @generated from field: livekit.RTPDrift ntp_report_drift = 45;
2276
+ */
2277
+ ntpReportDrift?: RTPDrift;
2278
+
2279
+ /**
2280
+ * @generated from field: livekit.RTPDrift rebased_report_drift = 46;
2281
+ */
2282
+ rebasedReportDrift?: RTPDrift;
2283
+
2284
+ /**
2285
+ * NEXT_ID: 48
2286
+ *
2287
+ * @generated from field: livekit.RTPDrift received_report_drift = 47;
2288
+ */
2289
+ receivedReportDrift?: RTPDrift;
2290
+
2291
+ constructor(data?: PartialMessage<RTPStats>);
2292
+
2293
+ static readonly runtime: typeof proto3;
2294
+ static readonly typeName = "livekit.RTPStats";
2295
+ static readonly fields: FieldList;
2296
+
2297
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): RTPStats;
2298
+
2299
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): RTPStats;
2300
+
2301
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): RTPStats;
2302
+
2303
+ static equals(a: RTPStats | PlainMessage<RTPStats> | undefined, b: RTPStats | PlainMessage<RTPStats> | undefined): boolean;
2304
+ }
2305
+
2306
+ /**
2307
+ * @generated from message livekit.RTCPSenderReportState
2308
+ */
2309
+ export declare class RTCPSenderReportState extends Message<RTCPSenderReportState> {
2310
+ /**
2311
+ * @generated from field: uint32 rtp_timestamp = 1;
2312
+ */
2313
+ rtpTimestamp: number;
2314
+
2315
+ /**
2316
+ * @generated from field: uint64 rtp_timestamp_ext = 2;
2317
+ */
2318
+ rtpTimestampExt: bigint;
2319
+
2320
+ /**
2321
+ * @generated from field: uint64 ntp_timestamp = 3;
2322
+ */
2323
+ ntpTimestamp: bigint;
2324
+
2325
+ /**
2326
+ * time at which this happened
2327
+ *
2328
+ * @generated from field: int64 at = 4;
2329
+ */
2330
+ at: bigint;
2331
+
2332
+ /**
2333
+ * @generated from field: int64 at_adjusted = 5;
2334
+ */
2335
+ atAdjusted: bigint;
2336
+
2337
+ /**
2338
+ * @generated from field: uint32 packets = 6;
2339
+ */
2340
+ packets: number;
2341
+
2342
+ /**
2343
+ * @generated from field: uint64 octets = 7;
2344
+ */
2345
+ octets: bigint;
2346
+
2347
+ constructor(data?: PartialMessage<RTCPSenderReportState>);
2348
+
2349
+ static readonly runtime: typeof proto3;
2350
+ static readonly typeName = "livekit.RTCPSenderReportState";
2351
+ static readonly fields: FieldList;
2352
+
2353
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): RTCPSenderReportState;
2354
+
2355
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): RTCPSenderReportState;
2356
+
2357
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): RTCPSenderReportState;
2358
+
2359
+ static equals(a: RTCPSenderReportState | PlainMessage<RTCPSenderReportState> | undefined, b: RTCPSenderReportState | PlainMessage<RTCPSenderReportState> | undefined): boolean;
2360
+ }
2361
+
2362
+ /**
2363
+ * @generated from message livekit.RTPForwarderState
2364
+ */
2365
+ export declare class RTPForwarderState extends Message<RTPForwarderState> {
2366
+ /**
2367
+ * @generated from field: bool started = 1;
2368
+ */
2369
+ started: boolean;
2370
+
2371
+ /**
2372
+ * @generated from field: int32 reference_layer_spatial = 2;
2373
+ */
2374
+ referenceLayerSpatial: number;
2375
+
2376
+ /**
2377
+ * @generated from field: int64 pre_start_time = 3;
2378
+ */
2379
+ preStartTime: bigint;
2380
+
2381
+ /**
2382
+ * @generated from field: uint64 ext_first_timestamp = 4;
2383
+ */
2384
+ extFirstTimestamp: bigint;
2385
+
2386
+ /**
2387
+ * @generated from field: uint64 dummy_start_timestamp_offset = 5;
2388
+ */
2389
+ dummyStartTimestampOffset: bigint;
2390
+
2391
+ /**
2392
+ * @generated from field: livekit.RTPMungerState rtp_munger = 6;
2393
+ */
2394
+ rtpMunger?: RTPMungerState;
2395
+
2396
+ /**
2397
+ * @generated from oneof livekit.RTPForwarderState.codec_munger
2398
+ */
2399
+ codecMunger: {
2400
+ /**
2401
+ * @generated from field: livekit.VP8MungerState vp8_munger = 7;
2402
+ */
2403
+ value: VP8MungerState;
2404
+ case: "vp8Munger";
2405
+ } | { case: undefined; value?: undefined };
2406
+
2407
+ /**
2408
+ * @generated from field: repeated livekit.RTCPSenderReportState sender_report_state = 8;
2409
+ */
2410
+ senderReportState: RTCPSenderReportState[];
2411
+
2412
+ constructor(data?: PartialMessage<RTPForwarderState>);
2413
+
2414
+ static readonly runtime: typeof proto3;
2415
+ static readonly typeName = "livekit.RTPForwarderState";
2416
+ static readonly fields: FieldList;
2417
+
2418
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): RTPForwarderState;
2419
+
2420
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): RTPForwarderState;
2421
+
2422
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): RTPForwarderState;
2423
+
2424
+ static equals(a: RTPForwarderState | PlainMessage<RTPForwarderState> | undefined, b: RTPForwarderState | PlainMessage<RTPForwarderState> | undefined): boolean;
2425
+ }
2426
+
2427
+ /**
2428
+ * @generated from message livekit.RTPMungerState
2429
+ */
2430
+ export declare class RTPMungerState extends Message<RTPMungerState> {
2431
+ /**
2432
+ * @generated from field: uint64 ext_last_sequence_number = 1;
2433
+ */
2434
+ extLastSequenceNumber: bigint;
2435
+
2436
+ /**
2437
+ * @generated from field: uint64 ext_second_last_sequence_number = 2;
2438
+ */
2439
+ extSecondLastSequenceNumber: bigint;
2440
+
2441
+ /**
2442
+ * @generated from field: uint64 ext_last_timestamp = 3;
2443
+ */
2444
+ extLastTimestamp: bigint;
2445
+
2446
+ /**
2447
+ * @generated from field: uint64 ext_second_last_timestamp = 4;
2448
+ */
2449
+ extSecondLastTimestamp: bigint;
2450
+
2451
+ /**
2452
+ * @generated from field: bool last_marker = 5;
2453
+ */
2454
+ lastMarker: boolean;
2455
+
2456
+ /**
2457
+ * @generated from field: bool second_last_marker = 6;
2458
+ */
2459
+ secondLastMarker: boolean;
2460
+
2461
+ constructor(data?: PartialMessage<RTPMungerState>);
2462
+
2463
+ static readonly runtime: typeof proto3;
2464
+ static readonly typeName = "livekit.RTPMungerState";
2465
+ static readonly fields: FieldList;
2466
+
2467
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): RTPMungerState;
2468
+
2469
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): RTPMungerState;
2470
+
2471
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): RTPMungerState;
2472
+
2473
+ static equals(a: RTPMungerState | PlainMessage<RTPMungerState> | undefined, b: RTPMungerState | PlainMessage<RTPMungerState> | undefined): boolean;
2474
+ }
2475
+
2476
+ /**
2477
+ * @generated from message livekit.VP8MungerState
2478
+ */
2479
+ export declare class VP8MungerState extends Message<VP8MungerState> {
2480
+ /**
2481
+ * @generated from field: int32 ext_last_picture_id = 1;
2482
+ */
2483
+ extLastPictureId: number;
2484
+
2485
+ /**
2486
+ * @generated from field: bool picture_id_used = 2;
2487
+ */
2488
+ pictureIdUsed: boolean;
2489
+
2490
+ /**
2491
+ * @generated from field: uint32 last_tl0_pic_idx = 3;
2492
+ */
2493
+ lastTl0PicIdx: number;
2494
+
2495
+ /**
2496
+ * @generated from field: bool tl0_pic_idx_used = 4;
2497
+ */
2498
+ tl0PicIdxUsed: boolean;
2499
+
2500
+ /**
2501
+ * @generated from field: bool tid_used = 5;
2502
+ */
2503
+ tidUsed: boolean;
2504
+
2505
+ /**
2506
+ * @generated from field: uint32 last_key_idx = 6;
2507
+ */
2508
+ lastKeyIdx: number;
2509
+
2510
+ /**
2511
+ * @generated from field: bool key_idx_used = 7;
2512
+ */
2513
+ keyIdxUsed: boolean;
2514
+
2515
+ constructor(data?: PartialMessage<VP8MungerState>);
2516
+
2517
+ static readonly runtime: typeof proto3;
2518
+ static readonly typeName = "livekit.VP8MungerState";
2519
+ static readonly fields: FieldList;
2520
+
2521
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): VP8MungerState;
2522
+
2523
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): VP8MungerState;
2524
+
2525
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): VP8MungerState;
2526
+
2527
+ static equals(a: VP8MungerState | PlainMessage<VP8MungerState> | undefined, b: VP8MungerState | PlainMessage<VP8MungerState> | undefined): boolean;
2528
+ }
2529
+
2530
+ /**
2531
+ * @generated from message livekit.TimedVersion
2532
+ */
2533
+ export declare class TimedVersion extends Message<TimedVersion> {
2534
+ /**
2535
+ * @generated from field: int64 unix_micro = 1;
2536
+ */
2537
+ unixMicro: bigint;
2538
+
2539
+ /**
2540
+ * @generated from field: int32 ticks = 2;
2541
+ */
2542
+ ticks: number;
2543
+
2544
+ constructor(data?: PartialMessage<TimedVersion>);
2545
+
2546
+ static readonly runtime: typeof proto3;
2547
+ static readonly typeName = "livekit.TimedVersion";
2548
+ static readonly fields: FieldList;
2549
+
2550
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): TimedVersion;
2551
+
2552
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): TimedVersion;
2553
+
2554
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): TimedVersion;
2555
+
2556
+ static equals(a: TimedVersion | PlainMessage<TimedVersion> | undefined, b: TimedVersion | PlainMessage<TimedVersion> | undefined): boolean;
2557
+ }
2558
+
2559
+ /**
2560
+ * @generated from message livekit.DataStream
2561
+ */
2562
+ export declare class DataStream extends Message<DataStream> {
2563
+ constructor(data?: PartialMessage<DataStream>);
2564
+
2565
+ static readonly runtime: typeof proto3;
2566
+ static readonly typeName = "livekit.DataStream";
2567
+ static readonly fields: FieldList;
2568
+
2569
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): DataStream;
2570
+
2571
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): DataStream;
2572
+
2573
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): DataStream;
2574
+
2575
+ static equals(a: DataStream | PlainMessage<DataStream> | undefined, b: DataStream | PlainMessage<DataStream> | undefined): boolean;
2576
+ }
2577
+
2578
+ /**
2579
+ * enum for operation types (specific to TextHeader)
2580
+ *
2581
+ * @generated from enum livekit.DataStream.OperationType
2582
+ */
2583
+ export declare enum DataStream_OperationType {
2584
+ /**
2585
+ * @generated from enum value: CREATE = 0;
2586
+ */
2587
+ CREATE = 0,
2588
+
2589
+ /**
2590
+ * @generated from enum value: UPDATE = 1;
2591
+ */
2592
+ UPDATE = 1,
2593
+
2594
+ /**
2595
+ * @generated from enum value: DELETE = 2;
2596
+ */
2597
+ DELETE = 2,
2598
+
2599
+ /**
2600
+ * @generated from enum value: REACTION = 3;
2601
+ */
2602
+ REACTION = 3,
2603
+ }
2604
+
2605
+ /**
2606
+ * header properties specific to text streams
2607
+ *
2608
+ * @generated from message livekit.DataStream.TextHeader
2609
+ */
2610
+ export declare class DataStream_TextHeader extends Message<DataStream_TextHeader> {
2611
+ /**
2612
+ * @generated from field: livekit.DataStream.OperationType operation_type = 1;
2613
+ */
2614
+ operationType: DataStream_OperationType;
2615
+
2616
+ /**
2617
+ * Optional: Version for updates/edits
2618
+ *
2619
+ * @generated from field: int32 version = 2;
2620
+ */
2621
+ version: number;
2622
+
2623
+ /**
2624
+ * Optional: Reply to specific message
2625
+ *
2626
+ * @generated from field: string reply_to_stream_id = 3;
2627
+ */
2628
+ replyToStreamId: string;
2629
+
2630
+ /**
2631
+ * file attachments for text streams
2632
+ *
2633
+ * @generated from field: repeated string attached_stream_ids = 4;
2634
+ */
2635
+ attachedStreamIds: string[];
2636
+
2637
+ /**
2638
+ * true if the text has been generated by an agent from a participant's audio transcription
2639
+ *
2640
+ * @generated from field: bool generated = 5;
2641
+ */
2642
+ generated: boolean;
2643
+
2644
+ constructor(data?: PartialMessage<DataStream_TextHeader>);
2645
+
2646
+ static readonly runtime: typeof proto3;
2647
+ static readonly typeName = "livekit.DataStream.TextHeader";
2648
+ static readonly fields: FieldList;
2649
+
2650
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): DataStream_TextHeader;
2651
+
2652
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): DataStream_TextHeader;
2653
+
2654
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): DataStream_TextHeader;
2655
+
2656
+ static equals(a: DataStream_TextHeader | PlainMessage<DataStream_TextHeader> | undefined, b: DataStream_TextHeader | PlainMessage<DataStream_TextHeader> | undefined): boolean;
2657
+ }
2658
+
2659
+ /**
2660
+ * header properties specific to file or image streams
2661
+ *
2662
+ * @generated from message livekit.DataStream.FileHeader
2663
+ */
2664
+ export declare class DataStream_FileHeader extends Message<DataStream_FileHeader> {
2665
+ /**
2666
+ * name of the file
2667
+ *
2668
+ * @generated from field: string file_name = 1;
2669
+ */
2670
+ fileName: string;
2671
+
2672
+ constructor(data?: PartialMessage<DataStream_FileHeader>);
2673
+
2674
+ static readonly runtime: typeof proto3;
2675
+ static readonly typeName = "livekit.DataStream.FileHeader";
2676
+ static readonly fields: FieldList;
2677
+
2678
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): DataStream_FileHeader;
2679
+
2680
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): DataStream_FileHeader;
2681
+
2682
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): DataStream_FileHeader;
2683
+
2684
+ static equals(a: DataStream_FileHeader | PlainMessage<DataStream_FileHeader> | undefined, b: DataStream_FileHeader | PlainMessage<DataStream_FileHeader> | undefined): boolean;
2685
+ }
2686
+
2687
+ /**
2688
+ * main DataStream.Header that contains a oneof for specific headers
2689
+ *
2690
+ * @generated from message livekit.DataStream.Header
2691
+ */
2692
+ export declare class DataStream_Header extends Message<DataStream_Header> {
2693
+ /**
2694
+ * unique identifier for this data stream
2695
+ *
2696
+ * @generated from field: string stream_id = 1;
2697
+ */
2698
+ streamId: string;
2699
+
2700
+ /**
2701
+ * using int64 for Unix timestamp
2702
+ *
2703
+ * @generated from field: int64 timestamp = 2;
2704
+ */
2705
+ timestamp: bigint;
2706
+
2707
+ /**
2708
+ * @generated from field: string topic = 3;
2709
+ */
2710
+ topic: string;
2711
+
2712
+ /**
2713
+ * @generated from field: string mime_type = 4;
2714
+ */
2715
+ mimeType: string;
2716
+
2717
+ /**
2718
+ * only populated for finite streams, if it's a stream of unknown size this stays empty
2719
+ *
2720
+ * @generated from field: optional uint64 total_length = 5;
2721
+ */
2722
+ totalLength?: bigint;
2723
+
2724
+ /**
2725
+ * only populated for finite streams, if it's a stream of unknown size this stays empty
2726
+ *
2727
+ * @generated from field: optional uint64 total_chunks = 6;
2728
+ */
2729
+ totalChunks?: bigint;
2730
+
2731
+ /**
2732
+ * defaults to NONE
2733
+ *
2734
+ * @generated from field: livekit.Encryption.Type encryption_type = 7;
2735
+ */
2736
+ encryptionType: Encryption_Type;
2737
+
2738
+ /**
2739
+ * user defined extensions map that can carry additional info
2740
+ *
2741
+ * @generated from field: map<string, string> extensions = 8;
2742
+ */
2743
+ extensions: { [key: string]: string };
2744
+
2745
+ /**
2746
+ * oneof to choose between specific header types
2747
+ *
2748
+ * @generated from oneof livekit.DataStream.Header.content_header
2749
+ */
2750
+ contentHeader: {
2751
+ /**
2752
+ * @generated from field: livekit.DataStream.TextHeader text_header = 9;
2753
+ */
2754
+ value: DataStream_TextHeader;
2755
+ case: "textHeader";
2756
+ } | {
2757
+ /**
2758
+ * @generated from field: livekit.DataStream.FileHeader file_header = 10;
2759
+ */
2760
+ value: DataStream_FileHeader;
2761
+ case: "fileHeader";
2762
+ } | { case: undefined; value?: undefined };
2763
+
2764
+ constructor(data?: PartialMessage<DataStream_Header>);
2765
+
2766
+ static readonly runtime: typeof proto3;
2767
+ static readonly typeName = "livekit.DataStream.Header";
2768
+ static readonly fields: FieldList;
2769
+
2770
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): DataStream_Header;
2771
+
2772
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): DataStream_Header;
2773
+
2774
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): DataStream_Header;
2775
+
2776
+ static equals(a: DataStream_Header | PlainMessage<DataStream_Header> | undefined, b: DataStream_Header | PlainMessage<DataStream_Header> | undefined): boolean;
2777
+ }
2778
+
2779
+ /**
2780
+ * @generated from message livekit.DataStream.Chunk
2781
+ */
2782
+ export declare class DataStream_Chunk extends Message<DataStream_Chunk> {
2783
+ /**
2784
+ * unique identifier for this data stream to map it to the correct header
2785
+ *
2786
+ * @generated from field: string stream_id = 1;
2787
+ */
2788
+ streamId: string;
2789
+
2790
+ /**
2791
+ * @generated from field: uint64 chunk_index = 2;
2792
+ */
2793
+ chunkIndex: bigint;
2794
+
2795
+ /**
2796
+ * content as binary (bytes)
2797
+ *
2798
+ * @generated from field: bytes content = 3;
2799
+ */
2800
+ content: Uint8Array;
2801
+
2802
+ /**
2803
+ * true only if this is the last chunk of this stream - can also be sent with empty content
2804
+ *
2805
+ * @generated from field: bool complete = 4;
2806
+ */
2807
+ complete: boolean;
2808
+
2809
+ /**
2810
+ * a version indicating that this chunk_index has been retroactively modified and the original one needs to be replaced
2811
+ *
2812
+ * @generated from field: int32 version = 5;
2813
+ */
2814
+ version: number;
2815
+
2816
+ /**
2817
+ * optional, initialization vector for AES-GCM encryption
2818
+ *
2819
+ * @generated from field: optional bytes iv = 6;
2820
+ */
2821
+ iv?: Uint8Array;
2822
+
2823
+ constructor(data?: PartialMessage<DataStream_Chunk>);
2824
+
2825
+ static readonly runtime: typeof proto3;
2826
+ static readonly typeName = "livekit.DataStream.Chunk";
2827
+ static readonly fields: FieldList;
2828
+
2829
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): DataStream_Chunk;
2830
+
2831
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): DataStream_Chunk;
2832
+
2833
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): DataStream_Chunk;
2834
+
2835
+ static equals(a: DataStream_Chunk | PlainMessage<DataStream_Chunk> | undefined, b: DataStream_Chunk | PlainMessage<DataStream_Chunk> | undefined): boolean;
2836
+ }
2837
+