@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.
- package/dist/audio_frame.d.cts +32 -0
- package/dist/audio_frame.d.ts +12 -5
- package/dist/audio_resampler.d.cts +60 -0
- package/dist/audio_resampler.d.ts +12 -3
- package/dist/audio_source.d.cts +37 -0
- package/dist/audio_source.d.ts +13 -5
- package/dist/audio_stream.d.cts +38 -0
- package/dist/audio_stream.d.ts +17 -5
- package/dist/e2ee.d.cts +48 -0
- package/dist/e2ee.d.ts +12 -8
- package/dist/ffi_client.cjs +0 -6
- package/dist/ffi_client.cjs.map +1 -1
- package/dist/ffi_client.d.cts +35 -0
- package/dist/ffi_client.d.ts +22 -10
- package/dist/ffi_client.d.ts.map +1 -1
- package/dist/ffi_client.js +0 -6
- package/dist/ffi_client.js.map +1 -1
- package/dist/index.cjs +0 -22
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +57 -0
- package/dist/index.d.ts +27 -19
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +9 -20
- package/dist/index.js.map +1 -1
- package/dist/napi/native.d.cjs.map +1 -1
- package/dist/napi/native.d.d.cts +21 -0
- package/dist/napi/native.d.d.ts +21 -0
- package/dist/napi/native.d.ts +5 -5
- package/dist/native.d.ts +5 -5
- package/dist/participant.d.cts +126 -0
- package/dist/participant.d.ts +28 -14
- package/dist/proto/audio_frame_pb.d.cts +813 -0
- package/dist/proto/audio_frame_pb.d.ts +90 -86
- package/dist/proto/e2ee_pb.d.cts +585 -0
- package/dist/proto/e2ee_pb.d.ts +60 -58
- package/dist/proto/ffi_pb.d.cts +851 -0
- package/dist/proto/ffi_pb.d.ts +35 -30
- package/dist/proto/handle_pb.d.cts +33 -0
- package/dist/proto/handle_pb.d.ts +8 -6
- package/dist/proto/participant_pb.d.cts +93 -0
- package/dist/proto/participant_pb.d.ts +13 -11
- package/dist/proto/room_pb.d.cts +2072 -0
- package/dist/proto/room_pb.d.ts +198 -196
- package/dist/proto/rpc_pb.d.cts +237 -0
- package/dist/proto/rpc_pb.d.ts +28 -26
- package/dist/proto/stats_pb.d.cts +1653 -0
- package/dist/proto/stats_pb.d.ts +96 -94
- package/dist/proto/track_pb.d.cts +402 -0
- package/dist/proto/track_pb.d.ts +47 -45
- package/dist/proto/video_frame_pb.d.cts +617 -0
- package/dist/proto/video_frame_pb.d.ts +64 -60
- package/dist/room.d.cts +134 -0
- package/dist/room.d.ts +36 -22
- package/dist/rpc.d.cts +82 -0
- package/dist/rpc.d.ts +11 -7
- package/dist/track.d.cts +46 -0
- package/dist/track.d.ts +25 -14
- package/dist/track_publication.d.cts +48 -0
- package/dist/track_publication.d.ts +20 -8
- package/dist/transcription.d.cts +15 -0
- package/dist/transcription.d.ts +4 -3
- package/dist/types.d.cts +9 -0
- package/dist/types.d.ts +3 -2
- package/dist/version.cjs +1 -1
- package/dist/version.cjs.map +1 -1
- package/dist/version.d.cts +3 -0
- package/dist/version.d.ts +3 -2
- package/dist/version.js +1 -1
- package/dist/version.js.map +1 -1
- package/dist/video_frame.d.cts +25 -0
- package/dist/video_frame.d.ts +11 -4
- package/dist/video_source.d.cts +22 -0
- package/dist/video_source.d.ts +13 -6
- package/dist/video_stream.d.cts +41 -0
- package/dist/video_stream.d.ts +18 -6
- package/package.json +14 -9
- package/src/ffi_client.ts +4 -4
- package/src/index.ts +14 -8
- package/src/napi/native.d.ts +5 -5
- package/src/version.ts +1 -1
package/dist/participant.d.ts
CHANGED
|
@@ -1,13 +1,26 @@
|
|
|
1
|
-
import { FfiHandle } from './
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import {
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
121
|
+
declare class RemoteParticipant extends Participant {
|
|
109
122
|
trackPublications: Map<string, RemoteTrackPublication>;
|
|
110
123
|
constructor(owned_info: OwnedParticipant);
|
|
111
124
|
}
|
|
112
|
-
|
|
125
|
+
|
|
126
|
+
export { type DataPublishOptions, LocalParticipant, Participant, RemoteParticipant };
|