@livekit/protocol 1.10.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.
@@ -0,0 +1,565 @@
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.7.2 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 { proto3 } from "@bufbuild/protobuf";
21
+ import { ClientConfiguration, ConnectionQuality, DisconnectReason, Encryption_Type, ParticipantInfo, ParticipantTracks, Room, ServerInfo, SpeakerInfo, SubscriptionError, TrackInfo, TrackSource, TrackType, VideoLayer, VideoQuality } from "./livekit_models_pb.js";
22
+
23
+ /**
24
+ * @generated from enum livekit.SignalTarget
25
+ */
26
+ export const SignalTarget = proto3.makeEnum(
27
+ "livekit.SignalTarget",
28
+ [
29
+ {no: 0, name: "PUBLISHER"},
30
+ {no: 1, name: "SUBSCRIBER"},
31
+ ],
32
+ );
33
+
34
+ /**
35
+ * @generated from enum livekit.StreamState
36
+ */
37
+ export const StreamState = proto3.makeEnum(
38
+ "livekit.StreamState",
39
+ [
40
+ {no: 0, name: "ACTIVE"},
41
+ {no: 1, name: "PAUSED"},
42
+ ],
43
+ );
44
+
45
+ /**
46
+ * @generated from enum livekit.CandidateProtocol
47
+ */
48
+ export const CandidateProtocol = proto3.makeEnum(
49
+ "livekit.CandidateProtocol",
50
+ [
51
+ {no: 0, name: "UDP"},
52
+ {no: 1, name: "TCP"},
53
+ {no: 2, name: "TLS"},
54
+ ],
55
+ );
56
+
57
+ /**
58
+ * @generated from message livekit.SignalRequest
59
+ */
60
+ export const SignalRequest = proto3.makeMessageType(
61
+ "livekit.SignalRequest",
62
+ () => [
63
+ { no: 1, name: "offer", kind: "message", T: SessionDescription, oneof: "message" },
64
+ { no: 2, name: "answer", kind: "message", T: SessionDescription, oneof: "message" },
65
+ { no: 3, name: "trickle", kind: "message", T: TrickleRequest, oneof: "message" },
66
+ { no: 4, name: "add_track", kind: "message", T: AddTrackRequest, oneof: "message" },
67
+ { no: 5, name: "mute", kind: "message", T: MuteTrackRequest, oneof: "message" },
68
+ { no: 6, name: "subscription", kind: "message", T: UpdateSubscription, oneof: "message" },
69
+ { no: 7, name: "track_setting", kind: "message", T: UpdateTrackSettings, oneof: "message" },
70
+ { no: 8, name: "leave", kind: "message", T: LeaveRequest, oneof: "message" },
71
+ { no: 10, name: "update_layers", kind: "message", T: UpdateVideoLayers, oneof: "message" },
72
+ { no: 11, name: "subscription_permission", kind: "message", T: SubscriptionPermission, oneof: "message" },
73
+ { no: 12, name: "sync_state", kind: "message", T: SyncState, oneof: "message" },
74
+ { no: 13, name: "simulate", kind: "message", T: SimulateScenario, oneof: "message" },
75
+ { no: 14, name: "ping", kind: "scalar", T: 3 /* ScalarType.INT64 */, oneof: "message" },
76
+ { no: 15, name: "update_metadata", kind: "message", T: UpdateParticipantMetadata, oneof: "message" },
77
+ { no: 16, name: "ping_req", kind: "message", T: Ping, oneof: "message" },
78
+ ],
79
+ );
80
+
81
+ /**
82
+ * @generated from message livekit.SignalResponse
83
+ */
84
+ export const SignalResponse = proto3.makeMessageType(
85
+ "livekit.SignalResponse",
86
+ () => [
87
+ { no: 1, name: "join", kind: "message", T: JoinResponse, oneof: "message" },
88
+ { no: 2, name: "answer", kind: "message", T: SessionDescription, oneof: "message" },
89
+ { no: 3, name: "offer", kind: "message", T: SessionDescription, oneof: "message" },
90
+ { no: 4, name: "trickle", kind: "message", T: TrickleRequest, oneof: "message" },
91
+ { no: 5, name: "update", kind: "message", T: ParticipantUpdate, oneof: "message" },
92
+ { no: 6, name: "track_published", kind: "message", T: TrackPublishedResponse, oneof: "message" },
93
+ { no: 8, name: "leave", kind: "message", T: LeaveRequest, oneof: "message" },
94
+ { no: 9, name: "mute", kind: "message", T: MuteTrackRequest, oneof: "message" },
95
+ { no: 10, name: "speakers_changed", kind: "message", T: SpeakersChanged, oneof: "message" },
96
+ { no: 11, name: "room_update", kind: "message", T: RoomUpdate, oneof: "message" },
97
+ { no: 12, name: "connection_quality", kind: "message", T: ConnectionQualityUpdate, oneof: "message" },
98
+ { no: 13, name: "stream_state_update", kind: "message", T: StreamStateUpdate, oneof: "message" },
99
+ { no: 14, name: "subscribed_quality_update", kind: "message", T: SubscribedQualityUpdate, oneof: "message" },
100
+ { no: 15, name: "subscription_permission_update", kind: "message", T: SubscriptionPermissionUpdate, oneof: "message" },
101
+ { no: 16, name: "refresh_token", kind: "scalar", T: 9 /* ScalarType.STRING */, oneof: "message" },
102
+ { no: 17, name: "track_unpublished", kind: "message", T: TrackUnpublishedResponse, oneof: "message" },
103
+ { no: 18, name: "pong", kind: "scalar", T: 3 /* ScalarType.INT64 */, oneof: "message" },
104
+ { no: 19, name: "reconnect", kind: "message", T: ReconnectResponse, oneof: "message" },
105
+ { no: 20, name: "pong_resp", kind: "message", T: Pong, oneof: "message" },
106
+ { no: 21, name: "subscription_response", kind: "message", T: SubscriptionResponse, oneof: "message" },
107
+ ],
108
+ );
109
+
110
+ /**
111
+ * @generated from message livekit.SimulcastCodec
112
+ */
113
+ export const SimulcastCodec = proto3.makeMessageType(
114
+ "livekit.SimulcastCodec",
115
+ () => [
116
+ { no: 1, name: "codec", kind: "scalar", T: 9 /* ScalarType.STRING */ },
117
+ { no: 2, name: "cid", kind: "scalar", T: 9 /* ScalarType.STRING */ },
118
+ ],
119
+ );
120
+
121
+ /**
122
+ * @generated from message livekit.AddTrackRequest
123
+ */
124
+ export const AddTrackRequest = proto3.makeMessageType(
125
+ "livekit.AddTrackRequest",
126
+ () => [
127
+ { no: 1, name: "cid", kind: "scalar", T: 9 /* ScalarType.STRING */ },
128
+ { no: 2, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
129
+ { no: 3, name: "type", kind: "enum", T: proto3.getEnumType(TrackType) },
130
+ { no: 4, name: "width", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
131
+ { no: 5, name: "height", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
132
+ { no: 6, name: "muted", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
133
+ { no: 7, name: "disable_dtx", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
134
+ { no: 8, name: "source", kind: "enum", T: proto3.getEnumType(TrackSource) },
135
+ { no: 9, name: "layers", kind: "message", T: VideoLayer, repeated: true },
136
+ { no: 10, name: "simulcast_codecs", kind: "message", T: SimulcastCodec, repeated: true },
137
+ { no: 11, name: "sid", kind: "scalar", T: 9 /* ScalarType.STRING */ },
138
+ { no: 12, name: "stereo", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
139
+ { no: 13, name: "disable_red", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
140
+ { no: 14, name: "encryption", kind: "enum", T: proto3.getEnumType(Encryption_Type) },
141
+ { no: 15, name: "stream", kind: "scalar", T: 9 /* ScalarType.STRING */ },
142
+ ],
143
+ );
144
+
145
+ /**
146
+ * @generated from message livekit.TrickleRequest
147
+ */
148
+ export const TrickleRequest = proto3.makeMessageType(
149
+ "livekit.TrickleRequest",
150
+ () => [
151
+ { no: 1, name: "candidateInit", kind: "scalar", T: 9 /* ScalarType.STRING */ },
152
+ { no: 2, name: "target", kind: "enum", T: proto3.getEnumType(SignalTarget) },
153
+ ],
154
+ );
155
+
156
+ /**
157
+ * @generated from message livekit.MuteTrackRequest
158
+ */
159
+ export const MuteTrackRequest = proto3.makeMessageType(
160
+ "livekit.MuteTrackRequest",
161
+ () => [
162
+ { no: 1, name: "sid", kind: "scalar", T: 9 /* ScalarType.STRING */ },
163
+ { no: 2, name: "muted", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
164
+ ],
165
+ );
166
+
167
+ /**
168
+ * @generated from message livekit.JoinResponse
169
+ */
170
+ export const JoinResponse = proto3.makeMessageType(
171
+ "livekit.JoinResponse",
172
+ () => [
173
+ { no: 1, name: "room", kind: "message", T: Room },
174
+ { no: 2, name: "participant", kind: "message", T: ParticipantInfo },
175
+ { no: 3, name: "other_participants", kind: "message", T: ParticipantInfo, repeated: true },
176
+ { no: 4, name: "server_version", kind: "scalar", T: 9 /* ScalarType.STRING */ },
177
+ { no: 5, name: "ice_servers", kind: "message", T: ICEServer, repeated: true },
178
+ { no: 6, name: "subscriber_primary", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
179
+ { no: 7, name: "alternative_url", kind: "scalar", T: 9 /* ScalarType.STRING */ },
180
+ { no: 8, name: "client_configuration", kind: "message", T: ClientConfiguration },
181
+ { no: 9, name: "server_region", kind: "scalar", T: 9 /* ScalarType.STRING */ },
182
+ { no: 10, name: "ping_timeout", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
183
+ { no: 11, name: "ping_interval", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
184
+ { no: 12, name: "server_info", kind: "message", T: ServerInfo },
185
+ { no: 13, name: "sif_trailer", kind: "scalar", T: 12 /* ScalarType.BYTES */ },
186
+ ],
187
+ );
188
+
189
+ /**
190
+ * @generated from message livekit.ReconnectResponse
191
+ */
192
+ export const ReconnectResponse = proto3.makeMessageType(
193
+ "livekit.ReconnectResponse",
194
+ () => [
195
+ { no: 1, name: "ice_servers", kind: "message", T: ICEServer, repeated: true },
196
+ { no: 2, name: "client_configuration", kind: "message", T: ClientConfiguration },
197
+ ],
198
+ );
199
+
200
+ /**
201
+ * @generated from message livekit.TrackPublishedResponse
202
+ */
203
+ export const TrackPublishedResponse = proto3.makeMessageType(
204
+ "livekit.TrackPublishedResponse",
205
+ () => [
206
+ { no: 1, name: "cid", kind: "scalar", T: 9 /* ScalarType.STRING */ },
207
+ { no: 2, name: "track", kind: "message", T: TrackInfo },
208
+ ],
209
+ );
210
+
211
+ /**
212
+ * @generated from message livekit.TrackUnpublishedResponse
213
+ */
214
+ export const TrackUnpublishedResponse = proto3.makeMessageType(
215
+ "livekit.TrackUnpublishedResponse",
216
+ () => [
217
+ { no: 1, name: "track_sid", kind: "scalar", T: 9 /* ScalarType.STRING */ },
218
+ ],
219
+ );
220
+
221
+ /**
222
+ * @generated from message livekit.SessionDescription
223
+ */
224
+ export const SessionDescription = proto3.makeMessageType(
225
+ "livekit.SessionDescription",
226
+ () => [
227
+ { no: 1, name: "type", kind: "scalar", T: 9 /* ScalarType.STRING */ },
228
+ { no: 2, name: "sdp", kind: "scalar", T: 9 /* ScalarType.STRING */ },
229
+ ],
230
+ );
231
+
232
+ /**
233
+ * @generated from message livekit.ParticipantUpdate
234
+ */
235
+ export const ParticipantUpdate = proto3.makeMessageType(
236
+ "livekit.ParticipantUpdate",
237
+ () => [
238
+ { no: 1, name: "participants", kind: "message", T: ParticipantInfo, repeated: true },
239
+ ],
240
+ );
241
+
242
+ /**
243
+ * @generated from message livekit.UpdateSubscription
244
+ */
245
+ export const UpdateSubscription = proto3.makeMessageType(
246
+ "livekit.UpdateSubscription",
247
+ () => [
248
+ { no: 1, name: "track_sids", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
249
+ { no: 2, name: "subscribe", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
250
+ { no: 3, name: "participant_tracks", kind: "message", T: ParticipantTracks, repeated: true },
251
+ ],
252
+ );
253
+
254
+ /**
255
+ * @generated from message livekit.UpdateTrackSettings
256
+ */
257
+ export const UpdateTrackSettings = proto3.makeMessageType(
258
+ "livekit.UpdateTrackSettings",
259
+ () => [
260
+ { no: 1, name: "track_sids", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
261
+ { no: 3, name: "disabled", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
262
+ { no: 4, name: "quality", kind: "enum", T: proto3.getEnumType(VideoQuality) },
263
+ { no: 5, name: "width", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
264
+ { no: 6, name: "height", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
265
+ { no: 7, name: "fps", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
266
+ { no: 8, name: "priority", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
267
+ ],
268
+ );
269
+
270
+ /**
271
+ * @generated from message livekit.LeaveRequest
272
+ */
273
+ export const LeaveRequest = proto3.makeMessageType(
274
+ "livekit.LeaveRequest",
275
+ () => [
276
+ { no: 1, name: "can_reconnect", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
277
+ { no: 2, name: "reason", kind: "enum", T: proto3.getEnumType(DisconnectReason) },
278
+ { no: 3, name: "action", kind: "enum", T: proto3.getEnumType(LeaveRequest_Action) },
279
+ { no: 4, name: "regions", kind: "message", T: RegionSettings },
280
+ ],
281
+ );
282
+
283
+ /**
284
+ * indicates action clients should take on receiving this message
285
+ *
286
+ * @generated from enum livekit.LeaveRequest.Action
287
+ */
288
+ export const LeaveRequest_Action = proto3.makeEnum(
289
+ "livekit.LeaveRequest.Action",
290
+ [
291
+ {no: 0, name: "DISCONNECT"},
292
+ {no: 1, name: "RESUME"},
293
+ {no: 2, name: "RECONNECT"},
294
+ ],
295
+ );
296
+
297
+ /**
298
+ * message to indicate published video track dimensions are changing
299
+ *
300
+ * @generated from message livekit.UpdateVideoLayers
301
+ */
302
+ export const UpdateVideoLayers = proto3.makeMessageType(
303
+ "livekit.UpdateVideoLayers",
304
+ () => [
305
+ { no: 1, name: "track_sid", kind: "scalar", T: 9 /* ScalarType.STRING */ },
306
+ { no: 2, name: "layers", kind: "message", T: VideoLayer, repeated: true },
307
+ ],
308
+ );
309
+
310
+ /**
311
+ * @generated from message livekit.UpdateParticipantMetadata
312
+ */
313
+ export const UpdateParticipantMetadata = proto3.makeMessageType(
314
+ "livekit.UpdateParticipantMetadata",
315
+ () => [
316
+ { no: 1, name: "metadata", kind: "scalar", T: 9 /* ScalarType.STRING */ },
317
+ { no: 2, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
318
+ ],
319
+ );
320
+
321
+ /**
322
+ * @generated from message livekit.ICEServer
323
+ */
324
+ export const ICEServer = proto3.makeMessageType(
325
+ "livekit.ICEServer",
326
+ () => [
327
+ { no: 1, name: "urls", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
328
+ { no: 2, name: "username", kind: "scalar", T: 9 /* ScalarType.STRING */ },
329
+ { no: 3, name: "credential", kind: "scalar", T: 9 /* ScalarType.STRING */ },
330
+ ],
331
+ );
332
+
333
+ /**
334
+ * @generated from message livekit.SpeakersChanged
335
+ */
336
+ export const SpeakersChanged = proto3.makeMessageType(
337
+ "livekit.SpeakersChanged",
338
+ () => [
339
+ { no: 1, name: "speakers", kind: "message", T: SpeakerInfo, repeated: true },
340
+ ],
341
+ );
342
+
343
+ /**
344
+ * @generated from message livekit.RoomUpdate
345
+ */
346
+ export const RoomUpdate = proto3.makeMessageType(
347
+ "livekit.RoomUpdate",
348
+ () => [
349
+ { no: 1, name: "room", kind: "message", T: Room },
350
+ ],
351
+ );
352
+
353
+ /**
354
+ * @generated from message livekit.ConnectionQualityInfo
355
+ */
356
+ export const ConnectionQualityInfo = proto3.makeMessageType(
357
+ "livekit.ConnectionQualityInfo",
358
+ () => [
359
+ { no: 1, name: "participant_sid", kind: "scalar", T: 9 /* ScalarType.STRING */ },
360
+ { no: 2, name: "quality", kind: "enum", T: proto3.getEnumType(ConnectionQuality) },
361
+ { no: 3, name: "score", kind: "scalar", T: 2 /* ScalarType.FLOAT */ },
362
+ ],
363
+ );
364
+
365
+ /**
366
+ * @generated from message livekit.ConnectionQualityUpdate
367
+ */
368
+ export const ConnectionQualityUpdate = proto3.makeMessageType(
369
+ "livekit.ConnectionQualityUpdate",
370
+ () => [
371
+ { no: 1, name: "updates", kind: "message", T: ConnectionQualityInfo, repeated: true },
372
+ ],
373
+ );
374
+
375
+ /**
376
+ * @generated from message livekit.StreamStateInfo
377
+ */
378
+ export const StreamStateInfo = proto3.makeMessageType(
379
+ "livekit.StreamStateInfo",
380
+ () => [
381
+ { no: 1, name: "participant_sid", kind: "scalar", T: 9 /* ScalarType.STRING */ },
382
+ { no: 2, name: "track_sid", kind: "scalar", T: 9 /* ScalarType.STRING */ },
383
+ { no: 3, name: "state", kind: "enum", T: proto3.getEnumType(StreamState) },
384
+ ],
385
+ );
386
+
387
+ /**
388
+ * @generated from message livekit.StreamStateUpdate
389
+ */
390
+ export const StreamStateUpdate = proto3.makeMessageType(
391
+ "livekit.StreamStateUpdate",
392
+ () => [
393
+ { no: 1, name: "stream_states", kind: "message", T: StreamStateInfo, repeated: true },
394
+ ],
395
+ );
396
+
397
+ /**
398
+ * @generated from message livekit.SubscribedQuality
399
+ */
400
+ export const SubscribedQuality = proto3.makeMessageType(
401
+ "livekit.SubscribedQuality",
402
+ () => [
403
+ { no: 1, name: "quality", kind: "enum", T: proto3.getEnumType(VideoQuality) },
404
+ { no: 2, name: "enabled", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
405
+ ],
406
+ );
407
+
408
+ /**
409
+ * @generated from message livekit.SubscribedCodec
410
+ */
411
+ export const SubscribedCodec = proto3.makeMessageType(
412
+ "livekit.SubscribedCodec",
413
+ () => [
414
+ { no: 1, name: "codec", kind: "scalar", T: 9 /* ScalarType.STRING */ },
415
+ { no: 2, name: "qualities", kind: "message", T: SubscribedQuality, repeated: true },
416
+ ],
417
+ );
418
+
419
+ /**
420
+ * @generated from message livekit.SubscribedQualityUpdate
421
+ */
422
+ export const SubscribedQualityUpdate = proto3.makeMessageType(
423
+ "livekit.SubscribedQualityUpdate",
424
+ () => [
425
+ { no: 1, name: "track_sid", kind: "scalar", T: 9 /* ScalarType.STRING */ },
426
+ { no: 2, name: "subscribed_qualities", kind: "message", T: SubscribedQuality, repeated: true },
427
+ { no: 3, name: "subscribed_codecs", kind: "message", T: SubscribedCodec, repeated: true },
428
+ ],
429
+ );
430
+
431
+ /**
432
+ * @generated from message livekit.TrackPermission
433
+ */
434
+ export const TrackPermission = proto3.makeMessageType(
435
+ "livekit.TrackPermission",
436
+ () => [
437
+ { no: 1, name: "participant_sid", kind: "scalar", T: 9 /* ScalarType.STRING */ },
438
+ { no: 2, name: "all_tracks", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
439
+ { no: 3, name: "track_sids", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
440
+ { no: 4, name: "participant_identity", kind: "scalar", T: 9 /* ScalarType.STRING */ },
441
+ ],
442
+ );
443
+
444
+ /**
445
+ * @generated from message livekit.SubscriptionPermission
446
+ */
447
+ export const SubscriptionPermission = proto3.makeMessageType(
448
+ "livekit.SubscriptionPermission",
449
+ () => [
450
+ { no: 1, name: "all_participants", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
451
+ { no: 2, name: "track_permissions", kind: "message", T: TrackPermission, repeated: true },
452
+ ],
453
+ );
454
+
455
+ /**
456
+ * @generated from message livekit.SubscriptionPermissionUpdate
457
+ */
458
+ export const SubscriptionPermissionUpdate = proto3.makeMessageType(
459
+ "livekit.SubscriptionPermissionUpdate",
460
+ () => [
461
+ { no: 1, name: "participant_sid", kind: "scalar", T: 9 /* ScalarType.STRING */ },
462
+ { no: 2, name: "track_sid", kind: "scalar", T: 9 /* ScalarType.STRING */ },
463
+ { no: 3, name: "allowed", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
464
+ ],
465
+ );
466
+
467
+ /**
468
+ * @generated from message livekit.SyncState
469
+ */
470
+ export const SyncState = proto3.makeMessageType(
471
+ "livekit.SyncState",
472
+ () => [
473
+ { no: 1, name: "answer", kind: "message", T: SessionDescription },
474
+ { no: 2, name: "subscription", kind: "message", T: UpdateSubscription },
475
+ { no: 3, name: "publish_tracks", kind: "message", T: TrackPublishedResponse, repeated: true },
476
+ { no: 4, name: "data_channels", kind: "message", T: DataChannelInfo, repeated: true },
477
+ { no: 5, name: "offer", kind: "message", T: SessionDescription },
478
+ { no: 6, name: "track_sids_disabled", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
479
+ ],
480
+ );
481
+
482
+ /**
483
+ * @generated from message livekit.DataChannelInfo
484
+ */
485
+ export const DataChannelInfo = proto3.makeMessageType(
486
+ "livekit.DataChannelInfo",
487
+ () => [
488
+ { no: 1, name: "label", kind: "scalar", T: 9 /* ScalarType.STRING */ },
489
+ { no: 2, name: "id", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
490
+ { no: 3, name: "target", kind: "enum", T: proto3.getEnumType(SignalTarget) },
491
+ ],
492
+ );
493
+
494
+ /**
495
+ * @generated from message livekit.SimulateScenario
496
+ */
497
+ export const SimulateScenario = proto3.makeMessageType(
498
+ "livekit.SimulateScenario",
499
+ () => [
500
+ { no: 1, name: "speaker_update", kind: "scalar", T: 5 /* ScalarType.INT32 */, oneof: "scenario" },
501
+ { no: 2, name: "node_failure", kind: "scalar", T: 8 /* ScalarType.BOOL */, oneof: "scenario" },
502
+ { no: 3, name: "migration", kind: "scalar", T: 8 /* ScalarType.BOOL */, oneof: "scenario" },
503
+ { no: 4, name: "server_leave", kind: "scalar", T: 8 /* ScalarType.BOOL */, oneof: "scenario" },
504
+ { no: 5, name: "switch_candidate_protocol", kind: "enum", T: proto3.getEnumType(CandidateProtocol), oneof: "scenario" },
505
+ { no: 6, name: "subscriber_bandwidth", kind: "scalar", T: 3 /* ScalarType.INT64 */, oneof: "scenario" },
506
+ { no: 7, name: "disconnect_signal_on_resume", kind: "scalar", T: 8 /* ScalarType.BOOL */, oneof: "scenario" },
507
+ { no: 8, name: "disconnect_signal_on_resume_no_messages", kind: "scalar", T: 8 /* ScalarType.BOOL */, oneof: "scenario" },
508
+ ],
509
+ );
510
+
511
+ /**
512
+ * @generated from message livekit.Ping
513
+ */
514
+ export const Ping = proto3.makeMessageType(
515
+ "livekit.Ping",
516
+ () => [
517
+ { no: 1, name: "timestamp", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
518
+ { no: 2, name: "rtt", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
519
+ ],
520
+ );
521
+
522
+ /**
523
+ * @generated from message livekit.Pong
524
+ */
525
+ export const Pong = proto3.makeMessageType(
526
+ "livekit.Pong",
527
+ () => [
528
+ { no: 1, name: "last_ping_timestamp", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
529
+ { no: 2, name: "timestamp", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
530
+ ],
531
+ );
532
+
533
+ /**
534
+ * @generated from message livekit.RegionSettings
535
+ */
536
+ export const RegionSettings = proto3.makeMessageType(
537
+ "livekit.RegionSettings",
538
+ () => [
539
+ { no: 1, name: "regions", kind: "message", T: RegionInfo, repeated: true },
540
+ ],
541
+ );
542
+
543
+ /**
544
+ * @generated from message livekit.RegionInfo
545
+ */
546
+ export const RegionInfo = proto3.makeMessageType(
547
+ "livekit.RegionInfo",
548
+ () => [
549
+ { no: 1, name: "region", kind: "scalar", T: 9 /* ScalarType.STRING */ },
550
+ { no: 2, name: "url", kind: "scalar", T: 9 /* ScalarType.STRING */ },
551
+ { no: 3, name: "distance", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
552
+ ],
553
+ );
554
+
555
+ /**
556
+ * @generated from message livekit.SubscriptionResponse
557
+ */
558
+ export const SubscriptionResponse = proto3.makeMessageType(
559
+ "livekit.SubscriptionResponse",
560
+ () => [
561
+ { no: 1, name: "track_sid", kind: "scalar", T: 9 /* ScalarType.STRING */ },
562
+ { no: 2, name: "err", kind: "enum", T: proto3.getEnumType(SubscriptionError) },
563
+ ],
564
+ );
565
+