livekit-server-sdk 2.1.0 → 2.1.2

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.
Files changed (36) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/dist/EgressClient.d.ts +1 -1
  3. package/dist/EgressClient.js +1 -1
  4. package/dist/EgressClient.js.map +1 -1
  5. package/dist/IngressClient.d.ts +1 -1
  6. package/dist/IngressClient.js +1 -1
  7. package/dist/IngressClient.js.map +1 -1
  8. package/dist/RoomServiceClient.d.ts +7 -4
  9. package/dist/RoomServiceClient.js +2 -3
  10. package/dist/RoomServiceClient.js.map +1 -1
  11. package/dist/WebhookReceiver.d.ts +2 -2
  12. package/dist/WebhookReceiver.js +1 -1
  13. package/dist/WebhookReceiver.js.map +1 -1
  14. package/dist/grants.d.ts +1 -1
  15. package/dist/grants.js +1 -1
  16. package/dist/grants.js.map +1 -1
  17. package/dist/index.d.ts +1 -3
  18. package/dist/index.js +1 -3
  19. package/dist/index.js.map +1 -1
  20. package/package.json +3 -4
  21. package/dist/proto/livekit_egress_pb.d.ts +0 -1650
  22. package/dist/proto/livekit_egress_pb.js +0 -1878
  23. package/dist/proto/livekit_egress_pb.js.map +0 -1
  24. package/dist/proto/livekit_ingress_pb.d.ts +0 -624
  25. package/dist/proto/livekit_ingress_pb.js +0 -824
  26. package/dist/proto/livekit_ingress_pb.js.map +0 -1
  27. package/dist/proto/livekit_models_pb.d.ts +0 -1349
  28. package/dist/proto/livekit_models_pb.js +0 -1829
  29. package/dist/proto/livekit_models_pb.js.map +0 -1
  30. package/dist/proto/livekit_room_pb.d.ts +0 -460
  31. package/dist/proto/livekit_room_pb.js +0 -695
  32. package/dist/proto/livekit_room_pb.js.map +0 -1
  33. package/dist/proto/livekit_webhook_pb.d.ts +0 -70
  34. package/dist/proto/livekit_webhook_pb.js +0 -76
  35. package/dist/proto/livekit_webhook_pb.js.map +0 -1
  36. package/generate-proto.sh +0 -8
@@ -1,1878 +0,0 @@
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, protoInt64 } from "@bufbuild/protobuf";
15
- import { AudioCodec, ImageCodec, VideoCodec } from "./livekit_models_pb.js";
16
- /**
17
- * @generated from enum livekit.EncodedFileType
18
- */
19
- export var EncodedFileType;
20
- (function (EncodedFileType) {
21
- /**
22
- * file type chosen based on codecs
23
- *
24
- * @generated from enum value: DEFAULT_FILETYPE = 0;
25
- */
26
- EncodedFileType[EncodedFileType["DEFAULT_FILETYPE"] = 0] = "DEFAULT_FILETYPE";
27
- /**
28
- * @generated from enum value: MP4 = 1;
29
- */
30
- EncodedFileType[EncodedFileType["MP4"] = 1] = "MP4";
31
- /**
32
- * @generated from enum value: OGG = 2;
33
- */
34
- EncodedFileType[EncodedFileType["OGG"] = 2] = "OGG";
35
- })(EncodedFileType || (EncodedFileType = {}));
36
- // Retrieve enum metadata with: proto3.getEnumType(EncodedFileType)
37
- proto3.util.setEnumType(EncodedFileType, "livekit.EncodedFileType", [
38
- { no: 0, name: "DEFAULT_FILETYPE" },
39
- { no: 1, name: "MP4" },
40
- { no: 2, name: "OGG" },
41
- ]);
42
- /**
43
- * @generated from enum livekit.SegmentedFileProtocol
44
- */
45
- export var SegmentedFileProtocol;
46
- (function (SegmentedFileProtocol) {
47
- /**
48
- * @generated from enum value: DEFAULT_SEGMENTED_FILE_PROTOCOL = 0;
49
- */
50
- SegmentedFileProtocol[SegmentedFileProtocol["DEFAULT_SEGMENTED_FILE_PROTOCOL"] = 0] = "DEFAULT_SEGMENTED_FILE_PROTOCOL";
51
- /**
52
- * @generated from enum value: HLS_PROTOCOL = 1;
53
- */
54
- SegmentedFileProtocol[SegmentedFileProtocol["HLS_PROTOCOL"] = 1] = "HLS_PROTOCOL";
55
- })(SegmentedFileProtocol || (SegmentedFileProtocol = {}));
56
- // Retrieve enum metadata with: proto3.getEnumType(SegmentedFileProtocol)
57
- proto3.util.setEnumType(SegmentedFileProtocol, "livekit.SegmentedFileProtocol", [
58
- { no: 0, name: "DEFAULT_SEGMENTED_FILE_PROTOCOL" },
59
- { no: 1, name: "HLS_PROTOCOL" },
60
- ]);
61
- /**
62
- * @generated from enum livekit.SegmentedFileSuffix
63
- */
64
- export var SegmentedFileSuffix;
65
- (function (SegmentedFileSuffix) {
66
- /**
67
- * @generated from enum value: INDEX = 0;
68
- */
69
- SegmentedFileSuffix[SegmentedFileSuffix["INDEX"] = 0] = "INDEX";
70
- /**
71
- * @generated from enum value: TIMESTAMP = 1;
72
- */
73
- SegmentedFileSuffix[SegmentedFileSuffix["TIMESTAMP"] = 1] = "TIMESTAMP";
74
- })(SegmentedFileSuffix || (SegmentedFileSuffix = {}));
75
- // Retrieve enum metadata with: proto3.getEnumType(SegmentedFileSuffix)
76
- proto3.util.setEnumType(SegmentedFileSuffix, "livekit.SegmentedFileSuffix", [
77
- { no: 0, name: "INDEX" },
78
- { no: 1, name: "TIMESTAMP" },
79
- ]);
80
- /**
81
- * @generated from enum livekit.ImageFileSuffix
82
- */
83
- export var ImageFileSuffix;
84
- (function (ImageFileSuffix) {
85
- /**
86
- * @generated from enum value: IMAGE_SUFFIX_INDEX = 0;
87
- */
88
- ImageFileSuffix[ImageFileSuffix["IMAGE_SUFFIX_INDEX"] = 0] = "IMAGE_SUFFIX_INDEX";
89
- /**
90
- * @generated from enum value: IMAGE_SUFFIX_TIMESTAMP = 1;
91
- */
92
- ImageFileSuffix[ImageFileSuffix["IMAGE_SUFFIX_TIMESTAMP"] = 1] = "IMAGE_SUFFIX_TIMESTAMP";
93
- })(ImageFileSuffix || (ImageFileSuffix = {}));
94
- // Retrieve enum metadata with: proto3.getEnumType(ImageFileSuffix)
95
- proto3.util.setEnumType(ImageFileSuffix, "livekit.ImageFileSuffix", [
96
- { no: 0, name: "IMAGE_SUFFIX_INDEX" },
97
- { no: 1, name: "IMAGE_SUFFIX_TIMESTAMP" },
98
- ]);
99
- /**
100
- * @generated from enum livekit.StreamProtocol
101
- */
102
- export var StreamProtocol;
103
- (function (StreamProtocol) {
104
- /**
105
- * protocol chosen based on urls
106
- *
107
- * @generated from enum value: DEFAULT_PROTOCOL = 0;
108
- */
109
- StreamProtocol[StreamProtocol["DEFAULT_PROTOCOL"] = 0] = "DEFAULT_PROTOCOL";
110
- /**
111
- * @generated from enum value: RTMP = 1;
112
- */
113
- StreamProtocol[StreamProtocol["RTMP"] = 1] = "RTMP";
114
- })(StreamProtocol || (StreamProtocol = {}));
115
- // Retrieve enum metadata with: proto3.getEnumType(StreamProtocol)
116
- proto3.util.setEnumType(StreamProtocol, "livekit.StreamProtocol", [
117
- { no: 0, name: "DEFAULT_PROTOCOL" },
118
- { no: 1, name: "RTMP" },
119
- ]);
120
- /**
121
- * @generated from enum livekit.EncodingOptionsPreset
122
- */
123
- export var EncodingOptionsPreset;
124
- (function (EncodingOptionsPreset) {
125
- /**
126
- * 1280x720, 30fps, 3000kpbs, H.264_MAIN / OPUS
127
- *
128
- * @generated from enum value: H264_720P_30 = 0;
129
- */
130
- EncodingOptionsPreset[EncodingOptionsPreset["H264_720P_30"] = 0] = "H264_720P_30";
131
- /**
132
- * 1280x720, 60fps, 4500kbps, H.264_MAIN / OPUS
133
- *
134
- * @generated from enum value: H264_720P_60 = 1;
135
- */
136
- EncodingOptionsPreset[EncodingOptionsPreset["H264_720P_60"] = 1] = "H264_720P_60";
137
- /**
138
- * 1920x1080, 30fps, 4500kbps, H.264_MAIN / OPUS
139
- *
140
- * @generated from enum value: H264_1080P_30 = 2;
141
- */
142
- EncodingOptionsPreset[EncodingOptionsPreset["H264_1080P_30"] = 2] = "H264_1080P_30";
143
- /**
144
- * 1920x1080, 60fps, 6000kbps, H.264_MAIN / OPUS
145
- *
146
- * @generated from enum value: H264_1080P_60 = 3;
147
- */
148
- EncodingOptionsPreset[EncodingOptionsPreset["H264_1080P_60"] = 3] = "H264_1080P_60";
149
- /**
150
- * 720x1280, 30fps, 3000kpbs, H.264_MAIN / OPUS
151
- *
152
- * @generated from enum value: PORTRAIT_H264_720P_30 = 4;
153
- */
154
- EncodingOptionsPreset[EncodingOptionsPreset["PORTRAIT_H264_720P_30"] = 4] = "PORTRAIT_H264_720P_30";
155
- /**
156
- * 720x1280, 60fps, 4500kbps, H.264_MAIN / OPUS
157
- *
158
- * @generated from enum value: PORTRAIT_H264_720P_60 = 5;
159
- */
160
- EncodingOptionsPreset[EncodingOptionsPreset["PORTRAIT_H264_720P_60"] = 5] = "PORTRAIT_H264_720P_60";
161
- /**
162
- * 1080x1920, 30fps, 4500kbps, H.264_MAIN / OPUS
163
- *
164
- * @generated from enum value: PORTRAIT_H264_1080P_30 = 6;
165
- */
166
- EncodingOptionsPreset[EncodingOptionsPreset["PORTRAIT_H264_1080P_30"] = 6] = "PORTRAIT_H264_1080P_30";
167
- /**
168
- * 1080x1920, 60fps, 6000kbps, H.264_MAIN / OPUS
169
- *
170
- * @generated from enum value: PORTRAIT_H264_1080P_60 = 7;
171
- */
172
- EncodingOptionsPreset[EncodingOptionsPreset["PORTRAIT_H264_1080P_60"] = 7] = "PORTRAIT_H264_1080P_60";
173
- })(EncodingOptionsPreset || (EncodingOptionsPreset = {}));
174
- // Retrieve enum metadata with: proto3.getEnumType(EncodingOptionsPreset)
175
- proto3.util.setEnumType(EncodingOptionsPreset, "livekit.EncodingOptionsPreset", [
176
- { no: 0, name: "H264_720P_30" },
177
- { no: 1, name: "H264_720P_60" },
178
- { no: 2, name: "H264_1080P_30" },
179
- { no: 3, name: "H264_1080P_60" },
180
- { no: 4, name: "PORTRAIT_H264_720P_30" },
181
- { no: 5, name: "PORTRAIT_H264_720P_60" },
182
- { no: 6, name: "PORTRAIT_H264_1080P_30" },
183
- { no: 7, name: "PORTRAIT_H264_1080P_60" },
184
- ]);
185
- /**
186
- * @generated from enum livekit.EgressStatus
187
- */
188
- export var EgressStatus;
189
- (function (EgressStatus) {
190
- /**
191
- * @generated from enum value: EGRESS_STARTING = 0;
192
- */
193
- EgressStatus[EgressStatus["EGRESS_STARTING"] = 0] = "EGRESS_STARTING";
194
- /**
195
- * @generated from enum value: EGRESS_ACTIVE = 1;
196
- */
197
- EgressStatus[EgressStatus["EGRESS_ACTIVE"] = 1] = "EGRESS_ACTIVE";
198
- /**
199
- * @generated from enum value: EGRESS_ENDING = 2;
200
- */
201
- EgressStatus[EgressStatus["EGRESS_ENDING"] = 2] = "EGRESS_ENDING";
202
- /**
203
- * @generated from enum value: EGRESS_COMPLETE = 3;
204
- */
205
- EgressStatus[EgressStatus["EGRESS_COMPLETE"] = 3] = "EGRESS_COMPLETE";
206
- /**
207
- * @generated from enum value: EGRESS_FAILED = 4;
208
- */
209
- EgressStatus[EgressStatus["EGRESS_FAILED"] = 4] = "EGRESS_FAILED";
210
- /**
211
- * @generated from enum value: EGRESS_ABORTED = 5;
212
- */
213
- EgressStatus[EgressStatus["EGRESS_ABORTED"] = 5] = "EGRESS_ABORTED";
214
- /**
215
- * @generated from enum value: EGRESS_LIMIT_REACHED = 6;
216
- */
217
- EgressStatus[EgressStatus["EGRESS_LIMIT_REACHED"] = 6] = "EGRESS_LIMIT_REACHED";
218
- })(EgressStatus || (EgressStatus = {}));
219
- // Retrieve enum metadata with: proto3.getEnumType(EgressStatus)
220
- proto3.util.setEnumType(EgressStatus, "livekit.EgressStatus", [
221
- { no: 0, name: "EGRESS_STARTING" },
222
- { no: 1, name: "EGRESS_ACTIVE" },
223
- { no: 2, name: "EGRESS_ENDING" },
224
- { no: 3, name: "EGRESS_COMPLETE" },
225
- { no: 4, name: "EGRESS_FAILED" },
226
- { no: 5, name: "EGRESS_ABORTED" },
227
- { no: 6, name: "EGRESS_LIMIT_REACHED" },
228
- ]);
229
- /**
230
- * composite using a web browser
231
- *
232
- * @generated from message livekit.RoomCompositeEgressRequest
233
- */
234
- export class RoomCompositeEgressRequest extends Message {
235
- constructor(data) {
236
- super();
237
- /**
238
- * required
239
- *
240
- * @generated from field: string room_name = 1;
241
- */
242
- this.roomName = "";
243
- /**
244
- * (optional)
245
- *
246
- * @generated from field: string layout = 2;
247
- */
248
- this.layout = "";
249
- /**
250
- * (default false)
251
- *
252
- * @generated from field: bool audio_only = 3;
253
- */
254
- this.audioOnly = false;
255
- /**
256
- * (default false)
257
- *
258
- * @generated from field: bool video_only = 4;
259
- */
260
- this.videoOnly = false;
261
- /**
262
- * template base url (default https://recorder.livekit.io)
263
- *
264
- * @generated from field: string custom_base_url = 5;
265
- */
266
- this.customBaseUrl = "";
267
- /**
268
- * deprecated (use _output fields)
269
- *
270
- * @generated from oneof livekit.RoomCompositeEgressRequest.output
271
- */
272
- this.output = { case: undefined };
273
- /**
274
- * @generated from oneof livekit.RoomCompositeEgressRequest.options
275
- */
276
- this.options = { case: undefined };
277
- /**
278
- * @generated from field: repeated livekit.EncodedFileOutput file_outputs = 11;
279
- */
280
- this.fileOutputs = [];
281
- /**
282
- * @generated from field: repeated livekit.StreamOutput stream_outputs = 12;
283
- */
284
- this.streamOutputs = [];
285
- /**
286
- * @generated from field: repeated livekit.SegmentedFileOutput segment_outputs = 13;
287
- */
288
- this.segmentOutputs = [];
289
- /**
290
- * @generated from field: repeated livekit.ImageOutput image_outputs = 14;
291
- */
292
- this.imageOutputs = [];
293
- proto3.util.initPartial(data, this);
294
- }
295
- static fromBinary(bytes, options) {
296
- return new RoomCompositeEgressRequest().fromBinary(bytes, options);
297
- }
298
- static fromJson(jsonValue, options) {
299
- return new RoomCompositeEgressRequest().fromJson(jsonValue, options);
300
- }
301
- static fromJsonString(jsonString, options) {
302
- return new RoomCompositeEgressRequest().fromJsonString(jsonString, options);
303
- }
304
- static equals(a, b) {
305
- return proto3.util.equals(RoomCompositeEgressRequest, a, b);
306
- }
307
- }
308
- RoomCompositeEgressRequest.runtime = proto3;
309
- RoomCompositeEgressRequest.typeName = "livekit.RoomCompositeEgressRequest";
310
- RoomCompositeEgressRequest.fields = proto3.util.newFieldList(() => [
311
- { no: 1, name: "room_name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
312
- { no: 2, name: "layout", kind: "scalar", T: 9 /* ScalarType.STRING */ },
313
- { no: 3, name: "audio_only", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
314
- { no: 4, name: "video_only", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
315
- { no: 5, name: "custom_base_url", kind: "scalar", T: 9 /* ScalarType.STRING */ },
316
- { no: 6, name: "file", kind: "message", T: EncodedFileOutput, oneof: "output" },
317
- { no: 7, name: "stream", kind: "message", T: StreamOutput, oneof: "output" },
318
- { no: 10, name: "segments", kind: "message", T: SegmentedFileOutput, oneof: "output" },
319
- { no: 8, name: "preset", kind: "enum", T: proto3.getEnumType(EncodingOptionsPreset), oneof: "options" },
320
- { no: 9, name: "advanced", kind: "message", T: EncodingOptions, oneof: "options" },
321
- { no: 11, name: "file_outputs", kind: "message", T: EncodedFileOutput, repeated: true },
322
- { no: 12, name: "stream_outputs", kind: "message", T: StreamOutput, repeated: true },
323
- { no: 13, name: "segment_outputs", kind: "message", T: SegmentedFileOutput, repeated: true },
324
- { no: 14, name: "image_outputs", kind: "message", T: ImageOutput, repeated: true },
325
- ]);
326
- /**
327
- * record any website
328
- *
329
- * @generated from message livekit.WebEgressRequest
330
- */
331
- export class WebEgressRequest extends Message {
332
- constructor(data) {
333
- super();
334
- /**
335
- * @generated from field: string url = 1;
336
- */
337
- this.url = "";
338
- /**
339
- * @generated from field: bool audio_only = 2;
340
- */
341
- this.audioOnly = false;
342
- /**
343
- * @generated from field: bool video_only = 3;
344
- */
345
- this.videoOnly = false;
346
- /**
347
- * @generated from field: bool await_start_signal = 12;
348
- */
349
- this.awaitStartSignal = false;
350
- /**
351
- * deprecated (use _output fields)
352
- *
353
- * @generated from oneof livekit.WebEgressRequest.output
354
- */
355
- this.output = { case: undefined };
356
- /**
357
- * @generated from oneof livekit.WebEgressRequest.options
358
- */
359
- this.options = { case: undefined };
360
- /**
361
- * @generated from field: repeated livekit.EncodedFileOutput file_outputs = 9;
362
- */
363
- this.fileOutputs = [];
364
- /**
365
- * @generated from field: repeated livekit.StreamOutput stream_outputs = 10;
366
- */
367
- this.streamOutputs = [];
368
- /**
369
- * @generated from field: repeated livekit.SegmentedFileOutput segment_outputs = 11;
370
- */
371
- this.segmentOutputs = [];
372
- /**
373
- * @generated from field: repeated livekit.ImageOutput image_outputs = 13;
374
- */
375
- this.imageOutputs = [];
376
- proto3.util.initPartial(data, this);
377
- }
378
- static fromBinary(bytes, options) {
379
- return new WebEgressRequest().fromBinary(bytes, options);
380
- }
381
- static fromJson(jsonValue, options) {
382
- return new WebEgressRequest().fromJson(jsonValue, options);
383
- }
384
- static fromJsonString(jsonString, options) {
385
- return new WebEgressRequest().fromJsonString(jsonString, options);
386
- }
387
- static equals(a, b) {
388
- return proto3.util.equals(WebEgressRequest, a, b);
389
- }
390
- }
391
- WebEgressRequest.runtime = proto3;
392
- WebEgressRequest.typeName = "livekit.WebEgressRequest";
393
- WebEgressRequest.fields = proto3.util.newFieldList(() => [
394
- { no: 1, name: "url", kind: "scalar", T: 9 /* ScalarType.STRING */ },
395
- { no: 2, name: "audio_only", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
396
- { no: 3, name: "video_only", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
397
- { no: 12, name: "await_start_signal", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
398
- { no: 4, name: "file", kind: "message", T: EncodedFileOutput, oneof: "output" },
399
- { no: 5, name: "stream", kind: "message", T: StreamOutput, oneof: "output" },
400
- { no: 6, name: "segments", kind: "message", T: SegmentedFileOutput, oneof: "output" },
401
- { no: 7, name: "preset", kind: "enum", T: proto3.getEnumType(EncodingOptionsPreset), oneof: "options" },
402
- { no: 8, name: "advanced", kind: "message", T: EncodingOptions, oneof: "options" },
403
- { no: 9, name: "file_outputs", kind: "message", T: EncodedFileOutput, repeated: true },
404
- { no: 10, name: "stream_outputs", kind: "message", T: StreamOutput, repeated: true },
405
- { no: 11, name: "segment_outputs", kind: "message", T: SegmentedFileOutput, repeated: true },
406
- { no: 13, name: "image_outputs", kind: "message", T: ImageOutput, repeated: true },
407
- ]);
408
- /**
409
- * record audio and video from a single participant
410
- *
411
- * @generated from message livekit.ParticipantEgressRequest
412
- */
413
- export class ParticipantEgressRequest extends Message {
414
- constructor(data) {
415
- super();
416
- /**
417
- * required
418
- *
419
- * @generated from field: string room_name = 1;
420
- */
421
- this.roomName = "";
422
- /**
423
- * required
424
- *
425
- * @generated from field: string identity = 2;
426
- */
427
- this.identity = "";
428
- /**
429
- * (default false)
430
- *
431
- * @generated from field: bool screen_share = 3;
432
- */
433
- this.screenShare = false;
434
- /**
435
- * @generated from oneof livekit.ParticipantEgressRequest.options
436
- */
437
- this.options = { case: undefined };
438
- /**
439
- * @generated from field: repeated livekit.EncodedFileOutput file_outputs = 6;
440
- */
441
- this.fileOutputs = [];
442
- /**
443
- * @generated from field: repeated livekit.StreamOutput stream_outputs = 7;
444
- */
445
- this.streamOutputs = [];
446
- /**
447
- * @generated from field: repeated livekit.SegmentedFileOutput segment_outputs = 8;
448
- */
449
- this.segmentOutputs = [];
450
- /**
451
- * @generated from field: repeated livekit.ImageOutput image_outputs = 9;
452
- */
453
- this.imageOutputs = [];
454
- proto3.util.initPartial(data, this);
455
- }
456
- static fromBinary(bytes, options) {
457
- return new ParticipantEgressRequest().fromBinary(bytes, options);
458
- }
459
- static fromJson(jsonValue, options) {
460
- return new ParticipantEgressRequest().fromJson(jsonValue, options);
461
- }
462
- static fromJsonString(jsonString, options) {
463
- return new ParticipantEgressRequest().fromJsonString(jsonString, options);
464
- }
465
- static equals(a, b) {
466
- return proto3.util.equals(ParticipantEgressRequest, a, b);
467
- }
468
- }
469
- ParticipantEgressRequest.runtime = proto3;
470
- ParticipantEgressRequest.typeName = "livekit.ParticipantEgressRequest";
471
- ParticipantEgressRequest.fields = proto3.util.newFieldList(() => [
472
- { no: 1, name: "room_name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
473
- { no: 2, name: "identity", kind: "scalar", T: 9 /* ScalarType.STRING */ },
474
- { no: 3, name: "screen_share", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
475
- { no: 4, name: "preset", kind: "enum", T: proto3.getEnumType(EncodingOptionsPreset), oneof: "options" },
476
- { no: 5, name: "advanced", kind: "message", T: EncodingOptions, oneof: "options" },
477
- { no: 6, name: "file_outputs", kind: "message", T: EncodedFileOutput, repeated: true },
478
- { no: 7, name: "stream_outputs", kind: "message", T: StreamOutput, repeated: true },
479
- { no: 8, name: "segment_outputs", kind: "message", T: SegmentedFileOutput, repeated: true },
480
- { no: 9, name: "image_outputs", kind: "message", T: ImageOutput, repeated: true },
481
- ]);
482
- /**
483
- * containerize up to one audio and one video track
484
- *
485
- * @generated from message livekit.TrackCompositeEgressRequest
486
- */
487
- export class TrackCompositeEgressRequest extends Message {
488
- constructor(data) {
489
- super();
490
- /**
491
- * required
492
- *
493
- * @generated from field: string room_name = 1;
494
- */
495
- this.roomName = "";
496
- /**
497
- * (optional)
498
- *
499
- * @generated from field: string audio_track_id = 2;
500
- */
501
- this.audioTrackId = "";
502
- /**
503
- * (optional)
504
- *
505
- * @generated from field: string video_track_id = 3;
506
- */
507
- this.videoTrackId = "";
508
- /**
509
- * deprecated (use _output fields)
510
- *
511
- * @generated from oneof livekit.TrackCompositeEgressRequest.output
512
- */
513
- this.output = { case: undefined };
514
- /**
515
- * @generated from oneof livekit.TrackCompositeEgressRequest.options
516
- */
517
- this.options = { case: undefined };
518
- /**
519
- * @generated from field: repeated livekit.EncodedFileOutput file_outputs = 11;
520
- */
521
- this.fileOutputs = [];
522
- /**
523
- * @generated from field: repeated livekit.StreamOutput stream_outputs = 12;
524
- */
525
- this.streamOutputs = [];
526
- /**
527
- * @generated from field: repeated livekit.SegmentedFileOutput segment_outputs = 13;
528
- */
529
- this.segmentOutputs = [];
530
- /**
531
- * @generated from field: repeated livekit.ImageOutput image_outputs = 14;
532
- */
533
- this.imageOutputs = [];
534
- proto3.util.initPartial(data, this);
535
- }
536
- static fromBinary(bytes, options) {
537
- return new TrackCompositeEgressRequest().fromBinary(bytes, options);
538
- }
539
- static fromJson(jsonValue, options) {
540
- return new TrackCompositeEgressRequest().fromJson(jsonValue, options);
541
- }
542
- static fromJsonString(jsonString, options) {
543
- return new TrackCompositeEgressRequest().fromJsonString(jsonString, options);
544
- }
545
- static equals(a, b) {
546
- return proto3.util.equals(TrackCompositeEgressRequest, a, b);
547
- }
548
- }
549
- TrackCompositeEgressRequest.runtime = proto3;
550
- TrackCompositeEgressRequest.typeName = "livekit.TrackCompositeEgressRequest";
551
- TrackCompositeEgressRequest.fields = proto3.util.newFieldList(() => [
552
- { no: 1, name: "room_name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
553
- { no: 2, name: "audio_track_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
554
- { no: 3, name: "video_track_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
555
- { no: 4, name: "file", kind: "message", T: EncodedFileOutput, oneof: "output" },
556
- { no: 5, name: "stream", kind: "message", T: StreamOutput, oneof: "output" },
557
- { no: 8, name: "segments", kind: "message", T: SegmentedFileOutput, oneof: "output" },
558
- { no: 6, name: "preset", kind: "enum", T: proto3.getEnumType(EncodingOptionsPreset), oneof: "options" },
559
- { no: 7, name: "advanced", kind: "message", T: EncodingOptions, oneof: "options" },
560
- { no: 11, name: "file_outputs", kind: "message", T: EncodedFileOutput, repeated: true },
561
- { no: 12, name: "stream_outputs", kind: "message", T: StreamOutput, repeated: true },
562
- { no: 13, name: "segment_outputs", kind: "message", T: SegmentedFileOutput, repeated: true },
563
- { no: 14, name: "image_outputs", kind: "message", T: ImageOutput, repeated: true },
564
- ]);
565
- /**
566
- * record tracks individually, without transcoding
567
- *
568
- * @generated from message livekit.TrackEgressRequest
569
- */
570
- export class TrackEgressRequest extends Message {
571
- constructor(data) {
572
- super();
573
- /**
574
- * required
575
- *
576
- * @generated from field: string room_name = 1;
577
- */
578
- this.roomName = "";
579
- /**
580
- * required
581
- *
582
- * @generated from field: string track_id = 2;
583
- */
584
- this.trackId = "";
585
- /**
586
- * required
587
- *
588
- * @generated from oneof livekit.TrackEgressRequest.output
589
- */
590
- this.output = { case: undefined };
591
- proto3.util.initPartial(data, this);
592
- }
593
- static fromBinary(bytes, options) {
594
- return new TrackEgressRequest().fromBinary(bytes, options);
595
- }
596
- static fromJson(jsonValue, options) {
597
- return new TrackEgressRequest().fromJson(jsonValue, options);
598
- }
599
- static fromJsonString(jsonString, options) {
600
- return new TrackEgressRequest().fromJsonString(jsonString, options);
601
- }
602
- static equals(a, b) {
603
- return proto3.util.equals(TrackEgressRequest, a, b);
604
- }
605
- }
606
- TrackEgressRequest.runtime = proto3;
607
- TrackEgressRequest.typeName = "livekit.TrackEgressRequest";
608
- TrackEgressRequest.fields = proto3.util.newFieldList(() => [
609
- { no: 1, name: "room_name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
610
- { no: 2, name: "track_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
611
- { no: 3, name: "file", kind: "message", T: DirectFileOutput, oneof: "output" },
612
- { no: 4, name: "websocket_url", kind: "scalar", T: 9 /* ScalarType.STRING */, oneof: "output" },
613
- ]);
614
- /**
615
- * @generated from message livekit.EncodedFileOutput
616
- */
617
- export class EncodedFileOutput extends Message {
618
- constructor(data) {
619
- super();
620
- /**
621
- * (optional)
622
- *
623
- * @generated from field: livekit.EncodedFileType file_type = 1;
624
- */
625
- this.fileType = EncodedFileType.DEFAULT_FILETYPE;
626
- /**
627
- * see egress docs for templating (default {room_name}-{time})
628
- *
629
- * @generated from field: string filepath = 2;
630
- */
631
- this.filepath = "";
632
- /**
633
- * disable upload of manifest file (default false)
634
- *
635
- * @generated from field: bool disable_manifest = 6;
636
- */
637
- this.disableManifest = false;
638
- /**
639
- * @generated from oneof livekit.EncodedFileOutput.output
640
- */
641
- this.output = { case: undefined };
642
- proto3.util.initPartial(data, this);
643
- }
644
- static fromBinary(bytes, options) {
645
- return new EncodedFileOutput().fromBinary(bytes, options);
646
- }
647
- static fromJson(jsonValue, options) {
648
- return new EncodedFileOutput().fromJson(jsonValue, options);
649
- }
650
- static fromJsonString(jsonString, options) {
651
- return new EncodedFileOutput().fromJsonString(jsonString, options);
652
- }
653
- static equals(a, b) {
654
- return proto3.util.equals(EncodedFileOutput, a, b);
655
- }
656
- }
657
- EncodedFileOutput.runtime = proto3;
658
- EncodedFileOutput.typeName = "livekit.EncodedFileOutput";
659
- EncodedFileOutput.fields = proto3.util.newFieldList(() => [
660
- { no: 1, name: "file_type", kind: "enum", T: proto3.getEnumType(EncodedFileType) },
661
- { no: 2, name: "filepath", kind: "scalar", T: 9 /* ScalarType.STRING */ },
662
- { no: 6, name: "disable_manifest", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
663
- { no: 3, name: "s3", kind: "message", T: S3Upload, oneof: "output" },
664
- { no: 4, name: "gcp", kind: "message", T: GCPUpload, oneof: "output" },
665
- { no: 5, name: "azure", kind: "message", T: AzureBlobUpload, oneof: "output" },
666
- { no: 7, name: "aliOSS", kind: "message", T: AliOSSUpload, oneof: "output" },
667
- ]);
668
- /**
669
- * Used to generate HLS segments or other kind of segmented output
670
- *
671
- * @generated from message livekit.SegmentedFileOutput
672
- */
673
- export class SegmentedFileOutput extends Message {
674
- constructor(data) {
675
- super();
676
- /**
677
- * (optional)
678
- *
679
- * @generated from field: livekit.SegmentedFileProtocol protocol = 1;
680
- */
681
- this.protocol = SegmentedFileProtocol.DEFAULT_SEGMENTED_FILE_PROTOCOL;
682
- /**
683
- * (optional)
684
- *
685
- * @generated from field: string filename_prefix = 2;
686
- */
687
- this.filenamePrefix = "";
688
- /**
689
- * (optional)
690
- *
691
- * @generated from field: string playlist_name = 3;
692
- */
693
- this.playlistName = "";
694
- /**
695
- * (optional, disabled if not provided). Path of a live playlist
696
- *
697
- * @generated from field: string live_playlist_name = 11;
698
- */
699
- this.livePlaylistName = "";
700
- /**
701
- * in seconds (optional)
702
- *
703
- * @generated from field: uint32 segment_duration = 4;
704
- */
705
- this.segmentDuration = 0;
706
- /**
707
- * (optional, default INDEX)
708
- *
709
- * @generated from field: livekit.SegmentedFileSuffix filename_suffix = 10;
710
- */
711
- this.filenameSuffix = SegmentedFileSuffix.INDEX;
712
- /**
713
- * disable upload of manifest file (default false)
714
- *
715
- * @generated from field: bool disable_manifest = 8;
716
- */
717
- this.disableManifest = false;
718
- /**
719
- * required
720
- *
721
- * @generated from oneof livekit.SegmentedFileOutput.output
722
- */
723
- this.output = { case: undefined };
724
- proto3.util.initPartial(data, this);
725
- }
726
- static fromBinary(bytes, options) {
727
- return new SegmentedFileOutput().fromBinary(bytes, options);
728
- }
729
- static fromJson(jsonValue, options) {
730
- return new SegmentedFileOutput().fromJson(jsonValue, options);
731
- }
732
- static fromJsonString(jsonString, options) {
733
- return new SegmentedFileOutput().fromJsonString(jsonString, options);
734
- }
735
- static equals(a, b) {
736
- return proto3.util.equals(SegmentedFileOutput, a, b);
737
- }
738
- }
739
- SegmentedFileOutput.runtime = proto3;
740
- SegmentedFileOutput.typeName = "livekit.SegmentedFileOutput";
741
- SegmentedFileOutput.fields = proto3.util.newFieldList(() => [
742
- { no: 1, name: "protocol", kind: "enum", T: proto3.getEnumType(SegmentedFileProtocol) },
743
- { no: 2, name: "filename_prefix", kind: "scalar", T: 9 /* ScalarType.STRING */ },
744
- { no: 3, name: "playlist_name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
745
- { no: 11, name: "live_playlist_name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
746
- { no: 4, name: "segment_duration", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
747
- { no: 10, name: "filename_suffix", kind: "enum", T: proto3.getEnumType(SegmentedFileSuffix) },
748
- { no: 8, name: "disable_manifest", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
749
- { no: 5, name: "s3", kind: "message", T: S3Upload, oneof: "output" },
750
- { no: 6, name: "gcp", kind: "message", T: GCPUpload, oneof: "output" },
751
- { no: 7, name: "azure", kind: "message", T: AzureBlobUpload, oneof: "output" },
752
- { no: 9, name: "aliOSS", kind: "message", T: AliOSSUpload, oneof: "output" },
753
- ]);
754
- /**
755
- * @generated from message livekit.DirectFileOutput
756
- */
757
- export class DirectFileOutput extends Message {
758
- constructor(data) {
759
- super();
760
- /**
761
- * see egress docs for templating (default {track_id}-{time})
762
- *
763
- * @generated from field: string filepath = 1;
764
- */
765
- this.filepath = "";
766
- /**
767
- * disable upload of manifest file (default false)
768
- *
769
- * @generated from field: bool disable_manifest = 5;
770
- */
771
- this.disableManifest = false;
772
- /**
773
- * @generated from oneof livekit.DirectFileOutput.output
774
- */
775
- this.output = { case: undefined };
776
- proto3.util.initPartial(data, this);
777
- }
778
- static fromBinary(bytes, options) {
779
- return new DirectFileOutput().fromBinary(bytes, options);
780
- }
781
- static fromJson(jsonValue, options) {
782
- return new DirectFileOutput().fromJson(jsonValue, options);
783
- }
784
- static fromJsonString(jsonString, options) {
785
- return new DirectFileOutput().fromJsonString(jsonString, options);
786
- }
787
- static equals(a, b) {
788
- return proto3.util.equals(DirectFileOutput, a, b);
789
- }
790
- }
791
- DirectFileOutput.runtime = proto3;
792
- DirectFileOutput.typeName = "livekit.DirectFileOutput";
793
- DirectFileOutput.fields = proto3.util.newFieldList(() => [
794
- { no: 1, name: "filepath", kind: "scalar", T: 9 /* ScalarType.STRING */ },
795
- { no: 5, name: "disable_manifest", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
796
- { no: 2, name: "s3", kind: "message", T: S3Upload, oneof: "output" },
797
- { no: 3, name: "gcp", kind: "message", T: GCPUpload, oneof: "output" },
798
- { no: 4, name: "azure", kind: "message", T: AzureBlobUpload, oneof: "output" },
799
- { no: 6, name: "aliOSS", kind: "message", T: AliOSSUpload, oneof: "output" },
800
- ]);
801
- /**
802
- * @generated from message livekit.ImageOutput
803
- */
804
- export class ImageOutput extends Message {
805
- constructor(data) {
806
- super();
807
- /**
808
- * in seconds (required)
809
- *
810
- * @generated from field: uint32 capture_interval = 1;
811
- */
812
- this.captureInterval = 0;
813
- /**
814
- * (optional, defaults to track width)
815
- *
816
- * @generated from field: int32 width = 2;
817
- */
818
- this.width = 0;
819
- /**
820
- * (optional, defaults to track height)
821
- *
822
- * @generated from field: int32 height = 3;
823
- */
824
- this.height = 0;
825
- /**
826
- * (optional)
827
- *
828
- * @generated from field: string filename_prefix = 4;
829
- */
830
- this.filenamePrefix = "";
831
- /**
832
- * (optional, default INDEX)
833
- *
834
- * @generated from field: livekit.ImageFileSuffix filename_suffix = 5;
835
- */
836
- this.filenameSuffix = ImageFileSuffix.IMAGE_SUFFIX_INDEX;
837
- /**
838
- * (optional)
839
- *
840
- * @generated from field: livekit.ImageCodec image_codec = 6;
841
- */
842
- this.imageCodec = ImageCodec.IC_DEFAULT;
843
- /**
844
- * disable upload of manifest file (default false)
845
- *
846
- * @generated from field: bool disable_manifest = 7;
847
- */
848
- this.disableManifest = false;
849
- /**
850
- * required
851
- *
852
- * @generated from oneof livekit.ImageOutput.output
853
- */
854
- this.output = { case: undefined };
855
- proto3.util.initPartial(data, this);
856
- }
857
- static fromBinary(bytes, options) {
858
- return new ImageOutput().fromBinary(bytes, options);
859
- }
860
- static fromJson(jsonValue, options) {
861
- return new ImageOutput().fromJson(jsonValue, options);
862
- }
863
- static fromJsonString(jsonString, options) {
864
- return new ImageOutput().fromJsonString(jsonString, options);
865
- }
866
- static equals(a, b) {
867
- return proto3.util.equals(ImageOutput, a, b);
868
- }
869
- }
870
- ImageOutput.runtime = proto3;
871
- ImageOutput.typeName = "livekit.ImageOutput";
872
- ImageOutput.fields = proto3.util.newFieldList(() => [
873
- { no: 1, name: "capture_interval", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
874
- { no: 2, name: "width", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
875
- { no: 3, name: "height", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
876
- { no: 4, name: "filename_prefix", kind: "scalar", T: 9 /* ScalarType.STRING */ },
877
- { no: 5, name: "filename_suffix", kind: "enum", T: proto3.getEnumType(ImageFileSuffix) },
878
- { no: 6, name: "image_codec", kind: "enum", T: proto3.getEnumType(ImageCodec) },
879
- { no: 7, name: "disable_manifest", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
880
- { no: 8, name: "s3", kind: "message", T: S3Upload, oneof: "output" },
881
- { no: 9, name: "gcp", kind: "message", T: GCPUpload, oneof: "output" },
882
- { no: 10, name: "azure", kind: "message", T: AzureBlobUpload, oneof: "output" },
883
- { no: 11, name: "aliOSS", kind: "message", T: AliOSSUpload, oneof: "output" },
884
- ]);
885
- /**
886
- * @generated from message livekit.S3Upload
887
- */
888
- export class S3Upload extends Message {
889
- constructor(data) {
890
- super();
891
- /**
892
- * @generated from field: string access_key = 1;
893
- */
894
- this.accessKey = "";
895
- /**
896
- * @generated from field: string secret = 2;
897
- */
898
- this.secret = "";
899
- /**
900
- * @generated from field: string region = 3;
901
- */
902
- this.region = "";
903
- /**
904
- * @generated from field: string endpoint = 4;
905
- */
906
- this.endpoint = "";
907
- /**
908
- * @generated from field: string bucket = 5;
909
- */
910
- this.bucket = "";
911
- /**
912
- * @generated from field: bool force_path_style = 6;
913
- */
914
- this.forcePathStyle = false;
915
- /**
916
- * @generated from field: map<string, string> metadata = 7;
917
- */
918
- this.metadata = {};
919
- /**
920
- * @generated from field: string tagging = 8;
921
- */
922
- this.tagging = "";
923
- /**
924
- * Content-Disposition header
925
- *
926
- * @generated from field: string content_disposition = 9;
927
- */
928
- this.contentDisposition = "";
929
- proto3.util.initPartial(data, this);
930
- }
931
- static fromBinary(bytes, options) {
932
- return new S3Upload().fromBinary(bytes, options);
933
- }
934
- static fromJson(jsonValue, options) {
935
- return new S3Upload().fromJson(jsonValue, options);
936
- }
937
- static fromJsonString(jsonString, options) {
938
- return new S3Upload().fromJsonString(jsonString, options);
939
- }
940
- static equals(a, b) {
941
- return proto3.util.equals(S3Upload, a, b);
942
- }
943
- }
944
- S3Upload.runtime = proto3;
945
- S3Upload.typeName = "livekit.S3Upload";
946
- S3Upload.fields = proto3.util.newFieldList(() => [
947
- { no: 1, name: "access_key", kind: "scalar", T: 9 /* ScalarType.STRING */ },
948
- { no: 2, name: "secret", kind: "scalar", T: 9 /* ScalarType.STRING */ },
949
- { no: 3, name: "region", kind: "scalar", T: 9 /* ScalarType.STRING */ },
950
- { no: 4, name: "endpoint", kind: "scalar", T: 9 /* ScalarType.STRING */ },
951
- { no: 5, name: "bucket", kind: "scalar", T: 9 /* ScalarType.STRING */ },
952
- { no: 6, name: "force_path_style", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
953
- { no: 7, name: "metadata", kind: "map", K: 9 /* ScalarType.STRING */, V: { kind: "scalar", T: 9 /* ScalarType.STRING */ } },
954
- { no: 8, name: "tagging", kind: "scalar", T: 9 /* ScalarType.STRING */ },
955
- { no: 9, name: "content_disposition", kind: "scalar", T: 9 /* ScalarType.STRING */ },
956
- ]);
957
- /**
958
- * @generated from message livekit.GCPUpload
959
- */
960
- export class GCPUpload extends Message {
961
- constructor(data) {
962
- super();
963
- /**
964
- * service account credentials serialized in JSON "credentials.json"
965
- *
966
- * @generated from field: string credentials = 1;
967
- */
968
- this.credentials = "";
969
- /**
970
- * @generated from field: string bucket = 2;
971
- */
972
- this.bucket = "";
973
- proto3.util.initPartial(data, this);
974
- }
975
- static fromBinary(bytes, options) {
976
- return new GCPUpload().fromBinary(bytes, options);
977
- }
978
- static fromJson(jsonValue, options) {
979
- return new GCPUpload().fromJson(jsonValue, options);
980
- }
981
- static fromJsonString(jsonString, options) {
982
- return new GCPUpload().fromJsonString(jsonString, options);
983
- }
984
- static equals(a, b) {
985
- return proto3.util.equals(GCPUpload, a, b);
986
- }
987
- }
988
- GCPUpload.runtime = proto3;
989
- GCPUpload.typeName = "livekit.GCPUpload";
990
- GCPUpload.fields = proto3.util.newFieldList(() => [
991
- { no: 1, name: "credentials", kind: "scalar", T: 9 /* ScalarType.STRING */ },
992
- { no: 2, name: "bucket", kind: "scalar", T: 9 /* ScalarType.STRING */ },
993
- ]);
994
- /**
995
- * @generated from message livekit.AzureBlobUpload
996
- */
997
- export class AzureBlobUpload extends Message {
998
- constructor(data) {
999
- super();
1000
- /**
1001
- * @generated from field: string account_name = 1;
1002
- */
1003
- this.accountName = "";
1004
- /**
1005
- * @generated from field: string account_key = 2;
1006
- */
1007
- this.accountKey = "";
1008
- /**
1009
- * @generated from field: string container_name = 3;
1010
- */
1011
- this.containerName = "";
1012
- proto3.util.initPartial(data, this);
1013
- }
1014
- static fromBinary(bytes, options) {
1015
- return new AzureBlobUpload().fromBinary(bytes, options);
1016
- }
1017
- static fromJson(jsonValue, options) {
1018
- return new AzureBlobUpload().fromJson(jsonValue, options);
1019
- }
1020
- static fromJsonString(jsonString, options) {
1021
- return new AzureBlobUpload().fromJsonString(jsonString, options);
1022
- }
1023
- static equals(a, b) {
1024
- return proto3.util.equals(AzureBlobUpload, a, b);
1025
- }
1026
- }
1027
- AzureBlobUpload.runtime = proto3;
1028
- AzureBlobUpload.typeName = "livekit.AzureBlobUpload";
1029
- AzureBlobUpload.fields = proto3.util.newFieldList(() => [
1030
- { no: 1, name: "account_name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1031
- { no: 2, name: "account_key", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1032
- { no: 3, name: "container_name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1033
- ]);
1034
- /**
1035
- * @generated from message livekit.AliOSSUpload
1036
- */
1037
- export class AliOSSUpload extends Message {
1038
- constructor(data) {
1039
- super();
1040
- /**
1041
- * @generated from field: string access_key = 1;
1042
- */
1043
- this.accessKey = "";
1044
- /**
1045
- * @generated from field: string secret = 2;
1046
- */
1047
- this.secret = "";
1048
- /**
1049
- * @generated from field: string region = 3;
1050
- */
1051
- this.region = "";
1052
- /**
1053
- * @generated from field: string endpoint = 4;
1054
- */
1055
- this.endpoint = "";
1056
- /**
1057
- * @generated from field: string bucket = 5;
1058
- */
1059
- this.bucket = "";
1060
- proto3.util.initPartial(data, this);
1061
- }
1062
- static fromBinary(bytes, options) {
1063
- return new AliOSSUpload().fromBinary(bytes, options);
1064
- }
1065
- static fromJson(jsonValue, options) {
1066
- return new AliOSSUpload().fromJson(jsonValue, options);
1067
- }
1068
- static fromJsonString(jsonString, options) {
1069
- return new AliOSSUpload().fromJsonString(jsonString, options);
1070
- }
1071
- static equals(a, b) {
1072
- return proto3.util.equals(AliOSSUpload, a, b);
1073
- }
1074
- }
1075
- AliOSSUpload.runtime = proto3;
1076
- AliOSSUpload.typeName = "livekit.AliOSSUpload";
1077
- AliOSSUpload.fields = proto3.util.newFieldList(() => [
1078
- { no: 1, name: "access_key", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1079
- { no: 2, name: "secret", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1080
- { no: 3, name: "region", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1081
- { no: 4, name: "endpoint", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1082
- { no: 5, name: "bucket", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1083
- ]);
1084
- /**
1085
- * @generated from message livekit.StreamOutput
1086
- */
1087
- export class StreamOutput extends Message {
1088
- constructor(data) {
1089
- super();
1090
- /**
1091
- * required
1092
- *
1093
- * @generated from field: livekit.StreamProtocol protocol = 1;
1094
- */
1095
- this.protocol = StreamProtocol.DEFAULT_PROTOCOL;
1096
- /**
1097
- * required
1098
- *
1099
- * @generated from field: repeated string urls = 2;
1100
- */
1101
- this.urls = [];
1102
- proto3.util.initPartial(data, this);
1103
- }
1104
- static fromBinary(bytes, options) {
1105
- return new StreamOutput().fromBinary(bytes, options);
1106
- }
1107
- static fromJson(jsonValue, options) {
1108
- return new StreamOutput().fromJson(jsonValue, options);
1109
- }
1110
- static fromJsonString(jsonString, options) {
1111
- return new StreamOutput().fromJsonString(jsonString, options);
1112
- }
1113
- static equals(a, b) {
1114
- return proto3.util.equals(StreamOutput, a, b);
1115
- }
1116
- }
1117
- StreamOutput.runtime = proto3;
1118
- StreamOutput.typeName = "livekit.StreamOutput";
1119
- StreamOutput.fields = proto3.util.newFieldList(() => [
1120
- { no: 1, name: "protocol", kind: "enum", T: proto3.getEnumType(StreamProtocol) },
1121
- { no: 2, name: "urls", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
1122
- ]);
1123
- /**
1124
- * @generated from message livekit.EncodingOptions
1125
- */
1126
- export class EncodingOptions extends Message {
1127
- constructor(data) {
1128
- super();
1129
- /**
1130
- * (default 1920)
1131
- *
1132
- * @generated from field: int32 width = 1;
1133
- */
1134
- this.width = 0;
1135
- /**
1136
- * (default 1080)
1137
- *
1138
- * @generated from field: int32 height = 2;
1139
- */
1140
- this.height = 0;
1141
- /**
1142
- * (default 24)
1143
- *
1144
- * @generated from field: int32 depth = 3;
1145
- */
1146
- this.depth = 0;
1147
- /**
1148
- * (default 30)
1149
- *
1150
- * @generated from field: int32 framerate = 4;
1151
- */
1152
- this.framerate = 0;
1153
- /**
1154
- * (default OPUS)
1155
- *
1156
- * @generated from field: livekit.AudioCodec audio_codec = 5;
1157
- */
1158
- this.audioCodec = AudioCodec.DEFAULT_AC;
1159
- /**
1160
- * (default 128)
1161
- *
1162
- * @generated from field: int32 audio_bitrate = 6;
1163
- */
1164
- this.audioBitrate = 0;
1165
- /**
1166
- * quality setting on audio encoder
1167
- *
1168
- * @generated from field: int32 audio_quality = 11;
1169
- */
1170
- this.audioQuality = 0;
1171
- /**
1172
- * (default 44100)
1173
- *
1174
- * @generated from field: int32 audio_frequency = 7;
1175
- */
1176
- this.audioFrequency = 0;
1177
- /**
1178
- * (default H264_MAIN)
1179
- *
1180
- * @generated from field: livekit.VideoCodec video_codec = 8;
1181
- */
1182
- this.videoCodec = VideoCodec.DEFAULT_VC;
1183
- /**
1184
- * (default 4500)
1185
- *
1186
- * @generated from field: int32 video_bitrate = 9;
1187
- */
1188
- this.videoBitrate = 0;
1189
- /**
1190
- * quality setting on video encoder
1191
- *
1192
- * @generated from field: int32 video_quality = 12;
1193
- */
1194
- this.videoQuality = 0;
1195
- /**
1196
- * in seconds (default 4s for streaming, segment duration for segmented output, encoder default for files)
1197
- *
1198
- * @generated from field: double key_frame_interval = 10;
1199
- */
1200
- this.keyFrameInterval = 0;
1201
- proto3.util.initPartial(data, this);
1202
- }
1203
- static fromBinary(bytes, options) {
1204
- return new EncodingOptions().fromBinary(bytes, options);
1205
- }
1206
- static fromJson(jsonValue, options) {
1207
- return new EncodingOptions().fromJson(jsonValue, options);
1208
- }
1209
- static fromJsonString(jsonString, options) {
1210
- return new EncodingOptions().fromJsonString(jsonString, options);
1211
- }
1212
- static equals(a, b) {
1213
- return proto3.util.equals(EncodingOptions, a, b);
1214
- }
1215
- }
1216
- EncodingOptions.runtime = proto3;
1217
- EncodingOptions.typeName = "livekit.EncodingOptions";
1218
- EncodingOptions.fields = proto3.util.newFieldList(() => [
1219
- { no: 1, name: "width", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
1220
- { no: 2, name: "height", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
1221
- { no: 3, name: "depth", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
1222
- { no: 4, name: "framerate", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
1223
- { no: 5, name: "audio_codec", kind: "enum", T: proto3.getEnumType(AudioCodec) },
1224
- { no: 6, name: "audio_bitrate", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
1225
- { no: 11, name: "audio_quality", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
1226
- { no: 7, name: "audio_frequency", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
1227
- { no: 8, name: "video_codec", kind: "enum", T: proto3.getEnumType(VideoCodec) },
1228
- { no: 9, name: "video_bitrate", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
1229
- { no: 12, name: "video_quality", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
1230
- { no: 10, name: "key_frame_interval", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ },
1231
- ]);
1232
- /**
1233
- * @generated from message livekit.UpdateLayoutRequest
1234
- */
1235
- export class UpdateLayoutRequest extends Message {
1236
- constructor(data) {
1237
- super();
1238
- /**
1239
- * @generated from field: string egress_id = 1;
1240
- */
1241
- this.egressId = "";
1242
- /**
1243
- * @generated from field: string layout = 2;
1244
- */
1245
- this.layout = "";
1246
- proto3.util.initPartial(data, this);
1247
- }
1248
- static fromBinary(bytes, options) {
1249
- return new UpdateLayoutRequest().fromBinary(bytes, options);
1250
- }
1251
- static fromJson(jsonValue, options) {
1252
- return new UpdateLayoutRequest().fromJson(jsonValue, options);
1253
- }
1254
- static fromJsonString(jsonString, options) {
1255
- return new UpdateLayoutRequest().fromJsonString(jsonString, options);
1256
- }
1257
- static equals(a, b) {
1258
- return proto3.util.equals(UpdateLayoutRequest, a, b);
1259
- }
1260
- }
1261
- UpdateLayoutRequest.runtime = proto3;
1262
- UpdateLayoutRequest.typeName = "livekit.UpdateLayoutRequest";
1263
- UpdateLayoutRequest.fields = proto3.util.newFieldList(() => [
1264
- { no: 1, name: "egress_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1265
- { no: 2, name: "layout", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1266
- ]);
1267
- /**
1268
- * @generated from message livekit.UpdateStreamRequest
1269
- */
1270
- export class UpdateStreamRequest extends Message {
1271
- constructor(data) {
1272
- super();
1273
- /**
1274
- * @generated from field: string egress_id = 1;
1275
- */
1276
- this.egressId = "";
1277
- /**
1278
- * @generated from field: repeated string add_output_urls = 2;
1279
- */
1280
- this.addOutputUrls = [];
1281
- /**
1282
- * @generated from field: repeated string remove_output_urls = 3;
1283
- */
1284
- this.removeOutputUrls = [];
1285
- proto3.util.initPartial(data, this);
1286
- }
1287
- static fromBinary(bytes, options) {
1288
- return new UpdateStreamRequest().fromBinary(bytes, options);
1289
- }
1290
- static fromJson(jsonValue, options) {
1291
- return new UpdateStreamRequest().fromJson(jsonValue, options);
1292
- }
1293
- static fromJsonString(jsonString, options) {
1294
- return new UpdateStreamRequest().fromJsonString(jsonString, options);
1295
- }
1296
- static equals(a, b) {
1297
- return proto3.util.equals(UpdateStreamRequest, a, b);
1298
- }
1299
- }
1300
- UpdateStreamRequest.runtime = proto3;
1301
- UpdateStreamRequest.typeName = "livekit.UpdateStreamRequest";
1302
- UpdateStreamRequest.fields = proto3.util.newFieldList(() => [
1303
- { no: 1, name: "egress_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1304
- { no: 2, name: "add_output_urls", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
1305
- { no: 3, name: "remove_output_urls", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
1306
- ]);
1307
- /**
1308
- * @generated from message livekit.ListEgressRequest
1309
- */
1310
- export class ListEgressRequest extends Message {
1311
- constructor(data) {
1312
- super();
1313
- /**
1314
- * (optional, filter by room name)
1315
- *
1316
- * @generated from field: string room_name = 1;
1317
- */
1318
- this.roomName = "";
1319
- /**
1320
- * (optional, filter by egress ID)
1321
- *
1322
- * @generated from field: string egress_id = 2;
1323
- */
1324
- this.egressId = "";
1325
- /**
1326
- * (optional, list active egress only)
1327
- *
1328
- * @generated from field: bool active = 3;
1329
- */
1330
- this.active = false;
1331
- proto3.util.initPartial(data, this);
1332
- }
1333
- static fromBinary(bytes, options) {
1334
- return new ListEgressRequest().fromBinary(bytes, options);
1335
- }
1336
- static fromJson(jsonValue, options) {
1337
- return new ListEgressRequest().fromJson(jsonValue, options);
1338
- }
1339
- static fromJsonString(jsonString, options) {
1340
- return new ListEgressRequest().fromJsonString(jsonString, options);
1341
- }
1342
- static equals(a, b) {
1343
- return proto3.util.equals(ListEgressRequest, a, b);
1344
- }
1345
- }
1346
- ListEgressRequest.runtime = proto3;
1347
- ListEgressRequest.typeName = "livekit.ListEgressRequest";
1348
- ListEgressRequest.fields = proto3.util.newFieldList(() => [
1349
- { no: 1, name: "room_name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1350
- { no: 2, name: "egress_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1351
- { no: 3, name: "active", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
1352
- ]);
1353
- /**
1354
- * @generated from message livekit.ListEgressResponse
1355
- */
1356
- export class ListEgressResponse extends Message {
1357
- constructor(data) {
1358
- super();
1359
- /**
1360
- * @generated from field: repeated livekit.EgressInfo items = 1;
1361
- */
1362
- this.items = [];
1363
- proto3.util.initPartial(data, this);
1364
- }
1365
- static fromBinary(bytes, options) {
1366
- return new ListEgressResponse().fromBinary(bytes, options);
1367
- }
1368
- static fromJson(jsonValue, options) {
1369
- return new ListEgressResponse().fromJson(jsonValue, options);
1370
- }
1371
- static fromJsonString(jsonString, options) {
1372
- return new ListEgressResponse().fromJsonString(jsonString, options);
1373
- }
1374
- static equals(a, b) {
1375
- return proto3.util.equals(ListEgressResponse, a, b);
1376
- }
1377
- }
1378
- ListEgressResponse.runtime = proto3;
1379
- ListEgressResponse.typeName = "livekit.ListEgressResponse";
1380
- ListEgressResponse.fields = proto3.util.newFieldList(() => [
1381
- { no: 1, name: "items", kind: "message", T: EgressInfo, repeated: true },
1382
- ]);
1383
- /**
1384
- * @generated from message livekit.StopEgressRequest
1385
- */
1386
- export class StopEgressRequest extends Message {
1387
- constructor(data) {
1388
- super();
1389
- /**
1390
- * @generated from field: string egress_id = 1;
1391
- */
1392
- this.egressId = "";
1393
- proto3.util.initPartial(data, this);
1394
- }
1395
- static fromBinary(bytes, options) {
1396
- return new StopEgressRequest().fromBinary(bytes, options);
1397
- }
1398
- static fromJson(jsonValue, options) {
1399
- return new StopEgressRequest().fromJson(jsonValue, options);
1400
- }
1401
- static fromJsonString(jsonString, options) {
1402
- return new StopEgressRequest().fromJsonString(jsonString, options);
1403
- }
1404
- static equals(a, b) {
1405
- return proto3.util.equals(StopEgressRequest, a, b);
1406
- }
1407
- }
1408
- StopEgressRequest.runtime = proto3;
1409
- StopEgressRequest.typeName = "livekit.StopEgressRequest";
1410
- StopEgressRequest.fields = proto3.util.newFieldList(() => [
1411
- { no: 1, name: "egress_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1412
- ]);
1413
- /**
1414
- * @generated from message livekit.EgressInfo
1415
- */
1416
- export class EgressInfo extends Message {
1417
- constructor(data) {
1418
- super();
1419
- /**
1420
- * @generated from field: string egress_id = 1;
1421
- */
1422
- this.egressId = "";
1423
- /**
1424
- * @generated from field: string room_id = 2;
1425
- */
1426
- this.roomId = "";
1427
- /**
1428
- * @generated from field: string room_name = 13;
1429
- */
1430
- this.roomName = "";
1431
- /**
1432
- * @generated from field: livekit.EgressStatus status = 3;
1433
- */
1434
- this.status = EgressStatus.EGRESS_STARTING;
1435
- /**
1436
- * @generated from field: int64 started_at = 10;
1437
- */
1438
- this.startedAt = protoInt64.zero;
1439
- /**
1440
- * @generated from field: int64 ended_at = 11;
1441
- */
1442
- this.endedAt = protoInt64.zero;
1443
- /**
1444
- * @generated from field: int64 updated_at = 18;
1445
- */
1446
- this.updatedAt = protoInt64.zero;
1447
- /**
1448
- * @generated from field: string error = 9;
1449
- */
1450
- this.error = "";
1451
- /**
1452
- * @generated from oneof livekit.EgressInfo.request
1453
- */
1454
- this.request = { case: undefined };
1455
- /**
1456
- * deprecated (use _result fields)
1457
- *
1458
- * @generated from oneof livekit.EgressInfo.result
1459
- */
1460
- this.result = { case: undefined };
1461
- /**
1462
- * @generated from field: repeated livekit.StreamInfo stream_results = 15;
1463
- */
1464
- this.streamResults = [];
1465
- /**
1466
- * @generated from field: repeated livekit.FileInfo file_results = 16;
1467
- */
1468
- this.fileResults = [];
1469
- /**
1470
- * @generated from field: repeated livekit.SegmentsInfo segment_results = 17;
1471
- */
1472
- this.segmentResults = [];
1473
- /**
1474
- * @generated from field: repeated livekit.ImagesInfo image_results = 20;
1475
- */
1476
- this.imageResults = [];
1477
- proto3.util.initPartial(data, this);
1478
- }
1479
- static fromBinary(bytes, options) {
1480
- return new EgressInfo().fromBinary(bytes, options);
1481
- }
1482
- static fromJson(jsonValue, options) {
1483
- return new EgressInfo().fromJson(jsonValue, options);
1484
- }
1485
- static fromJsonString(jsonString, options) {
1486
- return new EgressInfo().fromJsonString(jsonString, options);
1487
- }
1488
- static equals(a, b) {
1489
- return proto3.util.equals(EgressInfo, a, b);
1490
- }
1491
- }
1492
- EgressInfo.runtime = proto3;
1493
- EgressInfo.typeName = "livekit.EgressInfo";
1494
- EgressInfo.fields = proto3.util.newFieldList(() => [
1495
- { no: 1, name: "egress_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1496
- { no: 2, name: "room_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1497
- { no: 13, name: "room_name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1498
- { no: 3, name: "status", kind: "enum", T: proto3.getEnumType(EgressStatus) },
1499
- { no: 10, name: "started_at", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
1500
- { no: 11, name: "ended_at", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
1501
- { no: 18, name: "updated_at", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
1502
- { no: 9, name: "error", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1503
- { no: 4, name: "room_composite", kind: "message", T: RoomCompositeEgressRequest, oneof: "request" },
1504
- { no: 14, name: "web", kind: "message", T: WebEgressRequest, oneof: "request" },
1505
- { no: 19, name: "participant", kind: "message", T: ParticipantEgressRequest, oneof: "request" },
1506
- { no: 5, name: "track_composite", kind: "message", T: TrackCompositeEgressRequest, oneof: "request" },
1507
- { no: 6, name: "track", kind: "message", T: TrackEgressRequest, oneof: "request" },
1508
- { no: 7, name: "stream", kind: "message", T: StreamInfoList, oneof: "result" },
1509
- { no: 8, name: "file", kind: "message", T: FileInfo, oneof: "result" },
1510
- { no: 12, name: "segments", kind: "message", T: SegmentsInfo, oneof: "result" },
1511
- { no: 15, name: "stream_results", kind: "message", T: StreamInfo, repeated: true },
1512
- { no: 16, name: "file_results", kind: "message", T: FileInfo, repeated: true },
1513
- { no: 17, name: "segment_results", kind: "message", T: SegmentsInfo, repeated: true },
1514
- { no: 20, name: "image_results", kind: "message", T: ImagesInfo, repeated: true },
1515
- ]);
1516
- /**
1517
- * @generated from message livekit.StreamInfoList
1518
- * @deprecated
1519
- */
1520
- export class StreamInfoList extends Message {
1521
- constructor(data) {
1522
- super();
1523
- /**
1524
- * @generated from field: repeated livekit.StreamInfo info = 1;
1525
- */
1526
- this.info = [];
1527
- proto3.util.initPartial(data, this);
1528
- }
1529
- static fromBinary(bytes, options) {
1530
- return new StreamInfoList().fromBinary(bytes, options);
1531
- }
1532
- static fromJson(jsonValue, options) {
1533
- return new StreamInfoList().fromJson(jsonValue, options);
1534
- }
1535
- static fromJsonString(jsonString, options) {
1536
- return new StreamInfoList().fromJsonString(jsonString, options);
1537
- }
1538
- static equals(a, b) {
1539
- return proto3.util.equals(StreamInfoList, a, b);
1540
- }
1541
- }
1542
- StreamInfoList.runtime = proto3;
1543
- StreamInfoList.typeName = "livekit.StreamInfoList";
1544
- StreamInfoList.fields = proto3.util.newFieldList(() => [
1545
- { no: 1, name: "info", kind: "message", T: StreamInfo, repeated: true },
1546
- ]);
1547
- /**
1548
- * @generated from message livekit.StreamInfo
1549
- */
1550
- export class StreamInfo extends Message {
1551
- constructor(data) {
1552
- super();
1553
- /**
1554
- * @generated from field: string url = 1;
1555
- */
1556
- this.url = "";
1557
- /**
1558
- * @generated from field: int64 started_at = 2;
1559
- */
1560
- this.startedAt = protoInt64.zero;
1561
- /**
1562
- * @generated from field: int64 ended_at = 3;
1563
- */
1564
- this.endedAt = protoInt64.zero;
1565
- /**
1566
- * @generated from field: int64 duration = 4;
1567
- */
1568
- this.duration = protoInt64.zero;
1569
- /**
1570
- * @generated from field: livekit.StreamInfo.Status status = 5;
1571
- */
1572
- this.status = StreamInfo_Status.ACTIVE;
1573
- /**
1574
- * @generated from field: string error = 6;
1575
- */
1576
- this.error = "";
1577
- proto3.util.initPartial(data, this);
1578
- }
1579
- static fromBinary(bytes, options) {
1580
- return new StreamInfo().fromBinary(bytes, options);
1581
- }
1582
- static fromJson(jsonValue, options) {
1583
- return new StreamInfo().fromJson(jsonValue, options);
1584
- }
1585
- static fromJsonString(jsonString, options) {
1586
- return new StreamInfo().fromJsonString(jsonString, options);
1587
- }
1588
- static equals(a, b) {
1589
- return proto3.util.equals(StreamInfo, a, b);
1590
- }
1591
- }
1592
- StreamInfo.runtime = proto3;
1593
- StreamInfo.typeName = "livekit.StreamInfo";
1594
- StreamInfo.fields = proto3.util.newFieldList(() => [
1595
- { no: 1, name: "url", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1596
- { no: 2, name: "started_at", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
1597
- { no: 3, name: "ended_at", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
1598
- { no: 4, name: "duration", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
1599
- { no: 5, name: "status", kind: "enum", T: proto3.getEnumType(StreamInfo_Status) },
1600
- { no: 6, name: "error", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1601
- ]);
1602
- /**
1603
- * @generated from enum livekit.StreamInfo.Status
1604
- */
1605
- export var StreamInfo_Status;
1606
- (function (StreamInfo_Status) {
1607
- /**
1608
- * @generated from enum value: ACTIVE = 0;
1609
- */
1610
- StreamInfo_Status[StreamInfo_Status["ACTIVE"] = 0] = "ACTIVE";
1611
- /**
1612
- * @generated from enum value: FINISHED = 1;
1613
- */
1614
- StreamInfo_Status[StreamInfo_Status["FINISHED"] = 1] = "FINISHED";
1615
- /**
1616
- * @generated from enum value: FAILED = 2;
1617
- */
1618
- StreamInfo_Status[StreamInfo_Status["FAILED"] = 2] = "FAILED";
1619
- })(StreamInfo_Status || (StreamInfo_Status = {}));
1620
- // Retrieve enum metadata with: proto3.getEnumType(StreamInfo_Status)
1621
- proto3.util.setEnumType(StreamInfo_Status, "livekit.StreamInfo.Status", [
1622
- { no: 0, name: "ACTIVE" },
1623
- { no: 1, name: "FINISHED" },
1624
- { no: 2, name: "FAILED" },
1625
- ]);
1626
- /**
1627
- * @generated from message livekit.FileInfo
1628
- */
1629
- export class FileInfo extends Message {
1630
- constructor(data) {
1631
- super();
1632
- /**
1633
- * @generated from field: string filename = 1;
1634
- */
1635
- this.filename = "";
1636
- /**
1637
- * @generated from field: int64 started_at = 2;
1638
- */
1639
- this.startedAt = protoInt64.zero;
1640
- /**
1641
- * @generated from field: int64 ended_at = 3;
1642
- */
1643
- this.endedAt = protoInt64.zero;
1644
- /**
1645
- * @generated from field: int64 duration = 6;
1646
- */
1647
- this.duration = protoInt64.zero;
1648
- /**
1649
- * @generated from field: int64 size = 4;
1650
- */
1651
- this.size = protoInt64.zero;
1652
- /**
1653
- * @generated from field: string location = 5;
1654
- */
1655
- this.location = "";
1656
- proto3.util.initPartial(data, this);
1657
- }
1658
- static fromBinary(bytes, options) {
1659
- return new FileInfo().fromBinary(bytes, options);
1660
- }
1661
- static fromJson(jsonValue, options) {
1662
- return new FileInfo().fromJson(jsonValue, options);
1663
- }
1664
- static fromJsonString(jsonString, options) {
1665
- return new FileInfo().fromJsonString(jsonString, options);
1666
- }
1667
- static equals(a, b) {
1668
- return proto3.util.equals(FileInfo, a, b);
1669
- }
1670
- }
1671
- FileInfo.runtime = proto3;
1672
- FileInfo.typeName = "livekit.FileInfo";
1673
- FileInfo.fields = proto3.util.newFieldList(() => [
1674
- { no: 1, name: "filename", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1675
- { no: 2, name: "started_at", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
1676
- { no: 3, name: "ended_at", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
1677
- { no: 6, name: "duration", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
1678
- { no: 4, name: "size", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
1679
- { no: 5, name: "location", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1680
- ]);
1681
- /**
1682
- * @generated from message livekit.SegmentsInfo
1683
- */
1684
- export class SegmentsInfo extends Message {
1685
- constructor(data) {
1686
- super();
1687
- /**
1688
- * @generated from field: string playlist_name = 1;
1689
- */
1690
- this.playlistName = "";
1691
- /**
1692
- * @generated from field: string live_playlist_name = 8;
1693
- */
1694
- this.livePlaylistName = "";
1695
- /**
1696
- * @generated from field: int64 duration = 2;
1697
- */
1698
- this.duration = protoInt64.zero;
1699
- /**
1700
- * @generated from field: int64 size = 3;
1701
- */
1702
- this.size = protoInt64.zero;
1703
- /**
1704
- * @generated from field: string playlist_location = 4;
1705
- */
1706
- this.playlistLocation = "";
1707
- /**
1708
- * @generated from field: string live_playlist_location = 9;
1709
- */
1710
- this.livePlaylistLocation = "";
1711
- /**
1712
- * @generated from field: int64 segment_count = 5;
1713
- */
1714
- this.segmentCount = protoInt64.zero;
1715
- /**
1716
- * @generated from field: int64 started_at = 6;
1717
- */
1718
- this.startedAt = protoInt64.zero;
1719
- /**
1720
- * @generated from field: int64 ended_at = 7;
1721
- */
1722
- this.endedAt = protoInt64.zero;
1723
- proto3.util.initPartial(data, this);
1724
- }
1725
- static fromBinary(bytes, options) {
1726
- return new SegmentsInfo().fromBinary(bytes, options);
1727
- }
1728
- static fromJson(jsonValue, options) {
1729
- return new SegmentsInfo().fromJson(jsonValue, options);
1730
- }
1731
- static fromJsonString(jsonString, options) {
1732
- return new SegmentsInfo().fromJsonString(jsonString, options);
1733
- }
1734
- static equals(a, b) {
1735
- return proto3.util.equals(SegmentsInfo, a, b);
1736
- }
1737
- }
1738
- SegmentsInfo.runtime = proto3;
1739
- SegmentsInfo.typeName = "livekit.SegmentsInfo";
1740
- SegmentsInfo.fields = proto3.util.newFieldList(() => [
1741
- { no: 1, name: "playlist_name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1742
- { no: 8, name: "live_playlist_name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1743
- { no: 2, name: "duration", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
1744
- { no: 3, name: "size", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
1745
- { no: 4, name: "playlist_location", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1746
- { no: 9, name: "live_playlist_location", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1747
- { no: 5, name: "segment_count", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
1748
- { no: 6, name: "started_at", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
1749
- { no: 7, name: "ended_at", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
1750
- ]);
1751
- /**
1752
- * @generated from message livekit.ImagesInfo
1753
- */
1754
- export class ImagesInfo extends Message {
1755
- constructor(data) {
1756
- super();
1757
- /**
1758
- * @generated from field: int64 image_count = 1;
1759
- */
1760
- this.imageCount = protoInt64.zero;
1761
- /**
1762
- * @generated from field: int64 started_at = 2;
1763
- */
1764
- this.startedAt = protoInt64.zero;
1765
- /**
1766
- * @generated from field: int64 ended_at = 3;
1767
- */
1768
- this.endedAt = protoInt64.zero;
1769
- proto3.util.initPartial(data, this);
1770
- }
1771
- static fromBinary(bytes, options) {
1772
- return new ImagesInfo().fromBinary(bytes, options);
1773
- }
1774
- static fromJson(jsonValue, options) {
1775
- return new ImagesInfo().fromJson(jsonValue, options);
1776
- }
1777
- static fromJsonString(jsonString, options) {
1778
- return new ImagesInfo().fromJsonString(jsonString, options);
1779
- }
1780
- static equals(a, b) {
1781
- return proto3.util.equals(ImagesInfo, a, b);
1782
- }
1783
- }
1784
- ImagesInfo.runtime = proto3;
1785
- ImagesInfo.typeName = "livekit.ImagesInfo";
1786
- ImagesInfo.fields = proto3.util.newFieldList(() => [
1787
- { no: 1, name: "image_count", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
1788
- { no: 2, name: "started_at", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
1789
- { no: 3, name: "ended_at", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
1790
- ]);
1791
- /**
1792
- * @generated from message livekit.AutoParticipantEgress
1793
- */
1794
- export class AutoParticipantEgress extends Message {
1795
- constructor(data) {
1796
- super();
1797
- /**
1798
- * @generated from oneof livekit.AutoParticipantEgress.options
1799
- */
1800
- this.options = { case: undefined };
1801
- /**
1802
- * @generated from field: repeated livekit.EncodedFileOutput file_outputs = 3;
1803
- */
1804
- this.fileOutputs = [];
1805
- /**
1806
- * @generated from field: repeated livekit.SegmentedFileOutput segment_outputs = 4;
1807
- */
1808
- this.segmentOutputs = [];
1809
- proto3.util.initPartial(data, this);
1810
- }
1811
- static fromBinary(bytes, options) {
1812
- return new AutoParticipantEgress().fromBinary(bytes, options);
1813
- }
1814
- static fromJson(jsonValue, options) {
1815
- return new AutoParticipantEgress().fromJson(jsonValue, options);
1816
- }
1817
- static fromJsonString(jsonString, options) {
1818
- return new AutoParticipantEgress().fromJsonString(jsonString, options);
1819
- }
1820
- static equals(a, b) {
1821
- return proto3.util.equals(AutoParticipantEgress, a, b);
1822
- }
1823
- }
1824
- AutoParticipantEgress.runtime = proto3;
1825
- AutoParticipantEgress.typeName = "livekit.AutoParticipantEgress";
1826
- AutoParticipantEgress.fields = proto3.util.newFieldList(() => [
1827
- { no: 1, name: "preset", kind: "enum", T: proto3.getEnumType(EncodingOptionsPreset), oneof: "options" },
1828
- { no: 2, name: "advanced", kind: "message", T: EncodingOptions, oneof: "options" },
1829
- { no: 3, name: "file_outputs", kind: "message", T: EncodedFileOutput, repeated: true },
1830
- { no: 4, name: "segment_outputs", kind: "message", T: SegmentedFileOutput, repeated: true },
1831
- ]);
1832
- /**
1833
- * @generated from message livekit.AutoTrackEgress
1834
- */
1835
- export class AutoTrackEgress extends Message {
1836
- constructor(data) {
1837
- super();
1838
- /**
1839
- * see docs for templating (default {track_id}-{time})
1840
- *
1841
- * @generated from field: string filepath = 1;
1842
- */
1843
- this.filepath = "";
1844
- /**
1845
- * disables upload of json manifest file (default false)
1846
- *
1847
- * @generated from field: bool disable_manifest = 5;
1848
- */
1849
- this.disableManifest = false;
1850
- /**
1851
- * @generated from oneof livekit.AutoTrackEgress.output
1852
- */
1853
- this.output = { case: undefined };
1854
- proto3.util.initPartial(data, this);
1855
- }
1856
- static fromBinary(bytes, options) {
1857
- return new AutoTrackEgress().fromBinary(bytes, options);
1858
- }
1859
- static fromJson(jsonValue, options) {
1860
- return new AutoTrackEgress().fromJson(jsonValue, options);
1861
- }
1862
- static fromJsonString(jsonString, options) {
1863
- return new AutoTrackEgress().fromJsonString(jsonString, options);
1864
- }
1865
- static equals(a, b) {
1866
- return proto3.util.equals(AutoTrackEgress, a, b);
1867
- }
1868
- }
1869
- AutoTrackEgress.runtime = proto3;
1870
- AutoTrackEgress.typeName = "livekit.AutoTrackEgress";
1871
- AutoTrackEgress.fields = proto3.util.newFieldList(() => [
1872
- { no: 1, name: "filepath", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1873
- { no: 5, name: "disable_manifest", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
1874
- { no: 2, name: "s3", kind: "message", T: S3Upload, oneof: "output" },
1875
- { no: 3, name: "gcp", kind: "message", T: GCPUpload, oneof: "output" },
1876
- { no: 4, name: "azure", kind: "message", T: AzureBlobUpload, oneof: "output" },
1877
- ]);
1878
- //# sourceMappingURL=livekit_egress_pb.js.map