@livekit/protocol 1.29.2 → 1.29.4
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/index.cjs +6261 -51
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +11475 -0
- package/dist/index.d.mts +11475 -0
- package/dist/index.d.ts +11475 -13
- package/dist/index.mjs +6013 -0
- package/dist/index.mjs.map +1 -0
- package/package.json +18 -18
- package/src/gen/livekit_agent_dispatch_pb.d.ts +253 -0
- package/src/gen/livekit_agent_dispatch_pb.js +103 -0
- package/src/gen/livekit_agent_pb.d.ts +741 -0
- package/src/gen/livekit_agent_pb.js +266 -0
- package/src/gen/livekit_analytics_pb.d.ts +889 -0
- package/src/gen/livekit_analytics_pb.js +264 -0
- package/src/gen/livekit_egress_pb.d.ts +2056 -0
- package/src/gen/livekit_egress_pb.js +594 -0
- package/src/gen/livekit_ingress_pb.d.ts +843 -0
- package/src/gen/livekit_ingress_pb.js +269 -0
- package/src/gen/livekit_internal_pb.d.ts +622 -0
- package/src/gen/livekit_internal_pb.js +191 -0
- package/src/gen/livekit_metrics_pb.d.ts +376 -0
- package/src/gen/livekit_metrics_pb.js +97 -0
- package/src/gen/livekit_models_pb.d.ts +2837 -0
- package/src/gen/livekit_models_pb.js +913 -0
- package/src/gen/livekit_room_pb.d.ts +774 -0
- package/src/gen/livekit_room_pb.js +259 -0
- package/src/gen/livekit_rtc_pb.d.ts +2001 -0
- package/src/gen/livekit_rtc_pb.js +634 -0
- package/src/gen/livekit_sip_pb.d.ts +1551 -0
- package/src/gen/livekit_sip_pb.js +483 -0
- package/src/gen/livekit_webhook_pb.d.ts +105 -0
- package/src/gen/livekit_webhook_pb.js +42 -0
- package/src/gen/version.d.ts +1 -0
- package/src/gen/version.js +2 -0
- package/src/index.d.ts +12 -0
- package/{dist → src}/index.js +2 -5
- package/dist/gen/livekit_agent_dispatch_pb.cjs +0 -385
- package/dist/gen/livekit_agent_dispatch_pb.cjs.map +0 -1
- package/dist/gen/livekit_agent_dispatch_pb.d.ts +0 -174
- package/dist/gen/livekit_agent_dispatch_pb.d.ts.map +0 -1
- package/dist/gen/livekit_agent_dispatch_pb.js +0 -356
- package/dist/gen/livekit_agent_dispatch_pb.js.map +0 -1
- package/dist/gen/livekit_agent_pb.cjs +0 -881
- package/dist/gen/livekit_agent_pb.cjs.map +0 -1
- package/dist/gen/livekit_agent_pb.d.ts +0 -575
- package/dist/gen/livekit_agent_pb.d.ts.map +0 -1
- package/dist/gen/livekit_agent_pb.js +0 -840
- package/dist/gen/livekit_agent_pb.js.map +0 -1
- package/dist/gen/livekit_analytics_pb.cjs +0 -1087
- package/dist/gen/livekit_analytics_pb.cjs.map +0 -1
- package/dist/gen/livekit_analytics_pb.d.ts +0 -679
- package/dist/gen/livekit_analytics_pb.d.ts.map +0 -1
- package/dist/gen/livekit_analytics_pb.js +0 -1053
- package/dist/gen/livekit_analytics_pb.js.map +0 -1
- package/dist/gen/livekit_egress_pb.cjs +0 -2476
- package/dist/gen/livekit_egress_pb.cjs.map +0 -1
- package/dist/gen/livekit_egress_pb.d.ts +0 -1720
- package/dist/gen/livekit_egress_pb.d.ts.map +0 -1
- package/dist/gen/livekit_egress_pb.js +0 -2417
- package/dist/gen/livekit_egress_pb.js.map +0 -1
- package/dist/gen/livekit_ingress_pb.cjs +0 -1050
- package/dist/gen/livekit_ingress_pb.cjs.map +0 -1
- package/dist/gen/livekit_ingress_pb.d.ts +0 -660
- package/dist/gen/livekit_ingress_pb.d.ts.map +0 -1
- package/dist/gen/livekit_ingress_pb.js +0 -1011
- package/dist/gen/livekit_ingress_pb.js.map +0 -1
- package/dist/gen/livekit_internal_pb.cjs +0 -998
- package/dist/gen/livekit_internal_pb.cjs.map +0 -1
- package/dist/gen/livekit_internal_pb.d.ts +0 -481
- package/dist/gen/livekit_internal_pb.d.ts.map +0 -1
- package/dist/gen/livekit_internal_pb.js +0 -968
- package/dist/gen/livekit_internal_pb.js.map +0 -1
- package/dist/gen/livekit_metrics_pb.cjs +0 -371
- package/dist/gen/livekit_metrics_pb.cjs.map +0 -1
- package/dist/gen/livekit_metrics_pb.d.ts +0 -304
- package/dist/gen/livekit_metrics_pb.d.ts.map +0 -1
- package/dist/gen/livekit_metrics_pb.js +0 -344
- package/dist/gen/livekit_metrics_pb.js.map +0 -1
- package/dist/gen/livekit_models_pb.cjs +0 -3668
- package/dist/gen/livekit_models_pb.cjs.map +0 -1
- package/dist/gen/livekit_models_pb.d.ts +0 -2265
- package/dist/gen/livekit_models_pb.d.ts.map +0 -1
- package/dist/gen/livekit_models_pb.js +0 -3588
- package/dist/gen/livekit_models_pb.js.map +0 -1
- package/dist/gen/livekit_room_pb.cjs +0 -1080
- package/dist/gen/livekit_room_pb.cjs.map +0 -1
- package/dist/gen/livekit_room_pb.d.ts +0 -580
- package/dist/gen/livekit_room_pb.d.ts.map +0 -1
- package/dist/gen/livekit_room_pb.js +0 -1038
- package/dist/gen/livekit_room_pb.js.map +0 -1
- package/dist/gen/livekit_rtc_pb.cjs +0 -2261
- package/dist/gen/livekit_rtc_pb.cjs.map +0 -1
- package/dist/gen/livekit_rtc_pb.d.ts +0 -1602
- package/dist/gen/livekit_rtc_pb.d.ts.map +0 -1
- package/dist/gen/livekit_rtc_pb.js +0 -2192
- package/dist/gen/livekit_rtc_pb.js.map +0 -1
- package/dist/gen/livekit_sip_pb.cjs +0 -2118
- package/dist/gen/livekit_sip_pb.cjs.map +0 -1
- package/dist/gen/livekit_sip_pb.d.ts +0 -1226
- package/dist/gen/livekit_sip_pb.d.ts.map +0 -1
- package/dist/gen/livekit_sip_pb.js +0 -2061
- package/dist/gen/livekit_sip_pb.js.map +0 -1
- package/dist/gen/livekit_webhook_pb.cjs +0 -111
- package/dist/gen/livekit_webhook_pb.cjs.map +0 -1
- package/dist/gen/livekit_webhook_pb.d.ts +0 -71
- package/dist/gen/livekit_webhook_pb.d.ts.map +0 -1
- package/dist/gen/livekit_webhook_pb.js +0 -88
- package/dist/gen/livekit_webhook_pb.js.map +0 -1
- package/dist/gen/version.cjs +0 -28
- package/dist/gen/version.cjs.map +0 -1
- package/dist/gen/version.d.ts +0 -2
- package/dist/gen/version.d.ts.map +0 -1
- package/dist/gen/version.js +0 -5
- package/dist/gen/version.js.map +0 -1
- package/dist/index.d.ts.map +0 -1
- package/dist/index.js.map +0 -1
|
@@ -1,1038 +0,0 @@
|
|
|
1
|
-
import { Message, proto3 } from "@bufbuild/protobuf";
|
|
2
|
-
import { RoomAgentDispatch } from "./livekit_agent_dispatch_pb.js";
|
|
3
|
-
import { AutoParticipantEgress, AutoTrackEgress, RoomCompositeEgressRequest } from "./livekit_egress_pb.js";
|
|
4
|
-
import { DataPacket_Kind, ParticipantInfo, ParticipantPermission, ParticipantTracks, Room, TrackInfo } from "./livekit_models_pb.js";
|
|
5
|
-
const _CreateRoomRequest = class _CreateRoomRequest extends Message {
|
|
6
|
-
constructor(data) {
|
|
7
|
-
super();
|
|
8
|
-
/**
|
|
9
|
-
* name of the room
|
|
10
|
-
*
|
|
11
|
-
* @generated from field: string name = 1;
|
|
12
|
-
*/
|
|
13
|
-
this.name = "";
|
|
14
|
-
/**
|
|
15
|
-
* configuration to use for this room parameters. Setting parameters below override the config defaults.
|
|
16
|
-
*
|
|
17
|
-
* @generated from field: string room_preset = 12;
|
|
18
|
-
*/
|
|
19
|
-
this.roomPreset = "";
|
|
20
|
-
/**
|
|
21
|
-
* number of seconds to keep the room open if no one joins
|
|
22
|
-
*
|
|
23
|
-
* @generated from field: uint32 empty_timeout = 2;
|
|
24
|
-
*/
|
|
25
|
-
this.emptyTimeout = 0;
|
|
26
|
-
/**
|
|
27
|
-
* number of seconds to keep the room open after everyone leaves
|
|
28
|
-
*
|
|
29
|
-
* @generated from field: uint32 departure_timeout = 10;
|
|
30
|
-
*/
|
|
31
|
-
this.departureTimeout = 0;
|
|
32
|
-
/**
|
|
33
|
-
* limit number of participants that can be in a room
|
|
34
|
-
*
|
|
35
|
-
* @generated from field: uint32 max_participants = 3;
|
|
36
|
-
*/
|
|
37
|
-
this.maxParticipants = 0;
|
|
38
|
-
/**
|
|
39
|
-
* override the node room is allocated to, for debugging
|
|
40
|
-
*
|
|
41
|
-
* @generated from field: string node_id = 4;
|
|
42
|
-
*/
|
|
43
|
-
this.nodeId = "";
|
|
44
|
-
/**
|
|
45
|
-
* metadata of room
|
|
46
|
-
*
|
|
47
|
-
* @generated from field: string metadata = 5;
|
|
48
|
-
*/
|
|
49
|
-
this.metadata = "";
|
|
50
|
-
/**
|
|
51
|
-
* playout delay of subscriber
|
|
52
|
-
*
|
|
53
|
-
* @generated from field: uint32 min_playout_delay = 7;
|
|
54
|
-
*/
|
|
55
|
-
this.minPlayoutDelay = 0;
|
|
56
|
-
/**
|
|
57
|
-
* @generated from field: uint32 max_playout_delay = 8;
|
|
58
|
-
*/
|
|
59
|
-
this.maxPlayoutDelay = 0;
|
|
60
|
-
/**
|
|
61
|
-
* improves A/V sync when playout_delay set to a value larger than 200ms. It will disables transceiver re-use
|
|
62
|
-
* so not recommended for rooms with frequent subscription changes
|
|
63
|
-
*
|
|
64
|
-
* @generated from field: bool sync_streams = 9;
|
|
65
|
-
*/
|
|
66
|
-
this.syncStreams = false;
|
|
67
|
-
/**
|
|
68
|
-
* replay
|
|
69
|
-
*
|
|
70
|
-
* @generated from field: bool replay_enabled = 13;
|
|
71
|
-
*/
|
|
72
|
-
this.replayEnabled = false;
|
|
73
|
-
/**
|
|
74
|
-
* Define agents that should be dispatched to this room
|
|
75
|
-
*
|
|
76
|
-
* NEXT-ID: 15
|
|
77
|
-
*
|
|
78
|
-
* @generated from field: repeated livekit.RoomAgentDispatch agents = 14;
|
|
79
|
-
*/
|
|
80
|
-
this.agents = [];
|
|
81
|
-
proto3.util.initPartial(data, this);
|
|
82
|
-
}
|
|
83
|
-
static fromBinary(bytes, options) {
|
|
84
|
-
return new _CreateRoomRequest().fromBinary(bytes, options);
|
|
85
|
-
}
|
|
86
|
-
static fromJson(jsonValue, options) {
|
|
87
|
-
return new _CreateRoomRequest().fromJson(jsonValue, options);
|
|
88
|
-
}
|
|
89
|
-
static fromJsonString(jsonString, options) {
|
|
90
|
-
return new _CreateRoomRequest().fromJsonString(jsonString, options);
|
|
91
|
-
}
|
|
92
|
-
static equals(a, b) {
|
|
93
|
-
return proto3.util.equals(_CreateRoomRequest, a, b);
|
|
94
|
-
}
|
|
95
|
-
};
|
|
96
|
-
_CreateRoomRequest.runtime = proto3;
|
|
97
|
-
_CreateRoomRequest.typeName = "livekit.CreateRoomRequest";
|
|
98
|
-
_CreateRoomRequest.fields = proto3.util.newFieldList(() => [
|
|
99
|
-
{
|
|
100
|
-
no: 1,
|
|
101
|
-
name: "name",
|
|
102
|
-
kind: "scalar",
|
|
103
|
-
T: 9
|
|
104
|
-
/* ScalarType.STRING */
|
|
105
|
-
},
|
|
106
|
-
{
|
|
107
|
-
no: 12,
|
|
108
|
-
name: "room_preset",
|
|
109
|
-
kind: "scalar",
|
|
110
|
-
T: 9
|
|
111
|
-
/* ScalarType.STRING */
|
|
112
|
-
},
|
|
113
|
-
{
|
|
114
|
-
no: 2,
|
|
115
|
-
name: "empty_timeout",
|
|
116
|
-
kind: "scalar",
|
|
117
|
-
T: 13
|
|
118
|
-
/* ScalarType.UINT32 */
|
|
119
|
-
},
|
|
120
|
-
{
|
|
121
|
-
no: 10,
|
|
122
|
-
name: "departure_timeout",
|
|
123
|
-
kind: "scalar",
|
|
124
|
-
T: 13
|
|
125
|
-
/* ScalarType.UINT32 */
|
|
126
|
-
},
|
|
127
|
-
{
|
|
128
|
-
no: 3,
|
|
129
|
-
name: "max_participants",
|
|
130
|
-
kind: "scalar",
|
|
131
|
-
T: 13
|
|
132
|
-
/* ScalarType.UINT32 */
|
|
133
|
-
},
|
|
134
|
-
{
|
|
135
|
-
no: 4,
|
|
136
|
-
name: "node_id",
|
|
137
|
-
kind: "scalar",
|
|
138
|
-
T: 9
|
|
139
|
-
/* ScalarType.STRING */
|
|
140
|
-
},
|
|
141
|
-
{
|
|
142
|
-
no: 5,
|
|
143
|
-
name: "metadata",
|
|
144
|
-
kind: "scalar",
|
|
145
|
-
T: 9
|
|
146
|
-
/* ScalarType.STRING */
|
|
147
|
-
},
|
|
148
|
-
{ no: 6, name: "egress", kind: "message", T: RoomEgress },
|
|
149
|
-
{
|
|
150
|
-
no: 7,
|
|
151
|
-
name: "min_playout_delay",
|
|
152
|
-
kind: "scalar",
|
|
153
|
-
T: 13
|
|
154
|
-
/* ScalarType.UINT32 */
|
|
155
|
-
},
|
|
156
|
-
{
|
|
157
|
-
no: 8,
|
|
158
|
-
name: "max_playout_delay",
|
|
159
|
-
kind: "scalar",
|
|
160
|
-
T: 13
|
|
161
|
-
/* ScalarType.UINT32 */
|
|
162
|
-
},
|
|
163
|
-
{
|
|
164
|
-
no: 9,
|
|
165
|
-
name: "sync_streams",
|
|
166
|
-
kind: "scalar",
|
|
167
|
-
T: 8
|
|
168
|
-
/* ScalarType.BOOL */
|
|
169
|
-
},
|
|
170
|
-
{
|
|
171
|
-
no: 13,
|
|
172
|
-
name: "replay_enabled",
|
|
173
|
-
kind: "scalar",
|
|
174
|
-
T: 8
|
|
175
|
-
/* ScalarType.BOOL */
|
|
176
|
-
},
|
|
177
|
-
{ no: 14, name: "agents", kind: "message", T: RoomAgentDispatch, repeated: true }
|
|
178
|
-
]);
|
|
179
|
-
let CreateRoomRequest = _CreateRoomRequest;
|
|
180
|
-
const _RoomEgress = class _RoomEgress extends Message {
|
|
181
|
-
constructor(data) {
|
|
182
|
-
super();
|
|
183
|
-
proto3.util.initPartial(data, this);
|
|
184
|
-
}
|
|
185
|
-
static fromBinary(bytes, options) {
|
|
186
|
-
return new _RoomEgress().fromBinary(bytes, options);
|
|
187
|
-
}
|
|
188
|
-
static fromJson(jsonValue, options) {
|
|
189
|
-
return new _RoomEgress().fromJson(jsonValue, options);
|
|
190
|
-
}
|
|
191
|
-
static fromJsonString(jsonString, options) {
|
|
192
|
-
return new _RoomEgress().fromJsonString(jsonString, options);
|
|
193
|
-
}
|
|
194
|
-
static equals(a, b) {
|
|
195
|
-
return proto3.util.equals(_RoomEgress, a, b);
|
|
196
|
-
}
|
|
197
|
-
};
|
|
198
|
-
_RoomEgress.runtime = proto3;
|
|
199
|
-
_RoomEgress.typeName = "livekit.RoomEgress";
|
|
200
|
-
_RoomEgress.fields = proto3.util.newFieldList(() => [
|
|
201
|
-
{ no: 1, name: "room", kind: "message", T: RoomCompositeEgressRequest },
|
|
202
|
-
{ no: 3, name: "participant", kind: "message", T: AutoParticipantEgress },
|
|
203
|
-
{ no: 2, name: "tracks", kind: "message", T: AutoTrackEgress }
|
|
204
|
-
]);
|
|
205
|
-
let RoomEgress = _RoomEgress;
|
|
206
|
-
const _RoomAgent = class _RoomAgent extends Message {
|
|
207
|
-
constructor(data) {
|
|
208
|
-
super();
|
|
209
|
-
/**
|
|
210
|
-
* @generated from field: repeated livekit.RoomAgentDispatch dispatches = 1;
|
|
211
|
-
*/
|
|
212
|
-
this.dispatches = [];
|
|
213
|
-
proto3.util.initPartial(data, this);
|
|
214
|
-
}
|
|
215
|
-
static fromBinary(bytes, options) {
|
|
216
|
-
return new _RoomAgent().fromBinary(bytes, options);
|
|
217
|
-
}
|
|
218
|
-
static fromJson(jsonValue, options) {
|
|
219
|
-
return new _RoomAgent().fromJson(jsonValue, options);
|
|
220
|
-
}
|
|
221
|
-
static fromJsonString(jsonString, options) {
|
|
222
|
-
return new _RoomAgent().fromJsonString(jsonString, options);
|
|
223
|
-
}
|
|
224
|
-
static equals(a, b) {
|
|
225
|
-
return proto3.util.equals(_RoomAgent, a, b);
|
|
226
|
-
}
|
|
227
|
-
};
|
|
228
|
-
_RoomAgent.runtime = proto3;
|
|
229
|
-
_RoomAgent.typeName = "livekit.RoomAgent";
|
|
230
|
-
_RoomAgent.fields = proto3.util.newFieldList(() => [
|
|
231
|
-
{ no: 1, name: "dispatches", kind: "message", T: RoomAgentDispatch, repeated: true }
|
|
232
|
-
]);
|
|
233
|
-
let RoomAgent = _RoomAgent;
|
|
234
|
-
const _ListRoomsRequest = class _ListRoomsRequest extends Message {
|
|
235
|
-
constructor(data) {
|
|
236
|
-
super();
|
|
237
|
-
/**
|
|
238
|
-
* when set, will only return rooms with name match
|
|
239
|
-
*
|
|
240
|
-
* @generated from field: repeated string names = 1;
|
|
241
|
-
*/
|
|
242
|
-
this.names = [];
|
|
243
|
-
proto3.util.initPartial(data, this);
|
|
244
|
-
}
|
|
245
|
-
static fromBinary(bytes, options) {
|
|
246
|
-
return new _ListRoomsRequest().fromBinary(bytes, options);
|
|
247
|
-
}
|
|
248
|
-
static fromJson(jsonValue, options) {
|
|
249
|
-
return new _ListRoomsRequest().fromJson(jsonValue, options);
|
|
250
|
-
}
|
|
251
|
-
static fromJsonString(jsonString, options) {
|
|
252
|
-
return new _ListRoomsRequest().fromJsonString(jsonString, options);
|
|
253
|
-
}
|
|
254
|
-
static equals(a, b) {
|
|
255
|
-
return proto3.util.equals(_ListRoomsRequest, a, b);
|
|
256
|
-
}
|
|
257
|
-
};
|
|
258
|
-
_ListRoomsRequest.runtime = proto3;
|
|
259
|
-
_ListRoomsRequest.typeName = "livekit.ListRoomsRequest";
|
|
260
|
-
_ListRoomsRequest.fields = proto3.util.newFieldList(() => [
|
|
261
|
-
{ no: 1, name: "names", kind: "scalar", T: 9, repeated: true }
|
|
262
|
-
]);
|
|
263
|
-
let ListRoomsRequest = _ListRoomsRequest;
|
|
264
|
-
const _ListRoomsResponse = class _ListRoomsResponse extends Message {
|
|
265
|
-
constructor(data) {
|
|
266
|
-
super();
|
|
267
|
-
/**
|
|
268
|
-
* @generated from field: repeated livekit.Room rooms = 1;
|
|
269
|
-
*/
|
|
270
|
-
this.rooms = [];
|
|
271
|
-
proto3.util.initPartial(data, this);
|
|
272
|
-
}
|
|
273
|
-
static fromBinary(bytes, options) {
|
|
274
|
-
return new _ListRoomsResponse().fromBinary(bytes, options);
|
|
275
|
-
}
|
|
276
|
-
static fromJson(jsonValue, options) {
|
|
277
|
-
return new _ListRoomsResponse().fromJson(jsonValue, options);
|
|
278
|
-
}
|
|
279
|
-
static fromJsonString(jsonString, options) {
|
|
280
|
-
return new _ListRoomsResponse().fromJsonString(jsonString, options);
|
|
281
|
-
}
|
|
282
|
-
static equals(a, b) {
|
|
283
|
-
return proto3.util.equals(_ListRoomsResponse, a, b);
|
|
284
|
-
}
|
|
285
|
-
};
|
|
286
|
-
_ListRoomsResponse.runtime = proto3;
|
|
287
|
-
_ListRoomsResponse.typeName = "livekit.ListRoomsResponse";
|
|
288
|
-
_ListRoomsResponse.fields = proto3.util.newFieldList(() => [
|
|
289
|
-
{ no: 1, name: "rooms", kind: "message", T: Room, repeated: true }
|
|
290
|
-
]);
|
|
291
|
-
let ListRoomsResponse = _ListRoomsResponse;
|
|
292
|
-
const _DeleteRoomRequest = class _DeleteRoomRequest extends Message {
|
|
293
|
-
constructor(data) {
|
|
294
|
-
super();
|
|
295
|
-
/**
|
|
296
|
-
* name of the room
|
|
297
|
-
*
|
|
298
|
-
* @generated from field: string room = 1;
|
|
299
|
-
*/
|
|
300
|
-
this.room = "";
|
|
301
|
-
proto3.util.initPartial(data, this);
|
|
302
|
-
}
|
|
303
|
-
static fromBinary(bytes, options) {
|
|
304
|
-
return new _DeleteRoomRequest().fromBinary(bytes, options);
|
|
305
|
-
}
|
|
306
|
-
static fromJson(jsonValue, options) {
|
|
307
|
-
return new _DeleteRoomRequest().fromJson(jsonValue, options);
|
|
308
|
-
}
|
|
309
|
-
static fromJsonString(jsonString, options) {
|
|
310
|
-
return new _DeleteRoomRequest().fromJsonString(jsonString, options);
|
|
311
|
-
}
|
|
312
|
-
static equals(a, b) {
|
|
313
|
-
return proto3.util.equals(_DeleteRoomRequest, a, b);
|
|
314
|
-
}
|
|
315
|
-
};
|
|
316
|
-
_DeleteRoomRequest.runtime = proto3;
|
|
317
|
-
_DeleteRoomRequest.typeName = "livekit.DeleteRoomRequest";
|
|
318
|
-
_DeleteRoomRequest.fields = proto3.util.newFieldList(() => [
|
|
319
|
-
{
|
|
320
|
-
no: 1,
|
|
321
|
-
name: "room",
|
|
322
|
-
kind: "scalar",
|
|
323
|
-
T: 9
|
|
324
|
-
/* ScalarType.STRING */
|
|
325
|
-
}
|
|
326
|
-
]);
|
|
327
|
-
let DeleteRoomRequest = _DeleteRoomRequest;
|
|
328
|
-
const _DeleteRoomResponse = class _DeleteRoomResponse extends Message {
|
|
329
|
-
constructor(data) {
|
|
330
|
-
super();
|
|
331
|
-
proto3.util.initPartial(data, this);
|
|
332
|
-
}
|
|
333
|
-
static fromBinary(bytes, options) {
|
|
334
|
-
return new _DeleteRoomResponse().fromBinary(bytes, options);
|
|
335
|
-
}
|
|
336
|
-
static fromJson(jsonValue, options) {
|
|
337
|
-
return new _DeleteRoomResponse().fromJson(jsonValue, options);
|
|
338
|
-
}
|
|
339
|
-
static fromJsonString(jsonString, options) {
|
|
340
|
-
return new _DeleteRoomResponse().fromJsonString(jsonString, options);
|
|
341
|
-
}
|
|
342
|
-
static equals(a, b) {
|
|
343
|
-
return proto3.util.equals(_DeleteRoomResponse, a, b);
|
|
344
|
-
}
|
|
345
|
-
};
|
|
346
|
-
_DeleteRoomResponse.runtime = proto3;
|
|
347
|
-
_DeleteRoomResponse.typeName = "livekit.DeleteRoomResponse";
|
|
348
|
-
_DeleteRoomResponse.fields = proto3.util.newFieldList(() => []);
|
|
349
|
-
let DeleteRoomResponse = _DeleteRoomResponse;
|
|
350
|
-
const _ListParticipantsRequest = class _ListParticipantsRequest extends Message {
|
|
351
|
-
constructor(data) {
|
|
352
|
-
super();
|
|
353
|
-
/**
|
|
354
|
-
* name of the room
|
|
355
|
-
*
|
|
356
|
-
* @generated from field: string room = 1;
|
|
357
|
-
*/
|
|
358
|
-
this.room = "";
|
|
359
|
-
proto3.util.initPartial(data, this);
|
|
360
|
-
}
|
|
361
|
-
static fromBinary(bytes, options) {
|
|
362
|
-
return new _ListParticipantsRequest().fromBinary(bytes, options);
|
|
363
|
-
}
|
|
364
|
-
static fromJson(jsonValue, options) {
|
|
365
|
-
return new _ListParticipantsRequest().fromJson(jsonValue, options);
|
|
366
|
-
}
|
|
367
|
-
static fromJsonString(jsonString, options) {
|
|
368
|
-
return new _ListParticipantsRequest().fromJsonString(jsonString, options);
|
|
369
|
-
}
|
|
370
|
-
static equals(a, b) {
|
|
371
|
-
return proto3.util.equals(_ListParticipantsRequest, a, b);
|
|
372
|
-
}
|
|
373
|
-
};
|
|
374
|
-
_ListParticipantsRequest.runtime = proto3;
|
|
375
|
-
_ListParticipantsRequest.typeName = "livekit.ListParticipantsRequest";
|
|
376
|
-
_ListParticipantsRequest.fields = proto3.util.newFieldList(() => [
|
|
377
|
-
{
|
|
378
|
-
no: 1,
|
|
379
|
-
name: "room",
|
|
380
|
-
kind: "scalar",
|
|
381
|
-
T: 9
|
|
382
|
-
/* ScalarType.STRING */
|
|
383
|
-
}
|
|
384
|
-
]);
|
|
385
|
-
let ListParticipantsRequest = _ListParticipantsRequest;
|
|
386
|
-
const _ListParticipantsResponse = class _ListParticipantsResponse extends Message {
|
|
387
|
-
constructor(data) {
|
|
388
|
-
super();
|
|
389
|
-
/**
|
|
390
|
-
* @generated from field: repeated livekit.ParticipantInfo participants = 1;
|
|
391
|
-
*/
|
|
392
|
-
this.participants = [];
|
|
393
|
-
proto3.util.initPartial(data, this);
|
|
394
|
-
}
|
|
395
|
-
static fromBinary(bytes, options) {
|
|
396
|
-
return new _ListParticipantsResponse().fromBinary(bytes, options);
|
|
397
|
-
}
|
|
398
|
-
static fromJson(jsonValue, options) {
|
|
399
|
-
return new _ListParticipantsResponse().fromJson(jsonValue, options);
|
|
400
|
-
}
|
|
401
|
-
static fromJsonString(jsonString, options) {
|
|
402
|
-
return new _ListParticipantsResponse().fromJsonString(jsonString, options);
|
|
403
|
-
}
|
|
404
|
-
static equals(a, b) {
|
|
405
|
-
return proto3.util.equals(_ListParticipantsResponse, a, b);
|
|
406
|
-
}
|
|
407
|
-
};
|
|
408
|
-
_ListParticipantsResponse.runtime = proto3;
|
|
409
|
-
_ListParticipantsResponse.typeName = "livekit.ListParticipantsResponse";
|
|
410
|
-
_ListParticipantsResponse.fields = proto3.util.newFieldList(() => [
|
|
411
|
-
{ no: 1, name: "participants", kind: "message", T: ParticipantInfo, repeated: true }
|
|
412
|
-
]);
|
|
413
|
-
let ListParticipantsResponse = _ListParticipantsResponse;
|
|
414
|
-
const _RoomParticipantIdentity = class _RoomParticipantIdentity extends Message {
|
|
415
|
-
constructor(data) {
|
|
416
|
-
super();
|
|
417
|
-
/**
|
|
418
|
-
* name of the room
|
|
419
|
-
*
|
|
420
|
-
* @generated from field: string room = 1;
|
|
421
|
-
*/
|
|
422
|
-
this.room = "";
|
|
423
|
-
/**
|
|
424
|
-
* identity of the participant
|
|
425
|
-
*
|
|
426
|
-
* @generated from field: string identity = 2;
|
|
427
|
-
*/
|
|
428
|
-
this.identity = "";
|
|
429
|
-
proto3.util.initPartial(data, this);
|
|
430
|
-
}
|
|
431
|
-
static fromBinary(bytes, options) {
|
|
432
|
-
return new _RoomParticipantIdentity().fromBinary(bytes, options);
|
|
433
|
-
}
|
|
434
|
-
static fromJson(jsonValue, options) {
|
|
435
|
-
return new _RoomParticipantIdentity().fromJson(jsonValue, options);
|
|
436
|
-
}
|
|
437
|
-
static fromJsonString(jsonString, options) {
|
|
438
|
-
return new _RoomParticipantIdentity().fromJsonString(jsonString, options);
|
|
439
|
-
}
|
|
440
|
-
static equals(a, b) {
|
|
441
|
-
return proto3.util.equals(_RoomParticipantIdentity, a, b);
|
|
442
|
-
}
|
|
443
|
-
};
|
|
444
|
-
_RoomParticipantIdentity.runtime = proto3;
|
|
445
|
-
_RoomParticipantIdentity.typeName = "livekit.RoomParticipantIdentity";
|
|
446
|
-
_RoomParticipantIdentity.fields = proto3.util.newFieldList(() => [
|
|
447
|
-
{
|
|
448
|
-
no: 1,
|
|
449
|
-
name: "room",
|
|
450
|
-
kind: "scalar",
|
|
451
|
-
T: 9
|
|
452
|
-
/* ScalarType.STRING */
|
|
453
|
-
},
|
|
454
|
-
{
|
|
455
|
-
no: 2,
|
|
456
|
-
name: "identity",
|
|
457
|
-
kind: "scalar",
|
|
458
|
-
T: 9
|
|
459
|
-
/* ScalarType.STRING */
|
|
460
|
-
}
|
|
461
|
-
]);
|
|
462
|
-
let RoomParticipantIdentity = _RoomParticipantIdentity;
|
|
463
|
-
const _RemoveParticipantResponse = class _RemoveParticipantResponse extends Message {
|
|
464
|
-
constructor(data) {
|
|
465
|
-
super();
|
|
466
|
-
proto3.util.initPartial(data, this);
|
|
467
|
-
}
|
|
468
|
-
static fromBinary(bytes, options) {
|
|
469
|
-
return new _RemoveParticipantResponse().fromBinary(bytes, options);
|
|
470
|
-
}
|
|
471
|
-
static fromJson(jsonValue, options) {
|
|
472
|
-
return new _RemoveParticipantResponse().fromJson(jsonValue, options);
|
|
473
|
-
}
|
|
474
|
-
static fromJsonString(jsonString, options) {
|
|
475
|
-
return new _RemoveParticipantResponse().fromJsonString(jsonString, options);
|
|
476
|
-
}
|
|
477
|
-
static equals(a, b) {
|
|
478
|
-
return proto3.util.equals(_RemoveParticipantResponse, a, b);
|
|
479
|
-
}
|
|
480
|
-
};
|
|
481
|
-
_RemoveParticipantResponse.runtime = proto3;
|
|
482
|
-
_RemoveParticipantResponse.typeName = "livekit.RemoveParticipantResponse";
|
|
483
|
-
_RemoveParticipantResponse.fields = proto3.util.newFieldList(() => []);
|
|
484
|
-
let RemoveParticipantResponse = _RemoveParticipantResponse;
|
|
485
|
-
const _MuteRoomTrackRequest = class _MuteRoomTrackRequest extends Message {
|
|
486
|
-
constructor(data) {
|
|
487
|
-
super();
|
|
488
|
-
/**
|
|
489
|
-
* name of the room
|
|
490
|
-
*
|
|
491
|
-
* @generated from field: string room = 1;
|
|
492
|
-
*/
|
|
493
|
-
this.room = "";
|
|
494
|
-
/**
|
|
495
|
-
* @generated from field: string identity = 2;
|
|
496
|
-
*/
|
|
497
|
-
this.identity = "";
|
|
498
|
-
/**
|
|
499
|
-
* sid of the track to mute
|
|
500
|
-
*
|
|
501
|
-
* @generated from field: string track_sid = 3;
|
|
502
|
-
*/
|
|
503
|
-
this.trackSid = "";
|
|
504
|
-
/**
|
|
505
|
-
* set to true to mute, false to unmute
|
|
506
|
-
*
|
|
507
|
-
* @generated from field: bool muted = 4;
|
|
508
|
-
*/
|
|
509
|
-
this.muted = false;
|
|
510
|
-
proto3.util.initPartial(data, this);
|
|
511
|
-
}
|
|
512
|
-
static fromBinary(bytes, options) {
|
|
513
|
-
return new _MuteRoomTrackRequest().fromBinary(bytes, options);
|
|
514
|
-
}
|
|
515
|
-
static fromJson(jsonValue, options) {
|
|
516
|
-
return new _MuteRoomTrackRequest().fromJson(jsonValue, options);
|
|
517
|
-
}
|
|
518
|
-
static fromJsonString(jsonString, options) {
|
|
519
|
-
return new _MuteRoomTrackRequest().fromJsonString(jsonString, options);
|
|
520
|
-
}
|
|
521
|
-
static equals(a, b) {
|
|
522
|
-
return proto3.util.equals(_MuteRoomTrackRequest, a, b);
|
|
523
|
-
}
|
|
524
|
-
};
|
|
525
|
-
_MuteRoomTrackRequest.runtime = proto3;
|
|
526
|
-
_MuteRoomTrackRequest.typeName = "livekit.MuteRoomTrackRequest";
|
|
527
|
-
_MuteRoomTrackRequest.fields = proto3.util.newFieldList(() => [
|
|
528
|
-
{
|
|
529
|
-
no: 1,
|
|
530
|
-
name: "room",
|
|
531
|
-
kind: "scalar",
|
|
532
|
-
T: 9
|
|
533
|
-
/* ScalarType.STRING */
|
|
534
|
-
},
|
|
535
|
-
{
|
|
536
|
-
no: 2,
|
|
537
|
-
name: "identity",
|
|
538
|
-
kind: "scalar",
|
|
539
|
-
T: 9
|
|
540
|
-
/* ScalarType.STRING */
|
|
541
|
-
},
|
|
542
|
-
{
|
|
543
|
-
no: 3,
|
|
544
|
-
name: "track_sid",
|
|
545
|
-
kind: "scalar",
|
|
546
|
-
T: 9
|
|
547
|
-
/* ScalarType.STRING */
|
|
548
|
-
},
|
|
549
|
-
{
|
|
550
|
-
no: 4,
|
|
551
|
-
name: "muted",
|
|
552
|
-
kind: "scalar",
|
|
553
|
-
T: 8
|
|
554
|
-
/* ScalarType.BOOL */
|
|
555
|
-
}
|
|
556
|
-
]);
|
|
557
|
-
let MuteRoomTrackRequest = _MuteRoomTrackRequest;
|
|
558
|
-
const _MuteRoomTrackResponse = class _MuteRoomTrackResponse extends Message {
|
|
559
|
-
constructor(data) {
|
|
560
|
-
super();
|
|
561
|
-
proto3.util.initPartial(data, this);
|
|
562
|
-
}
|
|
563
|
-
static fromBinary(bytes, options) {
|
|
564
|
-
return new _MuteRoomTrackResponse().fromBinary(bytes, options);
|
|
565
|
-
}
|
|
566
|
-
static fromJson(jsonValue, options) {
|
|
567
|
-
return new _MuteRoomTrackResponse().fromJson(jsonValue, options);
|
|
568
|
-
}
|
|
569
|
-
static fromJsonString(jsonString, options) {
|
|
570
|
-
return new _MuteRoomTrackResponse().fromJsonString(jsonString, options);
|
|
571
|
-
}
|
|
572
|
-
static equals(a, b) {
|
|
573
|
-
return proto3.util.equals(_MuteRoomTrackResponse, a, b);
|
|
574
|
-
}
|
|
575
|
-
};
|
|
576
|
-
_MuteRoomTrackResponse.runtime = proto3;
|
|
577
|
-
_MuteRoomTrackResponse.typeName = "livekit.MuteRoomTrackResponse";
|
|
578
|
-
_MuteRoomTrackResponse.fields = proto3.util.newFieldList(() => [
|
|
579
|
-
{ no: 1, name: "track", kind: "message", T: TrackInfo }
|
|
580
|
-
]);
|
|
581
|
-
let MuteRoomTrackResponse = _MuteRoomTrackResponse;
|
|
582
|
-
const _UpdateParticipantRequest = class _UpdateParticipantRequest extends Message {
|
|
583
|
-
constructor(data) {
|
|
584
|
-
super();
|
|
585
|
-
/**
|
|
586
|
-
* @generated from field: string room = 1;
|
|
587
|
-
*/
|
|
588
|
-
this.room = "";
|
|
589
|
-
/**
|
|
590
|
-
* @generated from field: string identity = 2;
|
|
591
|
-
*/
|
|
592
|
-
this.identity = "";
|
|
593
|
-
/**
|
|
594
|
-
* metadata to update. skipping updates if left empty
|
|
595
|
-
*
|
|
596
|
-
* @generated from field: string metadata = 3;
|
|
597
|
-
*/
|
|
598
|
-
this.metadata = "";
|
|
599
|
-
/**
|
|
600
|
-
* display name to update
|
|
601
|
-
*
|
|
602
|
-
* @generated from field: string name = 5;
|
|
603
|
-
*/
|
|
604
|
-
this.name = "";
|
|
605
|
-
/**
|
|
606
|
-
* attributes to update. it only updates attributes that have been set
|
|
607
|
-
* to delete attributes, set the value to an empty string
|
|
608
|
-
*
|
|
609
|
-
* @generated from field: map<string, string> attributes = 6;
|
|
610
|
-
*/
|
|
611
|
-
this.attributes = {};
|
|
612
|
-
proto3.util.initPartial(data, this);
|
|
613
|
-
}
|
|
614
|
-
static fromBinary(bytes, options) {
|
|
615
|
-
return new _UpdateParticipantRequest().fromBinary(bytes, options);
|
|
616
|
-
}
|
|
617
|
-
static fromJson(jsonValue, options) {
|
|
618
|
-
return new _UpdateParticipantRequest().fromJson(jsonValue, options);
|
|
619
|
-
}
|
|
620
|
-
static fromJsonString(jsonString, options) {
|
|
621
|
-
return new _UpdateParticipantRequest().fromJsonString(jsonString, options);
|
|
622
|
-
}
|
|
623
|
-
static equals(a, b) {
|
|
624
|
-
return proto3.util.equals(_UpdateParticipantRequest, a, b);
|
|
625
|
-
}
|
|
626
|
-
};
|
|
627
|
-
_UpdateParticipantRequest.runtime = proto3;
|
|
628
|
-
_UpdateParticipantRequest.typeName = "livekit.UpdateParticipantRequest";
|
|
629
|
-
_UpdateParticipantRequest.fields = proto3.util.newFieldList(() => [
|
|
630
|
-
{
|
|
631
|
-
no: 1,
|
|
632
|
-
name: "room",
|
|
633
|
-
kind: "scalar",
|
|
634
|
-
T: 9
|
|
635
|
-
/* ScalarType.STRING */
|
|
636
|
-
},
|
|
637
|
-
{
|
|
638
|
-
no: 2,
|
|
639
|
-
name: "identity",
|
|
640
|
-
kind: "scalar",
|
|
641
|
-
T: 9
|
|
642
|
-
/* ScalarType.STRING */
|
|
643
|
-
},
|
|
644
|
-
{
|
|
645
|
-
no: 3,
|
|
646
|
-
name: "metadata",
|
|
647
|
-
kind: "scalar",
|
|
648
|
-
T: 9
|
|
649
|
-
/* ScalarType.STRING */
|
|
650
|
-
},
|
|
651
|
-
{ no: 4, name: "permission", kind: "message", T: ParticipantPermission },
|
|
652
|
-
{
|
|
653
|
-
no: 5,
|
|
654
|
-
name: "name",
|
|
655
|
-
kind: "scalar",
|
|
656
|
-
T: 9
|
|
657
|
-
/* ScalarType.STRING */
|
|
658
|
-
},
|
|
659
|
-
{ no: 6, name: "attributes", kind: "map", K: 9, V: {
|
|
660
|
-
kind: "scalar",
|
|
661
|
-
T: 9
|
|
662
|
-
/* ScalarType.STRING */
|
|
663
|
-
} }
|
|
664
|
-
]);
|
|
665
|
-
let UpdateParticipantRequest = _UpdateParticipantRequest;
|
|
666
|
-
const _UpdateSubscriptionsRequest = class _UpdateSubscriptionsRequest extends Message {
|
|
667
|
-
constructor(data) {
|
|
668
|
-
super();
|
|
669
|
-
/**
|
|
670
|
-
* @generated from field: string room = 1;
|
|
671
|
-
*/
|
|
672
|
-
this.room = "";
|
|
673
|
-
/**
|
|
674
|
-
* @generated from field: string identity = 2;
|
|
675
|
-
*/
|
|
676
|
-
this.identity = "";
|
|
677
|
-
/**
|
|
678
|
-
* list of sids of tracks
|
|
679
|
-
*
|
|
680
|
-
* @generated from field: repeated string track_sids = 3;
|
|
681
|
-
*/
|
|
682
|
-
this.trackSids = [];
|
|
683
|
-
/**
|
|
684
|
-
* set to true to subscribe, false to unsubscribe from tracks
|
|
685
|
-
*
|
|
686
|
-
* @generated from field: bool subscribe = 4;
|
|
687
|
-
*/
|
|
688
|
-
this.subscribe = false;
|
|
689
|
-
/**
|
|
690
|
-
* list of participants and their tracks
|
|
691
|
-
*
|
|
692
|
-
* @generated from field: repeated livekit.ParticipantTracks participant_tracks = 5;
|
|
693
|
-
*/
|
|
694
|
-
this.participantTracks = [];
|
|
695
|
-
proto3.util.initPartial(data, this);
|
|
696
|
-
}
|
|
697
|
-
static fromBinary(bytes, options) {
|
|
698
|
-
return new _UpdateSubscriptionsRequest().fromBinary(bytes, options);
|
|
699
|
-
}
|
|
700
|
-
static fromJson(jsonValue, options) {
|
|
701
|
-
return new _UpdateSubscriptionsRequest().fromJson(jsonValue, options);
|
|
702
|
-
}
|
|
703
|
-
static fromJsonString(jsonString, options) {
|
|
704
|
-
return new _UpdateSubscriptionsRequest().fromJsonString(jsonString, options);
|
|
705
|
-
}
|
|
706
|
-
static equals(a, b) {
|
|
707
|
-
return proto3.util.equals(_UpdateSubscriptionsRequest, a, b);
|
|
708
|
-
}
|
|
709
|
-
};
|
|
710
|
-
_UpdateSubscriptionsRequest.runtime = proto3;
|
|
711
|
-
_UpdateSubscriptionsRequest.typeName = "livekit.UpdateSubscriptionsRequest";
|
|
712
|
-
_UpdateSubscriptionsRequest.fields = proto3.util.newFieldList(() => [
|
|
713
|
-
{
|
|
714
|
-
no: 1,
|
|
715
|
-
name: "room",
|
|
716
|
-
kind: "scalar",
|
|
717
|
-
T: 9
|
|
718
|
-
/* ScalarType.STRING */
|
|
719
|
-
},
|
|
720
|
-
{
|
|
721
|
-
no: 2,
|
|
722
|
-
name: "identity",
|
|
723
|
-
kind: "scalar",
|
|
724
|
-
T: 9
|
|
725
|
-
/* ScalarType.STRING */
|
|
726
|
-
},
|
|
727
|
-
{ no: 3, name: "track_sids", kind: "scalar", T: 9, repeated: true },
|
|
728
|
-
{
|
|
729
|
-
no: 4,
|
|
730
|
-
name: "subscribe",
|
|
731
|
-
kind: "scalar",
|
|
732
|
-
T: 8
|
|
733
|
-
/* ScalarType.BOOL */
|
|
734
|
-
},
|
|
735
|
-
{ no: 5, name: "participant_tracks", kind: "message", T: ParticipantTracks, repeated: true }
|
|
736
|
-
]);
|
|
737
|
-
let UpdateSubscriptionsRequest = _UpdateSubscriptionsRequest;
|
|
738
|
-
const _UpdateSubscriptionsResponse = class _UpdateSubscriptionsResponse extends Message {
|
|
739
|
-
constructor(data) {
|
|
740
|
-
super();
|
|
741
|
-
proto3.util.initPartial(data, this);
|
|
742
|
-
}
|
|
743
|
-
static fromBinary(bytes, options) {
|
|
744
|
-
return new _UpdateSubscriptionsResponse().fromBinary(bytes, options);
|
|
745
|
-
}
|
|
746
|
-
static fromJson(jsonValue, options) {
|
|
747
|
-
return new _UpdateSubscriptionsResponse().fromJson(jsonValue, options);
|
|
748
|
-
}
|
|
749
|
-
static fromJsonString(jsonString, options) {
|
|
750
|
-
return new _UpdateSubscriptionsResponse().fromJsonString(jsonString, options);
|
|
751
|
-
}
|
|
752
|
-
static equals(a, b) {
|
|
753
|
-
return proto3.util.equals(_UpdateSubscriptionsResponse, a, b);
|
|
754
|
-
}
|
|
755
|
-
};
|
|
756
|
-
_UpdateSubscriptionsResponse.runtime = proto3;
|
|
757
|
-
_UpdateSubscriptionsResponse.typeName = "livekit.UpdateSubscriptionsResponse";
|
|
758
|
-
_UpdateSubscriptionsResponse.fields = proto3.util.newFieldList(() => []);
|
|
759
|
-
let UpdateSubscriptionsResponse = _UpdateSubscriptionsResponse;
|
|
760
|
-
const _SendDataRequest = class _SendDataRequest extends Message {
|
|
761
|
-
constructor(data) {
|
|
762
|
-
super();
|
|
763
|
-
/**
|
|
764
|
-
* @generated from field: string room = 1;
|
|
765
|
-
*/
|
|
766
|
-
this.room = "";
|
|
767
|
-
/**
|
|
768
|
-
* @generated from field: bytes data = 2;
|
|
769
|
-
*/
|
|
770
|
-
this.data = new Uint8Array(0);
|
|
771
|
-
/**
|
|
772
|
-
* @generated from field: livekit.DataPacket.Kind kind = 3;
|
|
773
|
-
*/
|
|
774
|
-
this.kind = DataPacket_Kind.RELIABLE;
|
|
775
|
-
/**
|
|
776
|
-
* mark deprecated
|
|
777
|
-
*
|
|
778
|
-
* @generated from field: repeated string destination_sids = 4 [deprecated = true];
|
|
779
|
-
* @deprecated
|
|
780
|
-
*/
|
|
781
|
-
this.destinationSids = [];
|
|
782
|
-
/**
|
|
783
|
-
* when set, only forward to these identities
|
|
784
|
-
*
|
|
785
|
-
* @generated from field: repeated string destination_identities = 6;
|
|
786
|
-
*/
|
|
787
|
-
this.destinationIdentities = [];
|
|
788
|
-
proto3.util.initPartial(data, this);
|
|
789
|
-
}
|
|
790
|
-
static fromBinary(bytes, options) {
|
|
791
|
-
return new _SendDataRequest().fromBinary(bytes, options);
|
|
792
|
-
}
|
|
793
|
-
static fromJson(jsonValue, options) {
|
|
794
|
-
return new _SendDataRequest().fromJson(jsonValue, options);
|
|
795
|
-
}
|
|
796
|
-
static fromJsonString(jsonString, options) {
|
|
797
|
-
return new _SendDataRequest().fromJsonString(jsonString, options);
|
|
798
|
-
}
|
|
799
|
-
static equals(a, b) {
|
|
800
|
-
return proto3.util.equals(_SendDataRequest, a, b);
|
|
801
|
-
}
|
|
802
|
-
};
|
|
803
|
-
_SendDataRequest.runtime = proto3;
|
|
804
|
-
_SendDataRequest.typeName = "livekit.SendDataRequest";
|
|
805
|
-
_SendDataRequest.fields = proto3.util.newFieldList(() => [
|
|
806
|
-
{
|
|
807
|
-
no: 1,
|
|
808
|
-
name: "room",
|
|
809
|
-
kind: "scalar",
|
|
810
|
-
T: 9
|
|
811
|
-
/* ScalarType.STRING */
|
|
812
|
-
},
|
|
813
|
-
{
|
|
814
|
-
no: 2,
|
|
815
|
-
name: "data",
|
|
816
|
-
kind: "scalar",
|
|
817
|
-
T: 12
|
|
818
|
-
/* ScalarType.BYTES */
|
|
819
|
-
},
|
|
820
|
-
{ no: 3, name: "kind", kind: "enum", T: proto3.getEnumType(DataPacket_Kind) },
|
|
821
|
-
{ no: 4, name: "destination_sids", kind: "scalar", T: 9, repeated: true },
|
|
822
|
-
{ no: 6, name: "destination_identities", kind: "scalar", T: 9, repeated: true },
|
|
823
|
-
{ no: 5, name: "topic", kind: "scalar", T: 9, opt: true }
|
|
824
|
-
]);
|
|
825
|
-
let SendDataRequest = _SendDataRequest;
|
|
826
|
-
const _SendDataResponse = class _SendDataResponse extends Message {
|
|
827
|
-
constructor(data) {
|
|
828
|
-
super();
|
|
829
|
-
proto3.util.initPartial(data, this);
|
|
830
|
-
}
|
|
831
|
-
static fromBinary(bytes, options) {
|
|
832
|
-
return new _SendDataResponse().fromBinary(bytes, options);
|
|
833
|
-
}
|
|
834
|
-
static fromJson(jsonValue, options) {
|
|
835
|
-
return new _SendDataResponse().fromJson(jsonValue, options);
|
|
836
|
-
}
|
|
837
|
-
static fromJsonString(jsonString, options) {
|
|
838
|
-
return new _SendDataResponse().fromJsonString(jsonString, options);
|
|
839
|
-
}
|
|
840
|
-
static equals(a, b) {
|
|
841
|
-
return proto3.util.equals(_SendDataResponse, a, b);
|
|
842
|
-
}
|
|
843
|
-
};
|
|
844
|
-
_SendDataResponse.runtime = proto3;
|
|
845
|
-
_SendDataResponse.typeName = "livekit.SendDataResponse";
|
|
846
|
-
_SendDataResponse.fields = proto3.util.newFieldList(() => []);
|
|
847
|
-
let SendDataResponse = _SendDataResponse;
|
|
848
|
-
const _UpdateRoomMetadataRequest = class _UpdateRoomMetadataRequest extends Message {
|
|
849
|
-
constructor(data) {
|
|
850
|
-
super();
|
|
851
|
-
/**
|
|
852
|
-
* @generated from field: string room = 1;
|
|
853
|
-
*/
|
|
854
|
-
this.room = "";
|
|
855
|
-
/**
|
|
856
|
-
* metadata to update. skipping updates if left empty
|
|
857
|
-
*
|
|
858
|
-
* @generated from field: string metadata = 2;
|
|
859
|
-
*/
|
|
860
|
-
this.metadata = "";
|
|
861
|
-
proto3.util.initPartial(data, this);
|
|
862
|
-
}
|
|
863
|
-
static fromBinary(bytes, options) {
|
|
864
|
-
return new _UpdateRoomMetadataRequest().fromBinary(bytes, options);
|
|
865
|
-
}
|
|
866
|
-
static fromJson(jsonValue, options) {
|
|
867
|
-
return new _UpdateRoomMetadataRequest().fromJson(jsonValue, options);
|
|
868
|
-
}
|
|
869
|
-
static fromJsonString(jsonString, options) {
|
|
870
|
-
return new _UpdateRoomMetadataRequest().fromJsonString(jsonString, options);
|
|
871
|
-
}
|
|
872
|
-
static equals(a, b) {
|
|
873
|
-
return proto3.util.equals(_UpdateRoomMetadataRequest, a, b);
|
|
874
|
-
}
|
|
875
|
-
};
|
|
876
|
-
_UpdateRoomMetadataRequest.runtime = proto3;
|
|
877
|
-
_UpdateRoomMetadataRequest.typeName = "livekit.UpdateRoomMetadataRequest";
|
|
878
|
-
_UpdateRoomMetadataRequest.fields = proto3.util.newFieldList(() => [
|
|
879
|
-
{
|
|
880
|
-
no: 1,
|
|
881
|
-
name: "room",
|
|
882
|
-
kind: "scalar",
|
|
883
|
-
T: 9
|
|
884
|
-
/* ScalarType.STRING */
|
|
885
|
-
},
|
|
886
|
-
{
|
|
887
|
-
no: 2,
|
|
888
|
-
name: "metadata",
|
|
889
|
-
kind: "scalar",
|
|
890
|
-
T: 9
|
|
891
|
-
/* ScalarType.STRING */
|
|
892
|
-
}
|
|
893
|
-
]);
|
|
894
|
-
let UpdateRoomMetadataRequest = _UpdateRoomMetadataRequest;
|
|
895
|
-
const _RoomConfiguration = class _RoomConfiguration extends Message {
|
|
896
|
-
constructor(data) {
|
|
897
|
-
super();
|
|
898
|
-
/**
|
|
899
|
-
* Used as ID, must be unique
|
|
900
|
-
*
|
|
901
|
-
* @generated from field: string name = 1;
|
|
902
|
-
*/
|
|
903
|
-
this.name = "";
|
|
904
|
-
/**
|
|
905
|
-
* number of seconds to keep the room open if no one joins
|
|
906
|
-
*
|
|
907
|
-
* @generated from field: uint32 empty_timeout = 2;
|
|
908
|
-
*/
|
|
909
|
-
this.emptyTimeout = 0;
|
|
910
|
-
/**
|
|
911
|
-
* number of seconds to keep the room open after everyone leaves
|
|
912
|
-
*
|
|
913
|
-
* @generated from field: uint32 departure_timeout = 3;
|
|
914
|
-
*/
|
|
915
|
-
this.departureTimeout = 0;
|
|
916
|
-
/**
|
|
917
|
-
* limit number of participants that can be in a room, excluding Egress and Ingress participants
|
|
918
|
-
*
|
|
919
|
-
* @generated from field: uint32 max_participants = 4;
|
|
920
|
-
*/
|
|
921
|
-
this.maxParticipants = 0;
|
|
922
|
-
/**
|
|
923
|
-
* playout delay of subscriber
|
|
924
|
-
*
|
|
925
|
-
* @generated from field: uint32 min_playout_delay = 7;
|
|
926
|
-
*/
|
|
927
|
-
this.minPlayoutDelay = 0;
|
|
928
|
-
/**
|
|
929
|
-
* @generated from field: uint32 max_playout_delay = 8;
|
|
930
|
-
*/
|
|
931
|
-
this.maxPlayoutDelay = 0;
|
|
932
|
-
/**
|
|
933
|
-
* improves A/V sync when playout_delay set to a value larger than 200ms. It will disables transceiver re-use
|
|
934
|
-
* so not recommended for rooms with frequent subscription changes
|
|
935
|
-
*
|
|
936
|
-
* @generated from field: bool sync_streams = 9;
|
|
937
|
-
*/
|
|
938
|
-
this.syncStreams = false;
|
|
939
|
-
/**
|
|
940
|
-
* Define agents that should be dispatched to this room
|
|
941
|
-
*
|
|
942
|
-
* @generated from field: repeated livekit.RoomAgentDispatch agents = 10;
|
|
943
|
-
*/
|
|
944
|
-
this.agents = [];
|
|
945
|
-
proto3.util.initPartial(data, this);
|
|
946
|
-
}
|
|
947
|
-
static fromBinary(bytes, options) {
|
|
948
|
-
return new _RoomConfiguration().fromBinary(bytes, options);
|
|
949
|
-
}
|
|
950
|
-
static fromJson(jsonValue, options) {
|
|
951
|
-
return new _RoomConfiguration().fromJson(jsonValue, options);
|
|
952
|
-
}
|
|
953
|
-
static fromJsonString(jsonString, options) {
|
|
954
|
-
return new _RoomConfiguration().fromJsonString(jsonString, options);
|
|
955
|
-
}
|
|
956
|
-
static equals(a, b) {
|
|
957
|
-
return proto3.util.equals(_RoomConfiguration, a, b);
|
|
958
|
-
}
|
|
959
|
-
};
|
|
960
|
-
_RoomConfiguration.runtime = proto3;
|
|
961
|
-
_RoomConfiguration.typeName = "livekit.RoomConfiguration";
|
|
962
|
-
_RoomConfiguration.fields = proto3.util.newFieldList(() => [
|
|
963
|
-
{
|
|
964
|
-
no: 1,
|
|
965
|
-
name: "name",
|
|
966
|
-
kind: "scalar",
|
|
967
|
-
T: 9
|
|
968
|
-
/* ScalarType.STRING */
|
|
969
|
-
},
|
|
970
|
-
{
|
|
971
|
-
no: 2,
|
|
972
|
-
name: "empty_timeout",
|
|
973
|
-
kind: "scalar",
|
|
974
|
-
T: 13
|
|
975
|
-
/* ScalarType.UINT32 */
|
|
976
|
-
},
|
|
977
|
-
{
|
|
978
|
-
no: 3,
|
|
979
|
-
name: "departure_timeout",
|
|
980
|
-
kind: "scalar",
|
|
981
|
-
T: 13
|
|
982
|
-
/* ScalarType.UINT32 */
|
|
983
|
-
},
|
|
984
|
-
{
|
|
985
|
-
no: 4,
|
|
986
|
-
name: "max_participants",
|
|
987
|
-
kind: "scalar",
|
|
988
|
-
T: 13
|
|
989
|
-
/* ScalarType.UINT32 */
|
|
990
|
-
},
|
|
991
|
-
{ no: 5, name: "egress", kind: "message", T: RoomEgress },
|
|
992
|
-
{
|
|
993
|
-
no: 7,
|
|
994
|
-
name: "min_playout_delay",
|
|
995
|
-
kind: "scalar",
|
|
996
|
-
T: 13
|
|
997
|
-
/* ScalarType.UINT32 */
|
|
998
|
-
},
|
|
999
|
-
{
|
|
1000
|
-
no: 8,
|
|
1001
|
-
name: "max_playout_delay",
|
|
1002
|
-
kind: "scalar",
|
|
1003
|
-
T: 13
|
|
1004
|
-
/* ScalarType.UINT32 */
|
|
1005
|
-
},
|
|
1006
|
-
{
|
|
1007
|
-
no: 9,
|
|
1008
|
-
name: "sync_streams",
|
|
1009
|
-
kind: "scalar",
|
|
1010
|
-
T: 8
|
|
1011
|
-
/* ScalarType.BOOL */
|
|
1012
|
-
},
|
|
1013
|
-
{ no: 10, name: "agents", kind: "message", T: RoomAgentDispatch, repeated: true }
|
|
1014
|
-
]);
|
|
1015
|
-
let RoomConfiguration = _RoomConfiguration;
|
|
1016
|
-
export {
|
|
1017
|
-
CreateRoomRequest,
|
|
1018
|
-
DeleteRoomRequest,
|
|
1019
|
-
DeleteRoomResponse,
|
|
1020
|
-
ListParticipantsRequest,
|
|
1021
|
-
ListParticipantsResponse,
|
|
1022
|
-
ListRoomsRequest,
|
|
1023
|
-
ListRoomsResponse,
|
|
1024
|
-
MuteRoomTrackRequest,
|
|
1025
|
-
MuteRoomTrackResponse,
|
|
1026
|
-
RemoveParticipantResponse,
|
|
1027
|
-
RoomAgent,
|
|
1028
|
-
RoomConfiguration,
|
|
1029
|
-
RoomEgress,
|
|
1030
|
-
RoomParticipantIdentity,
|
|
1031
|
-
SendDataRequest,
|
|
1032
|
-
SendDataResponse,
|
|
1033
|
-
UpdateParticipantRequest,
|
|
1034
|
-
UpdateRoomMetadataRequest,
|
|
1035
|
-
UpdateSubscriptionsRequest,
|
|
1036
|
-
UpdateSubscriptionsResponse
|
|
1037
|
-
};
|
|
1038
|
-
//# sourceMappingURL=livekit_room_pb.js.map
|