@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
@@ -1,13 +1,26 @@
1
- import { FfiHandle } from './ffi_client.js';
2
- import type { OwnedParticipant, ParticipantInfo, ParticipantKind } from './proto/participant_pb.js';
3
- import type { TrackPublishOptions } from './proto/room_pb.js';
4
- import { type PerformRpcParams, type RpcInvocationData } from './rpc.js';
5
- import type { LocalTrack } from './track.js';
6
- import type { RemoteTrackPublication, TrackPublication } from './track_publication.js';
7
- import { LocalTrackPublication } from './track_publication.js';
8
- import type { Transcription } from './transcription.js';
9
- import type { ChatMessage } from './types.js';
10
- export declare abstract class Participant {
1
+ import { FfiHandle } from './napi/native.d.js';
2
+ import { TrackPublishOptions } from './proto/room_pb.js';
3
+ import { ParticipantInfo, OwnedParticipant, ParticipantKind } from './proto/participant_pb.js';
4
+ import { PerformRpcParams, RpcInvocationData } from './rpc.js';
5
+ import { LocalTrack } from './track.js';
6
+ import { TrackPublication, LocalTrackPublication, RemoteTrackPublication } from './track_publication.js';
7
+ import { Transcription } from './transcription.js';
8
+ import { ChatMessage } from './types.js';
9
+ import '@bufbuild/protobuf/codegenv1';
10
+ import './proto/e2ee_pb.js';
11
+ import '@bufbuild/protobuf';
12
+ import './proto/handle_pb.js';
13
+ import './proto/track_pb.js';
14
+ import './proto/stats_pb.js';
15
+ import './proto/video_frame_pb.js';
16
+ import './proto/rpc_pb.js';
17
+ import './audio_source.js';
18
+ import './audio_frame.js';
19
+ import './proto/audio_frame_pb.js';
20
+ import './video_source.js';
21
+ import './video_frame.js';
22
+
23
+ declare abstract class Participant {
11
24
  /** @internal */
12
25
  info: ParticipantInfo;
13
26
  /** @internal */
@@ -21,7 +34,7 @@ export declare abstract class Participant {
21
34
  get attributes(): Record<string, string>;
22
35
  get kind(): ParticipantKind;
23
36
  }
24
- export type DataPublishOptions = {
37
+ type DataPublishOptions = {
25
38
  /**
26
39
  * whether to send this as reliable or lossy.
27
40
  * For data that you need delivery guarantee (such as chat messages), use Reliable.
@@ -36,7 +49,7 @@ export type DataPublishOptions = {
36
49
  /** the topic under which the message gets published */
37
50
  topic?: string;
38
51
  };
39
- export declare class LocalParticipant extends Participant {
52
+ declare class LocalParticipant extends Participant {
40
53
  private rpcHandlers;
41
54
  trackPublications: Map<string, LocalTrackPublication>;
42
55
  publishData(data: Uint8Array, options: DataPublishOptions): Promise<void>;
@@ -105,8 +118,9 @@ export declare class LocalParticipant extends Participant {
105
118
  /** @internal */
106
119
  handleRpcMethodInvocation(invocationId: bigint, method: string, requestId: string, callerIdentity: string, payload: string, responseTimeout: number): Promise<void>;
107
120
  }
108
- export declare class RemoteParticipant extends Participant {
121
+ declare class RemoteParticipant extends Participant {
109
122
  trackPublications: Map<string, RemoteTrackPublication>;
110
123
  constructor(owned_info: OwnedParticipant);
111
124
  }
112
- //# sourceMappingURL=participant.d.ts.map
125
+
126
+ export { type DataPublishOptions, LocalParticipant, Participant, RemoteParticipant };