@livekit/protocol 1.27.1 → 1.28.1

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