@livekit/rtc-node 0.13.13 → 0.13.16
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 +3 -0
- package/dist/audio_stream.cjs +3 -2
- package/dist/audio_stream.cjs.map +1 -1
- package/dist/audio_stream.d.cts +10 -2
- package/dist/audio_stream.d.ts +10 -2
- package/dist/audio_stream.d.ts.map +1 -1
- package/dist/audio_stream.js +2 -1
- package/dist/audio_stream.js.map +1 -1
- package/dist/data_streams/index.d.cts +2 -2
- package/dist/data_streams/index.d.ts +2 -2
- package/dist/data_streams/stream_reader.cjs.map +1 -1
- package/dist/data_streams/stream_reader.d.cts +2 -2
- package/dist/data_streams/stream_reader.d.ts +2 -2
- package/dist/data_streams/stream_reader.d.ts.map +1 -1
- package/dist/data_streams/stream_reader.js.map +1 -1
- package/dist/data_streams/stream_writer.cjs.map +1 -1
- package/dist/data_streams/stream_writer.d.cts +2 -2
- package/dist/data_streams/stream_writer.d.ts +2 -2
- package/dist/data_streams/stream_writer.d.ts.map +1 -1
- package/dist/data_streams/stream_writer.js.map +1 -1
- package/dist/data_streams/types.d.cts +2 -2
- package/dist/data_streams/types.d.ts +2 -2
- package/dist/ffi_client.cjs +4 -2
- package/dist/ffi_client.cjs.map +1 -1
- package/dist/ffi_client.d.cts +4 -1
- package/dist/ffi_client.d.ts +4 -1
- package/dist/ffi_client.d.ts.map +1 -1
- package/dist/ffi_client.js +4 -2
- package/dist/ffi_client.js.map +1 -1
- package/dist/index.d.cts +11 -8
- package/dist/index.d.ts +11 -8
- package/dist/participant.cjs +13 -15
- package/dist/participant.cjs.map +1 -1
- package/dist/participant.d.cts +8 -4
- package/dist/participant.d.ts +8 -4
- package/dist/participant.d.ts.map +1 -1
- package/dist/participant.js +5 -7
- package/dist/participant.js.map +1 -1
- package/dist/proto/audio_frame_pb.cjs +4 -2
- package/dist/proto/audio_frame_pb.cjs.map +1 -1
- package/dist/proto/audio_frame_pb.d.cts +8 -0
- package/dist/proto/audio_frame_pb.d.ts +8 -0
- package/dist/proto/audio_frame_pb.d.ts.map +1 -1
- package/dist/proto/audio_frame_pb.js +4 -2
- package/dist/proto/audio_frame_pb.js.map +1 -1
- package/dist/proto/data_stream_pb.cjs +1549 -0
- package/dist/proto/data_stream_pb.cjs.map +1 -0
- package/dist/proto/data_stream_pb.d.cts +1358 -0
- package/dist/proto/data_stream_pb.d.ts +1358 -0
- package/dist/proto/data_stream_pb.d.ts.map +1 -0
- package/dist/proto/data_stream_pb.js +1473 -0
- package/dist/proto/data_stream_pb.js.map +1 -0
- package/dist/proto/ffi_pb.cjs +43 -3
- package/dist/proto/ffi_pb.cjs.map +1 -1
- package/dist/proto/ffi_pb.d.cts +251 -8
- package/dist/proto/ffi_pb.d.ts +251 -8
- package/dist/proto/ffi_pb.d.ts.map +1 -1
- package/dist/proto/ffi_pb.js +43 -3
- package/dist/proto/ffi_pb.js.map +1 -1
- package/dist/proto/participant_pb.cjs +5 -1
- package/dist/proto/participant_pb.cjs.map +1 -1
- package/dist/proto/participant_pb.d.cts +9 -1
- package/dist/proto/participant_pb.d.ts +9 -1
- package/dist/proto/participant_pb.d.ts.map +1 -1
- package/dist/proto/participant_pb.js +5 -1
- package/dist/proto/participant_pb.js.map +1 -1
- package/dist/proto/room_pb.cjs +99 -2
- package/dist/proto/room_pb.cjs.map +1 -1
- package/dist/proto/room_pb.d.cts +130 -2
- package/dist/proto/room_pb.d.ts +130 -2
- package/dist/proto/room_pb.d.ts.map +1 -1
- package/dist/proto/room_pb.js +97 -3
- package/dist/proto/room_pb.js.map +1 -1
- package/dist/proto/track_pb.cjs +27 -1
- package/dist/proto/track_pb.cjs.map +1 -1
- package/dist/proto/track_pb.d.cts +40 -1
- package/dist/proto/track_pb.d.ts +40 -1
- package/dist/proto/track_pb.d.ts.map +1 -1
- package/dist/proto/track_pb.js +26 -1
- package/dist/proto/track_pb.js.map +1 -1
- package/dist/room.cjs +79 -3
- package/dist/room.cjs.map +1 -1
- package/dist/room.d.cts +59 -8
- package/dist/room.d.ts +59 -8
- package/dist/room.d.ts.map +1 -1
- package/dist/room.js +77 -1
- package/dist/room.js.map +1 -1
- package/dist/{stream_reader-a8_oiaOi.d.cts → stream_reader-Ch2zvjU3.d.cts} +0 -1
- package/dist/{stream_reader-DWUV4eJB.d.ts → stream_reader-DRyR29vo.d.ts} +0 -1
- package/dist/track.cjs +23 -4
- package/dist/track.cjs.map +1 -1
- package/dist/track.d.cts +17 -4
- package/dist/track.d.ts +17 -4
- package/dist/track.d.ts.map +1 -1
- package/dist/track.js +23 -4
- package/dist/track.js.map +1 -1
- package/dist/track_publication.d.cts +9 -1
- package/dist/track_publication.d.ts +9 -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_source.d.cts +11 -2
- package/dist/video_source.d.ts +11 -2
- package/dist/video_stream.cjs +1 -2
- package/dist/video_stream.cjs.map +1 -1
- package/dist/video_stream.d.cts +8 -1
- package/dist/video_stream.d.ts +8 -1
- package/dist/video_stream.d.ts.map +1 -1
- package/dist/video_stream.js +0 -1
- package/dist/video_stream.js.map +1 -1
- package/package.json +7 -7
- package/src/audio_stream.ts +5 -1
- package/src/data_streams/stream_reader.ts +0 -1
- package/src/data_streams/stream_writer.ts +0 -1
- package/src/ffi_client.ts +9 -5
- package/src/participant.ts +13 -15
- package/src/proto/audio_frame_pb.ts +12 -0
- package/src/proto/data_stream_pb.ts +2515 -0
- package/src/proto/ffi_pb.ts +283 -1
- package/src/proto/participant_pb.ts +12 -0
- package/src/proto/room_pb.ts +212 -1
- package/src/proto/track_pb.ts +58 -0
- package/src/room.ts +79 -1
- package/src/track.ts +28 -4
- package/src/version.ts +1 -1
- package/src/video_stream.ts +1 -1
|
@@ -1 +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 v1.10.0 with parameter \"target=ts,import_extension=.js\"\n// @generated from file participant.proto (package livekit.proto, syntax proto2)\n/* eslint-disable */\n// @ts-nocheck\n\nimport type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from \"@bufbuild/protobuf\";\nimport { Message, proto2 } from \"@bufbuild/protobuf\";\nimport { FfiOwnedHandle } from \"./handle_pb.js\";\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// Retrieve enum metadata with: proto2.getEnumType(ParticipantKind)\nproto2.util.setEnumType(ParticipantKind, \"livekit.proto.ParticipantKind\", [\n { no: 0, name: \"PARTICIPANT_KIND_STANDARD\" },\n { no: 1, name: \"PARTICIPANT_KIND_INGRESS\" },\n { no: 2, name: \"PARTICIPANT_KIND_EGRESS\" },\n { no: 3, name: \"PARTICIPANT_KIND_SIP\" },\n { no: 4, name: \"PARTICIPANT_KIND_AGENT\" },\n]);\n\n/**\n * @generated from enum livekit.proto.DisconnectReason\n */\nexport enum DisconnectReason {\n /**\n * @generated from enum value: UNKNOWN_REASON = 0;\n */\n UNKNOWN_REASON = 0,\n\n /**\n * the client initiated the disconnect\n *\n * @generated from enum value: CLIENT_INITIATED = 1;\n */\n CLIENT_INITIATED = 1,\n\n /**\n * another participant with the same identity has joined the room\n *\n * @generated from enum value: DUPLICATE_IDENTITY = 2;\n */\n DUPLICATE_IDENTITY = 2,\n\n /**\n * the server instance is shutting down\n *\n * @generated from enum value: SERVER_SHUTDOWN = 3;\n */\n SERVER_SHUTDOWN = 3,\n\n /**\n * RoomService.RemoveParticipant was called\n *\n * @generated from enum value: PARTICIPANT_REMOVED = 4;\n */\n PARTICIPANT_REMOVED = 4,\n\n /**\n * RoomService.DeleteRoom was called\n *\n * @generated from enum value: ROOM_DELETED = 5;\n */\n ROOM_DELETED = 5,\n\n /**\n * the client is attempting to resume a session, but server is not aware of it\n *\n * @generated from enum value: STATE_MISMATCH = 6;\n */\n STATE_MISMATCH = 6,\n\n /**\n * client was unable to connect fully\n *\n * @generated from enum value: JOIN_FAILURE = 7;\n */\n JOIN_FAILURE = 7,\n\n /**\n * Cloud-only, the server requested Participant to migrate the connection elsewhere\n *\n * @generated from enum value: MIGRATION = 8;\n */\n MIGRATION = 8,\n\n /**\n * the signal websocket was closed unexpectedly\n *\n * @generated from enum value: SIGNAL_CLOSE = 9;\n */\n SIGNAL_CLOSE = 9,\n\n /**\n * the room was closed, due to all Standard and Ingress participants having left\n *\n * @generated from enum value: ROOM_CLOSED = 10;\n */\n ROOM_CLOSED = 10,\n\n /**\n * SIP callee did not respond in time\n *\n * @generated from enum value: USER_UNAVAILABLE = 11;\n */\n USER_UNAVAILABLE = 11,\n\n /**\n * SIP callee rejected the call (busy)\n *\n * @generated from enum value: USER_REJECTED = 12;\n */\n USER_REJECTED = 12,\n\n /**\n * SIP protocol failure or unexpected response\n *\n * @generated from enum value: SIP_TRUNK_FAILURE = 13;\n */\n SIP_TRUNK_FAILURE = 13,\n}\n// Retrieve enum metadata with: proto2.getEnumType(DisconnectReason)\nproto2.util.setEnumType(DisconnectReason, \"livekit.proto.DisconnectReason\", [\n { no: 0, name: \"UNKNOWN_REASON\" },\n { no: 1, name: \"CLIENT_INITIATED\" },\n { no: 2, name: \"DUPLICATE_IDENTITY\" },\n { no: 3, name: \"SERVER_SHUTDOWN\" },\n { no: 4, name: \"PARTICIPANT_REMOVED\" },\n { no: 5, name: \"ROOM_DELETED\" },\n { no: 6, name: \"STATE_MISMATCH\" },\n { no: 7, name: \"JOIN_FAILURE\" },\n { no: 8, name: \"MIGRATION\" },\n { no: 9, name: \"SIGNAL_CLOSE\" },\n { no: 10, name: \"ROOM_CLOSED\" },\n { no: 11, name: \"USER_UNAVAILABLE\" },\n { no: 12, name: \"USER_REJECTED\" },\n { no: 13, name: \"SIP_TRUNK_FAILURE\" },\n]);\n\n/**\n * @generated from message livekit.proto.ParticipantInfo\n */\nexport class ParticipantInfo extends Message<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 * @generated from field: required livekit.proto.DisconnectReason disconnect_reason = 7;\n */\n disconnectReason?: DisconnectReason;\n\n constructor(data?: PartialMessage<ParticipantInfo>) {\n super();\n proto2.util.initPartial(data, this);\n }\n\n static readonly runtime: typeof proto2 = proto2;\n static readonly typeName = \"livekit.proto.ParticipantInfo\";\n static readonly fields: FieldList = proto2.util.newFieldList(() => [\n { no: 1, name: \"sid\", kind: \"scalar\", T: 9 /* ScalarType.STRING */, req: true },\n { no: 2, name: \"name\", kind: \"scalar\", T: 9 /* ScalarType.STRING */, req: true },\n { no: 3, name: \"identity\", kind: \"scalar\", T: 9 /* ScalarType.STRING */, req: true },\n { no: 4, name: \"metadata\", kind: \"scalar\", T: 9 /* ScalarType.STRING */, req: true },\n { no: 5, name: \"attributes\", kind: \"map\", K: 9 /* ScalarType.STRING */, V: {kind: \"scalar\", T: 9 /* ScalarType.STRING */} },\n { no: 6, name: \"kind\", kind: \"enum\", T: proto2.getEnumType(ParticipantKind), req: true },\n { no: 7, name: \"disconnect_reason\", kind: \"enum\", T: proto2.getEnumType(DisconnectReason), req: true },\n ]);\n\n static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ParticipantInfo {\n return new ParticipantInfo().fromBinary(bytes, options);\n }\n\n static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ParticipantInfo {\n return new ParticipantInfo().fromJson(jsonValue, options);\n }\n\n static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ParticipantInfo {\n return new ParticipantInfo().fromJsonString(jsonString, options);\n }\n\n static equals(a: ParticipantInfo | PlainMessage<ParticipantInfo> | undefined, b: ParticipantInfo | PlainMessage<ParticipantInfo> | undefined): boolean {\n return proto2.util.equals(ParticipantInfo, a, b);\n }\n}\n\n/**\n * @generated from message livekit.proto.OwnedParticipant\n */\nexport class OwnedParticipant extends Message<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 constructor(data?: PartialMessage<OwnedParticipant>) {\n super();\n proto2.util.initPartial(data, this);\n }\n\n static readonly runtime: typeof proto2 = proto2;\n static readonly typeName = \"livekit.proto.OwnedParticipant\";\n static readonly fields: FieldList = proto2.util.newFieldList(() => [\n { no: 1, name: \"handle\", kind: \"message\", T: FfiOwnedHandle, req: true },\n { no: 2, name: \"info\", kind: \"message\", T: ParticipantInfo, req: true },\n ]);\n\n static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): OwnedParticipant {\n return new OwnedParticipant().fromBinary(bytes, options);\n }\n\n static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): OwnedParticipant {\n return new OwnedParticipant().fromJson(jsonValue, options);\n }\n\n static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): OwnedParticipant {\n return new OwnedParticipant().fromJsonString(jsonString, options);\n }\n\n static equals(a: OwnedParticipant | PlainMessage<OwnedParticipant> | undefined, b: OwnedParticipant | PlainMessage<OwnedParticipant> | undefined): boolean {\n return proto2.util.equals(OwnedParticipant, a, b);\n }\n}\n\n"],"mappings":"AAoBA,SAAS,SAAS,cAAc;AAChC,SAAS,sBAAsB;AAKxB,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;AA2BZ,OAAO,KAAK,YAAY,iBAAiB,iCAAiC;AAAA,EACxE,EAAE,IAAI,GAAG,MAAM,4BAA4B;AAAA,EAC3C,EAAE,IAAI,GAAG,MAAM,2BAA2B;AAAA,EAC1C,EAAE,IAAI,GAAG,MAAM,0BAA0B;AAAA,EACzC,EAAE,IAAI,GAAG,MAAM,uBAAuB;AAAA,EACtC,EAAE,IAAI,GAAG,MAAM,yBAAyB;AAC1C,CAAC;AAKM,IAAK,mBAAL,kBAAKC,sBAAL;AAIL,EAAAA,oCAAA,oBAAiB,KAAjB;AAOA,EAAAA,oCAAA,sBAAmB,KAAnB;AAOA,EAAAA,oCAAA,wBAAqB,KAArB;AAOA,EAAAA,oCAAA,qBAAkB,KAAlB;AAOA,EAAAA,oCAAA,yBAAsB,KAAtB;AAOA,EAAAA,oCAAA,kBAAe,KAAf;AAOA,EAAAA,oCAAA,oBAAiB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W,OAAmB,SAAwD;AAC3F,WAAO,IAAI,kBAAiB,EAAE,WAAW,OAAO,OAAO;AAAA,EACzD;AAAA,EAEA,OAAO,SAAS,WAAsB,SAAsD;AAC1F,WAAO,IAAI,kBAAiB,EAAE,SAAS,WAAW,OAAO;AAAA,EAC3D;AAAA,EAEA,OAAO,eAAe,YAAoB,SAAsD;AAC9F,WAAO,IAAI,kBAAiB,EAAE,eAAe,YAAY,OAAO;AAAA,EAClE;AAAA,EAEA,OAAO,OAAO,GAAkE,GAA2E;AACzJ,WAAO,OAAO,KAAK,OAAO,mBAAkB,GAAG,CAAC;AAAA,EAClD;AACF;AAtCa,kBAgBK,UAAyB;AAhB9B,kBAiBK,WAAW;AAjBhB,kBAkBK,SAAoB,OAAO,KAAK,aAAa,MAAM;AAAA,EACjE,EAAE,IAAI,GAAG,MAAM,UAAU,MAAM,WAAW,GAAG,gBAAgB,KAAK,KAAK;AAAA,EACvE,EAAE,IAAI,GAAG,MAAM,QAAQ,MAAM,WAAW,GAAG,iBAAiB,KAAK,KAAK;AACxE,CAAC;AArBI,IAAM,mBAAN;","names":["ParticipantKind","DisconnectReason"]}
|
|
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 v1.10.0 with parameter \"target=ts,import_extension=.js\"\n// @generated from file participant.proto (package livekit.proto, syntax proto2)\n/* eslint-disable */\n// @ts-nocheck\n\nimport type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from \"@bufbuild/protobuf\";\nimport { Message, proto2 } from \"@bufbuild/protobuf\";\nimport { FfiOwnedHandle } from \"./handle_pb.js\";\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// Retrieve enum metadata with: proto2.getEnumType(ParticipantKind)\nproto2.util.setEnumType(ParticipantKind, \"livekit.proto.ParticipantKind\", [\n { no: 0, name: \"PARTICIPANT_KIND_STANDARD\" },\n { no: 1, name: \"PARTICIPANT_KIND_INGRESS\" },\n { no: 2, name: \"PARTICIPANT_KIND_EGRESS\" },\n { no: 3, name: \"PARTICIPANT_KIND_SIP\" },\n { no: 4, name: \"PARTICIPANT_KIND_AGENT\" },\n]);\n\n/**\n * @generated from enum livekit.proto.DisconnectReason\n */\nexport enum DisconnectReason {\n /**\n * @generated from enum value: UNKNOWN_REASON = 0;\n */\n UNKNOWN_REASON = 0,\n\n /**\n * the client initiated the disconnect\n *\n * @generated from enum value: CLIENT_INITIATED = 1;\n */\n CLIENT_INITIATED = 1,\n\n /**\n * another participant with the same identity has joined the room\n *\n * @generated from enum value: DUPLICATE_IDENTITY = 2;\n */\n DUPLICATE_IDENTITY = 2,\n\n /**\n * the server instance is shutting down\n *\n * @generated from enum value: SERVER_SHUTDOWN = 3;\n */\n SERVER_SHUTDOWN = 3,\n\n /**\n * RoomService.RemoveParticipant was called\n *\n * @generated from enum value: PARTICIPANT_REMOVED = 4;\n */\n PARTICIPANT_REMOVED = 4,\n\n /**\n * RoomService.DeleteRoom was called\n *\n * @generated from enum value: ROOM_DELETED = 5;\n */\n ROOM_DELETED = 5,\n\n /**\n * the client is attempting to resume a session, but server is not aware of it\n *\n * @generated from enum value: STATE_MISMATCH = 6;\n */\n STATE_MISMATCH = 6,\n\n /**\n * client was unable to connect fully\n *\n * @generated from enum value: JOIN_FAILURE = 7;\n */\n JOIN_FAILURE = 7,\n\n /**\n * Cloud-only, the server requested Participant to migrate the connection elsewhere\n *\n * @generated from enum value: MIGRATION = 8;\n */\n MIGRATION = 8,\n\n /**\n * the signal websocket was closed unexpectedly\n *\n * @generated from enum value: SIGNAL_CLOSE = 9;\n */\n SIGNAL_CLOSE = 9,\n\n /**\n * the room was closed, due to all Standard and Ingress participants having left\n *\n * @generated from enum value: ROOM_CLOSED = 10;\n */\n ROOM_CLOSED = 10,\n\n /**\n * SIP callee did not respond in time\n *\n * @generated from enum value: USER_UNAVAILABLE = 11;\n */\n USER_UNAVAILABLE = 11,\n\n /**\n * SIP callee rejected the call (busy)\n *\n * @generated from enum value: USER_REJECTED = 12;\n */\n USER_REJECTED = 12,\n\n /**\n * SIP protocol failure or unexpected response\n *\n * @generated from enum value: SIP_TRUNK_FAILURE = 13;\n */\n SIP_TRUNK_FAILURE = 13,\n\n /**\n * @generated from enum value: CONNECTION_TIMEOUT = 14;\n */\n CONNECTION_TIMEOUT = 14,\n\n /**\n * @generated from enum value: MEDIA_FAILURE = 15;\n */\n MEDIA_FAILURE = 15,\n}\n// Retrieve enum metadata with: proto2.getEnumType(DisconnectReason)\nproto2.util.setEnumType(DisconnectReason, \"livekit.proto.DisconnectReason\", [\n { no: 0, name: \"UNKNOWN_REASON\" },\n { no: 1, name: \"CLIENT_INITIATED\" },\n { no: 2, name: \"DUPLICATE_IDENTITY\" },\n { no: 3, name: \"SERVER_SHUTDOWN\" },\n { no: 4, name: \"PARTICIPANT_REMOVED\" },\n { no: 5, name: \"ROOM_DELETED\" },\n { no: 6, name: \"STATE_MISMATCH\" },\n { no: 7, name: \"JOIN_FAILURE\" },\n { no: 8, name: \"MIGRATION\" },\n { no: 9, name: \"SIGNAL_CLOSE\" },\n { no: 10, name: \"ROOM_CLOSED\" },\n { no: 11, name: \"USER_UNAVAILABLE\" },\n { no: 12, name: \"USER_REJECTED\" },\n { no: 13, name: \"SIP_TRUNK_FAILURE\" },\n { no: 14, name: \"CONNECTION_TIMEOUT\" },\n { no: 15, name: \"MEDIA_FAILURE\" },\n]);\n\n/**\n * @generated from message livekit.proto.ParticipantInfo\n */\nexport class ParticipantInfo extends Message<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 * @generated from field: required livekit.proto.DisconnectReason disconnect_reason = 7;\n */\n disconnectReason?: DisconnectReason;\n\n constructor(data?: PartialMessage<ParticipantInfo>) {\n super();\n proto2.util.initPartial(data, this);\n }\n\n static readonly runtime: typeof proto2 = proto2;\n static readonly typeName = \"livekit.proto.ParticipantInfo\";\n static readonly fields: FieldList = proto2.util.newFieldList(() => [\n { no: 1, name: \"sid\", kind: \"scalar\", T: 9 /* ScalarType.STRING */, req: true },\n { no: 2, name: \"name\", kind: \"scalar\", T: 9 /* ScalarType.STRING */, req: true },\n { no: 3, name: \"identity\", kind: \"scalar\", T: 9 /* ScalarType.STRING */, req: true },\n { no: 4, name: \"metadata\", kind: \"scalar\", T: 9 /* ScalarType.STRING */, req: true },\n { no: 5, name: \"attributes\", kind: \"map\", K: 9 /* ScalarType.STRING */, V: {kind: \"scalar\", T: 9 /* ScalarType.STRING */} },\n { no: 6, name: \"kind\", kind: \"enum\", T: proto2.getEnumType(ParticipantKind), req: true },\n { no: 7, name: \"disconnect_reason\", kind: \"enum\", T: proto2.getEnumType(DisconnectReason), req: true },\n ]);\n\n static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ParticipantInfo {\n return new ParticipantInfo().fromBinary(bytes, options);\n }\n\n static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ParticipantInfo {\n return new ParticipantInfo().fromJson(jsonValue, options);\n }\n\n static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ParticipantInfo {\n return new ParticipantInfo().fromJsonString(jsonString, options);\n }\n\n static equals(a: ParticipantInfo | PlainMessage<ParticipantInfo> | undefined, b: ParticipantInfo | PlainMessage<ParticipantInfo> | undefined): boolean {\n return proto2.util.equals(ParticipantInfo, a, b);\n }\n}\n\n/**\n * @generated from message livekit.proto.OwnedParticipant\n */\nexport class OwnedParticipant extends Message<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 constructor(data?: PartialMessage<OwnedParticipant>) {\n super();\n proto2.util.initPartial(data, this);\n }\n\n static readonly runtime: typeof proto2 = proto2;\n static readonly typeName = \"livekit.proto.OwnedParticipant\";\n static readonly fields: FieldList = proto2.util.newFieldList(() => [\n { no: 1, name: \"handle\", kind: \"message\", T: FfiOwnedHandle, req: true },\n { no: 2, name: \"info\", kind: \"message\", T: ParticipantInfo, req: true },\n ]);\n\n static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): OwnedParticipant {\n return new OwnedParticipant().fromBinary(bytes, options);\n }\n\n static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): OwnedParticipant {\n return new OwnedParticipant().fromJson(jsonValue, options);\n }\n\n static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): OwnedParticipant {\n return new OwnedParticipant().fromJsonString(jsonString, options);\n }\n\n static equals(a: OwnedParticipant | PlainMessage<OwnedParticipant> | undefined, b: OwnedParticipant | PlainMessage<OwnedParticipant> | undefined): boolean {\n return proto2.util.equals(OwnedParticipant, a, b);\n }\n}\n\n"],"mappings":"AAoBA,SAAS,SAAS,cAAc;AAChC,SAAS,sBAAsB;AAKxB,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;AA2BZ,OAAO,KAAK,YAAY,iBAAiB,iCAAiC;AAAA,EACxE,EAAE,IAAI,GAAG,MAAM,4BAA4B;AAAA,EAC3C,EAAE,IAAI,GAAG,MAAM,2BAA2B;AAAA,EAC1C,EAAE,IAAI,GAAG,MAAM,0BAA0B;AAAA,EACzC,EAAE,IAAI,GAAG,MAAM,uBAAuB;AAAA,EACtC,EAAE,IAAI,GAAG,MAAM,yBAAyB;AAC1C,CAAC;AAKM,IAAK,mBAAL,kBAAKC,sBAAL;AAIL,EAAAA,oCAAA,oBAAiB,KAAjB;AAOA,EAAAA,oCAAA,sBAAmB,KAAnB;AAOA,EAAAA,oCAAA,wBAAqB,KAArB;AAOA,EAAAA,oCAAA,qBAAkB,KAAlB;AAOA,EAAAA,oCAAA,yBAAsB,KAAtB;AAOA,EAAAA,oCAAA,kBAAe,KAAf;AAOA,EAAAA,oCAAA,oBAAiB,KAAjB;AAOA,EAAAA,oCAAA,kBAAe,KAAf;AAOA,EAAAA,oCAAA,eAAY,KAAZ;AAOA,EAAAA,oCAAA,kBAAe,KAAf;AAOA,EAAAA,oCAAA,iBAAc,MAAd;AAOA,EAAAA,oCAAA,sBAAmB,MAAnB;AAOA,EAAAA,oCAAA,mBAAgB,MAAhB;AAOA,EAAAA,oCAAA,uBAAoB,MAApB;AAKA,EAAAA,oCAAA,w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SAAsD;AAC1F,WAAO,IAAI,kBAAiB,EAAE,SAAS,WAAW,OAAO;AAAA,EAC3D;AAAA,EAEA,OAAO,eAAe,YAAoB,SAAsD;AAC9F,WAAO,IAAI,kBAAiB,EAAE,eAAe,YAAY,OAAO;AAAA,EAClE;AAAA,EAEA,OAAO,OAAO,GAAkE,GAA2E;AACzJ,WAAO,OAAO,KAAK,OAAO,mBAAkB,GAAG,CAAC;AAAA,EAClD;AACF;AAtCa,kBAgBK,UAAyB;AAhB9B,kBAiBK,WAAW;AAjBhB,kBAkBK,SAAoB,OAAO,KAAK,aAAa,MAAM;AAAA,EACjE,EAAE,IAAI,GAAG,MAAM,UAAU,MAAM,WAAW,GAAG,gBAAgB,KAAK,KAAK;AAAA,EACvE,EAAE,IAAI,GAAG,MAAM,QAAQ,MAAM,WAAW,GAAG,iBAAiB,KAAK,KAAK;AACxE,CAAC;AArBI,IAAM,mBAAN;","names":["ParticipantKind","DisconnectReason"]}
|
package/dist/proto/room_pb.cjs
CHANGED
|
@@ -22,6 +22,7 @@ __export(room_pb_exports, {
|
|
|
22
22
|
AttributesEntry: () => AttributesEntry,
|
|
23
23
|
AudioEncoding: () => AudioEncoding,
|
|
24
24
|
BufferInfo: () => BufferInfo,
|
|
25
|
+
ByteStreamOpened: () => ByteStreamOpened,
|
|
25
26
|
ChatMessage: () => ChatMessage,
|
|
26
27
|
ChatMessageReceived: () => ChatMessageReceived,
|
|
27
28
|
ConnectCallback: () => ConnectCallback,
|
|
@@ -70,6 +71,7 @@ __export(room_pb_exports, {
|
|
|
70
71
|
ParticipantDisconnected: () => ParticipantDisconnected,
|
|
71
72
|
ParticipantMetadataChanged: () => ParticipantMetadataChanged,
|
|
72
73
|
ParticipantNameChanged: () => ParticipantNameChanged,
|
|
74
|
+
ParticipantsUpdated: () => ParticipantsUpdated,
|
|
73
75
|
PublishDataCallback: () => PublishDataCallback,
|
|
74
76
|
PublishDataRequest: () => PublishDataRequest,
|
|
75
77
|
PublishDataResponse: () => PublishDataResponse,
|
|
@@ -117,6 +119,7 @@ __export(room_pb_exports, {
|
|
|
117
119
|
SetSubscribedRequest: () => SetSubscribedRequest,
|
|
118
120
|
SetSubscribedResponse: () => SetSubscribedResponse,
|
|
119
121
|
SipDTMF: () => SipDTMF,
|
|
122
|
+
TextStreamOpened: () => TextStreamOpened,
|
|
120
123
|
TrackMuted: () => TrackMuted,
|
|
121
124
|
TrackPublishOptions: () => TrackPublishOptions,
|
|
122
125
|
TrackPublished: () => TrackPublished,
|
|
@@ -141,6 +144,7 @@ var import_stats_pb = require("./stats_pb.cjs");
|
|
|
141
144
|
var import_video_frame_pb = require("./video_frame_pb.cjs");
|
|
142
145
|
var import_e2ee_pb = require("./e2ee_pb.cjs");
|
|
143
146
|
var import_handle_pb = require("./handle_pb.cjs");
|
|
147
|
+
var import_data_stream_pb = require("./data_stream_pb.cjs");
|
|
144
148
|
var IceTransportType = /* @__PURE__ */ ((IceTransportType2) => {
|
|
145
149
|
IceTransportType2[IceTransportType2["TRANSPORT_RELAY"] = 0] = "TRANSPORT_RELAY";
|
|
146
150
|
IceTransportType2[IceTransportType2["TRANSPORT_NOHOST"] = 1] = "TRANSPORT_NOHOST";
|
|
@@ -1644,7 +1648,12 @@ _RoomEvent.fields = import_protobuf.proto2.util.newFieldList(() => [
|
|
|
1644
1648
|
{ no: 30, name: "stream_header_received", kind: "message", T: DataStreamHeaderReceived, oneof: "message" },
|
|
1645
1649
|
{ no: 31, name: "stream_chunk_received", kind: "message", T: DataStreamChunkReceived, oneof: "message" },
|
|
1646
1650
|
{ no: 32, name: "stream_trailer_received", kind: "message", T: DataStreamTrailerReceived, oneof: "message" },
|
|
1647
|
-
{ no: 33, name: "data_channel_low_threshold_changed", kind: "message", T: DataChannelBufferedAmountLowThresholdChanged, oneof: "message" }
|
|
1651
|
+
{ no: 33, name: "data_channel_low_threshold_changed", kind: "message", T: DataChannelBufferedAmountLowThresholdChanged, oneof: "message" },
|
|
1652
|
+
{ no: 34, name: "byte_stream_opened", kind: "message", T: ByteStreamOpened, oneof: "message" },
|
|
1653
|
+
{ no: 35, name: "text_stream_opened", kind: "message", T: TextStreamOpened, oneof: "message" },
|
|
1654
|
+
{ no: 36, name: "room_updated", kind: "message", T: RoomInfo, oneof: "message" },
|
|
1655
|
+
{ no: 37, name: "moved", kind: "message", T: RoomInfo, oneof: "message" },
|
|
1656
|
+
{ no: 38, name: "participants_updated", kind: "message", T: ParticipantsUpdated, oneof: "message" }
|
|
1648
1657
|
]);
|
|
1649
1658
|
let RoomEvent = _RoomEvent;
|
|
1650
1659
|
const _RoomInfo = class _RoomInfo extends import_protobuf.Message {
|
|
@@ -1672,7 +1681,14 @@ _RoomInfo.fields = import_protobuf.proto2.util.newFieldList(() => [
|
|
|
1672
1681
|
{ no: 2, name: "name", kind: "scalar", T: 9, req: true },
|
|
1673
1682
|
{ no: 3, name: "metadata", kind: "scalar", T: 9, req: true },
|
|
1674
1683
|
{ no: 4, name: "lossy_dc_buffered_amount_low_threshold", kind: "scalar", T: 4, req: true },
|
|
1675
|
-
{ no: 5, name: "reliable_dc_buffered_amount_low_threshold", kind: "scalar", T: 4, req: true }
|
|
1684
|
+
{ no: 5, name: "reliable_dc_buffered_amount_low_threshold", kind: "scalar", T: 4, req: true },
|
|
1685
|
+
{ no: 6, name: "empty_timeout", kind: "scalar", T: 13, req: true },
|
|
1686
|
+
{ no: 7, name: "departure_timeout", kind: "scalar", T: 13, req: true },
|
|
1687
|
+
{ no: 8, name: "max_participants", kind: "scalar", T: 13, req: true },
|
|
1688
|
+
{ no: 9, name: "creation_time", kind: "scalar", T: 3, req: true },
|
|
1689
|
+
{ no: 10, name: "num_participants", kind: "scalar", T: 13, req: true },
|
|
1690
|
+
{ no: 11, name: "num_publishers", kind: "scalar", T: 13, req: true },
|
|
1691
|
+
{ no: 12, name: "active_recording", kind: "scalar", T: 8, req: true }
|
|
1676
1692
|
]);
|
|
1677
1693
|
let RoomInfo = _RoomInfo;
|
|
1678
1694
|
const _OwnedRoom = class _OwnedRoom extends import_protobuf.Message {
|
|
@@ -1700,6 +1716,34 @@ _OwnedRoom.fields = import_protobuf.proto2.util.newFieldList(() => [
|
|
|
1700
1716
|
{ no: 2, name: "info", kind: "message", T: RoomInfo, req: true }
|
|
1701
1717
|
]);
|
|
1702
1718
|
let OwnedRoom = _OwnedRoom;
|
|
1719
|
+
const _ParticipantsUpdated = class _ParticipantsUpdated extends import_protobuf.Message {
|
|
1720
|
+
constructor(data) {
|
|
1721
|
+
super();
|
|
1722
|
+
/**
|
|
1723
|
+
* @generated from field: repeated livekit.proto.ParticipantInfo participants = 1;
|
|
1724
|
+
*/
|
|
1725
|
+
this.participants = [];
|
|
1726
|
+
import_protobuf.proto2.util.initPartial(data, this);
|
|
1727
|
+
}
|
|
1728
|
+
static fromBinary(bytes, options) {
|
|
1729
|
+
return new _ParticipantsUpdated().fromBinary(bytes, options);
|
|
1730
|
+
}
|
|
1731
|
+
static fromJson(jsonValue, options) {
|
|
1732
|
+
return new _ParticipantsUpdated().fromJson(jsonValue, options);
|
|
1733
|
+
}
|
|
1734
|
+
static fromJsonString(jsonString, options) {
|
|
1735
|
+
return new _ParticipantsUpdated().fromJsonString(jsonString, options);
|
|
1736
|
+
}
|
|
1737
|
+
static equals(a, b) {
|
|
1738
|
+
return import_protobuf.proto2.util.equals(_ParticipantsUpdated, a, b);
|
|
1739
|
+
}
|
|
1740
|
+
};
|
|
1741
|
+
_ParticipantsUpdated.runtime = import_protobuf.proto2;
|
|
1742
|
+
_ParticipantsUpdated.typeName = "livekit.proto.ParticipantsUpdated";
|
|
1743
|
+
_ParticipantsUpdated.fields = import_protobuf.proto2.util.newFieldList(() => [
|
|
1744
|
+
{ no: 1, name: "participants", kind: "message", T: import_participant_pb.ParticipantInfo, repeated: true }
|
|
1745
|
+
]);
|
|
1746
|
+
let ParticipantsUpdated = _ParticipantsUpdated;
|
|
1703
1747
|
const _ParticipantConnected = class _ParticipantConnected extends import_protobuf.Message {
|
|
1704
1748
|
constructor(data) {
|
|
1705
1749
|
super();
|
|
@@ -3100,12 +3144,63 @@ _DataChannelBufferedAmountLowThresholdChanged.fields = import_protobuf.proto2.ut
|
|
|
3100
3144
|
{ no: 2, name: "threshold", kind: "scalar", T: 4, req: true }
|
|
3101
3145
|
]);
|
|
3102
3146
|
let DataChannelBufferedAmountLowThresholdChanged = _DataChannelBufferedAmountLowThresholdChanged;
|
|
3147
|
+
const _ByteStreamOpened = class _ByteStreamOpened extends import_protobuf.Message {
|
|
3148
|
+
constructor(data) {
|
|
3149
|
+
super();
|
|
3150
|
+
import_protobuf.proto2.util.initPartial(data, this);
|
|
3151
|
+
}
|
|
3152
|
+
static fromBinary(bytes, options) {
|
|
3153
|
+
return new _ByteStreamOpened().fromBinary(bytes, options);
|
|
3154
|
+
}
|
|
3155
|
+
static fromJson(jsonValue, options) {
|
|
3156
|
+
return new _ByteStreamOpened().fromJson(jsonValue, options);
|
|
3157
|
+
}
|
|
3158
|
+
static fromJsonString(jsonString, options) {
|
|
3159
|
+
return new _ByteStreamOpened().fromJsonString(jsonString, options);
|
|
3160
|
+
}
|
|
3161
|
+
static equals(a, b) {
|
|
3162
|
+
return import_protobuf.proto2.util.equals(_ByteStreamOpened, a, b);
|
|
3163
|
+
}
|
|
3164
|
+
};
|
|
3165
|
+
_ByteStreamOpened.runtime = import_protobuf.proto2;
|
|
3166
|
+
_ByteStreamOpened.typeName = "livekit.proto.ByteStreamOpened";
|
|
3167
|
+
_ByteStreamOpened.fields = import_protobuf.proto2.util.newFieldList(() => [
|
|
3168
|
+
{ no: 1, name: "reader", kind: "message", T: import_data_stream_pb.OwnedByteStreamReader, req: true },
|
|
3169
|
+
{ no: 2, name: "participant_identity", kind: "scalar", T: 9, req: true }
|
|
3170
|
+
]);
|
|
3171
|
+
let ByteStreamOpened = _ByteStreamOpened;
|
|
3172
|
+
const _TextStreamOpened = class _TextStreamOpened extends import_protobuf.Message {
|
|
3173
|
+
constructor(data) {
|
|
3174
|
+
super();
|
|
3175
|
+
import_protobuf.proto2.util.initPartial(data, this);
|
|
3176
|
+
}
|
|
3177
|
+
static fromBinary(bytes, options) {
|
|
3178
|
+
return new _TextStreamOpened().fromBinary(bytes, options);
|
|
3179
|
+
}
|
|
3180
|
+
static fromJson(jsonValue, options) {
|
|
3181
|
+
return new _TextStreamOpened().fromJson(jsonValue, options);
|
|
3182
|
+
}
|
|
3183
|
+
static fromJsonString(jsonString, options) {
|
|
3184
|
+
return new _TextStreamOpened().fromJsonString(jsonString, options);
|
|
3185
|
+
}
|
|
3186
|
+
static equals(a, b) {
|
|
3187
|
+
return import_protobuf.proto2.util.equals(_TextStreamOpened, a, b);
|
|
3188
|
+
}
|
|
3189
|
+
};
|
|
3190
|
+
_TextStreamOpened.runtime = import_protobuf.proto2;
|
|
3191
|
+
_TextStreamOpened.typeName = "livekit.proto.TextStreamOpened";
|
|
3192
|
+
_TextStreamOpened.fields = import_protobuf.proto2.util.newFieldList(() => [
|
|
3193
|
+
{ no: 1, name: "reader", kind: "message", T: import_data_stream_pb.OwnedTextStreamReader, req: true },
|
|
3194
|
+
{ no: 2, name: "participant_identity", kind: "scalar", T: 9, req: true }
|
|
3195
|
+
]);
|
|
3196
|
+
let TextStreamOpened = _TextStreamOpened;
|
|
3103
3197
|
// Annotate the CommonJS export names for ESM import in node:
|
|
3104
3198
|
0 && (module.exports = {
|
|
3105
3199
|
ActiveSpeakersChanged,
|
|
3106
3200
|
AttributesEntry,
|
|
3107
3201
|
AudioEncoding,
|
|
3108
3202
|
BufferInfo,
|
|
3203
|
+
ByteStreamOpened,
|
|
3109
3204
|
ChatMessage,
|
|
3110
3205
|
ChatMessageReceived,
|
|
3111
3206
|
ConnectCallback,
|
|
@@ -3154,6 +3249,7 @@ let DataChannelBufferedAmountLowThresholdChanged = _DataChannelBufferedAmountLow
|
|
|
3154
3249
|
ParticipantDisconnected,
|
|
3155
3250
|
ParticipantMetadataChanged,
|
|
3156
3251
|
ParticipantNameChanged,
|
|
3252
|
+
ParticipantsUpdated,
|
|
3157
3253
|
PublishDataCallback,
|
|
3158
3254
|
PublishDataRequest,
|
|
3159
3255
|
PublishDataResponse,
|
|
@@ -3201,6 +3297,7 @@ let DataChannelBufferedAmountLowThresholdChanged = _DataChannelBufferedAmountLow
|
|
|
3201
3297
|
SetSubscribedRequest,
|
|
3202
3298
|
SetSubscribedResponse,
|
|
3203
3299
|
SipDTMF,
|
|
3300
|
+
TextStreamOpened,
|
|
3204
3301
|
TrackMuted,
|
|
3205
3302
|
TrackPublishOptions,
|
|
3206
3303
|
TrackPublished,
|