@cc-livekit/protocol 1.39.3

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 (40) hide show
  1. package/dist/index.cjs +7285 -0
  2. package/dist/index.cjs.map +1 -0
  3. package/dist/index.d.cts +13646 -0
  4. package/dist/index.d.mts +13646 -0
  5. package/dist/index.d.ts +13646 -0
  6. package/dist/index.mjs +7009 -0
  7. package/dist/index.mjs.map +1 -0
  8. package/package.json +42 -0
  9. package/src/gen/livekit_agent_dispatch_pb.d.ts +253 -0
  10. package/src/gen/livekit_agent_dispatch_pb.js +103 -0
  11. package/src/gen/livekit_agent_pb.d.ts +758 -0
  12. package/src/gen/livekit_agent_pb.js +269 -0
  13. package/src/gen/livekit_analytics_pb.d.ts +1379 -0
  14. package/src/gen/livekit_analytics_pb.js +397 -0
  15. package/src/gen/livekit_cloud_agent_pb.d.ts +919 -0
  16. package/src/gen/livekit_cloud_agent_pb.js +327 -0
  17. package/src/gen/livekit_egress_pb.d.ts +2151 -0
  18. package/src/gen/livekit_egress_pb.js +625 -0
  19. package/src/gen/livekit_ingress_pb.d.ts +864 -0
  20. package/src/gen/livekit_ingress_pb.js +272 -0
  21. package/src/gen/livekit_internal_pb.d.ts +786 -0
  22. package/src/gen/livekit_internal_pb.js +227 -0
  23. package/src/gen/livekit_metrics_pb.d.ts +376 -0
  24. package/src/gen/livekit_metrics_pb.js +97 -0
  25. package/src/gen/livekit_models_pb.d.ts +3083 -0
  26. package/src/gen/livekit_models_pb.js +998 -0
  27. package/src/gen/livekit_room_pb.d.ts +899 -0
  28. package/src/gen/livekit_room_pb.js +300 -0
  29. package/src/gen/livekit_rtc_pb.d.ts +2134 -0
  30. package/src/gen/livekit_rtc_pb.js +668 -0
  31. package/src/gen/livekit_sip_pb.d.ts +2619 -0
  32. package/src/gen/livekit_sip_pb.js +771 -0
  33. package/src/gen/livekit_temptalk_pb.d.ts +473 -0
  34. package/src/gen/livekit_temptalk_pb.js +167 -0
  35. package/src/gen/livekit_webhook_pb.d.ts +106 -0
  36. package/src/gen/livekit_webhook_pb.js +42 -0
  37. package/src/gen/version.d.ts +1 -0
  38. package/src/gen/version.js +2 -0
  39. package/src/index.d.ts +12 -0
  40. package/src/index.js +13 -0
@@ -0,0 +1,899 @@
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.1 with parameter "target=dts+js"
16
+ // @generated from file livekit_room.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 { RoomAgentDispatch } from "./livekit_agent_dispatch_pb.js";
23
+ import type { AutoParticipantEgress, AutoTrackEgress, RoomCompositeEgressRequest } from "./livekit_egress_pb.js";
24
+ import type { DataPacket_Kind, ParticipantInfo, ParticipantPermission, ParticipantTracks, Room, TrackInfo } from "./livekit_models_pb.js";
25
+
26
+ /**
27
+ * @generated from message livekit.CreateRoomRequest
28
+ */
29
+ export declare class CreateRoomRequest extends Message<CreateRoomRequest> {
30
+ /**
31
+ * name of the room
32
+ *
33
+ * @generated from field: string name = 1;
34
+ */
35
+ name: string;
36
+
37
+ /**
38
+ * configuration to use for this room parameters. Setting parameters below override the config defaults.
39
+ *
40
+ * @generated from field: string room_preset = 12;
41
+ */
42
+ roomPreset: string;
43
+
44
+ /**
45
+ * number of seconds to keep the room open if no one joins
46
+ *
47
+ * @generated from field: uint32 empty_timeout = 2;
48
+ */
49
+ emptyTimeout: number;
50
+
51
+ /**
52
+ * number of seconds to keep the room open after everyone leaves
53
+ *
54
+ * @generated from field: uint32 departure_timeout = 10;
55
+ */
56
+ departureTimeout: number;
57
+
58
+ /**
59
+ * limit number of participants that can be in a room
60
+ *
61
+ * @generated from field: uint32 max_participants = 3;
62
+ */
63
+ maxParticipants: number;
64
+
65
+ /**
66
+ * override the node room is allocated to, for debugging
67
+ *
68
+ * @generated from field: string node_id = 4;
69
+ */
70
+ nodeId: string;
71
+
72
+ /**
73
+ * metadata of room
74
+ *
75
+ * @generated from field: string metadata = 5;
76
+ */
77
+ metadata: string;
78
+
79
+ /**
80
+ * auto-egress configurations
81
+ *
82
+ * @generated from field: livekit.RoomEgress egress = 6;
83
+ */
84
+ egress?: RoomEgress;
85
+
86
+ /**
87
+ * playout delay of subscriber
88
+ *
89
+ * @generated from field: uint32 min_playout_delay = 7;
90
+ */
91
+ minPlayoutDelay: number;
92
+
93
+ /**
94
+ * @generated from field: uint32 max_playout_delay = 8;
95
+ */
96
+ maxPlayoutDelay: number;
97
+
98
+ /**
99
+ * improves A/V sync when playout_delay set to a value larger than 200ms. It will disables transceiver re-use
100
+ * so not recommended for rooms with frequent subscription changes
101
+ *
102
+ * @generated from field: bool sync_streams = 9;
103
+ */
104
+ syncStreams: boolean;
105
+
106
+ /**
107
+ * replay
108
+ *
109
+ * @generated from field: bool replay_enabled = 13;
110
+ */
111
+ replayEnabled: boolean;
112
+
113
+ /**
114
+ * Define agents that should be dispatched to this room
115
+ *
116
+ * NEXT-ID: 15
117
+ *
118
+ * @generated from field: repeated livekit.RoomAgentDispatch agents = 14;
119
+ */
120
+ agents: RoomAgentDispatch[];
121
+
122
+ constructor(data?: PartialMessage<CreateRoomRequest>);
123
+
124
+ static readonly runtime: typeof proto3;
125
+ static readonly typeName = "livekit.CreateRoomRequest";
126
+ static readonly fields: FieldList;
127
+
128
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): CreateRoomRequest;
129
+
130
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): CreateRoomRequest;
131
+
132
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): CreateRoomRequest;
133
+
134
+ static equals(a: CreateRoomRequest | PlainMessage<CreateRoomRequest> | undefined, b: CreateRoomRequest | PlainMessage<CreateRoomRequest> | undefined): boolean;
135
+ }
136
+
137
+ /**
138
+ * @generated from message livekit.RoomEgress
139
+ */
140
+ export declare class RoomEgress extends Message<RoomEgress> {
141
+ /**
142
+ * @generated from field: livekit.RoomCompositeEgressRequest room = 1;
143
+ */
144
+ room?: RoomCompositeEgressRequest;
145
+
146
+ /**
147
+ * @generated from field: livekit.AutoParticipantEgress participant = 3;
148
+ */
149
+ participant?: AutoParticipantEgress;
150
+
151
+ /**
152
+ * @generated from field: livekit.AutoTrackEgress tracks = 2;
153
+ */
154
+ tracks?: AutoTrackEgress;
155
+
156
+ constructor(data?: PartialMessage<RoomEgress>);
157
+
158
+ static readonly runtime: typeof proto3;
159
+ static readonly typeName = "livekit.RoomEgress";
160
+ static readonly fields: FieldList;
161
+
162
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): RoomEgress;
163
+
164
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): RoomEgress;
165
+
166
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): RoomEgress;
167
+
168
+ static equals(a: RoomEgress | PlainMessage<RoomEgress> | undefined, b: RoomEgress | PlainMessage<RoomEgress> | undefined): boolean;
169
+ }
170
+
171
+ /**
172
+ * @generated from message livekit.RoomAgent
173
+ */
174
+ export declare class RoomAgent extends Message<RoomAgent> {
175
+ /**
176
+ * @generated from field: repeated livekit.RoomAgentDispatch dispatches = 1;
177
+ */
178
+ dispatches: RoomAgentDispatch[];
179
+
180
+ constructor(data?: PartialMessage<RoomAgent>);
181
+
182
+ static readonly runtime: typeof proto3;
183
+ static readonly typeName = "livekit.RoomAgent";
184
+ static readonly fields: FieldList;
185
+
186
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): RoomAgent;
187
+
188
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): RoomAgent;
189
+
190
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): RoomAgent;
191
+
192
+ static equals(a: RoomAgent | PlainMessage<RoomAgent> | undefined, b: RoomAgent | PlainMessage<RoomAgent> | undefined): boolean;
193
+ }
194
+
195
+ /**
196
+ * @generated from message livekit.ListRoomsRequest
197
+ */
198
+ export declare class ListRoomsRequest extends Message<ListRoomsRequest> {
199
+ /**
200
+ * when set, will only return rooms with name match
201
+ *
202
+ * @generated from field: repeated string names = 1;
203
+ */
204
+ names: string[];
205
+
206
+ constructor(data?: PartialMessage<ListRoomsRequest>);
207
+
208
+ static readonly runtime: typeof proto3;
209
+ static readonly typeName = "livekit.ListRoomsRequest";
210
+ static readonly fields: FieldList;
211
+
212
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ListRoomsRequest;
213
+
214
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ListRoomsRequest;
215
+
216
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ListRoomsRequest;
217
+
218
+ static equals(a: ListRoomsRequest | PlainMessage<ListRoomsRequest> | undefined, b: ListRoomsRequest | PlainMessage<ListRoomsRequest> | undefined): boolean;
219
+ }
220
+
221
+ /**
222
+ * @generated from message livekit.ListRoomsResponse
223
+ */
224
+ export declare class ListRoomsResponse extends Message<ListRoomsResponse> {
225
+ /**
226
+ * @generated from field: repeated livekit.Room rooms = 1;
227
+ */
228
+ rooms: Room[];
229
+
230
+ constructor(data?: PartialMessage<ListRoomsResponse>);
231
+
232
+ static readonly runtime: typeof proto3;
233
+ static readonly typeName = "livekit.ListRoomsResponse";
234
+ static readonly fields: FieldList;
235
+
236
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ListRoomsResponse;
237
+
238
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ListRoomsResponse;
239
+
240
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ListRoomsResponse;
241
+
242
+ static equals(a: ListRoomsResponse | PlainMessage<ListRoomsResponse> | undefined, b: ListRoomsResponse | PlainMessage<ListRoomsResponse> | undefined): boolean;
243
+ }
244
+
245
+ /**
246
+ * @generated from message livekit.DeleteRoomRequest
247
+ */
248
+ export declare class DeleteRoomRequest extends Message<DeleteRoomRequest> {
249
+ /**
250
+ * name of the room
251
+ *
252
+ * @generated from field: string room = 1;
253
+ */
254
+ room: string;
255
+
256
+ constructor(data?: PartialMessage<DeleteRoomRequest>);
257
+
258
+ static readonly runtime: typeof proto3;
259
+ static readonly typeName = "livekit.DeleteRoomRequest";
260
+ static readonly fields: FieldList;
261
+
262
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): DeleteRoomRequest;
263
+
264
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): DeleteRoomRequest;
265
+
266
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): DeleteRoomRequest;
267
+
268
+ static equals(a: DeleteRoomRequest | PlainMessage<DeleteRoomRequest> | undefined, b: DeleteRoomRequest | PlainMessage<DeleteRoomRequest> | undefined): boolean;
269
+ }
270
+
271
+ /**
272
+ * @generated from message livekit.DeleteRoomResponse
273
+ */
274
+ export declare class DeleteRoomResponse extends Message<DeleteRoomResponse> {
275
+ constructor(data?: PartialMessage<DeleteRoomResponse>);
276
+
277
+ static readonly runtime: typeof proto3;
278
+ static readonly typeName = "livekit.DeleteRoomResponse";
279
+ static readonly fields: FieldList;
280
+
281
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): DeleteRoomResponse;
282
+
283
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): DeleteRoomResponse;
284
+
285
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): DeleteRoomResponse;
286
+
287
+ static equals(a: DeleteRoomResponse | PlainMessage<DeleteRoomResponse> | undefined, b: DeleteRoomResponse | PlainMessage<DeleteRoomResponse> | undefined): boolean;
288
+ }
289
+
290
+ /**
291
+ * @generated from message livekit.ListParticipantsRequest
292
+ */
293
+ export declare class ListParticipantsRequest extends Message<ListParticipantsRequest> {
294
+ /**
295
+ * name of the room
296
+ *
297
+ * @generated from field: string room = 1;
298
+ */
299
+ room: string;
300
+
301
+ constructor(data?: PartialMessage<ListParticipantsRequest>);
302
+
303
+ static readonly runtime: typeof proto3;
304
+ static readonly typeName = "livekit.ListParticipantsRequest";
305
+ static readonly fields: FieldList;
306
+
307
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ListParticipantsRequest;
308
+
309
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ListParticipantsRequest;
310
+
311
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ListParticipantsRequest;
312
+
313
+ static equals(a: ListParticipantsRequest | PlainMessage<ListParticipantsRequest> | undefined, b: ListParticipantsRequest | PlainMessage<ListParticipantsRequest> | undefined): boolean;
314
+ }
315
+
316
+ /**
317
+ * @generated from message livekit.ListParticipantsResponse
318
+ */
319
+ export declare class ListParticipantsResponse extends Message<ListParticipantsResponse> {
320
+ /**
321
+ * @generated from field: repeated livekit.ParticipantInfo participants = 1;
322
+ */
323
+ participants: ParticipantInfo[];
324
+
325
+ constructor(data?: PartialMessage<ListParticipantsResponse>);
326
+
327
+ static readonly runtime: typeof proto3;
328
+ static readonly typeName = "livekit.ListParticipantsResponse";
329
+ static readonly fields: FieldList;
330
+
331
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ListParticipantsResponse;
332
+
333
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ListParticipantsResponse;
334
+
335
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ListParticipantsResponse;
336
+
337
+ static equals(a: ListParticipantsResponse | PlainMessage<ListParticipantsResponse> | undefined, b: ListParticipantsResponse | PlainMessage<ListParticipantsResponse> | undefined): boolean;
338
+ }
339
+
340
+ /**
341
+ * @generated from message livekit.RoomParticipantIdentity
342
+ */
343
+ export declare class RoomParticipantIdentity extends Message<RoomParticipantIdentity> {
344
+ /**
345
+ * name of the room
346
+ *
347
+ * @generated from field: string room = 1;
348
+ */
349
+ room: string;
350
+
351
+ /**
352
+ * identity of the participant
353
+ *
354
+ * @generated from field: string identity = 2;
355
+ */
356
+ identity: string;
357
+
358
+ constructor(data?: PartialMessage<RoomParticipantIdentity>);
359
+
360
+ static readonly runtime: typeof proto3;
361
+ static readonly typeName = "livekit.RoomParticipantIdentity";
362
+ static readonly fields: FieldList;
363
+
364
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): RoomParticipantIdentity;
365
+
366
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): RoomParticipantIdentity;
367
+
368
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): RoomParticipantIdentity;
369
+
370
+ static equals(a: RoomParticipantIdentity | PlainMessage<RoomParticipantIdentity> | undefined, b: RoomParticipantIdentity | PlainMessage<RoomParticipantIdentity> | undefined): boolean;
371
+ }
372
+
373
+ /**
374
+ * @generated from message livekit.RemoveParticipantResponse
375
+ */
376
+ export declare class RemoveParticipantResponse extends Message<RemoveParticipantResponse> {
377
+ constructor(data?: PartialMessage<RemoveParticipantResponse>);
378
+
379
+ static readonly runtime: typeof proto3;
380
+ static readonly typeName = "livekit.RemoveParticipantResponse";
381
+ static readonly fields: FieldList;
382
+
383
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): RemoveParticipantResponse;
384
+
385
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): RemoveParticipantResponse;
386
+
387
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): RemoveParticipantResponse;
388
+
389
+ static equals(a: RemoveParticipantResponse | PlainMessage<RemoveParticipantResponse> | undefined, b: RemoveParticipantResponse | PlainMessage<RemoveParticipantResponse> | undefined): boolean;
390
+ }
391
+
392
+ /**
393
+ * @generated from message livekit.MuteRoomTrackRequest
394
+ */
395
+ export declare class MuteRoomTrackRequest extends Message<MuteRoomTrackRequest> {
396
+ /**
397
+ * name of the room
398
+ *
399
+ * @generated from field: string room = 1;
400
+ */
401
+ room: string;
402
+
403
+ /**
404
+ * @generated from field: string identity = 2;
405
+ */
406
+ identity: string;
407
+
408
+ /**
409
+ * sid of the track to mute
410
+ *
411
+ * @generated from field: string track_sid = 3;
412
+ */
413
+ trackSid: string;
414
+
415
+ /**
416
+ * set to true to mute, false to unmute
417
+ *
418
+ * @generated from field: bool muted = 4;
419
+ */
420
+ muted: boolean;
421
+
422
+ constructor(data?: PartialMessage<MuteRoomTrackRequest>);
423
+
424
+ static readonly runtime: typeof proto3;
425
+ static readonly typeName = "livekit.MuteRoomTrackRequest";
426
+ static readonly fields: FieldList;
427
+
428
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): MuteRoomTrackRequest;
429
+
430
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): MuteRoomTrackRequest;
431
+
432
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): MuteRoomTrackRequest;
433
+
434
+ static equals(a: MuteRoomTrackRequest | PlainMessage<MuteRoomTrackRequest> | undefined, b: MuteRoomTrackRequest | PlainMessage<MuteRoomTrackRequest> | undefined): boolean;
435
+ }
436
+
437
+ /**
438
+ * @generated from message livekit.MuteRoomTrackResponse
439
+ */
440
+ export declare class MuteRoomTrackResponse extends Message<MuteRoomTrackResponse> {
441
+ /**
442
+ * @generated from field: livekit.TrackInfo track = 1;
443
+ */
444
+ track?: TrackInfo;
445
+
446
+ constructor(data?: PartialMessage<MuteRoomTrackResponse>);
447
+
448
+ static readonly runtime: typeof proto3;
449
+ static readonly typeName = "livekit.MuteRoomTrackResponse";
450
+ static readonly fields: FieldList;
451
+
452
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): MuteRoomTrackResponse;
453
+
454
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): MuteRoomTrackResponse;
455
+
456
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): MuteRoomTrackResponse;
457
+
458
+ static equals(a: MuteRoomTrackResponse | PlainMessage<MuteRoomTrackResponse> | undefined, b: MuteRoomTrackResponse | PlainMessage<MuteRoomTrackResponse> | undefined): boolean;
459
+ }
460
+
461
+ /**
462
+ * @generated from message livekit.UpdateParticipantRequest
463
+ */
464
+ export declare class UpdateParticipantRequest extends Message<UpdateParticipantRequest> {
465
+ /**
466
+ * @generated from field: string room = 1;
467
+ */
468
+ room: string;
469
+
470
+ /**
471
+ * @generated from field: string identity = 2;
472
+ */
473
+ identity: string;
474
+
475
+ /**
476
+ * metadata to update. skipping updates if left empty
477
+ *
478
+ * @generated from field: string metadata = 3;
479
+ */
480
+ metadata: string;
481
+
482
+ /**
483
+ * set to update the participant's permissions
484
+ *
485
+ * @generated from field: livekit.ParticipantPermission permission = 4;
486
+ */
487
+ permission?: ParticipantPermission;
488
+
489
+ /**
490
+ * display name to update
491
+ *
492
+ * @generated from field: string name = 5;
493
+ */
494
+ name: string;
495
+
496
+ /**
497
+ * attributes to update. it only updates attributes that have been set
498
+ * to delete attributes, set the value to an empty string
499
+ *
500
+ * @generated from field: map<string, string> attributes = 6;
501
+ */
502
+ attributes: { [key: string]: string };
503
+
504
+ constructor(data?: PartialMessage<UpdateParticipantRequest>);
505
+
506
+ static readonly runtime: typeof proto3;
507
+ static readonly typeName = "livekit.UpdateParticipantRequest";
508
+ static readonly fields: FieldList;
509
+
510
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): UpdateParticipantRequest;
511
+
512
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): UpdateParticipantRequest;
513
+
514
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): UpdateParticipantRequest;
515
+
516
+ static equals(a: UpdateParticipantRequest | PlainMessage<UpdateParticipantRequest> | undefined, b: UpdateParticipantRequest | PlainMessage<UpdateParticipantRequest> | undefined): boolean;
517
+ }
518
+
519
+ /**
520
+ * @generated from message livekit.UpdateSubscriptionsRequest
521
+ */
522
+ export declare class UpdateSubscriptionsRequest extends Message<UpdateSubscriptionsRequest> {
523
+ /**
524
+ * @generated from field: string room = 1;
525
+ */
526
+ room: string;
527
+
528
+ /**
529
+ * @generated from field: string identity = 2;
530
+ */
531
+ identity: string;
532
+
533
+ /**
534
+ * list of sids of tracks
535
+ *
536
+ * @generated from field: repeated string track_sids = 3;
537
+ */
538
+ trackSids: string[];
539
+
540
+ /**
541
+ * set to true to subscribe, false to unsubscribe from tracks
542
+ *
543
+ * @generated from field: bool subscribe = 4;
544
+ */
545
+ subscribe: boolean;
546
+
547
+ /**
548
+ * list of participants and their tracks
549
+ *
550
+ * @generated from field: repeated livekit.ParticipantTracks participant_tracks = 5;
551
+ */
552
+ participantTracks: ParticipantTracks[];
553
+
554
+ constructor(data?: PartialMessage<UpdateSubscriptionsRequest>);
555
+
556
+ static readonly runtime: typeof proto3;
557
+ static readonly typeName = "livekit.UpdateSubscriptionsRequest";
558
+ static readonly fields: FieldList;
559
+
560
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): UpdateSubscriptionsRequest;
561
+
562
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): UpdateSubscriptionsRequest;
563
+
564
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): UpdateSubscriptionsRequest;
565
+
566
+ static equals(a: UpdateSubscriptionsRequest | PlainMessage<UpdateSubscriptionsRequest> | undefined, b: UpdateSubscriptionsRequest | PlainMessage<UpdateSubscriptionsRequest> | undefined): boolean;
567
+ }
568
+
569
+ /**
570
+ * empty for now
571
+ *
572
+ * @generated from message livekit.UpdateSubscriptionsResponse
573
+ */
574
+ export declare class UpdateSubscriptionsResponse extends Message<UpdateSubscriptionsResponse> {
575
+ constructor(data?: PartialMessage<UpdateSubscriptionsResponse>);
576
+
577
+ static readonly runtime: typeof proto3;
578
+ static readonly typeName = "livekit.UpdateSubscriptionsResponse";
579
+ static readonly fields: FieldList;
580
+
581
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): UpdateSubscriptionsResponse;
582
+
583
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): UpdateSubscriptionsResponse;
584
+
585
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): UpdateSubscriptionsResponse;
586
+
587
+ static equals(a: UpdateSubscriptionsResponse | PlainMessage<UpdateSubscriptionsResponse> | undefined, b: UpdateSubscriptionsResponse | PlainMessage<UpdateSubscriptionsResponse> | undefined): boolean;
588
+ }
589
+
590
+ /**
591
+ * @generated from message livekit.SendDataRequest
592
+ */
593
+ export declare class SendDataRequest extends Message<SendDataRequest> {
594
+ /**
595
+ * @generated from field: string room = 1;
596
+ */
597
+ room: string;
598
+
599
+ /**
600
+ * @generated from field: bytes data = 2;
601
+ */
602
+ data: Uint8Array;
603
+
604
+ /**
605
+ * @generated from field: livekit.DataPacket.Kind kind = 3;
606
+ */
607
+ kind: DataPacket_Kind;
608
+
609
+ /**
610
+ * mark deprecated
611
+ *
612
+ * @generated from field: repeated string destination_sids = 4 [deprecated = true];
613
+ * @deprecated
614
+ */
615
+ destinationSids: string[];
616
+
617
+ /**
618
+ * when set, only forward to these identities
619
+ *
620
+ * @generated from field: repeated string destination_identities = 6;
621
+ */
622
+ destinationIdentities: string[];
623
+
624
+ /**
625
+ * @generated from field: optional string topic = 5;
626
+ */
627
+ topic?: string;
628
+
629
+ /**
630
+ * added by SDK to enable de-duping of messages, for INTERNAL USE ONLY
631
+ *
632
+ * @generated from field: bytes nonce = 7;
633
+ */
634
+ nonce: Uint8Array;
635
+
636
+ constructor(data?: PartialMessage<SendDataRequest>);
637
+
638
+ static readonly runtime: typeof proto3;
639
+ static readonly typeName = "livekit.SendDataRequest";
640
+ static readonly fields: FieldList;
641
+
642
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SendDataRequest;
643
+
644
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SendDataRequest;
645
+
646
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SendDataRequest;
647
+
648
+ static equals(a: SendDataRequest | PlainMessage<SendDataRequest> | undefined, b: SendDataRequest | PlainMessage<SendDataRequest> | undefined): boolean;
649
+ }
650
+
651
+ /**
652
+ * @generated from message livekit.SendDataResponse
653
+ */
654
+ export declare class SendDataResponse extends Message<SendDataResponse> {
655
+ constructor(data?: PartialMessage<SendDataResponse>);
656
+
657
+ static readonly runtime: typeof proto3;
658
+ static readonly typeName = "livekit.SendDataResponse";
659
+ static readonly fields: FieldList;
660
+
661
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SendDataResponse;
662
+
663
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SendDataResponse;
664
+
665
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SendDataResponse;
666
+
667
+ static equals(a: SendDataResponse | PlainMessage<SendDataResponse> | undefined, b: SendDataResponse | PlainMessage<SendDataResponse> | undefined): boolean;
668
+ }
669
+
670
+ /**
671
+ * @generated from message livekit.UpdateRoomMetadataRequest
672
+ */
673
+ export declare class UpdateRoomMetadataRequest extends Message<UpdateRoomMetadataRequest> {
674
+ /**
675
+ * @generated from field: string room = 1;
676
+ */
677
+ room: string;
678
+
679
+ /**
680
+ * metadata to update. skipping updates if left empty
681
+ *
682
+ * @generated from field: string metadata = 2;
683
+ */
684
+ metadata: string;
685
+
686
+ constructor(data?: PartialMessage<UpdateRoomMetadataRequest>);
687
+
688
+ static readonly runtime: typeof proto3;
689
+ static readonly typeName = "livekit.UpdateRoomMetadataRequest";
690
+ static readonly fields: FieldList;
691
+
692
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): UpdateRoomMetadataRequest;
693
+
694
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): UpdateRoomMetadataRequest;
695
+
696
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): UpdateRoomMetadataRequest;
697
+
698
+ static equals(a: UpdateRoomMetadataRequest | PlainMessage<UpdateRoomMetadataRequest> | undefined, b: UpdateRoomMetadataRequest | PlainMessage<UpdateRoomMetadataRequest> | undefined): boolean;
699
+ }
700
+
701
+ /**
702
+ * @generated from message livekit.RoomConfiguration
703
+ */
704
+ export declare class RoomConfiguration extends Message<RoomConfiguration> {
705
+ /**
706
+ * Used as ID, must be unique
707
+ *
708
+ * @generated from field: string name = 1;
709
+ */
710
+ name: string;
711
+
712
+ /**
713
+ * number of seconds to keep the room open if no one joins
714
+ *
715
+ * @generated from field: uint32 empty_timeout = 2;
716
+ */
717
+ emptyTimeout: number;
718
+
719
+ /**
720
+ * number of seconds to keep the room open after everyone leaves
721
+ *
722
+ * @generated from field: uint32 departure_timeout = 3;
723
+ */
724
+ departureTimeout: number;
725
+
726
+ /**
727
+ * limit number of participants that can be in a room, excluding Egress and Ingress participants
728
+ *
729
+ * @generated from field: uint32 max_participants = 4;
730
+ */
731
+ maxParticipants: number;
732
+
733
+ /**
734
+ * egress
735
+ *
736
+ * @generated from field: livekit.RoomEgress egress = 5;
737
+ */
738
+ egress?: RoomEgress;
739
+
740
+ /**
741
+ * playout delay of subscriber
742
+ *
743
+ * @generated from field: uint32 min_playout_delay = 7;
744
+ */
745
+ minPlayoutDelay: number;
746
+
747
+ /**
748
+ * @generated from field: uint32 max_playout_delay = 8;
749
+ */
750
+ maxPlayoutDelay: number;
751
+
752
+ /**
753
+ * improves A/V sync when playout_delay set to a value larger than 200ms. It will disables transceiver re-use
754
+ * so not recommended for rooms with frequent subscription changes
755
+ *
756
+ * @generated from field: bool sync_streams = 9;
757
+ */
758
+ syncStreams: boolean;
759
+
760
+ /**
761
+ * Define agents that should be dispatched to this room
762
+ *
763
+ * @generated from field: repeated livekit.RoomAgentDispatch agents = 10;
764
+ */
765
+ agents: RoomAgentDispatch[];
766
+
767
+ constructor(data?: PartialMessage<RoomConfiguration>);
768
+
769
+ static readonly runtime: typeof proto3;
770
+ static readonly typeName = "livekit.RoomConfiguration";
771
+ static readonly fields: FieldList;
772
+
773
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): RoomConfiguration;
774
+
775
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): RoomConfiguration;
776
+
777
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): RoomConfiguration;
778
+
779
+ static equals(a: RoomConfiguration | PlainMessage<RoomConfiguration> | undefined, b: RoomConfiguration | PlainMessage<RoomConfiguration> | undefined): boolean;
780
+ }
781
+
782
+ /**
783
+ * @generated from message livekit.ForwardParticipantRequest
784
+ */
785
+ export declare class ForwardParticipantRequest extends Message<ForwardParticipantRequest> {
786
+ /**
787
+ * room to forward participant from
788
+ *
789
+ * @generated from field: string room = 1;
790
+ */
791
+ room: string;
792
+
793
+ /**
794
+ * identity of the participant to forward
795
+ *
796
+ * @generated from field: string identity = 2;
797
+ */
798
+ identity: string;
799
+
800
+ /**
801
+ * room to forward participant to
802
+ *
803
+ * @generated from field: string destination_room = 3;
804
+ */
805
+ destinationRoom: string;
806
+
807
+ constructor(data?: PartialMessage<ForwardParticipantRequest>);
808
+
809
+ static readonly runtime: typeof proto3;
810
+ static readonly typeName = "livekit.ForwardParticipantRequest";
811
+ static readonly fields: FieldList;
812
+
813
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ForwardParticipantRequest;
814
+
815
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ForwardParticipantRequest;
816
+
817
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ForwardParticipantRequest;
818
+
819
+ static equals(a: ForwardParticipantRequest | PlainMessage<ForwardParticipantRequest> | undefined, b: ForwardParticipantRequest | PlainMessage<ForwardParticipantRequest> | undefined): boolean;
820
+ }
821
+
822
+ /**
823
+ * @generated from message livekit.ForwardParticipantResponse
824
+ */
825
+ export declare class ForwardParticipantResponse extends Message<ForwardParticipantResponse> {
826
+ constructor(data?: PartialMessage<ForwardParticipantResponse>);
827
+
828
+ static readonly runtime: typeof proto3;
829
+ static readonly typeName = "livekit.ForwardParticipantResponse";
830
+ static readonly fields: FieldList;
831
+
832
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ForwardParticipantResponse;
833
+
834
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ForwardParticipantResponse;
835
+
836
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ForwardParticipantResponse;
837
+
838
+ static equals(a: ForwardParticipantResponse | PlainMessage<ForwardParticipantResponse> | undefined, b: ForwardParticipantResponse | PlainMessage<ForwardParticipantResponse> | undefined): boolean;
839
+ }
840
+
841
+ /**
842
+ * @generated from message livekit.MoveParticipantRequest
843
+ */
844
+ export declare class MoveParticipantRequest extends Message<MoveParticipantRequest> {
845
+ /**
846
+ * room to move participant from
847
+ *
848
+ * @generated from field: string room = 1;
849
+ */
850
+ room: string;
851
+
852
+ /**
853
+ * identity of the participant to move to
854
+ *
855
+ * @generated from field: string identity = 2;
856
+ */
857
+ identity: string;
858
+
859
+ /**
860
+ * room to move participant to
861
+ *
862
+ * @generated from field: string destination_room = 3;
863
+ */
864
+ destinationRoom: string;
865
+
866
+ constructor(data?: PartialMessage<MoveParticipantRequest>);
867
+
868
+ static readonly runtime: typeof proto3;
869
+ static readonly typeName = "livekit.MoveParticipantRequest";
870
+ static readonly fields: FieldList;
871
+
872
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): MoveParticipantRequest;
873
+
874
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): MoveParticipantRequest;
875
+
876
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): MoveParticipantRequest;
877
+
878
+ static equals(a: MoveParticipantRequest | PlainMessage<MoveParticipantRequest> | undefined, b: MoveParticipantRequest | PlainMessage<MoveParticipantRequest> | undefined): boolean;
879
+ }
880
+
881
+ /**
882
+ * @generated from message livekit.MoveParticipantResponse
883
+ */
884
+ export declare class MoveParticipantResponse extends Message<MoveParticipantResponse> {
885
+ constructor(data?: PartialMessage<MoveParticipantResponse>);
886
+
887
+ static readonly runtime: typeof proto3;
888
+ static readonly typeName = "livekit.MoveParticipantResponse";
889
+ static readonly fields: FieldList;
890
+
891
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): MoveParticipantResponse;
892
+
893
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): MoveParticipantResponse;
894
+
895
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): MoveParticipantResponse;
896
+
897
+ static equals(a: MoveParticipantResponse | PlainMessage<MoveParticipantResponse> | undefined, b: MoveParticipantResponse | PlainMessage<MoveParticipantResponse> | undefined): boolean;
898
+ }
899
+