@livekit/rtc-node 0.13.23 → 0.13.25
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_filter.cjs +2 -2
- package/dist/audio_filter.cjs.map +1 -1
- package/dist/audio_filter.js +1 -1
- package/dist/audio_filter.js.map +1 -1
- package/dist/audio_frame.cjs +11 -7
- package/dist/audio_frame.cjs.map +1 -1
- package/dist/audio_frame.d.cts +3 -8
- package/dist/audio_frame.d.ts +3 -8
- package/dist/audio_frame.d.ts.map +1 -1
- package/dist/audio_frame.js +10 -6
- package/dist/audio_frame.js.map +1 -1
- package/dist/audio_mixer.cjs +11 -4
- package/dist/audio_mixer.cjs.map +1 -1
- package/dist/audio_mixer.d.cts +1 -6
- package/dist/audio_mixer.d.ts +1 -6
- package/dist/audio_mixer.d.ts.map +1 -1
- package/dist/audio_mixer.js +11 -4
- package/dist/audio_mixer.js.map +1 -1
- package/dist/audio_resampler.cjs +20 -12
- package/dist/audio_resampler.cjs.map +1 -1
- package/dist/audio_resampler.d.cts +6 -6
- package/dist/audio_resampler.d.ts +6 -6
- package/dist/audio_resampler.d.ts.map +1 -1
- package/dist/audio_resampler.js +12 -4
- package/dist/audio_resampler.js.map +1 -1
- package/dist/audio_source.cjs +11 -7
- package/dist/audio_source.cjs.map +1 -1
- package/dist/audio_source.d.cts +1 -7
- package/dist/audio_source.d.ts +1 -7
- package/dist/audio_source.d.ts.map +1 -1
- package/dist/audio_source.js +8 -3
- package/dist/audio_source.js.map +1 -1
- package/dist/audio_stream.cjs +17 -5
- package/dist/audio_stream.cjs.map +1 -1
- package/dist/audio_stream.d.cts +1 -14
- package/dist/audio_stream.d.ts +1 -14
- package/dist/audio_stream.d.ts.map +1 -1
- package/dist/audio_stream.js +16 -4
- package/dist/audio_stream.js.map +1 -1
- package/dist/data_streams/index.d.cts +2 -10
- package/dist/data_streams/index.d.ts +2 -10
- package/dist/data_streams/stream_reader.cjs +8 -0
- package/dist/data_streams/stream_reader.cjs.map +1 -1
- package/dist/data_streams/stream_reader.d.cts +2 -10
- package/dist/data_streams/stream_reader.d.ts +2 -10
- package/dist/data_streams/stream_reader.d.ts.map +1 -1
- package/dist/data_streams/stream_reader.js +8 -0
- package/dist/data_streams/stream_reader.js.map +1 -1
- package/dist/data_streams/stream_writer.d.cts +2 -10
- package/dist/data_streams/stream_writer.d.ts +2 -10
- package/dist/data_streams/types.cjs.map +1 -1
- package/dist/data_streams/types.d.cts +2 -10
- package/dist/data_streams/types.d.ts +2 -10
- package/dist/data_streams/types.d.ts.map +1 -1
- package/dist/e2ee.cjs +21 -21
- package/dist/e2ee.cjs.map +1 -1
- package/dist/e2ee.d.cts +1 -2
- package/dist/e2ee.d.ts +1 -2
- package/dist/e2ee.d.ts.map +1 -1
- package/dist/e2ee.js +2 -2
- package/dist/e2ee.js.map +1 -1
- package/dist/ffi_client.cjs +11 -12
- package/dist/ffi_client.cjs.map +1 -1
- package/dist/ffi_client.d.cts +3 -16
- package/dist/ffi_client.d.ts +3 -16
- package/dist/ffi_client.d.ts.map +1 -1
- package/dist/ffi_client.js +5 -3
- package/dist/ffi_client.js.map +1 -1
- package/dist/frame_processor.cjs +13 -2
- package/dist/frame_processor.cjs.map +1 -1
- package/dist/frame_processor.d.cts +5 -8
- package/dist/frame_processor.d.ts +5 -8
- package/dist/frame_processor.d.ts.map +1 -1
- package/dist/frame_processor.js +10 -1
- package/dist/frame_processor.js.map +1 -1
- package/dist/index.cjs +25 -23
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +3 -16
- package/dist/index.d.ts +3 -16
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +9 -7
- package/dist/index.js.map +1 -1
- package/dist/log.cjs +1 -10
- package/dist/log.cjs.map +1 -1
- package/dist/log.d.cts +4 -0
- package/dist/log.d.ts +4 -0
- package/dist/log.d.ts.map +1 -1
- package/dist/log.js +1 -10
- package/dist/log.js.map +1 -1
- package/dist/participant.cjs +38 -38
- package/dist/participant.cjs.map +1 -1
- package/dist/participant.d.cts +2 -15
- package/dist/participant.d.ts +2 -15
- package/dist/participant.d.ts.map +1 -1
- package/dist/participant.js +12 -12
- package/dist/participant.js.map +1 -1
- package/dist/room.cjs +48 -30
- package/dist/room.cjs.map +1 -1
- package/dist/room.d.cts +11 -16
- package/dist/room.d.ts +11 -16
- package/dist/room.d.ts.map +1 -1
- package/dist/room.js +44 -26
- package/dist/room.js.map +1 -1
- package/dist/rpc.cjs.map +1 -1
- package/dist/rpc.d.cts +1 -2
- package/dist/rpc.d.ts +1 -2
- package/dist/rpc.d.ts.map +1 -1
- package/dist/rpc.js.map +1 -1
- package/dist/{stream_reader-Ch2zvjU3.d.cts → stream_reader-CuG4b8Y-.d.cts} +1 -1
- package/dist/{stream_reader-DRyR29vo.d.ts → stream_reader-CuG4b8Y-.d.ts} +1 -1
- package/dist/track.cjs +3 -3
- package/dist/track.cjs.map +1 -1
- package/dist/track.d.cts +1 -14
- package/dist/track.d.ts +1 -14
- package/dist/track.d.ts.map +1 -1
- package/dist/track.js +1 -1
- package/dist/track.js.map +1 -1
- package/dist/track_publication.cjs +4 -4
- package/dist/track_publication.cjs.map +1 -1
- package/dist/track_publication.d.cts +1 -14
- package/dist/track_publication.d.ts +1 -14
- package/dist/track_publication.d.ts.map +1 -1
- package/dist/track_publication.js +2 -2
- package/dist/track_publication.js.map +1 -1
- package/dist/version.cjs +1 -1
- package/dist/version.cjs.map +1 -1
- package/dist/version.d.cts +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/dist/version.js.map +1 -1
- package/dist/video_frame.cjs +42 -42
- package/dist/video_frame.cjs.map +1 -1
- package/dist/video_frame.d.cts +1 -6
- package/dist/video_frame.d.ts +1 -6
- package/dist/video_frame.d.ts.map +1 -1
- package/dist/video_frame.js +2 -2
- package/dist/video_frame.js.map +1 -1
- package/dist/video_source.cjs +5 -5
- package/dist/video_source.cjs.map +1 -1
- package/dist/video_source.d.cts +1 -14
- package/dist/video_source.d.ts +1 -14
- package/dist/video_source.d.ts.map +1 -1
- package/dist/video_source.js +2 -2
- package/dist/video_source.js.map +1 -1
- package/dist/video_stream.cjs +12 -4
- package/dist/video_stream.cjs.map +1 -1
- package/dist/video_stream.d.cts +1 -14
- package/dist/video_stream.d.ts +1 -14
- package/dist/video_stream.d.ts.map +1 -1
- package/dist/video_stream.js +10 -2
- package/dist/video_stream.js.map +1 -1
- package/package.json +9 -35
- package/src/audio_filter.ts +2 -2
- package/src/audio_frame.ts +26 -7
- package/src/audio_mixer.ts +15 -4
- package/src/audio_resampler.ts +14 -4
- package/src/audio_source.ts +13 -5
- package/src/audio_stream.ts +21 -5
- package/src/data_streams/stream_reader.ts +19 -1
- package/src/data_streams/types.ts +1 -1
- package/src/e2ee.ts +3 -3
- package/src/ffi_client.ts +7 -5
- package/src/frame_processor.ts +21 -0
- package/src/index.ts +6 -5
- package/src/log.ts +14 -10
- package/src/participant.ts +17 -17
- package/src/room.ts +65 -38
- package/src/rpc.ts +1 -1
- package/src/tests/e2e.test.ts +517 -0
- package/src/track.ts +4 -4
- package/src/track_publication.ts +6 -6
- package/src/version.ts +1 -1
- package/src/video_frame.ts +3 -3
- package/src/video_source.ts +3 -3
- package/src/video_stream.ts +15 -3
- package/Cargo.toml +0 -25
- package/build.rs +0 -9
- package/dist/napi/native.cjs +0 -301
- package/dist/napi/native.d.cjs +0 -17
- package/dist/napi/native.d.cjs.map +0 -1
- package/dist/napi/native.d.d.cts +0 -21
- package/dist/napi/native.d.d.ts +0 -21
- package/dist/napi/native.d.js +0 -1
- package/dist/napi/native.d.js.map +0 -1
- package/dist/napi/native.d.ts +0 -19
- package/dist/napi/native.js +0 -15
- package/dist/native.cjs +0 -301
- package/dist/native.d.ts +0 -19
- package/dist/native.js +0 -15
- package/dist/proto/audio_frame_pb.cjs +0 -1357
- package/dist/proto/audio_frame_pb.cjs.map +0 -1
- package/dist/proto/audio_frame_pb.d.cts +0 -1183
- package/dist/proto/audio_frame_pb.d.ts +0 -1183
- package/dist/proto/audio_frame_pb.d.ts.map +0 -1
- package/dist/proto/audio_frame_pb.js +0 -1283
- package/dist/proto/audio_frame_pb.js.map +0 -1
- package/dist/proto/data_stream_pb.cjs +0 -1638
- package/dist/proto/data_stream_pb.cjs.map +0 -1
- package/dist/proto/data_stream_pb.d.cts +0 -1449
- package/dist/proto/data_stream_pb.d.ts +0 -1449
- package/dist/proto/data_stream_pb.d.ts.map +0 -1
- package/dist/proto/data_stream_pb.js +0 -1559
- package/dist/proto/data_stream_pb.js.map +0 -1
- package/dist/proto/e2ee_pb.cjs +0 -746
- package/dist/proto/e2ee_pb.cjs.map +0 -1
- package/dist/proto/e2ee_pb.d.cts +0 -653
- package/dist/proto/e2ee_pb.d.ts +0 -653
- package/dist/proto/e2ee_pb.d.ts.map +0 -1
- package/dist/proto/e2ee_pb.js +0 -696
- package/dist/proto/e2ee_pb.js.map +0 -1
- package/dist/proto/ffi_pb.cjs +0 -477
- package/dist/proto/ffi_pb.cjs.map +0 -1
- package/dist/proto/ffi_pb.d.cts +0 -1321
- package/dist/proto/ffi_pb.d.ts +0 -1321
- package/dist/proto/ffi_pb.d.ts.map +0 -1
- package/dist/proto/ffi_pb.js +0 -444
- package/dist/proto/ffi_pb.js.map +0 -1
- package/dist/proto/handle_pb.cjs +0 -53
- package/dist/proto/handle_pb.cjs.map +0 -1
- package/dist/proto/handle_pb.d.cts +0 -31
- package/dist/proto/handle_pb.d.ts +0 -31
- package/dist/proto/handle_pb.d.ts.map +0 -1
- package/dist/proto/handle_pb.js +0 -29
- package/dist/proto/handle_pb.js.map +0 -1
- package/dist/proto/participant_pb.cjs +0 -173
- package/dist/proto/participant_pb.cjs.map +0 -1
- package/dist/proto/participant_pb.d.cts +0 -218
- package/dist/proto/participant_pb.d.ts +0 -218
- package/dist/proto/participant_pb.d.ts.map +0 -1
- package/dist/proto/participant_pb.js +0 -145
- package/dist/proto/participant_pb.js.map +0 -1
- package/dist/proto/room_pb.cjs +0 -3374
- package/dist/proto/room_pb.cjs.map +0 -1
- package/dist/proto/room_pb.d.cts +0 -3028
- package/dist/proto/room_pb.d.ts +0 -3028
- package/dist/proto/room_pb.d.ts.map +0 -1
- package/dist/proto/room_pb.js +0 -3232
- package/dist/proto/room_pb.js.map +0 -1
- package/dist/proto/rpc_pb.cjs +0 -328
- package/dist/proto/rpc_pb.cjs.map +0 -1
- package/dist/proto/rpc_pb.d.cts +0 -267
- package/dist/proto/rpc_pb.d.ts +0 -267
- package/dist/proto/rpc_pb.d.ts.map +0 -1
- package/dist/proto/rpc_pb.js +0 -294
- package/dist/proto/rpc_pb.js.map +0 -1
- package/dist/proto/stats_pb.cjs +0 -1370
- package/dist/proto/stats_pb.cjs.map +0 -1
- package/dist/proto/stats_pb.d.cts +0 -1764
- package/dist/proto/stats_pb.d.ts +0 -1764
- package/dist/proto/stats_pb.d.ts.map +0 -1
- package/dist/proto/stats_pb.js +0 -1300
- package/dist/proto/stats_pb.js.map +0 -1
- package/dist/proto/track_pb.cjs +0 -630
- package/dist/proto/track_pb.cjs.map +0 -1
- package/dist/proto/track_pb.d.cts +0 -542
- package/dist/proto/track_pb.d.ts +0 -542
- package/dist/proto/track_pb.d.ts.map +0 -1
- package/dist/proto/track_pb.js +0 -584
- package/dist/proto/track_pb.js.map +0 -1
- package/dist/proto/track_publication_pb.cjs +0 -194
- package/dist/proto/track_publication_pb.cjs.map +0 -1
- package/dist/proto/track_publication_pb.d.cts +0 -135
- package/dist/proto/track_publication_pb.d.ts +0 -135
- package/dist/proto/track_publication_pb.d.ts.map +0 -1
- package/dist/proto/track_publication_pb.js +0 -164
- package/dist/proto/track_publication_pb.js.map +0 -1
- package/dist/proto/video_frame_pb.cjs +0 -723
- package/dist/proto/video_frame_pb.cjs.map +0 -1
- package/dist/proto/video_frame_pb.d.cts +0 -667
- package/dist/proto/video_frame_pb.d.ts +0 -667
- package/dist/proto/video_frame_pb.d.ts.map +0 -1
- package/dist/proto/video_frame_pb.js +0 -673
- package/dist/proto/video_frame_pb.js.map +0 -1
- package/src/lib.rs +0 -9
- package/src/napi/native.cjs +0 -301
- package/src/napi/native.d.ts +0 -19
- package/src/napi/native.js +0 -15
- package/src/nodejs.rs +0 -134
- package/src/proto/audio_frame_pb.ts +0 -2270
- package/src/proto/data_stream_pb.ts +0 -2674
- package/src/proto/e2ee_pb.ts +0 -1231
- package/src/proto/ffi_pb.ts +0 -1700
- package/src/proto/handle_pb.ts +0 -69
- package/src/proto/participant_pb.ts +0 -351
- package/src/proto/room_pb.ts +0 -5661
- package/src/proto/rpc_pb.ts +0 -539
- package/src/proto/stats_pb.ts +0 -3050
- package/src/proto/track_pb.ts +0 -1040
- package/src/proto/track_publication_pb.ts +0 -284
- package/src/proto/video_frame_pb.ts +0 -1236
package/src/proto/handle_pb.ts
DELETED
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
// Copyright 2025 LiveKit, Inc.
|
|
2
|
-
//
|
|
3
|
-
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
4
|
-
// you may not use this file except in compliance with the License.
|
|
5
|
-
// You may obtain a copy of the License at
|
|
6
|
-
//
|
|
7
|
-
// http://www.apache.org/licenses/LICENSE-2.0
|
|
8
|
-
//
|
|
9
|
-
// Unless required by applicable law or agreed to in writing, software
|
|
10
|
-
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
11
|
-
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
12
|
-
// See the License for the specific language governing permissions and
|
|
13
|
-
// limitations under the License.
|
|
14
|
-
|
|
15
|
-
// @generated by protoc-gen-es v1.10.1 with parameter "target=ts,import_extension=.js"
|
|
16
|
-
// @generated from file handle.proto (package livekit.proto, syntax proto2)
|
|
17
|
-
/* eslint-disable */
|
|
18
|
-
// @ts-nocheck
|
|
19
|
-
|
|
20
|
-
import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf";
|
|
21
|
-
import { Message, proto2 } from "@bufbuild/protobuf";
|
|
22
|
-
|
|
23
|
-
/**
|
|
24
|
-
* # Safety
|
|
25
|
-
* The foreign language is responsable for disposing handles
|
|
26
|
-
* Forgetting to dispose the handle may lead to memory leaks
|
|
27
|
-
*
|
|
28
|
-
* Dropping a handle doesn't necessarily mean that the object is destroyed if it is still used
|
|
29
|
-
* on the FfiServer (Atomic reference counting)
|
|
30
|
-
*
|
|
31
|
-
* When refering to a handle without owning it, we just use a uint32 without this message.
|
|
32
|
-
* (the variable name is suffixed with "_handle")
|
|
33
|
-
*
|
|
34
|
-
* @generated from message livekit.proto.FfiOwnedHandle
|
|
35
|
-
*/
|
|
36
|
-
export class FfiOwnedHandle extends Message<FfiOwnedHandle> {
|
|
37
|
-
/**
|
|
38
|
-
* @generated from field: required uint64 id = 1;
|
|
39
|
-
*/
|
|
40
|
-
id?: bigint;
|
|
41
|
-
|
|
42
|
-
constructor(data?: PartialMessage<FfiOwnedHandle>) {
|
|
43
|
-
super();
|
|
44
|
-
proto2.util.initPartial(data, this);
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
static readonly runtime: typeof proto2 = proto2;
|
|
48
|
-
static readonly typeName = "livekit.proto.FfiOwnedHandle";
|
|
49
|
-
static readonly fields: FieldList = proto2.util.newFieldList(() => [
|
|
50
|
-
{ no: 1, name: "id", kind: "scalar", T: 4 /* ScalarType.UINT64 */, req: true },
|
|
51
|
-
]);
|
|
52
|
-
|
|
53
|
-
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): FfiOwnedHandle {
|
|
54
|
-
return new FfiOwnedHandle().fromBinary(bytes, options);
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): FfiOwnedHandle {
|
|
58
|
-
return new FfiOwnedHandle().fromJson(jsonValue, options);
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): FfiOwnedHandle {
|
|
62
|
-
return new FfiOwnedHandle().fromJsonString(jsonString, options);
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
static equals(a: FfiOwnedHandle | PlainMessage<FfiOwnedHandle> | undefined, b: FfiOwnedHandle | PlainMessage<FfiOwnedHandle> | undefined): boolean {
|
|
66
|
-
return proto2.util.equals(FfiOwnedHandle, a, b);
|
|
67
|
-
}
|
|
68
|
-
}
|
|
69
|
-
|
|
@@ -1,351 +0,0 @@
|
|
|
1
|
-
// Copyright 2025 LiveKit, Inc.
|
|
2
|
-
//
|
|
3
|
-
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
4
|
-
// you may not use this file except in compliance with the License.
|
|
5
|
-
// You may obtain a copy of the License at
|
|
6
|
-
//
|
|
7
|
-
// http://www.apache.org/licenses/LICENSE-2.0
|
|
8
|
-
//
|
|
9
|
-
// Unless required by applicable law or agreed to in writing, software
|
|
10
|
-
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
11
|
-
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
12
|
-
// See the License for the specific language governing permissions and
|
|
13
|
-
// limitations under the License.
|
|
14
|
-
|
|
15
|
-
// @generated by protoc-gen-es v1.10.1 with parameter "target=ts,import_extension=.js"
|
|
16
|
-
// @generated from file participant.proto (package livekit.proto, syntax proto2)
|
|
17
|
-
/* eslint-disable */
|
|
18
|
-
// @ts-nocheck
|
|
19
|
-
|
|
20
|
-
import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf";
|
|
21
|
-
import { Message, proto2 } from "@bufbuild/protobuf";
|
|
22
|
-
import { FfiOwnedHandle } from "./handle_pb.js";
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
* @generated from enum livekit.proto.ParticipantKind
|
|
26
|
-
*/
|
|
27
|
-
export enum ParticipantKind {
|
|
28
|
-
/**
|
|
29
|
-
* @generated from enum value: PARTICIPANT_KIND_STANDARD = 0;
|
|
30
|
-
*/
|
|
31
|
-
STANDARD = 0,
|
|
32
|
-
|
|
33
|
-
/**
|
|
34
|
-
* @generated from enum value: PARTICIPANT_KIND_INGRESS = 1;
|
|
35
|
-
*/
|
|
36
|
-
INGRESS = 1,
|
|
37
|
-
|
|
38
|
-
/**
|
|
39
|
-
* @generated from enum value: PARTICIPANT_KIND_EGRESS = 2;
|
|
40
|
-
*/
|
|
41
|
-
EGRESS = 2,
|
|
42
|
-
|
|
43
|
-
/**
|
|
44
|
-
* @generated from enum value: PARTICIPANT_KIND_SIP = 3;
|
|
45
|
-
*/
|
|
46
|
-
SIP = 3,
|
|
47
|
-
|
|
48
|
-
/**
|
|
49
|
-
* @generated from enum value: PARTICIPANT_KIND_AGENT = 4;
|
|
50
|
-
*/
|
|
51
|
-
AGENT = 4,
|
|
52
|
-
|
|
53
|
-
/**
|
|
54
|
-
* @generated from enum value: PARTICIPANT_KIND_CONNECTOR = 5;
|
|
55
|
-
*/
|
|
56
|
-
CONNECTOR = 5,
|
|
57
|
-
}
|
|
58
|
-
// Retrieve enum metadata with: proto2.getEnumType(ParticipantKind)
|
|
59
|
-
proto2.util.setEnumType(ParticipantKind, "livekit.proto.ParticipantKind", [
|
|
60
|
-
{ no: 0, name: "PARTICIPANT_KIND_STANDARD" },
|
|
61
|
-
{ no: 1, name: "PARTICIPANT_KIND_INGRESS" },
|
|
62
|
-
{ no: 2, name: "PARTICIPANT_KIND_EGRESS" },
|
|
63
|
-
{ no: 3, name: "PARTICIPANT_KIND_SIP" },
|
|
64
|
-
{ no: 4, name: "PARTICIPANT_KIND_AGENT" },
|
|
65
|
-
{ no: 5, name: "PARTICIPANT_KIND_CONNECTOR" },
|
|
66
|
-
]);
|
|
67
|
-
|
|
68
|
-
/**
|
|
69
|
-
* @generated from enum livekit.proto.ParticipantKindDetail
|
|
70
|
-
*/
|
|
71
|
-
export enum ParticipantKindDetail {
|
|
72
|
-
/**
|
|
73
|
-
* @generated from enum value: PARTICIPANT_KIND_DETAIL_CLOUD_AGENT = 0;
|
|
74
|
-
*/
|
|
75
|
-
CLOUD_AGENT = 0,
|
|
76
|
-
|
|
77
|
-
/**
|
|
78
|
-
* @generated from enum value: PARTICIPANT_KIND_DETAIL_FORWARDED = 1;
|
|
79
|
-
*/
|
|
80
|
-
FORWARDED = 1,
|
|
81
|
-
|
|
82
|
-
/**
|
|
83
|
-
* @generated from enum value: PARTICIPANT_KIND_DETAIL_CONNECTOR_WHATSAPP = 2;
|
|
84
|
-
*/
|
|
85
|
-
CONNECTOR_WHATSAPP = 2,
|
|
86
|
-
|
|
87
|
-
/**
|
|
88
|
-
* @generated from enum value: PARTICIPANT_KIND_DETAIL_CONNECTOR_TWILIO = 3;
|
|
89
|
-
*/
|
|
90
|
-
CONNECTOR_TWILIO = 3,
|
|
91
|
-
}
|
|
92
|
-
// Retrieve enum metadata with: proto2.getEnumType(ParticipantKindDetail)
|
|
93
|
-
proto2.util.setEnumType(ParticipantKindDetail, "livekit.proto.ParticipantKindDetail", [
|
|
94
|
-
{ no: 0, name: "PARTICIPANT_KIND_DETAIL_CLOUD_AGENT" },
|
|
95
|
-
{ no: 1, name: "PARTICIPANT_KIND_DETAIL_FORWARDED" },
|
|
96
|
-
{ no: 2, name: "PARTICIPANT_KIND_DETAIL_CONNECTOR_WHATSAPP" },
|
|
97
|
-
{ no: 3, name: "PARTICIPANT_KIND_DETAIL_CONNECTOR_TWILIO" },
|
|
98
|
-
]);
|
|
99
|
-
|
|
100
|
-
/**
|
|
101
|
-
* @generated from enum livekit.proto.DisconnectReason
|
|
102
|
-
*/
|
|
103
|
-
export enum DisconnectReason {
|
|
104
|
-
/**
|
|
105
|
-
* @generated from enum value: UNKNOWN_REASON = 0;
|
|
106
|
-
*/
|
|
107
|
-
UNKNOWN_REASON = 0,
|
|
108
|
-
|
|
109
|
-
/**
|
|
110
|
-
* the client initiated the disconnect
|
|
111
|
-
*
|
|
112
|
-
* @generated from enum value: CLIENT_INITIATED = 1;
|
|
113
|
-
*/
|
|
114
|
-
CLIENT_INITIATED = 1,
|
|
115
|
-
|
|
116
|
-
/**
|
|
117
|
-
* another participant with the same identity has joined the room
|
|
118
|
-
*
|
|
119
|
-
* @generated from enum value: DUPLICATE_IDENTITY = 2;
|
|
120
|
-
*/
|
|
121
|
-
DUPLICATE_IDENTITY = 2,
|
|
122
|
-
|
|
123
|
-
/**
|
|
124
|
-
* the server instance is shutting down
|
|
125
|
-
*
|
|
126
|
-
* @generated from enum value: SERVER_SHUTDOWN = 3;
|
|
127
|
-
*/
|
|
128
|
-
SERVER_SHUTDOWN = 3,
|
|
129
|
-
|
|
130
|
-
/**
|
|
131
|
-
* RoomService.RemoveParticipant was called
|
|
132
|
-
*
|
|
133
|
-
* @generated from enum value: PARTICIPANT_REMOVED = 4;
|
|
134
|
-
*/
|
|
135
|
-
PARTICIPANT_REMOVED = 4,
|
|
136
|
-
|
|
137
|
-
/**
|
|
138
|
-
* RoomService.DeleteRoom was called
|
|
139
|
-
*
|
|
140
|
-
* @generated from enum value: ROOM_DELETED = 5;
|
|
141
|
-
*/
|
|
142
|
-
ROOM_DELETED = 5,
|
|
143
|
-
|
|
144
|
-
/**
|
|
145
|
-
* the client is attempting to resume a session, but server is not aware of it
|
|
146
|
-
*
|
|
147
|
-
* @generated from enum value: STATE_MISMATCH = 6;
|
|
148
|
-
*/
|
|
149
|
-
STATE_MISMATCH = 6,
|
|
150
|
-
|
|
151
|
-
/**
|
|
152
|
-
* client was unable to connect fully
|
|
153
|
-
*
|
|
154
|
-
* @generated from enum value: JOIN_FAILURE = 7;
|
|
155
|
-
*/
|
|
156
|
-
JOIN_FAILURE = 7,
|
|
157
|
-
|
|
158
|
-
/**
|
|
159
|
-
* Cloud-only, the server requested Participant to migrate the connection elsewhere
|
|
160
|
-
*
|
|
161
|
-
* @generated from enum value: MIGRATION = 8;
|
|
162
|
-
*/
|
|
163
|
-
MIGRATION = 8,
|
|
164
|
-
|
|
165
|
-
/**
|
|
166
|
-
* the signal websocket was closed unexpectedly
|
|
167
|
-
*
|
|
168
|
-
* @generated from enum value: SIGNAL_CLOSE = 9;
|
|
169
|
-
*/
|
|
170
|
-
SIGNAL_CLOSE = 9,
|
|
171
|
-
|
|
172
|
-
/**
|
|
173
|
-
* the room was closed, due to all Standard and Ingress participants having left
|
|
174
|
-
*
|
|
175
|
-
* @generated from enum value: ROOM_CLOSED = 10;
|
|
176
|
-
*/
|
|
177
|
-
ROOM_CLOSED = 10,
|
|
178
|
-
|
|
179
|
-
/**
|
|
180
|
-
* SIP callee did not respond in time
|
|
181
|
-
*
|
|
182
|
-
* @generated from enum value: USER_UNAVAILABLE = 11;
|
|
183
|
-
*/
|
|
184
|
-
USER_UNAVAILABLE = 11,
|
|
185
|
-
|
|
186
|
-
/**
|
|
187
|
-
* SIP callee rejected the call (busy)
|
|
188
|
-
*
|
|
189
|
-
* @generated from enum value: USER_REJECTED = 12;
|
|
190
|
-
*/
|
|
191
|
-
USER_REJECTED = 12,
|
|
192
|
-
|
|
193
|
-
/**
|
|
194
|
-
* SIP protocol failure or unexpected response
|
|
195
|
-
*
|
|
196
|
-
* @generated from enum value: SIP_TRUNK_FAILURE = 13;
|
|
197
|
-
*/
|
|
198
|
-
SIP_TRUNK_FAILURE = 13,
|
|
199
|
-
|
|
200
|
-
/**
|
|
201
|
-
* @generated from enum value: CONNECTION_TIMEOUT = 14;
|
|
202
|
-
*/
|
|
203
|
-
CONNECTION_TIMEOUT = 14,
|
|
204
|
-
|
|
205
|
-
/**
|
|
206
|
-
* @generated from enum value: MEDIA_FAILURE = 15;
|
|
207
|
-
*/
|
|
208
|
-
MEDIA_FAILURE = 15,
|
|
209
|
-
}
|
|
210
|
-
// Retrieve enum metadata with: proto2.getEnumType(DisconnectReason)
|
|
211
|
-
proto2.util.setEnumType(DisconnectReason, "livekit.proto.DisconnectReason", [
|
|
212
|
-
{ no: 0, name: "UNKNOWN_REASON" },
|
|
213
|
-
{ no: 1, name: "CLIENT_INITIATED" },
|
|
214
|
-
{ no: 2, name: "DUPLICATE_IDENTITY" },
|
|
215
|
-
{ no: 3, name: "SERVER_SHUTDOWN" },
|
|
216
|
-
{ no: 4, name: "PARTICIPANT_REMOVED" },
|
|
217
|
-
{ no: 5, name: "ROOM_DELETED" },
|
|
218
|
-
{ no: 6, name: "STATE_MISMATCH" },
|
|
219
|
-
{ no: 7, name: "JOIN_FAILURE" },
|
|
220
|
-
{ no: 8, name: "MIGRATION" },
|
|
221
|
-
{ no: 9, name: "SIGNAL_CLOSE" },
|
|
222
|
-
{ no: 10, name: "ROOM_CLOSED" },
|
|
223
|
-
{ no: 11, name: "USER_UNAVAILABLE" },
|
|
224
|
-
{ no: 12, name: "USER_REJECTED" },
|
|
225
|
-
{ no: 13, name: "SIP_TRUNK_FAILURE" },
|
|
226
|
-
{ no: 14, name: "CONNECTION_TIMEOUT" },
|
|
227
|
-
{ no: 15, name: "MEDIA_FAILURE" },
|
|
228
|
-
]);
|
|
229
|
-
|
|
230
|
-
/**
|
|
231
|
-
* @generated from message livekit.proto.ParticipantInfo
|
|
232
|
-
*/
|
|
233
|
-
export class ParticipantInfo extends Message<ParticipantInfo> {
|
|
234
|
-
/**
|
|
235
|
-
* @generated from field: required string sid = 1;
|
|
236
|
-
*/
|
|
237
|
-
sid?: string;
|
|
238
|
-
|
|
239
|
-
/**
|
|
240
|
-
* @generated from field: required string name = 2;
|
|
241
|
-
*/
|
|
242
|
-
name?: string;
|
|
243
|
-
|
|
244
|
-
/**
|
|
245
|
-
* @generated from field: required string identity = 3;
|
|
246
|
-
*/
|
|
247
|
-
identity?: string;
|
|
248
|
-
|
|
249
|
-
/**
|
|
250
|
-
* @generated from field: required string metadata = 4;
|
|
251
|
-
*/
|
|
252
|
-
metadata?: string;
|
|
253
|
-
|
|
254
|
-
/**
|
|
255
|
-
* @generated from field: map<string, string> attributes = 5;
|
|
256
|
-
*/
|
|
257
|
-
attributes: { [key: string]: string } = {};
|
|
258
|
-
|
|
259
|
-
/**
|
|
260
|
-
* @generated from field: required livekit.proto.ParticipantKind kind = 6;
|
|
261
|
-
*/
|
|
262
|
-
kind?: ParticipantKind;
|
|
263
|
-
|
|
264
|
-
/**
|
|
265
|
-
* @generated from field: required livekit.proto.DisconnectReason disconnect_reason = 7;
|
|
266
|
-
*/
|
|
267
|
-
disconnectReason?: DisconnectReason;
|
|
268
|
-
|
|
269
|
-
/**
|
|
270
|
-
* @generated from field: repeated livekit.proto.ParticipantKindDetail kind_details = 8;
|
|
271
|
-
*/
|
|
272
|
-
kindDetails: ParticipantKindDetail[] = [];
|
|
273
|
-
|
|
274
|
-
constructor(data?: PartialMessage<ParticipantInfo>) {
|
|
275
|
-
super();
|
|
276
|
-
proto2.util.initPartial(data, this);
|
|
277
|
-
}
|
|
278
|
-
|
|
279
|
-
static readonly runtime: typeof proto2 = proto2;
|
|
280
|
-
static readonly typeName = "livekit.proto.ParticipantInfo";
|
|
281
|
-
static readonly fields: FieldList = proto2.util.newFieldList(() => [
|
|
282
|
-
{ no: 1, name: "sid", kind: "scalar", T: 9 /* ScalarType.STRING */, req: true },
|
|
283
|
-
{ no: 2, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */, req: true },
|
|
284
|
-
{ no: 3, name: "identity", kind: "scalar", T: 9 /* ScalarType.STRING */, req: true },
|
|
285
|
-
{ no: 4, name: "metadata", kind: "scalar", T: 9 /* ScalarType.STRING */, req: true },
|
|
286
|
-
{ no: 5, name: "attributes", kind: "map", K: 9 /* ScalarType.STRING */, V: {kind: "scalar", T: 9 /* ScalarType.STRING */} },
|
|
287
|
-
{ no: 6, name: "kind", kind: "enum", T: proto2.getEnumType(ParticipantKind), req: true },
|
|
288
|
-
{ no: 7, name: "disconnect_reason", kind: "enum", T: proto2.getEnumType(DisconnectReason), req: true },
|
|
289
|
-
{ no: 8, name: "kind_details", kind: "enum", T: proto2.getEnumType(ParticipantKindDetail), repeated: true },
|
|
290
|
-
]);
|
|
291
|
-
|
|
292
|
-
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ParticipantInfo {
|
|
293
|
-
return new ParticipantInfo().fromBinary(bytes, options);
|
|
294
|
-
}
|
|
295
|
-
|
|
296
|
-
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ParticipantInfo {
|
|
297
|
-
return new ParticipantInfo().fromJson(jsonValue, options);
|
|
298
|
-
}
|
|
299
|
-
|
|
300
|
-
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ParticipantInfo {
|
|
301
|
-
return new ParticipantInfo().fromJsonString(jsonString, options);
|
|
302
|
-
}
|
|
303
|
-
|
|
304
|
-
static equals(a: ParticipantInfo | PlainMessage<ParticipantInfo> | undefined, b: ParticipantInfo | PlainMessage<ParticipantInfo> | undefined): boolean {
|
|
305
|
-
return proto2.util.equals(ParticipantInfo, a, b);
|
|
306
|
-
}
|
|
307
|
-
}
|
|
308
|
-
|
|
309
|
-
/**
|
|
310
|
-
* @generated from message livekit.proto.OwnedParticipant
|
|
311
|
-
*/
|
|
312
|
-
export class OwnedParticipant extends Message<OwnedParticipant> {
|
|
313
|
-
/**
|
|
314
|
-
* @generated from field: required livekit.proto.FfiOwnedHandle handle = 1;
|
|
315
|
-
*/
|
|
316
|
-
handle?: FfiOwnedHandle;
|
|
317
|
-
|
|
318
|
-
/**
|
|
319
|
-
* @generated from field: required livekit.proto.ParticipantInfo info = 2;
|
|
320
|
-
*/
|
|
321
|
-
info?: ParticipantInfo;
|
|
322
|
-
|
|
323
|
-
constructor(data?: PartialMessage<OwnedParticipant>) {
|
|
324
|
-
super();
|
|
325
|
-
proto2.util.initPartial(data, this);
|
|
326
|
-
}
|
|
327
|
-
|
|
328
|
-
static readonly runtime: typeof proto2 = proto2;
|
|
329
|
-
static readonly typeName = "livekit.proto.OwnedParticipant";
|
|
330
|
-
static readonly fields: FieldList = proto2.util.newFieldList(() => [
|
|
331
|
-
{ no: 1, name: "handle", kind: "message", T: FfiOwnedHandle, req: true },
|
|
332
|
-
{ no: 2, name: "info", kind: "message", T: ParticipantInfo, req: true },
|
|
333
|
-
]);
|
|
334
|
-
|
|
335
|
-
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): OwnedParticipant {
|
|
336
|
-
return new OwnedParticipant().fromBinary(bytes, options);
|
|
337
|
-
}
|
|
338
|
-
|
|
339
|
-
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): OwnedParticipant {
|
|
340
|
-
return new OwnedParticipant().fromJson(jsonValue, options);
|
|
341
|
-
}
|
|
342
|
-
|
|
343
|
-
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): OwnedParticipant {
|
|
344
|
-
return new OwnedParticipant().fromJsonString(jsonString, options);
|
|
345
|
-
}
|
|
346
|
-
|
|
347
|
-
static equals(a: OwnedParticipant | PlainMessage<OwnedParticipant> | undefined, b: OwnedParticipant | PlainMessage<OwnedParticipant> | undefined): boolean {
|
|
348
|
-
return proto2.util.equals(OwnedParticipant, a, b);
|
|
349
|
-
}
|
|
350
|
-
}
|
|
351
|
-
|