@livekit/rtc-node 0.6.2 → 0.7.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/proto/room_pb.d.ts +115 -15
- package/dist/proto/room_pb.d.ts.map +1 -1
- package/dist/proto/room_pb.js +142 -16
- package/dist/proto/room_pb.js.map +1 -1
- package/dist/room.d.ts +5 -3
- package/dist/room.d.ts.map +1 -1
- package/dist/room.js +6 -1
- package/dist/room.js.map +1 -1
- package/package.json +6 -6
- package/src/proto/room_pb.ts +180 -30
- package/src/room.ts +9 -3
package/dist/proto/room_pb.js
CHANGED
|
@@ -133,6 +133,90 @@ proto3.util.setEnumType(DataPacketKind, "livekit.proto.DataPacketKind", [
|
|
|
133
133
|
{ no: 0, name: "KIND_LOSSY" },
|
|
134
134
|
{ no: 1, name: "KIND_RELIABLE" },
|
|
135
135
|
]);
|
|
136
|
+
/**
|
|
137
|
+
* @generated from enum livekit.proto.DisconnectReason
|
|
138
|
+
*/
|
|
139
|
+
export var DisconnectReason;
|
|
140
|
+
(function (DisconnectReason) {
|
|
141
|
+
/**
|
|
142
|
+
* @generated from enum value: UNKNOWN_REASON = 0;
|
|
143
|
+
*/
|
|
144
|
+
DisconnectReason[DisconnectReason["UNKNOWN_REASON"] = 0] = "UNKNOWN_REASON";
|
|
145
|
+
/**
|
|
146
|
+
* the client initiated the disconnect
|
|
147
|
+
*
|
|
148
|
+
* @generated from enum value: CLIENT_INITIATED = 1;
|
|
149
|
+
*/
|
|
150
|
+
DisconnectReason[DisconnectReason["CLIENT_INITIATED"] = 1] = "CLIENT_INITIATED";
|
|
151
|
+
/**
|
|
152
|
+
* another participant with the same identity has joined the room
|
|
153
|
+
*
|
|
154
|
+
* @generated from enum value: DUPLICATE_IDENTITY = 2;
|
|
155
|
+
*/
|
|
156
|
+
DisconnectReason[DisconnectReason["DUPLICATE_IDENTITY"] = 2] = "DUPLICATE_IDENTITY";
|
|
157
|
+
/**
|
|
158
|
+
* the server instance is shutting down
|
|
159
|
+
*
|
|
160
|
+
* @generated from enum value: SERVER_SHUTDOWN = 3;
|
|
161
|
+
*/
|
|
162
|
+
DisconnectReason[DisconnectReason["SERVER_SHUTDOWN"] = 3] = "SERVER_SHUTDOWN";
|
|
163
|
+
/**
|
|
164
|
+
* RoomService.RemoveParticipant was called
|
|
165
|
+
*
|
|
166
|
+
* @generated from enum value: PARTICIPANT_REMOVED = 4;
|
|
167
|
+
*/
|
|
168
|
+
DisconnectReason[DisconnectReason["PARTICIPANT_REMOVED"] = 4] = "PARTICIPANT_REMOVED";
|
|
169
|
+
/**
|
|
170
|
+
* RoomService.DeleteRoom was called
|
|
171
|
+
*
|
|
172
|
+
* @generated from enum value: ROOM_DELETED = 5;
|
|
173
|
+
*/
|
|
174
|
+
DisconnectReason[DisconnectReason["ROOM_DELETED"] = 5] = "ROOM_DELETED";
|
|
175
|
+
/**
|
|
176
|
+
* the client is attempting to resume a session, but server is not aware of it
|
|
177
|
+
*
|
|
178
|
+
* @generated from enum value: STATE_MISMATCH = 6;
|
|
179
|
+
*/
|
|
180
|
+
DisconnectReason[DisconnectReason["STATE_MISMATCH"] = 6] = "STATE_MISMATCH";
|
|
181
|
+
/**
|
|
182
|
+
* client was unable to connect fully
|
|
183
|
+
*
|
|
184
|
+
* @generated from enum value: JOIN_FAILURE = 7;
|
|
185
|
+
*/
|
|
186
|
+
DisconnectReason[DisconnectReason["JOIN_FAILURE"] = 7] = "JOIN_FAILURE";
|
|
187
|
+
/**
|
|
188
|
+
* Cloud-only, the server requested Participant to migrate the connection elsewhere
|
|
189
|
+
*
|
|
190
|
+
* @generated from enum value: MIGRATION = 8;
|
|
191
|
+
*/
|
|
192
|
+
DisconnectReason[DisconnectReason["MIGRATION"] = 8] = "MIGRATION";
|
|
193
|
+
/**
|
|
194
|
+
* the signal websocket was closed unexpectedly
|
|
195
|
+
*
|
|
196
|
+
* @generated from enum value: SIGNAL_CLOSE = 9;
|
|
197
|
+
*/
|
|
198
|
+
DisconnectReason[DisconnectReason["SIGNAL_CLOSE"] = 9] = "SIGNAL_CLOSE";
|
|
199
|
+
/**
|
|
200
|
+
* the room was closed, due to all Standard and Ingress participants having left
|
|
201
|
+
*
|
|
202
|
+
* @generated from enum value: ROOM_CLOSED = 10;
|
|
203
|
+
*/
|
|
204
|
+
DisconnectReason[DisconnectReason["ROOM_CLOSED"] = 10] = "ROOM_CLOSED";
|
|
205
|
+
})(DisconnectReason || (DisconnectReason = {}));
|
|
206
|
+
// Retrieve enum metadata with: proto3.getEnumType(DisconnectReason)
|
|
207
|
+
proto3.util.setEnumType(DisconnectReason, "livekit.proto.DisconnectReason", [
|
|
208
|
+
{ no: 0, name: "UNKNOWN_REASON" },
|
|
209
|
+
{ no: 1, name: "CLIENT_INITIATED" },
|
|
210
|
+
{ no: 2, name: "DUPLICATE_IDENTITY" },
|
|
211
|
+
{ no: 3, name: "SERVER_SHUTDOWN" },
|
|
212
|
+
{ no: 4, name: "PARTICIPANT_REMOVED" },
|
|
213
|
+
{ no: 5, name: "ROOM_DELETED" },
|
|
214
|
+
{ no: 6, name: "STATE_MISMATCH" },
|
|
215
|
+
{ no: 7, name: "JOIN_FAILURE" },
|
|
216
|
+
{ no: 8, name: "MIGRATION" },
|
|
217
|
+
{ no: 9, name: "SIGNAL_CLOSE" },
|
|
218
|
+
{ no: 10, name: "ROOM_CLOSED" },
|
|
219
|
+
]);
|
|
136
220
|
/**
|
|
137
221
|
* Connect to a new LiveKit room
|
|
138
222
|
*
|
|
@@ -1451,6 +1535,10 @@ export class TrackPublishOptions extends Message {
|
|
|
1451
1535
|
* @generated from field: livekit.proto.TrackSource source = 7;
|
|
1452
1536
|
*/
|
|
1453
1537
|
this.source = TrackSource.SOURCE_UNKNOWN;
|
|
1538
|
+
/**
|
|
1539
|
+
* @generated from field: string stream = 8;
|
|
1540
|
+
*/
|
|
1541
|
+
this.stream = "";
|
|
1454
1542
|
proto3.util.initPartial(data, this);
|
|
1455
1543
|
}
|
|
1456
1544
|
static fromBinary(bytes, options) {
|
|
@@ -1476,6 +1564,7 @@ TrackPublishOptions.fields = proto3.util.newFieldList(() => [
|
|
|
1476
1564
|
{ no: 5, name: "red", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
|
|
1477
1565
|
{ no: 6, name: "simulcast", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
|
|
1478
1566
|
{ no: 7, name: "source", kind: "enum", T: proto3.getEnumType(TrackSource) },
|
|
1567
|
+
{ no: 8, name: "stream", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1479
1568
|
]);
|
|
1480
1569
|
/**
|
|
1481
1570
|
* @generated from message livekit.proto.IceServer
|
|
@@ -1752,21 +1841,22 @@ RoomEvent.fields = proto3.util.newFieldList(() => [
|
|
|
1752
1841
|
{ no: 3, name: "participant_disconnected", kind: "message", T: ParticipantDisconnected, oneof: "message" },
|
|
1753
1842
|
{ no: 4, name: "local_track_published", kind: "message", T: LocalTrackPublished, oneof: "message" },
|
|
1754
1843
|
{ no: 5, name: "local_track_unpublished", kind: "message", T: LocalTrackUnpublished, oneof: "message" },
|
|
1755
|
-
{ no: 6, name: "
|
|
1756
|
-
{ no: 7, name: "
|
|
1757
|
-
{ no: 8, name: "
|
|
1758
|
-
{ no: 9, name: "
|
|
1759
|
-
{ no: 10, name: "
|
|
1760
|
-
{ no: 11, name: "
|
|
1761
|
-
{ no: 12, name: "
|
|
1762
|
-
{ no: 13, name: "
|
|
1763
|
-
{ no: 14, name: "
|
|
1764
|
-
{ no: 15, name: "
|
|
1765
|
-
{ no: 16, name: "
|
|
1766
|
-
{ no: 17, name: "
|
|
1767
|
-
{ no: 18, name: "
|
|
1768
|
-
{ no: 19, name: "
|
|
1769
|
-
{ no: 20, name: "
|
|
1844
|
+
{ no: 6, name: "local_track_subscribed", kind: "message", T: LocalTrackSubscribed, oneof: "message" },
|
|
1845
|
+
{ no: 7, name: "track_published", kind: "message", T: TrackPublished, oneof: "message" },
|
|
1846
|
+
{ no: 8, name: "track_unpublished", kind: "message", T: TrackUnpublished, oneof: "message" },
|
|
1847
|
+
{ no: 9, name: "track_subscribed", kind: "message", T: TrackSubscribed, oneof: "message" },
|
|
1848
|
+
{ no: 10, name: "track_unsubscribed", kind: "message", T: TrackUnsubscribed, oneof: "message" },
|
|
1849
|
+
{ no: 11, name: "track_subscription_failed", kind: "message", T: TrackSubscriptionFailed, oneof: "message" },
|
|
1850
|
+
{ no: 12, name: "track_muted", kind: "message", T: TrackMuted, oneof: "message" },
|
|
1851
|
+
{ no: 13, name: "track_unmuted", kind: "message", T: TrackUnmuted, oneof: "message" },
|
|
1852
|
+
{ no: 14, name: "active_speakers_changed", kind: "message", T: ActiveSpeakersChanged, oneof: "message" },
|
|
1853
|
+
{ no: 15, name: "room_metadata_changed", kind: "message", T: RoomMetadataChanged, oneof: "message" },
|
|
1854
|
+
{ no: 16, name: "room_sid_changed", kind: "message", T: RoomSidChanged, oneof: "message" },
|
|
1855
|
+
{ no: 17, name: "participant_metadata_changed", kind: "message", T: ParticipantMetadataChanged, oneof: "message" },
|
|
1856
|
+
{ no: 18, name: "participant_name_changed", kind: "message", T: ParticipantNameChanged, oneof: "message" },
|
|
1857
|
+
{ no: 19, name: "participant_attributes_changed", kind: "message", T: ParticipantAttributesChanged, oneof: "message" },
|
|
1858
|
+
{ no: 20, name: "connection_quality_changed", kind: "message", T: ConnectionQualityChanged, oneof: "message" },
|
|
1859
|
+
{ no: 21, name: "connection_state_changed", kind: "message", T: ConnectionStateChanged, oneof: "message" },
|
|
1770
1860
|
{ no: 22, name: "disconnected", kind: "message", T: Disconnected, oneof: "message" },
|
|
1771
1861
|
{ no: 23, name: "reconnecting", kind: "message", T: Reconnecting, oneof: "message" },
|
|
1772
1862
|
{ no: 24, name: "reconnected", kind: "message", T: Reconnected, oneof: "message" },
|
|
@@ -1957,6 +2047,36 @@ LocalTrackUnpublished.typeName = "livekit.proto.LocalTrackUnpublished";
|
|
|
1957
2047
|
LocalTrackUnpublished.fields = proto3.util.newFieldList(() => [
|
|
1958
2048
|
{ no: 1, name: "publication_sid", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1959
2049
|
]);
|
|
2050
|
+
/**
|
|
2051
|
+
* @generated from message livekit.proto.LocalTrackSubscribed
|
|
2052
|
+
*/
|
|
2053
|
+
export class LocalTrackSubscribed extends Message {
|
|
2054
|
+
constructor(data) {
|
|
2055
|
+
super();
|
|
2056
|
+
/**
|
|
2057
|
+
* @generated from field: string track_sid = 2;
|
|
2058
|
+
*/
|
|
2059
|
+
this.trackSid = "";
|
|
2060
|
+
proto3.util.initPartial(data, this);
|
|
2061
|
+
}
|
|
2062
|
+
static fromBinary(bytes, options) {
|
|
2063
|
+
return new LocalTrackSubscribed().fromBinary(bytes, options);
|
|
2064
|
+
}
|
|
2065
|
+
static fromJson(jsonValue, options) {
|
|
2066
|
+
return new LocalTrackSubscribed().fromJson(jsonValue, options);
|
|
2067
|
+
}
|
|
2068
|
+
static fromJsonString(jsonString, options) {
|
|
2069
|
+
return new LocalTrackSubscribed().fromJsonString(jsonString, options);
|
|
2070
|
+
}
|
|
2071
|
+
static equals(a, b) {
|
|
2072
|
+
return proto3.util.equals(LocalTrackSubscribed, a, b);
|
|
2073
|
+
}
|
|
2074
|
+
}
|
|
2075
|
+
LocalTrackSubscribed.runtime = proto3;
|
|
2076
|
+
LocalTrackSubscribed.typeName = "livekit.proto.LocalTrackSubscribed";
|
|
2077
|
+
LocalTrackSubscribed.fields = proto3.util.newFieldList(() => [
|
|
2078
|
+
{ no: 2, name: "track_sid", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
2079
|
+
]);
|
|
1960
2080
|
/**
|
|
1961
2081
|
* @generated from message livekit.proto.TrackPublished
|
|
1962
2082
|
*/
|
|
@@ -2669,6 +2789,10 @@ Connected.fields = proto3.util.newFieldList(() => []);
|
|
|
2669
2789
|
export class Disconnected extends Message {
|
|
2670
2790
|
constructor(data) {
|
|
2671
2791
|
super();
|
|
2792
|
+
/**
|
|
2793
|
+
* @generated from field: livekit.proto.DisconnectReason reason = 1;
|
|
2794
|
+
*/
|
|
2795
|
+
this.reason = DisconnectReason.UNKNOWN_REASON;
|
|
2672
2796
|
proto3.util.initPartial(data, this);
|
|
2673
2797
|
}
|
|
2674
2798
|
static fromBinary(bytes, options) {
|
|
@@ -2686,7 +2810,9 @@ export class Disconnected extends Message {
|
|
|
2686
2810
|
}
|
|
2687
2811
|
Disconnected.runtime = proto3;
|
|
2688
2812
|
Disconnected.typeName = "livekit.proto.Disconnected";
|
|
2689
|
-
Disconnected.fields = proto3.util.newFieldList(() => [
|
|
2813
|
+
Disconnected.fields = proto3.util.newFieldList(() => [
|
|
2814
|
+
{ no: 1, name: "reason", kind: "enum", T: proto3.getEnumType(DisconnectReason) },
|
|
2815
|
+
]);
|
|
2690
2816
|
/**
|
|
2691
2817
|
* @generated from message livekit.proto.Reconnecting
|
|
2692
2818
|
*/
|