@livekit/rtc-node 0.10.3 → 0.11.0
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/README.md +54 -2
- package/build.rs +1 -1
- package/dist/audio_frame.d.ts +1 -1
- package/dist/audio_frame.d.ts.map +1 -1
- package/dist/audio_frame.js +4 -4
- package/dist/audio_frame.js.map +1 -1
- package/dist/audio_resampler.d.ts.map +1 -1
- package/dist/audio_resampler.js +8 -7
- package/dist/audio_resampler.js.map +1 -1
- package/dist/audio_source.d.ts.map +1 -1
- package/dist/audio_source.js +8 -4
- package/dist/audio_source.js.map +1 -1
- package/dist/audio_stream.d.ts +1 -1
- package/dist/audio_stream.d.ts.map +1 -1
- package/dist/audio_stream.js +4 -3
- package/dist/audio_stream.js.map +1 -1
- package/dist/e2ee.d.ts.map +1 -1
- package/dist/e2ee.js +25 -25
- package/dist/e2ee.js.map +1 -1
- package/dist/ffi_client.d.ts +3 -3
- package/dist/ffi_client.d.ts.map +1 -1
- package/dist/ffi_client.js +9 -7
- package/dist/ffi_client.js.map +1 -1
- package/dist/index.d.ts +29 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +34 -4
- package/dist/index.js.map +1 -1
- package/dist/napi/native.d.ts +1 -0
- package/dist/participant.d.ts +52 -6
- package/dist/participant.d.ts.map +1 -1
- package/dist/participant.js +155 -32
- package/dist/participant.js.map +1 -1
- package/dist/proto/audio_frame_pb.d.ts +451 -526
- package/dist/proto/audio_frame_pb.d.ts.map +1 -1
- package/dist/proto/audio_frame_pb.js +200 -1179
- package/dist/proto/audio_frame_pb.js.map +1 -1
- package/dist/proto/e2ee_pb.d.ts +264 -333
- package/dist/proto/e2ee_pb.d.ts.map +1 -1
- package/dist/proto/e2ee_pb.js +136 -810
- package/dist/proto/e2ee_pb.js.map +1 -1
- package/dist/proto/ffi_pb.d.ts +175 -129
- package/dist/proto/ffi_pb.d.ts.map +1 -1
- package/dist/proto/ffi_pb.js +58 -395
- package/dist/proto/ffi_pb.js.map +1 -1
- package/dist/proto/handle_pb.d.ts +14 -13
- package/dist/proto/handle_pb.d.ts.map +1 -1
- package/dist/proto/handle_pb.js +8 -39
- package/dist/proto/handle_pb.js.map +1 -1
- package/dist/proto/participant_pb.d.ts +54 -52
- package/dist/proto/participant_pb.d.ts.map +1 -1
- package/dist/proto/participant_pb.js +18 -90
- package/dist/proto/participant_pb.js.map +1 -1
- package/dist/proto/room_pb.d.ts +1042 -1187
- package/dist/proto/room_pb.d.ts.map +1 -1
- package/dist/proto/room_pb.js +470 -2938
- package/dist/proto/room_pb.js.map +1 -1
- package/dist/proto/rpc_pb.d.ts +235 -0
- package/dist/proto/rpc_pb.d.ts.map +1 -0
- package/dist/proto/rpc_pb.js +74 -0
- package/dist/proto/rpc_pb.js.map +1 -0
- package/dist/proto/stats_pb.d.ts +738 -800
- package/dist/proto/stats_pb.d.ts.map +1 -1
- package/dist/proto/stats_pb.js +218 -1960
- package/dist/proto/stats_pb.js.map +1 -1
- package/dist/proto/track_pb.d.ts +225 -258
- package/dist/proto/track_pb.d.ts.map +1 -1
- package/dist/proto/track_pb.js +98 -591
- package/dist/proto/track_pb.js.map +1 -1
- package/dist/proto/video_frame_pb.d.ts +357 -390
- package/dist/proto/video_frame_pb.d.ts.map +1 -1
- package/dist/proto/video_frame_pb.js +137 -790
- package/dist/proto/video_frame_pb.js.map +1 -1
- package/dist/room.d.ts +21 -7
- package/dist/room.d.ts.map +1 -1
- package/dist/room.js +134 -54
- package/dist/room.js.map +1 -1
- package/dist/rpc.d.ts +78 -0
- package/dist/rpc.d.ts.map +1 -0
- package/dist/rpc.js +69 -0
- package/dist/rpc.js.map +1 -0
- package/dist/track.d.ts.map +1 -1
- package/dist/track.js +7 -3
- package/dist/track.js.map +1 -1
- package/dist/track_publication.d.ts.map +1 -1
- package/dist/track_publication.js +3 -2
- package/dist/track_publication.js.map +1 -1
- package/dist/version.d.ts +2 -0
- package/dist/version.d.ts.map +1 -0
- package/dist/version.js +2 -0
- package/dist/version.js.map +1 -0
- package/dist/video_frame.d.ts +2 -2
- package/dist/video_frame.d.ts.map +1 -1
- package/dist/video_frame.js +47 -25
- package/dist/video_frame.js.map +1 -1
- package/dist/video_source.d.ts.map +1 -1
- package/dist/video_source.js +4 -3
- package/dist/video_source.js.map +1 -1
- package/dist/video_stream.d.ts +1 -1
- package/dist/video_stream.d.ts.map +1 -1
- package/dist/video_stream.js +7 -3
- package/dist/video_stream.js.map +1 -1
- package/package.json +13 -10
- package/src/audio_frame.ts +6 -6
- package/src/audio_resampler.ts +10 -9
- package/src/audio_source.ts +9 -8
- package/src/audio_stream.ts +7 -6
- package/src/e2ee.ts +34 -34
- package/src/ffi_client.ts +23 -10
- package/src/index.ts +61 -2
- package/src/napi/native.d.ts +1 -0
- package/src/nodejs.rs +6 -3
- package/src/participant.ts +219 -55
- package/src/proto/audio_frame_pb.ts +562 -1279
- package/src/proto/e2ee_pb.ts +365 -886
- package/src/proto/ffi_pb.ts +206 -405
- package/src/proto/handle_pb.ts +21 -35
- package/src/proto/participant_pb.ts +71 -112
- package/src/proto/room_pb.ts +1284 -2995
- package/src/proto/rpc_pb.ts +310 -0
- package/src/proto/stats_pb.ts +1028 -1947
- package/src/proto/track_pb.ts +287 -621
- package/src/proto/video_frame_pb.ts +445 -905
- package/src/room.ts +181 -75
- package/src/rpc.ts +121 -0
- package/src/track.ts +8 -7
- package/src/track_publication.ts +5 -4
- package/src/version.ts +1 -0
- package/src/video_frame.ts +54 -27
- package/src/video_source.ts +7 -6
- package/src/video_stream.ts +7 -6
- package/dist/utils.d.ts +0 -7
- package/dist/utils.d.ts.map +0 -1
- package/dist/utils.js +0 -48
- package/dist/utils.js.map +0 -1
- package/src/utils.test.ts +0 -47
- package/src/utils.ts +0 -44
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"handle_pb.js","sourceRoot":"","sources":["../../src/proto/handle_pb.ts"],"names":[],"mappings":"AAAA,+BAA+B;AAC/B,EAAE;AACF,kEAAkE;AAClE,mEAAmE;AACnE,0CAA0C;AAC1C,EAAE;AACF,iDAAiD;AACjD,EAAE;AACF,sEAAsE;AACtE,oEAAoE;AACpE,2EAA2E;AAC3E,sEAAsE;AACtE,iCAAiC;
|
|
1
|
+
{"version":3,"file":"handle_pb.js","sourceRoot":"","sources":["../../src/proto/handle_pb.ts"],"names":[],"mappings":"AAAA,+BAA+B;AAC/B,EAAE;AACF,kEAAkE;AAClE,mEAAmE;AACnE,0CAA0C;AAC1C,EAAE;AACF,iDAAiD;AACjD,EAAE;AACF,sEAAsE;AACtE,oEAAoE;AACpE,2EAA2E;AAC3E,sEAAsE;AACtE,iCAAiC;AAOjC,OAAO,EAAE,QAAQ,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAGrE;;GAEG;AACH,MAAM,CAAC,MAAM,WAAW,GAAY,aAAa,CAC/C,QAAQ,CAAC,yGAAyG,CAAC,CAAC;AAsBtH;;;GAGG;AACH,MAAM,CAAC,MAAM,oBAAoB,GAA+B,aAAa,CAC3E,WAAW,CAAC,WAAW,EAAE,CAAC,CAAC,CAAC"}
|
|
@@ -1,49 +1,28 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import type { GenEnum, GenFile, GenMessage } from "@bufbuild/protobuf/codegenv1";
|
|
2
|
+
import type { FfiOwnedHandle } from "./handle_pb";
|
|
3
|
+
import type { Message } from "@bufbuild/protobuf";
|
|
4
4
|
/**
|
|
5
|
-
*
|
|
5
|
+
* Describes the file participant.proto.
|
|
6
6
|
*/
|
|
7
|
-
export declare
|
|
8
|
-
/**
|
|
9
|
-
* @generated from enum value: PARTICIPANT_KIND_STANDARD = 0;
|
|
10
|
-
*/
|
|
11
|
-
STANDARD = 0,
|
|
12
|
-
/**
|
|
13
|
-
* @generated from enum value: PARTICIPANT_KIND_INGRESS = 1;
|
|
14
|
-
*/
|
|
15
|
-
INGRESS = 1,
|
|
16
|
-
/**
|
|
17
|
-
* @generated from enum value: PARTICIPANT_KIND_EGRESS = 2;
|
|
18
|
-
*/
|
|
19
|
-
EGRESS = 2,
|
|
20
|
-
/**
|
|
21
|
-
* @generated from enum value: PARTICIPANT_KIND_SIP = 3;
|
|
22
|
-
*/
|
|
23
|
-
SIP = 3,
|
|
24
|
-
/**
|
|
25
|
-
* @generated from enum value: PARTICIPANT_KIND_AGENT = 4;
|
|
26
|
-
*/
|
|
27
|
-
AGENT = 4
|
|
28
|
-
}
|
|
7
|
+
export declare const file_participant: GenFile;
|
|
29
8
|
/**
|
|
30
9
|
* @generated from message livekit.proto.ParticipantInfo
|
|
31
10
|
*/
|
|
32
|
-
export
|
|
11
|
+
export type ParticipantInfo = Message<"livekit.proto.ParticipantInfo"> & {
|
|
33
12
|
/**
|
|
34
|
-
* @generated from field: string sid = 1;
|
|
13
|
+
* @generated from field: required string sid = 1;
|
|
35
14
|
*/
|
|
36
15
|
sid: string;
|
|
37
16
|
/**
|
|
38
|
-
* @generated from field: string name = 2;
|
|
17
|
+
* @generated from field: required string name = 2;
|
|
39
18
|
*/
|
|
40
19
|
name: string;
|
|
41
20
|
/**
|
|
42
|
-
* @generated from field: string identity = 3;
|
|
21
|
+
* @generated from field: required string identity = 3;
|
|
43
22
|
*/
|
|
44
23
|
identity: string;
|
|
45
24
|
/**
|
|
46
|
-
* @generated from field: string metadata = 4;
|
|
25
|
+
* @generated from field: required string metadata = 4;
|
|
47
26
|
*/
|
|
48
27
|
metadata: string;
|
|
49
28
|
/**
|
|
@@ -53,37 +32,60 @@ export declare class ParticipantInfo extends Message<ParticipantInfo> {
|
|
|
53
32
|
[key: string]: string;
|
|
54
33
|
};
|
|
55
34
|
/**
|
|
56
|
-
* @generated from field: livekit.proto.ParticipantKind kind = 6;
|
|
35
|
+
* @generated from field: required livekit.proto.ParticipantKind kind = 6;
|
|
57
36
|
*/
|
|
58
37
|
kind: ParticipantKind;
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ParticipantInfo;
|
|
66
|
-
static equals(a: ParticipantInfo | PlainMessage<ParticipantInfo> | undefined, b: ParticipantInfo | PlainMessage<ParticipantInfo> | undefined): boolean;
|
|
67
|
-
}
|
|
38
|
+
};
|
|
39
|
+
/**
|
|
40
|
+
* Describes the message livekit.proto.ParticipantInfo.
|
|
41
|
+
* Use `create(ParticipantInfoSchema)` to create a new message.
|
|
42
|
+
*/
|
|
43
|
+
export declare const ParticipantInfoSchema: GenMessage<ParticipantInfo>;
|
|
68
44
|
/**
|
|
69
45
|
* @generated from message livekit.proto.OwnedParticipant
|
|
70
46
|
*/
|
|
71
|
-
export
|
|
47
|
+
export type OwnedParticipant = Message<"livekit.proto.OwnedParticipant"> & {
|
|
72
48
|
/**
|
|
73
|
-
* @generated from field: livekit.proto.FfiOwnedHandle handle = 1;
|
|
49
|
+
* @generated from field: required livekit.proto.FfiOwnedHandle handle = 1;
|
|
74
50
|
*/
|
|
75
51
|
handle?: FfiOwnedHandle;
|
|
76
52
|
/**
|
|
77
|
-
* @generated from field: livekit.proto.ParticipantInfo info = 2;
|
|
53
|
+
* @generated from field: required livekit.proto.ParticipantInfo info = 2;
|
|
78
54
|
*/
|
|
79
55
|
info?: ParticipantInfo;
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
56
|
+
};
|
|
57
|
+
/**
|
|
58
|
+
* Describes the message livekit.proto.OwnedParticipant.
|
|
59
|
+
* Use `create(OwnedParticipantSchema)` to create a new message.
|
|
60
|
+
*/
|
|
61
|
+
export declare const OwnedParticipantSchema: GenMessage<OwnedParticipant>;
|
|
62
|
+
/**
|
|
63
|
+
* @generated from enum livekit.proto.ParticipantKind
|
|
64
|
+
*/
|
|
65
|
+
export declare enum ParticipantKind {
|
|
66
|
+
/**
|
|
67
|
+
* @generated from enum value: PARTICIPANT_KIND_STANDARD = 0;
|
|
68
|
+
*/
|
|
69
|
+
STANDARD = 0,
|
|
70
|
+
/**
|
|
71
|
+
* @generated from enum value: PARTICIPANT_KIND_INGRESS = 1;
|
|
72
|
+
*/
|
|
73
|
+
INGRESS = 1,
|
|
74
|
+
/**
|
|
75
|
+
* @generated from enum value: PARTICIPANT_KIND_EGRESS = 2;
|
|
76
|
+
*/
|
|
77
|
+
EGRESS = 2,
|
|
78
|
+
/**
|
|
79
|
+
* @generated from enum value: PARTICIPANT_KIND_SIP = 3;
|
|
80
|
+
*/
|
|
81
|
+
SIP = 3,
|
|
82
|
+
/**
|
|
83
|
+
* @generated from enum value: PARTICIPANT_KIND_AGENT = 4;
|
|
84
|
+
*/
|
|
85
|
+
AGENT = 4
|
|
88
86
|
}
|
|
87
|
+
/**
|
|
88
|
+
* Describes the enum livekit.proto.ParticipantKind.
|
|
89
|
+
*/
|
|
90
|
+
export declare const ParticipantKindSchema: GenEnum<ParticipantKind>;
|
|
89
91
|
//# sourceMappingURL=participant_pb.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"participant_pb.d.ts","sourceRoot":"","sources":["../../src/proto/participant_pb.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"participant_pb.d.ts","sourceRoot":"","sources":["../../src/proto/participant_pb.ts"],"names":[],"mappings":"AAkBA,OAAO,KAAK,EAAE,OAAO,EAAE,OAAO,EAAE,UAAU,EAAE,MAAM,8BAA8B,CAAC;AAEjF,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAElD,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAElD;;GAEG;AACH,eAAO,MAAM,gBAAgB,EAAE,OACgwB,CAAC;AAEhyB;;GAEG;AACH,MAAM,MAAM,eAAe,GAAG,OAAO,CAAC,+BAA+B,CAAC,GAAG;IACvE;;OAEG;IACH,GAAG,EAAE,MAAM,CAAC;IAEZ;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IAEjB;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IAEjB;;OAEG;IACH,UAAU,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAA;KAAE,CAAC;IAEtC;;OAEG;IACH,IAAI,EAAE,eAAe,CAAC;CACvB,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,qBAAqB,EAAE,UAAU,CAAC,eAAe,CAC5B,CAAC;AAEnC;;GAEG;AACH,MAAM,MAAM,gBAAgB,GAAG,OAAO,CAAC,gCAAgC,CAAC,GAAG;IACzE;;OAEG;IACH,MAAM,CAAC,EAAE,cAAc,CAAC;IAExB;;OAEG;IACH,IAAI,CAAC,EAAE,eAAe,CAAC;CACxB,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,sBAAsB,EAAE,UAAU,CAAC,gBAAgB,CAC9B,CAAC;AAEnC;;GAEG;AACH,oBAAY,eAAe;IACzB;;OAEG;IACH,QAAQ,IAAI;IAEZ;;OAEG;IACH,OAAO,IAAI;IAEX;;OAEG;IACH,MAAM,IAAI;IAEV;;OAEG;IACH,GAAG,IAAI;IAEP;;OAEG;IACH,KAAK,IAAI;CACV;AAED;;GAEG;AACH,eAAO,MAAM,qBAAqB,EAAE,OAAO,CAAC,eAAe,CAC5B,CAAC"}
|
|
@@ -11,8 +11,22 @@
|
|
|
11
11
|
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
12
12
|
// See the License for the specific language governing permissions and
|
|
13
13
|
// limitations under the License.
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
14
|
+
import { enumDesc, fileDesc, messageDesc } from "@bufbuild/protobuf/codegenv1";
|
|
15
|
+
import { file_handle } from "./handle_pb";
|
|
16
|
+
/**
|
|
17
|
+
* Describes the file participant.proto.
|
|
18
|
+
*/
|
|
19
|
+
export const file_participant = /*@__PURE__*/ fileDesc("ChFwYXJ0aWNpcGFudC5wcm90bxINbGl2ZWtpdC5wcm90byL1AQoPUGFydGljaXBhbnRJbmZvEgsKA3NpZBgBIAIoCRIMCgRuYW1lGAIgAigJEhAKCGlkZW50aXR5GAMgAigJEhAKCG1ldGFkYXRhGAQgAigJEkIKCmF0dHJpYnV0ZXMYBSADKAsyLi5saXZla2l0LnByb3RvLlBhcnRpY2lwYW50SW5mby5BdHRyaWJ1dGVzRW50cnkSLAoEa2luZBgGIAIoDjIeLmxpdmVraXQucHJvdG8uUGFydGljaXBhbnRLaW5kGjEKD0F0dHJpYnV0ZXNFbnRyeRILCgNrZXkYASABKAkSDQoFdmFsdWUYAiABKAk6AjgBIm8KEE93bmVkUGFydGljaXBhbnQSLQoGaGFuZGxlGAEgAigLMh0ubGl2ZWtpdC5wcm90by5GZmlPd25lZEhhbmRsZRIsCgRpbmZvGAIgAigLMh4ubGl2ZWtpdC5wcm90by5QYXJ0aWNpcGFudEluZm8qoQEKD1BhcnRpY2lwYW50S2luZBIdChlQQVJUSUNJUEFOVF9LSU5EX1NUQU5EQVJEEAASHAoYUEFSVElDSVBBTlRfS0lORF9JTkdSRVNTEAESGwoXUEFSVElDSVBBTlRfS0lORF9FR1JFU1MQAhIYChRQQVJUSUNJUEFOVF9LSU5EX1NJUBADEhoKFlBBUlRJQ0lQQU5UX0tJTkRfQUdFTlQQBEIQqgINTGl2ZUtpdC5Qcm90bw", [file_handle]);
|
|
20
|
+
/**
|
|
21
|
+
* Describes the message livekit.proto.ParticipantInfo.
|
|
22
|
+
* Use `create(ParticipantInfoSchema)` to create a new message.
|
|
23
|
+
*/
|
|
24
|
+
export const ParticipantInfoSchema = /*@__PURE__*/ messageDesc(file_participant, 0);
|
|
25
|
+
/**
|
|
26
|
+
* Describes the message livekit.proto.OwnedParticipant.
|
|
27
|
+
* Use `create(OwnedParticipantSchema)` to create a new message.
|
|
28
|
+
*/
|
|
29
|
+
export const OwnedParticipantSchema = /*@__PURE__*/ messageDesc(file_participant, 1);
|
|
16
30
|
/**
|
|
17
31
|
* @generated from enum livekit.proto.ParticipantKind
|
|
18
32
|
*/
|
|
@@ -39,94 +53,8 @@ export var ParticipantKind;
|
|
|
39
53
|
*/
|
|
40
54
|
ParticipantKind[ParticipantKind["AGENT"] = 4] = "AGENT";
|
|
41
55
|
})(ParticipantKind || (ParticipantKind = {}));
|
|
42
|
-
// Retrieve enum metadata with: proto3.getEnumType(ParticipantKind)
|
|
43
|
-
proto3.util.setEnumType(ParticipantKind, "livekit.proto.ParticipantKind", [
|
|
44
|
-
{ no: 0, name: "PARTICIPANT_KIND_STANDARD" },
|
|
45
|
-
{ no: 1, name: "PARTICIPANT_KIND_INGRESS" },
|
|
46
|
-
{ no: 2, name: "PARTICIPANT_KIND_EGRESS" },
|
|
47
|
-
{ no: 3, name: "PARTICIPANT_KIND_SIP" },
|
|
48
|
-
{ no: 4, name: "PARTICIPANT_KIND_AGENT" },
|
|
49
|
-
]);
|
|
50
|
-
/**
|
|
51
|
-
* @generated from message livekit.proto.ParticipantInfo
|
|
52
|
-
*/
|
|
53
|
-
export class ParticipantInfo extends Message {
|
|
54
|
-
constructor(data) {
|
|
55
|
-
super();
|
|
56
|
-
/**
|
|
57
|
-
* @generated from field: string sid = 1;
|
|
58
|
-
*/
|
|
59
|
-
this.sid = "";
|
|
60
|
-
/**
|
|
61
|
-
* @generated from field: string name = 2;
|
|
62
|
-
*/
|
|
63
|
-
this.name = "";
|
|
64
|
-
/**
|
|
65
|
-
* @generated from field: string identity = 3;
|
|
66
|
-
*/
|
|
67
|
-
this.identity = "";
|
|
68
|
-
/**
|
|
69
|
-
* @generated from field: string metadata = 4;
|
|
70
|
-
*/
|
|
71
|
-
this.metadata = "";
|
|
72
|
-
/**
|
|
73
|
-
* @generated from field: map<string, string> attributes = 5;
|
|
74
|
-
*/
|
|
75
|
-
this.attributes = {};
|
|
76
|
-
/**
|
|
77
|
-
* @generated from field: livekit.proto.ParticipantKind kind = 6;
|
|
78
|
-
*/
|
|
79
|
-
this.kind = ParticipantKind.STANDARD;
|
|
80
|
-
proto3.util.initPartial(data, this);
|
|
81
|
-
}
|
|
82
|
-
static fromBinary(bytes, options) {
|
|
83
|
-
return new ParticipantInfo().fromBinary(bytes, options);
|
|
84
|
-
}
|
|
85
|
-
static fromJson(jsonValue, options) {
|
|
86
|
-
return new ParticipantInfo().fromJson(jsonValue, options);
|
|
87
|
-
}
|
|
88
|
-
static fromJsonString(jsonString, options) {
|
|
89
|
-
return new ParticipantInfo().fromJsonString(jsonString, options);
|
|
90
|
-
}
|
|
91
|
-
static equals(a, b) {
|
|
92
|
-
return proto3.util.equals(ParticipantInfo, a, b);
|
|
93
|
-
}
|
|
94
|
-
}
|
|
95
|
-
ParticipantInfo.runtime = proto3;
|
|
96
|
-
ParticipantInfo.typeName = "livekit.proto.ParticipantInfo";
|
|
97
|
-
ParticipantInfo.fields = proto3.util.newFieldList(() => [
|
|
98
|
-
{ no: 1, name: "sid", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
99
|
-
{ no: 2, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
100
|
-
{ no: 3, name: "identity", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
101
|
-
{ no: 4, name: "metadata", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
102
|
-
{ no: 5, name: "attributes", kind: "map", K: 9 /* ScalarType.STRING */, V: { kind: "scalar", T: 9 /* ScalarType.STRING */ } },
|
|
103
|
-
{ no: 6, name: "kind", kind: "enum", T: proto3.getEnumType(ParticipantKind) },
|
|
104
|
-
]);
|
|
105
56
|
/**
|
|
106
|
-
*
|
|
57
|
+
* Describes the enum livekit.proto.ParticipantKind.
|
|
107
58
|
*/
|
|
108
|
-
export
|
|
109
|
-
constructor(data) {
|
|
110
|
-
super();
|
|
111
|
-
proto3.util.initPartial(data, this);
|
|
112
|
-
}
|
|
113
|
-
static fromBinary(bytes, options) {
|
|
114
|
-
return new OwnedParticipant().fromBinary(bytes, options);
|
|
115
|
-
}
|
|
116
|
-
static fromJson(jsonValue, options) {
|
|
117
|
-
return new OwnedParticipant().fromJson(jsonValue, options);
|
|
118
|
-
}
|
|
119
|
-
static fromJsonString(jsonString, options) {
|
|
120
|
-
return new OwnedParticipant().fromJsonString(jsonString, options);
|
|
121
|
-
}
|
|
122
|
-
static equals(a, b) {
|
|
123
|
-
return proto3.util.equals(OwnedParticipant, a, b);
|
|
124
|
-
}
|
|
125
|
-
}
|
|
126
|
-
OwnedParticipant.runtime = proto3;
|
|
127
|
-
OwnedParticipant.typeName = "livekit.proto.OwnedParticipant";
|
|
128
|
-
OwnedParticipant.fields = proto3.util.newFieldList(() => [
|
|
129
|
-
{ no: 1, name: "handle", kind: "message", T: FfiOwnedHandle },
|
|
130
|
-
{ no: 2, name: "info", kind: "message", T: ParticipantInfo },
|
|
131
|
-
]);
|
|
59
|
+
export const ParticipantKindSchema = /*@__PURE__*/ enumDesc(file_participant, 0);
|
|
132
60
|
//# sourceMappingURL=participant_pb.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"participant_pb.js","sourceRoot":"","sources":["../../src/proto/participant_pb.ts"],"names":[],"mappings":"AAAA,+BAA+B;AAC/B,EAAE;AACF,kEAAkE;AAClE,mEAAmE;AACnE,0CAA0C;AAC1C,EAAE;AACF,iDAAiD;AACjD,EAAE;AACF,sEAAsE;AACtE,oEAAoE;AACpE,2EAA2E;AAC3E,sEAAsE;AACtE,iCAAiC;
|
|
1
|
+
{"version":3,"file":"participant_pb.js","sourceRoot":"","sources":["../../src/proto/participant_pb.ts"],"names":[],"mappings":"AAAA,+BAA+B;AAC/B,EAAE;AACF,kEAAkE;AAClE,mEAAmE;AACnE,0CAA0C;AAC1C,EAAE;AACF,iDAAiD;AACjD,EAAE;AACF,sEAAsE;AACtE,oEAAoE;AACpE,2EAA2E;AAC3E,sEAAsE;AACtE,iCAAiC;AAOjC,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAE/E,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAG1C;;GAEG;AACH,MAAM,CAAC,MAAM,gBAAgB,GAAY,aAAa,CACpD,QAAQ,CAAC,owBAAowB,EAAE,CAAC,WAAW,CAAC,CAAC,CAAC;AAqChyB;;;GAGG;AACH,MAAM,CAAC,MAAM,qBAAqB,GAAgC,aAAa,CAC7E,WAAW,CAAC,gBAAgB,EAAE,CAAC,CAAC,CAAC;AAiBnC;;;GAGG;AACH,MAAM,CAAC,MAAM,sBAAsB,GAAiC,aAAa,CAC/E,WAAW,CAAC,gBAAgB,EAAE,CAAC,CAAC,CAAC;AAEnC;;GAEG;AACH,MAAM,CAAN,IAAY,eAyBX;AAzBD,WAAY,eAAe;IACzB;;OAEG;IACH,6DAAY,CAAA;IAEZ;;OAEG;IACH,2DAAW,CAAA;IAEX;;OAEG;IACH,yDAAU,CAAA;IAEV;;OAEG;IACH,mDAAO,CAAA;IAEP;;OAEG;IACH,uDAAS,CAAA;AACX,CAAC,EAzBW,eAAe,KAAf,eAAe,QAyB1B;AAED;;GAEG;AACH,MAAM,CAAC,MAAM,qBAAqB,GAA6B,aAAa,CAC1E,QAAQ,CAAC,gBAAgB,EAAE,CAAC,CAAC,CAAC"}
|