livekit-server-sdk 1.2.7 → 2.0.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/.changeset/README.md +8 -0
- package/.changeset/config.json +11 -0
- package/.github/workflows/release.yaml +46 -0
- package/.github/workflows/test.yaml +21 -21
- package/.prettierignore +1 -0
- package/CHANGELOG.md +23 -0
- package/README.md +47 -13
- package/dist/AccessToken.d.ts +4 -4
- package/dist/AccessToken.js +23 -42
- package/dist/AccessToken.js.map +1 -1
- package/dist/EgressClient.d.ts +2 -2
- package/dist/EgressClient.js +175 -185
- package/dist/EgressClient.js.map +1 -1
- package/dist/IngressClient.d.ts +2 -2
- package/dist/IngressClient.js +68 -92
- package/dist/IngressClient.js.map +1 -1
- package/dist/RoomServiceClient.d.ts +5 -5
- package/dist/RoomServiceClient.js +70 -108
- package/dist/RoomServiceClient.js.map +1 -1
- package/dist/ServiceBase.d.ts +2 -2
- package/dist/ServiceBase.js +5 -8
- package/dist/ServiceBase.js.map +1 -1
- package/dist/TwirpRPC.d.ts +2 -3
- package/dist/TwirpRPC.js +15 -23
- package/dist/TwirpRPC.js.map +1 -1
- package/dist/WebhookReceiver.d.ts +15 -2
- package/dist/WebhookReceiver.js +29 -19
- package/dist/WebhookReceiver.js.map +1 -1
- package/dist/grants.d.ts +2 -1
- package/dist/grants.js +2 -5
- package/dist/grants.js.map +1 -1
- package/dist/index.d.ts +9 -10
- package/dist/index.js +9 -48
- package/dist/index.js.map +1 -1
- package/dist/proto/livekit_egress_pb.d.ts +1650 -0
- package/dist/proto/livekit_egress_pb.js +1878 -0
- package/dist/proto/livekit_egress_pb.js.map +1 -0
- package/dist/proto/livekit_ingress_pb.d.ts +624 -0
- package/dist/proto/livekit_ingress_pb.js +824 -0
- package/dist/proto/livekit_ingress_pb.js.map +1 -0
- package/dist/proto/livekit_models_pb.d.ts +1349 -0
- package/dist/proto/livekit_models_pb.js +1829 -0
- package/dist/proto/livekit_models_pb.js.map +1 -0
- package/dist/proto/livekit_room_pb.d.ts +460 -0
- package/dist/proto/livekit_room_pb.js +695 -0
- package/dist/proto/livekit_room_pb.js.map +1 -0
- package/dist/proto/livekit_webhook_pb.d.ts +70 -0
- package/dist/proto/livekit_webhook_pb.js +76 -0
- package/dist/proto/livekit_webhook_pb.js.map +1 -0
- package/generate-proto.sh +1 -18
- package/package.json +32 -28
- package/tsconfig.eslint.json +2 -1
- package/vite.config.js +8 -0
- package/.github/workflows/publish.yaml +0 -57
- package/dist/AccessToken.test.d.ts +0 -1
- package/dist/AccessToken.test.js +0 -72
- package/dist/AccessToken.test.js.map +0 -1
- package/dist/WebhookReceiver.test.d.ts +0 -1
- package/dist/WebhookReceiver.test.js +0 -39
- package/dist/WebhookReceiver.test.js.map +0 -1
- package/dist/proto/google/protobuf/timestamp.d.ts +0 -132
- package/dist/proto/google/protobuf/timestamp.js +0 -92
- package/dist/proto/google/protobuf/timestamp.js.map +0 -1
- package/dist/proto/livekit_egress.d.ts +0 -17639
- package/dist/proto/livekit_egress.js +0 -3601
- package/dist/proto/livekit_egress.js.map +0 -1
- package/dist/proto/livekit_ingress.d.ts +0 -2260
- package/dist/proto/livekit_ingress.js +0 -1401
- package/dist/proto/livekit_ingress.js.map +0 -1
- package/dist/proto/livekit_models.d.ts +0 -1563
- package/dist/proto/livekit_models.js +0 -3259
- package/dist/proto/livekit_models.js.map +0 -1
- package/dist/proto/livekit_room.d.ts +0 -4989
- package/dist/proto/livekit_room.js +0 -1131
- package/dist/proto/livekit_room.js.map +0 -1
- package/dist/proto/livekit_webhook.d.ts +0 -6738
- package/dist/proto/livekit_webhook.js +0 -179
- package/dist/proto/livekit_webhook.js.map +0 -1
- /package/{.eslintrc.js → .eslintrc.cjs} +0 -0
|
@@ -0,0 +1,695 @@
|
|
|
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
|
+
import { Message, proto3 } from "@bufbuild/protobuf";
|
|
15
|
+
import { AutoParticipantEgress, AutoTrackEgress, RoomCompositeEgressRequest } from "./livekit_egress_pb.js";
|
|
16
|
+
import { DataPacket_Kind, ParticipantInfo, ParticipantPermission, ParticipantTracks, Room, TrackInfo } from "./livekit_models_pb.js";
|
|
17
|
+
/**
|
|
18
|
+
* @generated from message livekit.CreateRoomRequest
|
|
19
|
+
*/
|
|
20
|
+
export class CreateRoomRequest extends Message {
|
|
21
|
+
constructor(data) {
|
|
22
|
+
super();
|
|
23
|
+
/**
|
|
24
|
+
* name of the room
|
|
25
|
+
*
|
|
26
|
+
* @generated from field: string name = 1;
|
|
27
|
+
*/
|
|
28
|
+
this.name = "";
|
|
29
|
+
/**
|
|
30
|
+
* number of seconds to keep the room open if no one joins
|
|
31
|
+
*
|
|
32
|
+
* @generated from field: uint32 empty_timeout = 2;
|
|
33
|
+
*/
|
|
34
|
+
this.emptyTimeout = 0;
|
|
35
|
+
/**
|
|
36
|
+
* limit number of participants that can be in a room
|
|
37
|
+
*
|
|
38
|
+
* @generated from field: uint32 max_participants = 3;
|
|
39
|
+
*/
|
|
40
|
+
this.maxParticipants = 0;
|
|
41
|
+
/**
|
|
42
|
+
* override the node room is allocated to, for debugging
|
|
43
|
+
*
|
|
44
|
+
* @generated from field: string node_id = 4;
|
|
45
|
+
*/
|
|
46
|
+
this.nodeId = "";
|
|
47
|
+
/**
|
|
48
|
+
* metadata of room
|
|
49
|
+
*
|
|
50
|
+
* @generated from field: string metadata = 5;
|
|
51
|
+
*/
|
|
52
|
+
this.metadata = "";
|
|
53
|
+
/**
|
|
54
|
+
* playout delay of subscriber
|
|
55
|
+
*
|
|
56
|
+
* @generated from field: uint32 min_playout_delay = 7;
|
|
57
|
+
*/
|
|
58
|
+
this.minPlayoutDelay = 0;
|
|
59
|
+
/**
|
|
60
|
+
* @generated from field: uint32 max_playout_delay = 8;
|
|
61
|
+
*/
|
|
62
|
+
this.maxPlayoutDelay = 0;
|
|
63
|
+
/**
|
|
64
|
+
* improves A/V sync when playout_delay set to a value larger than 200ms. It will disables transceiver re-use
|
|
65
|
+
* so not recommended for rooms with frequent subscription changes
|
|
66
|
+
*
|
|
67
|
+
* @generated from field: bool sync_streams = 9;
|
|
68
|
+
*/
|
|
69
|
+
this.syncStreams = false;
|
|
70
|
+
proto3.util.initPartial(data, this);
|
|
71
|
+
}
|
|
72
|
+
static fromBinary(bytes, options) {
|
|
73
|
+
return new CreateRoomRequest().fromBinary(bytes, options);
|
|
74
|
+
}
|
|
75
|
+
static fromJson(jsonValue, options) {
|
|
76
|
+
return new CreateRoomRequest().fromJson(jsonValue, options);
|
|
77
|
+
}
|
|
78
|
+
static fromJsonString(jsonString, options) {
|
|
79
|
+
return new CreateRoomRequest().fromJsonString(jsonString, options);
|
|
80
|
+
}
|
|
81
|
+
static equals(a, b) {
|
|
82
|
+
return proto3.util.equals(CreateRoomRequest, a, b);
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
CreateRoomRequest.runtime = proto3;
|
|
86
|
+
CreateRoomRequest.typeName = "livekit.CreateRoomRequest";
|
|
87
|
+
CreateRoomRequest.fields = proto3.util.newFieldList(() => [
|
|
88
|
+
{ no: 1, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
89
|
+
{ no: 2, name: "empty_timeout", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
|
|
90
|
+
{ no: 3, name: "max_participants", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
|
|
91
|
+
{ no: 4, name: "node_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
92
|
+
{ no: 5, name: "metadata", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
93
|
+
{ no: 6, name: "egress", kind: "message", T: RoomEgress },
|
|
94
|
+
{ no: 7, name: "min_playout_delay", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
|
|
95
|
+
{ no: 8, name: "max_playout_delay", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
|
|
96
|
+
{ no: 9, name: "sync_streams", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
|
|
97
|
+
]);
|
|
98
|
+
/**
|
|
99
|
+
* @generated from message livekit.RoomEgress
|
|
100
|
+
*/
|
|
101
|
+
export class RoomEgress extends Message {
|
|
102
|
+
constructor(data) {
|
|
103
|
+
super();
|
|
104
|
+
proto3.util.initPartial(data, this);
|
|
105
|
+
}
|
|
106
|
+
static fromBinary(bytes, options) {
|
|
107
|
+
return new RoomEgress().fromBinary(bytes, options);
|
|
108
|
+
}
|
|
109
|
+
static fromJson(jsonValue, options) {
|
|
110
|
+
return new RoomEgress().fromJson(jsonValue, options);
|
|
111
|
+
}
|
|
112
|
+
static fromJsonString(jsonString, options) {
|
|
113
|
+
return new RoomEgress().fromJsonString(jsonString, options);
|
|
114
|
+
}
|
|
115
|
+
static equals(a, b) {
|
|
116
|
+
return proto3.util.equals(RoomEgress, a, b);
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
RoomEgress.runtime = proto3;
|
|
120
|
+
RoomEgress.typeName = "livekit.RoomEgress";
|
|
121
|
+
RoomEgress.fields = proto3.util.newFieldList(() => [
|
|
122
|
+
{ no: 1, name: "room", kind: "message", T: RoomCompositeEgressRequest },
|
|
123
|
+
{ no: 3, name: "participant", kind: "message", T: AutoParticipantEgress },
|
|
124
|
+
{ no: 2, name: "tracks", kind: "message", T: AutoTrackEgress },
|
|
125
|
+
]);
|
|
126
|
+
/**
|
|
127
|
+
* @generated from message livekit.ListRoomsRequest
|
|
128
|
+
*/
|
|
129
|
+
export class ListRoomsRequest extends Message {
|
|
130
|
+
constructor(data) {
|
|
131
|
+
super();
|
|
132
|
+
/**
|
|
133
|
+
* when set, will only return rooms with name match
|
|
134
|
+
*
|
|
135
|
+
* @generated from field: repeated string names = 1;
|
|
136
|
+
*/
|
|
137
|
+
this.names = [];
|
|
138
|
+
proto3.util.initPartial(data, this);
|
|
139
|
+
}
|
|
140
|
+
static fromBinary(bytes, options) {
|
|
141
|
+
return new ListRoomsRequest().fromBinary(bytes, options);
|
|
142
|
+
}
|
|
143
|
+
static fromJson(jsonValue, options) {
|
|
144
|
+
return new ListRoomsRequest().fromJson(jsonValue, options);
|
|
145
|
+
}
|
|
146
|
+
static fromJsonString(jsonString, options) {
|
|
147
|
+
return new ListRoomsRequest().fromJsonString(jsonString, options);
|
|
148
|
+
}
|
|
149
|
+
static equals(a, b) {
|
|
150
|
+
return proto3.util.equals(ListRoomsRequest, a, b);
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
ListRoomsRequest.runtime = proto3;
|
|
154
|
+
ListRoomsRequest.typeName = "livekit.ListRoomsRequest";
|
|
155
|
+
ListRoomsRequest.fields = proto3.util.newFieldList(() => [
|
|
156
|
+
{ no: 1, name: "names", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
|
|
157
|
+
]);
|
|
158
|
+
/**
|
|
159
|
+
* @generated from message livekit.ListRoomsResponse
|
|
160
|
+
*/
|
|
161
|
+
export class ListRoomsResponse extends Message {
|
|
162
|
+
constructor(data) {
|
|
163
|
+
super();
|
|
164
|
+
/**
|
|
165
|
+
* @generated from field: repeated livekit.Room rooms = 1;
|
|
166
|
+
*/
|
|
167
|
+
this.rooms = [];
|
|
168
|
+
proto3.util.initPartial(data, this);
|
|
169
|
+
}
|
|
170
|
+
static fromBinary(bytes, options) {
|
|
171
|
+
return new ListRoomsResponse().fromBinary(bytes, options);
|
|
172
|
+
}
|
|
173
|
+
static fromJson(jsonValue, options) {
|
|
174
|
+
return new ListRoomsResponse().fromJson(jsonValue, options);
|
|
175
|
+
}
|
|
176
|
+
static fromJsonString(jsonString, options) {
|
|
177
|
+
return new ListRoomsResponse().fromJsonString(jsonString, options);
|
|
178
|
+
}
|
|
179
|
+
static equals(a, b) {
|
|
180
|
+
return proto3.util.equals(ListRoomsResponse, a, b);
|
|
181
|
+
}
|
|
182
|
+
}
|
|
183
|
+
ListRoomsResponse.runtime = proto3;
|
|
184
|
+
ListRoomsResponse.typeName = "livekit.ListRoomsResponse";
|
|
185
|
+
ListRoomsResponse.fields = proto3.util.newFieldList(() => [
|
|
186
|
+
{ no: 1, name: "rooms", kind: "message", T: Room, repeated: true },
|
|
187
|
+
]);
|
|
188
|
+
/**
|
|
189
|
+
* @generated from message livekit.DeleteRoomRequest
|
|
190
|
+
*/
|
|
191
|
+
export class DeleteRoomRequest extends Message {
|
|
192
|
+
constructor(data) {
|
|
193
|
+
super();
|
|
194
|
+
/**
|
|
195
|
+
* name of the room
|
|
196
|
+
*
|
|
197
|
+
* @generated from field: string room = 1;
|
|
198
|
+
*/
|
|
199
|
+
this.room = "";
|
|
200
|
+
proto3.util.initPartial(data, this);
|
|
201
|
+
}
|
|
202
|
+
static fromBinary(bytes, options) {
|
|
203
|
+
return new DeleteRoomRequest().fromBinary(bytes, options);
|
|
204
|
+
}
|
|
205
|
+
static fromJson(jsonValue, options) {
|
|
206
|
+
return new DeleteRoomRequest().fromJson(jsonValue, options);
|
|
207
|
+
}
|
|
208
|
+
static fromJsonString(jsonString, options) {
|
|
209
|
+
return new DeleteRoomRequest().fromJsonString(jsonString, options);
|
|
210
|
+
}
|
|
211
|
+
static equals(a, b) {
|
|
212
|
+
return proto3.util.equals(DeleteRoomRequest, a, b);
|
|
213
|
+
}
|
|
214
|
+
}
|
|
215
|
+
DeleteRoomRequest.runtime = proto3;
|
|
216
|
+
DeleteRoomRequest.typeName = "livekit.DeleteRoomRequest";
|
|
217
|
+
DeleteRoomRequest.fields = proto3.util.newFieldList(() => [
|
|
218
|
+
{ no: 1, name: "room", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
219
|
+
]);
|
|
220
|
+
/**
|
|
221
|
+
* @generated from message livekit.DeleteRoomResponse
|
|
222
|
+
*/
|
|
223
|
+
export class DeleteRoomResponse extends Message {
|
|
224
|
+
constructor(data) {
|
|
225
|
+
super();
|
|
226
|
+
proto3.util.initPartial(data, this);
|
|
227
|
+
}
|
|
228
|
+
static fromBinary(bytes, options) {
|
|
229
|
+
return new DeleteRoomResponse().fromBinary(bytes, options);
|
|
230
|
+
}
|
|
231
|
+
static fromJson(jsonValue, options) {
|
|
232
|
+
return new DeleteRoomResponse().fromJson(jsonValue, options);
|
|
233
|
+
}
|
|
234
|
+
static fromJsonString(jsonString, options) {
|
|
235
|
+
return new DeleteRoomResponse().fromJsonString(jsonString, options);
|
|
236
|
+
}
|
|
237
|
+
static equals(a, b) {
|
|
238
|
+
return proto3.util.equals(DeleteRoomResponse, a, b);
|
|
239
|
+
}
|
|
240
|
+
}
|
|
241
|
+
DeleteRoomResponse.runtime = proto3;
|
|
242
|
+
DeleteRoomResponse.typeName = "livekit.DeleteRoomResponse";
|
|
243
|
+
DeleteRoomResponse.fields = proto3.util.newFieldList(() => []);
|
|
244
|
+
/**
|
|
245
|
+
* @generated from message livekit.ListParticipantsRequest
|
|
246
|
+
*/
|
|
247
|
+
export class ListParticipantsRequest extends Message {
|
|
248
|
+
constructor(data) {
|
|
249
|
+
super();
|
|
250
|
+
/**
|
|
251
|
+
* name of the room
|
|
252
|
+
*
|
|
253
|
+
* @generated from field: string room = 1;
|
|
254
|
+
*/
|
|
255
|
+
this.room = "";
|
|
256
|
+
proto3.util.initPartial(data, this);
|
|
257
|
+
}
|
|
258
|
+
static fromBinary(bytes, options) {
|
|
259
|
+
return new ListParticipantsRequest().fromBinary(bytes, options);
|
|
260
|
+
}
|
|
261
|
+
static fromJson(jsonValue, options) {
|
|
262
|
+
return new ListParticipantsRequest().fromJson(jsonValue, options);
|
|
263
|
+
}
|
|
264
|
+
static fromJsonString(jsonString, options) {
|
|
265
|
+
return new ListParticipantsRequest().fromJsonString(jsonString, options);
|
|
266
|
+
}
|
|
267
|
+
static equals(a, b) {
|
|
268
|
+
return proto3.util.equals(ListParticipantsRequest, a, b);
|
|
269
|
+
}
|
|
270
|
+
}
|
|
271
|
+
ListParticipantsRequest.runtime = proto3;
|
|
272
|
+
ListParticipantsRequest.typeName = "livekit.ListParticipantsRequest";
|
|
273
|
+
ListParticipantsRequest.fields = proto3.util.newFieldList(() => [
|
|
274
|
+
{ no: 1, name: "room", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
275
|
+
]);
|
|
276
|
+
/**
|
|
277
|
+
* @generated from message livekit.ListParticipantsResponse
|
|
278
|
+
*/
|
|
279
|
+
export class ListParticipantsResponse extends Message {
|
|
280
|
+
constructor(data) {
|
|
281
|
+
super();
|
|
282
|
+
/**
|
|
283
|
+
* @generated from field: repeated livekit.ParticipantInfo participants = 1;
|
|
284
|
+
*/
|
|
285
|
+
this.participants = [];
|
|
286
|
+
proto3.util.initPartial(data, this);
|
|
287
|
+
}
|
|
288
|
+
static fromBinary(bytes, options) {
|
|
289
|
+
return new ListParticipantsResponse().fromBinary(bytes, options);
|
|
290
|
+
}
|
|
291
|
+
static fromJson(jsonValue, options) {
|
|
292
|
+
return new ListParticipantsResponse().fromJson(jsonValue, options);
|
|
293
|
+
}
|
|
294
|
+
static fromJsonString(jsonString, options) {
|
|
295
|
+
return new ListParticipantsResponse().fromJsonString(jsonString, options);
|
|
296
|
+
}
|
|
297
|
+
static equals(a, b) {
|
|
298
|
+
return proto3.util.equals(ListParticipantsResponse, a, b);
|
|
299
|
+
}
|
|
300
|
+
}
|
|
301
|
+
ListParticipantsResponse.runtime = proto3;
|
|
302
|
+
ListParticipantsResponse.typeName = "livekit.ListParticipantsResponse";
|
|
303
|
+
ListParticipantsResponse.fields = proto3.util.newFieldList(() => [
|
|
304
|
+
{ no: 1, name: "participants", kind: "message", T: ParticipantInfo, repeated: true },
|
|
305
|
+
]);
|
|
306
|
+
/**
|
|
307
|
+
* @generated from message livekit.RoomParticipantIdentity
|
|
308
|
+
*/
|
|
309
|
+
export class RoomParticipantIdentity extends Message {
|
|
310
|
+
constructor(data) {
|
|
311
|
+
super();
|
|
312
|
+
/**
|
|
313
|
+
* name of the room
|
|
314
|
+
*
|
|
315
|
+
* @generated from field: string room = 1;
|
|
316
|
+
*/
|
|
317
|
+
this.room = "";
|
|
318
|
+
/**
|
|
319
|
+
* identity of the participant
|
|
320
|
+
*
|
|
321
|
+
* @generated from field: string identity = 2;
|
|
322
|
+
*/
|
|
323
|
+
this.identity = "";
|
|
324
|
+
proto3.util.initPartial(data, this);
|
|
325
|
+
}
|
|
326
|
+
static fromBinary(bytes, options) {
|
|
327
|
+
return new RoomParticipantIdentity().fromBinary(bytes, options);
|
|
328
|
+
}
|
|
329
|
+
static fromJson(jsonValue, options) {
|
|
330
|
+
return new RoomParticipantIdentity().fromJson(jsonValue, options);
|
|
331
|
+
}
|
|
332
|
+
static fromJsonString(jsonString, options) {
|
|
333
|
+
return new RoomParticipantIdentity().fromJsonString(jsonString, options);
|
|
334
|
+
}
|
|
335
|
+
static equals(a, b) {
|
|
336
|
+
return proto3.util.equals(RoomParticipantIdentity, a, b);
|
|
337
|
+
}
|
|
338
|
+
}
|
|
339
|
+
RoomParticipantIdentity.runtime = proto3;
|
|
340
|
+
RoomParticipantIdentity.typeName = "livekit.RoomParticipantIdentity";
|
|
341
|
+
RoomParticipantIdentity.fields = proto3.util.newFieldList(() => [
|
|
342
|
+
{ no: 1, name: "room", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
343
|
+
{ no: 2, name: "identity", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
344
|
+
]);
|
|
345
|
+
/**
|
|
346
|
+
* @generated from message livekit.RemoveParticipantResponse
|
|
347
|
+
*/
|
|
348
|
+
export class RemoveParticipantResponse extends Message {
|
|
349
|
+
constructor(data) {
|
|
350
|
+
super();
|
|
351
|
+
proto3.util.initPartial(data, this);
|
|
352
|
+
}
|
|
353
|
+
static fromBinary(bytes, options) {
|
|
354
|
+
return new RemoveParticipantResponse().fromBinary(bytes, options);
|
|
355
|
+
}
|
|
356
|
+
static fromJson(jsonValue, options) {
|
|
357
|
+
return new RemoveParticipantResponse().fromJson(jsonValue, options);
|
|
358
|
+
}
|
|
359
|
+
static fromJsonString(jsonString, options) {
|
|
360
|
+
return new RemoveParticipantResponse().fromJsonString(jsonString, options);
|
|
361
|
+
}
|
|
362
|
+
static equals(a, b) {
|
|
363
|
+
return proto3.util.equals(RemoveParticipantResponse, a, b);
|
|
364
|
+
}
|
|
365
|
+
}
|
|
366
|
+
RemoveParticipantResponse.runtime = proto3;
|
|
367
|
+
RemoveParticipantResponse.typeName = "livekit.RemoveParticipantResponse";
|
|
368
|
+
RemoveParticipantResponse.fields = proto3.util.newFieldList(() => []);
|
|
369
|
+
/**
|
|
370
|
+
* @generated from message livekit.MuteRoomTrackRequest
|
|
371
|
+
*/
|
|
372
|
+
export class MuteRoomTrackRequest extends Message {
|
|
373
|
+
constructor(data) {
|
|
374
|
+
super();
|
|
375
|
+
/**
|
|
376
|
+
* name of the room
|
|
377
|
+
*
|
|
378
|
+
* @generated from field: string room = 1;
|
|
379
|
+
*/
|
|
380
|
+
this.room = "";
|
|
381
|
+
/**
|
|
382
|
+
* @generated from field: string identity = 2;
|
|
383
|
+
*/
|
|
384
|
+
this.identity = "";
|
|
385
|
+
/**
|
|
386
|
+
* sid of the track to mute
|
|
387
|
+
*
|
|
388
|
+
* @generated from field: string track_sid = 3;
|
|
389
|
+
*/
|
|
390
|
+
this.trackSid = "";
|
|
391
|
+
/**
|
|
392
|
+
* set to true to mute, false to unmute
|
|
393
|
+
*
|
|
394
|
+
* @generated from field: bool muted = 4;
|
|
395
|
+
*/
|
|
396
|
+
this.muted = false;
|
|
397
|
+
proto3.util.initPartial(data, this);
|
|
398
|
+
}
|
|
399
|
+
static fromBinary(bytes, options) {
|
|
400
|
+
return new MuteRoomTrackRequest().fromBinary(bytes, options);
|
|
401
|
+
}
|
|
402
|
+
static fromJson(jsonValue, options) {
|
|
403
|
+
return new MuteRoomTrackRequest().fromJson(jsonValue, options);
|
|
404
|
+
}
|
|
405
|
+
static fromJsonString(jsonString, options) {
|
|
406
|
+
return new MuteRoomTrackRequest().fromJsonString(jsonString, options);
|
|
407
|
+
}
|
|
408
|
+
static equals(a, b) {
|
|
409
|
+
return proto3.util.equals(MuteRoomTrackRequest, a, b);
|
|
410
|
+
}
|
|
411
|
+
}
|
|
412
|
+
MuteRoomTrackRequest.runtime = proto3;
|
|
413
|
+
MuteRoomTrackRequest.typeName = "livekit.MuteRoomTrackRequest";
|
|
414
|
+
MuteRoomTrackRequest.fields = proto3.util.newFieldList(() => [
|
|
415
|
+
{ no: 1, name: "room", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
416
|
+
{ no: 2, name: "identity", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
417
|
+
{ no: 3, name: "track_sid", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
418
|
+
{ no: 4, name: "muted", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
|
|
419
|
+
]);
|
|
420
|
+
/**
|
|
421
|
+
* @generated from message livekit.MuteRoomTrackResponse
|
|
422
|
+
*/
|
|
423
|
+
export class MuteRoomTrackResponse extends Message {
|
|
424
|
+
constructor(data) {
|
|
425
|
+
super();
|
|
426
|
+
proto3.util.initPartial(data, this);
|
|
427
|
+
}
|
|
428
|
+
static fromBinary(bytes, options) {
|
|
429
|
+
return new MuteRoomTrackResponse().fromBinary(bytes, options);
|
|
430
|
+
}
|
|
431
|
+
static fromJson(jsonValue, options) {
|
|
432
|
+
return new MuteRoomTrackResponse().fromJson(jsonValue, options);
|
|
433
|
+
}
|
|
434
|
+
static fromJsonString(jsonString, options) {
|
|
435
|
+
return new MuteRoomTrackResponse().fromJsonString(jsonString, options);
|
|
436
|
+
}
|
|
437
|
+
static equals(a, b) {
|
|
438
|
+
return proto3.util.equals(MuteRoomTrackResponse, a, b);
|
|
439
|
+
}
|
|
440
|
+
}
|
|
441
|
+
MuteRoomTrackResponse.runtime = proto3;
|
|
442
|
+
MuteRoomTrackResponse.typeName = "livekit.MuteRoomTrackResponse";
|
|
443
|
+
MuteRoomTrackResponse.fields = proto3.util.newFieldList(() => [
|
|
444
|
+
{ no: 1, name: "track", kind: "message", T: TrackInfo },
|
|
445
|
+
]);
|
|
446
|
+
/**
|
|
447
|
+
* @generated from message livekit.UpdateParticipantRequest
|
|
448
|
+
*/
|
|
449
|
+
export class UpdateParticipantRequest extends Message {
|
|
450
|
+
constructor(data) {
|
|
451
|
+
super();
|
|
452
|
+
/**
|
|
453
|
+
* @generated from field: string room = 1;
|
|
454
|
+
*/
|
|
455
|
+
this.room = "";
|
|
456
|
+
/**
|
|
457
|
+
* @generated from field: string identity = 2;
|
|
458
|
+
*/
|
|
459
|
+
this.identity = "";
|
|
460
|
+
/**
|
|
461
|
+
* metadata to update. skipping updates if left empty
|
|
462
|
+
*
|
|
463
|
+
* @generated from field: string metadata = 3;
|
|
464
|
+
*/
|
|
465
|
+
this.metadata = "";
|
|
466
|
+
/**
|
|
467
|
+
* display name to update
|
|
468
|
+
*
|
|
469
|
+
* @generated from field: string name = 5;
|
|
470
|
+
*/
|
|
471
|
+
this.name = "";
|
|
472
|
+
proto3.util.initPartial(data, this);
|
|
473
|
+
}
|
|
474
|
+
static fromBinary(bytes, options) {
|
|
475
|
+
return new UpdateParticipantRequest().fromBinary(bytes, options);
|
|
476
|
+
}
|
|
477
|
+
static fromJson(jsonValue, options) {
|
|
478
|
+
return new UpdateParticipantRequest().fromJson(jsonValue, options);
|
|
479
|
+
}
|
|
480
|
+
static fromJsonString(jsonString, options) {
|
|
481
|
+
return new UpdateParticipantRequest().fromJsonString(jsonString, options);
|
|
482
|
+
}
|
|
483
|
+
static equals(a, b) {
|
|
484
|
+
return proto3.util.equals(UpdateParticipantRequest, a, b);
|
|
485
|
+
}
|
|
486
|
+
}
|
|
487
|
+
UpdateParticipantRequest.runtime = proto3;
|
|
488
|
+
UpdateParticipantRequest.typeName = "livekit.UpdateParticipantRequest";
|
|
489
|
+
UpdateParticipantRequest.fields = proto3.util.newFieldList(() => [
|
|
490
|
+
{ no: 1, name: "room", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
491
|
+
{ no: 2, name: "identity", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
492
|
+
{ no: 3, name: "metadata", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
493
|
+
{ no: 4, name: "permission", kind: "message", T: ParticipantPermission },
|
|
494
|
+
{ no: 5, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
495
|
+
]);
|
|
496
|
+
/**
|
|
497
|
+
* @generated from message livekit.UpdateSubscriptionsRequest
|
|
498
|
+
*/
|
|
499
|
+
export class UpdateSubscriptionsRequest extends Message {
|
|
500
|
+
constructor(data) {
|
|
501
|
+
super();
|
|
502
|
+
/**
|
|
503
|
+
* @generated from field: string room = 1;
|
|
504
|
+
*/
|
|
505
|
+
this.room = "";
|
|
506
|
+
/**
|
|
507
|
+
* @generated from field: string identity = 2;
|
|
508
|
+
*/
|
|
509
|
+
this.identity = "";
|
|
510
|
+
/**
|
|
511
|
+
* list of sids of tracks
|
|
512
|
+
*
|
|
513
|
+
* @generated from field: repeated string track_sids = 3;
|
|
514
|
+
*/
|
|
515
|
+
this.trackSids = [];
|
|
516
|
+
/**
|
|
517
|
+
* set to true to subscribe, false to unsubscribe from tracks
|
|
518
|
+
*
|
|
519
|
+
* @generated from field: bool subscribe = 4;
|
|
520
|
+
*/
|
|
521
|
+
this.subscribe = false;
|
|
522
|
+
/**
|
|
523
|
+
* list of participants and their tracks
|
|
524
|
+
*
|
|
525
|
+
* @generated from field: repeated livekit.ParticipantTracks participant_tracks = 5;
|
|
526
|
+
*/
|
|
527
|
+
this.participantTracks = [];
|
|
528
|
+
proto3.util.initPartial(data, this);
|
|
529
|
+
}
|
|
530
|
+
static fromBinary(bytes, options) {
|
|
531
|
+
return new UpdateSubscriptionsRequest().fromBinary(bytes, options);
|
|
532
|
+
}
|
|
533
|
+
static fromJson(jsonValue, options) {
|
|
534
|
+
return new UpdateSubscriptionsRequest().fromJson(jsonValue, options);
|
|
535
|
+
}
|
|
536
|
+
static fromJsonString(jsonString, options) {
|
|
537
|
+
return new UpdateSubscriptionsRequest().fromJsonString(jsonString, options);
|
|
538
|
+
}
|
|
539
|
+
static equals(a, b) {
|
|
540
|
+
return proto3.util.equals(UpdateSubscriptionsRequest, a, b);
|
|
541
|
+
}
|
|
542
|
+
}
|
|
543
|
+
UpdateSubscriptionsRequest.runtime = proto3;
|
|
544
|
+
UpdateSubscriptionsRequest.typeName = "livekit.UpdateSubscriptionsRequest";
|
|
545
|
+
UpdateSubscriptionsRequest.fields = proto3.util.newFieldList(() => [
|
|
546
|
+
{ no: 1, name: "room", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
547
|
+
{ no: 2, name: "identity", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
548
|
+
{ no: 3, name: "track_sids", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
|
|
549
|
+
{ no: 4, name: "subscribe", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
|
|
550
|
+
{ no: 5, name: "participant_tracks", kind: "message", T: ParticipantTracks, repeated: true },
|
|
551
|
+
]);
|
|
552
|
+
/**
|
|
553
|
+
* empty for now
|
|
554
|
+
*
|
|
555
|
+
* @generated from message livekit.UpdateSubscriptionsResponse
|
|
556
|
+
*/
|
|
557
|
+
export class UpdateSubscriptionsResponse extends Message {
|
|
558
|
+
constructor(data) {
|
|
559
|
+
super();
|
|
560
|
+
proto3.util.initPartial(data, this);
|
|
561
|
+
}
|
|
562
|
+
static fromBinary(bytes, options) {
|
|
563
|
+
return new UpdateSubscriptionsResponse().fromBinary(bytes, options);
|
|
564
|
+
}
|
|
565
|
+
static fromJson(jsonValue, options) {
|
|
566
|
+
return new UpdateSubscriptionsResponse().fromJson(jsonValue, options);
|
|
567
|
+
}
|
|
568
|
+
static fromJsonString(jsonString, options) {
|
|
569
|
+
return new UpdateSubscriptionsResponse().fromJsonString(jsonString, options);
|
|
570
|
+
}
|
|
571
|
+
static equals(a, b) {
|
|
572
|
+
return proto3.util.equals(UpdateSubscriptionsResponse, a, b);
|
|
573
|
+
}
|
|
574
|
+
}
|
|
575
|
+
UpdateSubscriptionsResponse.runtime = proto3;
|
|
576
|
+
UpdateSubscriptionsResponse.typeName = "livekit.UpdateSubscriptionsResponse";
|
|
577
|
+
UpdateSubscriptionsResponse.fields = proto3.util.newFieldList(() => []);
|
|
578
|
+
/**
|
|
579
|
+
* @generated from message livekit.SendDataRequest
|
|
580
|
+
*/
|
|
581
|
+
export class SendDataRequest extends Message {
|
|
582
|
+
constructor(data) {
|
|
583
|
+
super();
|
|
584
|
+
/**
|
|
585
|
+
* @generated from field: string room = 1;
|
|
586
|
+
*/
|
|
587
|
+
this.room = "";
|
|
588
|
+
/**
|
|
589
|
+
* @generated from field: bytes data = 2;
|
|
590
|
+
*/
|
|
591
|
+
this.data = new Uint8Array(0);
|
|
592
|
+
/**
|
|
593
|
+
* @generated from field: livekit.DataPacket.Kind kind = 3;
|
|
594
|
+
*/
|
|
595
|
+
this.kind = DataPacket_Kind.RELIABLE;
|
|
596
|
+
/**
|
|
597
|
+
* mark deprecated
|
|
598
|
+
*
|
|
599
|
+
* @generated from field: repeated string destination_sids = 4 [deprecated = true];
|
|
600
|
+
* @deprecated
|
|
601
|
+
*/
|
|
602
|
+
this.destinationSids = [];
|
|
603
|
+
/**
|
|
604
|
+
* when set, only forward to these identities
|
|
605
|
+
*
|
|
606
|
+
* @generated from field: repeated string destination_identities = 6;
|
|
607
|
+
*/
|
|
608
|
+
this.destinationIdentities = [];
|
|
609
|
+
proto3.util.initPartial(data, this);
|
|
610
|
+
}
|
|
611
|
+
static fromBinary(bytes, options) {
|
|
612
|
+
return new SendDataRequest().fromBinary(bytes, options);
|
|
613
|
+
}
|
|
614
|
+
static fromJson(jsonValue, options) {
|
|
615
|
+
return new SendDataRequest().fromJson(jsonValue, options);
|
|
616
|
+
}
|
|
617
|
+
static fromJsonString(jsonString, options) {
|
|
618
|
+
return new SendDataRequest().fromJsonString(jsonString, options);
|
|
619
|
+
}
|
|
620
|
+
static equals(a, b) {
|
|
621
|
+
return proto3.util.equals(SendDataRequest, a, b);
|
|
622
|
+
}
|
|
623
|
+
}
|
|
624
|
+
SendDataRequest.runtime = proto3;
|
|
625
|
+
SendDataRequest.typeName = "livekit.SendDataRequest";
|
|
626
|
+
SendDataRequest.fields = proto3.util.newFieldList(() => [
|
|
627
|
+
{ no: 1, name: "room", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
628
|
+
{ no: 2, name: "data", kind: "scalar", T: 12 /* ScalarType.BYTES */ },
|
|
629
|
+
{ no: 3, name: "kind", kind: "enum", T: proto3.getEnumType(DataPacket_Kind) },
|
|
630
|
+
{ no: 4, name: "destination_sids", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
|
|
631
|
+
{ no: 6, name: "destination_identities", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
|
|
632
|
+
{ no: 5, name: "topic", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
633
|
+
]);
|
|
634
|
+
/**
|
|
635
|
+
* @generated from message livekit.SendDataResponse
|
|
636
|
+
*/
|
|
637
|
+
export class SendDataResponse extends Message {
|
|
638
|
+
constructor(data) {
|
|
639
|
+
super();
|
|
640
|
+
proto3.util.initPartial(data, this);
|
|
641
|
+
}
|
|
642
|
+
static fromBinary(bytes, options) {
|
|
643
|
+
return new SendDataResponse().fromBinary(bytes, options);
|
|
644
|
+
}
|
|
645
|
+
static fromJson(jsonValue, options) {
|
|
646
|
+
return new SendDataResponse().fromJson(jsonValue, options);
|
|
647
|
+
}
|
|
648
|
+
static fromJsonString(jsonString, options) {
|
|
649
|
+
return new SendDataResponse().fromJsonString(jsonString, options);
|
|
650
|
+
}
|
|
651
|
+
static equals(a, b) {
|
|
652
|
+
return proto3.util.equals(SendDataResponse, a, b);
|
|
653
|
+
}
|
|
654
|
+
}
|
|
655
|
+
SendDataResponse.runtime = proto3;
|
|
656
|
+
SendDataResponse.typeName = "livekit.SendDataResponse";
|
|
657
|
+
SendDataResponse.fields = proto3.util.newFieldList(() => []);
|
|
658
|
+
/**
|
|
659
|
+
* @generated from message livekit.UpdateRoomMetadataRequest
|
|
660
|
+
*/
|
|
661
|
+
export class UpdateRoomMetadataRequest extends Message {
|
|
662
|
+
constructor(data) {
|
|
663
|
+
super();
|
|
664
|
+
/**
|
|
665
|
+
* @generated from field: string room = 1;
|
|
666
|
+
*/
|
|
667
|
+
this.room = "";
|
|
668
|
+
/**
|
|
669
|
+
* metadata to update. skipping updates if left empty
|
|
670
|
+
*
|
|
671
|
+
* @generated from field: string metadata = 2;
|
|
672
|
+
*/
|
|
673
|
+
this.metadata = "";
|
|
674
|
+
proto3.util.initPartial(data, this);
|
|
675
|
+
}
|
|
676
|
+
static fromBinary(bytes, options) {
|
|
677
|
+
return new UpdateRoomMetadataRequest().fromBinary(bytes, options);
|
|
678
|
+
}
|
|
679
|
+
static fromJson(jsonValue, options) {
|
|
680
|
+
return new UpdateRoomMetadataRequest().fromJson(jsonValue, options);
|
|
681
|
+
}
|
|
682
|
+
static fromJsonString(jsonString, options) {
|
|
683
|
+
return new UpdateRoomMetadataRequest().fromJsonString(jsonString, options);
|
|
684
|
+
}
|
|
685
|
+
static equals(a, b) {
|
|
686
|
+
return proto3.util.equals(UpdateRoomMetadataRequest, a, b);
|
|
687
|
+
}
|
|
688
|
+
}
|
|
689
|
+
UpdateRoomMetadataRequest.runtime = proto3;
|
|
690
|
+
UpdateRoomMetadataRequest.typeName = "livekit.UpdateRoomMetadataRequest";
|
|
691
|
+
UpdateRoomMetadataRequest.fields = proto3.util.newFieldList(() => [
|
|
692
|
+
{ no: 1, name: "room", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
693
|
+
{ no: 2, name: "metadata", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
694
|
+
]);
|
|
695
|
+
//# sourceMappingURL=livekit_room_pb.js.map
|