@livekit/rtc-node 0.0.2 → 0.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (121) hide show
  1. package/Cargo.toml +21 -0
  2. package/build.rs +5 -0
  3. package/dist/audio_frame.d.ts +14 -0
  4. package/dist/audio_frame.d.ts.map +1 -0
  5. package/dist/audio_frame.js +36 -0
  6. package/dist/audio_frame.js.map +1 -0
  7. package/dist/audio_source.d.ts +14 -0
  8. package/dist/audio_source.d.ts.map +1 -0
  9. package/dist/audio_source.js +42 -0
  10. package/dist/audio_source.js.map +1 -0
  11. package/dist/audio_stream.d.ts +24 -0
  12. package/dist/audio_stream.d.ts.map +1 -0
  13. package/dist/audio_stream.js +54 -0
  14. package/dist/audio_stream.js.map +1 -0
  15. package/dist/e2ee.d.ts +44 -0
  16. package/dist/e2ee.d.ts.map +1 -0
  17. package/dist/e2ee.js +232 -0
  18. package/dist/e2ee.js.map +1 -0
  19. package/dist/ffi_client.d.ts +23 -0
  20. package/dist/ffi_client.d.ts.map +1 -0
  21. package/dist/ffi_client.js +57 -0
  22. package/dist/ffi_client.js.map +1 -0
  23. package/dist/index.d.ts +16 -0
  24. package/dist/index.d.ts.map +1 -0
  25. package/dist/index.js +71 -0
  26. package/dist/index.js.map +1 -0
  27. package/dist/native.d.ts +14 -0
  28. package/dist/native.d.ts.map +1 -0
  29. package/dist/native.js +297 -0
  30. package/dist/native.js.map +1 -0
  31. package/dist/participant.d.ts +30 -0
  32. package/dist/participant.d.ts.map +1 -0
  33. package/dist/participant.js +120 -0
  34. package/dist/participant.js.map +1 -0
  35. package/dist/proto/audio_frame_pb.d.ts +556 -0
  36. package/dist/proto/audio_frame_pb.d.ts.map +1 -0
  37. package/dist/proto/audio_frame_pb.js +861 -0
  38. package/dist/proto/audio_frame_pb.js.map +1 -0
  39. package/dist/proto/e2ee_pb.d.ts +652 -0
  40. package/dist/proto/e2ee_pb.d.ts.map +1 -0
  41. package/dist/proto/e2ee_pb.js +906 -0
  42. package/dist/proto/e2ee_pb.js.map +1 -0
  43. package/dist/proto/ffi_pb.d.ts +672 -0
  44. package/dist/proto/ffi_pb.d.ts.map +1 -0
  45. package/dist/proto/ffi_pb.js +459 -0
  46. package/dist/proto/ffi_pb.js.map +1 -0
  47. package/dist/proto/handle_pb.d.ts +30 -0
  48. package/dist/proto/handle_pb.d.ts.map +1 -0
  49. package/dist/proto/handle_pb.js +59 -0
  50. package/dist/proto/handle_pb.js.map +1 -0
  51. package/dist/proto/participant_pb.d.ts +54 -0
  52. package/dist/proto/participant_pb.d.ts.map +1 -0
  53. package/dist/proto/participant_pb.js +93 -0
  54. package/dist/proto/participant_pb.js.map +1 -0
  55. package/dist/proto/room_pb.d.ts +1480 -0
  56. package/dist/proto/room_pb.d.ts.map +1 -0
  57. package/dist/proto/room_pb.js +2172 -0
  58. package/dist/proto/room_pb.js.map +1 -0
  59. package/dist/proto/stats_pb.d.ts +1713 -0
  60. package/dist/proto/stats_pb.d.ts.map +1 -0
  61. package/dist/proto/stats_pb.js +2238 -0
  62. package/dist/proto/stats_pb.js.map +1 -0
  63. package/dist/proto/track_pb.d.ts +353 -0
  64. package/dist/proto/track_pb.d.ts.map +1 -0
  65. package/dist/proto/track_pb.js +550 -0
  66. package/dist/proto/track_pb.js.map +1 -0
  67. package/dist/proto/video_frame_pb.d.ts +855 -0
  68. package/dist/proto/video_frame_pb.d.ts.map +1 -0
  69. package/dist/proto/video_frame_pb.js +1214 -0
  70. package/dist/proto/video_frame_pb.js.map +1 -0
  71. package/dist/room.d.ts +95 -0
  72. package/dist/room.d.ts.map +1 -0
  73. package/dist/room.js +285 -0
  74. package/dist/room.js.map +1 -0
  75. package/dist/track.d.ts +35 -0
  76. package/dist/track.d.ts.map +1 -0
  77. package/dist/track.js +72 -0
  78. package/dist/track.js.map +1 -0
  79. package/dist/track_publication.d.ts +31 -0
  80. package/dist/track_publication.d.ts.map +1 -0
  81. package/dist/track_publication.js +66 -0
  82. package/dist/track_publication.js.map +1 -0
  83. package/dist/video_frame.d.ts +111 -0
  84. package/dist/video_frame.d.ts.map +1 -0
  85. package/dist/video_frame.js +364 -0
  86. package/dist/video_frame.js.map +1 -0
  87. package/dist/video_source.d.ts +14 -0
  88. package/dist/video_source.d.ts.map +1 -0
  89. package/dist/video_source.js +44 -0
  90. package/dist/video_source.js.map +1 -0
  91. package/dist/video_stream.d.ts +24 -0
  92. package/dist/video_stream.d.ts.map +1 -0
  93. package/dist/video_stream.js +56 -0
  94. package/dist/video_stream.js.map +1 -0
  95. package/package.json +19 -14
  96. package/src/audio_frame.ts +45 -0
  97. package/src/audio_source.ts +64 -0
  98. package/src/audio_stream.ts +74 -0
  99. package/src/e2ee.ts +311 -0
  100. package/src/ffi_client.ts +68 -0
  101. package/src/index.ts +52 -0
  102. package/src/lib.rs +5 -0
  103. package/src/native.d.ts +14 -0
  104. package/src/native.js +269 -0
  105. package/src/nodejs.rs +115 -0
  106. package/src/participant.ts +171 -0
  107. package/src/proto/audio_frame_pb.ts +1121 -0
  108. package/src/proto/e2ee_pb.ts +1231 -0
  109. package/src/proto/ffi_pb.ts +969 -0
  110. package/src/proto/handle_pb.ts +69 -0
  111. package/src/proto/participant_pb.ts +121 -0
  112. package/src/proto/room_pb.ts +2843 -0
  113. package/src/proto/stats_pb.ts +2955 -0
  114. package/src/proto/track_pb.ts +683 -0
  115. package/src/proto/video_frame_pb.ts +1568 -0
  116. package/src/room.ts +370 -0
  117. package/src/track.ts +101 -0
  118. package/src/track_publication.ts +90 -0
  119. package/src/video_frame.ts +620 -0
  120. package/src/video_source.ts +61 -0
  121. package/src/video_stream.ts +76 -0
@@ -0,0 +1,672 @@
1
+ import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf";
2
+ import { Message, proto3 } from "@bufbuild/protobuf";
3
+ import { ConnectCallback, ConnectRequest, ConnectResponse, DisconnectCallback, DisconnectRequest, DisconnectResponse, PublishDataCallback, PublishDataRequest, PublishDataResponse, PublishTrackCallback, PublishTrackRequest, PublishTrackResponse, RoomEvent, SetSubscribedRequest, SetSubscribedResponse, UnpublishTrackCallback, UnpublishTrackRequest, UnpublishTrackResponse, UpdateLocalMetadataCallback, UpdateLocalMetadataRequest, UpdateLocalMetadataResponse, UpdateLocalNameCallback, UpdateLocalNameRequest, UpdateLocalNameResponse } from "./room_pb.js";
4
+ import { CreateAudioTrackRequest, CreateAudioTrackResponse, CreateVideoTrackRequest, CreateVideoTrackResponse, GetStatsCallback, GetStatsRequest, GetStatsResponse, TrackEvent } from "./track_pb.js";
5
+ import { AllocVideoBufferRequest, AllocVideoBufferResponse, CaptureVideoFrameRequest, CaptureVideoFrameResponse, NewVideoSourceRequest, NewVideoSourceResponse, NewVideoStreamRequest, NewVideoStreamResponse, ToArgbRequest, ToArgbResponse, ToI420Request, ToI420Response, VideoStreamEvent } from "./video_frame_pb.js";
6
+ import { AllocAudioBufferRequest, AllocAudioBufferResponse, AudioStreamEvent, CaptureAudioFrameCallback, CaptureAudioFrameRequest, CaptureAudioFrameResponse, NewAudioResamplerRequest, NewAudioResamplerResponse, NewAudioSourceRequest, NewAudioSourceResponse, NewAudioStreamRequest, NewAudioStreamResponse, RemixAndResampleRequest, RemixAndResampleResponse } from "./audio_frame_pb.js";
7
+ import { E2eeRequest, E2eeResponse } from "./e2ee_pb.js";
8
+ /**
9
+ * @generated from enum livekit.proto.LogLevel
10
+ */
11
+ export declare enum LogLevel {
12
+ /**
13
+ * @generated from enum value: LOG_ERROR = 0;
14
+ */
15
+ LOG_ERROR = 0,
16
+ /**
17
+ * @generated from enum value: LOG_WARN = 1;
18
+ */
19
+ LOG_WARN = 1,
20
+ /**
21
+ * @generated from enum value: LOG_INFO = 2;
22
+ */
23
+ LOG_INFO = 2,
24
+ /**
25
+ * @generated from enum value: LOG_DEBUG = 3;
26
+ */
27
+ LOG_DEBUG = 3,
28
+ /**
29
+ * @generated from enum value: LOG_TRACE = 4;
30
+ */
31
+ LOG_TRACE = 4
32
+ }
33
+ /**
34
+ * This is the input of livekit_ffi_request function
35
+ * We always expect a response (FFIResponse, even if it's empty)
36
+ *
37
+ * @generated from message livekit.proto.FfiRequest
38
+ */
39
+ export declare class FfiRequest extends Message<FfiRequest> {
40
+ /**
41
+ * @generated from oneof livekit.proto.FfiRequest.message
42
+ */
43
+ message: {
44
+ /**
45
+ * @generated from field: livekit.proto.InitializeRequest initialize = 1;
46
+ */
47
+ value: InitializeRequest;
48
+ case: "initialize";
49
+ } | {
50
+ /**
51
+ * @generated from field: livekit.proto.DisposeRequest dispose = 2;
52
+ */
53
+ value: DisposeRequest;
54
+ case: "dispose";
55
+ } | {
56
+ /**
57
+ * Room
58
+ *
59
+ * @generated from field: livekit.proto.ConnectRequest connect = 3;
60
+ */
61
+ value: ConnectRequest;
62
+ case: "connect";
63
+ } | {
64
+ /**
65
+ * @generated from field: livekit.proto.DisconnectRequest disconnect = 4;
66
+ */
67
+ value: DisconnectRequest;
68
+ case: "disconnect";
69
+ } | {
70
+ /**
71
+ * @generated from field: livekit.proto.PublishTrackRequest publish_track = 5;
72
+ */
73
+ value: PublishTrackRequest;
74
+ case: "publishTrack";
75
+ } | {
76
+ /**
77
+ * @generated from field: livekit.proto.UnpublishTrackRequest unpublish_track = 6;
78
+ */
79
+ value: UnpublishTrackRequest;
80
+ case: "unpublishTrack";
81
+ } | {
82
+ /**
83
+ * @generated from field: livekit.proto.PublishDataRequest publish_data = 7;
84
+ */
85
+ value: PublishDataRequest;
86
+ case: "publishData";
87
+ } | {
88
+ /**
89
+ * @generated from field: livekit.proto.SetSubscribedRequest set_subscribed = 8;
90
+ */
91
+ value: SetSubscribedRequest;
92
+ case: "setSubscribed";
93
+ } | {
94
+ /**
95
+ * @generated from field: livekit.proto.UpdateLocalMetadataRequest update_local_metadata = 9;
96
+ */
97
+ value: UpdateLocalMetadataRequest;
98
+ case: "updateLocalMetadata";
99
+ } | {
100
+ /**
101
+ * @generated from field: livekit.proto.UpdateLocalNameRequest update_local_name = 10;
102
+ */
103
+ value: UpdateLocalNameRequest;
104
+ case: "updateLocalName";
105
+ } | {
106
+ /**
107
+ * Track
108
+ *
109
+ * @generated from field: livekit.proto.CreateVideoTrackRequest create_video_track = 11;
110
+ */
111
+ value: CreateVideoTrackRequest;
112
+ case: "createVideoTrack";
113
+ } | {
114
+ /**
115
+ * @generated from field: livekit.proto.CreateAudioTrackRequest create_audio_track = 12;
116
+ */
117
+ value: CreateAudioTrackRequest;
118
+ case: "createAudioTrack";
119
+ } | {
120
+ /**
121
+ * @generated from field: livekit.proto.GetStatsRequest get_stats = 13;
122
+ */
123
+ value: GetStatsRequest;
124
+ case: "getStats";
125
+ } | {
126
+ /**
127
+ * Video
128
+ *
129
+ * @generated from field: livekit.proto.AllocVideoBufferRequest alloc_video_buffer = 14;
130
+ */
131
+ value: AllocVideoBufferRequest;
132
+ case: "allocVideoBuffer";
133
+ } | {
134
+ /**
135
+ * @generated from field: livekit.proto.NewVideoStreamRequest new_video_stream = 15;
136
+ */
137
+ value: NewVideoStreamRequest;
138
+ case: "newVideoStream";
139
+ } | {
140
+ /**
141
+ * @generated from field: livekit.proto.NewVideoSourceRequest new_video_source = 16;
142
+ */
143
+ value: NewVideoSourceRequest;
144
+ case: "newVideoSource";
145
+ } | {
146
+ /**
147
+ * @generated from field: livekit.proto.CaptureVideoFrameRequest capture_video_frame = 17;
148
+ */
149
+ value: CaptureVideoFrameRequest;
150
+ case: "captureVideoFrame";
151
+ } | {
152
+ /**
153
+ * @generated from field: livekit.proto.ToI420Request to_i420 = 18;
154
+ */
155
+ value: ToI420Request;
156
+ case: "toI420";
157
+ } | {
158
+ /**
159
+ * @generated from field: livekit.proto.ToArgbRequest to_argb = 19;
160
+ */
161
+ value: ToArgbRequest;
162
+ case: "toArgb";
163
+ } | {
164
+ /**
165
+ * Audio
166
+ *
167
+ * @generated from field: livekit.proto.AllocAudioBufferRequest alloc_audio_buffer = 20;
168
+ */
169
+ value: AllocAudioBufferRequest;
170
+ case: "allocAudioBuffer";
171
+ } | {
172
+ /**
173
+ * @generated from field: livekit.proto.NewAudioStreamRequest new_audio_stream = 21;
174
+ */
175
+ value: NewAudioStreamRequest;
176
+ case: "newAudioStream";
177
+ } | {
178
+ /**
179
+ * @generated from field: livekit.proto.NewAudioSourceRequest new_audio_source = 22;
180
+ */
181
+ value: NewAudioSourceRequest;
182
+ case: "newAudioSource";
183
+ } | {
184
+ /**
185
+ * @generated from field: livekit.proto.CaptureAudioFrameRequest capture_audio_frame = 23;
186
+ */
187
+ value: CaptureAudioFrameRequest;
188
+ case: "captureAudioFrame";
189
+ } | {
190
+ /**
191
+ * @generated from field: livekit.proto.NewAudioResamplerRequest new_audio_resampler = 24;
192
+ */
193
+ value: NewAudioResamplerRequest;
194
+ case: "newAudioResampler";
195
+ } | {
196
+ /**
197
+ * @generated from field: livekit.proto.RemixAndResampleRequest remix_and_resample = 25;
198
+ */
199
+ value: RemixAndResampleRequest;
200
+ case: "remixAndResample";
201
+ } | {
202
+ /**
203
+ * @generated from field: livekit.proto.E2eeRequest e2ee = 26;
204
+ */
205
+ value: E2eeRequest;
206
+ case: "e2ee";
207
+ } | {
208
+ case: undefined;
209
+ value?: undefined;
210
+ };
211
+ constructor(data?: PartialMessage<FfiRequest>);
212
+ static readonly runtime: typeof proto3;
213
+ static readonly typeName = "livekit.proto.FfiRequest";
214
+ static readonly fields: FieldList;
215
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): FfiRequest;
216
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): FfiRequest;
217
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): FfiRequest;
218
+ static equals(a: FfiRequest | PlainMessage<FfiRequest> | undefined, b: FfiRequest | PlainMessage<FfiRequest> | undefined): boolean;
219
+ }
220
+ /**
221
+ * This is the output of livekit_ffi_request function.
222
+ *
223
+ * @generated from message livekit.proto.FfiResponse
224
+ */
225
+ export declare class FfiResponse extends Message<FfiResponse> {
226
+ /**
227
+ * @generated from oneof livekit.proto.FfiResponse.message
228
+ */
229
+ message: {
230
+ /**
231
+ * @generated from field: livekit.proto.InitializeResponse initialize = 1;
232
+ */
233
+ value: InitializeResponse;
234
+ case: "initialize";
235
+ } | {
236
+ /**
237
+ * @generated from field: livekit.proto.DisposeResponse dispose = 2;
238
+ */
239
+ value: DisposeResponse;
240
+ case: "dispose";
241
+ } | {
242
+ /**
243
+ * Room
244
+ *
245
+ * @generated from field: livekit.proto.ConnectResponse connect = 3;
246
+ */
247
+ value: ConnectResponse;
248
+ case: "connect";
249
+ } | {
250
+ /**
251
+ * @generated from field: livekit.proto.DisconnectResponse disconnect = 4;
252
+ */
253
+ value: DisconnectResponse;
254
+ case: "disconnect";
255
+ } | {
256
+ /**
257
+ * @generated from field: livekit.proto.PublishTrackResponse publish_track = 5;
258
+ */
259
+ value: PublishTrackResponse;
260
+ case: "publishTrack";
261
+ } | {
262
+ /**
263
+ * @generated from field: livekit.proto.UnpublishTrackResponse unpublish_track = 6;
264
+ */
265
+ value: UnpublishTrackResponse;
266
+ case: "unpublishTrack";
267
+ } | {
268
+ /**
269
+ * @generated from field: livekit.proto.PublishDataResponse publish_data = 7;
270
+ */
271
+ value: PublishDataResponse;
272
+ case: "publishData";
273
+ } | {
274
+ /**
275
+ * @generated from field: livekit.proto.SetSubscribedResponse set_subscribed = 8;
276
+ */
277
+ value: SetSubscribedResponse;
278
+ case: "setSubscribed";
279
+ } | {
280
+ /**
281
+ * @generated from field: livekit.proto.UpdateLocalMetadataResponse update_local_metadata = 9;
282
+ */
283
+ value: UpdateLocalMetadataResponse;
284
+ case: "updateLocalMetadata";
285
+ } | {
286
+ /**
287
+ * @generated from field: livekit.proto.UpdateLocalNameResponse update_local_name = 10;
288
+ */
289
+ value: UpdateLocalNameResponse;
290
+ case: "updateLocalName";
291
+ } | {
292
+ /**
293
+ * Track
294
+ *
295
+ * @generated from field: livekit.proto.CreateVideoTrackResponse create_video_track = 11;
296
+ */
297
+ value: CreateVideoTrackResponse;
298
+ case: "createVideoTrack";
299
+ } | {
300
+ /**
301
+ * @generated from field: livekit.proto.CreateAudioTrackResponse create_audio_track = 12;
302
+ */
303
+ value: CreateAudioTrackResponse;
304
+ case: "createAudioTrack";
305
+ } | {
306
+ /**
307
+ * @generated from field: livekit.proto.GetStatsResponse get_stats = 13;
308
+ */
309
+ value: GetStatsResponse;
310
+ case: "getStats";
311
+ } | {
312
+ /**
313
+ * Video
314
+ *
315
+ * @generated from field: livekit.proto.AllocVideoBufferResponse alloc_video_buffer = 14;
316
+ */
317
+ value: AllocVideoBufferResponse;
318
+ case: "allocVideoBuffer";
319
+ } | {
320
+ /**
321
+ * @generated from field: livekit.proto.NewVideoStreamResponse new_video_stream = 15;
322
+ */
323
+ value: NewVideoStreamResponse;
324
+ case: "newVideoStream";
325
+ } | {
326
+ /**
327
+ * @generated from field: livekit.proto.NewVideoSourceResponse new_video_source = 16;
328
+ */
329
+ value: NewVideoSourceResponse;
330
+ case: "newVideoSource";
331
+ } | {
332
+ /**
333
+ * @generated from field: livekit.proto.CaptureVideoFrameResponse capture_video_frame = 17;
334
+ */
335
+ value: CaptureVideoFrameResponse;
336
+ case: "captureVideoFrame";
337
+ } | {
338
+ /**
339
+ * @generated from field: livekit.proto.ToI420Response to_i420 = 18;
340
+ */
341
+ value: ToI420Response;
342
+ case: "toI420";
343
+ } | {
344
+ /**
345
+ * @generated from field: livekit.proto.ToArgbResponse to_argb = 19;
346
+ */
347
+ value: ToArgbResponse;
348
+ case: "toArgb";
349
+ } | {
350
+ /**
351
+ * Audio
352
+ *
353
+ * @generated from field: livekit.proto.AllocAudioBufferResponse alloc_audio_buffer = 20;
354
+ */
355
+ value: AllocAudioBufferResponse;
356
+ case: "allocAudioBuffer";
357
+ } | {
358
+ /**
359
+ * @generated from field: livekit.proto.NewAudioStreamResponse new_audio_stream = 21;
360
+ */
361
+ value: NewAudioStreamResponse;
362
+ case: "newAudioStream";
363
+ } | {
364
+ /**
365
+ * @generated from field: livekit.proto.NewAudioSourceResponse new_audio_source = 22;
366
+ */
367
+ value: NewAudioSourceResponse;
368
+ case: "newAudioSource";
369
+ } | {
370
+ /**
371
+ * @generated from field: livekit.proto.CaptureAudioFrameResponse capture_audio_frame = 23;
372
+ */
373
+ value: CaptureAudioFrameResponse;
374
+ case: "captureAudioFrame";
375
+ } | {
376
+ /**
377
+ * @generated from field: livekit.proto.NewAudioResamplerResponse new_audio_resampler = 24;
378
+ */
379
+ value: NewAudioResamplerResponse;
380
+ case: "newAudioResampler";
381
+ } | {
382
+ /**
383
+ * @generated from field: livekit.proto.RemixAndResampleResponse remix_and_resample = 25;
384
+ */
385
+ value: RemixAndResampleResponse;
386
+ case: "remixAndResample";
387
+ } | {
388
+ /**
389
+ * @generated from field: livekit.proto.E2eeResponse e2ee = 26;
390
+ */
391
+ value: E2eeResponse;
392
+ case: "e2ee";
393
+ } | {
394
+ case: undefined;
395
+ value?: undefined;
396
+ };
397
+ constructor(data?: PartialMessage<FfiResponse>);
398
+ static readonly runtime: typeof proto3;
399
+ static readonly typeName = "livekit.proto.FfiResponse";
400
+ static readonly fields: FieldList;
401
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): FfiResponse;
402
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): FfiResponse;
403
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): FfiResponse;
404
+ static equals(a: FfiResponse | PlainMessage<FfiResponse> | undefined, b: FfiResponse | PlainMessage<FfiResponse> | undefined): boolean;
405
+ }
406
+ /**
407
+ * To minimize complexity, participant events are not included in the protocol.
408
+ * It is easily deducible from the room events and it turned out that is is easier to implement
409
+ * on the ffi client side.
410
+ *
411
+ * @generated from message livekit.proto.FfiEvent
412
+ */
413
+ export declare class FfiEvent extends Message<FfiEvent> {
414
+ /**
415
+ * @generated from oneof livekit.proto.FfiEvent.message
416
+ */
417
+ message: {
418
+ /**
419
+ * @generated from field: livekit.proto.RoomEvent room_event = 1;
420
+ */
421
+ value: RoomEvent;
422
+ case: "roomEvent";
423
+ } | {
424
+ /**
425
+ * @generated from field: livekit.proto.TrackEvent track_event = 2;
426
+ */
427
+ value: TrackEvent;
428
+ case: "trackEvent";
429
+ } | {
430
+ /**
431
+ * @generated from field: livekit.proto.VideoStreamEvent video_stream_event = 3;
432
+ */
433
+ value: VideoStreamEvent;
434
+ case: "videoStreamEvent";
435
+ } | {
436
+ /**
437
+ * @generated from field: livekit.proto.AudioStreamEvent audio_stream_event = 4;
438
+ */
439
+ value: AudioStreamEvent;
440
+ case: "audioStreamEvent";
441
+ } | {
442
+ /**
443
+ * @generated from field: livekit.proto.ConnectCallback connect = 5;
444
+ */
445
+ value: ConnectCallback;
446
+ case: "connect";
447
+ } | {
448
+ /**
449
+ * @generated from field: livekit.proto.DisconnectCallback disconnect = 6;
450
+ */
451
+ value: DisconnectCallback;
452
+ case: "disconnect";
453
+ } | {
454
+ /**
455
+ * @generated from field: livekit.proto.DisposeCallback dispose = 7;
456
+ */
457
+ value: DisposeCallback;
458
+ case: "dispose";
459
+ } | {
460
+ /**
461
+ * @generated from field: livekit.proto.PublishTrackCallback publish_track = 8;
462
+ */
463
+ value: PublishTrackCallback;
464
+ case: "publishTrack";
465
+ } | {
466
+ /**
467
+ * @generated from field: livekit.proto.UnpublishTrackCallback unpublish_track = 9;
468
+ */
469
+ value: UnpublishTrackCallback;
470
+ case: "unpublishTrack";
471
+ } | {
472
+ /**
473
+ * @generated from field: livekit.proto.PublishDataCallback publish_data = 10;
474
+ */
475
+ value: PublishDataCallback;
476
+ case: "publishData";
477
+ } | {
478
+ /**
479
+ * @generated from field: livekit.proto.CaptureAudioFrameCallback capture_audio_frame = 11;
480
+ */
481
+ value: CaptureAudioFrameCallback;
482
+ case: "captureAudioFrame";
483
+ } | {
484
+ /**
485
+ * @generated from field: livekit.proto.UpdateLocalMetadataCallback update_local_metadata = 12;
486
+ */
487
+ value: UpdateLocalMetadataCallback;
488
+ case: "updateLocalMetadata";
489
+ } | {
490
+ /**
491
+ * @generated from field: livekit.proto.UpdateLocalNameCallback update_local_name = 13;
492
+ */
493
+ value: UpdateLocalNameCallback;
494
+ case: "updateLocalName";
495
+ } | {
496
+ /**
497
+ * @generated from field: livekit.proto.GetStatsCallback get_stats = 14;
498
+ */
499
+ value: GetStatsCallback;
500
+ case: "getStats";
501
+ } | {
502
+ /**
503
+ * @generated from field: livekit.proto.LogBatch logs = 15;
504
+ */
505
+ value: LogBatch;
506
+ case: "logs";
507
+ } | {
508
+ case: undefined;
509
+ value?: undefined;
510
+ };
511
+ constructor(data?: PartialMessage<FfiEvent>);
512
+ static readonly runtime: typeof proto3;
513
+ static readonly typeName = "livekit.proto.FfiEvent";
514
+ static readonly fields: FieldList;
515
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): FfiEvent;
516
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): FfiEvent;
517
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): FfiEvent;
518
+ static equals(a: FfiEvent | PlainMessage<FfiEvent> | undefined, b: FfiEvent | PlainMessage<FfiEvent> | undefined): boolean;
519
+ }
520
+ /**
521
+ * Setup the callback where the foreign language can receive events
522
+ * and responses to asynchronous requests
523
+ *
524
+ * @generated from message livekit.proto.InitializeRequest
525
+ */
526
+ export declare class InitializeRequest extends Message<InitializeRequest> {
527
+ /**
528
+ * @generated from field: uint64 event_callback_ptr = 1;
529
+ */
530
+ eventCallbackPtr: bigint;
531
+ /**
532
+ * When true, the FfiServer will forward logs using LogRecord
533
+ *
534
+ * @generated from field: bool capture_logs = 2;
535
+ */
536
+ captureLogs: boolean;
537
+ constructor(data?: PartialMessage<InitializeRequest>);
538
+ static readonly runtime: typeof proto3;
539
+ static readonly typeName = "livekit.proto.InitializeRequest";
540
+ static readonly fields: FieldList;
541
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): InitializeRequest;
542
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): InitializeRequest;
543
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): InitializeRequest;
544
+ static equals(a: InitializeRequest | PlainMessage<InitializeRequest> | undefined, b: InitializeRequest | PlainMessage<InitializeRequest> | undefined): boolean;
545
+ }
546
+ /**
547
+ * @generated from message livekit.proto.InitializeResponse
548
+ */
549
+ export declare class InitializeResponse extends Message<InitializeResponse> {
550
+ constructor(data?: PartialMessage<InitializeResponse>);
551
+ static readonly runtime: typeof proto3;
552
+ static readonly typeName = "livekit.proto.InitializeResponse";
553
+ static readonly fields: FieldList;
554
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): InitializeResponse;
555
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): InitializeResponse;
556
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): InitializeResponse;
557
+ static equals(a: InitializeResponse | PlainMessage<InitializeResponse> | undefined, b: InitializeResponse | PlainMessage<InitializeResponse> | undefined): boolean;
558
+ }
559
+ /**
560
+ * Stop all rooms synchronously (Do we need async here?).
561
+ * e.g: This is used for the Unity Editor after each assemblies reload.
562
+ * TODO(theomonnom): Implement a debug mode where we can find all leaked handles?
563
+ *
564
+ * @generated from message livekit.proto.DisposeRequest
565
+ */
566
+ export declare class DisposeRequest extends Message<DisposeRequest> {
567
+ /**
568
+ * @generated from field: bool async = 1;
569
+ */
570
+ async: boolean;
571
+ constructor(data?: PartialMessage<DisposeRequest>);
572
+ static readonly runtime: typeof proto3;
573
+ static readonly typeName = "livekit.proto.DisposeRequest";
574
+ static readonly fields: FieldList;
575
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): DisposeRequest;
576
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): DisposeRequest;
577
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): DisposeRequest;
578
+ static equals(a: DisposeRequest | PlainMessage<DisposeRequest> | undefined, b: DisposeRequest | PlainMessage<DisposeRequest> | undefined): boolean;
579
+ }
580
+ /**
581
+ * @generated from message livekit.proto.DisposeResponse
582
+ */
583
+ export declare class DisposeResponse extends Message<DisposeResponse> {
584
+ /**
585
+ * None if sync
586
+ *
587
+ * @generated from field: optional uint64 async_id = 1;
588
+ */
589
+ asyncId?: bigint;
590
+ constructor(data?: PartialMessage<DisposeResponse>);
591
+ static readonly runtime: typeof proto3;
592
+ static readonly typeName = "livekit.proto.DisposeResponse";
593
+ static readonly fields: FieldList;
594
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): DisposeResponse;
595
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): DisposeResponse;
596
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): DisposeResponse;
597
+ static equals(a: DisposeResponse | PlainMessage<DisposeResponse> | undefined, b: DisposeResponse | PlainMessage<DisposeResponse> | undefined): boolean;
598
+ }
599
+ /**
600
+ * @generated from message livekit.proto.DisposeCallback
601
+ */
602
+ export declare class DisposeCallback extends Message<DisposeCallback> {
603
+ /**
604
+ * @generated from field: uint64 async_id = 1;
605
+ */
606
+ asyncId: bigint;
607
+ constructor(data?: PartialMessage<DisposeCallback>);
608
+ static readonly runtime: typeof proto3;
609
+ static readonly typeName = "livekit.proto.DisposeCallback";
610
+ static readonly fields: FieldList;
611
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): DisposeCallback;
612
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): DisposeCallback;
613
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): DisposeCallback;
614
+ static equals(a: DisposeCallback | PlainMessage<DisposeCallback> | undefined, b: DisposeCallback | PlainMessage<DisposeCallback> | undefined): boolean;
615
+ }
616
+ /**
617
+ * @generated from message livekit.proto.LogRecord
618
+ */
619
+ export declare class LogRecord extends Message<LogRecord> {
620
+ /**
621
+ * @generated from field: livekit.proto.LogLevel level = 1;
622
+ */
623
+ level: LogLevel;
624
+ /**
625
+ * e.g "livekit", "libwebrtc", "tokio-tungstenite", etc...
626
+ *
627
+ * @generated from field: string target = 2;
628
+ */
629
+ target: string;
630
+ /**
631
+ * @generated from field: optional string module_path = 3;
632
+ */
633
+ modulePath?: string;
634
+ /**
635
+ * @generated from field: optional string file = 4;
636
+ */
637
+ file?: string;
638
+ /**
639
+ * @generated from field: optional uint32 line = 5;
640
+ */
641
+ line?: number;
642
+ /**
643
+ * @generated from field: string message = 6;
644
+ */
645
+ message: string;
646
+ constructor(data?: PartialMessage<LogRecord>);
647
+ static readonly runtime: typeof proto3;
648
+ static readonly typeName = "livekit.proto.LogRecord";
649
+ static readonly fields: FieldList;
650
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): LogRecord;
651
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): LogRecord;
652
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): LogRecord;
653
+ static equals(a: LogRecord | PlainMessage<LogRecord> | undefined, b: LogRecord | PlainMessage<LogRecord> | undefined): boolean;
654
+ }
655
+ /**
656
+ * @generated from message livekit.proto.LogBatch
657
+ */
658
+ export declare class LogBatch extends Message<LogBatch> {
659
+ /**
660
+ * @generated from field: repeated livekit.proto.LogRecord records = 1;
661
+ */
662
+ records: LogRecord[];
663
+ constructor(data?: PartialMessage<LogBatch>);
664
+ static readonly runtime: typeof proto3;
665
+ static readonly typeName = "livekit.proto.LogBatch";
666
+ static readonly fields: FieldList;
667
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): LogBatch;
668
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): LogBatch;
669
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): LogBatch;
670
+ static equals(a: LogBatch | PlainMessage<LogBatch> | undefined, b: LogBatch | PlainMessage<LogBatch> | undefined): boolean;
671
+ }
672
+ //# sourceMappingURL=ffi_pb.d.ts.map