@livekit/rtc-node 0.0.1 → 0.0.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 (74) hide show
  1. package/dist/audio_frame.d.ts +13 -0
  2. package/dist/audio_frame.js +36 -0
  3. package/dist/audio_frame.js.map +1 -0
  4. package/dist/audio_source.d.ts +13 -0
  5. package/dist/audio_source.js +42 -0
  6. package/dist/audio_source.js.map +1 -0
  7. package/dist/audio_stream.d.ts +23 -0
  8. package/dist/audio_stream.js +54 -0
  9. package/dist/audio_stream.js.map +1 -0
  10. package/dist/e2ee.d.ts +43 -0
  11. package/dist/e2ee.js +232 -0
  12. package/dist/e2ee.js.map +1 -0
  13. package/dist/ffi_client.d.ts +22 -0
  14. package/dist/ffi_client.js +57 -0
  15. package/dist/ffi_client.js.map +1 -0
  16. package/dist/index.d.ts +15 -0
  17. package/dist/index.js +71 -0
  18. package/dist/index.js.map +1 -0
  19. package/dist/native.d.ts +5 -0
  20. package/dist/native.js +297 -0
  21. package/dist/native.js.map +1 -0
  22. package/dist/participant.d.ts +29 -0
  23. package/dist/participant.js +120 -0
  24. package/dist/participant.js.map +1 -0
  25. package/dist/proto/audio_frame_pb.d.ts +555 -0
  26. package/dist/proto/audio_frame_pb.js +861 -0
  27. package/dist/proto/audio_frame_pb.js.map +1 -0
  28. package/dist/proto/e2ee_pb.d.ts +651 -0
  29. package/dist/proto/e2ee_pb.js +906 -0
  30. package/dist/proto/e2ee_pb.js.map +1 -0
  31. package/dist/proto/ffi_pb.d.ts +671 -0
  32. package/dist/proto/ffi_pb.js +459 -0
  33. package/dist/proto/ffi_pb.js.map +1 -0
  34. package/dist/proto/handle_pb.d.ts +29 -0
  35. package/dist/proto/handle_pb.js +59 -0
  36. package/dist/proto/handle_pb.js.map +1 -0
  37. package/dist/proto/participant_pb.d.ts +53 -0
  38. package/dist/proto/participant_pb.js +93 -0
  39. package/dist/proto/participant_pb.js.map +1 -0
  40. package/dist/proto/room_pb.d.ts +1479 -0
  41. package/dist/proto/room_pb.js +2172 -0
  42. package/dist/proto/room_pb.js.map +1 -0
  43. package/dist/proto/stats_pb.d.ts +1712 -0
  44. package/dist/proto/stats_pb.js +2238 -0
  45. package/dist/proto/stats_pb.js.map +1 -0
  46. package/dist/proto/track_pb.d.ts +352 -0
  47. package/dist/proto/track_pb.js +550 -0
  48. package/dist/proto/track_pb.js.map +1 -0
  49. package/dist/proto/video_frame_pb.d.ts +854 -0
  50. package/dist/proto/video_frame_pb.js +1214 -0
  51. package/dist/proto/video_frame_pb.js.map +1 -0
  52. package/dist/room.d.ts +94 -0
  53. package/dist/room.js +285 -0
  54. package/dist/room.js.map +1 -0
  55. package/dist/track.d.ts +34 -0
  56. package/dist/track.js +72 -0
  57. package/dist/track.js.map +1 -0
  58. package/dist/track_publication.d.ts +30 -0
  59. package/dist/track_publication.js +66 -0
  60. package/dist/track_publication.js.map +1 -0
  61. package/dist/video_frame.d.ts +110 -0
  62. package/dist/video_frame.js +364 -0
  63. package/dist/video_frame.js.map +1 -0
  64. package/dist/video_source.d.ts +13 -0
  65. package/dist/video_source.js +44 -0
  66. package/dist/video_source.js.map +1 -0
  67. package/dist/video_stream.d.ts +23 -0
  68. package/dist/video_stream.js +56 -0
  69. package/dist/video_stream.js.map +1 -0
  70. package/package.json +18 -10
  71. package/src/native.js +25 -0
  72. package/.prettierrc +0 -7
  73. package/generate_proto.sh +0 -34
  74. package/tsconfig.json +0 -14
@@ -0,0 +1,1479 @@
1
+ import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf";
2
+ import { Message, proto3 } from "@bufbuild/protobuf";
3
+ import { OwnedParticipant } from "./participant_pb.js";
4
+ import { OwnedTrack, OwnedTrackPublication, TrackSource } from "./track_pb.js";
5
+ import { VideoCodec } from "./video_frame_pb.js";
6
+ import { E2eeOptions, EncryptionState } from "./e2ee_pb.js";
7
+ import { FfiOwnedHandle } from "./handle_pb.js";
8
+ /**
9
+ * @generated from enum livekit.proto.IceTransportType
10
+ */
11
+ export declare enum IceTransportType {
12
+ /**
13
+ * @generated from enum value: TRANSPORT_RELAY = 0;
14
+ */
15
+ TRANSPORT_RELAY = 0,
16
+ /**
17
+ * @generated from enum value: TRANSPORT_NOHOST = 1;
18
+ */
19
+ TRANSPORT_NOHOST = 1,
20
+ /**
21
+ * @generated from enum value: TRANSPORT_ALL = 2;
22
+ */
23
+ TRANSPORT_ALL = 2
24
+ }
25
+ /**
26
+ * @generated from enum livekit.proto.ContinualGatheringPolicy
27
+ */
28
+ export declare enum ContinualGatheringPolicy {
29
+ /**
30
+ * @generated from enum value: GATHER_ONCE = 0;
31
+ */
32
+ GATHER_ONCE = 0,
33
+ /**
34
+ * @generated from enum value: GATHER_CONTINUALLY = 1;
35
+ */
36
+ GATHER_CONTINUALLY = 1
37
+ }
38
+ /**
39
+ * @generated from enum livekit.proto.ConnectionQuality
40
+ */
41
+ export declare enum ConnectionQuality {
42
+ /**
43
+ * @generated from enum value: QUALITY_POOR = 0;
44
+ */
45
+ QUALITY_POOR = 0,
46
+ /**
47
+ * @generated from enum value: QUALITY_GOOD = 1;
48
+ */
49
+ QUALITY_GOOD = 1,
50
+ /**
51
+ * @generated from enum value: QUALITY_EXCELLENT = 2;
52
+ */
53
+ QUALITY_EXCELLENT = 2
54
+ }
55
+ /**
56
+ * @generated from enum livekit.proto.ConnectionState
57
+ */
58
+ export declare enum ConnectionState {
59
+ /**
60
+ * @generated from enum value: CONN_DISCONNECTED = 0;
61
+ */
62
+ CONN_DISCONNECTED = 0,
63
+ /**
64
+ * @generated from enum value: CONN_CONNECTED = 1;
65
+ */
66
+ CONN_CONNECTED = 1,
67
+ /**
68
+ * @generated from enum value: CONN_RECONNECTING = 2;
69
+ */
70
+ CONN_RECONNECTING = 2
71
+ }
72
+ /**
73
+ * @generated from enum livekit.proto.DataPacketKind
74
+ */
75
+ export declare enum DataPacketKind {
76
+ /**
77
+ * @generated from enum value: KIND_LOSSY = 0;
78
+ */
79
+ KIND_LOSSY = 0,
80
+ /**
81
+ * @generated from enum value: KIND_RELIABLE = 1;
82
+ */
83
+ KIND_RELIABLE = 1
84
+ }
85
+ /**
86
+ * Connect to a new LiveKit room
87
+ *
88
+ * @generated from message livekit.proto.ConnectRequest
89
+ */
90
+ export declare class ConnectRequest extends Message<ConnectRequest> {
91
+ /**
92
+ * @generated from field: string url = 1;
93
+ */
94
+ url: string;
95
+ /**
96
+ * @generated from field: string token = 2;
97
+ */
98
+ token: string;
99
+ /**
100
+ * @generated from field: livekit.proto.RoomOptions options = 3;
101
+ */
102
+ options?: RoomOptions;
103
+ constructor(data?: PartialMessage<ConnectRequest>);
104
+ static readonly runtime: typeof proto3;
105
+ static readonly typeName = "livekit.proto.ConnectRequest";
106
+ static readonly fields: FieldList;
107
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ConnectRequest;
108
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ConnectRequest;
109
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ConnectRequest;
110
+ static equals(a: ConnectRequest | PlainMessage<ConnectRequest> | undefined, b: ConnectRequest | PlainMessage<ConnectRequest> | undefined): boolean;
111
+ }
112
+ /**
113
+ * @generated from message livekit.proto.ConnectResponse
114
+ */
115
+ export declare class ConnectResponse extends Message<ConnectResponse> {
116
+ /**
117
+ * @generated from field: uint64 async_id = 1;
118
+ */
119
+ asyncId: bigint;
120
+ constructor(data?: PartialMessage<ConnectResponse>);
121
+ static readonly runtime: typeof proto3;
122
+ static readonly typeName = "livekit.proto.ConnectResponse";
123
+ static readonly fields: FieldList;
124
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ConnectResponse;
125
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ConnectResponse;
126
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ConnectResponse;
127
+ static equals(a: ConnectResponse | PlainMessage<ConnectResponse> | undefined, b: ConnectResponse | PlainMessage<ConnectResponse> | undefined): boolean;
128
+ }
129
+ /**
130
+ * @generated from message livekit.proto.ConnectCallback
131
+ */
132
+ export declare class ConnectCallback extends Message<ConnectCallback> {
133
+ /**
134
+ * @generated from field: uint64 async_id = 1;
135
+ */
136
+ asyncId: bigint;
137
+ /**
138
+ * @generated from field: optional string error = 2;
139
+ */
140
+ error?: string;
141
+ /**
142
+ * @generated from field: livekit.proto.OwnedRoom room = 3;
143
+ */
144
+ room?: OwnedRoom;
145
+ /**
146
+ * @generated from field: livekit.proto.OwnedParticipant local_participant = 4;
147
+ */
148
+ localParticipant?: OwnedParticipant;
149
+ /**
150
+ * @generated from field: repeated livekit.proto.ConnectCallback.ParticipantWithTracks participants = 5;
151
+ */
152
+ participants: ConnectCallback_ParticipantWithTracks[];
153
+ constructor(data?: PartialMessage<ConnectCallback>);
154
+ static readonly runtime: typeof proto3;
155
+ static readonly typeName = "livekit.proto.ConnectCallback";
156
+ static readonly fields: FieldList;
157
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ConnectCallback;
158
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ConnectCallback;
159
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ConnectCallback;
160
+ static equals(a: ConnectCallback | PlainMessage<ConnectCallback> | undefined, b: ConnectCallback | PlainMessage<ConnectCallback> | undefined): boolean;
161
+ }
162
+ /**
163
+ * @generated from message livekit.proto.ConnectCallback.ParticipantWithTracks
164
+ */
165
+ export declare class ConnectCallback_ParticipantWithTracks extends Message<ConnectCallback_ParticipantWithTracks> {
166
+ /**
167
+ * @generated from field: livekit.proto.OwnedParticipant participant = 1;
168
+ */
169
+ participant?: OwnedParticipant;
170
+ /**
171
+ * TrackInfo are not needed here, if we're subscribed to a track, the FfiServer will send
172
+ * a TrackSubscribed event
173
+ *
174
+ * @generated from field: repeated livekit.proto.OwnedTrackPublication publications = 2;
175
+ */
176
+ publications: OwnedTrackPublication[];
177
+ constructor(data?: PartialMessage<ConnectCallback_ParticipantWithTracks>);
178
+ static readonly runtime: typeof proto3;
179
+ static readonly typeName = "livekit.proto.ConnectCallback.ParticipantWithTracks";
180
+ static readonly fields: FieldList;
181
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ConnectCallback_ParticipantWithTracks;
182
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ConnectCallback_ParticipantWithTracks;
183
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ConnectCallback_ParticipantWithTracks;
184
+ static equals(a: ConnectCallback_ParticipantWithTracks | PlainMessage<ConnectCallback_ParticipantWithTracks> | undefined, b: ConnectCallback_ParticipantWithTracks | PlainMessage<ConnectCallback_ParticipantWithTracks> | undefined): boolean;
185
+ }
186
+ /**
187
+ * Disconnect from the a room
188
+ *
189
+ * @generated from message livekit.proto.DisconnectRequest
190
+ */
191
+ export declare class DisconnectRequest extends Message<DisconnectRequest> {
192
+ /**
193
+ * @generated from field: uint64 room_handle = 1;
194
+ */
195
+ roomHandle: bigint;
196
+ constructor(data?: PartialMessage<DisconnectRequest>);
197
+ static readonly runtime: typeof proto3;
198
+ static readonly typeName = "livekit.proto.DisconnectRequest";
199
+ static readonly fields: FieldList;
200
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): DisconnectRequest;
201
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): DisconnectRequest;
202
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): DisconnectRequest;
203
+ static equals(a: DisconnectRequest | PlainMessage<DisconnectRequest> | undefined, b: DisconnectRequest | PlainMessage<DisconnectRequest> | undefined): boolean;
204
+ }
205
+ /**
206
+ * @generated from message livekit.proto.DisconnectResponse
207
+ */
208
+ export declare class DisconnectResponse extends Message<DisconnectResponse> {
209
+ /**
210
+ * @generated from field: uint64 async_id = 1;
211
+ */
212
+ asyncId: bigint;
213
+ constructor(data?: PartialMessage<DisconnectResponse>);
214
+ static readonly runtime: typeof proto3;
215
+ static readonly typeName = "livekit.proto.DisconnectResponse";
216
+ static readonly fields: FieldList;
217
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): DisconnectResponse;
218
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): DisconnectResponse;
219
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): DisconnectResponse;
220
+ static equals(a: DisconnectResponse | PlainMessage<DisconnectResponse> | undefined, b: DisconnectResponse | PlainMessage<DisconnectResponse> | undefined): boolean;
221
+ }
222
+ /**
223
+ * @generated from message livekit.proto.DisconnectCallback
224
+ */
225
+ export declare class DisconnectCallback extends Message<DisconnectCallback> {
226
+ /**
227
+ * @generated from field: uint64 async_id = 1;
228
+ */
229
+ asyncId: bigint;
230
+ constructor(data?: PartialMessage<DisconnectCallback>);
231
+ static readonly runtime: typeof proto3;
232
+ static readonly typeName = "livekit.proto.DisconnectCallback";
233
+ static readonly fields: FieldList;
234
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): DisconnectCallback;
235
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): DisconnectCallback;
236
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): DisconnectCallback;
237
+ static equals(a: DisconnectCallback | PlainMessage<DisconnectCallback> | undefined, b: DisconnectCallback | PlainMessage<DisconnectCallback> | undefined): boolean;
238
+ }
239
+ /**
240
+ * Publish a track to the room
241
+ *
242
+ * @generated from message livekit.proto.PublishTrackRequest
243
+ */
244
+ export declare class PublishTrackRequest extends Message<PublishTrackRequest> {
245
+ /**
246
+ * @generated from field: uint64 local_participant_handle = 1;
247
+ */
248
+ localParticipantHandle: bigint;
249
+ /**
250
+ * @generated from field: uint64 track_handle = 2;
251
+ */
252
+ trackHandle: bigint;
253
+ /**
254
+ * @generated from field: livekit.proto.TrackPublishOptions options = 3;
255
+ */
256
+ options?: TrackPublishOptions;
257
+ constructor(data?: PartialMessage<PublishTrackRequest>);
258
+ static readonly runtime: typeof proto3;
259
+ static readonly typeName = "livekit.proto.PublishTrackRequest";
260
+ static readonly fields: FieldList;
261
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): PublishTrackRequest;
262
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): PublishTrackRequest;
263
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): PublishTrackRequest;
264
+ static equals(a: PublishTrackRequest | PlainMessage<PublishTrackRequest> | undefined, b: PublishTrackRequest | PlainMessage<PublishTrackRequest> | undefined): boolean;
265
+ }
266
+ /**
267
+ * @generated from message livekit.proto.PublishTrackResponse
268
+ */
269
+ export declare class PublishTrackResponse extends Message<PublishTrackResponse> {
270
+ /**
271
+ * @generated from field: uint64 async_id = 1;
272
+ */
273
+ asyncId: bigint;
274
+ constructor(data?: PartialMessage<PublishTrackResponse>);
275
+ static readonly runtime: typeof proto3;
276
+ static readonly typeName = "livekit.proto.PublishTrackResponse";
277
+ static readonly fields: FieldList;
278
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): PublishTrackResponse;
279
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): PublishTrackResponse;
280
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): PublishTrackResponse;
281
+ static equals(a: PublishTrackResponse | PlainMessage<PublishTrackResponse> | undefined, b: PublishTrackResponse | PlainMessage<PublishTrackResponse> | undefined): boolean;
282
+ }
283
+ /**
284
+ * @generated from message livekit.proto.PublishTrackCallback
285
+ */
286
+ export declare class PublishTrackCallback extends Message<PublishTrackCallback> {
287
+ /**
288
+ * @generated from field: uint64 async_id = 1;
289
+ */
290
+ asyncId: bigint;
291
+ /**
292
+ * @generated from field: optional string error = 2;
293
+ */
294
+ error?: string;
295
+ /**
296
+ * @generated from field: livekit.proto.OwnedTrackPublication publication = 3;
297
+ */
298
+ publication?: OwnedTrackPublication;
299
+ constructor(data?: PartialMessage<PublishTrackCallback>);
300
+ static readonly runtime: typeof proto3;
301
+ static readonly typeName = "livekit.proto.PublishTrackCallback";
302
+ static readonly fields: FieldList;
303
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): PublishTrackCallback;
304
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): PublishTrackCallback;
305
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): PublishTrackCallback;
306
+ static equals(a: PublishTrackCallback | PlainMessage<PublishTrackCallback> | undefined, b: PublishTrackCallback | PlainMessage<PublishTrackCallback> | undefined): boolean;
307
+ }
308
+ /**
309
+ * Unpublish a track from the room
310
+ *
311
+ * @generated from message livekit.proto.UnpublishTrackRequest
312
+ */
313
+ export declare class UnpublishTrackRequest extends Message<UnpublishTrackRequest> {
314
+ /**
315
+ * @generated from field: uint64 local_participant_handle = 1;
316
+ */
317
+ localParticipantHandle: bigint;
318
+ /**
319
+ * @generated from field: string track_sid = 2;
320
+ */
321
+ trackSid: string;
322
+ /**
323
+ * @generated from field: bool stop_on_unpublish = 3;
324
+ */
325
+ stopOnUnpublish: boolean;
326
+ constructor(data?: PartialMessage<UnpublishTrackRequest>);
327
+ static readonly runtime: typeof proto3;
328
+ static readonly typeName = "livekit.proto.UnpublishTrackRequest";
329
+ static readonly fields: FieldList;
330
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): UnpublishTrackRequest;
331
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): UnpublishTrackRequest;
332
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): UnpublishTrackRequest;
333
+ static equals(a: UnpublishTrackRequest | PlainMessage<UnpublishTrackRequest> | undefined, b: UnpublishTrackRequest | PlainMessage<UnpublishTrackRequest> | undefined): boolean;
334
+ }
335
+ /**
336
+ * @generated from message livekit.proto.UnpublishTrackResponse
337
+ */
338
+ export declare class UnpublishTrackResponse extends Message<UnpublishTrackResponse> {
339
+ /**
340
+ * @generated from field: uint64 async_id = 1;
341
+ */
342
+ asyncId: bigint;
343
+ constructor(data?: PartialMessage<UnpublishTrackResponse>);
344
+ static readonly runtime: typeof proto3;
345
+ static readonly typeName = "livekit.proto.UnpublishTrackResponse";
346
+ static readonly fields: FieldList;
347
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): UnpublishTrackResponse;
348
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): UnpublishTrackResponse;
349
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): UnpublishTrackResponse;
350
+ static equals(a: UnpublishTrackResponse | PlainMessage<UnpublishTrackResponse> | undefined, b: UnpublishTrackResponse | PlainMessage<UnpublishTrackResponse> | undefined): boolean;
351
+ }
352
+ /**
353
+ * @generated from message livekit.proto.UnpublishTrackCallback
354
+ */
355
+ export declare class UnpublishTrackCallback extends Message<UnpublishTrackCallback> {
356
+ /**
357
+ * @generated from field: uint64 async_id = 1;
358
+ */
359
+ asyncId: bigint;
360
+ /**
361
+ * @generated from field: optional string error = 2;
362
+ */
363
+ error?: string;
364
+ constructor(data?: PartialMessage<UnpublishTrackCallback>);
365
+ static readonly runtime: typeof proto3;
366
+ static readonly typeName = "livekit.proto.UnpublishTrackCallback";
367
+ static readonly fields: FieldList;
368
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): UnpublishTrackCallback;
369
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): UnpublishTrackCallback;
370
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): UnpublishTrackCallback;
371
+ static equals(a: UnpublishTrackCallback | PlainMessage<UnpublishTrackCallback> | undefined, b: UnpublishTrackCallback | PlainMessage<UnpublishTrackCallback> | undefined): boolean;
372
+ }
373
+ /**
374
+ * Publish data to other participants
375
+ *
376
+ * @generated from message livekit.proto.PublishDataRequest
377
+ */
378
+ export declare class PublishDataRequest extends Message<PublishDataRequest> {
379
+ /**
380
+ * @generated from field: uint64 local_participant_handle = 1;
381
+ */
382
+ localParticipantHandle: bigint;
383
+ /**
384
+ * @generated from field: uint64 data_ptr = 2;
385
+ */
386
+ dataPtr: bigint;
387
+ /**
388
+ * @generated from field: uint64 data_len = 3;
389
+ */
390
+ dataLen: bigint;
391
+ /**
392
+ * @generated from field: livekit.proto.DataPacketKind kind = 4;
393
+ */
394
+ kind: DataPacketKind;
395
+ /**
396
+ * destination
397
+ *
398
+ * @generated from field: repeated string destination_sids = 5;
399
+ */
400
+ destinationSids: string[];
401
+ constructor(data?: PartialMessage<PublishDataRequest>);
402
+ static readonly runtime: typeof proto3;
403
+ static readonly typeName = "livekit.proto.PublishDataRequest";
404
+ static readonly fields: FieldList;
405
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): PublishDataRequest;
406
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): PublishDataRequest;
407
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): PublishDataRequest;
408
+ static equals(a: PublishDataRequest | PlainMessage<PublishDataRequest> | undefined, b: PublishDataRequest | PlainMessage<PublishDataRequest> | undefined): boolean;
409
+ }
410
+ /**
411
+ * @generated from message livekit.proto.PublishDataResponse
412
+ */
413
+ export declare class PublishDataResponse extends Message<PublishDataResponse> {
414
+ /**
415
+ * @generated from field: uint64 async_id = 1;
416
+ */
417
+ asyncId: bigint;
418
+ constructor(data?: PartialMessage<PublishDataResponse>);
419
+ static readonly runtime: typeof proto3;
420
+ static readonly typeName = "livekit.proto.PublishDataResponse";
421
+ static readonly fields: FieldList;
422
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): PublishDataResponse;
423
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): PublishDataResponse;
424
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): PublishDataResponse;
425
+ static equals(a: PublishDataResponse | PlainMessage<PublishDataResponse> | undefined, b: PublishDataResponse | PlainMessage<PublishDataResponse> | undefined): boolean;
426
+ }
427
+ /**
428
+ * @generated from message livekit.proto.PublishDataCallback
429
+ */
430
+ export declare class PublishDataCallback extends Message<PublishDataCallback> {
431
+ /**
432
+ * @generated from field: uint64 async_id = 1;
433
+ */
434
+ asyncId: bigint;
435
+ /**
436
+ * @generated from field: optional string error = 2;
437
+ */
438
+ error?: string;
439
+ constructor(data?: PartialMessage<PublishDataCallback>);
440
+ static readonly runtime: typeof proto3;
441
+ static readonly typeName = "livekit.proto.PublishDataCallback";
442
+ static readonly fields: FieldList;
443
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): PublishDataCallback;
444
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): PublishDataCallback;
445
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): PublishDataCallback;
446
+ static equals(a: PublishDataCallback | PlainMessage<PublishDataCallback> | undefined, b: PublishDataCallback | PlainMessage<PublishDataCallback> | undefined): boolean;
447
+ }
448
+ /**
449
+ * Change the local participant's metadata
450
+ *
451
+ * @generated from message livekit.proto.UpdateLocalMetadataRequest
452
+ */
453
+ export declare class UpdateLocalMetadataRequest extends Message<UpdateLocalMetadataRequest> {
454
+ /**
455
+ * @generated from field: uint64 local_participant_handle = 1;
456
+ */
457
+ localParticipantHandle: bigint;
458
+ /**
459
+ * @generated from field: string metadata = 2;
460
+ */
461
+ metadata: string;
462
+ constructor(data?: PartialMessage<UpdateLocalMetadataRequest>);
463
+ static readonly runtime: typeof proto3;
464
+ static readonly typeName = "livekit.proto.UpdateLocalMetadataRequest";
465
+ static readonly fields: FieldList;
466
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): UpdateLocalMetadataRequest;
467
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): UpdateLocalMetadataRequest;
468
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): UpdateLocalMetadataRequest;
469
+ static equals(a: UpdateLocalMetadataRequest | PlainMessage<UpdateLocalMetadataRequest> | undefined, b: UpdateLocalMetadataRequest | PlainMessage<UpdateLocalMetadataRequest> | undefined): boolean;
470
+ }
471
+ /**
472
+ * @generated from message livekit.proto.UpdateLocalMetadataResponse
473
+ */
474
+ export declare class UpdateLocalMetadataResponse extends Message<UpdateLocalMetadataResponse> {
475
+ /**
476
+ * @generated from field: uint64 async_id = 1;
477
+ */
478
+ asyncId: bigint;
479
+ constructor(data?: PartialMessage<UpdateLocalMetadataResponse>);
480
+ static readonly runtime: typeof proto3;
481
+ static readonly typeName = "livekit.proto.UpdateLocalMetadataResponse";
482
+ static readonly fields: FieldList;
483
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): UpdateLocalMetadataResponse;
484
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): UpdateLocalMetadataResponse;
485
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): UpdateLocalMetadataResponse;
486
+ static equals(a: UpdateLocalMetadataResponse | PlainMessage<UpdateLocalMetadataResponse> | undefined, b: UpdateLocalMetadataResponse | PlainMessage<UpdateLocalMetadataResponse> | undefined): boolean;
487
+ }
488
+ /**
489
+ * @generated from message livekit.proto.UpdateLocalMetadataCallback
490
+ */
491
+ export declare class UpdateLocalMetadataCallback extends Message<UpdateLocalMetadataCallback> {
492
+ /**
493
+ * @generated from field: uint64 async_id = 1;
494
+ */
495
+ asyncId: bigint;
496
+ constructor(data?: PartialMessage<UpdateLocalMetadataCallback>);
497
+ static readonly runtime: typeof proto3;
498
+ static readonly typeName = "livekit.proto.UpdateLocalMetadataCallback";
499
+ static readonly fields: FieldList;
500
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): UpdateLocalMetadataCallback;
501
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): UpdateLocalMetadataCallback;
502
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): UpdateLocalMetadataCallback;
503
+ static equals(a: UpdateLocalMetadataCallback | PlainMessage<UpdateLocalMetadataCallback> | undefined, b: UpdateLocalMetadataCallback | PlainMessage<UpdateLocalMetadataCallback> | undefined): boolean;
504
+ }
505
+ /**
506
+ * Change the local participant's name
507
+ *
508
+ * @generated from message livekit.proto.UpdateLocalNameRequest
509
+ */
510
+ export declare class UpdateLocalNameRequest extends Message<UpdateLocalNameRequest> {
511
+ /**
512
+ * @generated from field: uint64 local_participant_handle = 1;
513
+ */
514
+ localParticipantHandle: bigint;
515
+ /**
516
+ * @generated from field: string name = 2;
517
+ */
518
+ name: string;
519
+ constructor(data?: PartialMessage<UpdateLocalNameRequest>);
520
+ static readonly runtime: typeof proto3;
521
+ static readonly typeName = "livekit.proto.UpdateLocalNameRequest";
522
+ static readonly fields: FieldList;
523
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): UpdateLocalNameRequest;
524
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): UpdateLocalNameRequest;
525
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): UpdateLocalNameRequest;
526
+ static equals(a: UpdateLocalNameRequest | PlainMessage<UpdateLocalNameRequest> | undefined, b: UpdateLocalNameRequest | PlainMessage<UpdateLocalNameRequest> | undefined): boolean;
527
+ }
528
+ /**
529
+ * @generated from message livekit.proto.UpdateLocalNameResponse
530
+ */
531
+ export declare class UpdateLocalNameResponse extends Message<UpdateLocalNameResponse> {
532
+ /**
533
+ * @generated from field: uint64 async_id = 1;
534
+ */
535
+ asyncId: bigint;
536
+ constructor(data?: PartialMessage<UpdateLocalNameResponse>);
537
+ static readonly runtime: typeof proto3;
538
+ static readonly typeName = "livekit.proto.UpdateLocalNameResponse";
539
+ static readonly fields: FieldList;
540
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): UpdateLocalNameResponse;
541
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): UpdateLocalNameResponse;
542
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): UpdateLocalNameResponse;
543
+ static equals(a: UpdateLocalNameResponse | PlainMessage<UpdateLocalNameResponse> | undefined, b: UpdateLocalNameResponse | PlainMessage<UpdateLocalNameResponse> | undefined): boolean;
544
+ }
545
+ /**
546
+ * @generated from message livekit.proto.UpdateLocalNameCallback
547
+ */
548
+ export declare class UpdateLocalNameCallback extends Message<UpdateLocalNameCallback> {
549
+ /**
550
+ * @generated from field: uint64 async_id = 1;
551
+ */
552
+ asyncId: bigint;
553
+ constructor(data?: PartialMessage<UpdateLocalNameCallback>);
554
+ static readonly runtime: typeof proto3;
555
+ static readonly typeName = "livekit.proto.UpdateLocalNameCallback";
556
+ static readonly fields: FieldList;
557
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): UpdateLocalNameCallback;
558
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): UpdateLocalNameCallback;
559
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): UpdateLocalNameCallback;
560
+ static equals(a: UpdateLocalNameCallback | PlainMessage<UpdateLocalNameCallback> | undefined, b: UpdateLocalNameCallback | PlainMessage<UpdateLocalNameCallback> | undefined): boolean;
561
+ }
562
+ /**
563
+ * Change the "desire" to subs2ribe to a track
564
+ *
565
+ * @generated from message livekit.proto.SetSubscribedRequest
566
+ */
567
+ export declare class SetSubscribedRequest extends Message<SetSubscribedRequest> {
568
+ /**
569
+ * @generated from field: bool subscribe = 1;
570
+ */
571
+ subscribe: boolean;
572
+ /**
573
+ * @generated from field: uint64 publication_handle = 2;
574
+ */
575
+ publicationHandle: bigint;
576
+ constructor(data?: PartialMessage<SetSubscribedRequest>);
577
+ static readonly runtime: typeof proto3;
578
+ static readonly typeName = "livekit.proto.SetSubscribedRequest";
579
+ static readonly fields: FieldList;
580
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SetSubscribedRequest;
581
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SetSubscribedRequest;
582
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SetSubscribedRequest;
583
+ static equals(a: SetSubscribedRequest | PlainMessage<SetSubscribedRequest> | undefined, b: SetSubscribedRequest | PlainMessage<SetSubscribedRequest> | undefined): boolean;
584
+ }
585
+ /**
586
+ * @generated from message livekit.proto.SetSubscribedResponse
587
+ */
588
+ export declare class SetSubscribedResponse extends Message<SetSubscribedResponse> {
589
+ constructor(data?: PartialMessage<SetSubscribedResponse>);
590
+ static readonly runtime: typeof proto3;
591
+ static readonly typeName = "livekit.proto.SetSubscribedResponse";
592
+ static readonly fields: FieldList;
593
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SetSubscribedResponse;
594
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SetSubscribedResponse;
595
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SetSubscribedResponse;
596
+ static equals(a: SetSubscribedResponse | PlainMessage<SetSubscribedResponse> | undefined, b: SetSubscribedResponse | PlainMessage<SetSubscribedResponse> | undefined): boolean;
597
+ }
598
+ /**
599
+ * @generated from message livekit.proto.VideoEncoding
600
+ */
601
+ export declare class VideoEncoding extends Message<VideoEncoding> {
602
+ /**
603
+ * @generated from field: uint64 max_bitrate = 1;
604
+ */
605
+ maxBitrate: bigint;
606
+ /**
607
+ * @generated from field: double max_framerate = 2;
608
+ */
609
+ maxFramerate: number;
610
+ constructor(data?: PartialMessage<VideoEncoding>);
611
+ static readonly runtime: typeof proto3;
612
+ static readonly typeName = "livekit.proto.VideoEncoding";
613
+ static readonly fields: FieldList;
614
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): VideoEncoding;
615
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): VideoEncoding;
616
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): VideoEncoding;
617
+ static equals(a: VideoEncoding | PlainMessage<VideoEncoding> | undefined, b: VideoEncoding | PlainMessage<VideoEncoding> | undefined): boolean;
618
+ }
619
+ /**
620
+ * @generated from message livekit.proto.AudioEncoding
621
+ */
622
+ export declare class AudioEncoding extends Message<AudioEncoding> {
623
+ /**
624
+ * @generated from field: uint64 max_bitrate = 1;
625
+ */
626
+ maxBitrate: bigint;
627
+ constructor(data?: PartialMessage<AudioEncoding>);
628
+ static readonly runtime: typeof proto3;
629
+ static readonly typeName = "livekit.proto.AudioEncoding";
630
+ static readonly fields: FieldList;
631
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): AudioEncoding;
632
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): AudioEncoding;
633
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): AudioEncoding;
634
+ static equals(a: AudioEncoding | PlainMessage<AudioEncoding> | undefined, b: AudioEncoding | PlainMessage<AudioEncoding> | undefined): boolean;
635
+ }
636
+ /**
637
+ * @generated from message livekit.proto.TrackPublishOptions
638
+ */
639
+ export declare class TrackPublishOptions extends Message<TrackPublishOptions> {
640
+ /**
641
+ * encodings are optional
642
+ *
643
+ * @generated from field: livekit.proto.VideoEncoding video_encoding = 1;
644
+ */
645
+ videoEncoding?: VideoEncoding;
646
+ /**
647
+ * @generated from field: livekit.proto.AudioEncoding audio_encoding = 2;
648
+ */
649
+ audioEncoding?: AudioEncoding;
650
+ /**
651
+ * @generated from field: livekit.proto.VideoCodec video_codec = 3;
652
+ */
653
+ videoCodec: VideoCodec;
654
+ /**
655
+ * @generated from field: bool dtx = 4;
656
+ */
657
+ dtx: boolean;
658
+ /**
659
+ * @generated from field: bool red = 5;
660
+ */
661
+ red: boolean;
662
+ /**
663
+ * @generated from field: bool simulcast = 6;
664
+ */
665
+ simulcast: boolean;
666
+ /**
667
+ * @generated from field: livekit.proto.TrackSource source = 7;
668
+ */
669
+ source: TrackSource;
670
+ constructor(data?: PartialMessage<TrackPublishOptions>);
671
+ static readonly runtime: typeof proto3;
672
+ static readonly typeName = "livekit.proto.TrackPublishOptions";
673
+ static readonly fields: FieldList;
674
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): TrackPublishOptions;
675
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): TrackPublishOptions;
676
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): TrackPublishOptions;
677
+ static equals(a: TrackPublishOptions | PlainMessage<TrackPublishOptions> | undefined, b: TrackPublishOptions | PlainMessage<TrackPublishOptions> | undefined): boolean;
678
+ }
679
+ /**
680
+ * @generated from message livekit.proto.IceServer
681
+ */
682
+ export declare class IceServer extends Message<IceServer> {
683
+ /**
684
+ * @generated from field: repeated string urls = 1;
685
+ */
686
+ urls: string[];
687
+ /**
688
+ * @generated from field: string username = 2;
689
+ */
690
+ username: string;
691
+ /**
692
+ * @generated from field: string password = 3;
693
+ */
694
+ password: string;
695
+ constructor(data?: PartialMessage<IceServer>);
696
+ static readonly runtime: typeof proto3;
697
+ static readonly typeName = "livekit.proto.IceServer";
698
+ static readonly fields: FieldList;
699
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): IceServer;
700
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): IceServer;
701
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): IceServer;
702
+ static equals(a: IceServer | PlainMessage<IceServer> | undefined, b: IceServer | PlainMessage<IceServer> | undefined): boolean;
703
+ }
704
+ /**
705
+ * @generated from message livekit.proto.RtcConfig
706
+ */
707
+ export declare class RtcConfig extends Message<RtcConfig> {
708
+ /**
709
+ * @generated from field: optional livekit.proto.IceTransportType ice_transport_type = 1;
710
+ */
711
+ iceTransportType?: IceTransportType;
712
+ /**
713
+ * @generated from field: optional livekit.proto.ContinualGatheringPolicy continual_gathering_policy = 2;
714
+ */
715
+ continualGatheringPolicy?: ContinualGatheringPolicy;
716
+ /**
717
+ * empty fallback to default
718
+ *
719
+ * @generated from field: repeated livekit.proto.IceServer ice_servers = 3;
720
+ */
721
+ iceServers: IceServer[];
722
+ constructor(data?: PartialMessage<RtcConfig>);
723
+ static readonly runtime: typeof proto3;
724
+ static readonly typeName = "livekit.proto.RtcConfig";
725
+ static readonly fields: FieldList;
726
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): RtcConfig;
727
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): RtcConfig;
728
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): RtcConfig;
729
+ static equals(a: RtcConfig | PlainMessage<RtcConfig> | undefined, b: RtcConfig | PlainMessage<RtcConfig> | undefined): boolean;
730
+ }
731
+ /**
732
+ * @generated from message livekit.proto.RoomOptions
733
+ */
734
+ export declare class RoomOptions extends Message<RoomOptions> {
735
+ /**
736
+ * @generated from field: bool auto_subscribe = 1;
737
+ */
738
+ autoSubscribe: boolean;
739
+ /**
740
+ * @generated from field: bool adaptive_stream = 2;
741
+ */
742
+ adaptiveStream: boolean;
743
+ /**
744
+ * @generated from field: bool dynacast = 3;
745
+ */
746
+ dynacast: boolean;
747
+ /**
748
+ * @generated from field: optional livekit.proto.E2eeOptions e2ee = 4;
749
+ */
750
+ e2ee?: E2eeOptions;
751
+ /**
752
+ * allow to setup a custom RtcConfiguration
753
+ *
754
+ * @generated from field: optional livekit.proto.RtcConfig rtc_config = 5;
755
+ */
756
+ rtcConfig?: RtcConfig;
757
+ /**
758
+ * @generated from field: uint32 join_retries = 6;
759
+ */
760
+ joinRetries: number;
761
+ constructor(data?: PartialMessage<RoomOptions>);
762
+ static readonly runtime: typeof proto3;
763
+ static readonly typeName = "livekit.proto.RoomOptions";
764
+ static readonly fields: FieldList;
765
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): RoomOptions;
766
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): RoomOptions;
767
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): RoomOptions;
768
+ static equals(a: RoomOptions | PlainMessage<RoomOptions> | undefined, b: RoomOptions | PlainMessage<RoomOptions> | undefined): boolean;
769
+ }
770
+ /**
771
+ * @generated from message livekit.proto.BufferInfo
772
+ */
773
+ export declare class BufferInfo extends Message<BufferInfo> {
774
+ /**
775
+ * @generated from field: uint64 data_ptr = 1;
776
+ */
777
+ dataPtr: bigint;
778
+ /**
779
+ * @generated from field: uint64 data_len = 2;
780
+ */
781
+ dataLen: bigint;
782
+ constructor(data?: PartialMessage<BufferInfo>);
783
+ static readonly runtime: typeof proto3;
784
+ static readonly typeName = "livekit.proto.BufferInfo";
785
+ static readonly fields: FieldList;
786
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): BufferInfo;
787
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): BufferInfo;
788
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): BufferInfo;
789
+ static equals(a: BufferInfo | PlainMessage<BufferInfo> | undefined, b: BufferInfo | PlainMessage<BufferInfo> | undefined): boolean;
790
+ }
791
+ /**
792
+ * @generated from message livekit.proto.OwnedBuffer
793
+ */
794
+ export declare class OwnedBuffer extends Message<OwnedBuffer> {
795
+ /**
796
+ * @generated from field: livekit.proto.FfiOwnedHandle handle = 1;
797
+ */
798
+ handle?: FfiOwnedHandle;
799
+ /**
800
+ * @generated from field: livekit.proto.BufferInfo data = 2;
801
+ */
802
+ data?: BufferInfo;
803
+ constructor(data?: PartialMessage<OwnedBuffer>);
804
+ static readonly runtime: typeof proto3;
805
+ static readonly typeName = "livekit.proto.OwnedBuffer";
806
+ static readonly fields: FieldList;
807
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): OwnedBuffer;
808
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): OwnedBuffer;
809
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): OwnedBuffer;
810
+ static equals(a: OwnedBuffer | PlainMessage<OwnedBuffer> | undefined, b: OwnedBuffer | PlainMessage<OwnedBuffer> | undefined): boolean;
811
+ }
812
+ /**
813
+ * @generated from message livekit.proto.RoomEvent
814
+ */
815
+ export declare class RoomEvent extends Message<RoomEvent> {
816
+ /**
817
+ * @generated from field: uint64 room_handle = 1;
818
+ */
819
+ roomHandle: bigint;
820
+ /**
821
+ * @generated from oneof livekit.proto.RoomEvent.message
822
+ */
823
+ message: {
824
+ /**
825
+ * @generated from field: livekit.proto.ParticipantConnected participant_connected = 2;
826
+ */
827
+ value: ParticipantConnected;
828
+ case: "participantConnected";
829
+ } | {
830
+ /**
831
+ * @generated from field: livekit.proto.ParticipantDisconnected participant_disconnected = 3;
832
+ */
833
+ value: ParticipantDisconnected;
834
+ case: "participantDisconnected";
835
+ } | {
836
+ /**
837
+ * @generated from field: livekit.proto.LocalTrackPublished local_track_published = 4;
838
+ */
839
+ value: LocalTrackPublished;
840
+ case: "localTrackPublished";
841
+ } | {
842
+ /**
843
+ * @generated from field: livekit.proto.LocalTrackUnpublished local_track_unpublished = 5;
844
+ */
845
+ value: LocalTrackUnpublished;
846
+ case: "localTrackUnpublished";
847
+ } | {
848
+ /**
849
+ * @generated from field: livekit.proto.TrackPublished track_published = 6;
850
+ */
851
+ value: TrackPublished;
852
+ case: "trackPublished";
853
+ } | {
854
+ /**
855
+ * @generated from field: livekit.proto.TrackUnpublished track_unpublished = 7;
856
+ */
857
+ value: TrackUnpublished;
858
+ case: "trackUnpublished";
859
+ } | {
860
+ /**
861
+ * @generated from field: livekit.proto.TrackSubscribed track_subscribed = 8;
862
+ */
863
+ value: TrackSubscribed;
864
+ case: "trackSubscribed";
865
+ } | {
866
+ /**
867
+ * @generated from field: livekit.proto.TrackUnsubscribed track_unsubscribed = 9;
868
+ */
869
+ value: TrackUnsubscribed;
870
+ case: "trackUnsubscribed";
871
+ } | {
872
+ /**
873
+ * @generated from field: livekit.proto.TrackSubscriptionFailed track_subscription_failed = 10;
874
+ */
875
+ value: TrackSubscriptionFailed;
876
+ case: "trackSubscriptionFailed";
877
+ } | {
878
+ /**
879
+ * @generated from field: livekit.proto.TrackMuted track_muted = 11;
880
+ */
881
+ value: TrackMuted;
882
+ case: "trackMuted";
883
+ } | {
884
+ /**
885
+ * @generated from field: livekit.proto.TrackUnmuted track_unmuted = 12;
886
+ */
887
+ value: TrackUnmuted;
888
+ case: "trackUnmuted";
889
+ } | {
890
+ /**
891
+ * @generated from field: livekit.proto.ActiveSpeakersChanged active_speakers_changed = 13;
892
+ */
893
+ value: ActiveSpeakersChanged;
894
+ case: "activeSpeakersChanged";
895
+ } | {
896
+ /**
897
+ * @generated from field: livekit.proto.RoomMetadataChanged room_metadata_changed = 14;
898
+ */
899
+ value: RoomMetadataChanged;
900
+ case: "roomMetadataChanged";
901
+ } | {
902
+ /**
903
+ * @generated from field: livekit.proto.ParticipantMetadataChanged participant_metadata_changed = 15;
904
+ */
905
+ value: ParticipantMetadataChanged;
906
+ case: "participantMetadataChanged";
907
+ } | {
908
+ /**
909
+ * @generated from field: livekit.proto.ParticipantNameChanged participant_name_changed = 16;
910
+ */
911
+ value: ParticipantNameChanged;
912
+ case: "participantNameChanged";
913
+ } | {
914
+ /**
915
+ * @generated from field: livekit.proto.ConnectionQualityChanged connection_quality_changed = 17;
916
+ */
917
+ value: ConnectionQualityChanged;
918
+ case: "connectionQualityChanged";
919
+ } | {
920
+ /**
921
+ * @generated from field: livekit.proto.DataReceived data_received = 18;
922
+ */
923
+ value: DataReceived;
924
+ case: "dataReceived";
925
+ } | {
926
+ /**
927
+ * @generated from field: livekit.proto.ConnectionStateChanged connection_state_changed = 19;
928
+ */
929
+ value: ConnectionStateChanged;
930
+ case: "connectionStateChanged";
931
+ } | {
932
+ /**
933
+ * Connected connected = 20;
934
+ *
935
+ * @generated from field: livekit.proto.Disconnected disconnected = 21;
936
+ */
937
+ value: Disconnected;
938
+ case: "disconnected";
939
+ } | {
940
+ /**
941
+ * @generated from field: livekit.proto.Reconnecting reconnecting = 22;
942
+ */
943
+ value: Reconnecting;
944
+ case: "reconnecting";
945
+ } | {
946
+ /**
947
+ * @generated from field: livekit.proto.Reconnected reconnected = 23;
948
+ */
949
+ value: Reconnected;
950
+ case: "reconnected";
951
+ } | {
952
+ /**
953
+ * @generated from field: livekit.proto.E2eeStateChanged e2ee_state_changed = 24;
954
+ */
955
+ value: E2eeStateChanged;
956
+ case: "e2eeStateChanged";
957
+ } | {
958
+ /**
959
+ * The stream of room events has ended
960
+ *
961
+ * @generated from field: livekit.proto.RoomEOS eos = 25;
962
+ */
963
+ value: RoomEOS;
964
+ case: "eos";
965
+ } | {
966
+ case: undefined;
967
+ value?: undefined;
968
+ };
969
+ constructor(data?: PartialMessage<RoomEvent>);
970
+ static readonly runtime: typeof proto3;
971
+ static readonly typeName = "livekit.proto.RoomEvent";
972
+ static readonly fields: FieldList;
973
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): RoomEvent;
974
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): RoomEvent;
975
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): RoomEvent;
976
+ static equals(a: RoomEvent | PlainMessage<RoomEvent> | undefined, b: RoomEvent | PlainMessage<RoomEvent> | undefined): boolean;
977
+ }
978
+ /**
979
+ * @generated from message livekit.proto.RoomInfo
980
+ */
981
+ export declare class RoomInfo extends Message<RoomInfo> {
982
+ /**
983
+ * @generated from field: string sid = 1;
984
+ */
985
+ sid: string;
986
+ /**
987
+ * @generated from field: string name = 2;
988
+ */
989
+ name: string;
990
+ /**
991
+ * @generated from field: string metadata = 3;
992
+ */
993
+ metadata: string;
994
+ constructor(data?: PartialMessage<RoomInfo>);
995
+ static readonly runtime: typeof proto3;
996
+ static readonly typeName = "livekit.proto.RoomInfo";
997
+ static readonly fields: FieldList;
998
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): RoomInfo;
999
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): RoomInfo;
1000
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): RoomInfo;
1001
+ static equals(a: RoomInfo | PlainMessage<RoomInfo> | undefined, b: RoomInfo | PlainMessage<RoomInfo> | undefined): boolean;
1002
+ }
1003
+ /**
1004
+ * @generated from message livekit.proto.OwnedRoom
1005
+ */
1006
+ export declare class OwnedRoom extends Message<OwnedRoom> {
1007
+ /**
1008
+ * @generated from field: livekit.proto.FfiOwnedHandle handle = 1;
1009
+ */
1010
+ handle?: FfiOwnedHandle;
1011
+ /**
1012
+ * @generated from field: livekit.proto.RoomInfo info = 2;
1013
+ */
1014
+ info?: RoomInfo;
1015
+ constructor(data?: PartialMessage<OwnedRoom>);
1016
+ static readonly runtime: typeof proto3;
1017
+ static readonly typeName = "livekit.proto.OwnedRoom";
1018
+ static readonly fields: FieldList;
1019
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): OwnedRoom;
1020
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): OwnedRoom;
1021
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): OwnedRoom;
1022
+ static equals(a: OwnedRoom | PlainMessage<OwnedRoom> | undefined, b: OwnedRoom | PlainMessage<OwnedRoom> | undefined): boolean;
1023
+ }
1024
+ /**
1025
+ * @generated from message livekit.proto.ParticipantConnected
1026
+ */
1027
+ export declare class ParticipantConnected extends Message<ParticipantConnected> {
1028
+ /**
1029
+ * @generated from field: livekit.proto.OwnedParticipant info = 1;
1030
+ */
1031
+ info?: OwnedParticipant;
1032
+ constructor(data?: PartialMessage<ParticipantConnected>);
1033
+ static readonly runtime: typeof proto3;
1034
+ static readonly typeName = "livekit.proto.ParticipantConnected";
1035
+ static readonly fields: FieldList;
1036
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ParticipantConnected;
1037
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ParticipantConnected;
1038
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ParticipantConnected;
1039
+ static equals(a: ParticipantConnected | PlainMessage<ParticipantConnected> | undefined, b: ParticipantConnected | PlainMessage<ParticipantConnected> | undefined): boolean;
1040
+ }
1041
+ /**
1042
+ * @generated from message livekit.proto.ParticipantDisconnected
1043
+ */
1044
+ export declare class ParticipantDisconnected extends Message<ParticipantDisconnected> {
1045
+ /**
1046
+ * @generated from field: string participant_sid = 1;
1047
+ */
1048
+ participantSid: string;
1049
+ constructor(data?: PartialMessage<ParticipantDisconnected>);
1050
+ static readonly runtime: typeof proto3;
1051
+ static readonly typeName = "livekit.proto.ParticipantDisconnected";
1052
+ static readonly fields: FieldList;
1053
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ParticipantDisconnected;
1054
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ParticipantDisconnected;
1055
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ParticipantDisconnected;
1056
+ static equals(a: ParticipantDisconnected | PlainMessage<ParticipantDisconnected> | undefined, b: ParticipantDisconnected | PlainMessage<ParticipantDisconnected> | undefined): boolean;
1057
+ }
1058
+ /**
1059
+ * @generated from message livekit.proto.LocalTrackPublished
1060
+ */
1061
+ export declare class LocalTrackPublished extends Message<LocalTrackPublished> {
1062
+ /**
1063
+ * The TrackPublicationInfo comes from the PublishTrack response
1064
+ * and the FfiClient musts wait for it before firing this event
1065
+ *
1066
+ * @generated from field: string track_sid = 1;
1067
+ */
1068
+ trackSid: string;
1069
+ constructor(data?: PartialMessage<LocalTrackPublished>);
1070
+ static readonly runtime: typeof proto3;
1071
+ static readonly typeName = "livekit.proto.LocalTrackPublished";
1072
+ static readonly fields: FieldList;
1073
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): LocalTrackPublished;
1074
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): LocalTrackPublished;
1075
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): LocalTrackPublished;
1076
+ static equals(a: LocalTrackPublished | PlainMessage<LocalTrackPublished> | undefined, b: LocalTrackPublished | PlainMessage<LocalTrackPublished> | undefined): boolean;
1077
+ }
1078
+ /**
1079
+ * @generated from message livekit.proto.LocalTrackUnpublished
1080
+ */
1081
+ export declare class LocalTrackUnpublished extends Message<LocalTrackUnpublished> {
1082
+ /**
1083
+ * @generated from field: string publication_sid = 1;
1084
+ */
1085
+ publicationSid: string;
1086
+ constructor(data?: PartialMessage<LocalTrackUnpublished>);
1087
+ static readonly runtime: typeof proto3;
1088
+ static readonly typeName = "livekit.proto.LocalTrackUnpublished";
1089
+ static readonly fields: FieldList;
1090
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): LocalTrackUnpublished;
1091
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): LocalTrackUnpublished;
1092
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): LocalTrackUnpublished;
1093
+ static equals(a: LocalTrackUnpublished | PlainMessage<LocalTrackUnpublished> | undefined, b: LocalTrackUnpublished | PlainMessage<LocalTrackUnpublished> | undefined): boolean;
1094
+ }
1095
+ /**
1096
+ * @generated from message livekit.proto.TrackPublished
1097
+ */
1098
+ export declare class TrackPublished extends Message<TrackPublished> {
1099
+ /**
1100
+ * @generated from field: string participant_sid = 1;
1101
+ */
1102
+ participantSid: string;
1103
+ /**
1104
+ * @generated from field: livekit.proto.OwnedTrackPublication publication = 2;
1105
+ */
1106
+ publication?: OwnedTrackPublication;
1107
+ constructor(data?: PartialMessage<TrackPublished>);
1108
+ static readonly runtime: typeof proto3;
1109
+ static readonly typeName = "livekit.proto.TrackPublished";
1110
+ static readonly fields: FieldList;
1111
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): TrackPublished;
1112
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): TrackPublished;
1113
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): TrackPublished;
1114
+ static equals(a: TrackPublished | PlainMessage<TrackPublished> | undefined, b: TrackPublished | PlainMessage<TrackPublished> | undefined): boolean;
1115
+ }
1116
+ /**
1117
+ * @generated from message livekit.proto.TrackUnpublished
1118
+ */
1119
+ export declare class TrackUnpublished extends Message<TrackUnpublished> {
1120
+ /**
1121
+ * @generated from field: string participant_sid = 1;
1122
+ */
1123
+ participantSid: string;
1124
+ /**
1125
+ * @generated from field: string publication_sid = 2;
1126
+ */
1127
+ publicationSid: string;
1128
+ constructor(data?: PartialMessage<TrackUnpublished>);
1129
+ static readonly runtime: typeof proto3;
1130
+ static readonly typeName = "livekit.proto.TrackUnpublished";
1131
+ static readonly fields: FieldList;
1132
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): TrackUnpublished;
1133
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): TrackUnpublished;
1134
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): TrackUnpublished;
1135
+ static equals(a: TrackUnpublished | PlainMessage<TrackUnpublished> | undefined, b: TrackUnpublished | PlainMessage<TrackUnpublished> | undefined): boolean;
1136
+ }
1137
+ /**
1138
+ * Publication isn't needed for subscription events on the FFI
1139
+ * The FFI will retrieve the publication using the Track sid
1140
+ *
1141
+ * @generated from message livekit.proto.TrackSubscribed
1142
+ */
1143
+ export declare class TrackSubscribed extends Message<TrackSubscribed> {
1144
+ /**
1145
+ * @generated from field: string participant_sid = 1;
1146
+ */
1147
+ participantSid: string;
1148
+ /**
1149
+ * @generated from field: livekit.proto.OwnedTrack track = 2;
1150
+ */
1151
+ track?: OwnedTrack;
1152
+ constructor(data?: PartialMessage<TrackSubscribed>);
1153
+ static readonly runtime: typeof proto3;
1154
+ static readonly typeName = "livekit.proto.TrackSubscribed";
1155
+ static readonly fields: FieldList;
1156
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): TrackSubscribed;
1157
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): TrackSubscribed;
1158
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): TrackSubscribed;
1159
+ static equals(a: TrackSubscribed | PlainMessage<TrackSubscribed> | undefined, b: TrackSubscribed | PlainMessage<TrackSubscribed> | undefined): boolean;
1160
+ }
1161
+ /**
1162
+ * @generated from message livekit.proto.TrackUnsubscribed
1163
+ */
1164
+ export declare class TrackUnsubscribed extends Message<TrackUnsubscribed> {
1165
+ /**
1166
+ * The FFI language can dispose/remove the VideoSink here
1167
+ *
1168
+ * @generated from field: string participant_sid = 1;
1169
+ */
1170
+ participantSid: string;
1171
+ /**
1172
+ * @generated from field: string track_sid = 2;
1173
+ */
1174
+ trackSid: string;
1175
+ constructor(data?: PartialMessage<TrackUnsubscribed>);
1176
+ static readonly runtime: typeof proto3;
1177
+ static readonly typeName = "livekit.proto.TrackUnsubscribed";
1178
+ static readonly fields: FieldList;
1179
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): TrackUnsubscribed;
1180
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): TrackUnsubscribed;
1181
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): TrackUnsubscribed;
1182
+ static equals(a: TrackUnsubscribed | PlainMessage<TrackUnsubscribed> | undefined, b: TrackUnsubscribed | PlainMessage<TrackUnsubscribed> | undefined): boolean;
1183
+ }
1184
+ /**
1185
+ * @generated from message livekit.proto.TrackSubscriptionFailed
1186
+ */
1187
+ export declare class TrackSubscriptionFailed extends Message<TrackSubscriptionFailed> {
1188
+ /**
1189
+ * @generated from field: string participant_sid = 1;
1190
+ */
1191
+ participantSid: string;
1192
+ /**
1193
+ * @generated from field: string track_sid = 2;
1194
+ */
1195
+ trackSid: string;
1196
+ /**
1197
+ * @generated from field: string error = 3;
1198
+ */
1199
+ error: string;
1200
+ constructor(data?: PartialMessage<TrackSubscriptionFailed>);
1201
+ static readonly runtime: typeof proto3;
1202
+ static readonly typeName = "livekit.proto.TrackSubscriptionFailed";
1203
+ static readonly fields: FieldList;
1204
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): TrackSubscriptionFailed;
1205
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): TrackSubscriptionFailed;
1206
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): TrackSubscriptionFailed;
1207
+ static equals(a: TrackSubscriptionFailed | PlainMessage<TrackSubscriptionFailed> | undefined, b: TrackSubscriptionFailed | PlainMessage<TrackSubscriptionFailed> | undefined): boolean;
1208
+ }
1209
+ /**
1210
+ * @generated from message livekit.proto.TrackMuted
1211
+ */
1212
+ export declare class TrackMuted extends Message<TrackMuted> {
1213
+ /**
1214
+ * @generated from field: string participant_sid = 1;
1215
+ */
1216
+ participantSid: string;
1217
+ /**
1218
+ * @generated from field: string track_sid = 2;
1219
+ */
1220
+ trackSid: string;
1221
+ constructor(data?: PartialMessage<TrackMuted>);
1222
+ static readonly runtime: typeof proto3;
1223
+ static readonly typeName = "livekit.proto.TrackMuted";
1224
+ static readonly fields: FieldList;
1225
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): TrackMuted;
1226
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): TrackMuted;
1227
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): TrackMuted;
1228
+ static equals(a: TrackMuted | PlainMessage<TrackMuted> | undefined, b: TrackMuted | PlainMessage<TrackMuted> | undefined): boolean;
1229
+ }
1230
+ /**
1231
+ * @generated from message livekit.proto.TrackUnmuted
1232
+ */
1233
+ export declare class TrackUnmuted extends Message<TrackUnmuted> {
1234
+ /**
1235
+ * @generated from field: string participant_sid = 1;
1236
+ */
1237
+ participantSid: string;
1238
+ /**
1239
+ * @generated from field: string track_sid = 2;
1240
+ */
1241
+ trackSid: string;
1242
+ constructor(data?: PartialMessage<TrackUnmuted>);
1243
+ static readonly runtime: typeof proto3;
1244
+ static readonly typeName = "livekit.proto.TrackUnmuted";
1245
+ static readonly fields: FieldList;
1246
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): TrackUnmuted;
1247
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): TrackUnmuted;
1248
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): TrackUnmuted;
1249
+ static equals(a: TrackUnmuted | PlainMessage<TrackUnmuted> | undefined, b: TrackUnmuted | PlainMessage<TrackUnmuted> | undefined): boolean;
1250
+ }
1251
+ /**
1252
+ * @generated from message livekit.proto.E2eeStateChanged
1253
+ */
1254
+ export declare class E2eeStateChanged extends Message<E2eeStateChanged> {
1255
+ /**
1256
+ * Using sid instead of identity for ffi communication
1257
+ *
1258
+ * @generated from field: string participant_sid = 1;
1259
+ */
1260
+ participantSid: string;
1261
+ /**
1262
+ * @generated from field: livekit.proto.EncryptionState state = 2;
1263
+ */
1264
+ state: EncryptionState;
1265
+ constructor(data?: PartialMessage<E2eeStateChanged>);
1266
+ static readonly runtime: typeof proto3;
1267
+ static readonly typeName = "livekit.proto.E2eeStateChanged";
1268
+ static readonly fields: FieldList;
1269
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): E2eeStateChanged;
1270
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): E2eeStateChanged;
1271
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): E2eeStateChanged;
1272
+ static equals(a: E2eeStateChanged | PlainMessage<E2eeStateChanged> | undefined, b: E2eeStateChanged | PlainMessage<E2eeStateChanged> | undefined): boolean;
1273
+ }
1274
+ /**
1275
+ * @generated from message livekit.proto.ActiveSpeakersChanged
1276
+ */
1277
+ export declare class ActiveSpeakersChanged extends Message<ActiveSpeakersChanged> {
1278
+ /**
1279
+ * @generated from field: repeated string participant_sids = 1;
1280
+ */
1281
+ participantSids: string[];
1282
+ constructor(data?: PartialMessage<ActiveSpeakersChanged>);
1283
+ static readonly runtime: typeof proto3;
1284
+ static readonly typeName = "livekit.proto.ActiveSpeakersChanged";
1285
+ static readonly fields: FieldList;
1286
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ActiveSpeakersChanged;
1287
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ActiveSpeakersChanged;
1288
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ActiveSpeakersChanged;
1289
+ static equals(a: ActiveSpeakersChanged | PlainMessage<ActiveSpeakersChanged> | undefined, b: ActiveSpeakersChanged | PlainMessage<ActiveSpeakersChanged> | undefined): boolean;
1290
+ }
1291
+ /**
1292
+ * @generated from message livekit.proto.RoomMetadataChanged
1293
+ */
1294
+ export declare class RoomMetadataChanged extends Message<RoomMetadataChanged> {
1295
+ /**
1296
+ * @generated from field: string metadata = 1;
1297
+ */
1298
+ metadata: string;
1299
+ constructor(data?: PartialMessage<RoomMetadataChanged>);
1300
+ static readonly runtime: typeof proto3;
1301
+ static readonly typeName = "livekit.proto.RoomMetadataChanged";
1302
+ static readonly fields: FieldList;
1303
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): RoomMetadataChanged;
1304
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): RoomMetadataChanged;
1305
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): RoomMetadataChanged;
1306
+ static equals(a: RoomMetadataChanged | PlainMessage<RoomMetadataChanged> | undefined, b: RoomMetadataChanged | PlainMessage<RoomMetadataChanged> | undefined): boolean;
1307
+ }
1308
+ /**
1309
+ * @generated from message livekit.proto.ParticipantMetadataChanged
1310
+ */
1311
+ export declare class ParticipantMetadataChanged extends Message<ParticipantMetadataChanged> {
1312
+ /**
1313
+ * @generated from field: string participant_sid = 1;
1314
+ */
1315
+ participantSid: string;
1316
+ /**
1317
+ * @generated from field: string metadata = 2;
1318
+ */
1319
+ metadata: string;
1320
+ constructor(data?: PartialMessage<ParticipantMetadataChanged>);
1321
+ static readonly runtime: typeof proto3;
1322
+ static readonly typeName = "livekit.proto.ParticipantMetadataChanged";
1323
+ static readonly fields: FieldList;
1324
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ParticipantMetadataChanged;
1325
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ParticipantMetadataChanged;
1326
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ParticipantMetadataChanged;
1327
+ static equals(a: ParticipantMetadataChanged | PlainMessage<ParticipantMetadataChanged> | undefined, b: ParticipantMetadataChanged | PlainMessage<ParticipantMetadataChanged> | undefined): boolean;
1328
+ }
1329
+ /**
1330
+ * @generated from message livekit.proto.ParticipantNameChanged
1331
+ */
1332
+ export declare class ParticipantNameChanged extends Message<ParticipantNameChanged> {
1333
+ /**
1334
+ * @generated from field: string participant_sid = 1;
1335
+ */
1336
+ participantSid: string;
1337
+ /**
1338
+ * @generated from field: string name = 2;
1339
+ */
1340
+ name: string;
1341
+ constructor(data?: PartialMessage<ParticipantNameChanged>);
1342
+ static readonly runtime: typeof proto3;
1343
+ static readonly typeName = "livekit.proto.ParticipantNameChanged";
1344
+ static readonly fields: FieldList;
1345
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ParticipantNameChanged;
1346
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ParticipantNameChanged;
1347
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ParticipantNameChanged;
1348
+ static equals(a: ParticipantNameChanged | PlainMessage<ParticipantNameChanged> | undefined, b: ParticipantNameChanged | PlainMessage<ParticipantNameChanged> | undefined): boolean;
1349
+ }
1350
+ /**
1351
+ * @generated from message livekit.proto.ConnectionQualityChanged
1352
+ */
1353
+ export declare class ConnectionQualityChanged extends Message<ConnectionQualityChanged> {
1354
+ /**
1355
+ * @generated from field: string participant_sid = 1;
1356
+ */
1357
+ participantSid: string;
1358
+ /**
1359
+ * @generated from field: livekit.proto.ConnectionQuality quality = 2;
1360
+ */
1361
+ quality: ConnectionQuality;
1362
+ constructor(data?: PartialMessage<ConnectionQualityChanged>);
1363
+ static readonly runtime: typeof proto3;
1364
+ static readonly typeName = "livekit.proto.ConnectionQualityChanged";
1365
+ static readonly fields: FieldList;
1366
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ConnectionQualityChanged;
1367
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ConnectionQualityChanged;
1368
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ConnectionQualityChanged;
1369
+ static equals(a: ConnectionQualityChanged | PlainMessage<ConnectionQualityChanged> | undefined, b: ConnectionQualityChanged | PlainMessage<ConnectionQualityChanged> | undefined): boolean;
1370
+ }
1371
+ /**
1372
+ * @generated from message livekit.proto.DataReceived
1373
+ */
1374
+ export declare class DataReceived extends Message<DataReceived> {
1375
+ /**
1376
+ * @generated from field: livekit.proto.OwnedBuffer data = 1;
1377
+ */
1378
+ data?: OwnedBuffer;
1379
+ /**
1380
+ * Can be empty if the data is sent a server SDK
1381
+ *
1382
+ * @generated from field: optional string participant_sid = 2;
1383
+ */
1384
+ participantSid?: string;
1385
+ /**
1386
+ * @generated from field: livekit.proto.DataPacketKind kind = 3;
1387
+ */
1388
+ kind: DataPacketKind;
1389
+ constructor(data?: PartialMessage<DataReceived>);
1390
+ static readonly runtime: typeof proto3;
1391
+ static readonly typeName = "livekit.proto.DataReceived";
1392
+ static readonly fields: FieldList;
1393
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): DataReceived;
1394
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): DataReceived;
1395
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): DataReceived;
1396
+ static equals(a: DataReceived | PlainMessage<DataReceived> | undefined, b: DataReceived | PlainMessage<DataReceived> | undefined): boolean;
1397
+ }
1398
+ /**
1399
+ * @generated from message livekit.proto.ConnectionStateChanged
1400
+ */
1401
+ export declare class ConnectionStateChanged extends Message<ConnectionStateChanged> {
1402
+ /**
1403
+ * @generated from field: livekit.proto.ConnectionState state = 1;
1404
+ */
1405
+ state: ConnectionState;
1406
+ constructor(data?: PartialMessage<ConnectionStateChanged>);
1407
+ static readonly runtime: typeof proto3;
1408
+ static readonly typeName = "livekit.proto.ConnectionStateChanged";
1409
+ static readonly fields: FieldList;
1410
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ConnectionStateChanged;
1411
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ConnectionStateChanged;
1412
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ConnectionStateChanged;
1413
+ static equals(a: ConnectionStateChanged | PlainMessage<ConnectionStateChanged> | undefined, b: ConnectionStateChanged | PlainMessage<ConnectionStateChanged> | undefined): boolean;
1414
+ }
1415
+ /**
1416
+ * @generated from message livekit.proto.Connected
1417
+ */
1418
+ export declare class Connected extends Message<Connected> {
1419
+ constructor(data?: PartialMessage<Connected>);
1420
+ static readonly runtime: typeof proto3;
1421
+ static readonly typeName = "livekit.proto.Connected";
1422
+ static readonly fields: FieldList;
1423
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Connected;
1424
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Connected;
1425
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Connected;
1426
+ static equals(a: Connected | PlainMessage<Connected> | undefined, b: Connected | PlainMessage<Connected> | undefined): boolean;
1427
+ }
1428
+ /**
1429
+ * @generated from message livekit.proto.Disconnected
1430
+ */
1431
+ export declare class Disconnected extends Message<Disconnected> {
1432
+ constructor(data?: PartialMessage<Disconnected>);
1433
+ static readonly runtime: typeof proto3;
1434
+ static readonly typeName = "livekit.proto.Disconnected";
1435
+ static readonly fields: FieldList;
1436
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Disconnected;
1437
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Disconnected;
1438
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Disconnected;
1439
+ static equals(a: Disconnected | PlainMessage<Disconnected> | undefined, b: Disconnected | PlainMessage<Disconnected> | undefined): boolean;
1440
+ }
1441
+ /**
1442
+ * @generated from message livekit.proto.Reconnecting
1443
+ */
1444
+ export declare class Reconnecting extends Message<Reconnecting> {
1445
+ constructor(data?: PartialMessage<Reconnecting>);
1446
+ static readonly runtime: typeof proto3;
1447
+ static readonly typeName = "livekit.proto.Reconnecting";
1448
+ static readonly fields: FieldList;
1449
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Reconnecting;
1450
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Reconnecting;
1451
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Reconnecting;
1452
+ static equals(a: Reconnecting | PlainMessage<Reconnecting> | undefined, b: Reconnecting | PlainMessage<Reconnecting> | undefined): boolean;
1453
+ }
1454
+ /**
1455
+ * @generated from message livekit.proto.Reconnected
1456
+ */
1457
+ export declare class Reconnected extends Message<Reconnected> {
1458
+ constructor(data?: PartialMessage<Reconnected>);
1459
+ static readonly runtime: typeof proto3;
1460
+ static readonly typeName = "livekit.proto.Reconnected";
1461
+ static readonly fields: FieldList;
1462
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Reconnected;
1463
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Reconnected;
1464
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Reconnected;
1465
+ static equals(a: Reconnected | PlainMessage<Reconnected> | undefined, b: Reconnected | PlainMessage<Reconnected> | undefined): boolean;
1466
+ }
1467
+ /**
1468
+ * @generated from message livekit.proto.RoomEOS
1469
+ */
1470
+ export declare class RoomEOS extends Message<RoomEOS> {
1471
+ constructor(data?: PartialMessage<RoomEOS>);
1472
+ static readonly runtime: typeof proto3;
1473
+ static readonly typeName = "livekit.proto.RoomEOS";
1474
+ static readonly fields: FieldList;
1475
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): RoomEOS;
1476
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): RoomEOS;
1477
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): RoomEOS;
1478
+ static equals(a: RoomEOS | PlainMessage<RoomEOS> | undefined, b: RoomEOS | PlainMessage<RoomEOS> | undefined): boolean;
1479
+ }