@livekit/protocol 1.10.1
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/LICENSE +202 -0
- package/package.json +27 -0
- package/src/gen/livekit_agent_pb.d.ts +458 -0
- package/src/gen/livekit_agent_pb.js +188 -0
- package/src/gen/livekit_egress_pb.d.ts +1974 -0
- package/src/gen/livekit_egress_pb.js +573 -0
- package/src/gen/livekit_ingress_pb.d.ts +818 -0
- package/src/gen/livekit_ingress_pb.js +265 -0
- package/src/gen/livekit_models_pb.d.ts +1841 -0
- package/src/gen/livekit_models_pb.js +627 -0
- package/src/gen/livekit_rtc_pb.d.ts +1782 -0
- package/src/gen/livekit_rtc_pb.js +565 -0
- package/src/gen/livekit_sip_pb.d.ts +590 -0
- package/src/gen/livekit_sip_pb.js +200 -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 +8 -0
- package/src/index.js +8 -0
|
@@ -0,0 +1,627 @@
|
|
|
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
|
+
|
|
15
|
+
// @generated by protoc-gen-es v1.7.2 with parameter "target=js+dts"
|
|
16
|
+
// @generated from file livekit_models.proto (package livekit, syntax proto3)
|
|
17
|
+
/* eslint-disable */
|
|
18
|
+
// @ts-nocheck
|
|
19
|
+
|
|
20
|
+
import { proto3, Timestamp } from "@bufbuild/protobuf";
|
|
21
|
+
|
|
22
|
+
/**
|
|
23
|
+
* @generated from enum livekit.AudioCodec
|
|
24
|
+
*/
|
|
25
|
+
export const AudioCodec = proto3.makeEnum(
|
|
26
|
+
"livekit.AudioCodec",
|
|
27
|
+
[
|
|
28
|
+
{no: 0, name: "DEFAULT_AC"},
|
|
29
|
+
{no: 1, name: "OPUS"},
|
|
30
|
+
{no: 2, name: "AAC"},
|
|
31
|
+
],
|
|
32
|
+
);
|
|
33
|
+
|
|
34
|
+
/**
|
|
35
|
+
* @generated from enum livekit.VideoCodec
|
|
36
|
+
*/
|
|
37
|
+
export const VideoCodec = proto3.makeEnum(
|
|
38
|
+
"livekit.VideoCodec",
|
|
39
|
+
[
|
|
40
|
+
{no: 0, name: "DEFAULT_VC"},
|
|
41
|
+
{no: 1, name: "H264_BASELINE"},
|
|
42
|
+
{no: 2, name: "H264_MAIN"},
|
|
43
|
+
{no: 3, name: "H264_HIGH"},
|
|
44
|
+
{no: 4, name: "VP8"},
|
|
45
|
+
],
|
|
46
|
+
);
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* @generated from enum livekit.ImageCodec
|
|
50
|
+
*/
|
|
51
|
+
export const ImageCodec = proto3.makeEnum(
|
|
52
|
+
"livekit.ImageCodec",
|
|
53
|
+
[
|
|
54
|
+
{no: 0, name: "IC_DEFAULT"},
|
|
55
|
+
{no: 1, name: "IC_JPEG"},
|
|
56
|
+
],
|
|
57
|
+
);
|
|
58
|
+
|
|
59
|
+
/**
|
|
60
|
+
* @generated from enum livekit.TrackType
|
|
61
|
+
*/
|
|
62
|
+
export const TrackType = proto3.makeEnum(
|
|
63
|
+
"livekit.TrackType",
|
|
64
|
+
[
|
|
65
|
+
{no: 0, name: "AUDIO"},
|
|
66
|
+
{no: 1, name: "VIDEO"},
|
|
67
|
+
{no: 2, name: "DATA"},
|
|
68
|
+
],
|
|
69
|
+
);
|
|
70
|
+
|
|
71
|
+
/**
|
|
72
|
+
* @generated from enum livekit.TrackSource
|
|
73
|
+
*/
|
|
74
|
+
export const TrackSource = proto3.makeEnum(
|
|
75
|
+
"livekit.TrackSource",
|
|
76
|
+
[
|
|
77
|
+
{no: 0, name: "UNKNOWN"},
|
|
78
|
+
{no: 1, name: "CAMERA"},
|
|
79
|
+
{no: 2, name: "MICROPHONE"},
|
|
80
|
+
{no: 3, name: "SCREEN_SHARE"},
|
|
81
|
+
{no: 4, name: "SCREEN_SHARE_AUDIO"},
|
|
82
|
+
],
|
|
83
|
+
);
|
|
84
|
+
|
|
85
|
+
/**
|
|
86
|
+
* @generated from enum livekit.VideoQuality
|
|
87
|
+
*/
|
|
88
|
+
export const VideoQuality = proto3.makeEnum(
|
|
89
|
+
"livekit.VideoQuality",
|
|
90
|
+
[
|
|
91
|
+
{no: 0, name: "LOW"},
|
|
92
|
+
{no: 1, name: "MEDIUM"},
|
|
93
|
+
{no: 2, name: "HIGH"},
|
|
94
|
+
{no: 3, name: "OFF"},
|
|
95
|
+
],
|
|
96
|
+
);
|
|
97
|
+
|
|
98
|
+
/**
|
|
99
|
+
* @generated from enum livekit.ConnectionQuality
|
|
100
|
+
*/
|
|
101
|
+
export const ConnectionQuality = proto3.makeEnum(
|
|
102
|
+
"livekit.ConnectionQuality",
|
|
103
|
+
[
|
|
104
|
+
{no: 0, name: "POOR"},
|
|
105
|
+
{no: 1, name: "GOOD"},
|
|
106
|
+
{no: 2, name: "EXCELLENT"},
|
|
107
|
+
{no: 3, name: "LOST"},
|
|
108
|
+
],
|
|
109
|
+
);
|
|
110
|
+
|
|
111
|
+
/**
|
|
112
|
+
* @generated from enum livekit.ClientConfigSetting
|
|
113
|
+
*/
|
|
114
|
+
export const ClientConfigSetting = proto3.makeEnum(
|
|
115
|
+
"livekit.ClientConfigSetting",
|
|
116
|
+
[
|
|
117
|
+
{no: 0, name: "UNSET"},
|
|
118
|
+
{no: 1, name: "DISABLED"},
|
|
119
|
+
{no: 2, name: "ENABLED"},
|
|
120
|
+
],
|
|
121
|
+
);
|
|
122
|
+
|
|
123
|
+
/**
|
|
124
|
+
* @generated from enum livekit.DisconnectReason
|
|
125
|
+
*/
|
|
126
|
+
export const DisconnectReason = proto3.makeEnum(
|
|
127
|
+
"livekit.DisconnectReason",
|
|
128
|
+
[
|
|
129
|
+
{no: 0, name: "UNKNOWN_REASON"},
|
|
130
|
+
{no: 1, name: "CLIENT_INITIATED"},
|
|
131
|
+
{no: 2, name: "DUPLICATE_IDENTITY"},
|
|
132
|
+
{no: 3, name: "SERVER_SHUTDOWN"},
|
|
133
|
+
{no: 4, name: "PARTICIPANT_REMOVED"},
|
|
134
|
+
{no: 5, name: "ROOM_DELETED"},
|
|
135
|
+
{no: 6, name: "STATE_MISMATCH"},
|
|
136
|
+
{no: 7, name: "JOIN_FAILURE"},
|
|
137
|
+
{no: 8, name: "MIGRATION"},
|
|
138
|
+
{no: 9, name: "SIGNAL_CLOSE"},
|
|
139
|
+
],
|
|
140
|
+
);
|
|
141
|
+
|
|
142
|
+
/**
|
|
143
|
+
* @generated from enum livekit.ReconnectReason
|
|
144
|
+
*/
|
|
145
|
+
export const ReconnectReason = proto3.makeEnum(
|
|
146
|
+
"livekit.ReconnectReason",
|
|
147
|
+
[
|
|
148
|
+
{no: 0, name: "RR_UNKNOWN"},
|
|
149
|
+
{no: 1, name: "RR_SIGNAL_DISCONNECTED"},
|
|
150
|
+
{no: 2, name: "RR_PUBLISHER_FAILED"},
|
|
151
|
+
{no: 3, name: "RR_SUBSCRIBER_FAILED"},
|
|
152
|
+
{no: 4, name: "RR_SWITCH_CANDIDATE"},
|
|
153
|
+
],
|
|
154
|
+
);
|
|
155
|
+
|
|
156
|
+
/**
|
|
157
|
+
* @generated from enum livekit.SubscriptionError
|
|
158
|
+
*/
|
|
159
|
+
export const SubscriptionError = proto3.makeEnum(
|
|
160
|
+
"livekit.SubscriptionError",
|
|
161
|
+
[
|
|
162
|
+
{no: 0, name: "SE_UNKNOWN"},
|
|
163
|
+
{no: 1, name: "SE_CODEC_UNSUPPORTED"},
|
|
164
|
+
{no: 2, name: "SE_TRACK_NOTFOUND"},
|
|
165
|
+
],
|
|
166
|
+
);
|
|
167
|
+
|
|
168
|
+
/**
|
|
169
|
+
* @generated from message livekit.Room
|
|
170
|
+
*/
|
|
171
|
+
export const Room = proto3.makeMessageType(
|
|
172
|
+
"livekit.Room",
|
|
173
|
+
() => [
|
|
174
|
+
{ no: 1, name: "sid", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
175
|
+
{ no: 2, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
176
|
+
{ no: 3, name: "empty_timeout", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
|
|
177
|
+
{ no: 14, name: "departure_timeout", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
|
|
178
|
+
{ no: 4, name: "max_participants", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
|
|
179
|
+
{ no: 5, name: "creation_time", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
|
|
180
|
+
{ no: 6, name: "turn_password", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
181
|
+
{ no: 7, name: "enabled_codecs", kind: "message", T: Codec, repeated: true },
|
|
182
|
+
{ no: 8, name: "metadata", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
183
|
+
{ no: 9, name: "num_participants", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
|
|
184
|
+
{ no: 11, name: "num_publishers", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
|
|
185
|
+
{ no: 10, name: "active_recording", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
|
|
186
|
+
{ no: 13, name: "version", kind: "message", T: TimedVersion },
|
|
187
|
+
],
|
|
188
|
+
);
|
|
189
|
+
|
|
190
|
+
/**
|
|
191
|
+
* @generated from message livekit.Codec
|
|
192
|
+
*/
|
|
193
|
+
export const Codec = proto3.makeMessageType(
|
|
194
|
+
"livekit.Codec",
|
|
195
|
+
() => [
|
|
196
|
+
{ no: 1, name: "mime", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
197
|
+
{ no: 2, name: "fmtp_line", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
198
|
+
],
|
|
199
|
+
);
|
|
200
|
+
|
|
201
|
+
/**
|
|
202
|
+
* @generated from message livekit.PlayoutDelay
|
|
203
|
+
*/
|
|
204
|
+
export const PlayoutDelay = proto3.makeMessageType(
|
|
205
|
+
"livekit.PlayoutDelay",
|
|
206
|
+
() => [
|
|
207
|
+
{ no: 1, name: "enabled", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
|
|
208
|
+
{ no: 2, name: "min", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
|
|
209
|
+
{ no: 3, name: "max", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
|
|
210
|
+
],
|
|
211
|
+
);
|
|
212
|
+
|
|
213
|
+
/**
|
|
214
|
+
* @generated from message livekit.ParticipantPermission
|
|
215
|
+
*/
|
|
216
|
+
export const ParticipantPermission = proto3.makeMessageType(
|
|
217
|
+
"livekit.ParticipantPermission",
|
|
218
|
+
() => [
|
|
219
|
+
{ no: 1, name: "can_subscribe", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
|
|
220
|
+
{ no: 2, name: "can_publish", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
|
|
221
|
+
{ no: 3, name: "can_publish_data", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
|
|
222
|
+
{ no: 9, name: "can_publish_sources", kind: "enum", T: proto3.getEnumType(TrackSource), repeated: true },
|
|
223
|
+
{ no: 7, name: "hidden", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
|
|
224
|
+
{ no: 8, name: "recorder", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
|
|
225
|
+
{ no: 10, name: "can_update_metadata", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
|
|
226
|
+
{ no: 11, name: "agent", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
|
|
227
|
+
],
|
|
228
|
+
);
|
|
229
|
+
|
|
230
|
+
/**
|
|
231
|
+
* @generated from message livekit.ParticipantInfo
|
|
232
|
+
*/
|
|
233
|
+
export const ParticipantInfo = proto3.makeMessageType(
|
|
234
|
+
"livekit.ParticipantInfo",
|
|
235
|
+
() => [
|
|
236
|
+
{ no: 1, name: "sid", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
237
|
+
{ no: 2, name: "identity", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
238
|
+
{ no: 3, name: "state", kind: "enum", T: proto3.getEnumType(ParticipantInfo_State) },
|
|
239
|
+
{ no: 4, name: "tracks", kind: "message", T: TrackInfo, repeated: true },
|
|
240
|
+
{ no: 5, name: "metadata", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
241
|
+
{ no: 6, name: "joined_at", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
|
|
242
|
+
{ no: 9, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
243
|
+
{ no: 10, name: "version", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
|
|
244
|
+
{ no: 11, name: "permission", kind: "message", T: ParticipantPermission },
|
|
245
|
+
{ no: 12, name: "region", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
246
|
+
{ no: 13, name: "is_publisher", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
|
|
247
|
+
{ no: 14, name: "kind", kind: "enum", T: proto3.getEnumType(ParticipantInfo_Kind) },
|
|
248
|
+
],
|
|
249
|
+
);
|
|
250
|
+
|
|
251
|
+
/**
|
|
252
|
+
* @generated from enum livekit.ParticipantInfo.State
|
|
253
|
+
*/
|
|
254
|
+
export const ParticipantInfo_State = proto3.makeEnum(
|
|
255
|
+
"livekit.ParticipantInfo.State",
|
|
256
|
+
[
|
|
257
|
+
{no: 0, name: "JOINING"},
|
|
258
|
+
{no: 1, name: "JOINED"},
|
|
259
|
+
{no: 2, name: "ACTIVE"},
|
|
260
|
+
{no: 3, name: "DISCONNECTED"},
|
|
261
|
+
],
|
|
262
|
+
);
|
|
263
|
+
|
|
264
|
+
/**
|
|
265
|
+
* @generated from enum livekit.ParticipantInfo.Kind
|
|
266
|
+
*/
|
|
267
|
+
export const ParticipantInfo_Kind = proto3.makeEnum(
|
|
268
|
+
"livekit.ParticipantInfo.Kind",
|
|
269
|
+
[
|
|
270
|
+
{no: 0, name: "STANDARD"},
|
|
271
|
+
{no: 1, name: "INGRESS"},
|
|
272
|
+
{no: 2, name: "EGRESS"},
|
|
273
|
+
{no: 3, name: "SIP"},
|
|
274
|
+
{no: 4, name: "AGENT"},
|
|
275
|
+
],
|
|
276
|
+
);
|
|
277
|
+
|
|
278
|
+
/**
|
|
279
|
+
* @generated from message livekit.Encryption
|
|
280
|
+
*/
|
|
281
|
+
export const Encryption = proto3.makeMessageType(
|
|
282
|
+
"livekit.Encryption",
|
|
283
|
+
[],
|
|
284
|
+
);
|
|
285
|
+
|
|
286
|
+
/**
|
|
287
|
+
* @generated from enum livekit.Encryption.Type
|
|
288
|
+
*/
|
|
289
|
+
export const Encryption_Type = proto3.makeEnum(
|
|
290
|
+
"livekit.Encryption.Type",
|
|
291
|
+
[
|
|
292
|
+
{no: 0, name: "NONE"},
|
|
293
|
+
{no: 1, name: "GCM"},
|
|
294
|
+
{no: 2, name: "CUSTOM"},
|
|
295
|
+
],
|
|
296
|
+
);
|
|
297
|
+
|
|
298
|
+
/**
|
|
299
|
+
* @generated from message livekit.SimulcastCodecInfo
|
|
300
|
+
*/
|
|
301
|
+
export const SimulcastCodecInfo = proto3.makeMessageType(
|
|
302
|
+
"livekit.SimulcastCodecInfo",
|
|
303
|
+
() => [
|
|
304
|
+
{ no: 1, name: "mime_type", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
305
|
+
{ no: 2, name: "mid", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
306
|
+
{ no: 3, name: "cid", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
307
|
+
{ no: 4, name: "layers", kind: "message", T: VideoLayer, repeated: true },
|
|
308
|
+
],
|
|
309
|
+
);
|
|
310
|
+
|
|
311
|
+
/**
|
|
312
|
+
* @generated from message livekit.TrackInfo
|
|
313
|
+
*/
|
|
314
|
+
export const TrackInfo = proto3.makeMessageType(
|
|
315
|
+
"livekit.TrackInfo",
|
|
316
|
+
() => [
|
|
317
|
+
{ no: 1, name: "sid", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
318
|
+
{ no: 2, name: "type", kind: "enum", T: proto3.getEnumType(TrackType) },
|
|
319
|
+
{ no: 3, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
320
|
+
{ no: 4, name: "muted", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
|
|
321
|
+
{ no: 5, name: "width", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
|
|
322
|
+
{ no: 6, name: "height", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
|
|
323
|
+
{ no: 7, name: "simulcast", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
|
|
324
|
+
{ no: 8, name: "disable_dtx", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
|
|
325
|
+
{ no: 9, name: "source", kind: "enum", T: proto3.getEnumType(TrackSource) },
|
|
326
|
+
{ no: 10, name: "layers", kind: "message", T: VideoLayer, repeated: true },
|
|
327
|
+
{ no: 11, name: "mime_type", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
328
|
+
{ no: 12, name: "mid", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
329
|
+
{ no: 13, name: "codecs", kind: "message", T: SimulcastCodecInfo, repeated: true },
|
|
330
|
+
{ no: 14, name: "stereo", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
|
|
331
|
+
{ no: 15, name: "disable_red", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
|
|
332
|
+
{ no: 16, name: "encryption", kind: "enum", T: proto3.getEnumType(Encryption_Type) },
|
|
333
|
+
{ no: 17, name: "stream", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
334
|
+
{ no: 18, name: "version", kind: "message", T: TimedVersion },
|
|
335
|
+
],
|
|
336
|
+
);
|
|
337
|
+
|
|
338
|
+
/**
|
|
339
|
+
* provide information about available spatial layers
|
|
340
|
+
*
|
|
341
|
+
* @generated from message livekit.VideoLayer
|
|
342
|
+
*/
|
|
343
|
+
export const VideoLayer = proto3.makeMessageType(
|
|
344
|
+
"livekit.VideoLayer",
|
|
345
|
+
() => [
|
|
346
|
+
{ no: 1, name: "quality", kind: "enum", T: proto3.getEnumType(VideoQuality) },
|
|
347
|
+
{ no: 2, name: "width", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
|
|
348
|
+
{ no: 3, name: "height", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
|
|
349
|
+
{ no: 4, name: "bitrate", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
|
|
350
|
+
{ no: 5, name: "ssrc", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
|
|
351
|
+
],
|
|
352
|
+
);
|
|
353
|
+
|
|
354
|
+
/**
|
|
355
|
+
* new DataPacket API
|
|
356
|
+
*
|
|
357
|
+
* @generated from message livekit.DataPacket
|
|
358
|
+
*/
|
|
359
|
+
export const DataPacket = proto3.makeMessageType(
|
|
360
|
+
"livekit.DataPacket",
|
|
361
|
+
() => [
|
|
362
|
+
{ no: 1, name: "kind", kind: "enum", T: proto3.getEnumType(DataPacket_Kind) },
|
|
363
|
+
{ no: 4, name: "participant_identity", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
364
|
+
{ no: 5, name: "destination_identities", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
|
|
365
|
+
{ no: 2, name: "user", kind: "message", T: UserPacket, oneof: "value" },
|
|
366
|
+
{ no: 3, name: "speaker", kind: "message", T: ActiveSpeakerUpdate, oneof: "value" },
|
|
367
|
+
{ no: 6, name: "sip_dtmf", kind: "message", T: SipDTMF, oneof: "value" },
|
|
368
|
+
],
|
|
369
|
+
);
|
|
370
|
+
|
|
371
|
+
/**
|
|
372
|
+
* @generated from enum livekit.DataPacket.Kind
|
|
373
|
+
*/
|
|
374
|
+
export const DataPacket_Kind = proto3.makeEnum(
|
|
375
|
+
"livekit.DataPacket.Kind",
|
|
376
|
+
[
|
|
377
|
+
{no: 0, name: "RELIABLE"},
|
|
378
|
+
{no: 1, name: "LOSSY"},
|
|
379
|
+
],
|
|
380
|
+
);
|
|
381
|
+
|
|
382
|
+
/**
|
|
383
|
+
* @generated from message livekit.ActiveSpeakerUpdate
|
|
384
|
+
*/
|
|
385
|
+
export const ActiveSpeakerUpdate = proto3.makeMessageType(
|
|
386
|
+
"livekit.ActiveSpeakerUpdate",
|
|
387
|
+
() => [
|
|
388
|
+
{ no: 1, name: "speakers", kind: "message", T: SpeakerInfo, repeated: true },
|
|
389
|
+
],
|
|
390
|
+
);
|
|
391
|
+
|
|
392
|
+
/**
|
|
393
|
+
* @generated from message livekit.SpeakerInfo
|
|
394
|
+
*/
|
|
395
|
+
export const SpeakerInfo = proto3.makeMessageType(
|
|
396
|
+
"livekit.SpeakerInfo",
|
|
397
|
+
() => [
|
|
398
|
+
{ no: 1, name: "sid", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
399
|
+
{ no: 2, name: "level", kind: "scalar", T: 2 /* ScalarType.FLOAT */ },
|
|
400
|
+
{ no: 3, name: "active", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
|
|
401
|
+
],
|
|
402
|
+
);
|
|
403
|
+
|
|
404
|
+
/**
|
|
405
|
+
* @generated from message livekit.UserPacket
|
|
406
|
+
*/
|
|
407
|
+
export const UserPacket = proto3.makeMessageType(
|
|
408
|
+
"livekit.UserPacket",
|
|
409
|
+
() => [
|
|
410
|
+
{ no: 1, name: "participant_sid", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
411
|
+
{ no: 5, name: "participant_identity", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
412
|
+
{ no: 2, name: "payload", kind: "scalar", T: 12 /* ScalarType.BYTES */ },
|
|
413
|
+
{ no: 3, name: "destination_sids", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
|
|
414
|
+
{ no: 6, name: "destination_identities", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
|
|
415
|
+
{ no: 4, name: "topic", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
416
|
+
],
|
|
417
|
+
);
|
|
418
|
+
|
|
419
|
+
/**
|
|
420
|
+
* @generated from message livekit.SipDTMF
|
|
421
|
+
*/
|
|
422
|
+
export const SipDTMF = proto3.makeMessageType(
|
|
423
|
+
"livekit.SipDTMF",
|
|
424
|
+
() => [
|
|
425
|
+
{ no: 3, name: "code", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
|
|
426
|
+
{ no: 4, name: "digit", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
427
|
+
],
|
|
428
|
+
);
|
|
429
|
+
|
|
430
|
+
/**
|
|
431
|
+
* @generated from message livekit.ParticipantTracks
|
|
432
|
+
*/
|
|
433
|
+
export const ParticipantTracks = proto3.makeMessageType(
|
|
434
|
+
"livekit.ParticipantTracks",
|
|
435
|
+
() => [
|
|
436
|
+
{ no: 1, name: "participant_sid", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
437
|
+
{ no: 2, name: "track_sids", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
|
|
438
|
+
],
|
|
439
|
+
);
|
|
440
|
+
|
|
441
|
+
/**
|
|
442
|
+
* details about the server
|
|
443
|
+
*
|
|
444
|
+
* @generated from message livekit.ServerInfo
|
|
445
|
+
*/
|
|
446
|
+
export const ServerInfo = proto3.makeMessageType(
|
|
447
|
+
"livekit.ServerInfo",
|
|
448
|
+
() => [
|
|
449
|
+
{ no: 1, name: "edition", kind: "enum", T: proto3.getEnumType(ServerInfo_Edition) },
|
|
450
|
+
{ no: 2, name: "version", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
451
|
+
{ no: 3, name: "protocol", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
|
|
452
|
+
{ no: 4, name: "region", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
453
|
+
{ no: 5, name: "node_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
454
|
+
{ no: 6, name: "debug_info", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
455
|
+
],
|
|
456
|
+
);
|
|
457
|
+
|
|
458
|
+
/**
|
|
459
|
+
* @generated from enum livekit.ServerInfo.Edition
|
|
460
|
+
*/
|
|
461
|
+
export const ServerInfo_Edition = proto3.makeEnum(
|
|
462
|
+
"livekit.ServerInfo.Edition",
|
|
463
|
+
[
|
|
464
|
+
{no: 0, name: "Standard"},
|
|
465
|
+
{no: 1, name: "Cloud"},
|
|
466
|
+
],
|
|
467
|
+
);
|
|
468
|
+
|
|
469
|
+
/**
|
|
470
|
+
* details about the client
|
|
471
|
+
*
|
|
472
|
+
* @generated from message livekit.ClientInfo
|
|
473
|
+
*/
|
|
474
|
+
export const ClientInfo = proto3.makeMessageType(
|
|
475
|
+
"livekit.ClientInfo",
|
|
476
|
+
() => [
|
|
477
|
+
{ no: 1, name: "sdk", kind: "enum", T: proto3.getEnumType(ClientInfo_SDK) },
|
|
478
|
+
{ no: 2, name: "version", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
479
|
+
{ no: 3, name: "protocol", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
|
|
480
|
+
{ no: 4, name: "os", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
481
|
+
{ no: 5, name: "os_version", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
482
|
+
{ no: 6, name: "device_model", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
483
|
+
{ no: 7, name: "browser", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
484
|
+
{ no: 8, name: "browser_version", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
485
|
+
{ no: 9, name: "address", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
486
|
+
{ no: 10, name: "network", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
487
|
+
],
|
|
488
|
+
);
|
|
489
|
+
|
|
490
|
+
/**
|
|
491
|
+
* @generated from enum livekit.ClientInfo.SDK
|
|
492
|
+
*/
|
|
493
|
+
export const ClientInfo_SDK = proto3.makeEnum(
|
|
494
|
+
"livekit.ClientInfo.SDK",
|
|
495
|
+
[
|
|
496
|
+
{no: 0, name: "UNKNOWN"},
|
|
497
|
+
{no: 1, name: "JS"},
|
|
498
|
+
{no: 2, name: "SWIFT"},
|
|
499
|
+
{no: 3, name: "ANDROID"},
|
|
500
|
+
{no: 4, name: "FLUTTER"},
|
|
501
|
+
{no: 5, name: "GO"},
|
|
502
|
+
{no: 6, name: "UNITY"},
|
|
503
|
+
{no: 7, name: "REACT_NATIVE"},
|
|
504
|
+
{no: 8, name: "RUST"},
|
|
505
|
+
{no: 9, name: "PYTHON"},
|
|
506
|
+
{no: 10, name: "CPP"},
|
|
507
|
+
],
|
|
508
|
+
);
|
|
509
|
+
|
|
510
|
+
/**
|
|
511
|
+
* server provided client configuration
|
|
512
|
+
*
|
|
513
|
+
* @generated from message livekit.ClientConfiguration
|
|
514
|
+
*/
|
|
515
|
+
export const ClientConfiguration = proto3.makeMessageType(
|
|
516
|
+
"livekit.ClientConfiguration",
|
|
517
|
+
() => [
|
|
518
|
+
{ no: 1, name: "video", kind: "message", T: VideoConfiguration },
|
|
519
|
+
{ no: 2, name: "screen", kind: "message", T: VideoConfiguration },
|
|
520
|
+
{ no: 3, name: "resume_connection", kind: "enum", T: proto3.getEnumType(ClientConfigSetting) },
|
|
521
|
+
{ no: 4, name: "disabled_codecs", kind: "message", T: DisabledCodecs },
|
|
522
|
+
{ no: 5, name: "force_relay", kind: "enum", T: proto3.getEnumType(ClientConfigSetting) },
|
|
523
|
+
],
|
|
524
|
+
);
|
|
525
|
+
|
|
526
|
+
/**
|
|
527
|
+
* @generated from message livekit.VideoConfiguration
|
|
528
|
+
*/
|
|
529
|
+
export const VideoConfiguration = proto3.makeMessageType(
|
|
530
|
+
"livekit.VideoConfiguration",
|
|
531
|
+
() => [
|
|
532
|
+
{ no: 1, name: "hardware_encoder", kind: "enum", T: proto3.getEnumType(ClientConfigSetting) },
|
|
533
|
+
],
|
|
534
|
+
);
|
|
535
|
+
|
|
536
|
+
/**
|
|
537
|
+
* @generated from message livekit.DisabledCodecs
|
|
538
|
+
*/
|
|
539
|
+
export const DisabledCodecs = proto3.makeMessageType(
|
|
540
|
+
"livekit.DisabledCodecs",
|
|
541
|
+
() => [
|
|
542
|
+
{ no: 1, name: "codecs", kind: "message", T: Codec, repeated: true },
|
|
543
|
+
{ no: 2, name: "publish", kind: "message", T: Codec, repeated: true },
|
|
544
|
+
],
|
|
545
|
+
);
|
|
546
|
+
|
|
547
|
+
/**
|
|
548
|
+
* @generated from message livekit.RTPDrift
|
|
549
|
+
*/
|
|
550
|
+
export const RTPDrift = proto3.makeMessageType(
|
|
551
|
+
"livekit.RTPDrift",
|
|
552
|
+
() => [
|
|
553
|
+
{ no: 1, name: "start_time", kind: "message", T: Timestamp },
|
|
554
|
+
{ no: 2, name: "end_time", kind: "message", T: Timestamp },
|
|
555
|
+
{ no: 3, name: "duration", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ },
|
|
556
|
+
{ no: 4, name: "start_timestamp", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
|
|
557
|
+
{ no: 5, name: "end_timestamp", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
|
|
558
|
+
{ no: 6, name: "rtp_clock_ticks", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
|
|
559
|
+
{ no: 7, name: "drift_samples", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
|
|
560
|
+
{ no: 8, name: "drift_ms", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ },
|
|
561
|
+
{ no: 9, name: "clock_rate", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ },
|
|
562
|
+
],
|
|
563
|
+
);
|
|
564
|
+
|
|
565
|
+
/**
|
|
566
|
+
* @generated from message livekit.RTPStats
|
|
567
|
+
*/
|
|
568
|
+
export const RTPStats = proto3.makeMessageType(
|
|
569
|
+
"livekit.RTPStats",
|
|
570
|
+
() => [
|
|
571
|
+
{ no: 1, name: "start_time", kind: "message", T: Timestamp },
|
|
572
|
+
{ no: 2, name: "end_time", kind: "message", T: Timestamp },
|
|
573
|
+
{ no: 3, name: "duration", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ },
|
|
574
|
+
{ no: 4, name: "packets", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
|
|
575
|
+
{ no: 5, name: "packet_rate", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ },
|
|
576
|
+
{ no: 6, name: "bytes", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
|
|
577
|
+
{ no: 39, name: "header_bytes", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
|
|
578
|
+
{ no: 7, name: "bitrate", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ },
|
|
579
|
+
{ no: 8, name: "packets_lost", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
|
|
580
|
+
{ no: 9, name: "packet_loss_rate", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ },
|
|
581
|
+
{ no: 10, name: "packet_loss_percentage", kind: "scalar", T: 2 /* ScalarType.FLOAT */ },
|
|
582
|
+
{ no: 11, name: "packets_duplicate", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
|
|
583
|
+
{ no: 12, name: "packet_duplicate_rate", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ },
|
|
584
|
+
{ no: 13, name: "bytes_duplicate", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
|
|
585
|
+
{ no: 40, name: "header_bytes_duplicate", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
|
|
586
|
+
{ no: 14, name: "bitrate_duplicate", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ },
|
|
587
|
+
{ no: 15, name: "packets_padding", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
|
|
588
|
+
{ no: 16, name: "packet_padding_rate", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ },
|
|
589
|
+
{ no: 17, name: "bytes_padding", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
|
|
590
|
+
{ no: 41, name: "header_bytes_padding", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
|
|
591
|
+
{ no: 18, name: "bitrate_padding", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ },
|
|
592
|
+
{ no: 19, name: "packets_out_of_order", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
|
|
593
|
+
{ no: 20, name: "frames", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
|
|
594
|
+
{ no: 21, name: "frame_rate", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ },
|
|
595
|
+
{ no: 22, name: "jitter_current", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ },
|
|
596
|
+
{ no: 23, name: "jitter_max", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ },
|
|
597
|
+
{ no: 24, name: "gap_histogram", kind: "map", K: 5 /* ScalarType.INT32 */, V: {kind: "scalar", T: 13 /* ScalarType.UINT32 */} },
|
|
598
|
+
{ no: 25, name: "nacks", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
|
|
599
|
+
{ no: 37, name: "nack_acks", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
|
|
600
|
+
{ no: 26, name: "nack_misses", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
|
|
601
|
+
{ no: 38, name: "nack_repeated", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
|
|
602
|
+
{ no: 27, name: "plis", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
|
|
603
|
+
{ no: 28, name: "last_pli", kind: "message", T: Timestamp },
|
|
604
|
+
{ no: 29, name: "firs", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
|
|
605
|
+
{ no: 30, name: "last_fir", kind: "message", T: Timestamp },
|
|
606
|
+
{ no: 31, name: "rtt_current", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
|
|
607
|
+
{ no: 32, name: "rtt_max", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
|
|
608
|
+
{ no: 33, name: "key_frames", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
|
|
609
|
+
{ no: 34, name: "last_key_frame", kind: "message", T: Timestamp },
|
|
610
|
+
{ no: 35, name: "layer_lock_plis", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
|
|
611
|
+
{ no: 36, name: "last_layer_lock_pli", kind: "message", T: Timestamp },
|
|
612
|
+
{ no: 44, name: "packet_drift", kind: "message", T: RTPDrift },
|
|
613
|
+
{ no: 45, name: "report_drift", kind: "message", T: RTPDrift },
|
|
614
|
+
],
|
|
615
|
+
);
|
|
616
|
+
|
|
617
|
+
/**
|
|
618
|
+
* @generated from message livekit.TimedVersion
|
|
619
|
+
*/
|
|
620
|
+
export const TimedVersion = proto3.makeMessageType(
|
|
621
|
+
"livekit.TimedVersion",
|
|
622
|
+
() => [
|
|
623
|
+
{ no: 1, name: "unix_micro", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
|
|
624
|
+
{ no: 2, name: "ticks", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
|
|
625
|
+
],
|
|
626
|
+
);
|
|
627
|
+
|