@livekit/rtc-node 0.11.0 → 0.12.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/dist/audio_frame.cjs +94 -0
- package/dist/audio_frame.cjs.map +1 -0
- package/dist/audio_frame.js +64 -67
- package/dist/audio_frame.js.map +1 -1
- package/dist/audio_resampler.cjs +153 -0
- package/dist/audio_resampler.cjs.map +1 -0
- package/dist/audio_resampler.js +129 -134
- package/dist/audio_resampler.js.map +1 -1
- package/dist/audio_source.cjs +116 -0
- package/dist/audio_source.cjs.map +1 -0
- package/dist/audio_source.js +92 -85
- package/dist/audio_source.js.map +1 -1
- package/dist/audio_stream.cjs +104 -0
- package/dist/audio_stream.cjs.map +1 -0
- package/dist/audio_stream.js +77 -78
- package/dist/audio_stream.js.map +1 -1
- package/dist/e2ee.cjs +268 -0
- package/dist/e2ee.cjs.map +1 -0
- package/dist/e2ee.d.ts.map +1 -1
- package/dist/e2ee.js +244 -221
- package/dist/e2ee.js.map +1 -1
- package/dist/ffi_client.cjs +101 -0
- package/dist/ffi_client.cjs.map +1 -0
- package/dist/ffi_client.js +73 -48
- package/dist/ffi_client.js.map +1 -1
- package/dist/index.cjs +188 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.js +130 -48
- package/dist/index.js.map +1 -1
- package/dist/napi/native.d.cjs +17 -0
- package/dist/napi/native.d.cjs.map +1 -0
- package/dist/napi/native.d.js +1 -0
- package/dist/napi/native.d.js.map +1 -0
- package/dist/napi/native.d.ts +5 -5
- package/dist/native.cjs +301 -0
- package/dist/native.d.ts +19 -0
- package/dist/native.js +15 -0
- package/dist/participant.cjs +388 -0
- package/dist/participant.cjs.map +1 -0
- package/dist/participant.js +363 -339
- package/dist/participant.js.map +1 -1
- package/dist/proto/audio_frame_pb.cjs +193 -0
- package/dist/proto/audio_frame_pb.cjs.map +1 -0
- package/dist/proto/audio_frame_pb.d.ts +8 -8
- package/dist/proto/audio_frame_pb.d.ts.map +1 -1
- package/dist/proto/audio_frame_pb.js +122 -322
- package/dist/proto/audio_frame_pb.js.map +1 -1
- package/dist/proto/e2ee_pb.cjs +131 -0
- package/dist/proto/e2ee_pb.cjs.map +1 -0
- package/dist/proto/e2ee_pb.js +76 -202
- package/dist/proto/e2ee_pb.js.map +1 -1
- package/dist/proto/ffi_pb.cjs +76 -0
- package/dist/proto/ffi_pb.cjs.map +1 -0
- package/dist/proto/ffi_pb.d.ts +6 -6
- package/dist/proto/ffi_pb.d.ts.map +1 -1
- package/dist/proto/ffi_pb.js +39 -98
- package/dist/proto/ffi_pb.js.map +1 -1
- package/dist/proto/handle_pb.cjs +33 -0
- package/dist/proto/handle_pb.cjs.map +1 -0
- package/dist/proto/handle_pb.js +6 -22
- package/dist/proto/handle_pb.js.map +1 -1
- package/dist/proto/participant_pb.cjs +50 -0
- package/dist/proto/participant_pb.cjs.map +1 -0
- package/dist/proto/participant_pb.d.ts +1 -1
- package/dist/proto/participant_pb.d.ts.map +1 -1
- package/dist/proto/participant_pb.js +20 -58
- package/dist/proto/participant_pb.js.map +1 -1
- package/dist/proto/room_pb.cjs +370 -0
- package/dist/proto/room_pb.cjs.map +1 -0
- package/dist/proto/room_pb.d.ts +16 -16
- package/dist/proto/room_pb.d.ts.map +1 -1
- package/dist/proto/room_pb.js +245 -638
- package/dist/proto/room_pb.js.map +1 -1
- package/dist/proto/rpc_pb.cjs +63 -0
- package/dist/proto/rpc_pb.cjs.map +1 -0
- package/dist/proto/rpc_pb.js +26 -72
- package/dist/proto/rpc_pb.js.map +1 -1
- package/dist/proto/stats_pb.cjs +256 -0
- package/dist/proto/stats_pb.cjs.map +1 -0
- package/dist/proto/stats_pb.js +175 -456
- package/dist/proto/stats_pb.js.map +1 -1
- package/dist/proto/track_pb.cjs +116 -0
- package/dist/proto/track_pb.cjs.map +1 -0
- package/dist/proto/track_pb.d.ts +3 -3
- package/dist/proto/track_pb.d.ts.map +1 -1
- package/dist/proto/track_pb.js +68 -174
- package/dist/proto/track_pb.js.map +1 -1
- package/dist/proto/video_frame_pb.cjs +161 -0
- package/dist/proto/video_frame_pb.cjs.map +1 -0
- package/dist/proto/video_frame_pb.d.ts +5 -5
- package/dist/proto/video_frame_pb.d.ts.map +1 -1
- package/dist/proto/video_frame_pb.js +103 -271
- package/dist/proto/video_frame_pb.js.map +1 -1
- package/dist/room.cjs +440 -0
- package/dist/room.cjs.map +1 -0
- package/dist/room.js +384 -373
- package/dist/room.js.map +1 -1
- package/dist/rpc.cjs +89 -0
- package/dist/rpc.cjs.map +1 -0
- package/dist/rpc.js +59 -63
- package/dist/rpc.js.map +1 -1
- package/dist/track.cjs +100 -0
- package/dist/track.cjs.map +1 -0
- package/dist/track.js +66 -62
- package/dist/track.js.map +1 -1
- package/dist/track_publication.cjs +106 -0
- package/dist/track_publication.cjs.map +1 -0
- package/dist/track_publication.js +76 -74
- package/dist/track_publication.js.map +1 -1
- package/dist/transcription.cjs +17 -0
- package/dist/transcription.cjs.map +1 -0
- package/dist/transcription.js +0 -1
- package/dist/transcription.js.map +1 -1
- package/dist/types.cjs +17 -0
- package/dist/types.cjs.map +1 -0
- package/dist/types.js +0 -1
- package/dist/types.js.map +1 -1
- package/dist/version.cjs +29 -0
- package/dist/version.cjs.map +1 -0
- package/dist/version.d.ts +1 -1
- package/dist/version.js +4 -1
- package/dist/version.js.map +1 -1
- package/dist/video_frame.cjs +242 -0
- package/dist/video_frame.cjs.map +1 -0
- package/dist/video_frame.js +212 -201
- package/dist/video_frame.js.map +1 -1
- package/dist/video_source.cjs +63 -0
- package/dist/video_source.cjs.map +1 -0
- package/dist/video_source.d.ts.map +1 -1
- package/dist/video_source.js +42 -37
- package/dist/video_source.js.map +1 -1
- package/dist/video_stream.cjs +103 -0
- package/dist/video_stream.cjs.map +1 -0
- package/dist/video_stream.js +76 -77
- package/dist/video_stream.js.map +1 -1
- package/package.json +18 -9
- package/src/audio_frame.ts +2 -2
- package/src/audio_source.ts +2 -2
- package/src/e2ee.ts +2 -2
- package/src/napi/native.d.ts +5 -5
- package/src/proto/audio_frame_pb.ts +12 -12
- package/src/proto/e2ee_pb.ts +1 -1
- package/src/proto/ffi_pb.ts +13 -13
- package/src/proto/handle_pb.ts +1 -1
- package/src/proto/participant_pb.ts +3 -3
- package/src/proto/room_pb.ts +24 -24
- package/src/proto/rpc_pb.ts +1 -1
- package/src/proto/stats_pb.ts +1 -1
- package/src/proto/track_pb.ts +7 -7
- package/src/proto/video_frame_pb.ts +9 -9
- package/src/version.ts +1 -1
- package/src/video_frame.ts +1 -1
- package/src/video_source.ts +5 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/proto/handle_pb.ts"],"sourcesContent":["// Copyright 2023 LiveKit, Inc.\n//\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by applicable law or agreed to in writing, software\n// distributed under the License is distributed on an \"AS IS\" BASIS,\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n// See the License for the specific language governing permissions and\n// limitations under the License.\n\n// @generated by protoc-gen-es v2.2.0 with parameter \"target=ts,import_extension=js\"\n// @generated from file handle.proto (package livekit.proto, syntax proto2)\n/* eslint-disable */\n\nimport type { GenFile, GenMessage } from \"@bufbuild/protobuf/codegenv1\";\nimport { fileDesc, messageDesc } from \"@bufbuild/protobuf/codegenv1\";\nimport type { Message } from \"@bufbuild/protobuf\";\n\n/**\n * Describes the file handle.proto.\n */\nexport const file_handle: GenFile = /*@__PURE__*/\n fileDesc(\"CgxoYW5kbGUucHJvdG8SDWxpdmVraXQucHJvdG8iHAoORmZpT3duZWRIYW5kbGUSCgoCaWQYASACKARCEKoCDUxpdmVLaXQuUHJvdG8\");\n\n/**\n * # Safety\n * The foreign language is responsable for disposing handles\n * Forgetting to dispose the handle may lead to memory leaks\n *\n * Dropping a handle doesn't necessarily mean that the object is destroyed if it is still used\n * on the FfiServer (Atomic reference counting)\n *\n * When refering to a handle without owning it, we just use a uint32 without this message. \n * (the variable name is suffixed with \"_handle\")\n *\n * @generated from message livekit.proto.FfiOwnedHandle\n */\nexport type FfiOwnedHandle = Message<\"livekit.proto.FfiOwnedHandle\"> & {\n /**\n * @generated from field: required uint64 id = 1;\n */\n id: bigint;\n};\n\n/**\n * Describes the message livekit.proto.FfiOwnedHandle.\n * Use `create(FfiOwnedHandleSchema)` to create a new message.\n */\nexport const FfiOwnedHandleSchema: GenMessage<FfiOwnedHandle> = /*@__PURE__*/\n messageDesc(file_handle, 0);\n\n"],"mappings":";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAmBA,uBAAsC;AAM/B,MAAM,cACX,+CAAS,yGAAyG;AA0B7G,MAAM,uBACX,kDAAY,aAAa,CAAC;","names":[]}
|
package/dist/proto/handle_pb.js
CHANGED
|
@@ -1,24 +1,8 @@
|
|
|
1
|
-
// Copyright 2023 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
1
|
import { fileDesc, messageDesc } from "@bufbuild/protobuf/codegenv1";
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
* Use `create(FfiOwnedHandleSchema)` to create a new message.
|
|
22
|
-
*/
|
|
23
|
-
export const FfiOwnedHandleSchema = /*@__PURE__*/ messageDesc(file_handle, 0);
|
|
2
|
+
const file_handle = /* @__PURE__ */ fileDesc("CgxoYW5kbGUucHJvdG8SDWxpdmVraXQucHJvdG8iHAoORmZpT3duZWRIYW5kbGUSCgoCaWQYASACKARCEKoCDUxpdmVLaXQuUHJvdG8");
|
|
3
|
+
const FfiOwnedHandleSchema = /* @__PURE__ */ messageDesc(file_handle, 0);
|
|
4
|
+
export {
|
|
5
|
+
FfiOwnedHandleSchema,
|
|
6
|
+
file_handle
|
|
7
|
+
};
|
|
24
8
|
//# sourceMappingURL=handle_pb.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"sources":["../../src/proto/handle_pb.ts"],"sourcesContent":["// Copyright 2023 LiveKit, Inc.\n//\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by applicable law or agreed to in writing, software\n// distributed under the License is distributed on an \"AS IS\" BASIS,\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n// See the License for the specific language governing permissions and\n// limitations under the License.\n\n// @generated by protoc-gen-es v2.2.0 with parameter \"target=ts,import_extension=js\"\n// @generated from file handle.proto (package livekit.proto, syntax proto2)\n/* eslint-disable */\n\nimport type { GenFile, GenMessage } from \"@bufbuild/protobuf/codegenv1\";\nimport { fileDesc, messageDesc } from \"@bufbuild/protobuf/codegenv1\";\nimport type { Message } from \"@bufbuild/protobuf\";\n\n/**\n * Describes the file handle.proto.\n */\nexport const file_handle: GenFile = /*@__PURE__*/\n fileDesc(\"CgxoYW5kbGUucHJvdG8SDWxpdmVraXQucHJvdG8iHAoORmZpT3duZWRIYW5kbGUSCgoCaWQYASACKARCEKoCDUxpdmVLaXQuUHJvdG8\");\n\n/**\n * # Safety\n * The foreign language is responsable for disposing handles\n * Forgetting to dispose the handle may lead to memory leaks\n *\n * Dropping a handle doesn't necessarily mean that the object is destroyed if it is still used\n * on the FfiServer (Atomic reference counting)\n *\n * When refering to a handle without owning it, we just use a uint32 without this message. \n * (the variable name is suffixed with \"_handle\")\n *\n * @generated from message livekit.proto.FfiOwnedHandle\n */\nexport type FfiOwnedHandle = Message<\"livekit.proto.FfiOwnedHandle\"> & {\n /**\n * @generated from field: required uint64 id = 1;\n */\n id: bigint;\n};\n\n/**\n * Describes the message livekit.proto.FfiOwnedHandle.\n * Use `create(FfiOwnedHandleSchema)` to create a new message.\n */\nexport const FfiOwnedHandleSchema: GenMessage<FfiOwnedHandle> = /*@__PURE__*/\n messageDesc(file_handle, 0);\n\n"],"mappings":"AAmBA,SAAS,UAAU,mBAAmB;AAM/B,MAAM,cACX,yBAAS,yGAAyG;AA0B7G,MAAM,uBACX,4BAAY,aAAa,CAAC;","names":[]}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
var participant_pb_exports = {};
|
|
20
|
+
__export(participant_pb_exports, {
|
|
21
|
+
OwnedParticipantSchema: () => OwnedParticipantSchema,
|
|
22
|
+
ParticipantInfoSchema: () => ParticipantInfoSchema,
|
|
23
|
+
ParticipantKind: () => ParticipantKind,
|
|
24
|
+
ParticipantKindSchema: () => ParticipantKindSchema,
|
|
25
|
+
file_participant: () => file_participant
|
|
26
|
+
});
|
|
27
|
+
module.exports = __toCommonJS(participant_pb_exports);
|
|
28
|
+
var import_codegenv1 = require("@bufbuild/protobuf/codegenv1");
|
|
29
|
+
var import_handle_pb = require("./handle_pb.cjs");
|
|
30
|
+
const file_participant = /* @__PURE__ */ (0, import_codegenv1.fileDesc)("ChFwYXJ0aWNpcGFudC5wcm90bxINbGl2ZWtpdC5wcm90byL1AQoPUGFydGljaXBhbnRJbmZvEgsKA3NpZBgBIAIoCRIMCgRuYW1lGAIgAigJEhAKCGlkZW50aXR5GAMgAigJEhAKCG1ldGFkYXRhGAQgAigJEkIKCmF0dHJpYnV0ZXMYBSADKAsyLi5saXZla2l0LnByb3RvLlBhcnRpY2lwYW50SW5mby5BdHRyaWJ1dGVzRW50cnkSLAoEa2luZBgGIAIoDjIeLmxpdmVraXQucHJvdG8uUGFydGljaXBhbnRLaW5kGjEKD0F0dHJpYnV0ZXNFbnRyeRILCgNrZXkYASABKAkSDQoFdmFsdWUYAiABKAk6AjgBIm8KEE93bmVkUGFydGljaXBhbnQSLQoGaGFuZGxlGAEgAigLMh0ubGl2ZWtpdC5wcm90by5GZmlPd25lZEhhbmRsZRIsCgRpbmZvGAIgAigLMh4ubGl2ZWtpdC5wcm90by5QYXJ0aWNpcGFudEluZm8qoQEKD1BhcnRpY2lwYW50S2luZBIdChlQQVJUSUNJUEFOVF9LSU5EX1NUQU5EQVJEEAASHAoYUEFSVElDSVBBTlRfS0lORF9JTkdSRVNTEAESGwoXUEFSVElDSVBBTlRfS0lORF9FR1JFU1MQAhIYChRQQVJUSUNJUEFOVF9LSU5EX1NJUBADEhoKFlBBUlRJQ0lQQU5UX0tJTkRfQUdFTlQQBEIQqgINTGl2ZUtpdC5Qcm90bw", [import_handle_pb.file_handle]);
|
|
31
|
+
const ParticipantInfoSchema = /* @__PURE__ */ (0, import_codegenv1.messageDesc)(file_participant, 0);
|
|
32
|
+
const OwnedParticipantSchema = /* @__PURE__ */ (0, import_codegenv1.messageDesc)(file_participant, 1);
|
|
33
|
+
var ParticipantKind = /* @__PURE__ */ ((ParticipantKind2) => {
|
|
34
|
+
ParticipantKind2[ParticipantKind2["STANDARD"] = 0] = "STANDARD";
|
|
35
|
+
ParticipantKind2[ParticipantKind2["INGRESS"] = 1] = "INGRESS";
|
|
36
|
+
ParticipantKind2[ParticipantKind2["EGRESS"] = 2] = "EGRESS";
|
|
37
|
+
ParticipantKind2[ParticipantKind2["SIP"] = 3] = "SIP";
|
|
38
|
+
ParticipantKind2[ParticipantKind2["AGENT"] = 4] = "AGENT";
|
|
39
|
+
return ParticipantKind2;
|
|
40
|
+
})(ParticipantKind || {});
|
|
41
|
+
const ParticipantKindSchema = /* @__PURE__ */ (0, import_codegenv1.enumDesc)(file_participant, 0);
|
|
42
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
43
|
+
0 && (module.exports = {
|
|
44
|
+
OwnedParticipantSchema,
|
|
45
|
+
ParticipantInfoSchema,
|
|
46
|
+
ParticipantKind,
|
|
47
|
+
ParticipantKindSchema,
|
|
48
|
+
file_participant
|
|
49
|
+
});
|
|
50
|
+
//# sourceMappingURL=participant_pb.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/proto/participant_pb.ts"],"sourcesContent":["// Copyright 2023 LiveKit, Inc.\n//\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by applicable law or agreed to in writing, software\n// distributed under the License is distributed on an \"AS IS\" BASIS,\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n// See the License for the specific language governing permissions and\n// limitations under the License.\n\n// @generated by protoc-gen-es v2.2.0 with parameter \"target=ts,import_extension=js\"\n// @generated from file participant.proto (package livekit.proto, syntax proto2)\n/* eslint-disable */\n\nimport type { GenEnum, GenFile, GenMessage } from \"@bufbuild/protobuf/codegenv1\";\nimport { enumDesc, fileDesc, messageDesc } from \"@bufbuild/protobuf/codegenv1\";\nimport type { FfiOwnedHandle } from \"./handle_pb.js\";\nimport { file_handle } from \"./handle_pb.js\";\nimport type { Message } from \"@bufbuild/protobuf\";\n\n/**\n * Describes the file participant.proto.\n */\nexport const file_participant: GenFile = /*@__PURE__*/\n fileDesc(\"ChFwYXJ0aWNpcGFudC5wcm90bxINbGl2ZWtpdC5wcm90byL1AQoPUGFydGljaXBhbnRJbmZvEgsKA3NpZBgBIAIoCRIMCgRuYW1lGAIgAigJEhAKCGlkZW50aXR5GAMgAigJEhAKCG1ldGFkYXRhGAQgAigJEkIKCmF0dHJpYnV0ZXMYBSADKAsyLi5saXZla2l0LnByb3RvLlBhcnRpY2lwYW50SW5mby5BdHRyaWJ1dGVzRW50cnkSLAoEa2luZBgGIAIoDjIeLmxpdmVraXQucHJvdG8uUGFydGljaXBhbnRLaW5kGjEKD0F0dHJpYnV0ZXNFbnRyeRILCgNrZXkYASABKAkSDQoFdmFsdWUYAiABKAk6AjgBIm8KEE93bmVkUGFydGljaXBhbnQSLQoGaGFuZGxlGAEgAigLMh0ubGl2ZWtpdC5wcm90by5GZmlPd25lZEhhbmRsZRIsCgRpbmZvGAIgAigLMh4ubGl2ZWtpdC5wcm90by5QYXJ0aWNpcGFudEluZm8qoQEKD1BhcnRpY2lwYW50S2luZBIdChlQQVJUSUNJUEFOVF9LSU5EX1NUQU5EQVJEEAASHAoYUEFSVElDSVBBTlRfS0lORF9JTkdSRVNTEAESGwoXUEFSVElDSVBBTlRfS0lORF9FR1JFU1MQAhIYChRQQVJUSUNJUEFOVF9LSU5EX1NJUBADEhoKFlBBUlRJQ0lQQU5UX0tJTkRfQUdFTlQQBEIQqgINTGl2ZUtpdC5Qcm90bw\", [file_handle]);\n\n/**\n * @generated from message livekit.proto.ParticipantInfo\n */\nexport type ParticipantInfo = Message<\"livekit.proto.ParticipantInfo\"> & {\n /**\n * @generated from field: required string sid = 1;\n */\n sid: string;\n\n /**\n * @generated from field: required string name = 2;\n */\n name: string;\n\n /**\n * @generated from field: required string identity = 3;\n */\n identity: string;\n\n /**\n * @generated from field: required string metadata = 4;\n */\n metadata: string;\n\n /**\n * @generated from field: map<string, string> attributes = 5;\n */\n attributes: { [key: string]: string };\n\n /**\n * @generated from field: required livekit.proto.ParticipantKind kind = 6;\n */\n kind: ParticipantKind;\n};\n\n/**\n * Describes the message livekit.proto.ParticipantInfo.\n * Use `create(ParticipantInfoSchema)` to create a new message.\n */\nexport const ParticipantInfoSchema: GenMessage<ParticipantInfo> = /*@__PURE__*/\n messageDesc(file_participant, 0);\n\n/**\n * @generated from message livekit.proto.OwnedParticipant\n */\nexport type OwnedParticipant = Message<\"livekit.proto.OwnedParticipant\"> & {\n /**\n * @generated from field: required livekit.proto.FfiOwnedHandle handle = 1;\n */\n handle?: FfiOwnedHandle;\n\n /**\n * @generated from field: required livekit.proto.ParticipantInfo info = 2;\n */\n info?: ParticipantInfo;\n};\n\n/**\n * Describes the message livekit.proto.OwnedParticipant.\n * Use `create(OwnedParticipantSchema)` to create a new message.\n */\nexport const OwnedParticipantSchema: GenMessage<OwnedParticipant> = /*@__PURE__*/\n messageDesc(file_participant, 1);\n\n/**\n * @generated from enum livekit.proto.ParticipantKind\n */\nexport enum ParticipantKind {\n /**\n * @generated from enum value: PARTICIPANT_KIND_STANDARD = 0;\n */\n STANDARD = 0,\n\n /**\n * @generated from enum value: PARTICIPANT_KIND_INGRESS = 1;\n */\n INGRESS = 1,\n\n /**\n * @generated from enum value: PARTICIPANT_KIND_EGRESS = 2;\n */\n EGRESS = 2,\n\n /**\n * @generated from enum value: PARTICIPANT_KIND_SIP = 3;\n */\n SIP = 3,\n\n /**\n * @generated from enum value: PARTICIPANT_KIND_AGENT = 4;\n */\n AGENT = 4,\n}\n\n/**\n * Describes the enum livekit.proto.ParticipantKind.\n */\nexport const ParticipantKindSchema: GenEnum<ParticipantKind> = /*@__PURE__*/\n enumDesc(file_participant, 0);\n\n"],"mappings":";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAmBA,uBAAgD;AAEhD,uBAA4B;AAMrB,MAAM,mBACX,+CAAS,swBAAswB,CAAC,4BAAW,CAAC;AAyCvxB,MAAM,wBACX,kDAAY,kBAAkB,CAAC;AAqB1B,MAAM,yBACX,kDAAY,kBAAkB,CAAC;AAK1B,IAAK,kBAAL,kBAAKA,qBAAL;AAIL,EAAAA,kCAAA,cAAW,KAAX;AAKA,EAAAA,kCAAA,aAAU,KAAV;AAKA,EAAAA,kCAAA,YAAS,KAAT;AAKA,EAAAA,kCAAA,SAAM,KAAN;AAKA,EAAAA,kCAAA,WAAQ,KAAR;AAxBU,SAAAA;AAAA,GAAA;AA8BL,MAAM,wBACX,+CAAS,kBAAkB,CAAC;","names":["ParticipantKind"]}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { GenEnum, GenFile, GenMessage } from "@bufbuild/protobuf/codegenv1";
|
|
2
|
-
import type { FfiOwnedHandle } from "./handle_pb";
|
|
2
|
+
import type { FfiOwnedHandle } from "./handle_pb.js";
|
|
3
3
|
import type { Message } from "@bufbuild/protobuf";
|
|
4
4
|
/**
|
|
5
5
|
* Describes the file participant.proto.
|
|
@@ -1 +1 @@
|
|
|
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,
|
|
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,gBAAgB,CAAC;AAErD,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"}
|
|
@@ -1,60 +1,22 @@
|
|
|
1
|
-
// Copyright 2023 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
1
|
import { enumDesc, fileDesc, messageDesc } from "@bufbuild/protobuf/codegenv1";
|
|
15
|
-
import { file_handle } from "./handle_pb";
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
*/
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
/**
|
|
36
|
-
* @generated from enum value: PARTICIPANT_KIND_STANDARD = 0;
|
|
37
|
-
*/
|
|
38
|
-
ParticipantKind[ParticipantKind["STANDARD"] = 0] = "STANDARD";
|
|
39
|
-
/**
|
|
40
|
-
* @generated from enum value: PARTICIPANT_KIND_INGRESS = 1;
|
|
41
|
-
*/
|
|
42
|
-
ParticipantKind[ParticipantKind["INGRESS"] = 1] = "INGRESS";
|
|
43
|
-
/**
|
|
44
|
-
* @generated from enum value: PARTICIPANT_KIND_EGRESS = 2;
|
|
45
|
-
*/
|
|
46
|
-
ParticipantKind[ParticipantKind["EGRESS"] = 2] = "EGRESS";
|
|
47
|
-
/**
|
|
48
|
-
* @generated from enum value: PARTICIPANT_KIND_SIP = 3;
|
|
49
|
-
*/
|
|
50
|
-
ParticipantKind[ParticipantKind["SIP"] = 3] = "SIP";
|
|
51
|
-
/**
|
|
52
|
-
* @generated from enum value: PARTICIPANT_KIND_AGENT = 4;
|
|
53
|
-
*/
|
|
54
|
-
ParticipantKind[ParticipantKind["AGENT"] = 4] = "AGENT";
|
|
55
|
-
})(ParticipantKind || (ParticipantKind = {}));
|
|
56
|
-
/**
|
|
57
|
-
* Describes the enum livekit.proto.ParticipantKind.
|
|
58
|
-
*/
|
|
59
|
-
export const ParticipantKindSchema = /*@__PURE__*/ enumDesc(file_participant, 0);
|
|
2
|
+
import { file_handle } from "./handle_pb.js";
|
|
3
|
+
const file_participant = /* @__PURE__ */ fileDesc("ChFwYXJ0aWNpcGFudC5wcm90bxINbGl2ZWtpdC5wcm90byL1AQoPUGFydGljaXBhbnRJbmZvEgsKA3NpZBgBIAIoCRIMCgRuYW1lGAIgAigJEhAKCGlkZW50aXR5GAMgAigJEhAKCG1ldGFkYXRhGAQgAigJEkIKCmF0dHJpYnV0ZXMYBSADKAsyLi5saXZla2l0LnByb3RvLlBhcnRpY2lwYW50SW5mby5BdHRyaWJ1dGVzRW50cnkSLAoEa2luZBgGIAIoDjIeLmxpdmVraXQucHJvdG8uUGFydGljaXBhbnRLaW5kGjEKD0F0dHJpYnV0ZXNFbnRyeRILCgNrZXkYASABKAkSDQoFdmFsdWUYAiABKAk6AjgBIm8KEE93bmVkUGFydGljaXBhbnQSLQoGaGFuZGxlGAEgAigLMh0ubGl2ZWtpdC5wcm90by5GZmlPd25lZEhhbmRsZRIsCgRpbmZvGAIgAigLMh4ubGl2ZWtpdC5wcm90by5QYXJ0aWNpcGFudEluZm8qoQEKD1BhcnRpY2lwYW50S2luZBIdChlQQVJUSUNJUEFOVF9LSU5EX1NUQU5EQVJEEAASHAoYUEFSVElDSVBBTlRfS0lORF9JTkdSRVNTEAESGwoXUEFSVElDSVBBTlRfS0lORF9FR1JFU1MQAhIYChRQQVJUSUNJUEFOVF9LSU5EX1NJUBADEhoKFlBBUlRJQ0lQQU5UX0tJTkRfQUdFTlQQBEIQqgINTGl2ZUtpdC5Qcm90bw", [file_handle]);
|
|
4
|
+
const ParticipantInfoSchema = /* @__PURE__ */ messageDesc(file_participant, 0);
|
|
5
|
+
const OwnedParticipantSchema = /* @__PURE__ */ messageDesc(file_participant, 1);
|
|
6
|
+
var ParticipantKind = /* @__PURE__ */ ((ParticipantKind2) => {
|
|
7
|
+
ParticipantKind2[ParticipantKind2["STANDARD"] = 0] = "STANDARD";
|
|
8
|
+
ParticipantKind2[ParticipantKind2["INGRESS"] = 1] = "INGRESS";
|
|
9
|
+
ParticipantKind2[ParticipantKind2["EGRESS"] = 2] = "EGRESS";
|
|
10
|
+
ParticipantKind2[ParticipantKind2["SIP"] = 3] = "SIP";
|
|
11
|
+
ParticipantKind2[ParticipantKind2["AGENT"] = 4] = "AGENT";
|
|
12
|
+
return ParticipantKind2;
|
|
13
|
+
})(ParticipantKind || {});
|
|
14
|
+
const ParticipantKindSchema = /* @__PURE__ */ enumDesc(file_participant, 0);
|
|
15
|
+
export {
|
|
16
|
+
OwnedParticipantSchema,
|
|
17
|
+
ParticipantInfoSchema,
|
|
18
|
+
ParticipantKind,
|
|
19
|
+
ParticipantKindSchema,
|
|
20
|
+
file_participant
|
|
21
|
+
};
|
|
60
22
|
//# sourceMappingURL=participant_pb.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"sources":["../../src/proto/participant_pb.ts"],"sourcesContent":["// Copyright 2023 LiveKit, Inc.\n//\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by applicable law or agreed to in writing, software\n// distributed under the License is distributed on an \"AS IS\" BASIS,\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n// See the License for the specific language governing permissions and\n// limitations under the License.\n\n// @generated by protoc-gen-es v2.2.0 with parameter \"target=ts,import_extension=js\"\n// @generated from file participant.proto (package livekit.proto, syntax proto2)\n/* eslint-disable */\n\nimport type { GenEnum, GenFile, GenMessage } from \"@bufbuild/protobuf/codegenv1\";\nimport { enumDesc, fileDesc, messageDesc } from \"@bufbuild/protobuf/codegenv1\";\nimport type { FfiOwnedHandle } from \"./handle_pb.js\";\nimport { file_handle } from \"./handle_pb.js\";\nimport type { Message } from \"@bufbuild/protobuf\";\n\n/**\n * Describes the file participant.proto.\n */\nexport const file_participant: GenFile = /*@__PURE__*/\n fileDesc(\"ChFwYXJ0aWNpcGFudC5wcm90bxINbGl2ZWtpdC5wcm90byL1AQoPUGFydGljaXBhbnRJbmZvEgsKA3NpZBgBIAIoCRIMCgRuYW1lGAIgAigJEhAKCGlkZW50aXR5GAMgAigJEhAKCG1ldGFkYXRhGAQgAigJEkIKCmF0dHJpYnV0ZXMYBSADKAsyLi5saXZla2l0LnByb3RvLlBhcnRpY2lwYW50SW5mby5BdHRyaWJ1dGVzRW50cnkSLAoEa2luZBgGIAIoDjIeLmxpdmVraXQucHJvdG8uUGFydGljaXBhbnRLaW5kGjEKD0F0dHJpYnV0ZXNFbnRyeRILCgNrZXkYASABKAkSDQoFdmFsdWUYAiABKAk6AjgBIm8KEE93bmVkUGFydGljaXBhbnQSLQoGaGFuZGxlGAEgAigLMh0ubGl2ZWtpdC5wcm90by5GZmlPd25lZEhhbmRsZRIsCgRpbmZvGAIgAigLMh4ubGl2ZWtpdC5wcm90by5QYXJ0aWNpcGFudEluZm8qoQEKD1BhcnRpY2lwYW50S2luZBIdChlQQVJUSUNJUEFOVF9LSU5EX1NUQU5EQVJEEAASHAoYUEFSVElDSVBBTlRfS0lORF9JTkdSRVNTEAESGwoXUEFSVElDSVBBTlRfS0lORF9FR1JFU1MQAhIYChRQQVJUSUNJUEFOVF9LSU5EX1NJUBADEhoKFlBBUlRJQ0lQQU5UX0tJTkRfQUdFTlQQBEIQqgINTGl2ZUtpdC5Qcm90bw\", [file_handle]);\n\n/**\n * @generated from message livekit.proto.ParticipantInfo\n */\nexport type ParticipantInfo = Message<\"livekit.proto.ParticipantInfo\"> & {\n /**\n * @generated from field: required string sid = 1;\n */\n sid: string;\n\n /**\n * @generated from field: required string name = 2;\n */\n name: string;\n\n /**\n * @generated from field: required string identity = 3;\n */\n identity: string;\n\n /**\n * @generated from field: required string metadata = 4;\n */\n metadata: string;\n\n /**\n * @generated from field: map<string, string> attributes = 5;\n */\n attributes: { [key: string]: string };\n\n /**\n * @generated from field: required livekit.proto.ParticipantKind kind = 6;\n */\n kind: ParticipantKind;\n};\n\n/**\n * Describes the message livekit.proto.ParticipantInfo.\n * Use `create(ParticipantInfoSchema)` to create a new message.\n */\nexport const ParticipantInfoSchema: GenMessage<ParticipantInfo> = /*@__PURE__*/\n messageDesc(file_participant, 0);\n\n/**\n * @generated from message livekit.proto.OwnedParticipant\n */\nexport type OwnedParticipant = Message<\"livekit.proto.OwnedParticipant\"> & {\n /**\n * @generated from field: required livekit.proto.FfiOwnedHandle handle = 1;\n */\n handle?: FfiOwnedHandle;\n\n /**\n * @generated from field: required livekit.proto.ParticipantInfo info = 2;\n */\n info?: ParticipantInfo;\n};\n\n/**\n * Describes the message livekit.proto.OwnedParticipant.\n * Use `create(OwnedParticipantSchema)` to create a new message.\n */\nexport const OwnedParticipantSchema: GenMessage<OwnedParticipant> = /*@__PURE__*/\n messageDesc(file_participant, 1);\n\n/**\n * @generated from enum livekit.proto.ParticipantKind\n */\nexport enum ParticipantKind {\n /**\n * @generated from enum value: PARTICIPANT_KIND_STANDARD = 0;\n */\n STANDARD = 0,\n\n /**\n * @generated from enum value: PARTICIPANT_KIND_INGRESS = 1;\n */\n INGRESS = 1,\n\n /**\n * @generated from enum value: PARTICIPANT_KIND_EGRESS = 2;\n */\n EGRESS = 2,\n\n /**\n * @generated from enum value: PARTICIPANT_KIND_SIP = 3;\n */\n SIP = 3,\n\n /**\n * @generated from enum value: PARTICIPANT_KIND_AGENT = 4;\n */\n AGENT = 4,\n}\n\n/**\n * Describes the enum livekit.proto.ParticipantKind.\n */\nexport const ParticipantKindSchema: GenEnum<ParticipantKind> = /*@__PURE__*/\n enumDesc(file_participant, 0);\n\n"],"mappings":"AAmBA,SAAS,UAAU,UAAU,mBAAmB;AAEhD,SAAS,mBAAmB;AAMrB,MAAM,mBACX,yBAAS,swBAAswB,CAAC,WAAW,CAAC;AAyCvxB,MAAM,wBACX,4BAAY,kBAAkB,CAAC;AAqB1B,MAAM,yBACX,4BAAY,kBAAkB,CAAC;AAK1B,IAAK,kBAAL,kBAAKA,qBAAL;AAIL,EAAAA,kCAAA,cAAW,KAAX;AAKA,EAAAA,kCAAA,aAAU,KAAV;AAKA,EAAAA,kCAAA,YAAS,KAAT;AAKA,EAAAA,kCAAA,SAAM,KAAN;AAKA,EAAAA,kCAAA,WAAQ,KAAR;AAxBU,SAAAA;AAAA,GAAA;AA8BL,MAAM,wBACX,yBAAS,kBAAkB,CAAC;","names":["ParticipantKind"]}
|