@livekit/rtc-node 0.12.0 → 0.12.2

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 (80) hide show
  1. package/dist/audio_frame.d.cts +32 -0
  2. package/dist/audio_frame.d.ts +12 -5
  3. package/dist/audio_resampler.d.cts +60 -0
  4. package/dist/audio_resampler.d.ts +12 -3
  5. package/dist/audio_source.d.cts +37 -0
  6. package/dist/audio_source.d.ts +13 -5
  7. package/dist/audio_stream.d.cts +38 -0
  8. package/dist/audio_stream.d.ts +17 -5
  9. package/dist/e2ee.d.cts +48 -0
  10. package/dist/e2ee.d.ts +12 -8
  11. package/dist/ffi_client.cjs +0 -6
  12. package/dist/ffi_client.cjs.map +1 -1
  13. package/dist/ffi_client.d.cts +35 -0
  14. package/dist/ffi_client.d.ts +22 -10
  15. package/dist/ffi_client.d.ts.map +1 -1
  16. package/dist/ffi_client.js +0 -6
  17. package/dist/ffi_client.js.map +1 -1
  18. package/dist/index.cjs +0 -22
  19. package/dist/index.cjs.map +1 -1
  20. package/dist/index.d.cts +57 -0
  21. package/dist/index.d.ts +27 -19
  22. package/dist/index.d.ts.map +1 -1
  23. package/dist/index.js +9 -20
  24. package/dist/index.js.map +1 -1
  25. package/dist/napi/native.d.cjs.map +1 -1
  26. package/dist/napi/native.d.d.cts +21 -0
  27. package/dist/napi/native.d.d.ts +21 -0
  28. package/dist/napi/native.d.ts +5 -5
  29. package/dist/native.d.ts +5 -5
  30. package/dist/participant.d.cts +126 -0
  31. package/dist/participant.d.ts +28 -14
  32. package/dist/proto/audio_frame_pb.d.cts +813 -0
  33. package/dist/proto/audio_frame_pb.d.ts +90 -86
  34. package/dist/proto/e2ee_pb.d.cts +585 -0
  35. package/dist/proto/e2ee_pb.d.ts +60 -58
  36. package/dist/proto/ffi_pb.d.cts +851 -0
  37. package/dist/proto/ffi_pb.d.ts +35 -30
  38. package/dist/proto/handle_pb.d.cts +33 -0
  39. package/dist/proto/handle_pb.d.ts +8 -6
  40. package/dist/proto/participant_pb.d.cts +93 -0
  41. package/dist/proto/participant_pb.d.ts +13 -11
  42. package/dist/proto/room_pb.d.cts +2072 -0
  43. package/dist/proto/room_pb.d.ts +198 -196
  44. package/dist/proto/rpc_pb.d.cts +237 -0
  45. package/dist/proto/rpc_pb.d.ts +28 -26
  46. package/dist/proto/stats_pb.d.cts +1653 -0
  47. package/dist/proto/stats_pb.d.ts +96 -94
  48. package/dist/proto/track_pb.d.cts +402 -0
  49. package/dist/proto/track_pb.d.ts +47 -45
  50. package/dist/proto/video_frame_pb.d.cts +617 -0
  51. package/dist/proto/video_frame_pb.d.ts +64 -60
  52. package/dist/room.d.cts +134 -0
  53. package/dist/room.d.ts +36 -22
  54. package/dist/rpc.d.cts +82 -0
  55. package/dist/rpc.d.ts +11 -7
  56. package/dist/track.d.cts +46 -0
  57. package/dist/track.d.ts +25 -14
  58. package/dist/track_publication.d.cts +48 -0
  59. package/dist/track_publication.d.ts +20 -8
  60. package/dist/transcription.d.cts +15 -0
  61. package/dist/transcription.d.ts +4 -3
  62. package/dist/types.d.cts +9 -0
  63. package/dist/types.d.ts +3 -2
  64. package/dist/version.cjs +1 -1
  65. package/dist/version.cjs.map +1 -1
  66. package/dist/version.d.cts +3 -0
  67. package/dist/version.d.ts +3 -2
  68. package/dist/version.js +1 -1
  69. package/dist/version.js.map +1 -1
  70. package/dist/video_frame.d.cts +25 -0
  71. package/dist/video_frame.d.ts +11 -4
  72. package/dist/video_source.d.cts +22 -0
  73. package/dist/video_source.d.ts +13 -6
  74. package/dist/video_stream.d.cts +41 -0
  75. package/dist/video_stream.d.ts +18 -6
  76. package/package.json +14 -9
  77. package/src/ffi_client.ts +4 -4
  78. package/src/index.ts +14 -8
  79. package/src/napi/native.d.ts +5 -5
  80. package/src/version.ts +1 -1
package/src/ffi_client.ts CHANGED
@@ -14,16 +14,16 @@ import {
14
14
  livekitRetrievePtr,
15
15
  } from './napi/native.js';
16
16
  import {
17
- FfiEvent,
17
+ type FfiEvent,
18
18
  FfiEventSchema,
19
- FfiRequest,
19
+ type FfiRequest,
20
20
  FfiRequestSchema,
21
- FfiResponse,
21
+ type FfiResponse,
22
22
  FfiResponseSchema,
23
23
  } from './proto/ffi_pb.js';
24
24
  import { SDK_VERSION } from './version.js';
25
25
 
26
- export { FfiHandle, FfiEvent, FfiResponse, FfiRequest, livekitDispose as dispose };
26
+ export { FfiHandle, type FfiEvent, type FfiResponse, type FfiRequest, livekitDispose as dispose };
27
27
 
28
28
  export type FfiClientCallbacks = {
29
29
  ffi_event: (event: FfiEvent) => void;
package/src/index.ts CHANGED
@@ -14,24 +14,24 @@ import {
14
14
  import { TrackSource } from './proto/track_pb.js';
15
15
  import { VideoCodec } from './proto/video_frame_pb.js';
16
16
 
17
- export { Room, RoomEvent, ConnectError, RoomOptions, RtcConfiguration } from './room.js';
17
+ export { Room, RoomEvent, ConnectError, type RoomOptions, type RtcConfiguration } from './room.js';
18
18
  export { Participant, RemoteParticipant, LocalParticipant } from './participant.js';
19
19
  export {
20
20
  Track,
21
- LocalTrack,
22
- RemoteTrack,
23
- VideoTrack,
21
+ type LocalTrack,
22
+ type RemoteTrack,
23
+ type VideoTrack,
24
24
  LocalAudioTrack,
25
25
  LocalVideoTrack,
26
26
  RemoteAudioTrack,
27
27
  RemoteVideoTrack,
28
- AudioTrack,
28
+ type AudioTrack,
29
29
  } from './track.js';
30
30
  export { VideoFrame } from './video_frame.js';
31
31
  export { AudioFrame, combineAudioFrames } from './audio_frame.js';
32
32
  export { AudioStream } from './audio_stream.js';
33
33
  export { AudioResampler, AudioResamplerQuality } from './audio_resampler.js';
34
- export { VideoStream, VideoFrameEvent } from './video_stream.js';
34
+ export { VideoStream, type VideoFrameEvent } from './video_stream.js';
35
35
  export { AudioSource } from './audio_source.js';
36
36
  export { VideoSource } from './video_source.js';
37
37
  export {
@@ -39,8 +39,14 @@ export {
39
39
  RemoteTrackPublication,
40
40
  LocalTrackPublication,
41
41
  } from './track_publication.js';
42
- export { Transcription, TranscriptionSegment } from './transcription.js';
43
- export { E2EEManager, E2EEOptions, KeyProviderOptions, KeyProvider, FrameCryptor } from './e2ee.js';
42
+ export { type Transcription, type TranscriptionSegment } from './transcription.js';
43
+ export {
44
+ E2EEManager,
45
+ type E2EEOptions,
46
+ type KeyProviderOptions,
47
+ KeyProvider,
48
+ FrameCryptor,
49
+ } from './e2ee.js';
44
50
 
45
51
  export {
46
52
  ConnectionQuality,
@@ -3,15 +3,15 @@
3
3
 
4
4
  /* auto-generated by NAPI-RS */
5
5
 
6
- export function livekitInitialize(
6
+ export declare function livekitInitialize(
7
7
  callback: (data: Uint8Array) => void,
8
8
  captureLogs: boolean,
9
9
  sdkVersion: string,
10
10
  ): void;
11
- export function livekitFfiRequest(data: Uint8Array): Uint8Array;
12
- export function livekitRetrievePtr(handle: Uint8Array): bigint;
13
- export function livekitCopyBuffer(ptr: bigint, len: number): Uint8Array;
14
- export function livekitDispose(): Promise<void>;
11
+ export declare function livekitFfiRequest(data: Uint8Array): Uint8Array;
12
+ export declare function livekitRetrievePtr(handle: Uint8Array): bigint;
13
+ export declare function livekitCopyBuffer(ptr: bigint, len: number): Uint8Array;
14
+ export declare function livekitDispose(): Promise<void>;
15
15
  export declare class FfiHandle {
16
16
  constructor(handle: bigint);
17
17
  dispose(): void;
package/src/version.ts CHANGED
@@ -1 +1 @@
1
- export const SDK_VERSION = "0.12.0";
1
+ export const SDK_VERSION = "0.12.2";